@univerjs-pro/live-share 0.10.10-nightly.202510170942 → 0.10.10-nightly.202510180327
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 _0x471a0d=_0x4657;(function(_0x4cbc26,_0x2a49d7){var _0x2411d4=_0x4657,_0x13d9a3=_0x4cbc26();while(!![]){try{var _0x11df4b=-parseInt(_0x2411d4(0x1a6))/0x1+parseInt(_0x2411d4(0x1c1))/0x2+parseInt(_0x2411d4(0x19d))/0x3*(parseInt(_0x2411d4(0x1e8))/0x4)+-parseInt(_0x2411d4(0x111))/0x5*(parseInt(_0x2411d4(0x16b))/0x6)+-parseInt(_0x2411d4(0x178))/0x7*(-parseInt(_0x2411d4(0x1ab))/0x8)+parseInt(_0x2411d4(0x119))/0x9*(-parseInt(_0x2411d4(0x1e1))/0xa)+parseInt(_0x2411d4(0x1ef))/0xb*(parseInt(_0x2411d4(0x161))/0xc);if(_0x11df4b===_0x2a49d7)break;else _0x13d9a3['push'](_0x13d9a3['shift']());}catch(_0x5be28e){_0x13d9a3['push'](_0x13d9a3['shift']());}}}(_0x5c70,0x2b6a4));var U=Object['defineProperty'],F=(_0x25fe95,_0x5b38c4,_0x104d4d)=>_0x5b38c4 in _0x25fe95?U(_0x25fe95,_0x5b38c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x104d4d}):_0x25fe95[_0x5b38c4]=_0x104d4d,v=(_0x54c128,_0x2cdfba,_0x470d6c)=>F(_0x54c128,typeof _0x2cdfba!=_0x471a0d(0x1ea)?_0x2cdfba+'':_0x2cdfba,_0x470d6c);Object[_0x471a0d(0x15d)](exports,Symbol[_0x471a0d(0x1a5)],{'value':_0x471a0d(0x151)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x311f37=_0x471a0d;return u=Object[_0x311f37(0x121)]||function(_0x3d00db){var _0x5ba8da=_0x311f37;for(var _0x2c35ac,_0x1c57f8=0x1,_0x2c345a=arguments[_0x5ba8da(0x1cf)];_0x1c57f8<_0x2c345a;_0x1c57f8++){_0x2c35ac=arguments[_0x1c57f8];for(var _0x109a33 in _0x2c35ac)Object[_0x5ba8da(0x156)]['hasOwnProperty'][_0x5ba8da(0x1c9)](_0x2c35ac,_0x109a33)&&(_0x3d00db[_0x109a33]=_0x2c35ac[_0x109a33]);}return _0x3d00db;},u[_0x311f37(0x1ae)](this,arguments);},$=function(_0x15cc5c,_0x137db8){var _0x3164f3=_0x471a0d,_0x1c228c={};for(var _0x28c775 in _0x15cc5c)Object[_0x3164f3(0x156)]['hasOwnProperty'][_0x3164f3(0x1c9)](_0x15cc5c,_0x28c775)&&_0x137db8[_0x3164f3(0x152)](_0x28c775)<0x0&&(_0x1c228c[_0x28c775]=_0x15cc5c[_0x28c775]);if(_0x15cc5c!=null&&typeof Object[_0x3164f3(0x1c6)]==_0x3164f3(0x1ed)){for(var _0x4e8221=0x0,_0x28c775=Object['getOwnPropertySymbols'](_0x15cc5c);_0x4e8221<_0x28c775['length'];_0x4e8221++)_0x137db8[_0x3164f3(0x152)](_0x28c775[_0x4e8221])<0x0&&Object['prototype'][_0x3164f3(0x13c)][_0x3164f3(0x1c9)](_0x15cc5c,_0x28c775[_0x4e8221])&&(_0x1c228c[_0x28c775[_0x4e8221]]=_0x15cc5c[_0x28c775[_0x4e8221]]);}return _0x1c228c;},j=f[_0x471a0d(0x160)](function(_0xfad191,_0x3fb068){var _0x438a30=_0x471a0d,_0x4e75da=_0xfad191[_0x438a30(0x1df)],_0x1d5212=_0xfad191['id'],_0x4b2990=_0xfad191[_0x438a30(0x117)],_0x34cdc3=_0xfad191[_0x438a30(0x1d4)],_0x2fe601=$(_0xfad191,[_0x438a30(0x1df),'id',_0x438a30(0x117),_0x438a30(0x1d4)]),_0x2399f3=_0x438a30(0x19a)[_0x438a30(0x1b1)](_0x1d5212,'\x20')[_0x438a30(0x1b1)](_0x4b2990||'')[_0x438a30(0x11a)](),_0x2d396c=f['useRef']('_'['concat'](k()));return y(_0x4e75da,''[_0x438a30(0x1b1)](_0x1d5212),{'defIds':_0x4e75da[_0x438a30(0x19b)],'idSuffix':_0x2d396c['current']},u({'ref':_0x3fb068,'className':_0x2399f3},_0x2fe601),_0x34cdc3);});function y(_0x469185,_0xfbfeb0,_0x1ae6ca,_0x159ab2,_0x579be1){var _0x382dc0=_0x471a0d;return f[_0x382dc0(0x1b0)](_0x469185['tag'],u(u({'key':_0xfbfeb0},H(_0x469185,_0x1ae6ca,_0x579be1)),_0x159ab2),(V(_0x469185,_0x1ae6ca)[_0x382dc0(0x1af)]||[])[_0x382dc0(0x1eb)](function(_0x20375d,_0x517ffc){var _0x140b71=_0x382dc0;return y(_0x20375d,''['concat'](_0xfbfeb0,'-')[_0x140b71(0x1b1)](_0x469185[_0x140b71(0x1bc)],'-')[_0x140b71(0x1b1)](_0x517ffc),_0x1ae6ca,void 0x0,_0x579be1);}));}function H(_0x25fb15,_0x3962f4,_0x2441d0){var _0x19119c=_0x471a0d,_0x4aeaa0=u({},_0x25fb15[_0x19119c(0x13e)]);_0x2441d0!=null&&_0x2441d0['colorChannel1']&&_0x4aeaa0['fill']===_0x19119c(0x17b)&&(_0x4aeaa0['fill']=_0x2441d0['colorChannel1']),_0x25fb15[_0x19119c(0x1bc)]===_0x19119c(0x13f)&&_0x4aeaa0['id']&&(_0x4aeaa0['id']=_0x4aeaa0['id']+_0x3962f4[_0x19119c(0x18d)]),Object[_0x19119c(0x12f)](_0x4aeaa0)[_0x19119c(0x184)](function(_0x104ac5){var _0x5c7cbe=_0x19119c,_0x146e3e=_0x104ac5[0x0],_0xa10a7c=_0x104ac5[0x1];_0x146e3e===_0x5c7cbe(0x13f)&&typeof _0xa10a7c==_0x5c7cbe(0x17d)&&(_0x4aeaa0[_0x146e3e]=_0xa10a7c[_0x5c7cbe(0x192)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3962f4[_0x5c7cbe(0x18d)],')')));});var _0x1c2b58=_0x3962f4['defIds'];return!_0x1c2b58||_0x1c2b58[_0x19119c(0x1cf)]===0x0||(_0x25fb15['tag']===_0x19119c(0x170)&&_0x4aeaa0[_0x19119c(0x1c0)]&&(_0x4aeaa0[_0x19119c(0x1c0)]=_0x4aeaa0[_0x19119c(0x1c0)]+_0x3962f4[_0x19119c(0x18d)]),Object[_0x19119c(0x12f)](_0x4aeaa0)[_0x19119c(0x184)](function(_0x133eeb){var _0x4868f4=_0x19119c,_0x32a566=_0x133eeb[0x0],_0x119bf3=_0x133eeb[0x1];typeof _0x119bf3=='string'&&(_0x4aeaa0[_0x32a566]=_0x119bf3[_0x4868f4(0x192)](/url\(#(.*)\)/,'url(#$1'[_0x4868f4(0x1b1)](_0x3962f4[_0x4868f4(0x18d)],')')));})),_0x4aeaa0;}function V(_0x5f2bed,_0x12aa5c){var _0x1208b6=_0x471a0d,_0x54f049,_0x41b759=_0x12aa5c[_0x1208b6(0x19b)];return!_0x41b759||_0x41b759[_0x1208b6(0x1cf)]===0x0?_0x5f2bed:_0x5f2bed['tag']===_0x1208b6(0x177)&&(!((_0x54f049=_0x5f2bed[_0x1208b6(0x1af)])===null||_0x54f049===void 0x0)&&_0x54f049[_0x1208b6(0x1cf)])?u(u({},_0x5f2bed),{'children':_0x5f2bed[_0x1208b6(0x1af)][_0x1208b6(0x1eb)](function(_0x23a720){var _0x15e1ce=_0x1208b6;return typeof _0x23a720['attrs']['id']==_0x15e1ce(0x17d)&&_0x41b759&&_0x41b759['includes'](_0x23a720[_0x15e1ce(0x13e)]['id'])?u(u({},_0x23a720),{'attrs':u(u({},_0x23a720[_0x15e1ce(0x13e)]),{'id':_0x23a720['attrs']['id']+_0x12aa5c[_0x15e1ce(0x18d)]})}):_0x23a720;})}):_0x5f2bed;}function k(){var _0x1354a4=_0x471a0d;return Math[_0x1354a4(0x1b6)]()[_0x1354a4(0x1bb)](0x24)[_0x1354a4(0x1d0)](0x2,0x8);}j[_0x471a0d(0x1d8)]=_0x471a0d(0x115);var M={'tag':'svg','attrs':{'xmlns':_0x471a0d(0x179),'fill':_0x471a0d(0x1d3),'viewBox':_0x471a0d(0x145),'width':'1em','height':_0x471a0d(0x1b4)},'children':[{'tag':'path','attrs':{'fill':_0x471a0d(0x1e0),'d':_0x471a0d(0x15f)}},{'tag':'path','attrs':{'fill':_0x471a0d(0x1e0),'d':_0x471a0d(0x1e4),'fillRule':_0x471a0d(0x1e5),'clipRule':'evenodd'}}]},P=f[_0x471a0d(0x160)](function(_0xe3e355,_0x59d386){var _0x1e58db=_0x471a0d;return f['createElement'](j,Object[_0x1e58db(0x121)]({},_0xe3e355,{'id':_0x1e58db(0x15b),'ref':_0x59d386,'icon':M}));});P['displayName']=_0x471a0d(0x11d);class O extends o['Disposable']{constructor(){var _0x3151b9=_0x471a0d;super(...arguments),v(this,_0x3151b9(0x1da),new Set()),v(this,_0x3151b9(0x12d),new Set());}[_0x471a0d(0x1b2)](_0x426330){var _0x3f82de=_0x471a0d;return this[_0x3f82de(0x1da)]['add'](_0x426330),o[_0x3f82de(0x1b7)](()=>this[_0x3f82de(0x1da)][_0x3f82de(0x129)](_0x426330));}[_0x471a0d(0x13d)](_0x36344d){var _0x59cf26=_0x471a0d;return this[_0x59cf26(0x12d)][_0x59cf26(0x1d9)](_0x36344d),o[_0x59cf26(0x1b7)](()=>this[_0x59cf26(0x12d)][_0x59cf26(0x129)](_0x36344d));}[_0x471a0d(0x174)](_0x1ec9ab){var _0x154349=_0x471a0d;return this['_sharedOperations'][_0x154349(0x12c)](_0x1ec9ab);}['getInitialStates'](_0x35215f){var _0x9e2bbb=_0x471a0d;return Array[_0x9e2bbb(0x1bd)](this['_reporters'])['map'](_0x447285=>_0x447285(_0x35215f));}}var q=Object[_0x471a0d(0x1e6)],R=(_0x437e5a,_0x301583,_0x396d5f,_0x3f0a0d)=>{for(var _0x6c447f=_0x3f0a0d>0x1?void 0x0:_0x3f0a0d?q(_0x301583,_0x396d5f):_0x301583,_0x389e27=_0x437e5a['length']-0x1,_0x529e34;_0x389e27>=0x0;_0x389e27--)(_0x529e34=_0x437e5a[_0x389e27])&&(_0x6c447f=_0x529e34(_0x6c447f)||_0x6c447f);return _0x6c447f;},S=(_0x11e664,_0x3cdbdc)=>(_0x56a6bc,_0x4b6a3d)=>_0x3cdbdc(_0x56a6bc,_0x4b6a3d,_0x11e664);exports[_0x471a0d(0x1be)]=class extends o[_0x471a0d(0x1b9)]{constructor(_0x153d9c,_0x972abb,_0x5a1cdf){var _0x4d9443=_0x471a0d;super(),v(this,'_entities',new Map()),(this['_univerInstanceService']=_0x153d9c,this[_0x4d9443(0x17a)]=_0x972abb,this[_0x4d9443(0x168)]=_0x5a1cdf,this[_0x4d9443(0x140)]());}async[_0x471a0d(0x1d6)](_0x2867e6){var _0x46d4aa=_0x471a0d;return this[_0x46d4aa(0x19e)]['has'](_0x2867e6)||await this[_0x46d4aa(0x18a)](_0x2867e6),this[_0x46d4aa(0x19e)][_0x46d4aa(0x173)](_0x2867e6);}[_0x471a0d(0x140)](){var _0x20a649=_0x471a0d;this[_0x20a649(0x1c3)]['getTypeOfUnitAdded$'](o[_0x20a649(0x15c)][_0x20a649(0x137)])['pipe'](b[_0x20a649(0x147)](this['dispose$']))['subscribe'](async _0x17fedd=>{var _0x5d999b=_0x20a649;const _0x206744=_0x17fedd[_0x5d999b(0x149)]();this[_0x5d999b(0x19e)][_0x5d999b(0x12c)](_0x206744)||this['_startLiveShareCoordinator'](_0x206744);}),this[_0x20a649(0x1c3)][_0x20a649(0x11c)](o['UniverInstanceType'][_0x20a649(0x137)])[_0x20a649(0x1d5)](b['takeUntil'](this[_0x20a649(0x199)]))['subscribe'](_0x160932=>{var _0x32ac10=_0x20a649;const _0x222cb5=_0x160932[_0x32ac10(0x149)](),_0x5a6510=this[_0x32ac10(0x19e)][_0x32ac10(0x173)](_0x222cb5);_0x5a6510==null||_0x5a6510['dispose']();});}async['_startLiveShareCoordinator'](_0x530260){var _0x10a8f7=_0x471a0d;const _0x8c417e=await this[_0x10a8f7(0x168)][_0x10a8f7(0x1cc)](_0x530260),_0x276885=this[_0x10a8f7(0x17a)]['createInstance'](exports[_0x10a8f7(0x114)],_0x530260,_0x8c417e);return _0x276885['init'](),this['_entities']['set'](_0x530260,_0x276885),_0x276885;}},exports[_0x471a0d(0x1be)]=R([S(0x0,o[_0x471a0d(0x12e)]),S(0x1,o[_0x471a0d(0x1c8)](o['Injector'])),S(0x2,o['Inject'](m[_0x471a0d(0x171)]))],exports[_0x471a0d(0x1be)]);var h=(_0x42e12e=>(_0x42e12e[_0x471a0d(0x1c4)]=_0x471a0d(0x194),_0x42e12e['IDLE']=_0x471a0d(0x16c),_0x42e12e[_0x471a0d(0x148)]=_0x471a0d(0x11e),_0x42e12e[_0x471a0d(0x1a0)]=_0x471a0d(0x11f),_0x42e12e['PRESENTING']=_0x471a0d(0x143),_0x42e12e))(h||{});const W=_0x471a0d(0x18e),G=0xc8;exports[_0x471a0d(0x114)]=class extends o[_0x471a0d(0x1b9)]{constructor(_0xc190ab,_0x68e809,_0x651a8e,_0x3ea704,_0x39c658){var _0xdcf189=_0x471a0d;super(),v(this,_0xdcf189(0x158),new w[(_0xdcf189(0x122))](_0xdcf189(0x16c))),v(this,_0xdcf189(0x12b),this[_0xdcf189(0x158)][_0xdcf189(0x1b8)]()),v(this,'_init',!0x1),v(this,'_commandDisposable',null),v(this,'_presenter',null),(this[_0xdcf189(0x116)]=_0xc190ab,this['_collabSession']=_0x68e809,this[_0xdcf189(0x154)]=_0x651a8e,this[_0xdcf189(0x14a)]=_0x3ea704,this[_0xdcf189(0x187)]=_0x39c658);}get[_0x471a0d(0x1db)](){var _0x201e85=_0x471a0d;return this[_0x201e85(0x158)][_0x201e85(0x197)]();}[_0x471a0d(0x181)](){var _0x19f5e3=_0x471a0d,_0x5d530a;(_0x5d530a=this[_0x19f5e3(0x157)])==null||_0x5d530a[_0x19f5e3(0x181)](),this['_status$']['next'](_0x19f5e3(0x16c)),this[_0x19f5e3(0x158)][_0x19f5e3(0x1ee)]();}[_0x471a0d(0x1f0)](){var _0x20df57=_0x471a0d;this[_0x20df57(0x140)]||(this[_0x20df57(0x140)]=!0x0,this['_collabSession'][_0x20df57(0x1d2)][_0x20df57(0x1d5)](b['takeUntil'](this[_0x20df57(0x199)]))[_0x20df57(0x18f)](_0x2f5439=>{var _0x2a7bba=_0x20df57;switch(_0x2f5439){case m[_0x2a7bba(0x14c)][_0x2a7bba(0x1c4)]:this[_0x2a7bba(0x1ce)]();break;case m[_0x2a7bba(0x14c)][_0x2a7bba(0x16a)]:this['_handleOnline']();break;}}),this['_collabSession']['event$'][_0x20df57(0x1d5)](b[_0x20df57(0x147)](this[_0x20df57(0x199)]))[_0x20df57(0x18f)](_0xc67bd2=>{var _0x2a5937=_0x20df57;const {eventID:_0x1bc179}=_0xc67bd2;switch(_0x1bc179){case _['CollaborationEvent'][_0x2a5937(0x1a7)]:this[_0x2a5937(0x1a2)](_0xc67bd2);break;case _[_0x2a5937(0x113)]['LIVESHARE_OPERATION']:this[_0x2a5937(0x1a9)](_0xc67bd2);break;case _[_0x2a5937(0x113)]['LIVESHARE_TERMINATE']:this[_0x2a5937(0x167)]();break;case _[_0x2a5937(0x113)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0xc67bd2);break;}}));}[_0x471a0d(0x176)](){var _0xfe9fa7=_0x471a0d;this['_collabSession'][_0xfe9fa7(0x131)]({'eventID':_[_0xfe9fa7(0x113)][_0xfe9fa7(0x182)],'data':{'unitID':this['_unitID'],'userID':this[_0xfe9fa7(0x1ca)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){var _0xcb32ce=_0x471a0d;this[_0xcb32ce(0x1db)]===_0xcb32ce(0x143)&&(this['_status$'][_0xcb32ce(0x132)]('idle'),this[_0xcb32ce(0x1ca)][_0xcb32ce(0x131)]({'eventID':_[_0xcb32ce(0x113)][_0xcb32ce(0x127)],'data':{'unitID':this[_0xcb32ce(0x116)]}},this[_0xcb32ce(0x116)]));}[_0x471a0d(0x164)](){var _0x15aa98=_0x471a0d;this['_status']===_0x15aa98(0x11f)&&(this[_0x15aa98(0x158)][_0x15aa98(0x132)](_0x15aa98(0x11e)),this[_0x15aa98(0x198)]());}[_0x471a0d(0x19c)](){var _0x53cc37=_0x471a0d;this[_0x53cc37(0x1db)]===_0x53cc37(0x11e)&&this[_0x53cc37(0x14b)]();}['_handleNewHost'](_0x5b7e2b){var _0x49e49c=_0x471a0d;const {presenter:_0x4f125a}=_0x5b7e2b[_0x49e49c(0x189)],_0x5eb56e=this[_0x49e49c(0x1ca)][_0x49e49c(0x1dd)]();this[_0x49e49c(0x1e2)]=_0x4f125a,_0x4f125a===_0x5eb56e?(this['_stopFollowing'](),this[_0x49e49c(0x14f)]()):this[_0x49e49c(0x1db)]!==_0x49e49c(0x11f)&&(this[_0x49e49c(0x169)](),this['_startFollowing']());}[_0x471a0d(0x16d)](){var _0x91ae12=_0x471a0d;const _0x6a8f76={'eventID':_[_0x91ae12(0x113)][_0x91ae12(0x126)]};this[_0x91ae12(0x1ca)][_0x91ae12(0x131)](_0x6a8f76,this[_0x91ae12(0x116)]);}[_0x471a0d(0x167)](){var _0x65fdda=_0x471a0d;this[_0x65fdda(0x1e2)]=null,this[_0x65fdda(0x1db)]!==_0x65fdda(0x143)&&this[_0x65fdda(0x1a4)]();}[_0x471a0d(0x128)](_0x27cb99){var _0x1735fc=_0x471a0d;if(this['_status']==='following'&&this['_presenter']===_0x27cb99[_0x1735fc(0x189)][_0x1735fc(0x17f)]){const _0x5a8667=_[_0x1735fc(0x196)](_0x27cb99[_0x1735fc(0x189)])[_0x1735fc(0x1bf)][_0x1735fc(0x163)]()[_0x1735fc(0x1b5)](_0x5c0d94=>_0x5c0d94['id']===C[_0x1735fc(0x155)]['id']);if(_0x5a8667){const _0x4a0c61=_0x5a8667[_0x1735fc(0x1a8)][_0x1735fc(0x125)],_0xc134a7=_0x5a8667[_0x1735fc(0x1a8)][_0x1735fc(0x166)]['id'];setTimeout(()=>{var _0x368a95=_0x1735fc;this[_0x368a95(0x187)]['executeCommand'](C[_0x368a95(0x146)]['id'],{'unitId':_0x4a0c61,'subUnitId':_0xc134a7},{'fromCollab':!0x0});});}}}[_0x471a0d(0x14f)](){var _0x321738=_0x471a0d;this[_0x321738(0x158)][_0x321738(0x132)]('presenting');const _0xe00a5=new Map(),_0x441f8a=this[_0x321738(0x157)]=new o[(_0x321738(0x14e))]();_0x441f8a[_0x321738(0x1d9)](o[_0x321738(0x1b7)](()=>{var _0x4fe73a=_0x321738;_0xe00a5[_0x4fe73a(0x184)](_0x3035a5=>_0x3035a5['complete']()),_0xe00a5['clear']();})),_0x441f8a[_0x321738(0x1d9)](this[_0x321738(0x187)][_0x321738(0x188)](_0x5c506b=>{var _0x11c079=_0x321738,_0x25bba2;if(_0x5c506b[_0x11c079(0x142)]!==o['CommandType'][_0x11c079(0x14d)]||!this[_0x11c079(0x14a)]['shouldShareOperation'](_0x5c506b['id']))return;const {id:_0x26f631}=_0x5c506b;let _0x45f3e0;_0xe00a5[_0x11c079(0x12c)](_0x26f631)?_0x45f3e0=_0xe00a5[_0x11c079(0x173)](_0x26f631):(_0x45f3e0=new w['Subject'](),_0xe00a5['set'](_0x26f631,_0x45f3e0),_0x45f3e0[_0x11c079(0x1d5)](b['throttleTime']((_0x25bba2=this['_configService'][_0x11c079(0x144)](W))!=null?_0x25bba2:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x11c079(0x18f)](_0x111d7f=>{var _0x1e60c7=_0x11c079;this[_0x1e60c7(0x1ca)][_0x1e60c7(0x131)]({'eventID':_[_0x1e60c7(0x113)][_0x1e60c7(0x1cd)],'data':{'unitID':this[_0x1e60c7(0x116)],'operations':{[_0x111d7f['id']]:{'id':_0x111d7f['id'],'params':JSON['stringify'](_0x111d7f[_0x1e60c7(0x1a8)])}}}},this[_0x1e60c7(0x116)]);})),_0x45f3e0[_0x11c079(0x132)](_0x5c506b);})),this[_0x321738(0x14a)][_0x321738(0x193)](this[_0x321738(0x116)])[_0x321738(0x184)](_0x237425=>this['_collabSession'][_0x321738(0x131)]({'eventID':_[_0x321738(0x113)][_0x321738(0x1cd)],'data':{'unitID':this[_0x321738(0x116)],'operations':{[_0x237425['id']]:{'id':_0x237425['id'],'params':JSON[_0x321738(0x135)](_0x237425[_0x321738(0x1a8)])}}}},this['_unitID']));}[_0x471a0d(0x169)](){var _0x5713bc=_0x471a0d,_0x275ed7;this['_status$']['next'](_0x5713bc(0x16c)),(_0x275ed7=this[_0x5713bc(0x157)])==null||_0x275ed7[_0x5713bc(0x181)](),this[_0x5713bc(0x157)]=null;}[_0x471a0d(0x198)](){var _0x1c69aa=_0x471a0d,_0x46f01a;(_0x46f01a=this['_commandDisposable'])==null||_0x46f01a['dispose'](),this[_0x1c69aa(0x158)][_0x1c69aa(0x132)](_0x1c69aa(0x11e));}[_0x471a0d(0x1a4)](){var _0x916e29=_0x471a0d,_0x50e09b;this['_status$'][_0x916e29(0x132)](_0x916e29(0x16c)),(_0x50e09b=this[_0x916e29(0x157)])==null||_0x50e09b[_0x916e29(0x181)](),this[_0x916e29(0x157)]=null;}['_stopFollowing'](){var _0x8f7e35=_0x471a0d,_0x234315;this['_status$'][_0x8f7e35(0x132)](_0x8f7e35(0x11f)),(_0x234315=this['_commandDisposable'])==null||_0x234315[_0x8f7e35(0x181)]();}[_0x471a0d(0x1a9)](_0x774dcb){var _0x172a0f=_0x471a0d;if([_0x172a0f(0x143),_0x172a0f(0x11f),_0x172a0f(0x194)][_0x172a0f(0x11b)](this['_status'])||!_0x774dcb[_0x172a0f(0x189)][_0x172a0f(0x1aa)]||_0x774dcb[_0x172a0f(0x189)]['presenter']===this['_collabSession'][_0x172a0f(0x1dd)]())return;this['_status']===_0x172a0f(0x16c)&&this[_0x172a0f(0x198)]();const _0x20819e=_0x774dcb[_0x172a0f(0x189)][_0x172a0f(0x124)];Object[_0x172a0f(0x191)](_0x20819e)[_0x172a0f(0x184)](_0x416b8d=>{var _0x122803=_0x172a0f;this['_commandService'][_0x122803(0x1ac)](_0x416b8d['id'],_0x416b8d['params']?JSON['parse'](_0x416b8d[_0x122803(0x1a8)]):null,{'fromCollab':!0x0});});}[_0x471a0d(0x1ce)](){var _0x20053f=_0x471a0d,_0x2b4dbc;this['_status$'][_0x20053f(0x132)]('offline'),(_0x2b4dbc=this[_0x20053f(0x157)])==null||_0x2b4dbc['dispose']();}['_handleOnline'](){var _0xdd793=_0x471a0d;this['_status$'][_0xdd793(0x132)](_0xdd793(0x16c)),this[_0xdd793(0x16d)]();}},exports[_0x471a0d(0x114)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x471a0d(0x1c8)](O)),S(0x4,o[_0x471a0d(0x1ba)])],exports[_0x471a0d(0x114)]);function _0x4657(_0x911a3c,_0x2d72d9){var _0x5c7048=_0x5c70();return _0x4657=function(_0x465705,_0x1da96d){_0x465705=_0x465705-0x111;var _0x4742cb=_0x5c7048[_0x465705];return _0x4742cb;},_0x4657(_0x911a3c,_0x2d72d9);}function A(){var _0x1df21f=_0x471a0d;const _0x3ecf71=p[_0x1df21f(0x153)](exports['LiveShareController']),_0x4362d4=p[_0x1df21f(0x153)](o[_0x1df21f(0x12e)]),_0x40b321=p[_0x1df21f(0x13a)](()=>_0x4362d4[_0x1df21f(0x1de)](o[_0x1df21f(0x15c)][_0x1df21f(0x137)]),void 0x0,!0x1,[]),[_0x4bc1a1,_0x57e96b]=f[_0x1df21f(0x1d7)](null),[_0x27a77e,_0x203acf]=f[_0x1df21f(0x1d7)](h[_0x1df21f(0x1c5)]),_0x902344=f[_0x1df21f(0x1ec)](null);return f['useEffect'](()=>(_0x40b321&&_0x3ecf71['getLiveShareCoordinator'](_0x40b321['getUnitId']())[_0x1df21f(0x186)](_0x321b23=>{var _0x46d0d7=_0x1df21f;_0x57e96b(_0x321b23),_0x902344[_0x46d0d7(0x172)]=_0x321b23[_0x46d0d7(0x12b)][_0x46d0d7(0x18f)](_0x238037=>{_0x203acf(_0x238037);});}),()=>{var _0xacce4c=_0x1df21f,_0x229fde;(_0x229fde=_0x902344['current'])==null||_0x229fde[_0xacce4c(0x1a3)](),_0x902344[_0xacce4c(0x172)]=null;}),[_0x40b321,_0x3ecf71]),_0x4bc1a1?l[_0x1df21f(0x1c7)](g[_0x1df21f(0x150)],{'align':_0x1df21f(0x17e),'disabled':_0x27a77e===h[_0x1df21f(0x1c4)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l['jsx'](B,{'status':_0x27a77e,'coordinator':_0x4bc1a1}),'children':l[_0x1df21f(0x1c7)](_0x1df21f(0x15e),{'className':g[_0x1df21f(0x195)](_0x1df21f(0x183),{'univer-cursor-not-allowed':_0x27a77e===h[_0x1df21f(0x1c4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x27a77e!==h['OFFLINE']}),'type':_0x1df21f(0x15e),'children':l[_0x1df21f(0x1c7)](P,{'className':_0x1df21f(0x112)})})}):null;}function B(_0xc7e566){var _0x55b0a2=_0x471a0d;const {status:_0x7c5c4f,coordinator:_0xde9efb}=_0xc7e566;switch(_0x7c5c4f){case h[_0x55b0a2(0x1c5)]:return l[_0x55b0a2(0x1c7)](Y,{'coordinator':_0xde9efb});case h[_0x55b0a2(0x148)]:return l[_0x55b0a2(0x1c7)](Z,{'coordinator':_0xde9efb});case h['NOT_FOLLOWING']:return l['jsx'](J,{'coordinator':_0xde9efb});case h[_0x55b0a2(0x1c4)]:return l[_0x55b0a2(0x1c7)](z,{});case h[_0x55b0a2(0x18c)]:return l[_0x55b0a2(0x1c7)](K,{'coordinator':_0xde9efb});default:return null;}}function Y(_0x397eec){var _0x6669c1=_0x471a0d;const {coordinator:_0x85131a}=_0x397eec;return l['jsxs'](l[_0x6669c1(0x139)],{'children':[l[_0x6669c1(0x1c7)](_0x6669c1(0x16e),{'className':_0x6669c1(0x13b),'children':'Present\x20this\x20document'}),l[_0x6669c1(0x1c7)](g['Button'],{'onClick':()=>_0x85131a[_0x6669c1(0x176)](),'children':_0x6669c1(0x1c2)})]});}function Z(_0x335584){var _0x38cbed=_0x471a0d;const {coordinator:_0x126187}=_0x335584;return l['jsxs'](l[_0x38cbed(0x139)],{'children':[l[_0x38cbed(0x1c7)](_0x38cbed(0x16e),{'className':_0x38cbed(0x13b),'children':_0x38cbed(0x16f)}),l[_0x38cbed(0x1c7)](g['Button'],{'onClick':()=>_0x126187[_0x38cbed(0x19c)](),'children':'Stop\x20following'})]});}function J(_0x122bf6){var _0x2d1646=_0x471a0d;const {coordinator:_0x49d4f0}=_0x122bf6;return l[_0x2d1646(0x134)](l['Fragment'],{'children':[l[_0x2d1646(0x1c7)](_0x2d1646(0x16e),{'className':_0x2d1646(0x13b),'children':_0x2d1646(0x162)}),l[_0x2d1646(0x1c7)](g[_0x2d1646(0x141)],{'variant':'text','onClick':()=>_0x49d4f0[_0x2d1646(0x164)](),'children':'Start\x20following'})]});}function _0x5c70(){var _0x44ce80=['button','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','forwardRef','159084HMsCOB','You\x27re\x20not\x20following\x20the\x20presenter','reverse','startFollowing','_uiPartsService','sheet','_handleTerminate','_collabSessionService','_stopPresenting','ONLINE','906ujTdHo','idle','_fetchOperations','div','You\x27re\x20following\x20the\x20presenter','use','CollaborationSessionService','current','get','shouldShareOperation','Stop\x20presenting','tryStartPresenting','defs','21616FpHZhe','http://www.w3.org/2000/svg','_injector','colorChannel1','registerDependencies','string','end','memberID','_mountLiveShare','dispose','LIVESHARE_REQUEST_HOST','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','forEach','setConfig','then','_commandService','onCommandExecuted','data','_startLiveShareCoordinator','You\x27re\x20presenting\x20the\x20document','PRESENTING','idSuffix','SAME_OPERATION_SHARE_INTERVAL','subscribe','disposeWithMe','values','replace','getInitialStates','offline','clsx','parseProtocolChangeset','getValue','_startFollowing','dispose$','univerjs-icon\x20univerjs-icon-','defIds','stopFollowing','1045761SHIziK','_entities','UniverLiveSharePlugin','NOT_FOLLOWING','mergeOverrideWithDependencies','_handleNewHost','unsubscribe','_beIdle','toStringTag','283858eUArfv','LIVESHARE_NEW_HOST','params','_handleOperation','presenter','8opHqOr','executeCommand','LiveShare','apply','children','createElement','concat','registerSharedOperation','SetZoomRatioOperation','1em','find','random','toDisposable','asObservable','RxDisposable','ICommandService','toString','tag','from','LiveShareController','mutations','xlink:href','243402suPRKs','Start','_univerInstanceService','OFFLINE','IDLE','getOwnPropertySymbols','jsx','Inject','call','_collabSession','Disposable','requireSession','LIVESHARE_OPERATION','_handleOffline','length','substring','_config','sessionStatus$','none','extend','pipe','getLiveShareCoordinator','useState','displayName','add','_sharedOperations','_status','Plugin','getMemberID','getCurrentTypeOfUnit$','icon','currentColor','90eCLrtn','_presenter','live-share.config','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','evenodd','getOwnPropertyDescriptor','IUIPartsService','4soBBlx','LiveShareService','symbol','map','useRef','function','complete','319kIPibF','init','10645QwLXkt','univer-size-4','CollaborationEvent','LiveShareCoordinator','UniverIcon','_unitID','className','You\x27are\x20offline.','74664wShFQD','trim','includes','getTypeOfUnitDisposed$','LiveShareIcon','following','not-following','Injector','assign','BehaviorSubject','LiveShareStatus','operations','unitId','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_TERMINATE','_handleNewChangeSets','delete','IConfigService','status$','has','_reporters','IUniverInstanceService','entries','stopPresenting','send','next','DesktopLiveShareController','jsxs','stringify','onStarting','UNIVER_SHEET','pluginName','Fragment','useObservable','univer-mb-3\x20univer-w-full\x20univer-text-sm','propertyIsEnumerable','registerInitialStateReporter','attrs','mask','_init','Button','type','presenting','getConfig','0\x200\x2017\x2017','SetWorksheetActiveOperation','takeUntil','FOLLOWING','getUnitId','_liveShareService','_stopFollowing','SessionStatus','OPERATION','DisposableCollection','_startPresenting','Dropdown','Module','indexOf','useDependency','_configService','InsertSheetMutation','prototype','_commandDisposable','_status$','registerComponent','touchDependencies','live-share-icon','UniverInstanceType','defineProperty'];_0x5c70=function(){return _0x44ce80;};return _0x5c70();}function K(_0x2b3d93){var _0x5ae480=_0x471a0d;const {coordinator:_0x1e175e}=_0x2b3d93;return l[_0x5ae480(0x134)](l[_0x5ae480(0x139)],{'children':[l['jsx'](_0x5ae480(0x16e),{'className':_0x5ae480(0x13b),'children':_0x5ae480(0x18b)}),l[_0x5ae480(0x1c7)](g[_0x5ae480(0x141)],{'variant':'default','onClick':()=>_0x1e175e[_0x5ae480(0x130)](),'children':_0x5ae480(0x175)})]});}function z(){var _0x45c43d=_0x471a0d;return l[_0x45c43d(0x1c7)](l[_0x45c43d(0x139)],{'children':_0x45c43d(0x118)});}var Q=Object['getOwnPropertyDescriptor'],X=(_0x93d8b1,_0x5a7289,_0x4a6488,_0x4c2166)=>{for(var _0x16fec6=_0x4c2166>0x1?void 0x0:_0x4c2166?Q(_0x5a7289,_0x4a6488):_0x5a7289,_0x43c422=_0x93d8b1['length']-0x1,_0x5507e1;_0x43c422>=0x0;_0x43c422--)(_0x5507e1=_0x93d8b1[_0x43c422])&&(_0x16fec6=_0x5507e1(_0x16fec6)||_0x16fec6);return _0x16fec6;},x=(_0x4a5434,_0x62f70e)=>(_0x68f36d,_0x7be2ac)=>_0x62f70e(_0x68f36d,_0x7be2ac,_0x4a5434);exports['DesktopLiveShareController']=class extends o[_0x471a0d(0x1cb)]{constructor(_0x233275,_0x4030ae){var _0x5f1f74=_0x471a0d;super(),this['_injector']=_0x233275,this[_0x5f1f74(0x165)]=_0x4030ae,this[_0x5f1f74(0x180)]();}[_0x471a0d(0x180)](){var _0x44f7bb=_0x471a0d;this[_0x44f7bb(0x190)](this[_0x44f7bb(0x165)][_0x44f7bb(0x159)](p['BuiltInUIPart']['HEADER_MENU'],()=>p['connectInjector'](A,this[_0x44f7bb(0x17a)])));}},exports[_0x471a0d(0x133)]=X([x(0x0,o[_0x471a0d(0x1c8)](o['Injector'])),x(0x1,p[_0x471a0d(0x1e7)])],exports['DesktopLiveShareController']);const ee=_0x471a0d(0x1e3),L={};var te=Object['getOwnPropertyDescriptor'],ie=(_0x1630cf,_0x111e43,_0xfe94d8,_0x2007dc)=>{for(var _0x10dc97=_0x2007dc>0x1?void 0x0:_0x2007dc?te(_0x111e43,_0xfe94d8):_0x111e43,_0x479df0=_0x1630cf['length']-0x1,_0x1ca728;_0x479df0>=0x0;_0x479df0--)(_0x1ca728=_0x1630cf[_0x479df0])&&(_0x10dc97=_0x1ca728(_0x10dc97)||_0x10dc97);return _0x10dc97;},ne=(_0x1c1b46,_0x5d5928)=>(_0x55e26f,_0xdfba4)=>_0x5d5928(_0x55e26f,_0xdfba4,_0x1c1b46);let E=class extends o[_0x471a0d(0x1cb)]{constructor(_0x343cb5){var _0x423d34=_0x471a0d;super(),this['_liveShareService']=_0x343cb5,this[_0x423d34(0x140)]();}[_0x471a0d(0x140)](){var _0x3e2bd9=_0x471a0d;[D[_0x3e2bd9(0x1b3)]['id'],D['SetScrollOperation']['id'],C[_0x3e2bd9(0x146)]['id']]['forEach'](_0x59d5b8=>{var _0x25cc6f=_0x3e2bd9;this[_0x25cc6f(0x190)](this[_0x25cc6f(0x14a)][_0x25cc6f(0x1b2)](_0x59d5b8));});}};E=ie([ne(0x0,o[_0x471a0d(0x1c8)](O))],E);var re=Object[_0x471a0d(0x15d)],se=Object['getOwnPropertyDescriptor'],oe=(_0x3d0197,_0x1df352,_0x24826e)=>_0x1df352 in _0x3d0197?re(_0x3d0197,_0x1df352,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24826e}):_0x3d0197[_0x1df352]=_0x24826e,ae=(_0x36a28d,_0x5860e2,_0x36172f,_0x204a6e)=>{var _0x2a951b=_0x471a0d;for(var _0x17c48a=_0x204a6e>0x1?void 0x0:_0x204a6e?se(_0x5860e2,_0x36172f):_0x5860e2,_0x1d05f4=_0x36a28d[_0x2a951b(0x1cf)]-0x1,_0x2c43b3;_0x1d05f4>=0x0;_0x1d05f4--)(_0x2c43b3=_0x36a28d[_0x1d05f4])&&(_0x17c48a=_0x2c43b3(_0x17c48a)||_0x17c48a);return _0x17c48a;},N=(_0xd8f799,_0x36f8de)=>(_0x5485ec,_0x354248)=>_0x36f8de(_0x5485ec,_0x354248,_0xd8f799),T=(_0xab050d,_0x311dad,_0x58516d)=>oe(_0xab050d,typeof _0x311dad!=_0x471a0d(0x1ea)?_0x311dad+'':_0x311dad,_0x58516d);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x471a0d(0x19f)]=class extends o[_0x471a0d(0x1dc)]{constructor(_0x1db23e=L,_0x136331,_0x27d5d0){var _0xa1a0c6=_0x471a0d;super(),this[_0xa1a0c6(0x1d1)]=_0x1db23e,this['_injector']=_0x136331,this[_0xa1a0c6(0x154)]=_0x27d5d0;const {..._0x552ead}=o['merge']({},L,this[_0xa1a0c6(0x1d1)]);this[_0xa1a0c6(0x154)][_0xa1a0c6(0x185)](ee,_0x552ead);}[_0x471a0d(0x136)](){var _0x210f10=_0x471a0d;o[_0x210f10(0x17c)](this[_0x210f10(0x17a)],o[_0x210f10(0x1a1)]([[O],[exports['LiveShareController']],[E],[exports[_0x210f10(0x133)]]],this[_0x210f10(0x1d1)]['override'])),o[_0x210f10(0x15a)](this[_0x210f10(0x17a)],[[E]]);}['onRendered'](){var _0x5d004d=_0x471a0d;o[_0x5d004d(0x15a)](this[_0x5d004d(0x17a)],[[exports[_0x5d004d(0x133)]]]);}},T(exports[_0x471a0d(0x19f)],_0x471a0d(0x142),o[_0x471a0d(0x15c)]['UNIVER_UNKNOWN']),T(exports[_0x471a0d(0x19f)],_0x471a0d(0x138),le),exports[_0x471a0d(0x19f)]=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x471a0d(0x1c8)](o[_0x471a0d(0x120)])),N(0x2,o[_0x471a0d(0x12a)])],exports[_0x471a0d(0x19f)]),exports[_0x471a0d(0x1ad)]=A,exports[_0x471a0d(0x1e9)]=O,exports[_0x471a0d(0x123)]=h;
|
|
1
|
+
'use strict';var _0x157e0f=_0x274f;(function(_0x13c07f,_0x973bde){var _0x189024=_0x274f,_0x17d1f5=_0x13c07f();while(!![]){try{var _0x53f233=-parseInt(_0x189024(0x212))/0x1+parseInt(_0x189024(0x1db))/0x2+parseInt(_0x189024(0x21e))/0x3+parseInt(_0x189024(0x1e2))/0x4*(-parseInt(_0x189024(0x263))/0x5)+-parseInt(_0x189024(0x197))/0x6*(-parseInt(_0x189024(0x25d))/0x7)+-parseInt(_0x189024(0x234))/0x8*(-parseInt(_0x189024(0x25a))/0x9)+-parseInt(_0x189024(0x203))/0xa*(-parseInt(_0x189024(0x1b7))/0xb);if(_0x53f233===_0x973bde)break;else _0x17d1f5['push'](_0x17d1f5['shift']());}catch(_0x5aee41){_0x17d1f5['push'](_0x17d1f5['shift']());}}}(_0x21a3,0xd2e87));var U=Object[_0x157e0f(0x265)],F=(_0x25fa1d,_0x2ec3a5,_0x19027a)=>_0x2ec3a5 in _0x25fa1d?U(_0x25fa1d,_0x2ec3a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19027a}):_0x25fa1d[_0x2ec3a5]=_0x19027a,v=(_0x269afb,_0x2e99a1,_0x2917a6)=>F(_0x269afb,typeof _0x2e99a1!='symbol'?_0x2e99a1+'':_0x2e99a1,_0x2917a6);Object[_0x157e0f(0x265)](exports,Symbol[_0x157e0f(0x1c1)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x1bee59=_0x157e0f;return u=Object[_0x1bee59(0x264)]||function(_0x594912){var _0x23c334=_0x1bee59;for(var _0x200e73,_0x204e7e=0x1,_0x47289f=arguments[_0x23c334(0x235)];_0x204e7e<_0x47289f;_0x204e7e++){_0x200e73=arguments[_0x204e7e];for(var _0x5bf632 in _0x200e73)Object[_0x23c334(0x252)][_0x23c334(0x239)][_0x23c334(0x22d)](_0x200e73,_0x5bf632)&&(_0x594912[_0x5bf632]=_0x200e73[_0x5bf632]);}return _0x594912;},u['apply'](this,arguments);},$=function(_0xc904a9,_0x17ad10){var _0x25d865=_0x157e0f,_0x112c2b={};for(var _0x1a67a2 in _0xc904a9)Object[_0x25d865(0x252)][_0x25d865(0x239)]['call'](_0xc904a9,_0x1a67a2)&&_0x17ad10['indexOf'](_0x1a67a2)<0x0&&(_0x112c2b[_0x1a67a2]=_0xc904a9[_0x1a67a2]);if(_0xc904a9!=null&&typeof Object[_0x25d865(0x1e4)]==_0x25d865(0x216)){for(var _0x890f30=0x0,_0x1a67a2=Object[_0x25d865(0x1e4)](_0xc904a9);_0x890f30<_0x1a67a2[_0x25d865(0x235)];_0x890f30++)_0x17ad10[_0x25d865(0x1a9)](_0x1a67a2[_0x890f30])<0x0&&Object[_0x25d865(0x252)][_0x25d865(0x1d4)][_0x25d865(0x22d)](_0xc904a9,_0x1a67a2[_0x890f30])&&(_0x112c2b[_0x1a67a2[_0x890f30]]=_0xc904a9[_0x1a67a2[_0x890f30]]);}return _0x112c2b;},j=f[_0x157e0f(0x1bb)](function(_0x2dc90d,_0x16718b){var _0x1d65b0=_0x157e0f,_0x1a8416=_0x2dc90d[_0x1d65b0(0x1fc)],_0x3c6744=_0x2dc90d['id'],_0x37f93b=_0x2dc90d[_0x1d65b0(0x204)],_0x34f414=_0x2dc90d[_0x1d65b0(0x19e)],_0x5e35ef=$(_0x2dc90d,['icon','id','className',_0x1d65b0(0x19e)]),_0x558d93=_0x1d65b0(0x22c)[_0x1d65b0(0x245)](_0x3c6744,'\x20')['concat'](_0x37f93b||'')[_0x1d65b0(0x242)](),_0x4f87cc=f['useRef']('_'[_0x1d65b0(0x245)](k()));return y(_0x1a8416,''[_0x1d65b0(0x245)](_0x3c6744),{'defIds':_0x1a8416[_0x1d65b0(0x1e8)],'idSuffix':_0x4f87cc['current']},u({'ref':_0x16718b,'className':_0x558d93},_0x5e35ef),_0x34f414);});function y(_0x1a53be,_0x59579c,_0x4a52f8,_0x2642ec,_0x382d2c){var _0x4afb71=_0x157e0f;return f[_0x4afb71(0x1e7)](_0x1a53be['tag'],u(u({'key':_0x59579c},H(_0x1a53be,_0x4a52f8,_0x382d2c)),_0x2642ec),(V(_0x1a53be,_0x4a52f8)[_0x4afb71(0x198)]||[])['map'](function(_0x4c473a,_0x402310){var _0x8bf2a5=_0x4afb71;return y(_0x4c473a,''[_0x8bf2a5(0x245)](_0x59579c,'-')['concat'](_0x1a53be['tag'],'-')[_0x8bf2a5(0x245)](_0x402310),_0x4a52f8,void 0x0,_0x382d2c);}));}function H(_0x119ebb,_0x104946,_0x3b762b){var _0x168c17=_0x157e0f,_0x55e1d4=u({},_0x119ebb[_0x168c17(0x1d0)]);_0x3b762b!=null&&_0x3b762b[_0x168c17(0x224)]&&_0x55e1d4['fill']==='colorChannel1'&&(_0x55e1d4[_0x168c17(0x1a1)]=_0x3b762b[_0x168c17(0x224)]),_0x119ebb[_0x168c17(0x222)]===_0x168c17(0x1e3)&&_0x55e1d4['id']&&(_0x55e1d4['id']=_0x55e1d4['id']+_0x104946[_0x168c17(0x1ff)]),Object[_0x168c17(0x22e)](_0x55e1d4)[_0x168c17(0x1da)](function(_0x2f3435){var _0x312f3e=_0x168c17,_0xc918f8=_0x2f3435[0x0],_0x1a539b=_0x2f3435[0x1];_0xc918f8==='mask'&&typeof _0x1a539b==_0x312f3e(0x1fe)&&(_0x55e1d4[_0xc918f8]=_0x1a539b[_0x312f3e(0x26a)](/url\(#(.*)\)/,_0x312f3e(0x255)[_0x312f3e(0x245)](_0x104946[_0x312f3e(0x1ff)],')')));});var _0xdcd5cc=_0x104946[_0x168c17(0x1e8)];return!_0xdcd5cc||_0xdcd5cc[_0x168c17(0x235)]===0x0||(_0x119ebb[_0x168c17(0x222)]==='use'&&_0x55e1d4[_0x168c17(0x19f)]&&(_0x55e1d4['xlink:href']=_0x55e1d4[_0x168c17(0x19f)]+_0x104946['idSuffix']),Object['entries'](_0x55e1d4)[_0x168c17(0x1da)](function(_0x4b62d9){var _0x56322d=_0x168c17,_0xf9e97=_0x4b62d9[0x0],_0x15b1e9=_0x4b62d9[0x1];typeof _0x15b1e9==_0x56322d(0x1fe)&&(_0x55e1d4[_0xf9e97]=_0x15b1e9[_0x56322d(0x26a)](/url\(#(.*)\)/,_0x56322d(0x255)[_0x56322d(0x245)](_0x104946['idSuffix'],')')));})),_0x55e1d4;}function V(_0x3e3e1b,_0x2e37c0){var _0xf9551e=_0x157e0f,_0x79e44f,_0x571125=_0x2e37c0[_0xf9551e(0x1e8)];return!_0x571125||_0x571125[_0xf9551e(0x235)]===0x0?_0x3e3e1b:_0x3e3e1b[_0xf9551e(0x222)]===_0xf9551e(0x25e)&&(!((_0x79e44f=_0x3e3e1b[_0xf9551e(0x198)])===null||_0x79e44f===void 0x0)&&_0x79e44f[_0xf9551e(0x235)])?u(u({},_0x3e3e1b),{'children':_0x3e3e1b[_0xf9551e(0x198)][_0xf9551e(0x25c)](function(_0x54be61){var _0x3b8d4f=_0xf9551e;return typeof _0x54be61[_0x3b8d4f(0x1d0)]['id']==_0x3b8d4f(0x1fe)&&_0x571125&&_0x571125[_0x3b8d4f(0x19a)](_0x54be61[_0x3b8d4f(0x1d0)]['id'])?u(u({},_0x54be61),{'attrs':u(u({},_0x54be61['attrs']),{'id':_0x54be61[_0x3b8d4f(0x1d0)]['id']+_0x2e37c0['idSuffix']})}):_0x54be61;})}):_0x3e3e1b;}function k(){var _0x28e798=_0x157e0f;return Math[_0x28e798(0x274)]()[_0x28e798(0x256)](0x24)['substring'](0x2,0x8);}j[_0x157e0f(0x20e)]=_0x157e0f(0x1b2);var M={'tag':_0x157e0f(0x1a5),'attrs':{'xmlns':_0x157e0f(0x22f),'fill':_0x157e0f(0x1f9),'viewBox':_0x157e0f(0x266),'width':_0x157e0f(0x1a8),'height':_0x157e0f(0x1a8)},'children':[{'tag':_0x157e0f(0x1af),'attrs':{'fill':_0x157e0f(0x1e0),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x157e0f(0x1af),'attrs':{'fill':_0x157e0f(0x1e0),'d':_0x157e0f(0x26c),'fillRule':_0x157e0f(0x1df),'clipRule':_0x157e0f(0x1df)}}]},P=f[_0x157e0f(0x1bb)](function(_0x3a31fa,_0x4775e2){var _0x280586=_0x157e0f;return f[_0x280586(0x1e7)](j,Object[_0x280586(0x264)]({},_0x3a31fa,{'id':_0x280586(0x1b6),'ref':_0x4775e2,'icon':M}));});P[_0x157e0f(0x20e)]=_0x157e0f(0x275);class O extends o['Disposable']{constructor(){var _0xf5c2e3=_0x157e0f;super(...arguments),v(this,_0xf5c2e3(0x1e5),new Set()),v(this,_0xf5c2e3(0x244),new Set());}[_0x157e0f(0x217)](_0x4aca38){var _0x25e4b9=_0x157e0f;return this[_0x25e4b9(0x1e5)][_0x25e4b9(0x240)](_0x4aca38),o['toDisposable'](()=>this[_0x25e4b9(0x1e5)]['delete'](_0x4aca38));}[_0x157e0f(0x20d)](_0x59bc68){var _0x4e353c=_0x157e0f;return this[_0x4e353c(0x244)][_0x4e353c(0x240)](_0x59bc68),o[_0x4e353c(0x1b5)](()=>this[_0x4e353c(0x244)]['delete'](_0x59bc68));}[_0x157e0f(0x20b)](_0x102c07){return this['_sharedOperations']['has'](_0x102c07);}[_0x157e0f(0x1f0)](_0x35e1f0){var _0x4cf983=_0x157e0f;return Array[_0x4cf983(0x233)](this[_0x4cf983(0x244)])[_0x4cf983(0x25c)](_0x3f40f7=>_0x3f40f7(_0x35e1f0));}}var q=Object[_0x157e0f(0x26b)],R=(_0x32f4c3,_0x543cbf,_0x5ee8f1,_0x4434d1)=>{var _0x3b0215=_0x157e0f;for(var _0x2aca1a=_0x4434d1>0x1?void 0x0:_0x4434d1?q(_0x543cbf,_0x5ee8f1):_0x543cbf,_0x3f6280=_0x32f4c3[_0x3b0215(0x235)]-0x1,_0x3b00aa;_0x3f6280>=0x0;_0x3f6280--)(_0x3b00aa=_0x32f4c3[_0x3f6280])&&(_0x2aca1a=_0x3b00aa(_0x2aca1a)||_0x2aca1a);return _0x2aca1a;},S=(_0x38f2af,_0x27d06c)=>(_0x26d96e,_0x44554c)=>_0x27d06c(_0x26d96e,_0x44554c,_0x38f2af);exports['LiveShareController']=class extends o[_0x157e0f(0x1cd)]{constructor(_0x1c18a0,_0x439597,_0x11b5be){var _0x3a7b1f=_0x157e0f;super(),v(this,_0x3a7b1f(0x215),new Map()),(this[_0x3a7b1f(0x248)]=_0x1c18a0,this['_injector']=_0x439597,this['_collabSessionService']=_0x11b5be,this['_init']());}async[_0x157e0f(0x1d1)](_0x5a334e){var _0xb0f359=_0x157e0f;return this[_0xb0f359(0x215)][_0xb0f359(0x20f)](_0x5a334e)||await this[_0xb0f359(0x238)](_0x5a334e),this[_0xb0f359(0x215)][_0xb0f359(0x24a)](_0x5a334e);}[_0x157e0f(0x1a7)](){var _0x14f12a=_0x157e0f;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x14f12a(0x1f7)][_0x14f12a(0x273)])[_0x14f12a(0x1b8)](b[_0x14f12a(0x26f)](this['dispose$']))['subscribe'](async _0x1c14d5=>{var _0x34ced6=_0x14f12a;const _0x454c79=_0x1c14d5[_0x34ced6(0x1ae)]();this[_0x34ced6(0x215)][_0x34ced6(0x20f)](_0x454c79)||this[_0x34ced6(0x238)](_0x454c79);}),this[_0x14f12a(0x248)][_0x14f12a(0x258)](o[_0x14f12a(0x1f7)][_0x14f12a(0x273)])[_0x14f12a(0x1b8)](b[_0x14f12a(0x26f)](this[_0x14f12a(0x21b)]))['subscribe'](_0x48c252=>{var _0x1121fc=_0x14f12a;const _0xb3afd8=_0x48c252[_0x1121fc(0x1ae)](),_0xb9023e=this[_0x1121fc(0x215)][_0x1121fc(0x24a)](_0xb3afd8);_0xb9023e==null||_0xb9023e[_0x1121fc(0x1d8)]();});}async[_0x157e0f(0x238)](_0x4d3f5c){var _0x30f2e8=_0x157e0f;const _0x5a281c=await this[_0x30f2e8(0x247)][_0x30f2e8(0x230)](_0x4d3f5c),_0x415192=this[_0x30f2e8(0x231)][_0x30f2e8(0x24d)](exports['LiveShareCoordinator'],_0x4d3f5c,_0x5a281c);return _0x415192['init'](),this[_0x30f2e8(0x215)]['set'](_0x4d3f5c,_0x415192),_0x415192;}},exports[_0x157e0f(0x201)]=R([S(0x0,o[_0x157e0f(0x1bc)]),S(0x1,o[_0x157e0f(0x1a3)](o[_0x157e0f(0x1bf)])),S(0x2,o[_0x157e0f(0x1a3)](m['CollaborationSessionService']))],exports[_0x157e0f(0x201)]);var h=(_0x3e6ea8=>(_0x3e6ea8[_0x157e0f(0x226)]=_0x157e0f(0x268),_0x3e6ea8[_0x157e0f(0x20c)]=_0x157e0f(0x1ad),_0x3e6ea8[_0x157e0f(0x246)]=_0x157e0f(0x1ea),_0x3e6ea8[_0x157e0f(0x1d7)]='not-following',_0x3e6ea8[_0x157e0f(0x1c4)]=_0x157e0f(0x262),_0x3e6ea8))(h||{});const W='SAME_OPERATION_SHARE_INTERVAL',G=0xc8;exports[_0x157e0f(0x1dd)]=class extends o[_0x157e0f(0x1cd)]{constructor(_0xd688b5,_0x38abae,_0x19117e,_0x31ea0c,_0x1c151a){var _0x3a8090=_0x157e0f;super(),v(this,_0x3a8090(0x24b),new w[(_0x3a8090(0x26d))]('idle')),v(this,'status$',this[_0x3a8090(0x24b)][_0x3a8090(0x1f5)]()),v(this,_0x3a8090(0x1a7),!0x1),v(this,_0x3a8090(0x218),null),v(this,_0x3a8090(0x1de),null),(this[_0x3a8090(0x1c7)]=_0xd688b5,this[_0x3a8090(0x1fd)]=_0x38abae,this[_0x3a8090(0x1b0)]=_0x19117e,this[_0x3a8090(0x1cb)]=_0x31ea0c,this['_commandService']=_0x1c151a);}get[_0x157e0f(0x270)](){var _0x3516ae=_0x157e0f;return this[_0x3516ae(0x24b)][_0x3516ae(0x1bd)]();}['dispose'](){var _0xe8aafc=_0x157e0f,_0x33609f;(_0x33609f=this[_0xe8aafc(0x218)])==null||_0x33609f[_0xe8aafc(0x1d8)](),this['_status$']['next']('idle'),this[_0xe8aafc(0x24b)][_0xe8aafc(0x1e6)]();}[_0x157e0f(0x19d)](){var _0x57ed1f=_0x157e0f;this[_0x57ed1f(0x1a7)]||(this['_init']=!0x0,this[_0x57ed1f(0x1fd)]['sessionStatus$']['pipe'](b[_0x57ed1f(0x26f)](this[_0x57ed1f(0x21b)]))['subscribe'](_0x352068=>{var _0x54dea4=_0x57ed1f;switch(_0x352068){case m[_0x54dea4(0x20a)][_0x54dea4(0x226)]:this['_handleOffline']();break;case m['SessionStatus'][_0x54dea4(0x1ca)]:this[_0x54dea4(0x1ab)]();break;}}),this[_0x57ed1f(0x1fd)][_0x57ed1f(0x229)][_0x57ed1f(0x1b8)](b[_0x57ed1f(0x26f)](this[_0x57ed1f(0x21b)]))[_0x57ed1f(0x1a2)](_0x3ba5d4=>{var _0x5aa3a3=_0x57ed1f;const {eventID:_0x2722d0}=_0x3ba5d4;switch(_0x2722d0){case _[_0x5aa3a3(0x1b9)]['LIVESHARE_NEW_HOST']:this[_0x5aa3a3(0x1e9)](_0x3ba5d4);break;case _['CollaborationEvent'][_0x5aa3a3(0x253)]:this[_0x5aa3a3(0x23a)](_0x3ba5d4);break;case _[_0x5aa3a3(0x1b9)][_0x5aa3a3(0x25b)]:this[_0x5aa3a3(0x1d2)]();break;case _[_0x5aa3a3(0x1b9)][_0x5aa3a3(0x1ba)]:this[_0x5aa3a3(0x269)](_0x3ba5d4);break;}}));}['tryStartPresenting'](){var _0x3d28f6=_0x157e0f;this[_0x3d28f6(0x1fd)][_0x3d28f6(0x251)]({'eventID':_['CollaborationEvent'][_0x3d28f6(0x1ce)],'data':{'unitID':this[_0x3d28f6(0x1c7)],'userID':this['_collabSession'][_0x3d28f6(0x1aa)]()}},this[_0x3d28f6(0x1c7)]);}[_0x157e0f(0x207)](){var _0x31049b=_0x157e0f;this[_0x31049b(0x270)]===_0x31049b(0x262)&&(this[_0x31049b(0x24b)][_0x31049b(0x21c)](_0x31049b(0x1ad)),this[_0x31049b(0x1fd)]['send']({'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x31049b(0x1c7)]}},this['_unitID']));}['startFollowing'](){var _0x38bf90=_0x157e0f;this[_0x38bf90(0x270)]===_0x38bf90(0x1fa)&&(this[_0x38bf90(0x24b)][_0x38bf90(0x21c)](_0x38bf90(0x1ea)),this[_0x38bf90(0x1be)]());}['stopFollowing'](){var _0x92269b=_0x157e0f;this[_0x92269b(0x270)]===_0x92269b(0x1ea)&&this[_0x92269b(0x205)]();}[_0x157e0f(0x1e9)](_0x2ad48d){var _0x3f8f4d=_0x157e0f;const {presenter:_0x5006e6}=_0x2ad48d[_0x3f8f4d(0x23e)],_0x2d0a53=this['_collabSession'][_0x3f8f4d(0x1aa)]();this[_0x3f8f4d(0x1de)]=_0x5006e6,_0x5006e6===_0x2d0a53?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x3f8f4d(0x270)]!=='not-following'&&(this[_0x3f8f4d(0x1f2)](),this[_0x3f8f4d(0x1be)]());}[_0x157e0f(0x254)](){var _0x4867ea=_0x157e0f;const _0x381804={'eventID':_[_0x4867ea(0x1b9)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x4867ea(0x251)](_0x381804,this['_unitID']);}[_0x157e0f(0x1d2)](){var _0x31c7d1=_0x157e0f;this[_0x31c7d1(0x1de)]=null,this[_0x31c7d1(0x270)]!==_0x31c7d1(0x262)&&this[_0x31c7d1(0x1b4)]();}[_0x157e0f(0x269)](_0x24d707){var _0x834eca=_0x157e0f;if(this[_0x834eca(0x270)]===_0x834eca(0x1ea)&&this[_0x834eca(0x1de)]===_0x24d707[_0x834eca(0x23e)]['memberID']){const _0x15ffbe=_[_0x834eca(0x209)](_0x24d707[_0x834eca(0x23e)])[_0x834eca(0x220)][_0x834eca(0x1fb)]()[_0x834eca(0x210)](_0x66f9f5=>_0x66f9f5['id']===C[_0x834eca(0x1f3)]['id']);if(_0x15ffbe){const _0x221dc1=_0x15ffbe[_0x834eca(0x199)]['unitId'],_0x4c3db6=_0x15ffbe[_0x834eca(0x199)][_0x834eca(0x1f6)]['id'];setTimeout(()=>{var _0x47f474=_0x834eca;this['_commandService'][_0x47f474(0x261)](C[_0x47f474(0x1cf)]['id'],{'unitId':_0x221dc1,'subUnitId':_0x4c3db6},{'fromCollab':!0x0});});}}}[_0x157e0f(0x259)](){var _0x144a98=_0x157e0f;this[_0x144a98(0x24b)][_0x144a98(0x21c)](_0x144a98(0x262));const _0x4ba049=new Map(),_0x224170=this['_commandDisposable']=new o['DisposableCollection']();_0x224170[_0x144a98(0x240)](o[_0x144a98(0x1b5)](()=>{var _0x5e1510=_0x144a98;_0x4ba049[_0x5e1510(0x1da)](_0x208578=>_0x208578[_0x5e1510(0x1e6)]()),_0x4ba049[_0x5e1510(0x1ed)]();})),_0x224170[_0x144a98(0x240)](this['_commandService']['onCommandExecuted'](_0x4b0350=>{var _0x570716=_0x144a98,_0x331eea;if(_0x4b0350[_0x570716(0x19c)]!==o[_0x570716(0x219)][_0x570716(0x1d6)]||!this['_liveShareService'][_0x570716(0x20b)](_0x4b0350['id']))return;const {id:_0x159a8c}=_0x4b0350;let _0x46d28e;_0x4ba049['has'](_0x159a8c)?_0x46d28e=_0x4ba049['get'](_0x159a8c):(_0x46d28e=new w[(_0x570716(0x250))](),_0x4ba049[_0x570716(0x1eb)](_0x159a8c,_0x46d28e),_0x46d28e['pipe'](b[_0x570716(0x1e1)]((_0x331eea=this[_0x570716(0x1b0)][_0x570716(0x211)](W))!=null?_0x331eea:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x570716(0x1a2)](_0x59645c=>{var _0x5dea88=_0x570716;this[_0x5dea88(0x1fd)][_0x5dea88(0x251)]({'eventID':_[_0x5dea88(0x1b9)][_0x5dea88(0x253)],'data':{'unitID':this[_0x5dea88(0x1c7)],'operations':{[_0x59645c['id']]:{'id':_0x59645c['id'],'params':JSON[_0x5dea88(0x26e)](_0x59645c[_0x5dea88(0x199)])}}}},this[_0x5dea88(0x1c7)]);})),_0x46d28e[_0x570716(0x21c)](_0x4b0350);})),this[_0x144a98(0x1cb)][_0x144a98(0x1f0)](this['_unitID'])['forEach'](_0x42ccfc=>this[_0x144a98(0x1fd)][_0x144a98(0x251)]({'eventID':_[_0x144a98(0x1b9)][_0x144a98(0x253)],'data':{'unitID':this['_unitID'],'operations':{[_0x42ccfc['id']]:{'id':_0x42ccfc['id'],'params':JSON[_0x144a98(0x26e)](_0x42ccfc[_0x144a98(0x199)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x3390f3=_0x157e0f,_0x5c7bfe;this[_0x3390f3(0x24b)][_0x3390f3(0x21c)](_0x3390f3(0x1ad)),(_0x5c7bfe=this['_commandDisposable'])==null||_0x5c7bfe['dispose'](),this[_0x3390f3(0x218)]=null;}[_0x157e0f(0x1be)](){var _0x34eacb=_0x157e0f,_0x3df562;(_0x3df562=this[_0x34eacb(0x218)])==null||_0x3df562[_0x34eacb(0x1d8)](),this[_0x34eacb(0x24b)][_0x34eacb(0x21c)](_0x34eacb(0x1ea));}[_0x157e0f(0x1b4)](){var _0x11b0e5=_0x157e0f,_0x551be2;this[_0x11b0e5(0x24b)][_0x11b0e5(0x21c)](_0x11b0e5(0x1ad)),(_0x551be2=this[_0x11b0e5(0x218)])==null||_0x551be2[_0x11b0e5(0x1d8)](),this[_0x11b0e5(0x218)]=null;}['_stopFollowing'](){var _0x2f528e=_0x157e0f,_0x140cd9;this[_0x2f528e(0x24b)]['next']('not-following'),(_0x140cd9=this[_0x2f528e(0x218)])==null||_0x140cd9['dispose']();}[_0x157e0f(0x23a)](_0x203292){var _0x5ef75c=_0x157e0f;if([_0x5ef75c(0x262),_0x5ef75c(0x1fa),'offline'][_0x5ef75c(0x19a)](this[_0x5ef75c(0x270)])||!_0x203292[_0x5ef75c(0x23e)][_0x5ef75c(0x1c3)]||_0x203292[_0x5ef75c(0x23e)][_0x5ef75c(0x1c3)]===this[_0x5ef75c(0x1fd)][_0x5ef75c(0x1aa)]())return;this[_0x5ef75c(0x270)]===_0x5ef75c(0x1ad)&&this[_0x5ef75c(0x1be)]();const _0x36c881=_0x203292[_0x5ef75c(0x23e)][_0x5ef75c(0x1b3)];Object[_0x5ef75c(0x24c)](_0x36c881)['forEach'](_0x5a31fe=>{var _0x262422=_0x5ef75c;this[_0x262422(0x21a)][_0x262422(0x261)](_0x5a31fe['id'],_0x5a31fe['params']?JSON['parse'](_0x5a31fe[_0x262422(0x199)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x30f666=_0x157e0f,_0x3967f9;this[_0x30f666(0x24b)]['next'](_0x30f666(0x268)),(_0x3967f9=this['_commandDisposable'])==null||_0x3967f9[_0x30f666(0x1d8)]();}['_handleOnline'](){var _0x5335d5=_0x157e0f;this['_status$'][_0x5335d5(0x21c)](_0x5335d5(0x1ad)),this[_0x5335d5(0x254)]();}},exports[_0x157e0f(0x1dd)]=R([S(0x2,o[_0x157e0f(0x223)]),S(0x3,o[_0x157e0f(0x1a3)](O)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function _0x274f(_0x1ad7e8,_0x2ba6dd){var _0x21a3ac=_0x21a3();return _0x274f=function(_0x274f29,_0x4bbf81){_0x274f29=_0x274f29-0x197;var _0x2c9a9c=_0x21a3ac[_0x274f29];return _0x2c9a9c;},_0x274f(_0x1ad7e8,_0x2ba6dd);}function A(){var _0x55d30b=_0x157e0f;const _0x2df4ab=p[_0x55d30b(0x1b1)](exports[_0x55d30b(0x201)]),_0xba5454=p[_0x55d30b(0x1b1)](o[_0x55d30b(0x1bc)]),_0x8f6a0d=p[_0x55d30b(0x237)](()=>_0xba5454[_0x55d30b(0x1f4)](o[_0x55d30b(0x1f7)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4fae22,_0x4b45f4]=f[_0x55d30b(0x243)](null),[_0x420ecf,_0x198fe2]=f[_0x55d30b(0x243)](h[_0x55d30b(0x20c)]),_0x17e739=f[_0x55d30b(0x23d)](null);return f['useEffect'](()=>(_0x8f6a0d&&_0x2df4ab['getLiveShareCoordinator'](_0x8f6a0d['getUnitId']())[_0x55d30b(0x241)](_0x50a2d1=>{var _0x3b9dbe=_0x55d30b;_0x4b45f4(_0x50a2d1),_0x17e739[_0x3b9dbe(0x1d3)]=_0x50a2d1[_0x3b9dbe(0x1d5)][_0x3b9dbe(0x1a2)](_0x54de00=>{_0x198fe2(_0x54de00);});}),()=>{var _0x3fa6d2=_0x55d30b,_0x31bee1;(_0x31bee1=_0x17e739[_0x3fa6d2(0x1d3)])==null||_0x31bee1['unsubscribe'](),_0x17e739[_0x3fa6d2(0x1d3)]=null;}),[_0x8f6a0d,_0x2df4ab]),_0x4fae22?l[_0x55d30b(0x221)](g[_0x55d30b(0x23f)],{'align':'end','disabled':_0x420ecf===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x55d30b(0x221)](B,{'status':_0x420ecf,'coordinator':_0x4fae22}),'children':l['jsx']('button',{'className':g[_0x55d30b(0x206)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x420ecf===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x420ecf!==h[_0x55d30b(0x226)]}),'type':_0x55d30b(0x1cc),'children':l['jsx'](P,{'className':_0x55d30b(0x200)})})}):null;}function B(_0x947c8b){var _0x561924=_0x157e0f;const {status:_0x5c6e07,coordinator:_0x522223}=_0x947c8b;switch(_0x5c6e07){case h[_0x561924(0x20c)]:return l[_0x561924(0x221)](Y,{'coordinator':_0x522223});case h['FOLLOWING']:return l[_0x561924(0x221)](Z,{'coordinator':_0x522223});case h[_0x561924(0x1d7)]:return l['jsx'](J,{'coordinator':_0x522223});case h[_0x561924(0x226)]:return l['jsx'](z,{});case h[_0x561924(0x1c4)]:return l[_0x561924(0x221)](K,{'coordinator':_0x522223});default:return null;}}function Y(_0x57c0ca){var _0x2a65b8=_0x157e0f;const {coordinator:_0x4a352a}=_0x57c0ca;return l['jsxs'](l['Fragment'],{'children':[l[_0x2a65b8(0x221)](_0x2a65b8(0x1a0),{'className':_0x2a65b8(0x236),'children':_0x2a65b8(0x1a6)}),l[_0x2a65b8(0x221)](g[_0x2a65b8(0x1f8)],{'onClick':()=>_0x4a352a[_0x2a65b8(0x1c9)](),'children':_0x2a65b8(0x1ec)})]});}function Z(_0x18499b){var _0x49fab6=_0x157e0f;const {coordinator:_0x416c88}=_0x18499b;return l[_0x49fab6(0x228)](l[_0x49fab6(0x260)],{'children':[l[_0x49fab6(0x221)](_0x49fab6(0x1a0),{'className':_0x49fab6(0x236),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x49fab6(0x221)](g[_0x49fab6(0x1f8)],{'onClick':()=>_0x416c88[_0x49fab6(0x202)](),'children':_0x49fab6(0x208)})]});}function _0x21a3(){var _0x129c93=['RxDisposable','LIVESHARE_REQUEST_HOST','SetWorksheetActiveOperation','attrs','getLiveShareCoordinator','_handleTerminate','current','propertyIsEnumerable','status$','OPERATION','NOT_FOLLOWING','dispose','UniverCollaborationClientPlugin','forEach','1604874XvTGVQ','LiveShareService','LiveShareCoordinator','_presenter','evenodd','currentColor','throttleTime','50036Ovhnjg','mask','getOwnPropertySymbols','_sharedOperations','complete','createElement','defIds','_handleNewHost','following','set','Start','clear','UNIVER_LIVE_SHARE_PLUGIN','IUIPartsService','getInitialStates','live-share.config','_stopPresenting','InsertSheetMutation','getCurrentTypeOfUnit$','asObservable','sheet','UniverInstanceType','Button','none','not-following','reverse','icon','_collabSession','string','idSuffix','univer-size-4','LiveShareController','stopFollowing','7043530wysWwi','className','_stopFollowing','clsx','stopPresenting','Stop\x20following','parseProtocolChangeset','SessionStatus','shouldShareOperation','IDLE','registerInitialStateReporter','displayName','has','find','getConfig','1033250ZNHMFZ','setConfig','registerDependencies','_entities','function','registerSharedOperation','_commandDisposable','CommandType','_commandService','dispose$','next','UniverLiveSharePlugin','180015NFPTgi','onRendered','mutations','jsx','tag','IConfigService','colorChannel1','connectInjector','OFFLINE','Disposable','jsxs','event$','SetZoomRatioOperation','Stop\x20presenting','univerjs-icon\x20univerjs-icon-','call','entries','http://www.w3.org/2000/svg','requireSession','_injector','_mountLiveShare','from','72PUmeQd','length','univer-mb-3\x20univer-w-full\x20univer-text-sm','useObservable','_startLiveShareCoordinator','hasOwnProperty','_handleOperation','merge','LiveShareStatus','useRef','data','Dropdown','add','then','trim','useState','_reporters','concat','FOLLOWING','_collabSessionService','_univerInstanceService','HEADER_MENU','get','_status$','values','createInstance','DesktopLiveShareController','You\x27re\x20presenting\x20the\x20document','Subject','send','prototype','LIVESHARE_OPERATION','_fetchOperations','url(#$1','toString','_config','getTypeOfUnitDisposed$','_startPresenting','245331cJjeAA','LIVESHARE_TERMINATE','map','2473114WJXlKc','defs','SetScrollOperation','Fragment','executeCommand','presenting','530KBkZhG','assign','defineProperty','0\x200\x2017\x2017','touchDependencies','offline','_handleNewChangeSets','replace','getOwnPropertyDescriptor','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','BehaviorSubject','stringify','takeUntil','_status','startFollowing','You\x27are\x20offline.','UNIVER_SHEET','random','LiveShareIcon','12DrQOdn','children','params','includes','UNIVER_UNKNOWN','type','init','extend','xlink:href','div','fill','subscribe','Inject','text','svg','Present\x20this\x20document','_init','1em','indexOf','getMemberID','_handleOnline','disposeWithMe','idle','getUnitId','path','_configService','useDependency','UniverIcon','operations','_beIdle','toDisposable','live-share-icon','22zTZDWq','pipe','CollaborationEvent','NEW_CHANGESETS','forwardRef','IUniverInstanceService','getValue','_startFollowing','Injector','LiveShare','toStringTag','Start\x20following','presenter','PRESENTING','symbol','_uiPartsService','_unitID','mergeOverrideWithDependencies','tryStartPresenting','ONLINE','_liveShareService','button'];_0x21a3=function(){return _0x129c93;};return _0x21a3();}function J(_0x389df2){var _0x191210=_0x157e0f;const {coordinator:_0x7e395f}=_0x389df2;return l[_0x191210(0x228)](l[_0x191210(0x260)],{'children':[l['jsx']('div',{'className':_0x191210(0x236),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](g[_0x191210(0x1f8)],{'variant':_0x191210(0x1a4),'onClick':()=>_0x7e395f[_0x191210(0x271)](),'children':_0x191210(0x1c2)})]});}function K(_0x13cafe){var _0x40d7c4=_0x157e0f;const {coordinator:_0x595f21}=_0x13cafe;return l[_0x40d7c4(0x228)](l[_0x40d7c4(0x260)],{'children':[l[_0x40d7c4(0x221)](_0x40d7c4(0x1a0),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x40d7c4(0x24f)}),l['jsx'](g['Button'],{'variant':'default','onClick':()=>_0x595f21[_0x40d7c4(0x207)](),'children':_0x40d7c4(0x22b)})]});}function z(){var _0x2fd50b=_0x157e0f;return l[_0x2fd50b(0x221)](l['Fragment'],{'children':_0x2fd50b(0x272)});}var Q=Object[_0x157e0f(0x26b)],X=(_0x5edccb,_0xfb3b0a,_0x20415b,_0x561689)=>{var _0x255dda=_0x157e0f;for(var _0x18862d=_0x561689>0x1?void 0x0:_0x561689?Q(_0xfb3b0a,_0x20415b):_0xfb3b0a,_0x37e8dd=_0x5edccb[_0x255dda(0x235)]-0x1,_0x4a0bc2;_0x37e8dd>=0x0;_0x37e8dd--)(_0x4a0bc2=_0x5edccb[_0x37e8dd])&&(_0x18862d=_0x4a0bc2(_0x18862d)||_0x18862d);return _0x18862d;},x=(_0x2ea074,_0x1a3681)=>(_0x115241,_0x306458)=>_0x1a3681(_0x115241,_0x306458,_0x2ea074);exports[_0x157e0f(0x24e)]=class extends o[_0x157e0f(0x227)]{constructor(_0x4c6b05,_0x42c84d){var _0x3d8d4c=_0x157e0f;super(),this[_0x3d8d4c(0x231)]=_0x4c6b05,this[_0x3d8d4c(0x1c6)]=_0x42c84d,this[_0x3d8d4c(0x232)]();}[_0x157e0f(0x232)](){var _0x2aef35=_0x157e0f;this[_0x2aef35(0x1ac)](this[_0x2aef35(0x1c6)]['registerComponent'](p['BuiltInUIPart'][_0x2aef35(0x249)],()=>p[_0x2aef35(0x225)](A,this[_0x2aef35(0x231)])));}},exports['DesktopLiveShareController']=X([x(0x0,o[_0x157e0f(0x1a3)](o[_0x157e0f(0x1bf)])),x(0x1,p[_0x157e0f(0x1ef)])],exports[_0x157e0f(0x24e)]);const ee=_0x157e0f(0x1f1),L={};var te=Object[_0x157e0f(0x26b)],ie=(_0x140b6c,_0x3a6f06,_0x48b99e,_0x431259)=>{var _0x280e43=_0x157e0f;for(var _0x181a70=_0x431259>0x1?void 0x0:_0x431259?te(_0x3a6f06,_0x48b99e):_0x3a6f06,_0x120de5=_0x140b6c[_0x280e43(0x235)]-0x1,_0x25ec97;_0x120de5>=0x0;_0x120de5--)(_0x25ec97=_0x140b6c[_0x120de5])&&(_0x181a70=_0x25ec97(_0x181a70)||_0x181a70);return _0x181a70;},ne=(_0x1cc744,_0x254b96)=>(_0x48de63,_0x46cc19)=>_0x254b96(_0x48de63,_0x46cc19,_0x1cc744);let E=class extends o[_0x157e0f(0x227)]{constructor(_0x2a3663){var _0x2bcb58=_0x157e0f;super(),this[_0x2bcb58(0x1cb)]=_0x2a3663,this['_init']();}[_0x157e0f(0x1a7)](){var _0x2d0562=_0x157e0f;[D[_0x2d0562(0x22a)]['id'],D[_0x2d0562(0x25f)]['id'],C['SetWorksheetActiveOperation']['id']][_0x2d0562(0x1da)](_0xd58e=>{var _0x319496=_0x2d0562;this['disposeWithMe'](this[_0x319496(0x1cb)][_0x319496(0x217)](_0xd58e));});}};E=ie([ne(0x0,o['Inject'](O))],E);var re=Object[_0x157e0f(0x265)],se=Object[_0x157e0f(0x26b)],oe=(_0x52e0bf,_0x57b077,_0x37dcfc)=>_0x57b077 in _0x52e0bf?re(_0x52e0bf,_0x57b077,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37dcfc}):_0x52e0bf[_0x57b077]=_0x37dcfc,ae=(_0x52ee6f,_0x357479,_0x1680a3,_0x41caec)=>{var _0x50672b=_0x157e0f;for(var _0xb59a79=_0x41caec>0x1?void 0x0:_0x41caec?se(_0x357479,_0x1680a3):_0x357479,_0x1ac09d=_0x52ee6f[_0x50672b(0x235)]-0x1,_0x7d3826;_0x1ac09d>=0x0;_0x1ac09d--)(_0x7d3826=_0x52ee6f[_0x1ac09d])&&(_0xb59a79=_0x7d3826(_0xb59a79)||_0xb59a79);return _0xb59a79;},N=(_0x423180,_0x21a43f)=>(_0x539eac,_0x80ccc3)=>_0x21a43f(_0x539eac,_0x80ccc3,_0x423180),T=(_0x3f6889,_0x36bb17,_0x52fc3a)=>oe(_0x3f6889,typeof _0x36bb17!=_0x157e0f(0x1c5)?_0x36bb17+'':_0x36bb17,_0x52fc3a);const le=_0x157e0f(0x1ee);exports[_0x157e0f(0x21d)]=class extends o['Plugin']{constructor(_0x2bfa3f=L,_0x11d172,_0x3ffa48){var _0xe011f6=_0x157e0f;super(),this[_0xe011f6(0x257)]=_0x2bfa3f,this['_injector']=_0x11d172,this[_0xe011f6(0x1b0)]=_0x3ffa48;const {..._0x2feea3}=o[_0xe011f6(0x23b)]({},L,this[_0xe011f6(0x257)]);this['_configService'][_0xe011f6(0x213)](ee,_0x2feea3);}['onStarting'](){var _0xce400e=_0x157e0f;o[_0xce400e(0x214)](this['_injector'],o[_0xce400e(0x1c8)]([[O],[exports['LiveShareController']],[E],[exports[_0xce400e(0x24e)]]],this[_0xce400e(0x257)]['override'])),o[_0xce400e(0x267)](this[_0xce400e(0x231)],[[E]]);}[_0x157e0f(0x21f)](){var _0x4bec29=_0x157e0f;o['touchDependencies'](this[_0x4bec29(0x231)],[[exports[_0x4bec29(0x24e)]]]);}},T(exports[_0x157e0f(0x21d)],_0x157e0f(0x19c),o[_0x157e0f(0x1f7)][_0x157e0f(0x19b)]),T(exports[_0x157e0f(0x21d)],'pluginName',le),exports[_0x157e0f(0x21d)]=ae([o['DependentOn'](m[_0x157e0f(0x1d9)]),N(0x1,o[_0x157e0f(0x1a3)](o[_0x157e0f(0x1bf)])),N(0x2,o['IConfigService'])],exports[_0x157e0f(0x21d)]),exports[_0x157e0f(0x1c0)]=A,exports[_0x157e0f(0x1dc)]=O,exports[_0x157e0f(0x23c)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x4e3af4=_0x5c78;(function(_0x4296cc,_0x25b45e){var _0x29ed54=_0x5c78,_0x1e2d5d=_0x4296cc();while(!![]){try{var _0x6da783=parseInt(_0x29ed54(0x202))/0x1+-parseInt(_0x29ed54(0x1d8))/0x2*(-parseInt(_0x29ed54(0x1ab))/0x3)+-parseInt(_0x29ed54(0x180))/0x4*(parseInt(_0x29ed54(0x1b4))/0x5)+parseInt(_0x29ed54(0x210))/0x6*(parseInt(_0x29ed54(0x1c3))/0x7)+parseInt(_0x29ed54(0x1a1))/0x8*(-parseInt(_0x29ed54(0x16b))/0x9)+parseInt(_0x29ed54(0x1b8))/0xa*(-parseInt(_0x29ed54(0x1f4))/0xb)+parseInt(_0x29ed54(0x19a))/0xc;if(_0x6da783===_0x25b45e)break;else _0x1e2d5d['push'](_0x1e2d5d['shift']());}catch(_0x5fd228){_0x1e2d5d['push'](_0x1e2d5d['shift']());}}}(_0x8a68,0xb912e));var q=Object[_0x4e3af4(0x1d9)],z=(_0x3e84eb,_0x1cefe3,_0x2a7622)=>_0x1cefe3 in _0x3e84eb?q(_0x3e84eb,_0x1cefe3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a7622}):_0x3e84eb[_0x1cefe3]=_0x2a7622,d=(_0x316034,_0x2af8c6,_0x24afce)=>z(_0x316034,typeof _0x2af8c6!=_0x4e3af4(0x1b7)?_0x2af8c6+'':_0x2af8c6,_0x24afce);import{Disposable as _0x47a0ad,toDisposable as _0x49f94f,IUniverInstanceService as _0x41d5d1,Inject as _0x5e3f41,Injector as _0x3d9b07,IConfigService as _0x509920,ICommandService as _0x731239,RxDisposable as _0x8f69e8,UniverInstanceType as _0x24c5e3,DisposableCollection as _0x183114,CommandType as _0x406fbf,DependentOn as _0x23e969,Plugin as _0x3597d6,merge as _0x5d6ffb,registerDependencies as _0x4fd2a6,mergeOverrideWithDependencies as _0x5e3628,touchDependencies as _0x864c41}from'@univerjs/core';import{useDependency as _0x46ed8c,useObservable as _0x272543,IUIPartsService as _0x13121a,BuiltInUIPart as _0x882eae,connectInjector as _0x4fb5b9}from'@univerjs/ui';import{jsx as _0x4dccbe,jsxs as _0x3f4580,Fragment as _0x4cdd5d}from'react/jsx-runtime';import{Dropdown as _0x26f77f,clsx as _0x520a75,Button as _0x27e6ca}from'@univerjs/design';import{forwardRef as _0x283df9,useRef as _0x27eef8,createElement as _0x49c5d9,useState as _0x10563c,useEffect as _0x4748a7}from'react';function _0x5c78(_0x56acff,_0x597f6a){var _0x8a6868=_0x8a68();return _0x5c78=function(_0x5c785b,_0x2c5f49){_0x5c785b=_0x5c785b-0x161;var _0x3f25ea=_0x8a6868[_0x5c785b];return _0x3f25ea;},_0x5c78(_0x56acff,_0x597f6a);}import{CollaborationEvent as _0x1ff539,parseProtocolChangeset as _0x25e34f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5e6c43,SessionStatus as _0x1eae31,UniverCollaborationClientPlugin as _0x47c63f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xa92ac9,SetWorksheetActiveOperation as _0x47bab9}from'@univerjs/sheets';import{BehaviorSubject as _0xf8c315,Subject as _0x13b0cb}from'rxjs';import{takeUntil as _0x15ef67,throttleTime as _0x2eb31b}from'rxjs/operators';function _0x8a68(){var _0x1eb1fc=['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','_init','Start','div','_config','_commandDisposable','2835qzJTwk','_commandService','xlink:href','_beIdle','LIVESHARE_REQUEST_HOST','send','className','_handleNewChangeSets','stopFollowing','_liveShareService','getOwnPropertySymbols','_presenter','mask','sheet','NOT_FOLLOWING','_stopFollowing','end','LIVESHARE_OPERATION','_collabSessionService','onCommandExecuted','getTypeOfUnitAdded$','17752opltzS','status$','live-share-icon','_handleOperation','propertyIsEnumerable','offline','_reporters','defIds','_startPresenting','delete','operations','_sharedOperations','prototype','svg','idle','getUnitId','icon','UNIVER_LIVE_SHARE_PLUGIN','trim','tag','text','entries','function','registerInitialStateReporter','idSuffix','path','7100256SMvQyO','indexOf','dispose$','replace','hasOwnProperty','default','http://www.w3.org/2000/svg','28136owkjme','forEach','init','data','extend','UniverIcon','substring','getInitialStates','_startLiveShareCoordinator','presenting','4266thkeDq','univer-mb-3\x20univer-w-full\x20univer-text-sm','from','stopPresenting','unitId','add','_entities','attrs','_fetchOperations','1200QiBPjW','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','PRESENTING','symbol','2670nyHPle','evenodd','url(#$1','length','_startFollowing','_status$','disposeWithMe','map','UNIVER_SHEET','1em','LIVESHARE_TERMINATE','14SiSUtQ','_collabSession','pluginName','You\x27are\x20offline.','getTypeOfUnitDisposed$','has','currentColor','parse','_handleNewHost','OFFLINE','LiveShareIcon','complete','FOLLOWING','tryStartPresenting','not-following','call','mutations','_uiPartsService','_univerInstanceService','_handleOffline','current','1618CHohKM','defineProperty','pipe','univer-size-4','_unitID','HEADER_MENU','apply','_handleOnline','find','dispose','button','You\x27re\x20not\x20following\x20the\x20presenter','shouldShareOperation','get','SAME_OPERATION_SHARE_INTERVAL','live-share.config','Stop\x20following','presenter','subscribe','onRendered','ONLINE','onStarting','LIVESHARE_NEW_HOST','defs','none','includes','displayName','0\x200\x2017\x2017','34705igrXwE','getLiveShareCoordinator','_injector','colorChannel1','_mountLiveShare','_configService','registerSharedOperation','createInstance','string','_stopPresenting','following','getOwnPropertyDescriptor','stringify','random','952130VKNunU','sessionStatus$','toString','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','Present\x20this\x20document','univerjs-icon\x20univerjs-icon-','_status','unsubscribe','startFollowing','next','OPERATION','getConfig','registerComponent','LIVESHARE_FETCH_OPERATIONS','3237618trDgZZ','params','set','setConfig','type','concat'];_0x8a68=function(){return _0x1eb1fc;};return _0x8a68();}import{SetZoomRatioOperation as _0x3f5489,SetScrollOperation as _0xc9b77c}from'@univerjs/sheets-ui';var c=function(){var _0x3ab0b5=_0x4e3af4;return c=Object['assign']||function(_0x2d86ff){var _0x30b7c8=_0x5c78;for(var _0x5acc58,_0x5d75c0=0x1,_0x3860fb=arguments[_0x30b7c8(0x1bb)];_0x5d75c0<_0x3860fb;_0x5d75c0++){_0x5acc58=arguments[_0x5d75c0];for(var _0x4f7c10 in _0x5acc58)Object['prototype'][_0x30b7c8(0x19e)]['call'](_0x5acc58,_0x4f7c10)&&(_0x2d86ff[_0x4f7c10]=_0x5acc58[_0x4f7c10]);}return _0x2d86ff;},c[_0x3ab0b5(0x1de)](this,arguments);},Oe=function(_0x5968e7,_0x49bbb8){var _0x5a41d0=_0x4e3af4,_0x223ccc={};for(var _0x1f965e in _0x5968e7)Object[_0x5a41d0(0x18c)]['hasOwnProperty'][_0x5a41d0(0x1d2)](_0x5968e7,_0x1f965e)&&_0x49bbb8[_0x5a41d0(0x19b)](_0x1f965e)<0x0&&(_0x223ccc[_0x1f965e]=_0x5968e7[_0x1f965e]);if(_0x5968e7!=null&&typeof Object[_0x5a41d0(0x175)]==_0x5a41d0(0x196)){for(var _0x6c9cb2=0x0,_0x1f965e=Object['getOwnPropertySymbols'](_0x5968e7);_0x6c9cb2<_0x1f965e[_0x5a41d0(0x1bb)];_0x6c9cb2++)_0x49bbb8[_0x5a41d0(0x19b)](_0x1f965e[_0x6c9cb2])<0x0&&Object[_0x5a41d0(0x18c)][_0x5a41d0(0x184)][_0x5a41d0(0x1d2)](_0x5968e7,_0x1f965e[_0x6c9cb2])&&(_0x223ccc[_0x1f965e[_0x6c9cb2]]=_0x5968e7[_0x1f965e[_0x6c9cb2]]);}return _0x223ccc;},W=_0x283df9(function(_0x1b2ab5,_0xfb72a8){var _0x3c513e=_0x4e3af4,_0x203275=_0x1b2ab5[_0x3c513e(0x190)],_0x955076=_0x1b2ab5['id'],_0x83e51f=_0x1b2ab5['className'],_0x45a33f=_0x1b2ab5['extend'],_0x4a1816=Oe(_0x1b2ab5,['icon','id',_0x3c513e(0x171),_0x3c513e(0x1a5)]),_0x9cb111=_0x3c513e(0x207)[_0x3c513e(0x164)](_0x955076,'\x20')[_0x3c513e(0x164)](_0x83e51f||'')[_0x3c513e(0x192)](),_0x48e17d=_0x27eef8('_'[_0x3c513e(0x164)](Ne()));return Y(_0x203275,''[_0x3c513e(0x164)](_0x955076),{'defIds':_0x203275['defIds'],'idSuffix':_0x48e17d['current']},c({'ref':_0xfb72a8,'className':_0x9cb111},_0x4a1816),_0x45a33f);});function Y(_0x2eda76,_0x251e1a,_0x36fd12,_0x303a8a,_0x469aa3){var _0x46c832=_0x4e3af4;return _0x49c5d9(_0x2eda76[_0x46c832(0x193)],c(c({'key':_0x251e1a},Ee(_0x2eda76,_0x36fd12,_0x469aa3)),_0x303a8a),(we(_0x2eda76,_0x36fd12)['children']||[])['map'](function(_0x5a5815,_0x273084){var _0x3fa662=_0x46c832;return Y(_0x5a5815,''[_0x3fa662(0x164)](_0x251e1a,'-')[_0x3fa662(0x164)](_0x2eda76[_0x3fa662(0x193)],'-')[_0x3fa662(0x164)](_0x273084),_0x36fd12,void 0x0,_0x469aa3);}));}function Ee(_0x3c59aa,_0x545841,_0x46deb7){var _0x15fbec=_0x4e3af4,_0x16ae79=c({},_0x3c59aa[_0x15fbec(0x1b2)]);_0x46deb7!=null&&_0x46deb7[_0x15fbec(0x1f7)]&&_0x16ae79['fill']===_0x15fbec(0x1f7)&&(_0x16ae79['fill']=_0x46deb7[_0x15fbec(0x1f7)]),_0x3c59aa['tag']===_0x15fbec(0x177)&&_0x16ae79['id']&&(_0x16ae79['id']=_0x16ae79['id']+_0x545841[_0x15fbec(0x198)]),Object['entries'](_0x16ae79)[_0x15fbec(0x1a2)](function(_0x55f693){var _0x4a319f=_0x15fbec,_0x27bf6b=_0x55f693[0x0],_0x25b605=_0x55f693[0x1];_0x27bf6b===_0x4a319f(0x177)&&typeof _0x25b605==_0x4a319f(0x1fc)&&(_0x16ae79[_0x27bf6b]=_0x25b605[_0x4a319f(0x19d)](/url\(#(.*)\)/,_0x4a319f(0x1ba)[_0x4a319f(0x164)](_0x545841['idSuffix'],')')));});var _0xdb78a3=_0x545841[_0x15fbec(0x187)];return!_0xdb78a3||_0xdb78a3[_0x15fbec(0x1bb)]===0x0||(_0x3c59aa[_0x15fbec(0x193)]==='use'&&_0x16ae79['xlink:href']&&(_0x16ae79[_0x15fbec(0x16d)]=_0x16ae79['xlink:href']+_0x545841[_0x15fbec(0x198)]),Object[_0x15fbec(0x195)](_0x16ae79)[_0x15fbec(0x1a2)](function(_0x465d9f){var _0x3a059d=_0x15fbec,_0x564719=_0x465d9f[0x0],_0x1e368f=_0x465d9f[0x1];typeof _0x1e368f==_0x3a059d(0x1fc)&&(_0x16ae79[_0x564719]=_0x1e368f[_0x3a059d(0x19d)](/url\(#(.*)\)/,_0x3a059d(0x1ba)[_0x3a059d(0x164)](_0x545841[_0x3a059d(0x198)],')')));})),_0x16ae79;}function we(_0xf90a0,_0x449406){var _0x4c35a0=_0x4e3af4,_0x3e1784,_0x732483=_0x449406['defIds'];return!_0x732483||_0x732483[_0x4c35a0(0x1bb)]===0x0?_0xf90a0:_0xf90a0[_0x4c35a0(0x193)]===_0x4c35a0(0x1ef)&&(!((_0x3e1784=_0xf90a0['children'])===null||_0x3e1784===void 0x0)&&_0x3e1784[_0x4c35a0(0x1bb)])?c(c({},_0xf90a0),{'children':_0xf90a0['children'][_0x4c35a0(0x1bf)](function(_0x483839){var _0x491969=_0x4c35a0;return typeof _0x483839[_0x491969(0x1b2)]['id']=='string'&&_0x732483&&_0x732483[_0x491969(0x1f1)](_0x483839[_0x491969(0x1b2)]['id'])?c(c({},_0x483839),{'attrs':c(c({},_0x483839[_0x491969(0x1b2)]),{'id':_0x483839[_0x491969(0x1b2)]['id']+_0x449406[_0x491969(0x198)]})}):_0x483839;})}):_0xf90a0;}function Ne(){var _0x53891a=_0x4e3af4;return Math[_0x53891a(0x201)]()[_0x53891a(0x204)](0x24)[_0x53891a(0x1a7)](0x2,0x8);}W['displayName']=_0x4e3af4(0x1a6);var Ce={'tag':_0x4e3af4(0x18d),'attrs':{'xmlns':_0x4e3af4(0x1a0),'fill':_0x4e3af4(0x1f0),'viewBox':_0x4e3af4(0x1f3),'width':_0x4e3af4(0x1c1),'height':_0x4e3af4(0x1c1)},'children':[{'tag':'path','attrs':{'fill':_0x4e3af4(0x1c9),'d':_0x4e3af4(0x165)}},{'tag':_0x4e3af4(0x199),'attrs':{'fill':_0x4e3af4(0x1c9),'d':_0x4e3af4(0x1b5),'fillRule':_0x4e3af4(0x1b9),'clipRule':_0x4e3af4(0x1b9)}}]},B=_0x283df9(function(_0xd534d,_0x5ec763){var _0x5c3cbe=_0x4e3af4;return _0x49c5d9(W,Object['assign']({},_0xd534d,{'id':_0x5c3cbe(0x182),'ref':_0x5ec763,'icon':Ce}));});B[_0x4e3af4(0x1f2)]=_0x4e3af4(0x1cd);class L extends _0x47a0ad{constructor(){var _0x1d905e=_0x4e3af4;super(...arguments),d(this,_0x1d905e(0x18b),new Set()),d(this,'_reporters',new Set());}[_0x4e3af4(0x1fa)](_0x45cba8){var _0x4e1383=_0x4e3af4;return this['_sharedOperations']['add'](_0x45cba8),_0x49f94f(()=>this[_0x4e1383(0x18b)][_0x4e1383(0x189)](_0x45cba8));}[_0x4e3af4(0x197)](_0x30ec9b){var _0x3cbe96=_0x4e3af4;return this[_0x3cbe96(0x186)][_0x3cbe96(0x1b0)](_0x30ec9b),_0x49f94f(()=>this[_0x3cbe96(0x186)][_0x3cbe96(0x189)](_0x30ec9b));}[_0x4e3af4(0x1e4)](_0x2e8fd9){var _0x28d3df=_0x4e3af4;return this[_0x28d3df(0x18b)]['has'](_0x2e8fd9);}[_0x4e3af4(0x1a8)](_0x119abf){var _0x4acac0=_0x4e3af4;return Array[_0x4acac0(0x1ad)](this[_0x4acac0(0x186)])['map'](_0x502e48=>_0x502e48(_0x119abf));}}var De=Object[_0x4e3af4(0x1ff)],Z=(_0x36f33e,_0x3fc8fd,_0x7e51d8,_0x172d79)=>{var _0x3ed274=_0x4e3af4;for(var _0x580cd8=_0x172d79>0x1?void 0x0:_0x172d79?De(_0x3fc8fd,_0x7e51d8):_0x3fc8fd,_0x2429ad=_0x36f33e[_0x3ed274(0x1bb)]-0x1,_0x28a8b5;_0x2429ad>=0x0;_0x2429ad--)(_0x28a8b5=_0x36f33e[_0x2429ad])&&(_0x580cd8=_0x28a8b5(_0x580cd8)||_0x580cd8);return _0x580cd8;},f=(_0x1dfe42,_0x2c9825)=>(_0x3b84fb,_0x5889a6)=>_0x2c9825(_0x3b84fb,_0x5889a6,_0x1dfe42);let m=class extends _0x8f69e8{constructor(_0x588b3a,_0x48121a,_0x2d6418){var _0x3791a4=_0x4e3af4;super(),d(this,_0x3791a4(0x1b1),new Map()),(this[_0x3791a4(0x1d5)]=_0x588b3a,this[_0x3791a4(0x1f6)]=_0x48121a,this[_0x3791a4(0x17d)]=_0x2d6418,this[_0x3791a4(0x166)]());}async[_0x4e3af4(0x1f5)](_0x1e4b25){var _0x4e83b7=_0x4e3af4;return this[_0x4e83b7(0x1b1)][_0x4e83b7(0x1c8)](_0x1e4b25)||await this['_startLiveShareCoordinator'](_0x1e4b25),this[_0x4e83b7(0x1b1)][_0x4e83b7(0x1e5)](_0x1e4b25);}['_init'](){var _0x64c5c1=_0x4e3af4;this['_univerInstanceService'][_0x64c5c1(0x17f)](_0x24c5e3[_0x64c5c1(0x1c0)])[_0x64c5c1(0x1da)](_0x15ef67(this[_0x64c5c1(0x19c)]))[_0x64c5c1(0x1ea)](async _0x4a4b77=>{var _0x366673=_0x64c5c1;const _0x3c90e6=_0x4a4b77[_0x366673(0x18f)]();this[_0x366673(0x1b1)][_0x366673(0x1c8)](_0x3c90e6)||this['_startLiveShareCoordinator'](_0x3c90e6);}),this[_0x64c5c1(0x1d5)][_0x64c5c1(0x1c7)](_0x24c5e3[_0x64c5c1(0x1c0)])[_0x64c5c1(0x1da)](_0x15ef67(this[_0x64c5c1(0x19c)]))[_0x64c5c1(0x1ea)](_0x4047d6=>{var _0x3e476b=_0x64c5c1;const _0x91c134=_0x4047d6[_0x3e476b(0x18f)](),_0x3d1ca1=this[_0x3e476b(0x1b1)][_0x3e476b(0x1e5)](_0x91c134);_0x3d1ca1==null||_0x3d1ca1[_0x3e476b(0x1e1)]();});}async[_0x4e3af4(0x1a9)](_0x59075f){var _0x2e7c78=_0x4e3af4;const _0x389c32=await this[_0x2e7c78(0x17d)]['requireSession'](_0x59075f),_0x594cb0=this['_injector'][_0x2e7c78(0x1fb)](C,_0x59075f,_0x389c32);return _0x594cb0[_0x2e7c78(0x1a3)](),this[_0x2e7c78(0x1b1)][_0x2e7c78(0x161)](_0x59075f,_0x594cb0),_0x594cb0;}};m=Z([f(0x0,_0x41d5d1),f(0x1,_0x5e3f41(_0x3d9b07)),f(0x2,_0x5e3f41(_0x5e6c43))],m);var h=(_0x282943=>(_0x282943[_0x4e3af4(0x1cc)]='offline',_0x282943['IDLE']=_0x4e3af4(0x18e),_0x282943['FOLLOWING']=_0x4e3af4(0x1fe),_0x282943[_0x4e3af4(0x179)]='not-following',_0x282943[_0x4e3af4(0x1b6)]='presenting',_0x282943))(h||{});const xe=_0x4e3af4(0x1e6),Le=0xc8;let C=class extends _0x8f69e8{constructor(_0x28cea6,_0x2d3596,_0x588087,_0x20ce57,_0x597e7){var _0xc5d941=_0x4e3af4;super(),d(this,_0xc5d941(0x1bd),new _0xf8c315(_0xc5d941(0x18e))),d(this,_0xc5d941(0x181),this['_status$']['asObservable']()),d(this,_0xc5d941(0x166),!0x1),d(this,_0xc5d941(0x16a),null),d(this,_0xc5d941(0x176),null),(this['_unitID']=_0x28cea6,this[_0xc5d941(0x1c4)]=_0x2d3596,this[_0xc5d941(0x1f9)]=_0x588087,this[_0xc5d941(0x174)]=_0x20ce57,this['_commandService']=_0x597e7);}get['_status'](){var _0x2bfd60=_0x4e3af4;return this[_0x2bfd60(0x1bd)]['getValue']();}[_0x4e3af4(0x1e1)](){var _0x1b5a56=_0x4e3af4,_0x2b17e2;(_0x2b17e2=this[_0x1b5a56(0x16a)])==null||_0x2b17e2['dispose'](),this[_0x1b5a56(0x1bd)][_0x1b5a56(0x20b)](_0x1b5a56(0x18e)),this[_0x1b5a56(0x1bd)][_0x1b5a56(0x1ce)]();}['init'](){var _0x1a4e35=_0x4e3af4;this['_init']||(this['_init']=!0x0,this[_0x1a4e35(0x1c4)][_0x1a4e35(0x203)][_0x1a4e35(0x1da)](_0x15ef67(this[_0x1a4e35(0x19c)]))[_0x1a4e35(0x1ea)](_0x104543=>{var _0x26d6eb=_0x1a4e35;switch(_0x104543){case _0x1eae31[_0x26d6eb(0x1cc)]:this[_0x26d6eb(0x1d6)]();break;case _0x1eae31[_0x26d6eb(0x1ec)]:this[_0x26d6eb(0x1df)]();break;}}),this[_0x1a4e35(0x1c4)]['event$'][_0x1a4e35(0x1da)](_0x15ef67(this[_0x1a4e35(0x19c)]))[_0x1a4e35(0x1ea)](_0x51450d=>{var _0x3d3686=_0x1a4e35;const {eventID:_0x1bd1c2}=_0x51450d;switch(_0x1bd1c2){case _0x1ff539[_0x3d3686(0x1ee)]:this[_0x3d3686(0x1cb)](_0x51450d);break;case _0x1ff539[_0x3d3686(0x17c)]:this[_0x3d3686(0x183)](_0x51450d);break;case _0x1ff539[_0x3d3686(0x1c2)]:this['_handleTerminate']();break;case _0x1ff539['NEW_CHANGESETS']:this[_0x3d3686(0x172)](_0x51450d);break;}}));}['tryStartPresenting'](){var _0xc29aea=_0x4e3af4;this[_0xc29aea(0x1c4)][_0xc29aea(0x170)]({'eventID':_0x1ff539[_0xc29aea(0x16f)],'data':{'unitID':this[_0xc29aea(0x1dc)],'userID':this[_0xc29aea(0x1c4)]['getMemberID']()}},this['_unitID']);}[_0x4e3af4(0x1ae)](){var _0x15f201=_0x4e3af4;this[_0x15f201(0x208)]===_0x15f201(0x1aa)&&(this[_0x15f201(0x1bd)][_0x15f201(0x20b)](_0x15f201(0x18e)),this[_0x15f201(0x1c4)]['send']({'eventID':_0x1ff539['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x15f201(0x1dc)]}},this[_0x15f201(0x1dc)]));}[_0x4e3af4(0x20a)](){var _0x59a1b7=_0x4e3af4;this['_status']===_0x59a1b7(0x1d1)&&(this[_0x59a1b7(0x1bd)][_0x59a1b7(0x20b)]('following'),this[_0x59a1b7(0x1bc)]());}['stopFollowing'](){var _0x5d3bef=_0x4e3af4;this[_0x5d3bef(0x208)]==='following'&&this[_0x5d3bef(0x17a)]();}[_0x4e3af4(0x1cb)](_0x3acacc){var _0x2f8557=_0x4e3af4;const {presenter:_0x42556b}=_0x3acacc[_0x2f8557(0x1a4)],_0x4a0bb0=this[_0x2f8557(0x1c4)]['getMemberID']();this[_0x2f8557(0x176)]=_0x42556b,_0x42556b===_0x4a0bb0?(this[_0x2f8557(0x17a)](),this['_startPresenting']()):this['_status']!==_0x2f8557(0x1d1)&&(this['_stopPresenting'](),this[_0x2f8557(0x1bc)]());}[_0x4e3af4(0x1b3)](){var _0x57943b=_0x4e3af4;const _0x509a2f={'eventID':_0x1ff539[_0x57943b(0x20f)]};this[_0x57943b(0x1c4)][_0x57943b(0x170)](_0x509a2f,this[_0x57943b(0x1dc)]);}['_handleTerminate'](){var _0x33c1ee=_0x4e3af4;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x33c1ee(0x16e)]();}[_0x4e3af4(0x172)](_0x5e23c5){var _0x1522d6=_0x4e3af4;if(this[_0x1522d6(0x208)]==='following'&&this[_0x1522d6(0x176)]===_0x5e23c5['data']['memberID']){const _0x361441=_0x25e34f(_0x5e23c5[_0x1522d6(0x1a4)])[_0x1522d6(0x1d3)]['reverse']()[_0x1522d6(0x1e0)](_0x3274f0=>_0x3274f0['id']===_0xa92ac9['id']);if(_0x361441){const _0x35059e=_0x361441[_0x1522d6(0x211)][_0x1522d6(0x1af)],_0x31767b=_0x361441[_0x1522d6(0x211)][_0x1522d6(0x178)]['id'];setTimeout(()=>{var _0x55b82f=_0x1522d6;this[_0x55b82f(0x16c)]['executeCommand'](_0x47bab9['id'],{'unitId':_0x35059e,'subUnitId':_0x31767b},{'fromCollab':!0x0});});}}}[_0x4e3af4(0x188)](){var _0x432d01=_0x4e3af4;this[_0x432d01(0x1bd)][_0x432d01(0x20b)](_0x432d01(0x1aa));const _0x17021f=new Map(),_0x439807=this[_0x432d01(0x16a)]=new _0x183114();_0x439807['add'](_0x49f94f(()=>{var _0xbd99a=_0x432d01;_0x17021f[_0xbd99a(0x1a2)](_0x1a79a8=>_0x1a79a8[_0xbd99a(0x1ce)]()),_0x17021f['clear']();})),_0x439807[_0x432d01(0x1b0)](this[_0x432d01(0x16c)][_0x432d01(0x17e)](_0x2ad88e=>{var _0x4f70d7=_0x432d01,_0x5d9409;if(_0x2ad88e[_0x4f70d7(0x163)]!==_0x406fbf[_0x4f70d7(0x20c)]||!this[_0x4f70d7(0x174)]['shouldShareOperation'](_0x2ad88e['id']))return;const {id:_0x39a1bc}=_0x2ad88e;let _0x153371;_0x17021f[_0x4f70d7(0x1c8)](_0x39a1bc)?_0x153371=_0x17021f[_0x4f70d7(0x1e5)](_0x39a1bc):(_0x153371=new _0x13b0cb(),_0x17021f[_0x4f70d7(0x161)](_0x39a1bc,_0x153371),_0x153371[_0x4f70d7(0x1da)](_0x2eb31b((_0x5d9409=this['_configService'][_0x4f70d7(0x20d)](xe))!=null?_0x5d9409:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3c0346=>{var _0x2eed7b=_0x4f70d7;this[_0x2eed7b(0x1c4)][_0x2eed7b(0x170)]({'eventID':_0x1ff539[_0x2eed7b(0x17c)],'data':{'unitID':this['_unitID'],'operations':{[_0x3c0346['id']]:{'id':_0x3c0346['id'],'params':JSON[_0x2eed7b(0x200)](_0x3c0346[_0x2eed7b(0x211)])}}}},this[_0x2eed7b(0x1dc)]);})),_0x153371[_0x4f70d7(0x20b)](_0x2ad88e);})),this['_liveShareService'][_0x432d01(0x1a8)](this[_0x432d01(0x1dc)])[_0x432d01(0x1a2)](_0x1d7fd4=>this['_collabSession']['send']({'eventID':_0x1ff539[_0x432d01(0x17c)],'data':{'unitID':this[_0x432d01(0x1dc)],'operations':{[_0x1d7fd4['id']]:{'id':_0x1d7fd4['id'],'params':JSON[_0x432d01(0x200)](_0x1d7fd4[_0x432d01(0x211)])}}}},this[_0x432d01(0x1dc)]));}[_0x4e3af4(0x1fd)](){var _0x22e187=_0x4e3af4,_0x3d950c;this['_status$']['next'](_0x22e187(0x18e)),(_0x3d950c=this[_0x22e187(0x16a)])==null||_0x3d950c[_0x22e187(0x1e1)](),this[_0x22e187(0x16a)]=null;}[_0x4e3af4(0x1bc)](){var _0x2dcfa9=_0x4e3af4,_0x2401b2;(_0x2401b2=this[_0x2dcfa9(0x16a)])==null||_0x2401b2['dispose'](),this[_0x2dcfa9(0x1bd)]['next'](_0x2dcfa9(0x1fe));}[_0x4e3af4(0x16e)](){var _0x243513=_0x4e3af4,_0x344e1f;this[_0x243513(0x1bd)][_0x243513(0x20b)](_0x243513(0x18e)),(_0x344e1f=this[_0x243513(0x16a)])==null||_0x344e1f['dispose'](),this[_0x243513(0x16a)]=null;}[_0x4e3af4(0x17a)](){var _0x4550a8=_0x4e3af4,_0x5dc4c6;this[_0x4550a8(0x1bd)]['next'](_0x4550a8(0x1d1)),(_0x5dc4c6=this[_0x4550a8(0x16a)])==null||_0x5dc4c6[_0x4550a8(0x1e1)]();}[_0x4e3af4(0x183)](_0x2115bb){var _0x12945d=_0x4e3af4;if(['presenting','not-following',_0x12945d(0x185)]['includes'](this[_0x12945d(0x208)])||!_0x2115bb[_0x12945d(0x1a4)][_0x12945d(0x1e9)]||_0x2115bb[_0x12945d(0x1a4)]['presenter']===this[_0x12945d(0x1c4)]['getMemberID']())return;this[_0x12945d(0x208)]===_0x12945d(0x18e)&&this['_startFollowing']();const _0x414eb9=_0x2115bb[_0x12945d(0x1a4)][_0x12945d(0x18a)];Object['values'](_0x414eb9)[_0x12945d(0x1a2)](_0x4e3eaa=>{var _0x352612=_0x12945d;this[_0x352612(0x16c)]['executeCommand'](_0x4e3eaa['id'],_0x4e3eaa[_0x352612(0x211)]?JSON[_0x352612(0x1ca)](_0x4e3eaa['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x193a17=_0x4e3af4,_0x1a6334;this[_0x193a17(0x1bd)]['next'](_0x193a17(0x185)),(_0x1a6334=this['_commandDisposable'])==null||_0x1a6334['dispose']();}[_0x4e3af4(0x1df)](){var _0x202303=_0x4e3af4;this[_0x202303(0x1bd)][_0x202303(0x20b)](_0x202303(0x18e)),this['_fetchOperations']();}};C=Z([f(0x2,_0x509920),f(0x3,_0x5e3f41(L)),f(0x4,_0x731239)],C);function ye(){var _0x255142=_0x4e3af4;const _0x3c42d1=_0x46ed8c(m),_0x192c95=_0x46ed8c(_0x41d5d1),_0x4e670c=_0x272543(()=>_0x192c95['getCurrentTypeOfUnit$'](_0x24c5e3[_0x255142(0x1c0)]),void 0x0,!0x1,[]),[_0x16500f,_0x5dd4dd]=_0x10563c(null),[_0x39f02b,_0x39ef3f]=_0x10563c(h['IDLE']),_0x5aa429=_0x27eef8(null);return _0x4748a7(()=>(_0x4e670c&&_0x3c42d1[_0x255142(0x1f5)](_0x4e670c[_0x255142(0x18f)]())['then'](_0x38d79c=>{var _0x49ab88=_0x255142;_0x5dd4dd(_0x38d79c),_0x5aa429[_0x49ab88(0x1d7)]=_0x38d79c[_0x49ab88(0x181)][_0x49ab88(0x1ea)](_0x254e5b=>{_0x39ef3f(_0x254e5b);});}),()=>{var _0x49881a=_0x255142,_0x471132;(_0x471132=_0x5aa429[_0x49881a(0x1d7)])==null||_0x471132[_0x49881a(0x209)](),_0x5aa429[_0x49881a(0x1d7)]=null;}),[_0x4e670c,_0x3c42d1]),_0x16500f?_0x4dccbe(_0x26f77f,{'align':_0x255142(0x17b),'disabled':_0x39f02b===h[_0x255142(0x1cc)],'className':_0x255142(0x205),'overlay':_0x4dccbe(Re,{'status':_0x39f02b,'coordinator':_0x16500f}),'children':_0x4dccbe(_0x255142(0x1e2),{'className':_0x520a75('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x39f02b===h[_0x255142(0x1cc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x39f02b!==h[_0x255142(0x1cc)]}),'type':_0x255142(0x1e2),'children':_0x4dccbe(B,{'className':_0x255142(0x1db)})})}):null;}function Re(_0x29fd8c){var _0x5cb9df=_0x4e3af4;const {status:_0x4aba32,coordinator:_0x446297}=_0x29fd8c;switch(_0x4aba32){case h['IDLE']:return _0x4dccbe(Pe,{'coordinator':_0x446297});case h[_0x5cb9df(0x1cf)]:return _0x4dccbe(Ae,{'coordinator':_0x446297});case h[_0x5cb9df(0x179)]:return _0x4dccbe(Te,{'coordinator':_0x446297});case h['OFFLINE']:return _0x4dccbe(Fe,{});case h[_0x5cb9df(0x1b6)]:return _0x4dccbe($e,{'coordinator':_0x446297});default:return null;}}function Pe(_0x49859c){var _0xc5535c=_0x4e3af4;const {coordinator:_0x3c86e2}=_0x49859c;return _0x3f4580(_0x4cdd5d,{'children':[_0x4dccbe(_0xc5535c(0x168),{'className':_0xc5535c(0x1ac),'children':_0xc5535c(0x206)}),_0x4dccbe(_0x27e6ca,{'onClick':()=>_0x3c86e2[_0xc5535c(0x1d0)](),'children':_0xc5535c(0x167)})]});}function Ae(_0xcc2208){var _0x49b4bf=_0x4e3af4;const {coordinator:_0x360952}=_0xcc2208;return _0x3f4580(_0x4cdd5d,{'children':[_0x4dccbe(_0x49b4bf(0x168),{'className':_0x49b4bf(0x1ac),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4dccbe(_0x27e6ca,{'onClick':()=>_0x360952[_0x49b4bf(0x173)](),'children':_0x49b4bf(0x1e8)})]});}function Te(_0x4abeaf){var _0x5a4b4d=_0x4e3af4;const {coordinator:_0x1498e7}=_0x4abeaf;return _0x3f4580(_0x4cdd5d,{'children':[_0x4dccbe(_0x5a4b4d(0x168),{'className':_0x5a4b4d(0x1ac),'children':_0x5a4b4d(0x1e3)}),_0x4dccbe(_0x27e6ca,{'variant':_0x5a4b4d(0x194),'onClick':()=>_0x1498e7[_0x5a4b4d(0x20a)](),'children':'Start\x20following'})]});}function $e(_0x4467c3){var _0x1df5f4=_0x4e3af4;const {coordinator:_0x3639cd}=_0x4467c3;return _0x3f4580(_0x4cdd5d,{'children':[_0x4dccbe(_0x1df5f4(0x168),{'className':_0x1df5f4(0x1ac),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4dccbe(_0x27e6ca,{'variant':_0x1df5f4(0x19f),'onClick':()=>_0x3639cd[_0x1df5f4(0x1ae)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x1d63f2=_0x4e3af4;return _0x4dccbe(_0x4cdd5d,{'children':_0x1d63f2(0x1c6)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x26a205,_0x537c52,_0x37c655,_0x5e20e0)=>{var _0x5117c8=_0x4e3af4;for(var _0x1a03f1=_0x5e20e0>0x1?void 0x0:_0x5e20e0?He(_0x537c52,_0x37c655):_0x537c52,_0x223af9=_0x26a205[_0x5117c8(0x1bb)]-0x1,_0x356f32;_0x223af9>=0x0;_0x223af9--)(_0x356f32=_0x26a205[_0x223af9])&&(_0x1a03f1=_0x356f32(_0x1a03f1)||_0x1a03f1);return _0x1a03f1;},T=(_0x16374d,_0x1a3760)=>(_0x329b75,_0x5344f1)=>_0x1a3760(_0x329b75,_0x5344f1,_0x16374d);let I=class extends _0x47a0ad{constructor(_0x20ce4e,_0x20fe68){var _0xadeb15=_0x4e3af4;super(),this[_0xadeb15(0x1f6)]=_0x20ce4e,this[_0xadeb15(0x1d4)]=_0x20fe68,this['_mountLiveShare']();}[_0x4e3af4(0x1f8)](){var _0x5d0129=_0x4e3af4;this[_0x5d0129(0x1be)](this[_0x5d0129(0x1d4)][_0x5d0129(0x20e)](_0x882eae[_0x5d0129(0x1dd)],()=>_0x4fb5b9(ye,this['_injector'])));}};I=je([T(0x0,_0x5e3f41(_0x3d9b07)),T(0x1,_0x13121a)],I);const Ue=_0x4e3af4(0x1e7),$={};var Ve=Object[_0x4e3af4(0x1ff)],Me=(_0x260437,_0x3f7b37,_0x848eff,_0x18daa2)=>{var _0xec4250=_0x4e3af4;for(var _0x35f12b=_0x18daa2>0x1?void 0x0:_0x18daa2?Ve(_0x3f7b37,_0x848eff):_0x3f7b37,_0x1a74e4=_0x260437[_0xec4250(0x1bb)]-0x1,_0x486fe3;_0x1a74e4>=0x0;_0x1a74e4--)(_0x486fe3=_0x260437[_0x1a74e4])&&(_0x35f12b=_0x486fe3(_0x35f12b)||_0x35f12b);return _0x35f12b;},ke=(_0x376828,_0x7316c)=>(_0x51f8a7,_0x38c2f6)=>_0x7316c(_0x51f8a7,_0x38c2f6,_0x376828);let b=class extends _0x47a0ad{constructor(_0x35b954){var _0x2c1426=_0x4e3af4;super(),this[_0x2c1426(0x174)]=_0x35b954,this[_0x2c1426(0x166)]();}[_0x4e3af4(0x166)](){var _0x4a7fbf=_0x4e3af4;[_0x3f5489['id'],_0xc9b77c['id'],_0x47bab9['id']][_0x4a7fbf(0x1a2)](_0x277bd1=>{var _0x53e952=_0x4a7fbf;this['disposeWithMe'](this[_0x53e952(0x174)][_0x53e952(0x1fa)](_0x277bd1));});}};b=Me([ke(0x0,_0x5e3f41(L))],b);var Ge=Object[_0x4e3af4(0x1d9)],We=Object[_0x4e3af4(0x1ff)],Ye=(_0x4e2550,_0x48476e,_0x2ad7ba)=>_0x48476e in _0x4e2550?Ge(_0x4e2550,_0x48476e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ad7ba}):_0x4e2550[_0x48476e]=_0x2ad7ba,Be=(_0x3b4687,_0x3173f9,_0x128ac1,_0x173115)=>{var _0xec3c96=_0x4e3af4;for(var _0x4cfb6f=_0x173115>0x1?void 0x0:_0x173115?We(_0x3173f9,_0x128ac1):_0x3173f9,_0x229bda=_0x3b4687[_0xec3c96(0x1bb)]-0x1,_0x519226;_0x229bda>=0x0;_0x229bda--)(_0x519226=_0x3b4687[_0x229bda])&&(_0x4cfb6f=_0x519226(_0x4cfb6f)||_0x4cfb6f);return _0x4cfb6f;},F=(_0x1a8af8,_0xd9dbea)=>(_0x197f86,_0x469e54)=>_0xd9dbea(_0x197f86,_0x469e54,_0x1a8af8),J=(_0x43663d,_0x376dba,_0x1fb83f)=>Ye(_0x43663d,typeof _0x376dba!=_0x4e3af4(0x1b7)?_0x376dba+'':_0x376dba,_0x1fb83f);const Ze=_0x4e3af4(0x191);let O=class extends _0x3597d6{constructor(_0xd6250=$,_0x1a4d00,_0x1915b2){var _0x52cf42=_0x4e3af4;super(),this[_0x52cf42(0x169)]=_0xd6250,this[_0x52cf42(0x1f6)]=_0x1a4d00,this[_0x52cf42(0x1f9)]=_0x1915b2;const {..._0x1b7b57}=_0x5d6ffb({},$,this[_0x52cf42(0x169)]);this[_0x52cf42(0x1f9)][_0x52cf42(0x162)](Ue,_0x1b7b57);}[_0x4e3af4(0x1ed)](){var _0x2a4439=_0x4e3af4;_0x4fd2a6(this[_0x2a4439(0x1f6)],_0x5e3628([[L],[m],[b],[I]],this[_0x2a4439(0x169)]['override'])),_0x864c41(this['_injector'],[[b]]);}[_0x4e3af4(0x1eb)](){_0x864c41(this['_injector'],[[I]]);}};J(O,'type',_0x24c5e3['UNIVER_UNKNOWN']),J(O,_0x4e3af4(0x1c5),Ze),O=Be([_0x23e969(_0x47c63f),F(0x1,_0x5e3f41(_0x3d9b07)),F(0x2,_0x509920)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x421f7a=_0x4030;(function(_0x4b074f,_0x3cdfe4){var _0x379ffb=_0x4030,_0x4a4876=_0x4b074f();while(!![]){try{var _0x519817=-parseInt(_0x379ffb(0x1f3))/0x1+-parseInt(_0x379ffb(0x18f))/0x2*(parseInt(_0x379ffb(0x1e5))/0x3)+parseInt(_0x379ffb(0x1f6))/0x4*(parseInt(_0x379ffb(0x191))/0x5)+parseInt(_0x379ffb(0x1fa))/0x6+parseInt(_0x379ffb(0x1e7))/0x7*(parseInt(_0x379ffb(0x1a7))/0x8)+parseInt(_0x379ffb(0x202))/0x9+parseInt(_0x379ffb(0x1a6))/0xa;if(_0x519817===_0x3cdfe4)break;else _0x4a4876['push'](_0x4a4876['shift']());}catch(_0x348f7a){_0x4a4876['push'](_0x4a4876['shift']());}}}(_0x326c,0x684c4));var q=Object[_0x421f7a(0x17c)],z=(_0x327b43,_0x1b4357,_0x301a3f)=>_0x1b4357 in _0x327b43?q(_0x327b43,_0x1b4357,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x301a3f}):_0x327b43[_0x1b4357]=_0x301a3f,d=(_0xd3575,_0x449a63,_0x3411c0)=>z(_0xd3575,typeof _0x449a63!='symbol'?_0x449a63+'':_0x449a63,_0x3411c0);import{Disposable as _0x2abf63,toDisposable as _0x1078e1,IUniverInstanceService as _0x3889bb,Inject as _0x4b4c18,Injector as _0x12ff87,IConfigService as _0x283dc5,ICommandService as _0x62e54c,RxDisposable as _0x1bc197,UniverInstanceType as _0x3234f9,DisposableCollection as _0x3fbfad,CommandType as _0x1b7884,DependentOn as _0x242f70,Plugin as _0x525e5f,merge as _0x53247a,registerDependencies as _0x3bf986,mergeOverrideWithDependencies as _0x184474,touchDependencies as _0x10bb21}from'@univerjs/core';import{useDependency as _0x20977d,useObservable as _0xc10a5c,IUIPartsService as _0x1c1d17,BuiltInUIPart as _0x1697f8,connectInjector as _0x10655a}from'@univerjs/ui';import{jsx as _0x2ca145,jsxs as _0x3ee81b,Fragment as _0x38862d}from'react/jsx-runtime';import{Dropdown as _0x258e49,clsx as _0x9a7ef5,Button as _0x47729a}from'@univerjs/design';import{forwardRef as _0xcf7a4f,useRef as _0x435daf,createElement as _0x376bb7,useState as _0x4f9eda,useEffect as _0x4ebfa4}from'react';import{CollaborationEvent as _0x155168,parseProtocolChangeset as _0x47a67c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32ee68,SessionStatus as _0x5757f7,UniverCollaborationClientPlugin as _0x4057a8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x33c245,SetWorksheetActiveOperation as _0x278948}from'@univerjs/sheets';import{BehaviorSubject as _0x4c5bc1,Subject as _0x80fbac}from'rxjs';import{takeUntil as _0x3cddc9,throttleTime as _0x528d93}from'rxjs/operators';import{SetZoomRatioOperation as _0x192820,SetScrollOperation as _0x27f0c3}from'@univerjs/sheets-ui';var c=function(){return c=Object['assign']||function(_0x3d065e){var _0x3cf8e7=_0x4030;for(var _0x45e2d8,_0x1ac5af=0x1,_0x4d731c=arguments[_0x3cf8e7(0x1ac)];_0x1ac5af<_0x4d731c;_0x1ac5af++){_0x45e2d8=arguments[_0x1ac5af];for(var _0x5a84fc in _0x45e2d8)Object[_0x3cf8e7(0x1d9)]['hasOwnProperty'][_0x3cf8e7(0x1c4)](_0x45e2d8,_0x5a84fc)&&(_0x3d065e[_0x5a84fc]=_0x45e2d8[_0x5a84fc]);}return _0x3d065e;},c['apply'](this,arguments);},Oe=function(_0x4145bd,_0x44cf15){var _0x287d30=_0x421f7a,_0x20f715={};for(var _0x129e02 in _0x4145bd)Object[_0x287d30(0x1d9)][_0x287d30(0x15d)][_0x287d30(0x1c4)](_0x4145bd,_0x129e02)&&_0x44cf15[_0x287d30(0x1e0)](_0x129e02)<0x0&&(_0x20f715[_0x129e02]=_0x4145bd[_0x129e02]);if(_0x4145bd!=null&&typeof Object[_0x287d30(0x1d4)]==_0x287d30(0x1ba)){for(var _0x558d88=0x0,_0x129e02=Object[_0x287d30(0x1d4)](_0x4145bd);_0x558d88<_0x129e02[_0x287d30(0x1ac)];_0x558d88++)_0x44cf15[_0x287d30(0x1e0)](_0x129e02[_0x558d88])<0x0&&Object['prototype'][_0x287d30(0x1e4)][_0x287d30(0x1c4)](_0x4145bd,_0x129e02[_0x558d88])&&(_0x20f715[_0x129e02[_0x558d88]]=_0x4145bd[_0x129e02[_0x558d88]]);}return _0x20f715;},W=_0xcf7a4f(function(_0x2456e4,_0xbd4b98){var _0x232875=_0x421f7a,_0x45f655=_0x2456e4[_0x232875(0x1da)],_0x4d59cf=_0x2456e4['id'],_0x541eb9=_0x2456e4[_0x232875(0x176)],_0x3a0135=_0x2456e4[_0x232875(0x204)],_0x10f4f5=Oe(_0x2456e4,['icon','id','className',_0x232875(0x204)]),_0x132fda=_0x232875(0x18b)[_0x232875(0x1d7)](_0x4d59cf,'\x20')[_0x232875(0x1d7)](_0x541eb9||'')[_0x232875(0x16b)](),_0xe80919=_0x435daf('_'[_0x232875(0x1d7)](Ne()));return Y(_0x45f655,''[_0x232875(0x1d7)](_0x4d59cf),{'defIds':_0x45f655[_0x232875(0x200)],'idSuffix':_0xe80919[_0x232875(0x171)]},c({'ref':_0xbd4b98,'className':_0x132fda},_0x10f4f5),_0x3a0135);});function Y(_0x55f07b,_0x26e466,_0x3e3c17,_0x2c612d,_0xc69d73){var _0x2a758c=_0x421f7a;return _0x376bb7(_0x55f07b[_0x2a758c(0x1e8)],c(c({'key':_0x26e466},Ee(_0x55f07b,_0x3e3c17,_0xc69d73)),_0x2c612d),(we(_0x55f07b,_0x3e3c17)[_0x2a758c(0x188)]||[])[_0x2a758c(0x1c0)](function(_0x40c3b2,_0x36b11a){var _0x304901=_0x2a758c;return Y(_0x40c3b2,''[_0x304901(0x1d7)](_0x26e466,'-')[_0x304901(0x1d7)](_0x55f07b['tag'],'-')[_0x304901(0x1d7)](_0x36b11a),_0x3e3c17,void 0x0,_0xc69d73);}));}function Ee(_0x175085,_0x35b402,_0xc6209e){var _0x464de0=_0x421f7a,_0x2bfde6=c({},_0x175085[_0x464de0(0x16d)]);_0xc6209e!=null&&_0xc6209e['colorChannel1']&&_0x2bfde6['fill']===_0x464de0(0x1ff)&&(_0x2bfde6['fill']=_0xc6209e['colorChannel1']),_0x175085['tag']===_0x464de0(0x16e)&&_0x2bfde6['id']&&(_0x2bfde6['id']=_0x2bfde6['id']+_0x35b402['idSuffix']),Object[_0x464de0(0x1d2)](_0x2bfde6)[_0x464de0(0x16c)](function(_0x4fac57){var _0x352125=_0x464de0,_0x98b365=_0x4fac57[0x0],_0x1589b8=_0x4fac57[0x1];_0x98b365===_0x352125(0x16e)&&typeof _0x1589b8==_0x352125(0x1af)&&(_0x2bfde6[_0x98b365]=_0x1589b8[_0x352125(0x1e6)](/url\(#(.*)\)/,_0x352125(0x187)[_0x352125(0x1d7)](_0x35b402[_0x352125(0x190)],')')));});var _0x33d12e=_0x35b402[_0x464de0(0x200)];return!_0x33d12e||_0x33d12e[_0x464de0(0x1ac)]===0x0||(_0x175085[_0x464de0(0x1e8)]===_0x464de0(0x1db)&&_0x2bfde6[_0x464de0(0x1b1)]&&(_0x2bfde6['xlink:href']=_0x2bfde6[_0x464de0(0x1b1)]+_0x35b402[_0x464de0(0x190)]),Object[_0x464de0(0x1d2)](_0x2bfde6)[_0x464de0(0x16c)](function(_0x112c66){var _0x2996fe=_0x464de0,_0x4db863=_0x112c66[0x0],_0xd714ca=_0x112c66[0x1];typeof _0xd714ca=='string'&&(_0x2bfde6[_0x4db863]=_0xd714ca[_0x2996fe(0x1e6)](/url\(#(.*)\)/,'url(#$1'[_0x2996fe(0x1d7)](_0x35b402[_0x2996fe(0x190)],')')));})),_0x2bfde6;}function we(_0x5756c2,_0x424827){var _0x64bd5=_0x421f7a,_0xd7a4fc,_0x363d3e=_0x424827[_0x64bd5(0x200)];return!_0x363d3e||_0x363d3e[_0x64bd5(0x1ac)]===0x0?_0x5756c2:_0x5756c2[_0x64bd5(0x1e8)]===_0x64bd5(0x167)&&(!((_0xd7a4fc=_0x5756c2['children'])===null||_0xd7a4fc===void 0x0)&&_0xd7a4fc[_0x64bd5(0x1ac)])?c(c({},_0x5756c2),{'children':_0x5756c2[_0x64bd5(0x188)][_0x64bd5(0x1c0)](function(_0x332404){var _0x101d10=_0x64bd5;return typeof _0x332404[_0x101d10(0x16d)]['id']==_0x101d10(0x1af)&&_0x363d3e&&_0x363d3e['includes'](_0x332404[_0x101d10(0x16d)]['id'])?c(c({},_0x332404),{'attrs':c(c({},_0x332404[_0x101d10(0x16d)]),{'id':_0x332404['attrs']['id']+_0x424827[_0x101d10(0x190)]})}):_0x332404;})}):_0x5756c2;}function Ne(){var _0x69c7a3=_0x421f7a;return Math[_0x69c7a3(0x1cd)]()['toString'](0x24)[_0x69c7a3(0x15f)](0x2,0x8);}W[_0x421f7a(0x180)]=_0x421f7a(0x1cb);var Ce={'tag':_0x421f7a(0x1ed),'attrs':{'xmlns':_0x421f7a(0x20b),'fill':_0x421f7a(0x19f),'viewBox':_0x421f7a(0x16f),'width':'1em','height':_0x421f7a(0x17b)},'children':[{'tag':'path','attrs':{'fill':_0x421f7a(0x177),'d':_0x421f7a(0x1f5)}},{'tag':_0x421f7a(0x1b9),'attrs':{'fill':_0x421f7a(0x177),'d':_0x421f7a(0x196),'fillRule':_0x421f7a(0x1dc),'clipRule':_0x421f7a(0x1dc)}}]},B=_0xcf7a4f(function(_0x421f5e,_0x2dd6e2){var _0x425499=_0x421f7a;return _0x376bb7(W,Object['assign']({},_0x421f5e,{'id':_0x425499(0x1a8),'ref':_0x2dd6e2,'icon':Ce}));});B[_0x421f7a(0x180)]=_0x421f7a(0x185);class L extends _0x2abf63{constructor(){var _0x3c021e=_0x421f7a;super(...arguments),d(this,_0x3c021e(0x1c9),new Set()),d(this,_0x3c021e(0x199),new Set());}[_0x421f7a(0x1f9)](_0x4fc66b){var _0x36ba99=_0x421f7a;return this['_sharedOperations'][_0x36ba99(0x1c1)](_0x4fc66b),_0x1078e1(()=>this['_sharedOperations'][_0x36ba99(0x1d3)](_0x4fc66b));}[_0x421f7a(0x19a)](_0x1072ae){var _0x239e50=_0x421f7a;return this['_reporters'][_0x239e50(0x1c1)](_0x1072ae),_0x1078e1(()=>this[_0x239e50(0x199)]['delete'](_0x1072ae));}[_0x421f7a(0x169)](_0x432576){var _0xd168ed=_0x421f7a;return this['_sharedOperations'][_0xd168ed(0x179)](_0x432576);}[_0x421f7a(0x209)](_0x295c73){var _0x79584=_0x421f7a;return Array[_0x79584(0x194)](this[_0x79584(0x199)])[_0x79584(0x1c0)](_0x1a2860=>_0x1a2860(_0x295c73));}}var De=Object[_0x421f7a(0x1cf)],Z=(_0x3bf1d5,_0x1c6f60,_0x8e0f6,_0x48e44a)=>{var _0x5488e8=_0x421f7a;for(var _0x475bec=_0x48e44a>0x1?void 0x0:_0x48e44a?De(_0x1c6f60,_0x8e0f6):_0x1c6f60,_0x1897f6=_0x3bf1d5[_0x5488e8(0x1ac)]-0x1,_0x2cf2cb;_0x1897f6>=0x0;_0x1897f6--)(_0x2cf2cb=_0x3bf1d5[_0x1897f6])&&(_0x475bec=_0x2cf2cb(_0x475bec)||_0x475bec);return _0x475bec;},f=(_0x2ee2cb,_0x1e86c4)=>(_0x2fef02,_0x3086d7)=>_0x1e86c4(_0x2fef02,_0x3086d7,_0x2ee2cb);let m=class extends _0x1bc197{constructor(_0x2ada05,_0x4a84fa,_0x385782){var _0x74da21=_0x421f7a;super(),d(this,_0x74da21(0x1f2),new Map()),(this[_0x74da21(0x197)]=_0x2ada05,this['_injector']=_0x4a84fa,this[_0x74da21(0x1ef)]=_0x385782,this[_0x74da21(0x183)]());}async['getLiveShareCoordinator'](_0x1a148f){var _0x504322=_0x421f7a;return this[_0x504322(0x1f2)]['has'](_0x1a148f)||await this['_startLiveShareCoordinator'](_0x1a148f),this[_0x504322(0x1f2)][_0x504322(0x1ce)](_0x1a148f);}[_0x421f7a(0x183)](){var _0x2c5e49=_0x421f7a;this[_0x2c5e49(0x197)]['getTypeOfUnitAdded$'](_0x3234f9['UNIVER_SHEET'])[_0x2c5e49(0x166)](_0x3cddc9(this[_0x2c5e49(0x1a2)]))['subscribe'](async _0x3b300c=>{var _0x2b8016=_0x2c5e49;const _0x564566=_0x3b300c[_0x2b8016(0x1bf)]();this[_0x2b8016(0x1f2)]['has'](_0x564566)||this[_0x2b8016(0x184)](_0x564566);}),this[_0x2c5e49(0x197)][_0x2c5e49(0x15c)](_0x3234f9['UNIVER_SHEET'])[_0x2c5e49(0x166)](_0x3cddc9(this['dispose$']))[_0x2c5e49(0x1cc)](_0x1dfc27=>{var _0x547654=_0x2c5e49;const _0x34d4f3=_0x1dfc27[_0x547654(0x1bf)](),_0x33c495=this[_0x547654(0x1f2)]['get'](_0x34d4f3);_0x33c495==null||_0x33c495[_0x547654(0x19b)]();});}async[_0x421f7a(0x184)](_0x28ac3c){var _0x68a82d=_0x421f7a;const _0x126f4b=await this[_0x68a82d(0x1ef)][_0x68a82d(0x20a)](_0x28ac3c),_0x404c95=this[_0x68a82d(0x1b7)][_0x68a82d(0x1dd)](C,_0x28ac3c,_0x126f4b);return _0x404c95[_0x68a82d(0x1a3)](),this[_0x68a82d(0x1f2)][_0x68a82d(0x1be)](_0x28ac3c,_0x404c95),_0x404c95;}};m=Z([f(0x0,_0x3889bb),f(0x1,_0x4b4c18(_0x12ff87)),f(0x2,_0x4b4c18(_0x32ee68))],m);var h=(_0x51a75b=>(_0x51a75b['OFFLINE']=_0x421f7a(0x20d),_0x51a75b[_0x421f7a(0x1d6)]=_0x421f7a(0x1eb),_0x51a75b[_0x421f7a(0x1c2)]='following',_0x51a75b['NOT_FOLLOWING']=_0x421f7a(0x19d),_0x51a75b['PRESENTING']=_0x421f7a(0x17d),_0x51a75b))(h||{});const xe=_0x421f7a(0x1f4),Le=0xc8;let C=class extends _0x1bc197{constructor(_0x5425c9,_0x255bdb,_0x292398,_0x24d9d3,_0x2e7543){var _0x37c763=_0x421f7a;super(),d(this,_0x37c763(0x1e1),new _0x4c5bc1('idle')),d(this,_0x37c763(0x1bd),this[_0x37c763(0x1e1)][_0x37c763(0x208)]()),d(this,_0x37c763(0x183),!0x1),d(this,_0x37c763(0x1e3),null),d(this,'_presenter',null),(this[_0x37c763(0x174)]=_0x5425c9,this['_collabSession']=_0x255bdb,this['_configService']=_0x292398,this[_0x37c763(0x161)]=_0x24d9d3,this[_0x37c763(0x1e2)]=_0x2e7543);}get['_status'](){var _0x562318=_0x421f7a;return this[_0x562318(0x1e1)][_0x562318(0x1de)]();}[_0x421f7a(0x19b)](){var _0x110bad=_0x421f7a,_0x643cc1;(_0x643cc1=this[_0x110bad(0x1e3)])==null||_0x643cc1['dispose'](),this[_0x110bad(0x1e1)][_0x110bad(0x1b5)](_0x110bad(0x1eb)),this[_0x110bad(0x1e1)][_0x110bad(0x189)]();}[_0x421f7a(0x1a3)](){var _0x246eb2=_0x421f7a;this[_0x246eb2(0x183)]||(this[_0x246eb2(0x183)]=!0x0,this['_collabSession'][_0x246eb2(0x1c6)]['pipe'](_0x3cddc9(this[_0x246eb2(0x1a2)]))[_0x246eb2(0x1cc)](_0x5d4f51=>{var _0x333cce=_0x246eb2;switch(_0x5d4f51){case _0x5757f7[_0x333cce(0x1bb)]:this[_0x333cce(0x1d0)]();break;case _0x5757f7[_0x333cce(0x1ad)]:this['_handleOnline']();break;}}),this[_0x246eb2(0x168)]['event$'][_0x246eb2(0x166)](_0x3cddc9(this[_0x246eb2(0x1a2)]))[_0x246eb2(0x1cc)](_0x505099=>{var _0x35b930=_0x246eb2;const {eventID:_0x7efaaf}=_0x505099;switch(_0x7efaaf){case _0x155168[_0x35b930(0x1fe)]:this[_0x35b930(0x165)](_0x505099);break;case _0x155168[_0x35b930(0x1b2)]:this[_0x35b930(0x20e)](_0x505099);break;case _0x155168[_0x35b930(0x203)]:this[_0x35b930(0x207)]();break;case _0x155168['NEW_CHANGESETS']:this[_0x35b930(0x186)](_0x505099);break;}}));}[_0x421f7a(0x1b3)](){var _0x5480fe=_0x421f7a;this[_0x5480fe(0x168)][_0x5480fe(0x20c)]({'eventID':_0x155168[_0x5480fe(0x18a)],'data':{'unitID':this[_0x5480fe(0x174)],'userID':this['_collabSession']['getMemberID']()}},this[_0x5480fe(0x174)]);}[_0x421f7a(0x195)](){var _0x99620=_0x421f7a;this[_0x99620(0x1d1)]===_0x99620(0x17d)&&(this['_status$']['next'](_0x99620(0x1eb)),this[_0x99620(0x168)][_0x99620(0x20c)]({'eventID':_0x155168['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x99620(0x174)]}},this[_0x99620(0x174)]));}[_0x421f7a(0x206)](){var _0x3c7396=_0x421f7a;this['_status']===_0x3c7396(0x19d)&&(this[_0x3c7396(0x1e1)]['next'](_0x3c7396(0x18e)),this['_startFollowing']());}['stopFollowing'](){var _0x44990d=_0x421f7a;this['_status']===_0x44990d(0x18e)&&this[_0x44990d(0x1b4)]();}[_0x421f7a(0x165)](_0x48cf51){var _0x4564df=_0x421f7a;const {presenter:_0x191f33}=_0x48cf51['data'],_0x4dde2e=this[_0x4564df(0x168)][_0x4564df(0x1d8)]();this[_0x4564df(0x178)]=_0x191f33,_0x191f33===_0x4dde2e?(this[_0x4564df(0x1b4)](),this[_0x4564df(0x17f)]()):this[_0x4564df(0x1d1)]!==_0x4564df(0x19d)&&(this[_0x4564df(0x17a)](),this[_0x4564df(0x182)]());}[_0x421f7a(0x1fc)](){var _0x531eb9=_0x421f7a;const _0x4b8989={'eventID':_0x155168[_0x531eb9(0x1c3)]};this[_0x531eb9(0x168)][_0x531eb9(0x20c)](_0x4b8989,this[_0x531eb9(0x174)]);}[_0x421f7a(0x207)](){var _0x39f532=_0x421f7a;this[_0x39f532(0x178)]=null,this[_0x39f532(0x1d1)]!==_0x39f532(0x17d)&&this[_0x39f532(0x192)]();}['_handleNewChangeSets'](_0x83e6bd){var _0x3d91e1=_0x421f7a;if(this[_0x3d91e1(0x1d1)]==='following'&&this[_0x3d91e1(0x178)]===_0x83e6bd['data'][_0x3d91e1(0x1d5)]){const _0x2a209b=_0x47a67c(_0x83e6bd[_0x3d91e1(0x1f0)])[_0x3d91e1(0x162)][_0x3d91e1(0x1f7)]()['find'](_0x194ccc=>_0x194ccc['id']===_0x33c245['id']);if(_0x2a209b){const _0x579c09=_0x2a209b[_0x3d91e1(0x15b)]['unitId'],_0x100947=_0x2a209b[_0x3d91e1(0x15b)][_0x3d91e1(0x1b6)]['id'];setTimeout(()=>{var _0x22aeb8=_0x3d91e1;this[_0x22aeb8(0x1e2)][_0x22aeb8(0x160)](_0x278948['id'],{'unitId':_0x579c09,'subUnitId':_0x100947},{'fromCollab':!0x0});});}}}[_0x421f7a(0x17f)](){var _0x38a758=_0x421f7a;this[_0x38a758(0x1e1)][_0x38a758(0x1b5)](_0x38a758(0x17d));const _0x472b31=new Map(),_0x1c5dee=this[_0x38a758(0x1e3)]=new _0x3fbfad();_0x1c5dee[_0x38a758(0x1c1)](_0x1078e1(()=>{var _0x350a60=_0x38a758;_0x472b31[_0x350a60(0x16c)](_0x18d07c=>_0x18d07c[_0x350a60(0x189)]()),_0x472b31[_0x350a60(0x1df)]();})),_0x1c5dee[_0x38a758(0x1c1)](this[_0x38a758(0x1e2)][_0x38a758(0x173)](_0x834fde=>{var _0x38733e=_0x38a758,_0xffd947;if(_0x834fde[_0x38733e(0x1c5)]!==_0x1b7884[_0x38733e(0x18d)]||!this[_0x38733e(0x161)]['shouldShareOperation'](_0x834fde['id']))return;const {id:_0x3aa016}=_0x834fde;let _0x57938b;_0x472b31[_0x38733e(0x179)](_0x3aa016)?_0x57938b=_0x472b31[_0x38733e(0x1ce)](_0x3aa016):(_0x57938b=new _0x80fbac(),_0x472b31[_0x38733e(0x1be)](_0x3aa016,_0x57938b),_0x57938b[_0x38733e(0x166)](_0x528d93((_0xffd947=this[_0x38733e(0x1a9)][_0x38733e(0x1ea)](xe))!=null?_0xffd947:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38733e(0x1cc)](_0x520bcf=>{var _0x5241eb=_0x38733e;this[_0x5241eb(0x168)][_0x5241eb(0x20c)]({'eventID':_0x155168['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5241eb(0x174)],'operations':{[_0x520bcf['id']]:{'id':_0x520bcf['id'],'params':JSON[_0x5241eb(0x18c)](_0x520bcf[_0x5241eb(0x15b)])}}}},this[_0x5241eb(0x174)]);})),_0x57938b[_0x38733e(0x1b5)](_0x834fde);})),this['_liveShareService'][_0x38a758(0x209)](this['_unitID'])['forEach'](_0x5865fa=>this[_0x38a758(0x168)][_0x38a758(0x20c)]({'eventID':_0x155168[_0x38a758(0x1b2)],'data':{'unitID':this[_0x38a758(0x174)],'operations':{[_0x5865fa['id']]:{'id':_0x5865fa['id'],'params':JSON[_0x38a758(0x18c)](_0x5865fa['params'])}}}},this['_unitID']));}['_stopPresenting'](){var _0x2b1b29=_0x421f7a,_0x3e9251;this[_0x2b1b29(0x1e1)][_0x2b1b29(0x1b5)]('idle'),(_0x3e9251=this[_0x2b1b29(0x1e3)])==null||_0x3e9251[_0x2b1b29(0x19b)](),this[_0x2b1b29(0x1e3)]=null;}[_0x421f7a(0x182)](){var _0x529db7=_0x421f7a,_0x3f9f88;(_0x3f9f88=this[_0x529db7(0x1e3)])==null||_0x3f9f88['dispose'](),this[_0x529db7(0x1e1)][_0x529db7(0x1b5)]('following');}[_0x421f7a(0x192)](){var _0x36d8b3=_0x421f7a,_0x112b3d;this[_0x36d8b3(0x1e1)][_0x36d8b3(0x1b5)](_0x36d8b3(0x1eb)),(_0x112b3d=this[_0x36d8b3(0x1e3)])==null||_0x112b3d[_0x36d8b3(0x19b)](),this[_0x36d8b3(0x1e3)]=null;}[_0x421f7a(0x1b4)](){var _0x430138=_0x421f7a,_0x407a99;this[_0x430138(0x1e1)][_0x430138(0x1b5)](_0x430138(0x19d)),(_0x407a99=this[_0x430138(0x1e3)])==null||_0x407a99[_0x430138(0x19b)]();}[_0x421f7a(0x20e)](_0x6f38d5){var _0x4bb502=_0x421f7a;if([_0x4bb502(0x17d),_0x4bb502(0x19d),'offline']['includes'](this[_0x4bb502(0x1d1)])||!_0x6f38d5[_0x4bb502(0x1f0)]['presenter']||_0x6f38d5['data'][_0x4bb502(0x1a0)]===this[_0x4bb502(0x168)][_0x4bb502(0x1d8)]())return;this[_0x4bb502(0x1d1)]===_0x4bb502(0x1eb)&&this[_0x4bb502(0x182)]();const _0x39da89=_0x6f38d5[_0x4bb502(0x1f0)]['operations'];Object[_0x4bb502(0x1a5)](_0x39da89)['forEach'](_0x5e9898=>{var _0x121d75=_0x4bb502;this[_0x121d75(0x1e2)][_0x121d75(0x160)](_0x5e9898['id'],_0x5e9898[_0x121d75(0x15b)]?JSON[_0x121d75(0x1aa)](_0x5e9898[_0x121d75(0x15b)]):null,{'fromCollab':!0x0});});}[_0x421f7a(0x1d0)](){var _0xcc3898=_0x421f7a,_0x490604;this['_status$'][_0xcc3898(0x1b5)](_0xcc3898(0x20d)),(_0x490604=this[_0xcc3898(0x1e3)])==null||_0x490604['dispose']();}[_0x421f7a(0x1f1)](){var _0x93ed8a=_0x421f7a;this[_0x93ed8a(0x1e1)][_0x93ed8a(0x1b5)](_0x93ed8a(0x1eb)),this[_0x93ed8a(0x1fc)]();}};C=Z([f(0x2,_0x283dc5),f(0x3,_0x4b4c18(L)),f(0x4,_0x62e54c)],C);function ye(){var _0x5d27b9=_0x421f7a;const _0x2c3fa9=_0x20977d(m),_0x3ad0d9=_0x20977d(_0x3889bb),_0x40a090=_0xc10a5c(()=>_0x3ad0d9[_0x5d27b9(0x1a4)](_0x3234f9['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x389043,_0x5d2035]=_0x4f9eda(null),[_0x434ffc,_0x51a627]=_0x4f9eda(h[_0x5d27b9(0x1d6)]),_0x7f2879=_0x435daf(null);return _0x4ebfa4(()=>(_0x40a090&&_0x2c3fa9[_0x5d27b9(0x164)](_0x40a090[_0x5d27b9(0x1bf)]())[_0x5d27b9(0x19c)](_0x2ffbca=>{var _0x5b18ec=_0x5d27b9;_0x5d2035(_0x2ffbca),_0x7f2879['current']=_0x2ffbca['status$'][_0x5b18ec(0x1cc)](_0x1072cf=>{_0x51a627(_0x1072cf);});}),()=>{var _0x5f5baa=_0x5d27b9,_0x29475e;(_0x29475e=_0x7f2879[_0x5f5baa(0x171)])==null||_0x29475e['unsubscribe'](),_0x7f2879[_0x5f5baa(0x171)]=null;}),[_0x40a090,_0x2c3fa9]),_0x389043?_0x2ca145(_0x258e49,{'align':_0x5d27b9(0x1ee),'disabled':_0x434ffc===h[_0x5d27b9(0x1bb)],'className':_0x5d27b9(0x210),'overlay':_0x2ca145(Re,{'status':_0x434ffc,'coordinator':_0x389043}),'children':_0x2ca145(_0x5d27b9(0x172),{'className':_0x9a7ef5(_0x5d27b9(0x16a),{'univer-cursor-not-allowed':_0x434ffc===h[_0x5d27b9(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x434ffc!==h[_0x5d27b9(0x1bb)]}),'type':_0x5d27b9(0x172),'children':_0x2ca145(B,{'className':_0x5d27b9(0x201)})})}):null;}function Re(_0x14a21e){var _0x1f65ec=_0x421f7a;const {status:_0x1844cd,coordinator:_0xf0ac31}=_0x14a21e;switch(_0x1844cd){case h[_0x1f65ec(0x1d6)]:return _0x2ca145(Pe,{'coordinator':_0xf0ac31});case h[_0x1f65ec(0x1c2)]:return _0x2ca145(Ae,{'coordinator':_0xf0ac31});case h[_0x1f65ec(0x1fd)]:return _0x2ca145(Te,{'coordinator':_0xf0ac31});case h['OFFLINE']:return _0x2ca145(Fe,{});case h[_0x1f65ec(0x1ca)]:return _0x2ca145($e,{'coordinator':_0xf0ac31});default:return null;}}function Pe(_0x21fb35){var _0x528a3d=_0x421f7a;const {coordinator:_0x33f64e}=_0x21fb35;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145('div',{'className':_0x528a3d(0x1c7),'children':_0x528a3d(0x1b8)}),_0x2ca145(_0x47729a,{'onClick':()=>_0x33f64e[_0x528a3d(0x1b3)](),'children':_0x528a3d(0x1fb)})]});}function Ae(_0x3f254f){var _0x27377c=_0x421f7a;const {coordinator:_0x5a0829}=_0x3f254f;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x27377c(0x1ae),{'className':_0x27377c(0x1c7),'children':_0x27377c(0x1bc)}),_0x2ca145(_0x47729a,{'onClick':()=>_0x5a0829[_0x27377c(0x193)](),'children':_0x27377c(0x1f8)})]});}function Te(_0x1b6d50){var _0x48f60c=_0x421f7a;const {coordinator:_0x2d40c7}=_0x1b6d50;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x48f60c(0x1ae),{'className':_0x48f60c(0x1c7),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2ca145(_0x47729a,{'variant':_0x48f60c(0x198),'onClick':()=>_0x2d40c7['startFollowing'](),'children':_0x48f60c(0x205)})]});}function _0x4030(_0x306a91,_0x412983){var _0x326c70=_0x326c();return _0x4030=function(_0x4030e4,_0x337e69){_0x4030e4=_0x4030e4-0x15b;var _0x419c2c=_0x326c70[_0x4030e4];return _0x419c2c;},_0x4030(_0x306a91,_0x412983);}function $e(_0x3199be){var _0x37518e=_0x421f7a;const {coordinator:_0x8afd8e}=_0x3199be;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x37518e(0x1ae),{'className':_0x37518e(0x1c7),'children':_0x37518e(0x1ec)}),_0x2ca145(_0x47729a,{'variant':_0x37518e(0x1e9),'onClick':()=>_0x8afd8e[_0x37518e(0x195)](),'children':_0x37518e(0x1b0)})]});}function Fe(){var _0x4f1b44=_0x421f7a;return _0x2ca145(_0x38862d,{'children':_0x4f1b44(0x15e)});}function _0x326c(){var _0xf57f39=['requireSession','http://www.w3.org/2000/svg','send','offline','_handleOperation','pluginName','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','params','getTypeOfUnitDisposed$','hasOwnProperty','You\x27are\x20offline.','substring','executeCommand','_liveShareService','mutations','setConfig','getLiveShareCoordinator','_handleNewHost','pipe','defs','_collabSession','shouldShareOperation','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','trim','forEach','attrs','mask','0\x200\x2017\x2017','UNIVER_LIVE_SHARE_PLUGIN','current','button','onCommandExecuted','_unitID','disposeWithMe','className','currentColor','_presenter','has','_stopPresenting','1em','defineProperty','presenting','UNIVER_UNKNOWN','_startPresenting','displayName','_mountLiveShare','_startFollowing','_init','_startLiveShareCoordinator','LiveShareIcon','_handleNewChangeSets','url(#$1','children','complete','LIVESHARE_REQUEST_HOST','univerjs-icon\x20univerjs-icon-','stringify','OPERATION','following','6424EmtJrw','idSuffix','70SbgAfy','_beIdle','stopFollowing','from','stopPresenting','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_univerInstanceService','text','_reporters','registerInitialStateReporter','dispose','then','not-following','onStarting','none','presenter','onRendered','dispose$','init','getCurrentTypeOfUnit$','values','1818530RpOJEz','56IwtrLP','live-share-icon','_configService','parse','_config','length','ONLINE','div','string','Stop\x20presenting','xlink:href','LIVESHARE_OPERATION','tryStartPresenting','_stopFollowing','next','sheet','_injector','Present\x20this\x20document','path','function','OFFLINE','You\x27re\x20following\x20the\x20presenter','status$','set','getUnitId','map','add','FOLLOWING','LIVESHARE_FETCH_OPERATIONS','call','type','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','_uiPartsService','_sharedOperations','PRESENTING','UniverIcon','subscribe','random','get','getOwnPropertyDescriptor','_handleOffline','_status','entries','delete','getOwnPropertySymbols','memberID','IDLE','concat','getMemberID','prototype','icon','use','evenodd','createInstance','getValue','clear','indexOf','_status$','_commandService','_commandDisposable','propertyIsEnumerable','246Jsqpcs','replace','356363GhteUp','tag','default','getConfig','idle','You\x27re\x20presenting\x20the\x20document','svg','end','_collabSessionService','data','_handleOnline','_entities','696978eUFEHO','SAME_OPERATION_SHARE_INTERVAL','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','31892SjUagm','reverse','Stop\x20following','registerSharedOperation','2911860dMllIk','Start','_fetchOperations','NOT_FOLLOWING','LIVESHARE_NEW_HOST','colorChannel1','defIds','univer-size-4','2271762WbyTMA','LIVESHARE_TERMINATE','extend','Start\x20following','startFollowing','_handleTerminate','asObservable','getInitialStates'];_0x326c=function(){return _0xf57f39;};return _0x326c();}var He=Object[_0x421f7a(0x1cf)],je=(_0x3c04da,_0x37218a,_0x5a3a43,_0x1287e5)=>{var _0x360b04=_0x421f7a;for(var _0x1986a9=_0x1287e5>0x1?void 0x0:_0x1287e5?He(_0x37218a,_0x5a3a43):_0x37218a,_0x4e1cb7=_0x3c04da[_0x360b04(0x1ac)]-0x1,_0x10d972;_0x4e1cb7>=0x0;_0x4e1cb7--)(_0x10d972=_0x3c04da[_0x4e1cb7])&&(_0x1986a9=_0x10d972(_0x1986a9)||_0x1986a9);return _0x1986a9;},T=(_0x4674e6,_0x599426)=>(_0x4f9bf6,_0x55b59e)=>_0x599426(_0x4f9bf6,_0x55b59e,_0x4674e6);let I=class extends _0x2abf63{constructor(_0x2242bf,_0x1d293b){var _0x1b7628=_0x421f7a;super(),this['_injector']=_0x2242bf,this[_0x1b7628(0x1c8)]=_0x1d293b,this['_mountLiveShare']();}[_0x421f7a(0x181)](){var _0x5b2334=_0x421f7a;this['disposeWithMe'](this[_0x5b2334(0x1c8)]['registerComponent'](_0x1697f8['HEADER_MENU'],()=>_0x10655a(ye,this['_injector'])));}};I=je([T(0x0,_0x4b4c18(_0x12ff87)),T(0x1,_0x1c1d17)],I);const Ue='live-share.config',$={};var Ve=Object[_0x421f7a(0x1cf)],Me=(_0x458916,_0x3113ad,_0x5ed17d,_0x1e4067)=>{var _0x504ccb=_0x421f7a;for(var _0xd92874=_0x1e4067>0x1?void 0x0:_0x1e4067?Ve(_0x3113ad,_0x5ed17d):_0x3113ad,_0x4b0548=_0x458916[_0x504ccb(0x1ac)]-0x1,_0x3f9f1d;_0x4b0548>=0x0;_0x4b0548--)(_0x3f9f1d=_0x458916[_0x4b0548])&&(_0xd92874=_0x3f9f1d(_0xd92874)||_0xd92874);return _0xd92874;},ke=(_0x2d82b5,_0x2b2085)=>(_0x3c0c6c,_0x703a12)=>_0x2b2085(_0x3c0c6c,_0x703a12,_0x2d82b5);let b=class extends _0x2abf63{constructor(_0x4a0b2f){var _0xcd0733=_0x421f7a;super(),this[_0xcd0733(0x161)]=_0x4a0b2f,this['_init']();}['_init'](){var _0x4a2323=_0x421f7a;[_0x192820['id'],_0x27f0c3['id'],_0x278948['id']][_0x4a2323(0x16c)](_0x351165=>{var _0x5cb253=_0x4a2323;this[_0x5cb253(0x175)](this[_0x5cb253(0x161)]['registerSharedOperation'](_0x351165));});}};b=Me([ke(0x0,_0x4b4c18(L))],b);var Ge=Object[_0x421f7a(0x17c)],We=Object[_0x421f7a(0x1cf)],Ye=(_0x245414,_0x5aacc1,_0x2c161c)=>_0x5aacc1 in _0x245414?Ge(_0x245414,_0x5aacc1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c161c}):_0x245414[_0x5aacc1]=_0x2c161c,Be=(_0x34e825,_0x558721,_0x589f59,_0xe42e39)=>{var _0x28eea9=_0x421f7a;for(var _0x3a4bc3=_0xe42e39>0x1?void 0x0:_0xe42e39?We(_0x558721,_0x589f59):_0x558721,_0x1bd8c4=_0x34e825[_0x28eea9(0x1ac)]-0x1,_0x50950e;_0x1bd8c4>=0x0;_0x1bd8c4--)(_0x50950e=_0x34e825[_0x1bd8c4])&&(_0x3a4bc3=_0x50950e(_0x3a4bc3)||_0x3a4bc3);return _0x3a4bc3;},F=(_0x1208ef,_0x2de1d7)=>(_0x4e919e,_0x216c68)=>_0x2de1d7(_0x4e919e,_0x216c68,_0x1208ef),J=(_0x151eb4,_0x596286,_0x50871c)=>Ye(_0x151eb4,typeof _0x596286!='symbol'?_0x596286+'':_0x596286,_0x50871c);const Ze=_0x421f7a(0x170);let O=class extends _0x525e5f{constructor(_0x495180=$,_0x82b44c,_0x931c70){var _0x5be256=_0x421f7a;super(),this[_0x5be256(0x1ab)]=_0x495180,this[_0x5be256(0x1b7)]=_0x82b44c,this['_configService']=_0x931c70;const {..._0x5eff2b}=_0x53247a({},$,this[_0x5be256(0x1ab)]);this[_0x5be256(0x1a9)][_0x5be256(0x163)](Ue,_0x5eff2b);}[_0x421f7a(0x19e)](){var _0x23f1a2=_0x421f7a;_0x3bf986(this['_injector'],_0x184474([[L],[m],[b],[I]],this[_0x23f1a2(0x1ab)]['override'])),_0x10bb21(this['_injector'],[[b]]);}[_0x421f7a(0x1a1)](){_0x10bb21(this['_injector'],[[I]]);}};J(O,'type',_0x3234f9[_0x421f7a(0x17e)]),J(O,_0x421f7a(0x20f),Ze),O=Be([_0x242f70(_0x4057a8),F(0x1,_0x4b4c18(_0x12ff87)),F(0x2,_0x283dc5)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x4e3af4=_0x5c78;(function(_0x4296cc,_0x25b45e){var _0x29ed54=_0x5c78,_0x1e2d5d=_0x4296cc();while(!![]){try{var _0x6da783=parseInt(_0x29ed54(0x202))/0x1+-parseInt(_0x29ed54(0x1d8))/0x2*(-parseInt(_0x29ed54(0x1ab))/0x3)+-parseInt(_0x29ed54(0x180))/0x4*(parseInt(_0x29ed54(0x1b4))/0x5)+parseInt(_0x29ed54(0x210))/0x6*(parseInt(_0x29ed54(0x1c3))/0x7)+parseInt(_0x29ed54(0x1a1))/0x8*(-parseInt(_0x29ed54(0x16b))/0x9)+parseInt(_0x29ed54(0x1b8))/0xa*(-parseInt(_0x29ed54(0x1f4))/0xb)+parseInt(_0x29ed54(0x19a))/0xc;if(_0x6da783===_0x25b45e)break;else _0x1e2d5d['push'](_0x1e2d5d['shift']());}catch(_0x5fd228){_0x1e2d5d['push'](_0x1e2d5d['shift']());}}}(_0x8a68,0xb912e));var q=Object[_0x4e3af4(0x1d9)],z=(_0x3e84eb,_0x1cefe3,_0x2a7622)=>_0x1cefe3 in _0x3e84eb?q(_0x3e84eb,_0x1cefe3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a7622}):_0x3e84eb[_0x1cefe3]=_0x2a7622,d=(_0x316034,_0x2af8c6,_0x24afce)=>z(_0x316034,typeof _0x2af8c6!=_0x4e3af4(0x1b7)?_0x2af8c6+'':_0x2af8c6,_0x24afce);import{Disposable as _0x47a0ad,toDisposable as _0x49f94f,IUniverInstanceService as _0x41d5d1,Inject as _0x5e3f41,Injector as _0x3d9b07,IConfigService as _0x509920,ICommandService as _0x731239,RxDisposable as _0x8f69e8,UniverInstanceType as _0x24c5e3,DisposableCollection as _0x183114,CommandType as _0x406fbf,DependentOn as _0x23e969,Plugin as _0x3597d6,merge as _0x5d6ffb,registerDependencies as _0x4fd2a6,mergeOverrideWithDependencies as _0x5e3628,touchDependencies as _0x864c41}from'@univerjs/core';import{useDependency as _0x46ed8c,useObservable as _0x272543,IUIPartsService as _0x13121a,BuiltInUIPart as _0x882eae,connectInjector as _0x4fb5b9}from'@univerjs/ui';import{jsx as _0x4dccbe,jsxs as _0x3f4580,Fragment as _0x4cdd5d}from'react/jsx-runtime';import{Dropdown as _0x26f77f,clsx as _0x520a75,Button as _0x27e6ca}from'@univerjs/design';import{forwardRef as _0x283df9,useRef as _0x27eef8,createElement as _0x49c5d9,useState as _0x10563c,useEffect as _0x4748a7}from'react';function _0x5c78(_0x56acff,_0x597f6a){var _0x8a6868=_0x8a68();return _0x5c78=function(_0x5c785b,_0x2c5f49){_0x5c785b=_0x5c785b-0x161;var _0x3f25ea=_0x8a6868[_0x5c785b];return _0x3f25ea;},_0x5c78(_0x56acff,_0x597f6a);}import{CollaborationEvent as _0x1ff539,parseProtocolChangeset as _0x25e34f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5e6c43,SessionStatus as _0x1eae31,UniverCollaborationClientPlugin as _0x47c63f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xa92ac9,SetWorksheetActiveOperation as _0x47bab9}from'@univerjs/sheets';import{BehaviorSubject as _0xf8c315,Subject as _0x13b0cb}from'rxjs';import{takeUntil as _0x15ef67,throttleTime as _0x2eb31b}from'rxjs/operators';function _0x8a68(){var _0x1eb1fc=['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','_init','Start','div','_config','_commandDisposable','2835qzJTwk','_commandService','xlink:href','_beIdle','LIVESHARE_REQUEST_HOST','send','className','_handleNewChangeSets','stopFollowing','_liveShareService','getOwnPropertySymbols','_presenter','mask','sheet','NOT_FOLLOWING','_stopFollowing','end','LIVESHARE_OPERATION','_collabSessionService','onCommandExecuted','getTypeOfUnitAdded$','17752opltzS','status$','live-share-icon','_handleOperation','propertyIsEnumerable','offline','_reporters','defIds','_startPresenting','delete','operations','_sharedOperations','prototype','svg','idle','getUnitId','icon','UNIVER_LIVE_SHARE_PLUGIN','trim','tag','text','entries','function','registerInitialStateReporter','idSuffix','path','7100256SMvQyO','indexOf','dispose$','replace','hasOwnProperty','default','http://www.w3.org/2000/svg','28136owkjme','forEach','init','data','extend','UniverIcon','substring','getInitialStates','_startLiveShareCoordinator','presenting','4266thkeDq','univer-mb-3\x20univer-w-full\x20univer-text-sm','from','stopPresenting','unitId','add','_entities','attrs','_fetchOperations','1200QiBPjW','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','PRESENTING','symbol','2670nyHPle','evenodd','url(#$1','length','_startFollowing','_status$','disposeWithMe','map','UNIVER_SHEET','1em','LIVESHARE_TERMINATE','14SiSUtQ','_collabSession','pluginName','You\x27are\x20offline.','getTypeOfUnitDisposed$','has','currentColor','parse','_handleNewHost','OFFLINE','LiveShareIcon','complete','FOLLOWING','tryStartPresenting','not-following','call','mutations','_uiPartsService','_univerInstanceService','_handleOffline','current','1618CHohKM','defineProperty','pipe','univer-size-4','_unitID','HEADER_MENU','apply','_handleOnline','find','dispose','button','You\x27re\x20not\x20following\x20the\x20presenter','shouldShareOperation','get','SAME_OPERATION_SHARE_INTERVAL','live-share.config','Stop\x20following','presenter','subscribe','onRendered','ONLINE','onStarting','LIVESHARE_NEW_HOST','defs','none','includes','displayName','0\x200\x2017\x2017','34705igrXwE','getLiveShareCoordinator','_injector','colorChannel1','_mountLiveShare','_configService','registerSharedOperation','createInstance','string','_stopPresenting','following','getOwnPropertyDescriptor','stringify','random','952130VKNunU','sessionStatus$','toString','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','Present\x20this\x20document','univerjs-icon\x20univerjs-icon-','_status','unsubscribe','startFollowing','next','OPERATION','getConfig','registerComponent','LIVESHARE_FETCH_OPERATIONS','3237618trDgZZ','params','set','setConfig','type','concat'];_0x8a68=function(){return _0x1eb1fc;};return _0x8a68();}import{SetZoomRatioOperation as _0x3f5489,SetScrollOperation as _0xc9b77c}from'@univerjs/sheets-ui';var c=function(){var _0x3ab0b5=_0x4e3af4;return c=Object['assign']||function(_0x2d86ff){var _0x30b7c8=_0x5c78;for(var _0x5acc58,_0x5d75c0=0x1,_0x3860fb=arguments[_0x30b7c8(0x1bb)];_0x5d75c0<_0x3860fb;_0x5d75c0++){_0x5acc58=arguments[_0x5d75c0];for(var _0x4f7c10 in _0x5acc58)Object['prototype'][_0x30b7c8(0x19e)]['call'](_0x5acc58,_0x4f7c10)&&(_0x2d86ff[_0x4f7c10]=_0x5acc58[_0x4f7c10]);}return _0x2d86ff;},c[_0x3ab0b5(0x1de)](this,arguments);},Oe=function(_0x5968e7,_0x49bbb8){var _0x5a41d0=_0x4e3af4,_0x223ccc={};for(var _0x1f965e in _0x5968e7)Object[_0x5a41d0(0x18c)]['hasOwnProperty'][_0x5a41d0(0x1d2)](_0x5968e7,_0x1f965e)&&_0x49bbb8[_0x5a41d0(0x19b)](_0x1f965e)<0x0&&(_0x223ccc[_0x1f965e]=_0x5968e7[_0x1f965e]);if(_0x5968e7!=null&&typeof Object[_0x5a41d0(0x175)]==_0x5a41d0(0x196)){for(var _0x6c9cb2=0x0,_0x1f965e=Object['getOwnPropertySymbols'](_0x5968e7);_0x6c9cb2<_0x1f965e[_0x5a41d0(0x1bb)];_0x6c9cb2++)_0x49bbb8[_0x5a41d0(0x19b)](_0x1f965e[_0x6c9cb2])<0x0&&Object[_0x5a41d0(0x18c)][_0x5a41d0(0x184)][_0x5a41d0(0x1d2)](_0x5968e7,_0x1f965e[_0x6c9cb2])&&(_0x223ccc[_0x1f965e[_0x6c9cb2]]=_0x5968e7[_0x1f965e[_0x6c9cb2]]);}return _0x223ccc;},W=_0x283df9(function(_0x1b2ab5,_0xfb72a8){var _0x3c513e=_0x4e3af4,_0x203275=_0x1b2ab5[_0x3c513e(0x190)],_0x955076=_0x1b2ab5['id'],_0x83e51f=_0x1b2ab5['className'],_0x45a33f=_0x1b2ab5['extend'],_0x4a1816=Oe(_0x1b2ab5,['icon','id',_0x3c513e(0x171),_0x3c513e(0x1a5)]),_0x9cb111=_0x3c513e(0x207)[_0x3c513e(0x164)](_0x955076,'\x20')[_0x3c513e(0x164)](_0x83e51f||'')[_0x3c513e(0x192)](),_0x48e17d=_0x27eef8('_'[_0x3c513e(0x164)](Ne()));return Y(_0x203275,''[_0x3c513e(0x164)](_0x955076),{'defIds':_0x203275['defIds'],'idSuffix':_0x48e17d['current']},c({'ref':_0xfb72a8,'className':_0x9cb111},_0x4a1816),_0x45a33f);});function Y(_0x2eda76,_0x251e1a,_0x36fd12,_0x303a8a,_0x469aa3){var _0x46c832=_0x4e3af4;return _0x49c5d9(_0x2eda76[_0x46c832(0x193)],c(c({'key':_0x251e1a},Ee(_0x2eda76,_0x36fd12,_0x469aa3)),_0x303a8a),(we(_0x2eda76,_0x36fd12)['children']||[])['map'](function(_0x5a5815,_0x273084){var _0x3fa662=_0x46c832;return Y(_0x5a5815,''[_0x3fa662(0x164)](_0x251e1a,'-')[_0x3fa662(0x164)](_0x2eda76[_0x3fa662(0x193)],'-')[_0x3fa662(0x164)](_0x273084),_0x36fd12,void 0x0,_0x469aa3);}));}function Ee(_0x3c59aa,_0x545841,_0x46deb7){var _0x15fbec=_0x4e3af4,_0x16ae79=c({},_0x3c59aa[_0x15fbec(0x1b2)]);_0x46deb7!=null&&_0x46deb7[_0x15fbec(0x1f7)]&&_0x16ae79['fill']===_0x15fbec(0x1f7)&&(_0x16ae79['fill']=_0x46deb7[_0x15fbec(0x1f7)]),_0x3c59aa['tag']===_0x15fbec(0x177)&&_0x16ae79['id']&&(_0x16ae79['id']=_0x16ae79['id']+_0x545841[_0x15fbec(0x198)]),Object['entries'](_0x16ae79)[_0x15fbec(0x1a2)](function(_0x55f693){var _0x4a319f=_0x15fbec,_0x27bf6b=_0x55f693[0x0],_0x25b605=_0x55f693[0x1];_0x27bf6b===_0x4a319f(0x177)&&typeof _0x25b605==_0x4a319f(0x1fc)&&(_0x16ae79[_0x27bf6b]=_0x25b605[_0x4a319f(0x19d)](/url\(#(.*)\)/,_0x4a319f(0x1ba)[_0x4a319f(0x164)](_0x545841['idSuffix'],')')));});var _0xdb78a3=_0x545841[_0x15fbec(0x187)];return!_0xdb78a3||_0xdb78a3[_0x15fbec(0x1bb)]===0x0||(_0x3c59aa[_0x15fbec(0x193)]==='use'&&_0x16ae79['xlink:href']&&(_0x16ae79[_0x15fbec(0x16d)]=_0x16ae79['xlink:href']+_0x545841[_0x15fbec(0x198)]),Object[_0x15fbec(0x195)](_0x16ae79)[_0x15fbec(0x1a2)](function(_0x465d9f){var _0x3a059d=_0x15fbec,_0x564719=_0x465d9f[0x0],_0x1e368f=_0x465d9f[0x1];typeof _0x1e368f==_0x3a059d(0x1fc)&&(_0x16ae79[_0x564719]=_0x1e368f[_0x3a059d(0x19d)](/url\(#(.*)\)/,_0x3a059d(0x1ba)[_0x3a059d(0x164)](_0x545841[_0x3a059d(0x198)],')')));})),_0x16ae79;}function we(_0xf90a0,_0x449406){var _0x4c35a0=_0x4e3af4,_0x3e1784,_0x732483=_0x449406['defIds'];return!_0x732483||_0x732483[_0x4c35a0(0x1bb)]===0x0?_0xf90a0:_0xf90a0[_0x4c35a0(0x193)]===_0x4c35a0(0x1ef)&&(!((_0x3e1784=_0xf90a0['children'])===null||_0x3e1784===void 0x0)&&_0x3e1784[_0x4c35a0(0x1bb)])?c(c({},_0xf90a0),{'children':_0xf90a0['children'][_0x4c35a0(0x1bf)](function(_0x483839){var _0x491969=_0x4c35a0;return typeof _0x483839[_0x491969(0x1b2)]['id']=='string'&&_0x732483&&_0x732483[_0x491969(0x1f1)](_0x483839[_0x491969(0x1b2)]['id'])?c(c({},_0x483839),{'attrs':c(c({},_0x483839[_0x491969(0x1b2)]),{'id':_0x483839[_0x491969(0x1b2)]['id']+_0x449406[_0x491969(0x198)]})}):_0x483839;})}):_0xf90a0;}function Ne(){var _0x53891a=_0x4e3af4;return Math[_0x53891a(0x201)]()[_0x53891a(0x204)](0x24)[_0x53891a(0x1a7)](0x2,0x8);}W['displayName']=_0x4e3af4(0x1a6);var Ce={'tag':_0x4e3af4(0x18d),'attrs':{'xmlns':_0x4e3af4(0x1a0),'fill':_0x4e3af4(0x1f0),'viewBox':_0x4e3af4(0x1f3),'width':_0x4e3af4(0x1c1),'height':_0x4e3af4(0x1c1)},'children':[{'tag':'path','attrs':{'fill':_0x4e3af4(0x1c9),'d':_0x4e3af4(0x165)}},{'tag':_0x4e3af4(0x199),'attrs':{'fill':_0x4e3af4(0x1c9),'d':_0x4e3af4(0x1b5),'fillRule':_0x4e3af4(0x1b9),'clipRule':_0x4e3af4(0x1b9)}}]},B=_0x283df9(function(_0xd534d,_0x5ec763){var _0x5c3cbe=_0x4e3af4;return _0x49c5d9(W,Object['assign']({},_0xd534d,{'id':_0x5c3cbe(0x182),'ref':_0x5ec763,'icon':Ce}));});B[_0x4e3af4(0x1f2)]=_0x4e3af4(0x1cd);class L extends _0x47a0ad{constructor(){var _0x1d905e=_0x4e3af4;super(...arguments),d(this,_0x1d905e(0x18b),new Set()),d(this,'_reporters',new Set());}[_0x4e3af4(0x1fa)](_0x45cba8){var _0x4e1383=_0x4e3af4;return this['_sharedOperations']['add'](_0x45cba8),_0x49f94f(()=>this[_0x4e1383(0x18b)][_0x4e1383(0x189)](_0x45cba8));}[_0x4e3af4(0x197)](_0x30ec9b){var _0x3cbe96=_0x4e3af4;return this[_0x3cbe96(0x186)][_0x3cbe96(0x1b0)](_0x30ec9b),_0x49f94f(()=>this[_0x3cbe96(0x186)][_0x3cbe96(0x189)](_0x30ec9b));}[_0x4e3af4(0x1e4)](_0x2e8fd9){var _0x28d3df=_0x4e3af4;return this[_0x28d3df(0x18b)]['has'](_0x2e8fd9);}[_0x4e3af4(0x1a8)](_0x119abf){var _0x4acac0=_0x4e3af4;return Array[_0x4acac0(0x1ad)](this[_0x4acac0(0x186)])['map'](_0x502e48=>_0x502e48(_0x119abf));}}var De=Object[_0x4e3af4(0x1ff)],Z=(_0x36f33e,_0x3fc8fd,_0x7e51d8,_0x172d79)=>{var _0x3ed274=_0x4e3af4;for(var _0x580cd8=_0x172d79>0x1?void 0x0:_0x172d79?De(_0x3fc8fd,_0x7e51d8):_0x3fc8fd,_0x2429ad=_0x36f33e[_0x3ed274(0x1bb)]-0x1,_0x28a8b5;_0x2429ad>=0x0;_0x2429ad--)(_0x28a8b5=_0x36f33e[_0x2429ad])&&(_0x580cd8=_0x28a8b5(_0x580cd8)||_0x580cd8);return _0x580cd8;},f=(_0x1dfe42,_0x2c9825)=>(_0x3b84fb,_0x5889a6)=>_0x2c9825(_0x3b84fb,_0x5889a6,_0x1dfe42);let m=class extends _0x8f69e8{constructor(_0x588b3a,_0x48121a,_0x2d6418){var _0x3791a4=_0x4e3af4;super(),d(this,_0x3791a4(0x1b1),new Map()),(this[_0x3791a4(0x1d5)]=_0x588b3a,this[_0x3791a4(0x1f6)]=_0x48121a,this[_0x3791a4(0x17d)]=_0x2d6418,this[_0x3791a4(0x166)]());}async[_0x4e3af4(0x1f5)](_0x1e4b25){var _0x4e83b7=_0x4e3af4;return this[_0x4e83b7(0x1b1)][_0x4e83b7(0x1c8)](_0x1e4b25)||await this['_startLiveShareCoordinator'](_0x1e4b25),this[_0x4e83b7(0x1b1)][_0x4e83b7(0x1e5)](_0x1e4b25);}['_init'](){var _0x64c5c1=_0x4e3af4;this['_univerInstanceService'][_0x64c5c1(0x17f)](_0x24c5e3[_0x64c5c1(0x1c0)])[_0x64c5c1(0x1da)](_0x15ef67(this[_0x64c5c1(0x19c)]))[_0x64c5c1(0x1ea)](async _0x4a4b77=>{var _0x366673=_0x64c5c1;const _0x3c90e6=_0x4a4b77[_0x366673(0x18f)]();this[_0x366673(0x1b1)][_0x366673(0x1c8)](_0x3c90e6)||this['_startLiveShareCoordinator'](_0x3c90e6);}),this[_0x64c5c1(0x1d5)][_0x64c5c1(0x1c7)](_0x24c5e3[_0x64c5c1(0x1c0)])[_0x64c5c1(0x1da)](_0x15ef67(this[_0x64c5c1(0x19c)]))[_0x64c5c1(0x1ea)](_0x4047d6=>{var _0x3e476b=_0x64c5c1;const _0x91c134=_0x4047d6[_0x3e476b(0x18f)](),_0x3d1ca1=this[_0x3e476b(0x1b1)][_0x3e476b(0x1e5)](_0x91c134);_0x3d1ca1==null||_0x3d1ca1[_0x3e476b(0x1e1)]();});}async[_0x4e3af4(0x1a9)](_0x59075f){var _0x2e7c78=_0x4e3af4;const _0x389c32=await this[_0x2e7c78(0x17d)]['requireSession'](_0x59075f),_0x594cb0=this['_injector'][_0x2e7c78(0x1fb)](C,_0x59075f,_0x389c32);return _0x594cb0[_0x2e7c78(0x1a3)](),this[_0x2e7c78(0x1b1)][_0x2e7c78(0x161)](_0x59075f,_0x594cb0),_0x594cb0;}};m=Z([f(0x0,_0x41d5d1),f(0x1,_0x5e3f41(_0x3d9b07)),f(0x2,_0x5e3f41(_0x5e6c43))],m);var h=(_0x282943=>(_0x282943[_0x4e3af4(0x1cc)]='offline',_0x282943['IDLE']=_0x4e3af4(0x18e),_0x282943['FOLLOWING']=_0x4e3af4(0x1fe),_0x282943[_0x4e3af4(0x179)]='not-following',_0x282943[_0x4e3af4(0x1b6)]='presenting',_0x282943))(h||{});const xe=_0x4e3af4(0x1e6),Le=0xc8;let C=class extends _0x8f69e8{constructor(_0x28cea6,_0x2d3596,_0x588087,_0x20ce57,_0x597e7){var _0xc5d941=_0x4e3af4;super(),d(this,_0xc5d941(0x1bd),new _0xf8c315(_0xc5d941(0x18e))),d(this,_0xc5d941(0x181),this['_status$']['asObservable']()),d(this,_0xc5d941(0x166),!0x1),d(this,_0xc5d941(0x16a),null),d(this,_0xc5d941(0x176),null),(this['_unitID']=_0x28cea6,this[_0xc5d941(0x1c4)]=_0x2d3596,this[_0xc5d941(0x1f9)]=_0x588087,this[_0xc5d941(0x174)]=_0x20ce57,this['_commandService']=_0x597e7);}get['_status'](){var _0x2bfd60=_0x4e3af4;return this[_0x2bfd60(0x1bd)]['getValue']();}[_0x4e3af4(0x1e1)](){var _0x1b5a56=_0x4e3af4,_0x2b17e2;(_0x2b17e2=this[_0x1b5a56(0x16a)])==null||_0x2b17e2['dispose'](),this[_0x1b5a56(0x1bd)][_0x1b5a56(0x20b)](_0x1b5a56(0x18e)),this[_0x1b5a56(0x1bd)][_0x1b5a56(0x1ce)]();}['init'](){var _0x1a4e35=_0x4e3af4;this['_init']||(this['_init']=!0x0,this[_0x1a4e35(0x1c4)][_0x1a4e35(0x203)][_0x1a4e35(0x1da)](_0x15ef67(this[_0x1a4e35(0x19c)]))[_0x1a4e35(0x1ea)](_0x104543=>{var _0x26d6eb=_0x1a4e35;switch(_0x104543){case _0x1eae31[_0x26d6eb(0x1cc)]:this[_0x26d6eb(0x1d6)]();break;case _0x1eae31[_0x26d6eb(0x1ec)]:this[_0x26d6eb(0x1df)]();break;}}),this[_0x1a4e35(0x1c4)]['event$'][_0x1a4e35(0x1da)](_0x15ef67(this[_0x1a4e35(0x19c)]))[_0x1a4e35(0x1ea)](_0x51450d=>{var _0x3d3686=_0x1a4e35;const {eventID:_0x1bd1c2}=_0x51450d;switch(_0x1bd1c2){case _0x1ff539[_0x3d3686(0x1ee)]:this[_0x3d3686(0x1cb)](_0x51450d);break;case _0x1ff539[_0x3d3686(0x17c)]:this[_0x3d3686(0x183)](_0x51450d);break;case _0x1ff539[_0x3d3686(0x1c2)]:this['_handleTerminate']();break;case _0x1ff539['NEW_CHANGESETS']:this[_0x3d3686(0x172)](_0x51450d);break;}}));}['tryStartPresenting'](){var _0xc29aea=_0x4e3af4;this[_0xc29aea(0x1c4)][_0xc29aea(0x170)]({'eventID':_0x1ff539[_0xc29aea(0x16f)],'data':{'unitID':this[_0xc29aea(0x1dc)],'userID':this[_0xc29aea(0x1c4)]['getMemberID']()}},this['_unitID']);}[_0x4e3af4(0x1ae)](){var _0x15f201=_0x4e3af4;this[_0x15f201(0x208)]===_0x15f201(0x1aa)&&(this[_0x15f201(0x1bd)][_0x15f201(0x20b)](_0x15f201(0x18e)),this[_0x15f201(0x1c4)]['send']({'eventID':_0x1ff539['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x15f201(0x1dc)]}},this[_0x15f201(0x1dc)]));}[_0x4e3af4(0x20a)](){var _0x59a1b7=_0x4e3af4;this['_status']===_0x59a1b7(0x1d1)&&(this[_0x59a1b7(0x1bd)][_0x59a1b7(0x20b)]('following'),this[_0x59a1b7(0x1bc)]());}['stopFollowing'](){var _0x5d3bef=_0x4e3af4;this[_0x5d3bef(0x208)]==='following'&&this[_0x5d3bef(0x17a)]();}[_0x4e3af4(0x1cb)](_0x3acacc){var _0x2f8557=_0x4e3af4;const {presenter:_0x42556b}=_0x3acacc[_0x2f8557(0x1a4)],_0x4a0bb0=this[_0x2f8557(0x1c4)]['getMemberID']();this[_0x2f8557(0x176)]=_0x42556b,_0x42556b===_0x4a0bb0?(this[_0x2f8557(0x17a)](),this['_startPresenting']()):this['_status']!==_0x2f8557(0x1d1)&&(this['_stopPresenting'](),this[_0x2f8557(0x1bc)]());}[_0x4e3af4(0x1b3)](){var _0x57943b=_0x4e3af4;const _0x509a2f={'eventID':_0x1ff539[_0x57943b(0x20f)]};this[_0x57943b(0x1c4)][_0x57943b(0x170)](_0x509a2f,this[_0x57943b(0x1dc)]);}['_handleTerminate'](){var _0x33c1ee=_0x4e3af4;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x33c1ee(0x16e)]();}[_0x4e3af4(0x172)](_0x5e23c5){var _0x1522d6=_0x4e3af4;if(this[_0x1522d6(0x208)]==='following'&&this[_0x1522d6(0x176)]===_0x5e23c5['data']['memberID']){const _0x361441=_0x25e34f(_0x5e23c5[_0x1522d6(0x1a4)])[_0x1522d6(0x1d3)]['reverse']()[_0x1522d6(0x1e0)](_0x3274f0=>_0x3274f0['id']===_0xa92ac9['id']);if(_0x361441){const _0x35059e=_0x361441[_0x1522d6(0x211)][_0x1522d6(0x1af)],_0x31767b=_0x361441[_0x1522d6(0x211)][_0x1522d6(0x178)]['id'];setTimeout(()=>{var _0x55b82f=_0x1522d6;this[_0x55b82f(0x16c)]['executeCommand'](_0x47bab9['id'],{'unitId':_0x35059e,'subUnitId':_0x31767b},{'fromCollab':!0x0});});}}}[_0x4e3af4(0x188)](){var _0x432d01=_0x4e3af4;this[_0x432d01(0x1bd)][_0x432d01(0x20b)](_0x432d01(0x1aa));const _0x17021f=new Map(),_0x439807=this[_0x432d01(0x16a)]=new _0x183114();_0x439807['add'](_0x49f94f(()=>{var _0xbd99a=_0x432d01;_0x17021f[_0xbd99a(0x1a2)](_0x1a79a8=>_0x1a79a8[_0xbd99a(0x1ce)]()),_0x17021f['clear']();})),_0x439807[_0x432d01(0x1b0)](this[_0x432d01(0x16c)][_0x432d01(0x17e)](_0x2ad88e=>{var _0x4f70d7=_0x432d01,_0x5d9409;if(_0x2ad88e[_0x4f70d7(0x163)]!==_0x406fbf[_0x4f70d7(0x20c)]||!this[_0x4f70d7(0x174)]['shouldShareOperation'](_0x2ad88e['id']))return;const {id:_0x39a1bc}=_0x2ad88e;let _0x153371;_0x17021f[_0x4f70d7(0x1c8)](_0x39a1bc)?_0x153371=_0x17021f[_0x4f70d7(0x1e5)](_0x39a1bc):(_0x153371=new _0x13b0cb(),_0x17021f[_0x4f70d7(0x161)](_0x39a1bc,_0x153371),_0x153371[_0x4f70d7(0x1da)](_0x2eb31b((_0x5d9409=this['_configService'][_0x4f70d7(0x20d)](xe))!=null?_0x5d9409:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3c0346=>{var _0x2eed7b=_0x4f70d7;this[_0x2eed7b(0x1c4)][_0x2eed7b(0x170)]({'eventID':_0x1ff539[_0x2eed7b(0x17c)],'data':{'unitID':this['_unitID'],'operations':{[_0x3c0346['id']]:{'id':_0x3c0346['id'],'params':JSON[_0x2eed7b(0x200)](_0x3c0346[_0x2eed7b(0x211)])}}}},this[_0x2eed7b(0x1dc)]);})),_0x153371[_0x4f70d7(0x20b)](_0x2ad88e);})),this['_liveShareService'][_0x432d01(0x1a8)](this[_0x432d01(0x1dc)])[_0x432d01(0x1a2)](_0x1d7fd4=>this['_collabSession']['send']({'eventID':_0x1ff539[_0x432d01(0x17c)],'data':{'unitID':this[_0x432d01(0x1dc)],'operations':{[_0x1d7fd4['id']]:{'id':_0x1d7fd4['id'],'params':JSON[_0x432d01(0x200)](_0x1d7fd4[_0x432d01(0x211)])}}}},this[_0x432d01(0x1dc)]));}[_0x4e3af4(0x1fd)](){var _0x22e187=_0x4e3af4,_0x3d950c;this['_status$']['next'](_0x22e187(0x18e)),(_0x3d950c=this[_0x22e187(0x16a)])==null||_0x3d950c[_0x22e187(0x1e1)](),this[_0x22e187(0x16a)]=null;}[_0x4e3af4(0x1bc)](){var _0x2dcfa9=_0x4e3af4,_0x2401b2;(_0x2401b2=this[_0x2dcfa9(0x16a)])==null||_0x2401b2['dispose'](),this[_0x2dcfa9(0x1bd)]['next'](_0x2dcfa9(0x1fe));}[_0x4e3af4(0x16e)](){var _0x243513=_0x4e3af4,_0x344e1f;this[_0x243513(0x1bd)][_0x243513(0x20b)](_0x243513(0x18e)),(_0x344e1f=this[_0x243513(0x16a)])==null||_0x344e1f['dispose'](),this[_0x243513(0x16a)]=null;}[_0x4e3af4(0x17a)](){var _0x4550a8=_0x4e3af4,_0x5dc4c6;this[_0x4550a8(0x1bd)]['next'](_0x4550a8(0x1d1)),(_0x5dc4c6=this[_0x4550a8(0x16a)])==null||_0x5dc4c6[_0x4550a8(0x1e1)]();}[_0x4e3af4(0x183)](_0x2115bb){var _0x12945d=_0x4e3af4;if(['presenting','not-following',_0x12945d(0x185)]['includes'](this[_0x12945d(0x208)])||!_0x2115bb[_0x12945d(0x1a4)][_0x12945d(0x1e9)]||_0x2115bb[_0x12945d(0x1a4)]['presenter']===this[_0x12945d(0x1c4)]['getMemberID']())return;this[_0x12945d(0x208)]===_0x12945d(0x18e)&&this['_startFollowing']();const _0x414eb9=_0x2115bb[_0x12945d(0x1a4)][_0x12945d(0x18a)];Object['values'](_0x414eb9)[_0x12945d(0x1a2)](_0x4e3eaa=>{var _0x352612=_0x12945d;this[_0x352612(0x16c)]['executeCommand'](_0x4e3eaa['id'],_0x4e3eaa[_0x352612(0x211)]?JSON[_0x352612(0x1ca)](_0x4e3eaa['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x193a17=_0x4e3af4,_0x1a6334;this[_0x193a17(0x1bd)]['next'](_0x193a17(0x185)),(_0x1a6334=this['_commandDisposable'])==null||_0x1a6334['dispose']();}[_0x4e3af4(0x1df)](){var _0x202303=_0x4e3af4;this[_0x202303(0x1bd)][_0x202303(0x20b)](_0x202303(0x18e)),this['_fetchOperations']();}};C=Z([f(0x2,_0x509920),f(0x3,_0x5e3f41(L)),f(0x4,_0x731239)],C);function ye(){var _0x255142=_0x4e3af4;const _0x3c42d1=_0x46ed8c(m),_0x192c95=_0x46ed8c(_0x41d5d1),_0x4e670c=_0x272543(()=>_0x192c95['getCurrentTypeOfUnit$'](_0x24c5e3[_0x255142(0x1c0)]),void 0x0,!0x1,[]),[_0x16500f,_0x5dd4dd]=_0x10563c(null),[_0x39f02b,_0x39ef3f]=_0x10563c(h['IDLE']),_0x5aa429=_0x27eef8(null);return _0x4748a7(()=>(_0x4e670c&&_0x3c42d1[_0x255142(0x1f5)](_0x4e670c[_0x255142(0x18f)]())['then'](_0x38d79c=>{var _0x49ab88=_0x255142;_0x5dd4dd(_0x38d79c),_0x5aa429[_0x49ab88(0x1d7)]=_0x38d79c[_0x49ab88(0x181)][_0x49ab88(0x1ea)](_0x254e5b=>{_0x39ef3f(_0x254e5b);});}),()=>{var _0x49881a=_0x255142,_0x471132;(_0x471132=_0x5aa429[_0x49881a(0x1d7)])==null||_0x471132[_0x49881a(0x209)](),_0x5aa429[_0x49881a(0x1d7)]=null;}),[_0x4e670c,_0x3c42d1]),_0x16500f?_0x4dccbe(_0x26f77f,{'align':_0x255142(0x17b),'disabled':_0x39f02b===h[_0x255142(0x1cc)],'className':_0x255142(0x205),'overlay':_0x4dccbe(Re,{'status':_0x39f02b,'coordinator':_0x16500f}),'children':_0x4dccbe(_0x255142(0x1e2),{'className':_0x520a75('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x39f02b===h[_0x255142(0x1cc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x39f02b!==h[_0x255142(0x1cc)]}),'type':_0x255142(0x1e2),'children':_0x4dccbe(B,{'className':_0x255142(0x1db)})})}):null;}function Re(_0x29fd8c){var _0x5cb9df=_0x4e3af4;const {status:_0x4aba32,coordinator:_0x446297}=_0x29fd8c;switch(_0x4aba32){case h['IDLE']:return _0x4dccbe(Pe,{'coordinator':_0x446297});case h[_0x5cb9df(0x1cf)]:return _0x4dccbe(Ae,{'coordinator':_0x446297});case h[_0x5cb9df(0x179)]:return _0x4dccbe(Te,{'coordinator':_0x446297});case h['OFFLINE']:return _0x4dccbe(Fe,{});case h[_0x5cb9df(0x1b6)]:return _0x4dccbe($e,{'coordinator':_0x446297});default:return null;}}function Pe(_0x49859c){var _0xc5535c=_0x4e3af4;const {coordinator:_0x3c86e2}=_0x49859c;return _0x3f4580(_0x4cdd5d,{'children':[_0x4dccbe(_0xc5535c(0x168),{'className':_0xc5535c(0x1ac),'children':_0xc5535c(0x206)}),_0x4dccbe(_0x27e6ca,{'onClick':()=>_0x3c86e2[_0xc5535c(0x1d0)](),'children':_0xc5535c(0x167)})]});}function Ae(_0xcc2208){var _0x49b4bf=_0x4e3af4;const {coordinator:_0x360952}=_0xcc2208;return _0x3f4580(_0x4cdd5d,{'children':[_0x4dccbe(_0x49b4bf(0x168),{'className':_0x49b4bf(0x1ac),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4dccbe(_0x27e6ca,{'onClick':()=>_0x360952[_0x49b4bf(0x173)](),'children':_0x49b4bf(0x1e8)})]});}function Te(_0x4abeaf){var _0x5a4b4d=_0x4e3af4;const {coordinator:_0x1498e7}=_0x4abeaf;return _0x3f4580(_0x4cdd5d,{'children':[_0x4dccbe(_0x5a4b4d(0x168),{'className':_0x5a4b4d(0x1ac),'children':_0x5a4b4d(0x1e3)}),_0x4dccbe(_0x27e6ca,{'variant':_0x5a4b4d(0x194),'onClick':()=>_0x1498e7[_0x5a4b4d(0x20a)](),'children':'Start\x20following'})]});}function $e(_0x4467c3){var _0x1df5f4=_0x4e3af4;const {coordinator:_0x3639cd}=_0x4467c3;return _0x3f4580(_0x4cdd5d,{'children':[_0x4dccbe(_0x1df5f4(0x168),{'className':_0x1df5f4(0x1ac),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4dccbe(_0x27e6ca,{'variant':_0x1df5f4(0x19f),'onClick':()=>_0x3639cd[_0x1df5f4(0x1ae)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x1d63f2=_0x4e3af4;return _0x4dccbe(_0x4cdd5d,{'children':_0x1d63f2(0x1c6)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x26a205,_0x537c52,_0x37c655,_0x5e20e0)=>{var _0x5117c8=_0x4e3af4;for(var _0x1a03f1=_0x5e20e0>0x1?void 0x0:_0x5e20e0?He(_0x537c52,_0x37c655):_0x537c52,_0x223af9=_0x26a205[_0x5117c8(0x1bb)]-0x1,_0x356f32;_0x223af9>=0x0;_0x223af9--)(_0x356f32=_0x26a205[_0x223af9])&&(_0x1a03f1=_0x356f32(_0x1a03f1)||_0x1a03f1);return _0x1a03f1;},T=(_0x16374d,_0x1a3760)=>(_0x329b75,_0x5344f1)=>_0x1a3760(_0x329b75,_0x5344f1,_0x16374d);let I=class extends _0x47a0ad{constructor(_0x20ce4e,_0x20fe68){var _0xadeb15=_0x4e3af4;super(),this[_0xadeb15(0x1f6)]=_0x20ce4e,this[_0xadeb15(0x1d4)]=_0x20fe68,this['_mountLiveShare']();}[_0x4e3af4(0x1f8)](){var _0x5d0129=_0x4e3af4;this[_0x5d0129(0x1be)](this[_0x5d0129(0x1d4)][_0x5d0129(0x20e)](_0x882eae[_0x5d0129(0x1dd)],()=>_0x4fb5b9(ye,this['_injector'])));}};I=je([T(0x0,_0x5e3f41(_0x3d9b07)),T(0x1,_0x13121a)],I);const Ue=_0x4e3af4(0x1e7),$={};var Ve=Object[_0x4e3af4(0x1ff)],Me=(_0x260437,_0x3f7b37,_0x848eff,_0x18daa2)=>{var _0xec4250=_0x4e3af4;for(var _0x35f12b=_0x18daa2>0x1?void 0x0:_0x18daa2?Ve(_0x3f7b37,_0x848eff):_0x3f7b37,_0x1a74e4=_0x260437[_0xec4250(0x1bb)]-0x1,_0x486fe3;_0x1a74e4>=0x0;_0x1a74e4--)(_0x486fe3=_0x260437[_0x1a74e4])&&(_0x35f12b=_0x486fe3(_0x35f12b)||_0x35f12b);return _0x35f12b;},ke=(_0x376828,_0x7316c)=>(_0x51f8a7,_0x38c2f6)=>_0x7316c(_0x51f8a7,_0x38c2f6,_0x376828);let b=class extends _0x47a0ad{constructor(_0x35b954){var _0x2c1426=_0x4e3af4;super(),this[_0x2c1426(0x174)]=_0x35b954,this[_0x2c1426(0x166)]();}[_0x4e3af4(0x166)](){var _0x4a7fbf=_0x4e3af4;[_0x3f5489['id'],_0xc9b77c['id'],_0x47bab9['id']][_0x4a7fbf(0x1a2)](_0x277bd1=>{var _0x53e952=_0x4a7fbf;this['disposeWithMe'](this[_0x53e952(0x174)][_0x53e952(0x1fa)](_0x277bd1));});}};b=Me([ke(0x0,_0x5e3f41(L))],b);var Ge=Object[_0x4e3af4(0x1d9)],We=Object[_0x4e3af4(0x1ff)],Ye=(_0x4e2550,_0x48476e,_0x2ad7ba)=>_0x48476e in _0x4e2550?Ge(_0x4e2550,_0x48476e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ad7ba}):_0x4e2550[_0x48476e]=_0x2ad7ba,Be=(_0x3b4687,_0x3173f9,_0x128ac1,_0x173115)=>{var _0xec3c96=_0x4e3af4;for(var _0x4cfb6f=_0x173115>0x1?void 0x0:_0x173115?We(_0x3173f9,_0x128ac1):_0x3173f9,_0x229bda=_0x3b4687[_0xec3c96(0x1bb)]-0x1,_0x519226;_0x229bda>=0x0;_0x229bda--)(_0x519226=_0x3b4687[_0x229bda])&&(_0x4cfb6f=_0x519226(_0x4cfb6f)||_0x4cfb6f);return _0x4cfb6f;},F=(_0x1a8af8,_0xd9dbea)=>(_0x197f86,_0x469e54)=>_0xd9dbea(_0x197f86,_0x469e54,_0x1a8af8),J=(_0x43663d,_0x376dba,_0x1fb83f)=>Ye(_0x43663d,typeof _0x376dba!=_0x4e3af4(0x1b7)?_0x376dba+'':_0x376dba,_0x1fb83f);const Ze=_0x4e3af4(0x191);let O=class extends _0x3597d6{constructor(_0xd6250=$,_0x1a4d00,_0x1915b2){var _0x52cf42=_0x4e3af4;super(),this[_0x52cf42(0x169)]=_0xd6250,this[_0x52cf42(0x1f6)]=_0x1a4d00,this[_0x52cf42(0x1f9)]=_0x1915b2;const {..._0x1b7b57}=_0x5d6ffb({},$,this[_0x52cf42(0x169)]);this[_0x52cf42(0x1f9)][_0x52cf42(0x162)](Ue,_0x1b7b57);}[_0x4e3af4(0x1ed)](){var _0x2a4439=_0x4e3af4;_0x4fd2a6(this[_0x2a4439(0x1f6)],_0x5e3628([[L],[m],[b],[I]],this[_0x2a4439(0x169)]['override'])),_0x864c41(this['_injector'],[[b]]);}[_0x4e3af4(0x1eb)](){_0x864c41(this['_injector'],[[I]]);}};J(O,'type',_0x24c5e3['UNIVER_UNKNOWN']),J(O,_0x4e3af4(0x1c5),Ze),O=Be([_0x23e969(_0x47c63f),F(0x1,_0x5e3f41(_0x3d9b07)),F(0x2,_0x509920)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x421f7a=_0x4030;(function(_0x4b074f,_0x3cdfe4){var _0x379ffb=_0x4030,_0x4a4876=_0x4b074f();while(!![]){try{var _0x519817=-parseInt(_0x379ffb(0x1f3))/0x1+-parseInt(_0x379ffb(0x18f))/0x2*(parseInt(_0x379ffb(0x1e5))/0x3)+parseInt(_0x379ffb(0x1f6))/0x4*(parseInt(_0x379ffb(0x191))/0x5)+parseInt(_0x379ffb(0x1fa))/0x6+parseInt(_0x379ffb(0x1e7))/0x7*(parseInt(_0x379ffb(0x1a7))/0x8)+parseInt(_0x379ffb(0x202))/0x9+parseInt(_0x379ffb(0x1a6))/0xa;if(_0x519817===_0x3cdfe4)break;else _0x4a4876['push'](_0x4a4876['shift']());}catch(_0x348f7a){_0x4a4876['push'](_0x4a4876['shift']());}}}(_0x326c,0x684c4));var q=Object[_0x421f7a(0x17c)],z=(_0x327b43,_0x1b4357,_0x301a3f)=>_0x1b4357 in _0x327b43?q(_0x327b43,_0x1b4357,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x301a3f}):_0x327b43[_0x1b4357]=_0x301a3f,d=(_0xd3575,_0x449a63,_0x3411c0)=>z(_0xd3575,typeof _0x449a63!='symbol'?_0x449a63+'':_0x449a63,_0x3411c0);import{Disposable as _0x2abf63,toDisposable as _0x1078e1,IUniverInstanceService as _0x3889bb,Inject as _0x4b4c18,Injector as _0x12ff87,IConfigService as _0x283dc5,ICommandService as _0x62e54c,RxDisposable as _0x1bc197,UniverInstanceType as _0x3234f9,DisposableCollection as _0x3fbfad,CommandType as _0x1b7884,DependentOn as _0x242f70,Plugin as _0x525e5f,merge as _0x53247a,registerDependencies as _0x3bf986,mergeOverrideWithDependencies as _0x184474,touchDependencies as _0x10bb21}from'@univerjs/core';import{useDependency as _0x20977d,useObservable as _0xc10a5c,IUIPartsService as _0x1c1d17,BuiltInUIPart as _0x1697f8,connectInjector as _0x10655a}from'@univerjs/ui';import{jsx as _0x2ca145,jsxs as _0x3ee81b,Fragment as _0x38862d}from'react/jsx-runtime';import{Dropdown as _0x258e49,clsx as _0x9a7ef5,Button as _0x47729a}from'@univerjs/design';import{forwardRef as _0xcf7a4f,useRef as _0x435daf,createElement as _0x376bb7,useState as _0x4f9eda,useEffect as _0x4ebfa4}from'react';import{CollaborationEvent as _0x155168,parseProtocolChangeset as _0x47a67c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32ee68,SessionStatus as _0x5757f7,UniverCollaborationClientPlugin as _0x4057a8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x33c245,SetWorksheetActiveOperation as _0x278948}from'@univerjs/sheets';import{BehaviorSubject as _0x4c5bc1,Subject as _0x80fbac}from'rxjs';import{takeUntil as _0x3cddc9,throttleTime as _0x528d93}from'rxjs/operators';import{SetZoomRatioOperation as _0x192820,SetScrollOperation as _0x27f0c3}from'@univerjs/sheets-ui';var c=function(){return c=Object['assign']||function(_0x3d065e){var _0x3cf8e7=_0x4030;for(var _0x45e2d8,_0x1ac5af=0x1,_0x4d731c=arguments[_0x3cf8e7(0x1ac)];_0x1ac5af<_0x4d731c;_0x1ac5af++){_0x45e2d8=arguments[_0x1ac5af];for(var _0x5a84fc in _0x45e2d8)Object[_0x3cf8e7(0x1d9)]['hasOwnProperty'][_0x3cf8e7(0x1c4)](_0x45e2d8,_0x5a84fc)&&(_0x3d065e[_0x5a84fc]=_0x45e2d8[_0x5a84fc]);}return _0x3d065e;},c['apply'](this,arguments);},Oe=function(_0x4145bd,_0x44cf15){var _0x287d30=_0x421f7a,_0x20f715={};for(var _0x129e02 in _0x4145bd)Object[_0x287d30(0x1d9)][_0x287d30(0x15d)][_0x287d30(0x1c4)](_0x4145bd,_0x129e02)&&_0x44cf15[_0x287d30(0x1e0)](_0x129e02)<0x0&&(_0x20f715[_0x129e02]=_0x4145bd[_0x129e02]);if(_0x4145bd!=null&&typeof Object[_0x287d30(0x1d4)]==_0x287d30(0x1ba)){for(var _0x558d88=0x0,_0x129e02=Object[_0x287d30(0x1d4)](_0x4145bd);_0x558d88<_0x129e02[_0x287d30(0x1ac)];_0x558d88++)_0x44cf15[_0x287d30(0x1e0)](_0x129e02[_0x558d88])<0x0&&Object['prototype'][_0x287d30(0x1e4)][_0x287d30(0x1c4)](_0x4145bd,_0x129e02[_0x558d88])&&(_0x20f715[_0x129e02[_0x558d88]]=_0x4145bd[_0x129e02[_0x558d88]]);}return _0x20f715;},W=_0xcf7a4f(function(_0x2456e4,_0xbd4b98){var _0x232875=_0x421f7a,_0x45f655=_0x2456e4[_0x232875(0x1da)],_0x4d59cf=_0x2456e4['id'],_0x541eb9=_0x2456e4[_0x232875(0x176)],_0x3a0135=_0x2456e4[_0x232875(0x204)],_0x10f4f5=Oe(_0x2456e4,['icon','id','className',_0x232875(0x204)]),_0x132fda=_0x232875(0x18b)[_0x232875(0x1d7)](_0x4d59cf,'\x20')[_0x232875(0x1d7)](_0x541eb9||'')[_0x232875(0x16b)](),_0xe80919=_0x435daf('_'[_0x232875(0x1d7)](Ne()));return Y(_0x45f655,''[_0x232875(0x1d7)](_0x4d59cf),{'defIds':_0x45f655[_0x232875(0x200)],'idSuffix':_0xe80919[_0x232875(0x171)]},c({'ref':_0xbd4b98,'className':_0x132fda},_0x10f4f5),_0x3a0135);});function Y(_0x55f07b,_0x26e466,_0x3e3c17,_0x2c612d,_0xc69d73){var _0x2a758c=_0x421f7a;return _0x376bb7(_0x55f07b[_0x2a758c(0x1e8)],c(c({'key':_0x26e466},Ee(_0x55f07b,_0x3e3c17,_0xc69d73)),_0x2c612d),(we(_0x55f07b,_0x3e3c17)[_0x2a758c(0x188)]||[])[_0x2a758c(0x1c0)](function(_0x40c3b2,_0x36b11a){var _0x304901=_0x2a758c;return Y(_0x40c3b2,''[_0x304901(0x1d7)](_0x26e466,'-')[_0x304901(0x1d7)](_0x55f07b['tag'],'-')[_0x304901(0x1d7)](_0x36b11a),_0x3e3c17,void 0x0,_0xc69d73);}));}function Ee(_0x175085,_0x35b402,_0xc6209e){var _0x464de0=_0x421f7a,_0x2bfde6=c({},_0x175085[_0x464de0(0x16d)]);_0xc6209e!=null&&_0xc6209e['colorChannel1']&&_0x2bfde6['fill']===_0x464de0(0x1ff)&&(_0x2bfde6['fill']=_0xc6209e['colorChannel1']),_0x175085['tag']===_0x464de0(0x16e)&&_0x2bfde6['id']&&(_0x2bfde6['id']=_0x2bfde6['id']+_0x35b402['idSuffix']),Object[_0x464de0(0x1d2)](_0x2bfde6)[_0x464de0(0x16c)](function(_0x4fac57){var _0x352125=_0x464de0,_0x98b365=_0x4fac57[0x0],_0x1589b8=_0x4fac57[0x1];_0x98b365===_0x352125(0x16e)&&typeof _0x1589b8==_0x352125(0x1af)&&(_0x2bfde6[_0x98b365]=_0x1589b8[_0x352125(0x1e6)](/url\(#(.*)\)/,_0x352125(0x187)[_0x352125(0x1d7)](_0x35b402[_0x352125(0x190)],')')));});var _0x33d12e=_0x35b402[_0x464de0(0x200)];return!_0x33d12e||_0x33d12e[_0x464de0(0x1ac)]===0x0||(_0x175085[_0x464de0(0x1e8)]===_0x464de0(0x1db)&&_0x2bfde6[_0x464de0(0x1b1)]&&(_0x2bfde6['xlink:href']=_0x2bfde6[_0x464de0(0x1b1)]+_0x35b402[_0x464de0(0x190)]),Object[_0x464de0(0x1d2)](_0x2bfde6)[_0x464de0(0x16c)](function(_0x112c66){var _0x2996fe=_0x464de0,_0x4db863=_0x112c66[0x0],_0xd714ca=_0x112c66[0x1];typeof _0xd714ca=='string'&&(_0x2bfde6[_0x4db863]=_0xd714ca[_0x2996fe(0x1e6)](/url\(#(.*)\)/,'url(#$1'[_0x2996fe(0x1d7)](_0x35b402[_0x2996fe(0x190)],')')));})),_0x2bfde6;}function we(_0x5756c2,_0x424827){var _0x64bd5=_0x421f7a,_0xd7a4fc,_0x363d3e=_0x424827[_0x64bd5(0x200)];return!_0x363d3e||_0x363d3e[_0x64bd5(0x1ac)]===0x0?_0x5756c2:_0x5756c2[_0x64bd5(0x1e8)]===_0x64bd5(0x167)&&(!((_0xd7a4fc=_0x5756c2['children'])===null||_0xd7a4fc===void 0x0)&&_0xd7a4fc[_0x64bd5(0x1ac)])?c(c({},_0x5756c2),{'children':_0x5756c2[_0x64bd5(0x188)][_0x64bd5(0x1c0)](function(_0x332404){var _0x101d10=_0x64bd5;return typeof _0x332404[_0x101d10(0x16d)]['id']==_0x101d10(0x1af)&&_0x363d3e&&_0x363d3e['includes'](_0x332404[_0x101d10(0x16d)]['id'])?c(c({},_0x332404),{'attrs':c(c({},_0x332404[_0x101d10(0x16d)]),{'id':_0x332404['attrs']['id']+_0x424827[_0x101d10(0x190)]})}):_0x332404;})}):_0x5756c2;}function Ne(){var _0x69c7a3=_0x421f7a;return Math[_0x69c7a3(0x1cd)]()['toString'](0x24)[_0x69c7a3(0x15f)](0x2,0x8);}W[_0x421f7a(0x180)]=_0x421f7a(0x1cb);var Ce={'tag':_0x421f7a(0x1ed),'attrs':{'xmlns':_0x421f7a(0x20b),'fill':_0x421f7a(0x19f),'viewBox':_0x421f7a(0x16f),'width':'1em','height':_0x421f7a(0x17b)},'children':[{'tag':'path','attrs':{'fill':_0x421f7a(0x177),'d':_0x421f7a(0x1f5)}},{'tag':_0x421f7a(0x1b9),'attrs':{'fill':_0x421f7a(0x177),'d':_0x421f7a(0x196),'fillRule':_0x421f7a(0x1dc),'clipRule':_0x421f7a(0x1dc)}}]},B=_0xcf7a4f(function(_0x421f5e,_0x2dd6e2){var _0x425499=_0x421f7a;return _0x376bb7(W,Object['assign']({},_0x421f5e,{'id':_0x425499(0x1a8),'ref':_0x2dd6e2,'icon':Ce}));});B[_0x421f7a(0x180)]=_0x421f7a(0x185);class L extends _0x2abf63{constructor(){var _0x3c021e=_0x421f7a;super(...arguments),d(this,_0x3c021e(0x1c9),new Set()),d(this,_0x3c021e(0x199),new Set());}[_0x421f7a(0x1f9)](_0x4fc66b){var _0x36ba99=_0x421f7a;return this['_sharedOperations'][_0x36ba99(0x1c1)](_0x4fc66b),_0x1078e1(()=>this['_sharedOperations'][_0x36ba99(0x1d3)](_0x4fc66b));}[_0x421f7a(0x19a)](_0x1072ae){var _0x239e50=_0x421f7a;return this['_reporters'][_0x239e50(0x1c1)](_0x1072ae),_0x1078e1(()=>this[_0x239e50(0x199)]['delete'](_0x1072ae));}[_0x421f7a(0x169)](_0x432576){var _0xd168ed=_0x421f7a;return this['_sharedOperations'][_0xd168ed(0x179)](_0x432576);}[_0x421f7a(0x209)](_0x295c73){var _0x79584=_0x421f7a;return Array[_0x79584(0x194)](this[_0x79584(0x199)])[_0x79584(0x1c0)](_0x1a2860=>_0x1a2860(_0x295c73));}}var De=Object[_0x421f7a(0x1cf)],Z=(_0x3bf1d5,_0x1c6f60,_0x8e0f6,_0x48e44a)=>{var _0x5488e8=_0x421f7a;for(var _0x475bec=_0x48e44a>0x1?void 0x0:_0x48e44a?De(_0x1c6f60,_0x8e0f6):_0x1c6f60,_0x1897f6=_0x3bf1d5[_0x5488e8(0x1ac)]-0x1,_0x2cf2cb;_0x1897f6>=0x0;_0x1897f6--)(_0x2cf2cb=_0x3bf1d5[_0x1897f6])&&(_0x475bec=_0x2cf2cb(_0x475bec)||_0x475bec);return _0x475bec;},f=(_0x2ee2cb,_0x1e86c4)=>(_0x2fef02,_0x3086d7)=>_0x1e86c4(_0x2fef02,_0x3086d7,_0x2ee2cb);let m=class extends _0x1bc197{constructor(_0x2ada05,_0x4a84fa,_0x385782){var _0x74da21=_0x421f7a;super(),d(this,_0x74da21(0x1f2),new Map()),(this[_0x74da21(0x197)]=_0x2ada05,this['_injector']=_0x4a84fa,this[_0x74da21(0x1ef)]=_0x385782,this[_0x74da21(0x183)]());}async['getLiveShareCoordinator'](_0x1a148f){var _0x504322=_0x421f7a;return this[_0x504322(0x1f2)]['has'](_0x1a148f)||await this['_startLiveShareCoordinator'](_0x1a148f),this[_0x504322(0x1f2)][_0x504322(0x1ce)](_0x1a148f);}[_0x421f7a(0x183)](){var _0x2c5e49=_0x421f7a;this[_0x2c5e49(0x197)]['getTypeOfUnitAdded$'](_0x3234f9['UNIVER_SHEET'])[_0x2c5e49(0x166)](_0x3cddc9(this[_0x2c5e49(0x1a2)]))['subscribe'](async _0x3b300c=>{var _0x2b8016=_0x2c5e49;const _0x564566=_0x3b300c[_0x2b8016(0x1bf)]();this[_0x2b8016(0x1f2)]['has'](_0x564566)||this[_0x2b8016(0x184)](_0x564566);}),this[_0x2c5e49(0x197)][_0x2c5e49(0x15c)](_0x3234f9['UNIVER_SHEET'])[_0x2c5e49(0x166)](_0x3cddc9(this['dispose$']))[_0x2c5e49(0x1cc)](_0x1dfc27=>{var _0x547654=_0x2c5e49;const _0x34d4f3=_0x1dfc27[_0x547654(0x1bf)](),_0x33c495=this[_0x547654(0x1f2)]['get'](_0x34d4f3);_0x33c495==null||_0x33c495[_0x547654(0x19b)]();});}async[_0x421f7a(0x184)](_0x28ac3c){var _0x68a82d=_0x421f7a;const _0x126f4b=await this[_0x68a82d(0x1ef)][_0x68a82d(0x20a)](_0x28ac3c),_0x404c95=this[_0x68a82d(0x1b7)][_0x68a82d(0x1dd)](C,_0x28ac3c,_0x126f4b);return _0x404c95[_0x68a82d(0x1a3)](),this[_0x68a82d(0x1f2)][_0x68a82d(0x1be)](_0x28ac3c,_0x404c95),_0x404c95;}};m=Z([f(0x0,_0x3889bb),f(0x1,_0x4b4c18(_0x12ff87)),f(0x2,_0x4b4c18(_0x32ee68))],m);var h=(_0x51a75b=>(_0x51a75b['OFFLINE']=_0x421f7a(0x20d),_0x51a75b[_0x421f7a(0x1d6)]=_0x421f7a(0x1eb),_0x51a75b[_0x421f7a(0x1c2)]='following',_0x51a75b['NOT_FOLLOWING']=_0x421f7a(0x19d),_0x51a75b['PRESENTING']=_0x421f7a(0x17d),_0x51a75b))(h||{});const xe=_0x421f7a(0x1f4),Le=0xc8;let C=class extends _0x1bc197{constructor(_0x5425c9,_0x255bdb,_0x292398,_0x24d9d3,_0x2e7543){var _0x37c763=_0x421f7a;super(),d(this,_0x37c763(0x1e1),new _0x4c5bc1('idle')),d(this,_0x37c763(0x1bd),this[_0x37c763(0x1e1)][_0x37c763(0x208)]()),d(this,_0x37c763(0x183),!0x1),d(this,_0x37c763(0x1e3),null),d(this,'_presenter',null),(this[_0x37c763(0x174)]=_0x5425c9,this['_collabSession']=_0x255bdb,this['_configService']=_0x292398,this[_0x37c763(0x161)]=_0x24d9d3,this[_0x37c763(0x1e2)]=_0x2e7543);}get['_status'](){var _0x562318=_0x421f7a;return this[_0x562318(0x1e1)][_0x562318(0x1de)]();}[_0x421f7a(0x19b)](){var _0x110bad=_0x421f7a,_0x643cc1;(_0x643cc1=this[_0x110bad(0x1e3)])==null||_0x643cc1['dispose'](),this[_0x110bad(0x1e1)][_0x110bad(0x1b5)](_0x110bad(0x1eb)),this[_0x110bad(0x1e1)][_0x110bad(0x189)]();}[_0x421f7a(0x1a3)](){var _0x246eb2=_0x421f7a;this[_0x246eb2(0x183)]||(this[_0x246eb2(0x183)]=!0x0,this['_collabSession'][_0x246eb2(0x1c6)]['pipe'](_0x3cddc9(this[_0x246eb2(0x1a2)]))[_0x246eb2(0x1cc)](_0x5d4f51=>{var _0x333cce=_0x246eb2;switch(_0x5d4f51){case _0x5757f7[_0x333cce(0x1bb)]:this[_0x333cce(0x1d0)]();break;case _0x5757f7[_0x333cce(0x1ad)]:this['_handleOnline']();break;}}),this[_0x246eb2(0x168)]['event$'][_0x246eb2(0x166)](_0x3cddc9(this[_0x246eb2(0x1a2)]))[_0x246eb2(0x1cc)](_0x505099=>{var _0x35b930=_0x246eb2;const {eventID:_0x7efaaf}=_0x505099;switch(_0x7efaaf){case _0x155168[_0x35b930(0x1fe)]:this[_0x35b930(0x165)](_0x505099);break;case _0x155168[_0x35b930(0x1b2)]:this[_0x35b930(0x20e)](_0x505099);break;case _0x155168[_0x35b930(0x203)]:this[_0x35b930(0x207)]();break;case _0x155168['NEW_CHANGESETS']:this[_0x35b930(0x186)](_0x505099);break;}}));}[_0x421f7a(0x1b3)](){var _0x5480fe=_0x421f7a;this[_0x5480fe(0x168)][_0x5480fe(0x20c)]({'eventID':_0x155168[_0x5480fe(0x18a)],'data':{'unitID':this[_0x5480fe(0x174)],'userID':this['_collabSession']['getMemberID']()}},this[_0x5480fe(0x174)]);}[_0x421f7a(0x195)](){var _0x99620=_0x421f7a;this[_0x99620(0x1d1)]===_0x99620(0x17d)&&(this['_status$']['next'](_0x99620(0x1eb)),this[_0x99620(0x168)][_0x99620(0x20c)]({'eventID':_0x155168['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x99620(0x174)]}},this[_0x99620(0x174)]));}[_0x421f7a(0x206)](){var _0x3c7396=_0x421f7a;this['_status']===_0x3c7396(0x19d)&&(this[_0x3c7396(0x1e1)]['next'](_0x3c7396(0x18e)),this['_startFollowing']());}['stopFollowing'](){var _0x44990d=_0x421f7a;this['_status']===_0x44990d(0x18e)&&this[_0x44990d(0x1b4)]();}[_0x421f7a(0x165)](_0x48cf51){var _0x4564df=_0x421f7a;const {presenter:_0x191f33}=_0x48cf51['data'],_0x4dde2e=this[_0x4564df(0x168)][_0x4564df(0x1d8)]();this[_0x4564df(0x178)]=_0x191f33,_0x191f33===_0x4dde2e?(this[_0x4564df(0x1b4)](),this[_0x4564df(0x17f)]()):this[_0x4564df(0x1d1)]!==_0x4564df(0x19d)&&(this[_0x4564df(0x17a)](),this[_0x4564df(0x182)]());}[_0x421f7a(0x1fc)](){var _0x531eb9=_0x421f7a;const _0x4b8989={'eventID':_0x155168[_0x531eb9(0x1c3)]};this[_0x531eb9(0x168)][_0x531eb9(0x20c)](_0x4b8989,this[_0x531eb9(0x174)]);}[_0x421f7a(0x207)](){var _0x39f532=_0x421f7a;this[_0x39f532(0x178)]=null,this[_0x39f532(0x1d1)]!==_0x39f532(0x17d)&&this[_0x39f532(0x192)]();}['_handleNewChangeSets'](_0x83e6bd){var _0x3d91e1=_0x421f7a;if(this[_0x3d91e1(0x1d1)]==='following'&&this[_0x3d91e1(0x178)]===_0x83e6bd['data'][_0x3d91e1(0x1d5)]){const _0x2a209b=_0x47a67c(_0x83e6bd[_0x3d91e1(0x1f0)])[_0x3d91e1(0x162)][_0x3d91e1(0x1f7)]()['find'](_0x194ccc=>_0x194ccc['id']===_0x33c245['id']);if(_0x2a209b){const _0x579c09=_0x2a209b[_0x3d91e1(0x15b)]['unitId'],_0x100947=_0x2a209b[_0x3d91e1(0x15b)][_0x3d91e1(0x1b6)]['id'];setTimeout(()=>{var _0x22aeb8=_0x3d91e1;this[_0x22aeb8(0x1e2)][_0x22aeb8(0x160)](_0x278948['id'],{'unitId':_0x579c09,'subUnitId':_0x100947},{'fromCollab':!0x0});});}}}[_0x421f7a(0x17f)](){var _0x38a758=_0x421f7a;this[_0x38a758(0x1e1)][_0x38a758(0x1b5)](_0x38a758(0x17d));const _0x472b31=new Map(),_0x1c5dee=this[_0x38a758(0x1e3)]=new _0x3fbfad();_0x1c5dee[_0x38a758(0x1c1)](_0x1078e1(()=>{var _0x350a60=_0x38a758;_0x472b31[_0x350a60(0x16c)](_0x18d07c=>_0x18d07c[_0x350a60(0x189)]()),_0x472b31[_0x350a60(0x1df)]();})),_0x1c5dee[_0x38a758(0x1c1)](this[_0x38a758(0x1e2)][_0x38a758(0x173)](_0x834fde=>{var _0x38733e=_0x38a758,_0xffd947;if(_0x834fde[_0x38733e(0x1c5)]!==_0x1b7884[_0x38733e(0x18d)]||!this[_0x38733e(0x161)]['shouldShareOperation'](_0x834fde['id']))return;const {id:_0x3aa016}=_0x834fde;let _0x57938b;_0x472b31[_0x38733e(0x179)](_0x3aa016)?_0x57938b=_0x472b31[_0x38733e(0x1ce)](_0x3aa016):(_0x57938b=new _0x80fbac(),_0x472b31[_0x38733e(0x1be)](_0x3aa016,_0x57938b),_0x57938b[_0x38733e(0x166)](_0x528d93((_0xffd947=this[_0x38733e(0x1a9)][_0x38733e(0x1ea)](xe))!=null?_0xffd947:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38733e(0x1cc)](_0x520bcf=>{var _0x5241eb=_0x38733e;this[_0x5241eb(0x168)][_0x5241eb(0x20c)]({'eventID':_0x155168['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5241eb(0x174)],'operations':{[_0x520bcf['id']]:{'id':_0x520bcf['id'],'params':JSON[_0x5241eb(0x18c)](_0x520bcf[_0x5241eb(0x15b)])}}}},this[_0x5241eb(0x174)]);})),_0x57938b[_0x38733e(0x1b5)](_0x834fde);})),this['_liveShareService'][_0x38a758(0x209)](this['_unitID'])['forEach'](_0x5865fa=>this[_0x38a758(0x168)][_0x38a758(0x20c)]({'eventID':_0x155168[_0x38a758(0x1b2)],'data':{'unitID':this[_0x38a758(0x174)],'operations':{[_0x5865fa['id']]:{'id':_0x5865fa['id'],'params':JSON[_0x38a758(0x18c)](_0x5865fa['params'])}}}},this['_unitID']));}['_stopPresenting'](){var _0x2b1b29=_0x421f7a,_0x3e9251;this[_0x2b1b29(0x1e1)][_0x2b1b29(0x1b5)]('idle'),(_0x3e9251=this[_0x2b1b29(0x1e3)])==null||_0x3e9251[_0x2b1b29(0x19b)](),this[_0x2b1b29(0x1e3)]=null;}[_0x421f7a(0x182)](){var _0x529db7=_0x421f7a,_0x3f9f88;(_0x3f9f88=this[_0x529db7(0x1e3)])==null||_0x3f9f88['dispose'](),this[_0x529db7(0x1e1)][_0x529db7(0x1b5)]('following');}[_0x421f7a(0x192)](){var _0x36d8b3=_0x421f7a,_0x112b3d;this[_0x36d8b3(0x1e1)][_0x36d8b3(0x1b5)](_0x36d8b3(0x1eb)),(_0x112b3d=this[_0x36d8b3(0x1e3)])==null||_0x112b3d[_0x36d8b3(0x19b)](),this[_0x36d8b3(0x1e3)]=null;}[_0x421f7a(0x1b4)](){var _0x430138=_0x421f7a,_0x407a99;this[_0x430138(0x1e1)][_0x430138(0x1b5)](_0x430138(0x19d)),(_0x407a99=this[_0x430138(0x1e3)])==null||_0x407a99[_0x430138(0x19b)]();}[_0x421f7a(0x20e)](_0x6f38d5){var _0x4bb502=_0x421f7a;if([_0x4bb502(0x17d),_0x4bb502(0x19d),'offline']['includes'](this[_0x4bb502(0x1d1)])||!_0x6f38d5[_0x4bb502(0x1f0)]['presenter']||_0x6f38d5['data'][_0x4bb502(0x1a0)]===this[_0x4bb502(0x168)][_0x4bb502(0x1d8)]())return;this[_0x4bb502(0x1d1)]===_0x4bb502(0x1eb)&&this[_0x4bb502(0x182)]();const _0x39da89=_0x6f38d5[_0x4bb502(0x1f0)]['operations'];Object[_0x4bb502(0x1a5)](_0x39da89)['forEach'](_0x5e9898=>{var _0x121d75=_0x4bb502;this[_0x121d75(0x1e2)][_0x121d75(0x160)](_0x5e9898['id'],_0x5e9898[_0x121d75(0x15b)]?JSON[_0x121d75(0x1aa)](_0x5e9898[_0x121d75(0x15b)]):null,{'fromCollab':!0x0});});}[_0x421f7a(0x1d0)](){var _0xcc3898=_0x421f7a,_0x490604;this['_status$'][_0xcc3898(0x1b5)](_0xcc3898(0x20d)),(_0x490604=this[_0xcc3898(0x1e3)])==null||_0x490604['dispose']();}[_0x421f7a(0x1f1)](){var _0x93ed8a=_0x421f7a;this[_0x93ed8a(0x1e1)][_0x93ed8a(0x1b5)](_0x93ed8a(0x1eb)),this[_0x93ed8a(0x1fc)]();}};C=Z([f(0x2,_0x283dc5),f(0x3,_0x4b4c18(L)),f(0x4,_0x62e54c)],C);function ye(){var _0x5d27b9=_0x421f7a;const _0x2c3fa9=_0x20977d(m),_0x3ad0d9=_0x20977d(_0x3889bb),_0x40a090=_0xc10a5c(()=>_0x3ad0d9[_0x5d27b9(0x1a4)](_0x3234f9['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x389043,_0x5d2035]=_0x4f9eda(null),[_0x434ffc,_0x51a627]=_0x4f9eda(h[_0x5d27b9(0x1d6)]),_0x7f2879=_0x435daf(null);return _0x4ebfa4(()=>(_0x40a090&&_0x2c3fa9[_0x5d27b9(0x164)](_0x40a090[_0x5d27b9(0x1bf)]())[_0x5d27b9(0x19c)](_0x2ffbca=>{var _0x5b18ec=_0x5d27b9;_0x5d2035(_0x2ffbca),_0x7f2879['current']=_0x2ffbca['status$'][_0x5b18ec(0x1cc)](_0x1072cf=>{_0x51a627(_0x1072cf);});}),()=>{var _0x5f5baa=_0x5d27b9,_0x29475e;(_0x29475e=_0x7f2879[_0x5f5baa(0x171)])==null||_0x29475e['unsubscribe'](),_0x7f2879[_0x5f5baa(0x171)]=null;}),[_0x40a090,_0x2c3fa9]),_0x389043?_0x2ca145(_0x258e49,{'align':_0x5d27b9(0x1ee),'disabled':_0x434ffc===h[_0x5d27b9(0x1bb)],'className':_0x5d27b9(0x210),'overlay':_0x2ca145(Re,{'status':_0x434ffc,'coordinator':_0x389043}),'children':_0x2ca145(_0x5d27b9(0x172),{'className':_0x9a7ef5(_0x5d27b9(0x16a),{'univer-cursor-not-allowed':_0x434ffc===h[_0x5d27b9(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x434ffc!==h[_0x5d27b9(0x1bb)]}),'type':_0x5d27b9(0x172),'children':_0x2ca145(B,{'className':_0x5d27b9(0x201)})})}):null;}function Re(_0x14a21e){var _0x1f65ec=_0x421f7a;const {status:_0x1844cd,coordinator:_0xf0ac31}=_0x14a21e;switch(_0x1844cd){case h[_0x1f65ec(0x1d6)]:return _0x2ca145(Pe,{'coordinator':_0xf0ac31});case h[_0x1f65ec(0x1c2)]:return _0x2ca145(Ae,{'coordinator':_0xf0ac31});case h[_0x1f65ec(0x1fd)]:return _0x2ca145(Te,{'coordinator':_0xf0ac31});case h['OFFLINE']:return _0x2ca145(Fe,{});case h[_0x1f65ec(0x1ca)]:return _0x2ca145($e,{'coordinator':_0xf0ac31});default:return null;}}function Pe(_0x21fb35){var _0x528a3d=_0x421f7a;const {coordinator:_0x33f64e}=_0x21fb35;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145('div',{'className':_0x528a3d(0x1c7),'children':_0x528a3d(0x1b8)}),_0x2ca145(_0x47729a,{'onClick':()=>_0x33f64e[_0x528a3d(0x1b3)](),'children':_0x528a3d(0x1fb)})]});}function Ae(_0x3f254f){var _0x27377c=_0x421f7a;const {coordinator:_0x5a0829}=_0x3f254f;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x27377c(0x1ae),{'className':_0x27377c(0x1c7),'children':_0x27377c(0x1bc)}),_0x2ca145(_0x47729a,{'onClick':()=>_0x5a0829[_0x27377c(0x193)](),'children':_0x27377c(0x1f8)})]});}function Te(_0x1b6d50){var _0x48f60c=_0x421f7a;const {coordinator:_0x2d40c7}=_0x1b6d50;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x48f60c(0x1ae),{'className':_0x48f60c(0x1c7),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2ca145(_0x47729a,{'variant':_0x48f60c(0x198),'onClick':()=>_0x2d40c7['startFollowing'](),'children':_0x48f60c(0x205)})]});}function _0x4030(_0x306a91,_0x412983){var _0x326c70=_0x326c();return _0x4030=function(_0x4030e4,_0x337e69){_0x4030e4=_0x4030e4-0x15b;var _0x419c2c=_0x326c70[_0x4030e4];return _0x419c2c;},_0x4030(_0x306a91,_0x412983);}function $e(_0x3199be){var _0x37518e=_0x421f7a;const {coordinator:_0x8afd8e}=_0x3199be;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x37518e(0x1ae),{'className':_0x37518e(0x1c7),'children':_0x37518e(0x1ec)}),_0x2ca145(_0x47729a,{'variant':_0x37518e(0x1e9),'onClick':()=>_0x8afd8e[_0x37518e(0x195)](),'children':_0x37518e(0x1b0)})]});}function Fe(){var _0x4f1b44=_0x421f7a;return _0x2ca145(_0x38862d,{'children':_0x4f1b44(0x15e)});}function _0x326c(){var _0xf57f39=['requireSession','http://www.w3.org/2000/svg','send','offline','_handleOperation','pluginName','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','params','getTypeOfUnitDisposed$','hasOwnProperty','You\x27are\x20offline.','substring','executeCommand','_liveShareService','mutations','setConfig','getLiveShareCoordinator','_handleNewHost','pipe','defs','_collabSession','shouldShareOperation','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','trim','forEach','attrs','mask','0\x200\x2017\x2017','UNIVER_LIVE_SHARE_PLUGIN','current','button','onCommandExecuted','_unitID','disposeWithMe','className','currentColor','_presenter','has','_stopPresenting','1em','defineProperty','presenting','UNIVER_UNKNOWN','_startPresenting','displayName','_mountLiveShare','_startFollowing','_init','_startLiveShareCoordinator','LiveShareIcon','_handleNewChangeSets','url(#$1','children','complete','LIVESHARE_REQUEST_HOST','univerjs-icon\x20univerjs-icon-','stringify','OPERATION','following','6424EmtJrw','idSuffix','70SbgAfy','_beIdle','stopFollowing','from','stopPresenting','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_univerInstanceService','text','_reporters','registerInitialStateReporter','dispose','then','not-following','onStarting','none','presenter','onRendered','dispose$','init','getCurrentTypeOfUnit$','values','1818530RpOJEz','56IwtrLP','live-share-icon','_configService','parse','_config','length','ONLINE','div','string','Stop\x20presenting','xlink:href','LIVESHARE_OPERATION','tryStartPresenting','_stopFollowing','next','sheet','_injector','Present\x20this\x20document','path','function','OFFLINE','You\x27re\x20following\x20the\x20presenter','status$','set','getUnitId','map','add','FOLLOWING','LIVESHARE_FETCH_OPERATIONS','call','type','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','_uiPartsService','_sharedOperations','PRESENTING','UniverIcon','subscribe','random','get','getOwnPropertyDescriptor','_handleOffline','_status','entries','delete','getOwnPropertySymbols','memberID','IDLE','concat','getMemberID','prototype','icon','use','evenodd','createInstance','getValue','clear','indexOf','_status$','_commandService','_commandDisposable','propertyIsEnumerable','246Jsqpcs','replace','356363GhteUp','tag','default','getConfig','idle','You\x27re\x20presenting\x20the\x20document','svg','end','_collabSessionService','data','_handleOnline','_entities','696978eUFEHO','SAME_OPERATION_SHARE_INTERVAL','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','31892SjUagm','reverse','Stop\x20following','registerSharedOperation','2911860dMllIk','Start','_fetchOperations','NOT_FOLLOWING','LIVESHARE_NEW_HOST','colorChannel1','defIds','univer-size-4','2271762WbyTMA','LIVESHARE_TERMINATE','extend','Start\x20following','startFollowing','_handleTerminate','asObservable','getInitialStates'];_0x326c=function(){return _0xf57f39;};return _0x326c();}var He=Object[_0x421f7a(0x1cf)],je=(_0x3c04da,_0x37218a,_0x5a3a43,_0x1287e5)=>{var _0x360b04=_0x421f7a;for(var _0x1986a9=_0x1287e5>0x1?void 0x0:_0x1287e5?He(_0x37218a,_0x5a3a43):_0x37218a,_0x4e1cb7=_0x3c04da[_0x360b04(0x1ac)]-0x1,_0x10d972;_0x4e1cb7>=0x0;_0x4e1cb7--)(_0x10d972=_0x3c04da[_0x4e1cb7])&&(_0x1986a9=_0x10d972(_0x1986a9)||_0x1986a9);return _0x1986a9;},T=(_0x4674e6,_0x599426)=>(_0x4f9bf6,_0x55b59e)=>_0x599426(_0x4f9bf6,_0x55b59e,_0x4674e6);let I=class extends _0x2abf63{constructor(_0x2242bf,_0x1d293b){var _0x1b7628=_0x421f7a;super(),this['_injector']=_0x2242bf,this[_0x1b7628(0x1c8)]=_0x1d293b,this['_mountLiveShare']();}[_0x421f7a(0x181)](){var _0x5b2334=_0x421f7a;this['disposeWithMe'](this[_0x5b2334(0x1c8)]['registerComponent'](_0x1697f8['HEADER_MENU'],()=>_0x10655a(ye,this['_injector'])));}};I=je([T(0x0,_0x4b4c18(_0x12ff87)),T(0x1,_0x1c1d17)],I);const Ue='live-share.config',$={};var Ve=Object[_0x421f7a(0x1cf)],Me=(_0x458916,_0x3113ad,_0x5ed17d,_0x1e4067)=>{var _0x504ccb=_0x421f7a;for(var _0xd92874=_0x1e4067>0x1?void 0x0:_0x1e4067?Ve(_0x3113ad,_0x5ed17d):_0x3113ad,_0x4b0548=_0x458916[_0x504ccb(0x1ac)]-0x1,_0x3f9f1d;_0x4b0548>=0x0;_0x4b0548--)(_0x3f9f1d=_0x458916[_0x4b0548])&&(_0xd92874=_0x3f9f1d(_0xd92874)||_0xd92874);return _0xd92874;},ke=(_0x2d82b5,_0x2b2085)=>(_0x3c0c6c,_0x703a12)=>_0x2b2085(_0x3c0c6c,_0x703a12,_0x2d82b5);let b=class extends _0x2abf63{constructor(_0x4a0b2f){var _0xcd0733=_0x421f7a;super(),this[_0xcd0733(0x161)]=_0x4a0b2f,this['_init']();}['_init'](){var _0x4a2323=_0x421f7a;[_0x192820['id'],_0x27f0c3['id'],_0x278948['id']][_0x4a2323(0x16c)](_0x351165=>{var _0x5cb253=_0x4a2323;this[_0x5cb253(0x175)](this[_0x5cb253(0x161)]['registerSharedOperation'](_0x351165));});}};b=Me([ke(0x0,_0x4b4c18(L))],b);var Ge=Object[_0x421f7a(0x17c)],We=Object[_0x421f7a(0x1cf)],Ye=(_0x245414,_0x5aacc1,_0x2c161c)=>_0x5aacc1 in _0x245414?Ge(_0x245414,_0x5aacc1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c161c}):_0x245414[_0x5aacc1]=_0x2c161c,Be=(_0x34e825,_0x558721,_0x589f59,_0xe42e39)=>{var _0x28eea9=_0x421f7a;for(var _0x3a4bc3=_0xe42e39>0x1?void 0x0:_0xe42e39?We(_0x558721,_0x589f59):_0x558721,_0x1bd8c4=_0x34e825[_0x28eea9(0x1ac)]-0x1,_0x50950e;_0x1bd8c4>=0x0;_0x1bd8c4--)(_0x50950e=_0x34e825[_0x1bd8c4])&&(_0x3a4bc3=_0x50950e(_0x3a4bc3)||_0x3a4bc3);return _0x3a4bc3;},F=(_0x1208ef,_0x2de1d7)=>(_0x4e919e,_0x216c68)=>_0x2de1d7(_0x4e919e,_0x216c68,_0x1208ef),J=(_0x151eb4,_0x596286,_0x50871c)=>Ye(_0x151eb4,typeof _0x596286!='symbol'?_0x596286+'':_0x596286,_0x50871c);const Ze=_0x421f7a(0x170);let O=class extends _0x525e5f{constructor(_0x495180=$,_0x82b44c,_0x931c70){var _0x5be256=_0x421f7a;super(),this[_0x5be256(0x1ab)]=_0x495180,this[_0x5be256(0x1b7)]=_0x82b44c,this['_configService']=_0x931c70;const {..._0x5eff2b}=_0x53247a({},$,this[_0x5be256(0x1ab)]);this[_0x5be256(0x1a9)][_0x5be256(0x163)](Ue,_0x5eff2b);}[_0x421f7a(0x19e)](){var _0x23f1a2=_0x421f7a;_0x3bf986(this['_injector'],_0x184474([[L],[m],[b],[I]],this[_0x23f1a2(0x1ab)]['override'])),_0x10bb21(this['_injector'],[[b]]);}[_0x421f7a(0x1a1)](){_0x10bb21(this['_injector'],[[I]]);}};J(O,'type',_0x3234f9[_0x421f7a(0x17e)]),J(O,_0x421f7a(0x20f),Ze),O=Be([_0x242f70(_0x4057a8),F(0x1,_0x4b4c18(_0x12ff87)),F(0x2,_0x283dc5)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x51e3(_0x212fee,_0x5cec05){var _0x1dcd12=_0x1dcd();return _0x51e3=function(_0x51e36e,_0x16149f){_0x51e36e=_0x51e36e-0x190;var _0x7f0ef=_0x1dcd12[_0x51e36e];return _0x7f0ef;},_0x51e3(_0x212fee,_0x5cec05);}(function(_0x52f06e,_0x461b7c){var _0x4ff32b=_0x51e3,_0x45c1af=_0x52f06e();while(!![]){try{var _0x6c93ad=parseInt(_0x4ff32b(0x283))/0x1+-parseInt(_0x4ff32b(0x235))/0x2+parseInt(_0x4ff32b(0x209))/0x3*(parseInt(_0x4ff32b(0x1bb))/0x4)+-parseInt(_0x4ff32b(0x1d3))/0x5+parseInt(_0x4ff32b(0x236))/0x6*(parseInt(_0x4ff32b(0x213))/0x7)+parseInt(_0x4ff32b(0x26f))/0x8*(parseInt(_0x4ff32b(0x222))/0x9)+-parseInt(_0x4ff32b(0x264))/0xa*(parseInt(_0x4ff32b(0x23e))/0xb);if(_0x6c93ad===_0x461b7c)break;else _0x45c1af['push'](_0x45c1af['shift']());}catch(_0x3dc0a0){_0x45c1af['push'](_0x45c1af['shift']());}}}(_0x1dcd,0x90211),function(_0x5f20be,_0x3024a9){var _0xb2ab9b=_0x51e3;typeof exports=='object'&&typeof module<'u'?_0x3024a9(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0xb2ab9b(0x224)&&define['amd']?define([_0xb2ab9b(0x195),'@univerjs/core',_0xb2ab9b(0x234),_0xb2ab9b(0x280),_0xb2ab9b(0x1c5),_0xb2ab9b(0x27b),'@univerjs-pro/collaboration',_0xb2ab9b(0x21e),_0xb2ab9b(0x1fb),_0xb2ab9b(0x27a),'rxjs/operators',_0xb2ab9b(0x22e)],_0x3024a9):(_0x5f20be=typeof globalThis<'u'?globalThis:_0x5f20be||self,_0x3024a9(_0x5f20be[_0xb2ab9b(0x247)]={},_0x5f20be[_0xb2ab9b(0x266)],_0x5f20be[_0xb2ab9b(0x228)],_0x5f20be[_0xb2ab9b(0x1ad)],_0x5f20be[_0xb2ab9b(0x239)],_0x5f20be[_0xb2ab9b(0x1ad)],_0x5f20be[_0xb2ab9b(0x24f)],_0x5f20be[_0xb2ab9b(0x1e5)],_0x5f20be[_0xb2ab9b(0x19f)],_0x5f20be[_0xb2ab9b(0x27a)],_0x5f20be[_0xb2ab9b(0x27a)][_0xb2ab9b(0x1db)],_0x5f20be[_0xb2ab9b(0x284)]));}(this,function(_0xefd987,_0x247859,_0x394c3e,_0xf2518d,_0x4fea6f,_0x164584,_0x3afe45,_0x36dcec,_0x5ad2a1,_0x1ea32c,_0x3c4560,_0x18f510){'use strict';var _0x27b7d6=_0x51e3;var _0x1da02f=Object['defineProperty'],_0x4150be=(_0x365fc9,_0xc0416d,_0x2027b6)=>_0xc0416d in _0x365fc9?_0x1da02f(_0x365fc9,_0xc0416d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2027b6}):_0x365fc9[_0xc0416d]=_0x2027b6,_0x447fc5=(_0x4b2890,_0x4bbb19,_0x20a212)=>_0x4150be(_0x4b2890,typeof _0x4bbb19!=_0x27b7d6(0x191)?_0x4bbb19+'':_0x4bbb19,_0x20a212),_0x2d246d=function(){var _0x23de80=_0x27b7d6;return _0x2d246d=Object[_0x23de80(0x25c)]||function(_0x29b5d0){var _0xf56db8=_0x23de80;for(var _0x5be9ad,_0x379924=0x1,_0x429d0a=arguments[_0xf56db8(0x256)];_0x379924<_0x429d0a;_0x379924++){_0x5be9ad=arguments[_0x379924];for(var _0x286282 in _0x5be9ad)Object[_0xf56db8(0x23d)][_0xf56db8(0x1a9)][_0xf56db8(0x20a)](_0x5be9ad,_0x286282)&&(_0x29b5d0[_0x286282]=_0x5be9ad[_0x286282]);}return _0x29b5d0;},_0x2d246d[_0x23de80(0x245)](this,arguments);},_0x2d2521=function(_0xf460cd,_0x289379){var _0x354b14=_0x27b7d6,_0x3f33b7={};for(var _0x2e9032 in _0xf460cd)Object[_0x354b14(0x23d)][_0x354b14(0x1a9)]['call'](_0xf460cd,_0x2e9032)&&_0x289379[_0x354b14(0x1bf)](_0x2e9032)<0x0&&(_0x3f33b7[_0x2e9032]=_0xf460cd[_0x2e9032]);if(_0xf460cd!=null&&typeof Object['getOwnPropertySymbols']==_0x354b14(0x224)){for(var _0x35c51d=0x0,_0x2e9032=Object[_0x354b14(0x19c)](_0xf460cd);_0x35c51d<_0x2e9032['length'];_0x35c51d++)_0x289379[_0x354b14(0x1bf)](_0x2e9032[_0x35c51d])<0x0&&Object['prototype'][_0x354b14(0x1a8)]['call'](_0xf460cd,_0x2e9032[_0x35c51d])&&(_0x3f33b7[_0x2e9032[_0x35c51d]]=_0xf460cd[_0x2e9032[_0x35c51d]]);}return _0x3f33b7;},_0x14f23e=_0x164584[_0x27b7d6(0x1f4)](function(_0x5a2eea,_0x59e858){var _0x43c3b8=_0x27b7d6,_0x2a46f1=_0x5a2eea[_0x43c3b8(0x19d)],_0x21166e=_0x5a2eea['id'],_0x3d601a=_0x5a2eea[_0x43c3b8(0x1b1)],_0xa53116=_0x5a2eea[_0x43c3b8(0x272)],_0x30a495=_0x2d2521(_0x5a2eea,['icon','id','className',_0x43c3b8(0x272)]),_0x49d18e=_0x43c3b8(0x1e7)[_0x43c3b8(0x1d8)](_0x21166e,'\x20')[_0x43c3b8(0x1d8)](_0x3d601a||'')['trim'](),_0x2faf57=_0x164584[_0x43c3b8(0x1ec)]('_'[_0x43c3b8(0x1d8)](_0x4da2cd()));return _0x33d7b9(_0x2a46f1,''['concat'](_0x21166e),{'defIds':_0x2a46f1['defIds'],'idSuffix':_0x2faf57[_0x43c3b8(0x1c6)]},_0x2d246d({'ref':_0x59e858,'className':_0x49d18e},_0x30a495),_0xa53116);});function _0x33d7b9(_0xeded36,_0x952c2e,_0x219b14,_0x59cbb1,_0x443bca){var _0x2783e1=_0x27b7d6;return _0x164584[_0x2783e1(0x1a7)](_0xeded36['tag'],_0x2d246d(_0x2d246d({'key':_0x952c2e},_0x4f560b(_0xeded36,_0x219b14,_0x443bca)),_0x59cbb1),(_0x396b79(_0xeded36,_0x219b14)[_0x2783e1(0x1b9)]||[])[_0x2783e1(0x1f7)](function(_0xb59bdc,_0x3cbae8){var _0x49231d=_0x2783e1;return _0x33d7b9(_0xb59bdc,''[_0x49231d(0x1d8)](_0x952c2e,'-')['concat'](_0xeded36[_0x49231d(0x265)],'-')[_0x49231d(0x1d8)](_0x3cbae8),_0x219b14,void 0x0,_0x443bca);}));}function _0x4f560b(_0x5639ce,_0x182397,_0x483013){var _0x2467ca=_0x27b7d6,_0x2246ce=_0x2d246d({},_0x5639ce[_0x2467ca(0x27c)]);_0x483013!=null&&_0x483013['colorChannel1']&&_0x2246ce[_0x2467ca(0x20b)]===_0x2467ca(0x1d4)&&(_0x2246ce[_0x2467ca(0x20b)]=_0x483013[_0x2467ca(0x1d4)]),_0x5639ce[_0x2467ca(0x265)]===_0x2467ca(0x1f0)&&_0x2246ce['id']&&(_0x2246ce['id']=_0x2246ce['id']+_0x182397[_0x2467ca(0x1fa)]),Object['entries'](_0x2246ce)[_0x2467ca(0x22a)](function(_0x2903c9){var _0x4d09ce=_0x2467ca,_0x12a763=_0x2903c9[0x0],_0x318f3e=_0x2903c9[0x1];_0x12a763===_0x4d09ce(0x1f0)&&typeof _0x318f3e=='string'&&(_0x2246ce[_0x12a763]=_0x318f3e['replace'](/url\(#(.*)\)/,'url(#$1'[_0x4d09ce(0x1d8)](_0x182397[_0x4d09ce(0x1fa)],')')));});var _0x3eabb3=_0x182397[_0x2467ca(0x233)];return!_0x3eabb3||_0x3eabb3[_0x2467ca(0x256)]===0x0||(_0x5639ce[_0x2467ca(0x265)]==='use'&&_0x2246ce[_0x2467ca(0x1d0)]&&(_0x2246ce[_0x2467ca(0x1d0)]=_0x2246ce[_0x2467ca(0x1d0)]+_0x182397[_0x2467ca(0x1fa)]),Object[_0x2467ca(0x1af)](_0x2246ce)[_0x2467ca(0x22a)](function(_0x33d932){var _0x58ae9a=_0x2467ca,_0x7537b7=_0x33d932[0x0],_0x4b6496=_0x33d932[0x1];typeof _0x4b6496==_0x58ae9a(0x254)&&(_0x2246ce[_0x7537b7]=_0x4b6496[_0x58ae9a(0x237)](/url\(#(.*)\)/,_0x58ae9a(0x1d5)[_0x58ae9a(0x1d8)](_0x182397[_0x58ae9a(0x1fa)],')')));})),_0x2246ce;}function _0x396b79(_0xa4d303,_0xfac687){var _0x39a693=_0x27b7d6,_0x2ade26,_0x2078a8=_0xfac687['defIds'];return!_0x2078a8||_0x2078a8['length']===0x0?_0xa4d303:_0xa4d303['tag']==='defs'&&(!((_0x2ade26=_0xa4d303[_0x39a693(0x1b9)])===null||_0x2ade26===void 0x0)&&_0x2ade26[_0x39a693(0x256)])?_0x2d246d(_0x2d246d({},_0xa4d303),{'children':_0xa4d303[_0x39a693(0x1b9)][_0x39a693(0x1f7)](function(_0x70b79c){var _0x4f751f=_0x39a693;return typeof _0x70b79c[_0x4f751f(0x27c)]['id']==_0x4f751f(0x254)&&_0x2078a8&&_0x2078a8[_0x4f751f(0x223)](_0x70b79c[_0x4f751f(0x27c)]['id'])?_0x2d246d(_0x2d246d({},_0x70b79c),{'attrs':_0x2d246d(_0x2d246d({},_0x70b79c[_0x4f751f(0x27c)]),{'id':_0x70b79c[_0x4f751f(0x27c)]['id']+_0xfac687['idSuffix']})}):_0x70b79c;})}):_0xa4d303;}function _0x4da2cd(){var _0x5a367c=_0x27b7d6;return Math[_0x5a367c(0x1e0)]()[_0x5a367c(0x263)](0x24)[_0x5a367c(0x217)](0x2,0x8);}_0x14f23e[_0x27b7d6(0x1e6)]=_0x27b7d6(0x269);var _0x1c9d5a={'tag':_0x27b7d6(0x1cb),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x27b7d6(0x1fd),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x27b7d6(0x25f)},'children':[{'tag':'path','attrs':{'fill':_0x27b7d6(0x278),'d':_0x27b7d6(0x273)}},{'tag':_0x27b7d6(0x24e),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x27b7d6(0x194),'clipRule':'evenodd'}}]},_0x48e749=_0x164584[_0x27b7d6(0x1f4)](function(_0x2489ce,_0x1fa8fa){var _0x4a80e7=_0x27b7d6;return _0x164584['createElement'](_0x14f23e,Object['assign']({},_0x2489ce,{'id':_0x4a80e7(0x196),'ref':_0x1fa8fa,'icon':_0x1c9d5a}));});_0x48e749[_0x27b7d6(0x1e6)]=_0x27b7d6(0x21c);class _0x256e53 extends _0x247859['Disposable']{constructor(){var _0x431282=_0x27b7d6;super(...arguments),_0x447fc5(this,_0x431282(0x1bd),new Set()),_0x447fc5(this,_0x431282(0x1e9),new Set());}[_0x27b7d6(0x1aa)](_0x20bd10){var _0x47538e=_0x27b7d6;return this[_0x47538e(0x1bd)][_0x47538e(0x1df)](_0x20bd10),_0x247859[_0x47538e(0x197)](()=>this[_0x47538e(0x1bd)][_0x47538e(0x24a)](_0x20bd10));}[_0x27b7d6(0x276)](_0x5baa37){var _0x1db5a9=_0x27b7d6;return this[_0x1db5a9(0x1e9)][_0x1db5a9(0x1df)](_0x5baa37),_0x247859[_0x1db5a9(0x197)](()=>this[_0x1db5a9(0x1e9)][_0x1db5a9(0x24a)](_0x5baa37));}[_0x27b7d6(0x20d)](_0x628f90){return this['_sharedOperations']['has'](_0x628f90);}[_0x27b7d6(0x279)](_0x4d675c){var _0x28c3f1=_0x27b7d6;return Array[_0x28c3f1(0x1cf)](this[_0x28c3f1(0x1e9)])[_0x28c3f1(0x1f7)](_0x57610c=>_0x57610c(_0x4d675c));}}var _0x12797f=Object[_0x27b7d6(0x1ea)],_0x2a0ac2=(_0x377914,_0x24893d,_0x81032b,_0x1bdd7e)=>{for(var _0x4e632f=_0x1bdd7e>0x1?void 0x0:_0x1bdd7e?_0x12797f(_0x24893d,_0x81032b):_0x24893d,_0x4558b4=_0x377914['length']-0x1,_0x221689;_0x4558b4>=0x0;_0x4558b4--)(_0x221689=_0x377914[_0x4558b4])&&(_0x4e632f=_0x221689(_0x4e632f)||_0x4e632f);return _0x4e632f;},_0x5433ad=(_0x33801c,_0x5beecc)=>(_0x57869b,_0x286481)=>_0x5beecc(_0x57869b,_0x286481,_0x33801c);_0xefd987[_0x27b7d6(0x21b)]=class extends _0x247859[_0x27b7d6(0x216)]{constructor(_0x3b7c58,_0x237c9a,_0x440258){var _0x2a3349=_0x27b7d6;super(),_0x447fc5(this,_0x2a3349(0x211),new Map()),(this['_univerInstanceService']=_0x3b7c58,this[_0x2a3349(0x1b3)]=_0x237c9a,this[_0x2a3349(0x24b)]=_0x440258,this['_init']());}async['getLiveShareCoordinator'](_0x5b22f8){var _0x56d5d2=_0x27b7d6;return this['_entities'][_0x56d5d2(0x23b)](_0x5b22f8)||await this[_0x56d5d2(0x1c8)](_0x5b22f8),this[_0x56d5d2(0x211)][_0x56d5d2(0x22f)](_0x5b22f8);}[_0x27b7d6(0x1ae)](){var _0x23543b=_0x27b7d6;this[_0x23543b(0x21f)][_0x23543b(0x210)](_0x247859['UniverInstanceType']['UNIVER_SHEET'])[_0x23543b(0x232)](_0x3c4560[_0x23543b(0x287)](this[_0x23543b(0x1e4)]))[_0x23543b(0x1b0)](async _0x3ea472=>{var _0x492fac=_0x23543b;const _0x5ac935=_0x3ea472[_0x492fac(0x230)]();this[_0x492fac(0x211)]['has'](_0x5ac935)||this[_0x492fac(0x1c8)](_0x5ac935);}),this[_0x23543b(0x21f)][_0x23543b(0x1a2)](_0x247859[_0x23543b(0x281)][_0x23543b(0x1f1)])[_0x23543b(0x232)](_0x3c4560[_0x23543b(0x287)](this[_0x23543b(0x1e4)]))[_0x23543b(0x1b0)](_0x19108b=>{var _0xb3e5d6=_0x23543b;const _0x842b92=_0x19108b[_0xb3e5d6(0x230)](),_0x225e8f=this[_0xb3e5d6(0x211)]['get'](_0x842b92);_0x225e8f==null||_0x225e8f['dispose']();});}async[_0x27b7d6(0x1c8)](_0x31cb60){var _0x5c4147=_0x27b7d6;const _0x312e3d=await this[_0x5c4147(0x24b)][_0x5c4147(0x238)](_0x31cb60),_0x2d724c=this[_0x5c4147(0x1b3)][_0x5c4147(0x1b5)](_0xefd987[_0x5c4147(0x199)],_0x31cb60,_0x312e3d);return _0x2d724c[_0x5c4147(0x193)](),this[_0x5c4147(0x211)][_0x5c4147(0x192)](_0x31cb60,_0x2d724c),_0x2d724c;}},_0xefd987[_0x27b7d6(0x21b)]=_0x2a0ac2([_0x5433ad(0x0,_0x247859[_0x27b7d6(0x1ab)]),_0x5433ad(0x1,_0x247859[_0x27b7d6(0x1d2)](_0x247859[_0x27b7d6(0x1d9)])),_0x5433ad(0x2,_0x247859[_0x27b7d6(0x1d2)](_0x36dcec[_0x27b7d6(0x248)]))],_0xefd987['LiveShareController']);var _0x5c9637=(_0x4c1d72=>(_0x4c1d72[_0x27b7d6(0x270)]=_0x27b7d6(0x218),_0x4c1d72['IDLE']=_0x27b7d6(0x241),_0x4c1d72[_0x27b7d6(0x1c2)]=_0x27b7d6(0x288),_0x4c1d72['NOT_FOLLOWING']=_0x27b7d6(0x19b),_0x4c1d72[_0x27b7d6(0x231)]=_0x27b7d6(0x1dd),_0x4c1d72))(_0x5c9637||{});const _0x2fcd54=_0x27b7d6(0x219),_0x41226d=0xc8;_0xefd987['LiveShareCoordinator']=class extends _0x247859[_0x27b7d6(0x216)]{constructor(_0x38cc4a,_0x48999f,_0x5be525,_0xffce6d,_0x4a497e){var _0x24f253=_0x27b7d6;super(),_0x447fc5(this,_0x24f253(0x212),new _0x1ea32c[(_0x24f253(0x27f))](_0x24f253(0x241))),_0x447fc5(this,_0x24f253(0x1a1),this['_status$'][_0x24f253(0x1e1)]()),_0x447fc5(this,'_init',!0x1),_0x447fc5(this,_0x24f253(0x22d),null),_0x447fc5(this,_0x24f253(0x26c),null),(this['_unitID']=_0x38cc4a,this[_0x24f253(0x27e)]=_0x48999f,this[_0x24f253(0x1f3)]=_0x5be525,this['_liveShareService']=_0xffce6d,this[_0x24f253(0x25d)]=_0x4a497e);}get['_status'](){var _0x3622fc=_0x27b7d6;return this[_0x3622fc(0x212)][_0x3622fc(0x1c0)]();}[_0x27b7d6(0x1f9)](){var _0x3ad4a7=_0x27b7d6,_0x227424;(_0x227424=this[_0x3ad4a7(0x22d)])==null||_0x227424[_0x3ad4a7(0x1f9)](),this[_0x3ad4a7(0x212)][_0x3ad4a7(0x1da)](_0x3ad4a7(0x241)),this[_0x3ad4a7(0x212)]['complete']();}['init'](){var _0x533d97=_0x27b7d6;this[_0x533d97(0x1ae)]||(this['_init']=!0x0,this[_0x533d97(0x27e)]['sessionStatus$']['pipe'](_0x3c4560[_0x533d97(0x287)](this[_0x533d97(0x1e4)]))[_0x533d97(0x1b0)](_0x1639d8=>{var _0x8307f9=_0x533d97;switch(_0x1639d8){case _0x36dcec[_0x8307f9(0x258)][_0x8307f9(0x270)]:this[_0x8307f9(0x1ba)]();break;case _0x36dcec[_0x8307f9(0x258)][_0x8307f9(0x23c)]:this[_0x8307f9(0x21a)]();break;}}),this[_0x533d97(0x27e)][_0x533d97(0x253)]['pipe'](_0x3c4560[_0x533d97(0x287)](this['dispose$']))['subscribe'](_0x615302=>{var _0x1491f9=_0x533d97;const {eventID:_0x137b34}=_0x615302;switch(_0x137b34){case _0x3afe45['CollaborationEvent'][_0x1491f9(0x1b4)]:this['_handleNewHost'](_0x615302);break;case _0x3afe45[_0x1491f9(0x221)][_0x1491f9(0x1dc)]:this[_0x1491f9(0x208)](_0x615302);break;case _0x3afe45[_0x1491f9(0x221)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x3afe45['CollaborationEvent'][_0x1491f9(0x1ac)]:this['_handleNewChangeSets'](_0x615302);break;}}));}[_0x27b7d6(0x215)](){var _0x283f6d=_0x27b7d6;this[_0x283f6d(0x27e)][_0x283f6d(0x1f8)]({'eventID':_0x3afe45[_0x283f6d(0x221)][_0x283f6d(0x21d)],'data':{'unitID':this[_0x283f6d(0x244)],'userID':this[_0x283f6d(0x27e)][_0x283f6d(0x1eb)]()}},this['_unitID']);}['stopPresenting'](){var _0x13ecb6=_0x27b7d6;this['_status']===_0x13ecb6(0x1dd)&&(this['_status$'][_0x13ecb6(0x1da)](_0x13ecb6(0x241)),this[_0x13ecb6(0x27e)][_0x13ecb6(0x1f8)]({'eventID':_0x3afe45[_0x13ecb6(0x221)][_0x13ecb6(0x1a3)],'data':{'unitID':this['_unitID']}},this[_0x13ecb6(0x244)]));}[_0x27b7d6(0x23a)](){var _0x4a09f9=_0x27b7d6;this[_0x4a09f9(0x1ed)]==='not-following'&&(this['_status$'][_0x4a09f9(0x1da)]('following'),this[_0x4a09f9(0x1c4)]());}['stopFollowing'](){var _0xc4648f=_0x27b7d6;this[_0xc4648f(0x1ed)]==='following'&&this[_0xc4648f(0x242)]();}[_0x27b7d6(0x225)](_0x2561cd){var _0x143af7=_0x27b7d6;const {presenter:_0xaa586c}=_0x2561cd['data'],_0x5c21a0=this[_0x143af7(0x27e)][_0x143af7(0x1eb)]();this['_presenter']=_0xaa586c,_0xaa586c===_0x5c21a0?(this[_0x143af7(0x242)](),this[_0x143af7(0x286)]()):this[_0x143af7(0x1ed)]!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}['_fetchOperations'](){var _0x3e1fbb=_0x27b7d6;const _0x3eea05={'eventID':_0x3afe45[_0x3e1fbb(0x221)][_0x3e1fbb(0x261)]};this['_collabSession'][_0x3e1fbb(0x1f8)](_0x3eea05,this[_0x3e1fbb(0x244)]);}[_0x27b7d6(0x1d7)](){var _0x2a9f51=_0x27b7d6;this[_0x2a9f51(0x26c)]=null,this[_0x2a9f51(0x1ed)]!==_0x2a9f51(0x1dd)&&this[_0x2a9f51(0x1cd)]();}[_0x27b7d6(0x1c3)](_0x113fd7){var _0x167d7f=_0x27b7d6;if(this[_0x167d7f(0x1ed)]===_0x167d7f(0x288)&&this['_presenter']===_0x113fd7[_0x167d7f(0x26e)]['memberID']){const _0x20e74f=_0x3afe45['parseProtocolChangeset'](_0x113fd7[_0x167d7f(0x26e)])[_0x167d7f(0x257)][_0x167d7f(0x1b6)]()[_0x167d7f(0x22c)](_0x5f51dc=>_0x5f51dc['id']===_0x5ad2a1[_0x167d7f(0x1c9)]['id']);if(_0x20e74f){const _0x806c86=_0x20e74f[_0x167d7f(0x206)][_0x167d7f(0x1a0)],_0x7a4d6b=_0x20e74f[_0x167d7f(0x206)][_0x167d7f(0x214)]['id'];setTimeout(()=>{var _0x31f9d7=_0x167d7f;this['_commandService'][_0x31f9d7(0x1ca)](_0x5ad2a1[_0x31f9d7(0x250)]['id'],{'unitId':_0x806c86,'subUnitId':_0x7a4d6b},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xaff79e=_0x27b7d6;this[_0xaff79e(0x212)]['next'](_0xaff79e(0x1dd));const _0x187ed7=new Map(),_0x58546b=this['_commandDisposable']=new _0x247859['DisposableCollection']();_0x58546b[_0xaff79e(0x1df)](_0x247859['toDisposable'](()=>{var _0x564eee=_0xaff79e;_0x187ed7[_0x564eee(0x22a)](_0x2c2d46=>_0x2c2d46[_0x564eee(0x251)]()),_0x187ed7[_0x564eee(0x205)]();})),_0x58546b['add'](this[_0xaff79e(0x25d)]['onCommandExecuted'](_0x16631f=>{var _0xd6f761=_0xaff79e,_0x102d76;if(_0x16631f[_0xd6f761(0x1c1)]!==_0x247859[_0xd6f761(0x25b)][_0xd6f761(0x246)]||!this['_liveShareService'][_0xd6f761(0x20d)](_0x16631f['id']))return;const {id:_0x9d7fb5}=_0x16631f;let _0x57c00b;_0x187ed7[_0xd6f761(0x23b)](_0x9d7fb5)?_0x57c00b=_0x187ed7[_0xd6f761(0x22f)](_0x9d7fb5):(_0x57c00b=new _0x1ea32c[(_0xd6f761(0x268))](),_0x187ed7['set'](_0x9d7fb5,_0x57c00b),_0x57c00b['pipe'](_0x3c4560[_0xd6f761(0x19a)]((_0x102d76=this[_0xd6f761(0x1f3)][_0xd6f761(0x1f5)](_0x2fcd54))!=null?_0x102d76:_0x41226d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xd6f761(0x1b0)](_0x46c6c3=>{var _0x3ecca6=_0xd6f761;this[_0x3ecca6(0x27e)][_0x3ecca6(0x1f8)]({'eventID':_0x3afe45[_0x3ecca6(0x221)][_0x3ecca6(0x1dc)],'data':{'unitID':this[_0x3ecca6(0x244)],'operations':{[_0x46c6c3['id']]:{'id':_0x46c6c3['id'],'params':JSON[_0x3ecca6(0x275)](_0x46c6c3[_0x3ecca6(0x206)])}}}},this[_0x3ecca6(0x244)]);})),_0x57c00b['next'](_0x16631f);})),this[_0xaff79e(0x220)]['getInitialStates'](this[_0xaff79e(0x244)])[_0xaff79e(0x22a)](_0xd3b4d6=>this[_0xaff79e(0x27e)]['send']({'eventID':_0x3afe45[_0xaff79e(0x221)][_0xaff79e(0x1dc)],'data':{'unitID':this[_0xaff79e(0x244)],'operations':{[_0xd3b4d6['id']]:{'id':_0xd3b4d6['id'],'params':JSON[_0xaff79e(0x275)](_0xd3b4d6[_0xaff79e(0x206)])}}}},this[_0xaff79e(0x244)]));}[_0x27b7d6(0x255)](){var _0x5b88f9=_0x27b7d6,_0x597236;this['_status$'][_0x5b88f9(0x1da)](_0x5b88f9(0x241)),(_0x597236=this[_0x5b88f9(0x22d)])==null||_0x597236[_0x5b88f9(0x1f9)](),this['_commandDisposable']=null;}[_0x27b7d6(0x1c4)](){var _0x37e748=_0x27b7d6,_0x249619;(_0x249619=this[_0x37e748(0x22d)])==null||_0x249619['dispose'](),this[_0x37e748(0x212)][_0x37e748(0x1da)](_0x37e748(0x288));}[_0x27b7d6(0x1cd)](){var _0x3b6548=_0x27b7d6,_0x1f2013;this[_0x3b6548(0x212)]['next']('idle'),(_0x1f2013=this['_commandDisposable'])==null||_0x1f2013[_0x3b6548(0x1f9)](),this[_0x3b6548(0x22d)]=null;}[_0x27b7d6(0x242)](){var _0x45bbe9=_0x27b7d6,_0x55a147;this[_0x45bbe9(0x212)][_0x45bbe9(0x1da)](_0x45bbe9(0x19b)),(_0x55a147=this[_0x45bbe9(0x22d)])==null||_0x55a147[_0x45bbe9(0x1f9)]();}[_0x27b7d6(0x208)](_0x36421b){var _0x51b5a6=_0x27b7d6;if(['presenting','not-following',_0x51b5a6(0x218)]['includes'](this[_0x51b5a6(0x1ed)])||!_0x36421b[_0x51b5a6(0x26e)][_0x51b5a6(0x1c7)]||_0x36421b[_0x51b5a6(0x26e)][_0x51b5a6(0x1c7)]===this['_collabSession']['getMemberID']())return;this[_0x51b5a6(0x1ed)]===_0x51b5a6(0x241)&&this[_0x51b5a6(0x1c4)]();const _0x2a6ea4=_0x36421b[_0x51b5a6(0x26e)][_0x51b5a6(0x243)];Object[_0x51b5a6(0x1a5)](_0x2a6ea4)['forEach'](_0xabfd71=>{var _0x1300d1=_0x51b5a6;this[_0x1300d1(0x25d)]['executeCommand'](_0xabfd71['id'],_0xabfd71[_0x1300d1(0x206)]?JSON[_0x1300d1(0x1ee)](_0xabfd71[_0x1300d1(0x206)]):null,{'fromCollab':!0x0});});}[_0x27b7d6(0x1ba)](){var _0x45552d=_0x27b7d6,_0x4d26fc;this[_0x45552d(0x212)][_0x45552d(0x1da)](_0x45552d(0x218)),(_0x4d26fc=this[_0x45552d(0x22d)])==null||_0x4d26fc[_0x45552d(0x1f9)]();}[_0x27b7d6(0x21a)](){var _0x4a8b99=_0x27b7d6;this[_0x4a8b99(0x212)][_0x4a8b99(0x1da)](_0x4a8b99(0x241)),this[_0x4a8b99(0x25e)]();}},_0xefd987[_0x27b7d6(0x199)]=_0x2a0ac2([_0x5433ad(0x2,_0x247859[_0x27b7d6(0x26b)]),_0x5433ad(0x3,_0x247859['Inject'](_0x256e53)),_0x5433ad(0x4,_0x247859[_0x27b7d6(0x198)])],_0xefd987[_0x27b7d6(0x199)]);function _0x35dbcb(){var _0xa42d46=_0x27b7d6;const _0x1208d8=_0x394c3e[_0xa42d46(0x282)](_0xefd987[_0xa42d46(0x21b)]),_0x9134bf=_0x394c3e['useDependency'](_0x247859[_0xa42d46(0x1ab)]),_0x381498=_0x394c3e[_0xa42d46(0x1e3)](()=>_0x9134bf[_0xa42d46(0x1b8)](_0x247859[_0xa42d46(0x281)][_0xa42d46(0x1f1)]),void 0x0,!0x1,[]),[_0x3a67f4,_0x246319]=_0x164584[_0xa42d46(0x252)](null),[_0x4bef15,_0x2edaa]=_0x164584['useState'](_0x5c9637[_0xa42d46(0x26a)]),_0x156c26=_0x164584[_0xa42d46(0x1ec)](null);return _0x164584['useEffect'](()=>(_0x381498&&_0x1208d8[_0xa42d46(0x20c)](_0x381498[_0xa42d46(0x230)]())[_0xa42d46(0x26d)](_0x2b8aef=>{var _0x232ab4=_0xa42d46;_0x246319(_0x2b8aef),_0x156c26[_0x232ab4(0x1c6)]=_0x2b8aef[_0x232ab4(0x1a1)][_0x232ab4(0x1b0)](_0x5d3af2=>{_0x2edaa(_0x5d3af2);});}),()=>{var _0x1b68b3=_0xa42d46,_0x50288c;(_0x50288c=_0x156c26[_0x1b68b3(0x1c6)])==null||_0x50288c[_0x1b68b3(0x204)](),_0x156c26['current']=null;}),[_0x381498,_0x1208d8]),_0x3a67f4?_0xf2518d[_0xa42d46(0x271)](_0x4fea6f[_0xa42d46(0x226)],{'align':'end','disabled':_0x4bef15===_0x5c9637[_0xa42d46(0x270)],'className':_0xa42d46(0x20f),'overlay':_0xf2518d['jsx'](_0x3d6b3d,{'status':_0x4bef15,'coordinator':_0x3a67f4}),'children':_0xf2518d[_0xa42d46(0x271)](_0xa42d46(0x27d),{'className':_0x4fea6f[_0xa42d46(0x1d6)](_0xa42d46(0x1d1),{'univer-cursor-not-allowed':_0x4bef15===_0x5c9637[_0xa42d46(0x270)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4bef15!==_0x5c9637[_0xa42d46(0x270)]}),'type':'button','children':_0xf2518d[_0xa42d46(0x271)](_0x48e749,{'className':_0xa42d46(0x1be)})})}):null;}function _0x3d6b3d(_0x551d0e){var _0x35ccf7=_0x27b7d6;const {status:_0x7d7b4c,coordinator:_0x343890}=_0x551d0e;switch(_0x7d7b4c){case _0x5c9637['IDLE']:return _0xf2518d[_0x35ccf7(0x271)](_0x442dcc,{'coordinator':_0x343890});case _0x5c9637[_0x35ccf7(0x1c2)]:return _0xf2518d[_0x35ccf7(0x271)](_0x1e1ce7,{'coordinator':_0x343890});case _0x5c9637[_0x35ccf7(0x1b7)]:return _0xf2518d[_0x35ccf7(0x271)](_0x484327,{'coordinator':_0x343890});case _0x5c9637[_0x35ccf7(0x270)]:return _0xf2518d[_0x35ccf7(0x271)](_0xc76d3,{});case _0x5c9637[_0x35ccf7(0x231)]:return _0xf2518d[_0x35ccf7(0x271)](_0x5802fe,{'coordinator':_0x343890});default:return null;}}function _0x442dcc(_0x4bc484){var _0x202529=_0x27b7d6;const {coordinator:_0x55b10c}=_0x4bc484;return _0xf2518d[_0x202529(0x1ef)](_0xf2518d['Fragment'],{'children':[_0xf2518d[_0x202529(0x271)](_0x202529(0x227),{'className':_0x202529(0x190),'children':_0x202529(0x260)}),_0xf2518d[_0x202529(0x271)](_0x4fea6f[_0x202529(0x24d)],{'onClick':()=>_0x55b10c[_0x202529(0x215)](),'children':_0x202529(0x259)})]});}function _0x1e1ce7(_0x3e10c7){var _0x244c0c=_0x27b7d6;const {coordinator:_0x29d4c9}=_0x3e10c7;return _0xf2518d[_0x244c0c(0x1ef)](_0xf2518d['Fragment'],{'children':[_0xf2518d['jsx'](_0x244c0c(0x227),{'className':_0x244c0c(0x190),'children':'You\x27re\x20following\x20the\x20presenter'}),_0xf2518d[_0x244c0c(0x271)](_0x4fea6f[_0x244c0c(0x24d)],{'onClick':()=>_0x29d4c9[_0x244c0c(0x1fc)](),'children':_0x244c0c(0x1f6)})]});}function _0x484327(_0x38dbde){var _0x34ce10=_0x27b7d6;const {coordinator:_0x4f4895}=_0x38dbde;return _0xf2518d[_0x34ce10(0x1ef)](_0xf2518d[_0x34ce10(0x1ce)],{'children':[_0xf2518d[_0x34ce10(0x271)](_0x34ce10(0x227),{'className':_0x34ce10(0x190),'children':_0x34ce10(0x23f)}),_0xf2518d[_0x34ce10(0x271)](_0x4fea6f[_0x34ce10(0x24d)],{'variant':'text','onClick':()=>_0x4f4895[_0x34ce10(0x23a)](),'children':'Start\x20following'})]});}function _0x5802fe(_0x2f49b0){var _0x4b3647=_0x27b7d6;const {coordinator:_0xb13829}=_0x2f49b0;return _0xf2518d['jsxs'](_0xf2518d['Fragment'],{'children':[_0xf2518d[_0x4b3647(0x271)](_0x4b3647(0x227),{'className':_0x4b3647(0x190),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xf2518d[_0x4b3647(0x271)](_0x4fea6f['Button'],{'variant':'default','onClick':()=>_0xb13829['stopPresenting'](),'children':_0x4b3647(0x203)})]});}function _0xc76d3(){var _0x402fe7=_0x27b7d6;return _0xf2518d['jsx'](_0xf2518d[_0x402fe7(0x1ce)],{'children':_0x402fe7(0x20e)});}var _0x23e4c7=Object[_0x27b7d6(0x1ea)],_0x3c5c5f=(_0x1e885e,_0x2b6b2c,_0x47cb88,_0x5bcb22)=>{var _0x1650d0=_0x27b7d6;for(var _0x49740b=_0x5bcb22>0x1?void 0x0:_0x5bcb22?_0x23e4c7(_0x2b6b2c,_0x47cb88):_0x2b6b2c,_0x27510d=_0x1e885e[_0x1650d0(0x256)]-0x1,_0x229413;_0x27510d>=0x0;_0x27510d--)(_0x229413=_0x1e885e[_0x27510d])&&(_0x49740b=_0x229413(_0x49740b)||_0x49740b);return _0x49740b;},_0x2775fe=(_0x2340e9,_0x16a9c6)=>(_0x2f2275,_0x411118)=>_0x16a9c6(_0x2f2275,_0x411118,_0x2340e9);_0xefd987['DesktopLiveShareController']=class extends _0x247859[_0x27b7d6(0x1e2)]{constructor(_0x24c179,_0x4b74b0){var _0x1c1fff=_0x27b7d6;super(),this[_0x1c1fff(0x1b3)]=_0x24c179,this[_0x1c1fff(0x1b2)]=_0x4b74b0,this[_0x1c1fff(0x1f2)]();}[_0x27b7d6(0x1f2)](){var _0x3088de=_0x27b7d6;this[_0x3088de(0x1fe)](this[_0x3088de(0x1b2)][_0x3088de(0x201)](_0x394c3e[_0x3088de(0x240)]['HEADER_MENU'],()=>_0x394c3e[_0x3088de(0x1bc)](_0x35dbcb,this[_0x3088de(0x1b3)])));}},_0xefd987[_0x27b7d6(0x229)]=_0x3c5c5f([_0x2775fe(0x0,_0x247859[_0x27b7d6(0x1d2)](_0x247859[_0x27b7d6(0x1d9)])),_0x2775fe(0x1,_0x394c3e[_0x27b7d6(0x1cc)])],_0xefd987['DesktopLiveShareController']);const _0x5b91e7=_0x27b7d6(0x207),_0x32c0f0={};var _0x2743c9=Object[_0x27b7d6(0x1ea)],_0xfb867=(_0x294179,_0x6b3258,_0x31ea36,_0x57c326)=>{var _0x32d783=_0x27b7d6;for(var _0x3b15f6=_0x57c326>0x1?void 0x0:_0x57c326?_0x2743c9(_0x6b3258,_0x31ea36):_0x6b3258,_0x5c7d17=_0x294179[_0x32d783(0x256)]-0x1,_0x51d7e2;_0x5c7d17>=0x0;_0x5c7d17--)(_0x51d7e2=_0x294179[_0x5c7d17])&&(_0x3b15f6=_0x51d7e2(_0x3b15f6)||_0x3b15f6);return _0x3b15f6;},_0x4c4ac6=(_0x387aa0,_0x647d38)=>(_0x5aeec3,_0xdb60d0)=>_0x647d38(_0x5aeec3,_0xdb60d0,_0x387aa0);let _0x2f5c77=class extends _0x247859['Disposable']{constructor(_0x368688){var _0x2d33b0=_0x27b7d6;super(),this[_0x2d33b0(0x220)]=_0x368688,this[_0x2d33b0(0x1ae)]();}[_0x27b7d6(0x1ae)](){var _0x48e26d=_0x27b7d6;[_0x18f510[_0x48e26d(0x1ff)]['id'],_0x18f510[_0x48e26d(0x25a)]['id'],_0x5ad2a1[_0x48e26d(0x250)]['id']][_0x48e26d(0x22a)](_0x58a8a6=>{var _0x1dff9c=_0x48e26d;this['disposeWithMe'](this[_0x1dff9c(0x220)][_0x1dff9c(0x1aa)](_0x58a8a6));});}};_0x2f5c77=_0xfb867([_0x4c4ac6(0x0,_0x247859[_0x27b7d6(0x1d2)](_0x256e53))],_0x2f5c77);var _0x1c1a40=Object['defineProperty'],_0x348edb=Object[_0x27b7d6(0x1ea)],_0x456a84=(_0x124832,_0x3348fe,_0x191a52)=>_0x3348fe in _0x124832?_0x1c1a40(_0x124832,_0x3348fe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x191a52}):_0x124832[_0x3348fe]=_0x191a52,_0x5b06e6=(_0x268057,_0x2a721a,_0x13a7f2,_0x3fb17d)=>{var _0x39088a=_0x27b7d6;for(var _0x1deb24=_0x3fb17d>0x1?void 0x0:_0x3fb17d?_0x348edb(_0x2a721a,_0x13a7f2):_0x2a721a,_0x1681df=_0x268057[_0x39088a(0x256)]-0x1,_0x5026be;_0x1681df>=0x0;_0x1681df--)(_0x5026be=_0x268057[_0x1681df])&&(_0x1deb24=_0x5026be(_0x1deb24)||_0x1deb24);return _0x1deb24;},_0x12a676=(_0x54159c,_0x189fed)=>(_0x4dd41d,_0x57ce6d)=>_0x189fed(_0x4dd41d,_0x57ce6d,_0x54159c),_0x2d4764=(_0xbd4718,_0x597dc3,_0x1fd701)=>_0x456a84(_0xbd4718,typeof _0x597dc3!=_0x27b7d6(0x191)?_0x597dc3+'':_0x597dc3,_0x1fd701);const _0x5a5b93=_0x27b7d6(0x22b);_0xefd987['UniverLiveSharePlugin']=class extends _0x247859[_0x27b7d6(0x24c)]{constructor(_0x3901ea=_0x32c0f0,_0x5ef0a8,_0x2a97a4){var _0x1c63f1=_0x27b7d6;super(),this[_0x1c63f1(0x19e)]=_0x3901ea,this[_0x1c63f1(0x1b3)]=_0x5ef0a8,this['_configService']=_0x2a97a4;const {..._0x28aa5d}=_0x247859[_0x1c63f1(0x285)]({},_0x32c0f0,this[_0x1c63f1(0x19e)]);this['_configService']['setConfig'](_0x5b91e7,_0x28aa5d);}[_0x27b7d6(0x277)](){var _0x5ee3a0=_0x27b7d6;_0x247859[_0x5ee3a0(0x1de)](this[_0x5ee3a0(0x1b3)],_0x247859['mergeOverrideWithDependencies']([[_0x256e53],[_0xefd987['LiveShareController']],[_0x2f5c77],[_0xefd987[_0x5ee3a0(0x229)]]],this['_config'][_0x5ee3a0(0x249)])),_0x247859[_0x5ee3a0(0x1a4)](this[_0x5ee3a0(0x1b3)],[[_0x2f5c77]]);}[_0x27b7d6(0x1e8)](){var _0x5b17bf=_0x27b7d6;_0x247859[_0x5b17bf(0x1a4)](this['_injector'],[[_0xefd987[_0x5b17bf(0x229)]]]);}},_0x2d4764(_0xefd987[_0x27b7d6(0x202)],_0x27b7d6(0x1c1),_0x247859[_0x27b7d6(0x281)]['UNIVER_UNKNOWN']),_0x2d4764(_0xefd987[_0x27b7d6(0x202)],'pluginName',_0x5a5b93),_0xefd987['UniverLiveSharePlugin']=_0x5b06e6([_0x247859['DependentOn'](_0x36dcec[_0x27b7d6(0x1a6)]),_0x12a676(0x1,_0x247859[_0x27b7d6(0x1d2)](_0x247859[_0x27b7d6(0x1d9)])),_0x12a676(0x2,_0x247859['IConfigService'])],_0xefd987[_0x27b7d6(0x202)]),_0xefd987[_0x27b7d6(0x267)]=_0x35dbcb,_0xefd987[_0x27b7d6(0x274)]=_0x256e53,_0xefd987[_0x27b7d6(0x200)]=_0x5c9637,Object['defineProperty'](_0xefd987,Symbol[_0x27b7d6(0x262)],{'value':'Module'});}));function _0x1dcd(){var _0x410a42=['entries','subscribe','className','_uiPartsService','_injector','LIVESHARE_NEW_HOST','createInstance','reverse','NOT_FOLLOWING','getCurrentTypeOfUnit$','children','_handleOffline','39756LnpLyT','connectInjector','_sharedOperations','univer-size-4','indexOf','getValue','type','FOLLOWING','_handleNewChangeSets','_startFollowing','@univerjs/design','current','presenter','_startLiveShareCoordinator','InsertSheetMutation','executeCommand','svg','IUIPartsService','_beIdle','Fragment','from','xlink:href','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Inject','674615jGeTqM','colorChannel1','url(#$1','clsx','_handleTerminate','concat','Injector','next','operators','LIVESHARE_OPERATION','presenting','registerDependencies','add','random','asObservable','Disposable','useObservable','dispose$','UniverProCollaborationClient','displayName','univerjs-icon\x20univerjs-icon-','onRendered','_reporters','getOwnPropertyDescriptor','getMemberID','useRef','_status','parse','jsxs','mask','UNIVER_SHEET','_mountLiveShare','_configService','forwardRef','getConfig','Stop\x20following','map','send','dispose','idSuffix','@univerjs/sheets','stopFollowing','none','disposeWithMe','SetZoomRatioOperation','LiveShareStatus','registerComponent','UniverLiveSharePlugin','Stop\x20presenting','unsubscribe','clear','params','live-share.config','_handleOperation','15dTAFnf','call','fill','getLiveShareCoordinator','shouldShareOperation','You\x27are\x20offline.','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','getTypeOfUnitAdded$','_entities','_status$','3037846YxMepP','sheet','tryStartPresenting','RxDisposable','substring','offline','SAME_OPERATION_SHARE_INTERVAL','_handleOnline','LiveShareController','LiveShareIcon','LIVESHARE_REQUEST_HOST','@univerjs-pro/collaboration-client','_univerInstanceService','_liveShareService','CollaborationEvent','5110461HpSDnP','includes','function','_handleNewHost','Dropdown','div','UniverUi','DesktopLiveShareController','forEach','UNIVER_LIVE_SHARE_PLUGIN','find','_commandDisposable','@univerjs/sheets-ui','get','getUnitId','PRESENTING','pipe','defIds','@univerjs/ui','1912570BJJeJs','6MgdsXf','replace','requireSession','UniverDesign','startFollowing','has','ONLINE','prototype','11fLMWdR','You\x27re\x20not\x20following\x20the\x20presenter','BuiltInUIPart','idle','_stopFollowing','operations','_unitID','apply','OPERATION','UniverProLiveShare','CollaborationSessionService','override','delete','_collabSessionService','Plugin','Button','path','UniverProCollaboration','SetWorksheetActiveOperation','complete','useState','event$','string','_stopPresenting','length','mutations','SessionStatus','Start','SetScrollOperation','CommandType','assign','_commandService','_fetchOperations','1em','Present\x20this\x20document','LIVESHARE_FETCH_OPERATIONS','toStringTag','toString','219450JAgSzV','tag','UniverCore','LiveShare','Subject','UniverIcon','IDLE','IConfigService','_presenter','then','data','16KHrYEN','OFFLINE','jsx','extend','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','LiveShareService','stringify','registerInitialStateReporter','onStarting','currentColor','getInitialStates','rxjs','react','attrs','button','_collabSession','BehaviorSubject','react/jsx-runtime','UniverInstanceType','useDependency','84175AIPgel','UniverSheetsUi','merge','_startPresenting','takeUntil','following','univer-mb-3\x20univer-w-full\x20univer-text-sm','symbol','set','init','evenodd','exports','live-share-icon','toDisposable','ICommandService','LiveShareCoordinator','throttleTime','not-following','getOwnPropertySymbols','icon','_config','UniverSheets','unitId','status$','getTypeOfUnitDisposed$','LIVESHARE_TERMINATE','touchDependencies','values','UniverCollaborationClientPlugin','createElement','propertyIsEnumerable','hasOwnProperty','registerSharedOperation','IUniverInstanceService','NEW_CHANGESETS','React','_init'];_0x1dcd=function(){return _0x410a42;};return _0x1dcd();}
|
|
1
|
+
function _0x5951(_0x41fe6b,_0x34f83a){var _0x546b2d=_0x546b();return _0x5951=function(_0x595115,_0x3ae532){_0x595115=_0x595115-0xeb;var _0x46d05a=_0x546b2d[_0x595115];return _0x46d05a;},_0x5951(_0x41fe6b,_0x34f83a);}(function(_0x51845a,_0x48daa1){var _0xd14c17=_0x5951,_0x39edab=_0x51845a();while(!![]){try{var _0x57cfbb=parseInt(_0xd14c17(0x181))/0x1+parseInt(_0xd14c17(0x185))/0x2+-parseInt(_0xd14c17(0x1a0))/0x3+-parseInt(_0xd14c17(0x1c8))/0x4*(-parseInt(_0xd14c17(0x17f))/0x5)+-parseInt(_0xd14c17(0x14d))/0x6*(-parseInt(_0xd14c17(0x131))/0x7)+-parseInt(_0xd14c17(0x108))/0x8*(parseInt(_0xd14c17(0x154))/0x9)+-parseInt(_0xd14c17(0x11a))/0xa;if(_0x57cfbb===_0x48daa1)break;else _0x39edab['push'](_0x39edab['shift']());}catch(_0x5d40c6){_0x39edab['push'](_0x39edab['shift']());}}}(_0x546b,0xbeb72),function(_0x159850,_0x440879){var _0x2dca9a=_0x5951;typeof exports==_0x2dca9a(0x134)&&typeof module<'u'?_0x440879(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x2dca9a(0x1cd)&&define[_0x2dca9a(0x127)]?define(['exports',_0x2dca9a(0x1bb),'@univerjs/ui',_0x2dca9a(0x171),_0x2dca9a(0x1a9),_0x2dca9a(0x12b),_0x2dca9a(0x118),_0x2dca9a(0x135),_0x2dca9a(0x112),_0x2dca9a(0x192),_0x2dca9a(0x133),_0x2dca9a(0x18d)],_0x440879):(_0x159850=typeof globalThis<'u'?globalThis:_0x159850||self,_0x440879(_0x159850['UniverProLiveShare']={},_0x159850['UniverCore'],_0x159850[_0x2dca9a(0x116)],_0x159850[_0x2dca9a(0x1b3)],_0x159850[_0x2dca9a(0xfe)],_0x159850[_0x2dca9a(0x1b3)],_0x159850[_0x2dca9a(0x140)],_0x159850[_0x2dca9a(0x143)],_0x159850[_0x2dca9a(0x160)],_0x159850[_0x2dca9a(0x192)],_0x159850[_0x2dca9a(0x192)]['operators'],_0x159850[_0x2dca9a(0x150)]));}(this,function(_0x306c00,_0x1c0471,_0x364ad0,_0x4224e5,_0x31d2ac,_0x197fcb,_0x27848c,_0x3810d2,_0x154c01,_0x352f26,_0x157cb5,_0x3a0119){'use strict';var _0x35c375=_0x5951;var _0x15e967=Object[_0x35c375(0x149)],_0x30dc25=(_0x937ec3,_0x3ee63b,_0x38afef)=>_0x3ee63b in _0x937ec3?_0x15e967(_0x937ec3,_0x3ee63b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38afef}):_0x937ec3[_0x3ee63b]=_0x38afef,_0x5ede5f=(_0x5d8b9e,_0x33ae6b,_0x7734e8)=>_0x30dc25(_0x5d8b9e,typeof _0x33ae6b!=_0x35c375(0x186)?_0x33ae6b+'':_0x33ae6b,_0x7734e8),_0x152680=function(){var _0x28e4d2=_0x35c375;return _0x152680=Object['assign']||function(_0x3bbff2){var _0xb712d8=_0x5951;for(var _0x5f3db8,_0x2e7c10=0x1,_0x2c7d3c=arguments[_0xb712d8(0x1dc)];_0x2e7c10<_0x2c7d3c;_0x2e7c10++){_0x5f3db8=arguments[_0x2e7c10];for(var _0x3d6cc1 in _0x5f3db8)Object['prototype'][_0xb712d8(0x1d7)][_0xb712d8(0x1b6)](_0x5f3db8,_0x3d6cc1)&&(_0x3bbff2[_0x3d6cc1]=_0x5f3db8[_0x3d6cc1]);}return _0x3bbff2;},_0x152680[_0x28e4d2(0x115)](this,arguments);},_0x48a372=function(_0x1472f8,_0x252917){var _0x35d58c=_0x35c375,_0x2fecf9={};for(var _0x5c5ba9 in _0x1472f8)Object[_0x35d58c(0x106)][_0x35d58c(0x1d7)][_0x35d58c(0x1b6)](_0x1472f8,_0x5c5ba9)&&_0x252917[_0x35d58c(0x114)](_0x5c5ba9)<0x0&&(_0x2fecf9[_0x5c5ba9]=_0x1472f8[_0x5c5ba9]);if(_0x1472f8!=null&&typeof Object[_0x35d58c(0xff)]==_0x35d58c(0x1cd)){for(var _0x495492=0x0,_0x5c5ba9=Object[_0x35d58c(0xff)](_0x1472f8);_0x495492<_0x5c5ba9[_0x35d58c(0x1dc)];_0x495492++)_0x252917['indexOf'](_0x5c5ba9[_0x495492])<0x0&&Object['prototype'][_0x35d58c(0x11f)][_0x35d58c(0x1b6)](_0x1472f8,_0x5c5ba9[_0x495492])&&(_0x2fecf9[_0x5c5ba9[_0x495492]]=_0x1472f8[_0x5c5ba9[_0x495492]]);}return _0x2fecf9;},_0x48340f=_0x197fcb[_0x35c375(0xef)](function(_0x548c07,_0x56391c){var _0x1da60d=_0x35c375,_0xa4ba53=_0x548c07[_0x1da60d(0x18e)],_0x5e00dd=_0x548c07['id'],_0x10def3=_0x548c07[_0x1da60d(0x1a8)],_0x598938=_0x548c07[_0x1da60d(0x119)],_0x50b221=_0x48a372(_0x548c07,[_0x1da60d(0x18e),'id','className','extend']),_0x2bf922='univerjs-icon\x20univerjs-icon-'[_0x1da60d(0x155)](_0x5e00dd,'\x20')[_0x1da60d(0x155)](_0x10def3||'')[_0x1da60d(0x146)](),_0x3f16c0=_0x197fcb[_0x1da60d(0xf3)]('_'[_0x1da60d(0x155)](_0x460991()));return _0x4721e7(_0xa4ba53,''[_0x1da60d(0x155)](_0x5e00dd),{'defIds':_0xa4ba53[_0x1da60d(0x173)],'idSuffix':_0x3f16c0[_0x1da60d(0x18b)]},_0x152680({'ref':_0x56391c,'className':_0x2bf922},_0x50b221),_0x598938);});function _0x4721e7(_0x36fa2c,_0xd6a1c,_0x9bf79a,_0x1c8dd0,_0x4d2c9e){var _0x16fe91=_0x35c375;return _0x197fcb[_0x16fe91(0xfb)](_0x36fa2c[_0x16fe91(0x13d)],_0x152680(_0x152680({'key':_0xd6a1c},_0x12f44f(_0x36fa2c,_0x9bf79a,_0x4d2c9e)),_0x1c8dd0),(_0x459472(_0x36fa2c,_0x9bf79a)['children']||[])['map'](function(_0x50465d,_0x3b3951){var _0x387d34=_0x16fe91;return _0x4721e7(_0x50465d,''[_0x387d34(0x155)](_0xd6a1c,'-')[_0x387d34(0x155)](_0x36fa2c['tag'],'-')[_0x387d34(0x155)](_0x3b3951),_0x9bf79a,void 0x0,_0x4d2c9e);}));}function _0x12f44f(_0x225d12,_0x2d4eec,_0x525432){var _0x5a2bc1=_0x35c375,_0x2ab68d=_0x152680({},_0x225d12['attrs']);_0x525432!=null&&_0x525432['colorChannel1']&&_0x2ab68d[_0x5a2bc1(0x164)]===_0x5a2bc1(0x195)&&(_0x2ab68d[_0x5a2bc1(0x164)]=_0x525432[_0x5a2bc1(0x195)]),_0x225d12[_0x5a2bc1(0x13d)]===_0x5a2bc1(0x12e)&&_0x2ab68d['id']&&(_0x2ab68d['id']=_0x2ab68d['id']+_0x2d4eec[_0x5a2bc1(0x15d)]),Object[_0x5a2bc1(0x10e)](_0x2ab68d)['forEach'](function(_0x586f){var _0x100e90=_0x5a2bc1,_0x24d3ab=_0x586f[0x0],_0x35f586=_0x586f[0x1];_0x24d3ab===_0x100e90(0x12e)&&typeof _0x35f586=='string'&&(_0x2ab68d[_0x24d3ab]=_0x35f586[_0x100e90(0x16e)](/url\(#(.*)\)/,_0x100e90(0x191)[_0x100e90(0x155)](_0x2d4eec['idSuffix'],')')));});var _0x4e89d7=_0x2d4eec[_0x5a2bc1(0x173)];return!_0x4e89d7||_0x4e89d7['length']===0x0||(_0x225d12[_0x5a2bc1(0x13d)]===_0x5a2bc1(0x12f)&&_0x2ab68d['xlink:href']&&(_0x2ab68d[_0x5a2bc1(0x199)]=_0x2ab68d[_0x5a2bc1(0x199)]+_0x2d4eec[_0x5a2bc1(0x15d)]),Object['entries'](_0x2ab68d)[_0x5a2bc1(0x13b)](function(_0x4af2e5){var _0x50ddc7=_0x5a2bc1,_0x25e29a=_0x4af2e5[0x0],_0x1fe3ae=_0x4af2e5[0x1];typeof _0x1fe3ae==_0x50ddc7(0xf6)&&(_0x2ab68d[_0x25e29a]=_0x1fe3ae['replace'](/url\(#(.*)\)/,_0x50ddc7(0x191)['concat'](_0x2d4eec['idSuffix'],')')));})),_0x2ab68d;}function _0x459472(_0x5ae438,_0x2905e0){var _0x1c9865=_0x35c375,_0x5a94bb,_0x2950c8=_0x2905e0[_0x1c9865(0x173)];return!_0x2950c8||_0x2950c8[_0x1c9865(0x1dc)]===0x0?_0x5ae438:_0x5ae438['tag']===_0x1c9865(0xed)&&(!((_0x5a94bb=_0x5ae438['children'])===null||_0x5a94bb===void 0x0)&&_0x5a94bb['length'])?_0x152680(_0x152680({},_0x5ae438),{'children':_0x5ae438[_0x1c9865(0x14a)][_0x1c9865(0x179)](function(_0x2d0a38){var _0x52e60e=_0x1c9865;return typeof _0x2d0a38['attrs']['id']==_0x52e60e(0xf6)&&_0x2950c8&&_0x2950c8['includes'](_0x2d0a38[_0x52e60e(0x147)]['id'])?_0x152680(_0x152680({},_0x2d0a38),{'attrs':_0x152680(_0x152680({},_0x2d0a38[_0x52e60e(0x147)]),{'id':_0x2d0a38[_0x52e60e(0x147)]['id']+_0x2905e0['idSuffix']})}):_0x2d0a38;})}):_0x5ae438;}function _0x460991(){var _0x298fbc=_0x35c375;return Math['random']()[_0x298fbc(0x1a3)](0x24)['substring'](0x2,0x8);}_0x48340f[_0x35c375(0x198)]='UniverIcon';var _0x34b730={'tag':_0x35c375(0x121),'attrs':{'xmlns':_0x35c375(0x1dd),'fill':_0x35c375(0x1ba),'viewBox':_0x35c375(0x1a2),'width':_0x35c375(0x10a),'height':'1em'},'children':[{'tag':_0x35c375(0x1c7),'attrs':{'fill':_0x35c375(0x19a),'d':_0x35c375(0xf1)}},{'tag':_0x35c375(0x1c7),'attrs':{'fill':_0x35c375(0x19a),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x35c375(0x1e0),'clipRule':_0x35c375(0x1e0)}}]},_0x18dc00=_0x197fcb[_0x35c375(0xef)](function(_0x53c7d7,_0x5e38b5){var _0x391d49=_0x35c375;return _0x197fcb[_0x391d49(0xfb)](_0x48340f,Object[_0x391d49(0xf9)]({},_0x53c7d7,{'id':_0x391d49(0x1ad),'ref':_0x5e38b5,'icon':_0x34b730}));});_0x18dc00[_0x35c375(0x198)]=_0x35c375(0x1d8);class _0x231f7a extends _0x1c0471[_0x35c375(0x18a)]{constructor(){var _0x1c56e6=_0x35c375;super(...arguments),_0x5ede5f(this,'_sharedOperations',new Set()),_0x5ede5f(this,_0x1c56e6(0x139),new Set());}[_0x35c375(0xf7)](_0x321723){var _0x3d7c0c=_0x35c375;return this[_0x3d7c0c(0x1ac)][_0x3d7c0c(0x102)](_0x321723),_0x1c0471[_0x3d7c0c(0x162)](()=>this[_0x3d7c0c(0x1ac)][_0x3d7c0c(0x13e)](_0x321723));}['registerInitialStateReporter'](_0x17c61c){var _0xb5ef75=_0x35c375;return this['_reporters'][_0xb5ef75(0x102)](_0x17c61c),_0x1c0471['toDisposable'](()=>this[_0xb5ef75(0x139)][_0xb5ef75(0x13e)](_0x17c61c));}[_0x35c375(0x1a6)](_0x9ffa8f){var _0x438acb=_0x35c375;return this[_0x438acb(0x1ac)][_0x438acb(0x163)](_0x9ffa8f);}[_0x35c375(0x166)](_0x5ca269){var _0x49fd97=_0x35c375;return Array[_0x49fd97(0x113)](this[_0x49fd97(0x139)])[_0x49fd97(0x179)](_0x596db6=>_0x596db6(_0x5ca269));}}var _0x42f1b3=Object[_0x35c375(0x1c2)],_0x12b983=(_0x4377fe,_0x3b1978,_0x11eafc,_0x485dee)=>{var _0x1c9a39=_0x35c375;for(var _0x1e9083=_0x485dee>0x1?void 0x0:_0x485dee?_0x42f1b3(_0x3b1978,_0x11eafc):_0x3b1978,_0xd7c83=_0x4377fe[_0x1c9a39(0x1dc)]-0x1,_0x2a36d9;_0xd7c83>=0x0;_0xd7c83--)(_0x2a36d9=_0x4377fe[_0xd7c83])&&(_0x1e9083=_0x2a36d9(_0x1e9083)||_0x1e9083);return _0x1e9083;},_0x1238db=(_0x29a926,_0xaf275d)=>(_0x2b66d2,_0x11c6d5)=>_0xaf275d(_0x2b66d2,_0x11c6d5,_0x29a926);_0x306c00[_0x35c375(0x14e)]=class extends _0x1c0471[_0x35c375(0x1c4)]{constructor(_0x197c6a,_0x15ccd6,_0x4c69fe){var _0x537dea=_0x35c375;super(),_0x5ede5f(this,_0x537dea(0x11c),new Map()),(this[_0x537dea(0x13c)]=_0x197c6a,this[_0x537dea(0x107)]=_0x15ccd6,this[_0x537dea(0x178)]=_0x4c69fe,this[_0x537dea(0x16d)]());}async[_0x35c375(0x16c)](_0x2ec2fc){var _0x5481a2=_0x35c375;return this[_0x5481a2(0x11c)][_0x5481a2(0x163)](_0x2ec2fc)||await this[_0x5481a2(0x117)](_0x2ec2fc),this[_0x5481a2(0x11c)][_0x5481a2(0x161)](_0x2ec2fc);}[_0x35c375(0x16d)](){var _0x1b05b1=_0x35c375;this[_0x1b05b1(0x13c)]['getTypeOfUnitAdded$'](_0x1c0471[_0x1b05b1(0x145)]['UNIVER_SHEET'])[_0x1b05b1(0x169)](_0x157cb5[_0x1b05b1(0xf2)](this[_0x1b05b1(0x136)]))[_0x1b05b1(0x17b)](async _0x5365fc=>{var _0x36d91d=_0x1b05b1;const _0x4aa144=_0x5365fc['getUnitId']();this[_0x36d91d(0x11c)]['has'](_0x4aa144)||this[_0x36d91d(0x117)](_0x4aa144);}),this[_0x1b05b1(0x13c)][_0x1b05b1(0x187)](_0x1c0471[_0x1b05b1(0x145)]['UNIVER_SHEET'])[_0x1b05b1(0x169)](_0x157cb5[_0x1b05b1(0xf2)](this[_0x1b05b1(0x136)]))[_0x1b05b1(0x17b)](_0x29d20a=>{var _0x44f56f=_0x1b05b1;const _0x2db141=_0x29d20a['getUnitId'](),_0x1c7a75=this[_0x44f56f(0x11c)][_0x44f56f(0x161)](_0x2db141);_0x1c7a75==null||_0x1c7a75[_0x44f56f(0x132)]();});}async[_0x35c375(0x117)](_0x2cd934){var _0x3bce21=_0x35c375;const _0x2e0fe9=await this[_0x3bce21(0x178)]['requireSession'](_0x2cd934),_0xd85af1=this[_0x3bce21(0x107)][_0x3bce21(0x19b)](_0x306c00['LiveShareCoordinator'],_0x2cd934,_0x2e0fe9);return _0xd85af1['init'](),this[_0x3bce21(0x11c)][_0x3bce21(0x1ce)](_0x2cd934,_0xd85af1),_0xd85af1;}},_0x306c00[_0x35c375(0x14e)]=_0x12b983([_0x1238db(0x0,_0x1c0471[_0x35c375(0x1d4)]),_0x1238db(0x1,_0x1c0471[_0x35c375(0x1a1)](_0x1c0471[_0x35c375(0x197)])),_0x1238db(0x2,_0x1c0471[_0x35c375(0x1a1)](_0x3810d2[_0x35c375(0x142)]))],_0x306c00[_0x35c375(0x14e)]);var _0x134d96=(_0x28a359=>(_0x28a359[_0x35c375(0x105)]=_0x35c375(0x158),_0x28a359[_0x35c375(0x1b1)]='idle',_0x28a359[_0x35c375(0x14b)]=_0x35c375(0x10d),_0x28a359[_0x35c375(0xf8)]=_0x35c375(0x11b),_0x28a359['PRESENTING']=_0x35c375(0x172),_0x28a359))(_0x134d96||{});const _0x304b68=_0x35c375(0x16f),_0x4c29eb=0xc8;_0x306c00[_0x35c375(0x12a)]=class extends _0x1c0471[_0x35c375(0x1c4)]{constructor(_0x256330,_0x4a1401,_0x23e665,_0x30612f,_0x43506d){var _0x87fc35=_0x35c375;super(),_0x5ede5f(this,_0x87fc35(0x17e),new _0x352f26[(_0x87fc35(0x1c9))](_0x87fc35(0x15f))),_0x5ede5f(this,'status$',this[_0x87fc35(0x17e)]['asObservable']()),_0x5ede5f(this,_0x87fc35(0x16d),!0x1),_0x5ede5f(this,_0x87fc35(0x16a),null),_0x5ede5f(this,'_presenter',null),(this['_unitID']=_0x256330,this[_0x87fc35(0x1db)]=_0x4a1401,this['_configService']=_0x23e665,this[_0x87fc35(0x159)]=_0x30612f,this[_0x87fc35(0x1a7)]=_0x43506d);}get[_0x35c375(0x157)](){var _0x2c790a=_0x35c375;return this[_0x2c790a(0x17e)][_0x2c790a(0xfc)]();}[_0x35c375(0x132)](){var _0x3a1fd9=_0x35c375,_0x41934c;(_0x41934c=this['_commandDisposable'])==null||_0x41934c[_0x3a1fd9(0x132)](),this[_0x3a1fd9(0x17e)]['next']('idle'),this[_0x3a1fd9(0x17e)][_0x3a1fd9(0x1d0)]();}[_0x35c375(0x167)](){var _0x42df17=_0x35c375;this['_init']||(this['_init']=!0x0,this[_0x42df17(0x1db)][_0x42df17(0x183)][_0x42df17(0x169)](_0x157cb5[_0x42df17(0xf2)](this['dispose$']))['subscribe'](_0x359d83=>{var _0xb6fc98=_0x42df17;switch(_0x359d83){case _0x3810d2[_0xb6fc98(0x13f)][_0xb6fc98(0x105)]:this[_0xb6fc98(0x19f)]();break;case _0x3810d2[_0xb6fc98(0x13f)]['ONLINE']:this[_0xb6fc98(0x17c)]();break;}}),this['_collabSession'][_0x42df17(0x1cc)][_0x42df17(0x169)](_0x157cb5[_0x42df17(0xf2)](this[_0x42df17(0x136)]))[_0x42df17(0x17b)](_0x1fa6cb=>{var _0x11dba0=_0x42df17;const {eventID:_0x3d53d1}=_0x1fa6cb;switch(_0x3d53d1){case _0x27848c[_0x11dba0(0x1a5)][_0x11dba0(0x100)]:this[_0x11dba0(0x17a)](_0x1fa6cb);break;case _0x27848c[_0x11dba0(0x1a5)][_0x11dba0(0x1e1)]:this[_0x11dba0(0x110)](_0x1fa6cb);break;case _0x27848c[_0x11dba0(0x1a5)][_0x11dba0(0x111)]:this[_0x11dba0(0x1b2)]();break;case _0x27848c[_0x11dba0(0x1a5)]['NEW_CHANGESETS']:this[_0x11dba0(0x124)](_0x1fa6cb);break;}}));}[_0x35c375(0x1d2)](){var _0x58977a=_0x35c375;this[_0x58977a(0x1db)]['send']({'eventID':_0x27848c[_0x58977a(0x1a5)][_0x58977a(0x1b8)],'data':{'unitID':this[_0x58977a(0x174)],'userID':this['_collabSession'][_0x58977a(0x1e2)]()}},this[_0x58977a(0x174)]);}[_0x35c375(0x1de)](){var _0x5f4d3e=_0x35c375;this[_0x5f4d3e(0x157)]===_0x5f4d3e(0x172)&&(this['_status$'][_0x5f4d3e(0x1d5)](_0x5f4d3e(0x15f)),this[_0x5f4d3e(0x1db)]['send']({'eventID':_0x27848c[_0x5f4d3e(0x1a5)][_0x5f4d3e(0x111)],'data':{'unitID':this['_unitID']}},this[_0x5f4d3e(0x174)]));}[_0x35c375(0x1c5)](){var _0x561628=_0x35c375;this[_0x561628(0x157)]===_0x561628(0x11b)&&(this[_0x561628(0x17e)][_0x561628(0x1d5)](_0x561628(0x10d)),this[_0x561628(0x17d)]());}[_0x35c375(0x122)](){var _0x77852e=_0x35c375;this[_0x77852e(0x157)]===_0x77852e(0x10d)&&this[_0x77852e(0x1c3)]();}['_handleNewHost'](_0x5a4e88){var _0x370f1e=_0x35c375;const {presenter:_0x5d9c12}=_0x5a4e88['data'],_0x14d7b2=this['_collabSession'][_0x370f1e(0x1e2)]();this[_0x370f1e(0x190)]=_0x5d9c12,_0x5d9c12===_0x14d7b2?(this[_0x370f1e(0x1c3)](),this['_startPresenting']()):this[_0x370f1e(0x157)]!=='not-following'&&(this[_0x370f1e(0x128)](),this['_startFollowing']());}['_fetchOperations'](){var _0x3c4232=_0x35c375;const _0x1730e0={'eventID':_0x27848c[_0x3c4232(0x1a5)][_0x3c4232(0x18c)]};this[_0x3c4232(0x1db)][_0x3c4232(0x1b7)](_0x1730e0,this[_0x3c4232(0x174)]);}[_0x35c375(0x1b2)](){var _0x2279ca=_0x35c375;this['_presenter']=null,this[_0x2279ca(0x157)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x2edbcb){var _0xee35de=_0x35c375;if(this[_0xee35de(0x157)]==='following'&&this[_0xee35de(0x190)]===_0x2edbcb['data']['memberID']){const _0x157057=_0x27848c[_0xee35de(0x125)](_0x2edbcb['data'])[_0xee35de(0x194)]['reverse']()[_0xee35de(0x180)](_0x407686=>_0x407686['id']===_0x154c01[_0xee35de(0xeb)]['id']);if(_0x157057){const _0x48b490=_0x157057[_0xee35de(0x175)][_0xee35de(0x137)],_0x48c1bc=_0x157057[_0xee35de(0x175)]['sheet']['id'];setTimeout(()=>{var _0x370806=_0xee35de;this['_commandService'][_0x370806(0x176)](_0x154c01[_0x370806(0x144)]['id'],{'unitId':_0x48b490,'subUnitId':_0x48c1bc},{'fromCollab':!0x0});});}}}[_0x35c375(0x189)](){var _0x557108=_0x35c375;this['_status$'][_0x557108(0x1d5)](_0x557108(0x172));const _0x2d5395=new Map(),_0x3f2857=this['_commandDisposable']=new _0x1c0471['DisposableCollection']();_0x3f2857[_0x557108(0x102)](_0x1c0471[_0x557108(0x162)](()=>{var _0x419dba=_0x557108;_0x2d5395[_0x419dba(0x13b)](_0x4e80c0=>_0x4e80c0[_0x419dba(0x1d0)]()),_0x2d5395[_0x419dba(0x12d)]();})),_0x3f2857[_0x557108(0x102)](this[_0x557108(0x1a7)]['onCommandExecuted'](_0x4648ea=>{var _0x150bee=_0x557108,_0x5b457a;if(_0x4648ea[_0x150bee(0x16b)]!==_0x1c0471[_0x150bee(0x1b9)][_0x150bee(0x130)]||!this['_liveShareService'][_0x150bee(0x1a6)](_0x4648ea['id']))return;const {id:_0x58b8c6}=_0x4648ea;let _0x2ffaee;_0x2d5395['has'](_0x58b8c6)?_0x2ffaee=_0x2d5395[_0x150bee(0x161)](_0x58b8c6):(_0x2ffaee=new _0x352f26[(_0x150bee(0x184))](),_0x2d5395['set'](_0x58b8c6,_0x2ffaee),_0x2ffaee['pipe'](_0x157cb5[_0x150bee(0x182)]((_0x5b457a=this[_0x150bee(0x120)][_0x150bee(0x153)](_0x304b68))!=null?_0x5b457a:_0x4c29eb,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x581514=>{var _0xf4ab11=_0x150bee;this['_collabSession'][_0xf4ab11(0x1b7)]({'eventID':_0x27848c['CollaborationEvent'][_0xf4ab11(0x1e1)],'data':{'unitID':this['_unitID'],'operations':{[_0x581514['id']]:{'id':_0x581514['id'],'params':JSON[_0xf4ab11(0x1c0)](_0x581514['params'])}}}},this[_0xf4ab11(0x174)]);})),_0x2ffaee['next'](_0x4648ea);})),this[_0x557108(0x159)][_0x557108(0x166)](this[_0x557108(0x174)])[_0x557108(0x13b)](_0x178939=>this[_0x557108(0x1db)][_0x557108(0x1b7)]({'eventID':_0x27848c['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x557108(0x174)],'operations':{[_0x178939['id']]:{'id':_0x178939['id'],'params':JSON[_0x557108(0x1c0)](_0x178939[_0x557108(0x175)])}}}},this[_0x557108(0x174)]));}[_0x35c375(0x128)](){var _0x3e9497=_0x35c375,_0x5ea083;this[_0x3e9497(0x17e)][_0x3e9497(0x1d5)]('idle'),(_0x5ea083=this[_0x3e9497(0x16a)])==null||_0x5ea083[_0x3e9497(0x132)](),this['_commandDisposable']=null;}[_0x35c375(0x17d)](){var _0x29e217=_0x35c375,_0x3e6932;(_0x3e6932=this[_0x29e217(0x16a)])==null||_0x3e6932[_0x29e217(0x132)](),this[_0x29e217(0x17e)][_0x29e217(0x1d5)](_0x29e217(0x10d));}['_beIdle'](){var _0xf0233c=_0x35c375,_0xd5ae92;this[_0xf0233c(0x17e)][_0xf0233c(0x1d5)](_0xf0233c(0x15f)),(_0xd5ae92=this['_commandDisposable'])==null||_0xd5ae92['dispose'](),this['_commandDisposable']=null;}[_0x35c375(0x1c3)](){var _0x587c1c=_0x35c375,_0x48b5b8;this['_status$'][_0x587c1c(0x1d5)](_0x587c1c(0x11b)),(_0x48b5b8=this[_0x587c1c(0x16a)])==null||_0x48b5b8[_0x587c1c(0x132)]();}[_0x35c375(0x110)](_0x5c2f8b){var _0x351ee1=_0x35c375;if([_0x351ee1(0x172),_0x351ee1(0x11b),_0x351ee1(0x158)]['includes'](this[_0x351ee1(0x157)])||!_0x5c2f8b[_0x351ee1(0x12c)][_0x351ee1(0x19d)]||_0x5c2f8b['data'][_0x351ee1(0x19d)]===this[_0x351ee1(0x1db)][_0x351ee1(0x1e2)]())return;this[_0x351ee1(0x157)]==='idle'&&this[_0x351ee1(0x17d)]();const _0x5b9ac4=_0x5c2f8b['data'][_0x351ee1(0x1bf)];Object['values'](_0x5b9ac4)[_0x351ee1(0x13b)](_0x29a908=>{var _0x5069f8=_0x351ee1;this[_0x5069f8(0x1a7)][_0x5069f8(0x176)](_0x29a908['id'],_0x29a908['params']?JSON['parse'](_0x29a908['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4cac92=_0x35c375,_0x14c7d2;this[_0x4cac92(0x17e)]['next'](_0x4cac92(0x158)),(_0x14c7d2=this[_0x4cac92(0x16a)])==null||_0x14c7d2[_0x4cac92(0x132)]();}[_0x35c375(0x17c)](){var _0x3f252e=_0x35c375;this[_0x3f252e(0x17e)][_0x3f252e(0x1d5)](_0x3f252e(0x15f)),this[_0x3f252e(0x152)]();}},_0x306c00['LiveShareCoordinator']=_0x12b983([_0x1238db(0x2,_0x1c0471['IConfigService']),_0x1238db(0x3,_0x1c0471[_0x35c375(0x1a1)](_0x231f7a)),_0x1238db(0x4,_0x1c0471['ICommandService'])],_0x306c00['LiveShareCoordinator']);function _0x32b0d1(){var _0x13fcfa=_0x35c375;const _0x16d4ff=_0x364ad0['useDependency'](_0x306c00['LiveShareController']),_0x4c3c6a=_0x364ad0[_0x13fcfa(0x19e)](_0x1c0471[_0x13fcfa(0x1d4)]),_0x31640a=_0x364ad0[_0x13fcfa(0x196)](()=>_0x4c3c6a[_0x13fcfa(0x151)](_0x1c0471[_0x13fcfa(0x145)][_0x13fcfa(0x141)]),void 0x0,!0x1,[]),[_0x111579,_0x111d44]=_0x197fcb[_0x13fcfa(0x14f)](null),[_0xc5154a,_0x59f0cd]=_0x197fcb['useState'](_0x134d96[_0x13fcfa(0x1b1)]),_0x2a1665=_0x197fcb['useRef'](null);return _0x197fcb[_0x13fcfa(0x1aa)](()=>(_0x31640a&&_0x16d4ff[_0x13fcfa(0x16c)](_0x31640a[_0x13fcfa(0xfd)]())[_0x13fcfa(0xfa)](_0x4535f3=>{var _0x19847b=_0x13fcfa;_0x111d44(_0x4535f3),_0x2a1665[_0x19847b(0x18b)]=_0x4535f3[_0x19847b(0x188)][_0x19847b(0x17b)](_0x74718=>{_0x59f0cd(_0x74718);});}),()=>{var _0x4a823c=_0x13fcfa,_0x5f0a05;(_0x5f0a05=_0x2a1665['current'])==null||_0x5f0a05[_0x4a823c(0x10b)](),_0x2a1665[_0x4a823c(0x18b)]=null;}),[_0x31640a,_0x16d4ff]),_0x111579?_0x4224e5[_0x13fcfa(0x156)](_0x31d2ac[_0x13fcfa(0x1d1)],{'align':_0x13fcfa(0x103),'disabled':_0xc5154a===_0x134d96[_0x13fcfa(0x105)],'className':_0x13fcfa(0x148),'overlay':_0x4224e5['jsx'](_0xf44287,{'status':_0xc5154a,'coordinator':_0x111579}),'children':_0x4224e5[_0x13fcfa(0x156)]('button',{'className':_0x31d2ac[_0x13fcfa(0x1c6)](_0x13fcfa(0x1ab),{'univer-cursor-not-allowed':_0xc5154a===_0x134d96['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xc5154a!==_0x134d96[_0x13fcfa(0x105)]}),'type':_0x13fcfa(0x1bc),'children':_0x4224e5['jsx'](_0x18dc00,{'className':_0x13fcfa(0x1b4)})})}):null;}function _0xf44287(_0x371ddc){var _0x545bff=_0x35c375;const {status:_0x1cd06b,coordinator:_0x20aa24}=_0x371ddc;switch(_0x1cd06b){case _0x134d96[_0x545bff(0x1b1)]:return _0x4224e5['jsx'](_0x351085,{'coordinator':_0x20aa24});case _0x134d96[_0x545bff(0x14b)]:return _0x4224e5[_0x545bff(0x156)](_0x82cf93,{'coordinator':_0x20aa24});case _0x134d96[_0x545bff(0xf8)]:return _0x4224e5[_0x545bff(0x156)](_0x163478,{'coordinator':_0x20aa24});case _0x134d96[_0x545bff(0x105)]:return _0x4224e5[_0x545bff(0x156)](_0x2dfa96,{});case _0x134d96['PRESENTING']:return _0x4224e5[_0x545bff(0x156)](_0x47bab1,{'coordinator':_0x20aa24});default:return null;}}function _0x351085(_0x27eef3){var _0x479fb0=_0x35c375;const {coordinator:_0x3cc06f}=_0x27eef3;return _0x4224e5[_0x479fb0(0xf4)](_0x4224e5[_0x479fb0(0x13a)],{'children':[_0x4224e5['jsx'](_0x479fb0(0x129),{'className':_0x479fb0(0x15b),'children':_0x479fb0(0x104)}),_0x4224e5['jsx'](_0x31d2ac[_0x479fb0(0x15e)],{'onClick':()=>_0x3cc06f[_0x479fb0(0x1d2)](),'children':_0x479fb0(0x138)})]});}function _0x82cf93(_0x544d3d){var _0x4c3dac=_0x35c375;const {coordinator:_0x166d82}=_0x544d3d;return _0x4224e5['jsxs'](_0x4224e5['Fragment'],{'children':[_0x4224e5[_0x4c3dac(0x156)](_0x4c3dac(0x129),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x4224e5['jsx'](_0x31d2ac[_0x4c3dac(0x15e)],{'onClick':()=>_0x166d82[_0x4c3dac(0x122)](),'children':_0x4c3dac(0x126)})]});}function _0x163478(_0x29fb41){var _0x598a15=_0x35c375;const {coordinator:_0x566f9f}=_0x29fb41;return _0x4224e5['jsxs'](_0x4224e5[_0x598a15(0x13a)],{'children':[_0x4224e5[_0x598a15(0x156)](_0x598a15(0x129),{'className':_0x598a15(0x15b),'children':_0x598a15(0x1df)}),_0x4224e5[_0x598a15(0x156)](_0x31d2ac[_0x598a15(0x15e)],{'variant':_0x598a15(0x1b0),'onClick':()=>_0x566f9f[_0x598a15(0x1c5)](),'children':_0x598a15(0x1cb)})]});}function _0x47bab1(_0xf763ca){var _0x2cb3f7=_0x35c375;const {coordinator:_0x3f7268}=_0xf763ca;return _0x4224e5[_0x2cb3f7(0xf4)](_0x4224e5[_0x2cb3f7(0x13a)],{'children':[_0x4224e5[_0x2cb3f7(0x156)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x4224e5[_0x2cb3f7(0x156)](_0x31d2ac[_0x2cb3f7(0x15e)],{'variant':_0x2cb3f7(0x1ae),'onClick':()=>_0x3f7268[_0x2cb3f7(0x1de)](),'children':_0x2cb3f7(0x1ca)})]});}function _0x2dfa96(){var _0x4a4a8f=_0x35c375;return _0x4224e5[_0x4a4a8f(0x156)](_0x4224e5[_0x4a4a8f(0x13a)],{'children':_0x4a4a8f(0xee)});}var _0x37739c=Object[_0x35c375(0x1c2)],_0x3306ac=(_0x3c738d,_0x14e15a,_0x14d852,_0x136a2c)=>{for(var _0x554dc5=_0x136a2c>0x1?void 0x0:_0x136a2c?_0x37739c(_0x14e15a,_0x14d852):_0x14e15a,_0x28468f=_0x3c738d['length']-0x1,_0x36dfc9;_0x28468f>=0x0;_0x28468f--)(_0x36dfc9=_0x3c738d[_0x28468f])&&(_0x554dc5=_0x36dfc9(_0x554dc5)||_0x554dc5);return _0x554dc5;},_0x42fb6a=(_0x14f9e5,_0x5f7726)=>(_0x1893a2,_0xd78647)=>_0x5f7726(_0x1893a2,_0xd78647,_0x14f9e5);_0x306c00[_0x35c375(0x1da)]=class extends _0x1c0471[_0x35c375(0x18a)]{constructor(_0x4f50bb,_0x29be04){var _0x4072e8=_0x35c375;super(),this[_0x4072e8(0x107)]=_0x4f50bb,this[_0x4072e8(0x10f)]=_0x29be04,this[_0x4072e8(0x1a4)]();}['_mountLiveShare'](){var _0x2b3e76=_0x35c375;this[_0x2b3e76(0x101)](this[_0x2b3e76(0x10f)][_0x2b3e76(0x170)](_0x364ad0[_0x2b3e76(0x15c)][_0x2b3e76(0x18f)],()=>_0x364ad0[_0x2b3e76(0x1d6)](_0x32b0d1,this['_injector'])));}},_0x306c00[_0x35c375(0x1da)]=_0x3306ac([_0x42fb6a(0x0,_0x1c0471[_0x35c375(0x1a1)](_0x1c0471[_0x35c375(0x197)])),_0x42fb6a(0x1,_0x364ad0[_0x35c375(0x109)])],_0x306c00[_0x35c375(0x1da)]);const _0x3275f2='live-share.config',_0x1b237e={};var _0x2e0a9b=Object[_0x35c375(0x1c2)],_0x356f4d=(_0x1fe9f2,_0x5684d4,_0x1dd425,_0x2b4ec9)=>{var _0x3dfaa4=_0x35c375;for(var _0x5239f4=_0x2b4ec9>0x1?void 0x0:_0x2b4ec9?_0x2e0a9b(_0x5684d4,_0x1dd425):_0x5684d4,_0x201ea4=_0x1fe9f2[_0x3dfaa4(0x1dc)]-0x1,_0x4fea2f;_0x201ea4>=0x0;_0x201ea4--)(_0x4fea2f=_0x1fe9f2[_0x201ea4])&&(_0x5239f4=_0x4fea2f(_0x5239f4)||_0x5239f4);return _0x5239f4;},_0x12699f=(_0x5b46d1,_0x530442)=>(_0x43ef69,_0x107664)=>_0x530442(_0x43ef69,_0x107664,_0x5b46d1);let _0x3aeba5=class extends _0x1c0471[_0x35c375(0x18a)]{constructor(_0xc442f5){var _0x55d4b5=_0x35c375;super(),this[_0x55d4b5(0x159)]=_0xc442f5,this[_0x55d4b5(0x16d)]();}[_0x35c375(0x16d)](){var _0x169bc5=_0x35c375;[_0x3a0119[_0x169bc5(0x11e)]['id'],_0x3a0119[_0x169bc5(0x193)]['id'],_0x154c01['SetWorksheetActiveOperation']['id']][_0x169bc5(0x13b)](_0x2de68e=>{var _0x2751ce=_0x169bc5;this['disposeWithMe'](this[_0x2751ce(0x159)]['registerSharedOperation'](_0x2de68e));});}};_0x3aeba5=_0x356f4d([_0x12699f(0x0,_0x1c0471[_0x35c375(0x1a1)](_0x231f7a))],_0x3aeba5);var _0x9f6ae3=Object['defineProperty'],_0x13a5a4=Object[_0x35c375(0x1c2)],_0x419181=(_0x2ceea0,_0x5d2606,_0x1acb23)=>_0x5d2606 in _0x2ceea0?_0x9f6ae3(_0x2ceea0,_0x5d2606,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1acb23}):_0x2ceea0[_0x5d2606]=_0x1acb23,_0x1fc66d=(_0x85be37,_0x287bd2,_0x1288ea,_0x2eec35)=>{var _0x3da674=_0x35c375;for(var _0x3f8a60=_0x2eec35>0x1?void 0x0:_0x2eec35?_0x13a5a4(_0x287bd2,_0x1288ea):_0x287bd2,_0x3572b7=_0x85be37[_0x3da674(0x1dc)]-0x1,_0x430fca;_0x3572b7>=0x0;_0x3572b7--)(_0x430fca=_0x85be37[_0x3572b7])&&(_0x3f8a60=_0x430fca(_0x3f8a60)||_0x3f8a60);return _0x3f8a60;},_0x1d96d8=(_0x1da6d2,_0x50dc43)=>(_0x264636,_0x237b8c)=>_0x50dc43(_0x264636,_0x237b8c,_0x1da6d2),_0x52b596=(_0x3af11b,_0x5154dd,_0x4b7a96)=>_0x419181(_0x3af11b,typeof _0x5154dd!=_0x35c375(0x186)?_0x5154dd+'':_0x5154dd,_0x4b7a96);const _0x15c3e9=_0x35c375(0x123);_0x306c00[_0x35c375(0x1d9)]=class extends _0x1c0471[_0x35c375(0x1be)]{constructor(_0x38791d=_0x1b237e,_0x10eeb1,_0x19d531){var _0x5d669d=_0x35c375;super(),this[_0x5d669d(0x19c)]=_0x38791d,this[_0x5d669d(0x107)]=_0x10eeb1,this[_0x5d669d(0x120)]=_0x19d531;const {..._0xd36ccf}=_0x1c0471['merge']({},_0x1b237e,this[_0x5d669d(0x19c)]);this[_0x5d669d(0x120)][_0x5d669d(0x1d3)](_0x3275f2,_0xd36ccf);}[_0x35c375(0xec)](){var _0x3d26ae=_0x35c375;_0x1c0471['registerDependencies'](this[_0x3d26ae(0x107)],_0x1c0471[_0x3d26ae(0x1af)]([[_0x231f7a],[_0x306c00[_0x3d26ae(0x14e)]],[_0x3aeba5],[_0x306c00[_0x3d26ae(0x1da)]]],this[_0x3d26ae(0x19c)][_0x3d26ae(0x168)])),_0x1c0471['touchDependencies'](this['_injector'],[[_0x3aeba5]]);}[_0x35c375(0xf5)](){var _0x51d040=_0x35c375;_0x1c0471[_0x51d040(0x11d)](this[_0x51d040(0x107)],[[_0x306c00[_0x51d040(0x1da)]]]);}},_0x52b596(_0x306c00[_0x35c375(0x1d9)],'type',_0x1c0471[_0x35c375(0x145)][_0x35c375(0x1c1)]),_0x52b596(_0x306c00[_0x35c375(0x1d9)],_0x35c375(0x1b5),_0x15c3e9),_0x306c00[_0x35c375(0x1d9)]=_0x1fc66d([_0x1c0471[_0x35c375(0xf0)](_0x3810d2[_0x35c375(0x165)]),_0x1d96d8(0x1,_0x1c0471[_0x35c375(0x1a1)](_0x1c0471[_0x35c375(0x197)])),_0x1d96d8(0x2,_0x1c0471[_0x35c375(0x10c)])],_0x306c00[_0x35c375(0x1d9)]),_0x306c00[_0x35c375(0x177)]=_0x32b0d1,_0x306c00[_0x35c375(0x15a)]=_0x231f7a,_0x306c00[_0x35c375(0x14c)]=_0x134d96,Object[_0x35c375(0x149)](_0x306c00,Symbol[_0x35c375(0x1cf)],{'value':_0x35c375(0x1bd)});}));function _0x546b(){var _0x35c7d8=['presenter','useDependency','_handleOffline','2010426YGMxnt','Inject','0\x200\x2017\x2017','toString','_mountLiveShare','CollaborationEvent','shouldShareOperation','_commandService','className','@univerjs/design','useEffect','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_sharedOperations','live-share-icon','default','mergeOverrideWithDependencies','text','IDLE','_handleTerminate','React','univer-size-4','pluginName','call','send','LIVESHARE_REQUEST_HOST','CommandType','none','@univerjs/core','button','Module','Plugin','operations','stringify','UNIVER_UNKNOWN','getOwnPropertyDescriptor','_stopFollowing','RxDisposable','startFollowing','clsx','path','8NjZxhG','BehaviorSubject','Stop\x20presenting','Start\x20following','event$','function','set','toStringTag','complete','Dropdown','tryStartPresenting','setConfig','IUniverInstanceService','next','connectInjector','hasOwnProperty','LiveShareIcon','UniverLiveSharePlugin','DesktopLiveShareController','_collabSession','length','http://www.w3.org/2000/svg','stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','evenodd','LIVESHARE_OPERATION','getMemberID','InsertSheetMutation','onStarting','defs','You\x27are\x20offline.','forwardRef','DependentOn','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','takeUntil','useRef','jsxs','onRendered','string','registerSharedOperation','NOT_FOLLOWING','assign','then','createElement','getValue','getUnitId','UniverDesign','getOwnPropertySymbols','LIVESHARE_NEW_HOST','disposeWithMe','add','end','Present\x20this\x20document','OFFLINE','prototype','_injector','12470936giyBSC','IUIPartsService','1em','unsubscribe','IConfigService','following','entries','_uiPartsService','_handleOperation','LIVESHARE_TERMINATE','@univerjs/sheets','from','indexOf','apply','UniverUi','_startLiveShareCoordinator','@univerjs-pro/collaboration','extend','1755190hTbvNf','not-following','_entities','touchDependencies','SetZoomRatioOperation','propertyIsEnumerable','_configService','svg','stopFollowing','UNIVER_LIVE_SHARE_PLUGIN','_handleNewChangeSets','parseProtocolChangeset','Stop\x20following','amd','_stopPresenting','div','LiveShareCoordinator','react','data','clear','mask','use','OPERATION','182JRArZk','dispose','rxjs/operators','object','@univerjs-pro/collaboration-client','dispose$','unitId','Start','_reporters','Fragment','forEach','_univerInstanceService','tag','delete','SessionStatus','UniverProCollaboration','UNIVER_SHEET','CollaborationSessionService','UniverProCollaborationClient','SetWorksheetActiveOperation','UniverInstanceType','trim','attrs','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','defineProperty','children','FOLLOWING','LiveShareStatus','352014XJwOGF','LiveShareController','useState','UniverSheetsUi','getCurrentTypeOfUnit$','_fetchOperations','getConfig','9NIVzVE','concat','jsx','_status','offline','_liveShareService','LiveShareService','univer-mb-3\x20univer-w-full\x20univer-text-sm','BuiltInUIPart','idSuffix','Button','idle','UniverSheets','get','toDisposable','has','fill','UniverCollaborationClientPlugin','getInitialStates','init','override','pipe','_commandDisposable','type','getLiveShareCoordinator','_init','replace','SAME_OPERATION_SHARE_INTERVAL','registerComponent','react/jsx-runtime','presenting','defIds','_unitID','params','executeCommand','LiveShare','_collabSessionService','map','_handleNewHost','subscribe','_handleOnline','_startFollowing','_status$','223575VsaOrX','find','1310386EQtVjF','throttleTime','sessionStatus$','Subject','520976NTskwt','symbol','getTypeOfUnitDisposed$','status$','_startPresenting','Disposable','current','LIVESHARE_FETCH_OPERATIONS','@univerjs/sheets-ui','icon','HEADER_MENU','_presenter','url(#$1','rxjs','SetScrollOperation','mutations','colorChannel1','useObservable','Injector','displayName','xlink:href','currentColor','createInstance','_config'];_0x546b=function(){return _0x35c7d8;};return _0x546b();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.10-nightly.
|
|
3
|
+
"version": "0.10.10-nightly.202510180327",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.9",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.10.10-nightly.
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs/design": "0.10.10-nightly.
|
|
53
|
-
"@univerjs/sheets": "0.10.10-nightly.
|
|
54
|
-
"@univerjs/ui": "0.10.10-nightly.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.10-nightly.202510180327",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.10.10-nightly.202510180327",
|
|
52
|
+
"@univerjs/design": "0.10.10-nightly.202510180327",
|
|
53
|
+
"@univerjs/sheets": "0.10.10-nightly.202510180327",
|
|
54
|
+
"@univerjs/sheets-ui": "0.10.10-nightly.202510180327",
|
|
55
|
+
"@univerjs/core": "0.10.10-nightly.202510180327",
|
|
56
|
+
"@univerjs/ui": "0.10.10-nightly.202510180327"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.9.3",
|
|
64
64
|
"vite": "^7.1.10",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs
|
|
66
|
+
"@univerjs-infra/shared": "0.10.10",
|
|
67
|
+
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|