@univerjs-pro/live-share 0.9.2-nightly.202507111607 → 0.9.2-nightly.202507121606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x2aea6d=_0x4f43;(function(_0x32e337,_0x4b04fd){var _0xc18b0f=_0x4f43,_0x1933d1=_0x32e337();while(!![]){try{var _0x151aab=parseInt(_0xc18b0f(0x164))/0x1*(parseInt(_0xc18b0f(0x17d))/0x2)+parseInt(_0xc18b0f(0x1b3))/0x3+-parseInt(_0xc18b0f(0x171))/0x4*(-parseInt(_0xc18b0f(0x134))/0x5)+parseInt(_0xc18b0f(0x12a))/0x6+-parseInt(_0xc18b0f(0x146))/0x7+parseInt(_0xc18b0f(0x1a7))/0x8*(-parseInt(_0xc18b0f(0x168))/0x9)+-parseInt(_0xc18b0f(0x1a4))/0xa;if(_0x151aab===_0x4b04fd)break;else _0x1933d1['push'](_0x1933d1['shift']());}catch(_0x5364af){_0x1933d1['push'](_0x1933d1['shift']());}}}(_0x68f7,0x85507));function _0x4f43(_0x4e737a,_0x56994e){var _0x68f77d=_0x68f7();return _0x4f43=function(_0x4f43c9,_0x5a1d9b){_0x4f43c9=_0x4f43c9-0x12a;var _0x29f6c1=_0x68f77d[_0x4f43c9];return _0x29f6c1;},_0x4f43(_0x4e737a,_0x56994e);}var U=Object[_0x2aea6d(0x1fc)],F=(_0x353bfe,_0x1e3ae8,_0xbfc53)=>_0x1e3ae8 in _0x353bfe?U(_0x353bfe,_0x1e3ae8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbfc53}):_0x353bfe[_0x1e3ae8]=_0xbfc53,v=(_0x309397,_0x253b12,_0xf21f5e)=>F(_0x309397,typeof _0x253b12!=_0x2aea6d(0x1ca)?_0x253b12+'':_0x253b12,_0xf21f5e);Object[_0x2aea6d(0x1fc)](exports,Symbol[_0x2aea6d(0x179)],{'value':'Module'});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$='live-share.config',x={};class O extends o[_0x2aea6d(0x1bd)]{constructor(){var _0x189316=_0x2aea6d;super(...arguments),v(this,_0x189316(0x1f7),new Set()),v(this,_0x189316(0x133),new Set());}[_0x2aea6d(0x184)](_0x5e7de9){var _0x340edd=_0x2aea6d;return this[_0x340edd(0x1f7)][_0x340edd(0x192)](_0x5e7de9),o[_0x340edd(0x203)](()=>this[_0x340edd(0x1f7)][_0x340edd(0x1da)](_0x5e7de9));}[_0x2aea6d(0x14d)](_0x3a6ba6){var _0x1d9aa4=_0x2aea6d;return this[_0x1d9aa4(0x133)][_0x1d9aa4(0x192)](_0x3a6ba6),o[_0x1d9aa4(0x203)](()=>this[_0x1d9aa4(0x133)]['delete'](_0x3a6ba6));}[_0x2aea6d(0x1ba)](_0x35b7a6){var _0x44da10=_0x2aea6d;return this[_0x44da10(0x1f7)]['has'](_0x35b7a6);}['getInitialStates'](_0x5e82de){var _0x4c643f=_0x2aea6d;return Array[_0x4c643f(0x12f)](this[_0x4c643f(0x133)])[_0x4c643f(0x14f)](_0x555971=>_0x555971(_0x5e82de));}}var H=Object[_0x2aea6d(0x1a9)],V=(_0x4fc46c,_0x4e6cea,_0xd4a961,_0x35d092)=>{var _0x56cbbe=_0x2aea6d;for(var _0xbf1a7=_0x35d092>0x1?void 0x0:_0x35d092?H(_0x4e6cea,_0xd4a961):_0x4e6cea,_0xdea2e7=_0x4fc46c[_0x56cbbe(0x12e)]-0x1,_0x35e9de;_0xdea2e7>=0x0;_0xdea2e7--)(_0x35e9de=_0x4fc46c[_0xdea2e7])&&(_0xbf1a7=_0x35e9de(_0xbf1a7)||_0xbf1a7);return _0xbf1a7;},k=(_0x51b4cc,_0x2cbcf9)=>(_0x13013e,_0x410977)=>_0x2cbcf9(_0x13013e,_0x410977,_0x51b4cc);let E=class extends o[_0x2aea6d(0x1bd)]{constructor(_0x47dc18){var _0x4ec78b=_0x2aea6d;super(),this['_liveShareService']=_0x47dc18,this[_0x4ec78b(0x1fd)]();}[_0x2aea6d(0x1fd)](){var _0x3738ff=_0x2aea6d;[w[_0x3738ff(0x15b)]['id'],w[_0x3738ff(0x194)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x3bc862=>{var _0x1ba5d3=_0x3738ff;this[_0x1ba5d3(0x183)](this[_0x1ba5d3(0x19a)][_0x1ba5d3(0x184)](_0x3bc862));});}};E=V([k(0x0,o[_0x2aea6d(0x165)](O))],E);var u=function(){var _0x10825=_0x2aea6d;return u=Object[_0x10825(0x16e)]||function(_0x4e70b7){var _0x17500b=_0x10825;for(var _0xe14e82,_0x279ee8=0x1,_0x1abf14=arguments[_0x17500b(0x12e)];_0x279ee8<_0x1abf14;_0x279ee8++){_0xe14e82=arguments[_0x279ee8];for(var _0x1730db in _0xe14e82)Object['prototype'][_0x17500b(0x14b)][_0x17500b(0x150)](_0xe14e82,_0x1730db)&&(_0x4e70b7[_0x1730db]=_0xe14e82[_0x1730db]);}return _0x4e70b7;},u[_0x10825(0x1d2)](this,arguments);},M=function(_0x354151,_0xcc56f3){var _0x4c7d88=_0x2aea6d,_0x1d94b2={};for(var _0x420c4d in _0x354151)Object[_0x4c7d88(0x1e9)][_0x4c7d88(0x14b)][_0x4c7d88(0x150)](_0x354151,_0x420c4d)&&_0xcc56f3[_0x4c7d88(0x19b)](_0x420c4d)<0x0&&(_0x1d94b2[_0x420c4d]=_0x354151[_0x420c4d]);if(_0x354151!=null&&typeof Object[_0x4c7d88(0x1b4)]==_0x4c7d88(0x12d)){for(var _0x238706=0x0,_0x420c4d=Object[_0x4c7d88(0x1b4)](_0x354151);_0x238706<_0x420c4d[_0x4c7d88(0x12e)];_0x238706++)_0xcc56f3['indexOf'](_0x420c4d[_0x238706])<0x0&&Object[_0x4c7d88(0x1e9)][_0x4c7d88(0x1dd)]['call'](_0x354151,_0x420c4d[_0x238706])&&(_0x1d94b2[_0x420c4d[_0x238706]]=_0x354151[_0x420c4d[_0x238706]]);}return _0x1d94b2;},j=f[_0x2aea6d(0x1f9)](function(_0x40994a,_0x253f81){var _0x2e2482=_0x2aea6d,_0xaafcb0=_0x40994a[_0x2e2482(0x13b)],_0x2f0b6a=_0x40994a['id'],_0x34995a=_0x40994a[_0x2e2482(0x149)],_0x121c8e=_0x40994a[_0x2e2482(0x1b6)],_0x4dd796=M(_0x40994a,['icon','id',_0x2e2482(0x149),_0x2e2482(0x1b6)]),_0x38fa4=_0x2e2482(0x160)[_0x2e2482(0x1c4)](_0x2f0b6a,'\x20')[_0x2e2482(0x1c4)](_0x34995a||'')[_0x2e2482(0x1e4)](),_0x34c61d=f['useRef']('_'[_0x2e2482(0x1c4)](G()));return y(_0xaafcb0,''[_0x2e2482(0x1c4)](_0x2f0b6a),{'defIds':_0xaafcb0['defIds'],'idSuffix':_0x34c61d['current']},u({'ref':_0x253f81,'className':_0x38fa4},_0x4dd796),_0x121c8e);});function y(_0xc7c3eb,_0x502a58,_0x3fe439,_0xbce3ae,_0x117736){var _0x3cfea1=_0x2aea6d;return f[_0x3cfea1(0x13c)](_0xc7c3eb[_0x3cfea1(0x1d1)],u(u({'key':_0x502a58},q(_0xc7c3eb,_0x3fe439,_0x117736)),_0xbce3ae),(W(_0xc7c3eb,_0x3fe439)['children']||[])['map'](function(_0x2f9266,_0x2b6f97){var _0x46a703=_0x3cfea1;return y(_0x2f9266,''[_0x46a703(0x1c4)](_0x502a58,'-')['concat'](_0xc7c3eb[_0x46a703(0x1d1)],'-')[_0x46a703(0x1c4)](_0x2b6f97),_0x3fe439,void 0x0,_0x117736);}));}function q(_0x433f22,_0x1dae3b,_0x1823d5){var _0x5b4d47=_0x2aea6d,_0x1e5f04=u({},_0x433f22['attrs']);_0x1823d5!=null&&_0x1823d5[_0x5b4d47(0x1f0)]&&_0x1e5f04['fill']===_0x5b4d47(0x1f0)&&(_0x1e5f04['fill']=_0x1823d5['colorChannel1']),_0x433f22[_0x5b4d47(0x1d1)]===_0x5b4d47(0x186)&&_0x1e5f04['id']&&(_0x1e5f04['id']=_0x1e5f04['id']+_0x1dae3b[_0x5b4d47(0x1c8)]),Object['entries'](_0x1e5f04)[_0x5b4d47(0x1e6)](function(_0x373346){var _0x269a4c=_0x5b4d47,_0x314c07=_0x373346[0x0],_0x3c39c2=_0x373346[0x1];_0x314c07==='mask'&&typeof _0x3c39c2=='string'&&(_0x1e5f04[_0x314c07]=_0x3c39c2[_0x269a4c(0x1ac)](/url\(#(.*)\)/,_0x269a4c(0x154)[_0x269a4c(0x1c4)](_0x1dae3b[_0x269a4c(0x1c8)],')')));});var _0x16bacc=_0x1dae3b[_0x5b4d47(0x1eb)];return!_0x16bacc||_0x16bacc[_0x5b4d47(0x12e)]===0x0||(_0x433f22[_0x5b4d47(0x1d1)]==='use'&&_0x1e5f04[_0x5b4d47(0x1ee)]&&(_0x1e5f04[_0x5b4d47(0x1ee)]=_0x1e5f04[_0x5b4d47(0x1ee)]+_0x1dae3b[_0x5b4d47(0x1c8)]),Object[_0x5b4d47(0x18f)](_0x1e5f04)[_0x5b4d47(0x1e6)](function(_0x3f8c26){var _0x5749db=_0x5b4d47,_0x4cc128=_0x3f8c26[0x0],_0x4b38c8=_0x3f8c26[0x1];typeof _0x4b38c8=='string'&&(_0x1e5f04[_0x4cc128]=_0x4b38c8[_0x5749db(0x1ac)](/url\(#(.*)\)/,_0x5749db(0x154)[_0x5749db(0x1c4)](_0x1dae3b['idSuffix'],')')));})),_0x1e5f04;}function W(_0x4ba46d,_0x8cfd12){var _0x38cd98=_0x2aea6d,_0x14ef35,_0x2e4981=_0x8cfd12[_0x38cd98(0x1eb)];return!_0x2e4981||_0x2e4981[_0x38cd98(0x12e)]===0x0?_0x4ba46d:_0x4ba46d[_0x38cd98(0x1d1)]===_0x38cd98(0x1b9)&&(!((_0x14ef35=_0x4ba46d[_0x38cd98(0x1c1)])===null||_0x14ef35===void 0x0)&&_0x14ef35[_0x38cd98(0x12e)])?u(u({},_0x4ba46d),{'children':_0x4ba46d[_0x38cd98(0x1c1)][_0x38cd98(0x14f)](function(_0x3afa16){var _0x228ad8=_0x38cd98;return typeof _0x3afa16['attrs']['id']==_0x228ad8(0x1a5)&&_0x2e4981&&_0x2e4981[_0x228ad8(0x1be)](_0x3afa16[_0x228ad8(0x148)]['id'])?u(u({},_0x3afa16),{'attrs':u(u({},_0x3afa16[_0x228ad8(0x148)]),{'id':_0x3afa16[_0x228ad8(0x148)]['id']+_0x8cfd12[_0x228ad8(0x1c8)]})}):_0x3afa16;})}):_0x4ba46d;}function G(){var _0x29394e=_0x2aea6d;return Math[_0x29394e(0x1fa)]()[_0x29394e(0x201)](0x24)['substring'](0x2,0x8);}j[_0x2aea6d(0x153)]=_0x2aea6d(0x17c);var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2aea6d(0x200),'viewBox':_0x2aea6d(0x1c6),'width':'1em','height':'1em'},'children':[{'tag':_0x2aea6d(0x174),'attrs':{'fill':_0x2aea6d(0x130),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x2aea6d(0x130),'d':_0x2aea6d(0x135),'fillRule':'evenodd','clipRule':_0x2aea6d(0x1fb)}}]},P=f[_0x2aea6d(0x1f9)](function(_0x4c5d13,_0x2a8716){var _0x4b618e=_0x2aea6d;return f[_0x4b618e(0x13c)](j,Object[_0x4b618e(0x16e)]({},_0x4c5d13,{'id':_0x4b618e(0x1b5),'ref':_0x2a8716,'icon':B}));});P[_0x2aea6d(0x153)]=_0x2aea6d(0x15e);var Y=Object[_0x2aea6d(0x1a9)],R=(_0x2ba5be,_0x3757ec,_0x5495bc,_0x3e3a61)=>{for(var _0x35f1ea=_0x3e3a61>0x1?void 0x0:_0x3e3a61?Y(_0x3757ec,_0x5495bc):_0x3757ec,_0x2d24f1=_0x2ba5be['length']-0x1,_0x2c0290;_0x2d24f1>=0x0;_0x2d24f1--)(_0x2c0290=_0x2ba5be[_0x2d24f1])&&(_0x35f1ea=_0x2c0290(_0x35f1ea)||_0x35f1ea);return _0x35f1ea;},S=(_0xbd00f0,_0x7ebb18)=>(_0x3388bb,_0x1b2b73)=>_0x7ebb18(_0x3388bb,_0x1b2b73,_0xbd00f0);exports[_0x2aea6d(0x1d6)]=class extends o[_0x2aea6d(0x170)]{constructor(_0x9ac1d6,_0x3d8be3,_0x4add5f){var _0x506ec3=_0x2aea6d;super(),v(this,_0x506ec3(0x173),new Map()),(this[_0x506ec3(0x16f)]=_0x9ac1d6,this[_0x506ec3(0x1ff)]=_0x3d8be3,this[_0x506ec3(0x141)]=_0x4add5f,this['_init']());}async['getLiveShareCoordinator'](_0x1811a5){var _0x739b4c=_0x2aea6d;return this['_entities'][_0x739b4c(0x176)](_0x1811a5)||await this[_0x739b4c(0x14c)](_0x1811a5),this[_0x739b4c(0x173)][_0x739b4c(0x157)](_0x1811a5);}[_0x2aea6d(0x1fd)](){var _0x44d76d=_0x2aea6d;this[_0x44d76d(0x16f)][_0x44d76d(0x140)](o[_0x44d76d(0x1ea)][_0x44d76d(0x1ab)])['pipe'](b[_0x44d76d(0x1c3)](this[_0x44d76d(0x152)]))['subscribe'](async _0x1b8623=>{var _0x5cab1f=_0x44d76d;const _0x374e8d=_0x1b8623['getUnitId']();this['_entities']['has'](_0x374e8d)||this[_0x5cab1f(0x14c)](_0x374e8d);}),this[_0x44d76d(0x16f)][_0x44d76d(0x156)](o[_0x44d76d(0x1ea)]['UNIVER_SHEET'])[_0x44d76d(0x1a8)](b['takeUntil'](this[_0x44d76d(0x152)]))[_0x44d76d(0x19e)](_0x5bc821=>{var _0x816ca7=_0x44d76d;const _0x24dbc6=_0x5bc821['getUnitId'](),_0x18c491=this[_0x816ca7(0x173)]['get'](_0x24dbc6);_0x18c491==null||_0x18c491[_0x816ca7(0x1fe)]();});}async[_0x2aea6d(0x14c)](_0x427307){var _0x2e13ee=_0x2aea6d;const _0x5cb2aa=await this[_0x2e13ee(0x141)]['requireSession'](_0x427307),_0x368631=this[_0x2e13ee(0x1ff)]['createInstance'](exports[_0x2e13ee(0x18d)],_0x427307,_0x5cb2aa);return _0x368631[_0x2e13ee(0x190)](),this[_0x2e13ee(0x173)][_0x2e13ee(0x175)](_0x427307,_0x368631),_0x368631;}},exports[_0x2aea6d(0x1d6)]=R([S(0x0,o[_0x2aea6d(0x1b7)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o[_0x2aea6d(0x165)](m['CollaborationSessionService']))],exports[_0x2aea6d(0x1d6)]);var h=(_0x38b426=>(_0x38b426[_0x2aea6d(0x1b0)]=_0x2aea6d(0x185),_0x38b426[_0x2aea6d(0x16b)]='idle',_0x38b426[_0x2aea6d(0x1ed)]=_0x2aea6d(0x1c5),_0x38b426['NOT_FOLLOWING']=_0x2aea6d(0x178),_0x38b426[_0x2aea6d(0x1d8)]=_0x2aea6d(0x161),_0x38b426))(h||{});const Z=_0x2aea6d(0x1e3),J=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0xe66b29,_0x286cda,_0x596f4d,_0x493390,_0x4e450b){var _0x48a5b8=_0x2aea6d;super(),v(this,'_status$',new D[(_0x48a5b8(0x1b1))](_0x48a5b8(0x1ec))),v(this,_0x48a5b8(0x1c0),this[_0x48a5b8(0x16a)]['asObservable']()),v(this,_0x48a5b8(0x1fd),!0x1),v(this,'_commandDisposable',null),v(this,_0x48a5b8(0x1a6),null),(this[_0x48a5b8(0x191)]=_0xe66b29,this['_collabSession']=_0x286cda,this[_0x48a5b8(0x151)]=_0x596f4d,this[_0x48a5b8(0x19a)]=_0x493390,this[_0x48a5b8(0x17f)]=_0x4e450b);}get['_status'](){var _0x573608=_0x2aea6d;return this[_0x573608(0x16a)][_0x573608(0x16d)]();}['dispose'](){var _0x543fa5=_0x2aea6d,_0x2dffb2;(_0x2dffb2=this[_0x543fa5(0x188)])==null||_0x2dffb2[_0x543fa5(0x1fe)](),this[_0x543fa5(0x16a)]['next'](_0x543fa5(0x1ec)),this[_0x543fa5(0x16a)][_0x543fa5(0x1d0)]();}[_0x2aea6d(0x190)](){var _0x46181e=_0x2aea6d;this[_0x46181e(0x1fd)]||(this[_0x46181e(0x1fd)]=!0x0,this[_0x46181e(0x19c)]['sessionStatus$'][_0x46181e(0x1a8)](b['takeUntil'](this[_0x46181e(0x152)]))['subscribe'](_0x12d3e7=>{var _0x4f38a6=_0x46181e;switch(_0x12d3e7){case m[_0x4f38a6(0x17e)][_0x4f38a6(0x1b0)]:this[_0x4f38a6(0x145)]();break;case m[_0x4f38a6(0x17e)]['ONLINE']:this[_0x4f38a6(0x1cb)]();break;}}),this[_0x46181e(0x19c)][_0x46181e(0x1c9)][_0x46181e(0x1a8)](b[_0x46181e(0x1c3)](this[_0x46181e(0x152)]))[_0x46181e(0x19e)](_0x184c09=>{var _0x16b4e7=_0x46181e;const {eventID:_0x3b9136}=_0x184c09;switch(_0x3b9136){case _['CollaborationEvent'][_0x16b4e7(0x1f1)]:this[_0x16b4e7(0x1d5)](_0x184c09);break;case _[_0x16b4e7(0x159)][_0x16b4e7(0x1f2)]:this[_0x16b4e7(0x18c)](_0x184c09);break;case _[_0x16b4e7(0x159)][_0x16b4e7(0x138)]:this[_0x16b4e7(0x1e7)]();break;case _[_0x16b4e7(0x159)][_0x16b4e7(0x167)]:this[_0x16b4e7(0x18b)](_0x184c09);break;}}));}['tryStartPresenting'](){var _0x13c026=_0x2aea6d;this['_collabSession'][_0x13c026(0x1df)]({'eventID':_[_0x13c026(0x159)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x13c026(0x191)],'userID':this[_0x13c026(0x19c)]['getMemberID']()}},this[_0x13c026(0x191)]);}[_0x2aea6d(0x132)](){var _0x67af2e=_0x2aea6d;this['_status']===_0x67af2e(0x161)&&(this['_status$'][_0x67af2e(0x12b)](_0x67af2e(0x1ec)),this['_collabSession']['send']({'eventID':_[_0x67af2e(0x159)][_0x67af2e(0x138)],'data':{'unitID':this[_0x67af2e(0x191)]}},this[_0x67af2e(0x191)]));}[_0x2aea6d(0x158)](){var _0x30d00d=_0x2aea6d;this['_status']===_0x30d00d(0x178)&&(this[_0x30d00d(0x16a)][_0x30d00d(0x12b)](_0x30d00d(0x1c5)),this['_startFollowing']());}[_0x2aea6d(0x19d)](){var _0x11e086=_0x2aea6d;this[_0x11e086(0x1e1)]===_0x11e086(0x1c5)&&this[_0x11e086(0x15c)]();}[_0x2aea6d(0x1d5)](_0x3877ff){var _0x1bcd47=_0x2aea6d;const {presenter:_0x383aec}=_0x3877ff['data'],_0x38f815=this[_0x1bcd47(0x19c)]['getMemberID']();this['_presenter']=_0x383aec,_0x383aec===_0x38f815?(this[_0x1bcd47(0x15c)](),this[_0x1bcd47(0x12c)]()):this[_0x1bcd47(0x1e1)]!==_0x1bcd47(0x178)&&(this['_stopPresenting'](),this['_startFollowing']());}['_fetchOperations'](){var _0x49dc0d=_0x2aea6d;const _0x236876={'eventID':_[_0x49dc0d(0x159)][_0x49dc0d(0x1b2)]};this[_0x49dc0d(0x19c)][_0x49dc0d(0x1df)](_0x236876,this[_0x49dc0d(0x191)]);}[_0x2aea6d(0x1e7)](){var _0x3fc126=_0x2aea6d;this[_0x3fc126(0x1a6)]=null,this['_status']!=='presenting'&&this[_0x3fc126(0x18a)]();}['_handleNewChangeSets'](_0x33525a){var _0xa040f1=_0x2aea6d;if(this[_0xa040f1(0x1e1)]==='following'&&this[_0xa040f1(0x1a6)]===_0x33525a[_0xa040f1(0x1f4)][_0xa040f1(0x181)]){const _0x5ed6f4=_['parseProtocolChangeset'](_0x33525a[_0xa040f1(0x1f4)])[_0xa040f1(0x147)][_0xa040f1(0x137)]()['find'](_0x220212=>_0x220212['id']===C[_0xa040f1(0x1e0)]['id']);if(_0x5ed6f4){const _0x2405e2=_0x5ed6f4[_0xa040f1(0x1e8)]['unitId'],_0x4182ec=_0x5ed6f4[_0xa040f1(0x1e8)][_0xa040f1(0x131)]['id'];setTimeout(()=>{var _0x1637bb=_0xa040f1;this[_0x1637bb(0x17f)][_0x1637bb(0x189)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x2405e2,'subUnitId':_0x4182ec},{'fromCollab':!0x0});});}}}[_0x2aea6d(0x12c)](){var _0x344547=_0x2aea6d;this[_0x344547(0x16a)][_0x344547(0x12b)](_0x344547(0x161));const _0xc8a37b=new Map(),_0x2e8de6=this[_0x344547(0x188)]=new o[(_0x344547(0x17a))]();_0x2e8de6['add'](o[_0x344547(0x203)](()=>{var _0x21f89c=_0x344547;_0xc8a37b[_0x21f89c(0x1e6)](_0x1e3f03=>_0x1e3f03['complete']()),_0xc8a37b['clear']();})),_0x2e8de6[_0x344547(0x192)](this['_commandService']['onCommandExecuted'](_0x38fcdb=>{var _0x2e036f=_0x344547,_0x2cf7da;if(_0x38fcdb['type']!==o[_0x2e036f(0x1db)][_0x2e036f(0x13a)]||!this['_liveShareService'][_0x2e036f(0x1ba)](_0x38fcdb['id']))return;const {id:_0x558468}=_0x38fcdb;let _0x54c388;_0xc8a37b[_0x2e036f(0x176)](_0x558468)?_0x54c388=_0xc8a37b[_0x2e036f(0x157)](_0x558468):(_0x54c388=new D[(_0x2e036f(0x13e))](),_0xc8a37b['set'](_0x558468,_0x54c388),_0x54c388[_0x2e036f(0x1a8)](b[_0x2e036f(0x13d)]((_0x2cf7da=this[_0x2e036f(0x151)][_0x2e036f(0x143)](Z))!=null?_0x2cf7da:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2e036f(0x19e)](_0x2e78a9=>{var _0x223e00=_0x2e036f;this['_collabSession'][_0x223e00(0x1df)]({'eventID':_['CollaborationEvent'][_0x223e00(0x1f2)],'data':{'unitID':this['_unitID'],'operations':{[_0x2e78a9['id']]:{'id':_0x2e78a9['id'],'params':JSON[_0x223e00(0x1d3)](_0x2e78a9['params'])}}}},this['_unitID']);})),_0x54c388['next'](_0x38fcdb);})),this['_liveShareService'][_0x344547(0x142)](this[_0x344547(0x191)])['forEach'](_0xff1d27=>this[_0x344547(0x19c)][_0x344547(0x1df)]({'eventID':_[_0x344547(0x159)][_0x344547(0x1f2)],'data':{'unitID':this['_unitID'],'operations':{[_0xff1d27['id']]:{'id':_0xff1d27['id'],'params':JSON[_0x344547(0x1d3)](_0xff1d27['params'])}}}},this[_0x344547(0x191)]));}[_0x2aea6d(0x155)](){var _0xbc221b=_0x2aea6d,_0xfd5f0a;this['_status$']['next'](_0xbc221b(0x1ec)),(_0xfd5f0a=this[_0xbc221b(0x188)])==null||_0xfd5f0a[_0xbc221b(0x1fe)](),this[_0xbc221b(0x188)]=null;}[_0x2aea6d(0x1a1)](){var _0x4c1add=_0x2aea6d,_0x3b1abf;(_0x3b1abf=this[_0x4c1add(0x188)])==null||_0x3b1abf[_0x4c1add(0x1fe)](),this[_0x4c1add(0x16a)]['next']('following');}[_0x2aea6d(0x18a)](){var _0x581deb=_0x2aea6d,_0x1d381f;this[_0x581deb(0x16a)][_0x581deb(0x12b)](_0x581deb(0x1ec)),(_0x1d381f=this[_0x581deb(0x188)])==null||_0x1d381f[_0x581deb(0x1fe)](),this[_0x581deb(0x188)]=null;}[_0x2aea6d(0x15c)](){var _0x18eed2=_0x2aea6d,_0x1867ce;this[_0x18eed2(0x16a)][_0x18eed2(0x12b)](_0x18eed2(0x178)),(_0x1867ce=this[_0x18eed2(0x188)])==null||_0x1867ce[_0x18eed2(0x1fe)]();}[_0x2aea6d(0x18c)](_0x11e92e){var _0x5e1b4c=_0x2aea6d;if([_0x5e1b4c(0x161),_0x5e1b4c(0x178),_0x5e1b4c(0x185)][_0x5e1b4c(0x1be)](this['_status'])||!_0x11e92e[_0x5e1b4c(0x1f4)][_0x5e1b4c(0x169)]||_0x11e92e[_0x5e1b4c(0x1f4)]['presenter']===this[_0x5e1b4c(0x19c)][_0x5e1b4c(0x196)]())return;this[_0x5e1b4c(0x1e1)]===_0x5e1b4c(0x1ec)&&this[_0x5e1b4c(0x1a1)]();const _0xd00b13=_0x11e92e[_0x5e1b4c(0x1f4)][_0x5e1b4c(0x1aa)];Object['values'](_0xd00b13)[_0x5e1b4c(0x1e6)](_0x5f1bca=>{var _0x20d9c5=_0x5e1b4c;this[_0x20d9c5(0x17f)][_0x20d9c5(0x189)](_0x5f1bca['id'],_0x5f1bca['params']?JSON['parse'](_0x5f1bca['params']):null,{'fromCollab':!0x0});});}[_0x2aea6d(0x145)](){var _0x120652=_0x2aea6d,_0x5e2754;this[_0x120652(0x16a)]['next']('offline'),(_0x5e2754=this[_0x120652(0x188)])==null||_0x5e2754[_0x120652(0x1fe)]();}[_0x2aea6d(0x1cb)](){var _0x45ae5b=_0x2aea6d;this[_0x45ae5b(0x16a)][_0x45ae5b(0x12b)]('idle'),this[_0x45ae5b(0x1d9)]();}},exports[_0x2aea6d(0x18d)]=R([S(0x2,o[_0x2aea6d(0x15a)]),S(0x3,o[_0x2aea6d(0x165)](O)),S(0x4,o[_0x2aea6d(0x18e)])],exports[_0x2aea6d(0x18d)]);function A(){var _0x5fd8ec=_0x2aea6d;const _0x29a466=p[_0x5fd8ec(0x19f)](exports[_0x5fd8ec(0x1d6)]),_0x28bb69=p[_0x5fd8ec(0x19f)](o[_0x5fd8ec(0x1b7)]),_0x1c3be5=p['useObservable'](()=>_0x28bb69['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x5fd8ec(0x1ab)]),void 0x0,!0x1,[]),[_0x5c7541,_0x437280]=f['useState'](null),[_0x2fa311,_0x36265d]=f[_0x5fd8ec(0x1a3)](h[_0x5fd8ec(0x16b)]),_0x305110=f[_0x5fd8ec(0x162)](null);return f[_0x5fd8ec(0x180)](()=>(_0x1c3be5&&_0x29a466[_0x5fd8ec(0x182)](_0x1c3be5[_0x5fd8ec(0x1a0)]())[_0x5fd8ec(0x1ef)](_0x34c3d0=>{var _0x2009ea=_0x5fd8ec;_0x437280(_0x34c3d0),_0x305110['current']=_0x34c3d0[_0x2009ea(0x1c0)][_0x2009ea(0x19e)](_0x2927af=>{_0x36265d(_0x2927af);});}),()=>{var _0x384188=_0x5fd8ec,_0x18746e;(_0x18746e=_0x305110[_0x384188(0x199)])==null||_0x18746e[_0x384188(0x1b8)](),_0x305110[_0x384188(0x199)]=null;}),[_0x1c3be5,_0x29a466]),_0x5c7541?l['jsx'](g['Dropdown'],{'align':_0x5fd8ec(0x1dc),'disabled':_0x2fa311===h[_0x5fd8ec(0x1b0)],'className':_0x5fd8ec(0x1c7),'overlay':l['jsx'](K,{'status':_0x2fa311,'coordinator':_0x5c7541}),'children':l[_0x5fd8ec(0x202)](_0x5fd8ec(0x1cd),{'className':g[_0x5fd8ec(0x163)](_0x5fd8ec(0x1cc),{'univer-cursor-not-allowed':_0x2fa311===h[_0x5fd8ec(0x1b0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2fa311!==h['OFFLINE']}),'type':_0x5fd8ec(0x1cd),'children':l['jsx'](P,{'className':_0x5fd8ec(0x144)})})}):null;}function K(_0x50d32d){var _0x2a0428=_0x2aea6d;const {status:_0x2b4bce,coordinator:_0x39d9e}=_0x50d32d;switch(_0x2b4bce){case h[_0x2a0428(0x16b)]:return l[_0x2a0428(0x202)](z,{'coordinator':_0x39d9e});case h[_0x2a0428(0x1ed)]:return l[_0x2a0428(0x202)](Q,{'coordinator':_0x39d9e});case h[_0x2a0428(0x1af)]:return l[_0x2a0428(0x202)](X,{'coordinator':_0x39d9e});case h[_0x2a0428(0x1b0)]:return l[_0x2a0428(0x202)](te,{});case h[_0x2a0428(0x1d8)]:return l['jsx'](ee,{'coordinator':_0x39d9e});default:return null;}}function z(_0x50ec69){var _0x1117d3=_0x2aea6d;const {coordinator:_0x264021}=_0x50ec69;return l[_0x1117d3(0x187)](l['Fragment'],{'children':[l[_0x1117d3(0x202)]('div',{'className':_0x1117d3(0x1e2),'children':_0x1117d3(0x15d)}),l[_0x1117d3(0x202)](g[_0x1117d3(0x14e)],{'onClick':()=>_0x264021['tryStartPresenting'](),'children':_0x1117d3(0x1f6)})]});}function Q(_0x506e81){var _0x1fe5f6=_0x2aea6d;const {coordinator:_0x5c03fb}=_0x506e81;return l['jsxs'](l[_0x1fe5f6(0x1bc)],{'children':[l[_0x1fe5f6(0x202)](_0x1fe5f6(0x1ae),{'className':_0x1fe5f6(0x1e2),'children':_0x1fe5f6(0x1d7)}),l[_0x1fe5f6(0x202)](g[_0x1fe5f6(0x14e)],{'onClick':()=>_0x5c03fb[_0x1fe5f6(0x19d)](),'children':_0x1fe5f6(0x172)})]});}function X(_0x2def0b){var _0x471ada=_0x2aea6d;const {coordinator:_0x3bbd3f}=_0x2def0b;return l[_0x471ada(0x187)](l[_0x471ada(0x1bc)],{'children':[l[_0x471ada(0x202)](_0x471ada(0x1ae),{'className':_0x471ada(0x1e2),'children':_0x471ada(0x14a)}),l[_0x471ada(0x202)](g['Button'],{'variant':_0x471ada(0x1f3),'onClick':()=>_0x3bbd3f[_0x471ada(0x158)](),'children':_0x471ada(0x1bf)})]});}function ee(_0x45c7e0){var _0x3d8650=_0x2aea6d;const {coordinator:_0x1bb29f}=_0x45c7e0;return l[_0x3d8650(0x187)](l[_0x3d8650(0x1bc)],{'children':[l['jsx'](_0x3d8650(0x1ae),{'className':_0x3d8650(0x1e2),'children':_0x3d8650(0x1e5)}),l[_0x3d8650(0x202)](g[_0x3d8650(0x14e)],{'variant':'default','onClick':()=>_0x1bb29f[_0x3d8650(0x132)](),'children':_0x3d8650(0x1f5)})]});}function te(){var _0x5ab576=_0x2aea6d;return l[_0x5ab576(0x202)](l['Fragment'],{'children':_0x5ab576(0x17b)});}var ie=Object[_0x2aea6d(0x1a9)],ne=(_0x175055,_0x17403f,_0x395045,_0x5e25b)=>{for(var _0x1e9575=_0x5e25b>0x1?void 0x0:_0x5e25b?ie(_0x17403f,_0x395045):_0x17403f,_0x4c351d=_0x175055['length']-0x1,_0x4b4e98;_0x4c351d>=0x0;_0x4c351d--)(_0x4b4e98=_0x175055[_0x4c351d])&&(_0x1e9575=_0x4b4e98(_0x1e9575)||_0x1e9575);return _0x1e9575;},L=(_0x92bb0f,_0x24f221)=>(_0x161f24,_0x2303a)=>_0x24f221(_0x161f24,_0x2303a,_0x92bb0f);exports['DesktopLiveShareController']=class extends o[_0x2aea6d(0x1bd)]{constructor(_0x137f93,_0x4b449d){var _0x400f73=_0x2aea6d;super(),this['_injector']=_0x137f93,this[_0x400f73(0x1c2)]=_0x4b449d,this[_0x400f73(0x139)]();}[_0x2aea6d(0x139)](){var _0x41dc3c=_0x2aea6d;this[_0x41dc3c(0x183)](this[_0x41dc3c(0x1c2)][_0x41dc3c(0x197)](p['BuiltInUIPart'][_0x41dc3c(0x1de)],()=>p[_0x41dc3c(0x1d4)](A,this['_injector'])));}},exports[_0x2aea6d(0x198)]=ne([L(0x0,o[_0x2aea6d(0x165)](o['Injector'])),L(0x1,p[_0x2aea6d(0x177)])],exports[_0x2aea6d(0x198)]);var re=Object[_0x2aea6d(0x1fc)],se=Object[_0x2aea6d(0x1a9)],oe=(_0x147fc1,_0x1f7264,_0x5a7581)=>_0x1f7264 in _0x147fc1?re(_0x147fc1,_0x1f7264,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a7581}):_0x147fc1[_0x1f7264]=_0x5a7581,ae=(_0xf7b488,_0x154620,_0x596ea8,_0x53c778)=>{var _0x450011=_0x2aea6d;for(var _0x2af139=_0x53c778>0x1?void 0x0:_0x53c778?se(_0x154620,_0x596ea8):_0x154620,_0x52d75a=_0xf7b488[_0x450011(0x12e)]-0x1,_0x55157c;_0x52d75a>=0x0;_0x52d75a--)(_0x55157c=_0xf7b488[_0x52d75a])&&(_0x2af139=_0x55157c(_0x2af139)||_0x2af139);return _0x2af139;},N=(_0x3fd654,_0x24debe)=>(_0x1f5d5b,_0x398118)=>_0x24debe(_0x1f5d5b,_0x398118,_0x3fd654),T=(_0x4d1136,_0x57c7f7,_0x371057)=>oe(_0x4d1136,typeof _0x57c7f7!=_0x2aea6d(0x1ca)?_0x57c7f7+'':_0x57c7f7,_0x371057);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x2aea6d(0x1f8)]=class extends o['Plugin']{constructor(_0x344e48=x,_0x4c6485,_0x549549){var _0x22e51b=_0x2aea6d;super(),this['_config']=_0x344e48,this[_0x22e51b(0x1ff)]=_0x4c6485,this['_configService']=_0x549549;const {..._0x294061}=o[_0x22e51b(0x136)]({},x,this[_0x22e51b(0x1cf)]);this[_0x22e51b(0x151)][_0x22e51b(0x193)]($,_0x294061);}[_0x2aea6d(0x1bb)](){var _0x42e809=_0x2aea6d;o['registerDependencies'](this['_injector'],o[_0x42e809(0x16c)]([[O],[exports[_0x42e809(0x1d6)]],[E],[exports[_0x42e809(0x198)]]],this['_config']['override'])),o['touchDependencies'](this[_0x42e809(0x1ff)],[[E]]);}['onRendered'](){var _0x57bc89=_0x2aea6d;o[_0x57bc89(0x1a2)](this[_0x57bc89(0x1ff)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x2aea6d(0x1f8)],_0x2aea6d(0x13f),o[_0x2aea6d(0x1ea)]['UNIVER_UNKNOWN']),T(exports['UniverLiveSharePlugin'],_0x2aea6d(0x1ad),le),exports[_0x2aea6d(0x1f8)]=ae([o['DependentOn'](m[_0x2aea6d(0x195)]),N(0x1,o[_0x2aea6d(0x165)](o[_0x2aea6d(0x1ce)])),N(0x2,o[_0x2aea6d(0x15a)])],exports[_0x2aea6d(0x1f8)]),exports[_0x2aea6d(0x15f)]=A,exports['LiveShareService']=O,exports[_0x2aea6d(0x166)]=h;function _0x68f7(){var _0x96fe78=['getMemberID','registerComponent','DesktopLiveShareController','current','_liveShareService','indexOf','_collabSession','stopFollowing','subscribe','useDependency','getUnitId','_startFollowing','touchDependencies','useState','2076400pyLKzf','string','_presenter','63064UxFBeI','pipe','getOwnPropertyDescriptor','operations','UNIVER_SHEET','replace','pluginName','div','NOT_FOLLOWING','OFFLINE','BehaviorSubject','LIVESHARE_FETCH_OPERATIONS','2689989zMRmRt','getOwnPropertySymbols','live-share-icon','extend','IUniverInstanceService','unsubscribe','defs','shouldShareOperation','onStarting','Fragment','Disposable','includes','Start\x20following','status$','children','_uiPartsService','takeUntil','concat','following','0\x200\x2017\x2017','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','idSuffix','event$','symbol','_handleOnline','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','button','Injector','_config','complete','tag','apply','stringify','connectInjector','_handleNewHost','LiveShareController','You\x27re\x20following\x20the\x20presenter','PRESENTING','_fetchOperations','delete','CommandType','end','propertyIsEnumerable','HEADER_MENU','send','InsertSheetMutation','_status','univer-mb-3\x20univer-w-full\x20univer-text-sm','SAME_OPERATION_SHARE_INTERVAL','trim','You\x27re\x20presenting\x20the\x20document','forEach','_handleTerminate','params','prototype','UniverInstanceType','defIds','idle','FOLLOWING','xlink:href','then','colorChannel1','LIVESHARE_NEW_HOST','LIVESHARE_OPERATION','text','data','Stop\x20presenting','Start','_sharedOperations','UniverLiveSharePlugin','forwardRef','random','evenodd','defineProperty','_init','dispose','_injector','none','toString','jsx','toDisposable','1000788bDBVzl','next','_startPresenting','function','length','from','currentColor','sheet','stopPresenting','_reporters','15AnAhUZ','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','merge','reverse','LIVESHARE_TERMINATE','_mountLiveShare','OPERATION','icon','createElement','throttleTime','Subject','type','getTypeOfUnitAdded$','_collabSessionService','getInitialStates','getConfig','univer-size-4','_handleOffline','7532665NqXxtw','mutations','attrs','className','You\x27re\x20not\x20following\x20the\x20presenter','hasOwnProperty','_startLiveShareCoordinator','registerInitialStateReporter','Button','map','call','_configService','dispose$','displayName','url(#$1','_stopPresenting','getTypeOfUnitDisposed$','get','startFollowing','CollaborationEvent','IConfigService','SetZoomRatioOperation','_stopFollowing','Present\x20this\x20document','LiveShareIcon','LiveShare','univerjs-icon\x20univerjs-icon-','presenting','useRef','clsx','1XzRGop','Inject','LiveShareStatus','NEW_CHANGESETS','720gVWOIQ','presenter','_status$','IDLE','mergeOverrideWithDependencies','getValue','assign','_univerInstanceService','RxDisposable','1101160ByfKIJ','Stop\x20following','_entities','path','set','has','IUIPartsService','not-following','toStringTag','DisposableCollection','You\x27are\x20offline.','UniverIcon','1142198BzTczX','SessionStatus','_commandService','useEffect','memberID','getLiveShareCoordinator','disposeWithMe','registerSharedOperation','offline','mask','jsxs','_commandDisposable','executeCommand','_beIdle','_handleNewChangeSets','_handleOperation','LiveShareCoordinator','ICommandService','entries','init','_unitID','add','setConfig','SetScrollOperation','UniverCollaborationClientPlugin'];_0x68f7=function(){return _0x96fe78;};return _0x68f7();}
|
|
1
|
+
'use strict';var _0x2edea7=_0x48ed;(function(_0x35cd07,_0x37d6d6){var _0x5f007b=_0x48ed,_0x14e721=_0x35cd07();while(!![]){try{var _0x236cb9=parseInt(_0x5f007b(0x241))/0x1+-parseInt(_0x5f007b(0x1d7))/0x2+-parseInt(_0x5f007b(0x25f))/0x3+parseInt(_0x5f007b(0x2a1))/0x4*(parseInt(_0x5f007b(0x1e0))/0x5)+-parseInt(_0x5f007b(0x277))/0x6+-parseInt(_0x5f007b(0x26c))/0x7*(parseInt(_0x5f007b(0x24a))/0x8)+-parseInt(_0x5f007b(0x204))/0x9*(-parseInt(_0x5f007b(0x1e4))/0xa);if(_0x236cb9===_0x37d6d6)break;else _0x14e721['push'](_0x14e721['shift']());}catch(_0x1594d0){_0x14e721['push'](_0x14e721['shift']());}}}(_0x4a04,0xa196e));var U=Object[_0x2edea7(0x219)],F=(_0x517e9f,_0x1faf0b,_0x1100a6)=>_0x1faf0b in _0x517e9f?U(_0x517e9f,_0x1faf0b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1100a6}):_0x517e9f[_0x1faf0b]=_0x1100a6,v=(_0x31191b,_0x557d43,_0x18dc61)=>F(_0x31191b,typeof _0x557d43!=_0x2edea7(0x216)?_0x557d43+'':_0x557d43,_0x18dc61);Object[_0x2edea7(0x219)](exports,Symbol[_0x2edea7(0x213)],{'value':_0x2edea7(0x1f2)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x2edea7(0x20e),x={};class O extends o[_0x2edea7(0x239)]{constructor(){var _0x41c328=_0x2edea7;super(...arguments),v(this,_0x41c328(0x254),new Set()),v(this,'_reporters',new Set());}[_0x2edea7(0x21b)](_0x1b1cf){var _0x325644=_0x2edea7;return this['_sharedOperations'][_0x325644(0x272)](_0x1b1cf),o['toDisposable'](()=>this[_0x325644(0x254)][_0x325644(0x24c)](_0x1b1cf));}[_0x2edea7(0x1eb)](_0x4e0381){var _0x15f998=_0x2edea7;return this[_0x15f998(0x21a)][_0x15f998(0x272)](_0x4e0381),o[_0x15f998(0x290)](()=>this[_0x15f998(0x21a)][_0x15f998(0x24c)](_0x4e0381));}[_0x2edea7(0x281)](_0x290810){var _0x59c2e7=_0x2edea7;return this['_sharedOperations'][_0x59c2e7(0x2ad)](_0x290810);}[_0x2edea7(0x210)](_0x5d1f71){var _0x2d63ed=_0x2edea7;return Array[_0x2d63ed(0x234)](this['_reporters'])['map'](_0x5d9900=>_0x5d9900(_0x5d1f71));}}var H=Object[_0x2edea7(0x24b)],V=(_0x32bff1,_0x30c453,_0x330851,_0x20cb70)=>{var _0x425bb2=_0x2edea7;for(var _0x512ed1=_0x20cb70>0x1?void 0x0:_0x20cb70?H(_0x30c453,_0x330851):_0x30c453,_0x1137e2=_0x32bff1[_0x425bb2(0x273)]-0x1,_0x44815c;_0x1137e2>=0x0;_0x1137e2--)(_0x44815c=_0x32bff1[_0x1137e2])&&(_0x512ed1=_0x44815c(_0x512ed1)||_0x512ed1);return _0x512ed1;},k=(_0x2161a3,_0x599d4e)=>(_0x44676f,_0x6fbed0)=>_0x599d4e(_0x44676f,_0x6fbed0,_0x2161a3);let E=class extends o[_0x2edea7(0x239)]{constructor(_0x3020ae){var _0x94f208=_0x2edea7;super(),this[_0x94f208(0x26a)]=_0x3020ae,this[_0x94f208(0x261)]();}[_0x2edea7(0x261)](){var _0x37dee6=_0x2edea7;[w['SetZoomRatioOperation']['id'],w['SetScrollOperation']['id'],C[_0x37dee6(0x247)]['id']][_0x37dee6(0x23a)](_0x455b9e=>{var _0x291211=_0x37dee6;this[_0x291211(0x24d)](this[_0x291211(0x26a)][_0x291211(0x21b)](_0x455b9e));});}};E=V([k(0x0,o[_0x2edea7(0x215)](O))],E);var u=function(){var _0xc2cf3a=_0x2edea7;return u=Object[_0xc2cf3a(0x1db)]||function(_0x52aa20){var _0x43ac1a=_0xc2cf3a;for(var _0x2a1a9b,_0x2c7fe2=0x1,_0x5d165f=arguments[_0x43ac1a(0x273)];_0x2c7fe2<_0x5d165f;_0x2c7fe2++){_0x2a1a9b=arguments[_0x2c7fe2];for(var _0x9625e2 in _0x2a1a9b)Object[_0x43ac1a(0x253)][_0x43ac1a(0x27f)][_0x43ac1a(0x21e)](_0x2a1a9b,_0x9625e2)&&(_0x52aa20[_0x9625e2]=_0x2a1a9b[_0x9625e2]);}return _0x52aa20;},u[_0xc2cf3a(0x1da)](this,arguments);},M=function(_0x243fdd,_0x103773){var _0x48d034=_0x2edea7,_0x3c2d5c={};for(var _0x4d1f23 in _0x243fdd)Object[_0x48d034(0x253)]['hasOwnProperty']['call'](_0x243fdd,_0x4d1f23)&&_0x103773[_0x48d034(0x25b)](_0x4d1f23)<0x0&&(_0x3c2d5c[_0x4d1f23]=_0x243fdd[_0x4d1f23]);if(_0x243fdd!=null&&typeof Object[_0x48d034(0x296)]==_0x48d034(0x258)){for(var _0x282cd9=0x0,_0x4d1f23=Object[_0x48d034(0x296)](_0x243fdd);_0x282cd9<_0x4d1f23[_0x48d034(0x273)];_0x282cd9++)_0x103773[_0x48d034(0x25b)](_0x4d1f23[_0x282cd9])<0x0&&Object[_0x48d034(0x253)][_0x48d034(0x2ac)][_0x48d034(0x21e)](_0x243fdd,_0x4d1f23[_0x282cd9])&&(_0x3c2d5c[_0x4d1f23[_0x282cd9]]=_0x243fdd[_0x4d1f23[_0x282cd9]]);}return _0x3c2d5c;},j=f[_0x2edea7(0x2ab)](function(_0x442f66,_0x10792f){var _0x58f9cd=_0x2edea7,_0x7e99b9=_0x442f66[_0x58f9cd(0x270)],_0xfd99c8=_0x442f66['id'],_0x4fbbac=_0x442f66[_0x58f9cd(0x29e)],_0x3bd9fd=_0x442f66[_0x58f9cd(0x27b)],_0x28d683=M(_0x442f66,[_0x58f9cd(0x270),'id',_0x58f9cd(0x29e),'extend']),_0x3bcb2f=_0x58f9cd(0x275)['concat'](_0xfd99c8,'\x20')[_0x58f9cd(0x282)](_0x4fbbac||'')[_0x58f9cd(0x1dc)](),_0x5a9811=f['useRef']('_'[_0x58f9cd(0x282)](G()));return y(_0x7e99b9,''[_0x58f9cd(0x282)](_0xfd99c8),{'defIds':_0x7e99b9['defIds'],'idSuffix':_0x5a9811[_0x58f9cd(0x22d)]},u({'ref':_0x10792f,'className':_0x3bcb2f},_0x28d683),_0x3bd9fd);});function y(_0x5e5f7b,_0x53b5fb,_0xd72d82,_0x58c281,_0x107830){var _0x48d0b6=_0x2edea7;return f[_0x48d0b6(0x1d9)](_0x5e5f7b[_0x48d0b6(0x221)],u(u({'key':_0x53b5fb},q(_0x5e5f7b,_0xd72d82,_0x107830)),_0x58c281),(W(_0x5e5f7b,_0xd72d82)[_0x48d0b6(0x2af)]||[])[_0x48d0b6(0x218)](function(_0x1135d3,_0x19b5c2){var _0x40bdc3=_0x48d0b6;return y(_0x1135d3,''[_0x40bdc3(0x282)](_0x53b5fb,'-')[_0x40bdc3(0x282)](_0x5e5f7b['tag'],'-')[_0x40bdc3(0x282)](_0x19b5c2),_0xd72d82,void 0x0,_0x107830);}));}function q(_0xb801c2,_0x4d5860,_0x3f25a0){var _0x5a9bdd=_0x2edea7,_0x2b212a=u({},_0xb801c2[_0x5a9bdd(0x29a)]);_0x3f25a0!=null&&_0x3f25a0[_0x5a9bdd(0x1d6)]&&_0x2b212a[_0x5a9bdd(0x2a8)]===_0x5a9bdd(0x1d6)&&(_0x2b212a['fill']=_0x3f25a0[_0x5a9bdd(0x1d6)]),_0xb801c2[_0x5a9bdd(0x221)]===_0x5a9bdd(0x1e3)&&_0x2b212a['id']&&(_0x2b212a['id']=_0x2b212a['id']+_0x4d5860[_0x5a9bdd(0x233)]),Object[_0x5a9bdd(0x276)](_0x2b212a)[_0x5a9bdd(0x23a)](function(_0x5eefe2){var _0x1b8259=_0x5a9bdd,_0xd03530=_0x5eefe2[0x0],_0x25ce47=_0x5eefe2[0x1];_0xd03530===_0x1b8259(0x1e3)&&typeof _0x25ce47=='string'&&(_0x2b212a[_0xd03530]=_0x25ce47[_0x1b8259(0x29b)](/url\(#(.*)\)/,'url(#$1'[_0x1b8259(0x282)](_0x4d5860[_0x1b8259(0x233)],')')));});var _0x2b3cff=_0x4d5860['defIds'];return!_0x2b3cff||_0x2b3cff['length']===0x0||(_0xb801c2[_0x5a9bdd(0x221)]===_0x5a9bdd(0x293)&&_0x2b212a[_0x5a9bdd(0x242)]&&(_0x2b212a[_0x5a9bdd(0x242)]=_0x2b212a[_0x5a9bdd(0x242)]+_0x4d5860['idSuffix']),Object[_0x5a9bdd(0x276)](_0x2b212a)[_0x5a9bdd(0x23a)](function(_0x55c34f){var _0xcbe908=_0x5a9bdd,_0x2ddda9=_0x55c34f[0x0],_0xc63929=_0x55c34f[0x1];typeof _0xc63929==_0xcbe908(0x1fb)&&(_0x2b212a[_0x2ddda9]=_0xc63929[_0xcbe908(0x29b)](/url\(#(.*)\)/,'url(#$1'[_0xcbe908(0x282)](_0x4d5860['idSuffix'],')')));})),_0x2b212a;}function W(_0x341120,_0x47d2ae){var _0x44b707=_0x2edea7,_0x4c19e9,_0x1b8de3=_0x47d2ae[_0x44b707(0x2a4)];return!_0x1b8de3||_0x1b8de3[_0x44b707(0x273)]===0x0?_0x341120:_0x341120[_0x44b707(0x221)]==='defs'&&(!((_0x4c19e9=_0x341120[_0x44b707(0x2af)])===null||_0x4c19e9===void 0x0)&&_0x4c19e9[_0x44b707(0x273)])?u(u({},_0x341120),{'children':_0x341120['children'][_0x44b707(0x218)](function(_0x5790b7){var _0x49434d=_0x44b707;return typeof _0x5790b7[_0x49434d(0x29a)]['id']==_0x49434d(0x1fb)&&_0x1b8de3&&_0x1b8de3[_0x49434d(0x20a)](_0x5790b7[_0x49434d(0x29a)]['id'])?u(u({},_0x5790b7),{'attrs':u(u({},_0x5790b7[_0x49434d(0x29a)]),{'id':_0x5790b7[_0x49434d(0x29a)]['id']+_0x47d2ae[_0x49434d(0x233)]})}):_0x5790b7;})}):_0x341120;}function G(){var _0x16ffd6=_0x2edea7;return Math['random']()[_0x16ffd6(0x249)](0x24)[_0x16ffd6(0x265)](0x2,0x8);}j[_0x2edea7(0x267)]='UniverIcon';var B={'tag':_0x2edea7(0x21c),'attrs':{'xmlns':_0x2edea7(0x260),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x2edea7(0x224),'height':'1em'},'children':[{'tag':_0x2edea7(0x263),'attrs':{'fill':_0x2edea7(0x22e),'d':_0x2edea7(0x228)}},{'tag':_0x2edea7(0x263),'attrs':{'fill':_0x2edea7(0x22e),'d':_0x2edea7(0x240),'fillRule':_0x2edea7(0x22c),'clipRule':_0x2edea7(0x22c)}}]},P=f['forwardRef'](function(_0x18ab0f,_0x4ca130){var _0x2e9347=_0x2edea7;return f[_0x2e9347(0x1d9)](j,Object[_0x2e9347(0x1db)]({},_0x18ab0f,{'id':_0x2e9347(0x229),'ref':_0x4ca130,'icon':B}));});function _0x48ed(_0x5cbfc8,_0x239a50){var _0x4a04a6=_0x4a04();return _0x48ed=function(_0x48ed2d,_0x19f5bf){_0x48ed2d=_0x48ed2d-0x1d1;var _0x362e6e=_0x4a04a6[_0x48ed2d];return _0x362e6e;},_0x48ed(_0x5cbfc8,_0x239a50);}P[_0x2edea7(0x267)]=_0x2edea7(0x23e);var Y=Object['getOwnPropertyDescriptor'],R=(_0x487923,_0x12b0e5,_0x3b949d,_0x48ab34)=>{var _0x594615=_0x2edea7;for(var _0x1d4a01=_0x48ab34>0x1?void 0x0:_0x48ab34?Y(_0x12b0e5,_0x3b949d):_0x12b0e5,_0x2e26bb=_0x487923[_0x594615(0x273)]-0x1,_0x9db1e3;_0x2e26bb>=0x0;_0x2e26bb--)(_0x9db1e3=_0x487923[_0x2e26bb])&&(_0x1d4a01=_0x9db1e3(_0x1d4a01)||_0x1d4a01);return _0x1d4a01;},S=(_0x4b8034,_0x5c65ad)=>(_0x17c804,_0x5be7ea)=>_0x5c65ad(_0x17c804,_0x5be7ea,_0x4b8034);exports['LiveShareController']=class extends o[_0x2edea7(0x207)]{constructor(_0x31580e,_0x2691e6,_0x5d5f01){var _0xecf10c=_0x2edea7;super(),v(this,_0xecf10c(0x1f4),new Map()),(this[_0xecf10c(0x28e)]=_0x31580e,this['_injector']=_0x2691e6,this[_0xecf10c(0x269)]=_0x5d5f01,this[_0xecf10c(0x261)]());}async['getLiveShareCoordinator'](_0x31ed63){var _0x2edbf3=_0x2edea7;return this['_entities'][_0x2edbf3(0x2ad)](_0x31ed63)||await this[_0x2edbf3(0x1de)](_0x31ed63),this['_entities'][_0x2edbf3(0x201)](_0x31ed63);}[_0x2edea7(0x261)](){var _0x463a03=_0x2edea7;this['_univerInstanceService'][_0x463a03(0x1d3)](o[_0x463a03(0x2a5)][_0x463a03(0x255)])[_0x463a03(0x1d1)](b['takeUntil'](this[_0x463a03(0x214)]))[_0x463a03(0x1f0)](async _0x3520da=>{var _0x50f6eb=_0x463a03;const _0x1ed859=_0x3520da[_0x50f6eb(0x28a)]();this[_0x50f6eb(0x1f4)][_0x50f6eb(0x2ad)](_0x1ed859)||this[_0x50f6eb(0x1de)](_0x1ed859);}),this[_0x463a03(0x28e)]['getTypeOfUnitDisposed$'](o[_0x463a03(0x2a5)][_0x463a03(0x255)])['pipe'](b[_0x463a03(0x22f)](this[_0x463a03(0x214)]))[_0x463a03(0x1f0)](_0x5e5607=>{var _0x2a0f15=_0x463a03;const _0x264a3a=_0x5e5607[_0x2a0f15(0x28a)](),_0x2d8729=this[_0x2a0f15(0x1f4)][_0x2a0f15(0x201)](_0x264a3a);_0x2d8729==null||_0x2d8729['dispose']();});}async[_0x2edea7(0x1de)](_0x458796){var _0x22c478=_0x2edea7;const _0x1c2814=await this[_0x22c478(0x269)][_0x22c478(0x223)](_0x458796),_0x40cca6=this[_0x22c478(0x206)][_0x22c478(0x24e)](exports[_0x22c478(0x2b0)],_0x458796,_0x1c2814);return _0x40cca6[_0x22c478(0x262)](),this[_0x22c478(0x1f4)]['set'](_0x458796,_0x40cca6),_0x40cca6;}},exports[_0x2edea7(0x284)]=R([S(0x0,o[_0x2edea7(0x208)]),S(0x1,o[_0x2edea7(0x215)](o[_0x2edea7(0x264)])),S(0x2,o[_0x2edea7(0x215)](m[_0x2edea7(0x22b)]))],exports['LiveShareController']);var h=(_0x3cd28b=>(_0x3cd28b[_0x2edea7(0x1ed)]=_0x2edea7(0x28c),_0x3cd28b[_0x2edea7(0x289)]=_0x2edea7(0x252),_0x3cd28b[_0x2edea7(0x1f9)]=_0x2edea7(0x28b),_0x3cd28b['NOT_FOLLOWING']='not-following',_0x3cd28b[_0x2edea7(0x1d8)]='presenting',_0x3cd28b))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x2edea7(0x2b0)]=class extends o[_0x2edea7(0x207)]{constructor(_0x51ac3b,_0x5d03ef,_0x384d12,_0x25880b,_0x5bb595){var _0x3ef807=_0x2edea7;super(),v(this,_0x3ef807(0x1d5),new D[(_0x3ef807(0x2b1))]('idle')),v(this,'status$',this[_0x3ef807(0x1d5)][_0x3ef807(0x28f)]()),v(this,_0x3ef807(0x261),!0x1),v(this,_0x3ef807(0x259),null),v(this,_0x3ef807(0x1d4),null),(this['_unitID']=_0x51ac3b,this[_0x3ef807(0x1e5)]=_0x5d03ef,this['_configService']=_0x384d12,this['_liveShareService']=_0x25880b,this[_0x3ef807(0x222)]=_0x5bb595);}get['_status'](){var _0x4ae8cf=_0x2edea7;return this[_0x4ae8cf(0x1d5)]['getValue']();}[_0x2edea7(0x217)](){var _0x2dbdc6=_0x2edea7,_0x4bfd32;(_0x4bfd32=this[_0x2dbdc6(0x259)])==null||_0x4bfd32[_0x2dbdc6(0x217)](),this['_status$'][_0x2dbdc6(0x295)](_0x2dbdc6(0x252)),this['_status$'][_0x2dbdc6(0x1df)]();}['init'](){var _0xbf87e1=_0x2edea7;this[_0xbf87e1(0x261)]||(this['_init']=!0x0,this[_0xbf87e1(0x1e5)][_0xbf87e1(0x1f5)][_0xbf87e1(0x1d1)](b['takeUntil'](this['dispose$']))['subscribe'](_0x1c91ba=>{var _0xafb2fe=_0xbf87e1;switch(_0x1c91ba){case m['SessionStatus'][_0xafb2fe(0x1ed)]:this[_0xafb2fe(0x25d)]();break;case m[_0xafb2fe(0x1f8)][_0xafb2fe(0x211)]:this[_0xafb2fe(0x27d)]();break;}}),this[_0xbf87e1(0x1e5)][_0xbf87e1(0x232)][_0xbf87e1(0x1d1)](b['takeUntil'](this['dispose$']))[_0xbf87e1(0x1f0)](_0x1e82d0=>{var _0xf75aaf=_0xbf87e1;const {eventID:_0xb0b01a}=_0x1e82d0;switch(_0xb0b01a){case _[_0xf75aaf(0x280)][_0xf75aaf(0x27a)]:this[_0xf75aaf(0x1fe)](_0x1e82d0);break;case _[_0xf75aaf(0x280)][_0xf75aaf(0x292)]:this[_0xf75aaf(0x23f)](_0x1e82d0);break;case _['CollaborationEvent'][_0xf75aaf(0x298)]:this[_0xf75aaf(0x23b)]();break;case _[_0xf75aaf(0x280)][_0xf75aaf(0x294)]:this[_0xf75aaf(0x235)](_0x1e82d0);break;}}));}['tryStartPresenting'](){var _0x58e805=_0x2edea7;this[_0x58e805(0x1e5)][_0x58e805(0x246)]({'eventID':_[_0x58e805(0x280)][_0x58e805(0x26e)],'data':{'unitID':this[_0x58e805(0x237)],'userID':this['_collabSession'][_0x58e805(0x1e8)]()}},this[_0x58e805(0x237)]);}[_0x2edea7(0x2ae)](){var _0x3704c7=_0x2edea7;this[_0x3704c7(0x2a3)]===_0x3704c7(0x209)&&(this[_0x3704c7(0x1d5)][_0x3704c7(0x295)](_0x3704c7(0x252)),this[_0x3704c7(0x1e5)][_0x3704c7(0x246)]({'eventID':_[_0x3704c7(0x280)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3704c7(0x237)]}},this['_unitID']));}[_0x2edea7(0x1e6)](){var _0x1bee48=_0x2edea7;this[_0x1bee48(0x2a3)]==='not-following'&&(this[_0x1bee48(0x1d5)][_0x1bee48(0x295)]('following'),this[_0x1bee48(0x230)]());}[_0x2edea7(0x283)](){var _0xd8773e=_0x2edea7;this['_status']==='following'&&this[_0xd8773e(0x1e1)]();}['_handleNewHost'](_0x35c274){var _0x40421e=_0x2edea7;const {presenter:_0x393eb6}=_0x35c274['data'],_0x16014f=this[_0x40421e(0x1e5)][_0x40421e(0x1e8)]();this[_0x40421e(0x1d4)]=_0x393eb6,_0x393eb6===_0x16014f?(this[_0x40421e(0x1e1)](),this['_startPresenting']()):this[_0x40421e(0x2a3)]!==_0x40421e(0x200)&&(this[_0x40421e(0x29f)](),this[_0x40421e(0x230)]());}[_0x2edea7(0x212)](){var _0x4bf9e9=_0x2edea7;const _0x387e23={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x4bf9e9(0x1e5)][_0x4bf9e9(0x246)](_0x387e23,this[_0x4bf9e9(0x237)]);}[_0x2edea7(0x23b)](){var _0x198ccb=_0x2edea7;this['_presenter']=null,this[_0x198ccb(0x2a3)]!==_0x198ccb(0x209)&&this['_beIdle']();}[_0x2edea7(0x235)](_0x56f4a1){var _0x18d152=_0x2edea7;if(this[_0x18d152(0x2a3)]===_0x18d152(0x28b)&&this['_presenter']===_0x56f4a1[_0x18d152(0x26d)][_0x18d152(0x1ee)]){const _0x2b64e0=_[_0x18d152(0x202)](_0x56f4a1[_0x18d152(0x26d)])[_0x18d152(0x1f7)][_0x18d152(0x1ff)]()[_0x18d152(0x1fd)](_0x4c777a=>_0x4c777a['id']===C['InsertSheetMutation']['id']);if(_0x2b64e0){const _0x218529=_0x2b64e0['params']['unitId'],_0x3338ab=_0x2b64e0[_0x18d152(0x285)][_0x18d152(0x243)]['id'];setTimeout(()=>{var _0x4e77e9=_0x18d152;this[_0x4e77e9(0x222)][_0x4e77e9(0x28d)](C[_0x4e77e9(0x247)]['id'],{'unitId':_0x218529,'subUnitId':_0x3338ab},{'fromCollab':!0x0});});}}}[_0x2edea7(0x238)](){var _0x16d64b=_0x2edea7;this[_0x16d64b(0x1d5)][_0x16d64b(0x295)](_0x16d64b(0x209));const _0x130699=new Map(),_0x187ce0=this[_0x16d64b(0x259)]=new o[(_0x16d64b(0x20c))]();_0x187ce0[_0x16d64b(0x272)](o['toDisposable'](()=>{var _0x349b77=_0x16d64b;_0x130699[_0x349b77(0x23a)](_0x8e16b1=>_0x8e16b1[_0x349b77(0x1df)]()),_0x130699[_0x349b77(0x26f)]();})),_0x187ce0[_0x16d64b(0x272)](this[_0x16d64b(0x222)][_0x16d64b(0x236)](_0x51d218=>{var _0x1d16ad=_0x16d64b,_0x5c9373;if(_0x51d218[_0x1d16ad(0x205)]!==o[_0x1d16ad(0x288)][_0x1d16ad(0x1dd)]||!this[_0x1d16ad(0x26a)][_0x1d16ad(0x281)](_0x51d218['id']))return;const {id:_0x3aab7d}=_0x51d218;let _0x8a24af;_0x130699[_0x1d16ad(0x2ad)](_0x3aab7d)?_0x8a24af=_0x130699[_0x1d16ad(0x201)](_0x3aab7d):(_0x8a24af=new D[(_0x1d16ad(0x279))](),_0x130699[_0x1d16ad(0x297)](_0x3aab7d,_0x8a24af),_0x8a24af[_0x1d16ad(0x1d1)](b[_0x1d16ad(0x271)]((_0x5c9373=this['_configService']['getConfig'](Z))!=null?_0x5c9373:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1d16ad(0x1f0)](_0x5866ef=>{var _0x2206fb=_0x1d16ad;this[_0x2206fb(0x1e5)][_0x2206fb(0x246)]({'eventID':_[_0x2206fb(0x280)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2206fb(0x237)],'operations':{[_0x5866ef['id']]:{'id':_0x5866ef['id'],'params':JSON['stringify'](_0x5866ef['params'])}}}},this[_0x2206fb(0x237)]);})),_0x8a24af[_0x1d16ad(0x295)](_0x51d218);})),this['_liveShareService'][_0x16d64b(0x210)](this['_unitID'])['forEach'](_0xfdb839=>this[_0x16d64b(0x1e5)]['send']({'eventID':_[_0x16d64b(0x280)][_0x16d64b(0x292)],'data':{'unitID':this[_0x16d64b(0x237)],'operations':{[_0xfdb839['id']]:{'id':_0xfdb839['id'],'params':JSON['stringify'](_0xfdb839[_0x16d64b(0x285)])}}}},this['_unitID']));}[_0x2edea7(0x29f)](){var _0x101640=_0x2edea7,_0x30afd2;this[_0x101640(0x1d5)][_0x101640(0x295)](_0x101640(0x252)),(_0x30afd2=this[_0x101640(0x259)])==null||_0x30afd2[_0x101640(0x217)](),this[_0x101640(0x259)]=null;}[_0x2edea7(0x230)](){var _0xed8620=_0x2edea7,_0x368b27;(_0x368b27=this[_0xed8620(0x259)])==null||_0x368b27[_0xed8620(0x217)](),this[_0xed8620(0x1d5)][_0xed8620(0x295)](_0xed8620(0x28b));}[_0x2edea7(0x25a)](){var _0xd592aa=_0x2edea7,_0x5861bc;this[_0xd592aa(0x1d5)][_0xd592aa(0x295)](_0xd592aa(0x252)),(_0x5861bc=this[_0xd592aa(0x259)])==null||_0x5861bc[_0xd592aa(0x217)](),this[_0xd592aa(0x259)]=null;}[_0x2edea7(0x1e1)](){var _0x2912c8=_0x2edea7,_0x12eb4b;this['_status$']['next'](_0x2912c8(0x200)),(_0x12eb4b=this[_0x2912c8(0x259)])==null||_0x12eb4b[_0x2912c8(0x217)]();}[_0x2edea7(0x23f)](_0x410d03){var _0x33c531=_0x2edea7;if([_0x33c531(0x209),_0x33c531(0x200),_0x33c531(0x28c)][_0x33c531(0x20a)](this[_0x33c531(0x2a3)])||!_0x410d03[_0x33c531(0x26d)][_0x33c531(0x2a2)]||_0x410d03['data']['presenter']===this[_0x33c531(0x1e5)][_0x33c531(0x1e8)]())return;this[_0x33c531(0x2a3)]===_0x33c531(0x252)&&this['_startFollowing']();const _0x2ddd1c=_0x410d03[_0x33c531(0x26d)][_0x33c531(0x2a7)];Object[_0x33c531(0x1d2)](_0x2ddd1c)['forEach'](_0x2b5e6b=>{var _0x4ab986=_0x33c531;this[_0x4ab986(0x222)][_0x4ab986(0x28d)](_0x2b5e6b['id'],_0x2b5e6b[_0x4ab986(0x285)]?JSON['parse'](_0x2b5e6b['params']):null,{'fromCollab':!0x0});});}[_0x2edea7(0x25d)](){var _0x238330=_0x2edea7,_0x57283c;this['_status$'][_0x238330(0x295)](_0x238330(0x28c)),(_0x57283c=this[_0x238330(0x259)])==null||_0x57283c[_0x238330(0x217)]();}[_0x2edea7(0x27d)](){var _0x5d4fc8=_0x2edea7;this['_status$'][_0x5d4fc8(0x295)](_0x5d4fc8(0x252)),this[_0x5d4fc8(0x212)]();}},exports[_0x2edea7(0x2b0)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x2edea7(0x215)](O)),S(0x4,o[_0x2edea7(0x286)])],exports[_0x2edea7(0x2b0)]);function A(){var _0x23f00e=_0x2edea7;const _0x2a36e1=p[_0x23f00e(0x2aa)](exports[_0x23f00e(0x284)]),_0x54892d=p[_0x23f00e(0x2aa)](o[_0x23f00e(0x208)]),_0x4edd92=p[_0x23f00e(0x23c)](()=>_0x54892d[_0x23f00e(0x278)](o[_0x23f00e(0x2a5)][_0x23f00e(0x255)]),void 0x0,!0x1,[]),[_0x199c6a,_0x1e0540]=f[_0x23f00e(0x1fa)](null),[_0x505272,_0x258e4d]=f[_0x23f00e(0x1fa)](h[_0x23f00e(0x289)]),_0x38f518=f[_0x23f00e(0x220)](null);return f[_0x23f00e(0x226)](()=>(_0x4edd92&&_0x2a36e1[_0x23f00e(0x299)](_0x4edd92['getUnitId']())['then'](_0x5e4eac=>{var _0x31b1ad=_0x23f00e;_0x1e0540(_0x5e4eac),_0x38f518['current']=_0x5e4eac[_0x31b1ad(0x274)][_0x31b1ad(0x1f0)](_0xb2c439=>{_0x258e4d(_0xb2c439);});}),()=>{var _0x5c26ca=_0x23f00e,_0x22c4a9;(_0x22c4a9=_0x38f518[_0x5c26ca(0x22d)])==null||_0x22c4a9[_0x5c26ca(0x248)](),_0x38f518['current']=null;}),[_0x4edd92,_0x2a36e1]),_0x199c6a?l[_0x23f00e(0x2a6)](g[_0x23f00e(0x23d)],{'align':'end','disabled':_0x505272===h['OFFLINE'],'className':_0x23f00e(0x1fc),'overlay':l[_0x23f00e(0x2a6)](K,{'status':_0x505272,'coordinator':_0x199c6a}),'children':l[_0x23f00e(0x2a6)](_0x23f00e(0x251),{'className':g[_0x23f00e(0x21f)](_0x23f00e(0x231),{'univer-cursor-not-allowed':_0x505272===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x505272!==h[_0x23f00e(0x1ed)]}),'type':_0x23f00e(0x251),'children':l[_0x23f00e(0x2a6)](P,{'className':_0x23f00e(0x227)})})}):null;}function K(_0x194ce5){var _0x51eac3=_0x2edea7;const {status:_0x5798df,coordinator:_0x2a3d81}=_0x194ce5;switch(_0x5798df){case h[_0x51eac3(0x289)]:return l[_0x51eac3(0x2a6)](z,{'coordinator':_0x2a3d81});case h[_0x51eac3(0x1f9)]:return l[_0x51eac3(0x2a6)](Q,{'coordinator':_0x2a3d81});case h[_0x51eac3(0x20b)]:return l[_0x51eac3(0x2a6)](X,{'coordinator':_0x2a3d81});case h[_0x51eac3(0x1ed)]:return l[_0x51eac3(0x2a6)](te,{});case h[_0x51eac3(0x1d8)]:return l['jsx'](ee,{'coordinator':_0x2a3d81});default:return null;}}function z(_0x10cf4a){var _0x276115=_0x2edea7;const {coordinator:_0x1cbc53}=_0x10cf4a;return l[_0x276115(0x26b)](l['Fragment'],{'children':[l[_0x276115(0x2a6)](_0x276115(0x1f3),{'className':_0x276115(0x1f6),'children':'Present\x20this\x20document'}),l['jsx'](g[_0x276115(0x2a0)],{'onClick':()=>_0x1cbc53[_0x276115(0x1f1)](),'children':'Start'})]});}function Q(_0x27130e){var _0x142c60=_0x2edea7;const {coordinator:_0x297840}=_0x27130e;return l['jsxs'](l[_0x142c60(0x291)],{'children':[l[_0x142c60(0x2a6)](_0x142c60(0x1f3),{'className':_0x142c60(0x1f6),'children':_0x142c60(0x2a9)}),l[_0x142c60(0x2a6)](g[_0x142c60(0x2a0)],{'onClick':()=>_0x297840['stopFollowing'](),'children':_0x142c60(0x245)})]});}function X(_0x4c2f7f){var _0x913bfe=_0x2edea7;const {coordinator:_0x36b1d0}=_0x4c2f7f;return l[_0x913bfe(0x26b)](l[_0x913bfe(0x291)],{'children':[l['jsx'](_0x913bfe(0x1f3),{'className':_0x913bfe(0x1f6),'children':_0x913bfe(0x266)}),l[_0x913bfe(0x2a6)](g[_0x913bfe(0x2a0)],{'variant':_0x913bfe(0x257),'onClick':()=>_0x36b1d0[_0x913bfe(0x1e6)](),'children':'Start\x20following'})]});}function ee(_0x176872){var _0x44b745=_0x2edea7;const {coordinator:_0x89bdb4}=_0x176872;return l[_0x44b745(0x26b)](l['Fragment'],{'children':[l[_0x44b745(0x2a6)]('div',{'className':_0x44b745(0x1f6),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x44b745(0x2a6)](g[_0x44b745(0x2a0)],{'variant':_0x44b745(0x1e2),'onClick':()=>_0x89bdb4[_0x44b745(0x2ae)](),'children':'Stop\x20presenting'})]});}function te(){var _0x4d89f1=_0x2edea7;return l['jsx'](l['Fragment'],{'children':_0x4d89f1(0x1e7)});}var ie=Object[_0x2edea7(0x24b)],ne=(_0x11b45f,_0x2d0116,_0x5e8fb7,_0x21a611)=>{var _0x484343=_0x2edea7;for(var _0x4765d7=_0x21a611>0x1?void 0x0:_0x21a611?ie(_0x2d0116,_0x5e8fb7):_0x2d0116,_0x5e1bcc=_0x11b45f[_0x484343(0x273)]-0x1,_0x52fad4;_0x5e1bcc>=0x0;_0x5e1bcc--)(_0x52fad4=_0x11b45f[_0x5e1bcc])&&(_0x4765d7=_0x52fad4(_0x4765d7)||_0x4765d7);return _0x4765d7;},L=(_0x188431,_0x5b7571)=>(_0x57c385,_0x20f518)=>_0x5b7571(_0x57c385,_0x20f518,_0x188431);exports[_0x2edea7(0x29d)]=class extends o['Disposable']{constructor(_0x1f3238,_0x5b0e8d){var _0x431266=_0x2edea7;super(),this[_0x431266(0x206)]=_0x1f3238,this['_uiPartsService']=_0x5b0e8d,this['_mountLiveShare']();}[_0x2edea7(0x244)](){var _0x51476f=_0x2edea7;this[_0x51476f(0x24d)](this[_0x51476f(0x1ec)][_0x51476f(0x22a)](p[_0x51476f(0x25c)][_0x51476f(0x27c)],()=>p[_0x51476f(0x25e)](A,this[_0x51476f(0x206)])));}},exports[_0x2edea7(0x29d)]=ne([L(0x0,o[_0x2edea7(0x215)](o['Injector'])),L(0x1,p['IUIPartsService'])],exports[_0x2edea7(0x29d)]);var re=Object[_0x2edea7(0x219)],se=Object[_0x2edea7(0x24b)],oe=(_0x10ac7f,_0x2c7f51,_0x5d3e4e)=>_0x2c7f51 in _0x10ac7f?re(_0x10ac7f,_0x2c7f51,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d3e4e}):_0x10ac7f[_0x2c7f51]=_0x5d3e4e,ae=(_0x556b50,_0x1cea6a,_0x33a372,_0x3fa030)=>{var _0x1cd8b4=_0x2edea7;for(var _0x32105b=_0x3fa030>0x1?void 0x0:_0x3fa030?se(_0x1cea6a,_0x33a372):_0x1cea6a,_0xab7ccd=_0x556b50[_0x1cd8b4(0x273)]-0x1,_0x5d9c59;_0xab7ccd>=0x0;_0xab7ccd--)(_0x5d9c59=_0x556b50[_0xab7ccd])&&(_0x32105b=_0x5d9c59(_0x32105b)||_0x32105b);return _0x32105b;},N=(_0x3ac69c,_0x20ff8d)=>(_0x34d59e,_0x48a94e)=>_0x20ff8d(_0x34d59e,_0x48a94e,_0x3ac69c),T=(_0x2bc754,_0x1a1c0d,_0x4dfbfd)=>oe(_0x2bc754,typeof _0x1a1c0d!=_0x2edea7(0x216)?_0x1a1c0d+'':_0x1a1c0d,_0x4dfbfd);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x2edea7(0x20d)]=class extends o[_0x2edea7(0x21d)]{constructor(_0x392434=x,_0x3a5b7a,_0x5ba78e){var _0xfcf547=_0x2edea7;super(),this['_config']=_0x392434,this[_0xfcf547(0x206)]=_0x3a5b7a,this[_0xfcf547(0x29c)]=_0x5ba78e;const {..._0x51679b}=o['merge']({},x,this[_0xfcf547(0x1ea)]);this['_configService'][_0xfcf547(0x268)]($,_0x51679b);}[_0x2edea7(0x1e9)](){var _0x38c344=_0x2edea7;o['registerDependencies'](this['_injector'],o[_0x38c344(0x203)]([[O],[exports['LiveShareController']],[E],[exports['DesktopLiveShareController']]],this[_0x38c344(0x1ea)][_0x38c344(0x20f)])),o[_0x38c344(0x256)](this[_0x38c344(0x206)],[[E]]);}[_0x2edea7(0x225)](){var _0x543adc=_0x2edea7;o[_0x543adc(0x256)](this[_0x543adc(0x206)],[[exports[_0x543adc(0x29d)]]]);}},T(exports[_0x2edea7(0x20d)],_0x2edea7(0x205),o[_0x2edea7(0x2a5)]['UNIVER_UNKNOWN']),T(exports['UniverLiveSharePlugin'],_0x2edea7(0x250),le),exports['UniverLiveSharePlugin']=ae([o[_0x2edea7(0x27e)](m[_0x2edea7(0x1ef)]),N(0x1,o['Inject'](o[_0x2edea7(0x264)])),N(0x2,o[_0x2edea7(0x24f)])],exports[_0x2edea7(0x20d)]),exports[_0x2edea7(0x287)]=A,exports['LiveShareService']=O,exports['LiveShareStatus']=h;function _0x4a04(){var _0x6d5075=['apply','assign','trim','OPERATION','_startLiveShareCoordinator','complete','3655GKlxlp','_stopFollowing','default','mask','10nuzwqC','_collabSession','startFollowing','You\x27are\x20offline.','getMemberID','onStarting','_config','registerInitialStateReporter','_uiPartsService','OFFLINE','memberID','UniverCollaborationClientPlugin','subscribe','tryStartPresenting','Module','div','_entities','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','mutations','SessionStatus','FOLLOWING','useState','string','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','find','_handleNewHost','reverse','not-following','get','parseProtocolChangeset','mergeOverrideWithDependencies','19229841oNKBOd','type','_injector','RxDisposable','IUniverInstanceService','presenting','includes','NOT_FOLLOWING','DisposableCollection','UniverLiveSharePlugin','live-share.config','override','getInitialStates','ONLINE','_fetchOperations','toStringTag','dispose$','Inject','symbol','dispose','map','defineProperty','_reporters','registerSharedOperation','svg','Plugin','call','clsx','useRef','tag','_commandService','requireSession','1em','onRendered','useEffect','univer-size-4','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','live-share-icon','registerComponent','CollaborationSessionService','evenodd','current','currentColor','takeUntil','_startFollowing','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','event$','idSuffix','from','_handleNewChangeSets','onCommandExecuted','_unitID','_startPresenting','Disposable','forEach','_handleTerminate','useObservable','Dropdown','LiveShareIcon','_handleOperation','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','53902tieAFX','xlink:href','sheet','_mountLiveShare','Stop\x20following','send','SetWorksheetActiveOperation','unsubscribe','toString','184OQgclw','getOwnPropertyDescriptor','delete','disposeWithMe','createInstance','IConfigService','pluginName','button','idle','prototype','_sharedOperations','UNIVER_SHEET','touchDependencies','text','function','_commandDisposable','_beIdle','indexOf','BuiltInUIPart','_handleOffline','connectInjector','2548971jPUetm','http://www.w3.org/2000/svg','_init','init','path','Injector','substring','You\x27re\x20not\x20following\x20the\x20presenter','displayName','setConfig','_collabSessionService','_liveShareService','jsxs','277599dGxDht','data','LIVESHARE_REQUEST_HOST','clear','icon','throttleTime','add','length','status$','univerjs-icon\x20univerjs-icon-','entries','2787480ohElOi','getCurrentTypeOfUnit$','Subject','LIVESHARE_NEW_HOST','extend','HEADER_MENU','_handleOnline','DependentOn','hasOwnProperty','CollaborationEvent','shouldShareOperation','concat','stopFollowing','LiveShareController','params','ICommandService','LiveShare','CommandType','IDLE','getUnitId','following','offline','executeCommand','_univerInstanceService','asObservable','toDisposable','Fragment','LIVESHARE_OPERATION','use','NEW_CHANGESETS','next','getOwnPropertySymbols','set','LIVESHARE_TERMINATE','getLiveShareCoordinator','attrs','replace','_configService','DesktopLiveShareController','className','_stopPresenting','Button','4972xQqBUe','presenter','_status','defIds','UniverInstanceType','jsx','operations','fill','You\x27re\x20following\x20the\x20presenter','useDependency','forwardRef','propertyIsEnumerable','has','stopPresenting','children','LiveShareCoordinator','BehaviorSubject','pipe','values','getTypeOfUnitAdded$','_presenter','_status$','colorChannel1','421932msHkDb','PRESENTING','createElement'];_0x4a04=function(){return _0x6d5075;};return _0x4a04();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0xbba1b3=_0x2982;(function(_0x229e0d,_0x4d44c2){var _0x3aa5c4=_0x2982,_0x2227cf=_0x229e0d();while(!![]){try{var _0x18cf61=-parseInt(_0x3aa5c4(0xcb))/0x1*(-parseInt(_0x3aa5c4(0x100))/0x2)+parseInt(_0x3aa5c4(0xff))/0x3+-parseInt(_0x3aa5c4(0xae))/0x4+-parseInt(_0x3aa5c4(0xc5))/0x5+-parseInt(_0x3aa5c4(0x156))/0x6*(parseInt(_0x3aa5c4(0x135))/0x7)+parseInt(_0x3aa5c4(0xa4))/0x8*(parseInt(_0x3aa5c4(0xc9))/0x9)+-parseInt(_0x3aa5c4(0x119))/0xa*(-parseInt(_0x3aa5c4(0x13d))/0xb);if(_0x18cf61===_0x4d44c2)break;else _0x2227cf['push'](_0x2227cf['shift']());}catch(_0xc5c46b){_0x2227cf['push'](_0x2227cf['shift']());}}}(_0x2498,0xcf9c0));var q=Object[_0xbba1b3(0x140)],z=(_0x1fa592,_0xea3f56,_0x46473c)=>_0xea3f56 in _0x1fa592?q(_0x1fa592,_0xea3f56,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46473c}):_0x1fa592[_0xea3f56]=_0x46473c,d=(_0x477731,_0x319959,_0x453d10)=>z(_0x477731,typeof _0x319959!=_0xbba1b3(0xb8)?_0x319959+'':_0x319959,_0x453d10);import{CollaborationSessionService as _0x15cce5,SessionStatus as _0x2739e9,UniverCollaborationClientPlugin as _0x4e408a}from'@univerjs-pro/collaboration-client';import{Disposable as _0x381194,toDisposable as _0x58453c,Inject as _0x211552,IUniverInstanceService as _0x555a6c,Injector as _0x2709b6,IConfigService as _0x126fd1,ICommandService as _0x4aa7e1,RxDisposable as _0x38ab13,UniverInstanceType as _0x2cec4c,DisposableCollection as _0x5c8a45,CommandType as _0x510564,DependentOn as _0x232c0c,Plugin as _0x29f071,merge as _0x19abfa,registerDependencies as _0x4163a2,mergeOverrideWithDependencies as _0x229151,touchDependencies as _0x3bf957}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1633d9,InsertSheetMutation as _0x403fb0}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2903f7,SetScrollOperation as _0x50f7e2}from'@univerjs/sheets-ui';import{useDependency as _0x500185,useObservable as _0x280c77,IUIPartsService as _0x41b1e5,BuiltInUIPart as _0x18a9bb,connectInjector as _0x2555d5}from'@univerjs/ui';function _0x2982(_0x3e9fd4,_0x740786){var _0x249884=_0x2498();return _0x2982=function(_0x298248,_0x4de01e){_0x298248=_0x298248-0x9f;var _0x289707=_0x249884[_0x298248];return _0x289707;},_0x2982(_0x3e9fd4,_0x740786);}import{jsx as _0xc9c319,jsxs as _0x40d01f,Fragment as _0x162862}from'react/jsx-runtime';import{Dropdown as _0x47773f,clsx as _0x467e30,Button as _0x14318a}from'@univerjs/design';import{forwardRef as _0x3efdbf,useRef as _0x3851ec,createElement as _0x4c84ed,useState as _0x31db33,useEffect as _0x15d0bc}from'react';import{CollaborationEvent as _0x382651,parseProtocolChangeset as _0x3b8640}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3387fa,Subject as _0x2b4247}from'rxjs';import{takeUntil as _0x2a5001,throttleTime as _0x3edd27}from'rxjs/operators';const Oe=_0xbba1b3(0xde),T={};class L extends _0x381194{constructor(){var _0x300bc0=_0xbba1b3;super(...arguments),d(this,_0x300bc0(0xe2),new Set()),d(this,_0x300bc0(0xaa),new Set());}['registerSharedOperation'](_0x36a524){var _0x2b2084=_0xbba1b3;return this[_0x2b2084(0xe2)]['add'](_0x36a524),_0x58453c(()=>this['_sharedOperations']['delete'](_0x36a524));}[_0xbba1b3(0xe3)](_0x593c72){var _0x37d5aa=_0xbba1b3;return this[_0x37d5aa(0xaa)][_0x37d5aa(0xd7)](_0x593c72),_0x58453c(()=>this['_reporters'][_0x37d5aa(0x112)](_0x593c72));}[_0xbba1b3(0xcf)](_0x27fb7a){var _0x2e587a=_0xbba1b3;return this['_sharedOperations'][_0x2e587a(0xa5)](_0x27fb7a);}[_0xbba1b3(0xf5)](_0x3cf2f1){var _0x41af84=_0xbba1b3;return Array['from'](this[_0x41af84(0xaa)])[_0x41af84(0x11f)](_0x1f7580=>_0x1f7580(_0x3cf2f1));}}var Ee=Object[_0xbba1b3(0x13e)],we=(_0x5a4d13,_0x56019b,_0x30ac3c,_0x183673)=>{var _0x168c15=_0xbba1b3;for(var _0x10e60a=_0x183673>0x1?void 0x0:_0x183673?Ee(_0x56019b,_0x30ac3c):_0x56019b,_0x375ac8=_0x5a4d13[_0x168c15(0xd6)]-0x1,_0xced61a;_0x375ac8>=0x0;_0x375ac8--)(_0xced61a=_0x5a4d13[_0x375ac8])&&(_0x10e60a=_0xced61a(_0x10e60a)||_0x10e60a);return _0x10e60a;},Ne=(_0x5685c1,_0x5cb1fd)=>(_0x4a5efd,_0x5564fa)=>_0x5cb1fd(_0x4a5efd,_0x5564fa,_0x5685c1);let m=class extends _0x381194{constructor(_0x550f75){var _0x558bbf=_0xbba1b3;super(),this['_liveShareService']=_0x550f75,this[_0x558bbf(0xb7)]();}[_0xbba1b3(0xb7)](){[_0x2903f7['id'],_0x50f7e2['id'],_0x1633d9['id']]['forEach'](_0x5c14ca=>{var _0x52435c=_0x2982;this[_0x52435c(0x129)](this['_liveShareService'][_0x52435c(0xb3)](_0x5c14ca));});}};m=we([Ne(0x0,_0x211552(L))],m);var c=function(){var _0x2226cb=_0xbba1b3;return c=Object[_0x2226cb(0x14a)]||function(_0x299e3e){var _0x17309a=_0x2226cb;for(var _0x5a825f,_0x5724ce=0x1,_0xdcc19e=arguments['length'];_0x5724ce<_0xdcc19e;_0x5724ce++){_0x5a825f=arguments[_0x5724ce];for(var _0x2c0827 in _0x5a825f)Object[_0x17309a(0x9f)]['hasOwnProperty'][_0x17309a(0x137)](_0x5a825f,_0x2c0827)&&(_0x299e3e[_0x2c0827]=_0x5a825f[_0x2c0827]);}return _0x299e3e;},c[_0x2226cb(0x11c)](this,arguments);},Ce=function(_0xbb65c7,_0xcc8580){var _0x33ac4b=_0xbba1b3,_0x27a8ad={};for(var _0x53d013 in _0xbb65c7)Object[_0x33ac4b(0x9f)][_0x33ac4b(0x151)][_0x33ac4b(0x137)](_0xbb65c7,_0x53d013)&&_0xcc8580[_0x33ac4b(0xd8)](_0x53d013)<0x0&&(_0x27a8ad[_0x53d013]=_0xbb65c7[_0x53d013]);if(_0xbb65c7!=null&&typeof Object[_0x33ac4b(0xc4)]=='function'){for(var _0x694209=0x0,_0x53d013=Object[_0x33ac4b(0xc4)](_0xbb65c7);_0x694209<_0x53d013[_0x33ac4b(0xd6)];_0x694209++)_0xcc8580[_0x33ac4b(0xd8)](_0x53d013[_0x694209])<0x0&&Object[_0x33ac4b(0x9f)][_0x33ac4b(0x10c)]['call'](_0xbb65c7,_0x53d013[_0x694209])&&(_0x27a8ad[_0x53d013[_0x694209]]=_0xbb65c7[_0x53d013[_0x694209]]);}return _0x27a8ad;},W=_0x3efdbf(function(_0x5ac79d,_0x3f54cd){var _0x10e500=_0xbba1b3,_0x16e7bb=_0x5ac79d[_0x10e500(0x153)],_0x3cf780=_0x5ac79d['id'],_0x24aa8d=_0x5ac79d[_0x10e500(0xe7)],_0x42dfd7=_0x5ac79d[_0x10e500(0x12d)],_0x2c9789=Ce(_0x5ac79d,[_0x10e500(0x153),'id',_0x10e500(0xe7),'extend']),_0x38a55b=_0x10e500(0x136)['concat'](_0x3cf780,'\x20')[_0x10e500(0xa6)](_0x24aa8d||'')[_0x10e500(0x11e)](),_0x20b867=_0x3851ec('_'['concat'](Le()));return Y(_0x16e7bb,''[_0x10e500(0xa6)](_0x3cf780),{'defIds':_0x16e7bb[_0x10e500(0xe1)],'idSuffix':_0x20b867['current']},c({'ref':_0x3f54cd,'className':_0x38a55b},_0x2c9789),_0x42dfd7);});function Y(_0x45f0af,_0x5b91c3,_0x42293c,_0x9ec0f4,_0x2ffaf4){var _0x149373=_0xbba1b3;return _0x4c84ed(_0x45f0af[_0x149373(0xf8)],c(c({'key':_0x5b91c3},De(_0x45f0af,_0x42293c,_0x2ffaf4)),_0x9ec0f4),(xe(_0x45f0af,_0x42293c)[_0x149373(0x114)]||[])['map'](function(_0x3614b5,_0x26fc72){var _0x5972c8=_0x149373;return Y(_0x3614b5,''[_0x5972c8(0xa6)](_0x5b91c3,'-')[_0x5972c8(0xa6)](_0x45f0af['tag'],'-')[_0x5972c8(0xa6)](_0x26fc72),_0x42293c,void 0x0,_0x2ffaf4);}));}function De(_0xb2794f,_0x35a47c,_0x363ef4){var _0x1d902b=_0xbba1b3,_0x5bca5f=c({},_0xb2794f[_0x1d902b(0xbd)]);_0x363ef4!=null&&_0x363ef4['colorChannel1']&&_0x5bca5f[_0x1d902b(0x10e)]===_0x1d902b(0xd1)&&(_0x5bca5f['fill']=_0x363ef4[_0x1d902b(0xd1)]),_0xb2794f[_0x1d902b(0xf8)]==='mask'&&_0x5bca5f['id']&&(_0x5bca5f['id']=_0x5bca5f['id']+_0x35a47c[_0x1d902b(0xce)]),Object['entries'](_0x5bca5f)['forEach'](function(_0xe29496){var _0x39874a=_0x1d902b,_0x133298=_0xe29496[0x0],_0x4efe1a=_0xe29496[0x1];_0x133298===_0x39874a(0xa3)&&typeof _0x4efe1a==_0x39874a(0xfb)&&(_0x5bca5f[_0x133298]=_0x4efe1a['replace'](/url\(#(.*)\)/,_0x39874a(0x10f)[_0x39874a(0xa6)](_0x35a47c['idSuffix'],')')));});var _0x19272f=_0x35a47c['defIds'];return!_0x19272f||_0x19272f['length']===0x0||(_0xb2794f[_0x1d902b(0xf8)]===_0x1d902b(0xb4)&&_0x5bca5f[_0x1d902b(0xb2)]&&(_0x5bca5f[_0x1d902b(0xb2)]=_0x5bca5f['xlink:href']+_0x35a47c[_0x1d902b(0xce)]),Object['entries'](_0x5bca5f)['forEach'](function(_0x38f904){var _0x32e3cc=_0x1d902b,_0x39d930=_0x38f904[0x0],_0xc8a06c=_0x38f904[0x1];typeof _0xc8a06c=='string'&&(_0x5bca5f[_0x39d930]=_0xc8a06c[_0x32e3cc(0xbb)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x35a47c[_0x32e3cc(0xce)],')')));})),_0x5bca5f;}function xe(_0x44bba3,_0x4c5382){var _0x3fa32c=_0xbba1b3,_0x5ca828,_0x219b08=_0x4c5382['defIds'];return!_0x219b08||_0x219b08[_0x3fa32c(0xd6)]===0x0?_0x44bba3:_0x44bba3[_0x3fa32c(0xf8)]===_0x3fa32c(0x12e)&&(!((_0x5ca828=_0x44bba3[_0x3fa32c(0x114)])===null||_0x5ca828===void 0x0)&&_0x5ca828[_0x3fa32c(0xd6)])?c(c({},_0x44bba3),{'children':_0x44bba3[_0x3fa32c(0x114)]['map'](function(_0x45d336){var _0x20dc4a=_0x3fa32c;return typeof _0x45d336[_0x20dc4a(0xbd)]['id']==_0x20dc4a(0xfb)&&_0x219b08&&_0x219b08[_0x20dc4a(0xcc)](_0x45d336['attrs']['id'])?c(c({},_0x45d336),{'attrs':c(c({},_0x45d336[_0x20dc4a(0xbd)]),{'id':_0x45d336[_0x20dc4a(0xbd)]['id']+_0x4c5382['idSuffix']})}):_0x45d336;})}):_0x44bba3;}function Le(){var _0x52a17c=_0xbba1b3;return Math[_0x52a17c(0xf1)]()[_0x52a17c(0x102)](0x24)[_0x52a17c(0xdc)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0xbba1b3(0x152),'attrs':{'xmlns':_0xbba1b3(0x120),'fill':_0xbba1b3(0xca),'viewBox':_0xbba1b3(0x141),'width':_0xbba1b3(0xf3),'height':_0xbba1b3(0xf3)},'children':[{'tag':_0xbba1b3(0xaf),'attrs':{'fill':_0xbba1b3(0xb0),'d':_0xbba1b3(0xa9)}},{'tag':_0xbba1b3(0xaf),'attrs':{'fill':_0xbba1b3(0xb0),'d':_0xbba1b3(0xac),'fillRule':_0xbba1b3(0xda),'clipRule':_0xbba1b3(0xda)}}]},B=_0x3efdbf(function(_0x3eabe9,_0xcaef2b){var _0xbe6e78=_0xbba1b3;return _0x4c84ed(W,Object[_0xbe6e78(0x14a)]({},_0x3eabe9,{'id':'live-share-icon','ref':_0xcaef2b,'icon':ye}));});B[_0xbba1b3(0x11b)]=_0xbba1b3(0x10a);var Re=Object[_0xbba1b3(0x13e)],Z=(_0x1daaca,_0x551d27,_0x36c4e0,_0x297f4a)=>{for(var _0x170f13=_0x297f4a>0x1?void 0x0:_0x297f4a?Re(_0x551d27,_0x36c4e0):_0x551d27,_0x15ffb2=_0x1daaca['length']-0x1,_0x232466;_0x15ffb2>=0x0;_0x15ffb2--)(_0x232466=_0x1daaca[_0x15ffb2])&&(_0x170f13=_0x232466(_0x170f13)||_0x170f13);return _0x170f13;},f=(_0x423511,_0x243bc4)=>(_0x4c2fdf,_0x9a4c0a)=>_0x243bc4(_0x4c2fdf,_0x9a4c0a,_0x423511);let I=class extends _0x38ab13{constructor(_0xfd93f9,_0x3bc8e1,_0x1c449d){var _0x2f58ea=_0xbba1b3;super(),d(this,_0x2f58ea(0x14b),new Map()),(this[_0x2f58ea(0xa0)]=_0xfd93f9,this[_0x2f58ea(0x122)]=_0x3bc8e1,this[_0x2f58ea(0xe4)]=_0x1c449d,this[_0x2f58ea(0xb7)]());}async[_0xbba1b3(0x11d)](_0x5b94d4){var _0x1ddbd9=_0xbba1b3;return this[_0x1ddbd9(0x14b)][_0x1ddbd9(0xa5)](_0x5b94d4)||await this[_0x1ddbd9(0xb1)](_0x5b94d4),this[_0x1ddbd9(0x14b)]['get'](_0x5b94d4);}[_0xbba1b3(0xb7)](){var _0x52ae0c=_0xbba1b3;this[_0x52ae0c(0xa0)][_0x52ae0c(0xc8)](_0x2cec4c[_0x52ae0c(0xa2)])[_0x52ae0c(0xab)](_0x2a5001(this[_0x52ae0c(0xfe)]))['subscribe'](async _0x1a7af7=>{var _0x573fa6=_0x52ae0c;const _0x1afbe4=_0x1a7af7[_0x573fa6(0x115)]();this[_0x573fa6(0x14b)][_0x573fa6(0xa5)](_0x1afbe4)||this[_0x573fa6(0xb1)](_0x1afbe4);}),this['_univerInstanceService'][_0x52ae0c(0xe9)](_0x2cec4c['UNIVER_SHEET'])[_0x52ae0c(0xab)](_0x2a5001(this[_0x52ae0c(0xfe)]))[_0x52ae0c(0xbe)](_0x9789e3=>{var _0x11ade7=_0x52ae0c;const _0x2eccbb=_0x9789e3[_0x11ade7(0x115)](),_0x5d9ded=this[_0x11ade7(0x14b)]['get'](_0x2eccbb);_0x5d9ded==null||_0x5d9ded[_0x11ade7(0x111)]();});}async['_startLiveShareCoordinator'](_0x50bd2b){var _0x3e1d86=_0xbba1b3;const _0x1437c0=await this[_0x3e1d86(0xe4)][_0x3e1d86(0xa1)](_0x50bd2b),_0x50550c=this[_0x3e1d86(0x122)][_0x3e1d86(0x12a)](C,_0x50bd2b,_0x1437c0);return _0x50550c[_0x3e1d86(0xfc)](),this[_0x3e1d86(0x14b)]['set'](_0x50bd2b,_0x50550c),_0x50550c;}};I=Z([f(0x0,_0x555a6c),f(0x1,_0x211552(_0x2709b6)),f(0x2,_0x211552(_0x15cce5))],I);var h=(_0x2bafbc=>(_0x2bafbc[_0xbba1b3(0x14d)]=_0xbba1b3(0xd5),_0x2bafbc['IDLE']=_0xbba1b3(0xdb),_0x2bafbc[_0xbba1b3(0x105)]=_0xbba1b3(0xc1),_0x2bafbc[_0xbba1b3(0x108)]=_0xbba1b3(0xd3),_0x2bafbc[_0xbba1b3(0xd0)]=_0xbba1b3(0xf7),_0x2bafbc))(h||{});const Pe=_0xbba1b3(0xee),Ae=0xc8;let C=class extends _0x38ab13{constructor(_0x4b7697,_0x41e41e,_0xf79f28,_0x14b10b,_0x23f691){var _0x115630=_0xbba1b3;super(),d(this,_0x115630(0x125),new _0x3387fa(_0x115630(0xdb))),d(this,_0x115630(0xec),this['_status$'][_0x115630(0x117)]()),d(this,_0x115630(0xb7),!0x1),d(this,_0x115630(0x12b),null),d(this,_0x115630(0x149),null),(this[_0x115630(0xf0)]=_0x4b7697,this[_0x115630(0xbc)]=_0x41e41e,this[_0x115630(0xb6)]=_0xf79f28,this[_0x115630(0x142)]=_0x14b10b,this['_commandService']=_0x23f691);}get[_0xbba1b3(0x10d)](){var _0x14a4a5=_0xbba1b3;return this[_0x14a4a5(0x125)][_0x14a4a5(0xcd)]();}[_0xbba1b3(0x111)](){var _0x576528=_0xbba1b3,_0x36e9b8;(_0x36e9b8=this[_0x576528(0x12b)])==null||_0x36e9b8[_0x576528(0x111)](),this[_0x576528(0x125)][_0x576528(0x14c)]('idle'),this[_0x576528(0x125)]['complete']();}[_0xbba1b3(0xfc)](){var _0x857586=_0xbba1b3;this['_init']||(this[_0x857586(0xb7)]=!0x0,this[_0x857586(0xbc)]['sessionStatus$']['pipe'](_0x2a5001(this[_0x857586(0xfe)]))[_0x857586(0xbe)](_0x382de=>{var _0x228520=_0x857586;switch(_0x382de){case _0x2739e9[_0x228520(0x14d)]:this[_0x228520(0x145)]();break;case _0x2739e9[_0x228520(0x127)]:this[_0x228520(0xd4)]();break;}}),this[_0x857586(0xbc)][_0x857586(0xf2)][_0x857586(0xab)](_0x2a5001(this[_0x857586(0xfe)]))[_0x857586(0xbe)](_0x4736a2=>{var _0x1e5adb=_0x857586;const {eventID:_0x45238d}=_0x4736a2;switch(_0x45238d){case _0x382651[_0x1e5adb(0xc7)]:this[_0x1e5adb(0xbf)](_0x4736a2);break;case _0x382651[_0x1e5adb(0x124)]:this[_0x1e5adb(0x150)](_0x4736a2);break;case _0x382651[_0x1e5adb(0x107)]:this[_0x1e5adb(0xeb)]();break;case _0x382651[_0x1e5adb(0xe8)]:this['_handleNewChangeSets'](_0x4736a2);break;}}));}[_0xbba1b3(0xad)](){var _0x50918e=_0xbba1b3;this[_0x50918e(0xbc)][_0x50918e(0xf4)]({'eventID':_0x382651['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x50918e(0xf0)],'userID':this[_0x50918e(0xbc)][_0x50918e(0x109)]()}},this[_0x50918e(0xf0)]);}['stopPresenting'](){var _0x40e232=_0xbba1b3;this[_0x40e232(0x10d)]===_0x40e232(0xf7)&&(this[_0x40e232(0x125)][_0x40e232(0x14c)](_0x40e232(0xdb)),this[_0x40e232(0xbc)][_0x40e232(0xf4)]({'eventID':_0x382651[_0x40e232(0x107)],'data':{'unitID':this[_0x40e232(0xf0)]}},this[_0x40e232(0xf0)]));}['startFollowing'](){var _0x445384=_0xbba1b3;this[_0x445384(0x10d)]===_0x445384(0xd3)&&(this[_0x445384(0x125)]['next']('following'),this[_0x445384(0xdf)]());}[_0xbba1b3(0xe0)](){var _0x1d450e=_0xbba1b3;this[_0x1d450e(0x10d)]===_0x1d450e(0xc1)&&this[_0x1d450e(0x118)]();}[_0xbba1b3(0xbf)](_0x3d2564){var _0x419a3a=_0xbba1b3;const {presenter:_0x3cbac0}=_0x3d2564[_0x419a3a(0xfd)],_0x58fceb=this[_0x419a3a(0xbc)]['getMemberID']();this[_0x419a3a(0x149)]=_0x3cbac0,_0x3cbac0===_0x58fceb?(this[_0x419a3a(0x118)](),this[_0x419a3a(0x155)]()):this[_0x419a3a(0x10d)]!==_0x419a3a(0xd3)&&(this[_0x419a3a(0x133)](),this[_0x419a3a(0xdf)]());}['_fetchOperations'](){var _0x4e900d=_0xbba1b3;const _0x307243={'eventID':_0x382651['LIVESHARE_FETCH_OPERATIONS']};this[_0x4e900d(0xbc)]['send'](_0x307243,this['_unitID']);}[_0xbba1b3(0xeb)](){var _0x5f3dc4=_0xbba1b3;this['_presenter']=null,this['_status']!==_0x5f3dc4(0xf7)&&this[_0x5f3dc4(0x116)]();}['_handleNewChangeSets'](_0x36bf97){var _0x47a3f3=_0xbba1b3;if(this['_status']==='following'&&this['_presenter']===_0x36bf97[_0x47a3f3(0xfd)][_0x47a3f3(0x126)]){const _0x37f385=_0x3b8640(_0x36bf97[_0x47a3f3(0xfd)])[_0x47a3f3(0xa7)][_0x47a3f3(0x123)]()[_0x47a3f3(0x104)](_0x18b98e=>_0x18b98e['id']===_0x403fb0['id']);if(_0x37f385){const _0x56e0d4=_0x37f385[_0x47a3f3(0xc2)]['unitId'],_0x5ae00a=_0x37f385[_0x47a3f3(0xc2)]['sheet']['id'];setTimeout(()=>{var _0x273d07=_0x47a3f3;this[_0x273d07(0xa8)]['executeCommand'](_0x1633d9['id'],{'unitId':_0x56e0d4,'subUnitId':_0x5ae00a},{'fromCollab':!0x0});});}}}[_0xbba1b3(0x155)](){var _0xdd8692=_0xbba1b3;this[_0xdd8692(0x125)][_0xdd8692(0x14c)](_0xdd8692(0xf7));const _0xd0723=new Map(),_0x15cd3c=this[_0xdd8692(0x12b)]=new _0x5c8a45();_0x15cd3c[_0xdd8692(0xd7)](_0x58453c(()=>{var _0x36bb01=_0xdd8692;_0xd0723[_0x36bb01(0xc3)](_0x1c985b=>_0x1c985b[_0x36bb01(0x106)]()),_0xd0723['clear']();})),_0x15cd3c[_0xdd8692(0xd7)](this[_0xdd8692(0xa8)][_0xdd8692(0x10b)](_0x3d81e4=>{var _0x5b6d80=_0xdd8692,_0x1a9604;if(_0x3d81e4['type']!==_0x510564['OPERATION']||!this[_0x5b6d80(0x142)]['shouldShareOperation'](_0x3d81e4['id']))return;const {id:_0x5ccfb3}=_0x3d81e4;let _0x238bce;_0xd0723[_0x5b6d80(0xa5)](_0x5ccfb3)?_0x238bce=_0xd0723[_0x5b6d80(0x139)](_0x5ccfb3):(_0x238bce=new _0x2b4247(),_0xd0723['set'](_0x5ccfb3,_0x238bce),_0x238bce['pipe'](_0x3edd27((_0x1a9604=this[_0x5b6d80(0xb6)][_0x5b6d80(0x12f)](Pe))!=null?_0x1a9604:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4ebaad=>{var _0x38b62d=_0x5b6d80;this['_collabSession'][_0x38b62d(0xf4)]({'eventID':_0x382651[_0x38b62d(0x124)],'data':{'unitID':this[_0x38b62d(0xf0)],'operations':{[_0x4ebaad['id']]:{'id':_0x4ebaad['id'],'params':JSON[_0x38b62d(0x14e)](_0x4ebaad[_0x38b62d(0xc2)])}}}},this[_0x38b62d(0xf0)]);})),_0x238bce[_0x5b6d80(0x14c)](_0x3d81e4);})),this[_0xdd8692(0x142)][_0xdd8692(0xf5)](this[_0xdd8692(0xf0)])['forEach'](_0xc9da9b=>this[_0xdd8692(0xbc)]['send']({'eventID':_0x382651[_0xdd8692(0x124)],'data':{'unitID':this[_0xdd8692(0xf0)],'operations':{[_0xc9da9b['id']]:{'id':_0xc9da9b['id'],'params':JSON[_0xdd8692(0x14e)](_0xc9da9b[_0xdd8692(0xc2)])}}}},this[_0xdd8692(0xf0)]));}[_0xbba1b3(0x133)](){var _0x518289=_0xbba1b3,_0x2277f4;this[_0x518289(0x125)][_0x518289(0x14c)](_0x518289(0xdb)),(_0x2277f4=this['_commandDisposable'])==null||_0x2277f4['dispose'](),this[_0x518289(0x12b)]=null;}['_startFollowing'](){var _0x16ebeb=_0xbba1b3,_0x45c4ec;(_0x45c4ec=this[_0x16ebeb(0x12b)])==null||_0x45c4ec[_0x16ebeb(0x111)](),this[_0x16ebeb(0x125)][_0x16ebeb(0x14c)]('following');}[_0xbba1b3(0x116)](){var _0x2a4b1b=_0xbba1b3,_0x3c6771;this['_status$'][_0x2a4b1b(0x14c)]('idle'),(_0x3c6771=this['_commandDisposable'])==null||_0x3c6771[_0x2a4b1b(0x111)](),this['_commandDisposable']=null;}[_0xbba1b3(0x118)](){var _0x321264=_0xbba1b3,_0x4f956d;this[_0x321264(0x125)][_0x321264(0x14c)]('not-following'),(_0x4f956d=this[_0x321264(0x12b)])==null||_0x4f956d['dispose']();}[_0xbba1b3(0x150)](_0x1ad340){var _0xe91a=_0xbba1b3;if([_0xe91a(0xf7),_0xe91a(0xd3),_0xe91a(0xd5)][_0xe91a(0xcc)](this[_0xe91a(0x10d)])||!_0x1ad340[_0xe91a(0xfd)][_0xe91a(0xf6)]||_0x1ad340[_0xe91a(0xfd)][_0xe91a(0xf6)]===this[_0xe91a(0xbc)][_0xe91a(0x109)]())return;this[_0xe91a(0x10d)]==='idle'&&this[_0xe91a(0xdf)]();const _0x11adcc=_0x1ad340[_0xe91a(0xfd)][_0xe91a(0xef)];Object[_0xe91a(0xe5)](_0x11adcc)[_0xe91a(0xc3)](_0x4f3a35=>{var _0x43f4a5=_0xe91a;this[_0x43f4a5(0xa8)][_0x43f4a5(0x128)](_0x4f3a35['id'],_0x4f3a35[_0x43f4a5(0xc2)]?JSON[_0x43f4a5(0x13b)](_0x4f3a35['params']):null,{'fromCollab':!0x0});});}[_0xbba1b3(0x145)](){var _0x3ba4de=_0xbba1b3,_0x56e0bd;this['_status$'][_0x3ba4de(0x14c)](_0x3ba4de(0xd5)),(_0x56e0bd=this[_0x3ba4de(0x12b)])==null||_0x56e0bd[_0x3ba4de(0x111)]();}[_0xbba1b3(0xd4)](){var _0x4c93e0=_0xbba1b3;this[_0x4c93e0(0x125)][_0x4c93e0(0x14c)](_0x4c93e0(0xdb)),this[_0x4c93e0(0x103)]();}};C=Z([f(0x2,_0x126fd1),f(0x3,_0x211552(L)),f(0x4,_0x4aa7e1)],C);function Te(){var _0x294921=_0xbba1b3;const _0x2feab5=_0x500185(I),_0x1fae20=_0x500185(_0x555a6c),_0x58935c=_0x280c77(()=>_0x1fae20[_0x294921(0x13c)](_0x2cec4c['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x38e7e9,_0x2476cb]=_0x31db33(null),[_0xdcb56b,_0x3bd5bc]=_0x31db33(h[_0x294921(0x146)]),_0xf743e2=_0x3851ec(null);return _0x15d0bc(()=>(_0x58935c&&_0x2feab5[_0x294921(0x11d)](_0x58935c[_0x294921(0x115)]())['then'](_0x3dc372=>{var _0x55bf87=_0x294921;_0x2476cb(_0x3dc372),_0xf743e2['current']=_0x3dc372[_0x55bf87(0xec)][_0x55bf87(0xbe)](_0x2e6288=>{_0x3bd5bc(_0x2e6288);});}),()=>{var _0x44b3df=_0x294921,_0x3fabc5;(_0x3fabc5=_0xf743e2[_0x44b3df(0x148)])==null||_0x3fabc5['unsubscribe'](),_0xf743e2[_0x44b3df(0x148)]=null;}),[_0x58935c,_0x2feab5]),_0x38e7e9?_0xc9c319(_0x47773f,{'align':_0x294921(0x11a),'disabled':_0xdcb56b===h[_0x294921(0x14d)],'className':_0x294921(0xc6),'overlay':_0xc9c319($e,{'status':_0xdcb56b,'coordinator':_0x38e7e9}),'children':_0xc9c319(_0x294921(0x132),{'className':_0x467e30(_0x294921(0x131),{'univer-cursor-not-allowed':_0xdcb56b===h[_0x294921(0x14d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xdcb56b!==h[_0x294921(0x14d)]}),'type':_0x294921(0x132),'children':_0xc9c319(B,{'className':'univer-size-4'})})}):null;}function $e(_0x59305f){const {status:_0x46163a,coordinator:_0xcd2eb2}=_0x59305f;switch(_0x46163a){case h['IDLE']:return _0xc9c319(Fe,{'coordinator':_0xcd2eb2});case h['FOLLOWING']:return _0xc9c319(He,{'coordinator':_0xcd2eb2});case h['NOT_FOLLOWING']:return _0xc9c319(je,{'coordinator':_0xcd2eb2});case h['OFFLINE']:return _0xc9c319(Ve,{});case h['PRESENTING']:return _0xc9c319(Ue,{'coordinator':_0xcd2eb2});default:return null;}}function Fe(_0xdfc913){var _0x916708=_0xbba1b3;const {coordinator:_0x25b89b}=_0xdfc913;return _0x40d01f(_0x162862,{'children':[_0xc9c319('div',{'className':_0x916708(0x12c),'children':_0x916708(0x154)}),_0xc9c319(_0x14318a,{'onClick':()=>_0x25b89b[_0x916708(0xad)](),'children':_0x916708(0x138)})]});}function He(_0x59a741){var _0x39c60a=_0xbba1b3;const {coordinator:_0x457099}=_0x59a741;return _0x40d01f(_0x162862,{'children':[_0xc9c319('div',{'className':_0x39c60a(0x12c),'children':_0x39c60a(0x113)}),_0xc9c319(_0x14318a,{'onClick':()=>_0x457099[_0x39c60a(0xe0)](),'children':_0x39c60a(0xba)})]});}function je(_0x134299){var _0x57ca87=_0xbba1b3;const {coordinator:_0x400101}=_0x134299;return _0x40d01f(_0x162862,{'children':[_0xc9c319(_0x57ca87(0xea),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x57ca87(0xd9)}),_0xc9c319(_0x14318a,{'variant':_0x57ca87(0xd2),'onClick':()=>_0x400101[_0x57ca87(0x134)](),'children':_0x57ca87(0xf9)})]});}function Ue(_0x18a2ac){var _0x5da86f=_0xbba1b3;const {coordinator:_0x54a631}=_0x18a2ac;return _0x40d01f(_0x162862,{'children':[_0xc9c319('div',{'className':_0x5da86f(0x12c),'children':_0x5da86f(0x144)}),_0xc9c319(_0x14318a,{'variant':_0x5da86f(0x147),'onClick':()=>_0x54a631[_0x5da86f(0xfa)](),'children':_0x5da86f(0x121)})]});}function Ve(){var _0x2f4153=_0xbba1b3;return _0xc9c319(_0x162862,{'children':_0x2f4153(0x101)});}function _0x2498(){var _0x409bda=['memberID','ONLINE','executeCommand','disposeWithMe','createInstance','_commandDisposable','univer-mb-3\x20univer-w-full\x20univer-text-sm','extend','defs','getConfig','registerComponent','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','button','_stopPresenting','startFollowing','7zGCzMZ','univerjs-icon\x20univerjs-icon-','call','Start','get','setConfig','parse','getCurrentTypeOfUnit$','89353WhXTNk','getOwnPropertyDescriptor','onRendered','defineProperty','0\x200\x2017\x2017','_liveShareService','HEADER_MENU','You\x27re\x20presenting\x20the\x20document','_handleOffline','IDLE','default','current','_presenter','assign','_entities','next','OFFLINE','stringify','pluginName','_handleOperation','hasOwnProperty','svg','icon','Present\x20this\x20document','_startPresenting','8473614jNAjrY','prototype','_univerInstanceService','requireSession','UNIVER_SHEET','mask','240FKrWOR','has','concat','mutations','_commandService','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','_reporters','pipe','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','tryStartPresenting','1621500eGPUBm','path','currentColor','_startLiveShareCoordinator','xlink:href','registerSharedOperation','use','override','_configService','_init','symbol','_uiPartsService','Stop\x20following','replace','_collabSession','attrs','subscribe','_handleNewHost','_mountLiveShare','following','params','forEach','getOwnPropertySymbols','3256905amNTTQ','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','LIVESHARE_NEW_HOST','getTypeOfUnitAdded$','187101MiVYEa','none','769341CXhCTn','includes','getValue','idSuffix','shouldShareOperation','PRESENTING','colorChannel1','text','not-following','_handleOnline','offline','length','add','indexOf','You\x27re\x20not\x20following\x20the\x20presenter','evenodd','idle','substring','type','live-share.config','_startFollowing','stopFollowing','defIds','_sharedOperations','registerInitialStateReporter','_collabSessionService','values','_config','className','NEW_CHANGESETS','getTypeOfUnitDisposed$','div','_handleTerminate','status$','onStarting','SAME_OPERATION_SHARE_INTERVAL','operations','_unitID','random','event$','1em','send','getInitialStates','presenter','presenting','tag','Start\x20following','stopPresenting','string','init','data','dispose$','2569470saoTrQ','4EnILWW','You\x27are\x20offline.','toString','_fetchOperations','find','FOLLOWING','complete','LIVESHARE_TERMINATE','NOT_FOLLOWING','getMemberID','LiveShareIcon','onCommandExecuted','propertyIsEnumerable','_status','fill','url(#$1','UNIVER_LIVE_SHARE_PLUGIN','dispose','delete','You\x27re\x20following\x20the\x20presenter','children','getUnitId','_beIdle','asObservable','_stopFollowing','370BSUcat','end','displayName','apply','getLiveShareCoordinator','trim','map','http://www.w3.org/2000/svg','Stop\x20presenting','_injector','reverse','LIVESHARE_OPERATION','_status$'];_0x2498=function(){return _0x409bda;};return _0x2498();}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x108aed,_0x2a7f42,_0x2787db,_0x5d7370)=>{var _0x3f634b=_0xbba1b3;for(var _0xfe4183=_0x5d7370>0x1?void 0x0:_0x5d7370?Me(_0x2a7f42,_0x2787db):_0x2a7f42,_0xeeeea5=_0x108aed[_0x3f634b(0xd6)]-0x1,_0x25d095;_0xeeeea5>=0x0;_0xeeeea5--)(_0x25d095=_0x108aed[_0xeeeea5])&&(_0xfe4183=_0x25d095(_0xfe4183)||_0xfe4183);return _0xfe4183;},$=(_0x88be77,_0x4a90b9)=>(_0x2445bf,_0x427475)=>_0x4a90b9(_0x2445bf,_0x427475,_0x88be77);let b=class extends _0x381194{constructor(_0x1df293,_0x3f4609){var _0x1e6a73=_0xbba1b3;super(),this[_0x1e6a73(0x122)]=_0x1df293,this[_0x1e6a73(0xb9)]=_0x3f4609,this[_0x1e6a73(0xc0)]();}[_0xbba1b3(0xc0)](){var _0x1a6e00=_0xbba1b3;this[_0x1a6e00(0x129)](this[_0x1a6e00(0xb9)][_0x1a6e00(0x130)](_0x18a9bb[_0x1a6e00(0x143)],()=>_0x2555d5(Te,this[_0x1a6e00(0x122)])));}};b=ke([$(0x0,_0x211552(_0x2709b6)),$(0x1,_0x41b1e5)],b);var Ge=Object['defineProperty'],We=Object[_0xbba1b3(0x13e)],Ye=(_0x4c8a0d,_0x44a083,_0x5389cc)=>_0x44a083 in _0x4c8a0d?Ge(_0x4c8a0d,_0x44a083,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5389cc}):_0x4c8a0d[_0x44a083]=_0x5389cc,Be=(_0x4aeedf,_0x20e6b7,_0x71e062,_0x153d29)=>{var _0x4a073c=_0xbba1b3;for(var _0x553be0=_0x153d29>0x1?void 0x0:_0x153d29?We(_0x20e6b7,_0x71e062):_0x20e6b7,_0x5c1d80=_0x4aeedf[_0x4a073c(0xd6)]-0x1,_0x38aa65;_0x5c1d80>=0x0;_0x5c1d80--)(_0x38aa65=_0x4aeedf[_0x5c1d80])&&(_0x553be0=_0x38aa65(_0x553be0)||_0x553be0);return _0x553be0;},F=(_0x32719f,_0x170089)=>(_0x556d88,_0x200a21)=>_0x170089(_0x556d88,_0x200a21,_0x32719f),J=(_0x5362f1,_0x2b62e1,_0x42c2ac)=>Ye(_0x5362f1,typeof _0x2b62e1!='symbol'?_0x2b62e1+'':_0x2b62e1,_0x42c2ac);const Ze=_0xbba1b3(0x110);let O=class extends _0x29f071{constructor(_0x21c5e7=T,_0x149c60,_0x100175){var _0x4ecbf3=_0xbba1b3;super(),this[_0x4ecbf3(0xe6)]=_0x21c5e7,this['_injector']=_0x149c60,this[_0x4ecbf3(0xb6)]=_0x100175;const {..._0x50042e}=_0x19abfa({},T,this[_0x4ecbf3(0xe6)]);this[_0x4ecbf3(0xb6)][_0x4ecbf3(0x13a)](Oe,_0x50042e);}[_0xbba1b3(0xed)](){var _0x162c8d=_0xbba1b3;_0x4163a2(this['_injector'],_0x229151([[L],[I],[m],[b]],this[_0x162c8d(0xe6)][_0x162c8d(0xb5)])),_0x3bf957(this[_0x162c8d(0x122)],[[m]]);}[_0xbba1b3(0x13f)](){var _0x2e5723=_0xbba1b3;_0x3bf957(this[_0x2e5723(0x122)],[[b]]);}};J(O,_0xbba1b3(0xdd),_0x2cec4c['UNIVER_UNKNOWN']),J(O,_0xbba1b3(0x14f),Ze),O=Be([_0x232c0c(_0x4e408a),F(0x1,_0x211552(_0x2709b6)),F(0x2,_0x126fd1)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x36f681=_0x1118;(function(_0xdb3272,_0x585b5c){var _0x1af3b9=_0x1118,_0x55dcb1=_0xdb3272();while(!![]){try{var _0x15cf64=parseInt(_0x1af3b9(0x1f8))/0x1*(parseInt(_0x1af3b9(0x1a9))/0x2)+-parseInt(_0x1af3b9(0x1af))/0x3*(-parseInt(_0x1af3b9(0x1dd))/0x4)+parseInt(_0x1af3b9(0x1aa))/0x5*(-parseInt(_0x1af3b9(0x1c5))/0x6)+-parseInt(_0x1af3b9(0x17d))/0x7*(-parseInt(_0x1af3b9(0x1bf))/0x8)+-parseInt(_0x1af3b9(0x204))/0x9*(parseInt(_0x1af3b9(0x1da))/0xa)+-parseInt(_0x1af3b9(0x1a3))/0xb+-parseInt(_0x1af3b9(0x19a))/0xc*(-parseInt(_0x1af3b9(0x1f5))/0xd);if(_0x15cf64===_0x585b5c)break;else _0x55dcb1['push'](_0x55dcb1['shift']());}catch(_0x371655){_0x55dcb1['push'](_0x55dcb1['shift']());}}}(_0x1122,0x2bf65));var q=Object['defineProperty'],z=(_0x2dc5df,_0x245c31,_0x4dc601)=>_0x245c31 in _0x2dc5df?q(_0x2dc5df,_0x245c31,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4dc601}):_0x2dc5df[_0x245c31]=_0x4dc601,d=(_0x3ce50a,_0x1d8e50,_0x2b5a32)=>z(_0x3ce50a,typeof _0x1d8e50!=_0x36f681(0x19d)?_0x1d8e50+'':_0x1d8e50,_0x2b5a32);import{CollaborationSessionService as _0x3cbafe,SessionStatus as _0x3733f5,UniverCollaborationClientPlugin as _0x1202e1}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1b9b72,toDisposable as _0x4c5635,Inject as _0x2471b9,IUniverInstanceService as _0x369fcc,Injector as _0x1fff4e,IConfigService as _0x177af0,ICommandService as _0x390976,RxDisposable as _0x353398,UniverInstanceType as _0x29b044,DisposableCollection as _0x2810df,CommandType as _0x54268d,DependentOn as _0x203d04,Plugin as _0x45d0b9,merge as _0x217915,registerDependencies as _0x5b4604,mergeOverrideWithDependencies as _0x3ed2f6,touchDependencies as _0x131646}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x599ac0,InsertSheetMutation as _0x4e20ed}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x37dc55,SetScrollOperation as _0x3fbab9}from'@univerjs/sheets-ui';import{useDependency as _0x5edaac,useObservable as _0x219c95,IUIPartsService as _0x2dedba,BuiltInUIPart as _0x1eb411,connectInjector as _0x424e91}from'@univerjs/ui';import{jsx as _0x36145d,jsxs as _0x4e0c68,Fragment as _0x37245c}from'react/jsx-runtime';import{Dropdown as _0x4d6833,clsx as _0x345b91,Button as _0x52e609}from'@univerjs/design';import{forwardRef as _0x24c7ad,useRef as _0x251313,createElement as _0x980b93,useState as _0x569d59,useEffect as _0x173568}from'react';import{CollaborationEvent as _0x18ecaa,parseProtocolChangeset as _0x21841a}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2b64c8,Subject as _0x47ff72}from'rxjs';import{takeUntil as _0x521a29,throttleTime as _0x61e5a1}from'rxjs/operators';const Oe=_0x36f681(0x1bb),T={};class L extends _0x1b9b72{constructor(){var _0x1f7b95=_0x36f681;super(...arguments),d(this,_0x1f7b95(0x1e9),new Set()),d(this,_0x1f7b95(0x17c),new Set());}['registerSharedOperation'](_0xafa4ca){var _0xc7e0ea=_0x36f681;return this['_sharedOperations'][_0xc7e0ea(0x177)](_0xafa4ca),_0x4c5635(()=>this['_sharedOperations'][_0xc7e0ea(0x184)](_0xafa4ca));}[_0x36f681(0x1ac)](_0x3174a6){var _0x4dcd63=_0x36f681;return this['_reporters']['add'](_0x3174a6),_0x4c5635(()=>this[_0x4dcd63(0x17c)][_0x4dcd63(0x184)](_0x3174a6));}[_0x36f681(0x17e)](_0x771b5b){var _0x1f7f10=_0x36f681;return this[_0x1f7f10(0x1e9)]['has'](_0x771b5b);}[_0x36f681(0x1a1)](_0x12879d){var _0x2a858f=_0x36f681;return Array['from'](this[_0x2a858f(0x17c)])[_0x2a858f(0x1ce)](_0x51b88f=>_0x51b88f(_0x12879d));}}var Ee=Object[_0x36f681(0x217)],we=(_0x4c2d20,_0x1d278d,_0x384d96,_0x872cfd)=>{var _0x21ab27=_0x36f681;for(var _0xb9d887=_0x872cfd>0x1?void 0x0:_0x872cfd?Ee(_0x1d278d,_0x384d96):_0x1d278d,_0x460468=_0x4c2d20[_0x21ab27(0x1e3)]-0x1,_0x2ad69d;_0x460468>=0x0;_0x460468--)(_0x2ad69d=_0x4c2d20[_0x460468])&&(_0xb9d887=_0x2ad69d(_0xb9d887)||_0xb9d887);return _0xb9d887;},Ne=(_0x1f773e,_0x4ba6d0)=>(_0x2058cd,_0x36a488)=>_0x4ba6d0(_0x2058cd,_0x36a488,_0x1f773e);let m=class extends _0x1b9b72{constructor(_0x2ba15e){var _0x5c9ab5=_0x36f681;super(),this[_0x5c9ab5(0x193)]=_0x2ba15e,this['_init']();}[_0x36f681(0x197)](){var _0x25614f=_0x36f681;[_0x37dc55['id'],_0x3fbab9['id'],_0x599ac0['id']][_0x25614f(0x1f9)](_0x5d0fa9=>{var _0x45a782=_0x25614f;this[_0x45a782(0x1a5)](this[_0x45a782(0x193)][_0x45a782(0x1ca)](_0x5d0fa9));});}};m=we([Ne(0x0,_0x2471b9(L))],m);var c=function(){var _0x53f227=_0x36f681;return c=Object['assign']||function(_0x369089){var _0x499ee0=_0x1118;for(var _0x4a3e52,_0x124ed9=0x1,_0x4b70e2=arguments[_0x499ee0(0x1e3)];_0x124ed9<_0x4b70e2;_0x124ed9++){_0x4a3e52=arguments[_0x124ed9];for(var _0x1f2fcf in _0x4a3e52)Object[_0x499ee0(0x1fc)][_0x499ee0(0x203)][_0x499ee0(0x17f)](_0x4a3e52,_0x1f2fcf)&&(_0x369089[_0x1f2fcf]=_0x4a3e52[_0x1f2fcf]);}return _0x369089;},c[_0x53f227(0x1ef)](this,arguments);},Ce=function(_0x48ad6d,_0x39d979){var _0x4fda78=_0x36f681,_0x5bc6cc={};for(var _0x54acf9 in _0x48ad6d)Object[_0x4fda78(0x1fc)]['hasOwnProperty'][_0x4fda78(0x17f)](_0x48ad6d,_0x54acf9)&&_0x39d979[_0x4fda78(0x206)](_0x54acf9)<0x0&&(_0x5bc6cc[_0x54acf9]=_0x48ad6d[_0x54acf9]);if(_0x48ad6d!=null&&typeof Object[_0x4fda78(0x1fd)]=='function'){for(var _0x387058=0x0,_0x54acf9=Object[_0x4fda78(0x1fd)](_0x48ad6d);_0x387058<_0x54acf9['length'];_0x387058++)_0x39d979[_0x4fda78(0x206)](_0x54acf9[_0x387058])<0x0&&Object[_0x4fda78(0x1fc)][_0x4fda78(0x216)][_0x4fda78(0x17f)](_0x48ad6d,_0x54acf9[_0x387058])&&(_0x5bc6cc[_0x54acf9[_0x387058]]=_0x48ad6d[_0x54acf9[_0x387058]]);}return _0x5bc6cc;},W=_0x24c7ad(function(_0x23fa1b,_0x2f0746){var _0x3db27a=_0x36f681,_0x191b9f=_0x23fa1b[_0x3db27a(0x1a2)],_0x4597ab=_0x23fa1b['id'],_0x41c6cd=_0x23fa1b[_0x3db27a(0x218)],_0x296794=_0x23fa1b[_0x3db27a(0x1b5)],_0x1858d8=Ce(_0x23fa1b,['icon','id',_0x3db27a(0x218),'extend']),_0x374a2a=_0x3db27a(0x1e8)['concat'](_0x4597ab,'\x20')[_0x3db27a(0x1f2)](_0x41c6cd||'')[_0x3db27a(0x176)](),_0x14ad55=_0x251313('_'[_0x3db27a(0x1f2)](Le()));return Y(_0x191b9f,''[_0x3db27a(0x1f2)](_0x4597ab),{'defIds':_0x191b9f[_0x3db27a(0x1d1)],'idSuffix':_0x14ad55[_0x3db27a(0x1b3)]},c({'ref':_0x2f0746,'className':_0x374a2a},_0x1858d8),_0x296794);});function Y(_0x49165a,_0x1953fb,_0x531023,_0x33197f,_0x1d5707){var _0x47c971=_0x36f681;return _0x980b93(_0x49165a[_0x47c971(0x1f3)],c(c({'key':_0x1953fb},De(_0x49165a,_0x531023,_0x1d5707)),_0x33197f),(xe(_0x49165a,_0x531023)['children']||[])['map'](function(_0x164d4f,_0x4860bd){var _0x202e62=_0x47c971;return Y(_0x164d4f,''[_0x202e62(0x1f2)](_0x1953fb,'-')['concat'](_0x49165a[_0x202e62(0x1f3)],'-')[_0x202e62(0x1f2)](_0x4860bd),_0x531023,void 0x0,_0x1d5707);}));}function De(_0x2bd1d4,_0x3c6f7a,_0x1b0537){var _0x38bf02=_0x36f681,_0x59cc43=c({},_0x2bd1d4[_0x38bf02(0x20c)]);_0x1b0537!=null&&_0x1b0537[_0x38bf02(0x1c9)]&&_0x59cc43[_0x38bf02(0x195)]===_0x38bf02(0x1c9)&&(_0x59cc43[_0x38bf02(0x195)]=_0x1b0537['colorChannel1']),_0x2bd1d4[_0x38bf02(0x1f3)]==='mask'&&_0x59cc43['id']&&(_0x59cc43['id']=_0x59cc43['id']+_0x3c6f7a[_0x38bf02(0x21d)]),Object['entries'](_0x59cc43)[_0x38bf02(0x1f9)](function(_0x19dbc5){var _0x7e7bcc=_0x38bf02,_0xb58bed=_0x19dbc5[0x0],_0x24a488=_0x19dbc5[0x1];_0xb58bed==='mask'&&typeof _0x24a488==_0x7e7bcc(0x1cb)&&(_0x59cc43[_0xb58bed]=_0x24a488['replace'](/url\(#(.*)\)/,_0x7e7bcc(0x207)['concat'](_0x3c6f7a[_0x7e7bcc(0x21d)],')')));});var _0x4b71d9=_0x3c6f7a[_0x38bf02(0x1d1)];return!_0x4b71d9||_0x4b71d9['length']===0x0||(_0x2bd1d4['tag']==='use'&&_0x59cc43[_0x38bf02(0x1f0)]&&(_0x59cc43[_0x38bf02(0x1f0)]=_0x59cc43['xlink:href']+_0x3c6f7a[_0x38bf02(0x21d)]),Object[_0x38bf02(0x1b8)](_0x59cc43)['forEach'](function(_0x23138b){var _0x430f01=_0x38bf02,_0x316463=_0x23138b[0x0],_0x5c033f=_0x23138b[0x1];typeof _0x5c033f==_0x430f01(0x1cb)&&(_0x59cc43[_0x316463]=_0x5c033f[_0x430f01(0x1d2)](/url\(#(.*)\)/,_0x430f01(0x207)[_0x430f01(0x1f2)](_0x3c6f7a[_0x430f01(0x21d)],')')));})),_0x59cc43;}function _0x1122(){var _0x1e6afd=['_handleOnline','_presenter','requireSession','Start\x20following','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','length','_config','_handleOperation','mutations','FOLLOWING','univerjs-icon\x20univerjs-icon-','_sharedOperations','registerComponent','_status','params','offline','_handleNewHost','apply','xlink:href','reverse','concat','tag','_univerInstanceService','3641131vlkuMs','getMemberID','_handleTerminate','25oZAZVy','forEach','tryStartPresenting','executeCommand','prototype','getOwnPropertySymbols','stopFollowing','_stopPresenting','LIVESHARE_OPERATION','getCurrentTypeOfUnit$','pipe','hasOwnProperty','4356UMgVpI','defs','indexOf','url(#$1','getTypeOfUnitDisposed$','univer-mb-3\x20univer-w-full\x20univer-text-sm','OFFLINE','currentColor','attrs','dispose','operations','_beIdle','idle','displayName','evenodd','not-following','_fetchOperations','_handleNewChangeSets','propertyIsEnumerable','getOwnPropertyDescriptor','className','PRESENTING','1em','IDLE','substring','idSuffix','_mountLiveShare','sessionStatus$','unitId','_startPresenting','trim','add','_unitID','onCommandExecuted','getUnitId','following','_reporters','7ktKENv','shouldShareOperation','call','then','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','end','You\x27re\x20following\x20the\x20presenter','delete','UNIVER_SHEET','0\x200\x2017\x2017','status$','subscribe','_handleOffline','data','unsubscribe','createInstance','includes','presenter','set','parse','_startFollowing','_configService','_liveShareService','type','fill','init','_init','stringify','_stopFollowing','12OyRnVu','has','path','symbol','LIVESHARE_FETCH_OPERATIONS','defineProperty','LIVESHARE_NEW_HOST','getInitialStates','icon','2619463rtaDEN','_startLiveShareCoordinator','disposeWithMe','none','SAME_OPERATION_SHARE_INTERVAL','_collabSessionService','14078kmtVfM','135UFjmRC','HEADER_MENU','registerInitialStateReporter','div','NEW_CHANGESETS','11967JlOGxp','live-share-icon','find','sheet','current','button','extend','text','getLiveShareCoordinator','entries','presenting','_entities','live-share.config','send','You\x27re\x20not\x20following\x20the\x20presenter','dispose$','967704IrAjcy','next','children','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','onRendered','_status$','20826exKgWu','assign','LIVESHARE_TERMINATE','_commandDisposable','colorChannel1','registerSharedOperation','string','_commandService','getConfig','map','http://www.w3.org/2000/svg','_collabSession','defIds','replace','get','event$','getValue','complete','svg','NOT_FOLLOWING','_injector','1510fPOdDG','onStarting','You\x27are\x20offline.','8baMzcv'];_0x1122=function(){return _0x1e6afd;};return _0x1122();}function xe(_0x53d8bf,_0x23873a){var _0x228094=_0x36f681,_0x5baf9b,_0x1e839c=_0x23873a[_0x228094(0x1d1)];return!_0x1e839c||_0x1e839c[_0x228094(0x1e3)]===0x0?_0x53d8bf:_0x53d8bf[_0x228094(0x1f3)]===_0x228094(0x205)&&(!((_0x5baf9b=_0x53d8bf['children'])===null||_0x5baf9b===void 0x0)&&_0x5baf9b['length'])?c(c({},_0x53d8bf),{'children':_0x53d8bf[_0x228094(0x1c1)][_0x228094(0x1ce)](function(_0x46dbd9){var _0x5ee158=_0x228094;return typeof _0x46dbd9[_0x5ee158(0x20c)]['id']=='string'&&_0x1e839c&&_0x1e839c[_0x5ee158(0x18d)](_0x46dbd9[_0x5ee158(0x20c)]['id'])?c(c({},_0x46dbd9),{'attrs':c(c({},_0x46dbd9[_0x5ee158(0x20c)]),{'id':_0x46dbd9[_0x5ee158(0x20c)]['id']+_0x23873a[_0x5ee158(0x21d)]})}):_0x46dbd9;})}):_0x53d8bf;}function Le(){var _0x3bd3e7=_0x36f681;return Math['random']()['toString'](0x24)[_0x3bd3e7(0x21c)](0x2,0x8);}W[_0x36f681(0x211)]='UniverIcon';var ye={'tag':_0x36f681(0x1d7),'attrs':{'xmlns':_0x36f681(0x1cf),'fill':_0x36f681(0x1a6),'viewBox':_0x36f681(0x186),'width':_0x36f681(0x21a),'height':'1em'},'children':[{'tag':_0x36f681(0x19c),'attrs':{'fill':_0x36f681(0x20b),'d':_0x36f681(0x181)}},{'tag':_0x36f681(0x19c),'attrs':{'fill':_0x36f681(0x20b),'d':_0x36f681(0x1e2),'fillRule':_0x36f681(0x212),'clipRule':_0x36f681(0x212)}}]},B=_0x24c7ad(function(_0x22b41a,_0x1668ea){var _0x1fc324=_0x36f681;return _0x980b93(W,Object[_0x1fc324(0x1c6)]({},_0x22b41a,{'id':_0x1fc324(0x1b0),'ref':_0x1668ea,'icon':ye}));});B[_0x36f681(0x211)]='LiveShareIcon';var Re=Object[_0x36f681(0x217)],Z=(_0x88aed7,_0x2f396f,_0x24c757,_0x44a7dd)=>{var _0x39d1ac=_0x36f681;for(var _0xe2cf28=_0x44a7dd>0x1?void 0x0:_0x44a7dd?Re(_0x2f396f,_0x24c757):_0x2f396f,_0x4f4bcb=_0x88aed7[_0x39d1ac(0x1e3)]-0x1,_0x333c74;_0x4f4bcb>=0x0;_0x4f4bcb--)(_0x333c74=_0x88aed7[_0x4f4bcb])&&(_0xe2cf28=_0x333c74(_0xe2cf28)||_0xe2cf28);return _0xe2cf28;},f=(_0x6f0e90,_0x1c02a3)=>(_0x4e73f5,_0x3a7dff)=>_0x1c02a3(_0x4e73f5,_0x3a7dff,_0x6f0e90);let I=class extends _0x353398{constructor(_0x1d9aea,_0x12bfa0,_0x577704){var _0x5a0892=_0x36f681;super(),d(this,'_entities',new Map()),(this[_0x5a0892(0x1f4)]=_0x1d9aea,this[_0x5a0892(0x1d9)]=_0x12bfa0,this[_0x5a0892(0x1a8)]=_0x577704,this[_0x5a0892(0x197)]());}async[_0x36f681(0x1b7)](_0x4a8765){var _0x1cc18b=_0x36f681;return this[_0x1cc18b(0x1ba)][_0x1cc18b(0x19b)](_0x4a8765)||await this[_0x1cc18b(0x1a4)](_0x4a8765),this['_entities'][_0x1cc18b(0x1d3)](_0x4a8765);}[_0x36f681(0x197)](){var _0x3a588f=_0x36f681;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x29b044['UNIVER_SHEET'])[_0x3a588f(0x202)](_0x521a29(this[_0x3a588f(0x1be)]))['subscribe'](async _0x5a6736=>{var _0x535dc0=_0x3a588f;const _0x4defc5=_0x5a6736[_0x535dc0(0x17a)]();this[_0x535dc0(0x1ba)][_0x535dc0(0x19b)](_0x4defc5)||this[_0x535dc0(0x1a4)](_0x4defc5);}),this[_0x3a588f(0x1f4)][_0x3a588f(0x208)](_0x29b044[_0x3a588f(0x185)])[_0x3a588f(0x202)](_0x521a29(this[_0x3a588f(0x1be)]))[_0x3a588f(0x188)](_0x15ea23=>{var _0x4045d1=_0x3a588f;const _0x4bef80=_0x15ea23[_0x4045d1(0x17a)](),_0x5bc5ff=this[_0x4045d1(0x1ba)][_0x4045d1(0x1d3)](_0x4bef80);_0x5bc5ff==null||_0x5bc5ff[_0x4045d1(0x20d)]();});}async[_0x36f681(0x1a4)](_0x967279){var _0xa65286=_0x36f681;const _0x1a59c3=await this['_collabSessionService'][_0xa65286(0x1e0)](_0x967279),_0x270761=this[_0xa65286(0x1d9)][_0xa65286(0x18c)](C,_0x967279,_0x1a59c3);return _0x270761[_0xa65286(0x196)](),this['_entities']['set'](_0x967279,_0x270761),_0x270761;}};I=Z([f(0x0,_0x369fcc),f(0x1,_0x2471b9(_0x1fff4e)),f(0x2,_0x2471b9(_0x3cbafe))],I);var h=(_0x59e72b=>(_0x59e72b['OFFLINE']=_0x36f681(0x1ed),_0x59e72b[_0x36f681(0x21b)]='idle',_0x59e72b[_0x36f681(0x1e7)]=_0x36f681(0x17b),_0x59e72b[_0x36f681(0x1d8)]=_0x36f681(0x213),_0x59e72b[_0x36f681(0x219)]=_0x36f681(0x1b9),_0x59e72b))(h||{});const Pe=_0x36f681(0x1a7),Ae=0xc8;let C=class extends _0x353398{constructor(_0x27bc2a,_0x300c43,_0x5d2c32,_0x91ff0c,_0x5c49fe){var _0x2c1b55=_0x36f681;super(),d(this,_0x2c1b55(0x1c4),new _0x2b64c8(_0x2c1b55(0x210))),d(this,_0x2c1b55(0x187),this[_0x2c1b55(0x1c4)]['asObservable']()),d(this,_0x2c1b55(0x197),!0x1),d(this,'_commandDisposable',null),d(this,'_presenter',null),(this[_0x2c1b55(0x178)]=_0x27bc2a,this[_0x2c1b55(0x1d0)]=_0x300c43,this[_0x2c1b55(0x192)]=_0x5d2c32,this[_0x2c1b55(0x193)]=_0x91ff0c,this[_0x2c1b55(0x1cc)]=_0x5c49fe);}get[_0x36f681(0x1eb)](){var _0x5cc586=_0x36f681;return this[_0x5cc586(0x1c4)][_0x5cc586(0x1d5)]();}['dispose'](){var _0x4dcd6a=_0x36f681,_0x6ad419;(_0x6ad419=this['_commandDisposable'])==null||_0x6ad419['dispose'](),this[_0x4dcd6a(0x1c4)][_0x4dcd6a(0x1c0)](_0x4dcd6a(0x210)),this[_0x4dcd6a(0x1c4)]['complete']();}['init'](){var _0x31b1e6=_0x36f681;this['_init']||(this[_0x31b1e6(0x197)]=!0x0,this[_0x31b1e6(0x1d0)][_0x31b1e6(0x173)][_0x31b1e6(0x202)](_0x521a29(this[_0x31b1e6(0x1be)]))[_0x31b1e6(0x188)](_0x3abe44=>{var _0x3da701=_0x31b1e6;switch(_0x3abe44){case _0x3733f5[_0x3da701(0x20a)]:this['_handleOffline']();break;case _0x3733f5['ONLINE']:this[_0x3da701(0x1de)]();break;}}),this['_collabSession'][_0x31b1e6(0x1d4)]['pipe'](_0x521a29(this['dispose$']))['subscribe'](_0x57858c=>{var _0x900d2e=_0x31b1e6;const {eventID:_0x443a62}=_0x57858c;switch(_0x443a62){case _0x18ecaa[_0x900d2e(0x1a0)]:this['_handleNewHost'](_0x57858c);break;case _0x18ecaa[_0x900d2e(0x200)]:this[_0x900d2e(0x1e5)](_0x57858c);break;case _0x18ecaa[_0x900d2e(0x1c7)]:this[_0x900d2e(0x1f7)]();break;case _0x18ecaa[_0x900d2e(0x1ae)]:this[_0x900d2e(0x215)](_0x57858c);break;}}));}['tryStartPresenting'](){var _0x507e54=_0x36f681;this[_0x507e54(0x1d0)][_0x507e54(0x1bc)]({'eventID':_0x18ecaa['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x507e54(0x178)],'userID':this[_0x507e54(0x1d0)][_0x507e54(0x1f6)]()}},this[_0x507e54(0x178)]);}['stopPresenting'](){var _0x3e9083=_0x36f681;this[_0x3e9083(0x1eb)]==='presenting'&&(this[_0x3e9083(0x1c4)][_0x3e9083(0x1c0)](_0x3e9083(0x210)),this['_collabSession']['send']({'eventID':_0x18ecaa[_0x3e9083(0x1c7)],'data':{'unitID':this[_0x3e9083(0x178)]}},this[_0x3e9083(0x178)]));}['startFollowing'](){var _0x155cab=_0x36f681;this['_status']==='not-following'&&(this['_status$'][_0x155cab(0x1c0)](_0x155cab(0x17b)),this[_0x155cab(0x191)]());}[_0x36f681(0x1fe)](){var _0x4efe5e=_0x36f681;this['_status']===_0x4efe5e(0x17b)&&this[_0x4efe5e(0x199)]();}[_0x36f681(0x1ee)](_0x202fcc){var _0x495010=_0x36f681;const {presenter:_0x1e1588}=_0x202fcc['data'],_0x6bf872=this[_0x495010(0x1d0)][_0x495010(0x1f6)]();this[_0x495010(0x1df)]=_0x1e1588,_0x1e1588===_0x6bf872?(this[_0x495010(0x199)](),this[_0x495010(0x175)]()):this[_0x495010(0x1eb)]!==_0x495010(0x213)&&(this[_0x495010(0x1ff)](),this[_0x495010(0x191)]());}[_0x36f681(0x214)](){var _0x465eed=_0x36f681;const _0x21d037={'eventID':_0x18ecaa[_0x465eed(0x19e)]};this['_collabSession'][_0x465eed(0x1bc)](_0x21d037,this['_unitID']);}['_handleTerminate'](){var _0x984efd=_0x36f681;this['_presenter']=null,this[_0x984efd(0x1eb)]!==_0x984efd(0x1b9)&&this['_beIdle']();}['_handleNewChangeSets'](_0x58a016){var _0x2d391a=_0x36f681;if(this['_status']===_0x2d391a(0x17b)&&this[_0x2d391a(0x1df)]===_0x58a016[_0x2d391a(0x18a)]['memberID']){const _0x530453=_0x21841a(_0x58a016[_0x2d391a(0x18a)])[_0x2d391a(0x1e6)][_0x2d391a(0x1f1)]()[_0x2d391a(0x1b1)](_0x2ec1f7=>_0x2ec1f7['id']===_0x4e20ed['id']);if(_0x530453){const _0x167407=_0x530453[_0x2d391a(0x1ec)][_0x2d391a(0x174)],_0xa731e1=_0x530453['params'][_0x2d391a(0x1b2)]['id'];setTimeout(()=>{var _0x410b5c=_0x2d391a;this[_0x410b5c(0x1cc)][_0x410b5c(0x1fb)](_0x599ac0['id'],{'unitId':_0x167407,'subUnitId':_0xa731e1},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x110739=_0x36f681;this[_0x110739(0x1c4)][_0x110739(0x1c0)](_0x110739(0x1b9));const _0x12c5c8=new Map(),_0x5a06cd=this[_0x110739(0x1c8)]=new _0x2810df();_0x5a06cd['add'](_0x4c5635(()=>{var _0x1c8557=_0x110739;_0x12c5c8[_0x1c8557(0x1f9)](_0x16d946=>_0x16d946[_0x1c8557(0x1d6)]()),_0x12c5c8['clear']();})),_0x5a06cd['add'](this[_0x110739(0x1cc)][_0x110739(0x179)](_0x1522fa=>{var _0x492fdd=_0x110739,_0x5a3e89;if(_0x1522fa[_0x492fdd(0x194)]!==_0x54268d['OPERATION']||!this[_0x492fdd(0x193)][_0x492fdd(0x17e)](_0x1522fa['id']))return;const {id:_0x134466}=_0x1522fa;let _0x599ab7;_0x12c5c8['has'](_0x134466)?_0x599ab7=_0x12c5c8[_0x492fdd(0x1d3)](_0x134466):(_0x599ab7=new _0x47ff72(),_0x12c5c8[_0x492fdd(0x18f)](_0x134466,_0x599ab7),_0x599ab7[_0x492fdd(0x202)](_0x61e5a1((_0x5a3e89=this[_0x492fdd(0x192)][_0x492fdd(0x1cd)](Pe))!=null?_0x5a3e89:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x492fdd(0x188)](_0x5298c0=>{var _0x4d3bfc=_0x492fdd;this['_collabSession'][_0x4d3bfc(0x1bc)]({'eventID':_0x18ecaa[_0x4d3bfc(0x200)],'data':{'unitID':this[_0x4d3bfc(0x178)],'operations':{[_0x5298c0['id']]:{'id':_0x5298c0['id'],'params':JSON[_0x4d3bfc(0x198)](_0x5298c0['params'])}}}},this[_0x4d3bfc(0x178)]);})),_0x599ab7[_0x492fdd(0x1c0)](_0x1522fa);})),this[_0x110739(0x193)][_0x110739(0x1a1)](this['_unitID'])[_0x110739(0x1f9)](_0x260bff=>this[_0x110739(0x1d0)][_0x110739(0x1bc)]({'eventID':_0x18ecaa['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x110739(0x178)],'operations':{[_0x260bff['id']]:{'id':_0x260bff['id'],'params':JSON[_0x110739(0x198)](_0x260bff[_0x110739(0x1ec)])}}}},this[_0x110739(0x178)]));}['_stopPresenting'](){var _0x34547e=_0x36f681,_0x2081dd;this['_status$'][_0x34547e(0x1c0)](_0x34547e(0x210)),(_0x2081dd=this['_commandDisposable'])==null||_0x2081dd[_0x34547e(0x20d)](),this[_0x34547e(0x1c8)]=null;}[_0x36f681(0x191)](){var _0x438582=_0x36f681,_0x38378e;(_0x38378e=this['_commandDisposable'])==null||_0x38378e[_0x438582(0x20d)](),this[_0x438582(0x1c4)][_0x438582(0x1c0)](_0x438582(0x17b));}[_0x36f681(0x20f)](){var _0x32684c=_0x36f681,_0x595bde;this[_0x32684c(0x1c4)][_0x32684c(0x1c0)]('idle'),(_0x595bde=this[_0x32684c(0x1c8)])==null||_0x595bde[_0x32684c(0x20d)](),this[_0x32684c(0x1c8)]=null;}[_0x36f681(0x199)](){var _0x52f7a5=_0x36f681,_0x3d317;this['_status$'][_0x52f7a5(0x1c0)]('not-following'),(_0x3d317=this['_commandDisposable'])==null||_0x3d317[_0x52f7a5(0x20d)]();}[_0x36f681(0x1e5)](_0x35b246){var _0x4f391f=_0x36f681;if([_0x4f391f(0x1b9),_0x4f391f(0x213),_0x4f391f(0x1ed)]['includes'](this[_0x4f391f(0x1eb)])||!_0x35b246[_0x4f391f(0x18a)][_0x4f391f(0x18e)]||_0x35b246['data'][_0x4f391f(0x18e)]===this[_0x4f391f(0x1d0)][_0x4f391f(0x1f6)]())return;this[_0x4f391f(0x1eb)]==='idle'&&this[_0x4f391f(0x191)]();const _0x3de8f8=_0x35b246[_0x4f391f(0x18a)][_0x4f391f(0x20e)];Object['values'](_0x3de8f8)[_0x4f391f(0x1f9)](_0x4b85ed=>{var _0x2916fc=_0x4f391f;this[_0x2916fc(0x1cc)]['executeCommand'](_0x4b85ed['id'],_0x4b85ed['params']?JSON[_0x2916fc(0x190)](_0x4b85ed['params']):null,{'fromCollab':!0x0});});}[_0x36f681(0x189)](){var _0x435422=_0x36f681,_0x32ff24;this[_0x435422(0x1c4)][_0x435422(0x1c0)](_0x435422(0x1ed)),(_0x32ff24=this['_commandDisposable'])==null||_0x32ff24[_0x435422(0x20d)]();}[_0x36f681(0x1de)](){var _0x221d05=_0x36f681;this[_0x221d05(0x1c4)][_0x221d05(0x1c0)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x177af0),f(0x3,_0x2471b9(L)),f(0x4,_0x390976)],C);function Te(){var _0x14b018=_0x36f681;const _0x196366=_0x5edaac(I),_0x4a913e=_0x5edaac(_0x369fcc),_0x318ead=_0x219c95(()=>_0x4a913e[_0x14b018(0x201)](_0x29b044['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1c10d6,_0x815b5f]=_0x569d59(null),[_0x41de7d,_0x44e899]=_0x569d59(h[_0x14b018(0x21b)]),_0x18fea9=_0x251313(null);return _0x173568(()=>(_0x318ead&&_0x196366[_0x14b018(0x1b7)](_0x318ead[_0x14b018(0x17a)]())[_0x14b018(0x180)](_0x46bbc2=>{var _0x3a900a=_0x14b018;_0x815b5f(_0x46bbc2),_0x18fea9[_0x3a900a(0x1b3)]=_0x46bbc2[_0x3a900a(0x187)][_0x3a900a(0x188)](_0x29521a=>{_0x44e899(_0x29521a);});}),()=>{var _0x8dc898=_0x14b018,_0x4b30c3;(_0x4b30c3=_0x18fea9['current'])==null||_0x4b30c3[_0x8dc898(0x18b)](),_0x18fea9['current']=null;}),[_0x318ead,_0x196366]),_0x1c10d6?_0x36145d(_0x4d6833,{'align':_0x14b018(0x182),'disabled':_0x41de7d===h[_0x14b018(0x20a)],'className':_0x14b018(0x1c2),'overlay':_0x36145d($e,{'status':_0x41de7d,'coordinator':_0x1c10d6}),'children':_0x36145d(_0x14b018(0x1b4),{'className':_0x345b91('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x41de7d===h[_0x14b018(0x20a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x41de7d!==h[_0x14b018(0x20a)]}),'type':_0x14b018(0x1b4),'children':_0x36145d(B,{'className':'univer-size-4'})})}):null;}function $e(_0x3c98b9){var _0x26aba9=_0x36f681;const {status:_0x311b04,coordinator:_0x22e24c}=_0x3c98b9;switch(_0x311b04){case h[_0x26aba9(0x21b)]:return _0x36145d(Fe,{'coordinator':_0x22e24c});case h[_0x26aba9(0x1e7)]:return _0x36145d(He,{'coordinator':_0x22e24c});case h[_0x26aba9(0x1d8)]:return _0x36145d(je,{'coordinator':_0x22e24c});case h[_0x26aba9(0x20a)]:return _0x36145d(Ve,{});case h['PRESENTING']:return _0x36145d(Ue,{'coordinator':_0x22e24c});default:return null;}}function Fe(_0x285b92){var _0x4fba19=_0x36f681;const {coordinator:_0x330a02}=_0x285b92;return _0x4e0c68(_0x37245c,{'children':[_0x36145d(_0x4fba19(0x1ad),{'className':_0x4fba19(0x209),'children':'Present\x20this\x20document'}),_0x36145d(_0x52e609,{'onClick':()=>_0x330a02[_0x4fba19(0x1fa)](),'children':'Start'})]});}function He(_0x4a460e){var _0x225627=_0x36f681;const {coordinator:_0x1737a5}=_0x4a460e;return _0x4e0c68(_0x37245c,{'children':[_0x36145d('div',{'className':_0x225627(0x209),'children':_0x225627(0x183)}),_0x36145d(_0x52e609,{'onClick':()=>_0x1737a5[_0x225627(0x1fe)](),'children':'Stop\x20following'})]});}function je(_0x1870dc){var _0x23e770=_0x36f681;const {coordinator:_0x6390a1}=_0x1870dc;return _0x4e0c68(_0x37245c,{'children':[_0x36145d(_0x23e770(0x1ad),{'className':_0x23e770(0x209),'children':_0x23e770(0x1bd)}),_0x36145d(_0x52e609,{'variant':_0x23e770(0x1b6),'onClick':()=>_0x6390a1['startFollowing'](),'children':_0x23e770(0x1e1)})]});}function Ue(_0xdf902a){var _0x477aa0=_0x36f681;const {coordinator:_0xbd6968}=_0xdf902a;return _0x4e0c68(_0x37245c,{'children':[_0x36145d(_0x477aa0(0x1ad),{'className':_0x477aa0(0x209),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x36145d(_0x52e609,{'variant':'default','onClick':()=>_0xbd6968['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x25caba=_0x36f681;return _0x36145d(_0x37245c,{'children':_0x25caba(0x1dc)});}var Me=Object[_0x36f681(0x217)],ke=(_0x506371,_0xb98d2,_0x260cde,_0x2538bc)=>{for(var _0x7905a8=_0x2538bc>0x1?void 0x0:_0x2538bc?Me(_0xb98d2,_0x260cde):_0xb98d2,_0x3ffc60=_0x506371['length']-0x1,_0x4c99d0;_0x3ffc60>=0x0;_0x3ffc60--)(_0x4c99d0=_0x506371[_0x3ffc60])&&(_0x7905a8=_0x4c99d0(_0x7905a8)||_0x7905a8);return _0x7905a8;},$=(_0x522098,_0x44d5d7)=>(_0x5411a8,_0x3da77b)=>_0x44d5d7(_0x5411a8,_0x3da77b,_0x522098);let b=class extends _0x1b9b72{constructor(_0x5308ad,_0x3000d9){var _0x4bbe50=_0x36f681;super(),this['_injector']=_0x5308ad,this['_uiPartsService']=_0x3000d9,this[_0x4bbe50(0x172)]();}[_0x36f681(0x172)](){var _0x1a5a8c=_0x36f681;this[_0x1a5a8c(0x1a5)](this['_uiPartsService'][_0x1a5a8c(0x1ea)](_0x1eb411[_0x1a5a8c(0x1ab)],()=>_0x424e91(Te,this[_0x1a5a8c(0x1d9)])));}};b=ke([$(0x0,_0x2471b9(_0x1fff4e)),$(0x1,_0x2dedba)],b);var Ge=Object[_0x36f681(0x19f)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x1c29af,_0x2370ab,_0x4e53f6)=>_0x2370ab in _0x1c29af?Ge(_0x1c29af,_0x2370ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e53f6}):_0x1c29af[_0x2370ab]=_0x4e53f6,Be=(_0x1cb8fe,_0x5a0f02,_0x321f17,_0x38d04e)=>{var _0x32ed12=_0x36f681;for(var _0xc91ee4=_0x38d04e>0x1?void 0x0:_0x38d04e?We(_0x5a0f02,_0x321f17):_0x5a0f02,_0x16c8c0=_0x1cb8fe[_0x32ed12(0x1e3)]-0x1,_0x48a408;_0x16c8c0>=0x0;_0x16c8c0--)(_0x48a408=_0x1cb8fe[_0x16c8c0])&&(_0xc91ee4=_0x48a408(_0xc91ee4)||_0xc91ee4);return _0xc91ee4;},F=(_0x85f717,_0x330f0b)=>(_0x3d61bf,_0xd9e91b)=>_0x330f0b(_0x3d61bf,_0xd9e91b,_0x85f717),J=(_0x2c8589,_0x2122fc,_0xed60c)=>Ye(_0x2c8589,typeof _0x2122fc!=_0x36f681(0x19d)?_0x2122fc+'':_0x2122fc,_0xed60c);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x45d0b9{constructor(_0x19cc28=T,_0x1d477a,_0x57c76a){var _0x508448=_0x36f681;super(),this[_0x508448(0x1e4)]=_0x19cc28,this['_injector']=_0x1d477a,this[_0x508448(0x192)]=_0x57c76a;const {..._0x121fe8}=_0x217915({},T,this[_0x508448(0x1e4)]);this[_0x508448(0x192)]['setConfig'](Oe,_0x121fe8);}[_0x36f681(0x1db)](){var _0x227760=_0x36f681;_0x5b4604(this['_injector'],_0x3ed2f6([[L],[I],[m],[b]],this[_0x227760(0x1e4)]['override'])),_0x131646(this['_injector'],[[m]]);}[_0x36f681(0x1c3)](){var _0xaced68=_0x36f681;_0x131646(this[_0xaced68(0x1d9)],[[b]]);}};function _0x1118(_0x311923,_0x33f539){var _0x112254=_0x1122();return _0x1118=function(_0x1118dd,_0xefd13e){_0x1118dd=_0x1118dd-0x172;var _0x3191ea=_0x112254[_0x1118dd];return _0x3191ea;},_0x1118(_0x311923,_0x33f539);}J(O,'type',_0x29b044['UNIVER_UNKNOWN']),J(O,'pluginName',Ze),O=Be([_0x203d04(_0x1202e1),F(0x1,_0x2471b9(_0x1fff4e)),F(0x2,_0x177af0)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0xbba1b3=_0x2982;(function(_0x229e0d,_0x4d44c2){var _0x3aa5c4=_0x2982,_0x2227cf=_0x229e0d();while(!![]){try{var _0x18cf61=-parseInt(_0x3aa5c4(0xcb))/0x1*(-parseInt(_0x3aa5c4(0x100))/0x2)+parseInt(_0x3aa5c4(0xff))/0x3+-parseInt(_0x3aa5c4(0xae))/0x4+-parseInt(_0x3aa5c4(0xc5))/0x5+-parseInt(_0x3aa5c4(0x156))/0x6*(parseInt(_0x3aa5c4(0x135))/0x7)+parseInt(_0x3aa5c4(0xa4))/0x8*(parseInt(_0x3aa5c4(0xc9))/0x9)+-parseInt(_0x3aa5c4(0x119))/0xa*(-parseInt(_0x3aa5c4(0x13d))/0xb);if(_0x18cf61===_0x4d44c2)break;else _0x2227cf['push'](_0x2227cf['shift']());}catch(_0xc5c46b){_0x2227cf['push'](_0x2227cf['shift']());}}}(_0x2498,0xcf9c0));var q=Object[_0xbba1b3(0x140)],z=(_0x1fa592,_0xea3f56,_0x46473c)=>_0xea3f56 in _0x1fa592?q(_0x1fa592,_0xea3f56,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46473c}):_0x1fa592[_0xea3f56]=_0x46473c,d=(_0x477731,_0x319959,_0x453d10)=>z(_0x477731,typeof _0x319959!=_0xbba1b3(0xb8)?_0x319959+'':_0x319959,_0x453d10);import{CollaborationSessionService as _0x15cce5,SessionStatus as _0x2739e9,UniverCollaborationClientPlugin as _0x4e408a}from'@univerjs-pro/collaboration-client';import{Disposable as _0x381194,toDisposable as _0x58453c,Inject as _0x211552,IUniverInstanceService as _0x555a6c,Injector as _0x2709b6,IConfigService as _0x126fd1,ICommandService as _0x4aa7e1,RxDisposable as _0x38ab13,UniverInstanceType as _0x2cec4c,DisposableCollection as _0x5c8a45,CommandType as _0x510564,DependentOn as _0x232c0c,Plugin as _0x29f071,merge as _0x19abfa,registerDependencies as _0x4163a2,mergeOverrideWithDependencies as _0x229151,touchDependencies as _0x3bf957}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1633d9,InsertSheetMutation as _0x403fb0}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2903f7,SetScrollOperation as _0x50f7e2}from'@univerjs/sheets-ui';import{useDependency as _0x500185,useObservable as _0x280c77,IUIPartsService as _0x41b1e5,BuiltInUIPart as _0x18a9bb,connectInjector as _0x2555d5}from'@univerjs/ui';function _0x2982(_0x3e9fd4,_0x740786){var _0x249884=_0x2498();return _0x2982=function(_0x298248,_0x4de01e){_0x298248=_0x298248-0x9f;var _0x289707=_0x249884[_0x298248];return _0x289707;},_0x2982(_0x3e9fd4,_0x740786);}import{jsx as _0xc9c319,jsxs as _0x40d01f,Fragment as _0x162862}from'react/jsx-runtime';import{Dropdown as _0x47773f,clsx as _0x467e30,Button as _0x14318a}from'@univerjs/design';import{forwardRef as _0x3efdbf,useRef as _0x3851ec,createElement as _0x4c84ed,useState as _0x31db33,useEffect as _0x15d0bc}from'react';import{CollaborationEvent as _0x382651,parseProtocolChangeset as _0x3b8640}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3387fa,Subject as _0x2b4247}from'rxjs';import{takeUntil as _0x2a5001,throttleTime as _0x3edd27}from'rxjs/operators';const Oe=_0xbba1b3(0xde),T={};class L extends _0x381194{constructor(){var _0x300bc0=_0xbba1b3;super(...arguments),d(this,_0x300bc0(0xe2),new Set()),d(this,_0x300bc0(0xaa),new Set());}['registerSharedOperation'](_0x36a524){var _0x2b2084=_0xbba1b3;return this[_0x2b2084(0xe2)]['add'](_0x36a524),_0x58453c(()=>this['_sharedOperations']['delete'](_0x36a524));}[_0xbba1b3(0xe3)](_0x593c72){var _0x37d5aa=_0xbba1b3;return this[_0x37d5aa(0xaa)][_0x37d5aa(0xd7)](_0x593c72),_0x58453c(()=>this['_reporters'][_0x37d5aa(0x112)](_0x593c72));}[_0xbba1b3(0xcf)](_0x27fb7a){var _0x2e587a=_0xbba1b3;return this['_sharedOperations'][_0x2e587a(0xa5)](_0x27fb7a);}[_0xbba1b3(0xf5)](_0x3cf2f1){var _0x41af84=_0xbba1b3;return Array['from'](this[_0x41af84(0xaa)])[_0x41af84(0x11f)](_0x1f7580=>_0x1f7580(_0x3cf2f1));}}var Ee=Object[_0xbba1b3(0x13e)],we=(_0x5a4d13,_0x56019b,_0x30ac3c,_0x183673)=>{var _0x168c15=_0xbba1b3;for(var _0x10e60a=_0x183673>0x1?void 0x0:_0x183673?Ee(_0x56019b,_0x30ac3c):_0x56019b,_0x375ac8=_0x5a4d13[_0x168c15(0xd6)]-0x1,_0xced61a;_0x375ac8>=0x0;_0x375ac8--)(_0xced61a=_0x5a4d13[_0x375ac8])&&(_0x10e60a=_0xced61a(_0x10e60a)||_0x10e60a);return _0x10e60a;},Ne=(_0x5685c1,_0x5cb1fd)=>(_0x4a5efd,_0x5564fa)=>_0x5cb1fd(_0x4a5efd,_0x5564fa,_0x5685c1);let m=class extends _0x381194{constructor(_0x550f75){var _0x558bbf=_0xbba1b3;super(),this['_liveShareService']=_0x550f75,this[_0x558bbf(0xb7)]();}[_0xbba1b3(0xb7)](){[_0x2903f7['id'],_0x50f7e2['id'],_0x1633d9['id']]['forEach'](_0x5c14ca=>{var _0x52435c=_0x2982;this[_0x52435c(0x129)](this['_liveShareService'][_0x52435c(0xb3)](_0x5c14ca));});}};m=we([Ne(0x0,_0x211552(L))],m);var c=function(){var _0x2226cb=_0xbba1b3;return c=Object[_0x2226cb(0x14a)]||function(_0x299e3e){var _0x17309a=_0x2226cb;for(var _0x5a825f,_0x5724ce=0x1,_0xdcc19e=arguments['length'];_0x5724ce<_0xdcc19e;_0x5724ce++){_0x5a825f=arguments[_0x5724ce];for(var _0x2c0827 in _0x5a825f)Object[_0x17309a(0x9f)]['hasOwnProperty'][_0x17309a(0x137)](_0x5a825f,_0x2c0827)&&(_0x299e3e[_0x2c0827]=_0x5a825f[_0x2c0827]);}return _0x299e3e;},c[_0x2226cb(0x11c)](this,arguments);},Ce=function(_0xbb65c7,_0xcc8580){var _0x33ac4b=_0xbba1b3,_0x27a8ad={};for(var _0x53d013 in _0xbb65c7)Object[_0x33ac4b(0x9f)][_0x33ac4b(0x151)][_0x33ac4b(0x137)](_0xbb65c7,_0x53d013)&&_0xcc8580[_0x33ac4b(0xd8)](_0x53d013)<0x0&&(_0x27a8ad[_0x53d013]=_0xbb65c7[_0x53d013]);if(_0xbb65c7!=null&&typeof Object[_0x33ac4b(0xc4)]=='function'){for(var _0x694209=0x0,_0x53d013=Object[_0x33ac4b(0xc4)](_0xbb65c7);_0x694209<_0x53d013[_0x33ac4b(0xd6)];_0x694209++)_0xcc8580[_0x33ac4b(0xd8)](_0x53d013[_0x694209])<0x0&&Object[_0x33ac4b(0x9f)][_0x33ac4b(0x10c)]['call'](_0xbb65c7,_0x53d013[_0x694209])&&(_0x27a8ad[_0x53d013[_0x694209]]=_0xbb65c7[_0x53d013[_0x694209]]);}return _0x27a8ad;},W=_0x3efdbf(function(_0x5ac79d,_0x3f54cd){var _0x10e500=_0xbba1b3,_0x16e7bb=_0x5ac79d[_0x10e500(0x153)],_0x3cf780=_0x5ac79d['id'],_0x24aa8d=_0x5ac79d[_0x10e500(0xe7)],_0x42dfd7=_0x5ac79d[_0x10e500(0x12d)],_0x2c9789=Ce(_0x5ac79d,[_0x10e500(0x153),'id',_0x10e500(0xe7),'extend']),_0x38a55b=_0x10e500(0x136)['concat'](_0x3cf780,'\x20')[_0x10e500(0xa6)](_0x24aa8d||'')[_0x10e500(0x11e)](),_0x20b867=_0x3851ec('_'['concat'](Le()));return Y(_0x16e7bb,''[_0x10e500(0xa6)](_0x3cf780),{'defIds':_0x16e7bb[_0x10e500(0xe1)],'idSuffix':_0x20b867['current']},c({'ref':_0x3f54cd,'className':_0x38a55b},_0x2c9789),_0x42dfd7);});function Y(_0x45f0af,_0x5b91c3,_0x42293c,_0x9ec0f4,_0x2ffaf4){var _0x149373=_0xbba1b3;return _0x4c84ed(_0x45f0af[_0x149373(0xf8)],c(c({'key':_0x5b91c3},De(_0x45f0af,_0x42293c,_0x2ffaf4)),_0x9ec0f4),(xe(_0x45f0af,_0x42293c)[_0x149373(0x114)]||[])['map'](function(_0x3614b5,_0x26fc72){var _0x5972c8=_0x149373;return Y(_0x3614b5,''[_0x5972c8(0xa6)](_0x5b91c3,'-')[_0x5972c8(0xa6)](_0x45f0af['tag'],'-')[_0x5972c8(0xa6)](_0x26fc72),_0x42293c,void 0x0,_0x2ffaf4);}));}function De(_0xb2794f,_0x35a47c,_0x363ef4){var _0x1d902b=_0xbba1b3,_0x5bca5f=c({},_0xb2794f[_0x1d902b(0xbd)]);_0x363ef4!=null&&_0x363ef4['colorChannel1']&&_0x5bca5f[_0x1d902b(0x10e)]===_0x1d902b(0xd1)&&(_0x5bca5f['fill']=_0x363ef4[_0x1d902b(0xd1)]),_0xb2794f[_0x1d902b(0xf8)]==='mask'&&_0x5bca5f['id']&&(_0x5bca5f['id']=_0x5bca5f['id']+_0x35a47c[_0x1d902b(0xce)]),Object['entries'](_0x5bca5f)['forEach'](function(_0xe29496){var _0x39874a=_0x1d902b,_0x133298=_0xe29496[0x0],_0x4efe1a=_0xe29496[0x1];_0x133298===_0x39874a(0xa3)&&typeof _0x4efe1a==_0x39874a(0xfb)&&(_0x5bca5f[_0x133298]=_0x4efe1a['replace'](/url\(#(.*)\)/,_0x39874a(0x10f)[_0x39874a(0xa6)](_0x35a47c['idSuffix'],')')));});var _0x19272f=_0x35a47c['defIds'];return!_0x19272f||_0x19272f['length']===0x0||(_0xb2794f[_0x1d902b(0xf8)]===_0x1d902b(0xb4)&&_0x5bca5f[_0x1d902b(0xb2)]&&(_0x5bca5f[_0x1d902b(0xb2)]=_0x5bca5f['xlink:href']+_0x35a47c[_0x1d902b(0xce)]),Object['entries'](_0x5bca5f)['forEach'](function(_0x38f904){var _0x32e3cc=_0x1d902b,_0x39d930=_0x38f904[0x0],_0xc8a06c=_0x38f904[0x1];typeof _0xc8a06c=='string'&&(_0x5bca5f[_0x39d930]=_0xc8a06c[_0x32e3cc(0xbb)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x35a47c[_0x32e3cc(0xce)],')')));})),_0x5bca5f;}function xe(_0x44bba3,_0x4c5382){var _0x3fa32c=_0xbba1b3,_0x5ca828,_0x219b08=_0x4c5382['defIds'];return!_0x219b08||_0x219b08[_0x3fa32c(0xd6)]===0x0?_0x44bba3:_0x44bba3[_0x3fa32c(0xf8)]===_0x3fa32c(0x12e)&&(!((_0x5ca828=_0x44bba3[_0x3fa32c(0x114)])===null||_0x5ca828===void 0x0)&&_0x5ca828[_0x3fa32c(0xd6)])?c(c({},_0x44bba3),{'children':_0x44bba3[_0x3fa32c(0x114)]['map'](function(_0x45d336){var _0x20dc4a=_0x3fa32c;return typeof _0x45d336[_0x20dc4a(0xbd)]['id']==_0x20dc4a(0xfb)&&_0x219b08&&_0x219b08[_0x20dc4a(0xcc)](_0x45d336['attrs']['id'])?c(c({},_0x45d336),{'attrs':c(c({},_0x45d336[_0x20dc4a(0xbd)]),{'id':_0x45d336[_0x20dc4a(0xbd)]['id']+_0x4c5382['idSuffix']})}):_0x45d336;})}):_0x44bba3;}function Le(){var _0x52a17c=_0xbba1b3;return Math[_0x52a17c(0xf1)]()[_0x52a17c(0x102)](0x24)[_0x52a17c(0xdc)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0xbba1b3(0x152),'attrs':{'xmlns':_0xbba1b3(0x120),'fill':_0xbba1b3(0xca),'viewBox':_0xbba1b3(0x141),'width':_0xbba1b3(0xf3),'height':_0xbba1b3(0xf3)},'children':[{'tag':_0xbba1b3(0xaf),'attrs':{'fill':_0xbba1b3(0xb0),'d':_0xbba1b3(0xa9)}},{'tag':_0xbba1b3(0xaf),'attrs':{'fill':_0xbba1b3(0xb0),'d':_0xbba1b3(0xac),'fillRule':_0xbba1b3(0xda),'clipRule':_0xbba1b3(0xda)}}]},B=_0x3efdbf(function(_0x3eabe9,_0xcaef2b){var _0xbe6e78=_0xbba1b3;return _0x4c84ed(W,Object[_0xbe6e78(0x14a)]({},_0x3eabe9,{'id':'live-share-icon','ref':_0xcaef2b,'icon':ye}));});B[_0xbba1b3(0x11b)]=_0xbba1b3(0x10a);var Re=Object[_0xbba1b3(0x13e)],Z=(_0x1daaca,_0x551d27,_0x36c4e0,_0x297f4a)=>{for(var _0x170f13=_0x297f4a>0x1?void 0x0:_0x297f4a?Re(_0x551d27,_0x36c4e0):_0x551d27,_0x15ffb2=_0x1daaca['length']-0x1,_0x232466;_0x15ffb2>=0x0;_0x15ffb2--)(_0x232466=_0x1daaca[_0x15ffb2])&&(_0x170f13=_0x232466(_0x170f13)||_0x170f13);return _0x170f13;},f=(_0x423511,_0x243bc4)=>(_0x4c2fdf,_0x9a4c0a)=>_0x243bc4(_0x4c2fdf,_0x9a4c0a,_0x423511);let I=class extends _0x38ab13{constructor(_0xfd93f9,_0x3bc8e1,_0x1c449d){var _0x2f58ea=_0xbba1b3;super(),d(this,_0x2f58ea(0x14b),new Map()),(this[_0x2f58ea(0xa0)]=_0xfd93f9,this[_0x2f58ea(0x122)]=_0x3bc8e1,this[_0x2f58ea(0xe4)]=_0x1c449d,this[_0x2f58ea(0xb7)]());}async[_0xbba1b3(0x11d)](_0x5b94d4){var _0x1ddbd9=_0xbba1b3;return this[_0x1ddbd9(0x14b)][_0x1ddbd9(0xa5)](_0x5b94d4)||await this[_0x1ddbd9(0xb1)](_0x5b94d4),this[_0x1ddbd9(0x14b)]['get'](_0x5b94d4);}[_0xbba1b3(0xb7)](){var _0x52ae0c=_0xbba1b3;this[_0x52ae0c(0xa0)][_0x52ae0c(0xc8)](_0x2cec4c[_0x52ae0c(0xa2)])[_0x52ae0c(0xab)](_0x2a5001(this[_0x52ae0c(0xfe)]))['subscribe'](async _0x1a7af7=>{var _0x573fa6=_0x52ae0c;const _0x1afbe4=_0x1a7af7[_0x573fa6(0x115)]();this[_0x573fa6(0x14b)][_0x573fa6(0xa5)](_0x1afbe4)||this[_0x573fa6(0xb1)](_0x1afbe4);}),this['_univerInstanceService'][_0x52ae0c(0xe9)](_0x2cec4c['UNIVER_SHEET'])[_0x52ae0c(0xab)](_0x2a5001(this[_0x52ae0c(0xfe)]))[_0x52ae0c(0xbe)](_0x9789e3=>{var _0x11ade7=_0x52ae0c;const _0x2eccbb=_0x9789e3[_0x11ade7(0x115)](),_0x5d9ded=this[_0x11ade7(0x14b)]['get'](_0x2eccbb);_0x5d9ded==null||_0x5d9ded[_0x11ade7(0x111)]();});}async['_startLiveShareCoordinator'](_0x50bd2b){var _0x3e1d86=_0xbba1b3;const _0x1437c0=await this[_0x3e1d86(0xe4)][_0x3e1d86(0xa1)](_0x50bd2b),_0x50550c=this[_0x3e1d86(0x122)][_0x3e1d86(0x12a)](C,_0x50bd2b,_0x1437c0);return _0x50550c[_0x3e1d86(0xfc)](),this[_0x3e1d86(0x14b)]['set'](_0x50bd2b,_0x50550c),_0x50550c;}};I=Z([f(0x0,_0x555a6c),f(0x1,_0x211552(_0x2709b6)),f(0x2,_0x211552(_0x15cce5))],I);var h=(_0x2bafbc=>(_0x2bafbc[_0xbba1b3(0x14d)]=_0xbba1b3(0xd5),_0x2bafbc['IDLE']=_0xbba1b3(0xdb),_0x2bafbc[_0xbba1b3(0x105)]=_0xbba1b3(0xc1),_0x2bafbc[_0xbba1b3(0x108)]=_0xbba1b3(0xd3),_0x2bafbc[_0xbba1b3(0xd0)]=_0xbba1b3(0xf7),_0x2bafbc))(h||{});const Pe=_0xbba1b3(0xee),Ae=0xc8;let C=class extends _0x38ab13{constructor(_0x4b7697,_0x41e41e,_0xf79f28,_0x14b10b,_0x23f691){var _0x115630=_0xbba1b3;super(),d(this,_0x115630(0x125),new _0x3387fa(_0x115630(0xdb))),d(this,_0x115630(0xec),this['_status$'][_0x115630(0x117)]()),d(this,_0x115630(0xb7),!0x1),d(this,_0x115630(0x12b),null),d(this,_0x115630(0x149),null),(this[_0x115630(0xf0)]=_0x4b7697,this[_0x115630(0xbc)]=_0x41e41e,this[_0x115630(0xb6)]=_0xf79f28,this[_0x115630(0x142)]=_0x14b10b,this['_commandService']=_0x23f691);}get[_0xbba1b3(0x10d)](){var _0x14a4a5=_0xbba1b3;return this[_0x14a4a5(0x125)][_0x14a4a5(0xcd)]();}[_0xbba1b3(0x111)](){var _0x576528=_0xbba1b3,_0x36e9b8;(_0x36e9b8=this[_0x576528(0x12b)])==null||_0x36e9b8[_0x576528(0x111)](),this[_0x576528(0x125)][_0x576528(0x14c)]('idle'),this[_0x576528(0x125)]['complete']();}[_0xbba1b3(0xfc)](){var _0x857586=_0xbba1b3;this['_init']||(this[_0x857586(0xb7)]=!0x0,this[_0x857586(0xbc)]['sessionStatus$']['pipe'](_0x2a5001(this[_0x857586(0xfe)]))[_0x857586(0xbe)](_0x382de=>{var _0x228520=_0x857586;switch(_0x382de){case _0x2739e9[_0x228520(0x14d)]:this[_0x228520(0x145)]();break;case _0x2739e9[_0x228520(0x127)]:this[_0x228520(0xd4)]();break;}}),this[_0x857586(0xbc)][_0x857586(0xf2)][_0x857586(0xab)](_0x2a5001(this[_0x857586(0xfe)]))[_0x857586(0xbe)](_0x4736a2=>{var _0x1e5adb=_0x857586;const {eventID:_0x45238d}=_0x4736a2;switch(_0x45238d){case _0x382651[_0x1e5adb(0xc7)]:this[_0x1e5adb(0xbf)](_0x4736a2);break;case _0x382651[_0x1e5adb(0x124)]:this[_0x1e5adb(0x150)](_0x4736a2);break;case _0x382651[_0x1e5adb(0x107)]:this[_0x1e5adb(0xeb)]();break;case _0x382651[_0x1e5adb(0xe8)]:this['_handleNewChangeSets'](_0x4736a2);break;}}));}[_0xbba1b3(0xad)](){var _0x50918e=_0xbba1b3;this[_0x50918e(0xbc)][_0x50918e(0xf4)]({'eventID':_0x382651['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x50918e(0xf0)],'userID':this[_0x50918e(0xbc)][_0x50918e(0x109)]()}},this[_0x50918e(0xf0)]);}['stopPresenting'](){var _0x40e232=_0xbba1b3;this[_0x40e232(0x10d)]===_0x40e232(0xf7)&&(this[_0x40e232(0x125)][_0x40e232(0x14c)](_0x40e232(0xdb)),this[_0x40e232(0xbc)][_0x40e232(0xf4)]({'eventID':_0x382651[_0x40e232(0x107)],'data':{'unitID':this[_0x40e232(0xf0)]}},this[_0x40e232(0xf0)]));}['startFollowing'](){var _0x445384=_0xbba1b3;this[_0x445384(0x10d)]===_0x445384(0xd3)&&(this[_0x445384(0x125)]['next']('following'),this[_0x445384(0xdf)]());}[_0xbba1b3(0xe0)](){var _0x1d450e=_0xbba1b3;this[_0x1d450e(0x10d)]===_0x1d450e(0xc1)&&this[_0x1d450e(0x118)]();}[_0xbba1b3(0xbf)](_0x3d2564){var _0x419a3a=_0xbba1b3;const {presenter:_0x3cbac0}=_0x3d2564[_0x419a3a(0xfd)],_0x58fceb=this[_0x419a3a(0xbc)]['getMemberID']();this[_0x419a3a(0x149)]=_0x3cbac0,_0x3cbac0===_0x58fceb?(this[_0x419a3a(0x118)](),this[_0x419a3a(0x155)]()):this[_0x419a3a(0x10d)]!==_0x419a3a(0xd3)&&(this[_0x419a3a(0x133)](),this[_0x419a3a(0xdf)]());}['_fetchOperations'](){var _0x4e900d=_0xbba1b3;const _0x307243={'eventID':_0x382651['LIVESHARE_FETCH_OPERATIONS']};this[_0x4e900d(0xbc)]['send'](_0x307243,this['_unitID']);}[_0xbba1b3(0xeb)](){var _0x5f3dc4=_0xbba1b3;this['_presenter']=null,this['_status']!==_0x5f3dc4(0xf7)&&this[_0x5f3dc4(0x116)]();}['_handleNewChangeSets'](_0x36bf97){var _0x47a3f3=_0xbba1b3;if(this['_status']==='following'&&this['_presenter']===_0x36bf97[_0x47a3f3(0xfd)][_0x47a3f3(0x126)]){const _0x37f385=_0x3b8640(_0x36bf97[_0x47a3f3(0xfd)])[_0x47a3f3(0xa7)][_0x47a3f3(0x123)]()[_0x47a3f3(0x104)](_0x18b98e=>_0x18b98e['id']===_0x403fb0['id']);if(_0x37f385){const _0x56e0d4=_0x37f385[_0x47a3f3(0xc2)]['unitId'],_0x5ae00a=_0x37f385[_0x47a3f3(0xc2)]['sheet']['id'];setTimeout(()=>{var _0x273d07=_0x47a3f3;this[_0x273d07(0xa8)]['executeCommand'](_0x1633d9['id'],{'unitId':_0x56e0d4,'subUnitId':_0x5ae00a},{'fromCollab':!0x0});});}}}[_0xbba1b3(0x155)](){var _0xdd8692=_0xbba1b3;this[_0xdd8692(0x125)][_0xdd8692(0x14c)](_0xdd8692(0xf7));const _0xd0723=new Map(),_0x15cd3c=this[_0xdd8692(0x12b)]=new _0x5c8a45();_0x15cd3c[_0xdd8692(0xd7)](_0x58453c(()=>{var _0x36bb01=_0xdd8692;_0xd0723[_0x36bb01(0xc3)](_0x1c985b=>_0x1c985b[_0x36bb01(0x106)]()),_0xd0723['clear']();})),_0x15cd3c[_0xdd8692(0xd7)](this[_0xdd8692(0xa8)][_0xdd8692(0x10b)](_0x3d81e4=>{var _0x5b6d80=_0xdd8692,_0x1a9604;if(_0x3d81e4['type']!==_0x510564['OPERATION']||!this[_0x5b6d80(0x142)]['shouldShareOperation'](_0x3d81e4['id']))return;const {id:_0x5ccfb3}=_0x3d81e4;let _0x238bce;_0xd0723[_0x5b6d80(0xa5)](_0x5ccfb3)?_0x238bce=_0xd0723[_0x5b6d80(0x139)](_0x5ccfb3):(_0x238bce=new _0x2b4247(),_0xd0723['set'](_0x5ccfb3,_0x238bce),_0x238bce['pipe'](_0x3edd27((_0x1a9604=this[_0x5b6d80(0xb6)][_0x5b6d80(0x12f)](Pe))!=null?_0x1a9604:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4ebaad=>{var _0x38b62d=_0x5b6d80;this['_collabSession'][_0x38b62d(0xf4)]({'eventID':_0x382651[_0x38b62d(0x124)],'data':{'unitID':this[_0x38b62d(0xf0)],'operations':{[_0x4ebaad['id']]:{'id':_0x4ebaad['id'],'params':JSON[_0x38b62d(0x14e)](_0x4ebaad[_0x38b62d(0xc2)])}}}},this[_0x38b62d(0xf0)]);})),_0x238bce[_0x5b6d80(0x14c)](_0x3d81e4);})),this[_0xdd8692(0x142)][_0xdd8692(0xf5)](this[_0xdd8692(0xf0)])['forEach'](_0xc9da9b=>this[_0xdd8692(0xbc)]['send']({'eventID':_0x382651[_0xdd8692(0x124)],'data':{'unitID':this[_0xdd8692(0xf0)],'operations':{[_0xc9da9b['id']]:{'id':_0xc9da9b['id'],'params':JSON[_0xdd8692(0x14e)](_0xc9da9b[_0xdd8692(0xc2)])}}}},this[_0xdd8692(0xf0)]));}[_0xbba1b3(0x133)](){var _0x518289=_0xbba1b3,_0x2277f4;this[_0x518289(0x125)][_0x518289(0x14c)](_0x518289(0xdb)),(_0x2277f4=this['_commandDisposable'])==null||_0x2277f4['dispose'](),this[_0x518289(0x12b)]=null;}['_startFollowing'](){var _0x16ebeb=_0xbba1b3,_0x45c4ec;(_0x45c4ec=this[_0x16ebeb(0x12b)])==null||_0x45c4ec[_0x16ebeb(0x111)](),this[_0x16ebeb(0x125)][_0x16ebeb(0x14c)]('following');}[_0xbba1b3(0x116)](){var _0x2a4b1b=_0xbba1b3,_0x3c6771;this['_status$'][_0x2a4b1b(0x14c)]('idle'),(_0x3c6771=this['_commandDisposable'])==null||_0x3c6771[_0x2a4b1b(0x111)](),this['_commandDisposable']=null;}[_0xbba1b3(0x118)](){var _0x321264=_0xbba1b3,_0x4f956d;this[_0x321264(0x125)][_0x321264(0x14c)]('not-following'),(_0x4f956d=this[_0x321264(0x12b)])==null||_0x4f956d['dispose']();}[_0xbba1b3(0x150)](_0x1ad340){var _0xe91a=_0xbba1b3;if([_0xe91a(0xf7),_0xe91a(0xd3),_0xe91a(0xd5)][_0xe91a(0xcc)](this[_0xe91a(0x10d)])||!_0x1ad340[_0xe91a(0xfd)][_0xe91a(0xf6)]||_0x1ad340[_0xe91a(0xfd)][_0xe91a(0xf6)]===this[_0xe91a(0xbc)][_0xe91a(0x109)]())return;this[_0xe91a(0x10d)]==='idle'&&this[_0xe91a(0xdf)]();const _0x11adcc=_0x1ad340[_0xe91a(0xfd)][_0xe91a(0xef)];Object[_0xe91a(0xe5)](_0x11adcc)[_0xe91a(0xc3)](_0x4f3a35=>{var _0x43f4a5=_0xe91a;this[_0x43f4a5(0xa8)][_0x43f4a5(0x128)](_0x4f3a35['id'],_0x4f3a35[_0x43f4a5(0xc2)]?JSON[_0x43f4a5(0x13b)](_0x4f3a35['params']):null,{'fromCollab':!0x0});});}[_0xbba1b3(0x145)](){var _0x3ba4de=_0xbba1b3,_0x56e0bd;this['_status$'][_0x3ba4de(0x14c)](_0x3ba4de(0xd5)),(_0x56e0bd=this[_0x3ba4de(0x12b)])==null||_0x56e0bd[_0x3ba4de(0x111)]();}[_0xbba1b3(0xd4)](){var _0x4c93e0=_0xbba1b3;this[_0x4c93e0(0x125)][_0x4c93e0(0x14c)](_0x4c93e0(0xdb)),this[_0x4c93e0(0x103)]();}};C=Z([f(0x2,_0x126fd1),f(0x3,_0x211552(L)),f(0x4,_0x4aa7e1)],C);function Te(){var _0x294921=_0xbba1b3;const _0x2feab5=_0x500185(I),_0x1fae20=_0x500185(_0x555a6c),_0x58935c=_0x280c77(()=>_0x1fae20[_0x294921(0x13c)](_0x2cec4c['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x38e7e9,_0x2476cb]=_0x31db33(null),[_0xdcb56b,_0x3bd5bc]=_0x31db33(h[_0x294921(0x146)]),_0xf743e2=_0x3851ec(null);return _0x15d0bc(()=>(_0x58935c&&_0x2feab5[_0x294921(0x11d)](_0x58935c[_0x294921(0x115)]())['then'](_0x3dc372=>{var _0x55bf87=_0x294921;_0x2476cb(_0x3dc372),_0xf743e2['current']=_0x3dc372[_0x55bf87(0xec)][_0x55bf87(0xbe)](_0x2e6288=>{_0x3bd5bc(_0x2e6288);});}),()=>{var _0x44b3df=_0x294921,_0x3fabc5;(_0x3fabc5=_0xf743e2[_0x44b3df(0x148)])==null||_0x3fabc5['unsubscribe'](),_0xf743e2[_0x44b3df(0x148)]=null;}),[_0x58935c,_0x2feab5]),_0x38e7e9?_0xc9c319(_0x47773f,{'align':_0x294921(0x11a),'disabled':_0xdcb56b===h[_0x294921(0x14d)],'className':_0x294921(0xc6),'overlay':_0xc9c319($e,{'status':_0xdcb56b,'coordinator':_0x38e7e9}),'children':_0xc9c319(_0x294921(0x132),{'className':_0x467e30(_0x294921(0x131),{'univer-cursor-not-allowed':_0xdcb56b===h[_0x294921(0x14d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xdcb56b!==h[_0x294921(0x14d)]}),'type':_0x294921(0x132),'children':_0xc9c319(B,{'className':'univer-size-4'})})}):null;}function $e(_0x59305f){const {status:_0x46163a,coordinator:_0xcd2eb2}=_0x59305f;switch(_0x46163a){case h['IDLE']:return _0xc9c319(Fe,{'coordinator':_0xcd2eb2});case h['FOLLOWING']:return _0xc9c319(He,{'coordinator':_0xcd2eb2});case h['NOT_FOLLOWING']:return _0xc9c319(je,{'coordinator':_0xcd2eb2});case h['OFFLINE']:return _0xc9c319(Ve,{});case h['PRESENTING']:return _0xc9c319(Ue,{'coordinator':_0xcd2eb2});default:return null;}}function Fe(_0xdfc913){var _0x916708=_0xbba1b3;const {coordinator:_0x25b89b}=_0xdfc913;return _0x40d01f(_0x162862,{'children':[_0xc9c319('div',{'className':_0x916708(0x12c),'children':_0x916708(0x154)}),_0xc9c319(_0x14318a,{'onClick':()=>_0x25b89b[_0x916708(0xad)](),'children':_0x916708(0x138)})]});}function He(_0x59a741){var _0x39c60a=_0xbba1b3;const {coordinator:_0x457099}=_0x59a741;return _0x40d01f(_0x162862,{'children':[_0xc9c319('div',{'className':_0x39c60a(0x12c),'children':_0x39c60a(0x113)}),_0xc9c319(_0x14318a,{'onClick':()=>_0x457099[_0x39c60a(0xe0)](),'children':_0x39c60a(0xba)})]});}function je(_0x134299){var _0x57ca87=_0xbba1b3;const {coordinator:_0x400101}=_0x134299;return _0x40d01f(_0x162862,{'children':[_0xc9c319(_0x57ca87(0xea),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x57ca87(0xd9)}),_0xc9c319(_0x14318a,{'variant':_0x57ca87(0xd2),'onClick':()=>_0x400101[_0x57ca87(0x134)](),'children':_0x57ca87(0xf9)})]});}function Ue(_0x18a2ac){var _0x5da86f=_0xbba1b3;const {coordinator:_0x54a631}=_0x18a2ac;return _0x40d01f(_0x162862,{'children':[_0xc9c319('div',{'className':_0x5da86f(0x12c),'children':_0x5da86f(0x144)}),_0xc9c319(_0x14318a,{'variant':_0x5da86f(0x147),'onClick':()=>_0x54a631[_0x5da86f(0xfa)](),'children':_0x5da86f(0x121)})]});}function Ve(){var _0x2f4153=_0xbba1b3;return _0xc9c319(_0x162862,{'children':_0x2f4153(0x101)});}function _0x2498(){var _0x409bda=['memberID','ONLINE','executeCommand','disposeWithMe','createInstance','_commandDisposable','univer-mb-3\x20univer-w-full\x20univer-text-sm','extend','defs','getConfig','registerComponent','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','button','_stopPresenting','startFollowing','7zGCzMZ','univerjs-icon\x20univerjs-icon-','call','Start','get','setConfig','parse','getCurrentTypeOfUnit$','89353WhXTNk','getOwnPropertyDescriptor','onRendered','defineProperty','0\x200\x2017\x2017','_liveShareService','HEADER_MENU','You\x27re\x20presenting\x20the\x20document','_handleOffline','IDLE','default','current','_presenter','assign','_entities','next','OFFLINE','stringify','pluginName','_handleOperation','hasOwnProperty','svg','icon','Present\x20this\x20document','_startPresenting','8473614jNAjrY','prototype','_univerInstanceService','requireSession','UNIVER_SHEET','mask','240FKrWOR','has','concat','mutations','_commandService','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','_reporters','pipe','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','tryStartPresenting','1621500eGPUBm','path','currentColor','_startLiveShareCoordinator','xlink:href','registerSharedOperation','use','override','_configService','_init','symbol','_uiPartsService','Stop\x20following','replace','_collabSession','attrs','subscribe','_handleNewHost','_mountLiveShare','following','params','forEach','getOwnPropertySymbols','3256905amNTTQ','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','LIVESHARE_NEW_HOST','getTypeOfUnitAdded$','187101MiVYEa','none','769341CXhCTn','includes','getValue','idSuffix','shouldShareOperation','PRESENTING','colorChannel1','text','not-following','_handleOnline','offline','length','add','indexOf','You\x27re\x20not\x20following\x20the\x20presenter','evenodd','idle','substring','type','live-share.config','_startFollowing','stopFollowing','defIds','_sharedOperations','registerInitialStateReporter','_collabSessionService','values','_config','className','NEW_CHANGESETS','getTypeOfUnitDisposed$','div','_handleTerminate','status$','onStarting','SAME_OPERATION_SHARE_INTERVAL','operations','_unitID','random','event$','1em','send','getInitialStates','presenter','presenting','tag','Start\x20following','stopPresenting','string','init','data','dispose$','2569470saoTrQ','4EnILWW','You\x27are\x20offline.','toString','_fetchOperations','find','FOLLOWING','complete','LIVESHARE_TERMINATE','NOT_FOLLOWING','getMemberID','LiveShareIcon','onCommandExecuted','propertyIsEnumerable','_status','fill','url(#$1','UNIVER_LIVE_SHARE_PLUGIN','dispose','delete','You\x27re\x20following\x20the\x20presenter','children','getUnitId','_beIdle','asObservable','_stopFollowing','370BSUcat','end','displayName','apply','getLiveShareCoordinator','trim','map','http://www.w3.org/2000/svg','Stop\x20presenting','_injector','reverse','LIVESHARE_OPERATION','_status$'];_0x2498=function(){return _0x409bda;};return _0x2498();}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x108aed,_0x2a7f42,_0x2787db,_0x5d7370)=>{var _0x3f634b=_0xbba1b3;for(var _0xfe4183=_0x5d7370>0x1?void 0x0:_0x5d7370?Me(_0x2a7f42,_0x2787db):_0x2a7f42,_0xeeeea5=_0x108aed[_0x3f634b(0xd6)]-0x1,_0x25d095;_0xeeeea5>=0x0;_0xeeeea5--)(_0x25d095=_0x108aed[_0xeeeea5])&&(_0xfe4183=_0x25d095(_0xfe4183)||_0xfe4183);return _0xfe4183;},$=(_0x88be77,_0x4a90b9)=>(_0x2445bf,_0x427475)=>_0x4a90b9(_0x2445bf,_0x427475,_0x88be77);let b=class extends _0x381194{constructor(_0x1df293,_0x3f4609){var _0x1e6a73=_0xbba1b3;super(),this[_0x1e6a73(0x122)]=_0x1df293,this[_0x1e6a73(0xb9)]=_0x3f4609,this[_0x1e6a73(0xc0)]();}[_0xbba1b3(0xc0)](){var _0x1a6e00=_0xbba1b3;this[_0x1a6e00(0x129)](this[_0x1a6e00(0xb9)][_0x1a6e00(0x130)](_0x18a9bb[_0x1a6e00(0x143)],()=>_0x2555d5(Te,this[_0x1a6e00(0x122)])));}};b=ke([$(0x0,_0x211552(_0x2709b6)),$(0x1,_0x41b1e5)],b);var Ge=Object['defineProperty'],We=Object[_0xbba1b3(0x13e)],Ye=(_0x4c8a0d,_0x44a083,_0x5389cc)=>_0x44a083 in _0x4c8a0d?Ge(_0x4c8a0d,_0x44a083,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5389cc}):_0x4c8a0d[_0x44a083]=_0x5389cc,Be=(_0x4aeedf,_0x20e6b7,_0x71e062,_0x153d29)=>{var _0x4a073c=_0xbba1b3;for(var _0x553be0=_0x153d29>0x1?void 0x0:_0x153d29?We(_0x20e6b7,_0x71e062):_0x20e6b7,_0x5c1d80=_0x4aeedf[_0x4a073c(0xd6)]-0x1,_0x38aa65;_0x5c1d80>=0x0;_0x5c1d80--)(_0x38aa65=_0x4aeedf[_0x5c1d80])&&(_0x553be0=_0x38aa65(_0x553be0)||_0x553be0);return _0x553be0;},F=(_0x32719f,_0x170089)=>(_0x556d88,_0x200a21)=>_0x170089(_0x556d88,_0x200a21,_0x32719f),J=(_0x5362f1,_0x2b62e1,_0x42c2ac)=>Ye(_0x5362f1,typeof _0x2b62e1!='symbol'?_0x2b62e1+'':_0x2b62e1,_0x42c2ac);const Ze=_0xbba1b3(0x110);let O=class extends _0x29f071{constructor(_0x21c5e7=T,_0x149c60,_0x100175){var _0x4ecbf3=_0xbba1b3;super(),this[_0x4ecbf3(0xe6)]=_0x21c5e7,this['_injector']=_0x149c60,this[_0x4ecbf3(0xb6)]=_0x100175;const {..._0x50042e}=_0x19abfa({},T,this[_0x4ecbf3(0xe6)]);this[_0x4ecbf3(0xb6)][_0x4ecbf3(0x13a)](Oe,_0x50042e);}[_0xbba1b3(0xed)](){var _0x162c8d=_0xbba1b3;_0x4163a2(this['_injector'],_0x229151([[L],[I],[m],[b]],this[_0x162c8d(0xe6)][_0x162c8d(0xb5)])),_0x3bf957(this[_0x162c8d(0x122)],[[m]]);}[_0xbba1b3(0x13f)](){var _0x2e5723=_0xbba1b3;_0x3bf957(this[_0x2e5723(0x122)],[[b]]);}};J(O,_0xbba1b3(0xdd),_0x2cec4c['UNIVER_UNKNOWN']),J(O,_0xbba1b3(0x14f),Ze),O=Be([_0x232c0c(_0x4e408a),F(0x1,_0x211552(_0x2709b6)),F(0x2,_0x126fd1)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x36f681=_0x1118;(function(_0xdb3272,_0x585b5c){var _0x1af3b9=_0x1118,_0x55dcb1=_0xdb3272();while(!![]){try{var _0x15cf64=parseInt(_0x1af3b9(0x1f8))/0x1*(parseInt(_0x1af3b9(0x1a9))/0x2)+-parseInt(_0x1af3b9(0x1af))/0x3*(-parseInt(_0x1af3b9(0x1dd))/0x4)+parseInt(_0x1af3b9(0x1aa))/0x5*(-parseInt(_0x1af3b9(0x1c5))/0x6)+-parseInt(_0x1af3b9(0x17d))/0x7*(-parseInt(_0x1af3b9(0x1bf))/0x8)+-parseInt(_0x1af3b9(0x204))/0x9*(parseInt(_0x1af3b9(0x1da))/0xa)+-parseInt(_0x1af3b9(0x1a3))/0xb+-parseInt(_0x1af3b9(0x19a))/0xc*(-parseInt(_0x1af3b9(0x1f5))/0xd);if(_0x15cf64===_0x585b5c)break;else _0x55dcb1['push'](_0x55dcb1['shift']());}catch(_0x371655){_0x55dcb1['push'](_0x55dcb1['shift']());}}}(_0x1122,0x2bf65));var q=Object['defineProperty'],z=(_0x2dc5df,_0x245c31,_0x4dc601)=>_0x245c31 in _0x2dc5df?q(_0x2dc5df,_0x245c31,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4dc601}):_0x2dc5df[_0x245c31]=_0x4dc601,d=(_0x3ce50a,_0x1d8e50,_0x2b5a32)=>z(_0x3ce50a,typeof _0x1d8e50!=_0x36f681(0x19d)?_0x1d8e50+'':_0x1d8e50,_0x2b5a32);import{CollaborationSessionService as _0x3cbafe,SessionStatus as _0x3733f5,UniverCollaborationClientPlugin as _0x1202e1}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1b9b72,toDisposable as _0x4c5635,Inject as _0x2471b9,IUniverInstanceService as _0x369fcc,Injector as _0x1fff4e,IConfigService as _0x177af0,ICommandService as _0x390976,RxDisposable as _0x353398,UniverInstanceType as _0x29b044,DisposableCollection as _0x2810df,CommandType as _0x54268d,DependentOn as _0x203d04,Plugin as _0x45d0b9,merge as _0x217915,registerDependencies as _0x5b4604,mergeOverrideWithDependencies as _0x3ed2f6,touchDependencies as _0x131646}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x599ac0,InsertSheetMutation as _0x4e20ed}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x37dc55,SetScrollOperation as _0x3fbab9}from'@univerjs/sheets-ui';import{useDependency as _0x5edaac,useObservable as _0x219c95,IUIPartsService as _0x2dedba,BuiltInUIPart as _0x1eb411,connectInjector as _0x424e91}from'@univerjs/ui';import{jsx as _0x36145d,jsxs as _0x4e0c68,Fragment as _0x37245c}from'react/jsx-runtime';import{Dropdown as _0x4d6833,clsx as _0x345b91,Button as _0x52e609}from'@univerjs/design';import{forwardRef as _0x24c7ad,useRef as _0x251313,createElement as _0x980b93,useState as _0x569d59,useEffect as _0x173568}from'react';import{CollaborationEvent as _0x18ecaa,parseProtocolChangeset as _0x21841a}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2b64c8,Subject as _0x47ff72}from'rxjs';import{takeUntil as _0x521a29,throttleTime as _0x61e5a1}from'rxjs/operators';const Oe=_0x36f681(0x1bb),T={};class L extends _0x1b9b72{constructor(){var _0x1f7b95=_0x36f681;super(...arguments),d(this,_0x1f7b95(0x1e9),new Set()),d(this,_0x1f7b95(0x17c),new Set());}['registerSharedOperation'](_0xafa4ca){var _0xc7e0ea=_0x36f681;return this['_sharedOperations'][_0xc7e0ea(0x177)](_0xafa4ca),_0x4c5635(()=>this['_sharedOperations'][_0xc7e0ea(0x184)](_0xafa4ca));}[_0x36f681(0x1ac)](_0x3174a6){var _0x4dcd63=_0x36f681;return this['_reporters']['add'](_0x3174a6),_0x4c5635(()=>this[_0x4dcd63(0x17c)][_0x4dcd63(0x184)](_0x3174a6));}[_0x36f681(0x17e)](_0x771b5b){var _0x1f7f10=_0x36f681;return this[_0x1f7f10(0x1e9)]['has'](_0x771b5b);}[_0x36f681(0x1a1)](_0x12879d){var _0x2a858f=_0x36f681;return Array['from'](this[_0x2a858f(0x17c)])[_0x2a858f(0x1ce)](_0x51b88f=>_0x51b88f(_0x12879d));}}var Ee=Object[_0x36f681(0x217)],we=(_0x4c2d20,_0x1d278d,_0x384d96,_0x872cfd)=>{var _0x21ab27=_0x36f681;for(var _0xb9d887=_0x872cfd>0x1?void 0x0:_0x872cfd?Ee(_0x1d278d,_0x384d96):_0x1d278d,_0x460468=_0x4c2d20[_0x21ab27(0x1e3)]-0x1,_0x2ad69d;_0x460468>=0x0;_0x460468--)(_0x2ad69d=_0x4c2d20[_0x460468])&&(_0xb9d887=_0x2ad69d(_0xb9d887)||_0xb9d887);return _0xb9d887;},Ne=(_0x1f773e,_0x4ba6d0)=>(_0x2058cd,_0x36a488)=>_0x4ba6d0(_0x2058cd,_0x36a488,_0x1f773e);let m=class extends _0x1b9b72{constructor(_0x2ba15e){var _0x5c9ab5=_0x36f681;super(),this[_0x5c9ab5(0x193)]=_0x2ba15e,this['_init']();}[_0x36f681(0x197)](){var _0x25614f=_0x36f681;[_0x37dc55['id'],_0x3fbab9['id'],_0x599ac0['id']][_0x25614f(0x1f9)](_0x5d0fa9=>{var _0x45a782=_0x25614f;this[_0x45a782(0x1a5)](this[_0x45a782(0x193)][_0x45a782(0x1ca)](_0x5d0fa9));});}};m=we([Ne(0x0,_0x2471b9(L))],m);var c=function(){var _0x53f227=_0x36f681;return c=Object['assign']||function(_0x369089){var _0x499ee0=_0x1118;for(var _0x4a3e52,_0x124ed9=0x1,_0x4b70e2=arguments[_0x499ee0(0x1e3)];_0x124ed9<_0x4b70e2;_0x124ed9++){_0x4a3e52=arguments[_0x124ed9];for(var _0x1f2fcf in _0x4a3e52)Object[_0x499ee0(0x1fc)][_0x499ee0(0x203)][_0x499ee0(0x17f)](_0x4a3e52,_0x1f2fcf)&&(_0x369089[_0x1f2fcf]=_0x4a3e52[_0x1f2fcf]);}return _0x369089;},c[_0x53f227(0x1ef)](this,arguments);},Ce=function(_0x48ad6d,_0x39d979){var _0x4fda78=_0x36f681,_0x5bc6cc={};for(var _0x54acf9 in _0x48ad6d)Object[_0x4fda78(0x1fc)]['hasOwnProperty'][_0x4fda78(0x17f)](_0x48ad6d,_0x54acf9)&&_0x39d979[_0x4fda78(0x206)](_0x54acf9)<0x0&&(_0x5bc6cc[_0x54acf9]=_0x48ad6d[_0x54acf9]);if(_0x48ad6d!=null&&typeof Object[_0x4fda78(0x1fd)]=='function'){for(var _0x387058=0x0,_0x54acf9=Object[_0x4fda78(0x1fd)](_0x48ad6d);_0x387058<_0x54acf9['length'];_0x387058++)_0x39d979[_0x4fda78(0x206)](_0x54acf9[_0x387058])<0x0&&Object[_0x4fda78(0x1fc)][_0x4fda78(0x216)][_0x4fda78(0x17f)](_0x48ad6d,_0x54acf9[_0x387058])&&(_0x5bc6cc[_0x54acf9[_0x387058]]=_0x48ad6d[_0x54acf9[_0x387058]]);}return _0x5bc6cc;},W=_0x24c7ad(function(_0x23fa1b,_0x2f0746){var _0x3db27a=_0x36f681,_0x191b9f=_0x23fa1b[_0x3db27a(0x1a2)],_0x4597ab=_0x23fa1b['id'],_0x41c6cd=_0x23fa1b[_0x3db27a(0x218)],_0x296794=_0x23fa1b[_0x3db27a(0x1b5)],_0x1858d8=Ce(_0x23fa1b,['icon','id',_0x3db27a(0x218),'extend']),_0x374a2a=_0x3db27a(0x1e8)['concat'](_0x4597ab,'\x20')[_0x3db27a(0x1f2)](_0x41c6cd||'')[_0x3db27a(0x176)](),_0x14ad55=_0x251313('_'[_0x3db27a(0x1f2)](Le()));return Y(_0x191b9f,''[_0x3db27a(0x1f2)](_0x4597ab),{'defIds':_0x191b9f[_0x3db27a(0x1d1)],'idSuffix':_0x14ad55[_0x3db27a(0x1b3)]},c({'ref':_0x2f0746,'className':_0x374a2a},_0x1858d8),_0x296794);});function Y(_0x49165a,_0x1953fb,_0x531023,_0x33197f,_0x1d5707){var _0x47c971=_0x36f681;return _0x980b93(_0x49165a[_0x47c971(0x1f3)],c(c({'key':_0x1953fb},De(_0x49165a,_0x531023,_0x1d5707)),_0x33197f),(xe(_0x49165a,_0x531023)['children']||[])['map'](function(_0x164d4f,_0x4860bd){var _0x202e62=_0x47c971;return Y(_0x164d4f,''[_0x202e62(0x1f2)](_0x1953fb,'-')['concat'](_0x49165a[_0x202e62(0x1f3)],'-')[_0x202e62(0x1f2)](_0x4860bd),_0x531023,void 0x0,_0x1d5707);}));}function De(_0x2bd1d4,_0x3c6f7a,_0x1b0537){var _0x38bf02=_0x36f681,_0x59cc43=c({},_0x2bd1d4[_0x38bf02(0x20c)]);_0x1b0537!=null&&_0x1b0537[_0x38bf02(0x1c9)]&&_0x59cc43[_0x38bf02(0x195)]===_0x38bf02(0x1c9)&&(_0x59cc43[_0x38bf02(0x195)]=_0x1b0537['colorChannel1']),_0x2bd1d4[_0x38bf02(0x1f3)]==='mask'&&_0x59cc43['id']&&(_0x59cc43['id']=_0x59cc43['id']+_0x3c6f7a[_0x38bf02(0x21d)]),Object['entries'](_0x59cc43)[_0x38bf02(0x1f9)](function(_0x19dbc5){var _0x7e7bcc=_0x38bf02,_0xb58bed=_0x19dbc5[0x0],_0x24a488=_0x19dbc5[0x1];_0xb58bed==='mask'&&typeof _0x24a488==_0x7e7bcc(0x1cb)&&(_0x59cc43[_0xb58bed]=_0x24a488['replace'](/url\(#(.*)\)/,_0x7e7bcc(0x207)['concat'](_0x3c6f7a[_0x7e7bcc(0x21d)],')')));});var _0x4b71d9=_0x3c6f7a[_0x38bf02(0x1d1)];return!_0x4b71d9||_0x4b71d9['length']===0x0||(_0x2bd1d4['tag']==='use'&&_0x59cc43[_0x38bf02(0x1f0)]&&(_0x59cc43[_0x38bf02(0x1f0)]=_0x59cc43['xlink:href']+_0x3c6f7a[_0x38bf02(0x21d)]),Object[_0x38bf02(0x1b8)](_0x59cc43)['forEach'](function(_0x23138b){var _0x430f01=_0x38bf02,_0x316463=_0x23138b[0x0],_0x5c033f=_0x23138b[0x1];typeof _0x5c033f==_0x430f01(0x1cb)&&(_0x59cc43[_0x316463]=_0x5c033f[_0x430f01(0x1d2)](/url\(#(.*)\)/,_0x430f01(0x207)[_0x430f01(0x1f2)](_0x3c6f7a[_0x430f01(0x21d)],')')));})),_0x59cc43;}function _0x1122(){var _0x1e6afd=['_handleOnline','_presenter','requireSession','Start\x20following','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','length','_config','_handleOperation','mutations','FOLLOWING','univerjs-icon\x20univerjs-icon-','_sharedOperations','registerComponent','_status','params','offline','_handleNewHost','apply','xlink:href','reverse','concat','tag','_univerInstanceService','3641131vlkuMs','getMemberID','_handleTerminate','25oZAZVy','forEach','tryStartPresenting','executeCommand','prototype','getOwnPropertySymbols','stopFollowing','_stopPresenting','LIVESHARE_OPERATION','getCurrentTypeOfUnit$','pipe','hasOwnProperty','4356UMgVpI','defs','indexOf','url(#$1','getTypeOfUnitDisposed$','univer-mb-3\x20univer-w-full\x20univer-text-sm','OFFLINE','currentColor','attrs','dispose','operations','_beIdle','idle','displayName','evenodd','not-following','_fetchOperations','_handleNewChangeSets','propertyIsEnumerable','getOwnPropertyDescriptor','className','PRESENTING','1em','IDLE','substring','idSuffix','_mountLiveShare','sessionStatus$','unitId','_startPresenting','trim','add','_unitID','onCommandExecuted','getUnitId','following','_reporters','7ktKENv','shouldShareOperation','call','then','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','end','You\x27re\x20following\x20the\x20presenter','delete','UNIVER_SHEET','0\x200\x2017\x2017','status$','subscribe','_handleOffline','data','unsubscribe','createInstance','includes','presenter','set','parse','_startFollowing','_configService','_liveShareService','type','fill','init','_init','stringify','_stopFollowing','12OyRnVu','has','path','symbol','LIVESHARE_FETCH_OPERATIONS','defineProperty','LIVESHARE_NEW_HOST','getInitialStates','icon','2619463rtaDEN','_startLiveShareCoordinator','disposeWithMe','none','SAME_OPERATION_SHARE_INTERVAL','_collabSessionService','14078kmtVfM','135UFjmRC','HEADER_MENU','registerInitialStateReporter','div','NEW_CHANGESETS','11967JlOGxp','live-share-icon','find','sheet','current','button','extend','text','getLiveShareCoordinator','entries','presenting','_entities','live-share.config','send','You\x27re\x20not\x20following\x20the\x20presenter','dispose$','967704IrAjcy','next','children','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','onRendered','_status$','20826exKgWu','assign','LIVESHARE_TERMINATE','_commandDisposable','colorChannel1','registerSharedOperation','string','_commandService','getConfig','map','http://www.w3.org/2000/svg','_collabSession','defIds','replace','get','event$','getValue','complete','svg','NOT_FOLLOWING','_injector','1510fPOdDG','onStarting','You\x27are\x20offline.','8baMzcv'];_0x1122=function(){return _0x1e6afd;};return _0x1122();}function xe(_0x53d8bf,_0x23873a){var _0x228094=_0x36f681,_0x5baf9b,_0x1e839c=_0x23873a[_0x228094(0x1d1)];return!_0x1e839c||_0x1e839c[_0x228094(0x1e3)]===0x0?_0x53d8bf:_0x53d8bf[_0x228094(0x1f3)]===_0x228094(0x205)&&(!((_0x5baf9b=_0x53d8bf['children'])===null||_0x5baf9b===void 0x0)&&_0x5baf9b['length'])?c(c({},_0x53d8bf),{'children':_0x53d8bf[_0x228094(0x1c1)][_0x228094(0x1ce)](function(_0x46dbd9){var _0x5ee158=_0x228094;return typeof _0x46dbd9[_0x5ee158(0x20c)]['id']=='string'&&_0x1e839c&&_0x1e839c[_0x5ee158(0x18d)](_0x46dbd9[_0x5ee158(0x20c)]['id'])?c(c({},_0x46dbd9),{'attrs':c(c({},_0x46dbd9[_0x5ee158(0x20c)]),{'id':_0x46dbd9[_0x5ee158(0x20c)]['id']+_0x23873a[_0x5ee158(0x21d)]})}):_0x46dbd9;})}):_0x53d8bf;}function Le(){var _0x3bd3e7=_0x36f681;return Math['random']()['toString'](0x24)[_0x3bd3e7(0x21c)](0x2,0x8);}W[_0x36f681(0x211)]='UniverIcon';var ye={'tag':_0x36f681(0x1d7),'attrs':{'xmlns':_0x36f681(0x1cf),'fill':_0x36f681(0x1a6),'viewBox':_0x36f681(0x186),'width':_0x36f681(0x21a),'height':'1em'},'children':[{'tag':_0x36f681(0x19c),'attrs':{'fill':_0x36f681(0x20b),'d':_0x36f681(0x181)}},{'tag':_0x36f681(0x19c),'attrs':{'fill':_0x36f681(0x20b),'d':_0x36f681(0x1e2),'fillRule':_0x36f681(0x212),'clipRule':_0x36f681(0x212)}}]},B=_0x24c7ad(function(_0x22b41a,_0x1668ea){var _0x1fc324=_0x36f681;return _0x980b93(W,Object[_0x1fc324(0x1c6)]({},_0x22b41a,{'id':_0x1fc324(0x1b0),'ref':_0x1668ea,'icon':ye}));});B[_0x36f681(0x211)]='LiveShareIcon';var Re=Object[_0x36f681(0x217)],Z=(_0x88aed7,_0x2f396f,_0x24c757,_0x44a7dd)=>{var _0x39d1ac=_0x36f681;for(var _0xe2cf28=_0x44a7dd>0x1?void 0x0:_0x44a7dd?Re(_0x2f396f,_0x24c757):_0x2f396f,_0x4f4bcb=_0x88aed7[_0x39d1ac(0x1e3)]-0x1,_0x333c74;_0x4f4bcb>=0x0;_0x4f4bcb--)(_0x333c74=_0x88aed7[_0x4f4bcb])&&(_0xe2cf28=_0x333c74(_0xe2cf28)||_0xe2cf28);return _0xe2cf28;},f=(_0x6f0e90,_0x1c02a3)=>(_0x4e73f5,_0x3a7dff)=>_0x1c02a3(_0x4e73f5,_0x3a7dff,_0x6f0e90);let I=class extends _0x353398{constructor(_0x1d9aea,_0x12bfa0,_0x577704){var _0x5a0892=_0x36f681;super(),d(this,'_entities',new Map()),(this[_0x5a0892(0x1f4)]=_0x1d9aea,this[_0x5a0892(0x1d9)]=_0x12bfa0,this[_0x5a0892(0x1a8)]=_0x577704,this[_0x5a0892(0x197)]());}async[_0x36f681(0x1b7)](_0x4a8765){var _0x1cc18b=_0x36f681;return this[_0x1cc18b(0x1ba)][_0x1cc18b(0x19b)](_0x4a8765)||await this[_0x1cc18b(0x1a4)](_0x4a8765),this['_entities'][_0x1cc18b(0x1d3)](_0x4a8765);}[_0x36f681(0x197)](){var _0x3a588f=_0x36f681;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x29b044['UNIVER_SHEET'])[_0x3a588f(0x202)](_0x521a29(this[_0x3a588f(0x1be)]))['subscribe'](async _0x5a6736=>{var _0x535dc0=_0x3a588f;const _0x4defc5=_0x5a6736[_0x535dc0(0x17a)]();this[_0x535dc0(0x1ba)][_0x535dc0(0x19b)](_0x4defc5)||this[_0x535dc0(0x1a4)](_0x4defc5);}),this[_0x3a588f(0x1f4)][_0x3a588f(0x208)](_0x29b044[_0x3a588f(0x185)])[_0x3a588f(0x202)](_0x521a29(this[_0x3a588f(0x1be)]))[_0x3a588f(0x188)](_0x15ea23=>{var _0x4045d1=_0x3a588f;const _0x4bef80=_0x15ea23[_0x4045d1(0x17a)](),_0x5bc5ff=this[_0x4045d1(0x1ba)][_0x4045d1(0x1d3)](_0x4bef80);_0x5bc5ff==null||_0x5bc5ff[_0x4045d1(0x20d)]();});}async[_0x36f681(0x1a4)](_0x967279){var _0xa65286=_0x36f681;const _0x1a59c3=await this['_collabSessionService'][_0xa65286(0x1e0)](_0x967279),_0x270761=this[_0xa65286(0x1d9)][_0xa65286(0x18c)](C,_0x967279,_0x1a59c3);return _0x270761[_0xa65286(0x196)](),this['_entities']['set'](_0x967279,_0x270761),_0x270761;}};I=Z([f(0x0,_0x369fcc),f(0x1,_0x2471b9(_0x1fff4e)),f(0x2,_0x2471b9(_0x3cbafe))],I);var h=(_0x59e72b=>(_0x59e72b['OFFLINE']=_0x36f681(0x1ed),_0x59e72b[_0x36f681(0x21b)]='idle',_0x59e72b[_0x36f681(0x1e7)]=_0x36f681(0x17b),_0x59e72b[_0x36f681(0x1d8)]=_0x36f681(0x213),_0x59e72b[_0x36f681(0x219)]=_0x36f681(0x1b9),_0x59e72b))(h||{});const Pe=_0x36f681(0x1a7),Ae=0xc8;let C=class extends _0x353398{constructor(_0x27bc2a,_0x300c43,_0x5d2c32,_0x91ff0c,_0x5c49fe){var _0x2c1b55=_0x36f681;super(),d(this,_0x2c1b55(0x1c4),new _0x2b64c8(_0x2c1b55(0x210))),d(this,_0x2c1b55(0x187),this[_0x2c1b55(0x1c4)]['asObservable']()),d(this,_0x2c1b55(0x197),!0x1),d(this,'_commandDisposable',null),d(this,'_presenter',null),(this[_0x2c1b55(0x178)]=_0x27bc2a,this[_0x2c1b55(0x1d0)]=_0x300c43,this[_0x2c1b55(0x192)]=_0x5d2c32,this[_0x2c1b55(0x193)]=_0x91ff0c,this[_0x2c1b55(0x1cc)]=_0x5c49fe);}get[_0x36f681(0x1eb)](){var _0x5cc586=_0x36f681;return this[_0x5cc586(0x1c4)][_0x5cc586(0x1d5)]();}['dispose'](){var _0x4dcd6a=_0x36f681,_0x6ad419;(_0x6ad419=this['_commandDisposable'])==null||_0x6ad419['dispose'](),this[_0x4dcd6a(0x1c4)][_0x4dcd6a(0x1c0)](_0x4dcd6a(0x210)),this[_0x4dcd6a(0x1c4)]['complete']();}['init'](){var _0x31b1e6=_0x36f681;this['_init']||(this[_0x31b1e6(0x197)]=!0x0,this[_0x31b1e6(0x1d0)][_0x31b1e6(0x173)][_0x31b1e6(0x202)](_0x521a29(this[_0x31b1e6(0x1be)]))[_0x31b1e6(0x188)](_0x3abe44=>{var _0x3da701=_0x31b1e6;switch(_0x3abe44){case _0x3733f5[_0x3da701(0x20a)]:this['_handleOffline']();break;case _0x3733f5['ONLINE']:this[_0x3da701(0x1de)]();break;}}),this['_collabSession'][_0x31b1e6(0x1d4)]['pipe'](_0x521a29(this['dispose$']))['subscribe'](_0x57858c=>{var _0x900d2e=_0x31b1e6;const {eventID:_0x443a62}=_0x57858c;switch(_0x443a62){case _0x18ecaa[_0x900d2e(0x1a0)]:this['_handleNewHost'](_0x57858c);break;case _0x18ecaa[_0x900d2e(0x200)]:this[_0x900d2e(0x1e5)](_0x57858c);break;case _0x18ecaa[_0x900d2e(0x1c7)]:this[_0x900d2e(0x1f7)]();break;case _0x18ecaa[_0x900d2e(0x1ae)]:this[_0x900d2e(0x215)](_0x57858c);break;}}));}['tryStartPresenting'](){var _0x507e54=_0x36f681;this[_0x507e54(0x1d0)][_0x507e54(0x1bc)]({'eventID':_0x18ecaa['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x507e54(0x178)],'userID':this[_0x507e54(0x1d0)][_0x507e54(0x1f6)]()}},this[_0x507e54(0x178)]);}['stopPresenting'](){var _0x3e9083=_0x36f681;this[_0x3e9083(0x1eb)]==='presenting'&&(this[_0x3e9083(0x1c4)][_0x3e9083(0x1c0)](_0x3e9083(0x210)),this['_collabSession']['send']({'eventID':_0x18ecaa[_0x3e9083(0x1c7)],'data':{'unitID':this[_0x3e9083(0x178)]}},this[_0x3e9083(0x178)]));}['startFollowing'](){var _0x155cab=_0x36f681;this['_status']==='not-following'&&(this['_status$'][_0x155cab(0x1c0)](_0x155cab(0x17b)),this[_0x155cab(0x191)]());}[_0x36f681(0x1fe)](){var _0x4efe5e=_0x36f681;this['_status']===_0x4efe5e(0x17b)&&this[_0x4efe5e(0x199)]();}[_0x36f681(0x1ee)](_0x202fcc){var _0x495010=_0x36f681;const {presenter:_0x1e1588}=_0x202fcc['data'],_0x6bf872=this[_0x495010(0x1d0)][_0x495010(0x1f6)]();this[_0x495010(0x1df)]=_0x1e1588,_0x1e1588===_0x6bf872?(this[_0x495010(0x199)](),this[_0x495010(0x175)]()):this[_0x495010(0x1eb)]!==_0x495010(0x213)&&(this[_0x495010(0x1ff)](),this[_0x495010(0x191)]());}[_0x36f681(0x214)](){var _0x465eed=_0x36f681;const _0x21d037={'eventID':_0x18ecaa[_0x465eed(0x19e)]};this['_collabSession'][_0x465eed(0x1bc)](_0x21d037,this['_unitID']);}['_handleTerminate'](){var _0x984efd=_0x36f681;this['_presenter']=null,this[_0x984efd(0x1eb)]!==_0x984efd(0x1b9)&&this['_beIdle']();}['_handleNewChangeSets'](_0x58a016){var _0x2d391a=_0x36f681;if(this['_status']===_0x2d391a(0x17b)&&this[_0x2d391a(0x1df)]===_0x58a016[_0x2d391a(0x18a)]['memberID']){const _0x530453=_0x21841a(_0x58a016[_0x2d391a(0x18a)])[_0x2d391a(0x1e6)][_0x2d391a(0x1f1)]()[_0x2d391a(0x1b1)](_0x2ec1f7=>_0x2ec1f7['id']===_0x4e20ed['id']);if(_0x530453){const _0x167407=_0x530453[_0x2d391a(0x1ec)][_0x2d391a(0x174)],_0xa731e1=_0x530453['params'][_0x2d391a(0x1b2)]['id'];setTimeout(()=>{var _0x410b5c=_0x2d391a;this[_0x410b5c(0x1cc)][_0x410b5c(0x1fb)](_0x599ac0['id'],{'unitId':_0x167407,'subUnitId':_0xa731e1},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x110739=_0x36f681;this[_0x110739(0x1c4)][_0x110739(0x1c0)](_0x110739(0x1b9));const _0x12c5c8=new Map(),_0x5a06cd=this[_0x110739(0x1c8)]=new _0x2810df();_0x5a06cd['add'](_0x4c5635(()=>{var _0x1c8557=_0x110739;_0x12c5c8[_0x1c8557(0x1f9)](_0x16d946=>_0x16d946[_0x1c8557(0x1d6)]()),_0x12c5c8['clear']();})),_0x5a06cd['add'](this[_0x110739(0x1cc)][_0x110739(0x179)](_0x1522fa=>{var _0x492fdd=_0x110739,_0x5a3e89;if(_0x1522fa[_0x492fdd(0x194)]!==_0x54268d['OPERATION']||!this[_0x492fdd(0x193)][_0x492fdd(0x17e)](_0x1522fa['id']))return;const {id:_0x134466}=_0x1522fa;let _0x599ab7;_0x12c5c8['has'](_0x134466)?_0x599ab7=_0x12c5c8[_0x492fdd(0x1d3)](_0x134466):(_0x599ab7=new _0x47ff72(),_0x12c5c8[_0x492fdd(0x18f)](_0x134466,_0x599ab7),_0x599ab7[_0x492fdd(0x202)](_0x61e5a1((_0x5a3e89=this[_0x492fdd(0x192)][_0x492fdd(0x1cd)](Pe))!=null?_0x5a3e89:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x492fdd(0x188)](_0x5298c0=>{var _0x4d3bfc=_0x492fdd;this['_collabSession'][_0x4d3bfc(0x1bc)]({'eventID':_0x18ecaa[_0x4d3bfc(0x200)],'data':{'unitID':this[_0x4d3bfc(0x178)],'operations':{[_0x5298c0['id']]:{'id':_0x5298c0['id'],'params':JSON[_0x4d3bfc(0x198)](_0x5298c0['params'])}}}},this[_0x4d3bfc(0x178)]);})),_0x599ab7[_0x492fdd(0x1c0)](_0x1522fa);})),this[_0x110739(0x193)][_0x110739(0x1a1)](this['_unitID'])[_0x110739(0x1f9)](_0x260bff=>this[_0x110739(0x1d0)][_0x110739(0x1bc)]({'eventID':_0x18ecaa['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x110739(0x178)],'operations':{[_0x260bff['id']]:{'id':_0x260bff['id'],'params':JSON[_0x110739(0x198)](_0x260bff[_0x110739(0x1ec)])}}}},this[_0x110739(0x178)]));}['_stopPresenting'](){var _0x34547e=_0x36f681,_0x2081dd;this['_status$'][_0x34547e(0x1c0)](_0x34547e(0x210)),(_0x2081dd=this['_commandDisposable'])==null||_0x2081dd[_0x34547e(0x20d)](),this[_0x34547e(0x1c8)]=null;}[_0x36f681(0x191)](){var _0x438582=_0x36f681,_0x38378e;(_0x38378e=this['_commandDisposable'])==null||_0x38378e[_0x438582(0x20d)](),this[_0x438582(0x1c4)][_0x438582(0x1c0)](_0x438582(0x17b));}[_0x36f681(0x20f)](){var _0x32684c=_0x36f681,_0x595bde;this[_0x32684c(0x1c4)][_0x32684c(0x1c0)]('idle'),(_0x595bde=this[_0x32684c(0x1c8)])==null||_0x595bde[_0x32684c(0x20d)](),this[_0x32684c(0x1c8)]=null;}[_0x36f681(0x199)](){var _0x52f7a5=_0x36f681,_0x3d317;this['_status$'][_0x52f7a5(0x1c0)]('not-following'),(_0x3d317=this['_commandDisposable'])==null||_0x3d317[_0x52f7a5(0x20d)]();}[_0x36f681(0x1e5)](_0x35b246){var _0x4f391f=_0x36f681;if([_0x4f391f(0x1b9),_0x4f391f(0x213),_0x4f391f(0x1ed)]['includes'](this[_0x4f391f(0x1eb)])||!_0x35b246[_0x4f391f(0x18a)][_0x4f391f(0x18e)]||_0x35b246['data'][_0x4f391f(0x18e)]===this[_0x4f391f(0x1d0)][_0x4f391f(0x1f6)]())return;this[_0x4f391f(0x1eb)]==='idle'&&this[_0x4f391f(0x191)]();const _0x3de8f8=_0x35b246[_0x4f391f(0x18a)][_0x4f391f(0x20e)];Object['values'](_0x3de8f8)[_0x4f391f(0x1f9)](_0x4b85ed=>{var _0x2916fc=_0x4f391f;this[_0x2916fc(0x1cc)]['executeCommand'](_0x4b85ed['id'],_0x4b85ed['params']?JSON[_0x2916fc(0x190)](_0x4b85ed['params']):null,{'fromCollab':!0x0});});}[_0x36f681(0x189)](){var _0x435422=_0x36f681,_0x32ff24;this[_0x435422(0x1c4)][_0x435422(0x1c0)](_0x435422(0x1ed)),(_0x32ff24=this['_commandDisposable'])==null||_0x32ff24[_0x435422(0x20d)]();}[_0x36f681(0x1de)](){var _0x221d05=_0x36f681;this[_0x221d05(0x1c4)][_0x221d05(0x1c0)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x177af0),f(0x3,_0x2471b9(L)),f(0x4,_0x390976)],C);function Te(){var _0x14b018=_0x36f681;const _0x196366=_0x5edaac(I),_0x4a913e=_0x5edaac(_0x369fcc),_0x318ead=_0x219c95(()=>_0x4a913e[_0x14b018(0x201)](_0x29b044['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1c10d6,_0x815b5f]=_0x569d59(null),[_0x41de7d,_0x44e899]=_0x569d59(h[_0x14b018(0x21b)]),_0x18fea9=_0x251313(null);return _0x173568(()=>(_0x318ead&&_0x196366[_0x14b018(0x1b7)](_0x318ead[_0x14b018(0x17a)]())[_0x14b018(0x180)](_0x46bbc2=>{var _0x3a900a=_0x14b018;_0x815b5f(_0x46bbc2),_0x18fea9[_0x3a900a(0x1b3)]=_0x46bbc2[_0x3a900a(0x187)][_0x3a900a(0x188)](_0x29521a=>{_0x44e899(_0x29521a);});}),()=>{var _0x8dc898=_0x14b018,_0x4b30c3;(_0x4b30c3=_0x18fea9['current'])==null||_0x4b30c3[_0x8dc898(0x18b)](),_0x18fea9['current']=null;}),[_0x318ead,_0x196366]),_0x1c10d6?_0x36145d(_0x4d6833,{'align':_0x14b018(0x182),'disabled':_0x41de7d===h[_0x14b018(0x20a)],'className':_0x14b018(0x1c2),'overlay':_0x36145d($e,{'status':_0x41de7d,'coordinator':_0x1c10d6}),'children':_0x36145d(_0x14b018(0x1b4),{'className':_0x345b91('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x41de7d===h[_0x14b018(0x20a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x41de7d!==h[_0x14b018(0x20a)]}),'type':_0x14b018(0x1b4),'children':_0x36145d(B,{'className':'univer-size-4'})})}):null;}function $e(_0x3c98b9){var _0x26aba9=_0x36f681;const {status:_0x311b04,coordinator:_0x22e24c}=_0x3c98b9;switch(_0x311b04){case h[_0x26aba9(0x21b)]:return _0x36145d(Fe,{'coordinator':_0x22e24c});case h[_0x26aba9(0x1e7)]:return _0x36145d(He,{'coordinator':_0x22e24c});case h[_0x26aba9(0x1d8)]:return _0x36145d(je,{'coordinator':_0x22e24c});case h[_0x26aba9(0x20a)]:return _0x36145d(Ve,{});case h['PRESENTING']:return _0x36145d(Ue,{'coordinator':_0x22e24c});default:return null;}}function Fe(_0x285b92){var _0x4fba19=_0x36f681;const {coordinator:_0x330a02}=_0x285b92;return _0x4e0c68(_0x37245c,{'children':[_0x36145d(_0x4fba19(0x1ad),{'className':_0x4fba19(0x209),'children':'Present\x20this\x20document'}),_0x36145d(_0x52e609,{'onClick':()=>_0x330a02[_0x4fba19(0x1fa)](),'children':'Start'})]});}function He(_0x4a460e){var _0x225627=_0x36f681;const {coordinator:_0x1737a5}=_0x4a460e;return _0x4e0c68(_0x37245c,{'children':[_0x36145d('div',{'className':_0x225627(0x209),'children':_0x225627(0x183)}),_0x36145d(_0x52e609,{'onClick':()=>_0x1737a5[_0x225627(0x1fe)](),'children':'Stop\x20following'})]});}function je(_0x1870dc){var _0x23e770=_0x36f681;const {coordinator:_0x6390a1}=_0x1870dc;return _0x4e0c68(_0x37245c,{'children':[_0x36145d(_0x23e770(0x1ad),{'className':_0x23e770(0x209),'children':_0x23e770(0x1bd)}),_0x36145d(_0x52e609,{'variant':_0x23e770(0x1b6),'onClick':()=>_0x6390a1['startFollowing'](),'children':_0x23e770(0x1e1)})]});}function Ue(_0xdf902a){var _0x477aa0=_0x36f681;const {coordinator:_0xbd6968}=_0xdf902a;return _0x4e0c68(_0x37245c,{'children':[_0x36145d(_0x477aa0(0x1ad),{'className':_0x477aa0(0x209),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x36145d(_0x52e609,{'variant':'default','onClick':()=>_0xbd6968['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x25caba=_0x36f681;return _0x36145d(_0x37245c,{'children':_0x25caba(0x1dc)});}var Me=Object[_0x36f681(0x217)],ke=(_0x506371,_0xb98d2,_0x260cde,_0x2538bc)=>{for(var _0x7905a8=_0x2538bc>0x1?void 0x0:_0x2538bc?Me(_0xb98d2,_0x260cde):_0xb98d2,_0x3ffc60=_0x506371['length']-0x1,_0x4c99d0;_0x3ffc60>=0x0;_0x3ffc60--)(_0x4c99d0=_0x506371[_0x3ffc60])&&(_0x7905a8=_0x4c99d0(_0x7905a8)||_0x7905a8);return _0x7905a8;},$=(_0x522098,_0x44d5d7)=>(_0x5411a8,_0x3da77b)=>_0x44d5d7(_0x5411a8,_0x3da77b,_0x522098);let b=class extends _0x1b9b72{constructor(_0x5308ad,_0x3000d9){var _0x4bbe50=_0x36f681;super(),this['_injector']=_0x5308ad,this['_uiPartsService']=_0x3000d9,this[_0x4bbe50(0x172)]();}[_0x36f681(0x172)](){var _0x1a5a8c=_0x36f681;this[_0x1a5a8c(0x1a5)](this['_uiPartsService'][_0x1a5a8c(0x1ea)](_0x1eb411[_0x1a5a8c(0x1ab)],()=>_0x424e91(Te,this[_0x1a5a8c(0x1d9)])));}};b=ke([$(0x0,_0x2471b9(_0x1fff4e)),$(0x1,_0x2dedba)],b);var Ge=Object[_0x36f681(0x19f)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x1c29af,_0x2370ab,_0x4e53f6)=>_0x2370ab in _0x1c29af?Ge(_0x1c29af,_0x2370ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e53f6}):_0x1c29af[_0x2370ab]=_0x4e53f6,Be=(_0x1cb8fe,_0x5a0f02,_0x321f17,_0x38d04e)=>{var _0x32ed12=_0x36f681;for(var _0xc91ee4=_0x38d04e>0x1?void 0x0:_0x38d04e?We(_0x5a0f02,_0x321f17):_0x5a0f02,_0x16c8c0=_0x1cb8fe[_0x32ed12(0x1e3)]-0x1,_0x48a408;_0x16c8c0>=0x0;_0x16c8c0--)(_0x48a408=_0x1cb8fe[_0x16c8c0])&&(_0xc91ee4=_0x48a408(_0xc91ee4)||_0xc91ee4);return _0xc91ee4;},F=(_0x85f717,_0x330f0b)=>(_0x3d61bf,_0xd9e91b)=>_0x330f0b(_0x3d61bf,_0xd9e91b,_0x85f717),J=(_0x2c8589,_0x2122fc,_0xed60c)=>Ye(_0x2c8589,typeof _0x2122fc!=_0x36f681(0x19d)?_0x2122fc+'':_0x2122fc,_0xed60c);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x45d0b9{constructor(_0x19cc28=T,_0x1d477a,_0x57c76a){var _0x508448=_0x36f681;super(),this[_0x508448(0x1e4)]=_0x19cc28,this['_injector']=_0x1d477a,this[_0x508448(0x192)]=_0x57c76a;const {..._0x121fe8}=_0x217915({},T,this[_0x508448(0x1e4)]);this[_0x508448(0x192)]['setConfig'](Oe,_0x121fe8);}[_0x36f681(0x1db)](){var _0x227760=_0x36f681;_0x5b4604(this['_injector'],_0x3ed2f6([[L],[I],[m],[b]],this[_0x227760(0x1e4)]['override'])),_0x131646(this['_injector'],[[m]]);}[_0x36f681(0x1c3)](){var _0xaced68=_0x36f681;_0x131646(this[_0xaced68(0x1d9)],[[b]]);}};function _0x1118(_0x311923,_0x33f539){var _0x112254=_0x1122();return _0x1118=function(_0x1118dd,_0xefd13e){_0x1118dd=_0x1118dd-0x172;var _0x3191ea=_0x112254[_0x1118dd];return _0x3191ea;},_0x1118(_0x311923,_0x33f539);}J(O,'type',_0x29b044['UNIVER_UNKNOWN']),J(O,'pluginName',Ze),O=Be([_0x203d04(_0x1202e1),F(0x1,_0x2471b9(_0x1fff4e)),F(0x2,_0x177af0)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2f90(){var _0x4fe6b8=['getTypeOfUnitDisposed$','colorChannel1','subscribe','LiveShareService','useDependency','2513690yFqVwT','executeCommand','Stop\x20presenting','tag','substring','clear','_fetchOperations','mask','Start','_unitID','fill','_entities','pipe','_mountLiveShare','LIVESHARE_NEW_HOST','xlink:href','Stop\x20following','displayName','then','symbol','prototype','UniverDesign','_beIdle','_uiPartsService','UNIVER_SHEET','289902ATYYkg','SetWorksheetActiveOperation','path','values','SessionStatus','delete','random','jsxs','InsertSheetMutation','getLiveShareCoordinator','rxjs/operators','HEADER_MENU','defs','1322690DLVyDw','defIds','LIVESHARE_OPERATION','takeUntil','1Gqqktm','_presenter','_status','_commandDisposable','Plugin','Subject','string','get','41095680NOLSzT','ONLINE','set','_handleOffline','DependentOn','_sharedOperations','toDisposable','object','SetScrollOperation','627077XONoXt','Module','pluginName','getConfig','RxDisposable','dispose$','NOT_FOLLOWING','UniverSheetsUi','UniverInstanceType','concat','asObservable','react','_startLiveShareCoordinator','shouldShareOperation','LIVESHARE_TERMINATE','9218111MdVZhZ','disposeWithMe','complete','jsx','useState','override','Injector','offline','Button','univer-size-4','default','children','registerDependencies','1em','mergeOverrideWithDependencies','getTypeOfUnitAdded$','@univerjs/sheets','ICommandService','div','_handleNewChangeSets','merge','amd','LiveShareCoordinator','send','IUniverInstanceService','CommandType','CollaborationSessionService','throttleTime','parseProtocolChangeset','_config','FOLLOWING','_injector','@univerjs/sheets-ui','_handleNewHost','@univerjs/design','getInitialStates','_reporters','getOwnPropertySymbols','map','UniverCollaborationClientPlugin','UniverUi','SAME_OPERATION_SHARE_INTERVAL','mutations','You\x27re\x20not\x20following\x20the\x20presenter','icon','getValue','button','status$','BehaviorSubject','evenodd','getOwnPropertyDescriptor','_startFollowing','@univerjs-pro/collaboration-client','_collabSessionService','presenting','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','stopPresenting','requireSession','entries','_configService','registerSharedOperation','idSuffix','not-following','parse','BuiltInUIPart','function','toString','getUnitId','includes','defineProperty','attrs','LiveShareStatus','UniverProLiveShare','find','url(#$1','Present\x20this\x20document','assign','You\x27re\x20following\x20the\x20presenter','following','text','connectInjector','className','2604951kKqIQv','propertyIsEnumerable','UNIVER_LIVE_SHARE_PLUGIN','presenter','_startPresenting','length','@univerjs-pro/collaboration','call','indexOf','You\x27are\x20offline.','_status$','LiveShareController','replace','6WPQDHK','React','exports','_commandService','8MSmobp','_handleOnline','none','getMemberID','@univerjs/ui','_stopFollowing','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','PRESENTING','touchDependencies','IDLE','init','use','_handleTerminate','_univerInstanceService','sessionStatus$','unitId','params','dispose','_collabSession','operators','extend','UniverLiveSharePlugin','CollaborationEvent','OFFLINE','toStringTag','idle','forwardRef','190dyliyn','startFollowing','useRef','UniverProCollaboration','You\x27re\x20presenting\x20the\x20document','_handleOperation','operations','onCommandExecuted','has','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Disposable','next','60UmZRbA','http://www.w3.org/2000/svg','LIVESHARE_REQUEST_HOST','sheet','Fragment','type','onRendered','Inject','reverse','current','getCurrentTypeOfUnit$','NEW_CHANGESETS','DisposableCollection','live-share-icon','IConfigService','stringify','tryStartPresenting','_init','hasOwnProperty','SetZoomRatioOperation','_liveShareService','forEach','Dropdown','LiveShareIcon','univer-mb-3\x20univer-w-full\x20univer-text-sm','DesktopLiveShareController','rxjs','createElement','apply','data','LiveShare','@univerjs/core','add'];_0x2f90=function(){return _0x4fe6b8;};return _0x2f90();}function _0x456e(_0x50166f,_0x327746){var _0x2f9022=_0x2f90();return _0x456e=function(_0x456ed8,_0x2d15cd){_0x456ed8=_0x456ed8-0x78;var _0x466def=_0x2f9022[_0x456ed8];return _0x466def;},_0x456e(_0x50166f,_0x327746);}(function(_0x1d458f,_0x1d340c){var _0x1e6379=_0x456e,_0xe18040=_0x1d458f();while(!![]){try{var _0x57df01=-parseInt(_0x1e6379(0xf7))/0x1*(-parseInt(_0x1e6379(0xf3))/0x2)+-parseInt(_0x1e6379(0xe6))/0x3*(-parseInt(_0x1e6379(0xa7))/0x4)+-parseInt(_0x1e6379(0xcd))/0x5+-parseInt(_0x1e6379(0x7c))/0x6*(-parseInt(_0x1e6379(0x117))/0x7)+parseInt(_0x1e6379(0x80))/0x8*(parseInt(_0x1e6379(0x169))/0x9)+parseInt(_0x1e6379(0x9b))/0xa*(parseInt(_0x1e6379(0x108))/0xb)+-parseInt(_0x1e6379(0xff))/0xc;if(_0x57df01===_0x1d340c)break;else _0xe18040['push'](_0xe18040['shift']());}catch(_0x93b09e){_0xe18040['push'](_0xe18040['shift']());}}}(_0x2f90,0xd51da),function(_0x59bd64,_0x397a14){var _0x1ce02b=_0x456e;typeof exports==_0x1ce02b(0x106)&&typeof module<'u'?_0x397a14(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x1ce02b(0x158)&&define[_0x1ce02b(0x12c)]?define([_0x1ce02b(0x7e),_0x1ce02b(0x14b),_0x1ce02b(0xc6),_0x1ce02b(0x127),_0x1ce02b(0x137),_0x1ce02b(0x84),'react/jsx-runtime',_0x1ce02b(0x139),_0x1ce02b(0x113),_0x1ce02b(0x16f),_0x1ce02b(0xc1),_0x1ce02b(0xf0)],_0x397a14):(_0x59bd64=typeof globalThis<'u'?globalThis:_0x59bd64||self,_0x397a14(_0x59bd64[_0x1ce02b(0x15f)]={},_0x59bd64['UniverProCollaborationClient'],_0x59bd64['UniverCore'],_0x59bd64['UniverSheets'],_0x59bd64[_0x1ce02b(0x10f)],_0x59bd64[_0x1ce02b(0x13f)],_0x59bd64[_0x1ce02b(0x7d)],_0x59bd64[_0x1ce02b(0xe2)],_0x59bd64['React'],_0x59bd64[_0x1ce02b(0x9e)],_0x59bd64['rxjs'],_0x59bd64[_0x1ce02b(0xc1)][_0x1ce02b(0x93)]));}(this,function(_0x2a564b,_0x3b8a01,_0x124f6c,_0x33d092,_0x4c1b78,_0x2ce986,_0x2d43d4,_0x362667,_0x4bcd29,_0x40cd7e,_0x1a90a6,_0x503d9b){'use strict';var _0x294d44=_0x456e;var _0x3f544c=Object[_0x294d44(0x15c)],_0x4a6813=(_0x39376c,_0x271401,_0x2a340f)=>_0x271401 in _0x39376c?_0x3f544c(_0x39376c,_0x271401,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a340f}):_0x39376c[_0x271401]=_0x2a340f,_0x2d068e=(_0x21a04f,_0x4b552e,_0x5958c8)=>_0x4a6813(_0x21a04f,typeof _0x4b552e!=_0x294d44(0xe0)?_0x4b552e+'':_0x4b552e,_0x5958c8);const _0x17ea76='live-share.config',_0x5f3aac={};class _0x5d6197 extends _0x124f6c[_0x294d44(0xa5)]{constructor(){var _0x3c2f86=_0x294d44;super(...arguments),_0x2d068e(this,_0x3c2f86(0x104),new Set()),_0x2d068e(this,_0x3c2f86(0x13b),new Set());}[_0x294d44(0x153)](_0x384a1f){var _0x3103a4=_0x294d44;return this[_0x3103a4(0x104)]['add'](_0x384a1f),_0x124f6c[_0x3103a4(0x105)](()=>this['_sharedOperations']['delete'](_0x384a1f));}['registerInitialStateReporter'](_0x45c331){var _0x345400=_0x294d44;return this[_0x345400(0x13b)]['add'](_0x45c331),_0x124f6c[_0x345400(0x105)](()=>this['_reporters'][_0x345400(0xeb)](_0x45c331));}[_0x294d44(0x115)](_0x1dbd08){var _0x42391f=_0x294d44;return this[_0x42391f(0x104)][_0x42391f(0xa3)](_0x1dbd08);}[_0x294d44(0x13a)](_0x390994){var _0x39a88c=_0x294d44;return Array['from'](this[_0x39a88c(0x13b)])[_0x39a88c(0x13d)](_0x4a0952=>_0x4a0952(_0x390994));}}var _0x500624=Object[_0x294d44(0x149)],_0x27ee54=(_0x40546a,_0x4401a8,_0x43d538,_0x11e20e)=>{var _0x35ef9c=_0x294d44;for(var _0x1a367a=_0x11e20e>0x1?void 0x0:_0x11e20e?_0x500624(_0x4401a8,_0x43d538):_0x4401a8,_0x51f2a9=_0x40546a[_0x35ef9c(0x16e)]-0x1,_0x38df6c;_0x51f2a9>=0x0;_0x51f2a9--)(_0x38df6c=_0x40546a[_0x51f2a9])&&(_0x1a367a=_0x38df6c(_0x1a367a)||_0x1a367a);return _0x1a367a;},_0x4d59a9=(_0xc03138,_0x5b0979)=>(_0x1db996,_0x5ea897)=>_0x5b0979(_0x1db996,_0x5ea897,_0xc03138);let _0xfb2f06=class extends _0x124f6c['Disposable']{constructor(_0x293759){var _0x4d0dd4=_0x294d44;super(),this[_0x4d0dd4(0xbb)]=_0x293759,this['_init']();}[_0x294d44(0xb8)](){var _0x15ae52=_0x294d44;[_0x4c1b78[_0x15ae52(0xba)]['id'],_0x4c1b78[_0x15ae52(0x107)]['id'],_0x33d092[_0x15ae52(0xe7)]['id']][_0x15ae52(0xbc)](_0x3db77b=>{var _0x207ac1=_0x15ae52;this['disposeWithMe'](this[_0x207ac1(0xbb)]['registerSharedOperation'](_0x3db77b));});}};_0xfb2f06=_0x27ee54([_0x4d59a9(0x0,_0x124f6c[_0x294d44(0xae)](_0x5d6197))],_0xfb2f06);var _0x4bb8bd=function(){var _0x488c8e=_0x294d44;return _0x4bb8bd=Object[_0x488c8e(0x163)]||function(_0x25041b){var _0x22f088=_0x488c8e;for(var _0x51105b,_0x428b62=0x1,_0xccd41=arguments[_0x22f088(0x16e)];_0x428b62<_0xccd41;_0x428b62++){_0x51105b=arguments[_0x428b62];for(var _0x4969aa in _0x51105b)Object[_0x22f088(0xe1)][_0x22f088(0xb9)][_0x22f088(0x170)](_0x51105b,_0x4969aa)&&(_0x25041b[_0x4969aa]=_0x51105b[_0x4969aa]);}return _0x25041b;},_0x4bb8bd[_0x488c8e(0xc3)](this,arguments);},_0x33cc77=function(_0x5c9d6b,_0x433ec0){var _0x2c4476=_0x294d44,_0x418aa9={};for(var _0x397f05 in _0x5c9d6b)Object['prototype'][_0x2c4476(0xb9)][_0x2c4476(0x170)](_0x5c9d6b,_0x397f05)&&_0x433ec0[_0x2c4476(0x171)](_0x397f05)<0x0&&(_0x418aa9[_0x397f05]=_0x5c9d6b[_0x397f05]);if(_0x5c9d6b!=null&&typeof Object[_0x2c4476(0x13c)]=='function'){for(var _0x38eed2=0x0,_0x397f05=Object[_0x2c4476(0x13c)](_0x5c9d6b);_0x38eed2<_0x397f05[_0x2c4476(0x16e)];_0x38eed2++)_0x433ec0['indexOf'](_0x397f05[_0x38eed2])<0x0&&Object[_0x2c4476(0xe1)][_0x2c4476(0x16a)]['call'](_0x5c9d6b,_0x397f05[_0x38eed2])&&(_0x418aa9[_0x397f05[_0x38eed2]]=_0x5c9d6b[_0x397f05[_0x38eed2]]);}return _0x418aa9;},_0x55e63b=_0x4bcd29[_0x294d44(0x9a)](function(_0x241a9f,_0x4a60d2){var _0x1a8fa4=_0x294d44,_0x36d0d9=_0x241a9f[_0x1a8fa4(0x143)],_0x14fcba=_0x241a9f['id'],_0x2ae43d=_0x241a9f[_0x1a8fa4(0x168)],_0x238ed2=_0x241a9f[_0x1a8fa4(0x94)],_0x46b838=_0x33cc77(_0x241a9f,[_0x1a8fa4(0x143),'id',_0x1a8fa4(0x168),_0x1a8fa4(0x94)]),_0x37c50f='univerjs-icon\x20univerjs-icon-'[_0x1a8fa4(0x111)](_0x14fcba,'\x20')[_0x1a8fa4(0x111)](_0x2ae43d||'')['trim'](),_0x3ef96e=_0x4bcd29[_0x1a8fa4(0x9d)]('_'[_0x1a8fa4(0x111)](_0x3f1b6c()));return _0x568ec3(_0x36d0d9,''['concat'](_0x14fcba),{'defIds':_0x36d0d9[_0x1a8fa4(0xf4)],'idSuffix':_0x3ef96e[_0x1a8fa4(0xb0)]},_0x4bb8bd({'ref':_0x4a60d2,'className':_0x37c50f},_0x46b838),_0x238ed2);});function _0x568ec3(_0x4aa435,_0x25a708,_0x416cce,_0x4554ff,_0x356db7){var _0xe141f9=_0x294d44;return _0x4bcd29[_0xe141f9(0xc2)](_0x4aa435['tag'],_0x4bb8bd(_0x4bb8bd({'key':_0x25a708},_0x59f72f(_0x4aa435,_0x416cce,_0x356db7)),_0x4554ff),(_0x56d7af(_0x4aa435,_0x416cce)[_0xe141f9(0x122)]||[])[_0xe141f9(0x13d)](function(_0x2fb436,_0x1e2465){var _0x468b01=_0xe141f9;return _0x568ec3(_0x2fb436,''[_0x468b01(0x111)](_0x25a708,'-')[_0x468b01(0x111)](_0x4aa435[_0x468b01(0xd0)],'-')['concat'](_0x1e2465),_0x416cce,void 0x0,_0x356db7);}));}function _0x59f72f(_0x59b2fe,_0x230565,_0xb99da4){var _0x1c0570=_0x294d44,_0x4c1e3=_0x4bb8bd({},_0x59b2fe[_0x1c0570(0x15d)]);_0xb99da4!=null&&_0xb99da4[_0x1c0570(0xc9)]&&_0x4c1e3[_0x1c0570(0xd7)]===_0x1c0570(0xc9)&&(_0x4c1e3[_0x1c0570(0xd7)]=_0xb99da4[_0x1c0570(0xc9)]),_0x59b2fe[_0x1c0570(0xd0)]==='mask'&&_0x4c1e3['id']&&(_0x4c1e3['id']=_0x4c1e3['id']+_0x230565['idSuffix']),Object[_0x1c0570(0x151)](_0x4c1e3)[_0x1c0570(0xbc)](function(_0x10a292){var _0x419a70=_0x1c0570,_0x3e81c1=_0x10a292[0x0],_0x3278cd=_0x10a292[0x1];_0x3e81c1===_0x419a70(0xd4)&&typeof _0x3278cd=='string'&&(_0x4c1e3[_0x3e81c1]=_0x3278cd[_0x419a70(0x7b)](/url\(#(.*)\)/,_0x419a70(0x161)[_0x419a70(0x111)](_0x230565[_0x419a70(0x154)],')')));});var _0x195cae=_0x230565[_0x1c0570(0xf4)];return!_0x195cae||_0x195cae['length']===0x0||(_0x59b2fe[_0x1c0570(0xd0)]===_0x1c0570(0x8b)&&_0x4c1e3[_0x1c0570(0xdc)]&&(_0x4c1e3['xlink:href']=_0x4c1e3['xlink:href']+_0x230565[_0x1c0570(0x154)]),Object[_0x1c0570(0x151)](_0x4c1e3)[_0x1c0570(0xbc)](function(_0x2494f1){var _0x11b146=_0x1c0570,_0x474f3c=_0x2494f1[0x0],_0x280fb0=_0x2494f1[0x1];typeof _0x280fb0==_0x11b146(0xfd)&&(_0x4c1e3[_0x474f3c]=_0x280fb0[_0x11b146(0x7b)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x230565['idSuffix'],')')));})),_0x4c1e3;}function _0x56d7af(_0x4d6b2e,_0x5a888b){var _0x466711=_0x294d44,_0x5e8a1b,_0x5b3bda=_0x5a888b[_0x466711(0xf4)];return!_0x5b3bda||_0x5b3bda['length']===0x0?_0x4d6b2e:_0x4d6b2e[_0x466711(0xd0)]===_0x466711(0xf2)&&(!((_0x5e8a1b=_0x4d6b2e[_0x466711(0x122)])===null||_0x5e8a1b===void 0x0)&&_0x5e8a1b[_0x466711(0x16e)])?_0x4bb8bd(_0x4bb8bd({},_0x4d6b2e),{'children':_0x4d6b2e[_0x466711(0x122)]['map'](function(_0x4905dd){var _0x355b4b=_0x466711;return typeof _0x4905dd[_0x355b4b(0x15d)]['id']==_0x355b4b(0xfd)&&_0x5b3bda&&_0x5b3bda[_0x355b4b(0x15b)](_0x4905dd[_0x355b4b(0x15d)]['id'])?_0x4bb8bd(_0x4bb8bd({},_0x4905dd),{'attrs':_0x4bb8bd(_0x4bb8bd({},_0x4905dd[_0x355b4b(0x15d)]),{'id':_0x4905dd[_0x355b4b(0x15d)]['id']+_0x5a888b[_0x355b4b(0x154)]})}):_0x4905dd;})}):_0x4d6b2e;}function _0x3f1b6c(){var _0xb58ef8=_0x294d44;return Math[_0xb58ef8(0xec)]()[_0xb58ef8(0x159)](0x24)[_0xb58ef8(0xd1)](0x2,0x8);}_0x55e63b[_0x294d44(0xde)]='UniverIcon';var _0x5075d9={'tag':'svg','attrs':{'xmlns':_0x294d44(0xa8),'fill':_0x294d44(0x82),'viewBox':'0\x200\x2017\x2017','width':_0x294d44(0x124),'height':'1em'},'children':[{'tag':_0x294d44(0xe8),'attrs':{'fill':'currentColor','d':_0x294d44(0x86)}},{'tag':_0x294d44(0xe8),'attrs':{'fill':'currentColor','d':_0x294d44(0x14e),'fillRule':_0x294d44(0x148),'clipRule':'evenodd'}}]},_0x4ac1ec=_0x4bcd29[_0x294d44(0x9a)](function(_0x100cff,_0x186586){var _0x19500b=_0x294d44;return _0x4bcd29[_0x19500b(0xc2)](_0x55e63b,Object[_0x19500b(0x163)]({},_0x100cff,{'id':_0x19500b(0xb4),'ref':_0x186586,'icon':_0x5075d9}));});_0x4ac1ec['displayName']=_0x294d44(0xbe);var _0x3abf69=Object[_0x294d44(0x149)],_0xc3a3a6=(_0x109116,_0x4ac29b,_0x410019,_0x53d0c6)=>{var _0x45b7f1=_0x294d44;for(var _0x2cb405=_0x53d0c6>0x1?void 0x0:_0x53d0c6?_0x3abf69(_0x4ac29b,_0x410019):_0x4ac29b,_0x36a875=_0x109116[_0x45b7f1(0x16e)]-0x1,_0x54d22c;_0x36a875>=0x0;_0x36a875--)(_0x54d22c=_0x109116[_0x36a875])&&(_0x2cb405=_0x54d22c(_0x2cb405)||_0x2cb405);return _0x2cb405;},_0x2efd7a=(_0x3e1738,_0x30f8ab)=>(_0x12aea7,_0x4463a5)=>_0x30f8ab(_0x12aea7,_0x4463a5,_0x3e1738);_0x2a564b[_0x294d44(0x7a)]=class extends _0x124f6c[_0x294d44(0x10c)]{constructor(_0x571c16,_0x36bbda,_0x1a1875){var _0x132103=_0x294d44;super(),_0x2d068e(this,_0x132103(0xd8),new Map()),(this[_0x132103(0x8d)]=_0x571c16,this[_0x132103(0x136)]=_0x36bbda,this['_collabSessionService']=_0x1a1875,this[_0x132103(0xb8)]());}async[_0x294d44(0xef)](_0x380535){var _0x470f90=_0x294d44;return this[_0x470f90(0xd8)][_0x470f90(0xa3)](_0x380535)||await this['_startLiveShareCoordinator'](_0x380535),this[_0x470f90(0xd8)]['get'](_0x380535);}[_0x294d44(0xb8)](){var _0x854a18=_0x294d44;this[_0x854a18(0x8d)][_0x854a18(0x126)](_0x124f6c[_0x854a18(0x110)]['UNIVER_SHEET'])[_0x854a18(0xd9)](_0x503d9b[_0x854a18(0xf6)](this[_0x854a18(0x10d)]))[_0x854a18(0xca)](async _0x41c5cc=>{var _0x35582f=_0x854a18;const _0x161bd2=_0x41c5cc['getUnitId']();this[_0x35582f(0xd8)]['has'](_0x161bd2)||this['_startLiveShareCoordinator'](_0x161bd2);}),this['_univerInstanceService'][_0x854a18(0xc8)](_0x124f6c[_0x854a18(0x110)][_0x854a18(0xe5)])[_0x854a18(0xd9)](_0x503d9b[_0x854a18(0xf6)](this['dispose$']))[_0x854a18(0xca)](_0x59a123=>{var _0x1ec708=_0x854a18;const _0x9f2c85=_0x59a123['getUnitId'](),_0x46e8f6=this[_0x1ec708(0xd8)][_0x1ec708(0xfe)](_0x9f2c85);_0x46e8f6==null||_0x46e8f6[_0x1ec708(0x91)]();});}async[_0x294d44(0x114)](_0x25b3f8){var _0x41ed5e=_0x294d44;const _0x39e57d=await this[_0x41ed5e(0x14c)][_0x41ed5e(0x150)](_0x25b3f8),_0x26c006=this[_0x41ed5e(0x136)]['createInstance'](_0x2a564b[_0x41ed5e(0x12d)],_0x25b3f8,_0x39e57d);return _0x26c006[_0x41ed5e(0x8a)](),this[_0x41ed5e(0xd8)][_0x41ed5e(0x101)](_0x25b3f8,_0x26c006),_0x26c006;}},_0x2a564b[_0x294d44(0x7a)]=_0xc3a3a6([_0x2efd7a(0x0,_0x124f6c['IUniverInstanceService']),_0x2efd7a(0x1,_0x124f6c['Inject'](_0x124f6c['Injector'])),_0x2efd7a(0x2,_0x124f6c[_0x294d44(0xae)](_0x3b8a01[_0x294d44(0x131)]))],_0x2a564b[_0x294d44(0x7a)]);var _0x261c93=(_0x2c4b43=>(_0x2c4b43[_0x294d44(0x97)]=_0x294d44(0x11e),_0x2c4b43[_0x294d44(0x89)]=_0x294d44(0x99),_0x2c4b43[_0x294d44(0x135)]=_0x294d44(0x165),_0x2c4b43[_0x294d44(0x10e)]=_0x294d44(0x155),_0x2c4b43[_0x294d44(0x87)]=_0x294d44(0x14d),_0x2c4b43))(_0x261c93||{});const _0x1b94c0=_0x294d44(0x140),_0x8d8f74=0xc8;_0x2a564b['LiveShareCoordinator']=class extends _0x124f6c[_0x294d44(0x10c)]{constructor(_0xd530d2,_0x13d0a0,_0x1a1cce,_0x9173fd,_0x4e7c0b){var _0x1d9adb=_0x294d44;super(),_0x2d068e(this,_0x1d9adb(0x79),new _0x1a90a6[(_0x1d9adb(0x147))](_0x1d9adb(0x99))),_0x2d068e(this,_0x1d9adb(0x146),this[_0x1d9adb(0x79)][_0x1d9adb(0x112)]()),_0x2d068e(this,'_init',!0x1),_0x2d068e(this,_0x1d9adb(0xfa),null),_0x2d068e(this,_0x1d9adb(0xf8),null),(this['_unitID']=_0xd530d2,this[_0x1d9adb(0x92)]=_0x13d0a0,this[_0x1d9adb(0x152)]=_0x1a1cce,this[_0x1d9adb(0xbb)]=_0x9173fd,this[_0x1d9adb(0x7f)]=_0x4e7c0b);}get['_status'](){var _0x21077b=_0x294d44;return this[_0x21077b(0x79)][_0x21077b(0x144)]();}[_0x294d44(0x91)](){var _0x317d27=_0x294d44,_0x3a3443;(_0x3a3443=this[_0x317d27(0xfa)])==null||_0x3a3443[_0x317d27(0x91)](),this[_0x317d27(0x79)][_0x317d27(0xa6)](_0x317d27(0x99)),this['_status$'][_0x317d27(0x119)]();}['init'](){var _0x4dfa0c=_0x294d44;this[_0x4dfa0c(0xb8)]||(this['_init']=!0x0,this[_0x4dfa0c(0x92)][_0x4dfa0c(0x8e)][_0x4dfa0c(0xd9)](_0x503d9b[_0x4dfa0c(0xf6)](this[_0x4dfa0c(0x10d)]))[_0x4dfa0c(0xca)](_0x5f36b8=>{var _0x1e9ae5=_0x4dfa0c;switch(_0x5f36b8){case _0x3b8a01[_0x1e9ae5(0xea)][_0x1e9ae5(0x97)]:this[_0x1e9ae5(0x102)]();break;case _0x3b8a01['SessionStatus'][_0x1e9ae5(0x100)]:this[_0x1e9ae5(0x81)]();break;}}),this[_0x4dfa0c(0x92)]['event$']['pipe'](_0x503d9b[_0x4dfa0c(0xf6)](this['dispose$']))[_0x4dfa0c(0xca)](_0xaa837d=>{var _0x517b34=_0x4dfa0c;const {eventID:_0x5cf25f}=_0xaa837d;switch(_0x5cf25f){case _0x40cd7e[_0x517b34(0x96)][_0x517b34(0xdb)]:this['_handleNewHost'](_0xaa837d);break;case _0x40cd7e[_0x517b34(0x96)][_0x517b34(0xf5)]:this[_0x517b34(0xa0)](_0xaa837d);break;case _0x40cd7e[_0x517b34(0x96)][_0x517b34(0x116)]:this[_0x517b34(0x8c)]();break;case _0x40cd7e[_0x517b34(0x96)][_0x517b34(0xb2)]:this['_handleNewChangeSets'](_0xaa837d);break;}}));}[_0x294d44(0xb7)](){var _0x5a94c7=_0x294d44;this[_0x5a94c7(0x92)]['send']({'eventID':_0x40cd7e['CollaborationEvent'][_0x5a94c7(0xa9)],'data':{'unitID':this[_0x5a94c7(0xd6)],'userID':this[_0x5a94c7(0x92)][_0x5a94c7(0x83)]()}},this[_0x5a94c7(0xd6)]);}['stopPresenting'](){var _0x224534=_0x294d44;this['_status']===_0x224534(0x14d)&&(this[_0x224534(0x79)][_0x224534(0xa6)](_0x224534(0x99)),this[_0x224534(0x92)][_0x224534(0x12e)]({'eventID':_0x40cd7e['CollaborationEvent'][_0x224534(0x116)],'data':{'unitID':this[_0x224534(0xd6)]}},this[_0x224534(0xd6)]));}[_0x294d44(0x9c)](){var _0x38acc1=_0x294d44;this[_0x38acc1(0xf9)]==='not-following'&&(this['_status$']['next']('following'),this[_0x38acc1(0x14a)]());}['stopFollowing'](){var _0x1ce0a2=_0x294d44;this[_0x1ce0a2(0xf9)]===_0x1ce0a2(0x165)&&this[_0x1ce0a2(0x85)]();}[_0x294d44(0x138)](_0x448ed9){var _0x533ce6=_0x294d44;const {presenter:_0x2fad04}=_0x448ed9[_0x533ce6(0xc4)],_0x5af54a=this['_collabSession'][_0x533ce6(0x83)]();this[_0x533ce6(0xf8)]=_0x2fad04,_0x2fad04===_0x5af54a?(this[_0x533ce6(0x85)](),this[_0x533ce6(0x16d)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x533ce6(0x14a)]());}[_0x294d44(0xd3)](){var _0x3f6749=_0x294d44;const _0x3e07f0={'eventID':_0x40cd7e[_0x3f6749(0x96)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x3f6749(0x92)]['send'](_0x3e07f0,this['_unitID']);}[_0x294d44(0x8c)](){var _0x190e2a=_0x294d44;this[_0x190e2a(0xf8)]=null,this[_0x190e2a(0xf9)]!=='presenting'&&this[_0x190e2a(0xe3)]();}[_0x294d44(0x12a)](_0x4f180d){var _0x49af9c=_0x294d44;if(this[_0x49af9c(0xf9)]==='following'&&this[_0x49af9c(0xf8)]===_0x4f180d[_0x49af9c(0xc4)]['memberID']){const _0x50a48c=_0x40cd7e[_0x49af9c(0x133)](_0x4f180d['data'])[_0x49af9c(0x141)][_0x49af9c(0xaf)]()[_0x49af9c(0x160)](_0x16e7d6=>_0x16e7d6['id']===_0x33d092[_0x49af9c(0xee)]['id']);if(_0x50a48c){const _0x38c05a=_0x50a48c[_0x49af9c(0x90)][_0x49af9c(0x8f)],_0x4e62fd=_0x50a48c[_0x49af9c(0x90)][_0x49af9c(0xaa)]['id'];setTimeout(()=>{var _0x53add1=_0x49af9c;this[_0x53add1(0x7f)][_0x53add1(0xce)](_0x33d092[_0x53add1(0xe7)]['id'],{'unitId':_0x38c05a,'subUnitId':_0x4e62fd},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x376a54=_0x294d44;this[_0x376a54(0x79)]['next'](_0x376a54(0x14d));const _0x564050=new Map(),_0x2aea88=this[_0x376a54(0xfa)]=new _0x124f6c[(_0x376a54(0xb3))]();_0x2aea88[_0x376a54(0xc7)](_0x124f6c[_0x376a54(0x105)](()=>{var _0x502a1e=_0x376a54;_0x564050[_0x502a1e(0xbc)](_0x58f25f=>_0x58f25f[_0x502a1e(0x119)]()),_0x564050[_0x502a1e(0xd2)]();})),_0x2aea88[_0x376a54(0xc7)](this[_0x376a54(0x7f)][_0x376a54(0xa2)](_0x31cb02=>{var _0x2c7be7=_0x376a54,_0x57ebd2;if(_0x31cb02['type']!==_0x124f6c[_0x2c7be7(0x130)]['OPERATION']||!this[_0x2c7be7(0xbb)][_0x2c7be7(0x115)](_0x31cb02['id']))return;const {id:_0x548b30}=_0x31cb02;let _0x335b06;_0x564050[_0x2c7be7(0xa3)](_0x548b30)?_0x335b06=_0x564050['get'](_0x548b30):(_0x335b06=new _0x1a90a6[(_0x2c7be7(0xfc))](),_0x564050['set'](_0x548b30,_0x335b06),_0x335b06['pipe'](_0x503d9b[_0x2c7be7(0x132)]((_0x57ebd2=this[_0x2c7be7(0x152)][_0x2c7be7(0x10b)](_0x1b94c0))!=null?_0x57ebd2:_0x8d8f74,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c7be7(0xca)](_0x524a0b=>{var _0x2144fe=_0x2c7be7;this[_0x2144fe(0x92)]['send']({'eventID':_0x40cd7e['CollaborationEvent'][_0x2144fe(0xf5)],'data':{'unitID':this['_unitID'],'operations':{[_0x524a0b['id']]:{'id':_0x524a0b['id'],'params':JSON[_0x2144fe(0xb6)](_0x524a0b[_0x2144fe(0x90)])}}}},this['_unitID']);})),_0x335b06['next'](_0x31cb02);})),this[_0x376a54(0xbb)][_0x376a54(0x13a)](this[_0x376a54(0xd6)])[_0x376a54(0xbc)](_0x5b70c6=>this[_0x376a54(0x92)][_0x376a54(0x12e)]({'eventID':_0x40cd7e[_0x376a54(0x96)][_0x376a54(0xf5)],'data':{'unitID':this[_0x376a54(0xd6)],'operations':{[_0x5b70c6['id']]:{'id':_0x5b70c6['id'],'params':JSON['stringify'](_0x5b70c6[_0x376a54(0x90)])}}}},this[_0x376a54(0xd6)]));}['_stopPresenting'](){var _0x539031=_0x294d44,_0x58c458;this[_0x539031(0x79)][_0x539031(0xa6)]('idle'),(_0x58c458=this[_0x539031(0xfa)])==null||_0x58c458[_0x539031(0x91)](),this['_commandDisposable']=null;}[_0x294d44(0x14a)](){var _0x4cce15=_0x294d44,_0x1fca99;(_0x1fca99=this[_0x4cce15(0xfa)])==null||_0x1fca99[_0x4cce15(0x91)](),this['_status$']['next'](_0x4cce15(0x165));}['_beIdle'](){var _0x30c6e9=_0x294d44,_0x48cb0c;this[_0x30c6e9(0x79)][_0x30c6e9(0xa6)](_0x30c6e9(0x99)),(_0x48cb0c=this['_commandDisposable'])==null||_0x48cb0c[_0x30c6e9(0x91)](),this[_0x30c6e9(0xfa)]=null;}[_0x294d44(0x85)](){var _0x394357=_0x294d44,_0x4fa831;this['_status$'][_0x394357(0xa6)](_0x394357(0x155)),(_0x4fa831=this[_0x394357(0xfa)])==null||_0x4fa831['dispose']();}[_0x294d44(0xa0)](_0x4881ea){var _0x3fd9a=_0x294d44;if([_0x3fd9a(0x14d),_0x3fd9a(0x155),'offline'][_0x3fd9a(0x15b)](this[_0x3fd9a(0xf9)])||!_0x4881ea[_0x3fd9a(0xc4)][_0x3fd9a(0x16c)]||_0x4881ea['data'][_0x3fd9a(0x16c)]===this[_0x3fd9a(0x92)][_0x3fd9a(0x83)]())return;this[_0x3fd9a(0xf9)]===_0x3fd9a(0x99)&&this[_0x3fd9a(0x14a)]();const _0x3e04ab=_0x4881ea[_0x3fd9a(0xc4)][_0x3fd9a(0xa1)];Object[_0x3fd9a(0xe9)](_0x3e04ab)[_0x3fd9a(0xbc)](_0x3f1f7d=>{var _0x4c7ceb=_0x3fd9a;this[_0x4c7ceb(0x7f)][_0x4c7ceb(0xce)](_0x3f1f7d['id'],_0x3f1f7d[_0x4c7ceb(0x90)]?JSON[_0x4c7ceb(0x156)](_0x3f1f7d[_0x4c7ceb(0x90)]):null,{'fromCollab':!0x0});});}[_0x294d44(0x102)](){var _0xfc3d9=_0x294d44,_0x23b91f;this[_0xfc3d9(0x79)]['next'](_0xfc3d9(0x11e)),(_0x23b91f=this['_commandDisposable'])==null||_0x23b91f[_0xfc3d9(0x91)]();}[_0x294d44(0x81)](){var _0xb7d988=_0x294d44;this[_0xb7d988(0x79)][_0xb7d988(0xa6)](_0xb7d988(0x99)),this[_0xb7d988(0xd3)]();}},_0x2a564b['LiveShareCoordinator']=_0xc3a3a6([_0x2efd7a(0x2,_0x124f6c[_0x294d44(0xb5)]),_0x2efd7a(0x3,_0x124f6c[_0x294d44(0xae)](_0x5d6197)),_0x2efd7a(0x4,_0x124f6c[_0x294d44(0x128)])],_0x2a564b[_0x294d44(0x12d)]);function _0x1a5ea2(){var _0x932115=_0x294d44;const _0x71bdee=_0x2ce986['useDependency'](_0x2a564b['LiveShareController']),_0x51d62e=_0x2ce986[_0x932115(0xcc)](_0x124f6c[_0x932115(0x12f)]),_0x2a8f01=_0x2ce986['useObservable'](()=>_0x51d62e[_0x932115(0xb1)](_0x124f6c[_0x932115(0x110)][_0x932115(0xe5)]),void 0x0,!0x1,[]),[_0x50c8e2,_0x331335]=_0x4bcd29[_0x932115(0x11b)](null),[_0x4f028c,_0x3cc0c3]=_0x4bcd29[_0x932115(0x11b)](_0x261c93[_0x932115(0x89)]),_0x4c2243=_0x4bcd29[_0x932115(0x9d)](null);return _0x4bcd29['useEffect'](()=>(_0x2a8f01&&_0x71bdee[_0x932115(0xef)](_0x2a8f01[_0x932115(0x15a)]())[_0x932115(0xdf)](_0x4a8b0f=>{var _0x470add=_0x932115;_0x331335(_0x4a8b0f),_0x4c2243['current']=_0x4a8b0f[_0x470add(0x146)][_0x470add(0xca)](_0x1c280c=>{_0x3cc0c3(_0x1c280c);});}),()=>{var _0x2db762=_0x932115,_0x363ca4;(_0x363ca4=_0x4c2243[_0x2db762(0xb0)])==null||_0x363ca4['unsubscribe'](),_0x4c2243[_0x2db762(0xb0)]=null;}),[_0x2a8f01,_0x71bdee]),_0x50c8e2?_0x2d43d4[_0x932115(0x11a)](_0x362667[_0x932115(0xbd)],{'align':'end','disabled':_0x4f028c===_0x261c93['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x2d43d4[_0x932115(0x11a)](_0x30dcde,{'status':_0x4f028c,'coordinator':_0x50c8e2}),'children':_0x2d43d4[_0x932115(0x11a)](_0x932115(0x145),{'className':_0x362667['clsx'](_0x932115(0xa4),{'univer-cursor-not-allowed':_0x4f028c===_0x261c93[_0x932115(0x97)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4f028c!==_0x261c93[_0x932115(0x97)]}),'type':_0x932115(0x145),'children':_0x2d43d4[_0x932115(0x11a)](_0x4ac1ec,{'className':_0x932115(0x120)})})}):null;}function _0x30dcde(_0xca00fe){var _0x2c1203=_0x294d44;const {status:_0x375bd2,coordinator:_0x1e4b58}=_0xca00fe;switch(_0x375bd2){case _0x261c93[_0x2c1203(0x89)]:return _0x2d43d4[_0x2c1203(0x11a)](_0x45a78d,{'coordinator':_0x1e4b58});case _0x261c93[_0x2c1203(0x135)]:return _0x2d43d4[_0x2c1203(0x11a)](_0x1e9ebf,{'coordinator':_0x1e4b58});case _0x261c93['NOT_FOLLOWING']:return _0x2d43d4[_0x2c1203(0x11a)](_0x4617b4,{'coordinator':_0x1e4b58});case _0x261c93[_0x2c1203(0x97)]:return _0x2d43d4[_0x2c1203(0x11a)](_0x1fccbd,{});case _0x261c93[_0x2c1203(0x87)]:return _0x2d43d4[_0x2c1203(0x11a)](_0x5c80dc,{'coordinator':_0x1e4b58});default:return null;}}function _0x45a78d(_0x37a8dd){var _0x3272f0=_0x294d44;const {coordinator:_0x5cac22}=_0x37a8dd;return _0x2d43d4[_0x3272f0(0xed)](_0x2d43d4['Fragment'],{'children':[_0x2d43d4['jsx'](_0x3272f0(0x129),{'className':_0x3272f0(0xbf),'children':_0x3272f0(0x162)}),_0x2d43d4[_0x3272f0(0x11a)](_0x362667['Button'],{'onClick':()=>_0x5cac22[_0x3272f0(0xb7)](),'children':_0x3272f0(0xd5)})]});}function _0x1e9ebf(_0x910546){var _0x30dec5=_0x294d44;const {coordinator:_0x135b5e}=_0x910546;return _0x2d43d4['jsxs'](_0x2d43d4[_0x30dec5(0xab)],{'children':[_0x2d43d4[_0x30dec5(0x11a)](_0x30dec5(0x129),{'className':_0x30dec5(0xbf),'children':_0x30dec5(0x164)}),_0x2d43d4[_0x30dec5(0x11a)](_0x362667['Button'],{'onClick':()=>_0x135b5e['stopFollowing'](),'children':_0x30dec5(0xdd)})]});}function _0x4617b4(_0x343c4f){var _0x1458ca=_0x294d44;const {coordinator:_0x543cb2}=_0x343c4f;return _0x2d43d4['jsxs'](_0x2d43d4[_0x1458ca(0xab)],{'children':[_0x2d43d4['jsx'](_0x1458ca(0x129),{'className':_0x1458ca(0xbf),'children':_0x1458ca(0x142)}),_0x2d43d4[_0x1458ca(0x11a)](_0x362667[_0x1458ca(0x11f)],{'variant':_0x1458ca(0x166),'onClick':()=>_0x543cb2[_0x1458ca(0x9c)](),'children':'Start\x20following'})]});}function _0x5c80dc(_0x5514c8){var _0x1795c2=_0x294d44;const {coordinator:_0x1ceecc}=_0x5514c8;return _0x2d43d4[_0x1795c2(0xed)](_0x2d43d4[_0x1795c2(0xab)],{'children':[_0x2d43d4[_0x1795c2(0x11a)](_0x1795c2(0x129),{'className':_0x1795c2(0xbf),'children':_0x1795c2(0x9f)}),_0x2d43d4['jsx'](_0x362667['Button'],{'variant':_0x1795c2(0x121),'onClick':()=>_0x1ceecc[_0x1795c2(0x14f)](),'children':_0x1795c2(0xcf)})]});}function _0x1fccbd(){var _0x5c176a=_0x294d44;return _0x2d43d4[_0x5c176a(0x11a)](_0x2d43d4[_0x5c176a(0xab)],{'children':_0x5c176a(0x78)});}var _0x87f871=Object[_0x294d44(0x149)],_0x495dd4=(_0x13221b,_0x58fadf,_0x5d26e3,_0x1b74e0)=>{var _0x3b55fe=_0x294d44;for(var _0xc39c83=_0x1b74e0>0x1?void 0x0:_0x1b74e0?_0x87f871(_0x58fadf,_0x5d26e3):_0x58fadf,_0x2509be=_0x13221b[_0x3b55fe(0x16e)]-0x1,_0x375cdc;_0x2509be>=0x0;_0x2509be--)(_0x375cdc=_0x13221b[_0x2509be])&&(_0xc39c83=_0x375cdc(_0xc39c83)||_0xc39c83);return _0xc39c83;},_0x42d5ab=(_0x3414fd,_0x4d4571)=>(_0x35c1e2,_0x57f36f)=>_0x4d4571(_0x35c1e2,_0x57f36f,_0x3414fd);_0x2a564b[_0x294d44(0xc0)]=class extends _0x124f6c[_0x294d44(0xa5)]{constructor(_0x3775a8,_0x30adee){var _0x3b03e5=_0x294d44;super(),this[_0x3b03e5(0x136)]=_0x3775a8,this[_0x3b03e5(0xe4)]=_0x30adee,this[_0x3b03e5(0xda)]();}[_0x294d44(0xda)](){var _0xf66665=_0x294d44;this[_0xf66665(0x118)](this['_uiPartsService']['registerComponent'](_0x2ce986[_0xf66665(0x157)][_0xf66665(0xf1)],()=>_0x2ce986[_0xf66665(0x167)](_0x1a5ea2,this['_injector'])));}},_0x2a564b[_0x294d44(0xc0)]=_0x495dd4([_0x42d5ab(0x0,_0x124f6c[_0x294d44(0xae)](_0x124f6c[_0x294d44(0x11d)])),_0x42d5ab(0x1,_0x2ce986['IUIPartsService'])],_0x2a564b[_0x294d44(0xc0)]);var _0x4e8427=Object[_0x294d44(0x15c)],_0xeb94d1=Object[_0x294d44(0x149)],_0x3df30c=(_0x2c7f3b,_0x177ca1,_0x1a8069)=>_0x177ca1 in _0x2c7f3b?_0x4e8427(_0x2c7f3b,_0x177ca1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a8069}):_0x2c7f3b[_0x177ca1]=_0x1a8069,_0x4ce8a4=(_0x23e046,_0x5cd373,_0x21f257,_0x422036)=>{var _0x2e31bf=_0x294d44;for(var _0x11abb=_0x422036>0x1?void 0x0:_0x422036?_0xeb94d1(_0x5cd373,_0x21f257):_0x5cd373,_0x48b4d3=_0x23e046[_0x2e31bf(0x16e)]-0x1,_0x270c48;_0x48b4d3>=0x0;_0x48b4d3--)(_0x270c48=_0x23e046[_0x48b4d3])&&(_0x11abb=_0x270c48(_0x11abb)||_0x11abb);return _0x11abb;},_0x7ad897=(_0x4b62de,_0x4455ed)=>(_0x2451a2,_0x5a8364)=>_0x4455ed(_0x2451a2,_0x5a8364,_0x4b62de),_0x37e70a=(_0x212323,_0x364995,_0x5406fe)=>_0x3df30c(_0x212323,typeof _0x364995!=_0x294d44(0xe0)?_0x364995+'':_0x364995,_0x5406fe);const _0x468afb=_0x294d44(0x16b);_0x2a564b[_0x294d44(0x95)]=class extends _0x124f6c[_0x294d44(0xfb)]{constructor(_0x2b13d8=_0x5f3aac,_0x3daa72,_0x4578b9){var _0x329580=_0x294d44;super(),this[_0x329580(0x134)]=_0x2b13d8,this[_0x329580(0x136)]=_0x3daa72,this[_0x329580(0x152)]=_0x4578b9;const {..._0x51f884}=_0x124f6c[_0x329580(0x12b)]({},_0x5f3aac,this['_config']);this[_0x329580(0x152)]['setConfig'](_0x17ea76,_0x51f884);}['onStarting'](){var _0x32f00c=_0x294d44;_0x124f6c[_0x32f00c(0x123)](this[_0x32f00c(0x136)],_0x124f6c[_0x32f00c(0x125)]([[_0x5d6197],[_0x2a564b[_0x32f00c(0x7a)]],[_0xfb2f06],[_0x2a564b[_0x32f00c(0xc0)]]],this[_0x32f00c(0x134)][_0x32f00c(0x11c)])),_0x124f6c[_0x32f00c(0x88)](this[_0x32f00c(0x136)],[[_0xfb2f06]]);}[_0x294d44(0xad)](){var _0xafdd32=_0x294d44;_0x124f6c[_0xafdd32(0x88)](this['_injector'],[[_0x2a564b[_0xafdd32(0xc0)]]]);}},_0x37e70a(_0x2a564b['UniverLiveSharePlugin'],_0x294d44(0xac),_0x124f6c[_0x294d44(0x110)]['UNIVER_UNKNOWN']),_0x37e70a(_0x2a564b[_0x294d44(0x95)],_0x294d44(0x10a),_0x468afb),_0x2a564b['UniverLiveSharePlugin']=_0x4ce8a4([_0x124f6c[_0x294d44(0x103)](_0x3b8a01[_0x294d44(0x13e)]),_0x7ad897(0x1,_0x124f6c[_0x294d44(0xae)](_0x124f6c[_0x294d44(0x11d)])),_0x7ad897(0x2,_0x124f6c[_0x294d44(0xb5)])],_0x2a564b['UniverLiveSharePlugin']),_0x2a564b[_0x294d44(0xc5)]=_0x1a5ea2,_0x2a564b[_0x294d44(0xcb)]=_0x5d6197,_0x2a564b[_0x294d44(0x15e)]=_0x261c93,Object[_0x294d44(0x15c)](_0x2a564b,Symbol[_0x294d44(0x98)],{'value':_0x294d44(0x109)});}));
|
|
1
|
+
function _0x3b59(_0x4bc7bc,_0x26ed54){var _0x282206=_0x2822();return _0x3b59=function(_0x3b59ac,_0x38c81b){_0x3b59ac=_0x3b59ac-0x1b9;var _0x145eb6=_0x282206[_0x3b59ac];return _0x145eb6;},_0x3b59(_0x4bc7bc,_0x26ed54);}function _0x2822(){var _0x5baa71=['type','UniverUi','_entities','children','sheet','Button','UniverLiveSharePlugin','getValue','LiveShare','_sharedOperations','UNIVER_SHEET','IDLE','set','UniverSheets','get','1843206oVWHcH','defIds','unitId','_configService','current','_fetchOperations','forwardRef','parse','14243484kAxLkQ','defineProperty','extend','@univerjs-pro/collaboration-client','onStarting','DependentOn','_commandDisposable','concat','presenter','_univerInstanceService','idSuffix','className','Stop\x20presenting','substring','_presenter','_commandService','ONLINE','executeCommand','subscribe','default','colorChannel1','live-share.config','SAME_OPERATION_SHARE_INTERVAL','LiveShareIcon','Start','includes','@univerjs/ui','281493biNgwt','LiveShareStatus','Fragment','UNIVER_UNKNOWN','createInstance','length','IUniverInstanceService','find','_stopFollowing','mutations','takeUntil','_handleOnline','stopFollowing','IConfigService','forEach','asObservable','next','toString','SetScrollOperation','UniverCore','apply','disposeWithMe','toDisposable','_init','UniverCollaborationClientPlugin','svg','prototype','univer-size-4','jsxs','40LJHjbn','_stopPresenting','following','pluginName','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LiveShareService','@univerjs/sheets-ui','object','LIVESHARE_TERMINATE','none','add','DesktopLiveShareController','xlink:href','BehaviorSubject','1651030FPsnKt','_handleOperation','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','UniverSheetsUi','Dropdown','getLiveShareCoordinator','pipe','_handleNewChangeSets','ICommandService','displayName','replace','_status$','Disposable','event$','status$','CollaborationEvent','dispose$','use','getUnitId','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareCoordinator','_injector','useState','live-share-icon','_config','HEADER_MENU','stringify','SessionStatus','merge','FOLLOWING','connectInjector','div','registerDependencies','getOwnPropertyDescriptor','registerComponent','jsx','string','IUIPartsService','5741860qqsBTM','react','random','propertyIsEnumerable','map','RxDisposable','_unitID','UniverProCollaboration','clear','sessionStatus$','rxjs','BuiltInUIPart','button','trim','stopPresenting','has','_handleOffline','tryStartPresenting','UniverProLiveShare','@univerjs/core','9Zgqila','1em','idle','complete','useObservable','memberID','Module','8nnwUsi','shouldShareOperation','_handleNewHost','Inject','_startLiveShareCoordinator','clsx','end','getMemberID','useDependency','getConfig','11CxRirL','UniverIcon','_mountLiveShare','_collabSession','2zzUkuM','React','from','offline','params','url(#$1','icon','data','_handleTerminate','UniverDesign','send','reverse','defs','then','Present\x20this\x20document','UniverInstanceType','_beIdle','createElement','entries','Injector','presenting','InsertSheetMutation','_startFollowing','touchDependencies','exports','_reporters','LIVESHARE_OPERATION','OFFLINE','LiveShareController','init','_startPresenting','getOwnPropertySymbols','registerInitialStateReporter','operators','mask','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','_uiPartsService','evenodd','LIVESHARE_NEW_HOST','dispose','currentColor','operations','You\x27are\x20offline.','text','registerSharedOperation','_liveShareService','fill','hasOwnProperty','1256367VEonwn','CommandType','mergeOverrideWithDependencies','override','Plugin','react/jsx-runtime','function','useRef','call','@univerjs/sheets','_status','_collabSessionService','Stop\x20following','SetWorksheetActiveOperation','values','amd','You\x27re\x20following\x20the\x20presenter','attrs','PRESENTING','NEW_CHANGESETS','toStringTag','tag','not-following','path','5656908wRmVyX','You\x27re\x20not\x20following\x20the\x20presenter','setConfig','indexOf'];_0x2822=function(){return _0x5baa71;};return _0x2822();}(function(_0xb7edb6,_0x42950d){var _0x579c61=_0x3b59,_0x4097f4=_0xb7edb6();while(!![]){try{var _0x594db9=parseInt(_0x579c61(0x295))/0x1*(parseInt(_0x579c61(0x217))/0x2)+-parseInt(_0x579c61(0x272))/0x3+parseInt(_0x579c61(0x209))/0x4*(parseInt(_0x579c61(0x1c8))/0x5)+-parseInt(_0x579c61(0x25f))/0x6+-parseInt(_0x579c61(0x247))/0x7*(-parseInt(_0x579c61(0x1ba))/0x8)+parseInt(_0x579c61(0x202))/0x9*(-parseInt(_0x579c61(0x1ee))/0xa)+parseInt(_0x579c61(0x213))/0xb*(parseInt(_0x579c61(0x27a))/0xc);if(_0x594db9===_0x42950d)break;else _0x4097f4['push'](_0x4097f4['shift']());}catch(_0x2b96e7){_0x4097f4['push'](_0x4097f4['shift']());}}}(_0x2822,0xda78d),function(_0x4711d6,_0x3e069a){var _0x459f39=_0x3b59;typeof exports==_0x459f39(0x1c1)&&typeof module<'u'?_0x3e069a(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x459f39(0x24d)&&define[_0x459f39(0x256)]?define([_0x459f39(0x22f),_0x459f39(0x27d),_0x459f39(0x201),_0x459f39(0x250),_0x459f39(0x1c0),_0x459f39(0x294),_0x459f39(0x24c),'@univerjs/design',_0x459f39(0x1ef),'@univerjs-pro/collaboration',_0x459f39(0x1f8),'rxjs/operators'],_0x3e069a):(_0x4711d6=typeof globalThis<'u'?globalThis:_0x4711d6||self,_0x3e069a(_0x4711d6[_0x459f39(0x200)]={},_0x4711d6['UniverProCollaborationClient'],_0x4711d6[_0x459f39(0x2a8)],_0x4711d6[_0x459f39(0x270)],_0x4711d6[_0x459f39(0x1cb)],_0x4711d6[_0x459f39(0x264)],_0x4711d6[_0x459f39(0x218)],_0x4711d6[_0x459f39(0x220)],_0x4711d6[_0x459f39(0x218)],_0x4711d6[_0x459f39(0x1f5)],_0x4711d6['rxjs'],_0x4711d6['rxjs'][_0x459f39(0x238)]));}(this,function(_0x1a4a0a,_0x5552b1,_0x5c28c4,_0x27a04e,_0x4367a5,_0xca39c1,_0x250593,_0x21c058,_0xfc3b01,_0x398bd6,_0x1be513,_0x54be16){'use strict';var _0x561235=_0x3b59;var _0x1561f0=Object['defineProperty'],_0x47c2bb=(_0xba2597,_0x47537e,_0x50333f)=>_0x47537e in _0xba2597?_0x1561f0(_0xba2597,_0x47537e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50333f}):_0xba2597[_0x47537e]=_0x50333f,_0x4387d5=(_0x5b1108,_0x227bd8,_0x1a8623)=>_0x47c2bb(_0x5b1108,typeof _0x227bd8!='symbol'?_0x227bd8+'':_0x227bd8,_0x1a8623);const _0x31cdc9=_0x561235(0x28f),_0x174068={};class _0x543b2b extends _0x5c28c4['Disposable']{constructor(){var _0x434732=_0x561235;super(...arguments),_0x4387d5(this,'_sharedOperations',new Set()),_0x4387d5(this,_0x434732(0x230),new Set());}[_0x561235(0x243)](_0x52e305){var _0x589746=_0x561235;return this[_0x589746(0x26c)][_0x589746(0x1c4)](_0x52e305),_0x5c28c4[_0x589746(0x2ab)](()=>this[_0x589746(0x26c)]['delete'](_0x52e305));}[_0x561235(0x237)](_0x25e28e){var _0x3e6f59=_0x561235;return this[_0x3e6f59(0x230)]['add'](_0x25e28e),_0x5c28c4[_0x3e6f59(0x2ab)](()=>this[_0x3e6f59(0x230)]['delete'](_0x25e28e));}['shouldShareOperation'](_0xde1e5a){var _0x13b5b5=_0x561235;return this[_0x13b5b5(0x26c)][_0x13b5b5(0x1fd)](_0xde1e5a);}['getInitialStates'](_0x265675){var _0x5a0971=_0x561235;return Array[_0x5a0971(0x219)](this[_0x5a0971(0x230)])[_0x5a0971(0x1f2)](_0x22846b=>_0x22846b(_0x265675));}}var _0x192fb7=Object[_0x561235(0x1e9)],_0x741a3c=(_0x52a820,_0x234d34,_0x10a85f,_0x5851d0)=>{for(var _0x5ad4ea=_0x5851d0>0x1?void 0x0:_0x5851d0?_0x192fb7(_0x234d34,_0x10a85f):_0x234d34,_0x587770=_0x52a820['length']-0x1,_0x512788;_0x587770>=0x0;_0x587770--)(_0x512788=_0x52a820[_0x587770])&&(_0x5ad4ea=_0x512788(_0x5ad4ea)||_0x5ad4ea);return _0x5ad4ea;},_0x4282f0=(_0x5a91ed,_0x4db43c)=>(_0x335de9,_0x4da70a)=>_0x4db43c(_0x335de9,_0x4da70a,_0x5a91ed);let _0x4e66a6=class extends _0x5c28c4[_0x561235(0x1d4)]{constructor(_0x4ed652){var _0x3fa929=_0x561235;super(),this[_0x3fa929(0x244)]=_0x4ed652,this[_0x3fa929(0x2ac)]();}['_init'](){var _0x1ff0c5=_0x561235;[_0x4367a5['SetZoomRatioOperation']['id'],_0x4367a5[_0x1ff0c5(0x2a7)]['id'],_0x27a04e[_0x1ff0c5(0x254)]['id']][_0x1ff0c5(0x2a3)](_0x59a1a2=>{var _0x4d77ea=_0x1ff0c5;this[_0x4d77ea(0x2aa)](this[_0x4d77ea(0x244)][_0x4d77ea(0x243)](_0x59a1a2));});}};_0x4e66a6=_0x741a3c([_0x4282f0(0x0,_0x5c28c4['Inject'](_0x543b2b))],_0x4e66a6);var _0x12e191=function(){var _0x20d62a=_0x561235;return _0x12e191=Object['assign']||function(_0x4b65eb){var _0x2d2a73=_0x3b59;for(var _0x35e173,_0x9fbeb6=0x1,_0x3fd299=arguments[_0x2d2a73(0x29a)];_0x9fbeb6<_0x3fd299;_0x9fbeb6++){_0x35e173=arguments[_0x9fbeb6];for(var _0x33c0f8 in _0x35e173)Object[_0x2d2a73(0x2af)][_0x2d2a73(0x246)][_0x2d2a73(0x24f)](_0x35e173,_0x33c0f8)&&(_0x4b65eb[_0x33c0f8]=_0x35e173[_0x33c0f8]);}return _0x4b65eb;},_0x12e191[_0x20d62a(0x2a9)](this,arguments);},_0x1170c4=function(_0x52bb48,_0x1a9b5c){var _0x2018e9=_0x561235,_0x25aa51={};for(var _0x563ec4 in _0x52bb48)Object[_0x2018e9(0x2af)][_0x2018e9(0x246)][_0x2018e9(0x24f)](_0x52bb48,_0x563ec4)&&_0x1a9b5c[_0x2018e9(0x262)](_0x563ec4)<0x0&&(_0x25aa51[_0x563ec4]=_0x52bb48[_0x563ec4]);if(_0x52bb48!=null&&typeof Object['getOwnPropertySymbols']==_0x2018e9(0x24d)){for(var _0x429215=0x0,_0x563ec4=Object[_0x2018e9(0x236)](_0x52bb48);_0x429215<_0x563ec4[_0x2018e9(0x29a)];_0x429215++)_0x1a9b5c[_0x2018e9(0x262)](_0x563ec4[_0x429215])<0x0&&Object[_0x2018e9(0x2af)][_0x2018e9(0x1f1)]['call'](_0x52bb48,_0x563ec4[_0x429215])&&(_0x25aa51[_0x563ec4[_0x429215]]=_0x52bb48[_0x563ec4[_0x429215]]);}return _0x25aa51;},_0x1ec2bc=_0xfc3b01[_0x561235(0x278)](function(_0x991d30,_0xcc71aa){var _0x5237a4=_0x561235,_0x51162f=_0x991d30[_0x5237a4(0x21d)],_0x1f02e3=_0x991d30['id'],_0x5a19f3=_0x991d30[_0x5237a4(0x285)],_0x9b9c28=_0x991d30[_0x5237a4(0x27c)],_0x5d00b1=_0x1170c4(_0x991d30,[_0x5237a4(0x21d),'id',_0x5237a4(0x285),_0x5237a4(0x27c)]),_0x2fefc0='univerjs-icon\x20univerjs-icon-'['concat'](_0x1f02e3,'\x20')[_0x5237a4(0x281)](_0x5a19f3||'')[_0x5237a4(0x1fb)](),_0x40565d=_0xfc3b01[_0x5237a4(0x24e)]('_'[_0x5237a4(0x281)](_0x289775()));return _0x467acc(_0x51162f,''[_0x5237a4(0x281)](_0x1f02e3),{'defIds':_0x51162f['defIds'],'idSuffix':_0x40565d[_0x5237a4(0x276)]},_0x12e191({'ref':_0xcc71aa,'className':_0x2fefc0},_0x5d00b1),_0x9b9c28);});function _0x467acc(_0x3cd299,_0xbb58de,_0xbaf9de,_0x3d0a17,_0x2d27ae){var _0x45c5d2=_0x561235;return _0xfc3b01[_0x45c5d2(0x228)](_0x3cd299[_0x45c5d2(0x25c)],_0x12e191(_0x12e191({'key':_0xbb58de},_0x59ef4f(_0x3cd299,_0xbaf9de,_0x2d27ae)),_0x3d0a17),(_0x498783(_0x3cd299,_0xbaf9de)[_0x45c5d2(0x266)]||[])['map'](function(_0x169e17,_0x1f058b){var _0x5a998a=_0x45c5d2;return _0x467acc(_0x169e17,''[_0x5a998a(0x281)](_0xbb58de,'-')['concat'](_0x3cd299['tag'],'-')[_0x5a998a(0x281)](_0x1f058b),_0xbaf9de,void 0x0,_0x2d27ae);}));}function _0x59ef4f(_0x55758f,_0x4913c2,_0x1e9fec){var _0x8dbdd6=_0x561235,_0x190214=_0x12e191({},_0x55758f[_0x8dbdd6(0x258)]);_0x1e9fec!=null&&_0x1e9fec['colorChannel1']&&_0x190214[_0x8dbdd6(0x245)]==='colorChannel1'&&(_0x190214[_0x8dbdd6(0x245)]=_0x1e9fec[_0x8dbdd6(0x28e)]),_0x55758f[_0x8dbdd6(0x25c)]===_0x8dbdd6(0x239)&&_0x190214['id']&&(_0x190214['id']=_0x190214['id']+_0x4913c2['idSuffix']),Object[_0x8dbdd6(0x229)](_0x190214)['forEach'](function(_0x520c02){var _0x18d337=_0x8dbdd6,_0x3eef79=_0x520c02[0x0],_0x4e9fa3=_0x520c02[0x1];_0x3eef79===_0x18d337(0x239)&&typeof _0x4e9fa3==_0x18d337(0x1ec)&&(_0x190214[_0x3eef79]=_0x4e9fa3[_0x18d337(0x1d2)](/url\(#(.*)\)/,_0x18d337(0x21c)['concat'](_0x4913c2[_0x18d337(0x284)],')')));});var _0x4c9f1b=_0x4913c2[_0x8dbdd6(0x273)];return!_0x4c9f1b||_0x4c9f1b[_0x8dbdd6(0x29a)]===0x0||(_0x55758f[_0x8dbdd6(0x25c)]===_0x8dbdd6(0x1d9)&&_0x190214[_0x8dbdd6(0x1c6)]&&(_0x190214[_0x8dbdd6(0x1c6)]=_0x190214[_0x8dbdd6(0x1c6)]+_0x4913c2[_0x8dbdd6(0x284)]),Object[_0x8dbdd6(0x229)](_0x190214)[_0x8dbdd6(0x2a3)](function(_0x43c709){var _0x3841d6=_0x8dbdd6,_0x3ed6d2=_0x43c709[0x0],_0x51e81a=_0x43c709[0x1];typeof _0x51e81a==_0x3841d6(0x1ec)&&(_0x190214[_0x3ed6d2]=_0x51e81a[_0x3841d6(0x1d2)](/url\(#(.*)\)/,_0x3841d6(0x21c)[_0x3841d6(0x281)](_0x4913c2['idSuffix'],')')));})),_0x190214;}function _0x498783(_0xdb8c4,_0x25583d){var _0x265532=_0x561235,_0x3017c0,_0x1bcc11=_0x25583d[_0x265532(0x273)];return!_0x1bcc11||_0x1bcc11[_0x265532(0x29a)]===0x0?_0xdb8c4:_0xdb8c4[_0x265532(0x25c)]===_0x265532(0x223)&&(!((_0x3017c0=_0xdb8c4[_0x265532(0x266)])===null||_0x3017c0===void 0x0)&&_0x3017c0['length'])?_0x12e191(_0x12e191({},_0xdb8c4),{'children':_0xdb8c4[_0x265532(0x266)][_0x265532(0x1f2)](function(_0x4251ad){var _0x1a0166=_0x265532;return typeof _0x4251ad[_0x1a0166(0x258)]['id']=='string'&&_0x1bcc11&&_0x1bcc11[_0x1a0166(0x293)](_0x4251ad[_0x1a0166(0x258)]['id'])?_0x12e191(_0x12e191({},_0x4251ad),{'attrs':_0x12e191(_0x12e191({},_0x4251ad['attrs']),{'id':_0x4251ad['attrs']['id']+_0x25583d[_0x1a0166(0x284)]})}):_0x4251ad;})}):_0xdb8c4;}function _0x289775(){var _0x77b8a3=_0x561235;return Math[_0x77b8a3(0x1f0)]()[_0x77b8a3(0x2a6)](0x24)[_0x77b8a3(0x287)](0x2,0x8);}_0x1ec2bc['displayName']=_0x561235(0x214);var _0x54f175={'tag':_0x561235(0x2ae),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x561235(0x1c3),'viewBox':'0\x200\x2017\x2017','width':_0x561235(0x203),'height':'1em'},'children':[{'tag':_0x561235(0x25e),'attrs':{'fill':_0x561235(0x23f),'d':_0x561235(0x23a)}},{'tag':_0x561235(0x25e),'attrs':{'fill':_0x561235(0x23f),'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':_0x561235(0x23c),'clipRule':_0x561235(0x23c)}}]},_0x4f37fe=_0xfc3b01[_0x561235(0x278)](function(_0x3c87a3,_0x43a0c6){var _0x4a6572=_0x561235;return _0xfc3b01[_0x4a6572(0x228)](_0x1ec2bc,Object['assign']({},_0x3c87a3,{'id':_0x4a6572(0x1df),'ref':_0x43a0c6,'icon':_0x54f175}));});_0x4f37fe[_0x561235(0x1d1)]=_0x561235(0x291);var _0x5715ad=Object[_0x561235(0x1e9)],_0x404a25=(_0x524361,_0x6e8b88,_0x1cd630,_0x5e7651)=>{var _0x2ce54a=_0x561235;for(var _0x2caff6=_0x5e7651>0x1?void 0x0:_0x5e7651?_0x5715ad(_0x6e8b88,_0x1cd630):_0x6e8b88,_0xe5c012=_0x524361[_0x2ce54a(0x29a)]-0x1,_0x4b9c88;_0xe5c012>=0x0;_0xe5c012--)(_0x4b9c88=_0x524361[_0xe5c012])&&(_0x2caff6=_0x4b9c88(_0x2caff6)||_0x2caff6);return _0x2caff6;},_0x150e52=(_0x33e0eb,_0x464dce)=>(_0x149e61,_0x3becb4)=>_0x464dce(_0x149e61,_0x3becb4,_0x33e0eb);_0x1a4a0a[_0x561235(0x233)]=class extends _0x5c28c4[_0x561235(0x1f3)]{constructor(_0x379918,_0x2455b5,_0x49b8a6){var _0x2a4f75=_0x561235;super(),_0x4387d5(this,_0x2a4f75(0x265),new Map()),(this['_univerInstanceService']=_0x379918,this[_0x2a4f75(0x1dd)]=_0x2455b5,this['_collabSessionService']=_0x49b8a6,this['_init']());}async[_0x561235(0x1cd)](_0x4df218){var _0x4cccbe=_0x561235;return this[_0x4cccbe(0x265)]['has'](_0x4df218)||await this[_0x4cccbe(0x20d)](_0x4df218),this[_0x4cccbe(0x265)]['get'](_0x4df218);}[_0x561235(0x2ac)](){var _0x2979c3=_0x561235;this[_0x2979c3(0x283)]['getTypeOfUnitAdded$'](_0x5c28c4[_0x2979c3(0x226)][_0x2979c3(0x26d)])['pipe'](_0x54be16['takeUntil'](this[_0x2979c3(0x1d8)]))['subscribe'](async _0x14cc21=>{var _0x204c16=_0x2979c3;const _0xce38e=_0x14cc21[_0x204c16(0x1da)]();this['_entities'][_0x204c16(0x1fd)](_0xce38e)||this['_startLiveShareCoordinator'](_0xce38e);}),this[_0x2979c3(0x283)]['getTypeOfUnitDisposed$'](_0x5c28c4[_0x2979c3(0x226)][_0x2979c3(0x26d)])[_0x2979c3(0x1ce)](_0x54be16[_0x2979c3(0x29f)](this[_0x2979c3(0x1d8)]))['subscribe'](_0x57592f=>{var _0x3cc159=_0x2979c3;const _0x3b3e6c=_0x57592f[_0x3cc159(0x1da)](),_0x5b4355=this[_0x3cc159(0x265)]['get'](_0x3b3e6c);_0x5b4355==null||_0x5b4355[_0x3cc159(0x23e)]();});}async['_startLiveShareCoordinator'](_0x30ab19){var _0x58ba33=_0x561235;const _0x384e64=await this[_0x58ba33(0x252)]['requireSession'](_0x30ab19),_0x596bd3=this[_0x58ba33(0x1dd)][_0x58ba33(0x299)](_0x1a4a0a[_0x58ba33(0x1dc)],_0x30ab19,_0x384e64);return _0x596bd3['init'](),this[_0x58ba33(0x265)]['set'](_0x30ab19,_0x596bd3),_0x596bd3;}},_0x1a4a0a[_0x561235(0x233)]=_0x404a25([_0x150e52(0x0,_0x5c28c4[_0x561235(0x29b)]),_0x150e52(0x1,_0x5c28c4[_0x561235(0x20c)](_0x5c28c4[_0x561235(0x22a)])),_0x150e52(0x2,_0x5c28c4[_0x561235(0x20c)](_0x5552b1['CollaborationSessionService']))],_0x1a4a0a[_0x561235(0x233)]);var _0x33435e=(_0x51b1a1=>(_0x51b1a1[_0x561235(0x232)]=_0x561235(0x21a),_0x51b1a1[_0x561235(0x26e)]='idle',_0x51b1a1[_0x561235(0x1e5)]=_0x561235(0x1bc),_0x51b1a1['NOT_FOLLOWING']='not-following',_0x51b1a1[_0x561235(0x259)]=_0x561235(0x22b),_0x51b1a1))(_0x33435e||{});const _0x2893b4=_0x561235(0x290),_0xfdb991=0xc8;_0x1a4a0a[_0x561235(0x1dc)]=class extends _0x5c28c4[_0x561235(0x1f3)]{constructor(_0x326483,_0x4f45a3,_0x192183,_0x30b2e5,_0x122213){var _0x122e15=_0x561235;super(),_0x4387d5(this,_0x122e15(0x1d3),new _0x1be513[(_0x122e15(0x1c7))](_0x122e15(0x204))),_0x4387d5(this,'status$',this['_status$'][_0x122e15(0x2a4)]()),_0x4387d5(this,_0x122e15(0x2ac),!0x1),_0x4387d5(this,_0x122e15(0x280),null),_0x4387d5(this,_0x122e15(0x288),null),(this[_0x122e15(0x1f4)]=_0x326483,this[_0x122e15(0x216)]=_0x4f45a3,this[_0x122e15(0x275)]=_0x192183,this[_0x122e15(0x244)]=_0x30b2e5,this[_0x122e15(0x289)]=_0x122213);}get[_0x561235(0x251)](){var _0x2ec58b=_0x561235;return this[_0x2ec58b(0x1d3)][_0x2ec58b(0x26a)]();}[_0x561235(0x23e)](){var _0x1750dd=_0x561235,_0xf1182d;(_0xf1182d=this[_0x1750dd(0x280)])==null||_0xf1182d['dispose'](),this[_0x1750dd(0x1d3)]['next'](_0x1750dd(0x204)),this[_0x1750dd(0x1d3)][_0x1750dd(0x205)]();}[_0x561235(0x234)](){var _0x4c49eb=_0x561235;this[_0x4c49eb(0x2ac)]||(this[_0x4c49eb(0x2ac)]=!0x0,this['_collabSession'][_0x4c49eb(0x1f7)]['pipe'](_0x54be16[_0x4c49eb(0x29f)](this[_0x4c49eb(0x1d8)]))[_0x4c49eb(0x28c)](_0x5c6527=>{var _0x2dbe85=_0x4c49eb;switch(_0x5c6527){case _0x5552b1[_0x2dbe85(0x1e3)]['OFFLINE']:this[_0x2dbe85(0x1fe)]();break;case _0x5552b1['SessionStatus'][_0x2dbe85(0x28a)]:this[_0x2dbe85(0x2a0)]();break;}}),this['_collabSession'][_0x4c49eb(0x1d5)][_0x4c49eb(0x1ce)](_0x54be16['takeUntil'](this[_0x4c49eb(0x1d8)]))[_0x4c49eb(0x28c)](_0x53b725=>{var _0x3d0477=_0x4c49eb;const {eventID:_0x2d1596}=_0x53b725;switch(_0x2d1596){case _0x398bd6['CollaborationEvent'][_0x3d0477(0x23d)]:this[_0x3d0477(0x20b)](_0x53b725);break;case _0x398bd6[_0x3d0477(0x1d7)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x53b725);break;case _0x398bd6['CollaborationEvent'][_0x3d0477(0x1c2)]:this[_0x3d0477(0x21f)]();break;case _0x398bd6['CollaborationEvent'][_0x3d0477(0x25a)]:this[_0x3d0477(0x1cf)](_0x53b725);break;}}));}[_0x561235(0x1ff)](){var _0x286d6a=_0x561235;this[_0x286d6a(0x216)][_0x286d6a(0x221)]({'eventID':_0x398bd6[_0x286d6a(0x1d7)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x286d6a(0x216)][_0x286d6a(0x210)]()}},this[_0x286d6a(0x1f4)]);}[_0x561235(0x1fc)](){var _0x336432=_0x561235;this[_0x336432(0x251)]===_0x336432(0x22b)&&(this['_status$'][_0x336432(0x2a5)](_0x336432(0x204)),this[_0x336432(0x216)]['send']({'eventID':_0x398bd6[_0x336432(0x1d7)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x336432(0x1f4)]}},this[_0x336432(0x1f4)]));}['startFollowing'](){var _0x5196b6=_0x561235;this[_0x5196b6(0x251)]==='not-following'&&(this[_0x5196b6(0x1d3)][_0x5196b6(0x2a5)](_0x5196b6(0x1bc)),this[_0x5196b6(0x22d)]());}[_0x561235(0x2a1)](){var _0xa9c138=_0x561235;this['_status']==='following'&&this[_0xa9c138(0x29d)]();}[_0x561235(0x20b)](_0x2c4146){var _0x3efd57=_0x561235;const {presenter:_0x3303f0}=_0x2c4146[_0x3efd57(0x21e)],_0xdd6a84=this['_collabSession'][_0x3efd57(0x210)]();this[_0x3efd57(0x288)]=_0x3303f0,_0x3303f0===_0xdd6a84?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x3efd57(0x251)]!==_0x3efd57(0x25d)&&(this['_stopPresenting'](),this[_0x3efd57(0x22d)]());}[_0x561235(0x277)](){var _0x33d67b=_0x561235;const _0x328864={'eventID':_0x398bd6[_0x33d67b(0x1d7)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x33d67b(0x216)][_0x33d67b(0x221)](_0x328864,this[_0x33d67b(0x1f4)]);}[_0x561235(0x21f)](){var _0x134389=_0x561235;this[_0x134389(0x288)]=null,this[_0x134389(0x251)]!=='presenting'&&this['_beIdle']();}[_0x561235(0x1cf)](_0x43632d){var _0x1659b9=_0x561235;if(this[_0x1659b9(0x251)]==='following'&&this[_0x1659b9(0x288)]===_0x43632d[_0x1659b9(0x21e)][_0x1659b9(0x207)]){const _0x2873bb=_0x398bd6['parseProtocolChangeset'](_0x43632d[_0x1659b9(0x21e)])[_0x1659b9(0x29e)][_0x1659b9(0x222)]()[_0x1659b9(0x29c)](_0x151a9f=>_0x151a9f['id']===_0x27a04e[_0x1659b9(0x22c)]['id']);if(_0x2873bb){const _0xa8ce14=_0x2873bb[_0x1659b9(0x21b)][_0x1659b9(0x274)],_0x2923db=_0x2873bb['params'][_0x1659b9(0x267)]['id'];setTimeout(()=>{var _0x4c773f=_0x1659b9;this[_0x4c773f(0x289)][_0x4c773f(0x28b)](_0x27a04e[_0x4c773f(0x254)]['id'],{'unitId':_0xa8ce14,'subUnitId':_0x2923db},{'fromCollab':!0x0});});}}}[_0x561235(0x235)](){var _0x593e79=_0x561235;this[_0x593e79(0x1d3)][_0x593e79(0x2a5)]('presenting');const _0x4c60c2=new Map(),_0x312150=this['_commandDisposable']=new _0x5c28c4['DisposableCollection']();_0x312150[_0x593e79(0x1c4)](_0x5c28c4[_0x593e79(0x2ab)](()=>{var _0x5bb33a=_0x593e79;_0x4c60c2[_0x5bb33a(0x2a3)](_0x146896=>_0x146896['complete']()),_0x4c60c2[_0x5bb33a(0x1f6)]();})),_0x312150['add'](this[_0x593e79(0x289)]['onCommandExecuted'](_0x735674=>{var _0x4b4279=_0x593e79,_0x4df4cd;if(_0x735674[_0x4b4279(0x263)]!==_0x5c28c4[_0x4b4279(0x248)]['OPERATION']||!this[_0x4b4279(0x244)][_0x4b4279(0x20a)](_0x735674['id']))return;const {id:_0x10b419}=_0x735674;let _0x18d9e6;_0x4c60c2['has'](_0x10b419)?_0x18d9e6=_0x4c60c2[_0x4b4279(0x271)](_0x10b419):(_0x18d9e6=new _0x1be513['Subject'](),_0x4c60c2[_0x4b4279(0x26f)](_0x10b419,_0x18d9e6),_0x18d9e6[_0x4b4279(0x1ce)](_0x54be16['throttleTime']((_0x4df4cd=this[_0x4b4279(0x275)][_0x4b4279(0x212)](_0x2893b4))!=null?_0x4df4cd:_0xfdb991,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b4279(0x28c)](_0x68bb73=>{var _0x256c5a=_0x4b4279;this[_0x256c5a(0x216)][_0x256c5a(0x221)]({'eventID':_0x398bd6[_0x256c5a(0x1d7)][_0x256c5a(0x231)],'data':{'unitID':this[_0x256c5a(0x1f4)],'operations':{[_0x68bb73['id']]:{'id':_0x68bb73['id'],'params':JSON[_0x256c5a(0x1e2)](_0x68bb73[_0x256c5a(0x21b)])}}}},this[_0x256c5a(0x1f4)]);})),_0x18d9e6[_0x4b4279(0x2a5)](_0x735674);})),this[_0x593e79(0x244)]['getInitialStates'](this[_0x593e79(0x1f4)])[_0x593e79(0x2a3)](_0x155d2c=>this['_collabSession']['send']({'eventID':_0x398bd6[_0x593e79(0x1d7)][_0x593e79(0x231)],'data':{'unitID':this[_0x593e79(0x1f4)],'operations':{[_0x155d2c['id']]:{'id':_0x155d2c['id'],'params':JSON[_0x593e79(0x1e2)](_0x155d2c[_0x593e79(0x21b)])}}}},this[_0x593e79(0x1f4)]));}[_0x561235(0x1bb)](){var _0x3410f6=_0x561235,_0x549e04;this[_0x3410f6(0x1d3)][_0x3410f6(0x2a5)](_0x3410f6(0x204)),(_0x549e04=this[_0x3410f6(0x280)])==null||_0x549e04[_0x3410f6(0x23e)](),this[_0x3410f6(0x280)]=null;}[_0x561235(0x22d)](){var _0x273324=_0x561235,_0xcff34d;(_0xcff34d=this[_0x273324(0x280)])==null||_0xcff34d[_0x273324(0x23e)](),this[_0x273324(0x1d3)][_0x273324(0x2a5)](_0x273324(0x1bc));}[_0x561235(0x227)](){var _0x1ae86c=_0x561235,_0x34f60f;this['_status$'][_0x1ae86c(0x2a5)](_0x1ae86c(0x204)),(_0x34f60f=this[_0x1ae86c(0x280)])==null||_0x34f60f['dispose'](),this[_0x1ae86c(0x280)]=null;}['_stopFollowing'](){var _0x15123a=_0x561235,_0x1dbb83;this[_0x15123a(0x1d3)][_0x15123a(0x2a5)]('not-following'),(_0x1dbb83=this[_0x15123a(0x280)])==null||_0x1dbb83[_0x15123a(0x23e)]();}[_0x561235(0x1c9)](_0x5b4bd2){var _0x152e5c=_0x561235;if([_0x152e5c(0x22b),_0x152e5c(0x25d),_0x152e5c(0x21a)][_0x152e5c(0x293)](this[_0x152e5c(0x251)])||!_0x5b4bd2[_0x152e5c(0x21e)]['presenter']||_0x5b4bd2[_0x152e5c(0x21e)][_0x152e5c(0x282)]===this[_0x152e5c(0x216)][_0x152e5c(0x210)]())return;this['_status']==='idle'&&this[_0x152e5c(0x22d)]();const _0x15f1ac=_0x5b4bd2[_0x152e5c(0x21e)][_0x152e5c(0x240)];Object[_0x152e5c(0x255)](_0x15f1ac)[_0x152e5c(0x2a3)](_0x523b66=>{var _0x511840=_0x152e5c;this['_commandService'][_0x511840(0x28b)](_0x523b66['id'],_0x523b66[_0x511840(0x21b)]?JSON[_0x511840(0x279)](_0x523b66[_0x511840(0x21b)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x304fc8=_0x561235,_0x2a664b;this[_0x304fc8(0x1d3)][_0x304fc8(0x2a5)]('offline'),(_0x2a664b=this[_0x304fc8(0x280)])==null||_0x2a664b[_0x304fc8(0x23e)]();}[_0x561235(0x2a0)](){var _0x23c6c8=_0x561235;this[_0x23c6c8(0x1d3)][_0x23c6c8(0x2a5)]('idle'),this['_fetchOperations']();}},_0x1a4a0a[_0x561235(0x1dc)]=_0x404a25([_0x150e52(0x2,_0x5c28c4['IConfigService']),_0x150e52(0x3,_0x5c28c4[_0x561235(0x20c)](_0x543b2b)),_0x150e52(0x4,_0x5c28c4[_0x561235(0x1d0)])],_0x1a4a0a[_0x561235(0x1dc)]);function _0xaf5b0b(){var _0x54fb0d=_0x561235;const _0x5eb00e=_0xca39c1[_0x54fb0d(0x211)](_0x1a4a0a[_0x54fb0d(0x233)]),_0x29da83=_0xca39c1[_0x54fb0d(0x211)](_0x5c28c4[_0x54fb0d(0x29b)]),_0x32c640=_0xca39c1[_0x54fb0d(0x206)](()=>_0x29da83['getCurrentTypeOfUnit$'](_0x5c28c4['UniverInstanceType'][_0x54fb0d(0x26d)]),void 0x0,!0x1,[]),[_0x33aeb1,_0x14a5d9]=_0xfc3b01[_0x54fb0d(0x1de)](null),[_0x1dea5d,_0x3d0ba3]=_0xfc3b01[_0x54fb0d(0x1de)](_0x33435e[_0x54fb0d(0x26e)]),_0xb4dd75=_0xfc3b01[_0x54fb0d(0x24e)](null);return _0xfc3b01['useEffect'](()=>(_0x32c640&&_0x5eb00e[_0x54fb0d(0x1cd)](_0x32c640[_0x54fb0d(0x1da)]())[_0x54fb0d(0x224)](_0x1d95d4=>{var _0x1259f5=_0x54fb0d;_0x14a5d9(_0x1d95d4),_0xb4dd75[_0x1259f5(0x276)]=_0x1d95d4[_0x1259f5(0x1d6)][_0x1259f5(0x28c)](_0x483c42=>{_0x3d0ba3(_0x483c42);});}),()=>{var _0x5d296f=_0x54fb0d,_0x92d4db;(_0x92d4db=_0xb4dd75['current'])==null||_0x92d4db['unsubscribe'](),_0xb4dd75[_0x5d296f(0x276)]=null;}),[_0x32c640,_0x5eb00e]),_0x33aeb1?_0x250593['jsx'](_0x21c058[_0x54fb0d(0x1cc)],{'align':_0x54fb0d(0x20f),'disabled':_0x1dea5d===_0x33435e[_0x54fb0d(0x232)],'className':_0x54fb0d(0x1ca),'overlay':_0x250593[_0x54fb0d(0x1eb)](_0x458f3d,{'status':_0x1dea5d,'coordinator':_0x33aeb1}),'children':_0x250593['jsx'](_0x54fb0d(0x1fa),{'className':_0x21c058[_0x54fb0d(0x20e)](_0x54fb0d(0x1be),{'univer-cursor-not-allowed':_0x1dea5d===_0x33435e['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1dea5d!==_0x33435e['OFFLINE']}),'type':'button','children':_0x250593[_0x54fb0d(0x1eb)](_0x4f37fe,{'className':_0x54fb0d(0x2b0)})})}):null;}function _0x458f3d(_0x4982e4){var _0x413968=_0x561235;const {status:_0x38c4da,coordinator:_0x31cd0b}=_0x4982e4;switch(_0x38c4da){case _0x33435e[_0x413968(0x26e)]:return _0x250593['jsx'](_0x482701,{'coordinator':_0x31cd0b});case _0x33435e['FOLLOWING']:return _0x250593[_0x413968(0x1eb)](_0xe88b3d,{'coordinator':_0x31cd0b});case _0x33435e['NOT_FOLLOWING']:return _0x250593[_0x413968(0x1eb)](_0x3ab17e,{'coordinator':_0x31cd0b});case _0x33435e[_0x413968(0x232)]:return _0x250593[_0x413968(0x1eb)](_0x576314,{});case _0x33435e['PRESENTING']:return _0x250593[_0x413968(0x1eb)](_0x11c86d,{'coordinator':_0x31cd0b});default:return null;}}function _0x482701(_0x39063f){var _0x428fd5=_0x561235;const {coordinator:_0x5e8b96}=_0x39063f;return _0x250593['jsxs'](_0x250593[_0x428fd5(0x297)],{'children':[_0x250593[_0x428fd5(0x1eb)](_0x428fd5(0x1e7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x428fd5(0x225)}),_0x250593[_0x428fd5(0x1eb)](_0x21c058[_0x428fd5(0x268)],{'onClick':()=>_0x5e8b96[_0x428fd5(0x1ff)](),'children':_0x428fd5(0x292)})]});}function _0xe88b3d(_0x114755){var _0x125447=_0x561235;const {coordinator:_0x2dc12c}=_0x114755;return _0x250593['jsxs'](_0x250593[_0x125447(0x297)],{'children':[_0x250593[_0x125447(0x1eb)](_0x125447(0x1e7),{'className':_0x125447(0x1db),'children':_0x125447(0x257)}),_0x250593[_0x125447(0x1eb)](_0x21c058['Button'],{'onClick':()=>_0x2dc12c[_0x125447(0x2a1)](),'children':_0x125447(0x253)})]});}function _0x3ab17e(_0x35dd8f){var _0x5b0118=_0x561235;const {coordinator:_0x465678}=_0x35dd8f;return _0x250593[_0x5b0118(0x1b9)](_0x250593[_0x5b0118(0x297)],{'children':[_0x250593[_0x5b0118(0x1eb)](_0x5b0118(0x1e7),{'className':_0x5b0118(0x1db),'children':_0x5b0118(0x260)}),_0x250593['jsx'](_0x21c058[_0x5b0118(0x268)],{'variant':_0x5b0118(0x242),'onClick':()=>_0x465678['startFollowing'](),'children':'Start\x20following'})]});}function _0x11c86d(_0x31a7a7){var _0x38cb4e=_0x561235;const {coordinator:_0x781671}=_0x31a7a7;return _0x250593[_0x38cb4e(0x1b9)](_0x250593['Fragment'],{'children':[_0x250593[_0x38cb4e(0x1eb)]('div',{'className':_0x38cb4e(0x1db),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x250593[_0x38cb4e(0x1eb)](_0x21c058[_0x38cb4e(0x268)],{'variant':_0x38cb4e(0x28d),'onClick':()=>_0x781671['stopPresenting'](),'children':_0x38cb4e(0x286)})]});}function _0x576314(){var _0x3a05ef=_0x561235;return _0x250593[_0x3a05ef(0x1eb)](_0x250593[_0x3a05ef(0x297)],{'children':_0x3a05ef(0x241)});}var _0x42ac1b=Object[_0x561235(0x1e9)],_0x4494de=(_0x371644,_0x34bcb4,_0x5ad3b2,_0x2f4501)=>{var _0x9578e4=_0x561235;for(var _0xe8ff80=_0x2f4501>0x1?void 0x0:_0x2f4501?_0x42ac1b(_0x34bcb4,_0x5ad3b2):_0x34bcb4,_0x5e8842=_0x371644[_0x9578e4(0x29a)]-0x1,_0x532478;_0x5e8842>=0x0;_0x5e8842--)(_0x532478=_0x371644[_0x5e8842])&&(_0xe8ff80=_0x532478(_0xe8ff80)||_0xe8ff80);return _0xe8ff80;},_0x2519ed=(_0x41fb31,_0x2913b7)=>(_0x4dcb1d,_0x3dddde)=>_0x2913b7(_0x4dcb1d,_0x3dddde,_0x41fb31);_0x1a4a0a[_0x561235(0x1c5)]=class extends _0x5c28c4[_0x561235(0x1d4)]{constructor(_0x15bc47,_0x297bfe){var _0x17af68=_0x561235;super(),this[_0x17af68(0x1dd)]=_0x15bc47,this['_uiPartsService']=_0x297bfe,this[_0x17af68(0x215)]();}[_0x561235(0x215)](){var _0x3fbcf8=_0x561235;this['disposeWithMe'](this[_0x3fbcf8(0x23b)][_0x3fbcf8(0x1ea)](_0xca39c1[_0x3fbcf8(0x1f9)][_0x3fbcf8(0x1e1)],()=>_0xca39c1[_0x3fbcf8(0x1e6)](_0xaf5b0b,this[_0x3fbcf8(0x1dd)])));}},_0x1a4a0a[_0x561235(0x1c5)]=_0x4494de([_0x2519ed(0x0,_0x5c28c4[_0x561235(0x20c)](_0x5c28c4[_0x561235(0x22a)])),_0x2519ed(0x1,_0xca39c1[_0x561235(0x1ed)])],_0x1a4a0a[_0x561235(0x1c5)]);var _0x3d4b34=Object[_0x561235(0x27b)],_0x33f8a4=Object['getOwnPropertyDescriptor'],_0x5eb9cb=(_0x3f180c,_0x4324a1,_0x18b74)=>_0x4324a1 in _0x3f180c?_0x3d4b34(_0x3f180c,_0x4324a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18b74}):_0x3f180c[_0x4324a1]=_0x18b74,_0x370386=(_0x386a7f,_0x57a42f,_0x2fbdf1,_0x5daf6c)=>{for(var _0x10c7d0=_0x5daf6c>0x1?void 0x0:_0x5daf6c?_0x33f8a4(_0x57a42f,_0x2fbdf1):_0x57a42f,_0x18f060=_0x386a7f['length']-0x1,_0x584254;_0x18f060>=0x0;_0x18f060--)(_0x584254=_0x386a7f[_0x18f060])&&(_0x10c7d0=_0x584254(_0x10c7d0)||_0x10c7d0);return _0x10c7d0;},_0x38382f=(_0x20482f,_0x461b0e)=>(_0x535ef8,_0x23f9a3)=>_0x461b0e(_0x535ef8,_0x23f9a3,_0x20482f),_0x190040=(_0x1d7105,_0x238be1,_0x219146)=>_0x5eb9cb(_0x1d7105,typeof _0x238be1!='symbol'?_0x238be1+'':_0x238be1,_0x219146);const _0x4aa30b='UNIVER_LIVE_SHARE_PLUGIN';_0x1a4a0a[_0x561235(0x269)]=class extends _0x5c28c4[_0x561235(0x24b)]{constructor(_0x1d16f5=_0x174068,_0x2d4a27,_0x5a69fd){var _0x23f74e=_0x561235;super(),this['_config']=_0x1d16f5,this[_0x23f74e(0x1dd)]=_0x2d4a27,this['_configService']=_0x5a69fd;const {..._0x1b7e2a}=_0x5c28c4[_0x23f74e(0x1e4)]({},_0x174068,this[_0x23f74e(0x1e0)]);this['_configService'][_0x23f74e(0x261)](_0x31cdc9,_0x1b7e2a);}[_0x561235(0x27e)](){var _0x4fc28f=_0x561235;_0x5c28c4[_0x4fc28f(0x1e8)](this[_0x4fc28f(0x1dd)],_0x5c28c4[_0x4fc28f(0x249)]([[_0x543b2b],[_0x1a4a0a['LiveShareController']],[_0x4e66a6],[_0x1a4a0a[_0x4fc28f(0x1c5)]]],this[_0x4fc28f(0x1e0)][_0x4fc28f(0x24a)])),_0x5c28c4[_0x4fc28f(0x22e)](this['_injector'],[[_0x4e66a6]]);}['onRendered'](){var _0x550f14=_0x561235;_0x5c28c4[_0x550f14(0x22e)](this[_0x550f14(0x1dd)],[[_0x1a4a0a[_0x550f14(0x1c5)]]]);}},_0x190040(_0x1a4a0a[_0x561235(0x269)],_0x561235(0x263),_0x5c28c4[_0x561235(0x226)][_0x561235(0x298)]),_0x190040(_0x1a4a0a[_0x561235(0x269)],_0x561235(0x1bd),_0x4aa30b),_0x1a4a0a['UniverLiveSharePlugin']=_0x370386([_0x5c28c4[_0x561235(0x27f)](_0x5552b1[_0x561235(0x2ad)]),_0x38382f(0x1,_0x5c28c4[_0x561235(0x20c)](_0x5c28c4[_0x561235(0x22a)])),_0x38382f(0x2,_0x5c28c4[_0x561235(0x2a2)])],_0x1a4a0a['UniverLiveSharePlugin']),_0x1a4a0a[_0x561235(0x26b)]=_0xaf5b0b,_0x1a4a0a[_0x561235(0x1bf)]=_0x543b2b,_0x1a4a0a[_0x561235(0x296)]=_0x33435e,Object['defineProperty'](_0x1a4a0a,Symbol[_0x561235(0x25b)],{'value':_0x561235(0x208)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.9.2-nightly.
|
|
3
|
+
"version": "0.9.2-nightly.202507121606",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.6",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.9.2-nightly.
|
|
51
|
-
"@univerjs
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/ui": "0.9.2-nightly.
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.9.2-nightly.202507121606",
|
|
51
|
+
"@univerjs/sheets": "0.9.2-nightly.202507121606",
|
|
52
|
+
"@univerjs/core": "0.9.2-nightly.202507121606",
|
|
53
|
+
"@univerjs/design": "0.9.2-nightly.202507121606",
|
|
54
|
+
"@univerjs-pro/collaboration-client": "0.9.2-nightly.202507121606",
|
|
55
|
+
"@univerjs/ui": "0.9.2-nightly.202507121606",
|
|
56
|
+
"@univerjs/sheets-ui": "0.9.2-nightly.202507121606"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs
|
|
66
|
+
"@univerjs-infra/shared": "0.9.2",
|
|
67
|
+
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|