@univerjs-pro/live-share 0.10.6-experimental.20250903-f52e3bf → 0.10.6-experimental.20250904-9591d16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x30d0d0=_0x430c;(function(_0x5704c4,_0x146cb2){var _0x48da37=_0x430c,_0xd88b27=_0x5704c4();while(!![]){try{var _0x318333=-parseInt(_0x48da37(0x171))/0x1+-parseInt(_0x48da37(0x1a0))/0x2*(-parseInt(_0x48da37(0x193))/0x3)+-parseInt(_0x48da37(0x1da))/0x4*(parseInt(_0x48da37(0x134))/0x5)+-parseInt(_0x48da37(0x16a))/0x6+parseInt(_0x48da37(0x1ba))/0x7+-parseInt(_0x48da37(0x1d5))/0x8*(parseInt(_0x48da37(0x1ad))/0x9)+-parseInt(_0x48da37(0x1d3))/0xa*(-parseInt(_0x48da37(0x1f7))/0xb);if(_0x318333===_0x146cb2)break;else _0xd88b27['push'](_0xd88b27['shift']());}catch(_0x41b566){_0xd88b27['push'](_0xd88b27['shift']());}}}(_0x6c41,0x328c3));var U=Object[_0x30d0d0(0x13a)],F=(_0x11d82e,_0x5afd08,_0x3d4577)=>_0x5afd08 in _0x11d82e?U(_0x11d82e,_0x5afd08,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d4577}):_0x11d82e[_0x5afd08]=_0x3d4577,v=(_0x25bcb9,_0x683dac,_0x4baac2)=>F(_0x25bcb9,typeof _0x683dac!=_0x30d0d0(0x176)?_0x683dac+'':_0x683dac,_0x4baac2);Object['defineProperty'](exports,Symbol[_0x30d0d0(0x1f9)],{'value':_0x30d0d0(0x1a9)});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 _0x438a30=_0x30d0d0;return u=Object[_0x438a30(0x1f5)]||function(_0x1bb877){var _0x133baf=_0x438a30;for(var _0x5e4c2c,_0x21c450=0x1,_0x463905=arguments[_0x133baf(0x162)];_0x21c450<_0x463905;_0x21c450++){_0x5e4c2c=arguments[_0x21c450];for(var _0x58bd75 in _0x5e4c2c)Object[_0x133baf(0x16c)][_0x133baf(0x198)][_0x133baf(0x1d6)](_0x5e4c2c,_0x58bd75)&&(_0x1bb877[_0x58bd75]=_0x5e4c2c[_0x58bd75]);}return _0x1bb877;},u[_0x438a30(0x15d)](this,arguments);},$=function(_0x550d44,_0x2340ad){var _0x3d2917=_0x30d0d0,_0x1f3673={};for(var _0x258213 in _0x550d44)Object[_0x3d2917(0x16c)][_0x3d2917(0x198)]['call'](_0x550d44,_0x258213)&&_0x2340ad[_0x3d2917(0x186)](_0x258213)<0x0&&(_0x1f3673[_0x258213]=_0x550d44[_0x258213]);if(_0x550d44!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x33ca63=0x0,_0x258213=Object[_0x3d2917(0x152)](_0x550d44);_0x33ca63<_0x258213[_0x3d2917(0x162)];_0x33ca63++)_0x2340ad[_0x3d2917(0x186)](_0x258213[_0x33ca63])<0x0&&Object[_0x3d2917(0x16c)][_0x3d2917(0x13b)][_0x3d2917(0x1d6)](_0x550d44,_0x258213[_0x33ca63])&&(_0x1f3673[_0x258213[_0x33ca63]]=_0x550d44[_0x258213[_0x33ca63]]);}return _0x1f3673;},j=f['forwardRef'](function(_0x9e4cf2,_0x274207){var _0x39b1bf=_0x30d0d0,_0x3dd1fa=_0x9e4cf2[_0x39b1bf(0x168)],_0x419a7d=_0x9e4cf2['id'],_0x35864f=_0x9e4cf2[_0x39b1bf(0x1f0)],_0xa229da=_0x9e4cf2[_0x39b1bf(0x173)],_0x5add72=$(_0x9e4cf2,[_0x39b1bf(0x168),'id',_0x39b1bf(0x1f0),'extend']),_0x5f512f='univerjs-icon\x20univerjs-icon-'[_0x39b1bf(0x192)](_0x419a7d,'\x20')[_0x39b1bf(0x192)](_0x35864f||'')[_0x39b1bf(0x1b6)](),_0x174b47=f[_0x39b1bf(0x196)]('_'[_0x39b1bf(0x192)](k()));return y(_0x3dd1fa,''[_0x39b1bf(0x192)](_0x419a7d),{'defIds':_0x3dd1fa[_0x39b1bf(0x1fa)],'idSuffix':_0x174b47[_0x39b1bf(0x14b)]},u({'ref':_0x274207,'className':_0x5f512f},_0x5add72),_0xa229da);});function _0x430c(_0x352654,_0x41fa08){var _0x6c41b8=_0x6c41();return _0x430c=function(_0x430cb9,_0x467b7b){_0x430cb9=_0x430cb9-0x128;var _0x5eebc6=_0x6c41b8[_0x430cb9];return _0x5eebc6;},_0x430c(_0x352654,_0x41fa08);}function y(_0x3c8b9e,_0x49e7d8,_0x4b82e0,_0x48a178,_0xa0f672){var _0x26a73f=_0x30d0d0;return f[_0x26a73f(0x137)](_0x3c8b9e[_0x26a73f(0x1b5)],u(u({'key':_0x49e7d8},H(_0x3c8b9e,_0x4b82e0,_0xa0f672)),_0x48a178),(V(_0x3c8b9e,_0x4b82e0)['children']||[])['map'](function(_0x55fc30,_0x39dca9){var _0x127a6e=_0x26a73f;return y(_0x55fc30,''[_0x127a6e(0x192)](_0x49e7d8,'-')[_0x127a6e(0x192)](_0x3c8b9e['tag'],'-')[_0x127a6e(0x192)](_0x39dca9),_0x4b82e0,void 0x0,_0xa0f672);}));}function H(_0x51806d,_0xa2e820,_0x4846d6){var _0x5f31ce=_0x30d0d0,_0x2a857d=u({},_0x51806d['attrs']);_0x4846d6!=null&&_0x4846d6[_0x5f31ce(0x18a)]&&_0x2a857d[_0x5f31ce(0x1c0)]===_0x5f31ce(0x18a)&&(_0x2a857d['fill']=_0x4846d6[_0x5f31ce(0x18a)]),_0x51806d[_0x5f31ce(0x1b5)]===_0x5f31ce(0x1c1)&&_0x2a857d['id']&&(_0x2a857d['id']=_0x2a857d['id']+_0xa2e820['idSuffix']),Object[_0x5f31ce(0x1e5)](_0x2a857d)[_0x5f31ce(0x156)](function(_0x1f1e19){var _0x48db49=_0x5f31ce,_0x47f461=_0x1f1e19[0x0],_0x312e73=_0x1f1e19[0x1];_0x47f461===_0x48db49(0x1c1)&&typeof _0x312e73==_0x48db49(0x1a5)&&(_0x2a857d[_0x47f461]=_0x312e73[_0x48db49(0x1b0)](/url\(#(.*)\)/,_0x48db49(0x15c)[_0x48db49(0x192)](_0xa2e820[_0x48db49(0x158)],')')));});var _0x5d8f28=_0xa2e820['defIds'];return!_0x5d8f28||_0x5d8f28[_0x5f31ce(0x162)]===0x0||(_0x51806d['tag']===_0x5f31ce(0x1bc)&&_0x2a857d[_0x5f31ce(0x1eb)]&&(_0x2a857d[_0x5f31ce(0x1eb)]=_0x2a857d[_0x5f31ce(0x1eb)]+_0xa2e820[_0x5f31ce(0x158)]),Object[_0x5f31ce(0x1e5)](_0x2a857d)[_0x5f31ce(0x156)](function(_0x41cd20){var _0x45f889=_0x5f31ce,_0x595afb=_0x41cd20[0x0],_0x1c2e91=_0x41cd20[0x1];typeof _0x1c2e91=='string'&&(_0x2a857d[_0x595afb]=_0x1c2e91[_0x45f889(0x1b0)](/url\(#(.*)\)/,_0x45f889(0x15c)[_0x45f889(0x192)](_0xa2e820[_0x45f889(0x158)],')')));})),_0x2a857d;}function V(_0x530ee5,_0x235883){var _0x480413=_0x30d0d0,_0x19d3f5,_0xcb4a1=_0x235883['defIds'];return!_0xcb4a1||_0xcb4a1[_0x480413(0x162)]===0x0?_0x530ee5:_0x530ee5[_0x480413(0x1b5)]===_0x480413(0x144)&&(!((_0x19d3f5=_0x530ee5[_0x480413(0x154)])===null||_0x19d3f5===void 0x0)&&_0x19d3f5['length'])?u(u({},_0x530ee5),{'children':_0x530ee5[_0x480413(0x154)][_0x480413(0x1a2)](function(_0x430c3a){var _0x321126=_0x480413;return typeof _0x430c3a[_0x321126(0x133)]['id']==_0x321126(0x1a5)&&_0xcb4a1&&_0xcb4a1[_0x321126(0x138)](_0x430c3a['attrs']['id'])?u(u({},_0x430c3a),{'attrs':u(u({},_0x430c3a[_0x321126(0x133)]),{'id':_0x430c3a['attrs']['id']+_0x235883[_0x321126(0x158)]})}):_0x430c3a;})}):_0x530ee5;}function k(){var _0x40eb30=_0x30d0d0;return Math[_0x40eb30(0x200)]()[_0x40eb30(0x1bd)](0x24)['substring'](0x2,0x8);}j[_0x30d0d0(0x1b4)]=_0x30d0d0(0x182);var M={'tag':_0x30d0d0(0x1fc),'attrs':{'xmlns':_0x30d0d0(0x16b),'fill':_0x30d0d0(0x163),'viewBox':_0x30d0d0(0x1c4),'width':_0x30d0d0(0x1cb),'height':_0x30d0d0(0x1cb)},'children':[{'tag':_0x30d0d0(0x19e),'attrs':{'fill':_0x30d0d0(0x14d),'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':_0x30d0d0(0x19e),'attrs':{'fill':_0x30d0d0(0x14d),'d':_0x30d0d0(0x128),'fillRule':_0x30d0d0(0x195),'clipRule':'evenodd'}}]},P=f[_0x30d0d0(0x1ab)](function(_0x4b9df8,_0x4fa586){var _0x545074=_0x30d0d0;return f['createElement'](j,Object[_0x545074(0x1f5)]({},_0x4b9df8,{'id':'live-share-icon','ref':_0x4fa586,'icon':M}));});P[_0x30d0d0(0x1b4)]=_0x30d0d0(0x18f);class O extends o[_0x30d0d0(0x159)]{constructor(){var _0x1271f0=_0x30d0d0;super(...arguments),v(this,_0x1271f0(0x174),new Set()),v(this,_0x1271f0(0x1cd),new Set());}[_0x30d0d0(0x1d8)](_0x8a2a2f){var _0x2df76c=_0x30d0d0;return this[_0x2df76c(0x174)][_0x2df76c(0x1ff)](_0x8a2a2f),o[_0x2df76c(0x15b)](()=>this[_0x2df76c(0x174)][_0x2df76c(0x1e4)](_0x8a2a2f));}[_0x30d0d0(0x150)](_0x44a2d7){var _0x2c7812=_0x30d0d0;return this['_reporters'][_0x2c7812(0x1ff)](_0x44a2d7),o[_0x2c7812(0x15b)](()=>this[_0x2c7812(0x1cd)][_0x2c7812(0x1e4)](_0x44a2d7));}[_0x30d0d0(0x1f8)](_0x1da824){var _0x48c68d=_0x30d0d0;return this[_0x48c68d(0x174)][_0x48c68d(0x13d)](_0x1da824);}[_0x30d0d0(0x1a6)](_0x41e3d4){var _0x36a3f4=_0x30d0d0;return Array[_0x36a3f4(0x1d0)](this[_0x36a3f4(0x1cd)])[_0x36a3f4(0x1a2)](_0x251a61=>_0x251a61(_0x41e3d4));}}var q=Object[_0x30d0d0(0x1e6)],R=(_0x3fbca8,_0x6a3100,_0x1a8f7c,_0x50ce0c)=>{var _0x10ad42=_0x30d0d0;for(var _0x3f1db5=_0x50ce0c>0x1?void 0x0:_0x50ce0c?q(_0x6a3100,_0x1a8f7c):_0x6a3100,_0x2bd962=_0x3fbca8[_0x10ad42(0x162)]-0x1,_0x324696;_0x2bd962>=0x0;_0x2bd962--)(_0x324696=_0x3fbca8[_0x2bd962])&&(_0x3f1db5=_0x324696(_0x3f1db5)||_0x3f1db5);return _0x3f1db5;},S=(_0x33d782,_0x2e04a)=>(_0x228ed6,_0x2a2e3e)=>_0x2e04a(_0x228ed6,_0x2a2e3e,_0x33d782);exports['LiveShareController']=class extends o[_0x30d0d0(0x151)]{constructor(_0x7934a6,_0x58ef8d,_0x425cfa){var _0x3c4fb1=_0x30d0d0;super(),v(this,'_entities',new Map()),(this[_0x3c4fb1(0x184)]=_0x7934a6,this['_injector']=_0x58ef8d,this['_collabSessionService']=_0x425cfa,this[_0x3c4fb1(0x15a)]());}async['getLiveShareCoordinator'](_0x33cd59){var _0x308f5d=_0x30d0d0;return this[_0x308f5d(0x183)][_0x308f5d(0x13d)](_0x33cd59)||await this['_startLiveShareCoordinator'](_0x33cd59),this[_0x308f5d(0x183)][_0x308f5d(0x1e2)](_0x33cd59);}['_init'](){var _0x548875=_0x30d0d0;this[_0x548875(0x184)][_0x548875(0x155)](o[_0x548875(0x1ce)][_0x548875(0x131)])['pipe'](b[_0x548875(0x1de)](this['dispose$']))['subscribe'](async _0x148735=>{var _0x2bea25=_0x548875;const _0x3a0196=_0x148735[_0x2bea25(0x139)]();this[_0x2bea25(0x183)][_0x2bea25(0x13d)](_0x3a0196)||this[_0x2bea25(0x14a)](_0x3a0196);}),this[_0x548875(0x184)]['getTypeOfUnitDisposed$'](o[_0x548875(0x1ce)][_0x548875(0x131)])[_0x548875(0x12a)](b[_0x548875(0x1de)](this['dispose$']))[_0x548875(0x208)](_0x4861a3=>{var _0x35559d=_0x548875;const _0x9ecc7c=_0x4861a3[_0x35559d(0x139)](),_0x15bfb4=this[_0x35559d(0x183)][_0x35559d(0x1e2)](_0x9ecc7c);_0x15bfb4==null||_0x15bfb4[_0x35559d(0x19c)]();});}async['_startLiveShareCoordinator'](_0x5a32a3){var _0x3495d0=_0x30d0d0;const _0x2e59da=await this['_collabSessionService'][_0x3495d0(0x202)](_0x5a32a3),_0x54ec31=this[_0x3495d0(0x153)]['createInstance'](exports['LiveShareCoordinator'],_0x5a32a3,_0x2e59da);return _0x54ec31[_0x3495d0(0x1d4)](),this[_0x3495d0(0x183)]['set'](_0x5a32a3,_0x54ec31),_0x54ec31;}},exports[_0x30d0d0(0x16e)]=R([S(0x0,o[_0x30d0d0(0x149)]),S(0x1,o[_0x30d0d0(0x1aa)](o[_0x30d0d0(0x1c6)])),S(0x2,o[_0x30d0d0(0x1aa)](m[_0x30d0d0(0x203)]))],exports[_0x30d0d0(0x16e)]);function _0x6c41(){var _0x547eda=['defineProperty','propertyIsEnumerable','_startFollowing','has','params','InsertSheetMutation','presenting','SessionStatus','_beIdle','ONLINE','defs','_stopPresenting','LIVESHARE_OPERATION','You\x27are\x20offline.','_handleNewChangeSets','IUniverInstanceService','_startLiveShareCoordinator','current','getCurrentTypeOfUnit$','currentColor','SAME_OPERATION_SHARE_INTERVAL','_commandService','registerInitialStateReporter','RxDisposable','getOwnPropertySymbols','_injector','children','getTypeOfUnitAdded$','forEach','send','idSuffix','Disposable','_init','toDisposable','url(#$1','apply','values','LIVESHARE_TERMINATE','clear','_handleOperation','length','none','_handleOffline','status$','parse','_handleTerminate','icon','ICommandService','1786056krIJvV','http://www.w3.org/2000/svg','prototype','DependentOn','LiveShareController','presenter','set','260818UpDleD','div','extend','_sharedOperations','button','symbol','clsx','PRESENTING','registerDependencies','CollaborationEvent','startFollowing','LIVESHARE_REQUEST_HOST','next','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','complete','sheet','Present\x20this\x20document','UniverIcon','_entities','_univerInstanceService','jsx','indexOf','connectInjector','Plugin','BuiltInUIPart','colorChannel1','stringify','UniverLiveSharePlugin','sessionStatus$','SetWorksheetActiveOperation','LiveShareIcon','_uiPartsService','CommandType','concat','15HdEUpI','useState','evenodd','useRef','NEW_CHANGESETS','hasOwnProperty','_unitID','Start','IUIPartsService','dispose','idle','path','_configService','82158bxJTVa','type','map','LiveShareCoordinator','_status','string','getInitialStates','IDLE','_commandDisposable','Module','Inject','forwardRef','DisposableCollection','1194516GTKfna','executeCommand','mergeOverrideWithDependencies','replace','_handleOnline','default','_collabSession','displayName','tag','trim','useDependency','_config','univer-size-4','2327521avhEpD','_status$','use','toString','IConfigService','LIVESHARE_FETCH_OPERATIONS','fill','mask','mutations','override','0\x200\x2017\x2017','univer-mb-3\x20univer-w-full\x20univer-text-sm','Injector','unsubscribe','_handleNewHost','OFFLINE','dispose$','1em','LIVESHARE_NEW_HOST','_reporters','UniverInstanceType','OPERATION','from','useObservable','then','10pgHgri','init','16AeRqoE','call','registerComponent','registerSharedOperation','SetScrollOperation','4UfXkkh','UNIVER_LIVE_SHARE_PLUGIN','operations','getMemberID','takeUntil','Button','_stopFollowing','You\x27re\x20following\x20the\x20presenter','get','getLiveShareCoordinator','delete','entries','getOwnPropertyDescriptor','Stop\x20presenting','LiveShareService','_startPresenting','NOT_FOLLOWING','xlink:href','stopPresenting','UniverCollaborationClientPlugin','onStarting','stopFollowing','className','Start\x20following','_fetchOperations','_presenter','unitId','assign','FOLLOWING','7693334zVmZcj','shouldShareOperation','toStringTag','defIds','data','svg','tryStartPresenting','asObservable','add','random','not-following','requireSession','CollaborationSessionService','offline','_mountLiveShare','pluginName','disposeWithMe','subscribe','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','Fragment','pipe','following','onCommandExecuted','You\x27re\x20not\x20following\x20the\x20presenter','_liveShareService','jsxs','memberID','UNIVER_SHEET','getValue','attrs','1031535DvQLvb','DesktopLiveShareController','end','createElement','includes','getUnitId'];_0x6c41=function(){return _0x547eda;};return _0x6c41();}var h=(_0x228954=>(_0x228954[_0x30d0d0(0x1c9)]=_0x30d0d0(0x204),_0x228954[_0x30d0d0(0x1a7)]='idle',_0x228954[_0x30d0d0(0x1f6)]=_0x30d0d0(0x12b),_0x228954['NOT_FOLLOWING']=_0x30d0d0(0x201),_0x228954[_0x30d0d0(0x178)]=_0x30d0d0(0x140),_0x228954))(h||{});const W=_0x30d0d0(0x14e),G=0xc8;exports[_0x30d0d0(0x1a3)]=class extends o[_0x30d0d0(0x151)]{constructor(_0x94c234,_0x2b45a2,_0xb28533,_0x4b98ac,_0x2a7712){var _0x366ee6=_0x30d0d0;super(),v(this,_0x366ee6(0x1bb),new w['BehaviorSubject'](_0x366ee6(0x19d))),v(this,'status$',this[_0x366ee6(0x1bb)][_0x366ee6(0x1fe)]()),v(this,'_init',!0x1),v(this,_0x366ee6(0x1a8),null),v(this,_0x366ee6(0x1f3),null),(this['_unitID']=_0x94c234,this[_0x366ee6(0x1b3)]=_0x2b45a2,this[_0x366ee6(0x19f)]=_0xb28533,this[_0x366ee6(0x12e)]=_0x4b98ac,this[_0x366ee6(0x14f)]=_0x2a7712);}get[_0x30d0d0(0x1a4)](){var _0x49f68f=_0x30d0d0;return this[_0x49f68f(0x1bb)][_0x49f68f(0x132)]();}['dispose'](){var _0x411db7=_0x30d0d0,_0x416f21;(_0x416f21=this[_0x411db7(0x1a8)])==null||_0x416f21[_0x411db7(0x19c)](),this[_0x411db7(0x1bb)][_0x411db7(0x17d)]('idle'),this[_0x411db7(0x1bb)]['complete']();}['init'](){var _0x207072=_0x30d0d0;this[_0x207072(0x15a)]||(this[_0x207072(0x15a)]=!0x0,this[_0x207072(0x1b3)][_0x207072(0x18d)][_0x207072(0x12a)](b[_0x207072(0x1de)](this[_0x207072(0x1ca)]))['subscribe'](_0x367744=>{var _0x35cf7b=_0x207072;switch(_0x367744){case m[_0x35cf7b(0x141)][_0x35cf7b(0x1c9)]:this[_0x35cf7b(0x164)]();break;case m[_0x35cf7b(0x141)][_0x35cf7b(0x143)]:this[_0x35cf7b(0x1b1)]();break;}}),this[_0x207072(0x1b3)]['event$'][_0x207072(0x12a)](b[_0x207072(0x1de)](this[_0x207072(0x1ca)]))['subscribe'](_0xd21c18=>{var _0x4bc57b=_0x207072;const {eventID:_0x7fccfd}=_0xd21c18;switch(_0x7fccfd){case _[_0x4bc57b(0x17a)][_0x4bc57b(0x1cc)]:this[_0x4bc57b(0x1c8)](_0xd21c18);break;case _['CollaborationEvent'][_0x4bc57b(0x146)]:this[_0x4bc57b(0x161)](_0xd21c18);break;case _[_0x4bc57b(0x17a)][_0x4bc57b(0x15f)]:this[_0x4bc57b(0x167)]();break;case _[_0x4bc57b(0x17a)][_0x4bc57b(0x197)]:this[_0x4bc57b(0x148)](_0xd21c18);break;}}));}[_0x30d0d0(0x1fd)](){var _0x270a93=_0x30d0d0;this[_0x270a93(0x1b3)][_0x270a93(0x157)]({'eventID':_[_0x270a93(0x17a)][_0x270a93(0x17c)],'data':{'unitID':this[_0x270a93(0x199)],'userID':this[_0x270a93(0x1b3)]['getMemberID']()}},this[_0x270a93(0x199)]);}[_0x30d0d0(0x1ec)](){var _0x47dc2e=_0x30d0d0;this[_0x47dc2e(0x1a4)]==='presenting'&&(this[_0x47dc2e(0x1bb)][_0x47dc2e(0x17d)](_0x47dc2e(0x19d)),this[_0x47dc2e(0x1b3)]['send']({'eventID':_[_0x47dc2e(0x17a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x47dc2e(0x199)]}},this[_0x47dc2e(0x199)]));}['startFollowing'](){var _0x1b72eb=_0x30d0d0;this[_0x1b72eb(0x1a4)]===_0x1b72eb(0x201)&&(this[_0x1b72eb(0x1bb)][_0x1b72eb(0x17d)]('following'),this[_0x1b72eb(0x13c)]());}[_0x30d0d0(0x1ef)](){var _0x1e7137=_0x30d0d0;this[_0x1e7137(0x1a4)]===_0x1e7137(0x12b)&&this[_0x1e7137(0x1e0)]();}[_0x30d0d0(0x1c8)](_0x19079f){var _0x82d35b=_0x30d0d0;const {presenter:_0x4ef338}=_0x19079f[_0x82d35b(0x1fb)],_0x3a00ae=this['_collabSession'][_0x82d35b(0x1dd)]();this[_0x82d35b(0x1f3)]=_0x4ef338,_0x4ef338===_0x3a00ae?(this[_0x82d35b(0x1e0)](),this[_0x82d35b(0x1e9)]()):this[_0x82d35b(0x1a4)]!==_0x82d35b(0x201)&&(this[_0x82d35b(0x145)](),this[_0x82d35b(0x13c)]());}[_0x30d0d0(0x1f2)](){var _0x477ab4=_0x30d0d0;const _0x3ccf02={'eventID':_[_0x477ab4(0x17a)][_0x477ab4(0x1bf)]};this['_collabSession'][_0x477ab4(0x157)](_0x3ccf02,this['_unitID']);}[_0x30d0d0(0x167)](){var _0x14e4fc=_0x30d0d0;this['_presenter']=null,this[_0x14e4fc(0x1a4)]!==_0x14e4fc(0x140)&&this[_0x14e4fc(0x142)]();}[_0x30d0d0(0x148)](_0x1dc9fb){var _0x5df576=_0x30d0d0;if(this[_0x5df576(0x1a4)]===_0x5df576(0x12b)&&this[_0x5df576(0x1f3)]===_0x1dc9fb[_0x5df576(0x1fb)][_0x5df576(0x130)]){const _0x4fc3a6=_['parseProtocolChangeset'](_0x1dc9fb[_0x5df576(0x1fb)])[_0x5df576(0x1c2)]['reverse']()['find'](_0x1a1032=>_0x1a1032['id']===C[_0x5df576(0x13f)]['id']);if(_0x4fc3a6){const _0x23d9be=_0x4fc3a6[_0x5df576(0x13e)][_0x5df576(0x1f4)],_0x441c99=_0x4fc3a6[_0x5df576(0x13e)][_0x5df576(0x180)]['id'];setTimeout(()=>{var _0x408217=_0x5df576;this['_commandService'][_0x408217(0x1ae)](C[_0x408217(0x18e)]['id'],{'unitId':_0x23d9be,'subUnitId':_0x441c99},{'fromCollab':!0x0});});}}}[_0x30d0d0(0x1e9)](){var _0x1f01b9=_0x30d0d0;this['_status$'][_0x1f01b9(0x17d)](_0x1f01b9(0x140));const _0x5675c9=new Map(),_0x40610a=this[_0x1f01b9(0x1a8)]=new o[(_0x1f01b9(0x1ac))]();_0x40610a['add'](o[_0x1f01b9(0x15b)](()=>{var _0x214c75=_0x1f01b9;_0x5675c9[_0x214c75(0x156)](_0x3cf89e=>_0x3cf89e[_0x214c75(0x17f)]()),_0x5675c9[_0x214c75(0x160)]();})),_0x40610a[_0x1f01b9(0x1ff)](this[_0x1f01b9(0x14f)][_0x1f01b9(0x12c)](_0x332720=>{var _0x283e93=_0x1f01b9,_0x56f3bc;if(_0x332720[_0x283e93(0x1a1)]!==o[_0x283e93(0x191)][_0x283e93(0x1cf)]||!this['_liveShareService'][_0x283e93(0x1f8)](_0x332720['id']))return;const {id:_0x383c67}=_0x332720;let _0x1ff063;_0x5675c9[_0x283e93(0x13d)](_0x383c67)?_0x1ff063=_0x5675c9[_0x283e93(0x1e2)](_0x383c67):(_0x1ff063=new w['Subject'](),_0x5675c9[_0x283e93(0x170)](_0x383c67,_0x1ff063),_0x1ff063[_0x283e93(0x12a)](b['throttleTime']((_0x56f3bc=this[_0x283e93(0x19f)]['getConfig'](W))!=null?_0x56f3bc:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xfdff26=>{var _0x430e12=_0x283e93;this['_collabSession'][_0x430e12(0x157)]({'eventID':_[_0x430e12(0x17a)][_0x430e12(0x146)],'data':{'unitID':this[_0x430e12(0x199)],'operations':{[_0xfdff26['id']]:{'id':_0xfdff26['id'],'params':JSON[_0x430e12(0x18b)](_0xfdff26[_0x430e12(0x13e)])}}}},this[_0x430e12(0x199)]);})),_0x1ff063[_0x283e93(0x17d)](_0x332720);})),this[_0x1f01b9(0x12e)][_0x1f01b9(0x1a6)](this[_0x1f01b9(0x199)])[_0x1f01b9(0x156)](_0x491a04=>this[_0x1f01b9(0x1b3)][_0x1f01b9(0x157)]({'eventID':_[_0x1f01b9(0x17a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1f01b9(0x199)],'operations':{[_0x491a04['id']]:{'id':_0x491a04['id'],'params':JSON[_0x1f01b9(0x18b)](_0x491a04[_0x1f01b9(0x13e)])}}}},this['_unitID']));}[_0x30d0d0(0x145)](){var _0x158396=_0x30d0d0,_0x3701ad;this[_0x158396(0x1bb)][_0x158396(0x17d)](_0x158396(0x19d)),(_0x3701ad=this[_0x158396(0x1a8)])==null||_0x3701ad[_0x158396(0x19c)](),this['_commandDisposable']=null;}[_0x30d0d0(0x13c)](){var _0x251f6a=_0x30d0d0,_0x509287;(_0x509287=this['_commandDisposable'])==null||_0x509287[_0x251f6a(0x19c)](),this[_0x251f6a(0x1bb)][_0x251f6a(0x17d)]('following');}[_0x30d0d0(0x142)](){var _0x2543e4=_0x30d0d0,_0x7536a7;this['_status$'][_0x2543e4(0x17d)](_0x2543e4(0x19d)),(_0x7536a7=this[_0x2543e4(0x1a8)])==null||_0x7536a7[_0x2543e4(0x19c)](),this[_0x2543e4(0x1a8)]=null;}[_0x30d0d0(0x1e0)](){var _0x4f9f27=_0x30d0d0,_0x376230;this[_0x4f9f27(0x1bb)][_0x4f9f27(0x17d)](_0x4f9f27(0x201)),(_0x376230=this[_0x4f9f27(0x1a8)])==null||_0x376230[_0x4f9f27(0x19c)]();}[_0x30d0d0(0x161)](_0x3c0bcc){var _0x3d1dfd=_0x30d0d0;if([_0x3d1dfd(0x140),_0x3d1dfd(0x201),_0x3d1dfd(0x204)]['includes'](this['_status'])||!_0x3c0bcc['data'][_0x3d1dfd(0x16f)]||_0x3c0bcc[_0x3d1dfd(0x1fb)][_0x3d1dfd(0x16f)]===this['_collabSession'][_0x3d1dfd(0x1dd)]())return;this['_status']===_0x3d1dfd(0x19d)&&this[_0x3d1dfd(0x13c)]();const _0x274996=_0x3c0bcc[_0x3d1dfd(0x1fb)][_0x3d1dfd(0x1dc)];Object[_0x3d1dfd(0x15e)](_0x274996)[_0x3d1dfd(0x156)](_0x58ab7b=>{var _0x5f42fc=_0x3d1dfd;this[_0x5f42fc(0x14f)][_0x5f42fc(0x1ae)](_0x58ab7b['id'],_0x58ab7b[_0x5f42fc(0x13e)]?JSON[_0x5f42fc(0x166)](_0x58ab7b[_0x5f42fc(0x13e)]):null,{'fromCollab':!0x0});});}[_0x30d0d0(0x164)](){var _0x572fc7=_0x30d0d0,_0x1c5a26;this[_0x572fc7(0x1bb)][_0x572fc7(0x17d)](_0x572fc7(0x204)),(_0x1c5a26=this[_0x572fc7(0x1a8)])==null||_0x1c5a26[_0x572fc7(0x19c)]();}[_0x30d0d0(0x1b1)](){var _0x571db5=_0x30d0d0;this[_0x571db5(0x1bb)][_0x571db5(0x17d)]('idle'),this[_0x571db5(0x1f2)]();}},exports[_0x30d0d0(0x1a3)]=R([S(0x2,o[_0x30d0d0(0x1be)]),S(0x3,o[_0x30d0d0(0x1aa)](O)),S(0x4,o[_0x30d0d0(0x169)])],exports[_0x30d0d0(0x1a3)]);function A(){var _0x5a2cd7=_0x30d0d0;const _0x243a37=p[_0x5a2cd7(0x1b7)](exports['LiveShareController']),_0x228352=p[_0x5a2cd7(0x1b7)](o[_0x5a2cd7(0x149)]),_0xb1e242=p[_0x5a2cd7(0x1d1)](()=>_0x228352[_0x5a2cd7(0x14c)](o[_0x5a2cd7(0x1ce)][_0x5a2cd7(0x131)]),void 0x0,!0x1,[]),[_0xdf7967,_0x4a158f]=f['useState'](null),[_0x27f9f5,_0x3492c1]=f[_0x5a2cd7(0x194)](h['IDLE']),_0x18d708=f[_0x5a2cd7(0x196)](null);return f['useEffect'](()=>(_0xb1e242&&_0x243a37[_0x5a2cd7(0x1e3)](_0xb1e242[_0x5a2cd7(0x139)]())[_0x5a2cd7(0x1d2)](_0x1da4c6=>{var _0x29e4d0=_0x5a2cd7;_0x4a158f(_0x1da4c6),_0x18d708[_0x29e4d0(0x14b)]=_0x1da4c6[_0x29e4d0(0x165)][_0x29e4d0(0x208)](_0x35d418=>{_0x3492c1(_0x35d418);});}),()=>{var _0x3cd334=_0x5a2cd7,_0xae46ad;(_0xae46ad=_0x18d708['current'])==null||_0xae46ad[_0x3cd334(0x1c7)](),_0x18d708[_0x3cd334(0x14b)]=null;}),[_0xb1e242,_0x243a37]),_0xdf7967?l[_0x5a2cd7(0x185)](g['Dropdown'],{'align':_0x5a2cd7(0x136),'disabled':_0x27f9f5===h[_0x5a2cd7(0x1c9)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x5a2cd7(0x185)](B,{'status':_0x27f9f5,'coordinator':_0xdf7967}),'children':l['jsx'](_0x5a2cd7(0x175),{'className':g[_0x5a2cd7(0x177)](_0x5a2cd7(0x17e),{'univer-cursor-not-allowed':_0x27f9f5===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x27f9f5!==h[_0x5a2cd7(0x1c9)]}),'type':'button','children':l['jsx'](P,{'className':_0x5a2cd7(0x1b9)})})}):null;}function B(_0x19ed2e){var _0x1ad025=_0x30d0d0;const {status:_0x58de26,coordinator:_0x4fb483}=_0x19ed2e;switch(_0x58de26){case h['IDLE']:return l[_0x1ad025(0x185)](Y,{'coordinator':_0x4fb483});case h[_0x1ad025(0x1f6)]:return l[_0x1ad025(0x185)](Z,{'coordinator':_0x4fb483});case h[_0x1ad025(0x1ea)]:return l[_0x1ad025(0x185)](J,{'coordinator':_0x4fb483});case h[_0x1ad025(0x1c9)]:return l['jsx'](z,{});case h[_0x1ad025(0x178)]:return l[_0x1ad025(0x185)](K,{'coordinator':_0x4fb483});default:return null;}}function Y(_0x518476){var _0x5d793b=_0x30d0d0;const {coordinator:_0x41ca12}=_0x518476;return l[_0x5d793b(0x12f)](l[_0x5d793b(0x129)],{'children':[l[_0x5d793b(0x185)](_0x5d793b(0x172),{'className':_0x5d793b(0x1c5),'children':_0x5d793b(0x181)}),l['jsx'](g[_0x5d793b(0x1df)],{'onClick':()=>_0x41ca12['tryStartPresenting'](),'children':_0x5d793b(0x19a)})]});}function Z(_0x11c811){var _0x52f5a8=_0x30d0d0;const {coordinator:_0x13067d}=_0x11c811;return l[_0x52f5a8(0x12f)](l[_0x52f5a8(0x129)],{'children':[l[_0x52f5a8(0x185)](_0x52f5a8(0x172),{'className':_0x52f5a8(0x1c5),'children':_0x52f5a8(0x1e1)}),l[_0x52f5a8(0x185)](g[_0x52f5a8(0x1df)],{'onClick':()=>_0x13067d['stopFollowing'](),'children':'Stop\x20following'})]});}function J(_0xff78f9){var _0x57561e=_0x30d0d0;const {coordinator:_0x4c9501}=_0xff78f9;return l[_0x57561e(0x12f)](l[_0x57561e(0x129)],{'children':[l['jsx'](_0x57561e(0x172),{'className':_0x57561e(0x1c5),'children':_0x57561e(0x12d)}),l[_0x57561e(0x185)](g['Button'],{'variant':'text','onClick':()=>_0x4c9501[_0x57561e(0x17b)](),'children':_0x57561e(0x1f1)})]});}function K(_0x3361dc){var _0x3e03e6=_0x30d0d0;const {coordinator:_0x4e4a26}=_0x3361dc;return l[_0x3e03e6(0x12f)](l[_0x3e03e6(0x129)],{'children':[l[_0x3e03e6(0x185)](_0x3e03e6(0x172),{'className':_0x3e03e6(0x1c5),'children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](g[_0x3e03e6(0x1df)],{'variant':_0x3e03e6(0x1b2),'onClick':()=>_0x4e4a26[_0x3e03e6(0x1ec)](),'children':_0x3e03e6(0x1e7)})]});}function z(){var _0xa25e65=_0x30d0d0;return l[_0xa25e65(0x185)](l['Fragment'],{'children':_0xa25e65(0x147)});}var Q=Object[_0x30d0d0(0x1e6)],X=(_0x4e493a,_0x89ba2e,_0x26b10b,_0x19e610)=>{for(var _0x21b64f=_0x19e610>0x1?void 0x0:_0x19e610?Q(_0x89ba2e,_0x26b10b):_0x89ba2e,_0x35a3c4=_0x4e493a['length']-0x1,_0x4506c7;_0x35a3c4>=0x0;_0x35a3c4--)(_0x4506c7=_0x4e493a[_0x35a3c4])&&(_0x21b64f=_0x4506c7(_0x21b64f)||_0x21b64f);return _0x21b64f;},x=(_0x3e367e,_0x1e1164)=>(_0x175985,_0x3aa485)=>_0x1e1164(_0x175985,_0x3aa485,_0x3e367e);exports['DesktopLiveShareController']=class extends o[_0x30d0d0(0x159)]{constructor(_0x48a42c,_0x542be4){var _0x1ee6c3=_0x30d0d0;super(),this[_0x1ee6c3(0x153)]=_0x48a42c,this[_0x1ee6c3(0x190)]=_0x542be4,this[_0x1ee6c3(0x205)]();}['_mountLiveShare'](){var _0x29b35a=_0x30d0d0;this[_0x29b35a(0x207)](this[_0x29b35a(0x190)][_0x29b35a(0x1d7)](p[_0x29b35a(0x189)]['HEADER_MENU'],()=>p[_0x29b35a(0x187)](A,this['_injector'])));}},exports[_0x30d0d0(0x135)]=X([x(0x0,o['Inject'](o[_0x30d0d0(0x1c6)])),x(0x1,p[_0x30d0d0(0x19b)])],exports[_0x30d0d0(0x135)]);const ee='live-share.config',L={};var te=Object[_0x30d0d0(0x1e6)],ie=(_0x56aa40,_0x59c650,_0x4fc138,_0x34765c)=>{var _0x1becb0=_0x30d0d0;for(var _0x53fb52=_0x34765c>0x1?void 0x0:_0x34765c?te(_0x59c650,_0x4fc138):_0x59c650,_0x4a8582=_0x56aa40[_0x1becb0(0x162)]-0x1,_0x1aa37d;_0x4a8582>=0x0;_0x4a8582--)(_0x1aa37d=_0x56aa40[_0x4a8582])&&(_0x53fb52=_0x1aa37d(_0x53fb52)||_0x53fb52);return _0x53fb52;},ne=(_0x22d560,_0xd915db)=>(_0x2e55b3,_0xd2fb4d)=>_0xd915db(_0x2e55b3,_0xd2fb4d,_0x22d560);let E=class extends o[_0x30d0d0(0x159)]{constructor(_0x5dfef9){var _0x2056eb=_0x30d0d0;super(),this[_0x2056eb(0x12e)]=_0x5dfef9,this[_0x2056eb(0x15a)]();}[_0x30d0d0(0x15a)](){var _0x512fd=_0x30d0d0;[D['SetZoomRatioOperation']['id'],D[_0x512fd(0x1d9)]['id'],C[_0x512fd(0x18e)]['id']][_0x512fd(0x156)](_0x3e188c=>{var _0x1ae0f4=_0x512fd;this[_0x1ae0f4(0x207)](this[_0x1ae0f4(0x12e)]['registerSharedOperation'](_0x3e188c));});}};E=ie([ne(0x0,o[_0x30d0d0(0x1aa)](O))],E);var re=Object[_0x30d0d0(0x13a)],se=Object[_0x30d0d0(0x1e6)],oe=(_0x4e1376,_0x116bb9,_0x1d1465)=>_0x116bb9 in _0x4e1376?re(_0x4e1376,_0x116bb9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d1465}):_0x4e1376[_0x116bb9]=_0x1d1465,ae=(_0x532d09,_0x133e55,_0x6df434,_0x1842db)=>{var _0x11307f=_0x30d0d0;for(var _0x7ea9a4=_0x1842db>0x1?void 0x0:_0x1842db?se(_0x133e55,_0x6df434):_0x133e55,_0x45d8e1=_0x532d09[_0x11307f(0x162)]-0x1,_0x4eeb55;_0x45d8e1>=0x0;_0x45d8e1--)(_0x4eeb55=_0x532d09[_0x45d8e1])&&(_0x7ea9a4=_0x4eeb55(_0x7ea9a4)||_0x7ea9a4);return _0x7ea9a4;},N=(_0x56da29,_0x325fd8)=>(_0x1a7345,_0x45d448)=>_0x325fd8(_0x1a7345,_0x45d448,_0x56da29),T=(_0x3091e3,_0x4006b4,_0x3d5e00)=>oe(_0x3091e3,typeof _0x4006b4!=_0x30d0d0(0x176)?_0x4006b4+'':_0x4006b4,_0x3d5e00);const le=_0x30d0d0(0x1db);exports[_0x30d0d0(0x18c)]=class extends o[_0x30d0d0(0x188)]{constructor(_0x1bf54c=L,_0x26e565,_0x50960b){var _0x1b5fa2=_0x30d0d0;super(),this[_0x1b5fa2(0x1b8)]=_0x1bf54c,this['_injector']=_0x26e565,this[_0x1b5fa2(0x19f)]=_0x50960b;const {..._0x51e727}=o['merge']({},L,this[_0x1b5fa2(0x1b8)]);this[_0x1b5fa2(0x19f)]['setConfig'](ee,_0x51e727);}[_0x30d0d0(0x1ee)](){var _0x4d6aa7=_0x30d0d0;o[_0x4d6aa7(0x179)](this[_0x4d6aa7(0x153)],o[_0x4d6aa7(0x1af)]([[O],[exports[_0x4d6aa7(0x16e)]],[E],[exports[_0x4d6aa7(0x135)]]],this[_0x4d6aa7(0x1b8)][_0x4d6aa7(0x1c3)])),o['touchDependencies'](this['_injector'],[[E]]);}['onRendered'](){var _0x3b0243=_0x30d0d0;o['touchDependencies'](this[_0x3b0243(0x153)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x30d0d0(0x18c)],_0x30d0d0(0x1a1),o[_0x30d0d0(0x1ce)]['UNIVER_UNKNOWN']),T(exports[_0x30d0d0(0x18c)],_0x30d0d0(0x206),le),exports['UniverLiveSharePlugin']=ae([o[_0x30d0d0(0x16d)](m[_0x30d0d0(0x1ed)]),N(0x1,o[_0x30d0d0(0x1aa)](o[_0x30d0d0(0x1c6)])),N(0x2,o[_0x30d0d0(0x1be)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=A,exports[_0x30d0d0(0x1e8)]=O,exports['LiveShareStatus']=h;
|
|
1
|
+
'use strict';var _0x425c47=_0x2e23;(function(_0x3e2e45,_0x522ce4){var _0x1adf9e=_0x2e23,_0x1a1a90=_0x3e2e45();while(!![]){try{var _0x2ab7a0=parseInt(_0x1adf9e(0x14d))/0x1*(parseInt(_0x1adf9e(0xd3))/0x2)+parseInt(_0x1adf9e(0x91))/0x3+parseInt(_0x1adf9e(0x7a))/0x4+parseInt(_0x1adf9e(0x125))/0x5*(-parseInt(_0x1adf9e(0x77))/0x6)+parseInt(_0x1adf9e(0x122))/0x7*(-parseInt(_0x1adf9e(0xd1))/0x8)+-parseInt(_0x1adf9e(0x10f))/0x9*(parseInt(_0x1adf9e(0xc9))/0xa)+-parseInt(_0x1adf9e(0xa2))/0xb*(-parseInt(_0x1adf9e(0xe4))/0xc);if(_0x2ab7a0===_0x522ce4)break;else _0x1a1a90['push'](_0x1a1a90['shift']());}catch(_0x5c7126){_0x1a1a90['push'](_0x1a1a90['shift']());}}}(_0x1bf4,0x8a4f4));var U=Object[_0x425c47(0x104)],F=(_0x4f124b,_0x31633a,_0x1aee27)=>_0x31633a in _0x4f124b?U(_0x4f124b,_0x31633a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1aee27}):_0x4f124b[_0x31633a]=_0x1aee27,v=(_0x3b509e,_0x54374b,_0x16d243)=>F(_0x3b509e,typeof _0x54374b!=_0x425c47(0x11b)?_0x54374b+'':_0x54374b,_0x16d243);Object[_0x425c47(0x104)](exports,Symbol['toStringTag'],{'value':_0x425c47(0x132)});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 _0x3338f6=_0x425c47;return u=Object['assign']||function(_0x128f16){var _0x38cba1=_0x2e23;for(var _0xd7659c,_0x5e1e83=0x1,_0x3a2536=arguments[_0x38cba1(0xb7)];_0x5e1e83<_0x3a2536;_0x5e1e83++){_0xd7659c=arguments[_0x5e1e83];for(var _0x1cd2ec in _0xd7659c)Object[_0x38cba1(0xa7)][_0x38cba1(0x72)]['call'](_0xd7659c,_0x1cd2ec)&&(_0x128f16[_0x1cd2ec]=_0xd7659c[_0x1cd2ec]);}return _0x128f16;},u[_0x3338f6(0x10c)](this,arguments);},$=function(_0x3816fe,_0xcfa45b){var _0x40d2f1=_0x425c47,_0xe24188={};for(var _0x52822b in _0x3816fe)Object[_0x40d2f1(0xa7)][_0x40d2f1(0x72)][_0x40d2f1(0x85)](_0x3816fe,_0x52822b)&&_0xcfa45b[_0x40d2f1(0x88)](_0x52822b)<0x0&&(_0xe24188[_0x52822b]=_0x3816fe[_0x52822b]);if(_0x3816fe!=null&&typeof Object[_0x40d2f1(0x143)]==_0x40d2f1(0xda)){for(var _0x3b92ad=0x0,_0x52822b=Object[_0x40d2f1(0x143)](_0x3816fe);_0x3b92ad<_0x52822b['length'];_0x3b92ad++)_0xcfa45b[_0x40d2f1(0x88)](_0x52822b[_0x3b92ad])<0x0&&Object[_0x40d2f1(0xa7)][_0x40d2f1(0x10a)][_0x40d2f1(0x85)](_0x3816fe,_0x52822b[_0x3b92ad])&&(_0xe24188[_0x52822b[_0x3b92ad]]=_0x3816fe[_0x52822b[_0x3b92ad]]);}return _0xe24188;},j=f[_0x425c47(0x81)](function(_0xb56a6e,_0x3a6aef){var _0x36c091=_0x425c47,_0x193e49=_0xb56a6e[_0x36c091(0xf0)],_0x1e7dc6=_0xb56a6e['id'],_0x4e28bb=_0xb56a6e[_0x36c091(0x13f)],_0x5b34a8=_0xb56a6e[_0x36c091(0x107)],_0x59181e=$(_0xb56a6e,['icon','id',_0x36c091(0x13f),_0x36c091(0x107)]),_0xbcc370=_0x36c091(0xd6)[_0x36c091(0xed)](_0x1e7dc6,'\x20')['concat'](_0x4e28bb||'')[_0x36c091(0xa0)](),_0x2ac73a=f[_0x36c091(0xbd)]('_'['concat'](k()));return y(_0x193e49,''['concat'](_0x1e7dc6),{'defIds':_0x193e49[_0x36c091(0xfd)],'idSuffix':_0x2ac73a[_0x36c091(0x118)]},u({'ref':_0x3a6aef,'className':_0xbcc370},_0x59181e),_0x5b34a8);});function y(_0x3a2a49,_0x2f5f8b,_0x2cfa50,_0x670c9f,_0x21d87b){var _0x13bb0e=_0x425c47;return f[_0x13bb0e(0xc1)](_0x3a2a49[_0x13bb0e(0x113)],u(u({'key':_0x2f5f8b},H(_0x3a2a49,_0x2cfa50,_0x21d87b)),_0x670c9f),(V(_0x3a2a49,_0x2cfa50)[_0x13bb0e(0x9c)]||[])['map'](function(_0xcb858e,_0x51dc3f){var _0x1a2c53=_0x13bb0e;return y(_0xcb858e,''[_0x1a2c53(0xed)](_0x2f5f8b,'-')[_0x1a2c53(0xed)](_0x3a2a49[_0x1a2c53(0x113)],'-')['concat'](_0x51dc3f),_0x2cfa50,void 0x0,_0x21d87b);}));}function H(_0x57e888,_0x43ba74,_0x35e6bb){var _0x17dd29=_0x425c47,_0x281342=u({},_0x57e888[_0x17dd29(0x139)]);_0x35e6bb!=null&&_0x35e6bb['colorChannel1']&&_0x281342[_0x17dd29(0xff)]===_0x17dd29(0x97)&&(_0x281342['fill']=_0x35e6bb[_0x17dd29(0x97)]),_0x57e888[_0x17dd29(0x113)]==='mask'&&_0x281342['id']&&(_0x281342['id']=_0x281342['id']+_0x43ba74[_0x17dd29(0xd8)]),Object['entries'](_0x281342)[_0x17dd29(0x82)](function(_0x595a01){var _0x551fab=_0x17dd29,_0x4c5be4=_0x595a01[0x0],_0x1a897f=_0x595a01[0x1];_0x4c5be4===_0x551fab(0x124)&&typeof _0x1a897f==_0x551fab(0xfe)&&(_0x281342[_0x4c5be4]=_0x1a897f[_0x551fab(0x135)](/url\(#(.*)\)/,'url(#$1'[_0x551fab(0xed)](_0x43ba74[_0x551fab(0xd8)],')')));});var _0x10a47c=_0x43ba74[_0x17dd29(0xfd)];return!_0x10a47c||_0x10a47c[_0x17dd29(0xb7)]===0x0||(_0x57e888[_0x17dd29(0x113)]==='use'&&_0x281342[_0x17dd29(0x126)]&&(_0x281342[_0x17dd29(0x126)]=_0x281342[_0x17dd29(0x126)]+_0x43ba74['idSuffix']),Object[_0x17dd29(0x76)](_0x281342)[_0x17dd29(0x82)](function(_0x35e4e7){var _0x2ec14c=_0x17dd29,_0x5c5b30=_0x35e4e7[0x0],_0x3debd5=_0x35e4e7[0x1];typeof _0x3debd5==_0x2ec14c(0xfe)&&(_0x281342[_0x5c5b30]=_0x3debd5[_0x2ec14c(0x135)](/url\(#(.*)\)/,_0x2ec14c(0x100)['concat'](_0x43ba74[_0x2ec14c(0xd8)],')')));})),_0x281342;}function V(_0x336ab9,_0x52df54){var _0x3fc2b8=_0x425c47,_0x20eb0c,_0x410e4d=_0x52df54[_0x3fc2b8(0xfd)];return!_0x410e4d||_0x410e4d[_0x3fc2b8(0xb7)]===0x0?_0x336ab9:_0x336ab9['tag']===_0x3fc2b8(0xfa)&&(!((_0x20eb0c=_0x336ab9[_0x3fc2b8(0x9c)])===null||_0x20eb0c===void 0x0)&&_0x20eb0c[_0x3fc2b8(0xb7)])?u(u({},_0x336ab9),{'children':_0x336ab9[_0x3fc2b8(0x9c)]['map'](function(_0x2be993){var _0x429177=_0x3fc2b8;return typeof _0x2be993[_0x429177(0x139)]['id']==_0x429177(0xfe)&&_0x410e4d&&_0x410e4d[_0x429177(0x12c)](_0x2be993[_0x429177(0x139)]['id'])?u(u({},_0x2be993),{'attrs':u(u({},_0x2be993[_0x429177(0x139)]),{'id':_0x2be993['attrs']['id']+_0x52df54['idSuffix']})}):_0x2be993;})}):_0x336ab9;}function k(){var _0x5debfb=_0x425c47;return Math[_0x5debfb(0xaf)]()[_0x5debfb(0x136)](0x24)[_0x5debfb(0xb2)](0x2,0x8);}j[_0x425c47(0x13d)]='UniverIcon';var M={'tag':_0x425c47(0x105),'attrs':{'xmlns':_0x425c47(0x149),'fill':'none','viewBox':_0x425c47(0xb0),'width':'1em','height':_0x425c47(0x117)},'children':[{'tag':_0x425c47(0xab),'attrs':{'fill':_0x425c47(0xeb),'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':_0x425c47(0xab),'attrs':{'fill':_0x425c47(0xeb),'d':_0x425c47(0x12b),'fillRule':_0x425c47(0x74),'clipRule':_0x425c47(0x74)}}]},P=f[_0x425c47(0x81)](function(_0x48a68c,_0x1588cf){var _0x449465=_0x425c47;return f[_0x449465(0xc1)](j,Object['assign']({},_0x48a68c,{'id':_0x449465(0x9b),'ref':_0x1588cf,'icon':M}));});P[_0x425c47(0x13d)]='LiveShareIcon';class O extends o['Disposable']{constructor(){var _0x58d2f2=_0x425c47;super(...arguments),v(this,_0x58d2f2(0xdd),new Set()),v(this,_0x58d2f2(0x83),new Set());}[_0x425c47(0x123)](_0xe0b01d){var _0x59aabe=_0x425c47;return this['_sharedOperations'][_0x59aabe(0x121)](_0xe0b01d),o[_0x59aabe(0x138)](()=>this[_0x59aabe(0xdd)][_0x59aabe(0xca)](_0xe0b01d));}['registerInitialStateReporter'](_0x374d73){var _0x337d91=_0x425c47;return this[_0x337d91(0x83)]['add'](_0x374d73),o['toDisposable'](()=>this[_0x337d91(0x83)][_0x337d91(0xca)](_0x374d73));}[_0x425c47(0x6a)](_0x22fe5f){var _0x410cbb=_0x425c47;return this[_0x410cbb(0xdd)]['has'](_0x22fe5f);}[_0x425c47(0x140)](_0x456a23){var _0x8c9d25=_0x425c47;return Array[_0x8c9d25(0xe1)](this[_0x8c9d25(0x83)])['map'](_0x38e084=>_0x38e084(_0x456a23));}}function _0x2e23(_0x22a612,_0x4d5ef1){var _0x1bf443=_0x1bf4();return _0x2e23=function(_0x2e2380,_0x25e103){_0x2e2380=_0x2e2380-0x68;var _0xd9e6c7=_0x1bf443[_0x2e2380];return _0xd9e6c7;},_0x2e23(_0x22a612,_0x4d5ef1);}var q=Object['getOwnPropertyDescriptor'],R=(_0x415286,_0x4fc978,_0x51a318,_0x3f1ccf)=>{for(var _0x38088d=_0x3f1ccf>0x1?void 0x0:_0x3f1ccf?q(_0x4fc978,_0x51a318):_0x4fc978,_0x5cf721=_0x415286['length']-0x1,_0x22948f;_0x5cf721>=0x0;_0x5cf721--)(_0x22948f=_0x415286[_0x5cf721])&&(_0x38088d=_0x22948f(_0x38088d)||_0x38088d);return _0x38088d;},S=(_0x3eaaf0,_0x40a43d)=>(_0x40218f,_0x35588f)=>_0x40a43d(_0x40218f,_0x35588f,_0x3eaaf0);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x553c0c,_0x231a9d,_0x5927bd){var _0x23b66c=_0x425c47;super(),v(this,_0x23b66c(0xf7),new Map()),(this[_0x23b66c(0xc8)]=_0x553c0c,this['_injector']=_0x231a9d,this[_0x23b66c(0xc5)]=_0x5927bd,this[_0x23b66c(0x14a)]());}async[_0x425c47(0x10b)](_0x2a2065){var _0x788d66=_0x425c47;return this[_0x788d66(0xf7)][_0x788d66(0xb9)](_0x2a2065)||await this[_0x788d66(0x80)](_0x2a2065),this[_0x788d66(0xf7)][_0x788d66(0x96)](_0x2a2065);}['_init'](){var _0x1f811d=_0x425c47;this[_0x1f811d(0xc8)][_0x1f811d(0x114)](o[_0x1f811d(0x127)][_0x1f811d(0x128)])[_0x1f811d(0x6c)](b['takeUntil'](this[_0x1f811d(0xba)]))[_0x1f811d(0xc7)](async _0x355dc7=>{var _0x4bdda1=_0x1f811d;const _0x5ed4a4=_0x355dc7[_0x4bdda1(0x148)]();this[_0x4bdda1(0xf7)]['has'](_0x5ed4a4)||this[_0x4bdda1(0x80)](_0x5ed4a4);}),this[_0x1f811d(0xc8)][_0x1f811d(0x95)](o[_0x1f811d(0x127)][_0x1f811d(0x128)])[_0x1f811d(0x6c)](b[_0x1f811d(0x92)](this['dispose$']))['subscribe'](_0x273e10=>{var _0x4e91c9=_0x1f811d;const _0x37e34e=_0x273e10[_0x4e91c9(0x148)](),_0x400d6b=this[_0x4e91c9(0xf7)][_0x4e91c9(0x96)](_0x37e34e);_0x400d6b==null||_0x400d6b['dispose']();});}async[_0x425c47(0x80)](_0x443289){var _0x162fb8=_0x425c47;const _0x13d365=await this[_0x162fb8(0xc5)][_0x162fb8(0x6d)](_0x443289),_0x55baef=this[_0x162fb8(0x12f)][_0x162fb8(0xb8)](exports[_0x162fb8(0xad)],_0x443289,_0x13d365);return _0x55baef[_0x162fb8(0xbc)](),this[_0x162fb8(0xf7)]['set'](_0x443289,_0x55baef),_0x55baef;}},exports[_0x425c47(0x7f)]=R([S(0x0,o[_0x425c47(0x8e)]),S(0x1,o[_0x425c47(0xf2)](o[_0x425c47(0x6e)])),S(0x2,o['Inject'](m[_0x425c47(0x70)]))],exports[_0x425c47(0x7f)]);var h=(_0x1cdcfc=>(_0x1cdcfc['OFFLINE']=_0x425c47(0x93),_0x1cdcfc['IDLE']='idle',_0x1cdcfc[_0x425c47(0x112)]='following',_0x1cdcfc['NOT_FOLLOWING']='not-following',_0x1cdcfc[_0x425c47(0xfb)]=_0x425c47(0x11a),_0x1cdcfc))(h||{});const W=_0x425c47(0x7e),G=0xc8;function _0x1bf4(){var _0x5f1458=['touchDependencies','LIVESHARE_NEW_HOST','_commandDisposable','IDLE','_startFollowing','useDependency','currentColor','_stopPresenting','concat','sessionStatus$','_handleOnline','icon','type','Inject','Disposable','_handleOffline','mutations','connectInjector','_entities','useState','OPERATION','defs','PRESENTING','getValue','defIds','string','fill','url(#$1','IUIPartsService','CommandType','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','svg','following','extend','div','Stop\x20following','propertyIsEnumerable','getLiveShareCoordinator','apply','event$','default','2772TlaCQa','UniverLiveSharePlugin','next','FOLLOWING','tag','getTypeOfUnitAdded$','jsx','_commandService','1em','current','presenter','presenting','symbol','_collabSession','SetWorksheetActiveOperation','parseProtocolChangeset','_status','RxDisposable','add','23163UfghKD','registerSharedOperation','mask','190675zilqnK','xlink:href','UniverInstanceType','UNIVER_SHEET','params','getOwnPropertyDescriptor','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','includes','_handleNewChangeSets','You\x27are\x20offline.','_injector','_unitID','unsubscribe','Module','NEW_CHANGESETS','Present\x20this\x20document','replace','toString','stopFollowing','toDisposable','attrs','_handleOperation','idle','Dropdown','displayName','setConfig','className','getInitialStates','getMemberID','not-following','getOwnPropertySymbols','BuiltInUIPart','DesktopLiveShareController','DependentOn','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','getUnitId','http://www.w3.org/2000/svg','_init','sheet','BehaviorSubject','2mgzliO','end','Button','shouldShareOperation','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','pipe','requireSession','Injector','InsertSheetMutation','CollaborationSessionService','IConfigService','hasOwnProperty','_handleNewHost','evenodd','CollaborationEvent','entries','6KUjrOh','disposeWithMe','then','4390692XclwRH','_beIdle','_startPresenting','_uiPartsService','SAME_OPERATION_SHARE_INTERVAL','LiveShareController','_startLiveShareCoordinator','forwardRef','forEach','_reporters','_handleTerminate','call','OFFLINE','onStarting','indexOf','registerComponent','_configService','ICommandService','unitId','onCommandExecuted','IUniverInstanceService','HEADER_MENU','memberID','1411488zYSDrW','takeUntil','offline','set','getTypeOfUnitDisposed$','get','colorChannel1','SetZoomRatioOperation','getConfig','override','live-share-icon','children','jsxs','You\x27re\x20not\x20following\x20the\x20presenter','button','trim','mergeOverrideWithDependencies','559955cJtkAs','_fetchOperations','_mountLiveShare','clsx','values','prototype','LIVESHARE_OPERATION','_presenter','status$','path','ONLINE','LiveShareCoordinator','_config','random','0\x200\x2017\x2017','useEffect','substring','startFollowing','LIVESHARE_TERMINATE','useObservable','UNIVER_LIVE_SHARE_PLUGIN','length','createInstance','has','dispose$','Fragment','init','useRef','LIVESHARE_REQUEST_HOST','parse','reverse','createElement','LiveShareStatus','NOT_FOLLOWING','SetScrollOperation','_collabSessionService','complete','subscribe','_univerInstanceService','27160pZPoKL','delete','LiveShareService','send','LIVESHARE_FETCH_OPERATIONS','dispose','registerDependencies','_stopFollowing','1080ZlGmCA','tryStartPresenting','268820DRLQzd','operations','executeCommand','univerjs-icon\x20univerjs-icon-','stringify','idSuffix','asObservable','function','SessionStatus','_liveShareService','_sharedOperations','_status$','merge','data','from','LiveShare','stopPresenting','12jpYiGQ'];_0x1bf4=function(){return _0x5f1458;};return _0x1bf4();}exports[_0x425c47(0xad)]=class extends o[_0x425c47(0x120)]{constructor(_0x26f7cd,_0x52e235,_0x56ea64,_0xd7ce72,_0x21046a){var _0x553e3f=_0x425c47;super(),v(this,'_status$',new w[(_0x553e3f(0x14c))](_0x553e3f(0x13b))),v(this,_0x553e3f(0xaa),this[_0x553e3f(0xde)][_0x553e3f(0xd9)]()),v(this,_0x553e3f(0x14a),!0x1),v(this,_0x553e3f(0xe7),null),v(this,_0x553e3f(0xa9),null),(this[_0x553e3f(0x130)]=_0x26f7cd,this[_0x553e3f(0x11c)]=_0x52e235,this[_0x553e3f(0x8a)]=_0x56ea64,this[_0x553e3f(0xdc)]=_0xd7ce72,this[_0x553e3f(0x116)]=_0x21046a);}get[_0x425c47(0x11f)](){var _0x1f6412=_0x425c47;return this[_0x1f6412(0xde)][_0x1f6412(0xfc)]();}[_0x425c47(0xce)](){var _0x39df36=_0x425c47,_0x731734;(_0x731734=this[_0x39df36(0xe7)])==null||_0x731734[_0x39df36(0xce)](),this['_status$'][_0x39df36(0x111)](_0x39df36(0x13b)),this[_0x39df36(0xde)][_0x39df36(0xc6)]();}['init'](){var _0x47bc03=_0x425c47;this['_init']||(this[_0x47bc03(0x14a)]=!0x0,this[_0x47bc03(0x11c)][_0x47bc03(0xee)][_0x47bc03(0x6c)](b[_0x47bc03(0x92)](this[_0x47bc03(0xba)]))[_0x47bc03(0xc7)](_0x235bf8=>{var _0x2ef17d=_0x47bc03;switch(_0x235bf8){case m[_0x2ef17d(0xdb)][_0x2ef17d(0x86)]:this[_0x2ef17d(0xf4)]();break;case m[_0x2ef17d(0xdb)][_0x2ef17d(0xac)]:this['_handleOnline']();break;}}),this[_0x47bc03(0x11c)][_0x47bc03(0x10d)][_0x47bc03(0x6c)](b[_0x47bc03(0x92)](this[_0x47bc03(0xba)]))[_0x47bc03(0xc7)](_0x743f77=>{var _0x331f63=_0x47bc03;const {eventID:_0x42da33}=_0x743f77;switch(_0x42da33){case _[_0x331f63(0x75)][_0x331f63(0xe6)]:this[_0x331f63(0x73)](_0x743f77);break;case _['CollaborationEvent'][_0x331f63(0xa8)]:this['_handleOperation'](_0x743f77);break;case _[_0x331f63(0x75)][_0x331f63(0xb4)]:this[_0x331f63(0x84)]();break;case _['CollaborationEvent'][_0x331f63(0x133)]:this[_0x331f63(0x12d)](_0x743f77);break;}}));}[_0x425c47(0xd2)](){var _0x43489d=_0x425c47;this[_0x43489d(0x11c)][_0x43489d(0xcc)]({'eventID':_['CollaborationEvent'][_0x43489d(0xbe)],'data':{'unitID':this['_unitID'],'userID':this[_0x43489d(0x11c)]['getMemberID']()}},this[_0x43489d(0x130)]);}[_0x425c47(0xe3)](){var _0x5a7ee8=_0x425c47;this['_status']===_0x5a7ee8(0x11a)&&(this[_0x5a7ee8(0xde)]['next']('idle'),this['_collabSession'][_0x5a7ee8(0xcc)]({'eventID':_[_0x5a7ee8(0x75)][_0x5a7ee8(0xb4)],'data':{'unitID':this[_0x5a7ee8(0x130)]}},this[_0x5a7ee8(0x130)]));}[_0x425c47(0xb3)](){var _0x13af6e=_0x425c47;this[_0x13af6e(0x11f)]===_0x13af6e(0x142)&&(this[_0x13af6e(0xde)][_0x13af6e(0x111)](_0x13af6e(0x106)),this[_0x13af6e(0xe9)]());}['stopFollowing'](){var _0x230390=_0x425c47;this[_0x230390(0x11f)]===_0x230390(0x106)&&this[_0x230390(0xd0)]();}['_handleNewHost'](_0x41bd99){var _0x14242d=_0x425c47;const {presenter:_0x3f72aa}=_0x41bd99[_0x14242d(0xe0)],_0x54c91f=this['_collabSession'][_0x14242d(0x141)]();this[_0x14242d(0xa9)]=_0x3f72aa,_0x3f72aa===_0x54c91f?(this[_0x14242d(0xd0)](),this[_0x14242d(0x7c)]()):this['_status']!==_0x14242d(0x142)&&(this['_stopPresenting'](),this[_0x14242d(0xe9)]());}[_0x425c47(0xa3)](){var _0x321283=_0x425c47;const _0x4e02d0={'eventID':_[_0x321283(0x75)][_0x321283(0xcd)]};this['_collabSession'][_0x321283(0xcc)](_0x4e02d0,this['_unitID']);}[_0x425c47(0x84)](){var _0x43152f=_0x425c47;this['_presenter']=null,this[_0x43152f(0x11f)]!==_0x43152f(0x11a)&&this[_0x43152f(0x7b)]();}[_0x425c47(0x12d)](_0x5aff54){var _0x2eaf49=_0x425c47;if(this[_0x2eaf49(0x11f)]===_0x2eaf49(0x106)&&this[_0x2eaf49(0xa9)]===_0x5aff54['data'][_0x2eaf49(0x90)]){const _0x1d12e4=_[_0x2eaf49(0x11e)](_0x5aff54[_0x2eaf49(0xe0)])[_0x2eaf49(0xf5)][_0x2eaf49(0xc0)]()['find'](_0x215f71=>_0x215f71['id']===C[_0x2eaf49(0x6f)]['id']);if(_0x1d12e4){const _0x374713=_0x1d12e4['params'][_0x2eaf49(0x8c)],_0x1e0345=_0x1d12e4[_0x2eaf49(0x129)][_0x2eaf49(0x14b)]['id'];setTimeout(()=>{var _0x5f074e=_0x2eaf49;this['_commandService']['executeCommand'](C[_0x5f074e(0x11d)]['id'],{'unitId':_0x374713,'subUnitId':_0x1e0345},{'fromCollab':!0x0});});}}}[_0x425c47(0x7c)](){var _0x44e04d=_0x425c47;this[_0x44e04d(0xde)]['next'](_0x44e04d(0x11a));const _0x516768=new Map(),_0x3b584b=this['_commandDisposable']=new o['DisposableCollection']();_0x3b584b[_0x44e04d(0x121)](o[_0x44e04d(0x138)](()=>{var _0x27dd1c=_0x44e04d;_0x516768[_0x27dd1c(0x82)](_0x4a7b0e=>_0x4a7b0e[_0x27dd1c(0xc6)]()),_0x516768['clear']();})),_0x3b584b[_0x44e04d(0x121)](this[_0x44e04d(0x116)][_0x44e04d(0x8d)](_0x44bce3=>{var _0xee0969=_0x44e04d,_0x244c87;if(_0x44bce3[_0xee0969(0xf1)]!==o[_0xee0969(0x102)][_0xee0969(0xf9)]||!this['_liveShareService'][_0xee0969(0x6a)](_0x44bce3['id']))return;const {id:_0x52babd}=_0x44bce3;let _0x10e751;_0x516768[_0xee0969(0xb9)](_0x52babd)?_0x10e751=_0x516768[_0xee0969(0x96)](_0x52babd):(_0x10e751=new w['Subject'](),_0x516768[_0xee0969(0x94)](_0x52babd,_0x10e751),_0x10e751[_0xee0969(0x6c)](b['throttleTime']((_0x244c87=this['_configService'][_0xee0969(0x99)](W))!=null?_0x244c87:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xee0969(0xc7)](_0x13b9d5=>{var _0x1fe114=_0xee0969;this[_0x1fe114(0x11c)][_0x1fe114(0xcc)]({'eventID':_[_0x1fe114(0x75)][_0x1fe114(0xa8)],'data':{'unitID':this[_0x1fe114(0x130)],'operations':{[_0x13b9d5['id']]:{'id':_0x13b9d5['id'],'params':JSON['stringify'](_0x13b9d5[_0x1fe114(0x129)])}}}},this[_0x1fe114(0x130)]);})),_0x10e751[_0xee0969(0x111)](_0x44bce3);})),this[_0x44e04d(0xdc)][_0x44e04d(0x140)](this[_0x44e04d(0x130)])[_0x44e04d(0x82)](_0x1c85e1=>this[_0x44e04d(0x11c)][_0x44e04d(0xcc)]({'eventID':_[_0x44e04d(0x75)][_0x44e04d(0xa8)],'data':{'unitID':this[_0x44e04d(0x130)],'operations':{[_0x1c85e1['id']]:{'id':_0x1c85e1['id'],'params':JSON[_0x44e04d(0xd7)](_0x1c85e1[_0x44e04d(0x129)])}}}},this['_unitID']));}[_0x425c47(0xec)](){var _0x3e8104=_0x425c47,_0x48d53b;this['_status$']['next'](_0x3e8104(0x13b)),(_0x48d53b=this[_0x3e8104(0xe7)])==null||_0x48d53b[_0x3e8104(0xce)](),this[_0x3e8104(0xe7)]=null;}[_0x425c47(0xe9)](){var _0x289179=_0x425c47,_0x2ba604;(_0x2ba604=this[_0x289179(0xe7)])==null||_0x2ba604[_0x289179(0xce)](),this[_0x289179(0xde)][_0x289179(0x111)](_0x289179(0x106));}[_0x425c47(0x7b)](){var _0x3059e9=_0x425c47,_0x3eb399;this[_0x3059e9(0xde)][_0x3059e9(0x111)](_0x3059e9(0x13b)),(_0x3eb399=this[_0x3059e9(0xe7)])==null||_0x3eb399['dispose'](),this['_commandDisposable']=null;}[_0x425c47(0xd0)](){var _0x144b6b=_0x425c47,_0x7bb0d2;this['_status$']['next']('not-following'),(_0x7bb0d2=this[_0x144b6b(0xe7)])==null||_0x7bb0d2[_0x144b6b(0xce)]();}[_0x425c47(0x13a)](_0x5817c6){var _0x526d21=_0x425c47;if([_0x526d21(0x11a),'not-following','offline'][_0x526d21(0x12c)](this[_0x526d21(0x11f)])||!_0x5817c6[_0x526d21(0xe0)][_0x526d21(0x119)]||_0x5817c6[_0x526d21(0xe0)]['presenter']===this[_0x526d21(0x11c)]['getMemberID']())return;this['_status']===_0x526d21(0x13b)&&this['_startFollowing']();const _0x177693=_0x5817c6['data'][_0x526d21(0xd4)];Object[_0x526d21(0xa6)](_0x177693)[_0x526d21(0x82)](_0x5edcfe=>{var _0x3fe33b=_0x526d21;this['_commandService'][_0x3fe33b(0xd5)](_0x5edcfe['id'],_0x5edcfe[_0x3fe33b(0x129)]?JSON[_0x3fe33b(0xbf)](_0x5edcfe[_0x3fe33b(0x129)]):null,{'fromCollab':!0x0});});}[_0x425c47(0xf4)](){var _0x4f4a62=_0x425c47,_0x5c028f;this[_0x4f4a62(0xde)][_0x4f4a62(0x111)](_0x4f4a62(0x93)),(_0x5c028f=this[_0x4f4a62(0xe7)])==null||_0x5c028f[_0x4f4a62(0xce)]();}[_0x425c47(0xef)](){var _0x445426=_0x425c47;this[_0x445426(0xde)][_0x445426(0x111)](_0x445426(0x13b)),this[_0x445426(0xa3)]();}},exports[_0x425c47(0xad)]=R([S(0x2,o[_0x425c47(0x71)]),S(0x3,o[_0x425c47(0xf2)](O)),S(0x4,o[_0x425c47(0x8b)])],exports['LiveShareCoordinator']);function A(){var _0x1fb65e=_0x425c47;const _0x4b760c=p[_0x1fb65e(0xea)](exports['LiveShareController']),_0x3c94f8=p[_0x1fb65e(0xea)](o['IUniverInstanceService']),_0x484b19=p[_0x1fb65e(0xb5)](()=>_0x3c94f8['getCurrentTypeOfUnit$'](o['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x6f96f3,_0x2b22c4]=f['useState'](null),[_0x10f676,_0x4486ca]=f[_0x1fb65e(0xf8)](h[_0x1fb65e(0xe8)]),_0x6083f7=f[_0x1fb65e(0xbd)](null);return f[_0x1fb65e(0xb1)](()=>(_0x484b19&&_0x4b760c[_0x1fb65e(0x10b)](_0x484b19[_0x1fb65e(0x148)]())[_0x1fb65e(0x79)](_0x3acb4e=>{var _0x325e75=_0x1fb65e;_0x2b22c4(_0x3acb4e),_0x6083f7[_0x325e75(0x118)]=_0x3acb4e[_0x325e75(0xaa)][_0x325e75(0xc7)](_0x2971ab=>{_0x4486ca(_0x2971ab);});}),()=>{var _0x1c89a4=_0x1fb65e,_0x1db58c;(_0x1db58c=_0x6083f7[_0x1c89a4(0x118)])==null||_0x1db58c[_0x1c89a4(0x131)](),_0x6083f7[_0x1c89a4(0x118)]=null;}),[_0x484b19,_0x4b760c]),_0x6f96f3?l[_0x1fb65e(0x115)](g[_0x1fb65e(0x13c)],{'align':_0x1fb65e(0x68),'disabled':_0x10f676===h[_0x1fb65e(0x86)],'className':_0x1fb65e(0x147),'overlay':l[_0x1fb65e(0x115)](B,{'status':_0x10f676,'coordinator':_0x6f96f3}),'children':l[_0x1fb65e(0x115)](_0x1fb65e(0x9f),{'className':g[_0x1fb65e(0xa5)](_0x1fb65e(0x6b),{'univer-cursor-not-allowed':_0x10f676===h[_0x1fb65e(0x86)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x10f676!==h[_0x1fb65e(0x86)]}),'type':_0x1fb65e(0x9f),'children':l[_0x1fb65e(0x115)](P,{'className':'univer-size-4'})})}):null;}function B(_0x3354fb){var _0x55dc92=_0x425c47;const {status:_0x13151d,coordinator:_0x57f670}=_0x3354fb;switch(_0x13151d){case h[_0x55dc92(0xe8)]:return l['jsx'](Y,{'coordinator':_0x57f670});case h['FOLLOWING']:return l[_0x55dc92(0x115)](Z,{'coordinator':_0x57f670});case h[_0x55dc92(0xc3)]:return l['jsx'](J,{'coordinator':_0x57f670});case h['OFFLINE']:return l['jsx'](z,{});case h['PRESENTING']:return l['jsx'](K,{'coordinator':_0x57f670});default:return null;}}function Y(_0x30a7c8){var _0x2ae748=_0x425c47;const {coordinator:_0x1d598b}=_0x30a7c8;return l[_0x2ae748(0x9d)](l[_0x2ae748(0xbb)],{'children':[l[_0x2ae748(0x115)](_0x2ae748(0x108),{'className':_0x2ae748(0x103),'children':_0x2ae748(0x134)}),l[_0x2ae748(0x115)](g[_0x2ae748(0x69)],{'onClick':()=>_0x1d598b[_0x2ae748(0xd2)](),'children':'Start'})]});}function Z(_0x18e73d){var _0x580eab=_0x425c47;const {coordinator:_0x2785c8}=_0x18e73d;return l[_0x580eab(0x9d)](l[_0x580eab(0xbb)],{'children':[l[_0x580eab(0x115)](_0x580eab(0x108),{'className':_0x580eab(0x103),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x580eab(0x115)](g[_0x580eab(0x69)],{'onClick':()=>_0x2785c8[_0x580eab(0x137)](),'children':_0x580eab(0x109)})]});}function J(_0x2f808b){var _0x2c7872=_0x425c47;const {coordinator:_0x241455}=_0x2f808b;return l[_0x2c7872(0x9d)](l[_0x2c7872(0xbb)],{'children':[l[_0x2c7872(0x115)](_0x2c7872(0x108),{'className':_0x2c7872(0x103),'children':_0x2c7872(0x9e)}),l[_0x2c7872(0x115)](g['Button'],{'variant':'text','onClick':()=>_0x241455[_0x2c7872(0xb3)](),'children':'Start\x20following'})]});}function K(_0x4c42ed){var _0x1d6895=_0x425c47;const {coordinator:_0x135d24}=_0x4c42ed;return l[_0x1d6895(0x9d)](l[_0x1d6895(0xbb)],{'children':[l[_0x1d6895(0x115)](_0x1d6895(0x108),{'className':_0x1d6895(0x103),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x1d6895(0x115)](g['Button'],{'variant':_0x1d6895(0x10e),'onClick':()=>_0x135d24[_0x1d6895(0xe3)](),'children':'Stop\x20presenting'})]});}function z(){var _0x1448bc=_0x425c47;return l[_0x1448bc(0x115)](l[_0x1448bc(0xbb)],{'children':_0x1448bc(0x12e)});}var Q=Object[_0x425c47(0x12a)],X=(_0x3e2731,_0x287a68,_0x45afda,_0xae2a2)=>{var _0x5109ed=_0x425c47;for(var _0x279b4e=_0xae2a2>0x1?void 0x0:_0xae2a2?Q(_0x287a68,_0x45afda):_0x287a68,_0x5c7abf=_0x3e2731[_0x5109ed(0xb7)]-0x1,_0x56cf3a;_0x5c7abf>=0x0;_0x5c7abf--)(_0x56cf3a=_0x3e2731[_0x5c7abf])&&(_0x279b4e=_0x56cf3a(_0x279b4e)||_0x279b4e);return _0x279b4e;},x=(_0x1da2ea,_0x57f61f)=>(_0x260fea,_0x328e99)=>_0x57f61f(_0x260fea,_0x328e99,_0x1da2ea);exports[_0x425c47(0x145)]=class extends o[_0x425c47(0xf3)]{constructor(_0xae8162,_0x1fd358){var _0x323c89=_0x425c47;super(),this[_0x323c89(0x12f)]=_0xae8162,this[_0x323c89(0x7d)]=_0x1fd358,this['_mountLiveShare']();}[_0x425c47(0xa4)](){var _0x3fa130=_0x425c47;this[_0x3fa130(0x78)](this[_0x3fa130(0x7d)][_0x3fa130(0x89)](p[_0x3fa130(0x144)][_0x3fa130(0x8f)],()=>p[_0x3fa130(0xf6)](A,this[_0x3fa130(0x12f)])));}},exports['DesktopLiveShareController']=X([x(0x0,o[_0x425c47(0xf2)](o[_0x425c47(0x6e)])),x(0x1,p[_0x425c47(0x101)])],exports[_0x425c47(0x145)]);const ee='live-share.config',L={};var te=Object[_0x425c47(0x12a)],ie=(_0x4f9cc7,_0x2269a1,_0x13efb1,_0x586eb8)=>{var _0x5b1091=_0x425c47;for(var _0x199639=_0x586eb8>0x1?void 0x0:_0x586eb8?te(_0x2269a1,_0x13efb1):_0x2269a1,_0x17918b=_0x4f9cc7[_0x5b1091(0xb7)]-0x1,_0x14fd37;_0x17918b>=0x0;_0x17918b--)(_0x14fd37=_0x4f9cc7[_0x17918b])&&(_0x199639=_0x14fd37(_0x199639)||_0x199639);return _0x199639;},ne=(_0x32455e,_0x57bb56)=>(_0x488a0d,_0x47b5a7)=>_0x57bb56(_0x488a0d,_0x47b5a7,_0x32455e);let E=class extends o[_0x425c47(0xf3)]{constructor(_0x5a9e7d){var _0x1646f8=_0x425c47;super(),this[_0x1646f8(0xdc)]=_0x5a9e7d,this[_0x1646f8(0x14a)]();}['_init'](){var _0x3d32cd=_0x425c47;[D[_0x3d32cd(0x98)]['id'],D[_0x3d32cd(0xc4)]['id'],C[_0x3d32cd(0x11d)]['id']]['forEach'](_0x5bcfaa=>{var _0x4d4f5d=_0x3d32cd;this['disposeWithMe'](this[_0x4d4f5d(0xdc)]['registerSharedOperation'](_0x5bcfaa));});}};E=ie([ne(0x0,o[_0x425c47(0xf2)](O))],E);var re=Object[_0x425c47(0x104)],se=Object[_0x425c47(0x12a)],oe=(_0x18bcfe,_0x14f26f,_0x5039c2)=>_0x14f26f in _0x18bcfe?re(_0x18bcfe,_0x14f26f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5039c2}):_0x18bcfe[_0x14f26f]=_0x5039c2,ae=(_0x549ce6,_0x4907a0,_0x4b30f6,_0xa5d86d)=>{var _0x54ebfd=_0x425c47;for(var _0x212769=_0xa5d86d>0x1?void 0x0:_0xa5d86d?se(_0x4907a0,_0x4b30f6):_0x4907a0,_0x556e74=_0x549ce6[_0x54ebfd(0xb7)]-0x1,_0x360ee6;_0x556e74>=0x0;_0x556e74--)(_0x360ee6=_0x549ce6[_0x556e74])&&(_0x212769=_0x360ee6(_0x212769)||_0x212769);return _0x212769;},N=(_0x755441,_0x3a07a5)=>(_0x59cc66,_0x5f10f8)=>_0x3a07a5(_0x59cc66,_0x5f10f8,_0x755441),T=(_0x2a607e,_0xdea9b6,_0x16dbef)=>oe(_0x2a607e,typeof _0xdea9b6!=_0x425c47(0x11b)?_0xdea9b6+'':_0xdea9b6,_0x16dbef);const le=_0x425c47(0xb6);exports[_0x425c47(0x110)]=class extends o['Plugin']{constructor(_0x518ba2=L,_0x5bbda6,_0xa0779e){var _0x2d4af2=_0x425c47;super(),this[_0x2d4af2(0xae)]=_0x518ba2,this[_0x2d4af2(0x12f)]=_0x5bbda6,this['_configService']=_0xa0779e;const {..._0x1ba1bb}=o[_0x2d4af2(0xdf)]({},L,this[_0x2d4af2(0xae)]);this[_0x2d4af2(0x8a)][_0x2d4af2(0x13e)](ee,_0x1ba1bb);}[_0x425c47(0x87)](){var _0x42636f=_0x425c47;o[_0x42636f(0xcf)](this[_0x42636f(0x12f)],o[_0x42636f(0xa1)]([[O],[exports[_0x42636f(0x7f)]],[E],[exports['DesktopLiveShareController']]],this[_0x42636f(0xae)][_0x42636f(0x9a)])),o['touchDependencies'](this[_0x42636f(0x12f)],[[E]]);}['onRendered'](){var _0x1cc234=_0x425c47;o[_0x1cc234(0xe5)](this[_0x1cc234(0x12f)],[[exports[_0x1cc234(0x145)]]]);}},T(exports[_0x425c47(0x110)],'type',o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x425c47(0x110)],'pluginName',le),exports[_0x425c47(0x110)]=ae([o[_0x425c47(0x146)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x425c47(0xf2)](o[_0x425c47(0x6e)])),N(0x2,o[_0x425c47(0x71)])],exports['UniverLiveSharePlugin']),exports[_0x425c47(0xe2)]=A,exports[_0x425c47(0xcb)]=O,exports[_0x425c47(0xc2)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1e09f3=_0x1c74;function _0x1c74(_0x2a01d2,_0x7ed7ed){var _0x4ffb36=_0x4ffb();return _0x1c74=function(_0x1c7464,_0x54ab05){_0x1c7464=_0x1c7464-0x14f;var _0x1119da=_0x4ffb36[_0x1c7464];return _0x1119da;},_0x1c74(_0x2a01d2,_0x7ed7ed);}(function(_0x4f0680,_0x3eee3a){var _0x2c31a9=_0x1c74,_0x27a3e0=_0x4f0680();while(!![]){try{var _0xb60899=parseInt(_0x2c31a9(0x177))/0x1*(-parseInt(_0x2c31a9(0x1e0))/0x2)+-parseInt(_0x2c31a9(0x17b))/0x3*(parseInt(_0x2c31a9(0x172))/0x4)+parseInt(_0x2c31a9(0x17a))/0x5+parseInt(_0x2c31a9(0x1b9))/0x6+parseInt(_0x2c31a9(0x19f))/0x7+-parseInt(_0x2c31a9(0x163))/0x8*(parseInt(_0x2c31a9(0x1d9))/0x9)+parseInt(_0x2c31a9(0x192))/0xa*(-parseInt(_0x2c31a9(0x1e5))/0xb);if(_0xb60899===_0x3eee3a)break;else _0x27a3e0['push'](_0x27a3e0['shift']());}catch(_0x248952){_0x27a3e0['push'](_0x27a3e0['shift']());}}}(_0x4ffb,0x61009));var q=Object[_0x1e09f3(0x16f)],z=(_0x2723f9,_0x47acab,_0x5b6a0d)=>_0x47acab in _0x2723f9?q(_0x2723f9,_0x47acab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b6a0d}):_0x2723f9[_0x47acab]=_0x5b6a0d,d=(_0x220faf,_0x3695e4,_0x155e8c)=>z(_0x220faf,typeof _0x3695e4!=_0x1e09f3(0x17e)?_0x3695e4+'':_0x3695e4,_0x155e8c);import{Disposable as _0x43a6f8,toDisposable as _0x17b61a,IUniverInstanceService as _0x38da53,Inject as _0x2b27e8,Injector as _0x16f883,IConfigService as _0x21acd3,ICommandService as _0x4d4a89,RxDisposable as _0x21439b,UniverInstanceType as _0x3bbc8d,DisposableCollection as _0x43c633,CommandType as _0x392875,DependentOn as _0x3b743f,Plugin as _0x15dbac,merge as _0x87a402,registerDependencies as _0x59f435,mergeOverrideWithDependencies as _0x34820a,touchDependencies as _0x4f5a38}from'@univerjs/core';import{useDependency as _0x495411,useObservable as _0x34251d,IUIPartsService as _0x1c2e1a,BuiltInUIPart as _0x30f0eb,connectInjector as _0x531d10}from'@univerjs/ui';import{jsx as _0x2d1f5c,jsxs as _0x50d3a8,Fragment as _0x4382c2}from'react/jsx-runtime';import{Dropdown as _0x2d90f6,clsx as _0x3999e9,Button as _0x2aed70}from'@univerjs/design';import{forwardRef as _0x47d6b2,useRef as _0x5a7ca8,createElement as _0xab7d5f,useState as _0x4a82b8,useEffect as _0x56939a}from'react';import{CollaborationEvent as _0x4377ff,parseProtocolChangeset as _0x38fc36}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3bdbae,SessionStatus as _0x1a1364,UniverCollaborationClientPlugin as _0x43cb69}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x32f350,SetWorksheetActiveOperation as _0x13b8af}from'@univerjs/sheets';import{BehaviorSubject as _0x311c7a,Subject as _0x347175}from'rxjs';import{takeUntil as _0x497fd7,throttleTime as _0x4709f4}from'rxjs/operators';import{SetZoomRatioOperation as _0x30cc8e,SetScrollOperation as _0x3bbb7e}from'@univerjs/sheets-ui';var c=function(){var _0x984605=_0x1e09f3;return c=Object[_0x984605(0x165)]||function(_0xdaedcf){var _0x2eac01=_0x984605;for(var _0x10144a,_0x33055e=0x1,_0x12bc7f=arguments[_0x2eac01(0x157)];_0x33055e<_0x12bc7f;_0x33055e++){_0x10144a=arguments[_0x33055e];for(var _0x1e33fb in _0x10144a)Object[_0x2eac01(0x1b4)]['hasOwnProperty']['call'](_0x10144a,_0x1e33fb)&&(_0xdaedcf[_0x1e33fb]=_0x10144a[_0x1e33fb]);}return _0xdaedcf;},c[_0x984605(0x1e6)](this,arguments);},Oe=function(_0x207288,_0x724dbe){var _0x55f0de=_0x1e09f3,_0x31b026={};for(var _0x59988c in _0x207288)Object['prototype'][_0x55f0de(0x168)][_0x55f0de(0x169)](_0x207288,_0x59988c)&&_0x724dbe[_0x55f0de(0x16c)](_0x59988c)<0x0&&(_0x31b026[_0x59988c]=_0x207288[_0x59988c]);if(_0x207288!=null&&typeof Object['getOwnPropertySymbols']==_0x55f0de(0x1dc)){for(var _0x18cca3=0x0,_0x59988c=Object[_0x55f0de(0x1b2)](_0x207288);_0x18cca3<_0x59988c['length'];_0x18cca3++)_0x724dbe[_0x55f0de(0x16c)](_0x59988c[_0x18cca3])<0x0&&Object['prototype'][_0x55f0de(0x185)][_0x55f0de(0x169)](_0x207288,_0x59988c[_0x18cca3])&&(_0x31b026[_0x59988c[_0x18cca3]]=_0x207288[_0x59988c[_0x18cca3]]);}return _0x31b026;},W=_0x47d6b2(function(_0x103513,_0x33c347){var _0x3d6975=_0x1e09f3,_0x2609a0=_0x103513['icon'],_0x2e6ec2=_0x103513['id'],_0xa0336b=_0x103513[_0x3d6975(0x173)],_0x908b6e=_0x103513['extend'],_0x4a8561=Oe(_0x103513,[_0x3d6975(0x1d8),'id',_0x3d6975(0x173),_0x3d6975(0x1dd)]),_0x187557=_0x3d6975(0x1ea)[_0x3d6975(0x164)](_0x2e6ec2,'\x20')[_0x3d6975(0x164)](_0xa0336b||'')[_0x3d6975(0x1cd)](),_0x412668=_0x5a7ca8('_'[_0x3d6975(0x164)](Ne()));return Y(_0x2609a0,''[_0x3d6975(0x164)](_0x2e6ec2),{'defIds':_0x2609a0['defIds'],'idSuffix':_0x412668[_0x3d6975(0x1d4)]},c({'ref':_0x33c347,'className':_0x187557},_0x4a8561),_0x908b6e);});function Y(_0x685da0,_0x4156d6,_0x3c3b8e,_0x522fc4,_0x38dbe3){var _0x3a6b99=_0x1e09f3;return _0xab7d5f(_0x685da0[_0x3a6b99(0x1f5)],c(c({'key':_0x4156d6},Ee(_0x685da0,_0x3c3b8e,_0x38dbe3)),_0x522fc4),(we(_0x685da0,_0x3c3b8e)[_0x3a6b99(0x1cf)]||[])[_0x3a6b99(0x1a7)](function(_0xc16717,_0x8de244){var _0x56c1b5=_0x3a6b99;return Y(_0xc16717,''[_0x56c1b5(0x164)](_0x4156d6,'-')[_0x56c1b5(0x164)](_0x685da0[_0x56c1b5(0x1f5)],'-')[_0x56c1b5(0x164)](_0x8de244),_0x3c3b8e,void 0x0,_0x38dbe3);}));}function Ee(_0x380316,_0x4550cc,_0x2d4347){var _0x3b5972=_0x1e09f3,_0x46385d=c({},_0x380316[_0x3b5972(0x19b)]);_0x2d4347!=null&&_0x2d4347[_0x3b5972(0x1fe)]&&_0x46385d['fill']==='colorChannel1'&&(_0x46385d[_0x3b5972(0x1b1)]=_0x2d4347[_0x3b5972(0x1fe)]),_0x380316[_0x3b5972(0x1f5)]===_0x3b5972(0x1af)&&_0x46385d['id']&&(_0x46385d['id']=_0x46385d['id']+_0x4550cc['idSuffix']),Object[_0x3b5972(0x1fb)](_0x46385d)['forEach'](function(_0x2aed62){var _0x58bee0=_0x3b5972,_0x5c6b4d=_0x2aed62[0x0],_0xc47e1f=_0x2aed62[0x1];_0x5c6b4d===_0x58bee0(0x1af)&&typeof _0xc47e1f==_0x58bee0(0x1bc)&&(_0x46385d[_0x5c6b4d]=_0xc47e1f[_0x58bee0(0x1eb)](/url\(#(.*)\)/,_0x58bee0(0x1bf)[_0x58bee0(0x164)](_0x4550cc[_0x58bee0(0x15a)],')')));});var _0x46974b=_0x4550cc[_0x3b5972(0x1b0)];return!_0x46974b||_0x46974b[_0x3b5972(0x157)]===0x0||(_0x380316[_0x3b5972(0x1f5)]===_0x3b5972(0x1f0)&&_0x46385d[_0x3b5972(0x1b6)]&&(_0x46385d[_0x3b5972(0x1b6)]=_0x46385d[_0x3b5972(0x1b6)]+_0x4550cc[_0x3b5972(0x15a)]),Object[_0x3b5972(0x1fb)](_0x46385d)['forEach'](function(_0x27696e){var _0x1e4221=_0x3b5972,_0x44930c=_0x27696e[0x0],_0x8f7b0=_0x27696e[0x1];typeof _0x8f7b0==_0x1e4221(0x1bc)&&(_0x46385d[_0x44930c]=_0x8f7b0[_0x1e4221(0x1eb)](/url\(#(.*)\)/,_0x1e4221(0x1bf)['concat'](_0x4550cc[_0x1e4221(0x15a)],')')));})),_0x46385d;}function we(_0x449772,_0x19fb56){var _0x588481=_0x1e09f3,_0x2f61db,_0x48ee5e=_0x19fb56[_0x588481(0x1b0)];return!_0x48ee5e||_0x48ee5e['length']===0x0?_0x449772:_0x449772['tag']===_0x588481(0x1cb)&&(!((_0x2f61db=_0x449772[_0x588481(0x1cf)])===null||_0x2f61db===void 0x0)&&_0x2f61db[_0x588481(0x157)])?c(c({},_0x449772),{'children':_0x449772['children'][_0x588481(0x1a7)](function(_0x286d72){var _0x85367=_0x588481;return typeof _0x286d72[_0x85367(0x19b)]['id']==_0x85367(0x1bc)&&_0x48ee5e&&_0x48ee5e[_0x85367(0x1f3)](_0x286d72[_0x85367(0x19b)]['id'])?c(c({},_0x286d72),{'attrs':c(c({},_0x286d72[_0x85367(0x19b)]),{'id':_0x286d72[_0x85367(0x19b)]['id']+_0x19fb56['idSuffix']})}):_0x286d72;})}):_0x449772;}function Ne(){var _0x59c25a=_0x1e09f3;return Math[_0x59c25a(0x1c2)]()[_0x59c25a(0x181)](0x24)[_0x59c25a(0x1ec)](0x2,0x8);}W[_0x1e09f3(0x1ae)]='UniverIcon';var Ce={'tag':_0x1e09f3(0x1e1),'attrs':{'xmlns':_0x1e09f3(0x1bb),'fill':_0x1e09f3(0x155),'viewBox':'0\x200\x2017\x2017','width':_0x1e09f3(0x194),'height':_0x1e09f3(0x194)},'children':[{'tag':_0x1e09f3(0x1a9),'attrs':{'fill':_0x1e09f3(0x179),'d':_0x1e09f3(0x1c7)}},{'tag':'path','attrs':{'fill':_0x1e09f3(0x179),'d':_0x1e09f3(0x15d),'fillRule':_0x1e09f3(0x1a5),'clipRule':_0x1e09f3(0x1a5)}}]},B=_0x47d6b2(function(_0x311c43,_0x5a94f2){var _0x59217d=_0x1e09f3;return _0xab7d5f(W,Object[_0x59217d(0x165)]({},_0x311c43,{'id':_0x59217d(0x153),'ref':_0x5a94f2,'icon':Ce}));});B[_0x1e09f3(0x1ae)]=_0x1e09f3(0x154);class L extends _0x43a6f8{constructor(){var _0x42a8db=_0x1e09f3;super(...arguments),d(this,_0x42a8db(0x161),new Set()),d(this,_0x42a8db(0x1b7),new Set());}[_0x1e09f3(0x1c9)](_0x4ba3c9){var _0x184023=_0x1e09f3;return this[_0x184023(0x161)][_0x184023(0x17f)](_0x4ba3c9),_0x17b61a(()=>this['_sharedOperations'][_0x184023(0x196)](_0x4ba3c9));}['registerInitialStateReporter'](_0x43f8da){var _0x1e4e12=_0x1e09f3;return this[_0x1e4e12(0x1b7)][_0x1e4e12(0x17f)](_0x43f8da),_0x17b61a(()=>this[_0x1e4e12(0x1b7)][_0x1e4e12(0x196)](_0x43f8da));}[_0x1e09f3(0x184)](_0x66595a){var _0x565bb2=_0x1e09f3;return this[_0x565bb2(0x161)][_0x565bb2(0x15c)](_0x66595a);}['getInitialStates'](_0xf60d12){var _0x13d103=_0x1e09f3;return Array['from'](this['_reporters'])[_0x13d103(0x1a7)](_0x181830=>_0x181830(_0xf60d12));}}var De=Object[_0x1e09f3(0x1d2)],Z=(_0x54af65,_0x237928,_0xbb1ebe,_0x356597)=>{var _0x5c87df=_0x1e09f3;for(var _0x2b0c66=_0x356597>0x1?void 0x0:_0x356597?De(_0x237928,_0xbb1ebe):_0x237928,_0x48af3b=_0x54af65[_0x5c87df(0x157)]-0x1,_0x3cc741;_0x48af3b>=0x0;_0x48af3b--)(_0x3cc741=_0x54af65[_0x48af3b])&&(_0x2b0c66=_0x3cc741(_0x2b0c66)||_0x2b0c66);return _0x2b0c66;},f=(_0x333c9d,_0x3343a7)=>(_0x38d874,_0x27dbf8)=>_0x3343a7(_0x38d874,_0x27dbf8,_0x333c9d);let m=class extends _0x21439b{constructor(_0x48b57a,_0x2f9c3a,_0x24d329){var _0x458f4d=_0x1e09f3;super(),d(this,_0x458f4d(0x1f9),new Map()),(this[_0x458f4d(0x1e2)]=_0x48b57a,this[_0x458f4d(0x1c4)]=_0x2f9c3a,this[_0x458f4d(0x18e)]=_0x24d329,this['_init']());}async[_0x1e09f3(0x1b8)](_0xe9f056){var _0x4a35c2=_0x1e09f3;return this[_0x4a35c2(0x1f9)][_0x4a35c2(0x15c)](_0xe9f056)||await this[_0x4a35c2(0x1f2)](_0xe9f056),this[_0x4a35c2(0x1f9)][_0x4a35c2(0x1f7)](_0xe9f056);}[_0x1e09f3(0x1de)](){var _0x856935=_0x1e09f3;this[_0x856935(0x1e2)]['getTypeOfUnitAdded$'](_0x3bbc8d[_0x856935(0x17c)])['pipe'](_0x497fd7(this['dispose$']))['subscribe'](async _0x316b4e=>{var _0x562831=_0x856935;const _0xec2a82=_0x316b4e['getUnitId']();this['_entities'][_0x562831(0x15c)](_0xec2a82)||this[_0x562831(0x1f2)](_0xec2a82);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x3bbc8d[_0x856935(0x17c)])['pipe'](_0x497fd7(this[_0x856935(0x1f6)]))[_0x856935(0x18c)](_0x1bcf77=>{var _0x4ef02a=_0x856935;const _0x5c3e62=_0x1bcf77[_0x4ef02a(0x1a4)](),_0x4bd5de=this[_0x4ef02a(0x1f9)][_0x4ef02a(0x1f7)](_0x5c3e62);_0x4bd5de==null||_0x4bd5de[_0x4ef02a(0x1c5)]();});}async[_0x1e09f3(0x1f2)](_0x1ddcb2){var _0x492895=_0x1e09f3;const _0x3a7e4a=await this[_0x492895(0x18e)][_0x492895(0x191)](_0x1ddcb2),_0x2cefef=this['_injector'][_0x492895(0x1ff)](C,_0x1ddcb2,_0x3a7e4a);return _0x2cefef[_0x492895(0x17d)](),this[_0x492895(0x1f9)][_0x492895(0x166)](_0x1ddcb2,_0x2cefef),_0x2cefef;}};m=Z([f(0x0,_0x38da53),f(0x1,_0x2b27e8(_0x16f883)),f(0x2,_0x2b27e8(_0x3bdbae))],m);var h=(_0x41d5fa=>(_0x41d5fa[_0x1e09f3(0x1da)]=_0x1e09f3(0x19a),_0x41d5fa[_0x1e09f3(0x1d0)]=_0x1e09f3(0x182),_0x41d5fa[_0x1e09f3(0x1ad)]=_0x1e09f3(0x1a3),_0x41d5fa[_0x1e09f3(0x170)]=_0x1e09f3(0x188),_0x41d5fa[_0x1e09f3(0x201)]=_0x1e09f3(0x16a),_0x41d5fa))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x21439b{constructor(_0x4ca3ad,_0x22f099,_0x4b6b74,_0x4715f6,_0x36c2ca){var _0x464a60=_0x1e09f3;super(),d(this,_0x464a60(0x1fd),new _0x311c7a('idle')),d(this,_0x464a60(0x1ca),this[_0x464a60(0x1fd)][_0x464a60(0x189)]()),d(this,_0x464a60(0x1de),!0x1),d(this,_0x464a60(0x193),null),d(this,_0x464a60(0x18f),null),(this[_0x464a60(0x198)]=_0x4ca3ad,this[_0x464a60(0x1c0)]=_0x22f099,this['_configService']=_0x4b6b74,this[_0x464a60(0x202)]=_0x4715f6,this[_0x464a60(0x152)]=_0x36c2ca);}get[_0x1e09f3(0x1be)](){var _0x42f9ea=_0x1e09f3;return this[_0x42f9ea(0x1fd)][_0x42f9ea(0x1e4)]();}[_0x1e09f3(0x1c5)](){var _0x18653e=_0x1e09f3,_0x2e9ecd;(_0x2e9ecd=this['_commandDisposable'])==null||_0x2e9ecd[_0x18653e(0x1c5)](),this[_0x18653e(0x1fd)][_0x18653e(0x1d6)](_0x18653e(0x182)),this[_0x18653e(0x1fd)][_0x18653e(0x1a1)]();}['init'](){var _0x543855=_0x1e09f3;this[_0x543855(0x1de)]||(this[_0x543855(0x1de)]=!0x0,this[_0x543855(0x1c0)][_0x543855(0x150)][_0x543855(0x1c8)](_0x497fd7(this[_0x543855(0x1f6)]))[_0x543855(0x18c)](_0x3293e6=>{var _0x10a499=_0x543855;switch(_0x3293e6){case _0x1a1364[_0x10a499(0x1da)]:this[_0x10a499(0x176)]();break;case _0x1a1364['ONLINE']:this[_0x10a499(0x200)]();break;}}),this[_0x543855(0x1c0)]['event$'][_0x543855(0x1c8)](_0x497fd7(this[_0x543855(0x1f6)]))['subscribe'](_0x48764a=>{var _0x3e01d3=_0x543855;const {eventID:_0x3df5d9}=_0x48764a;switch(_0x3df5d9){case _0x4377ff[_0x3e01d3(0x156)]:this[_0x3e01d3(0x1ef)](_0x48764a);break;case _0x4377ff[_0x3e01d3(0x1cc)]:this[_0x3e01d3(0x19e)](_0x48764a);break;case _0x4377ff[_0x3e01d3(0x1ab)]:this[_0x3e01d3(0x1a0)]();break;case _0x4377ff['NEW_CHANGESETS']:this[_0x3e01d3(0x1d1)](_0x48764a);break;}}));}[_0x1e09f3(0x1a6)](){var _0x5d130a=_0x1e09f3;this[_0x5d130a(0x1c0)][_0x5d130a(0x158)]({'eventID':_0x4377ff[_0x5d130a(0x174)],'data':{'unitID':this[_0x5d130a(0x198)],'userID':this[_0x5d130a(0x1c0)][_0x5d130a(0x1e3)]()}},this[_0x5d130a(0x198)]);}[_0x1e09f3(0x1f1)](){var _0x1bc5d0=_0x1e09f3;this[_0x1bc5d0(0x1be)]===_0x1bc5d0(0x16a)&&(this[_0x1bc5d0(0x1fd)][_0x1bc5d0(0x1d6)]('idle'),this['_collabSession'][_0x1bc5d0(0x158)]({'eventID':_0x4377ff[_0x1bc5d0(0x1ab)],'data':{'unitID':this[_0x1bc5d0(0x198)]}},this[_0x1bc5d0(0x198)]));}[_0x1e09f3(0x1c6)](){var _0x544c25=_0x1e09f3;this['_status']===_0x544c25(0x188)&&(this[_0x544c25(0x1fd)]['next'](_0x544c25(0x1a3)),this[_0x544c25(0x1ee)]());}['stopFollowing'](){var _0x5a4cb1=_0x1e09f3;this[_0x5a4cb1(0x1be)]===_0x5a4cb1(0x1a3)&&this[_0x5a4cb1(0x1f8)]();}[_0x1e09f3(0x1ef)](_0x3c98b8){var _0x1b7e58=_0x1e09f3;const {presenter:_0x55879f}=_0x3c98b8[_0x1b7e58(0x1b3)],_0x9782c7=this[_0x1b7e58(0x1c0)][_0x1b7e58(0x1e3)]();this[_0x1b7e58(0x18f)]=_0x55879f,_0x55879f===_0x9782c7?(this[_0x1b7e58(0x1f8)](),this[_0x1b7e58(0x1d5)]()):this[_0x1b7e58(0x1be)]!==_0x1b7e58(0x188)&&(this[_0x1b7e58(0x190)](),this['_startFollowing']());}[_0x1e09f3(0x16e)](){var _0x1c965b=_0x1e09f3;const _0x53d437={'eventID':_0x4377ff[_0x1c965b(0x1e9)]};this[_0x1c965b(0x1c0)]['send'](_0x53d437,this[_0x1c965b(0x198)]);}[_0x1e09f3(0x1a0)](){var _0x1c2cef=_0x1e09f3;this['_presenter']=null,this[_0x1c2cef(0x1be)]!==_0x1c2cef(0x16a)&&this[_0x1c2cef(0x1aa)]();}[_0x1e09f3(0x1d1)](_0x1c6acc){var _0x19c23f=_0x1e09f3;if(this['_status']===_0x19c23f(0x1a3)&&this[_0x19c23f(0x18f)]===_0x1c6acc[_0x19c23f(0x1b3)]['memberID']){const _0x4f6bf7=_0x38fc36(_0x1c6acc[_0x19c23f(0x1b3)])[_0x19c23f(0x186)][_0x19c23f(0x159)]()[_0x19c23f(0x1d7)](_0x2310f6=>_0x2310f6['id']===_0x32f350['id']);if(_0x4f6bf7){const _0x3df891=_0x4f6bf7[_0x19c23f(0x203)]['unitId'],_0x444137=_0x4f6bf7[_0x19c23f(0x203)][_0x19c23f(0x171)]['id'];setTimeout(()=>{var _0x4f5fc4=_0x19c23f;this['_commandService'][_0x4f5fc4(0x16b)](_0x13b8af['id'],{'unitId':_0x3df891,'subUnitId':_0x444137},{'fromCollab':!0x0});});}}}[_0x1e09f3(0x1d5)](){var _0x5788c1=_0x1e09f3;this[_0x5788c1(0x1fd)]['next'](_0x5788c1(0x16a));const _0x3340c5=new Map(),_0x4a9186=this[_0x5788c1(0x193)]=new _0x43c633();_0x4a9186['add'](_0x17b61a(()=>{var _0x18d8e5=_0x5788c1;_0x3340c5[_0x18d8e5(0x183)](_0x557311=>_0x557311[_0x18d8e5(0x1a1)]()),_0x3340c5[_0x18d8e5(0x1db)]();})),_0x4a9186[_0x5788c1(0x17f)](this[_0x5788c1(0x152)]['onCommandExecuted'](_0x38e82b=>{var _0x7391c=_0x5788c1,_0x1293a9;if(_0x38e82b[_0x7391c(0x1a8)]!==_0x392875[_0x7391c(0x178)]||!this[_0x7391c(0x202)][_0x7391c(0x184)](_0x38e82b['id']))return;const {id:_0x3f3427}=_0x38e82b;let _0x1718c8;_0x3340c5[_0x7391c(0x15c)](_0x3f3427)?_0x1718c8=_0x3340c5[_0x7391c(0x1f7)](_0x3f3427):(_0x1718c8=new _0x347175(),_0x3340c5[_0x7391c(0x166)](_0x3f3427,_0x1718c8),_0x1718c8[_0x7391c(0x1c8)](_0x4709f4((_0x1293a9=this['_configService'][_0x7391c(0x19d)](xe))!=null?_0x1293a9:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2389cb=>{var _0x556cfb=_0x7391c;this[_0x556cfb(0x1c0)][_0x556cfb(0x158)]({'eventID':_0x4377ff['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x556cfb(0x198)],'operations':{[_0x2389cb['id']]:{'id':_0x2389cb['id'],'params':JSON[_0x556cfb(0x15b)](_0x2389cb[_0x556cfb(0x203)])}}}},this['_unitID']);})),_0x1718c8[_0x7391c(0x1d6)](_0x38e82b);})),this[_0x5788c1(0x202)][_0x5788c1(0x1d3)](this[_0x5788c1(0x198)])['forEach'](_0x26ee09=>this[_0x5788c1(0x1c0)][_0x5788c1(0x158)]({'eventID':_0x4377ff[_0x5788c1(0x1cc)],'data':{'unitID':this[_0x5788c1(0x198)],'operations':{[_0x26ee09['id']]:{'id':_0x26ee09['id'],'params':JSON[_0x5788c1(0x15b)](_0x26ee09[_0x5788c1(0x203)])}}}},this[_0x5788c1(0x198)]));}[_0x1e09f3(0x190)](){var _0x4e1aa1=_0x1e09f3,_0x4bb65a;this[_0x4e1aa1(0x1fd)][_0x4e1aa1(0x1d6)]('idle'),(_0x4bb65a=this['_commandDisposable'])==null||_0x4bb65a[_0x4e1aa1(0x1c5)](),this['_commandDisposable']=null;}[_0x1e09f3(0x1ee)](){var _0x378d55=_0x1e09f3,_0x25c1b9;(_0x25c1b9=this[_0x378d55(0x193)])==null||_0x25c1b9[_0x378d55(0x1c5)](),this['_status$'][_0x378d55(0x1d6)](_0x378d55(0x1a3));}[_0x1e09f3(0x1aa)](){var _0x442f5e=_0x1e09f3,_0x5b2867;this['_status$'][_0x442f5e(0x1d6)](_0x442f5e(0x182)),(_0x5b2867=this[_0x442f5e(0x193)])==null||_0x5b2867[_0x442f5e(0x1c5)](),this['_commandDisposable']=null;}[_0x1e09f3(0x1f8)](){var _0x32d51f=_0x1e09f3,_0x4a37dc;this[_0x32d51f(0x1fd)][_0x32d51f(0x1d6)](_0x32d51f(0x188)),(_0x4a37dc=this[_0x32d51f(0x193)])==null||_0x4a37dc[_0x32d51f(0x1c5)]();}[_0x1e09f3(0x19e)](_0x26e889){var _0x56a008=_0x1e09f3;if([_0x56a008(0x16a),_0x56a008(0x188),_0x56a008(0x19a)][_0x56a008(0x1f3)](this[_0x56a008(0x1be)])||!_0x26e889[_0x56a008(0x1b3)][_0x56a008(0x187)]||_0x26e889[_0x56a008(0x1b3)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x56a008(0x1be)]==='idle'&&this[_0x56a008(0x1ee)]();const _0x55e060=_0x26e889[_0x56a008(0x1b3)][_0x56a008(0x151)];Object[_0x56a008(0x14f)](_0x55e060)[_0x56a008(0x183)](_0x1d1e88=>{var _0x457309=_0x56a008;this['_commandService'][_0x457309(0x16b)](_0x1d1e88['id'],_0x1d1e88[_0x457309(0x203)]?JSON[_0x457309(0x1a2)](_0x1d1e88['params']):null,{'fromCollab':!0x0});});}[_0x1e09f3(0x176)](){var _0x3589f7=_0x1e09f3,_0x1f5cfe;this[_0x3589f7(0x1fd)][_0x3589f7(0x1d6)](_0x3589f7(0x19a)),(_0x1f5cfe=this[_0x3589f7(0x193)])==null||_0x1f5cfe[_0x3589f7(0x1c5)]();}[_0x1e09f3(0x200)](){var _0x54c9ed=_0x1e09f3;this[_0x54c9ed(0x1fd)][_0x54c9ed(0x1d6)]('idle'),this[_0x54c9ed(0x16e)]();}};C=Z([f(0x2,_0x21acd3),f(0x3,_0x2b27e8(L)),f(0x4,_0x4d4a89)],C);function ye(){var _0x4dddff=_0x1e09f3;const _0x1c7620=_0x495411(m),_0x49bd45=_0x495411(_0x38da53),_0x301808=_0x34251d(()=>_0x49bd45['getCurrentTypeOfUnit$'](_0x3bbc8d[_0x4dddff(0x17c)]),void 0x0,!0x1,[]),[_0x55fbd3,_0x1b9344]=_0x4a82b8(null),[_0x5ed441,_0x3ea0df]=_0x4a82b8(h[_0x4dddff(0x1d0)]),_0x1aebde=_0x5a7ca8(null);return _0x56939a(()=>(_0x301808&&_0x1c7620[_0x4dddff(0x1b8)](_0x301808[_0x4dddff(0x1a4)]())[_0x4dddff(0x160)](_0x538df5=>{var _0x3f5998=_0x4dddff;_0x1b9344(_0x538df5),_0x1aebde['current']=_0x538df5[_0x3f5998(0x1ca)][_0x3f5998(0x18c)](_0x2d3234=>{_0x3ea0df(_0x2d3234);});}),()=>{var _0x8d6414=_0x4dddff,_0xd4bdc0;(_0xd4bdc0=_0x1aebde['current'])==null||_0xd4bdc0[_0x8d6414(0x1c3)](),_0x1aebde[_0x8d6414(0x1d4)]=null;}),[_0x301808,_0x1c7620]),_0x55fbd3?_0x2d1f5c(_0x2d90f6,{'align':_0x4dddff(0x18b),'disabled':_0x5ed441===h[_0x4dddff(0x1da)],'className':_0x4dddff(0x175),'overlay':_0x2d1f5c(Re,{'status':_0x5ed441,'coordinator':_0x55fbd3}),'children':_0x2d1f5c(_0x4dddff(0x1fc),{'className':_0x3999e9('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5ed441===h[_0x4dddff(0x1da)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5ed441!==h[_0x4dddff(0x1da)]}),'type':_0x4dddff(0x1fc),'children':_0x2d1f5c(B,{'className':'univer-size-4'})})}):null;}function Re(_0xfaf414){var _0x27d70c=_0x1e09f3;const {status:_0xefb975,coordinator:_0x32e8f3}=_0xfaf414;switch(_0xefb975){case h[_0x27d70c(0x1d0)]:return _0x2d1f5c(Pe,{'coordinator':_0x32e8f3});case h[_0x27d70c(0x1ad)]:return _0x2d1f5c(Ae,{'coordinator':_0x32e8f3});case h[_0x27d70c(0x170)]:return _0x2d1f5c(Te,{'coordinator':_0x32e8f3});case h[_0x27d70c(0x1da)]:return _0x2d1f5c(Fe,{});case h[_0x27d70c(0x201)]:return _0x2d1f5c($e,{'coordinator':_0x32e8f3});default:return null;}}function Pe(_0x195dd0){var _0x360525=_0x1e09f3;const {coordinator:_0x2d6ef5}=_0x195dd0;return _0x50d3a8(_0x4382c2,{'children':[_0x2d1f5c(_0x360525(0x1ba),{'className':_0x360525(0x1bd),'children':_0x360525(0x195)}),_0x2d1f5c(_0x2aed70,{'onClick':()=>_0x2d6ef5[_0x360525(0x1a6)](),'children':_0x360525(0x167)})]});}function Ae(_0xf76618){var _0x24d564=_0x1e09f3;const {coordinator:_0x39c7d9}=_0xf76618;return _0x50d3a8(_0x4382c2,{'children':[_0x2d1f5c(_0x24d564(0x1ba),{'className':_0x24d564(0x1bd),'children':_0x24d564(0x1df)}),_0x2d1f5c(_0x2aed70,{'onClick':()=>_0x39c7d9[_0x24d564(0x19c)](),'children':'Stop\x20following'})]});}function Te(_0x3cce21){var _0x335eb1=_0x1e09f3;const {coordinator:_0x4792c0}=_0x3cce21;return _0x50d3a8(_0x4382c2,{'children':[_0x2d1f5c(_0x335eb1(0x1ba),{'className':_0x335eb1(0x1bd),'children':_0x335eb1(0x1f4)}),_0x2d1f5c(_0x2aed70,{'variant':'text','onClick':()=>_0x4792c0[_0x335eb1(0x1c6)](),'children':_0x335eb1(0x180)})]});}function $e(_0x3bfc88){var _0xd34caa=_0x1e09f3;const {coordinator:_0x27e0c8}=_0x3bfc88;return _0x50d3a8(_0x4382c2,{'children':[_0x2d1f5c('div',{'className':_0xd34caa(0x1bd),'children':_0xd34caa(0x1ce)}),_0x2d1f5c(_0x2aed70,{'variant':_0xd34caa(0x1e7),'onClick':()=>_0x27e0c8[_0xd34caa(0x1f1)](),'children':'Stop\x20presenting'})]});}function Fe(){return _0x2d1f5c(_0x4382c2,{'children':'You\x27are\x20offline.'});}var He=Object['getOwnPropertyDescriptor'],je=(_0x5dda6f,_0x4d6160,_0x3bf51d,_0xaf76bd)=>{var _0x5f57c6=_0x1e09f3;for(var _0x2f9ba4=_0xaf76bd>0x1?void 0x0:_0xaf76bd?He(_0x4d6160,_0x3bf51d):_0x4d6160,_0x47a5bb=_0x5dda6f[_0x5f57c6(0x157)]-0x1,_0x315328;_0x47a5bb>=0x0;_0x47a5bb--)(_0x315328=_0x5dda6f[_0x47a5bb])&&(_0x2f9ba4=_0x315328(_0x2f9ba4)||_0x2f9ba4);return _0x2f9ba4;},T=(_0x43f2c3,_0xe4c9e1)=>(_0x58f5d2,_0x5c5c9b)=>_0xe4c9e1(_0x58f5d2,_0x5c5c9b,_0x43f2c3);let I=class extends _0x43a6f8{constructor(_0x56e1b7,_0x3e2c1a){var _0x4f404e=_0x1e09f3;super(),this['_injector']=_0x56e1b7,this['_uiPartsService']=_0x3e2c1a,this[_0x4f404e(0x1ac)]();}['_mountLiveShare'](){var _0x3c9c52=_0x1e09f3;this[_0x3c9c52(0x1b5)](this[_0x3c9c52(0x15e)][_0x3c9c52(0x15f)](_0x30f0eb[_0x3c9c52(0x162)],()=>_0x531d10(ye,this['_injector'])));}};I=je([T(0x0,_0x2b27e8(_0x16f883)),T(0x1,_0x1c2e1a)],I);const Ue=_0x1e09f3(0x1e8),$={};function _0x4ffb(){var _0x2e7e54=['toString','idle','forEach','shouldShareOperation','propertyIsEnumerable','mutations','presenter','not-following','asObservable','onStarting','end','subscribe','pluginName','_collabSessionService','_presenter','_stopPresenting','requireSession','10vRoFXO','_commandDisposable','1em','Present\x20this\x20document','delete','override','_unitID','setConfig','offline','attrs','stopFollowing','getConfig','_handleOperation','5148787DpSjRd','_handleTerminate','complete','parse','following','getUnitId','evenodd','tryStartPresenting','map','type','path','_beIdle','LIVESHARE_TERMINATE','_mountLiveShare','FOLLOWING','displayName','mask','defIds','fill','getOwnPropertySymbols','data','prototype','disposeWithMe','xlink:href','_reporters','getLiveShareCoordinator','4131324cMExoD','div','http://www.w3.org/2000/svg','string','univer-mb-3\x20univer-w-full\x20univer-text-sm','_status','url(#$1','_collabSession','_config','random','unsubscribe','_injector','dispose','startFollowing','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','pipe','registerSharedOperation','status$','defs','LIVESHARE_OPERATION','trim','You\x27re\x20presenting\x20the\x20document','children','IDLE','_handleNewChangeSets','getOwnPropertyDescriptor','getInitialStates','current','_startPresenting','next','find','icon','657wQvLdb','OFFLINE','clear','function','extend','_init','You\x27re\x20following\x20the\x20presenter','2whaWRO','svg','_univerInstanceService','getMemberID','getValue','6658773JnTwbu','apply','default','live-share.config','LIVESHARE_FETCH_OPERATIONS','univerjs-icon\x20univerjs-icon-','replace','substring','_configService','_startFollowing','_handleNewHost','use','stopPresenting','_startLiveShareCoordinator','includes','You\x27re\x20not\x20following\x20the\x20presenter','tag','dispose$','get','_stopFollowing','_entities','UNIVER_LIVE_SHARE_PLUGIN','entries','button','_status$','colorChannel1','createInstance','_handleOnline','PRESENTING','_liveShareService','params','values','sessionStatus$','operations','_commandService','live-share-icon','LiveShareIcon','none','LIVESHARE_NEW_HOST','length','send','reverse','idSuffix','stringify','has','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','_uiPartsService','registerComponent','then','_sharedOperations','HEADER_MENU','20928dCTDSa','concat','assign','set','Start','hasOwnProperty','call','presenting','executeCommand','indexOf','onRendered','_fetchOperations','defineProperty','NOT_FOLLOWING','sheet','689964OVzEDY','className','LIVESHARE_REQUEST_HOST','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','_handleOffline','403346SYyPqV','OPERATION','currentColor','1726870wyGuls','3YoeiIu','UNIVER_SHEET','init','symbol','add','Start\x20following'];_0x4ffb=function(){return _0x2e7e54;};return _0x4ffb();}var Ve=Object[_0x1e09f3(0x1d2)],Me=(_0x440759,_0x1f4ba1,_0x54909f,_0x560e6e)=>{var _0x59be6a=_0x1e09f3;for(var _0x5f4809=_0x560e6e>0x1?void 0x0:_0x560e6e?Ve(_0x1f4ba1,_0x54909f):_0x1f4ba1,_0x3554bf=_0x440759[_0x59be6a(0x157)]-0x1,_0x23290a;_0x3554bf>=0x0;_0x3554bf--)(_0x23290a=_0x440759[_0x3554bf])&&(_0x5f4809=_0x23290a(_0x5f4809)||_0x5f4809);return _0x5f4809;},ke=(_0xef5370,_0x9098d2)=>(_0x527052,_0x2c543a)=>_0x9098d2(_0x527052,_0x2c543a,_0xef5370);let b=class extends _0x43a6f8{constructor(_0x326142){var _0x4c679a=_0x1e09f3;super(),this[_0x4c679a(0x202)]=_0x326142,this['_init']();}[_0x1e09f3(0x1de)](){[_0x30cc8e['id'],_0x3bbb7e['id'],_0x13b8af['id']]['forEach'](_0x4c30cd=>{var _0x42ee74=_0x1c74;this[_0x42ee74(0x1b5)](this[_0x42ee74(0x202)][_0x42ee74(0x1c9)](_0x4c30cd));});}};b=Me([ke(0x0,_0x2b27e8(L))],b);var Ge=Object[_0x1e09f3(0x16f)],We=Object[_0x1e09f3(0x1d2)],Ye=(_0x5a9c1,_0x5bedf8,_0x2f8351)=>_0x5bedf8 in _0x5a9c1?Ge(_0x5a9c1,_0x5bedf8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f8351}):_0x5a9c1[_0x5bedf8]=_0x2f8351,Be=(_0x84de0e,_0x42f054,_0x175443,_0x14a7de)=>{var _0x5c1ab5=_0x1e09f3;for(var _0x594204=_0x14a7de>0x1?void 0x0:_0x14a7de?We(_0x42f054,_0x175443):_0x42f054,_0x1a2e51=_0x84de0e[_0x5c1ab5(0x157)]-0x1,_0x3e6a09;_0x1a2e51>=0x0;_0x1a2e51--)(_0x3e6a09=_0x84de0e[_0x1a2e51])&&(_0x594204=_0x3e6a09(_0x594204)||_0x594204);return _0x594204;},F=(_0x59bfc3,_0x579348)=>(_0x47d90c,_0x51fa39)=>_0x579348(_0x47d90c,_0x51fa39,_0x59bfc3),J=(_0x2bd9f8,_0x523808,_0x3074dc)=>Ye(_0x2bd9f8,typeof _0x523808!=_0x1e09f3(0x17e)?_0x523808+'':_0x523808,_0x3074dc);const Ze=_0x1e09f3(0x1fa);let O=class extends _0x15dbac{constructor(_0x1fe5d3=$,_0x252c9a,_0x1de4bc){var _0x1873be=_0x1e09f3;super(),this['_config']=_0x1fe5d3,this[_0x1873be(0x1c4)]=_0x252c9a,this[_0x1873be(0x1ed)]=_0x1de4bc;const {..._0x26463c}=_0x87a402({},$,this['_config']);this[_0x1873be(0x1ed)][_0x1873be(0x199)](Ue,_0x26463c);}[_0x1e09f3(0x18a)](){var _0xf3f409=_0x1e09f3;_0x59f435(this[_0xf3f409(0x1c4)],_0x34820a([[L],[m],[b],[I]],this[_0xf3f409(0x1c1)][_0xf3f409(0x197)])),_0x4f5a38(this[_0xf3f409(0x1c4)],[[b]]);}[_0x1e09f3(0x16d)](){var _0x4e95b2=_0x1e09f3;_0x4f5a38(this[_0x4e95b2(0x1c4)],[[I]]);}};J(O,'type',_0x3bbc8d['UNIVER_UNKNOWN']),J(O,_0x1e09f3(0x18d),Ze),O=Be([_0x3b743f(_0x43cb69),F(0x1,_0x2b27e8(_0x16f883)),F(0x2,_0x21acd3)],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 _0x3a3ab5=_0x3eae;(function(_0x260bae,_0x2c6ce9){var _0x55465a=_0x3eae,_0xdf58b1=_0x260bae();while(!![]){try{var _0x5793bb=parseInt(_0x55465a(0x264))/0x1+parseInt(_0x55465a(0x269))/0x2*(-parseInt(_0x55465a(0x275))/0x3)+parseInt(_0x55465a(0x27b))/0x4+parseInt(_0x55465a(0x1f8))/0x5*(-parseInt(_0x55465a(0x262))/0x6)+parseInt(_0x55465a(0x22b))/0x7+parseInt(_0x55465a(0x243))/0x8+-parseInt(_0x55465a(0x1fc))/0x9*(parseInt(_0x55465a(0x209))/0xa);if(_0x5793bb===_0x2c6ce9)break;else _0xdf58b1['push'](_0xdf58b1['shift']());}catch(_0x49690a){_0xdf58b1['push'](_0xdf58b1['shift']());}}}(_0x169c,0xa1479));var q=Object[_0x3a3ab5(0x287)],z=(_0x1629f5,_0x475dd1,_0x19b6df)=>_0x475dd1 in _0x1629f5?q(_0x1629f5,_0x475dd1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19b6df}):_0x1629f5[_0x475dd1]=_0x19b6df,d=(_0x7f965c,_0x1665be,_0x4b62fe)=>z(_0x7f965c,typeof _0x1665be!=_0x3a3ab5(0x1ed)?_0x1665be+'':_0x1665be,_0x4b62fe);import{Disposable as _0x455fad,toDisposable as _0x436294,IUniverInstanceService as _0x1d8bf3,Inject as _0x31e0bc,Injector as _0x4954bf,IConfigService as _0x20a225,ICommandService as _0xe4004e,RxDisposable as _0x16d957,UniverInstanceType as _0x448959,DisposableCollection as _0x1b6a9c,CommandType as _0x2e5ba9,DependentOn as _0x3d5d54,Plugin as _0x9a98d2,merge as _0x19d8b5,registerDependencies as _0x204a17,mergeOverrideWithDependencies as _0x24b91d,touchDependencies as _0x8d2874}from'@univerjs/core';import{useDependency as _0x22f7b4,useObservable as _0x333831,IUIPartsService as _0x1a74a9,BuiltInUIPart as _0x491a32,connectInjector as _0xfdf7a5}from'@univerjs/ui';import{jsx as _0x48343b,jsxs as _0x17d1e3,Fragment as _0x564f17}from'react/jsx-runtime';import{Dropdown as _0x48a603,clsx as _0x292a6e,Button as _0x45739e}from'@univerjs/design';import{forwardRef as _0x5a28b7,useRef as _0x527ac8,createElement as _0x471b24,useState as _0x35c6be,useEffect as _0x307e8c}from'react';import{CollaborationEvent as _0x397dcb,parseProtocolChangeset as _0x500977}from'@univerjs-pro/collaboration';function _0x3eae(_0x5c13ae,_0xd8685f){var _0x169c24=_0x169c();return _0x3eae=function(_0x3eae3b,_0x302d70){_0x3eae3b=_0x3eae3b-0x1e5;var _0x3f291e=_0x169c24[_0x3eae3b];return _0x3f291e;},_0x3eae(_0x5c13ae,_0xd8685f);}import{CollaborationSessionService as _0x31967c,SessionStatus as _0x1e54cd,UniverCollaborationClientPlugin as _0x2bd614}from'@univerjs-pro/collaboration-client';function _0x169c(){var _0x1ed96a=['svg','offline','_handleNewHost','map','Stop\x20following','end','getOwnPropertySymbols','status$','toString','idSuffix','You\x27re\x20presenting\x20the\x20document','set','40DoJgjb','path','none','mask','tryStartPresenting','http://www.w3.org/2000/svg','from','LiveShareIcon','hasOwnProperty','_status$','string','following','pipe','attrs','_handleTerminate','random','NEW_CHANGESETS','extend','IDLE','propertyIsEnumerable','_handleNewChangeSets','getValue','data','currentColor','children','xlink:href','replace','startFollowing','registerComponent','executeCommand','getLiveShareCoordinator','UNIVER_SHEET','get','url(#$1','4109987GCNSLh','presenter','_collabSession','entries','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_unitID','1em','_beIdle','Start','trim','assign','univer-mb-3\x20univer-w-full\x20univer-text-sm','find','_presenter','LIVESHARE_OPERATION','registerInitialStateReporter','event$','idle','defs','substring','getTypeOfUnitDisposed$','sheet','LIVESHARE_NEW_HOST','pluginName','3124176EgxFBW','0\x200\x2017\x2017','_config','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_liveShareService','colorChannel1','getCurrentTypeOfUnit$','_startPresenting','Stop\x20presenting','stringify','type','params','dispose','_commandService','onStarting','evenodd','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_startFollowing','displayName','has','override','UniverIcon','memberID','send','SAME_OPERATION_SHARE_INTERVAL','shouldShareOperation','includes','getUnitId','text','PRESENTING','button','15306BjNupr','values','494836weFHjl','_fetchOperations','_startLiveShareCoordinator','setConfig','className','194oBejQW','_univerInstanceService','next','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_FETCH_OPERATIONS','OFFLINE','live-share.config','parse','_stopFollowing','length','defIds','You\x27are\x20offline.','29781TiEYzx','UNIVER_UNKNOWN','NOT_FOLLOWING','subscribe','concat','onCommandExecuted','5166176OHrYkY','add','You\x27re\x20following\x20the\x20presenter','complete','_configService','getMemberID','FOLLOWING','reverse','LIVESHARE_REQUEST_HOST','getOwnPropertyDescriptor','indexOf','_reporters','defineProperty','getTypeOfUnitAdded$','presenting','dispose$','function','Present\x20this\x20document','requireSession','_stopPresenting','icon','disposeWithMe','asObservable','getInitialStates','call','_uiPartsService','live-share-icon','_injector','prototype','_entities','mutations','init','_handleOnline','_mountLiveShare','delete','_commandDisposable','univerjs-icon\x20univerjs-icon-','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','apply','_sharedOperations','LIVESHARE_TERMINATE','then','forEach','current','clear','getConfig','_handleOffline','symbol','_init','default','Start\x20following','stopFollowing','fill','_handleOperation','stopPresenting','ONLINE','_collabSessionService','not-following','285LSSnIm','_status','onRendered','tag','2239011FDneDG'];_0x169c=function(){return _0x1ed96a;};return _0x169c();}import{InsertSheetMutation as _0x32057a,SetWorksheetActiveOperation as _0x29613a}from'@univerjs/sheets';import{BehaviorSubject as _0x56668a,Subject as _0xc074b3}from'rxjs';import{takeUntil as _0x594e24,throttleTime as _0x4350b5}from'rxjs/operators';import{SetZoomRatioOperation as _0x1f7b0d,SetScrollOperation as _0x18a32e}from'@univerjs/sheets-ui';var c=function(){var _0x360896=_0x3a3ab5;return c=Object[_0x360896(0x235)]||function(_0x12fd74){var _0x22b9b8=_0x360896;for(var _0x530c62,_0x2213ef=0x1,_0x44c771=arguments[_0x22b9b8(0x272)];_0x2213ef<_0x44c771;_0x2213ef++){_0x530c62=arguments[_0x2213ef];for(var _0x572ca3 in _0x530c62)Object[_0x22b9b8(0x297)][_0x22b9b8(0x211)]['call'](_0x530c62,_0x572ca3)&&(_0x12fd74[_0x572ca3]=_0x530c62[_0x572ca3]);}return _0x12fd74;},c[_0x360896(0x2a1)](this,arguments);},Oe=function(_0x4fc45a,_0x202c43){var _0xf80c5f=_0x3a3ab5,_0x461891={};for(var _0x2c903c in _0x4fc45a)Object[_0xf80c5f(0x297)][_0xf80c5f(0x211)][_0xf80c5f(0x293)](_0x4fc45a,_0x2c903c)&&_0x202c43[_0xf80c5f(0x285)](_0x2c903c)<0x0&&(_0x461891[_0x2c903c]=_0x4fc45a[_0x2c903c]);if(_0x4fc45a!=null&&typeof Object[_0xf80c5f(0x203)]==_0xf80c5f(0x28b)){for(var _0x1f41fe=0x0,_0x2c903c=Object[_0xf80c5f(0x203)](_0x4fc45a);_0x1f41fe<_0x2c903c[_0xf80c5f(0x272)];_0x1f41fe++)_0x202c43['indexOf'](_0x2c903c[_0x1f41fe])<0x0&&Object[_0xf80c5f(0x297)][_0xf80c5f(0x21c)]['call'](_0x4fc45a,_0x2c903c[_0x1f41fe])&&(_0x461891[_0x2c903c[_0x1f41fe]]=_0x4fc45a[_0x2c903c[_0x1f41fe]]);}return _0x461891;},W=_0x5a28b7(function(_0x5c6e75,_0x3905bf){var _0x2b8dfe=_0x3a3ab5,_0x3bba64=_0x5c6e75['icon'],_0x3b64ca=_0x5c6e75['id'],_0x4171eb=_0x5c6e75['className'],_0x4e3f24=_0x5c6e75[_0x2b8dfe(0x21a)],_0x970013=Oe(_0x5c6e75,[_0x2b8dfe(0x28f),'id',_0x2b8dfe(0x268),_0x2b8dfe(0x21a)]),_0x48bac9=_0x2b8dfe(0x29f)[_0x2b8dfe(0x279)](_0x3b64ca,'\x20')[_0x2b8dfe(0x279)](_0x4171eb||'')[_0x2b8dfe(0x234)](),_0x272a93=_0x527ac8('_'[_0x2b8dfe(0x279)](Ne()));return Y(_0x3bba64,''[_0x2b8dfe(0x279)](_0x3b64ca),{'defIds':_0x3bba64[_0x2b8dfe(0x273)],'idSuffix':_0x272a93[_0x2b8dfe(0x1e9)]},c({'ref':_0x3905bf,'className':_0x48bac9},_0x970013),_0x4e3f24);});function Y(_0x2dd433,_0x5ad4c5,_0x1f95ba,_0x222eaa,_0x230dff){var _0x1e1db2=_0x3a3ab5;return _0x471b24(_0x2dd433[_0x1e1db2(0x1fb)],c(c({'key':_0x5ad4c5},Ee(_0x2dd433,_0x1f95ba,_0x230dff)),_0x222eaa),(we(_0x2dd433,_0x1f95ba)[_0x1e1db2(0x221)]||[])[_0x1e1db2(0x200)](function(_0x23c0e8,_0x2e0e53){var _0x26fa1d=_0x1e1db2;return Y(_0x23c0e8,''['concat'](_0x5ad4c5,'-')[_0x26fa1d(0x279)](_0x2dd433[_0x26fa1d(0x1fb)],'-')[_0x26fa1d(0x279)](_0x2e0e53),_0x1f95ba,void 0x0,_0x230dff);}));}function Ee(_0x4dc983,_0x58224b,_0x294ec7){var _0x2dc398=_0x3a3ab5,_0x4f7339=c({},_0x4dc983[_0x2dc398(0x216)]);_0x294ec7!=null&&_0x294ec7[_0x2dc398(0x248)]&&_0x4f7339[_0x2dc398(0x1f2)]==='colorChannel1'&&(_0x4f7339[_0x2dc398(0x1f2)]=_0x294ec7[_0x2dc398(0x248)]),_0x4dc983[_0x2dc398(0x1fb)]===_0x2dc398(0x20c)&&_0x4f7339['id']&&(_0x4f7339['id']=_0x4f7339['id']+_0x58224b[_0x2dc398(0x206)]),Object[_0x2dc398(0x22e)](_0x4f7339)[_0x2dc398(0x1e8)](function(_0x2113d5){var _0x358484=_0x2dc398,_0x1101ad=_0x2113d5[0x0],_0x122ad4=_0x2113d5[0x1];_0x1101ad===_0x358484(0x20c)&&typeof _0x122ad4==_0x358484(0x213)&&(_0x4f7339[_0x1101ad]=_0x122ad4[_0x358484(0x223)](/url\(#(.*)\)/,_0x358484(0x22a)[_0x358484(0x279)](_0x58224b[_0x358484(0x206)],')')));});var _0x592c4e=_0x58224b[_0x2dc398(0x273)];return!_0x592c4e||_0x592c4e[_0x2dc398(0x272)]===0x0||(_0x4dc983[_0x2dc398(0x1fb)]==='use'&&_0x4f7339[_0x2dc398(0x222)]&&(_0x4f7339[_0x2dc398(0x222)]=_0x4f7339['xlink:href']+_0x58224b['idSuffix']),Object[_0x2dc398(0x22e)](_0x4f7339)['forEach'](function(_0x481fd8){var _0x2d6080=_0x2dc398,_0x5909a5=_0x481fd8[0x0],_0x22a88b=_0x481fd8[0x1];typeof _0x22a88b=='string'&&(_0x4f7339[_0x5909a5]=_0x22a88b[_0x2d6080(0x223)](/url\(#(.*)\)/,_0x2d6080(0x22a)[_0x2d6080(0x279)](_0x58224b[_0x2d6080(0x206)],')')));})),_0x4f7339;}function we(_0x263791,_0x5a0c71){var _0x24c1b9=_0x3a3ab5,_0x6e96c6,_0x5d2ef3=_0x5a0c71['defIds'];return!_0x5d2ef3||_0x5d2ef3[_0x24c1b9(0x272)]===0x0?_0x263791:_0x263791[_0x24c1b9(0x1fb)]===_0x24c1b9(0x23d)&&(!((_0x6e96c6=_0x263791[_0x24c1b9(0x221)])===null||_0x6e96c6===void 0x0)&&_0x6e96c6[_0x24c1b9(0x272)])?c(c({},_0x263791),{'children':_0x263791['children'][_0x24c1b9(0x200)](function(_0xf3ae08){var _0xe2de6f=_0x24c1b9;return typeof _0xf3ae08[_0xe2de6f(0x216)]['id']==_0xe2de6f(0x213)&&_0x5d2ef3&&_0x5d2ef3['includes'](_0xf3ae08['attrs']['id'])?c(c({},_0xf3ae08),{'attrs':c(c({},_0xf3ae08[_0xe2de6f(0x216)]),{'id':_0xf3ae08['attrs']['id']+_0x5a0c71[_0xe2de6f(0x206)]})}):_0xf3ae08;})}):_0x263791;}function Ne(){var _0x548c78=_0x3a3ab5;return Math[_0x548c78(0x218)]()[_0x548c78(0x205)](0x24)[_0x548c78(0x23e)](0x2,0x8);}W['displayName']=_0x3a3ab5(0x258);var Ce={'tag':_0x3a3ab5(0x1fd),'attrs':{'xmlns':_0x3a3ab5(0x20e),'fill':_0x3a3ab5(0x20b),'viewBox':_0x3a3ab5(0x244),'width':_0x3a3ab5(0x231),'height':_0x3a3ab5(0x231)},'children':[{'tag':_0x3a3ab5(0x20a),'attrs':{'fill':_0x3a3ab5(0x220),'d':_0x3a3ab5(0x22f)}},{'tag':_0x3a3ab5(0x20a),'attrs':{'fill':_0x3a3ab5(0x220),'d':_0x3a3ab5(0x246),'fillRule':'evenodd','clipRule':_0x3a3ab5(0x252)}}]},B=_0x5a28b7(function(_0x4cb8df,_0x277472){var _0x25a95d=_0x3a3ab5;return _0x471b24(W,Object[_0x25a95d(0x235)]({},_0x4cb8df,{'id':_0x25a95d(0x295),'ref':_0x277472,'icon':Ce}));});B[_0x3a3ab5(0x255)]=_0x3a3ab5(0x210);class L extends _0x455fad{constructor(){var _0x4076e1=_0x3a3ab5;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x4076e1(0x286),new Set());}['registerSharedOperation'](_0x58875b){var _0x471743=_0x3a3ab5;return this[_0x471743(0x1e5)][_0x471743(0x27c)](_0x58875b),_0x436294(()=>this[_0x471743(0x1e5)][_0x471743(0x29d)](_0x58875b));}[_0x3a3ab5(0x23a)](_0x31a844){var _0x579766=_0x3a3ab5;return this[_0x579766(0x286)][_0x579766(0x27c)](_0x31a844),_0x436294(()=>this[_0x579766(0x286)][_0x579766(0x29d)](_0x31a844));}[_0x3a3ab5(0x25c)](_0x9886e1){var _0x49655d=_0x3a3ab5;return this['_sharedOperations'][_0x49655d(0x256)](_0x9886e1);}['getInitialStates'](_0x19bee7){var _0x2f7cc4=_0x3a3ab5;return Array[_0x2f7cc4(0x20f)](this[_0x2f7cc4(0x286)])['map'](_0xf8756=>_0xf8756(_0x19bee7));}}var De=Object[_0x3a3ab5(0x284)],Z=(_0x41b9fb,_0x523ad5,_0x553623,_0x5615b1)=>{var _0x4d4b13=_0x3a3ab5;for(var _0x1c320c=_0x5615b1>0x1?void 0x0:_0x5615b1?De(_0x523ad5,_0x553623):_0x523ad5,_0x1c0d9d=_0x41b9fb[_0x4d4b13(0x272)]-0x1,_0x3f7a3b;_0x1c0d9d>=0x0;_0x1c0d9d--)(_0x3f7a3b=_0x41b9fb[_0x1c0d9d])&&(_0x1c320c=_0x3f7a3b(_0x1c320c)||_0x1c320c);return _0x1c320c;},f=(_0x3deda5,_0x953a0d)=>(_0x203131,_0x1dae6c)=>_0x953a0d(_0x203131,_0x1dae6c,_0x3deda5);let m=class extends _0x16d957{constructor(_0x5b441d,_0x571e62,_0x536de3){var _0x41474f=_0x3a3ab5;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x5b441d,this[_0x41474f(0x296)]=_0x571e62,this['_collabSessionService']=_0x536de3,this[_0x41474f(0x1ee)]());}async['getLiveShareCoordinator'](_0x222b05){var _0x3586db=_0x3a3ab5;return this[_0x3586db(0x298)]['has'](_0x222b05)||await this[_0x3586db(0x266)](_0x222b05),this['_entities'][_0x3586db(0x229)](_0x222b05);}['_init'](){var _0x435591=_0x3a3ab5;this['_univerInstanceService'][_0x435591(0x288)](_0x448959['UNIVER_SHEET'])[_0x435591(0x215)](_0x594e24(this[_0x435591(0x28a)]))[_0x435591(0x278)](async _0x3b98ed=>{var _0x5a6f5e=_0x435591;const _0x413d05=_0x3b98ed[_0x5a6f5e(0x25e)]();this['_entities'][_0x5a6f5e(0x256)](_0x413d05)||this['_startLiveShareCoordinator'](_0x413d05);}),this[_0x435591(0x26a)][_0x435591(0x23f)](_0x448959[_0x435591(0x228)])['pipe'](_0x594e24(this['dispose$']))[_0x435591(0x278)](_0x6af18=>{var _0x2d0a65=_0x435591;const _0x3d0651=_0x6af18[_0x2d0a65(0x25e)](),_0x3ad74a=this[_0x2d0a65(0x298)][_0x2d0a65(0x229)](_0x3d0651);_0x3ad74a==null||_0x3ad74a[_0x2d0a65(0x24f)]();});}async[_0x3a3ab5(0x266)](_0x2b50b6){var _0x4dc1e2=_0x3a3ab5;const _0x2d6d8b=await this[_0x4dc1e2(0x1f6)][_0x4dc1e2(0x28d)](_0x2b50b6),_0x19947e=this[_0x4dc1e2(0x296)]['createInstance'](C,_0x2b50b6,_0x2d6d8b);return _0x19947e['init'](),this[_0x4dc1e2(0x298)][_0x4dc1e2(0x208)](_0x2b50b6,_0x19947e),_0x19947e;}};m=Z([f(0x0,_0x1d8bf3),f(0x1,_0x31e0bc(_0x4954bf)),f(0x2,_0x31e0bc(_0x31967c))],m);var h=(_0x102292=>(_0x102292[_0x3a3ab5(0x26e)]=_0x3a3ab5(0x1fe),_0x102292[_0x3a3ab5(0x21b)]='idle',_0x102292['FOLLOWING']='following',_0x102292[_0x3a3ab5(0x277)]='not-following',_0x102292['PRESENTING']=_0x3a3ab5(0x289),_0x102292))(h||{});const xe=_0x3a3ab5(0x25b),Le=0xc8;let C=class extends _0x16d957{constructor(_0x31ab3e,_0x7287f5,_0x46160f,_0x5a9428,_0x49b6d0){var _0xfa78f0=_0x3a3ab5;super(),d(this,_0xfa78f0(0x212),new _0x56668a('idle')),d(this,_0xfa78f0(0x204),this[_0xfa78f0(0x212)][_0xfa78f0(0x291)]()),d(this,_0xfa78f0(0x1ee),!0x1),d(this,'_commandDisposable',null),d(this,_0xfa78f0(0x238),null),(this[_0xfa78f0(0x230)]=_0x31ab3e,this[_0xfa78f0(0x22d)]=_0x7287f5,this[_0xfa78f0(0x27f)]=_0x46160f,this[_0xfa78f0(0x247)]=_0x5a9428,this['_commandService']=_0x49b6d0);}get[_0x3a3ab5(0x1f9)](){var _0x37401a=_0x3a3ab5;return this['_status$'][_0x37401a(0x21e)]();}['dispose'](){var _0x219c58=_0x3a3ab5,_0x5dd352;(_0x5dd352=this[_0x219c58(0x29e)])==null||_0x5dd352[_0x219c58(0x24f)](),this[_0x219c58(0x212)][_0x219c58(0x26b)](_0x219c58(0x23c)),this[_0x219c58(0x212)][_0x219c58(0x27e)]();}[_0x3a3ab5(0x29a)](){var _0x13bcca=_0x3a3ab5;this[_0x13bcca(0x1ee)]||(this[_0x13bcca(0x1ee)]=!0x0,this[_0x13bcca(0x22d)]['sessionStatus$'][_0x13bcca(0x215)](_0x594e24(this[_0x13bcca(0x28a)]))['subscribe'](_0xdd2848=>{var _0xf1ca0a=_0x13bcca;switch(_0xdd2848){case _0x1e54cd[_0xf1ca0a(0x26e)]:this[_0xf1ca0a(0x1ec)]();break;case _0x1e54cd[_0xf1ca0a(0x1f5)]:this[_0xf1ca0a(0x29b)]();break;}}),this[_0x13bcca(0x22d)][_0x13bcca(0x23b)][_0x13bcca(0x215)](_0x594e24(this[_0x13bcca(0x28a)]))['subscribe'](_0x18391f=>{var _0x517d56=_0x13bcca;const {eventID:_0x579c1b}=_0x18391f;switch(_0x579c1b){case _0x397dcb[_0x517d56(0x241)]:this[_0x517d56(0x1ff)](_0x18391f);break;case _0x397dcb[_0x517d56(0x239)]:this[_0x517d56(0x1f3)](_0x18391f);break;case _0x397dcb[_0x517d56(0x1e6)]:this[_0x517d56(0x217)]();break;case _0x397dcb[_0x517d56(0x219)]:this[_0x517d56(0x21d)](_0x18391f);break;}}));}[_0x3a3ab5(0x20d)](){var _0x5aeb41=_0x3a3ab5;this['_collabSession'][_0x5aeb41(0x25a)]({'eventID':_0x397dcb[_0x5aeb41(0x283)],'data':{'unitID':this[_0x5aeb41(0x230)],'userID':this['_collabSession'][_0x5aeb41(0x280)]()}},this['_unitID']);}[_0x3a3ab5(0x1f4)](){var _0x2547a8=_0x3a3ab5;this['_status']==='presenting'&&(this[_0x2547a8(0x212)][_0x2547a8(0x26b)](_0x2547a8(0x23c)),this[_0x2547a8(0x22d)]['send']({'eventID':_0x397dcb[_0x2547a8(0x1e6)],'data':{'unitID':this['_unitID']}},this[_0x2547a8(0x230)]));}[_0x3a3ab5(0x224)](){var _0x353f7c=_0x3a3ab5;this[_0x353f7c(0x1f9)]===_0x353f7c(0x1f7)&&(this[_0x353f7c(0x212)]['next'](_0x353f7c(0x214)),this['_startFollowing']());}[_0x3a3ab5(0x1f1)](){var _0x5d3ba3=_0x3a3ab5;this['_status']==='following'&&this[_0x5d3ba3(0x271)]();}[_0x3a3ab5(0x1ff)](_0x590947){var _0x1b8c8b=_0x3a3ab5;const {presenter:_0x55ff53}=_0x590947[_0x1b8c8b(0x21f)],_0xe38f46=this[_0x1b8c8b(0x22d)][_0x1b8c8b(0x280)]();this[_0x1b8c8b(0x238)]=_0x55ff53,_0x55ff53===_0xe38f46?(this['_stopFollowing'](),this[_0x1b8c8b(0x24a)]()):this[_0x1b8c8b(0x1f9)]!==_0x1b8c8b(0x1f7)&&(this[_0x1b8c8b(0x28e)](),this[_0x1b8c8b(0x254)]());}['_fetchOperations'](){var _0x14c6a1=_0x3a3ab5;const _0x56236f={'eventID':_0x397dcb[_0x14c6a1(0x26d)]};this[_0x14c6a1(0x22d)]['send'](_0x56236f,this[_0x14c6a1(0x230)]);}[_0x3a3ab5(0x217)](){var _0x5791cb=_0x3a3ab5;this[_0x5791cb(0x238)]=null,this[_0x5791cb(0x1f9)]!==_0x5791cb(0x289)&&this[_0x5791cb(0x232)]();}[_0x3a3ab5(0x21d)](_0x5dcf0f){var _0x3fe6ef=_0x3a3ab5;if(this[_0x3fe6ef(0x1f9)]==='following'&&this[_0x3fe6ef(0x238)]===_0x5dcf0f[_0x3fe6ef(0x21f)][_0x3fe6ef(0x259)]){const _0x5ae449=_0x500977(_0x5dcf0f['data'])[_0x3fe6ef(0x299)][_0x3fe6ef(0x282)]()[_0x3fe6ef(0x237)](_0x4b2f18=>_0x4b2f18['id']===_0x32057a['id']);if(_0x5ae449){const _0x40e08d=_0x5ae449[_0x3fe6ef(0x24e)]['unitId'],_0x1c573f=_0x5ae449[_0x3fe6ef(0x24e)][_0x3fe6ef(0x240)]['id'];setTimeout(()=>{var _0x19b6f2=_0x3fe6ef;this[_0x19b6f2(0x250)][_0x19b6f2(0x226)](_0x29613a['id'],{'unitId':_0x40e08d,'subUnitId':_0x1c573f},{'fromCollab':!0x0});});}}}[_0x3a3ab5(0x24a)](){var _0x3fa163=_0x3a3ab5;this['_status$'][_0x3fa163(0x26b)]('presenting');const _0x2c80e0=new Map(),_0x6569af=this[_0x3fa163(0x29e)]=new _0x1b6a9c();_0x6569af['add'](_0x436294(()=>{var _0x2fe162=_0x3fa163;_0x2c80e0['forEach'](_0xf35148=>_0xf35148[_0x2fe162(0x27e)]()),_0x2c80e0[_0x2fe162(0x1ea)]();})),_0x6569af[_0x3fa163(0x27c)](this[_0x3fa163(0x250)][_0x3fa163(0x27a)](_0x1931f8=>{var _0x4664c7=_0x3fa163,_0x2532a1;if(_0x1931f8[_0x4664c7(0x24d)]!==_0x2e5ba9['OPERATION']||!this['_liveShareService'][_0x4664c7(0x25c)](_0x1931f8['id']))return;const {id:_0x50ea04}=_0x1931f8;let _0x49d83f;_0x2c80e0[_0x4664c7(0x256)](_0x50ea04)?_0x49d83f=_0x2c80e0['get'](_0x50ea04):(_0x49d83f=new _0xc074b3(),_0x2c80e0[_0x4664c7(0x208)](_0x50ea04,_0x49d83f),_0x49d83f[_0x4664c7(0x215)](_0x4350b5((_0x2532a1=this[_0x4664c7(0x27f)][_0x4664c7(0x1eb)](xe))!=null?_0x2532a1:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4664c7(0x278)](_0x189798=>{var _0x52fcaa=_0x4664c7;this[_0x52fcaa(0x22d)][_0x52fcaa(0x25a)]({'eventID':_0x397dcb[_0x52fcaa(0x239)],'data':{'unitID':this[_0x52fcaa(0x230)],'operations':{[_0x189798['id']]:{'id':_0x189798['id'],'params':JSON[_0x52fcaa(0x24c)](_0x189798[_0x52fcaa(0x24e)])}}}},this['_unitID']);})),_0x49d83f['next'](_0x1931f8);})),this[_0x3fa163(0x247)][_0x3fa163(0x292)](this['_unitID'])['forEach'](_0x5442e1=>this[_0x3fa163(0x22d)]['send']({'eventID':_0x397dcb[_0x3fa163(0x239)],'data':{'unitID':this['_unitID'],'operations':{[_0x5442e1['id']]:{'id':_0x5442e1['id'],'params':JSON[_0x3fa163(0x24c)](_0x5442e1['params'])}}}},this[_0x3fa163(0x230)]));}['_stopPresenting'](){var _0x45c8d5=_0x3a3ab5,_0x3256fa;this['_status$'][_0x45c8d5(0x26b)](_0x45c8d5(0x23c)),(_0x3256fa=this[_0x45c8d5(0x29e)])==null||_0x3256fa[_0x45c8d5(0x24f)](),this[_0x45c8d5(0x29e)]=null;}['_startFollowing'](){var _0x1b5479=_0x3a3ab5,_0xf0cd5f;(_0xf0cd5f=this[_0x1b5479(0x29e)])==null||_0xf0cd5f[_0x1b5479(0x24f)](),this[_0x1b5479(0x212)][_0x1b5479(0x26b)]('following');}['_beIdle'](){var _0x5ef0cb=_0x3a3ab5,_0x24090e;this[_0x5ef0cb(0x212)][_0x5ef0cb(0x26b)](_0x5ef0cb(0x23c)),(_0x24090e=this['_commandDisposable'])==null||_0x24090e['dispose'](),this[_0x5ef0cb(0x29e)]=null;}[_0x3a3ab5(0x271)](){var _0x33fdef=_0x3a3ab5,_0x24110e;this[_0x33fdef(0x212)][_0x33fdef(0x26b)]('not-following'),(_0x24110e=this[_0x33fdef(0x29e)])==null||_0x24110e['dispose']();}['_handleOperation'](_0x152427){var _0x533f00=_0x3a3ab5;if([_0x533f00(0x289),_0x533f00(0x1f7),_0x533f00(0x1fe)][_0x533f00(0x25d)](this[_0x533f00(0x1f9)])||!_0x152427[_0x533f00(0x21f)]['presenter']||_0x152427[_0x533f00(0x21f)][_0x533f00(0x22c)]===this[_0x533f00(0x22d)][_0x533f00(0x280)]())return;this[_0x533f00(0x1f9)]===_0x533f00(0x23c)&&this['_startFollowing']();const _0x1bbebe=_0x152427[_0x533f00(0x21f)]['operations'];Object[_0x533f00(0x263)](_0x1bbebe)['forEach'](_0x53d45e=>{var _0x106819=_0x533f00;this[_0x106819(0x250)]['executeCommand'](_0x53d45e['id'],_0x53d45e[_0x106819(0x24e)]?JSON[_0x106819(0x270)](_0x53d45e[_0x106819(0x24e)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1974c0=_0x3a3ab5,_0x1a1f30;this['_status$'][_0x1974c0(0x26b)]('offline'),(_0x1a1f30=this['_commandDisposable'])==null||_0x1a1f30['dispose']();}['_handleOnline'](){var _0x4a8cdf=_0x3a3ab5;this[_0x4a8cdf(0x212)][_0x4a8cdf(0x26b)](_0x4a8cdf(0x23c)),this[_0x4a8cdf(0x265)]();}};C=Z([f(0x2,_0x20a225),f(0x3,_0x31e0bc(L)),f(0x4,_0xe4004e)],C);function ye(){var _0x2602b2=_0x3a3ab5;const _0x4f6605=_0x22f7b4(m),_0x4b75a9=_0x22f7b4(_0x1d8bf3),_0x14a563=_0x333831(()=>_0x4b75a9[_0x2602b2(0x249)](_0x448959[_0x2602b2(0x228)]),void 0x0,!0x1,[]),[_0x311711,_0x1c1275]=_0x35c6be(null),[_0xe1c506,_0x4b5b2d]=_0x35c6be(h[_0x2602b2(0x21b)]),_0x5208e5=_0x527ac8(null);return _0x307e8c(()=>(_0x14a563&&_0x4f6605[_0x2602b2(0x227)](_0x14a563[_0x2602b2(0x25e)]())[_0x2602b2(0x1e7)](_0x3c2390=>{var _0x22c91e=_0x2602b2;_0x1c1275(_0x3c2390),_0x5208e5[_0x22c91e(0x1e9)]=_0x3c2390[_0x22c91e(0x204)][_0x22c91e(0x278)](_0x135f93=>{_0x4b5b2d(_0x135f93);});}),()=>{var _0xcba6a0=_0x2602b2,_0x3f607e;(_0x3f607e=_0x5208e5['current'])==null||_0x3f607e['unsubscribe'](),_0x5208e5[_0xcba6a0(0x1e9)]=null;}),[_0x14a563,_0x4f6605]),_0x311711?_0x48343b(_0x48a603,{'align':_0x2602b2(0x202),'disabled':_0xe1c506===h[_0x2602b2(0x26e)],'className':_0x2602b2(0x2a0),'overlay':_0x48343b(Re,{'status':_0xe1c506,'coordinator':_0x311711}),'children':_0x48343b(_0x2602b2(0x261),{'className':_0x292a6e(_0x2602b2(0x253),{'univer-cursor-not-allowed':_0xe1c506===h[_0x2602b2(0x26e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xe1c506!==h[_0x2602b2(0x26e)]}),'type':_0x2602b2(0x261),'children':_0x48343b(B,{'className':'univer-size-4'})})}):null;}function Re(_0x523801){var _0x3ddf91=_0x3a3ab5;const {status:_0x46ea59,coordinator:_0x392981}=_0x523801;switch(_0x46ea59){case h[_0x3ddf91(0x21b)]:return _0x48343b(Pe,{'coordinator':_0x392981});case h[_0x3ddf91(0x281)]:return _0x48343b(Ae,{'coordinator':_0x392981});case h[_0x3ddf91(0x277)]:return _0x48343b(Te,{'coordinator':_0x392981});case h[_0x3ddf91(0x26e)]:return _0x48343b(Fe,{});case h[_0x3ddf91(0x260)]:return _0x48343b($e,{'coordinator':_0x392981});default:return null;}}function Pe(_0x1958b7){var _0x444df7=_0x3a3ab5;const {coordinator:_0x3b161c}=_0x1958b7;return _0x17d1e3(_0x564f17,{'children':[_0x48343b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x444df7(0x28c)}),_0x48343b(_0x45739e,{'onClick':()=>_0x3b161c[_0x444df7(0x20d)](),'children':_0x444df7(0x233)})]});}function Ae(_0x3fe351){var _0x3d5330=_0x3a3ab5;const {coordinator:_0x536b50}=_0x3fe351;return _0x17d1e3(_0x564f17,{'children':[_0x48343b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3d5330(0x27d)}),_0x48343b(_0x45739e,{'onClick':()=>_0x536b50['stopFollowing'](),'children':_0x3d5330(0x201)})]});}function Te(_0x18cba6){var _0x40d2b6=_0x3a3ab5;const {coordinator:_0x42a55a}=_0x18cba6;return _0x17d1e3(_0x564f17,{'children':[_0x48343b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x48343b(_0x45739e,{'variant':_0x40d2b6(0x25f),'onClick':()=>_0x42a55a['startFollowing'](),'children':_0x40d2b6(0x1f0)})]});}function $e(_0x459ce4){var _0x3c9e2a=_0x3a3ab5;const {coordinator:_0x2dd625}=_0x459ce4;return _0x17d1e3(_0x564f17,{'children':[_0x48343b('div',{'className':_0x3c9e2a(0x236),'children':_0x3c9e2a(0x207)}),_0x48343b(_0x45739e,{'variant':_0x3c9e2a(0x1ef),'onClick':()=>_0x2dd625['stopPresenting'](),'children':_0x3c9e2a(0x24b)})]});}function Fe(){var _0x3da785=_0x3a3ab5;return _0x48343b(_0x564f17,{'children':_0x3da785(0x274)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x45c1e0,_0x37cc54,_0xd47077,_0x45a740)=>{var _0x2e5ca8=_0x3a3ab5;for(var _0x27164b=_0x45a740>0x1?void 0x0:_0x45a740?He(_0x37cc54,_0xd47077):_0x37cc54,_0x39e300=_0x45c1e0[_0x2e5ca8(0x272)]-0x1,_0x2dc9c8;_0x39e300>=0x0;_0x39e300--)(_0x2dc9c8=_0x45c1e0[_0x39e300])&&(_0x27164b=_0x2dc9c8(_0x27164b)||_0x27164b);return _0x27164b;},T=(_0x985ef6,_0x13f95d)=>(_0x5bbd04,_0x4434de)=>_0x13f95d(_0x5bbd04,_0x4434de,_0x985ef6);let I=class extends _0x455fad{constructor(_0xe26504,_0x3e5707){var _0xef99f=_0x3a3ab5;super(),this[_0xef99f(0x296)]=_0xe26504,this[_0xef99f(0x294)]=_0x3e5707,this[_0xef99f(0x29c)]();}['_mountLiveShare'](){var _0x5eb341=_0x3a3ab5;this[_0x5eb341(0x290)](this['_uiPartsService'][_0x5eb341(0x225)](_0x491a32['HEADER_MENU'],()=>_0xfdf7a5(ye,this['_injector'])));}};I=je([T(0x0,_0x31e0bc(_0x4954bf)),T(0x1,_0x1a74a9)],I);const Ue=_0x3a3ab5(0x26f),$={};var Ve=Object[_0x3a3ab5(0x284)],Me=(_0x1edb73,_0x128dd4,_0x177edb,_0x5e684a)=>{var _0x10c76a=_0x3a3ab5;for(var _0x1620a3=_0x5e684a>0x1?void 0x0:_0x5e684a?Ve(_0x128dd4,_0x177edb):_0x128dd4,_0x3417ab=_0x1edb73[_0x10c76a(0x272)]-0x1,_0xa2df41;_0x3417ab>=0x0;_0x3417ab--)(_0xa2df41=_0x1edb73[_0x3417ab])&&(_0x1620a3=_0xa2df41(_0x1620a3)||_0x1620a3);return _0x1620a3;},ke=(_0x3e46ab,_0x26b1d0)=>(_0x978ea,_0x41c934)=>_0x26b1d0(_0x978ea,_0x41c934,_0x3e46ab);let b=class extends _0x455fad{constructor(_0x583213){var _0x61a4f2=_0x3a3ab5;super(),this[_0x61a4f2(0x247)]=_0x583213,this[_0x61a4f2(0x1ee)]();}[_0x3a3ab5(0x1ee)](){var _0x2bcd32=_0x3a3ab5;[_0x1f7b0d['id'],_0x18a32e['id'],_0x29613a['id']][_0x2bcd32(0x1e8)](_0x2b0cfb=>{var _0x37061a=_0x2bcd32;this['disposeWithMe'](this[_0x37061a(0x247)]['registerSharedOperation'](_0x2b0cfb));});}};b=Me([ke(0x0,_0x31e0bc(L))],b);var Ge=Object[_0x3a3ab5(0x287)],We=Object[_0x3a3ab5(0x284)],Ye=(_0x20f025,_0x3e8010,_0x3d806c)=>_0x3e8010 in _0x20f025?Ge(_0x20f025,_0x3e8010,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d806c}):_0x20f025[_0x3e8010]=_0x3d806c,Be=(_0x37a70b,_0x56f9cb,_0x21a264,_0x52977c)=>{var _0xe51feb=_0x3a3ab5;for(var _0x47f871=_0x52977c>0x1?void 0x0:_0x52977c?We(_0x56f9cb,_0x21a264):_0x56f9cb,_0x9e4f24=_0x37a70b[_0xe51feb(0x272)]-0x1,_0x163104;_0x9e4f24>=0x0;_0x9e4f24--)(_0x163104=_0x37a70b[_0x9e4f24])&&(_0x47f871=_0x163104(_0x47f871)||_0x47f871);return _0x47f871;},F=(_0x2776d2,_0x57c24c)=>(_0x35a774,_0x3778e9)=>_0x57c24c(_0x35a774,_0x3778e9,_0x2776d2),J=(_0x374172,_0x24ee68,_0x3d2041)=>Ye(_0x374172,typeof _0x24ee68!='symbol'?_0x24ee68+'':_0x24ee68,_0x3d2041);const Ze=_0x3a3ab5(0x26c);let O=class extends _0x9a98d2{constructor(_0x41e339=$,_0x21a247,_0x434bf0){var _0x30f619=_0x3a3ab5;super(),this[_0x30f619(0x245)]=_0x41e339,this['_injector']=_0x21a247,this[_0x30f619(0x27f)]=_0x434bf0;const {..._0x4a4811}=_0x19d8b5({},$,this['_config']);this[_0x30f619(0x27f)][_0x30f619(0x267)](Ue,_0x4a4811);}[_0x3a3ab5(0x251)](){var _0x246281=_0x3a3ab5;_0x204a17(this[_0x246281(0x296)],_0x24b91d([[L],[m],[b],[I]],this[_0x246281(0x245)][_0x246281(0x257)])),_0x8d2874(this['_injector'],[[b]]);}[_0x3a3ab5(0x1fa)](){var _0x106169=_0x3a3ab5;_0x8d2874(this[_0x106169(0x296)],[[I]]);}};J(O,_0x3a3ab5(0x24d),_0x448959[_0x3a3ab5(0x276)]),J(O,_0x3a3ab5(0x242),Ze),O=Be([_0x3d5d54(_0x2bd614),F(0x1,_0x31e0bc(_0x4954bf)),F(0x2,_0x20a225)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1e09f3=_0x1c74;function _0x1c74(_0x2a01d2,_0x7ed7ed){var _0x4ffb36=_0x4ffb();return _0x1c74=function(_0x1c7464,_0x54ab05){_0x1c7464=_0x1c7464-0x14f;var _0x1119da=_0x4ffb36[_0x1c7464];return _0x1119da;},_0x1c74(_0x2a01d2,_0x7ed7ed);}(function(_0x4f0680,_0x3eee3a){var _0x2c31a9=_0x1c74,_0x27a3e0=_0x4f0680();while(!![]){try{var _0xb60899=parseInt(_0x2c31a9(0x177))/0x1*(-parseInt(_0x2c31a9(0x1e0))/0x2)+-parseInt(_0x2c31a9(0x17b))/0x3*(parseInt(_0x2c31a9(0x172))/0x4)+parseInt(_0x2c31a9(0x17a))/0x5+parseInt(_0x2c31a9(0x1b9))/0x6+parseInt(_0x2c31a9(0x19f))/0x7+-parseInt(_0x2c31a9(0x163))/0x8*(parseInt(_0x2c31a9(0x1d9))/0x9)+parseInt(_0x2c31a9(0x192))/0xa*(-parseInt(_0x2c31a9(0x1e5))/0xb);if(_0xb60899===_0x3eee3a)break;else _0x27a3e0['push'](_0x27a3e0['shift']());}catch(_0x248952){_0x27a3e0['push'](_0x27a3e0['shift']());}}}(_0x4ffb,0x61009));var q=Object[_0x1e09f3(0x16f)],z=(_0x2723f9,_0x47acab,_0x5b6a0d)=>_0x47acab in _0x2723f9?q(_0x2723f9,_0x47acab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b6a0d}):_0x2723f9[_0x47acab]=_0x5b6a0d,d=(_0x220faf,_0x3695e4,_0x155e8c)=>z(_0x220faf,typeof _0x3695e4!=_0x1e09f3(0x17e)?_0x3695e4+'':_0x3695e4,_0x155e8c);import{Disposable as _0x43a6f8,toDisposable as _0x17b61a,IUniverInstanceService as _0x38da53,Inject as _0x2b27e8,Injector as _0x16f883,IConfigService as _0x21acd3,ICommandService as _0x4d4a89,RxDisposable as _0x21439b,UniverInstanceType as _0x3bbc8d,DisposableCollection as _0x43c633,CommandType as _0x392875,DependentOn as _0x3b743f,Plugin as _0x15dbac,merge as _0x87a402,registerDependencies as _0x59f435,mergeOverrideWithDependencies as _0x34820a,touchDependencies as _0x4f5a38}from'@univerjs/core';import{useDependency as _0x495411,useObservable as _0x34251d,IUIPartsService as _0x1c2e1a,BuiltInUIPart as _0x30f0eb,connectInjector as _0x531d10}from'@univerjs/ui';import{jsx as _0x2d1f5c,jsxs as _0x50d3a8,Fragment as _0x4382c2}from'react/jsx-runtime';import{Dropdown as _0x2d90f6,clsx as _0x3999e9,Button as _0x2aed70}from'@univerjs/design';import{forwardRef as _0x47d6b2,useRef as _0x5a7ca8,createElement as _0xab7d5f,useState as _0x4a82b8,useEffect as _0x56939a}from'react';import{CollaborationEvent as _0x4377ff,parseProtocolChangeset as _0x38fc36}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3bdbae,SessionStatus as _0x1a1364,UniverCollaborationClientPlugin as _0x43cb69}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x32f350,SetWorksheetActiveOperation as _0x13b8af}from'@univerjs/sheets';import{BehaviorSubject as _0x311c7a,Subject as _0x347175}from'rxjs';import{takeUntil as _0x497fd7,throttleTime as _0x4709f4}from'rxjs/operators';import{SetZoomRatioOperation as _0x30cc8e,SetScrollOperation as _0x3bbb7e}from'@univerjs/sheets-ui';var c=function(){var _0x984605=_0x1e09f3;return c=Object[_0x984605(0x165)]||function(_0xdaedcf){var _0x2eac01=_0x984605;for(var _0x10144a,_0x33055e=0x1,_0x12bc7f=arguments[_0x2eac01(0x157)];_0x33055e<_0x12bc7f;_0x33055e++){_0x10144a=arguments[_0x33055e];for(var _0x1e33fb in _0x10144a)Object[_0x2eac01(0x1b4)]['hasOwnProperty']['call'](_0x10144a,_0x1e33fb)&&(_0xdaedcf[_0x1e33fb]=_0x10144a[_0x1e33fb]);}return _0xdaedcf;},c[_0x984605(0x1e6)](this,arguments);},Oe=function(_0x207288,_0x724dbe){var _0x55f0de=_0x1e09f3,_0x31b026={};for(var _0x59988c in _0x207288)Object['prototype'][_0x55f0de(0x168)][_0x55f0de(0x169)](_0x207288,_0x59988c)&&_0x724dbe[_0x55f0de(0x16c)](_0x59988c)<0x0&&(_0x31b026[_0x59988c]=_0x207288[_0x59988c]);if(_0x207288!=null&&typeof Object['getOwnPropertySymbols']==_0x55f0de(0x1dc)){for(var _0x18cca3=0x0,_0x59988c=Object[_0x55f0de(0x1b2)](_0x207288);_0x18cca3<_0x59988c['length'];_0x18cca3++)_0x724dbe[_0x55f0de(0x16c)](_0x59988c[_0x18cca3])<0x0&&Object['prototype'][_0x55f0de(0x185)][_0x55f0de(0x169)](_0x207288,_0x59988c[_0x18cca3])&&(_0x31b026[_0x59988c[_0x18cca3]]=_0x207288[_0x59988c[_0x18cca3]]);}return _0x31b026;},W=_0x47d6b2(function(_0x103513,_0x33c347){var _0x3d6975=_0x1e09f3,_0x2609a0=_0x103513['icon'],_0x2e6ec2=_0x103513['id'],_0xa0336b=_0x103513[_0x3d6975(0x173)],_0x908b6e=_0x103513['extend'],_0x4a8561=Oe(_0x103513,[_0x3d6975(0x1d8),'id',_0x3d6975(0x173),_0x3d6975(0x1dd)]),_0x187557=_0x3d6975(0x1ea)[_0x3d6975(0x164)](_0x2e6ec2,'\x20')[_0x3d6975(0x164)](_0xa0336b||'')[_0x3d6975(0x1cd)](),_0x412668=_0x5a7ca8('_'[_0x3d6975(0x164)](Ne()));return Y(_0x2609a0,''[_0x3d6975(0x164)](_0x2e6ec2),{'defIds':_0x2609a0['defIds'],'idSuffix':_0x412668[_0x3d6975(0x1d4)]},c({'ref':_0x33c347,'className':_0x187557},_0x4a8561),_0x908b6e);});function Y(_0x685da0,_0x4156d6,_0x3c3b8e,_0x522fc4,_0x38dbe3){var _0x3a6b99=_0x1e09f3;return _0xab7d5f(_0x685da0[_0x3a6b99(0x1f5)],c(c({'key':_0x4156d6},Ee(_0x685da0,_0x3c3b8e,_0x38dbe3)),_0x522fc4),(we(_0x685da0,_0x3c3b8e)[_0x3a6b99(0x1cf)]||[])[_0x3a6b99(0x1a7)](function(_0xc16717,_0x8de244){var _0x56c1b5=_0x3a6b99;return Y(_0xc16717,''[_0x56c1b5(0x164)](_0x4156d6,'-')[_0x56c1b5(0x164)](_0x685da0[_0x56c1b5(0x1f5)],'-')[_0x56c1b5(0x164)](_0x8de244),_0x3c3b8e,void 0x0,_0x38dbe3);}));}function Ee(_0x380316,_0x4550cc,_0x2d4347){var _0x3b5972=_0x1e09f3,_0x46385d=c({},_0x380316[_0x3b5972(0x19b)]);_0x2d4347!=null&&_0x2d4347[_0x3b5972(0x1fe)]&&_0x46385d['fill']==='colorChannel1'&&(_0x46385d[_0x3b5972(0x1b1)]=_0x2d4347[_0x3b5972(0x1fe)]),_0x380316[_0x3b5972(0x1f5)]===_0x3b5972(0x1af)&&_0x46385d['id']&&(_0x46385d['id']=_0x46385d['id']+_0x4550cc['idSuffix']),Object[_0x3b5972(0x1fb)](_0x46385d)['forEach'](function(_0x2aed62){var _0x58bee0=_0x3b5972,_0x5c6b4d=_0x2aed62[0x0],_0xc47e1f=_0x2aed62[0x1];_0x5c6b4d===_0x58bee0(0x1af)&&typeof _0xc47e1f==_0x58bee0(0x1bc)&&(_0x46385d[_0x5c6b4d]=_0xc47e1f[_0x58bee0(0x1eb)](/url\(#(.*)\)/,_0x58bee0(0x1bf)[_0x58bee0(0x164)](_0x4550cc[_0x58bee0(0x15a)],')')));});var _0x46974b=_0x4550cc[_0x3b5972(0x1b0)];return!_0x46974b||_0x46974b[_0x3b5972(0x157)]===0x0||(_0x380316[_0x3b5972(0x1f5)]===_0x3b5972(0x1f0)&&_0x46385d[_0x3b5972(0x1b6)]&&(_0x46385d[_0x3b5972(0x1b6)]=_0x46385d[_0x3b5972(0x1b6)]+_0x4550cc[_0x3b5972(0x15a)]),Object[_0x3b5972(0x1fb)](_0x46385d)['forEach'](function(_0x27696e){var _0x1e4221=_0x3b5972,_0x44930c=_0x27696e[0x0],_0x8f7b0=_0x27696e[0x1];typeof _0x8f7b0==_0x1e4221(0x1bc)&&(_0x46385d[_0x44930c]=_0x8f7b0[_0x1e4221(0x1eb)](/url\(#(.*)\)/,_0x1e4221(0x1bf)['concat'](_0x4550cc[_0x1e4221(0x15a)],')')));})),_0x46385d;}function we(_0x449772,_0x19fb56){var _0x588481=_0x1e09f3,_0x2f61db,_0x48ee5e=_0x19fb56[_0x588481(0x1b0)];return!_0x48ee5e||_0x48ee5e['length']===0x0?_0x449772:_0x449772['tag']===_0x588481(0x1cb)&&(!((_0x2f61db=_0x449772[_0x588481(0x1cf)])===null||_0x2f61db===void 0x0)&&_0x2f61db[_0x588481(0x157)])?c(c({},_0x449772),{'children':_0x449772['children'][_0x588481(0x1a7)](function(_0x286d72){var _0x85367=_0x588481;return typeof _0x286d72[_0x85367(0x19b)]['id']==_0x85367(0x1bc)&&_0x48ee5e&&_0x48ee5e[_0x85367(0x1f3)](_0x286d72[_0x85367(0x19b)]['id'])?c(c({},_0x286d72),{'attrs':c(c({},_0x286d72[_0x85367(0x19b)]),{'id':_0x286d72[_0x85367(0x19b)]['id']+_0x19fb56['idSuffix']})}):_0x286d72;})}):_0x449772;}function Ne(){var _0x59c25a=_0x1e09f3;return Math[_0x59c25a(0x1c2)]()[_0x59c25a(0x181)](0x24)[_0x59c25a(0x1ec)](0x2,0x8);}W[_0x1e09f3(0x1ae)]='UniverIcon';var Ce={'tag':_0x1e09f3(0x1e1),'attrs':{'xmlns':_0x1e09f3(0x1bb),'fill':_0x1e09f3(0x155),'viewBox':'0\x200\x2017\x2017','width':_0x1e09f3(0x194),'height':_0x1e09f3(0x194)},'children':[{'tag':_0x1e09f3(0x1a9),'attrs':{'fill':_0x1e09f3(0x179),'d':_0x1e09f3(0x1c7)}},{'tag':'path','attrs':{'fill':_0x1e09f3(0x179),'d':_0x1e09f3(0x15d),'fillRule':_0x1e09f3(0x1a5),'clipRule':_0x1e09f3(0x1a5)}}]},B=_0x47d6b2(function(_0x311c43,_0x5a94f2){var _0x59217d=_0x1e09f3;return _0xab7d5f(W,Object[_0x59217d(0x165)]({},_0x311c43,{'id':_0x59217d(0x153),'ref':_0x5a94f2,'icon':Ce}));});B[_0x1e09f3(0x1ae)]=_0x1e09f3(0x154);class L extends _0x43a6f8{constructor(){var _0x42a8db=_0x1e09f3;super(...arguments),d(this,_0x42a8db(0x161),new Set()),d(this,_0x42a8db(0x1b7),new Set());}[_0x1e09f3(0x1c9)](_0x4ba3c9){var _0x184023=_0x1e09f3;return this[_0x184023(0x161)][_0x184023(0x17f)](_0x4ba3c9),_0x17b61a(()=>this['_sharedOperations'][_0x184023(0x196)](_0x4ba3c9));}['registerInitialStateReporter'](_0x43f8da){var _0x1e4e12=_0x1e09f3;return this[_0x1e4e12(0x1b7)][_0x1e4e12(0x17f)](_0x43f8da),_0x17b61a(()=>this[_0x1e4e12(0x1b7)][_0x1e4e12(0x196)](_0x43f8da));}[_0x1e09f3(0x184)](_0x66595a){var _0x565bb2=_0x1e09f3;return this[_0x565bb2(0x161)][_0x565bb2(0x15c)](_0x66595a);}['getInitialStates'](_0xf60d12){var _0x13d103=_0x1e09f3;return Array['from'](this['_reporters'])[_0x13d103(0x1a7)](_0x181830=>_0x181830(_0xf60d12));}}var De=Object[_0x1e09f3(0x1d2)],Z=(_0x54af65,_0x237928,_0xbb1ebe,_0x356597)=>{var _0x5c87df=_0x1e09f3;for(var _0x2b0c66=_0x356597>0x1?void 0x0:_0x356597?De(_0x237928,_0xbb1ebe):_0x237928,_0x48af3b=_0x54af65[_0x5c87df(0x157)]-0x1,_0x3cc741;_0x48af3b>=0x0;_0x48af3b--)(_0x3cc741=_0x54af65[_0x48af3b])&&(_0x2b0c66=_0x3cc741(_0x2b0c66)||_0x2b0c66);return _0x2b0c66;},f=(_0x333c9d,_0x3343a7)=>(_0x38d874,_0x27dbf8)=>_0x3343a7(_0x38d874,_0x27dbf8,_0x333c9d);let m=class extends _0x21439b{constructor(_0x48b57a,_0x2f9c3a,_0x24d329){var _0x458f4d=_0x1e09f3;super(),d(this,_0x458f4d(0x1f9),new Map()),(this[_0x458f4d(0x1e2)]=_0x48b57a,this[_0x458f4d(0x1c4)]=_0x2f9c3a,this[_0x458f4d(0x18e)]=_0x24d329,this['_init']());}async[_0x1e09f3(0x1b8)](_0xe9f056){var _0x4a35c2=_0x1e09f3;return this[_0x4a35c2(0x1f9)][_0x4a35c2(0x15c)](_0xe9f056)||await this[_0x4a35c2(0x1f2)](_0xe9f056),this[_0x4a35c2(0x1f9)][_0x4a35c2(0x1f7)](_0xe9f056);}[_0x1e09f3(0x1de)](){var _0x856935=_0x1e09f3;this[_0x856935(0x1e2)]['getTypeOfUnitAdded$'](_0x3bbc8d[_0x856935(0x17c)])['pipe'](_0x497fd7(this['dispose$']))['subscribe'](async _0x316b4e=>{var _0x562831=_0x856935;const _0xec2a82=_0x316b4e['getUnitId']();this['_entities'][_0x562831(0x15c)](_0xec2a82)||this[_0x562831(0x1f2)](_0xec2a82);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x3bbc8d[_0x856935(0x17c)])['pipe'](_0x497fd7(this[_0x856935(0x1f6)]))[_0x856935(0x18c)](_0x1bcf77=>{var _0x4ef02a=_0x856935;const _0x5c3e62=_0x1bcf77[_0x4ef02a(0x1a4)](),_0x4bd5de=this[_0x4ef02a(0x1f9)][_0x4ef02a(0x1f7)](_0x5c3e62);_0x4bd5de==null||_0x4bd5de[_0x4ef02a(0x1c5)]();});}async[_0x1e09f3(0x1f2)](_0x1ddcb2){var _0x492895=_0x1e09f3;const _0x3a7e4a=await this[_0x492895(0x18e)][_0x492895(0x191)](_0x1ddcb2),_0x2cefef=this['_injector'][_0x492895(0x1ff)](C,_0x1ddcb2,_0x3a7e4a);return _0x2cefef[_0x492895(0x17d)](),this[_0x492895(0x1f9)][_0x492895(0x166)](_0x1ddcb2,_0x2cefef),_0x2cefef;}};m=Z([f(0x0,_0x38da53),f(0x1,_0x2b27e8(_0x16f883)),f(0x2,_0x2b27e8(_0x3bdbae))],m);var h=(_0x41d5fa=>(_0x41d5fa[_0x1e09f3(0x1da)]=_0x1e09f3(0x19a),_0x41d5fa[_0x1e09f3(0x1d0)]=_0x1e09f3(0x182),_0x41d5fa[_0x1e09f3(0x1ad)]=_0x1e09f3(0x1a3),_0x41d5fa[_0x1e09f3(0x170)]=_0x1e09f3(0x188),_0x41d5fa[_0x1e09f3(0x201)]=_0x1e09f3(0x16a),_0x41d5fa))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x21439b{constructor(_0x4ca3ad,_0x22f099,_0x4b6b74,_0x4715f6,_0x36c2ca){var _0x464a60=_0x1e09f3;super(),d(this,_0x464a60(0x1fd),new _0x311c7a('idle')),d(this,_0x464a60(0x1ca),this[_0x464a60(0x1fd)][_0x464a60(0x189)]()),d(this,_0x464a60(0x1de),!0x1),d(this,_0x464a60(0x193),null),d(this,_0x464a60(0x18f),null),(this[_0x464a60(0x198)]=_0x4ca3ad,this[_0x464a60(0x1c0)]=_0x22f099,this['_configService']=_0x4b6b74,this[_0x464a60(0x202)]=_0x4715f6,this[_0x464a60(0x152)]=_0x36c2ca);}get[_0x1e09f3(0x1be)](){var _0x42f9ea=_0x1e09f3;return this[_0x42f9ea(0x1fd)][_0x42f9ea(0x1e4)]();}[_0x1e09f3(0x1c5)](){var _0x18653e=_0x1e09f3,_0x2e9ecd;(_0x2e9ecd=this['_commandDisposable'])==null||_0x2e9ecd[_0x18653e(0x1c5)](),this[_0x18653e(0x1fd)][_0x18653e(0x1d6)](_0x18653e(0x182)),this[_0x18653e(0x1fd)][_0x18653e(0x1a1)]();}['init'](){var _0x543855=_0x1e09f3;this[_0x543855(0x1de)]||(this[_0x543855(0x1de)]=!0x0,this[_0x543855(0x1c0)][_0x543855(0x150)][_0x543855(0x1c8)](_0x497fd7(this[_0x543855(0x1f6)]))[_0x543855(0x18c)](_0x3293e6=>{var _0x10a499=_0x543855;switch(_0x3293e6){case _0x1a1364[_0x10a499(0x1da)]:this[_0x10a499(0x176)]();break;case _0x1a1364['ONLINE']:this[_0x10a499(0x200)]();break;}}),this[_0x543855(0x1c0)]['event$'][_0x543855(0x1c8)](_0x497fd7(this[_0x543855(0x1f6)]))['subscribe'](_0x48764a=>{var _0x3e01d3=_0x543855;const {eventID:_0x3df5d9}=_0x48764a;switch(_0x3df5d9){case _0x4377ff[_0x3e01d3(0x156)]:this[_0x3e01d3(0x1ef)](_0x48764a);break;case _0x4377ff[_0x3e01d3(0x1cc)]:this[_0x3e01d3(0x19e)](_0x48764a);break;case _0x4377ff[_0x3e01d3(0x1ab)]:this[_0x3e01d3(0x1a0)]();break;case _0x4377ff['NEW_CHANGESETS']:this[_0x3e01d3(0x1d1)](_0x48764a);break;}}));}[_0x1e09f3(0x1a6)](){var _0x5d130a=_0x1e09f3;this[_0x5d130a(0x1c0)][_0x5d130a(0x158)]({'eventID':_0x4377ff[_0x5d130a(0x174)],'data':{'unitID':this[_0x5d130a(0x198)],'userID':this[_0x5d130a(0x1c0)][_0x5d130a(0x1e3)]()}},this[_0x5d130a(0x198)]);}[_0x1e09f3(0x1f1)](){var _0x1bc5d0=_0x1e09f3;this[_0x1bc5d0(0x1be)]===_0x1bc5d0(0x16a)&&(this[_0x1bc5d0(0x1fd)][_0x1bc5d0(0x1d6)]('idle'),this['_collabSession'][_0x1bc5d0(0x158)]({'eventID':_0x4377ff[_0x1bc5d0(0x1ab)],'data':{'unitID':this[_0x1bc5d0(0x198)]}},this[_0x1bc5d0(0x198)]));}[_0x1e09f3(0x1c6)](){var _0x544c25=_0x1e09f3;this['_status']===_0x544c25(0x188)&&(this[_0x544c25(0x1fd)]['next'](_0x544c25(0x1a3)),this[_0x544c25(0x1ee)]());}['stopFollowing'](){var _0x5a4cb1=_0x1e09f3;this[_0x5a4cb1(0x1be)]===_0x5a4cb1(0x1a3)&&this[_0x5a4cb1(0x1f8)]();}[_0x1e09f3(0x1ef)](_0x3c98b8){var _0x1b7e58=_0x1e09f3;const {presenter:_0x55879f}=_0x3c98b8[_0x1b7e58(0x1b3)],_0x9782c7=this[_0x1b7e58(0x1c0)][_0x1b7e58(0x1e3)]();this[_0x1b7e58(0x18f)]=_0x55879f,_0x55879f===_0x9782c7?(this[_0x1b7e58(0x1f8)](),this[_0x1b7e58(0x1d5)]()):this[_0x1b7e58(0x1be)]!==_0x1b7e58(0x188)&&(this[_0x1b7e58(0x190)](),this['_startFollowing']());}[_0x1e09f3(0x16e)](){var _0x1c965b=_0x1e09f3;const _0x53d437={'eventID':_0x4377ff[_0x1c965b(0x1e9)]};this[_0x1c965b(0x1c0)]['send'](_0x53d437,this[_0x1c965b(0x198)]);}[_0x1e09f3(0x1a0)](){var _0x1c2cef=_0x1e09f3;this['_presenter']=null,this[_0x1c2cef(0x1be)]!==_0x1c2cef(0x16a)&&this[_0x1c2cef(0x1aa)]();}[_0x1e09f3(0x1d1)](_0x1c6acc){var _0x19c23f=_0x1e09f3;if(this['_status']===_0x19c23f(0x1a3)&&this[_0x19c23f(0x18f)]===_0x1c6acc[_0x19c23f(0x1b3)]['memberID']){const _0x4f6bf7=_0x38fc36(_0x1c6acc[_0x19c23f(0x1b3)])[_0x19c23f(0x186)][_0x19c23f(0x159)]()[_0x19c23f(0x1d7)](_0x2310f6=>_0x2310f6['id']===_0x32f350['id']);if(_0x4f6bf7){const _0x3df891=_0x4f6bf7[_0x19c23f(0x203)]['unitId'],_0x444137=_0x4f6bf7[_0x19c23f(0x203)][_0x19c23f(0x171)]['id'];setTimeout(()=>{var _0x4f5fc4=_0x19c23f;this['_commandService'][_0x4f5fc4(0x16b)](_0x13b8af['id'],{'unitId':_0x3df891,'subUnitId':_0x444137},{'fromCollab':!0x0});});}}}[_0x1e09f3(0x1d5)](){var _0x5788c1=_0x1e09f3;this[_0x5788c1(0x1fd)]['next'](_0x5788c1(0x16a));const _0x3340c5=new Map(),_0x4a9186=this[_0x5788c1(0x193)]=new _0x43c633();_0x4a9186['add'](_0x17b61a(()=>{var _0x18d8e5=_0x5788c1;_0x3340c5[_0x18d8e5(0x183)](_0x557311=>_0x557311[_0x18d8e5(0x1a1)]()),_0x3340c5[_0x18d8e5(0x1db)]();})),_0x4a9186[_0x5788c1(0x17f)](this[_0x5788c1(0x152)]['onCommandExecuted'](_0x38e82b=>{var _0x7391c=_0x5788c1,_0x1293a9;if(_0x38e82b[_0x7391c(0x1a8)]!==_0x392875[_0x7391c(0x178)]||!this[_0x7391c(0x202)][_0x7391c(0x184)](_0x38e82b['id']))return;const {id:_0x3f3427}=_0x38e82b;let _0x1718c8;_0x3340c5[_0x7391c(0x15c)](_0x3f3427)?_0x1718c8=_0x3340c5[_0x7391c(0x1f7)](_0x3f3427):(_0x1718c8=new _0x347175(),_0x3340c5[_0x7391c(0x166)](_0x3f3427,_0x1718c8),_0x1718c8[_0x7391c(0x1c8)](_0x4709f4((_0x1293a9=this['_configService'][_0x7391c(0x19d)](xe))!=null?_0x1293a9:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2389cb=>{var _0x556cfb=_0x7391c;this[_0x556cfb(0x1c0)][_0x556cfb(0x158)]({'eventID':_0x4377ff['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x556cfb(0x198)],'operations':{[_0x2389cb['id']]:{'id':_0x2389cb['id'],'params':JSON[_0x556cfb(0x15b)](_0x2389cb[_0x556cfb(0x203)])}}}},this['_unitID']);})),_0x1718c8[_0x7391c(0x1d6)](_0x38e82b);})),this[_0x5788c1(0x202)][_0x5788c1(0x1d3)](this[_0x5788c1(0x198)])['forEach'](_0x26ee09=>this[_0x5788c1(0x1c0)][_0x5788c1(0x158)]({'eventID':_0x4377ff[_0x5788c1(0x1cc)],'data':{'unitID':this[_0x5788c1(0x198)],'operations':{[_0x26ee09['id']]:{'id':_0x26ee09['id'],'params':JSON[_0x5788c1(0x15b)](_0x26ee09[_0x5788c1(0x203)])}}}},this[_0x5788c1(0x198)]));}[_0x1e09f3(0x190)](){var _0x4e1aa1=_0x1e09f3,_0x4bb65a;this[_0x4e1aa1(0x1fd)][_0x4e1aa1(0x1d6)]('idle'),(_0x4bb65a=this['_commandDisposable'])==null||_0x4bb65a[_0x4e1aa1(0x1c5)](),this['_commandDisposable']=null;}[_0x1e09f3(0x1ee)](){var _0x378d55=_0x1e09f3,_0x25c1b9;(_0x25c1b9=this[_0x378d55(0x193)])==null||_0x25c1b9[_0x378d55(0x1c5)](),this['_status$'][_0x378d55(0x1d6)](_0x378d55(0x1a3));}[_0x1e09f3(0x1aa)](){var _0x442f5e=_0x1e09f3,_0x5b2867;this['_status$'][_0x442f5e(0x1d6)](_0x442f5e(0x182)),(_0x5b2867=this[_0x442f5e(0x193)])==null||_0x5b2867[_0x442f5e(0x1c5)](),this['_commandDisposable']=null;}[_0x1e09f3(0x1f8)](){var _0x32d51f=_0x1e09f3,_0x4a37dc;this[_0x32d51f(0x1fd)][_0x32d51f(0x1d6)](_0x32d51f(0x188)),(_0x4a37dc=this[_0x32d51f(0x193)])==null||_0x4a37dc[_0x32d51f(0x1c5)]();}[_0x1e09f3(0x19e)](_0x26e889){var _0x56a008=_0x1e09f3;if([_0x56a008(0x16a),_0x56a008(0x188),_0x56a008(0x19a)][_0x56a008(0x1f3)](this[_0x56a008(0x1be)])||!_0x26e889[_0x56a008(0x1b3)][_0x56a008(0x187)]||_0x26e889[_0x56a008(0x1b3)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x56a008(0x1be)]==='idle'&&this[_0x56a008(0x1ee)]();const _0x55e060=_0x26e889[_0x56a008(0x1b3)][_0x56a008(0x151)];Object[_0x56a008(0x14f)](_0x55e060)[_0x56a008(0x183)](_0x1d1e88=>{var _0x457309=_0x56a008;this['_commandService'][_0x457309(0x16b)](_0x1d1e88['id'],_0x1d1e88[_0x457309(0x203)]?JSON[_0x457309(0x1a2)](_0x1d1e88['params']):null,{'fromCollab':!0x0});});}[_0x1e09f3(0x176)](){var _0x3589f7=_0x1e09f3,_0x1f5cfe;this[_0x3589f7(0x1fd)][_0x3589f7(0x1d6)](_0x3589f7(0x19a)),(_0x1f5cfe=this[_0x3589f7(0x193)])==null||_0x1f5cfe[_0x3589f7(0x1c5)]();}[_0x1e09f3(0x200)](){var _0x54c9ed=_0x1e09f3;this[_0x54c9ed(0x1fd)][_0x54c9ed(0x1d6)]('idle'),this[_0x54c9ed(0x16e)]();}};C=Z([f(0x2,_0x21acd3),f(0x3,_0x2b27e8(L)),f(0x4,_0x4d4a89)],C);function ye(){var _0x4dddff=_0x1e09f3;const _0x1c7620=_0x495411(m),_0x49bd45=_0x495411(_0x38da53),_0x301808=_0x34251d(()=>_0x49bd45['getCurrentTypeOfUnit$'](_0x3bbc8d[_0x4dddff(0x17c)]),void 0x0,!0x1,[]),[_0x55fbd3,_0x1b9344]=_0x4a82b8(null),[_0x5ed441,_0x3ea0df]=_0x4a82b8(h[_0x4dddff(0x1d0)]),_0x1aebde=_0x5a7ca8(null);return _0x56939a(()=>(_0x301808&&_0x1c7620[_0x4dddff(0x1b8)](_0x301808[_0x4dddff(0x1a4)]())[_0x4dddff(0x160)](_0x538df5=>{var _0x3f5998=_0x4dddff;_0x1b9344(_0x538df5),_0x1aebde['current']=_0x538df5[_0x3f5998(0x1ca)][_0x3f5998(0x18c)](_0x2d3234=>{_0x3ea0df(_0x2d3234);});}),()=>{var _0x8d6414=_0x4dddff,_0xd4bdc0;(_0xd4bdc0=_0x1aebde['current'])==null||_0xd4bdc0[_0x8d6414(0x1c3)](),_0x1aebde[_0x8d6414(0x1d4)]=null;}),[_0x301808,_0x1c7620]),_0x55fbd3?_0x2d1f5c(_0x2d90f6,{'align':_0x4dddff(0x18b),'disabled':_0x5ed441===h[_0x4dddff(0x1da)],'className':_0x4dddff(0x175),'overlay':_0x2d1f5c(Re,{'status':_0x5ed441,'coordinator':_0x55fbd3}),'children':_0x2d1f5c(_0x4dddff(0x1fc),{'className':_0x3999e9('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5ed441===h[_0x4dddff(0x1da)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5ed441!==h[_0x4dddff(0x1da)]}),'type':_0x4dddff(0x1fc),'children':_0x2d1f5c(B,{'className':'univer-size-4'})})}):null;}function Re(_0xfaf414){var _0x27d70c=_0x1e09f3;const {status:_0xefb975,coordinator:_0x32e8f3}=_0xfaf414;switch(_0xefb975){case h[_0x27d70c(0x1d0)]:return _0x2d1f5c(Pe,{'coordinator':_0x32e8f3});case h[_0x27d70c(0x1ad)]:return _0x2d1f5c(Ae,{'coordinator':_0x32e8f3});case h[_0x27d70c(0x170)]:return _0x2d1f5c(Te,{'coordinator':_0x32e8f3});case h[_0x27d70c(0x1da)]:return _0x2d1f5c(Fe,{});case h[_0x27d70c(0x201)]:return _0x2d1f5c($e,{'coordinator':_0x32e8f3});default:return null;}}function Pe(_0x195dd0){var _0x360525=_0x1e09f3;const {coordinator:_0x2d6ef5}=_0x195dd0;return _0x50d3a8(_0x4382c2,{'children':[_0x2d1f5c(_0x360525(0x1ba),{'className':_0x360525(0x1bd),'children':_0x360525(0x195)}),_0x2d1f5c(_0x2aed70,{'onClick':()=>_0x2d6ef5[_0x360525(0x1a6)](),'children':_0x360525(0x167)})]});}function Ae(_0xf76618){var _0x24d564=_0x1e09f3;const {coordinator:_0x39c7d9}=_0xf76618;return _0x50d3a8(_0x4382c2,{'children':[_0x2d1f5c(_0x24d564(0x1ba),{'className':_0x24d564(0x1bd),'children':_0x24d564(0x1df)}),_0x2d1f5c(_0x2aed70,{'onClick':()=>_0x39c7d9[_0x24d564(0x19c)](),'children':'Stop\x20following'})]});}function Te(_0x3cce21){var _0x335eb1=_0x1e09f3;const {coordinator:_0x4792c0}=_0x3cce21;return _0x50d3a8(_0x4382c2,{'children':[_0x2d1f5c(_0x335eb1(0x1ba),{'className':_0x335eb1(0x1bd),'children':_0x335eb1(0x1f4)}),_0x2d1f5c(_0x2aed70,{'variant':'text','onClick':()=>_0x4792c0[_0x335eb1(0x1c6)](),'children':_0x335eb1(0x180)})]});}function $e(_0x3bfc88){var _0xd34caa=_0x1e09f3;const {coordinator:_0x27e0c8}=_0x3bfc88;return _0x50d3a8(_0x4382c2,{'children':[_0x2d1f5c('div',{'className':_0xd34caa(0x1bd),'children':_0xd34caa(0x1ce)}),_0x2d1f5c(_0x2aed70,{'variant':_0xd34caa(0x1e7),'onClick':()=>_0x27e0c8[_0xd34caa(0x1f1)](),'children':'Stop\x20presenting'})]});}function Fe(){return _0x2d1f5c(_0x4382c2,{'children':'You\x27are\x20offline.'});}var He=Object['getOwnPropertyDescriptor'],je=(_0x5dda6f,_0x4d6160,_0x3bf51d,_0xaf76bd)=>{var _0x5f57c6=_0x1e09f3;for(var _0x2f9ba4=_0xaf76bd>0x1?void 0x0:_0xaf76bd?He(_0x4d6160,_0x3bf51d):_0x4d6160,_0x47a5bb=_0x5dda6f[_0x5f57c6(0x157)]-0x1,_0x315328;_0x47a5bb>=0x0;_0x47a5bb--)(_0x315328=_0x5dda6f[_0x47a5bb])&&(_0x2f9ba4=_0x315328(_0x2f9ba4)||_0x2f9ba4);return _0x2f9ba4;},T=(_0x43f2c3,_0xe4c9e1)=>(_0x58f5d2,_0x5c5c9b)=>_0xe4c9e1(_0x58f5d2,_0x5c5c9b,_0x43f2c3);let I=class extends _0x43a6f8{constructor(_0x56e1b7,_0x3e2c1a){var _0x4f404e=_0x1e09f3;super(),this['_injector']=_0x56e1b7,this['_uiPartsService']=_0x3e2c1a,this[_0x4f404e(0x1ac)]();}['_mountLiveShare'](){var _0x3c9c52=_0x1e09f3;this[_0x3c9c52(0x1b5)](this[_0x3c9c52(0x15e)][_0x3c9c52(0x15f)](_0x30f0eb[_0x3c9c52(0x162)],()=>_0x531d10(ye,this['_injector'])));}};I=je([T(0x0,_0x2b27e8(_0x16f883)),T(0x1,_0x1c2e1a)],I);const Ue=_0x1e09f3(0x1e8),$={};function _0x4ffb(){var _0x2e7e54=['toString','idle','forEach','shouldShareOperation','propertyIsEnumerable','mutations','presenter','not-following','asObservable','onStarting','end','subscribe','pluginName','_collabSessionService','_presenter','_stopPresenting','requireSession','10vRoFXO','_commandDisposable','1em','Present\x20this\x20document','delete','override','_unitID','setConfig','offline','attrs','stopFollowing','getConfig','_handleOperation','5148787DpSjRd','_handleTerminate','complete','parse','following','getUnitId','evenodd','tryStartPresenting','map','type','path','_beIdle','LIVESHARE_TERMINATE','_mountLiveShare','FOLLOWING','displayName','mask','defIds','fill','getOwnPropertySymbols','data','prototype','disposeWithMe','xlink:href','_reporters','getLiveShareCoordinator','4131324cMExoD','div','http://www.w3.org/2000/svg','string','univer-mb-3\x20univer-w-full\x20univer-text-sm','_status','url(#$1','_collabSession','_config','random','unsubscribe','_injector','dispose','startFollowing','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','pipe','registerSharedOperation','status$','defs','LIVESHARE_OPERATION','trim','You\x27re\x20presenting\x20the\x20document','children','IDLE','_handleNewChangeSets','getOwnPropertyDescriptor','getInitialStates','current','_startPresenting','next','find','icon','657wQvLdb','OFFLINE','clear','function','extend','_init','You\x27re\x20following\x20the\x20presenter','2whaWRO','svg','_univerInstanceService','getMemberID','getValue','6658773JnTwbu','apply','default','live-share.config','LIVESHARE_FETCH_OPERATIONS','univerjs-icon\x20univerjs-icon-','replace','substring','_configService','_startFollowing','_handleNewHost','use','stopPresenting','_startLiveShareCoordinator','includes','You\x27re\x20not\x20following\x20the\x20presenter','tag','dispose$','get','_stopFollowing','_entities','UNIVER_LIVE_SHARE_PLUGIN','entries','button','_status$','colorChannel1','createInstance','_handleOnline','PRESENTING','_liveShareService','params','values','sessionStatus$','operations','_commandService','live-share-icon','LiveShareIcon','none','LIVESHARE_NEW_HOST','length','send','reverse','idSuffix','stringify','has','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','_uiPartsService','registerComponent','then','_sharedOperations','HEADER_MENU','20928dCTDSa','concat','assign','set','Start','hasOwnProperty','call','presenting','executeCommand','indexOf','onRendered','_fetchOperations','defineProperty','NOT_FOLLOWING','sheet','689964OVzEDY','className','LIVESHARE_REQUEST_HOST','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','_handleOffline','403346SYyPqV','OPERATION','currentColor','1726870wyGuls','3YoeiIu','UNIVER_SHEET','init','symbol','add','Start\x20following'];_0x4ffb=function(){return _0x2e7e54;};return _0x4ffb();}var Ve=Object[_0x1e09f3(0x1d2)],Me=(_0x440759,_0x1f4ba1,_0x54909f,_0x560e6e)=>{var _0x59be6a=_0x1e09f3;for(var _0x5f4809=_0x560e6e>0x1?void 0x0:_0x560e6e?Ve(_0x1f4ba1,_0x54909f):_0x1f4ba1,_0x3554bf=_0x440759[_0x59be6a(0x157)]-0x1,_0x23290a;_0x3554bf>=0x0;_0x3554bf--)(_0x23290a=_0x440759[_0x3554bf])&&(_0x5f4809=_0x23290a(_0x5f4809)||_0x5f4809);return _0x5f4809;},ke=(_0xef5370,_0x9098d2)=>(_0x527052,_0x2c543a)=>_0x9098d2(_0x527052,_0x2c543a,_0xef5370);let b=class extends _0x43a6f8{constructor(_0x326142){var _0x4c679a=_0x1e09f3;super(),this[_0x4c679a(0x202)]=_0x326142,this['_init']();}[_0x1e09f3(0x1de)](){[_0x30cc8e['id'],_0x3bbb7e['id'],_0x13b8af['id']]['forEach'](_0x4c30cd=>{var _0x42ee74=_0x1c74;this[_0x42ee74(0x1b5)](this[_0x42ee74(0x202)][_0x42ee74(0x1c9)](_0x4c30cd));});}};b=Me([ke(0x0,_0x2b27e8(L))],b);var Ge=Object[_0x1e09f3(0x16f)],We=Object[_0x1e09f3(0x1d2)],Ye=(_0x5a9c1,_0x5bedf8,_0x2f8351)=>_0x5bedf8 in _0x5a9c1?Ge(_0x5a9c1,_0x5bedf8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f8351}):_0x5a9c1[_0x5bedf8]=_0x2f8351,Be=(_0x84de0e,_0x42f054,_0x175443,_0x14a7de)=>{var _0x5c1ab5=_0x1e09f3;for(var _0x594204=_0x14a7de>0x1?void 0x0:_0x14a7de?We(_0x42f054,_0x175443):_0x42f054,_0x1a2e51=_0x84de0e[_0x5c1ab5(0x157)]-0x1,_0x3e6a09;_0x1a2e51>=0x0;_0x1a2e51--)(_0x3e6a09=_0x84de0e[_0x1a2e51])&&(_0x594204=_0x3e6a09(_0x594204)||_0x594204);return _0x594204;},F=(_0x59bfc3,_0x579348)=>(_0x47d90c,_0x51fa39)=>_0x579348(_0x47d90c,_0x51fa39,_0x59bfc3),J=(_0x2bd9f8,_0x523808,_0x3074dc)=>Ye(_0x2bd9f8,typeof _0x523808!=_0x1e09f3(0x17e)?_0x523808+'':_0x523808,_0x3074dc);const Ze=_0x1e09f3(0x1fa);let O=class extends _0x15dbac{constructor(_0x1fe5d3=$,_0x252c9a,_0x1de4bc){var _0x1873be=_0x1e09f3;super(),this['_config']=_0x1fe5d3,this[_0x1873be(0x1c4)]=_0x252c9a,this[_0x1873be(0x1ed)]=_0x1de4bc;const {..._0x26463c}=_0x87a402({},$,this['_config']);this[_0x1873be(0x1ed)][_0x1873be(0x199)](Ue,_0x26463c);}[_0x1e09f3(0x18a)](){var _0xf3f409=_0x1e09f3;_0x59f435(this[_0xf3f409(0x1c4)],_0x34820a([[L],[m],[b],[I]],this[_0xf3f409(0x1c1)][_0xf3f409(0x197)])),_0x4f5a38(this[_0xf3f409(0x1c4)],[[b]]);}[_0x1e09f3(0x16d)](){var _0x4e95b2=_0x1e09f3;_0x4f5a38(this[_0x4e95b2(0x1c4)],[[I]]);}};J(O,'type',_0x3bbc8d['UNIVER_UNKNOWN']),J(O,_0x1e09f3(0x18d),Ze),O=Be([_0x3b743f(_0x43cb69),F(0x1,_0x2b27e8(_0x16f883)),F(0x2,_0x21acd3)],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 _0x3a3ab5=_0x3eae;(function(_0x260bae,_0x2c6ce9){var _0x55465a=_0x3eae,_0xdf58b1=_0x260bae();while(!![]){try{var _0x5793bb=parseInt(_0x55465a(0x264))/0x1+parseInt(_0x55465a(0x269))/0x2*(-parseInt(_0x55465a(0x275))/0x3)+parseInt(_0x55465a(0x27b))/0x4+parseInt(_0x55465a(0x1f8))/0x5*(-parseInt(_0x55465a(0x262))/0x6)+parseInt(_0x55465a(0x22b))/0x7+parseInt(_0x55465a(0x243))/0x8+-parseInt(_0x55465a(0x1fc))/0x9*(parseInt(_0x55465a(0x209))/0xa);if(_0x5793bb===_0x2c6ce9)break;else _0xdf58b1['push'](_0xdf58b1['shift']());}catch(_0x49690a){_0xdf58b1['push'](_0xdf58b1['shift']());}}}(_0x169c,0xa1479));var q=Object[_0x3a3ab5(0x287)],z=(_0x1629f5,_0x475dd1,_0x19b6df)=>_0x475dd1 in _0x1629f5?q(_0x1629f5,_0x475dd1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19b6df}):_0x1629f5[_0x475dd1]=_0x19b6df,d=(_0x7f965c,_0x1665be,_0x4b62fe)=>z(_0x7f965c,typeof _0x1665be!=_0x3a3ab5(0x1ed)?_0x1665be+'':_0x1665be,_0x4b62fe);import{Disposable as _0x455fad,toDisposable as _0x436294,IUniverInstanceService as _0x1d8bf3,Inject as _0x31e0bc,Injector as _0x4954bf,IConfigService as _0x20a225,ICommandService as _0xe4004e,RxDisposable as _0x16d957,UniverInstanceType as _0x448959,DisposableCollection as _0x1b6a9c,CommandType as _0x2e5ba9,DependentOn as _0x3d5d54,Plugin as _0x9a98d2,merge as _0x19d8b5,registerDependencies as _0x204a17,mergeOverrideWithDependencies as _0x24b91d,touchDependencies as _0x8d2874}from'@univerjs/core';import{useDependency as _0x22f7b4,useObservable as _0x333831,IUIPartsService as _0x1a74a9,BuiltInUIPart as _0x491a32,connectInjector as _0xfdf7a5}from'@univerjs/ui';import{jsx as _0x48343b,jsxs as _0x17d1e3,Fragment as _0x564f17}from'react/jsx-runtime';import{Dropdown as _0x48a603,clsx as _0x292a6e,Button as _0x45739e}from'@univerjs/design';import{forwardRef as _0x5a28b7,useRef as _0x527ac8,createElement as _0x471b24,useState as _0x35c6be,useEffect as _0x307e8c}from'react';import{CollaborationEvent as _0x397dcb,parseProtocolChangeset as _0x500977}from'@univerjs-pro/collaboration';function _0x3eae(_0x5c13ae,_0xd8685f){var _0x169c24=_0x169c();return _0x3eae=function(_0x3eae3b,_0x302d70){_0x3eae3b=_0x3eae3b-0x1e5;var _0x3f291e=_0x169c24[_0x3eae3b];return _0x3f291e;},_0x3eae(_0x5c13ae,_0xd8685f);}import{CollaborationSessionService as _0x31967c,SessionStatus as _0x1e54cd,UniverCollaborationClientPlugin as _0x2bd614}from'@univerjs-pro/collaboration-client';function _0x169c(){var _0x1ed96a=['svg','offline','_handleNewHost','map','Stop\x20following','end','getOwnPropertySymbols','status$','toString','idSuffix','You\x27re\x20presenting\x20the\x20document','set','40DoJgjb','path','none','mask','tryStartPresenting','http://www.w3.org/2000/svg','from','LiveShareIcon','hasOwnProperty','_status$','string','following','pipe','attrs','_handleTerminate','random','NEW_CHANGESETS','extend','IDLE','propertyIsEnumerable','_handleNewChangeSets','getValue','data','currentColor','children','xlink:href','replace','startFollowing','registerComponent','executeCommand','getLiveShareCoordinator','UNIVER_SHEET','get','url(#$1','4109987GCNSLh','presenter','_collabSession','entries','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_unitID','1em','_beIdle','Start','trim','assign','univer-mb-3\x20univer-w-full\x20univer-text-sm','find','_presenter','LIVESHARE_OPERATION','registerInitialStateReporter','event$','idle','defs','substring','getTypeOfUnitDisposed$','sheet','LIVESHARE_NEW_HOST','pluginName','3124176EgxFBW','0\x200\x2017\x2017','_config','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_liveShareService','colorChannel1','getCurrentTypeOfUnit$','_startPresenting','Stop\x20presenting','stringify','type','params','dispose','_commandService','onStarting','evenodd','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_startFollowing','displayName','has','override','UniverIcon','memberID','send','SAME_OPERATION_SHARE_INTERVAL','shouldShareOperation','includes','getUnitId','text','PRESENTING','button','15306BjNupr','values','494836weFHjl','_fetchOperations','_startLiveShareCoordinator','setConfig','className','194oBejQW','_univerInstanceService','next','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_FETCH_OPERATIONS','OFFLINE','live-share.config','parse','_stopFollowing','length','defIds','You\x27are\x20offline.','29781TiEYzx','UNIVER_UNKNOWN','NOT_FOLLOWING','subscribe','concat','onCommandExecuted','5166176OHrYkY','add','You\x27re\x20following\x20the\x20presenter','complete','_configService','getMemberID','FOLLOWING','reverse','LIVESHARE_REQUEST_HOST','getOwnPropertyDescriptor','indexOf','_reporters','defineProperty','getTypeOfUnitAdded$','presenting','dispose$','function','Present\x20this\x20document','requireSession','_stopPresenting','icon','disposeWithMe','asObservable','getInitialStates','call','_uiPartsService','live-share-icon','_injector','prototype','_entities','mutations','init','_handleOnline','_mountLiveShare','delete','_commandDisposable','univerjs-icon\x20univerjs-icon-','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','apply','_sharedOperations','LIVESHARE_TERMINATE','then','forEach','current','clear','getConfig','_handleOffline','symbol','_init','default','Start\x20following','stopFollowing','fill','_handleOperation','stopPresenting','ONLINE','_collabSessionService','not-following','285LSSnIm','_status','onRendered','tag','2239011FDneDG'];_0x169c=function(){return _0x1ed96a;};return _0x169c();}import{InsertSheetMutation as _0x32057a,SetWorksheetActiveOperation as _0x29613a}from'@univerjs/sheets';import{BehaviorSubject as _0x56668a,Subject as _0xc074b3}from'rxjs';import{takeUntil as _0x594e24,throttleTime as _0x4350b5}from'rxjs/operators';import{SetZoomRatioOperation as _0x1f7b0d,SetScrollOperation as _0x18a32e}from'@univerjs/sheets-ui';var c=function(){var _0x360896=_0x3a3ab5;return c=Object[_0x360896(0x235)]||function(_0x12fd74){var _0x22b9b8=_0x360896;for(var _0x530c62,_0x2213ef=0x1,_0x44c771=arguments[_0x22b9b8(0x272)];_0x2213ef<_0x44c771;_0x2213ef++){_0x530c62=arguments[_0x2213ef];for(var _0x572ca3 in _0x530c62)Object[_0x22b9b8(0x297)][_0x22b9b8(0x211)]['call'](_0x530c62,_0x572ca3)&&(_0x12fd74[_0x572ca3]=_0x530c62[_0x572ca3]);}return _0x12fd74;},c[_0x360896(0x2a1)](this,arguments);},Oe=function(_0x4fc45a,_0x202c43){var _0xf80c5f=_0x3a3ab5,_0x461891={};for(var _0x2c903c in _0x4fc45a)Object[_0xf80c5f(0x297)][_0xf80c5f(0x211)][_0xf80c5f(0x293)](_0x4fc45a,_0x2c903c)&&_0x202c43[_0xf80c5f(0x285)](_0x2c903c)<0x0&&(_0x461891[_0x2c903c]=_0x4fc45a[_0x2c903c]);if(_0x4fc45a!=null&&typeof Object[_0xf80c5f(0x203)]==_0xf80c5f(0x28b)){for(var _0x1f41fe=0x0,_0x2c903c=Object[_0xf80c5f(0x203)](_0x4fc45a);_0x1f41fe<_0x2c903c[_0xf80c5f(0x272)];_0x1f41fe++)_0x202c43['indexOf'](_0x2c903c[_0x1f41fe])<0x0&&Object[_0xf80c5f(0x297)][_0xf80c5f(0x21c)]['call'](_0x4fc45a,_0x2c903c[_0x1f41fe])&&(_0x461891[_0x2c903c[_0x1f41fe]]=_0x4fc45a[_0x2c903c[_0x1f41fe]]);}return _0x461891;},W=_0x5a28b7(function(_0x5c6e75,_0x3905bf){var _0x2b8dfe=_0x3a3ab5,_0x3bba64=_0x5c6e75['icon'],_0x3b64ca=_0x5c6e75['id'],_0x4171eb=_0x5c6e75['className'],_0x4e3f24=_0x5c6e75[_0x2b8dfe(0x21a)],_0x970013=Oe(_0x5c6e75,[_0x2b8dfe(0x28f),'id',_0x2b8dfe(0x268),_0x2b8dfe(0x21a)]),_0x48bac9=_0x2b8dfe(0x29f)[_0x2b8dfe(0x279)](_0x3b64ca,'\x20')[_0x2b8dfe(0x279)](_0x4171eb||'')[_0x2b8dfe(0x234)](),_0x272a93=_0x527ac8('_'[_0x2b8dfe(0x279)](Ne()));return Y(_0x3bba64,''[_0x2b8dfe(0x279)](_0x3b64ca),{'defIds':_0x3bba64[_0x2b8dfe(0x273)],'idSuffix':_0x272a93[_0x2b8dfe(0x1e9)]},c({'ref':_0x3905bf,'className':_0x48bac9},_0x970013),_0x4e3f24);});function Y(_0x2dd433,_0x5ad4c5,_0x1f95ba,_0x222eaa,_0x230dff){var _0x1e1db2=_0x3a3ab5;return _0x471b24(_0x2dd433[_0x1e1db2(0x1fb)],c(c({'key':_0x5ad4c5},Ee(_0x2dd433,_0x1f95ba,_0x230dff)),_0x222eaa),(we(_0x2dd433,_0x1f95ba)[_0x1e1db2(0x221)]||[])[_0x1e1db2(0x200)](function(_0x23c0e8,_0x2e0e53){var _0x26fa1d=_0x1e1db2;return Y(_0x23c0e8,''['concat'](_0x5ad4c5,'-')[_0x26fa1d(0x279)](_0x2dd433[_0x26fa1d(0x1fb)],'-')[_0x26fa1d(0x279)](_0x2e0e53),_0x1f95ba,void 0x0,_0x230dff);}));}function Ee(_0x4dc983,_0x58224b,_0x294ec7){var _0x2dc398=_0x3a3ab5,_0x4f7339=c({},_0x4dc983[_0x2dc398(0x216)]);_0x294ec7!=null&&_0x294ec7[_0x2dc398(0x248)]&&_0x4f7339[_0x2dc398(0x1f2)]==='colorChannel1'&&(_0x4f7339[_0x2dc398(0x1f2)]=_0x294ec7[_0x2dc398(0x248)]),_0x4dc983[_0x2dc398(0x1fb)]===_0x2dc398(0x20c)&&_0x4f7339['id']&&(_0x4f7339['id']=_0x4f7339['id']+_0x58224b[_0x2dc398(0x206)]),Object[_0x2dc398(0x22e)](_0x4f7339)[_0x2dc398(0x1e8)](function(_0x2113d5){var _0x358484=_0x2dc398,_0x1101ad=_0x2113d5[0x0],_0x122ad4=_0x2113d5[0x1];_0x1101ad===_0x358484(0x20c)&&typeof _0x122ad4==_0x358484(0x213)&&(_0x4f7339[_0x1101ad]=_0x122ad4[_0x358484(0x223)](/url\(#(.*)\)/,_0x358484(0x22a)[_0x358484(0x279)](_0x58224b[_0x358484(0x206)],')')));});var _0x592c4e=_0x58224b[_0x2dc398(0x273)];return!_0x592c4e||_0x592c4e[_0x2dc398(0x272)]===0x0||(_0x4dc983[_0x2dc398(0x1fb)]==='use'&&_0x4f7339[_0x2dc398(0x222)]&&(_0x4f7339[_0x2dc398(0x222)]=_0x4f7339['xlink:href']+_0x58224b['idSuffix']),Object[_0x2dc398(0x22e)](_0x4f7339)['forEach'](function(_0x481fd8){var _0x2d6080=_0x2dc398,_0x5909a5=_0x481fd8[0x0],_0x22a88b=_0x481fd8[0x1];typeof _0x22a88b=='string'&&(_0x4f7339[_0x5909a5]=_0x22a88b[_0x2d6080(0x223)](/url\(#(.*)\)/,_0x2d6080(0x22a)[_0x2d6080(0x279)](_0x58224b[_0x2d6080(0x206)],')')));})),_0x4f7339;}function we(_0x263791,_0x5a0c71){var _0x24c1b9=_0x3a3ab5,_0x6e96c6,_0x5d2ef3=_0x5a0c71['defIds'];return!_0x5d2ef3||_0x5d2ef3[_0x24c1b9(0x272)]===0x0?_0x263791:_0x263791[_0x24c1b9(0x1fb)]===_0x24c1b9(0x23d)&&(!((_0x6e96c6=_0x263791[_0x24c1b9(0x221)])===null||_0x6e96c6===void 0x0)&&_0x6e96c6[_0x24c1b9(0x272)])?c(c({},_0x263791),{'children':_0x263791['children'][_0x24c1b9(0x200)](function(_0xf3ae08){var _0xe2de6f=_0x24c1b9;return typeof _0xf3ae08[_0xe2de6f(0x216)]['id']==_0xe2de6f(0x213)&&_0x5d2ef3&&_0x5d2ef3['includes'](_0xf3ae08['attrs']['id'])?c(c({},_0xf3ae08),{'attrs':c(c({},_0xf3ae08[_0xe2de6f(0x216)]),{'id':_0xf3ae08['attrs']['id']+_0x5a0c71[_0xe2de6f(0x206)]})}):_0xf3ae08;})}):_0x263791;}function Ne(){var _0x548c78=_0x3a3ab5;return Math[_0x548c78(0x218)]()[_0x548c78(0x205)](0x24)[_0x548c78(0x23e)](0x2,0x8);}W['displayName']=_0x3a3ab5(0x258);var Ce={'tag':_0x3a3ab5(0x1fd),'attrs':{'xmlns':_0x3a3ab5(0x20e),'fill':_0x3a3ab5(0x20b),'viewBox':_0x3a3ab5(0x244),'width':_0x3a3ab5(0x231),'height':_0x3a3ab5(0x231)},'children':[{'tag':_0x3a3ab5(0x20a),'attrs':{'fill':_0x3a3ab5(0x220),'d':_0x3a3ab5(0x22f)}},{'tag':_0x3a3ab5(0x20a),'attrs':{'fill':_0x3a3ab5(0x220),'d':_0x3a3ab5(0x246),'fillRule':'evenodd','clipRule':_0x3a3ab5(0x252)}}]},B=_0x5a28b7(function(_0x4cb8df,_0x277472){var _0x25a95d=_0x3a3ab5;return _0x471b24(W,Object[_0x25a95d(0x235)]({},_0x4cb8df,{'id':_0x25a95d(0x295),'ref':_0x277472,'icon':Ce}));});B[_0x3a3ab5(0x255)]=_0x3a3ab5(0x210);class L extends _0x455fad{constructor(){var _0x4076e1=_0x3a3ab5;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x4076e1(0x286),new Set());}['registerSharedOperation'](_0x58875b){var _0x471743=_0x3a3ab5;return this[_0x471743(0x1e5)][_0x471743(0x27c)](_0x58875b),_0x436294(()=>this[_0x471743(0x1e5)][_0x471743(0x29d)](_0x58875b));}[_0x3a3ab5(0x23a)](_0x31a844){var _0x579766=_0x3a3ab5;return this[_0x579766(0x286)][_0x579766(0x27c)](_0x31a844),_0x436294(()=>this[_0x579766(0x286)][_0x579766(0x29d)](_0x31a844));}[_0x3a3ab5(0x25c)](_0x9886e1){var _0x49655d=_0x3a3ab5;return this['_sharedOperations'][_0x49655d(0x256)](_0x9886e1);}['getInitialStates'](_0x19bee7){var _0x2f7cc4=_0x3a3ab5;return Array[_0x2f7cc4(0x20f)](this[_0x2f7cc4(0x286)])['map'](_0xf8756=>_0xf8756(_0x19bee7));}}var De=Object[_0x3a3ab5(0x284)],Z=(_0x41b9fb,_0x523ad5,_0x553623,_0x5615b1)=>{var _0x4d4b13=_0x3a3ab5;for(var _0x1c320c=_0x5615b1>0x1?void 0x0:_0x5615b1?De(_0x523ad5,_0x553623):_0x523ad5,_0x1c0d9d=_0x41b9fb[_0x4d4b13(0x272)]-0x1,_0x3f7a3b;_0x1c0d9d>=0x0;_0x1c0d9d--)(_0x3f7a3b=_0x41b9fb[_0x1c0d9d])&&(_0x1c320c=_0x3f7a3b(_0x1c320c)||_0x1c320c);return _0x1c320c;},f=(_0x3deda5,_0x953a0d)=>(_0x203131,_0x1dae6c)=>_0x953a0d(_0x203131,_0x1dae6c,_0x3deda5);let m=class extends _0x16d957{constructor(_0x5b441d,_0x571e62,_0x536de3){var _0x41474f=_0x3a3ab5;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x5b441d,this[_0x41474f(0x296)]=_0x571e62,this['_collabSessionService']=_0x536de3,this[_0x41474f(0x1ee)]());}async['getLiveShareCoordinator'](_0x222b05){var _0x3586db=_0x3a3ab5;return this[_0x3586db(0x298)]['has'](_0x222b05)||await this[_0x3586db(0x266)](_0x222b05),this['_entities'][_0x3586db(0x229)](_0x222b05);}['_init'](){var _0x435591=_0x3a3ab5;this['_univerInstanceService'][_0x435591(0x288)](_0x448959['UNIVER_SHEET'])[_0x435591(0x215)](_0x594e24(this[_0x435591(0x28a)]))[_0x435591(0x278)](async _0x3b98ed=>{var _0x5a6f5e=_0x435591;const _0x413d05=_0x3b98ed[_0x5a6f5e(0x25e)]();this['_entities'][_0x5a6f5e(0x256)](_0x413d05)||this['_startLiveShareCoordinator'](_0x413d05);}),this[_0x435591(0x26a)][_0x435591(0x23f)](_0x448959[_0x435591(0x228)])['pipe'](_0x594e24(this['dispose$']))[_0x435591(0x278)](_0x6af18=>{var _0x2d0a65=_0x435591;const _0x3d0651=_0x6af18[_0x2d0a65(0x25e)](),_0x3ad74a=this[_0x2d0a65(0x298)][_0x2d0a65(0x229)](_0x3d0651);_0x3ad74a==null||_0x3ad74a[_0x2d0a65(0x24f)]();});}async[_0x3a3ab5(0x266)](_0x2b50b6){var _0x4dc1e2=_0x3a3ab5;const _0x2d6d8b=await this[_0x4dc1e2(0x1f6)][_0x4dc1e2(0x28d)](_0x2b50b6),_0x19947e=this[_0x4dc1e2(0x296)]['createInstance'](C,_0x2b50b6,_0x2d6d8b);return _0x19947e['init'](),this[_0x4dc1e2(0x298)][_0x4dc1e2(0x208)](_0x2b50b6,_0x19947e),_0x19947e;}};m=Z([f(0x0,_0x1d8bf3),f(0x1,_0x31e0bc(_0x4954bf)),f(0x2,_0x31e0bc(_0x31967c))],m);var h=(_0x102292=>(_0x102292[_0x3a3ab5(0x26e)]=_0x3a3ab5(0x1fe),_0x102292[_0x3a3ab5(0x21b)]='idle',_0x102292['FOLLOWING']='following',_0x102292[_0x3a3ab5(0x277)]='not-following',_0x102292['PRESENTING']=_0x3a3ab5(0x289),_0x102292))(h||{});const xe=_0x3a3ab5(0x25b),Le=0xc8;let C=class extends _0x16d957{constructor(_0x31ab3e,_0x7287f5,_0x46160f,_0x5a9428,_0x49b6d0){var _0xfa78f0=_0x3a3ab5;super(),d(this,_0xfa78f0(0x212),new _0x56668a('idle')),d(this,_0xfa78f0(0x204),this[_0xfa78f0(0x212)][_0xfa78f0(0x291)]()),d(this,_0xfa78f0(0x1ee),!0x1),d(this,'_commandDisposable',null),d(this,_0xfa78f0(0x238),null),(this[_0xfa78f0(0x230)]=_0x31ab3e,this[_0xfa78f0(0x22d)]=_0x7287f5,this[_0xfa78f0(0x27f)]=_0x46160f,this[_0xfa78f0(0x247)]=_0x5a9428,this['_commandService']=_0x49b6d0);}get[_0x3a3ab5(0x1f9)](){var _0x37401a=_0x3a3ab5;return this['_status$'][_0x37401a(0x21e)]();}['dispose'](){var _0x219c58=_0x3a3ab5,_0x5dd352;(_0x5dd352=this[_0x219c58(0x29e)])==null||_0x5dd352[_0x219c58(0x24f)](),this[_0x219c58(0x212)][_0x219c58(0x26b)](_0x219c58(0x23c)),this[_0x219c58(0x212)][_0x219c58(0x27e)]();}[_0x3a3ab5(0x29a)](){var _0x13bcca=_0x3a3ab5;this[_0x13bcca(0x1ee)]||(this[_0x13bcca(0x1ee)]=!0x0,this[_0x13bcca(0x22d)]['sessionStatus$'][_0x13bcca(0x215)](_0x594e24(this[_0x13bcca(0x28a)]))['subscribe'](_0xdd2848=>{var _0xf1ca0a=_0x13bcca;switch(_0xdd2848){case _0x1e54cd[_0xf1ca0a(0x26e)]:this[_0xf1ca0a(0x1ec)]();break;case _0x1e54cd[_0xf1ca0a(0x1f5)]:this[_0xf1ca0a(0x29b)]();break;}}),this[_0x13bcca(0x22d)][_0x13bcca(0x23b)][_0x13bcca(0x215)](_0x594e24(this[_0x13bcca(0x28a)]))['subscribe'](_0x18391f=>{var _0x517d56=_0x13bcca;const {eventID:_0x579c1b}=_0x18391f;switch(_0x579c1b){case _0x397dcb[_0x517d56(0x241)]:this[_0x517d56(0x1ff)](_0x18391f);break;case _0x397dcb[_0x517d56(0x239)]:this[_0x517d56(0x1f3)](_0x18391f);break;case _0x397dcb[_0x517d56(0x1e6)]:this[_0x517d56(0x217)]();break;case _0x397dcb[_0x517d56(0x219)]:this[_0x517d56(0x21d)](_0x18391f);break;}}));}[_0x3a3ab5(0x20d)](){var _0x5aeb41=_0x3a3ab5;this['_collabSession'][_0x5aeb41(0x25a)]({'eventID':_0x397dcb[_0x5aeb41(0x283)],'data':{'unitID':this[_0x5aeb41(0x230)],'userID':this['_collabSession'][_0x5aeb41(0x280)]()}},this['_unitID']);}[_0x3a3ab5(0x1f4)](){var _0x2547a8=_0x3a3ab5;this['_status']==='presenting'&&(this[_0x2547a8(0x212)][_0x2547a8(0x26b)](_0x2547a8(0x23c)),this[_0x2547a8(0x22d)]['send']({'eventID':_0x397dcb[_0x2547a8(0x1e6)],'data':{'unitID':this['_unitID']}},this[_0x2547a8(0x230)]));}[_0x3a3ab5(0x224)](){var _0x353f7c=_0x3a3ab5;this[_0x353f7c(0x1f9)]===_0x353f7c(0x1f7)&&(this[_0x353f7c(0x212)]['next'](_0x353f7c(0x214)),this['_startFollowing']());}[_0x3a3ab5(0x1f1)](){var _0x5d3ba3=_0x3a3ab5;this['_status']==='following'&&this[_0x5d3ba3(0x271)]();}[_0x3a3ab5(0x1ff)](_0x590947){var _0x1b8c8b=_0x3a3ab5;const {presenter:_0x55ff53}=_0x590947[_0x1b8c8b(0x21f)],_0xe38f46=this[_0x1b8c8b(0x22d)][_0x1b8c8b(0x280)]();this[_0x1b8c8b(0x238)]=_0x55ff53,_0x55ff53===_0xe38f46?(this['_stopFollowing'](),this[_0x1b8c8b(0x24a)]()):this[_0x1b8c8b(0x1f9)]!==_0x1b8c8b(0x1f7)&&(this[_0x1b8c8b(0x28e)](),this[_0x1b8c8b(0x254)]());}['_fetchOperations'](){var _0x14c6a1=_0x3a3ab5;const _0x56236f={'eventID':_0x397dcb[_0x14c6a1(0x26d)]};this[_0x14c6a1(0x22d)]['send'](_0x56236f,this[_0x14c6a1(0x230)]);}[_0x3a3ab5(0x217)](){var _0x5791cb=_0x3a3ab5;this[_0x5791cb(0x238)]=null,this[_0x5791cb(0x1f9)]!==_0x5791cb(0x289)&&this[_0x5791cb(0x232)]();}[_0x3a3ab5(0x21d)](_0x5dcf0f){var _0x3fe6ef=_0x3a3ab5;if(this[_0x3fe6ef(0x1f9)]==='following'&&this[_0x3fe6ef(0x238)]===_0x5dcf0f[_0x3fe6ef(0x21f)][_0x3fe6ef(0x259)]){const _0x5ae449=_0x500977(_0x5dcf0f['data'])[_0x3fe6ef(0x299)][_0x3fe6ef(0x282)]()[_0x3fe6ef(0x237)](_0x4b2f18=>_0x4b2f18['id']===_0x32057a['id']);if(_0x5ae449){const _0x40e08d=_0x5ae449[_0x3fe6ef(0x24e)]['unitId'],_0x1c573f=_0x5ae449[_0x3fe6ef(0x24e)][_0x3fe6ef(0x240)]['id'];setTimeout(()=>{var _0x19b6f2=_0x3fe6ef;this[_0x19b6f2(0x250)][_0x19b6f2(0x226)](_0x29613a['id'],{'unitId':_0x40e08d,'subUnitId':_0x1c573f},{'fromCollab':!0x0});});}}}[_0x3a3ab5(0x24a)](){var _0x3fa163=_0x3a3ab5;this['_status$'][_0x3fa163(0x26b)]('presenting');const _0x2c80e0=new Map(),_0x6569af=this[_0x3fa163(0x29e)]=new _0x1b6a9c();_0x6569af['add'](_0x436294(()=>{var _0x2fe162=_0x3fa163;_0x2c80e0['forEach'](_0xf35148=>_0xf35148[_0x2fe162(0x27e)]()),_0x2c80e0[_0x2fe162(0x1ea)]();})),_0x6569af[_0x3fa163(0x27c)](this[_0x3fa163(0x250)][_0x3fa163(0x27a)](_0x1931f8=>{var _0x4664c7=_0x3fa163,_0x2532a1;if(_0x1931f8[_0x4664c7(0x24d)]!==_0x2e5ba9['OPERATION']||!this['_liveShareService'][_0x4664c7(0x25c)](_0x1931f8['id']))return;const {id:_0x50ea04}=_0x1931f8;let _0x49d83f;_0x2c80e0[_0x4664c7(0x256)](_0x50ea04)?_0x49d83f=_0x2c80e0['get'](_0x50ea04):(_0x49d83f=new _0xc074b3(),_0x2c80e0[_0x4664c7(0x208)](_0x50ea04,_0x49d83f),_0x49d83f[_0x4664c7(0x215)](_0x4350b5((_0x2532a1=this[_0x4664c7(0x27f)][_0x4664c7(0x1eb)](xe))!=null?_0x2532a1:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4664c7(0x278)](_0x189798=>{var _0x52fcaa=_0x4664c7;this[_0x52fcaa(0x22d)][_0x52fcaa(0x25a)]({'eventID':_0x397dcb[_0x52fcaa(0x239)],'data':{'unitID':this[_0x52fcaa(0x230)],'operations':{[_0x189798['id']]:{'id':_0x189798['id'],'params':JSON[_0x52fcaa(0x24c)](_0x189798[_0x52fcaa(0x24e)])}}}},this['_unitID']);})),_0x49d83f['next'](_0x1931f8);})),this[_0x3fa163(0x247)][_0x3fa163(0x292)](this['_unitID'])['forEach'](_0x5442e1=>this[_0x3fa163(0x22d)]['send']({'eventID':_0x397dcb[_0x3fa163(0x239)],'data':{'unitID':this['_unitID'],'operations':{[_0x5442e1['id']]:{'id':_0x5442e1['id'],'params':JSON[_0x3fa163(0x24c)](_0x5442e1['params'])}}}},this[_0x3fa163(0x230)]));}['_stopPresenting'](){var _0x45c8d5=_0x3a3ab5,_0x3256fa;this['_status$'][_0x45c8d5(0x26b)](_0x45c8d5(0x23c)),(_0x3256fa=this[_0x45c8d5(0x29e)])==null||_0x3256fa[_0x45c8d5(0x24f)](),this[_0x45c8d5(0x29e)]=null;}['_startFollowing'](){var _0x1b5479=_0x3a3ab5,_0xf0cd5f;(_0xf0cd5f=this[_0x1b5479(0x29e)])==null||_0xf0cd5f[_0x1b5479(0x24f)](),this[_0x1b5479(0x212)][_0x1b5479(0x26b)]('following');}['_beIdle'](){var _0x5ef0cb=_0x3a3ab5,_0x24090e;this[_0x5ef0cb(0x212)][_0x5ef0cb(0x26b)](_0x5ef0cb(0x23c)),(_0x24090e=this['_commandDisposable'])==null||_0x24090e['dispose'](),this[_0x5ef0cb(0x29e)]=null;}[_0x3a3ab5(0x271)](){var _0x33fdef=_0x3a3ab5,_0x24110e;this[_0x33fdef(0x212)][_0x33fdef(0x26b)]('not-following'),(_0x24110e=this[_0x33fdef(0x29e)])==null||_0x24110e['dispose']();}['_handleOperation'](_0x152427){var _0x533f00=_0x3a3ab5;if([_0x533f00(0x289),_0x533f00(0x1f7),_0x533f00(0x1fe)][_0x533f00(0x25d)](this[_0x533f00(0x1f9)])||!_0x152427[_0x533f00(0x21f)]['presenter']||_0x152427[_0x533f00(0x21f)][_0x533f00(0x22c)]===this[_0x533f00(0x22d)][_0x533f00(0x280)]())return;this[_0x533f00(0x1f9)]===_0x533f00(0x23c)&&this['_startFollowing']();const _0x1bbebe=_0x152427[_0x533f00(0x21f)]['operations'];Object[_0x533f00(0x263)](_0x1bbebe)['forEach'](_0x53d45e=>{var _0x106819=_0x533f00;this[_0x106819(0x250)]['executeCommand'](_0x53d45e['id'],_0x53d45e[_0x106819(0x24e)]?JSON[_0x106819(0x270)](_0x53d45e[_0x106819(0x24e)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1974c0=_0x3a3ab5,_0x1a1f30;this['_status$'][_0x1974c0(0x26b)]('offline'),(_0x1a1f30=this['_commandDisposable'])==null||_0x1a1f30['dispose']();}['_handleOnline'](){var _0x4a8cdf=_0x3a3ab5;this[_0x4a8cdf(0x212)][_0x4a8cdf(0x26b)](_0x4a8cdf(0x23c)),this[_0x4a8cdf(0x265)]();}};C=Z([f(0x2,_0x20a225),f(0x3,_0x31e0bc(L)),f(0x4,_0xe4004e)],C);function ye(){var _0x2602b2=_0x3a3ab5;const _0x4f6605=_0x22f7b4(m),_0x4b75a9=_0x22f7b4(_0x1d8bf3),_0x14a563=_0x333831(()=>_0x4b75a9[_0x2602b2(0x249)](_0x448959[_0x2602b2(0x228)]),void 0x0,!0x1,[]),[_0x311711,_0x1c1275]=_0x35c6be(null),[_0xe1c506,_0x4b5b2d]=_0x35c6be(h[_0x2602b2(0x21b)]),_0x5208e5=_0x527ac8(null);return _0x307e8c(()=>(_0x14a563&&_0x4f6605[_0x2602b2(0x227)](_0x14a563[_0x2602b2(0x25e)]())[_0x2602b2(0x1e7)](_0x3c2390=>{var _0x22c91e=_0x2602b2;_0x1c1275(_0x3c2390),_0x5208e5[_0x22c91e(0x1e9)]=_0x3c2390[_0x22c91e(0x204)][_0x22c91e(0x278)](_0x135f93=>{_0x4b5b2d(_0x135f93);});}),()=>{var _0xcba6a0=_0x2602b2,_0x3f607e;(_0x3f607e=_0x5208e5['current'])==null||_0x3f607e['unsubscribe'](),_0x5208e5[_0xcba6a0(0x1e9)]=null;}),[_0x14a563,_0x4f6605]),_0x311711?_0x48343b(_0x48a603,{'align':_0x2602b2(0x202),'disabled':_0xe1c506===h[_0x2602b2(0x26e)],'className':_0x2602b2(0x2a0),'overlay':_0x48343b(Re,{'status':_0xe1c506,'coordinator':_0x311711}),'children':_0x48343b(_0x2602b2(0x261),{'className':_0x292a6e(_0x2602b2(0x253),{'univer-cursor-not-allowed':_0xe1c506===h[_0x2602b2(0x26e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xe1c506!==h[_0x2602b2(0x26e)]}),'type':_0x2602b2(0x261),'children':_0x48343b(B,{'className':'univer-size-4'})})}):null;}function Re(_0x523801){var _0x3ddf91=_0x3a3ab5;const {status:_0x46ea59,coordinator:_0x392981}=_0x523801;switch(_0x46ea59){case h[_0x3ddf91(0x21b)]:return _0x48343b(Pe,{'coordinator':_0x392981});case h[_0x3ddf91(0x281)]:return _0x48343b(Ae,{'coordinator':_0x392981});case h[_0x3ddf91(0x277)]:return _0x48343b(Te,{'coordinator':_0x392981});case h[_0x3ddf91(0x26e)]:return _0x48343b(Fe,{});case h[_0x3ddf91(0x260)]:return _0x48343b($e,{'coordinator':_0x392981});default:return null;}}function Pe(_0x1958b7){var _0x444df7=_0x3a3ab5;const {coordinator:_0x3b161c}=_0x1958b7;return _0x17d1e3(_0x564f17,{'children':[_0x48343b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x444df7(0x28c)}),_0x48343b(_0x45739e,{'onClick':()=>_0x3b161c[_0x444df7(0x20d)](),'children':_0x444df7(0x233)})]});}function Ae(_0x3fe351){var _0x3d5330=_0x3a3ab5;const {coordinator:_0x536b50}=_0x3fe351;return _0x17d1e3(_0x564f17,{'children':[_0x48343b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3d5330(0x27d)}),_0x48343b(_0x45739e,{'onClick':()=>_0x536b50['stopFollowing'](),'children':_0x3d5330(0x201)})]});}function Te(_0x18cba6){var _0x40d2b6=_0x3a3ab5;const {coordinator:_0x42a55a}=_0x18cba6;return _0x17d1e3(_0x564f17,{'children':[_0x48343b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x48343b(_0x45739e,{'variant':_0x40d2b6(0x25f),'onClick':()=>_0x42a55a['startFollowing'](),'children':_0x40d2b6(0x1f0)})]});}function $e(_0x459ce4){var _0x3c9e2a=_0x3a3ab5;const {coordinator:_0x2dd625}=_0x459ce4;return _0x17d1e3(_0x564f17,{'children':[_0x48343b('div',{'className':_0x3c9e2a(0x236),'children':_0x3c9e2a(0x207)}),_0x48343b(_0x45739e,{'variant':_0x3c9e2a(0x1ef),'onClick':()=>_0x2dd625['stopPresenting'](),'children':_0x3c9e2a(0x24b)})]});}function Fe(){var _0x3da785=_0x3a3ab5;return _0x48343b(_0x564f17,{'children':_0x3da785(0x274)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x45c1e0,_0x37cc54,_0xd47077,_0x45a740)=>{var _0x2e5ca8=_0x3a3ab5;for(var _0x27164b=_0x45a740>0x1?void 0x0:_0x45a740?He(_0x37cc54,_0xd47077):_0x37cc54,_0x39e300=_0x45c1e0[_0x2e5ca8(0x272)]-0x1,_0x2dc9c8;_0x39e300>=0x0;_0x39e300--)(_0x2dc9c8=_0x45c1e0[_0x39e300])&&(_0x27164b=_0x2dc9c8(_0x27164b)||_0x27164b);return _0x27164b;},T=(_0x985ef6,_0x13f95d)=>(_0x5bbd04,_0x4434de)=>_0x13f95d(_0x5bbd04,_0x4434de,_0x985ef6);let I=class extends _0x455fad{constructor(_0xe26504,_0x3e5707){var _0xef99f=_0x3a3ab5;super(),this[_0xef99f(0x296)]=_0xe26504,this[_0xef99f(0x294)]=_0x3e5707,this[_0xef99f(0x29c)]();}['_mountLiveShare'](){var _0x5eb341=_0x3a3ab5;this[_0x5eb341(0x290)](this['_uiPartsService'][_0x5eb341(0x225)](_0x491a32['HEADER_MENU'],()=>_0xfdf7a5(ye,this['_injector'])));}};I=je([T(0x0,_0x31e0bc(_0x4954bf)),T(0x1,_0x1a74a9)],I);const Ue=_0x3a3ab5(0x26f),$={};var Ve=Object[_0x3a3ab5(0x284)],Me=(_0x1edb73,_0x128dd4,_0x177edb,_0x5e684a)=>{var _0x10c76a=_0x3a3ab5;for(var _0x1620a3=_0x5e684a>0x1?void 0x0:_0x5e684a?Ve(_0x128dd4,_0x177edb):_0x128dd4,_0x3417ab=_0x1edb73[_0x10c76a(0x272)]-0x1,_0xa2df41;_0x3417ab>=0x0;_0x3417ab--)(_0xa2df41=_0x1edb73[_0x3417ab])&&(_0x1620a3=_0xa2df41(_0x1620a3)||_0x1620a3);return _0x1620a3;},ke=(_0x3e46ab,_0x26b1d0)=>(_0x978ea,_0x41c934)=>_0x26b1d0(_0x978ea,_0x41c934,_0x3e46ab);let b=class extends _0x455fad{constructor(_0x583213){var _0x61a4f2=_0x3a3ab5;super(),this[_0x61a4f2(0x247)]=_0x583213,this[_0x61a4f2(0x1ee)]();}[_0x3a3ab5(0x1ee)](){var _0x2bcd32=_0x3a3ab5;[_0x1f7b0d['id'],_0x18a32e['id'],_0x29613a['id']][_0x2bcd32(0x1e8)](_0x2b0cfb=>{var _0x37061a=_0x2bcd32;this['disposeWithMe'](this[_0x37061a(0x247)]['registerSharedOperation'](_0x2b0cfb));});}};b=Me([ke(0x0,_0x31e0bc(L))],b);var Ge=Object[_0x3a3ab5(0x287)],We=Object[_0x3a3ab5(0x284)],Ye=(_0x20f025,_0x3e8010,_0x3d806c)=>_0x3e8010 in _0x20f025?Ge(_0x20f025,_0x3e8010,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d806c}):_0x20f025[_0x3e8010]=_0x3d806c,Be=(_0x37a70b,_0x56f9cb,_0x21a264,_0x52977c)=>{var _0xe51feb=_0x3a3ab5;for(var _0x47f871=_0x52977c>0x1?void 0x0:_0x52977c?We(_0x56f9cb,_0x21a264):_0x56f9cb,_0x9e4f24=_0x37a70b[_0xe51feb(0x272)]-0x1,_0x163104;_0x9e4f24>=0x0;_0x9e4f24--)(_0x163104=_0x37a70b[_0x9e4f24])&&(_0x47f871=_0x163104(_0x47f871)||_0x47f871);return _0x47f871;},F=(_0x2776d2,_0x57c24c)=>(_0x35a774,_0x3778e9)=>_0x57c24c(_0x35a774,_0x3778e9,_0x2776d2),J=(_0x374172,_0x24ee68,_0x3d2041)=>Ye(_0x374172,typeof _0x24ee68!='symbol'?_0x24ee68+'':_0x24ee68,_0x3d2041);const Ze=_0x3a3ab5(0x26c);let O=class extends _0x9a98d2{constructor(_0x41e339=$,_0x21a247,_0x434bf0){var _0x30f619=_0x3a3ab5;super(),this[_0x30f619(0x245)]=_0x41e339,this['_injector']=_0x21a247,this[_0x30f619(0x27f)]=_0x434bf0;const {..._0x4a4811}=_0x19d8b5({},$,this['_config']);this[_0x30f619(0x27f)][_0x30f619(0x267)](Ue,_0x4a4811);}[_0x3a3ab5(0x251)](){var _0x246281=_0x3a3ab5;_0x204a17(this[_0x246281(0x296)],_0x24b91d([[L],[m],[b],[I]],this[_0x246281(0x245)][_0x246281(0x257)])),_0x8d2874(this['_injector'],[[b]]);}[_0x3a3ab5(0x1fa)](){var _0x106169=_0x3a3ab5;_0x8d2874(this[_0x106169(0x296)],[[I]]);}};J(O,_0x3a3ab5(0x24d),_0x448959[_0x3a3ab5(0x276)]),J(O,_0x3a3ab5(0x242),Ze),O=Be([_0x3d5d54(_0x2bd614),F(0x1,_0x31e0bc(_0x4954bf)),F(0x2,_0x20a225)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1cb1(){var _0x519ea6=['LiveShareCoordinator','extend','displayName','@univerjs-pro/collaboration','presenter','idle','following','merge','FOLLOWING','registerSharedOperation','stopPresenting','random','clear','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','_status$','Present\x20this\x20document','sheet','dispose$','type','getTypeOfUnitDisposed$','NEW_CHANGESETS','data','idSuffix','SessionStatus','stopFollowing','registerComponent','UniverLiveSharePlugin','1em','values','LiveShareStatus','10271052mYROxA','Start\x20following','UniverProCollaborationClient','useObservable','asObservable','prototype','0\x200\x2017\x2017','icon','live-share.config','BehaviorSubject','LiveShareService','defineProperty','Module','call','_config','getLiveShareCoordinator','current','mergeOverrideWithDependencies','IConfigService','_commandDisposable','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','includes','UniverUi','Injector','Dropdown','_startLiveShareCoordinator','fill','toDisposable','react/jsx-runtime','replace','next','string','params','_handleNewChangeSets','hasOwnProperty','UniverSheets','You\x27re\x20following\x20the\x20presenter','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','takeUntil','parse','init','useEffect','startFollowing','24SMWFNT','useRef','Start','evenodd','univer-size-4','CollaborationSessionService','clsx','NOT_FOLLOWING','mask','getConfig','override','toStringTag','@univerjs-pro/collaboration-client','ONLINE','924266cPzNlO','PRESENTING','getUnitId','concat','pluginName','_sharedOperations','UniverInstanceType','SetWorksheetActiveOperation','_handleOperation','jsx','ICommandService','@univerjs/ui','stringify','8COKvhM','subscribe','send','find','DisposableCollection','IUIPartsService','RxDisposable','@univerjs/sheets-ui','setConfig','memberID','complete','registerDependencies','onStarting','_liveShareService','React','useDependency','use','substring','createInstance','_handleOnline','_commandService','throttleTime','_status','UNIVER_SHEET','InsertSheetMutation','_fetchOperations','_uiPartsService','@univerjs/design','Plugin','length','UniverSheetsUi','presenting','Stop\x20presenting','LiveShareController','requireSession','then','univer-mb-3\x20univer-w-full\x20univer-text-sm','691338cHejCD','BuiltInUIPart','UNIVER_LIVE_SHARE_PLUGIN','UniverCore','_collabSessionService','pipe','UniverCollaborationClientPlugin','SetZoomRatioOperation','_mountLiveShare','HEADER_MENU','operations','symbol','set','_handleTerminate','You\x27re\x20presenting\x20the\x20document','_stopFollowing','unsubscribe','from','div','LIVESHARE_TERMINATE','text','defs','_presenter','IDLE','rxjs/operators','_handleOffline','_beIdle','sessionStatus$','_stopPresenting','_entities','DesktopLiveShareController','tag','getInitialStates','map','_collabSession','_reporters','touchDependencies','children','LiveShareIcon','_handleNewHost','colorChannel1','LIVESHARE_OPERATION','end','Disposable','defIds','LiveShare','default','UniverDesign','_startPresenting','getMemberID','forwardRef','forEach','status$','disposeWithMe','8206146hDlsfx','get','30123QHuOxl','assign','_injector','rxjs','mutations','@univerjs/sheets','1465404bksWgj','5mCfEdS','onCommandExecuted','Fragment','delete','amd','has','1193750rucOoF','propertyIsEnumerable','button','entries','getValue','_init','IUniverInstanceService','getTypeOfUnitAdded$','createElement','_unitID','1OcVlsd','path','Button','OFFLINE','unitId','Inject','getOwnPropertyDescriptor','indexOf','getCurrentTypeOfUnit$','jsxs','attrs','tryStartPresenting','dispose','_startFollowing','http://www.w3.org/2000/svg','not-following','SetScrollOperation','add','currentColor','url(#$1','Subject','offline','_univerInstanceService','_configService','univerjs-icon\x20univerjs-icon-','CollaborationEvent','executeCommand'];_0x1cb1=function(){return _0x519ea6;};return _0x1cb1();}function _0x48c3(_0x4c4aec,_0x461d48){var _0x1cb111=_0x1cb1();return _0x48c3=function(_0x48c380,_0x11b488){_0x48c380=_0x48c380-0xb2;var _0x4b5997=_0x1cb111[_0x48c380];return _0x4b5997;},_0x48c3(_0x4c4aec,_0x461d48);}(function(_0x44cb4c,_0x20c6dc){var _0x1904d2=_0x48c3,_0x2a3bd4=_0x44cb4c();while(!![]){try{var _0x419504=parseInt(_0x1904d2(0xce))/0x1*(-parseInt(_0x1904d2(0x172))/0x2)+-parseInt(_0x1904d2(0xb7))/0x3*(-parseInt(_0x1904d2(0x14d))/0x4)+parseInt(_0x1904d2(0xbe))/0x5*(parseInt(_0x1904d2(0xbd))/0x6)+-parseInt(_0x1904d2(0x140))/0x7*(-parseInt(_0x1904d2(0x132))/0x8)+-parseInt(_0x1904d2(0xb5))/0x9+parseInt(_0x1904d2(0xc4))/0xa+parseInt(_0x1904d2(0x107))/0xb;if(_0x419504===_0x20c6dc)break;else _0x2a3bd4['push'](_0x2a3bd4['shift']());}catch(_0x2286d3){_0x2a3bd4['push'](_0x2a3bd4['shift']());}}}(_0x1cb1,0x6f58a),function(_0x1784e8,_0x5ce78f){var _0x2679ba=_0x48c3;typeof exports=='object'&&typeof module<'u'?_0x5ce78f(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[_0x2679ba(0xc2)]?define(['exports','@univerjs/core',_0x2679ba(0x14b),_0x2679ba(0x123),_0x2679ba(0x168),'react',_0x2679ba(0xec),_0x2679ba(0x13e),_0x2679ba(0xbc),'rxjs',_0x2679ba(0x18a),_0x2679ba(0x154)],_0x5ce78f):(_0x1784e8=typeof globalThis<'u'?globalThis:_0x1784e8||self,_0x5ce78f(_0x1784e8['UniverProLiveShare']={},_0x1784e8[_0x2679ba(0x175)],_0x1784e8[_0x2679ba(0x11d)],_0x1784e8[_0x2679ba(0x15b)],_0x1784e8[_0x2679ba(0x1a1)],_0x1784e8['React'],_0x1784e8['UniverProCollaboration'],_0x1784e8[_0x2679ba(0x109)],_0x1784e8[_0x2679ba(0x12a)],_0x1784e8[_0x2679ba(0xba)],_0x1784e8[_0x2679ba(0xba)]['operators'],_0x1784e8[_0x2679ba(0x16b)]));}(this,function(_0x56f403,_0x18c975,_0x57e567,_0xbda168,_0x2b0257,_0x3d191c,_0x38af53,_0xa5d4d8,_0x1607af,_0x39be1c,_0x2713ad,_0x47abe2){'use strict';var _0x6c43c8=_0x48c3;var _0x9ffa3c=Object[_0x6c43c8(0x112)],_0x4f6824=(_0x17ddf8,_0x4b7cff,_0x439145)=>_0x4b7cff in _0x17ddf8?_0x9ffa3c(_0x17ddf8,_0x4b7cff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x439145}):_0x17ddf8[_0x4b7cff]=_0x439145,_0x53e657=(_0x2f6272,_0x4bdefc,_0x1e039f)=>_0x4f6824(_0x2f6272,typeof _0x4bdefc!='symbol'?_0x4bdefc+'':_0x4bdefc,_0x1e039f),_0x25fada=function(){return _0x25fada=Object['assign']||function(_0x51e5a5){var _0x5a6529=_0x48c3;for(var _0xec920f,_0x54908a=0x1,_0x392323=arguments[_0x5a6529(0x16a)];_0x54908a<_0x392323;_0x54908a++){_0xec920f=arguments[_0x54908a];for(var _0x4f1d77 in _0xec920f)Object[_0x5a6529(0x10c)][_0x5a6529(0x129)]['call'](_0xec920f,_0x4f1d77)&&(_0x51e5a5[_0x4f1d77]=_0xec920f[_0x4f1d77]);}return _0x51e5a5;},_0x25fada['apply'](this,arguments);},_0xcf18fb=function(_0x27ce0c,_0x41ffc7){var _0xc4493d=_0x6c43c8,_0x505562={};for(var _0x503b13 in _0x27ce0c)Object[_0xc4493d(0x10c)]['hasOwnProperty'][_0xc4493d(0x114)](_0x27ce0c,_0x503b13)&&_0x41ffc7[_0xc4493d(0xd5)](_0x503b13)<0x0&&(_0x505562[_0x503b13]=_0x27ce0c[_0x503b13]);if(_0x27ce0c!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x26aa36=0x0,_0x503b13=Object['getOwnPropertySymbols'](_0x27ce0c);_0x26aa36<_0x503b13[_0xc4493d(0x16a)];_0x26aa36++)_0x41ffc7[_0xc4493d(0xd5)](_0x503b13[_0x26aa36])<0x0&&Object[_0xc4493d(0x10c)][_0xc4493d(0xc5)][_0xc4493d(0x114)](_0x27ce0c,_0x503b13[_0x26aa36])&&(_0x505562[_0x503b13[_0x26aa36]]=_0x27ce0c[_0x503b13[_0x26aa36]]);}return _0x505562;},_0x534da7=_0x3d191c[_0x6c43c8(0x1a4)](function(_0x237970,_0x55eae6){var _0x10df69=_0x6c43c8,_0x33c352=_0x237970[_0x10df69(0x10e)],_0x525625=_0x237970['id'],_0x20b9fc=_0x237970['className'],_0xe13c01=_0x237970[_0x10df69(0xea)],_0x589488=_0xcf18fb(_0x237970,[_0x10df69(0x10e),'id','className','extend']),_0x22872d=_0x10df69(0xe6)[_0x10df69(0x143)](_0x525625,'\x20')['concat'](_0x20b9fc||'')['trim'](),_0xb07c33=_0x3d191c[_0x10df69(0x133)]('_'[_0x10df69(0x143)](_0x3cd589()));return _0xc66e5b(_0x33c352,''['concat'](_0x525625),{'defIds':_0x33c352[_0x10df69(0x19e)],'idSuffix':_0xb07c33[_0x10df69(0x117)]},_0x25fada({'ref':_0x55eae6,'className':_0x22872d},_0x589488),_0xe13c01);});function _0xc66e5b(_0x1ba43a,_0x452041,_0x18ada8,_0x37739e,_0x4de175){var _0x43c476=_0x6c43c8;return _0x3d191c[_0x43c476(0xcc)](_0x1ba43a[_0x43c476(0x191)],_0x25fada(_0x25fada({'key':_0x452041},_0x730992(_0x1ba43a,_0x18ada8,_0x4de175)),_0x37739e),(_0xfd5be3(_0x1ba43a,_0x18ada8)[_0x43c476(0x197)]||[])[_0x43c476(0x193)](function(_0x50f68e,_0x18edf7){var _0x218c48=_0x43c476;return _0xc66e5b(_0x50f68e,''[_0x218c48(0x143)](_0x452041,'-')['concat'](_0x1ba43a[_0x218c48(0x191)],'-')['concat'](_0x18edf7),_0x18ada8,void 0x0,_0x4de175);}));}function _0x730992(_0x230ab4,_0x498c2c,_0x21d1a7){var _0x4aab62=_0x6c43c8,_0x5bbf5e=_0x25fada({},_0x230ab4[_0x4aab62(0xd8)]);_0x21d1a7!=null&&_0x21d1a7[_0x4aab62(0x19a)]&&_0x5bbf5e[_0x4aab62(0x121)]===_0x4aab62(0x19a)&&(_0x5bbf5e['fill']=_0x21d1a7[_0x4aab62(0x19a)]),_0x230ab4[_0x4aab62(0x191)]===_0x4aab62(0x13a)&&_0x5bbf5e['id']&&(_0x5bbf5e['id']=_0x5bbf5e['id']+_0x498c2c[_0x4aab62(0xff)]),Object[_0x4aab62(0xc7)](_0x5bbf5e)['forEach'](function(_0x480a79){var _0x4c42a8=_0x4aab62,_0x27a71f=_0x480a79[0x0],_0x3e940b=_0x480a79[0x1];_0x27a71f===_0x4c42a8(0x13a)&&typeof _0x3e940b==_0x4c42a8(0x126)&&(_0x5bbf5e[_0x27a71f]=_0x3e940b[_0x4c42a8(0x124)](/url\(#(.*)\)/,_0x4c42a8(0xe1)[_0x4c42a8(0x143)](_0x498c2c[_0x4c42a8(0xff)],')')));});var _0x1a2baf=_0x498c2c['defIds'];return!_0x1a2baf||_0x1a2baf[_0x4aab62(0x16a)]===0x0||(_0x230ab4[_0x4aab62(0x191)]===_0x4aab62(0x15d)&&_0x5bbf5e['xlink:href']&&(_0x5bbf5e['xlink:href']=_0x5bbf5e['xlink:href']+_0x498c2c['idSuffix']),Object[_0x4aab62(0xc7)](_0x5bbf5e)[_0x4aab62(0xb2)](function(_0xc28593){var _0x39fcbb=_0x4aab62,_0x149a74=_0xc28593[0x0],_0x31ebb0=_0xc28593[0x1];typeof _0x31ebb0==_0x39fcbb(0x126)&&(_0x5bbf5e[_0x149a74]=_0x31ebb0['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x498c2c['idSuffix'],')')));})),_0x5bbf5e;}function _0xfd5be3(_0x38c4bf,_0x4c3c36){var _0x4c81a7=_0x6c43c8,_0x8cb5b5,_0x26249d=_0x4c3c36[_0x4c81a7(0x19e)];return!_0x26249d||_0x26249d[_0x4c81a7(0x16a)]===0x0?_0x38c4bf:_0x38c4bf[_0x4c81a7(0x191)]===_0x4c81a7(0x187)&&(!((_0x8cb5b5=_0x38c4bf[_0x4c81a7(0x197)])===null||_0x8cb5b5===void 0x0)&&_0x8cb5b5[_0x4c81a7(0x16a)])?_0x25fada(_0x25fada({},_0x38c4bf),{'children':_0x38c4bf[_0x4c81a7(0x197)][_0x4c81a7(0x193)](function(_0xfe6456){var _0x5b6062=_0x4c81a7;return typeof _0xfe6456[_0x5b6062(0xd8)]['id']=='string'&&_0x26249d&&_0x26249d[_0x5b6062(0x11c)](_0xfe6456[_0x5b6062(0xd8)]['id'])?_0x25fada(_0x25fada({},_0xfe6456),{'attrs':_0x25fada(_0x25fada({},_0xfe6456[_0x5b6062(0xd8)]),{'id':_0xfe6456['attrs']['id']+_0x4c3c36[_0x5b6062(0xff)]})}):_0xfe6456;})}):_0x38c4bf;}function _0x3cd589(){var _0x409f9b=_0x6c43c8;return Math[_0x409f9b(0xf4)]()['toString'](0x24)[_0x409f9b(0x15e)](0x2,0x8);}_0x534da7[_0x6c43c8(0xeb)]='UniverIcon';var _0x5ebace={'tag':'svg','attrs':{'xmlns':_0x6c43c8(0xdc),'fill':'none','viewBox':_0x6c43c8(0x10d),'width':_0x6c43c8(0x104),'height':'1em'},'children':[{'tag':_0x6c43c8(0xcf),'attrs':{'fill':_0x6c43c8(0xe0),'d':_0x6c43c8(0xf6)}},{'tag':_0x6c43c8(0xcf),'attrs':{'fill':_0x6c43c8(0xe0),'d':_0x6c43c8(0x11b),'fillRule':_0x6c43c8(0x135),'clipRule':_0x6c43c8(0x135)}}]},_0x57bd5a=_0x3d191c[_0x6c43c8(0x1a4)](function(_0x4866f7,_0x530e23){var _0x5dd2ed=_0x6c43c8;return _0x3d191c[_0x5dd2ed(0xcc)](_0x534da7,Object[_0x5dd2ed(0xb8)]({},_0x4866f7,{'id':'live-share-icon','ref':_0x530e23,'icon':_0x5ebace}));});_0x57bd5a['displayName']=_0x6c43c8(0x198);class _0x168d87 extends _0x18c975[_0x6c43c8(0x19d)]{constructor(){var _0x28e15e=_0x6c43c8;super(...arguments),_0x53e657(this,_0x28e15e(0x145),new Set()),_0x53e657(this,_0x28e15e(0x195),new Set());}[_0x6c43c8(0xf2)](_0x1e04ff){var _0x54f57c=_0x6c43c8;return this[_0x54f57c(0x145)][_0x54f57c(0xdf)](_0x1e04ff),_0x18c975['toDisposable'](()=>this[_0x54f57c(0x145)]['delete'](_0x1e04ff));}['registerInitialStateReporter'](_0x599cd0){var _0x34a039=_0x6c43c8;return this['_reporters'][_0x34a039(0xdf)](_0x599cd0),_0x18c975['toDisposable'](()=>this[_0x34a039(0x195)][_0x34a039(0xc1)](_0x599cd0));}['shouldShareOperation'](_0x5e429b){var _0x33ce82=_0x6c43c8;return this[_0x33ce82(0x145)][_0x33ce82(0xc3)](_0x5e429b);}[_0x6c43c8(0x192)](_0x523884){var _0x5a7254=_0x6c43c8;return Array[_0x5a7254(0x183)](this['_reporters'])[_0x5a7254(0x193)](_0x363409=>_0x363409(_0x523884));}}var _0x3b535b=Object[_0x6c43c8(0xd4)],_0x58f080=(_0x25cdde,_0x28198a,_0x51480c,_0x290186)=>{var _0x4e5689=_0x6c43c8;for(var _0x5d195e=_0x290186>0x1?void 0x0:_0x290186?_0x3b535b(_0x28198a,_0x51480c):_0x28198a,_0x52eaf1=_0x25cdde[_0x4e5689(0x16a)]-0x1,_0x33592a;_0x52eaf1>=0x0;_0x52eaf1--)(_0x33592a=_0x25cdde[_0x52eaf1])&&(_0x5d195e=_0x33592a(_0x5d195e)||_0x5d195e);return _0x5d195e;},_0x46df9b=(_0x400241,_0x1bd535)=>(_0x44ffa5,_0x561c75)=>_0x1bd535(_0x44ffa5,_0x561c75,_0x400241);_0x56f403['LiveShareController']=class extends _0x18c975['RxDisposable']{constructor(_0x4f84a3,_0x29e870,_0x1afbcb){var _0x41f840=_0x6c43c8;super(),_0x53e657(this,_0x41f840(0x18f),new Map()),(this[_0x41f840(0xe4)]=_0x4f84a3,this[_0x41f840(0xb9)]=_0x29e870,this[_0x41f840(0x176)]=_0x1afbcb,this['_init']());}async[_0x6c43c8(0x116)](_0x141363){var _0x62ae98=_0x6c43c8;return this[_0x62ae98(0x18f)][_0x62ae98(0xc3)](_0x141363)||await this['_startLiveShareCoordinator'](_0x141363),this[_0x62ae98(0x18f)]['get'](_0x141363);}[_0x6c43c8(0xc9)](){var _0x476ec6=_0x6c43c8;this['_univerInstanceService'][_0x476ec6(0xcb)](_0x18c975[_0x476ec6(0x146)][_0x476ec6(0x164)])[_0x476ec6(0x177)](_0x2713ad[_0x476ec6(0x12d)](this[_0x476ec6(0xfa)]))[_0x476ec6(0x14e)](async _0x3bdcf1=>{var _0x4ca866=_0x476ec6;const _0x1d1093=_0x3bdcf1[_0x4ca866(0x142)]();this[_0x4ca866(0x18f)]['has'](_0x1d1093)||this['_startLiveShareCoordinator'](_0x1d1093);}),this[_0x476ec6(0xe4)][_0x476ec6(0xfc)](_0x18c975['UniverInstanceType'][_0x476ec6(0x164)])[_0x476ec6(0x177)](_0x2713ad[_0x476ec6(0x12d)](this['dispose$']))['subscribe'](_0x519154=>{var _0x503016=_0x476ec6;const _0xf11943=_0x519154[_0x503016(0x142)](),_0x5598fa=this[_0x503016(0x18f)][_0x503016(0xb6)](_0xf11943);_0x5598fa==null||_0x5598fa[_0x503016(0xda)]();});}async[_0x6c43c8(0x120)](_0x1ce255){var _0x43a6b8=_0x6c43c8;const _0x1c45dc=await this['_collabSessionService'][_0x43a6b8(0x16f)](_0x1ce255),_0x5f4393=this[_0x43a6b8(0xb9)][_0x43a6b8(0x15f)](_0x56f403[_0x43a6b8(0xe9)],_0x1ce255,_0x1c45dc);return _0x5f4393[_0x43a6b8(0x12f)](),this[_0x43a6b8(0x18f)][_0x43a6b8(0x17e)](_0x1ce255,_0x5f4393),_0x5f4393;}},_0x56f403[_0x6c43c8(0x16e)]=_0x58f080([_0x46df9b(0x0,_0x18c975[_0x6c43c8(0xca)]),_0x46df9b(0x1,_0x18c975[_0x6c43c8(0xd3)](_0x18c975[_0x6c43c8(0x11e)])),_0x46df9b(0x2,_0x18c975[_0x6c43c8(0xd3)](_0xa5d4d8[_0x6c43c8(0x137)]))],_0x56f403['LiveShareController']);var _0x10e4f2=(_0xf4ddad=>(_0xf4ddad['OFFLINE']='offline',_0xf4ddad[_0x6c43c8(0x189)]=_0x6c43c8(0xee),_0xf4ddad[_0x6c43c8(0xf1)]=_0x6c43c8(0xef),_0xf4ddad[_0x6c43c8(0x139)]='not-following',_0xf4ddad[_0x6c43c8(0x141)]=_0x6c43c8(0x16c),_0xf4ddad))(_0x10e4f2||{});const _0xfbd5f7='SAME_OPERATION_SHARE_INTERVAL',_0x4a3938=0xc8;_0x56f403['LiveShareCoordinator']=class extends _0x18c975[_0x6c43c8(0x153)]{constructor(_0x48d5a1,_0x24249c,_0x16341d,_0x346ccd,_0x8edba6){var _0x32e84b=_0x6c43c8;super(),_0x53e657(this,_0x32e84b(0xf7),new _0x39be1c[(_0x32e84b(0x110))](_0x32e84b(0xee))),_0x53e657(this,_0x32e84b(0xb3),this['_status$'][_0x32e84b(0x10b)]()),_0x53e657(this,'_init',!0x1),_0x53e657(this,_0x32e84b(0x11a),null),_0x53e657(this,_0x32e84b(0x188),null),(this['_unitID']=_0x48d5a1,this[_0x32e84b(0x194)]=_0x24249c,this[_0x32e84b(0xe5)]=_0x16341d,this[_0x32e84b(0x15a)]=_0x346ccd,this[_0x32e84b(0x161)]=_0x8edba6);}get[_0x6c43c8(0x163)](){var _0x1ffd44=_0x6c43c8;return this[_0x1ffd44(0xf7)][_0x1ffd44(0xc8)]();}['dispose'](){var _0x813a66=_0x6c43c8,_0x401bc5;(_0x401bc5=this[_0x813a66(0x11a)])==null||_0x401bc5[_0x813a66(0xda)](),this[_0x813a66(0xf7)][_0x813a66(0x125)](_0x813a66(0xee)),this[_0x813a66(0xf7)][_0x813a66(0x157)]();}['init'](){var _0x1744a0=_0x6c43c8;this['_init']||(this[_0x1744a0(0xc9)]=!0x0,this[_0x1744a0(0x194)][_0x1744a0(0x18d)][_0x1744a0(0x177)](_0x2713ad[_0x1744a0(0x12d)](this[_0x1744a0(0xfa)]))['subscribe'](_0x4fcb35=>{var _0x2b12b4=_0x1744a0;switch(_0x4fcb35){case _0xa5d4d8[_0x2b12b4(0x100)][_0x2b12b4(0xd1)]:this[_0x2b12b4(0x18b)]();break;case _0xa5d4d8['SessionStatus'][_0x2b12b4(0x13f)]:this['_handleOnline']();break;}}),this[_0x1744a0(0x194)]['event$'][_0x1744a0(0x177)](_0x2713ad[_0x1744a0(0x12d)](this[_0x1744a0(0xfa)]))[_0x1744a0(0x14e)](_0x17c084=>{var _0x15e543=_0x1744a0;const {eventID:_0x37d5dd}=_0x17c084;switch(_0x37d5dd){case _0x38af53['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x15e543(0x199)](_0x17c084);break;case _0x38af53[_0x15e543(0xe7)][_0x15e543(0x19b)]:this[_0x15e543(0x148)](_0x17c084);break;case _0x38af53['CollaborationEvent'][_0x15e543(0x185)]:this[_0x15e543(0x17f)]();break;case _0x38af53[_0x15e543(0xe7)][_0x15e543(0xfd)]:this['_handleNewChangeSets'](_0x17c084);break;}}));}[_0x6c43c8(0xd9)](){var _0x5dd1ec=_0x6c43c8;this[_0x5dd1ec(0x194)]['send']({'eventID':_0x38af53[_0x5dd1ec(0xe7)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x5dd1ec(0xcd)],'userID':this[_0x5dd1ec(0x194)]['getMemberID']()}},this['_unitID']);}[_0x6c43c8(0xf3)](){var _0x2acd01=_0x6c43c8;this[_0x2acd01(0x163)]===_0x2acd01(0x16c)&&(this[_0x2acd01(0xf7)][_0x2acd01(0x125)](_0x2acd01(0xee)),this['_collabSession']['send']({'eventID':_0x38af53[_0x2acd01(0xe7)][_0x2acd01(0x185)],'data':{'unitID':this[_0x2acd01(0xcd)]}},this[_0x2acd01(0xcd)]));}['startFollowing'](){var _0xc3a6e0=_0x6c43c8;this['_status']===_0xc3a6e0(0xdd)&&(this[_0xc3a6e0(0xf7)][_0xc3a6e0(0x125)]('following'),this[_0xc3a6e0(0xdb)]());}['stopFollowing'](){var _0x14a1a4=_0x6c43c8;this[_0x14a1a4(0x163)]==='following'&&this[_0x14a1a4(0x181)]();}[_0x6c43c8(0x199)](_0x479100){var _0x57a1dd=_0x6c43c8;const {presenter:_0x41c7f5}=_0x479100[_0x57a1dd(0xfe)],_0x43daf1=this[_0x57a1dd(0x194)]['getMemberID']();this[_0x57a1dd(0x188)]=_0x41c7f5,_0x41c7f5===_0x43daf1?(this[_0x57a1dd(0x181)](),this[_0x57a1dd(0x1a2)]()):this['_status']!=='not-following'&&(this[_0x57a1dd(0x18e)](),this['_startFollowing']());}[_0x6c43c8(0x166)](){var _0x4d6598=_0x6c43c8;const _0x4929ac={'eventID':_0x38af53[_0x4d6598(0xe7)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x4d6598(0x194)][_0x4d6598(0x14f)](_0x4929ac,this[_0x4d6598(0xcd)]);}['_handleTerminate'](){var _0x4528a1=_0x6c43c8;this[_0x4528a1(0x188)]=null,this[_0x4528a1(0x163)]!==_0x4528a1(0x16c)&&this[_0x4528a1(0x18c)]();}[_0x6c43c8(0x128)](_0x51f2c3){var _0x272fd0=_0x6c43c8;if(this[_0x272fd0(0x163)]==='following'&&this[_0x272fd0(0x188)]===_0x51f2c3[_0x272fd0(0xfe)][_0x272fd0(0x156)]){const _0x3ed010=_0x38af53['parseProtocolChangeset'](_0x51f2c3[_0x272fd0(0xfe)])[_0x272fd0(0xbb)]['reverse']()[_0x272fd0(0x150)](_0x110d22=>_0x110d22['id']===_0x1607af[_0x272fd0(0x165)]['id']);if(_0x3ed010){const _0x437cb4=_0x3ed010[_0x272fd0(0x127)][_0x272fd0(0xd2)],_0x28c7c2=_0x3ed010['params'][_0x272fd0(0xf9)]['id'];setTimeout(()=>{var _0x5eeed5=_0x272fd0;this[_0x5eeed5(0x161)][_0x5eeed5(0xe8)](_0x1607af['SetWorksheetActiveOperation']['id'],{'unitId':_0x437cb4,'subUnitId':_0x28c7c2},{'fromCollab':!0x0});});}}}[_0x6c43c8(0x1a2)](){var _0x29ddfe=_0x6c43c8;this[_0x29ddfe(0xf7)]['next'](_0x29ddfe(0x16c));const _0x129e72=new Map(),_0x5530cd=this[_0x29ddfe(0x11a)]=new _0x18c975[(_0x29ddfe(0x151))]();_0x5530cd[_0x29ddfe(0xdf)](_0x18c975[_0x29ddfe(0x122)](()=>{var _0x5b2e5f=_0x29ddfe;_0x129e72['forEach'](_0x58ac94=>_0x58ac94[_0x5b2e5f(0x157)]()),_0x129e72[_0x5b2e5f(0xf5)]();})),_0x5530cd['add'](this[_0x29ddfe(0x161)][_0x29ddfe(0xbf)](_0x16c6ca=>{var _0x351d33=_0x29ddfe,_0x72be3d;if(_0x16c6ca[_0x351d33(0xfb)]!==_0x18c975['CommandType']['OPERATION']||!this['_liveShareService']['shouldShareOperation'](_0x16c6ca['id']))return;const {id:_0x53bb51}=_0x16c6ca;let _0x2ba036;_0x129e72[_0x351d33(0xc3)](_0x53bb51)?_0x2ba036=_0x129e72[_0x351d33(0xb6)](_0x53bb51):(_0x2ba036=new _0x39be1c[(_0x351d33(0xe2))](),_0x129e72[_0x351d33(0x17e)](_0x53bb51,_0x2ba036),_0x2ba036[_0x351d33(0x177)](_0x2713ad[_0x351d33(0x162)]((_0x72be3d=this['_configService'][_0x351d33(0x13b)](_0xfbd5f7))!=null?_0x72be3d:_0x4a3938,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x351d33(0x14e)](_0x736294=>{var _0x31b551=_0x351d33;this[_0x31b551(0x194)]['send']({'eventID':_0x38af53['CollaborationEvent'][_0x31b551(0x19b)],'data':{'unitID':this['_unitID'],'operations':{[_0x736294['id']]:{'id':_0x736294['id'],'params':JSON[_0x31b551(0x14c)](_0x736294[_0x31b551(0x127)])}}}},this['_unitID']);})),_0x2ba036[_0x351d33(0x125)](_0x16c6ca);})),this[_0x29ddfe(0x15a)]['getInitialStates'](this[_0x29ddfe(0xcd)])['forEach'](_0x2d782a=>this[_0x29ddfe(0x194)]['send']({'eventID':_0x38af53[_0x29ddfe(0xe7)][_0x29ddfe(0x19b)],'data':{'unitID':this[_0x29ddfe(0xcd)],'operations':{[_0x2d782a['id']]:{'id':_0x2d782a['id'],'params':JSON[_0x29ddfe(0x14c)](_0x2d782a[_0x29ddfe(0x127)])}}}},this[_0x29ddfe(0xcd)]));}[_0x6c43c8(0x18e)](){var _0x17d786=_0x6c43c8,_0x22f5e1;this[_0x17d786(0xf7)][_0x17d786(0x125)](_0x17d786(0xee)),(_0x22f5e1=this[_0x17d786(0x11a)])==null||_0x22f5e1[_0x17d786(0xda)](),this[_0x17d786(0x11a)]=null;}[_0x6c43c8(0xdb)](){var _0x323c8=_0x6c43c8,_0x29a2c0;(_0x29a2c0=this[_0x323c8(0x11a)])==null||_0x29a2c0[_0x323c8(0xda)](),this[_0x323c8(0xf7)][_0x323c8(0x125)](_0x323c8(0xef));}['_beIdle'](){var _0x5efa7f=_0x6c43c8,_0x380418;this[_0x5efa7f(0xf7)][_0x5efa7f(0x125)](_0x5efa7f(0xee)),(_0x380418=this[_0x5efa7f(0x11a)])==null||_0x380418[_0x5efa7f(0xda)](),this[_0x5efa7f(0x11a)]=null;}[_0x6c43c8(0x181)](){var _0x55ffcc=_0x6c43c8,_0x553693;this['_status$'][_0x55ffcc(0x125)]('not-following'),(_0x553693=this[_0x55ffcc(0x11a)])==null||_0x553693['dispose']();}[_0x6c43c8(0x148)](_0x500585){var _0x55c599=_0x6c43c8;if([_0x55c599(0x16c),_0x55c599(0xdd),_0x55c599(0xe3)]['includes'](this[_0x55c599(0x163)])||!_0x500585[_0x55c599(0xfe)][_0x55c599(0xed)]||_0x500585[_0x55c599(0xfe)][_0x55c599(0xed)]===this['_collabSession'][_0x55c599(0x1a3)]())return;this[_0x55c599(0x163)]===_0x55c599(0xee)&&this[_0x55c599(0xdb)]();const _0x333f0e=_0x500585[_0x55c599(0xfe)][_0x55c599(0x17c)];Object[_0x55c599(0x105)](_0x333f0e)['forEach'](_0x560cfb=>{var _0xeca833=_0x55c599;this[_0xeca833(0x161)][_0xeca833(0xe8)](_0x560cfb['id'],_0x560cfb[_0xeca833(0x127)]?JSON[_0xeca833(0x12e)](_0x560cfb[_0xeca833(0x127)]):null,{'fromCollab':!0x0});});}[_0x6c43c8(0x18b)](){var _0xaefa04=_0x6c43c8,_0x31e7e8;this[_0xaefa04(0xf7)][_0xaefa04(0x125)](_0xaefa04(0xe3)),(_0x31e7e8=this[_0xaefa04(0x11a)])==null||_0x31e7e8[_0xaefa04(0xda)]();}[_0x6c43c8(0x160)](){var _0x34ae3f=_0x6c43c8;this[_0x34ae3f(0xf7)][_0x34ae3f(0x125)](_0x34ae3f(0xee)),this[_0x34ae3f(0x166)]();}},_0x56f403[_0x6c43c8(0xe9)]=_0x58f080([_0x46df9b(0x2,_0x18c975[_0x6c43c8(0x119)]),_0x46df9b(0x3,_0x18c975['Inject'](_0x168d87)),_0x46df9b(0x4,_0x18c975[_0x6c43c8(0x14a)])],_0x56f403['LiveShareCoordinator']);function _0x5d1e89(){var _0xf83927=_0x6c43c8;const _0x57fe5d=_0x57e567[_0xf83927(0x15c)](_0x56f403['LiveShareController']),_0x5a81f9=_0x57e567[_0xf83927(0x15c)](_0x18c975[_0xf83927(0xca)]),_0x1afd72=_0x57e567[_0xf83927(0x10a)](()=>_0x5a81f9[_0xf83927(0xd6)](_0x18c975[_0xf83927(0x146)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3b5ef3,_0x4a27b5]=_0x3d191c['useState'](null),[_0x4d4f97,_0x2487f0]=_0x3d191c['useState'](_0x10e4f2[_0xf83927(0x189)]),_0x51e49f=_0x3d191c['useRef'](null);return _0x3d191c[_0xf83927(0x130)](()=>(_0x1afd72&&_0x57fe5d['getLiveShareCoordinator'](_0x1afd72[_0xf83927(0x142)]())[_0xf83927(0x170)](_0x5b9035=>{var _0x32812a=_0xf83927;_0x4a27b5(_0x5b9035),_0x51e49f[_0x32812a(0x117)]=_0x5b9035[_0x32812a(0xb3)][_0x32812a(0x14e)](_0x1fcaeb=>{_0x2487f0(_0x1fcaeb);});}),()=>{var _0x22c61b=_0xf83927,_0x136b16;(_0x136b16=_0x51e49f[_0x22c61b(0x117)])==null||_0x136b16[_0x22c61b(0x182)](),_0x51e49f['current']=null;}),[_0x1afd72,_0x57fe5d]),_0x3b5ef3?_0xbda168['jsx'](_0x2b0257[_0xf83927(0x11f)],{'align':_0xf83927(0x19c),'disabled':_0x4d4f97===_0x10e4f2['OFFLINE'],'className':_0xf83927(0x12c),'overlay':_0xbda168[_0xf83927(0x149)](_0x321939,{'status':_0x4d4f97,'coordinator':_0x3b5ef3}),'children':_0xbda168[_0xf83927(0x149)](_0xf83927(0xc6),{'className':_0x2b0257[_0xf83927(0x138)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x4d4f97===_0x10e4f2[_0xf83927(0xd1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4d4f97!==_0x10e4f2[_0xf83927(0xd1)]}),'type':_0xf83927(0xc6),'children':_0xbda168[_0xf83927(0x149)](_0x57bd5a,{'className':_0xf83927(0x136)})})}):null;}function _0x321939(_0x3e099c){var _0xaf3a2b=_0x6c43c8;const {status:_0x3fb201,coordinator:_0x4565a5}=_0x3e099c;switch(_0x3fb201){case _0x10e4f2[_0xaf3a2b(0x189)]:return _0xbda168[_0xaf3a2b(0x149)](_0x22ec26,{'coordinator':_0x4565a5});case _0x10e4f2[_0xaf3a2b(0xf1)]:return _0xbda168['jsx'](_0x1379ca,{'coordinator':_0x4565a5});case _0x10e4f2[_0xaf3a2b(0x139)]:return _0xbda168[_0xaf3a2b(0x149)](_0x1098c2,{'coordinator':_0x4565a5});case _0x10e4f2[_0xaf3a2b(0xd1)]:return _0xbda168[_0xaf3a2b(0x149)](_0x517d27,{});case _0x10e4f2[_0xaf3a2b(0x141)]:return _0xbda168['jsx'](_0xca8f29,{'coordinator':_0x4565a5});default:return null;}}function _0x22ec26(_0x3e7ed8){var _0x40b6d6=_0x6c43c8;const {coordinator:_0x2e5f92}=_0x3e7ed8;return _0xbda168[_0x40b6d6(0xd7)](_0xbda168[_0x40b6d6(0xc0)],{'children':[_0xbda168[_0x40b6d6(0x149)](_0x40b6d6(0x184),{'className':_0x40b6d6(0x171),'children':_0x40b6d6(0xf8)}),_0xbda168[_0x40b6d6(0x149)](_0x2b0257[_0x40b6d6(0xd0)],{'onClick':()=>_0x2e5f92[_0x40b6d6(0xd9)](),'children':_0x40b6d6(0x134)})]});}function _0x1379ca(_0x4dd5ba){var _0x384e68=_0x6c43c8;const {coordinator:_0x59b901}=_0x4dd5ba;return _0xbda168[_0x384e68(0xd7)](_0xbda168[_0x384e68(0xc0)],{'children':[_0xbda168[_0x384e68(0x149)](_0x384e68(0x184),{'className':_0x384e68(0x171),'children':_0x384e68(0x12b)}),_0xbda168[_0x384e68(0x149)](_0x2b0257[_0x384e68(0xd0)],{'onClick':()=>_0x59b901[_0x384e68(0x101)](),'children':'Stop\x20following'})]});}function _0x1098c2(_0x3bc3ad){var _0x559831=_0x6c43c8;const {coordinator:_0x19f84b}=_0x3bc3ad;return _0xbda168[_0x559831(0xd7)](_0xbda168['Fragment'],{'children':[_0xbda168[_0x559831(0x149)](_0x559831(0x184),{'className':_0x559831(0x171),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0xbda168[_0x559831(0x149)](_0x2b0257[_0x559831(0xd0)],{'variant':_0x559831(0x186),'onClick':()=>_0x19f84b[_0x559831(0x131)](),'children':_0x559831(0x108)})]});}function _0xca8f29(_0x5b63a0){var _0x10195a=_0x6c43c8;const {coordinator:_0x4956b3}=_0x5b63a0;return _0xbda168[_0x10195a(0xd7)](_0xbda168[_0x10195a(0xc0)],{'children':[_0xbda168[_0x10195a(0x149)](_0x10195a(0x184),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x10195a(0x180)}),_0xbda168[_0x10195a(0x149)](_0x2b0257['Button'],{'variant':_0x10195a(0x1a0),'onClick':()=>_0x4956b3[_0x10195a(0xf3)](),'children':_0x10195a(0x16d)})]});}function _0x517d27(){var _0x999026=_0x6c43c8;return _0xbda168[_0x999026(0x149)](_0xbda168['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x3b64b4=Object[_0x6c43c8(0xd4)],_0x2af859=(_0x3d30f1,_0x49bcaf,_0x35ec43,_0x530d51)=>{var _0x422716=_0x6c43c8;for(var _0x3d15e8=_0x530d51>0x1?void 0x0:_0x530d51?_0x3b64b4(_0x49bcaf,_0x35ec43):_0x49bcaf,_0x499420=_0x3d30f1[_0x422716(0x16a)]-0x1,_0x9225b0;_0x499420>=0x0;_0x499420--)(_0x9225b0=_0x3d30f1[_0x499420])&&(_0x3d15e8=_0x9225b0(_0x3d15e8)||_0x3d15e8);return _0x3d15e8;},_0x3d785a=(_0x5254a7,_0x5ba883)=>(_0x5f4cf1,_0x1fc28c)=>_0x5ba883(_0x5f4cf1,_0x1fc28c,_0x5254a7);_0x56f403[_0x6c43c8(0x190)]=class extends _0x18c975[_0x6c43c8(0x19d)]{constructor(_0x5449fb,_0x5d8284){var _0x483414=_0x6c43c8;super(),this[_0x483414(0xb9)]=_0x5449fb,this[_0x483414(0x167)]=_0x5d8284,this[_0x483414(0x17a)]();}['_mountLiveShare'](){var _0x19675e=_0x6c43c8;this[_0x19675e(0xb4)](this[_0x19675e(0x167)][_0x19675e(0x102)](_0x57e567[_0x19675e(0x173)][_0x19675e(0x17b)],()=>_0x57e567['connectInjector'](_0x5d1e89,this[_0x19675e(0xb9)])));}},_0x56f403[_0x6c43c8(0x190)]=_0x2af859([_0x3d785a(0x0,_0x18c975[_0x6c43c8(0xd3)](_0x18c975['Injector'])),_0x3d785a(0x1,_0x57e567[_0x6c43c8(0x152)])],_0x56f403['DesktopLiveShareController']);const _0x4f8eb8=_0x6c43c8(0x10f),_0x2a683e={};var _0x2fa5a5=Object['getOwnPropertyDescriptor'],_0x1cdb90=(_0x24cb7c,_0x3d3d7d,_0x41f763,_0x2a08cb)=>{for(var _0x5e3200=_0x2a08cb>0x1?void 0x0:_0x2a08cb?_0x2fa5a5(_0x3d3d7d,_0x41f763):_0x3d3d7d,_0x5b7cf9=_0x24cb7c['length']-0x1,_0x148656;_0x5b7cf9>=0x0;_0x5b7cf9--)(_0x148656=_0x24cb7c[_0x5b7cf9])&&(_0x5e3200=_0x148656(_0x5e3200)||_0x5e3200);return _0x5e3200;},_0x4720b0=(_0x5d18d4,_0x3243c3)=>(_0x114520,_0x5bcdd3)=>_0x3243c3(_0x114520,_0x5bcdd3,_0x5d18d4);let _0x5d0a76=class extends _0x18c975['Disposable']{constructor(_0x43fc70){var _0x484a52=_0x6c43c8;super(),this[_0x484a52(0x15a)]=_0x43fc70,this['_init']();}[_0x6c43c8(0xc9)](){var _0x22c769=_0x6c43c8;[_0x47abe2[_0x22c769(0x179)]['id'],_0x47abe2[_0x22c769(0xde)]['id'],_0x1607af[_0x22c769(0x147)]['id']][_0x22c769(0xb2)](_0x42a372=>{var _0x568181=_0x22c769;this[_0x568181(0xb4)](this['_liveShareService'][_0x568181(0xf2)](_0x42a372));});}};_0x5d0a76=_0x1cdb90([_0x4720b0(0x0,_0x18c975['Inject'](_0x168d87))],_0x5d0a76);var _0x119529=Object['defineProperty'],_0x472f07=Object[_0x6c43c8(0xd4)],_0x2a0eac=(_0x3cb576,_0x1485ab,_0xcc6db8)=>_0x1485ab in _0x3cb576?_0x119529(_0x3cb576,_0x1485ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xcc6db8}):_0x3cb576[_0x1485ab]=_0xcc6db8,_0x161118=(_0x3245ab,_0x384c9a,_0x5be301,_0x59130e)=>{var _0x4c8354=_0x6c43c8;for(var _0x576fae=_0x59130e>0x1?void 0x0:_0x59130e?_0x472f07(_0x384c9a,_0x5be301):_0x384c9a,_0x41f819=_0x3245ab[_0x4c8354(0x16a)]-0x1,_0x1837b7;_0x41f819>=0x0;_0x41f819--)(_0x1837b7=_0x3245ab[_0x41f819])&&(_0x576fae=_0x1837b7(_0x576fae)||_0x576fae);return _0x576fae;},_0x5c162e=(_0x424e36,_0x710889)=>(_0x29e03d,_0x39ef7f)=>_0x710889(_0x29e03d,_0x39ef7f,_0x424e36),_0x5c74dc=(_0x51128d,_0x292815,_0x377d28)=>_0x2a0eac(_0x51128d,typeof _0x292815!=_0x6c43c8(0x17d)?_0x292815+'':_0x292815,_0x377d28);const _0x34a63b=_0x6c43c8(0x174);_0x56f403['UniverLiveSharePlugin']=class extends _0x18c975[_0x6c43c8(0x169)]{constructor(_0x272146=_0x2a683e,_0x5b64e3,_0x59d62e){var _0x41cd74=_0x6c43c8;super(),this[_0x41cd74(0x115)]=_0x272146,this['_injector']=_0x5b64e3,this[_0x41cd74(0xe5)]=_0x59d62e;const {..._0x360845}=_0x18c975[_0x41cd74(0xf0)]({},_0x2a683e,this[_0x41cd74(0x115)]);this[_0x41cd74(0xe5)][_0x41cd74(0x155)](_0x4f8eb8,_0x360845);}[_0x6c43c8(0x159)](){var _0x83f514=_0x6c43c8;_0x18c975[_0x83f514(0x158)](this[_0x83f514(0xb9)],_0x18c975[_0x83f514(0x118)]([[_0x168d87],[_0x56f403[_0x83f514(0x16e)]],[_0x5d0a76],[_0x56f403['DesktopLiveShareController']]],this['_config'][_0x83f514(0x13c)])),_0x18c975[_0x83f514(0x196)](this[_0x83f514(0xb9)],[[_0x5d0a76]]);}['onRendered'](){var _0xd334e1=_0x6c43c8;_0x18c975[_0xd334e1(0x196)](this['_injector'],[[_0x56f403[_0xd334e1(0x190)]]]);}},_0x5c74dc(_0x56f403[_0x6c43c8(0x103)],_0x6c43c8(0xfb),_0x18c975['UniverInstanceType']['UNIVER_UNKNOWN']),_0x5c74dc(_0x56f403['UniverLiveSharePlugin'],_0x6c43c8(0x144),_0x34a63b),_0x56f403[_0x6c43c8(0x103)]=_0x161118([_0x18c975['DependentOn'](_0xa5d4d8[_0x6c43c8(0x178)]),_0x5c162e(0x1,_0x18c975['Inject'](_0x18c975[_0x6c43c8(0x11e)])),_0x5c162e(0x2,_0x18c975['IConfigService'])],_0x56f403[_0x6c43c8(0x103)]),_0x56f403[_0x6c43c8(0x19f)]=_0x5d1e89,_0x56f403[_0x6c43c8(0x111)]=_0x168d87,_0x56f403[_0x6c43c8(0x106)]=_0x10e4f2,Object[_0x6c43c8(0x112)](_0x56f403,Symbol[_0x6c43c8(0x13d)],{'value':_0x6c43c8(0x113)});}));
|
|
1
|
+
function _0x3b95(_0xe30e3,_0x257a0b){var _0x9d36f9=_0x9d36();return _0x3b95=function(_0x3b9598,_0x273867){_0x3b9598=_0x3b9598-0x1ae;var _0x42a35a=_0x9d36f9[_0x3b9598];return _0x42a35a;},_0x3b95(_0xe30e3,_0x257a0b);}(function(_0x3025c3,_0x49ed5d){var _0x37b16a=_0x3b95,_0x1acede=_0x3025c3();while(!![]){try{var _0x675039=-parseInt(_0x37b16a(0x1ee))/0x1*(-parseInt(_0x37b16a(0x278))/0x2)+-parseInt(_0x37b16a(0x259))/0x3*(parseInt(_0x37b16a(0x240))/0x4)+-parseInt(_0x37b16a(0x268))/0x5*(parseInt(_0x37b16a(0x1fc))/0x6)+-parseInt(_0x37b16a(0x231))/0x7+-parseInt(_0x37b16a(0x2a4))/0x8+parseInt(_0x37b16a(0x23e))/0x9*(parseInt(_0x37b16a(0x21e))/0xa)+-parseInt(_0x37b16a(0x270))/0xb*(-parseInt(_0x37b16a(0x1c2))/0xc);if(_0x675039===_0x49ed5d)break;else _0x1acede['push'](_0x1acede['shift']());}catch(_0xe1534f){_0x1acede['push'](_0x1acede['shift']());}}}(_0x9d36,0x70cad),function(_0x9b32e,_0x415979){var _0x3a6281=_0x3b95;typeof exports==_0x3a6281(0x217)&&typeof module<'u'?_0x415979(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==_0x3a6281(0x241)&&define[_0x3a6281(0x1fa)]?define([_0x3a6281(0x1f2),_0x3a6281(0x229),'@univerjs/ui','react/jsx-runtime',_0x3a6281(0x265),'react',_0x3a6281(0x235),_0x3a6281(0x24f),_0x3a6281(0x27d),'rxjs','rxjs/operators',_0x3a6281(0x1f9)],_0x415979):(_0x9b32e=typeof globalThis<'u'?globalThis:_0x9b32e||self,_0x415979(_0x9b32e['UniverProLiveShare']={},_0x9b32e[_0x3a6281(0x28f)],_0x9b32e[_0x3a6281(0x296)],_0x9b32e[_0x3a6281(0x2a1)],_0x9b32e[_0x3a6281(0x288)],_0x9b32e[_0x3a6281(0x2a1)],_0x9b32e[_0x3a6281(0x274)],_0x9b32e[_0x3a6281(0x22d)],_0x9b32e[_0x3a6281(0x246)],_0x9b32e[_0x3a6281(0x260)],_0x9b32e[_0x3a6281(0x260)][_0x3a6281(0x239)],_0x9b32e[_0x3a6281(0x280)]));}(this,function(_0x3c21f6,_0x23cc24,_0x2efcc8,_0x1b69d3,_0x2187b7,_0x5d9010,_0x2cbf96,_0x5cc39f,_0x3f165a,_0xfdc195,_0x204190,_0x5d1820){'use strict';var _0x24ebc1=_0x3b95;var _0x2cff48=Object[_0x24ebc1(0x257)],_0x22e08=(_0x13a80b,_0xddfd1e,_0x5a87e1)=>_0xddfd1e in _0x13a80b?_0x2cff48(_0x13a80b,_0xddfd1e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a87e1}):_0x13a80b[_0xddfd1e]=_0x5a87e1,_0x54ade9=(_0x238d6e,_0x370e20,_0xf506b8)=>_0x22e08(_0x238d6e,typeof _0x370e20!=_0x24ebc1(0x21b)?_0x370e20+'':_0x370e20,_0xf506b8),_0x309fa4=function(){var _0x49b50d=_0x24ebc1;return _0x309fa4=Object['assign']||function(_0x5920cc){var _0x5e75bd=_0x3b95;for(var _0x8f05cb,_0x4346b1=0x1,_0x36bcdf=arguments[_0x5e75bd(0x2a7)];_0x4346b1<_0x36bcdf;_0x4346b1++){_0x8f05cb=arguments[_0x4346b1];for(var _0x10ed5b in _0x8f05cb)Object['prototype'][_0x5e75bd(0x1f1)][_0x5e75bd(0x1e7)](_0x8f05cb,_0x10ed5b)&&(_0x5920cc[_0x10ed5b]=_0x8f05cb[_0x10ed5b]);}return _0x5920cc;},_0x309fa4[_0x49b50d(0x1be)](this,arguments);},_0x18e9a8=function(_0x5d91ab,_0x3a2f76){var _0x2b2b64=_0x24ebc1,_0x4f551b={};for(var _0x27b407 in _0x5d91ab)Object[_0x2b2b64(0x1de)]['hasOwnProperty'][_0x2b2b64(0x1e7)](_0x5d91ab,_0x27b407)&&_0x3a2f76[_0x2b2b64(0x221)](_0x27b407)<0x0&&(_0x4f551b[_0x27b407]=_0x5d91ab[_0x27b407]);if(_0x5d91ab!=null&&typeof Object[_0x2b2b64(0x1bf)]==_0x2b2b64(0x241)){for(var _0x357f43=0x0,_0x27b407=Object[_0x2b2b64(0x1bf)](_0x5d91ab);_0x357f43<_0x27b407[_0x2b2b64(0x2a7)];_0x357f43++)_0x3a2f76[_0x2b2b64(0x221)](_0x27b407[_0x357f43])<0x0&&Object['prototype'][_0x2b2b64(0x273)][_0x2b2b64(0x1e7)](_0x5d91ab,_0x27b407[_0x357f43])&&(_0x4f551b[_0x27b407[_0x357f43]]=_0x5d91ab[_0x27b407[_0x357f43]]);}return _0x4f551b;},_0x55cb36=_0x5d9010['forwardRef'](function(_0x3d84f4,_0x2d0c37){var _0x15f610=_0x24ebc1,_0x42348a=_0x3d84f4['icon'],_0x13d99e=_0x3d84f4['id'],_0x32e496=_0x3d84f4[_0x15f610(0x271)],_0x5740de=_0x3d84f4[_0x15f610(0x1f5)],_0x45d8d6=_0x18e9a8(_0x3d84f4,[_0x15f610(0x1b9),'id',_0x15f610(0x271),_0x15f610(0x1f5)]),_0x2ddbd2=_0x15f610(0x1e1)[_0x15f610(0x1db)](_0x13d99e,'\x20')['concat'](_0x32e496||'')[_0x15f610(0x282)](),_0x4c7c8a=_0x5d9010[_0x15f610(0x25d)]('_'['concat'](_0x1d98ac()));return _0x2c187f(_0x42348a,''[_0x15f610(0x1db)](_0x13d99e),{'defIds':_0x42348a['defIds'],'idSuffix':_0x4c7c8a[_0x15f610(0x1ae)]},_0x309fa4({'ref':_0x2d0c37,'className':_0x2ddbd2},_0x45d8d6),_0x5740de);});function _0x2c187f(_0x3aa941,_0x310a43,_0x2409b2,_0x53a77e,_0x3cf3e7){var _0x236bf6=_0x24ebc1;return _0x5d9010[_0x236bf6(0x1c1)](_0x3aa941[_0x236bf6(0x1d6)],_0x309fa4(_0x309fa4({'key':_0x310a43},_0x412819(_0x3aa941,_0x2409b2,_0x3cf3e7)),_0x53a77e),(_0x5f1526(_0x3aa941,_0x2409b2)[_0x236bf6(0x1e9)]||[])['map'](function(_0x19aecf,_0x5503a7){var _0x41df44=_0x236bf6;return _0x2c187f(_0x19aecf,''['concat'](_0x310a43,'-')[_0x41df44(0x1db)](_0x3aa941[_0x41df44(0x1d6)],'-')[_0x41df44(0x1db)](_0x5503a7),_0x2409b2,void 0x0,_0x3cf3e7);}));}function _0x412819(_0x20ac1c,_0xa6f462,_0x249746){var _0x4a13cd=_0x24ebc1,_0x211c87=_0x309fa4({},_0x20ac1c[_0x4a13cd(0x21d)]);_0x249746!=null&&_0x249746['colorChannel1']&&_0x211c87['fill']==='colorChannel1'&&(_0x211c87[_0x4a13cd(0x242)]=_0x249746['colorChannel1']),_0x20ac1c[_0x4a13cd(0x1d6)]===_0x4a13cd(0x1e8)&&_0x211c87['id']&&(_0x211c87['id']=_0x211c87['id']+_0xa6f462[_0x4a13cd(0x204)]),Object[_0x4a13cd(0x1cc)](_0x211c87)[_0x4a13cd(0x28a)](function(_0xcf8ec2){var _0x5cf7fb=_0x4a13cd,_0x3ae4e8=_0xcf8ec2[0x0],_0xb96412=_0xcf8ec2[0x1];_0x3ae4e8==='mask'&&typeof _0xb96412==_0x5cf7fb(0x228)&&(_0x211c87[_0x3ae4e8]=_0xb96412[_0x5cf7fb(0x262)](/url\(#(.*)\)/,_0x5cf7fb(0x243)[_0x5cf7fb(0x1db)](_0xa6f462['idSuffix'],')')));});var _0x1d01f7=_0xa6f462['defIds'];return!_0x1d01f7||_0x1d01f7['length']===0x0||(_0x20ac1c['tag']===_0x4a13cd(0x29e)&&_0x211c87[_0x4a13cd(0x20f)]&&(_0x211c87['xlink:href']=_0x211c87['xlink:href']+_0xa6f462[_0x4a13cd(0x204)]),Object[_0x4a13cd(0x1cc)](_0x211c87)[_0x4a13cd(0x28a)](function(_0x2c478b){var _0x8ec5ba=_0x4a13cd,_0x5b9618=_0x2c478b[0x0],_0x517fdd=_0x2c478b[0x1];typeof _0x517fdd==_0x8ec5ba(0x228)&&(_0x211c87[_0x5b9618]=_0x517fdd[_0x8ec5ba(0x262)](/url\(#(.*)\)/,_0x8ec5ba(0x243)[_0x8ec5ba(0x1db)](_0xa6f462[_0x8ec5ba(0x204)],')')));})),_0x211c87;}function _0x5f1526(_0x1cdb63,_0x1dc79f){var _0x523483=_0x24ebc1,_0x236d18,_0x47e52f=_0x1dc79f[_0x523483(0x250)];return!_0x47e52f||_0x47e52f[_0x523483(0x2a7)]===0x0?_0x1cdb63:_0x1cdb63[_0x523483(0x1d6)]===_0x523483(0x298)&&(!((_0x236d18=_0x1cdb63['children'])===null||_0x236d18===void 0x0)&&_0x236d18[_0x523483(0x2a7)])?_0x309fa4(_0x309fa4({},_0x1cdb63),{'children':_0x1cdb63[_0x523483(0x1e9)][_0x523483(0x22b)](function(_0x348a0b){var _0x5a119d=_0x523483;return typeof _0x348a0b[_0x5a119d(0x21d)]['id']=='string'&&_0x47e52f&&_0x47e52f[_0x5a119d(0x227)](_0x348a0b[_0x5a119d(0x21d)]['id'])?_0x309fa4(_0x309fa4({},_0x348a0b),{'attrs':_0x309fa4(_0x309fa4({},_0x348a0b[_0x5a119d(0x21d)]),{'id':_0x348a0b[_0x5a119d(0x21d)]['id']+_0x1dc79f[_0x5a119d(0x204)]})}):_0x348a0b;})}):_0x1cdb63;}function _0x1d98ac(){var _0xe6412d=_0x24ebc1;return Math['random']()[_0xe6412d(0x1f3)](0x24)['substring'](0x2,0x8);}_0x55cb36['displayName']=_0x24ebc1(0x1bd);var _0x42e5ec={'tag':_0x24ebc1(0x1c5),'attrs':{'xmlns':_0x24ebc1(0x218),'fill':_0x24ebc1(0x1bb),'viewBox':_0x24ebc1(0x1f6),'width':'1em','height':_0x24ebc1(0x1f4)},'children':[{'tag':_0x24ebc1(0x24d),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x24ebc1(0x24d),'attrs':{'fill':_0x24ebc1(0x292),'d':_0x24ebc1(0x28d),'fillRule':_0x24ebc1(0x26b),'clipRule':'evenodd'}}]},_0x2285c8=_0x5d9010[_0x24ebc1(0x1c6)](function(_0xcbfc39,_0x4f2ddd){var _0x4a3ecc=_0x24ebc1;return _0x5d9010['createElement'](_0x55cb36,Object['assign']({},_0xcbfc39,{'id':_0x4a3ecc(0x214),'ref':_0x4f2ddd,'icon':_0x42e5ec}));});_0x2285c8[_0x24ebc1(0x1d8)]=_0x24ebc1(0x25a);class _0x2e9741 extends _0x23cc24[_0x24ebc1(0x1d2)]{constructor(){var _0x55c05b=_0x24ebc1;super(...arguments),_0x54ade9(this,'_sharedOperations',new Set()),_0x54ade9(this,_0x55c05b(0x1d7),new Set());}['registerSharedOperation'](_0x2295c3){var _0x269402=_0x24ebc1;return this[_0x269402(0x24c)][_0x269402(0x276)](_0x2295c3),_0x23cc24[_0x269402(0x209)](()=>this['_sharedOperations'][_0x269402(0x252)](_0x2295c3));}['registerInitialStateReporter'](_0x3c3eab){var _0x2110ec=_0x24ebc1;return this[_0x2110ec(0x1d7)][_0x2110ec(0x276)](_0x3c3eab),_0x23cc24[_0x2110ec(0x209)](()=>this[_0x2110ec(0x1d7)][_0x2110ec(0x252)](_0x3c3eab));}[_0x24ebc1(0x294)](_0x3dbced){var _0x302e50=_0x24ebc1;return this[_0x302e50(0x24c)][_0x302e50(0x1ef)](_0x3dbced);}[_0x24ebc1(0x281)](_0x2d122e){var _0x3aa3d5=_0x24ebc1;return Array[_0x3aa3d5(0x220)](this[_0x3aa3d5(0x1d7)])['map'](_0x374332=>_0x374332(_0x2d122e));}}var _0x3d9c59=Object[_0x24ebc1(0x20a)],_0x4a36f2=(_0x14d58c,_0x5b8e93,_0xc72605,_0x3a7199)=>{for(var _0x14d9e1=_0x3a7199>0x1?void 0x0:_0x3a7199?_0x3d9c59(_0x5b8e93,_0xc72605):_0x5b8e93,_0x297681=_0x14d58c['length']-0x1,_0x5dc79c;_0x297681>=0x0;_0x297681--)(_0x5dc79c=_0x14d58c[_0x297681])&&(_0x14d9e1=_0x5dc79c(_0x14d9e1)||_0x14d9e1);return _0x14d9e1;},_0x4b8f30=(_0x19ade9,_0x4500af)=>(_0x4aa625,_0x13f36a)=>_0x4500af(_0x4aa625,_0x13f36a,_0x19ade9);_0x3c21f6[_0x24ebc1(0x26f)]=class extends _0x23cc24[_0x24ebc1(0x225)]{constructor(_0x14b71c,_0x2d453b,_0x327b43){var _0x23ecf2=_0x24ebc1;super(),_0x54ade9(this,_0x23ecf2(0x27c),new Map()),(this[_0x23ecf2(0x1e2)]=_0x14b71c,this[_0x23ecf2(0x2a6)]=_0x2d453b,this[_0x23ecf2(0x289)]=_0x327b43,this[_0x23ecf2(0x247)]());}async[_0x24ebc1(0x254)](_0xf0f976){var _0x4afb05=_0x24ebc1;return this[_0x4afb05(0x27c)][_0x4afb05(0x1ef)](_0xf0f976)||await this[_0x4afb05(0x222)](_0xf0f976),this['_entities']['get'](_0xf0f976);}[_0x24ebc1(0x247)](){var _0x589fc4=_0x24ebc1;this['_univerInstanceService'][_0x589fc4(0x1bc)](_0x23cc24[_0x589fc4(0x2a3)][_0x589fc4(0x264)])[_0x589fc4(0x1b2)](_0x204190[_0x589fc4(0x275)](this[_0x589fc4(0x1f0)]))[_0x589fc4(0x284)](async _0x1c4304=>{var _0x794221=_0x589fc4;const _0x3f727d=_0x1c4304[_0x794221(0x283)]();this[_0x794221(0x27c)]['has'](_0x3f727d)||this['_startLiveShareCoordinator'](_0x3f727d);}),this[_0x589fc4(0x1e2)][_0x589fc4(0x1c7)](_0x23cc24[_0x589fc4(0x2a3)][_0x589fc4(0x264)])[_0x589fc4(0x1b2)](_0x204190[_0x589fc4(0x275)](this[_0x589fc4(0x1f0)]))[_0x589fc4(0x284)](_0x16d553=>{var _0x19b51c=_0x589fc4;const _0x3301d2=_0x16d553['getUnitId'](),_0x3af6cb=this[_0x19b51c(0x27c)][_0x19b51c(0x212)](_0x3301d2);_0x3af6cb==null||_0x3af6cb['dispose']();});}async['_startLiveShareCoordinator'](_0x1f888d){var _0x3a93f9=_0x24ebc1;const _0x31defe=await this[_0x3a93f9(0x289)][_0x3a93f9(0x26e)](_0x1f888d),_0x470543=this[_0x3a93f9(0x2a6)][_0x3a93f9(0x232)](_0x3c21f6[_0x3a93f9(0x277)],_0x1f888d,_0x31defe);return _0x470543[_0x3a93f9(0x1fe)](),this[_0x3a93f9(0x27c)][_0x3a93f9(0x23c)](_0x1f888d,_0x470543),_0x470543;}},_0x3c21f6[_0x24ebc1(0x26f)]=_0x4a36f2([_0x4b8f30(0x0,_0x23cc24[_0x24ebc1(0x269)]),_0x4b8f30(0x1,_0x23cc24[_0x24ebc1(0x28c)](_0x23cc24[_0x24ebc1(0x223)])),_0x4b8f30(0x2,_0x23cc24[_0x24ebc1(0x28c)](_0x5cc39f[_0x24ebc1(0x205)]))],_0x3c21f6[_0x24ebc1(0x26f)]);var _0x177cb1=(_0xa63906=>(_0xa63906[_0x24ebc1(0x23b)]=_0x24ebc1(0x22c),_0xa63906[_0x24ebc1(0x244)]=_0x24ebc1(0x1b0),_0xa63906['FOLLOWING']=_0x24ebc1(0x248),_0xa63906[_0x24ebc1(0x27a)]=_0x24ebc1(0x253),_0xa63906[_0x24ebc1(0x206)]='presenting',_0xa63906))(_0x177cb1||{});const _0x1a7290=_0x24ebc1(0x1dd),_0x5e61d3=0xc8;_0x3c21f6[_0x24ebc1(0x277)]=class extends _0x23cc24['RxDisposable']{constructor(_0x2f5eac,_0x2a1533,_0x2a3fad,_0x3bce0c,_0x17742f){var _0x1a5f79=_0x24ebc1;super(),_0x54ade9(this,_0x1a5f79(0x203),new _0xfdc195[(_0x1a5f79(0x210))](_0x1a5f79(0x1b0))),_0x54ade9(this,_0x1a5f79(0x216),this['_status$']['asObservable']()),_0x54ade9(this,'_init',!0x1),_0x54ade9(this,'_commandDisposable',null),_0x54ade9(this,_0x1a5f79(0x291),null),(this[_0x1a5f79(0x24a)]=_0x2f5eac,this[_0x1a5f79(0x272)]=_0x2a1533,this[_0x1a5f79(0x1ec)]=_0x2a3fad,this[_0x1a5f79(0x1f7)]=_0x3bce0c,this[_0x1a5f79(0x1b3)]=_0x17742f);}get[_0x24ebc1(0x1b8)](){var _0x1ec484=_0x24ebc1;return this[_0x1ec484(0x203)]['getValue']();}[_0x24ebc1(0x297)](){var _0x52669d=_0x24ebc1,_0x40f098;(_0x40f098=this[_0x52669d(0x22a)])==null||_0x40f098[_0x52669d(0x297)](),this[_0x52669d(0x203)][_0x52669d(0x25b)](_0x52669d(0x1b0)),this[_0x52669d(0x203)][_0x52669d(0x1ba)]();}[_0x24ebc1(0x1fe)](){var _0x30bbe1=_0x24ebc1;this['_init']||(this['_init']=!0x0,this['_collabSession'][_0x30bbe1(0x219)][_0x30bbe1(0x1b2)](_0x204190[_0x30bbe1(0x275)](this[_0x30bbe1(0x1f0)]))[_0x30bbe1(0x284)](_0x3b62db=>{var _0x540178=_0x30bbe1;switch(_0x3b62db){case _0x5cc39f[_0x540178(0x1ed)][_0x540178(0x23b)]:this['_handleOffline']();break;case _0x5cc39f[_0x540178(0x1ed)][_0x540178(0x26a)]:this[_0x540178(0x237)]();break;}}),this[_0x30bbe1(0x272)][_0x30bbe1(0x1dc)][_0x30bbe1(0x1b2)](_0x204190[_0x30bbe1(0x275)](this['dispose$']))[_0x30bbe1(0x284)](_0x10e66a=>{var _0x4415d2=_0x30bbe1;const {eventID:_0x2978a2}=_0x10e66a;switch(_0x2978a2){case _0x2cbf96[_0x4415d2(0x28b)][_0x4415d2(0x1af)]:this[_0x4415d2(0x293)](_0x10e66a);break;case _0x2cbf96[_0x4415d2(0x28b)][_0x4415d2(0x29a)]:this['_handleOperation'](_0x10e66a);break;case _0x2cbf96[_0x4415d2(0x28b)]['LIVESHARE_TERMINATE']:this[_0x4415d2(0x2a2)]();break;case _0x2cbf96[_0x4415d2(0x28b)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x10e66a);break;}}));}['tryStartPresenting'](){var _0x412774=_0x24ebc1;this[_0x412774(0x272)][_0x412774(0x25e)]({'eventID':_0x2cbf96['CollaborationEvent'][_0x412774(0x21c)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x412774(0x1c4)]()}},this[_0x412774(0x24a)]);}[_0x24ebc1(0x290)](){var _0x273a94=_0x24ebc1;this[_0x273a94(0x1b8)]===_0x273a94(0x20e)&&(this[_0x273a94(0x203)][_0x273a94(0x25b)]('idle'),this['_collabSession']['send']({'eventID':_0x2cbf96['CollaborationEvent'][_0x273a94(0x245)],'data':{'unitID':this[_0x273a94(0x24a)]}},this[_0x273a94(0x24a)]));}[_0x24ebc1(0x21a)](){var _0xf28760=_0x24ebc1;this['_status']==='not-following'&&(this['_status$'][_0xf28760(0x25b)](_0xf28760(0x248)),this[_0xf28760(0x1b5)]());}['stopFollowing'](){var _0x4531d1=_0x24ebc1;this[_0x4531d1(0x1b8)]===_0x4531d1(0x248)&&this['_stopFollowing']();}[_0x24ebc1(0x293)](_0x273725){var _0x2ceaa2=_0x24ebc1;const {presenter:_0x34b356}=_0x273725[_0x2ceaa2(0x234)],_0x4df546=this['_collabSession'][_0x2ceaa2(0x1c4)]();this[_0x2ceaa2(0x291)]=_0x34b356,_0x34b356===_0x4df546?(this[_0x2ceaa2(0x1c9)](),this[_0x2ceaa2(0x1e6)]()):this[_0x2ceaa2(0x1b8)]!==_0x2ceaa2(0x253)&&(this[_0x2ceaa2(0x295)](),this[_0x2ceaa2(0x1b5)]());}[_0x24ebc1(0x1fb)](){var _0x53bece=_0x24ebc1;const _0x102437={'eventID':_0x2cbf96[_0x53bece(0x28b)][_0x53bece(0x266)]};this['_collabSession'][_0x53bece(0x25e)](_0x102437,this[_0x53bece(0x24a)]);}[_0x24ebc1(0x2a2)](){var _0x4987f5=_0x24ebc1;this[_0x4987f5(0x291)]=null,this['_status']!==_0x4987f5(0x20e)&&this[_0x4987f5(0x26c)]();}[_0x24ebc1(0x24b)](_0x418ccb){var _0x931004=_0x24ebc1;if(this[_0x931004(0x1b8)]===_0x931004(0x248)&&this[_0x931004(0x291)]===_0x418ccb[_0x931004(0x234)][_0x931004(0x22f)]){const _0x44853b=_0x2cbf96[_0x931004(0x29d)](_0x418ccb[_0x931004(0x234)])['mutations'][_0x931004(0x233)]()[_0x931004(0x27b)](_0x2f09f3=>_0x2f09f3['id']===_0x3f165a['InsertSheetMutation']['id']);if(_0x44853b){const _0x3de490=_0x44853b[_0x931004(0x1b1)]['unitId'],_0x358f74=_0x44853b[_0x931004(0x1b1)][_0x931004(0x230)]['id'];setTimeout(()=>{var _0x2919c6=_0x931004;this[_0x2919c6(0x1b3)]['executeCommand'](_0x3f165a[_0x2919c6(0x207)]['id'],{'unitId':_0x3de490,'subUnitId':_0x358f74},{'fromCollab':!0x0});});}}}[_0x24ebc1(0x1e6)](){var _0x50e8d7=_0x24ebc1;this[_0x50e8d7(0x203)][_0x50e8d7(0x25b)]('presenting');const _0x2f962e=new Map(),_0x307fbd=this[_0x50e8d7(0x22a)]=new _0x23cc24[(_0x50e8d7(0x1df))]();_0x307fbd['add'](_0x23cc24['toDisposable'](()=>{var _0x38ac61=_0x50e8d7;_0x2f962e[_0x38ac61(0x28a)](_0xbd8e7d=>_0xbd8e7d[_0x38ac61(0x1ba)]()),_0x2f962e[_0x38ac61(0x1ea)]();})),_0x307fbd[_0x50e8d7(0x276)](this[_0x50e8d7(0x1b3)][_0x50e8d7(0x1c3)](_0x266c61=>{var _0x13fbfc=_0x50e8d7,_0x58b159;if(_0x266c61[_0x13fbfc(0x24e)]!==_0x23cc24['CommandType']['OPERATION']||!this[_0x13fbfc(0x1f7)]['shouldShareOperation'](_0x266c61['id']))return;const {id:_0x289961}=_0x266c61;let _0xb716ef;_0x2f962e[_0x13fbfc(0x1ef)](_0x289961)?_0xb716ef=_0x2f962e[_0x13fbfc(0x212)](_0x289961):(_0xb716ef=new _0xfdc195['Subject'](),_0x2f962e[_0x13fbfc(0x23c)](_0x289961,_0xb716ef),_0xb716ef[_0x13fbfc(0x1b2)](_0x204190[_0x13fbfc(0x211)]((_0x58b159=this[_0x13fbfc(0x1ec)][_0x13fbfc(0x20d)](_0x1a7290))!=null?_0x58b159:_0x5e61d3,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x432a8b=>{var _0x4bc39e=_0x13fbfc;this[_0x4bc39e(0x272)][_0x4bc39e(0x25e)]({'eventID':_0x2cbf96[_0x4bc39e(0x28b)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x432a8b['id']]:{'id':_0x432a8b['id'],'params':JSON[_0x4bc39e(0x299)](_0x432a8b[_0x4bc39e(0x1b1)])}}}},this[_0x4bc39e(0x24a)]);})),_0xb716ef[_0x13fbfc(0x25b)](_0x266c61);})),this['_liveShareService'][_0x50e8d7(0x281)](this[_0x50e8d7(0x24a)])[_0x50e8d7(0x28a)](_0x2d4186=>this[_0x50e8d7(0x272)]['send']({'eventID':_0x2cbf96[_0x50e8d7(0x28b)][_0x50e8d7(0x29a)],'data':{'unitID':this['_unitID'],'operations':{[_0x2d4186['id']]:{'id':_0x2d4186['id'],'params':JSON[_0x50e8d7(0x299)](_0x2d4186['params'])}}}},this[_0x50e8d7(0x24a)]));}['_stopPresenting'](){var _0x44e4c1=_0x24ebc1,_0x3f717f;this[_0x44e4c1(0x203)][_0x44e4c1(0x25b)](_0x44e4c1(0x1b0)),(_0x3f717f=this[_0x44e4c1(0x22a)])==null||_0x3f717f[_0x44e4c1(0x297)](),this[_0x44e4c1(0x22a)]=null;}[_0x24ebc1(0x1b5)](){var _0x347fbf=_0x24ebc1,_0x5b410c;(_0x5b410c=this['_commandDisposable'])==null||_0x5b410c['dispose'](),this[_0x347fbf(0x203)][_0x347fbf(0x25b)]('following');}['_beIdle'](){var _0x5f4356=_0x24ebc1,_0x48d6b1;this['_status$'][_0x5f4356(0x25b)](_0x5f4356(0x1b0)),(_0x48d6b1=this[_0x5f4356(0x22a)])==null||_0x48d6b1[_0x5f4356(0x297)](),this[_0x5f4356(0x22a)]=null;}[_0x24ebc1(0x1c9)](){var _0x169491=_0x24ebc1,_0x341cba;this['_status$'][_0x169491(0x25b)](_0x169491(0x253)),(_0x341cba=this[_0x169491(0x22a)])==null||_0x341cba['dispose']();}['_handleOperation'](_0x3baa03){var _0x40cf01=_0x24ebc1;if([_0x40cf01(0x20e),_0x40cf01(0x253),_0x40cf01(0x22c)][_0x40cf01(0x227)](this[_0x40cf01(0x1b8)])||!_0x3baa03['data'][_0x40cf01(0x1fd)]||_0x3baa03['data'][_0x40cf01(0x1fd)]===this[_0x40cf01(0x272)]['getMemberID']())return;this[_0x40cf01(0x1b8)]===_0x40cf01(0x1b0)&&this[_0x40cf01(0x1b5)]();const _0x32e40c=_0x3baa03[_0x40cf01(0x234)][_0x40cf01(0x23d)];Object[_0x40cf01(0x1d1)](_0x32e40c)[_0x40cf01(0x28a)](_0x2b0549=>{var _0x10fe02=_0x40cf01;this['_commandService'][_0x10fe02(0x1cf)](_0x2b0549['id'],_0x2b0549[_0x10fe02(0x1b1)]?JSON[_0x10fe02(0x226)](_0x2b0549[_0x10fe02(0x1b1)]):null,{'fromCollab':!0x0});});}[_0x24ebc1(0x279)](){var _0x285fda=_0x24ebc1,_0x2ad980;this[_0x285fda(0x203)][_0x285fda(0x25b)](_0x285fda(0x22c)),(_0x2ad980=this['_commandDisposable'])==null||_0x2ad980[_0x285fda(0x297)]();}['_handleOnline'](){var _0x28db5f=_0x24ebc1;this[_0x28db5f(0x203)][_0x28db5f(0x25b)]('idle'),this['_fetchOperations']();}},_0x3c21f6[_0x24ebc1(0x277)]=_0x4a36f2([_0x4b8f30(0x2,_0x23cc24[_0x24ebc1(0x23a)]),_0x4b8f30(0x3,_0x23cc24['Inject'](_0x2e9741)),_0x4b8f30(0x4,_0x23cc24[_0x24ebc1(0x29f)])],_0x3c21f6[_0x24ebc1(0x277)]);function _0x48ca6d(){var _0x3d3bd2=_0x24ebc1;const _0x320831=_0x2efcc8[_0x3d3bd2(0x27e)](_0x3c21f6[_0x3d3bd2(0x26f)]),_0x18d2ab=_0x2efcc8[_0x3d3bd2(0x27e)](_0x23cc24[_0x3d3bd2(0x269)]),_0x4bb70e=_0x2efcc8[_0x3d3bd2(0x255)](()=>_0x18d2ab[_0x3d3bd2(0x20c)](_0x23cc24[_0x3d3bd2(0x2a3)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x10e79b,_0x397a8a]=_0x5d9010[_0x3d3bd2(0x20b)](null),[_0x53f832,_0x3a5e2c]=_0x5d9010[_0x3d3bd2(0x20b)](_0x177cb1[_0x3d3bd2(0x244)]),_0x101581=_0x5d9010['useRef'](null);return _0x5d9010[_0x3d3bd2(0x2a5)](()=>(_0x4bb70e&&_0x320831['getLiveShareCoordinator'](_0x4bb70e[_0x3d3bd2(0x283)]())[_0x3d3bd2(0x286)](_0x28e30d=>{var _0x3b6296=_0x3d3bd2;_0x397a8a(_0x28e30d),_0x101581['current']=_0x28e30d[_0x3b6296(0x216)][_0x3b6296(0x284)](_0x439118=>{_0x3a5e2c(_0x439118);});}),()=>{var _0x27ecc9=_0x3d3bd2,_0x918283;(_0x918283=_0x101581['current'])==null||_0x918283[_0x27ecc9(0x29c)](),_0x101581[_0x27ecc9(0x1ae)]=null;}),[_0x4bb70e,_0x320831]),_0x10e79b?_0x1b69d3[_0x3d3bd2(0x1eb)](_0x2187b7[_0x3d3bd2(0x1cd)],{'align':_0x3d3bd2(0x1b7),'disabled':_0x53f832===_0x177cb1['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':_0x1b69d3[_0x3d3bd2(0x1eb)](_0x492257,{'status':_0x53f832,'coordinator':_0x10e79b}),'children':_0x1b69d3['jsx'](_0x3d3bd2(0x2a0),{'className':_0x2187b7[_0x3d3bd2(0x1d3)](_0x3d3bd2(0x22e),{'univer-cursor-not-allowed':_0x53f832===_0x177cb1[_0x3d3bd2(0x23b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x53f832!==_0x177cb1[_0x3d3bd2(0x23b)]}),'type':'button','children':_0x1b69d3[_0x3d3bd2(0x1eb)](_0x2285c8,{'className':_0x3d3bd2(0x1cb)})})}):null;}function _0x492257(_0x3381a2){var _0x4a7b17=_0x24ebc1;const {status:_0x3e5e8a,coordinator:_0x2b0fb4}=_0x3381a2;switch(_0x3e5e8a){case _0x177cb1['IDLE']:return _0x1b69d3[_0x4a7b17(0x1eb)](_0x319e2b,{'coordinator':_0x2b0fb4});case _0x177cb1[_0x4a7b17(0x256)]:return _0x1b69d3[_0x4a7b17(0x1eb)](_0x3c4d39,{'coordinator':_0x2b0fb4});case _0x177cb1[_0x4a7b17(0x27a)]:return _0x1b69d3['jsx'](_0x26b75d,{'coordinator':_0x2b0fb4});case _0x177cb1[_0x4a7b17(0x23b)]:return _0x1b69d3['jsx'](_0x36162a,{});case _0x177cb1[_0x4a7b17(0x206)]:return _0x1b69d3[_0x4a7b17(0x1eb)](_0x2140f2,{'coordinator':_0x2b0fb4});default:return null;}}function _0x319e2b(_0x2fc69d){var _0x5dba98=_0x24ebc1;const {coordinator:_0x56da2b}=_0x2fc69d;return _0x1b69d3['jsxs'](_0x1b69d3[_0x5dba98(0x224)],{'children':[_0x1b69d3[_0x5dba98(0x1eb)]('div',{'className':_0x5dba98(0x258),'children':_0x5dba98(0x1e5)}),_0x1b69d3[_0x5dba98(0x1eb)](_0x2187b7['Button'],{'onClick':()=>_0x56da2b[_0x5dba98(0x263)](),'children':_0x5dba98(0x285)})]});}function _0x3c4d39(_0x31912c){var _0x2db537=_0x24ebc1;const {coordinator:_0x2446f2}=_0x31912c;return _0x1b69d3[_0x2db537(0x1b4)](_0x1b69d3[_0x2db537(0x224)],{'children':[_0x1b69d3[_0x2db537(0x1eb)]('div',{'className':_0x2db537(0x258),'children':_0x2db537(0x1b6)}),_0x1b69d3[_0x2db537(0x1eb)](_0x2187b7[_0x2db537(0x23f)],{'onClick':()=>_0x2446f2[_0x2db537(0x215)](),'children':_0x2db537(0x208)})]});}function _0x26b75d(_0x45d2f5){var _0x2729e3=_0x24ebc1;const {coordinator:_0x569408}=_0x45d2f5;return _0x1b69d3[_0x2729e3(0x1b4)](_0x1b69d3['Fragment'],{'children':[_0x1b69d3['jsx'](_0x2729e3(0x249),{'className':_0x2729e3(0x258),'children':_0x2729e3(0x238)}),_0x1b69d3[_0x2729e3(0x1eb)](_0x2187b7[_0x2729e3(0x23f)],{'variant':_0x2729e3(0x21f),'onClick':()=>_0x569408[_0x2729e3(0x21a)](),'children':'Start\x20following'})]});}function _0x2140f2(_0x190e56){var _0x1d2de9=_0x24ebc1;const {coordinator:_0x4681a0}=_0x190e56;return _0x1b69d3[_0x1d2de9(0x1b4)](_0x1b69d3['Fragment'],{'children':[_0x1b69d3['jsx'](_0x1d2de9(0x249),{'className':_0x1d2de9(0x258),'children':_0x1d2de9(0x201)}),_0x1b69d3['jsx'](_0x2187b7[_0x1d2de9(0x23f)],{'variant':_0x1d2de9(0x287),'onClick':()=>_0x4681a0['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x36162a(){var _0x5a9915=_0x24ebc1;return _0x1b69d3[_0x5a9915(0x1eb)](_0x1b69d3[_0x5a9915(0x224)],{'children':_0x5a9915(0x1d5)});}var _0x565773=Object[_0x24ebc1(0x20a)],_0x327e90=(_0xe9cde2,_0x210cd4,_0x20a643,_0x25fcb3)=>{var _0x144f2e=_0x24ebc1;for(var _0x560a8f=_0x25fcb3>0x1?void 0x0:_0x25fcb3?_0x565773(_0x210cd4,_0x20a643):_0x210cd4,_0x5d185e=_0xe9cde2[_0x144f2e(0x2a7)]-0x1,_0x2c9d6d;_0x5d185e>=0x0;_0x5d185e--)(_0x2c9d6d=_0xe9cde2[_0x5d185e])&&(_0x560a8f=_0x2c9d6d(_0x560a8f)||_0x560a8f);return _0x560a8f;},_0x379236=(_0x3fc939,_0x409bd7)=>(_0x377e0b,_0x143519)=>_0x409bd7(_0x377e0b,_0x143519,_0x3fc939);_0x3c21f6['DesktopLiveShareController']=class extends _0x23cc24[_0x24ebc1(0x1d2)]{constructor(_0x1087df,_0x20c660){var _0x2c2873=_0x24ebc1;super(),this[_0x2c2873(0x2a6)]=_0x1087df,this[_0x2c2873(0x27f)]=_0x20c660,this[_0x2c2873(0x28e)]();}[_0x24ebc1(0x28e)](){var _0x388920=_0x24ebc1;this[_0x388920(0x25f)](this[_0x388920(0x27f)]['registerComponent'](_0x2efcc8[_0x388920(0x202)][_0x388920(0x1e3)],()=>_0x2efcc8[_0x388920(0x200)](_0x48ca6d,this['_injector'])));}},_0x3c21f6[_0x24ebc1(0x26d)]=_0x327e90([_0x379236(0x0,_0x23cc24[_0x24ebc1(0x28c)](_0x23cc24[_0x24ebc1(0x223)])),_0x379236(0x1,_0x2efcc8['IUIPartsService'])],_0x3c21f6[_0x24ebc1(0x26d)]);const _0x2caad9=_0x24ebc1(0x1ff),_0x470112={};var _0x327b69=Object[_0x24ebc1(0x20a)],_0x4ee11c=(_0x2055b6,_0x275094,_0x2e20ac,_0x478382)=>{var _0x2d99c9=_0x24ebc1;for(var _0xb5d950=_0x478382>0x1?void 0x0:_0x478382?_0x327b69(_0x275094,_0x2e20ac):_0x275094,_0xa6faca=_0x2055b6[_0x2d99c9(0x2a7)]-0x1,_0x853bf8;_0xa6faca>=0x0;_0xa6faca--)(_0x853bf8=_0x2055b6[_0xa6faca])&&(_0xb5d950=_0x853bf8(_0xb5d950)||_0xb5d950);return _0xb5d950;},_0x5f1115=(_0x118847,_0x1ef671)=>(_0x2a0c67,_0x1c73ba)=>_0x1ef671(_0x2a0c67,_0x1c73ba,_0x118847);let _0x53ccd0=class extends _0x23cc24['Disposable']{constructor(_0xaef9a4){var _0x1dc186=_0x24ebc1;super(),this[_0x1dc186(0x1f7)]=_0xaef9a4,this[_0x1dc186(0x247)]();}[_0x24ebc1(0x247)](){var _0x22c1e6=_0x24ebc1;[_0x5d1820[_0x22c1e6(0x25c)]['id'],_0x5d1820[_0x22c1e6(0x1da)]['id'],_0x3f165a[_0x22c1e6(0x207)]['id']][_0x22c1e6(0x28a)](_0x25aa12=>{var _0x1f6515=_0x22c1e6;this['disposeWithMe'](this[_0x1f6515(0x1f7)][_0x1f6515(0x261)](_0x25aa12));});}};_0x53ccd0=_0x4ee11c([_0x5f1115(0x0,_0x23cc24[_0x24ebc1(0x28c)](_0x2e9741))],_0x53ccd0);var _0x573fda=Object['defineProperty'],_0x460c53=Object[_0x24ebc1(0x20a)],_0x1b714d=(_0x5543f3,_0x79aaf0,_0xf486c6)=>_0x79aaf0 in _0x5543f3?_0x573fda(_0x5543f3,_0x79aaf0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf486c6}):_0x5543f3[_0x79aaf0]=_0xf486c6,_0x479f85=(_0xb53b6a,_0x4aaa52,_0x43a6c7,_0x44b3ba)=>{for(var _0x5a8ed3=_0x44b3ba>0x1?void 0x0:_0x44b3ba?_0x460c53(_0x4aaa52,_0x43a6c7):_0x4aaa52,_0x578eb9=_0xb53b6a['length']-0x1,_0x20735a;_0x578eb9>=0x0;_0x578eb9--)(_0x20735a=_0xb53b6a[_0x578eb9])&&(_0x5a8ed3=_0x20735a(_0x5a8ed3)||_0x5a8ed3);return _0x5a8ed3;},_0xa28853=(_0x499bc2,_0x12f557)=>(_0x45cfa4,_0x558806)=>_0x12f557(_0x45cfa4,_0x558806,_0x499bc2),_0x5f21f7=(_0x40e406,_0x3bb333,_0x324447)=>_0x1b714d(_0x40e406,typeof _0x3bb333!=_0x24ebc1(0x21b)?_0x3bb333+'':_0x3bb333,_0x324447);const _0x12317f='UNIVER_LIVE_SHARE_PLUGIN';_0x3c21f6['UniverLiveSharePlugin']=class extends _0x23cc24[_0x24ebc1(0x1d4)]{constructor(_0x29ee12=_0x470112,_0x156771,_0x2108b7){var _0x1df5f4=_0x24ebc1;super(),this['_config']=_0x29ee12,this['_injector']=_0x156771,this[_0x1df5f4(0x1ec)]=_0x2108b7;const {..._0x427879}=_0x23cc24[_0x1df5f4(0x1ce)]({},_0x470112,this[_0x1df5f4(0x29b)]);this['_configService'][_0x1df5f4(0x1e4)](_0x2caad9,_0x427879);}[_0x24ebc1(0x1f8)](){var _0x1d0e8d=_0x24ebc1;_0x23cc24[_0x1d0e8d(0x267)](this[_0x1d0e8d(0x2a6)],_0x23cc24[_0x1d0e8d(0x1c0)]([[_0x2e9741],[_0x3c21f6[_0x1d0e8d(0x26f)]],[_0x53ccd0],[_0x3c21f6[_0x1d0e8d(0x26d)]]],this[_0x1d0e8d(0x29b)]['override'])),_0x23cc24[_0x1d0e8d(0x1e0)](this[_0x1d0e8d(0x2a6)],[[_0x53ccd0]]);}[_0x24ebc1(0x213)](){var _0x1ac5ba=_0x24ebc1;_0x23cc24['touchDependencies'](this['_injector'],[[_0x3c21f6[_0x1ac5ba(0x26d)]]]);}},_0x5f21f7(_0x3c21f6[_0x24ebc1(0x1d0)],_0x24ebc1(0x24e),_0x23cc24[_0x24ebc1(0x2a3)][_0x24ebc1(0x251)]),_0x5f21f7(_0x3c21f6[_0x24ebc1(0x1d0)],_0x24ebc1(0x236),_0x12317f),_0x3c21f6[_0x24ebc1(0x1d0)]=_0x479f85([_0x23cc24['DependentOn'](_0x5cc39f['UniverCollaborationClientPlugin']),_0xa28853(0x1,_0x23cc24[_0x24ebc1(0x28c)](_0x23cc24['Injector'])),_0xa28853(0x2,_0x23cc24[_0x24ebc1(0x23a)])],_0x3c21f6['UniverLiveSharePlugin']),_0x3c21f6['LiveShare']=_0x48ca6d,_0x3c21f6['LiveShareService']=_0x2e9741,_0x3c21f6[_0x24ebc1(0x1c8)]=_0x177cb1,Object[_0x24ebc1(0x257)](_0x3c21f6,Symbol[_0x24ebc1(0x1ca)],{'value':_0x24ebc1(0x1d9)});}));function _0x9d36(){var _0x3e2011=['_sharedOperations','path','type','@univerjs-pro/collaboration-client','defIds','UNIVER_UNKNOWN','delete','not-following','getLiveShareCoordinator','useObservable','FOLLOWING','defineProperty','univer-mb-3\x20univer-w-full\x20univer-text-sm','3FvEnvm','LiveShareIcon','next','SetZoomRatioOperation','useRef','send','disposeWithMe','rxjs','registerSharedOperation','replace','tryStartPresenting','UNIVER_SHEET','@univerjs/design','LIVESHARE_FETCH_OPERATIONS','registerDependencies','13805ZmEZAA','IUniverInstanceService','ONLINE','evenodd','_beIdle','DesktopLiveShareController','requireSession','LiveShareController','5199062OgjyIn','className','_collabSession','propertyIsEnumerable','UniverProCollaboration','takeUntil','add','LiveShareCoordinator','44274OJfGev','_handleOffline','NOT_FOLLOWING','find','_entities','@univerjs/sheets','useDependency','_uiPartsService','UniverSheetsUi','getInitialStates','trim','getUnitId','subscribe','Start','then','default','UniverDesign','_collabSessionService','forEach','CollaborationEvent','Inject','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','_mountLiveShare','UniverCore','stopPresenting','_presenter','currentColor','_handleNewHost','shouldShareOperation','_stopPresenting','UniverUi','dispose','defs','stringify','LIVESHARE_OPERATION','_config','unsubscribe','parseProtocolChangeset','use','ICommandService','button','React','_handleTerminate','UniverInstanceType','4726480svKfyw','useEffect','_injector','length','current','LIVESHARE_NEW_HOST','idle','params','pipe','_commandService','jsxs','_startFollowing','You\x27re\x20following\x20the\x20presenter','end','_status','icon','complete','none','getTypeOfUnitAdded$','UniverIcon','apply','getOwnPropertySymbols','mergeOverrideWithDependencies','createElement','36nEBjdN','onCommandExecuted','getMemberID','svg','forwardRef','getTypeOfUnitDisposed$','LiveShareStatus','_stopFollowing','toStringTag','univer-size-4','entries','Dropdown','merge','executeCommand','UniverLiveSharePlugin','values','Disposable','clsx','Plugin','You\x27are\x20offline.','tag','_reporters','displayName','Module','SetScrollOperation','concat','event$','SAME_OPERATION_SHARE_INTERVAL','prototype','DisposableCollection','touchDependencies','univerjs-icon\x20univerjs-icon-','_univerInstanceService','HEADER_MENU','setConfig','Present\x20this\x20document','_startPresenting','call','mask','children','clear','jsx','_configService','SessionStatus','1ArwJDI','has','dispose$','hasOwnProperty','exports','toString','1em','extend','0\x200\x2017\x2017','_liveShareService','onStarting','@univerjs/sheets-ui','amd','_fetchOperations','1326ysqgsb','presenter','init','live-share.config','connectInjector','You\x27re\x20presenting\x20the\x20document','BuiltInUIPart','_status$','idSuffix','CollaborationSessionService','PRESENTING','SetWorksheetActiveOperation','Stop\x20following','toDisposable','getOwnPropertyDescriptor','useState','getCurrentTypeOfUnit$','getConfig','presenting','xlink:href','BehaviorSubject','throttleTime','get','onRendered','live-share-icon','stopFollowing','status$','object','http://www.w3.org/2000/svg','sessionStatus$','startFollowing','symbol','LIVESHARE_REQUEST_HOST','attrs','90YuvwTa','text','from','indexOf','_startLiveShareCoordinator','Injector','Fragment','RxDisposable','parse','includes','string','@univerjs/core','_commandDisposable','map','offline','UniverProCollaborationClient','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','memberID','sheet','2526139kEKOGj','createInstance','reverse','data','@univerjs-pro/collaboration','pluginName','_handleOnline','You\x27re\x20not\x20following\x20the\x20presenter','operators','IConfigService','OFFLINE','set','operations','616509AWoOnj','Button','130828AghUGe','function','fill','url(#$1','IDLE','LIVESHARE_TERMINATE','UniverSheets','_init','following','div','_unitID','_handleNewChangeSets'];_0x9d36=function(){return _0x3e2011;};return _0x9d36();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.6-experimental.
|
|
3
|
+
"version": "0.10.6-experimental.20250904-9591d16",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.6",
|
|
50
|
-
"@univerjs/
|
|
51
|
-
"@univerjs
|
|
52
|
-
"@univerjs
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/sheets": "0.10.6-experimental.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.6-experimental.20250904-9591d16",
|
|
51
|
+
"@univerjs/core": "0.10.6-experimental.20250904-9591d16",
|
|
52
|
+
"@univerjs/design": "0.10.6-experimental.20250904-9591d16",
|
|
53
|
+
"@univerjs/sheets": "0.10.6-experimental.20250904-9591d16",
|
|
54
|
+
"@univerjs/sheets-ui": "0.10.6-experimental.20250904-9591d16",
|
|
55
|
+
"@univerjs-pro/collaboration-client": "0.10.6-experimental.20250904-9591d16",
|
|
56
|
+
"@univerjs/ui": "0.10.6-experimental.20250904-9591d16"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|