@univerjs-pro/live-share 0.10.10-nightly.202510180327 → 0.10.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x157e0f=_0x274f;(function(_0x13c07f,_0x973bde){var _0x189024=_0x274f,_0x17d1f5=_0x13c07f();while(!![]){try{var _0x53f233=-parseInt(_0x189024(0x212))/0x1+parseInt(_0x189024(0x1db))/0x2+parseInt(_0x189024(0x21e))/0x3+parseInt(_0x189024(0x1e2))/0x4*(-parseInt(_0x189024(0x263))/0x5)+-parseInt(_0x189024(0x197))/0x6*(-parseInt(_0x189024(0x25d))/0x7)+-parseInt(_0x189024(0x234))/0x8*(-parseInt(_0x189024(0x25a))/0x9)+-parseInt(_0x189024(0x203))/0xa*(-parseInt(_0x189024(0x1b7))/0xb);if(_0x53f233===_0x973bde)break;else _0x17d1f5['push'](_0x17d1f5['shift']());}catch(_0x5aee41){_0x17d1f5['push'](_0x17d1f5['shift']());}}}(_0x21a3,0xd2e87));var U=Object[_0x157e0f(0x265)],F=(_0x25fa1d,_0x2ec3a5,_0x19027a)=>_0x2ec3a5 in _0x25fa1d?U(_0x25fa1d,_0x2ec3a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19027a}):_0x25fa1d[_0x2ec3a5]=_0x19027a,v=(_0x269afb,_0x2e99a1,_0x2917a6)=>F(_0x269afb,typeof _0x2e99a1!='symbol'?_0x2e99a1+'':_0x2e99a1,_0x2917a6);Object[_0x157e0f(0x265)](exports,Symbol[_0x157e0f(0x1c1)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x1bee59=_0x157e0f;return u=Object[_0x1bee59(0x264)]||function(_0x594912){var _0x23c334=_0x1bee59;for(var _0x200e73,_0x204e7e=0x1,_0x47289f=arguments[_0x23c334(0x235)];_0x204e7e<_0x47289f;_0x204e7e++){_0x200e73=arguments[_0x204e7e];for(var _0x5bf632 in _0x200e73)Object[_0x23c334(0x252)][_0x23c334(0x239)][_0x23c334(0x22d)](_0x200e73,_0x5bf632)&&(_0x594912[_0x5bf632]=_0x200e73[_0x5bf632]);}return _0x594912;},u['apply'](this,arguments);},$=function(_0xc904a9,_0x17ad10){var _0x25d865=_0x157e0f,_0x112c2b={};for(var _0x1a67a2 in _0xc904a9)Object[_0x25d865(0x252)][_0x25d865(0x239)]['call'](_0xc904a9,_0x1a67a2)&&_0x17ad10['indexOf'](_0x1a67a2)<0x0&&(_0x112c2b[_0x1a67a2]=_0xc904a9[_0x1a67a2]);if(_0xc904a9!=null&&typeof Object[_0x25d865(0x1e4)]==_0x25d865(0x216)){for(var _0x890f30=0x0,_0x1a67a2=Object[_0x25d865(0x1e4)](_0xc904a9);_0x890f30<_0x1a67a2[_0x25d865(0x235)];_0x890f30++)_0x17ad10[_0x25d865(0x1a9)](_0x1a67a2[_0x890f30])<0x0&&Object[_0x25d865(0x252)][_0x25d865(0x1d4)][_0x25d865(0x22d)](_0xc904a9,_0x1a67a2[_0x890f30])&&(_0x112c2b[_0x1a67a2[_0x890f30]]=_0xc904a9[_0x1a67a2[_0x890f30]]);}return _0x112c2b;},j=f[_0x157e0f(0x1bb)](function(_0x2dc90d,_0x16718b){var _0x1d65b0=_0x157e0f,_0x1a8416=_0x2dc90d[_0x1d65b0(0x1fc)],_0x3c6744=_0x2dc90d['id'],_0x37f93b=_0x2dc90d[_0x1d65b0(0x204)],_0x34f414=_0x2dc90d[_0x1d65b0(0x19e)],_0x5e35ef=$(_0x2dc90d,['icon','id','className',_0x1d65b0(0x19e)]),_0x558d93=_0x1d65b0(0x22c)[_0x1d65b0(0x245)](_0x3c6744,'\x20')['concat'](_0x37f93b||'')[_0x1d65b0(0x242)](),_0x4f87cc=f['useRef']('_'[_0x1d65b0(0x245)](k()));return y(_0x1a8416,''[_0x1d65b0(0x245)](_0x3c6744),{'defIds':_0x1a8416[_0x1d65b0(0x1e8)],'idSuffix':_0x4f87cc['current']},u({'ref':_0x16718b,'className':_0x558d93},_0x5e35ef),_0x34f414);});function y(_0x1a53be,_0x59579c,_0x4a52f8,_0x2642ec,_0x382d2c){var _0x4afb71=_0x157e0f;return f[_0x4afb71(0x1e7)](_0x1a53be['tag'],u(u({'key':_0x59579c},H(_0x1a53be,_0x4a52f8,_0x382d2c)),_0x2642ec),(V(_0x1a53be,_0x4a52f8)[_0x4afb71(0x198)]||[])['map'](function(_0x4c473a,_0x402310){var _0x8bf2a5=_0x4afb71;return y(_0x4c473a,''[_0x8bf2a5(0x245)](_0x59579c,'-')['concat'](_0x1a53be['tag'],'-')[_0x8bf2a5(0x245)](_0x402310),_0x4a52f8,void 0x0,_0x382d2c);}));}function H(_0x119ebb,_0x104946,_0x3b762b){var _0x168c17=_0x157e0f,_0x55e1d4=u({},_0x119ebb[_0x168c17(0x1d0)]);_0x3b762b!=null&&_0x3b762b[_0x168c17(0x224)]&&_0x55e1d4['fill']==='colorChannel1'&&(_0x55e1d4[_0x168c17(0x1a1)]=_0x3b762b[_0x168c17(0x224)]),_0x119ebb[_0x168c17(0x222)]===_0x168c17(0x1e3)&&_0x55e1d4['id']&&(_0x55e1d4['id']=_0x55e1d4['id']+_0x104946[_0x168c17(0x1ff)]),Object[_0x168c17(0x22e)](_0x55e1d4)[_0x168c17(0x1da)](function(_0x2f3435){var _0x312f3e=_0x168c17,_0xc918f8=_0x2f3435[0x0],_0x1a539b=_0x2f3435[0x1];_0xc918f8==='mask'&&typeof _0x1a539b==_0x312f3e(0x1fe)&&(_0x55e1d4[_0xc918f8]=_0x1a539b[_0x312f3e(0x26a)](/url\(#(.*)\)/,_0x312f3e(0x255)[_0x312f3e(0x245)](_0x104946[_0x312f3e(0x1ff)],')')));});var _0xdcd5cc=_0x104946[_0x168c17(0x1e8)];return!_0xdcd5cc||_0xdcd5cc[_0x168c17(0x235)]===0x0||(_0x119ebb[_0x168c17(0x222)]==='use'&&_0x55e1d4[_0x168c17(0x19f)]&&(_0x55e1d4['xlink:href']=_0x55e1d4[_0x168c17(0x19f)]+_0x104946['idSuffix']),Object['entries'](_0x55e1d4)[_0x168c17(0x1da)](function(_0x4b62d9){var _0x56322d=_0x168c17,_0xf9e97=_0x4b62d9[0x0],_0x15b1e9=_0x4b62d9[0x1];typeof _0x15b1e9==_0x56322d(0x1fe)&&(_0x55e1d4[_0xf9e97]=_0x15b1e9[_0x56322d(0x26a)](/url\(#(.*)\)/,_0x56322d(0x255)[_0x56322d(0x245)](_0x104946['idSuffix'],')')));})),_0x55e1d4;}function V(_0x3e3e1b,_0x2e37c0){var _0xf9551e=_0x157e0f,_0x79e44f,_0x571125=_0x2e37c0[_0xf9551e(0x1e8)];return!_0x571125||_0x571125[_0xf9551e(0x235)]===0x0?_0x3e3e1b:_0x3e3e1b[_0xf9551e(0x222)]===_0xf9551e(0x25e)&&(!((_0x79e44f=_0x3e3e1b[_0xf9551e(0x198)])===null||_0x79e44f===void 0x0)&&_0x79e44f[_0xf9551e(0x235)])?u(u({},_0x3e3e1b),{'children':_0x3e3e1b[_0xf9551e(0x198)][_0xf9551e(0x25c)](function(_0x54be61){var _0x3b8d4f=_0xf9551e;return typeof _0x54be61[_0x3b8d4f(0x1d0)]['id']==_0x3b8d4f(0x1fe)&&_0x571125&&_0x571125[_0x3b8d4f(0x19a)](_0x54be61[_0x3b8d4f(0x1d0)]['id'])?u(u({},_0x54be61),{'attrs':u(u({},_0x54be61['attrs']),{'id':_0x54be61[_0x3b8d4f(0x1d0)]['id']+_0x2e37c0['idSuffix']})}):_0x54be61;})}):_0x3e3e1b;}function k(){var _0x28e798=_0x157e0f;return Math[_0x28e798(0x274)]()[_0x28e798(0x256)](0x24)['substring'](0x2,0x8);}j[_0x157e0f(0x20e)]=_0x157e0f(0x1b2);var M={'tag':_0x157e0f(0x1a5),'attrs':{'xmlns':_0x157e0f(0x22f),'fill':_0x157e0f(0x1f9),'viewBox':_0x157e0f(0x266),'width':_0x157e0f(0x1a8),'height':_0x157e0f(0x1a8)},'children':[{'tag':_0x157e0f(0x1af),'attrs':{'fill':_0x157e0f(0x1e0),'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':_0x157e0f(0x1af),'attrs':{'fill':_0x157e0f(0x1e0),'d':_0x157e0f(0x26c),'fillRule':_0x157e0f(0x1df),'clipRule':_0x157e0f(0x1df)}}]},P=f[_0x157e0f(0x1bb)](function(_0x3a31fa,_0x4775e2){var _0x280586=_0x157e0f;return f[_0x280586(0x1e7)](j,Object[_0x280586(0x264)]({},_0x3a31fa,{'id':_0x280586(0x1b6),'ref':_0x4775e2,'icon':M}));});P[_0x157e0f(0x20e)]=_0x157e0f(0x275);class O extends o['Disposable']{constructor(){var _0xf5c2e3=_0x157e0f;super(...arguments),v(this,_0xf5c2e3(0x1e5),new Set()),v(this,_0xf5c2e3(0x244),new Set());}[_0x157e0f(0x217)](_0x4aca38){var _0x25e4b9=_0x157e0f;return this[_0x25e4b9(0x1e5)][_0x25e4b9(0x240)](_0x4aca38),o['toDisposable'](()=>this[_0x25e4b9(0x1e5)]['delete'](_0x4aca38));}[_0x157e0f(0x20d)](_0x59bc68){var _0x4e353c=_0x157e0f;return this[_0x4e353c(0x244)][_0x4e353c(0x240)](_0x59bc68),o[_0x4e353c(0x1b5)](()=>this[_0x4e353c(0x244)]['delete'](_0x59bc68));}[_0x157e0f(0x20b)](_0x102c07){return this['_sharedOperations']['has'](_0x102c07);}[_0x157e0f(0x1f0)](_0x35e1f0){var _0x4cf983=_0x157e0f;return Array[_0x4cf983(0x233)](this[_0x4cf983(0x244)])[_0x4cf983(0x25c)](_0x3f40f7=>_0x3f40f7(_0x35e1f0));}}var q=Object[_0x157e0f(0x26b)],R=(_0x32f4c3,_0x543cbf,_0x5ee8f1,_0x4434d1)=>{var _0x3b0215=_0x157e0f;for(var _0x2aca1a=_0x4434d1>0x1?void 0x0:_0x4434d1?q(_0x543cbf,_0x5ee8f1):_0x543cbf,_0x3f6280=_0x32f4c3[_0x3b0215(0x235)]-0x1,_0x3b00aa;_0x3f6280>=0x0;_0x3f6280--)(_0x3b00aa=_0x32f4c3[_0x3f6280])&&(_0x2aca1a=_0x3b00aa(_0x2aca1a)||_0x2aca1a);return _0x2aca1a;},S=(_0x38f2af,_0x27d06c)=>(_0x26d96e,_0x44554c)=>_0x27d06c(_0x26d96e,_0x44554c,_0x38f2af);exports['LiveShareController']=class extends o[_0x157e0f(0x1cd)]{constructor(_0x1c18a0,_0x439597,_0x11b5be){var _0x3a7b1f=_0x157e0f;super(),v(this,_0x3a7b1f(0x215),new Map()),(this[_0x3a7b1f(0x248)]=_0x1c18a0,this['_injector']=_0x439597,this['_collabSessionService']=_0x11b5be,this['_init']());}async[_0x157e0f(0x1d1)](_0x5a334e){var _0xb0f359=_0x157e0f;return this[_0xb0f359(0x215)][_0xb0f359(0x20f)](_0x5a334e)||await this[_0xb0f359(0x238)](_0x5a334e),this[_0xb0f359(0x215)][_0xb0f359(0x24a)](_0x5a334e);}[_0x157e0f(0x1a7)](){var _0x14f12a=_0x157e0f;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x14f12a(0x1f7)][_0x14f12a(0x273)])[_0x14f12a(0x1b8)](b[_0x14f12a(0x26f)](this['dispose$']))['subscribe'](async _0x1c14d5=>{var _0x34ced6=_0x14f12a;const _0x454c79=_0x1c14d5[_0x34ced6(0x1ae)]();this[_0x34ced6(0x215)][_0x34ced6(0x20f)](_0x454c79)||this[_0x34ced6(0x238)](_0x454c79);}),this[_0x14f12a(0x248)][_0x14f12a(0x258)](o[_0x14f12a(0x1f7)][_0x14f12a(0x273)])[_0x14f12a(0x1b8)](b[_0x14f12a(0x26f)](this[_0x14f12a(0x21b)]))['subscribe'](_0x48c252=>{var _0x1121fc=_0x14f12a;const _0xb3afd8=_0x48c252[_0x1121fc(0x1ae)](),_0xb9023e=this[_0x1121fc(0x215)][_0x1121fc(0x24a)](_0xb3afd8);_0xb9023e==null||_0xb9023e[_0x1121fc(0x1d8)]();});}async[_0x157e0f(0x238)](_0x4d3f5c){var _0x30f2e8=_0x157e0f;const _0x5a281c=await this[_0x30f2e8(0x247)][_0x30f2e8(0x230)](_0x4d3f5c),_0x415192=this[_0x30f2e8(0x231)][_0x30f2e8(0x24d)](exports['LiveShareCoordinator'],_0x4d3f5c,_0x5a281c);return _0x415192['init'](),this[_0x30f2e8(0x215)]['set'](_0x4d3f5c,_0x415192),_0x415192;}},exports[_0x157e0f(0x201)]=R([S(0x0,o[_0x157e0f(0x1bc)]),S(0x1,o[_0x157e0f(0x1a3)](o[_0x157e0f(0x1bf)])),S(0x2,o[_0x157e0f(0x1a3)](m['CollaborationSessionService']))],exports[_0x157e0f(0x201)]);var h=(_0x3e6ea8=>(_0x3e6ea8[_0x157e0f(0x226)]=_0x157e0f(0x268),_0x3e6ea8[_0x157e0f(0x20c)]=_0x157e0f(0x1ad),_0x3e6ea8[_0x157e0f(0x246)]=_0x157e0f(0x1ea),_0x3e6ea8[_0x157e0f(0x1d7)]='not-following',_0x3e6ea8[_0x157e0f(0x1c4)]=_0x157e0f(0x262),_0x3e6ea8))(h||{});const W='SAME_OPERATION_SHARE_INTERVAL',G=0xc8;exports[_0x157e0f(0x1dd)]=class extends o[_0x157e0f(0x1cd)]{constructor(_0xd688b5,_0x38abae,_0x19117e,_0x31ea0c,_0x1c151a){var _0x3a8090=_0x157e0f;super(),v(this,_0x3a8090(0x24b),new w[(_0x3a8090(0x26d))]('idle')),v(this,'status$',this[_0x3a8090(0x24b)][_0x3a8090(0x1f5)]()),v(this,_0x3a8090(0x1a7),!0x1),v(this,_0x3a8090(0x218),null),v(this,_0x3a8090(0x1de),null),(this[_0x3a8090(0x1c7)]=_0xd688b5,this[_0x3a8090(0x1fd)]=_0x38abae,this[_0x3a8090(0x1b0)]=_0x19117e,this[_0x3a8090(0x1cb)]=_0x31ea0c,this['_commandService']=_0x1c151a);}get[_0x157e0f(0x270)](){var _0x3516ae=_0x157e0f;return this[_0x3516ae(0x24b)][_0x3516ae(0x1bd)]();}['dispose'](){var _0xe8aafc=_0x157e0f,_0x33609f;(_0x33609f=this[_0xe8aafc(0x218)])==null||_0x33609f[_0xe8aafc(0x1d8)](),this['_status$']['next']('idle'),this[_0xe8aafc(0x24b)][_0xe8aafc(0x1e6)]();}[_0x157e0f(0x19d)](){var _0x57ed1f=_0x157e0f;this[_0x57ed1f(0x1a7)]||(this['_init']=!0x0,this[_0x57ed1f(0x1fd)]['sessionStatus$']['pipe'](b[_0x57ed1f(0x26f)](this[_0x57ed1f(0x21b)]))['subscribe'](_0x352068=>{var _0x54dea4=_0x57ed1f;switch(_0x352068){case m[_0x54dea4(0x20a)][_0x54dea4(0x226)]:this['_handleOffline']();break;case m['SessionStatus'][_0x54dea4(0x1ca)]:this[_0x54dea4(0x1ab)]();break;}}),this[_0x57ed1f(0x1fd)][_0x57ed1f(0x229)][_0x57ed1f(0x1b8)](b[_0x57ed1f(0x26f)](this[_0x57ed1f(0x21b)]))[_0x57ed1f(0x1a2)](_0x3ba5d4=>{var _0x5aa3a3=_0x57ed1f;const {eventID:_0x2722d0}=_0x3ba5d4;switch(_0x2722d0){case _[_0x5aa3a3(0x1b9)]['LIVESHARE_NEW_HOST']:this[_0x5aa3a3(0x1e9)](_0x3ba5d4);break;case _['CollaborationEvent'][_0x5aa3a3(0x253)]:this[_0x5aa3a3(0x23a)](_0x3ba5d4);break;case _[_0x5aa3a3(0x1b9)][_0x5aa3a3(0x25b)]:this[_0x5aa3a3(0x1d2)]();break;case _[_0x5aa3a3(0x1b9)][_0x5aa3a3(0x1ba)]:this[_0x5aa3a3(0x269)](_0x3ba5d4);break;}}));}['tryStartPresenting'](){var _0x3d28f6=_0x157e0f;this[_0x3d28f6(0x1fd)][_0x3d28f6(0x251)]({'eventID':_['CollaborationEvent'][_0x3d28f6(0x1ce)],'data':{'unitID':this[_0x3d28f6(0x1c7)],'userID':this['_collabSession'][_0x3d28f6(0x1aa)]()}},this[_0x3d28f6(0x1c7)]);}[_0x157e0f(0x207)](){var _0x31049b=_0x157e0f;this[_0x31049b(0x270)]===_0x31049b(0x262)&&(this[_0x31049b(0x24b)][_0x31049b(0x21c)](_0x31049b(0x1ad)),this[_0x31049b(0x1fd)]['send']({'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x31049b(0x1c7)]}},this['_unitID']));}['startFollowing'](){var _0x38bf90=_0x157e0f;this[_0x38bf90(0x270)]===_0x38bf90(0x1fa)&&(this[_0x38bf90(0x24b)][_0x38bf90(0x21c)](_0x38bf90(0x1ea)),this[_0x38bf90(0x1be)]());}['stopFollowing'](){var _0x92269b=_0x157e0f;this[_0x92269b(0x270)]===_0x92269b(0x1ea)&&this[_0x92269b(0x205)]();}[_0x157e0f(0x1e9)](_0x2ad48d){var _0x3f8f4d=_0x157e0f;const {presenter:_0x5006e6}=_0x2ad48d[_0x3f8f4d(0x23e)],_0x2d0a53=this['_collabSession'][_0x3f8f4d(0x1aa)]();this[_0x3f8f4d(0x1de)]=_0x5006e6,_0x5006e6===_0x2d0a53?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x3f8f4d(0x270)]!=='not-following'&&(this[_0x3f8f4d(0x1f2)](),this[_0x3f8f4d(0x1be)]());}[_0x157e0f(0x254)](){var _0x4867ea=_0x157e0f;const _0x381804={'eventID':_[_0x4867ea(0x1b9)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x4867ea(0x251)](_0x381804,this['_unitID']);}[_0x157e0f(0x1d2)](){var _0x31c7d1=_0x157e0f;this[_0x31c7d1(0x1de)]=null,this[_0x31c7d1(0x270)]!==_0x31c7d1(0x262)&&this[_0x31c7d1(0x1b4)]();}[_0x157e0f(0x269)](_0x24d707){var _0x834eca=_0x157e0f;if(this[_0x834eca(0x270)]===_0x834eca(0x1ea)&&this[_0x834eca(0x1de)]===_0x24d707[_0x834eca(0x23e)]['memberID']){const _0x15ffbe=_[_0x834eca(0x209)](_0x24d707[_0x834eca(0x23e)])[_0x834eca(0x220)][_0x834eca(0x1fb)]()[_0x834eca(0x210)](_0x66f9f5=>_0x66f9f5['id']===C[_0x834eca(0x1f3)]['id']);if(_0x15ffbe){const _0x221dc1=_0x15ffbe[_0x834eca(0x199)]['unitId'],_0x4c3db6=_0x15ffbe[_0x834eca(0x199)][_0x834eca(0x1f6)]['id'];setTimeout(()=>{var _0x47f474=_0x834eca;this['_commandService'][_0x47f474(0x261)](C[_0x47f474(0x1cf)]['id'],{'unitId':_0x221dc1,'subUnitId':_0x4c3db6},{'fromCollab':!0x0});});}}}[_0x157e0f(0x259)](){var _0x144a98=_0x157e0f;this[_0x144a98(0x24b)][_0x144a98(0x21c)](_0x144a98(0x262));const _0x4ba049=new Map(),_0x224170=this['_commandDisposable']=new o['DisposableCollection']();_0x224170[_0x144a98(0x240)](o[_0x144a98(0x1b5)](()=>{var _0x5e1510=_0x144a98;_0x4ba049[_0x5e1510(0x1da)](_0x208578=>_0x208578[_0x5e1510(0x1e6)]()),_0x4ba049[_0x5e1510(0x1ed)]();})),_0x224170[_0x144a98(0x240)](this['_commandService']['onCommandExecuted'](_0x4b0350=>{var _0x570716=_0x144a98,_0x331eea;if(_0x4b0350[_0x570716(0x19c)]!==o[_0x570716(0x219)][_0x570716(0x1d6)]||!this['_liveShareService'][_0x570716(0x20b)](_0x4b0350['id']))return;const {id:_0x159a8c}=_0x4b0350;let _0x46d28e;_0x4ba049['has'](_0x159a8c)?_0x46d28e=_0x4ba049['get'](_0x159a8c):(_0x46d28e=new w[(_0x570716(0x250))](),_0x4ba049[_0x570716(0x1eb)](_0x159a8c,_0x46d28e),_0x46d28e['pipe'](b[_0x570716(0x1e1)]((_0x331eea=this[_0x570716(0x1b0)][_0x570716(0x211)](W))!=null?_0x331eea:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x570716(0x1a2)](_0x59645c=>{var _0x5dea88=_0x570716;this[_0x5dea88(0x1fd)][_0x5dea88(0x251)]({'eventID':_[_0x5dea88(0x1b9)][_0x5dea88(0x253)],'data':{'unitID':this[_0x5dea88(0x1c7)],'operations':{[_0x59645c['id']]:{'id':_0x59645c['id'],'params':JSON[_0x5dea88(0x26e)](_0x59645c[_0x5dea88(0x199)])}}}},this[_0x5dea88(0x1c7)]);})),_0x46d28e[_0x570716(0x21c)](_0x4b0350);})),this[_0x144a98(0x1cb)][_0x144a98(0x1f0)](this['_unitID'])['forEach'](_0x42ccfc=>this[_0x144a98(0x1fd)][_0x144a98(0x251)]({'eventID':_[_0x144a98(0x1b9)][_0x144a98(0x253)],'data':{'unitID':this['_unitID'],'operations':{[_0x42ccfc['id']]:{'id':_0x42ccfc['id'],'params':JSON[_0x144a98(0x26e)](_0x42ccfc[_0x144a98(0x199)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x3390f3=_0x157e0f,_0x5c7bfe;this[_0x3390f3(0x24b)][_0x3390f3(0x21c)](_0x3390f3(0x1ad)),(_0x5c7bfe=this['_commandDisposable'])==null||_0x5c7bfe['dispose'](),this[_0x3390f3(0x218)]=null;}[_0x157e0f(0x1be)](){var _0x34eacb=_0x157e0f,_0x3df562;(_0x3df562=this[_0x34eacb(0x218)])==null||_0x3df562[_0x34eacb(0x1d8)](),this[_0x34eacb(0x24b)][_0x34eacb(0x21c)](_0x34eacb(0x1ea));}[_0x157e0f(0x1b4)](){var _0x11b0e5=_0x157e0f,_0x551be2;this[_0x11b0e5(0x24b)][_0x11b0e5(0x21c)](_0x11b0e5(0x1ad)),(_0x551be2=this[_0x11b0e5(0x218)])==null||_0x551be2[_0x11b0e5(0x1d8)](),this[_0x11b0e5(0x218)]=null;}['_stopFollowing'](){var _0x2f528e=_0x157e0f,_0x140cd9;this[_0x2f528e(0x24b)]['next']('not-following'),(_0x140cd9=this[_0x2f528e(0x218)])==null||_0x140cd9['dispose']();}[_0x157e0f(0x23a)](_0x203292){var _0x5ef75c=_0x157e0f;if([_0x5ef75c(0x262),_0x5ef75c(0x1fa),'offline'][_0x5ef75c(0x19a)](this[_0x5ef75c(0x270)])||!_0x203292[_0x5ef75c(0x23e)][_0x5ef75c(0x1c3)]||_0x203292[_0x5ef75c(0x23e)][_0x5ef75c(0x1c3)]===this[_0x5ef75c(0x1fd)][_0x5ef75c(0x1aa)]())return;this[_0x5ef75c(0x270)]===_0x5ef75c(0x1ad)&&this[_0x5ef75c(0x1be)]();const _0x36c881=_0x203292[_0x5ef75c(0x23e)][_0x5ef75c(0x1b3)];Object[_0x5ef75c(0x24c)](_0x36c881)['forEach'](_0x5a31fe=>{var _0x262422=_0x5ef75c;this[_0x262422(0x21a)][_0x262422(0x261)](_0x5a31fe['id'],_0x5a31fe['params']?JSON['parse'](_0x5a31fe[_0x262422(0x199)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x30f666=_0x157e0f,_0x3967f9;this[_0x30f666(0x24b)]['next'](_0x30f666(0x268)),(_0x3967f9=this['_commandDisposable'])==null||_0x3967f9[_0x30f666(0x1d8)]();}['_handleOnline'](){var _0x5335d5=_0x157e0f;this['_status$'][_0x5335d5(0x21c)](_0x5335d5(0x1ad)),this[_0x5335d5(0x254)]();}},exports[_0x157e0f(0x1dd)]=R([S(0x2,o[_0x157e0f(0x223)]),S(0x3,o[_0x157e0f(0x1a3)](O)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function _0x274f(_0x1ad7e8,_0x2ba6dd){var _0x21a3ac=_0x21a3();return _0x274f=function(_0x274f29,_0x4bbf81){_0x274f29=_0x274f29-0x197;var _0x2c9a9c=_0x21a3ac[_0x274f29];return _0x2c9a9c;},_0x274f(_0x1ad7e8,_0x2ba6dd);}function A(){var _0x55d30b=_0x157e0f;const _0x2df4ab=p[_0x55d30b(0x1b1)](exports[_0x55d30b(0x201)]),_0xba5454=p[_0x55d30b(0x1b1)](o[_0x55d30b(0x1bc)]),_0x8f6a0d=p[_0x55d30b(0x237)](()=>_0xba5454[_0x55d30b(0x1f4)](o[_0x55d30b(0x1f7)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4fae22,_0x4b45f4]=f[_0x55d30b(0x243)](null),[_0x420ecf,_0x198fe2]=f[_0x55d30b(0x243)](h[_0x55d30b(0x20c)]),_0x17e739=f[_0x55d30b(0x23d)](null);return f['useEffect'](()=>(_0x8f6a0d&&_0x2df4ab['getLiveShareCoordinator'](_0x8f6a0d['getUnitId']())[_0x55d30b(0x241)](_0x50a2d1=>{var _0x3b9dbe=_0x55d30b;_0x4b45f4(_0x50a2d1),_0x17e739[_0x3b9dbe(0x1d3)]=_0x50a2d1[_0x3b9dbe(0x1d5)][_0x3b9dbe(0x1a2)](_0x54de00=>{_0x198fe2(_0x54de00);});}),()=>{var _0x3fa6d2=_0x55d30b,_0x31bee1;(_0x31bee1=_0x17e739[_0x3fa6d2(0x1d3)])==null||_0x31bee1['unsubscribe'](),_0x17e739[_0x3fa6d2(0x1d3)]=null;}),[_0x8f6a0d,_0x2df4ab]),_0x4fae22?l[_0x55d30b(0x221)](g[_0x55d30b(0x23f)],{'align':'end','disabled':_0x420ecf===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x55d30b(0x221)](B,{'status':_0x420ecf,'coordinator':_0x4fae22}),'children':l['jsx']('button',{'className':g[_0x55d30b(0x206)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x420ecf===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x420ecf!==h[_0x55d30b(0x226)]}),'type':_0x55d30b(0x1cc),'children':l['jsx'](P,{'className':_0x55d30b(0x200)})})}):null;}function B(_0x947c8b){var _0x561924=_0x157e0f;const {status:_0x5c6e07,coordinator:_0x522223}=_0x947c8b;switch(_0x5c6e07){case h[_0x561924(0x20c)]:return l[_0x561924(0x221)](Y,{'coordinator':_0x522223});case h['FOLLOWING']:return l[_0x561924(0x221)](Z,{'coordinator':_0x522223});case h[_0x561924(0x1d7)]:return l['jsx'](J,{'coordinator':_0x522223});case h[_0x561924(0x226)]:return l['jsx'](z,{});case h[_0x561924(0x1c4)]:return l[_0x561924(0x221)](K,{'coordinator':_0x522223});default:return null;}}function Y(_0x57c0ca){var _0x2a65b8=_0x157e0f;const {coordinator:_0x4a352a}=_0x57c0ca;return l['jsxs'](l['Fragment'],{'children':[l[_0x2a65b8(0x221)](_0x2a65b8(0x1a0),{'className':_0x2a65b8(0x236),'children':_0x2a65b8(0x1a6)}),l[_0x2a65b8(0x221)](g[_0x2a65b8(0x1f8)],{'onClick':()=>_0x4a352a[_0x2a65b8(0x1c9)](),'children':_0x2a65b8(0x1ec)})]});}function Z(_0x18499b){var _0x49fab6=_0x157e0f;const {coordinator:_0x416c88}=_0x18499b;return l[_0x49fab6(0x228)](l[_0x49fab6(0x260)],{'children':[l[_0x49fab6(0x221)](_0x49fab6(0x1a0),{'className':_0x49fab6(0x236),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x49fab6(0x221)](g[_0x49fab6(0x1f8)],{'onClick':()=>_0x416c88[_0x49fab6(0x202)](),'children':_0x49fab6(0x208)})]});}function _0x21a3(){var _0x129c93=['RxDisposable','LIVESHARE_REQUEST_HOST','SetWorksheetActiveOperation','attrs','getLiveShareCoordinator','_handleTerminate','current','propertyIsEnumerable','status$','OPERATION','NOT_FOLLOWING','dispose','UniverCollaborationClientPlugin','forEach','1604874XvTGVQ','LiveShareService','LiveShareCoordinator','_presenter','evenodd','currentColor','throttleTime','50036Ovhnjg','mask','getOwnPropertySymbols','_sharedOperations','complete','createElement','defIds','_handleNewHost','following','set','Start','clear','UNIVER_LIVE_SHARE_PLUGIN','IUIPartsService','getInitialStates','live-share.config','_stopPresenting','InsertSheetMutation','getCurrentTypeOfUnit$','asObservable','sheet','UniverInstanceType','Button','none','not-following','reverse','icon','_collabSession','string','idSuffix','univer-size-4','LiveShareController','stopFollowing','7043530wysWwi','className','_stopFollowing','clsx','stopPresenting','Stop\x20following','parseProtocolChangeset','SessionStatus','shouldShareOperation','IDLE','registerInitialStateReporter','displayName','has','find','getConfig','1033250ZNHMFZ','setConfig','registerDependencies','_entities','function','registerSharedOperation','_commandDisposable','CommandType','_commandService','dispose$','next','UniverLiveSharePlugin','180015NFPTgi','onRendered','mutations','jsx','tag','IConfigService','colorChannel1','connectInjector','OFFLINE','Disposable','jsxs','event$','SetZoomRatioOperation','Stop\x20presenting','univerjs-icon\x20univerjs-icon-','call','entries','http://www.w3.org/2000/svg','requireSession','_injector','_mountLiveShare','from','72PUmeQd','length','univer-mb-3\x20univer-w-full\x20univer-text-sm','useObservable','_startLiveShareCoordinator','hasOwnProperty','_handleOperation','merge','LiveShareStatus','useRef','data','Dropdown','add','then','trim','useState','_reporters','concat','FOLLOWING','_collabSessionService','_univerInstanceService','HEADER_MENU','get','_status$','values','createInstance','DesktopLiveShareController','You\x27re\x20presenting\x20the\x20document','Subject','send','prototype','LIVESHARE_OPERATION','_fetchOperations','url(#$1','toString','_config','getTypeOfUnitDisposed$','_startPresenting','245331cJjeAA','LIVESHARE_TERMINATE','map','2473114WJXlKc','defs','SetScrollOperation','Fragment','executeCommand','presenting','530KBkZhG','assign','defineProperty','0\x200\x2017\x2017','touchDependencies','offline','_handleNewChangeSets','replace','getOwnPropertyDescriptor','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','BehaviorSubject','stringify','takeUntil','_status','startFollowing','You\x27are\x20offline.','UNIVER_SHEET','random','LiveShareIcon','12DrQOdn','children','params','includes','UNIVER_UNKNOWN','type','init','extend','xlink:href','div','fill','subscribe','Inject','text','svg','Present\x20this\x20document','_init','1em','indexOf','getMemberID','_handleOnline','disposeWithMe','idle','getUnitId','path','_configService','useDependency','UniverIcon','operations','_beIdle','toDisposable','live-share-icon','22zTZDWq','pipe','CollaborationEvent','NEW_CHANGESETS','forwardRef','IUniverInstanceService','getValue','_startFollowing','Injector','LiveShare','toStringTag','Start\x20following','presenter','PRESENTING','symbol','_uiPartsService','_unitID','mergeOverrideWithDependencies','tryStartPresenting','ONLINE','_liveShareService','button'];_0x21a3=function(){return _0x129c93;};return _0x21a3();}function J(_0x389df2){var _0x191210=_0x157e0f;const {coordinator:_0x7e395f}=_0x389df2;return l[_0x191210(0x228)](l[_0x191210(0x260)],{'children':[l['jsx']('div',{'className':_0x191210(0x236),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](g[_0x191210(0x1f8)],{'variant':_0x191210(0x1a4),'onClick':()=>_0x7e395f[_0x191210(0x271)](),'children':_0x191210(0x1c2)})]});}function K(_0x13cafe){var _0x40d7c4=_0x157e0f;const {coordinator:_0x595f21}=_0x13cafe;return l[_0x40d7c4(0x228)](l[_0x40d7c4(0x260)],{'children':[l[_0x40d7c4(0x221)](_0x40d7c4(0x1a0),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x40d7c4(0x24f)}),l['jsx'](g['Button'],{'variant':'default','onClick':()=>_0x595f21[_0x40d7c4(0x207)](),'children':_0x40d7c4(0x22b)})]});}function z(){var _0x2fd50b=_0x157e0f;return l[_0x2fd50b(0x221)](l['Fragment'],{'children':_0x2fd50b(0x272)});}var Q=Object[_0x157e0f(0x26b)],X=(_0x5edccb,_0xfb3b0a,_0x20415b,_0x561689)=>{var _0x255dda=_0x157e0f;for(var _0x18862d=_0x561689>0x1?void 0x0:_0x561689?Q(_0xfb3b0a,_0x20415b):_0xfb3b0a,_0x37e8dd=_0x5edccb[_0x255dda(0x235)]-0x1,_0x4a0bc2;_0x37e8dd>=0x0;_0x37e8dd--)(_0x4a0bc2=_0x5edccb[_0x37e8dd])&&(_0x18862d=_0x4a0bc2(_0x18862d)||_0x18862d);return _0x18862d;},x=(_0x2ea074,_0x1a3681)=>(_0x115241,_0x306458)=>_0x1a3681(_0x115241,_0x306458,_0x2ea074);exports[_0x157e0f(0x24e)]=class extends o[_0x157e0f(0x227)]{constructor(_0x4c6b05,_0x42c84d){var _0x3d8d4c=_0x157e0f;super(),this[_0x3d8d4c(0x231)]=_0x4c6b05,this[_0x3d8d4c(0x1c6)]=_0x42c84d,this[_0x3d8d4c(0x232)]();}[_0x157e0f(0x232)](){var _0x2aef35=_0x157e0f;this[_0x2aef35(0x1ac)](this[_0x2aef35(0x1c6)]['registerComponent'](p['BuiltInUIPart'][_0x2aef35(0x249)],()=>p[_0x2aef35(0x225)](A,this[_0x2aef35(0x231)])));}},exports['DesktopLiveShareController']=X([x(0x0,o[_0x157e0f(0x1a3)](o[_0x157e0f(0x1bf)])),x(0x1,p[_0x157e0f(0x1ef)])],exports[_0x157e0f(0x24e)]);const ee=_0x157e0f(0x1f1),L={};var te=Object[_0x157e0f(0x26b)],ie=(_0x140b6c,_0x3a6f06,_0x48b99e,_0x431259)=>{var _0x280e43=_0x157e0f;for(var _0x181a70=_0x431259>0x1?void 0x0:_0x431259?te(_0x3a6f06,_0x48b99e):_0x3a6f06,_0x120de5=_0x140b6c[_0x280e43(0x235)]-0x1,_0x25ec97;_0x120de5>=0x0;_0x120de5--)(_0x25ec97=_0x140b6c[_0x120de5])&&(_0x181a70=_0x25ec97(_0x181a70)||_0x181a70);return _0x181a70;},ne=(_0x1cc744,_0x254b96)=>(_0x48de63,_0x46cc19)=>_0x254b96(_0x48de63,_0x46cc19,_0x1cc744);let E=class extends o[_0x157e0f(0x227)]{constructor(_0x2a3663){var _0x2bcb58=_0x157e0f;super(),this[_0x2bcb58(0x1cb)]=_0x2a3663,this['_init']();}[_0x157e0f(0x1a7)](){var _0x2d0562=_0x157e0f;[D[_0x2d0562(0x22a)]['id'],D[_0x2d0562(0x25f)]['id'],C['SetWorksheetActiveOperation']['id']][_0x2d0562(0x1da)](_0xd58e=>{var _0x319496=_0x2d0562;this['disposeWithMe'](this[_0x319496(0x1cb)][_0x319496(0x217)](_0xd58e));});}};E=ie([ne(0x0,o['Inject'](O))],E);var re=Object[_0x157e0f(0x265)],se=Object[_0x157e0f(0x26b)],oe=(_0x52e0bf,_0x57b077,_0x37dcfc)=>_0x57b077 in _0x52e0bf?re(_0x52e0bf,_0x57b077,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37dcfc}):_0x52e0bf[_0x57b077]=_0x37dcfc,ae=(_0x52ee6f,_0x357479,_0x1680a3,_0x41caec)=>{var _0x50672b=_0x157e0f;for(var _0xb59a79=_0x41caec>0x1?void 0x0:_0x41caec?se(_0x357479,_0x1680a3):_0x357479,_0x1ac09d=_0x52ee6f[_0x50672b(0x235)]-0x1,_0x7d3826;_0x1ac09d>=0x0;_0x1ac09d--)(_0x7d3826=_0x52ee6f[_0x1ac09d])&&(_0xb59a79=_0x7d3826(_0xb59a79)||_0xb59a79);return _0xb59a79;},N=(_0x423180,_0x21a43f)=>(_0x539eac,_0x80ccc3)=>_0x21a43f(_0x539eac,_0x80ccc3,_0x423180),T=(_0x3f6889,_0x36bb17,_0x52fc3a)=>oe(_0x3f6889,typeof _0x36bb17!=_0x157e0f(0x1c5)?_0x36bb17+'':_0x36bb17,_0x52fc3a);const le=_0x157e0f(0x1ee);exports[_0x157e0f(0x21d)]=class extends o['Plugin']{constructor(_0x2bfa3f=L,_0x11d172,_0x3ffa48){var _0xe011f6=_0x157e0f;super(),this[_0xe011f6(0x257)]=_0x2bfa3f,this['_injector']=_0x11d172,this[_0xe011f6(0x1b0)]=_0x3ffa48;const {..._0x2feea3}=o[_0xe011f6(0x23b)]({},L,this[_0xe011f6(0x257)]);this['_configService'][_0xe011f6(0x213)](ee,_0x2feea3);}['onStarting'](){var _0xce400e=_0x157e0f;o[_0xce400e(0x214)](this['_injector'],o[_0xce400e(0x1c8)]([[O],[exports['LiveShareController']],[E],[exports[_0xce400e(0x24e)]]],this[_0xce400e(0x257)]['override'])),o[_0xce400e(0x267)](this[_0xce400e(0x231)],[[E]]);}[_0x157e0f(0x21f)](){var _0x4bec29=_0x157e0f;o['touchDependencies'](this[_0x4bec29(0x231)],[[exports[_0x4bec29(0x24e)]]]);}},T(exports[_0x157e0f(0x21d)],_0x157e0f(0x19c),o[_0x157e0f(0x1f7)][_0x157e0f(0x19b)]),T(exports[_0x157e0f(0x21d)],'pluginName',le),exports[_0x157e0f(0x21d)]=ae([o['DependentOn'](m[_0x157e0f(0x1d9)]),N(0x1,o[_0x157e0f(0x1a3)](o[_0x157e0f(0x1bf)])),N(0x2,o['IConfigService'])],exports[_0x157e0f(0x21d)]),exports[_0x157e0f(0x1c0)]=A,exports[_0x157e0f(0x1dc)]=O,exports[_0x157e0f(0x23c)]=h;
|
|
1
|
+
'use strict';var _0x434b0e=_0x3822;(function(_0x3e52a3,_0x11804d){var _0x36dd5b=_0x3822,_0x1d1165=_0x3e52a3();while(!![]){try{var _0x1d45bc=parseInt(_0x36dd5b(0xf5))/0x1+parseInt(_0x36dd5b(0x129))/0x2*(parseInt(_0x36dd5b(0xe7))/0x3)+-parseInt(_0x36dd5b(0x162))/0x4+-parseInt(_0x36dd5b(0x159))/0x5*(-parseInt(_0x36dd5b(0xb8))/0x6)+-parseInt(_0x36dd5b(0x16b))/0x7+-parseInt(_0x36dd5b(0xaa))/0x8+parseInt(_0x36dd5b(0x16f))/0x9*(parseInt(_0x36dd5b(0xfb))/0xa);if(_0x1d45bc===_0x11804d)break;else _0x1d1165['push'](_0x1d1165['shift']());}catch(_0x214cc4){_0x1d1165['push'](_0x1d1165['shift']());}}}(_0x22d8,0xe7c9a));var U=Object[_0x434b0e(0xd7)],F=(_0x1fca18,_0x72b653,_0x268111)=>_0x72b653 in _0x1fca18?U(_0x1fca18,_0x72b653,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x268111}):_0x1fca18[_0x72b653]=_0x268111,v=(_0x323b63,_0x26d3f5,_0x209d31)=>F(_0x323b63,typeof _0x26d3f5!=_0x434b0e(0xba)?_0x26d3f5+'':_0x26d3f5,_0x209d31);Object[_0x434b0e(0xd7)](exports,Symbol['toStringTag'],{'value':_0x434b0e(0x10c)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function _0x22d8(){var _0x7f2ce9=['forEach','IUniverInstanceService','1em','3677958VqzngQ','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','symbol','LiveShareCoordinator','idSuffix','end','DependentOn','entries','merge','colorChannel1','map','idle','InsertSheetMutation','_handleNewChangeSets','_init','tag','You\x27re\x20not\x20following\x20the\x20presenter','onCommandExecuted','BehaviorSubject','Stop\x20following','_liveShareService','_handleNewHost','_handleTerminate','_injector','_status','getInitialStates','_presenter','asObservable','data','CollaborationEvent','CollaborationSessionService','defineProperty','HEADER_MENU','UniverLiveSharePlugin','_handleOnline','getMemberID','_fetchOperations','disposeWithMe','values','Inject','_sharedOperations','RxDisposable','LiveShareStatus','getCurrentTypeOfUnit$','concat','useRef','registerSharedOperation','1427061BATBSc','assign','complete','sessionStatus$','params','executeCommand','event$','LIVESHARE_REQUEST_HOST','toString','add','next','function','univer-mb-3\x20univer-w-full\x20univer-text-sm','_entities','21643YNHBGr','LiveShareIcon','evenodd','string','shouldShareOperation','dispose','40wOfQnh','IDLE','parseProtocolChangeset','SessionStatus','presenting','LiveShare','Start\x20following','operations','_handleOffline','_startPresenting','SetWorksheetActiveOperation','useState','type','includes','get','Stop\x20presenting','getOwnPropertyDescriptor','Module','getUnitId','stopFollowing','useDependency','PRESENTING','_reporters','_startLiveShareCoordinator','live-share.config','call','Dropdown','BuiltInUIPart','text','0\x200\x2017\x2017','getConfig','UniverInstanceType','getTypeOfUnitAdded$','getLiveShareCoordinator','subscribe','SetScrollOperation','DesktopLiveShareController','_configService','_startFollowing','defs','not-following','ONLINE','stopPresenting','indexOf','status$','IConfigService','2xRFZut','ICommandService','SAME_OPERATION_SHARE_INTERVAL','_commandDisposable','LiveShareService','onStarting','CommandType','clsx','sheet','useEffect','onRendered','Injector','stringify','LiveShareController','trim','attrs','has','registerDependencies','clear','_unitID','http://www.w3.org/2000/svg','NOT_FOLLOWING','_commandService','apply','xlink:href','_status$','prototype','init','extend','unsubscribe','then','div','fill','Button','univerjs-icon\x20univerjs-icon-','_stopPresenting','following','_config','pipe','jsx','icon','dispose$','forwardRef','_collabSession','set','Subject','toDisposable','getValue','5vlOYRH','Disposable','Fragment','hasOwnProperty','_stopFollowing','UNIVER_UNKNOWN','none','override','OFFLINE','3679608VUIRqv','delete','createElement','mergeOverrideWithDependencies','offline','length','touchDependencies','presenter','univer-size-4','9056551gMbiHv','FOLLOWING','unitId','jsxs','7828227IWAmoT','use','children','LIVESHARE_TERMINATE','send','Start','default','LIVESHARE_OPERATION','button','You\x27are\x20offline.','You\x27re\x20following\x20the\x20presenter','replace','random','takeUntil','defIds','className','current','_collabSessionService','LIVESHARE_FETCH_OPERATIONS','_univerInstanceService','startFollowing','getTypeOfUnitDisposed$','registerInitialStateReporter','tryStartPresenting','setConfig','IUIPartsService','NEW_CHANGESETS','getOwnPropertySymbols','11411504gkVaZc','memberID','_handleOperation','_mountLiveShare','UniverCollaborationClientPlugin','from','path','mask','mutations','_uiPartsService','UNIVER_SHEET'];_0x22d8=function(){return _0x7f2ce9;};return _0x22d8();}var u=function(){var _0x5d639d=_0x434b0e;return u=Object[_0x5d639d(0xe8)]||function(_0x690e15){var _0x2c7acf=_0x5d639d;for(var _0x2ad81e,_0x49485c=0x1,_0x1c9bde=arguments['length'];_0x49485c<_0x1c9bde;_0x49485c++){_0x2ad81e=arguments[_0x49485c];for(var _0x58f9ce in _0x2ad81e)Object[_0x2c7acf(0x143)][_0x2c7acf(0x15c)]['call'](_0x2ad81e,_0x58f9ce)&&(_0x690e15[_0x58f9ce]=_0x2ad81e[_0x58f9ce]);}return _0x690e15;},u[_0x5d639d(0x140)](this,arguments);},$=function(_0x5946d3,_0x23046a){var _0x332ec4=_0x434b0e,_0x25c719={};for(var _0x242966 in _0x5946d3)Object['prototype'][_0x332ec4(0x15c)][_0x332ec4(0x114)](_0x5946d3,_0x242966)&&_0x23046a[_0x332ec4(0x126)](_0x242966)<0x0&&(_0x25c719[_0x242966]=_0x5946d3[_0x242966]);if(_0x5946d3!=null&&typeof Object[_0x332ec4(0xa9)]==_0x332ec4(0xf2)){for(var _0x1cecd3=0x0,_0x242966=Object['getOwnPropertySymbols'](_0x5946d3);_0x1cecd3<_0x242966[_0x332ec4(0x167)];_0x1cecd3++)_0x23046a[_0x332ec4(0x126)](_0x242966[_0x1cecd3])<0x0&&Object[_0x332ec4(0x143)]['propertyIsEnumerable']['call'](_0x5946d3,_0x242966[_0x1cecd3])&&(_0x25c719[_0x242966[_0x1cecd3]]=_0x5946d3[_0x242966[_0x1cecd3]]);}return _0x25c719;},j=f['forwardRef'](function(_0x2c1a56,_0x243336){var _0x4e4cb6=_0x434b0e,_0x5b5d38=_0x2c1a56[_0x4e4cb6(0x151)],_0x541012=_0x2c1a56['id'],_0x544e77=_0x2c1a56[_0x4e4cb6(0x9d)],_0x5b7f96=_0x2c1a56[_0x4e4cb6(0x145)],_0x7af4cd=$(_0x2c1a56,[_0x4e4cb6(0x151),'id',_0x4e4cb6(0x9d),'extend']),_0x17f5bd=_0x4e4cb6(0x14b)['concat'](_0x541012,'\x20')[_0x4e4cb6(0xe4)](_0x544e77||'')[_0x4e4cb6(0x137)](),_0x41823b=f['useRef']('_'[_0x4e4cb6(0xe4)](k()));return y(_0x5b5d38,''[_0x4e4cb6(0xe4)](_0x541012),{'defIds':_0x5b5d38['defIds'],'idSuffix':_0x41823b[_0x4e4cb6(0x9e)]},u({'ref':_0x243336,'className':_0x17f5bd},_0x7af4cd),_0x5b7f96);});function y(_0x5548b2,_0xbf55ce,_0x1f091d,_0x2645e6,_0x13a7a2){var _0x3224da=_0x434b0e;return f[_0x3224da(0x164)](_0x5548b2['tag'],u(u({'key':_0xbf55ce},H(_0x5548b2,_0x1f091d,_0x13a7a2)),_0x2645e6),(V(_0x5548b2,_0x1f091d)['children']||[])[_0x3224da(0xc2)](function(_0x1a751a,_0x162861){var _0x5812cf=_0x3224da;return y(_0x1a751a,''[_0x5812cf(0xe4)](_0xbf55ce,'-')[_0x5812cf(0xe4)](_0x5548b2['tag'],'-')[_0x5812cf(0xe4)](_0x162861),_0x1f091d,void 0x0,_0x13a7a2);}));}function H(_0x1e538a,_0x4bcbf0,_0x3594b7){var _0x13e9f9=_0x434b0e,_0xf228d6=u({},_0x1e538a[_0x13e9f9(0x138)]);_0x3594b7!=null&&_0x3594b7[_0x13e9f9(0xc1)]&&_0xf228d6[_0x13e9f9(0x149)]===_0x13e9f9(0xc1)&&(_0xf228d6[_0x13e9f9(0x149)]=_0x3594b7[_0x13e9f9(0xc1)]),_0x1e538a[_0x13e9f9(0xc7)]==='mask'&&_0xf228d6['id']&&(_0xf228d6['id']=_0xf228d6['id']+_0x4bcbf0[_0x13e9f9(0xbc)]),Object['entries'](_0xf228d6)[_0x13e9f9(0xb5)](function(_0x4815d0){var _0x3853ca=_0x13e9f9,_0x328d11=_0x4815d0[0x0],_0xf81055=_0x4815d0[0x1];_0x328d11===_0x3853ca(0xb1)&&typeof _0xf81055==_0x3853ca(0xf8)&&(_0xf228d6[_0x328d11]=_0xf81055[_0x3853ca(0x99)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x4bcbf0['idSuffix'],')')));});var _0x188626=_0x4bcbf0['defIds'];return!_0x188626||_0x188626[_0x13e9f9(0x167)]===0x0||(_0x1e538a[_0x13e9f9(0xc7)]===_0x13e9f9(0x170)&&_0xf228d6[_0x13e9f9(0x141)]&&(_0xf228d6[_0x13e9f9(0x141)]=_0xf228d6[_0x13e9f9(0x141)]+_0x4bcbf0['idSuffix']),Object[_0x13e9f9(0xbf)](_0xf228d6)[_0x13e9f9(0xb5)](function(_0x129d7c){var _0x48065b=_0x13e9f9,_0x194021=_0x129d7c[0x0],_0x4bd790=_0x129d7c[0x1];typeof _0x4bd790==_0x48065b(0xf8)&&(_0xf228d6[_0x194021]=_0x4bd790['replace'](/url\(#(.*)\)/,'url(#$1'[_0x48065b(0xe4)](_0x4bcbf0[_0x48065b(0xbc)],')')));})),_0xf228d6;}function V(_0x4dffaf,_0x333eb2){var _0x5a2571=_0x434b0e,_0x31ed21,_0x3c3577=_0x333eb2[_0x5a2571(0x9c)];return!_0x3c3577||_0x3c3577[_0x5a2571(0x167)]===0x0?_0x4dffaf:_0x4dffaf[_0x5a2571(0xc7)]===_0x5a2571(0x122)&&(!((_0x31ed21=_0x4dffaf[_0x5a2571(0x171)])===null||_0x31ed21===void 0x0)&&_0x31ed21['length'])?u(u({},_0x4dffaf),{'children':_0x4dffaf['children'][_0x5a2571(0xc2)](function(_0x5cbf8c){var _0x5ec678=_0x5a2571;return typeof _0x5cbf8c[_0x5ec678(0x138)]['id']==_0x5ec678(0xf8)&&_0x3c3577&&_0x3c3577['includes'](_0x5cbf8c[_0x5ec678(0x138)]['id'])?u(u({},_0x5cbf8c),{'attrs':u(u({},_0x5cbf8c[_0x5ec678(0x138)]),{'id':_0x5cbf8c['attrs']['id']+_0x333eb2[_0x5ec678(0xbc)]})}):_0x5cbf8c;})}):_0x4dffaf;}function k(){var _0x23cc4f=_0x434b0e;return Math[_0x23cc4f(0x9a)]()[_0x23cc4f(0xef)](0x24)['substring'](0x2,0x8);}j['displayName']='UniverIcon';function _0x3822(_0x197099,_0x31a2c1){var _0x22d85b=_0x22d8();return _0x3822=function(_0x38227f,_0x3e63e7){_0x38227f=_0x38227f-0x96;var _0x97e1ce=_0x22d85b[_0x38227f];return _0x97e1ce;},_0x3822(_0x197099,_0x31a2c1);}var M={'tag':'svg','attrs':{'xmlns':_0x434b0e(0x13d),'fill':_0x434b0e(0x15f),'viewBox':_0x434b0e(0x118),'width':_0x434b0e(0xb7),'height':_0x434b0e(0xb7)},'children':[{'tag':_0x434b0e(0xb0),'attrs':{'fill':'currentColor','d':_0x434b0e(0xb9)}},{'tag':_0x434b0e(0xb0),'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':_0x434b0e(0xf7),'clipRule':_0x434b0e(0xf7)}}]},P=f[_0x434b0e(0x153)](function(_0x3ac20e,_0x4d6f11){var _0xf2b74e=_0x434b0e;return f[_0xf2b74e(0x164)](j,Object[_0xf2b74e(0xe8)]({},_0x3ac20e,{'id':'live-share-icon','ref':_0x4d6f11,'icon':M}));});P['displayName']=_0x434b0e(0xf6);class O extends o[_0x434b0e(0x15a)]{constructor(){var _0x3df25d=_0x434b0e;super(...arguments),v(this,_0x3df25d(0xe0),new Set()),v(this,_0x3df25d(0x111),new Set());}[_0x434b0e(0xe6)](_0x3cc9b8){var _0x4b3d6b=_0x434b0e;return this['_sharedOperations'][_0x4b3d6b(0xf0)](_0x3cc9b8),o[_0x4b3d6b(0x157)](()=>this[_0x4b3d6b(0xe0)][_0x4b3d6b(0x163)](_0x3cc9b8));}[_0x434b0e(0xa4)](_0x5c5a86){var _0x3f3bab=_0x434b0e;return this['_reporters'][_0x3f3bab(0xf0)](_0x5c5a86),o['toDisposable'](()=>this[_0x3f3bab(0x111)][_0x3f3bab(0x163)](_0x5c5a86));}[_0x434b0e(0xf9)](_0x52ad96){var _0x4347c1=_0x434b0e;return this[_0x4347c1(0xe0)][_0x4347c1(0x139)](_0x52ad96);}[_0x434b0e(0xd1)](_0x826721){var _0x1e4617=_0x434b0e;return Array[_0x1e4617(0xaf)](this[_0x1e4617(0x111)])[_0x1e4617(0xc2)](_0x3e23a0=>_0x3e23a0(_0x826721));}}var q=Object[_0x434b0e(0x10b)],R=(_0x2e94a3,_0xbe2e5a,_0x53d751,_0x1c2655)=>{var _0xd1980=_0x434b0e;for(var _0x535146=_0x1c2655>0x1?void 0x0:_0x1c2655?q(_0xbe2e5a,_0x53d751):_0xbe2e5a,_0x40de67=_0x2e94a3[_0xd1980(0x167)]-0x1,_0x4570fb;_0x40de67>=0x0;_0x40de67--)(_0x4570fb=_0x2e94a3[_0x40de67])&&(_0x535146=_0x4570fb(_0x535146)||_0x535146);return _0x535146;},S=(_0x1d21ba,_0x1108c1)=>(_0x5ae866,_0x8b157)=>_0x1108c1(_0x5ae866,_0x8b157,_0x1d21ba);exports[_0x434b0e(0x136)]=class extends o[_0x434b0e(0xe1)]{constructor(_0x11d451,_0xd90a77,_0x460d80){var _0x220cc8=_0x434b0e;super(),v(this,_0x220cc8(0xf4),new Map()),(this[_0x220cc8(0xa1)]=_0x11d451,this[_0x220cc8(0xcf)]=_0xd90a77,this[_0x220cc8(0x9f)]=_0x460d80,this[_0x220cc8(0xc6)]());}async[_0x434b0e(0x11c)](_0x367fd3){var _0x8ac5bb=_0x434b0e;return this[_0x8ac5bb(0xf4)][_0x8ac5bb(0x139)](_0x367fd3)||await this[_0x8ac5bb(0x112)](_0x367fd3),this[_0x8ac5bb(0xf4)][_0x8ac5bb(0x109)](_0x367fd3);}[_0x434b0e(0xc6)](){var _0x10f9ac=_0x434b0e;this[_0x10f9ac(0xa1)][_0x10f9ac(0x11b)](o['UniverInstanceType'][_0x10f9ac(0xb4)])['pipe'](b[_0x10f9ac(0x9b)](this['dispose$']))[_0x10f9ac(0x11d)](async _0x5a9a4c=>{var _0x5eac30=_0x10f9ac;const _0x505017=_0x5a9a4c[_0x5eac30(0x10d)]();this[_0x5eac30(0xf4)][_0x5eac30(0x139)](_0x505017)||this[_0x5eac30(0x112)](_0x505017);}),this[_0x10f9ac(0xa1)][_0x10f9ac(0xa3)](o[_0x10f9ac(0x11a)]['UNIVER_SHEET'])[_0x10f9ac(0x14f)](b['takeUntil'](this[_0x10f9ac(0x152)]))['subscribe'](_0x5f5467=>{var _0x1a5f67=_0x10f9ac;const _0x4dee2d=_0x5f5467[_0x1a5f67(0x10d)](),_0x1b9200=this['_entities']['get'](_0x4dee2d);_0x1b9200==null||_0x1b9200[_0x1a5f67(0xfa)]();});}async[_0x434b0e(0x112)](_0xc78e6c){var _0x265703=_0x434b0e;const _0x4e60a2=await this[_0x265703(0x9f)]['requireSession'](_0xc78e6c),_0x3c4c85=this[_0x265703(0xcf)]['createInstance'](exports[_0x265703(0xbb)],_0xc78e6c,_0x4e60a2);return _0x3c4c85['init'](),this[_0x265703(0xf4)][_0x265703(0x155)](_0xc78e6c,_0x3c4c85),_0x3c4c85;}},exports[_0x434b0e(0x136)]=R([S(0x0,o[_0x434b0e(0xb6)]),S(0x1,o[_0x434b0e(0xdf)](o[_0x434b0e(0x134)])),S(0x2,o['Inject'](m[_0x434b0e(0xd6)]))],exports[_0x434b0e(0x136)]);var h=(_0x45a631=>(_0x45a631[_0x434b0e(0x161)]='offline',_0x45a631[_0x434b0e(0xfc)]=_0x434b0e(0xc3),_0x45a631['FOLLOWING']=_0x434b0e(0x14d),_0x45a631[_0x434b0e(0x13e)]=_0x434b0e(0x123),_0x45a631['PRESENTING']=_0x434b0e(0xff),_0x45a631))(h||{});const W=_0x434b0e(0x12b),G=0xc8;exports[_0x434b0e(0xbb)]=class extends o[_0x434b0e(0xe1)]{constructor(_0x37d3db,_0x1c093b,_0x5f5a57,_0x47090c,_0xab1a4a){var _0x212a19=_0x434b0e;super(),v(this,_0x212a19(0x142),new w[(_0x212a19(0xca))](_0x212a19(0xc3))),v(this,'status$',this[_0x212a19(0x142)][_0x212a19(0xd3)]()),v(this,_0x212a19(0xc6),!0x1),v(this,_0x212a19(0x12c),null),v(this,_0x212a19(0xd2),null),(this[_0x212a19(0x13c)]=_0x37d3db,this['_collabSession']=_0x1c093b,this[_0x212a19(0x120)]=_0x5f5a57,this[_0x212a19(0xcc)]=_0x47090c,this[_0x212a19(0x13f)]=_0xab1a4a);}get[_0x434b0e(0xd0)](){var _0x19762b=_0x434b0e;return this[_0x19762b(0x142)][_0x19762b(0x158)]();}['dispose'](){var _0x2fdf0e=_0x434b0e,_0x2cd3f4;(_0x2cd3f4=this[_0x2fdf0e(0x12c)])==null||_0x2cd3f4[_0x2fdf0e(0xfa)](),this[_0x2fdf0e(0x142)]['next'](_0x2fdf0e(0xc3)),this[_0x2fdf0e(0x142)][_0x2fdf0e(0xe9)]();}[_0x434b0e(0x144)](){var _0x1c3982=_0x434b0e;this[_0x1c3982(0xc6)]||(this[_0x1c3982(0xc6)]=!0x0,this[_0x1c3982(0x154)][_0x1c3982(0xea)][_0x1c3982(0x14f)](b[_0x1c3982(0x9b)](this[_0x1c3982(0x152)]))[_0x1c3982(0x11d)](_0x281796=>{var _0x255ea1=_0x1c3982;switch(_0x281796){case m[_0x255ea1(0xfe)][_0x255ea1(0x161)]:this[_0x255ea1(0x103)]();break;case m[_0x255ea1(0xfe)][_0x255ea1(0x124)]:this[_0x255ea1(0xda)]();break;}}),this[_0x1c3982(0x154)][_0x1c3982(0xed)]['pipe'](b[_0x1c3982(0x9b)](this[_0x1c3982(0x152)]))[_0x1c3982(0x11d)](_0x22e0cf=>{var _0x2c80d7=_0x1c3982;const {eventID:_0x336ea6}=_0x22e0cf;switch(_0x336ea6){case _[_0x2c80d7(0xd5)]['LIVESHARE_NEW_HOST']:this[_0x2c80d7(0xcd)](_0x22e0cf);break;case _[_0x2c80d7(0xd5)]['LIVESHARE_OPERATION']:this[_0x2c80d7(0xac)](_0x22e0cf);break;case _[_0x2c80d7(0xd5)][_0x2c80d7(0x172)]:this[_0x2c80d7(0xce)]();break;case _['CollaborationEvent'][_0x2c80d7(0xa8)]:this[_0x2c80d7(0xc5)](_0x22e0cf);break;}}));}[_0x434b0e(0xa5)](){var _0x24b50d=_0x434b0e;this[_0x24b50d(0x154)][_0x24b50d(0x173)]({'eventID':_['CollaborationEvent'][_0x24b50d(0xee)],'data':{'unitID':this[_0x24b50d(0x13c)],'userID':this[_0x24b50d(0x154)][_0x24b50d(0xdb)]()}},this[_0x24b50d(0x13c)]);}[_0x434b0e(0x125)](){var _0x308631=_0x434b0e;this[_0x308631(0xd0)]===_0x308631(0xff)&&(this['_status$'][_0x308631(0xf1)](_0x308631(0xc3)),this[_0x308631(0x154)][_0x308631(0x173)]({'eventID':_[_0x308631(0xd5)][_0x308631(0x172)],'data':{'unitID':this[_0x308631(0x13c)]}},this[_0x308631(0x13c)]));}[_0x434b0e(0xa2)](){var _0x2375d8=_0x434b0e;this['_status']===_0x2375d8(0x123)&&(this['_status$'][_0x2375d8(0xf1)](_0x2375d8(0x14d)),this[_0x2375d8(0x121)]());}[_0x434b0e(0x10e)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x434b0e(0xcd)](_0x2ac770){var _0x39575f=_0x434b0e;const {presenter:_0x20675a}=_0x2ac770[_0x39575f(0xd4)],_0x5960b2=this[_0x39575f(0x154)][_0x39575f(0xdb)]();this[_0x39575f(0xd2)]=_0x20675a,_0x20675a===_0x5960b2?(this[_0x39575f(0x15d)](),this[_0x39575f(0x104)]()):this[_0x39575f(0xd0)]!==_0x39575f(0x123)&&(this[_0x39575f(0x14c)](),this[_0x39575f(0x121)]());}['_fetchOperations'](){var _0x589962=_0x434b0e;const _0x46ebe6={'eventID':_[_0x589962(0xd5)][_0x589962(0xa0)]};this[_0x589962(0x154)][_0x589962(0x173)](_0x46ebe6,this[_0x589962(0x13c)]);}[_0x434b0e(0xce)](){var _0x2c13d6=_0x434b0e;this[_0x2c13d6(0xd2)]=null,this[_0x2c13d6(0xd0)]!==_0x2c13d6(0xff)&&this['_beIdle']();}[_0x434b0e(0xc5)](_0xd475d){var _0x409eaf=_0x434b0e;if(this[_0x409eaf(0xd0)]===_0x409eaf(0x14d)&&this[_0x409eaf(0xd2)]===_0xd475d[_0x409eaf(0xd4)][_0x409eaf(0xab)]){const _0x569f69=_[_0x409eaf(0xfd)](_0xd475d['data'])[_0x409eaf(0xb2)]['reverse']()['find'](_0x11b240=>_0x11b240['id']===C[_0x409eaf(0xc4)]['id']);if(_0x569f69){const _0x2589a5=_0x569f69[_0x409eaf(0xeb)][_0x409eaf(0x16d)],_0x3655c8=_0x569f69[_0x409eaf(0xeb)][_0x409eaf(0x131)]['id'];setTimeout(()=>{var _0x342b44=_0x409eaf;this[_0x342b44(0x13f)][_0x342b44(0xec)](C[_0x342b44(0x105)]['id'],{'unitId':_0x2589a5,'subUnitId':_0x3655c8},{'fromCollab':!0x0});});}}}[_0x434b0e(0x104)](){var _0x4885d1=_0x434b0e;this[_0x4885d1(0x142)][_0x4885d1(0xf1)]('presenting');const _0x192541=new Map(),_0x7b979c=this['_commandDisposable']=new o['DisposableCollection']();_0x7b979c[_0x4885d1(0xf0)](o['toDisposable'](()=>{var _0x1de1ec=_0x4885d1;_0x192541['forEach'](_0x28a36b=>_0x28a36b[_0x1de1ec(0xe9)]()),_0x192541[_0x1de1ec(0x13b)]();})),_0x7b979c[_0x4885d1(0xf0)](this[_0x4885d1(0x13f)][_0x4885d1(0xc9)](_0x5c6197=>{var _0x19a4d1=_0x4885d1,_0x22c1e3;if(_0x5c6197[_0x19a4d1(0x107)]!==o[_0x19a4d1(0x12f)]['OPERATION']||!this[_0x19a4d1(0xcc)]['shouldShareOperation'](_0x5c6197['id']))return;const {id:_0x183e92}=_0x5c6197;let _0x25276c;_0x192541[_0x19a4d1(0x139)](_0x183e92)?_0x25276c=_0x192541['get'](_0x183e92):(_0x25276c=new w[(_0x19a4d1(0x156))](),_0x192541[_0x19a4d1(0x155)](_0x183e92,_0x25276c),_0x25276c[_0x19a4d1(0x14f)](b['throttleTime']((_0x22c1e3=this[_0x19a4d1(0x120)][_0x19a4d1(0x119)](W))!=null?_0x22c1e3:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x19a4d1(0x11d)](_0x23468f=>{var _0x35e81f=_0x19a4d1;this['_collabSession'][_0x35e81f(0x173)]({'eventID':_[_0x35e81f(0xd5)][_0x35e81f(0x176)],'data':{'unitID':this[_0x35e81f(0x13c)],'operations':{[_0x23468f['id']]:{'id':_0x23468f['id'],'params':JSON[_0x35e81f(0x135)](_0x23468f[_0x35e81f(0xeb)])}}}},this[_0x35e81f(0x13c)]);})),_0x25276c[_0x19a4d1(0xf1)](_0x5c6197);})),this[_0x4885d1(0xcc)][_0x4885d1(0xd1)](this[_0x4885d1(0x13c)])[_0x4885d1(0xb5)](_0x449aaa=>this[_0x4885d1(0x154)][_0x4885d1(0x173)]({'eventID':_[_0x4885d1(0xd5)][_0x4885d1(0x176)],'data':{'unitID':this[_0x4885d1(0x13c)],'operations':{[_0x449aaa['id']]:{'id':_0x449aaa['id'],'params':JSON[_0x4885d1(0x135)](_0x449aaa[_0x4885d1(0xeb)])}}}},this[_0x4885d1(0x13c)]));}[_0x434b0e(0x14c)](){var _0x810553=_0x434b0e,_0x10287d;this[_0x810553(0x142)]['next'](_0x810553(0xc3)),(_0x10287d=this[_0x810553(0x12c)])==null||_0x10287d[_0x810553(0xfa)](),this[_0x810553(0x12c)]=null;}[_0x434b0e(0x121)](){var _0x29aa69=_0x434b0e,_0x3d1ea9;(_0x3d1ea9=this['_commandDisposable'])==null||_0x3d1ea9[_0x29aa69(0xfa)](),this[_0x29aa69(0x142)][_0x29aa69(0xf1)](_0x29aa69(0x14d));}['_beIdle'](){var _0x2079b2=_0x434b0e,_0x506670;this[_0x2079b2(0x142)][_0x2079b2(0xf1)](_0x2079b2(0xc3)),(_0x506670=this[_0x2079b2(0x12c)])==null||_0x506670[_0x2079b2(0xfa)](),this['_commandDisposable']=null;}[_0x434b0e(0x15d)](){var _0x2f71ca=_0x434b0e,_0x53328e;this['_status$']['next'](_0x2f71ca(0x123)),(_0x53328e=this['_commandDisposable'])==null||_0x53328e[_0x2f71ca(0xfa)]();}['_handleOperation'](_0x3960b6){var _0x1edddf=_0x434b0e;if([_0x1edddf(0xff),_0x1edddf(0x123),_0x1edddf(0x166)][_0x1edddf(0x108)](this[_0x1edddf(0xd0)])||!_0x3960b6[_0x1edddf(0xd4)][_0x1edddf(0x169)]||_0x3960b6['data']['presenter']===this[_0x1edddf(0x154)][_0x1edddf(0xdb)]())return;this[_0x1edddf(0xd0)]===_0x1edddf(0xc3)&&this[_0x1edddf(0x121)]();const _0x478bbb=_0x3960b6[_0x1edddf(0xd4)][_0x1edddf(0x102)];Object[_0x1edddf(0xde)](_0x478bbb)['forEach'](_0x5b9691=>{var _0x3ddaaf=_0x1edddf;this['_commandService']['executeCommand'](_0x5b9691['id'],_0x5b9691['params']?JSON['parse'](_0x5b9691[_0x3ddaaf(0xeb)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x77b91a=_0x434b0e,_0x3c285e;this[_0x77b91a(0x142)][_0x77b91a(0xf1)](_0x77b91a(0x166)),(_0x3c285e=this['_commandDisposable'])==null||_0x3c285e[_0x77b91a(0xfa)]();}[_0x434b0e(0xda)](){var _0x2c416d=_0x434b0e;this[_0x2c416d(0x142)][_0x2c416d(0xf1)](_0x2c416d(0xc3)),this[_0x2c416d(0xdc)]();}},exports[_0x434b0e(0xbb)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x434b0e(0xdf)](O)),S(0x4,o[_0x434b0e(0x12a)])],exports[_0x434b0e(0xbb)]);function A(){var _0xc063de=_0x434b0e;const _0x99cbf8=p[_0xc063de(0x10f)](exports['LiveShareController']),_0x14185c=p['useDependency'](o[_0xc063de(0xb6)]),_0x1cebce=p['useObservable'](()=>_0x14185c[_0xc063de(0xe3)](o[_0xc063de(0x11a)][_0xc063de(0xb4)]),void 0x0,!0x1,[]),[_0x2adbf9,_0x8d538b]=f[_0xc063de(0x106)](null),[_0x133660,_0x419fca]=f[_0xc063de(0x106)](h[_0xc063de(0xfc)]),_0x5b3819=f[_0xc063de(0xe5)](null);return f[_0xc063de(0x132)](()=>(_0x1cebce&&_0x99cbf8['getLiveShareCoordinator'](_0x1cebce['getUnitId']())[_0xc063de(0x147)](_0x476311=>{var _0x307c81=_0xc063de;_0x8d538b(_0x476311),_0x5b3819[_0x307c81(0x9e)]=_0x476311[_0x307c81(0x127)]['subscribe'](_0x4aef15=>{_0x419fca(_0x4aef15);});}),()=>{var _0x1a8f9f=_0xc063de,_0x524d95;(_0x524d95=_0x5b3819['current'])==null||_0x524d95[_0x1a8f9f(0x146)](),_0x5b3819['current']=null;}),[_0x1cebce,_0x99cbf8]),_0x2adbf9?l[_0xc063de(0x150)](g[_0xc063de(0x115)],{'align':_0xc063de(0xbd),'disabled':_0x133660===h[_0xc063de(0x161)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0xc063de(0x150)](B,{'status':_0x133660,'coordinator':_0x2adbf9}),'children':l[_0xc063de(0x150)](_0xc063de(0x96),{'className':g[_0xc063de(0x130)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x133660===h[_0xc063de(0x161)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x133660!==h[_0xc063de(0x161)]}),'type':_0xc063de(0x96),'children':l[_0xc063de(0x150)](P,{'className':_0xc063de(0x16a)})})}):null;}function B(_0x41958f){var _0x307165=_0x434b0e;const {status:_0x789de0,coordinator:_0x1f3caf}=_0x41958f;switch(_0x789de0){case h[_0x307165(0xfc)]:return l['jsx'](Y,{'coordinator':_0x1f3caf});case h[_0x307165(0x16c)]:return l[_0x307165(0x150)](Z,{'coordinator':_0x1f3caf});case h[_0x307165(0x13e)]:return l['jsx'](J,{'coordinator':_0x1f3caf});case h[_0x307165(0x161)]:return l[_0x307165(0x150)](z,{});case h[_0x307165(0x110)]:return l[_0x307165(0x150)](K,{'coordinator':_0x1f3caf});default:return null;}}function Y(_0x151fed){var _0x3e465c=_0x434b0e;const {coordinator:_0x555131}=_0x151fed;return l['jsxs'](l[_0x3e465c(0x15b)],{'children':[l[_0x3e465c(0x150)]('div',{'className':_0x3e465c(0xf3),'children':'Present\x20this\x20document'}),l[_0x3e465c(0x150)](g[_0x3e465c(0x14a)],{'onClick':()=>_0x555131[_0x3e465c(0xa5)](),'children':_0x3e465c(0x174)})]});}function Z(_0x43f39e){var _0x4a153e=_0x434b0e;const {coordinator:_0x476f39}=_0x43f39e;return l[_0x4a153e(0x16e)](l['Fragment'],{'children':[l[_0x4a153e(0x150)](_0x4a153e(0x148),{'className':_0x4a153e(0xf3),'children':_0x4a153e(0x98)}),l[_0x4a153e(0x150)](g[_0x4a153e(0x14a)],{'onClick':()=>_0x476f39[_0x4a153e(0x10e)](),'children':_0x4a153e(0xcb)})]});}function J(_0x1c7509){var _0x315948=_0x434b0e;const {coordinator:_0x1beeab}=_0x1c7509;return l['jsxs'](l['Fragment'],{'children':[l[_0x315948(0x150)]('div',{'className':_0x315948(0xf3),'children':_0x315948(0xc8)}),l['jsx'](g[_0x315948(0x14a)],{'variant':_0x315948(0x117),'onClick':()=>_0x1beeab['startFollowing'](),'children':_0x315948(0x101)})]});}function K(_0x3eb185){var _0x224314=_0x434b0e;const {coordinator:_0x21e853}=_0x3eb185;return l[_0x224314(0x16e)](l[_0x224314(0x15b)],{'children':[l[_0x224314(0x150)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](g[_0x224314(0x14a)],{'variant':_0x224314(0x175),'onClick':()=>_0x21e853['stopPresenting'](),'children':_0x224314(0x10a)})]});}function z(){var _0x426cdb=_0x434b0e;return l[_0x426cdb(0x150)](l[_0x426cdb(0x15b)],{'children':_0x426cdb(0x97)});}var Q=Object[_0x434b0e(0x10b)],X=(_0x55fd40,_0x2e55ba,_0x400f24,_0x283923)=>{var _0x267369=_0x434b0e;for(var _0x1fd646=_0x283923>0x1?void 0x0:_0x283923?Q(_0x2e55ba,_0x400f24):_0x2e55ba,_0x14cf56=_0x55fd40[_0x267369(0x167)]-0x1,_0x1969ea;_0x14cf56>=0x0;_0x14cf56--)(_0x1969ea=_0x55fd40[_0x14cf56])&&(_0x1fd646=_0x1969ea(_0x1fd646)||_0x1fd646);return _0x1fd646;},x=(_0x1cc02a,_0x397bc7)=>(_0x18ce67,_0xd7a43b)=>_0x397bc7(_0x18ce67,_0xd7a43b,_0x1cc02a);exports[_0x434b0e(0x11f)]=class extends o[_0x434b0e(0x15a)]{constructor(_0x299dd9,_0x46b57a){var _0x1822a7=_0x434b0e;super(),this['_injector']=_0x299dd9,this[_0x1822a7(0xb3)]=_0x46b57a,this[_0x1822a7(0xad)]();}['_mountLiveShare'](){var _0x42045d=_0x434b0e;this[_0x42045d(0xdd)](this['_uiPartsService']['registerComponent'](p[_0x42045d(0x116)][_0x42045d(0xd8)],()=>p['connectInjector'](A,this[_0x42045d(0xcf)])));}},exports['DesktopLiveShareController']=X([x(0x0,o['Inject'](o[_0x434b0e(0x134)])),x(0x1,p[_0x434b0e(0xa7)])],exports[_0x434b0e(0x11f)]);const ee=_0x434b0e(0x113),L={};var te=Object[_0x434b0e(0x10b)],ie=(_0x59c8be,_0x8e5337,_0x5c128f,_0x2b5488)=>{for(var _0x307c8b=_0x2b5488>0x1?void 0x0:_0x2b5488?te(_0x8e5337,_0x5c128f):_0x8e5337,_0x3bb60b=_0x59c8be['length']-0x1,_0xc566c5;_0x3bb60b>=0x0;_0x3bb60b--)(_0xc566c5=_0x59c8be[_0x3bb60b])&&(_0x307c8b=_0xc566c5(_0x307c8b)||_0x307c8b);return _0x307c8b;},ne=(_0x3ebef4,_0x4e7d42)=>(_0x216459,_0x25efa9)=>_0x4e7d42(_0x216459,_0x25efa9,_0x3ebef4);let E=class extends o['Disposable']{constructor(_0x5dc698){var _0x568b19=_0x434b0e;super(),this[_0x568b19(0xcc)]=_0x5dc698,this[_0x568b19(0xc6)]();}[_0x434b0e(0xc6)](){var _0xa15dcd=_0x434b0e;[D['SetZoomRatioOperation']['id'],D[_0xa15dcd(0x11e)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x1760e3=>{var _0x2c8161=_0xa15dcd;this[_0x2c8161(0xdd)](this[_0x2c8161(0xcc)]['registerSharedOperation'](_0x1760e3));});}};E=ie([ne(0x0,o['Inject'](O))],E);var re=Object[_0x434b0e(0xd7)],se=Object['getOwnPropertyDescriptor'],oe=(_0x39b934,_0x4bc53b,_0x534b6e)=>_0x4bc53b in _0x39b934?re(_0x39b934,_0x4bc53b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x534b6e}):_0x39b934[_0x4bc53b]=_0x534b6e,ae=(_0x8d57a3,_0x3995ce,_0x1c2c89,_0x24f6db)=>{var _0x33084f=_0x434b0e;for(var _0x23947a=_0x24f6db>0x1?void 0x0:_0x24f6db?se(_0x3995ce,_0x1c2c89):_0x3995ce,_0x53809f=_0x8d57a3[_0x33084f(0x167)]-0x1,_0x18075e;_0x53809f>=0x0;_0x53809f--)(_0x18075e=_0x8d57a3[_0x53809f])&&(_0x23947a=_0x18075e(_0x23947a)||_0x23947a);return _0x23947a;},N=(_0x1e1e30,_0x5c80aa)=>(_0x528332,_0x5e267e)=>_0x5c80aa(_0x528332,_0x5e267e,_0x1e1e30),T=(_0x5440db,_0x2eaa6c,_0x24a56f)=>oe(_0x5440db,typeof _0x2eaa6c!='symbol'?_0x2eaa6c+'':_0x2eaa6c,_0x24a56f);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x434b0e(0xd9)]=class extends o['Plugin']{constructor(_0x3aa3ae=L,_0x205788,_0x1cccce){var _0x3f7560=_0x434b0e;super(),this[_0x3f7560(0x14e)]=_0x3aa3ae,this[_0x3f7560(0xcf)]=_0x205788,this['_configService']=_0x1cccce;const {..._0x4337b1}=o[_0x3f7560(0xc0)]({},L,this['_config']);this[_0x3f7560(0x120)][_0x3f7560(0xa6)](ee,_0x4337b1);}[_0x434b0e(0x12e)](){var _0x244d12=_0x434b0e;o[_0x244d12(0x13a)](this[_0x244d12(0xcf)],o[_0x244d12(0x165)]([[O],[exports['LiveShareController']],[E],[exports[_0x244d12(0x11f)]]],this[_0x244d12(0x14e)][_0x244d12(0x160)])),o['touchDependencies'](this[_0x244d12(0xcf)],[[E]]);}[_0x434b0e(0x133)](){var _0x47ea1f=_0x434b0e;o[_0x47ea1f(0x168)](this[_0x47ea1f(0xcf)],[[exports['DesktopLiveShareController']]]);}},T(exports['UniverLiveSharePlugin'],_0x434b0e(0x107),o[_0x434b0e(0x11a)][_0x434b0e(0x15e)]),T(exports[_0x434b0e(0xd9)],'pluginName',le),exports[_0x434b0e(0xd9)]=ae([o[_0x434b0e(0xbe)](m[_0x434b0e(0xae)]),N(0x1,o[_0x434b0e(0xdf)](o[_0x434b0e(0x134)])),N(0x2,o[_0x434b0e(0x128)])],exports[_0x434b0e(0xd9)]),exports[_0x434b0e(0x100)]=A,exports[_0x434b0e(0x12d)]=O,exports[_0x434b0e(0xe2)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x421f7a=_0x4030;(function(_0x4b074f,_0x3cdfe4){var _0x379ffb=_0x4030,_0x4a4876=_0x4b074f();while(!![]){try{var _0x519817=-parseInt(_0x379ffb(0x1f3))/0x1+-parseInt(_0x379ffb(0x18f))/0x2*(parseInt(_0x379ffb(0x1e5))/0x3)+parseInt(_0x379ffb(0x1f6))/0x4*(parseInt(_0x379ffb(0x191))/0x5)+parseInt(_0x379ffb(0x1fa))/0x6+parseInt(_0x379ffb(0x1e7))/0x7*(parseInt(_0x379ffb(0x1a7))/0x8)+parseInt(_0x379ffb(0x202))/0x9+parseInt(_0x379ffb(0x1a6))/0xa;if(_0x519817===_0x3cdfe4)break;else _0x4a4876['push'](_0x4a4876['shift']());}catch(_0x348f7a){_0x4a4876['push'](_0x4a4876['shift']());}}}(_0x326c,0x684c4));var q=Object[_0x421f7a(0x17c)],z=(_0x327b43,_0x1b4357,_0x301a3f)=>_0x1b4357 in _0x327b43?q(_0x327b43,_0x1b4357,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x301a3f}):_0x327b43[_0x1b4357]=_0x301a3f,d=(_0xd3575,_0x449a63,_0x3411c0)=>z(_0xd3575,typeof _0x449a63!='symbol'?_0x449a63+'':_0x449a63,_0x3411c0);import{Disposable as _0x2abf63,toDisposable as _0x1078e1,IUniverInstanceService as _0x3889bb,Inject as _0x4b4c18,Injector as _0x12ff87,IConfigService as _0x283dc5,ICommandService as _0x62e54c,RxDisposable as _0x1bc197,UniverInstanceType as _0x3234f9,DisposableCollection as _0x3fbfad,CommandType as _0x1b7884,DependentOn as _0x242f70,Plugin as _0x525e5f,merge as _0x53247a,registerDependencies as _0x3bf986,mergeOverrideWithDependencies as _0x184474,touchDependencies as _0x10bb21}from'@univerjs/core';import{useDependency as _0x20977d,useObservable as _0xc10a5c,IUIPartsService as _0x1c1d17,BuiltInUIPart as _0x1697f8,connectInjector as _0x10655a}from'@univerjs/ui';import{jsx as _0x2ca145,jsxs as _0x3ee81b,Fragment as _0x38862d}from'react/jsx-runtime';import{Dropdown as _0x258e49,clsx as _0x9a7ef5,Button as _0x47729a}from'@univerjs/design';import{forwardRef as _0xcf7a4f,useRef as _0x435daf,createElement as _0x376bb7,useState as _0x4f9eda,useEffect as _0x4ebfa4}from'react';import{CollaborationEvent as _0x155168,parseProtocolChangeset as _0x47a67c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32ee68,SessionStatus as _0x5757f7,UniverCollaborationClientPlugin as _0x4057a8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x33c245,SetWorksheetActiveOperation as _0x278948}from'@univerjs/sheets';import{BehaviorSubject as _0x4c5bc1,Subject as _0x80fbac}from'rxjs';import{takeUntil as _0x3cddc9,throttleTime as _0x528d93}from'rxjs/operators';import{SetZoomRatioOperation as _0x192820,SetScrollOperation as _0x27f0c3}from'@univerjs/sheets-ui';var c=function(){return c=Object['assign']||function(_0x3d065e){var _0x3cf8e7=_0x4030;for(var _0x45e2d8,_0x1ac5af=0x1,_0x4d731c=arguments[_0x3cf8e7(0x1ac)];_0x1ac5af<_0x4d731c;_0x1ac5af++){_0x45e2d8=arguments[_0x1ac5af];for(var _0x5a84fc in _0x45e2d8)Object[_0x3cf8e7(0x1d9)]['hasOwnProperty'][_0x3cf8e7(0x1c4)](_0x45e2d8,_0x5a84fc)&&(_0x3d065e[_0x5a84fc]=_0x45e2d8[_0x5a84fc]);}return _0x3d065e;},c['apply'](this,arguments);},Oe=function(_0x4145bd,_0x44cf15){var _0x287d30=_0x421f7a,_0x20f715={};for(var _0x129e02 in _0x4145bd)Object[_0x287d30(0x1d9)][_0x287d30(0x15d)][_0x287d30(0x1c4)](_0x4145bd,_0x129e02)&&_0x44cf15[_0x287d30(0x1e0)](_0x129e02)<0x0&&(_0x20f715[_0x129e02]=_0x4145bd[_0x129e02]);if(_0x4145bd!=null&&typeof Object[_0x287d30(0x1d4)]==_0x287d30(0x1ba)){for(var _0x558d88=0x0,_0x129e02=Object[_0x287d30(0x1d4)](_0x4145bd);_0x558d88<_0x129e02[_0x287d30(0x1ac)];_0x558d88++)_0x44cf15[_0x287d30(0x1e0)](_0x129e02[_0x558d88])<0x0&&Object['prototype'][_0x287d30(0x1e4)][_0x287d30(0x1c4)](_0x4145bd,_0x129e02[_0x558d88])&&(_0x20f715[_0x129e02[_0x558d88]]=_0x4145bd[_0x129e02[_0x558d88]]);}return _0x20f715;},W=_0xcf7a4f(function(_0x2456e4,_0xbd4b98){var _0x232875=_0x421f7a,_0x45f655=_0x2456e4[_0x232875(0x1da)],_0x4d59cf=_0x2456e4['id'],_0x541eb9=_0x2456e4[_0x232875(0x176)],_0x3a0135=_0x2456e4[_0x232875(0x204)],_0x10f4f5=Oe(_0x2456e4,['icon','id','className',_0x232875(0x204)]),_0x132fda=_0x232875(0x18b)[_0x232875(0x1d7)](_0x4d59cf,'\x20')[_0x232875(0x1d7)](_0x541eb9||'')[_0x232875(0x16b)](),_0xe80919=_0x435daf('_'[_0x232875(0x1d7)](Ne()));return Y(_0x45f655,''[_0x232875(0x1d7)](_0x4d59cf),{'defIds':_0x45f655[_0x232875(0x200)],'idSuffix':_0xe80919[_0x232875(0x171)]},c({'ref':_0xbd4b98,'className':_0x132fda},_0x10f4f5),_0x3a0135);});function Y(_0x55f07b,_0x26e466,_0x3e3c17,_0x2c612d,_0xc69d73){var _0x2a758c=_0x421f7a;return _0x376bb7(_0x55f07b[_0x2a758c(0x1e8)],c(c({'key':_0x26e466},Ee(_0x55f07b,_0x3e3c17,_0xc69d73)),_0x2c612d),(we(_0x55f07b,_0x3e3c17)[_0x2a758c(0x188)]||[])[_0x2a758c(0x1c0)](function(_0x40c3b2,_0x36b11a){var _0x304901=_0x2a758c;return Y(_0x40c3b2,''[_0x304901(0x1d7)](_0x26e466,'-')[_0x304901(0x1d7)](_0x55f07b['tag'],'-')[_0x304901(0x1d7)](_0x36b11a),_0x3e3c17,void 0x0,_0xc69d73);}));}function Ee(_0x175085,_0x35b402,_0xc6209e){var _0x464de0=_0x421f7a,_0x2bfde6=c({},_0x175085[_0x464de0(0x16d)]);_0xc6209e!=null&&_0xc6209e['colorChannel1']&&_0x2bfde6['fill']===_0x464de0(0x1ff)&&(_0x2bfde6['fill']=_0xc6209e['colorChannel1']),_0x175085['tag']===_0x464de0(0x16e)&&_0x2bfde6['id']&&(_0x2bfde6['id']=_0x2bfde6['id']+_0x35b402['idSuffix']),Object[_0x464de0(0x1d2)](_0x2bfde6)[_0x464de0(0x16c)](function(_0x4fac57){var _0x352125=_0x464de0,_0x98b365=_0x4fac57[0x0],_0x1589b8=_0x4fac57[0x1];_0x98b365===_0x352125(0x16e)&&typeof _0x1589b8==_0x352125(0x1af)&&(_0x2bfde6[_0x98b365]=_0x1589b8[_0x352125(0x1e6)](/url\(#(.*)\)/,_0x352125(0x187)[_0x352125(0x1d7)](_0x35b402[_0x352125(0x190)],')')));});var _0x33d12e=_0x35b402[_0x464de0(0x200)];return!_0x33d12e||_0x33d12e[_0x464de0(0x1ac)]===0x0||(_0x175085[_0x464de0(0x1e8)]===_0x464de0(0x1db)&&_0x2bfde6[_0x464de0(0x1b1)]&&(_0x2bfde6['xlink:href']=_0x2bfde6[_0x464de0(0x1b1)]+_0x35b402[_0x464de0(0x190)]),Object[_0x464de0(0x1d2)](_0x2bfde6)[_0x464de0(0x16c)](function(_0x112c66){var _0x2996fe=_0x464de0,_0x4db863=_0x112c66[0x0],_0xd714ca=_0x112c66[0x1];typeof _0xd714ca=='string'&&(_0x2bfde6[_0x4db863]=_0xd714ca[_0x2996fe(0x1e6)](/url\(#(.*)\)/,'url(#$1'[_0x2996fe(0x1d7)](_0x35b402[_0x2996fe(0x190)],')')));})),_0x2bfde6;}function we(_0x5756c2,_0x424827){var _0x64bd5=_0x421f7a,_0xd7a4fc,_0x363d3e=_0x424827[_0x64bd5(0x200)];return!_0x363d3e||_0x363d3e[_0x64bd5(0x1ac)]===0x0?_0x5756c2:_0x5756c2[_0x64bd5(0x1e8)]===_0x64bd5(0x167)&&(!((_0xd7a4fc=_0x5756c2['children'])===null||_0xd7a4fc===void 0x0)&&_0xd7a4fc[_0x64bd5(0x1ac)])?c(c({},_0x5756c2),{'children':_0x5756c2[_0x64bd5(0x188)][_0x64bd5(0x1c0)](function(_0x332404){var _0x101d10=_0x64bd5;return typeof _0x332404[_0x101d10(0x16d)]['id']==_0x101d10(0x1af)&&_0x363d3e&&_0x363d3e['includes'](_0x332404[_0x101d10(0x16d)]['id'])?c(c({},_0x332404),{'attrs':c(c({},_0x332404[_0x101d10(0x16d)]),{'id':_0x332404['attrs']['id']+_0x424827[_0x101d10(0x190)]})}):_0x332404;})}):_0x5756c2;}function Ne(){var _0x69c7a3=_0x421f7a;return Math[_0x69c7a3(0x1cd)]()['toString'](0x24)[_0x69c7a3(0x15f)](0x2,0x8);}W[_0x421f7a(0x180)]=_0x421f7a(0x1cb);var Ce={'tag':_0x421f7a(0x1ed),'attrs':{'xmlns':_0x421f7a(0x20b),'fill':_0x421f7a(0x19f),'viewBox':_0x421f7a(0x16f),'width':'1em','height':_0x421f7a(0x17b)},'children':[{'tag':'path','attrs':{'fill':_0x421f7a(0x177),'d':_0x421f7a(0x1f5)}},{'tag':_0x421f7a(0x1b9),'attrs':{'fill':_0x421f7a(0x177),'d':_0x421f7a(0x196),'fillRule':_0x421f7a(0x1dc),'clipRule':_0x421f7a(0x1dc)}}]},B=_0xcf7a4f(function(_0x421f5e,_0x2dd6e2){var _0x425499=_0x421f7a;return _0x376bb7(W,Object['assign']({},_0x421f5e,{'id':_0x425499(0x1a8),'ref':_0x2dd6e2,'icon':Ce}));});B[_0x421f7a(0x180)]=_0x421f7a(0x185);class L extends _0x2abf63{constructor(){var _0x3c021e=_0x421f7a;super(...arguments),d(this,_0x3c021e(0x1c9),new Set()),d(this,_0x3c021e(0x199),new Set());}[_0x421f7a(0x1f9)](_0x4fc66b){var _0x36ba99=_0x421f7a;return this['_sharedOperations'][_0x36ba99(0x1c1)](_0x4fc66b),_0x1078e1(()=>this['_sharedOperations'][_0x36ba99(0x1d3)](_0x4fc66b));}[_0x421f7a(0x19a)](_0x1072ae){var _0x239e50=_0x421f7a;return this['_reporters'][_0x239e50(0x1c1)](_0x1072ae),_0x1078e1(()=>this[_0x239e50(0x199)]['delete'](_0x1072ae));}[_0x421f7a(0x169)](_0x432576){var _0xd168ed=_0x421f7a;return this['_sharedOperations'][_0xd168ed(0x179)](_0x432576);}[_0x421f7a(0x209)](_0x295c73){var _0x79584=_0x421f7a;return Array[_0x79584(0x194)](this[_0x79584(0x199)])[_0x79584(0x1c0)](_0x1a2860=>_0x1a2860(_0x295c73));}}var De=Object[_0x421f7a(0x1cf)],Z=(_0x3bf1d5,_0x1c6f60,_0x8e0f6,_0x48e44a)=>{var _0x5488e8=_0x421f7a;for(var _0x475bec=_0x48e44a>0x1?void 0x0:_0x48e44a?De(_0x1c6f60,_0x8e0f6):_0x1c6f60,_0x1897f6=_0x3bf1d5[_0x5488e8(0x1ac)]-0x1,_0x2cf2cb;_0x1897f6>=0x0;_0x1897f6--)(_0x2cf2cb=_0x3bf1d5[_0x1897f6])&&(_0x475bec=_0x2cf2cb(_0x475bec)||_0x475bec);return _0x475bec;},f=(_0x2ee2cb,_0x1e86c4)=>(_0x2fef02,_0x3086d7)=>_0x1e86c4(_0x2fef02,_0x3086d7,_0x2ee2cb);let m=class extends _0x1bc197{constructor(_0x2ada05,_0x4a84fa,_0x385782){var _0x74da21=_0x421f7a;super(),d(this,_0x74da21(0x1f2),new Map()),(this[_0x74da21(0x197)]=_0x2ada05,this['_injector']=_0x4a84fa,this[_0x74da21(0x1ef)]=_0x385782,this[_0x74da21(0x183)]());}async['getLiveShareCoordinator'](_0x1a148f){var _0x504322=_0x421f7a;return this[_0x504322(0x1f2)]['has'](_0x1a148f)||await this['_startLiveShareCoordinator'](_0x1a148f),this[_0x504322(0x1f2)][_0x504322(0x1ce)](_0x1a148f);}[_0x421f7a(0x183)](){var _0x2c5e49=_0x421f7a;this[_0x2c5e49(0x197)]['getTypeOfUnitAdded$'](_0x3234f9['UNIVER_SHEET'])[_0x2c5e49(0x166)](_0x3cddc9(this[_0x2c5e49(0x1a2)]))['subscribe'](async _0x3b300c=>{var _0x2b8016=_0x2c5e49;const _0x564566=_0x3b300c[_0x2b8016(0x1bf)]();this[_0x2b8016(0x1f2)]['has'](_0x564566)||this[_0x2b8016(0x184)](_0x564566);}),this[_0x2c5e49(0x197)][_0x2c5e49(0x15c)](_0x3234f9['UNIVER_SHEET'])[_0x2c5e49(0x166)](_0x3cddc9(this['dispose$']))[_0x2c5e49(0x1cc)](_0x1dfc27=>{var _0x547654=_0x2c5e49;const _0x34d4f3=_0x1dfc27[_0x547654(0x1bf)](),_0x33c495=this[_0x547654(0x1f2)]['get'](_0x34d4f3);_0x33c495==null||_0x33c495[_0x547654(0x19b)]();});}async[_0x421f7a(0x184)](_0x28ac3c){var _0x68a82d=_0x421f7a;const _0x126f4b=await this[_0x68a82d(0x1ef)][_0x68a82d(0x20a)](_0x28ac3c),_0x404c95=this[_0x68a82d(0x1b7)][_0x68a82d(0x1dd)](C,_0x28ac3c,_0x126f4b);return _0x404c95[_0x68a82d(0x1a3)](),this[_0x68a82d(0x1f2)][_0x68a82d(0x1be)](_0x28ac3c,_0x404c95),_0x404c95;}};m=Z([f(0x0,_0x3889bb),f(0x1,_0x4b4c18(_0x12ff87)),f(0x2,_0x4b4c18(_0x32ee68))],m);var h=(_0x51a75b=>(_0x51a75b['OFFLINE']=_0x421f7a(0x20d),_0x51a75b[_0x421f7a(0x1d6)]=_0x421f7a(0x1eb),_0x51a75b[_0x421f7a(0x1c2)]='following',_0x51a75b['NOT_FOLLOWING']=_0x421f7a(0x19d),_0x51a75b['PRESENTING']=_0x421f7a(0x17d),_0x51a75b))(h||{});const xe=_0x421f7a(0x1f4),Le=0xc8;let C=class extends _0x1bc197{constructor(_0x5425c9,_0x255bdb,_0x292398,_0x24d9d3,_0x2e7543){var _0x37c763=_0x421f7a;super(),d(this,_0x37c763(0x1e1),new _0x4c5bc1('idle')),d(this,_0x37c763(0x1bd),this[_0x37c763(0x1e1)][_0x37c763(0x208)]()),d(this,_0x37c763(0x183),!0x1),d(this,_0x37c763(0x1e3),null),d(this,'_presenter',null),(this[_0x37c763(0x174)]=_0x5425c9,this['_collabSession']=_0x255bdb,this['_configService']=_0x292398,this[_0x37c763(0x161)]=_0x24d9d3,this[_0x37c763(0x1e2)]=_0x2e7543);}get['_status'](){var _0x562318=_0x421f7a;return this[_0x562318(0x1e1)][_0x562318(0x1de)]();}[_0x421f7a(0x19b)](){var _0x110bad=_0x421f7a,_0x643cc1;(_0x643cc1=this[_0x110bad(0x1e3)])==null||_0x643cc1['dispose'](),this[_0x110bad(0x1e1)][_0x110bad(0x1b5)](_0x110bad(0x1eb)),this[_0x110bad(0x1e1)][_0x110bad(0x189)]();}[_0x421f7a(0x1a3)](){var _0x246eb2=_0x421f7a;this[_0x246eb2(0x183)]||(this[_0x246eb2(0x183)]=!0x0,this['_collabSession'][_0x246eb2(0x1c6)]['pipe'](_0x3cddc9(this[_0x246eb2(0x1a2)]))[_0x246eb2(0x1cc)](_0x5d4f51=>{var _0x333cce=_0x246eb2;switch(_0x5d4f51){case _0x5757f7[_0x333cce(0x1bb)]:this[_0x333cce(0x1d0)]();break;case _0x5757f7[_0x333cce(0x1ad)]:this['_handleOnline']();break;}}),this[_0x246eb2(0x168)]['event$'][_0x246eb2(0x166)](_0x3cddc9(this[_0x246eb2(0x1a2)]))[_0x246eb2(0x1cc)](_0x505099=>{var _0x35b930=_0x246eb2;const {eventID:_0x7efaaf}=_0x505099;switch(_0x7efaaf){case _0x155168[_0x35b930(0x1fe)]:this[_0x35b930(0x165)](_0x505099);break;case _0x155168[_0x35b930(0x1b2)]:this[_0x35b930(0x20e)](_0x505099);break;case _0x155168[_0x35b930(0x203)]:this[_0x35b930(0x207)]();break;case _0x155168['NEW_CHANGESETS']:this[_0x35b930(0x186)](_0x505099);break;}}));}[_0x421f7a(0x1b3)](){var _0x5480fe=_0x421f7a;this[_0x5480fe(0x168)][_0x5480fe(0x20c)]({'eventID':_0x155168[_0x5480fe(0x18a)],'data':{'unitID':this[_0x5480fe(0x174)],'userID':this['_collabSession']['getMemberID']()}},this[_0x5480fe(0x174)]);}[_0x421f7a(0x195)](){var _0x99620=_0x421f7a;this[_0x99620(0x1d1)]===_0x99620(0x17d)&&(this['_status$']['next'](_0x99620(0x1eb)),this[_0x99620(0x168)][_0x99620(0x20c)]({'eventID':_0x155168['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x99620(0x174)]}},this[_0x99620(0x174)]));}[_0x421f7a(0x206)](){var _0x3c7396=_0x421f7a;this['_status']===_0x3c7396(0x19d)&&(this[_0x3c7396(0x1e1)]['next'](_0x3c7396(0x18e)),this['_startFollowing']());}['stopFollowing'](){var _0x44990d=_0x421f7a;this['_status']===_0x44990d(0x18e)&&this[_0x44990d(0x1b4)]();}[_0x421f7a(0x165)](_0x48cf51){var _0x4564df=_0x421f7a;const {presenter:_0x191f33}=_0x48cf51['data'],_0x4dde2e=this[_0x4564df(0x168)][_0x4564df(0x1d8)]();this[_0x4564df(0x178)]=_0x191f33,_0x191f33===_0x4dde2e?(this[_0x4564df(0x1b4)](),this[_0x4564df(0x17f)]()):this[_0x4564df(0x1d1)]!==_0x4564df(0x19d)&&(this[_0x4564df(0x17a)](),this[_0x4564df(0x182)]());}[_0x421f7a(0x1fc)](){var _0x531eb9=_0x421f7a;const _0x4b8989={'eventID':_0x155168[_0x531eb9(0x1c3)]};this[_0x531eb9(0x168)][_0x531eb9(0x20c)](_0x4b8989,this[_0x531eb9(0x174)]);}[_0x421f7a(0x207)](){var _0x39f532=_0x421f7a;this[_0x39f532(0x178)]=null,this[_0x39f532(0x1d1)]!==_0x39f532(0x17d)&&this[_0x39f532(0x192)]();}['_handleNewChangeSets'](_0x83e6bd){var _0x3d91e1=_0x421f7a;if(this[_0x3d91e1(0x1d1)]==='following'&&this[_0x3d91e1(0x178)]===_0x83e6bd['data'][_0x3d91e1(0x1d5)]){const _0x2a209b=_0x47a67c(_0x83e6bd[_0x3d91e1(0x1f0)])[_0x3d91e1(0x162)][_0x3d91e1(0x1f7)]()['find'](_0x194ccc=>_0x194ccc['id']===_0x33c245['id']);if(_0x2a209b){const _0x579c09=_0x2a209b[_0x3d91e1(0x15b)]['unitId'],_0x100947=_0x2a209b[_0x3d91e1(0x15b)][_0x3d91e1(0x1b6)]['id'];setTimeout(()=>{var _0x22aeb8=_0x3d91e1;this[_0x22aeb8(0x1e2)][_0x22aeb8(0x160)](_0x278948['id'],{'unitId':_0x579c09,'subUnitId':_0x100947},{'fromCollab':!0x0});});}}}[_0x421f7a(0x17f)](){var _0x38a758=_0x421f7a;this[_0x38a758(0x1e1)][_0x38a758(0x1b5)](_0x38a758(0x17d));const _0x472b31=new Map(),_0x1c5dee=this[_0x38a758(0x1e3)]=new _0x3fbfad();_0x1c5dee[_0x38a758(0x1c1)](_0x1078e1(()=>{var _0x350a60=_0x38a758;_0x472b31[_0x350a60(0x16c)](_0x18d07c=>_0x18d07c[_0x350a60(0x189)]()),_0x472b31[_0x350a60(0x1df)]();})),_0x1c5dee[_0x38a758(0x1c1)](this[_0x38a758(0x1e2)][_0x38a758(0x173)](_0x834fde=>{var _0x38733e=_0x38a758,_0xffd947;if(_0x834fde[_0x38733e(0x1c5)]!==_0x1b7884[_0x38733e(0x18d)]||!this[_0x38733e(0x161)]['shouldShareOperation'](_0x834fde['id']))return;const {id:_0x3aa016}=_0x834fde;let _0x57938b;_0x472b31[_0x38733e(0x179)](_0x3aa016)?_0x57938b=_0x472b31[_0x38733e(0x1ce)](_0x3aa016):(_0x57938b=new _0x80fbac(),_0x472b31[_0x38733e(0x1be)](_0x3aa016,_0x57938b),_0x57938b[_0x38733e(0x166)](_0x528d93((_0xffd947=this[_0x38733e(0x1a9)][_0x38733e(0x1ea)](xe))!=null?_0xffd947:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38733e(0x1cc)](_0x520bcf=>{var _0x5241eb=_0x38733e;this[_0x5241eb(0x168)][_0x5241eb(0x20c)]({'eventID':_0x155168['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5241eb(0x174)],'operations':{[_0x520bcf['id']]:{'id':_0x520bcf['id'],'params':JSON[_0x5241eb(0x18c)](_0x520bcf[_0x5241eb(0x15b)])}}}},this[_0x5241eb(0x174)]);})),_0x57938b[_0x38733e(0x1b5)](_0x834fde);})),this['_liveShareService'][_0x38a758(0x209)](this['_unitID'])['forEach'](_0x5865fa=>this[_0x38a758(0x168)][_0x38a758(0x20c)]({'eventID':_0x155168[_0x38a758(0x1b2)],'data':{'unitID':this[_0x38a758(0x174)],'operations':{[_0x5865fa['id']]:{'id':_0x5865fa['id'],'params':JSON[_0x38a758(0x18c)](_0x5865fa['params'])}}}},this['_unitID']));}['_stopPresenting'](){var _0x2b1b29=_0x421f7a,_0x3e9251;this[_0x2b1b29(0x1e1)][_0x2b1b29(0x1b5)]('idle'),(_0x3e9251=this[_0x2b1b29(0x1e3)])==null||_0x3e9251[_0x2b1b29(0x19b)](),this[_0x2b1b29(0x1e3)]=null;}[_0x421f7a(0x182)](){var _0x529db7=_0x421f7a,_0x3f9f88;(_0x3f9f88=this[_0x529db7(0x1e3)])==null||_0x3f9f88['dispose'](),this[_0x529db7(0x1e1)][_0x529db7(0x1b5)]('following');}[_0x421f7a(0x192)](){var _0x36d8b3=_0x421f7a,_0x112b3d;this[_0x36d8b3(0x1e1)][_0x36d8b3(0x1b5)](_0x36d8b3(0x1eb)),(_0x112b3d=this[_0x36d8b3(0x1e3)])==null||_0x112b3d[_0x36d8b3(0x19b)](),this[_0x36d8b3(0x1e3)]=null;}[_0x421f7a(0x1b4)](){var _0x430138=_0x421f7a,_0x407a99;this[_0x430138(0x1e1)][_0x430138(0x1b5)](_0x430138(0x19d)),(_0x407a99=this[_0x430138(0x1e3)])==null||_0x407a99[_0x430138(0x19b)]();}[_0x421f7a(0x20e)](_0x6f38d5){var _0x4bb502=_0x421f7a;if([_0x4bb502(0x17d),_0x4bb502(0x19d),'offline']['includes'](this[_0x4bb502(0x1d1)])||!_0x6f38d5[_0x4bb502(0x1f0)]['presenter']||_0x6f38d5['data'][_0x4bb502(0x1a0)]===this[_0x4bb502(0x168)][_0x4bb502(0x1d8)]())return;this[_0x4bb502(0x1d1)]===_0x4bb502(0x1eb)&&this[_0x4bb502(0x182)]();const _0x39da89=_0x6f38d5[_0x4bb502(0x1f0)]['operations'];Object[_0x4bb502(0x1a5)](_0x39da89)['forEach'](_0x5e9898=>{var _0x121d75=_0x4bb502;this[_0x121d75(0x1e2)][_0x121d75(0x160)](_0x5e9898['id'],_0x5e9898[_0x121d75(0x15b)]?JSON[_0x121d75(0x1aa)](_0x5e9898[_0x121d75(0x15b)]):null,{'fromCollab':!0x0});});}[_0x421f7a(0x1d0)](){var _0xcc3898=_0x421f7a,_0x490604;this['_status$'][_0xcc3898(0x1b5)](_0xcc3898(0x20d)),(_0x490604=this[_0xcc3898(0x1e3)])==null||_0x490604['dispose']();}[_0x421f7a(0x1f1)](){var _0x93ed8a=_0x421f7a;this[_0x93ed8a(0x1e1)][_0x93ed8a(0x1b5)](_0x93ed8a(0x1eb)),this[_0x93ed8a(0x1fc)]();}};C=Z([f(0x2,_0x283dc5),f(0x3,_0x4b4c18(L)),f(0x4,_0x62e54c)],C);function ye(){var _0x5d27b9=_0x421f7a;const _0x2c3fa9=_0x20977d(m),_0x3ad0d9=_0x20977d(_0x3889bb),_0x40a090=_0xc10a5c(()=>_0x3ad0d9[_0x5d27b9(0x1a4)](_0x3234f9['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x389043,_0x5d2035]=_0x4f9eda(null),[_0x434ffc,_0x51a627]=_0x4f9eda(h[_0x5d27b9(0x1d6)]),_0x7f2879=_0x435daf(null);return _0x4ebfa4(()=>(_0x40a090&&_0x2c3fa9[_0x5d27b9(0x164)](_0x40a090[_0x5d27b9(0x1bf)]())[_0x5d27b9(0x19c)](_0x2ffbca=>{var _0x5b18ec=_0x5d27b9;_0x5d2035(_0x2ffbca),_0x7f2879['current']=_0x2ffbca['status$'][_0x5b18ec(0x1cc)](_0x1072cf=>{_0x51a627(_0x1072cf);});}),()=>{var _0x5f5baa=_0x5d27b9,_0x29475e;(_0x29475e=_0x7f2879[_0x5f5baa(0x171)])==null||_0x29475e['unsubscribe'](),_0x7f2879[_0x5f5baa(0x171)]=null;}),[_0x40a090,_0x2c3fa9]),_0x389043?_0x2ca145(_0x258e49,{'align':_0x5d27b9(0x1ee),'disabled':_0x434ffc===h[_0x5d27b9(0x1bb)],'className':_0x5d27b9(0x210),'overlay':_0x2ca145(Re,{'status':_0x434ffc,'coordinator':_0x389043}),'children':_0x2ca145(_0x5d27b9(0x172),{'className':_0x9a7ef5(_0x5d27b9(0x16a),{'univer-cursor-not-allowed':_0x434ffc===h[_0x5d27b9(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x434ffc!==h[_0x5d27b9(0x1bb)]}),'type':_0x5d27b9(0x172),'children':_0x2ca145(B,{'className':_0x5d27b9(0x201)})})}):null;}function Re(_0x14a21e){var _0x1f65ec=_0x421f7a;const {status:_0x1844cd,coordinator:_0xf0ac31}=_0x14a21e;switch(_0x1844cd){case h[_0x1f65ec(0x1d6)]:return _0x2ca145(Pe,{'coordinator':_0xf0ac31});case h[_0x1f65ec(0x1c2)]:return _0x2ca145(Ae,{'coordinator':_0xf0ac31});case h[_0x1f65ec(0x1fd)]:return _0x2ca145(Te,{'coordinator':_0xf0ac31});case h['OFFLINE']:return _0x2ca145(Fe,{});case h[_0x1f65ec(0x1ca)]:return _0x2ca145($e,{'coordinator':_0xf0ac31});default:return null;}}function Pe(_0x21fb35){var _0x528a3d=_0x421f7a;const {coordinator:_0x33f64e}=_0x21fb35;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145('div',{'className':_0x528a3d(0x1c7),'children':_0x528a3d(0x1b8)}),_0x2ca145(_0x47729a,{'onClick':()=>_0x33f64e[_0x528a3d(0x1b3)](),'children':_0x528a3d(0x1fb)})]});}function Ae(_0x3f254f){var _0x27377c=_0x421f7a;const {coordinator:_0x5a0829}=_0x3f254f;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x27377c(0x1ae),{'className':_0x27377c(0x1c7),'children':_0x27377c(0x1bc)}),_0x2ca145(_0x47729a,{'onClick':()=>_0x5a0829[_0x27377c(0x193)](),'children':_0x27377c(0x1f8)})]});}function Te(_0x1b6d50){var _0x48f60c=_0x421f7a;const {coordinator:_0x2d40c7}=_0x1b6d50;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x48f60c(0x1ae),{'className':_0x48f60c(0x1c7),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2ca145(_0x47729a,{'variant':_0x48f60c(0x198),'onClick':()=>_0x2d40c7['startFollowing'](),'children':_0x48f60c(0x205)})]});}function _0x4030(_0x306a91,_0x412983){var _0x326c70=_0x326c();return _0x4030=function(_0x4030e4,_0x337e69){_0x4030e4=_0x4030e4-0x15b;var _0x419c2c=_0x326c70[_0x4030e4];return _0x419c2c;},_0x4030(_0x306a91,_0x412983);}function $e(_0x3199be){var _0x37518e=_0x421f7a;const {coordinator:_0x8afd8e}=_0x3199be;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x37518e(0x1ae),{'className':_0x37518e(0x1c7),'children':_0x37518e(0x1ec)}),_0x2ca145(_0x47729a,{'variant':_0x37518e(0x1e9),'onClick':()=>_0x8afd8e[_0x37518e(0x195)](),'children':_0x37518e(0x1b0)})]});}function Fe(){var _0x4f1b44=_0x421f7a;return _0x2ca145(_0x38862d,{'children':_0x4f1b44(0x15e)});}function _0x326c(){var _0xf57f39=['requireSession','http://www.w3.org/2000/svg','send','offline','_handleOperation','pluginName','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','params','getTypeOfUnitDisposed$','hasOwnProperty','You\x27are\x20offline.','substring','executeCommand','_liveShareService','mutations','setConfig','getLiveShareCoordinator','_handleNewHost','pipe','defs','_collabSession','shouldShareOperation','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','trim','forEach','attrs','mask','0\x200\x2017\x2017','UNIVER_LIVE_SHARE_PLUGIN','current','button','onCommandExecuted','_unitID','disposeWithMe','className','currentColor','_presenter','has','_stopPresenting','1em','defineProperty','presenting','UNIVER_UNKNOWN','_startPresenting','displayName','_mountLiveShare','_startFollowing','_init','_startLiveShareCoordinator','LiveShareIcon','_handleNewChangeSets','url(#$1','children','complete','LIVESHARE_REQUEST_HOST','univerjs-icon\x20univerjs-icon-','stringify','OPERATION','following','6424EmtJrw','idSuffix','70SbgAfy','_beIdle','stopFollowing','from','stopPresenting','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','_univerInstanceService','text','_reporters','registerInitialStateReporter','dispose','then','not-following','onStarting','none','presenter','onRendered','dispose$','init','getCurrentTypeOfUnit$','values','1818530RpOJEz','56IwtrLP','live-share-icon','_configService','parse','_config','length','ONLINE','div','string','Stop\x20presenting','xlink:href','LIVESHARE_OPERATION','tryStartPresenting','_stopFollowing','next','sheet','_injector','Present\x20this\x20document','path','function','OFFLINE','You\x27re\x20following\x20the\x20presenter','status$','set','getUnitId','map','add','FOLLOWING','LIVESHARE_FETCH_OPERATIONS','call','type','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','_uiPartsService','_sharedOperations','PRESENTING','UniverIcon','subscribe','random','get','getOwnPropertyDescriptor','_handleOffline','_status','entries','delete','getOwnPropertySymbols','memberID','IDLE','concat','getMemberID','prototype','icon','use','evenodd','createInstance','getValue','clear','indexOf','_status$','_commandService','_commandDisposable','propertyIsEnumerable','246Jsqpcs','replace','356363GhteUp','tag','default','getConfig','idle','You\x27re\x20presenting\x20the\x20document','svg','end','_collabSessionService','data','_handleOnline','_entities','696978eUFEHO','SAME_OPERATION_SHARE_INTERVAL','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','31892SjUagm','reverse','Stop\x20following','registerSharedOperation','2911860dMllIk','Start','_fetchOperations','NOT_FOLLOWING','LIVESHARE_NEW_HOST','colorChannel1','defIds','univer-size-4','2271762WbyTMA','LIVESHARE_TERMINATE','extend','Start\x20following','startFollowing','_handleTerminate','asObservable','getInitialStates'];_0x326c=function(){return _0xf57f39;};return _0x326c();}var He=Object[_0x421f7a(0x1cf)],je=(_0x3c04da,_0x37218a,_0x5a3a43,_0x1287e5)=>{var _0x360b04=_0x421f7a;for(var _0x1986a9=_0x1287e5>0x1?void 0x0:_0x1287e5?He(_0x37218a,_0x5a3a43):_0x37218a,_0x4e1cb7=_0x3c04da[_0x360b04(0x1ac)]-0x1,_0x10d972;_0x4e1cb7>=0x0;_0x4e1cb7--)(_0x10d972=_0x3c04da[_0x4e1cb7])&&(_0x1986a9=_0x10d972(_0x1986a9)||_0x1986a9);return _0x1986a9;},T=(_0x4674e6,_0x599426)=>(_0x4f9bf6,_0x55b59e)=>_0x599426(_0x4f9bf6,_0x55b59e,_0x4674e6);let I=class extends _0x2abf63{constructor(_0x2242bf,_0x1d293b){var _0x1b7628=_0x421f7a;super(),this['_injector']=_0x2242bf,this[_0x1b7628(0x1c8)]=_0x1d293b,this['_mountLiveShare']();}[_0x421f7a(0x181)](){var _0x5b2334=_0x421f7a;this['disposeWithMe'](this[_0x5b2334(0x1c8)]['registerComponent'](_0x1697f8['HEADER_MENU'],()=>_0x10655a(ye,this['_injector'])));}};I=je([T(0x0,_0x4b4c18(_0x12ff87)),T(0x1,_0x1c1d17)],I);const Ue='live-share.config',$={};var Ve=Object[_0x421f7a(0x1cf)],Me=(_0x458916,_0x3113ad,_0x5ed17d,_0x1e4067)=>{var _0x504ccb=_0x421f7a;for(var _0xd92874=_0x1e4067>0x1?void 0x0:_0x1e4067?Ve(_0x3113ad,_0x5ed17d):_0x3113ad,_0x4b0548=_0x458916[_0x504ccb(0x1ac)]-0x1,_0x3f9f1d;_0x4b0548>=0x0;_0x4b0548--)(_0x3f9f1d=_0x458916[_0x4b0548])&&(_0xd92874=_0x3f9f1d(_0xd92874)||_0xd92874);return _0xd92874;},ke=(_0x2d82b5,_0x2b2085)=>(_0x3c0c6c,_0x703a12)=>_0x2b2085(_0x3c0c6c,_0x703a12,_0x2d82b5);let b=class extends _0x2abf63{constructor(_0x4a0b2f){var _0xcd0733=_0x421f7a;super(),this[_0xcd0733(0x161)]=_0x4a0b2f,this['_init']();}['_init'](){var _0x4a2323=_0x421f7a;[_0x192820['id'],_0x27f0c3['id'],_0x278948['id']][_0x4a2323(0x16c)](_0x351165=>{var _0x5cb253=_0x4a2323;this[_0x5cb253(0x175)](this[_0x5cb253(0x161)]['registerSharedOperation'](_0x351165));});}};b=Me([ke(0x0,_0x4b4c18(L))],b);var Ge=Object[_0x421f7a(0x17c)],We=Object[_0x421f7a(0x1cf)],Ye=(_0x245414,_0x5aacc1,_0x2c161c)=>_0x5aacc1 in _0x245414?Ge(_0x245414,_0x5aacc1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c161c}):_0x245414[_0x5aacc1]=_0x2c161c,Be=(_0x34e825,_0x558721,_0x589f59,_0xe42e39)=>{var _0x28eea9=_0x421f7a;for(var _0x3a4bc3=_0xe42e39>0x1?void 0x0:_0xe42e39?We(_0x558721,_0x589f59):_0x558721,_0x1bd8c4=_0x34e825[_0x28eea9(0x1ac)]-0x1,_0x50950e;_0x1bd8c4>=0x0;_0x1bd8c4--)(_0x50950e=_0x34e825[_0x1bd8c4])&&(_0x3a4bc3=_0x50950e(_0x3a4bc3)||_0x3a4bc3);return _0x3a4bc3;},F=(_0x1208ef,_0x2de1d7)=>(_0x4e919e,_0x216c68)=>_0x2de1d7(_0x4e919e,_0x216c68,_0x1208ef),J=(_0x151eb4,_0x596286,_0x50871c)=>Ye(_0x151eb4,typeof _0x596286!='symbol'?_0x596286+'':_0x596286,_0x50871c);const Ze=_0x421f7a(0x170);let O=class extends _0x525e5f{constructor(_0x495180=$,_0x82b44c,_0x931c70){var _0x5be256=_0x421f7a;super(),this[_0x5be256(0x1ab)]=_0x495180,this[_0x5be256(0x1b7)]=_0x82b44c,this['_configService']=_0x931c70;const {..._0x5eff2b}=_0x53247a({},$,this[_0x5be256(0x1ab)]);this[_0x5be256(0x1a9)][_0x5be256(0x163)](Ue,_0x5eff2b);}[_0x421f7a(0x19e)](){var _0x23f1a2=_0x421f7a;_0x3bf986(this['_injector'],_0x184474([[L],[m],[b],[I]],this[_0x23f1a2(0x1ab)]['override'])),_0x10bb21(this['_injector'],[[b]]);}[_0x421f7a(0x1a1)](){_0x10bb21(this['_injector'],[[I]]);}};J(O,'type',_0x3234f9[_0x421f7a(0x17e)]),J(O,_0x421f7a(0x20f),Ze),O=Be([_0x242f70(_0x4057a8),F(0x1,_0x4b4c18(_0x12ff87)),F(0x2,_0x283dc5)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x313013=_0x1f46;(function(_0x4b2471,_0x5b89f8){var _0x344991=_0x1f46,_0x46e958=_0x4b2471();while(!![]){try{var _0x28ae67=parseInt(_0x344991(0x181))/0x1*(parseInt(_0x344991(0xe7))/0x2)+-parseInt(_0x344991(0xed))/0x3+-parseInt(_0x344991(0xe9))/0x4*(parseInt(_0x344991(0x159))/0x5)+-parseInt(_0x344991(0xf8))/0x6*(-parseInt(_0x344991(0x141))/0x7)+-parseInt(_0x344991(0x121))/0x8+parseInt(_0x344991(0xe8))/0x9*(parseInt(_0x344991(0x179))/0xa)+parseInt(_0x344991(0x140))/0xb;if(_0x28ae67===_0x5b89f8)break;else _0x46e958['push'](_0x46e958['shift']());}catch(_0x276171){_0x46e958['push'](_0x46e958['shift']());}}}(_0x334b,0x9646d));var q=Object[_0x313013(0x11e)],z=(_0x22b249,_0x1e883d,_0x1fdd98)=>_0x1e883d in _0x22b249?q(_0x22b249,_0x1e883d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fdd98}):_0x22b249[_0x1e883d]=_0x1fdd98,d=(_0x38aae6,_0x18c38e,_0x4dcb2d)=>z(_0x38aae6,typeof _0x18c38e!='symbol'?_0x18c38e+'':_0x18c38e,_0x4dcb2d);import{Disposable as _0x15177c,toDisposable as _0x4a5097,IUniverInstanceService as _0xf8954b,Inject as _0x53b001,Injector as _0xf6095,IConfigService as _0x3638f5,ICommandService as _0x7fb0ea,RxDisposable as _0x393560,UniverInstanceType as _0x258437,DisposableCollection as _0x59dc2e,CommandType as _0x116d56,DependentOn as _0x15f744,Plugin as _0x4c9b21,merge as _0x28c635,registerDependencies as _0x28d1b1,mergeOverrideWithDependencies as _0x31c621,touchDependencies as _0x58be07}from'@univerjs/core';import{useDependency as _0x2fb90e,useObservable as _0x5ec775,IUIPartsService as _0x3a3ffe,BuiltInUIPart as _0x3d6ae4,connectInjector as _0x155e9e}from'@univerjs/ui';import{jsx as _0x3555d8,jsxs as _0x2f31fd,Fragment as _0x5efcf4}from'react/jsx-runtime';import{Dropdown as _0x2b078d,clsx as _0x392cc7,Button as _0x9c96c8}from'@univerjs/design';import{forwardRef as _0x64c43f,useRef as _0x4dbc7b,createElement as _0x4ecdb1,useState as _0x98af16,useEffect as _0x7fb2bf}from'react';import{CollaborationEvent as _0x284f8f,parseProtocolChangeset as _0x4e5eba}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x102374,SessionStatus as _0x1c4955,UniverCollaborationClientPlugin as _0x54c104}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5d62bc,SetWorksheetActiveOperation as _0x206df5}from'@univerjs/sheets';import{BehaviorSubject as _0x476844,Subject as _0x228df7}from'rxjs';function _0x334b(){var _0x5cbbf3=['You\x27re\x20presenting\x20the\x20document','has','memberID','1374485OgLUsY','You\x27re\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','registerInitialStateReporter','_handleNewChangeSets','end','url(#$1','div','_univerInstanceService','function','onRendered','map','stopFollowing','_collabSession','getOwnPropertyDescriptor','_collabSessionService','use','requireSession','registerComponent','svg','LIVESHARE_OPERATION','getMemberID','asObservable','sessionStatus$','apply','setConfig','children','path','UNIVER_SHEET','_mountLiveShare','NOT_FOLLOWING','You\x27are\x20offline.','10XtybxB','OPERATION','_reporters','string','pluginName','_config','xlink:href','currentColor','401LvfoLJ','then','toString','live-share-icon','stopPresenting','subscribe','FOLLOWING','symbol','_handleNewHost','_commandDisposable','_init','evenodd','0\x200\x2017\x2017','extend','replace','pipe','You\x27re\x20not\x20following\x20the\x20presenter','_status$','get','UniverIcon','event$','idSuffix','delete','onStarting','Stop\x20presenting','set','_handleOnline','prototype','idle','add','NEW_CHANGESETS','HEADER_MENU','http://www.w3.org/2000/svg','982dgJVmb','2912292keXife','4HQeWom','concat','complete','values','2192607mZcuAV','propertyIsEnumerable','className','tryStartPresenting','_startLiveShareCoordinator','data','Start\x20following','getValue','_configService','trim','onCommandExecuted','5322NiNUso','offline','_handleOffline','call','LIVESHARE_NEW_HOST','defIds','from','substring','_stopPresenting','getOwnPropertySymbols','forEach','init','mask','_commandService','_status','random','params','tag','UNIVER_UNKNOWN','_entities','disposeWithMe','getLiveShareCoordinator','IDLE','fill','_presenter','send','attrs','OFFLINE','none','_startFollowing','not-following','presenting','colorChannel1','SAME_OPERATION_SHARE_INTERVAL','getInitialStates','dispose','shouldShareOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','Start','_stopFollowing','4659528LXTtcC','text','current','next','parse','_handleOperation','_beIdle','hasOwnProperty','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','ONLINE','status$','mutations','includes','_handleTerminate','_sharedOperations','unitId','1em','operations','_unitID','univer-size-4','indexOf','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','live-share.config','startFollowing','dispose$','_fetchOperations','getTypeOfUnitDisposed$','clear','assign','stringify','14437445vMHkSF','2926DySAnL','entries','length','_liveShareService','PRESENTING','_startPresenting','default','getCurrentTypeOfUnit$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','find','LIVESHARE_TERMINATE','Stop\x20following','type','_uiPartsService','getUnitId','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','executeCommand','_injector','displayName','presenter','UNIVER_LIVE_SHARE_PLUGIN'];_0x334b=function(){return _0x5cbbf3;};return _0x334b();}import{takeUntil as _0xc34bd8,throttleTime as _0x72d5ce}from'rxjs/operators';import{SetZoomRatioOperation as _0xeb514c,SetScrollOperation as _0x19ee46}from'@univerjs/sheets-ui';var c=function(){var _0x598b75=_0x313013;return c=Object[_0x598b75(0x13e)]||function(_0x3738e8){var _0x15a48c=_0x598b75;for(var _0x2851bb,_0x3a6e6d=0x1,_0x1055cd=arguments[_0x15a48c(0x143)];_0x3a6e6d<_0x1055cd;_0x3a6e6d++){_0x2851bb=arguments[_0x3a6e6d];for(var _0x2403eb in _0x2851bb)Object[_0x15a48c(0xe1)][_0x15a48c(0x128)]['call'](_0x2851bb,_0x2403eb)&&(_0x3738e8[_0x2403eb]=_0x2851bb[_0x2403eb]);}return _0x3738e8;},c[_0x598b75(0x171)](this,arguments);},Oe=function(_0x1fda01,_0x55e25e){var _0x452473=_0x313013,_0x11d993={};for(var _0x17869c in _0x1fda01)Object[_0x452473(0xe1)][_0x452473(0x128)][_0x452473(0xfb)](_0x1fda01,_0x17869c)&&_0x55e25e['indexOf'](_0x17869c)<0x0&&(_0x11d993[_0x17869c]=_0x1fda01[_0x17869c]);if(_0x1fda01!=null&&typeof Object[_0x452473(0x101)]==_0x452473(0x162)){for(var _0x10bda6=0x0,_0x17869c=Object['getOwnPropertySymbols'](_0x1fda01);_0x10bda6<_0x17869c[_0x452473(0x143)];_0x10bda6++)_0x55e25e[_0x452473(0x136)](_0x17869c[_0x10bda6])<0x0&&Object[_0x452473(0xe1)][_0x452473(0xee)][_0x452473(0xfb)](_0x1fda01,_0x17869c[_0x10bda6])&&(_0x11d993[_0x17869c[_0x10bda6]]=_0x1fda01[_0x17869c[_0x10bda6]]);}return _0x11d993;},W=_0x64c43f(function(_0x2ec3db,_0x214b58){var _0x57d706=_0x313013,_0x340392=_0x2ec3db['icon'],_0x1584b4=_0x2ec3db['id'],_0x23cd5f=_0x2ec3db['className'],_0x4622c5=_0x2ec3db[_0x57d706(0xd3)],_0x3cf0dd=Oe(_0x2ec3db,['icon','id',_0x57d706(0xef),'extend']),_0x5f649='univerjs-icon\x20univerjs-icon-'['concat'](_0x1584b4,'\x20')[_0x57d706(0xea)](_0x23cd5f||'')[_0x57d706(0xf6)](),_0x4f0bc7=_0x4dbc7b('_'[_0x57d706(0xea)](Ne()));return Y(_0x340392,''[_0x57d706(0xea)](_0x1584b4),{'defIds':_0x340392['defIds'],'idSuffix':_0x4f0bc7[_0x57d706(0x123)]},c({'ref':_0x214b58,'className':_0x5f649},_0x3cf0dd),_0x4622c5);});function Y(_0x53998f,_0x29f34a,_0x2ee8dc,_0x20ff95,_0x57ca90){var _0x25f286=_0x313013;return _0x4ecdb1(_0x53998f[_0x25f286(0x109)],c(c({'key':_0x29f34a},Ee(_0x53998f,_0x2ee8dc,_0x57ca90)),_0x20ff95),(we(_0x53998f,_0x2ee8dc)[_0x25f286(0x173)]||[])[_0x25f286(0x164)](function(_0x18f9e6,_0x15694a){var _0x189e21=_0x25f286;return Y(_0x18f9e6,''['concat'](_0x29f34a,'-')[_0x189e21(0xea)](_0x53998f[_0x189e21(0x109)],'-')[_0x189e21(0xea)](_0x15694a),_0x2ee8dc,void 0x0,_0x57ca90);}));}function Ee(_0x1f24a2,_0x288921,_0x457f4c){var _0x4d9222=_0x313013,_0x11c3c6=c({},_0x1f24a2[_0x4d9222(0x112)]);_0x457f4c!=null&&_0x457f4c[_0x4d9222(0x118)]&&_0x11c3c6[_0x4d9222(0x10f)]===_0x4d9222(0x118)&&(_0x11c3c6[_0x4d9222(0x10f)]=_0x457f4c[_0x4d9222(0x118)]),_0x1f24a2[_0x4d9222(0x109)]==='mask'&&_0x11c3c6['id']&&(_0x11c3c6['id']=_0x11c3c6['id']+_0x288921['idSuffix']),Object[_0x4d9222(0x142)](_0x11c3c6)[_0x4d9222(0x102)](function(_0xdcae44){var _0x22d39f=_0x4d9222,_0x35029f=_0xdcae44[0x0],_0x4720b4=_0xdcae44[0x1];_0x35029f===_0x22d39f(0x104)&&typeof _0x4720b4==_0x22d39f(0x17c)&&(_0x11c3c6[_0x35029f]=_0x4720b4[_0x22d39f(0xd4)](/url\(#(.*)\)/,_0x22d39f(0x15f)[_0x22d39f(0xea)](_0x288921[_0x22d39f(0xdb)],')')));});var _0x1eedb8=_0x288921[_0x4d9222(0xfd)];return!_0x1eedb8||_0x1eedb8[_0x4d9222(0x143)]===0x0||(_0x1f24a2[_0x4d9222(0x109)]===_0x4d9222(0x169)&&_0x11c3c6[_0x4d9222(0x17f)]&&(_0x11c3c6[_0x4d9222(0x17f)]=_0x11c3c6[_0x4d9222(0x17f)]+_0x288921['idSuffix']),Object[_0x4d9222(0x142)](_0x11c3c6)[_0x4d9222(0x102)](function(_0x252582){var _0x437656=_0x4d9222,_0x1152a5=_0x252582[0x0],_0x12f2b4=_0x252582[0x1];typeof _0x12f2b4==_0x437656(0x17c)&&(_0x11c3c6[_0x1152a5]=_0x12f2b4['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x288921[_0x437656(0xdb)],')')));})),_0x11c3c6;}function we(_0x2d64b4,_0x2e41aa){var _0x588d7a=_0x313013,_0x4ce55c,_0x374638=_0x2e41aa[_0x588d7a(0xfd)];return!_0x374638||_0x374638[_0x588d7a(0x143)]===0x0?_0x2d64b4:_0x2d64b4[_0x588d7a(0x109)]==='defs'&&(!((_0x4ce55c=_0x2d64b4[_0x588d7a(0x173)])===null||_0x4ce55c===void 0x0)&&_0x4ce55c[_0x588d7a(0x143)])?c(c({},_0x2d64b4),{'children':_0x2d64b4[_0x588d7a(0x173)][_0x588d7a(0x164)](function(_0x5506aa){var _0x4d069f=_0x588d7a;return typeof _0x5506aa[_0x4d069f(0x112)]['id']==_0x4d069f(0x17c)&&_0x374638&&_0x374638[_0x4d069f(0x12e)](_0x5506aa[_0x4d069f(0x112)]['id'])?c(c({},_0x5506aa),{'attrs':c(c({},_0x5506aa['attrs']),{'id':_0x5506aa[_0x4d069f(0x112)]['id']+_0x2e41aa[_0x4d069f(0xdb)]})}):_0x5506aa;})}):_0x2d64b4;}function Ne(){var _0x53a472=_0x313013;return Math[_0x53a472(0x107)]()[_0x53a472(0x183)](0x24)[_0x53a472(0xff)](0x2,0x8);}W[_0x313013(0x153)]=_0x313013(0xd9);var Ce={'tag':_0x313013(0x16c),'attrs':{'xmlns':_0x313013(0xe6),'fill':_0x313013(0x114),'viewBox':_0x313013(0xd2),'width':'1em','height':_0x313013(0x132)},'children':[{'tag':'path','attrs':{'fill':_0x313013(0x180),'d':_0x313013(0x137)}},{'tag':_0x313013(0x174),'attrs':{'fill':'currentColor','d':_0x313013(0x150),'fillRule':_0x313013(0xd1),'clipRule':_0x313013(0xd1)}}]},B=_0x64c43f(function(_0x1ee37e,_0x24aca9){var _0x4fb5ab=_0x313013;return _0x4ecdb1(W,Object[_0x4fb5ab(0x13e)]({},_0x1ee37e,{'id':_0x4fb5ab(0x184),'ref':_0x24aca9,'icon':Ce}));});B['displayName']='LiveShareIcon';class L extends _0x15177c{constructor(){var _0x52e0f9=_0x313013;super(...arguments),d(this,_0x52e0f9(0x130),new Set()),d(this,_0x52e0f9(0x17b),new Set());}['registerSharedOperation'](_0x2ca1e5){var _0x458ec3=_0x313013;return this[_0x458ec3(0x130)][_0x458ec3(0xe3)](_0x2ca1e5),_0x4a5097(()=>this['_sharedOperations']['delete'](_0x2ca1e5));}[_0x313013(0x15c)](_0x2bb7e3){var _0x24179c=_0x313013;return this[_0x24179c(0x17b)]['add'](_0x2bb7e3),_0x4a5097(()=>this[_0x24179c(0x17b)][_0x24179c(0xdc)](_0x2bb7e3));}[_0x313013(0x11c)](_0x1ba50c){var _0x20a88d=_0x313013;return this['_sharedOperations'][_0x20a88d(0x157)](_0x1ba50c);}[_0x313013(0x11a)](_0x31f87c){var _0x428dc9=_0x313013;return Array[_0x428dc9(0xfe)](this[_0x428dc9(0x17b)])[_0x428dc9(0x164)](_0x24cf21=>_0x24cf21(_0x31f87c));}}var De=Object[_0x313013(0x167)],Z=(_0x4d6f8b,_0x2dbc3d,_0x26ba2a,_0x36f406)=>{for(var _0x49a4eb=_0x36f406>0x1?void 0x0:_0x36f406?De(_0x2dbc3d,_0x26ba2a):_0x2dbc3d,_0x1f6b76=_0x4d6f8b['length']-0x1,_0x4fd824;_0x1f6b76>=0x0;_0x1f6b76--)(_0x4fd824=_0x4d6f8b[_0x1f6b76])&&(_0x49a4eb=_0x4fd824(_0x49a4eb)||_0x49a4eb);return _0x49a4eb;},f=(_0x5cf09b,_0x26fc7f)=>(_0x4dfb44,_0x13d83f)=>_0x26fc7f(_0x4dfb44,_0x13d83f,_0x5cf09b);let m=class extends _0x393560{constructor(_0x58a820,_0x308e09,_0x294ad6){var _0x44caf3=_0x313013;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x58a820,this['_injector']=_0x308e09,this[_0x44caf3(0x168)]=_0x294ad6,this['_init']());}async[_0x313013(0x10d)](_0x4e10e5){var _0x5b3b10=_0x313013;return this['_entities'][_0x5b3b10(0x157)](_0x4e10e5)||await this[_0x5b3b10(0xf1)](_0x4e10e5),this['_entities'][_0x5b3b10(0xd8)](_0x4e10e5);}[_0x313013(0xd0)](){var _0x58eaea=_0x313013;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x258437[_0x58eaea(0x175)])[_0x58eaea(0xd5)](_0xc34bd8(this[_0x58eaea(0x13a)]))['subscribe'](async _0x1c2936=>{var _0x1b5456=_0x58eaea;const _0x469e39=_0x1c2936[_0x1b5456(0x14f)]();this[_0x1b5456(0x10b)][_0x1b5456(0x157)](_0x469e39)||this[_0x1b5456(0xf1)](_0x469e39);}),this[_0x58eaea(0x161)][_0x58eaea(0x13c)](_0x258437[_0x58eaea(0x175)])[_0x58eaea(0xd5)](_0xc34bd8(this[_0x58eaea(0x13a)]))[_0x58eaea(0x186)](_0x1d1991=>{var _0x53f551=_0x58eaea;const _0x4280e2=_0x1d1991['getUnitId'](),_0x5ea2f7=this[_0x53f551(0x10b)][_0x53f551(0xd8)](_0x4280e2);_0x5ea2f7==null||_0x5ea2f7[_0x53f551(0x11b)]();});}async[_0x313013(0xf1)](_0x5e718a){var _0x566925=_0x313013;const _0x5025a1=await this['_collabSessionService'][_0x566925(0x16a)](_0x5e718a),_0x4c7c7b=this['_injector']['createInstance'](C,_0x5e718a,_0x5025a1);return _0x4c7c7b[_0x566925(0x103)](),this[_0x566925(0x10b)][_0x566925(0xdf)](_0x5e718a,_0x4c7c7b),_0x4c7c7b;}};m=Z([f(0x0,_0xf8954b),f(0x1,_0x53b001(_0xf6095)),f(0x2,_0x53b001(_0x102374))],m);var h=(_0x41645f=>(_0x41645f[_0x313013(0x113)]=_0x313013(0xf9),_0x41645f[_0x313013(0x10e)]='idle',_0x41645f['FOLLOWING']=_0x313013(0x12a),_0x41645f[_0x313013(0x177)]=_0x313013(0x116),_0x41645f[_0x313013(0x145)]=_0x313013(0x117),_0x41645f))(h||{});const xe=_0x313013(0x119),Le=0xc8;let C=class extends _0x393560{constructor(_0x328c38,_0xc3a631,_0x1b58e4,_0x3413c8,_0x46df98){var _0x500b5a=_0x313013;super(),d(this,'_status$',new _0x476844(_0x500b5a(0xe2))),d(this,'status$',this[_0x500b5a(0xd7)][_0x500b5a(0x16f)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x500b5a(0x110),null),(this[_0x500b5a(0x134)]=_0x328c38,this[_0x500b5a(0x166)]=_0xc3a631,this[_0x500b5a(0xf5)]=_0x1b58e4,this[_0x500b5a(0x144)]=_0x3413c8,this['_commandService']=_0x46df98);}get[_0x313013(0x106)](){var _0x3764e0=_0x313013;return this[_0x3764e0(0xd7)][_0x3764e0(0xf4)]();}[_0x313013(0x11b)](){var _0x4a62b1=_0x313013,_0x22c8fa;(_0x22c8fa=this[_0x4a62b1(0xcf)])==null||_0x22c8fa[_0x4a62b1(0x11b)](),this[_0x4a62b1(0xd7)]['next']('idle'),this[_0x4a62b1(0xd7)][_0x4a62b1(0xeb)]();}['init'](){var _0x5b677b=_0x313013;this[_0x5b677b(0xd0)]||(this[_0x5b677b(0xd0)]=!0x0,this[_0x5b677b(0x166)][_0x5b677b(0x170)][_0x5b677b(0xd5)](_0xc34bd8(this[_0x5b677b(0x13a)]))[_0x5b677b(0x186)](_0x452b40=>{var _0xfcc22d=_0x5b677b;switch(_0x452b40){case _0x1c4955[_0xfcc22d(0x113)]:this[_0xfcc22d(0xfa)]();break;case _0x1c4955[_0xfcc22d(0x12b)]:this[_0xfcc22d(0xe0)]();break;}}),this[_0x5b677b(0x166)][_0x5b677b(0xda)][_0x5b677b(0xd5)](_0xc34bd8(this['dispose$']))[_0x5b677b(0x186)](_0x4a3375=>{var _0xc4f304=_0x5b677b;const {eventID:_0x17c91a}=_0x4a3375;switch(_0x17c91a){case _0x284f8f[_0xc4f304(0xfc)]:this[_0xc4f304(0x189)](_0x4a3375);break;case _0x284f8f[_0xc4f304(0x16d)]:this['_handleOperation'](_0x4a3375);break;case _0x284f8f[_0xc4f304(0x14b)]:this[_0xc4f304(0x12f)]();break;case _0x284f8f[_0xc4f304(0xe4)]:this[_0xc4f304(0x15d)](_0x4a3375);break;}}));}[_0x313013(0xf0)](){var _0x1b6f91=_0x313013;this['_collabSession'][_0x1b6f91(0x111)]({'eventID':_0x284f8f[_0x1b6f91(0x15b)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x1b6f91(0x16e)]()}},this[_0x1b6f91(0x134)]);}[_0x313013(0x185)](){var _0x4447ed=_0x313013;this['_status']===_0x4447ed(0x117)&&(this['_status$'][_0x4447ed(0x124)](_0x4447ed(0xe2)),this[_0x4447ed(0x166)][_0x4447ed(0x111)]({'eventID':_0x284f8f[_0x4447ed(0x14b)],'data':{'unitID':this[_0x4447ed(0x134)]}},this['_unitID']));}[_0x313013(0x139)](){var _0x4fdda0=_0x313013;this[_0x4fdda0(0x106)]===_0x4fdda0(0x116)&&(this[_0x4fdda0(0xd7)][_0x4fdda0(0x124)](_0x4fdda0(0x12a)),this[_0x4fdda0(0x115)]());}[_0x313013(0x165)](){var _0x24b687=_0x313013;this['_status']===_0x24b687(0x12a)&&this[_0x24b687(0x120)]();}['_handleNewHost'](_0x41232e){var _0xd13190=_0x313013;const {presenter:_0x440714}=_0x41232e[_0xd13190(0xf2)],_0x4df3b7=this[_0xd13190(0x166)]['getMemberID']();this[_0xd13190(0x110)]=_0x440714,_0x440714===_0x4df3b7?(this['_stopFollowing'](),this[_0xd13190(0x146)]()):this[_0xd13190(0x106)]!==_0xd13190(0x116)&&(this[_0xd13190(0x100)](),this[_0xd13190(0x115)]());}[_0x313013(0x13b)](){var _0x583848=_0x313013;const _0x4dab6d={'eventID':_0x284f8f['LIVESHARE_FETCH_OPERATIONS']};this[_0x583848(0x166)][_0x583848(0x111)](_0x4dab6d,this['_unitID']);}[_0x313013(0x12f)](){var _0x4e2b5e=_0x313013;this['_presenter']=null,this[_0x4e2b5e(0x106)]!==_0x4e2b5e(0x117)&&this['_beIdle']();}['_handleNewChangeSets'](_0x418c5a){var _0xda71b8=_0x313013;if(this[_0xda71b8(0x106)]===_0xda71b8(0x12a)&&this[_0xda71b8(0x110)]===_0x418c5a[_0xda71b8(0xf2)][_0xda71b8(0x158)]){const _0x573b6e=_0x4e5eba(_0x418c5a['data'])[_0xda71b8(0x12d)]['reverse']()[_0xda71b8(0x14a)](_0x2e6339=>_0x2e6339['id']===_0x5d62bc['id']);if(_0x573b6e){const _0x4b515b=_0x573b6e[_0xda71b8(0x108)][_0xda71b8(0x131)],_0xe5429a=_0x573b6e[_0xda71b8(0x108)]['sheet']['id'];setTimeout(()=>{var _0x1259aa=_0xda71b8;this[_0x1259aa(0x105)][_0x1259aa(0x151)](_0x206df5['id'],{'unitId':_0x4b515b,'subUnitId':_0xe5429a},{'fromCollab':!0x0});});}}}[_0x313013(0x146)](){var _0x20dc08=_0x313013;this['_status$']['next'](_0x20dc08(0x117));const _0x16af89=new Map(),_0x79190e=this[_0x20dc08(0xcf)]=new _0x59dc2e();_0x79190e['add'](_0x4a5097(()=>{var _0x1cc7bd=_0x20dc08;_0x16af89[_0x1cc7bd(0x102)](_0x1d1deb=>_0x1d1deb['complete']()),_0x16af89[_0x1cc7bd(0x13d)]();})),_0x79190e[_0x20dc08(0xe3)](this[_0x20dc08(0x105)][_0x20dc08(0xf7)](_0x11ecaf=>{var _0x17c565=_0x20dc08,_0x35bf68;if(_0x11ecaf[_0x17c565(0x14d)]!==_0x116d56[_0x17c565(0x17a)]||!this['_liveShareService'][_0x17c565(0x11c)](_0x11ecaf['id']))return;const {id:_0x337384}=_0x11ecaf;let _0x44b0b3;_0x16af89[_0x17c565(0x157)](_0x337384)?_0x44b0b3=_0x16af89[_0x17c565(0xd8)](_0x337384):(_0x44b0b3=new _0x228df7(),_0x16af89[_0x17c565(0xdf)](_0x337384,_0x44b0b3),_0x44b0b3[_0x17c565(0xd5)](_0x72d5ce((_0x35bf68=this[_0x17c565(0xf5)]['getConfig'](xe))!=null?_0x35bf68:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5c7348=>{var _0x4f4f6e=_0x17c565;this[_0x4f4f6e(0x166)][_0x4f4f6e(0x111)]({'eventID':_0x284f8f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4f4f6e(0x134)],'operations':{[_0x5c7348['id']]:{'id':_0x5c7348['id'],'params':JSON[_0x4f4f6e(0x13f)](_0x5c7348[_0x4f4f6e(0x108)])}}}},this['_unitID']);})),_0x44b0b3[_0x17c565(0x124)](_0x11ecaf);})),this['_liveShareService'][_0x20dc08(0x11a)](this[_0x20dc08(0x134)])[_0x20dc08(0x102)](_0x2d547f=>this[_0x20dc08(0x166)][_0x20dc08(0x111)]({'eventID':_0x284f8f[_0x20dc08(0x16d)],'data':{'unitID':this[_0x20dc08(0x134)],'operations':{[_0x2d547f['id']]:{'id':_0x2d547f['id'],'params':JSON[_0x20dc08(0x13f)](_0x2d547f[_0x20dc08(0x108)])}}}},this['_unitID']));}[_0x313013(0x100)](){var _0x486d55=_0x313013,_0x57aa57;this[_0x486d55(0xd7)][_0x486d55(0x124)](_0x486d55(0xe2)),(_0x57aa57=this[_0x486d55(0xcf)])==null||_0x57aa57[_0x486d55(0x11b)](),this[_0x486d55(0xcf)]=null;}[_0x313013(0x115)](){var _0x1b7503=_0x313013,_0x3308b8;(_0x3308b8=this[_0x1b7503(0xcf)])==null||_0x3308b8[_0x1b7503(0x11b)](),this[_0x1b7503(0xd7)][_0x1b7503(0x124)](_0x1b7503(0x12a));}[_0x313013(0x127)](){var _0xd787a7=_0x313013,_0x4a6e5d;this[_0xd787a7(0xd7)]['next']('idle'),(_0x4a6e5d=this['_commandDisposable'])==null||_0x4a6e5d[_0xd787a7(0x11b)](),this[_0xd787a7(0xcf)]=null;}[_0x313013(0x120)](){var _0x985948=_0x313013,_0x143153;this[_0x985948(0xd7)][_0x985948(0x124)](_0x985948(0x116)),(_0x143153=this['_commandDisposable'])==null||_0x143153['dispose']();}[_0x313013(0x126)](_0x1f86a8){var _0x11499f=_0x313013;if(['presenting','not-following',_0x11499f(0xf9)][_0x11499f(0x12e)](this['_status'])||!_0x1f86a8['data'][_0x11499f(0x154)]||_0x1f86a8['data'][_0x11499f(0x154)]===this[_0x11499f(0x166)]['getMemberID']())return;this['_status']==='idle'&&this['_startFollowing']();const _0x5c973b=_0x1f86a8['data'][_0x11499f(0x133)];Object[_0x11499f(0xec)](_0x5c973b)[_0x11499f(0x102)](_0x1e2255=>{var _0x956441=_0x11499f;this['_commandService'][_0x956441(0x151)](_0x1e2255['id'],_0x1e2255[_0x956441(0x108)]?JSON[_0x956441(0x125)](_0x1e2255['params']):null,{'fromCollab':!0x0});});}[_0x313013(0xfa)](){var _0x569263=_0x313013,_0x1e4f2a;this['_status$'][_0x569263(0x124)](_0x569263(0xf9)),(_0x1e4f2a=this['_commandDisposable'])==null||_0x1e4f2a[_0x569263(0x11b)]();}['_handleOnline'](){var _0x466c49=_0x313013;this[_0x466c49(0xd7)][_0x466c49(0x124)](_0x466c49(0xe2)),this[_0x466c49(0x13b)]();}};C=Z([f(0x2,_0x3638f5),f(0x3,_0x53b001(L)),f(0x4,_0x7fb0ea)],C);function ye(){var _0x314021=_0x313013;const _0x339b9b=_0x2fb90e(m),_0x41d55b=_0x2fb90e(_0xf8954b),_0xc37bb8=_0x5ec775(()=>_0x41d55b[_0x314021(0x148)](_0x258437[_0x314021(0x175)]),void 0x0,!0x1,[]),[_0x102d6b,_0x1d4cba]=_0x98af16(null),[_0x4165ce,_0x545219]=_0x98af16(h[_0x314021(0x10e)]),_0x420796=_0x4dbc7b(null);return _0x7fb2bf(()=>(_0xc37bb8&&_0x339b9b[_0x314021(0x10d)](_0xc37bb8['getUnitId']())[_0x314021(0x182)](_0x2e28ac=>{var _0x47970b=_0x314021;_0x1d4cba(_0x2e28ac),_0x420796[_0x47970b(0x123)]=_0x2e28ac[_0x47970b(0x12c)][_0x47970b(0x186)](_0x54b82e=>{_0x545219(_0x54b82e);});}),()=>{var _0x4bc3b1=_0x314021,_0x5a840c;(_0x5a840c=_0x420796['current'])==null||_0x5a840c['unsubscribe'](),_0x420796[_0x4bc3b1(0x123)]=null;}),[_0xc37bb8,_0x339b9b]),_0x102d6b?_0x3555d8(_0x2b078d,{'align':_0x314021(0x15e),'disabled':_0x4165ce===h['OFFLINE'],'className':_0x314021(0x149),'overlay':_0x3555d8(Re,{'status':_0x4165ce,'coordinator':_0x102d6b}),'children':_0x3555d8('button',{'className':_0x392cc7(_0x314021(0x129),{'univer-cursor-not-allowed':_0x4165ce===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4165ce!==h[_0x314021(0x113)]}),'type':'button','children':_0x3555d8(B,{'className':_0x314021(0x135)})})}):null;}function Re(_0x44856a){var _0x298c51=_0x313013;const {status:_0x56b573,coordinator:_0x539a08}=_0x44856a;switch(_0x56b573){case h['IDLE']:return _0x3555d8(Pe,{'coordinator':_0x539a08});case h[_0x298c51(0x187)]:return _0x3555d8(Ae,{'coordinator':_0x539a08});case h[_0x298c51(0x177)]:return _0x3555d8(Te,{'coordinator':_0x539a08});case h[_0x298c51(0x113)]:return _0x3555d8(Fe,{});case h[_0x298c51(0x145)]:return _0x3555d8($e,{'coordinator':_0x539a08});default:return null;}}function Pe(_0x80c14e){var _0xff4f5a=_0x313013;const {coordinator:_0x4c6825}=_0x80c14e;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0xff4f5a(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x3555d8(_0x9c96c8,{'onClick':()=>_0x4c6825['tryStartPresenting'](),'children':_0xff4f5a(0x11f)})]});}function Ae(_0x44b01e){var _0x515a31=_0x313013;const {coordinator:_0x2692ab}=_0x44b01e;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x515a31(0x160),{'className':_0x515a31(0x11d),'children':_0x515a31(0x15a)}),_0x3555d8(_0x9c96c8,{'onClick':()=>_0x2692ab[_0x515a31(0x165)](),'children':_0x515a31(0x14c)})]});}function Te(_0x49f43a){var _0x4376fe=_0x313013;const {coordinator:_0x1f158e}=_0x49f43a;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x4376fe(0x160),{'className':_0x4376fe(0x11d),'children':_0x4376fe(0xd6)}),_0x3555d8(_0x9c96c8,{'variant':_0x4376fe(0x122),'onClick':()=>_0x1f158e['startFollowing'](),'children':_0x4376fe(0xf3)})]});}function $e(_0x4e9212){var _0x720036=_0x313013;const {coordinator:_0x328804}=_0x4e9212;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x720036(0x160),{'className':_0x720036(0x11d),'children':_0x720036(0x156)}),_0x3555d8(_0x9c96c8,{'variant':_0x720036(0x147),'onClick':()=>_0x328804[_0x720036(0x185)](),'children':_0x720036(0xde)})]});}function Fe(){var _0x55f51f=_0x313013;return _0x3555d8(_0x5efcf4,{'children':_0x55f51f(0x178)});}var He=Object[_0x313013(0x167)],je=(_0x1685c8,_0x21b651,_0xfeb339,_0xddb9c7)=>{var _0x5eb066=_0x313013;for(var _0x2f858c=_0xddb9c7>0x1?void 0x0:_0xddb9c7?He(_0x21b651,_0xfeb339):_0x21b651,_0x684bf1=_0x1685c8[_0x5eb066(0x143)]-0x1,_0x294d7a;_0x684bf1>=0x0;_0x684bf1--)(_0x294d7a=_0x1685c8[_0x684bf1])&&(_0x2f858c=_0x294d7a(_0x2f858c)||_0x2f858c);return _0x2f858c;},T=(_0x5b2d28,_0x151edf)=>(_0x296c33,_0x1174ca)=>_0x151edf(_0x296c33,_0x1174ca,_0x5b2d28);let I=class extends _0x15177c{constructor(_0x24fd2e,_0xb65f10){var _0x59ef71=_0x313013;super(),this[_0x59ef71(0x152)]=_0x24fd2e,this[_0x59ef71(0x14e)]=_0xb65f10,this[_0x59ef71(0x176)]();}[_0x313013(0x176)](){var _0x255b3d=_0x313013;this[_0x255b3d(0x10c)](this['_uiPartsService'][_0x255b3d(0x16b)](_0x3d6ae4[_0x255b3d(0xe5)],()=>_0x155e9e(ye,this['_injector'])));}};I=je([T(0x0,_0x53b001(_0xf6095)),T(0x1,_0x3a3ffe)],I);const Ue=_0x313013(0x138),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x29e501,_0x2636ad,_0x1df281,_0x379429)=>{for(var _0x12a71d=_0x379429>0x1?void 0x0:_0x379429?Ve(_0x2636ad,_0x1df281):_0x2636ad,_0x227c85=_0x29e501['length']-0x1,_0x10a99e;_0x227c85>=0x0;_0x227c85--)(_0x10a99e=_0x29e501[_0x227c85])&&(_0x12a71d=_0x10a99e(_0x12a71d)||_0x12a71d);return _0x12a71d;},ke=(_0x3dce66,_0x50184d)=>(_0x3fd6c4,_0x5de585)=>_0x50184d(_0x3fd6c4,_0x5de585,_0x3dce66);let b=class extends _0x15177c{constructor(_0x230942){var _0x427f6c=_0x313013;super(),this['_liveShareService']=_0x230942,this[_0x427f6c(0xd0)]();}['_init'](){var _0x46fcc4=_0x313013;[_0xeb514c['id'],_0x19ee46['id'],_0x206df5['id']][_0x46fcc4(0x102)](_0x10bc55=>{var _0xddee00=_0x46fcc4;this[_0xddee00(0x10c)](this[_0xddee00(0x144)]['registerSharedOperation'](_0x10bc55));});}};b=Me([ke(0x0,_0x53b001(L))],b);function _0x1f46(_0x48f29d,_0x15a0a4){var _0x334b97=_0x334b();return _0x1f46=function(_0x1f46f6,_0x559c99){_0x1f46f6=_0x1f46f6-0xcf;var _0x4bf02a=_0x334b97[_0x1f46f6];return _0x4bf02a;},_0x1f46(_0x48f29d,_0x15a0a4);}var Ge=Object[_0x313013(0x11e)],We=Object[_0x313013(0x167)],Ye=(_0x3c3a3a,_0x5e0b27,_0x5957c7)=>_0x5e0b27 in _0x3c3a3a?Ge(_0x3c3a3a,_0x5e0b27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5957c7}):_0x3c3a3a[_0x5e0b27]=_0x5957c7,Be=(_0x105d6d,_0x2a9926,_0x3746be,_0x55920f)=>{var _0x2eecc5=_0x313013;for(var _0x95ffab=_0x55920f>0x1?void 0x0:_0x55920f?We(_0x2a9926,_0x3746be):_0x2a9926,_0x36b6e2=_0x105d6d[_0x2eecc5(0x143)]-0x1,_0x47265e;_0x36b6e2>=0x0;_0x36b6e2--)(_0x47265e=_0x105d6d[_0x36b6e2])&&(_0x95ffab=_0x47265e(_0x95ffab)||_0x95ffab);return _0x95ffab;},F=(_0x53bcef,_0x1d6dfe)=>(_0x117f67,_0x461383)=>_0x1d6dfe(_0x117f67,_0x461383,_0x53bcef),J=(_0x52903c,_0xf7d54f,_0x6c2858)=>Ye(_0x52903c,typeof _0xf7d54f!=_0x313013(0x188)?_0xf7d54f+'':_0xf7d54f,_0x6c2858);const Ze=_0x313013(0x155);let O=class extends _0x4c9b21{constructor(_0x43cf82=$,_0x37f506,_0x1e4d9a){var _0x2354c3=_0x313013;super(),this[_0x2354c3(0x17e)]=_0x43cf82,this[_0x2354c3(0x152)]=_0x37f506,this[_0x2354c3(0xf5)]=_0x1e4d9a;const {..._0xa103c8}=_0x28c635({},$,this['_config']);this[_0x2354c3(0xf5)][_0x2354c3(0x172)](Ue,_0xa103c8);}[_0x313013(0xdd)](){var _0x126b5b=_0x313013;_0x28d1b1(this['_injector'],_0x31c621([[L],[m],[b],[I]],this[_0x126b5b(0x17e)]['override'])),_0x58be07(this['_injector'],[[b]]);}[_0x313013(0x163)](){var _0x17357f=_0x313013;_0x58be07(this[_0x17357f(0x152)],[[I]]);}};J(O,_0x313013(0x14d),_0x258437[_0x313013(0x10a)]),J(O,_0x313013(0x17d),Ze),O=Be([_0x15f744(_0x54c104),F(0x1,_0x53b001(_0xf6095)),F(0x2,_0x3638f5)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x421f7a=_0x4030;(function(_0x4b074f,_0x3cdfe4){var _0x379ffb=_0x4030,_0x4a4876=_0x4b074f();while(!![]){try{var _0x519817=-parseInt(_0x379ffb(0x1f3))/0x1+-parseInt(_0x379ffb(0x18f))/0x2*(parseInt(_0x379ffb(0x1e5))/0x3)+parseInt(_0x379ffb(0x1f6))/0x4*(parseInt(_0x379ffb(0x191))/0x5)+parseInt(_0x379ffb(0x1fa))/0x6+parseInt(_0x379ffb(0x1e7))/0x7*(parseInt(_0x379ffb(0x1a7))/0x8)+parseInt(_0x379ffb(0x202))/0x9+parseInt(_0x379ffb(0x1a6))/0xa;if(_0x519817===_0x3cdfe4)break;else _0x4a4876['push'](_0x4a4876['shift']());}catch(_0x348f7a){_0x4a4876['push'](_0x4a4876['shift']());}}}(_0x326c,0x684c4));var q=Object[_0x421f7a(0x17c)],z=(_0x327b43,_0x1b4357,_0x301a3f)=>_0x1b4357 in _0x327b43?q(_0x327b43,_0x1b4357,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x301a3f}):_0x327b43[_0x1b4357]=_0x301a3f,d=(_0xd3575,_0x449a63,_0x3411c0)=>z(_0xd3575,typeof _0x449a63!='symbol'?_0x449a63+'':_0x449a63,_0x3411c0);import{Disposable as _0x2abf63,toDisposable as _0x1078e1,IUniverInstanceService as _0x3889bb,Inject as _0x4b4c18,Injector as _0x12ff87,IConfigService as _0x283dc5,ICommandService as _0x62e54c,RxDisposable as _0x1bc197,UniverInstanceType as _0x3234f9,DisposableCollection as _0x3fbfad,CommandType as _0x1b7884,DependentOn as _0x242f70,Plugin as _0x525e5f,merge as _0x53247a,registerDependencies as _0x3bf986,mergeOverrideWithDependencies as _0x184474,touchDependencies as _0x10bb21}from'@univerjs/core';import{useDependency as _0x20977d,useObservable as _0xc10a5c,IUIPartsService as _0x1c1d17,BuiltInUIPart as _0x1697f8,connectInjector as _0x10655a}from'@univerjs/ui';import{jsx as _0x2ca145,jsxs as _0x3ee81b,Fragment as _0x38862d}from'react/jsx-runtime';import{Dropdown as _0x258e49,clsx as _0x9a7ef5,Button as _0x47729a}from'@univerjs/design';import{forwardRef as _0xcf7a4f,useRef as _0x435daf,createElement as _0x376bb7,useState as _0x4f9eda,useEffect as _0x4ebfa4}from'react';import{CollaborationEvent as _0x155168,parseProtocolChangeset as _0x47a67c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32ee68,SessionStatus as _0x5757f7,UniverCollaborationClientPlugin as _0x4057a8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x33c245,SetWorksheetActiveOperation as _0x278948}from'@univerjs/sheets';import{BehaviorSubject as _0x4c5bc1,Subject as _0x80fbac}from'rxjs';import{takeUntil as _0x3cddc9,throttleTime as _0x528d93}from'rxjs/operators';import{SetZoomRatioOperation as _0x192820,SetScrollOperation as _0x27f0c3}from'@univerjs/sheets-ui';var c=function(){return c=Object['assign']||function(_0x3d065e){var _0x3cf8e7=_0x4030;for(var _0x45e2d8,_0x1ac5af=0x1,_0x4d731c=arguments[_0x3cf8e7(0x1ac)];_0x1ac5af<_0x4d731c;_0x1ac5af++){_0x45e2d8=arguments[_0x1ac5af];for(var _0x5a84fc in _0x45e2d8)Object[_0x3cf8e7(0x1d9)]['hasOwnProperty'][_0x3cf8e7(0x1c4)](_0x45e2d8,_0x5a84fc)&&(_0x3d065e[_0x5a84fc]=_0x45e2d8[_0x5a84fc]);}return _0x3d065e;},c['apply'](this,arguments);},Oe=function(_0x4145bd,_0x44cf15){var _0x287d30=_0x421f7a,_0x20f715={};for(var _0x129e02 in _0x4145bd)Object[_0x287d30(0x1d9)][_0x287d30(0x15d)][_0x287d30(0x1c4)](_0x4145bd,_0x129e02)&&_0x44cf15[_0x287d30(0x1e0)](_0x129e02)<0x0&&(_0x20f715[_0x129e02]=_0x4145bd[_0x129e02]);if(_0x4145bd!=null&&typeof Object[_0x287d30(0x1d4)]==_0x287d30(0x1ba)){for(var _0x558d88=0x0,_0x129e02=Object[_0x287d30(0x1d4)](_0x4145bd);_0x558d88<_0x129e02[_0x287d30(0x1ac)];_0x558d88++)_0x44cf15[_0x287d30(0x1e0)](_0x129e02[_0x558d88])<0x0&&Object['prototype'][_0x287d30(0x1e4)][_0x287d30(0x1c4)](_0x4145bd,_0x129e02[_0x558d88])&&(_0x20f715[_0x129e02[_0x558d88]]=_0x4145bd[_0x129e02[_0x558d88]]);}return _0x20f715;},W=_0xcf7a4f(function(_0x2456e4,_0xbd4b98){var _0x232875=_0x421f7a,_0x45f655=_0x2456e4[_0x232875(0x1da)],_0x4d59cf=_0x2456e4['id'],_0x541eb9=_0x2456e4[_0x232875(0x176)],_0x3a0135=_0x2456e4[_0x232875(0x204)],_0x10f4f5=Oe(_0x2456e4,['icon','id','className',_0x232875(0x204)]),_0x132fda=_0x232875(0x18b)[_0x232875(0x1d7)](_0x4d59cf,'\x20')[_0x232875(0x1d7)](_0x541eb9||'')[_0x232875(0x16b)](),_0xe80919=_0x435daf('_'[_0x232875(0x1d7)](Ne()));return Y(_0x45f655,''[_0x232875(0x1d7)](_0x4d59cf),{'defIds':_0x45f655[_0x232875(0x200)],'idSuffix':_0xe80919[_0x232875(0x171)]},c({'ref':_0xbd4b98,'className':_0x132fda},_0x10f4f5),_0x3a0135);});function Y(_0x55f07b,_0x26e466,_0x3e3c17,_0x2c612d,_0xc69d73){var _0x2a758c=_0x421f7a;return _0x376bb7(_0x55f07b[_0x2a758c(0x1e8)],c(c({'key':_0x26e466},Ee(_0x55f07b,_0x3e3c17,_0xc69d73)),_0x2c612d),(we(_0x55f07b,_0x3e3c17)[_0x2a758c(0x188)]||[])[_0x2a758c(0x1c0)](function(_0x40c3b2,_0x36b11a){var _0x304901=_0x2a758c;return Y(_0x40c3b2,''[_0x304901(0x1d7)](_0x26e466,'-')[_0x304901(0x1d7)](_0x55f07b['tag'],'-')[_0x304901(0x1d7)](_0x36b11a),_0x3e3c17,void 0x0,_0xc69d73);}));}function Ee(_0x175085,_0x35b402,_0xc6209e){var _0x464de0=_0x421f7a,_0x2bfde6=c({},_0x175085[_0x464de0(0x16d)]);_0xc6209e!=null&&_0xc6209e['colorChannel1']&&_0x2bfde6['fill']===_0x464de0(0x1ff)&&(_0x2bfde6['fill']=_0xc6209e['colorChannel1']),_0x175085['tag']===_0x464de0(0x16e)&&_0x2bfde6['id']&&(_0x2bfde6['id']=_0x2bfde6['id']+_0x35b402['idSuffix']),Object[_0x464de0(0x1d2)](_0x2bfde6)[_0x464de0(0x16c)](function(_0x4fac57){var _0x352125=_0x464de0,_0x98b365=_0x4fac57[0x0],_0x1589b8=_0x4fac57[0x1];_0x98b365===_0x352125(0x16e)&&typeof _0x1589b8==_0x352125(0x1af)&&(_0x2bfde6[_0x98b365]=_0x1589b8[_0x352125(0x1e6)](/url\(#(.*)\)/,_0x352125(0x187)[_0x352125(0x1d7)](_0x35b402[_0x352125(0x190)],')')));});var _0x33d12e=_0x35b402[_0x464de0(0x200)];return!_0x33d12e||_0x33d12e[_0x464de0(0x1ac)]===0x0||(_0x175085[_0x464de0(0x1e8)]===_0x464de0(0x1db)&&_0x2bfde6[_0x464de0(0x1b1)]&&(_0x2bfde6['xlink:href']=_0x2bfde6[_0x464de0(0x1b1)]+_0x35b402[_0x464de0(0x190)]),Object[_0x464de0(0x1d2)](_0x2bfde6)[_0x464de0(0x16c)](function(_0x112c66){var _0x2996fe=_0x464de0,_0x4db863=_0x112c66[0x0],_0xd714ca=_0x112c66[0x1];typeof _0xd714ca=='string'&&(_0x2bfde6[_0x4db863]=_0xd714ca[_0x2996fe(0x1e6)](/url\(#(.*)\)/,'url(#$1'[_0x2996fe(0x1d7)](_0x35b402[_0x2996fe(0x190)],')')));})),_0x2bfde6;}function we(_0x5756c2,_0x424827){var _0x64bd5=_0x421f7a,_0xd7a4fc,_0x363d3e=_0x424827[_0x64bd5(0x200)];return!_0x363d3e||_0x363d3e[_0x64bd5(0x1ac)]===0x0?_0x5756c2:_0x5756c2[_0x64bd5(0x1e8)]===_0x64bd5(0x167)&&(!((_0xd7a4fc=_0x5756c2['children'])===null||_0xd7a4fc===void 0x0)&&_0xd7a4fc[_0x64bd5(0x1ac)])?c(c({},_0x5756c2),{'children':_0x5756c2[_0x64bd5(0x188)][_0x64bd5(0x1c0)](function(_0x332404){var _0x101d10=_0x64bd5;return typeof _0x332404[_0x101d10(0x16d)]['id']==_0x101d10(0x1af)&&_0x363d3e&&_0x363d3e['includes'](_0x332404[_0x101d10(0x16d)]['id'])?c(c({},_0x332404),{'attrs':c(c({},_0x332404[_0x101d10(0x16d)]),{'id':_0x332404['attrs']['id']+_0x424827[_0x101d10(0x190)]})}):_0x332404;})}):_0x5756c2;}function Ne(){var _0x69c7a3=_0x421f7a;return Math[_0x69c7a3(0x1cd)]()['toString'](0x24)[_0x69c7a3(0x15f)](0x2,0x8);}W[_0x421f7a(0x180)]=_0x421f7a(0x1cb);var Ce={'tag':_0x421f7a(0x1ed),'attrs':{'xmlns':_0x421f7a(0x20b),'fill':_0x421f7a(0x19f),'viewBox':_0x421f7a(0x16f),'width':'1em','height':_0x421f7a(0x17b)},'children':[{'tag':'path','attrs':{'fill':_0x421f7a(0x177),'d':_0x421f7a(0x1f5)}},{'tag':_0x421f7a(0x1b9),'attrs':{'fill':_0x421f7a(0x177),'d':_0x421f7a(0x196),'fillRule':_0x421f7a(0x1dc),'clipRule':_0x421f7a(0x1dc)}}]},B=_0xcf7a4f(function(_0x421f5e,_0x2dd6e2){var _0x425499=_0x421f7a;return _0x376bb7(W,Object['assign']({},_0x421f5e,{'id':_0x425499(0x1a8),'ref':_0x2dd6e2,'icon':Ce}));});B[_0x421f7a(0x180)]=_0x421f7a(0x185);class L extends _0x2abf63{constructor(){var _0x3c021e=_0x421f7a;super(...arguments),d(this,_0x3c021e(0x1c9),new Set()),d(this,_0x3c021e(0x199),new Set());}[_0x421f7a(0x1f9)](_0x4fc66b){var _0x36ba99=_0x421f7a;return this['_sharedOperations'][_0x36ba99(0x1c1)](_0x4fc66b),_0x1078e1(()=>this['_sharedOperations'][_0x36ba99(0x1d3)](_0x4fc66b));}[_0x421f7a(0x19a)](_0x1072ae){var _0x239e50=_0x421f7a;return this['_reporters'][_0x239e50(0x1c1)](_0x1072ae),_0x1078e1(()=>this[_0x239e50(0x199)]['delete'](_0x1072ae));}[_0x421f7a(0x169)](_0x432576){var _0xd168ed=_0x421f7a;return this['_sharedOperations'][_0xd168ed(0x179)](_0x432576);}[_0x421f7a(0x209)](_0x295c73){var _0x79584=_0x421f7a;return Array[_0x79584(0x194)](this[_0x79584(0x199)])[_0x79584(0x1c0)](_0x1a2860=>_0x1a2860(_0x295c73));}}var De=Object[_0x421f7a(0x1cf)],Z=(_0x3bf1d5,_0x1c6f60,_0x8e0f6,_0x48e44a)=>{var _0x5488e8=_0x421f7a;for(var _0x475bec=_0x48e44a>0x1?void 0x0:_0x48e44a?De(_0x1c6f60,_0x8e0f6):_0x1c6f60,_0x1897f6=_0x3bf1d5[_0x5488e8(0x1ac)]-0x1,_0x2cf2cb;_0x1897f6>=0x0;_0x1897f6--)(_0x2cf2cb=_0x3bf1d5[_0x1897f6])&&(_0x475bec=_0x2cf2cb(_0x475bec)||_0x475bec);return _0x475bec;},f=(_0x2ee2cb,_0x1e86c4)=>(_0x2fef02,_0x3086d7)=>_0x1e86c4(_0x2fef02,_0x3086d7,_0x2ee2cb);let m=class extends _0x1bc197{constructor(_0x2ada05,_0x4a84fa,_0x385782){var _0x74da21=_0x421f7a;super(),d(this,_0x74da21(0x1f2),new Map()),(this[_0x74da21(0x197)]=_0x2ada05,this['_injector']=_0x4a84fa,this[_0x74da21(0x1ef)]=_0x385782,this[_0x74da21(0x183)]());}async['getLiveShareCoordinator'](_0x1a148f){var _0x504322=_0x421f7a;return this[_0x504322(0x1f2)]['has'](_0x1a148f)||await this['_startLiveShareCoordinator'](_0x1a148f),this[_0x504322(0x1f2)][_0x504322(0x1ce)](_0x1a148f);}[_0x421f7a(0x183)](){var _0x2c5e49=_0x421f7a;this[_0x2c5e49(0x197)]['getTypeOfUnitAdded$'](_0x3234f9['UNIVER_SHEET'])[_0x2c5e49(0x166)](_0x3cddc9(this[_0x2c5e49(0x1a2)]))['subscribe'](async _0x3b300c=>{var _0x2b8016=_0x2c5e49;const _0x564566=_0x3b300c[_0x2b8016(0x1bf)]();this[_0x2b8016(0x1f2)]['has'](_0x564566)||this[_0x2b8016(0x184)](_0x564566);}),this[_0x2c5e49(0x197)][_0x2c5e49(0x15c)](_0x3234f9['UNIVER_SHEET'])[_0x2c5e49(0x166)](_0x3cddc9(this['dispose$']))[_0x2c5e49(0x1cc)](_0x1dfc27=>{var _0x547654=_0x2c5e49;const _0x34d4f3=_0x1dfc27[_0x547654(0x1bf)](),_0x33c495=this[_0x547654(0x1f2)]['get'](_0x34d4f3);_0x33c495==null||_0x33c495[_0x547654(0x19b)]();});}async[_0x421f7a(0x184)](_0x28ac3c){var _0x68a82d=_0x421f7a;const _0x126f4b=await this[_0x68a82d(0x1ef)][_0x68a82d(0x20a)](_0x28ac3c),_0x404c95=this[_0x68a82d(0x1b7)][_0x68a82d(0x1dd)](C,_0x28ac3c,_0x126f4b);return _0x404c95[_0x68a82d(0x1a3)](),this[_0x68a82d(0x1f2)][_0x68a82d(0x1be)](_0x28ac3c,_0x404c95),_0x404c95;}};m=Z([f(0x0,_0x3889bb),f(0x1,_0x4b4c18(_0x12ff87)),f(0x2,_0x4b4c18(_0x32ee68))],m);var h=(_0x51a75b=>(_0x51a75b['OFFLINE']=_0x421f7a(0x20d),_0x51a75b[_0x421f7a(0x1d6)]=_0x421f7a(0x1eb),_0x51a75b[_0x421f7a(0x1c2)]='following',_0x51a75b['NOT_FOLLOWING']=_0x421f7a(0x19d),_0x51a75b['PRESENTING']=_0x421f7a(0x17d),_0x51a75b))(h||{});const xe=_0x421f7a(0x1f4),Le=0xc8;let C=class extends _0x1bc197{constructor(_0x5425c9,_0x255bdb,_0x292398,_0x24d9d3,_0x2e7543){var _0x37c763=_0x421f7a;super(),d(this,_0x37c763(0x1e1),new _0x4c5bc1('idle')),d(this,_0x37c763(0x1bd),this[_0x37c763(0x1e1)][_0x37c763(0x208)]()),d(this,_0x37c763(0x183),!0x1),d(this,_0x37c763(0x1e3),null),d(this,'_presenter',null),(this[_0x37c763(0x174)]=_0x5425c9,this['_collabSession']=_0x255bdb,this['_configService']=_0x292398,this[_0x37c763(0x161)]=_0x24d9d3,this[_0x37c763(0x1e2)]=_0x2e7543);}get['_status'](){var _0x562318=_0x421f7a;return this[_0x562318(0x1e1)][_0x562318(0x1de)]();}[_0x421f7a(0x19b)](){var _0x110bad=_0x421f7a,_0x643cc1;(_0x643cc1=this[_0x110bad(0x1e3)])==null||_0x643cc1['dispose'](),this[_0x110bad(0x1e1)][_0x110bad(0x1b5)](_0x110bad(0x1eb)),this[_0x110bad(0x1e1)][_0x110bad(0x189)]();}[_0x421f7a(0x1a3)](){var _0x246eb2=_0x421f7a;this[_0x246eb2(0x183)]||(this[_0x246eb2(0x183)]=!0x0,this['_collabSession'][_0x246eb2(0x1c6)]['pipe'](_0x3cddc9(this[_0x246eb2(0x1a2)]))[_0x246eb2(0x1cc)](_0x5d4f51=>{var _0x333cce=_0x246eb2;switch(_0x5d4f51){case _0x5757f7[_0x333cce(0x1bb)]:this[_0x333cce(0x1d0)]();break;case _0x5757f7[_0x333cce(0x1ad)]:this['_handleOnline']();break;}}),this[_0x246eb2(0x168)]['event$'][_0x246eb2(0x166)](_0x3cddc9(this[_0x246eb2(0x1a2)]))[_0x246eb2(0x1cc)](_0x505099=>{var _0x35b930=_0x246eb2;const {eventID:_0x7efaaf}=_0x505099;switch(_0x7efaaf){case _0x155168[_0x35b930(0x1fe)]:this[_0x35b930(0x165)](_0x505099);break;case _0x155168[_0x35b930(0x1b2)]:this[_0x35b930(0x20e)](_0x505099);break;case _0x155168[_0x35b930(0x203)]:this[_0x35b930(0x207)]();break;case _0x155168['NEW_CHANGESETS']:this[_0x35b930(0x186)](_0x505099);break;}}));}[_0x421f7a(0x1b3)](){var _0x5480fe=_0x421f7a;this[_0x5480fe(0x168)][_0x5480fe(0x20c)]({'eventID':_0x155168[_0x5480fe(0x18a)],'data':{'unitID':this[_0x5480fe(0x174)],'userID':this['_collabSession']['getMemberID']()}},this[_0x5480fe(0x174)]);}[_0x421f7a(0x195)](){var _0x99620=_0x421f7a;this[_0x99620(0x1d1)]===_0x99620(0x17d)&&(this['_status$']['next'](_0x99620(0x1eb)),this[_0x99620(0x168)][_0x99620(0x20c)]({'eventID':_0x155168['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x99620(0x174)]}},this[_0x99620(0x174)]));}[_0x421f7a(0x206)](){var _0x3c7396=_0x421f7a;this['_status']===_0x3c7396(0x19d)&&(this[_0x3c7396(0x1e1)]['next'](_0x3c7396(0x18e)),this['_startFollowing']());}['stopFollowing'](){var _0x44990d=_0x421f7a;this['_status']===_0x44990d(0x18e)&&this[_0x44990d(0x1b4)]();}[_0x421f7a(0x165)](_0x48cf51){var _0x4564df=_0x421f7a;const {presenter:_0x191f33}=_0x48cf51['data'],_0x4dde2e=this[_0x4564df(0x168)][_0x4564df(0x1d8)]();this[_0x4564df(0x178)]=_0x191f33,_0x191f33===_0x4dde2e?(this[_0x4564df(0x1b4)](),this[_0x4564df(0x17f)]()):this[_0x4564df(0x1d1)]!==_0x4564df(0x19d)&&(this[_0x4564df(0x17a)](),this[_0x4564df(0x182)]());}[_0x421f7a(0x1fc)](){var _0x531eb9=_0x421f7a;const _0x4b8989={'eventID':_0x155168[_0x531eb9(0x1c3)]};this[_0x531eb9(0x168)][_0x531eb9(0x20c)](_0x4b8989,this[_0x531eb9(0x174)]);}[_0x421f7a(0x207)](){var _0x39f532=_0x421f7a;this[_0x39f532(0x178)]=null,this[_0x39f532(0x1d1)]!==_0x39f532(0x17d)&&this[_0x39f532(0x192)]();}['_handleNewChangeSets'](_0x83e6bd){var _0x3d91e1=_0x421f7a;if(this[_0x3d91e1(0x1d1)]==='following'&&this[_0x3d91e1(0x178)]===_0x83e6bd['data'][_0x3d91e1(0x1d5)]){const _0x2a209b=_0x47a67c(_0x83e6bd[_0x3d91e1(0x1f0)])[_0x3d91e1(0x162)][_0x3d91e1(0x1f7)]()['find'](_0x194ccc=>_0x194ccc['id']===_0x33c245['id']);if(_0x2a209b){const _0x579c09=_0x2a209b[_0x3d91e1(0x15b)]['unitId'],_0x100947=_0x2a209b[_0x3d91e1(0x15b)][_0x3d91e1(0x1b6)]['id'];setTimeout(()=>{var _0x22aeb8=_0x3d91e1;this[_0x22aeb8(0x1e2)][_0x22aeb8(0x160)](_0x278948['id'],{'unitId':_0x579c09,'subUnitId':_0x100947},{'fromCollab':!0x0});});}}}[_0x421f7a(0x17f)](){var _0x38a758=_0x421f7a;this[_0x38a758(0x1e1)][_0x38a758(0x1b5)](_0x38a758(0x17d));const _0x472b31=new Map(),_0x1c5dee=this[_0x38a758(0x1e3)]=new _0x3fbfad();_0x1c5dee[_0x38a758(0x1c1)](_0x1078e1(()=>{var _0x350a60=_0x38a758;_0x472b31[_0x350a60(0x16c)](_0x18d07c=>_0x18d07c[_0x350a60(0x189)]()),_0x472b31[_0x350a60(0x1df)]();})),_0x1c5dee[_0x38a758(0x1c1)](this[_0x38a758(0x1e2)][_0x38a758(0x173)](_0x834fde=>{var _0x38733e=_0x38a758,_0xffd947;if(_0x834fde[_0x38733e(0x1c5)]!==_0x1b7884[_0x38733e(0x18d)]||!this[_0x38733e(0x161)]['shouldShareOperation'](_0x834fde['id']))return;const {id:_0x3aa016}=_0x834fde;let _0x57938b;_0x472b31[_0x38733e(0x179)](_0x3aa016)?_0x57938b=_0x472b31[_0x38733e(0x1ce)](_0x3aa016):(_0x57938b=new _0x80fbac(),_0x472b31[_0x38733e(0x1be)](_0x3aa016,_0x57938b),_0x57938b[_0x38733e(0x166)](_0x528d93((_0xffd947=this[_0x38733e(0x1a9)][_0x38733e(0x1ea)](xe))!=null?_0xffd947:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38733e(0x1cc)](_0x520bcf=>{var _0x5241eb=_0x38733e;this[_0x5241eb(0x168)][_0x5241eb(0x20c)]({'eventID':_0x155168['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5241eb(0x174)],'operations':{[_0x520bcf['id']]:{'id':_0x520bcf['id'],'params':JSON[_0x5241eb(0x18c)](_0x520bcf[_0x5241eb(0x15b)])}}}},this[_0x5241eb(0x174)]);})),_0x57938b[_0x38733e(0x1b5)](_0x834fde);})),this['_liveShareService'][_0x38a758(0x209)](this['_unitID'])['forEach'](_0x5865fa=>this[_0x38a758(0x168)][_0x38a758(0x20c)]({'eventID':_0x155168[_0x38a758(0x1b2)],'data':{'unitID':this[_0x38a758(0x174)],'operations':{[_0x5865fa['id']]:{'id':_0x5865fa['id'],'params':JSON[_0x38a758(0x18c)](_0x5865fa['params'])}}}},this['_unitID']));}['_stopPresenting'](){var _0x2b1b29=_0x421f7a,_0x3e9251;this[_0x2b1b29(0x1e1)][_0x2b1b29(0x1b5)]('idle'),(_0x3e9251=this[_0x2b1b29(0x1e3)])==null||_0x3e9251[_0x2b1b29(0x19b)](),this[_0x2b1b29(0x1e3)]=null;}[_0x421f7a(0x182)](){var _0x529db7=_0x421f7a,_0x3f9f88;(_0x3f9f88=this[_0x529db7(0x1e3)])==null||_0x3f9f88['dispose'](),this[_0x529db7(0x1e1)][_0x529db7(0x1b5)]('following');}[_0x421f7a(0x192)](){var _0x36d8b3=_0x421f7a,_0x112b3d;this[_0x36d8b3(0x1e1)][_0x36d8b3(0x1b5)](_0x36d8b3(0x1eb)),(_0x112b3d=this[_0x36d8b3(0x1e3)])==null||_0x112b3d[_0x36d8b3(0x19b)](),this[_0x36d8b3(0x1e3)]=null;}[_0x421f7a(0x1b4)](){var _0x430138=_0x421f7a,_0x407a99;this[_0x430138(0x1e1)][_0x430138(0x1b5)](_0x430138(0x19d)),(_0x407a99=this[_0x430138(0x1e3)])==null||_0x407a99[_0x430138(0x19b)]();}[_0x421f7a(0x20e)](_0x6f38d5){var _0x4bb502=_0x421f7a;if([_0x4bb502(0x17d),_0x4bb502(0x19d),'offline']['includes'](this[_0x4bb502(0x1d1)])||!_0x6f38d5[_0x4bb502(0x1f0)]['presenter']||_0x6f38d5['data'][_0x4bb502(0x1a0)]===this[_0x4bb502(0x168)][_0x4bb502(0x1d8)]())return;this[_0x4bb502(0x1d1)]===_0x4bb502(0x1eb)&&this[_0x4bb502(0x182)]();const _0x39da89=_0x6f38d5[_0x4bb502(0x1f0)]['operations'];Object[_0x4bb502(0x1a5)](_0x39da89)['forEach'](_0x5e9898=>{var _0x121d75=_0x4bb502;this[_0x121d75(0x1e2)][_0x121d75(0x160)](_0x5e9898['id'],_0x5e9898[_0x121d75(0x15b)]?JSON[_0x121d75(0x1aa)](_0x5e9898[_0x121d75(0x15b)]):null,{'fromCollab':!0x0});});}[_0x421f7a(0x1d0)](){var _0xcc3898=_0x421f7a,_0x490604;this['_status$'][_0xcc3898(0x1b5)](_0xcc3898(0x20d)),(_0x490604=this[_0xcc3898(0x1e3)])==null||_0x490604['dispose']();}[_0x421f7a(0x1f1)](){var _0x93ed8a=_0x421f7a;this[_0x93ed8a(0x1e1)][_0x93ed8a(0x1b5)](_0x93ed8a(0x1eb)),this[_0x93ed8a(0x1fc)]();}};C=Z([f(0x2,_0x283dc5),f(0x3,_0x4b4c18(L)),f(0x4,_0x62e54c)],C);function ye(){var _0x5d27b9=_0x421f7a;const _0x2c3fa9=_0x20977d(m),_0x3ad0d9=_0x20977d(_0x3889bb),_0x40a090=_0xc10a5c(()=>_0x3ad0d9[_0x5d27b9(0x1a4)](_0x3234f9['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x389043,_0x5d2035]=_0x4f9eda(null),[_0x434ffc,_0x51a627]=_0x4f9eda(h[_0x5d27b9(0x1d6)]),_0x7f2879=_0x435daf(null);return _0x4ebfa4(()=>(_0x40a090&&_0x2c3fa9[_0x5d27b9(0x164)](_0x40a090[_0x5d27b9(0x1bf)]())[_0x5d27b9(0x19c)](_0x2ffbca=>{var _0x5b18ec=_0x5d27b9;_0x5d2035(_0x2ffbca),_0x7f2879['current']=_0x2ffbca['status$'][_0x5b18ec(0x1cc)](_0x1072cf=>{_0x51a627(_0x1072cf);});}),()=>{var _0x5f5baa=_0x5d27b9,_0x29475e;(_0x29475e=_0x7f2879[_0x5f5baa(0x171)])==null||_0x29475e['unsubscribe'](),_0x7f2879[_0x5f5baa(0x171)]=null;}),[_0x40a090,_0x2c3fa9]),_0x389043?_0x2ca145(_0x258e49,{'align':_0x5d27b9(0x1ee),'disabled':_0x434ffc===h[_0x5d27b9(0x1bb)],'className':_0x5d27b9(0x210),'overlay':_0x2ca145(Re,{'status':_0x434ffc,'coordinator':_0x389043}),'children':_0x2ca145(_0x5d27b9(0x172),{'className':_0x9a7ef5(_0x5d27b9(0x16a),{'univer-cursor-not-allowed':_0x434ffc===h[_0x5d27b9(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x434ffc!==h[_0x5d27b9(0x1bb)]}),'type':_0x5d27b9(0x172),'children':_0x2ca145(B,{'className':_0x5d27b9(0x201)})})}):null;}function Re(_0x14a21e){var _0x1f65ec=_0x421f7a;const {status:_0x1844cd,coordinator:_0xf0ac31}=_0x14a21e;switch(_0x1844cd){case h[_0x1f65ec(0x1d6)]:return _0x2ca145(Pe,{'coordinator':_0xf0ac31});case h[_0x1f65ec(0x1c2)]:return _0x2ca145(Ae,{'coordinator':_0xf0ac31});case h[_0x1f65ec(0x1fd)]:return _0x2ca145(Te,{'coordinator':_0xf0ac31});case h['OFFLINE']:return _0x2ca145(Fe,{});case h[_0x1f65ec(0x1ca)]:return _0x2ca145($e,{'coordinator':_0xf0ac31});default:return null;}}function Pe(_0x21fb35){var _0x528a3d=_0x421f7a;const {coordinator:_0x33f64e}=_0x21fb35;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145('div',{'className':_0x528a3d(0x1c7),'children':_0x528a3d(0x1b8)}),_0x2ca145(_0x47729a,{'onClick':()=>_0x33f64e[_0x528a3d(0x1b3)](),'children':_0x528a3d(0x1fb)})]});}function Ae(_0x3f254f){var _0x27377c=_0x421f7a;const {coordinator:_0x5a0829}=_0x3f254f;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x27377c(0x1ae),{'className':_0x27377c(0x1c7),'children':_0x27377c(0x1bc)}),_0x2ca145(_0x47729a,{'onClick':()=>_0x5a0829[_0x27377c(0x193)](),'children':_0x27377c(0x1f8)})]});}function Te(_0x1b6d50){var _0x48f60c=_0x421f7a;const {coordinator:_0x2d40c7}=_0x1b6d50;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x48f60c(0x1ae),{'className':_0x48f60c(0x1c7),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2ca145(_0x47729a,{'variant':_0x48f60c(0x198),'onClick':()=>_0x2d40c7['startFollowing'](),'children':_0x48f60c(0x205)})]});}function _0x4030(_0x306a91,_0x412983){var _0x326c70=_0x326c();return _0x4030=function(_0x4030e4,_0x337e69){_0x4030e4=_0x4030e4-0x15b;var _0x419c2c=_0x326c70[_0x4030e4];return _0x419c2c;},_0x4030(_0x306a91,_0x412983);}function $e(_0x3199be){var _0x37518e=_0x421f7a;const {coordinator:_0x8afd8e}=_0x3199be;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x37518e(0x1ae),{'className':_0x37518e(0x1c7),'children':_0x37518e(0x1ec)}),_0x2ca145(_0x47729a,{'variant':_0x37518e(0x1e9),'onClick':()=>_0x8afd8e[_0x37518e(0x195)](),'children':_0x37518e(0x1b0)})]});}function Fe(){var _0x4f1b44=_0x421f7a;return _0x2ca145(_0x38862d,{'children':_0x4f1b44(0x15e)});}function _0x326c(){var _0xf57f39=['requireSession','http://www.w3.org/2000/svg','send','offline','_handleOperation','pluginName','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','params','getTypeOfUnitDisposed$','hasOwnProperty','You\x27are\x20offline.','substring','executeCommand','_liveShareService','mutations','setConfig','getLiveShareCoordinator','_handleNewHost','pipe','defs','_collabSession','shouldShareOperation','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','trim','forEach','attrs','mask','0\x200\x2017\x2017','UNIVER_LIVE_SHARE_PLUGIN','current','button','onCommandExecuted','_unitID','disposeWithMe','className','currentColor','_presenter','has','_stopPresenting','1em','defineProperty','presenting','UNIVER_UNKNOWN','_startPresenting','displayName','_mountLiveShare','_startFollowing','_init','_startLiveShareCoordinator','LiveShareIcon','_handleNewChangeSets','url(#$1','children','complete','LIVESHARE_REQUEST_HOST','univerjs-icon\x20univerjs-icon-','stringify','OPERATION','following','6424EmtJrw','idSuffix','70SbgAfy','_beIdle','stopFollowing','from','stopPresenting','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','_univerInstanceService','text','_reporters','registerInitialStateReporter','dispose','then','not-following','onStarting','none','presenter','onRendered','dispose$','init','getCurrentTypeOfUnit$','values','1818530RpOJEz','56IwtrLP','live-share-icon','_configService','parse','_config','length','ONLINE','div','string','Stop\x20presenting','xlink:href','LIVESHARE_OPERATION','tryStartPresenting','_stopFollowing','next','sheet','_injector','Present\x20this\x20document','path','function','OFFLINE','You\x27re\x20following\x20the\x20presenter','status$','set','getUnitId','map','add','FOLLOWING','LIVESHARE_FETCH_OPERATIONS','call','type','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','_uiPartsService','_sharedOperations','PRESENTING','UniverIcon','subscribe','random','get','getOwnPropertyDescriptor','_handleOffline','_status','entries','delete','getOwnPropertySymbols','memberID','IDLE','concat','getMemberID','prototype','icon','use','evenodd','createInstance','getValue','clear','indexOf','_status$','_commandService','_commandDisposable','propertyIsEnumerable','246Jsqpcs','replace','356363GhteUp','tag','default','getConfig','idle','You\x27re\x20presenting\x20the\x20document','svg','end','_collabSessionService','data','_handleOnline','_entities','696978eUFEHO','SAME_OPERATION_SHARE_INTERVAL','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','31892SjUagm','reverse','Stop\x20following','registerSharedOperation','2911860dMllIk','Start','_fetchOperations','NOT_FOLLOWING','LIVESHARE_NEW_HOST','colorChannel1','defIds','univer-size-4','2271762WbyTMA','LIVESHARE_TERMINATE','extend','Start\x20following','startFollowing','_handleTerminate','asObservable','getInitialStates'];_0x326c=function(){return _0xf57f39;};return _0x326c();}var He=Object[_0x421f7a(0x1cf)],je=(_0x3c04da,_0x37218a,_0x5a3a43,_0x1287e5)=>{var _0x360b04=_0x421f7a;for(var _0x1986a9=_0x1287e5>0x1?void 0x0:_0x1287e5?He(_0x37218a,_0x5a3a43):_0x37218a,_0x4e1cb7=_0x3c04da[_0x360b04(0x1ac)]-0x1,_0x10d972;_0x4e1cb7>=0x0;_0x4e1cb7--)(_0x10d972=_0x3c04da[_0x4e1cb7])&&(_0x1986a9=_0x10d972(_0x1986a9)||_0x1986a9);return _0x1986a9;},T=(_0x4674e6,_0x599426)=>(_0x4f9bf6,_0x55b59e)=>_0x599426(_0x4f9bf6,_0x55b59e,_0x4674e6);let I=class extends _0x2abf63{constructor(_0x2242bf,_0x1d293b){var _0x1b7628=_0x421f7a;super(),this['_injector']=_0x2242bf,this[_0x1b7628(0x1c8)]=_0x1d293b,this['_mountLiveShare']();}[_0x421f7a(0x181)](){var _0x5b2334=_0x421f7a;this['disposeWithMe'](this[_0x5b2334(0x1c8)]['registerComponent'](_0x1697f8['HEADER_MENU'],()=>_0x10655a(ye,this['_injector'])));}};I=je([T(0x0,_0x4b4c18(_0x12ff87)),T(0x1,_0x1c1d17)],I);const Ue='live-share.config',$={};var Ve=Object[_0x421f7a(0x1cf)],Me=(_0x458916,_0x3113ad,_0x5ed17d,_0x1e4067)=>{var _0x504ccb=_0x421f7a;for(var _0xd92874=_0x1e4067>0x1?void 0x0:_0x1e4067?Ve(_0x3113ad,_0x5ed17d):_0x3113ad,_0x4b0548=_0x458916[_0x504ccb(0x1ac)]-0x1,_0x3f9f1d;_0x4b0548>=0x0;_0x4b0548--)(_0x3f9f1d=_0x458916[_0x4b0548])&&(_0xd92874=_0x3f9f1d(_0xd92874)||_0xd92874);return _0xd92874;},ke=(_0x2d82b5,_0x2b2085)=>(_0x3c0c6c,_0x703a12)=>_0x2b2085(_0x3c0c6c,_0x703a12,_0x2d82b5);let b=class extends _0x2abf63{constructor(_0x4a0b2f){var _0xcd0733=_0x421f7a;super(),this[_0xcd0733(0x161)]=_0x4a0b2f,this['_init']();}['_init'](){var _0x4a2323=_0x421f7a;[_0x192820['id'],_0x27f0c3['id'],_0x278948['id']][_0x4a2323(0x16c)](_0x351165=>{var _0x5cb253=_0x4a2323;this[_0x5cb253(0x175)](this[_0x5cb253(0x161)]['registerSharedOperation'](_0x351165));});}};b=Me([ke(0x0,_0x4b4c18(L))],b);var Ge=Object[_0x421f7a(0x17c)],We=Object[_0x421f7a(0x1cf)],Ye=(_0x245414,_0x5aacc1,_0x2c161c)=>_0x5aacc1 in _0x245414?Ge(_0x245414,_0x5aacc1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c161c}):_0x245414[_0x5aacc1]=_0x2c161c,Be=(_0x34e825,_0x558721,_0x589f59,_0xe42e39)=>{var _0x28eea9=_0x421f7a;for(var _0x3a4bc3=_0xe42e39>0x1?void 0x0:_0xe42e39?We(_0x558721,_0x589f59):_0x558721,_0x1bd8c4=_0x34e825[_0x28eea9(0x1ac)]-0x1,_0x50950e;_0x1bd8c4>=0x0;_0x1bd8c4--)(_0x50950e=_0x34e825[_0x1bd8c4])&&(_0x3a4bc3=_0x50950e(_0x3a4bc3)||_0x3a4bc3);return _0x3a4bc3;},F=(_0x1208ef,_0x2de1d7)=>(_0x4e919e,_0x216c68)=>_0x2de1d7(_0x4e919e,_0x216c68,_0x1208ef),J=(_0x151eb4,_0x596286,_0x50871c)=>Ye(_0x151eb4,typeof _0x596286!='symbol'?_0x596286+'':_0x596286,_0x50871c);const Ze=_0x421f7a(0x170);let O=class extends _0x525e5f{constructor(_0x495180=$,_0x82b44c,_0x931c70){var _0x5be256=_0x421f7a;super(),this[_0x5be256(0x1ab)]=_0x495180,this[_0x5be256(0x1b7)]=_0x82b44c,this['_configService']=_0x931c70;const {..._0x5eff2b}=_0x53247a({},$,this[_0x5be256(0x1ab)]);this[_0x5be256(0x1a9)][_0x5be256(0x163)](Ue,_0x5eff2b);}[_0x421f7a(0x19e)](){var _0x23f1a2=_0x421f7a;_0x3bf986(this['_injector'],_0x184474([[L],[m],[b],[I]],this[_0x23f1a2(0x1ab)]['override'])),_0x10bb21(this['_injector'],[[b]]);}[_0x421f7a(0x1a1)](){_0x10bb21(this['_injector'],[[I]]);}};J(O,'type',_0x3234f9[_0x421f7a(0x17e)]),J(O,_0x421f7a(0x20f),Ze),O=Be([_0x242f70(_0x4057a8),F(0x1,_0x4b4c18(_0x12ff87)),F(0x2,_0x283dc5)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x313013=_0x1f46;(function(_0x4b2471,_0x5b89f8){var _0x344991=_0x1f46,_0x46e958=_0x4b2471();while(!![]){try{var _0x28ae67=parseInt(_0x344991(0x181))/0x1*(parseInt(_0x344991(0xe7))/0x2)+-parseInt(_0x344991(0xed))/0x3+-parseInt(_0x344991(0xe9))/0x4*(parseInt(_0x344991(0x159))/0x5)+-parseInt(_0x344991(0xf8))/0x6*(-parseInt(_0x344991(0x141))/0x7)+-parseInt(_0x344991(0x121))/0x8+parseInt(_0x344991(0xe8))/0x9*(parseInt(_0x344991(0x179))/0xa)+parseInt(_0x344991(0x140))/0xb;if(_0x28ae67===_0x5b89f8)break;else _0x46e958['push'](_0x46e958['shift']());}catch(_0x276171){_0x46e958['push'](_0x46e958['shift']());}}}(_0x334b,0x9646d));var q=Object[_0x313013(0x11e)],z=(_0x22b249,_0x1e883d,_0x1fdd98)=>_0x1e883d in _0x22b249?q(_0x22b249,_0x1e883d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fdd98}):_0x22b249[_0x1e883d]=_0x1fdd98,d=(_0x38aae6,_0x18c38e,_0x4dcb2d)=>z(_0x38aae6,typeof _0x18c38e!='symbol'?_0x18c38e+'':_0x18c38e,_0x4dcb2d);import{Disposable as _0x15177c,toDisposable as _0x4a5097,IUniverInstanceService as _0xf8954b,Inject as _0x53b001,Injector as _0xf6095,IConfigService as _0x3638f5,ICommandService as _0x7fb0ea,RxDisposable as _0x393560,UniverInstanceType as _0x258437,DisposableCollection as _0x59dc2e,CommandType as _0x116d56,DependentOn as _0x15f744,Plugin as _0x4c9b21,merge as _0x28c635,registerDependencies as _0x28d1b1,mergeOverrideWithDependencies as _0x31c621,touchDependencies as _0x58be07}from'@univerjs/core';import{useDependency as _0x2fb90e,useObservable as _0x5ec775,IUIPartsService as _0x3a3ffe,BuiltInUIPart as _0x3d6ae4,connectInjector as _0x155e9e}from'@univerjs/ui';import{jsx as _0x3555d8,jsxs as _0x2f31fd,Fragment as _0x5efcf4}from'react/jsx-runtime';import{Dropdown as _0x2b078d,clsx as _0x392cc7,Button as _0x9c96c8}from'@univerjs/design';import{forwardRef as _0x64c43f,useRef as _0x4dbc7b,createElement as _0x4ecdb1,useState as _0x98af16,useEffect as _0x7fb2bf}from'react';import{CollaborationEvent as _0x284f8f,parseProtocolChangeset as _0x4e5eba}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x102374,SessionStatus as _0x1c4955,UniverCollaborationClientPlugin as _0x54c104}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5d62bc,SetWorksheetActiveOperation as _0x206df5}from'@univerjs/sheets';import{BehaviorSubject as _0x476844,Subject as _0x228df7}from'rxjs';function _0x334b(){var _0x5cbbf3=['You\x27re\x20presenting\x20the\x20document','has','memberID','1374485OgLUsY','You\x27re\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','registerInitialStateReporter','_handleNewChangeSets','end','url(#$1','div','_univerInstanceService','function','onRendered','map','stopFollowing','_collabSession','getOwnPropertyDescriptor','_collabSessionService','use','requireSession','registerComponent','svg','LIVESHARE_OPERATION','getMemberID','asObservable','sessionStatus$','apply','setConfig','children','path','UNIVER_SHEET','_mountLiveShare','NOT_FOLLOWING','You\x27are\x20offline.','10XtybxB','OPERATION','_reporters','string','pluginName','_config','xlink:href','currentColor','401LvfoLJ','then','toString','live-share-icon','stopPresenting','subscribe','FOLLOWING','symbol','_handleNewHost','_commandDisposable','_init','evenodd','0\x200\x2017\x2017','extend','replace','pipe','You\x27re\x20not\x20following\x20the\x20presenter','_status$','get','UniverIcon','event$','idSuffix','delete','onStarting','Stop\x20presenting','set','_handleOnline','prototype','idle','add','NEW_CHANGESETS','HEADER_MENU','http://www.w3.org/2000/svg','982dgJVmb','2912292keXife','4HQeWom','concat','complete','values','2192607mZcuAV','propertyIsEnumerable','className','tryStartPresenting','_startLiveShareCoordinator','data','Start\x20following','getValue','_configService','trim','onCommandExecuted','5322NiNUso','offline','_handleOffline','call','LIVESHARE_NEW_HOST','defIds','from','substring','_stopPresenting','getOwnPropertySymbols','forEach','init','mask','_commandService','_status','random','params','tag','UNIVER_UNKNOWN','_entities','disposeWithMe','getLiveShareCoordinator','IDLE','fill','_presenter','send','attrs','OFFLINE','none','_startFollowing','not-following','presenting','colorChannel1','SAME_OPERATION_SHARE_INTERVAL','getInitialStates','dispose','shouldShareOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','Start','_stopFollowing','4659528LXTtcC','text','current','next','parse','_handleOperation','_beIdle','hasOwnProperty','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','ONLINE','status$','mutations','includes','_handleTerminate','_sharedOperations','unitId','1em','operations','_unitID','univer-size-4','indexOf','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','live-share.config','startFollowing','dispose$','_fetchOperations','getTypeOfUnitDisposed$','clear','assign','stringify','14437445vMHkSF','2926DySAnL','entries','length','_liveShareService','PRESENTING','_startPresenting','default','getCurrentTypeOfUnit$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','find','LIVESHARE_TERMINATE','Stop\x20following','type','_uiPartsService','getUnitId','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','executeCommand','_injector','displayName','presenter','UNIVER_LIVE_SHARE_PLUGIN'];_0x334b=function(){return _0x5cbbf3;};return _0x334b();}import{takeUntil as _0xc34bd8,throttleTime as _0x72d5ce}from'rxjs/operators';import{SetZoomRatioOperation as _0xeb514c,SetScrollOperation as _0x19ee46}from'@univerjs/sheets-ui';var c=function(){var _0x598b75=_0x313013;return c=Object[_0x598b75(0x13e)]||function(_0x3738e8){var _0x15a48c=_0x598b75;for(var _0x2851bb,_0x3a6e6d=0x1,_0x1055cd=arguments[_0x15a48c(0x143)];_0x3a6e6d<_0x1055cd;_0x3a6e6d++){_0x2851bb=arguments[_0x3a6e6d];for(var _0x2403eb in _0x2851bb)Object[_0x15a48c(0xe1)][_0x15a48c(0x128)]['call'](_0x2851bb,_0x2403eb)&&(_0x3738e8[_0x2403eb]=_0x2851bb[_0x2403eb]);}return _0x3738e8;},c[_0x598b75(0x171)](this,arguments);},Oe=function(_0x1fda01,_0x55e25e){var _0x452473=_0x313013,_0x11d993={};for(var _0x17869c in _0x1fda01)Object[_0x452473(0xe1)][_0x452473(0x128)][_0x452473(0xfb)](_0x1fda01,_0x17869c)&&_0x55e25e['indexOf'](_0x17869c)<0x0&&(_0x11d993[_0x17869c]=_0x1fda01[_0x17869c]);if(_0x1fda01!=null&&typeof Object[_0x452473(0x101)]==_0x452473(0x162)){for(var _0x10bda6=0x0,_0x17869c=Object['getOwnPropertySymbols'](_0x1fda01);_0x10bda6<_0x17869c[_0x452473(0x143)];_0x10bda6++)_0x55e25e[_0x452473(0x136)](_0x17869c[_0x10bda6])<0x0&&Object[_0x452473(0xe1)][_0x452473(0xee)][_0x452473(0xfb)](_0x1fda01,_0x17869c[_0x10bda6])&&(_0x11d993[_0x17869c[_0x10bda6]]=_0x1fda01[_0x17869c[_0x10bda6]]);}return _0x11d993;},W=_0x64c43f(function(_0x2ec3db,_0x214b58){var _0x57d706=_0x313013,_0x340392=_0x2ec3db['icon'],_0x1584b4=_0x2ec3db['id'],_0x23cd5f=_0x2ec3db['className'],_0x4622c5=_0x2ec3db[_0x57d706(0xd3)],_0x3cf0dd=Oe(_0x2ec3db,['icon','id',_0x57d706(0xef),'extend']),_0x5f649='univerjs-icon\x20univerjs-icon-'['concat'](_0x1584b4,'\x20')[_0x57d706(0xea)](_0x23cd5f||'')[_0x57d706(0xf6)](),_0x4f0bc7=_0x4dbc7b('_'[_0x57d706(0xea)](Ne()));return Y(_0x340392,''[_0x57d706(0xea)](_0x1584b4),{'defIds':_0x340392['defIds'],'idSuffix':_0x4f0bc7[_0x57d706(0x123)]},c({'ref':_0x214b58,'className':_0x5f649},_0x3cf0dd),_0x4622c5);});function Y(_0x53998f,_0x29f34a,_0x2ee8dc,_0x20ff95,_0x57ca90){var _0x25f286=_0x313013;return _0x4ecdb1(_0x53998f[_0x25f286(0x109)],c(c({'key':_0x29f34a},Ee(_0x53998f,_0x2ee8dc,_0x57ca90)),_0x20ff95),(we(_0x53998f,_0x2ee8dc)[_0x25f286(0x173)]||[])[_0x25f286(0x164)](function(_0x18f9e6,_0x15694a){var _0x189e21=_0x25f286;return Y(_0x18f9e6,''['concat'](_0x29f34a,'-')[_0x189e21(0xea)](_0x53998f[_0x189e21(0x109)],'-')[_0x189e21(0xea)](_0x15694a),_0x2ee8dc,void 0x0,_0x57ca90);}));}function Ee(_0x1f24a2,_0x288921,_0x457f4c){var _0x4d9222=_0x313013,_0x11c3c6=c({},_0x1f24a2[_0x4d9222(0x112)]);_0x457f4c!=null&&_0x457f4c[_0x4d9222(0x118)]&&_0x11c3c6[_0x4d9222(0x10f)]===_0x4d9222(0x118)&&(_0x11c3c6[_0x4d9222(0x10f)]=_0x457f4c[_0x4d9222(0x118)]),_0x1f24a2[_0x4d9222(0x109)]==='mask'&&_0x11c3c6['id']&&(_0x11c3c6['id']=_0x11c3c6['id']+_0x288921['idSuffix']),Object[_0x4d9222(0x142)](_0x11c3c6)[_0x4d9222(0x102)](function(_0xdcae44){var _0x22d39f=_0x4d9222,_0x35029f=_0xdcae44[0x0],_0x4720b4=_0xdcae44[0x1];_0x35029f===_0x22d39f(0x104)&&typeof _0x4720b4==_0x22d39f(0x17c)&&(_0x11c3c6[_0x35029f]=_0x4720b4[_0x22d39f(0xd4)](/url\(#(.*)\)/,_0x22d39f(0x15f)[_0x22d39f(0xea)](_0x288921[_0x22d39f(0xdb)],')')));});var _0x1eedb8=_0x288921[_0x4d9222(0xfd)];return!_0x1eedb8||_0x1eedb8[_0x4d9222(0x143)]===0x0||(_0x1f24a2[_0x4d9222(0x109)]===_0x4d9222(0x169)&&_0x11c3c6[_0x4d9222(0x17f)]&&(_0x11c3c6[_0x4d9222(0x17f)]=_0x11c3c6[_0x4d9222(0x17f)]+_0x288921['idSuffix']),Object[_0x4d9222(0x142)](_0x11c3c6)[_0x4d9222(0x102)](function(_0x252582){var _0x437656=_0x4d9222,_0x1152a5=_0x252582[0x0],_0x12f2b4=_0x252582[0x1];typeof _0x12f2b4==_0x437656(0x17c)&&(_0x11c3c6[_0x1152a5]=_0x12f2b4['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x288921[_0x437656(0xdb)],')')));})),_0x11c3c6;}function we(_0x2d64b4,_0x2e41aa){var _0x588d7a=_0x313013,_0x4ce55c,_0x374638=_0x2e41aa[_0x588d7a(0xfd)];return!_0x374638||_0x374638[_0x588d7a(0x143)]===0x0?_0x2d64b4:_0x2d64b4[_0x588d7a(0x109)]==='defs'&&(!((_0x4ce55c=_0x2d64b4[_0x588d7a(0x173)])===null||_0x4ce55c===void 0x0)&&_0x4ce55c[_0x588d7a(0x143)])?c(c({},_0x2d64b4),{'children':_0x2d64b4[_0x588d7a(0x173)][_0x588d7a(0x164)](function(_0x5506aa){var _0x4d069f=_0x588d7a;return typeof _0x5506aa[_0x4d069f(0x112)]['id']==_0x4d069f(0x17c)&&_0x374638&&_0x374638[_0x4d069f(0x12e)](_0x5506aa[_0x4d069f(0x112)]['id'])?c(c({},_0x5506aa),{'attrs':c(c({},_0x5506aa['attrs']),{'id':_0x5506aa[_0x4d069f(0x112)]['id']+_0x2e41aa[_0x4d069f(0xdb)]})}):_0x5506aa;})}):_0x2d64b4;}function Ne(){var _0x53a472=_0x313013;return Math[_0x53a472(0x107)]()[_0x53a472(0x183)](0x24)[_0x53a472(0xff)](0x2,0x8);}W[_0x313013(0x153)]=_0x313013(0xd9);var Ce={'tag':_0x313013(0x16c),'attrs':{'xmlns':_0x313013(0xe6),'fill':_0x313013(0x114),'viewBox':_0x313013(0xd2),'width':'1em','height':_0x313013(0x132)},'children':[{'tag':'path','attrs':{'fill':_0x313013(0x180),'d':_0x313013(0x137)}},{'tag':_0x313013(0x174),'attrs':{'fill':'currentColor','d':_0x313013(0x150),'fillRule':_0x313013(0xd1),'clipRule':_0x313013(0xd1)}}]},B=_0x64c43f(function(_0x1ee37e,_0x24aca9){var _0x4fb5ab=_0x313013;return _0x4ecdb1(W,Object[_0x4fb5ab(0x13e)]({},_0x1ee37e,{'id':_0x4fb5ab(0x184),'ref':_0x24aca9,'icon':Ce}));});B['displayName']='LiveShareIcon';class L extends _0x15177c{constructor(){var _0x52e0f9=_0x313013;super(...arguments),d(this,_0x52e0f9(0x130),new Set()),d(this,_0x52e0f9(0x17b),new Set());}['registerSharedOperation'](_0x2ca1e5){var _0x458ec3=_0x313013;return this[_0x458ec3(0x130)][_0x458ec3(0xe3)](_0x2ca1e5),_0x4a5097(()=>this['_sharedOperations']['delete'](_0x2ca1e5));}[_0x313013(0x15c)](_0x2bb7e3){var _0x24179c=_0x313013;return this[_0x24179c(0x17b)]['add'](_0x2bb7e3),_0x4a5097(()=>this[_0x24179c(0x17b)][_0x24179c(0xdc)](_0x2bb7e3));}[_0x313013(0x11c)](_0x1ba50c){var _0x20a88d=_0x313013;return this['_sharedOperations'][_0x20a88d(0x157)](_0x1ba50c);}[_0x313013(0x11a)](_0x31f87c){var _0x428dc9=_0x313013;return Array[_0x428dc9(0xfe)](this[_0x428dc9(0x17b)])[_0x428dc9(0x164)](_0x24cf21=>_0x24cf21(_0x31f87c));}}var De=Object[_0x313013(0x167)],Z=(_0x4d6f8b,_0x2dbc3d,_0x26ba2a,_0x36f406)=>{for(var _0x49a4eb=_0x36f406>0x1?void 0x0:_0x36f406?De(_0x2dbc3d,_0x26ba2a):_0x2dbc3d,_0x1f6b76=_0x4d6f8b['length']-0x1,_0x4fd824;_0x1f6b76>=0x0;_0x1f6b76--)(_0x4fd824=_0x4d6f8b[_0x1f6b76])&&(_0x49a4eb=_0x4fd824(_0x49a4eb)||_0x49a4eb);return _0x49a4eb;},f=(_0x5cf09b,_0x26fc7f)=>(_0x4dfb44,_0x13d83f)=>_0x26fc7f(_0x4dfb44,_0x13d83f,_0x5cf09b);let m=class extends _0x393560{constructor(_0x58a820,_0x308e09,_0x294ad6){var _0x44caf3=_0x313013;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x58a820,this['_injector']=_0x308e09,this[_0x44caf3(0x168)]=_0x294ad6,this['_init']());}async[_0x313013(0x10d)](_0x4e10e5){var _0x5b3b10=_0x313013;return this['_entities'][_0x5b3b10(0x157)](_0x4e10e5)||await this[_0x5b3b10(0xf1)](_0x4e10e5),this['_entities'][_0x5b3b10(0xd8)](_0x4e10e5);}[_0x313013(0xd0)](){var _0x58eaea=_0x313013;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x258437[_0x58eaea(0x175)])[_0x58eaea(0xd5)](_0xc34bd8(this[_0x58eaea(0x13a)]))['subscribe'](async _0x1c2936=>{var _0x1b5456=_0x58eaea;const _0x469e39=_0x1c2936[_0x1b5456(0x14f)]();this[_0x1b5456(0x10b)][_0x1b5456(0x157)](_0x469e39)||this[_0x1b5456(0xf1)](_0x469e39);}),this[_0x58eaea(0x161)][_0x58eaea(0x13c)](_0x258437[_0x58eaea(0x175)])[_0x58eaea(0xd5)](_0xc34bd8(this[_0x58eaea(0x13a)]))[_0x58eaea(0x186)](_0x1d1991=>{var _0x53f551=_0x58eaea;const _0x4280e2=_0x1d1991['getUnitId'](),_0x5ea2f7=this[_0x53f551(0x10b)][_0x53f551(0xd8)](_0x4280e2);_0x5ea2f7==null||_0x5ea2f7[_0x53f551(0x11b)]();});}async[_0x313013(0xf1)](_0x5e718a){var _0x566925=_0x313013;const _0x5025a1=await this['_collabSessionService'][_0x566925(0x16a)](_0x5e718a),_0x4c7c7b=this['_injector']['createInstance'](C,_0x5e718a,_0x5025a1);return _0x4c7c7b[_0x566925(0x103)](),this[_0x566925(0x10b)][_0x566925(0xdf)](_0x5e718a,_0x4c7c7b),_0x4c7c7b;}};m=Z([f(0x0,_0xf8954b),f(0x1,_0x53b001(_0xf6095)),f(0x2,_0x53b001(_0x102374))],m);var h=(_0x41645f=>(_0x41645f[_0x313013(0x113)]=_0x313013(0xf9),_0x41645f[_0x313013(0x10e)]='idle',_0x41645f['FOLLOWING']=_0x313013(0x12a),_0x41645f[_0x313013(0x177)]=_0x313013(0x116),_0x41645f[_0x313013(0x145)]=_0x313013(0x117),_0x41645f))(h||{});const xe=_0x313013(0x119),Le=0xc8;let C=class extends _0x393560{constructor(_0x328c38,_0xc3a631,_0x1b58e4,_0x3413c8,_0x46df98){var _0x500b5a=_0x313013;super(),d(this,'_status$',new _0x476844(_0x500b5a(0xe2))),d(this,'status$',this[_0x500b5a(0xd7)][_0x500b5a(0x16f)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x500b5a(0x110),null),(this[_0x500b5a(0x134)]=_0x328c38,this[_0x500b5a(0x166)]=_0xc3a631,this[_0x500b5a(0xf5)]=_0x1b58e4,this[_0x500b5a(0x144)]=_0x3413c8,this['_commandService']=_0x46df98);}get[_0x313013(0x106)](){var _0x3764e0=_0x313013;return this[_0x3764e0(0xd7)][_0x3764e0(0xf4)]();}[_0x313013(0x11b)](){var _0x4a62b1=_0x313013,_0x22c8fa;(_0x22c8fa=this[_0x4a62b1(0xcf)])==null||_0x22c8fa[_0x4a62b1(0x11b)](),this[_0x4a62b1(0xd7)]['next']('idle'),this[_0x4a62b1(0xd7)][_0x4a62b1(0xeb)]();}['init'](){var _0x5b677b=_0x313013;this[_0x5b677b(0xd0)]||(this[_0x5b677b(0xd0)]=!0x0,this[_0x5b677b(0x166)][_0x5b677b(0x170)][_0x5b677b(0xd5)](_0xc34bd8(this[_0x5b677b(0x13a)]))[_0x5b677b(0x186)](_0x452b40=>{var _0xfcc22d=_0x5b677b;switch(_0x452b40){case _0x1c4955[_0xfcc22d(0x113)]:this[_0xfcc22d(0xfa)]();break;case _0x1c4955[_0xfcc22d(0x12b)]:this[_0xfcc22d(0xe0)]();break;}}),this[_0x5b677b(0x166)][_0x5b677b(0xda)][_0x5b677b(0xd5)](_0xc34bd8(this['dispose$']))[_0x5b677b(0x186)](_0x4a3375=>{var _0xc4f304=_0x5b677b;const {eventID:_0x17c91a}=_0x4a3375;switch(_0x17c91a){case _0x284f8f[_0xc4f304(0xfc)]:this[_0xc4f304(0x189)](_0x4a3375);break;case _0x284f8f[_0xc4f304(0x16d)]:this['_handleOperation'](_0x4a3375);break;case _0x284f8f[_0xc4f304(0x14b)]:this[_0xc4f304(0x12f)]();break;case _0x284f8f[_0xc4f304(0xe4)]:this[_0xc4f304(0x15d)](_0x4a3375);break;}}));}[_0x313013(0xf0)](){var _0x1b6f91=_0x313013;this['_collabSession'][_0x1b6f91(0x111)]({'eventID':_0x284f8f[_0x1b6f91(0x15b)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x1b6f91(0x16e)]()}},this[_0x1b6f91(0x134)]);}[_0x313013(0x185)](){var _0x4447ed=_0x313013;this['_status']===_0x4447ed(0x117)&&(this['_status$'][_0x4447ed(0x124)](_0x4447ed(0xe2)),this[_0x4447ed(0x166)][_0x4447ed(0x111)]({'eventID':_0x284f8f[_0x4447ed(0x14b)],'data':{'unitID':this[_0x4447ed(0x134)]}},this['_unitID']));}[_0x313013(0x139)](){var _0x4fdda0=_0x313013;this[_0x4fdda0(0x106)]===_0x4fdda0(0x116)&&(this[_0x4fdda0(0xd7)][_0x4fdda0(0x124)](_0x4fdda0(0x12a)),this[_0x4fdda0(0x115)]());}[_0x313013(0x165)](){var _0x24b687=_0x313013;this['_status']===_0x24b687(0x12a)&&this[_0x24b687(0x120)]();}['_handleNewHost'](_0x41232e){var _0xd13190=_0x313013;const {presenter:_0x440714}=_0x41232e[_0xd13190(0xf2)],_0x4df3b7=this[_0xd13190(0x166)]['getMemberID']();this[_0xd13190(0x110)]=_0x440714,_0x440714===_0x4df3b7?(this['_stopFollowing'](),this[_0xd13190(0x146)]()):this[_0xd13190(0x106)]!==_0xd13190(0x116)&&(this[_0xd13190(0x100)](),this[_0xd13190(0x115)]());}[_0x313013(0x13b)](){var _0x583848=_0x313013;const _0x4dab6d={'eventID':_0x284f8f['LIVESHARE_FETCH_OPERATIONS']};this[_0x583848(0x166)][_0x583848(0x111)](_0x4dab6d,this['_unitID']);}[_0x313013(0x12f)](){var _0x4e2b5e=_0x313013;this['_presenter']=null,this[_0x4e2b5e(0x106)]!==_0x4e2b5e(0x117)&&this['_beIdle']();}['_handleNewChangeSets'](_0x418c5a){var _0xda71b8=_0x313013;if(this[_0xda71b8(0x106)]===_0xda71b8(0x12a)&&this[_0xda71b8(0x110)]===_0x418c5a[_0xda71b8(0xf2)][_0xda71b8(0x158)]){const _0x573b6e=_0x4e5eba(_0x418c5a['data'])[_0xda71b8(0x12d)]['reverse']()[_0xda71b8(0x14a)](_0x2e6339=>_0x2e6339['id']===_0x5d62bc['id']);if(_0x573b6e){const _0x4b515b=_0x573b6e[_0xda71b8(0x108)][_0xda71b8(0x131)],_0xe5429a=_0x573b6e[_0xda71b8(0x108)]['sheet']['id'];setTimeout(()=>{var _0x1259aa=_0xda71b8;this[_0x1259aa(0x105)][_0x1259aa(0x151)](_0x206df5['id'],{'unitId':_0x4b515b,'subUnitId':_0xe5429a},{'fromCollab':!0x0});});}}}[_0x313013(0x146)](){var _0x20dc08=_0x313013;this['_status$']['next'](_0x20dc08(0x117));const _0x16af89=new Map(),_0x79190e=this[_0x20dc08(0xcf)]=new _0x59dc2e();_0x79190e['add'](_0x4a5097(()=>{var _0x1cc7bd=_0x20dc08;_0x16af89[_0x1cc7bd(0x102)](_0x1d1deb=>_0x1d1deb['complete']()),_0x16af89[_0x1cc7bd(0x13d)]();})),_0x79190e[_0x20dc08(0xe3)](this[_0x20dc08(0x105)][_0x20dc08(0xf7)](_0x11ecaf=>{var _0x17c565=_0x20dc08,_0x35bf68;if(_0x11ecaf[_0x17c565(0x14d)]!==_0x116d56[_0x17c565(0x17a)]||!this['_liveShareService'][_0x17c565(0x11c)](_0x11ecaf['id']))return;const {id:_0x337384}=_0x11ecaf;let _0x44b0b3;_0x16af89[_0x17c565(0x157)](_0x337384)?_0x44b0b3=_0x16af89[_0x17c565(0xd8)](_0x337384):(_0x44b0b3=new _0x228df7(),_0x16af89[_0x17c565(0xdf)](_0x337384,_0x44b0b3),_0x44b0b3[_0x17c565(0xd5)](_0x72d5ce((_0x35bf68=this[_0x17c565(0xf5)]['getConfig'](xe))!=null?_0x35bf68:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5c7348=>{var _0x4f4f6e=_0x17c565;this[_0x4f4f6e(0x166)][_0x4f4f6e(0x111)]({'eventID':_0x284f8f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4f4f6e(0x134)],'operations':{[_0x5c7348['id']]:{'id':_0x5c7348['id'],'params':JSON[_0x4f4f6e(0x13f)](_0x5c7348[_0x4f4f6e(0x108)])}}}},this['_unitID']);})),_0x44b0b3[_0x17c565(0x124)](_0x11ecaf);})),this['_liveShareService'][_0x20dc08(0x11a)](this[_0x20dc08(0x134)])[_0x20dc08(0x102)](_0x2d547f=>this[_0x20dc08(0x166)][_0x20dc08(0x111)]({'eventID':_0x284f8f[_0x20dc08(0x16d)],'data':{'unitID':this[_0x20dc08(0x134)],'operations':{[_0x2d547f['id']]:{'id':_0x2d547f['id'],'params':JSON[_0x20dc08(0x13f)](_0x2d547f[_0x20dc08(0x108)])}}}},this['_unitID']));}[_0x313013(0x100)](){var _0x486d55=_0x313013,_0x57aa57;this[_0x486d55(0xd7)][_0x486d55(0x124)](_0x486d55(0xe2)),(_0x57aa57=this[_0x486d55(0xcf)])==null||_0x57aa57[_0x486d55(0x11b)](),this[_0x486d55(0xcf)]=null;}[_0x313013(0x115)](){var _0x1b7503=_0x313013,_0x3308b8;(_0x3308b8=this[_0x1b7503(0xcf)])==null||_0x3308b8[_0x1b7503(0x11b)](),this[_0x1b7503(0xd7)][_0x1b7503(0x124)](_0x1b7503(0x12a));}[_0x313013(0x127)](){var _0xd787a7=_0x313013,_0x4a6e5d;this[_0xd787a7(0xd7)]['next']('idle'),(_0x4a6e5d=this['_commandDisposable'])==null||_0x4a6e5d[_0xd787a7(0x11b)](),this[_0xd787a7(0xcf)]=null;}[_0x313013(0x120)](){var _0x985948=_0x313013,_0x143153;this[_0x985948(0xd7)][_0x985948(0x124)](_0x985948(0x116)),(_0x143153=this['_commandDisposable'])==null||_0x143153['dispose']();}[_0x313013(0x126)](_0x1f86a8){var _0x11499f=_0x313013;if(['presenting','not-following',_0x11499f(0xf9)][_0x11499f(0x12e)](this['_status'])||!_0x1f86a8['data'][_0x11499f(0x154)]||_0x1f86a8['data'][_0x11499f(0x154)]===this[_0x11499f(0x166)]['getMemberID']())return;this['_status']==='idle'&&this['_startFollowing']();const _0x5c973b=_0x1f86a8['data'][_0x11499f(0x133)];Object[_0x11499f(0xec)](_0x5c973b)[_0x11499f(0x102)](_0x1e2255=>{var _0x956441=_0x11499f;this['_commandService'][_0x956441(0x151)](_0x1e2255['id'],_0x1e2255[_0x956441(0x108)]?JSON[_0x956441(0x125)](_0x1e2255['params']):null,{'fromCollab':!0x0});});}[_0x313013(0xfa)](){var _0x569263=_0x313013,_0x1e4f2a;this['_status$'][_0x569263(0x124)](_0x569263(0xf9)),(_0x1e4f2a=this['_commandDisposable'])==null||_0x1e4f2a[_0x569263(0x11b)]();}['_handleOnline'](){var _0x466c49=_0x313013;this[_0x466c49(0xd7)][_0x466c49(0x124)](_0x466c49(0xe2)),this[_0x466c49(0x13b)]();}};C=Z([f(0x2,_0x3638f5),f(0x3,_0x53b001(L)),f(0x4,_0x7fb0ea)],C);function ye(){var _0x314021=_0x313013;const _0x339b9b=_0x2fb90e(m),_0x41d55b=_0x2fb90e(_0xf8954b),_0xc37bb8=_0x5ec775(()=>_0x41d55b[_0x314021(0x148)](_0x258437[_0x314021(0x175)]),void 0x0,!0x1,[]),[_0x102d6b,_0x1d4cba]=_0x98af16(null),[_0x4165ce,_0x545219]=_0x98af16(h[_0x314021(0x10e)]),_0x420796=_0x4dbc7b(null);return _0x7fb2bf(()=>(_0xc37bb8&&_0x339b9b[_0x314021(0x10d)](_0xc37bb8['getUnitId']())[_0x314021(0x182)](_0x2e28ac=>{var _0x47970b=_0x314021;_0x1d4cba(_0x2e28ac),_0x420796[_0x47970b(0x123)]=_0x2e28ac[_0x47970b(0x12c)][_0x47970b(0x186)](_0x54b82e=>{_0x545219(_0x54b82e);});}),()=>{var _0x4bc3b1=_0x314021,_0x5a840c;(_0x5a840c=_0x420796['current'])==null||_0x5a840c['unsubscribe'](),_0x420796[_0x4bc3b1(0x123)]=null;}),[_0xc37bb8,_0x339b9b]),_0x102d6b?_0x3555d8(_0x2b078d,{'align':_0x314021(0x15e),'disabled':_0x4165ce===h['OFFLINE'],'className':_0x314021(0x149),'overlay':_0x3555d8(Re,{'status':_0x4165ce,'coordinator':_0x102d6b}),'children':_0x3555d8('button',{'className':_0x392cc7(_0x314021(0x129),{'univer-cursor-not-allowed':_0x4165ce===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4165ce!==h[_0x314021(0x113)]}),'type':'button','children':_0x3555d8(B,{'className':_0x314021(0x135)})})}):null;}function Re(_0x44856a){var _0x298c51=_0x313013;const {status:_0x56b573,coordinator:_0x539a08}=_0x44856a;switch(_0x56b573){case h['IDLE']:return _0x3555d8(Pe,{'coordinator':_0x539a08});case h[_0x298c51(0x187)]:return _0x3555d8(Ae,{'coordinator':_0x539a08});case h[_0x298c51(0x177)]:return _0x3555d8(Te,{'coordinator':_0x539a08});case h[_0x298c51(0x113)]:return _0x3555d8(Fe,{});case h[_0x298c51(0x145)]:return _0x3555d8($e,{'coordinator':_0x539a08});default:return null;}}function Pe(_0x80c14e){var _0xff4f5a=_0x313013;const {coordinator:_0x4c6825}=_0x80c14e;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0xff4f5a(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x3555d8(_0x9c96c8,{'onClick':()=>_0x4c6825['tryStartPresenting'](),'children':_0xff4f5a(0x11f)})]});}function Ae(_0x44b01e){var _0x515a31=_0x313013;const {coordinator:_0x2692ab}=_0x44b01e;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x515a31(0x160),{'className':_0x515a31(0x11d),'children':_0x515a31(0x15a)}),_0x3555d8(_0x9c96c8,{'onClick':()=>_0x2692ab[_0x515a31(0x165)](),'children':_0x515a31(0x14c)})]});}function Te(_0x49f43a){var _0x4376fe=_0x313013;const {coordinator:_0x1f158e}=_0x49f43a;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x4376fe(0x160),{'className':_0x4376fe(0x11d),'children':_0x4376fe(0xd6)}),_0x3555d8(_0x9c96c8,{'variant':_0x4376fe(0x122),'onClick':()=>_0x1f158e['startFollowing'](),'children':_0x4376fe(0xf3)})]});}function $e(_0x4e9212){var _0x720036=_0x313013;const {coordinator:_0x328804}=_0x4e9212;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x720036(0x160),{'className':_0x720036(0x11d),'children':_0x720036(0x156)}),_0x3555d8(_0x9c96c8,{'variant':_0x720036(0x147),'onClick':()=>_0x328804[_0x720036(0x185)](),'children':_0x720036(0xde)})]});}function Fe(){var _0x55f51f=_0x313013;return _0x3555d8(_0x5efcf4,{'children':_0x55f51f(0x178)});}var He=Object[_0x313013(0x167)],je=(_0x1685c8,_0x21b651,_0xfeb339,_0xddb9c7)=>{var _0x5eb066=_0x313013;for(var _0x2f858c=_0xddb9c7>0x1?void 0x0:_0xddb9c7?He(_0x21b651,_0xfeb339):_0x21b651,_0x684bf1=_0x1685c8[_0x5eb066(0x143)]-0x1,_0x294d7a;_0x684bf1>=0x0;_0x684bf1--)(_0x294d7a=_0x1685c8[_0x684bf1])&&(_0x2f858c=_0x294d7a(_0x2f858c)||_0x2f858c);return _0x2f858c;},T=(_0x5b2d28,_0x151edf)=>(_0x296c33,_0x1174ca)=>_0x151edf(_0x296c33,_0x1174ca,_0x5b2d28);let I=class extends _0x15177c{constructor(_0x24fd2e,_0xb65f10){var _0x59ef71=_0x313013;super(),this[_0x59ef71(0x152)]=_0x24fd2e,this[_0x59ef71(0x14e)]=_0xb65f10,this[_0x59ef71(0x176)]();}[_0x313013(0x176)](){var _0x255b3d=_0x313013;this[_0x255b3d(0x10c)](this['_uiPartsService'][_0x255b3d(0x16b)](_0x3d6ae4[_0x255b3d(0xe5)],()=>_0x155e9e(ye,this['_injector'])));}};I=je([T(0x0,_0x53b001(_0xf6095)),T(0x1,_0x3a3ffe)],I);const Ue=_0x313013(0x138),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x29e501,_0x2636ad,_0x1df281,_0x379429)=>{for(var _0x12a71d=_0x379429>0x1?void 0x0:_0x379429?Ve(_0x2636ad,_0x1df281):_0x2636ad,_0x227c85=_0x29e501['length']-0x1,_0x10a99e;_0x227c85>=0x0;_0x227c85--)(_0x10a99e=_0x29e501[_0x227c85])&&(_0x12a71d=_0x10a99e(_0x12a71d)||_0x12a71d);return _0x12a71d;},ke=(_0x3dce66,_0x50184d)=>(_0x3fd6c4,_0x5de585)=>_0x50184d(_0x3fd6c4,_0x5de585,_0x3dce66);let b=class extends _0x15177c{constructor(_0x230942){var _0x427f6c=_0x313013;super(),this['_liveShareService']=_0x230942,this[_0x427f6c(0xd0)]();}['_init'](){var _0x46fcc4=_0x313013;[_0xeb514c['id'],_0x19ee46['id'],_0x206df5['id']][_0x46fcc4(0x102)](_0x10bc55=>{var _0xddee00=_0x46fcc4;this[_0xddee00(0x10c)](this[_0xddee00(0x144)]['registerSharedOperation'](_0x10bc55));});}};b=Me([ke(0x0,_0x53b001(L))],b);function _0x1f46(_0x48f29d,_0x15a0a4){var _0x334b97=_0x334b();return _0x1f46=function(_0x1f46f6,_0x559c99){_0x1f46f6=_0x1f46f6-0xcf;var _0x4bf02a=_0x334b97[_0x1f46f6];return _0x4bf02a;},_0x1f46(_0x48f29d,_0x15a0a4);}var Ge=Object[_0x313013(0x11e)],We=Object[_0x313013(0x167)],Ye=(_0x3c3a3a,_0x5e0b27,_0x5957c7)=>_0x5e0b27 in _0x3c3a3a?Ge(_0x3c3a3a,_0x5e0b27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5957c7}):_0x3c3a3a[_0x5e0b27]=_0x5957c7,Be=(_0x105d6d,_0x2a9926,_0x3746be,_0x55920f)=>{var _0x2eecc5=_0x313013;for(var _0x95ffab=_0x55920f>0x1?void 0x0:_0x55920f?We(_0x2a9926,_0x3746be):_0x2a9926,_0x36b6e2=_0x105d6d[_0x2eecc5(0x143)]-0x1,_0x47265e;_0x36b6e2>=0x0;_0x36b6e2--)(_0x47265e=_0x105d6d[_0x36b6e2])&&(_0x95ffab=_0x47265e(_0x95ffab)||_0x95ffab);return _0x95ffab;},F=(_0x53bcef,_0x1d6dfe)=>(_0x117f67,_0x461383)=>_0x1d6dfe(_0x117f67,_0x461383,_0x53bcef),J=(_0x52903c,_0xf7d54f,_0x6c2858)=>Ye(_0x52903c,typeof _0xf7d54f!=_0x313013(0x188)?_0xf7d54f+'':_0xf7d54f,_0x6c2858);const Ze=_0x313013(0x155);let O=class extends _0x4c9b21{constructor(_0x43cf82=$,_0x37f506,_0x1e4d9a){var _0x2354c3=_0x313013;super(),this[_0x2354c3(0x17e)]=_0x43cf82,this[_0x2354c3(0x152)]=_0x37f506,this[_0x2354c3(0xf5)]=_0x1e4d9a;const {..._0xa103c8}=_0x28c635({},$,this['_config']);this[_0x2354c3(0xf5)][_0x2354c3(0x172)](Ue,_0xa103c8);}[_0x313013(0xdd)](){var _0x126b5b=_0x313013;_0x28d1b1(this['_injector'],_0x31c621([[L],[m],[b],[I]],this[_0x126b5b(0x17e)]['override'])),_0x58be07(this['_injector'],[[b]]);}[_0x313013(0x163)](){var _0x17357f=_0x313013;_0x58be07(this[_0x17357f(0x152)],[[I]]);}};J(O,_0x313013(0x14d),_0x258437[_0x313013(0x10a)]),J(O,_0x313013(0x17d),Ze),O=Be([_0x15f744(_0x54c104),F(0x1,_0x53b001(_0xf6095)),F(0x2,_0x3638f5)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5951(_0x41fe6b,_0x34f83a){var _0x546b2d=_0x546b();return _0x5951=function(_0x595115,_0x3ae532){_0x595115=_0x595115-0xeb;var _0x46d05a=_0x546b2d[_0x595115];return _0x46d05a;},_0x5951(_0x41fe6b,_0x34f83a);}(function(_0x51845a,_0x48daa1){var _0xd14c17=_0x5951,_0x39edab=_0x51845a();while(!![]){try{var _0x57cfbb=parseInt(_0xd14c17(0x181))/0x1+parseInt(_0xd14c17(0x185))/0x2+-parseInt(_0xd14c17(0x1a0))/0x3+-parseInt(_0xd14c17(0x1c8))/0x4*(-parseInt(_0xd14c17(0x17f))/0x5)+-parseInt(_0xd14c17(0x14d))/0x6*(-parseInt(_0xd14c17(0x131))/0x7)+-parseInt(_0xd14c17(0x108))/0x8*(parseInt(_0xd14c17(0x154))/0x9)+-parseInt(_0xd14c17(0x11a))/0xa;if(_0x57cfbb===_0x48daa1)break;else _0x39edab['push'](_0x39edab['shift']());}catch(_0x5d40c6){_0x39edab['push'](_0x39edab['shift']());}}}(_0x546b,0xbeb72),function(_0x159850,_0x440879){var _0x2dca9a=_0x5951;typeof exports==_0x2dca9a(0x134)&&typeof module<'u'?_0x440879(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x2dca9a(0x1cd)&&define[_0x2dca9a(0x127)]?define(['exports',_0x2dca9a(0x1bb),'@univerjs/ui',_0x2dca9a(0x171),_0x2dca9a(0x1a9),_0x2dca9a(0x12b),_0x2dca9a(0x118),_0x2dca9a(0x135),_0x2dca9a(0x112),_0x2dca9a(0x192),_0x2dca9a(0x133),_0x2dca9a(0x18d)],_0x440879):(_0x159850=typeof globalThis<'u'?globalThis:_0x159850||self,_0x440879(_0x159850['UniverProLiveShare']={},_0x159850['UniverCore'],_0x159850[_0x2dca9a(0x116)],_0x159850[_0x2dca9a(0x1b3)],_0x159850[_0x2dca9a(0xfe)],_0x159850[_0x2dca9a(0x1b3)],_0x159850[_0x2dca9a(0x140)],_0x159850[_0x2dca9a(0x143)],_0x159850[_0x2dca9a(0x160)],_0x159850[_0x2dca9a(0x192)],_0x159850[_0x2dca9a(0x192)]['operators'],_0x159850[_0x2dca9a(0x150)]));}(this,function(_0x306c00,_0x1c0471,_0x364ad0,_0x4224e5,_0x31d2ac,_0x197fcb,_0x27848c,_0x3810d2,_0x154c01,_0x352f26,_0x157cb5,_0x3a0119){'use strict';var _0x35c375=_0x5951;var _0x15e967=Object[_0x35c375(0x149)],_0x30dc25=(_0x937ec3,_0x3ee63b,_0x38afef)=>_0x3ee63b in _0x937ec3?_0x15e967(_0x937ec3,_0x3ee63b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38afef}):_0x937ec3[_0x3ee63b]=_0x38afef,_0x5ede5f=(_0x5d8b9e,_0x33ae6b,_0x7734e8)=>_0x30dc25(_0x5d8b9e,typeof _0x33ae6b!=_0x35c375(0x186)?_0x33ae6b+'':_0x33ae6b,_0x7734e8),_0x152680=function(){var _0x28e4d2=_0x35c375;return _0x152680=Object['assign']||function(_0x3bbff2){var _0xb712d8=_0x5951;for(var _0x5f3db8,_0x2e7c10=0x1,_0x2c7d3c=arguments[_0xb712d8(0x1dc)];_0x2e7c10<_0x2c7d3c;_0x2e7c10++){_0x5f3db8=arguments[_0x2e7c10];for(var _0x3d6cc1 in _0x5f3db8)Object['prototype'][_0xb712d8(0x1d7)][_0xb712d8(0x1b6)](_0x5f3db8,_0x3d6cc1)&&(_0x3bbff2[_0x3d6cc1]=_0x5f3db8[_0x3d6cc1]);}return _0x3bbff2;},_0x152680[_0x28e4d2(0x115)](this,arguments);},_0x48a372=function(_0x1472f8,_0x252917){var _0x35d58c=_0x35c375,_0x2fecf9={};for(var _0x5c5ba9 in _0x1472f8)Object[_0x35d58c(0x106)][_0x35d58c(0x1d7)][_0x35d58c(0x1b6)](_0x1472f8,_0x5c5ba9)&&_0x252917[_0x35d58c(0x114)](_0x5c5ba9)<0x0&&(_0x2fecf9[_0x5c5ba9]=_0x1472f8[_0x5c5ba9]);if(_0x1472f8!=null&&typeof Object[_0x35d58c(0xff)]==_0x35d58c(0x1cd)){for(var _0x495492=0x0,_0x5c5ba9=Object[_0x35d58c(0xff)](_0x1472f8);_0x495492<_0x5c5ba9[_0x35d58c(0x1dc)];_0x495492++)_0x252917['indexOf'](_0x5c5ba9[_0x495492])<0x0&&Object['prototype'][_0x35d58c(0x11f)][_0x35d58c(0x1b6)](_0x1472f8,_0x5c5ba9[_0x495492])&&(_0x2fecf9[_0x5c5ba9[_0x495492]]=_0x1472f8[_0x5c5ba9[_0x495492]]);}return _0x2fecf9;},_0x48340f=_0x197fcb[_0x35c375(0xef)](function(_0x548c07,_0x56391c){var _0x1da60d=_0x35c375,_0xa4ba53=_0x548c07[_0x1da60d(0x18e)],_0x5e00dd=_0x548c07['id'],_0x10def3=_0x548c07[_0x1da60d(0x1a8)],_0x598938=_0x548c07[_0x1da60d(0x119)],_0x50b221=_0x48a372(_0x548c07,[_0x1da60d(0x18e),'id','className','extend']),_0x2bf922='univerjs-icon\x20univerjs-icon-'[_0x1da60d(0x155)](_0x5e00dd,'\x20')[_0x1da60d(0x155)](_0x10def3||'')[_0x1da60d(0x146)](),_0x3f16c0=_0x197fcb[_0x1da60d(0xf3)]('_'[_0x1da60d(0x155)](_0x460991()));return _0x4721e7(_0xa4ba53,''[_0x1da60d(0x155)](_0x5e00dd),{'defIds':_0xa4ba53[_0x1da60d(0x173)],'idSuffix':_0x3f16c0[_0x1da60d(0x18b)]},_0x152680({'ref':_0x56391c,'className':_0x2bf922},_0x50b221),_0x598938);});function _0x4721e7(_0x36fa2c,_0xd6a1c,_0x9bf79a,_0x1c8dd0,_0x4d2c9e){var _0x16fe91=_0x35c375;return _0x197fcb[_0x16fe91(0xfb)](_0x36fa2c[_0x16fe91(0x13d)],_0x152680(_0x152680({'key':_0xd6a1c},_0x12f44f(_0x36fa2c,_0x9bf79a,_0x4d2c9e)),_0x1c8dd0),(_0x459472(_0x36fa2c,_0x9bf79a)['children']||[])['map'](function(_0x50465d,_0x3b3951){var _0x387d34=_0x16fe91;return _0x4721e7(_0x50465d,''[_0x387d34(0x155)](_0xd6a1c,'-')[_0x387d34(0x155)](_0x36fa2c['tag'],'-')[_0x387d34(0x155)](_0x3b3951),_0x9bf79a,void 0x0,_0x4d2c9e);}));}function _0x12f44f(_0x225d12,_0x2d4eec,_0x525432){var _0x5a2bc1=_0x35c375,_0x2ab68d=_0x152680({},_0x225d12['attrs']);_0x525432!=null&&_0x525432['colorChannel1']&&_0x2ab68d[_0x5a2bc1(0x164)]===_0x5a2bc1(0x195)&&(_0x2ab68d[_0x5a2bc1(0x164)]=_0x525432[_0x5a2bc1(0x195)]),_0x225d12[_0x5a2bc1(0x13d)]===_0x5a2bc1(0x12e)&&_0x2ab68d['id']&&(_0x2ab68d['id']=_0x2ab68d['id']+_0x2d4eec[_0x5a2bc1(0x15d)]),Object[_0x5a2bc1(0x10e)](_0x2ab68d)['forEach'](function(_0x586f){var _0x100e90=_0x5a2bc1,_0x24d3ab=_0x586f[0x0],_0x35f586=_0x586f[0x1];_0x24d3ab===_0x100e90(0x12e)&&typeof _0x35f586=='string'&&(_0x2ab68d[_0x24d3ab]=_0x35f586[_0x100e90(0x16e)](/url\(#(.*)\)/,_0x100e90(0x191)[_0x100e90(0x155)](_0x2d4eec['idSuffix'],')')));});var _0x4e89d7=_0x2d4eec[_0x5a2bc1(0x173)];return!_0x4e89d7||_0x4e89d7['length']===0x0||(_0x225d12[_0x5a2bc1(0x13d)]===_0x5a2bc1(0x12f)&&_0x2ab68d['xlink:href']&&(_0x2ab68d[_0x5a2bc1(0x199)]=_0x2ab68d[_0x5a2bc1(0x199)]+_0x2d4eec[_0x5a2bc1(0x15d)]),Object['entries'](_0x2ab68d)[_0x5a2bc1(0x13b)](function(_0x4af2e5){var _0x50ddc7=_0x5a2bc1,_0x25e29a=_0x4af2e5[0x0],_0x1fe3ae=_0x4af2e5[0x1];typeof _0x1fe3ae==_0x50ddc7(0xf6)&&(_0x2ab68d[_0x25e29a]=_0x1fe3ae['replace'](/url\(#(.*)\)/,_0x50ddc7(0x191)['concat'](_0x2d4eec['idSuffix'],')')));})),_0x2ab68d;}function _0x459472(_0x5ae438,_0x2905e0){var _0x1c9865=_0x35c375,_0x5a94bb,_0x2950c8=_0x2905e0[_0x1c9865(0x173)];return!_0x2950c8||_0x2950c8[_0x1c9865(0x1dc)]===0x0?_0x5ae438:_0x5ae438['tag']===_0x1c9865(0xed)&&(!((_0x5a94bb=_0x5ae438['children'])===null||_0x5a94bb===void 0x0)&&_0x5a94bb['length'])?_0x152680(_0x152680({},_0x5ae438),{'children':_0x5ae438[_0x1c9865(0x14a)][_0x1c9865(0x179)](function(_0x2d0a38){var _0x52e60e=_0x1c9865;return typeof _0x2d0a38['attrs']['id']==_0x52e60e(0xf6)&&_0x2950c8&&_0x2950c8['includes'](_0x2d0a38[_0x52e60e(0x147)]['id'])?_0x152680(_0x152680({},_0x2d0a38),{'attrs':_0x152680(_0x152680({},_0x2d0a38[_0x52e60e(0x147)]),{'id':_0x2d0a38[_0x52e60e(0x147)]['id']+_0x2905e0['idSuffix']})}):_0x2d0a38;})}):_0x5ae438;}function _0x460991(){var _0x298fbc=_0x35c375;return Math['random']()[_0x298fbc(0x1a3)](0x24)['substring'](0x2,0x8);}_0x48340f[_0x35c375(0x198)]='UniverIcon';var _0x34b730={'tag':_0x35c375(0x121),'attrs':{'xmlns':_0x35c375(0x1dd),'fill':_0x35c375(0x1ba),'viewBox':_0x35c375(0x1a2),'width':_0x35c375(0x10a),'height':'1em'},'children':[{'tag':_0x35c375(0x1c7),'attrs':{'fill':_0x35c375(0x19a),'d':_0x35c375(0xf1)}},{'tag':_0x35c375(0x1c7),'attrs':{'fill':_0x35c375(0x19a),'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':_0x35c375(0x1e0),'clipRule':_0x35c375(0x1e0)}}]},_0x18dc00=_0x197fcb[_0x35c375(0xef)](function(_0x53c7d7,_0x5e38b5){var _0x391d49=_0x35c375;return _0x197fcb[_0x391d49(0xfb)](_0x48340f,Object[_0x391d49(0xf9)]({},_0x53c7d7,{'id':_0x391d49(0x1ad),'ref':_0x5e38b5,'icon':_0x34b730}));});_0x18dc00[_0x35c375(0x198)]=_0x35c375(0x1d8);class _0x231f7a extends _0x1c0471[_0x35c375(0x18a)]{constructor(){var _0x1c56e6=_0x35c375;super(...arguments),_0x5ede5f(this,'_sharedOperations',new Set()),_0x5ede5f(this,_0x1c56e6(0x139),new Set());}[_0x35c375(0xf7)](_0x321723){var _0x3d7c0c=_0x35c375;return this[_0x3d7c0c(0x1ac)][_0x3d7c0c(0x102)](_0x321723),_0x1c0471[_0x3d7c0c(0x162)](()=>this[_0x3d7c0c(0x1ac)][_0x3d7c0c(0x13e)](_0x321723));}['registerInitialStateReporter'](_0x17c61c){var _0xb5ef75=_0x35c375;return this['_reporters'][_0xb5ef75(0x102)](_0x17c61c),_0x1c0471['toDisposable'](()=>this[_0xb5ef75(0x139)][_0xb5ef75(0x13e)](_0x17c61c));}[_0x35c375(0x1a6)](_0x9ffa8f){var _0x438acb=_0x35c375;return this[_0x438acb(0x1ac)][_0x438acb(0x163)](_0x9ffa8f);}[_0x35c375(0x166)](_0x5ca269){var _0x49fd97=_0x35c375;return Array[_0x49fd97(0x113)](this[_0x49fd97(0x139)])[_0x49fd97(0x179)](_0x596db6=>_0x596db6(_0x5ca269));}}var _0x42f1b3=Object[_0x35c375(0x1c2)],_0x12b983=(_0x4377fe,_0x3b1978,_0x11eafc,_0x485dee)=>{var _0x1c9a39=_0x35c375;for(var _0x1e9083=_0x485dee>0x1?void 0x0:_0x485dee?_0x42f1b3(_0x3b1978,_0x11eafc):_0x3b1978,_0xd7c83=_0x4377fe[_0x1c9a39(0x1dc)]-0x1,_0x2a36d9;_0xd7c83>=0x0;_0xd7c83--)(_0x2a36d9=_0x4377fe[_0xd7c83])&&(_0x1e9083=_0x2a36d9(_0x1e9083)||_0x1e9083);return _0x1e9083;},_0x1238db=(_0x29a926,_0xaf275d)=>(_0x2b66d2,_0x11c6d5)=>_0xaf275d(_0x2b66d2,_0x11c6d5,_0x29a926);_0x306c00[_0x35c375(0x14e)]=class extends _0x1c0471[_0x35c375(0x1c4)]{constructor(_0x197c6a,_0x15ccd6,_0x4c69fe){var _0x537dea=_0x35c375;super(),_0x5ede5f(this,_0x537dea(0x11c),new Map()),(this[_0x537dea(0x13c)]=_0x197c6a,this[_0x537dea(0x107)]=_0x15ccd6,this[_0x537dea(0x178)]=_0x4c69fe,this[_0x537dea(0x16d)]());}async[_0x35c375(0x16c)](_0x2ec2fc){var _0x5481a2=_0x35c375;return this[_0x5481a2(0x11c)][_0x5481a2(0x163)](_0x2ec2fc)||await this[_0x5481a2(0x117)](_0x2ec2fc),this[_0x5481a2(0x11c)][_0x5481a2(0x161)](_0x2ec2fc);}[_0x35c375(0x16d)](){var _0x1b05b1=_0x35c375;this[_0x1b05b1(0x13c)]['getTypeOfUnitAdded$'](_0x1c0471[_0x1b05b1(0x145)]['UNIVER_SHEET'])[_0x1b05b1(0x169)](_0x157cb5[_0x1b05b1(0xf2)](this[_0x1b05b1(0x136)]))[_0x1b05b1(0x17b)](async _0x5365fc=>{var _0x36d91d=_0x1b05b1;const _0x4aa144=_0x5365fc['getUnitId']();this[_0x36d91d(0x11c)]['has'](_0x4aa144)||this[_0x36d91d(0x117)](_0x4aa144);}),this[_0x1b05b1(0x13c)][_0x1b05b1(0x187)](_0x1c0471[_0x1b05b1(0x145)]['UNIVER_SHEET'])[_0x1b05b1(0x169)](_0x157cb5[_0x1b05b1(0xf2)](this[_0x1b05b1(0x136)]))[_0x1b05b1(0x17b)](_0x29d20a=>{var _0x44f56f=_0x1b05b1;const _0x2db141=_0x29d20a['getUnitId'](),_0x1c7a75=this[_0x44f56f(0x11c)][_0x44f56f(0x161)](_0x2db141);_0x1c7a75==null||_0x1c7a75[_0x44f56f(0x132)]();});}async[_0x35c375(0x117)](_0x2cd934){var _0x3bce21=_0x35c375;const _0x2e0fe9=await this[_0x3bce21(0x178)]['requireSession'](_0x2cd934),_0xd85af1=this[_0x3bce21(0x107)][_0x3bce21(0x19b)](_0x306c00['LiveShareCoordinator'],_0x2cd934,_0x2e0fe9);return _0xd85af1['init'](),this[_0x3bce21(0x11c)][_0x3bce21(0x1ce)](_0x2cd934,_0xd85af1),_0xd85af1;}},_0x306c00[_0x35c375(0x14e)]=_0x12b983([_0x1238db(0x0,_0x1c0471[_0x35c375(0x1d4)]),_0x1238db(0x1,_0x1c0471[_0x35c375(0x1a1)](_0x1c0471[_0x35c375(0x197)])),_0x1238db(0x2,_0x1c0471[_0x35c375(0x1a1)](_0x3810d2[_0x35c375(0x142)]))],_0x306c00[_0x35c375(0x14e)]);var _0x134d96=(_0x28a359=>(_0x28a359[_0x35c375(0x105)]=_0x35c375(0x158),_0x28a359[_0x35c375(0x1b1)]='idle',_0x28a359[_0x35c375(0x14b)]=_0x35c375(0x10d),_0x28a359[_0x35c375(0xf8)]=_0x35c375(0x11b),_0x28a359['PRESENTING']=_0x35c375(0x172),_0x28a359))(_0x134d96||{});const _0x304b68=_0x35c375(0x16f),_0x4c29eb=0xc8;_0x306c00[_0x35c375(0x12a)]=class extends _0x1c0471[_0x35c375(0x1c4)]{constructor(_0x256330,_0x4a1401,_0x23e665,_0x30612f,_0x43506d){var _0x87fc35=_0x35c375;super(),_0x5ede5f(this,_0x87fc35(0x17e),new _0x352f26[(_0x87fc35(0x1c9))](_0x87fc35(0x15f))),_0x5ede5f(this,'status$',this[_0x87fc35(0x17e)]['asObservable']()),_0x5ede5f(this,_0x87fc35(0x16d),!0x1),_0x5ede5f(this,_0x87fc35(0x16a),null),_0x5ede5f(this,'_presenter',null),(this['_unitID']=_0x256330,this[_0x87fc35(0x1db)]=_0x4a1401,this['_configService']=_0x23e665,this[_0x87fc35(0x159)]=_0x30612f,this[_0x87fc35(0x1a7)]=_0x43506d);}get[_0x35c375(0x157)](){var _0x2c790a=_0x35c375;return this[_0x2c790a(0x17e)][_0x2c790a(0xfc)]();}[_0x35c375(0x132)](){var _0x3a1fd9=_0x35c375,_0x41934c;(_0x41934c=this['_commandDisposable'])==null||_0x41934c[_0x3a1fd9(0x132)](),this[_0x3a1fd9(0x17e)]['next']('idle'),this[_0x3a1fd9(0x17e)][_0x3a1fd9(0x1d0)]();}[_0x35c375(0x167)](){var _0x42df17=_0x35c375;this['_init']||(this['_init']=!0x0,this[_0x42df17(0x1db)][_0x42df17(0x183)][_0x42df17(0x169)](_0x157cb5[_0x42df17(0xf2)](this['dispose$']))['subscribe'](_0x359d83=>{var _0xb6fc98=_0x42df17;switch(_0x359d83){case _0x3810d2[_0xb6fc98(0x13f)][_0xb6fc98(0x105)]:this[_0xb6fc98(0x19f)]();break;case _0x3810d2[_0xb6fc98(0x13f)]['ONLINE']:this[_0xb6fc98(0x17c)]();break;}}),this['_collabSession'][_0x42df17(0x1cc)][_0x42df17(0x169)](_0x157cb5[_0x42df17(0xf2)](this[_0x42df17(0x136)]))[_0x42df17(0x17b)](_0x1fa6cb=>{var _0x11dba0=_0x42df17;const {eventID:_0x3d53d1}=_0x1fa6cb;switch(_0x3d53d1){case _0x27848c[_0x11dba0(0x1a5)][_0x11dba0(0x100)]:this[_0x11dba0(0x17a)](_0x1fa6cb);break;case _0x27848c[_0x11dba0(0x1a5)][_0x11dba0(0x1e1)]:this[_0x11dba0(0x110)](_0x1fa6cb);break;case _0x27848c[_0x11dba0(0x1a5)][_0x11dba0(0x111)]:this[_0x11dba0(0x1b2)]();break;case _0x27848c[_0x11dba0(0x1a5)]['NEW_CHANGESETS']:this[_0x11dba0(0x124)](_0x1fa6cb);break;}}));}[_0x35c375(0x1d2)](){var _0x58977a=_0x35c375;this[_0x58977a(0x1db)]['send']({'eventID':_0x27848c[_0x58977a(0x1a5)][_0x58977a(0x1b8)],'data':{'unitID':this[_0x58977a(0x174)],'userID':this['_collabSession'][_0x58977a(0x1e2)]()}},this[_0x58977a(0x174)]);}[_0x35c375(0x1de)](){var _0x5f4d3e=_0x35c375;this[_0x5f4d3e(0x157)]===_0x5f4d3e(0x172)&&(this['_status$'][_0x5f4d3e(0x1d5)](_0x5f4d3e(0x15f)),this[_0x5f4d3e(0x1db)]['send']({'eventID':_0x27848c[_0x5f4d3e(0x1a5)][_0x5f4d3e(0x111)],'data':{'unitID':this['_unitID']}},this[_0x5f4d3e(0x174)]));}[_0x35c375(0x1c5)](){var _0x561628=_0x35c375;this[_0x561628(0x157)]===_0x561628(0x11b)&&(this[_0x561628(0x17e)][_0x561628(0x1d5)](_0x561628(0x10d)),this[_0x561628(0x17d)]());}[_0x35c375(0x122)](){var _0x77852e=_0x35c375;this[_0x77852e(0x157)]===_0x77852e(0x10d)&&this[_0x77852e(0x1c3)]();}['_handleNewHost'](_0x5a4e88){var _0x370f1e=_0x35c375;const {presenter:_0x5d9c12}=_0x5a4e88['data'],_0x14d7b2=this['_collabSession'][_0x370f1e(0x1e2)]();this[_0x370f1e(0x190)]=_0x5d9c12,_0x5d9c12===_0x14d7b2?(this[_0x370f1e(0x1c3)](),this['_startPresenting']()):this[_0x370f1e(0x157)]!=='not-following'&&(this[_0x370f1e(0x128)](),this['_startFollowing']());}['_fetchOperations'](){var _0x3c4232=_0x35c375;const _0x1730e0={'eventID':_0x27848c[_0x3c4232(0x1a5)][_0x3c4232(0x18c)]};this[_0x3c4232(0x1db)][_0x3c4232(0x1b7)](_0x1730e0,this[_0x3c4232(0x174)]);}[_0x35c375(0x1b2)](){var _0x2279ca=_0x35c375;this['_presenter']=null,this[_0x2279ca(0x157)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x2edbcb){var _0xee35de=_0x35c375;if(this[_0xee35de(0x157)]==='following'&&this[_0xee35de(0x190)]===_0x2edbcb['data']['memberID']){const _0x157057=_0x27848c[_0xee35de(0x125)](_0x2edbcb['data'])[_0xee35de(0x194)]['reverse']()[_0xee35de(0x180)](_0x407686=>_0x407686['id']===_0x154c01[_0xee35de(0xeb)]['id']);if(_0x157057){const _0x48b490=_0x157057[_0xee35de(0x175)][_0xee35de(0x137)],_0x48c1bc=_0x157057[_0xee35de(0x175)]['sheet']['id'];setTimeout(()=>{var _0x370806=_0xee35de;this['_commandService'][_0x370806(0x176)](_0x154c01[_0x370806(0x144)]['id'],{'unitId':_0x48b490,'subUnitId':_0x48c1bc},{'fromCollab':!0x0});});}}}[_0x35c375(0x189)](){var _0x557108=_0x35c375;this['_status$'][_0x557108(0x1d5)](_0x557108(0x172));const _0x2d5395=new Map(),_0x3f2857=this['_commandDisposable']=new _0x1c0471['DisposableCollection']();_0x3f2857[_0x557108(0x102)](_0x1c0471[_0x557108(0x162)](()=>{var _0x419dba=_0x557108;_0x2d5395[_0x419dba(0x13b)](_0x4e80c0=>_0x4e80c0[_0x419dba(0x1d0)]()),_0x2d5395[_0x419dba(0x12d)]();})),_0x3f2857[_0x557108(0x102)](this[_0x557108(0x1a7)]['onCommandExecuted'](_0x4648ea=>{var _0x150bee=_0x557108,_0x5b457a;if(_0x4648ea[_0x150bee(0x16b)]!==_0x1c0471[_0x150bee(0x1b9)][_0x150bee(0x130)]||!this['_liveShareService'][_0x150bee(0x1a6)](_0x4648ea['id']))return;const {id:_0x58b8c6}=_0x4648ea;let _0x2ffaee;_0x2d5395['has'](_0x58b8c6)?_0x2ffaee=_0x2d5395[_0x150bee(0x161)](_0x58b8c6):(_0x2ffaee=new _0x352f26[(_0x150bee(0x184))](),_0x2d5395['set'](_0x58b8c6,_0x2ffaee),_0x2ffaee['pipe'](_0x157cb5[_0x150bee(0x182)]((_0x5b457a=this[_0x150bee(0x120)][_0x150bee(0x153)](_0x304b68))!=null?_0x5b457a:_0x4c29eb,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x581514=>{var _0xf4ab11=_0x150bee;this['_collabSession'][_0xf4ab11(0x1b7)]({'eventID':_0x27848c['CollaborationEvent'][_0xf4ab11(0x1e1)],'data':{'unitID':this['_unitID'],'operations':{[_0x581514['id']]:{'id':_0x581514['id'],'params':JSON[_0xf4ab11(0x1c0)](_0x581514['params'])}}}},this[_0xf4ab11(0x174)]);})),_0x2ffaee['next'](_0x4648ea);})),this[_0x557108(0x159)][_0x557108(0x166)](this[_0x557108(0x174)])[_0x557108(0x13b)](_0x178939=>this[_0x557108(0x1db)][_0x557108(0x1b7)]({'eventID':_0x27848c['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x557108(0x174)],'operations':{[_0x178939['id']]:{'id':_0x178939['id'],'params':JSON[_0x557108(0x1c0)](_0x178939[_0x557108(0x175)])}}}},this[_0x557108(0x174)]));}[_0x35c375(0x128)](){var _0x3e9497=_0x35c375,_0x5ea083;this[_0x3e9497(0x17e)][_0x3e9497(0x1d5)]('idle'),(_0x5ea083=this[_0x3e9497(0x16a)])==null||_0x5ea083[_0x3e9497(0x132)](),this['_commandDisposable']=null;}[_0x35c375(0x17d)](){var _0x29e217=_0x35c375,_0x3e6932;(_0x3e6932=this[_0x29e217(0x16a)])==null||_0x3e6932[_0x29e217(0x132)](),this[_0x29e217(0x17e)][_0x29e217(0x1d5)](_0x29e217(0x10d));}['_beIdle'](){var _0xf0233c=_0x35c375,_0xd5ae92;this[_0xf0233c(0x17e)][_0xf0233c(0x1d5)](_0xf0233c(0x15f)),(_0xd5ae92=this['_commandDisposable'])==null||_0xd5ae92['dispose'](),this['_commandDisposable']=null;}[_0x35c375(0x1c3)](){var _0x587c1c=_0x35c375,_0x48b5b8;this['_status$'][_0x587c1c(0x1d5)](_0x587c1c(0x11b)),(_0x48b5b8=this[_0x587c1c(0x16a)])==null||_0x48b5b8[_0x587c1c(0x132)]();}[_0x35c375(0x110)](_0x5c2f8b){var _0x351ee1=_0x35c375;if([_0x351ee1(0x172),_0x351ee1(0x11b),_0x351ee1(0x158)]['includes'](this[_0x351ee1(0x157)])||!_0x5c2f8b[_0x351ee1(0x12c)][_0x351ee1(0x19d)]||_0x5c2f8b['data'][_0x351ee1(0x19d)]===this[_0x351ee1(0x1db)][_0x351ee1(0x1e2)]())return;this[_0x351ee1(0x157)]==='idle'&&this[_0x351ee1(0x17d)]();const _0x5b9ac4=_0x5c2f8b['data'][_0x351ee1(0x1bf)];Object['values'](_0x5b9ac4)[_0x351ee1(0x13b)](_0x29a908=>{var _0x5069f8=_0x351ee1;this[_0x5069f8(0x1a7)][_0x5069f8(0x176)](_0x29a908['id'],_0x29a908['params']?JSON['parse'](_0x29a908['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4cac92=_0x35c375,_0x14c7d2;this[_0x4cac92(0x17e)]['next'](_0x4cac92(0x158)),(_0x14c7d2=this[_0x4cac92(0x16a)])==null||_0x14c7d2[_0x4cac92(0x132)]();}[_0x35c375(0x17c)](){var _0x3f252e=_0x35c375;this[_0x3f252e(0x17e)][_0x3f252e(0x1d5)](_0x3f252e(0x15f)),this[_0x3f252e(0x152)]();}},_0x306c00['LiveShareCoordinator']=_0x12b983([_0x1238db(0x2,_0x1c0471['IConfigService']),_0x1238db(0x3,_0x1c0471[_0x35c375(0x1a1)](_0x231f7a)),_0x1238db(0x4,_0x1c0471['ICommandService'])],_0x306c00['LiveShareCoordinator']);function _0x32b0d1(){var _0x13fcfa=_0x35c375;const _0x16d4ff=_0x364ad0['useDependency'](_0x306c00['LiveShareController']),_0x4c3c6a=_0x364ad0[_0x13fcfa(0x19e)](_0x1c0471[_0x13fcfa(0x1d4)]),_0x31640a=_0x364ad0[_0x13fcfa(0x196)](()=>_0x4c3c6a[_0x13fcfa(0x151)](_0x1c0471[_0x13fcfa(0x145)][_0x13fcfa(0x141)]),void 0x0,!0x1,[]),[_0x111579,_0x111d44]=_0x197fcb[_0x13fcfa(0x14f)](null),[_0xc5154a,_0x59f0cd]=_0x197fcb['useState'](_0x134d96[_0x13fcfa(0x1b1)]),_0x2a1665=_0x197fcb['useRef'](null);return _0x197fcb[_0x13fcfa(0x1aa)](()=>(_0x31640a&&_0x16d4ff[_0x13fcfa(0x16c)](_0x31640a[_0x13fcfa(0xfd)]())[_0x13fcfa(0xfa)](_0x4535f3=>{var _0x19847b=_0x13fcfa;_0x111d44(_0x4535f3),_0x2a1665[_0x19847b(0x18b)]=_0x4535f3[_0x19847b(0x188)][_0x19847b(0x17b)](_0x74718=>{_0x59f0cd(_0x74718);});}),()=>{var _0x4a823c=_0x13fcfa,_0x5f0a05;(_0x5f0a05=_0x2a1665['current'])==null||_0x5f0a05[_0x4a823c(0x10b)](),_0x2a1665[_0x4a823c(0x18b)]=null;}),[_0x31640a,_0x16d4ff]),_0x111579?_0x4224e5[_0x13fcfa(0x156)](_0x31d2ac[_0x13fcfa(0x1d1)],{'align':_0x13fcfa(0x103),'disabled':_0xc5154a===_0x134d96[_0x13fcfa(0x105)],'className':_0x13fcfa(0x148),'overlay':_0x4224e5['jsx'](_0xf44287,{'status':_0xc5154a,'coordinator':_0x111579}),'children':_0x4224e5[_0x13fcfa(0x156)]('button',{'className':_0x31d2ac[_0x13fcfa(0x1c6)](_0x13fcfa(0x1ab),{'univer-cursor-not-allowed':_0xc5154a===_0x134d96['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xc5154a!==_0x134d96[_0x13fcfa(0x105)]}),'type':_0x13fcfa(0x1bc),'children':_0x4224e5['jsx'](_0x18dc00,{'className':_0x13fcfa(0x1b4)})})}):null;}function _0xf44287(_0x371ddc){var _0x545bff=_0x35c375;const {status:_0x1cd06b,coordinator:_0x20aa24}=_0x371ddc;switch(_0x1cd06b){case _0x134d96[_0x545bff(0x1b1)]:return _0x4224e5['jsx'](_0x351085,{'coordinator':_0x20aa24});case _0x134d96[_0x545bff(0x14b)]:return _0x4224e5[_0x545bff(0x156)](_0x82cf93,{'coordinator':_0x20aa24});case _0x134d96[_0x545bff(0xf8)]:return _0x4224e5[_0x545bff(0x156)](_0x163478,{'coordinator':_0x20aa24});case _0x134d96[_0x545bff(0x105)]:return _0x4224e5[_0x545bff(0x156)](_0x2dfa96,{});case _0x134d96['PRESENTING']:return _0x4224e5[_0x545bff(0x156)](_0x47bab1,{'coordinator':_0x20aa24});default:return null;}}function _0x351085(_0x27eef3){var _0x479fb0=_0x35c375;const {coordinator:_0x3cc06f}=_0x27eef3;return _0x4224e5[_0x479fb0(0xf4)](_0x4224e5[_0x479fb0(0x13a)],{'children':[_0x4224e5['jsx'](_0x479fb0(0x129),{'className':_0x479fb0(0x15b),'children':_0x479fb0(0x104)}),_0x4224e5['jsx'](_0x31d2ac[_0x479fb0(0x15e)],{'onClick':()=>_0x3cc06f[_0x479fb0(0x1d2)](),'children':_0x479fb0(0x138)})]});}function _0x82cf93(_0x544d3d){var _0x4c3dac=_0x35c375;const {coordinator:_0x166d82}=_0x544d3d;return _0x4224e5['jsxs'](_0x4224e5['Fragment'],{'children':[_0x4224e5[_0x4c3dac(0x156)](_0x4c3dac(0x129),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x4224e5['jsx'](_0x31d2ac[_0x4c3dac(0x15e)],{'onClick':()=>_0x166d82[_0x4c3dac(0x122)](),'children':_0x4c3dac(0x126)})]});}function _0x163478(_0x29fb41){var _0x598a15=_0x35c375;const {coordinator:_0x566f9f}=_0x29fb41;return _0x4224e5['jsxs'](_0x4224e5[_0x598a15(0x13a)],{'children':[_0x4224e5[_0x598a15(0x156)](_0x598a15(0x129),{'className':_0x598a15(0x15b),'children':_0x598a15(0x1df)}),_0x4224e5[_0x598a15(0x156)](_0x31d2ac[_0x598a15(0x15e)],{'variant':_0x598a15(0x1b0),'onClick':()=>_0x566f9f[_0x598a15(0x1c5)](),'children':_0x598a15(0x1cb)})]});}function _0x47bab1(_0xf763ca){var _0x2cb3f7=_0x35c375;const {coordinator:_0x3f7268}=_0xf763ca;return _0x4224e5[_0x2cb3f7(0xf4)](_0x4224e5[_0x2cb3f7(0x13a)],{'children':[_0x4224e5[_0x2cb3f7(0x156)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x4224e5[_0x2cb3f7(0x156)](_0x31d2ac[_0x2cb3f7(0x15e)],{'variant':_0x2cb3f7(0x1ae),'onClick':()=>_0x3f7268[_0x2cb3f7(0x1de)](),'children':_0x2cb3f7(0x1ca)})]});}function _0x2dfa96(){var _0x4a4a8f=_0x35c375;return _0x4224e5[_0x4a4a8f(0x156)](_0x4224e5[_0x4a4a8f(0x13a)],{'children':_0x4a4a8f(0xee)});}var _0x37739c=Object[_0x35c375(0x1c2)],_0x3306ac=(_0x3c738d,_0x14e15a,_0x14d852,_0x136a2c)=>{for(var _0x554dc5=_0x136a2c>0x1?void 0x0:_0x136a2c?_0x37739c(_0x14e15a,_0x14d852):_0x14e15a,_0x28468f=_0x3c738d['length']-0x1,_0x36dfc9;_0x28468f>=0x0;_0x28468f--)(_0x36dfc9=_0x3c738d[_0x28468f])&&(_0x554dc5=_0x36dfc9(_0x554dc5)||_0x554dc5);return _0x554dc5;},_0x42fb6a=(_0x14f9e5,_0x5f7726)=>(_0x1893a2,_0xd78647)=>_0x5f7726(_0x1893a2,_0xd78647,_0x14f9e5);_0x306c00[_0x35c375(0x1da)]=class extends _0x1c0471[_0x35c375(0x18a)]{constructor(_0x4f50bb,_0x29be04){var _0x4072e8=_0x35c375;super(),this[_0x4072e8(0x107)]=_0x4f50bb,this[_0x4072e8(0x10f)]=_0x29be04,this[_0x4072e8(0x1a4)]();}['_mountLiveShare'](){var _0x2b3e76=_0x35c375;this[_0x2b3e76(0x101)](this[_0x2b3e76(0x10f)][_0x2b3e76(0x170)](_0x364ad0[_0x2b3e76(0x15c)][_0x2b3e76(0x18f)],()=>_0x364ad0[_0x2b3e76(0x1d6)](_0x32b0d1,this['_injector'])));}},_0x306c00[_0x35c375(0x1da)]=_0x3306ac([_0x42fb6a(0x0,_0x1c0471[_0x35c375(0x1a1)](_0x1c0471[_0x35c375(0x197)])),_0x42fb6a(0x1,_0x364ad0[_0x35c375(0x109)])],_0x306c00[_0x35c375(0x1da)]);const _0x3275f2='live-share.config',_0x1b237e={};var _0x2e0a9b=Object[_0x35c375(0x1c2)],_0x356f4d=(_0x1fe9f2,_0x5684d4,_0x1dd425,_0x2b4ec9)=>{var _0x3dfaa4=_0x35c375;for(var _0x5239f4=_0x2b4ec9>0x1?void 0x0:_0x2b4ec9?_0x2e0a9b(_0x5684d4,_0x1dd425):_0x5684d4,_0x201ea4=_0x1fe9f2[_0x3dfaa4(0x1dc)]-0x1,_0x4fea2f;_0x201ea4>=0x0;_0x201ea4--)(_0x4fea2f=_0x1fe9f2[_0x201ea4])&&(_0x5239f4=_0x4fea2f(_0x5239f4)||_0x5239f4);return _0x5239f4;},_0x12699f=(_0x5b46d1,_0x530442)=>(_0x43ef69,_0x107664)=>_0x530442(_0x43ef69,_0x107664,_0x5b46d1);let _0x3aeba5=class extends _0x1c0471[_0x35c375(0x18a)]{constructor(_0xc442f5){var _0x55d4b5=_0x35c375;super(),this[_0x55d4b5(0x159)]=_0xc442f5,this[_0x55d4b5(0x16d)]();}[_0x35c375(0x16d)](){var _0x169bc5=_0x35c375;[_0x3a0119[_0x169bc5(0x11e)]['id'],_0x3a0119[_0x169bc5(0x193)]['id'],_0x154c01['SetWorksheetActiveOperation']['id']][_0x169bc5(0x13b)](_0x2de68e=>{var _0x2751ce=_0x169bc5;this['disposeWithMe'](this[_0x2751ce(0x159)]['registerSharedOperation'](_0x2de68e));});}};_0x3aeba5=_0x356f4d([_0x12699f(0x0,_0x1c0471[_0x35c375(0x1a1)](_0x231f7a))],_0x3aeba5);var _0x9f6ae3=Object['defineProperty'],_0x13a5a4=Object[_0x35c375(0x1c2)],_0x419181=(_0x2ceea0,_0x5d2606,_0x1acb23)=>_0x5d2606 in _0x2ceea0?_0x9f6ae3(_0x2ceea0,_0x5d2606,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1acb23}):_0x2ceea0[_0x5d2606]=_0x1acb23,_0x1fc66d=(_0x85be37,_0x287bd2,_0x1288ea,_0x2eec35)=>{var _0x3da674=_0x35c375;for(var _0x3f8a60=_0x2eec35>0x1?void 0x0:_0x2eec35?_0x13a5a4(_0x287bd2,_0x1288ea):_0x287bd2,_0x3572b7=_0x85be37[_0x3da674(0x1dc)]-0x1,_0x430fca;_0x3572b7>=0x0;_0x3572b7--)(_0x430fca=_0x85be37[_0x3572b7])&&(_0x3f8a60=_0x430fca(_0x3f8a60)||_0x3f8a60);return _0x3f8a60;},_0x1d96d8=(_0x1da6d2,_0x50dc43)=>(_0x264636,_0x237b8c)=>_0x50dc43(_0x264636,_0x237b8c,_0x1da6d2),_0x52b596=(_0x3af11b,_0x5154dd,_0x4b7a96)=>_0x419181(_0x3af11b,typeof _0x5154dd!=_0x35c375(0x186)?_0x5154dd+'':_0x5154dd,_0x4b7a96);const _0x15c3e9=_0x35c375(0x123);_0x306c00[_0x35c375(0x1d9)]=class extends _0x1c0471[_0x35c375(0x1be)]{constructor(_0x38791d=_0x1b237e,_0x10eeb1,_0x19d531){var _0x5d669d=_0x35c375;super(),this[_0x5d669d(0x19c)]=_0x38791d,this[_0x5d669d(0x107)]=_0x10eeb1,this[_0x5d669d(0x120)]=_0x19d531;const {..._0xd36ccf}=_0x1c0471['merge']({},_0x1b237e,this[_0x5d669d(0x19c)]);this[_0x5d669d(0x120)][_0x5d669d(0x1d3)](_0x3275f2,_0xd36ccf);}[_0x35c375(0xec)](){var _0x3d26ae=_0x35c375;_0x1c0471['registerDependencies'](this[_0x3d26ae(0x107)],_0x1c0471[_0x3d26ae(0x1af)]([[_0x231f7a],[_0x306c00[_0x3d26ae(0x14e)]],[_0x3aeba5],[_0x306c00[_0x3d26ae(0x1da)]]],this[_0x3d26ae(0x19c)][_0x3d26ae(0x168)])),_0x1c0471['touchDependencies'](this['_injector'],[[_0x3aeba5]]);}[_0x35c375(0xf5)](){var _0x51d040=_0x35c375;_0x1c0471[_0x51d040(0x11d)](this[_0x51d040(0x107)],[[_0x306c00[_0x51d040(0x1da)]]]);}},_0x52b596(_0x306c00[_0x35c375(0x1d9)],'type',_0x1c0471[_0x35c375(0x145)][_0x35c375(0x1c1)]),_0x52b596(_0x306c00[_0x35c375(0x1d9)],_0x35c375(0x1b5),_0x15c3e9),_0x306c00[_0x35c375(0x1d9)]=_0x1fc66d([_0x1c0471[_0x35c375(0xf0)](_0x3810d2[_0x35c375(0x165)]),_0x1d96d8(0x1,_0x1c0471[_0x35c375(0x1a1)](_0x1c0471[_0x35c375(0x197)])),_0x1d96d8(0x2,_0x1c0471[_0x35c375(0x10c)])],_0x306c00[_0x35c375(0x1d9)]),_0x306c00[_0x35c375(0x177)]=_0x32b0d1,_0x306c00[_0x35c375(0x15a)]=_0x231f7a,_0x306c00[_0x35c375(0x14c)]=_0x134d96,Object[_0x35c375(0x149)](_0x306c00,Symbol[_0x35c375(0x1cf)],{'value':_0x35c375(0x1bd)});}));function _0x546b(){var _0x35c7d8=['presenter','useDependency','_handleOffline','2010426YGMxnt','Inject','0\x200\x2017\x2017','toString','_mountLiveShare','CollaborationEvent','shouldShareOperation','_commandService','className','@univerjs/design','useEffect','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_sharedOperations','live-share-icon','default','mergeOverrideWithDependencies','text','IDLE','_handleTerminate','React','univer-size-4','pluginName','call','send','LIVESHARE_REQUEST_HOST','CommandType','none','@univerjs/core','button','Module','Plugin','operations','stringify','UNIVER_UNKNOWN','getOwnPropertyDescriptor','_stopFollowing','RxDisposable','startFollowing','clsx','path','8NjZxhG','BehaviorSubject','Stop\x20presenting','Start\x20following','event$','function','set','toStringTag','complete','Dropdown','tryStartPresenting','setConfig','IUniverInstanceService','next','connectInjector','hasOwnProperty','LiveShareIcon','UniverLiveSharePlugin','DesktopLiveShareController','_collabSession','length','http://www.w3.org/2000/svg','stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','evenodd','LIVESHARE_OPERATION','getMemberID','InsertSheetMutation','onStarting','defs','You\x27are\x20offline.','forwardRef','DependentOn','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','takeUntil','useRef','jsxs','onRendered','string','registerSharedOperation','NOT_FOLLOWING','assign','then','createElement','getValue','getUnitId','UniverDesign','getOwnPropertySymbols','LIVESHARE_NEW_HOST','disposeWithMe','add','end','Present\x20this\x20document','OFFLINE','prototype','_injector','12470936giyBSC','IUIPartsService','1em','unsubscribe','IConfigService','following','entries','_uiPartsService','_handleOperation','LIVESHARE_TERMINATE','@univerjs/sheets','from','indexOf','apply','UniverUi','_startLiveShareCoordinator','@univerjs-pro/collaboration','extend','1755190hTbvNf','not-following','_entities','touchDependencies','SetZoomRatioOperation','propertyIsEnumerable','_configService','svg','stopFollowing','UNIVER_LIVE_SHARE_PLUGIN','_handleNewChangeSets','parseProtocolChangeset','Stop\x20following','amd','_stopPresenting','div','LiveShareCoordinator','react','data','clear','mask','use','OPERATION','182JRArZk','dispose','rxjs/operators','object','@univerjs-pro/collaboration-client','dispose$','unitId','Start','_reporters','Fragment','forEach','_univerInstanceService','tag','delete','SessionStatus','UniverProCollaboration','UNIVER_SHEET','CollaborationSessionService','UniverProCollaborationClient','SetWorksheetActiveOperation','UniverInstanceType','trim','attrs','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','defineProperty','children','FOLLOWING','LiveShareStatus','352014XJwOGF','LiveShareController','useState','UniverSheetsUi','getCurrentTypeOfUnit$','_fetchOperations','getConfig','9NIVzVE','concat','jsx','_status','offline','_liveShareService','LiveShareService','univer-mb-3\x20univer-w-full\x20univer-text-sm','BuiltInUIPart','idSuffix','Button','idle','UniverSheets','get','toDisposable','has','fill','UniverCollaborationClientPlugin','getInitialStates','init','override','pipe','_commandDisposable','type','getLiveShareCoordinator','_init','replace','SAME_OPERATION_SHARE_INTERVAL','registerComponent','react/jsx-runtime','presenting','defIds','_unitID','params','executeCommand','LiveShare','_collabSessionService','map','_handleNewHost','subscribe','_handleOnline','_startFollowing','_status$','223575VsaOrX','find','1310386EQtVjF','throttleTime','sessionStatus$','Subject','520976NTskwt','symbol','getTypeOfUnitDisposed$','status$','_startPresenting','Disposable','current','LIVESHARE_FETCH_OPERATIONS','@univerjs/sheets-ui','icon','HEADER_MENU','_presenter','url(#$1','rxjs','SetScrollOperation','mutations','colorChannel1','useObservable','Injector','displayName','xlink:href','currentColor','createInstance','_config'];_0x546b=function(){return _0x35c7d8;};return _0x546b();}
|
|
1
|
+
function _0x3b7b(_0x53c758,_0x37ab82){var _0x5b3c23=_0x5b3c();return _0x3b7b=function(_0x3b7bbd,_0x445afb){_0x3b7bbd=_0x3b7bbd-0x75;var _0x5e3c47=_0x5b3c23[_0x3b7bbd];return _0x5e3c47;},_0x3b7b(_0x53c758,_0x37ab82);}function _0x5b3c(){var _0x267fa4=['CollaborationSessionService','registerInitialStateReporter','takeUntil','NOT_FOLLOWING','requireSession','RxDisposable','_handleOffline','563978ktFsNF','BuiltInUIPart','DesktopLiveShareController','SAME_OPERATION_SHARE_INTERVAL','function','@univerjs/design','offline','HEADER_MENU','getInitialStates','idSuffix','3384715qPSwIa','extend','forEach','NEW_CHANGESETS','getMemberID','You\x27re\x20following\x20the\x20presenter','_handleOperation','CommandType','registerSharedOperation','object','PRESENTING','_handleNewHost','getCurrentTypeOfUnit$','UniverIcon','toDisposable','2zgpIKn','url(#$1','map','0\x200\x2017\x2017','getLiveShareCoordinator','SetZoomRatioOperation','6gcwIgm','_univerInstanceService','26856012JkrgIR','asObservable','disposeWithMe','_entities','_handleTerminate','delete','button','executeCommand','mask','Button','SetWorksheetActiveOperation','random','has','_sharedOperations','useDependency','next','useRef','Stop\x20following','getOwnPropertyDescriptor','_startLiveShareCoordinator','operators','_handleNewChangeSets','_status$','Module','UniverInstanceType','mutations','_injector','FOLLOWING','icon','UniverSheets','throttleTime','registerComponent','jsx','onCommandExecuted','_uiPartsService','useState','IUIPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','replace','SetScrollOperation','dispose','apply','_startPresenting','Present\x20this\x20document','displayName','195986jlfZno','ICommandService','defineProperty','_mountLiveShare','IConfigService','LiveShareIcon','status$','current','1em','registerDependencies','LiveShareCoordinator','IDLE','Stop\x20presenting','_configService','following','UniverProCollaborationClient','Start','live-share.config','univerjs-icon\x20univerjs-icon-','override','values','idle','getValue','SessionStatus','path','onStarting','from','@univerjs/sheets','OFFLINE','symbol','DisposableCollection','pluginName','_unitID','_reporters','xlink:href','getUnitId','UniverUi','useEffect','propertyIsEnumerable','You\x27are\x20offline.','UNIVER_SHEET','_liveShareService','LIVESHARE_OPERATION','complete','touchDependencies','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','toStringTag','pipe','startFollowing','toString','_fetchOperations','react','none','getTypeOfUnitDisposed$','UniverProCollaboration','forwardRef','80bnEMJM','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','data','mergeOverrideWithDependencies','presenting','type','unitId','stopFollowing','_collabSessionService','use','operations','text','LiveShareStatus','add','LIVESHARE_REQUEST_HOST','LIVESHARE_FETCH_OPERATIONS','_commandService','getOwnPropertySymbols','UniverCollaborationClientPlugin','InsertSheetMutation','@univerjs-pro/collaboration','createElement','prototype','unsubscribe','_config','Inject','length','1415331GEKyVu','stopPresenting','_status','LiveShare','tag','dispose$','React','@univerjs/core','params','sheet','_collabSession','live-share-icon','UniverDesign','50RyNVGN','_handleOnline','children','rxjs','Start\x20following','UniverProLiveShare','LiveShareController','set','end','jsxs','LIVESHARE_TERMINATE','clear','UniverLiveSharePlugin','send','includes','UNIVER_LIVE_SHARE_PLUGIN','824087hrxpBd','Plugin','colorChannel1','hasOwnProperty','You\x27re\x20presenting\x20the\x20document','@univerjs/ui','_beIdle','stringify','presenter','_stopPresenting','_startFollowing','http://www.w3.org/2000/svg','tryStartPresenting','_init','_presenter','DependentOn','attrs','_commandDisposable','rxjs/operators','shouldShareOperation','className','CollaborationEvent','Disposable','div','get','ONLINE','@univerjs/sheets-ui','_stopFollowing','subscribe','Subject','@univerjs-pro/collaboration-client','IUniverInstanceService','evenodd','not-following','connectInjector','Injector','event$','2769579nUwYXY','defIds','default','init','merge','assign','call','string','substring','setConfig','4mzEosu','concat','Fragment','You\x27re\x20not\x20following\x20the\x20presenter','entries','parseProtocolChangeset'];_0x5b3c=function(){return _0x267fa4;};return _0x5b3c();}(function(_0x431074,_0x360066){var _0x1aed12=_0x3b7b,_0x2662f8=_0x431074();while(!![]){try{var _0x2b5293=-parseInt(_0x1aed12(0xce))/0x1*(-parseInt(_0x1aed12(0xe7))/0x2)+parseInt(_0x1aed12(0x75))/0x3*(parseInt(_0x1aed12(0xc1))/0x4)+-parseInt(_0x1aed12(0xd8))/0x5*(-parseInt(_0x1aed12(0xed))/0x6)+parseInt(_0x1aed12(0x11c))/0x7*(parseInt(_0x1aed12(0x154))/0x8)+parseInt(_0x1aed12(0xb7))/0x9+-parseInt(_0x1aed12(0x82))/0xa*(-parseInt(_0x1aed12(0x92))/0xb)+-parseInt(_0x1aed12(0xef))/0xc;if(_0x2b5293===_0x360066)break;else _0x2662f8['push'](_0x2662f8['shift']());}catch(_0x1efe87){_0x2662f8['push'](_0x2662f8['shift']());}}}(_0x5b3c,0x6ab01),function(_0x221526,_0xa4b86b){var _0x3c308e=_0x3b7b;typeof exports==_0x3c308e(0xe1)&&typeof module<'u'?_0xa4b86b(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x3c308e(0xd2)&&define['amd']?define(['exports',_0x3c308e(0x7c),_0x3c308e(0x97),'react/jsx-runtime',_0x3c308e(0xd3),_0x3c308e(0x14f),_0x3c308e(0x168),_0x3c308e(0xb0),_0x3c308e(0x137),_0x3c308e(0x85),_0x3c308e(0xa4),_0x3c308e(0xac)],_0xa4b86b):(_0x221526=typeof globalThis<'u'?globalThis:_0x221526||self,_0xa4b86b(_0x221526[_0x3c308e(0x87)]={},_0x221526['UniverCore'],_0x221526[_0x3c308e(0x140)],_0x221526[_0x3c308e(0x7b)],_0x221526[_0x3c308e(0x81)],_0x221526[_0x3c308e(0x7b)],_0x221526[_0x3c308e(0x152)],_0x221526[_0x3c308e(0x12b)],_0x221526[_0x3c308e(0x10c)],_0x221526[_0x3c308e(0x85)],_0x221526['rxjs'][_0x3c308e(0x103)],_0x221526['UniverSheetsUi']));}(this,function(_0x2f1323,_0x3d67cc,_0x4ddf63,_0x39d1df,_0x67a8da,_0x3ea407,_0x17ed65,_0x326eac,_0x4b74db,_0x2e8630,_0x520722,_0x3be5b0){'use strict';var _0x120ec6=_0x3b7b;var _0x5bd5de=Object[_0x120ec6(0x11e)],_0x2a19d4=(_0x2a5548,_0x681783,_0x28d3e4)=>_0x681783 in _0x2a5548?_0x5bd5de(_0x2a5548,_0x681783,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28d3e4}):_0x2a5548[_0x681783]=_0x28d3e4,_0x4410d2=(_0x25799e,_0x5c83a4,_0x10e63b)=>_0x2a19d4(_0x25799e,typeof _0x5c83a4!=_0x120ec6(0x139)?_0x5c83a4+'':_0x5c83a4,_0x10e63b),_0x33addf=function(){var _0x325acd=_0x120ec6;return _0x33addf=Object[_0x325acd(0xbc)]||function(_0x97c5e3){var _0x4a5615=_0x325acd;for(var _0x16ea5e,_0x2ddbe8=0x1,_0x27e4cd=arguments[_0x4a5615(0x16e)];_0x2ddbe8<_0x27e4cd;_0x2ddbe8++){_0x16ea5e=arguments[_0x2ddbe8];for(var _0x58e341 in _0x16ea5e)Object['prototype'][_0x4a5615(0x95)][_0x4a5615(0xbd)](_0x16ea5e,_0x58e341)&&(_0x97c5e3[_0x58e341]=_0x16ea5e[_0x58e341]);}return _0x97c5e3;},_0x33addf[_0x325acd(0x118)](this,arguments);},_0x35abb2=function(_0x1b0d09,_0x4ac8b9){var _0x56abe2=_0x120ec6,_0x34c33a={};for(var _0xa9f034 in _0x1b0d09)Object[_0x56abe2(0x16a)][_0x56abe2(0x95)]['call'](_0x1b0d09,_0xa9f034)&&_0x4ac8b9['indexOf'](_0xa9f034)<0x0&&(_0x34c33a[_0xa9f034]=_0x1b0d09[_0xa9f034]);if(_0x1b0d09!=null&&typeof Object[_0x56abe2(0x165)]=='function'){for(var _0x580195=0x0,_0xa9f034=Object[_0x56abe2(0x165)](_0x1b0d09);_0x580195<_0xa9f034[_0x56abe2(0x16e)];_0x580195++)_0x4ac8b9['indexOf'](_0xa9f034[_0x580195])<0x0&&Object[_0x56abe2(0x16a)][_0x56abe2(0x142)][_0x56abe2(0xbd)](_0x1b0d09,_0xa9f034[_0x580195])&&(_0x34c33a[_0xa9f034[_0x580195]]=_0x1b0d09[_0xa9f034[_0x580195]]);}return _0x34c33a;},_0x2b6e38=_0x3ea407['forwardRef'](function(_0x21524e,_0x63d77){var _0x1328ee=_0x120ec6,_0x34951c=_0x21524e['icon'],_0xdd2e67=_0x21524e['id'],_0x5bd527=_0x21524e[_0x1328ee(0xa6)],_0x4a7490=_0x21524e[_0x1328ee(0xd9)],_0x5484b8=_0x35abb2(_0x21524e,[_0x1328ee(0x10b),'id',_0x1328ee(0xa6),_0x1328ee(0xd9)]),_0x35ebda=_0x1328ee(0x12e)[_0x1328ee(0xc2)](_0xdd2e67,'\x20')[_0x1328ee(0xc2)](_0x5bd527||'')['trim'](),_0x359f9b=_0x3ea407['useRef']('_'['concat'](_0x212744()));return _0x5afaf4(_0x34951c,''[_0x1328ee(0xc2)](_0xdd2e67),{'defIds':_0x34951c[_0x1328ee(0xb8)],'idSuffix':_0x359f9b[_0x1328ee(0x123)]},_0x33addf({'ref':_0x63d77,'className':_0x35ebda},_0x5484b8),_0x4a7490);});function _0x5afaf4(_0x1a9a11,_0x7fa884,_0x5ba1ee,_0x2fcd52,_0x54f0e0){var _0x263d5f=_0x120ec6;return _0x3ea407['createElement'](_0x1a9a11['tag'],_0x33addf(_0x33addf({'key':_0x7fa884},_0x38fe84(_0x1a9a11,_0x5ba1ee,_0x54f0e0)),_0x2fcd52),(_0xcf6f25(_0x1a9a11,_0x5ba1ee)[_0x263d5f(0x84)]||[])[_0x263d5f(0xe9)](function(_0x5c2328,_0x484de3){var _0x383948=_0x263d5f;return _0x5afaf4(_0x5c2328,''[_0x383948(0xc2)](_0x7fa884,'-')[_0x383948(0xc2)](_0x1a9a11[_0x383948(0x79)],'-')[_0x383948(0xc2)](_0x484de3),_0x5ba1ee,void 0x0,_0x54f0e0);}));}function _0x38fe84(_0x30d803,_0x41fd3e,_0x4b308d){var _0x51c1dc=_0x120ec6,_0x56a120=_0x33addf({},_0x30d803[_0x51c1dc(0xa2)]);_0x4b308d!=null&&_0x4b308d[_0x51c1dc(0x94)]&&_0x56a120['fill']===_0x51c1dc(0x94)&&(_0x56a120['fill']=_0x4b308d[_0x51c1dc(0x94)]),_0x30d803[_0x51c1dc(0x79)]==='mask'&&_0x56a120['id']&&(_0x56a120['id']=_0x56a120['id']+_0x41fd3e['idSuffix']),Object[_0x51c1dc(0xc5)](_0x56a120)[_0x51c1dc(0xda)](function(_0x55c635){var _0x302312=_0x51c1dc,_0x4aac00=_0x55c635[0x0],_0x2f150c=_0x55c635[0x1];_0x4aac00===_0x302312(0xf7)&&typeof _0x2f150c==_0x302312(0xbe)&&(_0x56a120[_0x4aac00]=_0x2f150c['replace'](/url\(#(.*)\)/,'url(#$1'[_0x302312(0xc2)](_0x41fd3e[_0x302312(0xd7)],')')));});var _0x313889=_0x41fd3e[_0x51c1dc(0xb8)];return!_0x313889||_0x313889[_0x51c1dc(0x16e)]===0x0||(_0x30d803[_0x51c1dc(0x79)]===_0x51c1dc(0x15d)&&_0x56a120[_0x51c1dc(0x13e)]&&(_0x56a120['xlink:href']=_0x56a120[_0x51c1dc(0x13e)]+_0x41fd3e[_0x51c1dc(0xd7)]),Object[_0x51c1dc(0xc5)](_0x56a120)[_0x51c1dc(0xda)](function(_0x3d8af3){var _0x87f776=_0x51c1dc,_0xdbed71=_0x3d8af3[0x0],_0x5d067e=_0x3d8af3[0x1];typeof _0x5d067e=='string'&&(_0x56a120[_0xdbed71]=_0x5d067e[_0x87f776(0x115)](/url\(#(.*)\)/,_0x87f776(0xe8)[_0x87f776(0xc2)](_0x41fd3e[_0x87f776(0xd7)],')')));})),_0x56a120;}function _0xcf6f25(_0x309480,_0x32d75c){var _0x507996=_0x120ec6,_0x327a16,_0x7672a5=_0x32d75c[_0x507996(0xb8)];return!_0x7672a5||_0x7672a5[_0x507996(0x16e)]===0x0?_0x309480:_0x309480[_0x507996(0x79)]==='defs'&&(!((_0x327a16=_0x309480[_0x507996(0x84)])===null||_0x327a16===void 0x0)&&_0x327a16[_0x507996(0x16e)])?_0x33addf(_0x33addf({},_0x309480),{'children':_0x309480['children']['map'](function(_0x40e3b5){var _0x723cb2=_0x507996;return typeof _0x40e3b5[_0x723cb2(0xa2)]['id']==_0x723cb2(0xbe)&&_0x7672a5&&_0x7672a5[_0x723cb2(0x90)](_0x40e3b5['attrs']['id'])?_0x33addf(_0x33addf({},_0x40e3b5),{'attrs':_0x33addf(_0x33addf({},_0x40e3b5['attrs']),{'id':_0x40e3b5[_0x723cb2(0xa2)]['id']+_0x32d75c[_0x723cb2(0xd7)]})}):_0x40e3b5;})}):_0x309480;}function _0x212744(){var _0x47dd54=_0x120ec6;return Math[_0x47dd54(0xfa)]()[_0x47dd54(0x14d)](0x24)[_0x47dd54(0xbf)](0x2,0x8);}_0x2b6e38[_0x120ec6(0x11b)]=_0x120ec6(0xe5);var _0x2c9708={'tag':'svg','attrs':{'xmlns':_0x120ec6(0x9d),'fill':_0x120ec6(0x150),'viewBox':_0x120ec6(0xea),'width':_0x120ec6(0x124),'height':_0x120ec6(0x124)},'children':[{'tag':_0x120ec6(0x134),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x120ec6(0x134),'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':_0x120ec6(0xb2),'clipRule':'evenodd'}}]},_0x5c17a1=_0x3ea407[_0x120ec6(0x153)](function(_0x18e7a4,_0x1aea77){var _0x31d66b=_0x120ec6;return _0x3ea407[_0x31d66b(0x169)](_0x2b6e38,Object['assign']({},_0x18e7a4,{'id':_0x31d66b(0x80),'ref':_0x1aea77,'icon':_0x2c9708}));});_0x5c17a1['displayName']=_0x120ec6(0x121);class _0x4bdc69 extends _0x3d67cc['Disposable']{constructor(){var _0x43832b=_0x120ec6;super(...arguments),_0x4410d2(this,_0x43832b(0xfc),new Set()),_0x4410d2(this,_0x43832b(0x13d),new Set());}[_0x120ec6(0xe0)](_0x1112d4){var _0x3ccdf2=_0x120ec6;return this[_0x3ccdf2(0xfc)][_0x3ccdf2(0x161)](_0x1112d4),_0x3d67cc[_0x3ccdf2(0xe6)](()=>this[_0x3ccdf2(0xfc)][_0x3ccdf2(0xf4)](_0x1112d4));}[_0x120ec6(0xc8)](_0x4dc94e){var _0x42c260=_0x120ec6;return this['_reporters'][_0x42c260(0x161)](_0x4dc94e),_0x3d67cc[_0x42c260(0xe6)](()=>this[_0x42c260(0x13d)][_0x42c260(0xf4)](_0x4dc94e));}[_0x120ec6(0xa5)](_0x57d1d1){var _0x3e32b8=_0x120ec6;return this['_sharedOperations'][_0x3e32b8(0xfb)](_0x57d1d1);}[_0x120ec6(0xd6)](_0x14c824){var _0x4a866a=_0x120ec6;return Array[_0x4a866a(0x136)](this[_0x4a866a(0x13d)])['map'](_0x4cedb1=>_0x4cedb1(_0x14c824));}}var _0x2815d1=Object[_0x120ec6(0x101)],_0x1a8a83=(_0x5131d3,_0x125d0b,_0x44fc68,_0xbf6314)=>{var _0x65a218=_0x120ec6;for(var _0x37258c=_0xbf6314>0x1?void 0x0:_0xbf6314?_0x2815d1(_0x125d0b,_0x44fc68):_0x125d0b,_0x839833=_0x5131d3[_0x65a218(0x16e)]-0x1,_0x5bccde;_0x839833>=0x0;_0x839833--)(_0x5bccde=_0x5131d3[_0x839833])&&(_0x37258c=_0x5bccde(_0x37258c)||_0x37258c);return _0x37258c;},_0x5e1306=(_0x54ffee,_0xfd27e1)=>(_0x4fdb2c,_0x5f0365)=>_0xfd27e1(_0x4fdb2c,_0x5f0365,_0x54ffee);_0x2f1323[_0x120ec6(0x88)]=class extends _0x3d67cc['RxDisposable']{constructor(_0x2a9fbb,_0x30c810,_0x177ba3){var _0x54c643=_0x120ec6;super(),_0x4410d2(this,_0x54c643(0xf2),new Map()),(this[_0x54c643(0xee)]=_0x2a9fbb,this[_0x54c643(0x109)]=_0x30c810,this[_0x54c643(0x15c)]=_0x177ba3,this[_0x54c643(0x9f)]());}async['getLiveShareCoordinator'](_0x2d3403){var _0x39bf07=_0x120ec6;return this['_entities'][_0x39bf07(0xfb)](_0x2d3403)||await this['_startLiveShareCoordinator'](_0x2d3403),this['_entities'][_0x39bf07(0xaa)](_0x2d3403);}[_0x120ec6(0x9f)](){var _0x4152a8=_0x120ec6;this[_0x4152a8(0xee)]['getTypeOfUnitAdded$'](_0x3d67cc[_0x4152a8(0x107)][_0x4152a8(0x144)])[_0x4152a8(0x14b)](_0x520722[_0x4152a8(0xc9)](this[_0x4152a8(0x7a)]))[_0x4152a8(0xae)](async _0x398563=>{var _0x28c9fd=_0x4152a8;const _0x21c9a0=_0x398563[_0x28c9fd(0x13f)]();this[_0x28c9fd(0xf2)][_0x28c9fd(0xfb)](_0x21c9a0)||this[_0x28c9fd(0x102)](_0x21c9a0);}),this[_0x4152a8(0xee)][_0x4152a8(0x151)](_0x3d67cc[_0x4152a8(0x107)][_0x4152a8(0x144)])[_0x4152a8(0x14b)](_0x520722[_0x4152a8(0xc9)](this[_0x4152a8(0x7a)]))[_0x4152a8(0xae)](_0xa2f3ad=>{var _0x375c84=_0x4152a8;const _0x2faeca=_0xa2f3ad[_0x375c84(0x13f)](),_0x501cf6=this[_0x375c84(0xf2)][_0x375c84(0xaa)](_0x2faeca);_0x501cf6==null||_0x501cf6[_0x375c84(0x117)]();});}async[_0x120ec6(0x102)](_0x3e4b2b){var _0x1af4ff=_0x120ec6;const _0xae9644=await this['_collabSessionService'][_0x1af4ff(0xcb)](_0x3e4b2b),_0x4deaf7=this['_injector']['createInstance'](_0x2f1323[_0x1af4ff(0x126)],_0x3e4b2b,_0xae9644);return _0x4deaf7[_0x1af4ff(0xba)](),this['_entities'][_0x1af4ff(0x89)](_0x3e4b2b,_0x4deaf7),_0x4deaf7;}},_0x2f1323[_0x120ec6(0x88)]=_0x1a8a83([_0x5e1306(0x0,_0x3d67cc[_0x120ec6(0xb1)]),_0x5e1306(0x1,_0x3d67cc[_0x120ec6(0x16d)](_0x3d67cc[_0x120ec6(0xb5)])),_0x5e1306(0x2,_0x3d67cc[_0x120ec6(0x16d)](_0x326eac[_0x120ec6(0xc7)]))],_0x2f1323[_0x120ec6(0x88)]);var _0x22b87c=(_0x473e24=>(_0x473e24['OFFLINE']=_0x120ec6(0xd4),_0x473e24[_0x120ec6(0x127)]=_0x120ec6(0x131),_0x473e24[_0x120ec6(0x10a)]=_0x120ec6(0x12a),_0x473e24[_0x120ec6(0xca)]='not-following',_0x473e24[_0x120ec6(0xe2)]='presenting',_0x473e24))(_0x22b87c||{});const _0x187245=_0x120ec6(0xd1),_0x24d2bc=0xc8;_0x2f1323['LiveShareCoordinator']=class extends _0x3d67cc[_0x120ec6(0xcc)]{constructor(_0x3230b6,_0x30e4f6,_0x5b4b00,_0x4a0f99,_0x3b06b5){var _0x34b728=_0x120ec6;super(),_0x4410d2(this,_0x34b728(0x105),new _0x2e8630['BehaviorSubject'](_0x34b728(0x131))),_0x4410d2(this,'status$',this[_0x34b728(0x105)][_0x34b728(0xf0)]()),_0x4410d2(this,_0x34b728(0x9f),!0x1),_0x4410d2(this,_0x34b728(0xa3),null),_0x4410d2(this,'_presenter',null),(this[_0x34b728(0x13c)]=_0x3230b6,this['_collabSession']=_0x30e4f6,this['_configService']=_0x5b4b00,this[_0x34b728(0x145)]=_0x4a0f99,this[_0x34b728(0x164)]=_0x3b06b5);}get[_0x120ec6(0x77)](){var _0x65de82=_0x120ec6;return this[_0x65de82(0x105)][_0x65de82(0x132)]();}[_0x120ec6(0x117)](){var _0x4412ec=_0x120ec6,_0x3e70ea;(_0x3e70ea=this[_0x4412ec(0xa3)])==null||_0x3e70ea[_0x4412ec(0x117)](),this[_0x4412ec(0x105)]['next'](_0x4412ec(0x131)),this[_0x4412ec(0x105)][_0x4412ec(0x147)]();}[_0x120ec6(0xba)](){var _0xd12bbd=_0x120ec6;this[_0xd12bbd(0x9f)]||(this[_0xd12bbd(0x9f)]=!0x0,this[_0xd12bbd(0x7f)]['sessionStatus$'][_0xd12bbd(0x14b)](_0x520722['takeUntil'](this['dispose$']))['subscribe'](_0x5f4217=>{var _0x5024aa=_0xd12bbd;switch(_0x5f4217){case _0x326eac[_0x5024aa(0x133)][_0x5024aa(0x138)]:this[_0x5024aa(0xcd)]();break;case _0x326eac[_0x5024aa(0x133)][_0x5024aa(0xab)]:this[_0x5024aa(0x83)]();break;}}),this['_collabSession'][_0xd12bbd(0xb6)][_0xd12bbd(0x14b)](_0x520722[_0xd12bbd(0xc9)](this['dispose$']))[_0xd12bbd(0xae)](_0xf8b017=>{var _0x8a0106=_0xd12bbd;const {eventID:_0x552026}=_0xf8b017;switch(_0x552026){case _0x17ed65[_0x8a0106(0xa7)]['LIVESHARE_NEW_HOST']:this[_0x8a0106(0xe3)](_0xf8b017);break;case _0x17ed65[_0x8a0106(0xa7)][_0x8a0106(0x146)]:this['_handleOperation'](_0xf8b017);break;case _0x17ed65[_0x8a0106(0xa7)][_0x8a0106(0x8c)]:this[_0x8a0106(0xf3)]();break;case _0x17ed65[_0x8a0106(0xa7)][_0x8a0106(0xdb)]:this[_0x8a0106(0x104)](_0xf8b017);break;}}));}[_0x120ec6(0x9e)](){var _0x1fa104=_0x120ec6;this[_0x1fa104(0x7f)][_0x1fa104(0x8f)]({'eventID':_0x17ed65['CollaborationEvent'][_0x1fa104(0x162)],'data':{'unitID':this[_0x1fa104(0x13c)],'userID':this[_0x1fa104(0x7f)][_0x1fa104(0xdc)]()}},this[_0x1fa104(0x13c)]);}['stopPresenting'](){var _0x3a8b46=_0x120ec6;this['_status']==='presenting'&&(this['_status$'][_0x3a8b46(0xfe)](_0x3a8b46(0x131)),this['_collabSession'][_0x3a8b46(0x8f)]({'eventID':_0x17ed65[_0x3a8b46(0xa7)][_0x3a8b46(0x8c)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x120ec6(0x14c)](){var _0x358aa0=_0x120ec6;this[_0x358aa0(0x77)]==='not-following'&&(this[_0x358aa0(0x105)][_0x358aa0(0xfe)]('following'),this[_0x358aa0(0x9c)]());}[_0x120ec6(0x15b)](){var _0x317768=_0x120ec6;this[_0x317768(0x77)]==='following'&&this['_stopFollowing']();}[_0x120ec6(0xe3)](_0x174437){var _0x44a81a=_0x120ec6;const {presenter:_0x28ce49}=_0x174437[_0x44a81a(0x156)],_0x323d4d=this[_0x44a81a(0x7f)]['getMemberID']();this[_0x44a81a(0xa0)]=_0x28ce49,_0x28ce49===_0x323d4d?(this[_0x44a81a(0xad)](),this[_0x44a81a(0x119)]()):this[_0x44a81a(0x77)]!=='not-following'&&(this[_0x44a81a(0x9b)](),this[_0x44a81a(0x9c)]());}[_0x120ec6(0x14e)](){var _0x24bfea=_0x120ec6;const _0x386bed={'eventID':_0x17ed65[_0x24bfea(0xa7)][_0x24bfea(0x163)]};this['_collabSession'][_0x24bfea(0x8f)](_0x386bed,this[_0x24bfea(0x13c)]);}[_0x120ec6(0xf3)](){var _0x22e7e3=_0x120ec6;this[_0x22e7e3(0xa0)]=null,this[_0x22e7e3(0x77)]!==_0x22e7e3(0x158)&&this[_0x22e7e3(0x98)]();}[_0x120ec6(0x104)](_0x552daf){var _0x40fabf=_0x120ec6;if(this[_0x40fabf(0x77)]==='following'&&this['_presenter']===_0x552daf[_0x40fabf(0x156)]['memberID']){const _0x994467=_0x17ed65[_0x40fabf(0xc6)](_0x552daf[_0x40fabf(0x156)])[_0x40fabf(0x108)]['reverse']()['find'](_0x128025=>_0x128025['id']===_0x4b74db[_0x40fabf(0x167)]['id']);if(_0x994467){const _0x3375e8=_0x994467[_0x40fabf(0x7d)][_0x40fabf(0x15a)],_0xa6b777=_0x994467[_0x40fabf(0x7d)][_0x40fabf(0x7e)]['id'];setTimeout(()=>{var _0x1f23d3=_0x40fabf;this[_0x1f23d3(0x164)][_0x1f23d3(0xf6)](_0x4b74db[_0x1f23d3(0xf9)]['id'],{'unitId':_0x3375e8,'subUnitId':_0xa6b777},{'fromCollab':!0x0});});}}}[_0x120ec6(0x119)](){var _0x5c79ad=_0x120ec6;this['_status$']['next'](_0x5c79ad(0x158));const _0x586383=new Map(),_0x1baa34=this[_0x5c79ad(0xa3)]=new _0x3d67cc[(_0x5c79ad(0x13a))]();_0x1baa34[_0x5c79ad(0x161)](_0x3d67cc[_0x5c79ad(0xe6)](()=>{var _0x440f7a=_0x5c79ad;_0x586383['forEach'](_0x448754=>_0x448754['complete']()),_0x586383[_0x440f7a(0x8d)]();})),_0x1baa34['add'](this['_commandService'][_0x5c79ad(0x110)](_0x1a2cf7=>{var _0x22ac31=_0x5c79ad,_0xa1e4a7;if(_0x1a2cf7[_0x22ac31(0x159)]!==_0x3d67cc[_0x22ac31(0xdf)]['OPERATION']||!this['_liveShareService'][_0x22ac31(0xa5)](_0x1a2cf7['id']))return;const {id:_0x2c1597}=_0x1a2cf7;let _0x8ad563;_0x586383[_0x22ac31(0xfb)](_0x2c1597)?_0x8ad563=_0x586383[_0x22ac31(0xaa)](_0x2c1597):(_0x8ad563=new _0x2e8630[(_0x22ac31(0xaf))](),_0x586383[_0x22ac31(0x89)](_0x2c1597,_0x8ad563),_0x8ad563[_0x22ac31(0x14b)](_0x520722[_0x22ac31(0x10d)]((_0xa1e4a7=this[_0x22ac31(0x129)]['getConfig'](_0x187245))!=null?_0xa1e4a7:_0x24d2bc,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x22ac31(0xae)](_0x3e8ca8=>{var _0x55d824=_0x22ac31;this[_0x55d824(0x7f)][_0x55d824(0x8f)]({'eventID':_0x17ed65[_0x55d824(0xa7)][_0x55d824(0x146)],'data':{'unitID':this[_0x55d824(0x13c)],'operations':{[_0x3e8ca8['id']]:{'id':_0x3e8ca8['id'],'params':JSON[_0x55d824(0x99)](_0x3e8ca8[_0x55d824(0x7d)])}}}},this[_0x55d824(0x13c)]);})),_0x8ad563[_0x22ac31(0xfe)](_0x1a2cf7);})),this[_0x5c79ad(0x145)][_0x5c79ad(0xd6)](this['_unitID'])[_0x5c79ad(0xda)](_0x57c5a8=>this[_0x5c79ad(0x7f)]['send']({'eventID':_0x17ed65['CollaborationEvent'][_0x5c79ad(0x146)],'data':{'unitID':this[_0x5c79ad(0x13c)],'operations':{[_0x57c5a8['id']]:{'id':_0x57c5a8['id'],'params':JSON['stringify'](_0x57c5a8['params'])}}}},this['_unitID']));}[_0x120ec6(0x9b)](){var _0x5ea3e4=_0x120ec6,_0x3610d9;this['_status$'][_0x5ea3e4(0xfe)](_0x5ea3e4(0x131)),(_0x3610d9=this[_0x5ea3e4(0xa3)])==null||_0x3610d9[_0x5ea3e4(0x117)](),this['_commandDisposable']=null;}[_0x120ec6(0x9c)](){var _0x544123=_0x120ec6,_0x34d301;(_0x34d301=this[_0x544123(0xa3)])==null||_0x34d301['dispose'](),this['_status$']['next']('following');}[_0x120ec6(0x98)](){var _0x471df2=_0x120ec6,_0x3af33b;this['_status$'][_0x471df2(0xfe)](_0x471df2(0x131)),(_0x3af33b=this[_0x471df2(0xa3)])==null||_0x3af33b[_0x471df2(0x117)](),this[_0x471df2(0xa3)]=null;}[_0x120ec6(0xad)](){var _0x43f136=_0x120ec6,_0x3d9c28;this[_0x43f136(0x105)]['next'](_0x43f136(0xb3)),(_0x3d9c28=this[_0x43f136(0xa3)])==null||_0x3d9c28[_0x43f136(0x117)]();}[_0x120ec6(0xde)](_0x4875ef){var _0x5eecca=_0x120ec6;if([_0x5eecca(0x158),_0x5eecca(0xb3),_0x5eecca(0xd4)]['includes'](this[_0x5eecca(0x77)])||!_0x4875ef[_0x5eecca(0x156)][_0x5eecca(0x9a)]||_0x4875ef[_0x5eecca(0x156)][_0x5eecca(0x9a)]===this[_0x5eecca(0x7f)][_0x5eecca(0xdc)]())return;this['_status']===_0x5eecca(0x131)&&this[_0x5eecca(0x9c)]();const _0x3df6a8=_0x4875ef['data'][_0x5eecca(0x15e)];Object[_0x5eecca(0x130)](_0x3df6a8)['forEach'](_0x3020bc=>{var _0x530881=_0x5eecca;this[_0x530881(0x164)]['executeCommand'](_0x3020bc['id'],_0x3020bc[_0x530881(0x7d)]?JSON['parse'](_0x3020bc[_0x530881(0x7d)]):null,{'fromCollab':!0x0});});}[_0x120ec6(0xcd)](){var _0x3f7f98=_0x120ec6,_0x3bdfa8;this[_0x3f7f98(0x105)]['next'](_0x3f7f98(0xd4)),(_0x3bdfa8=this['_commandDisposable'])==null||_0x3bdfa8[_0x3f7f98(0x117)]();}[_0x120ec6(0x83)](){var _0x17c4be=_0x120ec6;this[_0x17c4be(0x105)][_0x17c4be(0xfe)](_0x17c4be(0x131)),this['_fetchOperations']();}},_0x2f1323['LiveShareCoordinator']=_0x1a8a83([_0x5e1306(0x2,_0x3d67cc[_0x120ec6(0x120)]),_0x5e1306(0x3,_0x3d67cc[_0x120ec6(0x16d)](_0x4bdc69)),_0x5e1306(0x4,_0x3d67cc[_0x120ec6(0x11d)])],_0x2f1323[_0x120ec6(0x126)]);function _0x13bed3(){var _0x16d615=_0x120ec6;const _0x33fa8d=_0x4ddf63[_0x16d615(0xfd)](_0x2f1323['LiveShareController']),_0x1bc066=_0x4ddf63[_0x16d615(0xfd)](_0x3d67cc['IUniverInstanceService']),_0x299cab=_0x4ddf63['useObservable'](()=>_0x1bc066[_0x16d615(0xe4)](_0x3d67cc[_0x16d615(0x107)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x302134,_0x260946]=_0x3ea407[_0x16d615(0x112)](null),[_0x18af28,_0x10c83e]=_0x3ea407[_0x16d615(0x112)](_0x22b87c[_0x16d615(0x127)]),_0x57e052=_0x3ea407[_0x16d615(0xff)](null);return _0x3ea407[_0x16d615(0x141)](()=>(_0x299cab&&_0x33fa8d[_0x16d615(0xeb)](_0x299cab[_0x16d615(0x13f)]())['then'](_0x948a29=>{var _0x12aa62=_0x16d615;_0x260946(_0x948a29),_0x57e052[_0x12aa62(0x123)]=_0x948a29[_0x12aa62(0x122)][_0x12aa62(0xae)](_0x71cd9c=>{_0x10c83e(_0x71cd9c);});}),()=>{var _0x1b68ce=_0x16d615,_0x590078;(_0x590078=_0x57e052[_0x1b68ce(0x123)])==null||_0x590078[_0x1b68ce(0x16b)](),_0x57e052[_0x1b68ce(0x123)]=null;}),[_0x299cab,_0x33fa8d]),_0x302134?_0x39d1df[_0x16d615(0x10f)](_0x67a8da['Dropdown'],{'align':_0x16d615(0x8a),'disabled':_0x18af28===_0x22b87c[_0x16d615(0x138)],'className':_0x16d615(0x155),'overlay':_0x39d1df[_0x16d615(0x10f)](_0x1f6ea7,{'status':_0x18af28,'coordinator':_0x302134}),'children':_0x39d1df[_0x16d615(0x10f)](_0x16d615(0xf5),{'className':_0x67a8da['clsx'](_0x16d615(0x149),{'univer-cursor-not-allowed':_0x18af28===_0x22b87c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x18af28!==_0x22b87c[_0x16d615(0x138)]}),'type':_0x16d615(0xf5),'children':_0x39d1df[_0x16d615(0x10f)](_0x5c17a1,{'className':'univer-size-4'})})}):null;}function _0x1f6ea7(_0x214902){var _0x19646d=_0x120ec6;const {status:_0x879bbd,coordinator:_0x14b866}=_0x214902;switch(_0x879bbd){case _0x22b87c[_0x19646d(0x127)]:return _0x39d1df[_0x19646d(0x10f)](_0x5099ce,{'coordinator':_0x14b866});case _0x22b87c[_0x19646d(0x10a)]:return _0x39d1df[_0x19646d(0x10f)](_0x19e522,{'coordinator':_0x14b866});case _0x22b87c[_0x19646d(0xca)]:return _0x39d1df[_0x19646d(0x10f)](_0xdcf63,{'coordinator':_0x14b866});case _0x22b87c[_0x19646d(0x138)]:return _0x39d1df['jsx'](_0x3ada5f,{});case _0x22b87c[_0x19646d(0xe2)]:return _0x39d1df['jsx'](_0x103ebd,{'coordinator':_0x14b866});default:return null;}}function _0x5099ce(_0x113a17){var _0x55a1ec=_0x120ec6;const {coordinator:_0x4253dc}=_0x113a17;return _0x39d1df[_0x55a1ec(0x8b)](_0x39d1df[_0x55a1ec(0xc3)],{'children':[_0x39d1df[_0x55a1ec(0x10f)](_0x55a1ec(0xa9),{'className':_0x55a1ec(0x114),'children':_0x55a1ec(0x11a)}),_0x39d1df[_0x55a1ec(0x10f)](_0x67a8da[_0x55a1ec(0xf8)],{'onClick':()=>_0x4253dc[_0x55a1ec(0x9e)](),'children':_0x55a1ec(0x12c)})]});}function _0x19e522(_0x4f856e){var _0x19b142=_0x120ec6;const {coordinator:_0x333f5b}=_0x4f856e;return _0x39d1df[_0x19b142(0x8b)](_0x39d1df[_0x19b142(0xc3)],{'children':[_0x39d1df[_0x19b142(0x10f)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x19b142(0xdd)}),_0x39d1df[_0x19b142(0x10f)](_0x67a8da[_0x19b142(0xf8)],{'onClick':()=>_0x333f5b['stopFollowing'](),'children':_0x19b142(0x100)})]});}function _0xdcf63(_0x2f1814){var _0x23b8e4=_0x120ec6;const {coordinator:_0x1c2743}=_0x2f1814;return _0x39d1df['jsxs'](_0x39d1df['Fragment'],{'children':[_0x39d1df[_0x23b8e4(0x10f)](_0x23b8e4(0xa9),{'className':_0x23b8e4(0x114),'children':_0x23b8e4(0xc4)}),_0x39d1df[_0x23b8e4(0x10f)](_0x67a8da[_0x23b8e4(0xf8)],{'variant':_0x23b8e4(0x15f),'onClick':()=>_0x1c2743[_0x23b8e4(0x14c)](),'children':_0x23b8e4(0x86)})]});}function _0x103ebd(_0x5b4c04){var _0x2b4ddf=_0x120ec6;const {coordinator:_0x2c2c37}=_0x5b4c04;return _0x39d1df[_0x2b4ddf(0x8b)](_0x39d1df[_0x2b4ddf(0xc3)],{'children':[_0x39d1df[_0x2b4ddf(0x10f)](_0x2b4ddf(0xa9),{'className':_0x2b4ddf(0x114),'children':_0x2b4ddf(0x96)}),_0x39d1df[_0x2b4ddf(0x10f)](_0x67a8da['Button'],{'variant':_0x2b4ddf(0xb9),'onClick':()=>_0x2c2c37[_0x2b4ddf(0x76)](),'children':_0x2b4ddf(0x128)})]});}function _0x3ada5f(){var _0x5ac1a4=_0x120ec6;return _0x39d1df[_0x5ac1a4(0x10f)](_0x39d1df[_0x5ac1a4(0xc3)],{'children':_0x5ac1a4(0x143)});}var _0x17607f=Object[_0x120ec6(0x101)],_0x2cf8fa=(_0x1bd9aa,_0x1df652,_0x252e7b,_0x4dbefb)=>{var _0x55ca90=_0x120ec6;for(var _0x1bd25f=_0x4dbefb>0x1?void 0x0:_0x4dbefb?_0x17607f(_0x1df652,_0x252e7b):_0x1df652,_0x1cc609=_0x1bd9aa[_0x55ca90(0x16e)]-0x1,_0x4ec05c;_0x1cc609>=0x0;_0x1cc609--)(_0x4ec05c=_0x1bd9aa[_0x1cc609])&&(_0x1bd25f=_0x4ec05c(_0x1bd25f)||_0x1bd25f);return _0x1bd25f;},_0x261ed3=(_0x3595ae,_0xd87439)=>(_0x394af5,_0x4fe628)=>_0xd87439(_0x394af5,_0x4fe628,_0x3595ae);_0x2f1323[_0x120ec6(0xd0)]=class extends _0x3d67cc['Disposable']{constructor(_0xc22425,_0x47c535){var _0x258dff=_0x120ec6;super(),this[_0x258dff(0x109)]=_0xc22425,this[_0x258dff(0x111)]=_0x47c535,this[_0x258dff(0x11f)]();}['_mountLiveShare'](){var _0x80b714=_0x120ec6;this['disposeWithMe'](this[_0x80b714(0x111)][_0x80b714(0x10e)](_0x4ddf63[_0x80b714(0xcf)][_0x80b714(0xd5)],()=>_0x4ddf63[_0x80b714(0xb4)](_0x13bed3,this[_0x80b714(0x109)])));}},_0x2f1323['DesktopLiveShareController']=_0x2cf8fa([_0x261ed3(0x0,_0x3d67cc[_0x120ec6(0x16d)](_0x3d67cc[_0x120ec6(0xb5)])),_0x261ed3(0x1,_0x4ddf63[_0x120ec6(0x113)])],_0x2f1323['DesktopLiveShareController']);const _0x585056=_0x120ec6(0x12d),_0x20f451={};var _0x490769=Object[_0x120ec6(0x101)],_0x4bb369=(_0x52ef8b,_0x2f2b67,_0x11cf0e,_0x446572)=>{var _0x136736=_0x120ec6;for(var _0x52ad86=_0x446572>0x1?void 0x0:_0x446572?_0x490769(_0x2f2b67,_0x11cf0e):_0x2f2b67,_0xe566b9=_0x52ef8b[_0x136736(0x16e)]-0x1,_0x525a6f;_0xe566b9>=0x0;_0xe566b9--)(_0x525a6f=_0x52ef8b[_0xe566b9])&&(_0x52ad86=_0x525a6f(_0x52ad86)||_0x52ad86);return _0x52ad86;},_0x4c8cf6=(_0x45c99b,_0x1270ba)=>(_0x572d30,_0x6121eb)=>_0x1270ba(_0x572d30,_0x6121eb,_0x45c99b);let _0x214880=class extends _0x3d67cc[_0x120ec6(0xa8)]{constructor(_0x5df79d){var _0x4123f3=_0x120ec6;super(),this['_liveShareService']=_0x5df79d,this[_0x4123f3(0x9f)]();}['_init'](){var _0x5f8f2b=_0x120ec6;[_0x3be5b0[_0x5f8f2b(0xec)]['id'],_0x3be5b0[_0x5f8f2b(0x116)]['id'],_0x4b74db[_0x5f8f2b(0xf9)]['id']][_0x5f8f2b(0xda)](_0x474f83=>{var _0x22f709=_0x5f8f2b;this[_0x22f709(0xf1)](this[_0x22f709(0x145)][_0x22f709(0xe0)](_0x474f83));});}};_0x214880=_0x4bb369([_0x4c8cf6(0x0,_0x3d67cc[_0x120ec6(0x16d)](_0x4bdc69))],_0x214880);var _0x192e97=Object[_0x120ec6(0x11e)],_0x465798=Object[_0x120ec6(0x101)],_0x45dc8e=(_0x253891,_0x3d595d,_0x54a1dc)=>_0x3d595d in _0x253891?_0x192e97(_0x253891,_0x3d595d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54a1dc}):_0x253891[_0x3d595d]=_0x54a1dc,_0x54be86=(_0x16b2d8,_0x135246,_0x4b4879,_0xc875b1)=>{for(var _0x4bad41=_0xc875b1>0x1?void 0x0:_0xc875b1?_0x465798(_0x135246,_0x4b4879):_0x135246,_0x3dcf94=_0x16b2d8['length']-0x1,_0x644a99;_0x3dcf94>=0x0;_0x3dcf94--)(_0x644a99=_0x16b2d8[_0x3dcf94])&&(_0x4bad41=_0x644a99(_0x4bad41)||_0x4bad41);return _0x4bad41;},_0x4fb015=(_0x153860,_0x11202f)=>(_0x5e7106,_0x2818a3)=>_0x11202f(_0x5e7106,_0x2818a3,_0x153860),_0x5a77f6=(_0x1adf4d,_0xf2e76,_0x20dadd)=>_0x45dc8e(_0x1adf4d,typeof _0xf2e76!=_0x120ec6(0x139)?_0xf2e76+'':_0xf2e76,_0x20dadd);const _0x553bca=_0x120ec6(0x91);_0x2f1323[_0x120ec6(0x8e)]=class extends _0x3d67cc[_0x120ec6(0x93)]{constructor(_0x518acf=_0x20f451,_0x4c4d99,_0x3ca817){var _0x4e7fd1=_0x120ec6;super(),this['_config']=_0x518acf,this['_injector']=_0x4c4d99,this[_0x4e7fd1(0x129)]=_0x3ca817;const {..._0x236fa1}=_0x3d67cc[_0x4e7fd1(0xbb)]({},_0x20f451,this[_0x4e7fd1(0x16c)]);this['_configService'][_0x4e7fd1(0xc0)](_0x585056,_0x236fa1);}[_0x120ec6(0x135)](){var _0x54117c=_0x120ec6;_0x3d67cc[_0x54117c(0x125)](this[_0x54117c(0x109)],_0x3d67cc[_0x54117c(0x157)]([[_0x4bdc69],[_0x2f1323[_0x54117c(0x88)]],[_0x214880],[_0x2f1323[_0x54117c(0xd0)]]],this['_config'][_0x54117c(0x12f)])),_0x3d67cc[_0x54117c(0x148)](this[_0x54117c(0x109)],[[_0x214880]]);}['onRendered'](){var _0x573d8e=_0x120ec6;_0x3d67cc[_0x573d8e(0x148)](this[_0x573d8e(0x109)],[[_0x2f1323['DesktopLiveShareController']]]);}},_0x5a77f6(_0x2f1323[_0x120ec6(0x8e)],_0x120ec6(0x159),_0x3d67cc[_0x120ec6(0x107)]['UNIVER_UNKNOWN']),_0x5a77f6(_0x2f1323['UniverLiveSharePlugin'],_0x120ec6(0x13b),_0x553bca),_0x2f1323[_0x120ec6(0x8e)]=_0x54be86([_0x3d67cc[_0x120ec6(0xa1)](_0x326eac[_0x120ec6(0x166)]),_0x4fb015(0x1,_0x3d67cc['Inject'](_0x3d67cc[_0x120ec6(0xb5)])),_0x4fb015(0x2,_0x3d67cc['IConfigService'])],_0x2f1323[_0x120ec6(0x8e)]),_0x2f1323[_0x120ec6(0x78)]=_0x13bed3,_0x2f1323['LiveShareService']=_0x4bdc69,_0x2f1323[_0x120ec6(0x160)]=_0x22b87c,Object[_0x120ec6(0x11e)](_0x2f1323,Symbol[_0x120ec6(0x14a)],{'value':_0x120ec6(0x106)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.11",
|
|
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.9",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.10.
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.10.
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/sheets": "0.10.
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/ui": "0.10.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.11",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.10.11",
|
|
52
|
+
"@univerjs/core": "0.10.11",
|
|
53
|
+
"@univerjs/sheets": "0.10.11",
|
|
54
|
+
"@univerjs/design": "0.10.11",
|
|
55
|
+
"@univerjs/sheets-ui": "0.10.11",
|
|
56
|
+
"@univerjs/ui": "0.10.11"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.9.3",
|
|
64
64
|
"vite": "^7.1.10",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs
|
|
67
|
-
"@univerjs/
|
|
66
|
+
"@univerjs/protocol": "0.1.47-alpha.0",
|
|
67
|
+
"@univerjs-infra/shared": "0.10.11"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|