@univerjs-pro/live-share 0.9.3-nightly.202507250819 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x1de777=_0xb18f;(function(_0x30b936,_0x1d1372){var _0xd5013d=_0xb18f,_0x457cde=_0x30b936();while(!![]){try{var _0x4aa296=-parseInt(_0xd5013d(0x237))/0x1*(-parseInt(_0xd5013d(0x24c))/0x2)+parseInt(_0xd5013d(0x219))/0x3*(parseInt(_0xd5013d(0x267))/0x4)+-parseInt(_0xd5013d(0x1b8))/0x5+parseInt(_0xd5013d(0x1e1))/0x6*(-parseInt(_0xd5013d(0x213))/0x7)+-parseInt(_0xd5013d(0x250))/0x8+-parseInt(_0xd5013d(0x209))/0x9*(parseInt(_0xd5013d(0x1e9))/0xa)+parseInt(_0xd5013d(0x23c))/0xb;if(_0x4aa296===_0x1d1372)break;else _0x457cde['push'](_0x457cde['shift']());}catch(_0x3caa30){_0x457cde['push'](_0x457cde['shift']());}}}(_0x22da,0xa7094));var U=Object[_0x1de777(0x212)],F=(_0x224752,_0x21d36a,_0x1bb015)=>_0x21d36a in _0x224752?U(_0x224752,_0x21d36a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1bb015}):_0x224752[_0x21d36a]=_0x1bb015,v=(_0x3a6cf2,_0x33ad56,_0x177620)=>F(_0x3a6cf2,typeof _0x33ad56!=_0x1de777(0x1c5)?_0x33ad56+'':_0x33ad56,_0x177620);Object['defineProperty'](exports,Symbol[_0x1de777(0x1fc)],{'value':_0x1de777(0x25c)});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'),$=_0x1de777(0x1f1),x={};class O extends o[_0x1de777(0x1ff)]{constructor(){var _0x549ed9=_0x1de777;super(...arguments),v(this,_0x549ed9(0x238),new Set()),v(this,_0x549ed9(0x1bf),new Set());}['registerSharedOperation'](_0x2c1d48){var _0x32d186=_0x1de777;return this[_0x32d186(0x238)][_0x32d186(0x201)](_0x2c1d48),o[_0x32d186(0x21f)](()=>this[_0x32d186(0x238)]['delete'](_0x2c1d48));}[_0x1de777(0x1fa)](_0x38b19b){var _0x30f066=_0x1de777;return this[_0x30f066(0x1bf)]['add'](_0x38b19b),o[_0x30f066(0x21f)](()=>this[_0x30f066(0x1bf)]['delete'](_0x38b19b));}[_0x1de777(0x1ac)](_0x31a53f){var _0x434f21=_0x1de777;return this[_0x434f21(0x238)]['has'](_0x31a53f);}[_0x1de777(0x239)](_0x5442c3){var _0x1c08a9=_0x1de777;return Array[_0x1c08a9(0x1d5)](this[_0x1c08a9(0x1bf)])[_0x1c08a9(0x264)](_0x3bc623=>_0x3bc623(_0x5442c3));}}var H=Object[_0x1de777(0x1d3)],V=(_0xe2ad14,_0x5cf984,_0xd847b0,_0x11bb13)=>{for(var _0x4b8bb8=_0x11bb13>0x1?void 0x0:_0x11bb13?H(_0x5cf984,_0xd847b0):_0x5cf984,_0x17c87d=_0xe2ad14['length']-0x1,_0x29fb5a;_0x17c87d>=0x0;_0x17c87d--)(_0x29fb5a=_0xe2ad14[_0x17c87d])&&(_0x4b8bb8=_0x29fb5a(_0x4b8bb8)||_0x4b8bb8);return _0x4b8bb8;},k=(_0x377368,_0x40e30f)=>(_0x2f963f,_0x58d6d1)=>_0x40e30f(_0x2f963f,_0x58d6d1,_0x377368);let E=class extends o[_0x1de777(0x1ff)]{constructor(_0x5ec2ff){var _0x3f8a1a=_0x1de777;super(),this[_0x3f8a1a(0x26a)]=_0x5ec2ff,this[_0x3f8a1a(0x272)]();}[_0x1de777(0x272)](){var _0x30e96e=_0x1de777;[w[_0x30e96e(0x1ad)]['id'],w['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x30e96e(0x19f)](_0x1aafa8=>{var _0x20a8a0=_0x30e96e;this[_0x20a8a0(0x258)](this[_0x20a8a0(0x26a)][_0x20a8a0(0x1c8)](_0x1aafa8));});}};function _0x22da(){var _0x339381=['onStarting','touchDependencies','_presenter','replace','getMemberID','trim','idle','90702VJjORo','_handleOperation','registerComponent','parse','BuiltInUIPart','colorChannel1','UNIVER_LIVE_SHARE_PLUGIN','prototype','substring','defineProperty','7jPjxQZ','LiveShareController','stopPresenting','CommandType','_startPresenting','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','269652Cbsnpf','path','none','pipe','CollaborationEvent','entries','toDisposable','LIVESHARE_REQUEST_HOST','memberID','subscribe','SAME_OPERATION_SHARE_INTERVAL','LiveShareService','data','evenodd','_univerInstanceService','_fetchOperations','IUniverInstanceService','useDependency','IDLE','mutations','assign','_collabSessionService','_mountLiveShare','useRef','_unitID','Stop\x20presenting','useState','_commandService','params','_handleNewHost','480093OXLZpY','_sharedOperations','getInitialStates','includes','stringify','22272855EnYXQv','FOLLOWING','SessionStatus','mergeOverrideWithDependencies','override','find','getCurrentTypeOfUnit$','forwardRef','1em','dispose$','set','jsxs','xlink:href','asObservable','live-share-icon','complete','2pgKhBj','You\x27re\x20following\x20the\x20presenter','attrs','LIVESHARE_TERMINATE','9059352NeeHWD','LiveShareStatus','createInstance','SetWorksheetActiveOperation','OPERATION','HEADER_MENU','connectInjector','CollaborationSessionService','disposeWithMe','onRendered','end','getTypeOfUnitDisposed$','Module','fill','LIVESHARE_FETCH_OPERATIONS','extend','displayName','_handleTerminate','length','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','map','_config','_startLiveShareCoordinator','32agFZIs','current','_startFollowing','_liveShareService','tryStartPresenting','PRESENTING','InsertSheetMutation','operations','send','dispose','univer-mb-3\x20univer-w-full\x20univer-text-sm','_init','LiveShare','UNIVER_SHEET','call','icon','createElement','RxDisposable','has','button','_entities','Button','_status','forEach','getTypeOfUnitAdded$','currentColor','idSuffix','univer-size-4','DesktopLiveShareController','clear','executeCommand','UniverInstanceType','_status$','_beIdle','Dropdown','next','shouldShareOperation','SetZoomRatioOperation','hasOwnProperty','init','IConfigService','type','then','LiveShareIcon','unitId','concat','Start\x20following','setConfig','698940iFXuKE','_commandDisposable','Injector','_injector','clsx','_stopPresenting','getLiveShareCoordinator','_reporters','registerDependencies','indexOf','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','defIds','presenter','symbol','_handleOffline','Subject','registerSharedOperation','DependentOn','propertyIsEnumerable','_uiPartsService','presenting','jsx','takeUntil','random','Fragment','stopFollowing','sessionStatus$','getOwnPropertyDescriptor','univerjs-icon\x20univerjs-icon-','from','LIVESHARE_OPERATION','getUnitId','not-following','_collabSession','useObservable','Inject','following','OFFLINE','string','text','You\x27re\x20not\x20following\x20the\x20presenter','288870vDDeBX','Present\x20this\x20document','UniverLiveSharePlugin','getConfig','reverse','IUIPartsService','NOT_FOLLOWING','use','1210XFpQjJ','_configService','defs','ICommandService','status$','className','offline','toString','live-share.config','_handleOnline','event$','div','Plugin','startFollowing','children','sheet','tag','registerInitialStateReporter','mask','toStringTag','merge','LiveShareCoordinator','Disposable','_stopFollowing','add'];_0x22da=function(){return _0x339381;};return _0x22da();}E=V([k(0x0,o['Inject'](O))],E);var u=function(){return u=Object['assign']||function(_0x2db527){var _0x437740=_0xb18f;for(var _0x150249,_0x2b2fb2=0x1,_0x3af27a=arguments[_0x437740(0x262)];_0x2b2fb2<_0x3af27a;_0x2b2fb2++){_0x150249=arguments[_0x2b2fb2];for(var _0x355cc8 in _0x150249)Object[_0x437740(0x210)][_0x437740(0x1ae)][_0x437740(0x275)](_0x150249,_0x355cc8)&&(_0x2db527[_0x355cc8]=_0x150249[_0x355cc8]);}return _0x2db527;},u['apply'](this,arguments);},M=function(_0x3cd038,_0x5a98e9){var _0x4c8172=_0x1de777,_0x56a20d={};for(var _0x402a7e in _0x3cd038)Object['prototype'][_0x4c8172(0x1ae)][_0x4c8172(0x275)](_0x3cd038,_0x402a7e)&&_0x5a98e9[_0x4c8172(0x1c1)](_0x402a7e)<0x0&&(_0x56a20d[_0x402a7e]=_0x3cd038[_0x402a7e]);if(_0x3cd038!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x13821d=0x0,_0x402a7e=Object['getOwnPropertySymbols'](_0x3cd038);_0x13821d<_0x402a7e[_0x4c8172(0x262)];_0x13821d++)_0x5a98e9['indexOf'](_0x402a7e[_0x13821d])<0x0&&Object[_0x4c8172(0x210)][_0x4c8172(0x1ca)][_0x4c8172(0x275)](_0x3cd038,_0x402a7e[_0x13821d])&&(_0x56a20d[_0x402a7e[_0x13821d]]=_0x3cd038[_0x402a7e[_0x13821d]]);}return _0x56a20d;},j=f[_0x1de777(0x243)](function(_0x31a061,_0x1a8653){var _0x46e5f7=_0x1de777,_0x537e81=_0x31a061[_0x46e5f7(0x276)],_0x50dcc1=_0x31a061['id'],_0x727b9e=_0x31a061[_0x46e5f7(0x1ee)],_0x409e10=_0x31a061['extend'],_0x4cc01e=M(_0x31a061,[_0x46e5f7(0x276),'id',_0x46e5f7(0x1ee),_0x46e5f7(0x25f)]),_0x31677d=_0x46e5f7(0x1d4)['concat'](_0x50dcc1,'\x20')[_0x46e5f7(0x1b5)](_0x727b9e||'')[_0x46e5f7(0x207)](),_0x3872ca=f[_0x46e5f7(0x230)]('_'[_0x46e5f7(0x1b5)](G()));return y(_0x537e81,''[_0x46e5f7(0x1b5)](_0x50dcc1),{'defIds':_0x537e81['defIds'],'idSuffix':_0x3872ca[_0x46e5f7(0x268)]},u({'ref':_0x1a8653,'className':_0x31677d},_0x4cc01e),_0x409e10);});function y(_0x7b9e5c,_0x389243,_0x4c8749,_0x279155,_0x5e2bcb){var _0x59eb60=_0x1de777;return f[_0x59eb60(0x277)](_0x7b9e5c[_0x59eb60(0x1f9)],u(u({'key':_0x389243},q(_0x7b9e5c,_0x4c8749,_0x5e2bcb)),_0x279155),(W(_0x7b9e5c,_0x4c8749)[_0x59eb60(0x1f7)]||[])[_0x59eb60(0x264)](function(_0xd11a59,_0x2f951b){var _0x54cd0a=_0x59eb60;return y(_0xd11a59,''[_0x54cd0a(0x1b5)](_0x389243,'-')[_0x54cd0a(0x1b5)](_0x7b9e5c[_0x54cd0a(0x1f9)],'-')[_0x54cd0a(0x1b5)](_0x2f951b),_0x4c8749,void 0x0,_0x5e2bcb);}));}function q(_0x44d84c,_0x28e966,_0x53bc04){var _0x534339=_0x1de777,_0x36d0e6=u({},_0x44d84c['attrs']);_0x53bc04!=null&&_0x53bc04[_0x534339(0x20e)]&&_0x36d0e6[_0x534339(0x25d)]===_0x534339(0x20e)&&(_0x36d0e6['fill']=_0x53bc04[_0x534339(0x20e)]),_0x44d84c['tag']==='mask'&&_0x36d0e6['id']&&(_0x36d0e6['id']=_0x36d0e6['id']+_0x28e966[_0x534339(0x1a2)]),Object[_0x534339(0x21e)](_0x36d0e6)[_0x534339(0x19f)](function(_0x5ccecf){var _0x424000=_0x534339,_0x2d7e9e=_0x5ccecf[0x0],_0x233dd1=_0x5ccecf[0x1];_0x2d7e9e===_0x424000(0x1fb)&&typeof _0x233dd1==_0x424000(0x1de)&&(_0x36d0e6[_0x2d7e9e]=_0x233dd1[_0x424000(0x205)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x28e966['idSuffix'],')')));});var _0x48a8fc=_0x28e966[_0x534339(0x1c3)];return!_0x48a8fc||_0x48a8fc[_0x534339(0x262)]===0x0||(_0x44d84c[_0x534339(0x1f9)]===_0x534339(0x1e8)&&_0x36d0e6[_0x534339(0x248)]&&(_0x36d0e6[_0x534339(0x248)]=_0x36d0e6[_0x534339(0x248)]+_0x28e966['idSuffix']),Object[_0x534339(0x21e)](_0x36d0e6)[_0x534339(0x19f)](function(_0x3f58c5){var _0xb88abd=_0x534339,_0x26ea6a=_0x3f58c5[0x0],_0x227acd=_0x3f58c5[0x1];typeof _0x227acd==_0xb88abd(0x1de)&&(_0x36d0e6[_0x26ea6a]=_0x227acd['replace'](/url\(#(.*)\)/,'url(#$1'[_0xb88abd(0x1b5)](_0x28e966[_0xb88abd(0x1a2)],')')));})),_0x36d0e6;}function W(_0x5e988e,_0x3c2994){var _0x4cb835=_0x1de777,_0x305f52,_0x1c6343=_0x3c2994[_0x4cb835(0x1c3)];return!_0x1c6343||_0x1c6343['length']===0x0?_0x5e988e:_0x5e988e[_0x4cb835(0x1f9)]===_0x4cb835(0x1eb)&&(!((_0x305f52=_0x5e988e[_0x4cb835(0x1f7)])===null||_0x305f52===void 0x0)&&_0x305f52['length'])?u(u({},_0x5e988e),{'children':_0x5e988e[_0x4cb835(0x1f7)][_0x4cb835(0x264)](function(_0x3c29db){var _0x15313d=_0x4cb835;return typeof _0x3c29db[_0x15313d(0x24e)]['id']=='string'&&_0x1c6343&&_0x1c6343['includes'](_0x3c29db[_0x15313d(0x24e)]['id'])?u(u({},_0x3c29db),{'attrs':u(u({},_0x3c29db[_0x15313d(0x24e)]),{'id':_0x3c29db['attrs']['id']+_0x3c2994[_0x15313d(0x1a2)]})}):_0x3c29db;})}):_0x5e988e;}function G(){var _0x553f2d=_0x1de777;return Math[_0x553f2d(0x1cf)]()[_0x553f2d(0x1f0)](0x24)[_0x553f2d(0x211)](0x2,0x8);}j[_0x1de777(0x260)]='UniverIcon';var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1de777(0x21b),'viewBox':'0\x200\x2017\x2017','width':_0x1de777(0x244),'height':_0x1de777(0x244)},'children':[{'tag':_0x1de777(0x21a),'attrs':{'fill':_0x1de777(0x1a1),'d':_0x1de777(0x263)}},{'tag':_0x1de777(0x21a),'attrs':{'fill':'currentColor','d':_0x1de777(0x218),'fillRule':_0x1de777(0x226),'clipRule':_0x1de777(0x226)}}]},P=f['forwardRef'](function(_0x33d2a5,_0x1a282e){var _0xea9b89=_0x1de777;return f[_0xea9b89(0x277)](j,Object[_0xea9b89(0x22d)]({},_0x33d2a5,{'id':_0xea9b89(0x24a),'ref':_0x1a282e,'icon':B}));});P[_0x1de777(0x260)]=_0x1de777(0x1b3);var Y=Object[_0x1de777(0x1d3)],R=(_0x4cf114,_0x3a92f1,_0x4c1bff,_0x83d1ac)=>{var _0xfd4e04=_0x1de777;for(var _0x199d52=_0x83d1ac>0x1?void 0x0:_0x83d1ac?Y(_0x3a92f1,_0x4c1bff):_0x3a92f1,_0x22f90e=_0x4cf114[_0xfd4e04(0x262)]-0x1,_0x34c77d;_0x22f90e>=0x0;_0x22f90e--)(_0x34c77d=_0x4cf114[_0x22f90e])&&(_0x199d52=_0x34c77d(_0x199d52)||_0x199d52);return _0x199d52;},S=(_0x30222c,_0xe2a367)=>(_0x165b79,_0x21cdf8)=>_0xe2a367(_0x165b79,_0x21cdf8,_0x30222c);exports[_0x1de777(0x214)]=class extends o[_0x1de777(0x278)]{constructor(_0x423306,_0x5debae,_0x5be375){var _0x17c9e1=_0x1de777;super(),v(this,_0x17c9e1(0x27b),new Map()),(this[_0x17c9e1(0x227)]=_0x423306,this['_injector']=_0x5debae,this['_collabSessionService']=_0x5be375,this[_0x17c9e1(0x272)]());}async['getLiveShareCoordinator'](_0x2b8739){var _0x24912f=_0x1de777;return this[_0x24912f(0x27b)]['has'](_0x2b8739)||await this[_0x24912f(0x266)](_0x2b8739),this['_entities']['get'](_0x2b8739);}['_init'](){var _0x51e5be=_0x1de777;this['_univerInstanceService'][_0x51e5be(0x1a0)](o[_0x51e5be(0x1a7)][_0x51e5be(0x274)])['pipe'](b[_0x51e5be(0x1ce)](this['dispose$']))[_0x51e5be(0x222)](async _0x6731ed=>{var _0x5f0462=_0x51e5be;const _0xcd399=_0x6731ed[_0x5f0462(0x1d7)]();this[_0x5f0462(0x27b)][_0x5f0462(0x279)](_0xcd399)||this[_0x5f0462(0x266)](_0xcd399);}),this[_0x51e5be(0x227)][_0x51e5be(0x25b)](o[_0x51e5be(0x1a7)][_0x51e5be(0x274)])[_0x51e5be(0x21c)](b[_0x51e5be(0x1ce)](this[_0x51e5be(0x245)]))[_0x51e5be(0x222)](_0x45ffe=>{var _0x343b2f=_0x51e5be;const _0x3fbfe5=_0x45ffe[_0x343b2f(0x1d7)](),_0x23d31c=this['_entities']['get'](_0x3fbfe5);_0x23d31c==null||_0x23d31c[_0x343b2f(0x270)]();});}async[_0x1de777(0x266)](_0x444197){var _0x2fd7f2=_0x1de777;const _0x477d30=await this[_0x2fd7f2(0x22e)]['requireSession'](_0x444197),_0x16e9ae=this[_0x2fd7f2(0x1bb)][_0x2fd7f2(0x252)](exports[_0x2fd7f2(0x1fe)],_0x444197,_0x477d30);return _0x16e9ae[_0x2fd7f2(0x1af)](),this[_0x2fd7f2(0x27b)][_0x2fd7f2(0x246)](_0x444197,_0x16e9ae),_0x16e9ae;}},exports['LiveShareController']=R([S(0x0,o[_0x1de777(0x229)]),S(0x1,o[_0x1de777(0x1db)](o[_0x1de777(0x1ba)])),S(0x2,o['Inject'](m[_0x1de777(0x257)]))],exports[_0x1de777(0x214)]);var h=(_0x483fd9=>(_0x483fd9['OFFLINE']=_0x1de777(0x1ef),_0x483fd9[_0x1de777(0x22b)]='idle',_0x483fd9[_0x1de777(0x23d)]=_0x1de777(0x1dc),_0x483fd9[_0x1de777(0x1e7)]='not-following',_0x483fd9[_0x1de777(0x26c)]=_0x1de777(0x1cc),_0x483fd9))(h||{});const Z=_0x1de777(0x223),J=0xc8;exports[_0x1de777(0x1fe)]=class extends o['RxDisposable']{constructor(_0x25274c,_0x13fbb3,_0x49d2c8,_0xa03538,_0x5bf607){var _0x12d27f=_0x1de777;super(),v(this,_0x12d27f(0x1a8),new D['BehaviorSubject'](_0x12d27f(0x208))),v(this,'status$',this[_0x12d27f(0x1a8)][_0x12d27f(0x249)]()),v(this,_0x12d27f(0x272),!0x1),v(this,_0x12d27f(0x1b9),null),v(this,'_presenter',null),(this[_0x12d27f(0x231)]=_0x25274c,this[_0x12d27f(0x1d9)]=_0x13fbb3,this[_0x12d27f(0x1ea)]=_0x49d2c8,this['_liveShareService']=_0xa03538,this[_0x12d27f(0x234)]=_0x5bf607);}get[_0x1de777(0x27d)](){return this['_status$']['getValue']();}['dispose'](){var _0x4148fa=_0x1de777,_0x195f98;(_0x195f98=this[_0x4148fa(0x1b9)])==null||_0x195f98[_0x4148fa(0x270)](),this[_0x4148fa(0x1a8)][_0x4148fa(0x1ab)](_0x4148fa(0x208)),this[_0x4148fa(0x1a8)][_0x4148fa(0x24b)]();}[_0x1de777(0x1af)](){var _0x349664=_0x1de777;this['_init']||(this[_0x349664(0x272)]=!0x0,this[_0x349664(0x1d9)][_0x349664(0x1d2)][_0x349664(0x21c)](b[_0x349664(0x1ce)](this[_0x349664(0x245)]))[_0x349664(0x222)](_0x56caff=>{var _0x6d86e=_0x349664;switch(_0x56caff){case m[_0x6d86e(0x23e)][_0x6d86e(0x1dd)]:this[_0x6d86e(0x1c6)]();break;case m[_0x6d86e(0x23e)]['ONLINE']:this[_0x6d86e(0x1f2)]();break;}}),this[_0x349664(0x1d9)][_0x349664(0x1f3)][_0x349664(0x21c)](b['takeUntil'](this['dispose$']))[_0x349664(0x222)](_0x4346d7=>{var _0x412003=_0x349664;const {eventID:_0x441fa5}=_0x4346d7;switch(_0x441fa5){case _[_0x412003(0x21d)]['LIVESHARE_NEW_HOST']:this[_0x412003(0x236)](_0x4346d7);break;case _[_0x412003(0x21d)][_0x412003(0x1d6)]:this[_0x412003(0x20a)](_0x4346d7);break;case _[_0x412003(0x21d)]['LIVESHARE_TERMINATE']:this[_0x412003(0x261)]();break;case _[_0x412003(0x21d)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x4346d7);break;}}));}[_0x1de777(0x26b)](){var _0x9a3ee8=_0x1de777;this['_collabSession']['send']({'eventID':_[_0x9a3ee8(0x21d)][_0x9a3ee8(0x220)],'data':{'unitID':this['_unitID'],'userID':this[_0x9a3ee8(0x1d9)][_0x9a3ee8(0x206)]()}},this['_unitID']);}[_0x1de777(0x215)](){var _0x1b5050=_0x1de777;this['_status']===_0x1b5050(0x1cc)&&(this[_0x1b5050(0x1a8)][_0x1b5050(0x1ab)](_0x1b5050(0x208)),this[_0x1b5050(0x1d9)]['send']({'eventID':_['CollaborationEvent'][_0x1b5050(0x24f)],'data':{'unitID':this['_unitID']}},this[_0x1b5050(0x231)]));}[_0x1de777(0x1f6)](){var _0x267d3a=_0x1de777;this[_0x267d3a(0x27d)]===_0x267d3a(0x1d8)&&(this[_0x267d3a(0x1a8)]['next'](_0x267d3a(0x1dc)),this[_0x267d3a(0x269)]());}[_0x1de777(0x1d1)](){var _0x8cd770=_0x1de777;this[_0x8cd770(0x27d)]===_0x8cd770(0x1dc)&&this['_stopFollowing']();}['_handleNewHost'](_0x1ca143){var _0x362e1d=_0x1de777;const {presenter:_0x1bbf82}=_0x1ca143[_0x362e1d(0x225)],_0x1cfcc8=this[_0x362e1d(0x1d9)][_0x362e1d(0x206)]();this['_presenter']=_0x1bbf82,_0x1bbf82===_0x1cfcc8?(this[_0x362e1d(0x200)](),this[_0x362e1d(0x217)]()):this[_0x362e1d(0x27d)]!==_0x362e1d(0x1d8)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x1de777(0x228)](){var _0x244864=_0x1de777;const _0x24a1d5={'eventID':_[_0x244864(0x21d)][_0x244864(0x25e)]};this[_0x244864(0x1d9)]['send'](_0x24a1d5,this[_0x244864(0x231)]);}[_0x1de777(0x261)](){var _0x34363a=_0x1de777;this['_presenter']=null,this[_0x34363a(0x27d)]!==_0x34363a(0x1cc)&&this[_0x34363a(0x1a9)]();}['_handleNewChangeSets'](_0x4c4ad2){var _0x33d386=_0x1de777;if(this[_0x33d386(0x27d)]===_0x33d386(0x1dc)&&this[_0x33d386(0x204)]===_0x4c4ad2[_0x33d386(0x225)][_0x33d386(0x221)]){const _0x5f0a5f=_['parseProtocolChangeset'](_0x4c4ad2[_0x33d386(0x225)])[_0x33d386(0x22c)][_0x33d386(0x1e5)]()[_0x33d386(0x241)](_0x250dd1=>_0x250dd1['id']===C[_0x33d386(0x26d)]['id']);if(_0x5f0a5f){const _0x1df667=_0x5f0a5f[_0x33d386(0x235)][_0x33d386(0x1b4)],_0x32ae44=_0x5f0a5f[_0x33d386(0x235)][_0x33d386(0x1f8)]['id'];setTimeout(()=>{var _0x2e8f24=_0x33d386;this[_0x2e8f24(0x234)]['executeCommand'](C[_0x2e8f24(0x253)]['id'],{'unitId':_0x1df667,'subUnitId':_0x32ae44},{'fromCollab':!0x0});});}}}[_0x1de777(0x217)](){var _0x324959=_0x1de777;this[_0x324959(0x1a8)][_0x324959(0x1ab)](_0x324959(0x1cc));const _0x3b25f4=new Map(),_0x236c8f=this[_0x324959(0x1b9)]=new o['DisposableCollection']();_0x236c8f[_0x324959(0x201)](o[_0x324959(0x21f)](()=>{var _0x289005=_0x324959;_0x3b25f4[_0x289005(0x19f)](_0x38fe24=>_0x38fe24[_0x289005(0x24b)]()),_0x3b25f4[_0x289005(0x1a5)]();})),_0x236c8f[_0x324959(0x201)](this[_0x324959(0x234)]['onCommandExecuted'](_0x539662=>{var _0x57d5ce=_0x324959,_0x41a839;if(_0x539662['type']!==o[_0x57d5ce(0x216)][_0x57d5ce(0x254)]||!this['_liveShareService'][_0x57d5ce(0x1ac)](_0x539662['id']))return;const {id:_0x5ce25f}=_0x539662;let _0x3e0e9e;_0x3b25f4[_0x57d5ce(0x279)](_0x5ce25f)?_0x3e0e9e=_0x3b25f4['get'](_0x5ce25f):(_0x3e0e9e=new D[(_0x57d5ce(0x1c7))](),_0x3b25f4[_0x57d5ce(0x246)](_0x5ce25f,_0x3e0e9e),_0x3e0e9e['pipe'](b['throttleTime']((_0x41a839=this[_0x57d5ce(0x1ea)][_0x57d5ce(0x1e4)](Z))!=null?_0x41a839:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x57d5ce(0x222)](_0x110e46=>{var _0x127e07=_0x57d5ce;this['_collabSession']['send']({'eventID':_[_0x127e07(0x21d)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x127e07(0x231)],'operations':{[_0x110e46['id']]:{'id':_0x110e46['id'],'params':JSON[_0x127e07(0x23b)](_0x110e46[_0x127e07(0x235)])}}}},this[_0x127e07(0x231)]);})),_0x3e0e9e[_0x57d5ce(0x1ab)](_0x539662);})),this['_liveShareService'][_0x324959(0x239)](this[_0x324959(0x231)])[_0x324959(0x19f)](_0x4ccd70=>this['_collabSession'][_0x324959(0x26f)]({'eventID':_[_0x324959(0x21d)][_0x324959(0x1d6)],'data':{'unitID':this[_0x324959(0x231)],'operations':{[_0x4ccd70['id']]:{'id':_0x4ccd70['id'],'params':JSON[_0x324959(0x23b)](_0x4ccd70[_0x324959(0x235)])}}}},this[_0x324959(0x231)]));}[_0x1de777(0x1bd)](){var _0x47d18c=_0x1de777,_0x53441d;this[_0x47d18c(0x1a8)]['next'](_0x47d18c(0x208)),(_0x53441d=this['_commandDisposable'])==null||_0x53441d[_0x47d18c(0x270)](),this[_0x47d18c(0x1b9)]=null;}[_0x1de777(0x269)](){var _0x4757e5=_0x1de777,_0x47fee6;(_0x47fee6=this['_commandDisposable'])==null||_0x47fee6[_0x4757e5(0x270)](),this[_0x4757e5(0x1a8)][_0x4757e5(0x1ab)]('following');}[_0x1de777(0x1a9)](){var _0x4641ce=_0x1de777,_0x7d6d42;this[_0x4641ce(0x1a8)]['next']('idle'),(_0x7d6d42=this[_0x4641ce(0x1b9)])==null||_0x7d6d42['dispose'](),this[_0x4641ce(0x1b9)]=null;}[_0x1de777(0x200)](){var _0x44c013=_0x1de777,_0x610851;this[_0x44c013(0x1a8)][_0x44c013(0x1ab)]('not-following'),(_0x610851=this['_commandDisposable'])==null||_0x610851[_0x44c013(0x270)]();}['_handleOperation'](_0x176b28){var _0x4af11f=_0x1de777;if([_0x4af11f(0x1cc),_0x4af11f(0x1d8),_0x4af11f(0x1ef)][_0x4af11f(0x23a)](this[_0x4af11f(0x27d)])||!_0x176b28[_0x4af11f(0x225)][_0x4af11f(0x1c4)]||_0x176b28['data']['presenter']===this['_collabSession']['getMemberID']())return;this[_0x4af11f(0x27d)]==='idle'&&this[_0x4af11f(0x269)]();const _0x21715d=_0x176b28[_0x4af11f(0x225)][_0x4af11f(0x26e)];Object['values'](_0x21715d)[_0x4af11f(0x19f)](_0x5e1435=>{var _0x189995=_0x4af11f;this[_0x189995(0x234)][_0x189995(0x1a6)](_0x5e1435['id'],_0x5e1435[_0x189995(0x235)]?JSON[_0x189995(0x20c)](_0x5e1435[_0x189995(0x235)]):null,{'fromCollab':!0x0});});}[_0x1de777(0x1c6)](){var _0xc09cc5=_0x1de777,_0x8b8de6;this[_0xc09cc5(0x1a8)]['next'](_0xc09cc5(0x1ef)),(_0x8b8de6=this[_0xc09cc5(0x1b9)])==null||_0x8b8de6[_0xc09cc5(0x270)]();}[_0x1de777(0x1f2)](){var _0x4c2d5b=_0x1de777;this[_0x4c2d5b(0x1a8)][_0x4c2d5b(0x1ab)](_0x4c2d5b(0x208)),this['_fetchOperations']();}},exports[_0x1de777(0x1fe)]=R([S(0x2,o[_0x1de777(0x1b0)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x1de777(0x1ec)])],exports[_0x1de777(0x1fe)]);function A(){var _0x340876=_0x1de777;const _0x180f2a=p[_0x340876(0x22a)](exports[_0x340876(0x214)]),_0x32e7ab=p[_0x340876(0x22a)](o[_0x340876(0x229)]),_0x143a41=p[_0x340876(0x1da)](()=>_0x32e7ab[_0x340876(0x242)](o[_0x340876(0x1a7)][_0x340876(0x274)]),void 0x0,!0x1,[]),[_0x4ede26,_0x58bc2c]=f[_0x340876(0x233)](null),[_0x125994,_0x2c211b]=f[_0x340876(0x233)](h[_0x340876(0x22b)]),_0x3a2292=f[_0x340876(0x230)](null);return f['useEffect'](()=>(_0x143a41&&_0x180f2a[_0x340876(0x1be)](_0x143a41['getUnitId']())[_0x340876(0x1b2)](_0x41d534=>{var _0x1422c2=_0x340876;_0x58bc2c(_0x41d534),_0x3a2292['current']=_0x41d534[_0x1422c2(0x1ed)][_0x1422c2(0x222)](_0xf453e1=>{_0x2c211b(_0xf453e1);});}),()=>{var _0x182144=_0x340876,_0x5739a6;(_0x5739a6=_0x3a2292['current'])==null||_0x5739a6['unsubscribe'](),_0x3a2292[_0x182144(0x268)]=null;}),[_0x143a41,_0x180f2a]),_0x4ede26?l['jsx'](g[_0x340876(0x1aa)],{'align':_0x340876(0x25a),'disabled':_0x125994===h[_0x340876(0x1dd)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x340876(0x1cd)](K,{'status':_0x125994,'coordinator':_0x4ede26}),'children':l[_0x340876(0x1cd)](_0x340876(0x27a),{'className':g[_0x340876(0x1bc)](_0x340876(0x1c2),{'univer-cursor-not-allowed':_0x125994===h[_0x340876(0x1dd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x125994!==h[_0x340876(0x1dd)]}),'type':_0x340876(0x27a),'children':l[_0x340876(0x1cd)](P,{'className':_0x340876(0x1a3)})})}):null;}function K(_0x3961f0){var _0x528781=_0x1de777;const {status:_0xb7c2d4,coordinator:_0x17b631}=_0x3961f0;switch(_0xb7c2d4){case h[_0x528781(0x22b)]:return l[_0x528781(0x1cd)](z,{'coordinator':_0x17b631});case h[_0x528781(0x23d)]:return l[_0x528781(0x1cd)](Q,{'coordinator':_0x17b631});case h['NOT_FOLLOWING']:return l[_0x528781(0x1cd)](X,{'coordinator':_0x17b631});case h[_0x528781(0x1dd)]:return l[_0x528781(0x1cd)](te,{});case h[_0x528781(0x26c)]:return l['jsx'](ee,{'coordinator':_0x17b631});default:return null;}}function z(_0x3a5ac1){var _0x24bab0=_0x1de777;const {coordinator:_0x50f623}=_0x3a5ac1;return l[_0x24bab0(0x247)](l['Fragment'],{'children':[l[_0x24bab0(0x1cd)](_0x24bab0(0x1f4),{'className':_0x24bab0(0x271),'children':_0x24bab0(0x1e2)}),l['jsx'](g[_0x24bab0(0x27c)],{'onClick':()=>_0x50f623['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x3ad277){var _0x1fa05a=_0x1de777;const {coordinator:_0x167238}=_0x3ad277;return l[_0x1fa05a(0x247)](l[_0x1fa05a(0x1d0)],{'children':[l[_0x1fa05a(0x1cd)](_0x1fa05a(0x1f4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1fa05a(0x24d)}),l[_0x1fa05a(0x1cd)](g[_0x1fa05a(0x27c)],{'onClick':()=>_0x167238[_0x1fa05a(0x1d1)](),'children':'Stop\x20following'})]});}function X(_0x413ea8){var _0x5ef0a8=_0x1de777;const {coordinator:_0x4acf14}=_0x413ea8;return l[_0x5ef0a8(0x247)](l[_0x5ef0a8(0x1d0)],{'children':[l[_0x5ef0a8(0x1cd)]('div',{'className':_0x5ef0a8(0x271),'children':_0x5ef0a8(0x1e0)}),l[_0x5ef0a8(0x1cd)](g[_0x5ef0a8(0x27c)],{'variant':_0x5ef0a8(0x1df),'onClick':()=>_0x4acf14[_0x5ef0a8(0x1f6)](),'children':_0x5ef0a8(0x1b6)})]});}function ee(_0x403edb){var _0x3b1334=_0x1de777;const {coordinator:_0x1351fe}=_0x403edb;return l[_0x3b1334(0x247)](l['Fragment'],{'children':[l[_0x3b1334(0x1cd)](_0x3b1334(0x1f4),{'className':_0x3b1334(0x271),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x3b1334(0x1cd)](g[_0x3b1334(0x27c)],{'variant':'default','onClick':()=>_0x1351fe[_0x3b1334(0x215)](),'children':_0x3b1334(0x232)})]});}function te(){var _0x1f6d55=_0x1de777;return l['jsx'](l[_0x1f6d55(0x1d0)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x1de777(0x1d3)],ne=(_0x10e0ba,_0x20124d,_0x29ce98,_0x11ff12)=>{for(var _0x115d70=_0x11ff12>0x1?void 0x0:_0x11ff12?ie(_0x20124d,_0x29ce98):_0x20124d,_0x5cee04=_0x10e0ba['length']-0x1,_0x28597e;_0x5cee04>=0x0;_0x5cee04--)(_0x28597e=_0x10e0ba[_0x5cee04])&&(_0x115d70=_0x28597e(_0x115d70)||_0x115d70);return _0x115d70;},L=(_0x8572c3,_0x1e8269)=>(_0x3e64de,_0x93b0e4)=>_0x1e8269(_0x3e64de,_0x93b0e4,_0x8572c3);exports[_0x1de777(0x1a4)]=class extends o[_0x1de777(0x1ff)]{constructor(_0x2d4437,_0x26ef4f){var _0x4e25a6=_0x1de777;super(),this[_0x4e25a6(0x1bb)]=_0x2d4437,this[_0x4e25a6(0x1cb)]=_0x26ef4f,this[_0x4e25a6(0x22f)]();}['_mountLiveShare'](){var _0x45138a=_0x1de777;this[_0x45138a(0x258)](this[_0x45138a(0x1cb)][_0x45138a(0x20b)](p[_0x45138a(0x20d)][_0x45138a(0x255)],()=>p[_0x45138a(0x256)](A,this[_0x45138a(0x1bb)])));}},exports[_0x1de777(0x1a4)]=ne([L(0x0,o['Inject'](o['Injector'])),L(0x1,p[_0x1de777(0x1e6)])],exports[_0x1de777(0x1a4)]);function _0xb18f(_0x1fa03d,_0x49d829){var _0x22da8d=_0x22da();return _0xb18f=function(_0xb18f58,_0x41f7fd){_0xb18f58=_0xb18f58-0x19f;var _0x1610a9=_0x22da8d[_0xb18f58];return _0x1610a9;},_0xb18f(_0x1fa03d,_0x49d829);}var re=Object['defineProperty'],se=Object[_0x1de777(0x1d3)],oe=(_0x2d86f4,_0x4dbf30,_0x5a7432)=>_0x4dbf30 in _0x2d86f4?re(_0x2d86f4,_0x4dbf30,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a7432}):_0x2d86f4[_0x4dbf30]=_0x5a7432,ae=(_0x54f048,_0x1f0094,_0x51923b,_0x3398ac)=>{var _0x348de8=_0x1de777;for(var _0x2b0a0f=_0x3398ac>0x1?void 0x0:_0x3398ac?se(_0x1f0094,_0x51923b):_0x1f0094,_0x1f015e=_0x54f048[_0x348de8(0x262)]-0x1,_0x1c614a;_0x1f015e>=0x0;_0x1f015e--)(_0x1c614a=_0x54f048[_0x1f015e])&&(_0x2b0a0f=_0x1c614a(_0x2b0a0f)||_0x2b0a0f);return _0x2b0a0f;},N=(_0x11b2f1,_0x2bfee9)=>(_0x13ee54,_0x2c6be5)=>_0x2bfee9(_0x13ee54,_0x2c6be5,_0x11b2f1),T=(_0x2febec,_0x2775f,_0x718a4e)=>oe(_0x2febec,typeof _0x2775f!=_0x1de777(0x1c5)?_0x2775f+'':_0x2775f,_0x718a4e);const le=_0x1de777(0x20f);exports[_0x1de777(0x1e3)]=class extends o[_0x1de777(0x1f5)]{constructor(_0x26018f=x,_0x4e1d99,_0x34c1cc){var _0x31cfc4=_0x1de777;super(),this['_config']=_0x26018f,this[_0x31cfc4(0x1bb)]=_0x4e1d99,this[_0x31cfc4(0x1ea)]=_0x34c1cc;const {..._0xa96e02}=o[_0x31cfc4(0x1fd)]({},x,this[_0x31cfc4(0x265)]);this[_0x31cfc4(0x1ea)][_0x31cfc4(0x1b7)]($,_0xa96e02);}[_0x1de777(0x202)](){var _0x5c78a3=_0x1de777;o[_0x5c78a3(0x1c0)](this[_0x5c78a3(0x1bb)],o[_0x5c78a3(0x23f)]([[O],[exports['LiveShareController']],[E],[exports[_0x5c78a3(0x1a4)]]],this['_config'][_0x5c78a3(0x240)])),o[_0x5c78a3(0x203)](this[_0x5c78a3(0x1bb)],[[E]]);}[_0x1de777(0x259)](){var _0x131297=_0x1de777;o['touchDependencies'](this['_injector'],[[exports[_0x131297(0x1a4)]]]);}},T(exports[_0x1de777(0x1e3)],_0x1de777(0x1b1),o[_0x1de777(0x1a7)]['UNIVER_UNKNOWN']),T(exports[_0x1de777(0x1e3)],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o[_0x1de777(0x1c9)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x1de777(0x1db)](o['Injector'])),N(0x2,o[_0x1de777(0x1b0)])],exports['UniverLiveSharePlugin']),exports[_0x1de777(0x273)]=A,exports[_0x1de777(0x224)]=O,exports[_0x1de777(0x251)]=h;
|
|
1
|
+
'use strict';var _0x30d330=_0x4688;(function(_0x1e264b,_0x7d0d29){var _0x4e9ca4=_0x4688,_0x23c793=_0x1e264b();while(!![]){try{var _0x49030c=parseInt(_0x4e9ca4(0x246))/0x1*(parseInt(_0x4e9ca4(0x242))/0x2)+parseInt(_0x4e9ca4(0x1f5))/0x3*(parseInt(_0x4e9ca4(0x1cd))/0x4)+parseInt(_0x4e9ca4(0x1f2))/0x5+parseInt(_0x4e9ca4(0x22a))/0x6+-parseInt(_0x4e9ca4(0x220))/0x7+parseInt(_0x4e9ca4(0x222))/0x8+-parseInt(_0x4e9ca4(0x23b))/0x9;if(_0x49030c===_0x7d0d29)break;else _0x23c793['push'](_0x23c793['shift']());}catch(_0x159652){_0x23c793['push'](_0x23c793['shift']());}}}(_0x1e4b,0x888bb));var U=Object['defineProperty'],F=(_0x29c24e,_0x57570d,_0x4f151c)=>_0x57570d in _0x29c24e?U(_0x29c24e,_0x57570d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f151c}):_0x29c24e[_0x57570d]=_0x4f151c,v=(_0x1e317a,_0x2c0259,_0xb02bb1)=>F(_0x1e317a,typeof _0x2c0259!=_0x30d330(0x25f)?_0x2c0259+'':_0x2c0259,_0xb02bb1);Object[_0x30d330(0x241)](exports,Symbol[_0x30d330(0x21a)],{'value':_0x30d330(0x21d)});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'),$=_0x30d330(0x28c),x={};class O extends o[_0x30d330(0x276)]{constructor(){var _0x390d05=_0x30d330;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x390d05(0x1e9),new Set());}[_0x30d330(0x20a)](_0x562450){var _0x27e82d=_0x30d330;return this[_0x27e82d(0x1f1)][_0x27e82d(0x23a)](_0x562450),o[_0x27e82d(0x280)](()=>this[_0x27e82d(0x1f1)]['delete'](_0x562450));}[_0x30d330(0x1fb)](_0x315ca1){var _0x378160=_0x30d330;return this['_reporters'][_0x378160(0x23a)](_0x315ca1),o[_0x378160(0x280)](()=>this[_0x378160(0x1e9)][_0x378160(0x25a)](_0x315ca1));}[_0x30d330(0x206)](_0x44d895){var _0xe9f7bd=_0x30d330;return this[_0xe9f7bd(0x1f1)][_0xe9f7bd(0x24b)](_0x44d895);}[_0x30d330(0x277)](_0x4b6451){var _0x5bdc63=_0x30d330;return Array[_0x5bdc63(0x25b)](this[_0x5bdc63(0x1e9)])['map'](_0x3a4269=>_0x3a4269(_0x4b6451));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x3e784e,_0x40b063,_0x28aadc,_0x31444c)=>{var _0x2366cd=_0x30d330;for(var _0x4333b4=_0x31444c>0x1?void 0x0:_0x31444c?H(_0x40b063,_0x28aadc):_0x40b063,_0xbf033f=_0x3e784e[_0x2366cd(0x213)]-0x1,_0x36cf3f;_0xbf033f>=0x0;_0xbf033f--)(_0x36cf3f=_0x3e784e[_0xbf033f])&&(_0x4333b4=_0x36cf3f(_0x4333b4)||_0x4333b4);return _0x4333b4;},k=(_0x50a2ce,_0x102c27)=>(_0x6ac557,_0x49f17c)=>_0x102c27(_0x6ac557,_0x49f17c,_0x50a2ce);let E=class extends o[_0x30d330(0x276)]{constructor(_0x5f3eaf){super(),this['_liveShareService']=_0x5f3eaf,this['_init']();}[_0x30d330(0x1e3)](){var _0x2f4c3c=_0x30d330;[w['SetZoomRatioOperation']['id'],w['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x2f4c3c(0x218)](_0x5d1fa9=>{var _0x5c3a1d=_0x2f4c3c;this['disposeWithMe'](this[_0x5c3a1d(0x1dc)][_0x5c3a1d(0x20a)](_0x5d1fa9));});}};E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0xa209f6=_0x30d330;return u=Object[_0xa209f6(0x24d)]||function(_0x2bc454){var _0x2255c6=_0xa209f6;for(var _0x3d645d,_0x474043=0x1,_0x331fc9=arguments[_0x2255c6(0x213)];_0x474043<_0x331fc9;_0x474043++){_0x3d645d=arguments[_0x474043];for(var _0x9c2614 in _0x3d645d)Object[_0x2255c6(0x26e)][_0x2255c6(0x1ca)][_0x2255c6(0x298)](_0x3d645d,_0x9c2614)&&(_0x2bc454[_0x9c2614]=_0x3d645d[_0x9c2614]);}return _0x2bc454;},u[_0xa209f6(0x1e2)](this,arguments);},M=function(_0x5324c5,_0x2eb2c1){var _0x6da4f4=_0x30d330,_0x5ed432={};for(var _0x3a8e6b in _0x5324c5)Object['prototype']['hasOwnProperty'][_0x6da4f4(0x298)](_0x5324c5,_0x3a8e6b)&&_0x2eb2c1[_0x6da4f4(0x27c)](_0x3a8e6b)<0x0&&(_0x5ed432[_0x3a8e6b]=_0x5324c5[_0x3a8e6b]);if(_0x5324c5!=null&&typeof Object[_0x6da4f4(0x20d)]=='function'){for(var _0x15e10=0x0,_0x3a8e6b=Object[_0x6da4f4(0x20d)](_0x5324c5);_0x15e10<_0x3a8e6b[_0x6da4f4(0x213)];_0x15e10++)_0x2eb2c1['indexOf'](_0x3a8e6b[_0x15e10])<0x0&&Object[_0x6da4f4(0x26e)][_0x6da4f4(0x25c)][_0x6da4f4(0x298)](_0x5324c5,_0x3a8e6b[_0x15e10])&&(_0x5ed432[_0x3a8e6b[_0x15e10]]=_0x5324c5[_0x3a8e6b[_0x15e10]]);}return _0x5ed432;},j=f[_0x30d330(0x24c)](function(_0x5c6c4e,_0x53f2e1){var _0x1351c4=_0x30d330,_0x1d4036=_0x5c6c4e['icon'],_0x4585e4=_0x5c6c4e['id'],_0x3a599c=_0x5c6c4e[_0x1351c4(0x259)],_0x111ec7=_0x5c6c4e[_0x1351c4(0x269)],_0x72e2ac=M(_0x5c6c4e,[_0x1351c4(0x27e),'id',_0x1351c4(0x259),_0x1351c4(0x269)]),_0x1ce169=_0x1351c4(0x1f0)['concat'](_0x4585e4,'\x20')[_0x1351c4(0x26a)](_0x3a599c||'')[_0x1351c4(0x20c)](),_0x219d88=f['useRef']('_'[_0x1351c4(0x26a)](G()));return y(_0x1d4036,''[_0x1351c4(0x26a)](_0x4585e4),{'defIds':_0x1d4036['defIds'],'idSuffix':_0x219d88['current']},u({'ref':_0x53f2e1,'className':_0x1ce169},_0x72e2ac),_0x111ec7);});function y(_0x2df7b5,_0x45268c,_0x2b6b3c,_0x4a0fc7,_0x274a72){var _0x561afc=_0x30d330;return f[_0x561afc(0x1cb)](_0x2df7b5['tag'],u(u({'key':_0x45268c},q(_0x2df7b5,_0x2b6b3c,_0x274a72)),_0x4a0fc7),(W(_0x2df7b5,_0x2b6b3c)[_0x561afc(0x238)]||[])[_0x561afc(0x214)](function(_0x40f0f1,_0xe03461){var _0x207304=_0x561afc;return y(_0x40f0f1,''['concat'](_0x45268c,'-')[_0x207304(0x26a)](_0x2df7b5[_0x207304(0x22f)],'-')[_0x207304(0x26a)](_0xe03461),_0x2b6b3c,void 0x0,_0x274a72);}));}function q(_0x3bc75f,_0x52821d,_0x53ab80){var _0x428ff4=_0x30d330,_0x45ce81=u({},_0x3bc75f[_0x428ff4(0x279)]);_0x53ab80!=null&&_0x53ab80[_0x428ff4(0x22d)]&&_0x45ce81[_0x428ff4(0x235)]===_0x428ff4(0x22d)&&(_0x45ce81[_0x428ff4(0x235)]=_0x53ab80['colorChannel1']),_0x3bc75f[_0x428ff4(0x22f)]===_0x428ff4(0x1fe)&&_0x45ce81['id']&&(_0x45ce81['id']=_0x45ce81['id']+_0x52821d['idSuffix']),Object[_0x428ff4(0x226)](_0x45ce81)[_0x428ff4(0x218)](function(_0x5cf58a){var _0x4db2b5=_0x428ff4,_0x28697c=_0x5cf58a[0x0],_0x1dcc7f=_0x5cf58a[0x1];_0x28697c===_0x4db2b5(0x1fe)&&typeof _0x1dcc7f=='string'&&(_0x45ce81[_0x28697c]=_0x1dcc7f[_0x4db2b5(0x1f3)](/url\(#(.*)\)/,_0x4db2b5(0x1bc)[_0x4db2b5(0x26a)](_0x52821d[_0x4db2b5(0x1e1)],')')));});var _0x4bd980=_0x52821d[_0x428ff4(0x200)];return!_0x4bd980||_0x4bd980['length']===0x0||(_0x3bc75f[_0x428ff4(0x22f)]===_0x428ff4(0x296)&&_0x45ce81[_0x428ff4(0x1b9)]&&(_0x45ce81[_0x428ff4(0x1b9)]=_0x45ce81[_0x428ff4(0x1b9)]+_0x52821d[_0x428ff4(0x1e1)]),Object['entries'](_0x45ce81)[_0x428ff4(0x218)](function(_0x5f493e){var _0x47ecd4=_0x428ff4,_0x21265=_0x5f493e[0x0],_0x52a0c0=_0x5f493e[0x1];typeof _0x52a0c0==_0x47ecd4(0x1b7)&&(_0x45ce81[_0x21265]=_0x52a0c0[_0x47ecd4(0x1f3)](/url\(#(.*)\)/,_0x47ecd4(0x1bc)['concat'](_0x52821d[_0x47ecd4(0x1e1)],')')));})),_0x45ce81;}function W(_0x59b9b0,_0x38d943){var _0x2aa4c6=_0x30d330,_0x535545,_0x57beae=_0x38d943['defIds'];return!_0x57beae||_0x57beae[_0x2aa4c6(0x213)]===0x0?_0x59b9b0:_0x59b9b0[_0x2aa4c6(0x22f)]===_0x2aa4c6(0x233)&&(!((_0x535545=_0x59b9b0[_0x2aa4c6(0x238)])===null||_0x535545===void 0x0)&&_0x535545['length'])?u(u({},_0x59b9b0),{'children':_0x59b9b0['children']['map'](function(_0x2f97f1){var _0x3b5a06=_0x2aa4c6;return typeof _0x2f97f1['attrs']['id']==_0x3b5a06(0x1b7)&&_0x57beae&&_0x57beae[_0x3b5a06(0x1da)](_0x2f97f1[_0x3b5a06(0x279)]['id'])?u(u({},_0x2f97f1),{'attrs':u(u({},_0x2f97f1[_0x3b5a06(0x279)]),{'id':_0x2f97f1[_0x3b5a06(0x279)]['id']+_0x38d943[_0x3b5a06(0x1e1)]})}):_0x2f97f1;})}):_0x59b9b0;}function G(){var _0xca4ed4=_0x30d330;return Math[_0xca4ed4(0x21b)]()[_0xca4ed4(0x1cc)](0x24)[_0xca4ed4(0x202)](0x2,0x8);}j[_0x30d330(0x27f)]=_0x30d330(0x293);var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x30d330(0x290),'width':_0x30d330(0x1fa),'height':_0x30d330(0x1fa)},'children':[{'tag':_0x30d330(0x1cf),'attrs':{'fill':_0x30d330(0x209),'d':_0x30d330(0x1d9)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x30d330(0x1de),'fillRule':'evenodd','clipRule':_0x30d330(0x286)}}]},P=f[_0x30d330(0x24c)](function(_0x3c8d5b,_0x1d4a04){var _0x4b753c=_0x30d330;return f['createElement'](j,Object[_0x4b753c(0x24d)]({},_0x3c8d5b,{'id':_0x4b753c(0x1e0),'ref':_0x1d4a04,'icon':B}));});P['displayName']=_0x30d330(0x251);var Y=Object[_0x30d330(0x1e8)],R=(_0xebd87,_0x36428e,_0x471026,_0x110d98)=>{var _0x3f3f87=_0x30d330;for(var _0xb8f8da=_0x110d98>0x1?void 0x0:_0x110d98?Y(_0x36428e,_0x471026):_0x36428e,_0x463c87=_0xebd87[_0x3f3f87(0x213)]-0x1,_0x77e0da;_0x463c87>=0x0;_0x463c87--)(_0x77e0da=_0xebd87[_0x463c87])&&(_0xb8f8da=_0x77e0da(_0xb8f8da)||_0xb8f8da);return _0xb8f8da;},S=(_0x1f1c26,_0x15d35c)=>(_0xed857a,_0x558c1f)=>_0x15d35c(_0xed857a,_0x558c1f,_0x1f1c26);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x12efe5,_0x408910,_0x206236){var _0x13079f=_0x30d330;super(),v(this,_0x13079f(0x1d4),new Map()),(this['_univerInstanceService']=_0x12efe5,this[_0x13079f(0x20e)]=_0x408910,this[_0x13079f(0x210)]=_0x206236,this[_0x13079f(0x1e3)]());}async['getLiveShareCoordinator'](_0x143632){var _0x5855c6=_0x30d330;return this[_0x5855c6(0x1d4)][_0x5855c6(0x24b)](_0x143632)||await this[_0x5855c6(0x249)](_0x143632),this[_0x5855c6(0x1d4)][_0x5855c6(0x234)](_0x143632);}['_init'](){var _0x279b4e=_0x30d330;this[_0x279b4e(0x1b8)][_0x279b4e(0x208)](o[_0x279b4e(0x245)][_0x279b4e(0x270)])[_0x279b4e(0x1ff)](b['takeUntil'](this[_0x279b4e(0x285)]))[_0x279b4e(0x264)](async _0x814f52=>{var _0x4ea2b6=_0x279b4e;const _0x92fa7=_0x814f52[_0x4ea2b6(0x203)]();this[_0x4ea2b6(0x1d4)][_0x4ea2b6(0x24b)](_0x92fa7)||this[_0x4ea2b6(0x249)](_0x92fa7);}),this[_0x279b4e(0x1b8)][_0x279b4e(0x216)](o[_0x279b4e(0x245)][_0x279b4e(0x270)])[_0x279b4e(0x1ff)](b[_0x279b4e(0x1c1)](this[_0x279b4e(0x285)]))['subscribe'](_0x4d04b7=>{var _0x101c55=_0x279b4e;const _0x14588c=_0x4d04b7['getUnitId'](),_0x270f51=this[_0x101c55(0x1d4)][_0x101c55(0x234)](_0x14588c);_0x270f51==null||_0x270f51[_0x101c55(0x1f4)]();});}async[_0x30d330(0x249)](_0x223b4d){var _0x156920=_0x30d330;const _0x1274ec=await this[_0x156920(0x210)][_0x156920(0x262)](_0x223b4d),_0x16f5ef=this['_injector'][_0x156920(0x289)](exports['LiveShareCoordinator'],_0x223b4d,_0x1274ec);return _0x16f5ef['init'](),this[_0x156920(0x1d4)][_0x156920(0x27d)](_0x223b4d,_0x16f5ef),_0x16f5ef;}},exports[_0x30d330(0x1df)]=R([S(0x0,o[_0x30d330(0x1c8)]),S(0x1,o[_0x30d330(0x1ea)](o[_0x30d330(0x295)])),S(0x2,o['Inject'](m[_0x30d330(0x291)]))],exports['LiveShareController']);var h=(_0x266dd8=>(_0x266dd8[_0x30d330(0x256)]=_0x30d330(0x201),_0x266dd8['IDLE']='idle',_0x266dd8[_0x30d330(0x1c2)]=_0x30d330(0x1b5),_0x266dd8[_0x30d330(0x240)]=_0x30d330(0x294),_0x266dd8['PRESENTING']='presenting',_0x266dd8))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x30d330(0x26d)]=class extends o['RxDisposable']{constructor(_0x36e6ee,_0x382f02,_0x4d643e,_0x43e950,_0x32aa66){var _0x18f349=_0x30d330;super(),v(this,_0x18f349(0x205),new D[(_0x18f349(0x212))](_0x18f349(0x1ee))),v(this,'status$',this[_0x18f349(0x205)]['asObservable']()),v(this,'_init',!0x1),v(this,'_commandDisposable',null),v(this,_0x18f349(0x25d),null),(this[_0x18f349(0x292)]=_0x36e6ee,this['_collabSession']=_0x382f02,this[_0x18f349(0x223)]=_0x4d643e,this[_0x18f349(0x1dc)]=_0x43e950,this[_0x18f349(0x28d)]=_0x32aa66);}get['_status'](){var _0x85805a=_0x30d330;return this[_0x85805a(0x205)][_0x85805a(0x1ef)]();}[_0x30d330(0x1f4)](){var _0x254f10=_0x30d330,_0x29df66;(_0x29df66=this['_commandDisposable'])==null||_0x29df66[_0x254f10(0x1f4)](),this[_0x254f10(0x205)][_0x254f10(0x28b)](_0x254f10(0x1ee)),this['_status$'][_0x254f10(0x24e)]();}[_0x30d330(0x1b6)](){var _0x4f5804=_0x30d330;this[_0x4f5804(0x1e3)]||(this['_init']=!0x0,this['_collabSession'][_0x4f5804(0x1f6)][_0x4f5804(0x1ff)](b[_0x4f5804(0x1c1)](this[_0x4f5804(0x285)]))[_0x4f5804(0x264)](_0x1d29a8=>{var _0x24ef1d=_0x4f5804;switch(_0x1d29a8){case m[_0x24ef1d(0x254)][_0x24ef1d(0x256)]:this[_0x24ef1d(0x1ce)]();break;case m[_0x24ef1d(0x254)][_0x24ef1d(0x22c)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x4f5804(0x219)][_0x4f5804(0x1ff)](b['takeUntil'](this[_0x4f5804(0x285)]))[_0x4f5804(0x264)](_0x4f7ee3=>{var _0x334f9f=_0x4f5804;const {eventID:_0x4e8996}=_0x4f7ee3;switch(_0x4e8996){case _[_0x334f9f(0x272)][_0x334f9f(0x20f)]:this[_0x334f9f(0x281)](_0x4f7ee3);break;case _[_0x334f9f(0x272)][_0x334f9f(0x263)]:this[_0x334f9f(0x26c)](_0x4f7ee3);break;case _[_0x334f9f(0x272)][_0x334f9f(0x261)]:this[_0x334f9f(0x247)]();break;case _[_0x334f9f(0x272)][_0x334f9f(0x282)]:this[_0x334f9f(0x1ba)](_0x4f7ee3);break;}}));}[_0x30d330(0x1d5)](){var _0x4e5612=_0x30d330;this[_0x4e5612(0x1db)][_0x4e5612(0x28f)]({'eventID':_['CollaborationEvent'][_0x4e5612(0x288)],'data':{'unitID':this[_0x4e5612(0x292)],'userID':this[_0x4e5612(0x1db)][_0x4e5612(0x1ed)]()}},this[_0x4e5612(0x292)]);}[_0x30d330(0x1e7)](){var _0x55bcee=_0x30d330;this[_0x55bcee(0x221)]==='presenting'&&(this[_0x55bcee(0x205)][_0x55bcee(0x28b)]('idle'),this[_0x55bcee(0x1db)][_0x55bcee(0x28f)]({'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x55bcee(0x292)]}},this[_0x55bcee(0x292)]));}[_0x30d330(0x1eb)](){var _0xb129b5=_0x30d330;this[_0xb129b5(0x221)]===_0xb129b5(0x294)&&(this['_status$']['next'](_0xb129b5(0x1b5)),this[_0xb129b5(0x275)]());}[_0x30d330(0x28e)](){var _0x4256a7=_0x30d330;this['_status']===_0x4256a7(0x1b5)&&this[_0x4256a7(0x215)]();}[_0x30d330(0x281)](_0x534a51){var _0x3edea7=_0x30d330;const {presenter:_0x2b7b74}=_0x534a51[_0x3edea7(0x224)],_0x47f989=this[_0x3edea7(0x1db)][_0x3edea7(0x1ed)]();this[_0x3edea7(0x25d)]=_0x2b7b74,_0x2b7b74===_0x47f989?(this[_0x3edea7(0x215)](),this[_0x3edea7(0x1c9)]()):this[_0x3edea7(0x221)]!==_0x3edea7(0x294)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x30d330(0x278)](){var _0x5a4144=_0x30d330;const _0x3c72b3={'eventID':_[_0x5a4144(0x272)][_0x5a4144(0x1bb)]};this[_0x5a4144(0x1db)][_0x5a4144(0x28f)](_0x3c72b3,this['_unitID']);}[_0x30d330(0x247)](){var _0x1cff38=_0x30d330;this[_0x1cff38(0x25d)]=null,this['_status']!==_0x1cff38(0x227)&&this[_0x1cff38(0x1f7)]();}[_0x30d330(0x1ba)](_0xd0618c){var _0x4f8dc0=_0x30d330;if(this[_0x4f8dc0(0x221)]===_0x4f8dc0(0x1b5)&&this['_presenter']===_0xd0618c[_0x4f8dc0(0x224)]['memberID']){const _0x393446=_['parseProtocolChangeset'](_0xd0618c[_0x4f8dc0(0x224)])[_0x4f8dc0(0x23d)][_0x4f8dc0(0x27a)]()[_0x4f8dc0(0x211)](_0x4729aa=>_0x4729aa['id']===C[_0x4f8dc0(0x1be)]['id']);if(_0x393446){const _0xd06355=_0x393446[_0x4f8dc0(0x284)][_0x4f8dc0(0x297)],_0x6b38a6=_0x393446['params'][_0x4f8dc0(0x225)]['id'];setTimeout(()=>{var _0x5c3778=_0x4f8dc0;this['_commandService']['executeCommand'](C[_0x5c3778(0x26f)]['id'],{'unitId':_0xd06355,'subUnitId':_0x6b38a6},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x450d2c=_0x30d330;this['_status$'][_0x450d2c(0x28b)](_0x450d2c(0x227));const _0x2bcb65=new Map(),_0x35aad3=this['_commandDisposable']=new o[(_0x450d2c(0x217))]();_0x35aad3[_0x450d2c(0x23a)](o[_0x450d2c(0x280)](()=>{var _0x79082f=_0x450d2c;_0x2bcb65['forEach'](_0x21566b=>_0x21566b['complete']()),_0x2bcb65[_0x79082f(0x228)]();})),_0x35aad3['add'](this[_0x450d2c(0x28d)][_0x450d2c(0x273)](_0x51639a=>{var _0x2f1a58=_0x450d2c,_0x2d2e81;if(_0x51639a[_0x2f1a58(0x24a)]!==o[_0x2f1a58(0x204)]['OPERATION']||!this[_0x2f1a58(0x1dc)][_0x2f1a58(0x206)](_0x51639a['id']))return;const {id:_0x3e9926}=_0x51639a;let _0x39eba2;_0x2bcb65[_0x2f1a58(0x24b)](_0x3e9926)?_0x39eba2=_0x2bcb65[_0x2f1a58(0x234)](_0x3e9926):(_0x39eba2=new D['Subject'](),_0x2bcb65['set'](_0x3e9926,_0x39eba2),_0x39eba2[_0x2f1a58(0x1ff)](b[_0x2f1a58(0x23e)]((_0x2d2e81=this['_configService']['getConfig'](Z))!=null?_0x2d2e81:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4af16f=>{var _0x4090c0=_0x2f1a58;this[_0x4090c0(0x1db)][_0x4090c0(0x28f)]({'eventID':_['CollaborationEvent'][_0x4090c0(0x263)],'data':{'unitID':this[_0x4090c0(0x292)],'operations':{[_0x4af16f['id']]:{'id':_0x4af16f['id'],'params':JSON[_0x4090c0(0x230)](_0x4af16f[_0x4090c0(0x284)])}}}},this[_0x4090c0(0x292)]);})),_0x39eba2['next'](_0x51639a);})),this['_liveShareService'][_0x450d2c(0x277)](this['_unitID'])[_0x450d2c(0x218)](_0x441868=>this[_0x450d2c(0x1db)][_0x450d2c(0x28f)]({'eventID':_['CollaborationEvent'][_0x450d2c(0x263)],'data':{'unitID':this[_0x450d2c(0x292)],'operations':{[_0x441868['id']]:{'id':_0x441868['id'],'params':JSON[_0x450d2c(0x230)](_0x441868[_0x450d2c(0x284)])}}}},this['_unitID']));}[_0x30d330(0x1c0)](){var _0x197f06=_0x30d330,_0x3f6670;this['_status$'][_0x197f06(0x28b)](_0x197f06(0x1ee)),(_0x3f6670=this['_commandDisposable'])==null||_0x3f6670['dispose'](),this[_0x197f06(0x258)]=null;}[_0x30d330(0x275)](){var _0xd1d9a8=_0x30d330,_0x35e2ea;(_0x35e2ea=this['_commandDisposable'])==null||_0x35e2ea[_0xd1d9a8(0x1f4)](),this[_0xd1d9a8(0x205)]['next'](_0xd1d9a8(0x1b5));}[_0x30d330(0x1f7)](){var _0x2a928e=_0x30d330,_0x18fd63;this['_status$'][_0x2a928e(0x28b)](_0x2a928e(0x1ee)),(_0x18fd63=this['_commandDisposable'])==null||_0x18fd63[_0x2a928e(0x1f4)](),this[_0x2a928e(0x258)]=null;}[_0x30d330(0x215)](){var _0x189953=_0x30d330,_0x3c68c1;this[_0x189953(0x205)][_0x189953(0x28b)](_0x189953(0x294)),(_0x3c68c1=this['_commandDisposable'])==null||_0x3c68c1[_0x189953(0x1f4)]();}[_0x30d330(0x26c)](_0x499e37){var _0x3d33dc=_0x30d330;if([_0x3d33dc(0x227),_0x3d33dc(0x294),_0x3d33dc(0x201)][_0x3d33dc(0x1da)](this[_0x3d33dc(0x221)])||!_0x499e37[_0x3d33dc(0x224)][_0x3d33dc(0x239)]||_0x499e37[_0x3d33dc(0x224)][_0x3d33dc(0x239)]===this[_0x3d33dc(0x1db)][_0x3d33dc(0x1ed)]())return;this[_0x3d33dc(0x221)]===_0x3d33dc(0x1ee)&&this[_0x3d33dc(0x275)]();const _0x538a1b=_0x499e37[_0x3d33dc(0x224)][_0x3d33dc(0x244)];Object[_0x3d33dc(0x268)](_0x538a1b)['forEach'](_0x45ea04=>{var _0x210807=_0x3d33dc;this[_0x210807(0x28d)][_0x210807(0x20b)](_0x45ea04['id'],_0x45ea04[_0x210807(0x284)]?JSON[_0x210807(0x1fd)](_0x45ea04['params']):null,{'fromCollab':!0x0});});}[_0x30d330(0x1ce)](){var _0x439012=_0x30d330,_0x3ed6db;this[_0x439012(0x205)][_0x439012(0x28b)]('offline'),(_0x3ed6db=this['_commandDisposable'])==null||_0x3ed6db[_0x439012(0x1f4)]();}[_0x30d330(0x231)](){var _0x1978fb=_0x30d330;this[_0x1978fb(0x205)][_0x1978fb(0x28b)](_0x1978fb(0x1ee)),this['_fetchOperations']();}},exports[_0x30d330(0x26d)]=R([S(0x2,o[_0x30d330(0x1c3)]),S(0x3,o[_0x30d330(0x1ea)](O)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x5ab759=_0x30d330;const _0x24b935=p[_0x5ab759(0x253)](exports[_0x5ab759(0x1df)]),_0x1b35c1=p['useDependency'](o['IUniverInstanceService']),_0x5ae746=p[_0x5ab759(0x1e6)](()=>_0x1b35c1[_0x5ab759(0x257)](o[_0x5ab759(0x245)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x25e897,_0x1e24dc]=f[_0x5ab759(0x1e4)](null),[_0x105c18,_0x37610c]=f[_0x5ab759(0x1e4)](h['IDLE']),_0x589e07=f[_0x5ab759(0x265)](null);return f[_0x5ab759(0x1dd)](()=>(_0x5ae746&&_0x24b935[_0x5ab759(0x1d6)](_0x5ae746[_0x5ab759(0x203)]())['then'](_0x5391e0=>{var _0x572f70=_0x5ab759;_0x1e24dc(_0x5391e0),_0x589e07[_0x572f70(0x252)]=_0x5391e0[_0x572f70(0x243)][_0x572f70(0x264)](_0x318ed2=>{_0x37610c(_0x318ed2);});}),()=>{var _0x442cc4=_0x5ab759,_0xd617b4;(_0xd617b4=_0x589e07['current'])==null||_0xd617b4[_0x442cc4(0x22e)](),_0x589e07[_0x442cc4(0x252)]=null;}),[_0x5ae746,_0x24b935]),_0x25e897?l['jsx'](g['Dropdown'],{'align':_0x5ab759(0x1d8),'disabled':_0x105c18===h['OFFLINE'],'className':_0x5ab759(0x24f),'overlay':l[_0x5ab759(0x1c5)](K,{'status':_0x105c18,'coordinator':_0x25e897}),'children':l[_0x5ab759(0x1c5)]('button',{'className':g[_0x5ab759(0x27b)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x105c18===h[_0x5ab759(0x256)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x105c18!==h[_0x5ab759(0x256)]}),'type':'button','children':l[_0x5ab759(0x1c5)](P,{'className':_0x5ab759(0x28a)})})}):null;}function K(_0x5cd786){var _0x35c638=_0x30d330;const {status:_0x1b627f,coordinator:_0x5e0b02}=_0x5cd786;switch(_0x1b627f){case h[_0x35c638(0x274)]:return l['jsx'](z,{'coordinator':_0x5e0b02});case h['FOLLOWING']:return l[_0x35c638(0x1c5)](Q,{'coordinator':_0x5e0b02});case h[_0x35c638(0x240)]:return l[_0x35c638(0x1c5)](X,{'coordinator':_0x5e0b02});case h['OFFLINE']:return l[_0x35c638(0x1c5)](te,{});case h[_0x35c638(0x21e)]:return l[_0x35c638(0x1c5)](ee,{'coordinator':_0x5e0b02});default:return null;}}function z(_0x458b15){var _0x2ce995=_0x30d330;const {coordinator:_0x5b1971}=_0x458b15;return l[_0x2ce995(0x287)](l[_0x2ce995(0x229)],{'children':[l[_0x2ce995(0x1c5)](_0x2ce995(0x248),{'className':_0x2ce995(0x1c4),'children':_0x2ce995(0x255)}),l[_0x2ce995(0x1c5)](g[_0x2ce995(0x1d0)],{'onClick':()=>_0x5b1971[_0x2ce995(0x1d5)](),'children':_0x2ce995(0x21f)})]});}function _0x1e4b(){var _0x343619=['UniverIcon','not-following','Injector','use','unitId','call','following','init','string','_univerInstanceService','xlink:href','_handleNewChangeSets','LIVESHARE_FETCH_OPERATIONS','url(#$1','default','InsertSheetMutation','connectInjector','_stopPresenting','takeUntil','FOLLOWING','IConfigService','univer-mb-3\x20univer-w-full\x20univer-text-sm','jsx','text','UNIVER_LIVE_SHARE_PLUGIN','IUniverInstanceService','_startPresenting','hasOwnProperty','createElement','toString','148YZLNie','_handleOffline','path','Button','Stop\x20following','UniverLiveSharePlugin','BuiltInUIPart','_entities','tryStartPresenting','getLiveShareCoordinator','pluginName','end','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','includes','_collabSession','_liveShareService','useEffect','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','LiveShareController','live-share-icon','idSuffix','apply','_init','useState','Start\x20following','useObservable','stopPresenting','getOwnPropertyDescriptor','_reporters','Inject','startFollowing','You\x27are\x20offline.','getMemberID','idle','getValue','univerjs-icon\x20univerjs-icon-','_sharedOperations','3218325DoafNq','replace','dispose','41778MrYFqr','sessionStatus$','_beIdle','override','_uiPartsService','1em','registerInitialStateReporter','_mountLiveShare','parse','mask','pipe','defIds','offline','substring','getUnitId','CommandType','_status$','shouldShareOperation','Stop\x20presenting','getTypeOfUnitAdded$','currentColor','registerSharedOperation','executeCommand','trim','getOwnPropertySymbols','_injector','LIVESHARE_NEW_HOST','_collabSessionService','find','BehaviorSubject','length','map','_stopFollowing','getTypeOfUnitDisposed$','DisposableCollection','forEach','event$','toStringTag','random','You\x27re\x20presenting\x20the\x20document','Module','PRESENTING','Start','3752938AGfXtm','_status','2542784MiQUlW','_configService','data','sheet','entries','presenting','clear','Fragment','4690512KAslTr','mergeOverrideWithDependencies','ONLINE','colorChannel1','unsubscribe','tag','stringify','_handleOnline','LiveShareService','defs','get','fill','onRendered','HEADER_MENU','children','presenter','add','11366019ZNXpZq','LiveShareStatus','mutations','throttleTime','DependentOn','NOT_FOLLOWING','defineProperty','58SaBvTe','status$','operations','UniverInstanceType','3441fqcKUq','_handleTerminate','div','_startLiveShareCoordinator','type','has','forwardRef','assign','complete','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','registerDependencies','LiveShareIcon','current','useDependency','SessionStatus','Present\x20this\x20document','OFFLINE','getCurrentTypeOfUnit$','_commandDisposable','className','delete','from','propertyIsEnumerable','_presenter','DesktopLiveShareController','symbol','touchDependencies','LIVESHARE_TERMINATE','requireSession','LIVESHARE_OPERATION','subscribe','useRef','disposeWithMe','onStarting','values','extend','concat','_config','_handleOperation','LiveShareCoordinator','prototype','SetWorksheetActiveOperation','UNIVER_SHEET','LiveShare','CollaborationEvent','onCommandExecuted','IDLE','_startFollowing','Disposable','getInitialStates','_fetchOperations','attrs','reverse','clsx','indexOf','set','icon','displayName','toDisposable','_handleNewHost','NEW_CHANGESETS','UniverCollaborationClientPlugin','params','dispose$','evenodd','jsxs','LIVESHARE_REQUEST_HOST','createInstance','univer-size-4','next','live-share.config','_commandService','stopFollowing','send','0\x200\x2017\x2017','CollaborationSessionService','_unitID'];_0x1e4b=function(){return _0x343619;};return _0x1e4b();}function Q(_0x575ed6){var _0x3c756b=_0x30d330;const {coordinator:_0x5bc77d}=_0x575ed6;return l['jsxs'](l[_0x3c756b(0x229)],{'children':[l[_0x3c756b(0x1c5)]('div',{'className':_0x3c756b(0x1c4),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x3c756b(0x1c5)](g['Button'],{'onClick':()=>_0x5bc77d[_0x3c756b(0x28e)](),'children':_0x3c756b(0x1d1)})]});}function X(_0x36ebc4){var _0x5ac018=_0x30d330;const {coordinator:_0x38c55a}=_0x36ebc4;return l[_0x5ac018(0x287)](l[_0x5ac018(0x229)],{'children':[l[_0x5ac018(0x1c5)]('div',{'className':_0x5ac018(0x1c4),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x5ac018(0x1c5)](g[_0x5ac018(0x1d0)],{'variant':_0x5ac018(0x1c6),'onClick':()=>_0x38c55a[_0x5ac018(0x1eb)](),'children':_0x5ac018(0x1e5)})]});}function ee(_0x24b647){var _0x1d5b2e=_0x30d330;const {coordinator:_0xe37b8e}=_0x24b647;return l[_0x1d5b2e(0x287)](l['Fragment'],{'children':[l['jsx'](_0x1d5b2e(0x248),{'className':_0x1d5b2e(0x1c4),'children':_0x1d5b2e(0x21c)}),l[_0x1d5b2e(0x1c5)](g['Button'],{'variant':_0x1d5b2e(0x1bd),'onClick':()=>_0xe37b8e[_0x1d5b2e(0x1e7)](),'children':_0x1d5b2e(0x207)})]});}function _0x4688(_0x22ee93,_0x379301){var _0x1e4b43=_0x1e4b();return _0x4688=function(_0x468868,_0x47809c){_0x468868=_0x468868-0x1b5;var _0x4b2105=_0x1e4b43[_0x468868];return _0x4b2105;},_0x4688(_0x22ee93,_0x379301);}function te(){var _0x2329e8=_0x30d330;return l[_0x2329e8(0x1c5)](l[_0x2329e8(0x229)],{'children':_0x2329e8(0x1ec)});}var ie=Object[_0x30d330(0x1e8)],ne=(_0x556972,_0x1670d7,_0x15d3ec,_0x1a97cd)=>{var _0x2a23f9=_0x30d330;for(var _0x3522a8=_0x1a97cd>0x1?void 0x0:_0x1a97cd?ie(_0x1670d7,_0x15d3ec):_0x1670d7,_0x5a991b=_0x556972[_0x2a23f9(0x213)]-0x1,_0x35df4b;_0x5a991b>=0x0;_0x5a991b--)(_0x35df4b=_0x556972[_0x5a991b])&&(_0x3522a8=_0x35df4b(_0x3522a8)||_0x3522a8);return _0x3522a8;},L=(_0x5e1d99,_0x119d21)=>(_0x4199d1,_0xbf1dfe)=>_0x119d21(_0x4199d1,_0xbf1dfe,_0x5e1d99);exports['DesktopLiveShareController']=class extends o[_0x30d330(0x276)]{constructor(_0x1cac27,_0x45c86d){var _0x11d85b=_0x30d330;super(),this[_0x11d85b(0x20e)]=_0x1cac27,this[_0x11d85b(0x1f9)]=_0x45c86d,this[_0x11d85b(0x1fc)]();}['_mountLiveShare'](){var _0x1dfb21=_0x30d330;this[_0x1dfb21(0x266)](this[_0x1dfb21(0x1f9)]['registerComponent'](p[_0x1dfb21(0x1d3)][_0x1dfb21(0x237)],()=>p[_0x1dfb21(0x1bf)](A,this['_injector'])));}},exports[_0x30d330(0x25e)]=ne([L(0x0,o[_0x30d330(0x1ea)](o[_0x30d330(0x295)])),L(0x1,p['IUIPartsService'])],exports[_0x30d330(0x25e)]);var re=Object['defineProperty'],se=Object[_0x30d330(0x1e8)],oe=(_0x363990,_0x1270f8,_0x2faafb)=>_0x1270f8 in _0x363990?re(_0x363990,_0x1270f8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2faafb}):_0x363990[_0x1270f8]=_0x2faafb,ae=(_0x1107e,_0xfb7ed4,_0x90ee5f,_0x184b3e)=>{var _0xffe7=_0x30d330;for(var _0x57e7c7=_0x184b3e>0x1?void 0x0:_0x184b3e?se(_0xfb7ed4,_0x90ee5f):_0xfb7ed4,_0x4f12d5=_0x1107e[_0xffe7(0x213)]-0x1,_0xaa1ecd;_0x4f12d5>=0x0;_0x4f12d5--)(_0xaa1ecd=_0x1107e[_0x4f12d5])&&(_0x57e7c7=_0xaa1ecd(_0x57e7c7)||_0x57e7c7);return _0x57e7c7;},N=(_0x1860a1,_0xd985ab)=>(_0x1b8c98,_0x3bc3a1)=>_0xd985ab(_0x1b8c98,_0x3bc3a1,_0x1860a1),T=(_0x1a0fa7,_0x1823e3,_0x5ec695)=>oe(_0x1a0fa7,typeof _0x1823e3!=_0x30d330(0x25f)?_0x1823e3+'':_0x1823e3,_0x5ec695);const le=_0x30d330(0x1c7);exports[_0x30d330(0x1d2)]=class extends o['Plugin']{constructor(_0x1f4ce2=x,_0xbaa6c9,_0x509b9f){var _0x531a57=_0x30d330;super(),this[_0x531a57(0x26b)]=_0x1f4ce2,this[_0x531a57(0x20e)]=_0xbaa6c9,this[_0x531a57(0x223)]=_0x509b9f;const {..._0x447565}=o['merge']({},x,this['_config']);this['_configService']['setConfig']($,_0x447565);}[_0x30d330(0x267)](){var _0x3841d9=_0x30d330;o[_0x3841d9(0x250)](this[_0x3841d9(0x20e)],o[_0x3841d9(0x22b)]([[O],[exports[_0x3841d9(0x1df)]],[E],[exports['DesktopLiveShareController']]],this['_config'][_0x3841d9(0x1f8)])),o[_0x3841d9(0x260)](this[_0x3841d9(0x20e)],[[E]]);}[_0x30d330(0x236)](){var _0x79f46=_0x30d330;o['touchDependencies'](this[_0x79f46(0x20e)],[[exports[_0x79f46(0x25e)]]]);}},T(exports['UniverLiveSharePlugin'],_0x30d330(0x24a),o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x30d330(0x1d2)],_0x30d330(0x1d7),le),exports[_0x30d330(0x1d2)]=ae([o[_0x30d330(0x23f)](m[_0x30d330(0x283)]),N(0x1,o['Inject'](o[_0x30d330(0x295)])),N(0x2,o[_0x30d330(0x1c3)])],exports[_0x30d330(0x1d2)]),exports[_0x30d330(0x271)]=A,exports[_0x30d330(0x232)]=O,exports[_0x30d330(0x23c)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3eff67=_0x31ab;(function(_0x34e3dd,_0xd7c235){var _0x5c499f=_0x31ab,_0x194726=_0x34e3dd();while(!![]){try{var _0x16e3db=parseInt(_0x5c499f(0x1e2))/0x1+-parseInt(_0x5c499f(0x191))/0x2+parseInt(_0x5c499f(0x1cf))/0x3*(parseInt(_0x5c499f(0x168))/0x4)+-parseInt(_0x5c499f(0x1b8))/0x5*(parseInt(_0x5c499f(0x187))/0x6)+parseInt(_0x5c499f(0x1b6))/0x7+-parseInt(_0x5c499f(0x1ae))/0x8+parseInt(_0x5c499f(0x1a0))/0x9;if(_0x16e3db===_0xd7c235)break;else _0x194726['push'](_0x194726['shift']());}catch(_0x1ed860){_0x194726['push'](_0x194726['shift']());}}}(_0x1f46,0x9efd8));var q=Object[_0x3eff67(0x166)],z=(_0x5672ec,_0x4afd82,_0x3b2038)=>_0x4afd82 in _0x5672ec?q(_0x5672ec,_0x4afd82,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b2038}):_0x5672ec[_0x4afd82]=_0x3b2038,d=(_0x44d3ed,_0x5bcb97,_0x5a04a1)=>z(_0x44d3ed,typeof _0x5bcb97!=_0x3eff67(0x1d9)?_0x5bcb97+'':_0x5bcb97,_0x5a04a1);import{CollaborationSessionService as _0x3fb12e,SessionStatus as _0x1efbf3,UniverCollaborationClientPlugin as _0x10ce60}from'@univerjs-pro/collaboration-client';function _0x1f46(){var _0x18c72e=['path','use','idSuffix','LIVESHARE_OPERATION','hasOwnProperty','parse','getValue','13037319NXRNtn','getConfig','defs','length','memberID','complete','next','override','_configService','LIVESHARE_NEW_HOST','setConfig','UniverIcon','_startFollowing','dispose','4891152Reqask','status$','_mountLiveShare','icon','_reporters','_handleTerminate','clear','onStarting','2696883XAIoym','_sharedOperations','60xrnJUp','svg','_status$','You\x27re\x20following\x20the\x20presenter','_uiPartsService','UNIVER_SHEET','set','startFollowing','type','sheet','OFFLINE','univer-size-4','replace','ONLINE','children','_commandService','currentColor','prototype','getOwnPropertySymbols','pipe','Start\x20following','string','http://www.w3.org/2000/svg','11055xDOuhu','registerInitialStateReporter','mutations','getOwnPropertyDescriptor','presenter','_presenter','includes','forEach','div','stringify','symbol','from','has','send','reverse','0\x200\x2017\x2017','end','_init','fill','234688jVGHQb','disposeWithMe','getInitialStates','assign','Stop\x20following','get','createInstance','_stopFollowing','_collabSessionService','registerSharedOperation','_handleOperation','_handleNewHost','url(#$1','_liveShareService','apply','evenodd','attrs','Start','NOT_FOLLOWING','current','1em','init','call','LIVESHARE_REQUEST_HOST','displayName','shouldShareOperation','offline','live-share-icon','subscribe','asObservable','trim','_fetchOperations','dispose$','data','extend','PRESENTING','add','_beIdle','univerjs-icon\x20univerjs-icon-','NEW_CHANGESETS','_handleOffline','random','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','unitId','delete','className','stopPresenting','OPERATION','idle','_entities','_handleOnline','defineProperty','Stop\x20presenting','676eBmkdb','pluginName','xlink:href','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','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','onCommandExecuted','_commandDisposable','concat','executeCommand','_unitID','tryStartPresenting','getTypeOfUnitAdded$','_config','values','FOLLOWING','text','You\x27re\x20presenting\x20the\x20document','colorChannel1','following','default','button','map','_univerInstanceService','then','getMemberID','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','not-following','entries','_status','638688SbpAel','_stopPresenting','getUnitId','defIds','_startLiveShareCoordinator','LIVESHARE_TERMINATE','operations','_startPresenting','params','UNIVER_LIVE_SHARE_PLUGIN','302638GNyelZ','tag','_injector','getCurrentTypeOfUnit$','_handleNewChangeSets','IDLE','_collabSession','presenting'];_0x1f46=function(){return _0x18c72e;};return _0x1f46();}import{Disposable as _0x41e790,toDisposable as _0x1c3b80,Inject as _0x409218,IUniverInstanceService as _0x55c1e4,Injector as _0x2813f3,IConfigService as _0x5e7702,ICommandService as _0x5ab311,RxDisposable as _0x423d8a,UniverInstanceType as _0x19162e,DisposableCollection as _0x523026,CommandType as _0x142835,DependentOn as _0x1c0dec,Plugin as _0x2dc758,merge as _0x4268e8,registerDependencies as _0x323506,mergeOverrideWithDependencies as _0x263d4d,touchDependencies as _0x29f66d}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x26f0a8,InsertSheetMutation as _0x2463e7}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xb8ad1e,SetScrollOperation as _0x4808f9}from'@univerjs/sheets-ui';import{useDependency as _0x5cd417,useObservable as _0x1dad95,IUIPartsService as _0x54c0ed,BuiltInUIPart as _0x5ad5f4,connectInjector as _0x2f61ae}from'@univerjs/ui';import{jsx as _0x1fcf7b,jsxs as _0xdfee60,Fragment as _0x378d55}from'react/jsx-runtime';import{Dropdown as _0x15741b,clsx as _0x144952,Button as _0x360a74}from'@univerjs/design';import{forwardRef as _0x17b570,useRef as _0x1653ac,createElement as _0x2d133d,useState as _0x324aa9,useEffect as _0x23e425}from'react';import{CollaborationEvent as _0x22777c,parseProtocolChangeset as _0x540cc9}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x247e69,Subject as _0x3d88fa}from'rxjs';import{takeUntil as _0x492107,throttleTime as _0x2882f6}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x41e790{constructor(){var _0x511ecf=_0x3eff67;super(...arguments),d(this,_0x511ecf(0x1b7),new Set()),d(this,_0x511ecf(0x1b2),new Set());}[_0x3eff67(0x1eb)](_0x21fb17){var _0x33b33e=_0x3eff67;return this[_0x33b33e(0x1b7)][_0x33b33e(0x157)](_0x21fb17),_0x1c3b80(()=>this['_sharedOperations']['delete'](_0x21fb17));}[_0x3eff67(0x1d0)](_0x1981e8){var _0x57a982=_0x3eff67;return this[_0x57a982(0x1b2)]['add'](_0x1981e8),_0x1c3b80(()=>this[_0x57a982(0x1b2)][_0x57a982(0x15f)](_0x1981e8));}[_0x3eff67(0x1fb)](_0x713650){var _0x591a72=_0x3eff67;return this[_0x591a72(0x1b7)][_0x591a72(0x1db)](_0x713650);}['getInitialStates'](_0x3f2e6a){var _0x371d9d=_0x3eff67;return Array[_0x371d9d(0x1da)](this['_reporters'])[_0x371d9d(0x17e)](_0x2999c8=>_0x2999c8(_0x3f2e6a));}}var Ee=Object[_0x3eff67(0x1d2)],we=(_0x2effaf,_0x3ad890,_0x2b473c,_0xf61b5b)=>{var _0x1ee75d=_0x3eff67;for(var _0x417563=_0xf61b5b>0x1?void 0x0:_0xf61b5b?Ee(_0x3ad890,_0x2b473c):_0x3ad890,_0x980a50=_0x2effaf[_0x1ee75d(0x1a3)]-0x1,_0x49672f;_0x980a50>=0x0;_0x980a50--)(_0x49672f=_0x2effaf[_0x980a50])&&(_0x417563=_0x49672f(_0x417563)||_0x417563);return _0x417563;},Ne=(_0x4d9250,_0x122290)=>(_0x19f760,_0x3c74bf)=>_0x122290(_0x19f760,_0x3c74bf,_0x4d9250);let m=class extends _0x41e790{constructor(_0x21cd4d){var _0x1e7c96=_0x3eff67;super(),this[_0x1e7c96(0x1ef)]=_0x21cd4d,this[_0x1e7c96(0x1e0)]();}['_init'](){var _0x1c439e=_0x3eff67;[_0xb8ad1e['id'],_0x4808f9['id'],_0x26f0a8['id']][_0x1c439e(0x1d6)](_0x61990a=>{var _0x20fd33=_0x1c439e;this[_0x20fd33(0x1e3)](this[_0x20fd33(0x1ef)][_0x20fd33(0x1eb)](_0x61990a));});}};m=we([Ne(0x0,_0x409218(L))],m);var c=function(){var _0x4cbc56=_0x3eff67;return c=Object[_0x4cbc56(0x1e5)]||function(_0x12036d){var _0xb5a243=_0x4cbc56;for(var _0x372c80,_0x18d009=0x1,_0xe8ec69=arguments[_0xb5a243(0x1a3)];_0x18d009<_0xe8ec69;_0x18d009++){_0x372c80=arguments[_0x18d009];for(var _0x4b23a5 in _0x372c80)Object[_0xb5a243(0x1c9)][_0xb5a243(0x19d)][_0xb5a243(0x1f8)](_0x372c80,_0x4b23a5)&&(_0x12036d[_0x4b23a5]=_0x372c80[_0x4b23a5]);}return _0x12036d;},c[_0x4cbc56(0x1f0)](this,arguments);},Ce=function(_0x1b7e14,_0x1729d9){var _0x101efb=_0x3eff67,_0x22c09b={};for(var _0xaf4d0d in _0x1b7e14)Object[_0x101efb(0x1c9)][_0x101efb(0x19d)][_0x101efb(0x1f8)](_0x1b7e14,_0xaf4d0d)&&_0x1729d9['indexOf'](_0xaf4d0d)<0x0&&(_0x22c09b[_0xaf4d0d]=_0x1b7e14[_0xaf4d0d]);if(_0x1b7e14!=null&&typeof Object[_0x101efb(0x1ca)]=='function'){for(var _0xecea7a=0x0,_0xaf4d0d=Object[_0x101efb(0x1ca)](_0x1b7e14);_0xecea7a<_0xaf4d0d['length'];_0xecea7a++)_0x1729d9['indexOf'](_0xaf4d0d[_0xecea7a])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x1b7e14,_0xaf4d0d[_0xecea7a])&&(_0x22c09b[_0xaf4d0d[_0xecea7a]]=_0x1b7e14[_0xaf4d0d[_0xecea7a]]);}return _0x22c09b;},W=_0x17b570(function(_0x312eb2,_0x1afeb){var _0x55ee70=_0x3eff67,_0x2b7d8b=_0x312eb2[_0x55ee70(0x1b1)],_0x53a4a1=_0x312eb2['id'],_0x336fdd=_0x312eb2[_0x55ee70(0x160)],_0x13b316=_0x312eb2[_0x55ee70(0x204)],_0x34e919=Ce(_0x312eb2,['icon','id',_0x55ee70(0x160),'extend']),_0x5e22fa=_0x55ee70(0x159)['concat'](_0x53a4a1,'\x20')[_0x55ee70(0x170)](_0x336fdd||'')[_0x55ee70(0x200)](),_0x428f3a=_0x1653ac('_'['concat'](Le()));return Y(_0x2b7d8b,''[_0x55ee70(0x170)](_0x53a4a1),{'defIds':_0x2b7d8b[_0x55ee70(0x18a)],'idSuffix':_0x428f3a[_0x55ee70(0x1f5)]},c({'ref':_0x1afeb,'className':_0x5e22fa},_0x34e919),_0x13b316);});function Y(_0x5cc9af,_0xac24a9,_0x11b732,_0xceec65,_0x539e04){var _0x4e679f=_0x3eff67;return _0x2d133d(_0x5cc9af[_0x4e679f(0x192)],c(c({'key':_0xac24a9},De(_0x5cc9af,_0x11b732,_0x539e04)),_0xceec65),(xe(_0x5cc9af,_0x11b732)[_0x4e679f(0x1c6)]||[])['map'](function(_0x18bfd6,_0x492f08){var _0x12e310=_0x4e679f;return Y(_0x18bfd6,''[_0x12e310(0x170)](_0xac24a9,'-')['concat'](_0x5cc9af[_0x12e310(0x192)],'-')['concat'](_0x492f08),_0x11b732,void 0x0,_0x539e04);}));}function De(_0x15773c,_0x2f1217,_0x3cc958){var _0x2c9cc5=_0x3eff67,_0x132b37=c({},_0x15773c['attrs']);_0x3cc958!=null&&_0x3cc958[_0x2c9cc5(0x17a)]&&_0x132b37[_0x2c9cc5(0x1e1)]===_0x2c9cc5(0x17a)&&(_0x132b37['fill']=_0x3cc958[_0x2c9cc5(0x17a)]),_0x15773c[_0x2c9cc5(0x192)]==='mask'&&_0x132b37['id']&&(_0x132b37['id']=_0x132b37['id']+_0x2f1217[_0x2c9cc5(0x19b)]),Object[_0x2c9cc5(0x185)](_0x132b37)[_0x2c9cc5(0x1d6)](function(_0xfcfe7d){var _0x3e9dbc=_0x2c9cc5,_0x58e62e=_0xfcfe7d[0x0],_0x3b6947=_0xfcfe7d[0x1];_0x58e62e==='mask'&&typeof _0x3b6947==_0x3e9dbc(0x1cd)&&(_0x132b37[_0x58e62e]=_0x3b6947['replace'](/url\(#(.*)\)/,_0x3e9dbc(0x1ee)['concat'](_0x2f1217[_0x3e9dbc(0x19b)],')')));});var _0x1c1407=_0x2f1217[_0x2c9cc5(0x18a)];return!_0x1c1407||_0x1c1407[_0x2c9cc5(0x1a3)]===0x0||(_0x15773c[_0x2c9cc5(0x192)]===_0x2c9cc5(0x19a)&&_0x132b37[_0x2c9cc5(0x16a)]&&(_0x132b37[_0x2c9cc5(0x16a)]=_0x132b37['xlink:href']+_0x2f1217[_0x2c9cc5(0x19b)]),Object[_0x2c9cc5(0x185)](_0x132b37)[_0x2c9cc5(0x1d6)](function(_0x33e124){var _0x3667e5=_0x2c9cc5,_0x48e37d=_0x33e124[0x0],_0x539550=_0x33e124[0x1];typeof _0x539550=='string'&&(_0x132b37[_0x48e37d]=_0x539550[_0x3667e5(0x1c4)](/url\(#(.*)\)/,'url(#$1'[_0x3667e5(0x170)](_0x2f1217[_0x3667e5(0x19b)],')')));})),_0x132b37;}function xe(_0x499004,_0x59bc12){var _0x415ef6=_0x3eff67,_0x31ab1b,_0x4ea787=_0x59bc12[_0x415ef6(0x18a)];return!_0x4ea787||_0x4ea787[_0x415ef6(0x1a3)]===0x0?_0x499004:_0x499004[_0x415ef6(0x192)]===_0x415ef6(0x1a2)&&(!((_0x31ab1b=_0x499004['children'])===null||_0x31ab1b===void 0x0)&&_0x31ab1b[_0x415ef6(0x1a3)])?c(c({},_0x499004),{'children':_0x499004[_0x415ef6(0x1c6)][_0x415ef6(0x17e)](function(_0x5b8992){var _0x23f52a=_0x415ef6;return typeof _0x5b8992[_0x23f52a(0x1f2)]['id']==_0x23f52a(0x1cd)&&_0x4ea787&&_0x4ea787[_0x23f52a(0x1d5)](_0x5b8992[_0x23f52a(0x1f2)]['id'])?c(c({},_0x5b8992),{'attrs':c(c({},_0x5b8992[_0x23f52a(0x1f2)]),{'id':_0x5b8992[_0x23f52a(0x1f2)]['id']+_0x59bc12['idSuffix']})}):_0x5b8992;})}):_0x499004;}function Le(){var _0x509b4d=_0x3eff67;return Math[_0x509b4d(0x15c)]()['toString'](0x24)['substring'](0x2,0x8);}W[_0x3eff67(0x1fa)]=_0x3eff67(0x1ab);var ye={'tag':_0x3eff67(0x1b9),'attrs':{'xmlns':_0x3eff67(0x1ce),'fill':'none','viewBox':_0x3eff67(0x1de),'width':_0x3eff67(0x1f6),'height':_0x3eff67(0x1f6)},'children':[{'tag':_0x3eff67(0x199),'attrs':{'fill':_0x3eff67(0x1c8),'d':_0x3eff67(0x15d)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x3eff67(0x1f1)}}]},B=_0x17b570(function(_0x24943c,_0x2747ce){var _0x4f6b4f=_0x3eff67;return _0x2d133d(W,Object[_0x4f6b4f(0x1e5)]({},_0x24943c,{'id':_0x4f6b4f(0x1fd),'ref':_0x2747ce,'icon':ye}));});B['displayName']='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x2f7209,_0x1e683c,_0x2f5ddd,_0x31032c)=>{for(var _0xfa9166=_0x31032c>0x1?void 0x0:_0x31032c?Re(_0x1e683c,_0x2f5ddd):_0x1e683c,_0x17c141=_0x2f7209['length']-0x1,_0x56f321;_0x17c141>=0x0;_0x17c141--)(_0x56f321=_0x2f7209[_0x17c141])&&(_0xfa9166=_0x56f321(_0xfa9166)||_0xfa9166);return _0xfa9166;},f=(_0x2536ba,_0x27e7de)=>(_0x21eef9,_0x539d35)=>_0x27e7de(_0x21eef9,_0x539d35,_0x2536ba);let I=class extends _0x423d8a{constructor(_0x3c1eab,_0x515c31,_0x286a8a){var _0x5b4530=_0x3eff67;super(),d(this,_0x5b4530(0x164),new Map()),(this['_univerInstanceService']=_0x3c1eab,this[_0x5b4530(0x193)]=_0x515c31,this[_0x5b4530(0x1ea)]=_0x286a8a,this[_0x5b4530(0x1e0)]());}async[_0x3eff67(0x183)](_0x576454){var _0xc77e91=_0x3eff67;return this[_0xc77e91(0x164)][_0xc77e91(0x1db)](_0x576454)||await this['_startLiveShareCoordinator'](_0x576454),this[_0xc77e91(0x164)][_0xc77e91(0x1e7)](_0x576454);}[_0x3eff67(0x1e0)](){var _0x2f2cac=_0x3eff67;this['_univerInstanceService'][_0x2f2cac(0x174)](_0x19162e[_0x2f2cac(0x1bd)])['pipe'](_0x492107(this[_0x2f2cac(0x202)]))['subscribe'](async _0x1880aa=>{var _0x1f0e18=_0x2f2cac;const _0x5a3dc3=_0x1880aa['getUnitId']();this[_0x1f0e18(0x164)]['has'](_0x5a3dc3)||this[_0x1f0e18(0x18b)](_0x5a3dc3);}),this[_0x2f2cac(0x17f)]['getTypeOfUnitDisposed$'](_0x19162e['UNIVER_SHEET'])[_0x2f2cac(0x1cb)](_0x492107(this[_0x2f2cac(0x202)]))[_0x2f2cac(0x1fe)](_0x5b57ef=>{var _0x5eaa5c=_0x2f2cac;const _0x51bf13=_0x5b57ef[_0x5eaa5c(0x189)](),_0x307285=this[_0x5eaa5c(0x164)][_0x5eaa5c(0x1e7)](_0x51bf13);_0x307285==null||_0x307285['dispose']();});}async['_startLiveShareCoordinator'](_0x2dc855){var _0xb92f5d=_0x3eff67;const _0x19642d=await this['_collabSessionService']['requireSession'](_0x2dc855),_0x3d664b=this[_0xb92f5d(0x193)][_0xb92f5d(0x1e8)](C,_0x2dc855,_0x19642d);return _0x3d664b[_0xb92f5d(0x1f7)](),this['_entities'][_0xb92f5d(0x1be)](_0x2dc855,_0x3d664b),_0x3d664b;}};I=Z([f(0x0,_0x55c1e4),f(0x1,_0x409218(_0x2813f3)),f(0x2,_0x409218(_0x3fb12e))],I);var h=(_0x280c93=>(_0x280c93[_0x3eff67(0x1c2)]=_0x3eff67(0x1fc),_0x280c93[_0x3eff67(0x196)]='idle',_0x280c93[_0x3eff67(0x177)]='following',_0x280c93[_0x3eff67(0x1f4)]='not-following',_0x280c93[_0x3eff67(0x205)]=_0x3eff67(0x198),_0x280c93))(h||{});const Pe=_0x3eff67(0x182),Ae=0xc8;let C=class extends _0x423d8a{constructor(_0x23dcb0,_0x5b7c1d,_0x3a6b25,_0x4f4851,_0x34947a){var _0x2d20f1=_0x3eff67;super(),d(this,_0x2d20f1(0x1ba),new _0x247e69(_0x2d20f1(0x163))),d(this,_0x2d20f1(0x1af),this[_0x2d20f1(0x1ba)][_0x2d20f1(0x1ff)]()),d(this,_0x2d20f1(0x1e0),!0x1),d(this,_0x2d20f1(0x16f),null),d(this,_0x2d20f1(0x1d4),null),(this[_0x2d20f1(0x172)]=_0x23dcb0,this[_0x2d20f1(0x197)]=_0x5b7c1d,this['_configService']=_0x3a6b25,this[_0x2d20f1(0x1ef)]=_0x4f4851,this[_0x2d20f1(0x1c7)]=_0x34947a);}get[_0x3eff67(0x186)](){var _0x59ff9e=_0x3eff67;return this[_0x59ff9e(0x1ba)][_0x59ff9e(0x19f)]();}[_0x3eff67(0x1ad)](){var _0x4f1529=_0x3eff67,_0x69d8c3;(_0x69d8c3=this['_commandDisposable'])==null||_0x69d8c3[_0x4f1529(0x1ad)](),this[_0x4f1529(0x1ba)][_0x4f1529(0x1a6)]('idle'),this[_0x4f1529(0x1ba)][_0x4f1529(0x1a5)]();}[_0x3eff67(0x1f7)](){var _0x1cbec9=_0x3eff67;this[_0x1cbec9(0x1e0)]||(this[_0x1cbec9(0x1e0)]=!0x0,this[_0x1cbec9(0x197)][_0x1cbec9(0x16b)][_0x1cbec9(0x1cb)](_0x492107(this[_0x1cbec9(0x202)]))[_0x1cbec9(0x1fe)](_0x140b68=>{var _0x333bd2=_0x1cbec9;switch(_0x140b68){case _0x1efbf3['OFFLINE']:this[_0x333bd2(0x15b)]();break;case _0x1efbf3[_0x333bd2(0x1c5)]:this[_0x333bd2(0x165)]();break;}}),this['_collabSession']['event$']['pipe'](_0x492107(this['dispose$']))[_0x1cbec9(0x1fe)](_0x1305fe=>{var _0x16f61a=_0x1cbec9;const {eventID:_0x394a48}=_0x1305fe;switch(_0x394a48){case _0x22777c[_0x16f61a(0x1a9)]:this[_0x16f61a(0x1ed)](_0x1305fe);break;case _0x22777c[_0x16f61a(0x19c)]:this[_0x16f61a(0x1ec)](_0x1305fe);break;case _0x22777c[_0x16f61a(0x18c)]:this[_0x16f61a(0x1b3)]();break;case _0x22777c[_0x16f61a(0x15a)]:this[_0x16f61a(0x195)](_0x1305fe);break;}}));}['tryStartPresenting'](){var _0x8684b4=_0x3eff67;this['_collabSession'][_0x8684b4(0x1dc)]({'eventID':_0x22777c[_0x8684b4(0x1f9)],'data':{'unitID':this[_0x8684b4(0x172)],'userID':this[_0x8684b4(0x197)][_0x8684b4(0x181)]()}},this['_unitID']);}[_0x3eff67(0x161)](){var _0x3e1187=_0x3eff67;this[_0x3e1187(0x186)]===_0x3e1187(0x198)&&(this[_0x3e1187(0x1ba)][_0x3e1187(0x1a6)](_0x3e1187(0x163)),this[_0x3e1187(0x197)][_0x3e1187(0x1dc)]({'eventID':_0x22777c[_0x3e1187(0x18c)],'data':{'unitID':this['_unitID']}},this[_0x3e1187(0x172)]));}[_0x3eff67(0x1bf)](){var _0x329f13=_0x3eff67;this['_status']==='not-following'&&(this[_0x329f13(0x1ba)][_0x329f13(0x1a6)](_0x329f13(0x17b)),this[_0x329f13(0x1ac)]());}['stopFollowing'](){var _0xe50d51=_0x3eff67;this[_0xe50d51(0x186)]===_0xe50d51(0x17b)&&this[_0xe50d51(0x1e9)]();}[_0x3eff67(0x1ed)](_0x486328){var _0x5d0dfc=_0x3eff67;const {presenter:_0x430367}=_0x486328[_0x5d0dfc(0x203)],_0x34e792=this['_collabSession'][_0x5d0dfc(0x181)]();this[_0x5d0dfc(0x1d4)]=_0x430367,_0x430367===_0x34e792?(this[_0x5d0dfc(0x1e9)](),this[_0x5d0dfc(0x18e)]()):this[_0x5d0dfc(0x186)]!==_0x5d0dfc(0x184)&&(this[_0x5d0dfc(0x188)](),this[_0x5d0dfc(0x1ac)]());}[_0x3eff67(0x201)](){var _0x44dbf2=_0x3eff67;const _0x505b06={'eventID':_0x22777c['LIVESHARE_FETCH_OPERATIONS']};this[_0x44dbf2(0x197)]['send'](_0x505b06,this[_0x44dbf2(0x172)]);}[_0x3eff67(0x1b3)](){var _0x46870b=_0x3eff67;this[_0x46870b(0x1d4)]=null,this[_0x46870b(0x186)]!=='presenting'&&this[_0x46870b(0x158)]();}[_0x3eff67(0x195)](_0x3fe886){var _0x1a2b64=_0x3eff67;if(this['_status']===_0x1a2b64(0x17b)&&this['_presenter']===_0x3fe886[_0x1a2b64(0x203)][_0x1a2b64(0x1a4)]){const _0x2fd7bd=_0x540cc9(_0x3fe886[_0x1a2b64(0x203)])[_0x1a2b64(0x1d1)][_0x1a2b64(0x1dd)]()['find'](_0x487629=>_0x487629['id']===_0x2463e7['id']);if(_0x2fd7bd){const _0x48cff6=_0x2fd7bd[_0x1a2b64(0x18f)][_0x1a2b64(0x15e)],_0x502ac1=_0x2fd7bd['params'][_0x1a2b64(0x1c1)]['id'];setTimeout(()=>{var _0x4add76=_0x1a2b64;this['_commandService'][_0x4add76(0x171)](_0x26f0a8['id'],{'unitId':_0x48cff6,'subUnitId':_0x502ac1},{'fromCollab':!0x0});});}}}[_0x3eff67(0x18e)](){var _0x2defe3=_0x3eff67;this['_status$'][_0x2defe3(0x1a6)](_0x2defe3(0x198));const _0x3a2133=new Map(),_0x4a9484=this[_0x2defe3(0x16f)]=new _0x523026();_0x4a9484[_0x2defe3(0x157)](_0x1c3b80(()=>{var _0x420e6a=_0x2defe3;_0x3a2133[_0x420e6a(0x1d6)](_0x9c3fd8=>_0x9c3fd8[_0x420e6a(0x1a5)]()),_0x3a2133[_0x420e6a(0x1b4)]();})),_0x4a9484[_0x2defe3(0x157)](this[_0x2defe3(0x1c7)][_0x2defe3(0x16e)](_0x4d1379=>{var _0x535916=_0x2defe3,_0x290b4b;if(_0x4d1379[_0x535916(0x1c0)]!==_0x142835[_0x535916(0x162)]||!this[_0x535916(0x1ef)]['shouldShareOperation'](_0x4d1379['id']))return;const {id:_0x2b469c}=_0x4d1379;let _0x41051b;_0x3a2133[_0x535916(0x1db)](_0x2b469c)?_0x41051b=_0x3a2133['get'](_0x2b469c):(_0x41051b=new _0x3d88fa(),_0x3a2133[_0x535916(0x1be)](_0x2b469c,_0x41051b),_0x41051b[_0x535916(0x1cb)](_0x2882f6((_0x290b4b=this[_0x535916(0x1a8)][_0x535916(0x1a1)](Pe))!=null?_0x290b4b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x535916(0x1fe)](_0x3c43d5=>{var _0x4dd041=_0x535916;this[_0x4dd041(0x197)]['send']({'eventID':_0x22777c[_0x4dd041(0x19c)],'data':{'unitID':this[_0x4dd041(0x172)],'operations':{[_0x3c43d5['id']]:{'id':_0x3c43d5['id'],'params':JSON['stringify'](_0x3c43d5[_0x4dd041(0x18f)])}}}},this[_0x4dd041(0x172)]);})),_0x41051b[_0x535916(0x1a6)](_0x4d1379);})),this['_liveShareService'][_0x2defe3(0x1e4)](this['_unitID'])[_0x2defe3(0x1d6)](_0x3ed3c6=>this['_collabSession'][_0x2defe3(0x1dc)]({'eventID':_0x22777c[_0x2defe3(0x19c)],'data':{'unitID':this[_0x2defe3(0x172)],'operations':{[_0x3ed3c6['id']]:{'id':_0x3ed3c6['id'],'params':JSON[_0x2defe3(0x1d8)](_0x3ed3c6[_0x2defe3(0x18f)])}}}},this[_0x2defe3(0x172)]));}[_0x3eff67(0x188)](){var _0x140c71=_0x3eff67,_0x42d3e3;this[_0x140c71(0x1ba)][_0x140c71(0x1a6)]('idle'),(_0x42d3e3=this[_0x140c71(0x16f)])==null||_0x42d3e3[_0x140c71(0x1ad)](),this[_0x140c71(0x16f)]=null;}[_0x3eff67(0x1ac)](){var _0xfe0922=_0x3eff67,_0x217c15;(_0x217c15=this['_commandDisposable'])==null||_0x217c15['dispose'](),this[_0xfe0922(0x1ba)][_0xfe0922(0x1a6)]('following');}[_0x3eff67(0x158)](){var _0x4b45fd=_0x3eff67,_0x136ec9;this['_status$'][_0x4b45fd(0x1a6)]('idle'),(_0x136ec9=this['_commandDisposable'])==null||_0x136ec9[_0x4b45fd(0x1ad)](),this[_0x4b45fd(0x16f)]=null;}[_0x3eff67(0x1e9)](){var _0x5bbd2e=_0x3eff67,_0x5ccf9c;this[_0x5bbd2e(0x1ba)][_0x5bbd2e(0x1a6)](_0x5bbd2e(0x184)),(_0x5ccf9c=this[_0x5bbd2e(0x16f)])==null||_0x5ccf9c[_0x5bbd2e(0x1ad)]();}[_0x3eff67(0x1ec)](_0x4a8318){var _0x1f2822=_0x3eff67;if(['presenting',_0x1f2822(0x184),'offline'][_0x1f2822(0x1d5)](this['_status'])||!_0x4a8318[_0x1f2822(0x203)][_0x1f2822(0x1d3)]||_0x4a8318[_0x1f2822(0x203)]['presenter']===this['_collabSession']['getMemberID']())return;this['_status']===_0x1f2822(0x163)&&this['_startFollowing']();const _0x3192f4=_0x4a8318[_0x1f2822(0x203)][_0x1f2822(0x18d)];Object[_0x1f2822(0x176)](_0x3192f4)[_0x1f2822(0x1d6)](_0x49d78c=>{var _0x36580f=_0x1f2822;this[_0x36580f(0x1c7)]['executeCommand'](_0x49d78c['id'],_0x49d78c[_0x36580f(0x18f)]?JSON[_0x36580f(0x19e)](_0x49d78c[_0x36580f(0x18f)]):null,{'fromCollab':!0x0});});}[_0x3eff67(0x15b)](){var _0x419dd4=_0x3eff67,_0x36c8f7;this[_0x419dd4(0x1ba)]['next'](_0x419dd4(0x1fc)),(_0x36c8f7=this['_commandDisposable'])==null||_0x36c8f7[_0x419dd4(0x1ad)]();}[_0x3eff67(0x165)](){var _0x5001bc=_0x3eff67;this[_0x5001bc(0x1ba)]['next']('idle'),this[_0x5001bc(0x201)]();}};C=Z([f(0x2,_0x5e7702),f(0x3,_0x409218(L)),f(0x4,_0x5ab311)],C);function Te(){var _0x1a9ba1=_0x3eff67;const _0x3b132a=_0x5cd417(I),_0x3ae74e=_0x5cd417(_0x55c1e4),_0x3ba848=_0x1dad95(()=>_0x3ae74e[_0x1a9ba1(0x194)](_0x19162e[_0x1a9ba1(0x1bd)]),void 0x0,!0x1,[]),[_0x30ea57,_0x19be99]=_0x324aa9(null),[_0x8cc31b,_0x4ba61d]=_0x324aa9(h[_0x1a9ba1(0x196)]),_0x160789=_0x1653ac(null);return _0x23e425(()=>(_0x3ba848&&_0x3b132a['getLiveShareCoordinator'](_0x3ba848[_0x1a9ba1(0x189)]())[_0x1a9ba1(0x180)](_0x368430=>{var _0x1dc4b8=_0x1a9ba1;_0x19be99(_0x368430),_0x160789['current']=_0x368430[_0x1dc4b8(0x1af)][_0x1dc4b8(0x1fe)](_0x1eae66=>{_0x4ba61d(_0x1eae66);});}),()=>{var _0x57b4a8=_0x1a9ba1,_0x2bfd26;(_0x2bfd26=_0x160789[_0x57b4a8(0x1f5)])==null||_0x2bfd26['unsubscribe'](),_0x160789[_0x57b4a8(0x1f5)]=null;}),[_0x3ba848,_0x3b132a]),_0x30ea57?_0x1fcf7b(_0x15741b,{'align':_0x1a9ba1(0x1df),'disabled':_0x8cc31b===h[_0x1a9ba1(0x1c2)],'className':_0x1a9ba1(0x16d),'overlay':_0x1fcf7b($e,{'status':_0x8cc31b,'coordinator':_0x30ea57}),'children':_0x1fcf7b(_0x1a9ba1(0x17d),{'className':_0x144952('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x8cc31b===h[_0x1a9ba1(0x1c2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x8cc31b!==h[_0x1a9ba1(0x1c2)]}),'type':'button','children':_0x1fcf7b(B,{'className':_0x1a9ba1(0x1c3)})})}):null;}function $e(_0x42cc85){var _0x3e2a86=_0x3eff67;const {status:_0x20e27f,coordinator:_0x2eb42f}=_0x42cc85;switch(_0x20e27f){case h[_0x3e2a86(0x196)]:return _0x1fcf7b(Fe,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x177)]:return _0x1fcf7b(He,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x1f4)]:return _0x1fcf7b(je,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x1c2)]:return _0x1fcf7b(Ve,{});case h['PRESENTING']:return _0x1fcf7b(Ue,{'coordinator':_0x2eb42f});default:return null;}}function Fe(_0x58fe9b){var _0x36edee=_0x3eff67;const {coordinator:_0x350c92}=_0x58fe9b;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b('div',{'className':_0x36edee(0x16c),'children':'Present\x20this\x20document'}),_0x1fcf7b(_0x360a74,{'onClick':()=>_0x350c92[_0x36edee(0x173)](),'children':_0x36edee(0x1f3)})]});}function He(_0x4418a3){var _0x451541=_0x3eff67;const {coordinator:_0x2848d1}=_0x4418a3;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b(_0x451541(0x1d7),{'className':_0x451541(0x16c),'children':_0x451541(0x1bb)}),_0x1fcf7b(_0x360a74,{'onClick':()=>_0x2848d1['stopFollowing'](),'children':_0x451541(0x1e6)})]});}function je(_0x14ff33){var _0x48dd37=_0x3eff67;const {coordinator:_0x1d91a8}=_0x14ff33;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b(_0x48dd37(0x1d7),{'className':_0x48dd37(0x16c),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1fcf7b(_0x360a74,{'variant':_0x48dd37(0x178),'onClick':()=>_0x1d91a8[_0x48dd37(0x1bf)](),'children':_0x48dd37(0x1cc)})]});}function Ue(_0x31539b){var _0x32c938=_0x3eff67;const {coordinator:_0x44b13e}=_0x31539b;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b('div',{'className':_0x32c938(0x16c),'children':_0x32c938(0x179)}),_0x1fcf7b(_0x360a74,{'variant':_0x32c938(0x17c),'onClick':()=>_0x44b13e[_0x32c938(0x161)](),'children':_0x32c938(0x167)})]});}function Ve(){return _0x1fcf7b(_0x378d55,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x3eff67(0x1d2)],ke=(_0x591f41,_0x56a2af,_0x6d7a9e,_0x1e45d8)=>{var _0x40b3c8=_0x3eff67;for(var _0x3cc535=_0x1e45d8>0x1?void 0x0:_0x1e45d8?Me(_0x56a2af,_0x6d7a9e):_0x56a2af,_0x17e719=_0x591f41[_0x40b3c8(0x1a3)]-0x1,_0x302d04;_0x17e719>=0x0;_0x17e719--)(_0x302d04=_0x591f41[_0x17e719])&&(_0x3cc535=_0x302d04(_0x3cc535)||_0x3cc535);return _0x3cc535;},$=(_0x528a6b,_0x1b023d)=>(_0x167401,_0x34e924)=>_0x1b023d(_0x167401,_0x34e924,_0x528a6b);let b=class extends _0x41e790{constructor(_0x4cf3b3,_0x2c7820){var _0x187063=_0x3eff67;super(),this['_injector']=_0x4cf3b3,this[_0x187063(0x1bc)]=_0x2c7820,this[_0x187063(0x1b0)]();}[_0x3eff67(0x1b0)](){var _0x5cfccd=_0x3eff67;this[_0x5cfccd(0x1e3)](this['_uiPartsService']['registerComponent'](_0x5ad5f4['HEADER_MENU'],()=>_0x2f61ae(Te,this[_0x5cfccd(0x193)])));}};b=ke([$(0x0,_0x409218(_0x2813f3)),$(0x1,_0x54c0ed)],b);var Ge=Object[_0x3eff67(0x166)],We=Object[_0x3eff67(0x1d2)],Ye=(_0x2d3c93,_0x2d0f37,_0xed73d8)=>_0x2d0f37 in _0x2d3c93?Ge(_0x2d3c93,_0x2d0f37,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xed73d8}):_0x2d3c93[_0x2d0f37]=_0xed73d8,Be=(_0x2510d4,_0x5108c4,_0x1f2dda,_0x35cac2)=>{var _0x2796c2=_0x3eff67;for(var _0x1e14c7=_0x35cac2>0x1?void 0x0:_0x35cac2?We(_0x5108c4,_0x1f2dda):_0x5108c4,_0x2d6a8f=_0x2510d4[_0x2796c2(0x1a3)]-0x1,_0x4ea412;_0x2d6a8f>=0x0;_0x2d6a8f--)(_0x4ea412=_0x2510d4[_0x2d6a8f])&&(_0x1e14c7=_0x4ea412(_0x1e14c7)||_0x1e14c7);return _0x1e14c7;},F=(_0x3170f7,_0x196345)=>(_0x23984f,_0xf54b04)=>_0x196345(_0x23984f,_0xf54b04,_0x3170f7),J=(_0x3f08c7,_0x64f2e4,_0x2b7759)=>Ye(_0x3f08c7,typeof _0x64f2e4!='symbol'?_0x64f2e4+'':_0x64f2e4,_0x2b7759);const Ze=_0x3eff67(0x190);let O=class extends _0x2dc758{constructor(_0x5d9f77=T,_0x2422bb,_0x499dba){var _0x34ffad=_0x3eff67;super(),this['_config']=_0x5d9f77,this['_injector']=_0x2422bb,this[_0x34ffad(0x1a8)]=_0x499dba;const {..._0x14266a}=_0x4268e8({},T,this[_0x34ffad(0x175)]);this[_0x34ffad(0x1a8)][_0x34ffad(0x1aa)](Oe,_0x14266a);}[_0x3eff67(0x1b5)](){var _0x3ba933=_0x3eff67;_0x323506(this[_0x3ba933(0x193)],_0x263d4d([[L],[I],[m],[b]],this['_config'][_0x3ba933(0x1a7)])),_0x29f66d(this['_injector'],[[m]]);}['onRendered'](){var _0x16cccf=_0x3eff67;_0x29f66d(this[_0x16cccf(0x193)],[[b]]);}};function _0x31ab(_0x214011,_0x46be5e){var _0x1f462f=_0x1f46();return _0x31ab=function(_0x31ab44,_0x418f67){_0x31ab44=_0x31ab44-0x157;var _0x1926e7=_0x1f462f[_0x31ab44];return _0x1926e7;},_0x31ab(_0x214011,_0x46be5e);}J(O,'type',_0x19162e['UNIVER_UNKNOWN']),J(O,_0x3eff67(0x169),Ze),O=Be([_0x1c0dec(_0x10ce60),F(0x1,_0x409218(_0x2813f3)),F(0x2,_0x5e7702)],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 _0x28bcae=_0x3bd3;(function(_0x3692a0,_0xada648){var _0x35b094=_0x3bd3,_0x3d3875=_0x3692a0();while(!![]){try{var _0x3a7285=-parseInt(_0x35b094(0x1fe))/0x1*(-parseInt(_0x35b094(0x19c))/0x2)+-parseInt(_0x35b094(0x162))/0x3*(-parseInt(_0x35b094(0x1dc))/0x4)+parseInt(_0x35b094(0x15f))/0x5+-parseInt(_0x35b094(0x16d))/0x6*(parseInt(_0x35b094(0x1b8))/0x7)+parseInt(_0x35b094(0x1da))/0x8+parseInt(_0x35b094(0x1a8))/0x9+-parseInt(_0x35b094(0x18a))/0xa*(parseInt(_0x35b094(0x1e1))/0xb);if(_0x3a7285===_0xada648)break;else _0x3d3875['push'](_0x3d3875['shift']());}catch(_0x56e356){_0x3d3875['push'](_0x3d3875['shift']());}}}(_0x2404,0x7152b));var q=Object[_0x28bcae(0x1bb)],z=(_0x580e88,_0x1b6e8e,_0x2d0c00)=>_0x1b6e8e in _0x580e88?q(_0x580e88,_0x1b6e8e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d0c00}):_0x580e88[_0x1b6e8e]=_0x2d0c00,d=(_0x367b44,_0x411f9c,_0x3c6c99)=>z(_0x367b44,typeof _0x411f9c!=_0x28bcae(0x1de)?_0x411f9c+'':_0x411f9c,_0x3c6c99);import{CollaborationSessionService as _0x5d75f2,SessionStatus as _0x2d9af3,UniverCollaborationClientPlugin as _0x320bf0}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4ebce3,toDisposable as _0x7d07bb,Inject as _0x2216cd,IUniverInstanceService as _0x1f30ea,Injector as _0x4193ef,IConfigService as _0x50f85a,ICommandService as _0x5eb8fc,RxDisposable as _0x5583c6,UniverInstanceType as _0x4876cf,DisposableCollection as _0x4f0359,CommandType as _0x3a8039,DependentOn as _0x1d67a4,Plugin as _0x100d90,merge as _0x342713,registerDependencies as _0x101666,mergeOverrideWithDependencies as _0x10c3e8,touchDependencies as _0x1b1875}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1df0cc,InsertSheetMutation as _0xc818aa}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x936e8d,SetScrollOperation as _0x427aab}from'@univerjs/sheets-ui';import{useDependency as _0xbf9ecf,useObservable as _0x4e5cbb,IUIPartsService as _0x30b6fc,BuiltInUIPart as _0x2832e7,connectInjector as _0x2299bb}from'@univerjs/ui';import{jsx as _0x2715b3,jsxs as _0x1b5c99,Fragment as _0x168fdd}from'react/jsx-runtime';import{Dropdown as _0x308dad,clsx as _0x15471c,Button as _0x5378e4}from'@univerjs/design';import{forwardRef as _0xdd8c9d,useRef as _0x19bf15,createElement as _0x214b06,useState as _0x1c6c56,useEffect as _0xcc0725}from'react';import{CollaborationEvent as _0x380e0d,parseProtocolChangeset as _0x3eac9c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x261795,Subject as _0x423159}from'rxjs';import{takeUntil as _0x26f930,throttleTime as _0x2c3cbf}from'rxjs/operators';const Oe=_0x28bcae(0x1cb),T={};class L extends _0x4ebce3{constructor(){var _0x2bbb80=_0x28bcae;super(...arguments),d(this,_0x2bbb80(0x160),new Set()),d(this,_0x2bbb80(0x161),new Set());}[_0x28bcae(0x1b2)](_0x2a6741){var _0x2621fa=_0x28bcae;return this[_0x2621fa(0x160)][_0x2621fa(0x1cc)](_0x2a6741),_0x7d07bb(()=>this[_0x2621fa(0x160)][_0x2621fa(0x1e2)](_0x2a6741));}['registerInitialStateReporter'](_0x380f24){var _0x4ced73=_0x28bcae;return this[_0x4ced73(0x161)]['add'](_0x380f24),_0x7d07bb(()=>this[_0x4ced73(0x161)][_0x4ced73(0x1e2)](_0x380f24));}[_0x28bcae(0x1d0)](_0x37b494){var _0x3bea68=_0x28bcae;return this[_0x3bea68(0x160)][_0x3bea68(0x172)](_0x37b494);}[_0x28bcae(0x17b)](_0x27e311){var _0x5daf91=_0x28bcae;return Array[_0x5daf91(0x1e9)](this[_0x5daf91(0x161)])[_0x5daf91(0x157)](_0x58a971=>_0x58a971(_0x27e311));}}var Ee=Object[_0x28bcae(0x1f2)],we=(_0x1d07c6,_0x368ae9,_0x524e41,_0x3ddf54)=>{var _0x5d0935=_0x28bcae;for(var _0x4f1c14=_0x3ddf54>0x1?void 0x0:_0x3ddf54?Ee(_0x368ae9,_0x524e41):_0x368ae9,_0x3a258e=_0x1d07c6[_0x5d0935(0x1fa)]-0x1,_0x577925;_0x3a258e>=0x0;_0x3a258e--)(_0x577925=_0x1d07c6[_0x3a258e])&&(_0x4f1c14=_0x577925(_0x4f1c14)||_0x4f1c14);return _0x4f1c14;},Ne=(_0x5a79e1,_0x470c96)=>(_0x541505,_0x9b266a)=>_0x470c96(_0x541505,_0x9b266a,_0x5a79e1);let m=class extends _0x4ebce3{constructor(_0x5681db){var _0xa26dd0=_0x28bcae;super(),this[_0xa26dd0(0x1ba)]=_0x5681db,this[_0xa26dd0(0x1e0)]();}[_0x28bcae(0x1e0)](){[_0x936e8d['id'],_0x427aab['id'],_0x1df0cc['id']]['forEach'](_0x26cb13=>{var _0x31ca91=_0x3bd3;this[_0x31ca91(0x152)](this[_0x31ca91(0x1ba)][_0x31ca91(0x1b2)](_0x26cb13));});}};m=we([Ne(0x0,_0x2216cd(L))],m);var c=function(){var _0x235c08=_0x28bcae;return c=Object[_0x235c08(0x1e8)]||function(_0x38dff1){var _0x2dc378=_0x235c08;for(var _0xe912d8,_0x536b1=0x1,_0xf63efb=arguments[_0x2dc378(0x1fa)];_0x536b1<_0xf63efb;_0x536b1++){_0xe912d8=arguments[_0x536b1];for(var _0x262c68 in _0xe912d8)Object[_0x2dc378(0x187)][_0x2dc378(0x1ec)][_0x2dc378(0x177)](_0xe912d8,_0x262c68)&&(_0x38dff1[_0x262c68]=_0xe912d8[_0x262c68]);}return _0x38dff1;},c['apply'](this,arguments);},Ce=function(_0xb537ad,_0x1b4a80){var _0x211b99=_0x28bcae,_0x39a9de={};for(var _0x1b5050 in _0xb537ad)Object[_0x211b99(0x187)][_0x211b99(0x1ec)][_0x211b99(0x177)](_0xb537ad,_0x1b5050)&&_0x1b4a80[_0x211b99(0x1ac)](_0x1b5050)<0x0&&(_0x39a9de[_0x1b5050]=_0xb537ad[_0x1b5050]);if(_0xb537ad!=null&&typeof Object[_0x211b99(0x174)]==_0x211b99(0x1a3)){for(var _0x3a4a53=0x0,_0x1b5050=Object[_0x211b99(0x174)](_0xb537ad);_0x3a4a53<_0x1b5050[_0x211b99(0x1fa)];_0x3a4a53++)_0x1b4a80[_0x211b99(0x1ac)](_0x1b5050[_0x3a4a53])<0x0&&Object[_0x211b99(0x187)][_0x211b99(0x190)][_0x211b99(0x177)](_0xb537ad,_0x1b5050[_0x3a4a53])&&(_0x39a9de[_0x1b5050[_0x3a4a53]]=_0xb537ad[_0x1b5050[_0x3a4a53]]);}return _0x39a9de;},W=_0xdd8c9d(function(_0x3da0a7,_0x217312){var _0x5ef40f=_0x28bcae,_0x2b0ec7=_0x3da0a7['icon'],_0x50f52c=_0x3da0a7['id'],_0x1bf40b=_0x3da0a7[_0x5ef40f(0x1f6)],_0x110a60=_0x3da0a7[_0x5ef40f(0x1ef)],_0x5e3ac5=Ce(_0x3da0a7,[_0x5ef40f(0x1f4),'id',_0x5ef40f(0x1f6),_0x5ef40f(0x1ef)]),_0x13a363=_0x5ef40f(0x17a)[_0x5ef40f(0x1f8)](_0x50f52c,'\x20')['concat'](_0x1bf40b||'')['trim'](),_0x3f52e4=_0x19bf15('_'[_0x5ef40f(0x1f8)](Le()));return Y(_0x2b0ec7,''[_0x5ef40f(0x1f8)](_0x50f52c),{'defIds':_0x2b0ec7[_0x5ef40f(0x1fd)],'idSuffix':_0x3f52e4[_0x5ef40f(0x1af)]},c({'ref':_0x217312,'className':_0x13a363},_0x5e3ac5),_0x110a60);});function Y(_0x2c81fc,_0x11faad,_0x5b214e,_0x370794,_0x2c489e){var _0x27131c=_0x28bcae;return _0x214b06(_0x2c81fc[_0x27131c(0x1c5)],c(c({'key':_0x11faad},De(_0x2c81fc,_0x5b214e,_0x2c489e)),_0x370794),(xe(_0x2c81fc,_0x5b214e)[_0x27131c(0x163)]||[])[_0x27131c(0x157)](function(_0x2867bc,_0x1b0d2){var _0x3ab21b=_0x27131c;return Y(_0x2867bc,''['concat'](_0x11faad,'-')[_0x3ab21b(0x1f8)](_0x2c81fc[_0x3ab21b(0x1c5)],'-')['concat'](_0x1b0d2),_0x5b214e,void 0x0,_0x2c489e);}));}function De(_0x57193e,_0x345f5f,_0x15a823){var _0x220d3c=_0x28bcae,_0x1c96dd=c({},_0x57193e['attrs']);_0x15a823!=null&&_0x15a823[_0x220d3c(0x18e)]&&_0x1c96dd[_0x220d3c(0x15a)]==='colorChannel1'&&(_0x1c96dd[_0x220d3c(0x15a)]=_0x15a823['colorChannel1']),_0x57193e[_0x220d3c(0x1c5)]==='mask'&&_0x1c96dd['id']&&(_0x1c96dd['id']=_0x1c96dd['id']+_0x345f5f[_0x220d3c(0x194)]),Object[_0x220d3c(0x19b)](_0x1c96dd)[_0x220d3c(0x19d)](function(_0x5dc042){var _0x3b584c=_0x220d3c,_0xadf11c=_0x5dc042[0x0],_0x369c66=_0x5dc042[0x1];_0xadf11c==='mask'&&typeof _0x369c66==_0x3b584c(0x195)&&(_0x1c96dd[_0xadf11c]=_0x369c66[_0x3b584c(0x1c7)](/url\(#(.*)\)/,'url(#$1'[_0x3b584c(0x1f8)](_0x345f5f[_0x3b584c(0x194)],')')));});var _0x304499=_0x345f5f[_0x220d3c(0x1fd)];return!_0x304499||_0x304499[_0x220d3c(0x1fa)]===0x0||(_0x57193e[_0x220d3c(0x1c5)]===_0x220d3c(0x1ab)&&_0x1c96dd[_0x220d3c(0x1e6)]&&(_0x1c96dd['xlink:href']=_0x1c96dd[_0x220d3c(0x1e6)]+_0x345f5f[_0x220d3c(0x194)]),Object['entries'](_0x1c96dd)['forEach'](function(_0x4c8d09){var _0x301fbc=_0x220d3c,_0x6e8df5=_0x4c8d09[0x0],_0x115059=_0x4c8d09[0x1];typeof _0x115059==_0x301fbc(0x195)&&(_0x1c96dd[_0x6e8df5]=_0x115059[_0x301fbc(0x1c7)](/url\(#(.*)\)/,_0x301fbc(0x1d8)[_0x301fbc(0x1f8)](_0x345f5f[_0x301fbc(0x194)],')')));})),_0x1c96dd;}function xe(_0x114f2f,_0xbb2e07){var _0xde32ad=_0x28bcae,_0xb70371,_0x535129=_0xbb2e07[_0xde32ad(0x1fd)];return!_0x535129||_0x535129[_0xde32ad(0x1fa)]===0x0?_0x114f2f:_0x114f2f[_0xde32ad(0x1c5)]===_0xde32ad(0x1d1)&&(!((_0xb70371=_0x114f2f[_0xde32ad(0x163)])===null||_0xb70371===void 0x0)&&_0xb70371[_0xde32ad(0x1fa)])?c(c({},_0x114f2f),{'children':_0x114f2f[_0xde32ad(0x163)]['map'](function(_0x217f46){var _0x3fab15=_0xde32ad;return typeof _0x217f46[_0x3fab15(0x1cf)]['id']==_0x3fab15(0x195)&&_0x535129&&_0x535129[_0x3fab15(0x14f)](_0x217f46[_0x3fab15(0x1cf)]['id'])?c(c({},_0x217f46),{'attrs':c(c({},_0x217f46['attrs']),{'id':_0x217f46[_0x3fab15(0x1cf)]['id']+_0xbb2e07[_0x3fab15(0x194)]})}):_0x217f46;})}):_0x114f2f;}function Le(){var _0x2a2321=_0x28bcae;return Math['random']()[_0x2a2321(0x176)](0x24)[_0x2a2321(0x15b)](0x2,0x8);}W[_0x28bcae(0x1b9)]='UniverIcon';var ye={'tag':_0x28bcae(0x156),'attrs':{'xmlns':_0x28bcae(0x1f0),'fill':'none','viewBox':_0x28bcae(0x1ed),'width':_0x28bcae(0x168),'height':_0x28bcae(0x168)},'children':[{'tag':_0x28bcae(0x193),'attrs':{'fill':_0x28bcae(0x192),'d':_0x28bcae(0x1b7)}},{'tag':_0x28bcae(0x193),'attrs':{'fill':_0x28bcae(0x192),'d':_0x28bcae(0x1c6),'fillRule':_0x28bcae(0x1ad),'clipRule':_0x28bcae(0x1ad)}}]},B=_0xdd8c9d(function(_0x51887e,_0x1da917){var _0x47a592=_0x28bcae;return _0x214b06(W,Object[_0x47a592(0x1e8)]({},_0x51887e,{'id':_0x47a592(0x180),'ref':_0x1da917,'icon':ye}));});B[_0x28bcae(0x1b9)]=_0x28bcae(0x183);var Re=Object[_0x28bcae(0x1f2)],Z=(_0x595cd9,_0x2cc33f,_0x28b14c,_0x18638c)=>{var _0x1aa864=_0x28bcae;for(var _0x503f16=_0x18638c>0x1?void 0x0:_0x18638c?Re(_0x2cc33f,_0x28b14c):_0x2cc33f,_0x2f96e4=_0x595cd9[_0x1aa864(0x1fa)]-0x1,_0x4be2a1;_0x2f96e4>=0x0;_0x2f96e4--)(_0x4be2a1=_0x595cd9[_0x2f96e4])&&(_0x503f16=_0x4be2a1(_0x503f16)||_0x503f16);return _0x503f16;},f=(_0x3abdee,_0x30ee7d)=>(_0x34960f,_0x6855a)=>_0x30ee7d(_0x34960f,_0x6855a,_0x3abdee);let I=class extends _0x5583c6{constructor(_0x192569,_0x1a58a3,_0x545b9f){var _0x1e3c74=_0x28bcae;super(),d(this,_0x1e3c74(0x19e),new Map()),(this['_univerInstanceService']=_0x192569,this[_0x1e3c74(0x1a5)]=_0x1a58a3,this[_0x1e3c74(0x18f)]=_0x545b9f,this[_0x1e3c74(0x1e0)]());}async[_0x28bcae(0x1d7)](_0x2de532){var _0x4166a2=_0x28bcae;return this[_0x4166a2(0x19e)][_0x4166a2(0x172)](_0x2de532)||await this[_0x4166a2(0x1b6)](_0x2de532),this[_0x4166a2(0x19e)][_0x4166a2(0x1c1)](_0x2de532);}[_0x28bcae(0x1e0)](){var _0x3cb7d7=_0x28bcae;this[_0x3cb7d7(0x175)][_0x3cb7d7(0x15c)](_0x4876cf[_0x3cb7d7(0x1b3)])[_0x3cb7d7(0x165)](_0x26f930(this[_0x3cb7d7(0x15e)]))['subscribe'](async _0x14c153=>{var _0xda3c00=_0x3cb7d7;const _0xadac09=_0x14c153[_0xda3c00(0x1e3)]();this[_0xda3c00(0x19e)][_0xda3c00(0x172)](_0xadac09)||this[_0xda3c00(0x1b6)](_0xadac09);}),this[_0x3cb7d7(0x175)][_0x3cb7d7(0x1ca)](_0x4876cf[_0x3cb7d7(0x1b3)])[_0x3cb7d7(0x165)](_0x26f930(this[_0x3cb7d7(0x15e)]))[_0x3cb7d7(0x1ee)](_0x1ff933=>{var _0x2d85f2=_0x3cb7d7;const _0x304cc6=_0x1ff933['getUnitId'](),_0x33f9d7=this['_entities']['get'](_0x304cc6);_0x33f9d7==null||_0x33f9d7[_0x2d85f2(0x1db)]();});}async[_0x28bcae(0x1b6)](_0x4e24a1){var _0x4982d0=_0x28bcae;const _0x408a51=await this[_0x4982d0(0x18f)][_0x4982d0(0x1e5)](_0x4e24a1),_0x26e65f=this['_injector']['createInstance'](C,_0x4e24a1,_0x408a51);return _0x26e65f[_0x4982d0(0x167)](),this[_0x4982d0(0x19e)][_0x4982d0(0x1a1)](_0x4e24a1,_0x26e65f),_0x26e65f;}};I=Z([f(0x0,_0x1f30ea),f(0x1,_0x2216cd(_0x4193ef)),f(0x2,_0x2216cd(_0x5d75f2))],I);function _0x2404(){var _0x4c06f5=['LIVESHARE_REQUEST_HOST','operations','disposeWithMe','not-following','_status$','onRendered','svg','map','override','IDLE','fill','substring','getTypeOfUnitAdded$','_uiPartsService','dispose$','1376050PYyJLK','_sharedOperations','_reporters','306213lvxcCE','children','_presenter','pipe','_handleOperation','init','1em','sessionStatus$','sheet','tryStartPresenting','startFollowing','180qzOYRl','UNIVER_UNKNOWN','_commandDisposable','default','SAME_OPERATION_SHARE_INTERVAL','has','_startFollowing','getOwnPropertySymbols','_univerInstanceService','toString','call','LIVESHARE_OPERATION','memberID','univerjs-icon\x20univerjs-icon-','getInitialStates','_startPresenting','data','_unitID','reverse','live-share-icon','next','NOT_FOLLOWING','LiveShareIcon','_commandService','getConfig','Start\x20following','prototype','PRESENTING','LIVESHARE_TERMINATE','4989630YZisNR','status$','values','send','colorChannel1','_collabSessionService','propertyIsEnumerable','asObservable','currentColor','path','idSuffix','string','_handleTerminate','find','NEW_CHANGESETS','onCommandExecuted','onStarting','entries','3122VZeeRr','forEach','_entities','_fetchOperations','_collabSession','set','_stopPresenting','function','_beIdle','_injector','stopFollowing','then','4911255XhdyNu','_config','getMemberID','use','indexOf','evenodd','idle','current','following','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerSharedOperation','UNIVER_SHEET','univer-size-4','_handleOnline','_startLiveShareCoordinator','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','197813PLPwAb','displayName','_liveShareService','defineProperty','You\x27re\x20presenting\x20the\x20document','OPERATION','complete','_status','pluginName','get','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_FETCH_OPERATIONS','OFFLINE','tag','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','replace','Present\x20this\x20document','You\x27re\x20following\x20the\x20presenter','getTypeOfUnitDisposed$','live-share.config','add','type','setConfig','attrs','shouldShareOperation','defs','You\x27re\x20not\x20following\x20the\x20presenter','params','_stopFollowing','executeCommand','offline','getLiveShareCoordinator','url(#$1','div','2445400aDNrPX','dispose','4XRvCzh','_configService','symbol','unitId','_init','11VXgYpO','delete','getUnitId','event$','requireSession','xlink:href','FOLLOWING','assign','from','clear','getCurrentTypeOfUnit$','hasOwnProperty','0\x200\x2017\x2017','subscribe','extend','http://www.w3.org/2000/svg','unsubscribe','getOwnPropertyDescriptor','Start','icon','stringify','className','button','concat','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','length','_handleNewChangeSets','getValue','defIds','373wuXPuc','stopPresenting','presenting','LIVESHARE_NEW_HOST','presenter','_mountLiveShare','includes'];_0x2404=function(){return _0x4c06f5;};return _0x2404();}var h=(_0x8ee783=>(_0x8ee783['OFFLINE']=_0x28bcae(0x1d6),_0x8ee783[_0x28bcae(0x159)]=_0x28bcae(0x1ae),_0x8ee783[_0x28bcae(0x1e7)]='following',_0x8ee783[_0x28bcae(0x182)]=_0x28bcae(0x153),_0x8ee783[_0x28bcae(0x188)]='presenting',_0x8ee783))(h||{});const Pe=_0x28bcae(0x171),Ae=0xc8;let C=class extends _0x5583c6{constructor(_0x79d465,_0x275e7f,_0x7dd317,_0x2cf8c6,_0x3aca69){var _0x4e065d=_0x28bcae;super(),d(this,_0x4e065d(0x154),new _0x261795(_0x4e065d(0x1ae))),d(this,_0x4e065d(0x18b),this[_0x4e065d(0x154)][_0x4e065d(0x191)]()),d(this,'_init',!0x1),d(this,_0x4e065d(0x16f),null),d(this,_0x4e065d(0x164),null),(this[_0x4e065d(0x17e)]=_0x79d465,this[_0x4e065d(0x1a0)]=_0x275e7f,this[_0x4e065d(0x1dd)]=_0x7dd317,this[_0x4e065d(0x1ba)]=_0x2cf8c6,this[_0x4e065d(0x184)]=_0x3aca69);}get[_0x28bcae(0x1bf)](){var _0x450d23=_0x28bcae;return this[_0x450d23(0x154)][_0x450d23(0x1fc)]();}['dispose'](){var _0x1ce7b7=_0x28bcae,_0x1563c1;(_0x1563c1=this['_commandDisposable'])==null||_0x1563c1['dispose'](),this[_0x1ce7b7(0x154)][_0x1ce7b7(0x181)](_0x1ce7b7(0x1ae)),this[_0x1ce7b7(0x154)]['complete']();}[_0x28bcae(0x167)](){var _0x5b5d99=_0x28bcae;this[_0x5b5d99(0x1e0)]||(this[_0x5b5d99(0x1e0)]=!0x0,this[_0x5b5d99(0x1a0)][_0x5b5d99(0x169)][_0x5b5d99(0x165)](_0x26f930(this['dispose$']))[_0x5b5d99(0x1ee)](_0x394934=>{var _0x33f31c=_0x5b5d99;switch(_0x394934){case _0x2d9af3['OFFLINE']:this['_handleOffline']();break;case _0x2d9af3['ONLINE']:this[_0x33f31c(0x1b5)]();break;}}),this[_0x5b5d99(0x1a0)][_0x5b5d99(0x1e4)][_0x5b5d99(0x165)](_0x26f930(this[_0x5b5d99(0x15e)]))[_0x5b5d99(0x1ee)](_0x157a8c=>{var _0x20d381=_0x5b5d99;const {eventID:_0x4ad58d}=_0x157a8c;switch(_0x4ad58d){case _0x380e0d[_0x20d381(0x14c)]:this['_handleNewHost'](_0x157a8c);break;case _0x380e0d[_0x20d381(0x178)]:this['_handleOperation'](_0x157a8c);break;case _0x380e0d[_0x20d381(0x189)]:this['_handleTerminate']();break;case _0x380e0d[_0x20d381(0x198)]:this['_handleNewChangeSets'](_0x157a8c);break;}}));}[_0x28bcae(0x16b)](){var _0x27aabb=_0x28bcae;this[_0x27aabb(0x1a0)][_0x27aabb(0x18d)]({'eventID':_0x380e0d[_0x27aabb(0x150)],'data':{'unitID':this[_0x27aabb(0x17e)],'userID':this['_collabSession'][_0x27aabb(0x1aa)]()}},this[_0x27aabb(0x17e)]);}[_0x28bcae(0x1ff)](){var _0x305b4c=_0x28bcae;this['_status']===_0x305b4c(0x14b)&&(this[_0x305b4c(0x154)]['next'](_0x305b4c(0x1ae)),this[_0x305b4c(0x1a0)][_0x305b4c(0x18d)]({'eventID':_0x380e0d[_0x305b4c(0x189)],'data':{'unitID':this[_0x305b4c(0x17e)]}},this[_0x305b4c(0x17e)]));}[_0x28bcae(0x16c)](){var _0x9d6ad7=_0x28bcae;this['_status']===_0x9d6ad7(0x153)&&(this[_0x9d6ad7(0x154)][_0x9d6ad7(0x181)](_0x9d6ad7(0x1b0)),this[_0x9d6ad7(0x173)]());}[_0x28bcae(0x1a6)](){var _0x1ccbc2=_0x28bcae;this['_status']===_0x1ccbc2(0x1b0)&&this[_0x1ccbc2(0x1d4)]();}['_handleNewHost'](_0xe618d3){var _0x3a5349=_0x28bcae;const {presenter:_0xd95b4c}=_0xe618d3[_0x3a5349(0x17d)],_0x1cb57a=this[_0x3a5349(0x1a0)][_0x3a5349(0x1aa)]();this[_0x3a5349(0x164)]=_0xd95b4c,_0xd95b4c===_0x1cb57a?(this['_stopFollowing'](),this[_0x3a5349(0x17c)]()):this[_0x3a5349(0x1bf)]!=='not-following'&&(this[_0x3a5349(0x1a2)](),this[_0x3a5349(0x173)]());}[_0x28bcae(0x19f)](){var _0x38ce08=_0x28bcae;const _0x9ee90b={'eventID':_0x380e0d[_0x38ce08(0x1c3)]};this['_collabSession']['send'](_0x9ee90b,this[_0x38ce08(0x17e)]);}[_0x28bcae(0x196)](){var _0x343eec=_0x28bcae;this[_0x343eec(0x164)]=null,this[_0x343eec(0x1bf)]!==_0x343eec(0x14b)&&this[_0x343eec(0x1a4)]();}[_0x28bcae(0x1fb)](_0x6048df){var _0x358ba1=_0x28bcae;if(this[_0x358ba1(0x1bf)]===_0x358ba1(0x1b0)&&this[_0x358ba1(0x164)]===_0x6048df[_0x358ba1(0x17d)][_0x358ba1(0x179)]){const _0x20fafa=_0x3eac9c(_0x6048df[_0x358ba1(0x17d)])['mutations'][_0x358ba1(0x17f)]()[_0x358ba1(0x197)](_0x4a4605=>_0x4a4605['id']===_0xc818aa['id']);if(_0x20fafa){const _0x19d5ef=_0x20fafa[_0x358ba1(0x1d3)][_0x358ba1(0x1df)],_0x526689=_0x20fafa[_0x358ba1(0x1d3)][_0x358ba1(0x16a)]['id'];setTimeout(()=>{var _0x4838a3=_0x358ba1;this[_0x4838a3(0x184)][_0x4838a3(0x1d5)](_0x1df0cc['id'],{'unitId':_0x19d5ef,'subUnitId':_0x526689},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3c09b0=_0x28bcae;this[_0x3c09b0(0x154)]['next']('presenting');const _0x5c4b60=new Map(),_0x5161f5=this[_0x3c09b0(0x16f)]=new _0x4f0359();_0x5161f5[_0x3c09b0(0x1cc)](_0x7d07bb(()=>{var _0x5e05fa=_0x3c09b0;_0x5c4b60[_0x5e05fa(0x19d)](_0x4be86f=>_0x4be86f[_0x5e05fa(0x1be)]()),_0x5c4b60[_0x5e05fa(0x1ea)]();})),_0x5161f5[_0x3c09b0(0x1cc)](this[_0x3c09b0(0x184)][_0x3c09b0(0x199)](_0x1a103e=>{var _0xe78966=_0x3c09b0,_0x4003b8;if(_0x1a103e[_0xe78966(0x1cd)]!==_0x3a8039[_0xe78966(0x1bd)]||!this[_0xe78966(0x1ba)][_0xe78966(0x1d0)](_0x1a103e['id']))return;const {id:_0x392b73}=_0x1a103e;let _0x5b9595;_0x5c4b60[_0xe78966(0x172)](_0x392b73)?_0x5b9595=_0x5c4b60['get'](_0x392b73):(_0x5b9595=new _0x423159(),_0x5c4b60[_0xe78966(0x1a1)](_0x392b73,_0x5b9595),_0x5b9595['pipe'](_0x2c3cbf((_0x4003b8=this[_0xe78966(0x1dd)][_0xe78966(0x185)](Pe))!=null?_0x4003b8:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xe78966(0x1ee)](_0x49d079=>{var _0x5cfbd0=_0xe78966;this['_collabSession'][_0x5cfbd0(0x18d)]({'eventID':_0x380e0d[_0x5cfbd0(0x178)],'data':{'unitID':this[_0x5cfbd0(0x17e)],'operations':{[_0x49d079['id']]:{'id':_0x49d079['id'],'params':JSON[_0x5cfbd0(0x1f5)](_0x49d079[_0x5cfbd0(0x1d3)])}}}},this['_unitID']);})),_0x5b9595[_0xe78966(0x181)](_0x1a103e);})),this[_0x3c09b0(0x1ba)][_0x3c09b0(0x17b)](this['_unitID'])[_0x3c09b0(0x19d)](_0x526ed5=>this[_0x3c09b0(0x1a0)][_0x3c09b0(0x18d)]({'eventID':_0x380e0d[_0x3c09b0(0x178)],'data':{'unitID':this[_0x3c09b0(0x17e)],'operations':{[_0x526ed5['id']]:{'id':_0x526ed5['id'],'params':JSON[_0x3c09b0(0x1f5)](_0x526ed5[_0x3c09b0(0x1d3)])}}}},this[_0x3c09b0(0x17e)]));}[_0x28bcae(0x1a2)](){var _0x5dc02c=_0x28bcae,_0x36976c;this[_0x5dc02c(0x154)]['next']('idle'),(_0x36976c=this[_0x5dc02c(0x16f)])==null||_0x36976c[_0x5dc02c(0x1db)](),this[_0x5dc02c(0x16f)]=null;}[_0x28bcae(0x173)](){var _0x1d5bf0=_0x28bcae,_0x292920;(_0x292920=this[_0x1d5bf0(0x16f)])==null||_0x292920[_0x1d5bf0(0x1db)](),this[_0x1d5bf0(0x154)][_0x1d5bf0(0x181)](_0x1d5bf0(0x1b0));}[_0x28bcae(0x1a4)](){var _0x35b5cf=_0x28bcae,_0x4a28c2;this[_0x35b5cf(0x154)][_0x35b5cf(0x181)](_0x35b5cf(0x1ae)),(_0x4a28c2=this['_commandDisposable'])==null||_0x4a28c2['dispose'](),this[_0x35b5cf(0x16f)]=null;}[_0x28bcae(0x1d4)](){var _0x2b0824=_0x28bcae,_0x20ede6;this[_0x2b0824(0x154)][_0x2b0824(0x181)](_0x2b0824(0x153)),(_0x20ede6=this[_0x2b0824(0x16f)])==null||_0x20ede6[_0x2b0824(0x1db)]();}[_0x28bcae(0x166)](_0x5e9110){var _0x2317b9=_0x28bcae;if([_0x2317b9(0x14b),_0x2317b9(0x153),'offline'][_0x2317b9(0x14f)](this[_0x2317b9(0x1bf)])||!_0x5e9110['data'][_0x2317b9(0x14d)]||_0x5e9110[_0x2317b9(0x17d)]['presenter']===this[_0x2317b9(0x1a0)][_0x2317b9(0x1aa)]())return;this['_status']===_0x2317b9(0x1ae)&&this[_0x2317b9(0x173)]();const _0x13fcb0=_0x5e9110[_0x2317b9(0x17d)][_0x2317b9(0x151)];Object[_0x2317b9(0x18c)](_0x13fcb0)['forEach'](_0x20e64d=>{var _0x36ee99=_0x2317b9;this[_0x36ee99(0x184)][_0x36ee99(0x1d5)](_0x20e64d['id'],_0x20e64d[_0x36ee99(0x1d3)]?JSON['parse'](_0x20e64d[_0x36ee99(0x1d3)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x69600e=_0x28bcae,_0x22f074;this[_0x69600e(0x154)][_0x69600e(0x181)](_0x69600e(0x1d6)),(_0x22f074=this[_0x69600e(0x16f)])==null||_0x22f074[_0x69600e(0x1db)]();}[_0x28bcae(0x1b5)](){var _0x59d388=_0x28bcae;this[_0x59d388(0x154)][_0x59d388(0x181)](_0x59d388(0x1ae)),this['_fetchOperations']();}};C=Z([f(0x2,_0x50f85a),f(0x3,_0x2216cd(L)),f(0x4,_0x5eb8fc)],C);function _0x3bd3(_0x3a6592,_0xb6cdf8){var _0x2404b1=_0x2404();return _0x3bd3=function(_0x3bd37d,_0x4935fb){_0x3bd37d=_0x3bd37d-0x14b;var _0x3a34c3=_0x2404b1[_0x3bd37d];return _0x3a34c3;},_0x3bd3(_0x3a6592,_0xb6cdf8);}function Te(){var _0x23fd80=_0x28bcae;const _0x53e564=_0xbf9ecf(I),_0x461dbb=_0xbf9ecf(_0x1f30ea),_0x5f0b76=_0x4e5cbb(()=>_0x461dbb[_0x23fd80(0x1eb)](_0x4876cf[_0x23fd80(0x1b3)]),void 0x0,!0x1,[]),[_0x3b027f,_0x545b14]=_0x1c6c56(null),[_0x41cd79,_0x12f815]=_0x1c6c56(h[_0x23fd80(0x159)]),_0x3b6b6b=_0x19bf15(null);return _0xcc0725(()=>(_0x5f0b76&&_0x53e564[_0x23fd80(0x1d7)](_0x5f0b76[_0x23fd80(0x1e3)]())[_0x23fd80(0x1a7)](_0x6145cf=>{var _0x341762=_0x23fd80;_0x545b14(_0x6145cf),_0x3b6b6b[_0x341762(0x1af)]=_0x6145cf[_0x341762(0x18b)][_0x341762(0x1ee)](_0x29b957=>{_0x12f815(_0x29b957);});}),()=>{var _0x18b165=_0x23fd80,_0x41697d;(_0x41697d=_0x3b6b6b[_0x18b165(0x1af)])==null||_0x41697d[_0x18b165(0x1f1)](),_0x3b6b6b[_0x18b165(0x1af)]=null;}),[_0x5f0b76,_0x53e564]),_0x3b027f?_0x2715b3(_0x308dad,{'align':'end','disabled':_0x41cd79===h[_0x23fd80(0x1c4)],'className':_0x23fd80(0x1f9),'overlay':_0x2715b3($e,{'status':_0x41cd79,'coordinator':_0x3b027f}),'children':_0x2715b3(_0x23fd80(0x1f7),{'className':_0x15471c(_0x23fd80(0x1c2),{'univer-cursor-not-allowed':_0x41cd79===h[_0x23fd80(0x1c4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x41cd79!==h[_0x23fd80(0x1c4)]}),'type':_0x23fd80(0x1f7),'children':_0x2715b3(B,{'className':_0x23fd80(0x1b4)})})}):null;}function $e(_0x37e442){var _0x2cb4f0=_0x28bcae;const {status:_0x37fccf,coordinator:_0x51f3f6}=_0x37e442;switch(_0x37fccf){case h[_0x2cb4f0(0x159)]:return _0x2715b3(Fe,{'coordinator':_0x51f3f6});case h[_0x2cb4f0(0x1e7)]:return _0x2715b3(He,{'coordinator':_0x51f3f6});case h['NOT_FOLLOWING']:return _0x2715b3(je,{'coordinator':_0x51f3f6});case h[_0x2cb4f0(0x1c4)]:return _0x2715b3(Ve,{});case h[_0x2cb4f0(0x188)]:return _0x2715b3(Ue,{'coordinator':_0x51f3f6});default:return null;}}function Fe(_0x3eed0f){var _0x219b97=_0x28bcae;const {coordinator:_0x1c0dba}=_0x3eed0f;return _0x1b5c99(_0x168fdd,{'children':[_0x2715b3(_0x219b97(0x1d9),{'className':_0x219b97(0x1b1),'children':_0x219b97(0x1c8)}),_0x2715b3(_0x5378e4,{'onClick':()=>_0x1c0dba[_0x219b97(0x16b)](),'children':_0x219b97(0x1f3)})]});}function He(_0x4eda8a){var _0x35ce8b=_0x28bcae;const {coordinator:_0xbe1bb6}=_0x4eda8a;return _0x1b5c99(_0x168fdd,{'children':[_0x2715b3(_0x35ce8b(0x1d9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x35ce8b(0x1c9)}),_0x2715b3(_0x5378e4,{'onClick':()=>_0xbe1bb6['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x4ed3da){var _0xbf8c19=_0x28bcae;const {coordinator:_0x5d9432}=_0x4ed3da;return _0x1b5c99(_0x168fdd,{'children':[_0x2715b3(_0xbf8c19(0x1d9),{'className':_0xbf8c19(0x1b1),'children':_0xbf8c19(0x1d2)}),_0x2715b3(_0x5378e4,{'variant':'text','onClick':()=>_0x5d9432['startFollowing'](),'children':_0xbf8c19(0x186)})]});}function Ue(_0x3e4cdf){var _0x407a44=_0x28bcae;const {coordinator:_0x1fbcdc}=_0x3e4cdf;return _0x1b5c99(_0x168fdd,{'children':[_0x2715b3(_0x407a44(0x1d9),{'className':_0x407a44(0x1b1),'children':_0x407a44(0x1bc)}),_0x2715b3(_0x5378e4,{'variant':_0x407a44(0x170),'onClick':()=>_0x1fbcdc[_0x407a44(0x1ff)](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x2715b3(_0x168fdd,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x28bcae(0x1f2)],ke=(_0x4632be,_0x13aa5b,_0x2772f0,_0x62b6af)=>{for(var _0x2c1762=_0x62b6af>0x1?void 0x0:_0x62b6af?Me(_0x13aa5b,_0x2772f0):_0x13aa5b,_0x36b801=_0x4632be['length']-0x1,_0x502301;_0x36b801>=0x0;_0x36b801--)(_0x502301=_0x4632be[_0x36b801])&&(_0x2c1762=_0x502301(_0x2c1762)||_0x2c1762);return _0x2c1762;},$=(_0x1d1cd3,_0x24fbc3)=>(_0x49cc00,_0x471b5f)=>_0x24fbc3(_0x49cc00,_0x471b5f,_0x1d1cd3);let b=class extends _0x4ebce3{constructor(_0x291148,_0x319819){var _0x1a5926=_0x28bcae;super(),this[_0x1a5926(0x1a5)]=_0x291148,this[_0x1a5926(0x15d)]=_0x319819,this[_0x1a5926(0x14e)]();}[_0x28bcae(0x14e)](){var _0x56e940=_0x28bcae;this['disposeWithMe'](this[_0x56e940(0x15d)]['registerComponent'](_0x2832e7['HEADER_MENU'],()=>_0x2299bb(Te,this[_0x56e940(0x1a5)])));}};b=ke([$(0x0,_0x2216cd(_0x4193ef)),$(0x1,_0x30b6fc)],b);var Ge=Object[_0x28bcae(0x1bb)],We=Object[_0x28bcae(0x1f2)],Ye=(_0x3a34cb,_0x2ea3f8,_0x161df5)=>_0x2ea3f8 in _0x3a34cb?Ge(_0x3a34cb,_0x2ea3f8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x161df5}):_0x3a34cb[_0x2ea3f8]=_0x161df5,Be=(_0x4789ed,_0x32f6ee,_0x11e4ac,_0x23199d)=>{var _0x34b7d7=_0x28bcae;for(var _0x32b51d=_0x23199d>0x1?void 0x0:_0x23199d?We(_0x32f6ee,_0x11e4ac):_0x32f6ee,_0x5856dc=_0x4789ed[_0x34b7d7(0x1fa)]-0x1,_0x10fc48;_0x5856dc>=0x0;_0x5856dc--)(_0x10fc48=_0x4789ed[_0x5856dc])&&(_0x32b51d=_0x10fc48(_0x32b51d)||_0x32b51d);return _0x32b51d;},F=(_0xc08482,_0x464482)=>(_0x54f600,_0x15d7ed)=>_0x464482(_0x54f600,_0x15d7ed,_0xc08482),J=(_0x472c8d,_0x50d90e,_0x46636d)=>Ye(_0x472c8d,typeof _0x50d90e!=_0x28bcae(0x1de)?_0x50d90e+'':_0x50d90e,_0x46636d);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x100d90{constructor(_0x259a95=T,_0x896803,_0x18b7ce){var _0x2439b8=_0x28bcae;super(),this[_0x2439b8(0x1a9)]=_0x259a95,this[_0x2439b8(0x1a5)]=_0x896803,this[_0x2439b8(0x1dd)]=_0x18b7ce;const {..._0x3ef4cf}=_0x342713({},T,this['_config']);this[_0x2439b8(0x1dd)][_0x2439b8(0x1ce)](Oe,_0x3ef4cf);}[_0x28bcae(0x19a)](){var _0x2fcb31=_0x28bcae;_0x101666(this['_injector'],_0x10c3e8([[L],[I],[m],[b]],this[_0x2fcb31(0x1a9)][_0x2fcb31(0x158)])),_0x1b1875(this[_0x2fcb31(0x1a5)],[[m]]);}[_0x28bcae(0x155)](){var _0x33b57c=_0x28bcae;_0x1b1875(this[_0x33b57c(0x1a5)],[[b]]);}};J(O,_0x28bcae(0x1cd),_0x4876cf[_0x28bcae(0x16e)]),J(O,_0x28bcae(0x1c0),Ze),O=Be([_0x1d67a4(_0x320bf0),F(0x1,_0x2216cd(_0x4193ef)),F(0x2,_0x50f85a)],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 _0x3eff67=_0x31ab;(function(_0x34e3dd,_0xd7c235){var _0x5c499f=_0x31ab,_0x194726=_0x34e3dd();while(!![]){try{var _0x16e3db=parseInt(_0x5c499f(0x1e2))/0x1+-parseInt(_0x5c499f(0x191))/0x2+parseInt(_0x5c499f(0x1cf))/0x3*(parseInt(_0x5c499f(0x168))/0x4)+-parseInt(_0x5c499f(0x1b8))/0x5*(parseInt(_0x5c499f(0x187))/0x6)+parseInt(_0x5c499f(0x1b6))/0x7+-parseInt(_0x5c499f(0x1ae))/0x8+parseInt(_0x5c499f(0x1a0))/0x9;if(_0x16e3db===_0xd7c235)break;else _0x194726['push'](_0x194726['shift']());}catch(_0x1ed860){_0x194726['push'](_0x194726['shift']());}}}(_0x1f46,0x9efd8));var q=Object[_0x3eff67(0x166)],z=(_0x5672ec,_0x4afd82,_0x3b2038)=>_0x4afd82 in _0x5672ec?q(_0x5672ec,_0x4afd82,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b2038}):_0x5672ec[_0x4afd82]=_0x3b2038,d=(_0x44d3ed,_0x5bcb97,_0x5a04a1)=>z(_0x44d3ed,typeof _0x5bcb97!=_0x3eff67(0x1d9)?_0x5bcb97+'':_0x5bcb97,_0x5a04a1);import{CollaborationSessionService as _0x3fb12e,SessionStatus as _0x1efbf3,UniverCollaborationClientPlugin as _0x10ce60}from'@univerjs-pro/collaboration-client';function _0x1f46(){var _0x18c72e=['path','use','idSuffix','LIVESHARE_OPERATION','hasOwnProperty','parse','getValue','13037319NXRNtn','getConfig','defs','length','memberID','complete','next','override','_configService','LIVESHARE_NEW_HOST','setConfig','UniverIcon','_startFollowing','dispose','4891152Reqask','status$','_mountLiveShare','icon','_reporters','_handleTerminate','clear','onStarting','2696883XAIoym','_sharedOperations','60xrnJUp','svg','_status$','You\x27re\x20following\x20the\x20presenter','_uiPartsService','UNIVER_SHEET','set','startFollowing','type','sheet','OFFLINE','univer-size-4','replace','ONLINE','children','_commandService','currentColor','prototype','getOwnPropertySymbols','pipe','Start\x20following','string','http://www.w3.org/2000/svg','11055xDOuhu','registerInitialStateReporter','mutations','getOwnPropertyDescriptor','presenter','_presenter','includes','forEach','div','stringify','symbol','from','has','send','reverse','0\x200\x2017\x2017','end','_init','fill','234688jVGHQb','disposeWithMe','getInitialStates','assign','Stop\x20following','get','createInstance','_stopFollowing','_collabSessionService','registerSharedOperation','_handleOperation','_handleNewHost','url(#$1','_liveShareService','apply','evenodd','attrs','Start','NOT_FOLLOWING','current','1em','init','call','LIVESHARE_REQUEST_HOST','displayName','shouldShareOperation','offline','live-share-icon','subscribe','asObservable','trim','_fetchOperations','dispose$','data','extend','PRESENTING','add','_beIdle','univerjs-icon\x20univerjs-icon-','NEW_CHANGESETS','_handleOffline','random','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','unitId','delete','className','stopPresenting','OPERATION','idle','_entities','_handleOnline','defineProperty','Stop\x20presenting','676eBmkdb','pluginName','xlink:href','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','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','onCommandExecuted','_commandDisposable','concat','executeCommand','_unitID','tryStartPresenting','getTypeOfUnitAdded$','_config','values','FOLLOWING','text','You\x27re\x20presenting\x20the\x20document','colorChannel1','following','default','button','map','_univerInstanceService','then','getMemberID','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','not-following','entries','_status','638688SbpAel','_stopPresenting','getUnitId','defIds','_startLiveShareCoordinator','LIVESHARE_TERMINATE','operations','_startPresenting','params','UNIVER_LIVE_SHARE_PLUGIN','302638GNyelZ','tag','_injector','getCurrentTypeOfUnit$','_handleNewChangeSets','IDLE','_collabSession','presenting'];_0x1f46=function(){return _0x18c72e;};return _0x1f46();}import{Disposable as _0x41e790,toDisposable as _0x1c3b80,Inject as _0x409218,IUniverInstanceService as _0x55c1e4,Injector as _0x2813f3,IConfigService as _0x5e7702,ICommandService as _0x5ab311,RxDisposable as _0x423d8a,UniverInstanceType as _0x19162e,DisposableCollection as _0x523026,CommandType as _0x142835,DependentOn as _0x1c0dec,Plugin as _0x2dc758,merge as _0x4268e8,registerDependencies as _0x323506,mergeOverrideWithDependencies as _0x263d4d,touchDependencies as _0x29f66d}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x26f0a8,InsertSheetMutation as _0x2463e7}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xb8ad1e,SetScrollOperation as _0x4808f9}from'@univerjs/sheets-ui';import{useDependency as _0x5cd417,useObservable as _0x1dad95,IUIPartsService as _0x54c0ed,BuiltInUIPart as _0x5ad5f4,connectInjector as _0x2f61ae}from'@univerjs/ui';import{jsx as _0x1fcf7b,jsxs as _0xdfee60,Fragment as _0x378d55}from'react/jsx-runtime';import{Dropdown as _0x15741b,clsx as _0x144952,Button as _0x360a74}from'@univerjs/design';import{forwardRef as _0x17b570,useRef as _0x1653ac,createElement as _0x2d133d,useState as _0x324aa9,useEffect as _0x23e425}from'react';import{CollaborationEvent as _0x22777c,parseProtocolChangeset as _0x540cc9}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x247e69,Subject as _0x3d88fa}from'rxjs';import{takeUntil as _0x492107,throttleTime as _0x2882f6}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x41e790{constructor(){var _0x511ecf=_0x3eff67;super(...arguments),d(this,_0x511ecf(0x1b7),new Set()),d(this,_0x511ecf(0x1b2),new Set());}[_0x3eff67(0x1eb)](_0x21fb17){var _0x33b33e=_0x3eff67;return this[_0x33b33e(0x1b7)][_0x33b33e(0x157)](_0x21fb17),_0x1c3b80(()=>this['_sharedOperations']['delete'](_0x21fb17));}[_0x3eff67(0x1d0)](_0x1981e8){var _0x57a982=_0x3eff67;return this[_0x57a982(0x1b2)]['add'](_0x1981e8),_0x1c3b80(()=>this[_0x57a982(0x1b2)][_0x57a982(0x15f)](_0x1981e8));}[_0x3eff67(0x1fb)](_0x713650){var _0x591a72=_0x3eff67;return this[_0x591a72(0x1b7)][_0x591a72(0x1db)](_0x713650);}['getInitialStates'](_0x3f2e6a){var _0x371d9d=_0x3eff67;return Array[_0x371d9d(0x1da)](this['_reporters'])[_0x371d9d(0x17e)](_0x2999c8=>_0x2999c8(_0x3f2e6a));}}var Ee=Object[_0x3eff67(0x1d2)],we=(_0x2effaf,_0x3ad890,_0x2b473c,_0xf61b5b)=>{var _0x1ee75d=_0x3eff67;for(var _0x417563=_0xf61b5b>0x1?void 0x0:_0xf61b5b?Ee(_0x3ad890,_0x2b473c):_0x3ad890,_0x980a50=_0x2effaf[_0x1ee75d(0x1a3)]-0x1,_0x49672f;_0x980a50>=0x0;_0x980a50--)(_0x49672f=_0x2effaf[_0x980a50])&&(_0x417563=_0x49672f(_0x417563)||_0x417563);return _0x417563;},Ne=(_0x4d9250,_0x122290)=>(_0x19f760,_0x3c74bf)=>_0x122290(_0x19f760,_0x3c74bf,_0x4d9250);let m=class extends _0x41e790{constructor(_0x21cd4d){var _0x1e7c96=_0x3eff67;super(),this[_0x1e7c96(0x1ef)]=_0x21cd4d,this[_0x1e7c96(0x1e0)]();}['_init'](){var _0x1c439e=_0x3eff67;[_0xb8ad1e['id'],_0x4808f9['id'],_0x26f0a8['id']][_0x1c439e(0x1d6)](_0x61990a=>{var _0x20fd33=_0x1c439e;this[_0x20fd33(0x1e3)](this[_0x20fd33(0x1ef)][_0x20fd33(0x1eb)](_0x61990a));});}};m=we([Ne(0x0,_0x409218(L))],m);var c=function(){var _0x4cbc56=_0x3eff67;return c=Object[_0x4cbc56(0x1e5)]||function(_0x12036d){var _0xb5a243=_0x4cbc56;for(var _0x372c80,_0x18d009=0x1,_0xe8ec69=arguments[_0xb5a243(0x1a3)];_0x18d009<_0xe8ec69;_0x18d009++){_0x372c80=arguments[_0x18d009];for(var _0x4b23a5 in _0x372c80)Object[_0xb5a243(0x1c9)][_0xb5a243(0x19d)][_0xb5a243(0x1f8)](_0x372c80,_0x4b23a5)&&(_0x12036d[_0x4b23a5]=_0x372c80[_0x4b23a5]);}return _0x12036d;},c[_0x4cbc56(0x1f0)](this,arguments);},Ce=function(_0x1b7e14,_0x1729d9){var _0x101efb=_0x3eff67,_0x22c09b={};for(var _0xaf4d0d in _0x1b7e14)Object[_0x101efb(0x1c9)][_0x101efb(0x19d)][_0x101efb(0x1f8)](_0x1b7e14,_0xaf4d0d)&&_0x1729d9['indexOf'](_0xaf4d0d)<0x0&&(_0x22c09b[_0xaf4d0d]=_0x1b7e14[_0xaf4d0d]);if(_0x1b7e14!=null&&typeof Object[_0x101efb(0x1ca)]=='function'){for(var _0xecea7a=0x0,_0xaf4d0d=Object[_0x101efb(0x1ca)](_0x1b7e14);_0xecea7a<_0xaf4d0d['length'];_0xecea7a++)_0x1729d9['indexOf'](_0xaf4d0d[_0xecea7a])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x1b7e14,_0xaf4d0d[_0xecea7a])&&(_0x22c09b[_0xaf4d0d[_0xecea7a]]=_0x1b7e14[_0xaf4d0d[_0xecea7a]]);}return _0x22c09b;},W=_0x17b570(function(_0x312eb2,_0x1afeb){var _0x55ee70=_0x3eff67,_0x2b7d8b=_0x312eb2[_0x55ee70(0x1b1)],_0x53a4a1=_0x312eb2['id'],_0x336fdd=_0x312eb2[_0x55ee70(0x160)],_0x13b316=_0x312eb2[_0x55ee70(0x204)],_0x34e919=Ce(_0x312eb2,['icon','id',_0x55ee70(0x160),'extend']),_0x5e22fa=_0x55ee70(0x159)['concat'](_0x53a4a1,'\x20')[_0x55ee70(0x170)](_0x336fdd||'')[_0x55ee70(0x200)](),_0x428f3a=_0x1653ac('_'['concat'](Le()));return Y(_0x2b7d8b,''[_0x55ee70(0x170)](_0x53a4a1),{'defIds':_0x2b7d8b[_0x55ee70(0x18a)],'idSuffix':_0x428f3a[_0x55ee70(0x1f5)]},c({'ref':_0x1afeb,'className':_0x5e22fa},_0x34e919),_0x13b316);});function Y(_0x5cc9af,_0xac24a9,_0x11b732,_0xceec65,_0x539e04){var _0x4e679f=_0x3eff67;return _0x2d133d(_0x5cc9af[_0x4e679f(0x192)],c(c({'key':_0xac24a9},De(_0x5cc9af,_0x11b732,_0x539e04)),_0xceec65),(xe(_0x5cc9af,_0x11b732)[_0x4e679f(0x1c6)]||[])['map'](function(_0x18bfd6,_0x492f08){var _0x12e310=_0x4e679f;return Y(_0x18bfd6,''[_0x12e310(0x170)](_0xac24a9,'-')['concat'](_0x5cc9af[_0x12e310(0x192)],'-')['concat'](_0x492f08),_0x11b732,void 0x0,_0x539e04);}));}function De(_0x15773c,_0x2f1217,_0x3cc958){var _0x2c9cc5=_0x3eff67,_0x132b37=c({},_0x15773c['attrs']);_0x3cc958!=null&&_0x3cc958[_0x2c9cc5(0x17a)]&&_0x132b37[_0x2c9cc5(0x1e1)]===_0x2c9cc5(0x17a)&&(_0x132b37['fill']=_0x3cc958[_0x2c9cc5(0x17a)]),_0x15773c[_0x2c9cc5(0x192)]==='mask'&&_0x132b37['id']&&(_0x132b37['id']=_0x132b37['id']+_0x2f1217[_0x2c9cc5(0x19b)]),Object[_0x2c9cc5(0x185)](_0x132b37)[_0x2c9cc5(0x1d6)](function(_0xfcfe7d){var _0x3e9dbc=_0x2c9cc5,_0x58e62e=_0xfcfe7d[0x0],_0x3b6947=_0xfcfe7d[0x1];_0x58e62e==='mask'&&typeof _0x3b6947==_0x3e9dbc(0x1cd)&&(_0x132b37[_0x58e62e]=_0x3b6947['replace'](/url\(#(.*)\)/,_0x3e9dbc(0x1ee)['concat'](_0x2f1217[_0x3e9dbc(0x19b)],')')));});var _0x1c1407=_0x2f1217[_0x2c9cc5(0x18a)];return!_0x1c1407||_0x1c1407[_0x2c9cc5(0x1a3)]===0x0||(_0x15773c[_0x2c9cc5(0x192)]===_0x2c9cc5(0x19a)&&_0x132b37[_0x2c9cc5(0x16a)]&&(_0x132b37[_0x2c9cc5(0x16a)]=_0x132b37['xlink:href']+_0x2f1217[_0x2c9cc5(0x19b)]),Object[_0x2c9cc5(0x185)](_0x132b37)[_0x2c9cc5(0x1d6)](function(_0x33e124){var _0x3667e5=_0x2c9cc5,_0x48e37d=_0x33e124[0x0],_0x539550=_0x33e124[0x1];typeof _0x539550=='string'&&(_0x132b37[_0x48e37d]=_0x539550[_0x3667e5(0x1c4)](/url\(#(.*)\)/,'url(#$1'[_0x3667e5(0x170)](_0x2f1217[_0x3667e5(0x19b)],')')));})),_0x132b37;}function xe(_0x499004,_0x59bc12){var _0x415ef6=_0x3eff67,_0x31ab1b,_0x4ea787=_0x59bc12[_0x415ef6(0x18a)];return!_0x4ea787||_0x4ea787[_0x415ef6(0x1a3)]===0x0?_0x499004:_0x499004[_0x415ef6(0x192)]===_0x415ef6(0x1a2)&&(!((_0x31ab1b=_0x499004['children'])===null||_0x31ab1b===void 0x0)&&_0x31ab1b[_0x415ef6(0x1a3)])?c(c({},_0x499004),{'children':_0x499004[_0x415ef6(0x1c6)][_0x415ef6(0x17e)](function(_0x5b8992){var _0x23f52a=_0x415ef6;return typeof _0x5b8992[_0x23f52a(0x1f2)]['id']==_0x23f52a(0x1cd)&&_0x4ea787&&_0x4ea787[_0x23f52a(0x1d5)](_0x5b8992[_0x23f52a(0x1f2)]['id'])?c(c({},_0x5b8992),{'attrs':c(c({},_0x5b8992[_0x23f52a(0x1f2)]),{'id':_0x5b8992[_0x23f52a(0x1f2)]['id']+_0x59bc12['idSuffix']})}):_0x5b8992;})}):_0x499004;}function Le(){var _0x509b4d=_0x3eff67;return Math[_0x509b4d(0x15c)]()['toString'](0x24)['substring'](0x2,0x8);}W[_0x3eff67(0x1fa)]=_0x3eff67(0x1ab);var ye={'tag':_0x3eff67(0x1b9),'attrs':{'xmlns':_0x3eff67(0x1ce),'fill':'none','viewBox':_0x3eff67(0x1de),'width':_0x3eff67(0x1f6),'height':_0x3eff67(0x1f6)},'children':[{'tag':_0x3eff67(0x199),'attrs':{'fill':_0x3eff67(0x1c8),'d':_0x3eff67(0x15d)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x3eff67(0x1f1)}}]},B=_0x17b570(function(_0x24943c,_0x2747ce){var _0x4f6b4f=_0x3eff67;return _0x2d133d(W,Object[_0x4f6b4f(0x1e5)]({},_0x24943c,{'id':_0x4f6b4f(0x1fd),'ref':_0x2747ce,'icon':ye}));});B['displayName']='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x2f7209,_0x1e683c,_0x2f5ddd,_0x31032c)=>{for(var _0xfa9166=_0x31032c>0x1?void 0x0:_0x31032c?Re(_0x1e683c,_0x2f5ddd):_0x1e683c,_0x17c141=_0x2f7209['length']-0x1,_0x56f321;_0x17c141>=0x0;_0x17c141--)(_0x56f321=_0x2f7209[_0x17c141])&&(_0xfa9166=_0x56f321(_0xfa9166)||_0xfa9166);return _0xfa9166;},f=(_0x2536ba,_0x27e7de)=>(_0x21eef9,_0x539d35)=>_0x27e7de(_0x21eef9,_0x539d35,_0x2536ba);let I=class extends _0x423d8a{constructor(_0x3c1eab,_0x515c31,_0x286a8a){var _0x5b4530=_0x3eff67;super(),d(this,_0x5b4530(0x164),new Map()),(this['_univerInstanceService']=_0x3c1eab,this[_0x5b4530(0x193)]=_0x515c31,this[_0x5b4530(0x1ea)]=_0x286a8a,this[_0x5b4530(0x1e0)]());}async[_0x3eff67(0x183)](_0x576454){var _0xc77e91=_0x3eff67;return this[_0xc77e91(0x164)][_0xc77e91(0x1db)](_0x576454)||await this['_startLiveShareCoordinator'](_0x576454),this[_0xc77e91(0x164)][_0xc77e91(0x1e7)](_0x576454);}[_0x3eff67(0x1e0)](){var _0x2f2cac=_0x3eff67;this['_univerInstanceService'][_0x2f2cac(0x174)](_0x19162e[_0x2f2cac(0x1bd)])['pipe'](_0x492107(this[_0x2f2cac(0x202)]))['subscribe'](async _0x1880aa=>{var _0x1f0e18=_0x2f2cac;const _0x5a3dc3=_0x1880aa['getUnitId']();this[_0x1f0e18(0x164)]['has'](_0x5a3dc3)||this[_0x1f0e18(0x18b)](_0x5a3dc3);}),this[_0x2f2cac(0x17f)]['getTypeOfUnitDisposed$'](_0x19162e['UNIVER_SHEET'])[_0x2f2cac(0x1cb)](_0x492107(this[_0x2f2cac(0x202)]))[_0x2f2cac(0x1fe)](_0x5b57ef=>{var _0x5eaa5c=_0x2f2cac;const _0x51bf13=_0x5b57ef[_0x5eaa5c(0x189)](),_0x307285=this[_0x5eaa5c(0x164)][_0x5eaa5c(0x1e7)](_0x51bf13);_0x307285==null||_0x307285['dispose']();});}async['_startLiveShareCoordinator'](_0x2dc855){var _0xb92f5d=_0x3eff67;const _0x19642d=await this['_collabSessionService']['requireSession'](_0x2dc855),_0x3d664b=this[_0xb92f5d(0x193)][_0xb92f5d(0x1e8)](C,_0x2dc855,_0x19642d);return _0x3d664b[_0xb92f5d(0x1f7)](),this['_entities'][_0xb92f5d(0x1be)](_0x2dc855,_0x3d664b),_0x3d664b;}};I=Z([f(0x0,_0x55c1e4),f(0x1,_0x409218(_0x2813f3)),f(0x2,_0x409218(_0x3fb12e))],I);var h=(_0x280c93=>(_0x280c93[_0x3eff67(0x1c2)]=_0x3eff67(0x1fc),_0x280c93[_0x3eff67(0x196)]='idle',_0x280c93[_0x3eff67(0x177)]='following',_0x280c93[_0x3eff67(0x1f4)]='not-following',_0x280c93[_0x3eff67(0x205)]=_0x3eff67(0x198),_0x280c93))(h||{});const Pe=_0x3eff67(0x182),Ae=0xc8;let C=class extends _0x423d8a{constructor(_0x23dcb0,_0x5b7c1d,_0x3a6b25,_0x4f4851,_0x34947a){var _0x2d20f1=_0x3eff67;super(),d(this,_0x2d20f1(0x1ba),new _0x247e69(_0x2d20f1(0x163))),d(this,_0x2d20f1(0x1af),this[_0x2d20f1(0x1ba)][_0x2d20f1(0x1ff)]()),d(this,_0x2d20f1(0x1e0),!0x1),d(this,_0x2d20f1(0x16f),null),d(this,_0x2d20f1(0x1d4),null),(this[_0x2d20f1(0x172)]=_0x23dcb0,this[_0x2d20f1(0x197)]=_0x5b7c1d,this['_configService']=_0x3a6b25,this[_0x2d20f1(0x1ef)]=_0x4f4851,this[_0x2d20f1(0x1c7)]=_0x34947a);}get[_0x3eff67(0x186)](){var _0x59ff9e=_0x3eff67;return this[_0x59ff9e(0x1ba)][_0x59ff9e(0x19f)]();}[_0x3eff67(0x1ad)](){var _0x4f1529=_0x3eff67,_0x69d8c3;(_0x69d8c3=this['_commandDisposable'])==null||_0x69d8c3[_0x4f1529(0x1ad)](),this[_0x4f1529(0x1ba)][_0x4f1529(0x1a6)]('idle'),this[_0x4f1529(0x1ba)][_0x4f1529(0x1a5)]();}[_0x3eff67(0x1f7)](){var _0x1cbec9=_0x3eff67;this[_0x1cbec9(0x1e0)]||(this[_0x1cbec9(0x1e0)]=!0x0,this[_0x1cbec9(0x197)][_0x1cbec9(0x16b)][_0x1cbec9(0x1cb)](_0x492107(this[_0x1cbec9(0x202)]))[_0x1cbec9(0x1fe)](_0x140b68=>{var _0x333bd2=_0x1cbec9;switch(_0x140b68){case _0x1efbf3['OFFLINE']:this[_0x333bd2(0x15b)]();break;case _0x1efbf3[_0x333bd2(0x1c5)]:this[_0x333bd2(0x165)]();break;}}),this['_collabSession']['event$']['pipe'](_0x492107(this['dispose$']))[_0x1cbec9(0x1fe)](_0x1305fe=>{var _0x16f61a=_0x1cbec9;const {eventID:_0x394a48}=_0x1305fe;switch(_0x394a48){case _0x22777c[_0x16f61a(0x1a9)]:this[_0x16f61a(0x1ed)](_0x1305fe);break;case _0x22777c[_0x16f61a(0x19c)]:this[_0x16f61a(0x1ec)](_0x1305fe);break;case _0x22777c[_0x16f61a(0x18c)]:this[_0x16f61a(0x1b3)]();break;case _0x22777c[_0x16f61a(0x15a)]:this[_0x16f61a(0x195)](_0x1305fe);break;}}));}['tryStartPresenting'](){var _0x8684b4=_0x3eff67;this['_collabSession'][_0x8684b4(0x1dc)]({'eventID':_0x22777c[_0x8684b4(0x1f9)],'data':{'unitID':this[_0x8684b4(0x172)],'userID':this[_0x8684b4(0x197)][_0x8684b4(0x181)]()}},this['_unitID']);}[_0x3eff67(0x161)](){var _0x3e1187=_0x3eff67;this[_0x3e1187(0x186)]===_0x3e1187(0x198)&&(this[_0x3e1187(0x1ba)][_0x3e1187(0x1a6)](_0x3e1187(0x163)),this[_0x3e1187(0x197)][_0x3e1187(0x1dc)]({'eventID':_0x22777c[_0x3e1187(0x18c)],'data':{'unitID':this['_unitID']}},this[_0x3e1187(0x172)]));}[_0x3eff67(0x1bf)](){var _0x329f13=_0x3eff67;this['_status']==='not-following'&&(this[_0x329f13(0x1ba)][_0x329f13(0x1a6)](_0x329f13(0x17b)),this[_0x329f13(0x1ac)]());}['stopFollowing'](){var _0xe50d51=_0x3eff67;this[_0xe50d51(0x186)]===_0xe50d51(0x17b)&&this[_0xe50d51(0x1e9)]();}[_0x3eff67(0x1ed)](_0x486328){var _0x5d0dfc=_0x3eff67;const {presenter:_0x430367}=_0x486328[_0x5d0dfc(0x203)],_0x34e792=this['_collabSession'][_0x5d0dfc(0x181)]();this[_0x5d0dfc(0x1d4)]=_0x430367,_0x430367===_0x34e792?(this[_0x5d0dfc(0x1e9)](),this[_0x5d0dfc(0x18e)]()):this[_0x5d0dfc(0x186)]!==_0x5d0dfc(0x184)&&(this[_0x5d0dfc(0x188)](),this[_0x5d0dfc(0x1ac)]());}[_0x3eff67(0x201)](){var _0x44dbf2=_0x3eff67;const _0x505b06={'eventID':_0x22777c['LIVESHARE_FETCH_OPERATIONS']};this[_0x44dbf2(0x197)]['send'](_0x505b06,this[_0x44dbf2(0x172)]);}[_0x3eff67(0x1b3)](){var _0x46870b=_0x3eff67;this[_0x46870b(0x1d4)]=null,this[_0x46870b(0x186)]!=='presenting'&&this[_0x46870b(0x158)]();}[_0x3eff67(0x195)](_0x3fe886){var _0x1a2b64=_0x3eff67;if(this['_status']===_0x1a2b64(0x17b)&&this['_presenter']===_0x3fe886[_0x1a2b64(0x203)][_0x1a2b64(0x1a4)]){const _0x2fd7bd=_0x540cc9(_0x3fe886[_0x1a2b64(0x203)])[_0x1a2b64(0x1d1)][_0x1a2b64(0x1dd)]()['find'](_0x487629=>_0x487629['id']===_0x2463e7['id']);if(_0x2fd7bd){const _0x48cff6=_0x2fd7bd[_0x1a2b64(0x18f)][_0x1a2b64(0x15e)],_0x502ac1=_0x2fd7bd['params'][_0x1a2b64(0x1c1)]['id'];setTimeout(()=>{var _0x4add76=_0x1a2b64;this['_commandService'][_0x4add76(0x171)](_0x26f0a8['id'],{'unitId':_0x48cff6,'subUnitId':_0x502ac1},{'fromCollab':!0x0});});}}}[_0x3eff67(0x18e)](){var _0x2defe3=_0x3eff67;this['_status$'][_0x2defe3(0x1a6)](_0x2defe3(0x198));const _0x3a2133=new Map(),_0x4a9484=this[_0x2defe3(0x16f)]=new _0x523026();_0x4a9484[_0x2defe3(0x157)](_0x1c3b80(()=>{var _0x420e6a=_0x2defe3;_0x3a2133[_0x420e6a(0x1d6)](_0x9c3fd8=>_0x9c3fd8[_0x420e6a(0x1a5)]()),_0x3a2133[_0x420e6a(0x1b4)]();})),_0x4a9484[_0x2defe3(0x157)](this[_0x2defe3(0x1c7)][_0x2defe3(0x16e)](_0x4d1379=>{var _0x535916=_0x2defe3,_0x290b4b;if(_0x4d1379[_0x535916(0x1c0)]!==_0x142835[_0x535916(0x162)]||!this[_0x535916(0x1ef)]['shouldShareOperation'](_0x4d1379['id']))return;const {id:_0x2b469c}=_0x4d1379;let _0x41051b;_0x3a2133[_0x535916(0x1db)](_0x2b469c)?_0x41051b=_0x3a2133['get'](_0x2b469c):(_0x41051b=new _0x3d88fa(),_0x3a2133[_0x535916(0x1be)](_0x2b469c,_0x41051b),_0x41051b[_0x535916(0x1cb)](_0x2882f6((_0x290b4b=this[_0x535916(0x1a8)][_0x535916(0x1a1)](Pe))!=null?_0x290b4b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x535916(0x1fe)](_0x3c43d5=>{var _0x4dd041=_0x535916;this[_0x4dd041(0x197)]['send']({'eventID':_0x22777c[_0x4dd041(0x19c)],'data':{'unitID':this[_0x4dd041(0x172)],'operations':{[_0x3c43d5['id']]:{'id':_0x3c43d5['id'],'params':JSON['stringify'](_0x3c43d5[_0x4dd041(0x18f)])}}}},this[_0x4dd041(0x172)]);})),_0x41051b[_0x535916(0x1a6)](_0x4d1379);})),this['_liveShareService'][_0x2defe3(0x1e4)](this['_unitID'])[_0x2defe3(0x1d6)](_0x3ed3c6=>this['_collabSession'][_0x2defe3(0x1dc)]({'eventID':_0x22777c[_0x2defe3(0x19c)],'data':{'unitID':this[_0x2defe3(0x172)],'operations':{[_0x3ed3c6['id']]:{'id':_0x3ed3c6['id'],'params':JSON[_0x2defe3(0x1d8)](_0x3ed3c6[_0x2defe3(0x18f)])}}}},this[_0x2defe3(0x172)]));}[_0x3eff67(0x188)](){var _0x140c71=_0x3eff67,_0x42d3e3;this[_0x140c71(0x1ba)][_0x140c71(0x1a6)]('idle'),(_0x42d3e3=this[_0x140c71(0x16f)])==null||_0x42d3e3[_0x140c71(0x1ad)](),this[_0x140c71(0x16f)]=null;}[_0x3eff67(0x1ac)](){var _0xfe0922=_0x3eff67,_0x217c15;(_0x217c15=this['_commandDisposable'])==null||_0x217c15['dispose'](),this[_0xfe0922(0x1ba)][_0xfe0922(0x1a6)]('following');}[_0x3eff67(0x158)](){var _0x4b45fd=_0x3eff67,_0x136ec9;this['_status$'][_0x4b45fd(0x1a6)]('idle'),(_0x136ec9=this['_commandDisposable'])==null||_0x136ec9[_0x4b45fd(0x1ad)](),this[_0x4b45fd(0x16f)]=null;}[_0x3eff67(0x1e9)](){var _0x5bbd2e=_0x3eff67,_0x5ccf9c;this[_0x5bbd2e(0x1ba)][_0x5bbd2e(0x1a6)](_0x5bbd2e(0x184)),(_0x5ccf9c=this[_0x5bbd2e(0x16f)])==null||_0x5ccf9c[_0x5bbd2e(0x1ad)]();}[_0x3eff67(0x1ec)](_0x4a8318){var _0x1f2822=_0x3eff67;if(['presenting',_0x1f2822(0x184),'offline'][_0x1f2822(0x1d5)](this['_status'])||!_0x4a8318[_0x1f2822(0x203)][_0x1f2822(0x1d3)]||_0x4a8318[_0x1f2822(0x203)]['presenter']===this['_collabSession']['getMemberID']())return;this['_status']===_0x1f2822(0x163)&&this['_startFollowing']();const _0x3192f4=_0x4a8318[_0x1f2822(0x203)][_0x1f2822(0x18d)];Object[_0x1f2822(0x176)](_0x3192f4)[_0x1f2822(0x1d6)](_0x49d78c=>{var _0x36580f=_0x1f2822;this[_0x36580f(0x1c7)]['executeCommand'](_0x49d78c['id'],_0x49d78c[_0x36580f(0x18f)]?JSON[_0x36580f(0x19e)](_0x49d78c[_0x36580f(0x18f)]):null,{'fromCollab':!0x0});});}[_0x3eff67(0x15b)](){var _0x419dd4=_0x3eff67,_0x36c8f7;this[_0x419dd4(0x1ba)]['next'](_0x419dd4(0x1fc)),(_0x36c8f7=this['_commandDisposable'])==null||_0x36c8f7[_0x419dd4(0x1ad)]();}[_0x3eff67(0x165)](){var _0x5001bc=_0x3eff67;this[_0x5001bc(0x1ba)]['next']('idle'),this[_0x5001bc(0x201)]();}};C=Z([f(0x2,_0x5e7702),f(0x3,_0x409218(L)),f(0x4,_0x5ab311)],C);function Te(){var _0x1a9ba1=_0x3eff67;const _0x3b132a=_0x5cd417(I),_0x3ae74e=_0x5cd417(_0x55c1e4),_0x3ba848=_0x1dad95(()=>_0x3ae74e[_0x1a9ba1(0x194)](_0x19162e[_0x1a9ba1(0x1bd)]),void 0x0,!0x1,[]),[_0x30ea57,_0x19be99]=_0x324aa9(null),[_0x8cc31b,_0x4ba61d]=_0x324aa9(h[_0x1a9ba1(0x196)]),_0x160789=_0x1653ac(null);return _0x23e425(()=>(_0x3ba848&&_0x3b132a['getLiveShareCoordinator'](_0x3ba848[_0x1a9ba1(0x189)]())[_0x1a9ba1(0x180)](_0x368430=>{var _0x1dc4b8=_0x1a9ba1;_0x19be99(_0x368430),_0x160789['current']=_0x368430[_0x1dc4b8(0x1af)][_0x1dc4b8(0x1fe)](_0x1eae66=>{_0x4ba61d(_0x1eae66);});}),()=>{var _0x57b4a8=_0x1a9ba1,_0x2bfd26;(_0x2bfd26=_0x160789[_0x57b4a8(0x1f5)])==null||_0x2bfd26['unsubscribe'](),_0x160789[_0x57b4a8(0x1f5)]=null;}),[_0x3ba848,_0x3b132a]),_0x30ea57?_0x1fcf7b(_0x15741b,{'align':_0x1a9ba1(0x1df),'disabled':_0x8cc31b===h[_0x1a9ba1(0x1c2)],'className':_0x1a9ba1(0x16d),'overlay':_0x1fcf7b($e,{'status':_0x8cc31b,'coordinator':_0x30ea57}),'children':_0x1fcf7b(_0x1a9ba1(0x17d),{'className':_0x144952('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x8cc31b===h[_0x1a9ba1(0x1c2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x8cc31b!==h[_0x1a9ba1(0x1c2)]}),'type':'button','children':_0x1fcf7b(B,{'className':_0x1a9ba1(0x1c3)})})}):null;}function $e(_0x42cc85){var _0x3e2a86=_0x3eff67;const {status:_0x20e27f,coordinator:_0x2eb42f}=_0x42cc85;switch(_0x20e27f){case h[_0x3e2a86(0x196)]:return _0x1fcf7b(Fe,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x177)]:return _0x1fcf7b(He,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x1f4)]:return _0x1fcf7b(je,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x1c2)]:return _0x1fcf7b(Ve,{});case h['PRESENTING']:return _0x1fcf7b(Ue,{'coordinator':_0x2eb42f});default:return null;}}function Fe(_0x58fe9b){var _0x36edee=_0x3eff67;const {coordinator:_0x350c92}=_0x58fe9b;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b('div',{'className':_0x36edee(0x16c),'children':'Present\x20this\x20document'}),_0x1fcf7b(_0x360a74,{'onClick':()=>_0x350c92[_0x36edee(0x173)](),'children':_0x36edee(0x1f3)})]});}function He(_0x4418a3){var _0x451541=_0x3eff67;const {coordinator:_0x2848d1}=_0x4418a3;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b(_0x451541(0x1d7),{'className':_0x451541(0x16c),'children':_0x451541(0x1bb)}),_0x1fcf7b(_0x360a74,{'onClick':()=>_0x2848d1['stopFollowing'](),'children':_0x451541(0x1e6)})]});}function je(_0x14ff33){var _0x48dd37=_0x3eff67;const {coordinator:_0x1d91a8}=_0x14ff33;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b(_0x48dd37(0x1d7),{'className':_0x48dd37(0x16c),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1fcf7b(_0x360a74,{'variant':_0x48dd37(0x178),'onClick':()=>_0x1d91a8[_0x48dd37(0x1bf)](),'children':_0x48dd37(0x1cc)})]});}function Ue(_0x31539b){var _0x32c938=_0x3eff67;const {coordinator:_0x44b13e}=_0x31539b;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b('div',{'className':_0x32c938(0x16c),'children':_0x32c938(0x179)}),_0x1fcf7b(_0x360a74,{'variant':_0x32c938(0x17c),'onClick':()=>_0x44b13e[_0x32c938(0x161)](),'children':_0x32c938(0x167)})]});}function Ve(){return _0x1fcf7b(_0x378d55,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x3eff67(0x1d2)],ke=(_0x591f41,_0x56a2af,_0x6d7a9e,_0x1e45d8)=>{var _0x40b3c8=_0x3eff67;for(var _0x3cc535=_0x1e45d8>0x1?void 0x0:_0x1e45d8?Me(_0x56a2af,_0x6d7a9e):_0x56a2af,_0x17e719=_0x591f41[_0x40b3c8(0x1a3)]-0x1,_0x302d04;_0x17e719>=0x0;_0x17e719--)(_0x302d04=_0x591f41[_0x17e719])&&(_0x3cc535=_0x302d04(_0x3cc535)||_0x3cc535);return _0x3cc535;},$=(_0x528a6b,_0x1b023d)=>(_0x167401,_0x34e924)=>_0x1b023d(_0x167401,_0x34e924,_0x528a6b);let b=class extends _0x41e790{constructor(_0x4cf3b3,_0x2c7820){var _0x187063=_0x3eff67;super(),this['_injector']=_0x4cf3b3,this[_0x187063(0x1bc)]=_0x2c7820,this[_0x187063(0x1b0)]();}[_0x3eff67(0x1b0)](){var _0x5cfccd=_0x3eff67;this[_0x5cfccd(0x1e3)](this['_uiPartsService']['registerComponent'](_0x5ad5f4['HEADER_MENU'],()=>_0x2f61ae(Te,this[_0x5cfccd(0x193)])));}};b=ke([$(0x0,_0x409218(_0x2813f3)),$(0x1,_0x54c0ed)],b);var Ge=Object[_0x3eff67(0x166)],We=Object[_0x3eff67(0x1d2)],Ye=(_0x2d3c93,_0x2d0f37,_0xed73d8)=>_0x2d0f37 in _0x2d3c93?Ge(_0x2d3c93,_0x2d0f37,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xed73d8}):_0x2d3c93[_0x2d0f37]=_0xed73d8,Be=(_0x2510d4,_0x5108c4,_0x1f2dda,_0x35cac2)=>{var _0x2796c2=_0x3eff67;for(var _0x1e14c7=_0x35cac2>0x1?void 0x0:_0x35cac2?We(_0x5108c4,_0x1f2dda):_0x5108c4,_0x2d6a8f=_0x2510d4[_0x2796c2(0x1a3)]-0x1,_0x4ea412;_0x2d6a8f>=0x0;_0x2d6a8f--)(_0x4ea412=_0x2510d4[_0x2d6a8f])&&(_0x1e14c7=_0x4ea412(_0x1e14c7)||_0x1e14c7);return _0x1e14c7;},F=(_0x3170f7,_0x196345)=>(_0x23984f,_0xf54b04)=>_0x196345(_0x23984f,_0xf54b04,_0x3170f7),J=(_0x3f08c7,_0x64f2e4,_0x2b7759)=>Ye(_0x3f08c7,typeof _0x64f2e4!='symbol'?_0x64f2e4+'':_0x64f2e4,_0x2b7759);const Ze=_0x3eff67(0x190);let O=class extends _0x2dc758{constructor(_0x5d9f77=T,_0x2422bb,_0x499dba){var _0x34ffad=_0x3eff67;super(),this['_config']=_0x5d9f77,this['_injector']=_0x2422bb,this[_0x34ffad(0x1a8)]=_0x499dba;const {..._0x14266a}=_0x4268e8({},T,this[_0x34ffad(0x175)]);this[_0x34ffad(0x1a8)][_0x34ffad(0x1aa)](Oe,_0x14266a);}[_0x3eff67(0x1b5)](){var _0x3ba933=_0x3eff67;_0x323506(this[_0x3ba933(0x193)],_0x263d4d([[L],[I],[m],[b]],this['_config'][_0x3ba933(0x1a7)])),_0x29f66d(this['_injector'],[[m]]);}['onRendered'](){var _0x16cccf=_0x3eff67;_0x29f66d(this[_0x16cccf(0x193)],[[b]]);}};function _0x31ab(_0x214011,_0x46be5e){var _0x1f462f=_0x1f46();return _0x31ab=function(_0x31ab44,_0x418f67){_0x31ab44=_0x31ab44-0x157;var _0x1926e7=_0x1f462f[_0x31ab44];return _0x1926e7;},_0x31ab(_0x214011,_0x46be5e);}J(O,'type',_0x19162e['UNIVER_UNKNOWN']),J(O,_0x3eff67(0x169),Ze),O=Be([_0x1c0dec(_0x10ce60),F(0x1,_0x409218(_0x2813f3)),F(0x2,_0x5e7702)],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 _0x28bcae=_0x3bd3;(function(_0x3692a0,_0xada648){var _0x35b094=_0x3bd3,_0x3d3875=_0x3692a0();while(!![]){try{var _0x3a7285=-parseInt(_0x35b094(0x1fe))/0x1*(-parseInt(_0x35b094(0x19c))/0x2)+-parseInt(_0x35b094(0x162))/0x3*(-parseInt(_0x35b094(0x1dc))/0x4)+parseInt(_0x35b094(0x15f))/0x5+-parseInt(_0x35b094(0x16d))/0x6*(parseInt(_0x35b094(0x1b8))/0x7)+parseInt(_0x35b094(0x1da))/0x8+parseInt(_0x35b094(0x1a8))/0x9+-parseInt(_0x35b094(0x18a))/0xa*(parseInt(_0x35b094(0x1e1))/0xb);if(_0x3a7285===_0xada648)break;else _0x3d3875['push'](_0x3d3875['shift']());}catch(_0x56e356){_0x3d3875['push'](_0x3d3875['shift']());}}}(_0x2404,0x7152b));var q=Object[_0x28bcae(0x1bb)],z=(_0x580e88,_0x1b6e8e,_0x2d0c00)=>_0x1b6e8e in _0x580e88?q(_0x580e88,_0x1b6e8e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d0c00}):_0x580e88[_0x1b6e8e]=_0x2d0c00,d=(_0x367b44,_0x411f9c,_0x3c6c99)=>z(_0x367b44,typeof _0x411f9c!=_0x28bcae(0x1de)?_0x411f9c+'':_0x411f9c,_0x3c6c99);import{CollaborationSessionService as _0x5d75f2,SessionStatus as _0x2d9af3,UniverCollaborationClientPlugin as _0x320bf0}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4ebce3,toDisposable as _0x7d07bb,Inject as _0x2216cd,IUniverInstanceService as _0x1f30ea,Injector as _0x4193ef,IConfigService as _0x50f85a,ICommandService as _0x5eb8fc,RxDisposable as _0x5583c6,UniverInstanceType as _0x4876cf,DisposableCollection as _0x4f0359,CommandType as _0x3a8039,DependentOn as _0x1d67a4,Plugin as _0x100d90,merge as _0x342713,registerDependencies as _0x101666,mergeOverrideWithDependencies as _0x10c3e8,touchDependencies as _0x1b1875}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1df0cc,InsertSheetMutation as _0xc818aa}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x936e8d,SetScrollOperation as _0x427aab}from'@univerjs/sheets-ui';import{useDependency as _0xbf9ecf,useObservable as _0x4e5cbb,IUIPartsService as _0x30b6fc,BuiltInUIPart as _0x2832e7,connectInjector as _0x2299bb}from'@univerjs/ui';import{jsx as _0x2715b3,jsxs as _0x1b5c99,Fragment as _0x168fdd}from'react/jsx-runtime';import{Dropdown as _0x308dad,clsx as _0x15471c,Button as _0x5378e4}from'@univerjs/design';import{forwardRef as _0xdd8c9d,useRef as _0x19bf15,createElement as _0x214b06,useState as _0x1c6c56,useEffect as _0xcc0725}from'react';import{CollaborationEvent as _0x380e0d,parseProtocolChangeset as _0x3eac9c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x261795,Subject as _0x423159}from'rxjs';import{takeUntil as _0x26f930,throttleTime as _0x2c3cbf}from'rxjs/operators';const Oe=_0x28bcae(0x1cb),T={};class L extends _0x4ebce3{constructor(){var _0x2bbb80=_0x28bcae;super(...arguments),d(this,_0x2bbb80(0x160),new Set()),d(this,_0x2bbb80(0x161),new Set());}[_0x28bcae(0x1b2)](_0x2a6741){var _0x2621fa=_0x28bcae;return this[_0x2621fa(0x160)][_0x2621fa(0x1cc)](_0x2a6741),_0x7d07bb(()=>this[_0x2621fa(0x160)][_0x2621fa(0x1e2)](_0x2a6741));}['registerInitialStateReporter'](_0x380f24){var _0x4ced73=_0x28bcae;return this[_0x4ced73(0x161)]['add'](_0x380f24),_0x7d07bb(()=>this[_0x4ced73(0x161)][_0x4ced73(0x1e2)](_0x380f24));}[_0x28bcae(0x1d0)](_0x37b494){var _0x3bea68=_0x28bcae;return this[_0x3bea68(0x160)][_0x3bea68(0x172)](_0x37b494);}[_0x28bcae(0x17b)](_0x27e311){var _0x5daf91=_0x28bcae;return Array[_0x5daf91(0x1e9)](this[_0x5daf91(0x161)])[_0x5daf91(0x157)](_0x58a971=>_0x58a971(_0x27e311));}}var Ee=Object[_0x28bcae(0x1f2)],we=(_0x1d07c6,_0x368ae9,_0x524e41,_0x3ddf54)=>{var _0x5d0935=_0x28bcae;for(var _0x4f1c14=_0x3ddf54>0x1?void 0x0:_0x3ddf54?Ee(_0x368ae9,_0x524e41):_0x368ae9,_0x3a258e=_0x1d07c6[_0x5d0935(0x1fa)]-0x1,_0x577925;_0x3a258e>=0x0;_0x3a258e--)(_0x577925=_0x1d07c6[_0x3a258e])&&(_0x4f1c14=_0x577925(_0x4f1c14)||_0x4f1c14);return _0x4f1c14;},Ne=(_0x5a79e1,_0x470c96)=>(_0x541505,_0x9b266a)=>_0x470c96(_0x541505,_0x9b266a,_0x5a79e1);let m=class extends _0x4ebce3{constructor(_0x5681db){var _0xa26dd0=_0x28bcae;super(),this[_0xa26dd0(0x1ba)]=_0x5681db,this[_0xa26dd0(0x1e0)]();}[_0x28bcae(0x1e0)](){[_0x936e8d['id'],_0x427aab['id'],_0x1df0cc['id']]['forEach'](_0x26cb13=>{var _0x31ca91=_0x3bd3;this[_0x31ca91(0x152)](this[_0x31ca91(0x1ba)][_0x31ca91(0x1b2)](_0x26cb13));});}};m=we([Ne(0x0,_0x2216cd(L))],m);var c=function(){var _0x235c08=_0x28bcae;return c=Object[_0x235c08(0x1e8)]||function(_0x38dff1){var _0x2dc378=_0x235c08;for(var _0xe912d8,_0x536b1=0x1,_0xf63efb=arguments[_0x2dc378(0x1fa)];_0x536b1<_0xf63efb;_0x536b1++){_0xe912d8=arguments[_0x536b1];for(var _0x262c68 in _0xe912d8)Object[_0x2dc378(0x187)][_0x2dc378(0x1ec)][_0x2dc378(0x177)](_0xe912d8,_0x262c68)&&(_0x38dff1[_0x262c68]=_0xe912d8[_0x262c68]);}return _0x38dff1;},c['apply'](this,arguments);},Ce=function(_0xb537ad,_0x1b4a80){var _0x211b99=_0x28bcae,_0x39a9de={};for(var _0x1b5050 in _0xb537ad)Object[_0x211b99(0x187)][_0x211b99(0x1ec)][_0x211b99(0x177)](_0xb537ad,_0x1b5050)&&_0x1b4a80[_0x211b99(0x1ac)](_0x1b5050)<0x0&&(_0x39a9de[_0x1b5050]=_0xb537ad[_0x1b5050]);if(_0xb537ad!=null&&typeof Object[_0x211b99(0x174)]==_0x211b99(0x1a3)){for(var _0x3a4a53=0x0,_0x1b5050=Object[_0x211b99(0x174)](_0xb537ad);_0x3a4a53<_0x1b5050[_0x211b99(0x1fa)];_0x3a4a53++)_0x1b4a80[_0x211b99(0x1ac)](_0x1b5050[_0x3a4a53])<0x0&&Object[_0x211b99(0x187)][_0x211b99(0x190)][_0x211b99(0x177)](_0xb537ad,_0x1b5050[_0x3a4a53])&&(_0x39a9de[_0x1b5050[_0x3a4a53]]=_0xb537ad[_0x1b5050[_0x3a4a53]]);}return _0x39a9de;},W=_0xdd8c9d(function(_0x3da0a7,_0x217312){var _0x5ef40f=_0x28bcae,_0x2b0ec7=_0x3da0a7['icon'],_0x50f52c=_0x3da0a7['id'],_0x1bf40b=_0x3da0a7[_0x5ef40f(0x1f6)],_0x110a60=_0x3da0a7[_0x5ef40f(0x1ef)],_0x5e3ac5=Ce(_0x3da0a7,[_0x5ef40f(0x1f4),'id',_0x5ef40f(0x1f6),_0x5ef40f(0x1ef)]),_0x13a363=_0x5ef40f(0x17a)[_0x5ef40f(0x1f8)](_0x50f52c,'\x20')['concat'](_0x1bf40b||'')['trim'](),_0x3f52e4=_0x19bf15('_'[_0x5ef40f(0x1f8)](Le()));return Y(_0x2b0ec7,''[_0x5ef40f(0x1f8)](_0x50f52c),{'defIds':_0x2b0ec7[_0x5ef40f(0x1fd)],'idSuffix':_0x3f52e4[_0x5ef40f(0x1af)]},c({'ref':_0x217312,'className':_0x13a363},_0x5e3ac5),_0x110a60);});function Y(_0x2c81fc,_0x11faad,_0x5b214e,_0x370794,_0x2c489e){var _0x27131c=_0x28bcae;return _0x214b06(_0x2c81fc[_0x27131c(0x1c5)],c(c({'key':_0x11faad},De(_0x2c81fc,_0x5b214e,_0x2c489e)),_0x370794),(xe(_0x2c81fc,_0x5b214e)[_0x27131c(0x163)]||[])[_0x27131c(0x157)](function(_0x2867bc,_0x1b0d2){var _0x3ab21b=_0x27131c;return Y(_0x2867bc,''['concat'](_0x11faad,'-')[_0x3ab21b(0x1f8)](_0x2c81fc[_0x3ab21b(0x1c5)],'-')['concat'](_0x1b0d2),_0x5b214e,void 0x0,_0x2c489e);}));}function De(_0x57193e,_0x345f5f,_0x15a823){var _0x220d3c=_0x28bcae,_0x1c96dd=c({},_0x57193e['attrs']);_0x15a823!=null&&_0x15a823[_0x220d3c(0x18e)]&&_0x1c96dd[_0x220d3c(0x15a)]==='colorChannel1'&&(_0x1c96dd[_0x220d3c(0x15a)]=_0x15a823['colorChannel1']),_0x57193e[_0x220d3c(0x1c5)]==='mask'&&_0x1c96dd['id']&&(_0x1c96dd['id']=_0x1c96dd['id']+_0x345f5f[_0x220d3c(0x194)]),Object[_0x220d3c(0x19b)](_0x1c96dd)[_0x220d3c(0x19d)](function(_0x5dc042){var _0x3b584c=_0x220d3c,_0xadf11c=_0x5dc042[0x0],_0x369c66=_0x5dc042[0x1];_0xadf11c==='mask'&&typeof _0x369c66==_0x3b584c(0x195)&&(_0x1c96dd[_0xadf11c]=_0x369c66[_0x3b584c(0x1c7)](/url\(#(.*)\)/,'url(#$1'[_0x3b584c(0x1f8)](_0x345f5f[_0x3b584c(0x194)],')')));});var _0x304499=_0x345f5f[_0x220d3c(0x1fd)];return!_0x304499||_0x304499[_0x220d3c(0x1fa)]===0x0||(_0x57193e[_0x220d3c(0x1c5)]===_0x220d3c(0x1ab)&&_0x1c96dd[_0x220d3c(0x1e6)]&&(_0x1c96dd['xlink:href']=_0x1c96dd[_0x220d3c(0x1e6)]+_0x345f5f[_0x220d3c(0x194)]),Object['entries'](_0x1c96dd)['forEach'](function(_0x4c8d09){var _0x301fbc=_0x220d3c,_0x6e8df5=_0x4c8d09[0x0],_0x115059=_0x4c8d09[0x1];typeof _0x115059==_0x301fbc(0x195)&&(_0x1c96dd[_0x6e8df5]=_0x115059[_0x301fbc(0x1c7)](/url\(#(.*)\)/,_0x301fbc(0x1d8)[_0x301fbc(0x1f8)](_0x345f5f[_0x301fbc(0x194)],')')));})),_0x1c96dd;}function xe(_0x114f2f,_0xbb2e07){var _0xde32ad=_0x28bcae,_0xb70371,_0x535129=_0xbb2e07[_0xde32ad(0x1fd)];return!_0x535129||_0x535129[_0xde32ad(0x1fa)]===0x0?_0x114f2f:_0x114f2f[_0xde32ad(0x1c5)]===_0xde32ad(0x1d1)&&(!((_0xb70371=_0x114f2f[_0xde32ad(0x163)])===null||_0xb70371===void 0x0)&&_0xb70371[_0xde32ad(0x1fa)])?c(c({},_0x114f2f),{'children':_0x114f2f[_0xde32ad(0x163)]['map'](function(_0x217f46){var _0x3fab15=_0xde32ad;return typeof _0x217f46[_0x3fab15(0x1cf)]['id']==_0x3fab15(0x195)&&_0x535129&&_0x535129[_0x3fab15(0x14f)](_0x217f46[_0x3fab15(0x1cf)]['id'])?c(c({},_0x217f46),{'attrs':c(c({},_0x217f46['attrs']),{'id':_0x217f46[_0x3fab15(0x1cf)]['id']+_0xbb2e07[_0x3fab15(0x194)]})}):_0x217f46;})}):_0x114f2f;}function Le(){var _0x2a2321=_0x28bcae;return Math['random']()[_0x2a2321(0x176)](0x24)[_0x2a2321(0x15b)](0x2,0x8);}W[_0x28bcae(0x1b9)]='UniverIcon';var ye={'tag':_0x28bcae(0x156),'attrs':{'xmlns':_0x28bcae(0x1f0),'fill':'none','viewBox':_0x28bcae(0x1ed),'width':_0x28bcae(0x168),'height':_0x28bcae(0x168)},'children':[{'tag':_0x28bcae(0x193),'attrs':{'fill':_0x28bcae(0x192),'d':_0x28bcae(0x1b7)}},{'tag':_0x28bcae(0x193),'attrs':{'fill':_0x28bcae(0x192),'d':_0x28bcae(0x1c6),'fillRule':_0x28bcae(0x1ad),'clipRule':_0x28bcae(0x1ad)}}]},B=_0xdd8c9d(function(_0x51887e,_0x1da917){var _0x47a592=_0x28bcae;return _0x214b06(W,Object[_0x47a592(0x1e8)]({},_0x51887e,{'id':_0x47a592(0x180),'ref':_0x1da917,'icon':ye}));});B[_0x28bcae(0x1b9)]=_0x28bcae(0x183);var Re=Object[_0x28bcae(0x1f2)],Z=(_0x595cd9,_0x2cc33f,_0x28b14c,_0x18638c)=>{var _0x1aa864=_0x28bcae;for(var _0x503f16=_0x18638c>0x1?void 0x0:_0x18638c?Re(_0x2cc33f,_0x28b14c):_0x2cc33f,_0x2f96e4=_0x595cd9[_0x1aa864(0x1fa)]-0x1,_0x4be2a1;_0x2f96e4>=0x0;_0x2f96e4--)(_0x4be2a1=_0x595cd9[_0x2f96e4])&&(_0x503f16=_0x4be2a1(_0x503f16)||_0x503f16);return _0x503f16;},f=(_0x3abdee,_0x30ee7d)=>(_0x34960f,_0x6855a)=>_0x30ee7d(_0x34960f,_0x6855a,_0x3abdee);let I=class extends _0x5583c6{constructor(_0x192569,_0x1a58a3,_0x545b9f){var _0x1e3c74=_0x28bcae;super(),d(this,_0x1e3c74(0x19e),new Map()),(this['_univerInstanceService']=_0x192569,this[_0x1e3c74(0x1a5)]=_0x1a58a3,this[_0x1e3c74(0x18f)]=_0x545b9f,this[_0x1e3c74(0x1e0)]());}async[_0x28bcae(0x1d7)](_0x2de532){var _0x4166a2=_0x28bcae;return this[_0x4166a2(0x19e)][_0x4166a2(0x172)](_0x2de532)||await this[_0x4166a2(0x1b6)](_0x2de532),this[_0x4166a2(0x19e)][_0x4166a2(0x1c1)](_0x2de532);}[_0x28bcae(0x1e0)](){var _0x3cb7d7=_0x28bcae;this[_0x3cb7d7(0x175)][_0x3cb7d7(0x15c)](_0x4876cf[_0x3cb7d7(0x1b3)])[_0x3cb7d7(0x165)](_0x26f930(this[_0x3cb7d7(0x15e)]))['subscribe'](async _0x14c153=>{var _0xda3c00=_0x3cb7d7;const _0xadac09=_0x14c153[_0xda3c00(0x1e3)]();this[_0xda3c00(0x19e)][_0xda3c00(0x172)](_0xadac09)||this[_0xda3c00(0x1b6)](_0xadac09);}),this[_0x3cb7d7(0x175)][_0x3cb7d7(0x1ca)](_0x4876cf[_0x3cb7d7(0x1b3)])[_0x3cb7d7(0x165)](_0x26f930(this[_0x3cb7d7(0x15e)]))[_0x3cb7d7(0x1ee)](_0x1ff933=>{var _0x2d85f2=_0x3cb7d7;const _0x304cc6=_0x1ff933['getUnitId'](),_0x33f9d7=this['_entities']['get'](_0x304cc6);_0x33f9d7==null||_0x33f9d7[_0x2d85f2(0x1db)]();});}async[_0x28bcae(0x1b6)](_0x4e24a1){var _0x4982d0=_0x28bcae;const _0x408a51=await this[_0x4982d0(0x18f)][_0x4982d0(0x1e5)](_0x4e24a1),_0x26e65f=this['_injector']['createInstance'](C,_0x4e24a1,_0x408a51);return _0x26e65f[_0x4982d0(0x167)](),this[_0x4982d0(0x19e)][_0x4982d0(0x1a1)](_0x4e24a1,_0x26e65f),_0x26e65f;}};I=Z([f(0x0,_0x1f30ea),f(0x1,_0x2216cd(_0x4193ef)),f(0x2,_0x2216cd(_0x5d75f2))],I);function _0x2404(){var _0x4c06f5=['LIVESHARE_REQUEST_HOST','operations','disposeWithMe','not-following','_status$','onRendered','svg','map','override','IDLE','fill','substring','getTypeOfUnitAdded$','_uiPartsService','dispose$','1376050PYyJLK','_sharedOperations','_reporters','306213lvxcCE','children','_presenter','pipe','_handleOperation','init','1em','sessionStatus$','sheet','tryStartPresenting','startFollowing','180qzOYRl','UNIVER_UNKNOWN','_commandDisposable','default','SAME_OPERATION_SHARE_INTERVAL','has','_startFollowing','getOwnPropertySymbols','_univerInstanceService','toString','call','LIVESHARE_OPERATION','memberID','univerjs-icon\x20univerjs-icon-','getInitialStates','_startPresenting','data','_unitID','reverse','live-share-icon','next','NOT_FOLLOWING','LiveShareIcon','_commandService','getConfig','Start\x20following','prototype','PRESENTING','LIVESHARE_TERMINATE','4989630YZisNR','status$','values','send','colorChannel1','_collabSessionService','propertyIsEnumerable','asObservable','currentColor','path','idSuffix','string','_handleTerminate','find','NEW_CHANGESETS','onCommandExecuted','onStarting','entries','3122VZeeRr','forEach','_entities','_fetchOperations','_collabSession','set','_stopPresenting','function','_beIdle','_injector','stopFollowing','then','4911255XhdyNu','_config','getMemberID','use','indexOf','evenodd','idle','current','following','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerSharedOperation','UNIVER_SHEET','univer-size-4','_handleOnline','_startLiveShareCoordinator','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','197813PLPwAb','displayName','_liveShareService','defineProperty','You\x27re\x20presenting\x20the\x20document','OPERATION','complete','_status','pluginName','get','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_FETCH_OPERATIONS','OFFLINE','tag','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','replace','Present\x20this\x20document','You\x27re\x20following\x20the\x20presenter','getTypeOfUnitDisposed$','live-share.config','add','type','setConfig','attrs','shouldShareOperation','defs','You\x27re\x20not\x20following\x20the\x20presenter','params','_stopFollowing','executeCommand','offline','getLiveShareCoordinator','url(#$1','div','2445400aDNrPX','dispose','4XRvCzh','_configService','symbol','unitId','_init','11VXgYpO','delete','getUnitId','event$','requireSession','xlink:href','FOLLOWING','assign','from','clear','getCurrentTypeOfUnit$','hasOwnProperty','0\x200\x2017\x2017','subscribe','extend','http://www.w3.org/2000/svg','unsubscribe','getOwnPropertyDescriptor','Start','icon','stringify','className','button','concat','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','length','_handleNewChangeSets','getValue','defIds','373wuXPuc','stopPresenting','presenting','LIVESHARE_NEW_HOST','presenter','_mountLiveShare','includes'];_0x2404=function(){return _0x4c06f5;};return _0x2404();}var h=(_0x8ee783=>(_0x8ee783['OFFLINE']=_0x28bcae(0x1d6),_0x8ee783[_0x28bcae(0x159)]=_0x28bcae(0x1ae),_0x8ee783[_0x28bcae(0x1e7)]='following',_0x8ee783[_0x28bcae(0x182)]=_0x28bcae(0x153),_0x8ee783[_0x28bcae(0x188)]='presenting',_0x8ee783))(h||{});const Pe=_0x28bcae(0x171),Ae=0xc8;let C=class extends _0x5583c6{constructor(_0x79d465,_0x275e7f,_0x7dd317,_0x2cf8c6,_0x3aca69){var _0x4e065d=_0x28bcae;super(),d(this,_0x4e065d(0x154),new _0x261795(_0x4e065d(0x1ae))),d(this,_0x4e065d(0x18b),this[_0x4e065d(0x154)][_0x4e065d(0x191)]()),d(this,'_init',!0x1),d(this,_0x4e065d(0x16f),null),d(this,_0x4e065d(0x164),null),(this[_0x4e065d(0x17e)]=_0x79d465,this[_0x4e065d(0x1a0)]=_0x275e7f,this[_0x4e065d(0x1dd)]=_0x7dd317,this[_0x4e065d(0x1ba)]=_0x2cf8c6,this[_0x4e065d(0x184)]=_0x3aca69);}get[_0x28bcae(0x1bf)](){var _0x450d23=_0x28bcae;return this[_0x450d23(0x154)][_0x450d23(0x1fc)]();}['dispose'](){var _0x1ce7b7=_0x28bcae,_0x1563c1;(_0x1563c1=this['_commandDisposable'])==null||_0x1563c1['dispose'](),this[_0x1ce7b7(0x154)][_0x1ce7b7(0x181)](_0x1ce7b7(0x1ae)),this[_0x1ce7b7(0x154)]['complete']();}[_0x28bcae(0x167)](){var _0x5b5d99=_0x28bcae;this[_0x5b5d99(0x1e0)]||(this[_0x5b5d99(0x1e0)]=!0x0,this[_0x5b5d99(0x1a0)][_0x5b5d99(0x169)][_0x5b5d99(0x165)](_0x26f930(this['dispose$']))[_0x5b5d99(0x1ee)](_0x394934=>{var _0x33f31c=_0x5b5d99;switch(_0x394934){case _0x2d9af3['OFFLINE']:this['_handleOffline']();break;case _0x2d9af3['ONLINE']:this[_0x33f31c(0x1b5)]();break;}}),this[_0x5b5d99(0x1a0)][_0x5b5d99(0x1e4)][_0x5b5d99(0x165)](_0x26f930(this[_0x5b5d99(0x15e)]))[_0x5b5d99(0x1ee)](_0x157a8c=>{var _0x20d381=_0x5b5d99;const {eventID:_0x4ad58d}=_0x157a8c;switch(_0x4ad58d){case _0x380e0d[_0x20d381(0x14c)]:this['_handleNewHost'](_0x157a8c);break;case _0x380e0d[_0x20d381(0x178)]:this['_handleOperation'](_0x157a8c);break;case _0x380e0d[_0x20d381(0x189)]:this['_handleTerminate']();break;case _0x380e0d[_0x20d381(0x198)]:this['_handleNewChangeSets'](_0x157a8c);break;}}));}[_0x28bcae(0x16b)](){var _0x27aabb=_0x28bcae;this[_0x27aabb(0x1a0)][_0x27aabb(0x18d)]({'eventID':_0x380e0d[_0x27aabb(0x150)],'data':{'unitID':this[_0x27aabb(0x17e)],'userID':this['_collabSession'][_0x27aabb(0x1aa)]()}},this[_0x27aabb(0x17e)]);}[_0x28bcae(0x1ff)](){var _0x305b4c=_0x28bcae;this['_status']===_0x305b4c(0x14b)&&(this[_0x305b4c(0x154)]['next'](_0x305b4c(0x1ae)),this[_0x305b4c(0x1a0)][_0x305b4c(0x18d)]({'eventID':_0x380e0d[_0x305b4c(0x189)],'data':{'unitID':this[_0x305b4c(0x17e)]}},this[_0x305b4c(0x17e)]));}[_0x28bcae(0x16c)](){var _0x9d6ad7=_0x28bcae;this['_status']===_0x9d6ad7(0x153)&&(this[_0x9d6ad7(0x154)][_0x9d6ad7(0x181)](_0x9d6ad7(0x1b0)),this[_0x9d6ad7(0x173)]());}[_0x28bcae(0x1a6)](){var _0x1ccbc2=_0x28bcae;this['_status']===_0x1ccbc2(0x1b0)&&this[_0x1ccbc2(0x1d4)]();}['_handleNewHost'](_0xe618d3){var _0x3a5349=_0x28bcae;const {presenter:_0xd95b4c}=_0xe618d3[_0x3a5349(0x17d)],_0x1cb57a=this[_0x3a5349(0x1a0)][_0x3a5349(0x1aa)]();this[_0x3a5349(0x164)]=_0xd95b4c,_0xd95b4c===_0x1cb57a?(this['_stopFollowing'](),this[_0x3a5349(0x17c)]()):this[_0x3a5349(0x1bf)]!=='not-following'&&(this[_0x3a5349(0x1a2)](),this[_0x3a5349(0x173)]());}[_0x28bcae(0x19f)](){var _0x38ce08=_0x28bcae;const _0x9ee90b={'eventID':_0x380e0d[_0x38ce08(0x1c3)]};this['_collabSession']['send'](_0x9ee90b,this[_0x38ce08(0x17e)]);}[_0x28bcae(0x196)](){var _0x343eec=_0x28bcae;this[_0x343eec(0x164)]=null,this[_0x343eec(0x1bf)]!==_0x343eec(0x14b)&&this[_0x343eec(0x1a4)]();}[_0x28bcae(0x1fb)](_0x6048df){var _0x358ba1=_0x28bcae;if(this[_0x358ba1(0x1bf)]===_0x358ba1(0x1b0)&&this[_0x358ba1(0x164)]===_0x6048df[_0x358ba1(0x17d)][_0x358ba1(0x179)]){const _0x20fafa=_0x3eac9c(_0x6048df[_0x358ba1(0x17d)])['mutations'][_0x358ba1(0x17f)]()[_0x358ba1(0x197)](_0x4a4605=>_0x4a4605['id']===_0xc818aa['id']);if(_0x20fafa){const _0x19d5ef=_0x20fafa[_0x358ba1(0x1d3)][_0x358ba1(0x1df)],_0x526689=_0x20fafa[_0x358ba1(0x1d3)][_0x358ba1(0x16a)]['id'];setTimeout(()=>{var _0x4838a3=_0x358ba1;this[_0x4838a3(0x184)][_0x4838a3(0x1d5)](_0x1df0cc['id'],{'unitId':_0x19d5ef,'subUnitId':_0x526689},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3c09b0=_0x28bcae;this[_0x3c09b0(0x154)]['next']('presenting');const _0x5c4b60=new Map(),_0x5161f5=this[_0x3c09b0(0x16f)]=new _0x4f0359();_0x5161f5[_0x3c09b0(0x1cc)](_0x7d07bb(()=>{var _0x5e05fa=_0x3c09b0;_0x5c4b60[_0x5e05fa(0x19d)](_0x4be86f=>_0x4be86f[_0x5e05fa(0x1be)]()),_0x5c4b60[_0x5e05fa(0x1ea)]();})),_0x5161f5[_0x3c09b0(0x1cc)](this[_0x3c09b0(0x184)][_0x3c09b0(0x199)](_0x1a103e=>{var _0xe78966=_0x3c09b0,_0x4003b8;if(_0x1a103e[_0xe78966(0x1cd)]!==_0x3a8039[_0xe78966(0x1bd)]||!this[_0xe78966(0x1ba)][_0xe78966(0x1d0)](_0x1a103e['id']))return;const {id:_0x392b73}=_0x1a103e;let _0x5b9595;_0x5c4b60[_0xe78966(0x172)](_0x392b73)?_0x5b9595=_0x5c4b60['get'](_0x392b73):(_0x5b9595=new _0x423159(),_0x5c4b60[_0xe78966(0x1a1)](_0x392b73,_0x5b9595),_0x5b9595['pipe'](_0x2c3cbf((_0x4003b8=this[_0xe78966(0x1dd)][_0xe78966(0x185)](Pe))!=null?_0x4003b8:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xe78966(0x1ee)](_0x49d079=>{var _0x5cfbd0=_0xe78966;this['_collabSession'][_0x5cfbd0(0x18d)]({'eventID':_0x380e0d[_0x5cfbd0(0x178)],'data':{'unitID':this[_0x5cfbd0(0x17e)],'operations':{[_0x49d079['id']]:{'id':_0x49d079['id'],'params':JSON[_0x5cfbd0(0x1f5)](_0x49d079[_0x5cfbd0(0x1d3)])}}}},this['_unitID']);})),_0x5b9595[_0xe78966(0x181)](_0x1a103e);})),this[_0x3c09b0(0x1ba)][_0x3c09b0(0x17b)](this['_unitID'])[_0x3c09b0(0x19d)](_0x526ed5=>this[_0x3c09b0(0x1a0)][_0x3c09b0(0x18d)]({'eventID':_0x380e0d[_0x3c09b0(0x178)],'data':{'unitID':this[_0x3c09b0(0x17e)],'operations':{[_0x526ed5['id']]:{'id':_0x526ed5['id'],'params':JSON[_0x3c09b0(0x1f5)](_0x526ed5[_0x3c09b0(0x1d3)])}}}},this[_0x3c09b0(0x17e)]));}[_0x28bcae(0x1a2)](){var _0x5dc02c=_0x28bcae,_0x36976c;this[_0x5dc02c(0x154)]['next']('idle'),(_0x36976c=this[_0x5dc02c(0x16f)])==null||_0x36976c[_0x5dc02c(0x1db)](),this[_0x5dc02c(0x16f)]=null;}[_0x28bcae(0x173)](){var _0x1d5bf0=_0x28bcae,_0x292920;(_0x292920=this[_0x1d5bf0(0x16f)])==null||_0x292920[_0x1d5bf0(0x1db)](),this[_0x1d5bf0(0x154)][_0x1d5bf0(0x181)](_0x1d5bf0(0x1b0));}[_0x28bcae(0x1a4)](){var _0x35b5cf=_0x28bcae,_0x4a28c2;this[_0x35b5cf(0x154)][_0x35b5cf(0x181)](_0x35b5cf(0x1ae)),(_0x4a28c2=this['_commandDisposable'])==null||_0x4a28c2['dispose'](),this[_0x35b5cf(0x16f)]=null;}[_0x28bcae(0x1d4)](){var _0x2b0824=_0x28bcae,_0x20ede6;this[_0x2b0824(0x154)][_0x2b0824(0x181)](_0x2b0824(0x153)),(_0x20ede6=this[_0x2b0824(0x16f)])==null||_0x20ede6[_0x2b0824(0x1db)]();}[_0x28bcae(0x166)](_0x5e9110){var _0x2317b9=_0x28bcae;if([_0x2317b9(0x14b),_0x2317b9(0x153),'offline'][_0x2317b9(0x14f)](this[_0x2317b9(0x1bf)])||!_0x5e9110['data'][_0x2317b9(0x14d)]||_0x5e9110[_0x2317b9(0x17d)]['presenter']===this[_0x2317b9(0x1a0)][_0x2317b9(0x1aa)]())return;this['_status']===_0x2317b9(0x1ae)&&this[_0x2317b9(0x173)]();const _0x13fcb0=_0x5e9110[_0x2317b9(0x17d)][_0x2317b9(0x151)];Object[_0x2317b9(0x18c)](_0x13fcb0)['forEach'](_0x20e64d=>{var _0x36ee99=_0x2317b9;this[_0x36ee99(0x184)][_0x36ee99(0x1d5)](_0x20e64d['id'],_0x20e64d[_0x36ee99(0x1d3)]?JSON['parse'](_0x20e64d[_0x36ee99(0x1d3)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x69600e=_0x28bcae,_0x22f074;this[_0x69600e(0x154)][_0x69600e(0x181)](_0x69600e(0x1d6)),(_0x22f074=this[_0x69600e(0x16f)])==null||_0x22f074[_0x69600e(0x1db)]();}[_0x28bcae(0x1b5)](){var _0x59d388=_0x28bcae;this[_0x59d388(0x154)][_0x59d388(0x181)](_0x59d388(0x1ae)),this['_fetchOperations']();}};C=Z([f(0x2,_0x50f85a),f(0x3,_0x2216cd(L)),f(0x4,_0x5eb8fc)],C);function _0x3bd3(_0x3a6592,_0xb6cdf8){var _0x2404b1=_0x2404();return _0x3bd3=function(_0x3bd37d,_0x4935fb){_0x3bd37d=_0x3bd37d-0x14b;var _0x3a34c3=_0x2404b1[_0x3bd37d];return _0x3a34c3;},_0x3bd3(_0x3a6592,_0xb6cdf8);}function Te(){var _0x23fd80=_0x28bcae;const _0x53e564=_0xbf9ecf(I),_0x461dbb=_0xbf9ecf(_0x1f30ea),_0x5f0b76=_0x4e5cbb(()=>_0x461dbb[_0x23fd80(0x1eb)](_0x4876cf[_0x23fd80(0x1b3)]),void 0x0,!0x1,[]),[_0x3b027f,_0x545b14]=_0x1c6c56(null),[_0x41cd79,_0x12f815]=_0x1c6c56(h[_0x23fd80(0x159)]),_0x3b6b6b=_0x19bf15(null);return _0xcc0725(()=>(_0x5f0b76&&_0x53e564[_0x23fd80(0x1d7)](_0x5f0b76[_0x23fd80(0x1e3)]())[_0x23fd80(0x1a7)](_0x6145cf=>{var _0x341762=_0x23fd80;_0x545b14(_0x6145cf),_0x3b6b6b[_0x341762(0x1af)]=_0x6145cf[_0x341762(0x18b)][_0x341762(0x1ee)](_0x29b957=>{_0x12f815(_0x29b957);});}),()=>{var _0x18b165=_0x23fd80,_0x41697d;(_0x41697d=_0x3b6b6b[_0x18b165(0x1af)])==null||_0x41697d[_0x18b165(0x1f1)](),_0x3b6b6b[_0x18b165(0x1af)]=null;}),[_0x5f0b76,_0x53e564]),_0x3b027f?_0x2715b3(_0x308dad,{'align':'end','disabled':_0x41cd79===h[_0x23fd80(0x1c4)],'className':_0x23fd80(0x1f9),'overlay':_0x2715b3($e,{'status':_0x41cd79,'coordinator':_0x3b027f}),'children':_0x2715b3(_0x23fd80(0x1f7),{'className':_0x15471c(_0x23fd80(0x1c2),{'univer-cursor-not-allowed':_0x41cd79===h[_0x23fd80(0x1c4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x41cd79!==h[_0x23fd80(0x1c4)]}),'type':_0x23fd80(0x1f7),'children':_0x2715b3(B,{'className':_0x23fd80(0x1b4)})})}):null;}function $e(_0x37e442){var _0x2cb4f0=_0x28bcae;const {status:_0x37fccf,coordinator:_0x51f3f6}=_0x37e442;switch(_0x37fccf){case h[_0x2cb4f0(0x159)]:return _0x2715b3(Fe,{'coordinator':_0x51f3f6});case h[_0x2cb4f0(0x1e7)]:return _0x2715b3(He,{'coordinator':_0x51f3f6});case h['NOT_FOLLOWING']:return _0x2715b3(je,{'coordinator':_0x51f3f6});case h[_0x2cb4f0(0x1c4)]:return _0x2715b3(Ve,{});case h[_0x2cb4f0(0x188)]:return _0x2715b3(Ue,{'coordinator':_0x51f3f6});default:return null;}}function Fe(_0x3eed0f){var _0x219b97=_0x28bcae;const {coordinator:_0x1c0dba}=_0x3eed0f;return _0x1b5c99(_0x168fdd,{'children':[_0x2715b3(_0x219b97(0x1d9),{'className':_0x219b97(0x1b1),'children':_0x219b97(0x1c8)}),_0x2715b3(_0x5378e4,{'onClick':()=>_0x1c0dba[_0x219b97(0x16b)](),'children':_0x219b97(0x1f3)})]});}function He(_0x4eda8a){var _0x35ce8b=_0x28bcae;const {coordinator:_0xbe1bb6}=_0x4eda8a;return _0x1b5c99(_0x168fdd,{'children':[_0x2715b3(_0x35ce8b(0x1d9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x35ce8b(0x1c9)}),_0x2715b3(_0x5378e4,{'onClick':()=>_0xbe1bb6['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x4ed3da){var _0xbf8c19=_0x28bcae;const {coordinator:_0x5d9432}=_0x4ed3da;return _0x1b5c99(_0x168fdd,{'children':[_0x2715b3(_0xbf8c19(0x1d9),{'className':_0xbf8c19(0x1b1),'children':_0xbf8c19(0x1d2)}),_0x2715b3(_0x5378e4,{'variant':'text','onClick':()=>_0x5d9432['startFollowing'](),'children':_0xbf8c19(0x186)})]});}function Ue(_0x3e4cdf){var _0x407a44=_0x28bcae;const {coordinator:_0x1fbcdc}=_0x3e4cdf;return _0x1b5c99(_0x168fdd,{'children':[_0x2715b3(_0x407a44(0x1d9),{'className':_0x407a44(0x1b1),'children':_0x407a44(0x1bc)}),_0x2715b3(_0x5378e4,{'variant':_0x407a44(0x170),'onClick':()=>_0x1fbcdc[_0x407a44(0x1ff)](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x2715b3(_0x168fdd,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x28bcae(0x1f2)],ke=(_0x4632be,_0x13aa5b,_0x2772f0,_0x62b6af)=>{for(var _0x2c1762=_0x62b6af>0x1?void 0x0:_0x62b6af?Me(_0x13aa5b,_0x2772f0):_0x13aa5b,_0x36b801=_0x4632be['length']-0x1,_0x502301;_0x36b801>=0x0;_0x36b801--)(_0x502301=_0x4632be[_0x36b801])&&(_0x2c1762=_0x502301(_0x2c1762)||_0x2c1762);return _0x2c1762;},$=(_0x1d1cd3,_0x24fbc3)=>(_0x49cc00,_0x471b5f)=>_0x24fbc3(_0x49cc00,_0x471b5f,_0x1d1cd3);let b=class extends _0x4ebce3{constructor(_0x291148,_0x319819){var _0x1a5926=_0x28bcae;super(),this[_0x1a5926(0x1a5)]=_0x291148,this[_0x1a5926(0x15d)]=_0x319819,this[_0x1a5926(0x14e)]();}[_0x28bcae(0x14e)](){var _0x56e940=_0x28bcae;this['disposeWithMe'](this[_0x56e940(0x15d)]['registerComponent'](_0x2832e7['HEADER_MENU'],()=>_0x2299bb(Te,this[_0x56e940(0x1a5)])));}};b=ke([$(0x0,_0x2216cd(_0x4193ef)),$(0x1,_0x30b6fc)],b);var Ge=Object[_0x28bcae(0x1bb)],We=Object[_0x28bcae(0x1f2)],Ye=(_0x3a34cb,_0x2ea3f8,_0x161df5)=>_0x2ea3f8 in _0x3a34cb?Ge(_0x3a34cb,_0x2ea3f8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x161df5}):_0x3a34cb[_0x2ea3f8]=_0x161df5,Be=(_0x4789ed,_0x32f6ee,_0x11e4ac,_0x23199d)=>{var _0x34b7d7=_0x28bcae;for(var _0x32b51d=_0x23199d>0x1?void 0x0:_0x23199d?We(_0x32f6ee,_0x11e4ac):_0x32f6ee,_0x5856dc=_0x4789ed[_0x34b7d7(0x1fa)]-0x1,_0x10fc48;_0x5856dc>=0x0;_0x5856dc--)(_0x10fc48=_0x4789ed[_0x5856dc])&&(_0x32b51d=_0x10fc48(_0x32b51d)||_0x32b51d);return _0x32b51d;},F=(_0xc08482,_0x464482)=>(_0x54f600,_0x15d7ed)=>_0x464482(_0x54f600,_0x15d7ed,_0xc08482),J=(_0x472c8d,_0x50d90e,_0x46636d)=>Ye(_0x472c8d,typeof _0x50d90e!=_0x28bcae(0x1de)?_0x50d90e+'':_0x50d90e,_0x46636d);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x100d90{constructor(_0x259a95=T,_0x896803,_0x18b7ce){var _0x2439b8=_0x28bcae;super(),this[_0x2439b8(0x1a9)]=_0x259a95,this[_0x2439b8(0x1a5)]=_0x896803,this[_0x2439b8(0x1dd)]=_0x18b7ce;const {..._0x3ef4cf}=_0x342713({},T,this['_config']);this[_0x2439b8(0x1dd)][_0x2439b8(0x1ce)](Oe,_0x3ef4cf);}[_0x28bcae(0x19a)](){var _0x2fcb31=_0x28bcae;_0x101666(this['_injector'],_0x10c3e8([[L],[I],[m],[b]],this[_0x2fcb31(0x1a9)][_0x2fcb31(0x158)])),_0x1b1875(this[_0x2fcb31(0x1a5)],[[m]]);}[_0x28bcae(0x155)](){var _0x33b57c=_0x28bcae;_0x1b1875(this[_0x33b57c(0x1a5)],[[b]]);}};J(O,_0x28bcae(0x1cd),_0x4876cf[_0x28bcae(0x16e)]),J(O,_0x28bcae(0x1c0),Ze),O=Be([_0x1d67a4(_0x320bf0),F(0x1,_0x2216cd(_0x4193ef)),F(0x2,_0x50f85a)],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(_0x1c6b90,_0x37069b){var _0x193749=_0xaefe,_0x314254=_0x1c6b90();while(!![]){try{var _0x1e2c7e=-parseInt(_0x193749(0x20e))/0x1*(parseInt(_0x193749(0x254))/0x2)+parseInt(_0x193749(0x237))/0x3*(-parseInt(_0x193749(0x203))/0x4)+parseInt(_0x193749(0x2d8))/0x5*(parseInt(_0x193749(0x255))/0x6)+-parseInt(_0x193749(0x287))/0x7*(-parseInt(_0x193749(0x200))/0x8)+parseInt(_0x193749(0x24b))/0x9+parseInt(_0x193749(0x2d1))/0xa*(parseInt(_0x193749(0x2c5))/0xb)+-parseInt(_0x193749(0x1fd))/0xc;if(_0x1e2c7e===_0x37069b)break;else _0x314254['push'](_0x314254['shift']());}catch(_0x1ee736){_0x314254['push'](_0x314254['shift']());}}}(_0x43f4,0xa7687),function(_0x41ccbf,_0x311d5d){var _0x1a25ef=_0xaefe;typeof exports==_0x1a25ef(0x20f)&&typeof module<'u'?_0x311d5d(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==_0x1a25ef(0x23d)&&define[_0x1a25ef(0x22b)]?define([_0x1a25ef(0x242),_0x1a25ef(0x2b1),_0x1a25ef(0x27e),'@univerjs/sheets',_0x1a25ef(0x292),_0x1a25ef(0x2b2),_0x1a25ef(0x2c6),_0x1a25ef(0x24a),_0x1a25ef(0x26f),_0x1a25ef(0x2bc),_0x1a25ef(0x275),_0x1a25ef(0x2ce)],_0x311d5d):(_0x41ccbf=typeof globalThis<'u'?globalThis:_0x41ccbf||self,_0x311d5d(_0x41ccbf[_0x1a25ef(0x21a)]={},_0x41ccbf['UniverProCollaborationClient'],_0x41ccbf['UniverCore'],_0x41ccbf[_0x1a25ef(0x260)],_0x41ccbf[_0x1a25ef(0x207)],_0x41ccbf[_0x1a25ef(0x234)],_0x41ccbf[_0x1a25ef(0x2a7)],_0x41ccbf[_0x1a25ef(0x289)],_0x41ccbf[_0x1a25ef(0x2a7)],_0x41ccbf[_0x1a25ef(0x245)],_0x41ccbf[_0x1a25ef(0x275)],_0x41ccbf['rxjs']['operators']));}(this,function(_0x7a124f,_0x21e19d,_0x465feb,_0x1e29bd,_0x50c271,_0x50c920,_0x4903e6,_0x4708a7,_0x42c8b5,_0xc6f7a0,_0x4788f5,_0x4244fd){'use strict';var _0x4abdf5=_0xaefe;var _0xfdee5a=Object['defineProperty'],_0x159fd7=(_0x5e241c,_0x47d97e,_0x2a298c)=>_0x47d97e in _0x5e241c?_0xfdee5a(_0x5e241c,_0x47d97e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a298c}):_0x5e241c[_0x47d97e]=_0x2a298c,_0x3f606a=(_0xe14347,_0x108cbc,_0x359d1)=>_0x159fd7(_0xe14347,typeof _0x108cbc!=_0x4abdf5(0x24d)?_0x108cbc+'':_0x108cbc,_0x359d1);const _0x1f1091=_0x4abdf5(0x269),_0x30e85e={};class _0x3206c2 extends _0x465feb['Disposable']{constructor(){var _0x1261a2=_0x4abdf5;super(...arguments),_0x3f606a(this,_0x1261a2(0x29c),new Set()),_0x3f606a(this,'_reporters',new Set());}[_0x4abdf5(0x2b6)](_0x3dedf3){var _0x853727=_0x4abdf5;return this[_0x853727(0x29c)][_0x853727(0x21b)](_0x3dedf3),_0x465feb['toDisposable'](()=>this[_0x853727(0x29c)][_0x853727(0x276)](_0x3dedf3));}[_0x4abdf5(0x1ef)](_0x16a210){var _0x20de8c=_0x4abdf5;return this[_0x20de8c(0x1ea)][_0x20de8c(0x21b)](_0x16a210),_0x465feb[_0x20de8c(0x215)](()=>this[_0x20de8c(0x1ea)]['delete'](_0x16a210));}[_0x4abdf5(0x256)](_0x30b017){var _0x1beb21=_0x4abdf5;return this[_0x1beb21(0x29c)][_0x1beb21(0x24c)](_0x30b017);}[_0x4abdf5(0x2cc)](_0x21714b){var _0x46cff7=_0x4abdf5;return Array[_0x46cff7(0x27a)](this[_0x46cff7(0x1ea)])[_0x46cff7(0x25f)](_0x48669a=>_0x48669a(_0x21714b));}}var _0x273a78=Object[_0x4abdf5(0x29e)],_0x41fbbe=(_0x28516b,_0x495f77,_0x3f575e,_0x59b17e)=>{var _0x324118=_0x4abdf5;for(var _0x2cc089=_0x59b17e>0x1?void 0x0:_0x59b17e?_0x273a78(_0x495f77,_0x3f575e):_0x495f77,_0x49be0d=_0x28516b[_0x324118(0x262)]-0x1,_0x49162a;_0x49be0d>=0x0;_0x49be0d--)(_0x49162a=_0x28516b[_0x49be0d])&&(_0x2cc089=_0x49162a(_0x2cc089)||_0x2cc089);return _0x2cc089;},_0x4e7388=(_0x5b59c0,_0xc9a35d)=>(_0x3342a7,_0x4b6d49)=>_0xc9a35d(_0x3342a7,_0x4b6d49,_0x5b59c0);let _0x2ce02d=class extends _0x465feb['Disposable']{constructor(_0x2a9983){var _0x1815f4=_0x4abdf5;super(),this[_0x1815f4(0x288)]=_0x2a9983,this[_0x1815f4(0x272)]();}[_0x4abdf5(0x272)](){var _0x23a6ed=_0x4abdf5;[_0x50c271[_0x23a6ed(0x27b)]['id'],_0x50c271[_0x23a6ed(0x243)]['id'],_0x1e29bd[_0x23a6ed(0x2d9)]['id']]['forEach'](_0x2e20e5=>{var _0x21589b=_0x23a6ed;this[_0x21589b(0x26e)](this[_0x21589b(0x288)][_0x21589b(0x2b6)](_0x2e20e5));});}};_0x2ce02d=_0x41fbbe([_0x4e7388(0x0,_0x465feb[_0x4abdf5(0x290)](_0x3206c2))],_0x2ce02d);var _0x2495dd=function(){var _0x292972=_0x4abdf5;return _0x2495dd=Object[_0x292972(0x2b0)]||function(_0x77e14b){var _0x2d3bae=_0x292972;for(var _0x5c2962,_0x52cd1f=0x1,_0x5cc6da=arguments[_0x2d3bae(0x262)];_0x52cd1f<_0x5cc6da;_0x52cd1f++){_0x5c2962=arguments[_0x52cd1f];for(var _0x400923 in _0x5c2962)Object[_0x2d3bae(0x214)]['hasOwnProperty'][_0x2d3bae(0x2c0)](_0x5c2962,_0x400923)&&(_0x77e14b[_0x400923]=_0x5c2962[_0x400923]);}return _0x77e14b;},_0x2495dd[_0x292972(0x2c4)](this,arguments);},_0x1e9361=function(_0x3668a0,_0x3b54e2){var _0x22cf9b=_0x4abdf5,_0x250b12={};for(var _0x449d99 in _0x3668a0)Object[_0x22cf9b(0x214)][_0x22cf9b(0x2ad)][_0x22cf9b(0x2c0)](_0x3668a0,_0x449d99)&&_0x3b54e2['indexOf'](_0x449d99)<0x0&&(_0x250b12[_0x449d99]=_0x3668a0[_0x449d99]);if(_0x3668a0!=null&&typeof Object['getOwnPropertySymbols']==_0x22cf9b(0x23d)){for(var _0x4129df=0x0,_0x449d99=Object[_0x22cf9b(0x291)](_0x3668a0);_0x4129df<_0x449d99[_0x22cf9b(0x262)];_0x4129df++)_0x3b54e2['indexOf'](_0x449d99[_0x4129df])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x22cf9b(0x2c0)](_0x3668a0,_0x449d99[_0x4129df])&&(_0x250b12[_0x449d99[_0x4129df]]=_0x3668a0[_0x449d99[_0x4129df]]);}return _0x250b12;},_0x463541=_0x42c8b5[_0x4abdf5(0x208)](function(_0x13bc48,_0x2e5d86){var _0x99510=_0x4abdf5,_0x297802=_0x13bc48[_0x99510(0x28c)],_0x1ed724=_0x13bc48['id'],_0x5d629b=_0x13bc48[_0x99510(0x1e8)],_0x41bc62=_0x13bc48['extend'],_0x1cb597=_0x1e9361(_0x13bc48,['icon','id',_0x99510(0x1e8),_0x99510(0x1e5)]),_0x1be007=_0x99510(0x263)['concat'](_0x1ed724,'\x20')[_0x99510(0x26a)](_0x5d629b||'')['trim'](),_0x15cb60=_0x42c8b5[_0x99510(0x221)]('_'[_0x99510(0x26a)](_0x288e89()));return _0x412757(_0x297802,''[_0x99510(0x26a)](_0x1ed724),{'defIds':_0x297802[_0x99510(0x29b)],'idSuffix':_0x15cb60[_0x99510(0x2dd)]},_0x2495dd({'ref':_0x2e5d86,'className':_0x1be007},_0x1cb597),_0x41bc62);});function _0x412757(_0x413dec,_0x5f0036,_0x111013,_0x2af8d9,_0x4d5441){var _0x3f14d4=_0x4abdf5;return _0x42c8b5[_0x3f14d4(0x2c7)](_0x413dec[_0x3f14d4(0x216)],_0x2495dd(_0x2495dd({'key':_0x5f0036},_0x4ac4e6(_0x413dec,_0x111013,_0x4d5441)),_0x2af8d9),(_0x15b934(_0x413dec,_0x111013)[_0x3f14d4(0x2d7)]||[])[_0x3f14d4(0x25f)](function(_0x1d568a,_0x52cd1){var _0x476fd0=_0x3f14d4;return _0x412757(_0x1d568a,''[_0x476fd0(0x26a)](_0x5f0036,'-')['concat'](_0x413dec[_0x476fd0(0x216)],'-')[_0x476fd0(0x26a)](_0x52cd1),_0x111013,void 0x0,_0x4d5441);}));}function _0x4ac4e6(_0xc9e4ed,_0x55dc8b,_0x4f67bb){var _0x37e969=_0x4abdf5,_0xa9e2e1=_0x2495dd({},_0xc9e4ed['attrs']);_0x4f67bb!=null&&_0x4f67bb['colorChannel1']&&_0xa9e2e1[_0x37e969(0x29d)]==='colorChannel1'&&(_0xa9e2e1[_0x37e969(0x29d)]=_0x4f67bb[_0x37e969(0x209)]),_0xc9e4ed[_0x37e969(0x216)]===_0x37e969(0x1fa)&&_0xa9e2e1['id']&&(_0xa9e2e1['id']=_0xa9e2e1['id']+_0x55dc8b[_0x37e969(0x1f9)]),Object[_0x37e969(0x2a3)](_0xa9e2e1)['forEach'](function(_0x52184c){var _0x54a812=_0x37e969,_0x1a9f9b=_0x52184c[0x0],_0x28233e=_0x52184c[0x1];_0x1a9f9b===_0x54a812(0x1fa)&&typeof _0x28233e==_0x54a812(0x2b4)&&(_0xa9e2e1[_0x1a9f9b]=_0x28233e['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x55dc8b[_0x54a812(0x1f9)],')')));});var _0x4466dd=_0x55dc8b[_0x37e969(0x29b)];return!_0x4466dd||_0x4466dd[_0x37e969(0x262)]===0x0||(_0xc9e4ed[_0x37e969(0x216)]==='use'&&_0xa9e2e1['xlink:href']&&(_0xa9e2e1[_0x37e969(0x29a)]=_0xa9e2e1['xlink:href']+_0x55dc8b[_0x37e969(0x1f9)]),Object[_0x37e969(0x2a3)](_0xa9e2e1)[_0x37e969(0x295)](function(_0x235698){var _0x11b38f=_0x37e969,_0xcc85f2=_0x235698[0x0],_0x14ce6e=_0x235698[0x1];typeof _0x14ce6e==_0x11b38f(0x2b4)&&(_0xa9e2e1[_0xcc85f2]=_0x14ce6e['replace'](/url\(#(.*)\)/,_0x11b38f(0x225)[_0x11b38f(0x26a)](_0x55dc8b[_0x11b38f(0x1f9)],')')));})),_0xa9e2e1;}function _0x15b934(_0x4cb033,_0x541b20){var _0x520b63=_0x4abdf5,_0x5bcf8e,_0x30d789=_0x541b20['defIds'];return!_0x30d789||_0x30d789['length']===0x0?_0x4cb033:_0x4cb033[_0x520b63(0x216)]===_0x520b63(0x219)&&(!((_0x5bcf8e=_0x4cb033[_0x520b63(0x2d7)])===null||_0x5bcf8e===void 0x0)&&_0x5bcf8e[_0x520b63(0x262)])?_0x2495dd(_0x2495dd({},_0x4cb033),{'children':_0x4cb033[_0x520b63(0x2d7)]['map'](function(_0xda9d6e){var _0x12d2dd=_0x520b63;return typeof _0xda9d6e[_0x12d2dd(0x2b7)]['id']==_0x12d2dd(0x2b4)&&_0x30d789&&_0x30d789[_0x12d2dd(0x2a0)](_0xda9d6e['attrs']['id'])?_0x2495dd(_0x2495dd({},_0xda9d6e),{'attrs':_0x2495dd(_0x2495dd({},_0xda9d6e['attrs']),{'id':_0xda9d6e[_0x12d2dd(0x2b7)]['id']+_0x541b20[_0x12d2dd(0x1f9)]})}):_0xda9d6e;})}):_0x4cb033;}function _0x288e89(){var _0x743c77=_0x4abdf5;return Math[_0x743c77(0x210)]()[_0x743c77(0x25d)](0x24)[_0x743c77(0x296)](0x2,0x8);}_0x463541[_0x4abdf5(0x1fe)]=_0x4abdf5(0x271);var _0x1bc2af={'tag':_0x4abdf5(0x2a4),'attrs':{'xmlns':_0x4abdf5(0x218),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x4abdf5(0x2af),'d':_0x4abdf5(0x205)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x4abdf5(0x280),'clipRule':'evenodd'}}]},_0x552635=_0x42c8b5[_0x4abdf5(0x208)](function(_0x1dbfbc,_0x21d6c9){var _0xaa3666=_0x4abdf5;return _0x42c8b5[_0xaa3666(0x2c7)](_0x463541,Object['assign']({},_0x1dbfbc,{'id':_0xaa3666(0x23f),'ref':_0x21d6c9,'icon':_0x1bc2af}));});_0x552635[_0x4abdf5(0x1fe)]=_0x4abdf5(0x20b);var _0x358209=Object[_0x4abdf5(0x29e)],_0x48a43a=(_0x388a91,_0x50d080,_0x1cfc27,_0x7f5542)=>{var _0x23a0fc=_0x4abdf5;for(var _0x25cbe0=_0x7f5542>0x1?void 0x0:_0x7f5542?_0x358209(_0x50d080,_0x1cfc27):_0x50d080,_0x2d9246=_0x388a91[_0x23a0fc(0x262)]-0x1,_0x1e2480;_0x2d9246>=0x0;_0x2d9246--)(_0x1e2480=_0x388a91[_0x2d9246])&&(_0x25cbe0=_0x1e2480(_0x25cbe0)||_0x25cbe0);return _0x25cbe0;},_0x5d20ed=(_0x3e0cdc,_0x7afd63)=>(_0x479c71,_0x2ef41b)=>_0x7afd63(_0x479c71,_0x2ef41b,_0x3e0cdc);_0x7a124f[_0x4abdf5(0x257)]=class extends _0x465feb[_0x4abdf5(0x1f5)]{constructor(_0x4a581f,_0x338b4a,_0x515c88){var _0x37da5a=_0x4abdf5;super(),_0x3f606a(this,_0x37da5a(0x2a2),new Map()),(this[_0x37da5a(0x202)]=_0x4a581f,this[_0x37da5a(0x2be)]=_0x338b4a,this['_collabSessionService']=_0x515c88,this[_0x37da5a(0x272)]());}async[_0x4abdf5(0x2bf)](_0x1fdb77){var _0x489d86=_0x4abdf5;return this[_0x489d86(0x2a2)][_0x489d86(0x24c)](_0x1fdb77)||await this[_0x489d86(0x229)](_0x1fdb77),this['_entities'][_0x489d86(0x235)](_0x1fdb77);}['_init'](){var _0x2293b3=_0x4abdf5;this[_0x2293b3(0x202)][_0x2293b3(0x274)](_0x465feb['UniverInstanceType'][_0x2293b3(0x222)])[_0x2293b3(0x22e)](_0x4244fd[_0x2293b3(0x238)](this[_0x2293b3(0x23b)]))[_0x2293b3(0x2c9)](async _0x1b0e53=>{var _0x12edf4=_0x2293b3;const _0x133dfe=_0x1b0e53[_0x12edf4(0x2a8)]();this[_0x12edf4(0x2a2)]['has'](_0x133dfe)||this['_startLiveShareCoordinator'](_0x133dfe);}),this['_univerInstanceService'][_0x2293b3(0x286)](_0x465feb['UniverInstanceType'][_0x2293b3(0x222)])[_0x2293b3(0x22e)](_0x4244fd[_0x2293b3(0x238)](this[_0x2293b3(0x23b)]))[_0x2293b3(0x2c9)](_0xc8b583=>{var _0x12f5cf=_0x2293b3;const _0x5842b0=_0xc8b583['getUnitId'](),_0x25d3b9=this[_0x12f5cf(0x2a2)][_0x12f5cf(0x235)](_0x5842b0);_0x25d3b9==null||_0x25d3b9[_0x12f5cf(0x2cf)]();});}async['_startLiveShareCoordinator'](_0x4a5b4b){var _0x5331a2=_0x4abdf5;const _0x34cda9=await this[_0x5331a2(0x2d2)][_0x5331a2(0x29f)](_0x4a5b4b),_0x4a71c3=this[_0x5331a2(0x2be)][_0x5331a2(0x2a1)](_0x7a124f[_0x5331a2(0x20d)],_0x4a5b4b,_0x34cda9);return _0x4a71c3[_0x5331a2(0x23c)](),this[_0x5331a2(0x2a2)][_0x5331a2(0x2da)](_0x4a5b4b,_0x4a71c3),_0x4a71c3;}},_0x7a124f[_0x4abdf5(0x257)]=_0x48a43a([_0x5d20ed(0x0,_0x465feb[_0x4abdf5(0x201)]),_0x5d20ed(0x1,_0x465feb[_0x4abdf5(0x290)](_0x465feb[_0x4abdf5(0x2a6)])),_0x5d20ed(0x2,_0x465feb[_0x4abdf5(0x290)](_0x21e19d['CollaborationSessionService']))],_0x7a124f[_0x4abdf5(0x257)]);var _0x11a9f5=(_0x5a7476=>(_0x5a7476[_0x4abdf5(0x1f3)]=_0x4abdf5(0x230),_0x5a7476[_0x4abdf5(0x278)]='idle',_0x5a7476[_0x4abdf5(0x264)]=_0x4abdf5(0x21d),_0x5a7476[_0x4abdf5(0x2ab)]=_0x4abdf5(0x27d),_0x5a7476[_0x4abdf5(0x259)]='presenting',_0x5a7476))(_0x11a9f5||{});const _0x32d0dd=_0x4abdf5(0x277),_0xa91a9c=0xc8;_0x7a124f[_0x4abdf5(0x20d)]=class extends _0x465feb['RxDisposable']{constructor(_0x270c6c,_0x5c7c3d,_0x521aaa,_0xe70e69,_0x378251){var _0x3bcc99=_0x4abdf5;super(),_0x3f606a(this,'_status$',new _0x4788f5['BehaviorSubject'](_0x3bcc99(0x248))),_0x3f606a(this,_0x3bcc99(0x25a),this[_0x3bcc99(0x266)][_0x3bcc99(0x28f)]()),_0x3f606a(this,_0x3bcc99(0x272),!0x1),_0x3f606a(this,_0x3bcc99(0x293),null),_0x3f606a(this,_0x3bcc99(0x232),null),(this[_0x3bcc99(0x1e7)]=_0x270c6c,this[_0x3bcc99(0x227)]=_0x5c7c3d,this[_0x3bcc99(0x2b9)]=_0x521aaa,this[_0x3bcc99(0x288)]=_0xe70e69,this['_commandService']=_0x378251);}get[_0x4abdf5(0x297)](){var _0x182ab2=_0x4abdf5;return this['_status$'][_0x182ab2(0x22f)]();}[_0x4abdf5(0x2cf)](){var _0xcedfab=_0x4abdf5,_0xa99ce5;(_0xa99ce5=this['_commandDisposable'])==null||_0xa99ce5[_0xcedfab(0x2cf)](),this[_0xcedfab(0x266)][_0xcedfab(0x206)]('idle'),this[_0xcedfab(0x266)]['complete']();}[_0x4abdf5(0x23c)](){var _0x39b5cc=_0x4abdf5;this[_0x39b5cc(0x272)]||(this[_0x39b5cc(0x272)]=!0x0,this[_0x39b5cc(0x227)][_0x39b5cc(0x283)]['pipe'](_0x4244fd['takeUntil'](this[_0x39b5cc(0x23b)]))[_0x39b5cc(0x2c9)](_0x41c7f6=>{var _0x51b574=_0x39b5cc;switch(_0x41c7f6){case _0x21e19d['SessionStatus'][_0x51b574(0x1f3)]:this[_0x51b574(0x1ec)]();break;case _0x21e19d[_0x51b574(0x2d4)][_0x51b574(0x21e)]:this[_0x51b574(0x25e)]();break;}}),this[_0x39b5cc(0x227)][_0x39b5cc(0x27f)][_0x39b5cc(0x22e)](_0x4244fd[_0x39b5cc(0x238)](this['dispose$']))[_0x39b5cc(0x2c9)](_0x21d84b=>{var _0x197fb5=_0x39b5cc;const {eventID:_0x28e320}=_0x21d84b;switch(_0x28e320){case _0xc6f7a0['CollaborationEvent']['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x21d84b);break;case _0xc6f7a0[_0x197fb5(0x1eb)][_0x197fb5(0x2db)]:this[_0x197fb5(0x1f8)](_0x21d84b);break;case _0xc6f7a0[_0x197fb5(0x1eb)][_0x197fb5(0x224)]:this['_handleTerminate']();break;case _0xc6f7a0['CollaborationEvent'][_0x197fb5(0x231)]:this[_0x197fb5(0x240)](_0x21d84b);break;}}));}[_0x4abdf5(0x265)](){var _0x4d509f=_0x4abdf5;this['_collabSession'][_0x4d509f(0x2c1)]({'eventID':_0xc6f7a0['CollaborationEvent'][_0x4d509f(0x217)],'data':{'unitID':this[_0x4d509f(0x1e7)],'userID':this[_0x4d509f(0x227)][_0x4d509f(0x285)]()}},this['_unitID']);}[_0x4abdf5(0x1fc)](){var _0x2542bf=_0x4abdf5;this[_0x2542bf(0x297)]===_0x2542bf(0x20c)&&(this[_0x2542bf(0x266)][_0x2542bf(0x206)]('idle'),this[_0x2542bf(0x227)][_0x2542bf(0x2c1)]({'eventID':_0xc6f7a0[_0x2542bf(0x1eb)][_0x2542bf(0x224)],'data':{'unitID':this[_0x2542bf(0x1e7)]}},this['_unitID']));}[_0x4abdf5(0x2cd)](){var _0x263de2=_0x4abdf5;this[_0x263de2(0x297)]===_0x263de2(0x27d)&&(this['_status$'][_0x263de2(0x206)](_0x263de2(0x21d)),this[_0x263de2(0x211)]());}[_0x4abdf5(0x270)](){var _0x5271d8=_0x4abdf5;this[_0x5271d8(0x297)]===_0x5271d8(0x21d)&&this['_stopFollowing']();}[_0x4abdf5(0x28a)](_0x3f376b){var _0x11136e=_0x4abdf5;const {presenter:_0x2b5c4b}=_0x3f376b[_0x11136e(0x249)],_0xad495c=this[_0x11136e(0x227)]['getMemberID']();this[_0x11136e(0x232)]=_0x2b5c4b,_0x2b5c4b===_0xad495c?(this[_0x11136e(0x267)](),this[_0x11136e(0x2a5)]()):this[_0x11136e(0x297)]!==_0x11136e(0x27d)&&(this[_0x11136e(0x28e)](),this[_0x11136e(0x211)]());}['_fetchOperations'](){var _0x2607c7=_0x4abdf5;const _0x1cfcc3={'eventID':_0xc6f7a0[_0x2607c7(0x1eb)][_0x2607c7(0x23e)]};this['_collabSession'][_0x2607c7(0x2c1)](_0x1cfcc3,this['_unitID']);}[_0x4abdf5(0x244)](){var _0x22de27=_0x4abdf5;this[_0x22de27(0x232)]=null,this[_0x22de27(0x297)]!==_0x22de27(0x20c)&&this[_0x22de27(0x22a)]();}[_0x4abdf5(0x240)](_0x2b82b1){var _0x2c8657=_0x4abdf5;if(this[_0x2c8657(0x297)]===_0x2c8657(0x21d)&&this['_presenter']===_0x2b82b1[_0x2c8657(0x249)][_0x2c8657(0x28d)]){const _0x50f4b1=_0xc6f7a0[_0x2c8657(0x22c)](_0x2b82b1[_0x2c8657(0x249)])[_0x2c8657(0x279)]['reverse']()[_0x2c8657(0x236)](_0x46d438=>_0x46d438['id']===_0x1e29bd[_0x2c8657(0x24f)]['id']);if(_0x50f4b1){const _0x32eea9=_0x50f4b1[_0x2c8657(0x226)][_0x2c8657(0x2ba)],_0x5c2391=_0x50f4b1['params'][_0x2c8657(0x2de)]['id'];setTimeout(()=>{var _0x3b300a=_0x2c8657;this[_0x3b300a(0x25c)][_0x3b300a(0x2c8)](_0x1e29bd['SetWorksheetActiveOperation']['id'],{'unitId':_0x32eea9,'subUnitId':_0x5c2391},{'fromCollab':!0x0});});}}}[_0x4abdf5(0x2a5)](){var _0x325ea8=_0x4abdf5;this['_status$'][_0x325ea8(0x206)]('presenting');const _0x59567d=new Map(),_0x30ebf5=this[_0x325ea8(0x293)]=new _0x465feb[(_0x325ea8(0x20a))]();_0x30ebf5[_0x325ea8(0x21b)](_0x465feb['toDisposable'](()=>{var _0x15465f=_0x325ea8;_0x59567d[_0x15465f(0x295)](_0x34bbe5=>_0x34bbe5[_0x15465f(0x2d3)]()),_0x59567d[_0x15465f(0x21f)]();})),_0x30ebf5[_0x325ea8(0x21b)](this[_0x325ea8(0x25c)][_0x325ea8(0x1fb)](_0x3abecf=>{var _0x12679c=_0x325ea8,_0x182360;if(_0x3abecf[_0x12679c(0x26c)]!==_0x465feb[_0x12679c(0x228)][_0x12679c(0x2c3)]||!this['_liveShareService'][_0x12679c(0x256)](_0x3abecf['id']))return;const {id:_0x17389a}=_0x3abecf;let _0x1d76fd;_0x59567d['has'](_0x17389a)?_0x1d76fd=_0x59567d['get'](_0x17389a):(_0x1d76fd=new _0x4788f5[(_0x12679c(0x220))](),_0x59567d[_0x12679c(0x2da)](_0x17389a,_0x1d76fd),_0x1d76fd[_0x12679c(0x22e)](_0x4244fd[_0x12679c(0x1e9)]((_0x182360=this['_configService'][_0x12679c(0x2cb)](_0x32d0dd))!=null?_0x182360:_0xa91a9c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x12679c(0x2c9)](_0x52a95a=>{var _0x54f237=_0x12679c;this[_0x54f237(0x227)][_0x54f237(0x2c1)]({'eventID':_0xc6f7a0[_0x54f237(0x1eb)][_0x54f237(0x2db)],'data':{'unitID':this[_0x54f237(0x1e7)],'operations':{[_0x52a95a['id']]:{'id':_0x52a95a['id'],'params':JSON[_0x54f237(0x268)](_0x52a95a[_0x54f237(0x226)])}}}},this[_0x54f237(0x1e7)]);})),_0x1d76fd[_0x12679c(0x206)](_0x3abecf);})),this[_0x325ea8(0x288)][_0x325ea8(0x2cc)](this['_unitID'])[_0x325ea8(0x295)](_0x234f36=>this[_0x325ea8(0x227)][_0x325ea8(0x2c1)]({'eventID':_0xc6f7a0[_0x325ea8(0x1eb)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x325ea8(0x1e7)],'operations':{[_0x234f36['id']]:{'id':_0x234f36['id'],'params':JSON['stringify'](_0x234f36['params'])}}}},this[_0x325ea8(0x1e7)]));}[_0x4abdf5(0x28e)](){var _0x320df6=_0x4abdf5,_0x435d58;this[_0x320df6(0x266)][_0x320df6(0x206)](_0x320df6(0x248)),(_0x435d58=this[_0x320df6(0x293)])==null||_0x435d58[_0x320df6(0x2cf)](),this[_0x320df6(0x293)]=null;}[_0x4abdf5(0x211)](){var _0x5f2356=_0x4abdf5,_0x48e869;(_0x48e869=this[_0x5f2356(0x293)])==null||_0x48e869[_0x5f2356(0x2cf)](),this[_0x5f2356(0x266)][_0x5f2356(0x206)](_0x5f2356(0x21d));}[_0x4abdf5(0x22a)](){var _0x23f8f3=_0x4abdf5,_0x476df9;this[_0x23f8f3(0x266)]['next']('idle'),(_0x476df9=this[_0x23f8f3(0x293)])==null||_0x476df9[_0x23f8f3(0x2cf)](),this['_commandDisposable']=null;}[_0x4abdf5(0x267)](){var _0xd7ece5=_0x4abdf5,_0xc4e8d2;this[_0xd7ece5(0x266)][_0xd7ece5(0x206)](_0xd7ece5(0x27d)),(_0xc4e8d2=this['_commandDisposable'])==null||_0xc4e8d2['dispose']();}[_0x4abdf5(0x1f8)](_0x3f9c60){var _0x53d962=_0x4abdf5;if([_0x53d962(0x20c),_0x53d962(0x27d),_0x53d962(0x230)][_0x53d962(0x2a0)](this[_0x53d962(0x297)])||!_0x3f9c60['data'][_0x53d962(0x241)]||_0x3f9c60['data'][_0x53d962(0x241)]===this[_0x53d962(0x227)][_0x53d962(0x285)]())return;this[_0x53d962(0x297)]===_0x53d962(0x248)&&this[_0x53d962(0x211)]();const _0x42a537=_0x3f9c60[_0x53d962(0x249)][_0x53d962(0x1ed)];Object[_0x53d962(0x204)](_0x42a537)[_0x53d962(0x295)](_0x2b90af=>{var _0x32f4fe=_0x53d962;this['_commandService'][_0x32f4fe(0x2c8)](_0x2b90af['id'],_0x2b90af['params']?JSON[_0x32f4fe(0x258)](_0x2b90af[_0x32f4fe(0x226)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4b1552=_0x4abdf5,_0x274df0;this[_0x4b1552(0x266)][_0x4b1552(0x206)](_0x4b1552(0x230)),(_0x274df0=this[_0x4b1552(0x293)])==null||_0x274df0[_0x4b1552(0x2cf)]();}[_0x4abdf5(0x25e)](){this['_status$']['next']('idle'),this['_fetchOperations']();}},_0x7a124f[_0x4abdf5(0x20d)]=_0x48a43a([_0x5d20ed(0x2,_0x465feb[_0x4abdf5(0x1f7)]),_0x5d20ed(0x3,_0x465feb[_0x4abdf5(0x290)](_0x3206c2)),_0x5d20ed(0x4,_0x465feb[_0x4abdf5(0x213)])],_0x7a124f[_0x4abdf5(0x20d)]);function _0x41ba05(){var _0x28daaf=_0x4abdf5;const _0x561cd3=_0x50c920[_0x28daaf(0x247)](_0x7a124f['LiveShareController']),_0x2aa6fe=_0x50c920[_0x28daaf(0x247)](_0x465feb[_0x28daaf(0x201)]),_0x4067cf=_0x50c920['useObservable'](()=>_0x2aa6fe[_0x28daaf(0x1f6)](_0x465feb['UniverInstanceType'][_0x28daaf(0x222)]),void 0x0,!0x1,[]),[_0x38e92b,_0x3ed39f]=_0x42c8b5[_0x28daaf(0x212)](null),[_0xd0c987,_0x20fc7a]=_0x42c8b5[_0x28daaf(0x212)](_0x11a9f5[_0x28daaf(0x278)]),_0x1fa838=_0x42c8b5['useRef'](null);return _0x42c8b5[_0x28daaf(0x25b)](()=>(_0x4067cf&&_0x561cd3[_0x28daaf(0x2bf)](_0x4067cf[_0x28daaf(0x2a8)]())[_0x28daaf(0x23a)](_0x589ecd=>{var _0x4d0d8f=_0x28daaf;_0x3ed39f(_0x589ecd),_0x1fa838[_0x4d0d8f(0x2dd)]=_0x589ecd[_0x4d0d8f(0x25a)][_0x4d0d8f(0x2c9)](_0x4b3cb8=>{_0x20fc7a(_0x4b3cb8);});}),()=>{var _0x12a2dd=_0x28daaf,_0x41af2b;(_0x41af2b=_0x1fa838[_0x12a2dd(0x2dd)])==null||_0x41af2b[_0x12a2dd(0x2a9)](),_0x1fa838[_0x12a2dd(0x2dd)]=null;}),[_0x4067cf,_0x561cd3]),_0x38e92b?_0x4903e6[_0x28daaf(0x2b5)](_0x4708a7[_0x28daaf(0x2aa)],{'align':_0x28daaf(0x22d),'disabled':_0xd0c987===_0x11a9f5[_0x28daaf(0x1f3)],'className':_0x28daaf(0x1e6),'overlay':_0x4903e6[_0x28daaf(0x2b5)](_0x1fbe8d,{'status':_0xd0c987,'coordinator':_0x38e92b}),'children':_0x4903e6[_0x28daaf(0x2b5)](_0x28daaf(0x26b),{'className':_0x4708a7[_0x28daaf(0x2ac)](_0x28daaf(0x21c),{'univer-cursor-not-allowed':_0xd0c987===_0x11a9f5[_0x28daaf(0x1f3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xd0c987!==_0x11a9f5[_0x28daaf(0x1f3)]}),'type':'button','children':_0x4903e6[_0x28daaf(0x2b5)](_0x552635,{'className':_0x28daaf(0x284)})})}):null;}function _0x1fbe8d(_0xb537ef){var _0x128fba=_0x4abdf5;const {status:_0x4ba175,coordinator:_0x140d96}=_0xb537ef;switch(_0x4ba175){case _0x11a9f5['IDLE']:return _0x4903e6[_0x128fba(0x2b5)](_0x4dff59,{'coordinator':_0x140d96});case _0x11a9f5['FOLLOWING']:return _0x4903e6[_0x128fba(0x2b5)](_0x478087,{'coordinator':_0x140d96});case _0x11a9f5[_0x128fba(0x2ab)]:return _0x4903e6[_0x128fba(0x2b5)](_0x2ee267,{'coordinator':_0x140d96});case _0x11a9f5[_0x128fba(0x1f3)]:return _0x4903e6[_0x128fba(0x2b5)](_0x2c47fa,{});case _0x11a9f5['PRESENTING']:return _0x4903e6[_0x128fba(0x2b5)](_0x18d3d2,{'coordinator':_0x140d96});default:return null;}}function _0x4dff59(_0x3d4d72){var _0x5447c5=_0x4abdf5;const {coordinator:_0x4b81c8}=_0x3d4d72;return _0x4903e6[_0x5447c5(0x2ca)](_0x4903e6[_0x5447c5(0x1ee)],{'children':[_0x4903e6['jsx'](_0x5447c5(0x1f1),{'className':_0x5447c5(0x281),'children':'Present\x20this\x20document'}),_0x4903e6[_0x5447c5(0x2b5)](_0x4708a7[_0x5447c5(0x223)],{'onClick':()=>_0x4b81c8[_0x5447c5(0x265)](),'children':_0x5447c5(0x251)})]});}function _0x478087(_0x18b7b6){var _0x3f71cb=_0x4abdf5;const {coordinator:_0x1e0f8a}=_0x18b7b6;return _0x4903e6[_0x3f71cb(0x2ca)](_0x4903e6[_0x3f71cb(0x1ee)],{'children':[_0x4903e6[_0x3f71cb(0x2b5)](_0x3f71cb(0x1f1),{'className':_0x3f71cb(0x281),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4903e6[_0x3f71cb(0x2b5)](_0x4708a7['Button'],{'onClick':()=>_0x1e0f8a[_0x3f71cb(0x270)](),'children':_0x3f71cb(0x261)})]});}function _0x2ee267(_0x39c584){var _0x41fc00=_0x4abdf5;const {coordinator:_0x3771bd}=_0x39c584;return _0x4903e6[_0x41fc00(0x2ca)](_0x4903e6['Fragment'],{'children':[_0x4903e6[_0x41fc00(0x2b5)](_0x41fc00(0x1f1),{'className':_0x41fc00(0x281),'children':_0x41fc00(0x2c2)}),_0x4903e6[_0x41fc00(0x2b5)](_0x4708a7[_0x41fc00(0x223)],{'variant':_0x41fc00(0x252),'onClick':()=>_0x3771bd[_0x41fc00(0x2cd)](),'children':_0x41fc00(0x2d6)})]});}function _0x18d3d2(_0x2c7708){var _0x46f75f=_0x4abdf5;const {coordinator:_0x56714d}=_0x2c7708;return _0x4903e6['jsxs'](_0x4903e6['Fragment'],{'children':[_0x4903e6['jsx'](_0x46f75f(0x1f1),{'className':_0x46f75f(0x281),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4903e6[_0x46f75f(0x2b5)](_0x4708a7[_0x46f75f(0x223)],{'variant':_0x46f75f(0x239),'onClick':()=>_0x56714d[_0x46f75f(0x1fc)](),'children':_0x46f75f(0x26d)})]});}function _0x2c47fa(){var _0xadb52f=_0x4abdf5;return _0x4903e6[_0xadb52f(0x2b5)](_0x4903e6['Fragment'],{'children':_0xadb52f(0x2d5)});}var _0x597981=Object[_0x4abdf5(0x29e)],_0x780543=(_0x20213a,_0x5a675f,_0x2b8cdc,_0x1962e8)=>{var _0xf32882=_0x4abdf5;for(var _0xe75acb=_0x1962e8>0x1?void 0x0:_0x1962e8?_0x597981(_0x5a675f,_0x2b8cdc):_0x5a675f,_0x2922d6=_0x20213a[_0xf32882(0x262)]-0x1,_0x422ec8;_0x2922d6>=0x0;_0x2922d6--)(_0x422ec8=_0x20213a[_0x2922d6])&&(_0xe75acb=_0x422ec8(_0xe75acb)||_0xe75acb);return _0xe75acb;},_0x55d1db=(_0x2d859c,_0x1db990)=>(_0x5e6026,_0x18789d)=>_0x1db990(_0x5e6026,_0x18789d,_0x2d859c);_0x7a124f['DesktopLiveShareController']=class extends _0x465feb['Disposable']{constructor(_0x533132,_0x5c71c1){var _0x44ce79=_0x4abdf5;super(),this[_0x44ce79(0x2be)]=_0x533132,this[_0x44ce79(0x246)]=_0x5c71c1,this[_0x44ce79(0x28b)]();}[_0x4abdf5(0x28b)](){var _0x5e1db3=_0x4abdf5;this[_0x5e1db3(0x26e)](this[_0x5e1db3(0x246)][_0x5e1db3(0x282)](_0x50c920['BuiltInUIPart']['HEADER_MENU'],()=>_0x50c920[_0x5e1db3(0x2bb)](_0x41ba05,this[_0x5e1db3(0x2be)])));}},_0x7a124f[_0x4abdf5(0x294)]=_0x780543([_0x55d1db(0x0,_0x465feb['Inject'](_0x465feb['Injector'])),_0x55d1db(0x1,_0x50c920[_0x4abdf5(0x253)])],_0x7a124f['DesktopLiveShareController']);var _0x431a2e=Object[_0x4abdf5(0x1ff)],_0x3b25d8=Object[_0x4abdf5(0x29e)],_0x1c6aee=(_0x33a790,_0x3f1a16,_0x16cc2c)=>_0x3f1a16 in _0x33a790?_0x431a2e(_0x33a790,_0x3f1a16,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16cc2c}):_0x33a790[_0x3f1a16]=_0x16cc2c,_0x3a7204=(_0x365b8b,_0x1c8524,_0x12118c,_0x42df66)=>{var _0x15417a=_0x4abdf5;for(var _0x50bfde=_0x42df66>0x1?void 0x0:_0x42df66?_0x3b25d8(_0x1c8524,_0x12118c):_0x1c8524,_0x39d591=_0x365b8b[_0x15417a(0x262)]-0x1,_0x4d06bf;_0x39d591>=0x0;_0x39d591--)(_0x4d06bf=_0x365b8b[_0x39d591])&&(_0x50bfde=_0x4d06bf(_0x50bfde)||_0x50bfde);return _0x50bfde;},_0x5aebf9=(_0x529413,_0xbe1a1c)=>(_0x5091b2,_0x26bd78)=>_0xbe1a1c(_0x5091b2,_0x26bd78,_0x529413),_0x45d24c=(_0x52da18,_0x5efe08,_0x1b9e76)=>_0x1c6aee(_0x52da18,typeof _0x5efe08!=_0x4abdf5(0x24d)?_0x5efe08+'':_0x5efe08,_0x1b9e76);const _0x209289='UNIVER_LIVE_SHARE_PLUGIN';_0x7a124f[_0x4abdf5(0x2dc)]=class extends _0x465feb['Plugin']{constructor(_0x21a00a=_0x30e85e,_0x29f51e,_0x5d653d){var _0xd5aed9=_0x4abdf5;super(),this['_config']=_0x21a00a,this[_0xd5aed9(0x2be)]=_0x29f51e,this[_0xd5aed9(0x2b9)]=_0x5d653d;const {..._0x190b78}=_0x465feb[_0xd5aed9(0x1f0)]({},_0x30e85e,this[_0xd5aed9(0x2b8)]);this[_0xd5aed9(0x2b9)][_0xd5aed9(0x233)](_0x1f1091,_0x190b78);}[_0x4abdf5(0x27c)](){var _0x56cbbe=_0x4abdf5;_0x465feb['registerDependencies'](this[_0x56cbbe(0x2be)],_0x465feb[_0x56cbbe(0x2b3)]([[_0x3206c2],[_0x7a124f['LiveShareController']],[_0x2ce02d],[_0x7a124f[_0x56cbbe(0x294)]]],this['_config'][_0x56cbbe(0x2bd)])),_0x465feb['touchDependencies'](this['_injector'],[[_0x2ce02d]]);}['onRendered'](){var _0x5a6802=_0x4abdf5;_0x465feb[_0x5a6802(0x298)](this[_0x5a6802(0x2be)],[[_0x7a124f[_0x5a6802(0x294)]]]);}},_0x45d24c(_0x7a124f[_0x4abdf5(0x2dc)],_0x4abdf5(0x26c),_0x465feb[_0x4abdf5(0x250)][_0x4abdf5(0x24e)]),_0x45d24c(_0x7a124f[_0x4abdf5(0x2dc)],_0x4abdf5(0x1f4),_0x209289),_0x7a124f[_0x4abdf5(0x2dc)]=_0x3a7204([_0x465feb['DependentOn'](_0x21e19d[_0x4abdf5(0x1f2)]),_0x5aebf9(0x1,_0x465feb[_0x4abdf5(0x290)](_0x465feb['Injector'])),_0x5aebf9(0x2,_0x465feb['IConfigService'])],_0x7a124f[_0x4abdf5(0x2dc)]),_0x7a124f[_0x4abdf5(0x2d0)]=_0x41ba05,_0x7a124f[_0x4abdf5(0x2ae)]=_0x3206c2,_0x7a124f[_0x4abdf5(0x273)]=_0x11a9f5,Object[_0x4abdf5(0x1ff)](_0x7a124f,Symbol[_0x4abdf5(0x299)],{'value':'Module'});}));function _0xaefe(_0x4ef5f4,_0x129fb3){var _0x43f495=_0x43f4();return _0xaefe=function(_0xaefed0,_0x251354){_0xaefed0=_0xaefed0-0x1e5;var _0x2ac36a=_0x43f495[_0xaefed0];return _0x2ac36a;},_0xaefe(_0x4ef5f4,_0x129fb3);}function _0x43f4(){var _0x268364=['unitId','connectInjector','@univerjs-pro/collaboration','override','_injector','getLiveShareCoordinator','call','send','You\x27re\x20not\x20following\x20the\x20presenter','OPERATION','apply','748fmMdyU','react/jsx-runtime','createElement','executeCommand','subscribe','jsxs','getConfig','getInitialStates','startFollowing','rxjs/operators','dispose','LiveShare','87790tizNkZ','_collabSessionService','complete','SessionStatus','You\x27are\x20offline.','Start\x20following','children','5SjWpKq','SetWorksheetActiveOperation','set','LIVESHARE_OPERATION','UniverLiveSharePlugin','current','sheet','extend','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','className','throttleTime','_reporters','CollaborationEvent','_handleOffline','operations','Fragment','registerInitialStateReporter','merge','div','UniverCollaborationClientPlugin','OFFLINE','pluginName','RxDisposable','getCurrentTypeOfUnit$','IConfigService','_handleOperation','idSuffix','mask','onCommandExecuted','stopPresenting','1271268aUdUZn','displayName','defineProperty','584pWcTEc','IUniverInstanceService','_univerInstanceService','6052uesXwI','values','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','next','UniverSheetsUi','forwardRef','colorChannel1','DisposableCollection','LiveShareIcon','presenting','LiveShareCoordinator','13669GDREUg','object','random','_startFollowing','useState','ICommandService','prototype','toDisposable','tag','LIVESHARE_REQUEST_HOST','http://www.w3.org/2000/svg','defs','UniverProLiveShare','add','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','ONLINE','clear','Subject','useRef','UNIVER_SHEET','Button','LIVESHARE_TERMINATE','url(#$1','params','_collabSession','CommandType','_startLiveShareCoordinator','_beIdle','amd','parseProtocolChangeset','end','pipe','getValue','offline','NEW_CHANGESETS','_presenter','setConfig','UniverUi','get','find','1191GtABPZ','takeUntil','default','then','dispose$','init','function','LIVESHARE_FETCH_OPERATIONS','live-share-icon','_handleNewChangeSets','presenter','exports','SetScrollOperation','_handleTerminate','UniverProCollaboration','_uiPartsService','useDependency','idle','data','@univerjs/design','1370988yfaRRC','has','symbol','UNIVER_UNKNOWN','InsertSheetMutation','UniverInstanceType','Start','text','IUIPartsService','102sZtVLh','1888122BRZEBx','shouldShareOperation','LiveShareController','parse','PRESENTING','status$','useEffect','_commandService','toString','_handleOnline','map','UniverSheets','Stop\x20following','length','univerjs-icon\x20univerjs-icon-','FOLLOWING','tryStartPresenting','_status$','_stopFollowing','stringify','live-share.config','concat','button','type','Stop\x20presenting','disposeWithMe','react','stopFollowing','UniverIcon','_init','LiveShareStatus','getTypeOfUnitAdded$','rxjs','delete','SAME_OPERATION_SHARE_INTERVAL','IDLE','mutations','from','SetZoomRatioOperation','onStarting','not-following','@univerjs/core','event$','evenodd','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerComponent','sessionStatus$','univer-size-4','getMemberID','getTypeOfUnitDisposed$','98329olSomz','_liveShareService','UniverDesign','_handleNewHost','_mountLiveShare','icon','memberID','_stopPresenting','asObservable','Inject','getOwnPropertySymbols','@univerjs/sheets-ui','_commandDisposable','DesktopLiveShareController','forEach','substring','_status','touchDependencies','toStringTag','xlink:href','defIds','_sharedOperations','fill','getOwnPropertyDescriptor','requireSession','includes','createInstance','_entities','entries','svg','_startPresenting','Injector','React','getUnitId','unsubscribe','Dropdown','NOT_FOLLOWING','clsx','hasOwnProperty','LiveShareService','currentColor','assign','@univerjs-pro/collaboration-client','@univerjs/ui','mergeOverrideWithDependencies','string','jsx','registerSharedOperation','attrs','_config','_configService'];_0x43f4=function(){return _0x268364;};return _0x43f4();}
|
|
1
|
+
(function(_0x5c185f,_0x8d9bd2){var _0x527b62=_0x4a50,_0x44ad53=_0x5c185f();while(!![]){try{var _0xee5597=parseInt(_0x527b62(0xa0))/0x1*(parseInt(_0x527b62(0xbd))/0x2)+-parseInt(_0x527b62(0x6d))/0x3+parseInt(_0x527b62(0xf3))/0x4+-parseInt(_0x527b62(0x112))/0x5+-parseInt(_0x527b62(0x98))/0x6+parseInt(_0x527b62(0x135))/0x7+-parseInt(_0x527b62(0xb8))/0x8*(-parseInt(_0x527b62(0xee))/0x9);if(_0xee5597===_0x8d9bd2)break;else _0x44ad53['push'](_0x44ad53['shift']());}catch(_0x12f48e){_0x44ad53['push'](_0x44ad53['shift']());}}}(_0x5a7b,0xccbf3),function(_0x28b915,_0x579e94){var _0x40a7ac=_0x4a50;typeof exports==_0x40a7ac(0xc3)&&typeof module<'u'?_0x579e94(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==_0x40a7ac(0xea)&&define['amd']?define([_0x40a7ac(0xa1),_0x40a7ac(0xe5),'@univerjs/core',_0x40a7ac(0xe2),_0x40a7ac(0x113),_0x40a7ac(0x136),_0x40a7ac(0xd8),_0x40a7ac(0x10f),_0x40a7ac(0x152),_0x40a7ac(0x75),_0x40a7ac(0x119),_0x40a7ac(0xd6)],_0x579e94):(_0x28b915=typeof globalThis<'u'?globalThis:_0x28b915||self,_0x579e94(_0x28b915['UniverProLiveShare']={},_0x28b915[_0x40a7ac(0x93)],_0x28b915[_0x40a7ac(0x96)],_0x28b915['UniverSheets'],_0x28b915[_0x40a7ac(0xe0)],_0x28b915['UniverUi'],_0x28b915['React'],_0x28b915['UniverDesign'],_0x28b915[_0x40a7ac(0x9d)],_0x28b915[_0x40a7ac(0xab)],_0x28b915[_0x40a7ac(0x119)],_0x28b915[_0x40a7ac(0x119)][_0x40a7ac(0xc0)]));}(this,function(_0x21d305,_0x18fa11,_0x5dab15,_0x8651d2,_0x21c2b7,_0x76bf87,_0x2fa2fa,_0xaf2bf7,_0x206971,_0x267ab3,_0x349073,_0x4cb200){'use strict';var _0x473c8d=_0x4a50;var _0x4ccb0d=Object[_0x473c8d(0x80)],_0x56aaea=(_0x134132,_0x13021f,_0x3d0961)=>_0x13021f in _0x134132?_0x4ccb0d(_0x134132,_0x13021f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d0961}):_0x134132[_0x13021f]=_0x3d0961,_0x3ba5f=(_0x4ab707,_0x35409f,_0x3a26dc)=>_0x56aaea(_0x4ab707,typeof _0x35409f!=_0x473c8d(0x11b)?_0x35409f+'':_0x35409f,_0x3a26dc);const _0x3d4faf='live-share.config',_0x3f99b6={};class _0x425068 extends _0x5dab15[_0x473c8d(0xe4)]{constructor(){var _0x294b1c=_0x473c8d;super(...arguments),_0x3ba5f(this,'_sharedOperations',new Set()),_0x3ba5f(this,_0x294b1c(0x72),new Set());}[_0x473c8d(0x151)](_0x2ad4c1){var _0xab004e=_0x473c8d;return this[_0xab004e(0x11e)][_0xab004e(0x7e)](_0x2ad4c1),_0x5dab15[_0xab004e(0x10c)](()=>this['_sharedOperations'][_0xab004e(0xfe)](_0x2ad4c1));}[_0x473c8d(0x133)](_0x4e3ac8){var _0x302e06=_0x473c8d;return this[_0x302e06(0x72)][_0x302e06(0x7e)](_0x4e3ac8),_0x5dab15[_0x302e06(0x10c)](()=>this[_0x302e06(0x72)][_0x302e06(0xfe)](_0x4e3ac8));}[_0x473c8d(0xeb)](_0x59290a){var _0xc5dc5c=_0x473c8d;return this[_0xc5dc5c(0x11e)][_0xc5dc5c(0x89)](_0x59290a);}['getInitialStates'](_0x4aadce){var _0x5d0d06=_0x473c8d;return Array['from'](this[_0x5d0d06(0x72)])[_0x5d0d06(0x154)](_0x13adc4=>_0x13adc4(_0x4aadce));}}var _0x21dceb=Object[_0x473c8d(0xb7)],_0x11b7b5=(_0x24bed6,_0x31cee3,_0x2d40df,_0x5752f9)=>{for(var _0x40da58=_0x5752f9>0x1?void 0x0:_0x5752f9?_0x21dceb(_0x31cee3,_0x2d40df):_0x31cee3,_0x555aec=_0x24bed6['length']-0x1,_0x1ab768;_0x555aec>=0x0;_0x555aec--)(_0x1ab768=_0x24bed6[_0x555aec])&&(_0x40da58=_0x1ab768(_0x40da58)||_0x40da58);return _0x40da58;},_0x1829c6=(_0xd1b72c,_0x3e0b06)=>(_0x375e3a,_0x2f6a63)=>_0x3e0b06(_0x375e3a,_0x2f6a63,_0xd1b72c);let _0xa352b8=class extends _0x5dab15[_0x473c8d(0xe4)]{constructor(_0x2f8a89){var _0x38ae26=_0x473c8d;super(),this[_0x38ae26(0x14b)]=_0x2f8a89,this[_0x38ae26(0xac)]();}[_0x473c8d(0xac)](){var _0x1024ae=_0x473c8d;[_0x21c2b7[_0x1024ae(0xf1)]['id'],_0x21c2b7[_0x1024ae(0x88)]['id'],_0x8651d2[_0x1024ae(0xbc)]['id']]['forEach'](_0x196a77=>{var _0x513387=_0x1024ae;this['disposeWithMe'](this['_liveShareService'][_0x513387(0x151)](_0x196a77));});}};_0xa352b8=_0x11b7b5([_0x1829c6(0x0,_0x5dab15[_0x473c8d(0x82)](_0x425068))],_0xa352b8);var _0x3f2a02=function(){var _0x5975c7=_0x473c8d;return _0x3f2a02=Object[_0x5975c7(0x6a)]||function(_0x37e29e){var _0x423fa1=_0x5975c7;for(var _0x434eef,_0x1252b1=0x1,_0x46319e=arguments['length'];_0x1252b1<_0x46319e;_0x1252b1++){_0x434eef=arguments[_0x1252b1];for(var _0x52b136 in _0x434eef)Object[_0x423fa1(0xff)]['hasOwnProperty'][_0x423fa1(0x90)](_0x434eef,_0x52b136)&&(_0x37e29e[_0x52b136]=_0x434eef[_0x52b136]);}return _0x37e29e;},_0x3f2a02[_0x5975c7(0x117)](this,arguments);},_0x134783=function(_0x4b1fe6,_0x230589){var _0x553400=_0x473c8d,_0x4d8796={};for(var _0x523bc0 in _0x4b1fe6)Object[_0x553400(0xff)][_0x553400(0x100)]['call'](_0x4b1fe6,_0x523bc0)&&_0x230589[_0x553400(0x77)](_0x523bc0)<0x0&&(_0x4d8796[_0x523bc0]=_0x4b1fe6[_0x523bc0]);if(_0x4b1fe6!=null&&typeof Object[_0x553400(0xd1)]==_0x553400(0xea)){for(var _0x330e61=0x0,_0x523bc0=Object[_0x553400(0xd1)](_0x4b1fe6);_0x330e61<_0x523bc0[_0x553400(0x14e)];_0x330e61++)_0x230589[_0x553400(0x77)](_0x523bc0[_0x330e61])<0x0&&Object[_0x553400(0xff)]['propertyIsEnumerable'][_0x553400(0x90)](_0x4b1fe6,_0x523bc0[_0x330e61])&&(_0x4d8796[_0x523bc0[_0x330e61]]=_0x4b1fe6[_0x523bc0[_0x330e61]]);}return _0x4d8796;},_0x3385f3=_0x206971['forwardRef'](function(_0x462ce0,_0x574d1a){var _0xa3d842=_0x473c8d,_0x126529=_0x462ce0[_0xa3d842(0xcc)],_0x4bc034=_0x462ce0['id'],_0x33e7d5=_0x462ce0[_0xa3d842(0x103)],_0x4249ef=_0x462ce0['extend'],_0x54738e=_0x134783(_0x462ce0,['icon','id',_0xa3d842(0x103),'extend']),_0x269a1a='univerjs-icon\x20univerjs-icon-'['concat'](_0x4bc034,'\x20')[_0xa3d842(0x7c)](_0x33e7d5||'')[_0xa3d842(0xfb)](),_0x2b905b=_0x206971[_0xa3d842(0x12b)]('_'[_0xa3d842(0x7c)](_0x236af1()));return _0x1628e5(_0x126529,''['concat'](_0x4bc034),{'defIds':_0x126529[_0xa3d842(0x14c)],'idSuffix':_0x2b905b[_0xa3d842(0x121)]},_0x3f2a02({'ref':_0x574d1a,'className':_0x269a1a},_0x54738e),_0x4249ef);});function _0x1628e5(_0x5181cc,_0x3b3972,_0x536db4,_0x5b74da,_0x10533b){var _0x136ca5=_0x473c8d;return _0x206971[_0x136ca5(0x7f)](_0x5181cc[_0x136ca5(0x71)],_0x3f2a02(_0x3f2a02({'key':_0x3b3972},_0x39f8a7(_0x5181cc,_0x536db4,_0x10533b)),_0x5b74da),(_0x1ee93c(_0x5181cc,_0x536db4)[_0x136ca5(0x8b)]||[])[_0x136ca5(0x154)](function(_0x41d43d,_0x328cdf){var _0xfecbfa=_0x136ca5;return _0x1628e5(_0x41d43d,''[_0xfecbfa(0x7c)](_0x3b3972,'-')[_0xfecbfa(0x7c)](_0x5181cc[_0xfecbfa(0x71)],'-')[_0xfecbfa(0x7c)](_0x328cdf),_0x536db4,void 0x0,_0x10533b);}));}function _0x39f8a7(_0x13f7ba,_0x2bcc01,_0x368b48){var _0x68373e=_0x473c8d,_0x50f087=_0x3f2a02({},_0x13f7ba[_0x68373e(0x131)]);_0x368b48!=null&&_0x368b48[_0x68373e(0x12e)]&&_0x50f087['fill']===_0x68373e(0x12e)&&(_0x50f087[_0x68373e(0x7d)]=_0x368b48[_0x68373e(0x12e)]),_0x13f7ba[_0x68373e(0x71)]===_0x68373e(0x122)&&_0x50f087['id']&&(_0x50f087['id']=_0x50f087['id']+_0x2bcc01['idSuffix']),Object[_0x68373e(0x145)](_0x50f087)[_0x68373e(0x73)](function(_0x2d7ba9){var _0x2621ad=_0x68373e,_0x36afae=_0x2d7ba9[0x0],_0x5b66ea=_0x2d7ba9[0x1];_0x36afae===_0x2621ad(0x122)&&typeof _0x5b66ea==_0x2621ad(0x125)&&(_0x50f087[_0x36afae]=_0x5b66ea[_0x2621ad(0x78)](/url\(#(.*)\)/,_0x2621ad(0xaa)[_0x2621ad(0x7c)](_0x2bcc01[_0x2621ad(0x91)],')')));});var _0xf54458=_0x2bcc01[_0x68373e(0x14c)];return!_0xf54458||_0xf54458['length']===0x0||(_0x13f7ba['tag']===_0x68373e(0x95)&&_0x50f087[_0x68373e(0xb2)]&&(_0x50f087[_0x68373e(0xb2)]=_0x50f087[_0x68373e(0xb2)]+_0x2bcc01[_0x68373e(0x91)]),Object['entries'](_0x50f087)[_0x68373e(0x73)](function(_0x5b852d){var _0x42afb7=_0x68373e,_0x594a19=_0x5b852d[0x0],_0x5e8c0e=_0x5b852d[0x1];typeof _0x5e8c0e==_0x42afb7(0x125)&&(_0x50f087[_0x594a19]=_0x5e8c0e[_0x42afb7(0x78)](/url\(#(.*)\)/,_0x42afb7(0xaa)[_0x42afb7(0x7c)](_0x2bcc01[_0x42afb7(0x91)],')')));})),_0x50f087;}function _0x1ee93c(_0x5a0324,_0xacef4f){var _0x19e7ef=_0x473c8d,_0x1841f8,_0x12f8a0=_0xacef4f[_0x19e7ef(0x14c)];return!_0x12f8a0||_0x12f8a0[_0x19e7ef(0x14e)]===0x0?_0x5a0324:_0x5a0324[_0x19e7ef(0x71)]==='defs'&&(!((_0x1841f8=_0x5a0324[_0x19e7ef(0x8b)])===null||_0x1841f8===void 0x0)&&_0x1841f8[_0x19e7ef(0x14e)])?_0x3f2a02(_0x3f2a02({},_0x5a0324),{'children':_0x5a0324[_0x19e7ef(0x8b)]['map'](function(_0x33cdd6){var _0x5e762a=_0x19e7ef;return typeof _0x33cdd6['attrs']['id']==_0x5e762a(0x125)&&_0x12f8a0&&_0x12f8a0[_0x5e762a(0xf5)](_0x33cdd6[_0x5e762a(0x131)]['id'])?_0x3f2a02(_0x3f2a02({},_0x33cdd6),{'attrs':_0x3f2a02(_0x3f2a02({},_0x33cdd6['attrs']),{'id':_0x33cdd6[_0x5e762a(0x131)]['id']+_0xacef4f['idSuffix']})}):_0x33cdd6;})}):_0x5a0324;}function _0x236af1(){var _0x139369=_0x473c8d;return Math[_0x139369(0xe1)]()[_0x139369(0xa6)](0x24)['substring'](0x2,0x8);}_0x3385f3[_0x473c8d(0x110)]='UniverIcon';var _0x7e658d={'tag':'svg','attrs':{'xmlns':_0x473c8d(0xca),'fill':_0x473c8d(0xcf),'viewBox':'0\x200\x2017\x2017','width':_0x473c8d(0x120),'height':'1em'},'children':[{'tag':_0x473c8d(0x150),'attrs':{'fill':_0x473c8d(0xd4),'d':_0x473c8d(0x126)}},{'tag':_0x473c8d(0x150),'attrs':{'fill':_0x473c8d(0xd4),'d':_0x473c8d(0xb0),'fillRule':_0x473c8d(0x105),'clipRule':_0x473c8d(0x105)}}]},_0x4d1874=_0x206971[_0x473c8d(0xf6)](function(_0x2680fb,_0x44e343){var _0x3fdc3b=_0x473c8d;return _0x206971['createElement'](_0x3385f3,Object[_0x3fdc3b(0x6a)]({},_0x2680fb,{'id':_0x3fdc3b(0xf8),'ref':_0x44e343,'icon':_0x7e658d}));});_0x4d1874[_0x473c8d(0x110)]=_0x473c8d(0x13d);var _0x1c5371=Object[_0x473c8d(0xb7)],_0x2f618b=(_0x2cf082,_0x39e756,_0x3e6fe0,_0xf34dc9)=>{for(var _0x2385b7=_0xf34dc9>0x1?void 0x0:_0xf34dc9?_0x1c5371(_0x39e756,_0x3e6fe0):_0x39e756,_0x3fbdb2=_0x2cf082['length']-0x1,_0x36f9f5;_0x3fbdb2>=0x0;_0x3fbdb2--)(_0x36f9f5=_0x2cf082[_0x3fbdb2])&&(_0x2385b7=_0x36f9f5(_0x2385b7)||_0x2385b7);return _0x2385b7;},_0x526c7a=(_0x42fa8b,_0x152443)=>(_0x51dcd3,_0x4d8992)=>_0x152443(_0x51dcd3,_0x4d8992,_0x42fa8b);_0x21d305[_0x473c8d(0xfc)]=class extends _0x5dab15['RxDisposable']{constructor(_0x3aaf3e,_0x4c0cf2,_0x532144){var _0xb4fe88=_0x473c8d;super(),_0x3ba5f(this,_0xb4fe88(0x102),new Map()),(this['_univerInstanceService']=_0x3aaf3e,this[_0xb4fe88(0xcd)]=_0x4c0cf2,this[_0xb4fe88(0x84)]=_0x532144,this[_0xb4fe88(0xac)]());}async[_0x473c8d(0x69)](_0xde66f8){var _0x44ac70=_0x473c8d;return this['_entities'][_0x44ac70(0x89)](_0xde66f8)||await this['_startLiveShareCoordinator'](_0xde66f8),this[_0x44ac70(0x102)][_0x44ac70(0x144)](_0xde66f8);}[_0x473c8d(0xac)](){var _0x2c8a9d=_0x473c8d;this[_0x2c8a9d(0x67)]['getTypeOfUnitAdded$'](_0x5dab15[_0x2c8a9d(0xbe)][_0x2c8a9d(0xc8)])[_0x2c8a9d(0xf4)](_0x4cb200[_0x2c8a9d(0x10b)](this['dispose$']))[_0x2c8a9d(0xb1)](async _0x47fda5=>{var _0x5194a7=_0x2c8a9d;const _0xfb9741=_0x47fda5['getUnitId']();this['_entities'][_0x5194a7(0x89)](_0xfb9741)||this[_0x5194a7(0x10a)](_0xfb9741);}),this[_0x2c8a9d(0x67)][_0x2c8a9d(0x70)](_0x5dab15[_0x2c8a9d(0xbe)]['UNIVER_SHEET'])['pipe'](_0x4cb200[_0x2c8a9d(0x10b)](this[_0x2c8a9d(0x13a)]))[_0x2c8a9d(0xb1)](_0x38d655=>{var _0x5e29a8=_0x2c8a9d;const _0x12bed2=_0x38d655[_0x5e29a8(0xba)](),_0x585781=this[_0x5e29a8(0x102)][_0x5e29a8(0x144)](_0x12bed2);_0x585781==null||_0x585781[_0x5e29a8(0xb9)]();});}async[_0x473c8d(0x10a)](_0x23bc7c){var _0x47eb68=_0x473c8d;const _0x2435b1=await this[_0x47eb68(0x84)][_0x47eb68(0xc5)](_0x23bc7c),_0x2a88a0=this[_0x47eb68(0xcd)][_0x47eb68(0x143)](_0x21d305[_0x47eb68(0x7b)],_0x23bc7c,_0x2435b1);return _0x2a88a0['init'](),this[_0x47eb68(0x102)][_0x47eb68(0xa9)](_0x23bc7c,_0x2a88a0),_0x2a88a0;}},_0x21d305[_0x473c8d(0xfc)]=_0x2f618b([_0x526c7a(0x0,_0x5dab15[_0x473c8d(0x140)]),_0x526c7a(0x1,_0x5dab15[_0x473c8d(0x82)](_0x5dab15['Injector'])),_0x526c7a(0x2,_0x5dab15[_0x473c8d(0x82)](_0x18fa11[_0x473c8d(0xfd)]))],_0x21d305['LiveShareController']);var _0x100102=(_0x3d5644=>(_0x3d5644[_0x473c8d(0x14a)]=_0x473c8d(0xe7),_0x3d5644['IDLE']=_0x473c8d(0x114),_0x3d5644[_0x473c8d(0x81)]=_0x473c8d(0x9a),_0x3d5644[_0x473c8d(0x6f)]=_0x473c8d(0x11d),_0x3d5644['PRESENTING']=_0x473c8d(0xe8),_0x3d5644))(_0x100102||{});const _0xe130f0=_0x473c8d(0x13e),_0x1f3be3=0xc8;_0x21d305[_0x473c8d(0x7b)]=class extends _0x5dab15['RxDisposable']{constructor(_0x18c45b,_0xeea144,_0x1db20a,_0xd30379,_0x3471ab){var _0x1ce507=_0x473c8d;super(),_0x3ba5f(this,_0x1ce507(0xda),new _0x349073[(_0x1ce507(0x10e))]('idle')),_0x3ba5f(this,_0x1ce507(0x148),this[_0x1ce507(0xda)][_0x1ce507(0x9f)]()),_0x3ba5f(this,'_init',!0x1),_0x3ba5f(this,_0x1ce507(0x86),null),_0x3ba5f(this,_0x1ce507(0x6e),null),(this[_0x1ce507(0x108)]=_0x18c45b,this[_0x1ce507(0xbb)]=_0xeea144,this[_0x1ce507(0xa8)]=_0x1db20a,this[_0x1ce507(0x14b)]=_0xd30379,this[_0x1ce507(0xd2)]=_0x3471ab);}get[_0x473c8d(0x137)](){var _0x4eae78=_0x473c8d;return this[_0x4eae78(0xda)][_0x4eae78(0x128)]();}['dispose'](){var _0x34b492=_0x473c8d,_0x5875c2;(_0x5875c2=this[_0x34b492(0x86)])==null||_0x5875c2[_0x34b492(0xb9)](),this[_0x34b492(0xda)][_0x34b492(0x13c)](_0x34b492(0x114)),this['_status$'][_0x34b492(0xae)]();}[_0x473c8d(0xec)](){var _0x1f0dac=_0x473c8d;this[_0x1f0dac(0xac)]||(this[_0x1f0dac(0xac)]=!0x0,this[_0x1f0dac(0xbb)][_0x1f0dac(0xf9)]['pipe'](_0x4cb200[_0x1f0dac(0x10b)](this['dispose$']))[_0x1f0dac(0xb1)](_0x4038f7=>{var _0x3e4c53=_0x1f0dac;switch(_0x4038f7){case _0x18fa11[_0x3e4c53(0xc7)][_0x3e4c53(0x14a)]:this[_0x3e4c53(0x101)]();break;case _0x18fa11[_0x3e4c53(0xc7)][_0x3e4c53(0xe9)]:this[_0x3e4c53(0x11c)]();break;}}),this[_0x1f0dac(0xbb)][_0x1f0dac(0x7a)][_0x1f0dac(0xf4)](_0x4cb200[_0x1f0dac(0x10b)](this[_0x1f0dac(0x13a)]))['subscribe'](_0x5e3eb6=>{var _0x5e399e=_0x1f0dac;const {eventID:_0x23afba}=_0x5e3eb6;switch(_0x23afba){case _0x267ab3[_0x5e399e(0xef)][_0x5e399e(0x104)]:this['_handleNewHost'](_0x5e3eb6);break;case _0x267ab3[_0x5e399e(0xef)]['LIVESHARE_OPERATION']:this[_0x5e399e(0x10d)](_0x5e3eb6);break;case _0x267ab3[_0x5e399e(0xef)][_0x5e399e(0x147)]:this[_0x5e399e(0x14f)]();break;case _0x267ab3[_0x5e399e(0xef)][_0x5e399e(0xa4)]:this[_0x5e399e(0x134)](_0x5e3eb6);break;}}));}[_0x473c8d(0xc9)](){var _0x24bd76=_0x473c8d;this['_collabSession']['send']({'eventID':_0x267ab3[_0x24bd76(0xef)][_0x24bd76(0x6b)],'data':{'unitID':this[_0x24bd76(0x108)],'userID':this[_0x24bd76(0xbb)][_0x24bd76(0x6c)]()}},this[_0x24bd76(0x108)]);}[_0x473c8d(0x118)](){var _0x16cb68=_0x473c8d;this['_status']==='presenting'&&(this[_0x16cb68(0xda)]['next'](_0x16cb68(0x114)),this[_0x16cb68(0xbb)][_0x16cb68(0x92)]({'eventID':_0x267ab3[_0x16cb68(0xef)][_0x16cb68(0x147)],'data':{'unitID':this[_0x16cb68(0x108)]}},this['_unitID']));}[_0x473c8d(0xa5)](){var _0x50affc=_0x473c8d;this[_0x50affc(0x137)]==='not-following'&&(this[_0x50affc(0xda)]['next']('following'),this[_0x50affc(0x12a)]());}['stopFollowing'](){var _0x57ddee=_0x473c8d;this['_status']===_0x57ddee(0x9a)&&this['_stopFollowing']();}[_0x473c8d(0x66)](_0x1897dd){var _0x9576d5=_0x473c8d;const {presenter:_0x48b6a8}=_0x1897dd[_0x9576d5(0xd5)],_0x2e2086=this[_0x9576d5(0xbb)][_0x9576d5(0x6c)]();this[_0x9576d5(0x6e)]=_0x48b6a8,_0x48b6a8===_0x2e2086?(this[_0x9576d5(0xb4)](),this[_0x9576d5(0xe3)]()):this['_status']!=='not-following'&&(this[_0x9576d5(0x76)](),this['_startFollowing']());}[_0x473c8d(0x115)](){var _0x1a5776=_0x473c8d;const _0x4d143e={'eventID':_0x267ab3[_0x1a5776(0xef)][_0x1a5776(0x146)]};this[_0x1a5776(0xbb)][_0x1a5776(0x92)](_0x4d143e,this[_0x1a5776(0x108)]);}['_handleTerminate'](){var _0x28a03a=_0x473c8d;this['_presenter']=null,this[_0x28a03a(0x137)]!==_0x28a03a(0xe8)&&this[_0x28a03a(0x142)]();}['_handleNewChangeSets'](_0x13fdff){var _0x5c3ca3=_0x473c8d;if(this['_status']===_0x5c3ca3(0x9a)&&this[_0x5c3ca3(0x6e)]===_0x13fdff[_0x5c3ca3(0xd5)]['memberID']){const _0x227e5e=_0x267ab3['parseProtocolChangeset'](_0x13fdff['data'])[_0x5c3ca3(0x94)]['reverse']()['find'](_0xb2d703=>_0xb2d703['id']===_0x8651d2[_0x5c3ca3(0xa3)]['id']);if(_0x227e5e){const _0x1b8645=_0x227e5e[_0x5c3ca3(0xaf)][_0x5c3ca3(0x13b)],_0x3dfcce=_0x227e5e[_0x5c3ca3(0xaf)]['sheet']['id'];setTimeout(()=>{var _0x3da0ad=_0x5c3ca3;this[_0x3da0ad(0xd2)][_0x3da0ad(0xb3)](_0x8651d2[_0x3da0ad(0xbc)]['id'],{'unitId':_0x1b8645,'subUnitId':_0x3dfcce},{'fromCollab':!0x0});});}}}[_0x473c8d(0xe3)](){var _0x35bd62=_0x473c8d;this[_0x35bd62(0xda)][_0x35bd62(0x13c)](_0x35bd62(0xe8));const _0x272c7b=new Map(),_0xc5a54c=this['_commandDisposable']=new _0x5dab15[(_0x35bd62(0xd3))]();_0xc5a54c['add'](_0x5dab15[_0x35bd62(0x10c)](()=>{var _0x14bd97=_0x35bd62;_0x272c7b[_0x14bd97(0x73)](_0x4cfa2e=>_0x4cfa2e[_0x14bd97(0xae)]()),_0x272c7b[_0x14bd97(0xb6)]();})),_0xc5a54c[_0x35bd62(0x7e)](this['_commandService'][_0x35bd62(0x99)](_0x537a99=>{var _0x4acd92=_0x35bd62,_0x12c22e;if(_0x537a99[_0x4acd92(0x138)]!==_0x5dab15[_0x4acd92(0xcb)][_0x4acd92(0xdc)]||!this[_0x4acd92(0x14b)]['shouldShareOperation'](_0x537a99['id']))return;const {id:_0x16bc84}=_0x537a99;let _0x1fec07;_0x272c7b[_0x4acd92(0x89)](_0x16bc84)?_0x1fec07=_0x272c7b[_0x4acd92(0x144)](_0x16bc84):(_0x1fec07=new _0x349073[(_0x4acd92(0x116))](),_0x272c7b[_0x4acd92(0xa9)](_0x16bc84,_0x1fec07),_0x1fec07[_0x4acd92(0xf4)](_0x4cb200['throttleTime']((_0x12c22e=this[_0x4acd92(0xa8)]['getConfig'](_0xe130f0))!=null?_0x12c22e:_0x1f3be3,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4acd92(0xb1)](_0x3669b9=>{var _0x2054b4=_0x4acd92;this['_collabSession']['send']({'eventID':_0x267ab3[_0x2054b4(0xef)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2054b4(0x108)],'operations':{[_0x3669b9['id']]:{'id':_0x3669b9['id'],'params':JSON[_0x2054b4(0x149)](_0x3669b9[_0x2054b4(0xaf)])}}}},this[_0x2054b4(0x108)]);})),_0x1fec07[_0x4acd92(0x13c)](_0x537a99);})),this[_0x35bd62(0x14b)][_0x35bd62(0x9c)](this[_0x35bd62(0x108)])[_0x35bd62(0x73)](_0x37dfe6=>this[_0x35bd62(0xbb)][_0x35bd62(0x92)]({'eventID':_0x267ab3[_0x35bd62(0xef)][_0x35bd62(0xd0)],'data':{'unitID':this[_0x35bd62(0x108)],'operations':{[_0x37dfe6['id']]:{'id':_0x37dfe6['id'],'params':JSON[_0x35bd62(0x149)](_0x37dfe6[_0x35bd62(0xaf)])}}}},this['_unitID']));}[_0x473c8d(0x76)](){var _0x5f8807=_0x473c8d,_0x3a739d;this[_0x5f8807(0xda)]['next'](_0x5f8807(0x114)),(_0x3a739d=this['_commandDisposable'])==null||_0x3a739d['dispose'](),this[_0x5f8807(0x86)]=null;}[_0x473c8d(0x12a)](){var _0x42d6f8=_0x473c8d,_0x4948f7;(_0x4948f7=this[_0x42d6f8(0x86)])==null||_0x4948f7[_0x42d6f8(0xb9)](),this[_0x42d6f8(0xda)]['next']('following');}['_beIdle'](){var _0x1d0f62=_0x473c8d,_0x167b0d;this['_status$']['next']('idle'),(_0x167b0d=this['_commandDisposable'])==null||_0x167b0d[_0x1d0f62(0xb9)](),this[_0x1d0f62(0x86)]=null;}[_0x473c8d(0xb4)](){var _0x5f33c8=_0x473c8d,_0x518b72;this[_0x5f33c8(0xda)][_0x5f33c8(0x13c)](_0x5f33c8(0x11d)),(_0x518b72=this[_0x5f33c8(0x86)])==null||_0x518b72[_0x5f33c8(0xb9)]();}['_handleOperation'](_0x5f5034){var _0x46355c=_0x473c8d;if([_0x46355c(0xe8),_0x46355c(0x11d),_0x46355c(0xe7)]['includes'](this[_0x46355c(0x137)])||!_0x5f5034['data'][_0x46355c(0xdb)]||_0x5f5034[_0x46355c(0xd5)][_0x46355c(0xdb)]===this['_collabSession'][_0x46355c(0x6c)]())return;this[_0x46355c(0x137)]===_0x46355c(0x114)&&this[_0x46355c(0x12a)]();const _0xa361e=_0x5f5034[_0x46355c(0xd5)][_0x46355c(0x83)];Object[_0x46355c(0x132)](_0xa361e)[_0x46355c(0x73)](_0xc3bcb8=>{var _0x1d7cd5=_0x46355c;this['_commandService'][_0x1d7cd5(0xb3)](_0xc3bcb8['id'],_0xc3bcb8['params']?JSON[_0x1d7cd5(0x11a)](_0xc3bcb8[_0x1d7cd5(0xaf)]):null,{'fromCollab':!0x0});});}[_0x473c8d(0x101)](){var _0x2948c9=_0x473c8d,_0x429381;this['_status$']['next']('offline'),(_0x429381=this[_0x2948c9(0x86)])==null||_0x429381['dispose']();}[_0x473c8d(0x11c)](){var _0xa56b34=_0x473c8d;this[_0xa56b34(0xda)]['next'](_0xa56b34(0x114)),this[_0xa56b34(0x115)]();}},_0x21d305['LiveShareCoordinator']=_0x2f618b([_0x526c7a(0x2,_0x5dab15[_0x473c8d(0xdd)]),_0x526c7a(0x3,_0x5dab15[_0x473c8d(0x82)](_0x425068)),_0x526c7a(0x4,_0x5dab15['ICommandService'])],_0x21d305[_0x473c8d(0x7b)]);function _0x1f8405(){var _0xe0abd8=_0x473c8d;const _0x151fe0=_0x76bf87[_0xe0abd8(0x127)](_0x21d305['LiveShareController']),_0x1d2fe3=_0x76bf87[_0xe0abd8(0x127)](_0x5dab15[_0xe0abd8(0x140)]),_0x23b5d8=_0x76bf87[_0xe0abd8(0xce)](()=>_0x1d2fe3[_0xe0abd8(0xf2)](_0x5dab15[_0xe0abd8(0xbe)][_0xe0abd8(0xc8)]),void 0x0,!0x1,[]),[_0x48d93d,_0x304d39]=_0x206971['useState'](null),[_0x222708,_0x560066]=_0x206971[_0xe0abd8(0xdf)](_0x100102['IDLE']),_0x2ced61=_0x206971[_0xe0abd8(0x12b)](null);return _0x206971[_0xe0abd8(0x111)](()=>(_0x23b5d8&&_0x151fe0['getLiveShareCoordinator'](_0x23b5d8['getUnitId']())['then'](_0x4fd272=>{var _0x153d9e=_0xe0abd8;_0x304d39(_0x4fd272),_0x2ced61['current']=_0x4fd272[_0x153d9e(0x148)][_0x153d9e(0xb1)](_0x719a8b=>{_0x560066(_0x719a8b);});}),()=>{var _0x148e4f=_0xe0abd8,_0x27b0e7;(_0x27b0e7=_0x2ced61[_0x148e4f(0x121)])==null||_0x27b0e7['unsubscribe'](),_0x2ced61[_0x148e4f(0x121)]=null;}),[_0x23b5d8,_0x151fe0]),_0x48d93d?_0x2fa2fa[_0xe0abd8(0x97)](_0xaf2bf7[_0xe0abd8(0x12d)],{'align':_0xe0abd8(0x9e),'disabled':_0x222708===_0x100102[_0xe0abd8(0x14a)],'className':_0xe0abd8(0xbf),'overlay':_0x2fa2fa[_0xe0abd8(0x97)](_0x1738ad,{'status':_0x222708,'coordinator':_0x48d93d}),'children':_0x2fa2fa['jsx'](_0xe0abd8(0x12c),{'className':_0xaf2bf7['clsx'](_0xe0abd8(0x8a),{'univer-cursor-not-allowed':_0x222708===_0x100102[_0xe0abd8(0x14a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x222708!==_0x100102[_0xe0abd8(0x14a)]}),'type':_0xe0abd8(0x12c),'children':_0x2fa2fa[_0xe0abd8(0x97)](_0x4d1874,{'className':_0xe0abd8(0xad)})})}):null;}function _0x1738ad(_0x2711a4){var _0x14f1d0=_0x473c8d;const {status:_0x461a8c,coordinator:_0x36ef08}=_0x2711a4;switch(_0x461a8c){case _0x100102[_0x14f1d0(0x8f)]:return _0x2fa2fa['jsx'](_0x360b8a,{'coordinator':_0x36ef08});case _0x100102[_0x14f1d0(0x81)]:return _0x2fa2fa['jsx'](_0x5254f0,{'coordinator':_0x36ef08});case _0x100102[_0x14f1d0(0x6f)]:return _0x2fa2fa[_0x14f1d0(0x97)](_0x3eb94f,{'coordinator':_0x36ef08});case _0x100102[_0x14f1d0(0x14a)]:return _0x2fa2fa[_0x14f1d0(0x97)](_0x2d3251,{});case _0x100102[_0x14f1d0(0x107)]:return _0x2fa2fa['jsx'](_0x520cdc,{'coordinator':_0x36ef08});default:return null;}}function _0x360b8a(_0x3b3c7f){var _0x2c088a=_0x473c8d;const {coordinator:_0x4174e1}=_0x3b3c7f;return _0x2fa2fa['jsxs'](_0x2fa2fa[_0x2c088a(0x141)],{'children':[_0x2fa2fa[_0x2c088a(0x97)](_0x2c088a(0x79),{'className':_0x2c088a(0xed),'children':'Present\x20this\x20document'}),_0x2fa2fa[_0x2c088a(0x97)](_0xaf2bf7[_0x2c088a(0xe6)],{'onClick':()=>_0x4174e1[_0x2c088a(0xc9)](),'children':_0x2c088a(0x124)})]});}function _0x5254f0(_0x25a7dc){var _0x223612=_0x473c8d;const {coordinator:_0x324c35}=_0x25a7dc;return _0x2fa2fa['jsxs'](_0x2fa2fa[_0x223612(0x141)],{'children':[_0x2fa2fa['jsx'](_0x223612(0x79),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x223612(0xa7)}),_0x2fa2fa[_0x223612(0x97)](_0xaf2bf7['Button'],{'onClick':()=>_0x324c35[_0x223612(0x139)](),'children':_0x223612(0xc6)})]});}function _0x3eb94f(_0x2bbc17){var _0x30ef78=_0x473c8d;const {coordinator:_0x3a8e84}=_0x2bbc17;return _0x2fa2fa[_0x30ef78(0x12f)](_0x2fa2fa[_0x30ef78(0x141)],{'children':[_0x2fa2fa[_0x30ef78(0x97)]('div',{'className':_0x30ef78(0xed),'children':_0x30ef78(0x68)}),_0x2fa2fa[_0x30ef78(0x97)](_0xaf2bf7['Button'],{'variant':_0x30ef78(0x8c),'onClick':()=>_0x3a8e84[_0x30ef78(0xa5)](),'children':_0x30ef78(0x129)})]});}function _0x520cdc(_0x50312f){var _0x10a941=_0x473c8d;const {coordinator:_0x4b4130}=_0x50312f;return _0x2fa2fa['jsxs'](_0x2fa2fa[_0x10a941(0x141)],{'children':[_0x2fa2fa[_0x10a941(0x97)](_0x10a941(0x79),{'className':_0x10a941(0xed),'children':_0x10a941(0xd9)}),_0x2fa2fa[_0x10a941(0x97)](_0xaf2bf7[_0x10a941(0xe6)],{'variant':'default','onClick':()=>_0x4b4130[_0x10a941(0x118)](),'children':_0x10a941(0x106)})]});}function _0x2d3251(){var _0x1634d6=_0x473c8d;return _0x2fa2fa[_0x1634d6(0x97)](_0x2fa2fa[_0x1634d6(0x141)],{'children':_0x1634d6(0xc1)});}var _0x15381c=Object[_0x473c8d(0xb7)],_0x4c3ef3=(_0x5e2bfa,_0x6a4e86,_0x2376de,_0x1b20da)=>{for(var _0xe5bb38=_0x1b20da>0x1?void 0x0:_0x1b20da?_0x15381c(_0x6a4e86,_0x2376de):_0x6a4e86,_0x4d6894=_0x5e2bfa['length']-0x1,_0x7eed11;_0x4d6894>=0x0;_0x4d6894--)(_0x7eed11=_0x5e2bfa[_0x4d6894])&&(_0xe5bb38=_0x7eed11(_0xe5bb38)||_0xe5bb38);return _0xe5bb38;},_0x42dca0=(_0xb302ba,_0x3b85b7)=>(_0x42d032,_0x4f4f6d)=>_0x3b85b7(_0x42d032,_0x4f4f6d,_0xb302ba);_0x21d305['DesktopLiveShareController']=class extends _0x5dab15['Disposable']{constructor(_0x334e45,_0x53e92e){var _0x2d5c83=_0x473c8d;super(),this['_injector']=_0x334e45,this[_0x2d5c83(0x109)]=_0x53e92e,this[_0x2d5c83(0xf7)]();}['_mountLiveShare'](){var _0x1f0b36=_0x473c8d;this[_0x1f0b36(0x11f)](this['_uiPartsService'][_0x1f0b36(0xd7)](_0x76bf87[_0x1f0b36(0xc2)][_0x1f0b36(0x9b)],()=>_0x76bf87[_0x1f0b36(0xc4)](_0x1f8405,this[_0x1f0b36(0xcd)])));}},_0x21d305[_0x473c8d(0x14d)]=_0x4c3ef3([_0x42dca0(0x0,_0x5dab15[_0x473c8d(0x82)](_0x5dab15[_0x473c8d(0xf0)])),_0x42dca0(0x1,_0x76bf87[_0x473c8d(0x123)])],_0x21d305[_0x473c8d(0x14d)]);var _0x1b6baa=Object['defineProperty'],_0x5abe49=Object[_0x473c8d(0xb7)],_0x5aa8f3=(_0x50262b,_0x8dff88,_0xfbb1c)=>_0x8dff88 in _0x50262b?_0x1b6baa(_0x50262b,_0x8dff88,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xfbb1c}):_0x50262b[_0x8dff88]=_0xfbb1c,_0xd1364c=(_0x3bf5f1,_0x7d2f24,_0x44f55c,_0x31c03c)=>{var _0x177210=_0x473c8d;for(var _0x387182=_0x31c03c>0x1?void 0x0:_0x31c03c?_0x5abe49(_0x7d2f24,_0x44f55c):_0x7d2f24,_0xe6c6d=_0x3bf5f1[_0x177210(0x14e)]-0x1,_0x404a0c;_0xe6c6d>=0x0;_0xe6c6d--)(_0x404a0c=_0x3bf5f1[_0xe6c6d])&&(_0x387182=_0x404a0c(_0x387182)||_0x387182);return _0x387182;},_0x54fdd4=(_0x4d3571,_0xf7a4d2)=>(_0x2fda46,_0x17d9cb)=>_0xf7a4d2(_0x2fda46,_0x17d9cb,_0x4d3571),_0x24bd53=(_0x4b4322,_0x30c823,_0x4a6726)=>_0x5aa8f3(_0x4b4322,typeof _0x30c823!=_0x473c8d(0x11b)?_0x30c823+'':_0x30c823,_0x4a6726);const _0x412440=_0x473c8d(0x74);_0x21d305['UniverLiveSharePlugin']=class extends _0x5dab15['Plugin']{constructor(_0x377072=_0x3f99b6,_0x578eb3,_0x2b76a2){var _0x201d3f=_0x473c8d;super(),this['_config']=_0x377072,this['_injector']=_0x578eb3,this['_configService']=_0x2b76a2;const {..._0x1bc743}=_0x5dab15[_0x201d3f(0x8d)]({},_0x3f99b6,this[_0x201d3f(0xa2)]);this[_0x201d3f(0xa8)]['setConfig'](_0x3d4faf,_0x1bc743);}[_0x473c8d(0xde)](){var _0x5cce78=_0x473c8d;_0x5dab15[_0x5cce78(0x85)](this[_0x5cce78(0xcd)],_0x5dab15[_0x5cce78(0x13f)]([[_0x425068],[_0x21d305[_0x5cce78(0xfc)]],[_0xa352b8],[_0x21d305[_0x5cce78(0x14d)]]],this[_0x5cce78(0xa2)]['override'])),_0x5dab15[_0x5cce78(0x65)](this[_0x5cce78(0xcd)],[[_0xa352b8]]);}[_0x473c8d(0x155)](){var _0xc00694=_0x473c8d;_0x5dab15[_0xc00694(0x65)](this['_injector'],[[_0x21d305['DesktopLiveShareController']]]);}},_0x24bd53(_0x21d305[_0x473c8d(0xb5)],'type',_0x5dab15[_0x473c8d(0xbe)][_0x473c8d(0x130)]),_0x24bd53(_0x21d305[_0x473c8d(0xb5)],'pluginName',_0x412440),_0x21d305[_0x473c8d(0xb5)]=_0xd1364c([_0x5dab15['DependentOn'](_0x18fa11[_0x473c8d(0x87)]),_0x54fdd4(0x1,_0x5dab15[_0x473c8d(0x82)](_0x5dab15[_0x473c8d(0xf0)])),_0x54fdd4(0x2,_0x5dab15[_0x473c8d(0xdd)])],_0x21d305[_0x473c8d(0xb5)]),_0x21d305['LiveShare']=_0x1f8405,_0x21d305['LiveShareService']=_0x425068,_0x21d305[_0x473c8d(0x153)]=_0x100102,Object[_0x473c8d(0x80)](_0x21d305,Symbol[_0x473c8d(0xfa)],{'value':_0x473c8d(0x8e)});}));function _0x4a50(_0x158d84,_0x5a6cb8){var _0x5a7bc8=_0x5a7b();return _0x4a50=function(_0x4a50cc,_0x431068){_0x4a50cc=_0x4a50cc-0x65;var _0x1f0ce8=_0x5a7bc8[_0x4a50cc];return _0x1f0ce8;},_0x4a50(_0x158d84,_0x5a6cb8);}function _0x5a7b(){var _0x4f98c4=['LIVESHARE_REQUEST_HOST','getMemberID','2002929nkNXLw','_presenter','NOT_FOLLOWING','getTypeOfUnitDisposed$','tag','_reporters','forEach','UNIVER_LIVE_SHARE_PLUGIN','@univerjs-pro/collaboration','_stopPresenting','indexOf','replace','div','event$','LiveShareCoordinator','concat','fill','add','createElement','defineProperty','FOLLOWING','Inject','operations','_collabSessionService','registerDependencies','_commandDisposable','UniverCollaborationClientPlugin','SetScrollOperation','has','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','children','text','merge','Module','IDLE','call','idSuffix','send','UniverProCollaborationClient','mutations','use','UniverCore','jsx','4545048lNqncG','onCommandExecuted','following','HEADER_MENU','getInitialStates','React','end','asObservable','643373rgmFpz','exports','_config','InsertSheetMutation','NEW_CHANGESETS','startFollowing','toString','You\x27re\x20following\x20the\x20presenter','_configService','set','url(#$1','UniverProCollaboration','_init','univer-size-4','complete','params','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','subscribe','xlink:href','executeCommand','_stopFollowing','UniverLiveSharePlugin','clear','getOwnPropertyDescriptor','11704iiVGqp','dispose','getUnitId','_collabSession','SetWorksheetActiveOperation','4nbSmKN','UniverInstanceType','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','operators','You\x27are\x20offline.','BuiltInUIPart','object','connectInjector','requireSession','Stop\x20following','SessionStatus','UNIVER_SHEET','tryStartPresenting','http://www.w3.org/2000/svg','CommandType','icon','_injector','useObservable','none','LIVESHARE_OPERATION','getOwnPropertySymbols','_commandService','DisposableCollection','currentColor','data','rxjs/operators','registerComponent','react/jsx-runtime','You\x27re\x20presenting\x20the\x20document','_status$','presenter','OPERATION','IConfigService','onStarting','useState','UniverSheetsUi','random','@univerjs/sheets','_startPresenting','Disposable','@univerjs-pro/collaboration-client','Button','offline','presenting','ONLINE','function','shouldShareOperation','init','univer-mb-3\x20univer-w-full\x20univer-text-sm','5274rBuvWZ','CollaborationEvent','Injector','SetZoomRatioOperation','getCurrentTypeOfUnit$','338788tEndZN','pipe','includes','forwardRef','_mountLiveShare','live-share-icon','sessionStatus$','toStringTag','trim','LiveShareController','CollaborationSessionService','delete','prototype','hasOwnProperty','_handleOffline','_entities','className','LIVESHARE_NEW_HOST','evenodd','Stop\x20presenting','PRESENTING','_unitID','_uiPartsService','_startLiveShareCoordinator','takeUntil','toDisposable','_handleOperation','BehaviorSubject','@univerjs/design','displayName','useEffect','1470615VNTtgq','@univerjs/sheets-ui','idle','_fetchOperations','Subject','apply','stopPresenting','rxjs','parse','symbol','_handleOnline','not-following','_sharedOperations','disposeWithMe','1em','current','mask','IUIPartsService','Start','string','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','useDependency','getValue','Start\x20following','_startFollowing','useRef','button','Dropdown','colorChannel1','jsxs','UNIVER_UNKNOWN','attrs','values','registerInitialStateReporter','_handleNewChangeSets','2304092koEDpU','@univerjs/ui','_status','type','stopFollowing','dispose$','unitId','next','LiveShareIcon','SAME_OPERATION_SHARE_INTERVAL','mergeOverrideWithDependencies','IUniverInstanceService','Fragment','_beIdle','createInstance','get','entries','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_TERMINATE','status$','stringify','OFFLINE','_liveShareService','defIds','DesktopLiveShareController','length','_handleTerminate','path','registerSharedOperation','react','LiveShareStatus','map','onRendered','touchDependencies','_handleNewHost','_univerInstanceService','You\x27re\x20not\x20following\x20the\x20presenter','getLiveShareCoordinator','assign'];_0x5a7b=function(){return _0x4f98c4;};return _0x5a7b();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.6",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.9.
|
|
51
|
-
"@univerjs-pro/collaboration
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/sheets": "0.9.
|
|
54
|
-
"@univerjs/sheets
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration-client": "0.9.4",
|
|
51
|
+
"@univerjs-pro/collaboration": "0.9.4",
|
|
52
|
+
"@univerjs/design": "0.9.4",
|
|
53
|
+
"@univerjs/sheets-ui": "0.9.4",
|
|
54
|
+
"@univerjs/sheets": "0.9.4",
|
|
55
|
+
"@univerjs/core": "0.9.4",
|
|
56
|
+
"@univerjs/ui": "0.9.4"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^7.0.5",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs-infra/shared": "0.9.
|
|
66
|
+
"@univerjs-infra/shared": "0.9.4",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|