@univerjs-pro/live-share 0.10.10-nightly.202510180256 → 0.10.10-nightly.202510180327

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x2d235b=_0x56da;(function(_0x6969f5,_0x13c89a){var _0x3c5a53=_0x56da,_0x54e646=_0x6969f5();while(!![]){try{var _0x19dd67=parseInt(_0x3c5a53(0x255))/0x1+-parseInt(_0x3c5a53(0x1cc))/0x2+-parseInt(_0x3c5a53(0x257))/0x3+-parseInt(_0x3c5a53(0x234))/0x4+parseInt(_0x3c5a53(0x1c1))/0x5+-parseInt(_0x3c5a53(0x1ed))/0x6*(-parseInt(_0x3c5a53(0x245))/0x7)+-parseInt(_0x3c5a53(0x26d))/0x8;if(_0x19dd67===_0x13c89a)break;else _0x54e646['push'](_0x54e646['shift']());}catch(_0x2ebe39){_0x54e646['push'](_0x54e646['shift']());}}}(_0x9f5d,0xa01ef));var U=Object[_0x2d235b(0x18f)],F=(_0x24230d,_0x5ee9d0,_0x1ad04d)=>_0x5ee9d0 in _0x24230d?U(_0x24230d,_0x5ee9d0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ad04d}):_0x24230d[_0x5ee9d0]=_0x1ad04d,v=(_0x43eafc,_0x2d8c30,_0x2f825b)=>F(_0x43eafc,typeof _0x2d8c30!=_0x2d235b(0x1ff)?_0x2d8c30+'':_0x2d8c30,_0x2f825b);Object[_0x2d235b(0x18f)](exports,Symbol[_0x2d235b(0x235)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x3329d5=_0x2d235b;return u=Object[_0x3329d5(0x1d6)]||function(_0x1556ba){var _0x4383fd=_0x3329d5;for(var _0x230bcf,_0x18028e=0x1,_0x366e74=arguments[_0x4383fd(0x1e0)];_0x18028e<_0x366e74;_0x18028e++){_0x230bcf=arguments[_0x18028e];for(var _0x1e4482 in _0x230bcf)Object[_0x4383fd(0x1bb)]['hasOwnProperty'][_0x4383fd(0x270)](_0x230bcf,_0x1e4482)&&(_0x1556ba[_0x1e4482]=_0x230bcf[_0x1e4482]);}return _0x1556ba;},u[_0x3329d5(0x230)](this,arguments);},$=function(_0x5659bb,_0xcf0740){var _0x1f4476=_0x2d235b,_0x2c3e2f={};for(var _0x212acc in _0x5659bb)Object[_0x1f4476(0x1bb)][_0x1f4476(0x20f)]['call'](_0x5659bb,_0x212acc)&&_0xcf0740[_0x1f4476(0x266)](_0x212acc)<0x0&&(_0x2c3e2f[_0x212acc]=_0x5659bb[_0x212acc]);if(_0x5659bb!=null&&typeof Object['getOwnPropertySymbols']==_0x1f4476(0x1a0)){for(var _0x3512a7=0x0,_0x212acc=Object[_0x1f4476(0x21a)](_0x5659bb);_0x3512a7<_0x212acc[_0x1f4476(0x1e0)];_0x3512a7++)_0xcf0740[_0x1f4476(0x266)](_0x212acc[_0x3512a7])<0x0&&Object[_0x1f4476(0x1bb)][_0x1f4476(0x25d)][_0x1f4476(0x270)](_0x5659bb,_0x212acc[_0x3512a7])&&(_0x2c3e2f[_0x212acc[_0x3512a7]]=_0x5659bb[_0x212acc[_0x3512a7]]);}return _0x2c3e2f;},j=f[_0x2d235b(0x272)](function(_0x379bc5,_0x4ce3a7){var _0x2d2231=_0x2d235b,_0x526cac=_0x379bc5[_0x2d2231(0x1e9)],_0x3b6d08=_0x379bc5['id'],_0x226071=_0x379bc5['className'],_0x506888=_0x379bc5[_0x2d2231(0x1f3)],_0x239cdb=$(_0x379bc5,[_0x2d2231(0x1e9),'id','className','extend']),_0x2a7fac='univerjs-icon\x20univerjs-icon-'[_0x2d2231(0x259)](_0x3b6d08,'\x20')[_0x2d2231(0x259)](_0x226071||'')['trim'](),_0x1c832f=f[_0x2d2231(0x1e3)]('_'[_0x2d2231(0x259)](k()));return y(_0x526cac,''[_0x2d2231(0x259)](_0x3b6d08),{'defIds':_0x526cac[_0x2d2231(0x248)],'idSuffix':_0x1c832f[_0x2d2231(0x1c4)]},u({'ref':_0x4ce3a7,'className':_0x2a7fac},_0x239cdb),_0x506888);});function y(_0x349c7b,_0xcdcfe3,_0xaa6053,_0xc59401,_0xf3d8e8){var _0x294691=_0x2d235b;return f[_0x294691(0x22f)](_0x349c7b[_0x294691(0x24e)],u(u({'key':_0xcdcfe3},H(_0x349c7b,_0xaa6053,_0xf3d8e8)),_0xc59401),(V(_0x349c7b,_0xaa6053)[_0x294691(0x1b9)]||[])[_0x294691(0x20c)](function(_0x17efce,_0x2ba041){var _0x5f0f5c=_0x294691;return y(_0x17efce,''[_0x5f0f5c(0x259)](_0xcdcfe3,'-')['concat'](_0x349c7b[_0x5f0f5c(0x24e)],'-')[_0x5f0f5c(0x259)](_0x2ba041),_0xaa6053,void 0x0,_0xf3d8e8);}));}function H(_0x59b23b,_0x10d531,_0x375f1e){var _0x381f70=_0x2d235b,_0x358704=u({},_0x59b23b[_0x381f70(0x197)]);_0x375f1e!=null&&_0x375f1e[_0x381f70(0x194)]&&_0x358704['fill']===_0x381f70(0x194)&&(_0x358704[_0x381f70(0x1b0)]=_0x375f1e[_0x381f70(0x194)]),_0x59b23b['tag']==='mask'&&_0x358704['id']&&(_0x358704['id']=_0x358704['id']+_0x10d531[_0x381f70(0x239)]),Object['entries'](_0x358704)[_0x381f70(0x199)](function(_0x46d332){var _0x1dd80b=_0x381f70,_0x470112=_0x46d332[0x0],_0x231942=_0x46d332[0x1];_0x470112==='mask'&&typeof _0x231942==_0x1dd80b(0x1d9)&&(_0x358704[_0x470112]=_0x231942[_0x1dd80b(0x1ea)](/url\(#(.*)\)/,_0x1dd80b(0x218)[_0x1dd80b(0x259)](_0x10d531[_0x1dd80b(0x239)],')')));});var _0x3bbe1f=_0x10d531[_0x381f70(0x248)];return!_0x3bbe1f||_0x3bbe1f[_0x381f70(0x1e0)]===0x0||(_0x59b23b[_0x381f70(0x24e)]===_0x381f70(0x1dc)&&_0x358704[_0x381f70(0x1e4)]&&(_0x358704[_0x381f70(0x1e4)]=_0x358704[_0x381f70(0x1e4)]+_0x10d531['idSuffix']),Object[_0x381f70(0x1a7)](_0x358704)[_0x381f70(0x199)](function(_0x201915){var _0xfd46ae=_0x381f70,_0x26d715=_0x201915[0x0],_0x2a3748=_0x201915[0x1];typeof _0x2a3748=='string'&&(_0x358704[_0x26d715]=_0x2a3748[_0xfd46ae(0x1ea)](/url\(#(.*)\)/,'url(#$1'[_0xfd46ae(0x259)](_0x10d531[_0xfd46ae(0x239)],')')));})),_0x358704;}function V(_0x5128f7,_0x3e3fe3){var _0x1e05de=_0x2d235b,_0x3879d0,_0x2c5fc2=_0x3e3fe3[_0x1e05de(0x248)];return!_0x2c5fc2||_0x2c5fc2[_0x1e05de(0x1e0)]===0x0?_0x5128f7:_0x5128f7['tag']===_0x1e05de(0x1e7)&&(!((_0x3879d0=_0x5128f7['children'])===null||_0x3879d0===void 0x0)&&_0x3879d0['length'])?u(u({},_0x5128f7),{'children':_0x5128f7['children'][_0x1e05de(0x20c)](function(_0x2bd29d){var _0x147141=_0x1e05de;return typeof _0x2bd29d['attrs']['id']==_0x147141(0x1d9)&&_0x2c5fc2&&_0x2c5fc2[_0x147141(0x20a)](_0x2bd29d[_0x147141(0x197)]['id'])?u(u({},_0x2bd29d),{'attrs':u(u({},_0x2bd29d[_0x147141(0x197)]),{'id':_0x2bd29d['attrs']['id']+_0x3e3fe3[_0x147141(0x239)]})}):_0x2bd29d;})}):_0x5128f7;}function k(){var _0x54a270=_0x2d235b;return Math['random']()[_0x54a270(0x241)](0x24)[_0x54a270(0x1ae)](0x2,0x8);}function _0x56da(_0x4b0885,_0x20e181){var _0x9f5d5d=_0x9f5d();return _0x56da=function(_0x56dab5,_0x58f436){_0x56dab5=_0x56dab5-0x18f;var _0x2f5744=_0x9f5d5d[_0x56dab5];return _0x2f5744;},_0x56da(_0x4b0885,_0x20e181);}j['displayName']='UniverIcon';var M={'tag':'svg','attrs':{'xmlns':_0x2d235b(0x1de),'fill':_0x2d235b(0x1b8),'viewBox':_0x2d235b(0x1c7),'width':'1em','height':_0x2d235b(0x1bd)},'children':[{'tag':_0x2d235b(0x25e),'attrs':{'fill':_0x2d235b(0x26e),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x2d235b(0x25e),'attrs':{'fill':_0x2d235b(0x26e),'d':_0x2d235b(0x198),'fillRule':_0x2d235b(0x1d3),'clipRule':_0x2d235b(0x1d3)}}]},P=f['forwardRef'](function(_0x131253,_0x58e72b){var _0x51dbd1=_0x2d235b;return f[_0x51dbd1(0x22f)](j,Object['assign']({},_0x131253,{'id':_0x51dbd1(0x26b),'ref':_0x58e72b,'icon':M}));});P[_0x2d235b(0x1e1)]='LiveShareIcon';class O extends o[_0x2d235b(0x253)]{constructor(){var _0xbc9fdc=_0x2d235b;super(...arguments),v(this,_0xbc9fdc(0x224),new Set()),v(this,_0xbc9fdc(0x25c),new Set());}[_0x2d235b(0x195)](_0x44b048){var _0x4a75f9=_0x2d235b;return this[_0x4a75f9(0x224)]['add'](_0x44b048),o[_0x4a75f9(0x1d5)](()=>this[_0x4a75f9(0x224)]['delete'](_0x44b048));}[_0x2d235b(0x1bf)](_0x197957){var _0x3c9355=_0x2d235b;return this[_0x3c9355(0x25c)]['add'](_0x197957),o['toDisposable'](()=>this[_0x3c9355(0x25c)][_0x3c9355(0x249)](_0x197957));}[_0x2d235b(0x207)](_0x5af386){var _0x29a8bb=_0x2d235b;return this[_0x29a8bb(0x224)][_0x29a8bb(0x1a1)](_0x5af386);}[_0x2d235b(0x26a)](_0x211761){var _0x62160f=_0x2d235b;return Array[_0x62160f(0x23f)](this[_0x62160f(0x25c)])[_0x62160f(0x20c)](_0x351ae2=>_0x351ae2(_0x211761));}}function _0x9f5d(){var _0x133d8f=['_configService','get','getInitialStates','live-share-icon','NEW_CHANGESETS','5672368toiAWB','currentColor','useObservable','call','_entities','forwardRef','_handleOperation','defineProperty','end','idle','createInstance','subscribe','colorChannel1','registerSharedOperation','executeCommand','attrs','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','forEach','SetScrollOperation','tryStartPresenting','memberID','univer-mb-3\x20univer-w-full\x20univer-text-sm','text','Start','function','has','_injector','send','useState','_presenter','LiveShareService','entries','getMemberID','pluginName','touchDependencies','_status$','UniverLiveSharePlugin','stringify','substring','LIVESHARE_REQUEST_HOST','fill','parse','IUIPartsService','SAME_OPERATION_SHARE_INTERVAL','_handleOnline','SessionStatus','getConfig','not-following','none','children','reverse','prototype','UniverCollaborationClientPlugin','1em','stopPresenting','registerInitialStateReporter','getTypeOfUnitDisposed$','4670670paaiuO','pipe','data','current','RxDisposable','add','0\x200\x2017\x2017','_collabSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','operations','throttleTime','395852zdFEjh','_uiPartsService','_handleNewHost','presenting','takeUntil','FOLLOWING','_handleTerminate','evenodd','BehaviorSubject','toDisposable','assign','_liveShareService','_startLiveShareCoordinator','string','getUnitId','onCommandExecuted','use','LIVESHARE_TERMINATE','http://www.w3.org/2000/svg','presenter','length','displayName','_init','useRef','xlink:href','SetWorksheetActiveOperation','_stopPresenting','defs','getCurrentTypeOfUnit$','icon','replace','_startFollowing','dispose$','80334ZeLnys','offline','CollaborationEvent','LiveShare','Fragment','div','extend','mutations','status$','BuiltInUIPart','_startPresenting','startFollowing','Stop\x20following','LIVESHARE_FETCH_OPERATIONS','_beIdle','_commandService','UNIVER_UNKNOWN','mergeOverrideWithDependencies','symbol','find','Dropdown','unsubscribe','You\x27re\x20following\x20the\x20presenter','requireSession','UniverInstanceType','CollaborationSessionService','shouldShareOperation','next','_status','includes','getOwnPropertyDescriptor','map','then','registerComponent','hasOwnProperty','_univerInstanceService','Subject','init','univer-size-4','ONLINE','DesktopLiveShareController','merge','_unitID','url(#$1','LiveShareStatus','getOwnPropertySymbols','useEffect','jsxs','sheet','_stopFollowing','asObservable','_mountLiveShare','IConfigService','_handleNewChangeSets','_collabSessionService','_sharedOperations','disposeWithMe','PRESENTING','registerDependencies','SetZoomRatioOperation','live-share.config','onStarting','onRendered','Button','_config','set','createElement','apply','getLiveShareCoordinator','Present\x20this\x20document','button','1162100GVfuDL','toStringTag','Inject','UNIVER_SHEET','event$','idSuffix','You\x27are\x20offline.','type','getValue','params','DisposableCollection','from','jsx','toString','You\x27re\x20not\x20following\x20the\x20presenter','IUniverInstanceService','clsx','308LGQEYt','You\x27re\x20presenting\x20the\x20document','_fetchOperations','defIds','delete','OFFLINE','_handleOffline','IDLE','default','tag','LIVESHARE_OPERATION','dispose','LIVESHARE_NEW_HOST','LiveShareController','Disposable','ICommandService','1187811UaPaEP','following','2573127DZeVGy','Injector','concat','parseProtocolChangeset','NOT_FOLLOWING','_reporters','propertyIsEnumerable','path','_commandDisposable','LiveShareCoordinator','Stop\x20presenting','complete','Start\x20following','setConfig','stopFollowing','indexOf','sessionStatus$'];_0x9f5d=function(){return _0x133d8f;};return _0x9f5d();}var q=Object[_0x2d235b(0x20b)],R=(_0x1d294f,_0x3e2dd4,_0x1b416d,_0x483ae1)=>{var _0x5b3aa9=_0x2d235b;for(var _0x5b1c85=_0x483ae1>0x1?void 0x0:_0x483ae1?q(_0x3e2dd4,_0x1b416d):_0x3e2dd4,_0x2695f6=_0x1d294f[_0x5b3aa9(0x1e0)]-0x1,_0x117966;_0x2695f6>=0x0;_0x2695f6--)(_0x117966=_0x1d294f[_0x2695f6])&&(_0x5b1c85=_0x117966(_0x5b1c85)||_0x5b1c85);return _0x5b1c85;},S=(_0x253c7f,_0x48fe7c)=>(_0xd2c99f,_0x5cdc47)=>_0x48fe7c(_0xd2c99f,_0x5cdc47,_0x253c7f);exports[_0x2d235b(0x252)]=class extends o[_0x2d235b(0x1c5)]{constructor(_0x456bd0,_0x5134e5,_0x167b23){var _0x2be64c=_0x2d235b;super(),v(this,_0x2be64c(0x271),new Map()),(this[_0x2be64c(0x210)]=_0x456bd0,this[_0x2be64c(0x1a2)]=_0x5134e5,this[_0x2be64c(0x223)]=_0x167b23,this['_init']());}async[_0x2d235b(0x231)](_0x38c3e9){var _0x1dea17=_0x2d235b;return this['_entities'][_0x1dea17(0x1a1)](_0x38c3e9)||await this[_0x1dea17(0x1d8)](_0x38c3e9),this[_0x1dea17(0x271)][_0x1dea17(0x269)](_0x38c3e9);}[_0x2d235b(0x1e2)](){var _0x553578=_0x2d235b;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x553578(0x205)][_0x553578(0x237)])['pipe'](b[_0x553578(0x1d0)](this[_0x553578(0x1ec)]))[_0x553578(0x193)](async _0x4102e6=>{var _0x47cad6=_0x553578;const _0x574018=_0x4102e6[_0x47cad6(0x1da)]();this[_0x47cad6(0x271)]['has'](_0x574018)||this['_startLiveShareCoordinator'](_0x574018);}),this[_0x553578(0x210)][_0x553578(0x1c0)](o[_0x553578(0x205)][_0x553578(0x237)])[_0x553578(0x1c2)](b[_0x553578(0x1d0)](this[_0x553578(0x1ec)]))[_0x553578(0x193)](_0x10d8cf=>{var _0x5e2075=_0x553578;const _0x5d675a=_0x10d8cf[_0x5e2075(0x1da)](),_0x133017=this[_0x5e2075(0x271)][_0x5e2075(0x269)](_0x5d675a);_0x133017==null||_0x133017[_0x5e2075(0x250)]();});}async[_0x2d235b(0x1d8)](_0x54f87a){var _0x5ae7e0=_0x2d235b;const _0x2cece7=await this[_0x5ae7e0(0x223)][_0x5ae7e0(0x204)](_0x54f87a),_0x2cde2c=this[_0x5ae7e0(0x1a2)][_0x5ae7e0(0x192)](exports[_0x5ae7e0(0x260)],_0x54f87a,_0x2cece7);return _0x2cde2c['init'](),this['_entities']['set'](_0x54f87a,_0x2cde2c),_0x2cde2c;}},exports[_0x2d235b(0x252)]=R([S(0x0,o[_0x2d235b(0x243)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o[_0x2d235b(0x236)](m[_0x2d235b(0x206)]))],exports['LiveShareController']);var h=(_0xa9abb1=>(_0xa9abb1[_0x2d235b(0x24a)]=_0x2d235b(0x1ee),_0xa9abb1['IDLE']='idle',_0xa9abb1['FOLLOWING']=_0x2d235b(0x256),_0xa9abb1[_0x2d235b(0x25b)]=_0x2d235b(0x1b7),_0xa9abb1[_0x2d235b(0x226)]='presenting',_0xa9abb1))(h||{});const W=_0x2d235b(0x1b3),G=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x392581,_0x2add67,_0x5a6230,_0x7529ac,_0x13203d){var _0x2b5952=_0x2d235b;super(),v(this,'_status$',new w[(_0x2b5952(0x1d4))]('idle')),v(this,_0x2b5952(0x1f5),this[_0x2b5952(0x1ab)][_0x2b5952(0x21f)]()),v(this,_0x2b5952(0x1e2),!0x1),v(this,_0x2b5952(0x25f),null),v(this,_0x2b5952(0x1a5),null),(this['_unitID']=_0x392581,this[_0x2b5952(0x1c8)]=_0x2add67,this[_0x2b5952(0x268)]=_0x5a6230,this['_liveShareService']=_0x7529ac,this[_0x2b5952(0x1fc)]=_0x13203d);}get[_0x2d235b(0x209)](){var _0xf77bbd=_0x2d235b;return this['_status$'][_0xf77bbd(0x23c)]();}[_0x2d235b(0x250)](){var _0x1f849b=_0x2d235b,_0x24b150;(_0x24b150=this[_0x1f849b(0x25f)])==null||_0x24b150[_0x1f849b(0x250)](),this[_0x1f849b(0x1ab)][_0x1f849b(0x208)]('idle'),this['_status$'][_0x1f849b(0x262)]();}[_0x2d235b(0x212)](){var _0x3547fc=_0x2d235b;this['_init']||(this[_0x3547fc(0x1e2)]=!0x0,this['_collabSession'][_0x3547fc(0x267)][_0x3547fc(0x1c2)](b['takeUntil'](this[_0x3547fc(0x1ec)]))['subscribe'](_0x3e3b09=>{var _0x1b26d0=_0x3547fc;switch(_0x3e3b09){case m[_0x1b26d0(0x1b5)]['OFFLINE']:this[_0x1b26d0(0x24b)]();break;case m[_0x1b26d0(0x1b5)][_0x1b26d0(0x214)]:this['_handleOnline']();break;}}),this[_0x3547fc(0x1c8)][_0x3547fc(0x238)]['pipe'](b[_0x3547fc(0x1d0)](this[_0x3547fc(0x1ec)]))[_0x3547fc(0x193)](_0x54d7a1=>{var _0x3214be=_0x3547fc;const {eventID:_0x1a575b}=_0x54d7a1;switch(_0x1a575b){case _[_0x3214be(0x1ef)][_0x3214be(0x251)]:this[_0x3214be(0x1ce)](_0x54d7a1);break;case _[_0x3214be(0x1ef)][_0x3214be(0x24f)]:this[_0x3214be(0x273)](_0x54d7a1);break;case _['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x3214be(0x1d2)]();break;case _[_0x3214be(0x1ef)][_0x3214be(0x26c)]:this[_0x3214be(0x222)](_0x54d7a1);break;}}));}['tryStartPresenting'](){var _0x250c3d=_0x2d235b;this[_0x250c3d(0x1c8)][_0x250c3d(0x1a3)]({'eventID':_[_0x250c3d(0x1ef)][_0x250c3d(0x1af)],'data':{'unitID':this[_0x250c3d(0x217)],'userID':this[_0x250c3d(0x1c8)][_0x250c3d(0x1a8)]()}},this[_0x250c3d(0x217)]);}[_0x2d235b(0x1be)](){var _0x33f7bb=_0x2d235b;this['_status']===_0x33f7bb(0x1cf)&&(this[_0x33f7bb(0x1ab)]['next'](_0x33f7bb(0x191)),this['_collabSession'][_0x33f7bb(0x1a3)]({'eventID':_[_0x33f7bb(0x1ef)][_0x33f7bb(0x1dd)],'data':{'unitID':this[_0x33f7bb(0x217)]}},this[_0x33f7bb(0x217)]));}[_0x2d235b(0x1f8)](){var _0x2ae326=_0x2d235b;this['_status']===_0x2ae326(0x1b7)&&(this[_0x2ae326(0x1ab)][_0x2ae326(0x208)](_0x2ae326(0x256)),this[_0x2ae326(0x1eb)]());}['stopFollowing'](){var _0x1b33ba=_0x2d235b;this[_0x1b33ba(0x209)]===_0x1b33ba(0x256)&&this[_0x1b33ba(0x21e)]();}[_0x2d235b(0x1ce)](_0x3ce790){var _0x4d656d=_0x2d235b;const {presenter:_0xdace3c}=_0x3ce790[_0x4d656d(0x1c3)],_0x9088b0=this['_collabSession']['getMemberID']();this[_0x4d656d(0x1a5)]=_0xdace3c,_0xdace3c===_0x9088b0?(this[_0x4d656d(0x21e)](),this[_0x4d656d(0x1f7)]()):this[_0x4d656d(0x209)]!=='not-following'&&(this['_stopPresenting'](),this[_0x4d656d(0x1eb)]());}[_0x2d235b(0x247)](){var _0x51efff=_0x2d235b;const _0x144aba={'eventID':_[_0x51efff(0x1ef)][_0x51efff(0x1fa)]};this[_0x51efff(0x1c8)][_0x51efff(0x1a3)](_0x144aba,this[_0x51efff(0x217)]);}[_0x2d235b(0x1d2)](){var _0x3894e4=_0x2d235b;this[_0x3894e4(0x1a5)]=null,this['_status']!==_0x3894e4(0x1cf)&&this[_0x3894e4(0x1fb)]();}[_0x2d235b(0x222)](_0x304c3e){var _0x3a29d7=_0x2d235b;if(this['_status']==='following'&&this[_0x3a29d7(0x1a5)]===_0x304c3e[_0x3a29d7(0x1c3)][_0x3a29d7(0x19c)]){const _0x2e21c8=_[_0x3a29d7(0x25a)](_0x304c3e[_0x3a29d7(0x1c3)])[_0x3a29d7(0x1f4)][_0x3a29d7(0x1ba)]()[_0x3a29d7(0x200)](_0x48ba06=>_0x48ba06['id']===C['InsertSheetMutation']['id']);if(_0x2e21c8){const _0x152dd1=_0x2e21c8[_0x3a29d7(0x23d)]['unitId'],_0x4d85d9=_0x2e21c8[_0x3a29d7(0x23d)][_0x3a29d7(0x21d)]['id'];setTimeout(()=>{var _0x8513c5=_0x3a29d7;this[_0x8513c5(0x1fc)][_0x8513c5(0x196)](C[_0x8513c5(0x1e5)]['id'],{'unitId':_0x152dd1,'subUnitId':_0x4d85d9},{'fromCollab':!0x0});});}}}[_0x2d235b(0x1f7)](){var _0x1add79=_0x2d235b;this[_0x1add79(0x1ab)][_0x1add79(0x208)](_0x1add79(0x1cf));const _0x3a25a7=new Map(),_0x1a7b1c=this[_0x1add79(0x25f)]=new o[(_0x1add79(0x23e))]();_0x1a7b1c['add'](o[_0x1add79(0x1d5)](()=>{var _0x5f4499=_0x1add79;_0x3a25a7[_0x5f4499(0x199)](_0x386039=>_0x386039[_0x5f4499(0x262)]()),_0x3a25a7['clear']();})),_0x1a7b1c[_0x1add79(0x1c6)](this[_0x1add79(0x1fc)][_0x1add79(0x1db)](_0x5ec3a4=>{var _0x5cfe73=_0x1add79,_0x25e842;if(_0x5ec3a4['type']!==o['CommandType']['OPERATION']||!this[_0x5cfe73(0x1d7)][_0x5cfe73(0x207)](_0x5ec3a4['id']))return;const {id:_0xba48a3}=_0x5ec3a4;let _0x1bb764;_0x3a25a7['has'](_0xba48a3)?_0x1bb764=_0x3a25a7[_0x5cfe73(0x269)](_0xba48a3):(_0x1bb764=new w[(_0x5cfe73(0x211))](),_0x3a25a7[_0x5cfe73(0x22e)](_0xba48a3,_0x1bb764),_0x1bb764['pipe'](b[_0x5cfe73(0x1cb)]((_0x25e842=this[_0x5cfe73(0x268)][_0x5cfe73(0x1b6)](W))!=null?_0x25e842:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5cfe73(0x193)](_0x14509d=>{var _0x169f95=_0x5cfe73;this[_0x169f95(0x1c8)][_0x169f95(0x1a3)]({'eventID':_[_0x169f95(0x1ef)][_0x169f95(0x24f)],'data':{'unitID':this[_0x169f95(0x217)],'operations':{[_0x14509d['id']]:{'id':_0x14509d['id'],'params':JSON[_0x169f95(0x1ad)](_0x14509d[_0x169f95(0x23d)])}}}},this[_0x169f95(0x217)]);})),_0x1bb764[_0x5cfe73(0x208)](_0x5ec3a4);})),this[_0x1add79(0x1d7)][_0x1add79(0x26a)](this[_0x1add79(0x217)])[_0x1add79(0x199)](_0x1bfadf=>this[_0x1add79(0x1c8)][_0x1add79(0x1a3)]({'eventID':_[_0x1add79(0x1ef)][_0x1add79(0x24f)],'data':{'unitID':this[_0x1add79(0x217)],'operations':{[_0x1bfadf['id']]:{'id':_0x1bfadf['id'],'params':JSON['stringify'](_0x1bfadf['params'])}}}},this[_0x1add79(0x217)]));}[_0x2d235b(0x1e6)](){var _0xbc5474=_0x2d235b,_0xa81e56;this[_0xbc5474(0x1ab)][_0xbc5474(0x208)]('idle'),(_0xa81e56=this[_0xbc5474(0x25f)])==null||_0xa81e56[_0xbc5474(0x250)](),this[_0xbc5474(0x25f)]=null;}[_0x2d235b(0x1eb)](){var _0x550a15=_0x2d235b,_0x3296c3;(_0x3296c3=this[_0x550a15(0x25f)])==null||_0x3296c3[_0x550a15(0x250)](),this[_0x550a15(0x1ab)][_0x550a15(0x208)](_0x550a15(0x256));}[_0x2d235b(0x1fb)](){var _0x2a7e32=_0x2d235b,_0x18d143;this['_status$'][_0x2a7e32(0x208)](_0x2a7e32(0x191)),(_0x18d143=this[_0x2a7e32(0x25f)])==null||_0x18d143[_0x2a7e32(0x250)](),this[_0x2a7e32(0x25f)]=null;}[_0x2d235b(0x21e)](){var _0x5add60=_0x2d235b,_0x36c567;this['_status$'][_0x5add60(0x208)](_0x5add60(0x1b7)),(_0x36c567=this[_0x5add60(0x25f)])==null||_0x36c567[_0x5add60(0x250)]();}[_0x2d235b(0x273)](_0x253cee){var _0x15edfc=_0x2d235b;if(['presenting',_0x15edfc(0x1b7),_0x15edfc(0x1ee)]['includes'](this[_0x15edfc(0x209)])||!_0x253cee[_0x15edfc(0x1c3)][_0x15edfc(0x1df)]||_0x253cee[_0x15edfc(0x1c3)]['presenter']===this[_0x15edfc(0x1c8)][_0x15edfc(0x1a8)]())return;this['_status']===_0x15edfc(0x191)&&this[_0x15edfc(0x1eb)]();const _0x11686a=_0x253cee[_0x15edfc(0x1c3)][_0x15edfc(0x1ca)];Object['values'](_0x11686a)[_0x15edfc(0x199)](_0x1b9aeb=>{var _0x5e4b4f=_0x15edfc;this['_commandService'][_0x5e4b4f(0x196)](_0x1b9aeb['id'],_0x1b9aeb[_0x5e4b4f(0x23d)]?JSON[_0x5e4b4f(0x1b1)](_0x1b9aeb[_0x5e4b4f(0x23d)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x58eeaa=_0x2d235b,_0x3b44d5;this[_0x58eeaa(0x1ab)][_0x58eeaa(0x208)]('offline'),(_0x3b44d5=this[_0x58eeaa(0x25f)])==null||_0x3b44d5['dispose']();}[_0x2d235b(0x1b4)](){var _0x40442f=_0x2d235b;this[_0x40442f(0x1ab)][_0x40442f(0x208)](_0x40442f(0x191)),this[_0x40442f(0x247)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x2d235b(0x221)]),S(0x3,o[_0x2d235b(0x236)](O)),S(0x4,o[_0x2d235b(0x254)])],exports[_0x2d235b(0x260)]);function A(){var _0x19b59a=_0x2d235b;const _0x580b4a=p['useDependency'](exports[_0x19b59a(0x252)]),_0xd450a4=p['useDependency'](o[_0x19b59a(0x243)]),_0x4505e5=p[_0x19b59a(0x26f)](()=>_0xd450a4[_0x19b59a(0x1e8)](o['UniverInstanceType'][_0x19b59a(0x237)]),void 0x0,!0x1,[]),[_0x414180,_0x7f2ff2]=f['useState'](null),[_0x33c75b,_0x6d413c]=f[_0x19b59a(0x1a4)](h[_0x19b59a(0x24c)]),_0x1b5b44=f[_0x19b59a(0x1e3)](null);return f[_0x19b59a(0x21b)](()=>(_0x4505e5&&_0x580b4a[_0x19b59a(0x231)](_0x4505e5[_0x19b59a(0x1da)]())[_0x19b59a(0x20d)](_0x487bc5=>{var _0x50eb95=_0x19b59a;_0x7f2ff2(_0x487bc5),_0x1b5b44[_0x50eb95(0x1c4)]=_0x487bc5[_0x50eb95(0x1f5)][_0x50eb95(0x193)](_0x1dbfac=>{_0x6d413c(_0x1dbfac);});}),()=>{var _0x2e252b=_0x19b59a,_0x5ce363;(_0x5ce363=_0x1b5b44['current'])==null||_0x5ce363[_0x2e252b(0x202)](),_0x1b5b44[_0x2e252b(0x1c4)]=null;}),[_0x4505e5,_0x580b4a]),_0x414180?l[_0x19b59a(0x240)](g[_0x19b59a(0x201)],{'align':_0x19b59a(0x190),'disabled':_0x33c75b===h[_0x19b59a(0x24a)],'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[_0x19b59a(0x240)](B,{'status':_0x33c75b,'coordinator':_0x414180}),'children':l['jsx'](_0x19b59a(0x233),{'className':g[_0x19b59a(0x244)](_0x19b59a(0x1c9),{'univer-cursor-not-allowed':_0x33c75b===h[_0x19b59a(0x24a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x33c75b!==h[_0x19b59a(0x24a)]}),'type':_0x19b59a(0x233),'children':l[_0x19b59a(0x240)](P,{'className':_0x19b59a(0x213)})})}):null;}function B(_0x34f266){var _0x32e450=_0x2d235b;const {status:_0x1e69c8,coordinator:_0x37dd25}=_0x34f266;switch(_0x1e69c8){case h['IDLE']:return l[_0x32e450(0x240)](Y,{'coordinator':_0x37dd25});case h[_0x32e450(0x1d1)]:return l[_0x32e450(0x240)](Z,{'coordinator':_0x37dd25});case h[_0x32e450(0x25b)]:return l[_0x32e450(0x240)](J,{'coordinator':_0x37dd25});case h['OFFLINE']:return l['jsx'](z,{});case h[_0x32e450(0x226)]:return l[_0x32e450(0x240)](K,{'coordinator':_0x37dd25});default:return null;}}function Y(_0x21c7b6){var _0x493283=_0x2d235b;const {coordinator:_0x100be9}=_0x21c7b6;return l[_0x493283(0x21c)](l['Fragment'],{'children':[l[_0x493283(0x240)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x493283(0x232)}),l[_0x493283(0x240)](g['Button'],{'onClick':()=>_0x100be9[_0x493283(0x19b)](),'children':_0x493283(0x19f)})]});}function Z(_0xe97bdc){var _0x2706e3=_0x2d235b;const {coordinator:_0x23f8aa}=_0xe97bdc;return l[_0x2706e3(0x21c)](l[_0x2706e3(0x1f1)],{'children':[l[_0x2706e3(0x240)](_0x2706e3(0x1f2),{'className':_0x2706e3(0x19d),'children':_0x2706e3(0x203)}),l[_0x2706e3(0x240)](g['Button'],{'onClick':()=>_0x23f8aa[_0x2706e3(0x265)](),'children':_0x2706e3(0x1f9)})]});}function J(_0x2e29cf){var _0x3ee6ff=_0x2d235b;const {coordinator:_0x26039d}=_0x2e29cf;return l[_0x3ee6ff(0x21c)](l[_0x3ee6ff(0x1f1)],{'children':[l[_0x3ee6ff(0x240)](_0x3ee6ff(0x1f2),{'className':_0x3ee6ff(0x19d),'children':_0x3ee6ff(0x242)}),l[_0x3ee6ff(0x240)](g[_0x3ee6ff(0x22c)],{'variant':_0x3ee6ff(0x19e),'onClick':()=>_0x26039d[_0x3ee6ff(0x1f8)](),'children':_0x3ee6ff(0x263)})]});}function K(_0x26c90d){var _0x3c0860=_0x2d235b;const {coordinator:_0x478900}=_0x26c90d;return l['jsxs'](l[_0x3c0860(0x1f1)],{'children':[l[_0x3c0860(0x240)]('div',{'className':_0x3c0860(0x19d),'children':_0x3c0860(0x246)}),l[_0x3c0860(0x240)](g[_0x3c0860(0x22c)],{'variant':_0x3c0860(0x24d),'onClick':()=>_0x478900[_0x3c0860(0x1be)](),'children':_0x3c0860(0x261)})]});}function z(){var _0x58834b=_0x2d235b;return l['jsx'](l['Fragment'],{'children':_0x58834b(0x23a)});}var Q=Object['getOwnPropertyDescriptor'],X=(_0x44a0a9,_0x293216,_0x5a12e9,_0x3969f2)=>{for(var _0x29f93e=_0x3969f2>0x1?void 0x0:_0x3969f2?Q(_0x293216,_0x5a12e9):_0x293216,_0x5c1325=_0x44a0a9['length']-0x1,_0xac0858;_0x5c1325>=0x0;_0x5c1325--)(_0xac0858=_0x44a0a9[_0x5c1325])&&(_0x29f93e=_0xac0858(_0x29f93e)||_0x29f93e);return _0x29f93e;},x=(_0x301f0b,_0x2162c1)=>(_0x3924a1,_0x540b5d)=>_0x2162c1(_0x3924a1,_0x540b5d,_0x301f0b);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x2594c2,_0x524429){var _0x57fe98=_0x2d235b;super(),this[_0x57fe98(0x1a2)]=_0x2594c2,this[_0x57fe98(0x1cd)]=_0x524429,this[_0x57fe98(0x220)]();}['_mountLiveShare'](){var _0x3c5746=_0x2d235b;this['disposeWithMe'](this[_0x3c5746(0x1cd)][_0x3c5746(0x20e)](p[_0x3c5746(0x1f6)]['HEADER_MENU'],()=>p['connectInjector'](A,this[_0x3c5746(0x1a2)])));}},exports[_0x2d235b(0x215)]=X([x(0x0,o[_0x2d235b(0x236)](o['Injector'])),x(0x1,p[_0x2d235b(0x1b2)])],exports[_0x2d235b(0x215)]);const ee=_0x2d235b(0x229),L={};var te=Object[_0x2d235b(0x20b)],ie=(_0x33e517,_0x15753b,_0x49a114,_0x515825)=>{var _0x227476=_0x2d235b;for(var _0x2678f6=_0x515825>0x1?void 0x0:_0x515825?te(_0x15753b,_0x49a114):_0x15753b,_0x5d4d0e=_0x33e517[_0x227476(0x1e0)]-0x1,_0x207eef;_0x5d4d0e>=0x0;_0x5d4d0e--)(_0x207eef=_0x33e517[_0x5d4d0e])&&(_0x2678f6=_0x207eef(_0x2678f6)||_0x2678f6);return _0x2678f6;},ne=(_0x12a39b,_0x2c7f0c)=>(_0x13cf45,_0x5b61f4)=>_0x2c7f0c(_0x13cf45,_0x5b61f4,_0x12a39b);let E=class extends o['Disposable']{constructor(_0x1f2a0f){var _0x514b4b=_0x2d235b;super(),this[_0x514b4b(0x1d7)]=_0x1f2a0f,this[_0x514b4b(0x1e2)]();}[_0x2d235b(0x1e2)](){var _0xa06365=_0x2d235b;[D[_0xa06365(0x228)]['id'],D[_0xa06365(0x19a)]['id'],C[_0xa06365(0x1e5)]['id']][_0xa06365(0x199)](_0x3739c0=>{var _0x121ace=_0xa06365;this[_0x121ace(0x225)](this[_0x121ace(0x1d7)][_0x121ace(0x195)](_0x3739c0));});}};E=ie([ne(0x0,o[_0x2d235b(0x236)](O))],E);var re=Object[_0x2d235b(0x18f)],se=Object[_0x2d235b(0x20b)],oe=(_0x155c11,_0x3ba15e,_0x374d35)=>_0x3ba15e in _0x155c11?re(_0x155c11,_0x3ba15e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x374d35}):_0x155c11[_0x3ba15e]=_0x374d35,ae=(_0x4717bb,_0x4a5165,_0x4d3ecd,_0x4541a0)=>{var _0x41dde9=_0x2d235b;for(var _0xc54237=_0x4541a0>0x1?void 0x0:_0x4541a0?se(_0x4a5165,_0x4d3ecd):_0x4a5165,_0x4e2a4d=_0x4717bb[_0x41dde9(0x1e0)]-0x1,_0x5b05f9;_0x4e2a4d>=0x0;_0x4e2a4d--)(_0x5b05f9=_0x4717bb[_0x4e2a4d])&&(_0xc54237=_0x5b05f9(_0xc54237)||_0xc54237);return _0xc54237;},N=(_0x3bc4cd,_0x407b1a)=>(_0x460c71,_0x5a9237)=>_0x407b1a(_0x460c71,_0x5a9237,_0x3bc4cd),T=(_0x48ca81,_0x4ed612,_0x1016f1)=>oe(_0x48ca81,typeof _0x4ed612!=_0x2d235b(0x1ff)?_0x4ed612+'':_0x4ed612,_0x1016f1);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x2d235b(0x1ac)]=class extends o['Plugin']{constructor(_0x570788=L,_0x42335a,_0x132db0){var _0x390151=_0x2d235b;super(),this['_config']=_0x570788,this[_0x390151(0x1a2)]=_0x42335a,this[_0x390151(0x268)]=_0x132db0;const {..._0x24b497}=o[_0x390151(0x216)]({},L,this[_0x390151(0x22d)]);this[_0x390151(0x268)][_0x390151(0x264)](ee,_0x24b497);}[_0x2d235b(0x22a)](){var _0x47c4fc=_0x2d235b;o[_0x47c4fc(0x227)](this[_0x47c4fc(0x1a2)],o[_0x47c4fc(0x1fe)]([[O],[exports['LiveShareController']],[E],[exports['DesktopLiveShareController']]],this[_0x47c4fc(0x22d)]['override'])),o['touchDependencies'](this['_injector'],[[E]]);}[_0x2d235b(0x22b)](){var _0x466b81=_0x2d235b;o[_0x466b81(0x1aa)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x2d235b(0x1ac)],_0x2d235b(0x23b),o[_0x2d235b(0x205)][_0x2d235b(0x1fd)]),T(exports[_0x2d235b(0x1ac)],_0x2d235b(0x1a9),le),exports[_0x2d235b(0x1ac)]=ae([o['DependentOn'](m[_0x2d235b(0x1bc)]),N(0x1,o['Inject'](o[_0x2d235b(0x258)])),N(0x2,o[_0x2d235b(0x221)])],exports[_0x2d235b(0x1ac)]),exports[_0x2d235b(0x1f0)]=A,exports[_0x2d235b(0x1a6)]=O,exports[_0x2d235b(0x219)]=h;
1
+ 'use strict';var _0x157e0f=_0x274f;(function(_0x13c07f,_0x973bde){var _0x189024=_0x274f,_0x17d1f5=_0x13c07f();while(!![]){try{var _0x53f233=-parseInt(_0x189024(0x212))/0x1+parseInt(_0x189024(0x1db))/0x2+parseInt(_0x189024(0x21e))/0x3+parseInt(_0x189024(0x1e2))/0x4*(-parseInt(_0x189024(0x263))/0x5)+-parseInt(_0x189024(0x197))/0x6*(-parseInt(_0x189024(0x25d))/0x7)+-parseInt(_0x189024(0x234))/0x8*(-parseInt(_0x189024(0x25a))/0x9)+-parseInt(_0x189024(0x203))/0xa*(-parseInt(_0x189024(0x1b7))/0xb);if(_0x53f233===_0x973bde)break;else _0x17d1f5['push'](_0x17d1f5['shift']());}catch(_0x5aee41){_0x17d1f5['push'](_0x17d1f5['shift']());}}}(_0x21a3,0xd2e87));var U=Object[_0x157e0f(0x265)],F=(_0x25fa1d,_0x2ec3a5,_0x19027a)=>_0x2ec3a5 in _0x25fa1d?U(_0x25fa1d,_0x2ec3a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19027a}):_0x25fa1d[_0x2ec3a5]=_0x19027a,v=(_0x269afb,_0x2e99a1,_0x2917a6)=>F(_0x269afb,typeof _0x2e99a1!='symbol'?_0x2e99a1+'':_0x2e99a1,_0x2917a6);Object[_0x157e0f(0x265)](exports,Symbol[_0x157e0f(0x1c1)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x1bee59=_0x157e0f;return u=Object[_0x1bee59(0x264)]||function(_0x594912){var _0x23c334=_0x1bee59;for(var _0x200e73,_0x204e7e=0x1,_0x47289f=arguments[_0x23c334(0x235)];_0x204e7e<_0x47289f;_0x204e7e++){_0x200e73=arguments[_0x204e7e];for(var _0x5bf632 in _0x200e73)Object[_0x23c334(0x252)][_0x23c334(0x239)][_0x23c334(0x22d)](_0x200e73,_0x5bf632)&&(_0x594912[_0x5bf632]=_0x200e73[_0x5bf632]);}return _0x594912;},u['apply'](this,arguments);},$=function(_0xc904a9,_0x17ad10){var _0x25d865=_0x157e0f,_0x112c2b={};for(var _0x1a67a2 in _0xc904a9)Object[_0x25d865(0x252)][_0x25d865(0x239)]['call'](_0xc904a9,_0x1a67a2)&&_0x17ad10['indexOf'](_0x1a67a2)<0x0&&(_0x112c2b[_0x1a67a2]=_0xc904a9[_0x1a67a2]);if(_0xc904a9!=null&&typeof Object[_0x25d865(0x1e4)]==_0x25d865(0x216)){for(var _0x890f30=0x0,_0x1a67a2=Object[_0x25d865(0x1e4)](_0xc904a9);_0x890f30<_0x1a67a2[_0x25d865(0x235)];_0x890f30++)_0x17ad10[_0x25d865(0x1a9)](_0x1a67a2[_0x890f30])<0x0&&Object[_0x25d865(0x252)][_0x25d865(0x1d4)][_0x25d865(0x22d)](_0xc904a9,_0x1a67a2[_0x890f30])&&(_0x112c2b[_0x1a67a2[_0x890f30]]=_0xc904a9[_0x1a67a2[_0x890f30]]);}return _0x112c2b;},j=f[_0x157e0f(0x1bb)](function(_0x2dc90d,_0x16718b){var _0x1d65b0=_0x157e0f,_0x1a8416=_0x2dc90d[_0x1d65b0(0x1fc)],_0x3c6744=_0x2dc90d['id'],_0x37f93b=_0x2dc90d[_0x1d65b0(0x204)],_0x34f414=_0x2dc90d[_0x1d65b0(0x19e)],_0x5e35ef=$(_0x2dc90d,['icon','id','className',_0x1d65b0(0x19e)]),_0x558d93=_0x1d65b0(0x22c)[_0x1d65b0(0x245)](_0x3c6744,'\x20')['concat'](_0x37f93b||'')[_0x1d65b0(0x242)](),_0x4f87cc=f['useRef']('_'[_0x1d65b0(0x245)](k()));return y(_0x1a8416,''[_0x1d65b0(0x245)](_0x3c6744),{'defIds':_0x1a8416[_0x1d65b0(0x1e8)],'idSuffix':_0x4f87cc['current']},u({'ref':_0x16718b,'className':_0x558d93},_0x5e35ef),_0x34f414);});function y(_0x1a53be,_0x59579c,_0x4a52f8,_0x2642ec,_0x382d2c){var _0x4afb71=_0x157e0f;return f[_0x4afb71(0x1e7)](_0x1a53be['tag'],u(u({'key':_0x59579c},H(_0x1a53be,_0x4a52f8,_0x382d2c)),_0x2642ec),(V(_0x1a53be,_0x4a52f8)[_0x4afb71(0x198)]||[])['map'](function(_0x4c473a,_0x402310){var _0x8bf2a5=_0x4afb71;return y(_0x4c473a,''[_0x8bf2a5(0x245)](_0x59579c,'-')['concat'](_0x1a53be['tag'],'-')[_0x8bf2a5(0x245)](_0x402310),_0x4a52f8,void 0x0,_0x382d2c);}));}function H(_0x119ebb,_0x104946,_0x3b762b){var _0x168c17=_0x157e0f,_0x55e1d4=u({},_0x119ebb[_0x168c17(0x1d0)]);_0x3b762b!=null&&_0x3b762b[_0x168c17(0x224)]&&_0x55e1d4['fill']==='colorChannel1'&&(_0x55e1d4[_0x168c17(0x1a1)]=_0x3b762b[_0x168c17(0x224)]),_0x119ebb[_0x168c17(0x222)]===_0x168c17(0x1e3)&&_0x55e1d4['id']&&(_0x55e1d4['id']=_0x55e1d4['id']+_0x104946[_0x168c17(0x1ff)]),Object[_0x168c17(0x22e)](_0x55e1d4)[_0x168c17(0x1da)](function(_0x2f3435){var _0x312f3e=_0x168c17,_0xc918f8=_0x2f3435[0x0],_0x1a539b=_0x2f3435[0x1];_0xc918f8==='mask'&&typeof _0x1a539b==_0x312f3e(0x1fe)&&(_0x55e1d4[_0xc918f8]=_0x1a539b[_0x312f3e(0x26a)](/url\(#(.*)\)/,_0x312f3e(0x255)[_0x312f3e(0x245)](_0x104946[_0x312f3e(0x1ff)],')')));});var _0xdcd5cc=_0x104946[_0x168c17(0x1e8)];return!_0xdcd5cc||_0xdcd5cc[_0x168c17(0x235)]===0x0||(_0x119ebb[_0x168c17(0x222)]==='use'&&_0x55e1d4[_0x168c17(0x19f)]&&(_0x55e1d4['xlink:href']=_0x55e1d4[_0x168c17(0x19f)]+_0x104946['idSuffix']),Object['entries'](_0x55e1d4)[_0x168c17(0x1da)](function(_0x4b62d9){var _0x56322d=_0x168c17,_0xf9e97=_0x4b62d9[0x0],_0x15b1e9=_0x4b62d9[0x1];typeof _0x15b1e9==_0x56322d(0x1fe)&&(_0x55e1d4[_0xf9e97]=_0x15b1e9[_0x56322d(0x26a)](/url\(#(.*)\)/,_0x56322d(0x255)[_0x56322d(0x245)](_0x104946['idSuffix'],')')));})),_0x55e1d4;}function V(_0x3e3e1b,_0x2e37c0){var _0xf9551e=_0x157e0f,_0x79e44f,_0x571125=_0x2e37c0[_0xf9551e(0x1e8)];return!_0x571125||_0x571125[_0xf9551e(0x235)]===0x0?_0x3e3e1b:_0x3e3e1b[_0xf9551e(0x222)]===_0xf9551e(0x25e)&&(!((_0x79e44f=_0x3e3e1b[_0xf9551e(0x198)])===null||_0x79e44f===void 0x0)&&_0x79e44f[_0xf9551e(0x235)])?u(u({},_0x3e3e1b),{'children':_0x3e3e1b[_0xf9551e(0x198)][_0xf9551e(0x25c)](function(_0x54be61){var _0x3b8d4f=_0xf9551e;return typeof _0x54be61[_0x3b8d4f(0x1d0)]['id']==_0x3b8d4f(0x1fe)&&_0x571125&&_0x571125[_0x3b8d4f(0x19a)](_0x54be61[_0x3b8d4f(0x1d0)]['id'])?u(u({},_0x54be61),{'attrs':u(u({},_0x54be61['attrs']),{'id':_0x54be61[_0x3b8d4f(0x1d0)]['id']+_0x2e37c0['idSuffix']})}):_0x54be61;})}):_0x3e3e1b;}function k(){var _0x28e798=_0x157e0f;return Math[_0x28e798(0x274)]()[_0x28e798(0x256)](0x24)['substring'](0x2,0x8);}j[_0x157e0f(0x20e)]=_0x157e0f(0x1b2);var M={'tag':_0x157e0f(0x1a5),'attrs':{'xmlns':_0x157e0f(0x22f),'fill':_0x157e0f(0x1f9),'viewBox':_0x157e0f(0x266),'width':_0x157e0f(0x1a8),'height':_0x157e0f(0x1a8)},'children':[{'tag':_0x157e0f(0x1af),'attrs':{'fill':_0x157e0f(0x1e0),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x157e0f(0x1af),'attrs':{'fill':_0x157e0f(0x1e0),'d':_0x157e0f(0x26c),'fillRule':_0x157e0f(0x1df),'clipRule':_0x157e0f(0x1df)}}]},P=f[_0x157e0f(0x1bb)](function(_0x3a31fa,_0x4775e2){var _0x280586=_0x157e0f;return f[_0x280586(0x1e7)](j,Object[_0x280586(0x264)]({},_0x3a31fa,{'id':_0x280586(0x1b6),'ref':_0x4775e2,'icon':M}));});P[_0x157e0f(0x20e)]=_0x157e0f(0x275);class O extends o['Disposable']{constructor(){var _0xf5c2e3=_0x157e0f;super(...arguments),v(this,_0xf5c2e3(0x1e5),new Set()),v(this,_0xf5c2e3(0x244),new Set());}[_0x157e0f(0x217)](_0x4aca38){var _0x25e4b9=_0x157e0f;return this[_0x25e4b9(0x1e5)][_0x25e4b9(0x240)](_0x4aca38),o['toDisposable'](()=>this[_0x25e4b9(0x1e5)]['delete'](_0x4aca38));}[_0x157e0f(0x20d)](_0x59bc68){var _0x4e353c=_0x157e0f;return this[_0x4e353c(0x244)][_0x4e353c(0x240)](_0x59bc68),o[_0x4e353c(0x1b5)](()=>this[_0x4e353c(0x244)]['delete'](_0x59bc68));}[_0x157e0f(0x20b)](_0x102c07){return this['_sharedOperations']['has'](_0x102c07);}[_0x157e0f(0x1f0)](_0x35e1f0){var _0x4cf983=_0x157e0f;return Array[_0x4cf983(0x233)](this[_0x4cf983(0x244)])[_0x4cf983(0x25c)](_0x3f40f7=>_0x3f40f7(_0x35e1f0));}}var q=Object[_0x157e0f(0x26b)],R=(_0x32f4c3,_0x543cbf,_0x5ee8f1,_0x4434d1)=>{var _0x3b0215=_0x157e0f;for(var _0x2aca1a=_0x4434d1>0x1?void 0x0:_0x4434d1?q(_0x543cbf,_0x5ee8f1):_0x543cbf,_0x3f6280=_0x32f4c3[_0x3b0215(0x235)]-0x1,_0x3b00aa;_0x3f6280>=0x0;_0x3f6280--)(_0x3b00aa=_0x32f4c3[_0x3f6280])&&(_0x2aca1a=_0x3b00aa(_0x2aca1a)||_0x2aca1a);return _0x2aca1a;},S=(_0x38f2af,_0x27d06c)=>(_0x26d96e,_0x44554c)=>_0x27d06c(_0x26d96e,_0x44554c,_0x38f2af);exports['LiveShareController']=class extends o[_0x157e0f(0x1cd)]{constructor(_0x1c18a0,_0x439597,_0x11b5be){var _0x3a7b1f=_0x157e0f;super(),v(this,_0x3a7b1f(0x215),new Map()),(this[_0x3a7b1f(0x248)]=_0x1c18a0,this['_injector']=_0x439597,this['_collabSessionService']=_0x11b5be,this['_init']());}async[_0x157e0f(0x1d1)](_0x5a334e){var _0xb0f359=_0x157e0f;return this[_0xb0f359(0x215)][_0xb0f359(0x20f)](_0x5a334e)||await this[_0xb0f359(0x238)](_0x5a334e),this[_0xb0f359(0x215)][_0xb0f359(0x24a)](_0x5a334e);}[_0x157e0f(0x1a7)](){var _0x14f12a=_0x157e0f;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x14f12a(0x1f7)][_0x14f12a(0x273)])[_0x14f12a(0x1b8)](b[_0x14f12a(0x26f)](this['dispose$']))['subscribe'](async _0x1c14d5=>{var _0x34ced6=_0x14f12a;const _0x454c79=_0x1c14d5[_0x34ced6(0x1ae)]();this[_0x34ced6(0x215)][_0x34ced6(0x20f)](_0x454c79)||this[_0x34ced6(0x238)](_0x454c79);}),this[_0x14f12a(0x248)][_0x14f12a(0x258)](o[_0x14f12a(0x1f7)][_0x14f12a(0x273)])[_0x14f12a(0x1b8)](b[_0x14f12a(0x26f)](this[_0x14f12a(0x21b)]))['subscribe'](_0x48c252=>{var _0x1121fc=_0x14f12a;const _0xb3afd8=_0x48c252[_0x1121fc(0x1ae)](),_0xb9023e=this[_0x1121fc(0x215)][_0x1121fc(0x24a)](_0xb3afd8);_0xb9023e==null||_0xb9023e[_0x1121fc(0x1d8)]();});}async[_0x157e0f(0x238)](_0x4d3f5c){var _0x30f2e8=_0x157e0f;const _0x5a281c=await this[_0x30f2e8(0x247)][_0x30f2e8(0x230)](_0x4d3f5c),_0x415192=this[_0x30f2e8(0x231)][_0x30f2e8(0x24d)](exports['LiveShareCoordinator'],_0x4d3f5c,_0x5a281c);return _0x415192['init'](),this[_0x30f2e8(0x215)]['set'](_0x4d3f5c,_0x415192),_0x415192;}},exports[_0x157e0f(0x201)]=R([S(0x0,o[_0x157e0f(0x1bc)]),S(0x1,o[_0x157e0f(0x1a3)](o[_0x157e0f(0x1bf)])),S(0x2,o[_0x157e0f(0x1a3)](m['CollaborationSessionService']))],exports[_0x157e0f(0x201)]);var h=(_0x3e6ea8=>(_0x3e6ea8[_0x157e0f(0x226)]=_0x157e0f(0x268),_0x3e6ea8[_0x157e0f(0x20c)]=_0x157e0f(0x1ad),_0x3e6ea8[_0x157e0f(0x246)]=_0x157e0f(0x1ea),_0x3e6ea8[_0x157e0f(0x1d7)]='not-following',_0x3e6ea8[_0x157e0f(0x1c4)]=_0x157e0f(0x262),_0x3e6ea8))(h||{});const W='SAME_OPERATION_SHARE_INTERVAL',G=0xc8;exports[_0x157e0f(0x1dd)]=class extends o[_0x157e0f(0x1cd)]{constructor(_0xd688b5,_0x38abae,_0x19117e,_0x31ea0c,_0x1c151a){var _0x3a8090=_0x157e0f;super(),v(this,_0x3a8090(0x24b),new w[(_0x3a8090(0x26d))]('idle')),v(this,'status$',this[_0x3a8090(0x24b)][_0x3a8090(0x1f5)]()),v(this,_0x3a8090(0x1a7),!0x1),v(this,_0x3a8090(0x218),null),v(this,_0x3a8090(0x1de),null),(this[_0x3a8090(0x1c7)]=_0xd688b5,this[_0x3a8090(0x1fd)]=_0x38abae,this[_0x3a8090(0x1b0)]=_0x19117e,this[_0x3a8090(0x1cb)]=_0x31ea0c,this['_commandService']=_0x1c151a);}get[_0x157e0f(0x270)](){var _0x3516ae=_0x157e0f;return this[_0x3516ae(0x24b)][_0x3516ae(0x1bd)]();}['dispose'](){var _0xe8aafc=_0x157e0f,_0x33609f;(_0x33609f=this[_0xe8aafc(0x218)])==null||_0x33609f[_0xe8aafc(0x1d8)](),this['_status$']['next']('idle'),this[_0xe8aafc(0x24b)][_0xe8aafc(0x1e6)]();}[_0x157e0f(0x19d)](){var _0x57ed1f=_0x157e0f;this[_0x57ed1f(0x1a7)]||(this['_init']=!0x0,this[_0x57ed1f(0x1fd)]['sessionStatus$']['pipe'](b[_0x57ed1f(0x26f)](this[_0x57ed1f(0x21b)]))['subscribe'](_0x352068=>{var _0x54dea4=_0x57ed1f;switch(_0x352068){case m[_0x54dea4(0x20a)][_0x54dea4(0x226)]:this['_handleOffline']();break;case m['SessionStatus'][_0x54dea4(0x1ca)]:this[_0x54dea4(0x1ab)]();break;}}),this[_0x57ed1f(0x1fd)][_0x57ed1f(0x229)][_0x57ed1f(0x1b8)](b[_0x57ed1f(0x26f)](this[_0x57ed1f(0x21b)]))[_0x57ed1f(0x1a2)](_0x3ba5d4=>{var _0x5aa3a3=_0x57ed1f;const {eventID:_0x2722d0}=_0x3ba5d4;switch(_0x2722d0){case _[_0x5aa3a3(0x1b9)]['LIVESHARE_NEW_HOST']:this[_0x5aa3a3(0x1e9)](_0x3ba5d4);break;case _['CollaborationEvent'][_0x5aa3a3(0x253)]:this[_0x5aa3a3(0x23a)](_0x3ba5d4);break;case _[_0x5aa3a3(0x1b9)][_0x5aa3a3(0x25b)]:this[_0x5aa3a3(0x1d2)]();break;case _[_0x5aa3a3(0x1b9)][_0x5aa3a3(0x1ba)]:this[_0x5aa3a3(0x269)](_0x3ba5d4);break;}}));}['tryStartPresenting'](){var _0x3d28f6=_0x157e0f;this[_0x3d28f6(0x1fd)][_0x3d28f6(0x251)]({'eventID':_['CollaborationEvent'][_0x3d28f6(0x1ce)],'data':{'unitID':this[_0x3d28f6(0x1c7)],'userID':this['_collabSession'][_0x3d28f6(0x1aa)]()}},this[_0x3d28f6(0x1c7)]);}[_0x157e0f(0x207)](){var _0x31049b=_0x157e0f;this[_0x31049b(0x270)]===_0x31049b(0x262)&&(this[_0x31049b(0x24b)][_0x31049b(0x21c)](_0x31049b(0x1ad)),this[_0x31049b(0x1fd)]['send']({'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x31049b(0x1c7)]}},this['_unitID']));}['startFollowing'](){var _0x38bf90=_0x157e0f;this[_0x38bf90(0x270)]===_0x38bf90(0x1fa)&&(this[_0x38bf90(0x24b)][_0x38bf90(0x21c)](_0x38bf90(0x1ea)),this[_0x38bf90(0x1be)]());}['stopFollowing'](){var _0x92269b=_0x157e0f;this[_0x92269b(0x270)]===_0x92269b(0x1ea)&&this[_0x92269b(0x205)]();}[_0x157e0f(0x1e9)](_0x2ad48d){var _0x3f8f4d=_0x157e0f;const {presenter:_0x5006e6}=_0x2ad48d[_0x3f8f4d(0x23e)],_0x2d0a53=this['_collabSession'][_0x3f8f4d(0x1aa)]();this[_0x3f8f4d(0x1de)]=_0x5006e6,_0x5006e6===_0x2d0a53?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x3f8f4d(0x270)]!=='not-following'&&(this[_0x3f8f4d(0x1f2)](),this[_0x3f8f4d(0x1be)]());}[_0x157e0f(0x254)](){var _0x4867ea=_0x157e0f;const _0x381804={'eventID':_[_0x4867ea(0x1b9)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x4867ea(0x251)](_0x381804,this['_unitID']);}[_0x157e0f(0x1d2)](){var _0x31c7d1=_0x157e0f;this[_0x31c7d1(0x1de)]=null,this[_0x31c7d1(0x270)]!==_0x31c7d1(0x262)&&this[_0x31c7d1(0x1b4)]();}[_0x157e0f(0x269)](_0x24d707){var _0x834eca=_0x157e0f;if(this[_0x834eca(0x270)]===_0x834eca(0x1ea)&&this[_0x834eca(0x1de)]===_0x24d707[_0x834eca(0x23e)]['memberID']){const _0x15ffbe=_[_0x834eca(0x209)](_0x24d707[_0x834eca(0x23e)])[_0x834eca(0x220)][_0x834eca(0x1fb)]()[_0x834eca(0x210)](_0x66f9f5=>_0x66f9f5['id']===C[_0x834eca(0x1f3)]['id']);if(_0x15ffbe){const _0x221dc1=_0x15ffbe[_0x834eca(0x199)]['unitId'],_0x4c3db6=_0x15ffbe[_0x834eca(0x199)][_0x834eca(0x1f6)]['id'];setTimeout(()=>{var _0x47f474=_0x834eca;this['_commandService'][_0x47f474(0x261)](C[_0x47f474(0x1cf)]['id'],{'unitId':_0x221dc1,'subUnitId':_0x4c3db6},{'fromCollab':!0x0});});}}}[_0x157e0f(0x259)](){var _0x144a98=_0x157e0f;this[_0x144a98(0x24b)][_0x144a98(0x21c)](_0x144a98(0x262));const _0x4ba049=new Map(),_0x224170=this['_commandDisposable']=new o['DisposableCollection']();_0x224170[_0x144a98(0x240)](o[_0x144a98(0x1b5)](()=>{var _0x5e1510=_0x144a98;_0x4ba049[_0x5e1510(0x1da)](_0x208578=>_0x208578[_0x5e1510(0x1e6)]()),_0x4ba049[_0x5e1510(0x1ed)]();})),_0x224170[_0x144a98(0x240)](this['_commandService']['onCommandExecuted'](_0x4b0350=>{var _0x570716=_0x144a98,_0x331eea;if(_0x4b0350[_0x570716(0x19c)]!==o[_0x570716(0x219)][_0x570716(0x1d6)]||!this['_liveShareService'][_0x570716(0x20b)](_0x4b0350['id']))return;const {id:_0x159a8c}=_0x4b0350;let _0x46d28e;_0x4ba049['has'](_0x159a8c)?_0x46d28e=_0x4ba049['get'](_0x159a8c):(_0x46d28e=new w[(_0x570716(0x250))](),_0x4ba049[_0x570716(0x1eb)](_0x159a8c,_0x46d28e),_0x46d28e['pipe'](b[_0x570716(0x1e1)]((_0x331eea=this[_0x570716(0x1b0)][_0x570716(0x211)](W))!=null?_0x331eea:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x570716(0x1a2)](_0x59645c=>{var _0x5dea88=_0x570716;this[_0x5dea88(0x1fd)][_0x5dea88(0x251)]({'eventID':_[_0x5dea88(0x1b9)][_0x5dea88(0x253)],'data':{'unitID':this[_0x5dea88(0x1c7)],'operations':{[_0x59645c['id']]:{'id':_0x59645c['id'],'params':JSON[_0x5dea88(0x26e)](_0x59645c[_0x5dea88(0x199)])}}}},this[_0x5dea88(0x1c7)]);})),_0x46d28e[_0x570716(0x21c)](_0x4b0350);})),this[_0x144a98(0x1cb)][_0x144a98(0x1f0)](this['_unitID'])['forEach'](_0x42ccfc=>this[_0x144a98(0x1fd)][_0x144a98(0x251)]({'eventID':_[_0x144a98(0x1b9)][_0x144a98(0x253)],'data':{'unitID':this['_unitID'],'operations':{[_0x42ccfc['id']]:{'id':_0x42ccfc['id'],'params':JSON[_0x144a98(0x26e)](_0x42ccfc[_0x144a98(0x199)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x3390f3=_0x157e0f,_0x5c7bfe;this[_0x3390f3(0x24b)][_0x3390f3(0x21c)](_0x3390f3(0x1ad)),(_0x5c7bfe=this['_commandDisposable'])==null||_0x5c7bfe['dispose'](),this[_0x3390f3(0x218)]=null;}[_0x157e0f(0x1be)](){var _0x34eacb=_0x157e0f,_0x3df562;(_0x3df562=this[_0x34eacb(0x218)])==null||_0x3df562[_0x34eacb(0x1d8)](),this[_0x34eacb(0x24b)][_0x34eacb(0x21c)](_0x34eacb(0x1ea));}[_0x157e0f(0x1b4)](){var _0x11b0e5=_0x157e0f,_0x551be2;this[_0x11b0e5(0x24b)][_0x11b0e5(0x21c)](_0x11b0e5(0x1ad)),(_0x551be2=this[_0x11b0e5(0x218)])==null||_0x551be2[_0x11b0e5(0x1d8)](),this[_0x11b0e5(0x218)]=null;}['_stopFollowing'](){var _0x2f528e=_0x157e0f,_0x140cd9;this[_0x2f528e(0x24b)]['next']('not-following'),(_0x140cd9=this[_0x2f528e(0x218)])==null||_0x140cd9['dispose']();}[_0x157e0f(0x23a)](_0x203292){var _0x5ef75c=_0x157e0f;if([_0x5ef75c(0x262),_0x5ef75c(0x1fa),'offline'][_0x5ef75c(0x19a)](this[_0x5ef75c(0x270)])||!_0x203292[_0x5ef75c(0x23e)][_0x5ef75c(0x1c3)]||_0x203292[_0x5ef75c(0x23e)][_0x5ef75c(0x1c3)]===this[_0x5ef75c(0x1fd)][_0x5ef75c(0x1aa)]())return;this[_0x5ef75c(0x270)]===_0x5ef75c(0x1ad)&&this[_0x5ef75c(0x1be)]();const _0x36c881=_0x203292[_0x5ef75c(0x23e)][_0x5ef75c(0x1b3)];Object[_0x5ef75c(0x24c)](_0x36c881)['forEach'](_0x5a31fe=>{var _0x262422=_0x5ef75c;this[_0x262422(0x21a)][_0x262422(0x261)](_0x5a31fe['id'],_0x5a31fe['params']?JSON['parse'](_0x5a31fe[_0x262422(0x199)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x30f666=_0x157e0f,_0x3967f9;this[_0x30f666(0x24b)]['next'](_0x30f666(0x268)),(_0x3967f9=this['_commandDisposable'])==null||_0x3967f9[_0x30f666(0x1d8)]();}['_handleOnline'](){var _0x5335d5=_0x157e0f;this['_status$'][_0x5335d5(0x21c)](_0x5335d5(0x1ad)),this[_0x5335d5(0x254)]();}},exports[_0x157e0f(0x1dd)]=R([S(0x2,o[_0x157e0f(0x223)]),S(0x3,o[_0x157e0f(0x1a3)](O)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function _0x274f(_0x1ad7e8,_0x2ba6dd){var _0x21a3ac=_0x21a3();return _0x274f=function(_0x274f29,_0x4bbf81){_0x274f29=_0x274f29-0x197;var _0x2c9a9c=_0x21a3ac[_0x274f29];return _0x2c9a9c;},_0x274f(_0x1ad7e8,_0x2ba6dd);}function A(){var _0x55d30b=_0x157e0f;const _0x2df4ab=p[_0x55d30b(0x1b1)](exports[_0x55d30b(0x201)]),_0xba5454=p[_0x55d30b(0x1b1)](o[_0x55d30b(0x1bc)]),_0x8f6a0d=p[_0x55d30b(0x237)](()=>_0xba5454[_0x55d30b(0x1f4)](o[_0x55d30b(0x1f7)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4fae22,_0x4b45f4]=f[_0x55d30b(0x243)](null),[_0x420ecf,_0x198fe2]=f[_0x55d30b(0x243)](h[_0x55d30b(0x20c)]),_0x17e739=f[_0x55d30b(0x23d)](null);return f['useEffect'](()=>(_0x8f6a0d&&_0x2df4ab['getLiveShareCoordinator'](_0x8f6a0d['getUnitId']())[_0x55d30b(0x241)](_0x50a2d1=>{var _0x3b9dbe=_0x55d30b;_0x4b45f4(_0x50a2d1),_0x17e739[_0x3b9dbe(0x1d3)]=_0x50a2d1[_0x3b9dbe(0x1d5)][_0x3b9dbe(0x1a2)](_0x54de00=>{_0x198fe2(_0x54de00);});}),()=>{var _0x3fa6d2=_0x55d30b,_0x31bee1;(_0x31bee1=_0x17e739[_0x3fa6d2(0x1d3)])==null||_0x31bee1['unsubscribe'](),_0x17e739[_0x3fa6d2(0x1d3)]=null;}),[_0x8f6a0d,_0x2df4ab]),_0x4fae22?l[_0x55d30b(0x221)](g[_0x55d30b(0x23f)],{'align':'end','disabled':_0x420ecf===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x55d30b(0x221)](B,{'status':_0x420ecf,'coordinator':_0x4fae22}),'children':l['jsx']('button',{'className':g[_0x55d30b(0x206)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x420ecf===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x420ecf!==h[_0x55d30b(0x226)]}),'type':_0x55d30b(0x1cc),'children':l['jsx'](P,{'className':_0x55d30b(0x200)})})}):null;}function B(_0x947c8b){var _0x561924=_0x157e0f;const {status:_0x5c6e07,coordinator:_0x522223}=_0x947c8b;switch(_0x5c6e07){case h[_0x561924(0x20c)]:return l[_0x561924(0x221)](Y,{'coordinator':_0x522223});case h['FOLLOWING']:return l[_0x561924(0x221)](Z,{'coordinator':_0x522223});case h[_0x561924(0x1d7)]:return l['jsx'](J,{'coordinator':_0x522223});case h[_0x561924(0x226)]:return l['jsx'](z,{});case h[_0x561924(0x1c4)]:return l[_0x561924(0x221)](K,{'coordinator':_0x522223});default:return null;}}function Y(_0x57c0ca){var _0x2a65b8=_0x157e0f;const {coordinator:_0x4a352a}=_0x57c0ca;return l['jsxs'](l['Fragment'],{'children':[l[_0x2a65b8(0x221)](_0x2a65b8(0x1a0),{'className':_0x2a65b8(0x236),'children':_0x2a65b8(0x1a6)}),l[_0x2a65b8(0x221)](g[_0x2a65b8(0x1f8)],{'onClick':()=>_0x4a352a[_0x2a65b8(0x1c9)](),'children':_0x2a65b8(0x1ec)})]});}function Z(_0x18499b){var _0x49fab6=_0x157e0f;const {coordinator:_0x416c88}=_0x18499b;return l[_0x49fab6(0x228)](l[_0x49fab6(0x260)],{'children':[l[_0x49fab6(0x221)](_0x49fab6(0x1a0),{'className':_0x49fab6(0x236),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x49fab6(0x221)](g[_0x49fab6(0x1f8)],{'onClick':()=>_0x416c88[_0x49fab6(0x202)](),'children':_0x49fab6(0x208)})]});}function _0x21a3(){var _0x129c93=['RxDisposable','LIVESHARE_REQUEST_HOST','SetWorksheetActiveOperation','attrs','getLiveShareCoordinator','_handleTerminate','current','propertyIsEnumerable','status$','OPERATION','NOT_FOLLOWING','dispose','UniverCollaborationClientPlugin','forEach','1604874XvTGVQ','LiveShareService','LiveShareCoordinator','_presenter','evenodd','currentColor','throttleTime','50036Ovhnjg','mask','getOwnPropertySymbols','_sharedOperations','complete','createElement','defIds','_handleNewHost','following','set','Start','clear','UNIVER_LIVE_SHARE_PLUGIN','IUIPartsService','getInitialStates','live-share.config','_stopPresenting','InsertSheetMutation','getCurrentTypeOfUnit$','asObservable','sheet','UniverInstanceType','Button','none','not-following','reverse','icon','_collabSession','string','idSuffix','univer-size-4','LiveShareController','stopFollowing','7043530wysWwi','className','_stopFollowing','clsx','stopPresenting','Stop\x20following','parseProtocolChangeset','SessionStatus','shouldShareOperation','IDLE','registerInitialStateReporter','displayName','has','find','getConfig','1033250ZNHMFZ','setConfig','registerDependencies','_entities','function','registerSharedOperation','_commandDisposable','CommandType','_commandService','dispose$','next','UniverLiveSharePlugin','180015NFPTgi','onRendered','mutations','jsx','tag','IConfigService','colorChannel1','connectInjector','OFFLINE','Disposable','jsxs','event$','SetZoomRatioOperation','Stop\x20presenting','univerjs-icon\x20univerjs-icon-','call','entries','http://www.w3.org/2000/svg','requireSession','_injector','_mountLiveShare','from','72PUmeQd','length','univer-mb-3\x20univer-w-full\x20univer-text-sm','useObservable','_startLiveShareCoordinator','hasOwnProperty','_handleOperation','merge','LiveShareStatus','useRef','data','Dropdown','add','then','trim','useState','_reporters','concat','FOLLOWING','_collabSessionService','_univerInstanceService','HEADER_MENU','get','_status$','values','createInstance','DesktopLiveShareController','You\x27re\x20presenting\x20the\x20document','Subject','send','prototype','LIVESHARE_OPERATION','_fetchOperations','url(#$1','toString','_config','getTypeOfUnitDisposed$','_startPresenting','245331cJjeAA','LIVESHARE_TERMINATE','map','2473114WJXlKc','defs','SetScrollOperation','Fragment','executeCommand','presenting','530KBkZhG','assign','defineProperty','0\x200\x2017\x2017','touchDependencies','offline','_handleNewChangeSets','replace','getOwnPropertyDescriptor','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','BehaviorSubject','stringify','takeUntil','_status','startFollowing','You\x27are\x20offline.','UNIVER_SHEET','random','LiveShareIcon','12DrQOdn','children','params','includes','UNIVER_UNKNOWN','type','init','extend','xlink:href','div','fill','subscribe','Inject','text','svg','Present\x20this\x20document','_init','1em','indexOf','getMemberID','_handleOnline','disposeWithMe','idle','getUnitId','path','_configService','useDependency','UniverIcon','operations','_beIdle','toDisposable','live-share-icon','22zTZDWq','pipe','CollaborationEvent','NEW_CHANGESETS','forwardRef','IUniverInstanceService','getValue','_startFollowing','Injector','LiveShare','toStringTag','Start\x20following','presenter','PRESENTING','symbol','_uiPartsService','_unitID','mergeOverrideWithDependencies','tryStartPresenting','ONLINE','_liveShareService','button'];_0x21a3=function(){return _0x129c93;};return _0x21a3();}function J(_0x389df2){var _0x191210=_0x157e0f;const {coordinator:_0x7e395f}=_0x389df2;return l[_0x191210(0x228)](l[_0x191210(0x260)],{'children':[l['jsx']('div',{'className':_0x191210(0x236),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](g[_0x191210(0x1f8)],{'variant':_0x191210(0x1a4),'onClick':()=>_0x7e395f[_0x191210(0x271)](),'children':_0x191210(0x1c2)})]});}function K(_0x13cafe){var _0x40d7c4=_0x157e0f;const {coordinator:_0x595f21}=_0x13cafe;return l[_0x40d7c4(0x228)](l[_0x40d7c4(0x260)],{'children':[l[_0x40d7c4(0x221)](_0x40d7c4(0x1a0),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x40d7c4(0x24f)}),l['jsx'](g['Button'],{'variant':'default','onClick':()=>_0x595f21[_0x40d7c4(0x207)](),'children':_0x40d7c4(0x22b)})]});}function z(){var _0x2fd50b=_0x157e0f;return l[_0x2fd50b(0x221)](l['Fragment'],{'children':_0x2fd50b(0x272)});}var Q=Object[_0x157e0f(0x26b)],X=(_0x5edccb,_0xfb3b0a,_0x20415b,_0x561689)=>{var _0x255dda=_0x157e0f;for(var _0x18862d=_0x561689>0x1?void 0x0:_0x561689?Q(_0xfb3b0a,_0x20415b):_0xfb3b0a,_0x37e8dd=_0x5edccb[_0x255dda(0x235)]-0x1,_0x4a0bc2;_0x37e8dd>=0x0;_0x37e8dd--)(_0x4a0bc2=_0x5edccb[_0x37e8dd])&&(_0x18862d=_0x4a0bc2(_0x18862d)||_0x18862d);return _0x18862d;},x=(_0x2ea074,_0x1a3681)=>(_0x115241,_0x306458)=>_0x1a3681(_0x115241,_0x306458,_0x2ea074);exports[_0x157e0f(0x24e)]=class extends o[_0x157e0f(0x227)]{constructor(_0x4c6b05,_0x42c84d){var _0x3d8d4c=_0x157e0f;super(),this[_0x3d8d4c(0x231)]=_0x4c6b05,this[_0x3d8d4c(0x1c6)]=_0x42c84d,this[_0x3d8d4c(0x232)]();}[_0x157e0f(0x232)](){var _0x2aef35=_0x157e0f;this[_0x2aef35(0x1ac)](this[_0x2aef35(0x1c6)]['registerComponent'](p['BuiltInUIPart'][_0x2aef35(0x249)],()=>p[_0x2aef35(0x225)](A,this[_0x2aef35(0x231)])));}},exports['DesktopLiveShareController']=X([x(0x0,o[_0x157e0f(0x1a3)](o[_0x157e0f(0x1bf)])),x(0x1,p[_0x157e0f(0x1ef)])],exports[_0x157e0f(0x24e)]);const ee=_0x157e0f(0x1f1),L={};var te=Object[_0x157e0f(0x26b)],ie=(_0x140b6c,_0x3a6f06,_0x48b99e,_0x431259)=>{var _0x280e43=_0x157e0f;for(var _0x181a70=_0x431259>0x1?void 0x0:_0x431259?te(_0x3a6f06,_0x48b99e):_0x3a6f06,_0x120de5=_0x140b6c[_0x280e43(0x235)]-0x1,_0x25ec97;_0x120de5>=0x0;_0x120de5--)(_0x25ec97=_0x140b6c[_0x120de5])&&(_0x181a70=_0x25ec97(_0x181a70)||_0x181a70);return _0x181a70;},ne=(_0x1cc744,_0x254b96)=>(_0x48de63,_0x46cc19)=>_0x254b96(_0x48de63,_0x46cc19,_0x1cc744);let E=class extends o[_0x157e0f(0x227)]{constructor(_0x2a3663){var _0x2bcb58=_0x157e0f;super(),this[_0x2bcb58(0x1cb)]=_0x2a3663,this['_init']();}[_0x157e0f(0x1a7)](){var _0x2d0562=_0x157e0f;[D[_0x2d0562(0x22a)]['id'],D[_0x2d0562(0x25f)]['id'],C['SetWorksheetActiveOperation']['id']][_0x2d0562(0x1da)](_0xd58e=>{var _0x319496=_0x2d0562;this['disposeWithMe'](this[_0x319496(0x1cb)][_0x319496(0x217)](_0xd58e));});}};E=ie([ne(0x0,o['Inject'](O))],E);var re=Object[_0x157e0f(0x265)],se=Object[_0x157e0f(0x26b)],oe=(_0x52e0bf,_0x57b077,_0x37dcfc)=>_0x57b077 in _0x52e0bf?re(_0x52e0bf,_0x57b077,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37dcfc}):_0x52e0bf[_0x57b077]=_0x37dcfc,ae=(_0x52ee6f,_0x357479,_0x1680a3,_0x41caec)=>{var _0x50672b=_0x157e0f;for(var _0xb59a79=_0x41caec>0x1?void 0x0:_0x41caec?se(_0x357479,_0x1680a3):_0x357479,_0x1ac09d=_0x52ee6f[_0x50672b(0x235)]-0x1,_0x7d3826;_0x1ac09d>=0x0;_0x1ac09d--)(_0x7d3826=_0x52ee6f[_0x1ac09d])&&(_0xb59a79=_0x7d3826(_0xb59a79)||_0xb59a79);return _0xb59a79;},N=(_0x423180,_0x21a43f)=>(_0x539eac,_0x80ccc3)=>_0x21a43f(_0x539eac,_0x80ccc3,_0x423180),T=(_0x3f6889,_0x36bb17,_0x52fc3a)=>oe(_0x3f6889,typeof _0x36bb17!=_0x157e0f(0x1c5)?_0x36bb17+'':_0x36bb17,_0x52fc3a);const le=_0x157e0f(0x1ee);exports[_0x157e0f(0x21d)]=class extends o['Plugin']{constructor(_0x2bfa3f=L,_0x11d172,_0x3ffa48){var _0xe011f6=_0x157e0f;super(),this[_0xe011f6(0x257)]=_0x2bfa3f,this['_injector']=_0x11d172,this[_0xe011f6(0x1b0)]=_0x3ffa48;const {..._0x2feea3}=o[_0xe011f6(0x23b)]({},L,this[_0xe011f6(0x257)]);this['_configService'][_0xe011f6(0x213)](ee,_0x2feea3);}['onStarting'](){var _0xce400e=_0x157e0f;o[_0xce400e(0x214)](this['_injector'],o[_0xce400e(0x1c8)]([[O],[exports['LiveShareController']],[E],[exports[_0xce400e(0x24e)]]],this[_0xce400e(0x257)]['override'])),o[_0xce400e(0x267)](this[_0xce400e(0x231)],[[E]]);}[_0x157e0f(0x21f)](){var _0x4bec29=_0x157e0f;o['touchDependencies'](this[_0x4bec29(0x231)],[[exports[_0x4bec29(0x24e)]]]);}},T(exports[_0x157e0f(0x21d)],_0x157e0f(0x19c),o[_0x157e0f(0x1f7)][_0x157e0f(0x19b)]),T(exports[_0x157e0f(0x21d)],'pluginName',le),exports[_0x157e0f(0x21d)]=ae([o['DependentOn'](m[_0x157e0f(0x1d9)]),N(0x1,o[_0x157e0f(0x1a3)](o[_0x157e0f(0x1bf)])),N(0x2,o['IConfigService'])],exports[_0x157e0f(0x21d)]),exports[_0x157e0f(0x1c0)]=A,exports[_0x157e0f(0x1dc)]=O,exports[_0x157e0f(0x23c)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x1d5b70=_0x16a7;(function(_0x3c1fb6,_0x2f48e1){var _0x4a6e4c=_0x16a7,_0x39a2a2=_0x3c1fb6();while(!![]){try{var _0x199822=-parseInt(_0x4a6e4c(0x27b))/0x1*(-parseInt(_0x4a6e4c(0x1ef))/0x2)+parseInt(_0x4a6e4c(0x23e))/0x3*(-parseInt(_0x4a6e4c(0x23d))/0x4)+parseInt(_0x4a6e4c(0x1d5))/0x5*(-parseInt(_0x4a6e4c(0x26a))/0x6)+-parseInt(_0x4a6e4c(0x226))/0x7*(-parseInt(_0x4a6e4c(0x1ed))/0x8)+-parseInt(_0x4a6e4c(0x1d9))/0x9*(parseInt(_0x4a6e4c(0x228))/0xa)+-parseInt(_0x4a6e4c(0x218))/0xb+parseInt(_0x4a6e4c(0x25e))/0xc;if(_0x199822===_0x2f48e1)break;else _0x39a2a2['push'](_0x39a2a2['shift']());}catch(_0x162003){_0x39a2a2['push'](_0x39a2a2['shift']());}}}(_0x30f0,0xeaa0a));var q=Object['defineProperty'],z=(_0x5f39ad,_0x3802ee,_0x51c1d0)=>_0x3802ee in _0x5f39ad?q(_0x5f39ad,_0x3802ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51c1d0}):_0x5f39ad[_0x3802ee]=_0x51c1d0,d=(_0x1a5b21,_0x3fc234,_0x3ccad4)=>z(_0x1a5b21,typeof _0x3fc234!=_0x1d5b70(0x1e7)?_0x3fc234+'':_0x3fc234,_0x3ccad4);import{Disposable as _0x5dd809,toDisposable as _0x35611b,IUniverInstanceService as _0x25c89d,Inject as _0x9f09cd,Injector as _0x454c2a,IConfigService as _0x536ce4,ICommandService as _0x595663,RxDisposable as _0x231eea,UniverInstanceType as _0x129dbe,DisposableCollection as _0x1525a6,CommandType as _0x4d70ae,DependentOn as _0x3c4c14,Plugin as _0x47c218,merge as _0x71c5cd,registerDependencies as _0x412ba8,mergeOverrideWithDependencies as _0x58f7e9,touchDependencies as _0x2497e9}from'@univerjs/core';import{useDependency as _0x2be91e,useObservable as _0xf14f6a,IUIPartsService as _0x3770e4,BuiltInUIPart as _0x53c462,connectInjector as _0xcd3d9a}from'@univerjs/ui';import{jsx as _0x46d2aa,jsxs as _0x5c1ec5,Fragment as _0x1ff51}from'react/jsx-runtime';import{Dropdown as _0xd37ad7,clsx as _0x3be2af,Button as _0x1527c3}from'@univerjs/design';function _0x30f0(){var _0x185daf=['offline','8rnccnh','Start\x20following','6KFEFwH','_unitID','_handleOnline','currentColor','getTypeOfUnitAdded$','_stopPresenting','status$','set','map','getOwnPropertyDescriptor','_univerInstanceService','has','sessionStatus$','_handleNewHost','getInitialStates','get','_beIdle','LIVESHARE_TERMINATE','_reporters','requireSession','path','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','tag','_init','_liveShareService','UNIVER_SHEET','pipe','dispose','_handleNewChangeSets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','colorChannel1','end','idle','icon','You\x27re\x20not\x20following\x20the\x20presenter','NEW_CHANGESETS','getValue','Stop\x20presenting','live-share-icon','LIVESHARE_OPERATION','0\x200\x2017\x2017','7706820kTLbDZ','call','1em','_collabSession','shouldShareOperation','defs','_handleOperation','defineProperty','xlink:href','presenting','not-following','_startLiveShareCoordinator','stopFollowing','idSuffix','8163589mGEDQK','_status','70JLfhVi','displayName','You\x27re\x20presenting\x20the\x20document','getLiveShareCoordinator','_fetchOperations','Stop\x20following','asObservable','_entities','prototype','presenter','entries','add','_startPresenting','apply','stopPresenting','reverse','replace','stringify','_commandDisposable','children','UNIVER_UNKNOWN','5152892KcgtkR','3pzINur','_collabSessionService','_handleTerminate','hasOwnProperty','registerInitialStateReporter','subscribe','registerSharedOperation','trim','extend','ONLINE','none','executeCommand','PRESENTING','You\x27are\x20offline.','values','_commandService','complete','from','onRendered','string','parse','length','disposeWithMe','_uiPartsService','following','concat','FOLLOWING','OPERATION','next','className','_status$','forEach','12484152POPuQr','random','text','getMemberID','_handleOffline','getOwnPropertySymbols','sheet','event$','univer-mb-3\x20univer-w-full\x20univer-text-sm','getTypeOfUnitDisposed$','_stopFollowing','function','9894DdJzdp','onCommandExecuted','button','evenodd','_presenter','div','setConfig','getUnitId','_configService','delete','_config','_startFollowing','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','mutations','UniverIcon','registerComponent','335239sdXSID','params','substring','default','_sharedOperations','attrs','clear','createInstance','operations','assign','_injector','getCurrentTypeOfUnit$','http://www.w3.org/2000/svg','IDLE','unsubscribe','mask','send','530eocVJZ','dispose$','NOT_FOLLOWING','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','112653ijQxtt','toString','univerjs-icon\x20univerjs-icon-','tryStartPresenting','OFFLINE','defIds','data','then','LIVESHARE_NEW_HOST','use','current','type','url(#$1','_mountLiveShare','symbol','svg','fill','HEADER_MENU','startFollowing'];_0x30f0=function(){return _0x185daf;};return _0x30f0();}import{forwardRef as _0x3759f5,useRef as _0x514d8f,createElement as _0x28844c,useState as _0x47776c,useEffect as _0x37f6e9}from'react';import{CollaborationEvent as _0xf7519f,parseProtocolChangeset as _0x5a916f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x46d5bf,SessionStatus as _0x129b56,UniverCollaborationClientPlugin as _0x10eb0c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2be1b3,SetWorksheetActiveOperation as _0x2c2b73}from'@univerjs/sheets';import{BehaviorSubject as _0x31dbf0,Subject as _0x28bfba}from'rxjs';import{takeUntil as _0x11bc00,throttleTime as _0x4bf83f}from'rxjs/operators';import{SetZoomRatioOperation as _0x2af7e3,SetScrollOperation as _0x4699e2}from'@univerjs/sheets-ui';var c=function(){var _0x35f3c1=_0x1d5b70;return c=Object['assign']||function(_0x5b0097){var _0x507ec1=_0x16a7;for(var _0x52a800,_0x1b42d8=0x1,_0x32cca4=arguments[_0x507ec1(0x253)];_0x1b42d8<_0x32cca4;_0x1b42d8++){_0x52a800=arguments[_0x1b42d8];for(var _0x15a9b2 in _0x52a800)Object['prototype'][_0x507ec1(0x241)]['call'](_0x52a800,_0x15a9b2)&&(_0x5b0097[_0x15a9b2]=_0x52a800[_0x15a9b2]);}return _0x5b0097;},c[_0x35f3c1(0x235)](this,arguments);},Oe=function(_0x2935bd,_0x38bdc4){var _0x41dd64=_0x1d5b70,_0x2295ae={};for(var _0x345b6a in _0x2935bd)Object[_0x41dd64(0x230)]['hasOwnProperty'][_0x41dd64(0x219)](_0x2935bd,_0x345b6a)&&_0x38bdc4['indexOf'](_0x345b6a)<0x0&&(_0x2295ae[_0x345b6a]=_0x2935bd[_0x345b6a]);if(_0x2935bd!=null&&typeof Object[_0x41dd64(0x263)]==_0x41dd64(0x269)){for(var _0x50e815=0x0,_0x345b6a=Object[_0x41dd64(0x263)](_0x2935bd);_0x50e815<_0x345b6a[_0x41dd64(0x253)];_0x50e815++)_0x38bdc4['indexOf'](_0x345b6a[_0x50e815])<0x0&&Object[_0x41dd64(0x230)]['propertyIsEnumerable']['call'](_0x2935bd,_0x345b6a[_0x50e815])&&(_0x2295ae[_0x345b6a[_0x50e815]]=_0x2935bd[_0x345b6a[_0x50e815]]);}return _0x2295ae;},W=_0x3759f5(function(_0x2f1749,_0x3b8745){var _0x2704bb=_0x1d5b70,_0x5a22dd=_0x2f1749['icon'],_0x143f32=_0x2f1749['id'],_0x259019=_0x2f1749[_0x2704bb(0x25b)],_0x141539=_0x2f1749[_0x2704bb(0x246)],_0x252a4a=Oe(_0x2f1749,[_0x2704bb(0x210),'id','className',_0x2704bb(0x246)]),_0x22d3e1=_0x2704bb(0x1db)[_0x2704bb(0x257)](_0x143f32,'\x20')[_0x2704bb(0x257)](_0x259019||'')[_0x2704bb(0x245)](),_0x316c76=_0x514d8f('_'['concat'](Ne()));return Y(_0x5a22dd,''[_0x2704bb(0x257)](_0x143f32),{'defIds':_0x5a22dd[_0x2704bb(0x1de)],'idSuffix':_0x316c76[_0x2704bb(0x1e3)]},c({'ref':_0x3b8745,'className':_0x22d3e1},_0x252a4a),_0x141539);});function Y(_0x12faad,_0x8c931e,_0x26aa7c,_0x1f47ce,_0x21e5c6){var _0x568fb4=_0x1d5b70;return _0x28844c(_0x12faad[_0x568fb4(0x205)],c(c({'key':_0x8c931e},Ee(_0x12faad,_0x26aa7c,_0x21e5c6)),_0x1f47ce),(we(_0x12faad,_0x26aa7c)['children']||[])[_0x568fb4(0x1f7)](function(_0x1e69f1,_0x148cce){var _0x27f6f0=_0x568fb4;return Y(_0x1e69f1,''['concat'](_0x8c931e,'-')['concat'](_0x12faad[_0x27f6f0(0x205)],'-')[_0x27f6f0(0x257)](_0x148cce),_0x26aa7c,void 0x0,_0x21e5c6);}));}function Ee(_0x1bed3d,_0xa049f4,_0x495dec){var _0x3fa140=_0x1d5b70,_0x3ff140=c({},_0x1bed3d[_0x3fa140(0x280)]);_0x495dec!=null&&_0x495dec[_0x3fa140(0x20d)]&&_0x3ff140[_0x3fa140(0x1e9)]===_0x3fa140(0x20d)&&(_0x3ff140[_0x3fa140(0x1e9)]=_0x495dec['colorChannel1']),_0x1bed3d[_0x3fa140(0x205)]===_0x3fa140(0x1d3)&&_0x3ff140['id']&&(_0x3ff140['id']=_0x3ff140['id']+_0xa049f4[_0x3fa140(0x225)]),Object[_0x3fa140(0x232)](_0x3ff140)[_0x3fa140(0x25d)](function(_0x1dae10){var _0xba59e7=_0x3fa140,_0x26cb77=_0x1dae10[0x0],_0x5a96f2=_0x1dae10[0x1];_0x26cb77==='mask'&&typeof _0x5a96f2==_0xba59e7(0x251)&&(_0x3ff140[_0x26cb77]=_0x5a96f2[_0xba59e7(0x238)](/url\(#(.*)\)/,'url(#$1'[_0xba59e7(0x257)](_0xa049f4[_0xba59e7(0x225)],')')));});var _0x1dee08=_0xa049f4['defIds'];return!_0x1dee08||_0x1dee08[_0x3fa140(0x253)]===0x0||(_0x1bed3d[_0x3fa140(0x205)]===_0x3fa140(0x1e2)&&_0x3ff140[_0x3fa140(0x220)]&&(_0x3ff140[_0x3fa140(0x220)]=_0x3ff140['xlink:href']+_0xa049f4[_0x3fa140(0x225)]),Object['entries'](_0x3ff140)[_0x3fa140(0x25d)](function(_0x588aff){var _0x2d41de=_0x3fa140,_0x4651e8=_0x588aff[0x0],_0x220551=_0x588aff[0x1];typeof _0x220551==_0x2d41de(0x251)&&(_0x3ff140[_0x4651e8]=_0x220551['replace'](/url\(#(.*)\)/,_0x2d41de(0x1e5)['concat'](_0xa049f4[_0x2d41de(0x225)],')')));})),_0x3ff140;}function we(_0x1702e7,_0x17262d){var _0x421783=_0x1d5b70,_0x3033af,_0x45c074=_0x17262d[_0x421783(0x1de)];return!_0x45c074||_0x45c074['length']===0x0?_0x1702e7:_0x1702e7[_0x421783(0x205)]===_0x421783(0x21d)&&(!((_0x3033af=_0x1702e7[_0x421783(0x23b)])===null||_0x3033af===void 0x0)&&_0x3033af['length'])?c(c({},_0x1702e7),{'children':_0x1702e7['children'][_0x421783(0x1f7)](function(_0x4fbd04){var _0x54adae=_0x421783;return typeof _0x4fbd04[_0x54adae(0x280)]['id']=='string'&&_0x45c074&&_0x45c074[_0x54adae(0x277)](_0x4fbd04[_0x54adae(0x280)]['id'])?c(c({},_0x4fbd04),{'attrs':c(c({},_0x4fbd04[_0x54adae(0x280)]),{'id':_0x4fbd04['attrs']['id']+_0x17262d[_0x54adae(0x225)]})}):_0x4fbd04;})}):_0x1702e7;}function Ne(){var _0x243706=_0x1d5b70;return Math[_0x243706(0x25f)]()[_0x243706(0x1da)](0x24)[_0x243706(0x27d)](0x2,0x8);}W[_0x1d5b70(0x229)]=_0x1d5b70(0x279);var Ce={'tag':_0x1d5b70(0x1e8),'attrs':{'xmlns':_0x1d5b70(0x1d0),'fill':_0x1d5b70(0x248),'viewBox':_0x1d5b70(0x217),'width':'1em','height':_0x1d5b70(0x21a)},'children':[{'tag':_0x1d5b70(0x203),'attrs':{'fill':_0x1d5b70(0x1f2),'d':_0x1d5b70(0x276)}},{'tag':_0x1d5b70(0x203),'attrs':{'fill':_0x1d5b70(0x1f2),'d':_0x1d5b70(0x204),'fillRule':_0x1d5b70(0x26d),'clipRule':_0x1d5b70(0x26d)}}]},B=_0x3759f5(function(_0x4e6ccb,_0x2588cf){var _0x557aee=_0x1d5b70;return _0x28844c(W,Object[_0x557aee(0x1cd)]({},_0x4e6ccb,{'id':_0x557aee(0x215),'ref':_0x2588cf,'icon':Ce}));});B['displayName']='LiveShareIcon';class L extends _0x5dd809{constructor(){var _0x2926f0=_0x1d5b70;super(...arguments),d(this,_0x2926f0(0x27f),new Set()),d(this,_0x2926f0(0x201),new Set());}[_0x1d5b70(0x244)](_0x527091){var _0x5a8529=_0x1d5b70;return this[_0x5a8529(0x27f)][_0x5a8529(0x233)](_0x527091),_0x35611b(()=>this[_0x5a8529(0x27f)]['delete'](_0x527091));}[_0x1d5b70(0x242)](_0x2e1258){var _0x4fd71c=_0x1d5b70;return this[_0x4fd71c(0x201)][_0x4fd71c(0x233)](_0x2e1258),_0x35611b(()=>this['_reporters'][_0x4fd71c(0x273)](_0x2e1258));}[_0x1d5b70(0x21c)](_0x3d0fb8){var _0x546593=_0x1d5b70;return this[_0x546593(0x27f)][_0x546593(0x1fa)](_0x3d0fb8);}[_0x1d5b70(0x1fd)](_0x2954cb){var _0x4cfb9b=_0x1d5b70;return Array[_0x4cfb9b(0x24f)](this['_reporters'])[_0x4cfb9b(0x1f7)](_0xc48d73=>_0xc48d73(_0x2954cb));}}var De=Object['getOwnPropertyDescriptor'],Z=(_0x4bc4ba,_0x1b9256,_0x2aebc2,_0x3deaac)=>{var _0x168515=_0x1d5b70;for(var _0x3d7c49=_0x3deaac>0x1?void 0x0:_0x3deaac?De(_0x1b9256,_0x2aebc2):_0x1b9256,_0x2c3a4a=_0x4bc4ba[_0x168515(0x253)]-0x1,_0x27effc;_0x2c3a4a>=0x0;_0x2c3a4a--)(_0x27effc=_0x4bc4ba[_0x2c3a4a])&&(_0x3d7c49=_0x27effc(_0x3d7c49)||_0x3d7c49);return _0x3d7c49;},f=(_0x3c4adf,_0x55519e)=>(_0x453d1c,_0x166258)=>_0x55519e(_0x453d1c,_0x166258,_0x3c4adf);let m=class extends _0x231eea{constructor(_0x532c10,_0x6f4196,_0x1ad48d){var _0x5e5533=_0x1d5b70;super(),d(this,'_entities',new Map()),(this[_0x5e5533(0x1f9)]=_0x532c10,this[_0x5e5533(0x1ce)]=_0x6f4196,this[_0x5e5533(0x23f)]=_0x1ad48d,this['_init']());}async[_0x1d5b70(0x22b)](_0x5014e6){var _0x4e34e1=_0x1d5b70;return this[_0x4e34e1(0x22f)][_0x4e34e1(0x1fa)](_0x5014e6)||await this[_0x4e34e1(0x223)](_0x5014e6),this['_entities'][_0x4e34e1(0x1fe)](_0x5014e6);}[_0x1d5b70(0x206)](){var _0x250e6e=_0x1d5b70;this[_0x250e6e(0x1f9)][_0x250e6e(0x1f3)](_0x129dbe[_0x250e6e(0x208)])[_0x250e6e(0x209)](_0x11bc00(this[_0x250e6e(0x1d6)]))[_0x250e6e(0x243)](async _0x1d347f=>{var _0x5267d7=_0x250e6e;const _0xc0840a=_0x1d347f[_0x5267d7(0x271)]();this[_0x5267d7(0x22f)][_0x5267d7(0x1fa)](_0xc0840a)||this[_0x5267d7(0x223)](_0xc0840a);}),this[_0x250e6e(0x1f9)][_0x250e6e(0x267)](_0x129dbe['UNIVER_SHEET'])[_0x250e6e(0x209)](_0x11bc00(this[_0x250e6e(0x1d6)]))[_0x250e6e(0x243)](_0x38229b=>{var _0x1de475=_0x250e6e;const _0x890913=_0x38229b[_0x1de475(0x271)](),_0x30384a=this[_0x1de475(0x22f)][_0x1de475(0x1fe)](_0x890913);_0x30384a==null||_0x30384a[_0x1de475(0x20a)]();});}async[_0x1d5b70(0x223)](_0x34edb5){var _0x4695c0=_0x1d5b70;const _0x2be2de=await this[_0x4695c0(0x23f)][_0x4695c0(0x202)](_0x34edb5),_0x250461=this['_injector'][_0x4695c0(0x282)](C,_0x34edb5,_0x2be2de);return _0x250461['init'](),this[_0x4695c0(0x22f)][_0x4695c0(0x1f6)](_0x34edb5,_0x250461),_0x250461;}};m=Z([f(0x0,_0x25c89d),f(0x1,_0x9f09cd(_0x454c2a)),f(0x2,_0x9f09cd(_0x46d5bf))],m);var h=(_0x3f01fd=>(_0x3f01fd[_0x1d5b70(0x1dd)]=_0x1d5b70(0x1ec),_0x3f01fd[_0x1d5b70(0x1d1)]='idle',_0x3f01fd[_0x1d5b70(0x258)]=_0x1d5b70(0x256),_0x3f01fd[_0x1d5b70(0x1d7)]=_0x1d5b70(0x222),_0x3f01fd[_0x1d5b70(0x24a)]=_0x1d5b70(0x221),_0x3f01fd))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x231eea{constructor(_0x32fac9,_0xba70da,_0x37804b,_0x53ef10,_0x32dd37){var _0x309259=_0x1d5b70;super(),d(this,_0x309259(0x25c),new _0x31dbf0(_0x309259(0x20f))),d(this,_0x309259(0x1f5),this['_status$'][_0x309259(0x22e)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,'_presenter',null),(this[_0x309259(0x1f0)]=_0x32fac9,this[_0x309259(0x21b)]=_0xba70da,this[_0x309259(0x272)]=_0x37804b,this[_0x309259(0x207)]=_0x53ef10,this['_commandService']=_0x32dd37);}get[_0x1d5b70(0x227)](){var _0xe6ba14=_0x1d5b70;return this[_0xe6ba14(0x25c)][_0xe6ba14(0x213)]();}['dispose'](){var _0x418aa3=_0x1d5b70,_0x565576;(_0x565576=this[_0x418aa3(0x23a)])==null||_0x565576[_0x418aa3(0x20a)](),this[_0x418aa3(0x25c)][_0x418aa3(0x25a)](_0x418aa3(0x20f)),this[_0x418aa3(0x25c)]['complete']();}['init'](){var _0xab0d4a=_0x1d5b70;this[_0xab0d4a(0x206)]||(this[_0xab0d4a(0x206)]=!0x0,this[_0xab0d4a(0x21b)][_0xab0d4a(0x1fb)]['pipe'](_0x11bc00(this[_0xab0d4a(0x1d6)]))['subscribe'](_0x1a95c2=>{var _0x370ba7=_0xab0d4a;switch(_0x1a95c2){case _0x129b56[_0x370ba7(0x1dd)]:this[_0x370ba7(0x262)]();break;case _0x129b56[_0x370ba7(0x247)]:this[_0x370ba7(0x1f1)]();break;}}),this[_0xab0d4a(0x21b)][_0xab0d4a(0x265)][_0xab0d4a(0x209)](_0x11bc00(this[_0xab0d4a(0x1d6)]))[_0xab0d4a(0x243)](_0x8a2670=>{var _0x3ab227=_0xab0d4a;const {eventID:_0x45a312}=_0x8a2670;switch(_0x45a312){case _0xf7519f[_0x3ab227(0x1e1)]:this['_handleNewHost'](_0x8a2670);break;case _0xf7519f[_0x3ab227(0x216)]:this[_0x3ab227(0x21e)](_0x8a2670);break;case _0xf7519f[_0x3ab227(0x200)]:this[_0x3ab227(0x240)]();break;case _0xf7519f[_0x3ab227(0x212)]:this[_0x3ab227(0x20b)](_0x8a2670);break;}}));}[_0x1d5b70(0x1dc)](){var _0x4f6c0d=_0x1d5b70;this[_0x4f6c0d(0x21b)][_0x4f6c0d(0x1d4)]({'eventID':_0xf7519f['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4f6c0d(0x1f0)],'userID':this[_0x4f6c0d(0x21b)]['getMemberID']()}},this['_unitID']);}[_0x1d5b70(0x236)](){var _0x302c69=_0x1d5b70;this[_0x302c69(0x227)]===_0x302c69(0x221)&&(this[_0x302c69(0x25c)][_0x302c69(0x25a)](_0x302c69(0x20f)),this['_collabSession'][_0x302c69(0x1d4)]({'eventID':_0xf7519f[_0x302c69(0x200)],'data':{'unitID':this[_0x302c69(0x1f0)]}},this[_0x302c69(0x1f0)]));}[_0x1d5b70(0x1eb)](){var _0xc6ceb6=_0x1d5b70;this[_0xc6ceb6(0x227)]===_0xc6ceb6(0x222)&&(this[_0xc6ceb6(0x25c)][_0xc6ceb6(0x25a)](_0xc6ceb6(0x256)),this['_startFollowing']());}['stopFollowing'](){var _0x3cbf2d=_0x1d5b70;this[_0x3cbf2d(0x227)]===_0x3cbf2d(0x256)&&this[_0x3cbf2d(0x268)]();}[_0x1d5b70(0x1fc)](_0x382fe5){var _0x199382=_0x1d5b70;const {presenter:_0x43b16f}=_0x382fe5[_0x199382(0x1df)],_0x3ac59e=this[_0x199382(0x21b)]['getMemberID']();this[_0x199382(0x26e)]=_0x43b16f,_0x43b16f===_0x3ac59e?(this['_stopFollowing'](),this[_0x199382(0x234)]()):this[_0x199382(0x227)]!==_0x199382(0x222)&&(this[_0x199382(0x1f4)](),this[_0x199382(0x275)]());}['_fetchOperations'](){var _0x32b6e6=_0x1d5b70;const _0x11c623={'eventID':_0xf7519f['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x32b6e6(0x1d4)](_0x11c623,this[_0x32b6e6(0x1f0)]);}[_0x1d5b70(0x240)](){var _0x1d3548=_0x1d5b70;this[_0x1d3548(0x26e)]=null,this[_0x1d3548(0x227)]!==_0x1d3548(0x221)&&this[_0x1d3548(0x1ff)]();}['_handleNewChangeSets'](_0x5caf46){var _0x1c292b=_0x1d5b70;if(this['_status']==='following'&&this[_0x1c292b(0x26e)]===_0x5caf46[_0x1c292b(0x1df)]['memberID']){const _0x436eec=_0x5a916f(_0x5caf46[_0x1c292b(0x1df)])[_0x1c292b(0x278)][_0x1c292b(0x237)]()['find'](_0x5cdd49=>_0x5cdd49['id']===_0x2be1b3['id']);if(_0x436eec){const _0x3fcfd6=_0x436eec[_0x1c292b(0x27c)]['unitId'],_0x19959d=_0x436eec[_0x1c292b(0x27c)][_0x1c292b(0x264)]['id'];setTimeout(()=>{var _0x5b6ca7=_0x1c292b;this[_0x5b6ca7(0x24d)]['executeCommand'](_0x2c2b73['id'],{'unitId':_0x3fcfd6,'subUnitId':_0x19959d},{'fromCollab':!0x0});});}}}[_0x1d5b70(0x234)](){var _0x16d05d=_0x1d5b70;this[_0x16d05d(0x25c)][_0x16d05d(0x25a)]('presenting');const _0x33fbd6=new Map(),_0x8538f3=this[_0x16d05d(0x23a)]=new _0x1525a6();_0x8538f3[_0x16d05d(0x233)](_0x35611b(()=>{var _0x5af6c6=_0x16d05d;_0x33fbd6[_0x5af6c6(0x25d)](_0x4ae87d=>_0x4ae87d[_0x5af6c6(0x24e)]()),_0x33fbd6[_0x5af6c6(0x281)]();})),_0x8538f3[_0x16d05d(0x233)](this[_0x16d05d(0x24d)][_0x16d05d(0x26b)](_0x99af8e=>{var _0x24d256=_0x16d05d,_0x255d34;if(_0x99af8e[_0x24d256(0x1e4)]!==_0x4d70ae[_0x24d256(0x259)]||!this[_0x24d256(0x207)][_0x24d256(0x21c)](_0x99af8e['id']))return;const {id:_0x10b437}=_0x99af8e;let _0x3064ba;_0x33fbd6[_0x24d256(0x1fa)](_0x10b437)?_0x3064ba=_0x33fbd6['get'](_0x10b437):(_0x3064ba=new _0x28bfba(),_0x33fbd6['set'](_0x10b437,_0x3064ba),_0x3064ba['pipe'](_0x4bf83f((_0x255d34=this[_0x24d256(0x272)]['getConfig'](xe))!=null?_0x255d34:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x24d256(0x243)](_0x4096d3=>{var _0x18431e=_0x24d256;this[_0x18431e(0x21b)]['send']({'eventID':_0xf7519f[_0x18431e(0x216)],'data':{'unitID':this[_0x18431e(0x1f0)],'operations':{[_0x4096d3['id']]:{'id':_0x4096d3['id'],'params':JSON[_0x18431e(0x239)](_0x4096d3['params'])}}}},this['_unitID']);})),_0x3064ba[_0x24d256(0x25a)](_0x99af8e);})),this[_0x16d05d(0x207)][_0x16d05d(0x1fd)](this[_0x16d05d(0x1f0)])[_0x16d05d(0x25d)](_0x423bb2=>this[_0x16d05d(0x21b)][_0x16d05d(0x1d4)]({'eventID':_0xf7519f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x16d05d(0x1f0)],'operations':{[_0x423bb2['id']]:{'id':_0x423bb2['id'],'params':JSON[_0x16d05d(0x239)](_0x423bb2[_0x16d05d(0x27c)])}}}},this[_0x16d05d(0x1f0)]));}[_0x1d5b70(0x1f4)](){var _0x268975=_0x1d5b70,_0x417399;this[_0x268975(0x25c)]['next'](_0x268975(0x20f)),(_0x417399=this[_0x268975(0x23a)])==null||_0x417399[_0x268975(0x20a)](),this['_commandDisposable']=null;}[_0x1d5b70(0x275)](){var _0x23fbf5=_0x1d5b70,_0x5f00ea;(_0x5f00ea=this['_commandDisposable'])==null||_0x5f00ea[_0x23fbf5(0x20a)](),this['_status$'][_0x23fbf5(0x25a)](_0x23fbf5(0x256));}[_0x1d5b70(0x1ff)](){var _0xd0846d=_0x1d5b70,_0x334502;this[_0xd0846d(0x25c)][_0xd0846d(0x25a)](_0xd0846d(0x20f)),(_0x334502=this[_0xd0846d(0x23a)])==null||_0x334502[_0xd0846d(0x20a)](),this['_commandDisposable']=null;}[_0x1d5b70(0x268)](){var _0x3e3e1d=_0x1d5b70,_0x1ec9d1;this[_0x3e3e1d(0x25c)][_0x3e3e1d(0x25a)]('not-following'),(_0x1ec9d1=this[_0x3e3e1d(0x23a)])==null||_0x1ec9d1['dispose']();}[_0x1d5b70(0x21e)](_0x1f48a4){var _0x544670=_0x1d5b70;if([_0x544670(0x221),_0x544670(0x222),_0x544670(0x1ec)]['includes'](this[_0x544670(0x227)])||!_0x1f48a4['data'][_0x544670(0x231)]||_0x1f48a4[_0x544670(0x1df)][_0x544670(0x231)]===this[_0x544670(0x21b)][_0x544670(0x261)]())return;this[_0x544670(0x227)]===_0x544670(0x20f)&&this[_0x544670(0x275)]();const _0x25ddbf=_0x1f48a4[_0x544670(0x1df)][_0x544670(0x283)];Object[_0x544670(0x24c)](_0x25ddbf)[_0x544670(0x25d)](_0x3361ab=>{var _0x48351d=_0x544670;this['_commandService'][_0x48351d(0x249)](_0x3361ab['id'],_0x3361ab[_0x48351d(0x27c)]?JSON[_0x48351d(0x252)](_0x3361ab[_0x48351d(0x27c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x34bd34=_0x1d5b70,_0x348812;this['_status$'][_0x34bd34(0x25a)](_0x34bd34(0x1ec)),(_0x348812=this[_0x34bd34(0x23a)])==null||_0x348812[_0x34bd34(0x20a)]();}[_0x1d5b70(0x1f1)](){var _0x368859=_0x1d5b70;this['_status$']['next'](_0x368859(0x20f)),this[_0x368859(0x22c)]();}};C=Z([f(0x2,_0x536ce4),f(0x3,_0x9f09cd(L)),f(0x4,_0x595663)],C);function ye(){var _0x5bb3b6=_0x1d5b70;const _0x44d33f=_0x2be91e(m),_0x205c2b=_0x2be91e(_0x25c89d),_0x3f203a=_0xf14f6a(()=>_0x205c2b[_0x5bb3b6(0x1cf)](_0x129dbe['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x37839b,_0x47b9ca]=_0x47776c(null),[_0x3b8c02,_0x15ddab]=_0x47776c(h[_0x5bb3b6(0x1d1)]),_0x1e3e6b=_0x514d8f(null);return _0x37f6e9(()=>(_0x3f203a&&_0x44d33f[_0x5bb3b6(0x22b)](_0x3f203a[_0x5bb3b6(0x271)]())[_0x5bb3b6(0x1e0)](_0x35cabd=>{var _0x197226=_0x5bb3b6;_0x47b9ca(_0x35cabd),_0x1e3e6b['current']=_0x35cabd[_0x197226(0x1f5)][_0x197226(0x243)](_0x4527b3=>{_0x15ddab(_0x4527b3);});}),()=>{var _0x106333=_0x5bb3b6,_0x341673;(_0x341673=_0x1e3e6b['current'])==null||_0x341673[_0x106333(0x1d2)](),_0x1e3e6b[_0x106333(0x1e3)]=null;}),[_0x3f203a,_0x44d33f]),_0x37839b?_0x46d2aa(_0xd37ad7,{'align':_0x5bb3b6(0x20e),'disabled':_0x3b8c02===h[_0x5bb3b6(0x1dd)],'className':_0x5bb3b6(0x1d8),'overlay':_0x46d2aa(Re,{'status':_0x3b8c02,'coordinator':_0x37839b}),'children':_0x46d2aa(_0x5bb3b6(0x26c),{'className':_0x3be2af(_0x5bb3b6(0x20c),{'univer-cursor-not-allowed':_0x3b8c02===h[_0x5bb3b6(0x1dd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3b8c02!==h[_0x5bb3b6(0x1dd)]}),'type':_0x5bb3b6(0x26c),'children':_0x46d2aa(B,{'className':'univer-size-4'})})}):null;}function Re(_0x2739bd){var _0x36d96e=_0x1d5b70;const {status:_0x6b78f5,coordinator:_0x2e5380}=_0x2739bd;switch(_0x6b78f5){case h[_0x36d96e(0x1d1)]:return _0x46d2aa(Pe,{'coordinator':_0x2e5380});case h[_0x36d96e(0x258)]:return _0x46d2aa(Ae,{'coordinator':_0x2e5380});case h['NOT_FOLLOWING']:return _0x46d2aa(Te,{'coordinator':_0x2e5380});case h[_0x36d96e(0x1dd)]:return _0x46d2aa(Fe,{});case h[_0x36d96e(0x24a)]:return _0x46d2aa($e,{'coordinator':_0x2e5380});default:return null;}}function Pe(_0x413b8f){var _0x209edc=_0x1d5b70;const {coordinator:_0x19cc61}=_0x413b8f;return _0x5c1ec5(_0x1ff51,{'children':[_0x46d2aa(_0x209edc(0x26f),{'className':_0x209edc(0x266),'children':'Present\x20this\x20document'}),_0x46d2aa(_0x1527c3,{'onClick':()=>_0x19cc61[_0x209edc(0x1dc)](),'children':'Start'})]});}function _0x16a7(_0x4f365a,_0x4695d7){var _0x30f0ab=_0x30f0();return _0x16a7=function(_0x16a7fc,_0x409c94){_0x16a7fc=_0x16a7fc-0x1cd;var _0x2433ce=_0x30f0ab[_0x16a7fc];return _0x2433ce;},_0x16a7(_0x4f365a,_0x4695d7);}function Ae(_0x4ec79a){var _0x45a453=_0x1d5b70;const {coordinator:_0x44174e}=_0x4ec79a;return _0x5c1ec5(_0x1ff51,{'children':[_0x46d2aa(_0x45a453(0x26f),{'className':_0x45a453(0x266),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x46d2aa(_0x1527c3,{'onClick':()=>_0x44174e[_0x45a453(0x224)](),'children':_0x45a453(0x22d)})]});}function Te(_0x414686){var _0x17dfd3=_0x1d5b70;const {coordinator:_0x5d4764}=_0x414686;return _0x5c1ec5(_0x1ff51,{'children':[_0x46d2aa(_0x17dfd3(0x26f),{'className':_0x17dfd3(0x266),'children':_0x17dfd3(0x211)}),_0x46d2aa(_0x1527c3,{'variant':_0x17dfd3(0x260),'onClick':()=>_0x5d4764[_0x17dfd3(0x1eb)](),'children':_0x17dfd3(0x1ee)})]});}function $e(_0x307b9e){var _0x37b677=_0x1d5b70;const {coordinator:_0x2c5124}=_0x307b9e;return _0x5c1ec5(_0x1ff51,{'children':[_0x46d2aa(_0x37b677(0x26f),{'className':_0x37b677(0x266),'children':_0x37b677(0x22a)}),_0x46d2aa(_0x1527c3,{'variant':_0x37b677(0x27e),'onClick':()=>_0x2c5124['stopPresenting'](),'children':_0x37b677(0x214)})]});}function Fe(){var _0x33b266=_0x1d5b70;return _0x46d2aa(_0x1ff51,{'children':_0x33b266(0x24b)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x1e1ed7,_0x3a02a7,_0x4476e3,_0x4f9350)=>{var _0x33dd84=_0x1d5b70;for(var _0xc200c3=_0x4f9350>0x1?void 0x0:_0x4f9350?He(_0x3a02a7,_0x4476e3):_0x3a02a7,_0x30cce4=_0x1e1ed7[_0x33dd84(0x253)]-0x1,_0x22d6a8;_0x30cce4>=0x0;_0x30cce4--)(_0x22d6a8=_0x1e1ed7[_0x30cce4])&&(_0xc200c3=_0x22d6a8(_0xc200c3)||_0xc200c3);return _0xc200c3;},T=(_0x11a923,_0x126a42)=>(_0x84b3a0,_0x36f3b6)=>_0x126a42(_0x84b3a0,_0x36f3b6,_0x11a923);let I=class extends _0x5dd809{constructor(_0x5720b5,_0x39efb8){var _0x268f78=_0x1d5b70;super(),this['_injector']=_0x5720b5,this[_0x268f78(0x255)]=_0x39efb8,this['_mountLiveShare']();}[_0x1d5b70(0x1e6)](){var _0x247dce=_0x1d5b70;this[_0x247dce(0x254)](this[_0x247dce(0x255)][_0x247dce(0x27a)](_0x53c462[_0x247dce(0x1ea)],()=>_0xcd3d9a(ye,this['_injector'])));}};I=je([T(0x0,_0x9f09cd(_0x454c2a)),T(0x1,_0x3770e4)],I);const Ue='live-share.config',$={};var Ve=Object[_0x1d5b70(0x1f8)],Me=(_0x33298e,_0x49c302,_0x34acc2,_0x13a985)=>{for(var _0x4d7344=_0x13a985>0x1?void 0x0:_0x13a985?Ve(_0x49c302,_0x34acc2):_0x49c302,_0x341dd7=_0x33298e['length']-0x1,_0x408127;_0x341dd7>=0x0;_0x341dd7--)(_0x408127=_0x33298e[_0x341dd7])&&(_0x4d7344=_0x408127(_0x4d7344)||_0x4d7344);return _0x4d7344;},ke=(_0x351033,_0x292e8e)=>(_0x304ddf,_0x1e10a7)=>_0x292e8e(_0x304ddf,_0x1e10a7,_0x351033);let b=class extends _0x5dd809{constructor(_0x1963e7){var _0x43004f=_0x1d5b70;super(),this[_0x43004f(0x207)]=_0x1963e7,this[_0x43004f(0x206)]();}['_init'](){var _0x3c46ad=_0x1d5b70;[_0x2af7e3['id'],_0x4699e2['id'],_0x2c2b73['id']][_0x3c46ad(0x25d)](_0x2b89b3=>{var _0x979c97=_0x3c46ad;this['disposeWithMe'](this[_0x979c97(0x207)]['registerSharedOperation'](_0x2b89b3));});}};b=Me([ke(0x0,_0x9f09cd(L))],b);var Ge=Object[_0x1d5b70(0x21f)],We=Object[_0x1d5b70(0x1f8)],Ye=(_0x4b0f55,_0x562faf,_0x59cfd6)=>_0x562faf in _0x4b0f55?Ge(_0x4b0f55,_0x562faf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59cfd6}):_0x4b0f55[_0x562faf]=_0x59cfd6,Be=(_0xe643ba,_0x201648,_0x22fb86,_0xe7301b)=>{var _0x4b37eb=_0x1d5b70;for(var _0x3d0033=_0xe7301b>0x1?void 0x0:_0xe7301b?We(_0x201648,_0x22fb86):_0x201648,_0x167c3b=_0xe643ba[_0x4b37eb(0x253)]-0x1,_0x328811;_0x167c3b>=0x0;_0x167c3b--)(_0x328811=_0xe643ba[_0x167c3b])&&(_0x3d0033=_0x328811(_0x3d0033)||_0x3d0033);return _0x3d0033;},F=(_0x27548f,_0x281347)=>(_0x4663a0,_0x24b685)=>_0x281347(_0x4663a0,_0x24b685,_0x27548f),J=(_0x525e14,_0x486990,_0x59da90)=>Ye(_0x525e14,typeof _0x486990!=_0x1d5b70(0x1e7)?_0x486990+'':_0x486990,_0x59da90);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x47c218{constructor(_0x4f572b=$,_0x223b9f,_0x1d65a9){var _0x4d1d61=_0x1d5b70;super(),this[_0x4d1d61(0x274)]=_0x4f572b,this['_injector']=_0x223b9f,this[_0x4d1d61(0x272)]=_0x1d65a9;const {..._0x316349}=_0x71c5cd({},$,this[_0x4d1d61(0x274)]);this[_0x4d1d61(0x272)][_0x4d1d61(0x270)](Ue,_0x316349);}['onStarting'](){var _0x251287=_0x1d5b70;_0x412ba8(this['_injector'],_0x58f7e9([[L],[m],[b],[I]],this[_0x251287(0x274)]['override'])),_0x2497e9(this['_injector'],[[b]]);}[_0x1d5b70(0x250)](){var _0x1f2a75=_0x1d5b70;_0x2497e9(this[_0x1f2a75(0x1ce)],[[I]]);}};J(O,'type',_0x129dbe[_0x1d5b70(0x23c)]),J(O,'pluginName',Ze),O=Be([_0x3c4c14(_0x10eb0c),F(0x1,_0x9f09cd(_0x454c2a)),F(0x2,_0x536ce4)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x421f7a=_0x4030;(function(_0x4b074f,_0x3cdfe4){var _0x379ffb=_0x4030,_0x4a4876=_0x4b074f();while(!![]){try{var _0x519817=-parseInt(_0x379ffb(0x1f3))/0x1+-parseInt(_0x379ffb(0x18f))/0x2*(parseInt(_0x379ffb(0x1e5))/0x3)+parseInt(_0x379ffb(0x1f6))/0x4*(parseInt(_0x379ffb(0x191))/0x5)+parseInt(_0x379ffb(0x1fa))/0x6+parseInt(_0x379ffb(0x1e7))/0x7*(parseInt(_0x379ffb(0x1a7))/0x8)+parseInt(_0x379ffb(0x202))/0x9+parseInt(_0x379ffb(0x1a6))/0xa;if(_0x519817===_0x3cdfe4)break;else _0x4a4876['push'](_0x4a4876['shift']());}catch(_0x348f7a){_0x4a4876['push'](_0x4a4876['shift']());}}}(_0x326c,0x684c4));var q=Object[_0x421f7a(0x17c)],z=(_0x327b43,_0x1b4357,_0x301a3f)=>_0x1b4357 in _0x327b43?q(_0x327b43,_0x1b4357,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x301a3f}):_0x327b43[_0x1b4357]=_0x301a3f,d=(_0xd3575,_0x449a63,_0x3411c0)=>z(_0xd3575,typeof _0x449a63!='symbol'?_0x449a63+'':_0x449a63,_0x3411c0);import{Disposable as _0x2abf63,toDisposable as _0x1078e1,IUniverInstanceService as _0x3889bb,Inject as _0x4b4c18,Injector as _0x12ff87,IConfigService as _0x283dc5,ICommandService as _0x62e54c,RxDisposable as _0x1bc197,UniverInstanceType as _0x3234f9,DisposableCollection as _0x3fbfad,CommandType as _0x1b7884,DependentOn as _0x242f70,Plugin as _0x525e5f,merge as _0x53247a,registerDependencies as _0x3bf986,mergeOverrideWithDependencies as _0x184474,touchDependencies as _0x10bb21}from'@univerjs/core';import{useDependency as _0x20977d,useObservable as _0xc10a5c,IUIPartsService as _0x1c1d17,BuiltInUIPart as _0x1697f8,connectInjector as _0x10655a}from'@univerjs/ui';import{jsx as _0x2ca145,jsxs as _0x3ee81b,Fragment as _0x38862d}from'react/jsx-runtime';import{Dropdown as _0x258e49,clsx as _0x9a7ef5,Button as _0x47729a}from'@univerjs/design';import{forwardRef as _0xcf7a4f,useRef as _0x435daf,createElement as _0x376bb7,useState as _0x4f9eda,useEffect as _0x4ebfa4}from'react';import{CollaborationEvent as _0x155168,parseProtocolChangeset as _0x47a67c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32ee68,SessionStatus as _0x5757f7,UniverCollaborationClientPlugin as _0x4057a8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x33c245,SetWorksheetActiveOperation as _0x278948}from'@univerjs/sheets';import{BehaviorSubject as _0x4c5bc1,Subject as _0x80fbac}from'rxjs';import{takeUntil as _0x3cddc9,throttleTime as _0x528d93}from'rxjs/operators';import{SetZoomRatioOperation as _0x192820,SetScrollOperation as _0x27f0c3}from'@univerjs/sheets-ui';var c=function(){return c=Object['assign']||function(_0x3d065e){var _0x3cf8e7=_0x4030;for(var _0x45e2d8,_0x1ac5af=0x1,_0x4d731c=arguments[_0x3cf8e7(0x1ac)];_0x1ac5af<_0x4d731c;_0x1ac5af++){_0x45e2d8=arguments[_0x1ac5af];for(var _0x5a84fc in _0x45e2d8)Object[_0x3cf8e7(0x1d9)]['hasOwnProperty'][_0x3cf8e7(0x1c4)](_0x45e2d8,_0x5a84fc)&&(_0x3d065e[_0x5a84fc]=_0x45e2d8[_0x5a84fc]);}return _0x3d065e;},c['apply'](this,arguments);},Oe=function(_0x4145bd,_0x44cf15){var _0x287d30=_0x421f7a,_0x20f715={};for(var _0x129e02 in _0x4145bd)Object[_0x287d30(0x1d9)][_0x287d30(0x15d)][_0x287d30(0x1c4)](_0x4145bd,_0x129e02)&&_0x44cf15[_0x287d30(0x1e0)](_0x129e02)<0x0&&(_0x20f715[_0x129e02]=_0x4145bd[_0x129e02]);if(_0x4145bd!=null&&typeof Object[_0x287d30(0x1d4)]==_0x287d30(0x1ba)){for(var _0x558d88=0x0,_0x129e02=Object[_0x287d30(0x1d4)](_0x4145bd);_0x558d88<_0x129e02[_0x287d30(0x1ac)];_0x558d88++)_0x44cf15[_0x287d30(0x1e0)](_0x129e02[_0x558d88])<0x0&&Object['prototype'][_0x287d30(0x1e4)][_0x287d30(0x1c4)](_0x4145bd,_0x129e02[_0x558d88])&&(_0x20f715[_0x129e02[_0x558d88]]=_0x4145bd[_0x129e02[_0x558d88]]);}return _0x20f715;},W=_0xcf7a4f(function(_0x2456e4,_0xbd4b98){var _0x232875=_0x421f7a,_0x45f655=_0x2456e4[_0x232875(0x1da)],_0x4d59cf=_0x2456e4['id'],_0x541eb9=_0x2456e4[_0x232875(0x176)],_0x3a0135=_0x2456e4[_0x232875(0x204)],_0x10f4f5=Oe(_0x2456e4,['icon','id','className',_0x232875(0x204)]),_0x132fda=_0x232875(0x18b)[_0x232875(0x1d7)](_0x4d59cf,'\x20')[_0x232875(0x1d7)](_0x541eb9||'')[_0x232875(0x16b)](),_0xe80919=_0x435daf('_'[_0x232875(0x1d7)](Ne()));return Y(_0x45f655,''[_0x232875(0x1d7)](_0x4d59cf),{'defIds':_0x45f655[_0x232875(0x200)],'idSuffix':_0xe80919[_0x232875(0x171)]},c({'ref':_0xbd4b98,'className':_0x132fda},_0x10f4f5),_0x3a0135);});function Y(_0x55f07b,_0x26e466,_0x3e3c17,_0x2c612d,_0xc69d73){var _0x2a758c=_0x421f7a;return _0x376bb7(_0x55f07b[_0x2a758c(0x1e8)],c(c({'key':_0x26e466},Ee(_0x55f07b,_0x3e3c17,_0xc69d73)),_0x2c612d),(we(_0x55f07b,_0x3e3c17)[_0x2a758c(0x188)]||[])[_0x2a758c(0x1c0)](function(_0x40c3b2,_0x36b11a){var _0x304901=_0x2a758c;return Y(_0x40c3b2,''[_0x304901(0x1d7)](_0x26e466,'-')[_0x304901(0x1d7)](_0x55f07b['tag'],'-')[_0x304901(0x1d7)](_0x36b11a),_0x3e3c17,void 0x0,_0xc69d73);}));}function Ee(_0x175085,_0x35b402,_0xc6209e){var _0x464de0=_0x421f7a,_0x2bfde6=c({},_0x175085[_0x464de0(0x16d)]);_0xc6209e!=null&&_0xc6209e['colorChannel1']&&_0x2bfde6['fill']===_0x464de0(0x1ff)&&(_0x2bfde6['fill']=_0xc6209e['colorChannel1']),_0x175085['tag']===_0x464de0(0x16e)&&_0x2bfde6['id']&&(_0x2bfde6['id']=_0x2bfde6['id']+_0x35b402['idSuffix']),Object[_0x464de0(0x1d2)](_0x2bfde6)[_0x464de0(0x16c)](function(_0x4fac57){var _0x352125=_0x464de0,_0x98b365=_0x4fac57[0x0],_0x1589b8=_0x4fac57[0x1];_0x98b365===_0x352125(0x16e)&&typeof _0x1589b8==_0x352125(0x1af)&&(_0x2bfde6[_0x98b365]=_0x1589b8[_0x352125(0x1e6)](/url\(#(.*)\)/,_0x352125(0x187)[_0x352125(0x1d7)](_0x35b402[_0x352125(0x190)],')')));});var _0x33d12e=_0x35b402[_0x464de0(0x200)];return!_0x33d12e||_0x33d12e[_0x464de0(0x1ac)]===0x0||(_0x175085[_0x464de0(0x1e8)]===_0x464de0(0x1db)&&_0x2bfde6[_0x464de0(0x1b1)]&&(_0x2bfde6['xlink:href']=_0x2bfde6[_0x464de0(0x1b1)]+_0x35b402[_0x464de0(0x190)]),Object[_0x464de0(0x1d2)](_0x2bfde6)[_0x464de0(0x16c)](function(_0x112c66){var _0x2996fe=_0x464de0,_0x4db863=_0x112c66[0x0],_0xd714ca=_0x112c66[0x1];typeof _0xd714ca=='string'&&(_0x2bfde6[_0x4db863]=_0xd714ca[_0x2996fe(0x1e6)](/url\(#(.*)\)/,'url(#$1'[_0x2996fe(0x1d7)](_0x35b402[_0x2996fe(0x190)],')')));})),_0x2bfde6;}function we(_0x5756c2,_0x424827){var _0x64bd5=_0x421f7a,_0xd7a4fc,_0x363d3e=_0x424827[_0x64bd5(0x200)];return!_0x363d3e||_0x363d3e[_0x64bd5(0x1ac)]===0x0?_0x5756c2:_0x5756c2[_0x64bd5(0x1e8)]===_0x64bd5(0x167)&&(!((_0xd7a4fc=_0x5756c2['children'])===null||_0xd7a4fc===void 0x0)&&_0xd7a4fc[_0x64bd5(0x1ac)])?c(c({},_0x5756c2),{'children':_0x5756c2[_0x64bd5(0x188)][_0x64bd5(0x1c0)](function(_0x332404){var _0x101d10=_0x64bd5;return typeof _0x332404[_0x101d10(0x16d)]['id']==_0x101d10(0x1af)&&_0x363d3e&&_0x363d3e['includes'](_0x332404[_0x101d10(0x16d)]['id'])?c(c({},_0x332404),{'attrs':c(c({},_0x332404[_0x101d10(0x16d)]),{'id':_0x332404['attrs']['id']+_0x424827[_0x101d10(0x190)]})}):_0x332404;})}):_0x5756c2;}function Ne(){var _0x69c7a3=_0x421f7a;return Math[_0x69c7a3(0x1cd)]()['toString'](0x24)[_0x69c7a3(0x15f)](0x2,0x8);}W[_0x421f7a(0x180)]=_0x421f7a(0x1cb);var Ce={'tag':_0x421f7a(0x1ed),'attrs':{'xmlns':_0x421f7a(0x20b),'fill':_0x421f7a(0x19f),'viewBox':_0x421f7a(0x16f),'width':'1em','height':_0x421f7a(0x17b)},'children':[{'tag':'path','attrs':{'fill':_0x421f7a(0x177),'d':_0x421f7a(0x1f5)}},{'tag':_0x421f7a(0x1b9),'attrs':{'fill':_0x421f7a(0x177),'d':_0x421f7a(0x196),'fillRule':_0x421f7a(0x1dc),'clipRule':_0x421f7a(0x1dc)}}]},B=_0xcf7a4f(function(_0x421f5e,_0x2dd6e2){var _0x425499=_0x421f7a;return _0x376bb7(W,Object['assign']({},_0x421f5e,{'id':_0x425499(0x1a8),'ref':_0x2dd6e2,'icon':Ce}));});B[_0x421f7a(0x180)]=_0x421f7a(0x185);class L extends _0x2abf63{constructor(){var _0x3c021e=_0x421f7a;super(...arguments),d(this,_0x3c021e(0x1c9),new Set()),d(this,_0x3c021e(0x199),new Set());}[_0x421f7a(0x1f9)](_0x4fc66b){var _0x36ba99=_0x421f7a;return this['_sharedOperations'][_0x36ba99(0x1c1)](_0x4fc66b),_0x1078e1(()=>this['_sharedOperations'][_0x36ba99(0x1d3)](_0x4fc66b));}[_0x421f7a(0x19a)](_0x1072ae){var _0x239e50=_0x421f7a;return this['_reporters'][_0x239e50(0x1c1)](_0x1072ae),_0x1078e1(()=>this[_0x239e50(0x199)]['delete'](_0x1072ae));}[_0x421f7a(0x169)](_0x432576){var _0xd168ed=_0x421f7a;return this['_sharedOperations'][_0xd168ed(0x179)](_0x432576);}[_0x421f7a(0x209)](_0x295c73){var _0x79584=_0x421f7a;return Array[_0x79584(0x194)](this[_0x79584(0x199)])[_0x79584(0x1c0)](_0x1a2860=>_0x1a2860(_0x295c73));}}var De=Object[_0x421f7a(0x1cf)],Z=(_0x3bf1d5,_0x1c6f60,_0x8e0f6,_0x48e44a)=>{var _0x5488e8=_0x421f7a;for(var _0x475bec=_0x48e44a>0x1?void 0x0:_0x48e44a?De(_0x1c6f60,_0x8e0f6):_0x1c6f60,_0x1897f6=_0x3bf1d5[_0x5488e8(0x1ac)]-0x1,_0x2cf2cb;_0x1897f6>=0x0;_0x1897f6--)(_0x2cf2cb=_0x3bf1d5[_0x1897f6])&&(_0x475bec=_0x2cf2cb(_0x475bec)||_0x475bec);return _0x475bec;},f=(_0x2ee2cb,_0x1e86c4)=>(_0x2fef02,_0x3086d7)=>_0x1e86c4(_0x2fef02,_0x3086d7,_0x2ee2cb);let m=class extends _0x1bc197{constructor(_0x2ada05,_0x4a84fa,_0x385782){var _0x74da21=_0x421f7a;super(),d(this,_0x74da21(0x1f2),new Map()),(this[_0x74da21(0x197)]=_0x2ada05,this['_injector']=_0x4a84fa,this[_0x74da21(0x1ef)]=_0x385782,this[_0x74da21(0x183)]());}async['getLiveShareCoordinator'](_0x1a148f){var _0x504322=_0x421f7a;return this[_0x504322(0x1f2)]['has'](_0x1a148f)||await this['_startLiveShareCoordinator'](_0x1a148f),this[_0x504322(0x1f2)][_0x504322(0x1ce)](_0x1a148f);}[_0x421f7a(0x183)](){var _0x2c5e49=_0x421f7a;this[_0x2c5e49(0x197)]['getTypeOfUnitAdded$'](_0x3234f9['UNIVER_SHEET'])[_0x2c5e49(0x166)](_0x3cddc9(this[_0x2c5e49(0x1a2)]))['subscribe'](async _0x3b300c=>{var _0x2b8016=_0x2c5e49;const _0x564566=_0x3b300c[_0x2b8016(0x1bf)]();this[_0x2b8016(0x1f2)]['has'](_0x564566)||this[_0x2b8016(0x184)](_0x564566);}),this[_0x2c5e49(0x197)][_0x2c5e49(0x15c)](_0x3234f9['UNIVER_SHEET'])[_0x2c5e49(0x166)](_0x3cddc9(this['dispose$']))[_0x2c5e49(0x1cc)](_0x1dfc27=>{var _0x547654=_0x2c5e49;const _0x34d4f3=_0x1dfc27[_0x547654(0x1bf)](),_0x33c495=this[_0x547654(0x1f2)]['get'](_0x34d4f3);_0x33c495==null||_0x33c495[_0x547654(0x19b)]();});}async[_0x421f7a(0x184)](_0x28ac3c){var _0x68a82d=_0x421f7a;const _0x126f4b=await this[_0x68a82d(0x1ef)][_0x68a82d(0x20a)](_0x28ac3c),_0x404c95=this[_0x68a82d(0x1b7)][_0x68a82d(0x1dd)](C,_0x28ac3c,_0x126f4b);return _0x404c95[_0x68a82d(0x1a3)](),this[_0x68a82d(0x1f2)][_0x68a82d(0x1be)](_0x28ac3c,_0x404c95),_0x404c95;}};m=Z([f(0x0,_0x3889bb),f(0x1,_0x4b4c18(_0x12ff87)),f(0x2,_0x4b4c18(_0x32ee68))],m);var h=(_0x51a75b=>(_0x51a75b['OFFLINE']=_0x421f7a(0x20d),_0x51a75b[_0x421f7a(0x1d6)]=_0x421f7a(0x1eb),_0x51a75b[_0x421f7a(0x1c2)]='following',_0x51a75b['NOT_FOLLOWING']=_0x421f7a(0x19d),_0x51a75b['PRESENTING']=_0x421f7a(0x17d),_0x51a75b))(h||{});const xe=_0x421f7a(0x1f4),Le=0xc8;let C=class extends _0x1bc197{constructor(_0x5425c9,_0x255bdb,_0x292398,_0x24d9d3,_0x2e7543){var _0x37c763=_0x421f7a;super(),d(this,_0x37c763(0x1e1),new _0x4c5bc1('idle')),d(this,_0x37c763(0x1bd),this[_0x37c763(0x1e1)][_0x37c763(0x208)]()),d(this,_0x37c763(0x183),!0x1),d(this,_0x37c763(0x1e3),null),d(this,'_presenter',null),(this[_0x37c763(0x174)]=_0x5425c9,this['_collabSession']=_0x255bdb,this['_configService']=_0x292398,this[_0x37c763(0x161)]=_0x24d9d3,this[_0x37c763(0x1e2)]=_0x2e7543);}get['_status'](){var _0x562318=_0x421f7a;return this[_0x562318(0x1e1)][_0x562318(0x1de)]();}[_0x421f7a(0x19b)](){var _0x110bad=_0x421f7a,_0x643cc1;(_0x643cc1=this[_0x110bad(0x1e3)])==null||_0x643cc1['dispose'](),this[_0x110bad(0x1e1)][_0x110bad(0x1b5)](_0x110bad(0x1eb)),this[_0x110bad(0x1e1)][_0x110bad(0x189)]();}[_0x421f7a(0x1a3)](){var _0x246eb2=_0x421f7a;this[_0x246eb2(0x183)]||(this[_0x246eb2(0x183)]=!0x0,this['_collabSession'][_0x246eb2(0x1c6)]['pipe'](_0x3cddc9(this[_0x246eb2(0x1a2)]))[_0x246eb2(0x1cc)](_0x5d4f51=>{var _0x333cce=_0x246eb2;switch(_0x5d4f51){case _0x5757f7[_0x333cce(0x1bb)]:this[_0x333cce(0x1d0)]();break;case _0x5757f7[_0x333cce(0x1ad)]:this['_handleOnline']();break;}}),this[_0x246eb2(0x168)]['event$'][_0x246eb2(0x166)](_0x3cddc9(this[_0x246eb2(0x1a2)]))[_0x246eb2(0x1cc)](_0x505099=>{var _0x35b930=_0x246eb2;const {eventID:_0x7efaaf}=_0x505099;switch(_0x7efaaf){case _0x155168[_0x35b930(0x1fe)]:this[_0x35b930(0x165)](_0x505099);break;case _0x155168[_0x35b930(0x1b2)]:this[_0x35b930(0x20e)](_0x505099);break;case _0x155168[_0x35b930(0x203)]:this[_0x35b930(0x207)]();break;case _0x155168['NEW_CHANGESETS']:this[_0x35b930(0x186)](_0x505099);break;}}));}[_0x421f7a(0x1b3)](){var _0x5480fe=_0x421f7a;this[_0x5480fe(0x168)][_0x5480fe(0x20c)]({'eventID':_0x155168[_0x5480fe(0x18a)],'data':{'unitID':this[_0x5480fe(0x174)],'userID':this['_collabSession']['getMemberID']()}},this[_0x5480fe(0x174)]);}[_0x421f7a(0x195)](){var _0x99620=_0x421f7a;this[_0x99620(0x1d1)]===_0x99620(0x17d)&&(this['_status$']['next'](_0x99620(0x1eb)),this[_0x99620(0x168)][_0x99620(0x20c)]({'eventID':_0x155168['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x99620(0x174)]}},this[_0x99620(0x174)]));}[_0x421f7a(0x206)](){var _0x3c7396=_0x421f7a;this['_status']===_0x3c7396(0x19d)&&(this[_0x3c7396(0x1e1)]['next'](_0x3c7396(0x18e)),this['_startFollowing']());}['stopFollowing'](){var _0x44990d=_0x421f7a;this['_status']===_0x44990d(0x18e)&&this[_0x44990d(0x1b4)]();}[_0x421f7a(0x165)](_0x48cf51){var _0x4564df=_0x421f7a;const {presenter:_0x191f33}=_0x48cf51['data'],_0x4dde2e=this[_0x4564df(0x168)][_0x4564df(0x1d8)]();this[_0x4564df(0x178)]=_0x191f33,_0x191f33===_0x4dde2e?(this[_0x4564df(0x1b4)](),this[_0x4564df(0x17f)]()):this[_0x4564df(0x1d1)]!==_0x4564df(0x19d)&&(this[_0x4564df(0x17a)](),this[_0x4564df(0x182)]());}[_0x421f7a(0x1fc)](){var _0x531eb9=_0x421f7a;const _0x4b8989={'eventID':_0x155168[_0x531eb9(0x1c3)]};this[_0x531eb9(0x168)][_0x531eb9(0x20c)](_0x4b8989,this[_0x531eb9(0x174)]);}[_0x421f7a(0x207)](){var _0x39f532=_0x421f7a;this[_0x39f532(0x178)]=null,this[_0x39f532(0x1d1)]!==_0x39f532(0x17d)&&this[_0x39f532(0x192)]();}['_handleNewChangeSets'](_0x83e6bd){var _0x3d91e1=_0x421f7a;if(this[_0x3d91e1(0x1d1)]==='following'&&this[_0x3d91e1(0x178)]===_0x83e6bd['data'][_0x3d91e1(0x1d5)]){const _0x2a209b=_0x47a67c(_0x83e6bd[_0x3d91e1(0x1f0)])[_0x3d91e1(0x162)][_0x3d91e1(0x1f7)]()['find'](_0x194ccc=>_0x194ccc['id']===_0x33c245['id']);if(_0x2a209b){const _0x579c09=_0x2a209b[_0x3d91e1(0x15b)]['unitId'],_0x100947=_0x2a209b[_0x3d91e1(0x15b)][_0x3d91e1(0x1b6)]['id'];setTimeout(()=>{var _0x22aeb8=_0x3d91e1;this[_0x22aeb8(0x1e2)][_0x22aeb8(0x160)](_0x278948['id'],{'unitId':_0x579c09,'subUnitId':_0x100947},{'fromCollab':!0x0});});}}}[_0x421f7a(0x17f)](){var _0x38a758=_0x421f7a;this[_0x38a758(0x1e1)][_0x38a758(0x1b5)](_0x38a758(0x17d));const _0x472b31=new Map(),_0x1c5dee=this[_0x38a758(0x1e3)]=new _0x3fbfad();_0x1c5dee[_0x38a758(0x1c1)](_0x1078e1(()=>{var _0x350a60=_0x38a758;_0x472b31[_0x350a60(0x16c)](_0x18d07c=>_0x18d07c[_0x350a60(0x189)]()),_0x472b31[_0x350a60(0x1df)]();})),_0x1c5dee[_0x38a758(0x1c1)](this[_0x38a758(0x1e2)][_0x38a758(0x173)](_0x834fde=>{var _0x38733e=_0x38a758,_0xffd947;if(_0x834fde[_0x38733e(0x1c5)]!==_0x1b7884[_0x38733e(0x18d)]||!this[_0x38733e(0x161)]['shouldShareOperation'](_0x834fde['id']))return;const {id:_0x3aa016}=_0x834fde;let _0x57938b;_0x472b31[_0x38733e(0x179)](_0x3aa016)?_0x57938b=_0x472b31[_0x38733e(0x1ce)](_0x3aa016):(_0x57938b=new _0x80fbac(),_0x472b31[_0x38733e(0x1be)](_0x3aa016,_0x57938b),_0x57938b[_0x38733e(0x166)](_0x528d93((_0xffd947=this[_0x38733e(0x1a9)][_0x38733e(0x1ea)](xe))!=null?_0xffd947:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38733e(0x1cc)](_0x520bcf=>{var _0x5241eb=_0x38733e;this[_0x5241eb(0x168)][_0x5241eb(0x20c)]({'eventID':_0x155168['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5241eb(0x174)],'operations':{[_0x520bcf['id']]:{'id':_0x520bcf['id'],'params':JSON[_0x5241eb(0x18c)](_0x520bcf[_0x5241eb(0x15b)])}}}},this[_0x5241eb(0x174)]);})),_0x57938b[_0x38733e(0x1b5)](_0x834fde);})),this['_liveShareService'][_0x38a758(0x209)](this['_unitID'])['forEach'](_0x5865fa=>this[_0x38a758(0x168)][_0x38a758(0x20c)]({'eventID':_0x155168[_0x38a758(0x1b2)],'data':{'unitID':this[_0x38a758(0x174)],'operations':{[_0x5865fa['id']]:{'id':_0x5865fa['id'],'params':JSON[_0x38a758(0x18c)](_0x5865fa['params'])}}}},this['_unitID']));}['_stopPresenting'](){var _0x2b1b29=_0x421f7a,_0x3e9251;this[_0x2b1b29(0x1e1)][_0x2b1b29(0x1b5)]('idle'),(_0x3e9251=this[_0x2b1b29(0x1e3)])==null||_0x3e9251[_0x2b1b29(0x19b)](),this[_0x2b1b29(0x1e3)]=null;}[_0x421f7a(0x182)](){var _0x529db7=_0x421f7a,_0x3f9f88;(_0x3f9f88=this[_0x529db7(0x1e3)])==null||_0x3f9f88['dispose'](),this[_0x529db7(0x1e1)][_0x529db7(0x1b5)]('following');}[_0x421f7a(0x192)](){var _0x36d8b3=_0x421f7a,_0x112b3d;this[_0x36d8b3(0x1e1)][_0x36d8b3(0x1b5)](_0x36d8b3(0x1eb)),(_0x112b3d=this[_0x36d8b3(0x1e3)])==null||_0x112b3d[_0x36d8b3(0x19b)](),this[_0x36d8b3(0x1e3)]=null;}[_0x421f7a(0x1b4)](){var _0x430138=_0x421f7a,_0x407a99;this[_0x430138(0x1e1)][_0x430138(0x1b5)](_0x430138(0x19d)),(_0x407a99=this[_0x430138(0x1e3)])==null||_0x407a99[_0x430138(0x19b)]();}[_0x421f7a(0x20e)](_0x6f38d5){var _0x4bb502=_0x421f7a;if([_0x4bb502(0x17d),_0x4bb502(0x19d),'offline']['includes'](this[_0x4bb502(0x1d1)])||!_0x6f38d5[_0x4bb502(0x1f0)]['presenter']||_0x6f38d5['data'][_0x4bb502(0x1a0)]===this[_0x4bb502(0x168)][_0x4bb502(0x1d8)]())return;this[_0x4bb502(0x1d1)]===_0x4bb502(0x1eb)&&this[_0x4bb502(0x182)]();const _0x39da89=_0x6f38d5[_0x4bb502(0x1f0)]['operations'];Object[_0x4bb502(0x1a5)](_0x39da89)['forEach'](_0x5e9898=>{var _0x121d75=_0x4bb502;this[_0x121d75(0x1e2)][_0x121d75(0x160)](_0x5e9898['id'],_0x5e9898[_0x121d75(0x15b)]?JSON[_0x121d75(0x1aa)](_0x5e9898[_0x121d75(0x15b)]):null,{'fromCollab':!0x0});});}[_0x421f7a(0x1d0)](){var _0xcc3898=_0x421f7a,_0x490604;this['_status$'][_0xcc3898(0x1b5)](_0xcc3898(0x20d)),(_0x490604=this[_0xcc3898(0x1e3)])==null||_0x490604['dispose']();}[_0x421f7a(0x1f1)](){var _0x93ed8a=_0x421f7a;this[_0x93ed8a(0x1e1)][_0x93ed8a(0x1b5)](_0x93ed8a(0x1eb)),this[_0x93ed8a(0x1fc)]();}};C=Z([f(0x2,_0x283dc5),f(0x3,_0x4b4c18(L)),f(0x4,_0x62e54c)],C);function ye(){var _0x5d27b9=_0x421f7a;const _0x2c3fa9=_0x20977d(m),_0x3ad0d9=_0x20977d(_0x3889bb),_0x40a090=_0xc10a5c(()=>_0x3ad0d9[_0x5d27b9(0x1a4)](_0x3234f9['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x389043,_0x5d2035]=_0x4f9eda(null),[_0x434ffc,_0x51a627]=_0x4f9eda(h[_0x5d27b9(0x1d6)]),_0x7f2879=_0x435daf(null);return _0x4ebfa4(()=>(_0x40a090&&_0x2c3fa9[_0x5d27b9(0x164)](_0x40a090[_0x5d27b9(0x1bf)]())[_0x5d27b9(0x19c)](_0x2ffbca=>{var _0x5b18ec=_0x5d27b9;_0x5d2035(_0x2ffbca),_0x7f2879['current']=_0x2ffbca['status$'][_0x5b18ec(0x1cc)](_0x1072cf=>{_0x51a627(_0x1072cf);});}),()=>{var _0x5f5baa=_0x5d27b9,_0x29475e;(_0x29475e=_0x7f2879[_0x5f5baa(0x171)])==null||_0x29475e['unsubscribe'](),_0x7f2879[_0x5f5baa(0x171)]=null;}),[_0x40a090,_0x2c3fa9]),_0x389043?_0x2ca145(_0x258e49,{'align':_0x5d27b9(0x1ee),'disabled':_0x434ffc===h[_0x5d27b9(0x1bb)],'className':_0x5d27b9(0x210),'overlay':_0x2ca145(Re,{'status':_0x434ffc,'coordinator':_0x389043}),'children':_0x2ca145(_0x5d27b9(0x172),{'className':_0x9a7ef5(_0x5d27b9(0x16a),{'univer-cursor-not-allowed':_0x434ffc===h[_0x5d27b9(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x434ffc!==h[_0x5d27b9(0x1bb)]}),'type':_0x5d27b9(0x172),'children':_0x2ca145(B,{'className':_0x5d27b9(0x201)})})}):null;}function Re(_0x14a21e){var _0x1f65ec=_0x421f7a;const {status:_0x1844cd,coordinator:_0xf0ac31}=_0x14a21e;switch(_0x1844cd){case h[_0x1f65ec(0x1d6)]:return _0x2ca145(Pe,{'coordinator':_0xf0ac31});case h[_0x1f65ec(0x1c2)]:return _0x2ca145(Ae,{'coordinator':_0xf0ac31});case h[_0x1f65ec(0x1fd)]:return _0x2ca145(Te,{'coordinator':_0xf0ac31});case h['OFFLINE']:return _0x2ca145(Fe,{});case h[_0x1f65ec(0x1ca)]:return _0x2ca145($e,{'coordinator':_0xf0ac31});default:return null;}}function Pe(_0x21fb35){var _0x528a3d=_0x421f7a;const {coordinator:_0x33f64e}=_0x21fb35;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145('div',{'className':_0x528a3d(0x1c7),'children':_0x528a3d(0x1b8)}),_0x2ca145(_0x47729a,{'onClick':()=>_0x33f64e[_0x528a3d(0x1b3)](),'children':_0x528a3d(0x1fb)})]});}function Ae(_0x3f254f){var _0x27377c=_0x421f7a;const {coordinator:_0x5a0829}=_0x3f254f;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x27377c(0x1ae),{'className':_0x27377c(0x1c7),'children':_0x27377c(0x1bc)}),_0x2ca145(_0x47729a,{'onClick':()=>_0x5a0829[_0x27377c(0x193)](),'children':_0x27377c(0x1f8)})]});}function Te(_0x1b6d50){var _0x48f60c=_0x421f7a;const {coordinator:_0x2d40c7}=_0x1b6d50;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x48f60c(0x1ae),{'className':_0x48f60c(0x1c7),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2ca145(_0x47729a,{'variant':_0x48f60c(0x198),'onClick':()=>_0x2d40c7['startFollowing'](),'children':_0x48f60c(0x205)})]});}function _0x4030(_0x306a91,_0x412983){var _0x326c70=_0x326c();return _0x4030=function(_0x4030e4,_0x337e69){_0x4030e4=_0x4030e4-0x15b;var _0x419c2c=_0x326c70[_0x4030e4];return _0x419c2c;},_0x4030(_0x306a91,_0x412983);}function $e(_0x3199be){var _0x37518e=_0x421f7a;const {coordinator:_0x8afd8e}=_0x3199be;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x37518e(0x1ae),{'className':_0x37518e(0x1c7),'children':_0x37518e(0x1ec)}),_0x2ca145(_0x47729a,{'variant':_0x37518e(0x1e9),'onClick':()=>_0x8afd8e[_0x37518e(0x195)](),'children':_0x37518e(0x1b0)})]});}function Fe(){var _0x4f1b44=_0x421f7a;return _0x2ca145(_0x38862d,{'children':_0x4f1b44(0x15e)});}function _0x326c(){var _0xf57f39=['requireSession','http://www.w3.org/2000/svg','send','offline','_handleOperation','pluginName','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','params','getTypeOfUnitDisposed$','hasOwnProperty','You\x27are\x20offline.','substring','executeCommand','_liveShareService','mutations','setConfig','getLiveShareCoordinator','_handleNewHost','pipe','defs','_collabSession','shouldShareOperation','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','trim','forEach','attrs','mask','0\x200\x2017\x2017','UNIVER_LIVE_SHARE_PLUGIN','current','button','onCommandExecuted','_unitID','disposeWithMe','className','currentColor','_presenter','has','_stopPresenting','1em','defineProperty','presenting','UNIVER_UNKNOWN','_startPresenting','displayName','_mountLiveShare','_startFollowing','_init','_startLiveShareCoordinator','LiveShareIcon','_handleNewChangeSets','url(#$1','children','complete','LIVESHARE_REQUEST_HOST','univerjs-icon\x20univerjs-icon-','stringify','OPERATION','following','6424EmtJrw','idSuffix','70SbgAfy','_beIdle','stopFollowing','from','stopPresenting','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_univerInstanceService','text','_reporters','registerInitialStateReporter','dispose','then','not-following','onStarting','none','presenter','onRendered','dispose$','init','getCurrentTypeOfUnit$','values','1818530RpOJEz','56IwtrLP','live-share-icon','_configService','parse','_config','length','ONLINE','div','string','Stop\x20presenting','xlink:href','LIVESHARE_OPERATION','tryStartPresenting','_stopFollowing','next','sheet','_injector','Present\x20this\x20document','path','function','OFFLINE','You\x27re\x20following\x20the\x20presenter','status$','set','getUnitId','map','add','FOLLOWING','LIVESHARE_FETCH_OPERATIONS','call','type','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','_uiPartsService','_sharedOperations','PRESENTING','UniverIcon','subscribe','random','get','getOwnPropertyDescriptor','_handleOffline','_status','entries','delete','getOwnPropertySymbols','memberID','IDLE','concat','getMemberID','prototype','icon','use','evenodd','createInstance','getValue','clear','indexOf','_status$','_commandService','_commandDisposable','propertyIsEnumerable','246Jsqpcs','replace','356363GhteUp','tag','default','getConfig','idle','You\x27re\x20presenting\x20the\x20document','svg','end','_collabSessionService','data','_handleOnline','_entities','696978eUFEHO','SAME_OPERATION_SHARE_INTERVAL','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','31892SjUagm','reverse','Stop\x20following','registerSharedOperation','2911860dMllIk','Start','_fetchOperations','NOT_FOLLOWING','LIVESHARE_NEW_HOST','colorChannel1','defIds','univer-size-4','2271762WbyTMA','LIVESHARE_TERMINATE','extend','Start\x20following','startFollowing','_handleTerminate','asObservable','getInitialStates'];_0x326c=function(){return _0xf57f39;};return _0x326c();}var He=Object[_0x421f7a(0x1cf)],je=(_0x3c04da,_0x37218a,_0x5a3a43,_0x1287e5)=>{var _0x360b04=_0x421f7a;for(var _0x1986a9=_0x1287e5>0x1?void 0x0:_0x1287e5?He(_0x37218a,_0x5a3a43):_0x37218a,_0x4e1cb7=_0x3c04da[_0x360b04(0x1ac)]-0x1,_0x10d972;_0x4e1cb7>=0x0;_0x4e1cb7--)(_0x10d972=_0x3c04da[_0x4e1cb7])&&(_0x1986a9=_0x10d972(_0x1986a9)||_0x1986a9);return _0x1986a9;},T=(_0x4674e6,_0x599426)=>(_0x4f9bf6,_0x55b59e)=>_0x599426(_0x4f9bf6,_0x55b59e,_0x4674e6);let I=class extends _0x2abf63{constructor(_0x2242bf,_0x1d293b){var _0x1b7628=_0x421f7a;super(),this['_injector']=_0x2242bf,this[_0x1b7628(0x1c8)]=_0x1d293b,this['_mountLiveShare']();}[_0x421f7a(0x181)](){var _0x5b2334=_0x421f7a;this['disposeWithMe'](this[_0x5b2334(0x1c8)]['registerComponent'](_0x1697f8['HEADER_MENU'],()=>_0x10655a(ye,this['_injector'])));}};I=je([T(0x0,_0x4b4c18(_0x12ff87)),T(0x1,_0x1c1d17)],I);const Ue='live-share.config',$={};var Ve=Object[_0x421f7a(0x1cf)],Me=(_0x458916,_0x3113ad,_0x5ed17d,_0x1e4067)=>{var _0x504ccb=_0x421f7a;for(var _0xd92874=_0x1e4067>0x1?void 0x0:_0x1e4067?Ve(_0x3113ad,_0x5ed17d):_0x3113ad,_0x4b0548=_0x458916[_0x504ccb(0x1ac)]-0x1,_0x3f9f1d;_0x4b0548>=0x0;_0x4b0548--)(_0x3f9f1d=_0x458916[_0x4b0548])&&(_0xd92874=_0x3f9f1d(_0xd92874)||_0xd92874);return _0xd92874;},ke=(_0x2d82b5,_0x2b2085)=>(_0x3c0c6c,_0x703a12)=>_0x2b2085(_0x3c0c6c,_0x703a12,_0x2d82b5);let b=class extends _0x2abf63{constructor(_0x4a0b2f){var _0xcd0733=_0x421f7a;super(),this[_0xcd0733(0x161)]=_0x4a0b2f,this['_init']();}['_init'](){var _0x4a2323=_0x421f7a;[_0x192820['id'],_0x27f0c3['id'],_0x278948['id']][_0x4a2323(0x16c)](_0x351165=>{var _0x5cb253=_0x4a2323;this[_0x5cb253(0x175)](this[_0x5cb253(0x161)]['registerSharedOperation'](_0x351165));});}};b=Me([ke(0x0,_0x4b4c18(L))],b);var Ge=Object[_0x421f7a(0x17c)],We=Object[_0x421f7a(0x1cf)],Ye=(_0x245414,_0x5aacc1,_0x2c161c)=>_0x5aacc1 in _0x245414?Ge(_0x245414,_0x5aacc1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c161c}):_0x245414[_0x5aacc1]=_0x2c161c,Be=(_0x34e825,_0x558721,_0x589f59,_0xe42e39)=>{var _0x28eea9=_0x421f7a;for(var _0x3a4bc3=_0xe42e39>0x1?void 0x0:_0xe42e39?We(_0x558721,_0x589f59):_0x558721,_0x1bd8c4=_0x34e825[_0x28eea9(0x1ac)]-0x1,_0x50950e;_0x1bd8c4>=0x0;_0x1bd8c4--)(_0x50950e=_0x34e825[_0x1bd8c4])&&(_0x3a4bc3=_0x50950e(_0x3a4bc3)||_0x3a4bc3);return _0x3a4bc3;},F=(_0x1208ef,_0x2de1d7)=>(_0x4e919e,_0x216c68)=>_0x2de1d7(_0x4e919e,_0x216c68,_0x1208ef),J=(_0x151eb4,_0x596286,_0x50871c)=>Ye(_0x151eb4,typeof _0x596286!='symbol'?_0x596286+'':_0x596286,_0x50871c);const Ze=_0x421f7a(0x170);let O=class extends _0x525e5f{constructor(_0x495180=$,_0x82b44c,_0x931c70){var _0x5be256=_0x421f7a;super(),this[_0x5be256(0x1ab)]=_0x495180,this[_0x5be256(0x1b7)]=_0x82b44c,this['_configService']=_0x931c70;const {..._0x5eff2b}=_0x53247a({},$,this[_0x5be256(0x1ab)]);this[_0x5be256(0x1a9)][_0x5be256(0x163)](Ue,_0x5eff2b);}[_0x421f7a(0x19e)](){var _0x23f1a2=_0x421f7a;_0x3bf986(this['_injector'],_0x184474([[L],[m],[b],[I]],this[_0x23f1a2(0x1ab)]['override'])),_0x10bb21(this['_injector'],[[b]]);}[_0x421f7a(0x1a1)](){_0x10bb21(this['_injector'],[[I]]);}};J(O,'type',_0x3234f9[_0x421f7a(0x17e)]),J(O,_0x421f7a(0x20f),Ze),O=Be([_0x242f70(_0x4057a8),F(0x1,_0x4b4c18(_0x12ff87)),F(0x2,_0x283dc5)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x1d5b70=_0x16a7;(function(_0x3c1fb6,_0x2f48e1){var _0x4a6e4c=_0x16a7,_0x39a2a2=_0x3c1fb6();while(!![]){try{var _0x199822=-parseInt(_0x4a6e4c(0x27b))/0x1*(-parseInt(_0x4a6e4c(0x1ef))/0x2)+parseInt(_0x4a6e4c(0x23e))/0x3*(-parseInt(_0x4a6e4c(0x23d))/0x4)+parseInt(_0x4a6e4c(0x1d5))/0x5*(-parseInt(_0x4a6e4c(0x26a))/0x6)+-parseInt(_0x4a6e4c(0x226))/0x7*(-parseInt(_0x4a6e4c(0x1ed))/0x8)+-parseInt(_0x4a6e4c(0x1d9))/0x9*(parseInt(_0x4a6e4c(0x228))/0xa)+-parseInt(_0x4a6e4c(0x218))/0xb+parseInt(_0x4a6e4c(0x25e))/0xc;if(_0x199822===_0x2f48e1)break;else _0x39a2a2['push'](_0x39a2a2['shift']());}catch(_0x162003){_0x39a2a2['push'](_0x39a2a2['shift']());}}}(_0x30f0,0xeaa0a));var q=Object['defineProperty'],z=(_0x5f39ad,_0x3802ee,_0x51c1d0)=>_0x3802ee in _0x5f39ad?q(_0x5f39ad,_0x3802ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51c1d0}):_0x5f39ad[_0x3802ee]=_0x51c1d0,d=(_0x1a5b21,_0x3fc234,_0x3ccad4)=>z(_0x1a5b21,typeof _0x3fc234!=_0x1d5b70(0x1e7)?_0x3fc234+'':_0x3fc234,_0x3ccad4);import{Disposable as _0x5dd809,toDisposable as _0x35611b,IUniverInstanceService as _0x25c89d,Inject as _0x9f09cd,Injector as _0x454c2a,IConfigService as _0x536ce4,ICommandService as _0x595663,RxDisposable as _0x231eea,UniverInstanceType as _0x129dbe,DisposableCollection as _0x1525a6,CommandType as _0x4d70ae,DependentOn as _0x3c4c14,Plugin as _0x47c218,merge as _0x71c5cd,registerDependencies as _0x412ba8,mergeOverrideWithDependencies as _0x58f7e9,touchDependencies as _0x2497e9}from'@univerjs/core';import{useDependency as _0x2be91e,useObservable as _0xf14f6a,IUIPartsService as _0x3770e4,BuiltInUIPart as _0x53c462,connectInjector as _0xcd3d9a}from'@univerjs/ui';import{jsx as _0x46d2aa,jsxs as _0x5c1ec5,Fragment as _0x1ff51}from'react/jsx-runtime';import{Dropdown as _0xd37ad7,clsx as _0x3be2af,Button as _0x1527c3}from'@univerjs/design';function _0x30f0(){var _0x185daf=['offline','8rnccnh','Start\x20following','6KFEFwH','_unitID','_handleOnline','currentColor','getTypeOfUnitAdded$','_stopPresenting','status$','set','map','getOwnPropertyDescriptor','_univerInstanceService','has','sessionStatus$','_handleNewHost','getInitialStates','get','_beIdle','LIVESHARE_TERMINATE','_reporters','requireSession','path','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','tag','_init','_liveShareService','UNIVER_SHEET','pipe','dispose','_handleNewChangeSets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','colorChannel1','end','idle','icon','You\x27re\x20not\x20following\x20the\x20presenter','NEW_CHANGESETS','getValue','Stop\x20presenting','live-share-icon','LIVESHARE_OPERATION','0\x200\x2017\x2017','7706820kTLbDZ','call','1em','_collabSession','shouldShareOperation','defs','_handleOperation','defineProperty','xlink:href','presenting','not-following','_startLiveShareCoordinator','stopFollowing','idSuffix','8163589mGEDQK','_status','70JLfhVi','displayName','You\x27re\x20presenting\x20the\x20document','getLiveShareCoordinator','_fetchOperations','Stop\x20following','asObservable','_entities','prototype','presenter','entries','add','_startPresenting','apply','stopPresenting','reverse','replace','stringify','_commandDisposable','children','UNIVER_UNKNOWN','5152892KcgtkR','3pzINur','_collabSessionService','_handleTerminate','hasOwnProperty','registerInitialStateReporter','subscribe','registerSharedOperation','trim','extend','ONLINE','none','executeCommand','PRESENTING','You\x27are\x20offline.','values','_commandService','complete','from','onRendered','string','parse','length','disposeWithMe','_uiPartsService','following','concat','FOLLOWING','OPERATION','next','className','_status$','forEach','12484152POPuQr','random','text','getMemberID','_handleOffline','getOwnPropertySymbols','sheet','event$','univer-mb-3\x20univer-w-full\x20univer-text-sm','getTypeOfUnitDisposed$','_stopFollowing','function','9894DdJzdp','onCommandExecuted','button','evenodd','_presenter','div','setConfig','getUnitId','_configService','delete','_config','_startFollowing','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','mutations','UniverIcon','registerComponent','335239sdXSID','params','substring','default','_sharedOperations','attrs','clear','createInstance','operations','assign','_injector','getCurrentTypeOfUnit$','http://www.w3.org/2000/svg','IDLE','unsubscribe','mask','send','530eocVJZ','dispose$','NOT_FOLLOWING','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','112653ijQxtt','toString','univerjs-icon\x20univerjs-icon-','tryStartPresenting','OFFLINE','defIds','data','then','LIVESHARE_NEW_HOST','use','current','type','url(#$1','_mountLiveShare','symbol','svg','fill','HEADER_MENU','startFollowing'];_0x30f0=function(){return _0x185daf;};return _0x30f0();}import{forwardRef as _0x3759f5,useRef as _0x514d8f,createElement as _0x28844c,useState as _0x47776c,useEffect as _0x37f6e9}from'react';import{CollaborationEvent as _0xf7519f,parseProtocolChangeset as _0x5a916f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x46d5bf,SessionStatus as _0x129b56,UniverCollaborationClientPlugin as _0x10eb0c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2be1b3,SetWorksheetActiveOperation as _0x2c2b73}from'@univerjs/sheets';import{BehaviorSubject as _0x31dbf0,Subject as _0x28bfba}from'rxjs';import{takeUntil as _0x11bc00,throttleTime as _0x4bf83f}from'rxjs/operators';import{SetZoomRatioOperation as _0x2af7e3,SetScrollOperation as _0x4699e2}from'@univerjs/sheets-ui';var c=function(){var _0x35f3c1=_0x1d5b70;return c=Object['assign']||function(_0x5b0097){var _0x507ec1=_0x16a7;for(var _0x52a800,_0x1b42d8=0x1,_0x32cca4=arguments[_0x507ec1(0x253)];_0x1b42d8<_0x32cca4;_0x1b42d8++){_0x52a800=arguments[_0x1b42d8];for(var _0x15a9b2 in _0x52a800)Object['prototype'][_0x507ec1(0x241)]['call'](_0x52a800,_0x15a9b2)&&(_0x5b0097[_0x15a9b2]=_0x52a800[_0x15a9b2]);}return _0x5b0097;},c[_0x35f3c1(0x235)](this,arguments);},Oe=function(_0x2935bd,_0x38bdc4){var _0x41dd64=_0x1d5b70,_0x2295ae={};for(var _0x345b6a in _0x2935bd)Object[_0x41dd64(0x230)]['hasOwnProperty'][_0x41dd64(0x219)](_0x2935bd,_0x345b6a)&&_0x38bdc4['indexOf'](_0x345b6a)<0x0&&(_0x2295ae[_0x345b6a]=_0x2935bd[_0x345b6a]);if(_0x2935bd!=null&&typeof Object[_0x41dd64(0x263)]==_0x41dd64(0x269)){for(var _0x50e815=0x0,_0x345b6a=Object[_0x41dd64(0x263)](_0x2935bd);_0x50e815<_0x345b6a[_0x41dd64(0x253)];_0x50e815++)_0x38bdc4['indexOf'](_0x345b6a[_0x50e815])<0x0&&Object[_0x41dd64(0x230)]['propertyIsEnumerable']['call'](_0x2935bd,_0x345b6a[_0x50e815])&&(_0x2295ae[_0x345b6a[_0x50e815]]=_0x2935bd[_0x345b6a[_0x50e815]]);}return _0x2295ae;},W=_0x3759f5(function(_0x2f1749,_0x3b8745){var _0x2704bb=_0x1d5b70,_0x5a22dd=_0x2f1749['icon'],_0x143f32=_0x2f1749['id'],_0x259019=_0x2f1749[_0x2704bb(0x25b)],_0x141539=_0x2f1749[_0x2704bb(0x246)],_0x252a4a=Oe(_0x2f1749,[_0x2704bb(0x210),'id','className',_0x2704bb(0x246)]),_0x22d3e1=_0x2704bb(0x1db)[_0x2704bb(0x257)](_0x143f32,'\x20')[_0x2704bb(0x257)](_0x259019||'')[_0x2704bb(0x245)](),_0x316c76=_0x514d8f('_'['concat'](Ne()));return Y(_0x5a22dd,''[_0x2704bb(0x257)](_0x143f32),{'defIds':_0x5a22dd[_0x2704bb(0x1de)],'idSuffix':_0x316c76[_0x2704bb(0x1e3)]},c({'ref':_0x3b8745,'className':_0x22d3e1},_0x252a4a),_0x141539);});function Y(_0x12faad,_0x8c931e,_0x26aa7c,_0x1f47ce,_0x21e5c6){var _0x568fb4=_0x1d5b70;return _0x28844c(_0x12faad[_0x568fb4(0x205)],c(c({'key':_0x8c931e},Ee(_0x12faad,_0x26aa7c,_0x21e5c6)),_0x1f47ce),(we(_0x12faad,_0x26aa7c)['children']||[])[_0x568fb4(0x1f7)](function(_0x1e69f1,_0x148cce){var _0x27f6f0=_0x568fb4;return Y(_0x1e69f1,''['concat'](_0x8c931e,'-')['concat'](_0x12faad[_0x27f6f0(0x205)],'-')[_0x27f6f0(0x257)](_0x148cce),_0x26aa7c,void 0x0,_0x21e5c6);}));}function Ee(_0x1bed3d,_0xa049f4,_0x495dec){var _0x3fa140=_0x1d5b70,_0x3ff140=c({},_0x1bed3d[_0x3fa140(0x280)]);_0x495dec!=null&&_0x495dec[_0x3fa140(0x20d)]&&_0x3ff140[_0x3fa140(0x1e9)]===_0x3fa140(0x20d)&&(_0x3ff140[_0x3fa140(0x1e9)]=_0x495dec['colorChannel1']),_0x1bed3d[_0x3fa140(0x205)]===_0x3fa140(0x1d3)&&_0x3ff140['id']&&(_0x3ff140['id']=_0x3ff140['id']+_0xa049f4[_0x3fa140(0x225)]),Object[_0x3fa140(0x232)](_0x3ff140)[_0x3fa140(0x25d)](function(_0x1dae10){var _0xba59e7=_0x3fa140,_0x26cb77=_0x1dae10[0x0],_0x5a96f2=_0x1dae10[0x1];_0x26cb77==='mask'&&typeof _0x5a96f2==_0xba59e7(0x251)&&(_0x3ff140[_0x26cb77]=_0x5a96f2[_0xba59e7(0x238)](/url\(#(.*)\)/,'url(#$1'[_0xba59e7(0x257)](_0xa049f4[_0xba59e7(0x225)],')')));});var _0x1dee08=_0xa049f4['defIds'];return!_0x1dee08||_0x1dee08[_0x3fa140(0x253)]===0x0||(_0x1bed3d[_0x3fa140(0x205)]===_0x3fa140(0x1e2)&&_0x3ff140[_0x3fa140(0x220)]&&(_0x3ff140[_0x3fa140(0x220)]=_0x3ff140['xlink:href']+_0xa049f4[_0x3fa140(0x225)]),Object['entries'](_0x3ff140)[_0x3fa140(0x25d)](function(_0x588aff){var _0x2d41de=_0x3fa140,_0x4651e8=_0x588aff[0x0],_0x220551=_0x588aff[0x1];typeof _0x220551==_0x2d41de(0x251)&&(_0x3ff140[_0x4651e8]=_0x220551['replace'](/url\(#(.*)\)/,_0x2d41de(0x1e5)['concat'](_0xa049f4[_0x2d41de(0x225)],')')));})),_0x3ff140;}function we(_0x1702e7,_0x17262d){var _0x421783=_0x1d5b70,_0x3033af,_0x45c074=_0x17262d[_0x421783(0x1de)];return!_0x45c074||_0x45c074['length']===0x0?_0x1702e7:_0x1702e7[_0x421783(0x205)]===_0x421783(0x21d)&&(!((_0x3033af=_0x1702e7[_0x421783(0x23b)])===null||_0x3033af===void 0x0)&&_0x3033af['length'])?c(c({},_0x1702e7),{'children':_0x1702e7['children'][_0x421783(0x1f7)](function(_0x4fbd04){var _0x54adae=_0x421783;return typeof _0x4fbd04[_0x54adae(0x280)]['id']=='string'&&_0x45c074&&_0x45c074[_0x54adae(0x277)](_0x4fbd04[_0x54adae(0x280)]['id'])?c(c({},_0x4fbd04),{'attrs':c(c({},_0x4fbd04[_0x54adae(0x280)]),{'id':_0x4fbd04['attrs']['id']+_0x17262d[_0x54adae(0x225)]})}):_0x4fbd04;})}):_0x1702e7;}function Ne(){var _0x243706=_0x1d5b70;return Math[_0x243706(0x25f)]()[_0x243706(0x1da)](0x24)[_0x243706(0x27d)](0x2,0x8);}W[_0x1d5b70(0x229)]=_0x1d5b70(0x279);var Ce={'tag':_0x1d5b70(0x1e8),'attrs':{'xmlns':_0x1d5b70(0x1d0),'fill':_0x1d5b70(0x248),'viewBox':_0x1d5b70(0x217),'width':'1em','height':_0x1d5b70(0x21a)},'children':[{'tag':_0x1d5b70(0x203),'attrs':{'fill':_0x1d5b70(0x1f2),'d':_0x1d5b70(0x276)}},{'tag':_0x1d5b70(0x203),'attrs':{'fill':_0x1d5b70(0x1f2),'d':_0x1d5b70(0x204),'fillRule':_0x1d5b70(0x26d),'clipRule':_0x1d5b70(0x26d)}}]},B=_0x3759f5(function(_0x4e6ccb,_0x2588cf){var _0x557aee=_0x1d5b70;return _0x28844c(W,Object[_0x557aee(0x1cd)]({},_0x4e6ccb,{'id':_0x557aee(0x215),'ref':_0x2588cf,'icon':Ce}));});B['displayName']='LiveShareIcon';class L extends _0x5dd809{constructor(){var _0x2926f0=_0x1d5b70;super(...arguments),d(this,_0x2926f0(0x27f),new Set()),d(this,_0x2926f0(0x201),new Set());}[_0x1d5b70(0x244)](_0x527091){var _0x5a8529=_0x1d5b70;return this[_0x5a8529(0x27f)][_0x5a8529(0x233)](_0x527091),_0x35611b(()=>this[_0x5a8529(0x27f)]['delete'](_0x527091));}[_0x1d5b70(0x242)](_0x2e1258){var _0x4fd71c=_0x1d5b70;return this[_0x4fd71c(0x201)][_0x4fd71c(0x233)](_0x2e1258),_0x35611b(()=>this['_reporters'][_0x4fd71c(0x273)](_0x2e1258));}[_0x1d5b70(0x21c)](_0x3d0fb8){var _0x546593=_0x1d5b70;return this[_0x546593(0x27f)][_0x546593(0x1fa)](_0x3d0fb8);}[_0x1d5b70(0x1fd)](_0x2954cb){var _0x4cfb9b=_0x1d5b70;return Array[_0x4cfb9b(0x24f)](this['_reporters'])[_0x4cfb9b(0x1f7)](_0xc48d73=>_0xc48d73(_0x2954cb));}}var De=Object['getOwnPropertyDescriptor'],Z=(_0x4bc4ba,_0x1b9256,_0x2aebc2,_0x3deaac)=>{var _0x168515=_0x1d5b70;for(var _0x3d7c49=_0x3deaac>0x1?void 0x0:_0x3deaac?De(_0x1b9256,_0x2aebc2):_0x1b9256,_0x2c3a4a=_0x4bc4ba[_0x168515(0x253)]-0x1,_0x27effc;_0x2c3a4a>=0x0;_0x2c3a4a--)(_0x27effc=_0x4bc4ba[_0x2c3a4a])&&(_0x3d7c49=_0x27effc(_0x3d7c49)||_0x3d7c49);return _0x3d7c49;},f=(_0x3c4adf,_0x55519e)=>(_0x453d1c,_0x166258)=>_0x55519e(_0x453d1c,_0x166258,_0x3c4adf);let m=class extends _0x231eea{constructor(_0x532c10,_0x6f4196,_0x1ad48d){var _0x5e5533=_0x1d5b70;super(),d(this,'_entities',new Map()),(this[_0x5e5533(0x1f9)]=_0x532c10,this[_0x5e5533(0x1ce)]=_0x6f4196,this[_0x5e5533(0x23f)]=_0x1ad48d,this['_init']());}async[_0x1d5b70(0x22b)](_0x5014e6){var _0x4e34e1=_0x1d5b70;return this[_0x4e34e1(0x22f)][_0x4e34e1(0x1fa)](_0x5014e6)||await this[_0x4e34e1(0x223)](_0x5014e6),this['_entities'][_0x4e34e1(0x1fe)](_0x5014e6);}[_0x1d5b70(0x206)](){var _0x250e6e=_0x1d5b70;this[_0x250e6e(0x1f9)][_0x250e6e(0x1f3)](_0x129dbe[_0x250e6e(0x208)])[_0x250e6e(0x209)](_0x11bc00(this[_0x250e6e(0x1d6)]))[_0x250e6e(0x243)](async _0x1d347f=>{var _0x5267d7=_0x250e6e;const _0xc0840a=_0x1d347f[_0x5267d7(0x271)]();this[_0x5267d7(0x22f)][_0x5267d7(0x1fa)](_0xc0840a)||this[_0x5267d7(0x223)](_0xc0840a);}),this[_0x250e6e(0x1f9)][_0x250e6e(0x267)](_0x129dbe['UNIVER_SHEET'])[_0x250e6e(0x209)](_0x11bc00(this[_0x250e6e(0x1d6)]))[_0x250e6e(0x243)](_0x38229b=>{var _0x1de475=_0x250e6e;const _0x890913=_0x38229b[_0x1de475(0x271)](),_0x30384a=this[_0x1de475(0x22f)][_0x1de475(0x1fe)](_0x890913);_0x30384a==null||_0x30384a[_0x1de475(0x20a)]();});}async[_0x1d5b70(0x223)](_0x34edb5){var _0x4695c0=_0x1d5b70;const _0x2be2de=await this[_0x4695c0(0x23f)][_0x4695c0(0x202)](_0x34edb5),_0x250461=this['_injector'][_0x4695c0(0x282)](C,_0x34edb5,_0x2be2de);return _0x250461['init'](),this[_0x4695c0(0x22f)][_0x4695c0(0x1f6)](_0x34edb5,_0x250461),_0x250461;}};m=Z([f(0x0,_0x25c89d),f(0x1,_0x9f09cd(_0x454c2a)),f(0x2,_0x9f09cd(_0x46d5bf))],m);var h=(_0x3f01fd=>(_0x3f01fd[_0x1d5b70(0x1dd)]=_0x1d5b70(0x1ec),_0x3f01fd[_0x1d5b70(0x1d1)]='idle',_0x3f01fd[_0x1d5b70(0x258)]=_0x1d5b70(0x256),_0x3f01fd[_0x1d5b70(0x1d7)]=_0x1d5b70(0x222),_0x3f01fd[_0x1d5b70(0x24a)]=_0x1d5b70(0x221),_0x3f01fd))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x231eea{constructor(_0x32fac9,_0xba70da,_0x37804b,_0x53ef10,_0x32dd37){var _0x309259=_0x1d5b70;super(),d(this,_0x309259(0x25c),new _0x31dbf0(_0x309259(0x20f))),d(this,_0x309259(0x1f5),this['_status$'][_0x309259(0x22e)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,'_presenter',null),(this[_0x309259(0x1f0)]=_0x32fac9,this[_0x309259(0x21b)]=_0xba70da,this[_0x309259(0x272)]=_0x37804b,this[_0x309259(0x207)]=_0x53ef10,this['_commandService']=_0x32dd37);}get[_0x1d5b70(0x227)](){var _0xe6ba14=_0x1d5b70;return this[_0xe6ba14(0x25c)][_0xe6ba14(0x213)]();}['dispose'](){var _0x418aa3=_0x1d5b70,_0x565576;(_0x565576=this[_0x418aa3(0x23a)])==null||_0x565576[_0x418aa3(0x20a)](),this[_0x418aa3(0x25c)][_0x418aa3(0x25a)](_0x418aa3(0x20f)),this[_0x418aa3(0x25c)]['complete']();}['init'](){var _0xab0d4a=_0x1d5b70;this[_0xab0d4a(0x206)]||(this[_0xab0d4a(0x206)]=!0x0,this[_0xab0d4a(0x21b)][_0xab0d4a(0x1fb)]['pipe'](_0x11bc00(this[_0xab0d4a(0x1d6)]))['subscribe'](_0x1a95c2=>{var _0x370ba7=_0xab0d4a;switch(_0x1a95c2){case _0x129b56[_0x370ba7(0x1dd)]:this[_0x370ba7(0x262)]();break;case _0x129b56[_0x370ba7(0x247)]:this[_0x370ba7(0x1f1)]();break;}}),this[_0xab0d4a(0x21b)][_0xab0d4a(0x265)][_0xab0d4a(0x209)](_0x11bc00(this[_0xab0d4a(0x1d6)]))[_0xab0d4a(0x243)](_0x8a2670=>{var _0x3ab227=_0xab0d4a;const {eventID:_0x45a312}=_0x8a2670;switch(_0x45a312){case _0xf7519f[_0x3ab227(0x1e1)]:this['_handleNewHost'](_0x8a2670);break;case _0xf7519f[_0x3ab227(0x216)]:this[_0x3ab227(0x21e)](_0x8a2670);break;case _0xf7519f[_0x3ab227(0x200)]:this[_0x3ab227(0x240)]();break;case _0xf7519f[_0x3ab227(0x212)]:this[_0x3ab227(0x20b)](_0x8a2670);break;}}));}[_0x1d5b70(0x1dc)](){var _0x4f6c0d=_0x1d5b70;this[_0x4f6c0d(0x21b)][_0x4f6c0d(0x1d4)]({'eventID':_0xf7519f['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4f6c0d(0x1f0)],'userID':this[_0x4f6c0d(0x21b)]['getMemberID']()}},this['_unitID']);}[_0x1d5b70(0x236)](){var _0x302c69=_0x1d5b70;this[_0x302c69(0x227)]===_0x302c69(0x221)&&(this[_0x302c69(0x25c)][_0x302c69(0x25a)](_0x302c69(0x20f)),this['_collabSession'][_0x302c69(0x1d4)]({'eventID':_0xf7519f[_0x302c69(0x200)],'data':{'unitID':this[_0x302c69(0x1f0)]}},this[_0x302c69(0x1f0)]));}[_0x1d5b70(0x1eb)](){var _0xc6ceb6=_0x1d5b70;this[_0xc6ceb6(0x227)]===_0xc6ceb6(0x222)&&(this[_0xc6ceb6(0x25c)][_0xc6ceb6(0x25a)](_0xc6ceb6(0x256)),this['_startFollowing']());}['stopFollowing'](){var _0x3cbf2d=_0x1d5b70;this[_0x3cbf2d(0x227)]===_0x3cbf2d(0x256)&&this[_0x3cbf2d(0x268)]();}[_0x1d5b70(0x1fc)](_0x382fe5){var _0x199382=_0x1d5b70;const {presenter:_0x43b16f}=_0x382fe5[_0x199382(0x1df)],_0x3ac59e=this[_0x199382(0x21b)]['getMemberID']();this[_0x199382(0x26e)]=_0x43b16f,_0x43b16f===_0x3ac59e?(this['_stopFollowing'](),this[_0x199382(0x234)]()):this[_0x199382(0x227)]!==_0x199382(0x222)&&(this[_0x199382(0x1f4)](),this[_0x199382(0x275)]());}['_fetchOperations'](){var _0x32b6e6=_0x1d5b70;const _0x11c623={'eventID':_0xf7519f['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x32b6e6(0x1d4)](_0x11c623,this[_0x32b6e6(0x1f0)]);}[_0x1d5b70(0x240)](){var _0x1d3548=_0x1d5b70;this[_0x1d3548(0x26e)]=null,this[_0x1d3548(0x227)]!==_0x1d3548(0x221)&&this[_0x1d3548(0x1ff)]();}['_handleNewChangeSets'](_0x5caf46){var _0x1c292b=_0x1d5b70;if(this['_status']==='following'&&this[_0x1c292b(0x26e)]===_0x5caf46[_0x1c292b(0x1df)]['memberID']){const _0x436eec=_0x5a916f(_0x5caf46[_0x1c292b(0x1df)])[_0x1c292b(0x278)][_0x1c292b(0x237)]()['find'](_0x5cdd49=>_0x5cdd49['id']===_0x2be1b3['id']);if(_0x436eec){const _0x3fcfd6=_0x436eec[_0x1c292b(0x27c)]['unitId'],_0x19959d=_0x436eec[_0x1c292b(0x27c)][_0x1c292b(0x264)]['id'];setTimeout(()=>{var _0x5b6ca7=_0x1c292b;this[_0x5b6ca7(0x24d)]['executeCommand'](_0x2c2b73['id'],{'unitId':_0x3fcfd6,'subUnitId':_0x19959d},{'fromCollab':!0x0});});}}}[_0x1d5b70(0x234)](){var _0x16d05d=_0x1d5b70;this[_0x16d05d(0x25c)][_0x16d05d(0x25a)]('presenting');const _0x33fbd6=new Map(),_0x8538f3=this[_0x16d05d(0x23a)]=new _0x1525a6();_0x8538f3[_0x16d05d(0x233)](_0x35611b(()=>{var _0x5af6c6=_0x16d05d;_0x33fbd6[_0x5af6c6(0x25d)](_0x4ae87d=>_0x4ae87d[_0x5af6c6(0x24e)]()),_0x33fbd6[_0x5af6c6(0x281)]();})),_0x8538f3[_0x16d05d(0x233)](this[_0x16d05d(0x24d)][_0x16d05d(0x26b)](_0x99af8e=>{var _0x24d256=_0x16d05d,_0x255d34;if(_0x99af8e[_0x24d256(0x1e4)]!==_0x4d70ae[_0x24d256(0x259)]||!this[_0x24d256(0x207)][_0x24d256(0x21c)](_0x99af8e['id']))return;const {id:_0x10b437}=_0x99af8e;let _0x3064ba;_0x33fbd6[_0x24d256(0x1fa)](_0x10b437)?_0x3064ba=_0x33fbd6['get'](_0x10b437):(_0x3064ba=new _0x28bfba(),_0x33fbd6['set'](_0x10b437,_0x3064ba),_0x3064ba['pipe'](_0x4bf83f((_0x255d34=this[_0x24d256(0x272)]['getConfig'](xe))!=null?_0x255d34:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x24d256(0x243)](_0x4096d3=>{var _0x18431e=_0x24d256;this[_0x18431e(0x21b)]['send']({'eventID':_0xf7519f[_0x18431e(0x216)],'data':{'unitID':this[_0x18431e(0x1f0)],'operations':{[_0x4096d3['id']]:{'id':_0x4096d3['id'],'params':JSON[_0x18431e(0x239)](_0x4096d3['params'])}}}},this['_unitID']);})),_0x3064ba[_0x24d256(0x25a)](_0x99af8e);})),this[_0x16d05d(0x207)][_0x16d05d(0x1fd)](this[_0x16d05d(0x1f0)])[_0x16d05d(0x25d)](_0x423bb2=>this[_0x16d05d(0x21b)][_0x16d05d(0x1d4)]({'eventID':_0xf7519f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x16d05d(0x1f0)],'operations':{[_0x423bb2['id']]:{'id':_0x423bb2['id'],'params':JSON[_0x16d05d(0x239)](_0x423bb2[_0x16d05d(0x27c)])}}}},this[_0x16d05d(0x1f0)]));}[_0x1d5b70(0x1f4)](){var _0x268975=_0x1d5b70,_0x417399;this[_0x268975(0x25c)]['next'](_0x268975(0x20f)),(_0x417399=this[_0x268975(0x23a)])==null||_0x417399[_0x268975(0x20a)](),this['_commandDisposable']=null;}[_0x1d5b70(0x275)](){var _0x23fbf5=_0x1d5b70,_0x5f00ea;(_0x5f00ea=this['_commandDisposable'])==null||_0x5f00ea[_0x23fbf5(0x20a)](),this['_status$'][_0x23fbf5(0x25a)](_0x23fbf5(0x256));}[_0x1d5b70(0x1ff)](){var _0xd0846d=_0x1d5b70,_0x334502;this[_0xd0846d(0x25c)][_0xd0846d(0x25a)](_0xd0846d(0x20f)),(_0x334502=this[_0xd0846d(0x23a)])==null||_0x334502[_0xd0846d(0x20a)](),this['_commandDisposable']=null;}[_0x1d5b70(0x268)](){var _0x3e3e1d=_0x1d5b70,_0x1ec9d1;this[_0x3e3e1d(0x25c)][_0x3e3e1d(0x25a)]('not-following'),(_0x1ec9d1=this[_0x3e3e1d(0x23a)])==null||_0x1ec9d1['dispose']();}[_0x1d5b70(0x21e)](_0x1f48a4){var _0x544670=_0x1d5b70;if([_0x544670(0x221),_0x544670(0x222),_0x544670(0x1ec)]['includes'](this[_0x544670(0x227)])||!_0x1f48a4['data'][_0x544670(0x231)]||_0x1f48a4[_0x544670(0x1df)][_0x544670(0x231)]===this[_0x544670(0x21b)][_0x544670(0x261)]())return;this[_0x544670(0x227)]===_0x544670(0x20f)&&this[_0x544670(0x275)]();const _0x25ddbf=_0x1f48a4[_0x544670(0x1df)][_0x544670(0x283)];Object[_0x544670(0x24c)](_0x25ddbf)[_0x544670(0x25d)](_0x3361ab=>{var _0x48351d=_0x544670;this['_commandService'][_0x48351d(0x249)](_0x3361ab['id'],_0x3361ab[_0x48351d(0x27c)]?JSON[_0x48351d(0x252)](_0x3361ab[_0x48351d(0x27c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x34bd34=_0x1d5b70,_0x348812;this['_status$'][_0x34bd34(0x25a)](_0x34bd34(0x1ec)),(_0x348812=this[_0x34bd34(0x23a)])==null||_0x348812[_0x34bd34(0x20a)]();}[_0x1d5b70(0x1f1)](){var _0x368859=_0x1d5b70;this['_status$']['next'](_0x368859(0x20f)),this[_0x368859(0x22c)]();}};C=Z([f(0x2,_0x536ce4),f(0x3,_0x9f09cd(L)),f(0x4,_0x595663)],C);function ye(){var _0x5bb3b6=_0x1d5b70;const _0x44d33f=_0x2be91e(m),_0x205c2b=_0x2be91e(_0x25c89d),_0x3f203a=_0xf14f6a(()=>_0x205c2b[_0x5bb3b6(0x1cf)](_0x129dbe['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x37839b,_0x47b9ca]=_0x47776c(null),[_0x3b8c02,_0x15ddab]=_0x47776c(h[_0x5bb3b6(0x1d1)]),_0x1e3e6b=_0x514d8f(null);return _0x37f6e9(()=>(_0x3f203a&&_0x44d33f[_0x5bb3b6(0x22b)](_0x3f203a[_0x5bb3b6(0x271)]())[_0x5bb3b6(0x1e0)](_0x35cabd=>{var _0x197226=_0x5bb3b6;_0x47b9ca(_0x35cabd),_0x1e3e6b['current']=_0x35cabd[_0x197226(0x1f5)][_0x197226(0x243)](_0x4527b3=>{_0x15ddab(_0x4527b3);});}),()=>{var _0x106333=_0x5bb3b6,_0x341673;(_0x341673=_0x1e3e6b['current'])==null||_0x341673[_0x106333(0x1d2)](),_0x1e3e6b[_0x106333(0x1e3)]=null;}),[_0x3f203a,_0x44d33f]),_0x37839b?_0x46d2aa(_0xd37ad7,{'align':_0x5bb3b6(0x20e),'disabled':_0x3b8c02===h[_0x5bb3b6(0x1dd)],'className':_0x5bb3b6(0x1d8),'overlay':_0x46d2aa(Re,{'status':_0x3b8c02,'coordinator':_0x37839b}),'children':_0x46d2aa(_0x5bb3b6(0x26c),{'className':_0x3be2af(_0x5bb3b6(0x20c),{'univer-cursor-not-allowed':_0x3b8c02===h[_0x5bb3b6(0x1dd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3b8c02!==h[_0x5bb3b6(0x1dd)]}),'type':_0x5bb3b6(0x26c),'children':_0x46d2aa(B,{'className':'univer-size-4'})})}):null;}function Re(_0x2739bd){var _0x36d96e=_0x1d5b70;const {status:_0x6b78f5,coordinator:_0x2e5380}=_0x2739bd;switch(_0x6b78f5){case h[_0x36d96e(0x1d1)]:return _0x46d2aa(Pe,{'coordinator':_0x2e5380});case h[_0x36d96e(0x258)]:return _0x46d2aa(Ae,{'coordinator':_0x2e5380});case h['NOT_FOLLOWING']:return _0x46d2aa(Te,{'coordinator':_0x2e5380});case h[_0x36d96e(0x1dd)]:return _0x46d2aa(Fe,{});case h[_0x36d96e(0x24a)]:return _0x46d2aa($e,{'coordinator':_0x2e5380});default:return null;}}function Pe(_0x413b8f){var _0x209edc=_0x1d5b70;const {coordinator:_0x19cc61}=_0x413b8f;return _0x5c1ec5(_0x1ff51,{'children':[_0x46d2aa(_0x209edc(0x26f),{'className':_0x209edc(0x266),'children':'Present\x20this\x20document'}),_0x46d2aa(_0x1527c3,{'onClick':()=>_0x19cc61[_0x209edc(0x1dc)](),'children':'Start'})]});}function _0x16a7(_0x4f365a,_0x4695d7){var _0x30f0ab=_0x30f0();return _0x16a7=function(_0x16a7fc,_0x409c94){_0x16a7fc=_0x16a7fc-0x1cd;var _0x2433ce=_0x30f0ab[_0x16a7fc];return _0x2433ce;},_0x16a7(_0x4f365a,_0x4695d7);}function Ae(_0x4ec79a){var _0x45a453=_0x1d5b70;const {coordinator:_0x44174e}=_0x4ec79a;return _0x5c1ec5(_0x1ff51,{'children':[_0x46d2aa(_0x45a453(0x26f),{'className':_0x45a453(0x266),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x46d2aa(_0x1527c3,{'onClick':()=>_0x44174e[_0x45a453(0x224)](),'children':_0x45a453(0x22d)})]});}function Te(_0x414686){var _0x17dfd3=_0x1d5b70;const {coordinator:_0x5d4764}=_0x414686;return _0x5c1ec5(_0x1ff51,{'children':[_0x46d2aa(_0x17dfd3(0x26f),{'className':_0x17dfd3(0x266),'children':_0x17dfd3(0x211)}),_0x46d2aa(_0x1527c3,{'variant':_0x17dfd3(0x260),'onClick':()=>_0x5d4764[_0x17dfd3(0x1eb)](),'children':_0x17dfd3(0x1ee)})]});}function $e(_0x307b9e){var _0x37b677=_0x1d5b70;const {coordinator:_0x2c5124}=_0x307b9e;return _0x5c1ec5(_0x1ff51,{'children':[_0x46d2aa(_0x37b677(0x26f),{'className':_0x37b677(0x266),'children':_0x37b677(0x22a)}),_0x46d2aa(_0x1527c3,{'variant':_0x37b677(0x27e),'onClick':()=>_0x2c5124['stopPresenting'](),'children':_0x37b677(0x214)})]});}function Fe(){var _0x33b266=_0x1d5b70;return _0x46d2aa(_0x1ff51,{'children':_0x33b266(0x24b)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x1e1ed7,_0x3a02a7,_0x4476e3,_0x4f9350)=>{var _0x33dd84=_0x1d5b70;for(var _0xc200c3=_0x4f9350>0x1?void 0x0:_0x4f9350?He(_0x3a02a7,_0x4476e3):_0x3a02a7,_0x30cce4=_0x1e1ed7[_0x33dd84(0x253)]-0x1,_0x22d6a8;_0x30cce4>=0x0;_0x30cce4--)(_0x22d6a8=_0x1e1ed7[_0x30cce4])&&(_0xc200c3=_0x22d6a8(_0xc200c3)||_0xc200c3);return _0xc200c3;},T=(_0x11a923,_0x126a42)=>(_0x84b3a0,_0x36f3b6)=>_0x126a42(_0x84b3a0,_0x36f3b6,_0x11a923);let I=class extends _0x5dd809{constructor(_0x5720b5,_0x39efb8){var _0x268f78=_0x1d5b70;super(),this['_injector']=_0x5720b5,this[_0x268f78(0x255)]=_0x39efb8,this['_mountLiveShare']();}[_0x1d5b70(0x1e6)](){var _0x247dce=_0x1d5b70;this[_0x247dce(0x254)](this[_0x247dce(0x255)][_0x247dce(0x27a)](_0x53c462[_0x247dce(0x1ea)],()=>_0xcd3d9a(ye,this['_injector'])));}};I=je([T(0x0,_0x9f09cd(_0x454c2a)),T(0x1,_0x3770e4)],I);const Ue='live-share.config',$={};var Ve=Object[_0x1d5b70(0x1f8)],Me=(_0x33298e,_0x49c302,_0x34acc2,_0x13a985)=>{for(var _0x4d7344=_0x13a985>0x1?void 0x0:_0x13a985?Ve(_0x49c302,_0x34acc2):_0x49c302,_0x341dd7=_0x33298e['length']-0x1,_0x408127;_0x341dd7>=0x0;_0x341dd7--)(_0x408127=_0x33298e[_0x341dd7])&&(_0x4d7344=_0x408127(_0x4d7344)||_0x4d7344);return _0x4d7344;},ke=(_0x351033,_0x292e8e)=>(_0x304ddf,_0x1e10a7)=>_0x292e8e(_0x304ddf,_0x1e10a7,_0x351033);let b=class extends _0x5dd809{constructor(_0x1963e7){var _0x43004f=_0x1d5b70;super(),this[_0x43004f(0x207)]=_0x1963e7,this[_0x43004f(0x206)]();}['_init'](){var _0x3c46ad=_0x1d5b70;[_0x2af7e3['id'],_0x4699e2['id'],_0x2c2b73['id']][_0x3c46ad(0x25d)](_0x2b89b3=>{var _0x979c97=_0x3c46ad;this['disposeWithMe'](this[_0x979c97(0x207)]['registerSharedOperation'](_0x2b89b3));});}};b=Me([ke(0x0,_0x9f09cd(L))],b);var Ge=Object[_0x1d5b70(0x21f)],We=Object[_0x1d5b70(0x1f8)],Ye=(_0x4b0f55,_0x562faf,_0x59cfd6)=>_0x562faf in _0x4b0f55?Ge(_0x4b0f55,_0x562faf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59cfd6}):_0x4b0f55[_0x562faf]=_0x59cfd6,Be=(_0xe643ba,_0x201648,_0x22fb86,_0xe7301b)=>{var _0x4b37eb=_0x1d5b70;for(var _0x3d0033=_0xe7301b>0x1?void 0x0:_0xe7301b?We(_0x201648,_0x22fb86):_0x201648,_0x167c3b=_0xe643ba[_0x4b37eb(0x253)]-0x1,_0x328811;_0x167c3b>=0x0;_0x167c3b--)(_0x328811=_0xe643ba[_0x167c3b])&&(_0x3d0033=_0x328811(_0x3d0033)||_0x3d0033);return _0x3d0033;},F=(_0x27548f,_0x281347)=>(_0x4663a0,_0x24b685)=>_0x281347(_0x4663a0,_0x24b685,_0x27548f),J=(_0x525e14,_0x486990,_0x59da90)=>Ye(_0x525e14,typeof _0x486990!=_0x1d5b70(0x1e7)?_0x486990+'':_0x486990,_0x59da90);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x47c218{constructor(_0x4f572b=$,_0x223b9f,_0x1d65a9){var _0x4d1d61=_0x1d5b70;super(),this[_0x4d1d61(0x274)]=_0x4f572b,this['_injector']=_0x223b9f,this[_0x4d1d61(0x272)]=_0x1d65a9;const {..._0x316349}=_0x71c5cd({},$,this[_0x4d1d61(0x274)]);this[_0x4d1d61(0x272)][_0x4d1d61(0x270)](Ue,_0x316349);}['onStarting'](){var _0x251287=_0x1d5b70;_0x412ba8(this['_injector'],_0x58f7e9([[L],[m],[b],[I]],this[_0x251287(0x274)]['override'])),_0x2497e9(this['_injector'],[[b]]);}[_0x1d5b70(0x250)](){var _0x1f2a75=_0x1d5b70;_0x2497e9(this[_0x1f2a75(0x1ce)],[[I]]);}};J(O,'type',_0x129dbe[_0x1d5b70(0x23c)]),J(O,'pluginName',Ze),O=Be([_0x3c4c14(_0x10eb0c),F(0x1,_0x9f09cd(_0x454c2a)),F(0x2,_0x536ce4)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x421f7a=_0x4030;(function(_0x4b074f,_0x3cdfe4){var _0x379ffb=_0x4030,_0x4a4876=_0x4b074f();while(!![]){try{var _0x519817=-parseInt(_0x379ffb(0x1f3))/0x1+-parseInt(_0x379ffb(0x18f))/0x2*(parseInt(_0x379ffb(0x1e5))/0x3)+parseInt(_0x379ffb(0x1f6))/0x4*(parseInt(_0x379ffb(0x191))/0x5)+parseInt(_0x379ffb(0x1fa))/0x6+parseInt(_0x379ffb(0x1e7))/0x7*(parseInt(_0x379ffb(0x1a7))/0x8)+parseInt(_0x379ffb(0x202))/0x9+parseInt(_0x379ffb(0x1a6))/0xa;if(_0x519817===_0x3cdfe4)break;else _0x4a4876['push'](_0x4a4876['shift']());}catch(_0x348f7a){_0x4a4876['push'](_0x4a4876['shift']());}}}(_0x326c,0x684c4));var q=Object[_0x421f7a(0x17c)],z=(_0x327b43,_0x1b4357,_0x301a3f)=>_0x1b4357 in _0x327b43?q(_0x327b43,_0x1b4357,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x301a3f}):_0x327b43[_0x1b4357]=_0x301a3f,d=(_0xd3575,_0x449a63,_0x3411c0)=>z(_0xd3575,typeof _0x449a63!='symbol'?_0x449a63+'':_0x449a63,_0x3411c0);import{Disposable as _0x2abf63,toDisposable as _0x1078e1,IUniverInstanceService as _0x3889bb,Inject as _0x4b4c18,Injector as _0x12ff87,IConfigService as _0x283dc5,ICommandService as _0x62e54c,RxDisposable as _0x1bc197,UniverInstanceType as _0x3234f9,DisposableCollection as _0x3fbfad,CommandType as _0x1b7884,DependentOn as _0x242f70,Plugin as _0x525e5f,merge as _0x53247a,registerDependencies as _0x3bf986,mergeOverrideWithDependencies as _0x184474,touchDependencies as _0x10bb21}from'@univerjs/core';import{useDependency as _0x20977d,useObservable as _0xc10a5c,IUIPartsService as _0x1c1d17,BuiltInUIPart as _0x1697f8,connectInjector as _0x10655a}from'@univerjs/ui';import{jsx as _0x2ca145,jsxs as _0x3ee81b,Fragment as _0x38862d}from'react/jsx-runtime';import{Dropdown as _0x258e49,clsx as _0x9a7ef5,Button as _0x47729a}from'@univerjs/design';import{forwardRef as _0xcf7a4f,useRef as _0x435daf,createElement as _0x376bb7,useState as _0x4f9eda,useEffect as _0x4ebfa4}from'react';import{CollaborationEvent as _0x155168,parseProtocolChangeset as _0x47a67c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32ee68,SessionStatus as _0x5757f7,UniverCollaborationClientPlugin as _0x4057a8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x33c245,SetWorksheetActiveOperation as _0x278948}from'@univerjs/sheets';import{BehaviorSubject as _0x4c5bc1,Subject as _0x80fbac}from'rxjs';import{takeUntil as _0x3cddc9,throttleTime as _0x528d93}from'rxjs/operators';import{SetZoomRatioOperation as _0x192820,SetScrollOperation as _0x27f0c3}from'@univerjs/sheets-ui';var c=function(){return c=Object['assign']||function(_0x3d065e){var _0x3cf8e7=_0x4030;for(var _0x45e2d8,_0x1ac5af=0x1,_0x4d731c=arguments[_0x3cf8e7(0x1ac)];_0x1ac5af<_0x4d731c;_0x1ac5af++){_0x45e2d8=arguments[_0x1ac5af];for(var _0x5a84fc in _0x45e2d8)Object[_0x3cf8e7(0x1d9)]['hasOwnProperty'][_0x3cf8e7(0x1c4)](_0x45e2d8,_0x5a84fc)&&(_0x3d065e[_0x5a84fc]=_0x45e2d8[_0x5a84fc]);}return _0x3d065e;},c['apply'](this,arguments);},Oe=function(_0x4145bd,_0x44cf15){var _0x287d30=_0x421f7a,_0x20f715={};for(var _0x129e02 in _0x4145bd)Object[_0x287d30(0x1d9)][_0x287d30(0x15d)][_0x287d30(0x1c4)](_0x4145bd,_0x129e02)&&_0x44cf15[_0x287d30(0x1e0)](_0x129e02)<0x0&&(_0x20f715[_0x129e02]=_0x4145bd[_0x129e02]);if(_0x4145bd!=null&&typeof Object[_0x287d30(0x1d4)]==_0x287d30(0x1ba)){for(var _0x558d88=0x0,_0x129e02=Object[_0x287d30(0x1d4)](_0x4145bd);_0x558d88<_0x129e02[_0x287d30(0x1ac)];_0x558d88++)_0x44cf15[_0x287d30(0x1e0)](_0x129e02[_0x558d88])<0x0&&Object['prototype'][_0x287d30(0x1e4)][_0x287d30(0x1c4)](_0x4145bd,_0x129e02[_0x558d88])&&(_0x20f715[_0x129e02[_0x558d88]]=_0x4145bd[_0x129e02[_0x558d88]]);}return _0x20f715;},W=_0xcf7a4f(function(_0x2456e4,_0xbd4b98){var _0x232875=_0x421f7a,_0x45f655=_0x2456e4[_0x232875(0x1da)],_0x4d59cf=_0x2456e4['id'],_0x541eb9=_0x2456e4[_0x232875(0x176)],_0x3a0135=_0x2456e4[_0x232875(0x204)],_0x10f4f5=Oe(_0x2456e4,['icon','id','className',_0x232875(0x204)]),_0x132fda=_0x232875(0x18b)[_0x232875(0x1d7)](_0x4d59cf,'\x20')[_0x232875(0x1d7)](_0x541eb9||'')[_0x232875(0x16b)](),_0xe80919=_0x435daf('_'[_0x232875(0x1d7)](Ne()));return Y(_0x45f655,''[_0x232875(0x1d7)](_0x4d59cf),{'defIds':_0x45f655[_0x232875(0x200)],'idSuffix':_0xe80919[_0x232875(0x171)]},c({'ref':_0xbd4b98,'className':_0x132fda},_0x10f4f5),_0x3a0135);});function Y(_0x55f07b,_0x26e466,_0x3e3c17,_0x2c612d,_0xc69d73){var _0x2a758c=_0x421f7a;return _0x376bb7(_0x55f07b[_0x2a758c(0x1e8)],c(c({'key':_0x26e466},Ee(_0x55f07b,_0x3e3c17,_0xc69d73)),_0x2c612d),(we(_0x55f07b,_0x3e3c17)[_0x2a758c(0x188)]||[])[_0x2a758c(0x1c0)](function(_0x40c3b2,_0x36b11a){var _0x304901=_0x2a758c;return Y(_0x40c3b2,''[_0x304901(0x1d7)](_0x26e466,'-')[_0x304901(0x1d7)](_0x55f07b['tag'],'-')[_0x304901(0x1d7)](_0x36b11a),_0x3e3c17,void 0x0,_0xc69d73);}));}function Ee(_0x175085,_0x35b402,_0xc6209e){var _0x464de0=_0x421f7a,_0x2bfde6=c({},_0x175085[_0x464de0(0x16d)]);_0xc6209e!=null&&_0xc6209e['colorChannel1']&&_0x2bfde6['fill']===_0x464de0(0x1ff)&&(_0x2bfde6['fill']=_0xc6209e['colorChannel1']),_0x175085['tag']===_0x464de0(0x16e)&&_0x2bfde6['id']&&(_0x2bfde6['id']=_0x2bfde6['id']+_0x35b402['idSuffix']),Object[_0x464de0(0x1d2)](_0x2bfde6)[_0x464de0(0x16c)](function(_0x4fac57){var _0x352125=_0x464de0,_0x98b365=_0x4fac57[0x0],_0x1589b8=_0x4fac57[0x1];_0x98b365===_0x352125(0x16e)&&typeof _0x1589b8==_0x352125(0x1af)&&(_0x2bfde6[_0x98b365]=_0x1589b8[_0x352125(0x1e6)](/url\(#(.*)\)/,_0x352125(0x187)[_0x352125(0x1d7)](_0x35b402[_0x352125(0x190)],')')));});var _0x33d12e=_0x35b402[_0x464de0(0x200)];return!_0x33d12e||_0x33d12e[_0x464de0(0x1ac)]===0x0||(_0x175085[_0x464de0(0x1e8)]===_0x464de0(0x1db)&&_0x2bfde6[_0x464de0(0x1b1)]&&(_0x2bfde6['xlink:href']=_0x2bfde6[_0x464de0(0x1b1)]+_0x35b402[_0x464de0(0x190)]),Object[_0x464de0(0x1d2)](_0x2bfde6)[_0x464de0(0x16c)](function(_0x112c66){var _0x2996fe=_0x464de0,_0x4db863=_0x112c66[0x0],_0xd714ca=_0x112c66[0x1];typeof _0xd714ca=='string'&&(_0x2bfde6[_0x4db863]=_0xd714ca[_0x2996fe(0x1e6)](/url\(#(.*)\)/,'url(#$1'[_0x2996fe(0x1d7)](_0x35b402[_0x2996fe(0x190)],')')));})),_0x2bfde6;}function we(_0x5756c2,_0x424827){var _0x64bd5=_0x421f7a,_0xd7a4fc,_0x363d3e=_0x424827[_0x64bd5(0x200)];return!_0x363d3e||_0x363d3e[_0x64bd5(0x1ac)]===0x0?_0x5756c2:_0x5756c2[_0x64bd5(0x1e8)]===_0x64bd5(0x167)&&(!((_0xd7a4fc=_0x5756c2['children'])===null||_0xd7a4fc===void 0x0)&&_0xd7a4fc[_0x64bd5(0x1ac)])?c(c({},_0x5756c2),{'children':_0x5756c2[_0x64bd5(0x188)][_0x64bd5(0x1c0)](function(_0x332404){var _0x101d10=_0x64bd5;return typeof _0x332404[_0x101d10(0x16d)]['id']==_0x101d10(0x1af)&&_0x363d3e&&_0x363d3e['includes'](_0x332404[_0x101d10(0x16d)]['id'])?c(c({},_0x332404),{'attrs':c(c({},_0x332404[_0x101d10(0x16d)]),{'id':_0x332404['attrs']['id']+_0x424827[_0x101d10(0x190)]})}):_0x332404;})}):_0x5756c2;}function Ne(){var _0x69c7a3=_0x421f7a;return Math[_0x69c7a3(0x1cd)]()['toString'](0x24)[_0x69c7a3(0x15f)](0x2,0x8);}W[_0x421f7a(0x180)]=_0x421f7a(0x1cb);var Ce={'tag':_0x421f7a(0x1ed),'attrs':{'xmlns':_0x421f7a(0x20b),'fill':_0x421f7a(0x19f),'viewBox':_0x421f7a(0x16f),'width':'1em','height':_0x421f7a(0x17b)},'children':[{'tag':'path','attrs':{'fill':_0x421f7a(0x177),'d':_0x421f7a(0x1f5)}},{'tag':_0x421f7a(0x1b9),'attrs':{'fill':_0x421f7a(0x177),'d':_0x421f7a(0x196),'fillRule':_0x421f7a(0x1dc),'clipRule':_0x421f7a(0x1dc)}}]},B=_0xcf7a4f(function(_0x421f5e,_0x2dd6e2){var _0x425499=_0x421f7a;return _0x376bb7(W,Object['assign']({},_0x421f5e,{'id':_0x425499(0x1a8),'ref':_0x2dd6e2,'icon':Ce}));});B[_0x421f7a(0x180)]=_0x421f7a(0x185);class L extends _0x2abf63{constructor(){var _0x3c021e=_0x421f7a;super(...arguments),d(this,_0x3c021e(0x1c9),new Set()),d(this,_0x3c021e(0x199),new Set());}[_0x421f7a(0x1f9)](_0x4fc66b){var _0x36ba99=_0x421f7a;return this['_sharedOperations'][_0x36ba99(0x1c1)](_0x4fc66b),_0x1078e1(()=>this['_sharedOperations'][_0x36ba99(0x1d3)](_0x4fc66b));}[_0x421f7a(0x19a)](_0x1072ae){var _0x239e50=_0x421f7a;return this['_reporters'][_0x239e50(0x1c1)](_0x1072ae),_0x1078e1(()=>this[_0x239e50(0x199)]['delete'](_0x1072ae));}[_0x421f7a(0x169)](_0x432576){var _0xd168ed=_0x421f7a;return this['_sharedOperations'][_0xd168ed(0x179)](_0x432576);}[_0x421f7a(0x209)](_0x295c73){var _0x79584=_0x421f7a;return Array[_0x79584(0x194)](this[_0x79584(0x199)])[_0x79584(0x1c0)](_0x1a2860=>_0x1a2860(_0x295c73));}}var De=Object[_0x421f7a(0x1cf)],Z=(_0x3bf1d5,_0x1c6f60,_0x8e0f6,_0x48e44a)=>{var _0x5488e8=_0x421f7a;for(var _0x475bec=_0x48e44a>0x1?void 0x0:_0x48e44a?De(_0x1c6f60,_0x8e0f6):_0x1c6f60,_0x1897f6=_0x3bf1d5[_0x5488e8(0x1ac)]-0x1,_0x2cf2cb;_0x1897f6>=0x0;_0x1897f6--)(_0x2cf2cb=_0x3bf1d5[_0x1897f6])&&(_0x475bec=_0x2cf2cb(_0x475bec)||_0x475bec);return _0x475bec;},f=(_0x2ee2cb,_0x1e86c4)=>(_0x2fef02,_0x3086d7)=>_0x1e86c4(_0x2fef02,_0x3086d7,_0x2ee2cb);let m=class extends _0x1bc197{constructor(_0x2ada05,_0x4a84fa,_0x385782){var _0x74da21=_0x421f7a;super(),d(this,_0x74da21(0x1f2),new Map()),(this[_0x74da21(0x197)]=_0x2ada05,this['_injector']=_0x4a84fa,this[_0x74da21(0x1ef)]=_0x385782,this[_0x74da21(0x183)]());}async['getLiveShareCoordinator'](_0x1a148f){var _0x504322=_0x421f7a;return this[_0x504322(0x1f2)]['has'](_0x1a148f)||await this['_startLiveShareCoordinator'](_0x1a148f),this[_0x504322(0x1f2)][_0x504322(0x1ce)](_0x1a148f);}[_0x421f7a(0x183)](){var _0x2c5e49=_0x421f7a;this[_0x2c5e49(0x197)]['getTypeOfUnitAdded$'](_0x3234f9['UNIVER_SHEET'])[_0x2c5e49(0x166)](_0x3cddc9(this[_0x2c5e49(0x1a2)]))['subscribe'](async _0x3b300c=>{var _0x2b8016=_0x2c5e49;const _0x564566=_0x3b300c[_0x2b8016(0x1bf)]();this[_0x2b8016(0x1f2)]['has'](_0x564566)||this[_0x2b8016(0x184)](_0x564566);}),this[_0x2c5e49(0x197)][_0x2c5e49(0x15c)](_0x3234f9['UNIVER_SHEET'])[_0x2c5e49(0x166)](_0x3cddc9(this['dispose$']))[_0x2c5e49(0x1cc)](_0x1dfc27=>{var _0x547654=_0x2c5e49;const _0x34d4f3=_0x1dfc27[_0x547654(0x1bf)](),_0x33c495=this[_0x547654(0x1f2)]['get'](_0x34d4f3);_0x33c495==null||_0x33c495[_0x547654(0x19b)]();});}async[_0x421f7a(0x184)](_0x28ac3c){var _0x68a82d=_0x421f7a;const _0x126f4b=await this[_0x68a82d(0x1ef)][_0x68a82d(0x20a)](_0x28ac3c),_0x404c95=this[_0x68a82d(0x1b7)][_0x68a82d(0x1dd)](C,_0x28ac3c,_0x126f4b);return _0x404c95[_0x68a82d(0x1a3)](),this[_0x68a82d(0x1f2)][_0x68a82d(0x1be)](_0x28ac3c,_0x404c95),_0x404c95;}};m=Z([f(0x0,_0x3889bb),f(0x1,_0x4b4c18(_0x12ff87)),f(0x2,_0x4b4c18(_0x32ee68))],m);var h=(_0x51a75b=>(_0x51a75b['OFFLINE']=_0x421f7a(0x20d),_0x51a75b[_0x421f7a(0x1d6)]=_0x421f7a(0x1eb),_0x51a75b[_0x421f7a(0x1c2)]='following',_0x51a75b['NOT_FOLLOWING']=_0x421f7a(0x19d),_0x51a75b['PRESENTING']=_0x421f7a(0x17d),_0x51a75b))(h||{});const xe=_0x421f7a(0x1f4),Le=0xc8;let C=class extends _0x1bc197{constructor(_0x5425c9,_0x255bdb,_0x292398,_0x24d9d3,_0x2e7543){var _0x37c763=_0x421f7a;super(),d(this,_0x37c763(0x1e1),new _0x4c5bc1('idle')),d(this,_0x37c763(0x1bd),this[_0x37c763(0x1e1)][_0x37c763(0x208)]()),d(this,_0x37c763(0x183),!0x1),d(this,_0x37c763(0x1e3),null),d(this,'_presenter',null),(this[_0x37c763(0x174)]=_0x5425c9,this['_collabSession']=_0x255bdb,this['_configService']=_0x292398,this[_0x37c763(0x161)]=_0x24d9d3,this[_0x37c763(0x1e2)]=_0x2e7543);}get['_status'](){var _0x562318=_0x421f7a;return this[_0x562318(0x1e1)][_0x562318(0x1de)]();}[_0x421f7a(0x19b)](){var _0x110bad=_0x421f7a,_0x643cc1;(_0x643cc1=this[_0x110bad(0x1e3)])==null||_0x643cc1['dispose'](),this[_0x110bad(0x1e1)][_0x110bad(0x1b5)](_0x110bad(0x1eb)),this[_0x110bad(0x1e1)][_0x110bad(0x189)]();}[_0x421f7a(0x1a3)](){var _0x246eb2=_0x421f7a;this[_0x246eb2(0x183)]||(this[_0x246eb2(0x183)]=!0x0,this['_collabSession'][_0x246eb2(0x1c6)]['pipe'](_0x3cddc9(this[_0x246eb2(0x1a2)]))[_0x246eb2(0x1cc)](_0x5d4f51=>{var _0x333cce=_0x246eb2;switch(_0x5d4f51){case _0x5757f7[_0x333cce(0x1bb)]:this[_0x333cce(0x1d0)]();break;case _0x5757f7[_0x333cce(0x1ad)]:this['_handleOnline']();break;}}),this[_0x246eb2(0x168)]['event$'][_0x246eb2(0x166)](_0x3cddc9(this[_0x246eb2(0x1a2)]))[_0x246eb2(0x1cc)](_0x505099=>{var _0x35b930=_0x246eb2;const {eventID:_0x7efaaf}=_0x505099;switch(_0x7efaaf){case _0x155168[_0x35b930(0x1fe)]:this[_0x35b930(0x165)](_0x505099);break;case _0x155168[_0x35b930(0x1b2)]:this[_0x35b930(0x20e)](_0x505099);break;case _0x155168[_0x35b930(0x203)]:this[_0x35b930(0x207)]();break;case _0x155168['NEW_CHANGESETS']:this[_0x35b930(0x186)](_0x505099);break;}}));}[_0x421f7a(0x1b3)](){var _0x5480fe=_0x421f7a;this[_0x5480fe(0x168)][_0x5480fe(0x20c)]({'eventID':_0x155168[_0x5480fe(0x18a)],'data':{'unitID':this[_0x5480fe(0x174)],'userID':this['_collabSession']['getMemberID']()}},this[_0x5480fe(0x174)]);}[_0x421f7a(0x195)](){var _0x99620=_0x421f7a;this[_0x99620(0x1d1)]===_0x99620(0x17d)&&(this['_status$']['next'](_0x99620(0x1eb)),this[_0x99620(0x168)][_0x99620(0x20c)]({'eventID':_0x155168['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x99620(0x174)]}},this[_0x99620(0x174)]));}[_0x421f7a(0x206)](){var _0x3c7396=_0x421f7a;this['_status']===_0x3c7396(0x19d)&&(this[_0x3c7396(0x1e1)]['next'](_0x3c7396(0x18e)),this['_startFollowing']());}['stopFollowing'](){var _0x44990d=_0x421f7a;this['_status']===_0x44990d(0x18e)&&this[_0x44990d(0x1b4)]();}[_0x421f7a(0x165)](_0x48cf51){var _0x4564df=_0x421f7a;const {presenter:_0x191f33}=_0x48cf51['data'],_0x4dde2e=this[_0x4564df(0x168)][_0x4564df(0x1d8)]();this[_0x4564df(0x178)]=_0x191f33,_0x191f33===_0x4dde2e?(this[_0x4564df(0x1b4)](),this[_0x4564df(0x17f)]()):this[_0x4564df(0x1d1)]!==_0x4564df(0x19d)&&(this[_0x4564df(0x17a)](),this[_0x4564df(0x182)]());}[_0x421f7a(0x1fc)](){var _0x531eb9=_0x421f7a;const _0x4b8989={'eventID':_0x155168[_0x531eb9(0x1c3)]};this[_0x531eb9(0x168)][_0x531eb9(0x20c)](_0x4b8989,this[_0x531eb9(0x174)]);}[_0x421f7a(0x207)](){var _0x39f532=_0x421f7a;this[_0x39f532(0x178)]=null,this[_0x39f532(0x1d1)]!==_0x39f532(0x17d)&&this[_0x39f532(0x192)]();}['_handleNewChangeSets'](_0x83e6bd){var _0x3d91e1=_0x421f7a;if(this[_0x3d91e1(0x1d1)]==='following'&&this[_0x3d91e1(0x178)]===_0x83e6bd['data'][_0x3d91e1(0x1d5)]){const _0x2a209b=_0x47a67c(_0x83e6bd[_0x3d91e1(0x1f0)])[_0x3d91e1(0x162)][_0x3d91e1(0x1f7)]()['find'](_0x194ccc=>_0x194ccc['id']===_0x33c245['id']);if(_0x2a209b){const _0x579c09=_0x2a209b[_0x3d91e1(0x15b)]['unitId'],_0x100947=_0x2a209b[_0x3d91e1(0x15b)][_0x3d91e1(0x1b6)]['id'];setTimeout(()=>{var _0x22aeb8=_0x3d91e1;this[_0x22aeb8(0x1e2)][_0x22aeb8(0x160)](_0x278948['id'],{'unitId':_0x579c09,'subUnitId':_0x100947},{'fromCollab':!0x0});});}}}[_0x421f7a(0x17f)](){var _0x38a758=_0x421f7a;this[_0x38a758(0x1e1)][_0x38a758(0x1b5)](_0x38a758(0x17d));const _0x472b31=new Map(),_0x1c5dee=this[_0x38a758(0x1e3)]=new _0x3fbfad();_0x1c5dee[_0x38a758(0x1c1)](_0x1078e1(()=>{var _0x350a60=_0x38a758;_0x472b31[_0x350a60(0x16c)](_0x18d07c=>_0x18d07c[_0x350a60(0x189)]()),_0x472b31[_0x350a60(0x1df)]();})),_0x1c5dee[_0x38a758(0x1c1)](this[_0x38a758(0x1e2)][_0x38a758(0x173)](_0x834fde=>{var _0x38733e=_0x38a758,_0xffd947;if(_0x834fde[_0x38733e(0x1c5)]!==_0x1b7884[_0x38733e(0x18d)]||!this[_0x38733e(0x161)]['shouldShareOperation'](_0x834fde['id']))return;const {id:_0x3aa016}=_0x834fde;let _0x57938b;_0x472b31[_0x38733e(0x179)](_0x3aa016)?_0x57938b=_0x472b31[_0x38733e(0x1ce)](_0x3aa016):(_0x57938b=new _0x80fbac(),_0x472b31[_0x38733e(0x1be)](_0x3aa016,_0x57938b),_0x57938b[_0x38733e(0x166)](_0x528d93((_0xffd947=this[_0x38733e(0x1a9)][_0x38733e(0x1ea)](xe))!=null?_0xffd947:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38733e(0x1cc)](_0x520bcf=>{var _0x5241eb=_0x38733e;this[_0x5241eb(0x168)][_0x5241eb(0x20c)]({'eventID':_0x155168['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5241eb(0x174)],'operations':{[_0x520bcf['id']]:{'id':_0x520bcf['id'],'params':JSON[_0x5241eb(0x18c)](_0x520bcf[_0x5241eb(0x15b)])}}}},this[_0x5241eb(0x174)]);})),_0x57938b[_0x38733e(0x1b5)](_0x834fde);})),this['_liveShareService'][_0x38a758(0x209)](this['_unitID'])['forEach'](_0x5865fa=>this[_0x38a758(0x168)][_0x38a758(0x20c)]({'eventID':_0x155168[_0x38a758(0x1b2)],'data':{'unitID':this[_0x38a758(0x174)],'operations':{[_0x5865fa['id']]:{'id':_0x5865fa['id'],'params':JSON[_0x38a758(0x18c)](_0x5865fa['params'])}}}},this['_unitID']));}['_stopPresenting'](){var _0x2b1b29=_0x421f7a,_0x3e9251;this[_0x2b1b29(0x1e1)][_0x2b1b29(0x1b5)]('idle'),(_0x3e9251=this[_0x2b1b29(0x1e3)])==null||_0x3e9251[_0x2b1b29(0x19b)](),this[_0x2b1b29(0x1e3)]=null;}[_0x421f7a(0x182)](){var _0x529db7=_0x421f7a,_0x3f9f88;(_0x3f9f88=this[_0x529db7(0x1e3)])==null||_0x3f9f88['dispose'](),this[_0x529db7(0x1e1)][_0x529db7(0x1b5)]('following');}[_0x421f7a(0x192)](){var _0x36d8b3=_0x421f7a,_0x112b3d;this[_0x36d8b3(0x1e1)][_0x36d8b3(0x1b5)](_0x36d8b3(0x1eb)),(_0x112b3d=this[_0x36d8b3(0x1e3)])==null||_0x112b3d[_0x36d8b3(0x19b)](),this[_0x36d8b3(0x1e3)]=null;}[_0x421f7a(0x1b4)](){var _0x430138=_0x421f7a,_0x407a99;this[_0x430138(0x1e1)][_0x430138(0x1b5)](_0x430138(0x19d)),(_0x407a99=this[_0x430138(0x1e3)])==null||_0x407a99[_0x430138(0x19b)]();}[_0x421f7a(0x20e)](_0x6f38d5){var _0x4bb502=_0x421f7a;if([_0x4bb502(0x17d),_0x4bb502(0x19d),'offline']['includes'](this[_0x4bb502(0x1d1)])||!_0x6f38d5[_0x4bb502(0x1f0)]['presenter']||_0x6f38d5['data'][_0x4bb502(0x1a0)]===this[_0x4bb502(0x168)][_0x4bb502(0x1d8)]())return;this[_0x4bb502(0x1d1)]===_0x4bb502(0x1eb)&&this[_0x4bb502(0x182)]();const _0x39da89=_0x6f38d5[_0x4bb502(0x1f0)]['operations'];Object[_0x4bb502(0x1a5)](_0x39da89)['forEach'](_0x5e9898=>{var _0x121d75=_0x4bb502;this[_0x121d75(0x1e2)][_0x121d75(0x160)](_0x5e9898['id'],_0x5e9898[_0x121d75(0x15b)]?JSON[_0x121d75(0x1aa)](_0x5e9898[_0x121d75(0x15b)]):null,{'fromCollab':!0x0});});}[_0x421f7a(0x1d0)](){var _0xcc3898=_0x421f7a,_0x490604;this['_status$'][_0xcc3898(0x1b5)](_0xcc3898(0x20d)),(_0x490604=this[_0xcc3898(0x1e3)])==null||_0x490604['dispose']();}[_0x421f7a(0x1f1)](){var _0x93ed8a=_0x421f7a;this[_0x93ed8a(0x1e1)][_0x93ed8a(0x1b5)](_0x93ed8a(0x1eb)),this[_0x93ed8a(0x1fc)]();}};C=Z([f(0x2,_0x283dc5),f(0x3,_0x4b4c18(L)),f(0x4,_0x62e54c)],C);function ye(){var _0x5d27b9=_0x421f7a;const _0x2c3fa9=_0x20977d(m),_0x3ad0d9=_0x20977d(_0x3889bb),_0x40a090=_0xc10a5c(()=>_0x3ad0d9[_0x5d27b9(0x1a4)](_0x3234f9['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x389043,_0x5d2035]=_0x4f9eda(null),[_0x434ffc,_0x51a627]=_0x4f9eda(h[_0x5d27b9(0x1d6)]),_0x7f2879=_0x435daf(null);return _0x4ebfa4(()=>(_0x40a090&&_0x2c3fa9[_0x5d27b9(0x164)](_0x40a090[_0x5d27b9(0x1bf)]())[_0x5d27b9(0x19c)](_0x2ffbca=>{var _0x5b18ec=_0x5d27b9;_0x5d2035(_0x2ffbca),_0x7f2879['current']=_0x2ffbca['status$'][_0x5b18ec(0x1cc)](_0x1072cf=>{_0x51a627(_0x1072cf);});}),()=>{var _0x5f5baa=_0x5d27b9,_0x29475e;(_0x29475e=_0x7f2879[_0x5f5baa(0x171)])==null||_0x29475e['unsubscribe'](),_0x7f2879[_0x5f5baa(0x171)]=null;}),[_0x40a090,_0x2c3fa9]),_0x389043?_0x2ca145(_0x258e49,{'align':_0x5d27b9(0x1ee),'disabled':_0x434ffc===h[_0x5d27b9(0x1bb)],'className':_0x5d27b9(0x210),'overlay':_0x2ca145(Re,{'status':_0x434ffc,'coordinator':_0x389043}),'children':_0x2ca145(_0x5d27b9(0x172),{'className':_0x9a7ef5(_0x5d27b9(0x16a),{'univer-cursor-not-allowed':_0x434ffc===h[_0x5d27b9(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x434ffc!==h[_0x5d27b9(0x1bb)]}),'type':_0x5d27b9(0x172),'children':_0x2ca145(B,{'className':_0x5d27b9(0x201)})})}):null;}function Re(_0x14a21e){var _0x1f65ec=_0x421f7a;const {status:_0x1844cd,coordinator:_0xf0ac31}=_0x14a21e;switch(_0x1844cd){case h[_0x1f65ec(0x1d6)]:return _0x2ca145(Pe,{'coordinator':_0xf0ac31});case h[_0x1f65ec(0x1c2)]:return _0x2ca145(Ae,{'coordinator':_0xf0ac31});case h[_0x1f65ec(0x1fd)]:return _0x2ca145(Te,{'coordinator':_0xf0ac31});case h['OFFLINE']:return _0x2ca145(Fe,{});case h[_0x1f65ec(0x1ca)]:return _0x2ca145($e,{'coordinator':_0xf0ac31});default:return null;}}function Pe(_0x21fb35){var _0x528a3d=_0x421f7a;const {coordinator:_0x33f64e}=_0x21fb35;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145('div',{'className':_0x528a3d(0x1c7),'children':_0x528a3d(0x1b8)}),_0x2ca145(_0x47729a,{'onClick':()=>_0x33f64e[_0x528a3d(0x1b3)](),'children':_0x528a3d(0x1fb)})]});}function Ae(_0x3f254f){var _0x27377c=_0x421f7a;const {coordinator:_0x5a0829}=_0x3f254f;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x27377c(0x1ae),{'className':_0x27377c(0x1c7),'children':_0x27377c(0x1bc)}),_0x2ca145(_0x47729a,{'onClick':()=>_0x5a0829[_0x27377c(0x193)](),'children':_0x27377c(0x1f8)})]});}function Te(_0x1b6d50){var _0x48f60c=_0x421f7a;const {coordinator:_0x2d40c7}=_0x1b6d50;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x48f60c(0x1ae),{'className':_0x48f60c(0x1c7),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2ca145(_0x47729a,{'variant':_0x48f60c(0x198),'onClick':()=>_0x2d40c7['startFollowing'](),'children':_0x48f60c(0x205)})]});}function _0x4030(_0x306a91,_0x412983){var _0x326c70=_0x326c();return _0x4030=function(_0x4030e4,_0x337e69){_0x4030e4=_0x4030e4-0x15b;var _0x419c2c=_0x326c70[_0x4030e4];return _0x419c2c;},_0x4030(_0x306a91,_0x412983);}function $e(_0x3199be){var _0x37518e=_0x421f7a;const {coordinator:_0x8afd8e}=_0x3199be;return _0x3ee81b(_0x38862d,{'children':[_0x2ca145(_0x37518e(0x1ae),{'className':_0x37518e(0x1c7),'children':_0x37518e(0x1ec)}),_0x2ca145(_0x47729a,{'variant':_0x37518e(0x1e9),'onClick':()=>_0x8afd8e[_0x37518e(0x195)](),'children':_0x37518e(0x1b0)})]});}function Fe(){var _0x4f1b44=_0x421f7a;return _0x2ca145(_0x38862d,{'children':_0x4f1b44(0x15e)});}function _0x326c(){var _0xf57f39=['requireSession','http://www.w3.org/2000/svg','send','offline','_handleOperation','pluginName','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','params','getTypeOfUnitDisposed$','hasOwnProperty','You\x27are\x20offline.','substring','executeCommand','_liveShareService','mutations','setConfig','getLiveShareCoordinator','_handleNewHost','pipe','defs','_collabSession','shouldShareOperation','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','trim','forEach','attrs','mask','0\x200\x2017\x2017','UNIVER_LIVE_SHARE_PLUGIN','current','button','onCommandExecuted','_unitID','disposeWithMe','className','currentColor','_presenter','has','_stopPresenting','1em','defineProperty','presenting','UNIVER_UNKNOWN','_startPresenting','displayName','_mountLiveShare','_startFollowing','_init','_startLiveShareCoordinator','LiveShareIcon','_handleNewChangeSets','url(#$1','children','complete','LIVESHARE_REQUEST_HOST','univerjs-icon\x20univerjs-icon-','stringify','OPERATION','following','6424EmtJrw','idSuffix','70SbgAfy','_beIdle','stopFollowing','from','stopPresenting','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_univerInstanceService','text','_reporters','registerInitialStateReporter','dispose','then','not-following','onStarting','none','presenter','onRendered','dispose$','init','getCurrentTypeOfUnit$','values','1818530RpOJEz','56IwtrLP','live-share-icon','_configService','parse','_config','length','ONLINE','div','string','Stop\x20presenting','xlink:href','LIVESHARE_OPERATION','tryStartPresenting','_stopFollowing','next','sheet','_injector','Present\x20this\x20document','path','function','OFFLINE','You\x27re\x20following\x20the\x20presenter','status$','set','getUnitId','map','add','FOLLOWING','LIVESHARE_FETCH_OPERATIONS','call','type','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','_uiPartsService','_sharedOperations','PRESENTING','UniverIcon','subscribe','random','get','getOwnPropertyDescriptor','_handleOffline','_status','entries','delete','getOwnPropertySymbols','memberID','IDLE','concat','getMemberID','prototype','icon','use','evenodd','createInstance','getValue','clear','indexOf','_status$','_commandService','_commandDisposable','propertyIsEnumerable','246Jsqpcs','replace','356363GhteUp','tag','default','getConfig','idle','You\x27re\x20presenting\x20the\x20document','svg','end','_collabSessionService','data','_handleOnline','_entities','696978eUFEHO','SAME_OPERATION_SHARE_INTERVAL','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','31892SjUagm','reverse','Stop\x20following','registerSharedOperation','2911860dMllIk','Start','_fetchOperations','NOT_FOLLOWING','LIVESHARE_NEW_HOST','colorChannel1','defIds','univer-size-4','2271762WbyTMA','LIVESHARE_TERMINATE','extend','Start\x20following','startFollowing','_handleTerminate','asObservable','getInitialStates'];_0x326c=function(){return _0xf57f39;};return _0x326c();}var He=Object[_0x421f7a(0x1cf)],je=(_0x3c04da,_0x37218a,_0x5a3a43,_0x1287e5)=>{var _0x360b04=_0x421f7a;for(var _0x1986a9=_0x1287e5>0x1?void 0x0:_0x1287e5?He(_0x37218a,_0x5a3a43):_0x37218a,_0x4e1cb7=_0x3c04da[_0x360b04(0x1ac)]-0x1,_0x10d972;_0x4e1cb7>=0x0;_0x4e1cb7--)(_0x10d972=_0x3c04da[_0x4e1cb7])&&(_0x1986a9=_0x10d972(_0x1986a9)||_0x1986a9);return _0x1986a9;},T=(_0x4674e6,_0x599426)=>(_0x4f9bf6,_0x55b59e)=>_0x599426(_0x4f9bf6,_0x55b59e,_0x4674e6);let I=class extends _0x2abf63{constructor(_0x2242bf,_0x1d293b){var _0x1b7628=_0x421f7a;super(),this['_injector']=_0x2242bf,this[_0x1b7628(0x1c8)]=_0x1d293b,this['_mountLiveShare']();}[_0x421f7a(0x181)](){var _0x5b2334=_0x421f7a;this['disposeWithMe'](this[_0x5b2334(0x1c8)]['registerComponent'](_0x1697f8['HEADER_MENU'],()=>_0x10655a(ye,this['_injector'])));}};I=je([T(0x0,_0x4b4c18(_0x12ff87)),T(0x1,_0x1c1d17)],I);const Ue='live-share.config',$={};var Ve=Object[_0x421f7a(0x1cf)],Me=(_0x458916,_0x3113ad,_0x5ed17d,_0x1e4067)=>{var _0x504ccb=_0x421f7a;for(var _0xd92874=_0x1e4067>0x1?void 0x0:_0x1e4067?Ve(_0x3113ad,_0x5ed17d):_0x3113ad,_0x4b0548=_0x458916[_0x504ccb(0x1ac)]-0x1,_0x3f9f1d;_0x4b0548>=0x0;_0x4b0548--)(_0x3f9f1d=_0x458916[_0x4b0548])&&(_0xd92874=_0x3f9f1d(_0xd92874)||_0xd92874);return _0xd92874;},ke=(_0x2d82b5,_0x2b2085)=>(_0x3c0c6c,_0x703a12)=>_0x2b2085(_0x3c0c6c,_0x703a12,_0x2d82b5);let b=class extends _0x2abf63{constructor(_0x4a0b2f){var _0xcd0733=_0x421f7a;super(),this[_0xcd0733(0x161)]=_0x4a0b2f,this['_init']();}['_init'](){var _0x4a2323=_0x421f7a;[_0x192820['id'],_0x27f0c3['id'],_0x278948['id']][_0x4a2323(0x16c)](_0x351165=>{var _0x5cb253=_0x4a2323;this[_0x5cb253(0x175)](this[_0x5cb253(0x161)]['registerSharedOperation'](_0x351165));});}};b=Me([ke(0x0,_0x4b4c18(L))],b);var Ge=Object[_0x421f7a(0x17c)],We=Object[_0x421f7a(0x1cf)],Ye=(_0x245414,_0x5aacc1,_0x2c161c)=>_0x5aacc1 in _0x245414?Ge(_0x245414,_0x5aacc1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c161c}):_0x245414[_0x5aacc1]=_0x2c161c,Be=(_0x34e825,_0x558721,_0x589f59,_0xe42e39)=>{var _0x28eea9=_0x421f7a;for(var _0x3a4bc3=_0xe42e39>0x1?void 0x0:_0xe42e39?We(_0x558721,_0x589f59):_0x558721,_0x1bd8c4=_0x34e825[_0x28eea9(0x1ac)]-0x1,_0x50950e;_0x1bd8c4>=0x0;_0x1bd8c4--)(_0x50950e=_0x34e825[_0x1bd8c4])&&(_0x3a4bc3=_0x50950e(_0x3a4bc3)||_0x3a4bc3);return _0x3a4bc3;},F=(_0x1208ef,_0x2de1d7)=>(_0x4e919e,_0x216c68)=>_0x2de1d7(_0x4e919e,_0x216c68,_0x1208ef),J=(_0x151eb4,_0x596286,_0x50871c)=>Ye(_0x151eb4,typeof _0x596286!='symbol'?_0x596286+'':_0x596286,_0x50871c);const Ze=_0x421f7a(0x170);let O=class extends _0x525e5f{constructor(_0x495180=$,_0x82b44c,_0x931c70){var _0x5be256=_0x421f7a;super(),this[_0x5be256(0x1ab)]=_0x495180,this[_0x5be256(0x1b7)]=_0x82b44c,this['_configService']=_0x931c70;const {..._0x5eff2b}=_0x53247a({},$,this[_0x5be256(0x1ab)]);this[_0x5be256(0x1a9)][_0x5be256(0x163)](Ue,_0x5eff2b);}[_0x421f7a(0x19e)](){var _0x23f1a2=_0x421f7a;_0x3bf986(this['_injector'],_0x184474([[L],[m],[b],[I]],this[_0x23f1a2(0x1ab)]['override'])),_0x10bb21(this['_injector'],[[b]]);}[_0x421f7a(0x1a1)](){_0x10bb21(this['_injector'],[[I]]);}};J(O,'type',_0x3234f9[_0x421f7a(0x17e)]),J(O,_0x421f7a(0x20f),Ze),O=Be([_0x242f70(_0x4057a8),F(0x1,_0x4b4c18(_0x12ff87)),F(0x2,_0x283dc5)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4e8a(_0x242b7b,_0x2207ef){var _0x12e32d=_0x12e3();return _0x4e8a=function(_0x4e8abc,_0x37faf3){_0x4e8abc=_0x4e8abc-0x1ec;var _0x280c62=_0x12e32d[_0x4e8abc];return _0x280c62;},_0x4e8a(_0x242b7b,_0x2207ef);}function _0x12e3(){var _0x348fa2=['unsubscribe','registerSharedOperation','Subject','_entities','univerjs-icon\x20univerjs-icon-','UniverLiveSharePlugin','send','object','SetScrollOperation','hasOwnProperty','shouldShareOperation','then','parse','useRef','init','offline','substring','url(#$1','unitId','@univerjs-pro/collaboration','defIds','IDLE','indexOf','status$','react','xlink:href','OFFLINE','getUnitId','_status$','useEffect','HEADER_MENU','call','InsertSheetMutation','CollaborationSessionService','LIVESHARE_REQUEST_HOST','_status','univer-size-4','set','CollaborationEvent','PRESENTING','onStarting','UniverCore','NOT_FOLLOWING','5886056ZgNdUw','SetWorksheetActiveOperation','_unitID','propertyIsEnumerable','_startFollowing','live-share.config','UNIVER_SHEET','LIVESHARE_FETCH_OPERATIONS','Start','jsxs','stringify','mergeOverrideWithDependencies','You\x27re\x20presenting\x20the\x20document','stopFollowing','from','50kZljMm','random','createElement','currentColor','_startLiveShareCoordinator','FOLLOWING','_handleOffline','tag','http://www.w3.org/2000/svg','assign','sessionStatus$','values','Disposable','_collabSessionService','getInitialStates','apply','LIVESHARE_TERMINATE','string','add','getOwnPropertySymbols','div','0\x200\x2017\x2017','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','connectInjector','has','attrs','subscribe','LiveShare','setConfig','DesktopLiveShareController','next','@univerjs/ui','map','executeCommand','3710490lZBOMW','jsx','getTypeOfUnitDisposed$','presenter','getMemberID','rxjs','data','UniverSheets','LiveShareController','LiveShareService','mask','@univerjs/sheets','forEach','following','UNIVER_LIVE_SHARE_PLUGIN','DependentOn','forwardRef','disposeWithMe','_beIdle','_handleOnline','toStringTag','SessionStatus','Stop\x20presenting','prototype','LIVESHARE_NEW_HOST','reverse','idle','DisposableCollection','onRendered','icon','You\x27re\x20following\x20the\x20presenter','_startPresenting','UniverProLiveShare','complete','_uiPartsService','getConfig','registerComponent','getTypeOfUnitAdded$','memberID','defineProperty','not-following','LIVESHARE_OPERATION','univer-mb-3\x20univer-w-full\x20univer-text-sm','touchDependencies','presenting','colorChannel1','_presenter','_handleNewChangeSets','concat','onCommandExecuted','includes','1824634CXwBoa','_commandDisposable','@univerjs-pro/collaboration-client','LiveShareStatus','asObservable','operators','amd','registerInitialStateReporter','default','185751dWacwE','dispose$','get','_sharedOperations','_collabSession','current','replace','@univerjs/design','react/jsx-runtime','extend','toDisposable','_fetchOperations','UniverDesign','takeUntil','Start\x20following','_stopFollowing','UniverInstanceType','requireSession','svg','Inject','className','UniverUi','Injector','_handleTerminate','tryStartPresenting','rxjs/operators','displayName','IUniverInstanceService','useDependency','UniverProCollaboration','find','throttleTime','IConfigService','defs','Plugin','_injector','UniverProCollaborationClient','3235540QZefGW','_reporters','getCurrentTypeOfUnit$','UniverIcon','BuiltInUIPart','symbol','delete','operations','evenodd','LiveShareIcon','ONLINE','function','getLiveShareCoordinator','pipe','Dropdown','children','dispose','_liveShareService','52SQFdSj','RxDisposable','createInstance','getOwnPropertyDescriptor','You\x27are\x20offline.','_config','clear','path','length','LiveShareCoordinator','_commandService','override','end','merge','_handleNewHost','Fragment','trim','Button','clsx','_handleOperation','_stopPresenting','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','type','fill','3754gArBMj','_configService','_mountLiveShare','UniverSheetsUi','@univerjs/core','button','1em','React','idSuffix','You\x27re\x20not\x20following\x20the\x20presenter','getValue','_init','entries','Module','4948596LeYwfK','live-share-icon','stopPresenting','params','_univerInstanceService'];_0x12e3=function(){return _0x348fa2;};return _0x12e3();}(function(_0x5086fb,_0x193e63){var _0x107a4e=_0x4e8a,_0x29ffcc=_0x5086fb();while(!![]){try{var _0x1c09cf=-parseInt(_0x107a4e(0x225))/0x1*(parseInt(_0x107a4e(0x272))/0x2)+-parseInt(_0x107a4e(0x2d0))/0x3*(parseInt(_0x107a4e(0x20d))/0x4)+-parseInt(_0x107a4e(0x1fb))/0x5+parseInt(_0x107a4e(0x294))/0x6+parseInt(_0x107a4e(0x2c7))/0x7+parseInt(_0x107a4e(0x263))/0x8+parseInt(_0x107a4e(0x233))/0x9;if(_0x1c09cf===_0x193e63)break;else _0x29ffcc['push'](_0x29ffcc['shift']());}catch(_0x3f9424){_0x29ffcc['push'](_0x29ffcc['shift']());}}}(_0x12e3,0x9712f),function(_0x14460a,_0x3d1f87){var _0x5ce170=_0x4e8a;typeof exports==_0x5ce170(0x23f)&&typeof module<'u'?_0x3d1f87(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x5ce170(0x2cd)]?define(['exports',_0x5ce170(0x229),_0x5ce170(0x291),_0x5ce170(0x2d8),_0x5ce170(0x2d7),_0x5ce170(0x250),_0x5ce170(0x24b),_0x5ce170(0x2c9),_0x5ce170(0x29f),'rxjs',_0x5ce170(0x1ef),'@univerjs/sheets-ui'],_0x3d1f87):(_0x14460a=typeof globalThis<'u'?globalThis:_0x14460a||self,_0x3d1f87(_0x14460a[_0x5ce170(0x2b4)]={},_0x14460a[_0x5ce170(0x261)],_0x14460a[_0x5ce170(0x2e5)],_0x14460a[_0x5ce170(0x22c)],_0x14460a[_0x5ce170(0x2dc)],_0x14460a['React'],_0x14460a[_0x5ce170(0x1f3)],_0x14460a[_0x5ce170(0x1fa)],_0x14460a[_0x5ce170(0x29b)],_0x14460a[_0x5ce170(0x299)],_0x14460a[_0x5ce170(0x299)][_0x5ce170(0x2cc)],_0x14460a[_0x5ce170(0x228)]));}(this,function(_0x2c83d3,_0x4eaa93,_0x25183f,_0x551abb,_0x291e19,_0x2a881a,_0xe00c00,_0x4fa62d,_0x160e81,_0x768fc5,_0x4d9baf,_0x511a5b){'use strict';var _0x2d67da=_0x4e8a;var _0x1cbad6=Object[_0x2d67da(0x2bb)],_0x26f6b7=(_0x59c82a,_0x527275,_0x164f72)=>_0x527275 in _0x59c82a?_0x1cbad6(_0x59c82a,_0x527275,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x164f72}):_0x59c82a[_0x527275]=_0x164f72,_0xea0fb6=(_0x2e9288,_0x9559de,_0x9e2b13)=>_0x26f6b7(_0x2e9288,typeof _0x9559de!=_0x2d67da(0x200)?_0x9559de+'':_0x9559de,_0x9e2b13),_0x17fd21=function(){var _0x1fda10=_0x2d67da;return _0x17fd21=Object[_0x1fda10(0x27b)]||function(_0x10f898){var _0x547c3e=_0x1fda10;for(var _0x1808e7,_0x4f3ea7=0x1,_0x515b70=arguments['length'];_0x4f3ea7<_0x515b70;_0x4f3ea7++){_0x1808e7=arguments[_0x4f3ea7];for(var _0x1c8c9f in _0x1808e7)Object[_0x547c3e(0x2ab)][_0x547c3e(0x241)][_0x547c3e(0x257)](_0x1808e7,_0x1c8c9f)&&(_0x10f898[_0x1c8c9f]=_0x1808e7[_0x1c8c9f]);}return _0x10f898;},_0x17fd21[_0x1fda10(0x281)](this,arguments);},_0x81c724=function(_0x9adcf4,_0x34e268){var _0x25dd23=_0x2d67da,_0x2690dd={};for(var _0x4628c0 in _0x9adcf4)Object[_0x25dd23(0x2ab)][_0x25dd23(0x241)]['call'](_0x9adcf4,_0x4628c0)&&_0x34e268[_0x25dd23(0x24e)](_0x4628c0)<0x0&&(_0x2690dd[_0x4628c0]=_0x9adcf4[_0x4628c0]);if(_0x9adcf4!=null&&typeof Object[_0x25dd23(0x285)]==_0x25dd23(0x206)){for(var _0x2aa192=0x0,_0x4628c0=Object[_0x25dd23(0x285)](_0x9adcf4);_0x2aa192<_0x4628c0[_0x25dd23(0x215)];_0x2aa192++)_0x34e268['indexOf'](_0x4628c0[_0x2aa192])<0x0&&Object[_0x25dd23(0x2ab)][_0x25dd23(0x266)]['call'](_0x9adcf4,_0x4628c0[_0x2aa192])&&(_0x2690dd[_0x4628c0[_0x2aa192]]=_0x9adcf4[_0x4628c0[_0x2aa192]]);}return _0x2690dd;},_0x21a766=_0x2a881a[_0x2d67da(0x2a4)](function(_0xc1372d,_0x49c2f2){var _0x28ea97=_0x2d67da,_0x56a830=_0xc1372d[_0x28ea97(0x2b1)],_0x181eca=_0xc1372d['id'],_0x2f273d=_0xc1372d[_0x28ea97(0x2e4)],_0x3b67c8=_0xc1372d[_0x28ea97(0x2d9)],_0x4d0e4f=_0x81c724(_0xc1372d,[_0x28ea97(0x2b1),'id',_0x28ea97(0x2e4),_0x28ea97(0x2d9)]),_0x3b2b06=_0x28ea97(0x23c)[_0x28ea97(0x2c4)](_0x181eca,'\x20')[_0x28ea97(0x2c4)](_0x2f273d||'')[_0x28ea97(0x21d)](),_0x3d4f9e=_0x2a881a[_0x28ea97(0x245)]('_'[_0x28ea97(0x2c4)](_0x4549ff()));return _0x46becf(_0x56a830,''[_0x28ea97(0x2c4)](_0x181eca),{'defIds':_0x56a830[_0x28ea97(0x24c)],'idSuffix':_0x3d4f9e['current']},_0x17fd21({'ref':_0x49c2f2,'className':_0x3b2b06},_0x4d0e4f),_0x3b67c8);});function _0x46becf(_0x4aad8a,_0x4691e7,_0x3d357c,_0x51ff9,_0x4e8473){var _0x58927e=_0x2d67da;return _0x2a881a[_0x58927e(0x274)](_0x4aad8a['tag'],_0x17fd21(_0x17fd21({'key':_0x4691e7},_0x4f6a03(_0x4aad8a,_0x3d357c,_0x4e8473)),_0x51ff9),(_0x235470(_0x4aad8a,_0x3d357c)[_0x58927e(0x20a)]||[])[_0x58927e(0x292)](function(_0x311565,_0x3b0f50){var _0x3ef9fa=_0x58927e;return _0x46becf(_0x311565,''[_0x3ef9fa(0x2c4)](_0x4691e7,'-')[_0x3ef9fa(0x2c4)](_0x4aad8a[_0x3ef9fa(0x279)],'-')[_0x3ef9fa(0x2c4)](_0x3b0f50),_0x3d357c,void 0x0,_0x4e8473);}));}function _0x4f6a03(_0x46dd0d,_0x30704e,_0x2bba87){var _0x204fce=_0x2d67da,_0x28cb9c=_0x17fd21({},_0x46dd0d[_0x204fce(0x28b)]);_0x2bba87!=null&&_0x2bba87[_0x204fce(0x2c1)]&&_0x28cb9c[_0x204fce(0x224)]===_0x204fce(0x2c1)&&(_0x28cb9c[_0x204fce(0x224)]=_0x2bba87['colorChannel1']),_0x46dd0d[_0x204fce(0x279)]===_0x204fce(0x29e)&&_0x28cb9c['id']&&(_0x28cb9c['id']=_0x28cb9c['id']+_0x30704e[_0x204fce(0x22d)]),Object[_0x204fce(0x231)](_0x28cb9c)['forEach'](function(_0x1e7480){var _0x35b63a=_0x204fce,_0x2400e7=_0x1e7480[0x0],_0x2559d1=_0x1e7480[0x1];_0x2400e7===_0x35b63a(0x29e)&&typeof _0x2559d1==_0x35b63a(0x283)&&(_0x28cb9c[_0x2400e7]=_0x2559d1[_0x35b63a(0x2d6)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x30704e['idSuffix'],')')));});var _0x1371ef=_0x30704e['defIds'];return!_0x1371ef||_0x1371ef[_0x204fce(0x215)]===0x0||(_0x46dd0d[_0x204fce(0x279)]==='use'&&_0x28cb9c[_0x204fce(0x251)]&&(_0x28cb9c[_0x204fce(0x251)]=_0x28cb9c['xlink:href']+_0x30704e[_0x204fce(0x22d)]),Object['entries'](_0x28cb9c)[_0x204fce(0x2a0)](function(_0x211498){var _0x3b3ea9=_0x204fce,_0x25b7f9=_0x211498[0x0],_0x245ac0=_0x211498[0x1];typeof _0x245ac0=='string'&&(_0x28cb9c[_0x25b7f9]=_0x245ac0['replace'](/url\(#(.*)\)/,_0x3b3ea9(0x249)[_0x3b3ea9(0x2c4)](_0x30704e[_0x3b3ea9(0x22d)],')')));})),_0x28cb9c;}function _0x235470(_0x2d9703,_0x53ddcd){var _0x1eff61=_0x2d67da,_0xfe1804,_0x403544=_0x53ddcd[_0x1eff61(0x24c)];return!_0x403544||_0x403544['length']===0x0?_0x2d9703:_0x2d9703[_0x1eff61(0x279)]===_0x1eff61(0x1f7)&&(!((_0xfe1804=_0x2d9703[_0x1eff61(0x20a)])===null||_0xfe1804===void 0x0)&&_0xfe1804['length'])?_0x17fd21(_0x17fd21({},_0x2d9703),{'children':_0x2d9703[_0x1eff61(0x20a)][_0x1eff61(0x292)](function(_0x395d30){var _0x1e3dd2=_0x1eff61;return typeof _0x395d30[_0x1e3dd2(0x28b)]['id']==_0x1e3dd2(0x283)&&_0x403544&&_0x403544[_0x1e3dd2(0x2c6)](_0x395d30[_0x1e3dd2(0x28b)]['id'])?_0x17fd21(_0x17fd21({},_0x395d30),{'attrs':_0x17fd21(_0x17fd21({},_0x395d30[_0x1e3dd2(0x28b)]),{'id':_0x395d30[_0x1e3dd2(0x28b)]['id']+_0x53ddcd[_0x1e3dd2(0x22d)]})}):_0x395d30;})}):_0x2d9703;}function _0x4549ff(){var _0x41f349=_0x2d67da;return Math[_0x41f349(0x273)]()['toString'](0x24)[_0x41f349(0x248)](0x2,0x8);}_0x21a766[_0x2d67da(0x1f0)]=_0x2d67da(0x1fe);var _0xe2ce76={'tag':_0x2d67da(0x2e2),'attrs':{'xmlns':_0x2d67da(0x27a),'fill':'none','viewBox':_0x2d67da(0x287),'width':_0x2d67da(0x22b),'height':'1em'},'children':[{'tag':_0x2d67da(0x214),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x2d67da(0x214),'attrs':{'fill':_0x2d67da(0x275),'d':_0x2d67da(0x222),'fillRule':_0x2d67da(0x203),'clipRule':_0x2d67da(0x203)}}]},_0x1f66cf=_0x2a881a[_0x2d67da(0x2a4)](function(_0x535ccc,_0x2f34ba){var _0x435978=_0x2d67da;return _0x2a881a[_0x435978(0x274)](_0x21a766,Object['assign']({},_0x535ccc,{'id':_0x435978(0x234),'ref':_0x2f34ba,'icon':_0xe2ce76}));});_0x1f66cf[_0x2d67da(0x1f0)]=_0x2d67da(0x204);class _0x563883 extends _0x4eaa93['Disposable']{constructor(){var _0x13b1b9=_0x2d67da;super(...arguments),_0xea0fb6(this,_0x13b1b9(0x2d3),new Set()),_0xea0fb6(this,_0x13b1b9(0x1fc),new Set());}[_0x2d67da(0x239)](_0x3e789d){var _0x29da28=_0x2d67da;return this[_0x29da28(0x2d3)][_0x29da28(0x284)](_0x3e789d),_0x4eaa93[_0x29da28(0x2da)](()=>this[_0x29da28(0x2d3)]['delete'](_0x3e789d));}[_0x2d67da(0x2ce)](_0x1ac734){var _0x294a66=_0x2d67da;return this[_0x294a66(0x1fc)]['add'](_0x1ac734),_0x4eaa93[_0x294a66(0x2da)](()=>this['_reporters'][_0x294a66(0x201)](_0x1ac734));}[_0x2d67da(0x242)](_0x1d34a9){var _0x1490a1=_0x2d67da;return this[_0x1490a1(0x2d3)][_0x1490a1(0x28a)](_0x1d34a9);}[_0x2d67da(0x280)](_0xf399bc){var _0x4fa6c1=_0x2d67da;return Array[_0x4fa6c1(0x271)](this[_0x4fa6c1(0x1fc)])[_0x4fa6c1(0x292)](_0x56ada6=>_0x56ada6(_0xf399bc));}}var _0x28c9c3=Object[_0x2d67da(0x210)],_0x562b05=(_0x54b435,_0x44087e,_0x4cdf9e,_0x12dc68)=>{for(var _0x3ed218=_0x12dc68>0x1?void 0x0:_0x12dc68?_0x28c9c3(_0x44087e,_0x4cdf9e):_0x44087e,_0x32d7c5=_0x54b435['length']-0x1,_0x4964d8;_0x32d7c5>=0x0;_0x32d7c5--)(_0x4964d8=_0x54b435[_0x32d7c5])&&(_0x3ed218=_0x4964d8(_0x3ed218)||_0x3ed218);return _0x3ed218;},_0x391c93=(_0x33ecc5,_0x2b4441)=>(_0x3f71ce,_0x2b1d0c)=>_0x2b4441(_0x3f71ce,_0x2b1d0c,_0x33ecc5);_0x2c83d3['LiveShareController']=class extends _0x4eaa93[_0x2d67da(0x20e)]{constructor(_0x3e8d77,_0x19e12c,_0x3d2ce8){var _0x48a9c1=_0x2d67da;super(),_0xea0fb6(this,'_entities',new Map()),(this[_0x48a9c1(0x237)]=_0x3e8d77,this[_0x48a9c1(0x1f9)]=_0x19e12c,this[_0x48a9c1(0x27f)]=_0x3d2ce8,this[_0x48a9c1(0x230)]());}async[_0x2d67da(0x207)](_0x379e62){var _0x45955e=_0x2d67da;return this[_0x45955e(0x23b)][_0x45955e(0x28a)](_0x379e62)||await this[_0x45955e(0x276)](_0x379e62),this[_0x45955e(0x23b)]['get'](_0x379e62);}[_0x2d67da(0x230)](){var _0x265755=_0x2d67da;this[_0x265755(0x237)][_0x265755(0x2b9)](_0x4eaa93[_0x265755(0x2e0)][_0x265755(0x269)])[_0x265755(0x208)](_0x4d9baf[_0x265755(0x2dd)](this[_0x265755(0x2d1)]))[_0x265755(0x28c)](async _0x71f133=>{var _0x4a47cb=_0x265755;const _0xd5cc75=_0x71f133[_0x4a47cb(0x253)]();this[_0x4a47cb(0x23b)][_0x4a47cb(0x28a)](_0xd5cc75)||this[_0x4a47cb(0x276)](_0xd5cc75);}),this[_0x265755(0x237)][_0x265755(0x296)](_0x4eaa93[_0x265755(0x2e0)]['UNIVER_SHEET'])[_0x265755(0x208)](_0x4d9baf[_0x265755(0x2dd)](this[_0x265755(0x2d1)]))['subscribe'](_0x5ef45d=>{var _0x15e335=_0x265755;const _0x41f53a=_0x5ef45d[_0x15e335(0x253)](),_0x5c13db=this[_0x15e335(0x23b)][_0x15e335(0x2d2)](_0x41f53a);_0x5c13db==null||_0x5c13db['dispose']();});}async[_0x2d67da(0x276)](_0x3766d0){var _0x69b8c3=_0x2d67da;const _0x5f01fa=await this['_collabSessionService'][_0x69b8c3(0x2e1)](_0x3766d0),_0x2aa471=this[_0x69b8c3(0x1f9)][_0x69b8c3(0x20f)](_0x2c83d3[_0x69b8c3(0x216)],_0x3766d0,_0x5f01fa);return _0x2aa471[_0x69b8c3(0x246)](),this['_entities'][_0x69b8c3(0x25d)](_0x3766d0,_0x2aa471),_0x2aa471;}},_0x2c83d3[_0x2d67da(0x29c)]=_0x562b05([_0x391c93(0x0,_0x4eaa93[_0x2d67da(0x1f1)]),_0x391c93(0x1,_0x4eaa93['Inject'](_0x4eaa93[_0x2d67da(0x1ec)])),_0x391c93(0x2,_0x4eaa93['Inject'](_0x4fa62d[_0x2d67da(0x259)]))],_0x2c83d3['LiveShareController']);var _0x187b3=(_0x3795b5=>(_0x3795b5['OFFLINE']=_0x2d67da(0x247),_0x3795b5[_0x2d67da(0x24d)]=_0x2d67da(0x2ae),_0x3795b5[_0x2d67da(0x277)]=_0x2d67da(0x2a1),_0x3795b5[_0x2d67da(0x262)]=_0x2d67da(0x2bc),_0x3795b5[_0x2d67da(0x25f)]=_0x2d67da(0x2c0),_0x3795b5))(_0x187b3||{});const _0x5ed555='SAME_OPERATION_SHARE_INTERVAL',_0x53f9ba=0xc8;_0x2c83d3[_0x2d67da(0x216)]=class extends _0x4eaa93['RxDisposable']{constructor(_0x1bc7a1,_0x58d6a7,_0x411906,_0x9479cf,_0x15d15a){var _0x425182=_0x2d67da;super(),_0xea0fb6(this,_0x425182(0x254),new _0x768fc5['BehaviorSubject'](_0x425182(0x2ae))),_0xea0fb6(this,_0x425182(0x24f),this['_status$'][_0x425182(0x2cb)]()),_0xea0fb6(this,'_init',!0x1),_0xea0fb6(this,_0x425182(0x2c8),null),_0xea0fb6(this,_0x425182(0x2c2),null),(this[_0x425182(0x265)]=_0x1bc7a1,this[_0x425182(0x2d4)]=_0x58d6a7,this[_0x425182(0x226)]=_0x411906,this['_liveShareService']=_0x9479cf,this['_commandService']=_0x15d15a);}get[_0x2d67da(0x25b)](){var _0x572aec=_0x2d67da;return this[_0x572aec(0x254)][_0x572aec(0x22f)]();}[_0x2d67da(0x20b)](){var _0x5bdfa5=_0x2d67da,_0x4a3731;(_0x4a3731=this[_0x5bdfa5(0x2c8)])==null||_0x4a3731[_0x5bdfa5(0x20b)](),this[_0x5bdfa5(0x254)][_0x5bdfa5(0x290)](_0x5bdfa5(0x2ae)),this[_0x5bdfa5(0x254)][_0x5bdfa5(0x2b5)]();}[_0x2d67da(0x246)](){var _0x2d5804=_0x2d67da;this[_0x2d5804(0x230)]||(this[_0x2d5804(0x230)]=!0x0,this['_collabSession'][_0x2d5804(0x27c)][_0x2d5804(0x208)](_0x4d9baf[_0x2d5804(0x2dd)](this[_0x2d5804(0x2d1)]))[_0x2d5804(0x28c)](_0x5b2644=>{var _0x111523=_0x2d5804;switch(_0x5b2644){case _0x4fa62d['SessionStatus']['OFFLINE']:this[_0x111523(0x278)]();break;case _0x4fa62d[_0x111523(0x2a9)][_0x111523(0x205)]:this[_0x111523(0x2a7)]();break;}}),this[_0x2d5804(0x2d4)]['event$'][_0x2d5804(0x208)](_0x4d9baf['takeUntil'](this[_0x2d5804(0x2d1)]))[_0x2d5804(0x28c)](_0x279bad=>{var _0xe248c7=_0x2d5804;const {eventID:_0x370872}=_0x279bad;switch(_0x370872){case _0xe00c00[_0xe248c7(0x25e)][_0xe248c7(0x2ac)]:this[_0xe248c7(0x21b)](_0x279bad);break;case _0xe00c00[_0xe248c7(0x25e)][_0xe248c7(0x2bd)]:this[_0xe248c7(0x220)](_0x279bad);break;case _0xe00c00[_0xe248c7(0x25e)][_0xe248c7(0x282)]:this[_0xe248c7(0x1ed)]();break;case _0xe00c00[_0xe248c7(0x25e)]['NEW_CHANGESETS']:this[_0xe248c7(0x2c3)](_0x279bad);break;}}));}[_0x2d67da(0x1ee)](){var _0x4dd35b=_0x2d67da;this[_0x4dd35b(0x2d4)][_0x4dd35b(0x23e)]({'eventID':_0xe00c00['CollaborationEvent'][_0x4dd35b(0x25a)],'data':{'unitID':this[_0x4dd35b(0x265)],'userID':this[_0x4dd35b(0x2d4)][_0x4dd35b(0x298)]()}},this[_0x4dd35b(0x265)]);}['stopPresenting'](){var _0x43a676=_0x2d67da;this[_0x43a676(0x25b)]===_0x43a676(0x2c0)&&(this[_0x43a676(0x254)][_0x43a676(0x290)]('idle'),this['_collabSession'][_0x43a676(0x23e)]({'eventID':_0xe00c00[_0x43a676(0x25e)][_0x43a676(0x282)],'data':{'unitID':this[_0x43a676(0x265)]}},this['_unitID']));}['startFollowing'](){var _0x3ef224=_0x2d67da;this[_0x3ef224(0x25b)]==='not-following'&&(this[_0x3ef224(0x254)][_0x3ef224(0x290)]('following'),this['_startFollowing']());}[_0x2d67da(0x270)](){var _0x83c5be=_0x2d67da;this[_0x83c5be(0x25b)]===_0x83c5be(0x2a1)&&this[_0x83c5be(0x2df)]();}['_handleNewHost'](_0x16e05b){var _0x3eecc7=_0x2d67da;const {presenter:_0x9d5893}=_0x16e05b[_0x3eecc7(0x29a)],_0x4104d3=this[_0x3eecc7(0x2d4)][_0x3eecc7(0x298)]();this['_presenter']=_0x9d5893,_0x9d5893===_0x4104d3?(this[_0x3eecc7(0x2df)](),this[_0x3eecc7(0x2b3)]()):this[_0x3eecc7(0x25b)]!==_0x3eecc7(0x2bc)&&(this[_0x3eecc7(0x221)](),this[_0x3eecc7(0x267)]());}[_0x2d67da(0x2db)](){var _0x1f8fb2=_0x2d67da;const _0x5a7a73={'eventID':_0xe00c00[_0x1f8fb2(0x25e)][_0x1f8fb2(0x26a)]};this[_0x1f8fb2(0x2d4)][_0x1f8fb2(0x23e)](_0x5a7a73,this['_unitID']);}[_0x2d67da(0x1ed)](){var _0x37cfef=_0x2d67da;this[_0x37cfef(0x2c2)]=null,this[_0x37cfef(0x25b)]!==_0x37cfef(0x2c0)&&this[_0x37cfef(0x2a6)]();}[_0x2d67da(0x2c3)](_0x2fb3bd){var _0x491c2b=_0x2d67da;if(this[_0x491c2b(0x25b)]===_0x491c2b(0x2a1)&&this[_0x491c2b(0x2c2)]===_0x2fb3bd[_0x491c2b(0x29a)][_0x491c2b(0x2ba)]){const _0x7f7ad6=_0xe00c00['parseProtocolChangeset'](_0x2fb3bd['data'])['mutations'][_0x491c2b(0x2ad)]()[_0x491c2b(0x1f4)](_0x4b75d9=>_0x4b75d9['id']===_0x160e81[_0x491c2b(0x258)]['id']);if(_0x7f7ad6){const _0x1ad56b=_0x7f7ad6[_0x491c2b(0x236)][_0x491c2b(0x24a)],_0x531fda=_0x7f7ad6[_0x491c2b(0x236)]['sheet']['id'];setTimeout(()=>{var _0x2d6b82=_0x491c2b;this[_0x2d6b82(0x217)][_0x2d6b82(0x293)](_0x160e81[_0x2d6b82(0x264)]['id'],{'unitId':_0x1ad56b,'subUnitId':_0x531fda},{'fromCollab':!0x0});});}}}[_0x2d67da(0x2b3)](){var _0x4a6448=_0x2d67da;this['_status$']['next'](_0x4a6448(0x2c0));const _0x50dc6f=new Map(),_0x1c739b=this[_0x4a6448(0x2c8)]=new _0x4eaa93[(_0x4a6448(0x2af))]();_0x1c739b[_0x4a6448(0x284)](_0x4eaa93[_0x4a6448(0x2da)](()=>{var _0x44ebf9=_0x4a6448;_0x50dc6f['forEach'](_0x28f038=>_0x28f038['complete']()),_0x50dc6f[_0x44ebf9(0x213)]();})),_0x1c739b[_0x4a6448(0x284)](this['_commandService'][_0x4a6448(0x2c5)](_0x262c7a=>{var _0x16bed1=_0x4a6448,_0xec96a6;if(_0x262c7a[_0x16bed1(0x223)]!==_0x4eaa93['CommandType']['OPERATION']||!this[_0x16bed1(0x20c)]['shouldShareOperation'](_0x262c7a['id']))return;const {id:_0x113d67}=_0x262c7a;let _0x3493fa;_0x50dc6f['has'](_0x113d67)?_0x3493fa=_0x50dc6f[_0x16bed1(0x2d2)](_0x113d67):(_0x3493fa=new _0x768fc5[(_0x16bed1(0x23a))](),_0x50dc6f[_0x16bed1(0x25d)](_0x113d67,_0x3493fa),_0x3493fa['pipe'](_0x4d9baf[_0x16bed1(0x1f5)]((_0xec96a6=this[_0x16bed1(0x226)][_0x16bed1(0x2b7)](_0x5ed555))!=null?_0xec96a6:_0x53f9ba,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5cea3f=>{var _0x3625e6=_0x16bed1;this['_collabSession']['send']({'eventID':_0xe00c00[_0x3625e6(0x25e)][_0x3625e6(0x2bd)],'data':{'unitID':this[_0x3625e6(0x265)],'operations':{[_0x5cea3f['id']]:{'id':_0x5cea3f['id'],'params':JSON[_0x3625e6(0x26d)](_0x5cea3f[_0x3625e6(0x236)])}}}},this['_unitID']);})),_0x3493fa[_0x16bed1(0x290)](_0x262c7a);})),this[_0x4a6448(0x20c)][_0x4a6448(0x280)](this['_unitID'])[_0x4a6448(0x2a0)](_0x23ac37=>this[_0x4a6448(0x2d4)][_0x4a6448(0x23e)]({'eventID':_0xe00c00[_0x4a6448(0x25e)][_0x4a6448(0x2bd)],'data':{'unitID':this[_0x4a6448(0x265)],'operations':{[_0x23ac37['id']]:{'id':_0x23ac37['id'],'params':JSON[_0x4a6448(0x26d)](_0x23ac37['params'])}}}},this['_unitID']));}[_0x2d67da(0x221)](){var _0x123fe2=_0x2d67da,_0x1eecdb;this[_0x123fe2(0x254)][_0x123fe2(0x290)](_0x123fe2(0x2ae)),(_0x1eecdb=this[_0x123fe2(0x2c8)])==null||_0x1eecdb['dispose'](),this[_0x123fe2(0x2c8)]=null;}[_0x2d67da(0x267)](){var _0x487d98=_0x2d67da,_0x29ffe5;(_0x29ffe5=this[_0x487d98(0x2c8)])==null||_0x29ffe5[_0x487d98(0x20b)](),this[_0x487d98(0x254)][_0x487d98(0x290)](_0x487d98(0x2a1));}[_0x2d67da(0x2a6)](){var _0x5e7b24=_0x2d67da,_0x165b8e;this[_0x5e7b24(0x254)][_0x5e7b24(0x290)]('idle'),(_0x165b8e=this['_commandDisposable'])==null||_0x165b8e[_0x5e7b24(0x20b)](),this[_0x5e7b24(0x2c8)]=null;}['_stopFollowing'](){var _0x1a087a=_0x2d67da,_0x36ed42;this[_0x1a087a(0x254)][_0x1a087a(0x290)](_0x1a087a(0x2bc)),(_0x36ed42=this[_0x1a087a(0x2c8)])==null||_0x36ed42[_0x1a087a(0x20b)]();}['_handleOperation'](_0x855ae8){var _0x151a23=_0x2d67da;if([_0x151a23(0x2c0),'not-following','offline'][_0x151a23(0x2c6)](this[_0x151a23(0x25b)])||!_0x855ae8['data'][_0x151a23(0x297)]||_0x855ae8[_0x151a23(0x29a)][_0x151a23(0x297)]===this[_0x151a23(0x2d4)][_0x151a23(0x298)]())return;this[_0x151a23(0x25b)]==='idle'&&this[_0x151a23(0x267)]();const _0x3a97d8=_0x855ae8['data'][_0x151a23(0x202)];Object[_0x151a23(0x27d)](_0x3a97d8)[_0x151a23(0x2a0)](_0x3bda62=>{var _0x504571=_0x151a23;this[_0x504571(0x217)][_0x504571(0x293)](_0x3bda62['id'],_0x3bda62[_0x504571(0x236)]?JSON[_0x504571(0x244)](_0x3bda62['params']):null,{'fromCollab':!0x0});});}[_0x2d67da(0x278)](){var _0x51ed3b=_0x2d67da,_0x386fde;this[_0x51ed3b(0x254)]['next'](_0x51ed3b(0x247)),(_0x386fde=this[_0x51ed3b(0x2c8)])==null||_0x386fde[_0x51ed3b(0x20b)]();}[_0x2d67da(0x2a7)](){var _0xae9e79=_0x2d67da;this['_status$'][_0xae9e79(0x290)]('idle'),this[_0xae9e79(0x2db)]();}},_0x2c83d3[_0x2d67da(0x216)]=_0x562b05([_0x391c93(0x2,_0x4eaa93[_0x2d67da(0x1f6)]),_0x391c93(0x3,_0x4eaa93[_0x2d67da(0x2e3)](_0x563883)),_0x391c93(0x4,_0x4eaa93['ICommandService'])],_0x2c83d3[_0x2d67da(0x216)]);function _0x406de4(){var _0x4288ab=_0x2d67da;const _0x404d84=_0x25183f[_0x4288ab(0x1f2)](_0x2c83d3[_0x4288ab(0x29c)]),_0x5580e1=_0x25183f[_0x4288ab(0x1f2)](_0x4eaa93[_0x4288ab(0x1f1)]),_0x41f25d=_0x25183f['useObservable'](()=>_0x5580e1[_0x4288ab(0x1fd)](_0x4eaa93[_0x4288ab(0x2e0)][_0x4288ab(0x269)]),void 0x0,!0x1,[]),[_0x57966a,_0x2bf1f4]=_0x2a881a['useState'](null),[_0x25545e,_0x2d9b30]=_0x2a881a['useState'](_0x187b3[_0x4288ab(0x24d)]),_0x2cf753=_0x2a881a[_0x4288ab(0x245)](null);return _0x2a881a[_0x4288ab(0x255)](()=>(_0x41f25d&&_0x404d84[_0x4288ab(0x207)](_0x41f25d['getUnitId']())[_0x4288ab(0x243)](_0x3d620f=>{var _0xbf572f=_0x4288ab;_0x2bf1f4(_0x3d620f),_0x2cf753['current']=_0x3d620f[_0xbf572f(0x24f)]['subscribe'](_0x1d741f=>{_0x2d9b30(_0x1d741f);});}),()=>{var _0x221d7c=_0x4288ab,_0x1198ca;(_0x1198ca=_0x2cf753[_0x221d7c(0x2d5)])==null||_0x1198ca[_0x221d7c(0x238)](),_0x2cf753[_0x221d7c(0x2d5)]=null;}),[_0x41f25d,_0x404d84]),_0x57966a?_0x551abb[_0x4288ab(0x295)](_0x291e19[_0x4288ab(0x209)],{'align':_0x4288ab(0x219),'disabled':_0x25545e===_0x187b3['OFFLINE'],'className':_0x4288ab(0x288),'overlay':_0x551abb[_0x4288ab(0x295)](_0x2b47ed,{'status':_0x25545e,'coordinator':_0x57966a}),'children':_0x551abb[_0x4288ab(0x295)](_0x4288ab(0x22a),{'className':_0x291e19[_0x4288ab(0x21f)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x25545e===_0x187b3[_0x4288ab(0x252)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x25545e!==_0x187b3[_0x4288ab(0x252)]}),'type':_0x4288ab(0x22a),'children':_0x551abb[_0x4288ab(0x295)](_0x1f66cf,{'className':_0x4288ab(0x25c)})})}):null;}function _0x2b47ed(_0x1b5ecb){var _0x27ee7=_0x2d67da;const {status:_0x32add9,coordinator:_0x575003}=_0x1b5ecb;switch(_0x32add9){case _0x187b3[_0x27ee7(0x24d)]:return _0x551abb['jsx'](_0x54668d,{'coordinator':_0x575003});case _0x187b3[_0x27ee7(0x277)]:return _0x551abb['jsx'](_0x4f4354,{'coordinator':_0x575003});case _0x187b3['NOT_FOLLOWING']:return _0x551abb[_0x27ee7(0x295)](_0x2ba870,{'coordinator':_0x575003});case _0x187b3[_0x27ee7(0x252)]:return _0x551abb[_0x27ee7(0x295)](_0x4db01a,{});case _0x187b3['PRESENTING']:return _0x551abb['jsx'](_0x3e74c8,{'coordinator':_0x575003});default:return null;}}function _0x54668d(_0x1813d8){var _0xa6a19=_0x2d67da;const {coordinator:_0xad0a2a}=_0x1813d8;return _0x551abb[_0xa6a19(0x26c)](_0x551abb[_0xa6a19(0x21c)],{'children':[_0x551abb['jsx']('div',{'className':_0xa6a19(0x2be),'children':'Present\x20this\x20document'}),_0x551abb[_0xa6a19(0x295)](_0x291e19[_0xa6a19(0x21e)],{'onClick':()=>_0xad0a2a[_0xa6a19(0x1ee)](),'children':_0xa6a19(0x26b)})]});}function _0x4f4354(_0x3ca517){var _0x29c0f8=_0x2d67da;const {coordinator:_0x356e0a}=_0x3ca517;return _0x551abb[_0x29c0f8(0x26c)](_0x551abb['Fragment'],{'children':[_0x551abb['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x29c0f8(0x2b2)}),_0x551abb[_0x29c0f8(0x295)](_0x291e19[_0x29c0f8(0x21e)],{'onClick':()=>_0x356e0a[_0x29c0f8(0x270)](),'children':'Stop\x20following'})]});}function _0x2ba870(_0x140dc4){var _0x281395=_0x2d67da;const {coordinator:_0x30f89f}=_0x140dc4;return _0x551abb[_0x281395(0x26c)](_0x551abb['Fragment'],{'children':[_0x551abb['jsx'](_0x281395(0x286),{'className':_0x281395(0x2be),'children':_0x281395(0x22e)}),_0x551abb[_0x281395(0x295)](_0x291e19['Button'],{'variant':'text','onClick':()=>_0x30f89f['startFollowing'](),'children':_0x281395(0x2de)})]});}function _0x3e74c8(_0x4a6b9b){var _0x434da6=_0x2d67da;const {coordinator:_0x5d5bb9}=_0x4a6b9b;return _0x551abb[_0x434da6(0x26c)](_0x551abb['Fragment'],{'children':[_0x551abb['jsx'](_0x434da6(0x286),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x434da6(0x26f)}),_0x551abb[_0x434da6(0x295)](_0x291e19[_0x434da6(0x21e)],{'variant':_0x434da6(0x2cf),'onClick':()=>_0x5d5bb9[_0x434da6(0x235)](),'children':_0x434da6(0x2aa)})]});}function _0x4db01a(){var _0x1f2d49=_0x2d67da;return _0x551abb[_0x1f2d49(0x295)](_0x551abb[_0x1f2d49(0x21c)],{'children':_0x1f2d49(0x211)});}var _0x533a63=Object[_0x2d67da(0x210)],_0x1bce4c=(_0x110764,_0x595334,_0x12c0a2,_0x24d851)=>{var _0x5100d3=_0x2d67da;for(var _0x1542cb=_0x24d851>0x1?void 0x0:_0x24d851?_0x533a63(_0x595334,_0x12c0a2):_0x595334,_0x347746=_0x110764[_0x5100d3(0x215)]-0x1,_0x3c8918;_0x347746>=0x0;_0x347746--)(_0x3c8918=_0x110764[_0x347746])&&(_0x1542cb=_0x3c8918(_0x1542cb)||_0x1542cb);return _0x1542cb;},_0x4d7c79=(_0x17f150,_0xa264fc)=>(_0x4eaea9,_0x3f55ca)=>_0xa264fc(_0x4eaea9,_0x3f55ca,_0x17f150);_0x2c83d3['DesktopLiveShareController']=class extends _0x4eaa93[_0x2d67da(0x27e)]{constructor(_0x1802b9,_0x4514da){var _0x3f7954=_0x2d67da;super(),this[_0x3f7954(0x1f9)]=_0x1802b9,this['_uiPartsService']=_0x4514da,this[_0x3f7954(0x227)]();}['_mountLiveShare'](){var _0x466c23=_0x2d67da;this[_0x466c23(0x2a5)](this[_0x466c23(0x2b6)][_0x466c23(0x2b8)](_0x25183f[_0x466c23(0x1ff)][_0x466c23(0x256)],()=>_0x25183f[_0x466c23(0x289)](_0x406de4,this[_0x466c23(0x1f9)])));}},_0x2c83d3[_0x2d67da(0x28f)]=_0x1bce4c([_0x4d7c79(0x0,_0x4eaa93[_0x2d67da(0x2e3)](_0x4eaa93[_0x2d67da(0x1ec)])),_0x4d7c79(0x1,_0x25183f['IUIPartsService'])],_0x2c83d3[_0x2d67da(0x28f)]);const _0x2dc1a9=_0x2d67da(0x268),_0x7a3b2a={};var _0x584fda=Object[_0x2d67da(0x210)],_0x18cd16=(_0x4a8f7b,_0x2b7fde,_0x21f538,_0x37b97f)=>{for(var _0xb87105=_0x37b97f>0x1?void 0x0:_0x37b97f?_0x584fda(_0x2b7fde,_0x21f538):_0x2b7fde,_0x281db1=_0x4a8f7b['length']-0x1,_0x322b1a;_0x281db1>=0x0;_0x281db1--)(_0x322b1a=_0x4a8f7b[_0x281db1])&&(_0xb87105=_0x322b1a(_0xb87105)||_0xb87105);return _0xb87105;},_0x3b9f80=(_0x1c5266,_0x2bc14e)=>(_0x5ac3b6,_0xcf93dd)=>_0x2bc14e(_0x5ac3b6,_0xcf93dd,_0x1c5266);let _0x2ec39c=class extends _0x4eaa93['Disposable']{constructor(_0x478aa0){var _0x16e23d=_0x2d67da;super(),this[_0x16e23d(0x20c)]=_0x478aa0,this['_init']();}['_init'](){var _0x5b78b1=_0x2d67da;[_0x511a5b['SetZoomRatioOperation']['id'],_0x511a5b[_0x5b78b1(0x240)]['id'],_0x160e81[_0x5b78b1(0x264)]['id']][_0x5b78b1(0x2a0)](_0x532488=>{var _0x282d01=_0x5b78b1;this['disposeWithMe'](this[_0x282d01(0x20c)][_0x282d01(0x239)](_0x532488));});}};_0x2ec39c=_0x18cd16([_0x3b9f80(0x0,_0x4eaa93[_0x2d67da(0x2e3)](_0x563883))],_0x2ec39c);var _0x211f5f=Object[_0x2d67da(0x2bb)],_0x3097e1=Object[_0x2d67da(0x210)],_0x143d95=(_0x48c21c,_0x186196,_0x2387bc)=>_0x186196 in _0x48c21c?_0x211f5f(_0x48c21c,_0x186196,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2387bc}):_0x48c21c[_0x186196]=_0x2387bc,_0x373687=(_0x17e8f3,_0x5152aa,_0xa22caa,_0x57021a)=>{var _0x38ab02=_0x2d67da;for(var _0xc45c40=_0x57021a>0x1?void 0x0:_0x57021a?_0x3097e1(_0x5152aa,_0xa22caa):_0x5152aa,_0x49480a=_0x17e8f3[_0x38ab02(0x215)]-0x1,_0x6b2c59;_0x49480a>=0x0;_0x49480a--)(_0x6b2c59=_0x17e8f3[_0x49480a])&&(_0xc45c40=_0x6b2c59(_0xc45c40)||_0xc45c40);return _0xc45c40;},_0x27bbbf=(_0x3298a6,_0x27c76c)=>(_0x39e6a8,_0x286161)=>_0x27c76c(_0x39e6a8,_0x286161,_0x3298a6),_0x22ccb0=(_0x29e578,_0x1957e1,_0x850334)=>_0x143d95(_0x29e578,typeof _0x1957e1!=_0x2d67da(0x200)?_0x1957e1+'':_0x1957e1,_0x850334);const _0x215fcc=_0x2d67da(0x2a2);_0x2c83d3[_0x2d67da(0x23d)]=class extends _0x4eaa93[_0x2d67da(0x1f8)]{constructor(_0x36bba4=_0x7a3b2a,_0x26c5e0,_0x2bdf9e){var _0x5cf17d=_0x2d67da;super(),this[_0x5cf17d(0x212)]=_0x36bba4,this[_0x5cf17d(0x1f9)]=_0x26c5e0,this[_0x5cf17d(0x226)]=_0x2bdf9e;const {..._0x32f058}=_0x4eaa93[_0x5cf17d(0x21a)]({},_0x7a3b2a,this[_0x5cf17d(0x212)]);this[_0x5cf17d(0x226)][_0x5cf17d(0x28e)](_0x2dc1a9,_0x32f058);}[_0x2d67da(0x260)](){var _0x5ad0b3=_0x2d67da;_0x4eaa93['registerDependencies'](this[_0x5ad0b3(0x1f9)],_0x4eaa93[_0x5ad0b3(0x26e)]([[_0x563883],[_0x2c83d3[_0x5ad0b3(0x29c)]],[_0x2ec39c],[_0x2c83d3[_0x5ad0b3(0x28f)]]],this[_0x5ad0b3(0x212)][_0x5ad0b3(0x218)])),_0x4eaa93[_0x5ad0b3(0x2bf)](this['_injector'],[[_0x2ec39c]]);}[_0x2d67da(0x2b0)](){var _0x112994=_0x2d67da;_0x4eaa93['touchDependencies'](this[_0x112994(0x1f9)],[[_0x2c83d3[_0x112994(0x28f)]]]);}},_0x22ccb0(_0x2c83d3[_0x2d67da(0x23d)],_0x2d67da(0x223),_0x4eaa93[_0x2d67da(0x2e0)]['UNIVER_UNKNOWN']),_0x22ccb0(_0x2c83d3[_0x2d67da(0x23d)],'pluginName',_0x215fcc),_0x2c83d3[_0x2d67da(0x23d)]=_0x373687([_0x4eaa93[_0x2d67da(0x2a3)](_0x4fa62d['UniverCollaborationClientPlugin']),_0x27bbbf(0x1,_0x4eaa93[_0x2d67da(0x2e3)](_0x4eaa93[_0x2d67da(0x1ec)])),_0x27bbbf(0x2,_0x4eaa93[_0x2d67da(0x1f6)])],_0x2c83d3['UniverLiveSharePlugin']),_0x2c83d3[_0x2d67da(0x28d)]=_0x406de4,_0x2c83d3[_0x2d67da(0x29d)]=_0x563883,_0x2c83d3[_0x2d67da(0x2ca)]=_0x187b3,Object['defineProperty'](_0x2c83d3,Symbol[_0x2d67da(0x2a8)],{'value':_0x2d67da(0x232)});}));
1
+ function _0x5951(_0x41fe6b,_0x34f83a){var _0x546b2d=_0x546b();return _0x5951=function(_0x595115,_0x3ae532){_0x595115=_0x595115-0xeb;var _0x46d05a=_0x546b2d[_0x595115];return _0x46d05a;},_0x5951(_0x41fe6b,_0x34f83a);}(function(_0x51845a,_0x48daa1){var _0xd14c17=_0x5951,_0x39edab=_0x51845a();while(!![]){try{var _0x57cfbb=parseInt(_0xd14c17(0x181))/0x1+parseInt(_0xd14c17(0x185))/0x2+-parseInt(_0xd14c17(0x1a0))/0x3+-parseInt(_0xd14c17(0x1c8))/0x4*(-parseInt(_0xd14c17(0x17f))/0x5)+-parseInt(_0xd14c17(0x14d))/0x6*(-parseInt(_0xd14c17(0x131))/0x7)+-parseInt(_0xd14c17(0x108))/0x8*(parseInt(_0xd14c17(0x154))/0x9)+-parseInt(_0xd14c17(0x11a))/0xa;if(_0x57cfbb===_0x48daa1)break;else _0x39edab['push'](_0x39edab['shift']());}catch(_0x5d40c6){_0x39edab['push'](_0x39edab['shift']());}}}(_0x546b,0xbeb72),function(_0x159850,_0x440879){var _0x2dca9a=_0x5951;typeof exports==_0x2dca9a(0x134)&&typeof module<'u'?_0x440879(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x2dca9a(0x1cd)&&define[_0x2dca9a(0x127)]?define(['exports',_0x2dca9a(0x1bb),'@univerjs/ui',_0x2dca9a(0x171),_0x2dca9a(0x1a9),_0x2dca9a(0x12b),_0x2dca9a(0x118),_0x2dca9a(0x135),_0x2dca9a(0x112),_0x2dca9a(0x192),_0x2dca9a(0x133),_0x2dca9a(0x18d)],_0x440879):(_0x159850=typeof globalThis<'u'?globalThis:_0x159850||self,_0x440879(_0x159850['UniverProLiveShare']={},_0x159850['UniverCore'],_0x159850[_0x2dca9a(0x116)],_0x159850[_0x2dca9a(0x1b3)],_0x159850[_0x2dca9a(0xfe)],_0x159850[_0x2dca9a(0x1b3)],_0x159850[_0x2dca9a(0x140)],_0x159850[_0x2dca9a(0x143)],_0x159850[_0x2dca9a(0x160)],_0x159850[_0x2dca9a(0x192)],_0x159850[_0x2dca9a(0x192)]['operators'],_0x159850[_0x2dca9a(0x150)]));}(this,function(_0x306c00,_0x1c0471,_0x364ad0,_0x4224e5,_0x31d2ac,_0x197fcb,_0x27848c,_0x3810d2,_0x154c01,_0x352f26,_0x157cb5,_0x3a0119){'use strict';var _0x35c375=_0x5951;var _0x15e967=Object[_0x35c375(0x149)],_0x30dc25=(_0x937ec3,_0x3ee63b,_0x38afef)=>_0x3ee63b in _0x937ec3?_0x15e967(_0x937ec3,_0x3ee63b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38afef}):_0x937ec3[_0x3ee63b]=_0x38afef,_0x5ede5f=(_0x5d8b9e,_0x33ae6b,_0x7734e8)=>_0x30dc25(_0x5d8b9e,typeof _0x33ae6b!=_0x35c375(0x186)?_0x33ae6b+'':_0x33ae6b,_0x7734e8),_0x152680=function(){var _0x28e4d2=_0x35c375;return _0x152680=Object['assign']||function(_0x3bbff2){var _0xb712d8=_0x5951;for(var _0x5f3db8,_0x2e7c10=0x1,_0x2c7d3c=arguments[_0xb712d8(0x1dc)];_0x2e7c10<_0x2c7d3c;_0x2e7c10++){_0x5f3db8=arguments[_0x2e7c10];for(var _0x3d6cc1 in _0x5f3db8)Object['prototype'][_0xb712d8(0x1d7)][_0xb712d8(0x1b6)](_0x5f3db8,_0x3d6cc1)&&(_0x3bbff2[_0x3d6cc1]=_0x5f3db8[_0x3d6cc1]);}return _0x3bbff2;},_0x152680[_0x28e4d2(0x115)](this,arguments);},_0x48a372=function(_0x1472f8,_0x252917){var _0x35d58c=_0x35c375,_0x2fecf9={};for(var _0x5c5ba9 in _0x1472f8)Object[_0x35d58c(0x106)][_0x35d58c(0x1d7)][_0x35d58c(0x1b6)](_0x1472f8,_0x5c5ba9)&&_0x252917[_0x35d58c(0x114)](_0x5c5ba9)<0x0&&(_0x2fecf9[_0x5c5ba9]=_0x1472f8[_0x5c5ba9]);if(_0x1472f8!=null&&typeof Object[_0x35d58c(0xff)]==_0x35d58c(0x1cd)){for(var _0x495492=0x0,_0x5c5ba9=Object[_0x35d58c(0xff)](_0x1472f8);_0x495492<_0x5c5ba9[_0x35d58c(0x1dc)];_0x495492++)_0x252917['indexOf'](_0x5c5ba9[_0x495492])<0x0&&Object['prototype'][_0x35d58c(0x11f)][_0x35d58c(0x1b6)](_0x1472f8,_0x5c5ba9[_0x495492])&&(_0x2fecf9[_0x5c5ba9[_0x495492]]=_0x1472f8[_0x5c5ba9[_0x495492]]);}return _0x2fecf9;},_0x48340f=_0x197fcb[_0x35c375(0xef)](function(_0x548c07,_0x56391c){var _0x1da60d=_0x35c375,_0xa4ba53=_0x548c07[_0x1da60d(0x18e)],_0x5e00dd=_0x548c07['id'],_0x10def3=_0x548c07[_0x1da60d(0x1a8)],_0x598938=_0x548c07[_0x1da60d(0x119)],_0x50b221=_0x48a372(_0x548c07,[_0x1da60d(0x18e),'id','className','extend']),_0x2bf922='univerjs-icon\x20univerjs-icon-'[_0x1da60d(0x155)](_0x5e00dd,'\x20')[_0x1da60d(0x155)](_0x10def3||'')[_0x1da60d(0x146)](),_0x3f16c0=_0x197fcb[_0x1da60d(0xf3)]('_'[_0x1da60d(0x155)](_0x460991()));return _0x4721e7(_0xa4ba53,''[_0x1da60d(0x155)](_0x5e00dd),{'defIds':_0xa4ba53[_0x1da60d(0x173)],'idSuffix':_0x3f16c0[_0x1da60d(0x18b)]},_0x152680({'ref':_0x56391c,'className':_0x2bf922},_0x50b221),_0x598938);});function _0x4721e7(_0x36fa2c,_0xd6a1c,_0x9bf79a,_0x1c8dd0,_0x4d2c9e){var _0x16fe91=_0x35c375;return _0x197fcb[_0x16fe91(0xfb)](_0x36fa2c[_0x16fe91(0x13d)],_0x152680(_0x152680({'key':_0xd6a1c},_0x12f44f(_0x36fa2c,_0x9bf79a,_0x4d2c9e)),_0x1c8dd0),(_0x459472(_0x36fa2c,_0x9bf79a)['children']||[])['map'](function(_0x50465d,_0x3b3951){var _0x387d34=_0x16fe91;return _0x4721e7(_0x50465d,''[_0x387d34(0x155)](_0xd6a1c,'-')[_0x387d34(0x155)](_0x36fa2c['tag'],'-')[_0x387d34(0x155)](_0x3b3951),_0x9bf79a,void 0x0,_0x4d2c9e);}));}function _0x12f44f(_0x225d12,_0x2d4eec,_0x525432){var _0x5a2bc1=_0x35c375,_0x2ab68d=_0x152680({},_0x225d12['attrs']);_0x525432!=null&&_0x525432['colorChannel1']&&_0x2ab68d[_0x5a2bc1(0x164)]===_0x5a2bc1(0x195)&&(_0x2ab68d[_0x5a2bc1(0x164)]=_0x525432[_0x5a2bc1(0x195)]),_0x225d12[_0x5a2bc1(0x13d)]===_0x5a2bc1(0x12e)&&_0x2ab68d['id']&&(_0x2ab68d['id']=_0x2ab68d['id']+_0x2d4eec[_0x5a2bc1(0x15d)]),Object[_0x5a2bc1(0x10e)](_0x2ab68d)['forEach'](function(_0x586f){var _0x100e90=_0x5a2bc1,_0x24d3ab=_0x586f[0x0],_0x35f586=_0x586f[0x1];_0x24d3ab===_0x100e90(0x12e)&&typeof _0x35f586=='string'&&(_0x2ab68d[_0x24d3ab]=_0x35f586[_0x100e90(0x16e)](/url\(#(.*)\)/,_0x100e90(0x191)[_0x100e90(0x155)](_0x2d4eec['idSuffix'],')')));});var _0x4e89d7=_0x2d4eec[_0x5a2bc1(0x173)];return!_0x4e89d7||_0x4e89d7['length']===0x0||(_0x225d12[_0x5a2bc1(0x13d)]===_0x5a2bc1(0x12f)&&_0x2ab68d['xlink:href']&&(_0x2ab68d[_0x5a2bc1(0x199)]=_0x2ab68d[_0x5a2bc1(0x199)]+_0x2d4eec[_0x5a2bc1(0x15d)]),Object['entries'](_0x2ab68d)[_0x5a2bc1(0x13b)](function(_0x4af2e5){var _0x50ddc7=_0x5a2bc1,_0x25e29a=_0x4af2e5[0x0],_0x1fe3ae=_0x4af2e5[0x1];typeof _0x1fe3ae==_0x50ddc7(0xf6)&&(_0x2ab68d[_0x25e29a]=_0x1fe3ae['replace'](/url\(#(.*)\)/,_0x50ddc7(0x191)['concat'](_0x2d4eec['idSuffix'],')')));})),_0x2ab68d;}function _0x459472(_0x5ae438,_0x2905e0){var _0x1c9865=_0x35c375,_0x5a94bb,_0x2950c8=_0x2905e0[_0x1c9865(0x173)];return!_0x2950c8||_0x2950c8[_0x1c9865(0x1dc)]===0x0?_0x5ae438:_0x5ae438['tag']===_0x1c9865(0xed)&&(!((_0x5a94bb=_0x5ae438['children'])===null||_0x5a94bb===void 0x0)&&_0x5a94bb['length'])?_0x152680(_0x152680({},_0x5ae438),{'children':_0x5ae438[_0x1c9865(0x14a)][_0x1c9865(0x179)](function(_0x2d0a38){var _0x52e60e=_0x1c9865;return typeof _0x2d0a38['attrs']['id']==_0x52e60e(0xf6)&&_0x2950c8&&_0x2950c8['includes'](_0x2d0a38[_0x52e60e(0x147)]['id'])?_0x152680(_0x152680({},_0x2d0a38),{'attrs':_0x152680(_0x152680({},_0x2d0a38[_0x52e60e(0x147)]),{'id':_0x2d0a38[_0x52e60e(0x147)]['id']+_0x2905e0['idSuffix']})}):_0x2d0a38;})}):_0x5ae438;}function _0x460991(){var _0x298fbc=_0x35c375;return Math['random']()[_0x298fbc(0x1a3)](0x24)['substring'](0x2,0x8);}_0x48340f[_0x35c375(0x198)]='UniverIcon';var _0x34b730={'tag':_0x35c375(0x121),'attrs':{'xmlns':_0x35c375(0x1dd),'fill':_0x35c375(0x1ba),'viewBox':_0x35c375(0x1a2),'width':_0x35c375(0x10a),'height':'1em'},'children':[{'tag':_0x35c375(0x1c7),'attrs':{'fill':_0x35c375(0x19a),'d':_0x35c375(0xf1)}},{'tag':_0x35c375(0x1c7),'attrs':{'fill':_0x35c375(0x19a),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x35c375(0x1e0),'clipRule':_0x35c375(0x1e0)}}]},_0x18dc00=_0x197fcb[_0x35c375(0xef)](function(_0x53c7d7,_0x5e38b5){var _0x391d49=_0x35c375;return _0x197fcb[_0x391d49(0xfb)](_0x48340f,Object[_0x391d49(0xf9)]({},_0x53c7d7,{'id':_0x391d49(0x1ad),'ref':_0x5e38b5,'icon':_0x34b730}));});_0x18dc00[_0x35c375(0x198)]=_0x35c375(0x1d8);class _0x231f7a extends _0x1c0471[_0x35c375(0x18a)]{constructor(){var _0x1c56e6=_0x35c375;super(...arguments),_0x5ede5f(this,'_sharedOperations',new Set()),_0x5ede5f(this,_0x1c56e6(0x139),new Set());}[_0x35c375(0xf7)](_0x321723){var _0x3d7c0c=_0x35c375;return this[_0x3d7c0c(0x1ac)][_0x3d7c0c(0x102)](_0x321723),_0x1c0471[_0x3d7c0c(0x162)](()=>this[_0x3d7c0c(0x1ac)][_0x3d7c0c(0x13e)](_0x321723));}['registerInitialStateReporter'](_0x17c61c){var _0xb5ef75=_0x35c375;return this['_reporters'][_0xb5ef75(0x102)](_0x17c61c),_0x1c0471['toDisposable'](()=>this[_0xb5ef75(0x139)][_0xb5ef75(0x13e)](_0x17c61c));}[_0x35c375(0x1a6)](_0x9ffa8f){var _0x438acb=_0x35c375;return this[_0x438acb(0x1ac)][_0x438acb(0x163)](_0x9ffa8f);}[_0x35c375(0x166)](_0x5ca269){var _0x49fd97=_0x35c375;return Array[_0x49fd97(0x113)](this[_0x49fd97(0x139)])[_0x49fd97(0x179)](_0x596db6=>_0x596db6(_0x5ca269));}}var _0x42f1b3=Object[_0x35c375(0x1c2)],_0x12b983=(_0x4377fe,_0x3b1978,_0x11eafc,_0x485dee)=>{var _0x1c9a39=_0x35c375;for(var _0x1e9083=_0x485dee>0x1?void 0x0:_0x485dee?_0x42f1b3(_0x3b1978,_0x11eafc):_0x3b1978,_0xd7c83=_0x4377fe[_0x1c9a39(0x1dc)]-0x1,_0x2a36d9;_0xd7c83>=0x0;_0xd7c83--)(_0x2a36d9=_0x4377fe[_0xd7c83])&&(_0x1e9083=_0x2a36d9(_0x1e9083)||_0x1e9083);return _0x1e9083;},_0x1238db=(_0x29a926,_0xaf275d)=>(_0x2b66d2,_0x11c6d5)=>_0xaf275d(_0x2b66d2,_0x11c6d5,_0x29a926);_0x306c00[_0x35c375(0x14e)]=class extends _0x1c0471[_0x35c375(0x1c4)]{constructor(_0x197c6a,_0x15ccd6,_0x4c69fe){var _0x537dea=_0x35c375;super(),_0x5ede5f(this,_0x537dea(0x11c),new Map()),(this[_0x537dea(0x13c)]=_0x197c6a,this[_0x537dea(0x107)]=_0x15ccd6,this[_0x537dea(0x178)]=_0x4c69fe,this[_0x537dea(0x16d)]());}async[_0x35c375(0x16c)](_0x2ec2fc){var _0x5481a2=_0x35c375;return this[_0x5481a2(0x11c)][_0x5481a2(0x163)](_0x2ec2fc)||await this[_0x5481a2(0x117)](_0x2ec2fc),this[_0x5481a2(0x11c)][_0x5481a2(0x161)](_0x2ec2fc);}[_0x35c375(0x16d)](){var _0x1b05b1=_0x35c375;this[_0x1b05b1(0x13c)]['getTypeOfUnitAdded$'](_0x1c0471[_0x1b05b1(0x145)]['UNIVER_SHEET'])[_0x1b05b1(0x169)](_0x157cb5[_0x1b05b1(0xf2)](this[_0x1b05b1(0x136)]))[_0x1b05b1(0x17b)](async _0x5365fc=>{var _0x36d91d=_0x1b05b1;const _0x4aa144=_0x5365fc['getUnitId']();this[_0x36d91d(0x11c)]['has'](_0x4aa144)||this[_0x36d91d(0x117)](_0x4aa144);}),this[_0x1b05b1(0x13c)][_0x1b05b1(0x187)](_0x1c0471[_0x1b05b1(0x145)]['UNIVER_SHEET'])[_0x1b05b1(0x169)](_0x157cb5[_0x1b05b1(0xf2)](this[_0x1b05b1(0x136)]))[_0x1b05b1(0x17b)](_0x29d20a=>{var _0x44f56f=_0x1b05b1;const _0x2db141=_0x29d20a['getUnitId'](),_0x1c7a75=this[_0x44f56f(0x11c)][_0x44f56f(0x161)](_0x2db141);_0x1c7a75==null||_0x1c7a75[_0x44f56f(0x132)]();});}async[_0x35c375(0x117)](_0x2cd934){var _0x3bce21=_0x35c375;const _0x2e0fe9=await this[_0x3bce21(0x178)]['requireSession'](_0x2cd934),_0xd85af1=this[_0x3bce21(0x107)][_0x3bce21(0x19b)](_0x306c00['LiveShareCoordinator'],_0x2cd934,_0x2e0fe9);return _0xd85af1['init'](),this[_0x3bce21(0x11c)][_0x3bce21(0x1ce)](_0x2cd934,_0xd85af1),_0xd85af1;}},_0x306c00[_0x35c375(0x14e)]=_0x12b983([_0x1238db(0x0,_0x1c0471[_0x35c375(0x1d4)]),_0x1238db(0x1,_0x1c0471[_0x35c375(0x1a1)](_0x1c0471[_0x35c375(0x197)])),_0x1238db(0x2,_0x1c0471[_0x35c375(0x1a1)](_0x3810d2[_0x35c375(0x142)]))],_0x306c00[_0x35c375(0x14e)]);var _0x134d96=(_0x28a359=>(_0x28a359[_0x35c375(0x105)]=_0x35c375(0x158),_0x28a359[_0x35c375(0x1b1)]='idle',_0x28a359[_0x35c375(0x14b)]=_0x35c375(0x10d),_0x28a359[_0x35c375(0xf8)]=_0x35c375(0x11b),_0x28a359['PRESENTING']=_0x35c375(0x172),_0x28a359))(_0x134d96||{});const _0x304b68=_0x35c375(0x16f),_0x4c29eb=0xc8;_0x306c00[_0x35c375(0x12a)]=class extends _0x1c0471[_0x35c375(0x1c4)]{constructor(_0x256330,_0x4a1401,_0x23e665,_0x30612f,_0x43506d){var _0x87fc35=_0x35c375;super(),_0x5ede5f(this,_0x87fc35(0x17e),new _0x352f26[(_0x87fc35(0x1c9))](_0x87fc35(0x15f))),_0x5ede5f(this,'status$',this[_0x87fc35(0x17e)]['asObservable']()),_0x5ede5f(this,_0x87fc35(0x16d),!0x1),_0x5ede5f(this,_0x87fc35(0x16a),null),_0x5ede5f(this,'_presenter',null),(this['_unitID']=_0x256330,this[_0x87fc35(0x1db)]=_0x4a1401,this['_configService']=_0x23e665,this[_0x87fc35(0x159)]=_0x30612f,this[_0x87fc35(0x1a7)]=_0x43506d);}get[_0x35c375(0x157)](){var _0x2c790a=_0x35c375;return this[_0x2c790a(0x17e)][_0x2c790a(0xfc)]();}[_0x35c375(0x132)](){var _0x3a1fd9=_0x35c375,_0x41934c;(_0x41934c=this['_commandDisposable'])==null||_0x41934c[_0x3a1fd9(0x132)](),this[_0x3a1fd9(0x17e)]['next']('idle'),this[_0x3a1fd9(0x17e)][_0x3a1fd9(0x1d0)]();}[_0x35c375(0x167)](){var _0x42df17=_0x35c375;this['_init']||(this['_init']=!0x0,this[_0x42df17(0x1db)][_0x42df17(0x183)][_0x42df17(0x169)](_0x157cb5[_0x42df17(0xf2)](this['dispose$']))['subscribe'](_0x359d83=>{var _0xb6fc98=_0x42df17;switch(_0x359d83){case _0x3810d2[_0xb6fc98(0x13f)][_0xb6fc98(0x105)]:this[_0xb6fc98(0x19f)]();break;case _0x3810d2[_0xb6fc98(0x13f)]['ONLINE']:this[_0xb6fc98(0x17c)]();break;}}),this['_collabSession'][_0x42df17(0x1cc)][_0x42df17(0x169)](_0x157cb5[_0x42df17(0xf2)](this[_0x42df17(0x136)]))[_0x42df17(0x17b)](_0x1fa6cb=>{var _0x11dba0=_0x42df17;const {eventID:_0x3d53d1}=_0x1fa6cb;switch(_0x3d53d1){case _0x27848c[_0x11dba0(0x1a5)][_0x11dba0(0x100)]:this[_0x11dba0(0x17a)](_0x1fa6cb);break;case _0x27848c[_0x11dba0(0x1a5)][_0x11dba0(0x1e1)]:this[_0x11dba0(0x110)](_0x1fa6cb);break;case _0x27848c[_0x11dba0(0x1a5)][_0x11dba0(0x111)]:this[_0x11dba0(0x1b2)]();break;case _0x27848c[_0x11dba0(0x1a5)]['NEW_CHANGESETS']:this[_0x11dba0(0x124)](_0x1fa6cb);break;}}));}[_0x35c375(0x1d2)](){var _0x58977a=_0x35c375;this[_0x58977a(0x1db)]['send']({'eventID':_0x27848c[_0x58977a(0x1a5)][_0x58977a(0x1b8)],'data':{'unitID':this[_0x58977a(0x174)],'userID':this['_collabSession'][_0x58977a(0x1e2)]()}},this[_0x58977a(0x174)]);}[_0x35c375(0x1de)](){var _0x5f4d3e=_0x35c375;this[_0x5f4d3e(0x157)]===_0x5f4d3e(0x172)&&(this['_status$'][_0x5f4d3e(0x1d5)](_0x5f4d3e(0x15f)),this[_0x5f4d3e(0x1db)]['send']({'eventID':_0x27848c[_0x5f4d3e(0x1a5)][_0x5f4d3e(0x111)],'data':{'unitID':this['_unitID']}},this[_0x5f4d3e(0x174)]));}[_0x35c375(0x1c5)](){var _0x561628=_0x35c375;this[_0x561628(0x157)]===_0x561628(0x11b)&&(this[_0x561628(0x17e)][_0x561628(0x1d5)](_0x561628(0x10d)),this[_0x561628(0x17d)]());}[_0x35c375(0x122)](){var _0x77852e=_0x35c375;this[_0x77852e(0x157)]===_0x77852e(0x10d)&&this[_0x77852e(0x1c3)]();}['_handleNewHost'](_0x5a4e88){var _0x370f1e=_0x35c375;const {presenter:_0x5d9c12}=_0x5a4e88['data'],_0x14d7b2=this['_collabSession'][_0x370f1e(0x1e2)]();this[_0x370f1e(0x190)]=_0x5d9c12,_0x5d9c12===_0x14d7b2?(this[_0x370f1e(0x1c3)](),this['_startPresenting']()):this[_0x370f1e(0x157)]!=='not-following'&&(this[_0x370f1e(0x128)](),this['_startFollowing']());}['_fetchOperations'](){var _0x3c4232=_0x35c375;const _0x1730e0={'eventID':_0x27848c[_0x3c4232(0x1a5)][_0x3c4232(0x18c)]};this[_0x3c4232(0x1db)][_0x3c4232(0x1b7)](_0x1730e0,this[_0x3c4232(0x174)]);}[_0x35c375(0x1b2)](){var _0x2279ca=_0x35c375;this['_presenter']=null,this[_0x2279ca(0x157)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x2edbcb){var _0xee35de=_0x35c375;if(this[_0xee35de(0x157)]==='following'&&this[_0xee35de(0x190)]===_0x2edbcb['data']['memberID']){const _0x157057=_0x27848c[_0xee35de(0x125)](_0x2edbcb['data'])[_0xee35de(0x194)]['reverse']()[_0xee35de(0x180)](_0x407686=>_0x407686['id']===_0x154c01[_0xee35de(0xeb)]['id']);if(_0x157057){const _0x48b490=_0x157057[_0xee35de(0x175)][_0xee35de(0x137)],_0x48c1bc=_0x157057[_0xee35de(0x175)]['sheet']['id'];setTimeout(()=>{var _0x370806=_0xee35de;this['_commandService'][_0x370806(0x176)](_0x154c01[_0x370806(0x144)]['id'],{'unitId':_0x48b490,'subUnitId':_0x48c1bc},{'fromCollab':!0x0});});}}}[_0x35c375(0x189)](){var _0x557108=_0x35c375;this['_status$'][_0x557108(0x1d5)](_0x557108(0x172));const _0x2d5395=new Map(),_0x3f2857=this['_commandDisposable']=new _0x1c0471['DisposableCollection']();_0x3f2857[_0x557108(0x102)](_0x1c0471[_0x557108(0x162)](()=>{var _0x419dba=_0x557108;_0x2d5395[_0x419dba(0x13b)](_0x4e80c0=>_0x4e80c0[_0x419dba(0x1d0)]()),_0x2d5395[_0x419dba(0x12d)]();})),_0x3f2857[_0x557108(0x102)](this[_0x557108(0x1a7)]['onCommandExecuted'](_0x4648ea=>{var _0x150bee=_0x557108,_0x5b457a;if(_0x4648ea[_0x150bee(0x16b)]!==_0x1c0471[_0x150bee(0x1b9)][_0x150bee(0x130)]||!this['_liveShareService'][_0x150bee(0x1a6)](_0x4648ea['id']))return;const {id:_0x58b8c6}=_0x4648ea;let _0x2ffaee;_0x2d5395['has'](_0x58b8c6)?_0x2ffaee=_0x2d5395[_0x150bee(0x161)](_0x58b8c6):(_0x2ffaee=new _0x352f26[(_0x150bee(0x184))](),_0x2d5395['set'](_0x58b8c6,_0x2ffaee),_0x2ffaee['pipe'](_0x157cb5[_0x150bee(0x182)]((_0x5b457a=this[_0x150bee(0x120)][_0x150bee(0x153)](_0x304b68))!=null?_0x5b457a:_0x4c29eb,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x581514=>{var _0xf4ab11=_0x150bee;this['_collabSession'][_0xf4ab11(0x1b7)]({'eventID':_0x27848c['CollaborationEvent'][_0xf4ab11(0x1e1)],'data':{'unitID':this['_unitID'],'operations':{[_0x581514['id']]:{'id':_0x581514['id'],'params':JSON[_0xf4ab11(0x1c0)](_0x581514['params'])}}}},this[_0xf4ab11(0x174)]);})),_0x2ffaee['next'](_0x4648ea);})),this[_0x557108(0x159)][_0x557108(0x166)](this[_0x557108(0x174)])[_0x557108(0x13b)](_0x178939=>this[_0x557108(0x1db)][_0x557108(0x1b7)]({'eventID':_0x27848c['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x557108(0x174)],'operations':{[_0x178939['id']]:{'id':_0x178939['id'],'params':JSON[_0x557108(0x1c0)](_0x178939[_0x557108(0x175)])}}}},this[_0x557108(0x174)]));}[_0x35c375(0x128)](){var _0x3e9497=_0x35c375,_0x5ea083;this[_0x3e9497(0x17e)][_0x3e9497(0x1d5)]('idle'),(_0x5ea083=this[_0x3e9497(0x16a)])==null||_0x5ea083[_0x3e9497(0x132)](),this['_commandDisposable']=null;}[_0x35c375(0x17d)](){var _0x29e217=_0x35c375,_0x3e6932;(_0x3e6932=this[_0x29e217(0x16a)])==null||_0x3e6932[_0x29e217(0x132)](),this[_0x29e217(0x17e)][_0x29e217(0x1d5)](_0x29e217(0x10d));}['_beIdle'](){var _0xf0233c=_0x35c375,_0xd5ae92;this[_0xf0233c(0x17e)][_0xf0233c(0x1d5)](_0xf0233c(0x15f)),(_0xd5ae92=this['_commandDisposable'])==null||_0xd5ae92['dispose'](),this['_commandDisposable']=null;}[_0x35c375(0x1c3)](){var _0x587c1c=_0x35c375,_0x48b5b8;this['_status$'][_0x587c1c(0x1d5)](_0x587c1c(0x11b)),(_0x48b5b8=this[_0x587c1c(0x16a)])==null||_0x48b5b8[_0x587c1c(0x132)]();}[_0x35c375(0x110)](_0x5c2f8b){var _0x351ee1=_0x35c375;if([_0x351ee1(0x172),_0x351ee1(0x11b),_0x351ee1(0x158)]['includes'](this[_0x351ee1(0x157)])||!_0x5c2f8b[_0x351ee1(0x12c)][_0x351ee1(0x19d)]||_0x5c2f8b['data'][_0x351ee1(0x19d)]===this[_0x351ee1(0x1db)][_0x351ee1(0x1e2)]())return;this[_0x351ee1(0x157)]==='idle'&&this[_0x351ee1(0x17d)]();const _0x5b9ac4=_0x5c2f8b['data'][_0x351ee1(0x1bf)];Object['values'](_0x5b9ac4)[_0x351ee1(0x13b)](_0x29a908=>{var _0x5069f8=_0x351ee1;this[_0x5069f8(0x1a7)][_0x5069f8(0x176)](_0x29a908['id'],_0x29a908['params']?JSON['parse'](_0x29a908['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4cac92=_0x35c375,_0x14c7d2;this[_0x4cac92(0x17e)]['next'](_0x4cac92(0x158)),(_0x14c7d2=this[_0x4cac92(0x16a)])==null||_0x14c7d2[_0x4cac92(0x132)]();}[_0x35c375(0x17c)](){var _0x3f252e=_0x35c375;this[_0x3f252e(0x17e)][_0x3f252e(0x1d5)](_0x3f252e(0x15f)),this[_0x3f252e(0x152)]();}},_0x306c00['LiveShareCoordinator']=_0x12b983([_0x1238db(0x2,_0x1c0471['IConfigService']),_0x1238db(0x3,_0x1c0471[_0x35c375(0x1a1)](_0x231f7a)),_0x1238db(0x4,_0x1c0471['ICommandService'])],_0x306c00['LiveShareCoordinator']);function _0x32b0d1(){var _0x13fcfa=_0x35c375;const _0x16d4ff=_0x364ad0['useDependency'](_0x306c00['LiveShareController']),_0x4c3c6a=_0x364ad0[_0x13fcfa(0x19e)](_0x1c0471[_0x13fcfa(0x1d4)]),_0x31640a=_0x364ad0[_0x13fcfa(0x196)](()=>_0x4c3c6a[_0x13fcfa(0x151)](_0x1c0471[_0x13fcfa(0x145)][_0x13fcfa(0x141)]),void 0x0,!0x1,[]),[_0x111579,_0x111d44]=_0x197fcb[_0x13fcfa(0x14f)](null),[_0xc5154a,_0x59f0cd]=_0x197fcb['useState'](_0x134d96[_0x13fcfa(0x1b1)]),_0x2a1665=_0x197fcb['useRef'](null);return _0x197fcb[_0x13fcfa(0x1aa)](()=>(_0x31640a&&_0x16d4ff[_0x13fcfa(0x16c)](_0x31640a[_0x13fcfa(0xfd)]())[_0x13fcfa(0xfa)](_0x4535f3=>{var _0x19847b=_0x13fcfa;_0x111d44(_0x4535f3),_0x2a1665[_0x19847b(0x18b)]=_0x4535f3[_0x19847b(0x188)][_0x19847b(0x17b)](_0x74718=>{_0x59f0cd(_0x74718);});}),()=>{var _0x4a823c=_0x13fcfa,_0x5f0a05;(_0x5f0a05=_0x2a1665['current'])==null||_0x5f0a05[_0x4a823c(0x10b)](),_0x2a1665[_0x4a823c(0x18b)]=null;}),[_0x31640a,_0x16d4ff]),_0x111579?_0x4224e5[_0x13fcfa(0x156)](_0x31d2ac[_0x13fcfa(0x1d1)],{'align':_0x13fcfa(0x103),'disabled':_0xc5154a===_0x134d96[_0x13fcfa(0x105)],'className':_0x13fcfa(0x148),'overlay':_0x4224e5['jsx'](_0xf44287,{'status':_0xc5154a,'coordinator':_0x111579}),'children':_0x4224e5[_0x13fcfa(0x156)]('button',{'className':_0x31d2ac[_0x13fcfa(0x1c6)](_0x13fcfa(0x1ab),{'univer-cursor-not-allowed':_0xc5154a===_0x134d96['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xc5154a!==_0x134d96[_0x13fcfa(0x105)]}),'type':_0x13fcfa(0x1bc),'children':_0x4224e5['jsx'](_0x18dc00,{'className':_0x13fcfa(0x1b4)})})}):null;}function _0xf44287(_0x371ddc){var _0x545bff=_0x35c375;const {status:_0x1cd06b,coordinator:_0x20aa24}=_0x371ddc;switch(_0x1cd06b){case _0x134d96[_0x545bff(0x1b1)]:return _0x4224e5['jsx'](_0x351085,{'coordinator':_0x20aa24});case _0x134d96[_0x545bff(0x14b)]:return _0x4224e5[_0x545bff(0x156)](_0x82cf93,{'coordinator':_0x20aa24});case _0x134d96[_0x545bff(0xf8)]:return _0x4224e5[_0x545bff(0x156)](_0x163478,{'coordinator':_0x20aa24});case _0x134d96[_0x545bff(0x105)]:return _0x4224e5[_0x545bff(0x156)](_0x2dfa96,{});case _0x134d96['PRESENTING']:return _0x4224e5[_0x545bff(0x156)](_0x47bab1,{'coordinator':_0x20aa24});default:return null;}}function _0x351085(_0x27eef3){var _0x479fb0=_0x35c375;const {coordinator:_0x3cc06f}=_0x27eef3;return _0x4224e5[_0x479fb0(0xf4)](_0x4224e5[_0x479fb0(0x13a)],{'children':[_0x4224e5['jsx'](_0x479fb0(0x129),{'className':_0x479fb0(0x15b),'children':_0x479fb0(0x104)}),_0x4224e5['jsx'](_0x31d2ac[_0x479fb0(0x15e)],{'onClick':()=>_0x3cc06f[_0x479fb0(0x1d2)](),'children':_0x479fb0(0x138)})]});}function _0x82cf93(_0x544d3d){var _0x4c3dac=_0x35c375;const {coordinator:_0x166d82}=_0x544d3d;return _0x4224e5['jsxs'](_0x4224e5['Fragment'],{'children':[_0x4224e5[_0x4c3dac(0x156)](_0x4c3dac(0x129),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x4224e5['jsx'](_0x31d2ac[_0x4c3dac(0x15e)],{'onClick':()=>_0x166d82[_0x4c3dac(0x122)](),'children':_0x4c3dac(0x126)})]});}function _0x163478(_0x29fb41){var _0x598a15=_0x35c375;const {coordinator:_0x566f9f}=_0x29fb41;return _0x4224e5['jsxs'](_0x4224e5[_0x598a15(0x13a)],{'children':[_0x4224e5[_0x598a15(0x156)](_0x598a15(0x129),{'className':_0x598a15(0x15b),'children':_0x598a15(0x1df)}),_0x4224e5[_0x598a15(0x156)](_0x31d2ac[_0x598a15(0x15e)],{'variant':_0x598a15(0x1b0),'onClick':()=>_0x566f9f[_0x598a15(0x1c5)](),'children':_0x598a15(0x1cb)})]});}function _0x47bab1(_0xf763ca){var _0x2cb3f7=_0x35c375;const {coordinator:_0x3f7268}=_0xf763ca;return _0x4224e5[_0x2cb3f7(0xf4)](_0x4224e5[_0x2cb3f7(0x13a)],{'children':[_0x4224e5[_0x2cb3f7(0x156)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x4224e5[_0x2cb3f7(0x156)](_0x31d2ac[_0x2cb3f7(0x15e)],{'variant':_0x2cb3f7(0x1ae),'onClick':()=>_0x3f7268[_0x2cb3f7(0x1de)](),'children':_0x2cb3f7(0x1ca)})]});}function _0x2dfa96(){var _0x4a4a8f=_0x35c375;return _0x4224e5[_0x4a4a8f(0x156)](_0x4224e5[_0x4a4a8f(0x13a)],{'children':_0x4a4a8f(0xee)});}var _0x37739c=Object[_0x35c375(0x1c2)],_0x3306ac=(_0x3c738d,_0x14e15a,_0x14d852,_0x136a2c)=>{for(var _0x554dc5=_0x136a2c>0x1?void 0x0:_0x136a2c?_0x37739c(_0x14e15a,_0x14d852):_0x14e15a,_0x28468f=_0x3c738d['length']-0x1,_0x36dfc9;_0x28468f>=0x0;_0x28468f--)(_0x36dfc9=_0x3c738d[_0x28468f])&&(_0x554dc5=_0x36dfc9(_0x554dc5)||_0x554dc5);return _0x554dc5;},_0x42fb6a=(_0x14f9e5,_0x5f7726)=>(_0x1893a2,_0xd78647)=>_0x5f7726(_0x1893a2,_0xd78647,_0x14f9e5);_0x306c00[_0x35c375(0x1da)]=class extends _0x1c0471[_0x35c375(0x18a)]{constructor(_0x4f50bb,_0x29be04){var _0x4072e8=_0x35c375;super(),this[_0x4072e8(0x107)]=_0x4f50bb,this[_0x4072e8(0x10f)]=_0x29be04,this[_0x4072e8(0x1a4)]();}['_mountLiveShare'](){var _0x2b3e76=_0x35c375;this[_0x2b3e76(0x101)](this[_0x2b3e76(0x10f)][_0x2b3e76(0x170)](_0x364ad0[_0x2b3e76(0x15c)][_0x2b3e76(0x18f)],()=>_0x364ad0[_0x2b3e76(0x1d6)](_0x32b0d1,this['_injector'])));}},_0x306c00[_0x35c375(0x1da)]=_0x3306ac([_0x42fb6a(0x0,_0x1c0471[_0x35c375(0x1a1)](_0x1c0471[_0x35c375(0x197)])),_0x42fb6a(0x1,_0x364ad0[_0x35c375(0x109)])],_0x306c00[_0x35c375(0x1da)]);const _0x3275f2='live-share.config',_0x1b237e={};var _0x2e0a9b=Object[_0x35c375(0x1c2)],_0x356f4d=(_0x1fe9f2,_0x5684d4,_0x1dd425,_0x2b4ec9)=>{var _0x3dfaa4=_0x35c375;for(var _0x5239f4=_0x2b4ec9>0x1?void 0x0:_0x2b4ec9?_0x2e0a9b(_0x5684d4,_0x1dd425):_0x5684d4,_0x201ea4=_0x1fe9f2[_0x3dfaa4(0x1dc)]-0x1,_0x4fea2f;_0x201ea4>=0x0;_0x201ea4--)(_0x4fea2f=_0x1fe9f2[_0x201ea4])&&(_0x5239f4=_0x4fea2f(_0x5239f4)||_0x5239f4);return _0x5239f4;},_0x12699f=(_0x5b46d1,_0x530442)=>(_0x43ef69,_0x107664)=>_0x530442(_0x43ef69,_0x107664,_0x5b46d1);let _0x3aeba5=class extends _0x1c0471[_0x35c375(0x18a)]{constructor(_0xc442f5){var _0x55d4b5=_0x35c375;super(),this[_0x55d4b5(0x159)]=_0xc442f5,this[_0x55d4b5(0x16d)]();}[_0x35c375(0x16d)](){var _0x169bc5=_0x35c375;[_0x3a0119[_0x169bc5(0x11e)]['id'],_0x3a0119[_0x169bc5(0x193)]['id'],_0x154c01['SetWorksheetActiveOperation']['id']][_0x169bc5(0x13b)](_0x2de68e=>{var _0x2751ce=_0x169bc5;this['disposeWithMe'](this[_0x2751ce(0x159)]['registerSharedOperation'](_0x2de68e));});}};_0x3aeba5=_0x356f4d([_0x12699f(0x0,_0x1c0471[_0x35c375(0x1a1)](_0x231f7a))],_0x3aeba5);var _0x9f6ae3=Object['defineProperty'],_0x13a5a4=Object[_0x35c375(0x1c2)],_0x419181=(_0x2ceea0,_0x5d2606,_0x1acb23)=>_0x5d2606 in _0x2ceea0?_0x9f6ae3(_0x2ceea0,_0x5d2606,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1acb23}):_0x2ceea0[_0x5d2606]=_0x1acb23,_0x1fc66d=(_0x85be37,_0x287bd2,_0x1288ea,_0x2eec35)=>{var _0x3da674=_0x35c375;for(var _0x3f8a60=_0x2eec35>0x1?void 0x0:_0x2eec35?_0x13a5a4(_0x287bd2,_0x1288ea):_0x287bd2,_0x3572b7=_0x85be37[_0x3da674(0x1dc)]-0x1,_0x430fca;_0x3572b7>=0x0;_0x3572b7--)(_0x430fca=_0x85be37[_0x3572b7])&&(_0x3f8a60=_0x430fca(_0x3f8a60)||_0x3f8a60);return _0x3f8a60;},_0x1d96d8=(_0x1da6d2,_0x50dc43)=>(_0x264636,_0x237b8c)=>_0x50dc43(_0x264636,_0x237b8c,_0x1da6d2),_0x52b596=(_0x3af11b,_0x5154dd,_0x4b7a96)=>_0x419181(_0x3af11b,typeof _0x5154dd!=_0x35c375(0x186)?_0x5154dd+'':_0x5154dd,_0x4b7a96);const _0x15c3e9=_0x35c375(0x123);_0x306c00[_0x35c375(0x1d9)]=class extends _0x1c0471[_0x35c375(0x1be)]{constructor(_0x38791d=_0x1b237e,_0x10eeb1,_0x19d531){var _0x5d669d=_0x35c375;super(),this[_0x5d669d(0x19c)]=_0x38791d,this[_0x5d669d(0x107)]=_0x10eeb1,this[_0x5d669d(0x120)]=_0x19d531;const {..._0xd36ccf}=_0x1c0471['merge']({},_0x1b237e,this[_0x5d669d(0x19c)]);this[_0x5d669d(0x120)][_0x5d669d(0x1d3)](_0x3275f2,_0xd36ccf);}[_0x35c375(0xec)](){var _0x3d26ae=_0x35c375;_0x1c0471['registerDependencies'](this[_0x3d26ae(0x107)],_0x1c0471[_0x3d26ae(0x1af)]([[_0x231f7a],[_0x306c00[_0x3d26ae(0x14e)]],[_0x3aeba5],[_0x306c00[_0x3d26ae(0x1da)]]],this[_0x3d26ae(0x19c)][_0x3d26ae(0x168)])),_0x1c0471['touchDependencies'](this['_injector'],[[_0x3aeba5]]);}[_0x35c375(0xf5)](){var _0x51d040=_0x35c375;_0x1c0471[_0x51d040(0x11d)](this[_0x51d040(0x107)],[[_0x306c00[_0x51d040(0x1da)]]]);}},_0x52b596(_0x306c00[_0x35c375(0x1d9)],'type',_0x1c0471[_0x35c375(0x145)][_0x35c375(0x1c1)]),_0x52b596(_0x306c00[_0x35c375(0x1d9)],_0x35c375(0x1b5),_0x15c3e9),_0x306c00[_0x35c375(0x1d9)]=_0x1fc66d([_0x1c0471[_0x35c375(0xf0)](_0x3810d2[_0x35c375(0x165)]),_0x1d96d8(0x1,_0x1c0471[_0x35c375(0x1a1)](_0x1c0471[_0x35c375(0x197)])),_0x1d96d8(0x2,_0x1c0471[_0x35c375(0x10c)])],_0x306c00[_0x35c375(0x1d9)]),_0x306c00[_0x35c375(0x177)]=_0x32b0d1,_0x306c00[_0x35c375(0x15a)]=_0x231f7a,_0x306c00[_0x35c375(0x14c)]=_0x134d96,Object[_0x35c375(0x149)](_0x306c00,Symbol[_0x35c375(0x1cf)],{'value':_0x35c375(0x1bd)});}));function _0x546b(){var _0x35c7d8=['presenter','useDependency','_handleOffline','2010426YGMxnt','Inject','0\x200\x2017\x2017','toString','_mountLiveShare','CollaborationEvent','shouldShareOperation','_commandService','className','@univerjs/design','useEffect','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_sharedOperations','live-share-icon','default','mergeOverrideWithDependencies','text','IDLE','_handleTerminate','React','univer-size-4','pluginName','call','send','LIVESHARE_REQUEST_HOST','CommandType','none','@univerjs/core','button','Module','Plugin','operations','stringify','UNIVER_UNKNOWN','getOwnPropertyDescriptor','_stopFollowing','RxDisposable','startFollowing','clsx','path','8NjZxhG','BehaviorSubject','Stop\x20presenting','Start\x20following','event$','function','set','toStringTag','complete','Dropdown','tryStartPresenting','setConfig','IUniverInstanceService','next','connectInjector','hasOwnProperty','LiveShareIcon','UniverLiveSharePlugin','DesktopLiveShareController','_collabSession','length','http://www.w3.org/2000/svg','stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','evenodd','LIVESHARE_OPERATION','getMemberID','InsertSheetMutation','onStarting','defs','You\x27are\x20offline.','forwardRef','DependentOn','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','takeUntil','useRef','jsxs','onRendered','string','registerSharedOperation','NOT_FOLLOWING','assign','then','createElement','getValue','getUnitId','UniverDesign','getOwnPropertySymbols','LIVESHARE_NEW_HOST','disposeWithMe','add','end','Present\x20this\x20document','OFFLINE','prototype','_injector','12470936giyBSC','IUIPartsService','1em','unsubscribe','IConfigService','following','entries','_uiPartsService','_handleOperation','LIVESHARE_TERMINATE','@univerjs/sheets','from','indexOf','apply','UniverUi','_startLiveShareCoordinator','@univerjs-pro/collaboration','extend','1755190hTbvNf','not-following','_entities','touchDependencies','SetZoomRatioOperation','propertyIsEnumerable','_configService','svg','stopFollowing','UNIVER_LIVE_SHARE_PLUGIN','_handleNewChangeSets','parseProtocolChangeset','Stop\x20following','amd','_stopPresenting','div','LiveShareCoordinator','react','data','clear','mask','use','OPERATION','182JRArZk','dispose','rxjs/operators','object','@univerjs-pro/collaboration-client','dispose$','unitId','Start','_reporters','Fragment','forEach','_univerInstanceService','tag','delete','SessionStatus','UniverProCollaboration','UNIVER_SHEET','CollaborationSessionService','UniverProCollaborationClient','SetWorksheetActiveOperation','UniverInstanceType','trim','attrs','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','defineProperty','children','FOLLOWING','LiveShareStatus','352014XJwOGF','LiveShareController','useState','UniverSheetsUi','getCurrentTypeOfUnit$','_fetchOperations','getConfig','9NIVzVE','concat','jsx','_status','offline','_liveShareService','LiveShareService','univer-mb-3\x20univer-w-full\x20univer-text-sm','BuiltInUIPart','idSuffix','Button','idle','UniverSheets','get','toDisposable','has','fill','UniverCollaborationClientPlugin','getInitialStates','init','override','pipe','_commandDisposable','type','getLiveShareCoordinator','_init','replace','SAME_OPERATION_SHARE_INTERVAL','registerComponent','react/jsx-runtime','presenting','defIds','_unitID','params','executeCommand','LiveShare','_collabSessionService','map','_handleNewHost','subscribe','_handleOnline','_startFollowing','_status$','223575VsaOrX','find','1310386EQtVjF','throttleTime','sessionStatus$','Subject','520976NTskwt','symbol','getTypeOfUnitDisposed$','status$','_startPresenting','Disposable','current','LIVESHARE_FETCH_OPERATIONS','@univerjs/sheets-ui','icon','HEADER_MENU','_presenter','url(#$1','rxjs','SetScrollOperation','mutations','colorChannel1','useObservable','Injector','displayName','xlink:href','currentColor','createInstance','_config'];_0x546b=function(){return _0x35c7d8;};return _0x546b();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.10.10-nightly.202510180256",
3
+ "version": "0.10.10-nightly.202510180327",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.9",
50
- "@univerjs-pro/collaboration-client": "0.10.10-nightly.202510180256",
51
- "@univerjs-pro/collaboration": "0.10.10-nightly.202510180256",
52
- "@univerjs/core": "0.10.10-nightly.202510180256",
53
- "@univerjs/sheets": "0.10.10-nightly.202510180256",
54
- "@univerjs/design": "0.10.10-nightly.202510180256",
55
- "@univerjs/sheets-ui": "0.10.10-nightly.202510180256",
56
- "@univerjs/ui": "0.10.10-nightly.202510180256"
50
+ "@univerjs-pro/collaboration": "0.10.10-nightly.202510180327",
51
+ "@univerjs-pro/collaboration-client": "0.10.10-nightly.202510180327",
52
+ "@univerjs/design": "0.10.10-nightly.202510180327",
53
+ "@univerjs/sheets": "0.10.10-nightly.202510180327",
54
+ "@univerjs/sheets-ui": "0.10.10-nightly.202510180327",
55
+ "@univerjs/core": "0.10.10-nightly.202510180327",
56
+ "@univerjs/ui": "0.10.10-nightly.202510180327"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",