@univerjs-pro/live-share 0.6.6 → 0.6.7
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/umd/index.js +1 -1
- package/package.json +13 -13
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x5daaa7=_0x2b98;(function(_0x29064d,_0x41b54a){var _0x3db766=_0x2b98,_0x7ed856=_0x29064d();while(!![]){try{var _0x26572c=parseInt(_0x3db766(0x1dd))/0x1*(-parseInt(_0x3db766(0x26f))/0x2)+-parseInt(_0x3db766(0x213))/0x3+parseInt(_0x3db766(0x23e))/0x4*(-parseInt(_0x3db766(0x25f))/0x5)+-parseInt(_0x3db766(0x255))/0x6+parseInt(_0x3db766(0x22f))/0x7+-parseInt(_0x3db766(0x24f))/0x8+parseInt(_0x3db766(0x26b))/0x9*(parseInt(_0x3db766(0x21a))/0xa);if(_0x26572c===_0x41b54a)break;else _0x7ed856['push'](_0x7ed856['shift']());}catch(_0x2642a7){_0x7ed856['push'](_0x7ed856['shift']());}}}(_0x2e76,0xd34d1));var U=Object[_0x5daaa7(0x254)],F=(_0x32fec2,_0x589fc2,_0x4a8c74)=>_0x589fc2 in _0x32fec2?U(_0x32fec2,_0x589fc2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a8c74}):_0x32fec2[_0x589fc2]=_0x4a8c74,v=(_0x215744,_0x29ead2,_0x214bda)=>F(_0x215744,typeof _0x29ead2!=_0x5daaa7(0x293)?_0x29ead2+'':_0x29ead2,_0x214bda);Object[_0x5daaa7(0x254)](exports,Symbol[_0x5daaa7(0x242)],{'value':'Module'});const m=require(_0x5daaa7(0x243)),o=require('@univerjs/core'),C=require(_0x5daaa7(0x2a0)),D=require(_0x5daaa7(0x2a3)),p=require(_0x5daaa7(0x22a)),l=require(_0x5daaa7(0x264)),g=require(_0x5daaa7(0x205)),f=require(_0x5daaa7(0x26e)),_=require(_0x5daaa7(0x289)),L=require(_0x5daaa7(0x1ee)),b=require(_0x5daaa7(0x29e)),$=_0x5daaa7(0x1f5),x={};class E extends o[_0x5daaa7(0x229)]{constructor(){var _0x3510e0=_0x5daaa7;super(...arguments),v(this,_0x3510e0(0x29d),new Set()),v(this,_0x3510e0(0x25a),new Set());}[_0x5daaa7(0x20f)](_0x506ec4){var _0x234ded=_0x5daaa7;return this[_0x234ded(0x29d)][_0x234ded(0x297)](_0x506ec4),o['toDisposable'](()=>this[_0x234ded(0x29d)][_0x234ded(0x20e)](_0x506ec4));}[_0x5daaa7(0x25c)](_0x3108a2){var _0x3bbf98=_0x5daaa7;return this[_0x3bbf98(0x25a)][_0x3bbf98(0x297)](_0x3108a2),o[_0x3bbf98(0x257)](()=>this[_0x3bbf98(0x25a)]['delete'](_0x3108a2));}[_0x5daaa7(0x1d1)](_0x5c9cea){var _0x11358b=_0x5daaa7;return this[_0x11358b(0x29d)]['has'](_0x5c9cea);}['getInitialStates'](_0x5d351a){var _0x3c7db9=_0x5daaa7;return Array[_0x3c7db9(0x1fc)](this[_0x3c7db9(0x25a)])[_0x3c7db9(0x221)](_0x587ee8=>_0x587ee8(_0x5d351a));}}var H=Object[_0x5daaa7(0x237)],V=(_0x15458d,_0xeef054,_0xafe8e,_0x5d514e)=>{var _0xbeda05=_0x5daaa7;for(var _0x1d2597=_0x5d514e>0x1?void 0x0:_0x5d514e?H(_0xeef054,_0xafe8e):_0xeef054,_0x2b5f09=_0x15458d[_0xbeda05(0x2a5)]-0x1,_0x22e375;_0x2b5f09>=0x0;_0x2b5f09--)(_0x22e375=_0x15458d[_0x2b5f09])&&(_0x1d2597=_0x22e375(_0x1d2597)||_0x1d2597);return _0x1d2597;},k=(_0x5af6c7,_0x3d8cc6)=>(_0x407cf4,_0x3bb3cf)=>_0x3d8cc6(_0x407cf4,_0x3bb3cf,_0x5af6c7);let O=class extends o[_0x5daaa7(0x229)]{constructor(_0x34a514){var _0x16ecf2=_0x5daaa7;super(),this[_0x16ecf2(0x272)]=_0x34a514,this[_0x16ecf2(0x2a2)]();}['_init'](){var _0x354a65=_0x5daaa7;[D[_0x354a65(0x225)]['id'],D[_0x354a65(0x2a6)]['id'],C['SetWorksheetActiveOperation']['id']][_0x354a65(0x1e6)](_0x4e2d26=>{var _0xe0d47a=_0x354a65;this[_0xe0d47a(0x260)](this[_0xe0d47a(0x272)][_0xe0d47a(0x20f)](_0x4e2d26));});}};O=V([k(0x0,o['Inject'](E))],O);var u=function(){var _0x5857d7=_0x5daaa7;return u=Object[_0x5857d7(0x22e)]||function(_0x3564ba){var _0x1e103b=_0x5857d7;for(var _0x5ecebc,_0x4cfa58=0x1,_0x474a18=arguments[_0x1e103b(0x2a5)];_0x4cfa58<_0x474a18;_0x4cfa58++){_0x5ecebc=arguments[_0x4cfa58];for(var _0x5b7cb5 in _0x5ecebc)Object[_0x1e103b(0x232)][_0x1e103b(0x1da)]['call'](_0x5ecebc,_0x5b7cb5)&&(_0x3564ba[_0x5b7cb5]=_0x5ecebc[_0x5b7cb5]);}return _0x3564ba;},u[_0x5857d7(0x26d)](this,arguments);},M=function(_0x146269,_0x2a125a){var _0x432dd6=_0x5daaa7,_0x5c0e59={};for(var _0x277920 in _0x146269)Object[_0x432dd6(0x232)][_0x432dd6(0x1da)][_0x432dd6(0x1f8)](_0x146269,_0x277920)&&_0x2a125a[_0x432dd6(0x218)](_0x277920)<0x0&&(_0x5c0e59[_0x277920]=_0x146269[_0x277920]);if(_0x146269!=null&&typeof Object['getOwnPropertySymbols']==_0x432dd6(0x223)){for(var _0x2c713e=0x0,_0x277920=Object[_0x432dd6(0x266)](_0x146269);_0x2c713e<_0x277920['length'];_0x2c713e++)_0x2a125a[_0x432dd6(0x218)](_0x277920[_0x2c713e])<0x0&&Object[_0x432dd6(0x232)][_0x432dd6(0x219)][_0x432dd6(0x1f8)](_0x146269,_0x277920[_0x2c713e])&&(_0x5c0e59[_0x277920[_0x2c713e]]=_0x146269[_0x277920[_0x2c713e]]);}return _0x5c0e59;},j=f[_0x5daaa7(0x1f4)](function(_0x2b50a4,_0x13dd64){var _0x3dea7f=_0x5daaa7,_0x433932=_0x2b50a4[_0x3dea7f(0x263)],_0x5be363=_0x2b50a4['id'],_0x22f59d=_0x2b50a4[_0x3dea7f(0x226)],_0x4ac9e6=_0x2b50a4[_0x3dea7f(0x24a)],_0x12f184=M(_0x2b50a4,['icon','id','className','extend']),_0x24ae76=_0x3dea7f(0x270)[_0x3dea7f(0x20c)](_0x5be363,'\x20')['concat'](_0x22f59d||'')['trim'](),_0x1c3d1e=f['useRef']('_'[_0x3dea7f(0x20c)](G()));return y(_0x433932,''[_0x3dea7f(0x20c)](_0x5be363),{'defIds':_0x433932[_0x3dea7f(0x1d9)],'idSuffix':_0x1c3d1e[_0x3dea7f(0x268)]},u({'ref':_0x13dd64,'className':_0x24ae76},_0x12f184),_0x4ac9e6);});function y(_0x2d5093,_0x39df9c,_0x55553d,_0x4a1f8b,_0x167211){var _0x296f7a=_0x5daaa7;return f[_0x296f7a(0x2a1)](_0x2d5093['tag'],u(u({'key':_0x39df9c},q(_0x2d5093,_0x55553d,_0x167211)),_0x4a1f8b),(W(_0x2d5093,_0x55553d)[_0x296f7a(0x216)]||[])['map'](function(_0x6338fd,_0x145a0b){var _0x1942b6=_0x296f7a;return y(_0x6338fd,''[_0x1942b6(0x20c)](_0x39df9c,'-')[_0x1942b6(0x20c)](_0x2d5093[_0x1942b6(0x238)],'-')[_0x1942b6(0x20c)](_0x145a0b),_0x55553d,void 0x0,_0x167211);}));}function q(_0xd61a43,_0x448014,_0x1930e6){var _0x139549=_0x5daaa7,_0x378ca1=u({},_0xd61a43[_0x139549(0x21d)]);_0x1930e6!=null&&_0x1930e6[_0x139549(0x211)]&&_0x378ca1[_0x139549(0x217)]===_0x139549(0x211)&&(_0x378ca1[_0x139549(0x217)]=_0x1930e6[_0x139549(0x211)]),_0xd61a43[_0x139549(0x238)]==='mask'&&_0x378ca1['id']&&(_0x378ca1['id']=_0x378ca1['id']+_0x448014['idSuffix']),Object[_0x139549(0x281)](_0x378ca1)['forEach'](function(_0x7bacf1){var _0x469a5b=_0x139549,_0xa086a=_0x7bacf1[0x0],_0x24f578=_0x7bacf1[0x1];_0xa086a===_0x469a5b(0x27d)&&typeof _0x24f578==_0x469a5b(0x1f6)&&(_0x378ca1[_0xa086a]=_0x24f578['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x448014[_0x469a5b(0x275)],')')));});var _0x5b32fe=_0x448014['defIds'];return!_0x5b32fe||_0x5b32fe[_0x139549(0x2a5)]===0x0||(_0xd61a43[_0x139549(0x238)]===_0x139549(0x298)&&_0x378ca1[_0x139549(0x258)]&&(_0x378ca1[_0x139549(0x258)]=_0x378ca1[_0x139549(0x258)]+_0x448014[_0x139549(0x275)]),Object['entries'](_0x378ca1)['forEach'](function(_0x407627){var _0x42c1d9=_0x139549,_0x15a33f=_0x407627[0x0],_0x45401e=_0x407627[0x1];typeof _0x45401e==_0x42c1d9(0x1f6)&&(_0x378ca1[_0x15a33f]=_0x45401e[_0x42c1d9(0x276)](/url\(#(.*)\)/,'url(#$1'[_0x42c1d9(0x20c)](_0x448014['idSuffix'],')')));})),_0x378ca1;}function W(_0x25032d,_0x22b232){var _0x167d98=_0x5daaa7,_0x37ce1e,_0x13a868=_0x22b232['defIds'];return!_0x13a868||_0x13a868[_0x167d98(0x2a5)]===0x0?_0x25032d:_0x25032d[_0x167d98(0x238)]===_0x167d98(0x1c4)&&(!((_0x37ce1e=_0x25032d[_0x167d98(0x216)])===null||_0x37ce1e===void 0x0)&&_0x37ce1e[_0x167d98(0x2a5)])?u(u({},_0x25032d),{'children':_0x25032d[_0x167d98(0x216)][_0x167d98(0x221)](function(_0x519990){var _0x262373=_0x167d98;return typeof _0x519990[_0x262373(0x21d)]['id']==_0x262373(0x1f6)&&_0x13a868&&_0x13a868[_0x262373(0x218)](_0x519990[_0x262373(0x21d)]['id'])>-0x1?u(u({},_0x519990),{'attrs':u(u({},_0x519990['attrs']),{'id':_0x519990[_0x262373(0x21d)]['id']+_0x22b232['idSuffix']})}):_0x519990;})}):_0x25032d;}function G(){var _0x238dba=_0x5daaa7;return Math[_0x238dba(0x251)]()[_0x238dba(0x1c7)](0x24)[_0x238dba(0x26c)](0x2,0x8);}j[_0x5daaa7(0x280)]='UniverIcon';var B={'tag':_0x5daaa7(0x28c),'attrs':{'fill':'none','viewBox':_0x5daaa7(0x283),'width':_0x5daaa7(0x23c),'height':'1em'},'children':[{'tag':'path','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':_0x5daaa7(0x247),'attrs':{'fill':_0x5daaa7(0x259),'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':_0x5daaa7(0x222),'clipRule':_0x5daaa7(0x222)}}]},P=f[_0x5daaa7(0x1f4)](function(_0x20a8e5,_0x204258){var _0x91029e=_0x5daaa7;return f[_0x91029e(0x2a1)](j,Object[_0x91029e(0x22e)]({},_0x20a8e5,{'id':_0x91029e(0x227),'ref':_0x204258,'icon':B}));});P[_0x5daaa7(0x280)]='LiveShareSingle';var Y=Object[_0x5daaa7(0x237)],R=(_0x3f1bfd,_0x5c39f6,_0x3ca33c,_0xee9327)=>{for(var _0x120c13=_0xee9327>0x1?void 0x0:_0xee9327?Y(_0x5c39f6,_0x3ca33c):_0x5c39f6,_0x469311=_0x3f1bfd['length']-0x1,_0x5ecbda;_0x469311>=0x0;_0x469311--)(_0x5ecbda=_0x3f1bfd[_0x469311])&&(_0x120c13=_0x5ecbda(_0x120c13)||_0x120c13);return _0x120c13;},S=(_0x5ba0af,_0x3f8c7b)=>(_0x206b7b,_0x5057b1)=>_0x3f8c7b(_0x206b7b,_0x5057b1,_0x5ba0af);exports[_0x5daaa7(0x204)]=class extends o[_0x5daaa7(0x269)]{constructor(_0x4e695f,_0x43f23a,_0xa54499){var _0x2bae97=_0x5daaa7;super(),v(this,_0x2bae97(0x1fd),new Map()),(this[_0x2bae97(0x1f7)]=_0x4e695f,this[_0x2bae97(0x23d)]=_0x43f23a,this['_collabSessionService']=_0xa54499,this['_init']());}async['getLiveShareCoordinator'](_0x12c06){var _0x16eeef=_0x5daaa7;return this['_entities']['has'](_0x12c06)||await this['_startLiveShareCoordinator'](_0x12c06),this[_0x16eeef(0x1fd)][_0x16eeef(0x27f)](_0x12c06);}[_0x5daaa7(0x2a2)](){var _0x255321=_0x5daaa7;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x255321(0x1ea)][_0x255321(0x28a)])['pipe'](b[_0x255321(0x1fb)](this[_0x255321(0x1ef)]))[_0x255321(0x22c)](async _0x3fbbae=>{var _0x578329=_0x255321;const _0x2bd856=_0x3fbbae[_0x578329(0x24c)]();this[_0x578329(0x1fd)][_0x578329(0x24d)](_0x2bd856)||this[_0x578329(0x28b)](_0x2bd856);}),this[_0x255321(0x1f7)][_0x255321(0x231)](o[_0x255321(0x1ea)]['UNIVER_SHEET'])[_0x255321(0x2ab)](b[_0x255321(0x1fb)](this[_0x255321(0x1ef)]))[_0x255321(0x22c)](_0x396455=>{var _0x1dca64=_0x255321;const _0x2b72bf=_0x396455[_0x1dca64(0x24c)](),_0xc674e6=this[_0x1dca64(0x1fd)][_0x1dca64(0x27f)](_0x2b72bf);_0xc674e6==null||_0xc674e6[_0x1dca64(0x290)]();});}async['_startLiveShareCoordinator'](_0x1ab874){var _0x2a879e=_0x5daaa7;const _0x251dbd=await this[_0x2a879e(0x239)][_0x2a879e(0x22b)](_0x1ab874),_0x44a7d9=this['_injector'][_0x2a879e(0x248)](exports[_0x2a879e(0x1d5)],_0x1ab874,_0x251dbd);return _0x44a7d9[_0x2a879e(0x1de)](),this[_0x2a879e(0x1fd)][_0x2a879e(0x1f1)](_0x1ab874,_0x44a7d9),_0x44a7d9;}},exports[_0x5daaa7(0x204)]=R([S(0x0,o[_0x5daaa7(0x212)]),S(0x1,o[_0x5daaa7(0x1cf)](o['Injector'])),S(0x2,o[_0x5daaa7(0x1cf)](m['CollaborationSessionService']))],exports[_0x5daaa7(0x204)]);var h=(_0x26e5fc=>(_0x26e5fc[_0x5daaa7(0x1f2)]=_0x5daaa7(0x2ae),_0x26e5fc['IDLE']='idle',_0x26e5fc[_0x5daaa7(0x23a)]=_0x5daaa7(0x21c),_0x26e5fc['NOT_FOLLOWING']=_0x5daaa7(0x1e9),_0x26e5fc[_0x5daaa7(0x286)]=_0x5daaa7(0x240),_0x26e5fc))(h||{});const z='SAME_OPERATION_SHARE_INTERVAL',Z=0xc8;function _0x2b98(_0x5f786e,_0x1d2a7c){var _0x2e76c9=_0x2e76();return _0x2b98=function(_0x2b989c,_0x4c9706){_0x2b989c=_0x2b989c-0x1c4;var _0x268385=_0x2e76c9[_0x2b989c];return _0x268385;},_0x2b98(_0x5f786e,_0x1d2a7c);}exports[_0x5daaa7(0x1d5)]=class extends o['RxDisposable']{constructor(_0x5f3b97,_0x1ad0ec,_0x3131db,_0xcb455,_0x5228eb){var _0x3f46f7=_0x5daaa7;super(),v(this,_0x3f46f7(0x292),new L['BehaviorSubject'](_0x3f46f7(0x203))),v(this,_0x3f46f7(0x210),this['_status$'][_0x3f46f7(0x1ca)]()),v(this,_0x3f46f7(0x2a2),!0x1),v(this,'_commandDisposable',null),v(this,_0x3f46f7(0x235),null),(this[_0x3f46f7(0x2aa)]=_0x5f3b97,this[_0x3f46f7(0x20a)]=_0x1ad0ec,this['_configService']=_0x3131db,this[_0x3f46f7(0x272)]=_0xcb455,this[_0x3f46f7(0x23b)]=_0x5228eb);}get[_0x5daaa7(0x24e)](){var _0x9f0dcb=_0x5daaa7;return this[_0x9f0dcb(0x292)][_0x9f0dcb(0x21e)]();}[_0x5daaa7(0x290)](){var _0x560ede=_0x5daaa7,_0x107e89;(_0x107e89=this[_0x560ede(0x1e0)])==null||_0x107e89[_0x560ede(0x290)](),this['_status$'][_0x560ede(0x296)](_0x560ede(0x203)),this[_0x560ede(0x292)][_0x560ede(0x1eb)]();}[_0x5daaa7(0x1de)](){var _0xc281aa=_0x5daaa7;this['_init']||(this[_0xc281aa(0x2a2)]=!0x0,this[_0xc281aa(0x20a)]['sessionStatus$']['pipe'](b[_0xc281aa(0x1fb)](this[_0xc281aa(0x1ef)]))['subscribe'](_0x4a3e01=>{var _0x45e42f=_0xc281aa;switch(_0x4a3e01){case m[_0x45e42f(0x29f)][_0x45e42f(0x1f2)]:this['_handleOffline']();break;case m[_0x45e42f(0x29f)][_0x45e42f(0x1c6)]:this[_0x45e42f(0x201)]();break;}}),this[_0xc281aa(0x20a)][_0xc281aa(0x1ff)][_0xc281aa(0x2ab)](b['takeUntil'](this[_0xc281aa(0x1ef)]))['subscribe'](_0x8e8d32=>{var _0x14312b=_0xc281aa;const {eventID:_0x410348}=_0x8e8d32;switch(_0x410348){case _[_0x14312b(0x2a7)][_0x14312b(0x236)]:this[_0x14312b(0x1e5)](_0x8e8d32);break;case _['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x14312b(0x1d0)](_0x8e8d32);break;case _[_0x14312b(0x2a7)]['LIVESHARE_TERMINATE']:this[_0x14312b(0x23f)]();break;case _[_0x14312b(0x2a7)][_0x14312b(0x1cb)]:this[_0x14312b(0x252)](_0x8e8d32);break;}}));}[_0x5daaa7(0x299)](){var _0x906f15=_0x5daaa7;this['_collabSession'][_0x906f15(0x1f9)]({'eventID':_[_0x906f15(0x2a7)][_0x906f15(0x1fe)],'data':{'unitID':this[_0x906f15(0x2aa)],'userID':this[_0x906f15(0x20a)][_0x906f15(0x20b)]()}},this[_0x906f15(0x2aa)]);}[_0x5daaa7(0x274)](){var _0x3ef797=_0x5daaa7;this['_status']===_0x3ef797(0x240)&&(this[_0x3ef797(0x292)]['next'](_0x3ef797(0x203)),this[_0x3ef797(0x20a)][_0x3ef797(0x1f9)]({'eventID':_[_0x3ef797(0x2a7)][_0x3ef797(0x27c)],'data':{'unitID':this['_unitID']}},this[_0x3ef797(0x2aa)]));}[_0x5daaa7(0x1e2)](){var _0x4f61d5=_0x5daaa7;this[_0x4f61d5(0x24e)]===_0x4f61d5(0x1e9)&&(this['_status$'][_0x4f61d5(0x296)]('following'),this[_0x4f61d5(0x271)]());}[_0x5daaa7(0x200)](){var _0x28d80e=_0x5daaa7;this['_status']===_0x28d80e(0x21c)&&this[_0x28d80e(0x1ed)]();}[_0x5daaa7(0x1e5)](_0x253b62){var _0x59a2a1=_0x5daaa7;const {presenter:_0x5b175b}=_0x253b62[_0x59a2a1(0x27e)],_0x45decf=this[_0x59a2a1(0x20a)][_0x59a2a1(0x20b)]();this[_0x59a2a1(0x235)]=_0x5b175b,_0x5b175b===_0x45decf?(this[_0x59a2a1(0x1ed)](),this[_0x59a2a1(0x230)]()):this['_status']!==_0x59a2a1(0x1e9)&&(this[_0x59a2a1(0x208)](),this[_0x59a2a1(0x271)]());}['_fetchOperations'](){var _0xafe7eb=_0x5daaa7;const _0x220a68={'eventID':_['CollaborationEvent'][_0xafe7eb(0x25e)]};this[_0xafe7eb(0x20a)][_0xafe7eb(0x1f9)](_0x220a68,this[_0xafe7eb(0x2aa)]);}['_handleTerminate'](){var _0x4f3fde=_0x5daaa7;this[_0x4f3fde(0x235)]=null,this[_0x4f3fde(0x24e)]!==_0x4f3fde(0x240)&&this[_0x4f3fde(0x24b)]();}[_0x5daaa7(0x252)](_0x2f43f5){var _0x5bd938=_0x5daaa7;if(this[_0x5bd938(0x24e)]==='following'&&this[_0x5bd938(0x235)]===_0x2f43f5['data'][_0x5bd938(0x2ac)]){const _0x141446=_['parseProtocolChangeset'](_0x2f43f5[_0x5bd938(0x27e)])[_0x5bd938(0x1d2)][_0x5bd938(0x1d3)]()['find'](_0x845c9b=>_0x845c9b['id']===C[_0x5bd938(0x207)]['id']);if(_0x141446){const _0x8d8799=_0x141446['params'][_0x5bd938(0x234)],_0x1a9c81=_0x141446[_0x5bd938(0x202)][_0x5bd938(0x273)]['id'];setTimeout(()=>{var _0x2937f7=_0x5bd938;this['_commandService'][_0x2937f7(0x246)](C[_0x2937f7(0x29b)]['id'],{'unitId':_0x8d8799,'subUnitId':_0x1a9c81},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x53a177=_0x5daaa7;this[_0x53a177(0x292)][_0x53a177(0x296)](_0x53a177(0x240));const _0x3cde57=new Map(),_0x34011c=this[_0x53a177(0x1e0)]=new o[(_0x53a177(0x262))]();_0x34011c[_0x53a177(0x297)](o[_0x53a177(0x257)](()=>{var _0x2c2923=_0x53a177;_0x3cde57[_0x2c2923(0x1e6)](_0x24470c=>_0x24470c[_0x2c2923(0x1eb)]()),_0x3cde57['clear']();})),_0x34011c['add'](this['_commandService'][_0x53a177(0x27a)](_0x1914c0=>{var _0x39b0c4=_0x53a177,_0x378540;if(_0x1914c0[_0x39b0c4(0x244)]!==o['CommandType'][_0x39b0c4(0x1cc)]||!this['_liveShareService'][_0x39b0c4(0x1d1)](_0x1914c0['id']))return;const {id:_0x8161c3}=_0x1914c0;let _0x50edce;_0x3cde57['has'](_0x8161c3)?_0x50edce=_0x3cde57[_0x39b0c4(0x27f)](_0x8161c3):(_0x50edce=new L[(_0x39b0c4(0x291))](),_0x3cde57[_0x39b0c4(0x1f1)](_0x8161c3,_0x50edce),_0x50edce['pipe'](b[_0x39b0c4(0x241)]((_0x378540=this[_0x39b0c4(0x1ec)][_0x39b0c4(0x1e7)](z))!=null?_0x378540:Z,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x39b0c4(0x22c)](_0x54e87a=>{var _0x2988ac=_0x39b0c4;this[_0x2988ac(0x20a)][_0x2988ac(0x1f9)]({'eventID':_['CollaborationEvent'][_0x2988ac(0x1e1)],'data':{'unitID':this[_0x2988ac(0x2aa)],'operations':{[_0x54e87a['id']]:{'id':_0x54e87a['id'],'params':JSON['stringify'](_0x54e87a['params'])}}}},this['_unitID']);})),_0x50edce[_0x39b0c4(0x296)](_0x1914c0);})),this[_0x53a177(0x272)][_0x53a177(0x245)](this[_0x53a177(0x2aa)])[_0x53a177(0x1e6)](_0x252de9=>this[_0x53a177(0x20a)][_0x53a177(0x1f9)]({'eventID':_['CollaborationEvent'][_0x53a177(0x1e1)],'data':{'unitID':this[_0x53a177(0x2aa)],'operations':{[_0x252de9['id']]:{'id':_0x252de9['id'],'params':JSON['stringify'](_0x252de9[_0x53a177(0x202)])}}}},this[_0x53a177(0x2aa)]));}[_0x5daaa7(0x208)](){var _0x43db77=_0x5daaa7,_0x5e8a78;this[_0x43db77(0x292)][_0x43db77(0x296)](_0x43db77(0x203)),(_0x5e8a78=this['_commandDisposable'])==null||_0x5e8a78[_0x43db77(0x290)](),this[_0x43db77(0x1e0)]=null;}['_startFollowing'](){var _0x5abd59=_0x5daaa7,_0x370b03;(_0x370b03=this[_0x5abd59(0x1e0)])==null||_0x370b03[_0x5abd59(0x290)](),this[_0x5abd59(0x292)][_0x5abd59(0x296)]('following');}[_0x5daaa7(0x24b)](){var _0x402f52=_0x5daaa7,_0xd9c99;this[_0x402f52(0x292)][_0x402f52(0x296)](_0x402f52(0x203)),(_0xd9c99=this[_0x402f52(0x1e0)])==null||_0xd9c99[_0x402f52(0x290)](),this['_commandDisposable']=null;}[_0x5daaa7(0x1ed)](){var _0x3a0313=_0x5daaa7,_0xf1b2b2;this[_0x3a0313(0x292)][_0x3a0313(0x296)]('not-following'),(_0xf1b2b2=this['_commandDisposable'])==null||_0xf1b2b2[_0x3a0313(0x290)]();}['_handleOperation'](_0x9cf959){var _0x52b4dc=_0x5daaa7;if([_0x52b4dc(0x240),'not-following',_0x52b4dc(0x2ae)][_0x52b4dc(0x1db)](this[_0x52b4dc(0x24e)])||!_0x9cf959[_0x52b4dc(0x27e)][_0x52b4dc(0x288)]||_0x9cf959[_0x52b4dc(0x27e)]['presenter']===this['_collabSession'][_0x52b4dc(0x20b)]())return;this['_status']==='idle'&&this[_0x52b4dc(0x271)]();const _0x1047dd=_0x9cf959[_0x52b4dc(0x27e)]['operations'];Object[_0x52b4dc(0x285)](_0x1047dd)[_0x52b4dc(0x1e6)](_0x36fa7e=>{var _0x2b91cf=_0x52b4dc;this[_0x2b91cf(0x23b)][_0x2b91cf(0x246)](_0x36fa7e['id'],_0x36fa7e[_0x2b91cf(0x202)]?JSON['parse'](_0x36fa7e[_0x2b91cf(0x202)]):null,{'fromCollab':!0x0});});}[_0x5daaa7(0x1cd)](){var _0x37fcd3=_0x5daaa7,_0x3f4f7f;this[_0x37fcd3(0x292)][_0x37fcd3(0x296)](_0x37fcd3(0x2ae)),(_0x3f4f7f=this[_0x37fcd3(0x1e0)])==null||_0x3f4f7f[_0x37fcd3(0x290)]();}['_handleOnline'](){var _0x32ee19=_0x5daaa7;this[_0x32ee19(0x292)][_0x32ee19(0x296)](_0x32ee19(0x203)),this[_0x32ee19(0x1f0)]();}},exports[_0x5daaa7(0x1d5)]=R([S(0x2,o[_0x5daaa7(0x295)]),S(0x3,o[_0x5daaa7(0x1cf)](E)),S(0x4,o[_0x5daaa7(0x2a4)])],exports['LiveShareCoordinator']);function A(){var _0x458c2b=_0x5daaa7;const _0x479694=p[_0x458c2b(0x1c8)](exports[_0x458c2b(0x204)]),_0x7d1ceb=p[_0x458c2b(0x1c8)](o[_0x458c2b(0x212)]),_0xb058b6=p['useObservable'](()=>_0x7d1ceb['getCurrentTypeOfUnit$'](o[_0x458c2b(0x1ea)][_0x458c2b(0x28a)]),void 0x0,!0x1,[]),[_0x12b7d3,_0x379481]=f['useState'](null),[_0x312d26,_0x94ca7e]=f['useState'](h[_0x458c2b(0x2a9)]),_0x2adc53=f[_0x458c2b(0x29a)](null);return f[_0x458c2b(0x1c5)](()=>(_0xb058b6&&_0x479694[_0x458c2b(0x214)](_0xb058b6['getUnitId']())[_0x458c2b(0x256)](_0x31bf0c=>{var _0x4fc7dd=_0x458c2b;_0x379481(_0x31bf0c),_0x2adc53[_0x4fc7dd(0x268)]=_0x31bf0c[_0x4fc7dd(0x210)][_0x4fc7dd(0x22c)](_0x21e01e=>{_0x94ca7e(_0x21e01e);});}),()=>{var _0xf54a4=_0x458c2b,_0xc8dcac;(_0xc8dcac=_0x2adc53[_0xf54a4(0x268)])==null||_0xc8dcac[_0xf54a4(0x1c9)](),_0x2adc53[_0xf54a4(0x268)]=null;}),[_0xb058b6,_0x479694]),_0x12b7d3?l[_0x458c2b(0x2a8)](g[_0x458c2b(0x261)],{'align':_0x458c2b(0x25d),'disabled':_0x312d26===h[_0x458c2b(0x1f2)],'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','overlay':l[_0x458c2b(0x2a8)](J,{'status':_0x312d26,'coordinator':_0x12b7d3}),'children':l['jsx'](_0x458c2b(0x1dc),{'className':g[_0x458c2b(0x284)](_0x458c2b(0x28d),{'univer-cursor-not-allowed':_0x312d26===h[_0x458c2b(0x1f2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x312d26!==h[_0x458c2b(0x1f2)]}),'type':'button','children':l[_0x458c2b(0x2a8)](P,{'className':_0x458c2b(0x206)})})}):null;}function _0x2e76(){var _0x412603=['evenodd','function','jsxs','SetZoomRatioOperation','className','live-share-single','onRendered','Disposable','@univerjs/ui','requireSession','subscribe','merge','assign','372561DYJxML','_startPresenting','getTypeOfUnitDisposed$','prototype','small','unitId','_presenter','LIVESHARE_NEW_HOST','getOwnPropertyDescriptor','tag','_collabSessionService','FOLLOWING','_commandService','1em','_injector','234896uafYIL','_handleTerminate','presenting','throttleTime','toStringTag','@univerjs-pro/collaboration-client','type','getInitialStates','executeCommand','path','createInstance','connectInjector','extend','_beIdle','getUnitId','has','_status','1143688xDGLVi','Stop\x20presenting','random','_handleNewChangeSets','onStarting','defineProperty','2540616TvurcP','then','toDisposable','xlink:href','currentColor','_reporters','You\x27are\x20offline.','registerInitialStateReporter','end','LIVESHARE_FETCH_OPERATIONS','125tuLXHc','disposeWithMe','Dropdown','DisposableCollection','icon','react/jsx-runtime','Fragment','getOwnPropertySymbols','UNIVER_UNKNOWN','current','RxDisposable','Injector','9SuQitE','substring','apply','react','24142JdRkmP','univerjs-icon\x20univerjs-icon-','_startFollowing','_liveShareService','sheet','stopPresenting','idSuffix','replace','registerComponent','div','Button','onCommandExecuted','You\x27re\x20presenting\x20the\x20document','LIVESHARE_TERMINATE','mask','data','get','displayName','entries','Start','0\x200\x2017\x2017','clsx','values','PRESENTING','Plugin','presenter','@univerjs-pro/collaboration','UNIVER_SHEET','_startLiveShareCoordinator','svg','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','Present\x20this\x20document','HEADER_MENU','dispose','Subject','_status$','symbol','touchDependencies','IConfigService','next','add','use','tryStartPresenting','useRef','SetWorksheetActiveOperation','pluginName','_sharedOperations','rxjs/operators','SessionStatus','@univerjs/sheets','createElement','_init','@univerjs/sheets-ui','ICommandService','length','SetScrollOperation','CollaborationEvent','jsx','IDLE','_unitID','pipe','memberID','LiveShare','offline','defs','useEffect','ONLINE','toString','useDependency','unsubscribe','asObservable','NEW_CHANGESETS','OPERATION','_handleOffline','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','Inject','_handleOperation','shouldShareOperation','mutations','reverse','You\x27re\x20following\x20the\x20presenter','LiveShareCoordinator','LiveShareStatus','_uiPartsService','DesktopLiveShareController','defIds','hasOwnProperty','includes','button','7tOUQsr','init','Start\x20following','_commandDisposable','LIVESHARE_OPERATION','startFollowing','UniverCollaborationClientPlugin','UniverLiveSharePlugin','_handleNewHost','forEach','getConfig','DependentOn','not-following','UniverInstanceType','complete','_configService','_stopFollowing','rxjs','dispose$','_fetchOperations','set','OFFLINE','_config','forwardRef','live-share.config','string','_univerInstanceService','call','send','mergeOverrideWithDependencies','takeUntil','from','_entities','LIVESHARE_REQUEST_HOST','event$','stopFollowing','_handleOnline','params','idle','LiveShareController','@univerjs/design','univer-size-4','InsertSheetMutation','_stopPresenting','setConfig','_collabSession','getMemberID','concat','default','delete','registerSharedOperation','status$','colorChannel1','IUniverInstanceService','1782033MOyKIS','getLiveShareCoordinator','UNIVER_LIVE_SHARE_PLUGIN','children','fill','indexOf','propertyIsEnumerable','35252710qflMdp','_mountLiveShare','following','attrs','getValue','registerDependencies','BuiltInUIPart','map'];_0x2e76=function(){return _0x412603;};return _0x2e76();}function J(_0x30819e){var _0x50eb5d=_0x5daaa7;const {status:_0x28a166,coordinator:_0x155b11}=_0x30819e;switch(_0x28a166){case h[_0x50eb5d(0x2a9)]:return l[_0x50eb5d(0x2a8)](K,{'coordinator':_0x155b11});case h[_0x50eb5d(0x23a)]:return l['jsx'](Q,{'coordinator':_0x155b11});case h['NOT_FOLLOWING']:return l[_0x50eb5d(0x2a8)](X,{'coordinator':_0x155b11});case h[_0x50eb5d(0x1f2)]:return l[_0x50eb5d(0x2a8)](te,{});case h[_0x50eb5d(0x286)]:return l[_0x50eb5d(0x2a8)](ee,{'coordinator':_0x155b11});default:return null;}}function K(_0x2350b9){var _0x37150d=_0x5daaa7;const {coordinator:_0x7196bf}=_0x2350b9;return l[_0x37150d(0x224)](l['Fragment'],{'children':[l[_0x37150d(0x2a8)](_0x37150d(0x278),{'className':_0x37150d(0x1ce),'children':_0x37150d(0x28e)}),l['jsx'](g[_0x37150d(0x279)],{'size':_0x37150d(0x233),'type':_0x37150d(0x20d),'onClick':()=>_0x7196bf[_0x37150d(0x299)](),'children':_0x37150d(0x282)})]});}function Q(_0xee6dc4){var _0xecbd07=_0x5daaa7;const {coordinator:_0x548265}=_0xee6dc4;return l[_0xecbd07(0x224)](l[_0xecbd07(0x265)],{'children':[l[_0xecbd07(0x2a8)](_0xecbd07(0x278),{'className':_0xecbd07(0x1ce),'children':_0xecbd07(0x1d4)}),l[_0xecbd07(0x2a8)](g[_0xecbd07(0x279)],{'size':_0xecbd07(0x233),'type':'default','onClick':()=>_0x548265['stopFollowing'](),'children':'Stop\x20following'})]});}function X(_0x16a4d4){var _0x26703e=_0x5daaa7;const {coordinator:_0x5ba86e}=_0x16a4d4;return l[_0x26703e(0x224)](l['Fragment'],{'children':[l[_0x26703e(0x2a8)](_0x26703e(0x278),{'className':_0x26703e(0x1ce),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x26703e(0x2a8)](g[_0x26703e(0x279)],{'size':'small','type':'text','onClick':()=>_0x5ba86e['startFollowing'](),'children':_0x26703e(0x1df)})]});}function ee(_0x4d280c){var _0x404fe6=_0x5daaa7;const {coordinator:_0x439f34}=_0x4d280c;return l[_0x404fe6(0x224)](l[_0x404fe6(0x265)],{'children':[l[_0x404fe6(0x2a8)](_0x404fe6(0x278),{'className':_0x404fe6(0x1ce),'children':_0x404fe6(0x27b)}),l[_0x404fe6(0x2a8)](g[_0x404fe6(0x279)],{'size':_0x404fe6(0x233),'type':_0x404fe6(0x20d),'onClick':()=>_0x439f34[_0x404fe6(0x274)](),'children':_0x404fe6(0x250)})]});}function te(){var _0x4bf348=_0x5daaa7;return l[_0x4bf348(0x2a8)](l[_0x4bf348(0x265)],{'children':_0x4bf348(0x25b)});}var ie=Object[_0x5daaa7(0x237)],ne=(_0x45c74b,_0x1ecac1,_0x37d9da,_0x183dee)=>{var _0x1dab31=_0x5daaa7;for(var _0x3eb629=_0x183dee>0x1?void 0x0:_0x183dee?ie(_0x1ecac1,_0x37d9da):_0x1ecac1,_0x4b938d=_0x45c74b[_0x1dab31(0x2a5)]-0x1,_0xc24867;_0x4b938d>=0x0;_0x4b938d--)(_0xc24867=_0x45c74b[_0x4b938d])&&(_0x3eb629=_0xc24867(_0x3eb629)||_0x3eb629);return _0x3eb629;},N=(_0x1df941,_0x2592d4)=>(_0x4c7766,_0x141c8)=>_0x2592d4(_0x4c7766,_0x141c8,_0x1df941);exports[_0x5daaa7(0x1d8)]=class extends o[_0x5daaa7(0x229)]{constructor(_0x45f7a4,_0x4b179f){var _0x34ccb4=_0x5daaa7;super(),this[_0x34ccb4(0x23d)]=_0x45f7a4,this[_0x34ccb4(0x1d7)]=_0x4b179f,this[_0x34ccb4(0x21b)]();}[_0x5daaa7(0x21b)](){var _0x295ccd=_0x5daaa7;this[_0x295ccd(0x260)](this[_0x295ccd(0x1d7)][_0x295ccd(0x277)](p[_0x295ccd(0x220)][_0x295ccd(0x28f)],()=>p[_0x295ccd(0x249)](A,this[_0x295ccd(0x23d)])));}},exports[_0x5daaa7(0x1d8)]=ne([N(0x0,o[_0x5daaa7(0x1cf)](o[_0x5daaa7(0x26a)])),N(0x1,p['IUIPartsService'])],exports[_0x5daaa7(0x1d8)]);var re=Object['defineProperty'],se=Object[_0x5daaa7(0x237)],oe=(_0xf09925,_0x381d60,_0xf4524b)=>_0x381d60 in _0xf09925?re(_0xf09925,_0x381d60,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf4524b}):_0xf09925[_0x381d60]=_0xf4524b,ae=(_0x2c87a6,_0xbdbe4e,_0x39282d,_0x108209)=>{var _0x567fc4=_0x5daaa7;for(var _0xe866e6=_0x108209>0x1?void 0x0:_0x108209?se(_0xbdbe4e,_0x39282d):_0xbdbe4e,_0x1369b1=_0x2c87a6[_0x567fc4(0x2a5)]-0x1,_0x2a919e;_0x1369b1>=0x0;_0x1369b1--)(_0x2a919e=_0x2c87a6[_0x1369b1])&&(_0xe866e6=_0x2a919e(_0xe866e6)||_0xe866e6);return _0xe866e6;},w=(_0x906c59,_0x3cb5d3)=>(_0x3c6c89,_0x2433ad)=>_0x3cb5d3(_0x3c6c89,_0x2433ad,_0x906c59),T=(_0x3685ce,_0x17c320,_0x51c7c3)=>oe(_0x3685ce,typeof _0x17c320!=_0x5daaa7(0x293)?_0x17c320+'':_0x17c320,_0x51c7c3);const le=_0x5daaa7(0x215);exports['UniverLiveSharePlugin']=class extends o[_0x5daaa7(0x287)]{constructor(_0x285334=x,_0x493ed7,_0xd8467e){var _0x2c71e6=_0x5daaa7;super(),this[_0x2c71e6(0x1f3)]=_0x285334,this['_injector']=_0x493ed7,this[_0x2c71e6(0x1ec)]=_0xd8467e;const {..._0x5d1c15}=o[_0x2c71e6(0x22d)]({},x,this[_0x2c71e6(0x1f3)]);this[_0x2c71e6(0x1ec)][_0x2c71e6(0x209)]($,_0x5d1c15);}[_0x5daaa7(0x253)](){var _0x9ba6aa=_0x5daaa7;o[_0x9ba6aa(0x21f)](this['_injector'],o[_0x9ba6aa(0x1fa)]([[E],[exports[_0x9ba6aa(0x204)]],[O],[exports['DesktopLiveShareController']]],this[_0x9ba6aa(0x1f3)]['override'])),o[_0x9ba6aa(0x294)](this['_injector'],[[O]]);}[_0x5daaa7(0x228)](){var _0x1145e5=_0x5daaa7;o[_0x1145e5(0x294)](this[_0x1145e5(0x23d)],[[exports[_0x1145e5(0x1d8)]]]);}},T(exports['UniverLiveSharePlugin'],_0x5daaa7(0x244),o[_0x5daaa7(0x1ea)][_0x5daaa7(0x267)]),T(exports['UniverLiveSharePlugin'],_0x5daaa7(0x29c),le),exports[_0x5daaa7(0x1e4)]=ae([o[_0x5daaa7(0x1e8)](m[_0x5daaa7(0x1e3)]),w(0x1,o['Inject'](o[_0x5daaa7(0x26a)])),w(0x2,o[_0x5daaa7(0x295)])],exports[_0x5daaa7(0x1e4)]),exports[_0x5daaa7(0x2ad)]=A,exports['LiveShareService']=E,exports[_0x5daaa7(0x1d6)]=h;
|
|
1
|
+
'use strict';var _0x2eb377=_0xefd6;(function(_0x3c5937,_0x277d23){var _0x23570e=_0xefd6,_0x115fd7=_0x3c5937();while(!![]){try{var _0x1ca2c3=-parseInt(_0x23570e(0x9d))/0x1+-parseInt(_0x23570e(0x147))/0x2*(-parseInt(_0x23570e(0xe5))/0x3)+-parseInt(_0x23570e(0x15a))/0x4+-parseInt(_0x23570e(0xa1))/0x5*(-parseInt(_0x23570e(0x14b))/0x6)+-parseInt(_0x23570e(0xfa))/0x7+parseInt(_0x23570e(0x158))/0x8+-parseInt(_0x23570e(0xe2))/0x9;if(_0x1ca2c3===_0x277d23)break;else _0x115fd7['push'](_0x115fd7['shift']());}catch(_0x3bdd89){_0x115fd7['push'](_0x115fd7['shift']());}}}(_0x202c,0xb83f6));var U=Object['defineProperty'],F=(_0x1e839e,_0x1f2cdc,_0x2c1711)=>_0x1f2cdc in _0x1e839e?U(_0x1e839e,_0x1f2cdc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c1711}):_0x1e839e[_0x1f2cdc]=_0x2c1711,v=(_0x1504de,_0x521efc,_0x393b07)=>F(_0x1504de,typeof _0x521efc!=_0x2eb377(0x135)?_0x521efc+'':_0x521efc,_0x393b07);Object[_0x2eb377(0xb5)](exports,Symbol['toStringTag'],{'value':_0x2eb377(0x13b)});const m=require(_0x2eb377(0xef)),o=require(_0x2eb377(0x163)),C=require(_0x2eb377(0x91)),D=require(_0x2eb377(0x12e)),p=require(_0x2eb377(0x138)),l=require(_0x2eb377(0x11a)),g=require(_0x2eb377(0x13a)),f=require(_0x2eb377(0x93)),_=require(_0x2eb377(0x10b)),L=require('rxjs'),b=require(_0x2eb377(0x141)),$=_0x2eb377(0xab),x={};class E extends o[_0x2eb377(0x111)]{constructor(){var _0x335fb4=_0x2eb377;super(...arguments),v(this,_0x335fb4(0xae),new Set()),v(this,_0x335fb4(0x99),new Set());}[_0x2eb377(0xcf)](_0x356385){var _0x4d4a9e=_0x2eb377;return this['_sharedOperations'][_0x4d4a9e(0xfe)](_0x356385),o[_0x4d4a9e(0x153)](()=>this[_0x4d4a9e(0xae)][_0x4d4a9e(0xd2)](_0x356385));}[_0x2eb377(0xe0)](_0x1d6a21){var _0x2e8d01=_0x2eb377;return this['_reporters'][_0x2e8d01(0xfe)](_0x1d6a21),o[_0x2e8d01(0x153)](()=>this['_reporters']['delete'](_0x1d6a21));}[_0x2eb377(0x169)](_0x4961ee){var _0x18151=_0x2eb377;return this['_sharedOperations'][_0x18151(0x156)](_0x4961ee);}['getInitialStates'](_0x4e0053){var _0x332b66=_0x2eb377;return Array[_0x332b66(0xa7)](this[_0x332b66(0x99)])[_0x332b66(0x96)](_0x44ef41=>_0x44ef41(_0x4e0053));}}function _0x202c(){var _0x5b00da=['init','stopPresenting','_handleOffline','_commandService','createElement','forEach','DependentOn','url(#$1','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','small','useObservable','sessionStatus$','Present\x20this\x20document','UNIVER_UNKNOWN','registerSharedOperation','takeUntil','LIVESHARE_FETCH_OPERATIONS','delete','UniverIcon','SetWorksheetActiveOperation','NOT_FOLLOWING','getInitialStates','UNIVER_SHEET','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','getOwnPropertySymbols','merge','LIVESHARE_REQUEST_HOST','_status$','univer-size-4','memberID','concat','registerInitialStateReporter','includes','919206dNLdZb','complete','useDependency','10221mrMnNT','OFFLINE','useRef','stringify','Fragment','_fetchOperations','_startLiveShareCoordinator','hasOwnProperty','xlink:href','getTypeOfUnitDisposed$','@univerjs-pro/collaboration-client','children','send','dispose','_collabSessionService','_mountLiveShare','UniverInstanceType','_beIdle','status$','Button','LiveShare','9176958MKxzQQ','div','get','LiveShareSingle','add','throttleTime','jsx','ICommandService','type','stopFollowing','Dropdown','_init','Injector','LiveShareService','_stopFollowing','_startPresenting','jsxs','@univerjs-pro/collaboration','_uiPartsService','defIds','entries','current','_status','Disposable','dispose$','getCurrentTypeOfUnit$','tryStartPresenting','UNIVER_LIVE_SHARE_PLUGIN','live-share-single','apply','HEADER_MENU','getMemberID','react/jsx-runtime','presenting','following','SetScrollOperation','0\x200\x2016\x2016','useState','CollaborationSessionService','_handleNewHost','_unitID','disposeWithMe','path','toString','PRESENTING','unitId','_univerInstanceService','executeCommand','1em','asObservable','SessionStatus','evenodd','@univerjs/sheets-ui','mask','IUniverInstanceService','string','attrs','RxDisposable','getTypeOfUnitAdded$','symbol','_collabSession','You\x27are\x20offline.','@univerjs/ui','You\x27re\x20following\x20the\x20presenter','@univerjs/design','Module','subscribe','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','getConfig','IDLE','button','rxjs/operators','defs','substring','colorChannel1','onStarting','FOLLOWING','562rZnqLH','LIVESHARE_OPERATION','getOwnPropertyDescriptor','startFollowing','6YslKxl','idSuffix','OPERATION','Plugin','_configService','getUnitId','displayName','none','toDisposable','prototype','clsx','has','indexOf','11972952iQFWtI','_presenter','380500tgkKkX','assign','_handleOperation','length','useEffect','extend','end','function','fill','@univerjs/core','tag','getLiveShareCoordinator','_config','_injector','params','shouldShareOperation','LiveShareCoordinator','not-following','values','className','UniverLiveSharePlugin','onCommandExecuted','onRendered','Subject','setConfig','_handleOnline','You\x27re\x20presenting\x20the\x20document','@univerjs/sheets','touchDependencies','react','ONLINE','default','map','presenter','LIVESHARE_TERMINATE','_reporters','Start','pipe','LiveShareController','536618yNZTbV','_startFollowing','svg','data','1727815GuomiU','offline','clear','text','override','set','from','_stopPresenting','mutations','parseProtocolChangeset','live-share.config','_entities','_handleNewChangeSets','_sharedOperations','sheet','InsertSheetMutation','univerjs-icon\x20univerjs-icon-','DesktopLiveShareController','CollaborationEvent','next','defineProperty','NEW_CHANGESETS','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','replace','_liveShareService','createInstance','forwardRef','idle','_handleTerminate','_commandDisposable','Inject','IConfigService'];_0x202c=function(){return _0x5b00da;};return _0x202c();}var H=Object[_0x2eb377(0x149)],V=(_0x1eeb1b,_0x42a0ec,_0x91053,_0x4dcbfb)=>{for(var _0x49dee5=_0x4dcbfb>0x1?void 0x0:_0x4dcbfb?H(_0x42a0ec,_0x91053):_0x42a0ec,_0x473372=_0x1eeb1b['length']-0x1,_0x16ef5c;_0x473372>=0x0;_0x473372--)(_0x16ef5c=_0x1eeb1b[_0x473372])&&(_0x49dee5=_0x16ef5c(_0x49dee5)||_0x49dee5);return _0x49dee5;},k=(_0x33d56c,_0x32adac)=>(_0x14a78c,_0xcc2aff)=>_0x32adac(_0x14a78c,_0xcc2aff,_0x33d56c);let O=class extends o['Disposable']{constructor(_0x30d2f2){var _0x4d4199=_0x2eb377;super(),this[_0x4d4199(0xb9)]=_0x30d2f2,this[_0x4d4199(0x105)]();}[_0x2eb377(0x105)](){var _0x5949f0=_0x2eb377;[D['SetZoomRatioOperation']['id'],D[_0x5949f0(0x11d)]['id'],C[_0x5949f0(0xd4)]['id']][_0x5949f0(0xc6)](_0x41341d=>{var _0x5bf6ec=_0x5949f0;this[_0x5bf6ec(0x123)](this[_0x5bf6ec(0xb9)][_0x5bf6ec(0xcf)](_0x41341d));});}};O=V([k(0x0,o[_0x2eb377(0xbf)](E))],O);var u=function(){var _0x48e4bd=_0x2eb377;return u=Object['assign']||function(_0x589a94){var _0x22493a=_0xefd6;for(var _0x3e3dcd,_0x23f84d=0x1,_0x482e4f=arguments[_0x22493a(0x15d)];_0x23f84d<_0x482e4f;_0x23f84d++){_0x3e3dcd=arguments[_0x23f84d];for(var _0x22d95b in _0x3e3dcd)Object[_0x22493a(0x154)][_0x22493a(0xec)]['call'](_0x3e3dcd,_0x22d95b)&&(_0x589a94[_0x22d95b]=_0x3e3dcd[_0x22d95b]);}return _0x589a94;},u[_0x48e4bd(0x117)](this,arguments);},M=function(_0xe9e13d,_0x29d9f6){var _0x370981=_0x2eb377,_0x5544d3={};for(var _0x1d3d2a in _0xe9e13d)Object[_0x370981(0x154)]['hasOwnProperty']['call'](_0xe9e13d,_0x1d3d2a)&&_0x29d9f6[_0x370981(0x157)](_0x1d3d2a)<0x0&&(_0x5544d3[_0x1d3d2a]=_0xe9e13d[_0x1d3d2a]);if(_0xe9e13d!=null&&typeof Object['getOwnPropertySymbols']==_0x370981(0x161)){for(var _0x15acad=0x0,_0x1d3d2a=Object[_0x370981(0xd9)](_0xe9e13d);_0x15acad<_0x1d3d2a[_0x370981(0x15d)];_0x15acad++)_0x29d9f6[_0x370981(0x157)](_0x1d3d2a[_0x15acad])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0xe9e13d,_0x1d3d2a[_0x15acad])&&(_0x5544d3[_0x1d3d2a[_0x15acad]]=_0xe9e13d[_0x1d3d2a[_0x15acad]]);}return _0x5544d3;},j=f[_0x2eb377(0xbb)](function(_0x257921,_0x183404){var _0x58a03d=_0x2eb377,_0x362054=_0x257921['icon'],_0x22ed34=_0x257921['id'],_0x520fa8=_0x257921[_0x58a03d(0x89)],_0x42b296=_0x257921[_0x58a03d(0x15f)],_0x4d6cce=M(_0x257921,['icon','id','className',_0x58a03d(0x15f)]),_0x31dcde=_0x58a03d(0xb1)[_0x58a03d(0xdf)](_0x22ed34,'\x20')['concat'](_0x520fa8||'')['trim'](),_0x3fda85=f['useRef']('_'[_0x58a03d(0xdf)](G()));return y(_0x362054,''[_0x58a03d(0xdf)](_0x22ed34),{'defIds':_0x362054[_0x58a03d(0x10d)],'idSuffix':_0x3fda85[_0x58a03d(0x10f)]},u({'ref':_0x183404,'className':_0x31dcde},_0x4d6cce),_0x42b296);});function y(_0x1c1e70,_0x2ea6b2,_0x2ec7ce,_0x473200,_0x1ca642){var _0xdd2563=_0x2eb377;return f[_0xdd2563(0xc5)](_0x1c1e70['tag'],u(u({'key':_0x2ea6b2},q(_0x1c1e70,_0x2ec7ce,_0x1ca642)),_0x473200),(W(_0x1c1e70,_0x2ec7ce)[_0xdd2563(0xf0)]||[])[_0xdd2563(0x96)](function(_0x1bdfe4,_0x38e562){var _0x1056ab=_0xdd2563;return y(_0x1bdfe4,''[_0x1056ab(0xdf)](_0x2ea6b2,'-')['concat'](_0x1c1e70[_0x1056ab(0x164)],'-')[_0x1056ab(0xdf)](_0x38e562),_0x2ec7ce,void 0x0,_0x1ca642);}));}function q(_0x39268e,_0x15f72e,_0x37226e){var _0x88ce41=_0x2eb377,_0x56b017=u({},_0x39268e[_0x88ce41(0x132)]);_0x37226e!=null&&_0x37226e[_0x88ce41(0x144)]&&_0x56b017[_0x88ce41(0x162)]===_0x88ce41(0x144)&&(_0x56b017[_0x88ce41(0x162)]=_0x37226e['colorChannel1']),_0x39268e[_0x88ce41(0x164)]===_0x88ce41(0x12f)&&_0x56b017['id']&&(_0x56b017['id']=_0x56b017['id']+_0x15f72e[_0x88ce41(0x14c)]),Object[_0x88ce41(0x10e)](_0x56b017)['forEach'](function(_0x5e1122){var _0x5d1bb4=_0x88ce41,_0x1a19e5=_0x5e1122[0x0],_0xbb79af=_0x5e1122[0x1];_0x1a19e5===_0x5d1bb4(0x12f)&&typeof _0xbb79af==_0x5d1bb4(0x131)&&(_0x56b017[_0x1a19e5]=_0xbb79af[_0x5d1bb4(0xb8)](/url\(#(.*)\)/,_0x5d1bb4(0xc8)[_0x5d1bb4(0xdf)](_0x15f72e[_0x5d1bb4(0x14c)],')')));});var _0x419d4c=_0x15f72e[_0x88ce41(0x10d)];return!_0x419d4c||_0x419d4c['length']===0x0||(_0x39268e[_0x88ce41(0x164)]==='use'&&_0x56b017[_0x88ce41(0xed)]&&(_0x56b017[_0x88ce41(0xed)]=_0x56b017[_0x88ce41(0xed)]+_0x15f72e[_0x88ce41(0x14c)]),Object[_0x88ce41(0x10e)](_0x56b017)[_0x88ce41(0xc6)](function(_0x3e475a){var _0x448d13=_0x88ce41,_0x295468=_0x3e475a[0x0],_0x4790f3=_0x3e475a[0x1];typeof _0x4790f3==_0x448d13(0x131)&&(_0x56b017[_0x295468]=_0x4790f3[_0x448d13(0xb8)](/url\(#(.*)\)/,_0x448d13(0xc8)['concat'](_0x15f72e[_0x448d13(0x14c)],')')));})),_0x56b017;}function W(_0x4094f1,_0x1e8b69){var _0x133b88=_0x2eb377,_0x5e6e81,_0x468ba4=_0x1e8b69[_0x133b88(0x10d)];return!_0x468ba4||_0x468ba4[_0x133b88(0x15d)]===0x0?_0x4094f1:_0x4094f1[_0x133b88(0x164)]===_0x133b88(0x142)&&(!((_0x5e6e81=_0x4094f1[_0x133b88(0xf0)])===null||_0x5e6e81===void 0x0)&&_0x5e6e81[_0x133b88(0x15d)])?u(u({},_0x4094f1),{'children':_0x4094f1['children'][_0x133b88(0x96)](function(_0xb403cf){var _0x45877e=_0x133b88;return typeof _0xb403cf['attrs']['id']==_0x45877e(0x131)&&_0x468ba4&&_0x468ba4[_0x45877e(0x157)](_0xb403cf['attrs']['id'])>-0x1?u(u({},_0xb403cf),{'attrs':u(u({},_0xb403cf[_0x45877e(0x132)]),{'id':_0xb403cf[_0x45877e(0x132)]['id']+_0x1e8b69[_0x45877e(0x14c)]})}):_0xb403cf;})}):_0x4094f1;}function G(){var _0x4d8a32=_0x2eb377;return Math['random']()[_0x4d8a32(0x125)](0x24)[_0x4d8a32(0x143)](0x2,0x8);}j[_0x2eb377(0x151)]=_0x2eb377(0xd3);var B={'tag':_0x2eb377(0x9f),'attrs':{'fill':_0x2eb377(0x152),'viewBox':_0x2eb377(0x11e),'width':'1em','height':_0x2eb377(0x12a)},'children':[{'tag':_0x2eb377(0x124),'attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x2eb377(0x124),'attrs':{'fill':'currentColor','d':_0x2eb377(0xb7),'fillRule':_0x2eb377(0x12d),'clipRule':'evenodd'}}]},P=f[_0x2eb377(0xbb)](function(_0x1d1f9a,_0x56c956){var _0x490b7b=_0x2eb377;return f[_0x490b7b(0xc5)](j,Object[_0x490b7b(0x15b)]({},_0x1d1f9a,{'id':_0x490b7b(0x116),'ref':_0x56c956,'icon':B}));});P[_0x2eb377(0x151)]=_0x2eb377(0xfd);var Y=Object['getOwnPropertyDescriptor'],R=(_0x108e2d,_0x19cb02,_0x9246b4,_0x3b3e11)=>{for(var _0x47277a=_0x3b3e11>0x1?void 0x0:_0x3b3e11?Y(_0x19cb02,_0x9246b4):_0x19cb02,_0x34adbc=_0x108e2d['length']-0x1,_0x5e3b19;_0x34adbc>=0x0;_0x34adbc--)(_0x5e3b19=_0x108e2d[_0x34adbc])&&(_0x47277a=_0x5e3b19(_0x47277a)||_0x47277a);return _0x47277a;},S=(_0x246c77,_0x5b6f2d)=>(_0x1508a7,_0x439d20)=>_0x5b6f2d(_0x1508a7,_0x439d20,_0x246c77);exports['LiveShareController']=class extends o[_0x2eb377(0x133)]{constructor(_0x3d32ef,_0x3fea13,_0x3d30a9){var _0x52c02e=_0x2eb377;super(),v(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3d32ef,this[_0x52c02e(0x167)]=_0x3fea13,this[_0x52c02e(0xf3)]=_0x3d30a9,this['_init']());}async['getLiveShareCoordinator'](_0xc66a7a){var _0x3ca677=_0x2eb377;return this[_0x3ca677(0xac)][_0x3ca677(0x156)](_0xc66a7a)||await this['_startLiveShareCoordinator'](_0xc66a7a),this[_0x3ca677(0xac)][_0x3ca677(0xfc)](_0xc66a7a);}[_0x2eb377(0x105)](){var _0x422191=_0x2eb377;this[_0x422191(0x128)][_0x422191(0x134)](o[_0x422191(0xf5)][_0x422191(0xd7)])[_0x422191(0x9b)](b[_0x422191(0xd0)](this[_0x422191(0x112)]))[_0x422191(0x13c)](async _0x5c4f4b=>{var _0x210251=_0x422191;const _0x1dae5f=_0x5c4f4b[_0x210251(0x150)]();this[_0x210251(0xac)]['has'](_0x1dae5f)||this['_startLiveShareCoordinator'](_0x1dae5f);}),this[_0x422191(0x128)][_0x422191(0xee)](o[_0x422191(0xf5)][_0x422191(0xd7)])[_0x422191(0x9b)](b[_0x422191(0xd0)](this[_0x422191(0x112)]))[_0x422191(0x13c)](_0x1166d5=>{var _0x2c7569=_0x422191;const _0x217c01=_0x1166d5['getUnitId'](),_0x1ae85e=this[_0x2c7569(0xac)][_0x2c7569(0xfc)](_0x217c01);_0x1ae85e==null||_0x1ae85e['dispose']();});}async[_0x2eb377(0xeb)](_0x176bbb){var _0x482763=_0x2eb377;const _0x20674a=await this['_collabSessionService']['requireSession'](_0x176bbb),_0x4d468f=this[_0x482763(0x167)][_0x482763(0xba)](exports[_0x482763(0x16a)],_0x176bbb,_0x20674a);return _0x4d468f[_0x482763(0xc1)](),this[_0x482763(0xac)][_0x482763(0xa6)](_0x176bbb,_0x4d468f),_0x4d468f;}},exports[_0x2eb377(0x9c)]=R([S(0x0,o[_0x2eb377(0x130)]),S(0x1,o[_0x2eb377(0xbf)](o['Injector'])),S(0x2,o[_0x2eb377(0xbf)](m[_0x2eb377(0x120)]))],exports[_0x2eb377(0x9c)]);var h=(_0x1eae90=>(_0x1eae90[_0x2eb377(0xe6)]=_0x2eb377(0xa2),_0x1eae90[_0x2eb377(0x13f)]=_0x2eb377(0xbc),_0x1eae90[_0x2eb377(0x146)]=_0x2eb377(0x11c),_0x1eae90[_0x2eb377(0xd5)]=_0x2eb377(0x16b),_0x1eae90[_0x2eb377(0x126)]='presenting',_0x1eae90))(h||{});const z='SAME_OPERATION_SHARE_INTERVAL',Z=0xc8;exports[_0x2eb377(0x16a)]=class extends o[_0x2eb377(0x133)]{constructor(_0x2c574a,_0x4098c4,_0x45fdb0,_0x4a5837,_0x9e27ce){var _0x20c599=_0x2eb377;super(),v(this,'_status$',new L['BehaviorSubject'](_0x20c599(0xbc))),v(this,_0x20c599(0xf7),this['_status$'][_0x20c599(0x12b)]()),v(this,'_init',!0x1),v(this,'_commandDisposable',null),v(this,_0x20c599(0x159),null),(this[_0x20c599(0x122)]=_0x2c574a,this[_0x20c599(0x136)]=_0x4098c4,this[_0x20c599(0x14f)]=_0x45fdb0,this['_liveShareService']=_0x4a5837,this[_0x20c599(0xc4)]=_0x9e27ce);}get['_status'](){var _0xce6b36=_0x2eb377;return this[_0xce6b36(0xdc)]['getValue']();}[_0x2eb377(0xf2)](){var _0xe0f988=_0x2eb377,_0x3e44f4;(_0x3e44f4=this[_0xe0f988(0xbe)])==null||_0x3e44f4['dispose'](),this[_0xe0f988(0xdc)]['next'](_0xe0f988(0xbc)),this[_0xe0f988(0xdc)][_0xe0f988(0xe3)]();}['init'](){var _0x288a87=_0x2eb377;this[_0x288a87(0x105)]||(this['_init']=!0x0,this['_collabSession'][_0x288a87(0xcc)][_0x288a87(0x9b)](b[_0x288a87(0xd0)](this['dispose$']))['subscribe'](_0x2788a9=>{var _0xfc7efa=_0x288a87;switch(_0x2788a9){case m['SessionStatus'][_0xfc7efa(0xe6)]:this[_0xfc7efa(0xc3)]();break;case m[_0xfc7efa(0x12c)][_0xfc7efa(0x94)]:this[_0xfc7efa(0x8f)]();break;}}),this['_collabSession']['event$']['pipe'](b[_0x288a87(0xd0)](this[_0x288a87(0x112)]))[_0x288a87(0x13c)](_0x37e2a4=>{var _0x1c9242=_0x288a87;const {eventID:_0x32a12c}=_0x37e2a4;switch(_0x32a12c){case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x1c9242(0x121)](_0x37e2a4);break;case _['CollaborationEvent'][_0x1c9242(0x148)]:this[_0x1c9242(0x15c)](_0x37e2a4);break;case _['CollaborationEvent'][_0x1c9242(0x98)]:this['_handleTerminate']();break;case _[_0x1c9242(0xb3)][_0x1c9242(0xb6)]:this[_0x1c9242(0xad)](_0x37e2a4);break;}}));}[_0x2eb377(0x114)](){var _0x518691=_0x2eb377;this['_collabSession'][_0x518691(0xf1)]({'eventID':_[_0x518691(0xb3)][_0x518691(0xdb)],'data':{'unitID':this['_unitID'],'userID':this[_0x518691(0x136)]['getMemberID']()}},this[_0x518691(0x122)]);}[_0x2eb377(0xc2)](){var _0x296c4e=_0x2eb377;this[_0x296c4e(0x110)]===_0x296c4e(0x11b)&&(this[_0x296c4e(0xdc)][_0x296c4e(0xb4)](_0x296c4e(0xbc)),this[_0x296c4e(0x136)][_0x296c4e(0xf1)]({'eventID':_[_0x296c4e(0xb3)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x296c4e(0x122)]));}[_0x2eb377(0x14a)](){var _0x17592b=_0x2eb377;this[_0x17592b(0x110)]===_0x17592b(0x16b)&&(this['_status$']['next']('following'),this[_0x17592b(0x9e)]());}[_0x2eb377(0x103)](){var _0x4d80df=_0x2eb377;this[_0x4d80df(0x110)]===_0x4d80df(0x11c)&&this['_stopFollowing']();}[_0x2eb377(0x121)](_0x3dce03){var _0xfd289=_0x2eb377;const {presenter:_0x3a999a}=_0x3dce03[_0xfd289(0xa0)],_0x47ed21=this[_0xfd289(0x136)][_0xfd289(0x119)]();this['_presenter']=_0x3a999a,_0x3a999a===_0x47ed21?(this[_0xfd289(0x108)](),this['_startPresenting']()):this[_0xfd289(0x110)]!==_0xfd289(0x16b)&&(this['_stopPresenting'](),this[_0xfd289(0x9e)]());}[_0x2eb377(0xea)](){var _0x5bae9c=_0x2eb377;const _0x5defb0={'eventID':_[_0x5bae9c(0xb3)][_0x5bae9c(0xd1)]};this[_0x5bae9c(0x136)][_0x5bae9c(0xf1)](_0x5defb0,this[_0x5bae9c(0x122)]);}[_0x2eb377(0xbd)](){var _0x567634=_0x2eb377;this[_0x567634(0x159)]=null,this[_0x567634(0x110)]!==_0x567634(0x11b)&&this[_0x567634(0xf6)]();}[_0x2eb377(0xad)](_0x22f502){var _0x3c65f6=_0x2eb377;if(this[_0x3c65f6(0x110)]===_0x3c65f6(0x11c)&&this[_0x3c65f6(0x159)]===_0x22f502[_0x3c65f6(0xa0)][_0x3c65f6(0xde)]){const _0x39b5e5=_[_0x3c65f6(0xaa)](_0x22f502[_0x3c65f6(0xa0)])[_0x3c65f6(0xa9)]['reverse']()['find'](_0x2c9d26=>_0x2c9d26['id']===C[_0x3c65f6(0xb0)]['id']);if(_0x39b5e5){const _0x3636bd=_0x39b5e5['params'][_0x3c65f6(0x127)],_0x3a528c=_0x39b5e5[_0x3c65f6(0x168)][_0x3c65f6(0xaf)]['id'];setTimeout(()=>{var _0x479b32=_0x3c65f6;this[_0x479b32(0xc4)][_0x479b32(0x129)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x3636bd,'subUnitId':_0x3a528c},{'fromCollab':!0x0});});}}}[_0x2eb377(0x109)](){var _0x512596=_0x2eb377;this[_0x512596(0xdc)][_0x512596(0xb4)]('presenting');const _0x7a8359=new Map(),_0xef0e83=this[_0x512596(0xbe)]=new o['DisposableCollection']();_0xef0e83[_0x512596(0xfe)](o['toDisposable'](()=>{var _0x4617ab=_0x512596;_0x7a8359['forEach'](_0x27c4c1=>_0x27c4c1['complete']()),_0x7a8359[_0x4617ab(0xa3)]();})),_0xef0e83[_0x512596(0xfe)](this[_0x512596(0xc4)][_0x512596(0x8b)](_0x2ec3a7=>{var _0x293784=_0x512596,_0x8b52cc;if(_0x2ec3a7['type']!==o['CommandType'][_0x293784(0x14d)]||!this[_0x293784(0xb9)]['shouldShareOperation'](_0x2ec3a7['id']))return;const {id:_0x510c04}=_0x2ec3a7;let _0x98d4f;_0x7a8359['has'](_0x510c04)?_0x98d4f=_0x7a8359[_0x293784(0xfc)](_0x510c04):(_0x98d4f=new L[(_0x293784(0x8d))](),_0x7a8359[_0x293784(0xa6)](_0x510c04,_0x98d4f),_0x98d4f[_0x293784(0x9b)](b[_0x293784(0xff)]((_0x8b52cc=this[_0x293784(0x14f)][_0x293784(0x13e)](z))!=null?_0x8b52cc:Z,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x293784(0x13c)](_0x80ccdb=>{var _0x3cc639=_0x293784;this[_0x3cc639(0x136)][_0x3cc639(0xf1)]({'eventID':_[_0x3cc639(0xb3)][_0x3cc639(0x148)],'data':{'unitID':this[_0x3cc639(0x122)],'operations':{[_0x80ccdb['id']]:{'id':_0x80ccdb['id'],'params':JSON[_0x3cc639(0xe8)](_0x80ccdb[_0x3cc639(0x168)])}}}},this[_0x3cc639(0x122)]);})),_0x98d4f[_0x293784(0xb4)](_0x2ec3a7);})),this['_liveShareService'][_0x512596(0xd6)](this[_0x512596(0x122)])[_0x512596(0xc6)](_0x1ca9d0=>this['_collabSession'][_0x512596(0xf1)]({'eventID':_[_0x512596(0xb3)][_0x512596(0x148)],'data':{'unitID':this['_unitID'],'operations':{[_0x1ca9d0['id']]:{'id':_0x1ca9d0['id'],'params':JSON[_0x512596(0xe8)](_0x1ca9d0[_0x512596(0x168)])}}}},this[_0x512596(0x122)]));}[_0x2eb377(0xa8)](){var _0x56d189=_0x2eb377,_0x584412;this[_0x56d189(0xdc)]['next']('idle'),(_0x584412=this[_0x56d189(0xbe)])==null||_0x584412[_0x56d189(0xf2)](),this[_0x56d189(0xbe)]=null;}['_startFollowing'](){var _0x3aa05f=_0x2eb377,_0x4dd184;(_0x4dd184=this[_0x3aa05f(0xbe)])==null||_0x4dd184['dispose'](),this[_0x3aa05f(0xdc)][_0x3aa05f(0xb4)]('following');}['_beIdle'](){var _0x12611f=_0x2eb377,_0x34840f;this[_0x12611f(0xdc)][_0x12611f(0xb4)](_0x12611f(0xbc)),(_0x34840f=this[_0x12611f(0xbe)])==null||_0x34840f['dispose'](),this[_0x12611f(0xbe)]=null;}['_stopFollowing'](){var _0xf2360e=_0x2eb377,_0x7ece91;this[_0xf2360e(0xdc)][_0xf2360e(0xb4)](_0xf2360e(0x16b)),(_0x7ece91=this[_0xf2360e(0xbe)])==null||_0x7ece91[_0xf2360e(0xf2)]();}[_0x2eb377(0x15c)](_0x2bda41){var _0x48effc=_0x2eb377;if([_0x48effc(0x11b),'not-following','offline'][_0x48effc(0xe1)](this[_0x48effc(0x110)])||!_0x2bda41[_0x48effc(0xa0)]['presenter']||_0x2bda41[_0x48effc(0xa0)][_0x48effc(0x97)]===this[_0x48effc(0x136)]['getMemberID']())return;this[_0x48effc(0x110)]===_0x48effc(0xbc)&&this['_startFollowing']();const _0x42f965=_0x2bda41[_0x48effc(0xa0)]['operations'];Object[_0x48effc(0x16c)](_0x42f965)[_0x48effc(0xc6)](_0x3b3a1e=>{var _0x2fcdb7=_0x48effc;this[_0x2fcdb7(0xc4)][_0x2fcdb7(0x129)](_0x3b3a1e['id'],_0x3b3a1e[_0x2fcdb7(0x168)]?JSON['parse'](_0x3b3a1e[_0x2fcdb7(0x168)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x5b70f4=_0x2eb377,_0x131197;this[_0x5b70f4(0xdc)][_0x5b70f4(0xb4)]('offline'),(_0x131197=this[_0x5b70f4(0xbe)])==null||_0x131197['dispose']();}['_handleOnline'](){var _0x12a2ea=_0x2eb377;this[_0x12a2ea(0xdc)][_0x12a2ea(0xb4)](_0x12a2ea(0xbc)),this['_fetchOperations']();}},exports[_0x2eb377(0x16a)]=R([S(0x2,o[_0x2eb377(0xc0)]),S(0x3,o[_0x2eb377(0xbf)](E)),S(0x4,o[_0x2eb377(0x101)])],exports[_0x2eb377(0x16a)]);function _0xefd6(_0x5271fe,_0x21d981){var _0x202cc4=_0x202c();return _0xefd6=function(_0xefd625,_0x391610){_0xefd625=_0xefd625-0x89;var _0x458d75=_0x202cc4[_0xefd625];return _0x458d75;},_0xefd6(_0x5271fe,_0x21d981);}function A(){var _0x5e02d2=_0x2eb377;const _0x3b5efa=p[_0x5e02d2(0xe4)](exports['LiveShareController']),_0xb8ed7a=p[_0x5e02d2(0xe4)](o[_0x5e02d2(0x130)]),_0x14da4a=p[_0x5e02d2(0xcb)](()=>_0xb8ed7a[_0x5e02d2(0x113)](o[_0x5e02d2(0xf5)][_0x5e02d2(0xd7)]),void 0x0,!0x1,[]),[_0x24d578,_0x225212]=f['useState'](null),[_0x4ba400,_0x576ca7]=f[_0x5e02d2(0x11f)](h[_0x5e02d2(0x13f)]),_0x149b15=f[_0x5e02d2(0xe7)](null);return f[_0x5e02d2(0x15e)](()=>(_0x14da4a&&_0x3b5efa[_0x5e02d2(0x165)](_0x14da4a[_0x5e02d2(0x150)]())['then'](_0x5b504f=>{var _0x380f62=_0x5e02d2;_0x225212(_0x5b504f),_0x149b15[_0x380f62(0x10f)]=_0x5b504f[_0x380f62(0xf7)][_0x380f62(0x13c)](_0x32a2f2=>{_0x576ca7(_0x32a2f2);});}),()=>{var _0x1c78b7=_0x5e02d2,_0x2a01c4;(_0x2a01c4=_0x149b15['current'])==null||_0x2a01c4['unsubscribe'](),_0x149b15[_0x1c78b7(0x10f)]=null;}),[_0x14da4a,_0x3b5efa]),_0x24d578?l[_0x5e02d2(0x100)](g[_0x5e02d2(0x104)],{'align':_0x5e02d2(0x160),'disabled':_0x4ba400===h[_0x5e02d2(0xe6)],'className':_0x5e02d2(0xd8),'overlay':l[_0x5e02d2(0x100)](J,{'status':_0x4ba400,'coordinator':_0x24d578}),'children':l['jsx'](_0x5e02d2(0x140),{'className':g[_0x5e02d2(0x155)](_0x5e02d2(0x13d),{'univer-cursor-not-allowed':_0x4ba400===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4ba400!==h['OFFLINE']}),'type':'button','children':l[_0x5e02d2(0x100)](P,{'className':_0x5e02d2(0xdd)})})}):null;}function J(_0x90daa9){var _0x30353f=_0x2eb377;const {status:_0x16a002,coordinator:_0x366203}=_0x90daa9;switch(_0x16a002){case h['IDLE']:return l['jsx'](K,{'coordinator':_0x366203});case h[_0x30353f(0x146)]:return l[_0x30353f(0x100)](Q,{'coordinator':_0x366203});case h[_0x30353f(0xd5)]:return l[_0x30353f(0x100)](X,{'coordinator':_0x366203});case h[_0x30353f(0xe6)]:return l[_0x30353f(0x100)](te,{});case h['PRESENTING']:return l['jsx'](ee,{'coordinator':_0x366203});default:return null;}}function K(_0x5a3e5f){var _0x43bc64=_0x2eb377;const {coordinator:_0x27d85a}=_0x5a3e5f;return l[_0x43bc64(0x10a)](l[_0x43bc64(0xe9)],{'children':[l[_0x43bc64(0x100)](_0x43bc64(0xfb),{'className':_0x43bc64(0xc9),'children':_0x43bc64(0xcd)}),l[_0x43bc64(0x100)](g['Button'],{'size':_0x43bc64(0xca),'type':'default','onClick':()=>_0x27d85a[_0x43bc64(0x114)](),'children':_0x43bc64(0x9a)})]});}function Q(_0x4c9dfb){var _0x316f4e=_0x2eb377;const {coordinator:_0x562f3c}=_0x4c9dfb;return l[_0x316f4e(0x10a)](l['Fragment'],{'children':[l[_0x316f4e(0x100)](_0x316f4e(0xfb),{'className':_0x316f4e(0xc9),'children':_0x316f4e(0x139)}),l[_0x316f4e(0x100)](g[_0x316f4e(0xf8)],{'size':_0x316f4e(0xca),'type':_0x316f4e(0x95),'onClick':()=>_0x562f3c[_0x316f4e(0x103)](),'children':'Stop\x20following'})]});}function X(_0x5e1804){var _0x34f3cc=_0x2eb377;const {coordinator:_0x1ee00a}=_0x5e1804;return l['jsxs'](l['Fragment'],{'children':[l['jsx']('div',{'className':_0x34f3cc(0xc9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x34f3cc(0x100)](g[_0x34f3cc(0xf8)],{'size':_0x34f3cc(0xca),'type':_0x34f3cc(0xa4),'onClick':()=>_0x1ee00a[_0x34f3cc(0x14a)](),'children':'Start\x20following'})]});}function ee(_0x4cfa8c){var _0x4444b5=_0x2eb377;const {coordinator:_0x305c85}=_0x4cfa8c;return l[_0x4444b5(0x10a)](l[_0x4444b5(0xe9)],{'children':[l[_0x4444b5(0x100)](_0x4444b5(0xfb),{'className':_0x4444b5(0xc9),'children':_0x4444b5(0x90)}),l[_0x4444b5(0x100)](g[_0x4444b5(0xf8)],{'size':_0x4444b5(0xca),'type':_0x4444b5(0x95),'onClick':()=>_0x305c85[_0x4444b5(0xc2)](),'children':'Stop\x20presenting'})]});}function te(){var _0x28488f=_0x2eb377;return l['jsx'](l[_0x28488f(0xe9)],{'children':_0x28488f(0x137)});}var ie=Object[_0x2eb377(0x149)],ne=(_0xb5fbbe,_0x340395,_0xccaa5f,_0x427ad0)=>{var _0x37449a=_0x2eb377;for(var _0x526af7=_0x427ad0>0x1?void 0x0:_0x427ad0?ie(_0x340395,_0xccaa5f):_0x340395,_0x4b9651=_0xb5fbbe[_0x37449a(0x15d)]-0x1,_0x9a211;_0x4b9651>=0x0;_0x4b9651--)(_0x9a211=_0xb5fbbe[_0x4b9651])&&(_0x526af7=_0x9a211(_0x526af7)||_0x526af7);return _0x526af7;},N=(_0x153bbd,_0x63a6a)=>(_0x39069a,_0x8c2eb3)=>_0x63a6a(_0x39069a,_0x8c2eb3,_0x153bbd);exports[_0x2eb377(0xb2)]=class extends o['Disposable']{constructor(_0x3917d7,_0x4225d4){var _0x1e43c6=_0x2eb377;super(),this[_0x1e43c6(0x167)]=_0x3917d7,this[_0x1e43c6(0x10c)]=_0x4225d4,this[_0x1e43c6(0xf4)]();}[_0x2eb377(0xf4)](){var _0x1224e4=_0x2eb377;this['disposeWithMe'](this[_0x1224e4(0x10c)]['registerComponent'](p['BuiltInUIPart'][_0x1224e4(0x118)],()=>p['connectInjector'](A,this['_injector'])));}},exports['DesktopLiveShareController']=ne([N(0x0,o[_0x2eb377(0xbf)](o['Injector'])),N(0x1,p['IUIPartsService'])],exports[_0x2eb377(0xb2)]);var re=Object['defineProperty'],se=Object[_0x2eb377(0x149)],oe=(_0x14a810,_0x1758d7,_0x571345)=>_0x1758d7 in _0x14a810?re(_0x14a810,_0x1758d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x571345}):_0x14a810[_0x1758d7]=_0x571345,ae=(_0x393c48,_0x154544,_0x9b9a41,_0x24e660)=>{var _0x729cd1=_0x2eb377;for(var _0x21a00b=_0x24e660>0x1?void 0x0:_0x24e660?se(_0x154544,_0x9b9a41):_0x154544,_0x4c0616=_0x393c48[_0x729cd1(0x15d)]-0x1,_0x4d211f;_0x4c0616>=0x0;_0x4c0616--)(_0x4d211f=_0x393c48[_0x4c0616])&&(_0x21a00b=_0x4d211f(_0x21a00b)||_0x21a00b);return _0x21a00b;},w=(_0x2d06cc,_0x5eebef)=>(_0x2433cb,_0x8e9ee1)=>_0x5eebef(_0x2433cb,_0x8e9ee1,_0x2d06cc),T=(_0x217056,_0x486dd6,_0x4bb4ac)=>oe(_0x217056,typeof _0x486dd6!=_0x2eb377(0x135)?_0x486dd6+'':_0x486dd6,_0x4bb4ac);const le=_0x2eb377(0x115);exports[_0x2eb377(0x8a)]=class extends o[_0x2eb377(0x14e)]{constructor(_0x18214e=x,_0x258ed3,_0x36439c){var _0x5048e8=_0x2eb377;super(),this[_0x5048e8(0x166)]=_0x18214e,this[_0x5048e8(0x167)]=_0x258ed3,this[_0x5048e8(0x14f)]=_0x36439c;const {..._0x2e89f1}=o[_0x5048e8(0xda)]({},x,this[_0x5048e8(0x166)]);this[_0x5048e8(0x14f)][_0x5048e8(0x8e)]($,_0x2e89f1);}[_0x2eb377(0x145)](){var _0x3e7565=_0x2eb377;o['registerDependencies'](this[_0x3e7565(0x167)],o['mergeOverrideWithDependencies']([[E],[exports[_0x3e7565(0x9c)]],[O],[exports['DesktopLiveShareController']]],this[_0x3e7565(0x166)][_0x3e7565(0xa5)])),o[_0x3e7565(0x92)](this[_0x3e7565(0x167)],[[O]]);}[_0x2eb377(0x8c)](){var _0x1ee89c=_0x2eb377;o['touchDependencies'](this['_injector'],[[exports[_0x1ee89c(0xb2)]]]);}},T(exports[_0x2eb377(0x8a)],_0x2eb377(0x102),o[_0x2eb377(0xf5)][_0x2eb377(0xce)]),T(exports[_0x2eb377(0x8a)],'pluginName',le),exports[_0x2eb377(0x8a)]=ae([o[_0x2eb377(0xc7)](m['UniverCollaborationClientPlugin']),w(0x1,o['Inject'](o[_0x2eb377(0x106)])),w(0x2,o[_0x2eb377(0xc0)])],exports[_0x2eb377(0x8a)]),exports[_0x2eb377(0xf9)]=A,exports[_0x2eb377(0x107)]=E,exports['LiveShareStatus']=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x207d01=_0x2885;(function(_0x5af9a0,_0x131f66){var _0x54c8d5=_0x2885,_0x12a1e1=_0x5af9a0();while(!![]){try{var _0x3de0dc=parseInt(_0x54c8d5(0x152))/0x1*(parseInt(_0x54c8d5(0x1a0))/0x2)+parseInt(_0x54c8d5(0x15d))/0x3*(-parseInt(_0x54c8d5(0x162))/0x4)+parseInt(_0x54c8d5(0x13d))/0x5*(parseInt(_0x54c8d5(0x142))/0x6)+parseInt(_0x54c8d5(0x13b))/0x7+parseInt(_0x54c8d5(0x128))/0x8*(parseInt(_0x54c8d5(0x113))/0x9)+-parseInt(_0x54c8d5(0x124))/0xa+parseInt(_0x54c8d5(0x140))/0xb*(-parseInt(_0x54c8d5(0x190))/0xc);if(_0x3de0dc===_0x131f66)break;else _0x12a1e1['push'](_0x12a1e1['shift']());}catch(_0x7ec704){_0x12a1e1['push'](_0x12a1e1['shift']());}}}(_0x560a,0x2aa5f));var K=Object[_0x207d01(0x177)],q=(_0x57cdfc,_0x595f15,_0xd478c2)=>_0x595f15 in _0x57cdfc?K(_0x57cdfc,_0x595f15,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd478c2}):_0x57cdfc[_0x595f15]=_0xd478c2,d=(_0x4354fc,_0x48cead,_0x1807c0)=>q(_0x4354fc,typeof _0x48cead!='symbol'?_0x48cead+'':_0x48cead,_0x1807c0);import{CollaborationSessionService as _0x377ac8,SessionStatus as _0x54c231,UniverCollaborationClientPlugin as _0x54dd28}from'@univerjs-pro/collaboration-client';function _0x560a(){var _0x14fad3=['_handleOperation','replace','tryStartPresenting','PRESENTING','colorChannel1','executeCommand','parse','LIVESHARE_OPERATION','_unitID','_entities','status$','presenter','add','getLiveShareCoordinator','complete','2987289JdudgL','icon','registerSharedOperation','UNIVER_SHEET','_config','offline','onRendered','requireSession','get','presenting','_commandDisposable','_collabSession','_handleNewChangeSets','getMemberID','length','startFollowing','_stopFollowing','977600fUyZaE','Start','registerComponent','override','8nnwUgc','propertyIsEnumerable','LIVESHARE_FETCH_OPERATIONS','subscribe','extend','_reporters','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','set','SAME_OPERATION_SHARE_INTERVAL','event$','univer-size-4','div','0\x200\x2017\x2017','registerInitialStateReporter','_handleOffline','not-following','IDLE','url(#$1','toString','1898323zXOaqf','OPERATION','25FhnTcp','pipe','type','7579YVOIYL','shouldShareOperation','339846UeARYs','assign','fill','data','getOwnPropertySymbols','defIds','idSuffix','sessionStatus$','getValue','defs','svg','dispose$','use','_collabSessionService','Stop\x20presenting','_commandService','150071SjVKaV','_status$','substring','getCurrentTypeOfUnit$','has','then','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','getInitialStates','current','NOT_FOLLOWING','getUnitId','74511FBOXpm','tag','path','getTypeOfUnitAdded$','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','48tXAYOP','onCommandExecuted','map','_univerInstanceService','stopPresenting','reverse','_sharedOperations','entries','_startLiveShareCoordinator','forEach','params','sheet','prototype','none','Start\x20following','getTypeOfUnitDisposed$','unitId','_stopPresenting','small','button','You\x27re\x20not\x20following\x20the\x20presenter','defineProperty','text','OFFLINE','_handleTerminate','hasOwnProperty','_injector','LiveShareSingle','_handleOnline','stopFollowing','_configService','_uiPartsService','asObservable','ONLINE','pluginName','setConfig','FOLLOWING','string','xlink:href','You\x27re\x20presenting\x20the\x20document','symbol','next','_presenter','_init','delete','_mountLiveShare','10728rKXcHM','_status','call','_fetchOperations','memberID','Present\x20this\x20document','_startFollowing','onStarting','LIVESHARE_TERMINATE','send','mask','attrs','className','getOwnPropertyDescriptor','You\x27are\x20offline.','NEW_CHANGESETS','4PQYaAQ','_startPresenting','live-share-single','idle','disposeWithMe','LIVESHARE_REQUEST_HOST','random','_liveShareService','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','HEADER_MENU','init','currentColor','concat','default','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','following','stringify','univerjs-icon\x20univerjs-icon-','unsubscribe','_beIdle','_handleNewHost','from','dispose'];_0x560a=function(){return _0x14fad3;};return _0x560a();}import{Disposable as _0x1c6940,toDisposable as _0x53f9f0,Inject as _0x281dac,IUniverInstanceService as _0x504d26,Injector as _0x5a7d1d,IConfigService as _0x52bac7,ICommandService as _0x2ff777,RxDisposable as _0x406dce,UniverInstanceType as _0x12715f,DisposableCollection as _0x4823c6,CommandType as _0xdc827f,DependentOn as _0x118ca8,Plugin as _0x5b7aaa,merge as _0x3bbb1b,registerDependencies as _0x423443,mergeOverrideWithDependencies as _0x1e50b2,touchDependencies as _0x1b7180}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xfe62cd,InsertSheetMutation as _0x2ad839}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x8f7974,SetScrollOperation as _0x4764a5}from'@univerjs/sheets-ui';import{useDependency as _0x581b20,useObservable as _0x51302c,IUIPartsService as _0x28242f,BuiltInUIPart as _0x45308d,connectInjector as _0x206a01}from'@univerjs/ui';import{jsx as _0x51728a,jsxs as _0x4b1eaa,Fragment as _0x2592d8}from'react/jsx-runtime';import{Dropdown as _0x2bc781,clsx as _0xdf0eb9,Button as _0x1d8d6b}from'@univerjs/design';import{forwardRef as _0x2dff80,useRef as _0x52a50a,createElement as _0x4b8033,useState as _0x212cd5,useEffect as _0x3bf18b}from'react';import{CollaborationEvent as _0x2874ba,parseProtocolChangeset as _0x39d01c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x579859,Subject as _0x536e14}from'rxjs';import{takeUntil as _0x185606,throttleTime as _0x8f77fe}from'rxjs/operators';const Oe='live-share.config',T={};class x extends _0x1c6940{constructor(){var _0x369e17=_0x207d01;super(...arguments),d(this,_0x369e17(0x168),new Set()),d(this,_0x369e17(0x12d),new Set());}['registerSharedOperation'](_0x4f6e95){var _0x4bdda0=_0x207d01;return this[_0x4bdda0(0x168)][_0x4bdda0(0x110)](_0x4f6e95),_0x53f9f0(()=>this[_0x4bdda0(0x168)][_0x4bdda0(0x18e)](_0x4f6e95));}[_0x207d01(0x135)](_0x4d0b84){var _0x3376f7=_0x207d01;return this['_reporters'][_0x3376f7(0x110)](_0x4d0b84),_0x53f9f0(()=>this[_0x3376f7(0x12d)][_0x3376f7(0x18e)](_0x4d0b84));}[_0x207d01(0x141)](_0x3aab4e){var _0x1d39d6=_0x207d01;return this['_sharedOperations'][_0x1d39d6(0x156)](_0x3aab4e);}['getInitialStates'](_0xcef08a){var _0x322df1=_0x207d01;return Array[_0x322df1(0x1b5)](this[_0x322df1(0x12d)])['map'](_0x4c4574=>_0x4c4574(_0xcef08a));}}var Ee=Object[_0x207d01(0x19d)],Ne=(_0x10374d,_0x4b7ca8,_0x47d27,_0x31a858)=>{for(var _0x5d8dc6=_0x31a858>0x1?void 0x0:_0x31a858?Ee(_0x4b7ca8,_0x47d27):_0x4b7ca8,_0x1fbd1d=_0x10374d['length']-0x1,_0x399734;_0x1fbd1d>=0x0;_0x1fbd1d--)(_0x399734=_0x10374d[_0x1fbd1d])&&(_0x5d8dc6=_0x399734(_0x5d8dc6)||_0x5d8dc6);return _0x5d8dc6;},we=(_0x3ffd41,_0x1d83b1)=>(_0x55c1db,_0x36737d)=>_0x1d83b1(_0x55c1db,_0x36737d,_0x3ffd41);let m=class extends _0x1c6940{constructor(_0x5e627e){var _0x2a890f=_0x207d01;super(),this['_liveShareService']=_0x5e627e,this[_0x2a890f(0x18d)]();}[_0x207d01(0x18d)](){[_0x8f7974['id'],_0x4764a5['id'],_0xfe62cd['id']]['forEach'](_0x25c5a4=>{var _0x30399a=_0x2885;this['disposeWithMe'](this[_0x30399a(0x1a7)][_0x30399a(0x115)](_0x25c5a4));});}};m=Ne([we(0x0,_0x281dac(x))],m);var c=function(){var _0x42ffd8=_0x207d01;return c=Object[_0x42ffd8(0x143)]||function(_0x38ede4){var _0x4f74ae=_0x42ffd8;for(var _0x52c840,_0x27fad5=0x1,_0x2b7bfa=arguments[_0x4f74ae(0x121)];_0x27fad5<_0x2b7bfa;_0x27fad5++){_0x52c840=arguments[_0x27fad5];for(var _0x494761 in _0x52c840)Object['prototype']['hasOwnProperty'][_0x4f74ae(0x192)](_0x52c840,_0x494761)&&(_0x38ede4[_0x494761]=_0x52c840[_0x494761]);}return _0x38ede4;},c['apply'](this,arguments);},Ce=function(_0x203ab4,_0x1a5ef7){var _0x10da4e=_0x207d01,_0x2f54d8={};for(var _0x433a9c in _0x203ab4)Object[_0x10da4e(0x16e)][_0x10da4e(0x17b)]['call'](_0x203ab4,_0x433a9c)&&_0x1a5ef7['indexOf'](_0x433a9c)<0x0&&(_0x2f54d8[_0x433a9c]=_0x203ab4[_0x433a9c]);if(_0x203ab4!=null&&typeof Object[_0x10da4e(0x146)]=='function'){for(var _0x28ad01=0x0,_0x433a9c=Object[_0x10da4e(0x146)](_0x203ab4);_0x28ad01<_0x433a9c[_0x10da4e(0x121)];_0x28ad01++)_0x1a5ef7['indexOf'](_0x433a9c[_0x28ad01])<0x0&&Object[_0x10da4e(0x16e)][_0x10da4e(0x129)]['call'](_0x203ab4,_0x433a9c[_0x28ad01])&&(_0x2f54d8[_0x433a9c[_0x28ad01]]=_0x203ab4[_0x433a9c[_0x28ad01]]);}return _0x2f54d8;},W=_0x2dff80(function(_0x2b458a,_0x372b4b){var _0x371342=_0x207d01,_0x5ee0ed=_0x2b458a[_0x371342(0x114)],_0x3cc3ff=_0x2b458a['id'],_0x8eaeb2=_0x2b458a[_0x371342(0x19c)],_0x298b1d=_0x2b458a[_0x371342(0x12c)],_0x160d59=Ce(_0x2b458a,[_0x371342(0x114),'id','className',_0x371342(0x12c)]),_0x1be46b=_0x371342(0x1b1)['concat'](_0x3cc3ff,'\x20')[_0x371342(0x1ac)](_0x8eaeb2||'')['trim'](),_0x5570ff=_0x52a50a('_'['concat'](xe()));return Y(_0x5ee0ed,''[_0x371342(0x1ac)](_0x3cc3ff),{'defIds':_0x5ee0ed['defIds'],'idSuffix':_0x5570ff[_0x371342(0x15a)]},c({'ref':_0x372b4b,'className':_0x1be46b},_0x160d59),_0x298b1d);});function Y(_0x48fc0c,_0x1ad019,_0x200d5e,_0x2e7137,_0x2a5705){var _0x53eeb8=_0x207d01;return _0x4b8033(_0x48fc0c['tag'],c(c({'key':_0x1ad019},De(_0x48fc0c,_0x200d5e,_0x2a5705)),_0x2e7137),(Le(_0x48fc0c,_0x200d5e)['children']||[])[_0x53eeb8(0x164)](function(_0x56c6a9,_0x27a34d){var _0x1c8477=_0x53eeb8;return Y(_0x56c6a9,''[_0x1c8477(0x1ac)](_0x1ad019,'-')['concat'](_0x48fc0c[_0x1c8477(0x15e)],'-')[_0x1c8477(0x1ac)](_0x27a34d),_0x200d5e,void 0x0,_0x2a5705);}));}function De(_0x234a85,_0x1489ba,_0x433c07){var _0x1e54cc=_0x207d01,_0x3eca4d=c({},_0x234a85['attrs']);_0x433c07!=null&&_0x433c07['colorChannel1']&&_0x3eca4d[_0x1e54cc(0x144)]===_0x1e54cc(0x108)&&(_0x3eca4d[_0x1e54cc(0x144)]=_0x433c07[_0x1e54cc(0x108)]),_0x234a85[_0x1e54cc(0x15e)]===_0x1e54cc(0x19a)&&_0x3eca4d['id']&&(_0x3eca4d['id']=_0x3eca4d['id']+_0x1489ba[_0x1e54cc(0x148)]),Object[_0x1e54cc(0x169)](_0x3eca4d)[_0x1e54cc(0x16b)](function(_0x1692fe){var _0x3c86ed=_0x1e54cc,_0x1adaf1=_0x1692fe[0x0],_0x51597c=_0x1692fe[0x1];_0x1adaf1===_0x3c86ed(0x19a)&&typeof _0x51597c==_0x3c86ed(0x187)&&(_0x3eca4d[_0x1adaf1]=_0x51597c['replace'](/url\(#(.*)\)/,'url(#$1'[_0x3c86ed(0x1ac)](_0x1489ba[_0x3c86ed(0x148)],')')));});var _0x10ac1f=_0x1489ba[_0x1e54cc(0x147)];return!_0x10ac1f||_0x10ac1f[_0x1e54cc(0x121)]===0x0||(_0x234a85[_0x1e54cc(0x15e)]===_0x1e54cc(0x14e)&&_0x3eca4d['xlink:href']&&(_0x3eca4d[_0x1e54cc(0x188)]=_0x3eca4d[_0x1e54cc(0x188)]+_0x1489ba[_0x1e54cc(0x148)]),Object[_0x1e54cc(0x169)](_0x3eca4d)[_0x1e54cc(0x16b)](function(_0x5b021e){var _0x139d09=_0x1e54cc,_0x31584d=_0x5b021e[0x0],_0x51787b=_0x5b021e[0x1];typeof _0x51787b==_0x139d09(0x187)&&(_0x3eca4d[_0x31584d]=_0x51787b[_0x139d09(0x1b8)](/url\(#(.*)\)/,_0x139d09(0x139)['concat'](_0x1489ba[_0x139d09(0x148)],')')));})),_0x3eca4d;}function Le(_0x5e8670,_0x3c337a){var _0x120e96=_0x207d01,_0x3fa3a4,_0x29a9fa=_0x3c337a[_0x120e96(0x147)];return!_0x29a9fa||_0x29a9fa[_0x120e96(0x121)]===0x0?_0x5e8670:_0x5e8670[_0x120e96(0x15e)]===_0x120e96(0x14b)&&(!((_0x3fa3a4=_0x5e8670['children'])===null||_0x3fa3a4===void 0x0)&&_0x3fa3a4[_0x120e96(0x121)])?c(c({},_0x5e8670),{'children':_0x5e8670['children'][_0x120e96(0x164)](function(_0xf84f69){var _0x35e171=_0x120e96;return typeof _0xf84f69[_0x35e171(0x19b)]['id']=='string'&&_0x29a9fa&&_0x29a9fa['indexOf'](_0xf84f69[_0x35e171(0x19b)]['id'])>-0x1?c(c({},_0xf84f69),{'attrs':c(c({},_0xf84f69[_0x35e171(0x19b)]),{'id':_0xf84f69[_0x35e171(0x19b)]['id']+_0x3c337a[_0x35e171(0x148)]})}):_0xf84f69;})}):_0x5e8670;}function xe(){var _0x15a0ad=_0x207d01;return Math[_0x15a0ad(0x1a6)]()[_0x15a0ad(0x13a)](0x24)[_0x15a0ad(0x154)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x207d01(0x14c),'attrs':{'fill':_0x207d01(0x16f),'viewBox':_0x207d01(0x134),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x207d01(0x1a8)}},{'tag':_0x207d01(0x15f),'attrs':{'fill':_0x207d01(0x1ab),'d':_0x207d01(0x158),'fillRule':'evenodd','clipRule':'evenodd'}}]},z=_0x2dff80(function(_0x53785d,_0x45ec63){var _0x36b7b7=_0x207d01;return _0x4b8033(W,Object[_0x36b7b7(0x143)]({},_0x53785d,{'id':_0x36b7b7(0x1a2),'ref':_0x45ec63,'icon':ye}));});z['displayName']=_0x207d01(0x17d);var Re=Object['getOwnPropertyDescriptor'],B=(_0xe4c3b9,_0x2e4a46,_0x29c1de,_0x10f465)=>{var _0x460a2f=_0x207d01;for(var _0x5af255=_0x10f465>0x1?void 0x0:_0x10f465?Re(_0x2e4a46,_0x29c1de):_0x2e4a46,_0x212b11=_0xe4c3b9[_0x460a2f(0x121)]-0x1,_0x2150a6;_0x212b11>=0x0;_0x212b11--)(_0x2150a6=_0xe4c3b9[_0x212b11])&&(_0x5af255=_0x2150a6(_0x5af255)||_0x5af255);return _0x5af255;},f=(_0x6d6024,_0xcd34f3)=>(_0x43795c,_0x406670)=>_0xcd34f3(_0x43795c,_0x406670,_0x6d6024);let I=class extends _0x406dce{constructor(_0x4d57e6,_0xa45481,_0x3b9909){var _0x929c07=_0x207d01;super(),d(this,_0x929c07(0x10d),new Map()),(this[_0x929c07(0x165)]=_0x4d57e6,this['_injector']=_0xa45481,this['_collabSessionService']=_0x3b9909,this[_0x929c07(0x18d)]());}async[_0x207d01(0x111)](_0x1fa94e){var _0x22a7c6=_0x207d01;return this['_entities'][_0x22a7c6(0x156)](_0x1fa94e)||await this['_startLiveShareCoordinator'](_0x1fa94e),this[_0x22a7c6(0x10d)][_0x22a7c6(0x11b)](_0x1fa94e);}[_0x207d01(0x18d)](){var _0x216525=_0x207d01;this['_univerInstanceService'][_0x216525(0x160)](_0x12715f['UNIVER_SHEET'])[_0x216525(0x13e)](_0x185606(this['dispose$']))[_0x216525(0x12b)](async _0x580b2e=>{var _0x2092fa=_0x216525;const _0x1fdf59=_0x580b2e[_0x2092fa(0x15c)]();this[_0x2092fa(0x10d)]['has'](_0x1fdf59)||this[_0x2092fa(0x16a)](_0x1fdf59);}),this['_univerInstanceService'][_0x216525(0x171)](_0x12715f[_0x216525(0x116)])['pipe'](_0x185606(this[_0x216525(0x14d)]))[_0x216525(0x12b)](_0x533f19=>{var _0x2ad356=_0x216525;const _0x4f3381=_0x533f19[_0x2ad356(0x15c)](),_0x22b5c8=this[_0x2ad356(0x10d)][_0x2ad356(0x11b)](_0x4f3381);_0x22b5c8==null||_0x22b5c8[_0x2ad356(0x1b6)]();});}async[_0x207d01(0x16a)](_0x5c3689){var _0x2e6124=_0x207d01;const _0x495c5d=await this[_0x2e6124(0x14f)][_0x2e6124(0x11a)](_0x5c3689),_0x5f2d65=this[_0x2e6124(0x17c)]['createInstance'](C,_0x5c3689,_0x495c5d);return _0x5f2d65[_0x2e6124(0x1aa)](),this[_0x2e6124(0x10d)]['set'](_0x5c3689,_0x5f2d65),_0x5f2d65;}};I=B([f(0x0,_0x504d26),f(0x1,_0x281dac(_0x5a7d1d)),f(0x2,_0x281dac(_0x377ac8))],I);var h=(_0x4b7304=>(_0x4b7304[_0x207d01(0x179)]=_0x207d01(0x118),_0x4b7304['IDLE']=_0x207d01(0x1a3),_0x4b7304[_0x207d01(0x186)]=_0x207d01(0x1af),_0x4b7304[_0x207d01(0x15b)]=_0x207d01(0x137),_0x4b7304[_0x207d01(0x107)]=_0x207d01(0x11c),_0x4b7304))(h||{});const Pe=_0x207d01(0x130),Ae=0xc8;let C=class extends _0x406dce{constructor(_0x59e6e3,_0x28ada2,_0x2b6015,_0x2bae05,_0x54fa6b){var _0x15023c=_0x207d01;super(),d(this,'_status$',new _0x579859('idle')),d(this,_0x15023c(0x10e),this[_0x15023c(0x153)][_0x15023c(0x182)]()),d(this,'_init',!0x1),d(this,_0x15023c(0x11d),null),d(this,_0x15023c(0x18c),null),(this[_0x15023c(0x10c)]=_0x59e6e3,this[_0x15023c(0x11e)]=_0x28ada2,this['_configService']=_0x2b6015,this[_0x15023c(0x1a7)]=_0x2bae05,this[_0x15023c(0x151)]=_0x54fa6b);}get[_0x207d01(0x191)](){var _0x111d0b=_0x207d01;return this[_0x111d0b(0x153)][_0x111d0b(0x14a)]();}[_0x207d01(0x1b6)](){var _0x398a4c=_0x207d01,_0x33da0b;(_0x33da0b=this[_0x398a4c(0x11d)])==null||_0x33da0b[_0x398a4c(0x1b6)](),this[_0x398a4c(0x153)]['next'](_0x398a4c(0x1a3)),this['_status$'][_0x398a4c(0x112)]();}[_0x207d01(0x1aa)](){var _0x977e0e=_0x207d01;this[_0x977e0e(0x18d)]||(this[_0x977e0e(0x18d)]=!0x0,this[_0x977e0e(0x11e)][_0x977e0e(0x149)][_0x977e0e(0x13e)](_0x185606(this['dispose$']))['subscribe'](_0x4f1a0e=>{var _0x27c968=_0x977e0e;switch(_0x4f1a0e){case _0x54c231[_0x27c968(0x179)]:this[_0x27c968(0x136)]();break;case _0x54c231[_0x27c968(0x183)]:this[_0x27c968(0x17e)]();break;}}),this['_collabSession'][_0x977e0e(0x131)][_0x977e0e(0x13e)](_0x185606(this[_0x977e0e(0x14d)]))[_0x977e0e(0x12b)](_0x2f7d1b=>{var _0x12f100=_0x977e0e;const {eventID:_0x50280c}=_0x2f7d1b;switch(_0x50280c){case _0x2874ba['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x2f7d1b);break;case _0x2874ba[_0x12f100(0x10b)]:this[_0x12f100(0x1b7)](_0x2f7d1b);break;case _0x2874ba[_0x12f100(0x198)]:this['_handleTerminate']();break;case _0x2874ba[_0x12f100(0x19f)]:this['_handleNewChangeSets'](_0x2f7d1b);break;}}));}[_0x207d01(0x106)](){var _0x49b3d3=_0x207d01;this['_collabSession'][_0x49b3d3(0x199)]({'eventID':_0x2874ba[_0x49b3d3(0x1a5)],'data':{'unitID':this['_unitID'],'userID':this[_0x49b3d3(0x11e)]['getMemberID']()}},this[_0x49b3d3(0x10c)]);}[_0x207d01(0x166)](){var _0x4b8af5=_0x207d01;this[_0x4b8af5(0x191)]===_0x4b8af5(0x11c)&&(this[_0x4b8af5(0x153)]['next'](_0x4b8af5(0x1a3)),this[_0x4b8af5(0x11e)][_0x4b8af5(0x199)]({'eventID':_0x2874ba[_0x4b8af5(0x198)],'data':{'unitID':this[_0x4b8af5(0x10c)]}},this[_0x4b8af5(0x10c)]));}[_0x207d01(0x122)](){var _0x423df5=_0x207d01;this[_0x423df5(0x191)]===_0x423df5(0x137)&&(this[_0x423df5(0x153)][_0x423df5(0x18b)](_0x423df5(0x1af)),this['_startFollowing']());}[_0x207d01(0x17f)](){var _0x2256b3=_0x207d01;this['_status']===_0x2256b3(0x1af)&&this[_0x2256b3(0x123)]();}[_0x207d01(0x1b4)](_0x584a36){var _0x5a1bba=_0x207d01;const {presenter:_0xcb17f}=_0x584a36[_0x5a1bba(0x145)],_0xf5450=this[_0x5a1bba(0x11e)][_0x5a1bba(0x120)]();this[_0x5a1bba(0x18c)]=_0xcb17f,_0xcb17f===_0xf5450?(this[_0x5a1bba(0x123)](),this[_0x5a1bba(0x1a1)]()):this[_0x5a1bba(0x191)]!==_0x5a1bba(0x137)&&(this[_0x5a1bba(0x173)](),this[_0x5a1bba(0x196)]());}[_0x207d01(0x193)](){var _0x5cb291=_0x207d01;const _0x47eb1f={'eventID':_0x2874ba[_0x5cb291(0x12a)]};this[_0x5cb291(0x11e)][_0x5cb291(0x199)](_0x47eb1f,this[_0x5cb291(0x10c)]);}[_0x207d01(0x17a)](){var _0x1b142d=_0x207d01;this[_0x1b142d(0x18c)]=null,this['_status']!=='presenting'&&this[_0x1b142d(0x1b3)]();}[_0x207d01(0x11f)](_0x1dffe3){var _0x290b53=_0x207d01;if(this[_0x290b53(0x191)]===_0x290b53(0x1af)&&this[_0x290b53(0x18c)]===_0x1dffe3[_0x290b53(0x145)][_0x290b53(0x194)]){const _0x2f2192=_0x39d01c(_0x1dffe3[_0x290b53(0x145)])['mutations'][_0x290b53(0x167)]()['find'](_0x1ac551=>_0x1ac551['id']===_0x2ad839['id']);if(_0x2f2192){const _0x4223c0=_0x2f2192['params'][_0x290b53(0x172)],_0x301c23=_0x2f2192[_0x290b53(0x16c)][_0x290b53(0x16d)]['id'];setTimeout(()=>{var _0x5cb588=_0x290b53;this[_0x5cb588(0x151)][_0x5cb588(0x109)](_0xfe62cd['id'],{'unitId':_0x4223c0,'subUnitId':_0x301c23},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x30f21a=_0x207d01;this[_0x30f21a(0x153)][_0x30f21a(0x18b)]('presenting');const _0xb11e3e=new Map(),_0xbb878b=this['_commandDisposable']=new _0x4823c6();_0xbb878b[_0x30f21a(0x110)](_0x53f9f0(()=>{var _0x210ead=_0x30f21a;_0xb11e3e[_0x210ead(0x16b)](_0x4c4ac2=>_0x4c4ac2['complete']()),_0xb11e3e['clear']();})),_0xbb878b[_0x30f21a(0x110)](this[_0x30f21a(0x151)][_0x30f21a(0x163)](_0x276c01=>{var _0x33dc74=_0x30f21a,_0x31b345;if(_0x276c01[_0x33dc74(0x13f)]!==_0xdc827f[_0x33dc74(0x13c)]||!this[_0x33dc74(0x1a7)][_0x33dc74(0x141)](_0x276c01['id']))return;const {id:_0x24b3c4}=_0x276c01;let _0x29564d;_0xb11e3e[_0x33dc74(0x156)](_0x24b3c4)?_0x29564d=_0xb11e3e[_0x33dc74(0x11b)](_0x24b3c4):(_0x29564d=new _0x536e14(),_0xb11e3e[_0x33dc74(0x12f)](_0x24b3c4,_0x29564d),_0x29564d[_0x33dc74(0x13e)](_0x8f77fe((_0x31b345=this[_0x33dc74(0x180)]['getConfig'](Pe))!=null?_0x31b345:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x33dc74(0x12b)](_0x2f5f05=>{var _0x4646b4=_0x33dc74;this[_0x4646b4(0x11e)]['send']({'eventID':_0x2874ba[_0x4646b4(0x10b)],'data':{'unitID':this['_unitID'],'operations':{[_0x2f5f05['id']]:{'id':_0x2f5f05['id'],'params':JSON[_0x4646b4(0x1b0)](_0x2f5f05['params'])}}}},this[_0x4646b4(0x10c)]);})),_0x29564d[_0x33dc74(0x18b)](_0x276c01);})),this[_0x30f21a(0x1a7)][_0x30f21a(0x159)](this['_unitID'])[_0x30f21a(0x16b)](_0x1142a5=>this[_0x30f21a(0x11e)]['send']({'eventID':_0x2874ba[_0x30f21a(0x10b)],'data':{'unitID':this['_unitID'],'operations':{[_0x1142a5['id']]:{'id':_0x1142a5['id'],'params':JSON[_0x30f21a(0x1b0)](_0x1142a5['params'])}}}},this[_0x30f21a(0x10c)]));}[_0x207d01(0x173)](){var _0x23d239=_0x207d01,_0x17233c;this[_0x23d239(0x153)][_0x23d239(0x18b)](_0x23d239(0x1a3)),(_0x17233c=this['_commandDisposable'])==null||_0x17233c[_0x23d239(0x1b6)](),this['_commandDisposable']=null;}[_0x207d01(0x196)](){var _0x1d6b1c=_0x207d01,_0x574c6b;(_0x574c6b=this[_0x1d6b1c(0x11d)])==null||_0x574c6b['dispose'](),this[_0x1d6b1c(0x153)][_0x1d6b1c(0x18b)](_0x1d6b1c(0x1af));}['_beIdle'](){var _0x5304a6=_0x207d01,_0x397551;this[_0x5304a6(0x153)][_0x5304a6(0x18b)](_0x5304a6(0x1a3)),(_0x397551=this[_0x5304a6(0x11d)])==null||_0x397551[_0x5304a6(0x1b6)](),this[_0x5304a6(0x11d)]=null;}[_0x207d01(0x123)](){var _0x105861=_0x207d01,_0x334bc1;this[_0x105861(0x153)][_0x105861(0x18b)](_0x105861(0x137)),(_0x334bc1=this['_commandDisposable'])==null||_0x334bc1['dispose']();}[_0x207d01(0x1b7)](_0x3a3f3a){var _0x21fd84=_0x207d01;if([_0x21fd84(0x11c),_0x21fd84(0x137),'offline']['includes'](this['_status'])||!_0x3a3f3a[_0x21fd84(0x145)][_0x21fd84(0x10f)]||_0x3a3f3a[_0x21fd84(0x145)][_0x21fd84(0x10f)]===this[_0x21fd84(0x11e)][_0x21fd84(0x120)]())return;this[_0x21fd84(0x191)]===_0x21fd84(0x1a3)&&this[_0x21fd84(0x196)]();const _0x516ac4=_0x3a3f3a[_0x21fd84(0x145)]['operations'];Object['values'](_0x516ac4)[_0x21fd84(0x16b)](_0x3ae53c=>{var _0xc38e2c=_0x21fd84;this[_0xc38e2c(0x151)][_0xc38e2c(0x109)](_0x3ae53c['id'],_0x3ae53c['params']?JSON[_0xc38e2c(0x10a)](_0x3ae53c[_0xc38e2c(0x16c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x2673a0=_0x207d01,_0x53846b;this['_status$'][_0x2673a0(0x18b)](_0x2673a0(0x118)),(_0x53846b=this[_0x2673a0(0x11d)])==null||_0x53846b[_0x2673a0(0x1b6)]();}[_0x207d01(0x17e)](){var _0x122c9b=_0x207d01;this[_0x122c9b(0x153)][_0x122c9b(0x18b)](_0x122c9b(0x1a3)),this[_0x122c9b(0x193)]();}};function _0x2885(_0x47dc54,_0x15b32c){var _0x560abe=_0x560a();return _0x2885=function(_0x288521,_0x22e698){_0x288521=_0x288521-0x106;var _0x2985f0=_0x560abe[_0x288521];return _0x2985f0;},_0x2885(_0x47dc54,_0x15b32c);}C=B([f(0x2,_0x52bac7),f(0x3,_0x281dac(x)),f(0x4,_0x2ff777)],C);function Te(){var _0x1cef88=_0x207d01;const _0x3b1344=_0x581b20(I),_0x208191=_0x581b20(_0x504d26),_0x108d75=_0x51302c(()=>_0x208191[_0x1cef88(0x155)](_0x12715f[_0x1cef88(0x116)]),void 0x0,!0x1,[]),[_0x126d05,_0x21bddf]=_0x212cd5(null),[_0x5808d0,_0x2a7bcb]=_0x212cd5(h[_0x1cef88(0x138)]),_0x3c4a2e=_0x52a50a(null);return _0x3bf18b(()=>(_0x108d75&&_0x3b1344[_0x1cef88(0x111)](_0x108d75[_0x1cef88(0x15c)]())[_0x1cef88(0x157)](_0x2b020a=>{var _0x18df7e=_0x1cef88;_0x21bddf(_0x2b020a),_0x3c4a2e[_0x18df7e(0x15a)]=_0x2b020a[_0x18df7e(0x10e)][_0x18df7e(0x12b)](_0x2200e6=>{_0x2a7bcb(_0x2200e6);});}),()=>{var _0x15ca3=_0x1cef88,_0x26bcd7;(_0x26bcd7=_0x3c4a2e[_0x15ca3(0x15a)])==null||_0x26bcd7[_0x15ca3(0x1b2)](),_0x3c4a2e[_0x15ca3(0x15a)]=null;}),[_0x108d75,_0x3b1344]),_0x126d05?_0x51728a(_0x2bc781,{'align':'end','disabled':_0x5808d0===h[_0x1cef88(0x179)],'className':_0x1cef88(0x1ae),'overlay':_0x51728a($e,{'status':_0x5808d0,'coordinator':_0x126d05}),'children':_0x51728a(_0x1cef88(0x175),{'className':_0xdf0eb9(_0x1cef88(0x161),{'univer-cursor-not-allowed':_0x5808d0===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5808d0!==h[_0x1cef88(0x179)]}),'type':_0x1cef88(0x175),'children':_0x51728a(z,{'className':_0x1cef88(0x132)})})}):null;}function $e(_0x134a9b){var _0xe7529f=_0x207d01;const {status:_0x1116e2,coordinator:_0x4e9ca3}=_0x134a9b;switch(_0x1116e2){case h[_0xe7529f(0x138)]:return _0x51728a(Fe,{'coordinator':_0x4e9ca3});case h[_0xe7529f(0x186)]:return _0x51728a(He,{'coordinator':_0x4e9ca3});case h[_0xe7529f(0x15b)]:return _0x51728a(je,{'coordinator':_0x4e9ca3});case h['OFFLINE']:return _0x51728a(Ve,{});case h[_0xe7529f(0x107)]:return _0x51728a(Ue,{'coordinator':_0x4e9ca3});default:return null;}}function Fe(_0x4a2d2f){var _0x260a11=_0x207d01;const {coordinator:_0x165aac}=_0x4a2d2f;return _0x4b1eaa(_0x2592d8,{'children':[_0x51728a('div',{'className':_0x260a11(0x12e),'children':_0x260a11(0x195)}),_0x51728a(_0x1d8d6b,{'size':_0x260a11(0x174),'type':_0x260a11(0x1ad),'onClick':()=>_0x165aac['tryStartPresenting'](),'children':_0x260a11(0x125)})]});}function He(_0x1661b3){var _0xeb6594=_0x207d01;const {coordinator:_0xd602d}=_0x1661b3;return _0x4b1eaa(_0x2592d8,{'children':[_0x51728a('div',{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x51728a(_0x1d8d6b,{'size':_0xeb6594(0x174),'type':_0xeb6594(0x1ad),'onClick':()=>_0xd602d['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x48a884){var _0x3885de=_0x207d01;const {coordinator:_0x162af2}=_0x48a884;return _0x4b1eaa(_0x2592d8,{'children':[_0x51728a(_0x3885de(0x133),{'className':_0x3885de(0x12e),'children':_0x3885de(0x176)}),_0x51728a(_0x1d8d6b,{'size':_0x3885de(0x174),'type':_0x3885de(0x178),'onClick':()=>_0x162af2[_0x3885de(0x122)](),'children':_0x3885de(0x170)})]});}function Ue(_0x46575b){var _0x5f5cde=_0x207d01;const {coordinator:_0x2cc39d}=_0x46575b;return _0x4b1eaa(_0x2592d8,{'children':[_0x51728a(_0x5f5cde(0x133),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5f5cde(0x189)}),_0x51728a(_0x1d8d6b,{'size':_0x5f5cde(0x174),'type':'default','onClick':()=>_0x2cc39d[_0x5f5cde(0x166)](),'children':_0x5f5cde(0x150)})]});}function Ve(){var _0x204e16=_0x207d01;return _0x51728a(_0x2592d8,{'children':_0x204e16(0x19e)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x36030c,_0x1f3eca,_0x524d9f,_0x81ad48)=>{var _0x23e863=_0x207d01;for(var _0x440704=_0x81ad48>0x1?void 0x0:_0x81ad48?Me(_0x1f3eca,_0x524d9f):_0x1f3eca,_0x3b7732=_0x36030c[_0x23e863(0x121)]-0x1,_0x1ae799;_0x3b7732>=0x0;_0x3b7732--)(_0x1ae799=_0x36030c[_0x3b7732])&&(_0x440704=_0x1ae799(_0x440704)||_0x440704);return _0x440704;},$=(_0x1e588d,_0x3e4dca)=>(_0x2bf115,_0x2b6cd9)=>_0x3e4dca(_0x2bf115,_0x2b6cd9,_0x1e588d);let b=class extends _0x1c6940{constructor(_0x57c8bf,_0x5ed59a){var _0x337c66=_0x207d01;super(),this[_0x337c66(0x17c)]=_0x57c8bf,this[_0x337c66(0x181)]=_0x5ed59a,this[_0x337c66(0x18f)]();}[_0x207d01(0x18f)](){var _0x33a1c3=_0x207d01;this[_0x33a1c3(0x1a4)](this['_uiPartsService'][_0x33a1c3(0x126)](_0x45308d[_0x33a1c3(0x1a9)],()=>_0x206a01(Te,this['_injector'])));}};b=ke([$(0x0,_0x281dac(_0x5a7d1d)),$(0x1,_0x28242f)],b);var Ge=Object[_0x207d01(0x177)],We=Object[_0x207d01(0x19d)],Ye=(_0x4a253c,_0x2ff02a,_0x3a877a)=>_0x2ff02a in _0x4a253c?Ge(_0x4a253c,_0x2ff02a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a877a}):_0x4a253c[_0x2ff02a]=_0x3a877a,ze=(_0x115b39,_0xf964ac,_0x54b7ab,_0x5588df)=>{var _0x554e28=_0x207d01;for(var _0x15ee2b=_0x5588df>0x1?void 0x0:_0x5588df?We(_0xf964ac,_0x54b7ab):_0xf964ac,_0xe49fec=_0x115b39[_0x554e28(0x121)]-0x1,_0x30671b;_0xe49fec>=0x0;_0xe49fec--)(_0x30671b=_0x115b39[_0xe49fec])&&(_0x15ee2b=_0x30671b(_0x15ee2b)||_0x15ee2b);return _0x15ee2b;},F=(_0x1afc58,_0x5a155e)=>(_0x1bbd6a,_0x2f2522)=>_0x5a155e(_0x1bbd6a,_0x2f2522,_0x1afc58),Z=(_0x262902,_0x43ed1b,_0x51f78)=>Ye(_0x262902,typeof _0x43ed1b!=_0x207d01(0x18a)?_0x43ed1b+'':_0x43ed1b,_0x51f78);const Be='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x5b7aaa{constructor(_0x1a6ad2=T,_0x4a506d,_0xf87843){var _0x4fe3b1=_0x207d01;super(),this['_config']=_0x1a6ad2,this[_0x4fe3b1(0x17c)]=_0x4a506d,this[_0x4fe3b1(0x180)]=_0xf87843;const {..._0x386e85}=_0x3bbb1b({},T,this['_config']);this[_0x4fe3b1(0x180)][_0x4fe3b1(0x185)](Oe,_0x386e85);}[_0x207d01(0x197)](){var _0x34ce2d=_0x207d01;_0x423443(this[_0x34ce2d(0x17c)],_0x1e50b2([[x],[I],[m],[b]],this[_0x34ce2d(0x117)][_0x34ce2d(0x127)])),_0x1b7180(this[_0x34ce2d(0x17c)],[[m]]);}[_0x207d01(0x119)](){var _0x43b2a5=_0x207d01;_0x1b7180(this[_0x43b2a5(0x17c)],[[b]]);}};Z(O,_0x207d01(0x13f),_0x12715f['UNIVER_UNKNOWN']),Z(O,_0x207d01(0x184),Be),O=ze([_0x118ca8(_0x54dd28),F(0x1,_0x281dac(_0x5a7d1d)),F(0x2,_0x52bac7)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,x as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x5dce64=_0x263d;(function(_0x500160,_0x4f6217){var _0x2365d5=_0x263d,_0x576da9=_0x500160();while(!![]){try{var _0x34f1c3=-parseInt(_0x2365d5(0xdc))/0x1*(parseInt(_0x2365d5(0xd2))/0x2)+parseInt(_0x2365d5(0x132))/0x3*(-parseInt(_0x2365d5(0x146))/0x4)+-parseInt(_0x2365d5(0x11e))/0x5+parseInt(_0x2365d5(0xe8))/0x6*(parseInt(_0x2365d5(0x178))/0x7)+-parseInt(_0x2365d5(0x114))/0x8*(-parseInt(_0x2365d5(0x13f))/0x9)+-parseInt(_0x2365d5(0xe7))/0xa*(parseInt(_0x2365d5(0xd6))/0xb)+-parseInt(_0x2365d5(0x143))/0xc*(-parseInt(_0x2365d5(0xd1))/0xd);if(_0x34f1c3===_0x4f6217)break;else _0x576da9['push'](_0x576da9['shift']());}catch(_0x5ef013){_0x576da9['push'](_0x576da9['shift']());}}}(_0xd2ab,0x6140a));var K=Object[_0x5dce64(0x16d)],q=(_0x3c2ced,_0x296e25,_0x27f6fd)=>_0x296e25 in _0x3c2ced?K(_0x3c2ced,_0x296e25,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27f6fd}):_0x3c2ced[_0x296e25]=_0x27f6fd,d=(_0x20f353,_0x56253e,_0x5b1213)=>q(_0x20f353,typeof _0x56253e!=_0x5dce64(0x13c)?_0x56253e+'':_0x56253e,_0x5b1213);import{CollaborationSessionService as _0x2d1170,SessionStatus as _0x595b5b,UniverCollaborationClientPlugin as _0x2f441b}from'@univerjs-pro/collaboration-client';import{Disposable as _0xf636d9,toDisposable as _0x478a26,Inject as _0x1e5587,IUniverInstanceService as _0x4922bf,Injector as _0x28bf4d,IConfigService as _0x27ce9b,ICommandService as _0x14f85f,RxDisposable as _0x1c35ba,UniverInstanceType as _0x313139,DisposableCollection as _0x50ede0,CommandType as _0x482c22,DependentOn as _0x41fdd9,Plugin as _0x324dd1,merge as _0x29ff0b,registerDependencies as _0x1f437d,mergeOverrideWithDependencies as _0x5a83dd,touchDependencies as _0x45274e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xd54817,InsertSheetMutation as _0x357d16}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x4e7a8f,SetScrollOperation as _0x1f2fa2}from'@univerjs/sheets-ui';import{useDependency as _0xcf9528,useObservable as _0x4e1cd1,IUIPartsService as _0x17675f,BuiltInUIPart as _0x5ee4e0,connectInjector as _0x45002c}from'@univerjs/ui';import{jsx as _0x58fdcd,jsxs as _0xa80b7a,Fragment as _0x29f11a}from'react/jsx-runtime';import{Dropdown as _0x139a0f,clsx as _0x5492e8,Button as _0x45a343}from'@univerjs/design';import{forwardRef as _0x4b4bf8,useRef as _0x4b44aa,createElement as _0xc363bd,useState as _0xc0591e,useEffect as _0x19ab33}from'react';import{CollaborationEvent as _0x4fb8a9,parseProtocolChangeset as _0x47ee4c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2c3578,Subject as _0x35bc20}from'rxjs';import{takeUntil as _0x484593,throttleTime as _0x23e993}from'rxjs/operators';const Oe='live-share.config',T={};class x extends _0xf636d9{constructor(){var _0xda24cb=_0x5dce64;super(...arguments),d(this,_0xda24cb(0x14f),new Set()),d(this,'_reporters',new Set());}[_0x5dce64(0x130)](_0x41dc73){var _0x4e0ecc=_0x5dce64;return this['_sharedOperations'][_0x4e0ecc(0x116)](_0x41dc73),_0x478a26(()=>this[_0x4e0ecc(0x14f)]['delete'](_0x41dc73));}[_0x5dce64(0x108)](_0x4bfb37){var _0x41b0f8=_0x5dce64;return this['_reporters'][_0x41b0f8(0x116)](_0x4bfb37),_0x478a26(()=>this[_0x41b0f8(0x11f)]['delete'](_0x4bfb37));}[_0x5dce64(0x10c)](_0x278740){var _0x30a031=_0x5dce64;return this[_0x30a031(0x14f)][_0x30a031(0x177)](_0x278740);}[_0x5dce64(0xd8)](_0xab5cbb){var _0x23c851=_0x5dce64;return Array['from'](this[_0x23c851(0x11f)])[_0x23c851(0x12e)](_0x2d768f=>_0x2d768f(_0xab5cbb));}}var Ee=Object[_0x5dce64(0xf0)],Ce=(_0x4aa9fc,_0x514987,_0x215715,_0x6b5e86)=>{var _0x2de871=_0x5dce64;for(var _0x153644=_0x6b5e86>0x1?void 0x0:_0x6b5e86?Ee(_0x514987,_0x215715):_0x514987,_0x5dd672=_0x4aa9fc[_0x2de871(0x12b)]-0x1,_0x201543;_0x5dd672>=0x0;_0x5dd672--)(_0x201543=_0x4aa9fc[_0x5dd672])&&(_0x153644=_0x201543(_0x153644)||_0x153644);return _0x153644;},Ne=(_0x22303a,_0x585915)=>(_0x40d3f5,_0x498161)=>_0x585915(_0x40d3f5,_0x498161,_0x22303a);let m=class extends _0xf636d9{constructor(_0x36f5ad){var _0x454aa3=_0x5dce64;super(),this[_0x454aa3(0x123)]=_0x36f5ad,this[_0x454aa3(0x14d)]();}[_0x5dce64(0x14d)](){var _0x5e3f87=_0x5dce64;[_0x4e7a8f['id'],_0x1f2fa2['id'],_0xd54817['id']][_0x5e3f87(0x13a)](_0x342c0a=>{var _0x40c7b9=_0x5e3f87;this[_0x40c7b9(0x104)](this[_0x40c7b9(0x123)][_0x40c7b9(0x130)](_0x342c0a));});}};m=Ce([Ne(0x0,_0x1e5587(x))],m);var c=function(){var _0xb8e4a1=_0x5dce64;return c=Object['assign']||function(_0x612ab5){var _0x25c7f0=_0x263d;for(var _0x469a95,_0x1b6e75=0x1,_0x524873=arguments['length'];_0x1b6e75<_0x524873;_0x1b6e75++){_0x469a95=arguments[_0x1b6e75];for(var _0x48436d in _0x469a95)Object[_0x25c7f0(0xd0)][_0x25c7f0(0x11d)][_0x25c7f0(0x139)](_0x469a95,_0x48436d)&&(_0x612ab5[_0x48436d]=_0x469a95[_0x48436d]);}return _0x612ab5;},c[_0xb8e4a1(0x10d)](this,arguments);},we=function(_0x31ba7e,_0x2515b2){var _0x3bf20e=_0x5dce64,_0x3c8ce6={};for(var _0x3143a3 in _0x31ba7e)Object[_0x3bf20e(0xd0)][_0x3bf20e(0x11d)][_0x3bf20e(0x139)](_0x31ba7e,_0x3143a3)&&_0x2515b2[_0x3bf20e(0x137)](_0x3143a3)<0x0&&(_0x3c8ce6[_0x3143a3]=_0x31ba7e[_0x3143a3]);if(_0x31ba7e!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x482a89=0x0,_0x3143a3=Object['getOwnPropertySymbols'](_0x31ba7e);_0x482a89<_0x3143a3[_0x3bf20e(0x12b)];_0x482a89++)_0x2515b2['indexOf'](_0x3143a3[_0x482a89])<0x0&&Object[_0x3bf20e(0xd0)][_0x3bf20e(0xfa)][_0x3bf20e(0x139)](_0x31ba7e,_0x3143a3[_0x482a89])&&(_0x3c8ce6[_0x3143a3[_0x482a89]]=_0x31ba7e[_0x3143a3[_0x482a89]]);}return _0x3c8ce6;},W=_0x4b4bf8(function(_0x3b3182,_0x180703){var _0x25d64e=_0x5dce64,_0x10f439=_0x3b3182[_0x25d64e(0x167)],_0x54e226=_0x3b3182['id'],_0x2f1144=_0x3b3182[_0x25d64e(0x14e)],_0x2040db=_0x3b3182[_0x25d64e(0xdd)],_0x773fbf=we(_0x3b3182,[_0x25d64e(0x167),'id',_0x25d64e(0x14e),_0x25d64e(0xdd)]),_0x2a958f=_0x25d64e(0xce)[_0x25d64e(0x126)](_0x54e226,'\x20')[_0x25d64e(0x126)](_0x2f1144||'')[_0x25d64e(0x128)](),_0x2846a5=_0x4b44aa('_'[_0x25d64e(0x126)](xe()));return Y(_0x10f439,''['concat'](_0x54e226),{'defIds':_0x10f439['defIds'],'idSuffix':_0x2846a5[_0x25d64e(0x150)]},c({'ref':_0x180703,'className':_0x2a958f},_0x773fbf),_0x2040db);});function Y(_0x5ab48b,_0x593801,_0x107d36,_0x43c0a6,_0x313fd9){var _0x324f97=_0x5dce64;return _0xc363bd(_0x5ab48b[_0x324f97(0xfd)],c(c({'key':_0x593801},De(_0x5ab48b,_0x107d36,_0x313fd9)),_0x43c0a6),(Le(_0x5ab48b,_0x107d36)[_0x324f97(0xfe)]||[])[_0x324f97(0x12e)](function(_0x1515df,_0x22e33c){var _0x18b494=_0x324f97;return Y(_0x1515df,''[_0x18b494(0x126)](_0x593801,'-')['concat'](_0x5ab48b[_0x18b494(0xfd)],'-')[_0x18b494(0x126)](_0x22e33c),_0x107d36,void 0x0,_0x313fd9);}));}function _0xd2ab(){var _0x24a94d=['_handleTerminate','Stop\x20following','_handleOnline','univerjs-icon\x20univerjs-icon-','_config','prototype','1599hgvvfC','3460bAdlDn','entries','svg','LIVESHARE_NEW_HOST','1111WeNhsz','_mountLiveShare','getInitialStates','event$','clear','small','101ctMXBV','extend','_collabSessionService','UNIVER_LIVE_SHARE_PLUGIN','type','UNIVER_UNKNOWN','stopPresenting','string','requireSession','getLiveShareCoordinator','use','68110ljHHnG','732516WsQhLr','registerComponent','_startFollowing','colorChannel1','default','idle','memberID','defs','getOwnPropertyDescriptor','OPERATION','OFFLINE','mutations','displayName','_presenter','HEADER_MENU','presenter','You\x27re\x20presenting\x20the\x20document','div','propertyIsEnumerable','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','complete','tag','children','subscribe','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','stopFollowing','getMemberID','_univerInstanceService','disposeWithMe','_handleNewChangeSets','asObservable','_commandService','registerInitialStateReporter','live-share-single','_status$','pipe','shouldShareOperation','apply','_entities','You\x27re\x20following\x20the\x20presenter','getTypeOfUnitDisposed$','attrs','data','_commandDisposable','16nwyaAU','path','add','onStarting','xlink:href','createInstance','fill','init','getUnitId','hasOwnProperty','3970920dmSAUS','_reporters','onCommandExecuted','ONLINE','tryStartPresenting','_liveShareService','_stopPresenting','offline','concat','not-following','trim','idSuffix','unsubscribe','length','You\x27are\x20offline.','getConfig','map','toString','registerSharedOperation','reverse','393YRwupI','assign','NEW_CHANGESETS','_startPresenting','end','indexOf','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','call','forEach','Stop\x20presenting','symbol','_status','SAME_OPERATION_SHARE_INTERVAL','1169118lmpMem','LiveShareSingle','getValue','FOLLOWING','198804FOWJGd','0\x200\x2016\x2016','You\x27re\x20not\x20following\x20the\x20presenter','22312eOsmSG','LIVESHARE_REQUEST_HOST','values','send','operations','onRendered','substring','_init','className','_sharedOperations','current','stringify','_uiPartsService','setConfig','dispose$','_collabSession','_unitID','random','next','button','text','UNIVER_SHEET','PRESENTING','set','univer-size-4','params','1em','url(#$1','LIVESHARE_OPERATION','_handleOffline','_handleOperation','_configService','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','icon','get','dispose','replace','mask','_beIdle','defineProperty','IDLE','following','NOT_FOLLOWING','_startLiveShareCoordinator','_stopFollowing','Present\x20this\x20document','presenting','defIds','executeCommand','has','28rOcuiZ','_injector','LIVESHARE_TERMINATE','sessionStatus$','evenodd','override','unitId','_handleNewHost','LIVESHARE_FETCH_OPERATIONS','Start','status$'];_0xd2ab=function(){return _0x24a94d;};return _0xd2ab();}function De(_0x292f27,_0x1425a0,_0x433f50){var _0x29bcc5=_0x5dce64,_0x5bffb6=c({},_0x292f27['attrs']);_0x433f50!=null&&_0x433f50[_0x29bcc5(0xeb)]&&_0x5bffb6[_0x29bcc5(0x11a)]==='colorChannel1'&&(_0x5bffb6[_0x29bcc5(0x11a)]=_0x433f50[_0x29bcc5(0xeb)]),_0x292f27['tag']===_0x29bcc5(0x16b)&&_0x5bffb6['id']&&(_0x5bffb6['id']=_0x5bffb6['id']+_0x1425a0[_0x29bcc5(0x129)]),Object[_0x29bcc5(0xd3)](_0x5bffb6)[_0x29bcc5(0x13a)](function(_0x398ac3){var _0x39372c=_0x29bcc5,_0x632e46=_0x398ac3[0x0],_0x4aa9e3=_0x398ac3[0x1];_0x632e46===_0x39372c(0x16b)&&typeof _0x4aa9e3=='string'&&(_0x5bffb6[_0x632e46]=_0x4aa9e3[_0x39372c(0x16a)](/url\(#(.*)\)/,_0x39372c(0x161)[_0x39372c(0x126)](_0x1425a0[_0x39372c(0x129)],')')));});var _0x39208f=_0x1425a0['defIds'];return!_0x39208f||_0x39208f[_0x29bcc5(0x12b)]===0x0||(_0x292f27[_0x29bcc5(0xfd)]===_0x29bcc5(0xe6)&&_0x5bffb6[_0x29bcc5(0x118)]&&(_0x5bffb6[_0x29bcc5(0x118)]=_0x5bffb6[_0x29bcc5(0x118)]+_0x1425a0[_0x29bcc5(0x129)]),Object[_0x29bcc5(0xd3)](_0x5bffb6)[_0x29bcc5(0x13a)](function(_0x8c1773){var _0x597a25=_0x29bcc5,_0x596f7f=_0x8c1773[0x0],_0xb30663=_0x8c1773[0x1];typeof _0xb30663==_0x597a25(0xe3)&&(_0x5bffb6[_0x596f7f]=_0xb30663[_0x597a25(0x16a)](/url\(#(.*)\)/,_0x597a25(0x161)[_0x597a25(0x126)](_0x1425a0[_0x597a25(0x129)],')')));})),_0x5bffb6;}function Le(_0x4d157c,_0x149ad2){var _0x2754b7=_0x5dce64,_0x2e300d,_0x31ff90=_0x149ad2[_0x2754b7(0x175)];return!_0x31ff90||_0x31ff90[_0x2754b7(0x12b)]===0x0?_0x4d157c:_0x4d157c[_0x2754b7(0xfd)]===_0x2754b7(0xef)&&(!((_0x2e300d=_0x4d157c['children'])===null||_0x2e300d===void 0x0)&&_0x2e300d['length'])?c(c({},_0x4d157c),{'children':_0x4d157c[_0x2754b7(0xfe)]['map'](function(_0x5463b0){var _0x2a1b24=_0x2754b7;return typeof _0x5463b0[_0x2a1b24(0x111)]['id']==_0x2a1b24(0xe3)&&_0x31ff90&&_0x31ff90[_0x2a1b24(0x137)](_0x5463b0[_0x2a1b24(0x111)]['id'])>-0x1?c(c({},_0x5463b0),{'attrs':c(c({},_0x5463b0[_0x2a1b24(0x111)]),{'id':_0x5463b0[_0x2a1b24(0x111)]['id']+_0x149ad2['idSuffix']})}):_0x5463b0;})}):_0x4d157c;}function xe(){var _0x3f10da=_0x5dce64;return Math[_0x3f10da(0x157)]()[_0x3f10da(0x12f)](0x24)[_0x3f10da(0x14c)](0x2,0x8);}W[_0x5dce64(0xf4)]='UniverIcon';var ye={'tag':_0x5dce64(0xd4),'attrs':{'fill':'none','viewBox':_0x5dce64(0x144),'width':_0x5dce64(0x160),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x5dce64(0xfb)}},{'tag':_0x5dce64(0x115),'attrs':{'fill':'currentColor','d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x5dce64(0x17c),'clipRule':_0x5dce64(0x17c)}}]},z=_0x4b4bf8(function(_0x8c549a,_0x180ad8){var _0x21b145=_0x5dce64;return _0xc363bd(W,Object[_0x21b145(0x133)]({},_0x8c549a,{'id':_0x21b145(0x109),'ref':_0x180ad8,'icon':ye}));});z[_0x5dce64(0xf4)]=_0x5dce64(0x140);var Re=Object[_0x5dce64(0xf0)],B=(_0x122678,_0x40ddfa,_0x5329b5,_0x5b2833)=>{var _0x1e4990=_0x5dce64;for(var _0x556fed=_0x5b2833>0x1?void 0x0:_0x5b2833?Re(_0x40ddfa,_0x5329b5):_0x40ddfa,_0x357676=_0x122678[_0x1e4990(0x12b)]-0x1,_0x2130ff;_0x357676>=0x0;_0x357676--)(_0x2130ff=_0x122678[_0x357676])&&(_0x556fed=_0x2130ff(_0x556fed)||_0x556fed);return _0x556fed;},f=(_0x31a29,_0x3689a0)=>(_0x4bc9b3,_0x3e2ee1)=>_0x3689a0(_0x4bc9b3,_0x3e2ee1,_0x31a29);let I=class extends _0x1c35ba{constructor(_0x4d2e8d,_0x22362a,_0x3e6bd6){var _0x12b34d=_0x5dce64;super(),d(this,_0x12b34d(0x10e),new Map()),(this[_0x12b34d(0x103)]=_0x4d2e8d,this[_0x12b34d(0x179)]=_0x22362a,this[_0x12b34d(0xde)]=_0x3e6bd6,this[_0x12b34d(0x14d)]());}async[_0x5dce64(0xe5)](_0x576732){var _0x238e85=_0x5dce64;return this[_0x238e85(0x10e)]['has'](_0x576732)||await this[_0x238e85(0x171)](_0x576732),this['_entities']['get'](_0x576732);}['_init'](){var _0x267b39=_0x5dce64;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x313139[_0x267b39(0x15b)])[_0x267b39(0x10b)](_0x484593(this['dispose$']))['subscribe'](async _0x1b2b1a=>{var _0x2dc490=_0x267b39;const _0x285a72=_0x1b2b1a['getUnitId']();this['_entities']['has'](_0x285a72)||this[_0x2dc490(0x171)](_0x285a72);}),this[_0x267b39(0x103)][_0x267b39(0x110)](_0x313139['UNIVER_SHEET'])['pipe'](_0x484593(this[_0x267b39(0x154)]))[_0x267b39(0xff)](_0x2b0982=>{var _0x3d7899=_0x267b39;const _0x443590=_0x2b0982['getUnitId'](),_0x1681e7=this[_0x3d7899(0x10e)][_0x3d7899(0x168)](_0x443590);_0x1681e7==null||_0x1681e7[_0x3d7899(0x169)]();});}async[_0x5dce64(0x171)](_0x4f5bc9){var _0x1b4d1c=_0x5dce64;const _0x4eddcc=await this[_0x1b4d1c(0xde)][_0x1b4d1c(0xe4)](_0x4f5bc9),_0x429e15=this['_injector'][_0x1b4d1c(0x119)](w,_0x4f5bc9,_0x4eddcc);return _0x429e15[_0x1b4d1c(0x11b)](),this[_0x1b4d1c(0x10e)][_0x1b4d1c(0x15d)](_0x4f5bc9,_0x429e15),_0x429e15;}};I=B([f(0x0,_0x4922bf),f(0x1,_0x1e5587(_0x28bf4d)),f(0x2,_0x1e5587(_0x2d1170))],I);var h=(_0x56d561=>(_0x56d561[_0x5dce64(0xf2)]=_0x5dce64(0x125),_0x56d561[_0x5dce64(0x16e)]='idle',_0x56d561[_0x5dce64(0x142)]=_0x5dce64(0x16f),_0x56d561[_0x5dce64(0x170)]=_0x5dce64(0x127),_0x56d561[_0x5dce64(0x15c)]=_0x5dce64(0x174),_0x56d561))(h||{});const Pe=_0x5dce64(0x13e),Ae=0xc8;let w=class extends _0x1c35ba{constructor(_0x5eb99a,_0x3c803d,_0x15c193,_0x4348d7,_0x26aa33){var _0xcbb084=_0x5dce64;super(),d(this,'_status$',new _0x2c3578(_0xcbb084(0xed))),d(this,_0xcbb084(0xca),this[_0xcbb084(0x10a)][_0xcbb084(0x106)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0xcbb084(0xf5),null),(this[_0xcbb084(0x156)]=_0x5eb99a,this[_0xcbb084(0x155)]=_0x3c803d,this[_0xcbb084(0x165)]=_0x15c193,this[_0xcbb084(0x123)]=_0x4348d7,this[_0xcbb084(0x107)]=_0x26aa33);}get[_0x5dce64(0x13d)](){var _0x5ea2a8=_0x5dce64;return this['_status$'][_0x5ea2a8(0x141)]();}[_0x5dce64(0x169)](){var _0x409fdd=_0x5dce64,_0x785313;(_0x785313=this['_commandDisposable'])==null||_0x785313['dispose'](),this[_0x409fdd(0x10a)][_0x409fdd(0x158)]('idle'),this['_status$'][_0x409fdd(0xfc)]();}[_0x5dce64(0x11b)](){var _0x4e0da4=_0x5dce64;this[_0x4e0da4(0x14d)]||(this[_0x4e0da4(0x14d)]=!0x0,this[_0x4e0da4(0x155)][_0x4e0da4(0x17b)][_0x4e0da4(0x10b)](_0x484593(this[_0x4e0da4(0x154)]))[_0x4e0da4(0xff)](_0x1e1427=>{var _0x233d5d=_0x4e0da4;switch(_0x1e1427){case _0x595b5b[_0x233d5d(0xf2)]:this[_0x233d5d(0x163)]();break;case _0x595b5b[_0x233d5d(0x121)]:this[_0x233d5d(0xcd)]();break;}}),this['_collabSession'][_0x4e0da4(0xd9)][_0x4e0da4(0x10b)](_0x484593(this[_0x4e0da4(0x154)]))[_0x4e0da4(0xff)](_0x42dc2c=>{var _0x1e12c6=_0x4e0da4;const {eventID:_0x5e54aa}=_0x42dc2c;switch(_0x5e54aa){case _0x4fb8a9[_0x1e12c6(0xd5)]:this[_0x1e12c6(0x17f)](_0x42dc2c);break;case _0x4fb8a9[_0x1e12c6(0x162)]:this[_0x1e12c6(0x164)](_0x42dc2c);break;case _0x4fb8a9[_0x1e12c6(0x17a)]:this[_0x1e12c6(0xcb)]();break;case _0x4fb8a9[_0x1e12c6(0x134)]:this['_handleNewChangeSets'](_0x42dc2c);break;}}));}[_0x5dce64(0x122)](){var _0x589adf=_0x5dce64;this[_0x589adf(0x155)][_0x589adf(0x149)]({'eventID':_0x4fb8a9[_0x589adf(0x147)],'data':{'unitID':this[_0x589adf(0x156)],'userID':this[_0x589adf(0x155)]['getMemberID']()}},this[_0x589adf(0x156)]);}['stopPresenting'](){var _0x5e2f55=_0x5dce64;this[_0x5e2f55(0x13d)]===_0x5e2f55(0x174)&&(this['_status$'][_0x5e2f55(0x158)](_0x5e2f55(0xed)),this['_collabSession'][_0x5e2f55(0x149)]({'eventID':_0x4fb8a9[_0x5e2f55(0x17a)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){var _0x43bdb5=_0x5dce64;this['_status']==='not-following'&&(this[_0x43bdb5(0x10a)]['next'](_0x43bdb5(0x16f)),this[_0x43bdb5(0xea)]());}[_0x5dce64(0x101)](){var _0x2bc9a9=_0x5dce64;this['_status']==='following'&&this[_0x2bc9a9(0x172)]();}[_0x5dce64(0x17f)](_0x3cbb77){var _0x2b73af=_0x5dce64;const {presenter:_0x4dfef6}=_0x3cbb77[_0x2b73af(0x112)],_0x2e8367=this[_0x2b73af(0x155)]['getMemberID']();this[_0x2b73af(0xf5)]=_0x4dfef6,_0x4dfef6===_0x2e8367?(this['_stopFollowing'](),this[_0x2b73af(0x135)]()):this[_0x2b73af(0x13d)]!==_0x2b73af(0x127)&&(this[_0x2b73af(0x124)](),this[_0x2b73af(0xea)]());}['_fetchOperations'](){var _0x3386f7=_0x5dce64;const _0x2516b7={'eventID':_0x4fb8a9[_0x3386f7(0x180)]};this[_0x3386f7(0x155)][_0x3386f7(0x149)](_0x2516b7,this['_unitID']);}[_0x5dce64(0xcb)](){var _0x203919=_0x5dce64;this[_0x203919(0xf5)]=null,this['_status']!=='presenting'&&this[_0x203919(0x16c)]();}[_0x5dce64(0x105)](_0x2294f5){var _0xf8884d=_0x5dce64;if(this[_0xf8884d(0x13d)]===_0xf8884d(0x16f)&&this['_presenter']===_0x2294f5[_0xf8884d(0x112)][_0xf8884d(0xee)]){const _0x378cb5=_0x47ee4c(_0x2294f5[_0xf8884d(0x112)])[_0xf8884d(0xf3)][_0xf8884d(0x131)]()['find'](_0x15973e=>_0x15973e['id']===_0x357d16['id']);if(_0x378cb5){const _0x535709=_0x378cb5[_0xf8884d(0x15f)][_0xf8884d(0x17e)],_0x4353f8=_0x378cb5[_0xf8884d(0x15f)]['sheet']['id'];setTimeout(()=>{var _0x879b79=_0xf8884d;this[_0x879b79(0x107)][_0x879b79(0x176)](_0xd54817['id'],{'unitId':_0x535709,'subUnitId':_0x4353f8},{'fromCollab':!0x0});});}}}[_0x5dce64(0x135)](){var _0x320ab2=_0x5dce64;this['_status$'][_0x320ab2(0x158)](_0x320ab2(0x174));const _0x356fc4=new Map(),_0x263265=this[_0x320ab2(0x113)]=new _0x50ede0();_0x263265['add'](_0x478a26(()=>{var _0x477a23=_0x320ab2;_0x356fc4[_0x477a23(0x13a)](_0x4cfdaa=>_0x4cfdaa[_0x477a23(0xfc)]()),_0x356fc4[_0x477a23(0xda)]();})),_0x263265[_0x320ab2(0x116)](this[_0x320ab2(0x107)][_0x320ab2(0x120)](_0x5f009c=>{var _0xd221a2=_0x320ab2,_0x40a60a;if(_0x5f009c[_0xd221a2(0xe0)]!==_0x482c22[_0xd221a2(0xf1)]||!this[_0xd221a2(0x123)][_0xd221a2(0x10c)](_0x5f009c['id']))return;const {id:_0x2791d6}=_0x5f009c;let _0x33c21b;_0x356fc4[_0xd221a2(0x177)](_0x2791d6)?_0x33c21b=_0x356fc4['get'](_0x2791d6):(_0x33c21b=new _0x35bc20(),_0x356fc4['set'](_0x2791d6,_0x33c21b),_0x33c21b['pipe'](_0x23e993((_0x40a60a=this[_0xd221a2(0x165)][_0xd221a2(0x12d)](Pe))!=null?_0x40a60a:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xdadd6d=>{var _0xcd2143=_0xd221a2;this[_0xcd2143(0x155)][_0xcd2143(0x149)]({'eventID':_0x4fb8a9[_0xcd2143(0x162)],'data':{'unitID':this[_0xcd2143(0x156)],'operations':{[_0xdadd6d['id']]:{'id':_0xdadd6d['id'],'params':JSON[_0xcd2143(0x151)](_0xdadd6d['params'])}}}},this['_unitID']);})),_0x33c21b[_0xd221a2(0x158)](_0x5f009c);})),this[_0x320ab2(0x123)][_0x320ab2(0xd8)](this['_unitID'])['forEach'](_0x4b3698=>this[_0x320ab2(0x155)]['send']({'eventID':_0x4fb8a9[_0x320ab2(0x162)],'data':{'unitID':this[_0x320ab2(0x156)],'operations':{[_0x4b3698['id']]:{'id':_0x4b3698['id'],'params':JSON[_0x320ab2(0x151)](_0x4b3698[_0x320ab2(0x15f)])}}}},this['_unitID']));}[_0x5dce64(0x124)](){var _0x343031=_0x5dce64,_0x365b8;this[_0x343031(0x10a)][_0x343031(0x158)](_0x343031(0xed)),(_0x365b8=this[_0x343031(0x113)])==null||_0x365b8[_0x343031(0x169)](),this[_0x343031(0x113)]=null;}[_0x5dce64(0xea)](){var _0x104a1e=_0x5dce64,_0xef00ed;(_0xef00ed=this['_commandDisposable'])==null||_0xef00ed[_0x104a1e(0x169)](),this[_0x104a1e(0x10a)][_0x104a1e(0x158)](_0x104a1e(0x16f));}[_0x5dce64(0x16c)](){var _0x4a163b=_0x5dce64,_0x16225e;this[_0x4a163b(0x10a)][_0x4a163b(0x158)](_0x4a163b(0xed)),(_0x16225e=this[_0x4a163b(0x113)])==null||_0x16225e[_0x4a163b(0x169)](),this['_commandDisposable']=null;}[_0x5dce64(0x172)](){var _0x495d66=_0x5dce64,_0x2b085f;this[_0x495d66(0x10a)][_0x495d66(0x158)](_0x495d66(0x127)),(_0x2b085f=this[_0x495d66(0x113)])==null||_0x2b085f[_0x495d66(0x169)]();}[_0x5dce64(0x164)](_0x1a9d61){var _0xa9bb13=_0x5dce64;if(['presenting',_0xa9bb13(0x127),_0xa9bb13(0x125)]['includes'](this[_0xa9bb13(0x13d)])||!_0x1a9d61[_0xa9bb13(0x112)][_0xa9bb13(0xf7)]||_0x1a9d61['data'][_0xa9bb13(0xf7)]===this[_0xa9bb13(0x155)][_0xa9bb13(0x102)]())return;this[_0xa9bb13(0x13d)]===_0xa9bb13(0xed)&&this[_0xa9bb13(0xea)]();const _0x45df9d=_0x1a9d61[_0xa9bb13(0x112)][_0xa9bb13(0x14a)];Object[_0xa9bb13(0x148)](_0x45df9d)[_0xa9bb13(0x13a)](_0x2f0ea3=>{var _0x503c22=_0xa9bb13;this[_0x503c22(0x107)][_0x503c22(0x176)](_0x2f0ea3['id'],_0x2f0ea3[_0x503c22(0x15f)]?JSON['parse'](_0x2f0ea3[_0x503c22(0x15f)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1aa416=_0x5dce64,_0x11572c;this[_0x1aa416(0x10a)][_0x1aa416(0x158)](_0x1aa416(0x125)),(_0x11572c=this[_0x1aa416(0x113)])==null||_0x11572c[_0x1aa416(0x169)]();}['_handleOnline'](){var _0x406f27=_0x5dce64;this['_status$']['next'](_0x406f27(0xed)),this['_fetchOperations']();}};w=B([f(0x2,_0x27ce9b),f(0x3,_0x1e5587(x)),f(0x4,_0x14f85f)],w);function Te(){var _0x46d56a=_0x5dce64;const _0x5cf839=_0xcf9528(I),_0x30e728=_0xcf9528(_0x4922bf),_0x383a69=_0x4e1cd1(()=>_0x30e728['getCurrentTypeOfUnit$'](_0x313139[_0x46d56a(0x15b)]),void 0x0,!0x1,[]),[_0x3a42e3,_0x4532fb]=_0xc0591e(null),[_0x13c14f,_0x2210a2]=_0xc0591e(h[_0x46d56a(0x16e)]),_0xec5b8a=_0x4b44aa(null);return _0x19ab33(()=>(_0x383a69&&_0x5cf839[_0x46d56a(0xe5)](_0x383a69[_0x46d56a(0x11c)]())['then'](_0x28bf8a=>{var _0x5c3536=_0x46d56a;_0x4532fb(_0x28bf8a),_0xec5b8a[_0x5c3536(0x150)]=_0x28bf8a[_0x5c3536(0xca)][_0x5c3536(0xff)](_0x43d67a=>{_0x2210a2(_0x43d67a);});}),()=>{var _0x20f6a8=_0x46d56a,_0x390e66;(_0x390e66=_0xec5b8a[_0x20f6a8(0x150)])==null||_0x390e66[_0x20f6a8(0x12a)](),_0xec5b8a[_0x20f6a8(0x150)]=null;}),[_0x383a69,_0x5cf839]),_0x3a42e3?_0x58fdcd(_0x139a0f,{'align':_0x46d56a(0x136),'disabled':_0x13c14f===h[_0x46d56a(0xf2)],'className':_0x46d56a(0x138),'overlay':_0x58fdcd($e,{'status':_0x13c14f,'coordinator':_0x3a42e3}),'children':_0x58fdcd(_0x46d56a(0x159),{'className':_0x5492e8(_0x46d56a(0x100),{'univer-cursor-not-allowed':_0x13c14f===h[_0x46d56a(0xf2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x13c14f!==h['OFFLINE']}),'type':_0x46d56a(0x159),'children':_0x58fdcd(z,{'className':_0x46d56a(0x15e)})})}):null;}function $e(_0x513d36){var _0x1c0f4c=_0x5dce64;const {status:_0x52d771,coordinator:_0x5c04e8}=_0x513d36;switch(_0x52d771){case h[_0x1c0f4c(0x16e)]:return _0x58fdcd(Fe,{'coordinator':_0x5c04e8});case h['FOLLOWING']:return _0x58fdcd(He,{'coordinator':_0x5c04e8});case h[_0x1c0f4c(0x170)]:return _0x58fdcd(je,{'coordinator':_0x5c04e8});case h[_0x1c0f4c(0xf2)]:return _0x58fdcd(Ve,{});case h[_0x1c0f4c(0x15c)]:return _0x58fdcd(Ue,{'coordinator':_0x5c04e8});default:return null;}}function Fe(_0x5bb3db){var _0x472c06=_0x5dce64;const {coordinator:_0x3713bd}=_0x5bb3db;return _0xa80b7a(_0x29f11a,{'children':[_0x58fdcd('div',{'className':_0x472c06(0x166),'children':_0x472c06(0x173)}),_0x58fdcd(_0x45a343,{'size':_0x472c06(0xdb),'type':_0x472c06(0xec),'onClick':()=>_0x3713bd[_0x472c06(0x122)](),'children':_0x472c06(0x181)})]});}function He(_0x25c90a){var _0x34463e=_0x5dce64;const {coordinator:_0x5c756f}=_0x25c90a;return _0xa80b7a(_0x29f11a,{'children':[_0x58fdcd(_0x34463e(0xf9),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x34463e(0x10f)}),_0x58fdcd(_0x45a343,{'size':_0x34463e(0xdb),'type':_0x34463e(0xec),'onClick':()=>_0x5c756f[_0x34463e(0x101)](),'children':_0x34463e(0xcc)})]});}function je(_0x56f503){var _0x29f4b6=_0x5dce64;const {coordinator:_0x16bbd0}=_0x56f503;return _0xa80b7a(_0x29f11a,{'children':[_0x58fdcd(_0x29f4b6(0xf9),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x29f4b6(0x145)}),_0x58fdcd(_0x45a343,{'size':_0x29f4b6(0xdb),'type':_0x29f4b6(0x15a),'onClick':()=>_0x16bbd0['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x5021df){var _0x47a777=_0x5dce64;const {coordinator:_0x544b3d}=_0x5021df;return _0xa80b7a(_0x29f11a,{'children':[_0x58fdcd(_0x47a777(0xf9),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x47a777(0xf8)}),_0x58fdcd(_0x45a343,{'size':_0x47a777(0xdb),'type':'default','onClick':()=>_0x544b3d[_0x47a777(0xe2)](),'children':_0x47a777(0x13b)})]});}function Ve(){var _0x200ecb=_0x5dce64;return _0x58fdcd(_0x29f11a,{'children':_0x200ecb(0x12c)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x779ede,_0x64b6d7,_0x220eb5,_0x30c3d6)=>{var _0x1f7858=_0x5dce64;for(var _0x4d4bb5=_0x30c3d6>0x1?void 0x0:_0x30c3d6?Me(_0x64b6d7,_0x220eb5):_0x64b6d7,_0xabc13f=_0x779ede[_0x1f7858(0x12b)]-0x1,_0x55f500;_0xabc13f>=0x0;_0xabc13f--)(_0x55f500=_0x779ede[_0xabc13f])&&(_0x4d4bb5=_0x55f500(_0x4d4bb5)||_0x4d4bb5);return _0x4d4bb5;},$=(_0x32d025,_0x135f0b)=>(_0x467331,_0x3fe50c)=>_0x135f0b(_0x467331,_0x3fe50c,_0x32d025);let b=class extends _0xf636d9{constructor(_0x1f8754,_0x378bb0){var _0x5e683d=_0x5dce64;super(),this['_injector']=_0x1f8754,this[_0x5e683d(0x152)]=_0x378bb0,this[_0x5e683d(0xd7)]();}[_0x5dce64(0xd7)](){var _0x537914=_0x5dce64;this[_0x537914(0x104)](this['_uiPartsService'][_0x537914(0xe9)](_0x5ee4e0[_0x537914(0xf6)],()=>_0x45002c(Te,this[_0x537914(0x179)])));}};b=ke([$(0x0,_0x1e5587(_0x28bf4d)),$(0x1,_0x17675f)],b);var Ge=Object['defineProperty'],We=Object[_0x5dce64(0xf0)],Ye=(_0xad9594,_0x354d55,_0x5c7c62)=>_0x354d55 in _0xad9594?Ge(_0xad9594,_0x354d55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c7c62}):_0xad9594[_0x354d55]=_0x5c7c62,ze=(_0x376a46,_0x114a36,_0x358146,_0x4a3f2c)=>{for(var _0x451ddd=_0x4a3f2c>0x1?void 0x0:_0x4a3f2c?We(_0x114a36,_0x358146):_0x114a36,_0xfea391=_0x376a46['length']-0x1,_0x13de47;_0xfea391>=0x0;_0xfea391--)(_0x13de47=_0x376a46[_0xfea391])&&(_0x451ddd=_0x13de47(_0x451ddd)||_0x451ddd);return _0x451ddd;},F=(_0x325c6c,_0x5bde02)=>(_0x483194,_0x18622e)=>_0x5bde02(_0x483194,_0x18622e,_0x325c6c),Z=(_0x12310c,_0x17b51,_0x59aa50)=>Ye(_0x12310c,typeof _0x17b51!=_0x5dce64(0x13c)?_0x17b51+'':_0x17b51,_0x59aa50);const Be=_0x5dce64(0xdf);let O=class extends _0x324dd1{constructor(_0x2bbcf7=T,_0x14ad69,_0x3be840){var _0x2ef597=_0x5dce64;super(),this['_config']=_0x2bbcf7,this[_0x2ef597(0x179)]=_0x14ad69,this[_0x2ef597(0x165)]=_0x3be840;const {..._0x293220}=_0x29ff0b({},T,this[_0x2ef597(0xcf)]);this[_0x2ef597(0x165)][_0x2ef597(0x153)](Oe,_0x293220);}[_0x5dce64(0x117)](){var _0x2b317f=_0x5dce64;_0x1f437d(this['_injector'],_0x5a83dd([[x],[I],[m],[b]],this['_config'][_0x2b317f(0x17d)])),_0x45274e(this['_injector'],[[m]]);}[_0x5dce64(0x14b)](){var _0x30aab9=_0x5dce64;_0x45274e(this[_0x30aab9(0x179)],[[b]]);}};Z(O,_0x5dce64(0xe0),_0x313139[_0x5dce64(0xe1)]),Z(O,'pluginName',Be),O=ze([_0x41fdd9(_0x2f441b),F(0x1,_0x1e5587(_0x28bf4d)),F(0x2,_0x27ce9b)],O);function _0x263d(_0x9e0ab,_0x30b673){var _0xd2abd=_0xd2ab();return _0x263d=function(_0x263d12,_0x12fbc4){_0x263d12=_0x263d12-0xca;var _0x5352af=_0xd2abd[_0x263d12];return _0x5352af;},_0x263d(_0x9e0ab,_0x30b673);}export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,x as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1ac0(){var _0x1accee=['BehaviorSubject','mask','DependentOn','getConfig','_status','reverse','react','dispose$','onRendered','Subject','default','OFFLINE','getInitialStates','564879NaNaWN','88YbDBaJ','unsubscribe','LiveShareSingle','SessionStatus','values','react/jsx-runtime','_handleOffline','string','presenting','subscribe','jsxs','UniverProLiveShare','useState','_entities','UniverSheets','sessionStatus$','onCommandExecuted','has','getTypeOfUnitDisposed$','trim','LIVESHARE_REQUEST_HOST','LIVESHARE_OPERATION','getTypeOfUnitAdded$','NOT_FOLLOWING','startFollowing','extend','idSuffix','throttleTime','use','xlink:href','React','_fetchOperations','jsx','memberID','button','_collabSession','LiveShare','0\x200\x2017\x2017','data','_mountLiveShare','shouldShareOperation','disposeWithMe','@univerjs-pro/collaboration-client','UniverUi','You\x27re\x20presenting\x20the\x20document','366756kyPMWJ','_stopPresenting','getOwnPropertyDescriptor','executeCommand','univerjs-icon\x20univerjs-icon-','16797521UBZXzB','@univerjs/sheets','UNIVER_SHEET','SAME_OPERATION_SHARE_INTERVAL','DesktopLiveShareController','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','Module','symbol','fill','prototype','not-following','function','_sharedOperations','_univerInstanceService','Start\x20following','current','_handleNewHost','Stop\x20presenting','text','63CgBTDe','next','stopFollowing','apply','_status$','SetWorksheetActiveOperation','DisposableCollection','useEffect','IConfigService','indexOf','live-share.config','onStarting','none','useRef','stopPresenting','Inject','NEW_CHANGESETS','length','useObservable','defineProperty','set','@univerjs/sheets-ui','registerSharedOperation','colorChannel1','UniverCollaborationClientPlugin','tryStartPresenting','Button','_startFollowing','clear','children','_presenter','_uiPartsService','className','send','ONLINE','attrs','286463qCzQrd','_handleOperation','status$','sheet','IDLE','_stopFollowing','@univerjs/design','currentColor','_injector','defIds','idle','dispose','@univerjs-pro/collaboration','small','_handleNewChangeSets','registerInitialStateReporter','touchDependencies','getOwnPropertySymbols','HEADER_MENU','icon','following','Dropdown','tag','div','RxDisposable','Stop\x20following','concat','complete','stringify','_commandService','type','PRESENTING','_beIdle','object','unitId','_handleOnline','entries','SetZoomRatioOperation','_collabSessionService','LIVESHARE_NEW_HOST','pipe','Injector','from','@univerjs/core','createElement','includes','rxjs','9748JwMtlz','end','getMemberID','2TrFcpB','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','params','LiveShareService','override','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','hasOwnProperty','evenodd','_config','_commandDisposable','svg','getValue','_liveShareService','forEach','find','clsx','CollaborationEvent','UniverProCollaborationClient','operations','map','_init','setConfig','5HdxUkr','_handleTerminate','LiveShareController','replace','UNIVER_UNKNOWN','get','useDependency','init','takeUntil','offline','Fragment','rxjs/operators','_unitID','UniverDesign','Disposable','_startLiveShareCoordinator','toString','UniverInstanceType','delete','registerDependencies','InsertSheetMutation','FOLLOWING','requireSession','asObservable','toDisposable','1596618vpYWRa','UniverLiveSharePlugin','merge','propertyIsEnumerable','_configService','177NCgGqX','mutations','LiveShareCoordinator','_reporters','call','LIVESHARE_FETCH_OPERATIONS','381780dskyYD','assign','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','IUniverInstanceService','UniverProCollaboration','amd','url(#$1','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','getLiveShareCoordinator','substring','BuiltInUIPart','UNIVER_LIVE_SHARE_PLUGIN','add','displayName','@univerjs/ui','_startPresenting','16PAekoB','OPERATION','then'];_0x1ac0=function(){return _0x1accee;};return _0x1ac0();}function _0x45fb(_0x3840d6,_0xd0656f){var _0x1ac01a=_0x1ac0();return _0x45fb=function(_0x45fb0c,_0x54e1a3){_0x45fb0c=_0x45fb0c-0x14e;var _0x380e26=_0x1ac01a[_0x45fb0c];return _0x380e26;},_0x45fb(_0x3840d6,_0xd0656f);}(function(_0x404fc8,_0x5db9a2){var _0x2286db=_0x45fb,_0x45df09=_0x404fc8();while(!![]){try{var _0x2def5f=parseInt(_0x2286db(0x223))/0x1*(-parseInt(_0x2286db(0x15f))/0x2)+-parseInt(_0x2286db(0x193))/0x3*(parseInt(_0x2286db(0x15c))/0x4)+-parseInt(_0x2286db(0x175))/0x5*(parseInt(_0x2286db(0x18e))/0x6)+-parseInt(_0x2286db(0x1b9))/0x7*(-parseInt(_0x2286db(0x1a9))/0x8)+parseInt(_0x2286db(0x1ff))/0x9*(-parseInt(_0x2286db(0x199))/0xa)+parseInt(_0x2286db(0x1ba))/0xb*(-parseInt(_0x2286db(0x1e7))/0xc)+parseInt(_0x2286db(0x1ec))/0xd;if(_0x2def5f===_0x5db9a2)break;else _0x45df09['push'](_0x45df09['shift']());}catch(_0x456539){_0x45df09['push'](_0x45df09['shift']());}}}(_0x1ac0,0x3bea4),function(_0x387a0e,_0x76a685){var _0x247b15=_0x45fb;typeof exports==_0x247b15(0x14e)&&typeof module<'u'?_0x76a685(exports,require(_0x247b15(0x1e4)),require(_0x247b15(0x158)),require('@univerjs/sheets'),require(_0x247b15(0x214)),require(_0x247b15(0x1a7)),require(_0x247b15(0x1bf)),require(_0x247b15(0x229)),require(_0x247b15(0x1b2)),require(_0x247b15(0x22f)),require(_0x247b15(0x15b)),require('rxjs/operators')):typeof define=='function'&&define[_0x247b15(0x19e)]?define(['exports',_0x247b15(0x1e4),'@univerjs/core',_0x247b15(0x1ed),_0x247b15(0x214),'@univerjs/ui',_0x247b15(0x1bf),'@univerjs/design',_0x247b15(0x1b2),_0x247b15(0x22f),_0x247b15(0x15b),_0x247b15(0x180)],_0x76a685):(_0x387a0e=typeof globalThis<'u'?globalThis:_0x387a0e||self,_0x76a685(_0x387a0e[_0x247b15(0x1c5)]={},_0x387a0e[_0x247b15(0x170)],_0x387a0e['UniverCore'],_0x387a0e[_0x247b15(0x1c8)],_0x387a0e['UniverSheetsUi'],_0x387a0e[_0x247b15(0x1e5)],_0x387a0e['React'],_0x387a0e[_0x247b15(0x182)],_0x387a0e[_0x247b15(0x1d8)],_0x387a0e[_0x247b15(0x19d)],_0x387a0e[_0x247b15(0x15b)],_0x387a0e[_0x247b15(0x15b)]['operators']));}(this,function(_0x1971b2,_0x56b9ff,_0x97001f,_0x3b0a23,_0x2357e1,_0x1c0950,_0x13cbc2,_0x596c30,_0x47ae26,_0x50d6e9,_0x5ca24a,_0x5d0f1e){'use strict';var _0x613b62=_0x45fb;var _0xa825aa=Object[_0x613b62(0x212)],_0x164398=(_0x330555,_0x27fdeb,_0x4f6f8c)=>_0x27fdeb in _0x330555?_0xa825aa(_0x330555,_0x27fdeb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f6f8c}):_0x330555[_0x27fdeb]=_0x4f6f8c,_0x533efe=(_0x27c411,_0x2c4d17,_0x474b1e)=>_0x164398(_0x27c411,typeof _0x2c4d17!=_0x613b62(0x1f3)?_0x2c4d17+'':_0x2c4d17,_0x474b1e);const _0x5a6486=_0x613b62(0x209),_0x23b084={};class _0x5bde35 extends _0x97001f[_0x613b62(0x183)]{constructor(){var _0x321e65=_0x613b62;super(...arguments),_0x533efe(this,_0x321e65(0x1f8),new Set()),_0x533efe(this,'_reporters',new Set());}['registerSharedOperation'](_0x315c26){var _0x3e074c=_0x613b62;return this[_0x3e074c(0x1f8)]['add'](_0x315c26),_0x97001f[_0x3e074c(0x18d)](()=>this['_sharedOperations']['delete'](_0x315c26));}[_0x613b62(0x232)](_0x588bba){var _0x17ce92=_0x613b62;return this[_0x17ce92(0x196)][_0x17ce92(0x1a5)](_0x588bba),_0x97001f[_0x17ce92(0x18d)](()=>this['_reporters'][_0x17ce92(0x187)](_0x588bba));}[_0x613b62(0x1e2)](_0x31253d){var _0x2365e1=_0x613b62;return this[_0x2365e1(0x1f8)][_0x2365e1(0x1cb)](_0x31253d);}[_0x613b62(0x1b8)](_0x39b84b){var _0x454f4d=_0x613b62;return Array[_0x454f4d(0x157)](this['_reporters'])['map'](_0x1d381b=>_0x1d381b(_0x39b84b));}}var _0x257b69=Object['getOwnPropertyDescriptor'],_0x16c152=(_0x82e476,_0x577a11,_0x71174e,_0x4ffad0)=>{for(var _0x3b0e11=_0x4ffad0>0x1?void 0x0:_0x4ffad0?_0x257b69(_0x577a11,_0x71174e):_0x577a11,_0x200152=_0x82e476['length']-0x1,_0x463e56;_0x200152>=0x0;_0x200152--)(_0x463e56=_0x82e476[_0x200152])&&(_0x3b0e11=_0x463e56(_0x3b0e11)||_0x3b0e11);return _0x3b0e11;},_0x5dd92a=(_0x13b4c9,_0x3d74d1)=>(_0x2cd8bd,_0x2b6dd2)=>_0x3d74d1(_0x2cd8bd,_0x2b6dd2,_0x13b4c9);let _0x22b164=class extends _0x97001f[_0x613b62(0x183)]{constructor(_0x23f734){var _0x46444c=_0x613b62;super(),this[_0x46444c(0x16b)]=_0x23f734,this[_0x46444c(0x173)]();}[_0x613b62(0x173)](){var _0x6a2cf=_0x613b62;[_0x2357e1[_0x6a2cf(0x152)]['id'],_0x2357e1['SetScrollOperation']['id'],_0x3b0a23[_0x6a2cf(0x204)]['id']][_0x6a2cf(0x16c)](_0xc47e00=>{var _0x56170c=_0x6a2cf;this[_0x56170c(0x1e3)](this[_0x56170c(0x16b)][_0x56170c(0x215)](_0xc47e00));});}};_0x22b164=_0x16c152([_0x5dd92a(0x0,_0x97001f['Inject'](_0x5bde35))],_0x22b164);var _0x27fade=function(){var _0x32322d=_0x613b62;return _0x27fade=Object[_0x32322d(0x19a)]||function(_0x407f65){var _0x39472f=_0x32322d;for(var _0x3841ed,_0x16fcfe=0x1,_0x315b1c=arguments['length'];_0x16fcfe<_0x315b1c;_0x16fcfe++){_0x3841ed=arguments[_0x16fcfe];for(var _0x43d3d1 in _0x3841ed)Object[_0x39472f(0x1f5)][_0x39472f(0x165)]['call'](_0x3841ed,_0x43d3d1)&&(_0x407f65[_0x43d3d1]=_0x3841ed[_0x43d3d1]);}return _0x407f65;},_0x27fade[_0x32322d(0x202)](this,arguments);},_0x47f386=function(_0x5b0a13,_0x39e38a){var _0x96e67c=_0x613b62,_0x5599ad={};for(var _0x57aba4 in _0x5b0a13)Object[_0x96e67c(0x1f5)][_0x96e67c(0x165)]['call'](_0x5b0a13,_0x57aba4)&&_0x39e38a['indexOf'](_0x57aba4)<0x0&&(_0x5599ad[_0x57aba4]=_0x5b0a13[_0x57aba4]);if(_0x5b0a13!=null&&typeof Object[_0x96e67c(0x234)]==_0x96e67c(0x1f7)){for(var _0x4cf012=0x0,_0x57aba4=Object[_0x96e67c(0x234)](_0x5b0a13);_0x4cf012<_0x57aba4[_0x96e67c(0x210)];_0x4cf012++)_0x39e38a[_0x96e67c(0x208)](_0x57aba4[_0x4cf012])<0x0&&Object[_0x96e67c(0x1f5)][_0x96e67c(0x191)][_0x96e67c(0x197)](_0x5b0a13,_0x57aba4[_0x4cf012])&&(_0x5599ad[_0x57aba4[_0x4cf012]]=_0x5b0a13[_0x57aba4[_0x4cf012]]);}return _0x5599ad;},_0x1cd290=_0x47ae26['forwardRef'](function(_0x50f0c1,_0x14b4ce){var _0x4ada33=_0x613b62,_0x13526d=_0x50f0c1[_0x4ada33(0x236)],_0x526661=_0x50f0c1['id'],_0x5821f9=_0x50f0c1[_0x4ada33(0x21f)],_0x35bd28=_0x50f0c1[_0x4ada33(0x1d3)],_0xd8e25=_0x47f386(_0x50f0c1,[_0x4ada33(0x236),'id',_0x4ada33(0x21f),_0x4ada33(0x1d3)]),_0x1ac88=_0x4ada33(0x1eb)[_0x4ada33(0x23d)](_0x526661,'\x20')[_0x4ada33(0x23d)](_0x5821f9||'')[_0x4ada33(0x1cd)](),_0x511134=_0x47ae26[_0x4ada33(0x20c)]('_'[_0x4ada33(0x23d)](_0x492df0()));return _0x2468cf(_0x13526d,''[_0x4ada33(0x23d)](_0x526661),{'defIds':_0x13526d[_0x4ada33(0x22c)],'idSuffix':_0x511134[_0x4ada33(0x1fb)]},_0x27fade({'ref':_0x14b4ce,'className':_0x1ac88},_0xd8e25),_0x35bd28);});function _0x2468cf(_0x2567f8,_0x354220,_0x197e3b,_0x2f3897,_0x18e4c5){var _0x4860e9=_0x613b62;return _0x47ae26[_0x4860e9(0x159)](_0x2567f8['tag'],_0x27fade(_0x27fade({'key':_0x354220},_0x417a23(_0x2567f8,_0x197e3b,_0x18e4c5)),_0x2f3897),(_0x436c49(_0x2567f8,_0x197e3b)[_0x4860e9(0x21c)]||[])[_0x4860e9(0x172)](function(_0x46942c,_0x1e2974){return _0x2468cf(_0x46942c,''['concat'](_0x354220,'-')['concat'](_0x2567f8['tag'],'-')['concat'](_0x1e2974),_0x197e3b,void 0x0,_0x18e4c5);}));}function _0x417a23(_0x9a0dbb,_0x16199d,_0x264c14){var _0x7243f8=_0x613b62,_0x288477=_0x27fade({},_0x9a0dbb[_0x7243f8(0x222)]);_0x264c14!=null&&_0x264c14[_0x7243f8(0x216)]&&_0x288477[_0x7243f8(0x1f4)]===_0x7243f8(0x216)&&(_0x288477['fill']=_0x264c14[_0x7243f8(0x216)]),_0x9a0dbb[_0x7243f8(0x239)]==='mask'&&_0x288477['id']&&(_0x288477['id']=_0x288477['id']+_0x16199d[_0x7243f8(0x1d4)]),Object[_0x7243f8(0x151)](_0x288477)[_0x7243f8(0x16c)](function(_0x34dfd2){var _0x4a6115=_0x7243f8,_0x15d648=_0x34dfd2[0x0],_0x537cbd=_0x34dfd2[0x1];_0x15d648===_0x4a6115(0x1ad)&&typeof _0x537cbd==_0x4a6115(0x1c1)&&(_0x288477[_0x15d648]=_0x537cbd[_0x4a6115(0x178)](/url\(#(.*)\)/,_0x4a6115(0x19f)[_0x4a6115(0x23d)](_0x16199d[_0x4a6115(0x1d4)],')')));});var _0x2e8d89=_0x16199d[_0x7243f8(0x22c)];return!_0x2e8d89||_0x2e8d89['length']===0x0||(_0x9a0dbb[_0x7243f8(0x239)]===_0x7243f8(0x1d6)&&_0x288477[_0x7243f8(0x1d7)]&&(_0x288477['xlink:href']=_0x288477[_0x7243f8(0x1d7)]+_0x16199d[_0x7243f8(0x1d4)]),Object[_0x7243f8(0x151)](_0x288477)[_0x7243f8(0x16c)](function(_0x96f2b4){var _0x3667bf=_0x7243f8,_0xcf7d97=_0x96f2b4[0x0],_0x532114=_0x96f2b4[0x1];typeof _0x532114==_0x3667bf(0x1c1)&&(_0x288477[_0xcf7d97]=_0x532114[_0x3667bf(0x178)](/url\(#(.*)\)/,_0x3667bf(0x19f)[_0x3667bf(0x23d)](_0x16199d[_0x3667bf(0x1d4)],')')));})),_0x288477;}function _0x436c49(_0x18e022,_0x4b58ea){var _0x53de75=_0x613b62,_0x199b5c,_0x30b0a1=_0x4b58ea[_0x53de75(0x22c)];return!_0x30b0a1||_0x30b0a1['length']===0x0?_0x18e022:_0x18e022[_0x53de75(0x239)]==='defs'&&(!((_0x199b5c=_0x18e022[_0x53de75(0x21c)])===null||_0x199b5c===void 0x0)&&_0x199b5c['length'])?_0x27fade(_0x27fade({},_0x18e022),{'children':_0x18e022[_0x53de75(0x21c)]['map'](function(_0x1d4dc4){var _0x4bbbe9=_0x53de75;return typeof _0x1d4dc4['attrs']['id']=='string'&&_0x30b0a1&&_0x30b0a1[_0x4bbbe9(0x208)](_0x1d4dc4[_0x4bbbe9(0x222)]['id'])>-0x1?_0x27fade(_0x27fade({},_0x1d4dc4),{'attrs':_0x27fade(_0x27fade({},_0x1d4dc4[_0x4bbbe9(0x222)]),{'id':_0x1d4dc4['attrs']['id']+_0x4b58ea[_0x4bbbe9(0x1d4)]})}):_0x1d4dc4;})}):_0x18e022;}function _0x492df0(){var _0x1eb946=_0x613b62;return Math['random']()[_0x1eb946(0x185)](0x24)[_0x1eb946(0x1a2)](0x2,0x8);}_0x1cd290[_0x613b62(0x1a6)]='UniverIcon';var _0x1298d8={'tag':_0x613b62(0x169),'attrs':{'fill':_0x613b62(0x20b),'viewBox':_0x613b62(0x1df),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x613b62(0x22a),'d':_0x613b62(0x160)}},{'tag':'path','attrs':{'fill':_0x613b62(0x22a),'d':_0x613b62(0x1f1),'fillRule':_0x613b62(0x166),'clipRule':'evenodd'}}]},_0x56e44f=_0x47ae26['forwardRef'](function(_0x41d4f1,_0x556890){var _0x46c1b=_0x613b62;return _0x47ae26['createElement'](_0x1cd290,Object[_0x46c1b(0x19a)]({},_0x41d4f1,{'id':'live-share-single','ref':_0x556890,'icon':_0x1298d8}));});_0x56e44f[_0x613b62(0x1a6)]=_0x613b62(0x1bc);var _0x34ebea=Object[_0x613b62(0x1e9)],_0x551444=(_0x18658c,_0x506959,_0x3a495c,_0x2c3f4d)=>{var _0x7beedf=_0x613b62;for(var _0x1eaa69=_0x2c3f4d>0x1?void 0x0:_0x2c3f4d?_0x34ebea(_0x506959,_0x3a495c):_0x506959,_0x1c3805=_0x18658c[_0x7beedf(0x210)]-0x1,_0x138903;_0x1c3805>=0x0;_0x1c3805--)(_0x138903=_0x18658c[_0x1c3805])&&(_0x1eaa69=_0x138903(_0x1eaa69)||_0x1eaa69);return _0x1eaa69;},_0x122854=(_0x1894cc,_0x4b4030)=>(_0x29e9f5,_0x2751ce)=>_0x4b4030(_0x29e9f5,_0x2751ce,_0x1894cc);_0x1971b2[_0x613b62(0x177)]=class extends _0x97001f[_0x613b62(0x23b)]{constructor(_0x145ec8,_0x419964,_0x2ea03f){var _0x5232bf=_0x613b62;super(),_0x533efe(this,'_entities',new Map()),(this[_0x5232bf(0x1f9)]=_0x145ec8,this[_0x5232bf(0x22b)]=_0x419964,this[_0x5232bf(0x153)]=_0x2ea03f,this[_0x5232bf(0x173)]());}async[_0x613b62(0x1a1)](_0x225027){var _0x9eef8e=_0x613b62;return this['_entities'][_0x9eef8e(0x1cb)](_0x225027)||await this['_startLiveShareCoordinator'](_0x225027),this[_0x9eef8e(0x1c7)]['get'](_0x225027);}[_0x613b62(0x173)](){var _0x5b9712=_0x613b62;this['_univerInstanceService'][_0x5b9712(0x1d0)](_0x97001f[_0x5b9712(0x186)][_0x5b9712(0x1ee)])[_0x5b9712(0x155)](_0x5d0f1e[_0x5b9712(0x17d)](this['dispose$']))[_0x5b9712(0x1c3)](async _0x371c9f=>{var _0x363b07=_0x5b9712;const _0x22f7c4=_0x371c9f['getUnitId']();this['_entities'][_0x363b07(0x1cb)](_0x22f7c4)||this['_startLiveShareCoordinator'](_0x22f7c4);}),this[_0x5b9712(0x1f9)][_0x5b9712(0x1cc)](_0x97001f[_0x5b9712(0x186)]['UNIVER_SHEET'])[_0x5b9712(0x155)](_0x5d0f1e[_0x5b9712(0x17d)](this['dispose$']))[_0x5b9712(0x1c3)](_0x9fdd72=>{var _0x205f84=_0x5b9712;const _0x4040fc=_0x9fdd72['getUnitId'](),_0x33eaab=this[_0x205f84(0x1c7)][_0x205f84(0x17a)](_0x4040fc);_0x33eaab==null||_0x33eaab['dispose']();});}async[_0x613b62(0x184)](_0x215b02){var _0x187732=_0x613b62;const _0x2c6930=await this['_collabSessionService'][_0x187732(0x18b)](_0x215b02),_0x287fc7=this[_0x187732(0x22b)]['createInstance'](_0x1971b2['LiveShareCoordinator'],_0x215b02,_0x2c6930);return _0x287fc7[_0x187732(0x17c)](),this[_0x187732(0x1c7)][_0x187732(0x213)](_0x215b02,_0x287fc7),_0x287fc7;}},_0x1971b2[_0x613b62(0x177)]=_0x551444([_0x122854(0x0,_0x97001f['IUniverInstanceService']),_0x122854(0x1,_0x97001f[_0x613b62(0x20e)](_0x97001f[_0x613b62(0x156)])),_0x122854(0x2,_0x97001f['Inject'](_0x56b9ff['CollaborationSessionService']))],_0x1971b2[_0x613b62(0x177)]);var _0x21c0e2=(_0x5dff73=>(_0x5dff73[_0x613b62(0x1b7)]=_0x613b62(0x17e),_0x5dff73[_0x613b62(0x227)]='idle',_0x5dff73[_0x613b62(0x18a)]='following',_0x5dff73[_0x613b62(0x1d1)]=_0x613b62(0x1f6),_0x5dff73[_0x613b62(0x242)]='presenting',_0x5dff73))(_0x21c0e2||{});const _0x342a4c=_0x613b62(0x1ef),_0x549210=0xc8;_0x1971b2[_0x613b62(0x195)]=class extends _0x97001f[_0x613b62(0x23b)]{constructor(_0x34cf5b,_0x28dd13,_0x111b52,_0x2f04be,_0x3150ad){var _0x212b87=_0x613b62;super(),_0x533efe(this,_0x212b87(0x203),new _0x5ca24a[(_0x212b87(0x1ac))](_0x212b87(0x22d))),_0x533efe(this,_0x212b87(0x225),this['_status$'][_0x212b87(0x18c)]()),_0x533efe(this,_0x212b87(0x173),!0x1),_0x533efe(this,_0x212b87(0x168),null),_0x533efe(this,_0x212b87(0x21d),null),(this['_unitID']=_0x34cf5b,this['_collabSession']=_0x28dd13,this[_0x212b87(0x192)]=_0x111b52,this[_0x212b87(0x16b)]=_0x2f04be,this[_0x212b87(0x240)]=_0x3150ad);}get[_0x613b62(0x1b0)](){var _0x50e890=_0x613b62;return this[_0x50e890(0x203)][_0x50e890(0x16a)]();}[_0x613b62(0x22e)](){var _0x188e9f=_0x613b62,_0x26cbc1;(_0x26cbc1=this[_0x188e9f(0x168)])==null||_0x26cbc1[_0x188e9f(0x22e)](),this[_0x188e9f(0x203)][_0x188e9f(0x200)]('idle'),this[_0x188e9f(0x203)][_0x188e9f(0x23e)]();}[_0x613b62(0x17c)](){var _0x12f078=_0x613b62;this[_0x12f078(0x173)]||(this[_0x12f078(0x173)]=!0x0,this[_0x12f078(0x1dd)][_0x12f078(0x1c9)][_0x12f078(0x155)](_0x5d0f1e[_0x12f078(0x17d)](this[_0x12f078(0x1b3)]))[_0x12f078(0x1c3)](_0x17695f=>{var _0x2af75c=_0x12f078;switch(_0x17695f){case _0x56b9ff[_0x2af75c(0x1bd)]['OFFLINE']:this[_0x2af75c(0x1c0)]();break;case _0x56b9ff[_0x2af75c(0x1bd)][_0x2af75c(0x221)]:this['_handleOnline']();break;}}),this[_0x12f078(0x1dd)]['event$'][_0x12f078(0x155)](_0x5d0f1e[_0x12f078(0x17d)](this[_0x12f078(0x1b3)]))[_0x12f078(0x1c3)](_0x550038=>{var _0x2bb0fc=_0x12f078;const {eventID:_0x5cb424}=_0x550038;switch(_0x5cb424){case _0x50d6e9[_0x2bb0fc(0x16f)][_0x2bb0fc(0x154)]:this[_0x2bb0fc(0x1fc)](_0x550038);break;case _0x50d6e9[_0x2bb0fc(0x16f)][_0x2bb0fc(0x1cf)]:this[_0x2bb0fc(0x224)](_0x550038);break;case _0x50d6e9['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x2bb0fc(0x176)]();break;case _0x50d6e9[_0x2bb0fc(0x16f)][_0x2bb0fc(0x20f)]:this[_0x2bb0fc(0x231)](_0x550038);break;}}));}[_0x613b62(0x218)](){var _0x1c60a4=_0x613b62;this[_0x1c60a4(0x1dd)][_0x1c60a4(0x220)]({'eventID':_0x50d6e9[_0x1c60a4(0x16f)][_0x1c60a4(0x1ce)],'data':{'unitID':this[_0x1c60a4(0x181)],'userID':this['_collabSession'][_0x1c60a4(0x15e)]()}},this[_0x1c60a4(0x181)]);}[_0x613b62(0x20d)](){var _0x1cb06f=_0x613b62;this[_0x1cb06f(0x1b0)]===_0x1cb06f(0x1c2)&&(this[_0x1cb06f(0x203)]['next'](_0x1cb06f(0x22d)),this['_collabSession'][_0x1cb06f(0x220)]({'eventID':_0x50d6e9[_0x1cb06f(0x16f)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1cb06f(0x181)]}},this['_unitID']));}[_0x613b62(0x1d2)](){var _0x3126cb=_0x613b62;this['_status']==='not-following'&&(this['_status$'][_0x3126cb(0x200)](_0x3126cb(0x237)),this[_0x3126cb(0x21a)]());}['stopFollowing'](){var _0x113bed=_0x613b62;this[_0x113bed(0x1b0)]==='following'&&this[_0x113bed(0x228)]();}[_0x613b62(0x1fc)](_0x5777d4){var _0x10bcbf=_0x613b62;const {presenter:_0x37a2a7}=_0x5777d4['data'],_0x4c7007=this[_0x10bcbf(0x1dd)][_0x10bcbf(0x15e)]();this['_presenter']=_0x37a2a7,_0x37a2a7===_0x4c7007?(this[_0x10bcbf(0x228)](),this[_0x10bcbf(0x1a8)]()):this[_0x10bcbf(0x1b0)]!=='not-following'&&(this[_0x10bcbf(0x1e8)](),this['_startFollowing']());}[_0x613b62(0x1d9)](){var _0x44f5b3=_0x613b62;const _0x2d21a3={'eventID':_0x50d6e9[_0x44f5b3(0x16f)][_0x44f5b3(0x198)]};this[_0x44f5b3(0x1dd)][_0x44f5b3(0x220)](_0x2d21a3,this['_unitID']);}[_0x613b62(0x176)](){var _0x306f06=_0x613b62;this[_0x306f06(0x21d)]=null,this[_0x306f06(0x1b0)]!=='presenting'&&this[_0x306f06(0x243)]();}[_0x613b62(0x231)](_0x15ca5a){var _0x467126=_0x613b62;if(this[_0x467126(0x1b0)]==='following'&&this[_0x467126(0x21d)]===_0x15ca5a[_0x467126(0x1e0)][_0x467126(0x1db)]){const _0x5d31b7=_0x50d6e9['parseProtocolChangeset'](_0x15ca5a['data'])[_0x467126(0x194)][_0x467126(0x1b1)]()[_0x467126(0x16d)](_0xeab636=>_0xeab636['id']===_0x3b0a23[_0x467126(0x189)]['id']);if(_0x5d31b7){const _0x370eb3=_0x5d31b7[_0x467126(0x161)][_0x467126(0x14f)],_0x3857d0=_0x5d31b7[_0x467126(0x161)][_0x467126(0x226)]['id'];setTimeout(()=>{var _0x9bf4b2=_0x467126;this[_0x9bf4b2(0x240)]['executeCommand'](_0x3b0a23[_0x9bf4b2(0x204)]['id'],{'unitId':_0x370eb3,'subUnitId':_0x3857d0},{'fromCollab':!0x0});});}}}[_0x613b62(0x1a8)](){var _0x79994c=_0x613b62;this[_0x79994c(0x203)]['next'](_0x79994c(0x1c2));const _0x23ab2a=new Map(),_0x4a31a5=this[_0x79994c(0x168)]=new _0x97001f[(_0x79994c(0x205))]();_0x4a31a5['add'](_0x97001f['toDisposable'](()=>{var _0x22c73a=_0x79994c;_0x23ab2a['forEach'](_0x7044f1=>_0x7044f1['complete']()),_0x23ab2a[_0x22c73a(0x21b)]();})),_0x4a31a5[_0x79994c(0x1a5)](this[_0x79994c(0x240)][_0x79994c(0x1ca)](_0x1b98fc=>{var _0x11fdc1=_0x79994c,_0x593179;if(_0x1b98fc['type']!==_0x97001f['CommandType'][_0x11fdc1(0x1aa)]||!this[_0x11fdc1(0x16b)][_0x11fdc1(0x1e2)](_0x1b98fc['id']))return;const {id:_0x585b73}=_0x1b98fc;let _0x484246;_0x23ab2a[_0x11fdc1(0x1cb)](_0x585b73)?_0x484246=_0x23ab2a[_0x11fdc1(0x17a)](_0x585b73):(_0x484246=new _0x5ca24a[(_0x11fdc1(0x1b5))](),_0x23ab2a['set'](_0x585b73,_0x484246),_0x484246[_0x11fdc1(0x155)](_0x5d0f1e[_0x11fdc1(0x1d5)]((_0x593179=this['_configService'][_0x11fdc1(0x1af)](_0x342a4c))!=null?_0x593179:_0x549210,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x11fdc1(0x1c3)](_0x3fab09=>{var _0x10df63=_0x11fdc1;this[_0x10df63(0x1dd)][_0x10df63(0x220)]({'eventID':_0x50d6e9[_0x10df63(0x16f)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x10df63(0x181)],'operations':{[_0x3fab09['id']]:{'id':_0x3fab09['id'],'params':JSON[_0x10df63(0x23f)](_0x3fab09[_0x10df63(0x161)])}}}},this['_unitID']);})),_0x484246['next'](_0x1b98fc);})),this[_0x79994c(0x16b)][_0x79994c(0x1b8)](this[_0x79994c(0x181)])[_0x79994c(0x16c)](_0x44fdcd=>this[_0x79994c(0x1dd)][_0x79994c(0x220)]({'eventID':_0x50d6e9[_0x79994c(0x16f)][_0x79994c(0x1cf)],'data':{'unitID':this[_0x79994c(0x181)],'operations':{[_0x44fdcd['id']]:{'id':_0x44fdcd['id'],'params':JSON[_0x79994c(0x23f)](_0x44fdcd[_0x79994c(0x161)])}}}},this[_0x79994c(0x181)]));}[_0x613b62(0x1e8)](){var _0x1a1d13=_0x613b62,_0x306948;this[_0x1a1d13(0x203)][_0x1a1d13(0x200)](_0x1a1d13(0x22d)),(_0x306948=this[_0x1a1d13(0x168)])==null||_0x306948['dispose'](),this['_commandDisposable']=null;}[_0x613b62(0x21a)](){var _0xf1ec08=_0x613b62,_0x4ef23c;(_0x4ef23c=this[_0xf1ec08(0x168)])==null||_0x4ef23c[_0xf1ec08(0x22e)](),this[_0xf1ec08(0x203)][_0xf1ec08(0x200)]('following');}['_beIdle'](){var _0x3fd4de=_0x613b62,_0x685e2b;this[_0x3fd4de(0x203)][_0x3fd4de(0x200)](_0x3fd4de(0x22d)),(_0x685e2b=this[_0x3fd4de(0x168)])==null||_0x685e2b[_0x3fd4de(0x22e)](),this[_0x3fd4de(0x168)]=null;}[_0x613b62(0x228)](){var _0x2365b8=_0x613b62,_0x14d2ec;this[_0x2365b8(0x203)][_0x2365b8(0x200)]('not-following'),(_0x14d2ec=this[_0x2365b8(0x168)])==null||_0x14d2ec[_0x2365b8(0x22e)]();}[_0x613b62(0x224)](_0x2012c7){var _0x17e3a2=_0x613b62;if([_0x17e3a2(0x1c2),_0x17e3a2(0x1f6),'offline'][_0x17e3a2(0x15a)](this[_0x17e3a2(0x1b0)])||!_0x2012c7[_0x17e3a2(0x1e0)]['presenter']||_0x2012c7[_0x17e3a2(0x1e0)]['presenter']===this[_0x17e3a2(0x1dd)][_0x17e3a2(0x15e)]())return;this[_0x17e3a2(0x1b0)]===_0x17e3a2(0x22d)&&this[_0x17e3a2(0x21a)]();const _0x535671=_0x2012c7[_0x17e3a2(0x1e0)][_0x17e3a2(0x171)];Object[_0x17e3a2(0x1be)](_0x535671)[_0x17e3a2(0x16c)](_0x5cef03=>{var _0x4b78af=_0x17e3a2;this[_0x4b78af(0x240)][_0x4b78af(0x1ea)](_0x5cef03['id'],_0x5cef03[_0x4b78af(0x161)]?JSON['parse'](_0x5cef03['params']):null,{'fromCollab':!0x0});});}[_0x613b62(0x1c0)](){var _0x227d45=_0x613b62,_0x35c069;this[_0x227d45(0x203)][_0x227d45(0x200)](_0x227d45(0x17e)),(_0x35c069=this['_commandDisposable'])==null||_0x35c069[_0x227d45(0x22e)]();}[_0x613b62(0x150)](){var _0x14c8fe=_0x613b62;this[_0x14c8fe(0x203)]['next']('idle'),this['_fetchOperations']();}},_0x1971b2[_0x613b62(0x195)]=_0x551444([_0x122854(0x2,_0x97001f[_0x613b62(0x207)]),_0x122854(0x3,_0x97001f[_0x613b62(0x20e)](_0x5bde35)),_0x122854(0x4,_0x97001f['ICommandService'])],_0x1971b2['LiveShareCoordinator']);function _0x4c932e(){var _0x37928a=_0x613b62;const _0x3a567e=_0x1c0950[_0x37928a(0x17b)](_0x1971b2[_0x37928a(0x177)]),_0xd499b3=_0x1c0950['useDependency'](_0x97001f[_0x37928a(0x19c)]),_0x3a8ee0=_0x1c0950[_0x37928a(0x211)](()=>_0xd499b3['getCurrentTypeOfUnit$'](_0x97001f[_0x37928a(0x186)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1b34f5,_0x31fdfe]=_0x47ae26[_0x37928a(0x1c6)](null),[_0x5b9720,_0x294f32]=_0x47ae26['useState'](_0x21c0e2[_0x37928a(0x227)]),_0x16aed1=_0x47ae26[_0x37928a(0x20c)](null);return _0x47ae26[_0x37928a(0x206)](()=>(_0x3a8ee0&&_0x3a567e[_0x37928a(0x1a1)](_0x3a8ee0['getUnitId']())[_0x37928a(0x1ab)](_0x105acb=>{var _0x1daeac=_0x37928a;_0x31fdfe(_0x105acb),_0x16aed1[_0x1daeac(0x1fb)]=_0x105acb[_0x1daeac(0x225)]['subscribe'](_0x378d19=>{_0x294f32(_0x378d19);});}),()=>{var _0x3f32bc=_0x37928a,_0x47777f;(_0x47777f=_0x16aed1[_0x3f32bc(0x1fb)])==null||_0x47777f[_0x3f32bc(0x1bb)](),_0x16aed1[_0x3f32bc(0x1fb)]=null;}),[_0x3a8ee0,_0x3a567e]),_0x1b34f5?_0x13cbc2[_0x37928a(0x1da)](_0x596c30[_0x37928a(0x238)],{'align':_0x37928a(0x15d),'disabled':_0x5b9720===_0x21c0e2[_0x37928a(0x1b7)],'className':_0x37928a(0x19b),'overlay':_0x13cbc2[_0x37928a(0x1da)](_0x40224f,{'status':_0x5b9720,'coordinator':_0x1b34f5}),'children':_0x13cbc2[_0x37928a(0x1da)](_0x37928a(0x1dc),{'className':_0x596c30[_0x37928a(0x16e)](_0x37928a(0x164),{'univer-cursor-not-allowed':_0x5b9720===_0x21c0e2[_0x37928a(0x1b7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5b9720!==_0x21c0e2['OFFLINE']}),'type':_0x37928a(0x1dc),'children':_0x13cbc2[_0x37928a(0x1da)](_0x56e44f,{'className':'univer-size-4'})})}):null;}function _0x40224f(_0x58e257){var _0x5a2a14=_0x613b62;const {status:_0x536faf,coordinator:_0x4800a2}=_0x58e257;switch(_0x536faf){case _0x21c0e2[_0x5a2a14(0x227)]:return _0x13cbc2['jsx'](_0x378924,{'coordinator':_0x4800a2});case _0x21c0e2[_0x5a2a14(0x18a)]:return _0x13cbc2[_0x5a2a14(0x1da)](_0xb48e95,{'coordinator':_0x4800a2});case _0x21c0e2[_0x5a2a14(0x1d1)]:return _0x13cbc2[_0x5a2a14(0x1da)](_0x55e9b4,{'coordinator':_0x4800a2});case _0x21c0e2[_0x5a2a14(0x1b7)]:return _0x13cbc2[_0x5a2a14(0x1da)](_0x4dc23e,{});case _0x21c0e2[_0x5a2a14(0x242)]:return _0x13cbc2[_0x5a2a14(0x1da)](_0x37a5c9,{'coordinator':_0x4800a2});default:return null;}}function _0x378924(_0x345912){var _0x142eb0=_0x613b62;const {coordinator:_0x206554}=_0x345912;return _0x13cbc2[_0x142eb0(0x1c4)](_0x13cbc2['Fragment'],{'children':[_0x13cbc2[_0x142eb0(0x1da)]('div',{'className':_0x142eb0(0x1a0),'children':'Present\x20this\x20document'}),_0x13cbc2[_0x142eb0(0x1da)](_0x596c30['Button'],{'size':'small','type':_0x142eb0(0x1b6),'onClick':()=>_0x206554[_0x142eb0(0x218)](),'children':'Start'})]});}function _0xb48e95(_0x7b0854){var _0x4b544d=_0x613b62;const {coordinator:_0x2978f6}=_0x7b0854;return _0x13cbc2[_0x4b544d(0x1c4)](_0x13cbc2[_0x4b544d(0x17f)],{'children':[_0x13cbc2[_0x4b544d(0x1da)](_0x4b544d(0x23a),{'className':_0x4b544d(0x1a0),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x13cbc2[_0x4b544d(0x1da)](_0x596c30['Button'],{'size':_0x4b544d(0x230),'type':_0x4b544d(0x1b6),'onClick':()=>_0x2978f6[_0x4b544d(0x201)](),'children':_0x4b544d(0x23c)})]});}function _0x55e9b4(_0x4c47b2){var _0x555fe2=_0x613b62;const {coordinator:_0x3b6c7d}=_0x4c47b2;return _0x13cbc2[_0x555fe2(0x1c4)](_0x13cbc2[_0x555fe2(0x17f)],{'children':[_0x13cbc2[_0x555fe2(0x1da)]('div',{'className':_0x555fe2(0x1a0),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x13cbc2['jsx'](_0x596c30[_0x555fe2(0x219)],{'size':_0x555fe2(0x230),'type':_0x555fe2(0x1fe),'onClick':()=>_0x3b6c7d[_0x555fe2(0x1d2)](),'children':_0x555fe2(0x1fa)})]});}function _0x37a5c9(_0x5bbfeb){var _0x37da01=_0x613b62;const {coordinator:_0x5df4a2}=_0x5bbfeb;return _0x13cbc2[_0x37da01(0x1c4)](_0x13cbc2[_0x37da01(0x17f)],{'children':[_0x13cbc2[_0x37da01(0x1da)](_0x37da01(0x23a),{'className':_0x37da01(0x1a0),'children':_0x37da01(0x1e6)}),_0x13cbc2[_0x37da01(0x1da)](_0x596c30[_0x37da01(0x219)],{'size':_0x37da01(0x230),'type':'default','onClick':()=>_0x5df4a2[_0x37da01(0x20d)](),'children':_0x37da01(0x1fd)})]});}function _0x4dc23e(){var _0x5bec95=_0x613b62;return _0x13cbc2['jsx'](_0x13cbc2[_0x5bec95(0x17f)],{'children':'You\x27are\x20offline.'});}var _0xb66b83=Object[_0x613b62(0x1e9)],_0x48d647=(_0x111d77,_0x449a98,_0x3bbeb4,_0x4166a4)=>{for(var _0x5a5ec3=_0x4166a4>0x1?void 0x0:_0x4166a4?_0xb66b83(_0x449a98,_0x3bbeb4):_0x449a98,_0xc8a93b=_0x111d77['length']-0x1,_0x2dce11;_0xc8a93b>=0x0;_0xc8a93b--)(_0x2dce11=_0x111d77[_0xc8a93b])&&(_0x5a5ec3=_0x2dce11(_0x5a5ec3)||_0x5a5ec3);return _0x5a5ec3;},_0x1bffcd=(_0x5547ac,_0x2dc6fd)=>(_0x1f87d6,_0x24eabc)=>_0x2dc6fd(_0x1f87d6,_0x24eabc,_0x5547ac);_0x1971b2[_0x613b62(0x1f0)]=class extends _0x97001f[_0x613b62(0x183)]{constructor(_0x37e840,_0x51cebe){var _0xbf9b72=_0x613b62;super(),this[_0xbf9b72(0x22b)]=_0x37e840,this['_uiPartsService']=_0x51cebe,this[_0xbf9b72(0x1e1)]();}[_0x613b62(0x1e1)](){var _0x3de82c=_0x613b62;this['disposeWithMe'](this[_0x3de82c(0x21e)]['registerComponent'](_0x1c0950[_0x3de82c(0x1a3)][_0x3de82c(0x235)],()=>_0x1c0950['connectInjector'](_0x4c932e,this[_0x3de82c(0x22b)])));}},_0x1971b2[_0x613b62(0x1f0)]=_0x48d647([_0x1bffcd(0x0,_0x97001f[_0x613b62(0x20e)](_0x97001f[_0x613b62(0x156)])),_0x1bffcd(0x1,_0x1c0950['IUIPartsService'])],_0x1971b2['DesktopLiveShareController']);var _0x342ba2=Object['defineProperty'],_0x1b1c71=Object[_0x613b62(0x1e9)],_0xeabf72=(_0x2abd1c,_0x533448,_0x273d96)=>_0x533448 in _0x2abd1c?_0x342ba2(_0x2abd1c,_0x533448,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x273d96}):_0x2abd1c[_0x533448]=_0x273d96,_0x137464=(_0x39d19a,_0x192c54,_0x58b700,_0x44485f)=>{var _0x14f7f8=_0x613b62;for(var _0x53c021=_0x44485f>0x1?void 0x0:_0x44485f?_0x1b1c71(_0x192c54,_0x58b700):_0x192c54,_0x44f94a=_0x39d19a[_0x14f7f8(0x210)]-0x1,_0x5f11ec;_0x44f94a>=0x0;_0x44f94a--)(_0x5f11ec=_0x39d19a[_0x44f94a])&&(_0x53c021=_0x5f11ec(_0x53c021)||_0x53c021);return _0x53c021;},_0xf8c561=(_0x2c63a0,_0x43091e)=>(_0x5184f7,_0x30b277)=>_0x43091e(_0x5184f7,_0x30b277,_0x2c63a0),_0xf95f9e=(_0x3f3fe1,_0x40cad9,_0xc823de)=>_0xeabf72(_0x3f3fe1,typeof _0x40cad9!=_0x613b62(0x1f3)?_0x40cad9+'':_0x40cad9,_0xc823de);const _0x12f787=_0x613b62(0x1a4);_0x1971b2[_0x613b62(0x18f)]=class extends _0x97001f['Plugin']{constructor(_0x2b0e14=_0x23b084,_0x5d2e29,_0x59c5a0){var _0x524625=_0x613b62;super(),this['_config']=_0x2b0e14,this['_injector']=_0x5d2e29,this[_0x524625(0x192)]=_0x59c5a0;const {..._0x566d2a}=_0x97001f[_0x524625(0x190)]({},_0x23b084,this[_0x524625(0x167)]);this[_0x524625(0x192)][_0x524625(0x174)](_0x5a6486,_0x566d2a);}[_0x613b62(0x20a)](){var _0x4b2889=_0x613b62;_0x97001f[_0x4b2889(0x188)](this[_0x4b2889(0x22b)],_0x97001f['mergeOverrideWithDependencies']([[_0x5bde35],[_0x1971b2[_0x4b2889(0x177)]],[_0x22b164],[_0x1971b2[_0x4b2889(0x1f0)]]],this[_0x4b2889(0x167)][_0x4b2889(0x163)])),_0x97001f[_0x4b2889(0x233)](this['_injector'],[[_0x22b164]]);}[_0x613b62(0x1b4)](){var _0x191411=_0x613b62;_0x97001f[_0x191411(0x233)](this[_0x191411(0x22b)],[[_0x1971b2['DesktopLiveShareController']]]);}},_0xf95f9e(_0x1971b2[_0x613b62(0x18f)],_0x613b62(0x241),_0x97001f['UniverInstanceType'][_0x613b62(0x179)]),_0xf95f9e(_0x1971b2['UniverLiveSharePlugin'],'pluginName',_0x12f787),_0x1971b2[_0x613b62(0x18f)]=_0x137464([_0x97001f[_0x613b62(0x1ae)](_0x56b9ff[_0x613b62(0x217)]),_0xf8c561(0x1,_0x97001f[_0x613b62(0x20e)](_0x97001f[_0x613b62(0x156)])),_0xf8c561(0x2,_0x97001f[_0x613b62(0x207)])],_0x1971b2[_0x613b62(0x18f)]),_0x1971b2[_0x613b62(0x1de)]=_0x4c932e,_0x1971b2[_0x613b62(0x162)]=_0x5bde35,_0x1971b2['LiveShareStatus']=_0x21c0e2,Object[_0x613b62(0x212)](_0x1971b2,Symbol['toStringTag'],{'value':_0x613b62(0x1f2)});}));
|
|
1
|
+
(function(_0x114f2c,_0x5ad411){var _0x3e17cb=_0x76be,_0x2a0252=_0x114f2c();while(!![]){try{var _0x1fe3b6=-parseInt(_0x3e17cb(0x87))/0x1+-parseInt(_0x3e17cb(0x105))/0x2+-parseInt(_0x3e17cb(0x13b))/0x3*(-parseInt(_0x3e17cb(0xc2))/0x4)+parseInt(_0x3e17cb(0x17a))/0x5*(-parseInt(_0x3e17cb(0xfb))/0x6)+parseInt(_0x3e17cb(0x121))/0x7*(parseInt(_0x3e17cb(0x155))/0x8)+-parseInt(_0x3e17cb(0xc5))/0x9*(parseInt(_0x3e17cb(0x17d))/0xa)+parseInt(_0x3e17cb(0x173))/0xb*(parseInt(_0x3e17cb(0x148))/0xc);if(_0x1fe3b6===_0x5ad411)break;else _0x2a0252['push'](_0x2a0252['shift']());}catch(_0x377ed1){_0x2a0252['push'](_0x2a0252['shift']());}}}(_0x2c84,0x3dfa1),function(_0x3ebb62,_0x3aaaf0){var _0x550379=_0x76be;typeof exports==_0x550379(0xfe)&&typeof module<'u'?_0x3aaaf0(exports,require(_0x550379(0x135)),require(_0x550379(0x8f)),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require(_0x550379(0x168)),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require(_0x550379(0x14a)),require(_0x550379(0x125))):typeof define==_0x550379(0x9d)&&define[_0x550379(0x142)]?define([_0x550379(0x11e),'@univerjs-pro/collaboration-client',_0x550379(0x8f),_0x550379(0xcd),_0x550379(0xaf),'@univerjs/ui',_0x550379(0x152),_0x550379(0xed),_0x550379(0x109),_0x550379(0x126),_0x550379(0x14a),_0x550379(0x125)],_0x3aaaf0):(_0x3ebb62=typeof globalThis<'u'?globalThis:_0x3ebb62||self,_0x3aaaf0(_0x3ebb62[_0x550379(0x9b)]={},_0x3ebb62[_0x550379(0x9e)],_0x3ebb62[_0x550379(0x15c)],_0x3ebb62[_0x550379(0xd8)],_0x3ebb62[_0x550379(0x88)],_0x3ebb62['UniverUi'],_0x3ebb62[_0x550379(0xf5)],_0x3ebb62[_0x550379(0x117)],_0x3ebb62[_0x550379(0xf5)],_0x3ebb62[_0x550379(0xdc)],_0x3ebb62[_0x550379(0x14a)],_0x3ebb62[_0x550379(0x14a)]['operators']));}(this,function(_0x1eb8b3,_0x384945,_0x35a254,_0x48fa50,_0x6b1bfb,_0x211c35,_0x17df5b,_0x49b550,_0x263c12,_0x251eb9,_0x4e83a9,_0x8b0515){'use strict';var _0x52972c=_0x76be;var _0x46b667=Object[_0x52972c(0x13a)],_0x4f46c2=(_0x8fb245,_0x2d9fa3,_0x48c283)=>_0x2d9fa3 in _0x8fb245?_0x46b667(_0x8fb245,_0x2d9fa3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48c283}):_0x8fb245[_0x2d9fa3]=_0x48c283,_0x52b429=(_0x248b30,_0x45977b,_0x5d5e12)=>_0x4f46c2(_0x248b30,typeof _0x45977b!=_0x52972c(0x95)?_0x45977b+'':_0x45977b,_0x5d5e12);const _0x3aaace=_0x52972c(0xc9),_0x2d5b59={};class _0x58a926 extends _0x35a254['Disposable']{constructor(){var _0x25d8a8=_0x52972c;super(...arguments),_0x52b429(this,_0x25d8a8(0xf2),new Set()),_0x52b429(this,'_reporters',new Set());}[_0x52972c(0xbf)](_0x371e91){var _0x536d0d=_0x52972c;return this[_0x536d0d(0xf2)]['add'](_0x371e91),_0x35a254[_0x536d0d(0x14f)](()=>this[_0x536d0d(0xf2)][_0x536d0d(0xd2)](_0x371e91));}[_0x52972c(0x162)](_0x3b9c57){var _0x5b1bf1=_0x52972c;return this[_0x5b1bf1(0x15d)]['add'](_0x3b9c57),_0x35a254[_0x5b1bf1(0x14f)](()=>this['_reporters'][_0x5b1bf1(0xd2)](_0x3b9c57));}[_0x52972c(0xff)](_0x602f41){var _0x271952=_0x52972c;return this[_0x271952(0xf2)][_0x271952(0x159)](_0x602f41);}[_0x52972c(0x12f)](_0x55ab5f){var _0x401a22=_0x52972c;return Array[_0x401a22(0x110)](this[_0x401a22(0x15d)])[_0x401a22(0x10f)](_0x3c2be9=>_0x3c2be9(_0x55ab5f));}}var _0x1c053f=Object[_0x52972c(0xa1)],_0x54198d=(_0x3625b0,_0x268786,_0x56b0a5,_0x262b63)=>{var _0x4814c0=_0x52972c;for(var _0x2b6552=_0x262b63>0x1?void 0x0:_0x262b63?_0x1c053f(_0x268786,_0x56b0a5):_0x268786,_0x4fde90=_0x3625b0[_0x4814c0(0x15a)]-0x1,_0x3d051e;_0x4fde90>=0x0;_0x4fde90--)(_0x3d051e=_0x3625b0[_0x4fde90])&&(_0x2b6552=_0x3d051e(_0x2b6552)||_0x2b6552);return _0x2b6552;},_0x41047a=(_0x3fe8ec,_0x585a09)=>(_0xc66b3b,_0x19aa39)=>_0x585a09(_0xc66b3b,_0x19aa39,_0x3fe8ec);let _0x4048ed=class extends _0x35a254[_0x52972c(0xb4)]{constructor(_0x5daab9){var _0x56adb8=_0x52972c;super(),this[_0x56adb8(0x15b)]=_0x5daab9,this[_0x56adb8(0xcc)]();}[_0x52972c(0xcc)](){var _0x18974d=_0x52972c;[_0x6b1bfb[_0x18974d(0xf4)]['id'],_0x6b1bfb[_0x18974d(0x174)]['id'],_0x48fa50['SetWorksheetActiveOperation']['id']][_0x18974d(0x115)](_0x2438eb=>{var _0x558c20=_0x18974d;this['disposeWithMe'](this[_0x558c20(0x15b)][_0x558c20(0xbf)](_0x2438eb));});}};_0x4048ed=_0x54198d([_0x41047a(0x0,_0x35a254[_0x52972c(0x10b)](_0x58a926))],_0x4048ed);var _0x38e03=function(){var _0x133fd5=_0x52972c;return _0x38e03=Object[_0x133fd5(0x176)]||function(_0x4d02be){var _0x4682ef=_0x133fd5;for(var _0x39b584,_0x2c532c=0x1,_0xfdb8f=arguments[_0x4682ef(0x15a)];_0x2c532c<_0xfdb8f;_0x2c532c++){_0x39b584=arguments[_0x2c532c];for(var _0x2dcdce in _0x39b584)Object[_0x4682ef(0xad)][_0x4682ef(0x10a)]['call'](_0x39b584,_0x2dcdce)&&(_0x4d02be[_0x2dcdce]=_0x39b584[_0x2dcdce]);}return _0x4d02be;},_0x38e03['apply'](this,arguments);},_0x490758=function(_0x266928,_0x230316){var _0x1610b2=_0x52972c,_0x372660={};for(var _0x43edc1 in _0x266928)Object['prototype'][_0x1610b2(0x10a)]['call'](_0x266928,_0x43edc1)&&_0x230316['indexOf'](_0x43edc1)<0x0&&(_0x372660[_0x43edc1]=_0x266928[_0x43edc1]);if(_0x266928!=null&&typeof Object[_0x1610b2(0xd1)]=='function'){for(var _0x35b1a9=0x0,_0x43edc1=Object[_0x1610b2(0xd1)](_0x266928);_0x35b1a9<_0x43edc1[_0x1610b2(0x15a)];_0x35b1a9++)_0x230316[_0x1610b2(0xcb)](_0x43edc1[_0x35b1a9])<0x0&&Object[_0x1610b2(0xad)]['propertyIsEnumerable'][_0x1610b2(0x136)](_0x266928,_0x43edc1[_0x35b1a9])&&(_0x372660[_0x43edc1[_0x35b1a9]]=_0x266928[_0x43edc1[_0x35b1a9]]);}return _0x372660;},_0x224561=_0x263c12[_0x52972c(0xde)](function(_0xf63377,_0x2c8db9){var _0x29538d=_0x52972c,_0x222332=_0xf63377['icon'],_0x4faf1f=_0xf63377['id'],_0x2c6088=_0xf63377[_0x29538d(0xe3)],_0x4c562e=_0xf63377[_0x29538d(0xf1)],_0x112b91=_0x490758(_0xf63377,['icon','id',_0x29538d(0xe3),'extend']),_0x5d01d0=_0x29538d(0x167)['concat'](_0x4faf1f,'\x20')['concat'](_0x2c6088||'')[_0x29538d(0x150)](),_0x349f99=_0x263c12[_0x29538d(0xa4)]('_'[_0x29538d(0xec)](_0x49545b()));return _0x397e10(_0x222332,''['concat'](_0x4faf1f),{'defIds':_0x222332['defIds'],'idSuffix':_0x349f99[_0x29538d(0x13c)]},_0x38e03({'ref':_0x2c8db9,'className':_0x5d01d0},_0x112b91),_0x4c562e);});function _0x397e10(_0x3dc47f,_0xe16898,_0x4fd703,_0x303ba6,_0x941471){var _0xc2168d=_0x52972c;return _0x263c12[_0xc2168d(0x14c)](_0x3dc47f[_0xc2168d(0x124)],_0x38e03(_0x38e03({'key':_0xe16898},_0x42546d(_0x3dc47f,_0x4fd703,_0x941471)),_0x303ba6),(_0x2baa21(_0x3dc47f,_0x4fd703)[_0xc2168d(0x165)]||[])[_0xc2168d(0x10f)](function(_0x472215,_0x1b1031){var _0x5ac907=_0xc2168d;return _0x397e10(_0x472215,''[_0x5ac907(0xec)](_0xe16898,'-')[_0x5ac907(0xec)](_0x3dc47f[_0x5ac907(0x124)],'-')['concat'](_0x1b1031),_0x4fd703,void 0x0,_0x941471);}));}function _0x42546d(_0x3e73a6,_0x6e8368,_0x149b51){var _0x248df0=_0x52972c,_0x4fdb76=_0x38e03({},_0x3e73a6[_0x248df0(0xb8)]);_0x149b51!=null&&_0x149b51['colorChannel1']&&_0x4fdb76['fill']==='colorChannel1'&&(_0x4fdb76[_0x248df0(0x99)]=_0x149b51[_0x248df0(0xe8)]),_0x3e73a6[_0x248df0(0x124)]===_0x248df0(0x12b)&&_0x4fdb76['id']&&(_0x4fdb76['id']=_0x4fdb76['id']+_0x6e8368['idSuffix']),Object[_0x248df0(0x14b)](_0x4fdb76)[_0x248df0(0x115)](function(_0x2f7f6c){var _0x496515=_0x248df0,_0x3a217d=_0x2f7f6c[0x0],_0x4cea6b=_0x2f7f6c[0x1];_0x3a217d===_0x496515(0x12b)&&typeof _0x4cea6b=='string'&&(_0x4fdb76[_0x3a217d]=_0x4cea6b['replace'](/url\(#(.*)\)/,'url(#$1'[_0x496515(0xec)](_0x6e8368[_0x496515(0x163)],')')));});var _0x56d3b4=_0x6e8368['defIds'];return!_0x56d3b4||_0x56d3b4[_0x248df0(0x15a)]===0x0||(_0x3e73a6[_0x248df0(0x124)]===_0x248df0(0x171)&&_0x4fdb76['xlink:href']&&(_0x4fdb76[_0x248df0(0x8b)]=_0x4fdb76[_0x248df0(0x8b)]+_0x6e8368[_0x248df0(0x163)]),Object[_0x248df0(0x14b)](_0x4fdb76)['forEach'](function(_0x53ab7a){var _0x3ecca8=_0x248df0,_0x37d2eb=_0x53ab7a[0x0],_0x388dc3=_0x53ab7a[0x1];typeof _0x388dc3=='string'&&(_0x4fdb76[_0x37d2eb]=_0x388dc3['replace'](/url\(#(.*)\)/,_0x3ecca8(0x112)[_0x3ecca8(0xec)](_0x6e8368[_0x3ecca8(0x163)],')')));})),_0x4fdb76;}function _0x2baa21(_0x4d73d2,_0x38fcfa){var _0x1eb238=_0x52972c,_0x542a93,_0x1b9683=_0x38fcfa[_0x1eb238(0x130)];return!_0x1b9683||_0x1b9683[_0x1eb238(0x15a)]===0x0?_0x4d73d2:_0x4d73d2[_0x1eb238(0x124)]===_0x1eb238(0x175)&&(!((_0x542a93=_0x4d73d2[_0x1eb238(0x165)])===null||_0x542a93===void 0x0)&&_0x542a93[_0x1eb238(0x15a)])?_0x38e03(_0x38e03({},_0x4d73d2),{'children':_0x4d73d2[_0x1eb238(0x165)][_0x1eb238(0x10f)](function(_0x1a5f01){var _0x360b72=_0x1eb238;return typeof _0x1a5f01[_0x360b72(0xb8)]['id']=='string'&&_0x1b9683&&_0x1b9683['indexOf'](_0x1a5f01[_0x360b72(0xb8)]['id'])>-0x1?_0x38e03(_0x38e03({},_0x1a5f01),{'attrs':_0x38e03(_0x38e03({},_0x1a5f01[_0x360b72(0xb8)]),{'id':_0x1a5f01[_0x360b72(0xb8)]['id']+_0x38fcfa[_0x360b72(0x163)]})}):_0x1a5f01;})}):_0x4d73d2;}function _0x49545b(){var _0x180ed9=_0x52972c;return Math[_0x180ed9(0xca)]()['toString'](0x24)['substring'](0x2,0x8);}_0x224561[_0x52972c(0xa3)]=_0x52972c(0x16a);var _0x5f3e3e={'tag':_0x52972c(0x8e),'attrs':{'fill':_0x52972c(0xaa),'viewBox':_0x52972c(0x10e),'width':_0x52972c(0x146),'height':_0x52972c(0x146)},'children':[{'tag':'path','attrs':{'fill':_0x52972c(0xb6),'d':_0x52972c(0x113)}},{'tag':'path','attrs':{'fill':_0x52972c(0xb6),'d':_0x52972c(0xc0),'fillRule':_0x52972c(0x16f),'clipRule':'evenodd'}}]},_0x13c7ec=_0x263c12[_0x52972c(0xde)](function(_0x2a4f19,_0x2f4f66){var _0x3fd979=_0x52972c;return _0x263c12[_0x3fd979(0x14c)](_0x224561,Object[_0x3fd979(0x176)]({},_0x2a4f19,{'id':_0x3fd979(0xe6),'ref':_0x2f4f66,'icon':_0x5f3e3e}));});_0x13c7ec[_0x52972c(0xa3)]='LiveShareSingle';var _0x13ae9f=Object[_0x52972c(0xa1)],_0x29b8d1=(_0x2c02e4,_0x3371c0,_0x400f7d,_0x5b412b)=>{var _0x102f1a=_0x52972c;for(var _0x2f60f8=_0x5b412b>0x1?void 0x0:_0x5b412b?_0x13ae9f(_0x3371c0,_0x400f7d):_0x3371c0,_0xeb6c3=_0x2c02e4[_0x102f1a(0x15a)]-0x1,_0x31f418;_0xeb6c3>=0x0;_0xeb6c3--)(_0x31f418=_0x2c02e4[_0xeb6c3])&&(_0x2f60f8=_0x31f418(_0x2f60f8)||_0x2f60f8);return _0x2f60f8;},_0x409719=(_0x2b0874,_0x44b71d)=>(_0xddaef6,_0x2a2aa1)=>_0x44b71d(_0xddaef6,_0x2a2aa1,_0x2b0874);_0x1eb8b3['LiveShareController']=class extends _0x35a254[_0x52972c(0xb3)]{constructor(_0x4153d9,_0x162868,_0x43f0d6){var _0x516243=_0x52972c;super(),_0x52b429(this,_0x516243(0xe9),new Map()),(this[_0x516243(0xe5)]=_0x4153d9,this[_0x516243(0x16d)]=_0x162868,this[_0x516243(0x138)]=_0x43f0d6,this[_0x516243(0xcc)]());}async['getLiveShareCoordinator'](_0x2b574c){var _0x38e051=_0x52972c;return this[_0x38e051(0xe9)][_0x38e051(0x159)](_0x2b574c)||await this[_0x38e051(0x154)](_0x2b574c),this[_0x38e051(0xe9)][_0x38e051(0x127)](_0x2b574c);}[_0x52972c(0xcc)](){var _0x96c9c0=_0x52972c;this[_0x96c9c0(0xe5)][_0x96c9c0(0x145)](_0x35a254[_0x96c9c0(0x114)][_0x96c9c0(0xe2)])['pipe'](_0x8b0515[_0x96c9c0(0x119)](this[_0x96c9c0(0x143)]))[_0x96c9c0(0x106)](async _0x3fce9d=>{var _0x18281e=_0x96c9c0;const _0x2185cf=_0x3fce9d[_0x18281e(0x169)]();this[_0x18281e(0xe9)][_0x18281e(0x159)](_0x2185cf)||this[_0x18281e(0x154)](_0x2185cf);}),this[_0x96c9c0(0xe5)][_0x96c9c0(0xb9)](_0x35a254[_0x96c9c0(0x114)][_0x96c9c0(0xe2)])[_0x96c9c0(0xc6)](_0x8b0515['takeUntil'](this[_0x96c9c0(0x143)]))[_0x96c9c0(0x106)](_0x239ba7=>{var _0x45f0ff=_0x96c9c0;const _0x2913d9=_0x239ba7['getUnitId'](),_0x2cda4d=this[_0x45f0ff(0xe9)][_0x45f0ff(0x127)](_0x2913d9);_0x2cda4d==null||_0x2cda4d[_0x45f0ff(0x144)]();});}async['_startLiveShareCoordinator'](_0x192e39){var _0x37634d=_0x52972c;const _0xd278e4=await this['_collabSessionService'][_0x37634d(0xd7)](_0x192e39),_0x552b5c=this[_0x37634d(0x16d)][_0x37634d(0x8a)](_0x1eb8b3[_0x37634d(0xba)],_0x192e39,_0xd278e4);return _0x552b5c[_0x37634d(0x13f)](),this[_0x37634d(0xe9)][_0x37634d(0xef)](_0x192e39,_0x552b5c),_0x552b5c;}},_0x1eb8b3[_0x52972c(0x134)]=_0x29b8d1([_0x409719(0x0,_0x35a254[_0x52972c(0xc4)]),_0x409719(0x1,_0x35a254[_0x52972c(0x10b)](_0x35a254['Injector'])),_0x409719(0x2,_0x35a254[_0x52972c(0x10b)](_0x384945[_0x52972c(0x11c)]))],_0x1eb8b3[_0x52972c(0x134)]);var _0x142c64=(_0x25e5d0=>(_0x25e5d0[_0x52972c(0x12a)]='offline',_0x25e5d0[_0x52972c(0xc1)]='idle',_0x25e5d0[_0x52972c(0xa9)]='following',_0x25e5d0[_0x52972c(0x132)]=_0x52972c(0xa0),_0x25e5d0[_0x52972c(0x111)]=_0x52972c(0xbb),_0x25e5d0))(_0x142c64||{});const _0x18e7b8='SAME_OPERATION_SHARE_INTERVAL',_0x537530=0xc8;_0x1eb8b3[_0x52972c(0xba)]=class extends _0x35a254[_0x52972c(0xb3)]{constructor(_0x29945c,_0x5f1844,_0x47d279,_0x525ccb,_0x36a83c){var _0x51cbde=_0x52972c;super(),_0x52b429(this,'_status$',new _0x4e83a9[(_0x51cbde(0xd9))](_0x51cbde(0x147))),_0x52b429(this,'status$',this['_status$'][_0x51cbde(0x122)]()),_0x52b429(this,_0x51cbde(0xcc),!0x1),_0x52b429(this,_0x51cbde(0x8d),null),_0x52b429(this,_0x51cbde(0x129),null),(this[_0x51cbde(0x10d)]=_0x29945c,this['_collabSession']=_0x5f1844,this['_configService']=_0x47d279,this['_liveShareService']=_0x525ccb,this[_0x51cbde(0x118)]=_0x36a83c);}get[_0x52972c(0x141)](){var _0x3f56f4=_0x52972c;return this[_0x3f56f4(0xbd)][_0x3f56f4(0xae)]();}[_0x52972c(0x144)](){var _0x5243f3=_0x52972c,_0xccf597;(_0xccf597=this[_0x5243f3(0x8d)])==null||_0xccf597[_0x5243f3(0x144)](),this[_0x5243f3(0xbd)]['next'](_0x5243f3(0x147)),this[_0x5243f3(0xbd)][_0x5243f3(0x17e)]();}[_0x52972c(0x13f)](){var _0x408794=_0x52972c;this[_0x408794(0xcc)]||(this['_init']=!0x0,this['_collabSession'][_0x408794(0x161)][_0x408794(0xc6)](_0x8b0515[_0x408794(0x119)](this[_0x408794(0x143)]))[_0x408794(0x106)](_0x1f1436=>{var _0x5b7f9a=_0x408794;switch(_0x1f1436){case _0x384945['SessionStatus'][_0x5b7f9a(0x12a)]:this[_0x5b7f9a(0x91)]();break;case _0x384945[_0x5b7f9a(0xf3)][_0x5b7f9a(0x97)]:this[_0x5b7f9a(0x14e)]();break;}}),this[_0x408794(0x16b)]['event$']['pipe'](_0x8b0515[_0x408794(0x119)](this[_0x408794(0x143)]))[_0x408794(0x106)](_0x316a2c=>{var _0x4144c7=_0x408794;const {eventID:_0x32c234}=_0x316a2c;switch(_0x32c234){case _0x251eb9[_0x4144c7(0x133)][_0x4144c7(0xc3)]:this[_0x4144c7(0xf6)](_0x316a2c);break;case _0x251eb9[_0x4144c7(0x133)][_0x4144c7(0x160)]:this[_0x4144c7(0x9c)](_0x316a2c);break;case _0x251eb9[_0x4144c7(0x133)][_0x4144c7(0x178)]:this[_0x4144c7(0xe1)]();break;case _0x251eb9[_0x4144c7(0x133)][_0x4144c7(0xda)]:this[_0x4144c7(0x96)](_0x316a2c);break;}}));}['tryStartPresenting'](){var _0x183d07=_0x52972c;this['_collabSession'][_0x183d07(0x108)]({'eventID':_0x251eb9['CollaborationEvent'][_0x183d07(0x172)],'data':{'unitID':this[_0x183d07(0x10d)],'userID':this['_collabSession'][_0x183d07(0xd0)]()}},this[_0x183d07(0x10d)]);}[_0x52972c(0xac)](){var _0x2b4a0d=_0x52972c;this[_0x2b4a0d(0x141)]===_0x2b4a0d(0xbb)&&(this[_0x2b4a0d(0xbd)][_0x2b4a0d(0xb1)](_0x2b4a0d(0x147)),this[_0x2b4a0d(0x16b)]['send']({'eventID':_0x251eb9[_0x2b4a0d(0x133)][_0x2b4a0d(0x178)],'data':{'unitID':this[_0x2b4a0d(0x10d)]}},this[_0x2b4a0d(0x10d)]));}[_0x52972c(0xd3)](){var _0xe5a140=_0x52972c;this[_0xe5a140(0x141)]===_0xe5a140(0xa0)&&(this[_0xe5a140(0xbd)][_0xe5a140(0xb1)](_0xe5a140(0xa8)),this[_0xe5a140(0x170)]());}[_0x52972c(0x11d)](){var _0xc03c25=_0x52972c;this[_0xc03c25(0x141)]==='following'&&this[_0xc03c25(0x16e)]();}[_0x52972c(0xf6)](_0x1a5ce1){var _0x47a61a=_0x52972c;const {presenter:_0x15209c}=_0x1a5ce1['data'],_0x1c3e43=this[_0x47a61a(0x16b)][_0x47a61a(0xd0)]();this['_presenter']=_0x15209c,_0x15209c===_0x1c3e43?(this[_0x47a61a(0x16e)](),this[_0x47a61a(0x16c)]()):this[_0x47a61a(0x141)]!==_0x47a61a(0xa0)&&(this[_0x47a61a(0xa6)](),this[_0x47a61a(0x170)]());}[_0x52972c(0x158)](){var _0x233626=_0x52972c;const _0x4c44f0={'eventID':_0x251eb9[_0x233626(0x133)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x233626(0x16b)][_0x233626(0x108)](_0x4c44f0,this[_0x233626(0x10d)]);}[_0x52972c(0xe1)](){var _0x574f33=_0x52972c;this[_0x574f33(0x129)]=null,this[_0x574f33(0x141)]!==_0x574f33(0xbb)&&this[_0x574f33(0x103)]();}[_0x52972c(0x96)](_0x325779){var _0x57b463=_0x52972c;if(this['_status']===_0x57b463(0xa8)&&this['_presenter']===_0x325779['data'][_0x57b463(0x10c)]){const _0x443f40=_0x251eb9[_0x57b463(0x131)](_0x325779[_0x57b463(0x13d)])[_0x57b463(0x90)][_0x57b463(0xa2)]()[_0x57b463(0xbc)](_0x303192=>_0x303192['id']===_0x48fa50[_0x57b463(0x139)]['id']);if(_0x443f40){const _0x33765a=_0x443f40[_0x57b463(0xf8)]['unitId'],_0x5061ac=_0x443f40[_0x57b463(0xf8)][_0x57b463(0x12e)]['id'];setTimeout(()=>{var _0x3bc6a8=_0x57b463;this[_0x3bc6a8(0x118)][_0x3bc6a8(0xd4)](_0x48fa50['SetWorksheetActiveOperation']['id'],{'unitId':_0x33765a,'subUnitId':_0x5061ac},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x48ceb0=_0x52972c;this[_0x48ceb0(0xbd)][_0x48ceb0(0xb1)](_0x48ceb0(0xbb));const _0x378a57=new Map(),_0x148acb=this[_0x48ceb0(0x8d)]=new _0x35a254[(_0x48ceb0(0x153))]();_0x148acb[_0x48ceb0(0x98)](_0x35a254[_0x48ceb0(0x14f)](()=>{var _0x2c9b10=_0x48ceb0;_0x378a57[_0x2c9b10(0x115)](_0xd2e70b=>_0xd2e70b['complete']()),_0x378a57[_0x2c9b10(0xdd)]();})),_0x148acb['add'](this[_0x48ceb0(0x118)][_0x48ceb0(0x12d)](_0x231fc7=>{var _0x33609e=_0x48ceb0,_0x7c1436;if(_0x231fc7['type']!==_0x35a254['CommandType'][_0x33609e(0x14d)]||!this[_0x33609e(0x15b)][_0x33609e(0xff)](_0x231fc7['id']))return;const {id:_0x4cb83a}=_0x231fc7;let _0xb9d29d;_0x378a57[_0x33609e(0x159)](_0x4cb83a)?_0xb9d29d=_0x378a57['get'](_0x4cb83a):(_0xb9d29d=new _0x4e83a9[(_0x33609e(0xf9))](),_0x378a57['set'](_0x4cb83a,_0xb9d29d),_0xb9d29d['pipe'](_0x8b0515['throttleTime']((_0x7c1436=this[_0x33609e(0x156)]['getConfig'](_0x18e7b8))!=null?_0x7c1436:_0x537530,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x33609e(0x106)](_0x69d859=>{var _0x390b80=_0x33609e;this[_0x390b80(0x16b)][_0x390b80(0x108)]({'eventID':_0x251eb9[_0x390b80(0x133)][_0x390b80(0x160)],'data':{'unitID':this['_unitID'],'operations':{[_0x69d859['id']]:{'id':_0x69d859['id'],'params':JSON[_0x390b80(0xb2)](_0x69d859['params'])}}}},this[_0x390b80(0x10d)]);})),_0xb9d29d[_0x33609e(0xb1)](_0x231fc7);})),this[_0x48ceb0(0x15b)][_0x48ceb0(0x12f)](this['_unitID'])[_0x48ceb0(0x115)](_0x142c44=>this[_0x48ceb0(0x16b)][_0x48ceb0(0x108)]({'eventID':_0x251eb9[_0x48ceb0(0x133)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x48ceb0(0x10d)],'operations':{[_0x142c44['id']]:{'id':_0x142c44['id'],'params':JSON[_0x48ceb0(0xb2)](_0x142c44[_0x48ceb0(0xf8)])}}}},this[_0x48ceb0(0x10d)]));}['_stopPresenting'](){var _0x5bd5c9=_0x52972c,_0x3fbf4f;this['_status$']['next'](_0x5bd5c9(0x147)),(_0x3fbf4f=this[_0x5bd5c9(0x8d)])==null||_0x3fbf4f[_0x5bd5c9(0x144)](),this['_commandDisposable']=null;}[_0x52972c(0x170)](){var _0x2f8ea5=_0x52972c,_0x3ce0d0;(_0x3ce0d0=this[_0x2f8ea5(0x8d)])==null||_0x3ce0d0[_0x2f8ea5(0x144)](),this[_0x2f8ea5(0xbd)][_0x2f8ea5(0xb1)](_0x2f8ea5(0xa8));}[_0x52972c(0x103)](){var _0x17491d=_0x52972c,_0x304a95;this['_status$'][_0x17491d(0xb1)](_0x17491d(0x147)),(_0x304a95=this['_commandDisposable'])==null||_0x304a95[_0x17491d(0x144)](),this['_commandDisposable']=null;}[_0x52972c(0x16e)](){var _0x409c8d=_0x52972c,_0x4f3671;this[_0x409c8d(0xbd)][_0x409c8d(0xb1)](_0x409c8d(0xa0)),(_0x4f3671=this[_0x409c8d(0x8d)])==null||_0x4f3671[_0x409c8d(0x144)]();}[_0x52972c(0x9c)](_0x10244b){var _0x54af59=_0x52972c;if([_0x54af59(0xbb),_0x54af59(0xa0),_0x54af59(0x100)][_0x54af59(0xc7)](this[_0x54af59(0x141)])||!_0x10244b['data'][_0x54af59(0x11a)]||_0x10244b[_0x54af59(0x13d)][_0x54af59(0x11a)]===this[_0x54af59(0x16b)][_0x54af59(0xd0)]())return;this[_0x54af59(0x141)]==='idle'&&this[_0x54af59(0x170)]();const _0x4607de=_0x10244b[_0x54af59(0x13d)][_0x54af59(0x13e)];Object[_0x54af59(0xd6)](_0x4607de)['forEach'](_0x41c536=>{var _0x4fb6ba=_0x54af59;this[_0x4fb6ba(0x118)]['executeCommand'](_0x41c536['id'],_0x41c536[_0x4fb6ba(0xf8)]?JSON[_0x4fb6ba(0x12c)](_0x41c536[_0x4fb6ba(0xf8)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x340284=_0x52972c,_0x244916;this['_status$'][_0x340284(0xb1)](_0x340284(0x100)),(_0x244916=this[_0x340284(0x8d)])==null||_0x244916[_0x340284(0x144)]();}['_handleOnline'](){var _0x3e6a92=_0x52972c;this['_status$'][_0x3e6a92(0xb1)](_0x3e6a92(0x147)),this[_0x3e6a92(0x158)]();}},_0x1eb8b3['LiveShareCoordinator']=_0x29b8d1([_0x409719(0x2,_0x35a254[_0x52972c(0xb7)]),_0x409719(0x3,_0x35a254[_0x52972c(0x10b)](_0x58a926)),_0x409719(0x4,_0x35a254['ICommandService'])],_0x1eb8b3[_0x52972c(0xba)]);function _0x4b5050(){var _0x5cd9f4=_0x52972c;const _0x4a676c=_0x211c35[_0x5cd9f4(0x11b)](_0x1eb8b3['LiveShareController']),_0x9d16de=_0x211c35[_0x5cd9f4(0x11b)](_0x35a254[_0x5cd9f4(0xc4)]),_0x2d2914=_0x211c35['useObservable'](()=>_0x9d16de[_0x5cd9f4(0xee)](_0x35a254[_0x5cd9f4(0x114)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x596372,_0x5e2c8d]=_0x263c12[_0x5cd9f4(0xce)](null),[_0x201da6,_0x48229b]=_0x263c12['useState'](_0x142c64['IDLE']),_0xfdee79=_0x263c12[_0x5cd9f4(0xa4)](null);return _0x263c12['useEffect'](()=>(_0x2d2914&&_0x4a676c[_0x5cd9f4(0xa7)](_0x2d2914['getUnitId']())[_0x5cd9f4(0x93)](_0x155d48=>{var _0x3eaab5=_0x5cd9f4;_0x5e2c8d(_0x155d48),_0xfdee79[_0x3eaab5(0x13c)]=_0x155d48[_0x3eaab5(0xb0)][_0x3eaab5(0x106)](_0x2d9b24=>{_0x48229b(_0x2d9b24);});}),()=>{var _0x53fb88=_0x5cd9f4,_0x274949;(_0x274949=_0xfdee79[_0x53fb88(0x13c)])==null||_0x274949[_0x53fb88(0x89)](),_0xfdee79['current']=null;}),[_0x2d2914,_0x4a676c]),_0x596372?_0x17df5b[_0x5cd9f4(0xf7)](_0x49b550[_0x5cd9f4(0xea)],{'align':_0x5cd9f4(0xfa),'disabled':_0x201da6===_0x142c64[_0x5cd9f4(0x12a)],'className':_0x5cd9f4(0x94),'overlay':_0x17df5b[_0x5cd9f4(0xf7)](_0x9fd9bb,{'status':_0x201da6,'coordinator':_0x596372}),'children':_0x17df5b['jsx'](_0x5cd9f4(0xa5),{'className':_0x49b550[_0x5cd9f4(0xbe)](_0x5cd9f4(0xd5),{'univer-cursor-not-allowed':_0x201da6===_0x142c64[_0x5cd9f4(0x12a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x201da6!==_0x142c64[_0x5cd9f4(0x12a)]}),'type':_0x5cd9f4(0xa5),'children':_0x17df5b[_0x5cd9f4(0xf7)](_0x13c7ec,{'className':'univer-size-4'})})}):null;}function _0x9fd9bb(_0x39a71b){var _0x47d3b3=_0x52972c;const {status:_0x4efc6e,coordinator:_0x2ff4b2}=_0x39a71b;switch(_0x4efc6e){case _0x142c64[_0x47d3b3(0xc1)]:return _0x17df5b[_0x47d3b3(0xf7)](_0x54fac8,{'coordinator':_0x2ff4b2});case _0x142c64[_0x47d3b3(0xa9)]:return _0x17df5b['jsx'](_0xf95f8,{'coordinator':_0x2ff4b2});case _0x142c64['NOT_FOLLOWING']:return _0x17df5b[_0x47d3b3(0xf7)](_0x3b0b0b,{'coordinator':_0x2ff4b2});case _0x142c64[_0x47d3b3(0x12a)]:return _0x17df5b[_0x47d3b3(0xf7)](_0x233a92,{});case _0x142c64[_0x47d3b3(0x111)]:return _0x17df5b[_0x47d3b3(0xf7)](_0x1091e2,{'coordinator':_0x2ff4b2});default:return null;}}function _0x54fac8(_0x2b979e){var _0x23d82b=_0x52972c;const {coordinator:_0xf822dd}=_0x2b979e;return _0x17df5b[_0x23d82b(0xb5)](_0x17df5b[_0x23d82b(0x92)],{'children':[_0x17df5b[_0x23d82b(0xf7)](_0x23d82b(0x17b),{'className':_0x23d82b(0xdf),'children':'Present\x20this\x20document'}),_0x17df5b[_0x23d82b(0xf7)](_0x49b550[_0x23d82b(0x11f)],{'size':_0x23d82b(0x104),'type':_0x23d82b(0x15e),'onClick':()=>_0xf822dd['tryStartPresenting'](),'children':'Start'})]});}function _0xf95f8(_0x19aa6f){var _0x251102=_0x52972c;const {coordinator:_0x9f8b1a}=_0x19aa6f;return _0x17df5b[_0x251102(0xb5)](_0x17df5b[_0x251102(0x92)],{'children':[_0x17df5b[_0x251102(0xf7)]('div',{'className':_0x251102(0xdf),'children':_0x251102(0x107)}),_0x17df5b[_0x251102(0xf7)](_0x49b550[_0x251102(0x11f)],{'size':_0x251102(0x104),'type':_0x251102(0x15e),'onClick':()=>_0x9f8b1a[_0x251102(0x11d)](),'children':_0x251102(0xcf)})]});}function _0x3b0b0b(_0x2b0567){var _0x33297a=_0x52972c;const {coordinator:_0x5be89a}=_0x2b0567;return _0x17df5b[_0x33297a(0xb5)](_0x17df5b[_0x33297a(0x92)],{'children':[_0x17df5b[_0x33297a(0xf7)](_0x33297a(0x17b),{'className':_0x33297a(0xdf),'children':_0x33297a(0x9f)}),_0x17df5b[_0x33297a(0xf7)](_0x49b550['Button'],{'size':_0x33297a(0x104),'type':_0x33297a(0xe7),'onClick':()=>_0x5be89a[_0x33297a(0xd3)](),'children':'Start\x20following'})]});}function _0x1091e2(_0x2f1207){var _0x54e9c8=_0x52972c;const {coordinator:_0x503ba7}=_0x2f1207;return _0x17df5b[_0x54e9c8(0xb5)](_0x17df5b[_0x54e9c8(0x92)],{'children':[_0x17df5b[_0x54e9c8(0xf7)](_0x54e9c8(0x17b),{'className':_0x54e9c8(0xdf),'children':_0x54e9c8(0xf0)}),_0x17df5b[_0x54e9c8(0xf7)](_0x49b550[_0x54e9c8(0x11f)],{'size':_0x54e9c8(0x104),'type':_0x54e9c8(0x15e),'onClick':()=>_0x503ba7[_0x54e9c8(0xac)](),'children':_0x54e9c8(0xe4)})]});}function _0x233a92(){var _0x2cafed=_0x52972c;return _0x17df5b['jsx'](_0x17df5b[_0x2cafed(0x92)],{'children':'You\x27are\x20offline.'});}var _0x3af117=Object[_0x52972c(0xa1)],_0x2bc32b=(_0x46fd71,_0x2f4039,_0x311067,_0x2f3750)=>{for(var _0x8da7b=_0x2f3750>0x1?void 0x0:_0x2f3750?_0x3af117(_0x2f4039,_0x311067):_0x2f4039,_0x363cb8=_0x46fd71['length']-0x1,_0x1b25b4;_0x363cb8>=0x0;_0x363cb8--)(_0x1b25b4=_0x46fd71[_0x363cb8])&&(_0x8da7b=_0x1b25b4(_0x8da7b)||_0x8da7b);return _0x8da7b;},_0x2424a7=(_0x562caf,_0x29ed64)=>(_0x34ce44,_0xe9732)=>_0x29ed64(_0x34ce44,_0xe9732,_0x562caf);_0x1eb8b3[_0x52972c(0xeb)]=class extends _0x35a254[_0x52972c(0xb4)]{constructor(_0x114be6,_0xe38b3c){var _0x5bc1b0=_0x52972c;super(),this['_injector']=_0x114be6,this[_0x5bc1b0(0x149)]=_0xe38b3c,this['_mountLiveShare']();}[_0x52972c(0x177)](){var _0x213b9a=_0x52972c;this[_0x213b9a(0x123)](this[_0x213b9a(0x149)][_0x213b9a(0x128)](_0x211c35[_0x213b9a(0xfd)]['HEADER_MENU'],()=>_0x211c35[_0x213b9a(0x164)](_0x4b5050,this[_0x213b9a(0x16d)])));}},_0x1eb8b3[_0x52972c(0xeb)]=_0x2bc32b([_0x2424a7(0x0,_0x35a254['Inject'](_0x35a254['Injector'])),_0x2424a7(0x1,_0x211c35[_0x52972c(0x179)])],_0x1eb8b3[_0x52972c(0xeb)]);var _0x5ba317=Object[_0x52972c(0x13a)],_0x1a30ad=Object[_0x52972c(0xa1)],_0x5a98a0=(_0x5cfaff,_0x1e5c1d,_0x53b2df)=>_0x1e5c1d in _0x5cfaff?_0x5ba317(_0x5cfaff,_0x1e5c1d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53b2df}):_0x5cfaff[_0x1e5c1d]=_0x53b2df,_0x5d5c63=(_0x10a000,_0x548c60,_0x3aaa85,_0x17f366)=>{var _0x107d40=_0x52972c;for(var _0x584a5a=_0x17f366>0x1?void 0x0:_0x17f366?_0x1a30ad(_0x548c60,_0x3aaa85):_0x548c60,_0x5f55a9=_0x10a000[_0x107d40(0x15a)]-0x1,_0x51abfb;_0x5f55a9>=0x0;_0x5f55a9--)(_0x51abfb=_0x10a000[_0x5f55a9])&&(_0x584a5a=_0x51abfb(_0x584a5a)||_0x584a5a);return _0x584a5a;},_0x7f44ec=(_0x1eb912,_0x539187)=>(_0x242b5d,_0xef4955)=>_0x539187(_0x242b5d,_0xef4955,_0x1eb912),_0x2ed43d=(_0x24c4c5,_0x3298a8,_0xd48664)=>_0x5a98a0(_0x24c4c5,typeof _0x3298a8!='symbol'?_0x3298a8+'':_0x3298a8,_0xd48664);const _0x2953e6=_0x52972c(0x166);_0x1eb8b3[_0x52972c(0x137)]=class extends _0x35a254[_0x52972c(0x9a)]{constructor(_0x3a2231=_0x2d5b59,_0x326ce3,_0x66d3a9){var _0x21adbd=_0x52972c;super(),this[_0x21adbd(0xdb)]=_0x3a2231,this['_injector']=_0x326ce3,this[_0x21adbd(0x156)]=_0x66d3a9;const {..._0x24df41}=_0x35a254['merge']({},_0x2d5b59,this['_config']);this[_0x21adbd(0x156)]['setConfig'](_0x3aaace,_0x24df41);}['onStarting'](){var _0x741bd2=_0x52972c;_0x35a254['registerDependencies'](this[_0x741bd2(0x16d)],_0x35a254[_0x741bd2(0x101)]([[_0x58a926],[_0x1eb8b3[_0x741bd2(0x134)]],[_0x4048ed],[_0x1eb8b3[_0x741bd2(0xeb)]]],this[_0x741bd2(0xdb)][_0x741bd2(0x151)])),_0x35a254['touchDependencies'](this[_0x741bd2(0x16d)],[[_0x4048ed]]);}[_0x52972c(0x17c)](){var _0x2e9604=_0x52972c;_0x35a254['touchDependencies'](this[_0x2e9604(0x16d)],[[_0x1eb8b3[_0x2e9604(0xeb)]]]);}},_0x2ed43d(_0x1eb8b3[_0x52972c(0x137)],_0x52972c(0xc8),_0x35a254[_0x52972c(0x114)][_0x52972c(0xfc)]),_0x2ed43d(_0x1eb8b3['UniverLiveSharePlugin'],_0x52972c(0x140),_0x2953e6),_0x1eb8b3[_0x52972c(0x137)]=_0x5d5c63([_0x35a254[_0x52972c(0xe0)](_0x384945[_0x52972c(0x116)]),_0x7f44ec(0x1,_0x35a254[_0x52972c(0x10b)](_0x35a254[_0x52972c(0x157)])),_0x7f44ec(0x2,_0x35a254[_0x52972c(0xb7)])],_0x1eb8b3[_0x52972c(0x137)]),_0x1eb8b3[_0x52972c(0x15f)]=_0x4b5050,_0x1eb8b3[_0x52972c(0x8c)]=_0x58a926,_0x1eb8b3[_0x52972c(0xab)]=_0x142c64,Object[_0x52972c(0x13a)](_0x1eb8b3,Symbol[_0x52972c(0x120)],{'value':_0x52972c(0x102)});}));function _0x76be(_0x120c59,_0x41dcbe){var _0x2c845c=_0x2c84();return _0x76be=function(_0x76be1b,_0x26e85a){_0x76be1b=_0x76be1b-0x87;var _0x19635e=_0x2c845c[_0x76be1b];return _0x19635e;},_0x76be(_0x120c59,_0x41dcbe);}function _0x2c84(){var _0x1d99b3=['subscribe','You\x27re\x20following\x20the\x20presenter','send','react','hasOwnProperty','Inject','memberID','_unitID','0\x200\x2016\x2016','map','from','PRESENTING','url(#$1','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','UniverInstanceType','forEach','UniverCollaborationClientPlugin','UniverDesign','_commandService','takeUntil','presenter','useDependency','CollaborationSessionService','stopFollowing','exports','Button','toStringTag','581qYOViZ','asObservable','disposeWithMe','tag','rxjs/operators','@univerjs-pro/collaboration','get','registerComponent','_presenter','OFFLINE','mask','parse','onCommandExecuted','sheet','getInitialStates','defIds','parseProtocolChangeset','NOT_FOLLOWING','CollaborationEvent','LiveShareController','@univerjs-pro/collaboration-client','call','UniverLiveSharePlugin','_collabSessionService','InsertSheetMutation','defineProperty','99qnVBIP','current','data','operations','init','pluginName','_status','amd','dispose$','dispose','getTypeOfUnitAdded$','1em','idle','150276JGtsIB','_uiPartsService','rxjs','entries','createElement','OPERATION','_handleOnline','toDisposable','trim','override','react/jsx-runtime','DisposableCollection','_startLiveShareCoordinator','4168YSpxNv','_configService','Injector','_fetchOperations','has','length','_liveShareService','UniverCore','_reporters','default','LiveShare','LIVESHARE_OPERATION','sessionStatus$','registerInitialStateReporter','idSuffix','connectInjector','children','UNIVER_LIVE_SHARE_PLUGIN','univerjs-icon\x20univerjs-icon-','@univerjs/ui','getUnitId','UniverIcon','_collabSession','_startPresenting','_injector','_stopFollowing','evenodd','_startFollowing','use','LIVESHARE_REQUEST_HOST','1078kABMND','SetScrollOperation','defs','assign','_mountLiveShare','LIVESHARE_TERMINATE','IUIPartsService','970WsiDZm','div','onRendered','30gTONEJ','complete','434696qVeWal','UniverSheetsUi','unsubscribe','createInstance','xlink:href','LiveShareService','_commandDisposable','svg','@univerjs/core','mutations','_handleOffline','Fragment','then','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','symbol','_handleNewChangeSets','ONLINE','add','fill','Plugin','UniverProLiveShare','_handleOperation','function','UniverProCollaborationClient','You\x27re\x20not\x20following\x20the\x20presenter','not-following','getOwnPropertyDescriptor','reverse','displayName','useRef','button','_stopPresenting','getLiveShareCoordinator','following','FOLLOWING','none','LiveShareStatus','stopPresenting','prototype','getValue','@univerjs/sheets-ui','status$','next','stringify','RxDisposable','Disposable','jsxs','currentColor','IConfigService','attrs','getTypeOfUnitDisposed$','LiveShareCoordinator','presenting','find','_status$','clsx','registerSharedOperation','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','IDLE','55372eBqPfh','LIVESHARE_NEW_HOST','IUniverInstanceService','1150443pXivSi','pipe','includes','type','live-share.config','random','indexOf','_init','@univerjs/sheets','useState','Stop\x20following','getMemberID','getOwnPropertySymbols','delete','startFollowing','executeCommand','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','values','requireSession','UniverSheets','BehaviorSubject','NEW_CHANGESETS','_config','UniverProCollaboration','clear','forwardRef','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','DependentOn','_handleTerminate','UNIVER_SHEET','className','Stop\x20presenting','_univerInstanceService','live-share-single','text','colorChannel1','_entities','Dropdown','DesktopLiveShareController','concat','@univerjs/design','getCurrentTypeOfUnit$','set','You\x27re\x20presenting\x20the\x20document','extend','_sharedOperations','SessionStatus','SetZoomRatioOperation','React','_handleNewHost','jsx','params','Subject','end','6852hBjXTS','UNIVER_UNKNOWN','BuiltInUIPart','object','shouldShareOperation','offline','mergeOverrideWithDependencies','Module','_beIdle','small','867468EKMIDx'];_0x2c84=function(){return _0x1d99b3;};return _0x2c84();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -46,24 +46,24 @@
|
|
|
46
46
|
"rxjs": ">=7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@univerjs/icons": "^0.2.
|
|
50
|
-
"@univerjs-pro/collaboration
|
|
51
|
-
"@univerjs-pro/collaboration": "0.6.
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/sheets-ui": "0.6.
|
|
56
|
-
"@univerjs/ui": "0.6.
|
|
49
|
+
"@univerjs/icons": "^0.2.28",
|
|
50
|
+
"@univerjs-pro/collaboration": "0.6.7",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.6.7",
|
|
52
|
+
"@univerjs/core": "0.6.7",
|
|
53
|
+
"@univerjs/sheets": "0.6.7",
|
|
54
|
+
"@univerjs/design": "0.6.7",
|
|
55
|
+
"@univerjs/sheets-ui": "0.6.7",
|
|
56
|
+
"@univerjs/ui": "0.6.7"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"react": "18.3.1",
|
|
60
60
|
"rxjs": "^7.8.1",
|
|
61
61
|
"tailwindcss": "^3.4.17",
|
|
62
62
|
"typescript": "^5.8.2",
|
|
63
|
-
"vite": "^6.2.
|
|
64
|
-
"vitest": "^3.0.
|
|
65
|
-
"@univerjs-infra/shared": "0.6.
|
|
66
|
-
"@univerjs/protocol": "0.1.
|
|
63
|
+
"vite": "^6.2.2",
|
|
64
|
+
"vitest": "^3.0.9",
|
|
65
|
+
"@univerjs-infra/shared": "0.6.7",
|
|
66
|
+
"@univerjs/protocol": "0.1.45"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"test": "vitest run",
|