@univerjs-pro/live-share 0.9.1-nightly.202507071607 → 0.9.1-nightly.202507091606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x3d2949=_0x1593;(function(_0x4f3938,_0x431a1a){var _0x50050f=_0x1593,_0x374692=_0x4f3938();while(!![]){try{var _0x50ff19=parseInt(_0x50050f(0x1d6))/0x1+parseInt(_0x50050f(0x207))/0x2+parseInt(_0x50050f(0x1b0))/0x3*(parseInt(_0x50050f(0x204))/0x4)+parseInt(_0x50050f(0x1a7))/0x5*(parseInt(_0x50050f(0x157))/0x6)+-parseInt(_0x50050f(0x14d))/0x7+-parseInt(_0x50050f(0x165))/0x8*(-parseInt(_0x50050f(0x172))/0x9)+-parseInt(_0x50050f(0x215))/0xa;if(_0x50ff19===_0x431a1a)break;else _0x374692['push'](_0x374692['shift']());}catch(_0x3af80b){_0x374692['push'](_0x374692['shift']());}}}(_0x2978,0xbd32f));var U=Object[_0x3d2949(0x175)],F=(_0x3e015c,_0x2db239,_0x574bbd)=>_0x2db239 in _0x3e015c?U(_0x3e015c,_0x2db239,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x574bbd}):_0x3e015c[_0x2db239]=_0x574bbd,v=(_0x373d98,_0x1ee170,_0x447ed5)=>F(_0x373d98,typeof _0x1ee170!=_0x3d2949(0x183)?_0x1ee170+'':_0x1ee170,_0x447ed5);Object['defineProperty'](exports,Symbol[_0x3d2949(0x17a)],{'value':_0x3d2949(0x155)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$='live-share.config',x={};class O extends o[_0x3d2949(0x14b)]{constructor(){var _0x3b2ce5=_0x3d2949;super(...arguments),v(this,_0x3b2ce5(0x1b2),new Set()),v(this,_0x3b2ce5(0x17b),new Set());}[_0x3d2949(0x1d8)](_0x287335){var _0x45844d=_0x3d2949;return this['_sharedOperations'][_0x45844d(0x168)](_0x287335),o[_0x45844d(0x180)](()=>this['_sharedOperations'][_0x45844d(0x1f1)](_0x287335));}[_0x3d2949(0x174)](_0x5b9f3b){var _0x3dd489=_0x3d2949;return this['_reporters'][_0x3dd489(0x168)](_0x5b9f3b),o[_0x3dd489(0x180)](()=>this['_reporters'][_0x3dd489(0x1f1)](_0x5b9f3b));}['shouldShareOperation'](_0x56aeec){var _0x2f9c04=_0x3d2949;return this[_0x2f9c04(0x1b2)][_0x2f9c04(0x1b4)](_0x56aeec);}[_0x3d2949(0x1ac)](_0x587263){var _0x1bb7eb=_0x3d2949;return Array['from'](this[_0x1bb7eb(0x17b)])[_0x1bb7eb(0x16a)](_0x4ddcd7=>_0x4ddcd7(_0x587263));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x52a903,_0x50ece1,_0x28c068,_0x481e48)=>{var _0x3bc794=_0x3d2949;for(var _0x4e8e23=_0x481e48>0x1?void 0x0:_0x481e48?H(_0x50ece1,_0x28c068):_0x50ece1,_0x47bf36=_0x52a903[_0x3bc794(0x1b5)]-0x1,_0x131c40;_0x47bf36>=0x0;_0x47bf36--)(_0x131c40=_0x52a903[_0x47bf36])&&(_0x4e8e23=_0x131c40(_0x4e8e23)||_0x4e8e23);return _0x4e8e23;},k=(_0x35f0f8,_0x207977)=>(_0x22ddc4,_0x1e4daf)=>_0x207977(_0x22ddc4,_0x1e4daf,_0x35f0f8);let E=class extends o['Disposable']{constructor(_0x481bcc){var _0x4ae5f4=_0x3d2949;super(),this[_0x4ae5f4(0x1ee)]=_0x481bcc,this[_0x4ae5f4(0x1a9)]();}[_0x3d2949(0x1a9)](){var _0x2c7b52=_0x3d2949;[w['SetZoomRatioOperation']['id'],w[_0x2c7b52(0x194)]['id'],C[_0x2c7b52(0x1f5)]['id']]['forEach'](_0x4421ee=>{var _0x355d6a=_0x2c7b52;this[_0x355d6a(0x199)](this['_liveShareService'][_0x355d6a(0x1d8)](_0x4421ee));});}};E=V([k(0x0,o[_0x3d2949(0x156)](O))],E);var u=function(){var _0x3a62c7=_0x3d2949;return u=Object[_0x3a62c7(0x1a0)]||function(_0x5a3307){var _0x42c2e4=_0x3a62c7;for(var _0x586a9,_0x40ae12=0x1,_0x38c650=arguments['length'];_0x40ae12<_0x38c650;_0x40ae12++){_0x586a9=arguments[_0x40ae12];for(var _0x539ec7 in _0x586a9)Object[_0x42c2e4(0x18d)]['hasOwnProperty'][_0x42c2e4(0x17c)](_0x586a9,_0x539ec7)&&(_0x5a3307[_0x539ec7]=_0x586a9[_0x539ec7]);}return _0x5a3307;},u[_0x3a62c7(0x1a5)](this,arguments);},M=function(_0x233ff2,_0x33933d){var _0x4ac4ce=_0x3d2949,_0x48f872={};for(var _0x3b0a63 in _0x233ff2)Object['prototype'][_0x4ac4ce(0x1b3)][_0x4ac4ce(0x17c)](_0x233ff2,_0x3b0a63)&&_0x33933d[_0x4ac4ce(0x1a2)](_0x3b0a63)<0x0&&(_0x48f872[_0x3b0a63]=_0x233ff2[_0x3b0a63]);if(_0x233ff2!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x2ef219=0x0,_0x3b0a63=Object[_0x4ac4ce(0x189)](_0x233ff2);_0x2ef219<_0x3b0a63[_0x4ac4ce(0x1b5)];_0x2ef219++)_0x33933d[_0x4ac4ce(0x1a2)](_0x3b0a63[_0x2ef219])<0x0&&Object['prototype'][_0x4ac4ce(0x1f6)][_0x4ac4ce(0x17c)](_0x233ff2,_0x3b0a63[_0x2ef219])&&(_0x48f872[_0x3b0a63[_0x2ef219]]=_0x233ff2[_0x3b0a63[_0x2ef219]]);}return _0x48f872;},j=f[_0x3d2949(0x1b1)](function(_0x3dfbc6,_0x4b9ac1){var _0x59b94a=_0x3d2949,_0x279421=_0x3dfbc6[_0x59b94a(0x15e)],_0x2e0301=_0x3dfbc6['id'],_0x5575ea=_0x3dfbc6[_0x59b94a(0x209)],_0x18e412=_0x3dfbc6[_0x59b94a(0x143)],_0x1e0940=M(_0x3dfbc6,[_0x59b94a(0x15e),'id',_0x59b94a(0x209),_0x59b94a(0x143)]),_0x565af3=_0x59b94a(0x1d5)[_0x59b94a(0x182)](_0x2e0301,'\x20')[_0x59b94a(0x182)](_0x5575ea||'')[_0x59b94a(0x15d)](),_0x4bc818=f['useRef']('_'[_0x59b94a(0x182)](G()));return y(_0x279421,''[_0x59b94a(0x182)](_0x2e0301),{'defIds':_0x279421[_0x59b94a(0x21e)],'idSuffix':_0x4bc818[_0x59b94a(0x14f)]},u({'ref':_0x4b9ac1,'className':_0x565af3},_0x1e0940),_0x18e412);});function y(_0x1adcc9,_0x3cd97d,_0x13968d,_0x31965a,_0x29ed50){var _0x37ec8b=_0x3d2949;return f[_0x37ec8b(0x208)](_0x1adcc9[_0x37ec8b(0x19a)],u(u({'key':_0x3cd97d},q(_0x1adcc9,_0x13968d,_0x29ed50)),_0x31965a),(W(_0x1adcc9,_0x13968d)[_0x37ec8b(0x1a1)]||[])[_0x37ec8b(0x16a)](function(_0xe7ef3d,_0x1a12c3){var _0x35f597=_0x37ec8b;return y(_0xe7ef3d,''[_0x35f597(0x182)](_0x3cd97d,'-')[_0x35f597(0x182)](_0x1adcc9[_0x35f597(0x19a)],'-')[_0x35f597(0x182)](_0x1a12c3),_0x13968d,void 0x0,_0x29ed50);}));}function q(_0x45e793,_0x3a71e6,_0x28cff5){var _0x278e87=_0x3d2949,_0x17d525=u({},_0x45e793[_0x278e87(0x147)]);_0x28cff5!=null&&_0x28cff5[_0x278e87(0x203)]&&_0x17d525[_0x278e87(0x17d)]===_0x278e87(0x203)&&(_0x17d525[_0x278e87(0x17d)]=_0x28cff5['colorChannel1']),_0x45e793[_0x278e87(0x19a)]===_0x278e87(0x15a)&&_0x17d525['id']&&(_0x17d525['id']=_0x17d525['id']+_0x3a71e6[_0x278e87(0x19c)]),Object[_0x278e87(0x190)](_0x17d525)[_0x278e87(0x216)](function(_0x4d875e){var _0xbd2b7=_0x278e87,_0x32fda0=_0x4d875e[0x0],_0x5ea707=_0x4d875e[0x1];_0x32fda0===_0xbd2b7(0x15a)&&typeof _0x5ea707==_0xbd2b7(0x178)&&(_0x17d525[_0x32fda0]=_0x5ea707[_0xbd2b7(0x160)](/url\(#(.*)\)/,_0xbd2b7(0x1ff)['concat'](_0x3a71e6[_0xbd2b7(0x19c)],')')));});var _0x45bd17=_0x3a71e6['defIds'];return!_0x45bd17||_0x45bd17['length']===0x0||(_0x45e793[_0x278e87(0x19a)]==='use'&&_0x17d525[_0x278e87(0x20b)]&&(_0x17d525[_0x278e87(0x20b)]=_0x17d525['xlink:href']+_0x3a71e6[_0x278e87(0x19c)]),Object[_0x278e87(0x190)](_0x17d525)['forEach'](function(_0x1216dd){var _0x2ef641=_0x278e87,_0x1e934b=_0x1216dd[0x0],_0x46f434=_0x1216dd[0x1];typeof _0x46f434=='string'&&(_0x17d525[_0x1e934b]=_0x46f434[_0x2ef641(0x160)](/url\(#(.*)\)/,_0x2ef641(0x1ff)[_0x2ef641(0x182)](_0x3a71e6[_0x2ef641(0x19c)],')')));})),_0x17d525;}function W(_0x19340c,_0x5b4efa){var _0xe03e62=_0x3d2949,_0x8c5895,_0x1c3c1b=_0x5b4efa[_0xe03e62(0x21e)];return!_0x1c3c1b||_0x1c3c1b[_0xe03e62(0x1b5)]===0x0?_0x19340c:_0x19340c['tag']==='defs'&&(!((_0x8c5895=_0x19340c[_0xe03e62(0x1a1)])===null||_0x8c5895===void 0x0)&&_0x8c5895[_0xe03e62(0x1b5)])?u(u({},_0x19340c),{'children':_0x19340c[_0xe03e62(0x1a1)][_0xe03e62(0x16a)](function(_0x1cb0d5){var _0x20ad7d=_0xe03e62;return typeof _0x1cb0d5[_0x20ad7d(0x147)]['id']==_0x20ad7d(0x178)&&_0x1c3c1b&&_0x1c3c1b[_0x20ad7d(0x1e1)](_0x1cb0d5['attrs']['id'])?u(u({},_0x1cb0d5),{'attrs':u(u({},_0x1cb0d5[_0x20ad7d(0x147)]),{'id':_0x1cb0d5['attrs']['id']+_0x5b4efa[_0x20ad7d(0x19c)]})}):_0x1cb0d5;})}):_0x19340c;}function G(){var _0x376cb7=_0x3d2949;return Math['random']()[_0x376cb7(0x1b8)](0x24)[_0x376cb7(0x1ab)](0x2,0x8);}j['displayName']='UniverIcon';var B={'tag':_0x3d2949(0x219),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3d2949(0x1cc),'viewBox':_0x3d2949(0x19f),'width':_0x3d2949(0x1e9),'height':'1em'},'children':[{'tag':_0x3d2949(0x1e5),'attrs':{'fill':'currentColor','d':_0x3d2949(0x187)}},{'tag':_0x3d2949(0x1e5),'attrs':{'fill':_0x3d2949(0x1ea),'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':'evenodd','clipRule':_0x3d2949(0x18f)}}]},P=f[_0x3d2949(0x1b1)](function(_0x823389,_0x33f5ac){var _0x300832=_0x3d2949;return f[_0x300832(0x208)](j,Object[_0x300832(0x1a0)]({},_0x823389,{'id':_0x300832(0x144),'ref':_0x33f5ac,'icon':B}));});P[_0x3d2949(0x1a8)]=_0x3d2949(0x146);var Y=Object[_0x3d2949(0x152)],R=(_0x587af8,_0x57fa42,_0x8f0648,_0x3cb693)=>{var _0x16c8cf=_0x3d2949;for(var _0x30f6dc=_0x3cb693>0x1?void 0x0:_0x3cb693?Y(_0x57fa42,_0x8f0648):_0x57fa42,_0x1d4eb3=_0x587af8[_0x16c8cf(0x1b5)]-0x1,_0x10f0ab;_0x1d4eb3>=0x0;_0x1d4eb3--)(_0x10f0ab=_0x587af8[_0x1d4eb3])&&(_0x30f6dc=_0x10f0ab(_0x30f6dc)||_0x30f6dc);return _0x30f6dc;},S=(_0x223eb8,_0xc9b339)=>(_0x4b4437,_0x5af1a6)=>_0xc9b339(_0x4b4437,_0x5af1a6,_0x223eb8);exports[_0x3d2949(0x163)]=class extends o[_0x3d2949(0x171)]{constructor(_0x326ca2,_0x4ca046,_0x10b5f0){var _0x5da7c9=_0x3d2949;super(),v(this,_0x5da7c9(0x1b7),new Map()),(this[_0x5da7c9(0x1dd)]=_0x326ca2,this[_0x5da7c9(0x198)]=_0x4ca046,this['_collabSessionService']=_0x10b5f0,this[_0x5da7c9(0x1a9)]());}async[_0x3d2949(0x179)](_0x59f050){var _0x2f6020=_0x3d2949;return this[_0x2f6020(0x1b7)]['has'](_0x59f050)||await this['_startLiveShareCoordinator'](_0x59f050),this[_0x2f6020(0x1b7)][_0x2f6020(0x1f7)](_0x59f050);}[_0x3d2949(0x1a9)](){var _0xee201c=_0x3d2949;this['_univerInstanceService'][_0xee201c(0x16e)](o[_0xee201c(0x1f0)][_0xee201c(0x1bc)])['pipe'](b[_0xee201c(0x1c3)](this[_0xee201c(0x1a4)]))[_0xee201c(0x1f3)](async _0x214a7b=>{var _0x125593=_0xee201c;const _0x28bb43=_0x214a7b['getUnitId']();this[_0x125593(0x1b7)]['has'](_0x28bb43)||this[_0x125593(0x191)](_0x28bb43);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0xee201c(0x1bc)])[_0xee201c(0x149)](b[_0xee201c(0x1c3)](this[_0xee201c(0x1a4)]))[_0xee201c(0x1f3)](_0xb224ec=>{var _0x190db4=_0xee201c;const _0x205006=_0xb224ec[_0x190db4(0x21b)](),_0x5b1b2b=this[_0x190db4(0x1b7)][_0x190db4(0x1f7)](_0x205006);_0x5b1b2b==null||_0x5b1b2b[_0x190db4(0x169)]();});}async['_startLiveShareCoordinator'](_0x245404){var _0x3ce1bb=_0x3d2949;const _0x1089fc=await this[_0x3ce1bb(0x1c2)]['requireSession'](_0x245404),_0x1f8f0c=this[_0x3ce1bb(0x198)]['createInstance'](exports[_0x3ce1bb(0x1ad)],_0x245404,_0x1089fc);return _0x1f8f0c[_0x3ce1bb(0x1d2)](),this[_0x3ce1bb(0x1b7)][_0x3ce1bb(0x195)](_0x245404,_0x1f8f0c),_0x1f8f0c;}},exports[_0x3d2949(0x163)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o['Inject'](o[_0x3d2949(0x1b9)])),S(0x2,o[_0x3d2949(0x156)](m['CollaborationSessionService']))],exports[_0x3d2949(0x163)]);var h=(_0x500d97=>(_0x500d97[_0x3d2949(0x200)]=_0x3d2949(0x20a),_0x500d97[_0x3d2949(0x14e)]='idle',_0x500d97[_0x3d2949(0x188)]=_0x3d2949(0x192),_0x500d97[_0x3d2949(0x1e4)]=_0x3d2949(0x1e6),_0x500d97['PRESENTING']=_0x3d2949(0x218),_0x500d97))(h||{});const Z=_0x3d2949(0x19e),J=0xc8;exports[_0x3d2949(0x1ad)]=class extends o[_0x3d2949(0x171)]{constructor(_0x268e10,_0x131250,_0x5e232a,_0x29aef1,_0x361ae4){var _0x335871=_0x3d2949;super(),v(this,_0x335871(0x158),new D['BehaviorSubject'](_0x335871(0x1c6))),v(this,_0x335871(0x140),this[_0x335871(0x158)]['asObservable']()),v(this,'_init',!0x1),v(this,_0x335871(0x17e),null),v(this,'_presenter',null),(this[_0x335871(0x1d4)]=_0x268e10,this['_collabSession']=_0x131250,this[_0x335871(0x1c7)]=_0x5e232a,this[_0x335871(0x1ee)]=_0x29aef1,this['_commandService']=_0x361ae4);}get['_status'](){var _0x5b8293=_0x3d2949;return this['_status$'][_0x5b8293(0x1fd)]();}[_0x3d2949(0x169)](){var _0x17b1e8=_0x3d2949,_0x4b3894;(_0x4b3894=this[_0x17b1e8(0x17e)])==null||_0x4b3894['dispose'](),this[_0x17b1e8(0x158)][_0x17b1e8(0x20e)]('idle'),this[_0x17b1e8(0x158)][_0x17b1e8(0x1d7)]();}[_0x3d2949(0x1d2)](){var _0x9f9419=_0x3d2949;this[_0x9f9419(0x1a9)]||(this[_0x9f9419(0x1a9)]=!0x0,this[_0x9f9419(0x1a6)][_0x9f9419(0x16b)][_0x9f9419(0x149)](b['takeUntil'](this[_0x9f9419(0x1a4)]))[_0x9f9419(0x1f3)](_0x47ce7c=>{var _0x338c2e=_0x9f9419;switch(_0x47ce7c){case m['SessionStatus']['OFFLINE']:this[_0x338c2e(0x185)]();break;case m[_0x338c2e(0x19b)][_0x338c2e(0x213)]:this[_0x338c2e(0x20d)]();break;}}),this[_0x9f9419(0x1a6)]['event$'][_0x9f9419(0x149)](b[_0x9f9419(0x1c3)](this['dispose$']))[_0x9f9419(0x1f3)](_0x11a797=>{var _0x278320=_0x9f9419;const {eventID:_0x26767a}=_0x11a797;switch(_0x26767a){case _[_0x278320(0x1bb)]['LIVESHARE_NEW_HOST']:this[_0x278320(0x14c)](_0x11a797);break;case _[_0x278320(0x1bb)][_0x278320(0x150)]:this['_handleOperation'](_0x11a797);break;case _['CollaborationEvent'][_0x278320(0x1bf)]:this['_handleTerminate']();break;case _[_0x278320(0x1bb)][_0x278320(0x1e7)]:this[_0x278320(0x164)](_0x11a797);break;}}));}[_0x3d2949(0x1c0)](){var _0x4b6f74=_0x3d2949;this['_collabSession'][_0x4b6f74(0x1e3)]({'eventID':_[_0x4b6f74(0x1bb)][_0x4b6f74(0x161)],'data':{'unitID':this[_0x4b6f74(0x1d4)],'userID':this['_collabSession'][_0x4b6f74(0x193)]()}},this[_0x4b6f74(0x1d4)]);}[_0x3d2949(0x1ce)](){var _0x4a8a13=_0x3d2949;this[_0x4a8a13(0x1de)]==='presenting'&&(this['_status$'][_0x4a8a13(0x20e)]('idle'),this[_0x4a8a13(0x1a6)][_0x4a8a13(0x1e3)]({'eventID':_[_0x4a8a13(0x1bb)][_0x4a8a13(0x1bf)],'data':{'unitID':this[_0x4a8a13(0x1d4)]}},this[_0x4a8a13(0x1d4)]));}[_0x3d2949(0x173)](){var _0x2f9c1c=_0x3d2949;this[_0x2f9c1c(0x1de)]===_0x2f9c1c(0x1e6)&&(this[_0x2f9c1c(0x158)][_0x2f9c1c(0x20e)](_0x2f9c1c(0x192)),this[_0x2f9c1c(0x201)]());}[_0x3d2949(0x1af)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x3d2949(0x14c)](_0x139f1d){var _0x4cbd08=_0x3d2949;const {presenter:_0x48450}=_0x139f1d['data'],_0xf4a5fb=this[_0x4cbd08(0x1a6)][_0x4cbd08(0x193)]();this[_0x4cbd08(0x1df)]=_0x48450,_0x48450===_0xf4a5fb?(this[_0x4cbd08(0x154)](),this['_startPresenting']()):this[_0x4cbd08(0x1de)]!=='not-following'&&(this[_0x4cbd08(0x197)](),this[_0x4cbd08(0x201)]());}[_0x3d2949(0x176)](){var _0xc9b6fa=_0x3d2949;const _0x3fa301={'eventID':_[_0xc9b6fa(0x1bb)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession']['send'](_0x3fa301,this['_unitID']);}[_0x3d2949(0x18b)](){var _0x1d9ae7=_0x3d2949;this[_0x1d9ae7(0x1df)]=null,this['_status']!==_0x1d9ae7(0x218)&&this[_0x1d9ae7(0x217)]();}[_0x3d2949(0x164)](_0x45d603){var _0x1c4b7c=_0x3d2949;if(this['_status']===_0x1c4b7c(0x192)&&this['_presenter']===_0x45d603['data']['memberID']){const _0x374249=_[_0x1c4b7c(0x151)](_0x45d603[_0x1c4b7c(0x1dc)])[_0x1c4b7c(0x15f)][_0x1c4b7c(0x1e0)]()[_0x1c4b7c(0x186)](_0x3c403f=>_0x3c403f['id']===C[_0x1c4b7c(0x1c9)]['id']);if(_0x374249){const _0x141d32=_0x374249['params']['unitId'],_0x303e13=_0x374249[_0x1c4b7c(0x159)][_0x1c4b7c(0x17f)]['id'];setTimeout(()=>{var _0x485150=_0x1c4b7c;this['_commandService'][_0x485150(0x210)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x141d32,'subUnitId':_0x303e13},{'fromCollab':!0x0});});}}}[_0x3d2949(0x1db)](){var _0x2f5590=_0x3d2949;this[_0x2f5590(0x158)]['next'](_0x2f5590(0x218));const _0x154044=new Map(),_0x144ad1=this[_0x2f5590(0x17e)]=new o[(_0x2f5590(0x1d3))]();_0x144ad1['add'](o[_0x2f5590(0x180)](()=>{var _0x286340=_0x2f5590;_0x154044['forEach'](_0x5a98a7=>_0x5a98a7[_0x286340(0x1d7)]()),_0x154044['clear']();})),_0x144ad1[_0x2f5590(0x168)](this[_0x2f5590(0x1ae)][_0x2f5590(0x202)](_0x267981=>{var _0x244649=_0x2f5590,_0x4ce3a2;if(_0x267981[_0x244649(0x1ef)]!==o['CommandType'][_0x244649(0x166)]||!this[_0x244649(0x1ee)][_0x244649(0x18e)](_0x267981['id']))return;const {id:_0x544fde}=_0x267981;let _0x1634f2;_0x154044[_0x244649(0x1b4)](_0x544fde)?_0x1634f2=_0x154044[_0x244649(0x1f7)](_0x544fde):(_0x1634f2=new D[(_0x244649(0x1ca))](),_0x154044[_0x244649(0x195)](_0x544fde,_0x1634f2),_0x1634f2[_0x244649(0x149)](b[_0x244649(0x18c)]((_0x4ce3a2=this[_0x244649(0x1c7)][_0x244649(0x162)](Z))!=null?_0x4ce3a2:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x8b94fd=>{var _0x1894f8=_0x244649;this[_0x1894f8(0x1a6)][_0x1894f8(0x1e3)]({'eventID':_['CollaborationEvent'][_0x1894f8(0x150)],'data':{'unitID':this[_0x1894f8(0x1d4)],'operations':{[_0x8b94fd['id']]:{'id':_0x8b94fd['id'],'params':JSON[_0x1894f8(0x16c)](_0x8b94fd[_0x1894f8(0x159)])}}}},this[_0x1894f8(0x1d4)]);})),_0x1634f2[_0x244649(0x20e)](_0x267981);})),this[_0x2f5590(0x1ee)][_0x2f5590(0x1ac)](this[_0x2f5590(0x1d4)])['forEach'](_0x2b851a=>this[_0x2f5590(0x1a6)][_0x2f5590(0x1e3)]({'eventID':_[_0x2f5590(0x1bb)][_0x2f5590(0x150)],'data':{'unitID':this[_0x2f5590(0x1d4)],'operations':{[_0x2b851a['id']]:{'id':_0x2b851a['id'],'params':JSON[_0x2f5590(0x16c)](_0x2b851a[_0x2f5590(0x159)])}}}},this[_0x2f5590(0x1d4)]));}[_0x3d2949(0x197)](){var _0x271476=_0x3d2949,_0x3b7486;this[_0x271476(0x158)][_0x271476(0x20e)](_0x271476(0x1c6)),(_0x3b7486=this[_0x271476(0x17e)])==null||_0x3b7486[_0x271476(0x169)](),this[_0x271476(0x17e)]=null;}[_0x3d2949(0x201)](){var _0x4f7e14=_0x3d2949,_0x43d551;(_0x43d551=this['_commandDisposable'])==null||_0x43d551[_0x4f7e14(0x169)](),this[_0x4f7e14(0x158)][_0x4f7e14(0x20e)]('following');}[_0x3d2949(0x217)](){var _0x22997c=_0x3d2949,_0x155fa0;this[_0x22997c(0x158)]['next'](_0x22997c(0x1c6)),(_0x155fa0=this['_commandDisposable'])==null||_0x155fa0[_0x22997c(0x169)](),this[_0x22997c(0x17e)]=null;}['_stopFollowing'](){var _0xe80b6=_0x3d2949,_0x5d71be;this['_status$']['next']('not-following'),(_0x5d71be=this[_0xe80b6(0x17e)])==null||_0x5d71be[_0xe80b6(0x169)]();}[_0x3d2949(0x1be)](_0x5f325b){var _0x39d16b=_0x3d2949;if([_0x39d16b(0x218),_0x39d16b(0x1e6),_0x39d16b(0x20a)][_0x39d16b(0x1e1)](this[_0x39d16b(0x1de)])||!_0x5f325b[_0x39d16b(0x1dc)][_0x39d16b(0x1eb)]||_0x5f325b[_0x39d16b(0x1dc)][_0x39d16b(0x1eb)]===this['_collabSession'][_0x39d16b(0x193)]())return;this[_0x39d16b(0x1de)]===_0x39d16b(0x1c6)&&this[_0x39d16b(0x201)]();const _0x1076c2=_0x5f325b[_0x39d16b(0x1dc)][_0x39d16b(0x1ed)];Object[_0x39d16b(0x1c1)](_0x1076c2)[_0x39d16b(0x216)](_0x51ed57=>{var _0x108aee=_0x39d16b;this[_0x108aee(0x1ae)][_0x108aee(0x210)](_0x51ed57['id'],_0x51ed57['params']?JSON[_0x108aee(0x148)](_0x51ed57['params']):null,{'fromCollab':!0x0});});}[_0x3d2949(0x185)](){var _0x2ede6d=_0x3d2949,_0x5dd3f5;this[_0x2ede6d(0x158)][_0x2ede6d(0x20e)](_0x2ede6d(0x20a)),(_0x5dd3f5=this['_commandDisposable'])==null||_0x5dd3f5[_0x2ede6d(0x169)]();}[_0x3d2949(0x20d)](){var _0x587a5c=_0x3d2949;this[_0x587a5c(0x158)]['next'](_0x587a5c(0x1c6)),this[_0x587a5c(0x176)]();}},exports[_0x3d2949(0x1ad)]=R([S(0x2,o[_0x3d2949(0x1d0)]),S(0x3,o[_0x3d2949(0x156)](O)),S(0x4,o['ICommandService'])],exports[_0x3d2949(0x1ad)]);function A(){var _0xac2e96=_0x3d2949;const _0x2e7410=p[_0xac2e96(0x1aa)](exports[_0xac2e96(0x163)]),_0x212331=p[_0xac2e96(0x1aa)](o['IUniverInstanceService']),_0x4549b8=p[_0xac2e96(0x20f)](()=>_0x212331[_0xac2e96(0x1d9)](o[_0xac2e96(0x1f0)][_0xac2e96(0x1bc)]),void 0x0,!0x1,[]),[_0x12c45b,_0xf698bf]=f['useState'](null),[_0x3878c6,_0x3a690e]=f[_0xac2e96(0x1c4)](h[_0xac2e96(0x14e)]),_0x8bbfd4=f[_0xac2e96(0x181)](null);return f['useEffect'](()=>(_0x4549b8&&_0x2e7410[_0xac2e96(0x179)](_0x4549b8[_0xac2e96(0x21b)]())[_0xac2e96(0x1fc)](_0x452f78=>{var _0x61a3f7=_0xac2e96;_0xf698bf(_0x452f78),_0x8bbfd4[_0x61a3f7(0x14f)]=_0x452f78[_0x61a3f7(0x140)][_0x61a3f7(0x1f3)](_0x256890=>{_0x3a690e(_0x256890);});}),()=>{var _0x403be5=_0xac2e96,_0x273c75;(_0x273c75=_0x8bbfd4['current'])==null||_0x273c75[_0x403be5(0x1fe)](),_0x8bbfd4[_0x403be5(0x14f)]=null;}),[_0x4549b8,_0x2e7410]),_0x12c45b?l[_0xac2e96(0x196)](g['Dropdown'],{'align':_0xac2e96(0x1d1),'disabled':_0x3878c6===h[_0xac2e96(0x200)],'className':_0xac2e96(0x167),'overlay':l[_0xac2e96(0x196)](K,{'status':_0x3878c6,'coordinator':_0x12c45b}),'children':l['jsx'](_0xac2e96(0x170),{'className':g[_0xac2e96(0x1f4)](_0xac2e96(0x1c5),{'univer-cursor-not-allowed':_0x3878c6===h[_0xac2e96(0x200)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3878c6!==h[_0xac2e96(0x200)]}),'type':_0xac2e96(0x170),'children':l[_0xac2e96(0x196)](P,{'className':_0xac2e96(0x1bd)})})}):null;}function K(_0x1d478a){var _0x3450d4=_0x3d2949;const {status:_0x1e4ede,coordinator:_0x5a6454}=_0x1d478a;switch(_0x1e4ede){case h[_0x3450d4(0x14e)]:return l[_0x3450d4(0x196)](z,{'coordinator':_0x5a6454});case h[_0x3450d4(0x188)]:return l[_0x3450d4(0x196)](Q,{'coordinator':_0x5a6454});case h[_0x3450d4(0x1e4)]:return l[_0x3450d4(0x196)](X,{'coordinator':_0x5a6454});case h[_0x3450d4(0x200)]:return l[_0x3450d4(0x196)](te,{});case h[_0x3450d4(0x212)]:return l[_0x3450d4(0x196)](ee,{'coordinator':_0x5a6454});default:return null;}}function z(_0x1080a1){var _0x5ac393=_0x3d2949;const {coordinator:_0x1c090d}=_0x1080a1;return l[_0x5ac393(0x1cb)](l[_0x5ac393(0x1f2)],{'children':[l[_0x5ac393(0x196)](_0x5ac393(0x214),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5ac393(0x14a)}),l[_0x5ac393(0x196)](g[_0x5ac393(0x1a3)],{'onClick':()=>_0x1c090d['tryStartPresenting'](),'children':_0x5ac393(0x16f)})]});}function Q(_0x5e395c){var _0x557343=_0x3d2949;const {coordinator:_0x51cc69}=_0x5e395c;return l[_0x557343(0x1cb)](l[_0x557343(0x1f2)],{'children':[l[_0x557343(0x196)](_0x557343(0x214),{'className':_0x557343(0x1cf),'children':_0x557343(0x21a)}),l[_0x557343(0x196)](g['Button'],{'onClick':()=>_0x51cc69[_0x557343(0x1af)](),'children':_0x557343(0x142)})]});}function _0x2978(){var _0x92550b=['getOwnPropertySymbols','LiveShare','_handleTerminate','throttleTime','prototype','shouldShareOperation','evenodd','entries','_startLiveShareCoordinator','following','getMemberID','SetScrollOperation','set','jsx','_stopPresenting','_injector','disposeWithMe','tag','SessionStatus','idSuffix','connectInjector','SAME_OPERATION_SHARE_INTERVAL','0\x200\x2017\x2017','assign','children','indexOf','Button','dispose$','apply','_collabSession','2635fGzxEF','displayName','_init','useDependency','substring','getInitialStates','LiveShareCoordinator','_commandService','stopFollowing','442959iRoRIK','forwardRef','_sharedOperations','hasOwnProperty','has','length','Stop\x20presenting','_entities','toString','Injector','You\x27re\x20presenting\x20the\x20document','CollaborationEvent','UNIVER_SHEET','univer-size-4','_handleOperation','LIVESHARE_TERMINATE','tryStartPresenting','values','_collabSessionService','takeUntil','useState','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','idle','_configService','merge','InsertSheetMutation','Subject','jsxs','none','LiveShareStatus','stopPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','IConfigService','end','init','DisposableCollection','_unitID','univerjs-icon\x20univerjs-icon-','448582wtnOpF','complete','registerSharedOperation','getCurrentTypeOfUnit$','mergeOverrideWithDependencies','_startPresenting','data','_univerInstanceService','_status','_presenter','reverse','includes','override','send','NOT_FOLLOWING','path','not-following','NEW_CHANGESETS','text','1em','currentColor','presenter','IUIPartsService','operations','_liveShareService','type','UniverInstanceType','delete','Fragment','subscribe','clsx','SetWorksheetActiveOperation','propertyIsEnumerable','get','_uiPartsService','UNIVER_UNKNOWN','UniverCollaborationClientPlugin','_config','then','getValue','unsubscribe','url(#$1','OFFLINE','_startFollowing','onCommandExecuted','colorChannel1','40CjjTPP','UniverLiveSharePlugin','UNIVER_LIVE_SHARE_PLUGIN','622990IVnMKP','createElement','className','offline','xlink:href','DesktopLiveShareController','_handleOnline','next','useObservable','executeCommand','registerComponent','PRESENTING','ONLINE','div','26222650HhaNQc','forEach','_beIdle','presenting','svg','You\x27re\x20following\x20the\x20presenter','getUnitId','onStarting','pluginName','defIds','status$','default','Stop\x20following','extend','live-share-icon','DependentOn','LiveShareIcon','attrs','parse','pipe','Present\x20this\x20document','Disposable','_handleNewHost','3591077mctTcH','IDLE','current','LIVESHARE_OPERATION','parseProtocolChangeset','getOwnPropertyDescriptor','_mountLiveShare','_stopFollowing','Module','Inject','9198SbQZeh','_status$','params','mask','You\x27re\x20not\x20following\x20the\x20presenter','HEADER_MENU','trim','icon','mutations','replace','LIVESHARE_REQUEST_HOST','getConfig','LiveShareController','_handleNewChangeSets','7192BBwJOx','OPERATION','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','add','dispose','map','sessionStatus$','stringify','onRendered','getTypeOfUnitAdded$','Start','button','RxDisposable','8667LHMraJ','startFollowing','registerInitialStateReporter','defineProperty','_fetchOperations','touchDependencies','string','getLiveShareCoordinator','toStringTag','_reporters','call','fill','_commandDisposable','sheet','toDisposable','useRef','concat','symbol','You\x27are\x20offline.','_handleOffline','find','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','FOLLOWING'];_0x2978=function(){return _0x92550b;};return _0x2978();}function X(_0x2e0edf){var _0x2a61d0=_0x3d2949;const {coordinator:_0xe5a21d}=_0x2e0edf;return l['jsxs'](l[_0x2a61d0(0x1f2)],{'children':[l['jsx'](_0x2a61d0(0x214),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2a61d0(0x15b)}),l[_0x2a61d0(0x196)](g[_0x2a61d0(0x1a3)],{'variant':_0x2a61d0(0x1e8),'onClick':()=>_0xe5a21d[_0x2a61d0(0x173)](),'children':'Start\x20following'})]});}function ee(_0x111dd7){var _0x582989=_0x3d2949;const {coordinator:_0x18f9b2}=_0x111dd7;return l[_0x582989(0x1cb)](l[_0x582989(0x1f2)],{'children':[l[_0x582989(0x196)](_0x582989(0x214),{'className':_0x582989(0x1cf),'children':_0x582989(0x1ba)}),l[_0x582989(0x196)](g[_0x582989(0x1a3)],{'variant':_0x582989(0x141),'onClick':()=>_0x18f9b2[_0x582989(0x1ce)](),'children':_0x582989(0x1b6)})]});}function _0x1593(_0x4b1db0,_0x57cf9d){var _0x297898=_0x2978();return _0x1593=function(_0x1593d3,_0x18440b){_0x1593d3=_0x1593d3-0x140;var _0xfdbf5d=_0x297898[_0x1593d3];return _0xfdbf5d;},_0x1593(_0x4b1db0,_0x57cf9d);}function te(){var _0x48b6c1=_0x3d2949;return l[_0x48b6c1(0x196)](l[_0x48b6c1(0x1f2)],{'children':_0x48b6c1(0x184)});}var ie=Object[_0x3d2949(0x152)],ne=(_0x3afbde,_0x112bdb,_0x24d621,_0x384770)=>{var _0x156e02=_0x3d2949;for(var _0x1a35c9=_0x384770>0x1?void 0x0:_0x384770?ie(_0x112bdb,_0x24d621):_0x112bdb,_0x371ff9=_0x3afbde[_0x156e02(0x1b5)]-0x1,_0x386005;_0x371ff9>=0x0;_0x371ff9--)(_0x386005=_0x3afbde[_0x371ff9])&&(_0x1a35c9=_0x386005(_0x1a35c9)||_0x1a35c9);return _0x1a35c9;},L=(_0x16ca37,_0x4a2d44)=>(_0x2c83f4,_0x52620c)=>_0x4a2d44(_0x2c83f4,_0x52620c,_0x16ca37);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x3e6116,_0x598b3d){var _0x1818b6=_0x3d2949;super(),this['_injector']=_0x3e6116,this[_0x1818b6(0x1f8)]=_0x598b3d,this[_0x1818b6(0x153)]();}[_0x3d2949(0x153)](){var _0x2f8247=_0x3d2949;this[_0x2f8247(0x199)](this[_0x2f8247(0x1f8)][_0x2f8247(0x211)](p['BuiltInUIPart'][_0x2f8247(0x15c)],()=>p[_0x2f8247(0x19d)](A,this['_injector'])));}},exports[_0x3d2949(0x20c)]=ne([L(0x0,o[_0x3d2949(0x156)](o['Injector'])),L(0x1,p[_0x3d2949(0x1ec)])],exports[_0x3d2949(0x20c)]);var re=Object[_0x3d2949(0x175)],se=Object['getOwnPropertyDescriptor'],oe=(_0x1cb864,_0x29e343,_0x5c816e)=>_0x29e343 in _0x1cb864?re(_0x1cb864,_0x29e343,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c816e}):_0x1cb864[_0x29e343]=_0x5c816e,ae=(_0x206edc,_0xa81a63,_0x334179,_0x2b8615)=>{for(var _0x31ea76=_0x2b8615>0x1?void 0x0:_0x2b8615?se(_0xa81a63,_0x334179):_0xa81a63,_0x5c5646=_0x206edc['length']-0x1,_0xd4ec0d;_0x5c5646>=0x0;_0x5c5646--)(_0xd4ec0d=_0x206edc[_0x5c5646])&&(_0x31ea76=_0xd4ec0d(_0x31ea76)||_0x31ea76);return _0x31ea76;},N=(_0x16dacd,_0x5c142c)=>(_0x5d3d52,_0x3bdfc2)=>_0x5c142c(_0x5d3d52,_0x3bdfc2,_0x16dacd),T=(_0x1b08ca,_0x384091,_0x2d1469)=>oe(_0x1b08ca,typeof _0x384091!=_0x3d2949(0x183)?_0x384091+'':_0x384091,_0x2d1469);const le=_0x3d2949(0x206);exports[_0x3d2949(0x205)]=class extends o['Plugin']{constructor(_0x2ee2d6=x,_0x367974,_0x2f5557){var _0x3b02ce=_0x3d2949;super(),this[_0x3b02ce(0x1fb)]=_0x2ee2d6,this[_0x3b02ce(0x198)]=_0x367974,this[_0x3b02ce(0x1c7)]=_0x2f5557;const {..._0x294811}=o[_0x3b02ce(0x1c8)]({},x,this['_config']);this[_0x3b02ce(0x1c7)]['setConfig']($,_0x294811);}[_0x3d2949(0x21c)](){var _0x3c7dd3=_0x3d2949;o['registerDependencies'](this[_0x3c7dd3(0x198)],o[_0x3c7dd3(0x1da)]([[O],[exports[_0x3c7dd3(0x163)]],[E],[exports[_0x3c7dd3(0x20c)]]],this[_0x3c7dd3(0x1fb)][_0x3c7dd3(0x1e2)])),o[_0x3c7dd3(0x177)](this[_0x3c7dd3(0x198)],[[E]]);}[_0x3d2949(0x16d)](){var _0x11e810=_0x3d2949;o[_0x11e810(0x177)](this[_0x11e810(0x198)],[[exports[_0x11e810(0x20c)]]]);}},T(exports['UniverLiveSharePlugin'],_0x3d2949(0x1ef),o['UniverInstanceType'][_0x3d2949(0x1f9)]),T(exports['UniverLiveSharePlugin'],_0x3d2949(0x21d),le),exports[_0x3d2949(0x205)]=ae([o[_0x3d2949(0x145)](m[_0x3d2949(0x1fa)]),N(0x1,o['Inject'](o[_0x3d2949(0x1b9)])),N(0x2,o[_0x3d2949(0x1d0)])],exports[_0x3d2949(0x205)]),exports[_0x3d2949(0x18a)]=A,exports['LiveShareService']=O,exports[_0x3d2949(0x1cd)]=h;
1
+ 'use strict';var _0xf33e4d=_0x5e88;(function(_0x3867ae,_0x3053a0){var _0x258f9e=_0x5e88,_0x27329e=_0x3867ae();while(!![]){try{var _0x296ffa=parseInt(_0x258f9e(0x116))/0x1+-parseInt(_0x258f9e(0x145))/0x2*(parseInt(_0x258f9e(0x161))/0x3)+-parseInt(_0x258f9e(0x169))/0x4*(-parseInt(_0x258f9e(0x18f))/0x5)+-parseInt(_0x258f9e(0x10c))/0x6*(parseInt(_0x258f9e(0x13a))/0x7)+parseInt(_0x258f9e(0x14e))/0x8+-parseInt(_0x258f9e(0x194))/0x9+parseInt(_0x258f9e(0x187))/0xa;if(_0x296ffa===_0x3053a0)break;else _0x27329e['push'](_0x27329e['shift']());}catch(_0x456bc2){_0x27329e['push'](_0x27329e['shift']());}}}(_0xf43a,0x33e4f));var U=Object[_0xf33e4d(0x16b)],F=(_0x4a767e,_0x3aef1d,_0x3fe45d)=>_0x3aef1d in _0x4a767e?U(_0x4a767e,_0x3aef1d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fe45d}):_0x4a767e[_0x3aef1d]=_0x3fe45d,v=(_0xe9476a,_0x2ea9a8,_0x5c6a31)=>F(_0xe9476a,typeof _0x2ea9a8!=_0xf33e4d(0x15a)?_0x2ea9a8+'':_0x2ea9a8,_0x5c6a31);Object['defineProperty'](exports,Symbol[_0xf33e4d(0xf8)],{'value':_0xf33e4d(0xea)});function _0xf43a(){var _0x3334fc=['Start\x20following','Injector','Present\x20this\x20document','_presenter','evenodd','has','Module','fill','entries','parseProtocolChangeset','Dropdown','_univerInstanceService','IUniverInstanceService','registerComponent','dispose','event$','forEach','useState','apply','displayName','toStringTag','ONLINE','prototype','Stop\x20presenting','getOwnPropertySymbols','call','init','SetScrollOperation','LIVESHARE_TERMINATE','operations','reverse','following','sheet','useRef','LIVESHARE_OPERATION','IConfigService','not-following','OPERATION','LIVESHARE_FETCH_OPERATIONS','InsertSheetMutation','2862gHIykA','PRESENTING','createElement','indexOf','length','Fragment','jsx','RxDisposable','extend','UniverInstanceType','240291drAizS','useEffect','shouldShareOperation','find','touchDependencies','getInitialStates','Disposable','_handleOperation','defs','LIVESHARE_NEW_HOST','_collabSession','icon','merge','send','IUIPartsService','attrs','memberID','You\x27are\x20offline.','add','_reporters','clsx','_stopPresenting','registerInitialStateReporter','Button','useDependency','override','_stopFollowing','complete','type','substring','toDisposable','_startLiveShareCoordinator','stopFollowing','path','map','NEW_CHANGESETS','4067AjjgBS','throttleTime','xlink:href','1em','_config','_init','className','createInstance','status$','getMemberID','colorChannel1','842pSqmpp','set','IDLE','_handleNewChangeSets','UNIVER_LIVE_SHARE_PLUGIN','executeCommand','idSuffix','univer-mb-3\x20univer-w-full\x20univer-text-sm','_entities','1533192TRPIKU','registerSharedOperation','Start','CollaborationEvent','UniverLiveSharePlugin','replace','_unitID','string','tryStartPresenting','trim','SessionStatus','SetWorksheetActiveOperation','symbol','current','LIVESHARE_REQUEST_HOST','LiveShare','BuiltInUIPart','You\x27re\x20following\x20the\x20presenter','forwardRef','768XqRYBl','disposeWithMe','jsxs','next','Subject','startFollowing','subscribe','LiveShareCoordinator','12SAaYIN','univer-size-4','defineProperty','url(#$1','_liveShareService','getValue','takeUntil','_configService','Plugin','_handleTerminate','data','children','_handleNewHost','_beIdle','div','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','You\x27re\x20presenting\x20the\x20document','setConfig','FOLLOWING','_commandDisposable','OFFLINE','sessionStatus$','Inject','_handleOnline','getTypeOfUnitDisposed$','button','LiveShareController','NOT_FOLLOWING','dispose$','values','416200gRsMLJ','tag','_commandService','assign','getLiveShareCoordinator','_fetchOperations','live-share.config','_sharedOperations','212050cyVuCW','_status$','_handleOffline','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','stopPresenting','29862adLuIx','concat','use','DisposableCollection','offline','getUnitId','registerDependencies','_collabSessionService','onRendered','unitId','UNIVER_SHEET','_injector','end','onCommandExecuted','_status','DesktopLiveShareController','idle','_mountLiveShare','You\x27re\x20not\x20following\x20the\x20presenter','stringify','defIds','CommandType','LiveShareStatus','SAME_OPERATION_SHARE_INTERVAL','getTypeOfUnitAdded$','delete','mergeOverrideWithDependencies','getConfig','_startFollowing','get','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','0\x200\x2017\x2017','getOwnPropertyDescriptor','function','_startPresenting','pipe','HEADER_MENU','params','ICommandService','svg','presenting','hasOwnProperty','mutations','currentColor','default','_uiPartsService'];_0xf43a=function(){return _0x3334fc;};return _0xf43a();}const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0xf33e4d(0x18d),x={};class O extends o[_0xf33e4d(0x11c)]{constructor(){var _0x3405e8=_0xf33e4d;super(...arguments),v(this,_0x3405e8(0x18e),new Set()),v(this,_0x3405e8(0x129),new Set());}[_0xf33e4d(0x14f)](_0x4d3d0f){var _0x1f94b0=_0xf33e4d;return this[_0x1f94b0(0x18e)][_0x1f94b0(0x128)](_0x4d3d0f),o[_0x1f94b0(0x134)](()=>this['_sharedOperations'][_0x1f94b0(0x1ad)](_0x4d3d0f));}[_0xf33e4d(0x12c)](_0x1880ba){var _0x445bc4=_0xf33e4d;return this['_reporters'][_0x445bc4(0x128)](_0x1880ba),o[_0x445bc4(0x134)](()=>this['_reporters'][_0x445bc4(0x1ad)](_0x1880ba));}[_0xf33e4d(0x118)](_0x209d68){var _0x3d28b8=_0xf33e4d;return this['_sharedOperations'][_0x3d28b8(0xe9)](_0x209d68);}[_0xf33e4d(0x11b)](_0x597e28){var _0x469b18=_0xf33e4d;return Array['from'](this['_reporters'])[_0x469b18(0x138)](_0xd2a133=>_0xd2a133(_0x597e28));}}var H=Object[_0xf33e4d(0x1b4)],V=(_0xa945eb,_0x209791,_0x3c2cdb,_0x49b388)=>{var _0x10abd7=_0xf33e4d;for(var _0x25ab2b=_0x49b388>0x1?void 0x0:_0x49b388?H(_0x209791,_0x3c2cdb):_0x209791,_0x2ee87e=_0xa945eb[_0x10abd7(0x110)]-0x1,_0x4ed813;_0x2ee87e>=0x0;_0x2ee87e--)(_0x4ed813=_0xa945eb[_0x2ee87e])&&(_0x25ab2b=_0x4ed813(_0x25ab2b)||_0x25ab2b);return _0x25ab2b;},k=(_0x38a8fb,_0x1722ce)=>(_0x474050,_0x26d0c7)=>_0x1722ce(_0x474050,_0x26d0c7,_0x38a8fb);let E=class extends o[_0xf33e4d(0x11c)]{constructor(_0xa60e89){var _0x15eeab=_0xf33e4d;super(),this[_0x15eeab(0x16d)]=_0xa60e89,this[_0x15eeab(0x13f)]();}[_0xf33e4d(0x13f)](){var _0x9f7600=_0xf33e4d;[w['SetZoomRatioOperation']['id'],w[_0x9f7600(0xff)]['id'],C[_0x9f7600(0x159)]['id']][_0x9f7600(0xf4)](_0x29cc97=>{var _0x17388d=_0x9f7600;this[_0x17388d(0x162)](this['_liveShareService'][_0x17388d(0x14f)](_0x29cc97));});}};E=V([k(0x0,o[_0xf33e4d(0x17f)](O))],E);var u=function(){var _0x187a6c=_0xf33e4d;return u=Object[_0x187a6c(0x18a)]||function(_0x149f86){for(var _0x23c9f8,_0x3d292d=0x1,_0x78f71e=arguments['length'];_0x3d292d<_0x78f71e;_0x3d292d++){_0x23c9f8=arguments[_0x3d292d];for(var _0x1347b3 in _0x23c9f8)Object['prototype']['hasOwnProperty']['call'](_0x23c9f8,_0x1347b3)&&(_0x149f86[_0x1347b3]=_0x23c9f8[_0x1347b3]);}return _0x149f86;},u[_0x187a6c(0xf6)](this,arguments);},M=function(_0x4b80fe,_0x2de607){var _0x1f930e=_0xf33e4d,_0x4c4009={};for(var _0xd6d61f in _0x4b80fe)Object[_0x1f930e(0xfa)][_0x1f930e(0xdf)][_0x1f930e(0xfd)](_0x4b80fe,_0xd6d61f)&&_0x2de607[_0x1f930e(0x10f)](_0xd6d61f)<0x0&&(_0x4c4009[_0xd6d61f]=_0x4b80fe[_0xd6d61f]);if(_0x4b80fe!=null&&typeof Object['getOwnPropertySymbols']==_0x1f930e(0x1b5)){for(var _0x2b4933=0x0,_0xd6d61f=Object[_0x1f930e(0xfc)](_0x4b80fe);_0x2b4933<_0xd6d61f[_0x1f930e(0x110)];_0x2b4933++)_0x2de607['indexOf'](_0xd6d61f[_0x2b4933])<0x0&&Object[_0x1f930e(0xfa)]['propertyIsEnumerable'][_0x1f930e(0xfd)](_0x4b80fe,_0xd6d61f[_0x2b4933])&&(_0x4c4009[_0xd6d61f[_0x2b4933]]=_0x4b80fe[_0xd6d61f[_0x2b4933]]);}return _0x4c4009;},j=f[_0xf33e4d(0x160)](function(_0x130a28,_0x2c4440){var _0x5e4c46=_0xf33e4d,_0x551f68=_0x130a28[_0x5e4c46(0x121)],_0x581396=_0x130a28['id'],_0x59c409=_0x130a28[_0x5e4c46(0x140)],_0x1585da=_0x130a28[_0x5e4c46(0x114)],_0x1fbdb0=M(_0x130a28,[_0x5e4c46(0x121),'id','className','extend']),_0x5d1ada='univerjs-icon\x20univerjs-icon-'[_0x5e4c46(0x195)](_0x581396,'\x20')['concat'](_0x59c409||'')[_0x5e4c46(0x157)](),_0x542a65=f[_0x5e4c46(0x105)]('_'[_0x5e4c46(0x195)](G()));return y(_0x551f68,''[_0x5e4c46(0x195)](_0x581396),{'defIds':_0x551f68[_0x5e4c46(0x1a8)],'idSuffix':_0x542a65['current']},u({'ref':_0x2c4440,'className':_0x5d1ada},_0x1fbdb0),_0x1585da);});function y(_0x569cc7,_0x5682,_0x55ce64,_0x290380,_0x5a85df){var _0x2b387d=_0xf33e4d;return f[_0x2b387d(0x10e)](_0x569cc7[_0x2b387d(0x188)],u(u({'key':_0x5682},q(_0x569cc7,_0x55ce64,_0x5a85df)),_0x290380),(W(_0x569cc7,_0x55ce64)[_0x2b387d(0x174)]||[])[_0x2b387d(0x138)](function(_0x162132,_0xcdcfd3){var _0x2a6d27=_0x2b387d;return y(_0x162132,''[_0x2a6d27(0x195)](_0x5682,'-')[_0x2a6d27(0x195)](_0x569cc7[_0x2a6d27(0x188)],'-')[_0x2a6d27(0x195)](_0xcdcfd3),_0x55ce64,void 0x0,_0x5a85df);}));}function q(_0x4b17a8,_0x2dee6c,_0x1ce8f0){var _0x5ecdfc=_0xf33e4d,_0x5f4c7d=u({},_0x4b17a8[_0x5ecdfc(0x125)]);_0x1ce8f0!=null&&_0x1ce8f0[_0x5ecdfc(0x144)]&&_0x5f4c7d[_0x5ecdfc(0xeb)]===_0x5ecdfc(0x144)&&(_0x5f4c7d[_0x5ecdfc(0xeb)]=_0x1ce8f0[_0x5ecdfc(0x144)]),_0x4b17a8[_0x5ecdfc(0x188)]==='mask'&&_0x5f4c7d['id']&&(_0x5f4c7d['id']=_0x5f4c7d['id']+_0x2dee6c['idSuffix']),Object[_0x5ecdfc(0xec)](_0x5f4c7d)[_0x5ecdfc(0xf4)](function(_0x3bac45){var _0x5afd62=_0x5ecdfc,_0xf2ea1c=_0x3bac45[0x0],_0x2357e4=_0x3bac45[0x1];_0xf2ea1c==='mask'&&typeof _0x2357e4==_0x5afd62(0x155)&&(_0x5f4c7d[_0xf2ea1c]=_0x2357e4[_0x5afd62(0x153)](/url\(#(.*)\)/,_0x5afd62(0x16c)['concat'](_0x2dee6c['idSuffix'],')')));});var _0x5d2a00=_0x2dee6c[_0x5ecdfc(0x1a8)];return!_0x5d2a00||_0x5d2a00[_0x5ecdfc(0x110)]===0x0||(_0x4b17a8[_0x5ecdfc(0x188)]===_0x5ecdfc(0x196)&&_0x5f4c7d[_0x5ecdfc(0x13c)]&&(_0x5f4c7d['xlink:href']=_0x5f4c7d[_0x5ecdfc(0x13c)]+_0x2dee6c[_0x5ecdfc(0x14b)]),Object[_0x5ecdfc(0xec)](_0x5f4c7d)[_0x5ecdfc(0xf4)](function(_0x36fa81){var _0x14c139=_0x5ecdfc,_0xefa79d=_0x36fa81[0x0],_0x4ff662=_0x36fa81[0x1];typeof _0x4ff662==_0x14c139(0x155)&&(_0x5f4c7d[_0xefa79d]=_0x4ff662[_0x14c139(0x153)](/url\(#(.*)\)/,_0x14c139(0x16c)[_0x14c139(0x195)](_0x2dee6c[_0x14c139(0x14b)],')')));})),_0x5f4c7d;}function W(_0x1a6afc,_0x1e9703){var _0x401c1e=_0xf33e4d,_0x4cdf3f,_0x19197e=_0x1e9703[_0x401c1e(0x1a8)];return!_0x19197e||_0x19197e[_0x401c1e(0x110)]===0x0?_0x1a6afc:_0x1a6afc['tag']===_0x401c1e(0x11e)&&(!((_0x4cdf3f=_0x1a6afc[_0x401c1e(0x174)])===null||_0x4cdf3f===void 0x0)&&_0x4cdf3f[_0x401c1e(0x110)])?u(u({},_0x1a6afc),{'children':_0x1a6afc[_0x401c1e(0x174)][_0x401c1e(0x138)](function(_0x5c8d43){var _0x27a979=_0x401c1e;return typeof _0x5c8d43[_0x27a979(0x125)]['id']==_0x27a979(0x155)&&_0x19197e&&_0x19197e['includes'](_0x5c8d43[_0x27a979(0x125)]['id'])?u(u({},_0x5c8d43),{'attrs':u(u({},_0x5c8d43[_0x27a979(0x125)]),{'id':_0x5c8d43[_0x27a979(0x125)]['id']+_0x1e9703[_0x27a979(0x14b)]})}):_0x5c8d43;})}):_0x1a6afc;}function G(){var _0x28bbf7=_0xf33e4d;return Math['random']()['toString'](0x24)[_0x28bbf7(0x133)](0x2,0x8);}j[_0xf33e4d(0xf7)]='UniverIcon';var B={'tag':_0xf33e4d(0xdd),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xf33e4d(0x1b3),'width':_0xf33e4d(0x13d),'height':_0xf33e4d(0x13d)},'children':[{'tag':_0xf33e4d(0x137),'attrs':{'fill':_0xf33e4d(0xe1),'d':_0xf33e4d(0x1b2)}},{'tag':_0xf33e4d(0x137),'attrs':{'fill':_0xf33e4d(0xe1),'d':_0xf33e4d(0x178),'fillRule':_0xf33e4d(0xe8),'clipRule':_0xf33e4d(0xe8)}}]},P=f[_0xf33e4d(0x160)](function(_0x50b6ed,_0x197968){var _0x352253=_0xf33e4d;return f[_0x352253(0x10e)](j,Object[_0x352253(0x18a)]({},_0x50b6ed,{'id':'live-share-icon','ref':_0x197968,'icon':B}));});P[_0xf33e4d(0xf7)]='LiveShareIcon';var Y=Object[_0xf33e4d(0x1b4)],R=(_0x496430,_0xa03180,_0x9aafda,_0x2767ab)=>{var _0x3a9bbe=_0xf33e4d;for(var _0x47f611=_0x2767ab>0x1?void 0x0:_0x2767ab?Y(_0xa03180,_0x9aafda):_0xa03180,_0x4b676e=_0x496430[_0x3a9bbe(0x110)]-0x1,_0x193576;_0x4b676e>=0x0;_0x4b676e--)(_0x193576=_0x496430[_0x4b676e])&&(_0x47f611=_0x193576(_0x47f611)||_0x47f611);return _0x47f611;},S=(_0x22322d,_0x21865d)=>(_0x2bb2cc,_0x2ccf6f)=>_0x21865d(_0x2bb2cc,_0x2ccf6f,_0x22322d);exports['LiveShareController']=class extends o[_0xf33e4d(0x113)]{constructor(_0x56b436,_0x95603d,_0x364e09){var _0x15cad0=_0xf33e4d;super(),v(this,'_entities',new Map()),(this[_0x15cad0(0xef)]=_0x56b436,this[_0x15cad0(0x19f)]=_0x95603d,this[_0x15cad0(0x19b)]=_0x364e09,this[_0x15cad0(0x13f)]());}async[_0xf33e4d(0x18b)](_0xf1c3be){var _0x11accb=_0xf33e4d;return this[_0x11accb(0x14d)][_0x11accb(0xe9)](_0xf1c3be)||await this[_0x11accb(0x135)](_0xf1c3be),this[_0x11accb(0x14d)][_0x11accb(0x1b1)](_0xf1c3be);}[_0xf33e4d(0x13f)](){var _0x5c9ea9=_0xf33e4d;this[_0x5c9ea9(0xef)][_0x5c9ea9(0x1ac)](o[_0x5c9ea9(0x115)][_0x5c9ea9(0x19e)])['pipe'](b['takeUntil'](this['dispose$']))[_0x5c9ea9(0x167)](async _0x1b1905=>{var _0x14c82c=_0x5c9ea9;const _0x531a84=_0x1b1905[_0x14c82c(0x199)]();this[_0x14c82c(0x14d)][_0x14c82c(0xe9)](_0x531a84)||this[_0x14c82c(0x135)](_0x531a84);}),this[_0x5c9ea9(0xef)][_0x5c9ea9(0x181)](o[_0x5c9ea9(0x115)]['UNIVER_SHEET'])[_0x5c9ea9(0xd9)](b[_0x5c9ea9(0x16f)](this['dispose$']))[_0x5c9ea9(0x167)](_0x55e1c8=>{var _0x3190f0=_0x5c9ea9;const _0x246857=_0x55e1c8[_0x3190f0(0x199)](),_0x314e01=this['_entities']['get'](_0x246857);_0x314e01==null||_0x314e01[_0x3190f0(0xf2)]();});}async['_startLiveShareCoordinator'](_0x2c45d2){var _0x5a92ed=_0xf33e4d;const _0xb8984=await this[_0x5a92ed(0x19b)]['requireSession'](_0x2c45d2),_0x235920=this[_0x5a92ed(0x19f)][_0x5a92ed(0x141)](exports[_0x5a92ed(0x168)],_0x2c45d2,_0xb8984);return _0x235920[_0x5a92ed(0xfe)](),this[_0x5a92ed(0x14d)][_0x5a92ed(0x146)](_0x2c45d2,_0x235920),_0x235920;}},exports[_0xf33e4d(0x183)]=R([S(0x0,o[_0xf33e4d(0xf0)]),S(0x1,o['Inject'](o[_0xf33e4d(0xe5)])),S(0x2,o['Inject'](m['CollaborationSessionService']))],exports[_0xf33e4d(0x183)]);var h=(_0x408416=>(_0x408416[_0xf33e4d(0x17d)]='offline',_0x408416['IDLE']=_0xf33e4d(0x1a4),_0x408416['FOLLOWING']=_0xf33e4d(0x103),_0x408416[_0xf33e4d(0x184)]=_0xf33e4d(0x108),_0x408416[_0xf33e4d(0x10d)]='presenting',_0x408416))(h||{});const Z=_0xf33e4d(0x1ab),J=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x44cd64,_0x27fe53,_0x56742b,_0x328592,_0x198fc9){var _0xe1d7b9=_0xf33e4d;super(),v(this,_0xe1d7b9(0x190),new D['BehaviorSubject']('idle')),v(this,'status$',this[_0xe1d7b9(0x190)]['asObservable']()),v(this,_0xe1d7b9(0x13f),!0x1),v(this,_0xe1d7b9(0x17c),null),v(this,_0xe1d7b9(0xe7),null),(this[_0xe1d7b9(0x154)]=_0x44cd64,this[_0xe1d7b9(0x120)]=_0x27fe53,this[_0xe1d7b9(0x170)]=_0x56742b,this[_0xe1d7b9(0x16d)]=_0x328592,this['_commandService']=_0x198fc9);}get[_0xf33e4d(0x1a2)](){var _0x30a2df=_0xf33e4d;return this[_0x30a2df(0x190)][_0x30a2df(0x16e)]();}[_0xf33e4d(0xf2)](){var _0x535007=_0xf33e4d,_0x4c2fd9;(_0x4c2fd9=this[_0x535007(0x17c)])==null||_0x4c2fd9[_0x535007(0xf2)](),this['_status$'][_0x535007(0x164)](_0x535007(0x1a4)),this[_0x535007(0x190)][_0x535007(0x131)]();}[_0xf33e4d(0xfe)](){var _0x3f7eb1=_0xf33e4d;this['_init']||(this[_0x3f7eb1(0x13f)]=!0x0,this['_collabSession'][_0x3f7eb1(0x17e)][_0x3f7eb1(0xd9)](b[_0x3f7eb1(0x16f)](this[_0x3f7eb1(0x185)]))[_0x3f7eb1(0x167)](_0x5d4a33=>{var _0x39f9fe=_0x3f7eb1;switch(_0x5d4a33){case m[_0x39f9fe(0x158)]['OFFLINE']:this[_0x39f9fe(0x191)]();break;case m[_0x39f9fe(0x158)][_0x39f9fe(0xf9)]:this[_0x39f9fe(0x180)]();break;}}),this[_0x3f7eb1(0x120)][_0x3f7eb1(0xf3)][_0x3f7eb1(0xd9)](b[_0x3f7eb1(0x16f)](this['dispose$']))['subscribe'](_0xbd01d1=>{var _0x2e4355=_0x3f7eb1;const {eventID:_0x291982}=_0xbd01d1;switch(_0x291982){case _['CollaborationEvent'][_0x2e4355(0x11f)]:this[_0x2e4355(0x175)](_0xbd01d1);break;case _['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x2e4355(0x11d)](_0xbd01d1);break;case _[_0x2e4355(0x151)][_0x2e4355(0x100)]:this[_0x2e4355(0x172)]();break;case _['CollaborationEvent'][_0x2e4355(0x139)]:this[_0x2e4355(0x148)](_0xbd01d1);break;}}));}[_0xf33e4d(0x156)](){var _0x553bdb=_0xf33e4d;this[_0x553bdb(0x120)][_0x553bdb(0x123)]({'eventID':_[_0x553bdb(0x151)][_0x553bdb(0x15c)],'data':{'unitID':this[_0x553bdb(0x154)],'userID':this[_0x553bdb(0x120)]['getMemberID']()}},this[_0x553bdb(0x154)]);}['stopPresenting'](){var _0x5bf38d=_0xf33e4d;this['_status']===_0x5bf38d(0xde)&&(this[_0x5bf38d(0x190)][_0x5bf38d(0x164)]('idle'),this[_0x5bf38d(0x120)][_0x5bf38d(0x123)]({'eventID':_[_0x5bf38d(0x151)][_0x5bf38d(0x100)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0xf33e4d(0x166)](){var _0x289967=_0xf33e4d;this['_status']==='not-following'&&(this['_status$']['next']('following'),this[_0x289967(0x1b0)]());}[_0xf33e4d(0x136)](){var _0xb2e2d4=_0xf33e4d;this[_0xb2e2d4(0x1a2)]===_0xb2e2d4(0x103)&&this['_stopFollowing']();}[_0xf33e4d(0x175)](_0x2a6b50){var _0x204ee8=_0xf33e4d;const {presenter:_0x4a04db}=_0x2a6b50[_0x204ee8(0x173)],_0x279ad2=this['_collabSession'][_0x204ee8(0x143)]();this[_0x204ee8(0xe7)]=_0x4a04db,_0x4a04db===_0x279ad2?(this[_0x204ee8(0x130)](),this[_0x204ee8(0x1b6)]()):this[_0x204ee8(0x1a2)]!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xf33e4d(0x18c)](){var _0x1f40c6=_0xf33e4d;const _0x33323a={'eventID':_[_0x1f40c6(0x151)][_0x1f40c6(0x10a)]};this[_0x1f40c6(0x120)]['send'](_0x33323a,this['_unitID']);}[_0xf33e4d(0x172)](){var _0x630f40=_0xf33e4d;this[_0x630f40(0xe7)]=null,this[_0x630f40(0x1a2)]!==_0x630f40(0xde)&&this[_0x630f40(0x176)]();}[_0xf33e4d(0x148)](_0x44c1b4){var _0x17655b=_0xf33e4d;if(this['_status']===_0x17655b(0x103)&&this[_0x17655b(0xe7)]===_0x44c1b4[_0x17655b(0x173)][_0x17655b(0x126)]){const _0x36b5c8=_[_0x17655b(0xed)](_0x44c1b4[_0x17655b(0x173)])[_0x17655b(0xe0)][_0x17655b(0x102)]()[_0x17655b(0x119)](_0x18ac22=>_0x18ac22['id']===C[_0x17655b(0x10b)]['id']);if(_0x36b5c8){const _0x43c9b8=_0x36b5c8['params'][_0x17655b(0x19d)],_0x16276e=_0x36b5c8[_0x17655b(0xdb)][_0x17655b(0x104)]['id'];setTimeout(()=>{var _0x2ab4dd=_0x17655b;this[_0x2ab4dd(0x189)][_0x2ab4dd(0x14a)](C[_0x2ab4dd(0x159)]['id'],{'unitId':_0x43c9b8,'subUnitId':_0x16276e},{'fromCollab':!0x0});});}}}[_0xf33e4d(0x1b6)](){var _0x42c0b8=_0xf33e4d;this['_status$']['next']('presenting');const _0x5172b2=new Map(),_0xa3d4dc=this['_commandDisposable']=new o[(_0x42c0b8(0x197))]();_0xa3d4dc[_0x42c0b8(0x128)](o[_0x42c0b8(0x134)](()=>{var _0x36b3e4=_0x42c0b8;_0x5172b2[_0x36b3e4(0xf4)](_0x514e7d=>_0x514e7d[_0x36b3e4(0x131)]()),_0x5172b2['clear']();})),_0xa3d4dc['add'](this[_0x42c0b8(0x189)][_0x42c0b8(0x1a1)](_0x152842=>{var _0x1b3290=_0x42c0b8,_0x290c9b;if(_0x152842[_0x1b3290(0x132)]!==o[_0x1b3290(0x1a9)][_0x1b3290(0x109)]||!this[_0x1b3290(0x16d)]['shouldShareOperation'](_0x152842['id']))return;const {id:_0x56b02a}=_0x152842;let _0x2b69e7;_0x5172b2[_0x1b3290(0xe9)](_0x56b02a)?_0x2b69e7=_0x5172b2['get'](_0x56b02a):(_0x2b69e7=new D[(_0x1b3290(0x165))](),_0x5172b2[_0x1b3290(0x146)](_0x56b02a,_0x2b69e7),_0x2b69e7['pipe'](b[_0x1b3290(0x13b)]((_0x290c9b=this[_0x1b3290(0x170)][_0x1b3290(0x1af)](Z))!=null?_0x290c9b:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1b3290(0x167)](_0x56bf4f=>{var _0x12c4a5=_0x1b3290;this[_0x12c4a5(0x120)][_0x12c4a5(0x123)]({'eventID':_[_0x12c4a5(0x151)][_0x12c4a5(0x106)],'data':{'unitID':this['_unitID'],'operations':{[_0x56bf4f['id']]:{'id':_0x56bf4f['id'],'params':JSON[_0x12c4a5(0x1a7)](_0x56bf4f[_0x12c4a5(0xdb)])}}}},this[_0x12c4a5(0x154)]);})),_0x2b69e7[_0x1b3290(0x164)](_0x152842);})),this['_liveShareService'][_0x42c0b8(0x11b)](this[_0x42c0b8(0x154)])['forEach'](_0x5a3a12=>this[_0x42c0b8(0x120)][_0x42c0b8(0x123)]({'eventID':_[_0x42c0b8(0x151)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x42c0b8(0x154)],'operations':{[_0x5a3a12['id']]:{'id':_0x5a3a12['id'],'params':JSON['stringify'](_0x5a3a12['params'])}}}},this[_0x42c0b8(0x154)]));}[_0xf33e4d(0x12b)](){var _0x37e5de=_0xf33e4d,_0x3cd665;this[_0x37e5de(0x190)]['next']('idle'),(_0x3cd665=this[_0x37e5de(0x17c)])==null||_0x3cd665[_0x37e5de(0xf2)](),this[_0x37e5de(0x17c)]=null;}[_0xf33e4d(0x1b0)](){var _0x17426b=_0xf33e4d,_0x24aa6a;(_0x24aa6a=this[_0x17426b(0x17c)])==null||_0x24aa6a[_0x17426b(0xf2)](),this[_0x17426b(0x190)][_0x17426b(0x164)]('following');}['_beIdle'](){var _0xd01422=_0xf33e4d,_0x5e4bf9;this[_0xd01422(0x190)][_0xd01422(0x164)](_0xd01422(0x1a4)),(_0x5e4bf9=this[_0xd01422(0x17c)])==null||_0x5e4bf9['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x933efb=_0xf33e4d,_0x55fe9d;this[_0x933efb(0x190)][_0x933efb(0x164)](_0x933efb(0x108)),(_0x55fe9d=this[_0x933efb(0x17c)])==null||_0x55fe9d['dispose']();}[_0xf33e4d(0x11d)](_0x1db4f7){var _0x4dca1b=_0xf33e4d;if([_0x4dca1b(0xde),_0x4dca1b(0x108),_0x4dca1b(0x198)]['includes'](this['_status'])||!_0x1db4f7[_0x4dca1b(0x173)]['presenter']||_0x1db4f7[_0x4dca1b(0x173)]['presenter']===this[_0x4dca1b(0x120)]['getMemberID']())return;this[_0x4dca1b(0x1a2)]===_0x4dca1b(0x1a4)&&this['_startFollowing']();const _0x23a6cd=_0x1db4f7['data'][_0x4dca1b(0x101)];Object[_0x4dca1b(0x186)](_0x23a6cd)[_0x4dca1b(0xf4)](_0x4a77cd=>{var _0x538d9d=_0x4dca1b;this['_commandService'][_0x538d9d(0x14a)](_0x4a77cd['id'],_0x4a77cd[_0x538d9d(0xdb)]?JSON['parse'](_0x4a77cd['params']):null,{'fromCollab':!0x0});});}[_0xf33e4d(0x191)](){var _0xf3522d=_0xf33e4d,_0x3e8c3e;this[_0xf3522d(0x190)][_0xf3522d(0x164)](_0xf3522d(0x198)),(_0x3e8c3e=this[_0xf3522d(0x17c)])==null||_0x3e8c3e[_0xf3522d(0xf2)]();}[_0xf33e4d(0x180)](){var _0x50cf92=_0xf33e4d;this['_status$'][_0x50cf92(0x164)]('idle'),this[_0x50cf92(0x18c)]();}},exports[_0xf33e4d(0x168)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0xf33e4d(0x17f)](O)),S(0x4,o[_0xf33e4d(0xdc)])],exports['LiveShareCoordinator']);function A(){var _0x4161b7=_0xf33e4d;const _0x515085=p[_0x4161b7(0x12e)](exports['LiveShareController']),_0x205f17=p['useDependency'](o[_0x4161b7(0xf0)]),_0x1179ff=p['useObservable'](()=>_0x205f17['getCurrentTypeOfUnit$'](o['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xed6fff,_0x243f22]=f[_0x4161b7(0xf5)](null),[_0x124c7d,_0x497ed5]=f[_0x4161b7(0xf5)](h[_0x4161b7(0x147)]),_0x2b33d5=f[_0x4161b7(0x105)](null);return f[_0x4161b7(0x117)](()=>(_0x1179ff&&_0x515085[_0x4161b7(0x18b)](_0x1179ff['getUnitId']())['then'](_0x3d4348=>{var _0x1e5256=_0x4161b7;_0x243f22(_0x3d4348),_0x2b33d5[_0x1e5256(0x15b)]=_0x3d4348[_0x1e5256(0x142)][_0x1e5256(0x167)](_0x3a3fd2=>{_0x497ed5(_0x3a3fd2);});}),()=>{var _0x764ba1=_0x4161b7,_0x119017;(_0x119017=_0x2b33d5[_0x764ba1(0x15b)])==null||_0x119017['unsubscribe'](),_0x2b33d5[_0x764ba1(0x15b)]=null;}),[_0x1179ff,_0x515085]),_0xed6fff?l['jsx'](g[_0x4161b7(0xee)],{'align':_0x4161b7(0x1a0),'disabled':_0x124c7d===h[_0x4161b7(0x17d)],'className':_0x4161b7(0x192),'overlay':l[_0x4161b7(0x112)](K,{'status':_0x124c7d,'coordinator':_0xed6fff}),'children':l['jsx'](_0x4161b7(0x182),{'className':g[_0x4161b7(0x12a)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x124c7d===h[_0x4161b7(0x17d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x124c7d!==h['OFFLINE']}),'type':'button','children':l['jsx'](P,{'className':_0x4161b7(0x16a)})})}):null;}function K(_0x1f7007){var _0xdbaa7=_0xf33e4d;const {status:_0x597dc9,coordinator:_0x13afd1}=_0x1f7007;switch(_0x597dc9){case h[_0xdbaa7(0x147)]:return l[_0xdbaa7(0x112)](z,{'coordinator':_0x13afd1});case h[_0xdbaa7(0x17b)]:return l['jsx'](Q,{'coordinator':_0x13afd1});case h[_0xdbaa7(0x184)]:return l[_0xdbaa7(0x112)](X,{'coordinator':_0x13afd1});case h['OFFLINE']:return l[_0xdbaa7(0x112)](te,{});case h[_0xdbaa7(0x10d)]:return l['jsx'](ee,{'coordinator':_0x13afd1});default:return null;}}function z(_0x759933){var _0x10fffe=_0xf33e4d;const {coordinator:_0x3abfd0}=_0x759933;return l['jsxs'](l[_0x10fffe(0x111)],{'children':[l[_0x10fffe(0x112)](_0x10fffe(0x177),{'className':_0x10fffe(0x14c),'children':_0x10fffe(0xe6)}),l[_0x10fffe(0x112)](g[_0x10fffe(0x12d)],{'onClick':()=>_0x3abfd0[_0x10fffe(0x156)](),'children':_0x10fffe(0x150)})]});}function Q(_0x90a23f){var _0x4bd041=_0xf33e4d;const {coordinator:_0x470bcb}=_0x90a23f;return l['jsxs'](l[_0x4bd041(0x111)],{'children':[l[_0x4bd041(0x112)](_0x4bd041(0x177),{'className':_0x4bd041(0x14c),'children':_0x4bd041(0x15f)}),l[_0x4bd041(0x112)](g[_0x4bd041(0x12d)],{'onClick':()=>_0x470bcb['stopFollowing'](),'children':'Stop\x20following'})]});}function X(_0x4fe93d){var _0x339120=_0xf33e4d;const {coordinator:_0x17250e}=_0x4fe93d;return l[_0x339120(0x163)](l[_0x339120(0x111)],{'children':[l[_0x339120(0x112)](_0x339120(0x177),{'className':_0x339120(0x14c),'children':_0x339120(0x1a6)}),l['jsx'](g[_0x339120(0x12d)],{'variant':'text','onClick':()=>_0x17250e[_0x339120(0x166)](),'children':_0x339120(0xe4)})]});}function ee(_0x2c4f5b){var _0x455732=_0xf33e4d;const {coordinator:_0x153976}=_0x2c4f5b;return l[_0x455732(0x163)](l[_0x455732(0x111)],{'children':[l['jsx'](_0x455732(0x177),{'className':_0x455732(0x14c),'children':_0x455732(0x179)}),l[_0x455732(0x112)](g[_0x455732(0x12d)],{'variant':_0x455732(0xe2),'onClick':()=>_0x153976[_0x455732(0x193)](),'children':_0x455732(0xfb)})]});}function _0x5e88(_0x2ab94e,_0x192874){var _0xf43a49=_0xf43a();return _0x5e88=function(_0x5e885d,_0x2b2ab9){_0x5e885d=_0x5e885d-0xd9;var _0x252977=_0xf43a49[_0x5e885d];return _0x252977;},_0x5e88(_0x2ab94e,_0x192874);}function te(){var _0x2ec8e2=_0xf33e4d;return l['jsx'](l['Fragment'],{'children':_0x2ec8e2(0x127)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x29507a,_0x503aae,_0x50d93e,_0x443b32)=>{var _0x438b61=_0xf33e4d;for(var _0x4bbd=_0x443b32>0x1?void 0x0:_0x443b32?ie(_0x503aae,_0x50d93e):_0x503aae,_0x219cb2=_0x29507a[_0x438b61(0x110)]-0x1,_0x2bbc10;_0x219cb2>=0x0;_0x219cb2--)(_0x2bbc10=_0x29507a[_0x219cb2])&&(_0x4bbd=_0x2bbc10(_0x4bbd)||_0x4bbd);return _0x4bbd;},L=(_0x3ef731,_0x477396)=>(_0x3844e2,_0x5c487c)=>_0x477396(_0x3844e2,_0x5c487c,_0x3ef731);exports[_0xf33e4d(0x1a3)]=class extends o['Disposable']{constructor(_0x234aea,_0x42e183){var _0x335c2d=_0xf33e4d;super(),this['_injector']=_0x234aea,this[_0x335c2d(0xe3)]=_0x42e183,this[_0x335c2d(0x1a5)]();}[_0xf33e4d(0x1a5)](){var _0x56a0d9=_0xf33e4d;this[_0x56a0d9(0x162)](this[_0x56a0d9(0xe3)][_0x56a0d9(0xf1)](p[_0x56a0d9(0x15e)][_0x56a0d9(0xda)],()=>p['connectInjector'](A,this['_injector'])));}},exports['DesktopLiveShareController']=ne([L(0x0,o[_0xf33e4d(0x17f)](o[_0xf33e4d(0xe5)])),L(0x1,p[_0xf33e4d(0x124)])],exports[_0xf33e4d(0x1a3)]);var re=Object[_0xf33e4d(0x16b)],se=Object['getOwnPropertyDescriptor'],oe=(_0x4df860,_0x5ccff0,_0x5a3a2e)=>_0x5ccff0 in _0x4df860?re(_0x4df860,_0x5ccff0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a3a2e}):_0x4df860[_0x5ccff0]=_0x5a3a2e,ae=(_0x441011,_0x277055,_0x14bf51,_0x345588)=>{var _0xb3bdd7=_0xf33e4d;for(var _0x707f6b=_0x345588>0x1?void 0x0:_0x345588?se(_0x277055,_0x14bf51):_0x277055,_0x231a47=_0x441011[_0xb3bdd7(0x110)]-0x1,_0x30b8fb;_0x231a47>=0x0;_0x231a47--)(_0x30b8fb=_0x441011[_0x231a47])&&(_0x707f6b=_0x30b8fb(_0x707f6b)||_0x707f6b);return _0x707f6b;},N=(_0x3c68b4,_0x541828)=>(_0x47cfde,_0x3cb2b3)=>_0x541828(_0x47cfde,_0x3cb2b3,_0x3c68b4),T=(_0x213387,_0x4ce3f8,_0x2772e2)=>oe(_0x213387,typeof _0x4ce3f8!='symbol'?_0x4ce3f8+'':_0x4ce3f8,_0x2772e2);const le=_0xf33e4d(0x149);exports[_0xf33e4d(0x152)]=class extends o[_0xf33e4d(0x171)]{constructor(_0x418df4=x,_0x15a4f9,_0x51953d){var _0x442dd5=_0xf33e4d;super(),this[_0x442dd5(0x13e)]=_0x418df4,this[_0x442dd5(0x19f)]=_0x15a4f9,this[_0x442dd5(0x170)]=_0x51953d;const {..._0x28101f}=o[_0x442dd5(0x122)]({},x,this['_config']);this['_configService'][_0x442dd5(0x17a)]($,_0x28101f);}['onStarting'](){var _0x1f6b92=_0xf33e4d;o[_0x1f6b92(0x19a)](this[_0x1f6b92(0x19f)],o[_0x1f6b92(0x1ae)]([[O],[exports[_0x1f6b92(0x183)]],[E],[exports[_0x1f6b92(0x1a3)]]],this['_config'][_0x1f6b92(0x12f)])),o[_0x1f6b92(0x11a)](this[_0x1f6b92(0x19f)],[[E]]);}[_0xf33e4d(0x19c)](){var _0x3ccfd6=_0xf33e4d;o[_0x3ccfd6(0x11a)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0xf33e4d(0x152)],'type',o[_0xf33e4d(0x115)]['UNIVER_UNKNOWN']),T(exports['UniverLiveSharePlugin'],'pluginName',le),exports[_0xf33e4d(0x152)]=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),N(0x1,o['Inject'](o[_0xf33e4d(0xe5)])),N(0x2,o[_0xf33e4d(0x107)])],exports[_0xf33e4d(0x152)]),exports[_0xf33e4d(0x15d)]=A,exports['LiveShareService']=O,exports[_0xf33e4d(0x1aa)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x1cfdb8=_0x38aa;(function(_0x2254fe,_0x547e30){var _0x622d75=_0x38aa,_0x5ed9d9=_0x2254fe();while(!![]){try{var _0x4ed5ea=-parseInt(_0x622d75(0x1b8))/0x1+-parseInt(_0x622d75(0x1cb))/0x2*(parseInt(_0x622d75(0x188))/0x3)+parseInt(_0x622d75(0x1eb))/0x4*(parseInt(_0x622d75(0x18b))/0x5)+-parseInt(_0x622d75(0x1d6))/0x6*(-parseInt(_0x622d75(0x211))/0x7)+-parseInt(_0x622d75(0x1ad))/0x8+parseInt(_0x622d75(0x23a))/0x9*(-parseInt(_0x622d75(0x213))/0xa)+parseInt(_0x622d75(0x1ab))/0xb;if(_0x4ed5ea===_0x547e30)break;else _0x5ed9d9['push'](_0x5ed9d9['shift']());}catch(_0x5d0107){_0x5ed9d9['push'](_0x5ed9d9['shift']());}}}(_0x212b,0xd4481));var q=Object[_0x1cfdb8(0x23f)],z=(_0xd16ef2,_0xac2f13,_0x35282d)=>_0xac2f13 in _0xd16ef2?q(_0xd16ef2,_0xac2f13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35282d}):_0xd16ef2[_0xac2f13]=_0x35282d,d=(_0x2c04bb,_0x395c32,_0x10d572)=>z(_0x2c04bb,typeof _0x395c32!='symbol'?_0x395c32+'':_0x395c32,_0x10d572);import{CollaborationSessionService as _0x1aeeb2,SessionStatus as _0x4c2fe1,UniverCollaborationClientPlugin as _0x5df2c9}from'@univerjs-pro/collaboration-client';function _0x38aa(_0x4e70b4,_0x13c80e){var _0x212b62=_0x212b();return _0x38aa=function(_0x38aaca,_0x5d5abe){_0x38aaca=_0x38aaca-0x188;var _0x540e9f=_0x212b62[_0x38aaca];return _0x540e9f;},_0x38aa(_0x4e70b4,_0x13c80e);}import{Disposable as _0x978db0,toDisposable as _0x4a5a19,Inject as _0x47e04a,IUniverInstanceService as _0x5e8fc8,Injector as _0x12d76d,IConfigService as _0x4ab276,ICommandService as _0x1b92ec,RxDisposable as _0x34f499,UniverInstanceType as _0x44e9a0,DisposableCollection as _0x4bfb4d,CommandType as _0x1a8ce3,DependentOn as _0x20f516,Plugin as _0x2d95be,merge as _0x4d7b5c,registerDependencies as _0x3c4690,mergeOverrideWithDependencies as _0x5c9bf8,touchDependencies as _0x223193}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x24d323,InsertSheetMutation as _0x10e7cd}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x20f706,SetScrollOperation as _0xf4f43e}from'@univerjs/sheets-ui';import{useDependency as _0x5ac572,useObservable as _0xb18adb,IUIPartsService as _0x53c21b,BuiltInUIPart as _0x2b5b91,connectInjector as _0xecd535}from'@univerjs/ui';import{jsx as _0x2585db,jsxs as _0x3c8f57,Fragment as _0x589951}from'react/jsx-runtime';import{Dropdown as _0x2c46c3,clsx as _0x4d9db3,Button as _0xcd60f4}from'@univerjs/design';import{forwardRef as _0x59bfc9,useRef as _0x25d6c4,createElement as _0x45c30f,useState as _0x21145a,useEffect as _0x396e80}from'react';function _0x212b(){var _0x4f0b63=['pluginName','button','symbol','prototype','hasOwnProperty','_collabSession','getUnitId','path','replace','xlink:href','following','_collabSessionService','_commandDisposable','createInstance','none','4tLABLK','FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','IDLE','OPERATION','_liveShareService','PRESENTING','defIds','add','children','presenting','memberID','idle','idSuffix','clear','random','_handleOnline','sessionStatus$','data','OFFLINE','dispose$','subscribe','assign','_unitID','_entities','LIVESHARE_OPERATION','dispose','url(#$1','not-following','tag','colorChannel1','stopFollowing','_handleNewHost','_startPresenting','from','map','_reporters','send','7nckDEy','fill','1589860DNLwNd','_commandService','then','get','getTypeOfUnitAdded$','_handleTerminate','complete','parse','registerComponent','You\x27re\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','_presenter','length','startFollowing','_fetchOperations','svg','http://www.w3.org/2000/svg','LiveShareIcon','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Stop\x20presenting','string','end','set','tryStartPresenting','_startFollowing','getOwnPropertyDescriptor','setConfig','requireSession','_status','params','presenter','attrs','event$','univer-mb-3\x20univer-w-full\x20univer-text-sm','indexOf','getTypeOfUnitDisposed$','values','onStarting','36AbGmYL','0\x200\x2017\x2017','_stopFollowing','getLiveShareCoordinator','extend','defineProperty','1em','2922879GxkwKF','_status$','call','1491340FuOpUJ','current','univer-size-4','UniverIcon','apply','forEach','displayName','includes','Start\x20following','stopPresenting','_uiPartsService','NOT_FOLLOWING','unitId','_injector','getValue','currentColor','getInitialStates','UNIVER_SHEET','ONLINE','operations','init','live-share-icon','registerInitialStateReporter','icon','_sharedOperations','UNIVER_UNKNOWN','_init','onRendered','entries','Stop\x20following','LIVESHARE_TERMINATE','next','43451034ZEDDhj','evenodd','4180944SQwlZt','Present\x20this\x20document','You\x27re\x20presenting\x20the\x20document','pipe','mask','offline','propertyIsEnumerable','getOwnPropertySymbols','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','getMemberID','_beIdle','1490030ftfqNq','div','text','reverse','find','live-share.config','HEADER_MENU','_configService','status$','mutations','defs','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','_mountLiveShare','onCommandExecuted','_univerInstanceService','asObservable','getConfig','_handleNewChangeSets','unsubscribe','2NSYMkD','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','executeCommand','sheet','type','delete','className','override','univerjs-icon\x20univerjs-icon-','registerSharedOperation','1464168OYzTwh','_config','concat','has','You\x27are\x20offline.','substring'];_0x212b=function(){return _0x4f0b63;};return _0x212b();}import{CollaborationEvent as _0x20f152,parseProtocolChangeset as _0x5d01dc}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x232912,Subject as _0x396672}from'rxjs';import{takeUntil as _0x53db6a,throttleTime as _0x4fcd45}from'rxjs/operators';const Oe=_0x1cfdb8(0x1bd),T={};class L extends _0x978db0{constructor(){var _0x263b05=_0x1cfdb8;super(...arguments),d(this,_0x263b05(0x1a3),new Set()),d(this,'_reporters',new Set());}[_0x1cfdb8(0x1d5)](_0x1a5673){var _0x26d507=_0x1cfdb8;return this[_0x26d507(0x1a3)][_0x26d507(0x1f3)](_0x1a5673),_0x4a5a19(()=>this['_sharedOperations'][_0x26d507(0x1d1)](_0x1a5673));}[_0x1cfdb8(0x1a1)](_0x222b63){var _0x272a54=_0x1cfdb8;return this[_0x272a54(0x20f)][_0x272a54(0x1f3)](_0x222b63),_0x4a5a19(()=>this[_0x272a54(0x20f)]['delete'](_0x222b63));}['shouldShareOperation'](_0x3dae90){var _0x1b2f10=_0x1cfdb8;return this[_0x1b2f10(0x1a3)][_0x1b2f10(0x1d9)](_0x3dae90);}['getInitialStates'](_0x9af903){var _0x3af8af=_0x1cfdb8;return Array[_0x3af8af(0x20d)](this[_0x3af8af(0x20f)])[_0x3af8af(0x20e)](_0xe0eae5=>_0xe0eae5(_0x9af903));}}var Ee=Object[_0x1cfdb8(0x22d)],we=(_0x4e4613,_0x447ae7,_0x385b4f,_0x413bfa)=>{var _0x438e2f=_0x1cfdb8;for(var _0x19eb74=_0x413bfa>0x1?void 0x0:_0x413bfa?Ee(_0x447ae7,_0x385b4f):_0x447ae7,_0x2ca1d4=_0x4e4613[_0x438e2f(0x21f)]-0x1,_0x33589d;_0x2ca1d4>=0x0;_0x2ca1d4--)(_0x33589d=_0x4e4613[_0x2ca1d4])&&(_0x19eb74=_0x33589d(_0x19eb74)||_0x19eb74);return _0x19eb74;},Ne=(_0x5300ab,_0x364dc7)=>(_0x195b5e,_0x1987f9)=>_0x364dc7(_0x195b5e,_0x1987f9,_0x5300ab);let m=class extends _0x978db0{constructor(_0x2f763e){var _0x5c2773=_0x1cfdb8;super(),this[_0x5c2773(0x1f0)]=_0x2f763e,this[_0x5c2773(0x1a5)]();}[_0x1cfdb8(0x1a5)](){var _0x565342=_0x1cfdb8;[_0x20f706['id'],_0xf4f43e['id'],_0x24d323['id']][_0x565342(0x190)](_0x5b7203=>{var _0x4fc2ac=_0x565342;this['disposeWithMe'](this['_liveShareService'][_0x4fc2ac(0x1d5)](_0x5b7203));});}};m=we([Ne(0x0,_0x47e04a(L))],m);var c=function(){var _0x10ec6a=_0x1cfdb8;return c=Object[_0x10ec6a(0x201)]||function(_0x39cc35){var _0x3edc73=_0x10ec6a;for(var _0x4d6feb,_0x4ccd36=0x1,_0x59fa55=arguments[_0x3edc73(0x21f)];_0x4ccd36<_0x59fa55;_0x4ccd36++){_0x4d6feb=arguments[_0x4ccd36];for(var _0x137211 in _0x4d6feb)Object['prototype'][_0x3edc73(0x1e0)]['call'](_0x4d6feb,_0x137211)&&(_0x39cc35[_0x137211]=_0x4d6feb[_0x137211]);}return _0x39cc35;},c[_0x10ec6a(0x18f)](this,arguments);},Ce=function(_0xb5c193,_0x5a3b62){var _0x4a0668=_0x1cfdb8,_0xec7201={};for(var _0x4a5760 in _0xb5c193)Object[_0x4a0668(0x1df)][_0x4a0668(0x1e0)]['call'](_0xb5c193,_0x4a5760)&&_0x5a3b62[_0x4a0668(0x236)](_0x4a5760)<0x0&&(_0xec7201[_0x4a5760]=_0xb5c193[_0x4a5760]);if(_0xb5c193!=null&&typeof Object[_0x4a0668(0x1b4)]=='function'){for(var _0x33c41e=0x0,_0x4a5760=Object[_0x4a0668(0x1b4)](_0xb5c193);_0x33c41e<_0x4a5760[_0x4a0668(0x21f)];_0x33c41e++)_0x5a3b62[_0x4a0668(0x236)](_0x4a5760[_0x33c41e])<0x0&&Object[_0x4a0668(0x1df)][_0x4a0668(0x1b3)][_0x4a0668(0x18a)](_0xb5c193,_0x4a5760[_0x33c41e])&&(_0xec7201[_0x4a5760[_0x33c41e]]=_0xb5c193[_0x4a5760[_0x33c41e]]);}return _0xec7201;},W=_0x59bfc9(function(_0x4efc7e,_0xb0d19f){var _0x4baa06=_0x1cfdb8,_0x55f209=_0x4efc7e['icon'],_0xe569d2=_0x4efc7e['id'],_0x1c58fb=_0x4efc7e[_0x4baa06(0x1d2)],_0x3b30b2=_0x4efc7e[_0x4baa06(0x23e)],_0x143fc8=Ce(_0x4efc7e,[_0x4baa06(0x1a2),'id',_0x4baa06(0x1d2),_0x4baa06(0x23e)]),_0x1b8bcd=_0x4baa06(0x1d4)['concat'](_0xe569d2,'\x20')[_0x4baa06(0x1d8)](_0x1c58fb||'')[_0x4baa06(0x225)](),_0x4d6fc4=_0x25d6c4('_'[_0x4baa06(0x1d8)](Le()));return Y(_0x55f209,''[_0x4baa06(0x1d8)](_0xe569d2),{'defIds':_0x55f209[_0x4baa06(0x1f2)],'idSuffix':_0x4d6fc4[_0x4baa06(0x18c)]},c({'ref':_0xb0d19f,'className':_0x1b8bcd},_0x143fc8),_0x3b30b2);});function Y(_0x43f131,_0x1b90f7,_0x27d717,_0x21d043,_0x48f311){var _0x68908d=_0x1cfdb8;return _0x45c30f(_0x43f131[_0x68908d(0x208)],c(c({'key':_0x1b90f7},De(_0x43f131,_0x27d717,_0x48f311)),_0x21d043),(xe(_0x43f131,_0x27d717)[_0x68908d(0x1f4)]||[])[_0x68908d(0x20e)](function(_0x406890,_0x2dd08d){var _0x564cd0=_0x68908d;return Y(_0x406890,''['concat'](_0x1b90f7,'-')[_0x564cd0(0x1d8)](_0x43f131[_0x564cd0(0x208)],'-')[_0x564cd0(0x1d8)](_0x2dd08d),_0x27d717,void 0x0,_0x48f311);}));}function De(_0x82f61f,_0x2aed74,_0x1c1e9e){var _0x16ade7=_0x1cfdb8,_0x4ad31f=c({},_0x82f61f['attrs']);_0x1c1e9e!=null&&_0x1c1e9e[_0x16ade7(0x209)]&&_0x4ad31f['fill']==='colorChannel1'&&(_0x4ad31f[_0x16ade7(0x212)]=_0x1c1e9e[_0x16ade7(0x209)]),_0x82f61f['tag']==='mask'&&_0x4ad31f['id']&&(_0x4ad31f['id']=_0x4ad31f['id']+_0x2aed74[_0x16ade7(0x1f8)]),Object[_0x16ade7(0x1a7)](_0x4ad31f)[_0x16ade7(0x190)](function(_0x2395ae){var _0x116c4e=_0x16ade7,_0x2fd12d=_0x2395ae[0x0],_0x1e4eb7=_0x2395ae[0x1];_0x2fd12d===_0x116c4e(0x1b1)&&typeof _0x1e4eb7==_0x116c4e(0x228)&&(_0x4ad31f[_0x2fd12d]=_0x1e4eb7[_0x116c4e(0x1e4)](/url\(#(.*)\)/,_0x116c4e(0x206)[_0x116c4e(0x1d8)](_0x2aed74[_0x116c4e(0x1f8)],')')));});var _0x47b494=_0x2aed74[_0x16ade7(0x1f2)];return!_0x47b494||_0x47b494['length']===0x0||(_0x82f61f[_0x16ade7(0x208)]==='use'&&_0x4ad31f['xlink:href']&&(_0x4ad31f[_0x16ade7(0x1e5)]=_0x4ad31f[_0x16ade7(0x1e5)]+_0x2aed74['idSuffix']),Object[_0x16ade7(0x1a7)](_0x4ad31f)[_0x16ade7(0x190)](function(_0x3e714d){var _0x5e6db8=_0x16ade7,_0x2da8cd=_0x3e714d[0x0],_0x189137=_0x3e714d[0x1];typeof _0x189137==_0x5e6db8(0x228)&&(_0x4ad31f[_0x2da8cd]=_0x189137[_0x5e6db8(0x1e4)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2aed74[_0x5e6db8(0x1f8)],')')));})),_0x4ad31f;}function xe(_0x5dae6e,_0x410d83){var _0x13f102=_0x1cfdb8,_0x2f5174,_0x1313df=_0x410d83[_0x13f102(0x1f2)];return!_0x1313df||_0x1313df[_0x13f102(0x21f)]===0x0?_0x5dae6e:_0x5dae6e[_0x13f102(0x208)]===_0x13f102(0x1c2)&&(!((_0x2f5174=_0x5dae6e[_0x13f102(0x1f4)])===null||_0x2f5174===void 0x0)&&_0x2f5174[_0x13f102(0x21f)])?c(c({},_0x5dae6e),{'children':_0x5dae6e[_0x13f102(0x1f4)][_0x13f102(0x20e)](function(_0x1d6f5e){var _0x187fc2=_0x13f102;return typeof _0x1d6f5e[_0x187fc2(0x233)]['id']==_0x187fc2(0x228)&&_0x1313df&&_0x1313df[_0x187fc2(0x192)](_0x1d6f5e['attrs']['id'])?c(c({},_0x1d6f5e),{'attrs':c(c({},_0x1d6f5e['attrs']),{'id':_0x1d6f5e[_0x187fc2(0x233)]['id']+_0x410d83['idSuffix']})}):_0x1d6f5e;})}):_0x5dae6e;}function Le(){var _0x28a028=_0x1cfdb8;return Math[_0x28a028(0x1fa)]()['toString'](0x24)[_0x28a028(0x1db)](0x2,0x8);}W[_0x1cfdb8(0x191)]=_0x1cfdb8(0x18e);var ye={'tag':_0x1cfdb8(0x222),'attrs':{'xmlns':_0x1cfdb8(0x223),'fill':_0x1cfdb8(0x1ea),'viewBox':_0x1cfdb8(0x23b),'width':_0x1cfdb8(0x240),'height':_0x1cfdb8(0x240)},'children':[{'tag':_0x1cfdb8(0x1e3),'attrs':{'fill':'currentColor','d':_0x1cfdb8(0x1c3)}},{'tag':_0x1cfdb8(0x1e3),'attrs':{'fill':_0x1cfdb8(0x19a),'d':_0x1cfdb8(0x1b5),'fillRule':_0x1cfdb8(0x1ac),'clipRule':_0x1cfdb8(0x1ac)}}]},B=_0x59bfc9(function(_0x43d921,_0x42532d){var _0x4476b5=_0x1cfdb8;return _0x45c30f(W,Object[_0x4476b5(0x201)]({},_0x43d921,{'id':_0x4476b5(0x1a0),'ref':_0x42532d,'icon':ye}));});B[_0x1cfdb8(0x191)]=_0x1cfdb8(0x224);var Re=Object[_0x1cfdb8(0x22d)],Z=(_0x4e9e22,_0x8190cc,_0x5ba304,_0x2c4611)=>{var _0x2d8fb1=_0x1cfdb8;for(var _0x98efbb=_0x2c4611>0x1?void 0x0:_0x2c4611?Re(_0x8190cc,_0x5ba304):_0x8190cc,_0x4c592=_0x4e9e22[_0x2d8fb1(0x21f)]-0x1,_0x221019;_0x4c592>=0x0;_0x4c592--)(_0x221019=_0x4e9e22[_0x4c592])&&(_0x98efbb=_0x221019(_0x98efbb)||_0x98efbb);return _0x98efbb;},f=(_0x27cafd,_0x2ed14a)=>(_0x9920ce,_0x342b25)=>_0x2ed14a(_0x9920ce,_0x342b25,_0x27cafd);let I=class extends _0x34f499{constructor(_0x585cc7,_0x286658,_0x438dd1){var _0xea64f7=_0x1cfdb8;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x585cc7,this[_0xea64f7(0x198)]=_0x286658,this[_0xea64f7(0x1e7)]=_0x438dd1,this['_init']());}async[_0x1cfdb8(0x23d)](_0x3275a4){var _0x12c256=_0x1cfdb8;return this[_0x12c256(0x203)][_0x12c256(0x1d9)](_0x3275a4)||await this[_0x12c256(0x1cd)](_0x3275a4),this[_0x12c256(0x203)][_0x12c256(0x216)](_0x3275a4);}['_init'](){var _0x2739e5=_0x1cfdb8;this[_0x2739e5(0x1c6)][_0x2739e5(0x217)](_0x44e9a0[_0x2739e5(0x19c)])[_0x2739e5(0x1b0)](_0x53db6a(this[_0x2739e5(0x1ff)]))[_0x2739e5(0x200)](async _0xb14a38=>{var _0x5e159f=_0x2739e5;const _0x34c79=_0xb14a38[_0x5e159f(0x1e2)]();this[_0x5e159f(0x203)]['has'](_0x34c79)||this['_startLiveShareCoordinator'](_0x34c79);}),this[_0x2739e5(0x1c6)][_0x2739e5(0x237)](_0x44e9a0[_0x2739e5(0x19c)])[_0x2739e5(0x1b0)](_0x53db6a(this[_0x2739e5(0x1ff)]))['subscribe'](_0x453124=>{var _0x22a0ae=_0x2739e5;const _0x1f9d48=_0x453124['getUnitId'](),_0x26fd07=this[_0x22a0ae(0x203)][_0x22a0ae(0x216)](_0x1f9d48);_0x26fd07==null||_0x26fd07[_0x22a0ae(0x205)]();});}async[_0x1cfdb8(0x1cd)](_0x9169fa){var _0x3d461a=_0x1cfdb8;const _0x59e13c=await this['_collabSessionService'][_0x3d461a(0x22f)](_0x9169fa),_0x59207e=this[_0x3d461a(0x198)][_0x3d461a(0x1e9)](C,_0x9169fa,_0x59e13c);return _0x59207e[_0x3d461a(0x19f)](),this['_entities'][_0x3d461a(0x22a)](_0x9169fa,_0x59207e),_0x59207e;}};I=Z([f(0x0,_0x5e8fc8),f(0x1,_0x47e04a(_0x12d76d)),f(0x2,_0x47e04a(_0x1aeeb2))],I);var h=(_0x1d348c=>(_0x1d348c[_0x1cfdb8(0x1fe)]=_0x1cfdb8(0x1b2),_0x1d348c[_0x1cfdb8(0x1ee)]=_0x1cfdb8(0x1f7),_0x1d348c[_0x1cfdb8(0x1ec)]=_0x1cfdb8(0x1e6),_0x1d348c[_0x1cfdb8(0x196)]='not-following',_0x1d348c[_0x1cfdb8(0x1f1)]='presenting',_0x1d348c))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x34f499{constructor(_0x986b6,_0x19809d,_0x1e70f5,_0xcb00ee,_0x193bc4){var _0x3b438f=_0x1cfdb8;super(),d(this,_0x3b438f(0x189),new _0x232912('idle')),d(this,_0x3b438f(0x1c0),this[_0x3b438f(0x189)][_0x3b438f(0x1c7)]()),d(this,'_init',!0x1),d(this,_0x3b438f(0x1e8),null),d(this,'_presenter',null),(this['_unitID']=_0x986b6,this[_0x3b438f(0x1e1)]=_0x19809d,this[_0x3b438f(0x1bf)]=_0x1e70f5,this[_0x3b438f(0x1f0)]=_0xcb00ee,this['_commandService']=_0x193bc4);}get['_status'](){var _0x3cf0ff=_0x1cfdb8;return this[_0x3cf0ff(0x189)][_0x3cf0ff(0x199)]();}[_0x1cfdb8(0x205)](){var _0x1935bd=_0x1cfdb8,_0x7d10a9;(_0x7d10a9=this[_0x1935bd(0x1e8)])==null||_0x7d10a9[_0x1935bd(0x205)](),this[_0x1935bd(0x189)]['next']('idle'),this[_0x1935bd(0x189)][_0x1935bd(0x219)]();}[_0x1cfdb8(0x19f)](){var _0x3c2ea5=_0x1cfdb8;this['_init']||(this[_0x3c2ea5(0x1a5)]=!0x0,this['_collabSession'][_0x3c2ea5(0x1fc)]['pipe'](_0x53db6a(this[_0x3c2ea5(0x1ff)]))['subscribe'](_0x49b50d=>{var _0x42f9e1=_0x3c2ea5;switch(_0x49b50d){case _0x4c2fe1[_0x42f9e1(0x1fe)]:this['_handleOffline']();break;case _0x4c2fe1[_0x42f9e1(0x19d)]:this[_0x42f9e1(0x1fb)]();break;}}),this['_collabSession'][_0x3c2ea5(0x234)][_0x3c2ea5(0x1b0)](_0x53db6a(this['dispose$']))[_0x3c2ea5(0x200)](_0x569ba7=>{var _0x3c9176=_0x3c2ea5;const {eventID:_0x10980b}=_0x569ba7;switch(_0x10980b){case _0x20f152['LIVESHARE_NEW_HOST']:this[_0x3c9176(0x20b)](_0x569ba7);break;case _0x20f152[_0x3c9176(0x204)]:this['_handleOperation'](_0x569ba7);break;case _0x20f152[_0x3c9176(0x1a9)]:this['_handleTerminate']();break;case _0x20f152['NEW_CHANGESETS']:this[_0x3c9176(0x1c9)](_0x569ba7);break;}}));}['tryStartPresenting'](){var _0x31d8fa=_0x1cfdb8;this[_0x31d8fa(0x1e1)][_0x31d8fa(0x210)]({'eventID':_0x20f152[_0x31d8fa(0x21d)],'data':{'unitID':this[_0x31d8fa(0x202)],'userID':this[_0x31d8fa(0x1e1)]['getMemberID']()}},this[_0x31d8fa(0x202)]);}['stopPresenting'](){var _0x591157=_0x1cfdb8;this[_0x591157(0x230)]===_0x591157(0x1f5)&&(this[_0x591157(0x189)]['next'](_0x591157(0x1f7)),this[_0x591157(0x1e1)][_0x591157(0x210)]({'eventID':_0x20f152[_0x591157(0x1a9)],'data':{'unitID':this[_0x591157(0x202)]}},this[_0x591157(0x202)]));}[_0x1cfdb8(0x220)](){var _0x529865=_0x1cfdb8;this[_0x529865(0x230)]==='not-following'&&(this[_0x529865(0x189)][_0x529865(0x1aa)](_0x529865(0x1e6)),this[_0x529865(0x22c)]());}[_0x1cfdb8(0x20a)](){var _0x511b34=_0x1cfdb8;this[_0x511b34(0x230)]===_0x511b34(0x1e6)&&this[_0x511b34(0x23c)]();}['_handleNewHost'](_0x9cf68f){var _0x524346=_0x1cfdb8;const {presenter:_0x5d0808}=_0x9cf68f[_0x524346(0x1fd)],_0x42d715=this[_0x524346(0x1e1)]['getMemberID']();this['_presenter']=_0x5d0808,_0x5d0808===_0x42d715?(this['_stopFollowing'](),this[_0x524346(0x20c)]()):this['_status']!==_0x524346(0x207)&&(this['_stopPresenting'](),this[_0x524346(0x22c)]());}[_0x1cfdb8(0x221)](){var _0x175615=_0x1cfdb8;const _0x544c40={'eventID':_0x20f152['LIVESHARE_FETCH_OPERATIONS']};this[_0x175615(0x1e1)][_0x175615(0x210)](_0x544c40,this[_0x175615(0x202)]);}[_0x1cfdb8(0x218)](){var _0x397979=_0x1cfdb8;this[_0x397979(0x21e)]=null,this[_0x397979(0x230)]!==_0x397979(0x1f5)&&this[_0x397979(0x1b7)]();}[_0x1cfdb8(0x1c9)](_0x1eccf4){var _0x2ce401=_0x1cfdb8;if(this[_0x2ce401(0x230)]==='following'&&this['_presenter']===_0x1eccf4[_0x2ce401(0x1fd)][_0x2ce401(0x1f6)]){const _0x34f39b=_0x5d01dc(_0x1eccf4[_0x2ce401(0x1fd)])[_0x2ce401(0x1c1)][_0x2ce401(0x1bb)]()[_0x2ce401(0x1bc)](_0x20ccc4=>_0x20ccc4['id']===_0x10e7cd['id']);if(_0x34f39b){const _0x3e543d=_0x34f39b['params'][_0x2ce401(0x197)],_0x53c143=_0x34f39b[_0x2ce401(0x231)][_0x2ce401(0x1cf)]['id'];setTimeout(()=>{var _0x3b922c=_0x2ce401;this[_0x3b922c(0x214)][_0x3b922c(0x1ce)](_0x24d323['id'],{'unitId':_0x3e543d,'subUnitId':_0x53c143},{'fromCollab':!0x0});});}}}[_0x1cfdb8(0x20c)](){var _0x8b037f=_0x1cfdb8;this[_0x8b037f(0x189)][_0x8b037f(0x1aa)](_0x8b037f(0x1f5));const _0x39e9db=new Map(),_0x5e0b31=this['_commandDisposable']=new _0x4bfb4d();_0x5e0b31[_0x8b037f(0x1f3)](_0x4a5a19(()=>{var _0xdf7013=_0x8b037f;_0x39e9db[_0xdf7013(0x190)](_0x49cd61=>_0x49cd61[_0xdf7013(0x219)]()),_0x39e9db[_0xdf7013(0x1f9)]();})),_0x5e0b31[_0x8b037f(0x1f3)](this[_0x8b037f(0x214)][_0x8b037f(0x1c5)](_0x2b9a6a=>{var _0x9183b1=_0x8b037f,_0xe3702b;if(_0x2b9a6a[_0x9183b1(0x1d0)]!==_0x1a8ce3[_0x9183b1(0x1ef)]||!this[_0x9183b1(0x1f0)]['shouldShareOperation'](_0x2b9a6a['id']))return;const {id:_0x1bfc77}=_0x2b9a6a;let _0x2af0b8;_0x39e9db[_0x9183b1(0x1d9)](_0x1bfc77)?_0x2af0b8=_0x39e9db[_0x9183b1(0x216)](_0x1bfc77):(_0x2af0b8=new _0x396672(),_0x39e9db[_0x9183b1(0x22a)](_0x1bfc77,_0x2af0b8),_0x2af0b8['pipe'](_0x4fcd45((_0xe3702b=this[_0x9183b1(0x1bf)][_0x9183b1(0x1c8)](Pe))!=null?_0xe3702b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xa8648c=>{var _0x2f7443=_0x9183b1;this[_0x2f7443(0x1e1)][_0x2f7443(0x210)]({'eventID':_0x20f152[_0x2f7443(0x204)],'data':{'unitID':this['_unitID'],'operations':{[_0xa8648c['id']]:{'id':_0xa8648c['id'],'params':JSON['stringify'](_0xa8648c[_0x2f7443(0x231)])}}}},this[_0x2f7443(0x202)]);})),_0x2af0b8[_0x9183b1(0x1aa)](_0x2b9a6a);})),this[_0x8b037f(0x1f0)][_0x8b037f(0x19b)](this[_0x8b037f(0x202)])[_0x8b037f(0x190)](_0x54d54a=>this[_0x8b037f(0x1e1)][_0x8b037f(0x210)]({'eventID':_0x20f152[_0x8b037f(0x204)],'data':{'unitID':this[_0x8b037f(0x202)],'operations':{[_0x54d54a['id']]:{'id':_0x54d54a['id'],'params':JSON['stringify'](_0x54d54a[_0x8b037f(0x231)])}}}},this[_0x8b037f(0x202)]));}['_stopPresenting'](){var _0x35885c=_0x1cfdb8,_0x3d4b00;this[_0x35885c(0x189)][_0x35885c(0x1aa)](_0x35885c(0x1f7)),(_0x3d4b00=this[_0x35885c(0x1e8)])==null||_0x3d4b00['dispose'](),this[_0x35885c(0x1e8)]=null;}['_startFollowing'](){var _0x4456e2=_0x1cfdb8,_0x3b8155;(_0x3b8155=this['_commandDisposable'])==null||_0x3b8155[_0x4456e2(0x205)](),this[_0x4456e2(0x189)][_0x4456e2(0x1aa)](_0x4456e2(0x1e6));}[_0x1cfdb8(0x1b7)](){var _0x5c5771=_0x1cfdb8,_0x5a6c76;this[_0x5c5771(0x189)]['next'](_0x5c5771(0x1f7)),(_0x5a6c76=this[_0x5c5771(0x1e8)])==null||_0x5a6c76[_0x5c5771(0x205)](),this[_0x5c5771(0x1e8)]=null;}['_stopFollowing'](){var _0x51c916=_0x1cfdb8,_0x12de5f;this[_0x51c916(0x189)][_0x51c916(0x1aa)](_0x51c916(0x207)),(_0x12de5f=this[_0x51c916(0x1e8)])==null||_0x12de5f[_0x51c916(0x205)]();}['_handleOperation'](_0x5b5ecb){var _0x4be783=_0x1cfdb8;if([_0x4be783(0x1f5),_0x4be783(0x207),_0x4be783(0x1b2)][_0x4be783(0x192)](this[_0x4be783(0x230)])||!_0x5b5ecb[_0x4be783(0x1fd)][_0x4be783(0x232)]||_0x5b5ecb[_0x4be783(0x1fd)]['presenter']===this[_0x4be783(0x1e1)][_0x4be783(0x1b6)]())return;this[_0x4be783(0x230)]===_0x4be783(0x1f7)&&this[_0x4be783(0x22c)]();const _0x2e3c75=_0x5b5ecb[_0x4be783(0x1fd)][_0x4be783(0x19e)];Object[_0x4be783(0x238)](_0x2e3c75)['forEach'](_0x5391f8=>{var _0x23eed0=_0x4be783;this[_0x23eed0(0x214)][_0x23eed0(0x1ce)](_0x5391f8['id'],_0x5391f8[_0x23eed0(0x231)]?JSON[_0x23eed0(0x21a)](_0x5391f8[_0x23eed0(0x231)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x44d3b7=_0x1cfdb8,_0x36ebed;this['_status$'][_0x44d3b7(0x1aa)](_0x44d3b7(0x1b2)),(_0x36ebed=this[_0x44d3b7(0x1e8)])==null||_0x36ebed[_0x44d3b7(0x205)]();}[_0x1cfdb8(0x1fb)](){var _0x475b0a=_0x1cfdb8;this[_0x475b0a(0x189)][_0x475b0a(0x1aa)](_0x475b0a(0x1f7)),this[_0x475b0a(0x221)]();}};C=Z([f(0x2,_0x4ab276),f(0x3,_0x47e04a(L)),f(0x4,_0x1b92ec)],C);function Te(){var _0x59090f=_0x1cfdb8;const _0x978a73=_0x5ac572(I),_0x2db5fb=_0x5ac572(_0x5e8fc8),_0x9ed3cf=_0xb18adb(()=>_0x2db5fb['getCurrentTypeOfUnit$'](_0x44e9a0[_0x59090f(0x19c)]),void 0x0,!0x1,[]),[_0x1969fe,_0x2f608b]=_0x21145a(null),[_0x4c8577,_0x2dce7f]=_0x21145a(h[_0x59090f(0x1ee)]),_0x1a1223=_0x25d6c4(null);return _0x396e80(()=>(_0x9ed3cf&&_0x978a73[_0x59090f(0x23d)](_0x9ed3cf[_0x59090f(0x1e2)]())[_0x59090f(0x215)](_0xff1f95=>{var _0x2cd215=_0x59090f;_0x2f608b(_0xff1f95),_0x1a1223[_0x2cd215(0x18c)]=_0xff1f95[_0x2cd215(0x1c0)][_0x2cd215(0x200)](_0x3240bc=>{_0x2dce7f(_0x3240bc);});}),()=>{var _0xe025f9=_0x59090f,_0x4a1122;(_0x4a1122=_0x1a1223[_0xe025f9(0x18c)])==null||_0x4a1122[_0xe025f9(0x1ca)](),_0x1a1223[_0xe025f9(0x18c)]=null;}),[_0x9ed3cf,_0x978a73]),_0x1969fe?_0x2585db(_0x2c46c3,{'align':_0x59090f(0x229),'disabled':_0x4c8577===h[_0x59090f(0x1fe)],'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':_0x2585db($e,{'status':_0x4c8577,'coordinator':_0x1969fe}),'children':_0x2585db(_0x59090f(0x1dd),{'className':_0x4d9db3(_0x59090f(0x226),{'univer-cursor-not-allowed':_0x4c8577===h[_0x59090f(0x1fe)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c8577!==h[_0x59090f(0x1fe)]}),'type':_0x59090f(0x1dd),'children':_0x2585db(B,{'className':_0x59090f(0x18d)})})}):null;}function $e(_0x5798a1){var _0x55d5a1=_0x1cfdb8;const {status:_0x12b2cd,coordinator:_0x2b3e37}=_0x5798a1;switch(_0x12b2cd){case h[_0x55d5a1(0x1ee)]:return _0x2585db(Fe,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x1ec)]:return _0x2585db(He,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x196)]:return _0x2585db(je,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x1fe)]:return _0x2585db(Ve,{});case h['PRESENTING']:return _0x2585db(Ue,{'coordinator':_0x2b3e37});default:return null;}}function Fe(_0x237c5a){var _0x3167ee=_0x1cfdb8;const {coordinator:_0x558289}=_0x237c5a;return _0x3c8f57(_0x589951,{'children':[_0x2585db('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3167ee(0x1ae)}),_0x2585db(_0xcd60f4,{'onClick':()=>_0x558289[_0x3167ee(0x22b)](),'children':'Start'})]});}function He(_0x405a5d){var _0xc121e8=_0x1cfdb8;const {coordinator:_0x38a75a}=_0x405a5d;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0xc121e8(0x1b9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc121e8(0x21c)}),_0x2585db(_0xcd60f4,{'onClick':()=>_0x38a75a[_0xc121e8(0x20a)](),'children':_0xc121e8(0x1a8)})]});}function je(_0x3714c4){var _0x43d3b6=_0x1cfdb8;const {coordinator:_0x451cdf}=_0x3714c4;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0x43d3b6(0x1b9),{'className':_0x43d3b6(0x235),'children':_0x43d3b6(0x1ed)}),_0x2585db(_0xcd60f4,{'variant':_0x43d3b6(0x1ba),'onClick':()=>_0x451cdf[_0x43d3b6(0x220)](),'children':_0x43d3b6(0x193)})]});}function Ue(_0x348aff){var _0x9ba380=_0x1cfdb8;const {coordinator:_0x2dc79c}=_0x348aff;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0x9ba380(0x1b9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x9ba380(0x1af)}),_0x2585db(_0xcd60f4,{'variant':'default','onClick':()=>_0x2dc79c[_0x9ba380(0x194)](),'children':_0x9ba380(0x227)})]});}function Ve(){var _0x22c132=_0x1cfdb8;return _0x2585db(_0x589951,{'children':_0x22c132(0x1da)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x4451df,_0x374f12,_0x25045f,_0x4a89e2)=>{var _0x502f53=_0x1cfdb8;for(var _0x43067b=_0x4a89e2>0x1?void 0x0:_0x4a89e2?Me(_0x374f12,_0x25045f):_0x374f12,_0x55d42c=_0x4451df[_0x502f53(0x21f)]-0x1,_0x508aa7;_0x55d42c>=0x0;_0x55d42c--)(_0x508aa7=_0x4451df[_0x55d42c])&&(_0x43067b=_0x508aa7(_0x43067b)||_0x43067b);return _0x43067b;},$=(_0x39e8fa,_0x3ccddf)=>(_0x2c454f,_0x3233c3)=>_0x3ccddf(_0x2c454f,_0x3233c3,_0x39e8fa);let b=class extends _0x978db0{constructor(_0x570a1d,_0x416b11){var _0x1d2f9b=_0x1cfdb8;super(),this[_0x1d2f9b(0x198)]=_0x570a1d,this[_0x1d2f9b(0x195)]=_0x416b11,this[_0x1d2f9b(0x1c4)]();}[_0x1cfdb8(0x1c4)](){var _0x1122f5=_0x1cfdb8;this['disposeWithMe'](this['_uiPartsService'][_0x1122f5(0x21b)](_0x2b5b91[_0x1122f5(0x1be)],()=>_0xecd535(Te,this[_0x1122f5(0x198)])));}};b=ke([$(0x0,_0x47e04a(_0x12d76d)),$(0x1,_0x53c21b)],b);var Ge=Object['defineProperty'],We=Object[_0x1cfdb8(0x22d)],Ye=(_0x58b4f5,_0x266794,_0x3dd639)=>_0x266794 in _0x58b4f5?Ge(_0x58b4f5,_0x266794,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd639}):_0x58b4f5[_0x266794]=_0x3dd639,Be=(_0x3d2be0,_0x3f4038,_0x106740,_0x5853d8)=>{for(var _0x41ef16=_0x5853d8>0x1?void 0x0:_0x5853d8?We(_0x3f4038,_0x106740):_0x3f4038,_0x5b4e47=_0x3d2be0['length']-0x1,_0x4da8f4;_0x5b4e47>=0x0;_0x5b4e47--)(_0x4da8f4=_0x3d2be0[_0x5b4e47])&&(_0x41ef16=_0x4da8f4(_0x41ef16)||_0x41ef16);return _0x41ef16;},F=(_0x23c66e,_0x33b9cb)=>(_0x4f6307,_0x501b75)=>_0x33b9cb(_0x4f6307,_0x501b75,_0x23c66e),J=(_0x1501a1,_0x4a766a,_0xf697e0)=>Ye(_0x1501a1,typeof _0x4a766a!=_0x1cfdb8(0x1de)?_0x4a766a+'':_0x4a766a,_0xf697e0);const Ze=_0x1cfdb8(0x1cc);let O=class extends _0x2d95be{constructor(_0x54127e=T,_0x393189,_0x5105fe){var _0x158f4b=_0x1cfdb8;super(),this[_0x158f4b(0x1d7)]=_0x54127e,this['_injector']=_0x393189,this['_configService']=_0x5105fe;const {..._0x35dc4c}=_0x4d7b5c({},T,this[_0x158f4b(0x1d7)]);this[_0x158f4b(0x1bf)][_0x158f4b(0x22e)](Oe,_0x35dc4c);}[_0x1cfdb8(0x239)](){var _0x395652=_0x1cfdb8;_0x3c4690(this[_0x395652(0x198)],_0x5c9bf8([[L],[I],[m],[b]],this['_config'][_0x395652(0x1d3)])),_0x223193(this[_0x395652(0x198)],[[m]]);}[_0x1cfdb8(0x1a6)](){var _0x5f4fcb=_0x1cfdb8;_0x223193(this[_0x5f4fcb(0x198)],[[b]]);}};J(O,_0x1cfdb8(0x1d0),_0x44e9a0[_0x1cfdb8(0x1a4)]),J(O,_0x1cfdb8(0x1dc),Ze),O=Be([_0x20f516(_0x5df2c9),F(0x1,_0x47e04a(_0x12d76d)),F(0x2,_0x4ab276)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x2a4e56=_0x211d;(function(_0x152bdd,_0x1d7b81){var _0x33e1dd=_0x211d,_0x4761b8=_0x152bdd();while(!![]){try{var _0x1a2bbe=parseInt(_0x33e1dd(0x102))/0x1+-parseInt(_0x33e1dd(0x125))/0x2+parseInt(_0x33e1dd(0x121))/0x3*(-parseInt(_0x33e1dd(0xdc))/0x4)+-parseInt(_0x33e1dd(0xf7))/0x5+-parseInt(_0x33e1dd(0xee))/0x6*(-parseInt(_0x33e1dd(0x162))/0x7)+-parseInt(_0x33e1dd(0xf0))/0x8+-parseInt(_0x33e1dd(0x11b))/0x9*(-parseInt(_0x33e1dd(0x14a))/0xa);if(_0x1a2bbe===_0x1d7b81)break;else _0x4761b8['push'](_0x4761b8['shift']());}catch(_0x29fa21){_0x4761b8['push'](_0x4761b8['shift']());}}}(_0x1f6a,0xb50de));var q=Object[_0x2a4e56(0x128)],z=(_0x1450a8,_0x4ca509,_0x59aa27)=>_0x4ca509 in _0x1450a8?q(_0x1450a8,_0x4ca509,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59aa27}):_0x1450a8[_0x4ca509]=_0x59aa27,d=(_0x5e21e9,_0x5ab015,_0x39ccae)=>z(_0x5e21e9,typeof _0x5ab015!='symbol'?_0x5ab015+'':_0x5ab015,_0x39ccae);import{CollaborationSessionService as _0x2605b2,SessionStatus as _0xd91a3e,UniverCollaborationClientPlugin as _0x54e8f2}from'@univerjs-pro/collaboration-client';import{Disposable as _0x55e70d,toDisposable as _0x5bbbe4,Inject as _0x28e2e2,IUniverInstanceService as _0x59a521,Injector as _0x385dfc,IConfigService as _0x5e7f31,ICommandService as _0xbe7d76,RxDisposable as _0x423752,UniverInstanceType as _0x5e9f9d,DisposableCollection as _0x5c7f80,CommandType as _0x425b0f,DependentOn as _0x302346,Plugin as _0x161583,merge as _0x40e342,registerDependencies as _0x5d616d,mergeOverrideWithDependencies as _0x22fea7,touchDependencies as _0x973282}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1be10f,InsertSheetMutation as _0x188508}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x39d4f5,SetScrollOperation as _0x15db34}from'@univerjs/sheets-ui';import{useDependency as _0x194831,useObservable as _0xc66ce5,IUIPartsService as _0x549bf8,BuiltInUIPart as _0x4f3fcc,connectInjector as _0x408093}from'@univerjs/ui';import{jsx as _0x56ff07,jsxs as _0x50cef9,Fragment as _0x280ba5}from'react/jsx-runtime';import{Dropdown as _0x34954a,clsx as _0x3a36ee,Button as _0x3a33fb}from'@univerjs/design';import{forwardRef as _0x268080,useRef as _0x5e1776,createElement as _0x42e6b9,useState as _0x1e1f64,useEffect as _0x47d093}from'react';import{CollaborationEvent as _0x444c80,parseProtocolChangeset as _0x4ddb95}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3110bd,Subject as _0x343b8d}from'rxjs';import{takeUntil as _0x28922c,throttleTime as _0x524525}from'rxjs/operators';const Oe=_0x2a4e56(0x124),T={};class L extends _0x55e70d{constructor(){var _0x593c6b=_0x2a4e56;super(...arguments),d(this,_0x593c6b(0xdf),new Set()),d(this,_0x593c6b(0x14f),new Set());}[_0x2a4e56(0x130)](_0x89d6b9){var _0x8075a5=_0x2a4e56;return this[_0x8075a5(0xdf)]['add'](_0x89d6b9),_0x5bbbe4(()=>this[_0x8075a5(0xdf)][_0x8075a5(0x144)](_0x89d6b9));}[_0x2a4e56(0xdb)](_0x492fc9){var _0x19bb97=_0x2a4e56;return this[_0x19bb97(0x14f)][_0x19bb97(0x14b)](_0x492fc9),_0x5bbbe4(()=>this[_0x19bb97(0x14f)][_0x19bb97(0x144)](_0x492fc9));}['shouldShareOperation'](_0x549c65){var _0xac4456=_0x2a4e56;return this[_0xac4456(0xdf)]['has'](_0x549c65);}['getInitialStates'](_0x4a90c7){var _0x1c9e2b=_0x2a4e56;return Array['from'](this['_reporters'])[_0x1c9e2b(0x159)](_0x3fd7c3=>_0x3fd7c3(_0x4a90c7));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x1bdf11,_0x4db765,_0x49f028,_0xae7cb6)=>{var _0x384f6f=_0x2a4e56;for(var _0x14a327=_0xae7cb6>0x1?void 0x0:_0xae7cb6?Ee(_0x4db765,_0x49f028):_0x4db765,_0x590a93=_0x1bdf11[_0x384f6f(0x139)]-0x1,_0x5b511c;_0x590a93>=0x0;_0x590a93--)(_0x5b511c=_0x1bdf11[_0x590a93])&&(_0x14a327=_0x5b511c(_0x14a327)||_0x14a327);return _0x14a327;},Ne=(_0x3e93ac,_0x809df4)=>(_0x529d84,_0xd32902)=>_0x809df4(_0x529d84,_0xd32902,_0x3e93ac);let m=class extends _0x55e70d{constructor(_0x267d0){super(),this['_liveShareService']=_0x267d0,this['_init']();}[_0x2a4e56(0x120)](){var _0x9ebc80=_0x2a4e56;[_0x39d4f5['id'],_0x15db34['id'],_0x1be10f['id']][_0x9ebc80(0x108)](_0x2edc84=>{var _0x25b93a=_0x9ebc80;this[_0x25b93a(0x114)](this[_0x25b93a(0x142)][_0x25b93a(0x130)](_0x2edc84));});}};m=we([Ne(0x0,_0x28e2e2(L))],m);var c=function(){return c=Object['assign']||function(_0x41401f){var _0x21c72f=_0x211d;for(var _0x188f3e,_0x3feaac=0x1,_0xcaa1b3=arguments[_0x21c72f(0x139)];_0x3feaac<_0xcaa1b3;_0x3feaac++){_0x188f3e=arguments[_0x3feaac];for(var _0x5895eb in _0x188f3e)Object['prototype'][_0x21c72f(0xf8)]['call'](_0x188f3e,_0x5895eb)&&(_0x41401f[_0x5895eb]=_0x188f3e[_0x5895eb]);}return _0x41401f;},c['apply'](this,arguments);},Ce=function(_0x49ab29,_0x2fb86a){var _0x4a6e9d=_0x2a4e56,_0x188bf2={};for(var _0x21ceb4 in _0x49ab29)Object['prototype'][_0x4a6e9d(0xf8)][_0x4a6e9d(0xe9)](_0x49ab29,_0x21ceb4)&&_0x2fb86a[_0x4a6e9d(0xd6)](_0x21ceb4)<0x0&&(_0x188bf2[_0x21ceb4]=_0x49ab29[_0x21ceb4]);if(_0x49ab29!=null&&typeof Object[_0x4a6e9d(0x15b)]==_0x4a6e9d(0xd5)){for(var _0x167ce7=0x0,_0x21ceb4=Object['getOwnPropertySymbols'](_0x49ab29);_0x167ce7<_0x21ceb4[_0x4a6e9d(0x139)];_0x167ce7++)_0x2fb86a[_0x4a6e9d(0xd6)](_0x21ceb4[_0x167ce7])<0x0&&Object['prototype'][_0x4a6e9d(0xd2)][_0x4a6e9d(0xe9)](_0x49ab29,_0x21ceb4[_0x167ce7])&&(_0x188bf2[_0x21ceb4[_0x167ce7]]=_0x49ab29[_0x21ceb4[_0x167ce7]]);}return _0x188bf2;},W=_0x268080(function(_0x2b5da0,_0x4a4be7){var _0x1f8bd3=_0x2a4e56,_0x1f30d4=_0x2b5da0[_0x1f8bd3(0x15e)],_0x45c8ae=_0x2b5da0['id'],_0xc0648e=_0x2b5da0[_0x1f8bd3(0xf3)],_0x59fab3=_0x2b5da0[_0x1f8bd3(0x110)],_0x1cef6d=Ce(_0x2b5da0,[_0x1f8bd3(0x15e),'id',_0x1f8bd3(0xf3),_0x1f8bd3(0x110)]),_0x3874b7=_0x1f8bd3(0xfc)[_0x1f8bd3(0x13c)](_0x45c8ae,'\x20')['concat'](_0xc0648e||'')[_0x1f8bd3(0xe2)](),_0x3ef99b=_0x5e1776('_'[_0x1f8bd3(0x13c)](Le()));return Y(_0x1f30d4,''[_0x1f8bd3(0x13c)](_0x45c8ae),{'defIds':_0x1f30d4['defIds'],'idSuffix':_0x3ef99b[_0x1f8bd3(0x14e)]},c({'ref':_0x4a4be7,'className':_0x3874b7},_0x1cef6d),_0x59fab3);});function Y(_0x279e73,_0x4e7fbd,_0x17eb75,_0x55bf28,_0x1c6b4e){var _0x12df12=_0x2a4e56;return _0x42e6b9(_0x279e73[_0x12df12(0x136)],c(c({'key':_0x4e7fbd},De(_0x279e73,_0x17eb75,_0x1c6b4e)),_0x55bf28),(xe(_0x279e73,_0x17eb75)[_0x12df12(0x156)]||[])['map'](function(_0x289b07,_0x31d50a){var _0x557952=_0x12df12;return Y(_0x289b07,''['concat'](_0x4e7fbd,'-')[_0x557952(0x13c)](_0x279e73[_0x557952(0x136)],'-')['concat'](_0x31d50a),_0x17eb75,void 0x0,_0x1c6b4e);}));}function De(_0x5520c9,_0x5b31fa,_0x4a9cf8){var _0x11a575=_0x2a4e56,_0x17f396=c({},_0x5520c9[_0x11a575(0x16b)]);_0x4a9cf8!=null&&_0x4a9cf8[_0x11a575(0x115)]&&_0x17f396[_0x11a575(0x158)]==='colorChannel1'&&(_0x17f396[_0x11a575(0x158)]=_0x4a9cf8[_0x11a575(0x115)]),_0x5520c9['tag']===_0x11a575(0xf4)&&_0x17f396['id']&&(_0x17f396['id']=_0x17f396['id']+_0x5b31fa['idSuffix']),Object[_0x11a575(0x174)](_0x17f396)[_0x11a575(0x108)](function(_0x522404){var _0x4947b5=_0x11a575,_0x1e4920=_0x522404[0x0],_0x1f3fff=_0x522404[0x1];_0x1e4920===_0x4947b5(0xf4)&&typeof _0x1f3fff==_0x4947b5(0x17c)&&(_0x17f396[_0x1e4920]=_0x1f3fff['replace'](/url\(#(.*)\)/,_0x4947b5(0x166)[_0x4947b5(0x13c)](_0x5b31fa['idSuffix'],')')));});var _0x4e6c53=_0x5b31fa[_0x11a575(0x103)];return!_0x4e6c53||_0x4e6c53['length']===0x0||(_0x5520c9[_0x11a575(0x136)]===_0x11a575(0x11d)&&_0x17f396['xlink:href']&&(_0x17f396[_0x11a575(0xe5)]=_0x17f396[_0x11a575(0xe5)]+_0x5b31fa[_0x11a575(0x16d)]),Object[_0x11a575(0x174)](_0x17f396)[_0x11a575(0x108)](function(_0x5aa86c){var _0x597951=_0x11a575,_0x5e26a9=_0x5aa86c[0x0],_0x3c767a=_0x5aa86c[0x1];typeof _0x3c767a=='string'&&(_0x17f396[_0x5e26a9]=_0x3c767a[_0x597951(0x129)](/url\(#(.*)\)/,_0x597951(0x166)['concat'](_0x5b31fa[_0x597951(0x16d)],')')));})),_0x17f396;}function xe(_0x4bafe2,_0x32c1ee){var _0x42b46c=_0x2a4e56,_0x558b5e,_0x3cf066=_0x32c1ee[_0x42b46c(0x103)];return!_0x3cf066||_0x3cf066['length']===0x0?_0x4bafe2:_0x4bafe2[_0x42b46c(0x136)]==='defs'&&(!((_0x558b5e=_0x4bafe2[_0x42b46c(0x156)])===null||_0x558b5e===void 0x0)&&_0x558b5e[_0x42b46c(0x139)])?c(c({},_0x4bafe2),{'children':_0x4bafe2[_0x42b46c(0x156)][_0x42b46c(0x159)](function(_0x591cff){var _0x125e78=_0x42b46c;return typeof _0x591cff[_0x125e78(0x16b)]['id']=='string'&&_0x3cf066&&_0x3cf066[_0x125e78(0x171)](_0x591cff[_0x125e78(0x16b)]['id'])?c(c({},_0x591cff),{'attrs':c(c({},_0x591cff[_0x125e78(0x16b)]),{'id':_0x591cff[_0x125e78(0x16b)]['id']+_0x32c1ee[_0x125e78(0x16d)]})}):_0x591cff;})}):_0x4bafe2;}function Le(){var _0x1f36bc=_0x2a4e56;return Math['random']()[_0x1f36bc(0x13b)](0x24)[_0x1f36bc(0x101)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x2a4e56(0x175),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2a4e56(0x12f),'viewBox':_0x2a4e56(0xe7),'width':_0x2a4e56(0x148),'height':'1em'},'children':[{'tag':_0x2a4e56(0xf9),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x2a4e56(0xf9),'attrs':{'fill':'currentColor','d':_0x2a4e56(0xfa),'fillRule':_0x2a4e56(0x123),'clipRule':_0x2a4e56(0x123)}}]},B=_0x268080(function(_0x45bd52,_0x5770ca){var _0x17a664=_0x2a4e56;return _0x42e6b9(W,Object['assign']({},_0x45bd52,{'id':_0x17a664(0x176),'ref':_0x5770ca,'icon':ye}));});B[_0x2a4e56(0x16f)]=_0x2a4e56(0xea);var Re=Object[_0x2a4e56(0xd3)],Z=(_0x20ffbf,_0x58735e,_0x4f8476,_0x1c24c7)=>{var _0x192a98=_0x2a4e56;for(var _0x2951f8=_0x1c24c7>0x1?void 0x0:_0x1c24c7?Re(_0x58735e,_0x4f8476):_0x58735e,_0x58dad2=_0x20ffbf[_0x192a98(0x139)]-0x1,_0x15d1fa;_0x58dad2>=0x0;_0x58dad2--)(_0x15d1fa=_0x20ffbf[_0x58dad2])&&(_0x2951f8=_0x15d1fa(_0x2951f8)||_0x2951f8);return _0x2951f8;},f=(_0x2c4144,_0x5af337)=>(_0x4d4887,_0x597eb2)=>_0x5af337(_0x4d4887,_0x597eb2,_0x2c4144);let I=class extends _0x423752{constructor(_0x21393e,_0x262b77,_0x3d140e){var _0x5b3d5e=_0x2a4e56;super(),d(this,_0x5b3d5e(0x141),new Map()),(this[_0x5b3d5e(0x134)]=_0x21393e,this[_0x5b3d5e(0x105)]=_0x262b77,this[_0x5b3d5e(0xd4)]=_0x3d140e,this[_0x5b3d5e(0x120)]());}async[_0x2a4e56(0x126)](_0x14781b){var _0x5bc03e=_0x2a4e56;return this['_entities']['has'](_0x14781b)||await this[_0x5bc03e(0xd7)](_0x14781b),this[_0x5bc03e(0x141)][_0x5bc03e(0x12b)](_0x14781b);}[_0x2a4e56(0x120)](){var _0x2bee12=_0x2a4e56;this[_0x2bee12(0x134)]['getTypeOfUnitAdded$'](_0x5e9f9d['UNIVER_SHEET'])['pipe'](_0x28922c(this['dispose$']))[_0x2bee12(0x11a)](async _0x392b45=>{var _0x13be77=_0x2bee12;const _0x1f41d3=_0x392b45['getUnitId']();this[_0x13be77(0x141)][_0x13be77(0x119)](_0x1f41d3)||this[_0x13be77(0xd7)](_0x1f41d3);}),this['_univerInstanceService'][_0x2bee12(0x16a)](_0x5e9f9d[_0x2bee12(0x177)])[_0x2bee12(0x12e)](_0x28922c(this[_0x2bee12(0x15f)]))[_0x2bee12(0x11a)](_0x3d1cbc=>{var _0x210427=_0x2bee12;const _0x337367=_0x3d1cbc['getUnitId'](),_0x4089b7=this[_0x210427(0x141)][_0x210427(0x12b)](_0x337367);_0x4089b7==null||_0x4089b7[_0x210427(0xfd)]();});}async[_0x2a4e56(0xd7)](_0x54e31f){var _0x2842ec=_0x2a4e56;const _0x23b165=await this[_0x2842ec(0xd4)][_0x2842ec(0x10d)](_0x54e31f),_0x10a5cc=this[_0x2842ec(0x105)][_0x2842ec(0x135)](C,_0x54e31f,_0x23b165);return _0x10a5cc[_0x2842ec(0x132)](),this['_entities'][_0x2842ec(0x149)](_0x54e31f,_0x10a5cc),_0x10a5cc;}};I=Z([f(0x0,_0x59a521),f(0x1,_0x28e2e2(_0x385dfc)),f(0x2,_0x28e2e2(_0x2605b2))],I);var h=(_0xc6d4c4=>(_0xc6d4c4['OFFLINE']=_0x2a4e56(0x152),_0xc6d4c4['IDLE']=_0x2a4e56(0xd9),_0xc6d4c4[_0x2a4e56(0x10b)]=_0x2a4e56(0x165),_0xc6d4c4[_0x2a4e56(0xe4)]=_0x2a4e56(0x17d),_0xc6d4c4['PRESENTING']='presenting',_0xc6d4c4))(h||{});const Pe=_0x2a4e56(0xec),Ae=0xc8;let C=class extends _0x423752{constructor(_0x445fe4,_0xad2f16,_0x1d12b9,_0x580a65,_0x1f6929){var _0x58b7a3=_0x2a4e56;super(),d(this,_0x58b7a3(0x113),new _0x3110bd(_0x58b7a3(0xd9))),d(this,_0x58b7a3(0x16e),this['_status$'][_0x58b7a3(0xe0)]()),d(this,'_init',!0x1),d(this,_0x58b7a3(0x13d),null),d(this,_0x58b7a3(0x138),null),(this['_unitID']=_0x445fe4,this[_0x58b7a3(0x150)]=_0xad2f16,this[_0x58b7a3(0xf6)]=_0x1d12b9,this[_0x58b7a3(0x142)]=_0x580a65,this[_0x58b7a3(0x111)]=_0x1f6929);}get[_0x2a4e56(0xe3)](){var _0x19346c=_0x2a4e56;return this[_0x19346c(0x113)][_0x19346c(0x106)]();}[_0x2a4e56(0xfd)](){var _0x3d280b=_0x2a4e56,_0x5dd22e;(_0x5dd22e=this[_0x3d280b(0x13d)])==null||_0x5dd22e[_0x3d280b(0xfd)](),this['_status$'][_0x3d280b(0xe8)](_0x3d280b(0xd9)),this[_0x3d280b(0x113)][_0x3d280b(0x12d)]();}['init'](){var _0x4d6155=_0x2a4e56;this['_init']||(this['_init']=!0x0,this[_0x4d6155(0x150)][_0x4d6155(0xd8)]['pipe'](_0x28922c(this[_0x4d6155(0x15f)]))[_0x4d6155(0x11a)](_0x158b86=>{var _0x558c7c=_0x4d6155;switch(_0x158b86){case _0xd91a3e[_0x558c7c(0x157)]:this[_0x558c7c(0x10e)]();break;case _0xd91a3e[_0x558c7c(0x15a)]:this['_handleOnline']();break;}}),this[_0x4d6155(0x150)]['event$']['pipe'](_0x28922c(this[_0x4d6155(0x15f)]))['subscribe'](_0x4c94df=>{var _0x2207ca=_0x4d6155;const {eventID:_0x437163}=_0x4c94df;switch(_0x437163){case _0x444c80[_0x2207ca(0x13f)]:this['_handleNewHost'](_0x4c94df);break;case _0x444c80[_0x2207ca(0x153)]:this[_0x2207ca(0x100)](_0x4c94df);break;case _0x444c80[_0x2207ca(0xfb)]:this['_handleTerminate']();break;case _0x444c80[_0x2207ca(0x167)]:this['_handleNewChangeSets'](_0x4c94df);break;}}));}[_0x2a4e56(0x13e)](){var _0x57c476=_0x2a4e56;this[_0x57c476(0x150)][_0x57c476(0x17b)]({'eventID':_0x444c80[_0x57c476(0x15c)],'data':{'unitID':this[_0x57c476(0x118)],'userID':this[_0x57c476(0x150)][_0x57c476(0x173)]()}},this[_0x57c476(0x118)]);}[_0x2a4e56(0x169)](){var _0x2142d1=_0x2a4e56;this[_0x2142d1(0xe3)]===_0x2142d1(0x154)&&(this[_0x2142d1(0x113)][_0x2142d1(0xe8)]('idle'),this['_collabSession'][_0x2142d1(0x17b)]({'eventID':_0x444c80['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x2142d1(0x118)]));}[_0x2a4e56(0xf1)](){var _0x4d66a9=_0x2a4e56;this[_0x4d66a9(0xe3)]===_0x4d66a9(0x17d)&&(this['_status$']['next']('following'),this['_startFollowing']());}[_0x2a4e56(0x147)](){var _0x10b824=_0x2a4e56;this[_0x10b824(0xe3)]===_0x10b824(0x165)&&this[_0x10b824(0x164)]();}[_0x2a4e56(0xda)](_0x4220a0){var _0x2e7488=_0x2a4e56;const {presenter:_0x5bb022}=_0x4220a0[_0x2e7488(0x131)],_0x8d9a6f=this['_collabSession'][_0x2e7488(0x173)]();this['_presenter']=_0x5bb022,_0x5bb022===_0x8d9a6f?(this[_0x2e7488(0x164)](),this[_0x2e7488(0x11c)]()):this['_status']!==_0x2e7488(0x17d)&&(this[_0x2e7488(0x107)](),this[_0x2e7488(0x137)]());}[_0x2a4e56(0x155)](){var _0x3cdae3=_0x2a4e56;const _0x8e8d8f={'eventID':_0x444c80[_0x3cdae3(0x122)]};this[_0x3cdae3(0x150)][_0x3cdae3(0x17b)](_0x8e8d8f,this[_0x3cdae3(0x118)]);}[_0x2a4e56(0x160)](){var _0x4ee802=_0x2a4e56;this[_0x4ee802(0x138)]=null,this[_0x4ee802(0xe3)]!==_0x4ee802(0x154)&&this[_0x4ee802(0x12c)]();}[_0x2a4e56(0x16c)](_0x3c4122){var _0x41e277=_0x2a4e56;if(this[_0x41e277(0xe3)]===_0x41e277(0x165)&&this['_presenter']===_0x3c4122[_0x41e277(0x131)][_0x41e277(0x109)]){const _0x1d9695=_0x4ddb95(_0x3c4122[_0x41e277(0x131)])['mutations']['reverse']()['find'](_0x57dff4=>_0x57dff4['id']===_0x188508['id']);if(_0x1d9695){const _0x7b937c=_0x1d9695['params'][_0x41e277(0xfe)],_0x1f0210=_0x1d9695['params'][_0x41e277(0xdd)]['id'];setTimeout(()=>{var _0x37374f=_0x41e277;this['_commandService'][_0x37374f(0x10c)](_0x1be10f['id'],{'unitId':_0x7b937c,'subUnitId':_0x1f0210},{'fromCollab':!0x0});});}}}[_0x2a4e56(0x11c)](){var _0xfe89ba=_0x2a4e56;this[_0xfe89ba(0x113)][_0xfe89ba(0xe8)](_0xfe89ba(0x154));const _0x2a0c31=new Map(),_0x2e5993=this[_0xfe89ba(0x13d)]=new _0x5c7f80();_0x2e5993[_0xfe89ba(0x14b)](_0x5bbbe4(()=>{var _0x5de3f6=_0xfe89ba;_0x2a0c31[_0x5de3f6(0x108)](_0x208ab6=>_0x208ab6[_0x5de3f6(0x12d)]()),_0x2a0c31[_0x5de3f6(0x10f)]();})),_0x2e5993['add'](this[_0xfe89ba(0x111)][_0xfe89ba(0xde)](_0xcdca78=>{var _0x2c4f6a=_0xfe89ba,_0x3d3f99;if(_0xcdca78[_0x2c4f6a(0xe1)]!==_0x425b0f[_0x2c4f6a(0xed)]||!this[_0x2c4f6a(0x142)]['shouldShareOperation'](_0xcdca78['id']))return;const {id:_0x387802}=_0xcdca78;let _0x4d9bdc;_0x2a0c31[_0x2c4f6a(0x119)](_0x387802)?_0x4d9bdc=_0x2a0c31[_0x2c4f6a(0x12b)](_0x387802):(_0x4d9bdc=new _0x343b8d(),_0x2a0c31[_0x2c4f6a(0x149)](_0x387802,_0x4d9bdc),_0x4d9bdc[_0x2c4f6a(0x12e)](_0x524525((_0x3d3f99=this[_0x2c4f6a(0xf6)]['getConfig'](Pe))!=null?_0x3d3f99:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c4f6a(0x11a)](_0x227a32=>{var _0x2dd8a2=_0x2c4f6a;this[_0x2dd8a2(0x150)][_0x2dd8a2(0x17b)]({'eventID':_0x444c80[_0x2dd8a2(0x153)],'data':{'unitID':this[_0x2dd8a2(0x118)],'operations':{[_0x227a32['id']]:{'id':_0x227a32['id'],'params':JSON['stringify'](_0x227a32['params'])}}}},this[_0x2dd8a2(0x118)]);})),_0x4d9bdc[_0x2c4f6a(0xe8)](_0xcdca78);})),this[_0xfe89ba(0x142)][_0xfe89ba(0x12a)](this[_0xfe89ba(0x118)])[_0xfe89ba(0x108)](_0x277715=>this[_0xfe89ba(0x150)]['send']({'eventID':_0x444c80['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xfe89ba(0x118)],'operations':{[_0x277715['id']]:{'id':_0x277715['id'],'params':JSON[_0xfe89ba(0x10a)](_0x277715[_0xfe89ba(0xe6)])}}}},this[_0xfe89ba(0x118)]));}[_0x2a4e56(0x107)](){var _0x2aafd0=_0x2a4e56,_0x4c75e8;this[_0x2aafd0(0x113)][_0x2aafd0(0xe8)]('idle'),(_0x4c75e8=this[_0x2aafd0(0x13d)])==null||_0x4c75e8[_0x2aafd0(0xfd)](),this[_0x2aafd0(0x13d)]=null;}['_startFollowing'](){var _0x4e893d=_0x2a4e56,_0x3248d;(_0x3248d=this[_0x4e893d(0x13d)])==null||_0x3248d['dispose'](),this['_status$'][_0x4e893d(0xe8)](_0x4e893d(0x165));}[_0x2a4e56(0x12c)](){var _0x2b3966=_0x2a4e56,_0x2daf25;this[_0x2b3966(0x113)]['next'](_0x2b3966(0xd9)),(_0x2daf25=this[_0x2b3966(0x13d)])==null||_0x2daf25[_0x2b3966(0xfd)](),this[_0x2b3966(0x13d)]=null;}[_0x2a4e56(0x164)](){var _0x350945=_0x2a4e56,_0x1307d4;this['_status$']['next']('not-following'),(_0x1307d4=this[_0x350945(0x13d)])==null||_0x1307d4[_0x350945(0xfd)]();}['_handleOperation'](_0x46a572){var _0x13903d=_0x2a4e56;if([_0x13903d(0x154),_0x13903d(0x17d),_0x13903d(0x152)][_0x13903d(0x171)](this[_0x13903d(0xe3)])||!_0x46a572['data'][_0x13903d(0x116)]||_0x46a572[_0x13903d(0x131)]['presenter']===this[_0x13903d(0x150)]['getMemberID']())return;this[_0x13903d(0xe3)]===_0x13903d(0xd9)&&this[_0x13903d(0x137)]();const _0x4fb669=_0x46a572['data'][_0x13903d(0x140)];Object[_0x13903d(0x104)](_0x4fb669)[_0x13903d(0x108)](_0x426a9e=>{var _0x234fa2=_0x13903d;this[_0x234fa2(0x111)]['executeCommand'](_0x426a9e['id'],_0x426a9e['params']?JSON['parse'](_0x426a9e[_0x234fa2(0xe6)]):null,{'fromCollab':!0x0});});}[_0x2a4e56(0x10e)](){var _0x8fdcde=_0x2a4e56,_0x400b94;this[_0x8fdcde(0x113)][_0x8fdcde(0xe8)]('offline'),(_0x400b94=this[_0x8fdcde(0x13d)])==null||_0x400b94['dispose']();}[_0x2a4e56(0x14c)](){var _0x2ee1ab=_0x2a4e56;this['_status$'][_0x2ee1ab(0xe8)](_0x2ee1ab(0xd9)),this['_fetchOperations']();}};C=Z([f(0x2,_0x5e7f31),f(0x3,_0x28e2e2(L)),f(0x4,_0xbe7d76)],C);function Te(){var _0xdfd721=_0x2a4e56;const _0x45b0fa=_0x194831(I),_0x329ba4=_0x194831(_0x59a521),_0x8c6080=_0xc66ce5(()=>_0x329ba4['getCurrentTypeOfUnit$'](_0x5e9f9d['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4bbf1e,_0x55ebf5]=_0x1e1f64(null),[_0x4879d5,_0x3910c4]=_0x1e1f64(h[_0xdfd721(0x112)]),_0x4b8108=_0x5e1776(null);return _0x47d093(()=>(_0x8c6080&&_0x45b0fa['getLiveShareCoordinator'](_0x8c6080[_0xdfd721(0x17a)]())[_0xdfd721(0x161)](_0x36e997=>{var _0x4dd4da=_0xdfd721;_0x55ebf5(_0x36e997),_0x4b8108[_0x4dd4da(0x14e)]=_0x36e997[_0x4dd4da(0x16e)][_0x4dd4da(0x11a)](_0xaf257=>{_0x3910c4(_0xaf257);});}),()=>{var _0x5d5de1=_0xdfd721,_0x43949d;(_0x43949d=_0x4b8108[_0x5d5de1(0x14e)])==null||_0x43949d[_0x5d5de1(0x117)](),_0x4b8108['current']=null;}),[_0x8c6080,_0x45b0fa]),_0x4bbf1e?_0x56ff07(_0x34954a,{'align':_0xdfd721(0x179),'disabled':_0x4879d5===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':_0x56ff07($e,{'status':_0x4879d5,'coordinator':_0x4bbf1e}),'children':_0x56ff07(_0xdfd721(0x15d),{'className':_0x3a36ee(_0xdfd721(0x127),{'univer-cursor-not-allowed':_0x4879d5===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4879d5!==h[_0xdfd721(0x157)]}),'type':_0xdfd721(0x15d),'children':_0x56ff07(B,{'className':_0xdfd721(0x172)})})}):null;}function $e(_0x5b41d9){var _0x32a1b5=_0x2a4e56;const {status:_0x211b5f,coordinator:_0x2de400}=_0x5b41d9;switch(_0x211b5f){case h['IDLE']:return _0x56ff07(Fe,{'coordinator':_0x2de400});case h[_0x32a1b5(0x10b)]:return _0x56ff07(He,{'coordinator':_0x2de400});case h['NOT_FOLLOWING']:return _0x56ff07(je,{'coordinator':_0x2de400});case h[_0x32a1b5(0x157)]:return _0x56ff07(Ve,{});case h['PRESENTING']:return _0x56ff07(Ue,{'coordinator':_0x2de400});default:return null;}}function Fe(_0x37ef69){var _0x2aff0f=_0x2a4e56;const {coordinator:_0x3c8093}=_0x37ef69;return _0x50cef9(_0x280ba5,{'children':[_0x56ff07(_0x2aff0f(0x146),{'className':_0x2aff0f(0x170),'children':'Present\x20this\x20document'}),_0x56ff07(_0x3a33fb,{'onClick':()=>_0x3c8093[_0x2aff0f(0x13e)](),'children':'Start'})]});}function He(_0x3fa2a4){var _0x39b58d=_0x2a4e56;const {coordinator:_0x143efe}=_0x3fa2a4;return _0x50cef9(_0x280ba5,{'children':[_0x56ff07(_0x39b58d(0x146),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x56ff07(_0x3a33fb,{'onClick':()=>_0x143efe[_0x39b58d(0x147)](),'children':_0x39b58d(0x13a)})]});}function je(_0x5937ef){var _0x5e2c2c=_0x2a4e56;const {coordinator:_0x3e5303}=_0x5937ef;return _0x50cef9(_0x280ba5,{'children':[_0x56ff07(_0x5e2c2c(0x146),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x56ff07(_0x3a33fb,{'variant':_0x5e2c2c(0x143),'onClick':()=>_0x3e5303[_0x5e2c2c(0xf1)](),'children':_0x5e2c2c(0xf5)})]});}function Ue(_0x528a58){var _0x1b7545=_0x2a4e56;const {coordinator:_0x26bec9}=_0x528a58;return _0x50cef9(_0x280ba5,{'children':[_0x56ff07(_0x1b7545(0x146),{'className':_0x1b7545(0x170),'children':_0x1b7545(0xf2)}),_0x56ff07(_0x3a33fb,{'variant':_0x1b7545(0x163),'onClick':()=>_0x26bec9[_0x1b7545(0x169)](),'children':_0x1b7545(0x151)})]});}function Ve(){var _0x56fb5c=_0x2a4e56;return _0x56ff07(_0x280ba5,{'children':_0x56fb5c(0x14d)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x263b00,_0x145b65,_0x2127a4,_0x53e2ef)=>{var _0xa8224d=_0x2a4e56;for(var _0x13d979=_0x53e2ef>0x1?void 0x0:_0x53e2ef?Me(_0x145b65,_0x2127a4):_0x145b65,_0x12f9aa=_0x263b00[_0xa8224d(0x139)]-0x1,_0x31ca52;_0x12f9aa>=0x0;_0x12f9aa--)(_0x31ca52=_0x263b00[_0x12f9aa])&&(_0x13d979=_0x31ca52(_0x13d979)||_0x13d979);return _0x13d979;},$=(_0x45e48f,_0x5934af)=>(_0x157fc6,_0x44120b)=>_0x5934af(_0x157fc6,_0x44120b,_0x45e48f);let b=class extends _0x55e70d{constructor(_0x52c648,_0x501b1a){var _0x252eb9=_0x2a4e56;super(),this[_0x252eb9(0x105)]=_0x52c648,this['_uiPartsService']=_0x501b1a,this[_0x252eb9(0xef)]();}[_0x2a4e56(0xef)](){var _0x551f3a=_0x2a4e56;this[_0x551f3a(0x114)](this[_0x551f3a(0xff)][_0x551f3a(0x168)](_0x4f3fcc['HEADER_MENU'],()=>_0x408093(Te,this[_0x551f3a(0x105)])));}};b=ke([$(0x0,_0x28e2e2(_0x385dfc)),$(0x1,_0x549bf8)],b);function _0x1f6a(){var _0x5cebd2=['live-share-icon','UNIVER_SHEET','symbol','end','getUnitId','send','string','not-following','propertyIsEnumerable','getOwnPropertyDescriptor','_collabSessionService','function','indexOf','_startLiveShareCoordinator','sessionStatus$','idle','_handleNewHost','registerInitialStateReporter','36yAmXyE','sheet','onCommandExecuted','_sharedOperations','asObservable','type','trim','_status','NOT_FOLLOWING','xlink:href','params','0\x200\x2017\x2017','next','call','LiveShareIcon','setConfig','SAME_OPERATION_SHARE_INTERVAL','OPERATION','12PceNBB','_mountLiveShare','1243848bzDtkC','startFollowing','You\x27re\x20presenting\x20the\x20document','className','mask','Start\x20following','_configService','6863800OkTTZo','hasOwnProperty','path','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','LIVESHARE_TERMINATE','univerjs-icon\x20univerjs-icon-','dispose','unitId','_uiPartsService','_handleOperation','substring','1255953zytBqI','defIds','values','_injector','getValue','_stopPresenting','forEach','memberID','stringify','FOLLOWING','executeCommand','requireSession','_handleOffline','clear','extend','_commandService','IDLE','_status$','disposeWithMe','colorChannel1','presenter','unsubscribe','_unitID','has','subscribe','9wWqWnX','_startPresenting','use','onStarting','UNIVER_UNKNOWN','_init','395562VmMIQX','LIVESHARE_FETCH_OPERATIONS','evenodd','live-share.config','1687490aoIXQm','getLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','defineProperty','replace','getInitialStates','get','_beIdle','complete','pipe','none','registerSharedOperation','data','init','_config','_univerInstanceService','createInstance','tag','_startFollowing','_presenter','length','Stop\x20following','toString','concat','_commandDisposable','tryStartPresenting','LIVESHARE_NEW_HOST','operations','_entities','_liveShareService','text','delete','pluginName','div','stopFollowing','1em','set','23003650hMWNpT','add','_handleOnline','You\x27are\x20offline.','current','_reporters','_collabSession','Stop\x20presenting','offline','LIVESHARE_OPERATION','presenting','_fetchOperations','children','OFFLINE','fill','map','ONLINE','getOwnPropertySymbols','LIVESHARE_REQUEST_HOST','button','icon','dispose$','_handleTerminate','then','2603832zUclPt','default','_stopFollowing','following','url(#$1','NEW_CHANGESETS','registerComponent','stopPresenting','getTypeOfUnitDisposed$','attrs','_handleNewChangeSets','idSuffix','status$','displayName','univer-mb-3\x20univer-w-full\x20univer-text-sm','includes','univer-size-4','getMemberID','entries','svg'];_0x1f6a=function(){return _0x5cebd2;};return _0x1f6a();}var Ge=Object[_0x2a4e56(0x128)],We=Object[_0x2a4e56(0xd3)],Ye=(_0x36efbf,_0x146257,_0x174023)=>_0x146257 in _0x36efbf?Ge(_0x36efbf,_0x146257,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x174023}):_0x36efbf[_0x146257]=_0x174023,Be=(_0x39a1bc,_0x11a6d8,_0x3beb73,_0x4e6378)=>{for(var _0x20ee67=_0x4e6378>0x1?void 0x0:_0x4e6378?We(_0x11a6d8,_0x3beb73):_0x11a6d8,_0x1405b9=_0x39a1bc['length']-0x1,_0xbf955a;_0x1405b9>=0x0;_0x1405b9--)(_0xbf955a=_0x39a1bc[_0x1405b9])&&(_0x20ee67=_0xbf955a(_0x20ee67)||_0x20ee67);return _0x20ee67;},F=(_0x382874,_0x2f3c6b)=>(_0x363eb9,_0x15b89f)=>_0x2f3c6b(_0x363eb9,_0x15b89f,_0x382874),J=(_0xb70c86,_0x2c9c7c,_0x2f7c3f)=>Ye(_0xb70c86,typeof _0x2c9c7c!=_0x2a4e56(0x178)?_0x2c9c7c+'':_0x2c9c7c,_0x2f7c3f);const Ze='UNIVER_LIVE_SHARE_PLUGIN';function _0x211d(_0xadec2a,_0x440940){var _0x1f6a3e=_0x1f6a();return _0x211d=function(_0x211da1,_0x4e81a0){_0x211da1=_0x211da1-0xd2;var _0x40559c=_0x1f6a3e[_0x211da1];return _0x40559c;},_0x211d(_0xadec2a,_0x440940);}let O=class extends _0x161583{constructor(_0x45c95a=T,_0x53a1ab,_0x478b64){var _0x9addb=_0x2a4e56;super(),this[_0x9addb(0x133)]=_0x45c95a,this[_0x9addb(0x105)]=_0x53a1ab,this[_0x9addb(0xf6)]=_0x478b64;const {..._0x3da5b0}=_0x40e342({},T,this[_0x9addb(0x133)]);this[_0x9addb(0xf6)][_0x9addb(0xeb)](Oe,_0x3da5b0);}[_0x2a4e56(0x11e)](){var _0x44a3b5=_0x2a4e56;_0x5d616d(this[_0x44a3b5(0x105)],_0x22fea7([[L],[I],[m],[b]],this['_config']['override'])),_0x973282(this[_0x44a3b5(0x105)],[[m]]);}['onRendered'](){_0x973282(this['_injector'],[[b]]);}};J(O,'type',_0x5e9f9d[_0x2a4e56(0x11f)]),J(O,_0x2a4e56(0x145),Ze),O=Be([_0x302346(_0x54e8f2),F(0x1,_0x28e2e2(_0x385dfc)),F(0x2,_0x5e7f31)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x1cfdb8=_0x38aa;(function(_0x2254fe,_0x547e30){var _0x622d75=_0x38aa,_0x5ed9d9=_0x2254fe();while(!![]){try{var _0x4ed5ea=-parseInt(_0x622d75(0x1b8))/0x1+-parseInt(_0x622d75(0x1cb))/0x2*(parseInt(_0x622d75(0x188))/0x3)+parseInt(_0x622d75(0x1eb))/0x4*(parseInt(_0x622d75(0x18b))/0x5)+-parseInt(_0x622d75(0x1d6))/0x6*(-parseInt(_0x622d75(0x211))/0x7)+-parseInt(_0x622d75(0x1ad))/0x8+parseInt(_0x622d75(0x23a))/0x9*(-parseInt(_0x622d75(0x213))/0xa)+parseInt(_0x622d75(0x1ab))/0xb;if(_0x4ed5ea===_0x547e30)break;else _0x5ed9d9['push'](_0x5ed9d9['shift']());}catch(_0x5d0107){_0x5ed9d9['push'](_0x5ed9d9['shift']());}}}(_0x212b,0xd4481));var q=Object[_0x1cfdb8(0x23f)],z=(_0xd16ef2,_0xac2f13,_0x35282d)=>_0xac2f13 in _0xd16ef2?q(_0xd16ef2,_0xac2f13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35282d}):_0xd16ef2[_0xac2f13]=_0x35282d,d=(_0x2c04bb,_0x395c32,_0x10d572)=>z(_0x2c04bb,typeof _0x395c32!='symbol'?_0x395c32+'':_0x395c32,_0x10d572);import{CollaborationSessionService as _0x1aeeb2,SessionStatus as _0x4c2fe1,UniverCollaborationClientPlugin as _0x5df2c9}from'@univerjs-pro/collaboration-client';function _0x38aa(_0x4e70b4,_0x13c80e){var _0x212b62=_0x212b();return _0x38aa=function(_0x38aaca,_0x5d5abe){_0x38aaca=_0x38aaca-0x188;var _0x540e9f=_0x212b62[_0x38aaca];return _0x540e9f;},_0x38aa(_0x4e70b4,_0x13c80e);}import{Disposable as _0x978db0,toDisposable as _0x4a5a19,Inject as _0x47e04a,IUniverInstanceService as _0x5e8fc8,Injector as _0x12d76d,IConfigService as _0x4ab276,ICommandService as _0x1b92ec,RxDisposable as _0x34f499,UniverInstanceType as _0x44e9a0,DisposableCollection as _0x4bfb4d,CommandType as _0x1a8ce3,DependentOn as _0x20f516,Plugin as _0x2d95be,merge as _0x4d7b5c,registerDependencies as _0x3c4690,mergeOverrideWithDependencies as _0x5c9bf8,touchDependencies as _0x223193}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x24d323,InsertSheetMutation as _0x10e7cd}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x20f706,SetScrollOperation as _0xf4f43e}from'@univerjs/sheets-ui';import{useDependency as _0x5ac572,useObservable as _0xb18adb,IUIPartsService as _0x53c21b,BuiltInUIPart as _0x2b5b91,connectInjector as _0xecd535}from'@univerjs/ui';import{jsx as _0x2585db,jsxs as _0x3c8f57,Fragment as _0x589951}from'react/jsx-runtime';import{Dropdown as _0x2c46c3,clsx as _0x4d9db3,Button as _0xcd60f4}from'@univerjs/design';import{forwardRef as _0x59bfc9,useRef as _0x25d6c4,createElement as _0x45c30f,useState as _0x21145a,useEffect as _0x396e80}from'react';function _0x212b(){var _0x4f0b63=['pluginName','button','symbol','prototype','hasOwnProperty','_collabSession','getUnitId','path','replace','xlink:href','following','_collabSessionService','_commandDisposable','createInstance','none','4tLABLK','FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','IDLE','OPERATION','_liveShareService','PRESENTING','defIds','add','children','presenting','memberID','idle','idSuffix','clear','random','_handleOnline','sessionStatus$','data','OFFLINE','dispose$','subscribe','assign','_unitID','_entities','LIVESHARE_OPERATION','dispose','url(#$1','not-following','tag','colorChannel1','stopFollowing','_handleNewHost','_startPresenting','from','map','_reporters','send','7nckDEy','fill','1589860DNLwNd','_commandService','then','get','getTypeOfUnitAdded$','_handleTerminate','complete','parse','registerComponent','You\x27re\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','_presenter','length','startFollowing','_fetchOperations','svg','http://www.w3.org/2000/svg','LiveShareIcon','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Stop\x20presenting','string','end','set','tryStartPresenting','_startFollowing','getOwnPropertyDescriptor','setConfig','requireSession','_status','params','presenter','attrs','event$','univer-mb-3\x20univer-w-full\x20univer-text-sm','indexOf','getTypeOfUnitDisposed$','values','onStarting','36AbGmYL','0\x200\x2017\x2017','_stopFollowing','getLiveShareCoordinator','extend','defineProperty','1em','2922879GxkwKF','_status$','call','1491340FuOpUJ','current','univer-size-4','UniverIcon','apply','forEach','displayName','includes','Start\x20following','stopPresenting','_uiPartsService','NOT_FOLLOWING','unitId','_injector','getValue','currentColor','getInitialStates','UNIVER_SHEET','ONLINE','operations','init','live-share-icon','registerInitialStateReporter','icon','_sharedOperations','UNIVER_UNKNOWN','_init','onRendered','entries','Stop\x20following','LIVESHARE_TERMINATE','next','43451034ZEDDhj','evenodd','4180944SQwlZt','Present\x20this\x20document','You\x27re\x20presenting\x20the\x20document','pipe','mask','offline','propertyIsEnumerable','getOwnPropertySymbols','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','getMemberID','_beIdle','1490030ftfqNq','div','text','reverse','find','live-share.config','HEADER_MENU','_configService','status$','mutations','defs','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','_mountLiveShare','onCommandExecuted','_univerInstanceService','asObservable','getConfig','_handleNewChangeSets','unsubscribe','2NSYMkD','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','executeCommand','sheet','type','delete','className','override','univerjs-icon\x20univerjs-icon-','registerSharedOperation','1464168OYzTwh','_config','concat','has','You\x27are\x20offline.','substring'];_0x212b=function(){return _0x4f0b63;};return _0x212b();}import{CollaborationEvent as _0x20f152,parseProtocolChangeset as _0x5d01dc}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x232912,Subject as _0x396672}from'rxjs';import{takeUntil as _0x53db6a,throttleTime as _0x4fcd45}from'rxjs/operators';const Oe=_0x1cfdb8(0x1bd),T={};class L extends _0x978db0{constructor(){var _0x263b05=_0x1cfdb8;super(...arguments),d(this,_0x263b05(0x1a3),new Set()),d(this,'_reporters',new Set());}[_0x1cfdb8(0x1d5)](_0x1a5673){var _0x26d507=_0x1cfdb8;return this[_0x26d507(0x1a3)][_0x26d507(0x1f3)](_0x1a5673),_0x4a5a19(()=>this['_sharedOperations'][_0x26d507(0x1d1)](_0x1a5673));}[_0x1cfdb8(0x1a1)](_0x222b63){var _0x272a54=_0x1cfdb8;return this[_0x272a54(0x20f)][_0x272a54(0x1f3)](_0x222b63),_0x4a5a19(()=>this[_0x272a54(0x20f)]['delete'](_0x222b63));}['shouldShareOperation'](_0x3dae90){var _0x1b2f10=_0x1cfdb8;return this[_0x1b2f10(0x1a3)][_0x1b2f10(0x1d9)](_0x3dae90);}['getInitialStates'](_0x9af903){var _0x3af8af=_0x1cfdb8;return Array[_0x3af8af(0x20d)](this[_0x3af8af(0x20f)])[_0x3af8af(0x20e)](_0xe0eae5=>_0xe0eae5(_0x9af903));}}var Ee=Object[_0x1cfdb8(0x22d)],we=(_0x4e4613,_0x447ae7,_0x385b4f,_0x413bfa)=>{var _0x438e2f=_0x1cfdb8;for(var _0x19eb74=_0x413bfa>0x1?void 0x0:_0x413bfa?Ee(_0x447ae7,_0x385b4f):_0x447ae7,_0x2ca1d4=_0x4e4613[_0x438e2f(0x21f)]-0x1,_0x33589d;_0x2ca1d4>=0x0;_0x2ca1d4--)(_0x33589d=_0x4e4613[_0x2ca1d4])&&(_0x19eb74=_0x33589d(_0x19eb74)||_0x19eb74);return _0x19eb74;},Ne=(_0x5300ab,_0x364dc7)=>(_0x195b5e,_0x1987f9)=>_0x364dc7(_0x195b5e,_0x1987f9,_0x5300ab);let m=class extends _0x978db0{constructor(_0x2f763e){var _0x5c2773=_0x1cfdb8;super(),this[_0x5c2773(0x1f0)]=_0x2f763e,this[_0x5c2773(0x1a5)]();}[_0x1cfdb8(0x1a5)](){var _0x565342=_0x1cfdb8;[_0x20f706['id'],_0xf4f43e['id'],_0x24d323['id']][_0x565342(0x190)](_0x5b7203=>{var _0x4fc2ac=_0x565342;this['disposeWithMe'](this['_liveShareService'][_0x4fc2ac(0x1d5)](_0x5b7203));});}};m=we([Ne(0x0,_0x47e04a(L))],m);var c=function(){var _0x10ec6a=_0x1cfdb8;return c=Object[_0x10ec6a(0x201)]||function(_0x39cc35){var _0x3edc73=_0x10ec6a;for(var _0x4d6feb,_0x4ccd36=0x1,_0x59fa55=arguments[_0x3edc73(0x21f)];_0x4ccd36<_0x59fa55;_0x4ccd36++){_0x4d6feb=arguments[_0x4ccd36];for(var _0x137211 in _0x4d6feb)Object['prototype'][_0x3edc73(0x1e0)]['call'](_0x4d6feb,_0x137211)&&(_0x39cc35[_0x137211]=_0x4d6feb[_0x137211]);}return _0x39cc35;},c[_0x10ec6a(0x18f)](this,arguments);},Ce=function(_0xb5c193,_0x5a3b62){var _0x4a0668=_0x1cfdb8,_0xec7201={};for(var _0x4a5760 in _0xb5c193)Object[_0x4a0668(0x1df)][_0x4a0668(0x1e0)]['call'](_0xb5c193,_0x4a5760)&&_0x5a3b62[_0x4a0668(0x236)](_0x4a5760)<0x0&&(_0xec7201[_0x4a5760]=_0xb5c193[_0x4a5760]);if(_0xb5c193!=null&&typeof Object[_0x4a0668(0x1b4)]=='function'){for(var _0x33c41e=0x0,_0x4a5760=Object[_0x4a0668(0x1b4)](_0xb5c193);_0x33c41e<_0x4a5760[_0x4a0668(0x21f)];_0x33c41e++)_0x5a3b62[_0x4a0668(0x236)](_0x4a5760[_0x33c41e])<0x0&&Object[_0x4a0668(0x1df)][_0x4a0668(0x1b3)][_0x4a0668(0x18a)](_0xb5c193,_0x4a5760[_0x33c41e])&&(_0xec7201[_0x4a5760[_0x33c41e]]=_0xb5c193[_0x4a5760[_0x33c41e]]);}return _0xec7201;},W=_0x59bfc9(function(_0x4efc7e,_0xb0d19f){var _0x4baa06=_0x1cfdb8,_0x55f209=_0x4efc7e['icon'],_0xe569d2=_0x4efc7e['id'],_0x1c58fb=_0x4efc7e[_0x4baa06(0x1d2)],_0x3b30b2=_0x4efc7e[_0x4baa06(0x23e)],_0x143fc8=Ce(_0x4efc7e,[_0x4baa06(0x1a2),'id',_0x4baa06(0x1d2),_0x4baa06(0x23e)]),_0x1b8bcd=_0x4baa06(0x1d4)['concat'](_0xe569d2,'\x20')[_0x4baa06(0x1d8)](_0x1c58fb||'')[_0x4baa06(0x225)](),_0x4d6fc4=_0x25d6c4('_'[_0x4baa06(0x1d8)](Le()));return Y(_0x55f209,''[_0x4baa06(0x1d8)](_0xe569d2),{'defIds':_0x55f209[_0x4baa06(0x1f2)],'idSuffix':_0x4d6fc4[_0x4baa06(0x18c)]},c({'ref':_0xb0d19f,'className':_0x1b8bcd},_0x143fc8),_0x3b30b2);});function Y(_0x43f131,_0x1b90f7,_0x27d717,_0x21d043,_0x48f311){var _0x68908d=_0x1cfdb8;return _0x45c30f(_0x43f131[_0x68908d(0x208)],c(c({'key':_0x1b90f7},De(_0x43f131,_0x27d717,_0x48f311)),_0x21d043),(xe(_0x43f131,_0x27d717)[_0x68908d(0x1f4)]||[])[_0x68908d(0x20e)](function(_0x406890,_0x2dd08d){var _0x564cd0=_0x68908d;return Y(_0x406890,''['concat'](_0x1b90f7,'-')[_0x564cd0(0x1d8)](_0x43f131[_0x564cd0(0x208)],'-')[_0x564cd0(0x1d8)](_0x2dd08d),_0x27d717,void 0x0,_0x48f311);}));}function De(_0x82f61f,_0x2aed74,_0x1c1e9e){var _0x16ade7=_0x1cfdb8,_0x4ad31f=c({},_0x82f61f['attrs']);_0x1c1e9e!=null&&_0x1c1e9e[_0x16ade7(0x209)]&&_0x4ad31f['fill']==='colorChannel1'&&(_0x4ad31f[_0x16ade7(0x212)]=_0x1c1e9e[_0x16ade7(0x209)]),_0x82f61f['tag']==='mask'&&_0x4ad31f['id']&&(_0x4ad31f['id']=_0x4ad31f['id']+_0x2aed74[_0x16ade7(0x1f8)]),Object[_0x16ade7(0x1a7)](_0x4ad31f)[_0x16ade7(0x190)](function(_0x2395ae){var _0x116c4e=_0x16ade7,_0x2fd12d=_0x2395ae[0x0],_0x1e4eb7=_0x2395ae[0x1];_0x2fd12d===_0x116c4e(0x1b1)&&typeof _0x1e4eb7==_0x116c4e(0x228)&&(_0x4ad31f[_0x2fd12d]=_0x1e4eb7[_0x116c4e(0x1e4)](/url\(#(.*)\)/,_0x116c4e(0x206)[_0x116c4e(0x1d8)](_0x2aed74[_0x116c4e(0x1f8)],')')));});var _0x47b494=_0x2aed74[_0x16ade7(0x1f2)];return!_0x47b494||_0x47b494['length']===0x0||(_0x82f61f[_0x16ade7(0x208)]==='use'&&_0x4ad31f['xlink:href']&&(_0x4ad31f[_0x16ade7(0x1e5)]=_0x4ad31f[_0x16ade7(0x1e5)]+_0x2aed74['idSuffix']),Object[_0x16ade7(0x1a7)](_0x4ad31f)[_0x16ade7(0x190)](function(_0x3e714d){var _0x5e6db8=_0x16ade7,_0x2da8cd=_0x3e714d[0x0],_0x189137=_0x3e714d[0x1];typeof _0x189137==_0x5e6db8(0x228)&&(_0x4ad31f[_0x2da8cd]=_0x189137[_0x5e6db8(0x1e4)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2aed74[_0x5e6db8(0x1f8)],')')));})),_0x4ad31f;}function xe(_0x5dae6e,_0x410d83){var _0x13f102=_0x1cfdb8,_0x2f5174,_0x1313df=_0x410d83[_0x13f102(0x1f2)];return!_0x1313df||_0x1313df[_0x13f102(0x21f)]===0x0?_0x5dae6e:_0x5dae6e[_0x13f102(0x208)]===_0x13f102(0x1c2)&&(!((_0x2f5174=_0x5dae6e[_0x13f102(0x1f4)])===null||_0x2f5174===void 0x0)&&_0x2f5174[_0x13f102(0x21f)])?c(c({},_0x5dae6e),{'children':_0x5dae6e[_0x13f102(0x1f4)][_0x13f102(0x20e)](function(_0x1d6f5e){var _0x187fc2=_0x13f102;return typeof _0x1d6f5e[_0x187fc2(0x233)]['id']==_0x187fc2(0x228)&&_0x1313df&&_0x1313df[_0x187fc2(0x192)](_0x1d6f5e['attrs']['id'])?c(c({},_0x1d6f5e),{'attrs':c(c({},_0x1d6f5e['attrs']),{'id':_0x1d6f5e[_0x187fc2(0x233)]['id']+_0x410d83['idSuffix']})}):_0x1d6f5e;})}):_0x5dae6e;}function Le(){var _0x28a028=_0x1cfdb8;return Math[_0x28a028(0x1fa)]()['toString'](0x24)[_0x28a028(0x1db)](0x2,0x8);}W[_0x1cfdb8(0x191)]=_0x1cfdb8(0x18e);var ye={'tag':_0x1cfdb8(0x222),'attrs':{'xmlns':_0x1cfdb8(0x223),'fill':_0x1cfdb8(0x1ea),'viewBox':_0x1cfdb8(0x23b),'width':_0x1cfdb8(0x240),'height':_0x1cfdb8(0x240)},'children':[{'tag':_0x1cfdb8(0x1e3),'attrs':{'fill':'currentColor','d':_0x1cfdb8(0x1c3)}},{'tag':_0x1cfdb8(0x1e3),'attrs':{'fill':_0x1cfdb8(0x19a),'d':_0x1cfdb8(0x1b5),'fillRule':_0x1cfdb8(0x1ac),'clipRule':_0x1cfdb8(0x1ac)}}]},B=_0x59bfc9(function(_0x43d921,_0x42532d){var _0x4476b5=_0x1cfdb8;return _0x45c30f(W,Object[_0x4476b5(0x201)]({},_0x43d921,{'id':_0x4476b5(0x1a0),'ref':_0x42532d,'icon':ye}));});B[_0x1cfdb8(0x191)]=_0x1cfdb8(0x224);var Re=Object[_0x1cfdb8(0x22d)],Z=(_0x4e9e22,_0x8190cc,_0x5ba304,_0x2c4611)=>{var _0x2d8fb1=_0x1cfdb8;for(var _0x98efbb=_0x2c4611>0x1?void 0x0:_0x2c4611?Re(_0x8190cc,_0x5ba304):_0x8190cc,_0x4c592=_0x4e9e22[_0x2d8fb1(0x21f)]-0x1,_0x221019;_0x4c592>=0x0;_0x4c592--)(_0x221019=_0x4e9e22[_0x4c592])&&(_0x98efbb=_0x221019(_0x98efbb)||_0x98efbb);return _0x98efbb;},f=(_0x27cafd,_0x2ed14a)=>(_0x9920ce,_0x342b25)=>_0x2ed14a(_0x9920ce,_0x342b25,_0x27cafd);let I=class extends _0x34f499{constructor(_0x585cc7,_0x286658,_0x438dd1){var _0xea64f7=_0x1cfdb8;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x585cc7,this[_0xea64f7(0x198)]=_0x286658,this[_0xea64f7(0x1e7)]=_0x438dd1,this['_init']());}async[_0x1cfdb8(0x23d)](_0x3275a4){var _0x12c256=_0x1cfdb8;return this[_0x12c256(0x203)][_0x12c256(0x1d9)](_0x3275a4)||await this[_0x12c256(0x1cd)](_0x3275a4),this[_0x12c256(0x203)][_0x12c256(0x216)](_0x3275a4);}['_init'](){var _0x2739e5=_0x1cfdb8;this[_0x2739e5(0x1c6)][_0x2739e5(0x217)](_0x44e9a0[_0x2739e5(0x19c)])[_0x2739e5(0x1b0)](_0x53db6a(this[_0x2739e5(0x1ff)]))[_0x2739e5(0x200)](async _0xb14a38=>{var _0x5e159f=_0x2739e5;const _0x34c79=_0xb14a38[_0x5e159f(0x1e2)]();this[_0x5e159f(0x203)]['has'](_0x34c79)||this['_startLiveShareCoordinator'](_0x34c79);}),this[_0x2739e5(0x1c6)][_0x2739e5(0x237)](_0x44e9a0[_0x2739e5(0x19c)])[_0x2739e5(0x1b0)](_0x53db6a(this[_0x2739e5(0x1ff)]))['subscribe'](_0x453124=>{var _0x22a0ae=_0x2739e5;const _0x1f9d48=_0x453124['getUnitId'](),_0x26fd07=this[_0x22a0ae(0x203)][_0x22a0ae(0x216)](_0x1f9d48);_0x26fd07==null||_0x26fd07[_0x22a0ae(0x205)]();});}async[_0x1cfdb8(0x1cd)](_0x9169fa){var _0x3d461a=_0x1cfdb8;const _0x59e13c=await this['_collabSessionService'][_0x3d461a(0x22f)](_0x9169fa),_0x59207e=this[_0x3d461a(0x198)][_0x3d461a(0x1e9)](C,_0x9169fa,_0x59e13c);return _0x59207e[_0x3d461a(0x19f)](),this['_entities'][_0x3d461a(0x22a)](_0x9169fa,_0x59207e),_0x59207e;}};I=Z([f(0x0,_0x5e8fc8),f(0x1,_0x47e04a(_0x12d76d)),f(0x2,_0x47e04a(_0x1aeeb2))],I);var h=(_0x1d348c=>(_0x1d348c[_0x1cfdb8(0x1fe)]=_0x1cfdb8(0x1b2),_0x1d348c[_0x1cfdb8(0x1ee)]=_0x1cfdb8(0x1f7),_0x1d348c[_0x1cfdb8(0x1ec)]=_0x1cfdb8(0x1e6),_0x1d348c[_0x1cfdb8(0x196)]='not-following',_0x1d348c[_0x1cfdb8(0x1f1)]='presenting',_0x1d348c))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x34f499{constructor(_0x986b6,_0x19809d,_0x1e70f5,_0xcb00ee,_0x193bc4){var _0x3b438f=_0x1cfdb8;super(),d(this,_0x3b438f(0x189),new _0x232912('idle')),d(this,_0x3b438f(0x1c0),this[_0x3b438f(0x189)][_0x3b438f(0x1c7)]()),d(this,'_init',!0x1),d(this,_0x3b438f(0x1e8),null),d(this,'_presenter',null),(this['_unitID']=_0x986b6,this[_0x3b438f(0x1e1)]=_0x19809d,this[_0x3b438f(0x1bf)]=_0x1e70f5,this[_0x3b438f(0x1f0)]=_0xcb00ee,this['_commandService']=_0x193bc4);}get['_status'](){var _0x3cf0ff=_0x1cfdb8;return this[_0x3cf0ff(0x189)][_0x3cf0ff(0x199)]();}[_0x1cfdb8(0x205)](){var _0x1935bd=_0x1cfdb8,_0x7d10a9;(_0x7d10a9=this[_0x1935bd(0x1e8)])==null||_0x7d10a9[_0x1935bd(0x205)](),this[_0x1935bd(0x189)]['next']('idle'),this[_0x1935bd(0x189)][_0x1935bd(0x219)]();}[_0x1cfdb8(0x19f)](){var _0x3c2ea5=_0x1cfdb8;this['_init']||(this[_0x3c2ea5(0x1a5)]=!0x0,this['_collabSession'][_0x3c2ea5(0x1fc)]['pipe'](_0x53db6a(this[_0x3c2ea5(0x1ff)]))['subscribe'](_0x49b50d=>{var _0x42f9e1=_0x3c2ea5;switch(_0x49b50d){case _0x4c2fe1[_0x42f9e1(0x1fe)]:this['_handleOffline']();break;case _0x4c2fe1[_0x42f9e1(0x19d)]:this[_0x42f9e1(0x1fb)]();break;}}),this['_collabSession'][_0x3c2ea5(0x234)][_0x3c2ea5(0x1b0)](_0x53db6a(this['dispose$']))[_0x3c2ea5(0x200)](_0x569ba7=>{var _0x3c9176=_0x3c2ea5;const {eventID:_0x10980b}=_0x569ba7;switch(_0x10980b){case _0x20f152['LIVESHARE_NEW_HOST']:this[_0x3c9176(0x20b)](_0x569ba7);break;case _0x20f152[_0x3c9176(0x204)]:this['_handleOperation'](_0x569ba7);break;case _0x20f152[_0x3c9176(0x1a9)]:this['_handleTerminate']();break;case _0x20f152['NEW_CHANGESETS']:this[_0x3c9176(0x1c9)](_0x569ba7);break;}}));}['tryStartPresenting'](){var _0x31d8fa=_0x1cfdb8;this[_0x31d8fa(0x1e1)][_0x31d8fa(0x210)]({'eventID':_0x20f152[_0x31d8fa(0x21d)],'data':{'unitID':this[_0x31d8fa(0x202)],'userID':this[_0x31d8fa(0x1e1)]['getMemberID']()}},this[_0x31d8fa(0x202)]);}['stopPresenting'](){var _0x591157=_0x1cfdb8;this[_0x591157(0x230)]===_0x591157(0x1f5)&&(this[_0x591157(0x189)]['next'](_0x591157(0x1f7)),this[_0x591157(0x1e1)][_0x591157(0x210)]({'eventID':_0x20f152[_0x591157(0x1a9)],'data':{'unitID':this[_0x591157(0x202)]}},this[_0x591157(0x202)]));}[_0x1cfdb8(0x220)](){var _0x529865=_0x1cfdb8;this[_0x529865(0x230)]==='not-following'&&(this[_0x529865(0x189)][_0x529865(0x1aa)](_0x529865(0x1e6)),this[_0x529865(0x22c)]());}[_0x1cfdb8(0x20a)](){var _0x511b34=_0x1cfdb8;this[_0x511b34(0x230)]===_0x511b34(0x1e6)&&this[_0x511b34(0x23c)]();}['_handleNewHost'](_0x9cf68f){var _0x524346=_0x1cfdb8;const {presenter:_0x5d0808}=_0x9cf68f[_0x524346(0x1fd)],_0x42d715=this[_0x524346(0x1e1)]['getMemberID']();this['_presenter']=_0x5d0808,_0x5d0808===_0x42d715?(this['_stopFollowing'](),this[_0x524346(0x20c)]()):this['_status']!==_0x524346(0x207)&&(this['_stopPresenting'](),this[_0x524346(0x22c)]());}[_0x1cfdb8(0x221)](){var _0x175615=_0x1cfdb8;const _0x544c40={'eventID':_0x20f152['LIVESHARE_FETCH_OPERATIONS']};this[_0x175615(0x1e1)][_0x175615(0x210)](_0x544c40,this[_0x175615(0x202)]);}[_0x1cfdb8(0x218)](){var _0x397979=_0x1cfdb8;this[_0x397979(0x21e)]=null,this[_0x397979(0x230)]!==_0x397979(0x1f5)&&this[_0x397979(0x1b7)]();}[_0x1cfdb8(0x1c9)](_0x1eccf4){var _0x2ce401=_0x1cfdb8;if(this[_0x2ce401(0x230)]==='following'&&this['_presenter']===_0x1eccf4[_0x2ce401(0x1fd)][_0x2ce401(0x1f6)]){const _0x34f39b=_0x5d01dc(_0x1eccf4[_0x2ce401(0x1fd)])[_0x2ce401(0x1c1)][_0x2ce401(0x1bb)]()[_0x2ce401(0x1bc)](_0x20ccc4=>_0x20ccc4['id']===_0x10e7cd['id']);if(_0x34f39b){const _0x3e543d=_0x34f39b['params'][_0x2ce401(0x197)],_0x53c143=_0x34f39b[_0x2ce401(0x231)][_0x2ce401(0x1cf)]['id'];setTimeout(()=>{var _0x3b922c=_0x2ce401;this[_0x3b922c(0x214)][_0x3b922c(0x1ce)](_0x24d323['id'],{'unitId':_0x3e543d,'subUnitId':_0x53c143},{'fromCollab':!0x0});});}}}[_0x1cfdb8(0x20c)](){var _0x8b037f=_0x1cfdb8;this[_0x8b037f(0x189)][_0x8b037f(0x1aa)](_0x8b037f(0x1f5));const _0x39e9db=new Map(),_0x5e0b31=this['_commandDisposable']=new _0x4bfb4d();_0x5e0b31[_0x8b037f(0x1f3)](_0x4a5a19(()=>{var _0xdf7013=_0x8b037f;_0x39e9db[_0xdf7013(0x190)](_0x49cd61=>_0x49cd61[_0xdf7013(0x219)]()),_0x39e9db[_0xdf7013(0x1f9)]();})),_0x5e0b31[_0x8b037f(0x1f3)](this[_0x8b037f(0x214)][_0x8b037f(0x1c5)](_0x2b9a6a=>{var _0x9183b1=_0x8b037f,_0xe3702b;if(_0x2b9a6a[_0x9183b1(0x1d0)]!==_0x1a8ce3[_0x9183b1(0x1ef)]||!this[_0x9183b1(0x1f0)]['shouldShareOperation'](_0x2b9a6a['id']))return;const {id:_0x1bfc77}=_0x2b9a6a;let _0x2af0b8;_0x39e9db[_0x9183b1(0x1d9)](_0x1bfc77)?_0x2af0b8=_0x39e9db[_0x9183b1(0x216)](_0x1bfc77):(_0x2af0b8=new _0x396672(),_0x39e9db[_0x9183b1(0x22a)](_0x1bfc77,_0x2af0b8),_0x2af0b8['pipe'](_0x4fcd45((_0xe3702b=this[_0x9183b1(0x1bf)][_0x9183b1(0x1c8)](Pe))!=null?_0xe3702b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xa8648c=>{var _0x2f7443=_0x9183b1;this[_0x2f7443(0x1e1)][_0x2f7443(0x210)]({'eventID':_0x20f152[_0x2f7443(0x204)],'data':{'unitID':this['_unitID'],'operations':{[_0xa8648c['id']]:{'id':_0xa8648c['id'],'params':JSON['stringify'](_0xa8648c[_0x2f7443(0x231)])}}}},this[_0x2f7443(0x202)]);})),_0x2af0b8[_0x9183b1(0x1aa)](_0x2b9a6a);})),this[_0x8b037f(0x1f0)][_0x8b037f(0x19b)](this[_0x8b037f(0x202)])[_0x8b037f(0x190)](_0x54d54a=>this[_0x8b037f(0x1e1)][_0x8b037f(0x210)]({'eventID':_0x20f152[_0x8b037f(0x204)],'data':{'unitID':this[_0x8b037f(0x202)],'operations':{[_0x54d54a['id']]:{'id':_0x54d54a['id'],'params':JSON['stringify'](_0x54d54a[_0x8b037f(0x231)])}}}},this[_0x8b037f(0x202)]));}['_stopPresenting'](){var _0x35885c=_0x1cfdb8,_0x3d4b00;this[_0x35885c(0x189)][_0x35885c(0x1aa)](_0x35885c(0x1f7)),(_0x3d4b00=this[_0x35885c(0x1e8)])==null||_0x3d4b00['dispose'](),this[_0x35885c(0x1e8)]=null;}['_startFollowing'](){var _0x4456e2=_0x1cfdb8,_0x3b8155;(_0x3b8155=this['_commandDisposable'])==null||_0x3b8155[_0x4456e2(0x205)](),this[_0x4456e2(0x189)][_0x4456e2(0x1aa)](_0x4456e2(0x1e6));}[_0x1cfdb8(0x1b7)](){var _0x5c5771=_0x1cfdb8,_0x5a6c76;this[_0x5c5771(0x189)]['next'](_0x5c5771(0x1f7)),(_0x5a6c76=this[_0x5c5771(0x1e8)])==null||_0x5a6c76[_0x5c5771(0x205)](),this[_0x5c5771(0x1e8)]=null;}['_stopFollowing'](){var _0x51c916=_0x1cfdb8,_0x12de5f;this[_0x51c916(0x189)][_0x51c916(0x1aa)](_0x51c916(0x207)),(_0x12de5f=this[_0x51c916(0x1e8)])==null||_0x12de5f[_0x51c916(0x205)]();}['_handleOperation'](_0x5b5ecb){var _0x4be783=_0x1cfdb8;if([_0x4be783(0x1f5),_0x4be783(0x207),_0x4be783(0x1b2)][_0x4be783(0x192)](this[_0x4be783(0x230)])||!_0x5b5ecb[_0x4be783(0x1fd)][_0x4be783(0x232)]||_0x5b5ecb[_0x4be783(0x1fd)]['presenter']===this[_0x4be783(0x1e1)][_0x4be783(0x1b6)]())return;this[_0x4be783(0x230)]===_0x4be783(0x1f7)&&this[_0x4be783(0x22c)]();const _0x2e3c75=_0x5b5ecb[_0x4be783(0x1fd)][_0x4be783(0x19e)];Object[_0x4be783(0x238)](_0x2e3c75)['forEach'](_0x5391f8=>{var _0x23eed0=_0x4be783;this[_0x23eed0(0x214)][_0x23eed0(0x1ce)](_0x5391f8['id'],_0x5391f8[_0x23eed0(0x231)]?JSON[_0x23eed0(0x21a)](_0x5391f8[_0x23eed0(0x231)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x44d3b7=_0x1cfdb8,_0x36ebed;this['_status$'][_0x44d3b7(0x1aa)](_0x44d3b7(0x1b2)),(_0x36ebed=this[_0x44d3b7(0x1e8)])==null||_0x36ebed[_0x44d3b7(0x205)]();}[_0x1cfdb8(0x1fb)](){var _0x475b0a=_0x1cfdb8;this[_0x475b0a(0x189)][_0x475b0a(0x1aa)](_0x475b0a(0x1f7)),this[_0x475b0a(0x221)]();}};C=Z([f(0x2,_0x4ab276),f(0x3,_0x47e04a(L)),f(0x4,_0x1b92ec)],C);function Te(){var _0x59090f=_0x1cfdb8;const _0x978a73=_0x5ac572(I),_0x2db5fb=_0x5ac572(_0x5e8fc8),_0x9ed3cf=_0xb18adb(()=>_0x2db5fb['getCurrentTypeOfUnit$'](_0x44e9a0[_0x59090f(0x19c)]),void 0x0,!0x1,[]),[_0x1969fe,_0x2f608b]=_0x21145a(null),[_0x4c8577,_0x2dce7f]=_0x21145a(h[_0x59090f(0x1ee)]),_0x1a1223=_0x25d6c4(null);return _0x396e80(()=>(_0x9ed3cf&&_0x978a73[_0x59090f(0x23d)](_0x9ed3cf[_0x59090f(0x1e2)]())[_0x59090f(0x215)](_0xff1f95=>{var _0x2cd215=_0x59090f;_0x2f608b(_0xff1f95),_0x1a1223[_0x2cd215(0x18c)]=_0xff1f95[_0x2cd215(0x1c0)][_0x2cd215(0x200)](_0x3240bc=>{_0x2dce7f(_0x3240bc);});}),()=>{var _0xe025f9=_0x59090f,_0x4a1122;(_0x4a1122=_0x1a1223[_0xe025f9(0x18c)])==null||_0x4a1122[_0xe025f9(0x1ca)](),_0x1a1223[_0xe025f9(0x18c)]=null;}),[_0x9ed3cf,_0x978a73]),_0x1969fe?_0x2585db(_0x2c46c3,{'align':_0x59090f(0x229),'disabled':_0x4c8577===h[_0x59090f(0x1fe)],'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':_0x2585db($e,{'status':_0x4c8577,'coordinator':_0x1969fe}),'children':_0x2585db(_0x59090f(0x1dd),{'className':_0x4d9db3(_0x59090f(0x226),{'univer-cursor-not-allowed':_0x4c8577===h[_0x59090f(0x1fe)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c8577!==h[_0x59090f(0x1fe)]}),'type':_0x59090f(0x1dd),'children':_0x2585db(B,{'className':_0x59090f(0x18d)})})}):null;}function $e(_0x5798a1){var _0x55d5a1=_0x1cfdb8;const {status:_0x12b2cd,coordinator:_0x2b3e37}=_0x5798a1;switch(_0x12b2cd){case h[_0x55d5a1(0x1ee)]:return _0x2585db(Fe,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x1ec)]:return _0x2585db(He,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x196)]:return _0x2585db(je,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x1fe)]:return _0x2585db(Ve,{});case h['PRESENTING']:return _0x2585db(Ue,{'coordinator':_0x2b3e37});default:return null;}}function Fe(_0x237c5a){var _0x3167ee=_0x1cfdb8;const {coordinator:_0x558289}=_0x237c5a;return _0x3c8f57(_0x589951,{'children':[_0x2585db('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3167ee(0x1ae)}),_0x2585db(_0xcd60f4,{'onClick':()=>_0x558289[_0x3167ee(0x22b)](),'children':'Start'})]});}function He(_0x405a5d){var _0xc121e8=_0x1cfdb8;const {coordinator:_0x38a75a}=_0x405a5d;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0xc121e8(0x1b9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc121e8(0x21c)}),_0x2585db(_0xcd60f4,{'onClick':()=>_0x38a75a[_0xc121e8(0x20a)](),'children':_0xc121e8(0x1a8)})]});}function je(_0x3714c4){var _0x43d3b6=_0x1cfdb8;const {coordinator:_0x451cdf}=_0x3714c4;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0x43d3b6(0x1b9),{'className':_0x43d3b6(0x235),'children':_0x43d3b6(0x1ed)}),_0x2585db(_0xcd60f4,{'variant':_0x43d3b6(0x1ba),'onClick':()=>_0x451cdf[_0x43d3b6(0x220)](),'children':_0x43d3b6(0x193)})]});}function Ue(_0x348aff){var _0x9ba380=_0x1cfdb8;const {coordinator:_0x2dc79c}=_0x348aff;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0x9ba380(0x1b9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x9ba380(0x1af)}),_0x2585db(_0xcd60f4,{'variant':'default','onClick':()=>_0x2dc79c[_0x9ba380(0x194)](),'children':_0x9ba380(0x227)})]});}function Ve(){var _0x22c132=_0x1cfdb8;return _0x2585db(_0x589951,{'children':_0x22c132(0x1da)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x4451df,_0x374f12,_0x25045f,_0x4a89e2)=>{var _0x502f53=_0x1cfdb8;for(var _0x43067b=_0x4a89e2>0x1?void 0x0:_0x4a89e2?Me(_0x374f12,_0x25045f):_0x374f12,_0x55d42c=_0x4451df[_0x502f53(0x21f)]-0x1,_0x508aa7;_0x55d42c>=0x0;_0x55d42c--)(_0x508aa7=_0x4451df[_0x55d42c])&&(_0x43067b=_0x508aa7(_0x43067b)||_0x43067b);return _0x43067b;},$=(_0x39e8fa,_0x3ccddf)=>(_0x2c454f,_0x3233c3)=>_0x3ccddf(_0x2c454f,_0x3233c3,_0x39e8fa);let b=class extends _0x978db0{constructor(_0x570a1d,_0x416b11){var _0x1d2f9b=_0x1cfdb8;super(),this[_0x1d2f9b(0x198)]=_0x570a1d,this[_0x1d2f9b(0x195)]=_0x416b11,this[_0x1d2f9b(0x1c4)]();}[_0x1cfdb8(0x1c4)](){var _0x1122f5=_0x1cfdb8;this['disposeWithMe'](this['_uiPartsService'][_0x1122f5(0x21b)](_0x2b5b91[_0x1122f5(0x1be)],()=>_0xecd535(Te,this[_0x1122f5(0x198)])));}};b=ke([$(0x0,_0x47e04a(_0x12d76d)),$(0x1,_0x53c21b)],b);var Ge=Object['defineProperty'],We=Object[_0x1cfdb8(0x22d)],Ye=(_0x58b4f5,_0x266794,_0x3dd639)=>_0x266794 in _0x58b4f5?Ge(_0x58b4f5,_0x266794,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd639}):_0x58b4f5[_0x266794]=_0x3dd639,Be=(_0x3d2be0,_0x3f4038,_0x106740,_0x5853d8)=>{for(var _0x41ef16=_0x5853d8>0x1?void 0x0:_0x5853d8?We(_0x3f4038,_0x106740):_0x3f4038,_0x5b4e47=_0x3d2be0['length']-0x1,_0x4da8f4;_0x5b4e47>=0x0;_0x5b4e47--)(_0x4da8f4=_0x3d2be0[_0x5b4e47])&&(_0x41ef16=_0x4da8f4(_0x41ef16)||_0x41ef16);return _0x41ef16;},F=(_0x23c66e,_0x33b9cb)=>(_0x4f6307,_0x501b75)=>_0x33b9cb(_0x4f6307,_0x501b75,_0x23c66e),J=(_0x1501a1,_0x4a766a,_0xf697e0)=>Ye(_0x1501a1,typeof _0x4a766a!=_0x1cfdb8(0x1de)?_0x4a766a+'':_0x4a766a,_0xf697e0);const Ze=_0x1cfdb8(0x1cc);let O=class extends _0x2d95be{constructor(_0x54127e=T,_0x393189,_0x5105fe){var _0x158f4b=_0x1cfdb8;super(),this[_0x158f4b(0x1d7)]=_0x54127e,this['_injector']=_0x393189,this['_configService']=_0x5105fe;const {..._0x35dc4c}=_0x4d7b5c({},T,this[_0x158f4b(0x1d7)]);this[_0x158f4b(0x1bf)][_0x158f4b(0x22e)](Oe,_0x35dc4c);}[_0x1cfdb8(0x239)](){var _0x395652=_0x1cfdb8;_0x3c4690(this[_0x395652(0x198)],_0x5c9bf8([[L],[I],[m],[b]],this['_config'][_0x395652(0x1d3)])),_0x223193(this[_0x395652(0x198)],[[m]]);}[_0x1cfdb8(0x1a6)](){var _0x5f4fcb=_0x1cfdb8;_0x223193(this[_0x5f4fcb(0x198)],[[b]]);}};J(O,_0x1cfdb8(0x1d0),_0x44e9a0[_0x1cfdb8(0x1a4)]),J(O,_0x1cfdb8(0x1dc),Ze),O=Be([_0x20f516(_0x5df2c9),F(0x1,_0x47e04a(_0x12d76d)),F(0x2,_0x4ab276)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x2a4e56=_0x211d;(function(_0x152bdd,_0x1d7b81){var _0x33e1dd=_0x211d,_0x4761b8=_0x152bdd();while(!![]){try{var _0x1a2bbe=parseInt(_0x33e1dd(0x102))/0x1+-parseInt(_0x33e1dd(0x125))/0x2+parseInt(_0x33e1dd(0x121))/0x3*(-parseInt(_0x33e1dd(0xdc))/0x4)+-parseInt(_0x33e1dd(0xf7))/0x5+-parseInt(_0x33e1dd(0xee))/0x6*(-parseInt(_0x33e1dd(0x162))/0x7)+-parseInt(_0x33e1dd(0xf0))/0x8+-parseInt(_0x33e1dd(0x11b))/0x9*(-parseInt(_0x33e1dd(0x14a))/0xa);if(_0x1a2bbe===_0x1d7b81)break;else _0x4761b8['push'](_0x4761b8['shift']());}catch(_0x29fa21){_0x4761b8['push'](_0x4761b8['shift']());}}}(_0x1f6a,0xb50de));var q=Object[_0x2a4e56(0x128)],z=(_0x1450a8,_0x4ca509,_0x59aa27)=>_0x4ca509 in _0x1450a8?q(_0x1450a8,_0x4ca509,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59aa27}):_0x1450a8[_0x4ca509]=_0x59aa27,d=(_0x5e21e9,_0x5ab015,_0x39ccae)=>z(_0x5e21e9,typeof _0x5ab015!='symbol'?_0x5ab015+'':_0x5ab015,_0x39ccae);import{CollaborationSessionService as _0x2605b2,SessionStatus as _0xd91a3e,UniverCollaborationClientPlugin as _0x54e8f2}from'@univerjs-pro/collaboration-client';import{Disposable as _0x55e70d,toDisposable as _0x5bbbe4,Inject as _0x28e2e2,IUniverInstanceService as _0x59a521,Injector as _0x385dfc,IConfigService as _0x5e7f31,ICommandService as _0xbe7d76,RxDisposable as _0x423752,UniverInstanceType as _0x5e9f9d,DisposableCollection as _0x5c7f80,CommandType as _0x425b0f,DependentOn as _0x302346,Plugin as _0x161583,merge as _0x40e342,registerDependencies as _0x5d616d,mergeOverrideWithDependencies as _0x22fea7,touchDependencies as _0x973282}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1be10f,InsertSheetMutation as _0x188508}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x39d4f5,SetScrollOperation as _0x15db34}from'@univerjs/sheets-ui';import{useDependency as _0x194831,useObservable as _0xc66ce5,IUIPartsService as _0x549bf8,BuiltInUIPart as _0x4f3fcc,connectInjector as _0x408093}from'@univerjs/ui';import{jsx as _0x56ff07,jsxs as _0x50cef9,Fragment as _0x280ba5}from'react/jsx-runtime';import{Dropdown as _0x34954a,clsx as _0x3a36ee,Button as _0x3a33fb}from'@univerjs/design';import{forwardRef as _0x268080,useRef as _0x5e1776,createElement as _0x42e6b9,useState as _0x1e1f64,useEffect as _0x47d093}from'react';import{CollaborationEvent as _0x444c80,parseProtocolChangeset as _0x4ddb95}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3110bd,Subject as _0x343b8d}from'rxjs';import{takeUntil as _0x28922c,throttleTime as _0x524525}from'rxjs/operators';const Oe=_0x2a4e56(0x124),T={};class L extends _0x55e70d{constructor(){var _0x593c6b=_0x2a4e56;super(...arguments),d(this,_0x593c6b(0xdf),new Set()),d(this,_0x593c6b(0x14f),new Set());}[_0x2a4e56(0x130)](_0x89d6b9){var _0x8075a5=_0x2a4e56;return this[_0x8075a5(0xdf)]['add'](_0x89d6b9),_0x5bbbe4(()=>this[_0x8075a5(0xdf)][_0x8075a5(0x144)](_0x89d6b9));}[_0x2a4e56(0xdb)](_0x492fc9){var _0x19bb97=_0x2a4e56;return this[_0x19bb97(0x14f)][_0x19bb97(0x14b)](_0x492fc9),_0x5bbbe4(()=>this[_0x19bb97(0x14f)][_0x19bb97(0x144)](_0x492fc9));}['shouldShareOperation'](_0x549c65){var _0xac4456=_0x2a4e56;return this[_0xac4456(0xdf)]['has'](_0x549c65);}['getInitialStates'](_0x4a90c7){var _0x1c9e2b=_0x2a4e56;return Array['from'](this['_reporters'])[_0x1c9e2b(0x159)](_0x3fd7c3=>_0x3fd7c3(_0x4a90c7));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x1bdf11,_0x4db765,_0x49f028,_0xae7cb6)=>{var _0x384f6f=_0x2a4e56;for(var _0x14a327=_0xae7cb6>0x1?void 0x0:_0xae7cb6?Ee(_0x4db765,_0x49f028):_0x4db765,_0x590a93=_0x1bdf11[_0x384f6f(0x139)]-0x1,_0x5b511c;_0x590a93>=0x0;_0x590a93--)(_0x5b511c=_0x1bdf11[_0x590a93])&&(_0x14a327=_0x5b511c(_0x14a327)||_0x14a327);return _0x14a327;},Ne=(_0x3e93ac,_0x809df4)=>(_0x529d84,_0xd32902)=>_0x809df4(_0x529d84,_0xd32902,_0x3e93ac);let m=class extends _0x55e70d{constructor(_0x267d0){super(),this['_liveShareService']=_0x267d0,this['_init']();}[_0x2a4e56(0x120)](){var _0x9ebc80=_0x2a4e56;[_0x39d4f5['id'],_0x15db34['id'],_0x1be10f['id']][_0x9ebc80(0x108)](_0x2edc84=>{var _0x25b93a=_0x9ebc80;this[_0x25b93a(0x114)](this[_0x25b93a(0x142)][_0x25b93a(0x130)](_0x2edc84));});}};m=we([Ne(0x0,_0x28e2e2(L))],m);var c=function(){return c=Object['assign']||function(_0x41401f){var _0x21c72f=_0x211d;for(var _0x188f3e,_0x3feaac=0x1,_0xcaa1b3=arguments[_0x21c72f(0x139)];_0x3feaac<_0xcaa1b3;_0x3feaac++){_0x188f3e=arguments[_0x3feaac];for(var _0x5895eb in _0x188f3e)Object['prototype'][_0x21c72f(0xf8)]['call'](_0x188f3e,_0x5895eb)&&(_0x41401f[_0x5895eb]=_0x188f3e[_0x5895eb]);}return _0x41401f;},c['apply'](this,arguments);},Ce=function(_0x49ab29,_0x2fb86a){var _0x4a6e9d=_0x2a4e56,_0x188bf2={};for(var _0x21ceb4 in _0x49ab29)Object['prototype'][_0x4a6e9d(0xf8)][_0x4a6e9d(0xe9)](_0x49ab29,_0x21ceb4)&&_0x2fb86a[_0x4a6e9d(0xd6)](_0x21ceb4)<0x0&&(_0x188bf2[_0x21ceb4]=_0x49ab29[_0x21ceb4]);if(_0x49ab29!=null&&typeof Object[_0x4a6e9d(0x15b)]==_0x4a6e9d(0xd5)){for(var _0x167ce7=0x0,_0x21ceb4=Object['getOwnPropertySymbols'](_0x49ab29);_0x167ce7<_0x21ceb4[_0x4a6e9d(0x139)];_0x167ce7++)_0x2fb86a[_0x4a6e9d(0xd6)](_0x21ceb4[_0x167ce7])<0x0&&Object['prototype'][_0x4a6e9d(0xd2)][_0x4a6e9d(0xe9)](_0x49ab29,_0x21ceb4[_0x167ce7])&&(_0x188bf2[_0x21ceb4[_0x167ce7]]=_0x49ab29[_0x21ceb4[_0x167ce7]]);}return _0x188bf2;},W=_0x268080(function(_0x2b5da0,_0x4a4be7){var _0x1f8bd3=_0x2a4e56,_0x1f30d4=_0x2b5da0[_0x1f8bd3(0x15e)],_0x45c8ae=_0x2b5da0['id'],_0xc0648e=_0x2b5da0[_0x1f8bd3(0xf3)],_0x59fab3=_0x2b5da0[_0x1f8bd3(0x110)],_0x1cef6d=Ce(_0x2b5da0,[_0x1f8bd3(0x15e),'id',_0x1f8bd3(0xf3),_0x1f8bd3(0x110)]),_0x3874b7=_0x1f8bd3(0xfc)[_0x1f8bd3(0x13c)](_0x45c8ae,'\x20')['concat'](_0xc0648e||'')[_0x1f8bd3(0xe2)](),_0x3ef99b=_0x5e1776('_'[_0x1f8bd3(0x13c)](Le()));return Y(_0x1f30d4,''[_0x1f8bd3(0x13c)](_0x45c8ae),{'defIds':_0x1f30d4['defIds'],'idSuffix':_0x3ef99b[_0x1f8bd3(0x14e)]},c({'ref':_0x4a4be7,'className':_0x3874b7},_0x1cef6d),_0x59fab3);});function Y(_0x279e73,_0x4e7fbd,_0x17eb75,_0x55bf28,_0x1c6b4e){var _0x12df12=_0x2a4e56;return _0x42e6b9(_0x279e73[_0x12df12(0x136)],c(c({'key':_0x4e7fbd},De(_0x279e73,_0x17eb75,_0x1c6b4e)),_0x55bf28),(xe(_0x279e73,_0x17eb75)[_0x12df12(0x156)]||[])['map'](function(_0x289b07,_0x31d50a){var _0x557952=_0x12df12;return Y(_0x289b07,''['concat'](_0x4e7fbd,'-')[_0x557952(0x13c)](_0x279e73[_0x557952(0x136)],'-')['concat'](_0x31d50a),_0x17eb75,void 0x0,_0x1c6b4e);}));}function De(_0x5520c9,_0x5b31fa,_0x4a9cf8){var _0x11a575=_0x2a4e56,_0x17f396=c({},_0x5520c9[_0x11a575(0x16b)]);_0x4a9cf8!=null&&_0x4a9cf8[_0x11a575(0x115)]&&_0x17f396[_0x11a575(0x158)]==='colorChannel1'&&(_0x17f396[_0x11a575(0x158)]=_0x4a9cf8[_0x11a575(0x115)]),_0x5520c9['tag']===_0x11a575(0xf4)&&_0x17f396['id']&&(_0x17f396['id']=_0x17f396['id']+_0x5b31fa['idSuffix']),Object[_0x11a575(0x174)](_0x17f396)[_0x11a575(0x108)](function(_0x522404){var _0x4947b5=_0x11a575,_0x1e4920=_0x522404[0x0],_0x1f3fff=_0x522404[0x1];_0x1e4920===_0x4947b5(0xf4)&&typeof _0x1f3fff==_0x4947b5(0x17c)&&(_0x17f396[_0x1e4920]=_0x1f3fff['replace'](/url\(#(.*)\)/,_0x4947b5(0x166)[_0x4947b5(0x13c)](_0x5b31fa['idSuffix'],')')));});var _0x4e6c53=_0x5b31fa[_0x11a575(0x103)];return!_0x4e6c53||_0x4e6c53['length']===0x0||(_0x5520c9[_0x11a575(0x136)]===_0x11a575(0x11d)&&_0x17f396['xlink:href']&&(_0x17f396[_0x11a575(0xe5)]=_0x17f396[_0x11a575(0xe5)]+_0x5b31fa[_0x11a575(0x16d)]),Object[_0x11a575(0x174)](_0x17f396)[_0x11a575(0x108)](function(_0x5aa86c){var _0x597951=_0x11a575,_0x5e26a9=_0x5aa86c[0x0],_0x3c767a=_0x5aa86c[0x1];typeof _0x3c767a=='string'&&(_0x17f396[_0x5e26a9]=_0x3c767a[_0x597951(0x129)](/url\(#(.*)\)/,_0x597951(0x166)['concat'](_0x5b31fa[_0x597951(0x16d)],')')));})),_0x17f396;}function xe(_0x4bafe2,_0x32c1ee){var _0x42b46c=_0x2a4e56,_0x558b5e,_0x3cf066=_0x32c1ee[_0x42b46c(0x103)];return!_0x3cf066||_0x3cf066['length']===0x0?_0x4bafe2:_0x4bafe2[_0x42b46c(0x136)]==='defs'&&(!((_0x558b5e=_0x4bafe2[_0x42b46c(0x156)])===null||_0x558b5e===void 0x0)&&_0x558b5e[_0x42b46c(0x139)])?c(c({},_0x4bafe2),{'children':_0x4bafe2[_0x42b46c(0x156)][_0x42b46c(0x159)](function(_0x591cff){var _0x125e78=_0x42b46c;return typeof _0x591cff[_0x125e78(0x16b)]['id']=='string'&&_0x3cf066&&_0x3cf066[_0x125e78(0x171)](_0x591cff[_0x125e78(0x16b)]['id'])?c(c({},_0x591cff),{'attrs':c(c({},_0x591cff[_0x125e78(0x16b)]),{'id':_0x591cff[_0x125e78(0x16b)]['id']+_0x32c1ee[_0x125e78(0x16d)]})}):_0x591cff;})}):_0x4bafe2;}function Le(){var _0x1f36bc=_0x2a4e56;return Math['random']()[_0x1f36bc(0x13b)](0x24)[_0x1f36bc(0x101)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x2a4e56(0x175),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2a4e56(0x12f),'viewBox':_0x2a4e56(0xe7),'width':_0x2a4e56(0x148),'height':'1em'},'children':[{'tag':_0x2a4e56(0xf9),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x2a4e56(0xf9),'attrs':{'fill':'currentColor','d':_0x2a4e56(0xfa),'fillRule':_0x2a4e56(0x123),'clipRule':_0x2a4e56(0x123)}}]},B=_0x268080(function(_0x45bd52,_0x5770ca){var _0x17a664=_0x2a4e56;return _0x42e6b9(W,Object['assign']({},_0x45bd52,{'id':_0x17a664(0x176),'ref':_0x5770ca,'icon':ye}));});B[_0x2a4e56(0x16f)]=_0x2a4e56(0xea);var Re=Object[_0x2a4e56(0xd3)],Z=(_0x20ffbf,_0x58735e,_0x4f8476,_0x1c24c7)=>{var _0x192a98=_0x2a4e56;for(var _0x2951f8=_0x1c24c7>0x1?void 0x0:_0x1c24c7?Re(_0x58735e,_0x4f8476):_0x58735e,_0x58dad2=_0x20ffbf[_0x192a98(0x139)]-0x1,_0x15d1fa;_0x58dad2>=0x0;_0x58dad2--)(_0x15d1fa=_0x20ffbf[_0x58dad2])&&(_0x2951f8=_0x15d1fa(_0x2951f8)||_0x2951f8);return _0x2951f8;},f=(_0x2c4144,_0x5af337)=>(_0x4d4887,_0x597eb2)=>_0x5af337(_0x4d4887,_0x597eb2,_0x2c4144);let I=class extends _0x423752{constructor(_0x21393e,_0x262b77,_0x3d140e){var _0x5b3d5e=_0x2a4e56;super(),d(this,_0x5b3d5e(0x141),new Map()),(this[_0x5b3d5e(0x134)]=_0x21393e,this[_0x5b3d5e(0x105)]=_0x262b77,this[_0x5b3d5e(0xd4)]=_0x3d140e,this[_0x5b3d5e(0x120)]());}async[_0x2a4e56(0x126)](_0x14781b){var _0x5bc03e=_0x2a4e56;return this['_entities']['has'](_0x14781b)||await this[_0x5bc03e(0xd7)](_0x14781b),this[_0x5bc03e(0x141)][_0x5bc03e(0x12b)](_0x14781b);}[_0x2a4e56(0x120)](){var _0x2bee12=_0x2a4e56;this[_0x2bee12(0x134)]['getTypeOfUnitAdded$'](_0x5e9f9d['UNIVER_SHEET'])['pipe'](_0x28922c(this['dispose$']))[_0x2bee12(0x11a)](async _0x392b45=>{var _0x13be77=_0x2bee12;const _0x1f41d3=_0x392b45['getUnitId']();this[_0x13be77(0x141)][_0x13be77(0x119)](_0x1f41d3)||this[_0x13be77(0xd7)](_0x1f41d3);}),this['_univerInstanceService'][_0x2bee12(0x16a)](_0x5e9f9d[_0x2bee12(0x177)])[_0x2bee12(0x12e)](_0x28922c(this[_0x2bee12(0x15f)]))[_0x2bee12(0x11a)](_0x3d1cbc=>{var _0x210427=_0x2bee12;const _0x337367=_0x3d1cbc['getUnitId'](),_0x4089b7=this[_0x210427(0x141)][_0x210427(0x12b)](_0x337367);_0x4089b7==null||_0x4089b7[_0x210427(0xfd)]();});}async[_0x2a4e56(0xd7)](_0x54e31f){var _0x2842ec=_0x2a4e56;const _0x23b165=await this[_0x2842ec(0xd4)][_0x2842ec(0x10d)](_0x54e31f),_0x10a5cc=this[_0x2842ec(0x105)][_0x2842ec(0x135)](C,_0x54e31f,_0x23b165);return _0x10a5cc[_0x2842ec(0x132)](),this['_entities'][_0x2842ec(0x149)](_0x54e31f,_0x10a5cc),_0x10a5cc;}};I=Z([f(0x0,_0x59a521),f(0x1,_0x28e2e2(_0x385dfc)),f(0x2,_0x28e2e2(_0x2605b2))],I);var h=(_0xc6d4c4=>(_0xc6d4c4['OFFLINE']=_0x2a4e56(0x152),_0xc6d4c4['IDLE']=_0x2a4e56(0xd9),_0xc6d4c4[_0x2a4e56(0x10b)]=_0x2a4e56(0x165),_0xc6d4c4[_0x2a4e56(0xe4)]=_0x2a4e56(0x17d),_0xc6d4c4['PRESENTING']='presenting',_0xc6d4c4))(h||{});const Pe=_0x2a4e56(0xec),Ae=0xc8;let C=class extends _0x423752{constructor(_0x445fe4,_0xad2f16,_0x1d12b9,_0x580a65,_0x1f6929){var _0x58b7a3=_0x2a4e56;super(),d(this,_0x58b7a3(0x113),new _0x3110bd(_0x58b7a3(0xd9))),d(this,_0x58b7a3(0x16e),this['_status$'][_0x58b7a3(0xe0)]()),d(this,'_init',!0x1),d(this,_0x58b7a3(0x13d),null),d(this,_0x58b7a3(0x138),null),(this['_unitID']=_0x445fe4,this[_0x58b7a3(0x150)]=_0xad2f16,this[_0x58b7a3(0xf6)]=_0x1d12b9,this[_0x58b7a3(0x142)]=_0x580a65,this[_0x58b7a3(0x111)]=_0x1f6929);}get[_0x2a4e56(0xe3)](){var _0x19346c=_0x2a4e56;return this[_0x19346c(0x113)][_0x19346c(0x106)]();}[_0x2a4e56(0xfd)](){var _0x3d280b=_0x2a4e56,_0x5dd22e;(_0x5dd22e=this[_0x3d280b(0x13d)])==null||_0x5dd22e[_0x3d280b(0xfd)](),this['_status$'][_0x3d280b(0xe8)](_0x3d280b(0xd9)),this[_0x3d280b(0x113)][_0x3d280b(0x12d)]();}['init'](){var _0x4d6155=_0x2a4e56;this['_init']||(this['_init']=!0x0,this[_0x4d6155(0x150)][_0x4d6155(0xd8)]['pipe'](_0x28922c(this[_0x4d6155(0x15f)]))[_0x4d6155(0x11a)](_0x158b86=>{var _0x558c7c=_0x4d6155;switch(_0x158b86){case _0xd91a3e[_0x558c7c(0x157)]:this[_0x558c7c(0x10e)]();break;case _0xd91a3e[_0x558c7c(0x15a)]:this['_handleOnline']();break;}}),this[_0x4d6155(0x150)]['event$']['pipe'](_0x28922c(this[_0x4d6155(0x15f)]))['subscribe'](_0x4c94df=>{var _0x2207ca=_0x4d6155;const {eventID:_0x437163}=_0x4c94df;switch(_0x437163){case _0x444c80[_0x2207ca(0x13f)]:this['_handleNewHost'](_0x4c94df);break;case _0x444c80[_0x2207ca(0x153)]:this[_0x2207ca(0x100)](_0x4c94df);break;case _0x444c80[_0x2207ca(0xfb)]:this['_handleTerminate']();break;case _0x444c80[_0x2207ca(0x167)]:this['_handleNewChangeSets'](_0x4c94df);break;}}));}[_0x2a4e56(0x13e)](){var _0x57c476=_0x2a4e56;this[_0x57c476(0x150)][_0x57c476(0x17b)]({'eventID':_0x444c80[_0x57c476(0x15c)],'data':{'unitID':this[_0x57c476(0x118)],'userID':this[_0x57c476(0x150)][_0x57c476(0x173)]()}},this[_0x57c476(0x118)]);}[_0x2a4e56(0x169)](){var _0x2142d1=_0x2a4e56;this[_0x2142d1(0xe3)]===_0x2142d1(0x154)&&(this[_0x2142d1(0x113)][_0x2142d1(0xe8)]('idle'),this['_collabSession'][_0x2142d1(0x17b)]({'eventID':_0x444c80['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x2142d1(0x118)]));}[_0x2a4e56(0xf1)](){var _0x4d66a9=_0x2a4e56;this[_0x4d66a9(0xe3)]===_0x4d66a9(0x17d)&&(this['_status$']['next']('following'),this['_startFollowing']());}[_0x2a4e56(0x147)](){var _0x10b824=_0x2a4e56;this[_0x10b824(0xe3)]===_0x10b824(0x165)&&this[_0x10b824(0x164)]();}[_0x2a4e56(0xda)](_0x4220a0){var _0x2e7488=_0x2a4e56;const {presenter:_0x5bb022}=_0x4220a0[_0x2e7488(0x131)],_0x8d9a6f=this['_collabSession'][_0x2e7488(0x173)]();this['_presenter']=_0x5bb022,_0x5bb022===_0x8d9a6f?(this[_0x2e7488(0x164)](),this[_0x2e7488(0x11c)]()):this['_status']!==_0x2e7488(0x17d)&&(this[_0x2e7488(0x107)](),this[_0x2e7488(0x137)]());}[_0x2a4e56(0x155)](){var _0x3cdae3=_0x2a4e56;const _0x8e8d8f={'eventID':_0x444c80[_0x3cdae3(0x122)]};this[_0x3cdae3(0x150)][_0x3cdae3(0x17b)](_0x8e8d8f,this[_0x3cdae3(0x118)]);}[_0x2a4e56(0x160)](){var _0x4ee802=_0x2a4e56;this[_0x4ee802(0x138)]=null,this[_0x4ee802(0xe3)]!==_0x4ee802(0x154)&&this[_0x4ee802(0x12c)]();}[_0x2a4e56(0x16c)](_0x3c4122){var _0x41e277=_0x2a4e56;if(this[_0x41e277(0xe3)]===_0x41e277(0x165)&&this['_presenter']===_0x3c4122[_0x41e277(0x131)][_0x41e277(0x109)]){const _0x1d9695=_0x4ddb95(_0x3c4122[_0x41e277(0x131)])['mutations']['reverse']()['find'](_0x57dff4=>_0x57dff4['id']===_0x188508['id']);if(_0x1d9695){const _0x7b937c=_0x1d9695['params'][_0x41e277(0xfe)],_0x1f0210=_0x1d9695['params'][_0x41e277(0xdd)]['id'];setTimeout(()=>{var _0x37374f=_0x41e277;this['_commandService'][_0x37374f(0x10c)](_0x1be10f['id'],{'unitId':_0x7b937c,'subUnitId':_0x1f0210},{'fromCollab':!0x0});});}}}[_0x2a4e56(0x11c)](){var _0xfe89ba=_0x2a4e56;this[_0xfe89ba(0x113)][_0xfe89ba(0xe8)](_0xfe89ba(0x154));const _0x2a0c31=new Map(),_0x2e5993=this[_0xfe89ba(0x13d)]=new _0x5c7f80();_0x2e5993[_0xfe89ba(0x14b)](_0x5bbbe4(()=>{var _0x5de3f6=_0xfe89ba;_0x2a0c31[_0x5de3f6(0x108)](_0x208ab6=>_0x208ab6[_0x5de3f6(0x12d)]()),_0x2a0c31[_0x5de3f6(0x10f)]();})),_0x2e5993['add'](this[_0xfe89ba(0x111)][_0xfe89ba(0xde)](_0xcdca78=>{var _0x2c4f6a=_0xfe89ba,_0x3d3f99;if(_0xcdca78[_0x2c4f6a(0xe1)]!==_0x425b0f[_0x2c4f6a(0xed)]||!this[_0x2c4f6a(0x142)]['shouldShareOperation'](_0xcdca78['id']))return;const {id:_0x387802}=_0xcdca78;let _0x4d9bdc;_0x2a0c31[_0x2c4f6a(0x119)](_0x387802)?_0x4d9bdc=_0x2a0c31[_0x2c4f6a(0x12b)](_0x387802):(_0x4d9bdc=new _0x343b8d(),_0x2a0c31[_0x2c4f6a(0x149)](_0x387802,_0x4d9bdc),_0x4d9bdc[_0x2c4f6a(0x12e)](_0x524525((_0x3d3f99=this[_0x2c4f6a(0xf6)]['getConfig'](Pe))!=null?_0x3d3f99:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c4f6a(0x11a)](_0x227a32=>{var _0x2dd8a2=_0x2c4f6a;this[_0x2dd8a2(0x150)][_0x2dd8a2(0x17b)]({'eventID':_0x444c80[_0x2dd8a2(0x153)],'data':{'unitID':this[_0x2dd8a2(0x118)],'operations':{[_0x227a32['id']]:{'id':_0x227a32['id'],'params':JSON['stringify'](_0x227a32['params'])}}}},this[_0x2dd8a2(0x118)]);})),_0x4d9bdc[_0x2c4f6a(0xe8)](_0xcdca78);})),this[_0xfe89ba(0x142)][_0xfe89ba(0x12a)](this[_0xfe89ba(0x118)])[_0xfe89ba(0x108)](_0x277715=>this[_0xfe89ba(0x150)]['send']({'eventID':_0x444c80['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xfe89ba(0x118)],'operations':{[_0x277715['id']]:{'id':_0x277715['id'],'params':JSON[_0xfe89ba(0x10a)](_0x277715[_0xfe89ba(0xe6)])}}}},this[_0xfe89ba(0x118)]));}[_0x2a4e56(0x107)](){var _0x2aafd0=_0x2a4e56,_0x4c75e8;this[_0x2aafd0(0x113)][_0x2aafd0(0xe8)]('idle'),(_0x4c75e8=this[_0x2aafd0(0x13d)])==null||_0x4c75e8[_0x2aafd0(0xfd)](),this[_0x2aafd0(0x13d)]=null;}['_startFollowing'](){var _0x4e893d=_0x2a4e56,_0x3248d;(_0x3248d=this[_0x4e893d(0x13d)])==null||_0x3248d['dispose'](),this['_status$'][_0x4e893d(0xe8)](_0x4e893d(0x165));}[_0x2a4e56(0x12c)](){var _0x2b3966=_0x2a4e56,_0x2daf25;this[_0x2b3966(0x113)]['next'](_0x2b3966(0xd9)),(_0x2daf25=this[_0x2b3966(0x13d)])==null||_0x2daf25[_0x2b3966(0xfd)](),this[_0x2b3966(0x13d)]=null;}[_0x2a4e56(0x164)](){var _0x350945=_0x2a4e56,_0x1307d4;this['_status$']['next']('not-following'),(_0x1307d4=this[_0x350945(0x13d)])==null||_0x1307d4[_0x350945(0xfd)]();}['_handleOperation'](_0x46a572){var _0x13903d=_0x2a4e56;if([_0x13903d(0x154),_0x13903d(0x17d),_0x13903d(0x152)][_0x13903d(0x171)](this[_0x13903d(0xe3)])||!_0x46a572['data'][_0x13903d(0x116)]||_0x46a572[_0x13903d(0x131)]['presenter']===this[_0x13903d(0x150)]['getMemberID']())return;this[_0x13903d(0xe3)]===_0x13903d(0xd9)&&this[_0x13903d(0x137)]();const _0x4fb669=_0x46a572['data'][_0x13903d(0x140)];Object[_0x13903d(0x104)](_0x4fb669)[_0x13903d(0x108)](_0x426a9e=>{var _0x234fa2=_0x13903d;this[_0x234fa2(0x111)]['executeCommand'](_0x426a9e['id'],_0x426a9e['params']?JSON['parse'](_0x426a9e[_0x234fa2(0xe6)]):null,{'fromCollab':!0x0});});}[_0x2a4e56(0x10e)](){var _0x8fdcde=_0x2a4e56,_0x400b94;this[_0x8fdcde(0x113)][_0x8fdcde(0xe8)]('offline'),(_0x400b94=this[_0x8fdcde(0x13d)])==null||_0x400b94['dispose']();}[_0x2a4e56(0x14c)](){var _0x2ee1ab=_0x2a4e56;this['_status$'][_0x2ee1ab(0xe8)](_0x2ee1ab(0xd9)),this['_fetchOperations']();}};C=Z([f(0x2,_0x5e7f31),f(0x3,_0x28e2e2(L)),f(0x4,_0xbe7d76)],C);function Te(){var _0xdfd721=_0x2a4e56;const _0x45b0fa=_0x194831(I),_0x329ba4=_0x194831(_0x59a521),_0x8c6080=_0xc66ce5(()=>_0x329ba4['getCurrentTypeOfUnit$'](_0x5e9f9d['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4bbf1e,_0x55ebf5]=_0x1e1f64(null),[_0x4879d5,_0x3910c4]=_0x1e1f64(h[_0xdfd721(0x112)]),_0x4b8108=_0x5e1776(null);return _0x47d093(()=>(_0x8c6080&&_0x45b0fa['getLiveShareCoordinator'](_0x8c6080[_0xdfd721(0x17a)]())[_0xdfd721(0x161)](_0x36e997=>{var _0x4dd4da=_0xdfd721;_0x55ebf5(_0x36e997),_0x4b8108[_0x4dd4da(0x14e)]=_0x36e997[_0x4dd4da(0x16e)][_0x4dd4da(0x11a)](_0xaf257=>{_0x3910c4(_0xaf257);});}),()=>{var _0x5d5de1=_0xdfd721,_0x43949d;(_0x43949d=_0x4b8108[_0x5d5de1(0x14e)])==null||_0x43949d[_0x5d5de1(0x117)](),_0x4b8108['current']=null;}),[_0x8c6080,_0x45b0fa]),_0x4bbf1e?_0x56ff07(_0x34954a,{'align':_0xdfd721(0x179),'disabled':_0x4879d5===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':_0x56ff07($e,{'status':_0x4879d5,'coordinator':_0x4bbf1e}),'children':_0x56ff07(_0xdfd721(0x15d),{'className':_0x3a36ee(_0xdfd721(0x127),{'univer-cursor-not-allowed':_0x4879d5===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4879d5!==h[_0xdfd721(0x157)]}),'type':_0xdfd721(0x15d),'children':_0x56ff07(B,{'className':_0xdfd721(0x172)})})}):null;}function $e(_0x5b41d9){var _0x32a1b5=_0x2a4e56;const {status:_0x211b5f,coordinator:_0x2de400}=_0x5b41d9;switch(_0x211b5f){case h['IDLE']:return _0x56ff07(Fe,{'coordinator':_0x2de400});case h[_0x32a1b5(0x10b)]:return _0x56ff07(He,{'coordinator':_0x2de400});case h['NOT_FOLLOWING']:return _0x56ff07(je,{'coordinator':_0x2de400});case h[_0x32a1b5(0x157)]:return _0x56ff07(Ve,{});case h['PRESENTING']:return _0x56ff07(Ue,{'coordinator':_0x2de400});default:return null;}}function Fe(_0x37ef69){var _0x2aff0f=_0x2a4e56;const {coordinator:_0x3c8093}=_0x37ef69;return _0x50cef9(_0x280ba5,{'children':[_0x56ff07(_0x2aff0f(0x146),{'className':_0x2aff0f(0x170),'children':'Present\x20this\x20document'}),_0x56ff07(_0x3a33fb,{'onClick':()=>_0x3c8093[_0x2aff0f(0x13e)](),'children':'Start'})]});}function He(_0x3fa2a4){var _0x39b58d=_0x2a4e56;const {coordinator:_0x143efe}=_0x3fa2a4;return _0x50cef9(_0x280ba5,{'children':[_0x56ff07(_0x39b58d(0x146),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x56ff07(_0x3a33fb,{'onClick':()=>_0x143efe[_0x39b58d(0x147)](),'children':_0x39b58d(0x13a)})]});}function je(_0x5937ef){var _0x5e2c2c=_0x2a4e56;const {coordinator:_0x3e5303}=_0x5937ef;return _0x50cef9(_0x280ba5,{'children':[_0x56ff07(_0x5e2c2c(0x146),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x56ff07(_0x3a33fb,{'variant':_0x5e2c2c(0x143),'onClick':()=>_0x3e5303[_0x5e2c2c(0xf1)](),'children':_0x5e2c2c(0xf5)})]});}function Ue(_0x528a58){var _0x1b7545=_0x2a4e56;const {coordinator:_0x26bec9}=_0x528a58;return _0x50cef9(_0x280ba5,{'children':[_0x56ff07(_0x1b7545(0x146),{'className':_0x1b7545(0x170),'children':_0x1b7545(0xf2)}),_0x56ff07(_0x3a33fb,{'variant':_0x1b7545(0x163),'onClick':()=>_0x26bec9[_0x1b7545(0x169)](),'children':_0x1b7545(0x151)})]});}function Ve(){var _0x56fb5c=_0x2a4e56;return _0x56ff07(_0x280ba5,{'children':_0x56fb5c(0x14d)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x263b00,_0x145b65,_0x2127a4,_0x53e2ef)=>{var _0xa8224d=_0x2a4e56;for(var _0x13d979=_0x53e2ef>0x1?void 0x0:_0x53e2ef?Me(_0x145b65,_0x2127a4):_0x145b65,_0x12f9aa=_0x263b00[_0xa8224d(0x139)]-0x1,_0x31ca52;_0x12f9aa>=0x0;_0x12f9aa--)(_0x31ca52=_0x263b00[_0x12f9aa])&&(_0x13d979=_0x31ca52(_0x13d979)||_0x13d979);return _0x13d979;},$=(_0x45e48f,_0x5934af)=>(_0x157fc6,_0x44120b)=>_0x5934af(_0x157fc6,_0x44120b,_0x45e48f);let b=class extends _0x55e70d{constructor(_0x52c648,_0x501b1a){var _0x252eb9=_0x2a4e56;super(),this[_0x252eb9(0x105)]=_0x52c648,this['_uiPartsService']=_0x501b1a,this[_0x252eb9(0xef)]();}[_0x2a4e56(0xef)](){var _0x551f3a=_0x2a4e56;this[_0x551f3a(0x114)](this[_0x551f3a(0xff)][_0x551f3a(0x168)](_0x4f3fcc['HEADER_MENU'],()=>_0x408093(Te,this[_0x551f3a(0x105)])));}};b=ke([$(0x0,_0x28e2e2(_0x385dfc)),$(0x1,_0x549bf8)],b);function _0x1f6a(){var _0x5cebd2=['live-share-icon','UNIVER_SHEET','symbol','end','getUnitId','send','string','not-following','propertyIsEnumerable','getOwnPropertyDescriptor','_collabSessionService','function','indexOf','_startLiveShareCoordinator','sessionStatus$','idle','_handleNewHost','registerInitialStateReporter','36yAmXyE','sheet','onCommandExecuted','_sharedOperations','asObservable','type','trim','_status','NOT_FOLLOWING','xlink:href','params','0\x200\x2017\x2017','next','call','LiveShareIcon','setConfig','SAME_OPERATION_SHARE_INTERVAL','OPERATION','12PceNBB','_mountLiveShare','1243848bzDtkC','startFollowing','You\x27re\x20presenting\x20the\x20document','className','mask','Start\x20following','_configService','6863800OkTTZo','hasOwnProperty','path','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','LIVESHARE_TERMINATE','univerjs-icon\x20univerjs-icon-','dispose','unitId','_uiPartsService','_handleOperation','substring','1255953zytBqI','defIds','values','_injector','getValue','_stopPresenting','forEach','memberID','stringify','FOLLOWING','executeCommand','requireSession','_handleOffline','clear','extend','_commandService','IDLE','_status$','disposeWithMe','colorChannel1','presenter','unsubscribe','_unitID','has','subscribe','9wWqWnX','_startPresenting','use','onStarting','UNIVER_UNKNOWN','_init','395562VmMIQX','LIVESHARE_FETCH_OPERATIONS','evenodd','live-share.config','1687490aoIXQm','getLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','defineProperty','replace','getInitialStates','get','_beIdle','complete','pipe','none','registerSharedOperation','data','init','_config','_univerInstanceService','createInstance','tag','_startFollowing','_presenter','length','Stop\x20following','toString','concat','_commandDisposable','tryStartPresenting','LIVESHARE_NEW_HOST','operations','_entities','_liveShareService','text','delete','pluginName','div','stopFollowing','1em','set','23003650hMWNpT','add','_handleOnline','You\x27are\x20offline.','current','_reporters','_collabSession','Stop\x20presenting','offline','LIVESHARE_OPERATION','presenting','_fetchOperations','children','OFFLINE','fill','map','ONLINE','getOwnPropertySymbols','LIVESHARE_REQUEST_HOST','button','icon','dispose$','_handleTerminate','then','2603832zUclPt','default','_stopFollowing','following','url(#$1','NEW_CHANGESETS','registerComponent','stopPresenting','getTypeOfUnitDisposed$','attrs','_handleNewChangeSets','idSuffix','status$','displayName','univer-mb-3\x20univer-w-full\x20univer-text-sm','includes','univer-size-4','getMemberID','entries','svg'];_0x1f6a=function(){return _0x5cebd2;};return _0x1f6a();}var Ge=Object[_0x2a4e56(0x128)],We=Object[_0x2a4e56(0xd3)],Ye=(_0x36efbf,_0x146257,_0x174023)=>_0x146257 in _0x36efbf?Ge(_0x36efbf,_0x146257,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x174023}):_0x36efbf[_0x146257]=_0x174023,Be=(_0x39a1bc,_0x11a6d8,_0x3beb73,_0x4e6378)=>{for(var _0x20ee67=_0x4e6378>0x1?void 0x0:_0x4e6378?We(_0x11a6d8,_0x3beb73):_0x11a6d8,_0x1405b9=_0x39a1bc['length']-0x1,_0xbf955a;_0x1405b9>=0x0;_0x1405b9--)(_0xbf955a=_0x39a1bc[_0x1405b9])&&(_0x20ee67=_0xbf955a(_0x20ee67)||_0x20ee67);return _0x20ee67;},F=(_0x382874,_0x2f3c6b)=>(_0x363eb9,_0x15b89f)=>_0x2f3c6b(_0x363eb9,_0x15b89f,_0x382874),J=(_0xb70c86,_0x2c9c7c,_0x2f7c3f)=>Ye(_0xb70c86,typeof _0x2c9c7c!=_0x2a4e56(0x178)?_0x2c9c7c+'':_0x2c9c7c,_0x2f7c3f);const Ze='UNIVER_LIVE_SHARE_PLUGIN';function _0x211d(_0xadec2a,_0x440940){var _0x1f6a3e=_0x1f6a();return _0x211d=function(_0x211da1,_0x4e81a0){_0x211da1=_0x211da1-0xd2;var _0x40559c=_0x1f6a3e[_0x211da1];return _0x40559c;},_0x211d(_0xadec2a,_0x440940);}let O=class extends _0x161583{constructor(_0x45c95a=T,_0x53a1ab,_0x478b64){var _0x9addb=_0x2a4e56;super(),this[_0x9addb(0x133)]=_0x45c95a,this[_0x9addb(0x105)]=_0x53a1ab,this[_0x9addb(0xf6)]=_0x478b64;const {..._0x3da5b0}=_0x40e342({},T,this[_0x9addb(0x133)]);this[_0x9addb(0xf6)][_0x9addb(0xeb)](Oe,_0x3da5b0);}[_0x2a4e56(0x11e)](){var _0x44a3b5=_0x2a4e56;_0x5d616d(this[_0x44a3b5(0x105)],_0x22fea7([[L],[I],[m],[b]],this['_config']['override'])),_0x973282(this[_0x44a3b5(0x105)],[[m]]);}['onRendered'](){_0x973282(this['_injector'],[[b]]);}};J(O,'type',_0x5e9f9d[_0x2a4e56(0x11f)]),J(O,_0x2a4e56(0x145),Ze),O=Be([_0x302346(_0x54e8f2),F(0x1,_0x28e2e2(_0x385dfc)),F(0x2,_0x5e7f31)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x271f(_0xec7ab0,_0x5f3971){var _0x409b5d=_0x409b();return _0x271f=function(_0x271f71,_0x36fe09){_0x271f71=_0x271f71-0x1b3;var _0x4e5acb=_0x409b5d[_0x271f71];return _0x4e5acb;},_0x271f(_0xec7ab0,_0x5f3971);}function _0x409b(){var _0x472923=['UniverCore','univer-mb-3\x20univer-w-full\x20univer-text-sm','useRef','BuiltInUIPart','stringify','attrs','includes','data','LiveShareController','entries','@univerjs/design','_config','DesktopLiveShareController','then','pluginName','stopPresenting','getMemberID','Injector','current','BehaviorSubject','offline','NOT_FOLLOWING','operations','UniverDesign','currentColor','icon','object','getUnitId','has','mutations','registerComponent','from','UniverSheets','Fragment','presenter','symbol','subscribe','children','Button','onStarting','_reporters','set','url(#$1','find','getInitialStates','UNIVER_SHEET','react/jsx-runtime','colorChannel1','amd','4364304FBWCoh','get','send','LIVESHARE_REQUEST_HOST','idSuffix','FOLLOWING','_commandDisposable','4267485AswUlv','getOwnPropertyDescriptor','idle','string','_init','delete','parseProtocolChangeset','useEffect','react','You\x27re\x20following\x20the\x20presenter','jsxs','jsx','defIds','DependentOn','getValue','event$','getOwnPropertySymbols','@univerjs-pro/collaboration-client','SetScrollOperation','clear','createElement','random','use','stopFollowing','0\x200\x2017\x2017','path','tag','Disposable','_handleOffline','React','NEW_CHANGESETS','10Dflvpf','_startLiveShareCoordinator','concat','SetZoomRatioOperation','sheet','setConfig','_univerInstanceService','prototype','indexOf','startFollowing','Dropdown','_startFollowing','CollaborationSessionService','@univerjs-pro/collaboration','defs','_collabSession','_startPresenting','getTypeOfUnitAdded$','SetWorksheetActiveOperation','IConfigService','ICommandService','UNIVER_LIVE_SHARE_PLUGIN','call','live-share.config','1869553awVqbV','mask','function','333IbeidG','UniverLiveSharePlugin','unitId','1101230IgBOTo','memberID','displayName','http://www.w3.org/2000/svg','reverse','UNIVER_UNKNOWN','following','touchDependencies','LiveShareService','next','asObservable','assign','disposeWithMe','rxjs/operators','LiveShare','replace','_beIdle','trim','substring','default','@univerjs/sheets-ui','button','_stopPresenting','shouldShareOperation','_injector','SAME_OPERATION_SHARE_INTERVAL','IDLE','_presenter','pipe','sessionStatus$','defineProperty','ONLINE','HEADER_MENU','UniverUi','Subject','LIVESHARE_OPERATION','registerDependencies','end','You\x27re\x20presenting\x20the\x20document','@univerjs/core','2264266KQAtmk','SessionStatus','type','useState','_status','UniverProCollaboration','toStringTag','RxDisposable','InsertSheetMutation','getTypeOfUnitDisposed$','UniverIcon','evenodd','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','useObservable','xlink:href','UniverProLiveShare','div','UniverCollaborationClientPlugin','registerInitialStateReporter','toDisposable','connectInjector','DisposableCollection','UniverSheetsUi','status$','onRendered','_uiPartsService','840548THtvIE','add','IUniverInstanceService','1em','hasOwnProperty','toString','_sharedOperations','PRESENTING','_liveShareService','@univerjs/ui','takeUntil','UniverProCollaborationClient','LiveShareIcon','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','_unitID','5030052AXFWGZ','length','CollaborationEvent','none','extend','Present\x20this\x20document','_fetchOperations','params','1YePhbA','parse','_configService','UniverInstanceType','_handleTerminate','fill','Inject','LIVESHARE_FETCH_OPERATIONS','forwardRef','presenting','not-following','init','_entities','You\x27are\x20offline.','override','clsx','_commandService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getLiveShareCoordinator','LIVESHARE_NEW_HOST','forEach','_handleOnline','You\x27re\x20not\x20following\x20the\x20presenter','dispose','executeCommand','OFFLINE','useDependency','tryStartPresenting','Start\x20following','_stopFollowing','LIVESHARE_TERMINATE','_handleNewChangeSets','_handleNewHost','_mountLiveShare','exports','LiveShareCoordinator','_handleOperation','dispose$','rxjs','map','className','OPERATION','registerSharedOperation','_status$'];_0x409b=function(){return _0x472923;};return _0x409b();}(function(_0x3cfff8,_0xf2639d){var _0x170fe6=_0x271f,_0x44325d=_0x3cfff8();while(!![]){try{var _0x4c44a0=parseInt(_0x170fe6(0x1c7))/0x1*(-parseInt(_0x170fe6(0x290))/0x2)+-parseInt(_0x170fe6(0x22b))/0x3+-parseInt(_0x170fe6(0x2aa))/0x4*(-parseInt(_0x170fe6(0x24a))/0x5)+-parseInt(_0x170fe6(0x1bf))/0x6+parseInt(_0x170fe6(0x262))/0x7+-parseInt(_0x170fe6(0x224))/0x8+-parseInt(_0x170fe6(0x265))/0x9*(-parseInt(_0x170fe6(0x268))/0xa);if(_0x4c44a0===_0xf2639d)break;else _0x44325d['push'](_0x44325d['shift']());}catch(_0x2137be){_0x44325d['push'](_0x44325d['shift']());}}}(_0x409b,0xc9064),function(_0x198581,_0xcd53e9){var _0x42a606=_0x271f;typeof exports==_0x42a606(0x20d)&&typeof module<'u'?_0xcd53e9(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define[_0x42a606(0x223)]?define([_0x42a606(0x1e9),_0x42a606(0x23c),_0x42a606(0x28f),'@univerjs/sheets',_0x42a606(0x27c),_0x42a606(0x1b9),_0x42a606(0x221),_0x42a606(0x1fd),_0x42a606(0x233),_0x42a606(0x257),'rxjs',_0x42a606(0x275)],_0xcd53e9):(_0x198581=typeof globalThis<'u'?globalThis:_0x198581||self,_0xcd53e9(_0x198581[_0x42a606(0x29f)]={},_0x198581[_0x42a606(0x1bb)],_0x198581[_0x42a606(0x1f3)],_0x198581[_0x42a606(0x213)],_0x198581[_0x42a606(0x2a6)],_0x198581[_0x42a606(0x289)],_0x198581[_0x42a606(0x248)],_0x198581[_0x42a606(0x20a)],_0x198581[_0x42a606(0x248)],_0x198581[_0x42a606(0x295)],_0x198581[_0x42a606(0x1ed)],_0x198581[_0x42a606(0x1ed)]['operators']));}(this,function(_0x2a034c,_0x44068f,_0x214637,_0x4c7348,_0xa60945,_0xced2db,_0x3a11cc,_0x93a8e2,_0x54d5d7,_0x497455,_0x507716,_0x1dafc4){'use strict';var _0x19a470=_0x271f;var _0x592d93=Object[_0x19a470(0x286)],_0x4b143c=(_0x2e3890,_0x4557e3,_0xe01256)=>_0x4557e3 in _0x2e3890?_0x592d93(_0x2e3890,_0x4557e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe01256}):_0x2e3890[_0x4557e3]=_0xe01256,_0x3863ad=(_0x515844,_0x5a8f4d,_0x466dd0)=>_0x4b143c(_0x515844,typeof _0x5a8f4d!=_0x19a470(0x216)?_0x5a8f4d+'':_0x5a8f4d,_0x466dd0);const _0x150d50=_0x19a470(0x261),_0x15fc2a={};class _0x416f9b extends _0x214637[_0x19a470(0x246)]{constructor(){var _0x342346=_0x19a470;super(...arguments),_0x3863ad(this,_0x342346(0x1b6),new Set()),_0x3863ad(this,_0x342346(0x21b),new Set());}[_0x19a470(0x1f1)](_0x583164){var _0x444e4e=_0x19a470;return this[_0x444e4e(0x1b6)][_0x444e4e(0x2ab)](_0x583164),_0x214637[_0x444e4e(0x2a3)](()=>this[_0x444e4e(0x1b6)][_0x444e4e(0x230)](_0x583164));}[_0x19a470(0x2a2)](_0x599c86){var _0x50c709=_0x19a470;return this[_0x50c709(0x21b)][_0x50c709(0x2ab)](_0x599c86),_0x214637[_0x50c709(0x2a3)](()=>this[_0x50c709(0x21b)][_0x50c709(0x230)](_0x599c86));}[_0x19a470(0x27f)](_0x3f0034){var _0x607b7d=_0x19a470;return this[_0x607b7d(0x1b6)][_0x607b7d(0x20f)](_0x3f0034);}[_0x19a470(0x21f)](_0x3784fe){var _0xe76eda=_0x19a470;return Array[_0xe76eda(0x212)](this['_reporters'])['map'](_0x345cdd=>_0x345cdd(_0x3784fe));}}var _0x523ffc=Object[_0x19a470(0x22c)],_0x184600=(_0x4d8a6f,_0x162f6a,_0xb96b95,_0x353a84)=>{var _0x3fe74a=_0x19a470;for(var _0x39f028=_0x353a84>0x1?void 0x0:_0x353a84?_0x523ffc(_0x162f6a,_0xb96b95):_0x162f6a,_0x358409=_0x4d8a6f[_0x3fe74a(0x1c0)]-0x1,_0x2e5c51;_0x358409>=0x0;_0x358409--)(_0x2e5c51=_0x4d8a6f[_0x358409])&&(_0x39f028=_0x2e5c51(_0x39f028)||_0x39f028);return _0x39f028;},_0x439602=(_0x196f63,_0x264d51)=>(_0x19eca2,_0x513f92)=>_0x264d51(_0x19eca2,_0x513f92,_0x196f63);let _0x2bf0a6=class extends _0x214637[_0x19a470(0x246)]{constructor(_0xda815d){var _0x144bbe=_0x19a470;super(),this[_0x144bbe(0x1b8)]=_0xda815d,this['_init']();}[_0x19a470(0x22f)](){var _0x4bbe28=_0x19a470;[_0xa60945[_0x4bbe28(0x24d)]['id'],_0xa60945[_0x4bbe28(0x23d)]['id'],_0x4c7348[_0x4bbe28(0x25c)]['id']]['forEach'](_0x3e2094=>{var _0x2014a5=_0x4bbe28;this[_0x2014a5(0x274)](this[_0x2014a5(0x1b8)][_0x2014a5(0x1f1)](_0x3e2094));});}};_0x2bf0a6=_0x184600([_0x439602(0x0,_0x214637[_0x19a470(0x1cd)](_0x416f9b))],_0x2bf0a6);var _0x2b2871=function(){var _0xeb0daf=_0x19a470;return _0x2b2871=Object[_0xeb0daf(0x273)]||function(_0xa3569){var _0x44bee1=_0xeb0daf;for(var _0x3ddc43,_0x116c39=0x1,_0x37008a=arguments[_0x44bee1(0x1c0)];_0x116c39<_0x37008a;_0x116c39++){_0x3ddc43=arguments[_0x116c39];for(var _0x1ff669 in _0x3ddc43)Object[_0x44bee1(0x251)]['hasOwnProperty']['call'](_0x3ddc43,_0x1ff669)&&(_0xa3569[_0x1ff669]=_0x3ddc43[_0x1ff669]);}return _0xa3569;},_0x2b2871['apply'](this,arguments);},_0x3fcd3e=function(_0x3918ac,_0x37c784){var _0x87d420=_0x19a470,_0x22a004={};for(var _0x400078 in _0x3918ac)Object['prototype'][_0x87d420(0x1b4)][_0x87d420(0x260)](_0x3918ac,_0x400078)&&_0x37c784[_0x87d420(0x252)](_0x400078)<0x0&&(_0x22a004[_0x400078]=_0x3918ac[_0x400078]);if(_0x3918ac!=null&&typeof Object[_0x87d420(0x23b)]==_0x87d420(0x264)){for(var _0x49aaad=0x0,_0x400078=Object[_0x87d420(0x23b)](_0x3918ac);_0x49aaad<_0x400078[_0x87d420(0x1c0)];_0x49aaad++)_0x37c784[_0x87d420(0x252)](_0x400078[_0x49aaad])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x87d420(0x260)](_0x3918ac,_0x400078[_0x49aaad])&&(_0x22a004[_0x400078[_0x49aaad]]=_0x3918ac[_0x400078[_0x49aaad]]);}return _0x22a004;},_0x53c23a=_0x54d5d7['forwardRef'](function(_0x554719,_0x1d68e7){var _0x535ac6=_0x19a470,_0xb661f6=_0x554719[_0x535ac6(0x20c)],_0xa0893c=_0x554719['id'],_0x20beff=_0x554719[_0x535ac6(0x1ef)],_0x453d64=_0x554719[_0x535ac6(0x1c3)],_0x361f25=_0x3fcd3e(_0x554719,[_0x535ac6(0x20c),'id','className','extend']),_0x597d0d='univerjs-icon\x20univerjs-icon-'['concat'](_0xa0893c,'\x20')['concat'](_0x20beff||'')[_0x535ac6(0x279)](),_0x569c2a=_0x54d5d7[_0x535ac6(0x1f5)]('_'[_0x535ac6(0x24c)](_0x1ac4ee()));return _0x238e1f(_0xb661f6,''[_0x535ac6(0x24c)](_0xa0893c),{'defIds':_0xb661f6[_0x535ac6(0x237)],'idSuffix':_0x569c2a[_0x535ac6(0x205)]},_0x2b2871({'ref':_0x1d68e7,'className':_0x597d0d},_0x361f25),_0x453d64);});function _0x238e1f(_0x4e52ea,_0x559919,_0x4836a8,_0x178105,_0x2185cc){var _0x2619df=_0x19a470;return _0x54d5d7['createElement'](_0x4e52ea[_0x2619df(0x245)],_0x2b2871(_0x2b2871({'key':_0x559919},_0x5e129e(_0x4e52ea,_0x4836a8,_0x2185cc)),_0x178105),(_0x3b86cc(_0x4e52ea,_0x4836a8)[_0x2619df(0x218)]||[])[_0x2619df(0x1ee)](function(_0x425c72,_0x48d925){var _0x49d344=_0x2619df;return _0x238e1f(_0x425c72,''[_0x49d344(0x24c)](_0x559919,'-')[_0x49d344(0x24c)](_0x4e52ea[_0x49d344(0x245)],'-')['concat'](_0x48d925),_0x4836a8,void 0x0,_0x2185cc);}));}function _0x5e129e(_0x140169,_0x159afb,_0x35baf0){var _0x19153d=_0x19a470,_0x2681aa=_0x2b2871({},_0x140169[_0x19153d(0x1f8)]);_0x35baf0!=null&&_0x35baf0['colorChannel1']&&_0x2681aa[_0x19153d(0x1cc)]===_0x19153d(0x222)&&(_0x2681aa[_0x19153d(0x1cc)]=_0x35baf0[_0x19153d(0x222)]),_0x140169[_0x19153d(0x245)]==='mask'&&_0x2681aa['id']&&(_0x2681aa['id']=_0x2681aa['id']+_0x159afb[_0x19153d(0x228)]),Object[_0x19153d(0x1fc)](_0x2681aa)['forEach'](function(_0x276463){var _0x1b6643=_0x19153d,_0x211e57=_0x276463[0x0],_0x3c9154=_0x276463[0x1];_0x211e57===_0x1b6643(0x263)&&typeof _0x3c9154=='string'&&(_0x2681aa[_0x211e57]=_0x3c9154['replace'](/url\(#(.*)\)/,'url(#$1'[_0x1b6643(0x24c)](_0x159afb[_0x1b6643(0x228)],')')));});var _0x27c4f3=_0x159afb[_0x19153d(0x237)];return!_0x27c4f3||_0x27c4f3[_0x19153d(0x1c0)]===0x0||(_0x140169[_0x19153d(0x245)]===_0x19153d(0x241)&&_0x2681aa[_0x19153d(0x29e)]&&(_0x2681aa['xlink:href']=_0x2681aa[_0x19153d(0x29e)]+_0x159afb['idSuffix']),Object['entries'](_0x2681aa)[_0x19153d(0x1db)](function(_0x5eeffa){var _0x53a28f=_0x19153d,_0x5be76d=_0x5eeffa[0x0],_0x5a167b=_0x5eeffa[0x1];typeof _0x5a167b==_0x53a28f(0x22e)&&(_0x2681aa[_0x5be76d]=_0x5a167b[_0x53a28f(0x277)](/url\(#(.*)\)/,_0x53a28f(0x21d)[_0x53a28f(0x24c)](_0x159afb[_0x53a28f(0x228)],')')));})),_0x2681aa;}function _0x3b86cc(_0x4a348d,_0x56781d){var _0x5dfd49=_0x19a470,_0x589728,_0x5d0924=_0x56781d[_0x5dfd49(0x237)];return!_0x5d0924||_0x5d0924[_0x5dfd49(0x1c0)]===0x0?_0x4a348d:_0x4a348d[_0x5dfd49(0x245)]===_0x5dfd49(0x258)&&(!((_0x589728=_0x4a348d['children'])===null||_0x589728===void 0x0)&&_0x589728[_0x5dfd49(0x1c0)])?_0x2b2871(_0x2b2871({},_0x4a348d),{'children':_0x4a348d[_0x5dfd49(0x218)][_0x5dfd49(0x1ee)](function(_0x5d10ba){var _0x306a12=_0x5dfd49;return typeof _0x5d10ba[_0x306a12(0x1f8)]['id']==_0x306a12(0x22e)&&_0x5d0924&&_0x5d0924[_0x306a12(0x1f9)](_0x5d10ba[_0x306a12(0x1f8)]['id'])?_0x2b2871(_0x2b2871({},_0x5d10ba),{'attrs':_0x2b2871(_0x2b2871({},_0x5d10ba[_0x306a12(0x1f8)]),{'id':_0x5d10ba[_0x306a12(0x1f8)]['id']+_0x56781d[_0x306a12(0x228)]})}):_0x5d10ba;})}):_0x4a348d;}function _0x1ac4ee(){var _0x309016=_0x19a470;return Math[_0x309016(0x240)]()[_0x309016(0x1b5)](0x24)[_0x309016(0x27a)](0x2,0x8);}_0x53c23a[_0x19a470(0x26a)]=_0x19a470(0x29a);var _0x14dcfc={'tag':'svg','attrs':{'xmlns':_0x19a470(0x26b),'fill':_0x19a470(0x1c2),'viewBox':_0x19a470(0x243),'width':_0x19a470(0x1b3),'height':_0x19a470(0x1b3)},'children':[{'tag':'path','attrs':{'fill':_0x19a470(0x20b),'d':_0x19a470(0x29c)}},{'tag':_0x19a470(0x244),'attrs':{'fill':_0x19a470(0x20b),'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':_0x19a470(0x29b),'clipRule':_0x19a470(0x29b)}}]},_0x1f6af7=_0x54d5d7[_0x19a470(0x1cf)](function(_0x361020,_0x3eb5dd){var _0x529868=_0x19a470;return _0x54d5d7[_0x529868(0x23f)](_0x53c23a,Object[_0x529868(0x273)]({},_0x361020,{'id':'live-share-icon','ref':_0x3eb5dd,'icon':_0x14dcfc}));});_0x1f6af7[_0x19a470(0x26a)]=_0x19a470(0x1bc);var _0x54bd61=Object[_0x19a470(0x22c)],_0x288c50=(_0x22b4d3,_0x39c544,_0x2c926a,_0x2937cb)=>{for(var _0x1cc17a=_0x2937cb>0x1?void 0x0:_0x2937cb?_0x54bd61(_0x39c544,_0x2c926a):_0x39c544,_0x400297=_0x22b4d3['length']-0x1,_0x420a1a;_0x400297>=0x0;_0x400297--)(_0x420a1a=_0x22b4d3[_0x400297])&&(_0x1cc17a=_0x420a1a(_0x1cc17a)||_0x1cc17a);return _0x1cc17a;},_0x3f9a81=(_0x3736ea,_0x26a46a)=>(_0x4c8564,_0x113961)=>_0x26a46a(_0x4c8564,_0x113961,_0x3736ea);_0x2a034c[_0x19a470(0x1fb)]=class extends _0x214637[_0x19a470(0x297)]{constructor(_0x45e3ff,_0x4ac657,_0x77aec2){var _0xb0c611=_0x19a470;super(),_0x3863ad(this,_0xb0c611(0x1d3),new Map()),(this['_univerInstanceService']=_0x45e3ff,this[_0xb0c611(0x280)]=_0x4ac657,this['_collabSessionService']=_0x77aec2,this[_0xb0c611(0x22f)]());}async[_0x19a470(0x1d9)](_0x1536ea){var _0x12dabe=_0x19a470;return this[_0x12dabe(0x1d3)]['has'](_0x1536ea)||await this[_0x12dabe(0x24b)](_0x1536ea),this['_entities'][_0x12dabe(0x225)](_0x1536ea);}[_0x19a470(0x22f)](){var _0x4290cc=_0x19a470;this[_0x4290cc(0x250)][_0x4290cc(0x25b)](_0x214637[_0x4290cc(0x1ca)][_0x4290cc(0x220)])[_0x4290cc(0x284)](_0x1dafc4[_0x4290cc(0x1ba)](this[_0x4290cc(0x1ec)]))[_0x4290cc(0x217)](async _0x293740=>{var _0x244da8=_0x4290cc;const _0x58bf6b=_0x293740[_0x244da8(0x20e)]();this['_entities'][_0x244da8(0x20f)](_0x58bf6b)||this[_0x244da8(0x24b)](_0x58bf6b);}),this[_0x4290cc(0x250)][_0x4290cc(0x299)](_0x214637['UniverInstanceType'][_0x4290cc(0x220)])['pipe'](_0x1dafc4[_0x4290cc(0x1ba)](this[_0x4290cc(0x1ec)]))[_0x4290cc(0x217)](_0x34aa58=>{var _0x49cd5=_0x4290cc;const _0x36c5d2=_0x34aa58[_0x49cd5(0x20e)](),_0x2dc3b0=this[_0x49cd5(0x1d3)]['get'](_0x36c5d2);_0x2dc3b0==null||_0x2dc3b0['dispose']();});}async['_startLiveShareCoordinator'](_0x3f2977){var _0x42bc27=_0x19a470;const _0x21d3c1=await this['_collabSessionService']['requireSession'](_0x3f2977),_0x21bfe5=this['_injector']['createInstance'](_0x2a034c[_0x42bc27(0x1ea)],_0x3f2977,_0x21d3c1);return _0x21bfe5[_0x42bc27(0x1d2)](),this[_0x42bc27(0x1d3)]['set'](_0x3f2977,_0x21bfe5),_0x21bfe5;}},_0x2a034c[_0x19a470(0x1fb)]=_0x288c50([_0x3f9a81(0x0,_0x214637[_0x19a470(0x2ac)]),_0x3f9a81(0x1,_0x214637[_0x19a470(0x1cd)](_0x214637[_0x19a470(0x204)])),_0x3f9a81(0x2,_0x214637['Inject'](_0x44068f[_0x19a470(0x256)]))],_0x2a034c['LiveShareController']);var _0x46fa92=(_0x5b529d=>(_0x5b529d['OFFLINE']=_0x19a470(0x207),_0x5b529d[_0x19a470(0x282)]=_0x19a470(0x22d),_0x5b529d['FOLLOWING']=_0x19a470(0x26e),_0x5b529d[_0x19a470(0x208)]=_0x19a470(0x1d1),_0x5b529d[_0x19a470(0x1b7)]=_0x19a470(0x1d0),_0x5b529d))(_0x46fa92||{});const _0x15d201=_0x19a470(0x281),_0x2494e7=0xc8;_0x2a034c[_0x19a470(0x1ea)]=class extends _0x214637['RxDisposable']{constructor(_0x33f9b1,_0x3cb7f1,_0x1cf47c,_0x42d835,_0x2aa2a4){var _0x119ab9=_0x19a470;super(),_0x3863ad(this,'_status$',new _0x507716[(_0x119ab9(0x206))](_0x119ab9(0x22d))),_0x3863ad(this,_0x119ab9(0x2a7),this[_0x119ab9(0x1f2)][_0x119ab9(0x272)]()),_0x3863ad(this,'_init',!0x1),_0x3863ad(this,_0x119ab9(0x22a),null),_0x3863ad(this,_0x119ab9(0x283),null),(this[_0x119ab9(0x1be)]=_0x33f9b1,this[_0x119ab9(0x259)]=_0x3cb7f1,this[_0x119ab9(0x1c9)]=_0x1cf47c,this['_liveShareService']=_0x42d835,this['_commandService']=_0x2aa2a4);}get[_0x19a470(0x294)](){var _0x3b0e83=_0x19a470;return this[_0x3b0e83(0x1f2)][_0x3b0e83(0x239)]();}['dispose'](){var _0x2a7684=_0x19a470,_0x4f7e5c;(_0x4f7e5c=this['_commandDisposable'])==null||_0x4f7e5c[_0x2a7684(0x1de)](),this[_0x2a7684(0x1f2)][_0x2a7684(0x271)](_0x2a7684(0x22d)),this[_0x2a7684(0x1f2)]['complete']();}['init'](){var _0x5405df=_0x19a470;this[_0x5405df(0x22f)]||(this[_0x5405df(0x22f)]=!0x0,this[_0x5405df(0x259)][_0x5405df(0x285)][_0x5405df(0x284)](_0x1dafc4['takeUntil'](this[_0x5405df(0x1ec)]))[_0x5405df(0x217)](_0x340657=>{var _0x4f5cc5=_0x5405df;switch(_0x340657){case _0x44068f[_0x4f5cc5(0x291)][_0x4f5cc5(0x1e0)]:this[_0x4f5cc5(0x247)]();break;case _0x44068f[_0x4f5cc5(0x291)][_0x4f5cc5(0x287)]:this['_handleOnline']();break;}}),this[_0x5405df(0x259)][_0x5405df(0x23a)][_0x5405df(0x284)](_0x1dafc4[_0x5405df(0x1ba)](this['dispose$']))['subscribe'](_0x418bf7=>{var _0x4227aa=_0x5405df;const {eventID:_0x4cd97a}=_0x418bf7;switch(_0x4cd97a){case _0x497455[_0x4227aa(0x1c1)][_0x4227aa(0x1da)]:this[_0x4227aa(0x1e7)](_0x418bf7);break;case _0x497455[_0x4227aa(0x1c1)][_0x4227aa(0x28b)]:this[_0x4227aa(0x1eb)](_0x418bf7);break;case _0x497455[_0x4227aa(0x1c1)][_0x4227aa(0x1e5)]:this[_0x4227aa(0x1cb)]();break;case _0x497455[_0x4227aa(0x1c1)][_0x4227aa(0x249)]:this[_0x4227aa(0x1e6)](_0x418bf7);break;}}));}[_0x19a470(0x1e2)](){var _0x3dabf2=_0x19a470;this['_collabSession'][_0x3dabf2(0x226)]({'eventID':_0x497455[_0x3dabf2(0x1c1)][_0x3dabf2(0x227)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x3dabf2(0x1be)]);}[_0x19a470(0x202)](){var _0x56bb94=_0x19a470;this[_0x56bb94(0x294)]===_0x56bb94(0x1d0)&&(this[_0x56bb94(0x1f2)][_0x56bb94(0x271)]('idle'),this[_0x56bb94(0x259)][_0x56bb94(0x226)]({'eventID':_0x497455[_0x56bb94(0x1c1)][_0x56bb94(0x1e5)],'data':{'unitID':this[_0x56bb94(0x1be)]}},this[_0x56bb94(0x1be)]));}[_0x19a470(0x253)](){var _0x4ef722=_0x19a470;this['_status']===_0x4ef722(0x1d1)&&(this[_0x4ef722(0x1f2)][_0x4ef722(0x271)](_0x4ef722(0x26e)),this[_0x4ef722(0x255)]());}[_0x19a470(0x242)](){var _0x40cee7=_0x19a470;this[_0x40cee7(0x294)]==='following'&&this[_0x40cee7(0x1e4)]();}['_handleNewHost'](_0x49bdd7){var _0x5a2ed9=_0x19a470;const {presenter:_0x2d215b}=_0x49bdd7['data'],_0x4bdeb0=this[_0x5a2ed9(0x259)][_0x5a2ed9(0x203)]();this['_presenter']=_0x2d215b,_0x2d215b===_0x4bdeb0?(this[_0x5a2ed9(0x1e4)](),this[_0x5a2ed9(0x25a)]()):this[_0x5a2ed9(0x294)]!=='not-following'&&(this[_0x5a2ed9(0x27e)](),this['_startFollowing']());}[_0x19a470(0x1c5)](){var _0x40e35f=_0x19a470;const _0x1864bd={'eventID':_0x497455['CollaborationEvent'][_0x40e35f(0x1ce)]};this['_collabSession'][_0x40e35f(0x226)](_0x1864bd,this['_unitID']);}[_0x19a470(0x1cb)](){var _0x258760=_0x19a470;this[_0x258760(0x283)]=null,this['_status']!==_0x258760(0x1d0)&&this[_0x258760(0x278)]();}[_0x19a470(0x1e6)](_0x2aeb5a){var _0x562658=_0x19a470;if(this[_0x562658(0x294)]===_0x562658(0x26e)&&this[_0x562658(0x283)]===_0x2aeb5a[_0x562658(0x1fa)][_0x562658(0x269)]){const _0x21b5bd=_0x497455[_0x562658(0x231)](_0x2aeb5a[_0x562658(0x1fa)])[_0x562658(0x210)][_0x562658(0x26c)]()[_0x562658(0x21e)](_0x287b06=>_0x287b06['id']===_0x4c7348[_0x562658(0x298)]['id']);if(_0x21b5bd){const _0x55afa8=_0x21b5bd[_0x562658(0x1c6)][_0x562658(0x267)],_0x10543a=_0x21b5bd[_0x562658(0x1c6)][_0x562658(0x24e)]['id'];setTimeout(()=>{var _0x1192fd=_0x562658;this[_0x1192fd(0x1d7)][_0x1192fd(0x1df)](_0x4c7348[_0x1192fd(0x25c)]['id'],{'unitId':_0x55afa8,'subUnitId':_0x10543a},{'fromCollab':!0x0});});}}}[_0x19a470(0x25a)](){var _0x52ab71=_0x19a470;this['_status$'][_0x52ab71(0x271)](_0x52ab71(0x1d0));const _0x323dc0=new Map(),_0x51d3b3=this[_0x52ab71(0x22a)]=new _0x214637[(_0x52ab71(0x2a5))]();_0x51d3b3[_0x52ab71(0x2ab)](_0x214637[_0x52ab71(0x2a3)](()=>{var _0x20f871=_0x52ab71;_0x323dc0['forEach'](_0x1321a3=>_0x1321a3['complete']()),_0x323dc0[_0x20f871(0x23e)]();})),_0x51d3b3[_0x52ab71(0x2ab)](this['_commandService']['onCommandExecuted'](_0x44b01b=>{var _0x1d0fbc=_0x52ab71,_0x593d72;if(_0x44b01b['type']!==_0x214637['CommandType'][_0x1d0fbc(0x1f0)]||!this[_0x1d0fbc(0x1b8)][_0x1d0fbc(0x27f)](_0x44b01b['id']))return;const {id:_0x45f93d}=_0x44b01b;let _0x263ae1;_0x323dc0['has'](_0x45f93d)?_0x263ae1=_0x323dc0[_0x1d0fbc(0x225)](_0x45f93d):(_0x263ae1=new _0x507716[(_0x1d0fbc(0x28a))](),_0x323dc0[_0x1d0fbc(0x21c)](_0x45f93d,_0x263ae1),_0x263ae1[_0x1d0fbc(0x284)](_0x1dafc4['throttleTime']((_0x593d72=this[_0x1d0fbc(0x1c9)]['getConfig'](_0x15d201))!=null?_0x593d72:_0x2494e7,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1d0fbc(0x217)](_0x3c4765=>{var _0x5e236e=_0x1d0fbc;this['_collabSession'][_0x5e236e(0x226)]({'eventID':_0x497455[_0x5e236e(0x1c1)][_0x5e236e(0x28b)],'data':{'unitID':this[_0x5e236e(0x1be)],'operations':{[_0x3c4765['id']]:{'id':_0x3c4765['id'],'params':JSON[_0x5e236e(0x1f7)](_0x3c4765[_0x5e236e(0x1c6)])}}}},this[_0x5e236e(0x1be)]);})),_0x263ae1[_0x1d0fbc(0x271)](_0x44b01b);})),this[_0x52ab71(0x1b8)][_0x52ab71(0x21f)](this[_0x52ab71(0x1be)])['forEach'](_0x29d164=>this[_0x52ab71(0x259)]['send']({'eventID':_0x497455[_0x52ab71(0x1c1)][_0x52ab71(0x28b)],'data':{'unitID':this[_0x52ab71(0x1be)],'operations':{[_0x29d164['id']]:{'id':_0x29d164['id'],'params':JSON[_0x52ab71(0x1f7)](_0x29d164[_0x52ab71(0x1c6)])}}}},this['_unitID']));}[_0x19a470(0x27e)](){var _0x3ccd92=_0x19a470,_0x48aacb;this[_0x3ccd92(0x1f2)][_0x3ccd92(0x271)]('idle'),(_0x48aacb=this[_0x3ccd92(0x22a)])==null||_0x48aacb[_0x3ccd92(0x1de)](),this['_commandDisposable']=null;}[_0x19a470(0x255)](){var _0x793006=_0x19a470,_0xd566f1;(_0xd566f1=this[_0x793006(0x22a)])==null||_0xd566f1['dispose'](),this[_0x793006(0x1f2)][_0x793006(0x271)](_0x793006(0x26e));}[_0x19a470(0x278)](){var _0x241543=_0x19a470,_0x308500;this[_0x241543(0x1f2)][_0x241543(0x271)](_0x241543(0x22d)),(_0x308500=this[_0x241543(0x22a)])==null||_0x308500[_0x241543(0x1de)](),this[_0x241543(0x22a)]=null;}[_0x19a470(0x1e4)](){var _0x44a5cb=_0x19a470,_0x20d647;this[_0x44a5cb(0x1f2)][_0x44a5cb(0x271)]('not-following'),(_0x20d647=this[_0x44a5cb(0x22a)])==null||_0x20d647[_0x44a5cb(0x1de)]();}[_0x19a470(0x1eb)](_0x3770ab){var _0x20d5c6=_0x19a470;if([_0x20d5c6(0x1d0),_0x20d5c6(0x1d1),_0x20d5c6(0x207)][_0x20d5c6(0x1f9)](this[_0x20d5c6(0x294)])||!_0x3770ab['data'][_0x20d5c6(0x215)]||_0x3770ab[_0x20d5c6(0x1fa)]['presenter']===this['_collabSession'][_0x20d5c6(0x203)]())return;this[_0x20d5c6(0x294)]===_0x20d5c6(0x22d)&&this['_startFollowing']();const _0x2c9371=_0x3770ab[_0x20d5c6(0x1fa)][_0x20d5c6(0x209)];Object['values'](_0x2c9371)[_0x20d5c6(0x1db)](_0x2c1286=>{var _0x18a69d=_0x20d5c6;this['_commandService'][_0x18a69d(0x1df)](_0x2c1286['id'],_0x2c1286[_0x18a69d(0x1c6)]?JSON[_0x18a69d(0x1c8)](_0x2c1286[_0x18a69d(0x1c6)]):null,{'fromCollab':!0x0});});}[_0x19a470(0x247)](){var _0x9ccdbc=_0x19a470,_0x110218;this['_status$'][_0x9ccdbc(0x271)](_0x9ccdbc(0x207)),(_0x110218=this[_0x9ccdbc(0x22a)])==null||_0x110218['dispose']();}[_0x19a470(0x1dc)](){var _0x322c29=_0x19a470;this[_0x322c29(0x1f2)][_0x322c29(0x271)](_0x322c29(0x22d)),this[_0x322c29(0x1c5)]();}},_0x2a034c[_0x19a470(0x1ea)]=_0x288c50([_0x3f9a81(0x2,_0x214637['IConfigService']),_0x3f9a81(0x3,_0x214637[_0x19a470(0x1cd)](_0x416f9b)),_0x3f9a81(0x4,_0x214637[_0x19a470(0x25e)])],_0x2a034c['LiveShareCoordinator']);function _0x17fa9e(){var _0xce4442=_0x19a470;const _0x422718=_0xced2db[_0xce4442(0x1e1)](_0x2a034c[_0xce4442(0x1fb)]),_0x2ef103=_0xced2db[_0xce4442(0x1e1)](_0x214637[_0xce4442(0x2ac)]),_0x5e662f=_0xced2db[_0xce4442(0x29d)](()=>_0x2ef103['getCurrentTypeOfUnit$'](_0x214637[_0xce4442(0x1ca)][_0xce4442(0x220)]),void 0x0,!0x1,[]),[_0x33bcc4,_0x1a144b]=_0x54d5d7[_0xce4442(0x293)](null),[_0x2eb338,_0x55e19d]=_0x54d5d7[_0xce4442(0x293)](_0x46fa92[_0xce4442(0x282)]),_0x1e43ec=_0x54d5d7[_0xce4442(0x1f5)](null);return _0x54d5d7[_0xce4442(0x232)](()=>(_0x5e662f&&_0x422718['getLiveShareCoordinator'](_0x5e662f['getUnitId']())[_0xce4442(0x200)](_0xc29e42=>{var _0xf457b2=_0xce4442;_0x1a144b(_0xc29e42),_0x1e43ec[_0xf457b2(0x205)]=_0xc29e42[_0xf457b2(0x2a7)]['subscribe'](_0x19c5c=>{_0x55e19d(_0x19c5c);});}),()=>{var _0x5b0050=_0xce4442,_0x1731f5;(_0x1731f5=_0x1e43ec['current'])==null||_0x1731f5['unsubscribe'](),_0x1e43ec[_0x5b0050(0x205)]=null;}),[_0x5e662f,_0x422718]),_0x33bcc4?_0x3a11cc[_0xce4442(0x236)](_0x93a8e2[_0xce4442(0x254)],{'align':_0xce4442(0x28d),'disabled':_0x2eb338===_0x46fa92[_0xce4442(0x1e0)],'className':_0xce4442(0x1bd),'overlay':_0x3a11cc[_0xce4442(0x236)](_0x19438c,{'status':_0x2eb338,'coordinator':_0x33bcc4}),'children':_0x3a11cc[_0xce4442(0x236)]('button',{'className':_0x93a8e2[_0xce4442(0x1d6)](_0xce4442(0x1d8),{'univer-cursor-not-allowed':_0x2eb338===_0x46fa92[_0xce4442(0x1e0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2eb338!==_0x46fa92[_0xce4442(0x1e0)]}),'type':_0xce4442(0x27d),'children':_0x3a11cc[_0xce4442(0x236)](_0x1f6af7,{'className':'univer-size-4'})})}):null;}function _0x19438c(_0x476bdb){var _0x3d88ba=_0x19a470;const {status:_0x3d64a4,coordinator:_0x4b559d}=_0x476bdb;switch(_0x3d64a4){case _0x46fa92[_0x3d88ba(0x282)]:return _0x3a11cc[_0x3d88ba(0x236)](_0x2ee184,{'coordinator':_0x4b559d});case _0x46fa92[_0x3d88ba(0x229)]:return _0x3a11cc[_0x3d88ba(0x236)](_0xd05273,{'coordinator':_0x4b559d});case _0x46fa92[_0x3d88ba(0x208)]:return _0x3a11cc[_0x3d88ba(0x236)](_0x5203e0,{'coordinator':_0x4b559d});case _0x46fa92[_0x3d88ba(0x1e0)]:return _0x3a11cc[_0x3d88ba(0x236)](_0x41a0b3,{});case _0x46fa92[_0x3d88ba(0x1b7)]:return _0x3a11cc[_0x3d88ba(0x236)](_0x210262,{'coordinator':_0x4b559d});default:return null;}}function _0x2ee184(_0x219f03){var _0x5f4fd5=_0x19a470;const {coordinator:_0x2e5a71}=_0x219f03;return _0x3a11cc['jsxs'](_0x3a11cc[_0x5f4fd5(0x214)],{'children':[_0x3a11cc[_0x5f4fd5(0x236)](_0x5f4fd5(0x2a0),{'className':_0x5f4fd5(0x1f4),'children':_0x5f4fd5(0x1c4)}),_0x3a11cc[_0x5f4fd5(0x236)](_0x93a8e2['Button'],{'onClick':()=>_0x2e5a71[_0x5f4fd5(0x1e2)](),'children':'Start'})]});}function _0xd05273(_0x278222){var _0x5e4ea7=_0x19a470;const {coordinator:_0x3912c8}=_0x278222;return _0x3a11cc[_0x5e4ea7(0x235)](_0x3a11cc[_0x5e4ea7(0x214)],{'children':[_0x3a11cc[_0x5e4ea7(0x236)]('div',{'className':_0x5e4ea7(0x1f4),'children':_0x5e4ea7(0x234)}),_0x3a11cc[_0x5e4ea7(0x236)](_0x93a8e2[_0x5e4ea7(0x219)],{'onClick':()=>_0x3912c8[_0x5e4ea7(0x242)](),'children':'Stop\x20following'})]});}function _0x5203e0(_0x37c9ec){var _0x1be7c6=_0x19a470;const {coordinator:_0x1d2a86}=_0x37c9ec;return _0x3a11cc[_0x1be7c6(0x235)](_0x3a11cc['Fragment'],{'children':[_0x3a11cc[_0x1be7c6(0x236)](_0x1be7c6(0x2a0),{'className':_0x1be7c6(0x1f4),'children':_0x1be7c6(0x1dd)}),_0x3a11cc[_0x1be7c6(0x236)](_0x93a8e2[_0x1be7c6(0x219)],{'variant':'text','onClick':()=>_0x1d2a86[_0x1be7c6(0x253)](),'children':_0x1be7c6(0x1e3)})]});}function _0x210262(_0x5de77a){var _0x233c83=_0x19a470;const {coordinator:_0x22b09a}=_0x5de77a;return _0x3a11cc['jsxs'](_0x3a11cc[_0x233c83(0x214)],{'children':[_0x3a11cc['jsx']('div',{'className':_0x233c83(0x1f4),'children':_0x233c83(0x28e)}),_0x3a11cc['jsx'](_0x93a8e2[_0x233c83(0x219)],{'variant':_0x233c83(0x27b),'onClick':()=>_0x22b09a[_0x233c83(0x202)](),'children':'Stop\x20presenting'})]});}function _0x41a0b3(){var _0x445ccb=_0x19a470;return _0x3a11cc['jsx'](_0x3a11cc[_0x445ccb(0x214)],{'children':_0x445ccb(0x1d4)});}var _0x130ea4=Object[_0x19a470(0x22c)],_0x36ed6d=(_0x1d533c,_0x1f1c23,_0x1e162b,_0x55bee6)=>{var _0x1a97b8=_0x19a470;for(var _0x4cd539=_0x55bee6>0x1?void 0x0:_0x55bee6?_0x130ea4(_0x1f1c23,_0x1e162b):_0x1f1c23,_0x118bb2=_0x1d533c[_0x1a97b8(0x1c0)]-0x1,_0x4767a2;_0x118bb2>=0x0;_0x118bb2--)(_0x4767a2=_0x1d533c[_0x118bb2])&&(_0x4cd539=_0x4767a2(_0x4cd539)||_0x4cd539);return _0x4cd539;},_0x4df61b=(_0x5cd0c9,_0x38db96)=>(_0x49e184,_0x2897e0)=>_0x38db96(_0x49e184,_0x2897e0,_0x5cd0c9);_0x2a034c['DesktopLiveShareController']=class extends _0x214637[_0x19a470(0x246)]{constructor(_0x4b0362,_0x165b37){var _0x23481b=_0x19a470;super(),this[_0x23481b(0x280)]=_0x4b0362,this[_0x23481b(0x2a9)]=_0x165b37,this[_0x23481b(0x1e8)]();}[_0x19a470(0x1e8)](){var _0x5a3a33=_0x19a470;this[_0x5a3a33(0x274)](this['_uiPartsService'][_0x5a3a33(0x211)](_0xced2db[_0x5a3a33(0x1f6)][_0x5a3a33(0x288)],()=>_0xced2db[_0x5a3a33(0x2a4)](_0x17fa9e,this[_0x5a3a33(0x280)])));}},_0x2a034c[_0x19a470(0x1ff)]=_0x36ed6d([_0x4df61b(0x0,_0x214637[_0x19a470(0x1cd)](_0x214637[_0x19a470(0x204)])),_0x4df61b(0x1,_0xced2db['IUIPartsService'])],_0x2a034c[_0x19a470(0x1ff)]);var _0x5b6a16=Object[_0x19a470(0x286)],_0x9aa8e6=Object['getOwnPropertyDescriptor'],_0x5ea762=(_0x56dd2e,_0x343774,_0xdfcc07)=>_0x343774 in _0x56dd2e?_0x5b6a16(_0x56dd2e,_0x343774,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdfcc07}):_0x56dd2e[_0x343774]=_0xdfcc07,_0x163d3f=(_0x31cd24,_0x6807ca,_0x35d9ee,_0x4c3aa0)=>{for(var _0x4acc81=_0x4c3aa0>0x1?void 0x0:_0x4c3aa0?_0x9aa8e6(_0x6807ca,_0x35d9ee):_0x6807ca,_0x1a263b=_0x31cd24['length']-0x1,_0x92cfe6;_0x1a263b>=0x0;_0x1a263b--)(_0x92cfe6=_0x31cd24[_0x1a263b])&&(_0x4acc81=_0x92cfe6(_0x4acc81)||_0x4acc81);return _0x4acc81;},_0x30c8ea=(_0x106fb9,_0x45f9fa)=>(_0x30c0e0,_0x588d5b)=>_0x45f9fa(_0x30c0e0,_0x588d5b,_0x106fb9),_0x574b49=(_0x5f5c72,_0x1b97b5,_0x5c46a9)=>_0x5ea762(_0x5f5c72,typeof _0x1b97b5!='symbol'?_0x1b97b5+'':_0x1b97b5,_0x5c46a9);const _0x5d3860=_0x19a470(0x25f);_0x2a034c[_0x19a470(0x266)]=class extends _0x214637['Plugin']{constructor(_0x4d41=_0x15fc2a,_0x540fbb,_0x2bd65c){var _0x2201af=_0x19a470;super(),this['_config']=_0x4d41,this['_injector']=_0x540fbb,this[_0x2201af(0x1c9)]=_0x2bd65c;const {..._0x56a1b6}=_0x214637['merge']({},_0x15fc2a,this[_0x2201af(0x1fe)]);this[_0x2201af(0x1c9)][_0x2201af(0x24f)](_0x150d50,_0x56a1b6);}[_0x19a470(0x21a)](){var _0x1bbbfa=_0x19a470;_0x214637[_0x1bbbfa(0x28c)](this['_injector'],_0x214637['mergeOverrideWithDependencies']([[_0x416f9b],[_0x2a034c[_0x1bbbfa(0x1fb)]],[_0x2bf0a6],[_0x2a034c[_0x1bbbfa(0x1ff)]]],this[_0x1bbbfa(0x1fe)][_0x1bbbfa(0x1d5)])),_0x214637[_0x1bbbfa(0x26f)](this[_0x1bbbfa(0x280)],[[_0x2bf0a6]]);}[_0x19a470(0x2a8)](){var _0x5c406a=_0x19a470;_0x214637[_0x5c406a(0x26f)](this[_0x5c406a(0x280)],[[_0x2a034c[_0x5c406a(0x1ff)]]]);}},_0x574b49(_0x2a034c[_0x19a470(0x266)],_0x19a470(0x292),_0x214637[_0x19a470(0x1ca)][_0x19a470(0x26d)]),_0x574b49(_0x2a034c[_0x19a470(0x266)],_0x19a470(0x201),_0x5d3860),_0x2a034c[_0x19a470(0x266)]=_0x163d3f([_0x214637[_0x19a470(0x238)](_0x44068f[_0x19a470(0x2a1)]),_0x30c8ea(0x1,_0x214637[_0x19a470(0x1cd)](_0x214637['Injector'])),_0x30c8ea(0x2,_0x214637[_0x19a470(0x25d)])],_0x2a034c[_0x19a470(0x266)]),_0x2a034c[_0x19a470(0x276)]=_0x17fa9e,_0x2a034c[_0x19a470(0x270)]=_0x416f9b,_0x2a034c['LiveShareStatus']=_0x46fa92,Object[_0x19a470(0x286)](_0x2a034c,Symbol[_0x19a470(0x296)],{'value':'Module'});}));
1
+ function _0x25c1(_0x570170,_0x4c6668){var _0x5884be=_0x5884();return _0x25c1=function(_0x25c136,_0x584991){_0x25c136=_0x25c136-0xcb;var _0x3df003=_0x5884be[_0x25c136];return _0x3df003;},_0x25c1(_0x570170,_0x4c6668);}(function(_0x308d04,_0x1ddbcd){var _0x4a27d7=_0x25c1,_0x4717aa=_0x308d04();while(!![]){try{var _0x35620d=-parseInt(_0x4a27d7(0x192))/0x1*(-parseInt(_0x4a27d7(0x152))/0x2)+parseInt(_0x4a27d7(0x12b))/0x3*(parseInt(_0x4a27d7(0xd9))/0x4)+parseInt(_0x4a27d7(0x122))/0x5*(-parseInt(_0x4a27d7(0x1a1))/0x6)+parseInt(_0x4a27d7(0xef))/0x7*(-parseInt(_0x4a27d7(0x18b))/0x8)+-parseInt(_0x4a27d7(0xeb))/0x9+parseInt(_0x4a27d7(0xfc))/0xa*(parseInt(_0x4a27d7(0x16e))/0xb)+-parseInt(_0x4a27d7(0x1ad))/0xc;if(_0x35620d===_0x1ddbcd)break;else _0x4717aa['push'](_0x4717aa['shift']());}catch(_0x14aa68){_0x4717aa['push'](_0x4717aa['shift']());}}}(_0x5884,0x45bcd),function(_0x29eab6,_0x95fded){var _0x5d3823=_0x25c1;typeof exports==_0x5d3823(0x1c1)&&typeof module<'u'?_0x95fded(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x5d3823(0x1bd)&&define['amd']?define([_0x5d3823(0x18d),_0x5d3823(0x1c3),'@univerjs/core',_0x5d3823(0x1a4),_0x5d3823(0x160),'@univerjs/ui','react/jsx-runtime',_0x5d3823(0x19f),_0x5d3823(0x106),'@univerjs-pro/collaboration','rxjs',_0x5d3823(0xec)],_0x95fded):(_0x29eab6=typeof globalThis<'u'?globalThis:_0x29eab6||self,_0x95fded(_0x29eab6[_0x5d3823(0x175)]={},_0x29eab6[_0x5d3823(0x147)],_0x29eab6[_0x5d3823(0x13e)],_0x29eab6[_0x5d3823(0x104)],_0x29eab6[_0x5d3823(0xcf)],_0x29eab6['UniverUi'],_0x29eab6[_0x5d3823(0xd2)],_0x29eab6['UniverDesign'],_0x29eab6[_0x5d3823(0xd2)],_0x29eab6[_0x5d3823(0x17d)],_0x29eab6['rxjs'],_0x29eab6[_0x5d3823(0x150)]['operators']));}(this,function(_0x41b787,_0x22955f,_0x1372ac,_0x30590f,_0x4e6949,_0x37a08f,_0xa6b8b5,_0x5d3d18,_0x4099e9,_0x530582,_0x566dbf,_0x11da4a){'use strict';var _0x465fe6=_0x25c1;var _0x469dd2=Object[_0x465fe6(0x1b0)],_0x38d018=(_0x54a68f,_0x3e3df9,_0x268117)=>_0x3e3df9 in _0x54a68f?_0x469dd2(_0x54a68f,_0x3e3df9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x268117}):_0x54a68f[_0x3e3df9]=_0x268117,_0x52d66b=(_0x3c4658,_0x186a26,_0x253809)=>_0x38d018(_0x3c4658,typeof _0x186a26!='symbol'?_0x186a26+'':_0x186a26,_0x253809);const _0x2d026b=_0x465fe6(0x10a),_0x38e4a5={};class _0x1c3988 extends _0x1372ac['Disposable']{constructor(){var _0xd1c737=_0x465fe6;super(...arguments),_0x52d66b(this,_0xd1c737(0x10e),new Set()),_0x52d66b(this,_0xd1c737(0x1bb),new Set());}[_0x465fe6(0x149)](_0x18c6da){var _0x338acb=_0x465fe6;return this[_0x338acb(0x10e)]['add'](_0x18c6da),_0x1372ac[_0x338acb(0x158)](()=>this[_0x338acb(0x10e)][_0x338acb(0xe3)](_0x18c6da));}[_0x465fe6(0x100)](_0x53d880){var _0x5e9155=_0x465fe6;return this[_0x5e9155(0x1bb)][_0x5e9155(0x115)](_0x53d880),_0x1372ac[_0x5e9155(0x158)](()=>this[_0x5e9155(0x1bb)][_0x5e9155(0xe3)](_0x53d880));}[_0x465fe6(0x19d)](_0x117427){var _0x51eed6=_0x465fe6;return this['_sharedOperations'][_0x51eed6(0x154)](_0x117427);}['getInitialStates'](_0x2fe5ea){var _0x500c32=_0x465fe6;return Array[_0x500c32(0x16a)](this['_reporters'])[_0x500c32(0x195)](_0xb7c4f6=>_0xb7c4f6(_0x2fe5ea));}}var _0x158028=Object[_0x465fe6(0x178)],_0x2fd174=(_0x2d9534,_0x4617a3,_0xa6bf73,_0x3d3663)=>{for(var _0x545593=_0x3d3663>0x1?void 0x0:_0x3d3663?_0x158028(_0x4617a3,_0xa6bf73):_0x4617a3,_0x53e65f=_0x2d9534['length']-0x1,_0x2674c9;_0x53e65f>=0x0;_0x53e65f--)(_0x2674c9=_0x2d9534[_0x53e65f])&&(_0x545593=_0x2674c9(_0x545593)||_0x545593);return _0x545593;},_0x2cb2f6=(_0x1cf339,_0x1406f9)=>(_0x4e1968,_0x30d147)=>_0x1406f9(_0x4e1968,_0x30d147,_0x1cf339);let _0x17a852=class extends _0x1372ac[_0x465fe6(0x194)]{constructor(_0x41e394){var _0x433eeb=_0x465fe6;super(),this[_0x433eeb(0x16d)]=_0x41e394,this[_0x433eeb(0x196)]();}[_0x465fe6(0x196)](){var _0x49f3c9=_0x465fe6;[_0x4e6949[_0x49f3c9(0x13c)]['id'],_0x4e6949[_0x49f3c9(0x164)]['id'],_0x30590f[_0x49f3c9(0xfa)]['id']][_0x49f3c9(0xe4)](_0x47fc3e=>{var _0x4d2ac4=_0x49f3c9;this[_0x4d2ac4(0x12f)](this[_0x4d2ac4(0x16d)][_0x4d2ac4(0x149)](_0x47fc3e));});}};_0x17a852=_0x2fd174([_0x2cb2f6(0x0,_0x1372ac[_0x465fe6(0x155)](_0x1c3988))],_0x17a852);var _0x288ceb=function(){var _0x548a35=_0x465fe6;return _0x288ceb=Object[_0x548a35(0x12c)]||function(_0x4863d8){var _0x2f8942=_0x548a35;for(var _0x266cf6,_0x4e76e7=0x1,_0x3e5397=arguments[_0x2f8942(0x182)];_0x4e76e7<_0x3e5397;_0x4e76e7++){_0x266cf6=arguments[_0x4e76e7];for(var _0x26afce in _0x266cf6)Object[_0x2f8942(0xe7)][_0x2f8942(0x113)][_0x2f8942(0xf4)](_0x266cf6,_0x26afce)&&(_0x4863d8[_0x26afce]=_0x266cf6[_0x26afce]);}return _0x4863d8;},_0x288ceb[_0x548a35(0xf8)](this,arguments);},_0x3b1375=function(_0x2c0688,_0x8c3120){var _0x510f55=_0x465fe6,_0x42014c={};for(var _0xf5426d in _0x2c0688)Object[_0x510f55(0xe7)][_0x510f55(0x113)]['call'](_0x2c0688,_0xf5426d)&&_0x8c3120['indexOf'](_0xf5426d)<0x0&&(_0x42014c[_0xf5426d]=_0x2c0688[_0xf5426d]);if(_0x2c0688!=null&&typeof Object['getOwnPropertySymbols']==_0x510f55(0x1bd)){for(var _0x52a051=0x0,_0xf5426d=Object[_0x510f55(0xd5)](_0x2c0688);_0x52a051<_0xf5426d[_0x510f55(0x182)];_0x52a051++)_0x8c3120[_0x510f55(0x180)](_0xf5426d[_0x52a051])<0x0&&Object[_0x510f55(0xe7)]['propertyIsEnumerable'][_0x510f55(0xf4)](_0x2c0688,_0xf5426d[_0x52a051])&&(_0x42014c[_0xf5426d[_0x52a051]]=_0x2c0688[_0xf5426d[_0x52a051]]);}return _0x42014c;},_0x195814=_0x4099e9[_0x465fe6(0x123)](function(_0xa1bfbc,_0x1b2c84){var _0x3088ed=_0x465fe6,_0x14c600=_0xa1bfbc[_0x3088ed(0x1ae)],_0x14f4ad=_0xa1bfbc['id'],_0x3195d2=_0xa1bfbc[_0x3088ed(0x1b6)],_0x41fd5f=_0xa1bfbc[_0x3088ed(0x1be)],_0x28fd09=_0x3b1375(_0xa1bfbc,[_0x3088ed(0x1ae),'id',_0x3088ed(0x1b6),_0x3088ed(0x1be)]),_0x15415d=_0x3088ed(0xdc)[_0x3088ed(0x172)](_0x14f4ad,'\x20')[_0x3088ed(0x172)](_0x3195d2||'')[_0x3088ed(0x186)](),_0x213cf2=_0x4099e9[_0x3088ed(0xfd)]('_'[_0x3088ed(0x172)](_0x2789c7()));return _0x57e42e(_0x14c600,''[_0x3088ed(0x172)](_0x14f4ad),{'defIds':_0x14c600['defIds'],'idSuffix':_0x213cf2[_0x3088ed(0xff)]},_0x288ceb({'ref':_0x1b2c84,'className':_0x15415d},_0x28fd09),_0x41fd5f);});function _0x57e42e(_0x3c8c3a,_0x460bb4,_0x2102d3,_0x388b31,_0x5c52ca){var _0x2c7cf5=_0x465fe6;return _0x4099e9['createElement'](_0x3c8c3a[_0x2c7cf5(0x17f)],_0x288ceb(_0x288ceb({'key':_0x460bb4},_0x182a8b(_0x3c8c3a,_0x2102d3,_0x5c52ca)),_0x388b31),(_0x55a991(_0x3c8c3a,_0x2102d3)[_0x2c7cf5(0x187)]||[])[_0x2c7cf5(0x195)](function(_0x2ef426,_0x299faa){var _0x938710=_0x2c7cf5;return _0x57e42e(_0x2ef426,''[_0x938710(0x172)](_0x460bb4,'-')[_0x938710(0x172)](_0x3c8c3a[_0x938710(0x17f)],'-')[_0x938710(0x172)](_0x299faa),_0x2102d3,void 0x0,_0x5c52ca);}));}function _0x182a8b(_0x1ccca9,_0x4bd482,_0x10d531){var _0x410ebd=_0x465fe6,_0x31635c=_0x288ceb({},_0x1ccca9['attrs']);_0x10d531!=null&&_0x10d531[_0x410ebd(0x10d)]&&_0x31635c[_0x410ebd(0x1bf)]==='colorChannel1'&&(_0x31635c['fill']=_0x10d531[_0x410ebd(0x10d)]),_0x1ccca9[_0x410ebd(0x17f)]===_0x410ebd(0xe2)&&_0x31635c['id']&&(_0x31635c['id']=_0x31635c['id']+_0x4bd482['idSuffix']),Object[_0x410ebd(0x11f)](_0x31635c)[_0x410ebd(0xe4)](function(_0xc734e3){var _0x3cc60e=_0x410ebd,_0x49203a=_0xc734e3[0x0],_0x332b69=_0xc734e3[0x1];_0x49203a==='mask'&&typeof _0x332b69==_0x3cc60e(0x15d)&&(_0x31635c[_0x49203a]=_0x332b69[_0x3cc60e(0xfb)](/url\(#(.*)\)/,_0x3cc60e(0x102)[_0x3cc60e(0x172)](_0x4bd482[_0x3cc60e(0x161)],')')));});var _0x56090a=_0x4bd482[_0x410ebd(0x13a)];return!_0x56090a||_0x56090a[_0x410ebd(0x182)]===0x0||(_0x1ccca9[_0x410ebd(0x17f)]===_0x410ebd(0xf9)&&_0x31635c[_0x410ebd(0x157)]&&(_0x31635c['xlink:href']=_0x31635c['xlink:href']+_0x4bd482['idSuffix']),Object['entries'](_0x31635c)[_0x410ebd(0xe4)](function(_0x35e9c6){var _0xaf915f=_0x410ebd,_0x377d26=_0x35e9c6[0x0],_0x25a5de=_0x35e9c6[0x1];typeof _0x25a5de==_0xaf915f(0x15d)&&(_0x31635c[_0x377d26]=_0x25a5de[_0xaf915f(0xfb)](/url\(#(.*)\)/,_0xaf915f(0x102)[_0xaf915f(0x172)](_0x4bd482['idSuffix'],')')));})),_0x31635c;}function _0x55a991(_0x23d4c8,_0x5f34ce){var _0x2e2aab=_0x465fe6,_0x21115a,_0x414db9=_0x5f34ce[_0x2e2aab(0x13a)];return!_0x414db9||_0x414db9[_0x2e2aab(0x182)]===0x0?_0x23d4c8:_0x23d4c8[_0x2e2aab(0x17f)]===_0x2e2aab(0x136)&&(!((_0x21115a=_0x23d4c8[_0x2e2aab(0x187)])===null||_0x21115a===void 0x0)&&_0x21115a[_0x2e2aab(0x182)])?_0x288ceb(_0x288ceb({},_0x23d4c8),{'children':_0x23d4c8[_0x2e2aab(0x187)][_0x2e2aab(0x195)](function(_0x4e8285){var _0x1ab5c5=_0x2e2aab;return typeof _0x4e8285['attrs']['id']==_0x1ab5c5(0x15d)&&_0x414db9&&_0x414db9[_0x1ab5c5(0x1b2)](_0x4e8285[_0x1ab5c5(0x14a)]['id'])?_0x288ceb(_0x288ceb({},_0x4e8285),{'attrs':_0x288ceb(_0x288ceb({},_0x4e8285[_0x1ab5c5(0x14a)]),{'id':_0x4e8285[_0x1ab5c5(0x14a)]['id']+_0x5f34ce[_0x1ab5c5(0x161)]})}):_0x4e8285;})}):_0x23d4c8;}function _0x2789c7(){var _0x548076=_0x465fe6;return Math[_0x548076(0x1c0)]()[_0x548076(0x107)](0x24)[_0x548076(0x109)](0x2,0x8);}_0x195814[_0x465fe6(0x170)]=_0x465fe6(0x133);var _0x3e610c={'tag':'svg','attrs':{'xmlns':_0x465fe6(0x189),'fill':_0x465fe6(0x1a2),'viewBox':'0\x200\x2017\x2017','width':_0x465fe6(0x12e),'height':_0x465fe6(0x12e)},'children':[{'tag':_0x465fe6(0x112),'attrs':{'fill':_0x465fe6(0x163),'d':_0x465fe6(0x17a)}},{'tag':'path','attrs':{'fill':_0x465fe6(0x163),'d':_0x465fe6(0xf0),'fillRule':_0x465fe6(0x110),'clipRule':'evenodd'}}]},_0x455bc0=_0x4099e9[_0x465fe6(0x123)](function(_0x8fe111,_0x29e958){var _0x1eaaeb=_0x465fe6;return _0x4099e9[_0x1eaaeb(0x18f)](_0x195814,Object['assign']({},_0x8fe111,{'id':_0x1eaaeb(0x198),'ref':_0x29e958,'icon':_0x3e610c}));});_0x455bc0[_0x465fe6(0x170)]=_0x465fe6(0xf5);var _0x2af4c7=Object[_0x465fe6(0x178)],_0x4459f2=(_0x4eebff,_0x4a0f05,_0x292bd9,_0x4b6619)=>{var _0x3f9df9=_0x465fe6;for(var _0x9faca5=_0x4b6619>0x1?void 0x0:_0x4b6619?_0x2af4c7(_0x4a0f05,_0x292bd9):_0x4a0f05,_0x107cbc=_0x4eebff[_0x3f9df9(0x182)]-0x1,_0x14cc0d;_0x107cbc>=0x0;_0x107cbc--)(_0x14cc0d=_0x4eebff[_0x107cbc])&&(_0x9faca5=_0x14cc0d(_0x9faca5)||_0x9faca5);return _0x9faca5;},_0x4ab856=(_0x4bf517,_0x413fe3)=>(_0x36a439,_0x6734c1)=>_0x413fe3(_0x36a439,_0x6734c1,_0x4bf517);_0x41b787[_0x465fe6(0x168)]=class extends _0x1372ac[_0x465fe6(0x17e)]{constructor(_0x35a456,_0x1e854e,_0x41564c){var _0x53e029=_0x465fe6;super(),_0x52d66b(this,_0x53e029(0x101),new Map()),(this['_univerInstanceService']=_0x35a456,this['_injector']=_0x1e854e,this[_0x53e029(0xee)]=_0x41564c,this[_0x53e029(0x196)]());}async[_0x465fe6(0x151)](_0x5434c2){var _0x65ffe0=_0x465fe6;return this['_entities'][_0x65ffe0(0x154)](_0x5434c2)||await this['_startLiveShareCoordinator'](_0x5434c2),this['_entities']['get'](_0x5434c2);}['_init'](){var _0x4bd933=_0x465fe6;this[_0x4bd933(0x10f)][_0x4bd933(0xe8)](_0x1372ac[_0x4bd933(0xf7)][_0x4bd933(0xd3)])[_0x4bd933(0x119)](_0x11da4a[_0x4bd933(0x19e)](this[_0x4bd933(0x13f)]))[_0x4bd933(0x143)](async _0xd8632c=>{var _0xdbffa2=_0x4bd933;const _0x2cb541=_0xd8632c['getUnitId']();this[_0xdbffa2(0x101)][_0xdbffa2(0x154)](_0x2cb541)||this['_startLiveShareCoordinator'](_0x2cb541);}),this[_0x4bd933(0x10f)][_0x4bd933(0x167)](_0x1372ac[_0x4bd933(0xf7)]['UNIVER_SHEET'])['pipe'](_0x11da4a[_0x4bd933(0x19e)](this[_0x4bd933(0x13f)]))[_0x4bd933(0x143)](_0x4b9567=>{var _0x5d8bda=_0x4bd933;const _0x3d1ee3=_0x4b9567[_0x5d8bda(0x129)](),_0x48649c=this[_0x5d8bda(0x101)][_0x5d8bda(0x1b8)](_0x3d1ee3);_0x48649c==null||_0x48649c[_0x5d8bda(0x105)]();});}async['_startLiveShareCoordinator'](_0x4370f2){var _0x22ca21=_0x465fe6;const _0x13046b=await this[_0x22ca21(0xee)][_0x22ca21(0xdb)](_0x4370f2),_0x10e88a=this[_0x22ca21(0x199)][_0x22ca21(0x131)](_0x41b787[_0x22ca21(0x188)],_0x4370f2,_0x13046b);return _0x10e88a[_0x22ca21(0x145)](),this[_0x22ca21(0x101)][_0x22ca21(0x1aa)](_0x4370f2,_0x10e88a),_0x10e88a;}},_0x41b787[_0x465fe6(0x168)]=_0x4459f2([_0x4ab856(0x0,_0x1372ac[_0x465fe6(0xe5)]),_0x4ab856(0x1,_0x1372ac[_0x465fe6(0x155)](_0x1372ac['Injector'])),_0x4ab856(0x2,_0x1372ac[_0x465fe6(0x155)](_0x22955f[_0x465fe6(0xe9)]))],_0x41b787[_0x465fe6(0x168)]);var _0x304c9d=(_0x108575=>(_0x108575['OFFLINE']='offline',_0x108575[_0x465fe6(0x142)]=_0x465fe6(0xde),_0x108575['FOLLOWING']=_0x465fe6(0xf3),_0x108575[_0x465fe6(0x127)]='not-following',_0x108575[_0x465fe6(0x108)]=_0x465fe6(0x12a),_0x108575))(_0x304c9d||{});const _0x3f952c=_0x465fe6(0xd6),_0x4aae60=0xc8;_0x41b787[_0x465fe6(0x188)]=class extends _0x1372ac[_0x465fe6(0x17e)]{constructor(_0x283316,_0x41c8cf,_0xfba1aa,_0x330f5c,_0x3e85fc){var _0xb835bc=_0x465fe6;super(),_0x52d66b(this,_0xb835bc(0xd4),new _0x566dbf[(_0xb835bc(0x141))](_0xb835bc(0xde))),_0x52d66b(this,_0xb835bc(0x1c2),this[_0xb835bc(0xd4)][_0xb835bc(0x138)]()),_0x52d66b(this,_0xb835bc(0x196),!0x1),_0x52d66b(this,'_commandDisposable',null),_0x52d66b(this,_0xb835bc(0x153),null),(this[_0xb835bc(0x15b)]=_0x283316,this[_0xb835bc(0x197)]=_0x41c8cf,this[_0xb835bc(0x1b7)]=_0xfba1aa,this['_liveShareService']=_0x330f5c,this[_0xb835bc(0x165)]=_0x3e85fc);}get[_0x465fe6(0xd1)](){var _0x324726=_0x465fe6;return this['_status$'][_0x324726(0x15c)]();}['dispose'](){var _0x2775fa=_0x465fe6,_0x304843;(_0x304843=this[_0x2775fa(0x148)])==null||_0x304843[_0x2775fa(0x105)](),this['_status$']['next'](_0x2775fa(0xde)),this[_0x2775fa(0xd4)][_0x2775fa(0x13b)]();}[_0x465fe6(0x145)](){var _0x15e2e0=_0x465fe6;this[_0x15e2e0(0x196)]||(this[_0x15e2e0(0x196)]=!0x0,this[_0x15e2e0(0x197)][_0x15e2e0(0x191)][_0x15e2e0(0x119)](_0x11da4a[_0x15e2e0(0x19e)](this[_0x15e2e0(0x13f)]))[_0x15e2e0(0x143)](_0x262ce0=>{var _0x2115af=_0x15e2e0;switch(_0x262ce0){case _0x22955f['SessionStatus'][_0x2115af(0x184)]:this[_0x2115af(0x16b)]();break;case _0x22955f['SessionStatus'][_0x2115af(0x1a0)]:this['_handleOnline']();break;}}),this[_0x15e2e0(0x197)][_0x15e2e0(0x14d)]['pipe'](_0x11da4a[_0x15e2e0(0x19e)](this[_0x15e2e0(0x13f)]))[_0x15e2e0(0x143)](_0x6fed4c=>{var _0x42ed84=_0x15e2e0;const {eventID:_0x508e6a}=_0x6fed4c;switch(_0x508e6a){case _0x530582[_0x42ed84(0xd0)][_0x42ed84(0x15f)]:this['_handleNewHost'](_0x6fed4c);break;case _0x530582['CollaborationEvent'][_0x42ed84(0x159)]:this[_0x42ed84(0x140)](_0x6fed4c);break;case _0x530582[_0x42ed84(0xd0)][_0x42ed84(0xdf)]:this[_0x42ed84(0x121)]();break;case _0x530582[_0x42ed84(0xd0)][_0x42ed84(0x1a8)]:this[_0x42ed84(0x177)](_0x6fed4c);break;}}));}[_0x465fe6(0x130)](){var _0x524f25=_0x465fe6;this[_0x524f25(0x197)][_0x524f25(0x114)]({'eventID':_0x530582['CollaborationEvent'][_0x524f25(0x1a9)],'data':{'unitID':this['_unitID'],'userID':this[_0x524f25(0x197)][_0x524f25(0x135)]()}},this[_0x524f25(0x15b)]);}[_0x465fe6(0x14c)](){var _0x9c349d=_0x465fe6;this[_0x9c349d(0xd1)]===_0x9c349d(0x12a)&&(this[_0x9c349d(0xd4)]['next'](_0x9c349d(0xde)),this[_0x9c349d(0x197)][_0x9c349d(0x114)]({'eventID':_0x530582[_0x9c349d(0xd0)][_0x9c349d(0xdf)],'data':{'unitID':this[_0x9c349d(0x15b)]}},this[_0x9c349d(0x15b)]));}['startFollowing'](){var _0xd8589d=_0x465fe6;this[_0xd8589d(0xd1)]===_0xd8589d(0x18e)&&(this[_0xd8589d(0xd4)][_0xd8589d(0x10b)](_0xd8589d(0xf3)),this['_startFollowing']());}[_0x465fe6(0x1bc)](){var _0x3b7854=_0x465fe6;this['_status']===_0x3b7854(0xf3)&&this[_0x3b7854(0x18a)]();}[_0x465fe6(0xda)](_0x3096b9){var _0x4ef506=_0x465fe6;const {presenter:_0x5cd318}=_0x3096b9[_0x4ef506(0x181)],_0x387f6e=this[_0x4ef506(0x197)]['getMemberID']();this[_0x4ef506(0x153)]=_0x5cd318,_0x5cd318===_0x387f6e?(this[_0x4ef506(0x18a)](),this['_startPresenting']()):this[_0x4ef506(0xd1)]!==_0x4ef506(0x18e)&&(this[_0x4ef506(0x193)](),this[_0x4ef506(0x126)]());}[_0x465fe6(0x176)](){var _0x55ebc6=_0x465fe6;const _0x17f819={'eventID':_0x530582[_0x55ebc6(0xd0)][_0x55ebc6(0x1ab)]};this[_0x55ebc6(0x197)][_0x55ebc6(0x114)](_0x17f819,this[_0x55ebc6(0x15b)]);}[_0x465fe6(0x121)](){var _0x1c78f3=_0x465fe6;this['_presenter']=null,this[_0x1c78f3(0xd1)]!=='presenting'&&this[_0x1c78f3(0x17b)]();}[_0x465fe6(0x177)](_0x5f107d){var _0x1c9497=_0x465fe6;if(this[_0x1c9497(0xd1)]===_0x1c9497(0xf3)&&this[_0x1c9497(0x153)]===_0x5f107d['data'][_0x1c9497(0x1a6)]){const _0x1bbc33=_0x530582['parseProtocolChangeset'](_0x5f107d[_0x1c9497(0x181)])[_0x1c9497(0x11c)][_0x1c9497(0x11a)]()[_0x1c9497(0x111)](_0x19548b=>_0x19548b['id']===_0x30590f[_0x1c9497(0x124)]['id']);if(_0x1bbc33){const _0x3f7392=_0x1bbc33[_0x1c9497(0x18c)][_0x1c9497(0x169)],_0x4872e0=_0x1bbc33[_0x1c9497(0x18c)][_0x1c9497(0xe1)]['id'];setTimeout(()=>{var _0x338ec2=_0x1c9497;this[_0x338ec2(0x165)][_0x338ec2(0x174)](_0x30590f[_0x338ec2(0xfa)]['id'],{'unitId':_0x3f7392,'subUnitId':_0x4872e0},{'fromCollab':!0x0});});}}}[_0x465fe6(0x1a7)](){var _0x2042de=_0x465fe6;this['_status$'][_0x2042de(0x10b)]('presenting');const _0x1d9e61=new Map(),_0x47b67b=this[_0x2042de(0x148)]=new _0x1372ac[(_0x2042de(0x128))]();_0x47b67b[_0x2042de(0x115)](_0x1372ac['toDisposable'](()=>{var _0x3a4b96=_0x2042de;_0x1d9e61[_0x3a4b96(0xe4)](_0x127781=>_0x127781[_0x3a4b96(0x13b)]()),_0x1d9e61['clear']();})),_0x47b67b[_0x2042de(0x115)](this[_0x2042de(0x165)][_0x2042de(0x117)](_0x2467f4=>{var _0x217cd3=_0x2042de,_0x14b7fd;if(_0x2467f4['type']!==_0x1372ac[_0x217cd3(0x11d)]['OPERATION']||!this[_0x217cd3(0x16d)]['shouldShareOperation'](_0x2467f4['id']))return;const {id:_0x36f668}=_0x2467f4;let _0x186ab0;_0x1d9e61[_0x217cd3(0x154)](_0x36f668)?_0x186ab0=_0x1d9e61[_0x217cd3(0x1b8)](_0x36f668):(_0x186ab0=new _0x566dbf['Subject'](),_0x1d9e61['set'](_0x36f668,_0x186ab0),_0x186ab0[_0x217cd3(0x119)](_0x11da4a['throttleTime']((_0x14b7fd=this[_0x217cd3(0x1b7)][_0x217cd3(0xd8)](_0x3f952c))!=null?_0x14b7fd:_0x4aae60,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x217cd3(0x143)](_0x19e88e=>{var _0x246595=_0x217cd3;this['_collabSession'][_0x246595(0x114)]({'eventID':_0x530582['CollaborationEvent'][_0x246595(0x159)],'data':{'unitID':this[_0x246595(0x15b)],'operations':{[_0x19e88e['id']]:{'id':_0x19e88e['id'],'params':JSON[_0x246595(0xf6)](_0x19e88e[_0x246595(0x18c)])}}}},this[_0x246595(0x15b)]);})),_0x186ab0[_0x217cd3(0x10b)](_0x2467f4);})),this[_0x2042de(0x16d)][_0x2042de(0x19a)](this[_0x2042de(0x15b)])[_0x2042de(0xe4)](_0x25afac=>this['_collabSession'][_0x2042de(0x114)]({'eventID':_0x530582['CollaborationEvent'][_0x2042de(0x159)],'data':{'unitID':this['_unitID'],'operations':{[_0x25afac['id']]:{'id':_0x25afac['id'],'params':JSON[_0x2042de(0xf6)](_0x25afac[_0x2042de(0x18c)])}}}},this[_0x2042de(0x15b)]));}[_0x465fe6(0x193)](){var _0x1f9671=_0x465fe6,_0x1351eb;this[_0x1f9671(0xd4)][_0x1f9671(0x10b)](_0x1f9671(0xde)),(_0x1351eb=this[_0x1f9671(0x148)])==null||_0x1351eb[_0x1f9671(0x105)](),this['_commandDisposable']=null;}[_0x465fe6(0x126)](){var _0x2d42d5=_0x465fe6,_0x53959f;(_0x53959f=this[_0x2d42d5(0x148)])==null||_0x53959f[_0x2d42d5(0x105)](),this[_0x2d42d5(0xd4)][_0x2d42d5(0x10b)](_0x2d42d5(0xf3));}[_0x465fe6(0x17b)](){var _0x5b912c=_0x465fe6,_0x3dc6a8;this['_status$'][_0x5b912c(0x10b)](_0x5b912c(0xde)),(_0x3dc6a8=this[_0x5b912c(0x148)])==null||_0x3dc6a8[_0x5b912c(0x105)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x411d39=_0x465fe6,_0x486c05;this[_0x411d39(0xd4)]['next'](_0x411d39(0x18e)),(_0x486c05=this[_0x411d39(0x148)])==null||_0x486c05[_0x411d39(0x105)]();}[_0x465fe6(0x140)](_0x33f650){var _0x33a9b0=_0x465fe6;if([_0x33a9b0(0x12a),_0x33a9b0(0x18e),'offline']['includes'](this[_0x33a9b0(0xd1)])||!_0x33f650['data']['presenter']||_0x33f650[_0x33a9b0(0x181)][_0x33a9b0(0x171)]===this[_0x33a9b0(0x197)][_0x33a9b0(0x135)]())return;this[_0x33a9b0(0xd1)]===_0x33a9b0(0xde)&&this['_startFollowing']();const _0x1af4af=_0x33f650[_0x33a9b0(0x181)]['operations'];Object[_0x33a9b0(0xcd)](_0x1af4af)[_0x33a9b0(0xe4)](_0x4aa1f6=>{var _0x2f3aec=_0x33a9b0;this[_0x2f3aec(0x165)]['executeCommand'](_0x4aa1f6['id'],_0x4aa1f6[_0x2f3aec(0x18c)]?JSON[_0x2f3aec(0xfe)](_0x4aa1f6[_0x2f3aec(0x18c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x330062=_0x465fe6,_0x5b07b8;this['_status$'][_0x330062(0x10b)](_0x330062(0x13d)),(_0x5b07b8=this[_0x330062(0x148)])==null||_0x5b07b8['dispose']();}[_0x465fe6(0xd7)](){var _0x360601=_0x465fe6;this['_status$']['next'](_0x360601(0xde)),this[_0x360601(0x176)]();}},_0x41b787[_0x465fe6(0x188)]=_0x4459f2([_0x4ab856(0x2,_0x1372ac[_0x465fe6(0x14e)]),_0x4ab856(0x3,_0x1372ac[_0x465fe6(0x155)](_0x1c3988)),_0x4ab856(0x4,_0x1372ac[_0x465fe6(0x19b)])],_0x41b787[_0x465fe6(0x188)]);function _0x1947f7(){var _0x503aa5=_0x465fe6;const _0x1b1492=_0x37a08f[_0x503aa5(0x118)](_0x41b787['LiveShareController']),_0x189afb=_0x37a08f[_0x503aa5(0x118)](_0x1372ac[_0x503aa5(0xe5)]),_0x1f0cc5=_0x37a08f[_0x503aa5(0x146)](()=>_0x189afb['getCurrentTypeOfUnit$'](_0x1372ac[_0x503aa5(0xf7)][_0x503aa5(0xd3)]),void 0x0,!0x1,[]),[_0x18dfd0,_0x82e6ab]=_0x4099e9[_0x503aa5(0xe0)](null),[_0x75e69d,_0x595267]=_0x4099e9['useState'](_0x304c9d[_0x503aa5(0x142)]),_0xbdad7=_0x4099e9['useRef'](null);return _0x4099e9['useEffect'](()=>(_0x1f0cc5&&_0x1b1492[_0x503aa5(0x151)](_0x1f0cc5['getUnitId']())[_0x503aa5(0x14b)](_0x51260d=>{var _0x5f066c=_0x503aa5;_0x82e6ab(_0x51260d),_0xbdad7[_0x5f066c(0xff)]=_0x51260d[_0x5f066c(0x1c2)][_0x5f066c(0x143)](_0x3aa8b5=>{_0x595267(_0x3aa8b5);});}),()=>{var _0x38ac8c=_0x503aa5,_0x3794e5;(_0x3794e5=_0xbdad7[_0x38ac8c(0xff)])==null||_0x3794e5[_0x38ac8c(0x16f)](),_0xbdad7[_0x38ac8c(0xff)]=null;}),[_0x1f0cc5,_0x1b1492]),_0x18dfd0?_0xa6b8b5['jsx'](_0x5d3d18[_0x503aa5(0x134)],{'align':_0x503aa5(0x132),'disabled':_0x75e69d===_0x304c9d[_0x503aa5(0x184)],'className':_0x503aa5(0x10c),'overlay':_0xa6b8b5[_0x503aa5(0x156)](_0x4315e5,{'status':_0x75e69d,'coordinator':_0x18dfd0}),'children':_0xa6b8b5[_0x503aa5(0x156)](_0x503aa5(0x11b),{'className':_0x5d3d18[_0x503aa5(0xce)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x75e69d===_0x304c9d['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x75e69d!==_0x304c9d[_0x503aa5(0x184)]}),'type':_0x503aa5(0x11b),'children':_0xa6b8b5[_0x503aa5(0x156)](_0x455bc0,{'className':_0x503aa5(0x1b5)})})}):null;}function _0x4315e5(_0x3bdd0e){var _0x107e06=_0x465fe6;const {status:_0x152260,coordinator:_0x3e3ca3}=_0x3bdd0e;switch(_0x152260){case _0x304c9d[_0x107e06(0x142)]:return _0xa6b8b5[_0x107e06(0x156)](_0x58da91,{'coordinator':_0x3e3ca3});case _0x304c9d[_0x107e06(0x1ac)]:return _0xa6b8b5['jsx'](_0x334606,{'coordinator':_0x3e3ca3});case _0x304c9d[_0x107e06(0x127)]:return _0xa6b8b5[_0x107e06(0x156)](_0x257876,{'coordinator':_0x3e3ca3});case _0x304c9d[_0x107e06(0x184)]:return _0xa6b8b5[_0x107e06(0x156)](_0x40e59e,{});case _0x304c9d['PRESENTING']:return _0xa6b8b5[_0x107e06(0x156)](_0x2252ff,{'coordinator':_0x3e3ca3});default:return null;}}function _0x58da91(_0x315832){var _0x4583dd=_0x465fe6;const {coordinator:_0xbfdeab}=_0x315832;return _0xa6b8b5['jsxs'](_0xa6b8b5['Fragment'],{'children':[_0xa6b8b5[_0x4583dd(0x156)](_0x4583dd(0x14f),{'className':_0x4583dd(0xe6),'children':_0x4583dd(0xcb)}),_0xa6b8b5[_0x4583dd(0x156)](_0x5d3d18[_0x4583dd(0xcc)],{'onClick':()=>_0xbfdeab[_0x4583dd(0x130)](),'children':'Start'})]});}function _0x334606(_0x516f2a){var _0xd1d8b9=_0x465fe6;const {coordinator:_0x56d1fd}=_0x516f2a;return _0xa6b8b5['jsxs'](_0xa6b8b5['Fragment'],{'children':[_0xa6b8b5[_0xd1d8b9(0x156)](_0xd1d8b9(0x14f),{'className':_0xd1d8b9(0xe6),'children':_0xd1d8b9(0xed)}),_0xa6b8b5[_0xd1d8b9(0x156)](_0x5d3d18[_0xd1d8b9(0xcc)],{'onClick':()=>_0x56d1fd[_0xd1d8b9(0x1bc)](),'children':_0xd1d8b9(0x125)})]});}function _0x257876(_0x36b683){var _0x55ce8a=_0x465fe6;const {coordinator:_0x41c2fb}=_0x36b683;return _0xa6b8b5[_0x55ce8a(0x15a)](_0xa6b8b5[_0x55ce8a(0x1b9)],{'children':[_0xa6b8b5[_0x55ce8a(0x156)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x55ce8a(0x1b4)}),_0xa6b8b5[_0x55ce8a(0x156)](_0x5d3d18[_0x55ce8a(0xcc)],{'variant':_0x55ce8a(0x183),'onClick':()=>_0x41c2fb['startFollowing'](),'children':_0x55ce8a(0x1a5)})]});}function _0x2252ff(_0xdfd4d7){var _0x3278c7=_0x465fe6;const {coordinator:_0x598c41}=_0xdfd4d7;return _0xa6b8b5[_0x3278c7(0x15a)](_0xa6b8b5[_0x3278c7(0x1b9)],{'children':[_0xa6b8b5[_0x3278c7(0x156)](_0x3278c7(0x14f),{'className':_0x3278c7(0xe6),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xa6b8b5['jsx'](_0x5d3d18['Button'],{'variant':_0x3278c7(0x1b3),'onClick':()=>_0x598c41['stopPresenting'](),'children':_0x3278c7(0x1af)})]});}function _0x40e59e(){var _0x1bbf8d=_0x465fe6;return _0xa6b8b5[_0x1bbf8d(0x156)](_0xa6b8b5[_0x1bbf8d(0x1b9)],{'children':_0x1bbf8d(0x15e)});}var _0x4f1941=Object[_0x465fe6(0x178)],_0x3896dd=(_0xbc12f4,_0x22cfb2,_0x52befb,_0x2e03c8)=>{var _0x37f169=_0x465fe6;for(var _0x264cc8=_0x2e03c8>0x1?void 0x0:_0x2e03c8?_0x4f1941(_0x22cfb2,_0x52befb):_0x22cfb2,_0x1e7e4f=_0xbc12f4[_0x37f169(0x182)]-0x1,_0x483471;_0x1e7e4f>=0x0;_0x1e7e4f--)(_0x483471=_0xbc12f4[_0x1e7e4f])&&(_0x264cc8=_0x483471(_0x264cc8)||_0x264cc8);return _0x264cc8;},_0x175249=(_0x4fa492,_0x5a9c2f)=>(_0x2c1ce1,_0x36dc03)=>_0x5a9c2f(_0x2c1ce1,_0x36dc03,_0x4fa492);_0x41b787['DesktopLiveShareController']=class extends _0x1372ac[_0x465fe6(0x194)]{constructor(_0x352b9e,_0x1a8374){var _0xc8a651=_0x465fe6;super(),this['_injector']=_0x352b9e,this[_0xc8a651(0x190)]=_0x1a8374,this[_0xc8a651(0x166)]();}[_0x465fe6(0x166)](){var _0x344057=_0x465fe6;this['disposeWithMe'](this[_0x344057(0x190)][_0x344057(0x185)](_0x37a08f['BuiltInUIPart'][_0x344057(0x144)],()=>_0x37a08f[_0x344057(0x103)](_0x1947f7,this[_0x344057(0x199)])));}},_0x41b787[_0x465fe6(0x162)]=_0x3896dd([_0x175249(0x0,_0x1372ac['Inject'](_0x1372ac[_0x465fe6(0x12d)])),_0x175249(0x1,_0x37a08f[_0x465fe6(0xea)])],_0x41b787[_0x465fe6(0x162)]);var _0x30f9a3=Object[_0x465fe6(0x1b0)],_0x10f69b=Object[_0x465fe6(0x178)],_0x351670=(_0x5e450f,_0x1073a5,_0x48ed51)=>_0x1073a5 in _0x5e450f?_0x30f9a3(_0x5e450f,_0x1073a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48ed51}):_0x5e450f[_0x1073a5]=_0x48ed51,_0x301607=(_0x1af94c,_0x33e18e,_0x341a6e,_0xbd8fec)=>{var _0x4f8695=_0x465fe6;for(var _0x1629a2=_0xbd8fec>0x1?void 0x0:_0xbd8fec?_0x10f69b(_0x33e18e,_0x341a6e):_0x33e18e,_0x404f08=_0x1af94c[_0x4f8695(0x182)]-0x1,_0x18dcea;_0x404f08>=0x0;_0x404f08--)(_0x18dcea=_0x1af94c[_0x404f08])&&(_0x1629a2=_0x18dcea(_0x1629a2)||_0x1629a2);return _0x1629a2;},_0x582079=(_0xa9c927,_0x295074)=>(_0x584a49,_0x290bae)=>_0x295074(_0x584a49,_0x290bae,_0xa9c927),_0x5dd6f5=(_0x21bfa6,_0x11620f,_0x2b6a2e)=>_0x351670(_0x21bfa6,typeof _0x11620f!='symbol'?_0x11620f+'':_0x11620f,_0x2b6a2e);const _0x3f6aa6='UNIVER_LIVE_SHARE_PLUGIN';_0x41b787[_0x465fe6(0x1b1)]=class extends _0x1372ac[_0x465fe6(0xf1)]{constructor(_0x138c2e=_0x38e4a5,_0x2207e6,_0x4ed93b){var _0x463e12=_0x465fe6;super(),this[_0x463e12(0x19c)]=_0x138c2e,this[_0x463e12(0x199)]=_0x2207e6,this[_0x463e12(0x1b7)]=_0x4ed93b;const {..._0xdf1eaa}=_0x1372ac[_0x463e12(0x139)]({},_0x38e4a5,this[_0x463e12(0x19c)]);this[_0x463e12(0x1b7)][_0x463e12(0x137)](_0x2d026b,_0xdf1eaa);}['onStarting'](){var _0xa92406=_0x465fe6;_0x1372ac['registerDependencies'](this[_0xa92406(0x199)],_0x1372ac[_0xa92406(0x17c)]([[_0x1c3988],[_0x41b787[_0xa92406(0x168)]],[_0x17a852],[_0x41b787[_0xa92406(0x162)]]],this[_0xa92406(0x19c)][_0xa92406(0x16c)])),_0x1372ac['touchDependencies'](this[_0xa92406(0x199)],[[_0x17a852]]);}[_0x465fe6(0x1ba)](){var _0x2600ef=_0x465fe6;_0x1372ac[_0x2600ef(0xdd)](this[_0x2600ef(0x199)],[[_0x41b787[_0x2600ef(0x162)]]]);}},_0x5dd6f5(_0x41b787[_0x465fe6(0x1b1)],_0x465fe6(0x11e),_0x1372ac['UniverInstanceType'][_0x465fe6(0x173)]),_0x5dd6f5(_0x41b787[_0x465fe6(0x1b1)],'pluginName',_0x3f6aa6),_0x41b787[_0x465fe6(0x1b1)]=_0x301607([_0x1372ac[_0x465fe6(0x116)](_0x22955f[_0x465fe6(0x1a3)]),_0x582079(0x1,_0x1372ac[_0x465fe6(0x155)](_0x1372ac[_0x465fe6(0x12d)])),_0x582079(0x2,_0x1372ac['IConfigService'])],_0x41b787[_0x465fe6(0x1b1)]),_0x41b787[_0x465fe6(0xf2)]=_0x1947f7,_0x41b787['LiveShareService']=_0x1c3988,_0x41b787[_0x465fe6(0x120)]=_0x304c9d,Object[_0x465fe6(0x1b0)](_0x41b787,Symbol['toStringTag'],{'value':_0x465fe6(0x179)});}));function _0x5884(){var _0x57df19=['button','mutations','CommandType','type','entries','LiveShareStatus','_handleTerminate','235yMiCVi','forwardRef','InsertSheetMutation','Stop\x20following','_startFollowing','NOT_FOLLOWING','DisposableCollection','getUnitId','presenting','273xUMLjv','assign','Injector','1em','disposeWithMe','tryStartPresenting','createInstance','end','UniverIcon','Dropdown','getMemberID','defs','setConfig','asObservable','merge','defIds','complete','SetZoomRatioOperation','offline','UniverCore','dispose$','_handleOperation','BehaviorSubject','IDLE','subscribe','HEADER_MENU','init','useObservable','UniverProCollaborationClient','_commandDisposable','registerSharedOperation','attrs','then','stopPresenting','event$','IConfigService','div','rxjs','getLiveShareCoordinator','615142BQkvLM','_presenter','has','Inject','jsx','xlink:href','toDisposable','LIVESHARE_OPERATION','jsxs','_unitID','getValue','string','You\x27are\x20offline.','LIVESHARE_NEW_HOST','@univerjs/sheets-ui','idSuffix','DesktopLiveShareController','currentColor','SetScrollOperation','_commandService','_mountLiveShare','getTypeOfUnitDisposed$','LiveShareController','unitId','from','_handleOffline','override','_liveShareService','564619NEeISQ','unsubscribe','displayName','presenter','concat','UNIVER_UNKNOWN','executeCommand','UniverProLiveShare','_fetchOperations','_handleNewChangeSets','getOwnPropertyDescriptor','Module','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','_beIdle','mergeOverrideWithDependencies','UniverProCollaboration','RxDisposable','tag','indexOf','data','length','text','OFFLINE','registerComponent','trim','children','LiveShareCoordinator','http://www.w3.org/2000/svg','_stopFollowing','136lyQRDI','params','exports','not-following','createElement','_uiPartsService','sessionStatus$','1RKKvsF','_stopPresenting','Disposable','map','_init','_collabSession','live-share-icon','_injector','getInitialStates','ICommandService','_config','shouldShareOperation','takeUntil','@univerjs/design','ONLINE','11478bzbXXX','none','UniverCollaborationClientPlugin','@univerjs/sheets','Start\x20following','memberID','_startPresenting','NEW_CHANGESETS','LIVESHARE_REQUEST_HOST','set','LIVESHARE_FETCH_OPERATIONS','FOLLOWING','5229852AigRAu','icon','Stop\x20presenting','defineProperty','UniverLiveSharePlugin','includes','default','You\x27re\x20not\x20following\x20the\x20presenter','univer-size-4','className','_configService','get','Fragment','onRendered','_reporters','stopFollowing','function','extend','fill','random','object','status$','@univerjs-pro/collaboration-client','Present\x20this\x20document','Button','values','clsx','UniverSheetsUi','CollaborationEvent','_status','React','UNIVER_SHEET','_status$','getOwnPropertySymbols','SAME_OPERATION_SHARE_INTERVAL','_handleOnline','getConfig','14156pkDwft','_handleNewHost','requireSession','univerjs-icon\x20univerjs-icon-','touchDependencies','idle','LIVESHARE_TERMINATE','useState','sheet','mask','delete','forEach','IUniverInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','prototype','getTypeOfUnitAdded$','CollaborationSessionService','IUIPartsService','1181907BnevCU','rxjs/operators','You\x27re\x20following\x20the\x20presenter','_collabSessionService','19033EHRCci','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','Plugin','LiveShare','following','call','LiveShareIcon','stringify','UniverInstanceType','apply','use','SetWorksheetActiveOperation','replace','70EvYOrW','useRef','parse','current','registerInitialStateReporter','_entities','url(#$1','connectInjector','UniverSheets','dispose','react','toString','PRESENTING','substring','live-share.config','next','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','colorChannel1','_sharedOperations','_univerInstanceService','evenodd','find','path','hasOwnProperty','send','add','DependentOn','onCommandExecuted','useDependency','pipe','reverse'];_0x5884=function(){return _0x57df19;};return _0x5884();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.9.1-nightly.202507071607",
3
+ "version": "0.9.1-nightly.202507091606",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -46,14 +46,14 @@
46
46
  "rxjs": ">=7.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "@univerjs/icons": "^0.4.4",
50
- "@univerjs-pro/collaboration-client": "0.9.1-nightly.202507071607",
51
- "@univerjs/core": "0.9.1-nightly.202507071607",
52
- "@univerjs-pro/collaboration": "0.9.1-nightly.202507071607",
53
- "@univerjs/sheets": "0.9.1-nightly.202507071607",
54
- "@univerjs/design": "0.9.1-nightly.202507071607",
55
- "@univerjs/ui": "0.9.1-nightly.202507071607",
56
- "@univerjs/sheets-ui": "0.9.1-nightly.202507071607"
49
+ "@univerjs/icons": "^0.4.6",
50
+ "@univerjs-pro/collaboration": "0.9.1-nightly.202507091606",
51
+ "@univerjs-pro/collaboration-client": "0.9.1-nightly.202507091606",
52
+ "@univerjs/core": "0.9.1-nightly.202507091606",
53
+ "@univerjs/design": "0.9.1-nightly.202507091606",
54
+ "@univerjs/sheets": "0.9.1-nightly.202507091606",
55
+ "@univerjs/sheets-ui": "0.9.1-nightly.202507091606",
56
+ "@univerjs/ui": "0.9.1-nightly.202507091606"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",