@univerjs-pro/live-share 0.10.9-nightly.202509260614 → 0.10.10

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';function _0x4ac0(){var _0x14a0f5=['useRef','className','Module','SAME_OPERATION_SHARE_INTERVAL','substring','then','not-following','propertyIsEnumerable','delete','47869lMNNAp','next','add','send','getInitialStates','_collabSession','getCurrentTypeOfUnit$','text','132444NQAaCZ','mask','toString','BuiltInUIPart','IUIPartsService','symbol','merge','_init','evenodd','icon','call','Start','throttleTime','url(#$1','apply','getTypeOfUnitDisposed$','indexOf','operations','SessionStatus','memberID','LiveShareIcon','concat','presenter','includes','Stop\x20following','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','155352yXnPKD','assign','random','_configService','values','onRendered','_uiPartsService','_reporters','IUniverInstanceService','parse','NOT_FOLLOWING','data','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_unitID','pluginName','SetZoomRatioOperation','replace','toDisposable','setConfig','svg','890mNpSXy','IConfigService','forwardRef','dispose','from','status$','onCommandExecuted','RxDisposable','LiveShareService','stringify','_collabSessionService','attrs','_handleOnline','function','length','dispose$','defineProperty','LiveShareController','6uYWTMU','registerComponent','_liveShareService','ONLINE','subscribe','You\x27re\x20not\x20following\x20the\x20presenter','_presenter','_handleOperation','_beIdle','clear','UniverIcon','UNIVER_UNKNOWN','2713172piRnUz','registerSharedOperation','useDependency','getConfig','trim','_startFollowing','Fragment','useState','NEW_CHANGESETS','_commandService','_status','pipe','DesktopLiveShareController','_config','prototype','live-share.config','params','getUnitId','registerDependencies','defIds','You\x27re\x20presenting\x20the\x20document','Inject','init','ICommandService','_commandDisposable','following','univer-mb-3\x20univer-w-full\x20univer-text-sm','Button','Stop\x20presenting','_stopPresenting','tag','clsx','mergeOverrideWithDependencies','_univerInstanceService','onStarting','1983030xTHQqk','idSuffix','CollaborationEvent','You\x27re\x20following\x20the\x20presenter','disposeWithMe','univer-size-4','_startLiveShareCoordinator','jsx','Plugin','getValue','event$','idle','InsertSheetMutation','string','unsubscribe','getOwnPropertyDescriptor','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','2326376WcnLSl','_fetchOperations','_mountLiveShare','_handleOffline','UniverInstanceType','takeUntil','displayName','FOLLOWING','Injector','asObservable','CollaborationSessionService','PRESENTING','_stopFollowing','stopPresenting','_handleTerminate','1844470WHPLSn','startFollowing','LiveShareStatus','getLiveShareCoordinator','current','has','_status$','children','LIVESHARE_REQUEST_HOST','DisposableCollection','HEADER_MENU','path','UNIVER_SHEET','1em','useObservable','_sharedOperations','touchDependencies','div','8CJOmAf','SetWorksheetActiveOperation','Disposable','_startPresenting','stopFollowing','end','_injector','useEffect','offline','executeCommand','LIVESHARE_NEW_HOST','getOwnPropertySymbols','CommandType','IDLE','colorChannel1','presenting','Dropdown','OFFLINE','parseProtocolChangeset','reverse','forEach','jsxs','UniverLiveSharePlugin','fill','_entities','SetScrollOperation','requireSession','createInstance','map','currentColor','override','BehaviorSubject','get','default','0\x200\x2017\x2017','connectInjector','LiveShareCoordinator','shouldShareOperation','hasOwnProperty','LIVESHARE_TERMINATE','tryStartPresenting','toStringTag','createElement','xlink:href','LIVESHARE_OPERATION'];_0x4ac0=function(){return _0x14a0f5;};return _0x4ac0();}var _0xf84885=_0x4667;(function(_0x1f199c,_0x3d0d52){var _0x1ffdf4=_0x4667,_0x6f0b3e=_0x1f199c();while(!![]){try{var _0x3fe5cd=-parseInt(_0x1ffdf4(0x1f4))/0x1*(parseInt(_0x1ffdf4(0x23c))/0x2)+parseInt(_0x1ffdf4(0x216))/0x3*(-parseInt(_0x1ffdf4(0x1be))/0x4)+-parseInt(_0x1ffdf4(0x1ac))/0x5+-parseInt(_0x1ffdf4(0x18c))/0x6+-parseInt(_0x1ffdf4(0x248))/0x7+parseInt(_0x1ffdf4(0x19d))/0x8+-parseInt(_0x1ffdf4(0x1fc))/0x9*(-parseInt(_0x1ffdf4(0x22a))/0xa);if(_0x3fe5cd===_0x3d0d52)break;else _0x6f0b3e['push'](_0x6f0b3e['shift']());}catch(_0x56fe62){_0x6f0b3e['push'](_0x6f0b3e['shift']());}}}(_0x4ac0,0x4106f));var U=Object[_0xf84885(0x23a)],F=(_0x3d0f9d,_0x355a93,_0x3290b2)=>_0x355a93 in _0x3d0f9d?U(_0x3d0f9d,_0x355a93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3290b2}):_0x3d0f9d[_0x355a93]=_0x3290b2,v=(_0x1a1dff,_0x4ad229,_0xf283d4)=>F(_0x1a1dff,typeof _0x4ad229!=_0xf84885(0x201)?_0x4ad229+'':_0x4ad229,_0xf283d4);Object[_0xf84885(0x23a)](exports,Symbol[_0xf84885(0x1e7)],{'value':_0xf84885(0x1ed)});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 _0x21fd81=_0xf84885;return u=Object['assign']||function(_0x11c6b2){var _0x21e598=_0x4667;for(var _0x420751,_0x1cb06f=0x1,_0x3d2826=arguments[_0x21e598(0x238)];_0x1cb06f<_0x3d2826;_0x1cb06f++){_0x420751=arguments[_0x1cb06f];for(var _0x1e2a01 in _0x420751)Object['prototype'][_0x21e598(0x1e4)][_0x21e598(0x206)](_0x420751,_0x1e2a01)&&(_0x11c6b2[_0x1e2a01]=_0x420751[_0x1e2a01]);}return _0x11c6b2;},u[_0x21fd81(0x20a)](this,arguments);},$=function(_0x48134f,_0x416295){var _0x405224=_0xf84885,_0x21b7ad={};for(var _0x521531 in _0x48134f)Object[_0x405224(0x256)][_0x405224(0x1e4)][_0x405224(0x206)](_0x48134f,_0x521531)&&_0x416295[_0x405224(0x20c)](_0x521531)<0x0&&(_0x21b7ad[_0x521531]=_0x48134f[_0x521531]);if(_0x48134f!=null&&typeof Object[_0x405224(0x1c9)]==_0x405224(0x237)){for(var _0x1c650a=0x0,_0x521531=Object[_0x405224(0x1c9)](_0x48134f);_0x1c650a<_0x521531['length'];_0x1c650a++)_0x416295[_0x405224(0x20c)](_0x521531[_0x1c650a])<0x0&&Object[_0x405224(0x256)][_0x405224(0x1f2)]['call'](_0x48134f,_0x521531[_0x1c650a])&&(_0x21b7ad[_0x521531[_0x1c650a]]=_0x48134f[_0x521531[_0x1c650a]]);}return _0x21b7ad;},j=f['forwardRef'](function(_0x4a7288,_0x565f0a){var _0x16ba9a=_0xf84885,_0x4dd202=_0x4a7288[_0x16ba9a(0x205)],_0x35af30=_0x4a7288['id'],_0x45c6d5=_0x4a7288[_0x16ba9a(0x1ec)],_0x95e99a=_0x4a7288['extend'],_0x13446=$(_0x4a7288,[_0x16ba9a(0x205),'id',_0x16ba9a(0x1ec),'extend']),_0x92993f='univerjs-icon\x20univerjs-icon-'[_0x16ba9a(0x211)](_0x35af30,'\x20')[_0x16ba9a(0x211)](_0x45c6d5||'')[_0x16ba9a(0x24c)](),_0x17b55a=f[_0x16ba9a(0x1eb)]('_'[_0x16ba9a(0x211)](k()));return y(_0x4dd202,''[_0x16ba9a(0x211)](_0x35af30),{'defIds':_0x4dd202[_0x16ba9a(0x25b)],'idSuffix':_0x17b55a['current']},u({'ref':_0x565f0a,'className':_0x92993f},_0x13446),_0x95e99a);});function y(_0x1353a1,_0x3c4d81,_0x3dd3c2,_0xa58752,_0x5b0727){var _0x2af0a3=_0xf84885;return f[_0x2af0a3(0x1e8)](_0x1353a1[_0x2af0a3(0x187)],u(u({'key':_0x3c4d81},H(_0x1353a1,_0x3dd3c2,_0x5b0727)),_0xa58752),(V(_0x1353a1,_0x3dd3c2)['children']||[])[_0x2af0a3(0x1da)](function(_0x5e34d7,_0x37c639){var _0x57b47f=_0x2af0a3;return y(_0x5e34d7,''[_0x57b47f(0x211)](_0x3c4d81,'-')[_0x57b47f(0x211)](_0x1353a1[_0x57b47f(0x187)],'-')[_0x57b47f(0x211)](_0x37c639),_0x3dd3c2,void 0x0,_0x5b0727);}));}function H(_0x22f894,_0x2b44ba,_0x2f912b){var _0x808b05=_0xf84885,_0x16ee4a=u({},_0x22f894[_0x808b05(0x235)]);_0x2f912b!=null&&_0x2f912b[_0x808b05(0x1cc)]&&_0x16ee4a[_0x808b05(0x1d5)]==='colorChannel1'&&(_0x16ee4a[_0x808b05(0x1d5)]=_0x2f912b[_0x808b05(0x1cc)]),_0x22f894[_0x808b05(0x187)]==='mask'&&_0x16ee4a['id']&&(_0x16ee4a['id']=_0x16ee4a['id']+_0x2b44ba['idSuffix']),Object['entries'](_0x16ee4a)[_0x808b05(0x1d2)](function(_0x17725f){var _0xa37a26=_0x808b05,_0x4adfb7=_0x17725f[0x0],_0xbdd908=_0x17725f[0x1];_0x4adfb7===_0xa37a26(0x1fd)&&typeof _0xbdd908==_0xa37a26(0x199)&&(_0x16ee4a[_0x4adfb7]=_0xbdd908[_0xa37a26(0x226)](/url\(#(.*)\)/,_0xa37a26(0x209)[_0xa37a26(0x211)](_0x2b44ba[_0xa37a26(0x18d)],')')));});var _0x5eccb0=_0x2b44ba[_0x808b05(0x25b)];return!_0x5eccb0||_0x5eccb0[_0x808b05(0x238)]===0x0||(_0x22f894[_0x808b05(0x187)]==='use'&&_0x16ee4a[_0x808b05(0x1e9)]&&(_0x16ee4a['xlink:href']=_0x16ee4a[_0x808b05(0x1e9)]+_0x2b44ba[_0x808b05(0x18d)]),Object['entries'](_0x16ee4a)[_0x808b05(0x1d2)](function(_0x2b41d3){var _0x1d5d98=_0x808b05,_0x18dc2f=_0x2b41d3[0x0],_0x348e36=_0x2b41d3[0x1];typeof _0x348e36==_0x1d5d98(0x199)&&(_0x16ee4a[_0x18dc2f]=_0x348e36[_0x1d5d98(0x226)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2b44ba['idSuffix'],')')));})),_0x16ee4a;}function V(_0x200073,_0x5c54f4){var _0x5e1b2f=_0xf84885,_0x472c06,_0x1a8d3a=_0x5c54f4[_0x5e1b2f(0x25b)];return!_0x1a8d3a||_0x1a8d3a['length']===0x0?_0x200073:_0x200073[_0x5e1b2f(0x187)]==='defs'&&(!((_0x472c06=_0x200073['children'])===null||_0x472c06===void 0x0)&&_0x472c06['length'])?u(u({},_0x200073),{'children':_0x200073[_0x5e1b2f(0x1b3)][_0x5e1b2f(0x1da)](function(_0x414575){var _0x1bda78=_0x5e1b2f;return typeof _0x414575[_0x1bda78(0x235)]['id']==_0x1bda78(0x199)&&_0x1a8d3a&&_0x1a8d3a[_0x1bda78(0x213)](_0x414575[_0x1bda78(0x235)]['id'])?u(u({},_0x414575),{'attrs':u(u({},_0x414575['attrs']),{'id':_0x414575[_0x1bda78(0x235)]['id']+_0x5c54f4[_0x1bda78(0x18d)]})}):_0x414575;})}):_0x200073;}function k(){var _0x474768=_0xf84885;return Math[_0x474768(0x218)]()[_0x474768(0x1fe)](0x24)[_0x474768(0x1ef)](0x2,0x8);}j['displayName']=_0xf84885(0x246);var M={'tag':_0xf84885(0x229),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xf84885(0x1e0),'width':_0xf84885(0x1b9),'height':_0xf84885(0x1b9)},'children':[{'tag':_0xf84885(0x1b7),'attrs':{'fill':_0xf84885(0x1db),'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':_0xf84885(0x1b7),'attrs':{'fill':_0xf84885(0x1db),'d':_0xf84885(0x215),'fillRule':_0xf84885(0x204),'clipRule':'evenodd'}}]},P=f[_0xf84885(0x22c)](function(_0x5bb17f,_0x2189b1){var _0x40044f=_0xf84885;return f[_0x40044f(0x1e8)](j,Object[_0x40044f(0x217)]({},_0x5bb17f,{'id':'live-share-icon','ref':_0x2189b1,'icon':M}));});P[_0xf84885(0x1a3)]=_0xf84885(0x210);class O extends o[_0xf84885(0x1c0)]{constructor(){var _0x30c28d=_0xf84885;super(...arguments),v(this,_0x30c28d(0x1bb),new Set()),v(this,_0x30c28d(0x21d),new Set());}[_0xf84885(0x249)](_0x428788){var _0xfd6b84=_0xf84885;return this[_0xfd6b84(0x1bb)][_0xfd6b84(0x1f6)](_0x428788),o[_0xfd6b84(0x227)](()=>this[_0xfd6b84(0x1bb)][_0xfd6b84(0x1f3)](_0x428788));}['registerInitialStateReporter'](_0x4c91ee){var _0xd1867a=_0xf84885;return this[_0xd1867a(0x21d)][_0xd1867a(0x1f6)](_0x4c91ee),o['toDisposable'](()=>this[_0xd1867a(0x21d)][_0xd1867a(0x1f3)](_0x4c91ee));}[_0xf84885(0x1e3)](_0x389710){var _0x7e869c=_0xf84885;return this[_0x7e869c(0x1bb)][_0x7e869c(0x1b1)](_0x389710);}[_0xf84885(0x1f8)](_0x16418f){var _0x1e89d9=_0xf84885;return Array[_0x1e89d9(0x22e)](this[_0x1e89d9(0x21d)])[_0x1e89d9(0x1da)](_0x17e750=>_0x17e750(_0x16418f));}}var q=Object[_0xf84885(0x19b)],R=(_0x2410a2,_0x26ff2f,_0xc16a17,_0x2c6915)=>{var _0x817d2d=_0xf84885;for(var _0x287c0d=_0x2c6915>0x1?void 0x0:_0x2c6915?q(_0x26ff2f,_0xc16a17):_0x26ff2f,_0x4a9d00=_0x2410a2[_0x817d2d(0x238)]-0x1,_0x3f5717;_0x4a9d00>=0x0;_0x4a9d00--)(_0x3f5717=_0x2410a2[_0x4a9d00])&&(_0x287c0d=_0x3f5717(_0x287c0d)||_0x287c0d);return _0x287c0d;},S=(_0x122687,_0x1044cc)=>(_0x53399b,_0x1e71e5)=>_0x1044cc(_0x53399b,_0x1e71e5,_0x122687);exports['LiveShareController']=class extends o[_0xf84885(0x231)]{constructor(_0x124f2d,_0x36f88e,_0x9d1f37){var _0x57c847=_0xf84885;super(),v(this,'_entities',new Map()),(this['_univerInstanceService']=_0x124f2d,this[_0x57c847(0x1c4)]=_0x36f88e,this[_0x57c847(0x234)]=_0x9d1f37,this[_0x57c847(0x203)]());}async[_0xf84885(0x1af)](_0xf3bcc7){var _0x470d51=_0xf84885;return this[_0x470d51(0x1d6)][_0x470d51(0x1b1)](_0xf3bcc7)||await this[_0x470d51(0x192)](_0xf3bcc7),this[_0x470d51(0x1d6)][_0x470d51(0x1de)](_0xf3bcc7);}[_0xf84885(0x203)](){var _0x10ea59=_0xf84885;this['_univerInstanceService']['getTypeOfUnitAdded$'](o['UniverInstanceType'][_0x10ea59(0x1b8)])['pipe'](b[_0x10ea59(0x1a2)](this[_0x10ea59(0x239)]))['subscribe'](async _0x48f3ad=>{var _0x28afa5=_0x10ea59;const _0xb8a3b5=_0x48f3ad[_0x28afa5(0x259)]();this['_entities'][_0x28afa5(0x1b1)](_0xb8a3b5)||this[_0x28afa5(0x192)](_0xb8a3b5);}),this[_0x10ea59(0x18a)][_0x10ea59(0x20b)](o[_0x10ea59(0x1a1)]['UNIVER_SHEET'])[_0x10ea59(0x253)](b['takeUntil'](this[_0x10ea59(0x239)]))[_0x10ea59(0x240)](_0x29e472=>{var _0x5cb30c=_0x10ea59;const _0x153523=_0x29e472[_0x5cb30c(0x259)](),_0x296ae7=this[_0x5cb30c(0x1d6)][_0x5cb30c(0x1de)](_0x153523);_0x296ae7==null||_0x296ae7[_0x5cb30c(0x22d)]();});}async['_startLiveShareCoordinator'](_0x53b3d1){var _0x3aa09a=_0xf84885;const _0x46eb38=await this[_0x3aa09a(0x234)][_0x3aa09a(0x1d8)](_0x53b3d1),_0x174f0a=this[_0x3aa09a(0x1c4)][_0x3aa09a(0x1d9)](exports['LiveShareCoordinator'],_0x53b3d1,_0x46eb38);return _0x174f0a[_0x3aa09a(0x25e)](),this['_entities']['set'](_0x53b3d1,_0x174f0a),_0x174f0a;}},exports[_0xf84885(0x23b)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0xf84885(0x25d)](o['Injector'])),S(0x2,o[_0xf84885(0x25d)](m[_0xf84885(0x1a7)]))],exports[_0xf84885(0x23b)]);var h=(_0x30af4a=>(_0x30af4a[_0xf84885(0x1cf)]=_0xf84885(0x1c6),_0x30af4a['IDLE']=_0xf84885(0x197),_0x30af4a[_0xf84885(0x1a4)]=_0xf84885(0x182),_0x30af4a['NOT_FOLLOWING']='not-following',_0x30af4a['PRESENTING']=_0xf84885(0x1cd),_0x30af4a))(h||{});const W=_0xf84885(0x1ee),G=0xc8;exports[_0xf84885(0x1e2)]=class extends o[_0xf84885(0x231)]{constructor(_0x6682f6,_0xb01278,_0x258e02,_0x5236cb,_0x1c8eb1){var _0x640ea1=_0xf84885;super(),v(this,_0x640ea1(0x1b2),new w[(_0x640ea1(0x1dd))](_0x640ea1(0x197))),v(this,'status$',this[_0x640ea1(0x1b2)][_0x640ea1(0x1a6)]()),v(this,_0x640ea1(0x203),!0x1),v(this,_0x640ea1(0x181),null),v(this,_0x640ea1(0x242),null),(this[_0x640ea1(0x223)]=_0x6682f6,this[_0x640ea1(0x1f9)]=_0xb01278,this[_0x640ea1(0x219)]=_0x258e02,this[_0x640ea1(0x23e)]=_0x5236cb,this[_0x640ea1(0x251)]=_0x1c8eb1);}get[_0xf84885(0x252)](){var _0x162783=_0xf84885;return this[_0x162783(0x1b2)][_0x162783(0x195)]();}[_0xf84885(0x22d)](){var _0x58a2b1=_0xf84885,_0x4949fa;(_0x4949fa=this['_commandDisposable'])==null||_0x4949fa[_0x58a2b1(0x22d)](),this[_0x58a2b1(0x1b2)][_0x58a2b1(0x1f5)](_0x58a2b1(0x197)),this['_status$']['complete']();}[_0xf84885(0x25e)](){var _0x4b9ffe=_0xf84885;this['_init']||(this[_0x4b9ffe(0x203)]=!0x0,this[_0x4b9ffe(0x1f9)]['sessionStatus$'][_0x4b9ffe(0x253)](b[_0x4b9ffe(0x1a2)](this[_0x4b9ffe(0x239)]))[_0x4b9ffe(0x240)](_0x3fd182=>{var _0x2e1b0f=_0x4b9ffe;switch(_0x3fd182){case m[_0x2e1b0f(0x20e)][_0x2e1b0f(0x1cf)]:this[_0x2e1b0f(0x1a0)]();break;case m[_0x2e1b0f(0x20e)][_0x2e1b0f(0x23f)]:this['_handleOnline']();break;}}),this[_0x4b9ffe(0x1f9)][_0x4b9ffe(0x196)][_0x4b9ffe(0x253)](b[_0x4b9ffe(0x1a2)](this[_0x4b9ffe(0x239)]))[_0x4b9ffe(0x240)](_0x1f94a1=>{var _0x525732=_0x4b9ffe;const {eventID:_0x234f81}=_0x1f94a1;switch(_0x234f81){case _['CollaborationEvent'][_0x525732(0x1c8)]:this['_handleNewHost'](_0x1f94a1);break;case _['CollaborationEvent'][_0x525732(0x1ea)]:this[_0x525732(0x243)](_0x1f94a1);break;case _['CollaborationEvent'][_0x525732(0x1e5)]:this[_0x525732(0x1ab)]();break;case _['CollaborationEvent'][_0x525732(0x250)]:this['_handleNewChangeSets'](_0x1f94a1);break;}}));}[_0xf84885(0x1e6)](){var _0xfa521a=_0xf84885;this[_0xfa521a(0x1f9)][_0xfa521a(0x1f7)]({'eventID':_[_0xfa521a(0x18e)][_0xfa521a(0x1b4)],'data':{'unitID':this[_0xfa521a(0x223)],'userID':this['_collabSession']['getMemberID']()}},this[_0xfa521a(0x223)]);}[_0xf84885(0x1aa)](){var _0x113d82=_0xf84885;this[_0x113d82(0x252)]===_0x113d82(0x1cd)&&(this[_0x113d82(0x1b2)][_0x113d82(0x1f5)]('idle'),this[_0x113d82(0x1f9)][_0x113d82(0x1f7)]({'eventID':_[_0x113d82(0x18e)][_0x113d82(0x1e5)],'data':{'unitID':this['_unitID']}},this[_0x113d82(0x223)]));}[_0xf84885(0x1ad)](){var _0x27006a=_0xf84885;this[_0x27006a(0x252)]==='not-following'&&(this[_0x27006a(0x1b2)]['next']('following'),this['_startFollowing']());}[_0xf84885(0x1c2)](){var _0x4c28af=_0xf84885;this[_0x4c28af(0x252)]===_0x4c28af(0x182)&&this[_0x4c28af(0x1a9)]();}['_handleNewHost'](_0x3cee08){var _0x3b1f5b=_0xf84885;const {presenter:_0x2f2cfa}=_0x3cee08[_0x3b1f5b(0x221)],_0x3c2f33=this[_0x3b1f5b(0x1f9)]['getMemberID']();this[_0x3b1f5b(0x242)]=_0x2f2cfa,_0x2f2cfa===_0x3c2f33?(this['_stopFollowing'](),this[_0x3b1f5b(0x1c1)]()):this[_0x3b1f5b(0x252)]!==_0x3b1f5b(0x1f1)&&(this[_0x3b1f5b(0x186)](),this[_0x3b1f5b(0x24d)]());}[_0xf84885(0x19e)](){var _0x124c75=_0xf84885;const _0x198826={'eventID':_[_0x124c75(0x18e)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession']['send'](_0x198826,this[_0x124c75(0x223)]);}[_0xf84885(0x1ab)](){var _0x118d85=_0xf84885;this[_0x118d85(0x242)]=null,this['_status']!==_0x118d85(0x1cd)&&this[_0x118d85(0x244)]();}['_handleNewChangeSets'](_0x2f8de7){var _0x3747f7=_0xf84885;if(this['_status']===_0x3747f7(0x182)&&this[_0x3747f7(0x242)]===_0x2f8de7['data'][_0x3747f7(0x20f)]){const _0x466243=_[_0x3747f7(0x1d0)](_0x2f8de7[_0x3747f7(0x221)])['mutations'][_0x3747f7(0x1d1)]()['find'](_0x3c7897=>_0x3c7897['id']===C[_0x3747f7(0x198)]['id']);if(_0x466243){const _0x546b29=_0x466243[_0x3747f7(0x258)]['unitId'],_0x3ad1b7=_0x466243[_0x3747f7(0x258)]['sheet']['id'];setTimeout(()=>{var _0xe520d=_0x3747f7;this[_0xe520d(0x251)][_0xe520d(0x1c7)](C[_0xe520d(0x1bf)]['id'],{'unitId':_0x546b29,'subUnitId':_0x3ad1b7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xdfd6d=_0xf84885;this[_0xdfd6d(0x1b2)][_0xdfd6d(0x1f5)]('presenting');const _0x1766fd=new Map(),_0x440ae5=this['_commandDisposable']=new o[(_0xdfd6d(0x1b5))]();_0x440ae5['add'](o[_0xdfd6d(0x227)](()=>{var _0xb852a6=_0xdfd6d;_0x1766fd['forEach'](_0x5c6ba6=>_0x5c6ba6['complete']()),_0x1766fd[_0xb852a6(0x245)]();})),_0x440ae5[_0xdfd6d(0x1f6)](this['_commandService'][_0xdfd6d(0x230)](_0x118b33=>{var _0x1213be=_0xdfd6d,_0x3a147d;if(_0x118b33['type']!==o[_0x1213be(0x1ca)]['OPERATION']||!this[_0x1213be(0x23e)][_0x1213be(0x1e3)](_0x118b33['id']))return;const {id:_0x8a29d3}=_0x118b33;let _0x851465;_0x1766fd[_0x1213be(0x1b1)](_0x8a29d3)?_0x851465=_0x1766fd['get'](_0x8a29d3):(_0x851465=new w['Subject'](),_0x1766fd['set'](_0x8a29d3,_0x851465),_0x851465[_0x1213be(0x253)](b[_0x1213be(0x208)]((_0x3a147d=this['_configService'][_0x1213be(0x24b)](W))!=null?_0x3a147d:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x52adc8=>{var _0x3258a9=_0x1213be;this['_collabSession'][_0x3258a9(0x1f7)]({'eventID':_[_0x3258a9(0x18e)][_0x3258a9(0x1ea)],'data':{'unitID':this[_0x3258a9(0x223)],'operations':{[_0x52adc8['id']]:{'id':_0x52adc8['id'],'params':JSON[_0x3258a9(0x233)](_0x52adc8[_0x3258a9(0x258)])}}}},this[_0x3258a9(0x223)]);})),_0x851465['next'](_0x118b33);})),this[_0xdfd6d(0x23e)]['getInitialStates'](this[_0xdfd6d(0x223)])['forEach'](_0xa2f423=>this[_0xdfd6d(0x1f9)][_0xdfd6d(0x1f7)]({'eventID':_['CollaborationEvent'][_0xdfd6d(0x1ea)],'data':{'unitID':this[_0xdfd6d(0x223)],'operations':{[_0xa2f423['id']]:{'id':_0xa2f423['id'],'params':JSON[_0xdfd6d(0x233)](_0xa2f423[_0xdfd6d(0x258)])}}}},this['_unitID']));}[_0xf84885(0x186)](){var _0x42de7f=_0xf84885,_0x314f9d;this[_0x42de7f(0x1b2)]['next'](_0x42de7f(0x197)),(_0x314f9d=this['_commandDisposable'])==null||_0x314f9d[_0x42de7f(0x22d)](),this[_0x42de7f(0x181)]=null;}['_startFollowing'](){var _0x10803e=_0xf84885,_0x12e902;(_0x12e902=this[_0x10803e(0x181)])==null||_0x12e902[_0x10803e(0x22d)](),this['_status$'][_0x10803e(0x1f5)]('following');}['_beIdle'](){var _0x28e7ac=_0xf84885,_0x5a2bf2;this[_0x28e7ac(0x1b2)][_0x28e7ac(0x1f5)](_0x28e7ac(0x197)),(_0x5a2bf2=this[_0x28e7ac(0x181)])==null||_0x5a2bf2[_0x28e7ac(0x22d)](),this[_0x28e7ac(0x181)]=null;}[_0xf84885(0x1a9)](){var _0x296238=_0xf84885,_0x5c2a79;this[_0x296238(0x1b2)][_0x296238(0x1f5)](_0x296238(0x1f1)),(_0x5c2a79=this[_0x296238(0x181)])==null||_0x5c2a79[_0x296238(0x22d)]();}[_0xf84885(0x243)](_0x25afe4){var _0x43324f=_0xf84885;if([_0x43324f(0x1cd),_0x43324f(0x1f1),_0x43324f(0x1c6)][_0x43324f(0x213)](this['_status'])||!_0x25afe4[_0x43324f(0x221)][_0x43324f(0x212)]||_0x25afe4['data'][_0x43324f(0x212)]===this[_0x43324f(0x1f9)]['getMemberID']())return;this[_0x43324f(0x252)]==='idle'&&this[_0x43324f(0x24d)]();const _0x2a2964=_0x25afe4[_0x43324f(0x221)][_0x43324f(0x20d)];Object[_0x43324f(0x21a)](_0x2a2964)[_0x43324f(0x1d2)](_0x1fecbf=>{var _0x27c725=_0x43324f;this[_0x27c725(0x251)]['executeCommand'](_0x1fecbf['id'],_0x1fecbf[_0x27c725(0x258)]?JSON[_0x27c725(0x21f)](_0x1fecbf['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3f36d5=_0xf84885,_0x578f6e;this['_status$']['next'](_0x3f36d5(0x1c6)),(_0x578f6e=this[_0x3f36d5(0x181)])==null||_0x578f6e[_0x3f36d5(0x22d)]();}[_0xf84885(0x236)](){var _0x4e78d1=_0xf84885;this['_status$'][_0x4e78d1(0x1f5)](_0x4e78d1(0x197)),this[_0x4e78d1(0x19e)]();}},exports[_0xf84885(0x1e2)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0xf84885(0x25d)](O)),S(0x4,o[_0xf84885(0x25f)])],exports[_0xf84885(0x1e2)]);function A(){var _0x58b100=_0xf84885;const _0x165ff2=p[_0x58b100(0x24a)](exports[_0x58b100(0x23b)]),_0x119e9a=p[_0x58b100(0x24a)](o[_0x58b100(0x21e)]),_0x24d1d3=p[_0x58b100(0x1ba)](()=>_0x119e9a[_0x58b100(0x1fa)](o[_0x58b100(0x1a1)][_0x58b100(0x1b8)]),void 0x0,!0x1,[]),[_0x23c052,_0x4e6905]=f[_0x58b100(0x24f)](null),[_0x3b579b,_0x4685bc]=f['useState'](h['IDLE']),_0x45e7e9=f[_0x58b100(0x1eb)](null);return f[_0x58b100(0x1c5)](()=>(_0x24d1d3&&_0x165ff2[_0x58b100(0x1af)](_0x24d1d3[_0x58b100(0x259)]())[_0x58b100(0x1f0)](_0x5b5145=>{var _0x58a3a1=_0x58b100;_0x4e6905(_0x5b5145),_0x45e7e9[_0x58a3a1(0x1b0)]=_0x5b5145[_0x58a3a1(0x22f)][_0x58a3a1(0x240)](_0x518bc1=>{_0x4685bc(_0x518bc1);});}),()=>{var _0x335a1d=_0x58b100,_0x4c4323;(_0x4c4323=_0x45e7e9['current'])==null||_0x4c4323[_0x335a1d(0x19a)](),_0x45e7e9[_0x335a1d(0x1b0)]=null;}),[_0x24d1d3,_0x165ff2]),_0x23c052?l[_0x58b100(0x193)](g[_0x58b100(0x1ce)],{'align':_0x58b100(0x1c3),'disabled':_0x3b579b===h[_0x58b100(0x1cf)],'className':_0x58b100(0x222),'overlay':l['jsx'](B,{'status':_0x3b579b,'coordinator':_0x23c052}),'children':l[_0x58b100(0x193)]('button',{'className':g[_0x58b100(0x188)](_0x58b100(0x19c),{'univer-cursor-not-allowed':_0x3b579b===h[_0x58b100(0x1cf)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3b579b!==h[_0x58b100(0x1cf)]}),'type':'button','children':l[_0x58b100(0x193)](P,{'className':_0x58b100(0x191)})})}):null;}function B(_0x44b226){var _0x9b007=_0xf84885;const {status:_0x738e0b,coordinator:_0x58f577}=_0x44b226;switch(_0x738e0b){case h[_0x9b007(0x1cb)]:return l[_0x9b007(0x193)](Y,{'coordinator':_0x58f577});case h[_0x9b007(0x1a4)]:return l[_0x9b007(0x193)](Z,{'coordinator':_0x58f577});case h[_0x9b007(0x220)]:return l['jsx'](J,{'coordinator':_0x58f577});case h['OFFLINE']:return l['jsx'](z,{});case h[_0x9b007(0x1a8)]:return l[_0x9b007(0x193)](K,{'coordinator':_0x58f577});default:return null;}}function Y(_0x7744f7){var _0x377259=_0xf84885;const {coordinator:_0x35b89f}=_0x7744f7;return l[_0x377259(0x1d3)](l[_0x377259(0x24e)],{'children':[l[_0x377259(0x193)](_0x377259(0x1bd),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l['jsx'](g[_0x377259(0x184)],{'onClick':()=>_0x35b89f['tryStartPresenting'](),'children':_0x377259(0x207)})]});}function Z(_0x584dd7){var _0x1ff399=_0xf84885;const {coordinator:_0x4dba4c}=_0x584dd7;return l[_0x1ff399(0x1d3)](l[_0x1ff399(0x24e)],{'children':[l[_0x1ff399(0x193)](_0x1ff399(0x1bd),{'className':_0x1ff399(0x183),'children':_0x1ff399(0x18f)}),l[_0x1ff399(0x193)](g['Button'],{'onClick':()=>_0x4dba4c[_0x1ff399(0x1c2)](),'children':_0x1ff399(0x214)})]});}function J(_0x22138c){var _0x221fb8=_0xf84885;const {coordinator:_0x148fe7}=_0x22138c;return l[_0x221fb8(0x1d3)](l['Fragment'],{'children':[l[_0x221fb8(0x193)](_0x221fb8(0x1bd),{'className':_0x221fb8(0x183),'children':_0x221fb8(0x241)}),l[_0x221fb8(0x193)](g['Button'],{'variant':_0x221fb8(0x1fb),'onClick':()=>_0x148fe7['startFollowing'](),'children':'Start\x20following'})]});}function K(_0x499997){var _0x3d351c=_0xf84885;const {coordinator:_0x1174de}=_0x499997;return l['jsxs'](l[_0x3d351c(0x24e)],{'children':[l[_0x3d351c(0x193)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3d351c(0x25c)}),l['jsx'](g[_0x3d351c(0x184)],{'variant':_0x3d351c(0x1df),'onClick':()=>_0x1174de[_0x3d351c(0x1aa)](),'children':_0x3d351c(0x185)})]});}function z(){return l['jsx'](l['Fragment'],{'children':'You\x27are\x20offline.'});}var Q=Object[_0xf84885(0x19b)],X=(_0x1bc7cf,_0x51d810,_0x106f1e,_0x5681eb)=>{for(var _0x2a135a=_0x5681eb>0x1?void 0x0:_0x5681eb?Q(_0x51d810,_0x106f1e):_0x51d810,_0x4e509b=_0x1bc7cf['length']-0x1,_0x38e9eb;_0x4e509b>=0x0;_0x4e509b--)(_0x38e9eb=_0x1bc7cf[_0x4e509b])&&(_0x2a135a=_0x38e9eb(_0x2a135a)||_0x2a135a);return _0x2a135a;},x=(_0x2bee7d,_0x450830)=>(_0x3f4c6f,_0x1a4feb)=>_0x450830(_0x3f4c6f,_0x1a4feb,_0x2bee7d);exports[_0xf84885(0x254)]=class extends o[_0xf84885(0x1c0)]{constructor(_0x17c157,_0x23f4dd){var _0x57d1c4=_0xf84885;super(),this['_injector']=_0x17c157,this[_0x57d1c4(0x21c)]=_0x23f4dd,this[_0x57d1c4(0x19f)]();}[_0xf84885(0x19f)](){var _0x2b1833=_0xf84885;this[_0x2b1833(0x190)](this[_0x2b1833(0x21c)][_0x2b1833(0x23d)](p[_0x2b1833(0x1ff)][_0x2b1833(0x1b6)],()=>p[_0x2b1833(0x1e1)](A,this[_0x2b1833(0x1c4)])));}},exports['DesktopLiveShareController']=X([x(0x0,o['Inject'](o['Injector'])),x(0x1,p[_0xf84885(0x200)])],exports[_0xf84885(0x254)]);function _0x4667(_0x33dd7f,_0x339d9e){var _0x4ac01f=_0x4ac0();return _0x4667=function(_0x466776,_0x4e7fef){_0x466776=_0x466776-0x181;var _0x392ffd=_0x4ac01f[_0x466776];return _0x392ffd;},_0x4667(_0x33dd7f,_0x339d9e);}const ee=_0xf84885(0x257),L={};var te=Object[_0xf84885(0x19b)],ie=(_0x40e4d9,_0x1c4bda,_0x86134,_0x1e9a66)=>{var _0x2db270=_0xf84885;for(var _0xccc074=_0x1e9a66>0x1?void 0x0:_0x1e9a66?te(_0x1c4bda,_0x86134):_0x1c4bda,_0x44297b=_0x40e4d9[_0x2db270(0x238)]-0x1,_0x37996c;_0x44297b>=0x0;_0x44297b--)(_0x37996c=_0x40e4d9[_0x44297b])&&(_0xccc074=_0x37996c(_0xccc074)||_0xccc074);return _0xccc074;},ne=(_0x4c221a,_0x1e42cb)=>(_0x385f9a,_0x1043f0)=>_0x1e42cb(_0x385f9a,_0x1043f0,_0x4c221a);let E=class extends o[_0xf84885(0x1c0)]{constructor(_0x155558){var _0x1f00a2=_0xf84885;super(),this[_0x1f00a2(0x23e)]=_0x155558,this['_init']();}[_0xf84885(0x203)](){var _0x138c6c=_0xf84885;[D[_0x138c6c(0x225)]['id'],D[_0x138c6c(0x1d7)]['id'],C[_0x138c6c(0x1bf)]['id']]['forEach'](_0x3b1840=>{var _0x212cab=_0x138c6c;this[_0x212cab(0x190)](this[_0x212cab(0x23e)][_0x212cab(0x249)](_0x3b1840));});}};E=ie([ne(0x0,o[_0xf84885(0x25d)](O))],E);var re=Object[_0xf84885(0x23a)],se=Object[_0xf84885(0x19b)],oe=(_0x26a6b4,_0x258a45,_0x531035)=>_0x258a45 in _0x26a6b4?re(_0x26a6b4,_0x258a45,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x531035}):_0x26a6b4[_0x258a45]=_0x531035,ae=(_0x1818e7,_0x1c93a1,_0x327dbf,_0x503a8f)=>{var _0x61d33f=_0xf84885;for(var _0x10c774=_0x503a8f>0x1?void 0x0:_0x503a8f?se(_0x1c93a1,_0x327dbf):_0x1c93a1,_0x464489=_0x1818e7[_0x61d33f(0x238)]-0x1,_0x15f29b;_0x464489>=0x0;_0x464489--)(_0x15f29b=_0x1818e7[_0x464489])&&(_0x10c774=_0x15f29b(_0x10c774)||_0x10c774);return _0x10c774;},N=(_0x24b90b,_0x18af8e)=>(_0x22daa6,_0x1cba3a)=>_0x18af8e(_0x22daa6,_0x1cba3a,_0x24b90b),T=(_0x4ac954,_0x22045c,_0x5164ad)=>oe(_0x4ac954,typeof _0x22045c!=_0xf84885(0x201)?_0x22045c+'':_0x22045c,_0x5164ad);const le='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o[_0xf84885(0x194)]{constructor(_0xfbb4b5=L,_0x15d5f4,_0x499a4a){var _0x44ef37=_0xf84885;super(),this[_0x44ef37(0x255)]=_0xfbb4b5,this['_injector']=_0x15d5f4,this[_0x44ef37(0x219)]=_0x499a4a;const {..._0x37fd4f}=o[_0x44ef37(0x202)]({},L,this['_config']);this[_0x44ef37(0x219)][_0x44ef37(0x228)](ee,_0x37fd4f);}[_0xf84885(0x18b)](){var _0x148d76=_0xf84885;o[_0x148d76(0x25a)](this[_0x148d76(0x1c4)],o[_0x148d76(0x189)]([[O],[exports[_0x148d76(0x23b)]],[E],[exports[_0x148d76(0x254)]]],this[_0x148d76(0x255)][_0x148d76(0x1dc)])),o[_0x148d76(0x1bc)](this[_0x148d76(0x1c4)],[[E]]);}[_0xf84885(0x21b)](){var _0x1226f8=_0xf84885;o[_0x1226f8(0x1bc)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0xf84885(0x1d4)],'type',o[_0xf84885(0x1a1)][_0xf84885(0x247)]),T(exports['UniverLiveSharePlugin'],_0xf84885(0x224),le),exports[_0xf84885(0x1d4)]=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),N(0x1,o[_0xf84885(0x25d)](o[_0xf84885(0x1a5)])),N(0x2,o[_0xf84885(0x22b)])],exports[_0xf84885(0x1d4)]),exports['LiveShare']=A,exports[_0xf84885(0x232)]=O,exports[_0xf84885(0x1ae)]=h;
1
+ 'use strict';var _0x4cad56=_0x4f81;(function(_0x55c773,_0x253025){var _0x12c747=_0x4f81,_0x4dae27=_0x55c773();while(!![]){try{var _0x51ea96=parseInt(_0x12c747(0x17b))/0x1+-parseInt(_0x12c747(0x175))/0x2*(parseInt(_0x12c747(0x1d0))/0x3)+parseInt(_0x12c747(0x1b7))/0x4*(-parseInt(_0x12c747(0x1a8))/0x5)+-parseInt(_0x12c747(0x15c))/0x6*(parseInt(_0x12c747(0x16e))/0x7)+-parseInt(_0x12c747(0x1d1))/0x8+-parseInt(_0x12c747(0x194))/0x9*(parseInt(_0x12c747(0x18d))/0xa)+parseInt(_0x12c747(0x1ee))/0xb;if(_0x51ea96===_0x253025)break;else _0x4dae27['push'](_0x4dae27['shift']());}catch(_0x28ee5f){_0x4dae27['push'](_0x4dae27['shift']());}}}(_0x388d,0xc5c77));var U=Object[_0x4cad56(0x135)],F=(_0x730b36,_0x5318d5,_0x3ed644)=>_0x5318d5 in _0x730b36?U(_0x730b36,_0x5318d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ed644}):_0x730b36[_0x5318d5]=_0x3ed644,v=(_0x127eaa,_0x3fe184,_0x8f896e)=>F(_0x127eaa,typeof _0x3fe184!='symbol'?_0x3fe184+'':_0x3fe184,_0x8f896e);Object[_0x4cad56(0x135)](exports,Symbol[_0x4cad56(0x15a)],{'value':_0x4cad56(0x138)});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 _0x2e3f9a=_0x4cad56;return u=Object[_0x2e3f9a(0x1d5)]||function(_0xde892f){var _0x2e9721=_0x2e3f9a;for(var _0x112be6,_0x10c81c=0x1,_0xdd989f=arguments[_0x2e9721(0x1b9)];_0x10c81c<_0xdd989f;_0x10c81c++){_0x112be6=arguments[_0x10c81c];for(var _0x32503f in _0x112be6)Object['prototype']['hasOwnProperty'][_0x2e9721(0x1b3)](_0x112be6,_0x32503f)&&(_0xde892f[_0x32503f]=_0x112be6[_0x32503f]);}return _0xde892f;},u[_0x2e3f9a(0x158)](this,arguments);},$=function(_0x506ef2,_0x2b0b46){var _0x3be119=_0x4cad56,_0x7065db={};for(var _0x19c153 in _0x506ef2)Object[_0x3be119(0x206)][_0x3be119(0x140)]['call'](_0x506ef2,_0x19c153)&&_0x2b0b46[_0x3be119(0x153)](_0x19c153)<0x0&&(_0x7065db[_0x19c153]=_0x506ef2[_0x19c153]);if(_0x506ef2!=null&&typeof Object['getOwnPropertySymbols']==_0x3be119(0x15f)){for(var _0x5660aa=0x0,_0x19c153=Object['getOwnPropertySymbols'](_0x506ef2);_0x5660aa<_0x19c153[_0x3be119(0x1b9)];_0x5660aa++)_0x2b0b46[_0x3be119(0x153)](_0x19c153[_0x5660aa])<0x0&&Object[_0x3be119(0x206)][_0x3be119(0x155)][_0x3be119(0x1b3)](_0x506ef2,_0x19c153[_0x5660aa])&&(_0x7065db[_0x19c153[_0x5660aa]]=_0x506ef2[_0x19c153[_0x5660aa]]);}return _0x7065db;},j=f[_0x4cad56(0x179)](function(_0x47a7b5,_0x20f7d4){var _0x1c06fb=_0x4cad56,_0x39ab70=_0x47a7b5[_0x1c06fb(0x13a)],_0x1cf591=_0x47a7b5['id'],_0x27a80f=_0x47a7b5['className'],_0xe38798=_0x47a7b5['extend'],_0xf0d8b=$(_0x47a7b5,[_0x1c06fb(0x13a),'id',_0x1c06fb(0x182),_0x1c06fb(0x19d)]),_0x5226d2=_0x1c06fb(0x1ba)[_0x1c06fb(0x1ad)](_0x1cf591,'\x20')[_0x1c06fb(0x1ad)](_0x27a80f||'')['trim'](),_0x26ac69=f[_0x1c06fb(0x203)]('_'['concat'](k()));return y(_0x39ab70,''[_0x1c06fb(0x1ad)](_0x1cf591),{'defIds':_0x39ab70['defIds'],'idSuffix':_0x26ac69['current']},u({'ref':_0x20f7d4,'className':_0x5226d2},_0xf0d8b),_0xe38798);});function y(_0xc63aec,_0x48bcfe,_0x21bda1,_0x5bc73f,_0x59d5cd){var _0x254f5b=_0x4cad56;return f[_0x254f5b(0x150)](_0xc63aec[_0x254f5b(0x1d6)],u(u({'key':_0x48bcfe},H(_0xc63aec,_0x21bda1,_0x59d5cd)),_0x5bc73f),(V(_0xc63aec,_0x21bda1)['children']||[])[_0x254f5b(0x177)](function(_0x1a5389,_0x42a696){var _0x45ff0f=_0x254f5b;return y(_0x1a5389,''[_0x45ff0f(0x1ad)](_0x48bcfe,'-')[_0x45ff0f(0x1ad)](_0xc63aec[_0x45ff0f(0x1d6)],'-')[_0x45ff0f(0x1ad)](_0x42a696),_0x21bda1,void 0x0,_0x59d5cd);}));}function H(_0x183696,_0x16ad57,_0x55edc2){var _0x48c6cf=_0x4cad56,_0x322328=u({},_0x183696[_0x48c6cf(0x15b)]);_0x55edc2!=null&&_0x55edc2[_0x48c6cf(0x13e)]&&_0x322328['fill']===_0x48c6cf(0x13e)&&(_0x322328['fill']=_0x55edc2[_0x48c6cf(0x13e)]),_0x183696[_0x48c6cf(0x1d6)]==='mask'&&_0x322328['id']&&(_0x322328['id']=_0x322328['id']+_0x16ad57['idSuffix']),Object['entries'](_0x322328)[_0x48c6cf(0x205)](function(_0x24d979){var _0x3f5072=_0x48c6cf,_0x34335d=_0x24d979[0x0],_0x432d0b=_0x24d979[0x1];_0x34335d===_0x3f5072(0x1f0)&&typeof _0x432d0b==_0x3f5072(0x1bf)&&(_0x322328[_0x34335d]=_0x432d0b['replace'](/url\(#(.*)\)/,_0x3f5072(0x1a7)[_0x3f5072(0x1ad)](_0x16ad57[_0x3f5072(0x1c9)],')')));});var _0x57fc67=_0x16ad57[_0x48c6cf(0x1b1)];return!_0x57fc67||_0x57fc67['length']===0x0||(_0x183696[_0x48c6cf(0x1d6)]===_0x48c6cf(0x13f)&&_0x322328[_0x48c6cf(0x16f)]&&(_0x322328[_0x48c6cf(0x16f)]=_0x322328['xlink:href']+_0x16ad57[_0x48c6cf(0x1c9)]),Object[_0x48c6cf(0x1e1)](_0x322328)[_0x48c6cf(0x205)](function(_0x59cb4a){var _0x12e19f=_0x48c6cf,_0x5bd37e=_0x59cb4a[0x0],_0x126f82=_0x59cb4a[0x1];typeof _0x126f82==_0x12e19f(0x1bf)&&(_0x322328[_0x5bd37e]=_0x126f82[_0x12e19f(0x187)](/url\(#(.*)\)/,_0x12e19f(0x1a7)[_0x12e19f(0x1ad)](_0x16ad57[_0x12e19f(0x1c9)],')')));})),_0x322328;}function V(_0x5b12b9,_0x42c6c6){var _0x5aa5eb=_0x4cad56,_0x242d01,_0x1f9e0d=_0x42c6c6[_0x5aa5eb(0x1b1)];return!_0x1f9e0d||_0x1f9e0d[_0x5aa5eb(0x1b9)]===0x0?_0x5b12b9:_0x5b12b9[_0x5aa5eb(0x1d6)]==='defs'&&(!((_0x242d01=_0x5b12b9[_0x5aa5eb(0x139)])===null||_0x242d01===void 0x0)&&_0x242d01[_0x5aa5eb(0x1b9)])?u(u({},_0x5b12b9),{'children':_0x5b12b9[_0x5aa5eb(0x139)]['map'](function(_0x2c773b){var _0x4aa04a=_0x5aa5eb;return typeof _0x2c773b[_0x4aa04a(0x15b)]['id']==_0x4aa04a(0x1bf)&&_0x1f9e0d&&_0x1f9e0d[_0x4aa04a(0x176)](_0x2c773b[_0x4aa04a(0x15b)]['id'])?u(u({},_0x2c773b),{'attrs':u(u({},_0x2c773b[_0x4aa04a(0x15b)]),{'id':_0x2c773b['attrs']['id']+_0x42c6c6[_0x4aa04a(0x1c9)]})}):_0x2c773b;})}):_0x5b12b9;}function k(){var _0x16dc8f=_0x4cad56;return Math['random']()['toString'](0x24)[_0x16dc8f(0x18e)](0x2,0x8);}j[_0x4cad56(0x17f)]=_0x4cad56(0x1fe);var M={'tag':_0x4cad56(0x167),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4cad56(0x1f1),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x4cad56(0x163)}},{'tag':'path','attrs':{'fill':_0x4cad56(0x1dc),'d':_0x4cad56(0x159),'fillRule':'evenodd','clipRule':_0x4cad56(0x211)}}]},P=f['forwardRef'](function(_0x32ab6d,_0x1010df){var _0x1c8d8f=_0x4cad56;return f[_0x1c8d8f(0x150)](j,Object[_0x1c8d8f(0x1d5)]({},_0x32ab6d,{'id':'live-share-icon','ref':_0x1010df,'icon':M}));});P[_0x4cad56(0x17f)]=_0x4cad56(0x142);class O extends o[_0x4cad56(0x161)]{constructor(){var _0x1307e8=_0x4cad56;super(...arguments),v(this,_0x1307e8(0x1aa),new Set()),v(this,_0x1307e8(0x1c5),new Set());}[_0x4cad56(0x15d)](_0xc441df){var _0x32c00e=_0x4cad56;return this[_0x32c00e(0x1aa)][_0x32c00e(0x174)](_0xc441df),o[_0x32c00e(0x157)](()=>this['_sharedOperations'][_0x32c00e(0x18b)](_0xc441df));}[_0x4cad56(0x16b)](_0x108fad){var _0x40027b=_0x4cad56;return this[_0x40027b(0x1c5)][_0x40027b(0x174)](_0x108fad),o[_0x40027b(0x157)](()=>this[_0x40027b(0x1c5)]['delete'](_0x108fad));}[_0x4cad56(0x1d3)](_0x47f82e){var _0x54e63a=_0x4cad56;return this[_0x54e63a(0x1aa)]['has'](_0x47f82e);}[_0x4cad56(0x192)](_0x3495bb){var _0x2f60b8=_0x4cad56;return Array[_0x2f60b8(0x1e5)](this[_0x2f60b8(0x1c5)])[_0x2f60b8(0x177)](_0x3d4ff6=>_0x3d4ff6(_0x3495bb));}}var q=Object[_0x4cad56(0x1b6)],R=(_0x5a73ec,_0x341893,_0x223749,_0x56fb45)=>{var _0x32b015=_0x4cad56;for(var _0x27766d=_0x56fb45>0x1?void 0x0:_0x56fb45?q(_0x341893,_0x223749):_0x341893,_0x15bae=_0x5a73ec[_0x32b015(0x1b9)]-0x1,_0x3591cd;_0x15bae>=0x0;_0x15bae--)(_0x3591cd=_0x5a73ec[_0x15bae])&&(_0x27766d=_0x3591cd(_0x27766d)||_0x27766d);return _0x27766d;},S=(_0x1c0c52,_0x178c66)=>(_0x4caa7c,_0x36bf93)=>_0x178c66(_0x4caa7c,_0x36bf93,_0x1c0c52);exports[_0x4cad56(0x154)]=class extends o['RxDisposable']{constructor(_0x4f373d,_0x1621cc,_0x2984c6){var _0x53e0ff=_0x4cad56;super(),v(this,_0x53e0ff(0x1a3),new Map()),(this[_0x53e0ff(0x1fb)]=_0x4f373d,this['_injector']=_0x1621cc,this['_collabSessionService']=_0x2984c6,this[_0x53e0ff(0x171)]());}async[_0x4cad56(0x1e3)](_0x23a7ea){var _0xcb8418=_0x4cad56;return this['_entities'][_0xcb8418(0x1c4)](_0x23a7ea)||await this[_0xcb8418(0x1e4)](_0x23a7ea),this[_0xcb8418(0x1a3)][_0xcb8418(0x1ec)](_0x23a7ea);}['_init'](){var _0x4b5f4f=_0x4cad56;this[_0x4b5f4f(0x1fb)][_0x4b5f4f(0x14d)](o[_0x4b5f4f(0x170)]['UNIVER_SHEET'])[_0x4b5f4f(0x184)](b[_0x4b5f4f(0x20c)](this['dispose$']))[_0x4b5f4f(0x146)](async _0x1a29cf=>{var _0x295a96=_0x4b5f4f;const _0x2720da=_0x1a29cf[_0x295a96(0x19e)]();this[_0x295a96(0x1a3)][_0x295a96(0x1c4)](_0x2720da)||this[_0x295a96(0x1e4)](_0x2720da);}),this[_0x4b5f4f(0x1fb)][_0x4b5f4f(0x1de)](o[_0x4b5f4f(0x170)][_0x4b5f4f(0x143)])[_0x4b5f4f(0x184)](b[_0x4b5f4f(0x20c)](this[_0x4b5f4f(0x1db)]))['subscribe'](_0x4cffe0=>{var _0x51c2c5=_0x4b5f4f;const _0x14de0f=_0x4cffe0[_0x51c2c5(0x19e)](),_0x58f02b=this['_entities'][_0x51c2c5(0x1ec)](_0x14de0f);_0x58f02b==null||_0x58f02b['dispose']();});}async[_0x4cad56(0x1e4)](_0x1a7dd8){var _0x3cca80=_0x4cad56;const _0x52b252=await this[_0x3cca80(0x1d7)][_0x3cca80(0x149)](_0x1a7dd8),_0x478b43=this[_0x3cca80(0x208)][_0x3cca80(0x18f)](exports[_0x3cca80(0x1a5)],_0x1a7dd8,_0x52b252);return _0x478b43['init'](),this[_0x3cca80(0x1a3)][_0x3cca80(0x14c)](_0x1a7dd8,_0x478b43),_0x478b43;}},exports[_0x4cad56(0x154)]=R([S(0x0,o[_0x4cad56(0x1f8)]),S(0x1,o[_0x4cad56(0x166)](o[_0x4cad56(0x168)])),S(0x2,o['Inject'](m[_0x4cad56(0x19f)]))],exports[_0x4cad56(0x154)]);var h=(_0x4a274b=>(_0x4a274b['OFFLINE']=_0x4cad56(0x1b0),_0x4a274b[_0x4cad56(0x1e2)]='idle',_0x4a274b[_0x4cad56(0x152)]=_0x4cad56(0x20f),_0x4a274b[_0x4cad56(0x1cb)]=_0x4cad56(0x1eb),_0x4a274b[_0x4cad56(0x18c)]=_0x4cad56(0x1bd),_0x4a274b))(h||{});const W=_0x4cad56(0x198),G=0xc8;exports['LiveShareCoordinator']=class extends o[_0x4cad56(0x212)]{constructor(_0x4b6443,_0x34253f,_0x53028d,_0xf211de,_0x248aad){var _0xee45cb=_0x4cad56;super(),v(this,'_status$',new w[(_0xee45cb(0x172))]('idle')),v(this,'status$',this[_0xee45cb(0x156)][_0xee45cb(0x202)]()),v(this,_0xee45cb(0x171),!0x1),v(this,'_commandDisposable',null),v(this,'_presenter',null),(this[_0xee45cb(0x20d)]=_0x4b6443,this[_0xee45cb(0x189)]=_0x34253f,this['_configService']=_0x53028d,this[_0xee45cb(0x1cd)]=_0xf211de,this[_0xee45cb(0x196)]=_0x248aad);}get[_0x4cad56(0x1c3)](){var _0x17296e=_0x4cad56;return this[_0x17296e(0x156)]['getValue']();}[_0x4cad56(0x185)](){var _0x236756=_0x4cad56,_0xfb355a;(_0xfb355a=this['_commandDisposable'])==null||_0xfb355a[_0x236756(0x185)](),this['_status$'][_0x236756(0x14e)]('idle'),this[_0x236756(0x156)][_0x236756(0x1ed)]();}[_0x4cad56(0x1d4)](){var _0x3bd701=_0x4cad56;this['_init']||(this['_init']=!0x0,this[_0x3bd701(0x189)][_0x3bd701(0x1f4)]['pipe'](b[_0x3bd701(0x20c)](this[_0x3bd701(0x1db)]))[_0x3bd701(0x146)](_0xeed5d=>{var _0x451237=_0x3bd701;switch(_0xeed5d){case m[_0x451237(0x1a0)][_0x451237(0x147)]:this['_handleOffline']();break;case m[_0x451237(0x1a0)][_0x451237(0x215)]:this[_0x451237(0x180)]();break;}}),this[_0x3bd701(0x189)]['event$']['pipe'](b[_0x3bd701(0x20c)](this['dispose$']))[_0x3bd701(0x146)](_0x1bf06d=>{var _0x3a6c08=_0x3bd701;const {eventID:_0x1fca84}=_0x1bf06d;switch(_0x1fca84){case _[_0x3a6c08(0x199)]['LIVESHARE_NEW_HOST']:this[_0x3a6c08(0x14a)](_0x1bf06d);break;case _[_0x3a6c08(0x199)][_0x3a6c08(0x1cc)]:this[_0x3a6c08(0x148)](_0x1bf06d);break;case _[_0x3a6c08(0x199)][_0x3a6c08(0x1bc)]:this[_0x3a6c08(0x1a9)]();break;case _[_0x3a6c08(0x199)][_0x3a6c08(0x141)]:this['_handleNewChangeSets'](_0x1bf06d);break;}}));}[_0x4cad56(0x16d)](){var _0x3432b4=_0x4cad56;this[_0x3432b4(0x189)]['send']({'eventID':_[_0x3432b4(0x199)][_0x3432b4(0x1d8)],'data':{'unitID':this[_0x3432b4(0x20d)],'userID':this[_0x3432b4(0x189)][_0x3432b4(0x1e9)]()}},this['_unitID']);}[_0x4cad56(0x190)](){var _0x5ecb53=_0x4cad56;this['_status']===_0x5ecb53(0x1bd)&&(this[_0x5ecb53(0x156)][_0x5ecb53(0x14e)](_0x5ecb53(0x20b)),this[_0x5ecb53(0x189)][_0x5ecb53(0x1f6)]({'eventID':_['CollaborationEvent'][_0x5ecb53(0x1bc)],'data':{'unitID':this[_0x5ecb53(0x20d)]}},this[_0x5ecb53(0x20d)]));}[_0x4cad56(0x204)](){var _0x1c04b3=_0x4cad56;this[_0x1c04b3(0x1c3)]===_0x1c04b3(0x1eb)&&(this[_0x1c04b3(0x156)]['next'](_0x1c04b3(0x20f)),this[_0x1c04b3(0x1df)]());}['stopFollowing'](){var _0x4b5439=_0x4cad56;this[_0x4b5439(0x1c3)]==='following'&&this[_0x4b5439(0x193)]();}[_0x4cad56(0x14a)](_0x1e4023){var _0x4d267f=_0x4cad56;const {presenter:_0x3ec866}=_0x1e4023[_0x4d267f(0x1f2)],_0x43c005=this['_collabSession'][_0x4d267f(0x1e9)]();this[_0x4d267f(0x15e)]=_0x3ec866,_0x3ec866===_0x43c005?(this[_0x4d267f(0x193)](),this['_startPresenting']()):this[_0x4d267f(0x1c3)]!==_0x4d267f(0x1eb)&&(this[_0x4d267f(0x20a)](),this['_startFollowing']());}[_0x4cad56(0x1f7)](){var _0x3951a1=_0x4cad56;const _0x5e87e0={'eventID':_['CollaborationEvent'][_0x3951a1(0x16a)]};this['_collabSession'][_0x3951a1(0x1f6)](_0x5e87e0,this[_0x3951a1(0x20d)]);}[_0x4cad56(0x1a9)](){var _0x249502=_0x4cad56;this['_presenter']=null,this['_status']!==_0x249502(0x1bd)&&this[_0x249502(0x1c8)]();}[_0x4cad56(0x1e8)](_0x29b466){var _0x1d465b=_0x4cad56;if(this['_status']==='following'&&this[_0x1d465b(0x15e)]===_0x29b466['data'][_0x1d465b(0x1d9)]){const _0x426eed=_['parseProtocolChangeset'](_0x29b466[_0x1d465b(0x1f2)])[_0x1d465b(0x188)]['reverse']()[_0x1d465b(0x1b4)](_0x15af8d=>_0x15af8d['id']===C[_0x1d465b(0x145)]['id']);if(_0x426eed){const _0x122efe=_0x426eed['params'][_0x1d465b(0x162)],_0xe1d994=_0x426eed[_0x1d465b(0x13c)][_0x1d465b(0x1ef)]['id'];setTimeout(()=>{var _0x11bc68=_0x1d465b;this[_0x11bc68(0x196)]['executeCommand'](C[_0x11bc68(0x160)]['id'],{'unitId':_0x122efe,'subUnitId':_0xe1d994},{'fromCollab':!0x0});});}}}[_0x4cad56(0x178)](){var _0x56e26e=_0x4cad56;this[_0x56e26e(0x156)]['next'](_0x56e26e(0x1bd));const _0x5cf3f7=new Map(),_0x377382=this[_0x56e26e(0x200)]=new o[(_0x56e26e(0x1c2))]();_0x377382[_0x56e26e(0x174)](o[_0x56e26e(0x157)](()=>{var _0x352256=_0x56e26e;_0x5cf3f7[_0x352256(0x205)](_0x23bee7=>_0x23bee7['complete']()),_0x5cf3f7[_0x352256(0x213)]();})),_0x377382[_0x56e26e(0x174)](this[_0x56e26e(0x196)]['onCommandExecuted'](_0x50521f=>{var _0x26bde3=_0x56e26e,_0x11e028;if(_0x50521f['type']!==o[_0x26bde3(0x1f3)][_0x26bde3(0x13b)]||!this[_0x26bde3(0x1cd)][_0x26bde3(0x1d3)](_0x50521f['id']))return;const {id:_0x433057}=_0x50521f;let _0x1a226f;_0x5cf3f7[_0x26bde3(0x1c4)](_0x433057)?_0x1a226f=_0x5cf3f7[_0x26bde3(0x1ec)](_0x433057):(_0x1a226f=new w[(_0x26bde3(0x1e6))](),_0x5cf3f7[_0x26bde3(0x14c)](_0x433057,_0x1a226f),_0x1a226f[_0x26bde3(0x184)](b[_0x26bde3(0x207)]((_0x11e028=this[_0x26bde3(0x1b5)][_0x26bde3(0x1a1)](W))!=null?_0x11e028:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x26bde3(0x146)](_0x26829c=>{var _0x13f05f=_0x26bde3;this[_0x13f05f(0x189)][_0x13f05f(0x1f6)]({'eventID':_[_0x13f05f(0x199)][_0x13f05f(0x1cc)],'data':{'unitID':this[_0x13f05f(0x20d)],'operations':{[_0x26829c['id']]:{'id':_0x26829c['id'],'params':JSON[_0x13f05f(0x169)](_0x26829c['params'])}}}},this[_0x13f05f(0x20d)]);})),_0x1a226f['next'](_0x50521f);})),this[_0x56e26e(0x1cd)][_0x56e26e(0x192)](this[_0x56e26e(0x20d)])[_0x56e26e(0x205)](_0x480dbd=>this[_0x56e26e(0x189)][_0x56e26e(0x1f6)]({'eventID':_[_0x56e26e(0x199)][_0x56e26e(0x1cc)],'data':{'unitID':this[_0x56e26e(0x20d)],'operations':{[_0x480dbd['id']]:{'id':_0x480dbd['id'],'params':JSON[_0x56e26e(0x169)](_0x480dbd[_0x56e26e(0x13c)])}}}},this[_0x56e26e(0x20d)]));}[_0x4cad56(0x20a)](){var _0x469d3b=_0x4cad56,_0x18e674;this['_status$'][_0x469d3b(0x14e)](_0x469d3b(0x20b)),(_0x18e674=this[_0x469d3b(0x200)])==null||_0x18e674[_0x469d3b(0x185)](),this[_0x469d3b(0x200)]=null;}['_startFollowing'](){var _0x1a88a1=_0x4cad56,_0xee6d68;(_0xee6d68=this['_commandDisposable'])==null||_0xee6d68['dispose'](),this[_0x1a88a1(0x156)][_0x1a88a1(0x14e)](_0x1a88a1(0x20f));}[_0x4cad56(0x1c8)](){var _0x5af4aa=_0x4cad56,_0x24f68b;this[_0x5af4aa(0x156)]['next'](_0x5af4aa(0x20b)),(_0x24f68b=this['_commandDisposable'])==null||_0x24f68b[_0x5af4aa(0x185)](),this[_0x5af4aa(0x200)]=null;}[_0x4cad56(0x193)](){var _0x1a9f2f=_0x4cad56,_0x27e373;this[_0x1a9f2f(0x156)][_0x1a9f2f(0x14e)]('not-following'),(_0x27e373=this['_commandDisposable'])==null||_0x27e373[_0x1a9f2f(0x185)]();}[_0x4cad56(0x148)](_0x32631a){var _0xa363bc=_0x4cad56;if([_0xa363bc(0x1bd),_0xa363bc(0x1eb),'offline'][_0xa363bc(0x176)](this[_0xa363bc(0x1c3)])||!_0x32631a[_0xa363bc(0x1f2)]['presenter']||_0x32631a[_0xa363bc(0x1f2)][_0xa363bc(0x19a)]===this[_0xa363bc(0x189)]['getMemberID']())return;this['_status']==='idle'&&this[_0xa363bc(0x1df)]();const _0x17cc0a=_0x32631a[_0xa363bc(0x1f2)][_0xa363bc(0x1a6)];Object['values'](_0x17cc0a)[_0xa363bc(0x205)](_0x58de70=>{var _0x19c82c=_0xa363bc;this[_0x19c82c(0x196)][_0x19c82c(0x1fc)](_0x58de70['id'],_0x58de70[_0x19c82c(0x13c)]?JSON[_0x19c82c(0x1ac)](_0x58de70['params']):null,{'fromCollab':!0x0});});}[_0x4cad56(0x173)](){var _0x3a96ea=_0x4cad56,_0x43d4cd;this['_status$'][_0x3a96ea(0x14e)](_0x3a96ea(0x1b0)),(_0x43d4cd=this[_0x3a96ea(0x200)])==null||_0x43d4cd['dispose']();}[_0x4cad56(0x180)](){var _0xbc5a68=_0x4cad56;this[_0xbc5a68(0x156)][_0xbc5a68(0x14e)](_0xbc5a68(0x20b)),this[_0xbc5a68(0x1f7)]();}},exports[_0x4cad56(0x1a5)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x4cad56(0x166)](O)),S(0x4,o[_0x4cad56(0x1a4)])],exports[_0x4cad56(0x1a5)]);function A(){var _0xe3ace2=_0x4cad56;const _0x19582b=p[_0xe3ace2(0x1af)](exports[_0xe3ace2(0x154)]),_0x440f70=p[_0xe3ace2(0x1af)](o[_0xe3ace2(0x1f8)]),_0x5c94e2=p[_0xe3ace2(0x1e0)](()=>_0x440f70[_0xe3ace2(0x1ca)](o[_0xe3ace2(0x170)][_0xe3ace2(0x143)]),void 0x0,!0x1,[]),[_0x305fcd,_0x42241f]=f[_0xe3ace2(0x183)](null),[_0x168a1a,_0x4e7f42]=f[_0xe3ace2(0x183)](h[_0xe3ace2(0x1e2)]),_0xc6ff9=f[_0xe3ace2(0x203)](null);return f[_0xe3ace2(0x14f)](()=>(_0x5c94e2&&_0x19582b[_0xe3ace2(0x1e3)](_0x5c94e2[_0xe3ace2(0x19e)]())[_0xe3ace2(0x1c1)](_0x4c6d5d=>{var _0x1f973d=_0xe3ace2;_0x42241f(_0x4c6d5d),_0xc6ff9[_0x1f973d(0x19b)]=_0x4c6d5d[_0x1f973d(0x1a2)][_0x1f973d(0x146)](_0x44ae34=>{_0x4e7f42(_0x44ae34);});}),()=>{var _0x234c3f=_0xe3ace2,_0x263612;(_0x263612=_0xc6ff9['current'])==null||_0x263612[_0x234c3f(0x1c7)](),_0xc6ff9[_0x234c3f(0x19b)]=null;}),[_0x5c94e2,_0x19582b]),_0x305fcd?l['jsx'](g[_0xe3ace2(0x136)],{'align':'end','disabled':_0x168a1a===h[_0xe3ace2(0x147)],'className':_0xe3ace2(0x1f5),'overlay':l[_0xe3ace2(0x1b8)](B,{'status':_0x168a1a,'coordinator':_0x305fcd}),'children':l[_0xe3ace2(0x1b8)](_0xe3ace2(0x1fa),{'className':g[_0xe3ace2(0x1e7)](_0xe3ace2(0x17a),{'univer-cursor-not-allowed':_0x168a1a===h[_0xe3ace2(0x147)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x168a1a!==h[_0xe3ace2(0x147)]}),'type':_0xe3ace2(0x1fa),'children':l[_0xe3ace2(0x1b8)](P,{'className':_0xe3ace2(0x210)})})}):null;}function B(_0xbbdf42){var _0xd1604e=_0x4cad56;const {status:_0x1c33b1,coordinator:_0x514bcc}=_0xbbdf42;switch(_0x1c33b1){case h['IDLE']:return l[_0xd1604e(0x1b8)](Y,{'coordinator':_0x514bcc});case h[_0xd1604e(0x152)]:return l['jsx'](Z,{'coordinator':_0x514bcc});case h[_0xd1604e(0x1cb)]:return l[_0xd1604e(0x1b8)](J,{'coordinator':_0x514bcc});case h[_0xd1604e(0x147)]:return l[_0xd1604e(0x1b8)](z,{});case h['PRESENTING']:return l[_0xd1604e(0x1b8)](K,{'coordinator':_0x514bcc});default:return null;}}function _0x388d(){var _0x1bf33b=['NEW_CHANGESETS','LiveShareIcon','UNIVER_SHEET','pluginName','InsertSheetMutation','subscribe','OFFLINE','_handleOperation','requireSession','_handleNewHost','You\x27re\x20following\x20the\x20presenter','set','getTypeOfUnitAdded$','next','useEffect','createElement','disposeWithMe','FOLLOWING','indexOf','LiveShareController','propertyIsEnumerable','_status$','toDisposable','apply','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','toStringTag','attrs','6WwxLWF','registerSharedOperation','_presenter','function','SetWorksheetActiveOperation','Disposable','unitId','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','Plugin','_uiPartsService','Inject','svg','Injector','stringify','LIVESHARE_FETCH_OPERATIONS','registerInitialStateReporter','_config','tryStartPresenting','2413397IVwTyz','xlink:href','UniverInstanceType','_init','BehaviorSubject','_handleOffline','add','22108VxiSlJ','includes','map','_startPresenting','forwardRef','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','307397XakedU','symbol','setConfig','onRendered','displayName','_handleOnline','UNIVER_LIVE_SHARE_PLUGIN','className','useState','pipe','dispose','Fragment','replace','mutations','_collabSession','You\x27are\x20offline.','delete','PRESENTING','280iaARNt','substring','createInstance','stopPresenting','mergeOverrideWithDependencies','getInitialStates','_stopFollowing','204093HgaLJn','UNIVER_UNKNOWN','_commandService','DependentOn','SAME_OPERATION_SHARE_INTERVAL','CollaborationEvent','presenter','current','registerComponent','extend','getUnitId','CollaborationSessionService','SessionStatus','getConfig','status$','_entities','ICommandService','LiveShareCoordinator','operations','url(#$1','1915LbfHxJ','_handleTerminate','_sharedOperations','override','parse','concat','Stop\x20presenting','useDependency','offline','defIds','Present\x20this\x20document','call','find','_configService','getOwnPropertyDescriptor','2956NxSyeN','jsx','length','univerjs-icon\x20univerjs-icon-','UniverLiveSharePlugin','LIVESHARE_TERMINATE','presenting','SetZoomRatioOperation','string','You\x27re\x20not\x20following\x20the\x20presenter','then','DisposableCollection','_status','has','_reporters','You\x27re\x20presenting\x20the\x20document','unsubscribe','_beIdle','idSuffix','getCurrentTypeOfUnit$','NOT_FOLLOWING','LIVESHARE_OPERATION','_liveShareService','univer-mb-3\x20univer-w-full\x20univer-text-sm','merge','354xnrnmR','7005272hoSbrq','BuiltInUIPart','shouldShareOperation','init','assign','tag','_collabSessionService','LIVESHARE_REQUEST_HOST','memberID','IUIPartsService','dispose$','currentColor','Stop\x20following','getTypeOfUnitDisposed$','_startFollowing','useObservable','entries','IDLE','getLiveShareCoordinator','_startLiveShareCoordinator','from','Subject','clsx','_handleNewChangeSets','getMemberID','type','not-following','get','complete','43400511kysQbC','sheet','mask','none','data','CommandType','sessionStatus$','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','send','_fetchOperations','IUniverInstanceService','touchDependencies','button','_univerInstanceService','executeCommand','connectInjector','UniverIcon','div','_commandDisposable','Button','asObservable','useRef','startFollowing','forEach','prototype','throttleTime','_injector','DesktopLiveShareController','_stopPresenting','idle','takeUntil','_unitID','jsxs','following','univer-size-4','evenodd','RxDisposable','clear','LiveShare','ONLINE','live-share.config','defineProperty','Dropdown','UniverCollaborationClientPlugin','Module','children','icon','OPERATION','params','IConfigService','colorChannel1','use','hasOwnProperty'];_0x388d=function(){return _0x1bf33b;};return _0x388d();}function Y(_0x10235a){var _0x3103e9=_0x4cad56;const {coordinator:_0x54215}=_0x10235a;return l[_0x3103e9(0x20e)](l['Fragment'],{'children':[l[_0x3103e9(0x1b8)](_0x3103e9(0x1ff),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3103e9(0x1b2)}),l[_0x3103e9(0x1b8)](g[_0x3103e9(0x201)],{'onClick':()=>_0x54215[_0x3103e9(0x16d)](),'children':'Start'})]});}function Z(_0x3bc030){var _0x34ac48=_0x4cad56;const {coordinator:_0x209c94}=_0x3bc030;return l[_0x34ac48(0x20e)](l[_0x34ac48(0x186)],{'children':[l['jsx'](_0x34ac48(0x1ff),{'className':_0x34ac48(0x1ce),'children':_0x34ac48(0x14b)}),l['jsx'](g[_0x34ac48(0x201)],{'onClick':()=>_0x209c94['stopFollowing'](),'children':_0x34ac48(0x1dd)})]});}function J(_0x4e5c81){var _0x5c96d6=_0x4cad56;const {coordinator:_0x1b8174}=_0x4e5c81;return l[_0x5c96d6(0x20e)](l['Fragment'],{'children':[l[_0x5c96d6(0x1b8)]('div',{'className':_0x5c96d6(0x1ce),'children':_0x5c96d6(0x1c0)}),l[_0x5c96d6(0x1b8)](g[_0x5c96d6(0x201)],{'variant':'text','onClick':()=>_0x1b8174['startFollowing'](),'children':'Start\x20following'})]});}function K(_0xa2017a){var _0x3ed251=_0x4cad56;const {coordinator:_0x472c35}=_0xa2017a;return l[_0x3ed251(0x20e)](l[_0x3ed251(0x186)],{'children':[l[_0x3ed251(0x1b8)](_0x3ed251(0x1ff),{'className':_0x3ed251(0x1ce),'children':_0x3ed251(0x1c6)}),l[_0x3ed251(0x1b8)](g[_0x3ed251(0x201)],{'variant':'default','onClick':()=>_0x472c35[_0x3ed251(0x190)](),'children':_0x3ed251(0x1ae)})]});}function z(){var _0x2783b4=_0x4cad56;return l['jsx'](l[_0x2783b4(0x186)],{'children':_0x2783b4(0x18a)});}var Q=Object[_0x4cad56(0x1b6)],X=(_0x5a8dc6,_0x18782d,_0x1f5447,_0x365b25)=>{var _0x32915a=_0x4cad56;for(var _0x351c2d=_0x365b25>0x1?void 0x0:_0x365b25?Q(_0x18782d,_0x1f5447):_0x18782d,_0x3f613b=_0x5a8dc6[_0x32915a(0x1b9)]-0x1,_0x836227;_0x3f613b>=0x0;_0x3f613b--)(_0x836227=_0x5a8dc6[_0x3f613b])&&(_0x351c2d=_0x836227(_0x351c2d)||_0x351c2d);return _0x351c2d;},x=(_0x1a235a,_0xef54d6)=>(_0x3521c8,_0x2e93e9)=>_0xef54d6(_0x3521c8,_0x2e93e9,_0x1a235a);exports[_0x4cad56(0x209)]=class extends o[_0x4cad56(0x161)]{constructor(_0x3dd8a8,_0x503851){var _0x4ac970=_0x4cad56;super(),this[_0x4ac970(0x208)]=_0x3dd8a8,this[_0x4ac970(0x165)]=_0x503851,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x172910=_0x4cad56;this['disposeWithMe'](this['_uiPartsService'][_0x172910(0x19c)](p[_0x172910(0x1d2)]['HEADER_MENU'],()=>p[_0x172910(0x1fd)](A,this[_0x172910(0x208)])));}},exports['DesktopLiveShareController']=X([x(0x0,o[_0x4cad56(0x166)](o[_0x4cad56(0x168)])),x(0x1,p[_0x4cad56(0x1da)])],exports['DesktopLiveShareController']);const ee=_0x4cad56(0x134),L={};var te=Object[_0x4cad56(0x1b6)],ie=(_0x566742,_0x466625,_0x59b28a,_0x16055f)=>{var _0x4cd5a4=_0x4cad56;for(var _0x3a3b92=_0x16055f>0x1?void 0x0:_0x16055f?te(_0x466625,_0x59b28a):_0x466625,_0x19c60c=_0x566742[_0x4cd5a4(0x1b9)]-0x1,_0x244b0e;_0x19c60c>=0x0;_0x19c60c--)(_0x244b0e=_0x566742[_0x19c60c])&&(_0x3a3b92=_0x244b0e(_0x3a3b92)||_0x3a3b92);return _0x3a3b92;},ne=(_0x11def4,_0x507747)=>(_0x25c616,_0x3b13cd)=>_0x507747(_0x25c616,_0x3b13cd,_0x11def4);let E=class extends o[_0x4cad56(0x161)]{constructor(_0x4d169b){var _0xbd40cb=_0x4cad56;super(),this['_liveShareService']=_0x4d169b,this[_0xbd40cb(0x171)]();}[_0x4cad56(0x171)](){var _0x2162ce=_0x4cad56;[D[_0x2162ce(0x1be)]['id'],D['SetScrollOperation']['id'],C[_0x2162ce(0x160)]['id']]['forEach'](_0x340041=>{var _0x551068=_0x2162ce;this[_0x551068(0x151)](this['_liveShareService'][_0x551068(0x15d)](_0x340041));});}};function _0x4f81(_0x123051,_0x278136){var _0x388d47=_0x388d();return _0x4f81=function(_0x4f814c,_0x430e34){_0x4f814c=_0x4f814c-0x134;var _0x2e27a6=_0x388d47[_0x4f814c];return _0x2e27a6;},_0x4f81(_0x123051,_0x278136);}E=ie([ne(0x0,o[_0x4cad56(0x166)](O))],E);var re=Object[_0x4cad56(0x135)],se=Object['getOwnPropertyDescriptor'],oe=(_0x1da4eb,_0x462cc3,_0x309106)=>_0x462cc3 in _0x1da4eb?re(_0x1da4eb,_0x462cc3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x309106}):_0x1da4eb[_0x462cc3]=_0x309106,ae=(_0x21af5f,_0xf3a4d4,_0x109ca5,_0x9254ce)=>{var _0x296113=_0x4cad56;for(var _0x30e22b=_0x9254ce>0x1?void 0x0:_0x9254ce?se(_0xf3a4d4,_0x109ca5):_0xf3a4d4,_0x318beb=_0x21af5f[_0x296113(0x1b9)]-0x1,_0x4db1cf;_0x318beb>=0x0;_0x318beb--)(_0x4db1cf=_0x21af5f[_0x318beb])&&(_0x30e22b=_0x4db1cf(_0x30e22b)||_0x30e22b);return _0x30e22b;},N=(_0x59b9c7,_0xe12731)=>(_0x5fde29,_0x272107)=>_0xe12731(_0x5fde29,_0x272107,_0x59b9c7),T=(_0x53ac43,_0x1228f8,_0xe92e34)=>oe(_0x53ac43,typeof _0x1228f8!=_0x4cad56(0x17c)?_0x1228f8+'':_0x1228f8,_0xe92e34);const le=_0x4cad56(0x181);exports[_0x4cad56(0x1bb)]=class extends o[_0x4cad56(0x164)]{constructor(_0x43cdde=L,_0x51ed0a,_0x57b798){var _0x409f26=_0x4cad56;super(),this[_0x409f26(0x16c)]=_0x43cdde,this[_0x409f26(0x208)]=_0x51ed0a,this[_0x409f26(0x1b5)]=_0x57b798;const {..._0x547471}=o[_0x409f26(0x1cf)]({},L,this['_config']);this[_0x409f26(0x1b5)][_0x409f26(0x17d)](ee,_0x547471);}['onStarting'](){var _0x45f222=_0x4cad56;o['registerDependencies'](this[_0x45f222(0x208)],o[_0x45f222(0x191)]([[O],[exports[_0x45f222(0x154)]],[E],[exports[_0x45f222(0x209)]]],this[_0x45f222(0x16c)][_0x45f222(0x1ab)])),o[_0x45f222(0x1f9)](this[_0x45f222(0x208)],[[E]]);}[_0x4cad56(0x17e)](){var _0x5c37ff=_0x4cad56;o[_0x5c37ff(0x1f9)](this[_0x5c37ff(0x208)],[[exports[_0x5c37ff(0x209)]]]);}},T(exports['UniverLiveSharePlugin'],_0x4cad56(0x1ea),o['UniverInstanceType'][_0x4cad56(0x195)]),T(exports[_0x4cad56(0x1bb)],_0x4cad56(0x144),le),exports[_0x4cad56(0x1bb)]=ae([o[_0x4cad56(0x197)](m[_0x4cad56(0x137)]),N(0x1,o[_0x4cad56(0x166)](o[_0x4cad56(0x168)])),N(0x2,o[_0x4cad56(0x13d)])],exports[_0x4cad56(0x1bb)]),exports[_0x4cad56(0x214)]=A,exports['LiveShareService']=O,exports['LiveShareStatus']=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x36f017=_0xde17;(function(_0xcac48b,_0x172d45){var _0x289873=_0xde17,_0x41bf4f=_0xcac48b();while(!![]){try{var _0x338b47=parseInt(_0x289873(0x22e))/0x1+parseInt(_0x289873(0x26b))/0x2*(-parseInt(_0x289873(0x1df))/0x3)+parseInt(_0x289873(0x1da))/0x4+-parseInt(_0x289873(0x1bd))/0x5+parseInt(_0x289873(0x1d0))/0x6*(-parseInt(_0x289873(0x245))/0x7)+parseInt(_0x289873(0x240))/0x8*(parseInt(_0x289873(0x1c7))/0x9)+-parseInt(_0x289873(0x1dc))/0xa;if(_0x338b47===_0x172d45)break;else _0x41bf4f['push'](_0x41bf4f['shift']());}catch(_0x1d81f4){_0x41bf4f['push'](_0x41bf4f['shift']());}}}(_0x237f,0xac0db));var q=Object[_0x36f017(0x1d5)],z=(_0x4bf46c,_0xb1213e,_0x2aff38)=>_0xb1213e in _0x4bf46c?q(_0x4bf46c,_0xb1213e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2aff38}):_0x4bf46c[_0xb1213e]=_0x2aff38,d=(_0x38a0e8,_0x299499,_0x9e8ed5)=>z(_0x38a0e8,typeof _0x299499!=_0x36f017(0x1f6)?_0x299499+'':_0x299499,_0x9e8ed5);import{Disposable as _0x1921d4,toDisposable as _0x363c38,IUniverInstanceService as _0x3f3fb4,Inject as _0x3b82a6,Injector as _0x11e997,IConfigService as _0x2ade0c,ICommandService as _0x5b1a08,RxDisposable as _0xdfd2c9,UniverInstanceType as _0x3488c4,DisposableCollection as _0x432129,CommandType as _0x55283a,DependentOn as _0x3c9495,Plugin as _0x1c42d2,merge as _0x3fdcd0,registerDependencies as _0x29e73f,mergeOverrideWithDependencies as _0x5e60eb,touchDependencies as _0x184d91}from'@univerjs/core';import{useDependency as _0x57a76c,useObservable as _0x28c88f,IUIPartsService as _0x3c6a2e,BuiltInUIPart as _0x4db87a,connectInjector as _0x518bf9}from'@univerjs/ui';import{jsx as _0x36e838,jsxs as _0x5ddc08,Fragment as _0x10e248}from'react/jsx-runtime';import{Dropdown as _0x1eee21,clsx as _0x28accc,Button as _0x564e8c}from'@univerjs/design';import{forwardRef as _0x49863e,useRef as _0xeec105,createElement as _0xb83fdd,useState as _0x49d219,useEffect as _0x2e558b}from'react';import{CollaborationEvent as _0x33da1b,parseProtocolChangeset as _0x35401c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x28485c,SessionStatus as _0x593165,UniverCollaborationClientPlugin as _0x2e766a}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xdd3b8d,SetWorksheetActiveOperation as _0x541ec2}from'@univerjs/sheets';import{BehaviorSubject as _0x34eac5,Subject as _0x9375f3}from'rxjs';import{takeUntil as _0xc1bed8,throttleTime as _0x4b7434}from'rxjs/operators';import{SetZoomRatioOperation as _0x17d0cb,SetScrollOperation as _0x43d03b}from'@univerjs/sheets-ui';var c=function(){var _0x1adb03=_0x36f017;return c=Object[_0x1adb03(0x1d2)]||function(_0x2e490c){var _0xb6bce9=_0x1adb03;for(var _0x5ed74c,_0x545095=0x1,_0x2cdad7=arguments['length'];_0x545095<_0x2cdad7;_0x545095++){_0x5ed74c=arguments[_0x545095];for(var _0x227c8f in _0x5ed74c)Object[_0xb6bce9(0x20b)]['hasOwnProperty'][_0xb6bce9(0x232)](_0x5ed74c,_0x227c8f)&&(_0x2e490c[_0x227c8f]=_0x5ed74c[_0x227c8f]);}return _0x2e490c;},c['apply'](this,arguments);},Oe=function(_0x285852,_0x4be77d){var _0x43b9d7=_0x36f017,_0x4cf2a8={};for(var _0x5d3a62 in _0x285852)Object[_0x43b9d7(0x20b)][_0x43b9d7(0x1fb)][_0x43b9d7(0x232)](_0x285852,_0x5d3a62)&&_0x4be77d['indexOf'](_0x5d3a62)<0x0&&(_0x4cf2a8[_0x5d3a62]=_0x285852[_0x5d3a62]);if(_0x285852!=null&&typeof Object[_0x43b9d7(0x210)]==_0x43b9d7(0x1cf)){for(var _0x58bcf8=0x0,_0x5d3a62=Object[_0x43b9d7(0x210)](_0x285852);_0x58bcf8<_0x5d3a62[_0x43b9d7(0x211)];_0x58bcf8++)_0x4be77d[_0x43b9d7(0x200)](_0x5d3a62[_0x58bcf8])<0x0&&Object[_0x43b9d7(0x20b)][_0x43b9d7(0x258)][_0x43b9d7(0x232)](_0x285852,_0x5d3a62[_0x58bcf8])&&(_0x4cf2a8[_0x5d3a62[_0x58bcf8]]=_0x285852[_0x5d3a62[_0x58bcf8]]);}return _0x4cf2a8;},W=_0x49863e(function(_0x140002,_0x29b62c){var _0x1f316a=_0x36f017,_0x3f0948=_0x140002['icon'],_0x16ffee=_0x140002['id'],_0x3be45d=_0x140002[_0x1f316a(0x231)],_0x4ce05d=_0x140002[_0x1f316a(0x1eb)],_0x19e407=Oe(_0x140002,[_0x1f316a(0x1e4),'id',_0x1f316a(0x231),_0x1f316a(0x1eb)]),_0x5d6c39=_0x1f316a(0x25c)[_0x1f316a(0x1b9)](_0x16ffee,'\x20')[_0x1f316a(0x1b9)](_0x3be45d||'')[_0x1f316a(0x25f)](),_0x6daf92=_0xeec105('_'['concat'](Ne()));return Y(_0x3f0948,''['concat'](_0x16ffee),{'defIds':_0x3f0948['defIds'],'idSuffix':_0x6daf92['current']},c({'ref':_0x29b62c,'className':_0x5d6c39},_0x19e407),_0x4ce05d);});function Y(_0x3b16cf,_0x1bbdb3,_0x5844dd,_0x476478,_0x4c9543){var _0x250ff0=_0x36f017;return _0xb83fdd(_0x3b16cf['tag'],c(c({'key':_0x1bbdb3},Ee(_0x3b16cf,_0x5844dd,_0x4c9543)),_0x476478),(we(_0x3b16cf,_0x5844dd)[_0x250ff0(0x264)]||[])['map'](function(_0x128f71,_0x5a417d){var _0x345d98=_0x250ff0;return Y(_0x128f71,''[_0x345d98(0x1b9)](_0x1bbdb3,'-')[_0x345d98(0x1b9)](_0x3b16cf['tag'],'-')['concat'](_0x5a417d),_0x5844dd,void 0x0,_0x4c9543);}));}function Ee(_0x3aa95f,_0x56f229,_0x48e478){var _0x3484e3=_0x36f017,_0x16e0d6=c({},_0x3aa95f[_0x3484e3(0x218)]);_0x48e478!=null&&_0x48e478[_0x3484e3(0x23c)]&&_0x16e0d6['fill']===_0x3484e3(0x23c)&&(_0x16e0d6[_0x3484e3(0x255)]=_0x48e478['colorChannel1']),_0x3aa95f[_0x3484e3(0x1cb)]===_0x3484e3(0x252)&&_0x16e0d6['id']&&(_0x16e0d6['id']=_0x16e0d6['id']+_0x56f229[_0x3484e3(0x249)]),Object[_0x3484e3(0x1c8)](_0x16e0d6)[_0x3484e3(0x22a)](function(_0x3f28e3){var _0x38e353=_0x3484e3,_0x3ccf23=_0x3f28e3[0x0],_0x15e967=_0x3f28e3[0x1];_0x3ccf23===_0x38e353(0x252)&&typeof _0x15e967==_0x38e353(0x241)&&(_0x16e0d6[_0x3ccf23]=_0x15e967[_0x38e353(0x217)](/url\(#(.*)\)/,'url(#$1'[_0x38e353(0x1b9)](_0x56f229[_0x38e353(0x249)],')')));});var _0x1e2cf7=_0x56f229[_0x3484e3(0x1c5)];return!_0x1e2cf7||_0x1e2cf7['length']===0x0||(_0x3aa95f[_0x3484e3(0x1cb)]===_0x3484e3(0x259)&&_0x16e0d6[_0x3484e3(0x205)]&&(_0x16e0d6[_0x3484e3(0x205)]=_0x16e0d6[_0x3484e3(0x205)]+_0x56f229[_0x3484e3(0x249)]),Object[_0x3484e3(0x1c8)](_0x16e0d6)[_0x3484e3(0x22a)](function(_0x3f7d54){var _0x1686a0=_0x3484e3,_0x5a02e4=_0x3f7d54[0x0],_0x4c247b=_0x3f7d54[0x1];typeof _0x4c247b==_0x1686a0(0x241)&&(_0x16e0d6[_0x5a02e4]=_0x4c247b['replace'](/url\(#(.*)\)/,_0x1686a0(0x1c3)['concat'](_0x56f229['idSuffix'],')')));})),_0x16e0d6;}function we(_0x16b127,_0x1522ad){var _0x252079=_0x36f017,_0x4d6756,_0x6111ef=_0x1522ad['defIds'];return!_0x6111ef||_0x6111ef[_0x252079(0x211)]===0x0?_0x16b127:_0x16b127[_0x252079(0x1cb)]===_0x252079(0x221)&&(!((_0x4d6756=_0x16b127['children'])===null||_0x4d6756===void 0x0)&&_0x4d6756['length'])?c(c({},_0x16b127),{'children':_0x16b127[_0x252079(0x264)][_0x252079(0x1d9)](function(_0x52287a){var _0x2b7973=_0x252079;return typeof _0x52287a[_0x2b7973(0x218)]['id']=='string'&&_0x6111ef&&_0x6111ef[_0x2b7973(0x21e)](_0x52287a[_0x2b7973(0x218)]['id'])?c(c({},_0x52287a),{'attrs':c(c({},_0x52287a[_0x2b7973(0x218)]),{'id':_0x52287a[_0x2b7973(0x218)]['id']+_0x1522ad[_0x2b7973(0x249)]})}):_0x52287a;})}):_0x16b127;}function Ne(){var _0x5e6acc=_0x36f017;return Math['random']()[_0x5e6acc(0x247)](0x24)[_0x5e6acc(0x1c1)](0x2,0x8);}W[_0x36f017(0x1d1)]='UniverIcon';var Ce={'tag':_0x36f017(0x254),'attrs':{'xmlns':_0x36f017(0x1bf),'fill':_0x36f017(0x1cc),'viewBox':_0x36f017(0x1f5),'width':_0x36f017(0x1b7),'height':_0x36f017(0x1b7)},'children':[{'tag':_0x36f017(0x251),'attrs':{'fill':_0x36f017(0x1d3),'d':_0x36f017(0x203)}},{'tag':'path','attrs':{'fill':_0x36f017(0x1d3),'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':_0x36f017(0x268),'clipRule':'evenodd'}}]},B=_0x49863e(function(_0xd3acb0,_0x3c2a13){var _0x12eb01=_0x36f017;return _0xb83fdd(W,Object[_0x12eb01(0x1d2)]({},_0xd3acb0,{'id':'live-share-icon','ref':_0x3c2a13,'icon':Ce}));});B['displayName']=_0x36f017(0x213);class L extends _0x1921d4{constructor(){var _0x472517=_0x36f017;super(...arguments),d(this,_0x472517(0x25a),new Set()),d(this,_0x472517(0x269),new Set());}[_0x36f017(0x1ba)](_0x2df393){var _0x2f8243=_0x36f017;return this[_0x2f8243(0x25a)][_0x2f8243(0x23d)](_0x2df393),_0x363c38(()=>this[_0x2f8243(0x25a)][_0x2f8243(0x1bb)](_0x2df393));}[_0x36f017(0x23f)](_0x195f86){var _0x2420a9=_0x36f017;return this['_reporters'][_0x2420a9(0x23d)](_0x195f86),_0x363c38(()=>this[_0x2420a9(0x269)][_0x2420a9(0x1bb)](_0x195f86));}[_0x36f017(0x23b)](_0x51df3a){var _0x3e410b=_0x36f017;return this[_0x3e410b(0x25a)]['has'](_0x51df3a);}[_0x36f017(0x1cd)](_0xf827d9){var _0x16202c=_0x36f017;return Array[_0x16202c(0x21f)](this[_0x16202c(0x269)])[_0x16202c(0x1d9)](_0x444bb9=>_0x444bb9(_0xf827d9));}}var De=Object[_0x36f017(0x20c)],Z=(_0xa9bc40,_0x298351,_0x249e54,_0x26d69e)=>{var _0x538142=_0x36f017;for(var _0x4af965=_0x26d69e>0x1?void 0x0:_0x26d69e?De(_0x298351,_0x249e54):_0x298351,_0x3adbe4=_0xa9bc40[_0x538142(0x211)]-0x1,_0x55b2c9;_0x3adbe4>=0x0;_0x3adbe4--)(_0x55b2c9=_0xa9bc40[_0x3adbe4])&&(_0x4af965=_0x55b2c9(_0x4af965)||_0x4af965);return _0x4af965;},f=(_0x316b48,_0x16d6cd)=>(_0x165a57,_0x6e667d)=>_0x16d6cd(_0x165a57,_0x6e667d,_0x316b48);function _0x237f(){var _0x52d027=['presenter','xlink:href','ONLINE','type','PRESENTING','IDLE','button','prototype','getOwnPropertyDescriptor','Stop\x20following','_handleNewChangeSets','init','getOwnPropertySymbols','length','_beIdle','LiveShareIcon','onCommandExecuted','live-share.config','_unitID','replace','attrs','default','_presenter','OPERATION','_liveShareService','unitId','includes','from','setConfig','defs','end','has','executeCommand','stringify','parse','_univerInstanceService','dispose','onRendered','forEach','params','override','You\x27are\x20offline.','590919cKpoQM','send','_commandService','className','call','_fetchOperations','asObservable','You\x27re\x20following\x20the\x20presenter','NOT_FOLLOWING','_commandDisposable','Stop\x20presenting','You\x27re\x20not\x20following\x20the\x20presenter','div','shouldShareOperation','colorChannel1','add','idle','registerInitialStateReporter','4400ByQvPR','string','NEW_CHANGESETS','_handleTerminate','get','177457OwesLY','_status','toString','pluginName','idSuffix','following','complete','offline','stopPresenting','dispose$','_stopFollowing','LIVESHARE_TERMINATE','path','mask','status$','svg','fill','You\x27re\x20presenting\x20the\x20document','_stopPresenting','propertyIsEnumerable','use','_sharedOperations','_collabSession','univerjs-icon\x20univerjs-icon-','LIVESHARE_OPERATION','presenting','trim','subscribe','next','OFFLINE','mutations','children','_handleOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','values','evenodd','_reporters','disposeWithMe','134pknacZ','1em','event$','concat','registerSharedOperation','delete','not-following','684730RbGSvS','text','http://www.w3.org/2000/svg','current','substring','clear','url(#$1','getTypeOfUnitAdded$','defIds','_uiPartsService','20250hKPpCu','entries','_status$','registerComponent','tag','none','getInitialStates','then','function','114LfraSY','displayName','assign','currentColor','getTypeOfUnitDisposed$','defineProperty','_injector','_configService','LIVESHARE_FETCH_OPERATIONS','map','3522632lkOwvs','Start','6600540VmDRYr','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','set','32493wDhdvG','getUnitId','UNIVER_SHEET','pipe','onStarting','icon','Present\x20this\x20document','tryStartPresenting','sheet','data','_startFollowing','getMemberID','extend','_handleNewHost','getLiveShareCoordinator','_handleOnline','LIVESHARE_NEW_HOST','_mountLiveShare','_entities','memberID','LIVESHARE_REQUEST_HOST','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','0\x200\x2017\x2017','symbol','univer-size-4','_startLiveShareCoordinator','_config','startFollowing','hasOwnProperty','SAME_OPERATION_SHARE_INTERVAL','UNIVER_UNKNOWN','_init','FOLLOWING','indexOf','HEADER_MENU','getCurrentTypeOfUnit$','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'];_0x237f=function(){return _0x52d027;};return _0x237f();}let m=class extends _0xdfd2c9{constructor(_0x54836d,_0x56e546,_0x306dbe){var _0x14ed57=_0x36f017;super(),d(this,_0x14ed57(0x1f1),new Map()),(this[_0x14ed57(0x227)]=_0x54836d,this['_injector']=_0x56e546,this['_collabSessionService']=_0x306dbe,this[_0x14ed57(0x1fe)]());}async[_0x36f017(0x1ed)](_0x4c8b1a){var _0x2b5ff3=_0x36f017;return this[_0x2b5ff3(0x1f1)][_0x2b5ff3(0x223)](_0x4c8b1a)||await this[_0x2b5ff3(0x1f8)](_0x4c8b1a),this[_0x2b5ff3(0x1f1)][_0x2b5ff3(0x244)](_0x4c8b1a);}[_0x36f017(0x1fe)](){var _0x4d075c=_0x36f017;this[_0x4d075c(0x227)][_0x4d075c(0x1c4)](_0x3488c4['UNIVER_SHEET'])[_0x4d075c(0x1e2)](_0xc1bed8(this[_0x4d075c(0x24e)]))[_0x4d075c(0x260)](async _0x19b151=>{var _0x4ecd04=_0x4d075c;const _0x5b2b43=_0x19b151[_0x4ecd04(0x1e0)]();this[_0x4ecd04(0x1f1)][_0x4ecd04(0x223)](_0x5b2b43)||this[_0x4ecd04(0x1f8)](_0x5b2b43);}),this['_univerInstanceService'][_0x4d075c(0x1d4)](_0x3488c4[_0x4d075c(0x1e1)])[_0x4d075c(0x1e2)](_0xc1bed8(this[_0x4d075c(0x24e)]))[_0x4d075c(0x260)](_0x22d5f7=>{var _0x58a968=_0x4d075c;const _0x169255=_0x22d5f7[_0x58a968(0x1e0)](),_0x3fe5bd=this[_0x58a968(0x1f1)][_0x58a968(0x244)](_0x169255);_0x3fe5bd==null||_0x3fe5bd[_0x58a968(0x228)]();});}async[_0x36f017(0x1f8)](_0xdb4d1b){var _0x1d039c=_0x36f017;const _0x17fcda=await this['_collabSessionService']['requireSession'](_0xdb4d1b),_0x11cf26=this[_0x1d039c(0x1d6)]['createInstance'](C,_0xdb4d1b,_0x17fcda);return _0x11cf26[_0x1d039c(0x20f)](),this[_0x1d039c(0x1f1)][_0x1d039c(0x1de)](_0xdb4d1b,_0x11cf26),_0x11cf26;}};m=Z([f(0x0,_0x3f3fb4),f(0x1,_0x3b82a6(_0x11e997)),f(0x2,_0x3b82a6(_0x28485c))],m);var h=(_0x26ccc0=>(_0x26ccc0[_0x36f017(0x262)]='offline',_0x26ccc0[_0x36f017(0x209)]=_0x36f017(0x23e),_0x26ccc0[_0x36f017(0x1ff)]=_0x36f017(0x24a),_0x26ccc0[_0x36f017(0x236)]=_0x36f017(0x1bc),_0x26ccc0['PRESENTING']=_0x36f017(0x25e),_0x26ccc0))(h||{});const xe=_0x36f017(0x1fc),Le=0xc8;let C=class extends _0xdfd2c9{constructor(_0x4a4d2e,_0x2c1aa0,_0x1dfa73,_0x325da8,_0x14c4f4){var _0x1e1eb5=_0x36f017;super(),d(this,_0x1e1eb5(0x1c9),new _0x34eac5(_0x1e1eb5(0x23e))),d(this,_0x1e1eb5(0x253),this[_0x1e1eb5(0x1c9)][_0x1e1eb5(0x234)]()),d(this,'_init',!0x1),d(this,_0x1e1eb5(0x237),null),d(this,_0x1e1eb5(0x21a),null),(this['_unitID']=_0x4a4d2e,this[_0x1e1eb5(0x25b)]=_0x2c1aa0,this[_0x1e1eb5(0x1d7)]=_0x1dfa73,this[_0x1e1eb5(0x21c)]=_0x325da8,this[_0x1e1eb5(0x230)]=_0x14c4f4);}get[_0x36f017(0x246)](){return this['_status$']['getValue']();}['dispose'](){var _0x27192a=_0x36f017,_0x4c5a36;(_0x4c5a36=this[_0x27192a(0x237)])==null||_0x4c5a36[_0x27192a(0x228)](),this[_0x27192a(0x1c9)][_0x27192a(0x261)](_0x27192a(0x23e)),this[_0x27192a(0x1c9)][_0x27192a(0x24b)]();}[_0x36f017(0x20f)](){var _0x1e040b=_0x36f017;this[_0x1e040b(0x1fe)]||(this['_init']=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0xc1bed8(this[_0x1e040b(0x24e)]))[_0x1e040b(0x260)](_0x4f4e4c=>{var _0x443822=_0x1e040b;switch(_0x4f4e4c){case _0x593165[_0x443822(0x262)]:this['_handleOffline']();break;case _0x593165[_0x443822(0x206)]:this[_0x443822(0x1ee)]();break;}}),this['_collabSession'][_0x1e040b(0x1b8)][_0x1e040b(0x1e2)](_0xc1bed8(this[_0x1e040b(0x24e)]))['subscribe'](_0x177773=>{var _0x42f088=_0x1e040b;const {eventID:_0x4323e4}=_0x177773;switch(_0x4323e4){case _0x33da1b[_0x42f088(0x1ef)]:this[_0x42f088(0x1ec)](_0x177773);break;case _0x33da1b[_0x42f088(0x25d)]:this['_handleOperation'](_0x177773);break;case _0x33da1b[_0x42f088(0x250)]:this[_0x42f088(0x243)]();break;case _0x33da1b[_0x42f088(0x242)]:this[_0x42f088(0x20e)](_0x177773);break;}}));}['tryStartPresenting'](){var _0x2471d2=_0x36f017;this[_0x2471d2(0x25b)][_0x2471d2(0x22f)]({'eventID':_0x33da1b[_0x2471d2(0x1f3)],'data':{'unitID':this[_0x2471d2(0x216)],'userID':this[_0x2471d2(0x25b)][_0x2471d2(0x1ea)]()}},this[_0x2471d2(0x216)]);}[_0x36f017(0x24d)](){var _0x1238ee=_0x36f017;this[_0x1238ee(0x246)]===_0x1238ee(0x25e)&&(this['_status$'][_0x1238ee(0x261)](_0x1238ee(0x23e)),this[_0x1238ee(0x25b)][_0x1238ee(0x22f)]({'eventID':_0x33da1b['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1238ee(0x216)]}},this[_0x1238ee(0x216)]));}[_0x36f017(0x1fa)](){var _0x46066f=_0x36f017;this[_0x46066f(0x246)]===_0x46066f(0x1bc)&&(this[_0x46066f(0x1c9)]['next']('following'),this['_startFollowing']());}['stopFollowing'](){var _0x493f87=_0x36f017;this[_0x493f87(0x246)]===_0x493f87(0x24a)&&this[_0x493f87(0x24f)]();}['_handleNewHost'](_0x1d1022){var _0x21e974=_0x36f017;const {presenter:_0x588e21}=_0x1d1022[_0x21e974(0x1e8)],_0x3114ad=this[_0x21e974(0x25b)][_0x21e974(0x1ea)]();this[_0x21e974(0x21a)]=_0x588e21,_0x588e21===_0x3114ad?(this[_0x21e974(0x24f)](),this['_startPresenting']()):this[_0x21e974(0x246)]!=='not-following'&&(this[_0x21e974(0x257)](),this['_startFollowing']());}['_fetchOperations'](){var _0xb4962b=_0x36f017;const _0x4eb71a={'eventID':_0x33da1b[_0xb4962b(0x1d8)]};this[_0xb4962b(0x25b)][_0xb4962b(0x22f)](_0x4eb71a,this[_0xb4962b(0x216)]);}[_0x36f017(0x243)](){var _0x1a391e=_0x36f017;this['_presenter']=null,this['_status']!==_0x1a391e(0x25e)&&this[_0x1a391e(0x212)]();}[_0x36f017(0x20e)](_0x33a4c8){var _0x2b0abf=_0x36f017;if(this[_0x2b0abf(0x246)]===_0x2b0abf(0x24a)&&this[_0x2b0abf(0x21a)]===_0x33a4c8['data'][_0x2b0abf(0x1f2)]){const _0x147bd7=_0x35401c(_0x33a4c8[_0x2b0abf(0x1e8)])[_0x2b0abf(0x263)]['reverse']()['find'](_0x4e130c=>_0x4e130c['id']===_0xdd3b8d['id']);if(_0x147bd7){const _0x159c1a=_0x147bd7['params'][_0x2b0abf(0x21d)],_0xd73be7=_0x147bd7[_0x2b0abf(0x22b)][_0x2b0abf(0x1e7)]['id'];setTimeout(()=>{var _0x4abac8=_0x2b0abf;this[_0x4abac8(0x230)][_0x4abac8(0x224)](_0x541ec2['id'],{'unitId':_0x159c1a,'subUnitId':_0xd73be7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x5f92b2=_0x36f017;this[_0x5f92b2(0x1c9)]['next'](_0x5f92b2(0x25e));const _0x7c7424=new Map(),_0x587980=this[_0x5f92b2(0x237)]=new _0x432129();_0x587980['add'](_0x363c38(()=>{var _0x9e7eda=_0x5f92b2;_0x7c7424['forEach'](_0x38f085=>_0x38f085[_0x9e7eda(0x24b)]()),_0x7c7424[_0x9e7eda(0x1c2)]();})),_0x587980['add'](this[_0x5f92b2(0x230)][_0x5f92b2(0x214)](_0x273122=>{var _0x421400=_0x5f92b2,_0x1bf6e5;if(_0x273122[_0x421400(0x207)]!==_0x55283a[_0x421400(0x21b)]||!this[_0x421400(0x21c)][_0x421400(0x23b)](_0x273122['id']))return;const {id:_0x1dbf36}=_0x273122;let _0x1867d9;_0x7c7424[_0x421400(0x223)](_0x1dbf36)?_0x1867d9=_0x7c7424[_0x421400(0x244)](_0x1dbf36):(_0x1867d9=new _0x9375f3(),_0x7c7424[_0x421400(0x1de)](_0x1dbf36,_0x1867d9),_0x1867d9['pipe'](_0x4b7434((_0x1bf6e5=this['_configService']['getConfig'](xe))!=null?_0x1bf6e5:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x421400(0x260)](_0x2796c9=>{var _0x2fa187=_0x421400;this[_0x2fa187(0x25b)][_0x2fa187(0x22f)]({'eventID':_0x33da1b['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2fa187(0x216)],'operations':{[_0x2796c9['id']]:{'id':_0x2796c9['id'],'params':JSON[_0x2fa187(0x225)](_0x2796c9['params'])}}}},this[_0x2fa187(0x216)]);})),_0x1867d9[_0x421400(0x261)](_0x273122);})),this['_liveShareService'][_0x5f92b2(0x1cd)](this['_unitID'])[_0x5f92b2(0x22a)](_0x5c3aa3=>this[_0x5f92b2(0x25b)]['send']({'eventID':_0x33da1b[_0x5f92b2(0x25d)],'data':{'unitID':this[_0x5f92b2(0x216)],'operations':{[_0x5c3aa3['id']]:{'id':_0x5c3aa3['id'],'params':JSON[_0x5f92b2(0x225)](_0x5c3aa3[_0x5f92b2(0x22b)])}}}},this[_0x5f92b2(0x216)]));}[_0x36f017(0x257)](){var _0x538659=_0x36f017,_0x338918;this[_0x538659(0x1c9)][_0x538659(0x261)](_0x538659(0x23e)),(_0x338918=this[_0x538659(0x237)])==null||_0x338918[_0x538659(0x228)](),this['_commandDisposable']=null;}[_0x36f017(0x1e9)](){var _0x318f74=_0x36f017,_0x520939;(_0x520939=this['_commandDisposable'])==null||_0x520939[_0x318f74(0x228)](),this[_0x318f74(0x1c9)][_0x318f74(0x261)](_0x318f74(0x24a));}[_0x36f017(0x212)](){var _0x4088bd=_0x36f017,_0x307b78;this[_0x4088bd(0x1c9)][_0x4088bd(0x261)](_0x4088bd(0x23e)),(_0x307b78=this[_0x4088bd(0x237)])==null||_0x307b78[_0x4088bd(0x228)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x5dd3ee=_0x36f017,_0x3062cd;this['_status$'][_0x5dd3ee(0x261)]('not-following'),(_0x3062cd=this[_0x5dd3ee(0x237)])==null||_0x3062cd[_0x5dd3ee(0x228)]();}[_0x36f017(0x265)](_0x229996){var _0x8aa3b=_0x36f017;if([_0x8aa3b(0x25e),_0x8aa3b(0x1bc),_0x8aa3b(0x24c)][_0x8aa3b(0x21e)](this[_0x8aa3b(0x246)])||!_0x229996[_0x8aa3b(0x1e8)][_0x8aa3b(0x204)]||_0x229996['data'][_0x8aa3b(0x204)]===this['_collabSession'][_0x8aa3b(0x1ea)]())return;this['_status']===_0x8aa3b(0x23e)&&this[_0x8aa3b(0x1e9)]();const _0x26b22a=_0x229996['data']['operations'];Object[_0x8aa3b(0x267)](_0x26b22a)[_0x8aa3b(0x22a)](_0x41b2e5=>{var _0x58138c=_0x8aa3b;this[_0x58138c(0x230)][_0x58138c(0x224)](_0x41b2e5['id'],_0x41b2e5['params']?JSON[_0x58138c(0x226)](_0x41b2e5[_0x58138c(0x22b)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x674581=_0x36f017,_0x1c721b;this[_0x674581(0x1c9)]['next'](_0x674581(0x24c)),(_0x1c721b=this[_0x674581(0x237)])==null||_0x1c721b[_0x674581(0x228)]();}[_0x36f017(0x1ee)](){var _0x2e3b5c=_0x36f017;this[_0x2e3b5c(0x1c9)][_0x2e3b5c(0x261)](_0x2e3b5c(0x23e)),this[_0x2e3b5c(0x233)]();}};function _0xde17(_0x321364,_0x57333e){var _0x237f96=_0x237f();return _0xde17=function(_0xde17d,_0xf28e72){_0xde17d=_0xde17d-0x1b7;var _0x4406a2=_0x237f96[_0xde17d];return _0x4406a2;},_0xde17(_0x321364,_0x57333e);}C=Z([f(0x2,_0x2ade0c),f(0x3,_0x3b82a6(L)),f(0x4,_0x5b1a08)],C);function ye(){var _0x49446f=_0x36f017;const _0x7597a9=_0x57a76c(m),_0x3a5aaf=_0x57a76c(_0x3f3fb4),_0x413b7a=_0x28c88f(()=>_0x3a5aaf[_0x49446f(0x202)](_0x3488c4[_0x49446f(0x1e1)]),void 0x0,!0x1,[]),[_0x47c4c7,_0x1922a1]=_0x49d219(null),[_0x15d68f,_0x1e6260]=_0x49d219(h[_0x49446f(0x209)]),_0x1bf422=_0xeec105(null);return _0x2e558b(()=>(_0x413b7a&&_0x7597a9[_0x49446f(0x1ed)](_0x413b7a['getUnitId']())[_0x49446f(0x1ce)](_0x1e8e88=>{var _0x25ecbf=_0x49446f;_0x1922a1(_0x1e8e88),_0x1bf422[_0x25ecbf(0x1c0)]=_0x1e8e88[_0x25ecbf(0x253)]['subscribe'](_0x24b5e2=>{_0x1e6260(_0x24b5e2);});}),()=>{var _0xebf658=_0x49446f,_0x30f78b;(_0x30f78b=_0x1bf422[_0xebf658(0x1c0)])==null||_0x30f78b['unsubscribe'](),_0x1bf422[_0xebf658(0x1c0)]=null;}),[_0x413b7a,_0x7597a9]),_0x47c4c7?_0x36e838(_0x1eee21,{'align':_0x49446f(0x222),'disabled':_0x15d68f===h[_0x49446f(0x262)],'className':_0x49446f(0x1dd),'overlay':_0x36e838(Re,{'status':_0x15d68f,'coordinator':_0x47c4c7}),'children':_0x36e838(_0x49446f(0x20a),{'className':_0x28accc(_0x49446f(0x1f4),{'univer-cursor-not-allowed':_0x15d68f===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x15d68f!==h['OFFLINE']}),'type':'button','children':_0x36e838(B,{'className':_0x49446f(0x1f7)})})}):null;}function Re(_0x142e45){var _0x1f880a=_0x36f017;const {status:_0x3626be,coordinator:_0x1fcb92}=_0x142e45;switch(_0x3626be){case h['IDLE']:return _0x36e838(Pe,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x1ff)]:return _0x36e838(Ae,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x236)]:return _0x36e838(Te,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x262)]:return _0x36e838(Fe,{});case h[_0x1f880a(0x208)]:return _0x36e838($e,{'coordinator':_0x1fcb92});default:return null;}}function Pe(_0x4fab17){var _0x49e46f=_0x36f017;const {coordinator:_0x2cdd39}=_0x4fab17;return _0x5ddc08(_0x10e248,{'children':[_0x36e838('div',{'className':_0x49e46f(0x266),'children':_0x49e46f(0x1e5)}),_0x36e838(_0x564e8c,{'onClick':()=>_0x2cdd39[_0x49e46f(0x1e6)](),'children':_0x49e46f(0x1db)})]});}function Ae(_0x89f442){var _0x2170e4=_0x36f017;const {coordinator:_0x48390b}=_0x89f442;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x2170e4(0x23a),{'className':_0x2170e4(0x266),'children':_0x2170e4(0x235)}),_0x36e838(_0x564e8c,{'onClick':()=>_0x48390b['stopFollowing'](),'children':_0x2170e4(0x20d)})]});}function Te(_0x29f184){var _0x2d6a4a=_0x36f017;const {coordinator:_0x1b70a0}=_0x29f184;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x2d6a4a(0x23a),{'className':_0x2d6a4a(0x266),'children':_0x2d6a4a(0x239)}),_0x36e838(_0x564e8c,{'variant':_0x2d6a4a(0x1be),'onClick':()=>_0x1b70a0[_0x2d6a4a(0x1fa)](),'children':'Start\x20following'})]});}function $e(_0x47991e){var _0x4a4bdb=_0x36f017;const {coordinator:_0x1e5ec1}=_0x47991e;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x4a4bdb(0x23a),{'className':_0x4a4bdb(0x266),'children':_0x4a4bdb(0x256)}),_0x36e838(_0x564e8c,{'variant':_0x4a4bdb(0x219),'onClick':()=>_0x1e5ec1[_0x4a4bdb(0x24d)](),'children':_0x4a4bdb(0x238)})]});}function Fe(){var _0x5685cf=_0x36f017;return _0x36e838(_0x10e248,{'children':_0x5685cf(0x22d)});}var He=Object[_0x36f017(0x20c)],je=(_0x564edb,_0x4c8839,_0x2db3c0,_0x5bff78)=>{for(var _0x4491a2=_0x5bff78>0x1?void 0x0:_0x5bff78?He(_0x4c8839,_0x2db3c0):_0x4c8839,_0x30d74a=_0x564edb['length']-0x1,_0x349018;_0x30d74a>=0x0;_0x30d74a--)(_0x349018=_0x564edb[_0x30d74a])&&(_0x4491a2=_0x349018(_0x4491a2)||_0x4491a2);return _0x4491a2;},T=(_0x4ee606,_0x55ee6c)=>(_0x5f022d,_0x2e0e92)=>_0x55ee6c(_0x5f022d,_0x2e0e92,_0x4ee606);let I=class extends _0x1921d4{constructor(_0x3f9f5f,_0x2c7932){var _0x13c02f=_0x36f017;super(),this[_0x13c02f(0x1d6)]=_0x3f9f5f,this[_0x13c02f(0x1c6)]=_0x2c7932,this[_0x13c02f(0x1f0)]();}[_0x36f017(0x1f0)](){var _0x3f47ee=_0x36f017;this['disposeWithMe'](this[_0x3f47ee(0x1c6)][_0x3f47ee(0x1ca)](_0x4db87a[_0x3f47ee(0x201)],()=>_0x518bf9(ye,this[_0x3f47ee(0x1d6)])));}};I=je([T(0x0,_0x3b82a6(_0x11e997)),T(0x1,_0x3c6a2e)],I);const Ue=_0x36f017(0x215),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x514688,_0x36d2be,_0x4223c8,_0x540ba4)=>{var _0xdb5efb=_0x36f017;for(var _0x4e489a=_0x540ba4>0x1?void 0x0:_0x540ba4?Ve(_0x36d2be,_0x4223c8):_0x36d2be,_0x513e1f=_0x514688[_0xdb5efb(0x211)]-0x1,_0x4ca992;_0x513e1f>=0x0;_0x513e1f--)(_0x4ca992=_0x514688[_0x513e1f])&&(_0x4e489a=_0x4ca992(_0x4e489a)||_0x4e489a);return _0x4e489a;},ke=(_0x40b66d,_0xd0b1b9)=>(_0x4724d7,_0x10ed8d)=>_0xd0b1b9(_0x4724d7,_0x10ed8d,_0x40b66d);let b=class extends _0x1921d4{constructor(_0x25c18f){var _0x18875a=_0x36f017;super(),this[_0x18875a(0x21c)]=_0x25c18f,this['_init']();}['_init'](){[_0x17d0cb['id'],_0x43d03b['id'],_0x541ec2['id']]['forEach'](_0x9f46d7=>{var _0x21b0fa=_0xde17;this[_0x21b0fa(0x26a)](this[_0x21b0fa(0x21c)]['registerSharedOperation'](_0x9f46d7));});}};b=Me([ke(0x0,_0x3b82a6(L))],b);var Ge=Object[_0x36f017(0x1d5)],We=Object[_0x36f017(0x20c)],Ye=(_0x23d052,_0x18803a,_0x1ae5c9)=>_0x18803a in _0x23d052?Ge(_0x23d052,_0x18803a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ae5c9}):_0x23d052[_0x18803a]=_0x1ae5c9,Be=(_0xece216,_0x45f951,_0x59ab6f,_0x2b89ac)=>{var _0x27d4b4=_0x36f017;for(var _0x428ec4=_0x2b89ac>0x1?void 0x0:_0x2b89ac?We(_0x45f951,_0x59ab6f):_0x45f951,_0x100709=_0xece216[_0x27d4b4(0x211)]-0x1,_0x482983;_0x100709>=0x0;_0x100709--)(_0x482983=_0xece216[_0x100709])&&(_0x428ec4=_0x482983(_0x428ec4)||_0x428ec4);return _0x428ec4;},F=(_0x17dbcc,_0x15d582)=>(_0x5639c8,_0x4f64fe)=>_0x15d582(_0x5639c8,_0x4f64fe,_0x17dbcc),J=(_0x186778,_0x2e2554,_0x4cea52)=>Ye(_0x186778,typeof _0x2e2554!=_0x36f017(0x1f6)?_0x2e2554+'':_0x2e2554,_0x4cea52);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1c42d2{constructor(_0x3a181e=$,_0x41e95f,_0xf09914){var _0x356bbe=_0x36f017;super(),this[_0x356bbe(0x1f9)]=_0x3a181e,this[_0x356bbe(0x1d6)]=_0x41e95f,this['_configService']=_0xf09914;const {..._0x531b46}=_0x3fdcd0({},$,this['_config']);this[_0x356bbe(0x1d7)][_0x356bbe(0x220)](Ue,_0x531b46);}[_0x36f017(0x1e3)](){var _0x170eda=_0x36f017;_0x29e73f(this['_injector'],_0x5e60eb([[L],[m],[b],[I]],this['_config'][_0x170eda(0x22c)])),_0x184d91(this[_0x170eda(0x1d6)],[[b]]);}[_0x36f017(0x229)](){var _0x4a7004=_0x36f017;_0x184d91(this[_0x4a7004(0x1d6)],[[I]]);}};J(O,_0x36f017(0x207),_0x3488c4[_0x36f017(0x1fd)]),J(O,_0x36f017(0x248),Ze),O=Be([_0x3c9495(_0x2e766a),F(0x1,_0x3b82a6(_0x11e997)),F(0x2,_0x2ade0c)],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 _0x1a1d63=_0x1da0;(function(_0x489578,_0x585e67){var _0x4bf52c=_0x1da0,_0x213361=_0x489578();while(!![]){try{var _0x2d25e7=parseInt(_0x4bf52c(0x121))/0x1+parseInt(_0x4bf52c(0x168))/0x2*(-parseInt(_0x4bf52c(0x144))/0x3)+-parseInt(_0x4bf52c(0x10d))/0x4*(-parseInt(_0x4bf52c(0x1b1))/0x5)+-parseInt(_0x4bf52c(0x1ab))/0x6+parseInt(_0x4bf52c(0x1a0))/0x7+-parseInt(_0x4bf52c(0x11d))/0x8*(-parseInt(_0x4bf52c(0x161))/0x9)+-parseInt(_0x4bf52c(0x185))/0xa;if(_0x2d25e7===_0x585e67)break;else _0x213361['push'](_0x213361['shift']());}catch(_0x1f1b08){_0x213361['push'](_0x213361['shift']());}}}(_0x4f37,0xf07a1));var q=Object[_0x1a1d63(0x12f)],z=(_0x34dae0,_0x312df0,_0x109e3a)=>_0x312df0 in _0x34dae0?q(_0x34dae0,_0x312df0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x109e3a}):_0x34dae0[_0x312df0]=_0x109e3a,d=(_0x57a19d,_0x47477b,_0x5129b7)=>z(_0x57a19d,typeof _0x47477b!=_0x1a1d63(0x186)?_0x47477b+'':_0x47477b,_0x5129b7);import{Disposable as _0x3afd44,toDisposable as _0x31b3e3,IUniverInstanceService as _0x3f2da5,Inject as _0x42e8ee,Injector as _0x51ecf2,IConfigService as _0x5bfcf1,ICommandService as _0xd54193,RxDisposable as _0x2a0f78,UniverInstanceType as _0x2c0aab,DisposableCollection as _0x514287,CommandType as _0x1a48da,DependentOn as _0x1db083,Plugin as _0x3c29f5,merge as _0x4f7afb,registerDependencies as _0xae8f0b,mergeOverrideWithDependencies as _0x309e1a,touchDependencies as _0x524ac9}from'@univerjs/core';import{useDependency as _0x33b945,useObservable as _0x373395,IUIPartsService as _0x4f4ad0,BuiltInUIPart as _0x323e4b,connectInjector as _0x9c8981}from'@univerjs/ui';import{jsx as _0x1e87d0,jsxs as _0x306d4c,Fragment as _0x45035c}from'react/jsx-runtime';import{Dropdown as _0x5e88bc,clsx as _0x42df54,Button as _0x5d53a5}from'@univerjs/design';import{forwardRef as _0x2d86dd,useRef as _0x436df5,createElement as _0x14aa02,useState as _0x401fbb,useEffect as _0x3a8270}from'react';import{CollaborationEvent as _0x572b1a,parseProtocolChangeset as _0x25bb86}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x300a35,SessionStatus as _0x80727d,UniverCollaborationClientPlugin as _0x54a0db}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x32919f,SetWorksheetActiveOperation as _0x160433}from'@univerjs/sheets';import{BehaviorSubject as _0x5cb4f1,Subject as _0x5ec58b}from'rxjs';import{takeUntil as _0x7b0d00,throttleTime as _0x286a75}from'rxjs/operators';import{SetZoomRatioOperation as _0x4aa2a7,SetScrollOperation as _0xa66381}from'@univerjs/sheets-ui';var c=function(){var _0x25410e=_0x1a1d63;return c=Object[_0x25410e(0x17f)]||function(_0x42fd39){var _0x48a42b=_0x25410e;for(var _0x2f9e60,_0x4a2162=0x1,_0x3b600c=arguments['length'];_0x4a2162<_0x3b600c;_0x4a2162++){_0x2f9e60=arguments[_0x4a2162];for(var _0x4d9705 in _0x2f9e60)Object[_0x48a42b(0x16b)]['hasOwnProperty'][_0x48a42b(0x134)](_0x2f9e60,_0x4d9705)&&(_0x42fd39[_0x4d9705]=_0x2f9e60[_0x4d9705]);}return _0x42fd39;},c[_0x25410e(0x11f)](this,arguments);},Oe=function(_0x2d9b32,_0x4ea4f2){var _0xab0bd3=_0x1a1d63,_0x1ccd7d={};for(var _0x2ca811 in _0x2d9b32)Object[_0xab0bd3(0x16b)][_0xab0bd3(0x11c)][_0xab0bd3(0x134)](_0x2d9b32,_0x2ca811)&&_0x4ea4f2[_0xab0bd3(0x19c)](_0x2ca811)<0x0&&(_0x1ccd7d[_0x2ca811]=_0x2d9b32[_0x2ca811]);if(_0x2d9b32!=null&&typeof Object[_0xab0bd3(0x17c)]==_0xab0bd3(0x147)){for(var _0x17631e=0x0,_0x2ca811=Object[_0xab0bd3(0x17c)](_0x2d9b32);_0x17631e<_0x2ca811[_0xab0bd3(0x1b8)];_0x17631e++)_0x4ea4f2['indexOf'](_0x2ca811[_0x17631e])<0x0&&Object['prototype'][_0xab0bd3(0x157)]['call'](_0x2d9b32,_0x2ca811[_0x17631e])&&(_0x1ccd7d[_0x2ca811[_0x17631e]]=_0x2d9b32[_0x2ca811[_0x17631e]]);}return _0x1ccd7d;},W=_0x2d86dd(function(_0x3a8acb,_0x507ebe){var _0x3ee095=_0x1a1d63,_0x1082ec=_0x3a8acb[_0x3ee095(0x18f)],_0x37a54b=_0x3a8acb['id'],_0xb2601a=_0x3a8acb[_0x3ee095(0x13a)],_0x2f950e=_0x3a8acb[_0x3ee095(0x164)],_0x5248f6=Oe(_0x3a8acb,[_0x3ee095(0x18f),'id',_0x3ee095(0x13a),_0x3ee095(0x164)]),_0x1572ea=_0x3ee095(0x1aa)[_0x3ee095(0x18d)](_0x37a54b,'\x20')[_0x3ee095(0x18d)](_0xb2601a||'')[_0x3ee095(0x132)](),_0x45825b=_0x436df5('_'['concat'](Ne()));return Y(_0x1082ec,''[_0x3ee095(0x18d)](_0x37a54b),{'defIds':_0x1082ec['defIds'],'idSuffix':_0x45825b['current']},c({'ref':_0x507ebe,'className':_0x1572ea},_0x5248f6),_0x2f950e);});function Y(_0x41a341,_0x336091,_0x1d814a,_0x1e7dd1,_0x4ca168){var _0x3981dc=_0x1a1d63;return _0x14aa02(_0x41a341[_0x3981dc(0x160)],c(c({'key':_0x336091},Ee(_0x41a341,_0x1d814a,_0x4ca168)),_0x1e7dd1),(we(_0x41a341,_0x1d814a)['children']||[])[_0x3981dc(0x181)](function(_0x176360,_0x11f8e2){var _0x426754=_0x3981dc;return Y(_0x176360,''['concat'](_0x336091,'-')[_0x426754(0x18d)](_0x41a341['tag'],'-')[_0x426754(0x18d)](_0x11f8e2),_0x1d814a,void 0x0,_0x4ca168);}));}function Ee(_0x3c3a6c,_0x3f771c,_0x2e496c){var _0xb317c8=_0x1a1d63,_0x5ec63f=c({},_0x3c3a6c['attrs']);_0x2e496c!=null&&_0x2e496c[_0xb317c8(0x18e)]&&_0x5ec63f[_0xb317c8(0x174)]===_0xb317c8(0x18e)&&(_0x5ec63f['fill']=_0x2e496c[_0xb317c8(0x18e)]),_0x3c3a6c[_0xb317c8(0x160)]===_0xb317c8(0x162)&&_0x5ec63f['id']&&(_0x5ec63f['id']=_0x5ec63f['id']+_0x3f771c[_0xb317c8(0x1b7)]),Object[_0xb317c8(0x153)](_0x5ec63f)[_0xb317c8(0x119)](function(_0x1e469d){var _0xed6a9b=_0xb317c8,_0x4d1dd1=_0x1e469d[0x0],_0x162c0b=_0x1e469d[0x1];_0x4d1dd1===_0xed6a9b(0x162)&&typeof _0x162c0b==_0xed6a9b(0x14e)&&(_0x5ec63f[_0x4d1dd1]=_0x162c0b[_0xed6a9b(0x139)](/url\(#(.*)\)/,_0xed6a9b(0x12e)[_0xed6a9b(0x18d)](_0x3f771c[_0xed6a9b(0x1b7)],')')));});var _0x34caf5=_0x3f771c[_0xb317c8(0x10f)];return!_0x34caf5||_0x34caf5[_0xb317c8(0x1b8)]===0x0||(_0x3c3a6c[_0xb317c8(0x160)]===_0xb317c8(0x133)&&_0x5ec63f[_0xb317c8(0x169)]&&(_0x5ec63f[_0xb317c8(0x169)]=_0x5ec63f[_0xb317c8(0x169)]+_0x3f771c[_0xb317c8(0x1b7)]),Object['entries'](_0x5ec63f)[_0xb317c8(0x119)](function(_0x30bffd){var _0x17fa81=_0xb317c8,_0xa7db22=_0x30bffd[0x0],_0x3f1e7d=_0x30bffd[0x1];typeof _0x3f1e7d==_0x17fa81(0x14e)&&(_0x5ec63f[_0xa7db22]=_0x3f1e7d[_0x17fa81(0x139)](/url\(#(.*)\)/,_0x17fa81(0x12e)[_0x17fa81(0x18d)](_0x3f771c[_0x17fa81(0x1b7)],')')));})),_0x5ec63f;}function we(_0x2cc9c3,_0x4e65bf){var _0x139c4e=_0x1a1d63,_0x186ea5,_0x98fe0a=_0x4e65bf[_0x139c4e(0x10f)];return!_0x98fe0a||_0x98fe0a[_0x139c4e(0x1b8)]===0x0?_0x2cc9c3:_0x2cc9c3[_0x139c4e(0x160)]===_0x139c4e(0x103)&&(!((_0x186ea5=_0x2cc9c3[_0x139c4e(0x112)])===null||_0x186ea5===void 0x0)&&_0x186ea5['length'])?c(c({},_0x2cc9c3),{'children':_0x2cc9c3[_0x139c4e(0x112)][_0x139c4e(0x181)](function(_0x2d1b76){var _0x2a6dda=_0x139c4e;return typeof _0x2d1b76[_0x2a6dda(0x193)]['id']==_0x2a6dda(0x14e)&&_0x98fe0a&&_0x98fe0a[_0x2a6dda(0x15e)](_0x2d1b76[_0x2a6dda(0x193)]['id'])?c(c({},_0x2d1b76),{'attrs':c(c({},_0x2d1b76[_0x2a6dda(0x193)]),{'id':_0x2d1b76['attrs']['id']+_0x4e65bf[_0x2a6dda(0x1b7)]})}):_0x2d1b76;})}):_0x2cc9c3;}function Ne(){var _0x5412c9=_0x1a1d63;return Math[_0x5412c9(0x135)]()[_0x5412c9(0x11a)](0x24)[_0x5412c9(0x115)](0x2,0x8);}W[_0x1a1d63(0x150)]=_0x1a1d63(0x19a);var Ce={'tag':_0x1a1d63(0x13d),'attrs':{'xmlns':_0x1a1d63(0x123),'fill':_0x1a1d63(0x146),'viewBox':_0x1a1d63(0x1af),'width':_0x1a1d63(0x105),'height':_0x1a1d63(0x105)},'children':[{'tag':_0x1a1d63(0x1b3),'attrs':{'fill':_0x1a1d63(0x1b5),'d':_0x1a1d63(0x10b)}},{'tag':_0x1a1d63(0x1b3),'attrs':{'fill':_0x1a1d63(0x1b5),'d':_0x1a1d63(0x165),'fillRule':_0x1a1d63(0x199),'clipRule':_0x1a1d63(0x199)}}]},B=_0x2d86dd(function(_0x35403c,_0x579234){var _0x1739f2=_0x1a1d63;return _0x14aa02(W,Object[_0x1739f2(0x17f)]({},_0x35403c,{'id':'live-share-icon','ref':_0x579234,'icon':Ce}));});B[_0x1a1d63(0x150)]=_0x1a1d63(0x1b9);class L extends _0x3afd44{constructor(){var _0x3cbc79=_0x1a1d63;super(...arguments),d(this,_0x3cbc79(0x187),new Set()),d(this,_0x3cbc79(0x14f),new Set());}[_0x1a1d63(0x183)](_0x41c1ec){var _0x4e9441=_0x1a1d63;return this[_0x4e9441(0x187)]['add'](_0x41c1ec),_0x31b3e3(()=>this[_0x4e9441(0x187)][_0x4e9441(0x17b)](_0x41c1ec));}[_0x1a1d63(0x184)](_0xef672){var _0x896cb7=_0x1a1d63;return this['_reporters']['add'](_0xef672),_0x31b3e3(()=>this[_0x896cb7(0x14f)][_0x896cb7(0x17b)](_0xef672));}[_0x1a1d63(0x108)](_0x2ae9a9){var _0x3b8c31=_0x1a1d63;return this[_0x3b8c31(0x187)][_0x3b8c31(0x109)](_0x2ae9a9);}[_0x1a1d63(0x14d)](_0x4b4638){var _0x53efda=_0x1a1d63;return Array[_0x53efda(0x10a)](this[_0x53efda(0x14f)])[_0x53efda(0x181)](_0x27cb93=>_0x27cb93(_0x4b4638));}}var De=Object['getOwnPropertyDescriptor'],Z=(_0x4149aa,_0x38df9a,_0x53028d,_0x5ec06f)=>{var _0x25d12b=_0x1a1d63;for(var _0x108fae=_0x5ec06f>0x1?void 0x0:_0x5ec06f?De(_0x38df9a,_0x53028d):_0x38df9a,_0x41e05f=_0x4149aa[_0x25d12b(0x1b8)]-0x1,_0x3357d7;_0x41e05f>=0x0;_0x41e05f--)(_0x3357d7=_0x4149aa[_0x41e05f])&&(_0x108fae=_0x3357d7(_0x108fae)||_0x108fae);return _0x108fae;},f=(_0x24517d,_0x47d615)=>(_0x35093f,_0x542498)=>_0x47d615(_0x35093f,_0x542498,_0x24517d);let m=class extends _0x2a0f78{constructor(_0x730f8f,_0xc0db6f,_0x52fd0b){var _0x1a83f3=_0x1a1d63;super(),d(this,'_entities',new Map()),(this[_0x1a83f3(0x190)]=_0x730f8f,this[_0x1a83f3(0x106)]=_0xc0db6f,this['_collabSessionService']=_0x52fd0b,this['_init']());}async[_0x1a1d63(0x175)](_0x542b7d){var _0x4b8cb7=_0x1a1d63;return this[_0x4b8cb7(0x128)][_0x4b8cb7(0x109)](_0x542b7d)||await this[_0x4b8cb7(0x118)](_0x542b7d),this[_0x4b8cb7(0x128)][_0x4b8cb7(0x12d)](_0x542b7d);}['_init'](){var _0x3558c6=_0x1a1d63;this[_0x3558c6(0x190)][_0x3558c6(0x1a5)](_0x2c0aab[_0x3558c6(0x159)])['pipe'](_0x7b0d00(this[_0x3558c6(0x107)]))[_0x3558c6(0x179)](async _0x3c405e=>{var _0x195f09=_0x3558c6;const _0x10e213=_0x3c405e[_0x195f09(0x19b)]();this[_0x195f09(0x128)]['has'](_0x10e213)||this['_startLiveShareCoordinator'](_0x10e213);}),this[_0x3558c6(0x190)][_0x3558c6(0x17a)](_0x2c0aab[_0x3558c6(0x159)])[_0x3558c6(0x130)](_0x7b0d00(this[_0x3558c6(0x107)]))[_0x3558c6(0x179)](_0x6507a2=>{var _0x273ef7=_0x3558c6;const _0x27fbc5=_0x6507a2[_0x273ef7(0x19b)](),_0xba5e0e=this[_0x273ef7(0x128)]['get'](_0x27fbc5);_0xba5e0e==null||_0xba5e0e[_0x273ef7(0x198)]();});}async['_startLiveShareCoordinator'](_0x4e9ab0){var _0x14284b=_0x1a1d63;const _0x567b5f=await this[_0x14284b(0x1b2)][_0x14284b(0x1a7)](_0x4e9ab0),_0x39578c=this['_injector'][_0x14284b(0x10c)](C,_0x4e9ab0,_0x567b5f);return _0x39578c['init'](),this['_entities'][_0x14284b(0x136)](_0x4e9ab0,_0x39578c),_0x39578c;}};m=Z([f(0x0,_0x3f2da5),f(0x1,_0x42e8ee(_0x51ecf2)),f(0x2,_0x42e8ee(_0x300a35))],m);var h=(_0x3fe789=>(_0x3fe789[_0x1a1d63(0x15d)]=_0x1a1d63(0x15f),_0x3fe789['IDLE']=_0x1a1d63(0x170),_0x3fe789[_0x1a1d63(0x182)]=_0x1a1d63(0x196),_0x3fe789[_0x1a1d63(0x138)]='not-following',_0x3fe789[_0x1a1d63(0x19d)]='presenting',_0x3fe789))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x2a0f78{constructor(_0x4ecd10,_0x3a8793,_0x4560a9,_0x4103b4,_0x1916e7){var _0x24c502=_0x1a1d63;super(),d(this,'_status$',new _0x5cb4f1(_0x24c502(0x170))),d(this,_0x24c502(0x11b),this[_0x24c502(0x15a)][_0x24c502(0x124)]()),d(this,_0x24c502(0x14c),!0x1),d(this,'_commandDisposable',null),d(this,_0x24c502(0x16e),null),(this['_unitID']=_0x4ecd10,this['_collabSession']=_0x3a8793,this[_0x24c502(0x126)]=_0x4560a9,this[_0x24c502(0x18b)]=_0x4103b4,this[_0x24c502(0x110)]=_0x1916e7);}get['_status'](){var _0x463404=_0x1a1d63;return this[_0x463404(0x15a)][_0x463404(0x18c)]();}[_0x1a1d63(0x198)](){var _0x438cee=_0x1a1d63,_0x58fb9e;(_0x58fb9e=this[_0x438cee(0x104)])==null||_0x58fb9e['dispose'](),this[_0x438cee(0x15a)][_0x438cee(0x1a1)]('idle'),this['_status$'][_0x438cee(0x127)]();}[_0x1a1d63(0x1ac)](){var _0x4a0fa4=_0x1a1d63;this[_0x4a0fa4(0x14c)]||(this[_0x4a0fa4(0x14c)]=!0x0,this[_0x4a0fa4(0x13f)]['sessionStatus$'][_0x4a0fa4(0x130)](_0x7b0d00(this[_0x4a0fa4(0x107)]))[_0x4a0fa4(0x179)](_0x59e3e6=>{var _0x33956f=_0x4a0fa4;switch(_0x59e3e6){case _0x80727d[_0x33956f(0x15d)]:this['_handleOffline']();break;case _0x80727d[_0x33956f(0x1ae)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x4a0fa4(0x158)][_0x4a0fa4(0x130)](_0x7b0d00(this[_0x4a0fa4(0x107)]))[_0x4a0fa4(0x179)](_0xfdc994=>{var _0x51d069=_0x4a0fa4;const {eventID:_0x2375a2}=_0xfdc994;switch(_0x2375a2){case _0x572b1a['LIVESHARE_NEW_HOST']:this[_0x51d069(0x122)](_0xfdc994);break;case _0x572b1a['LIVESHARE_OPERATION']:this['_handleOperation'](_0xfdc994);break;case _0x572b1a[_0x51d069(0x188)]:this[_0x51d069(0x176)]();break;case _0x572b1a[_0x51d069(0x129)]:this[_0x51d069(0x13b)](_0xfdc994);break;}}));}[_0x1a1d63(0x189)](){var _0x8143d4=_0x1a1d63;this['_collabSession'][_0x8143d4(0x11e)]({'eventID':_0x572b1a[_0x8143d4(0x13c)],'data':{'unitID':this[_0x8143d4(0x1a9)],'userID':this[_0x8143d4(0x13f)][_0x8143d4(0x125)]()}},this['_unitID']);}['stopPresenting'](){var _0x30aad0=_0x1a1d63;this[_0x30aad0(0x16d)]===_0x30aad0(0x13e)&&(this[_0x30aad0(0x15a)][_0x30aad0(0x1a1)](_0x30aad0(0x170)),this['_collabSession']['send']({'eventID':_0x572b1a[_0x30aad0(0x188)],'data':{'unitID':this[_0x30aad0(0x1a9)]}},this['_unitID']));}[_0x1a1d63(0x116)](){var _0x986f6e=_0x1a1d63;this[_0x986f6e(0x16d)]===_0x986f6e(0x15c)&&(this[_0x986f6e(0x15a)]['next']('following'),this[_0x986f6e(0x111)]());}['stopFollowing'](){var _0x3af7f6=_0x1a1d63;this[_0x3af7f6(0x16d)]==='following'&&this[_0x3af7f6(0x16a)]();}[_0x1a1d63(0x122)](_0x46940f){var _0x1c5ab2=_0x1a1d63;const {presenter:_0x45a73a}=_0x46940f[_0x1c5ab2(0x149)],_0x23e381=this['_collabSession'][_0x1c5ab2(0x125)]();this[_0x1c5ab2(0x16e)]=_0x45a73a,_0x45a73a===_0x23e381?(this[_0x1c5ab2(0x16a)](),this[_0x1c5ab2(0x145)]()):this[_0x1c5ab2(0x16d)]!=='not-following'&&(this['_stopPresenting'](),this[_0x1c5ab2(0x111)]());}[_0x1a1d63(0x16f)](){var _0x38a04f=_0x1a1d63;const _0x4e3d47={'eventID':_0x572b1a[_0x38a04f(0x14b)]};this[_0x38a04f(0x13f)]['send'](_0x4e3d47,this[_0x38a04f(0x1a9)]);}[_0x1a1d63(0x176)](){var _0x37676f=_0x1a1d63;this[_0x37676f(0x16e)]=null,this[_0x37676f(0x16d)]!==_0x37676f(0x13e)&&this[_0x37676f(0x1b4)]();}[_0x1a1d63(0x13b)](_0x2b5cbc){var _0x4ccc63=_0x1a1d63;if(this['_status']===_0x4ccc63(0x196)&&this[_0x4ccc63(0x16e)]===_0x2b5cbc['data'][_0x4ccc63(0x163)]){const _0x458e51=_0x25bb86(_0x2b5cbc[_0x4ccc63(0x149)])[_0x4ccc63(0x1ad)][_0x4ccc63(0x1a2)]()[_0x4ccc63(0x142)](_0x32df55=>_0x32df55['id']===_0x32919f['id']);if(_0x458e51){const _0x436b27=_0x458e51[_0x4ccc63(0x191)]['unitId'],_0x5c61e6=_0x458e51[_0x4ccc63(0x191)][_0x4ccc63(0x1a4)]['id'];setTimeout(()=>{var _0x420257=_0x4ccc63;this['_commandService'][_0x420257(0x17d)](_0x160433['id'],{'unitId':_0x436b27,'subUnitId':_0x5c61e6},{'fromCollab':!0x0});});}}}[_0x1a1d63(0x145)](){var _0x291e4b=_0x1a1d63;this[_0x291e4b(0x15a)][_0x291e4b(0x1a1)](_0x291e4b(0x13e));const _0x56e3c7=new Map(),_0x2a8c87=this['_commandDisposable']=new _0x514287();_0x2a8c87['add'](_0x31b3e3(()=>{var _0x6eba41=_0x291e4b;_0x56e3c7['forEach'](_0x5f573d=>_0x5f573d[_0x6eba41(0x127)]()),_0x56e3c7[_0x6eba41(0x117)]();})),_0x2a8c87['add'](this[_0x291e4b(0x110)]['onCommandExecuted'](_0x1bd0c8=>{var _0x2d821e=_0x291e4b,_0x5a9fba;if(_0x1bd0c8[_0x2d821e(0x16c)]!==_0x1a48da[_0x2d821e(0x114)]||!this['_liveShareService'][_0x2d821e(0x108)](_0x1bd0c8['id']))return;const {id:_0x535205}=_0x1bd0c8;let _0x528fb3;_0x56e3c7[_0x2d821e(0x109)](_0x535205)?_0x528fb3=_0x56e3c7['get'](_0x535205):(_0x528fb3=new _0x5ec58b(),_0x56e3c7[_0x2d821e(0x136)](_0x535205,_0x528fb3),_0x528fb3['pipe'](_0x286a75((_0x5a9fba=this['_configService'][_0x2d821e(0x1a6)](xe))!=null?_0x5a9fba:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3b0302=>{var _0xd93b2c=_0x2d821e;this[_0xd93b2c(0x13f)]['send']({'eventID':_0x572b1a['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xd93b2c(0x1a9)],'operations':{[_0x3b0302['id']]:{'id':_0x3b0302['id'],'params':JSON[_0xd93b2c(0x178)](_0x3b0302[_0xd93b2c(0x191)])}}}},this['_unitID']);})),_0x528fb3[_0x2d821e(0x1a1)](_0x1bd0c8);})),this[_0x291e4b(0x18b)][_0x291e4b(0x14d)](this['_unitID'])['forEach'](_0x419bb7=>this['_collabSession']['send']({'eventID':_0x572b1a['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x291e4b(0x1a9)],'operations':{[_0x419bb7['id']]:{'id':_0x419bb7['id'],'params':JSON[_0x291e4b(0x178)](_0x419bb7['params'])}}}},this['_unitID']));}[_0x1a1d63(0x1b0)](){var _0x2c86ac=_0x1a1d63,_0x53366e;this[_0x2c86ac(0x15a)]['next'](_0x2c86ac(0x170)),(_0x53366e=this[_0x2c86ac(0x104)])==null||_0x53366e[_0x2c86ac(0x198)](),this[_0x2c86ac(0x104)]=null;}[_0x1a1d63(0x111)](){var _0x898635=_0x1a1d63,_0x209516;(_0x209516=this[_0x898635(0x104)])==null||_0x209516['dispose'](),this[_0x898635(0x15a)][_0x898635(0x1a1)](_0x898635(0x196));}[_0x1a1d63(0x1b4)](){var _0x69c211=_0x1a1d63,_0x5f1520;this[_0x69c211(0x15a)]['next'](_0x69c211(0x170)),(_0x5f1520=this[_0x69c211(0x104)])==null||_0x5f1520[_0x69c211(0x198)](),this['_commandDisposable']=null;}[_0x1a1d63(0x16a)](){var _0x38230b=_0x1a1d63,_0x504158;this[_0x38230b(0x15a)][_0x38230b(0x1a1)](_0x38230b(0x15c)),(_0x504158=this[_0x38230b(0x104)])==null||_0x504158[_0x38230b(0x198)]();}[_0x1a1d63(0x172)](_0x3a5158){var _0x59ba80=_0x1a1d63;if([_0x59ba80(0x13e),_0x59ba80(0x15c),_0x59ba80(0x15f)]['includes'](this[_0x59ba80(0x16d)])||!_0x3a5158[_0x59ba80(0x149)][_0x59ba80(0x10e)]||_0x3a5158[_0x59ba80(0x149)][_0x59ba80(0x10e)]===this['_collabSession']['getMemberID']())return;this[_0x59ba80(0x16d)]===_0x59ba80(0x170)&&this[_0x59ba80(0x111)]();const _0x5da6d8=_0x3a5158[_0x59ba80(0x149)][_0x59ba80(0x12c)];Object['values'](_0x5da6d8)[_0x59ba80(0x119)](_0x2980ad=>{var _0xadcbdb=_0x59ba80;this[_0xadcbdb(0x110)][_0xadcbdb(0x17d)](_0x2980ad['id'],_0x2980ad['params']?JSON[_0xadcbdb(0x167)](_0x2980ad[_0xadcbdb(0x191)]):null,{'fromCollab':!0x0});});}[_0x1a1d63(0x131)](){var _0x18b6d5=_0x1a1d63,_0x2f3664;this[_0x18b6d5(0x15a)][_0x18b6d5(0x1a1)]('offline'),(_0x2f3664=this[_0x18b6d5(0x104)])==null||_0x2f3664[_0x18b6d5(0x198)]();}[_0x1a1d63(0x1a3)](){var _0x1d68de=_0x1a1d63;this['_status$'][_0x1d68de(0x1a1)](_0x1d68de(0x170)),this['_fetchOperations']();}};C=Z([f(0x2,_0x5bfcf1),f(0x3,_0x42e8ee(L)),f(0x4,_0xd54193)],C);function ye(){var _0x4299ab=_0x1a1d63;const _0x19ea90=_0x33b945(m),_0x1f908d=_0x33b945(_0x3f2da5),_0x2e5d6f=_0x373395(()=>_0x1f908d[_0x4299ab(0x18a)](_0x2c0aab[_0x4299ab(0x159)]),void 0x0,!0x1,[]),[_0xdb5bab,_0x4caece]=_0x401fbb(null),[_0x2eb4b5,_0x31e031]=_0x401fbb(h[_0x4299ab(0x17e)]),_0x3d4c55=_0x436df5(null);return _0x3a8270(()=>(_0x2e5d6f&&_0x19ea90[_0x4299ab(0x175)](_0x2e5d6f['getUnitId']())[_0x4299ab(0x173)](_0x2c8ad4=>{var _0x4a8167=_0x4299ab;_0x4caece(_0x2c8ad4),_0x3d4c55[_0x4a8167(0x14a)]=_0x2c8ad4['status$'][_0x4a8167(0x179)](_0x1a23be=>{_0x31e031(_0x1a23be);});}),()=>{var _0x4663cb=_0x4299ab,_0x1ff713;(_0x1ff713=_0x3d4c55['current'])==null||_0x1ff713[_0x4663cb(0x151)](),_0x3d4c55[_0x4663cb(0x14a)]=null;}),[_0x2e5d6f,_0x19ea90]),_0xdb5bab?_0x1e87d0(_0x5e88bc,{'align':'end','disabled':_0x2eb4b5===h[_0x4299ab(0x15d)],'className':_0x4299ab(0x113),'overlay':_0x1e87d0(Re,{'status':_0x2eb4b5,'coordinator':_0xdb5bab}),'children':_0x1e87d0(_0x4299ab(0x192),{'className':_0x42df54(_0x4299ab(0x140),{'univer-cursor-not-allowed':_0x2eb4b5===h[_0x4299ab(0x15d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2eb4b5!==h['OFFLINE']}),'type':_0x4299ab(0x192),'children':_0x1e87d0(B,{'className':_0x4299ab(0x155)})})}):null;}function Re(_0xb9dde6){var _0x277cc6=_0x1a1d63;const {status:_0x1e279d,coordinator:_0x9d4553}=_0xb9dde6;switch(_0x1e279d){case h[_0x277cc6(0x17e)]:return _0x1e87d0(Pe,{'coordinator':_0x9d4553});case h[_0x277cc6(0x182)]:return _0x1e87d0(Ae,{'coordinator':_0x9d4553});case h[_0x277cc6(0x138)]:return _0x1e87d0(Te,{'coordinator':_0x9d4553});case h[_0x277cc6(0x15d)]:return _0x1e87d0(Fe,{});case h[_0x277cc6(0x19d)]:return _0x1e87d0($e,{'coordinator':_0x9d4553});default:return null;}}function Pe(_0x5c6898){var _0xe89c27=_0x1a1d63;const {coordinator:_0x1aa7b7}=_0x5c6898;return _0x306d4c(_0x45035c,{'children':[_0x1e87d0(_0xe89c27(0x141),{'className':_0xe89c27(0x171),'children':_0xe89c27(0x19f)}),_0x1e87d0(_0x5d53a5,{'onClick':()=>_0x1aa7b7[_0xe89c27(0x189)](),'children':_0xe89c27(0x194)})]});}function Ae(_0x35ff60){var _0x27c614=_0x1a1d63;const {coordinator:_0x283ecb}=_0x35ff60;return _0x306d4c(_0x45035c,{'children':[_0x1e87d0('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x1e87d0(_0x5d53a5,{'onClick':()=>_0x283ecb[_0x27c614(0x166)](),'children':_0x27c614(0x154)})]});}function Te(_0x3e43ee){var _0x52fd0a=_0x1a1d63;const {coordinator:_0x289911}=_0x3e43ee;return _0x306d4c(_0x45035c,{'children':[_0x1e87d0('div',{'className':_0x52fd0a(0x171),'children':_0x52fd0a(0x12a)}),_0x1e87d0(_0x5d53a5,{'variant':_0x52fd0a(0x152),'onClick':()=>_0x289911['startFollowing'](),'children':'Start\x20following'})]});}function $e(_0x2f3072){var _0x19b631=_0x1a1d63;const {coordinator:_0x27be0b}=_0x2f3072;return _0x306d4c(_0x45035c,{'children':[_0x1e87d0(_0x19b631(0x141),{'className':_0x19b631(0x171),'children':_0x19b631(0x19e)}),_0x1e87d0(_0x5d53a5,{'variant':'default','onClick':()=>_0x27be0b[_0x19b631(0x180)](),'children':_0x19b631(0x195)})]});}function _0x1da0(_0x16c2ef,_0x4db1bd){var _0x4f37bd=_0x4f37();return _0x1da0=function(_0x1da0ea,_0x271b43){_0x1da0ea=_0x1da0ea-0x103;var _0x58a16b=_0x4f37bd[_0x1da0ea];return _0x58a16b;},_0x1da0(_0x16c2ef,_0x4db1bd);}function Fe(){return _0x1e87d0(_0x45035c,{'children':'You\x27are\x20offline.'});}var He=Object[_0x1a1d63(0x156)],je=(_0x1e74d5,_0x2ba644,_0x5d4a72,_0x21bb0c)=>{var _0x4a62d0=_0x1a1d63;for(var _0x30a2ce=_0x21bb0c>0x1?void 0x0:_0x21bb0c?He(_0x2ba644,_0x5d4a72):_0x2ba644,_0x3e8960=_0x1e74d5[_0x4a62d0(0x1b8)]-0x1,_0x312be6;_0x3e8960>=0x0;_0x3e8960--)(_0x312be6=_0x1e74d5[_0x3e8960])&&(_0x30a2ce=_0x312be6(_0x30a2ce)||_0x30a2ce);return _0x30a2ce;},T=(_0x3a7432,_0x4ac00b)=>(_0x1f3fc0,_0x48fee1)=>_0x4ac00b(_0x1f3fc0,_0x48fee1,_0x3a7432);let I=class extends _0x3afd44{constructor(_0x33a8df,_0x4420d9){var _0x35901d=_0x1a1d63;super(),this[_0x35901d(0x106)]=_0x33a8df,this[_0x35901d(0x143)]=_0x4420d9,this[_0x35901d(0x15b)]();}[_0x1a1d63(0x15b)](){var _0x193745=_0x1a1d63;this[_0x193745(0x148)](this['_uiPartsService'][_0x193745(0x197)](_0x323e4b['HEADER_MENU'],()=>_0x9c8981(ye,this[_0x193745(0x106)])));}};I=je([T(0x0,_0x42e8ee(_0x51ecf2)),T(0x1,_0x4f4ad0)],I);const Ue=_0x1a1d63(0x12b),$={};var Ve=Object[_0x1a1d63(0x156)],Me=(_0x32eef8,_0x1ef81d,_0x1b618b,_0x1a1416)=>{var _0x27a5fe=_0x1a1d63;for(var _0x59d3f9=_0x1a1416>0x1?void 0x0:_0x1a1416?Ve(_0x1ef81d,_0x1b618b):_0x1ef81d,_0x564f0c=_0x32eef8[_0x27a5fe(0x1b8)]-0x1,_0x35d4d1;_0x564f0c>=0x0;_0x564f0c--)(_0x35d4d1=_0x32eef8[_0x564f0c])&&(_0x59d3f9=_0x35d4d1(_0x59d3f9)||_0x59d3f9);return _0x59d3f9;},ke=(_0x2ba4a5,_0x3c872c)=>(_0x6bcd12,_0xa0576a)=>_0x3c872c(_0x6bcd12,_0xa0576a,_0x2ba4a5);let b=class extends _0x3afd44{constructor(_0x116be4){var _0x1263e8=_0x1a1d63;super(),this[_0x1263e8(0x18b)]=_0x116be4,this[_0x1263e8(0x14c)]();}[_0x1a1d63(0x14c)](){[_0x4aa2a7['id'],_0xa66381['id'],_0x160433['id']]['forEach'](_0xc3c6db=>{var _0x2b577b=_0x1da0;this['disposeWithMe'](this[_0x2b577b(0x18b)]['registerSharedOperation'](_0xc3c6db));});}};b=Me([ke(0x0,_0x42e8ee(L))],b);var Ge=Object[_0x1a1d63(0x12f)],We=Object[_0x1a1d63(0x156)],Ye=(_0x4571f1,_0x35082b,_0x2e4992)=>_0x35082b in _0x4571f1?Ge(_0x4571f1,_0x35082b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e4992}):_0x4571f1[_0x35082b]=_0x2e4992,Be=(_0x47a1a5,_0xa477f2,_0x680457,_0x1785ea)=>{var _0x3da49d=_0x1a1d63;for(var _0x167553=_0x1785ea>0x1?void 0x0:_0x1785ea?We(_0xa477f2,_0x680457):_0xa477f2,_0x45999e=_0x47a1a5[_0x3da49d(0x1b8)]-0x1,_0x2ff454;_0x45999e>=0x0;_0x45999e--)(_0x2ff454=_0x47a1a5[_0x45999e])&&(_0x167553=_0x2ff454(_0x167553)||_0x167553);return _0x167553;},F=(_0x15de98,_0x3aa791)=>(_0x2f71e6,_0x5d9271)=>_0x3aa791(_0x2f71e6,_0x5d9271,_0x15de98),J=(_0x2de5fb,_0x41b1a4,_0x283918)=>Ye(_0x2de5fb,typeof _0x41b1a4!=_0x1a1d63(0x186)?_0x41b1a4+'':_0x41b1a4,_0x283918);const Ze=_0x1a1d63(0x1a8);let O=class extends _0x3c29f5{constructor(_0x4d0281=$,_0x326554,_0x3d5d9c){var _0x57d4f1=_0x1a1d63;super(),this['_config']=_0x4d0281,this[_0x57d4f1(0x106)]=_0x326554,this[_0x57d4f1(0x126)]=_0x3d5d9c;const {..._0x2af753}=_0x4f7afb({},$,this[_0x57d4f1(0x120)]);this[_0x57d4f1(0x126)]['setConfig'](Ue,_0x2af753);}['onStarting'](){var _0x3b602e=_0x1a1d63;_0xae8f0b(this[_0x3b602e(0x106)],_0x309e1a([[L],[m],[b],[I]],this['_config'][_0x3b602e(0x177)])),_0x524ac9(this['_injector'],[[b]]);}['onRendered'](){var _0x1196d5=_0x1a1d63;_0x524ac9(this[_0x1196d5(0x106)],[[I]]);}};J(O,_0x1a1d63(0x16c),_0x2c0aab[_0x1a1d63(0x1b6)]),J(O,_0x1a1d63(0x137),Ze),O=Be([_0x1db083(_0x54a0db),F(0x1,_0x42e8ee(_0x51ecf2)),F(0x2,_0x5bfcf1)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};function _0x4f37(){var _0x1fdb8e=['presenter','defIds','_commandService','_startFollowing','children','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','OPERATION','substring','startFollowing','clear','_startLiveShareCoordinator','forEach','toString','status$','hasOwnProperty','13321688ZbssiF','send','apply','_config','555280LqmcBh','_handleNewHost','http://www.w3.org/2000/svg','asObservable','getMemberID','_configService','complete','_entities','NEW_CHANGESETS','You\x27re\x20not\x20following\x20the\x20presenter','live-share.config','operations','get','url(#$1','defineProperty','pipe','_handleOffline','trim','use','call','random','set','pluginName','NOT_FOLLOWING','replace','className','_handleNewChangeSets','LIVESHARE_REQUEST_HOST','svg','presenting','_collabSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','div','find','_uiPartsService','2533254GkJGoR','_startPresenting','none','function','disposeWithMe','data','current','LIVESHARE_FETCH_OPERATIONS','_init','getInitialStates','string','_reporters','displayName','unsubscribe','text','entries','Stop\x20following','univer-size-4','getOwnPropertyDescriptor','propertyIsEnumerable','event$','UNIVER_SHEET','_status$','_mountLiveShare','not-following','OFFLINE','includes','offline','tag','9aQQNxi','mask','memberID','extend','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','stopFollowing','parse','4Neevxe','xlink:href','_stopFollowing','prototype','type','_status','_presenter','_fetchOperations','idle','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOperation','then','fill','getLiveShareCoordinator','_handleTerminate','override','stringify','subscribe','getTypeOfUnitDisposed$','delete','getOwnPropertySymbols','executeCommand','IDLE','assign','stopPresenting','map','FOLLOWING','registerSharedOperation','registerInitialStateReporter','1240210VMgtcu','symbol','_sharedOperations','LIVESHARE_TERMINATE','tryStartPresenting','getCurrentTypeOfUnit$','_liveShareService','getValue','concat','colorChannel1','icon','_univerInstanceService','params','button','attrs','Start','Stop\x20presenting','following','registerComponent','dispose','evenodd','UniverIcon','getUnitId','indexOf','PRESENTING','You\x27re\x20presenting\x20the\x20document','Present\x20this\x20document','9774058wqWdMc','next','reverse','_handleOnline','sheet','getTypeOfUnitAdded$','getConfig','requireSession','UNIVER_LIVE_SHARE_PLUGIN','_unitID','univerjs-icon\x20univerjs-icon-','6057120vzzsij','init','mutations','ONLINE','0\x200\x2017\x2017','_stopPresenting','20275GrDdZS','_collabSessionService','path','_beIdle','currentColor','UNIVER_UNKNOWN','idSuffix','length','LiveShareIcon','defs','_commandDisposable','1em','_injector','dispose$','shouldShareOperation','has','from','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','createInstance','188ReWBoQ'];_0x4f37=function(){return _0x1fdb8e;};return _0x4f37();}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x36f017=_0xde17;(function(_0xcac48b,_0x172d45){var _0x289873=_0xde17,_0x41bf4f=_0xcac48b();while(!![]){try{var _0x338b47=parseInt(_0x289873(0x22e))/0x1+parseInt(_0x289873(0x26b))/0x2*(-parseInt(_0x289873(0x1df))/0x3)+parseInt(_0x289873(0x1da))/0x4+-parseInt(_0x289873(0x1bd))/0x5+parseInt(_0x289873(0x1d0))/0x6*(-parseInt(_0x289873(0x245))/0x7)+parseInt(_0x289873(0x240))/0x8*(parseInt(_0x289873(0x1c7))/0x9)+-parseInt(_0x289873(0x1dc))/0xa;if(_0x338b47===_0x172d45)break;else _0x41bf4f['push'](_0x41bf4f['shift']());}catch(_0x1d81f4){_0x41bf4f['push'](_0x41bf4f['shift']());}}}(_0x237f,0xac0db));var q=Object[_0x36f017(0x1d5)],z=(_0x4bf46c,_0xb1213e,_0x2aff38)=>_0xb1213e in _0x4bf46c?q(_0x4bf46c,_0xb1213e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2aff38}):_0x4bf46c[_0xb1213e]=_0x2aff38,d=(_0x38a0e8,_0x299499,_0x9e8ed5)=>z(_0x38a0e8,typeof _0x299499!=_0x36f017(0x1f6)?_0x299499+'':_0x299499,_0x9e8ed5);import{Disposable as _0x1921d4,toDisposable as _0x363c38,IUniverInstanceService as _0x3f3fb4,Inject as _0x3b82a6,Injector as _0x11e997,IConfigService as _0x2ade0c,ICommandService as _0x5b1a08,RxDisposable as _0xdfd2c9,UniverInstanceType as _0x3488c4,DisposableCollection as _0x432129,CommandType as _0x55283a,DependentOn as _0x3c9495,Plugin as _0x1c42d2,merge as _0x3fdcd0,registerDependencies as _0x29e73f,mergeOverrideWithDependencies as _0x5e60eb,touchDependencies as _0x184d91}from'@univerjs/core';import{useDependency as _0x57a76c,useObservable as _0x28c88f,IUIPartsService as _0x3c6a2e,BuiltInUIPart as _0x4db87a,connectInjector as _0x518bf9}from'@univerjs/ui';import{jsx as _0x36e838,jsxs as _0x5ddc08,Fragment as _0x10e248}from'react/jsx-runtime';import{Dropdown as _0x1eee21,clsx as _0x28accc,Button as _0x564e8c}from'@univerjs/design';import{forwardRef as _0x49863e,useRef as _0xeec105,createElement as _0xb83fdd,useState as _0x49d219,useEffect as _0x2e558b}from'react';import{CollaborationEvent as _0x33da1b,parseProtocolChangeset as _0x35401c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x28485c,SessionStatus as _0x593165,UniverCollaborationClientPlugin as _0x2e766a}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xdd3b8d,SetWorksheetActiveOperation as _0x541ec2}from'@univerjs/sheets';import{BehaviorSubject as _0x34eac5,Subject as _0x9375f3}from'rxjs';import{takeUntil as _0xc1bed8,throttleTime as _0x4b7434}from'rxjs/operators';import{SetZoomRatioOperation as _0x17d0cb,SetScrollOperation as _0x43d03b}from'@univerjs/sheets-ui';var c=function(){var _0x1adb03=_0x36f017;return c=Object[_0x1adb03(0x1d2)]||function(_0x2e490c){var _0xb6bce9=_0x1adb03;for(var _0x5ed74c,_0x545095=0x1,_0x2cdad7=arguments['length'];_0x545095<_0x2cdad7;_0x545095++){_0x5ed74c=arguments[_0x545095];for(var _0x227c8f in _0x5ed74c)Object[_0xb6bce9(0x20b)]['hasOwnProperty'][_0xb6bce9(0x232)](_0x5ed74c,_0x227c8f)&&(_0x2e490c[_0x227c8f]=_0x5ed74c[_0x227c8f]);}return _0x2e490c;},c['apply'](this,arguments);},Oe=function(_0x285852,_0x4be77d){var _0x43b9d7=_0x36f017,_0x4cf2a8={};for(var _0x5d3a62 in _0x285852)Object[_0x43b9d7(0x20b)][_0x43b9d7(0x1fb)][_0x43b9d7(0x232)](_0x285852,_0x5d3a62)&&_0x4be77d['indexOf'](_0x5d3a62)<0x0&&(_0x4cf2a8[_0x5d3a62]=_0x285852[_0x5d3a62]);if(_0x285852!=null&&typeof Object[_0x43b9d7(0x210)]==_0x43b9d7(0x1cf)){for(var _0x58bcf8=0x0,_0x5d3a62=Object[_0x43b9d7(0x210)](_0x285852);_0x58bcf8<_0x5d3a62[_0x43b9d7(0x211)];_0x58bcf8++)_0x4be77d[_0x43b9d7(0x200)](_0x5d3a62[_0x58bcf8])<0x0&&Object[_0x43b9d7(0x20b)][_0x43b9d7(0x258)][_0x43b9d7(0x232)](_0x285852,_0x5d3a62[_0x58bcf8])&&(_0x4cf2a8[_0x5d3a62[_0x58bcf8]]=_0x285852[_0x5d3a62[_0x58bcf8]]);}return _0x4cf2a8;},W=_0x49863e(function(_0x140002,_0x29b62c){var _0x1f316a=_0x36f017,_0x3f0948=_0x140002['icon'],_0x16ffee=_0x140002['id'],_0x3be45d=_0x140002[_0x1f316a(0x231)],_0x4ce05d=_0x140002[_0x1f316a(0x1eb)],_0x19e407=Oe(_0x140002,[_0x1f316a(0x1e4),'id',_0x1f316a(0x231),_0x1f316a(0x1eb)]),_0x5d6c39=_0x1f316a(0x25c)[_0x1f316a(0x1b9)](_0x16ffee,'\x20')[_0x1f316a(0x1b9)](_0x3be45d||'')[_0x1f316a(0x25f)](),_0x6daf92=_0xeec105('_'['concat'](Ne()));return Y(_0x3f0948,''['concat'](_0x16ffee),{'defIds':_0x3f0948['defIds'],'idSuffix':_0x6daf92['current']},c({'ref':_0x29b62c,'className':_0x5d6c39},_0x19e407),_0x4ce05d);});function Y(_0x3b16cf,_0x1bbdb3,_0x5844dd,_0x476478,_0x4c9543){var _0x250ff0=_0x36f017;return _0xb83fdd(_0x3b16cf['tag'],c(c({'key':_0x1bbdb3},Ee(_0x3b16cf,_0x5844dd,_0x4c9543)),_0x476478),(we(_0x3b16cf,_0x5844dd)[_0x250ff0(0x264)]||[])['map'](function(_0x128f71,_0x5a417d){var _0x345d98=_0x250ff0;return Y(_0x128f71,''[_0x345d98(0x1b9)](_0x1bbdb3,'-')[_0x345d98(0x1b9)](_0x3b16cf['tag'],'-')['concat'](_0x5a417d),_0x5844dd,void 0x0,_0x4c9543);}));}function Ee(_0x3aa95f,_0x56f229,_0x48e478){var _0x3484e3=_0x36f017,_0x16e0d6=c({},_0x3aa95f[_0x3484e3(0x218)]);_0x48e478!=null&&_0x48e478[_0x3484e3(0x23c)]&&_0x16e0d6['fill']===_0x3484e3(0x23c)&&(_0x16e0d6[_0x3484e3(0x255)]=_0x48e478['colorChannel1']),_0x3aa95f[_0x3484e3(0x1cb)]===_0x3484e3(0x252)&&_0x16e0d6['id']&&(_0x16e0d6['id']=_0x16e0d6['id']+_0x56f229[_0x3484e3(0x249)]),Object[_0x3484e3(0x1c8)](_0x16e0d6)[_0x3484e3(0x22a)](function(_0x3f28e3){var _0x38e353=_0x3484e3,_0x3ccf23=_0x3f28e3[0x0],_0x15e967=_0x3f28e3[0x1];_0x3ccf23===_0x38e353(0x252)&&typeof _0x15e967==_0x38e353(0x241)&&(_0x16e0d6[_0x3ccf23]=_0x15e967[_0x38e353(0x217)](/url\(#(.*)\)/,'url(#$1'[_0x38e353(0x1b9)](_0x56f229[_0x38e353(0x249)],')')));});var _0x1e2cf7=_0x56f229[_0x3484e3(0x1c5)];return!_0x1e2cf7||_0x1e2cf7['length']===0x0||(_0x3aa95f[_0x3484e3(0x1cb)]===_0x3484e3(0x259)&&_0x16e0d6[_0x3484e3(0x205)]&&(_0x16e0d6[_0x3484e3(0x205)]=_0x16e0d6[_0x3484e3(0x205)]+_0x56f229[_0x3484e3(0x249)]),Object[_0x3484e3(0x1c8)](_0x16e0d6)[_0x3484e3(0x22a)](function(_0x3f7d54){var _0x1686a0=_0x3484e3,_0x5a02e4=_0x3f7d54[0x0],_0x4c247b=_0x3f7d54[0x1];typeof _0x4c247b==_0x1686a0(0x241)&&(_0x16e0d6[_0x5a02e4]=_0x4c247b['replace'](/url\(#(.*)\)/,_0x1686a0(0x1c3)['concat'](_0x56f229['idSuffix'],')')));})),_0x16e0d6;}function we(_0x16b127,_0x1522ad){var _0x252079=_0x36f017,_0x4d6756,_0x6111ef=_0x1522ad['defIds'];return!_0x6111ef||_0x6111ef[_0x252079(0x211)]===0x0?_0x16b127:_0x16b127[_0x252079(0x1cb)]===_0x252079(0x221)&&(!((_0x4d6756=_0x16b127['children'])===null||_0x4d6756===void 0x0)&&_0x4d6756['length'])?c(c({},_0x16b127),{'children':_0x16b127[_0x252079(0x264)][_0x252079(0x1d9)](function(_0x52287a){var _0x2b7973=_0x252079;return typeof _0x52287a[_0x2b7973(0x218)]['id']=='string'&&_0x6111ef&&_0x6111ef[_0x2b7973(0x21e)](_0x52287a[_0x2b7973(0x218)]['id'])?c(c({},_0x52287a),{'attrs':c(c({},_0x52287a[_0x2b7973(0x218)]),{'id':_0x52287a[_0x2b7973(0x218)]['id']+_0x1522ad[_0x2b7973(0x249)]})}):_0x52287a;})}):_0x16b127;}function Ne(){var _0x5e6acc=_0x36f017;return Math['random']()[_0x5e6acc(0x247)](0x24)[_0x5e6acc(0x1c1)](0x2,0x8);}W[_0x36f017(0x1d1)]='UniverIcon';var Ce={'tag':_0x36f017(0x254),'attrs':{'xmlns':_0x36f017(0x1bf),'fill':_0x36f017(0x1cc),'viewBox':_0x36f017(0x1f5),'width':_0x36f017(0x1b7),'height':_0x36f017(0x1b7)},'children':[{'tag':_0x36f017(0x251),'attrs':{'fill':_0x36f017(0x1d3),'d':_0x36f017(0x203)}},{'tag':'path','attrs':{'fill':_0x36f017(0x1d3),'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':_0x36f017(0x268),'clipRule':'evenodd'}}]},B=_0x49863e(function(_0xd3acb0,_0x3c2a13){var _0x12eb01=_0x36f017;return _0xb83fdd(W,Object[_0x12eb01(0x1d2)]({},_0xd3acb0,{'id':'live-share-icon','ref':_0x3c2a13,'icon':Ce}));});B['displayName']=_0x36f017(0x213);class L extends _0x1921d4{constructor(){var _0x472517=_0x36f017;super(...arguments),d(this,_0x472517(0x25a),new Set()),d(this,_0x472517(0x269),new Set());}[_0x36f017(0x1ba)](_0x2df393){var _0x2f8243=_0x36f017;return this[_0x2f8243(0x25a)][_0x2f8243(0x23d)](_0x2df393),_0x363c38(()=>this[_0x2f8243(0x25a)][_0x2f8243(0x1bb)](_0x2df393));}[_0x36f017(0x23f)](_0x195f86){var _0x2420a9=_0x36f017;return this['_reporters'][_0x2420a9(0x23d)](_0x195f86),_0x363c38(()=>this[_0x2420a9(0x269)][_0x2420a9(0x1bb)](_0x195f86));}[_0x36f017(0x23b)](_0x51df3a){var _0x3e410b=_0x36f017;return this[_0x3e410b(0x25a)]['has'](_0x51df3a);}[_0x36f017(0x1cd)](_0xf827d9){var _0x16202c=_0x36f017;return Array[_0x16202c(0x21f)](this[_0x16202c(0x269)])[_0x16202c(0x1d9)](_0x444bb9=>_0x444bb9(_0xf827d9));}}var De=Object[_0x36f017(0x20c)],Z=(_0xa9bc40,_0x298351,_0x249e54,_0x26d69e)=>{var _0x538142=_0x36f017;for(var _0x4af965=_0x26d69e>0x1?void 0x0:_0x26d69e?De(_0x298351,_0x249e54):_0x298351,_0x3adbe4=_0xa9bc40[_0x538142(0x211)]-0x1,_0x55b2c9;_0x3adbe4>=0x0;_0x3adbe4--)(_0x55b2c9=_0xa9bc40[_0x3adbe4])&&(_0x4af965=_0x55b2c9(_0x4af965)||_0x4af965);return _0x4af965;},f=(_0x316b48,_0x16d6cd)=>(_0x165a57,_0x6e667d)=>_0x16d6cd(_0x165a57,_0x6e667d,_0x316b48);function _0x237f(){var _0x52d027=['presenter','xlink:href','ONLINE','type','PRESENTING','IDLE','button','prototype','getOwnPropertyDescriptor','Stop\x20following','_handleNewChangeSets','init','getOwnPropertySymbols','length','_beIdle','LiveShareIcon','onCommandExecuted','live-share.config','_unitID','replace','attrs','default','_presenter','OPERATION','_liveShareService','unitId','includes','from','setConfig','defs','end','has','executeCommand','stringify','parse','_univerInstanceService','dispose','onRendered','forEach','params','override','You\x27are\x20offline.','590919cKpoQM','send','_commandService','className','call','_fetchOperations','asObservable','You\x27re\x20following\x20the\x20presenter','NOT_FOLLOWING','_commandDisposable','Stop\x20presenting','You\x27re\x20not\x20following\x20the\x20presenter','div','shouldShareOperation','colorChannel1','add','idle','registerInitialStateReporter','4400ByQvPR','string','NEW_CHANGESETS','_handleTerminate','get','177457OwesLY','_status','toString','pluginName','idSuffix','following','complete','offline','stopPresenting','dispose$','_stopFollowing','LIVESHARE_TERMINATE','path','mask','status$','svg','fill','You\x27re\x20presenting\x20the\x20document','_stopPresenting','propertyIsEnumerable','use','_sharedOperations','_collabSession','univerjs-icon\x20univerjs-icon-','LIVESHARE_OPERATION','presenting','trim','subscribe','next','OFFLINE','mutations','children','_handleOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','values','evenodd','_reporters','disposeWithMe','134pknacZ','1em','event$','concat','registerSharedOperation','delete','not-following','684730RbGSvS','text','http://www.w3.org/2000/svg','current','substring','clear','url(#$1','getTypeOfUnitAdded$','defIds','_uiPartsService','20250hKPpCu','entries','_status$','registerComponent','tag','none','getInitialStates','then','function','114LfraSY','displayName','assign','currentColor','getTypeOfUnitDisposed$','defineProperty','_injector','_configService','LIVESHARE_FETCH_OPERATIONS','map','3522632lkOwvs','Start','6600540VmDRYr','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','set','32493wDhdvG','getUnitId','UNIVER_SHEET','pipe','onStarting','icon','Present\x20this\x20document','tryStartPresenting','sheet','data','_startFollowing','getMemberID','extend','_handleNewHost','getLiveShareCoordinator','_handleOnline','LIVESHARE_NEW_HOST','_mountLiveShare','_entities','memberID','LIVESHARE_REQUEST_HOST','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','0\x200\x2017\x2017','symbol','univer-size-4','_startLiveShareCoordinator','_config','startFollowing','hasOwnProperty','SAME_OPERATION_SHARE_INTERVAL','UNIVER_UNKNOWN','_init','FOLLOWING','indexOf','HEADER_MENU','getCurrentTypeOfUnit$','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'];_0x237f=function(){return _0x52d027;};return _0x237f();}let m=class extends _0xdfd2c9{constructor(_0x54836d,_0x56e546,_0x306dbe){var _0x14ed57=_0x36f017;super(),d(this,_0x14ed57(0x1f1),new Map()),(this[_0x14ed57(0x227)]=_0x54836d,this['_injector']=_0x56e546,this['_collabSessionService']=_0x306dbe,this[_0x14ed57(0x1fe)]());}async[_0x36f017(0x1ed)](_0x4c8b1a){var _0x2b5ff3=_0x36f017;return this[_0x2b5ff3(0x1f1)][_0x2b5ff3(0x223)](_0x4c8b1a)||await this[_0x2b5ff3(0x1f8)](_0x4c8b1a),this[_0x2b5ff3(0x1f1)][_0x2b5ff3(0x244)](_0x4c8b1a);}[_0x36f017(0x1fe)](){var _0x4d075c=_0x36f017;this[_0x4d075c(0x227)][_0x4d075c(0x1c4)](_0x3488c4['UNIVER_SHEET'])[_0x4d075c(0x1e2)](_0xc1bed8(this[_0x4d075c(0x24e)]))[_0x4d075c(0x260)](async _0x19b151=>{var _0x4ecd04=_0x4d075c;const _0x5b2b43=_0x19b151[_0x4ecd04(0x1e0)]();this[_0x4ecd04(0x1f1)][_0x4ecd04(0x223)](_0x5b2b43)||this[_0x4ecd04(0x1f8)](_0x5b2b43);}),this['_univerInstanceService'][_0x4d075c(0x1d4)](_0x3488c4[_0x4d075c(0x1e1)])[_0x4d075c(0x1e2)](_0xc1bed8(this[_0x4d075c(0x24e)]))[_0x4d075c(0x260)](_0x22d5f7=>{var _0x58a968=_0x4d075c;const _0x169255=_0x22d5f7[_0x58a968(0x1e0)](),_0x3fe5bd=this[_0x58a968(0x1f1)][_0x58a968(0x244)](_0x169255);_0x3fe5bd==null||_0x3fe5bd[_0x58a968(0x228)]();});}async[_0x36f017(0x1f8)](_0xdb4d1b){var _0x1d039c=_0x36f017;const _0x17fcda=await this['_collabSessionService']['requireSession'](_0xdb4d1b),_0x11cf26=this[_0x1d039c(0x1d6)]['createInstance'](C,_0xdb4d1b,_0x17fcda);return _0x11cf26[_0x1d039c(0x20f)](),this[_0x1d039c(0x1f1)][_0x1d039c(0x1de)](_0xdb4d1b,_0x11cf26),_0x11cf26;}};m=Z([f(0x0,_0x3f3fb4),f(0x1,_0x3b82a6(_0x11e997)),f(0x2,_0x3b82a6(_0x28485c))],m);var h=(_0x26ccc0=>(_0x26ccc0[_0x36f017(0x262)]='offline',_0x26ccc0[_0x36f017(0x209)]=_0x36f017(0x23e),_0x26ccc0[_0x36f017(0x1ff)]=_0x36f017(0x24a),_0x26ccc0[_0x36f017(0x236)]=_0x36f017(0x1bc),_0x26ccc0['PRESENTING']=_0x36f017(0x25e),_0x26ccc0))(h||{});const xe=_0x36f017(0x1fc),Le=0xc8;let C=class extends _0xdfd2c9{constructor(_0x4a4d2e,_0x2c1aa0,_0x1dfa73,_0x325da8,_0x14c4f4){var _0x1e1eb5=_0x36f017;super(),d(this,_0x1e1eb5(0x1c9),new _0x34eac5(_0x1e1eb5(0x23e))),d(this,_0x1e1eb5(0x253),this[_0x1e1eb5(0x1c9)][_0x1e1eb5(0x234)]()),d(this,'_init',!0x1),d(this,_0x1e1eb5(0x237),null),d(this,_0x1e1eb5(0x21a),null),(this['_unitID']=_0x4a4d2e,this[_0x1e1eb5(0x25b)]=_0x2c1aa0,this[_0x1e1eb5(0x1d7)]=_0x1dfa73,this[_0x1e1eb5(0x21c)]=_0x325da8,this[_0x1e1eb5(0x230)]=_0x14c4f4);}get[_0x36f017(0x246)](){return this['_status$']['getValue']();}['dispose'](){var _0x27192a=_0x36f017,_0x4c5a36;(_0x4c5a36=this[_0x27192a(0x237)])==null||_0x4c5a36[_0x27192a(0x228)](),this[_0x27192a(0x1c9)][_0x27192a(0x261)](_0x27192a(0x23e)),this[_0x27192a(0x1c9)][_0x27192a(0x24b)]();}[_0x36f017(0x20f)](){var _0x1e040b=_0x36f017;this[_0x1e040b(0x1fe)]||(this['_init']=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0xc1bed8(this[_0x1e040b(0x24e)]))[_0x1e040b(0x260)](_0x4f4e4c=>{var _0x443822=_0x1e040b;switch(_0x4f4e4c){case _0x593165[_0x443822(0x262)]:this['_handleOffline']();break;case _0x593165[_0x443822(0x206)]:this[_0x443822(0x1ee)]();break;}}),this['_collabSession'][_0x1e040b(0x1b8)][_0x1e040b(0x1e2)](_0xc1bed8(this[_0x1e040b(0x24e)]))['subscribe'](_0x177773=>{var _0x42f088=_0x1e040b;const {eventID:_0x4323e4}=_0x177773;switch(_0x4323e4){case _0x33da1b[_0x42f088(0x1ef)]:this[_0x42f088(0x1ec)](_0x177773);break;case _0x33da1b[_0x42f088(0x25d)]:this['_handleOperation'](_0x177773);break;case _0x33da1b[_0x42f088(0x250)]:this[_0x42f088(0x243)]();break;case _0x33da1b[_0x42f088(0x242)]:this[_0x42f088(0x20e)](_0x177773);break;}}));}['tryStartPresenting'](){var _0x2471d2=_0x36f017;this[_0x2471d2(0x25b)][_0x2471d2(0x22f)]({'eventID':_0x33da1b[_0x2471d2(0x1f3)],'data':{'unitID':this[_0x2471d2(0x216)],'userID':this[_0x2471d2(0x25b)][_0x2471d2(0x1ea)]()}},this[_0x2471d2(0x216)]);}[_0x36f017(0x24d)](){var _0x1238ee=_0x36f017;this[_0x1238ee(0x246)]===_0x1238ee(0x25e)&&(this['_status$'][_0x1238ee(0x261)](_0x1238ee(0x23e)),this[_0x1238ee(0x25b)][_0x1238ee(0x22f)]({'eventID':_0x33da1b['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1238ee(0x216)]}},this[_0x1238ee(0x216)]));}[_0x36f017(0x1fa)](){var _0x46066f=_0x36f017;this[_0x46066f(0x246)]===_0x46066f(0x1bc)&&(this[_0x46066f(0x1c9)]['next']('following'),this['_startFollowing']());}['stopFollowing'](){var _0x493f87=_0x36f017;this[_0x493f87(0x246)]===_0x493f87(0x24a)&&this[_0x493f87(0x24f)]();}['_handleNewHost'](_0x1d1022){var _0x21e974=_0x36f017;const {presenter:_0x588e21}=_0x1d1022[_0x21e974(0x1e8)],_0x3114ad=this[_0x21e974(0x25b)][_0x21e974(0x1ea)]();this[_0x21e974(0x21a)]=_0x588e21,_0x588e21===_0x3114ad?(this[_0x21e974(0x24f)](),this['_startPresenting']()):this[_0x21e974(0x246)]!=='not-following'&&(this[_0x21e974(0x257)](),this['_startFollowing']());}['_fetchOperations'](){var _0xb4962b=_0x36f017;const _0x4eb71a={'eventID':_0x33da1b[_0xb4962b(0x1d8)]};this[_0xb4962b(0x25b)][_0xb4962b(0x22f)](_0x4eb71a,this[_0xb4962b(0x216)]);}[_0x36f017(0x243)](){var _0x1a391e=_0x36f017;this['_presenter']=null,this['_status']!==_0x1a391e(0x25e)&&this[_0x1a391e(0x212)]();}[_0x36f017(0x20e)](_0x33a4c8){var _0x2b0abf=_0x36f017;if(this[_0x2b0abf(0x246)]===_0x2b0abf(0x24a)&&this[_0x2b0abf(0x21a)]===_0x33a4c8['data'][_0x2b0abf(0x1f2)]){const _0x147bd7=_0x35401c(_0x33a4c8[_0x2b0abf(0x1e8)])[_0x2b0abf(0x263)]['reverse']()['find'](_0x4e130c=>_0x4e130c['id']===_0xdd3b8d['id']);if(_0x147bd7){const _0x159c1a=_0x147bd7['params'][_0x2b0abf(0x21d)],_0xd73be7=_0x147bd7[_0x2b0abf(0x22b)][_0x2b0abf(0x1e7)]['id'];setTimeout(()=>{var _0x4abac8=_0x2b0abf;this[_0x4abac8(0x230)][_0x4abac8(0x224)](_0x541ec2['id'],{'unitId':_0x159c1a,'subUnitId':_0xd73be7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x5f92b2=_0x36f017;this[_0x5f92b2(0x1c9)]['next'](_0x5f92b2(0x25e));const _0x7c7424=new Map(),_0x587980=this[_0x5f92b2(0x237)]=new _0x432129();_0x587980['add'](_0x363c38(()=>{var _0x9e7eda=_0x5f92b2;_0x7c7424['forEach'](_0x38f085=>_0x38f085[_0x9e7eda(0x24b)]()),_0x7c7424[_0x9e7eda(0x1c2)]();})),_0x587980['add'](this[_0x5f92b2(0x230)][_0x5f92b2(0x214)](_0x273122=>{var _0x421400=_0x5f92b2,_0x1bf6e5;if(_0x273122[_0x421400(0x207)]!==_0x55283a[_0x421400(0x21b)]||!this[_0x421400(0x21c)][_0x421400(0x23b)](_0x273122['id']))return;const {id:_0x1dbf36}=_0x273122;let _0x1867d9;_0x7c7424[_0x421400(0x223)](_0x1dbf36)?_0x1867d9=_0x7c7424[_0x421400(0x244)](_0x1dbf36):(_0x1867d9=new _0x9375f3(),_0x7c7424[_0x421400(0x1de)](_0x1dbf36,_0x1867d9),_0x1867d9['pipe'](_0x4b7434((_0x1bf6e5=this['_configService']['getConfig'](xe))!=null?_0x1bf6e5:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x421400(0x260)](_0x2796c9=>{var _0x2fa187=_0x421400;this[_0x2fa187(0x25b)][_0x2fa187(0x22f)]({'eventID':_0x33da1b['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2fa187(0x216)],'operations':{[_0x2796c9['id']]:{'id':_0x2796c9['id'],'params':JSON[_0x2fa187(0x225)](_0x2796c9['params'])}}}},this[_0x2fa187(0x216)]);})),_0x1867d9[_0x421400(0x261)](_0x273122);})),this['_liveShareService'][_0x5f92b2(0x1cd)](this['_unitID'])[_0x5f92b2(0x22a)](_0x5c3aa3=>this[_0x5f92b2(0x25b)]['send']({'eventID':_0x33da1b[_0x5f92b2(0x25d)],'data':{'unitID':this[_0x5f92b2(0x216)],'operations':{[_0x5c3aa3['id']]:{'id':_0x5c3aa3['id'],'params':JSON[_0x5f92b2(0x225)](_0x5c3aa3[_0x5f92b2(0x22b)])}}}},this[_0x5f92b2(0x216)]));}[_0x36f017(0x257)](){var _0x538659=_0x36f017,_0x338918;this[_0x538659(0x1c9)][_0x538659(0x261)](_0x538659(0x23e)),(_0x338918=this[_0x538659(0x237)])==null||_0x338918[_0x538659(0x228)](),this['_commandDisposable']=null;}[_0x36f017(0x1e9)](){var _0x318f74=_0x36f017,_0x520939;(_0x520939=this['_commandDisposable'])==null||_0x520939[_0x318f74(0x228)](),this[_0x318f74(0x1c9)][_0x318f74(0x261)](_0x318f74(0x24a));}[_0x36f017(0x212)](){var _0x4088bd=_0x36f017,_0x307b78;this[_0x4088bd(0x1c9)][_0x4088bd(0x261)](_0x4088bd(0x23e)),(_0x307b78=this[_0x4088bd(0x237)])==null||_0x307b78[_0x4088bd(0x228)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x5dd3ee=_0x36f017,_0x3062cd;this['_status$'][_0x5dd3ee(0x261)]('not-following'),(_0x3062cd=this[_0x5dd3ee(0x237)])==null||_0x3062cd[_0x5dd3ee(0x228)]();}[_0x36f017(0x265)](_0x229996){var _0x8aa3b=_0x36f017;if([_0x8aa3b(0x25e),_0x8aa3b(0x1bc),_0x8aa3b(0x24c)][_0x8aa3b(0x21e)](this[_0x8aa3b(0x246)])||!_0x229996[_0x8aa3b(0x1e8)][_0x8aa3b(0x204)]||_0x229996['data'][_0x8aa3b(0x204)]===this['_collabSession'][_0x8aa3b(0x1ea)]())return;this['_status']===_0x8aa3b(0x23e)&&this[_0x8aa3b(0x1e9)]();const _0x26b22a=_0x229996['data']['operations'];Object[_0x8aa3b(0x267)](_0x26b22a)[_0x8aa3b(0x22a)](_0x41b2e5=>{var _0x58138c=_0x8aa3b;this[_0x58138c(0x230)][_0x58138c(0x224)](_0x41b2e5['id'],_0x41b2e5['params']?JSON[_0x58138c(0x226)](_0x41b2e5[_0x58138c(0x22b)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x674581=_0x36f017,_0x1c721b;this[_0x674581(0x1c9)]['next'](_0x674581(0x24c)),(_0x1c721b=this[_0x674581(0x237)])==null||_0x1c721b[_0x674581(0x228)]();}[_0x36f017(0x1ee)](){var _0x2e3b5c=_0x36f017;this[_0x2e3b5c(0x1c9)][_0x2e3b5c(0x261)](_0x2e3b5c(0x23e)),this[_0x2e3b5c(0x233)]();}};function _0xde17(_0x321364,_0x57333e){var _0x237f96=_0x237f();return _0xde17=function(_0xde17d,_0xf28e72){_0xde17d=_0xde17d-0x1b7;var _0x4406a2=_0x237f96[_0xde17d];return _0x4406a2;},_0xde17(_0x321364,_0x57333e);}C=Z([f(0x2,_0x2ade0c),f(0x3,_0x3b82a6(L)),f(0x4,_0x5b1a08)],C);function ye(){var _0x49446f=_0x36f017;const _0x7597a9=_0x57a76c(m),_0x3a5aaf=_0x57a76c(_0x3f3fb4),_0x413b7a=_0x28c88f(()=>_0x3a5aaf[_0x49446f(0x202)](_0x3488c4[_0x49446f(0x1e1)]),void 0x0,!0x1,[]),[_0x47c4c7,_0x1922a1]=_0x49d219(null),[_0x15d68f,_0x1e6260]=_0x49d219(h[_0x49446f(0x209)]),_0x1bf422=_0xeec105(null);return _0x2e558b(()=>(_0x413b7a&&_0x7597a9[_0x49446f(0x1ed)](_0x413b7a['getUnitId']())[_0x49446f(0x1ce)](_0x1e8e88=>{var _0x25ecbf=_0x49446f;_0x1922a1(_0x1e8e88),_0x1bf422[_0x25ecbf(0x1c0)]=_0x1e8e88[_0x25ecbf(0x253)]['subscribe'](_0x24b5e2=>{_0x1e6260(_0x24b5e2);});}),()=>{var _0xebf658=_0x49446f,_0x30f78b;(_0x30f78b=_0x1bf422[_0xebf658(0x1c0)])==null||_0x30f78b['unsubscribe'](),_0x1bf422[_0xebf658(0x1c0)]=null;}),[_0x413b7a,_0x7597a9]),_0x47c4c7?_0x36e838(_0x1eee21,{'align':_0x49446f(0x222),'disabled':_0x15d68f===h[_0x49446f(0x262)],'className':_0x49446f(0x1dd),'overlay':_0x36e838(Re,{'status':_0x15d68f,'coordinator':_0x47c4c7}),'children':_0x36e838(_0x49446f(0x20a),{'className':_0x28accc(_0x49446f(0x1f4),{'univer-cursor-not-allowed':_0x15d68f===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x15d68f!==h['OFFLINE']}),'type':'button','children':_0x36e838(B,{'className':_0x49446f(0x1f7)})})}):null;}function Re(_0x142e45){var _0x1f880a=_0x36f017;const {status:_0x3626be,coordinator:_0x1fcb92}=_0x142e45;switch(_0x3626be){case h['IDLE']:return _0x36e838(Pe,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x1ff)]:return _0x36e838(Ae,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x236)]:return _0x36e838(Te,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x262)]:return _0x36e838(Fe,{});case h[_0x1f880a(0x208)]:return _0x36e838($e,{'coordinator':_0x1fcb92});default:return null;}}function Pe(_0x4fab17){var _0x49e46f=_0x36f017;const {coordinator:_0x2cdd39}=_0x4fab17;return _0x5ddc08(_0x10e248,{'children':[_0x36e838('div',{'className':_0x49e46f(0x266),'children':_0x49e46f(0x1e5)}),_0x36e838(_0x564e8c,{'onClick':()=>_0x2cdd39[_0x49e46f(0x1e6)](),'children':_0x49e46f(0x1db)})]});}function Ae(_0x89f442){var _0x2170e4=_0x36f017;const {coordinator:_0x48390b}=_0x89f442;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x2170e4(0x23a),{'className':_0x2170e4(0x266),'children':_0x2170e4(0x235)}),_0x36e838(_0x564e8c,{'onClick':()=>_0x48390b['stopFollowing'](),'children':_0x2170e4(0x20d)})]});}function Te(_0x29f184){var _0x2d6a4a=_0x36f017;const {coordinator:_0x1b70a0}=_0x29f184;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x2d6a4a(0x23a),{'className':_0x2d6a4a(0x266),'children':_0x2d6a4a(0x239)}),_0x36e838(_0x564e8c,{'variant':_0x2d6a4a(0x1be),'onClick':()=>_0x1b70a0[_0x2d6a4a(0x1fa)](),'children':'Start\x20following'})]});}function $e(_0x47991e){var _0x4a4bdb=_0x36f017;const {coordinator:_0x1e5ec1}=_0x47991e;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x4a4bdb(0x23a),{'className':_0x4a4bdb(0x266),'children':_0x4a4bdb(0x256)}),_0x36e838(_0x564e8c,{'variant':_0x4a4bdb(0x219),'onClick':()=>_0x1e5ec1[_0x4a4bdb(0x24d)](),'children':_0x4a4bdb(0x238)})]});}function Fe(){var _0x5685cf=_0x36f017;return _0x36e838(_0x10e248,{'children':_0x5685cf(0x22d)});}var He=Object[_0x36f017(0x20c)],je=(_0x564edb,_0x4c8839,_0x2db3c0,_0x5bff78)=>{for(var _0x4491a2=_0x5bff78>0x1?void 0x0:_0x5bff78?He(_0x4c8839,_0x2db3c0):_0x4c8839,_0x30d74a=_0x564edb['length']-0x1,_0x349018;_0x30d74a>=0x0;_0x30d74a--)(_0x349018=_0x564edb[_0x30d74a])&&(_0x4491a2=_0x349018(_0x4491a2)||_0x4491a2);return _0x4491a2;},T=(_0x4ee606,_0x55ee6c)=>(_0x5f022d,_0x2e0e92)=>_0x55ee6c(_0x5f022d,_0x2e0e92,_0x4ee606);let I=class extends _0x1921d4{constructor(_0x3f9f5f,_0x2c7932){var _0x13c02f=_0x36f017;super(),this[_0x13c02f(0x1d6)]=_0x3f9f5f,this[_0x13c02f(0x1c6)]=_0x2c7932,this[_0x13c02f(0x1f0)]();}[_0x36f017(0x1f0)](){var _0x3f47ee=_0x36f017;this['disposeWithMe'](this[_0x3f47ee(0x1c6)][_0x3f47ee(0x1ca)](_0x4db87a[_0x3f47ee(0x201)],()=>_0x518bf9(ye,this[_0x3f47ee(0x1d6)])));}};I=je([T(0x0,_0x3b82a6(_0x11e997)),T(0x1,_0x3c6a2e)],I);const Ue=_0x36f017(0x215),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x514688,_0x36d2be,_0x4223c8,_0x540ba4)=>{var _0xdb5efb=_0x36f017;for(var _0x4e489a=_0x540ba4>0x1?void 0x0:_0x540ba4?Ve(_0x36d2be,_0x4223c8):_0x36d2be,_0x513e1f=_0x514688[_0xdb5efb(0x211)]-0x1,_0x4ca992;_0x513e1f>=0x0;_0x513e1f--)(_0x4ca992=_0x514688[_0x513e1f])&&(_0x4e489a=_0x4ca992(_0x4e489a)||_0x4e489a);return _0x4e489a;},ke=(_0x40b66d,_0xd0b1b9)=>(_0x4724d7,_0x10ed8d)=>_0xd0b1b9(_0x4724d7,_0x10ed8d,_0x40b66d);let b=class extends _0x1921d4{constructor(_0x25c18f){var _0x18875a=_0x36f017;super(),this[_0x18875a(0x21c)]=_0x25c18f,this['_init']();}['_init'](){[_0x17d0cb['id'],_0x43d03b['id'],_0x541ec2['id']]['forEach'](_0x9f46d7=>{var _0x21b0fa=_0xde17;this[_0x21b0fa(0x26a)](this[_0x21b0fa(0x21c)]['registerSharedOperation'](_0x9f46d7));});}};b=Me([ke(0x0,_0x3b82a6(L))],b);var Ge=Object[_0x36f017(0x1d5)],We=Object[_0x36f017(0x20c)],Ye=(_0x23d052,_0x18803a,_0x1ae5c9)=>_0x18803a in _0x23d052?Ge(_0x23d052,_0x18803a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ae5c9}):_0x23d052[_0x18803a]=_0x1ae5c9,Be=(_0xece216,_0x45f951,_0x59ab6f,_0x2b89ac)=>{var _0x27d4b4=_0x36f017;for(var _0x428ec4=_0x2b89ac>0x1?void 0x0:_0x2b89ac?We(_0x45f951,_0x59ab6f):_0x45f951,_0x100709=_0xece216[_0x27d4b4(0x211)]-0x1,_0x482983;_0x100709>=0x0;_0x100709--)(_0x482983=_0xece216[_0x100709])&&(_0x428ec4=_0x482983(_0x428ec4)||_0x428ec4);return _0x428ec4;},F=(_0x17dbcc,_0x15d582)=>(_0x5639c8,_0x4f64fe)=>_0x15d582(_0x5639c8,_0x4f64fe,_0x17dbcc),J=(_0x186778,_0x2e2554,_0x4cea52)=>Ye(_0x186778,typeof _0x2e2554!=_0x36f017(0x1f6)?_0x2e2554+'':_0x2e2554,_0x4cea52);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1c42d2{constructor(_0x3a181e=$,_0x41e95f,_0xf09914){var _0x356bbe=_0x36f017;super(),this[_0x356bbe(0x1f9)]=_0x3a181e,this[_0x356bbe(0x1d6)]=_0x41e95f,this['_configService']=_0xf09914;const {..._0x531b46}=_0x3fdcd0({},$,this['_config']);this[_0x356bbe(0x1d7)][_0x356bbe(0x220)](Ue,_0x531b46);}[_0x36f017(0x1e3)](){var _0x170eda=_0x36f017;_0x29e73f(this['_injector'],_0x5e60eb([[L],[m],[b],[I]],this['_config'][_0x170eda(0x22c)])),_0x184d91(this[_0x170eda(0x1d6)],[[b]]);}[_0x36f017(0x229)](){var _0x4a7004=_0x36f017;_0x184d91(this[_0x4a7004(0x1d6)],[[I]]);}};J(O,_0x36f017(0x207),_0x3488c4[_0x36f017(0x1fd)]),J(O,_0x36f017(0x248),Ze),O=Be([_0x3c9495(_0x2e766a),F(0x1,_0x3b82a6(_0x11e997)),F(0x2,_0x2ade0c)],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 _0x1a1d63=_0x1da0;(function(_0x489578,_0x585e67){var _0x4bf52c=_0x1da0,_0x213361=_0x489578();while(!![]){try{var _0x2d25e7=parseInt(_0x4bf52c(0x121))/0x1+parseInt(_0x4bf52c(0x168))/0x2*(-parseInt(_0x4bf52c(0x144))/0x3)+-parseInt(_0x4bf52c(0x10d))/0x4*(-parseInt(_0x4bf52c(0x1b1))/0x5)+-parseInt(_0x4bf52c(0x1ab))/0x6+parseInt(_0x4bf52c(0x1a0))/0x7+-parseInt(_0x4bf52c(0x11d))/0x8*(-parseInt(_0x4bf52c(0x161))/0x9)+-parseInt(_0x4bf52c(0x185))/0xa;if(_0x2d25e7===_0x585e67)break;else _0x213361['push'](_0x213361['shift']());}catch(_0x1f1b08){_0x213361['push'](_0x213361['shift']());}}}(_0x4f37,0xf07a1));var q=Object[_0x1a1d63(0x12f)],z=(_0x34dae0,_0x312df0,_0x109e3a)=>_0x312df0 in _0x34dae0?q(_0x34dae0,_0x312df0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x109e3a}):_0x34dae0[_0x312df0]=_0x109e3a,d=(_0x57a19d,_0x47477b,_0x5129b7)=>z(_0x57a19d,typeof _0x47477b!=_0x1a1d63(0x186)?_0x47477b+'':_0x47477b,_0x5129b7);import{Disposable as _0x3afd44,toDisposable as _0x31b3e3,IUniverInstanceService as _0x3f2da5,Inject as _0x42e8ee,Injector as _0x51ecf2,IConfigService as _0x5bfcf1,ICommandService as _0xd54193,RxDisposable as _0x2a0f78,UniverInstanceType as _0x2c0aab,DisposableCollection as _0x514287,CommandType as _0x1a48da,DependentOn as _0x1db083,Plugin as _0x3c29f5,merge as _0x4f7afb,registerDependencies as _0xae8f0b,mergeOverrideWithDependencies as _0x309e1a,touchDependencies as _0x524ac9}from'@univerjs/core';import{useDependency as _0x33b945,useObservable as _0x373395,IUIPartsService as _0x4f4ad0,BuiltInUIPart as _0x323e4b,connectInjector as _0x9c8981}from'@univerjs/ui';import{jsx as _0x1e87d0,jsxs as _0x306d4c,Fragment as _0x45035c}from'react/jsx-runtime';import{Dropdown as _0x5e88bc,clsx as _0x42df54,Button as _0x5d53a5}from'@univerjs/design';import{forwardRef as _0x2d86dd,useRef as _0x436df5,createElement as _0x14aa02,useState as _0x401fbb,useEffect as _0x3a8270}from'react';import{CollaborationEvent as _0x572b1a,parseProtocolChangeset as _0x25bb86}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x300a35,SessionStatus as _0x80727d,UniverCollaborationClientPlugin as _0x54a0db}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x32919f,SetWorksheetActiveOperation as _0x160433}from'@univerjs/sheets';import{BehaviorSubject as _0x5cb4f1,Subject as _0x5ec58b}from'rxjs';import{takeUntil as _0x7b0d00,throttleTime as _0x286a75}from'rxjs/operators';import{SetZoomRatioOperation as _0x4aa2a7,SetScrollOperation as _0xa66381}from'@univerjs/sheets-ui';var c=function(){var _0x25410e=_0x1a1d63;return c=Object[_0x25410e(0x17f)]||function(_0x42fd39){var _0x48a42b=_0x25410e;for(var _0x2f9e60,_0x4a2162=0x1,_0x3b600c=arguments['length'];_0x4a2162<_0x3b600c;_0x4a2162++){_0x2f9e60=arguments[_0x4a2162];for(var _0x4d9705 in _0x2f9e60)Object[_0x48a42b(0x16b)]['hasOwnProperty'][_0x48a42b(0x134)](_0x2f9e60,_0x4d9705)&&(_0x42fd39[_0x4d9705]=_0x2f9e60[_0x4d9705]);}return _0x42fd39;},c[_0x25410e(0x11f)](this,arguments);},Oe=function(_0x2d9b32,_0x4ea4f2){var _0xab0bd3=_0x1a1d63,_0x1ccd7d={};for(var _0x2ca811 in _0x2d9b32)Object[_0xab0bd3(0x16b)][_0xab0bd3(0x11c)][_0xab0bd3(0x134)](_0x2d9b32,_0x2ca811)&&_0x4ea4f2[_0xab0bd3(0x19c)](_0x2ca811)<0x0&&(_0x1ccd7d[_0x2ca811]=_0x2d9b32[_0x2ca811]);if(_0x2d9b32!=null&&typeof Object[_0xab0bd3(0x17c)]==_0xab0bd3(0x147)){for(var _0x17631e=0x0,_0x2ca811=Object[_0xab0bd3(0x17c)](_0x2d9b32);_0x17631e<_0x2ca811[_0xab0bd3(0x1b8)];_0x17631e++)_0x4ea4f2['indexOf'](_0x2ca811[_0x17631e])<0x0&&Object['prototype'][_0xab0bd3(0x157)]['call'](_0x2d9b32,_0x2ca811[_0x17631e])&&(_0x1ccd7d[_0x2ca811[_0x17631e]]=_0x2d9b32[_0x2ca811[_0x17631e]]);}return _0x1ccd7d;},W=_0x2d86dd(function(_0x3a8acb,_0x507ebe){var _0x3ee095=_0x1a1d63,_0x1082ec=_0x3a8acb[_0x3ee095(0x18f)],_0x37a54b=_0x3a8acb['id'],_0xb2601a=_0x3a8acb[_0x3ee095(0x13a)],_0x2f950e=_0x3a8acb[_0x3ee095(0x164)],_0x5248f6=Oe(_0x3a8acb,[_0x3ee095(0x18f),'id',_0x3ee095(0x13a),_0x3ee095(0x164)]),_0x1572ea=_0x3ee095(0x1aa)[_0x3ee095(0x18d)](_0x37a54b,'\x20')[_0x3ee095(0x18d)](_0xb2601a||'')[_0x3ee095(0x132)](),_0x45825b=_0x436df5('_'['concat'](Ne()));return Y(_0x1082ec,''[_0x3ee095(0x18d)](_0x37a54b),{'defIds':_0x1082ec['defIds'],'idSuffix':_0x45825b['current']},c({'ref':_0x507ebe,'className':_0x1572ea},_0x5248f6),_0x2f950e);});function Y(_0x41a341,_0x336091,_0x1d814a,_0x1e7dd1,_0x4ca168){var _0x3981dc=_0x1a1d63;return _0x14aa02(_0x41a341[_0x3981dc(0x160)],c(c({'key':_0x336091},Ee(_0x41a341,_0x1d814a,_0x4ca168)),_0x1e7dd1),(we(_0x41a341,_0x1d814a)['children']||[])[_0x3981dc(0x181)](function(_0x176360,_0x11f8e2){var _0x426754=_0x3981dc;return Y(_0x176360,''['concat'](_0x336091,'-')[_0x426754(0x18d)](_0x41a341['tag'],'-')[_0x426754(0x18d)](_0x11f8e2),_0x1d814a,void 0x0,_0x4ca168);}));}function Ee(_0x3c3a6c,_0x3f771c,_0x2e496c){var _0xb317c8=_0x1a1d63,_0x5ec63f=c({},_0x3c3a6c['attrs']);_0x2e496c!=null&&_0x2e496c[_0xb317c8(0x18e)]&&_0x5ec63f[_0xb317c8(0x174)]===_0xb317c8(0x18e)&&(_0x5ec63f['fill']=_0x2e496c[_0xb317c8(0x18e)]),_0x3c3a6c[_0xb317c8(0x160)]===_0xb317c8(0x162)&&_0x5ec63f['id']&&(_0x5ec63f['id']=_0x5ec63f['id']+_0x3f771c[_0xb317c8(0x1b7)]),Object[_0xb317c8(0x153)](_0x5ec63f)[_0xb317c8(0x119)](function(_0x1e469d){var _0xed6a9b=_0xb317c8,_0x4d1dd1=_0x1e469d[0x0],_0x162c0b=_0x1e469d[0x1];_0x4d1dd1===_0xed6a9b(0x162)&&typeof _0x162c0b==_0xed6a9b(0x14e)&&(_0x5ec63f[_0x4d1dd1]=_0x162c0b[_0xed6a9b(0x139)](/url\(#(.*)\)/,_0xed6a9b(0x12e)[_0xed6a9b(0x18d)](_0x3f771c[_0xed6a9b(0x1b7)],')')));});var _0x34caf5=_0x3f771c[_0xb317c8(0x10f)];return!_0x34caf5||_0x34caf5[_0xb317c8(0x1b8)]===0x0||(_0x3c3a6c[_0xb317c8(0x160)]===_0xb317c8(0x133)&&_0x5ec63f[_0xb317c8(0x169)]&&(_0x5ec63f[_0xb317c8(0x169)]=_0x5ec63f[_0xb317c8(0x169)]+_0x3f771c[_0xb317c8(0x1b7)]),Object['entries'](_0x5ec63f)[_0xb317c8(0x119)](function(_0x30bffd){var _0x17fa81=_0xb317c8,_0xa7db22=_0x30bffd[0x0],_0x3f1e7d=_0x30bffd[0x1];typeof _0x3f1e7d==_0x17fa81(0x14e)&&(_0x5ec63f[_0xa7db22]=_0x3f1e7d[_0x17fa81(0x139)](/url\(#(.*)\)/,_0x17fa81(0x12e)[_0x17fa81(0x18d)](_0x3f771c[_0x17fa81(0x1b7)],')')));})),_0x5ec63f;}function we(_0x2cc9c3,_0x4e65bf){var _0x139c4e=_0x1a1d63,_0x186ea5,_0x98fe0a=_0x4e65bf[_0x139c4e(0x10f)];return!_0x98fe0a||_0x98fe0a[_0x139c4e(0x1b8)]===0x0?_0x2cc9c3:_0x2cc9c3[_0x139c4e(0x160)]===_0x139c4e(0x103)&&(!((_0x186ea5=_0x2cc9c3[_0x139c4e(0x112)])===null||_0x186ea5===void 0x0)&&_0x186ea5['length'])?c(c({},_0x2cc9c3),{'children':_0x2cc9c3[_0x139c4e(0x112)][_0x139c4e(0x181)](function(_0x2d1b76){var _0x2a6dda=_0x139c4e;return typeof _0x2d1b76[_0x2a6dda(0x193)]['id']==_0x2a6dda(0x14e)&&_0x98fe0a&&_0x98fe0a[_0x2a6dda(0x15e)](_0x2d1b76[_0x2a6dda(0x193)]['id'])?c(c({},_0x2d1b76),{'attrs':c(c({},_0x2d1b76[_0x2a6dda(0x193)]),{'id':_0x2d1b76['attrs']['id']+_0x4e65bf[_0x2a6dda(0x1b7)]})}):_0x2d1b76;})}):_0x2cc9c3;}function Ne(){var _0x5412c9=_0x1a1d63;return Math[_0x5412c9(0x135)]()[_0x5412c9(0x11a)](0x24)[_0x5412c9(0x115)](0x2,0x8);}W[_0x1a1d63(0x150)]=_0x1a1d63(0x19a);var Ce={'tag':_0x1a1d63(0x13d),'attrs':{'xmlns':_0x1a1d63(0x123),'fill':_0x1a1d63(0x146),'viewBox':_0x1a1d63(0x1af),'width':_0x1a1d63(0x105),'height':_0x1a1d63(0x105)},'children':[{'tag':_0x1a1d63(0x1b3),'attrs':{'fill':_0x1a1d63(0x1b5),'d':_0x1a1d63(0x10b)}},{'tag':_0x1a1d63(0x1b3),'attrs':{'fill':_0x1a1d63(0x1b5),'d':_0x1a1d63(0x165),'fillRule':_0x1a1d63(0x199),'clipRule':_0x1a1d63(0x199)}}]},B=_0x2d86dd(function(_0x35403c,_0x579234){var _0x1739f2=_0x1a1d63;return _0x14aa02(W,Object[_0x1739f2(0x17f)]({},_0x35403c,{'id':'live-share-icon','ref':_0x579234,'icon':Ce}));});B[_0x1a1d63(0x150)]=_0x1a1d63(0x1b9);class L extends _0x3afd44{constructor(){var _0x3cbc79=_0x1a1d63;super(...arguments),d(this,_0x3cbc79(0x187),new Set()),d(this,_0x3cbc79(0x14f),new Set());}[_0x1a1d63(0x183)](_0x41c1ec){var _0x4e9441=_0x1a1d63;return this[_0x4e9441(0x187)]['add'](_0x41c1ec),_0x31b3e3(()=>this[_0x4e9441(0x187)][_0x4e9441(0x17b)](_0x41c1ec));}[_0x1a1d63(0x184)](_0xef672){var _0x896cb7=_0x1a1d63;return this['_reporters']['add'](_0xef672),_0x31b3e3(()=>this[_0x896cb7(0x14f)][_0x896cb7(0x17b)](_0xef672));}[_0x1a1d63(0x108)](_0x2ae9a9){var _0x3b8c31=_0x1a1d63;return this[_0x3b8c31(0x187)][_0x3b8c31(0x109)](_0x2ae9a9);}[_0x1a1d63(0x14d)](_0x4b4638){var _0x53efda=_0x1a1d63;return Array[_0x53efda(0x10a)](this[_0x53efda(0x14f)])[_0x53efda(0x181)](_0x27cb93=>_0x27cb93(_0x4b4638));}}var De=Object['getOwnPropertyDescriptor'],Z=(_0x4149aa,_0x38df9a,_0x53028d,_0x5ec06f)=>{var _0x25d12b=_0x1a1d63;for(var _0x108fae=_0x5ec06f>0x1?void 0x0:_0x5ec06f?De(_0x38df9a,_0x53028d):_0x38df9a,_0x41e05f=_0x4149aa[_0x25d12b(0x1b8)]-0x1,_0x3357d7;_0x41e05f>=0x0;_0x41e05f--)(_0x3357d7=_0x4149aa[_0x41e05f])&&(_0x108fae=_0x3357d7(_0x108fae)||_0x108fae);return _0x108fae;},f=(_0x24517d,_0x47d615)=>(_0x35093f,_0x542498)=>_0x47d615(_0x35093f,_0x542498,_0x24517d);let m=class extends _0x2a0f78{constructor(_0x730f8f,_0xc0db6f,_0x52fd0b){var _0x1a83f3=_0x1a1d63;super(),d(this,'_entities',new Map()),(this[_0x1a83f3(0x190)]=_0x730f8f,this[_0x1a83f3(0x106)]=_0xc0db6f,this['_collabSessionService']=_0x52fd0b,this['_init']());}async[_0x1a1d63(0x175)](_0x542b7d){var _0x4b8cb7=_0x1a1d63;return this[_0x4b8cb7(0x128)][_0x4b8cb7(0x109)](_0x542b7d)||await this[_0x4b8cb7(0x118)](_0x542b7d),this[_0x4b8cb7(0x128)][_0x4b8cb7(0x12d)](_0x542b7d);}['_init'](){var _0x3558c6=_0x1a1d63;this[_0x3558c6(0x190)][_0x3558c6(0x1a5)](_0x2c0aab[_0x3558c6(0x159)])['pipe'](_0x7b0d00(this[_0x3558c6(0x107)]))[_0x3558c6(0x179)](async _0x3c405e=>{var _0x195f09=_0x3558c6;const _0x10e213=_0x3c405e[_0x195f09(0x19b)]();this[_0x195f09(0x128)]['has'](_0x10e213)||this['_startLiveShareCoordinator'](_0x10e213);}),this[_0x3558c6(0x190)][_0x3558c6(0x17a)](_0x2c0aab[_0x3558c6(0x159)])[_0x3558c6(0x130)](_0x7b0d00(this[_0x3558c6(0x107)]))[_0x3558c6(0x179)](_0x6507a2=>{var _0x273ef7=_0x3558c6;const _0x27fbc5=_0x6507a2[_0x273ef7(0x19b)](),_0xba5e0e=this[_0x273ef7(0x128)]['get'](_0x27fbc5);_0xba5e0e==null||_0xba5e0e[_0x273ef7(0x198)]();});}async['_startLiveShareCoordinator'](_0x4e9ab0){var _0x14284b=_0x1a1d63;const _0x567b5f=await this[_0x14284b(0x1b2)][_0x14284b(0x1a7)](_0x4e9ab0),_0x39578c=this['_injector'][_0x14284b(0x10c)](C,_0x4e9ab0,_0x567b5f);return _0x39578c['init'](),this['_entities'][_0x14284b(0x136)](_0x4e9ab0,_0x39578c),_0x39578c;}};m=Z([f(0x0,_0x3f2da5),f(0x1,_0x42e8ee(_0x51ecf2)),f(0x2,_0x42e8ee(_0x300a35))],m);var h=(_0x3fe789=>(_0x3fe789[_0x1a1d63(0x15d)]=_0x1a1d63(0x15f),_0x3fe789['IDLE']=_0x1a1d63(0x170),_0x3fe789[_0x1a1d63(0x182)]=_0x1a1d63(0x196),_0x3fe789[_0x1a1d63(0x138)]='not-following',_0x3fe789[_0x1a1d63(0x19d)]='presenting',_0x3fe789))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x2a0f78{constructor(_0x4ecd10,_0x3a8793,_0x4560a9,_0x4103b4,_0x1916e7){var _0x24c502=_0x1a1d63;super(),d(this,'_status$',new _0x5cb4f1(_0x24c502(0x170))),d(this,_0x24c502(0x11b),this[_0x24c502(0x15a)][_0x24c502(0x124)]()),d(this,_0x24c502(0x14c),!0x1),d(this,'_commandDisposable',null),d(this,_0x24c502(0x16e),null),(this['_unitID']=_0x4ecd10,this['_collabSession']=_0x3a8793,this[_0x24c502(0x126)]=_0x4560a9,this[_0x24c502(0x18b)]=_0x4103b4,this[_0x24c502(0x110)]=_0x1916e7);}get['_status'](){var _0x463404=_0x1a1d63;return this[_0x463404(0x15a)][_0x463404(0x18c)]();}[_0x1a1d63(0x198)](){var _0x438cee=_0x1a1d63,_0x58fb9e;(_0x58fb9e=this[_0x438cee(0x104)])==null||_0x58fb9e['dispose'](),this[_0x438cee(0x15a)][_0x438cee(0x1a1)]('idle'),this['_status$'][_0x438cee(0x127)]();}[_0x1a1d63(0x1ac)](){var _0x4a0fa4=_0x1a1d63;this[_0x4a0fa4(0x14c)]||(this[_0x4a0fa4(0x14c)]=!0x0,this[_0x4a0fa4(0x13f)]['sessionStatus$'][_0x4a0fa4(0x130)](_0x7b0d00(this[_0x4a0fa4(0x107)]))[_0x4a0fa4(0x179)](_0x59e3e6=>{var _0x33956f=_0x4a0fa4;switch(_0x59e3e6){case _0x80727d[_0x33956f(0x15d)]:this['_handleOffline']();break;case _0x80727d[_0x33956f(0x1ae)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x4a0fa4(0x158)][_0x4a0fa4(0x130)](_0x7b0d00(this[_0x4a0fa4(0x107)]))[_0x4a0fa4(0x179)](_0xfdc994=>{var _0x51d069=_0x4a0fa4;const {eventID:_0x2375a2}=_0xfdc994;switch(_0x2375a2){case _0x572b1a['LIVESHARE_NEW_HOST']:this[_0x51d069(0x122)](_0xfdc994);break;case _0x572b1a['LIVESHARE_OPERATION']:this['_handleOperation'](_0xfdc994);break;case _0x572b1a[_0x51d069(0x188)]:this[_0x51d069(0x176)]();break;case _0x572b1a[_0x51d069(0x129)]:this[_0x51d069(0x13b)](_0xfdc994);break;}}));}[_0x1a1d63(0x189)](){var _0x8143d4=_0x1a1d63;this['_collabSession'][_0x8143d4(0x11e)]({'eventID':_0x572b1a[_0x8143d4(0x13c)],'data':{'unitID':this[_0x8143d4(0x1a9)],'userID':this[_0x8143d4(0x13f)][_0x8143d4(0x125)]()}},this['_unitID']);}['stopPresenting'](){var _0x30aad0=_0x1a1d63;this[_0x30aad0(0x16d)]===_0x30aad0(0x13e)&&(this[_0x30aad0(0x15a)][_0x30aad0(0x1a1)](_0x30aad0(0x170)),this['_collabSession']['send']({'eventID':_0x572b1a[_0x30aad0(0x188)],'data':{'unitID':this[_0x30aad0(0x1a9)]}},this['_unitID']));}[_0x1a1d63(0x116)](){var _0x986f6e=_0x1a1d63;this[_0x986f6e(0x16d)]===_0x986f6e(0x15c)&&(this[_0x986f6e(0x15a)]['next']('following'),this[_0x986f6e(0x111)]());}['stopFollowing'](){var _0x3af7f6=_0x1a1d63;this[_0x3af7f6(0x16d)]==='following'&&this[_0x3af7f6(0x16a)]();}[_0x1a1d63(0x122)](_0x46940f){var _0x1c5ab2=_0x1a1d63;const {presenter:_0x45a73a}=_0x46940f[_0x1c5ab2(0x149)],_0x23e381=this['_collabSession'][_0x1c5ab2(0x125)]();this[_0x1c5ab2(0x16e)]=_0x45a73a,_0x45a73a===_0x23e381?(this[_0x1c5ab2(0x16a)](),this[_0x1c5ab2(0x145)]()):this[_0x1c5ab2(0x16d)]!=='not-following'&&(this['_stopPresenting'](),this[_0x1c5ab2(0x111)]());}[_0x1a1d63(0x16f)](){var _0x38a04f=_0x1a1d63;const _0x4e3d47={'eventID':_0x572b1a[_0x38a04f(0x14b)]};this[_0x38a04f(0x13f)]['send'](_0x4e3d47,this[_0x38a04f(0x1a9)]);}[_0x1a1d63(0x176)](){var _0x37676f=_0x1a1d63;this[_0x37676f(0x16e)]=null,this[_0x37676f(0x16d)]!==_0x37676f(0x13e)&&this[_0x37676f(0x1b4)]();}[_0x1a1d63(0x13b)](_0x2b5cbc){var _0x4ccc63=_0x1a1d63;if(this['_status']===_0x4ccc63(0x196)&&this[_0x4ccc63(0x16e)]===_0x2b5cbc['data'][_0x4ccc63(0x163)]){const _0x458e51=_0x25bb86(_0x2b5cbc[_0x4ccc63(0x149)])[_0x4ccc63(0x1ad)][_0x4ccc63(0x1a2)]()[_0x4ccc63(0x142)](_0x32df55=>_0x32df55['id']===_0x32919f['id']);if(_0x458e51){const _0x436b27=_0x458e51[_0x4ccc63(0x191)]['unitId'],_0x5c61e6=_0x458e51[_0x4ccc63(0x191)][_0x4ccc63(0x1a4)]['id'];setTimeout(()=>{var _0x420257=_0x4ccc63;this['_commandService'][_0x420257(0x17d)](_0x160433['id'],{'unitId':_0x436b27,'subUnitId':_0x5c61e6},{'fromCollab':!0x0});});}}}[_0x1a1d63(0x145)](){var _0x291e4b=_0x1a1d63;this[_0x291e4b(0x15a)][_0x291e4b(0x1a1)](_0x291e4b(0x13e));const _0x56e3c7=new Map(),_0x2a8c87=this['_commandDisposable']=new _0x514287();_0x2a8c87['add'](_0x31b3e3(()=>{var _0x6eba41=_0x291e4b;_0x56e3c7['forEach'](_0x5f573d=>_0x5f573d[_0x6eba41(0x127)]()),_0x56e3c7[_0x6eba41(0x117)]();})),_0x2a8c87['add'](this[_0x291e4b(0x110)]['onCommandExecuted'](_0x1bd0c8=>{var _0x2d821e=_0x291e4b,_0x5a9fba;if(_0x1bd0c8[_0x2d821e(0x16c)]!==_0x1a48da[_0x2d821e(0x114)]||!this['_liveShareService'][_0x2d821e(0x108)](_0x1bd0c8['id']))return;const {id:_0x535205}=_0x1bd0c8;let _0x528fb3;_0x56e3c7[_0x2d821e(0x109)](_0x535205)?_0x528fb3=_0x56e3c7['get'](_0x535205):(_0x528fb3=new _0x5ec58b(),_0x56e3c7[_0x2d821e(0x136)](_0x535205,_0x528fb3),_0x528fb3['pipe'](_0x286a75((_0x5a9fba=this['_configService'][_0x2d821e(0x1a6)](xe))!=null?_0x5a9fba:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3b0302=>{var _0xd93b2c=_0x2d821e;this[_0xd93b2c(0x13f)]['send']({'eventID':_0x572b1a['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xd93b2c(0x1a9)],'operations':{[_0x3b0302['id']]:{'id':_0x3b0302['id'],'params':JSON[_0xd93b2c(0x178)](_0x3b0302[_0xd93b2c(0x191)])}}}},this['_unitID']);})),_0x528fb3[_0x2d821e(0x1a1)](_0x1bd0c8);})),this[_0x291e4b(0x18b)][_0x291e4b(0x14d)](this['_unitID'])['forEach'](_0x419bb7=>this['_collabSession']['send']({'eventID':_0x572b1a['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x291e4b(0x1a9)],'operations':{[_0x419bb7['id']]:{'id':_0x419bb7['id'],'params':JSON[_0x291e4b(0x178)](_0x419bb7['params'])}}}},this['_unitID']));}[_0x1a1d63(0x1b0)](){var _0x2c86ac=_0x1a1d63,_0x53366e;this[_0x2c86ac(0x15a)]['next'](_0x2c86ac(0x170)),(_0x53366e=this[_0x2c86ac(0x104)])==null||_0x53366e[_0x2c86ac(0x198)](),this[_0x2c86ac(0x104)]=null;}[_0x1a1d63(0x111)](){var _0x898635=_0x1a1d63,_0x209516;(_0x209516=this[_0x898635(0x104)])==null||_0x209516['dispose'](),this[_0x898635(0x15a)][_0x898635(0x1a1)](_0x898635(0x196));}[_0x1a1d63(0x1b4)](){var _0x69c211=_0x1a1d63,_0x5f1520;this[_0x69c211(0x15a)]['next'](_0x69c211(0x170)),(_0x5f1520=this[_0x69c211(0x104)])==null||_0x5f1520[_0x69c211(0x198)](),this['_commandDisposable']=null;}[_0x1a1d63(0x16a)](){var _0x38230b=_0x1a1d63,_0x504158;this[_0x38230b(0x15a)][_0x38230b(0x1a1)](_0x38230b(0x15c)),(_0x504158=this[_0x38230b(0x104)])==null||_0x504158[_0x38230b(0x198)]();}[_0x1a1d63(0x172)](_0x3a5158){var _0x59ba80=_0x1a1d63;if([_0x59ba80(0x13e),_0x59ba80(0x15c),_0x59ba80(0x15f)]['includes'](this[_0x59ba80(0x16d)])||!_0x3a5158[_0x59ba80(0x149)][_0x59ba80(0x10e)]||_0x3a5158[_0x59ba80(0x149)][_0x59ba80(0x10e)]===this['_collabSession']['getMemberID']())return;this[_0x59ba80(0x16d)]===_0x59ba80(0x170)&&this[_0x59ba80(0x111)]();const _0x5da6d8=_0x3a5158[_0x59ba80(0x149)][_0x59ba80(0x12c)];Object['values'](_0x5da6d8)[_0x59ba80(0x119)](_0x2980ad=>{var _0xadcbdb=_0x59ba80;this[_0xadcbdb(0x110)][_0xadcbdb(0x17d)](_0x2980ad['id'],_0x2980ad['params']?JSON[_0xadcbdb(0x167)](_0x2980ad[_0xadcbdb(0x191)]):null,{'fromCollab':!0x0});});}[_0x1a1d63(0x131)](){var _0x18b6d5=_0x1a1d63,_0x2f3664;this[_0x18b6d5(0x15a)][_0x18b6d5(0x1a1)]('offline'),(_0x2f3664=this[_0x18b6d5(0x104)])==null||_0x2f3664[_0x18b6d5(0x198)]();}[_0x1a1d63(0x1a3)](){var _0x1d68de=_0x1a1d63;this['_status$'][_0x1d68de(0x1a1)](_0x1d68de(0x170)),this['_fetchOperations']();}};C=Z([f(0x2,_0x5bfcf1),f(0x3,_0x42e8ee(L)),f(0x4,_0xd54193)],C);function ye(){var _0x4299ab=_0x1a1d63;const _0x19ea90=_0x33b945(m),_0x1f908d=_0x33b945(_0x3f2da5),_0x2e5d6f=_0x373395(()=>_0x1f908d[_0x4299ab(0x18a)](_0x2c0aab[_0x4299ab(0x159)]),void 0x0,!0x1,[]),[_0xdb5bab,_0x4caece]=_0x401fbb(null),[_0x2eb4b5,_0x31e031]=_0x401fbb(h[_0x4299ab(0x17e)]),_0x3d4c55=_0x436df5(null);return _0x3a8270(()=>(_0x2e5d6f&&_0x19ea90[_0x4299ab(0x175)](_0x2e5d6f['getUnitId']())[_0x4299ab(0x173)](_0x2c8ad4=>{var _0x4a8167=_0x4299ab;_0x4caece(_0x2c8ad4),_0x3d4c55[_0x4a8167(0x14a)]=_0x2c8ad4['status$'][_0x4a8167(0x179)](_0x1a23be=>{_0x31e031(_0x1a23be);});}),()=>{var _0x4663cb=_0x4299ab,_0x1ff713;(_0x1ff713=_0x3d4c55['current'])==null||_0x1ff713[_0x4663cb(0x151)](),_0x3d4c55[_0x4663cb(0x14a)]=null;}),[_0x2e5d6f,_0x19ea90]),_0xdb5bab?_0x1e87d0(_0x5e88bc,{'align':'end','disabled':_0x2eb4b5===h[_0x4299ab(0x15d)],'className':_0x4299ab(0x113),'overlay':_0x1e87d0(Re,{'status':_0x2eb4b5,'coordinator':_0xdb5bab}),'children':_0x1e87d0(_0x4299ab(0x192),{'className':_0x42df54(_0x4299ab(0x140),{'univer-cursor-not-allowed':_0x2eb4b5===h[_0x4299ab(0x15d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2eb4b5!==h['OFFLINE']}),'type':_0x4299ab(0x192),'children':_0x1e87d0(B,{'className':_0x4299ab(0x155)})})}):null;}function Re(_0xb9dde6){var _0x277cc6=_0x1a1d63;const {status:_0x1e279d,coordinator:_0x9d4553}=_0xb9dde6;switch(_0x1e279d){case h[_0x277cc6(0x17e)]:return _0x1e87d0(Pe,{'coordinator':_0x9d4553});case h[_0x277cc6(0x182)]:return _0x1e87d0(Ae,{'coordinator':_0x9d4553});case h[_0x277cc6(0x138)]:return _0x1e87d0(Te,{'coordinator':_0x9d4553});case h[_0x277cc6(0x15d)]:return _0x1e87d0(Fe,{});case h[_0x277cc6(0x19d)]:return _0x1e87d0($e,{'coordinator':_0x9d4553});default:return null;}}function Pe(_0x5c6898){var _0xe89c27=_0x1a1d63;const {coordinator:_0x1aa7b7}=_0x5c6898;return _0x306d4c(_0x45035c,{'children':[_0x1e87d0(_0xe89c27(0x141),{'className':_0xe89c27(0x171),'children':_0xe89c27(0x19f)}),_0x1e87d0(_0x5d53a5,{'onClick':()=>_0x1aa7b7[_0xe89c27(0x189)](),'children':_0xe89c27(0x194)})]});}function Ae(_0x35ff60){var _0x27c614=_0x1a1d63;const {coordinator:_0x283ecb}=_0x35ff60;return _0x306d4c(_0x45035c,{'children':[_0x1e87d0('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x1e87d0(_0x5d53a5,{'onClick':()=>_0x283ecb[_0x27c614(0x166)](),'children':_0x27c614(0x154)})]});}function Te(_0x3e43ee){var _0x52fd0a=_0x1a1d63;const {coordinator:_0x289911}=_0x3e43ee;return _0x306d4c(_0x45035c,{'children':[_0x1e87d0('div',{'className':_0x52fd0a(0x171),'children':_0x52fd0a(0x12a)}),_0x1e87d0(_0x5d53a5,{'variant':_0x52fd0a(0x152),'onClick':()=>_0x289911['startFollowing'](),'children':'Start\x20following'})]});}function $e(_0x2f3072){var _0x19b631=_0x1a1d63;const {coordinator:_0x27be0b}=_0x2f3072;return _0x306d4c(_0x45035c,{'children':[_0x1e87d0(_0x19b631(0x141),{'className':_0x19b631(0x171),'children':_0x19b631(0x19e)}),_0x1e87d0(_0x5d53a5,{'variant':'default','onClick':()=>_0x27be0b[_0x19b631(0x180)](),'children':_0x19b631(0x195)})]});}function _0x1da0(_0x16c2ef,_0x4db1bd){var _0x4f37bd=_0x4f37();return _0x1da0=function(_0x1da0ea,_0x271b43){_0x1da0ea=_0x1da0ea-0x103;var _0x58a16b=_0x4f37bd[_0x1da0ea];return _0x58a16b;},_0x1da0(_0x16c2ef,_0x4db1bd);}function Fe(){return _0x1e87d0(_0x45035c,{'children':'You\x27are\x20offline.'});}var He=Object[_0x1a1d63(0x156)],je=(_0x1e74d5,_0x2ba644,_0x5d4a72,_0x21bb0c)=>{var _0x4a62d0=_0x1a1d63;for(var _0x30a2ce=_0x21bb0c>0x1?void 0x0:_0x21bb0c?He(_0x2ba644,_0x5d4a72):_0x2ba644,_0x3e8960=_0x1e74d5[_0x4a62d0(0x1b8)]-0x1,_0x312be6;_0x3e8960>=0x0;_0x3e8960--)(_0x312be6=_0x1e74d5[_0x3e8960])&&(_0x30a2ce=_0x312be6(_0x30a2ce)||_0x30a2ce);return _0x30a2ce;},T=(_0x3a7432,_0x4ac00b)=>(_0x1f3fc0,_0x48fee1)=>_0x4ac00b(_0x1f3fc0,_0x48fee1,_0x3a7432);let I=class extends _0x3afd44{constructor(_0x33a8df,_0x4420d9){var _0x35901d=_0x1a1d63;super(),this[_0x35901d(0x106)]=_0x33a8df,this[_0x35901d(0x143)]=_0x4420d9,this[_0x35901d(0x15b)]();}[_0x1a1d63(0x15b)](){var _0x193745=_0x1a1d63;this[_0x193745(0x148)](this['_uiPartsService'][_0x193745(0x197)](_0x323e4b['HEADER_MENU'],()=>_0x9c8981(ye,this[_0x193745(0x106)])));}};I=je([T(0x0,_0x42e8ee(_0x51ecf2)),T(0x1,_0x4f4ad0)],I);const Ue=_0x1a1d63(0x12b),$={};var Ve=Object[_0x1a1d63(0x156)],Me=(_0x32eef8,_0x1ef81d,_0x1b618b,_0x1a1416)=>{var _0x27a5fe=_0x1a1d63;for(var _0x59d3f9=_0x1a1416>0x1?void 0x0:_0x1a1416?Ve(_0x1ef81d,_0x1b618b):_0x1ef81d,_0x564f0c=_0x32eef8[_0x27a5fe(0x1b8)]-0x1,_0x35d4d1;_0x564f0c>=0x0;_0x564f0c--)(_0x35d4d1=_0x32eef8[_0x564f0c])&&(_0x59d3f9=_0x35d4d1(_0x59d3f9)||_0x59d3f9);return _0x59d3f9;},ke=(_0x2ba4a5,_0x3c872c)=>(_0x6bcd12,_0xa0576a)=>_0x3c872c(_0x6bcd12,_0xa0576a,_0x2ba4a5);let b=class extends _0x3afd44{constructor(_0x116be4){var _0x1263e8=_0x1a1d63;super(),this[_0x1263e8(0x18b)]=_0x116be4,this[_0x1263e8(0x14c)]();}[_0x1a1d63(0x14c)](){[_0x4aa2a7['id'],_0xa66381['id'],_0x160433['id']]['forEach'](_0xc3c6db=>{var _0x2b577b=_0x1da0;this['disposeWithMe'](this[_0x2b577b(0x18b)]['registerSharedOperation'](_0xc3c6db));});}};b=Me([ke(0x0,_0x42e8ee(L))],b);var Ge=Object[_0x1a1d63(0x12f)],We=Object[_0x1a1d63(0x156)],Ye=(_0x4571f1,_0x35082b,_0x2e4992)=>_0x35082b in _0x4571f1?Ge(_0x4571f1,_0x35082b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e4992}):_0x4571f1[_0x35082b]=_0x2e4992,Be=(_0x47a1a5,_0xa477f2,_0x680457,_0x1785ea)=>{var _0x3da49d=_0x1a1d63;for(var _0x167553=_0x1785ea>0x1?void 0x0:_0x1785ea?We(_0xa477f2,_0x680457):_0xa477f2,_0x45999e=_0x47a1a5[_0x3da49d(0x1b8)]-0x1,_0x2ff454;_0x45999e>=0x0;_0x45999e--)(_0x2ff454=_0x47a1a5[_0x45999e])&&(_0x167553=_0x2ff454(_0x167553)||_0x167553);return _0x167553;},F=(_0x15de98,_0x3aa791)=>(_0x2f71e6,_0x5d9271)=>_0x3aa791(_0x2f71e6,_0x5d9271,_0x15de98),J=(_0x2de5fb,_0x41b1a4,_0x283918)=>Ye(_0x2de5fb,typeof _0x41b1a4!=_0x1a1d63(0x186)?_0x41b1a4+'':_0x41b1a4,_0x283918);const Ze=_0x1a1d63(0x1a8);let O=class extends _0x3c29f5{constructor(_0x4d0281=$,_0x326554,_0x3d5d9c){var _0x57d4f1=_0x1a1d63;super(),this['_config']=_0x4d0281,this[_0x57d4f1(0x106)]=_0x326554,this[_0x57d4f1(0x126)]=_0x3d5d9c;const {..._0x2af753}=_0x4f7afb({},$,this[_0x57d4f1(0x120)]);this[_0x57d4f1(0x126)]['setConfig'](Ue,_0x2af753);}['onStarting'](){var _0x3b602e=_0x1a1d63;_0xae8f0b(this[_0x3b602e(0x106)],_0x309e1a([[L],[m],[b],[I]],this['_config'][_0x3b602e(0x177)])),_0x524ac9(this['_injector'],[[b]]);}['onRendered'](){var _0x1196d5=_0x1a1d63;_0x524ac9(this[_0x1196d5(0x106)],[[I]]);}};J(O,_0x1a1d63(0x16c),_0x2c0aab[_0x1a1d63(0x1b6)]),J(O,_0x1a1d63(0x137),Ze),O=Be([_0x1db083(_0x54a0db),F(0x1,_0x42e8ee(_0x51ecf2)),F(0x2,_0x5bfcf1)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};function _0x4f37(){var _0x1fdb8e=['presenter','defIds','_commandService','_startFollowing','children','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','OPERATION','substring','startFollowing','clear','_startLiveShareCoordinator','forEach','toString','status$','hasOwnProperty','13321688ZbssiF','send','apply','_config','555280LqmcBh','_handleNewHost','http://www.w3.org/2000/svg','asObservable','getMemberID','_configService','complete','_entities','NEW_CHANGESETS','You\x27re\x20not\x20following\x20the\x20presenter','live-share.config','operations','get','url(#$1','defineProperty','pipe','_handleOffline','trim','use','call','random','set','pluginName','NOT_FOLLOWING','replace','className','_handleNewChangeSets','LIVESHARE_REQUEST_HOST','svg','presenting','_collabSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','div','find','_uiPartsService','2533254GkJGoR','_startPresenting','none','function','disposeWithMe','data','current','LIVESHARE_FETCH_OPERATIONS','_init','getInitialStates','string','_reporters','displayName','unsubscribe','text','entries','Stop\x20following','univer-size-4','getOwnPropertyDescriptor','propertyIsEnumerable','event$','UNIVER_SHEET','_status$','_mountLiveShare','not-following','OFFLINE','includes','offline','tag','9aQQNxi','mask','memberID','extend','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','stopFollowing','parse','4Neevxe','xlink:href','_stopFollowing','prototype','type','_status','_presenter','_fetchOperations','idle','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOperation','then','fill','getLiveShareCoordinator','_handleTerminate','override','stringify','subscribe','getTypeOfUnitDisposed$','delete','getOwnPropertySymbols','executeCommand','IDLE','assign','stopPresenting','map','FOLLOWING','registerSharedOperation','registerInitialStateReporter','1240210VMgtcu','symbol','_sharedOperations','LIVESHARE_TERMINATE','tryStartPresenting','getCurrentTypeOfUnit$','_liveShareService','getValue','concat','colorChannel1','icon','_univerInstanceService','params','button','attrs','Start','Stop\x20presenting','following','registerComponent','dispose','evenodd','UniverIcon','getUnitId','indexOf','PRESENTING','You\x27re\x20presenting\x20the\x20document','Present\x20this\x20document','9774058wqWdMc','next','reverse','_handleOnline','sheet','getTypeOfUnitAdded$','getConfig','requireSession','UNIVER_LIVE_SHARE_PLUGIN','_unitID','univerjs-icon\x20univerjs-icon-','6057120vzzsij','init','mutations','ONLINE','0\x200\x2017\x2017','_stopPresenting','20275GrDdZS','_collabSessionService','path','_beIdle','currentColor','UNIVER_UNKNOWN','idSuffix','length','LiveShareIcon','defs','_commandDisposable','1em','_injector','dispose$','shouldShareOperation','has','from','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','createInstance','188ReWBoQ'];_0x4f37=function(){return _0x1fdb8e;};return _0x4f37();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4550(){var _0x22b084=['registerDependencies','indexOf','registerInitialStateReporter','get','colorChannel1','1694YBbRbK','_startPresenting','path','_unitID','tryStartPresenting','has','_handleNewHost','type','LiveShareService','_beIdle','UNIVER_LIVE_SHARE_PLUGIN','dispose','_injector','_mountLiveShare','useState','UniverCollaborationClientPlugin','requireSession','getConfig','setConfig','CollaborationSessionService','UNIVER_SHEET','pipe','onRendered','parse','ICommandService','UniverLiveSharePlugin','2YYLKCd','defIds','xlink:href','button','_uiPartsService','registerComponent','mask','@univerjs/ui','currentColor','includes','stringify','idle','_collabSession','Button','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_NEW_HOST','getTypeOfUnitAdded$','getOwnPropertyDescriptor','UniverSheets','_handleOffline','FOLLOWING','useEffect','stopPresenting','UniverProCollaborationClient','SetWorksheetActiveOperation','entries','DependentOn','jsx','idSuffix','571605BVclAA','live-share.config','1em','connectInjector','http://www.w3.org/2000/svg','none','_handleOnline','LiveShareCoordinator','current','forwardRef','set','assign','object','startFollowing','NOT_FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','className','_status','LiveShare','CollaborationEvent','DisposableCollection','IDLE','LiveShareController','displayName','Subject','defineProperty','createInstance','_univerInstanceService','_handleTerminate','univerjs-icon\x20univerjs-icon-','3254031OInQLU','getCurrentTypeOfUnit$','@univerjs/sheets','toDisposable','_collabSessionService','618nXTKfu','UNIVER_UNKNOWN','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','from','0\x200\x2017\x2017','LIVESHARE_REQUEST_HOST','@univerjs/sheets-ui','evenodd','data','IConfigService','UniverIcon','_entities','getTypeOfUnitDisposed$','takeUntil','UniverInstanceType','function','forEach','1385984gdyLpz','children','SetZoomRatioOperation','send','icon','unsubscribe','prototype','attrs','sessionStatus$','_stopFollowing','_init','offline','React','Dropdown','exports','end','_fetchOperations','operators','CommandType','You\x27re\x20following\x20the\x20presenter','_presenter','SetScrollOperation','shouldShareOperation','symbol','reverse','BuiltInUIPart','following','div','107385pOYfjM','call','length','univer-size-4','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewChangeSets','getValue','getLiveShareCoordinator','not-following','922060TegIou','ONLINE','map','Plugin','touchDependencies','apply','@univerjs-pro/collaboration-client','Start','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','presenting','UniverProCollaboration','IUIPartsService','merge','replace','mergeOverrideWithDependencies','fill','LIVESHARE_TERMINATE','getInitialStates','getOwnPropertySymbols','toString','LIVESHARE_OPERATION','subscribe','Disposable','getMemberID','IUniverInstanceService','NEW_CHANGESETS','You\x27are\x20offline.','sheet','_sharedOperations','Inject','UniverCore','useDependency','_liveShareService','Start\x20following','Injector','dispose$','mutations','_configService','add','operations','react/jsx-runtime','substring','override','Stop\x20following','_status$','stopFollowing','_commandService','_startLiveShareCoordinator','hasOwnProperty','find','_commandDisposable','onCommandExecuted','LiveShareIcon','memberID','concat','tag','url(#$1','asObservable','DesktopLiveShareController','UniverUi','presenter','init','pluginName','You\x27re\x20presenting\x20the\x20document','extend','unitId','defs','use','clear','amd','svg','_stopPresenting','status$','PRESENTING','throttleTime','_reporters','complete','RxDisposable','useRef','_startFollowing','string','disposeWithMe','38685qZTEQM','jsxs','getUnitId','Fragment','next','rxjs','clsx','OFFLINE','values','SessionStatus','@univerjs-pro/collaboration','params','useObservable','SAME_OPERATION_SHARE_INTERVAL','LiveShareStatus'];_0x4550=function(){return _0x22b084;};return _0x4550();}function _0x3c46(_0x29024a,_0xfbd0dc){var _0x4550af=_0x4550();return _0x3c46=function(_0x3c46c7,_0x3d080e){_0x3c46c7=_0x3c46c7-0x161;var _0x364579=_0x4550af[_0x3c46c7];return _0x364579;},_0x3c46(_0x29024a,_0xfbd0dc);}(function(_0x20e880,_0x179150){var _0x2f0f6c=_0x3c46,_0x16ab48=_0x20e880();while(!![]){try{var _0x429f6c=parseInt(_0x2f0f6c(0x1d8))/0x1+parseInt(_0x2f0f6c(0x206))/0x2*(parseInt(_0x2f0f6c(0x17c))/0x3)+-parseInt(_0x2f0f6c(0x186))/0x4+parseInt(_0x2f0f6c(0x223))/0x5+-parseInt(_0x2f0f6c(0x246))/0x6*(parseInt(_0x2f0f6c(0x1ec))/0x7)+-parseInt(_0x2f0f6c(0x257))/0x8+parseInt(_0x2f0f6c(0x241))/0x9;if(_0x429f6c===_0x179150)break;else _0x16ab48['push'](_0x16ab48['shift']());}catch(_0xc2f830){_0x16ab48['push'](_0x16ab48['shift']());}}}(_0x4550,0x1db47),function(_0x23e4d0,_0x28cd0f){var _0x30aae4=_0x3c46;typeof exports==_0x30aae4(0x22f)&&typeof module<'u'?_0x28cd0f(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[_0x30aae4(0x1cb)]?define([_0x30aae4(0x16e),'@univerjs/core',_0x30aae4(0x20d),_0x30aae4(0x1ae),'@univerjs/design','react',_0x30aae4(0x1e2),_0x30aae4(0x18c),_0x30aae4(0x243),_0x30aae4(0x1dd),'rxjs/operators',_0x30aae4(0x24c)],_0x28cd0f):(_0x23e4d0=typeof globalThis<'u'?globalThis:_0x23e4d0||self,_0x28cd0f(_0x23e4d0['UniverProLiveShare']={},_0x23e4d0[_0x30aae4(0x1a4)],_0x23e4d0[_0x30aae4(0x1c1)],_0x23e4d0[_0x30aae4(0x16c)],_0x23e4d0['UniverDesign'],_0x23e4d0[_0x30aae4(0x16c)],_0x23e4d0[_0x30aae4(0x190)],_0x23e4d0[_0x30aae4(0x21d)],_0x23e4d0[_0x30aae4(0x218)],_0x23e4d0[_0x30aae4(0x1dd)],_0x23e4d0[_0x30aae4(0x1dd)][_0x30aae4(0x171)],_0x23e4d0['UniverSheetsUi']));}(this,function(_0x32a878,_0x2c8af3,_0x4d4b38,_0x40ffe6,_0x5146f0,_0x23d454,_0x1eba64,_0x127d70,_0x1da1f3,_0xecde77,_0x3751a1,_0x333091){'use strict';var _0x2c2793=_0x3c46;var _0x511974=Object[_0x2c2793(0x23c)],_0xdfdd4e=(_0x22b6ba,_0x432bd8,_0x685ad4)=>_0x432bd8 in _0x22b6ba?_0x511974(_0x22b6ba,_0x432bd8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x685ad4}):_0x22b6ba[_0x432bd8]=_0x685ad4,_0x286e4a=(_0xe7151f,_0x1e954f,_0x56a9dc)=>_0xdfdd4e(_0xe7151f,typeof _0x1e954f!='symbol'?_0x1e954f+'':_0x1e954f,_0x56a9dc),_0x418ded=function(){var _0x30f905=_0x2c2793;return _0x418ded=Object[_0x30f905(0x22e)]||function(_0x15af9a){var _0x2fea05=_0x30f905;for(var _0x1bed8a,_0x3d7a56=0x1,_0x3343db=arguments[_0x2fea05(0x17e)];_0x3d7a56<_0x3343db;_0x3d7a56++){_0x1bed8a=arguments[_0x3d7a56];for(var _0x3144a5 in _0x1bed8a)Object[_0x2fea05(0x166)][_0x2fea05(0x1b6)][_0x2fea05(0x17d)](_0x1bed8a,_0x3144a5)&&(_0x15af9a[_0x3144a5]=_0x1bed8a[_0x3144a5]);}return _0x15af9a;},_0x418ded[_0x30f905(0x18b)](this,arguments);},_0x474e90=function(_0x10a1cd,_0x56e093){var _0x30cab0=_0x2c2793,_0x554730={};for(var _0xae10cc in _0x10a1cd)Object[_0x30cab0(0x166)][_0x30cab0(0x1b6)][_0x30cab0(0x17d)](_0x10a1cd,_0xae10cc)&&_0x56e093[_0x30cab0(0x1e8)](_0xae10cc)<0x0&&(_0x554730[_0xae10cc]=_0x10a1cd[_0xae10cc]);if(_0x10a1cd!=null&&typeof Object[_0x30cab0(0x198)]==_0x30cab0(0x255)){for(var _0x325ecc=0x0,_0xae10cc=Object[_0x30cab0(0x198)](_0x10a1cd);_0x325ecc<_0xae10cc[_0x30cab0(0x17e)];_0x325ecc++)_0x56e093[_0x30cab0(0x1e8)](_0xae10cc[_0x325ecc])<0x0&&Object[_0x30cab0(0x166)]['propertyIsEnumerable'][_0x30cab0(0x17d)](_0x10a1cd,_0xae10cc[_0x325ecc])&&(_0x554730[_0xae10cc[_0x325ecc]]=_0x10a1cd[_0xae10cc[_0x325ecc]]);}return _0x554730;},_0x161414=_0x23d454[_0x2c2793(0x22c)](function(_0x3de263,_0x4a788f){var _0x3033b0=_0x2c2793,_0x26d41a=_0x3de263['icon'],_0x410fd2=_0x3de263['id'],_0xe8b479=_0x3de263[_0x3033b0(0x233)],_0x597c40=_0x3de263['extend'],_0x2d8ec5=_0x474e90(_0x3de263,[_0x3033b0(0x164),'id',_0x3033b0(0x233),_0x3033b0(0x1c6)]),_0x587495=_0x3033b0(0x240)[_0x3033b0(0x1bc)](_0x410fd2,'\x20')['concat'](_0xe8b479||'')['trim'](),_0x29ffb6=_0x23d454[_0x3033b0(0x1d4)]('_'['concat'](_0x14dda9()));return _0xa79dd6(_0x26d41a,''[_0x3033b0(0x1bc)](_0x410fd2),{'defIds':_0x26d41a[_0x3033b0(0x207)],'idSuffix':_0x29ffb6['current']},_0x418ded({'ref':_0x4a788f,'className':_0x587495},_0x2d8ec5),_0x597c40);});function _0xa79dd6(_0x1c1d01,_0x1e62be,_0x2454b7,_0x6da599,_0x4fbe80){var _0x22ee19=_0x2c2793;return _0x23d454['createElement'](_0x1c1d01['tag'],_0x418ded(_0x418ded({'key':_0x1e62be},_0xff37b3(_0x1c1d01,_0x2454b7,_0x4fbe80)),_0x6da599),(_0xcea881(_0x1c1d01,_0x2454b7)[_0x22ee19(0x161)]||[])['map'](function(_0x5d02f2,_0x2f5b19){var _0x94309a=_0x22ee19;return _0xa79dd6(_0x5d02f2,''[_0x94309a(0x1bc)](_0x1e62be,'-')[_0x94309a(0x1bc)](_0x1c1d01[_0x94309a(0x1bd)],'-')[_0x94309a(0x1bc)](_0x2f5b19),_0x2454b7,void 0x0,_0x4fbe80);}));}function _0xff37b3(_0x33c1df,_0x3d1656,_0x884dff){var _0x431722=_0x2c2793,_0x44c86d=_0x418ded({},_0x33c1df[_0x431722(0x167)]);_0x884dff!=null&&_0x884dff['colorChannel1']&&_0x44c86d[_0x431722(0x195)]===_0x431722(0x1eb)&&(_0x44c86d[_0x431722(0x195)]=_0x884dff[_0x431722(0x1eb)]),_0x33c1df[_0x431722(0x1bd)]===_0x431722(0x20c)&&_0x44c86d['id']&&(_0x44c86d['id']=_0x44c86d['id']+_0x3d1656[_0x431722(0x222)]),Object['entries'](_0x44c86d)[_0x431722(0x256)](function(_0x4e78d4){var _0x49bd4e=_0x431722,_0x49a000=_0x4e78d4[0x0],_0x36a33b=_0x4e78d4[0x1];_0x49a000===_0x49bd4e(0x20c)&&typeof _0x36a33b=='string'&&(_0x44c86d[_0x49a000]=_0x36a33b[_0x49bd4e(0x193)](/url\(#(.*)\)/,_0x49bd4e(0x1be)[_0x49bd4e(0x1bc)](_0x3d1656[_0x49bd4e(0x222)],')')));});var _0x44aaf2=_0x3d1656['defIds'];return!_0x44aaf2||_0x44aaf2[_0x431722(0x17e)]===0x0||(_0x33c1df['tag']===_0x431722(0x1c9)&&_0x44c86d[_0x431722(0x208)]&&(_0x44c86d['xlink:href']=_0x44c86d[_0x431722(0x208)]+_0x3d1656[_0x431722(0x222)]),Object[_0x431722(0x21f)](_0x44c86d)[_0x431722(0x256)](function(_0x124f83){var _0x58c4bd=_0x431722,_0x51481b=_0x124f83[0x0],_0x32dc75=_0x124f83[0x1];typeof _0x32dc75=='string'&&(_0x44c86d[_0x51481b]=_0x32dc75[_0x58c4bd(0x193)](/url\(#(.*)\)/,_0x58c4bd(0x1be)['concat'](_0x3d1656['idSuffix'],')')));})),_0x44c86d;}function _0xcea881(_0x4c95fc,_0x51f806){var _0x54ced4=_0x2c2793,_0x13bc25,_0x2088b1=_0x51f806[_0x54ced4(0x207)];return!_0x2088b1||_0x2088b1[_0x54ced4(0x17e)]===0x0?_0x4c95fc:_0x4c95fc['tag']===_0x54ced4(0x1c8)&&(!((_0x13bc25=_0x4c95fc[_0x54ced4(0x161)])===null||_0x13bc25===void 0x0)&&_0x13bc25[_0x54ced4(0x17e)])?_0x418ded(_0x418ded({},_0x4c95fc),{'children':_0x4c95fc['children'][_0x54ced4(0x188)](function(_0x57a327){var _0x31cb79=_0x54ced4;return typeof _0x57a327[_0x31cb79(0x167)]['id']==_0x31cb79(0x1d6)&&_0x2088b1&&_0x2088b1[_0x31cb79(0x20f)](_0x57a327[_0x31cb79(0x167)]['id'])?_0x418ded(_0x418ded({},_0x57a327),{'attrs':_0x418ded(_0x418ded({},_0x57a327[_0x31cb79(0x167)]),{'id':_0x57a327['attrs']['id']+_0x51f806['idSuffix']})}):_0x57a327;})}):_0x4c95fc;}function _0x14dda9(){var _0x419d78=_0x2c2793;return Math['random']()[_0x419d78(0x199)](0x24)[_0x419d78(0x1af)](0x2,0x8);}_0x161414[_0x2c2793(0x23a)]=_0x2c2793(0x250);var _0x50952a={'tag':_0x2c2793(0x1cc),'attrs':{'xmlns':_0x2c2793(0x227),'fill':_0x2c2793(0x228),'viewBox':_0x2c2793(0x24a),'width':'1em','height':_0x2c2793(0x225)},'children':[{'tag':_0x2c2793(0x1ee),'attrs':{'fill':'currentColor','d':_0x2c2793(0x248)}},{'tag':_0x2c2793(0x1ee),'attrs':{'fill':_0x2c2793(0x20e),'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':_0x2c2793(0x24d),'clipRule':_0x2c2793(0x24d)}}]},_0x4badc6=_0x23d454[_0x2c2793(0x22c)](function(_0xd3daf1,_0x5985b4){var _0x51b084=_0x2c2793;return _0x23d454['createElement'](_0x161414,Object[_0x51b084(0x22e)]({},_0xd3daf1,{'id':'live-share-icon','ref':_0x5985b4,'icon':_0x50952a}));});_0x4badc6[_0x2c2793(0x23a)]=_0x2c2793(0x1ba);class _0x5d6275 extends _0x2c8af3['Disposable']{constructor(){super(...arguments),_0x286e4a(this,'_sharedOperations',new Set()),_0x286e4a(this,'_reporters',new Set());}[_0x2c2793(0x180)](_0x5d9f38){var _0x21c1e4=_0x2c2793;return this['_sharedOperations'][_0x21c1e4(0x1ac)](_0x5d9f38),_0x2c8af3['toDisposable'](()=>this[_0x21c1e4(0x1a2)]['delete'](_0x5d9f38));}[_0x2c2793(0x1e9)](_0xe63079){var _0x39b1d2=_0x2c2793;return this[_0x39b1d2(0x1d1)][_0x39b1d2(0x1ac)](_0xe63079),_0x2c8af3[_0x39b1d2(0x244)](()=>this[_0x39b1d2(0x1d1)]['delete'](_0xe63079));}['shouldShareOperation'](_0x166d1a){var _0x23a0e3=_0x2c2793;return this['_sharedOperations'][_0x23a0e3(0x1f1)](_0x166d1a);}['getInitialStates'](_0x29c4c3){var _0x1ea60c=_0x2c2793;return Array[_0x1ea60c(0x249)](this[_0x1ea60c(0x1d1)])[_0x1ea60c(0x188)](_0x58c84c=>_0x58c84c(_0x29c4c3));}}var _0x148477=Object[_0x2c2793(0x217)],_0x2f2cde=(_0x72ce62,_0x162207,_0xb54b50,_0x160be9)=>{var _0x3e4635=_0x2c2793;for(var _0x3036dd=_0x160be9>0x1?void 0x0:_0x160be9?_0x148477(_0x162207,_0xb54b50):_0x162207,_0x511779=_0x72ce62[_0x3e4635(0x17e)]-0x1,_0x1f3480;_0x511779>=0x0;_0x511779--)(_0x1f3480=_0x72ce62[_0x511779])&&(_0x3036dd=_0x1f3480(_0x3036dd)||_0x3036dd);return _0x3036dd;},_0x579d97=(_0x15d373,_0x5d83ad)=>(_0x411492,_0x4a0d57)=>_0x5d83ad(_0x411492,_0x4a0d57,_0x15d373);_0x32a878[_0x2c2793(0x239)]=class extends _0x2c8af3[_0x2c2793(0x1d3)]{constructor(_0x5af2d3,_0x261ca1,_0x1ea5d8){var _0x4f9126=_0x2c2793;super(),_0x286e4a(this,_0x4f9126(0x251),new Map()),(this['_univerInstanceService']=_0x5af2d3,this[_0x4f9126(0x1f8)]=_0x261ca1,this['_collabSessionService']=_0x1ea5d8,this[_0x4f9126(0x16a)]());}async[_0x2c2793(0x184)](_0x43714c){var _0x150afc=_0x2c2793;return this[_0x150afc(0x251)][_0x150afc(0x1f1)](_0x43714c)||await this[_0x150afc(0x1b5)](_0x43714c),this[_0x150afc(0x251)]['get'](_0x43714c);}['_init'](){var _0x41bd93=_0x2c2793;this[_0x41bd93(0x23e)][_0x41bd93(0x216)](_0x2c8af3['UniverInstanceType'][_0x41bd93(0x200)])['pipe'](_0x3751a1['takeUntil'](this['dispose$']))[_0x41bd93(0x19b)](async _0x157281=>{var _0xf677c9=_0x41bd93;const _0x34eefc=_0x157281[_0xf677c9(0x1da)]();this[_0xf677c9(0x251)]['has'](_0x34eefc)||this['_startLiveShareCoordinator'](_0x34eefc);}),this[_0x41bd93(0x23e)][_0x41bd93(0x252)](_0x2c8af3[_0x41bd93(0x254)][_0x41bd93(0x200)])[_0x41bd93(0x201)](_0x3751a1[_0x41bd93(0x253)](this[_0x41bd93(0x1a9)]))[_0x41bd93(0x19b)](_0x542700=>{var _0x5b0ed9=_0x41bd93;const _0x397f19=_0x542700[_0x5b0ed9(0x1da)](),_0x335670=this[_0x5b0ed9(0x251)][_0x5b0ed9(0x1ea)](_0x397f19);_0x335670==null||_0x335670[_0x5b0ed9(0x1f7)]();});}async[_0x2c2793(0x1b5)](_0x469024){var _0x136522=_0x2c2793;const _0x26e4e4=await this[_0x136522(0x245)][_0x136522(0x1fc)](_0x469024),_0x26bb5a=this['_injector'][_0x136522(0x23d)](_0x32a878[_0x136522(0x22a)],_0x469024,_0x26e4e4);return _0x26bb5a[_0x136522(0x1c3)](),this[_0x136522(0x251)]['set'](_0x469024,_0x26bb5a),_0x26bb5a;}},_0x32a878[_0x2c2793(0x239)]=_0x2f2cde([_0x579d97(0x0,_0x2c8af3[_0x2c2793(0x19e)]),_0x579d97(0x1,_0x2c8af3[_0x2c2793(0x1a3)](_0x2c8af3[_0x2c2793(0x1a8)])),_0x579d97(0x2,_0x2c8af3[_0x2c2793(0x1a3)](_0x127d70[_0x2c2793(0x1ff)]))],_0x32a878[_0x2c2793(0x239)]);var _0xaeaf5=(_0x1d0ef1=>(_0x1d0ef1[_0x2c2793(0x1df)]='offline',_0x1d0ef1[_0x2c2793(0x238)]=_0x2c2793(0x211),_0x1d0ef1['FOLLOWING']='following',_0x1d0ef1[_0x2c2793(0x231)]=_0x2c2793(0x185),_0x1d0ef1[_0x2c2793(0x1cf)]=_0x2c2793(0x18f),_0x1d0ef1))(_0xaeaf5||{});const _0x544074=_0x2c2793(0x1e5),_0x474865=0xc8;_0x32a878[_0x2c2793(0x22a)]=class extends _0x2c8af3[_0x2c2793(0x1d3)]{constructor(_0x46ed68,_0x1095ac,_0x3a6d7b,_0x1304b0,_0x1f96ff){var _0x2659e4=_0x2c2793;super(),_0x286e4a(this,_0x2659e4(0x1b2),new _0xecde77['BehaviorSubject'](_0x2659e4(0x211))),_0x286e4a(this,_0x2659e4(0x1ce),this['_status$'][_0x2659e4(0x1bf)]()),_0x286e4a(this,_0x2659e4(0x16a),!0x1),_0x286e4a(this,'_commandDisposable',null),_0x286e4a(this,_0x2659e4(0x174),null),(this[_0x2659e4(0x1ef)]=_0x46ed68,this[_0x2659e4(0x212)]=_0x1095ac,this[_0x2659e4(0x1ab)]=_0x3a6d7b,this[_0x2659e4(0x1a6)]=_0x1304b0,this[_0x2659e4(0x1b4)]=_0x1f96ff);}get[_0x2c2793(0x234)](){var _0x57adbf=_0x2c2793;return this[_0x57adbf(0x1b2)][_0x57adbf(0x183)]();}[_0x2c2793(0x1f7)](){var _0x29834d=_0x2c2793,_0x470570;(_0x470570=this[_0x29834d(0x1b8)])==null||_0x470570[_0x29834d(0x1f7)](),this['_status$'][_0x29834d(0x1dc)](_0x29834d(0x211)),this[_0x29834d(0x1b2)][_0x29834d(0x1d2)]();}[_0x2c2793(0x1c3)](){var _0x53840f=_0x2c2793;this[_0x53840f(0x16a)]||(this[_0x53840f(0x16a)]=!0x0,this[_0x53840f(0x212)][_0x53840f(0x168)][_0x53840f(0x201)](_0x3751a1[_0x53840f(0x253)](this[_0x53840f(0x1a9)]))['subscribe'](_0x23f916=>{var _0x467491=_0x53840f;switch(_0x23f916){case _0x127d70[_0x467491(0x1e1)]['OFFLINE']:this[_0x467491(0x219)]();break;case _0x127d70[_0x467491(0x1e1)][_0x467491(0x187)]:this[_0x467491(0x229)]();break;}}),this[_0x53840f(0x212)]['event$'][_0x53840f(0x201)](_0x3751a1[_0x53840f(0x253)](this[_0x53840f(0x1a9)]))['subscribe'](_0x43b1bd=>{var _0x24e50e=_0x53840f;const {eventID:_0x2b0d84}=_0x43b1bd;switch(_0x2b0d84){case _0x1eba64['CollaborationEvent'][_0x24e50e(0x215)]:this[_0x24e50e(0x1f2)](_0x43b1bd);break;case _0x1eba64[_0x24e50e(0x236)][_0x24e50e(0x19a)]:this['_handleOperation'](_0x43b1bd);break;case _0x1eba64['CollaborationEvent'][_0x24e50e(0x196)]:this[_0x24e50e(0x23f)]();break;case _0x1eba64[_0x24e50e(0x236)][_0x24e50e(0x19f)]:this[_0x24e50e(0x182)](_0x43b1bd);break;}}));}['tryStartPresenting'](){var _0x67d239=_0x2c2793;this[_0x67d239(0x212)][_0x67d239(0x163)]({'eventID':_0x1eba64[_0x67d239(0x236)][_0x67d239(0x24b)],'data':{'unitID':this[_0x67d239(0x1ef)],'userID':this[_0x67d239(0x212)][_0x67d239(0x19d)]()}},this[_0x67d239(0x1ef)]);}[_0x2c2793(0x21c)](){var _0x203f54=_0x2c2793;this['_status']===_0x203f54(0x18f)&&(this['_status$'][_0x203f54(0x1dc)](_0x203f54(0x211)),this[_0x203f54(0x212)][_0x203f54(0x163)]({'eventID':_0x1eba64['CollaborationEvent'][_0x203f54(0x196)],'data':{'unitID':this[_0x203f54(0x1ef)]}},this[_0x203f54(0x1ef)]));}[_0x2c2793(0x230)](){var _0x3317e5=_0x2c2793;this[_0x3317e5(0x234)]===_0x3317e5(0x185)&&(this[_0x3317e5(0x1b2)][_0x3317e5(0x1dc)](_0x3317e5(0x17a)),this[_0x3317e5(0x1d5)]());}[_0x2c2793(0x1b3)](){var _0x953c78=_0x2c2793;this[_0x953c78(0x234)]==='following'&&this[_0x953c78(0x169)]();}[_0x2c2793(0x1f2)](_0x54f52c){var _0x2e6174=_0x2c2793;const {presenter:_0x5640ca}=_0x54f52c['data'],_0x1607ba=this[_0x2e6174(0x212)][_0x2e6174(0x19d)]();this[_0x2e6174(0x174)]=_0x5640ca,_0x5640ca===_0x1607ba?(this[_0x2e6174(0x169)](),this['_startPresenting']()):this[_0x2e6174(0x234)]!=='not-following'&&(this[_0x2e6174(0x1cd)](),this[_0x2e6174(0x1d5)]());}[_0x2c2793(0x170)](){var _0x46f092=_0x2c2793;const _0x564e2a={'eventID':_0x1eba64[_0x46f092(0x236)][_0x46f092(0x214)]};this['_collabSession']['send'](_0x564e2a,this[_0x46f092(0x1ef)]);}['_handleTerminate'](){var _0x268359=_0x2c2793;this[_0x268359(0x174)]=null,this[_0x268359(0x234)]!==_0x268359(0x18f)&&this['_beIdle']();}[_0x2c2793(0x182)](_0xa6d6e1){var _0x355f40=_0x2c2793;if(this[_0x355f40(0x234)]===_0x355f40(0x17a)&&this[_0x355f40(0x174)]===_0xa6d6e1[_0x355f40(0x24e)][_0x355f40(0x1bb)]){const _0x3cdee9=_0x1eba64['parseProtocolChangeset'](_0xa6d6e1[_0x355f40(0x24e)])[_0x355f40(0x1aa)][_0x355f40(0x178)]()[_0x355f40(0x1b7)](_0x21ef5c=>_0x21ef5c['id']===_0x1da1f3['InsertSheetMutation']['id']);if(_0x3cdee9){const _0x4f619a=_0x3cdee9[_0x355f40(0x1e3)][_0x355f40(0x1c7)],_0x27ac91=_0x3cdee9[_0x355f40(0x1e3)][_0x355f40(0x1a1)]['id'];setTimeout(()=>{var _0x2bb284=_0x355f40;this[_0x2bb284(0x1b4)]['executeCommand'](_0x1da1f3[_0x2bb284(0x21e)]['id'],{'unitId':_0x4f619a,'subUnitId':_0x27ac91},{'fromCollab':!0x0});});}}}[_0x2c2793(0x1ed)](){var _0x2f40c4=_0x2c2793;this[_0x2f40c4(0x1b2)]['next'](_0x2f40c4(0x18f));const _0x355317=new Map(),_0x32d52a=this[_0x2f40c4(0x1b8)]=new _0x2c8af3[(_0x2f40c4(0x237))]();_0x32d52a[_0x2f40c4(0x1ac)](_0x2c8af3['toDisposable'](()=>{var _0x1d0d9a=_0x2f40c4;_0x355317[_0x1d0d9a(0x256)](_0x567c0b=>_0x567c0b['complete']()),_0x355317[_0x1d0d9a(0x1ca)]();})),_0x32d52a[_0x2f40c4(0x1ac)](this['_commandService'][_0x2f40c4(0x1b9)](_0x2f6f45=>{var _0x285799=_0x2f40c4,_0x2c3ddc;if(_0x2f6f45[_0x285799(0x1f3)]!==_0x2c8af3[_0x285799(0x172)]['OPERATION']||!this[_0x285799(0x1a6)][_0x285799(0x176)](_0x2f6f45['id']))return;const {id:_0x19d386}=_0x2f6f45;let _0x170b54;_0x355317[_0x285799(0x1f1)](_0x19d386)?_0x170b54=_0x355317[_0x285799(0x1ea)](_0x19d386):(_0x170b54=new _0xecde77[(_0x285799(0x23b))](),_0x355317[_0x285799(0x22d)](_0x19d386,_0x170b54),_0x170b54[_0x285799(0x201)](_0x3751a1[_0x285799(0x1d0)]((_0x2c3ddc=this[_0x285799(0x1ab)][_0x285799(0x1fd)](_0x544074))!=null?_0x2c3ddc:_0x474865,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x285799(0x19b)](_0xfeca05=>{var _0x39edc2=_0x285799;this[_0x39edc2(0x212)]['send']({'eventID':_0x1eba64['CollaborationEvent'][_0x39edc2(0x19a)],'data':{'unitID':this[_0x39edc2(0x1ef)],'operations':{[_0xfeca05['id']]:{'id':_0xfeca05['id'],'params':JSON[_0x39edc2(0x210)](_0xfeca05[_0x39edc2(0x1e3)])}}}},this['_unitID']);})),_0x170b54[_0x285799(0x1dc)](_0x2f6f45);})),this[_0x2f40c4(0x1a6)][_0x2f40c4(0x197)](this[_0x2f40c4(0x1ef)])['forEach'](_0x259f88=>this[_0x2f40c4(0x212)]['send']({'eventID':_0x1eba64[_0x2f40c4(0x236)][_0x2f40c4(0x19a)],'data':{'unitID':this[_0x2f40c4(0x1ef)],'operations':{[_0x259f88['id']]:{'id':_0x259f88['id'],'params':JSON[_0x2f40c4(0x210)](_0x259f88[_0x2f40c4(0x1e3)])}}}},this[_0x2f40c4(0x1ef)]));}['_stopPresenting'](){var _0x14b322=_0x2c2793,_0x400d8c;this[_0x14b322(0x1b2)][_0x14b322(0x1dc)](_0x14b322(0x211)),(_0x400d8c=this[_0x14b322(0x1b8)])==null||_0x400d8c[_0x14b322(0x1f7)](),this[_0x14b322(0x1b8)]=null;}[_0x2c2793(0x1d5)](){var _0x11147a=_0x2c2793,_0x387d30;(_0x387d30=this[_0x11147a(0x1b8)])==null||_0x387d30[_0x11147a(0x1f7)](),this[_0x11147a(0x1b2)]['next']('following');}[_0x2c2793(0x1f5)](){var _0x24ed81=_0x2c2793,_0x529961;this[_0x24ed81(0x1b2)]['next'](_0x24ed81(0x211)),(_0x529961=this['_commandDisposable'])==null||_0x529961['dispose'](),this[_0x24ed81(0x1b8)]=null;}['_stopFollowing'](){var _0x11261a=_0x2c2793,_0xa358;this['_status$'][_0x11261a(0x1dc)](_0x11261a(0x185)),(_0xa358=this[_0x11261a(0x1b8)])==null||_0xa358[_0x11261a(0x1f7)]();}['_handleOperation'](_0x23d5f3){var _0x340b0f=_0x2c2793;if([_0x340b0f(0x18f),_0x340b0f(0x185),'offline'][_0x340b0f(0x20f)](this[_0x340b0f(0x234)])||!_0x23d5f3[_0x340b0f(0x24e)][_0x340b0f(0x1c2)]||_0x23d5f3['data'][_0x340b0f(0x1c2)]===this[_0x340b0f(0x212)][_0x340b0f(0x19d)]())return;this[_0x340b0f(0x234)]==='idle'&&this[_0x340b0f(0x1d5)]();const _0x2087e0=_0x23d5f3['data'][_0x340b0f(0x1ad)];Object[_0x340b0f(0x1e0)](_0x2087e0)[_0x340b0f(0x256)](_0x442b85=>{var _0x48587f=_0x340b0f;this[_0x48587f(0x1b4)]['executeCommand'](_0x442b85['id'],_0x442b85[_0x48587f(0x1e3)]?JSON[_0x48587f(0x203)](_0x442b85[_0x48587f(0x1e3)]):null,{'fromCollab':!0x0});});}[_0x2c2793(0x219)](){var _0x56fda8=_0x2c2793,_0x3aaf0e;this[_0x56fda8(0x1b2)][_0x56fda8(0x1dc)](_0x56fda8(0x16b)),(_0x3aaf0e=this[_0x56fda8(0x1b8)])==null||_0x3aaf0e[_0x56fda8(0x1f7)]();}['_handleOnline'](){var _0x1f7485=_0x2c2793;this[_0x1f7485(0x1b2)][_0x1f7485(0x1dc)]('idle'),this[_0x1f7485(0x170)]();}},_0x32a878['LiveShareCoordinator']=_0x2f2cde([_0x579d97(0x2,_0x2c8af3['IConfigService']),_0x579d97(0x3,_0x2c8af3['Inject'](_0x5d6275)),_0x579d97(0x4,_0x2c8af3[_0x2c2793(0x204)])],_0x32a878[_0x2c2793(0x22a)]);function _0x37e2be(){var _0x3637b1=_0x2c2793;const _0x337136=_0x4d4b38[_0x3637b1(0x1a5)](_0x32a878[_0x3637b1(0x239)]),_0x1a1daa=_0x4d4b38[_0x3637b1(0x1a5)](_0x2c8af3[_0x3637b1(0x19e)]),_0x4c1de6=_0x4d4b38[_0x3637b1(0x1e4)](()=>_0x1a1daa[_0x3637b1(0x242)](_0x2c8af3[_0x3637b1(0x254)][_0x3637b1(0x200)]),void 0x0,!0x1,[]),[_0x38c30a,_0x3b32f6]=_0x23d454[_0x3637b1(0x1fa)](null),[_0x59850c,_0x3464e8]=_0x23d454['useState'](_0xaeaf5['IDLE']),_0x477489=_0x23d454[_0x3637b1(0x1d4)](null);return _0x23d454[_0x3637b1(0x21b)](()=>(_0x4c1de6&&_0x337136['getLiveShareCoordinator'](_0x4c1de6[_0x3637b1(0x1da)]())['then'](_0x21beef=>{var _0x49f329=_0x3637b1;_0x3b32f6(_0x21beef),_0x477489[_0x49f329(0x22b)]=_0x21beef[_0x49f329(0x1ce)][_0x49f329(0x19b)](_0x5eb205=>{_0x3464e8(_0x5eb205);});}),()=>{var _0x310c2f=_0x3637b1,_0x1bc307;(_0x1bc307=_0x477489['current'])==null||_0x1bc307[_0x310c2f(0x165)](),_0x477489[_0x310c2f(0x22b)]=null;}),[_0x4c1de6,_0x337136]),_0x38c30a?_0x40ffe6[_0x3637b1(0x221)](_0x5146f0[_0x3637b1(0x16d)],{'align':_0x3637b1(0x16f),'disabled':_0x59850c===_0xaeaf5['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':_0x40ffe6['jsx'](_0x5c3011,{'status':_0x59850c,'coordinator':_0x38c30a}),'children':_0x40ffe6['jsx'](_0x3637b1(0x209),{'className':_0x5146f0[_0x3637b1(0x1de)](_0x3637b1(0x18e),{'univer-cursor-not-allowed':_0x59850c===_0xaeaf5[_0x3637b1(0x1df)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59850c!==_0xaeaf5['OFFLINE']}),'type':'button','children':_0x40ffe6[_0x3637b1(0x221)](_0x4badc6,{'className':_0x3637b1(0x17f)})})}):null;}function _0x5c3011(_0x3fc40a){var _0x40f798=_0x2c2793;const {status:_0x3e8f71,coordinator:_0x19f620}=_0x3fc40a;switch(_0x3e8f71){case _0xaeaf5[_0x40f798(0x238)]:return _0x40ffe6['jsx'](_0x1c4365,{'coordinator':_0x19f620});case _0xaeaf5[_0x40f798(0x21a)]:return _0x40ffe6[_0x40f798(0x221)](_0xe47d35,{'coordinator':_0x19f620});case _0xaeaf5[_0x40f798(0x231)]:return _0x40ffe6[_0x40f798(0x221)](_0x33c3aa,{'coordinator':_0x19f620});case _0xaeaf5[_0x40f798(0x1df)]:return _0x40ffe6[_0x40f798(0x221)](_0x2602af,{});case _0xaeaf5['PRESENTING']:return _0x40ffe6['jsx'](_0x1d339b,{'coordinator':_0x19f620});default:return null;}}function _0x1c4365(_0x5c9618){var _0x25087a=_0x2c2793;const {coordinator:_0xf02bae}=_0x5c9618;return _0x40ffe6[_0x25087a(0x1d9)](_0x40ffe6[_0x25087a(0x1db)],{'children':[_0x40ffe6['jsx'](_0x25087a(0x17b),{'className':_0x25087a(0x181),'children':'Present\x20this\x20document'}),_0x40ffe6[_0x25087a(0x221)](_0x5146f0[_0x25087a(0x213)],{'onClick':()=>_0xf02bae[_0x25087a(0x1f0)](),'children':_0x25087a(0x18d)})]});}function _0xe47d35(_0x4cfea6){var _0x21a28d=_0x2c2793;const {coordinator:_0x4752c4}=_0x4cfea6;return _0x40ffe6[_0x21a28d(0x1d9)](_0x40ffe6[_0x21a28d(0x1db)],{'children':[_0x40ffe6['jsx']('div',{'className':_0x21a28d(0x181),'children':_0x21a28d(0x173)}),_0x40ffe6[_0x21a28d(0x221)](_0x5146f0[_0x21a28d(0x213)],{'onClick':()=>_0x4752c4['stopFollowing'](),'children':_0x21a28d(0x1b1)})]});}function _0x33c3aa(_0x2de73a){var _0x4150a0=_0x2c2793;const {coordinator:_0x41e509}=_0x2de73a;return _0x40ffe6['jsxs'](_0x40ffe6[_0x4150a0(0x1db)],{'children':[_0x40ffe6[_0x4150a0(0x221)](_0x4150a0(0x17b),{'className':_0x4150a0(0x181),'children':_0x4150a0(0x232)}),_0x40ffe6[_0x4150a0(0x221)](_0x5146f0[_0x4150a0(0x213)],{'variant':'text','onClick':()=>_0x41e509[_0x4150a0(0x230)](),'children':_0x4150a0(0x1a7)})]});}function _0x1d339b(_0x222bc0){var _0x75f8c8=_0x2c2793;const {coordinator:_0x11e6c3}=_0x222bc0;return _0x40ffe6[_0x75f8c8(0x1d9)](_0x40ffe6[_0x75f8c8(0x1db)],{'children':[_0x40ffe6[_0x75f8c8(0x221)]('div',{'className':_0x75f8c8(0x181),'children':_0x75f8c8(0x1c5)}),_0x40ffe6['jsx'](_0x5146f0[_0x75f8c8(0x213)],{'variant':'default','onClick':()=>_0x11e6c3[_0x75f8c8(0x21c)](),'children':'Stop\x20presenting'})]});}function _0x2602af(){var _0x32dcd9=_0x2c2793;return _0x40ffe6[_0x32dcd9(0x221)](_0x40ffe6[_0x32dcd9(0x1db)],{'children':_0x32dcd9(0x1a0)});}var _0x5aa230=Object[_0x2c2793(0x217)],_0x55be43=(_0x2ea555,_0x229a53,_0x1a87b2,_0x452041)=>{for(var _0x1ab57c=_0x452041>0x1?void 0x0:_0x452041?_0x5aa230(_0x229a53,_0x1a87b2):_0x229a53,_0x188007=_0x2ea555['length']-0x1,_0x38a135;_0x188007>=0x0;_0x188007--)(_0x38a135=_0x2ea555[_0x188007])&&(_0x1ab57c=_0x38a135(_0x1ab57c)||_0x1ab57c);return _0x1ab57c;},_0x4749f0=(_0x44cd9f,_0x408ce2)=>(_0x286e42,_0x280e14)=>_0x408ce2(_0x286e42,_0x280e14,_0x44cd9f);_0x32a878[_0x2c2793(0x1c0)]=class extends _0x2c8af3[_0x2c2793(0x19c)]{constructor(_0x58d333,_0x397945){var _0x45d5e1=_0x2c2793;super(),this[_0x45d5e1(0x1f8)]=_0x58d333,this[_0x45d5e1(0x20a)]=_0x397945,this[_0x45d5e1(0x1f9)]();}['_mountLiveShare'](){var _0x256bbe=_0x2c2793;this['disposeWithMe'](this['_uiPartsService'][_0x256bbe(0x20b)](_0x4d4b38[_0x256bbe(0x179)]['HEADER_MENU'],()=>_0x4d4b38[_0x256bbe(0x226)](_0x37e2be,this[_0x256bbe(0x1f8)])));}},_0x32a878[_0x2c2793(0x1c0)]=_0x55be43([_0x4749f0(0x0,_0x2c8af3[_0x2c2793(0x1a3)](_0x2c8af3['Injector'])),_0x4749f0(0x1,_0x4d4b38[_0x2c2793(0x191)])],_0x32a878[_0x2c2793(0x1c0)]);const _0xca509e=_0x2c2793(0x224),_0xd1f8cb={};var _0x3537e4=Object['getOwnPropertyDescriptor'],_0x229cfc=(_0x41e0ef,_0x238a83,_0x51d9b9,_0x3217ad)=>{var _0x54172d=_0x2c2793;for(var _0x14f191=_0x3217ad>0x1?void 0x0:_0x3217ad?_0x3537e4(_0x238a83,_0x51d9b9):_0x238a83,_0x43d9b3=_0x41e0ef[_0x54172d(0x17e)]-0x1,_0x485275;_0x43d9b3>=0x0;_0x43d9b3--)(_0x485275=_0x41e0ef[_0x43d9b3])&&(_0x14f191=_0x485275(_0x14f191)||_0x14f191);return _0x14f191;},_0x1c26b8=(_0x26258d,_0x58def9)=>(_0x432941,_0x3cc716)=>_0x58def9(_0x432941,_0x3cc716,_0x26258d);let _0x6ad54a=class extends _0x2c8af3[_0x2c2793(0x19c)]{constructor(_0x56f8fa){var _0x3d9cbe=_0x2c2793;super(),this['_liveShareService']=_0x56f8fa,this[_0x3d9cbe(0x16a)]();}[_0x2c2793(0x16a)](){var _0x38fb3b=_0x2c2793;[_0x333091[_0x38fb3b(0x162)]['id'],_0x333091[_0x38fb3b(0x175)]['id'],_0x1da1f3['SetWorksheetActiveOperation']['id']][_0x38fb3b(0x256)](_0x5f068e=>{var _0xb6879b=_0x38fb3b;this[_0xb6879b(0x1d7)](this[_0xb6879b(0x1a6)][_0xb6879b(0x180)](_0x5f068e));});}};_0x6ad54a=_0x229cfc([_0x1c26b8(0x0,_0x2c8af3[_0x2c2793(0x1a3)](_0x5d6275))],_0x6ad54a);var _0x1acc7e=Object[_0x2c2793(0x23c)],_0x1ed973=Object[_0x2c2793(0x217)],_0x1f13ad=(_0x3f6bf7,_0x47fab4,_0x252fc5)=>_0x47fab4 in _0x3f6bf7?_0x1acc7e(_0x3f6bf7,_0x47fab4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x252fc5}):_0x3f6bf7[_0x47fab4]=_0x252fc5,_0x476756=(_0x553e20,_0xae586,_0x1096fd,_0x563c14)=>{var _0x13d2c5=_0x2c2793;for(var _0x1c5a46=_0x563c14>0x1?void 0x0:_0x563c14?_0x1ed973(_0xae586,_0x1096fd):_0xae586,_0x33e0d6=_0x553e20[_0x13d2c5(0x17e)]-0x1,_0x3a6042;_0x33e0d6>=0x0;_0x33e0d6--)(_0x3a6042=_0x553e20[_0x33e0d6])&&(_0x1c5a46=_0x3a6042(_0x1c5a46)||_0x1c5a46);return _0x1c5a46;},_0x2a6d6a=(_0x30820e,_0x425147)=>(_0x49fea1,_0x21cae1)=>_0x425147(_0x49fea1,_0x21cae1,_0x30820e),_0x43ebd5=(_0x46aa04,_0x4f030b,_0x377098)=>_0x1f13ad(_0x46aa04,typeof _0x4f030b!=_0x2c2793(0x177)?_0x4f030b+'':_0x4f030b,_0x377098);const _0x570e7c=_0x2c2793(0x1f6);_0x32a878[_0x2c2793(0x205)]=class extends _0x2c8af3[_0x2c2793(0x189)]{constructor(_0x2e2ffc=_0xd1f8cb,_0x1ccefd,_0x1eda2c){var _0x275508=_0x2c2793;super(),this['_config']=_0x2e2ffc,this['_injector']=_0x1ccefd,this[_0x275508(0x1ab)]=_0x1eda2c;const {..._0x28e074}=_0x2c8af3[_0x275508(0x192)]({},_0xd1f8cb,this['_config']);this[_0x275508(0x1ab)][_0x275508(0x1fe)](_0xca509e,_0x28e074);}['onStarting'](){var _0x280b84=_0x2c2793;_0x2c8af3[_0x280b84(0x1e7)](this[_0x280b84(0x1f8)],_0x2c8af3[_0x280b84(0x194)]([[_0x5d6275],[_0x32a878[_0x280b84(0x239)]],[_0x6ad54a],[_0x32a878['DesktopLiveShareController']]],this['_config'][_0x280b84(0x1b0)])),_0x2c8af3[_0x280b84(0x18a)](this[_0x280b84(0x1f8)],[[_0x6ad54a]]);}[_0x2c2793(0x202)](){var _0x191e45=_0x2c2793;_0x2c8af3['touchDependencies'](this[_0x191e45(0x1f8)],[[_0x32a878['DesktopLiveShareController']]]);}},_0x43ebd5(_0x32a878['UniverLiveSharePlugin'],_0x2c2793(0x1f3),_0x2c8af3[_0x2c2793(0x254)][_0x2c2793(0x247)]),_0x43ebd5(_0x32a878[_0x2c2793(0x205)],_0x2c2793(0x1c4),_0x570e7c),_0x32a878[_0x2c2793(0x205)]=_0x476756([_0x2c8af3[_0x2c2793(0x220)](_0x127d70[_0x2c2793(0x1fb)]),_0x2a6d6a(0x1,_0x2c8af3[_0x2c2793(0x1a3)](_0x2c8af3[_0x2c2793(0x1a8)])),_0x2a6d6a(0x2,_0x2c8af3[_0x2c2793(0x24f)])],_0x32a878[_0x2c2793(0x205)]),_0x32a878[_0x2c2793(0x235)]=_0x37e2be,_0x32a878[_0x2c2793(0x1f4)]=_0x5d6275,_0x32a878[_0x2c2793(0x1e6)]=_0xaeaf5,Object[_0x2c2793(0x23c)](_0x32a878,Symbol['toStringTag'],{'value':'Module'});}));
1
+ function _0x5903(){var _0x464e5d=['_handleOnline','99CYSNtb','defs','onCommandExecuted','SessionStatus','UniverUi','attrs','getCurrentTypeOfUnit$','random','merge','_presenter','jsx','FOLLOWING','IUIPartsService','then','LIVESHARE_OPERATION','getConfig','BehaviorSubject','toDisposable','Module','4092egMIPZ','ICommandService','UniverCollaborationClientPlugin','complete','5277hZGUSp','idle','stopFollowing','init','_configService','asObservable','_mountLiveShare','replace','_liveShareService','delete','IConfigService','entries','LiveShareController','_sharedOperations','tag','map','_startPresenting','getLiveShareCoordinator','forwardRef','toStringTag','defineProperty','UNIVER_UNKNOWN','div','call','operations','_entities','UniverIcon','path','LiveShareIcon','_stopFollowing','SetScrollOperation','RxDisposable','UNIVER_LIVE_SHARE_PLUGIN','SAME_OPERATION_SHARE_INTERVAL','default','presenting','length','79893pvfQPg','button','live-share-icon','clear','Button','Stop\x20following','_univerInstanceService','univer-size-4','displayName','send','unsubscribe','mergeOverrideWithDependencies','createInstance','getOwnPropertyDescriptor','IUniverInstanceService','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','from','connectInjector','includes','UniverLiveSharePlugin','dispose$','currentColor','univer-mb-3\x20univer-w-full\x20univer-text-sm','OFFLINE','evenodd','useRef','next','rxjs','You\x27re\x20following\x20the\x20presenter','colorChannel1','getTypeOfUnitDisposed$','xlink:href','react/jsx-runtime','_collabSessionService','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','function','UniverSheets','CommandType','unitId','@univerjs/design','use','_handleOffline','getValue','_commandDisposable','pluginName','20oBpzmY','useEffect','ONLINE','Stop\x20presenting','UniverDesign','@univerjs/sheets-ui','symbol','pipe','defIds','617298JnnHyW','status$','_handleTerminate','DependentOn','subscribe','data','not-following','1268992kmGXRf','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','getOwnPropertySymbols','registerSharedOperation','sheet','fill','UniverProCollaboration','idSuffix','url(#$1','createElement','takeUntil','0\x200\x2017\x2017','live-share.config','prototype','@univerjs/sheets','className','set','_startFollowing','UniverProCollaborationClient','Disposable','_config','CollaborationSessionService','touchDependencies','_stopPresenting','_uiPartsService','_reporters','presenter','Fragment','112prSGvF','concat','_unitID','http://www.w3.org/2000/svg','_fetchOperations','icon','_startLiveShareCoordinator','override','parse','_handleOperation','rxjs/operators','text','LIVESHARE_TERMINATE','UniverCore','Injector','IDLE','getUnitId','type','_handleNewHost','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose','_injector','trim','react','13044752eNFUYF','SetZoomRatioOperation','_status$','has','UniverProLiveShare','event$','current','UniverInstanceType','_status','BuiltInUIPart','object','112IFLWOy','disposeWithMe','You\x27are\x20offline.','_handleNewChangeSets','LIVESHARE_REQUEST_HOST','operators','React','univerjs-icon\x20univerjs-icon-','throttleTime','indexOf','registerInitialStateReporter','_commandService','get','reverse','useDependency','getInitialStates','hasOwnProperty','_init','registerComponent','_beIdle','clsx','CollaborationEvent','jsxs','add','677OpdAKn','_collabSession','forEach','You\x27re\x20presenting\x20the\x20document','LIVESHARE_FETCH_OPERATIONS','params','apply','LiveShareCoordinator','DesktopLiveShareController','SetWorksheetActiveOperation','following','extend','requireSession','@univerjs/ui','427030JIrcrg','@univerjs-pro/collaboration-client','mutations','offline','@univerjs/core','NOT_FOLLOWING','tryStartPresenting','stopPresenting','Inject','getMemberID','LIVESHARE_NEW_HOST','onRendered','UniverSheetsUi','toString','UNIVER_SHEET','amd','shouldShareOperation','startFollowing','PRESENTING'];_0x5903=function(){return _0x464e5d;};return _0x5903();}function _0x30de(_0x2af7c4,_0x4d558f){var _0x59037b=_0x5903();return _0x30de=function(_0x30dee4,_0xacc432){_0x30dee4=_0x30dee4-0x14f;var _0x5206ff=_0x59037b[_0x30dee4];return _0x5206ff;},_0x30de(_0x2af7c4,_0x4d558f);}(function(_0x12d2be,_0x29fbc8){var _0x5a6c92=_0x30de,_0x1adf29=_0x12d2be();while(!![]){try{var _0x1cf8e3=parseInt(_0x5a6c92(0x212))/0x1*(-parseInt(_0x5a6c92(0x1fa))/0x2)+parseInt(_0x5a6c92(0x159))/0x3+parseInt(_0x5a6c92(0x1bb))/0x4*(parseInt(_0x5a6c92(0x1ab))/0x5)+parseInt(_0x5a6c92(0x1b4))/0x6*(-parseInt(_0x5a6c92(0x1d7))/0x7)+-parseInt(_0x5a6c92(0x1ef))/0x8+parseInt(_0x5a6c92(0x234))/0x9*(parseInt(_0x5a6c92(0x220))/0xa)+-parseInt(_0x5a6c92(0x17e))/0xb*(-parseInt(_0x5a6c92(0x155))/0xc);if(_0x1cf8e3===_0x29fbc8)break;else _0x1adf29['push'](_0x1adf29['shift']());}catch(_0x306622){_0x1adf29['push'](_0x1adf29['shift']());}}}(_0x5903,0xdc585),function(_0x195718,_0x1ba773){var _0x1b6ab5=_0x30de;typeof exports==_0x1b6ab5(0x1f9)&&typeof module<'u'?_0x1ba773(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==_0x1b6ab5(0x1a1)&&define[_0x1b6ab5(0x22f)]?define(['exports',_0x1b6ab5(0x224),_0x1b6ab5(0x21f),_0x1b6ab5(0x19e),_0x1b6ab5(0x1a5),_0x1b6ab5(0x1ee),'@univerjs-pro/collaboration',_0x1b6ab5(0x221),_0x1b6ab5(0x1c9),_0x1b6ab5(0x199),_0x1b6ab5(0x1e1),_0x1b6ab5(0x1b0)],_0x1ba773):(_0x195718=typeof globalThis<'u'?globalThis:_0x195718||self,_0x1ba773(_0x195718[_0x1b6ab5(0x1f3)]={},_0x195718[_0x1b6ab5(0x1e4)],_0x195718[_0x1b6ab5(0x238)],_0x195718[_0x1b6ab5(0x200)],_0x195718[_0x1b6ab5(0x1af)],_0x195718[_0x1b6ab5(0x200)],_0x195718[_0x1b6ab5(0x1c1)],_0x195718[_0x1b6ab5(0x1cd)],_0x195718[_0x1b6ab5(0x1a2)],_0x195718['rxjs'],_0x195718[_0x1b6ab5(0x199)][_0x1b6ab5(0x1ff)],_0x195718[_0x1b6ab5(0x22c)]));}(this,function(_0x1b1b46,_0x26f18b,_0x59d7e5,_0x32afa7,_0x473f5a,_0x14d2f4,_0x4aa211,_0x442631,_0x44cbd7,_0x189b96,_0x2ccdd4,_0x1b9391){'use strict';var _0x26850c=_0x30de;var _0x3081ad=Object[_0x26850c(0x16d)],_0x4ba379=(_0x6c5b0e,_0x514eb5,_0x5e3d85)=>_0x514eb5 in _0x6c5b0e?_0x3081ad(_0x6c5b0e,_0x514eb5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e3d85}):_0x6c5b0e[_0x514eb5]=_0x5e3d85,_0x484d59=(_0x1ca084,_0x39b224,_0x5ef9a8)=>_0x4ba379(_0x1ca084,typeof _0x39b224!=_0x26850c(0x1b1)?_0x39b224+'':_0x39b224,_0x5ef9a8),_0x456160=function(){var _0x5bb6f8=_0x26850c;return _0x456160=Object['assign']||function(_0x312730){var _0x165913=_0x30de;for(var _0x5e6992,_0x74b3c3=0x1,_0x74586d=arguments[_0x165913(0x17d)];_0x74b3c3<_0x74586d;_0x74b3c3++){_0x5e6992=arguments[_0x74b3c3];for(var _0xb42414 in _0x5e6992)Object[_0x165913(0x1c8)][_0x165913(0x20a)][_0x165913(0x170)](_0x5e6992,_0xb42414)&&(_0x312730[_0xb42414]=_0x5e6992[_0xb42414]);}return _0x312730;},_0x456160[_0x5bb6f8(0x218)](this,arguments);},_0x9cb926=function(_0x116c7f,_0x2eed92){var _0x243660=_0x26850c,_0x9149d8={};for(var _0x156175 in _0x116c7f)Object[_0x243660(0x1c8)][_0x243660(0x20a)][_0x243660(0x170)](_0x116c7f,_0x156175)&&_0x2eed92[_0x243660(0x203)](_0x156175)<0x0&&(_0x9149d8[_0x156175]=_0x116c7f[_0x156175]);if(_0x116c7f!=null&&typeof Object[_0x243660(0x1bd)]==_0x243660(0x1a1)){for(var _0x3f6fec=0x0,_0x156175=Object[_0x243660(0x1bd)](_0x116c7f);_0x3f6fec<_0x156175[_0x243660(0x17d)];_0x3f6fec++)_0x2eed92[_0x243660(0x203)](_0x156175[_0x3f6fec])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x116c7f,_0x156175[_0x3f6fec])&&(_0x9149d8[_0x156175[_0x3f6fec]]=_0x116c7f[_0x156175[_0x3f6fec]]);}return _0x9149d8;},_0x1ec2f2=_0x14d2f4[_0x26850c(0x16b)](function(_0xa437f5,_0x16c9d6){var _0x5c5f87=_0x26850c,_0x4effa4=_0xa437f5['icon'],_0x4d3f89=_0xa437f5['id'],_0x4b7410=_0xa437f5[_0x5c5f87(0x1ca)],_0x174d0f=_0xa437f5[_0x5c5f87(0x21d)],_0x1c7a8e=_0x9cb926(_0xa437f5,[_0x5c5f87(0x1dc),'id',_0x5c5f87(0x1ca),_0x5c5f87(0x21d)]),_0x4b2bb3=_0x5c5f87(0x201)[_0x5c5f87(0x1d8)](_0x4d3f89,'\x20')['concat'](_0x4b7410||'')[_0x5c5f87(0x1ed)](),_0x587774=_0x14d2f4['useRef']('_'[_0x5c5f87(0x1d8)](_0x5b95ea()));return _0x486a33(_0x4effa4,''[_0x5c5f87(0x1d8)](_0x4d3f89),{'defIds':_0x4effa4['defIds'],'idSuffix':_0x587774['current']},_0x456160({'ref':_0x16c9d6,'className':_0x4b2bb3},_0x1c7a8e),_0x174d0f);});function _0x486a33(_0x4c8fae,_0x5aecd0,_0x362001,_0xea01df,_0xfd85de){var _0x52ff3d=_0x26850c;return _0x14d2f4[_0x52ff3d(0x1c4)](_0x4c8fae[_0x52ff3d(0x167)],_0x456160(_0x456160({'key':_0x5aecd0},_0x8ff13d(_0x4c8fae,_0x362001,_0xfd85de)),_0xea01df),(_0x906c4a(_0x4c8fae,_0x362001)['children']||[])[_0x52ff3d(0x168)](function(_0x29ce51,_0x4cf9be){var _0x234360=_0x52ff3d;return _0x486a33(_0x29ce51,''['concat'](_0x5aecd0,'-')[_0x234360(0x1d8)](_0x4c8fae['tag'],'-')['concat'](_0x4cf9be),_0x362001,void 0x0,_0xfd85de);}));}function _0x8ff13d(_0x5b1798,_0xc8d9c0,_0x7fb9c2){var _0x41f173=_0x26850c,_0x277959=_0x456160({},_0x5b1798['attrs']);_0x7fb9c2!=null&&_0x7fb9c2[_0x41f173(0x19b)]&&_0x277959['fill']==='colorChannel1'&&(_0x277959[_0x41f173(0x1c0)]=_0x7fb9c2['colorChannel1']),_0x5b1798[_0x41f173(0x167)]==='mask'&&_0x277959['id']&&(_0x277959['id']=_0x277959['id']+_0xc8d9c0[_0x41f173(0x1c2)]),Object[_0x41f173(0x164)](_0x277959)[_0x41f173(0x214)](function(_0x490304){var _0x457064=_0x41f173,_0xa253db=_0x490304[0x0],_0x477330=_0x490304[0x1];_0xa253db==='mask'&&typeof _0x477330=='string'&&(_0x277959[_0xa253db]=_0x477330['replace'](/url\(#(.*)\)/,_0x457064(0x1c3)['concat'](_0xc8d9c0[_0x457064(0x1c2)],')')));});var _0x4ada19=_0xc8d9c0[_0x41f173(0x1b3)];return!_0x4ada19||_0x4ada19[_0x41f173(0x17d)]===0x0||(_0x5b1798[_0x41f173(0x167)]===_0x41f173(0x1a6)&&_0x277959['xlink:href']&&(_0x277959[_0x41f173(0x19d)]=_0x277959[_0x41f173(0x19d)]+_0xc8d9c0[_0x41f173(0x1c2)]),Object[_0x41f173(0x164)](_0x277959)[_0x41f173(0x214)](function(_0x4369a3){var _0x2a1929=_0x41f173,_0x4427c7=_0x4369a3[0x0],_0x5d1737=_0x4369a3[0x1];typeof _0x5d1737=='string'&&(_0x277959[_0x4427c7]=_0x5d1737[_0x2a1929(0x160)](/url\(#(.*)\)/,_0x2a1929(0x1c3)[_0x2a1929(0x1d8)](_0xc8d9c0[_0x2a1929(0x1c2)],')')));})),_0x277959;}function _0x906c4a(_0x5a32a0,_0x3f4898){var _0x271600=_0x26850c,_0x192461,_0xb337fc=_0x3f4898['defIds'];return!_0xb337fc||_0xb337fc['length']===0x0?_0x5a32a0:_0x5a32a0[_0x271600(0x167)]===_0x271600(0x235)&&(!((_0x192461=_0x5a32a0['children'])===null||_0x192461===void 0x0)&&_0x192461[_0x271600(0x17d)])?_0x456160(_0x456160({},_0x5a32a0),{'children':_0x5a32a0['children'][_0x271600(0x168)](function(_0x2cd2cb){var _0x39c915=_0x271600;return typeof _0x2cd2cb[_0x39c915(0x239)]['id']=='string'&&_0xb337fc&&_0xb337fc[_0x39c915(0x190)](_0x2cd2cb[_0x39c915(0x239)]['id'])?_0x456160(_0x456160({},_0x2cd2cb),{'attrs':_0x456160(_0x456160({},_0x2cd2cb[_0x39c915(0x239)]),{'id':_0x2cd2cb[_0x39c915(0x239)]['id']+_0x3f4898[_0x39c915(0x1c2)]})}):_0x2cd2cb;})}):_0x5a32a0;}function _0x5b95ea(){var _0x513db2=_0x26850c;return Math[_0x513db2(0x23b)]()[_0x513db2(0x22d)](0x24)['substring'](0x2,0x8);}_0x1ec2f2[_0x26850c(0x186)]=_0x26850c(0x173);var _0x418013={'tag':'svg','attrs':{'xmlns':_0x26850c(0x1da),'fill':'none','viewBox':_0x26850c(0x1c6),'width':'1em','height':'1em'},'children':[{'tag':_0x26850c(0x174),'attrs':{'fill':_0x26850c(0x193),'d':_0x26850c(0x1bc)}},{'tag':'path','attrs':{'fill':_0x26850c(0x193),'d':_0x26850c(0x1a0),'fillRule':'evenodd','clipRule':_0x26850c(0x196)}}]},_0x2abceb=_0x14d2f4[_0x26850c(0x16b)](function(_0x56df90,_0x3f65d8){var _0x42de8d=_0x26850c;return _0x14d2f4[_0x42de8d(0x1c4)](_0x1ec2f2,Object['assign']({},_0x56df90,{'id':_0x42de8d(0x180),'ref':_0x3f65d8,'icon':_0x418013}));});_0x2abceb[_0x26850c(0x186)]=_0x26850c(0x175);class _0x1958b7 extends _0x26f18b[_0x26850c(0x1ce)]{constructor(){var _0x4008b2=_0x26850c;super(...arguments),_0x484d59(this,'_sharedOperations',new Set()),_0x484d59(this,_0x4008b2(0x1d4),new Set());}[_0x26850c(0x1be)](_0x2a0ccd){var _0x2743ea=_0x26850c;return this[_0x2743ea(0x166)][_0x2743ea(0x211)](_0x2a0ccd),_0x26f18b['toDisposable'](()=>this['_sharedOperations']['delete'](_0x2a0ccd));}[_0x26850c(0x204)](_0x2989c0){var _0x3369fa=_0x26850c;return this[_0x3369fa(0x1d4)][_0x3369fa(0x211)](_0x2989c0),_0x26f18b[_0x3369fa(0x153)](()=>this[_0x3369fa(0x1d4)][_0x3369fa(0x162)](_0x2989c0));}['shouldShareOperation'](_0x3fc113){var _0x306bff=_0x26850c;return this[_0x306bff(0x166)][_0x306bff(0x1f2)](_0x3fc113);}[_0x26850c(0x209)](_0x365ffc){var _0x1d9236=_0x26850c;return Array[_0x1d9236(0x18e)](this[_0x1d9236(0x1d4)])['map'](_0x400d37=>_0x400d37(_0x365ffc));}}var _0x5029d9=Object[_0x26850c(0x18b)],_0x1c5c39=(_0x300657,_0x1d7df4,_0xa97f0d,_0x43ca8e)=>{var _0x1bc2ef=_0x26850c;for(var _0xefcad9=_0x43ca8e>0x1?void 0x0:_0x43ca8e?_0x5029d9(_0x1d7df4,_0xa97f0d):_0x1d7df4,_0x2edf04=_0x300657[_0x1bc2ef(0x17d)]-0x1,_0x114701;_0x2edf04>=0x0;_0x2edf04--)(_0x114701=_0x300657[_0x2edf04])&&(_0xefcad9=_0x114701(_0xefcad9)||_0xefcad9);return _0xefcad9;},_0x103bc=(_0x2dffaa,_0x2406c8)=>(_0x250770,_0x536a97)=>_0x2406c8(_0x250770,_0x536a97,_0x2dffaa);_0x1b1b46[_0x26850c(0x165)]=class extends _0x26f18b[_0x26850c(0x178)]{constructor(_0x2ae473,_0x152947,_0x1aec17){var _0x55cf06=_0x26850c;super(),_0x484d59(this,'_entities',new Map()),(this[_0x55cf06(0x184)]=_0x2ae473,this[_0x55cf06(0x1ec)]=_0x152947,this['_collabSessionService']=_0x1aec17,this['_init']());}async[_0x26850c(0x16a)](_0x5980ca){var _0x100b75=_0x26850c;return this[_0x100b75(0x172)][_0x100b75(0x1f2)](_0x5980ca)||await this['_startLiveShareCoordinator'](_0x5980ca),this[_0x100b75(0x172)][_0x100b75(0x206)](_0x5980ca);}[_0x26850c(0x20b)](){var _0x5cfa2f=_0x26850c;this[_0x5cfa2f(0x184)]['getTypeOfUnitAdded$'](_0x26f18b['UniverInstanceType'][_0x5cfa2f(0x22e)])[_0x5cfa2f(0x1b2)](_0x2ccdd4[_0x5cfa2f(0x1c5)](this['dispose$']))['subscribe'](async _0x1de85e=>{var _0x997796=_0x5cfa2f;const _0x35ed64=_0x1de85e[_0x997796(0x1e7)]();this['_entities']['has'](_0x35ed64)||this[_0x997796(0x1dd)](_0x35ed64);}),this[_0x5cfa2f(0x184)][_0x5cfa2f(0x19c)](_0x26f18b[_0x5cfa2f(0x1f6)][_0x5cfa2f(0x22e)])[_0x5cfa2f(0x1b2)](_0x2ccdd4[_0x5cfa2f(0x1c5)](this[_0x5cfa2f(0x192)]))[_0x5cfa2f(0x1b8)](_0x3bf6bc=>{var _0x395e35=_0x5cfa2f;const _0x5e8b5e=_0x3bf6bc[_0x395e35(0x1e7)](),_0x426eed=this[_0x395e35(0x172)][_0x395e35(0x206)](_0x5e8b5e);_0x426eed==null||_0x426eed[_0x395e35(0x1eb)]();});}async[_0x26850c(0x1dd)](_0x3a0d48){var _0x54a47b=_0x26850c;const _0x2d127b=await this[_0x54a47b(0x19f)][_0x54a47b(0x21e)](_0x3a0d48),_0x1a96f3=this['_injector'][_0x54a47b(0x18a)](_0x1b1b46['LiveShareCoordinator'],_0x3a0d48,_0x2d127b);return _0x1a96f3['init'](),this[_0x54a47b(0x172)]['set'](_0x3a0d48,_0x1a96f3),_0x1a96f3;}},_0x1b1b46[_0x26850c(0x165)]=_0x1c5c39([_0x103bc(0x0,_0x26f18b[_0x26850c(0x18c)]),_0x103bc(0x1,_0x26f18b[_0x26850c(0x228)](_0x26f18b[_0x26850c(0x1e5)])),_0x103bc(0x2,_0x26f18b[_0x26850c(0x228)](_0x442631[_0x26850c(0x1d0)]))],_0x1b1b46[_0x26850c(0x165)]);var _0x5826e9=(_0x1478c5=>(_0x1478c5[_0x26850c(0x195)]='offline',_0x1478c5['IDLE']=_0x26850c(0x15a),_0x1478c5[_0x26850c(0x23f)]=_0x26850c(0x21c),_0x1478c5[_0x26850c(0x225)]=_0x26850c(0x1ba),_0x1478c5[_0x26850c(0x232)]=_0x26850c(0x17c),_0x1478c5))(_0x5826e9||{});const _0x558b39=_0x26850c(0x17a),_0x3c669b=0xc8;_0x1b1b46['LiveShareCoordinator']=class extends _0x26f18b[_0x26850c(0x178)]{constructor(_0x4065bd,_0x41571c,_0x2d0841,_0x2c5cda,_0x35d684){var _0x27fe58=_0x26850c;super(),_0x484d59(this,_0x27fe58(0x1f1),new _0x189b96[(_0x27fe58(0x152))](_0x27fe58(0x15a))),_0x484d59(this,'status$',this[_0x27fe58(0x1f1)][_0x27fe58(0x15e)]()),_0x484d59(this,_0x27fe58(0x20b),!0x1),_0x484d59(this,_0x27fe58(0x1a9),null),_0x484d59(this,'_presenter',null),(this[_0x27fe58(0x1d9)]=_0x4065bd,this['_collabSession']=_0x41571c,this[_0x27fe58(0x15d)]=_0x2d0841,this['_liveShareService']=_0x2c5cda,this[_0x27fe58(0x205)]=_0x35d684);}get[_0x26850c(0x1f7)](){var _0x4a43d8=_0x26850c;return this[_0x4a43d8(0x1f1)][_0x4a43d8(0x1a8)]();}[_0x26850c(0x1eb)](){var _0x1c5b0a=_0x26850c,_0x5ac2e4;(_0x5ac2e4=this[_0x1c5b0a(0x1a9)])==null||_0x5ac2e4[_0x1c5b0a(0x1eb)](),this[_0x1c5b0a(0x1f1)][_0x1c5b0a(0x198)](_0x1c5b0a(0x15a)),this[_0x1c5b0a(0x1f1)][_0x1c5b0a(0x158)]();}[_0x26850c(0x15c)](){var _0x293ad6=_0x26850c;this[_0x293ad6(0x20b)]||(this[_0x293ad6(0x20b)]=!0x0,this[_0x293ad6(0x213)]['sessionStatus$'][_0x293ad6(0x1b2)](_0x2ccdd4['takeUntil'](this[_0x293ad6(0x192)]))[_0x293ad6(0x1b8)](_0x2b9763=>{var _0x39f1b9=_0x293ad6;switch(_0x2b9763){case _0x442631[_0x39f1b9(0x237)]['OFFLINE']:this[_0x39f1b9(0x1a7)]();break;case _0x442631[_0x39f1b9(0x237)][_0x39f1b9(0x1ad)]:this[_0x39f1b9(0x233)]();break;}}),this[_0x293ad6(0x213)][_0x293ad6(0x1f4)]['pipe'](_0x2ccdd4[_0x293ad6(0x1c5)](this[_0x293ad6(0x192)]))[_0x293ad6(0x1b8)](_0x26f9b9=>{var _0x5361ba=_0x293ad6;const {eventID:_0x54fed9}=_0x26f9b9;switch(_0x54fed9){case _0x4aa211[_0x5361ba(0x20f)][_0x5361ba(0x22a)]:this[_0x5361ba(0x1e9)](_0x26f9b9);break;case _0x4aa211['CollaborationEvent'][_0x5361ba(0x150)]:this[_0x5361ba(0x1e0)](_0x26f9b9);break;case _0x4aa211[_0x5361ba(0x20f)][_0x5361ba(0x1e3)]:this[_0x5361ba(0x1b6)]();break;case _0x4aa211['CollaborationEvent']['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x26f9b9);break;}}));}[_0x26850c(0x226)](){var _0x33388d=_0x26850c;this[_0x33388d(0x213)][_0x33388d(0x187)]({'eventID':_0x4aa211['CollaborationEvent'][_0x33388d(0x1fe)],'data':{'unitID':this[_0x33388d(0x1d9)],'userID':this['_collabSession'][_0x33388d(0x229)]()}},this[_0x33388d(0x1d9)]);}[_0x26850c(0x227)](){var _0x54d7d3=_0x26850c;this['_status']===_0x54d7d3(0x17c)&&(this['_status$'][_0x54d7d3(0x198)](_0x54d7d3(0x15a)),this[_0x54d7d3(0x213)][_0x54d7d3(0x187)]({'eventID':_0x4aa211[_0x54d7d3(0x20f)][_0x54d7d3(0x1e3)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x26850c(0x231)](){var _0x208452=_0x26850c;this[_0x208452(0x1f7)]===_0x208452(0x1ba)&&(this[_0x208452(0x1f1)]['next'](_0x208452(0x21c)),this['_startFollowing']());}[_0x26850c(0x15b)](){var _0x2ced57=_0x26850c;this[_0x2ced57(0x1f7)]===_0x2ced57(0x21c)&&this[_0x2ced57(0x176)]();}[_0x26850c(0x1e9)](_0x5f4229){var _0x4bf11b=_0x26850c;const {presenter:_0x245612}=_0x5f4229[_0x4bf11b(0x1b9)],_0x4ce332=this[_0x4bf11b(0x213)][_0x4bf11b(0x229)]();this['_presenter']=_0x245612,_0x245612===_0x4ce332?(this[_0x4bf11b(0x176)](),this[_0x4bf11b(0x169)]()):this[_0x4bf11b(0x1f7)]!==_0x4bf11b(0x1ba)&&(this[_0x4bf11b(0x1d2)](),this[_0x4bf11b(0x1cc)]());}[_0x26850c(0x1db)](){var _0x52ee62=_0x26850c;const _0x5b7aa6={'eventID':_0x4aa211[_0x52ee62(0x20f)][_0x52ee62(0x216)]};this[_0x52ee62(0x213)][_0x52ee62(0x187)](_0x5b7aa6,this[_0x52ee62(0x1d9)]);}['_handleTerminate'](){var _0x2d8c37=_0x26850c;this[_0x2d8c37(0x23d)]=null,this[_0x2d8c37(0x1f7)]!==_0x2d8c37(0x17c)&&this[_0x2d8c37(0x20d)]();}[_0x26850c(0x1fd)](_0x58c8e0){var _0x269b99=_0x26850c;if(this[_0x269b99(0x1f7)]===_0x269b99(0x21c)&&this[_0x269b99(0x23d)]===_0x58c8e0[_0x269b99(0x1b9)]['memberID']){const _0x3f211c=_0x4aa211['parseProtocolChangeset'](_0x58c8e0[_0x269b99(0x1b9)])[_0x269b99(0x222)][_0x269b99(0x207)]()['find'](_0x41b5a7=>_0x41b5a7['id']===_0x44cbd7['InsertSheetMutation']['id']);if(_0x3f211c){const _0x4259fe=_0x3f211c['params'][_0x269b99(0x1a4)],_0x8a838b=_0x3f211c[_0x269b99(0x217)][_0x269b99(0x1bf)]['id'];setTimeout(()=>{var _0x28f467=_0x269b99;this[_0x28f467(0x205)]['executeCommand'](_0x44cbd7[_0x28f467(0x21b)]['id'],{'unitId':_0x4259fe,'subUnitId':_0x8a838b},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3d5953=_0x26850c;this[_0x3d5953(0x1f1)][_0x3d5953(0x198)]('presenting');const _0x58e7e3=new Map(),_0x34ccb1=this['_commandDisposable']=new _0x26f18b['DisposableCollection']();_0x34ccb1[_0x3d5953(0x211)](_0x26f18b['toDisposable'](()=>{var _0x145b81=_0x3d5953;_0x58e7e3['forEach'](_0x34f200=>_0x34f200[_0x145b81(0x158)]()),_0x58e7e3[_0x145b81(0x181)]();})),_0x34ccb1['add'](this[_0x3d5953(0x205)][_0x3d5953(0x236)](_0x1f6028=>{var _0x41a6a2=_0x3d5953,_0x2e4bd7;if(_0x1f6028['type']!==_0x26f18b[_0x41a6a2(0x1a3)]['OPERATION']||!this[_0x41a6a2(0x161)][_0x41a6a2(0x230)](_0x1f6028['id']))return;const {id:_0x321e9f}=_0x1f6028;let _0x206b15;_0x58e7e3[_0x41a6a2(0x1f2)](_0x321e9f)?_0x206b15=_0x58e7e3[_0x41a6a2(0x206)](_0x321e9f):(_0x206b15=new _0x189b96['Subject'](),_0x58e7e3[_0x41a6a2(0x1cb)](_0x321e9f,_0x206b15),_0x206b15['pipe'](_0x2ccdd4[_0x41a6a2(0x202)]((_0x2e4bd7=this['_configService'][_0x41a6a2(0x151)](_0x558b39))!=null?_0x2e4bd7:_0x3c669b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x41a6a2(0x1b8)](_0x5cc462=>{var _0x355305=_0x41a6a2;this[_0x355305(0x213)][_0x355305(0x187)]({'eventID':_0x4aa211[_0x355305(0x20f)][_0x355305(0x150)],'data':{'unitID':this[_0x355305(0x1d9)],'operations':{[_0x5cc462['id']]:{'id':_0x5cc462['id'],'params':JSON['stringify'](_0x5cc462[_0x355305(0x217)])}}}},this['_unitID']);})),_0x206b15[_0x41a6a2(0x198)](_0x1f6028);})),this[_0x3d5953(0x161)][_0x3d5953(0x209)](this[_0x3d5953(0x1d9)])[_0x3d5953(0x214)](_0x5ec4f5=>this[_0x3d5953(0x213)]['send']({'eventID':_0x4aa211[_0x3d5953(0x20f)][_0x3d5953(0x150)],'data':{'unitID':this['_unitID'],'operations':{[_0x5ec4f5['id']]:{'id':_0x5ec4f5['id'],'params':JSON['stringify'](_0x5ec4f5[_0x3d5953(0x217)])}}}},this[_0x3d5953(0x1d9)]));}[_0x26850c(0x1d2)](){var _0x5845eb=_0x26850c,_0x4b2c68;this['_status$'][_0x5845eb(0x198)]('idle'),(_0x4b2c68=this['_commandDisposable'])==null||_0x4b2c68[_0x5845eb(0x1eb)](),this[_0x5845eb(0x1a9)]=null;}[_0x26850c(0x1cc)](){var _0x9fb409=_0x26850c,_0x39da4a;(_0x39da4a=this[_0x9fb409(0x1a9)])==null||_0x39da4a['dispose'](),this['_status$'][_0x9fb409(0x198)]('following');}[_0x26850c(0x20d)](){var _0x29c77f=_0x26850c,_0x1ccd7b;this[_0x29c77f(0x1f1)][_0x29c77f(0x198)](_0x29c77f(0x15a)),(_0x1ccd7b=this[_0x29c77f(0x1a9)])==null||_0x1ccd7b['dispose'](),this[_0x29c77f(0x1a9)]=null;}[_0x26850c(0x176)](){var _0x3342da=_0x26850c,_0x2d96d3;this[_0x3342da(0x1f1)][_0x3342da(0x198)](_0x3342da(0x1ba)),(_0x2d96d3=this[_0x3342da(0x1a9)])==null||_0x2d96d3[_0x3342da(0x1eb)]();}['_handleOperation'](_0x158c2b){var _0x1b7623=_0x26850c;if([_0x1b7623(0x17c),_0x1b7623(0x1ba),_0x1b7623(0x223)][_0x1b7623(0x190)](this[_0x1b7623(0x1f7)])||!_0x158c2b[_0x1b7623(0x1b9)][_0x1b7623(0x1d5)]||_0x158c2b['data'][_0x1b7623(0x1d5)]===this[_0x1b7623(0x213)][_0x1b7623(0x229)]())return;this['_status']===_0x1b7623(0x15a)&&this['_startFollowing']();const _0x369646=_0x158c2b[_0x1b7623(0x1b9)][_0x1b7623(0x171)];Object['values'](_0x369646)[_0x1b7623(0x214)](_0x2f87e4=>{var _0x21e0e2=_0x1b7623;this['_commandService']['executeCommand'](_0x2f87e4['id'],_0x2f87e4[_0x21e0e2(0x217)]?JSON[_0x21e0e2(0x1df)](_0x2f87e4[_0x21e0e2(0x217)]):null,{'fromCollab':!0x0});});}[_0x26850c(0x1a7)](){var _0x25b122=_0x26850c,_0x4670f3;this['_status$'][_0x25b122(0x198)]('offline'),(_0x4670f3=this['_commandDisposable'])==null||_0x4670f3['dispose']();}[_0x26850c(0x233)](){var _0x176123=_0x26850c;this[_0x176123(0x1f1)][_0x176123(0x198)](_0x176123(0x15a)),this[_0x176123(0x1db)]();}},_0x1b1b46[_0x26850c(0x219)]=_0x1c5c39([_0x103bc(0x2,_0x26f18b[_0x26850c(0x163)]),_0x103bc(0x3,_0x26f18b[_0x26850c(0x228)](_0x1958b7)),_0x103bc(0x4,_0x26f18b[_0x26850c(0x156)])],_0x1b1b46[_0x26850c(0x219)]);function _0x2959db(){var _0x1befac=_0x26850c;const _0xe671e3=_0x59d7e5[_0x1befac(0x208)](_0x1b1b46[_0x1befac(0x165)]),_0x20af9=_0x59d7e5[_0x1befac(0x208)](_0x26f18b['IUniverInstanceService']),_0x896c6=_0x59d7e5['useObservable'](()=>_0x20af9[_0x1befac(0x23a)](_0x26f18b[_0x1befac(0x1f6)][_0x1befac(0x22e)]),void 0x0,!0x1,[]),[_0x5b89f6,_0x2e004c]=_0x14d2f4['useState'](null),[_0xaaa55e,_0x4d780a]=_0x14d2f4['useState'](_0x5826e9[_0x1befac(0x1e6)]),_0x34232f=_0x14d2f4[_0x1befac(0x197)](null);return _0x14d2f4[_0x1befac(0x1ac)](()=>(_0x896c6&&_0xe671e3[_0x1befac(0x16a)](_0x896c6[_0x1befac(0x1e7)]())[_0x1befac(0x14f)](_0x2e3aa9=>{var _0x2b308e=_0x1befac;_0x2e004c(_0x2e3aa9),_0x34232f[_0x2b308e(0x1f5)]=_0x2e3aa9[_0x2b308e(0x1b5)]['subscribe'](_0xd39480=>{_0x4d780a(_0xd39480);});}),()=>{var _0x21520d=_0x1befac,_0x1ed9a1;(_0x1ed9a1=_0x34232f[_0x21520d(0x1f5)])==null||_0x1ed9a1[_0x21520d(0x188)](),_0x34232f[_0x21520d(0x1f5)]=null;}),[_0x896c6,_0xe671e3]),_0x5b89f6?_0x32afa7['jsx'](_0x473f5a['Dropdown'],{'align':'end','disabled':_0xaaa55e===_0x5826e9[_0x1befac(0x195)],'className':_0x1befac(0x18d),'overlay':_0x32afa7['jsx'](_0x3ddc6c,{'status':_0xaaa55e,'coordinator':_0x5b89f6}),'children':_0x32afa7[_0x1befac(0x23e)]('button',{'className':_0x473f5a[_0x1befac(0x20e)](_0x1befac(0x1ea),{'univer-cursor-not-allowed':_0xaaa55e===_0x5826e9[_0x1befac(0x195)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xaaa55e!==_0x5826e9[_0x1befac(0x195)]}),'type':_0x1befac(0x17f),'children':_0x32afa7[_0x1befac(0x23e)](_0x2abceb,{'className':_0x1befac(0x185)})})}):null;}function _0x3ddc6c(_0x279653){var _0x71e602=_0x26850c;const {status:_0x5ff642,coordinator:_0x4c8c7e}=_0x279653;switch(_0x5ff642){case _0x5826e9[_0x71e602(0x1e6)]:return _0x32afa7[_0x71e602(0x23e)](_0x5b1cd7,{'coordinator':_0x4c8c7e});case _0x5826e9['FOLLOWING']:return _0x32afa7[_0x71e602(0x23e)](_0xb48b92,{'coordinator':_0x4c8c7e});case _0x5826e9[_0x71e602(0x225)]:return _0x32afa7[_0x71e602(0x23e)](_0x3a31b6,{'coordinator':_0x4c8c7e});case _0x5826e9[_0x71e602(0x195)]:return _0x32afa7[_0x71e602(0x23e)](_0x20c2d3,{});case _0x5826e9[_0x71e602(0x232)]:return _0x32afa7[_0x71e602(0x23e)](_0x28beb5,{'coordinator':_0x4c8c7e});default:return null;}}function _0x5b1cd7(_0x1e5f76){var _0xd7c121=_0x26850c;const {coordinator:_0x24c9b1}=_0x1e5f76;return _0x32afa7[_0xd7c121(0x210)](_0x32afa7[_0xd7c121(0x1d6)],{'children':[_0x32afa7[_0xd7c121(0x23e)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x32afa7[_0xd7c121(0x23e)](_0x473f5a[_0xd7c121(0x182)],{'onClick':()=>_0x24c9b1[_0xd7c121(0x226)](),'children':'Start'})]});}function _0xb48b92(_0x7d68ae){var _0x20c84f=_0x26850c;const {coordinator:_0x42110b}=_0x7d68ae;return _0x32afa7[_0x20c84f(0x210)](_0x32afa7[_0x20c84f(0x1d6)],{'children':[_0x32afa7[_0x20c84f(0x23e)]('div',{'className':_0x20c84f(0x194),'children':_0x20c84f(0x19a)}),_0x32afa7[_0x20c84f(0x23e)](_0x473f5a[_0x20c84f(0x182)],{'onClick':()=>_0x42110b[_0x20c84f(0x15b)](),'children':_0x20c84f(0x183)})]});}function _0x3a31b6(_0x4c0aee){var _0x8d4525=_0x26850c;const {coordinator:_0x3dedbe}=_0x4c0aee;return _0x32afa7[_0x8d4525(0x210)](_0x32afa7[_0x8d4525(0x1d6)],{'children':[_0x32afa7[_0x8d4525(0x23e)](_0x8d4525(0x16f),{'className':_0x8d4525(0x194),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x32afa7[_0x8d4525(0x23e)](_0x473f5a[_0x8d4525(0x182)],{'variant':_0x8d4525(0x1e2),'onClick':()=>_0x3dedbe[_0x8d4525(0x231)](),'children':'Start\x20following'})]});}function _0x28beb5(_0x4805b8){var _0x5f527d=_0x26850c;const {coordinator:_0x1ac519}=_0x4805b8;return _0x32afa7['jsxs'](_0x32afa7[_0x5f527d(0x1d6)],{'children':[_0x32afa7[_0x5f527d(0x23e)](_0x5f527d(0x16f),{'className':_0x5f527d(0x194),'children':_0x5f527d(0x215)}),_0x32afa7['jsx'](_0x473f5a[_0x5f527d(0x182)],{'variant':_0x5f527d(0x17b),'onClick':()=>_0x1ac519[_0x5f527d(0x227)](),'children':_0x5f527d(0x1ae)})]});}function _0x20c2d3(){var _0x56a4a8=_0x26850c;return _0x32afa7['jsx'](_0x32afa7[_0x56a4a8(0x1d6)],{'children':_0x56a4a8(0x1fc)});}var _0x2aa933=Object['getOwnPropertyDescriptor'],_0x3a6e6a=(_0x2047d8,_0x16aaff,_0x1f50c4,_0x5bc42e)=>{var _0x570ff9=_0x26850c;for(var _0x47e3d8=_0x5bc42e>0x1?void 0x0:_0x5bc42e?_0x2aa933(_0x16aaff,_0x1f50c4):_0x16aaff,_0x29cb89=_0x2047d8[_0x570ff9(0x17d)]-0x1,_0x4ca568;_0x29cb89>=0x0;_0x29cb89--)(_0x4ca568=_0x2047d8[_0x29cb89])&&(_0x47e3d8=_0x4ca568(_0x47e3d8)||_0x47e3d8);return _0x47e3d8;},_0x5d868c=(_0x2202fd,_0xcc0f4f)=>(_0x36ad7d,_0x11b052)=>_0xcc0f4f(_0x36ad7d,_0x11b052,_0x2202fd);_0x1b1b46['DesktopLiveShareController']=class extends _0x26f18b['Disposable']{constructor(_0x41dbcb,_0xe90c2c){var _0x2f0347=_0x26850c;super(),this[_0x2f0347(0x1ec)]=_0x41dbcb,this[_0x2f0347(0x1d3)]=_0xe90c2c,this['_mountLiveShare']();}[_0x26850c(0x15f)](){var _0x340485=_0x26850c;this[_0x340485(0x1fb)](this[_0x340485(0x1d3)][_0x340485(0x20c)](_0x59d7e5[_0x340485(0x1f8)]['HEADER_MENU'],()=>_0x59d7e5[_0x340485(0x18f)](_0x2959db,this[_0x340485(0x1ec)])));}},_0x1b1b46[_0x26850c(0x21a)]=_0x3a6e6a([_0x5d868c(0x0,_0x26f18b[_0x26850c(0x228)](_0x26f18b['Injector'])),_0x5d868c(0x1,_0x59d7e5[_0x26850c(0x240)])],_0x1b1b46[_0x26850c(0x21a)]);const _0x1af13b=_0x26850c(0x1c7),_0x506d71={};var _0x34096e=Object['getOwnPropertyDescriptor'],_0x3573d3=(_0x222ed6,_0x453819,_0x328e10,_0x3d6b0c)=>{var _0x434bb4=_0x26850c;for(var _0x2fc7c6=_0x3d6b0c>0x1?void 0x0:_0x3d6b0c?_0x34096e(_0x453819,_0x328e10):_0x453819,_0x5e3b9c=_0x222ed6[_0x434bb4(0x17d)]-0x1,_0x3292ef;_0x5e3b9c>=0x0;_0x5e3b9c--)(_0x3292ef=_0x222ed6[_0x5e3b9c])&&(_0x2fc7c6=_0x3292ef(_0x2fc7c6)||_0x2fc7c6);return _0x2fc7c6;},_0x4ade92=(_0x28b1d2,_0x1e7e27)=>(_0x3db026,_0x471e06)=>_0x1e7e27(_0x3db026,_0x471e06,_0x28b1d2);let _0x5ee054=class extends _0x26f18b['Disposable']{constructor(_0x10ad68){var _0x15f582=_0x26850c;super(),this[_0x15f582(0x161)]=_0x10ad68,this[_0x15f582(0x20b)]();}[_0x26850c(0x20b)](){var _0x2f30c8=_0x26850c;[_0x1b9391[_0x2f30c8(0x1f0)]['id'],_0x1b9391[_0x2f30c8(0x177)]['id'],_0x44cbd7[_0x2f30c8(0x21b)]['id']][_0x2f30c8(0x214)](_0x4343ef=>{var _0x309e96=_0x2f30c8;this[_0x309e96(0x1fb)](this[_0x309e96(0x161)][_0x309e96(0x1be)](_0x4343ef));});}};_0x5ee054=_0x3573d3([_0x4ade92(0x0,_0x26f18b[_0x26850c(0x228)](_0x1958b7))],_0x5ee054);var _0x229e89=Object[_0x26850c(0x16d)],_0x36c814=Object[_0x26850c(0x18b)],_0x28195c=(_0x3da9a6,_0x400663,_0x46a430)=>_0x400663 in _0x3da9a6?_0x229e89(_0x3da9a6,_0x400663,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46a430}):_0x3da9a6[_0x400663]=_0x46a430,_0xe7d397=(_0x3d5bde,_0x455037,_0x880980,_0x348bc3)=>{var _0x23dd27=_0x26850c;for(var _0x1e1d70=_0x348bc3>0x1?void 0x0:_0x348bc3?_0x36c814(_0x455037,_0x880980):_0x455037,_0x3857bc=_0x3d5bde[_0x23dd27(0x17d)]-0x1,_0x35ae55;_0x3857bc>=0x0;_0x3857bc--)(_0x35ae55=_0x3d5bde[_0x3857bc])&&(_0x1e1d70=_0x35ae55(_0x1e1d70)||_0x1e1d70);return _0x1e1d70;},_0x1bf2f0=(_0x500c42,_0x1ac71d)=>(_0x25348f,_0x1a489a)=>_0x1ac71d(_0x25348f,_0x1a489a,_0x500c42),_0x5db81d=(_0x4a41e8,_0x4b38c0,_0x59c0bc)=>_0x28195c(_0x4a41e8,typeof _0x4b38c0!=_0x26850c(0x1b1)?_0x4b38c0+'':_0x4b38c0,_0x59c0bc);const _0x219fe7=_0x26850c(0x179);_0x1b1b46[_0x26850c(0x191)]=class extends _0x26f18b['Plugin']{constructor(_0xbc660c=_0x506d71,_0x584a42,_0x108b94){var _0x1837bd=_0x26850c;super(),this[_0x1837bd(0x1cf)]=_0xbc660c,this[_0x1837bd(0x1ec)]=_0x584a42,this[_0x1837bd(0x15d)]=_0x108b94;const {..._0x4dd371}=_0x26f18b[_0x1837bd(0x23c)]({},_0x506d71,this[_0x1837bd(0x1cf)]);this['_configService']['setConfig'](_0x1af13b,_0x4dd371);}['onStarting'](){var _0x28859d=_0x26850c;_0x26f18b['registerDependencies'](this[_0x28859d(0x1ec)],_0x26f18b[_0x28859d(0x189)]([[_0x1958b7],[_0x1b1b46[_0x28859d(0x165)]],[_0x5ee054],[_0x1b1b46['DesktopLiveShareController']]],this[_0x28859d(0x1cf)][_0x28859d(0x1de)])),_0x26f18b['touchDependencies'](this[_0x28859d(0x1ec)],[[_0x5ee054]]);}[_0x26850c(0x22b)](){var _0x2fd0fa=_0x26850c;_0x26f18b[_0x2fd0fa(0x1d1)](this[_0x2fd0fa(0x1ec)],[[_0x1b1b46[_0x2fd0fa(0x21a)]]]);}},_0x5db81d(_0x1b1b46['UniverLiveSharePlugin'],_0x26850c(0x1e8),_0x26f18b[_0x26850c(0x1f6)][_0x26850c(0x16e)]),_0x5db81d(_0x1b1b46['UniverLiveSharePlugin'],_0x26850c(0x1aa),_0x219fe7),_0x1b1b46[_0x26850c(0x191)]=_0xe7d397([_0x26f18b[_0x26850c(0x1b7)](_0x442631[_0x26850c(0x157)]),_0x1bf2f0(0x1,_0x26f18b[_0x26850c(0x228)](_0x26f18b[_0x26850c(0x1e5)])),_0x1bf2f0(0x2,_0x26f18b[_0x26850c(0x163)])],_0x1b1b46['UniverLiveSharePlugin']),_0x1b1b46['LiveShare']=_0x2959db,_0x1b1b46['LiveShareService']=_0x1958b7,_0x1b1b46['LiveShareStatus']=_0x5826e9,Object[_0x26850c(0x16d)](_0x1b1b46,Symbol[_0x26850c(0x16c)],{'value':_0x26850c(0x154)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.10.9-nightly.202509260614",
3
+ "version": "0.10.10",
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.8",
50
- "@univerjs-pro/collaboration": "0.10.9-nightly.202509260614",
51
- "@univerjs-pro/collaboration-client": "0.10.9-nightly.202509260614",
52
- "@univerjs/core": "0.10.9-nightly.202509260614",
53
- "@univerjs/design": "0.10.9-nightly.202509260614",
54
- "@univerjs/ui": "0.10.9-nightly.202509260614",
55
- "@univerjs/sheets-ui": "0.10.9-nightly.202509260614",
56
- "@univerjs/sheets": "0.10.9-nightly.202509260614"
50
+ "@univerjs-pro/collaboration": "0.10.10",
51
+ "@univerjs-pro/collaboration-client": "0.10.10",
52
+ "@univerjs/core": "0.10.10",
53
+ "@univerjs/design": "0.10.10",
54
+ "@univerjs/sheets-ui": "0.10.10",
55
+ "@univerjs/sheets": "0.10.10",
56
+ "@univerjs/ui": "0.10.10"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",
@@ -63,7 +63,7 @@
63
63
  "typescript": "^5.9.2",
64
64
  "vite": "^7.1.3",
65
65
  "vitest": "^3.2.4",
66
- "@univerjs-infra/shared": "0.10.9",
66
+ "@univerjs-infra/shared": "0.10.10",
67
67
  "@univerjs/protocol": "0.1.47-alpha.0"
68
68
  },
69
69
  "scripts": {