@univerjs-pro/live-share 0.8.0-nightly.202506071606 → 0.8.0-nightly.202506091607
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 +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x5ec7ed=_0x1172;(function(_0x3b7f0a,_0x5e7c78){var _0x533832=_0x1172,_0x43a002=_0x3b7f0a();while(!![]){try{var _0x3e8300=parseInt(_0x533832(0x17d))/0x1+parseInt(_0x533832(0x14c))/0x2*(parseInt(_0x533832(0x1ae))/0x3)+parseInt(_0x533832(0x194))/0x4*(-parseInt(_0x533832(0x229))/0x5)+-parseInt(_0x533832(0x1a8))/0x6+-parseInt(_0x533832(0x17b))/0x7+-parseInt(_0x533832(0x158))/0x8*(parseInt(_0x533832(0x145))/0x9)+-parseInt(_0x533832(0x1a3))/0xa*(-parseInt(_0x533832(0x148))/0xb);if(_0x3e8300===_0x5e7c78)break;else _0x43a002['push'](_0x43a002['shift']());}catch(_0x1fb59b){_0x43a002['push'](_0x43a002['shift']());}}}(_0x25d9,0xb3879));var U=Object['defineProperty'],F=(_0x38dd8c,_0x6db2ab,_0x410140)=>_0x6db2ab in _0x38dd8c?U(_0x38dd8c,_0x6db2ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x410140}):_0x38dd8c[_0x6db2ab]=_0x410140,v=(_0x278e40,_0x2b43cf,_0x5f2a0e)=>F(_0x278e40,typeof _0x2b43cf!=_0x5ec7ed(0x17e)?_0x2b43cf+'':_0x2b43cf,_0x5f2a0e);Object[_0x5ec7ed(0x1b6)](exports,Symbol[_0x5ec7ed(0x1ea)],{'value':_0x5ec7ed(0x166)});const m=require(_0x5ec7ed(0x1f8)),o=require(_0x5ec7ed(0x1bb)),C=require(_0x5ec7ed(0x1b7)),w=require(_0x5ec7ed(0x1d2)),p=require(_0x5ec7ed(0x1db)),l=require(_0x5ec7ed(0x1af)),g=require('@univerjs/design'),f=require(_0x5ec7ed(0x20f)),_=require(_0x5ec7ed(0x1b2)),D=require(_0x5ec7ed(0x173)),b=require(_0x5ec7ed(0x151)),$=_0x5ec7ed(0x20a),x={};class O extends o[_0x5ec7ed(0x1e7)]{constructor(){var _0x2ca4fe=_0x5ec7ed;super(...arguments),v(this,_0x2ca4fe(0x1cd),new Set()),v(this,_0x2ca4fe(0x1fc),new Set());}[_0x5ec7ed(0x163)](_0xc52c29){var _0x472d77=_0x5ec7ed;return this[_0x472d77(0x1cd)]['add'](_0xc52c29),o[_0x472d77(0x1c1)](()=>this[_0x472d77(0x1cd)]['delete'](_0xc52c29));}[_0x5ec7ed(0x1c0)](_0x5ae673){var _0x26d98a=_0x5ec7ed;return this['_reporters'][_0x26d98a(0x208)](_0x5ae673),o['toDisposable'](()=>this['_reporters'][_0x26d98a(0x19d)](_0x5ae673));}[_0x5ec7ed(0x15b)](_0x49caa4){var _0x105a91=_0x5ec7ed;return this['_sharedOperations'][_0x105a91(0x16e)](_0x49caa4);}['getInitialStates'](_0x44e5aa){var _0x50b3b6=_0x5ec7ed;return Array[_0x50b3b6(0x1bc)](this[_0x50b3b6(0x1fc)])[_0x50b3b6(0x150)](_0x3ba52c=>_0x3ba52c(_0x44e5aa));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x3edaf9,_0xd26f66,_0x2c9046,_0x39cbe1)=>{var _0x232c7f=_0x5ec7ed;for(var _0xca6e2f=_0x39cbe1>0x1?void 0x0:_0x39cbe1?H(_0xd26f66,_0x2c9046):_0xd26f66,_0x16b9a9=_0x3edaf9[_0x232c7f(0x1c9)]-0x1,_0x4073c0;_0x16b9a9>=0x0;_0x16b9a9--)(_0x4073c0=_0x3edaf9[_0x16b9a9])&&(_0xca6e2f=_0x4073c0(_0xca6e2f)||_0xca6e2f);return _0xca6e2f;},k=(_0x2537ee,_0x5069af)=>(_0x385e59,_0x1ca1c9)=>_0x5069af(_0x385e59,_0x1ca1c9,_0x2537ee);let E=class extends o[_0x5ec7ed(0x1e7)]{constructor(_0x4202d4){var _0x19ea37=_0x5ec7ed;super(),this[_0x19ea37(0x1ac)]=_0x4202d4,this[_0x19ea37(0x197)]();}[_0x5ec7ed(0x197)](){var _0x1998b7=_0x5ec7ed;[w['SetZoomRatioOperation']['id'],w[_0x1998b7(0x159)]['id'],C[_0x1998b7(0x21e)]['id']][_0x1998b7(0x1d6)](_0x4884c7=>{var _0x6da8d5=_0x1998b7;this[_0x6da8d5(0x20d)](this['_liveShareService']['registerSharedOperation'](_0x4884c7));});}};E=V([k(0x0,o['Inject'](O))],E);function _0x25d9(){var _0x32816e=['extend','@univerjs/sheets-ui','LiveShare','url(#$1','clsx','forEach','useState','onCommandExecuted','_stopFollowing','NEW_CHANGESETS','@univerjs/ui','You\x27are\x20offline.','registerComponent','_status','0\x200\x2017\x2017','_collabSession','presenting','button','apply','DesktopLiveShareController','trim','stopFollowing','Disposable','http://www.w3.org/2000/svg','current','toStringTag','_startPresenting','NOT_FOLLOWING','then','function','UNIVER_SHEET','UNIVER_LIVE_SHARE_PLUGIN','includes','_configService','_commandDisposable','xlink:href','getValue','Present\x20this\x20document','icon','@univerjs-pro/collaboration-client','Dropdown','substring','getCurrentTypeOfUnit$','_reporters','event$','children','LiveShareCoordinator','concat','evenodd','currentColor','Injector','call','getOwnPropertyDescriptor','propertyIsEnumerable','get','add','memberID','live-share.config','touchDependencies','prototype','disposeWithMe','_presenter','react','stopPresenting','Plugin','createElement','className','startFollowing','Button','use','takeUntil','reverse','end','_beIdle','jsxs','default','stringify','SetWorksheetActiveOperation','parse','throttleTime','getTypeOfUnitDisposed$','dispose','asObservable','OFFLINE','params','override','_commandService','You\x27re\x20following\x20the\x20presenter','15dBucrX','indexOf','operations','IUniverInstanceService','DependentOn','_stopPresenting','jsx','_handleOperation','univer-w-full\x20univer-mb-3\x20univer-text-sm','pipe','ONLINE','_handleOffline','_status$','offline','432ALBACV','tryStartPresenting','path','180521UzUACc','createInstance','_handleNewHost','LIVESHARE_TERMINATE','2LZXsBG','IDLE','InsertSheetMutation','LIVESHARE_FETCH_OPERATIONS','map','rxjs/operators','getInitialStates','You\x27re\x20not\x20following\x20the\x20presenter','Start','displayName','getUnitId','CollaborationEvent','162200OWIZmx','SetScrollOperation','setConfig','shouldShareOperation','useDependency','attrs','executeCommand','defs','CommandType','div','Stop\x20presenting','registerSharedOperation','_startFollowing','idle','Module','sessionStatus$','svg','1em','getTypeOfUnitAdded$','_univerInstanceService','getMemberID','BehaviorSubject','has','none','connectInjector','Stop\x20following','complete','rxjs','FOLLOWING','getOwnPropertySymbols','useRef','UniverLiveSharePlugin','Start\x20following','init','_mountLiveShare','20685JTLCJH','_uiPartsService','35796FtwOiQ','symbol','unsubscribe','merge','getConfig','LiveShareStatus','text','hasOwnProperty','Fragment','_collabSessionService','defIds','_handleTerminate','LIVESHARE_NEW_HOST','onRendered','_entities','univerjs-icon\x20univerjs-icon-','_startLiveShareCoordinator','live-share-icon','UNIVER_UNKNOWN','Inject','_fetchOperations','UniverInstanceType','IUIPartsService','998444vhghEH','tag','_config','_init','BuiltInUIPart','string','parseProtocolChangeset','subscribe','assign','delete','_injector','following','sheet','useObservable','_unitID','810FOtgyt','next','fill','forwardRef','mask','1826898jbzqDV','PRESENTING','LiveShareController','useEffect','_liveShareService','getLiveShareCoordinator','4199211xshGjp','react/jsx-runtime','OPERATION','_handleOnline','@univerjs-pro/collaboration','colorChannel1','Subject','unitId','defineProperty','@univerjs/sheets','HEADER_MENU','RxDisposable','SessionStatus','@univerjs/core','from','send','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','mutations','registerInitialStateReporter','toDisposable','DisposableCollection','random','dispose$','LIVESHARE_OPERATION','idSuffix','data','type','length','pluginName','status$','presenter','_sharedOperations','not-following','replace','values'];_0x25d9=function(){return _0x32816e;};return _0x25d9();}var u=function(){var _0x11514b=_0x5ec7ed;return u=Object['assign']||function(_0x4c3dd9){var _0x3cbe6f=_0x1172;for(var _0x167cba,_0x5b8b08=0x1,_0x3d068a=arguments[_0x3cbe6f(0x1c9)];_0x5b8b08<_0x3d068a;_0x5b8b08++){_0x167cba=arguments[_0x5b8b08];for(var _0x43213d in _0x167cba)Object[_0x3cbe6f(0x20c)][_0x3cbe6f(0x184)][_0x3cbe6f(0x204)](_0x167cba,_0x43213d)&&(_0x4c3dd9[_0x43213d]=_0x167cba[_0x43213d]);}return _0x4c3dd9;},u[_0x11514b(0x1e3)](this,arguments);},M=function(_0x243fd1,_0x478368){var _0x66c449=_0x5ec7ed,_0x8107db={};for(var _0x10d20c in _0x243fd1)Object[_0x66c449(0x20c)]['hasOwnProperty'][_0x66c449(0x204)](_0x243fd1,_0x10d20c)&&_0x478368[_0x66c449(0x22a)](_0x10d20c)<0x0&&(_0x8107db[_0x10d20c]=_0x243fd1[_0x10d20c]);if(_0x243fd1!=null&&typeof Object[_0x66c449(0x175)]==_0x66c449(0x1ee)){for(var _0x1cf98c=0x0,_0x10d20c=Object[_0x66c449(0x175)](_0x243fd1);_0x1cf98c<_0x10d20c[_0x66c449(0x1c9)];_0x1cf98c++)_0x478368[_0x66c449(0x22a)](_0x10d20c[_0x1cf98c])<0x0&&Object[_0x66c449(0x20c)][_0x66c449(0x206)][_0x66c449(0x204)](_0x243fd1,_0x10d20c[_0x1cf98c])&&(_0x8107db[_0x10d20c[_0x1cf98c]]=_0x243fd1[_0x10d20c[_0x1cf98c]]);}return _0x8107db;},j=f[_0x5ec7ed(0x1a6)](function(_0xc2991d,_0x3e4a86){var _0x5dd79f=_0x5ec7ed,_0x385e0b=_0xc2991d[_0x5dd79f(0x1f7)],_0x4471ff=_0xc2991d['id'],_0x2a79c1=_0xc2991d[_0x5dd79f(0x213)],_0xd02624=_0xc2991d[_0x5dd79f(0x1d1)],_0x523291=M(_0xc2991d,[_0x5dd79f(0x1f7),'id',_0x5dd79f(0x213),'extend']),_0x4a8cc6=_0x5dd79f(0x18c)[_0x5dd79f(0x200)](_0x4471ff,'\x20')[_0x5dd79f(0x200)](_0x2a79c1||'')[_0x5dd79f(0x1e5)](),_0x124153=f[_0x5dd79f(0x176)]('_'[_0x5dd79f(0x200)](G()));return y(_0x385e0b,''['concat'](_0x4471ff),{'defIds':_0x385e0b[_0x5dd79f(0x187)],'idSuffix':_0x124153[_0x5dd79f(0x1e9)]},u({'ref':_0x3e4a86,'className':_0x4a8cc6},_0x523291),_0xd02624);});function y(_0x5e316f,_0x2ca8f4,_0x28e92e,_0x28aa28,_0x1c646c){var _0x47efaf=_0x5ec7ed;return f[_0x47efaf(0x212)](_0x5e316f[_0x47efaf(0x195)],u(u({'key':_0x2ca8f4},q(_0x5e316f,_0x28e92e,_0x1c646c)),_0x28aa28),(W(_0x5e316f,_0x28e92e)[_0x47efaf(0x1fe)]||[])['map'](function(_0x4737a1,_0x30ff54){var _0x532015=_0x47efaf;return y(_0x4737a1,''[_0x532015(0x200)](_0x2ca8f4,'-')[_0x532015(0x200)](_0x5e316f['tag'],'-')[_0x532015(0x200)](_0x30ff54),_0x28e92e,void 0x0,_0x1c646c);}));}function q(_0x2b12b0,_0x140ac8,_0x514ae5){var _0x28c531=_0x5ec7ed,_0x53758d=u({},_0x2b12b0[_0x28c531(0x15d)]);_0x514ae5!=null&&_0x514ae5[_0x28c531(0x1b3)]&&_0x53758d[_0x28c531(0x1a5)]===_0x28c531(0x1b3)&&(_0x53758d[_0x28c531(0x1a5)]=_0x514ae5[_0x28c531(0x1b3)]),_0x2b12b0[_0x28c531(0x195)]===_0x28c531(0x1a7)&&_0x53758d['id']&&(_0x53758d['id']=_0x53758d['id']+_0x140ac8[_0x28c531(0x1c6)]),Object['entries'](_0x53758d)[_0x28c531(0x1d6)](function(_0x406d62){var _0x4e3e23=_0x28c531,_0x3ffd0f=_0x406d62[0x0],_0x59afef=_0x406d62[0x1];_0x3ffd0f===_0x4e3e23(0x1a7)&&typeof _0x59afef==_0x4e3e23(0x199)&&(_0x53758d[_0x3ffd0f]=_0x59afef[_0x4e3e23(0x1cf)](/url\(#(.*)\)/,'url(#$1'[_0x4e3e23(0x200)](_0x140ac8[_0x4e3e23(0x1c6)],')')));});var _0x2b511e=_0x140ac8['defIds'];return!_0x2b511e||_0x2b511e[_0x28c531(0x1c9)]===0x0||(_0x2b12b0[_0x28c531(0x195)]===_0x28c531(0x216)&&_0x53758d[_0x28c531(0x1f4)]&&(_0x53758d[_0x28c531(0x1f4)]=_0x53758d[_0x28c531(0x1f4)]+_0x140ac8[_0x28c531(0x1c6)]),Object['entries'](_0x53758d)[_0x28c531(0x1d6)](function(_0x2c66d5){var _0xa53ff1=_0x28c531,_0x3c9ad2=_0x2c66d5[0x0],_0x1f6067=_0x2c66d5[0x1];typeof _0x1f6067==_0xa53ff1(0x199)&&(_0x53758d[_0x3c9ad2]=_0x1f6067[_0xa53ff1(0x1cf)](/url\(#(.*)\)/,_0xa53ff1(0x1d4)['concat'](_0x140ac8[_0xa53ff1(0x1c6)],')')));})),_0x53758d;}function W(_0x3b7091,_0xe5812f){var _0x1001a0=_0x5ec7ed,_0x29b9bf,_0x55dc62=_0xe5812f[_0x1001a0(0x187)];return!_0x55dc62||_0x55dc62[_0x1001a0(0x1c9)]===0x0?_0x3b7091:_0x3b7091[_0x1001a0(0x195)]===_0x1001a0(0x15f)&&(!((_0x29b9bf=_0x3b7091[_0x1001a0(0x1fe)])===null||_0x29b9bf===void 0x0)&&_0x29b9bf[_0x1001a0(0x1c9)])?u(u({},_0x3b7091),{'children':_0x3b7091[_0x1001a0(0x1fe)]['map'](function(_0xf82eb8){var _0x21b909=_0x1001a0;return typeof _0xf82eb8[_0x21b909(0x15d)]['id']==_0x21b909(0x199)&&_0x55dc62&&_0x55dc62[_0x21b909(0x1f1)](_0xf82eb8[_0x21b909(0x15d)]['id'])?u(u({},_0xf82eb8),{'attrs':u(u({},_0xf82eb8[_0x21b909(0x15d)]),{'id':_0xf82eb8[_0x21b909(0x15d)]['id']+_0xe5812f[_0x21b909(0x1c6)]})}):_0xf82eb8;})}):_0x3b7091;}function G(){var _0x25e252=_0x5ec7ed;return Math[_0x25e252(0x1c3)]()['toString'](0x24)[_0x25e252(0x1fa)](0x2,0x8);}function _0x1172(_0x274d17,_0x1b0971){var _0x25d956=_0x25d9();return _0x1172=function(_0x1172c1,_0x5a9498){_0x1172c1=_0x1172c1-0x13c;var _0x10cd06=_0x25d956[_0x1172c1];return _0x10cd06;},_0x1172(_0x274d17,_0x1b0971);}j[_0x5ec7ed(0x155)]='UniverIcon';var B={'tag':_0x5ec7ed(0x168),'attrs':{'xmlns':_0x5ec7ed(0x1e8),'fill':_0x5ec7ed(0x16f),'viewBox':_0x5ec7ed(0x1df),'width':_0x5ec7ed(0x169),'height':_0x5ec7ed(0x169)},'children':[{'tag':_0x5ec7ed(0x147),'attrs':{'fill':_0x5ec7ed(0x202),'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':_0x5ec7ed(0x147),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x5ec7ed(0x201),'clipRule':_0x5ec7ed(0x201)}}]},P=f[_0x5ec7ed(0x1a6)](function(_0x46a876,_0x2fda26){var _0x22274a=_0x5ec7ed;return f['createElement'](j,Object[_0x22274a(0x19c)]({},_0x46a876,{'id':_0x22274a(0x18e),'ref':_0x2fda26,'icon':B}));});P['displayName']='LiveShareIcon';var Y=Object[_0x5ec7ed(0x205)],R=(_0x391299,_0x44089b,_0x29490f,_0x2966b1)=>{var _0x197f60=_0x5ec7ed;for(var _0x5b70b3=_0x2966b1>0x1?void 0x0:_0x2966b1?Y(_0x44089b,_0x29490f):_0x44089b,_0x19dfe1=_0x391299[_0x197f60(0x1c9)]-0x1,_0x53282c;_0x19dfe1>=0x0;_0x19dfe1--)(_0x53282c=_0x391299[_0x19dfe1])&&(_0x5b70b3=_0x53282c(_0x5b70b3)||_0x5b70b3);return _0x5b70b3;},S=(_0x4a4795,_0x135e6a)=>(_0x395fa1,_0x2e40b8)=>_0x135e6a(_0x395fa1,_0x2e40b8,_0x4a4795);exports[_0x5ec7ed(0x1aa)]=class extends o[_0x5ec7ed(0x1b9)]{constructor(_0x426714,_0x3a8084,_0x7fd422){var _0x248fe5=_0x5ec7ed;super(),v(this,'_entities',new Map()),(this[_0x248fe5(0x16b)]=_0x426714,this['_injector']=_0x3a8084,this[_0x248fe5(0x186)]=_0x7fd422,this[_0x248fe5(0x197)]());}async[_0x5ec7ed(0x1ad)](_0x22c85d){var _0x25d35b=_0x5ec7ed;return this[_0x25d35b(0x18b)][_0x25d35b(0x16e)](_0x22c85d)||await this[_0x25d35b(0x18d)](_0x22c85d),this[_0x25d35b(0x18b)][_0x25d35b(0x207)](_0x22c85d);}[_0x5ec7ed(0x197)](){var _0x1d2d6f=_0x5ec7ed;this[_0x1d2d6f(0x16b)][_0x1d2d6f(0x16a)](o[_0x1d2d6f(0x192)]['UNIVER_SHEET'])[_0x1d2d6f(0x140)](b['takeUntil'](this[_0x1d2d6f(0x1c4)]))[_0x1d2d6f(0x19b)](async _0x40092d=>{var _0x46b959=_0x1d2d6f;const _0x15d50e=_0x40092d[_0x46b959(0x156)]();this['_entities'][_0x46b959(0x16e)](_0x15d50e)||this[_0x46b959(0x18d)](_0x15d50e);}),this[_0x1d2d6f(0x16b)][_0x1d2d6f(0x221)](o[_0x1d2d6f(0x192)][_0x1d2d6f(0x1ef)])[_0x1d2d6f(0x140)](b[_0x1d2d6f(0x217)](this['dispose$']))[_0x1d2d6f(0x19b)](_0x85c401=>{var _0x3bc631=_0x1d2d6f;const _0x312af3=_0x85c401[_0x3bc631(0x156)](),_0x43f38d=this['_entities']['get'](_0x312af3);_0x43f38d==null||_0x43f38d[_0x3bc631(0x222)]();});}async[_0x5ec7ed(0x18d)](_0x1eea71){var _0xebf5c9=_0x5ec7ed;const _0x1b1aa1=await this[_0xebf5c9(0x186)]['requireSession'](_0x1eea71),_0x2b026e=this[_0xebf5c9(0x19e)][_0xebf5c9(0x149)](exports['LiveShareCoordinator'],_0x1eea71,_0x1b1aa1);return _0x2b026e[_0xebf5c9(0x179)](),this['_entities']['set'](_0x1eea71,_0x2b026e),_0x2b026e;}},exports[_0x5ec7ed(0x1aa)]=R([S(0x0,o[_0x5ec7ed(0x22c)]),S(0x1,o['Inject'](o[_0x5ec7ed(0x203)])),S(0x2,o[_0x5ec7ed(0x190)](m['CollaborationSessionService']))],exports[_0x5ec7ed(0x1aa)]);var h=(_0x216b56=>(_0x216b56[_0x5ec7ed(0x224)]=_0x5ec7ed(0x144),_0x216b56['IDLE']=_0x5ec7ed(0x165),_0x216b56[_0x5ec7ed(0x174)]=_0x5ec7ed(0x19f),_0x216b56[_0x5ec7ed(0x1ec)]=_0x5ec7ed(0x1ce),_0x216b56[_0x5ec7ed(0x1a9)]='presenting',_0x216b56))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x5ec7ed(0x1ff)]=class extends o[_0x5ec7ed(0x1b9)]{constructor(_0x4062e5,_0x9f8a18,_0x599213,_0x2dd0f7,_0x4c02ec){var _0x2fb653=_0x5ec7ed;super(),v(this,_0x2fb653(0x143),new D[(_0x2fb653(0x16d))](_0x2fb653(0x165))),v(this,_0x2fb653(0x1cb),this['_status$'][_0x2fb653(0x223)]()),v(this,'_init',!0x1),v(this,'_commandDisposable',null),v(this,_0x2fb653(0x20e),null),(this['_unitID']=_0x4062e5,this['_collabSession']=_0x9f8a18,this[_0x2fb653(0x1f2)]=_0x599213,this[_0x2fb653(0x1ac)]=_0x2dd0f7,this[_0x2fb653(0x227)]=_0x4c02ec);}get[_0x5ec7ed(0x1de)](){var _0x12fbb2=_0x5ec7ed;return this['_status$'][_0x12fbb2(0x1f5)]();}['dispose'](){var _0x5c2bef=_0x5ec7ed,_0x346408;(_0x346408=this['_commandDisposable'])==null||_0x346408[_0x5c2bef(0x222)](),this[_0x5c2bef(0x143)][_0x5c2bef(0x1a4)](_0x5c2bef(0x165)),this[_0x5c2bef(0x143)][_0x5c2bef(0x172)]();}[_0x5ec7ed(0x179)](){var _0x4af65f=_0x5ec7ed;this[_0x4af65f(0x197)]||(this[_0x4af65f(0x197)]=!0x0,this['_collabSession'][_0x4af65f(0x167)][_0x4af65f(0x140)](b['takeUntil'](this[_0x4af65f(0x1c4)]))['subscribe'](_0x395c23=>{var _0x4d04d3=_0x4af65f;switch(_0x395c23){case m[_0x4d04d3(0x1ba)]['OFFLINE']:this[_0x4d04d3(0x142)]();break;case m['SessionStatus'][_0x4d04d3(0x141)]:this[_0x4d04d3(0x1b1)]();break;}}),this[_0x4af65f(0x1e0)][_0x4af65f(0x1fd)][_0x4af65f(0x140)](b[_0x4af65f(0x217)](this[_0x4af65f(0x1c4)]))['subscribe'](_0x57a5ba=>{var _0x5253d9=_0x4af65f;const {eventID:_0x11afd5}=_0x57a5ba;switch(_0x11afd5){case _[_0x5253d9(0x157)][_0x5253d9(0x189)]:this[_0x5253d9(0x14a)](_0x57a5ba);break;case _['CollaborationEvent'][_0x5253d9(0x1c5)]:this['_handleOperation'](_0x57a5ba);break;case _[_0x5253d9(0x157)][_0x5253d9(0x14b)]:this[_0x5253d9(0x188)]();break;case _[_0x5253d9(0x157)][_0x5253d9(0x1da)]:this['_handleNewChangeSets'](_0x57a5ba);break;}}));}['tryStartPresenting'](){var _0x4b7be5=_0x5ec7ed;this['_collabSession']['send']({'eventID':_[_0x4b7be5(0x157)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4b7be5(0x1a2)],'userID':this[_0x4b7be5(0x1e0)]['getMemberID']()}},this[_0x4b7be5(0x1a2)]);}['stopPresenting'](){var _0x575fb5=_0x5ec7ed;this[_0x575fb5(0x1de)]===_0x575fb5(0x1e1)&&(this[_0x575fb5(0x143)]['next'](_0x575fb5(0x165)),this[_0x575fb5(0x1e0)][_0x575fb5(0x1bd)]({'eventID':_['CollaborationEvent'][_0x575fb5(0x14b)],'data':{'unitID':this[_0x575fb5(0x1a2)]}},this[_0x575fb5(0x1a2)]));}[_0x5ec7ed(0x214)](){var _0x3f1109=_0x5ec7ed;this[_0x3f1109(0x1de)]==='not-following'&&(this[_0x3f1109(0x143)][_0x3f1109(0x1a4)](_0x3f1109(0x19f)),this[_0x3f1109(0x164)]());}[_0x5ec7ed(0x1e6)](){var _0x49f826=_0x5ec7ed;this[_0x49f826(0x1de)]===_0x49f826(0x19f)&&this[_0x49f826(0x1d9)]();}['_handleNewHost'](_0x411463){var _0x1ec2fd=_0x5ec7ed;const {presenter:_0x20defe}=_0x411463[_0x1ec2fd(0x1c7)],_0x50749e=this[_0x1ec2fd(0x1e0)][_0x1ec2fd(0x16c)]();this['_presenter']=_0x20defe,_0x20defe===_0x50749e?(this[_0x1ec2fd(0x1d9)](),this[_0x1ec2fd(0x1eb)]()):this[_0x1ec2fd(0x1de)]!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x5ec7ed(0x191)](){var _0x462025=_0x5ec7ed;const _0xfe1fdb={'eventID':_[_0x462025(0x157)][_0x462025(0x14f)]};this['_collabSession'][_0x462025(0x1bd)](_0xfe1fdb,this['_unitID']);}[_0x5ec7ed(0x188)](){var _0x197710=_0x5ec7ed;this[_0x197710(0x20e)]=null,this[_0x197710(0x1de)]!=='presenting'&&this[_0x197710(0x21a)]();}['_handleNewChangeSets'](_0x156326){var _0x464e79=_0x5ec7ed;if(this[_0x464e79(0x1de)]===_0x464e79(0x19f)&&this[_0x464e79(0x20e)]===_0x156326[_0x464e79(0x1c7)][_0x464e79(0x209)]){const _0x1bd4d6=_[_0x464e79(0x19a)](_0x156326['data'])[_0x464e79(0x1bf)][_0x464e79(0x218)]()['find'](_0x36c139=>_0x36c139['id']===C[_0x464e79(0x14e)]['id']);if(_0x1bd4d6){const _0x3f85e=_0x1bd4d6['params'][_0x464e79(0x1b5)],_0x4e1716=_0x1bd4d6[_0x464e79(0x225)][_0x464e79(0x1a0)]['id'];setTimeout(()=>{var _0x4e5bbc=_0x464e79;this['_commandService'][_0x4e5bbc(0x15e)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x3f85e,'subUnitId':_0x4e1716},{'fromCollab':!0x0});});}}}[_0x5ec7ed(0x1eb)](){var _0x1d938a=_0x5ec7ed;this['_status$'][_0x1d938a(0x1a4)]('presenting');const _0x435f45=new Map(),_0x4d5125=this[_0x1d938a(0x1f3)]=new o[(_0x1d938a(0x1c2))]();_0x4d5125[_0x1d938a(0x208)](o['toDisposable'](()=>{var _0x1bf9ba=_0x1d938a;_0x435f45[_0x1bf9ba(0x1d6)](_0x343dc4=>_0x343dc4[_0x1bf9ba(0x172)]()),_0x435f45['clear']();})),_0x4d5125['add'](this[_0x1d938a(0x227)][_0x1d938a(0x1d8)](_0x2df6ad=>{var _0x3b0735=_0x1d938a,_0x553f18;if(_0x2df6ad[_0x3b0735(0x1c8)]!==o[_0x3b0735(0x160)][_0x3b0735(0x1b0)]||!this[_0x3b0735(0x1ac)][_0x3b0735(0x15b)](_0x2df6ad['id']))return;const {id:_0x4044f8}=_0x2df6ad;let _0xbf810a;_0x435f45[_0x3b0735(0x16e)](_0x4044f8)?_0xbf810a=_0x435f45[_0x3b0735(0x207)](_0x4044f8):(_0xbf810a=new D[(_0x3b0735(0x1b4))](),_0x435f45['set'](_0x4044f8,_0xbf810a),_0xbf810a[_0x3b0735(0x140)](b[_0x3b0735(0x220)]((_0x553f18=this['_configService'][_0x3b0735(0x181)](Z))!=null?_0x553f18:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3b0735(0x19b)](_0x820834=>{var _0x374127=_0x3b0735;this['_collabSession'][_0x374127(0x1bd)]({'eventID':_[_0x374127(0x157)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x820834['id']]:{'id':_0x820834['id'],'params':JSON[_0x374127(0x21d)](_0x820834[_0x374127(0x225)])}}}},this['_unitID']);})),_0xbf810a[_0x3b0735(0x1a4)](_0x2df6ad);})),this[_0x1d938a(0x1ac)][_0x1d938a(0x152)](this[_0x1d938a(0x1a2)])[_0x1d938a(0x1d6)](_0x386f65=>this[_0x1d938a(0x1e0)][_0x1d938a(0x1bd)]({'eventID':_[_0x1d938a(0x157)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1d938a(0x1a2)],'operations':{[_0x386f65['id']]:{'id':_0x386f65['id'],'params':JSON[_0x1d938a(0x21d)](_0x386f65[_0x1d938a(0x225)])}}}},this[_0x1d938a(0x1a2)]));}[_0x5ec7ed(0x13c)](){var _0x38e263=_0x5ec7ed,_0x2c1d05;this['_status$'][_0x38e263(0x1a4)](_0x38e263(0x165)),(_0x2c1d05=this[_0x38e263(0x1f3)])==null||_0x2c1d05[_0x38e263(0x222)](),this[_0x38e263(0x1f3)]=null;}[_0x5ec7ed(0x164)](){var _0x49f5c7=_0x5ec7ed,_0xeb3792;(_0xeb3792=this['_commandDisposable'])==null||_0xeb3792['dispose'](),this[_0x49f5c7(0x143)][_0x49f5c7(0x1a4)](_0x49f5c7(0x19f));}[_0x5ec7ed(0x21a)](){var _0xb2cf0e=_0x5ec7ed,_0x21e295;this[_0xb2cf0e(0x143)]['next']('idle'),(_0x21e295=this[_0xb2cf0e(0x1f3)])==null||_0x21e295[_0xb2cf0e(0x222)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x386e18=_0x5ec7ed,_0x308064;this['_status$'][_0x386e18(0x1a4)](_0x386e18(0x1ce)),(_0x308064=this['_commandDisposable'])==null||_0x308064['dispose']();}[_0x5ec7ed(0x13e)](_0x17b13c){var _0x498a74=_0x5ec7ed;if([_0x498a74(0x1e1),_0x498a74(0x1ce),_0x498a74(0x144)]['includes'](this['_status'])||!_0x17b13c['data'][_0x498a74(0x1cc)]||_0x17b13c[_0x498a74(0x1c7)][_0x498a74(0x1cc)]===this[_0x498a74(0x1e0)][_0x498a74(0x16c)]())return;this[_0x498a74(0x1de)]===_0x498a74(0x165)&&this[_0x498a74(0x164)]();const _0x8729d1=_0x17b13c['data'][_0x498a74(0x22b)];Object[_0x498a74(0x1d0)](_0x8729d1)['forEach'](_0xbe768a=>{var _0x14b687=_0x498a74;this[_0x14b687(0x227)]['executeCommand'](_0xbe768a['id'],_0xbe768a[_0x14b687(0x225)]?JSON[_0x14b687(0x21f)](_0xbe768a[_0x14b687(0x225)]):null,{'fromCollab':!0x0});});}[_0x5ec7ed(0x142)](){var _0x2495d8=_0x5ec7ed,_0x396b48;this[_0x2495d8(0x143)]['next'](_0x2495d8(0x144)),(_0x396b48=this[_0x2495d8(0x1f3)])==null||_0x396b48[_0x2495d8(0x222)]();}[_0x5ec7ed(0x1b1)](){var _0x342f38=_0x5ec7ed;this[_0x342f38(0x143)][_0x342f38(0x1a4)](_0x342f38(0x165)),this[_0x342f38(0x191)]();}},exports['LiveShareCoordinator']=R([S(0x2,o['IConfigService']),S(0x3,o['Inject'](O)),S(0x4,o['ICommandService'])],exports[_0x5ec7ed(0x1ff)]);function A(){var _0xa60f4=_0x5ec7ed;const _0x586695=p['useDependency'](exports[_0xa60f4(0x1aa)]),_0x1dfc20=p[_0xa60f4(0x15c)](o[_0xa60f4(0x22c)]),_0x5cfcbe=p[_0xa60f4(0x1a1)](()=>_0x1dfc20[_0xa60f4(0x1fb)](o[_0xa60f4(0x192)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3e9f21,_0x219a17]=f['useState'](null),[_0x3fbc83,_0x1e6359]=f[_0xa60f4(0x1d7)](h['IDLE']),_0x2e5d93=f[_0xa60f4(0x176)](null);return f[_0xa60f4(0x1ab)](()=>(_0x5cfcbe&&_0x586695[_0xa60f4(0x1ad)](_0x5cfcbe['getUnitId']())[_0xa60f4(0x1ed)](_0x5bccfa=>{var _0x3fe987=_0xa60f4;_0x219a17(_0x5bccfa),_0x2e5d93['current']=_0x5bccfa[_0x3fe987(0x1cb)]['subscribe'](_0x8a1c8c=>{_0x1e6359(_0x8a1c8c);});}),()=>{var _0x5ad04e=_0xa60f4,_0x179cbc;(_0x179cbc=_0x2e5d93[_0x5ad04e(0x1e9)])==null||_0x179cbc[_0x5ad04e(0x17f)](),_0x2e5d93['current']=null;}),[_0x5cfcbe,_0x586695]),_0x3e9f21?l['jsx'](g[_0xa60f4(0x1f9)],{'align':_0xa60f4(0x219),'disabled':_0x3fbc83===h[_0xa60f4(0x224)],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':l[_0xa60f4(0x13d)](K,{'status':_0x3fbc83,'coordinator':_0x3e9f21}),'children':l[_0xa60f4(0x13d)](_0xa60f4(0x1e2),{'className':g[_0xa60f4(0x1d5)](_0xa60f4(0x1be),{'univer-cursor-not-allowed':_0x3fbc83===h[_0xa60f4(0x224)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3fbc83!==h[_0xa60f4(0x224)]}),'type':_0xa60f4(0x1e2),'children':l[_0xa60f4(0x13d)](P,{'className':'univer-size-4'})})}):null;}function K(_0x1e49dd){var _0x70fd14=_0x5ec7ed;const {status:_0x453f74,coordinator:_0xe9679}=_0x1e49dd;switch(_0x453f74){case h[_0x70fd14(0x14d)]:return l['jsx'](z,{'coordinator':_0xe9679});case h[_0x70fd14(0x174)]:return l[_0x70fd14(0x13d)](Q,{'coordinator':_0xe9679});case h[_0x70fd14(0x1ec)]:return l[_0x70fd14(0x13d)](X,{'coordinator':_0xe9679});case h[_0x70fd14(0x224)]:return l['jsx'](te,{});case h['PRESENTING']:return l[_0x70fd14(0x13d)](ee,{'coordinator':_0xe9679});default:return null;}}function z(_0x2e583c){var _0x57da42=_0x5ec7ed;const {coordinator:_0x5643d1}=_0x2e583c;return l[_0x57da42(0x21b)](l[_0x57da42(0x185)],{'children':[l['jsx'](_0x57da42(0x161),{'className':_0x57da42(0x13f),'children':_0x57da42(0x1f6)}),l[_0x57da42(0x13d)](g['Button'],{'onClick':()=>_0x5643d1[_0x57da42(0x146)](),'children':_0x57da42(0x154)})]});}function Q(_0x1e7df6){var _0x3130f7=_0x5ec7ed;const {coordinator:_0x2faa1b}=_0x1e7df6;return l['jsxs'](l[_0x3130f7(0x185)],{'children':[l[_0x3130f7(0x13d)](_0x3130f7(0x161),{'className':_0x3130f7(0x13f),'children':_0x3130f7(0x228)}),l['jsx'](g[_0x3130f7(0x215)],{'onClick':()=>_0x2faa1b[_0x3130f7(0x1e6)](),'children':_0x3130f7(0x171)})]});}function X(_0x58a1d0){var _0x5badde=_0x5ec7ed;const {coordinator:_0x40a71c}=_0x58a1d0;return l['jsxs'](l[_0x5badde(0x185)],{'children':[l['jsx'](_0x5badde(0x161),{'className':_0x5badde(0x13f),'children':_0x5badde(0x153)}),l[_0x5badde(0x13d)](g[_0x5badde(0x215)],{'variant':_0x5badde(0x183),'onClick':()=>_0x40a71c['startFollowing'](),'children':_0x5badde(0x178)})]});}function ee(_0x5725cf){var _0x412839=_0x5ec7ed;const {coordinator:_0x6ec0e}=_0x5725cf;return l[_0x412839(0x21b)](l[_0x412839(0x185)],{'children':[l['jsx']('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](g[_0x412839(0x215)],{'variant':_0x412839(0x21c),'onClick':()=>_0x6ec0e[_0x412839(0x210)](),'children':_0x412839(0x162)})]});}function te(){var _0x58ce2c=_0x5ec7ed;return l[_0x58ce2c(0x13d)](l[_0x58ce2c(0x185)],{'children':_0x58ce2c(0x1dc)});}var ie=Object[_0x5ec7ed(0x205)],ne=(_0x3c8285,_0x4dddf4,_0x3b6838,_0x3c6e54)=>{var _0x4ec34e=_0x5ec7ed;for(var _0x1c9efb=_0x3c6e54>0x1?void 0x0:_0x3c6e54?ie(_0x4dddf4,_0x3b6838):_0x4dddf4,_0x5a251f=_0x3c8285[_0x4ec34e(0x1c9)]-0x1,_0x426965;_0x5a251f>=0x0;_0x5a251f--)(_0x426965=_0x3c8285[_0x5a251f])&&(_0x1c9efb=_0x426965(_0x1c9efb)||_0x1c9efb);return _0x1c9efb;},L=(_0x42b88a,_0xdddf1b)=>(_0x46ade6,_0x1e742b)=>_0xdddf1b(_0x46ade6,_0x1e742b,_0x42b88a);exports[_0x5ec7ed(0x1e4)]=class extends o['Disposable']{constructor(_0x4e5e37,_0x5bdc79){var _0x1326e2=_0x5ec7ed;super(),this['_injector']=_0x4e5e37,this['_uiPartsService']=_0x5bdc79,this[_0x1326e2(0x17a)]();}[_0x5ec7ed(0x17a)](){var _0x408244=_0x5ec7ed;this['disposeWithMe'](this[_0x408244(0x17c)][_0x408244(0x1dd)](p[_0x408244(0x198)][_0x408244(0x1b8)],()=>p[_0x408244(0x170)](A,this[_0x408244(0x19e)])));}},exports[_0x5ec7ed(0x1e4)]=ne([L(0x0,o[_0x5ec7ed(0x190)](o['Injector'])),L(0x1,p[_0x5ec7ed(0x193)])],exports['DesktopLiveShareController']);var re=Object[_0x5ec7ed(0x1b6)],se=Object['getOwnPropertyDescriptor'],oe=(_0x4833fd,_0x160274,_0x32724e)=>_0x160274 in _0x4833fd?re(_0x4833fd,_0x160274,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32724e}):_0x4833fd[_0x160274]=_0x32724e,ae=(_0x31513c,_0x59ede5,_0x5b215e,_0x32fce3)=>{var _0x24ec68=_0x5ec7ed;for(var _0x1c560b=_0x32fce3>0x1?void 0x0:_0x32fce3?se(_0x59ede5,_0x5b215e):_0x59ede5,_0x2367e1=_0x31513c[_0x24ec68(0x1c9)]-0x1,_0x438bae;_0x2367e1>=0x0;_0x2367e1--)(_0x438bae=_0x31513c[_0x2367e1])&&(_0x1c560b=_0x438bae(_0x1c560b)||_0x1c560b);return _0x1c560b;},N=(_0x118778,_0x2594f8)=>(_0x8b1753,_0x59ac23)=>_0x2594f8(_0x8b1753,_0x59ac23,_0x118778),T=(_0x38dc36,_0x5f0cc0,_0x394d99)=>oe(_0x38dc36,typeof _0x5f0cc0!=_0x5ec7ed(0x17e)?_0x5f0cc0+'':_0x5f0cc0,_0x394d99);const le=_0x5ec7ed(0x1f0);exports['UniverLiveSharePlugin']=class extends o[_0x5ec7ed(0x211)]{constructor(_0x11b086=x,_0x4482b3,_0x3cdcf7){var _0x13e4b4=_0x5ec7ed;super(),this[_0x13e4b4(0x196)]=_0x11b086,this[_0x13e4b4(0x19e)]=_0x4482b3,this[_0x13e4b4(0x1f2)]=_0x3cdcf7;const {..._0xeb3488}=o[_0x13e4b4(0x180)]({},x,this[_0x13e4b4(0x196)]);this[_0x13e4b4(0x1f2)][_0x13e4b4(0x15a)]($,_0xeb3488);}['onStarting'](){var _0x1ec8d4=_0x5ec7ed;o['registerDependencies'](this[_0x1ec8d4(0x19e)],o['mergeOverrideWithDependencies']([[O],[exports['LiveShareController']],[E],[exports[_0x1ec8d4(0x1e4)]]],this[_0x1ec8d4(0x196)][_0x1ec8d4(0x226)])),o[_0x1ec8d4(0x20b)](this[_0x1ec8d4(0x19e)],[[E]]);}[_0x5ec7ed(0x18a)](){var _0x2c568a=_0x5ec7ed;o[_0x2c568a(0x20b)](this['_injector'],[[exports[_0x2c568a(0x1e4)]]]);}},T(exports[_0x5ec7ed(0x177)],_0x5ec7ed(0x1c8),o[_0x5ec7ed(0x192)][_0x5ec7ed(0x18f)]),T(exports[_0x5ec7ed(0x177)],_0x5ec7ed(0x1ca),le),exports['UniverLiveSharePlugin']=ae([o[_0x5ec7ed(0x22d)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x5ec7ed(0x190)](o['Injector'])),N(0x2,o['IConfigService'])],exports['UniverLiveSharePlugin']),exports[_0x5ec7ed(0x1d3)]=A,exports['LiveShareService']=O,exports[_0x5ec7ed(0x182)]=h;
|
|
1
|
+
'use strict';var _0x30436a=_0x209c;(function(_0x5bec24,_0x402ec5){var _0x34d8ea=_0x209c,_0x45b3e1=_0x5bec24();while(!![]){try{var _0x202455=-parseInt(_0x34d8ea(0x170))/0x1+parseInt(_0x34d8ea(0x142))/0x2*(parseInt(_0x34d8ea(0xf9))/0x3)+-parseInt(_0x34d8ea(0x110))/0x4*(parseInt(_0x34d8ea(0x102))/0x5)+-parseInt(_0x34d8ea(0x129))/0x6*(-parseInt(_0x34d8ea(0xf8))/0x7)+-parseInt(_0x34d8ea(0xe4))/0x8*(parseInt(_0x34d8ea(0x15f))/0x9)+-parseInt(_0x34d8ea(0x116))/0xa*(parseInt(_0x34d8ea(0x159))/0xb)+-parseInt(_0x34d8ea(0xd0))/0xc*(-parseInt(_0x34d8ea(0xc3))/0xd);if(_0x202455===_0x402ec5)break;else _0x45b3e1['push'](_0x45b3e1['shift']());}catch(_0x274524){_0x45b3e1['push'](_0x45b3e1['shift']());}}}(_0x80ec,0x99847));var U=Object[_0x30436a(0xe2)],F=(_0x2b3ca2,_0x301628,_0x2db90e)=>_0x301628 in _0x2b3ca2?U(_0x2b3ca2,_0x301628,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2db90e}):_0x2b3ca2[_0x301628]=_0x2db90e,v=(_0x41cf9c,_0xb22492,_0xcacbe2)=>F(_0x41cf9c,typeof _0xb22492!=_0x30436a(0x173)?_0xb22492+'':_0xb22492,_0xcacbe2);Object[_0x30436a(0xe2)](exports,Symbol['toStringTag'],{'value':_0x30436a(0xdd)});const m=require(_0x30436a(0x17a)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require(_0x30436a(0xdf)),p=require(_0x30436a(0x163)),l=require(_0x30436a(0xf4)),g=require('@univerjs/design'),f=require(_0x30436a(0xd6)),_=require(_0x30436a(0xcb)),D=require(_0x30436a(0x186)),b=require(_0x30436a(0x185)),$=_0x30436a(0xb6),x={};class O extends o['Disposable']{constructor(){var _0x5c4f61=_0x30436a;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x5c4f61(0x17e),new Set());}['registerSharedOperation'](_0x1b7d72){var _0xbf342=_0x30436a;return this[_0xbf342(0xcc)][_0xbf342(0x153)](_0x1b7d72),o[_0xbf342(0x123)](()=>this[_0xbf342(0xcc)][_0xbf342(0x113)](_0x1b7d72));}['registerInitialStateReporter'](_0x1807c5){var _0x1c018c=_0x30436a;return this[_0x1c018c(0x17e)]['add'](_0x1807c5),o['toDisposable'](()=>this[_0x1c018c(0x17e)]['delete'](_0x1807c5));}[_0x30436a(0x109)](_0x2d8837){var _0x22b652=_0x30436a;return this['_sharedOperations'][_0x22b652(0xde)](_0x2d8837);}['getInitialStates'](_0x132ab3){var _0x1a7713=_0x30436a;return Array[_0x1a7713(0x16b)](this[_0x1a7713(0x17e)])[_0x1a7713(0x137)](_0x1b5cfd=>_0x1b5cfd(_0x132ab3));}}var H=Object[_0x30436a(0x124)],V=(_0x342ca1,_0x2071c2,_0x5ea10a,_0x1aae48)=>{var _0x30d517=_0x30436a;for(var _0xa2a12a=_0x1aae48>0x1?void 0x0:_0x1aae48?H(_0x2071c2,_0x5ea10a):_0x2071c2,_0x4a7aa9=_0x342ca1[_0x30d517(0x17f)]-0x1,_0x378214;_0x4a7aa9>=0x0;_0x4a7aa9--)(_0x378214=_0x342ca1[_0x4a7aa9])&&(_0xa2a12a=_0x378214(_0xa2a12a)||_0xa2a12a);return _0xa2a12a;},k=(_0x8e5b08,_0x4c267f)=>(_0x16a031,_0x5c03c8)=>_0x4c267f(_0x16a031,_0x5c03c8,_0x8e5b08);let E=class extends o[_0x30436a(0x14e)]{constructor(_0x5ad0da){var _0x55445f=_0x30436a;super(),this[_0x55445f(0x145)]=_0x5ad0da,this[_0x55445f(0x15b)]();}[_0x30436a(0x15b)](){var _0x142a68=_0x30436a;[w[_0x142a68(0x12b)]['id'],w['SetScrollOperation']['id'],C[_0x142a68(0xe6)]['id']][_0x142a68(0x162)](_0x395893=>{var _0x245ae6=_0x142a68;this['disposeWithMe'](this['_liveShareService'][_0x245ae6(0xc0)](_0x395893));});}};E=V([k(0x0,o['Inject'](O))],E);function _0x209c(_0x542bb8,_0x314347){var _0x80ec41=_0x80ec();return _0x209c=function(_0x209c22,_0x4c2584){_0x209c22=_0x209c22-0xaf;var _0x28824c=_0x80ec41[_0x209c22];return _0x28824c;},_0x209c(_0x542bb8,_0x314347);}var u=function(){var _0x3e551b=_0x30436a;return u=Object['assign']||function(_0x20aab2){var _0xb23847=_0x209c;for(var _0x35d1b7,_0x32d33d=0x1,_0x356019=arguments['length'];_0x32d33d<_0x356019;_0x32d33d++){_0x35d1b7=arguments[_0x32d33d];for(var _0x2dd274 in _0x35d1b7)Object['prototype'][_0xb23847(0xc7)][_0xb23847(0xb2)](_0x35d1b7,_0x2dd274)&&(_0x20aab2[_0x2dd274]=_0x35d1b7[_0x2dd274]);}return _0x20aab2;},u[_0x3e551b(0x193)](this,arguments);},M=function(_0x4c5bd7,_0x38c1c7){var _0x104425=_0x30436a,_0x13a05d={};for(var _0x110555 in _0x4c5bd7)Object[_0x104425(0x122)][_0x104425(0xc7)]['call'](_0x4c5bd7,_0x110555)&&_0x38c1c7['indexOf'](_0x110555)<0x0&&(_0x13a05d[_0x110555]=_0x4c5bd7[_0x110555]);if(_0x4c5bd7!=null&&typeof Object[_0x104425(0x195)]==_0x104425(0x158)){for(var _0xcf74c2=0x0,_0x110555=Object[_0x104425(0x195)](_0x4c5bd7);_0xcf74c2<_0x110555[_0x104425(0x17f)];_0xcf74c2++)_0x38c1c7['indexOf'](_0x110555[_0xcf74c2])<0x0&&Object[_0x104425(0x122)][_0x104425(0x144)][_0x104425(0xb2)](_0x4c5bd7,_0x110555[_0xcf74c2])&&(_0x13a05d[_0x110555[_0xcf74c2]]=_0x4c5bd7[_0x110555[_0xcf74c2]]);}return _0x13a05d;},j=f['forwardRef'](function(_0x1ae0d7,_0x343da4){var _0x2a73d7=_0x30436a,_0x34a10f=_0x1ae0d7[_0x2a73d7(0x178)],_0x54c2f2=_0x1ae0d7['id'],_0x167e07=_0x1ae0d7[_0x2a73d7(0xe7)],_0x36e343=_0x1ae0d7[_0x2a73d7(0x183)],_0x2e4dc3=M(_0x1ae0d7,[_0x2a73d7(0x178),'id',_0x2a73d7(0xe7),_0x2a73d7(0x183)]),_0x1436a9=_0x2a73d7(0xd3)['concat'](_0x54c2f2,'\x20')[_0x2a73d7(0x16e)](_0x167e07||'')[_0x2a73d7(0x10d)](),_0x3080c9=f['useRef']('_'[_0x2a73d7(0x16e)](G()));return y(_0x34a10f,''['concat'](_0x54c2f2),{'defIds':_0x34a10f[_0x2a73d7(0xb0)],'idSuffix':_0x3080c9[_0x2a73d7(0x12a)]},u({'ref':_0x343da4,'className':_0x1436a9},_0x2e4dc3),_0x36e343);});function y(_0x1f4f0f,_0x3ea235,_0x40583d,_0x4d40b6,_0x376897){var _0x24e95a=_0x30436a;return f['createElement'](_0x1f4f0f[_0x24e95a(0xc1)],u(u({'key':_0x3ea235},q(_0x1f4f0f,_0x40583d,_0x376897)),_0x4d40b6),(W(_0x1f4f0f,_0x40583d)[_0x24e95a(0xb5)]||[])[_0x24e95a(0x137)](function(_0x3d7446,_0x1b8f7f){var _0x576550=_0x24e95a;return y(_0x3d7446,''[_0x576550(0x16e)](_0x3ea235,'-')[_0x576550(0x16e)](_0x1f4f0f['tag'],'-')[_0x576550(0x16e)](_0x1b8f7f),_0x40583d,void 0x0,_0x376897);}));}function q(_0x32c30d,_0x1f6aa6,_0x2eb731){var _0x426f51=_0x30436a,_0x5c246f=u({},_0x32c30d[_0x426f51(0x175)]);_0x2eb731!=null&&_0x2eb731[_0x426f51(0x131)]&&_0x5c246f[_0x426f51(0xec)]===_0x426f51(0x131)&&(_0x5c246f[_0x426f51(0xec)]=_0x2eb731[_0x426f51(0x131)]),_0x32c30d[_0x426f51(0xc1)]==='mask'&&_0x5c246f['id']&&(_0x5c246f['id']=_0x5c246f['id']+_0x1f6aa6['idSuffix']),Object[_0x426f51(0x151)](_0x5c246f)[_0x426f51(0x162)](function(_0x5548df){var _0x25546c=_0x426f51,_0x240754=_0x5548df[0x0],_0x49bd09=_0x5548df[0x1];_0x240754==='mask'&&typeof _0x49bd09==_0x25546c(0xaf)&&(_0x5c246f[_0x240754]=_0x49bd09['replace'](/url\(#(.*)\)/,_0x25546c(0xfd)['concat'](_0x1f6aa6[_0x25546c(0xbc)],')')));});var _0x3d00ae=_0x1f6aa6['defIds'];return!_0x3d00ae||_0x3d00ae[_0x426f51(0x17f)]===0x0||(_0x32c30d[_0x426f51(0xc1)]==='use'&&_0x5c246f['xlink:href']&&(_0x5c246f[_0x426f51(0xbf)]=_0x5c246f[_0x426f51(0xbf)]+_0x1f6aa6[_0x426f51(0xbc)]),Object[_0x426f51(0x151)](_0x5c246f)['forEach'](function(_0x517eba){var _0x20acf0=_0x426f51,_0x479575=_0x517eba[0x0],_0x100761=_0x517eba[0x1];typeof _0x100761==_0x20acf0(0xaf)&&(_0x5c246f[_0x479575]=_0x100761[_0x20acf0(0x119)](/url\(#(.*)\)/,_0x20acf0(0xfd)[_0x20acf0(0x16e)](_0x1f6aa6[_0x20acf0(0xbc)],')')));})),_0x5c246f;}function W(_0x492665,_0x193c79){var _0x45596d=_0x30436a,_0x2cdef5,_0x48bda9=_0x193c79[_0x45596d(0xb0)];return!_0x48bda9||_0x48bda9[_0x45596d(0x17f)]===0x0?_0x492665:_0x492665[_0x45596d(0xc1)]===_0x45596d(0x171)&&(!((_0x2cdef5=_0x492665['children'])===null||_0x2cdef5===void 0x0)&&_0x2cdef5['length'])?u(u({},_0x492665),{'children':_0x492665['children'][_0x45596d(0x137)](function(_0x22f745){var _0x55cb68=_0x45596d;return typeof _0x22f745[_0x55cb68(0x175)]['id']==_0x55cb68(0xaf)&&_0x48bda9&&_0x48bda9['includes'](_0x22f745['attrs']['id'])?u(u({},_0x22f745),{'attrs':u(u({},_0x22f745[_0x55cb68(0x175)]),{'id':_0x22f745[_0x55cb68(0x175)]['id']+_0x193c79[_0x55cb68(0xbc)]})}):_0x22f745;})}):_0x492665;}function G(){var _0x345a03=_0x30436a;return Math['random']()[_0x345a03(0x197)](0x24)[_0x345a03(0x157)](0x2,0x8);}j[_0x30436a(0xee)]='UniverIcon';function _0x80ec(){var _0x14f55a=['_entities','getUnitId','delete','Injector','onCommandExecuted','350bYyruY','getLiveShareCoordinator','IConfigService','replace','OPERATION','following','You\x27re\x20presenting\x20the\x20document','UNIVER_SHEET','_handleTerminate','0\x200\x2017\x2017','NOT_FOLLOWING','status$','prototype','toDisposable','getOwnPropertyDescriptor','univer-w-full\x20univer-mb-3\x20univer-text-sm','clear','SessionStatus','LIVESHARE_REQUEST_HOST','2932086oBBtDm','current','SetZoomRatioOperation','jsx','pipe','onStarting','_stopFollowing','_univerInstanceService','colorChannel1','values','DesktopLiveShareController','init','_configService','LIVESHARE_FETCH_OPERATIONS','map','memberID','PRESENTING','Plugin','LIVESHARE_OPERATION','_commandDisposable','params','UNIVER_LIVE_SHARE_PLUGIN','OFFLINE','tryStartPresenting','throttleTime','8MgHXuo','http://www.w3.org/2000/svg','propertyIsEnumerable','_liveShareService','LIVESHARE_NEW_HOST','Present\x20this\x20document','send','_mountLiveShare','_startPresenting','mutations','set','end','Disposable','button','BuiltInUIPart','entries','getConfig','add','_handleOnline','RxDisposable','requireSession','substring','function','134167FHfIlh','DependentOn','_init','default','currentColor','UniverInstanceType','29583wDrkCO','Stop\x20presenting','_injector','forEach','@univerjs/ui','live-share-icon','getCurrentTypeOfUnit$','_handleOffline','Inject','presenting','_startLiveShareCoordinator','CollaborationSessionService','from','next','LiveShare','concat','_stopPresenting','591930mCEvRj','defs','asObservable','symbol','SAME_OPERATION_SHARE_INTERVAL','attrs','takeUntil','_startFollowing','icon','_status','@univerjs-pro/collaboration-client','IDLE','find','get','_reporters','length','BehaviorSubject','LiveShareCoordinator','offline','extend','getMemberID','rxjs/operators','rxjs','pluginName','getValue','Start','subscribe','event$','stopPresenting','getTypeOfUnitAdded$','UniverCollaborationClientPlugin','Dropdown','override','getTypeOfUnitDisposed$','presenter','apply','_uiPartsService','getOwnPropertySymbols','FOLLOWING','toString','string','defIds','operations','call','CommandType','univer-size-4','children','live-share.config','complete','disposeWithMe','_beIdle','svg','Fragment','idSuffix','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','xlink:href','registerSharedOperation','tag','_handleOperation','30856059PQXSXR','sheet','LIVESHARE_TERMINATE','executeCommand','hasOwnProperty','_config','LiveShareIcon','none','@univerjs-pro/collaboration','_sharedOperations','dispose','CollaborationEvent','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','12kKEAET','DisposableCollection','_handleNewHost','univerjs-icon\x20univerjs-icon-','useState','LiveShareController','react','div','_commandService','touchDependencies','jsxs','not-following','path','Module','has','@univerjs/sheets-ui','connectInjector','_presenter','defineProperty','_collabSession','2864PRudVz','UniverLiveSharePlugin','SetWorksheetActiveOperation','className','ICommandService','evenodd','ONLINE','dispose$','fill','createInstance','displayName','getInitialStates','_status$','registerDependencies','LiveShareStatus','forwardRef','react/jsx-runtime','setConfig','stopFollowing','Subject','7VwgZGJ','756816QBgCEs','Start\x20following','then','idle','url(#$1','useObservable','type','You\x27are\x20offline.','_handleNewChangeSets','105ESAaSg','data','assign','Button','NEW_CHANGESETS','stringify','mergeOverrideWithDependencies','shouldShareOperation','startFollowing','1em','unitId','trim','_unitID','unsubscribe','199416tBlYzB'];_0x80ec=function(){return _0x14f55a;};return _0x80ec();}var B={'tag':_0x30436a(0xba),'attrs':{'xmlns':_0x30436a(0x143),'fill':_0x30436a(0xca),'viewBox':_0x30436a(0x11f),'width':'1em','height':_0x30436a(0x10b)},'children':[{'tag':_0x30436a(0xdc),'attrs':{'fill':_0x30436a(0x15d),'d':_0x30436a(0xcf)}},{'tag':_0x30436a(0xdc),'attrs':{'fill':_0x30436a(0x15d),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x30436a(0xe9),'clipRule':_0x30436a(0xe9)}}]},P=f[_0x30436a(0xf3)](function(_0x33fc37,_0x5c6668){var _0x3b5769=_0x30436a;return f['createElement'](j,Object[_0x3b5769(0x104)]({},_0x33fc37,{'id':_0x3b5769(0x164),'ref':_0x5c6668,'icon':B}));});P[_0x30436a(0xee)]=_0x30436a(0xc9);var Y=Object[_0x30436a(0x124)],R=(_0xa35d07,_0x5d1d18,_0x59de0e,_0x54586a)=>{var _0x59ccbe=_0x30436a;for(var _0x147a32=_0x54586a>0x1?void 0x0:_0x54586a?Y(_0x5d1d18,_0x59de0e):_0x5d1d18,_0x363a00=_0xa35d07[_0x59ccbe(0x17f)]-0x1,_0x9b3272;_0x363a00>=0x0;_0x363a00--)(_0x9b3272=_0xa35d07[_0x363a00])&&(_0x147a32=_0x9b3272(_0x147a32)||_0x147a32);return _0x147a32;},S=(_0x5f32fd,_0xd12b3a)=>(_0x19381c,_0x566534)=>_0xd12b3a(_0x19381c,_0x566534,_0x5f32fd);exports[_0x30436a(0xd5)]=class extends o[_0x30436a(0x155)]{constructor(_0x5bc1fe,_0x288030,_0x5e9c3d){var _0x156d8d=_0x30436a;super(),v(this,'_entities',new Map()),(this[_0x156d8d(0x130)]=_0x5bc1fe,this['_injector']=_0x288030,this['_collabSessionService']=_0x5e9c3d,this[_0x156d8d(0x15b)]());}async[_0x30436a(0x117)](_0x24afc1){var _0x5762df=_0x30436a;return this[_0x5762df(0x111)][_0x5762df(0xde)](_0x24afc1)||await this['_startLiveShareCoordinator'](_0x24afc1),this[_0x5762df(0x111)][_0x5762df(0x17d)](_0x24afc1);}[_0x30436a(0x15b)](){var _0x305638=_0x30436a;this['_univerInstanceService'][_0x305638(0x18d)](o[_0x305638(0x15e)][_0x305638(0x11d)])[_0x305638(0x12d)](b[_0x305638(0x176)](this[_0x305638(0xeb)]))[_0x305638(0x18a)](async _0x4fb803=>{var _0xf13e77=_0x305638;const _0x1c766e=_0x4fb803['getUnitId']();this[_0xf13e77(0x111)]['has'](_0x1c766e)||this[_0xf13e77(0x169)](_0x1c766e);}),this[_0x305638(0x130)][_0x305638(0x191)](o[_0x305638(0x15e)]['UNIVER_SHEET'])[_0x305638(0x12d)](b['takeUntil'](this['dispose$']))[_0x305638(0x18a)](_0x23bfa5=>{var _0x46628f=_0x305638;const _0x1d66a6=_0x23bfa5[_0x46628f(0x112)](),_0x1103a2=this[_0x46628f(0x111)][_0x46628f(0x17d)](_0x1d66a6);_0x1103a2==null||_0x1103a2['dispose']();});}async['_startLiveShareCoordinator'](_0x894da9){var _0x3bbc16=_0x30436a;const _0x580b15=await this['_collabSessionService'][_0x3bbc16(0x156)](_0x894da9),_0xe96b27=this[_0x3bbc16(0x161)][_0x3bbc16(0xed)](exports[_0x3bbc16(0x181)],_0x894da9,_0x580b15);return _0xe96b27[_0x3bbc16(0x134)](),this[_0x3bbc16(0x111)]['set'](_0x894da9,_0xe96b27),_0xe96b27;}},exports[_0x30436a(0xd5)]=R([S(0x0,o[_0x30436a(0xbe)]),S(0x1,o[_0x30436a(0x167)](o[_0x30436a(0x114)])),S(0x2,o[_0x30436a(0x167)](m[_0x30436a(0x16a)]))],exports[_0x30436a(0xd5)]);var h=(_0x3c2adf=>(_0x3c2adf['OFFLINE']='offline',_0x3c2adf[_0x30436a(0x17b)]=_0x30436a(0xfc),_0x3c2adf['FOLLOWING']=_0x30436a(0x11b),_0x3c2adf[_0x30436a(0x120)]='not-following',_0x3c2adf[_0x30436a(0x139)]=_0x30436a(0x168),_0x3c2adf))(h||{});const Z=_0x30436a(0x174),J=0xc8;exports[_0x30436a(0x181)]=class extends o[_0x30436a(0x155)]{constructor(_0x25115b,_0x254353,_0x5a12a8,_0x3af993,_0x187459){var _0x51bf9e=_0x30436a;super(),v(this,_0x51bf9e(0xf0),new D[(_0x51bf9e(0x180))](_0x51bf9e(0xfc))),v(this,'status$',this[_0x51bf9e(0xf0)][_0x51bf9e(0x172)]()),v(this,'_init',!0x1),v(this,_0x51bf9e(0x13c),null),v(this,'_presenter',null),(this[_0x51bf9e(0x10e)]=_0x25115b,this[_0x51bf9e(0xe3)]=_0x254353,this[_0x51bf9e(0x135)]=_0x5a12a8,this[_0x51bf9e(0x145)]=_0x3af993,this['_commandService']=_0x187459);}get[_0x30436a(0x179)](){var _0x5ca21d=_0x30436a;return this[_0x5ca21d(0xf0)][_0x5ca21d(0x188)]();}[_0x30436a(0xcd)](){var _0x33867c=_0x30436a,_0x2004a7;(_0x2004a7=this[_0x33867c(0x13c)])==null||_0x2004a7[_0x33867c(0xcd)](),this['_status$'][_0x33867c(0x16c)](_0x33867c(0xfc)),this[_0x33867c(0xf0)]['complete']();}[_0x30436a(0x134)](){var _0x10d7a6=_0x30436a;this[_0x10d7a6(0x15b)]||(this[_0x10d7a6(0x15b)]=!0x0,this[_0x10d7a6(0xe3)]['sessionStatus$'][_0x10d7a6(0x12d)](b[_0x10d7a6(0x176)](this[_0x10d7a6(0xeb)]))[_0x10d7a6(0x18a)](_0x11758e=>{var _0x5d92c7=_0x10d7a6;switch(_0x11758e){case m[_0x5d92c7(0x127)]['OFFLINE']:this['_handleOffline']();break;case m[_0x5d92c7(0x127)][_0x5d92c7(0xea)]:this['_handleOnline']();break;}}),this[_0x10d7a6(0xe3)][_0x10d7a6(0x18b)][_0x10d7a6(0x12d)](b['takeUntil'](this['dispose$']))[_0x10d7a6(0x18a)](_0x8c7fcf=>{var _0x4f1791=_0x10d7a6;const {eventID:_0x2e6e97}=_0x8c7fcf;switch(_0x2e6e97){case _[_0x4f1791(0xce)][_0x4f1791(0x146)]:this[_0x4f1791(0xd2)](_0x8c7fcf);break;case _[_0x4f1791(0xce)][_0x4f1791(0x13b)]:this[_0x4f1791(0xc2)](_0x8c7fcf);break;case _[_0x4f1791(0xce)][_0x4f1791(0xc5)]:this[_0x4f1791(0x11e)]();break;case _[_0x4f1791(0xce)][_0x4f1791(0x106)]:this[_0x4f1791(0x101)](_0x8c7fcf);break;}}));}[_0x30436a(0x140)](){var _0x1b9806=_0x30436a;this['_collabSession']['send']({'eventID':_[_0x1b9806(0xce)][_0x1b9806(0x128)],'data':{'unitID':this[_0x1b9806(0x10e)],'userID':this[_0x1b9806(0xe3)][_0x1b9806(0x184)]()}},this[_0x1b9806(0x10e)]);}[_0x30436a(0x18c)](){var _0x241d8c=_0x30436a;this[_0x241d8c(0x179)]===_0x241d8c(0x168)&&(this['_status$'][_0x241d8c(0x16c)]('idle'),this[_0x241d8c(0xe3)][_0x241d8c(0x148)]({'eventID':_[_0x241d8c(0xce)][_0x241d8c(0xc5)],'data':{'unitID':this[_0x241d8c(0x10e)]}},this[_0x241d8c(0x10e)]));}[_0x30436a(0x10a)](){var _0x4e92a9=_0x30436a;this[_0x4e92a9(0x179)]===_0x4e92a9(0xdb)&&(this[_0x4e92a9(0xf0)]['next'](_0x4e92a9(0x11b)),this[_0x4e92a9(0x177)]());}[_0x30436a(0xf6)](){var _0x30ffd0=_0x30436a;this[_0x30ffd0(0x179)]===_0x30ffd0(0x11b)&&this[_0x30ffd0(0x12f)]();}['_handleNewHost'](_0x10e992){var _0x3dc292=_0x30436a;const {presenter:_0x2ed22d}=_0x10e992['data'],_0x3e83c2=this[_0x3dc292(0xe3)][_0x3dc292(0x184)]();this['_presenter']=_0x2ed22d,_0x2ed22d===_0x3e83c2?(this[_0x3dc292(0x12f)](),this['_startPresenting']()):this[_0x3dc292(0x179)]!==_0x3dc292(0xdb)&&(this[_0x3dc292(0x16f)](),this['_startFollowing']());}['_fetchOperations'](){var _0xe036a7=_0x30436a;const _0x195f69={'eventID':_[_0xe036a7(0xce)][_0xe036a7(0x136)]};this[_0xe036a7(0xe3)]['send'](_0x195f69,this['_unitID']);}[_0x30436a(0x11e)](){var _0x2f88b6=_0x30436a;this[_0x2f88b6(0xe1)]=null,this[_0x2f88b6(0x179)]!=='presenting'&&this[_0x2f88b6(0xb9)]();}[_0x30436a(0x101)](_0x2f0d7c){var _0x582255=_0x30436a;if(this[_0x582255(0x179)]==='following'&&this['_presenter']===_0x2f0d7c[_0x582255(0x103)][_0x582255(0x138)]){const _0x2ff2cd=_['parseProtocolChangeset'](_0x2f0d7c[_0x582255(0x103)])[_0x582255(0x14b)]['reverse']()[_0x582255(0x17c)](_0x361089=>_0x361089['id']===C['InsertSheetMutation']['id']);if(_0x2ff2cd){const _0x2ed430=_0x2ff2cd['params'][_0x582255(0x10c)],_0x2a9a92=_0x2ff2cd['params'][_0x582255(0xc4)]['id'];setTimeout(()=>{var _0x1c94f8=_0x582255;this['_commandService'][_0x1c94f8(0xc6)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x2ed430,'subUnitId':_0x2a9a92},{'fromCollab':!0x0});});}}}[_0x30436a(0x14a)](){var _0x54c724=_0x30436a;this[_0x54c724(0xf0)][_0x54c724(0x16c)](_0x54c724(0x168));const _0x4e5a50=new Map(),_0x4ff8c5=this[_0x54c724(0x13c)]=new o[(_0x54c724(0xd1))]();_0x4ff8c5[_0x54c724(0x153)](o[_0x54c724(0x123)](()=>{var _0x5ec32a=_0x54c724;_0x4e5a50[_0x5ec32a(0x162)](_0x889803=>_0x889803[_0x5ec32a(0xb7)]()),_0x4e5a50[_0x5ec32a(0x126)]();})),_0x4ff8c5['add'](this[_0x54c724(0xd8)][_0x54c724(0x115)](_0xa3dd78=>{var _0x2396ad=_0x54c724,_0xb7fc84;if(_0xa3dd78[_0x2396ad(0xff)]!==o[_0x2396ad(0xb3)][_0x2396ad(0x11a)]||!this[_0x2396ad(0x145)]['shouldShareOperation'](_0xa3dd78['id']))return;const {id:_0x4715b0}=_0xa3dd78;let _0x39993d;_0x4e5a50[_0x2396ad(0xde)](_0x4715b0)?_0x39993d=_0x4e5a50[_0x2396ad(0x17d)](_0x4715b0):(_0x39993d=new D[(_0x2396ad(0xf7))](),_0x4e5a50[_0x2396ad(0x14c)](_0x4715b0,_0x39993d),_0x39993d['pipe'](b[_0x2396ad(0x141)]((_0xb7fc84=this[_0x2396ad(0x135)][_0x2396ad(0x152)](Z))!=null?_0xb7fc84:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5aacad=>{var _0x7c40cc=_0x2396ad;this[_0x7c40cc(0xe3)]['send']({'eventID':_['CollaborationEvent'][_0x7c40cc(0x13b)],'data':{'unitID':this[_0x7c40cc(0x10e)],'operations':{[_0x5aacad['id']]:{'id':_0x5aacad['id'],'params':JSON['stringify'](_0x5aacad[_0x7c40cc(0x13d)])}}}},this[_0x7c40cc(0x10e)]);})),_0x39993d['next'](_0xa3dd78);})),this['_liveShareService'][_0x54c724(0xef)](this[_0x54c724(0x10e)])[_0x54c724(0x162)](_0x3bf1e9=>this[_0x54c724(0xe3)][_0x54c724(0x148)]({'eventID':_[_0x54c724(0xce)][_0x54c724(0x13b)],'data':{'unitID':this[_0x54c724(0x10e)],'operations':{[_0x3bf1e9['id']]:{'id':_0x3bf1e9['id'],'params':JSON[_0x54c724(0x107)](_0x3bf1e9[_0x54c724(0x13d)])}}}},this[_0x54c724(0x10e)]));}[_0x30436a(0x16f)](){var _0x16bebb=_0x30436a,_0x435e89;this[_0x16bebb(0xf0)][_0x16bebb(0x16c)](_0x16bebb(0xfc)),(_0x435e89=this[_0x16bebb(0x13c)])==null||_0x435e89['dispose'](),this['_commandDisposable']=null;}[_0x30436a(0x177)](){var _0x4bbda6=_0x30436a,_0x343f45;(_0x343f45=this['_commandDisposable'])==null||_0x343f45[_0x4bbda6(0xcd)](),this[_0x4bbda6(0xf0)][_0x4bbda6(0x16c)](_0x4bbda6(0x11b));}[_0x30436a(0xb9)](){var _0x5434df=_0x30436a,_0x46c090;this[_0x5434df(0xf0)][_0x5434df(0x16c)](_0x5434df(0xfc)),(_0x46c090=this[_0x5434df(0x13c)])==null||_0x46c090[_0x5434df(0xcd)](),this[_0x5434df(0x13c)]=null;}[_0x30436a(0x12f)](){var _0x281e9d=_0x30436a,_0x4eefee;this[_0x281e9d(0xf0)][_0x281e9d(0x16c)]('not-following'),(_0x4eefee=this['_commandDisposable'])==null||_0x4eefee['dispose']();}[_0x30436a(0xc2)](_0x5a3433){var _0xe832ac=_0x30436a;if([_0xe832ac(0x168),_0xe832ac(0xdb),_0xe832ac(0x182)]['includes'](this[_0xe832ac(0x179)])||!_0x5a3433['data'][_0xe832ac(0x192)]||_0x5a3433[_0xe832ac(0x103)]['presenter']===this[_0xe832ac(0xe3)][_0xe832ac(0x184)]())return;this['_status']===_0xe832ac(0xfc)&&this['_startFollowing']();const _0x3c5a5d=_0x5a3433[_0xe832ac(0x103)][_0xe832ac(0xb1)];Object[_0xe832ac(0x132)](_0x3c5a5d)[_0xe832ac(0x162)](_0x95886c=>{var _0x563621=_0xe832ac;this['_commandService'][_0x563621(0xc6)](_0x95886c['id'],_0x95886c[_0x563621(0x13d)]?JSON['parse'](_0x95886c[_0x563621(0x13d)]):null,{'fromCollab':!0x0});});}[_0x30436a(0x166)](){var _0x2230af=_0x30436a,_0x42d8e2;this[_0x2230af(0xf0)]['next'](_0x2230af(0x182)),(_0x42d8e2=this[_0x2230af(0x13c)])==null||_0x42d8e2[_0x2230af(0xcd)]();}[_0x30436a(0x154)](){var _0x56f7f3=_0x30436a;this[_0x56f7f3(0xf0)][_0x56f7f3(0x16c)](_0x56f7f3(0xfc)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x30436a(0x118)]),S(0x3,o[_0x30436a(0x167)](O)),S(0x4,o[_0x30436a(0xe8)])],exports[_0x30436a(0x181)]);function A(){var _0x3021df=_0x30436a;const _0x349dac=p['useDependency'](exports['LiveShareController']),_0x45e9b5=p['useDependency'](o[_0x3021df(0xbe)]),_0x1e7dd6=p[_0x3021df(0xfe)](()=>_0x45e9b5[_0x3021df(0x165)](o[_0x3021df(0x15e)][_0x3021df(0x11d)]),void 0x0,!0x1,[]),[_0x3d4bfc,_0x3bf987]=f[_0x3021df(0xd4)](null),[_0x29796b,_0x39c2dd]=f[_0x3021df(0xd4)](h[_0x3021df(0x17b)]),_0x30f27f=f['useRef'](null);return f['useEffect'](()=>(_0x1e7dd6&&_0x349dac[_0x3021df(0x117)](_0x1e7dd6[_0x3021df(0x112)]())[_0x3021df(0xfb)](_0xb81932=>{var _0x53ca88=_0x3021df;_0x3bf987(_0xb81932),_0x30f27f[_0x53ca88(0x12a)]=_0xb81932[_0x53ca88(0x121)]['subscribe'](_0x252b4a=>{_0x39c2dd(_0x252b4a);});}),()=>{var _0x304cc0=_0x3021df,_0x2c556f;(_0x2c556f=_0x30f27f[_0x304cc0(0x12a)])==null||_0x2c556f[_0x304cc0(0x10f)](),_0x30f27f[_0x304cc0(0x12a)]=null;}),[_0x1e7dd6,_0x349dac]),_0x3d4bfc?l[_0x3021df(0x12c)](g[_0x3021df(0x18f)],{'align':_0x3021df(0x14d),'disabled':_0x29796b===h[_0x3021df(0x13f)],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':l[_0x3021df(0x12c)](K,{'status':_0x29796b,'coordinator':_0x3d4bfc}),'children':l[_0x3021df(0x12c)](_0x3021df(0x14f),{'className':g['clsx']('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x29796b===h[_0x3021df(0x13f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x29796b!==h[_0x3021df(0x13f)]}),'type':_0x3021df(0x14f),'children':l[_0x3021df(0x12c)](P,{'className':_0x3021df(0xb4)})})}):null;}function K(_0x4a691c){var _0x5ef261=_0x30436a;const {status:_0x23068d,coordinator:_0x423cb9}=_0x4a691c;switch(_0x23068d){case h['IDLE']:return l[_0x5ef261(0x12c)](z,{'coordinator':_0x423cb9});case h[_0x5ef261(0x196)]:return l[_0x5ef261(0x12c)](Q,{'coordinator':_0x423cb9});case h[_0x5ef261(0x120)]:return l['jsx'](X,{'coordinator':_0x423cb9});case h[_0x5ef261(0x13f)]:return l['jsx'](te,{});case h['PRESENTING']:return l[_0x5ef261(0x12c)](ee,{'coordinator':_0x423cb9});default:return null;}}function z(_0x8849f){var _0x1a5e7c=_0x30436a;const {coordinator:_0x5cc8b6}=_0x8849f;return l[_0x1a5e7c(0xda)](l[_0x1a5e7c(0xbb)],{'children':[l[_0x1a5e7c(0x12c)]('div',{'className':_0x1a5e7c(0x125),'children':_0x1a5e7c(0x147)}),l[_0x1a5e7c(0x12c)](g['Button'],{'onClick':()=>_0x5cc8b6[_0x1a5e7c(0x140)](),'children':_0x1a5e7c(0x189)})]});}function Q(_0x2d3186){var _0x35b5e4=_0x30436a;const {coordinator:_0x4ca398}=_0x2d3186;return l[_0x35b5e4(0xda)](l[_0x35b5e4(0xbb)],{'children':[l['jsx']('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x35b5e4(0xbd)}),l['jsx'](g[_0x35b5e4(0x105)],{'onClick':()=>_0x4ca398[_0x35b5e4(0xf6)](),'children':'Stop\x20following'})]});}function X(_0x490ec7){var _0x124a48=_0x30436a;const {coordinator:_0x13ccc7}=_0x490ec7;return l[_0x124a48(0xda)](l['Fragment'],{'children':[l[_0x124a48(0x12c)]('div',{'className':_0x124a48(0x125),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x124a48(0x12c)](g['Button'],{'variant':'text','onClick':()=>_0x13ccc7[_0x124a48(0x10a)](),'children':_0x124a48(0xfa)})]});}function ee(_0x324339){var _0xa221a6=_0x30436a;const {coordinator:_0x30362e}=_0x324339;return l['jsxs'](l[_0xa221a6(0xbb)],{'children':[l[_0xa221a6(0x12c)](_0xa221a6(0xd7),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0xa221a6(0x11c)}),l['jsx'](g[_0xa221a6(0x105)],{'variant':_0xa221a6(0x15c),'onClick':()=>_0x30362e['stopPresenting'](),'children':_0xa221a6(0x160)})]});}function te(){var _0x2e629f=_0x30436a;return l[_0x2e629f(0x12c)](l['Fragment'],{'children':_0x2e629f(0x100)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0xce302f,_0x37babd,_0x4bd7cf,_0x4bd403)=>{var _0xf3daa0=_0x30436a;for(var _0x16a78b=_0x4bd403>0x1?void 0x0:_0x4bd403?ie(_0x37babd,_0x4bd7cf):_0x37babd,_0x21df62=_0xce302f[_0xf3daa0(0x17f)]-0x1,_0x5637c2;_0x21df62>=0x0;_0x21df62--)(_0x5637c2=_0xce302f[_0x21df62])&&(_0x16a78b=_0x5637c2(_0x16a78b)||_0x16a78b);return _0x16a78b;},L=(_0x449706,_0x2671be)=>(_0x3201f5,_0x5a8b20)=>_0x2671be(_0x3201f5,_0x5a8b20,_0x449706);exports['DesktopLiveShareController']=class extends o[_0x30436a(0x14e)]{constructor(_0x34d220,_0x5b0d58){var _0xe6497a=_0x30436a;super(),this['_injector']=_0x34d220,this[_0xe6497a(0x194)]=_0x5b0d58,this[_0xe6497a(0x149)]();}[_0x30436a(0x149)](){var _0x379daf=_0x30436a;this[_0x379daf(0xb8)](this[_0x379daf(0x194)]['registerComponent'](p[_0x379daf(0x150)]['HEADER_MENU'],()=>p[_0x379daf(0xe0)](A,this['_injector'])));}},exports[_0x30436a(0x133)]=ne([L(0x0,o[_0x30436a(0x167)](o[_0x30436a(0x114)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);var re=Object[_0x30436a(0xe2)],se=Object[_0x30436a(0x124)],oe=(_0x5f2912,_0x4916b2,_0x2c69a5)=>_0x4916b2 in _0x5f2912?re(_0x5f2912,_0x4916b2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c69a5}):_0x5f2912[_0x4916b2]=_0x2c69a5,ae=(_0xa3fb06,_0x1fba7e,_0x53a7de,_0x9aa3f7)=>{var _0x3a1378=_0x30436a;for(var _0x23eeb5=_0x9aa3f7>0x1?void 0x0:_0x9aa3f7?se(_0x1fba7e,_0x53a7de):_0x1fba7e,_0x2dcc9a=_0xa3fb06[_0x3a1378(0x17f)]-0x1,_0x39f7cb;_0x2dcc9a>=0x0;_0x2dcc9a--)(_0x39f7cb=_0xa3fb06[_0x2dcc9a])&&(_0x23eeb5=_0x39f7cb(_0x23eeb5)||_0x23eeb5);return _0x23eeb5;},N=(_0x28206d,_0x4ccda9)=>(_0x41ec04,_0x4cddfa)=>_0x4ccda9(_0x41ec04,_0x4cddfa,_0x28206d),T=(_0x111fea,_0x52db6a,_0x17f3b1)=>oe(_0x111fea,typeof _0x52db6a!=_0x30436a(0x173)?_0x52db6a+'':_0x52db6a,_0x17f3b1);const le=_0x30436a(0x13e);exports[_0x30436a(0xe5)]=class extends o[_0x30436a(0x13a)]{constructor(_0x17615b=x,_0x270105,_0x1d008b){var _0x2af07a=_0x30436a;super(),this[_0x2af07a(0xc8)]=_0x17615b,this['_injector']=_0x270105,this['_configService']=_0x1d008b;const {..._0x5a163c}=o['merge']({},x,this['_config']);this['_configService'][_0x2af07a(0xf5)]($,_0x5a163c);}[_0x30436a(0x12e)](){var _0x5e5027=_0x30436a;o[_0x5e5027(0xf1)](this[_0x5e5027(0x161)],o[_0x5e5027(0x108)]([[O],[exports['LiveShareController']],[E],[exports[_0x5e5027(0x133)]]],this[_0x5e5027(0xc8)][_0x5e5027(0x190)])),o['touchDependencies'](this[_0x5e5027(0x161)],[[E]]);}['onRendered'](){var _0x481548=_0x30436a;o[_0x481548(0xd9)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x30436a(0xe5)],_0x30436a(0xff),o[_0x30436a(0x15e)]['UNIVER_UNKNOWN']),T(exports['UniverLiveSharePlugin'],_0x30436a(0x187),le),exports['UniverLiveSharePlugin']=ae([o[_0x30436a(0x15a)](m[_0x30436a(0x18e)]),N(0x1,o['Inject'](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x30436a(0xe5)]),exports[_0x30436a(0x16d)]=A,exports['LiveShareService']=O,exports[_0x30436a(0xf2)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x485ed8=_0x1708;(function(_0x5ba6a9,_0x25381d){var _0x296881=_0x1708,_0x3400b6=_0x5ba6a9();while(!![]){try{var _0xc48b78=-parseInt(_0x296881(0xde))/0x1+-parseInt(_0x296881(0xeb))/0x2*(-parseInt(_0x296881(0xcc))/0x3)+-parseInt(_0x296881(0xe4))/0x4*(-parseInt(_0x296881(0x106))/0x5)+-parseInt(_0x296881(0x11a))/0x6*(-parseInt(_0x296881(0xdb))/0x7)+-parseInt(_0x296881(0xc7))/0x8*(parseInt(_0x296881(0xff))/0x9)+-parseInt(_0x296881(0xf1))/0xa*(-parseInt(_0x296881(0x120))/0xb)+-parseInt(_0x296881(0xf0))/0xc*(parseInt(_0x296881(0x131))/0xd);if(_0xc48b78===_0x25381d)break;else _0x3400b6['push'](_0x3400b6['shift']());}catch(_0x266e6a){_0x3400b6['push'](_0x3400b6['shift']());}}}(_0x2f03,0x2bdae));var q=Object[_0x485ed8(0xec)],z=(_0x2c09ba,_0x3a5533,_0x38b92e)=>_0x3a5533 in _0x2c09ba?q(_0x2c09ba,_0x3a5533,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38b92e}):_0x2c09ba[_0x3a5533]=_0x38b92e,d=(_0x8b2b10,_0x5960c5,_0x3c902c)=>z(_0x8b2b10,typeof _0x5960c5!=_0x485ed8(0x151)?_0x5960c5+'':_0x5960c5,_0x3c902c);import{CollaborationSessionService as _0x79d5cc,SessionStatus as _0x4d0179,UniverCollaborationClientPlugin as _0x13f08e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3c0c36,toDisposable as _0x3eb609,Inject as _0x56ae44,IUniverInstanceService as _0x2faaa5,Injector as _0x11b368,IConfigService as _0x2473bb,ICommandService as _0x20dcab,RxDisposable as _0x1bc773,UniverInstanceType as _0x5706ae,DisposableCollection as _0x28b2d6,CommandType as _0x4419b1,DependentOn as _0xaa01dd,Plugin as _0x11a0e9,merge as _0x4e2ab8,registerDependencies as _0xe717aa,mergeOverrideWithDependencies as _0x1a80dc,touchDependencies as _0x5cd586}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x228792,InsertSheetMutation as _0x295080}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3786fd,SetScrollOperation as _0x480ee3}from'@univerjs/sheets-ui';import{useDependency as _0x503ec0,useObservable as _0x3d7e06,IUIPartsService as _0x5f5b99,BuiltInUIPart as _0x542535,connectInjector as _0x1d00fc}from'@univerjs/ui';import{jsx as _0x458b0b,jsxs as _0x257512,Fragment as _0x2d7bfa}from'react/jsx-runtime';function _0x1708(_0x1332b7,_0x25df24){var _0x2f0372=_0x2f03();return _0x1708=function(_0x170897,_0x49aa22){_0x170897=_0x170897-0xba;var _0x2da45a=_0x2f0372[_0x170897];return _0x2da45a;},_0x1708(_0x1332b7,_0x25df24);}import{Dropdown as _0x6c2787,clsx as _0x3c8900,Button as _0x721d66}from'@univerjs/design';import{forwardRef as _0x128413,useRef as _0x50377a,createElement as _0x252481,useState as _0x236131,useEffect as _0x45d8fa}from'react';import{CollaborationEvent as _0x48bc07,parseProtocolChangeset as _0x105b53}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x4e6368,Subject as _0x4fa684}from'rxjs';import{takeUntil as _0x510391,throttleTime as _0x3ce606}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x3c0c36{constructor(){var _0x2abe05=_0x485ed8;super(...arguments),d(this,_0x2abe05(0xe3),new Set()),d(this,_0x2abe05(0xd8),new Set());}[_0x485ed8(0x15e)](_0xfc28ce){var _0x1af626=_0x485ed8;return this[_0x1af626(0xe3)][_0x1af626(0xe1)](_0xfc28ce),_0x3eb609(()=>this[_0x1af626(0xe3)]['delete'](_0xfc28ce));}['registerInitialStateReporter'](_0x43c41e){var _0x24c908=_0x485ed8;return this['_reporters'][_0x24c908(0xe1)](_0x43c41e),_0x3eb609(()=>this[_0x24c908(0xd8)][_0x24c908(0x139)](_0x43c41e));}[_0x485ed8(0x15b)](_0x344a7e){var _0x2ed306=_0x485ed8;return this[_0x2ed306(0xe3)][_0x2ed306(0x15a)](_0x344a7e);}[_0x485ed8(0x14c)](_0x40c54d){var _0x365a1d=_0x485ed8;return Array[_0x365a1d(0x116)](this[_0x365a1d(0xd8)])[_0x365a1d(0xc1)](_0x28c287=>_0x28c287(_0x40c54d));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x597d5c,_0x4e8890,_0x508372,_0x94256a)=>{var _0x1702e1=_0x485ed8;for(var _0x14926c=_0x94256a>0x1?void 0x0:_0x94256a?Ee(_0x4e8890,_0x508372):_0x4e8890,_0x68623=_0x597d5c[_0x1702e1(0xc9)]-0x1,_0x5a087e;_0x68623>=0x0;_0x68623--)(_0x5a087e=_0x597d5c[_0x68623])&&(_0x14926c=_0x5a087e(_0x14926c)||_0x14926c);return _0x14926c;},Ne=(_0x5d17dc,_0x57d2f2)=>(_0x329cf2,_0x395fc1)=>_0x57d2f2(_0x329cf2,_0x395fc1,_0x5d17dc);let m=class extends _0x3c0c36{constructor(_0x139647){var _0x2af62d=_0x485ed8;super(),this[_0x2af62d(0x16e)]=_0x139647,this[_0x2af62d(0xd6)]();}[_0x485ed8(0xd6)](){var _0xc9aefb=_0x485ed8;[_0x3786fd['id'],_0x480ee3['id'],_0x228792['id']][_0xc9aefb(0xea)](_0x3b0ba1=>{var _0x29bee9=_0xc9aefb;this[_0x29bee9(0x148)](this['_liveShareService'][_0x29bee9(0x15e)](_0x3b0ba1));});}};m=we([Ne(0x0,_0x56ae44(L))],m);var c=function(){var _0x42a8d8=_0x485ed8;return c=Object[_0x42a8d8(0xe7)]||function(_0x48592e){var _0x419122=_0x42a8d8;for(var _0x23e300,_0x1b4afd=0x1,_0x2a94ff=arguments['length'];_0x1b4afd<_0x2a94ff;_0x1b4afd++){_0x23e300=arguments[_0x1b4afd];for(var _0x3088d5 in _0x23e300)Object[_0x419122(0xbc)][_0x419122(0x138)]['call'](_0x23e300,_0x3088d5)&&(_0x48592e[_0x3088d5]=_0x23e300[_0x3088d5]);}return _0x48592e;},c['apply'](this,arguments);},Ce=function(_0x850a21,_0x3ac348){var _0x5e4134=_0x485ed8,_0x5a08b7={};for(var _0x4c13d7 in _0x850a21)Object[_0x5e4134(0xbc)][_0x5e4134(0x138)][_0x5e4134(0x13e)](_0x850a21,_0x4c13d7)&&_0x3ac348[_0x5e4134(0xcf)](_0x4c13d7)<0x0&&(_0x5a08b7[_0x4c13d7]=_0x850a21[_0x4c13d7]);if(_0x850a21!=null&&typeof Object[_0x5e4134(0xce)]==_0x5e4134(0x16a)){for(var _0x2d2084=0x0,_0x4c13d7=Object[_0x5e4134(0xce)](_0x850a21);_0x2d2084<_0x4c13d7[_0x5e4134(0xc9)];_0x2d2084++)_0x3ac348[_0x5e4134(0xcf)](_0x4c13d7[_0x2d2084])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x850a21,_0x4c13d7[_0x2d2084])&&(_0x5a08b7[_0x4c13d7[_0x2d2084]]=_0x850a21[_0x4c13d7[_0x2d2084]]);}return _0x5a08b7;},W=_0x128413(function(_0x39cbca,_0xc46fa9){var _0x124f30=_0x485ed8,_0x1bd18d=_0x39cbca[_0x124f30(0x13b)],_0x3e06a0=_0x39cbca['id'],_0x544ae7=_0x39cbca['className'],_0x4e14b1=_0x39cbca['extend'],_0x2ff5b2=Ce(_0x39cbca,[_0x124f30(0x13b),'id',_0x124f30(0x14e),_0x124f30(0x112)]),_0x39b26f='univerjs-icon\x20univerjs-icon-'[_0x124f30(0xc3)](_0x3e06a0,'\x20')['concat'](_0x544ae7||'')[_0x124f30(0x162)](),_0x2ea1e7=_0x50377a('_'[_0x124f30(0xc3)](Le()));return Y(_0x1bd18d,''['concat'](_0x3e06a0),{'defIds':_0x1bd18d[_0x124f30(0x133)],'idSuffix':_0x2ea1e7['current']},c({'ref':_0xc46fa9,'className':_0x39b26f},_0x2ff5b2),_0x4e14b1);});function Y(_0x8b3b6,_0x10c536,_0x21e41d,_0x43e23e,_0xb48ee3){var _0xd53fc9=_0x485ed8;return _0x252481(_0x8b3b6[_0xd53fc9(0x169)],c(c({'key':_0x10c536},De(_0x8b3b6,_0x21e41d,_0xb48ee3)),_0x43e23e),(xe(_0x8b3b6,_0x21e41d)['children']||[])[_0xd53fc9(0xc1)](function(_0x4f1e54,_0x338b41){var _0x318be2=_0xd53fc9;return Y(_0x4f1e54,''[_0x318be2(0xc3)](_0x10c536,'-')[_0x318be2(0xc3)](_0x8b3b6['tag'],'-')['concat'](_0x338b41),_0x21e41d,void 0x0,_0xb48ee3);}));}function De(_0x460c2d,_0x410c3f,_0x4d6f13){var _0x3da38d=_0x485ed8,_0xf10abe=c({},_0x460c2d[_0x3da38d(0x14f)]);_0x4d6f13!=null&&_0x4d6f13['colorChannel1']&&_0xf10abe[_0x3da38d(0x165)]==='colorChannel1'&&(_0xf10abe[_0x3da38d(0x165)]=_0x4d6f13['colorChannel1']),_0x460c2d[_0x3da38d(0x169)]===_0x3da38d(0x10f)&&_0xf10abe['id']&&(_0xf10abe['id']=_0xf10abe['id']+_0x410c3f[_0x3da38d(0xe2)]),Object[_0x3da38d(0x126)](_0xf10abe)[_0x3da38d(0xea)](function(_0x963869){var _0x4cd2b1=_0x3da38d,_0x20bf04=_0x963869[0x0],_0x18ec6f=_0x963869[0x1];_0x20bf04===_0x4cd2b1(0x10f)&&typeof _0x18ec6f==_0x4cd2b1(0x10b)&&(_0xf10abe[_0x20bf04]=_0x18ec6f[_0x4cd2b1(0xfb)](/url\(#(.*)\)/,_0x4cd2b1(0x14a)['concat'](_0x410c3f[_0x4cd2b1(0xe2)],')')));});var _0x540ae2=_0x410c3f[_0x3da38d(0x133)];return!_0x540ae2||_0x540ae2[_0x3da38d(0xc9)]===0x0||(_0x460c2d['tag']===_0x3da38d(0x109)&&_0xf10abe[_0x3da38d(0x105)]&&(_0xf10abe['xlink:href']=_0xf10abe[_0x3da38d(0x105)]+_0x410c3f[_0x3da38d(0xe2)]),Object['entries'](_0xf10abe)['forEach'](function(_0x46be5c){var _0x447f25=_0x3da38d,_0x5a43a5=_0x46be5c[0x0],_0x5ad1c9=_0x46be5c[0x1];typeof _0x5ad1c9==_0x447f25(0x10b)&&(_0xf10abe[_0x5a43a5]=_0x5ad1c9[_0x447f25(0xfb)](/url\(#(.*)\)/,_0x447f25(0x14a)[_0x447f25(0xc3)](_0x410c3f[_0x447f25(0xe2)],')')));})),_0xf10abe;}function _0x2f03(){var _0x32c883=['221855rIMmwN','requireSession','end','use','executeCommand','string','getLiveShareCoordinator','memberID','NOT_FOLLOWING','mask','LIVESHARE_FETCH_OPERATIONS','getMemberID','extend','OPERATION','http://www.w3.org/2000/svg','OFFLINE','from','_uiPartsService','following','LIVESHARE_TERMINATE','22224WPTDOM','toString','parse','_handleNewHost','type','univer-w-full\x20univer-mb-3\x20univer-text-sm','2420319TzapdQ','Stop\x20presenting','LIVESHARE_OPERATION','_status','default','_stopPresenting','entries','getConfig','_commandDisposable','registerComponent','_unitID','children','operations','_commandService','startFollowing','unsubscribe','not-following','793fNHbPj','dispose','defIds','_handleOnline','_config','Stop\x20following','_mountLiveShare','hasOwnProperty','delete','pipe','icon','_stopFollowing','_collabSessionService','call','reverse','You\x27re\x20not\x20following\x20the\x20presenter','evenodd','getTypeOfUnitDisposed$','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_injector','_handleTerminate','UNIVER_UNKNOWN','includes','disposeWithMe','setConfig','url(#$1','presenting','getInitialStates','_startFollowing','className','attrs','random','symbol','div','SAME_OPERATION_SHARE_INTERVAL','next','PRESENTING','svg','Present\x20this\x20document','stopPresenting','UniverIcon','has','shouldShareOperation','_configService','subscribe','registerSharedOperation','getUnitId','path','status$','trim','stopFollowing','_univerInstanceService','fill','getTypeOfUnitAdded$','substring','You\x27re\x20following\x20the\x20presenter','tag','function','params','Start','ONLINE','_liveShareService','onRendered','getValue','prototype','set','LIVESHARE_NEW_HOST','clear','unitId','map','_collabSession','concat','offline','_status$','Start\x20following','1016tshvKX','FOLLOWING','length','_fetchOperations','displayName','3kMkLte','send','getOwnPropertySymbols','indexOf','current','0\x200\x2017\x2017','1em','then','pluginName','_startLiveShareCoordinator','_init','_startPresenting','_reporters','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','NEW_CHANGESETS','574ueJiZD','onStarting','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','68700wMEYzq','button','sessionStatus$','add','idSuffix','_sharedOperations','16eSLuhP','stringify','presenter','assign','tryStartPresenting','data','forEach','391642ZanzpZ','defineProperty','idle','asObservable','dispose$','61188gieuxp','10LAJpQh','getCurrentTypeOfUnit$','currentColor','live-share-icon','_handleOperation','_beIdle','_presenter','UNIVER_LIVE_SHARE_PLUGIN','UNIVER_SHEET','_handleOffline','replace','IDLE','_entities','LIVESHARE_REQUEST_HOST','23931lpvCKv','get','init','complete','getOwnPropertyDescriptor','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','xlink:href'];_0x2f03=function(){return _0x32c883;};return _0x2f03();}function xe(_0x31facb,_0x51b636){var _0x370531=_0x485ed8,_0x350d8b,_0x4b53dd=_0x51b636[_0x370531(0x133)];return!_0x4b53dd||_0x4b53dd[_0x370531(0xc9)]===0x0?_0x31facb:_0x31facb['tag']==='defs'&&(!((_0x350d8b=_0x31facb['children'])===null||_0x350d8b===void 0x0)&&_0x350d8b['length'])?c(c({},_0x31facb),{'children':_0x31facb[_0x370531(0x12b)][_0x370531(0xc1)](function(_0x28a0a5){var _0x31c0ec=_0x370531;return typeof _0x28a0a5[_0x31c0ec(0x14f)]['id']=='string'&&_0x4b53dd&&_0x4b53dd[_0x31c0ec(0x147)](_0x28a0a5[_0x31c0ec(0x14f)]['id'])?c(c({},_0x28a0a5),{'attrs':c(c({},_0x28a0a5['attrs']),{'id':_0x28a0a5[_0x31c0ec(0x14f)]['id']+_0x51b636[_0x31c0ec(0xe2)]})}):_0x28a0a5;})}):_0x31facb;}function Le(){var _0x22671d=_0x485ed8;return Math[_0x22671d(0x150)]()[_0x22671d(0x11b)](0x24)[_0x22671d(0x167)](0x2,0x8);}W[_0x485ed8(0xcb)]=_0x485ed8(0x159);var ye={'tag':_0x485ed8(0x156),'attrs':{'xmlns':_0x485ed8(0x114),'fill':'none','viewBox':_0x485ed8(0xd1),'width':_0x485ed8(0xd2),'height':_0x485ed8(0xd2)},'children':[{'tag':_0x485ed8(0x160),'attrs':{'fill':'currentColor','d':_0x485ed8(0x104)}},{'tag':'path','attrs':{'fill':_0x485ed8(0xf3),'d':_0x485ed8(0xd9),'fillRule':_0x485ed8(0x141),'clipRule':_0x485ed8(0x141)}}]},B=_0x128413(function(_0x19d760,_0x5bf795){var _0x5da537=_0x485ed8;return _0x252481(W,Object[_0x5da537(0xe7)]({},_0x19d760,{'id':_0x5da537(0xf4),'ref':_0x5bf795,'icon':ye}));});B[_0x485ed8(0xcb)]='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x4962a5,_0x5eb086,_0x48eacd,_0x3c886f)=>{var _0x4c2504=_0x485ed8;for(var _0x227def=_0x3c886f>0x1?void 0x0:_0x3c886f?Re(_0x5eb086,_0x48eacd):_0x5eb086,_0x36e320=_0x4962a5[_0x4c2504(0xc9)]-0x1,_0x4ccb80;_0x36e320>=0x0;_0x36e320--)(_0x4ccb80=_0x4962a5[_0x36e320])&&(_0x227def=_0x4ccb80(_0x227def)||_0x227def);return _0x227def;},f=(_0x1c8978,_0x1235d3)=>(_0x4ec311,_0x17758e)=>_0x1235d3(_0x4ec311,_0x17758e,_0x1c8978);let I=class extends _0x1bc773{constructor(_0x25a301,_0x45ee7d,_0x3a6a26){var _0x51155c=_0x485ed8;super(),d(this,_0x51155c(0xfd),new Map()),(this[_0x51155c(0x164)]=_0x25a301,this[_0x51155c(0x144)]=_0x45ee7d,this['_collabSessionService']=_0x3a6a26,this[_0x51155c(0xd6)]());}async[_0x485ed8(0x10c)](_0x3fdcdd){var _0x10bed2=_0x485ed8;return this['_entities'][_0x10bed2(0x15a)](_0x3fdcdd)||await this[_0x10bed2(0xd5)](_0x3fdcdd),this['_entities'][_0x10bed2(0x100)](_0x3fdcdd);}[_0x485ed8(0xd6)](){var _0x1eaf9d=_0x485ed8;this[_0x1eaf9d(0x164)][_0x1eaf9d(0x166)](_0x5706ae[_0x1eaf9d(0xf9)])[_0x1eaf9d(0x13a)](_0x510391(this['dispose$']))[_0x1eaf9d(0x15d)](async _0x42d019=>{var _0x543218=_0x1eaf9d;const _0x8cb3a4=_0x42d019[_0x543218(0x15f)]();this[_0x543218(0xfd)][_0x543218(0x15a)](_0x8cb3a4)||this[_0x543218(0xd5)](_0x8cb3a4);}),this['_univerInstanceService'][_0x1eaf9d(0x142)](_0x5706ae['UNIVER_SHEET'])['pipe'](_0x510391(this['dispose$']))[_0x1eaf9d(0x15d)](_0x12ce53=>{var _0x1b0b40=_0x1eaf9d;const _0x3b0210=_0x12ce53[_0x1b0b40(0x15f)](),_0xf27835=this[_0x1b0b40(0xfd)][_0x1b0b40(0x100)](_0x3b0210);_0xf27835==null||_0xf27835[_0x1b0b40(0x132)]();});}async[_0x485ed8(0xd5)](_0x457c25){var _0x55188f=_0x485ed8;const _0x712e30=await this[_0x55188f(0x13d)][_0x55188f(0x107)](_0x457c25),_0x17bb53=this['_injector']['createInstance'](C,_0x457c25,_0x712e30);return _0x17bb53[_0x55188f(0x101)](),this[_0x55188f(0xfd)][_0x55188f(0xbd)](_0x457c25,_0x17bb53),_0x17bb53;}};I=Z([f(0x0,_0x2faaa5),f(0x1,_0x56ae44(_0x11b368)),f(0x2,_0x56ae44(_0x79d5cc))],I);var h=(_0x409170=>(_0x409170[_0x485ed8(0x115)]=_0x485ed8(0xc4),_0x409170[_0x485ed8(0xfc)]=_0x485ed8(0xed),_0x409170['FOLLOWING']=_0x485ed8(0x118),_0x409170['NOT_FOLLOWING']=_0x485ed8(0x130),_0x409170[_0x485ed8(0x155)]='presenting',_0x409170))(h||{});const Pe=_0x485ed8(0x153),Ae=0xc8;let C=class extends _0x1bc773{constructor(_0x4d27f9,_0x5030af,_0x48f3b7,_0x47e387,_0x4dab2d){var _0x478eb5=_0x485ed8;super(),d(this,_0x478eb5(0xc5),new _0x4e6368(_0x478eb5(0xed))),d(this,_0x478eb5(0x161),this[_0x478eb5(0xc5)][_0x478eb5(0xee)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,'_presenter',null),(this[_0x478eb5(0x12a)]=_0x4d27f9,this[_0x478eb5(0xc2)]=_0x5030af,this[_0x478eb5(0x15c)]=_0x48f3b7,this[_0x478eb5(0x16e)]=_0x47e387,this[_0x478eb5(0x12d)]=_0x4dab2d);}get['_status'](){var _0x67c0f5=_0x485ed8;return this[_0x67c0f5(0xc5)][_0x67c0f5(0xbb)]();}['dispose'](){var _0x201484=_0x485ed8,_0x4e0650;(_0x4e0650=this[_0x201484(0x128)])==null||_0x4e0650['dispose'](),this[_0x201484(0xc5)][_0x201484(0x154)](_0x201484(0xed)),this['_status$'][_0x201484(0x102)]();}['init'](){var _0x2cb95e=_0x485ed8;this[_0x2cb95e(0xd6)]||(this[_0x2cb95e(0xd6)]=!0x0,this[_0x2cb95e(0xc2)][_0x2cb95e(0xe0)]['pipe'](_0x510391(this['dispose$']))[_0x2cb95e(0x15d)](_0x90dcf5=>{var _0x20d835=_0x2cb95e;switch(_0x90dcf5){case _0x4d0179[_0x20d835(0x115)]:this[_0x20d835(0xfa)]();break;case _0x4d0179[_0x20d835(0x16d)]:this[_0x20d835(0x134)]();break;}}),this['_collabSession']['event$'][_0x2cb95e(0x13a)](_0x510391(this[_0x2cb95e(0xef)]))[_0x2cb95e(0x15d)](_0x411b0a=>{var _0x30f24f=_0x2cb95e;const {eventID:_0x43bb27}=_0x411b0a;switch(_0x43bb27){case _0x48bc07[_0x30f24f(0xbe)]:this[_0x30f24f(0x11d)](_0x411b0a);break;case _0x48bc07[_0x30f24f(0x122)]:this['_handleOperation'](_0x411b0a);break;case _0x48bc07['LIVESHARE_TERMINATE']:this[_0x30f24f(0x145)]();break;case _0x48bc07[_0x30f24f(0xda)]:this['_handleNewChangeSets'](_0x411b0a);break;}}));}[_0x485ed8(0xe8)](){var _0x25bd15=_0x485ed8;this[_0x25bd15(0xc2)]['send']({'eventID':_0x48bc07[_0x25bd15(0xfe)],'data':{'unitID':this[_0x25bd15(0x12a)],'userID':this[_0x25bd15(0xc2)][_0x25bd15(0x111)]()}},this['_unitID']);}[_0x485ed8(0x158)](){var _0x286f80=_0x485ed8;this['_status']===_0x286f80(0x14b)&&(this[_0x286f80(0xc5)][_0x286f80(0x154)](_0x286f80(0xed)),this[_0x286f80(0xc2)][_0x286f80(0xcd)]({'eventID':_0x48bc07[_0x286f80(0x119)],'data':{'unitID':this[_0x286f80(0x12a)]}},this[_0x286f80(0x12a)]));}[_0x485ed8(0x12e)](){var _0x28adfa=_0x485ed8;this[_0x28adfa(0x123)]==='not-following'&&(this[_0x28adfa(0xc5)][_0x28adfa(0x154)](_0x28adfa(0x118)),this[_0x28adfa(0x14d)]());}['stopFollowing'](){var _0x122dc4=_0x485ed8;this[_0x122dc4(0x123)]===_0x122dc4(0x118)&&this[_0x122dc4(0x13c)]();}[_0x485ed8(0x11d)](_0x5f5544){var _0x1b61c7=_0x485ed8;const {presenter:_0x5e92c3}=_0x5f5544[_0x1b61c7(0xe9)],_0x423157=this[_0x1b61c7(0xc2)][_0x1b61c7(0x111)]();this[_0x1b61c7(0xf7)]=_0x5e92c3,_0x5e92c3===_0x423157?(this[_0x1b61c7(0x13c)](),this[_0x1b61c7(0xd7)]()):this[_0x1b61c7(0x123)]!==_0x1b61c7(0x130)&&(this[_0x1b61c7(0x125)](),this[_0x1b61c7(0x14d)]());}[_0x485ed8(0xca)](){var _0x4a63cf=_0x485ed8;const _0x4e41cd={'eventID':_0x48bc07[_0x4a63cf(0x110)]};this[_0x4a63cf(0xc2)][_0x4a63cf(0xcd)](_0x4e41cd,this['_unitID']);}[_0x485ed8(0x145)](){var _0xbfa49f=_0x485ed8;this[_0xbfa49f(0xf7)]=null,this[_0xbfa49f(0x123)]!=='presenting'&&this[_0xbfa49f(0xf6)]();}['_handleNewChangeSets'](_0x2a3b42){var _0x108643=_0x485ed8;if(this[_0x108643(0x123)]===_0x108643(0x118)&&this[_0x108643(0xf7)]===_0x2a3b42[_0x108643(0xe9)][_0x108643(0x10d)]){const _0x2a05d6=_0x105b53(_0x2a3b42['data'])['mutations'][_0x108643(0x13f)]()['find'](_0x41d8b8=>_0x41d8b8['id']===_0x295080['id']);if(_0x2a05d6){const _0xf52662=_0x2a05d6[_0x108643(0x16b)][_0x108643(0xc0)],_0x5e945c=_0x2a05d6[_0x108643(0x16b)]['sheet']['id'];setTimeout(()=>{var _0x573866=_0x108643;this[_0x573866(0x12d)][_0x573866(0x10a)](_0x228792['id'],{'unitId':_0xf52662,'subUnitId':_0x5e945c},{'fromCollab':!0x0});});}}}[_0x485ed8(0xd7)](){var _0x5b5197=_0x485ed8;this[_0x5b5197(0xc5)][_0x5b5197(0x154)](_0x5b5197(0x14b));const _0x180553=new Map(),_0x549556=this[_0x5b5197(0x128)]=new _0x28b2d6();_0x549556['add'](_0x3eb609(()=>{var _0x597129=_0x5b5197;_0x180553[_0x597129(0xea)](_0x4495a5=>_0x4495a5[_0x597129(0x102)]()),_0x180553[_0x597129(0xbf)]();})),_0x549556[_0x5b5197(0xe1)](this['_commandService']['onCommandExecuted'](_0x23990f=>{var _0x4d50a1=_0x5b5197,_0x1eb1d8;if(_0x23990f[_0x4d50a1(0x11e)]!==_0x4419b1[_0x4d50a1(0x113)]||!this[_0x4d50a1(0x16e)]['shouldShareOperation'](_0x23990f['id']))return;const {id:_0x5661a4}=_0x23990f;let _0x10243f;_0x180553[_0x4d50a1(0x15a)](_0x5661a4)?_0x10243f=_0x180553[_0x4d50a1(0x100)](_0x5661a4):(_0x10243f=new _0x4fa684(),_0x180553[_0x4d50a1(0xbd)](_0x5661a4,_0x10243f),_0x10243f['pipe'](_0x3ce606((_0x1eb1d8=this[_0x4d50a1(0x15c)][_0x4d50a1(0x127)](Pe))!=null?_0x1eb1d8:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x358c4c=>{var _0x2bc7cf=_0x4d50a1;this['_collabSession']['send']({'eventID':_0x48bc07[_0x2bc7cf(0x122)],'data':{'unitID':this[_0x2bc7cf(0x12a)],'operations':{[_0x358c4c['id']]:{'id':_0x358c4c['id'],'params':JSON[_0x2bc7cf(0xe5)](_0x358c4c[_0x2bc7cf(0x16b)])}}}},this[_0x2bc7cf(0x12a)]);})),_0x10243f['next'](_0x23990f);})),this[_0x5b5197(0x16e)][_0x5b5197(0x14c)](this[_0x5b5197(0x12a)])['forEach'](_0x42589f=>this[_0x5b5197(0xc2)][_0x5b5197(0xcd)]({'eventID':_0x48bc07['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5b5197(0x12a)],'operations':{[_0x42589f['id']]:{'id':_0x42589f['id'],'params':JSON[_0x5b5197(0xe5)](_0x42589f[_0x5b5197(0x16b)])}}}},this[_0x5b5197(0x12a)]));}[_0x485ed8(0x125)](){var _0x1c0a50=_0x485ed8,_0x5e065f;this[_0x1c0a50(0xc5)]['next']('idle'),(_0x5e065f=this[_0x1c0a50(0x128)])==null||_0x5e065f['dispose'](),this[_0x1c0a50(0x128)]=null;}[_0x485ed8(0x14d)](){var _0x508503=_0x485ed8,_0x248763;(_0x248763=this[_0x508503(0x128)])==null||_0x248763[_0x508503(0x132)](),this['_status$'][_0x508503(0x154)]('following');}[_0x485ed8(0xf6)](){var _0x2a6ff3=_0x485ed8,_0x5bc019;this['_status$'][_0x2a6ff3(0x154)](_0x2a6ff3(0xed)),(_0x5bc019=this[_0x2a6ff3(0x128)])==null||_0x5bc019[_0x2a6ff3(0x132)](),this[_0x2a6ff3(0x128)]=null;}[_0x485ed8(0x13c)](){var _0x5c7a5e=_0x485ed8,_0x328ab0;this['_status$'][_0x5c7a5e(0x154)]('not-following'),(_0x328ab0=this[_0x5c7a5e(0x128)])==null||_0x328ab0['dispose']();}[_0x485ed8(0xf5)](_0x4213e2){var _0x39fe11=_0x485ed8;if(['presenting',_0x39fe11(0x130),_0x39fe11(0xc4)][_0x39fe11(0x147)](this[_0x39fe11(0x123)])||!_0x4213e2[_0x39fe11(0xe9)][_0x39fe11(0xe6)]||_0x4213e2['data'][_0x39fe11(0xe6)]===this['_collabSession'][_0x39fe11(0x111)]())return;this[_0x39fe11(0x123)]===_0x39fe11(0xed)&&this['_startFollowing']();const _0x36cd2c=_0x4213e2['data'][_0x39fe11(0x12c)];Object['values'](_0x36cd2c)['forEach'](_0x131b9d=>{var _0x5acb19=_0x39fe11;this[_0x5acb19(0x12d)][_0x5acb19(0x10a)](_0x131b9d['id'],_0x131b9d[_0x5acb19(0x16b)]?JSON[_0x5acb19(0x11c)](_0x131b9d[_0x5acb19(0x16b)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0xd0aff5=_0x485ed8,_0x4d8edd;this['_status$'][_0xd0aff5(0x154)](_0xd0aff5(0xc4)),(_0x4d8edd=this[_0xd0aff5(0x128)])==null||_0x4d8edd[_0xd0aff5(0x132)]();}[_0x485ed8(0x134)](){var _0x464ac6=_0x485ed8;this[_0x464ac6(0xc5)][_0x464ac6(0x154)](_0x464ac6(0xed)),this['_fetchOperations']();}};C=Z([f(0x2,_0x2473bb),f(0x3,_0x56ae44(L)),f(0x4,_0x20dcab)],C);function Te(){var _0x9208a5=_0x485ed8;const _0x4ee724=_0x503ec0(I),_0x81c92a=_0x503ec0(_0x2faaa5),_0x5b552b=_0x3d7e06(()=>_0x81c92a[_0x9208a5(0xf2)](_0x5706ae[_0x9208a5(0xf9)]),void 0x0,!0x1,[]),[_0xe660fc,_0x566904]=_0x236131(null),[_0x2c38f0,_0x2d9051]=_0x236131(h[_0x9208a5(0xfc)]),_0x460567=_0x50377a(null);return _0x45d8fa(()=>(_0x5b552b&&_0x4ee724['getLiveShareCoordinator'](_0x5b552b['getUnitId']())[_0x9208a5(0xd3)](_0x1f4aa9=>{var _0x2f6bb5=_0x9208a5;_0x566904(_0x1f4aa9),_0x460567['current']=_0x1f4aa9[_0x2f6bb5(0x161)][_0x2f6bb5(0x15d)](_0x231420=>{_0x2d9051(_0x231420);});}),()=>{var _0xec080e=_0x9208a5,_0xb80703;(_0xb80703=_0x460567[_0xec080e(0xd0)])==null||_0xb80703[_0xec080e(0x12f)](),_0x460567[_0xec080e(0xd0)]=null;}),[_0x5b552b,_0x4ee724]),_0xe660fc?_0x458b0b(_0x6c2787,{'align':_0x9208a5(0x108),'disabled':_0x2c38f0===h[_0x9208a5(0x115)],'className':_0x9208a5(0x143),'overlay':_0x458b0b($e,{'status':_0x2c38f0,'coordinator':_0xe660fc}),'children':_0x458b0b('button',{'className':_0x3c8900(_0x9208a5(0xdd),{'univer-cursor-not-allowed':_0x2c38f0===h[_0x9208a5(0x115)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2c38f0!==h[_0x9208a5(0x115)]}),'type':_0x9208a5(0xdf),'children':_0x458b0b(B,{'className':'univer-size-4'})})}):null;}function $e(_0x2f2cc8){var _0x31c2e2=_0x485ed8;const {status:_0x1b2277,coordinator:_0x174f9a}=_0x2f2cc8;switch(_0x1b2277){case h['IDLE']:return _0x458b0b(Fe,{'coordinator':_0x174f9a});case h[_0x31c2e2(0xc8)]:return _0x458b0b(He,{'coordinator':_0x174f9a});case h[_0x31c2e2(0x10e)]:return _0x458b0b(je,{'coordinator':_0x174f9a});case h[_0x31c2e2(0x115)]:return _0x458b0b(Ve,{});case h['PRESENTING']:return _0x458b0b(Ue,{'coordinator':_0x174f9a});default:return null;}}function Fe(_0x4dd185){var _0x552727=_0x485ed8;const {coordinator:_0x57fc42}=_0x4dd185;return _0x257512(_0x2d7bfa,{'children':[_0x458b0b(_0x552727(0x152),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x552727(0x157)}),_0x458b0b(_0x721d66,{'onClick':()=>_0x57fc42[_0x552727(0xe8)](),'children':_0x552727(0x16c)})]});}function He(_0x4bae8d){var _0x1b1902=_0x485ed8;const {coordinator:_0x33701c}=_0x4bae8d;return _0x257512(_0x2d7bfa,{'children':[_0x458b0b('div',{'className':_0x1b1902(0x11f),'children':_0x1b1902(0x168)}),_0x458b0b(_0x721d66,{'onClick':()=>_0x33701c[_0x1b1902(0x163)](),'children':_0x1b1902(0x136)})]});}function je(_0x8ae7d0){var _0x50aa52=_0x485ed8;const {coordinator:_0x267680}=_0x8ae7d0;return _0x257512(_0x2d7bfa,{'children':[_0x458b0b(_0x50aa52(0x152),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x50aa52(0x140)}),_0x458b0b(_0x721d66,{'variant':'text','onClick':()=>_0x267680[_0x50aa52(0x12e)](),'children':_0x50aa52(0xc6)})]});}function Ue(_0x26e64c){var _0x19bd6f=_0x485ed8;const {coordinator:_0x53e6c2}=_0x26e64c;return _0x257512(_0x2d7bfa,{'children':[_0x458b0b('div',{'className':_0x19bd6f(0x11f),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x458b0b(_0x721d66,{'variant':_0x19bd6f(0x124),'onClick':()=>_0x53e6c2[_0x19bd6f(0x158)](),'children':_0x19bd6f(0x121)})]});}function Ve(){return _0x458b0b(_0x2d7bfa,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x485ed8(0x103)],ke=(_0x5846a8,_0x3ed8fb,_0x29e61b,_0x53d270)=>{for(var _0x4f7a02=_0x53d270>0x1?void 0x0:_0x53d270?Me(_0x3ed8fb,_0x29e61b):_0x3ed8fb,_0x3ea115=_0x5846a8['length']-0x1,_0x2c5dfd;_0x3ea115>=0x0;_0x3ea115--)(_0x2c5dfd=_0x5846a8[_0x3ea115])&&(_0x4f7a02=_0x2c5dfd(_0x4f7a02)||_0x4f7a02);return _0x4f7a02;},$=(_0x4da3ee,_0x288593)=>(_0x59c5b3,_0x4ece4f)=>_0x288593(_0x59c5b3,_0x4ece4f,_0x4da3ee);let b=class extends _0x3c0c36{constructor(_0x28aed4,_0x36f0d8){var _0x19e61a=_0x485ed8;super(),this[_0x19e61a(0x144)]=_0x28aed4,this[_0x19e61a(0x117)]=_0x36f0d8,this[_0x19e61a(0x137)]();}[_0x485ed8(0x137)](){var _0x43855f=_0x485ed8;this[_0x43855f(0x148)](this['_uiPartsService'][_0x43855f(0x129)](_0x542535['HEADER_MENU'],()=>_0x1d00fc(Te,this[_0x43855f(0x144)])));}};b=ke([$(0x0,_0x56ae44(_0x11b368)),$(0x1,_0x5f5b99)],b);var Ge=Object[_0x485ed8(0xec)],We=Object[_0x485ed8(0x103)],Ye=(_0x56352f,_0x4b0531,_0x32338f)=>_0x4b0531 in _0x56352f?Ge(_0x56352f,_0x4b0531,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32338f}):_0x56352f[_0x4b0531]=_0x32338f,Be=(_0x298b86,_0x5e971d,_0xc26ad8,_0x282d63)=>{var _0x198d8f=_0x485ed8;for(var _0x2a9c3d=_0x282d63>0x1?void 0x0:_0x282d63?We(_0x5e971d,_0xc26ad8):_0x5e971d,_0x5686f6=_0x298b86[_0x198d8f(0xc9)]-0x1,_0x2d4bf9;_0x5686f6>=0x0;_0x5686f6--)(_0x2d4bf9=_0x298b86[_0x5686f6])&&(_0x2a9c3d=_0x2d4bf9(_0x2a9c3d)||_0x2a9c3d);return _0x2a9c3d;},F=(_0x1d2d2f,_0xfd9294)=>(_0x3321e3,_0x52e4ef)=>_0xfd9294(_0x3321e3,_0x52e4ef,_0x1d2d2f),J=(_0x1d5ab7,_0x458d37,_0x5a434f)=>Ye(_0x1d5ab7,typeof _0x458d37!=_0x485ed8(0x151)?_0x458d37+'':_0x458d37,_0x5a434f);const Ze=_0x485ed8(0xf8);let O=class extends _0x11a0e9{constructor(_0x851da8=T,_0x1153d1,_0x1989e6){var _0x2fcb91=_0x485ed8;super(),this[_0x2fcb91(0x135)]=_0x851da8,this['_injector']=_0x1153d1,this[_0x2fcb91(0x15c)]=_0x1989e6;const {..._0x34423a}=_0x4e2ab8({},T,this[_0x2fcb91(0x135)]);this[_0x2fcb91(0x15c)][_0x2fcb91(0x149)](Oe,_0x34423a);}[_0x485ed8(0xdc)](){var _0x35d27b=_0x485ed8;_0xe717aa(this[_0x35d27b(0x144)],_0x1a80dc([[L],[I],[m],[b]],this[_0x35d27b(0x135)]['override'])),_0x5cd586(this[_0x35d27b(0x144)],[[m]]);}[_0x485ed8(0xba)](){_0x5cd586(this['_injector'],[[b]]);}};J(O,_0x485ed8(0x11e),_0x5706ae[_0x485ed8(0x146)]),J(O,_0x485ed8(0xd4),Ze),O=Be([_0xaa01dd(_0x13f08e),F(0x1,_0x56ae44(_0x11b368)),F(0x2,_0x2473bb)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x3eb66f=_0xaf36;(function(_0x24bffa,_0x48a22d){var _0x44bc06=_0xaf36,_0xadd4dc=_0x24bffa();while(!![]){try{var _0x1ea307=parseInt(_0x44bc06(0x118))/0x1*(parseInt(_0x44bc06(0x195))/0x2)+-parseInt(_0x44bc06(0x16c))/0x3+parseInt(_0x44bc06(0x196))/0x4+-parseInt(_0x44bc06(0x14c))/0x5+parseInt(_0x44bc06(0x11f))/0x6+parseInt(_0x44bc06(0x125))/0x7*(-parseInt(_0x44bc06(0x102))/0x8)+parseInt(_0x44bc06(0x185))/0x9;if(_0x1ea307===_0x48a22d)break;else _0xadd4dc['push'](_0xadd4dc['shift']());}catch(_0x2666aa){_0xadd4dc['push'](_0xadd4dc['shift']());}}}(_0x59c0,0xb71bb));var q=Object[_0x3eb66f(0x10a)],z=(_0x59cb9d,_0x39743b,_0xdc1b55)=>_0x39743b in _0x59cb9d?q(_0x59cb9d,_0x39743b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdc1b55}):_0x59cb9d[_0x39743b]=_0xdc1b55,d=(_0xd68d5f,_0x5d7255,_0x134a70)=>z(_0xd68d5f,typeof _0x5d7255!=_0x3eb66f(0x15b)?_0x5d7255+'':_0x5d7255,_0x134a70);import{CollaborationSessionService as _0x1b8367,SessionStatus as _0x39791d,UniverCollaborationClientPlugin as _0x26cab8}from'@univerjs-pro/collaboration-client';import{Disposable as _0x28094d,toDisposable as _0x56fa4e,Inject as _0x3f84a3,IUniverInstanceService as _0x516a71,Injector as _0x15d8b5,IConfigService as _0x314f53,ICommandService as _0x39ff78,RxDisposable as _0x2968d7,UniverInstanceType as _0x58c155,DisposableCollection as _0x22943b,CommandType as _0x50cabc,DependentOn as _0x419c79,Plugin as _0x47a77d,merge as _0x1f5ca3,registerDependencies as _0x1df7a9,mergeOverrideWithDependencies as _0x227802,touchDependencies as _0x4f8b46}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3b7bd5,InsertSheetMutation as _0x2a9f7c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x22565f,SetScrollOperation as _0x1c3c05}from'@univerjs/sheets-ui';import{useDependency as _0x318ee9,useObservable as _0x394850,IUIPartsService as _0x326cbf,BuiltInUIPart as _0x45e07f,connectInjector as _0x67a89}from'@univerjs/ui';import{jsx as _0x317f25,jsxs as _0x387033,Fragment as _0xcbf086}from'react/jsx-runtime';import{Dropdown as _0x11722c,clsx as _0x81ab49,Button as _0x29954b}from'@univerjs/design';import{forwardRef as _0x33acf1,useRef as _0x3891b2,createElement as _0x5c13bc,useState as _0xd7af93,useEffect as _0x59b4f4}from'react';import{CollaborationEvent as _0x40c637,parseProtocolChangeset as _0x4c17bf}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x22c326,Subject as _0x4a1280}from'rxjs';function _0xaf36(_0x509563,_0x237477){var _0x59c0c3=_0x59c0();return _0xaf36=function(_0xaf3622,_0x5241e9){_0xaf3622=_0xaf3622-0x100;var _0x520cd9=_0x59c0c3[_0xaf3622];return _0x520cd9;},_0xaf36(_0x509563,_0x237477);}function _0x59c0(){var _0x40178f=['9165863puziSU','not-following','LIVESHARE_TERMINATE','indexOf','UNIVER_SHEET','path','xlink:href','use','tryStartPresenting','pluginName','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','mask','_status$','_mountLiveShare','function','colorChannel1','FOLLOWING','event$','text','getMemberID','_unitID','hasOwnProperty','getConfig','_handleTerminate','getValue','Start\x20following','status$','_injector','unsubscribe','div','getLiveShareCoordinator','children','getOwnPropertySymbols','LIVESHARE_FETCH_OPERATIONS','icon','toString','OFFLINE','type','You\x27are\x20offline.','3807035vbYxKl','get','_stopFollowing','delete','_univerInstanceService','trim','You\x27re\x20not\x20following\x20the\x20presenter','next','Stop\x20presenting','entries','concat','parse','dispose','registerSharedOperation','_commandDisposable','symbol','map','PRESENTING','_startFollowing','_liveShareService','stopFollowing','getUnitId','_stopPresenting','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','evenodd','UNIVER_UNKNOWN','IDLE','defIds','svg','replace','univer-w-full\x20univer-mb-3\x20univer-text-sm','following','1092006djtKtZ','_fetchOperations','complete','You\x27re\x20following\x20the\x20presenter','_handleOperation','_presenter','dispose$','send','_handleNewHost','sessionStatus$','tag','onStarting','0\x200\x2017\x2017','_reporters','displayName','getTypeOfUnitAdded$','asObservable','http://www.w3.org/2000/svg','_startPresenting','getInitialStates','LIVESHARE_OPERATION','shouldShareOperation','subscribe','disposeWithMe','has','2694780ifHsJH','currentColor','operations','_handleOffline','getTypeOfUnitDisposed$','_status','attrs','unitId','NOT_FOLLOWING','idle','live-share.config','univer-size-4','_uiPartsService','registerComponent','assign','className','1892318vsNcDN','4099936nHSwvN','button','presenting','fill','memberID','_init','_entities','_config','registerInitialStateReporter','presenter','createInstance','from','startFollowing','length','stopPresenting','OPERATION','HEADER_MENU','offline','executeCommand','includes','default','string','8MxjwOj','_sharedOperations','url(#$1','_startLiveShareCoordinator','requireSession','params','UNIVER_LIVE_SHARE_PLUGIN','_commandService','defineProperty','_handleOnline','call','set','data','Start','random','univerjs-icon\x20univerjs-icon-','_handleNewChangeSets','setConfig','_collabSession','forEach','idSuffix','getOwnPropertyDescriptor','1ruDppF','stringify','init','_configService','pipe','add','1em','5485596ykxVvK','prototype','_collabSessionService','defs','current','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white'];_0x59c0=function(){return _0x40178f;};return _0x59c0();}import{takeUntil as _0x64489,throttleTime as _0x1cb448}from'rxjs/operators';const Oe=_0x3eb66f(0x18f),T={};class L extends _0x28094d{constructor(){var _0x2460f1=_0x3eb66f;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x2460f1(0x179),new Set());}[_0x3eb66f(0x159)](_0x465716){var _0xffa05f=_0x3eb66f;return this[_0xffa05f(0x103)][_0xffa05f(0x11d)](_0x465716),_0x56fa4e(()=>this[_0xffa05f(0x103)][_0xffa05f(0x14f)](_0x465716));}[_0x3eb66f(0x19e)](_0xe08eaa){var _0x5d5a16=_0x3eb66f;return this[_0x5d5a16(0x179)][_0x5d5a16(0x11d)](_0xe08eaa),_0x56fa4e(()=>this['_reporters'][_0x5d5a16(0x14f)](_0xe08eaa));}[_0x3eb66f(0x181)](_0x3640ae){var _0x44c344=_0x3eb66f;return this[_0x44c344(0x103)]['has'](_0x3640ae);}[_0x3eb66f(0x17f)](_0x130761){var _0x40ab2f=_0x3eb66f;return Array[_0x40ab2f(0x1a1)](this[_0x40ab2f(0x179)])[_0x40ab2f(0x15c)](_0x14bbfb=>_0x14bbfb(_0x130761));}}var Ee=Object[_0x3eb66f(0x117)],we=(_0x547a73,_0x4abe3f,_0x24a2f9,_0x20d92a)=>{var _0x126fbd=_0x3eb66f;for(var _0x566479=_0x20d92a>0x1?void 0x0:_0x20d92a?Ee(_0x4abe3f,_0x24a2f9):_0x4abe3f,_0x132d91=_0x547a73[_0x126fbd(0x1a3)]-0x1,_0x17fc56;_0x132d91>=0x0;_0x132d91--)(_0x17fc56=_0x547a73[_0x132d91])&&(_0x566479=_0x17fc56(_0x566479)||_0x566479);return _0x566479;},Ne=(_0x44562a,_0x59caee)=>(_0x37ca82,_0x13bee0)=>_0x59caee(_0x37ca82,_0x13bee0,_0x44562a);let m=class extends _0x28094d{constructor(_0x5ad8d4){var _0x331d83=_0x3eb66f;super(),this[_0x331d83(0x15f)]=_0x5ad8d4,this[_0x331d83(0x19b)]();}['_init'](){var _0x10c4bc=_0x3eb66f;[_0x22565f['id'],_0x1c3c05['id'],_0x3b7bd5['id']][_0x10c4bc(0x115)](_0x3b68c5=>{var _0x138e3b=_0x10c4bc;this[_0x138e3b(0x183)](this['_liveShareService'][_0x138e3b(0x159)](_0x3b68c5));});}};m=we([Ne(0x0,_0x3f84a3(L))],m);var c=function(){var _0x264bf1=_0x3eb66f;return c=Object[_0x264bf1(0x193)]||function(_0x1729ff){var _0x4dfda6=_0x264bf1;for(var _0x36d04a,_0x34fa1b=0x1,_0x82953b=arguments[_0x4dfda6(0x1a3)];_0x34fa1b<_0x82953b;_0x34fa1b++){_0x36d04a=arguments[_0x34fa1b];for(var _0x93544f in _0x36d04a)Object[_0x4dfda6(0x120)][_0x4dfda6(0x13a)][_0x4dfda6(0x10c)](_0x36d04a,_0x93544f)&&(_0x1729ff[_0x93544f]=_0x36d04a[_0x93544f]);}return _0x1729ff;},c['apply'](this,arguments);},Ce=function(_0x45a122,_0x493b35){var _0x11f1e8=_0x3eb66f,_0x5ca805={};for(var _0x1ae2a4 in _0x45a122)Object['prototype'][_0x11f1e8(0x13a)][_0x11f1e8(0x10c)](_0x45a122,_0x1ae2a4)&&_0x493b35[_0x11f1e8(0x128)](_0x1ae2a4)<0x0&&(_0x5ca805[_0x1ae2a4]=_0x45a122[_0x1ae2a4]);if(_0x45a122!=null&&typeof Object[_0x11f1e8(0x145)]==_0x11f1e8(0x133)){for(var _0xb1b3a1=0x0,_0x1ae2a4=Object['getOwnPropertySymbols'](_0x45a122);_0xb1b3a1<_0x1ae2a4[_0x11f1e8(0x1a3)];_0xb1b3a1++)_0x493b35[_0x11f1e8(0x128)](_0x1ae2a4[_0xb1b3a1])<0x0&&Object[_0x11f1e8(0x120)]['propertyIsEnumerable'][_0x11f1e8(0x10c)](_0x45a122,_0x1ae2a4[_0xb1b3a1])&&(_0x5ca805[_0x1ae2a4[_0xb1b3a1]]=_0x45a122[_0x1ae2a4[_0xb1b3a1]]);}return _0x5ca805;},W=_0x33acf1(function(_0x4ebfab,_0x4cd491){var _0x4a0548=_0x3eb66f,_0x110929=_0x4ebfab['icon'],_0x116ffe=_0x4ebfab['id'],_0x22281a=_0x4ebfab['className'],_0x23edd6=_0x4ebfab['extend'],_0x379481=Ce(_0x4ebfab,[_0x4a0548(0x147),'id',_0x4a0548(0x194),'extend']),_0x3c434a=_0x4a0548(0x111)[_0x4a0548(0x156)](_0x116ffe,'\x20')[_0x4a0548(0x156)](_0x22281a||'')[_0x4a0548(0x151)](),_0x293f41=_0x3891b2('_'[_0x4a0548(0x156)](Le()));return Y(_0x110929,''[_0x4a0548(0x156)](_0x116ffe),{'defIds':_0x110929[_0x4a0548(0x167)],'idSuffix':_0x293f41[_0x4a0548(0x123)]},c({'ref':_0x4cd491,'className':_0x3c434a},_0x379481),_0x23edd6);});function Y(_0x561962,_0x416939,_0x5b956a,_0x38f1d3,_0x270928){var _0x3a3dee=_0x3eb66f;return _0x5c13bc(_0x561962['tag'],c(c({'key':_0x416939},De(_0x561962,_0x5b956a,_0x270928)),_0x38f1d3),(xe(_0x561962,_0x5b956a)[_0x3a3dee(0x144)]||[])['map'](function(_0x5d28b7,_0x13d91d){var _0x460642=_0x3a3dee;return Y(_0x5d28b7,''[_0x460642(0x156)](_0x416939,'-')[_0x460642(0x156)](_0x561962[_0x460642(0x176)],'-')[_0x460642(0x156)](_0x13d91d),_0x5b956a,void 0x0,_0x270928);}));}function De(_0x18d6f1,_0x2806a0,_0x162d92){var _0x149b4b=_0x3eb66f,_0x2dcbad=c({},_0x18d6f1[_0x149b4b(0x18b)]);_0x162d92!=null&&_0x162d92[_0x149b4b(0x134)]&&_0x2dcbad[_0x149b4b(0x199)]==='colorChannel1'&&(_0x2dcbad[_0x149b4b(0x199)]=_0x162d92[_0x149b4b(0x134)]),_0x18d6f1[_0x149b4b(0x176)]==='mask'&&_0x2dcbad['id']&&(_0x2dcbad['id']=_0x2dcbad['id']+_0x2806a0[_0x149b4b(0x116)]),Object[_0x149b4b(0x155)](_0x2dcbad)[_0x149b4b(0x115)](function(_0x53c51a){var _0x29834c=_0x149b4b,_0x208bcf=_0x53c51a[0x0],_0x9fe15c=_0x53c51a[0x1];_0x208bcf===_0x29834c(0x130)&&typeof _0x9fe15c==_0x29834c(0x101)&&(_0x2dcbad[_0x208bcf]=_0x9fe15c[_0x29834c(0x169)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2806a0[_0x29834c(0x116)],')')));});var _0x5ca4b2=_0x2806a0['defIds'];return!_0x5ca4b2||_0x5ca4b2[_0x149b4b(0x1a3)]===0x0||(_0x18d6f1[_0x149b4b(0x176)]===_0x149b4b(0x12c)&&_0x2dcbad[_0x149b4b(0x12b)]&&(_0x2dcbad[_0x149b4b(0x12b)]=_0x2dcbad[_0x149b4b(0x12b)]+_0x2806a0['idSuffix']),Object[_0x149b4b(0x155)](_0x2dcbad)[_0x149b4b(0x115)](function(_0x54a16b){var _0x70d968=_0x149b4b,_0x39beda=_0x54a16b[0x0],_0x16a7f2=_0x54a16b[0x1];typeof _0x16a7f2==_0x70d968(0x101)&&(_0x2dcbad[_0x39beda]=_0x16a7f2[_0x70d968(0x169)](/url\(#(.*)\)/,_0x70d968(0x104)['concat'](_0x2806a0[_0x70d968(0x116)],')')));})),_0x2dcbad;}function xe(_0x34c4d2,_0x13d914){var _0x5e7632=_0x3eb66f,_0x1b3355,_0x472dc8=_0x13d914[_0x5e7632(0x167)];return!_0x472dc8||_0x472dc8['length']===0x0?_0x34c4d2:_0x34c4d2[_0x5e7632(0x176)]===_0x5e7632(0x122)&&(!((_0x1b3355=_0x34c4d2[_0x5e7632(0x144)])===null||_0x1b3355===void 0x0)&&_0x1b3355[_0x5e7632(0x1a3)])?c(c({},_0x34c4d2),{'children':_0x34c4d2[_0x5e7632(0x144)][_0x5e7632(0x15c)](function(_0x3b9116){var _0x200a7a=_0x5e7632;return typeof _0x3b9116[_0x200a7a(0x18b)]['id']=='string'&&_0x472dc8&&_0x472dc8[_0x200a7a(0x1a9)](_0x3b9116[_0x200a7a(0x18b)]['id'])?c(c({},_0x3b9116),{'attrs':c(c({},_0x3b9116[_0x200a7a(0x18b)]),{'id':_0x3b9116[_0x200a7a(0x18b)]['id']+_0x13d914[_0x200a7a(0x116)]})}):_0x3b9116;})}):_0x34c4d2;}function Le(){var _0x2323be=_0x3eb66f;return Math[_0x2323be(0x110)]()[_0x2323be(0x148)](0x24)['substring'](0x2,0x8);}W[_0x3eb66f(0x17a)]='UniverIcon';var ye={'tag':_0x3eb66f(0x168),'attrs':{'xmlns':_0x3eb66f(0x17d),'fill':'none','viewBox':_0x3eb66f(0x178),'width':_0x3eb66f(0x11e),'height':'1em'},'children':[{'tag':_0x3eb66f(0x12a),'attrs':{'fill':_0x3eb66f(0x186),'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':'path','attrs':{'fill':_0x3eb66f(0x186),'d':_0x3eb66f(0x12f),'fillRule':_0x3eb66f(0x164),'clipRule':'evenodd'}}]},B=_0x33acf1(function(_0x1b4209,_0x447a32){return _0x5c13bc(W,Object['assign']({},_0x1b4209,{'id':'live-share-icon','ref':_0x447a32,'icon':ye}));});B[_0x3eb66f(0x17a)]='LiveShareIcon';var Re=Object[_0x3eb66f(0x117)],Z=(_0xa5b805,_0x216d71,_0x28e6ff,_0x58feb7)=>{var _0x80a609=_0x3eb66f;for(var _0x1fada2=_0x58feb7>0x1?void 0x0:_0x58feb7?Re(_0x216d71,_0x28e6ff):_0x216d71,_0x304dd2=_0xa5b805[_0x80a609(0x1a3)]-0x1,_0x14e103;_0x304dd2>=0x0;_0x304dd2--)(_0x14e103=_0xa5b805[_0x304dd2])&&(_0x1fada2=_0x14e103(_0x1fada2)||_0x1fada2);return _0x1fada2;},f=(_0x2e5c93,_0x4eaa7)=>(_0x3b602f,_0x474e19)=>_0x4eaa7(_0x3b602f,_0x474e19,_0x2e5c93);let I=class extends _0x2968d7{constructor(_0x191f88,_0x980a71,_0x160263){var _0x43201a=_0x3eb66f;super(),d(this,_0x43201a(0x19c),new Map()),(this[_0x43201a(0x150)]=_0x191f88,this['_injector']=_0x980a71,this[_0x43201a(0x121)]=_0x160263,this[_0x43201a(0x19b)]());}async['getLiveShareCoordinator'](_0x644c2b){var _0x1dfabd=_0x3eb66f;return this[_0x1dfabd(0x19c)][_0x1dfabd(0x184)](_0x644c2b)||await this[_0x1dfabd(0x105)](_0x644c2b),this[_0x1dfabd(0x19c)][_0x1dfabd(0x14d)](_0x644c2b);}['_init'](){var _0x2e9506=_0x3eb66f;this[_0x2e9506(0x150)][_0x2e9506(0x17b)](_0x58c155[_0x2e9506(0x129)])[_0x2e9506(0x11c)](_0x64489(this[_0x2e9506(0x172)]))[_0x2e9506(0x182)](async _0x425593=>{var _0x4945d4=_0x2e9506;const _0x1d9035=_0x425593[_0x4945d4(0x161)]();this['_entities'][_0x4945d4(0x184)](_0x1d9035)||this[_0x4945d4(0x105)](_0x1d9035);}),this[_0x2e9506(0x150)][_0x2e9506(0x189)](_0x58c155[_0x2e9506(0x129)])[_0x2e9506(0x11c)](_0x64489(this['dispose$']))[_0x2e9506(0x182)](_0x515a74=>{var _0x4a7a1c=_0x2e9506;const _0x26e7f1=_0x515a74[_0x4a7a1c(0x161)](),_0x1dc535=this['_entities']['get'](_0x26e7f1);_0x1dc535==null||_0x1dc535['dispose']();});}async[_0x3eb66f(0x105)](_0x37258e){var _0x2d09bf=_0x3eb66f;const _0x53f0ba=await this[_0x2d09bf(0x121)][_0x2d09bf(0x106)](_0x37258e),_0x287bf8=this[_0x2d09bf(0x140)][_0x2d09bf(0x1a0)](C,_0x37258e,_0x53f0ba);return _0x287bf8[_0x2d09bf(0x11a)](),this['_entities'][_0x2d09bf(0x10d)](_0x37258e,_0x287bf8),_0x287bf8;}};I=Z([f(0x0,_0x516a71),f(0x1,_0x3f84a3(_0x15d8b5)),f(0x2,_0x3f84a3(_0x1b8367))],I);var h=(_0x5cd094=>(_0x5cd094[_0x3eb66f(0x149)]=_0x3eb66f(0x1a7),_0x5cd094[_0x3eb66f(0x166)]='idle',_0x5cd094[_0x3eb66f(0x135)]=_0x3eb66f(0x16b),_0x5cd094[_0x3eb66f(0x18d)]=_0x3eb66f(0x126),_0x5cd094[_0x3eb66f(0x15d)]=_0x3eb66f(0x198),_0x5cd094))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x2968d7{constructor(_0x2835e7,_0x597389,_0x1ad216,_0x42f58a,_0x30b660){var _0x4637f6=_0x3eb66f;super(),d(this,_0x4637f6(0x131),new _0x22c326(_0x4637f6(0x18e))),d(this,'status$',this[_0x4637f6(0x131)][_0x4637f6(0x17c)]()),d(this,'_init',!0x1),d(this,_0x4637f6(0x15a),null),d(this,_0x4637f6(0x171),null),(this[_0x4637f6(0x139)]=_0x2835e7,this[_0x4637f6(0x114)]=_0x597389,this[_0x4637f6(0x11b)]=_0x1ad216,this[_0x4637f6(0x15f)]=_0x42f58a,this[_0x4637f6(0x109)]=_0x30b660);}get[_0x3eb66f(0x18a)](){var _0x6a0a02=_0x3eb66f;return this[_0x6a0a02(0x131)][_0x6a0a02(0x13d)]();}[_0x3eb66f(0x158)](){var _0x22eac7=_0x3eb66f,_0x3e9a4e;(_0x3e9a4e=this[_0x22eac7(0x15a)])==null||_0x3e9a4e[_0x22eac7(0x158)](),this[_0x22eac7(0x131)][_0x22eac7(0x153)](_0x22eac7(0x18e)),this[_0x22eac7(0x131)][_0x22eac7(0x16e)]();}[_0x3eb66f(0x11a)](){var _0x4c977a=_0x3eb66f;this[_0x4c977a(0x19b)]||(this['_init']=!0x0,this[_0x4c977a(0x114)][_0x4c977a(0x175)][_0x4c977a(0x11c)](_0x64489(this['dispose$']))[_0x4c977a(0x182)](_0xf72c5b=>{var _0x17f580=_0x4c977a;switch(_0xf72c5b){case _0x39791d[_0x17f580(0x149)]:this['_handleOffline']();break;case _0x39791d['ONLINE']:this[_0x17f580(0x10b)]();break;}}),this[_0x4c977a(0x114)][_0x4c977a(0x136)]['pipe'](_0x64489(this['dispose$']))[_0x4c977a(0x182)](_0x4f1338=>{var _0x251f11=_0x4c977a;const {eventID:_0x204de6}=_0x4f1338;switch(_0x204de6){case _0x40c637['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4f1338);break;case _0x40c637[_0x251f11(0x180)]:this[_0x251f11(0x170)](_0x4f1338);break;case _0x40c637['LIVESHARE_TERMINATE']:this[_0x251f11(0x13c)]();break;case _0x40c637['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x4f1338);break;}}));}['tryStartPresenting'](){var _0x1eb66c=_0x3eb66f;this[_0x1eb66c(0x114)]['send']({'eventID':_0x40c637['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1eb66c(0x139)],'userID':this[_0x1eb66c(0x114)][_0x1eb66c(0x138)]()}},this[_0x1eb66c(0x139)]);}[_0x3eb66f(0x1a4)](){var _0x327742=_0x3eb66f;this['_status']===_0x327742(0x198)&&(this[_0x327742(0x131)][_0x327742(0x153)]('idle'),this[_0x327742(0x114)][_0x327742(0x173)]({'eventID':_0x40c637[_0x327742(0x127)],'data':{'unitID':this[_0x327742(0x139)]}},this[_0x327742(0x139)]));}['startFollowing'](){var _0x507ba6=_0x3eb66f;this[_0x507ba6(0x18a)]===_0x507ba6(0x126)&&(this['_status$'][_0x507ba6(0x153)](_0x507ba6(0x16b)),this[_0x507ba6(0x15e)]());}['stopFollowing'](){var _0x3e30d8=_0x3eb66f;this[_0x3e30d8(0x18a)]===_0x3e30d8(0x16b)&&this['_stopFollowing']();}[_0x3eb66f(0x174)](_0x15215b){var _0x46f13e=_0x3eb66f;const {presenter:_0x30af10}=_0x15215b[_0x46f13e(0x10e)],_0x54b30e=this[_0x46f13e(0x114)]['getMemberID']();this[_0x46f13e(0x171)]=_0x30af10,_0x30af10===_0x54b30e?(this['_stopFollowing'](),this[_0x46f13e(0x17e)]()):this[_0x46f13e(0x18a)]!==_0x46f13e(0x126)&&(this[_0x46f13e(0x162)](),this[_0x46f13e(0x15e)]());}[_0x3eb66f(0x16d)](){var _0x5d4bd5=_0x3eb66f;const _0x40c1a6={'eventID':_0x40c637[_0x5d4bd5(0x146)]};this['_collabSession'][_0x5d4bd5(0x173)](_0x40c1a6,this[_0x5d4bd5(0x139)]);}[_0x3eb66f(0x13c)](){var _0x659622=_0x3eb66f;this[_0x659622(0x171)]=null,this[_0x659622(0x18a)]!==_0x659622(0x198)&&this['_beIdle']();}[_0x3eb66f(0x112)](_0x2e1d73){var _0x2280f4=_0x3eb66f;if(this['_status']==='following'&&this[_0x2280f4(0x171)]===_0x2e1d73['data'][_0x2280f4(0x19a)]){const _0x302ee2=_0x4c17bf(_0x2e1d73['data'])['mutations']['reverse']()['find'](_0x20a2d0=>_0x20a2d0['id']===_0x2a9f7c['id']);if(_0x302ee2){const _0x543e43=_0x302ee2[_0x2280f4(0x107)][_0x2280f4(0x18c)],_0x335cc4=_0x302ee2[_0x2280f4(0x107)]['sheet']['id'];setTimeout(()=>{var _0x25ca2b=_0x2280f4;this['_commandService'][_0x25ca2b(0x1a8)](_0x3b7bd5['id'],{'unitId':_0x543e43,'subUnitId':_0x335cc4},{'fromCollab':!0x0});});}}}[_0x3eb66f(0x17e)](){var _0x23010c=_0x3eb66f;this['_status$'][_0x23010c(0x153)](_0x23010c(0x198));const _0x5ceb43=new Map(),_0x3ab671=this[_0x23010c(0x15a)]=new _0x22943b();_0x3ab671[_0x23010c(0x11d)](_0x56fa4e(()=>{var _0x5180d0=_0x23010c;_0x5ceb43['forEach'](_0x122fc5=>_0x122fc5[_0x5180d0(0x16e)]()),_0x5ceb43['clear']();})),_0x3ab671[_0x23010c(0x11d)](this[_0x23010c(0x109)]['onCommandExecuted'](_0x57b028=>{var _0x5c255f=_0x23010c,_0x40a3fa;if(_0x57b028[_0x5c255f(0x14a)]!==_0x50cabc[_0x5c255f(0x1a5)]||!this[_0x5c255f(0x15f)]['shouldShareOperation'](_0x57b028['id']))return;const {id:_0x18c313}=_0x57b028;let _0x3ded07;_0x5ceb43[_0x5c255f(0x184)](_0x18c313)?_0x3ded07=_0x5ceb43['get'](_0x18c313):(_0x3ded07=new _0x4a1280(),_0x5ceb43['set'](_0x18c313,_0x3ded07),_0x3ded07['pipe'](_0x1cb448((_0x40a3fa=this[_0x5c255f(0x11b)][_0x5c255f(0x13b)](Pe))!=null?_0x40a3fa:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5c255f(0x182)](_0x4165a6=>{var _0x3fe6d5=_0x5c255f;this[_0x3fe6d5(0x114)]['send']({'eventID':_0x40c637['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4165a6['id']]:{'id':_0x4165a6['id'],'params':JSON[_0x3fe6d5(0x119)](_0x4165a6[_0x3fe6d5(0x107)])}}}},this['_unitID']);})),_0x3ded07[_0x5c255f(0x153)](_0x57b028);})),this[_0x23010c(0x15f)][_0x23010c(0x17f)](this[_0x23010c(0x139)])[_0x23010c(0x115)](_0x16de63=>this[_0x23010c(0x114)]['send']({'eventID':_0x40c637[_0x23010c(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x16de63['id']]:{'id':_0x16de63['id'],'params':JSON[_0x23010c(0x119)](_0x16de63[_0x23010c(0x107)])}}}},this[_0x23010c(0x139)]));}[_0x3eb66f(0x162)](){var _0x130467=_0x3eb66f,_0x54fd2e;this[_0x130467(0x131)]['next'](_0x130467(0x18e)),(_0x54fd2e=this[_0x130467(0x15a)])==null||_0x54fd2e[_0x130467(0x158)](),this['_commandDisposable']=null;}[_0x3eb66f(0x15e)](){var _0x510ac4=_0x3eb66f,_0x55a288;(_0x55a288=this[_0x510ac4(0x15a)])==null||_0x55a288[_0x510ac4(0x158)](),this['_status$']['next'](_0x510ac4(0x16b));}['_beIdle'](){var _0x2218a8=_0x3eb66f,_0x22ce86;this[_0x2218a8(0x131)][_0x2218a8(0x153)](_0x2218a8(0x18e)),(_0x22ce86=this['_commandDisposable'])==null||_0x22ce86[_0x2218a8(0x158)](),this['_commandDisposable']=null;}[_0x3eb66f(0x14e)](){var _0x535976=_0x3eb66f,_0x2c0dde;this['_status$'][_0x535976(0x153)](_0x535976(0x126)),(_0x2c0dde=this['_commandDisposable'])==null||_0x2c0dde['dispose']();}[_0x3eb66f(0x170)](_0x24f7c7){var _0x15c87a=_0x3eb66f;if([_0x15c87a(0x198),_0x15c87a(0x126),_0x15c87a(0x1a7)][_0x15c87a(0x1a9)](this[_0x15c87a(0x18a)])||!_0x24f7c7['data']['presenter']||_0x24f7c7[_0x15c87a(0x10e)][_0x15c87a(0x19f)]===this['_collabSession'][_0x15c87a(0x138)]())return;this[_0x15c87a(0x18a)]===_0x15c87a(0x18e)&&this['_startFollowing']();const _0x2f485e=_0x24f7c7[_0x15c87a(0x10e)][_0x15c87a(0x187)];Object['values'](_0x2f485e)[_0x15c87a(0x115)](_0x158936=>{var _0x512fb5=_0x15c87a;this['_commandService'][_0x512fb5(0x1a8)](_0x158936['id'],_0x158936[_0x512fb5(0x107)]?JSON[_0x512fb5(0x157)](_0x158936[_0x512fb5(0x107)]):null,{'fromCollab':!0x0});});}[_0x3eb66f(0x188)](){var _0x3a44e5=_0x3eb66f,_0x574c0c;this['_status$']['next'](_0x3a44e5(0x1a7)),(_0x574c0c=this['_commandDisposable'])==null||_0x574c0c[_0x3a44e5(0x158)]();}['_handleOnline'](){var _0x2d947d=_0x3eb66f;this[_0x2d947d(0x131)][_0x2d947d(0x153)](_0x2d947d(0x18e)),this[_0x2d947d(0x16d)]();}};C=Z([f(0x2,_0x314f53),f(0x3,_0x3f84a3(L)),f(0x4,_0x39ff78)],C);function Te(){var _0x41b232=_0x3eb66f;const _0x206bc3=_0x318ee9(I),_0x3cb97e=_0x318ee9(_0x516a71),_0x2713e6=_0x394850(()=>_0x3cb97e['getCurrentTypeOfUnit$'](_0x58c155[_0x41b232(0x129)]),void 0x0,!0x1,[]),[_0x21c736,_0x2b34db]=_0xd7af93(null),[_0x13b350,_0x3b5c0d]=_0xd7af93(h[_0x41b232(0x166)]),_0x2731f4=_0x3891b2(null);return _0x59b4f4(()=>(_0x2713e6&&_0x206bc3[_0x41b232(0x143)](_0x2713e6['getUnitId']())['then'](_0x3e4914=>{var _0x5f29cb=_0x41b232;_0x2b34db(_0x3e4914),_0x2731f4['current']=_0x3e4914[_0x5f29cb(0x13f)][_0x5f29cb(0x182)](_0x471ea4=>{_0x3b5c0d(_0x471ea4);});}),()=>{var _0x9e0507=_0x41b232,_0x45d08a;(_0x45d08a=_0x2731f4[_0x9e0507(0x123)])==null||_0x45d08a[_0x9e0507(0x141)](),_0x2731f4['current']=null;}),[_0x2713e6,_0x206bc3]),_0x21c736?_0x317f25(_0x11722c,{'align':'end','disabled':_0x13b350===h[_0x41b232(0x149)],'className':_0x41b232(0x124),'overlay':_0x317f25($e,{'status':_0x13b350,'coordinator':_0x21c736}),'children':_0x317f25(_0x41b232(0x197),{'className':_0x81ab49(_0x41b232(0x163),{'univer-cursor-not-allowed':_0x13b350===h[_0x41b232(0x149)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x13b350!==h[_0x41b232(0x149)]}),'type':_0x41b232(0x197),'children':_0x317f25(B,{'className':_0x41b232(0x190)})})}):null;}function $e(_0x4fd75a){var _0x3b8523=_0x3eb66f;const {status:_0x26b86d,coordinator:_0x49d2df}=_0x4fd75a;switch(_0x26b86d){case h[_0x3b8523(0x166)]:return _0x317f25(Fe,{'coordinator':_0x49d2df});case h[_0x3b8523(0x135)]:return _0x317f25(He,{'coordinator':_0x49d2df});case h[_0x3b8523(0x18d)]:return _0x317f25(je,{'coordinator':_0x49d2df});case h[_0x3b8523(0x149)]:return _0x317f25(Ve,{});case h[_0x3b8523(0x15d)]:return _0x317f25(Ue,{'coordinator':_0x49d2df});default:return null;}}function Fe(_0x499b26){var _0x2d2586=_0x3eb66f;const {coordinator:_0x1df800}=_0x499b26;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x2d2586(0x142),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x317f25(_0x29954b,{'onClick':()=>_0x1df800[_0x2d2586(0x12d)](),'children':_0x2d2586(0x10f)})]});}function He(_0x553cbf){var _0x305378=_0x3eb66f;const {coordinator:_0x45933c}=_0x553cbf;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x305378(0x142),{'className':_0x305378(0x16a),'children':_0x305378(0x16f)}),_0x317f25(_0x29954b,{'onClick':()=>_0x45933c[_0x305378(0x160)](),'children':'Stop\x20following'})]});}function je(_0x59c570){var _0x130793=_0x3eb66f;const {coordinator:_0x535713}=_0x59c570;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x130793(0x142),{'className':_0x130793(0x16a),'children':_0x130793(0x152)}),_0x317f25(_0x29954b,{'variant':_0x130793(0x137),'onClick':()=>_0x535713[_0x130793(0x1a2)](),'children':_0x130793(0x13e)})]});}function Ue(_0x227770){var _0xe31be0=_0x3eb66f;const {coordinator:_0x4c0903}=_0x227770;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0xe31be0(0x142),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x317f25(_0x29954b,{'variant':_0xe31be0(0x100),'onClick':()=>_0x4c0903[_0xe31be0(0x1a4)](),'children':_0xe31be0(0x154)})]});}function Ve(){var _0x2d4639=_0x3eb66f;return _0x317f25(_0xcbf086,{'children':_0x2d4639(0x14b)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x176aab,_0x3e99de,_0x438bba,_0x303e97)=>{for(var _0x466db5=_0x303e97>0x1?void 0x0:_0x303e97?Me(_0x3e99de,_0x438bba):_0x3e99de,_0x37da53=_0x176aab['length']-0x1,_0x363d41;_0x37da53>=0x0;_0x37da53--)(_0x363d41=_0x176aab[_0x37da53])&&(_0x466db5=_0x363d41(_0x466db5)||_0x466db5);return _0x466db5;},$=(_0x52b8fc,_0x5b6691)=>(_0x59eb1f,_0x3d9047)=>_0x5b6691(_0x59eb1f,_0x3d9047,_0x52b8fc);let b=class extends _0x28094d{constructor(_0x1ed1ff,_0x40625d){var _0x8f0c25=_0x3eb66f;super(),this[_0x8f0c25(0x140)]=_0x1ed1ff,this[_0x8f0c25(0x191)]=_0x40625d,this[_0x8f0c25(0x132)]();}['_mountLiveShare'](){var _0x19c19a=_0x3eb66f;this[_0x19c19a(0x183)](this['_uiPartsService'][_0x19c19a(0x192)](_0x45e07f[_0x19c19a(0x1a6)],()=>_0x67a89(Te,this['_injector'])));}};b=ke([$(0x0,_0x3f84a3(_0x15d8b5)),$(0x1,_0x326cbf)],b);var Ge=Object['defineProperty'],We=Object[_0x3eb66f(0x117)],Ye=(_0x70e9c1,_0x954166,_0x276c9e)=>_0x954166 in _0x70e9c1?Ge(_0x70e9c1,_0x954166,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x276c9e}):_0x70e9c1[_0x954166]=_0x276c9e,Be=(_0x47328e,_0x4cfded,_0x2f2279,_0x30ee14)=>{for(var _0x5a74f6=_0x30ee14>0x1?void 0x0:_0x30ee14?We(_0x4cfded,_0x2f2279):_0x4cfded,_0x4c4c3a=_0x47328e['length']-0x1,_0x1bacac;_0x4c4c3a>=0x0;_0x4c4c3a--)(_0x1bacac=_0x47328e[_0x4c4c3a])&&(_0x5a74f6=_0x1bacac(_0x5a74f6)||_0x5a74f6);return _0x5a74f6;},F=(_0x5e3ec0,_0x2a89c8)=>(_0x45cef5,_0x20c7d8)=>_0x2a89c8(_0x45cef5,_0x20c7d8,_0x5e3ec0),J=(_0x16e971,_0xd9f221,_0x337e01)=>Ye(_0x16e971,typeof _0xd9f221!=_0x3eb66f(0x15b)?_0xd9f221+'':_0xd9f221,_0x337e01);const Ze=_0x3eb66f(0x108);let O=class extends _0x47a77d{constructor(_0x2305ee=T,_0x2250c8,_0x4d146b){var _0x8c5b86=_0x3eb66f;super(),this[_0x8c5b86(0x19d)]=_0x2305ee,this[_0x8c5b86(0x140)]=_0x2250c8,this[_0x8c5b86(0x11b)]=_0x4d146b;const {..._0x96d20d}=_0x1f5ca3({},T,this[_0x8c5b86(0x19d)]);this[_0x8c5b86(0x11b)][_0x8c5b86(0x113)](Oe,_0x96d20d);}[_0x3eb66f(0x177)](){var _0x5f1ff0=_0x3eb66f;_0x1df7a9(this[_0x5f1ff0(0x140)],_0x227802([[L],[I],[m],[b]],this[_0x5f1ff0(0x19d)]['override'])),_0x4f8b46(this[_0x5f1ff0(0x140)],[[m]]);}['onRendered'](){var _0x2d4ecf=_0x3eb66f;_0x4f8b46(this[_0x2d4ecf(0x140)],[[b]]);}};J(O,_0x3eb66f(0x14a),_0x58c155[_0x3eb66f(0x165)]),J(O,_0x3eb66f(0x12e),Ze),O=Be([_0x419c79(_0x26cab8),F(0x1,_0x3f84a3(_0x15d8b5)),F(0x2,_0x314f53)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x485ed8=_0x1708;(function(_0x5ba6a9,_0x25381d){var _0x296881=_0x1708,_0x3400b6=_0x5ba6a9();while(!![]){try{var _0xc48b78=-parseInt(_0x296881(0xde))/0x1+-parseInt(_0x296881(0xeb))/0x2*(-parseInt(_0x296881(0xcc))/0x3)+-parseInt(_0x296881(0xe4))/0x4*(-parseInt(_0x296881(0x106))/0x5)+-parseInt(_0x296881(0x11a))/0x6*(-parseInt(_0x296881(0xdb))/0x7)+-parseInt(_0x296881(0xc7))/0x8*(parseInt(_0x296881(0xff))/0x9)+-parseInt(_0x296881(0xf1))/0xa*(-parseInt(_0x296881(0x120))/0xb)+-parseInt(_0x296881(0xf0))/0xc*(parseInt(_0x296881(0x131))/0xd);if(_0xc48b78===_0x25381d)break;else _0x3400b6['push'](_0x3400b6['shift']());}catch(_0x266e6a){_0x3400b6['push'](_0x3400b6['shift']());}}}(_0x2f03,0x2bdae));var q=Object[_0x485ed8(0xec)],z=(_0x2c09ba,_0x3a5533,_0x38b92e)=>_0x3a5533 in _0x2c09ba?q(_0x2c09ba,_0x3a5533,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38b92e}):_0x2c09ba[_0x3a5533]=_0x38b92e,d=(_0x8b2b10,_0x5960c5,_0x3c902c)=>z(_0x8b2b10,typeof _0x5960c5!=_0x485ed8(0x151)?_0x5960c5+'':_0x5960c5,_0x3c902c);import{CollaborationSessionService as _0x79d5cc,SessionStatus as _0x4d0179,UniverCollaborationClientPlugin as _0x13f08e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3c0c36,toDisposable as _0x3eb609,Inject as _0x56ae44,IUniverInstanceService as _0x2faaa5,Injector as _0x11b368,IConfigService as _0x2473bb,ICommandService as _0x20dcab,RxDisposable as _0x1bc773,UniverInstanceType as _0x5706ae,DisposableCollection as _0x28b2d6,CommandType as _0x4419b1,DependentOn as _0xaa01dd,Plugin as _0x11a0e9,merge as _0x4e2ab8,registerDependencies as _0xe717aa,mergeOverrideWithDependencies as _0x1a80dc,touchDependencies as _0x5cd586}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x228792,InsertSheetMutation as _0x295080}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3786fd,SetScrollOperation as _0x480ee3}from'@univerjs/sheets-ui';import{useDependency as _0x503ec0,useObservable as _0x3d7e06,IUIPartsService as _0x5f5b99,BuiltInUIPart as _0x542535,connectInjector as _0x1d00fc}from'@univerjs/ui';import{jsx as _0x458b0b,jsxs as _0x257512,Fragment as _0x2d7bfa}from'react/jsx-runtime';function _0x1708(_0x1332b7,_0x25df24){var _0x2f0372=_0x2f03();return _0x1708=function(_0x170897,_0x49aa22){_0x170897=_0x170897-0xba;var _0x2da45a=_0x2f0372[_0x170897];return _0x2da45a;},_0x1708(_0x1332b7,_0x25df24);}import{Dropdown as _0x6c2787,clsx as _0x3c8900,Button as _0x721d66}from'@univerjs/design';import{forwardRef as _0x128413,useRef as _0x50377a,createElement as _0x252481,useState as _0x236131,useEffect as _0x45d8fa}from'react';import{CollaborationEvent as _0x48bc07,parseProtocolChangeset as _0x105b53}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x4e6368,Subject as _0x4fa684}from'rxjs';import{takeUntil as _0x510391,throttleTime as _0x3ce606}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x3c0c36{constructor(){var _0x2abe05=_0x485ed8;super(...arguments),d(this,_0x2abe05(0xe3),new Set()),d(this,_0x2abe05(0xd8),new Set());}[_0x485ed8(0x15e)](_0xfc28ce){var _0x1af626=_0x485ed8;return this[_0x1af626(0xe3)][_0x1af626(0xe1)](_0xfc28ce),_0x3eb609(()=>this[_0x1af626(0xe3)]['delete'](_0xfc28ce));}['registerInitialStateReporter'](_0x43c41e){var _0x24c908=_0x485ed8;return this['_reporters'][_0x24c908(0xe1)](_0x43c41e),_0x3eb609(()=>this[_0x24c908(0xd8)][_0x24c908(0x139)](_0x43c41e));}[_0x485ed8(0x15b)](_0x344a7e){var _0x2ed306=_0x485ed8;return this[_0x2ed306(0xe3)][_0x2ed306(0x15a)](_0x344a7e);}[_0x485ed8(0x14c)](_0x40c54d){var _0x365a1d=_0x485ed8;return Array[_0x365a1d(0x116)](this[_0x365a1d(0xd8)])[_0x365a1d(0xc1)](_0x28c287=>_0x28c287(_0x40c54d));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x597d5c,_0x4e8890,_0x508372,_0x94256a)=>{var _0x1702e1=_0x485ed8;for(var _0x14926c=_0x94256a>0x1?void 0x0:_0x94256a?Ee(_0x4e8890,_0x508372):_0x4e8890,_0x68623=_0x597d5c[_0x1702e1(0xc9)]-0x1,_0x5a087e;_0x68623>=0x0;_0x68623--)(_0x5a087e=_0x597d5c[_0x68623])&&(_0x14926c=_0x5a087e(_0x14926c)||_0x14926c);return _0x14926c;},Ne=(_0x5d17dc,_0x57d2f2)=>(_0x329cf2,_0x395fc1)=>_0x57d2f2(_0x329cf2,_0x395fc1,_0x5d17dc);let m=class extends _0x3c0c36{constructor(_0x139647){var _0x2af62d=_0x485ed8;super(),this[_0x2af62d(0x16e)]=_0x139647,this[_0x2af62d(0xd6)]();}[_0x485ed8(0xd6)](){var _0xc9aefb=_0x485ed8;[_0x3786fd['id'],_0x480ee3['id'],_0x228792['id']][_0xc9aefb(0xea)](_0x3b0ba1=>{var _0x29bee9=_0xc9aefb;this[_0x29bee9(0x148)](this['_liveShareService'][_0x29bee9(0x15e)](_0x3b0ba1));});}};m=we([Ne(0x0,_0x56ae44(L))],m);var c=function(){var _0x42a8d8=_0x485ed8;return c=Object[_0x42a8d8(0xe7)]||function(_0x48592e){var _0x419122=_0x42a8d8;for(var _0x23e300,_0x1b4afd=0x1,_0x2a94ff=arguments['length'];_0x1b4afd<_0x2a94ff;_0x1b4afd++){_0x23e300=arguments[_0x1b4afd];for(var _0x3088d5 in _0x23e300)Object[_0x419122(0xbc)][_0x419122(0x138)]['call'](_0x23e300,_0x3088d5)&&(_0x48592e[_0x3088d5]=_0x23e300[_0x3088d5]);}return _0x48592e;},c['apply'](this,arguments);},Ce=function(_0x850a21,_0x3ac348){var _0x5e4134=_0x485ed8,_0x5a08b7={};for(var _0x4c13d7 in _0x850a21)Object[_0x5e4134(0xbc)][_0x5e4134(0x138)][_0x5e4134(0x13e)](_0x850a21,_0x4c13d7)&&_0x3ac348[_0x5e4134(0xcf)](_0x4c13d7)<0x0&&(_0x5a08b7[_0x4c13d7]=_0x850a21[_0x4c13d7]);if(_0x850a21!=null&&typeof Object[_0x5e4134(0xce)]==_0x5e4134(0x16a)){for(var _0x2d2084=0x0,_0x4c13d7=Object[_0x5e4134(0xce)](_0x850a21);_0x2d2084<_0x4c13d7[_0x5e4134(0xc9)];_0x2d2084++)_0x3ac348[_0x5e4134(0xcf)](_0x4c13d7[_0x2d2084])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x850a21,_0x4c13d7[_0x2d2084])&&(_0x5a08b7[_0x4c13d7[_0x2d2084]]=_0x850a21[_0x4c13d7[_0x2d2084]]);}return _0x5a08b7;},W=_0x128413(function(_0x39cbca,_0xc46fa9){var _0x124f30=_0x485ed8,_0x1bd18d=_0x39cbca[_0x124f30(0x13b)],_0x3e06a0=_0x39cbca['id'],_0x544ae7=_0x39cbca['className'],_0x4e14b1=_0x39cbca['extend'],_0x2ff5b2=Ce(_0x39cbca,[_0x124f30(0x13b),'id',_0x124f30(0x14e),_0x124f30(0x112)]),_0x39b26f='univerjs-icon\x20univerjs-icon-'[_0x124f30(0xc3)](_0x3e06a0,'\x20')['concat'](_0x544ae7||'')[_0x124f30(0x162)](),_0x2ea1e7=_0x50377a('_'[_0x124f30(0xc3)](Le()));return Y(_0x1bd18d,''['concat'](_0x3e06a0),{'defIds':_0x1bd18d[_0x124f30(0x133)],'idSuffix':_0x2ea1e7['current']},c({'ref':_0xc46fa9,'className':_0x39b26f},_0x2ff5b2),_0x4e14b1);});function Y(_0x8b3b6,_0x10c536,_0x21e41d,_0x43e23e,_0xb48ee3){var _0xd53fc9=_0x485ed8;return _0x252481(_0x8b3b6[_0xd53fc9(0x169)],c(c({'key':_0x10c536},De(_0x8b3b6,_0x21e41d,_0xb48ee3)),_0x43e23e),(xe(_0x8b3b6,_0x21e41d)['children']||[])[_0xd53fc9(0xc1)](function(_0x4f1e54,_0x338b41){var _0x318be2=_0xd53fc9;return Y(_0x4f1e54,''[_0x318be2(0xc3)](_0x10c536,'-')[_0x318be2(0xc3)](_0x8b3b6['tag'],'-')['concat'](_0x338b41),_0x21e41d,void 0x0,_0xb48ee3);}));}function De(_0x460c2d,_0x410c3f,_0x4d6f13){var _0x3da38d=_0x485ed8,_0xf10abe=c({},_0x460c2d[_0x3da38d(0x14f)]);_0x4d6f13!=null&&_0x4d6f13['colorChannel1']&&_0xf10abe[_0x3da38d(0x165)]==='colorChannel1'&&(_0xf10abe[_0x3da38d(0x165)]=_0x4d6f13['colorChannel1']),_0x460c2d[_0x3da38d(0x169)]===_0x3da38d(0x10f)&&_0xf10abe['id']&&(_0xf10abe['id']=_0xf10abe['id']+_0x410c3f[_0x3da38d(0xe2)]),Object[_0x3da38d(0x126)](_0xf10abe)[_0x3da38d(0xea)](function(_0x963869){var _0x4cd2b1=_0x3da38d,_0x20bf04=_0x963869[0x0],_0x18ec6f=_0x963869[0x1];_0x20bf04===_0x4cd2b1(0x10f)&&typeof _0x18ec6f==_0x4cd2b1(0x10b)&&(_0xf10abe[_0x20bf04]=_0x18ec6f[_0x4cd2b1(0xfb)](/url\(#(.*)\)/,_0x4cd2b1(0x14a)['concat'](_0x410c3f[_0x4cd2b1(0xe2)],')')));});var _0x540ae2=_0x410c3f[_0x3da38d(0x133)];return!_0x540ae2||_0x540ae2[_0x3da38d(0xc9)]===0x0||(_0x460c2d['tag']===_0x3da38d(0x109)&&_0xf10abe[_0x3da38d(0x105)]&&(_0xf10abe['xlink:href']=_0xf10abe[_0x3da38d(0x105)]+_0x410c3f[_0x3da38d(0xe2)]),Object['entries'](_0xf10abe)['forEach'](function(_0x46be5c){var _0x447f25=_0x3da38d,_0x5a43a5=_0x46be5c[0x0],_0x5ad1c9=_0x46be5c[0x1];typeof _0x5ad1c9==_0x447f25(0x10b)&&(_0xf10abe[_0x5a43a5]=_0x5ad1c9[_0x447f25(0xfb)](/url\(#(.*)\)/,_0x447f25(0x14a)[_0x447f25(0xc3)](_0x410c3f[_0x447f25(0xe2)],')')));})),_0xf10abe;}function _0x2f03(){var _0x32c883=['221855rIMmwN','requireSession','end','use','executeCommand','string','getLiveShareCoordinator','memberID','NOT_FOLLOWING','mask','LIVESHARE_FETCH_OPERATIONS','getMemberID','extend','OPERATION','http://www.w3.org/2000/svg','OFFLINE','from','_uiPartsService','following','LIVESHARE_TERMINATE','22224WPTDOM','toString','parse','_handleNewHost','type','univer-w-full\x20univer-mb-3\x20univer-text-sm','2420319TzapdQ','Stop\x20presenting','LIVESHARE_OPERATION','_status','default','_stopPresenting','entries','getConfig','_commandDisposable','registerComponent','_unitID','children','operations','_commandService','startFollowing','unsubscribe','not-following','793fNHbPj','dispose','defIds','_handleOnline','_config','Stop\x20following','_mountLiveShare','hasOwnProperty','delete','pipe','icon','_stopFollowing','_collabSessionService','call','reverse','You\x27re\x20not\x20following\x20the\x20presenter','evenodd','getTypeOfUnitDisposed$','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_injector','_handleTerminate','UNIVER_UNKNOWN','includes','disposeWithMe','setConfig','url(#$1','presenting','getInitialStates','_startFollowing','className','attrs','random','symbol','div','SAME_OPERATION_SHARE_INTERVAL','next','PRESENTING','svg','Present\x20this\x20document','stopPresenting','UniverIcon','has','shouldShareOperation','_configService','subscribe','registerSharedOperation','getUnitId','path','status$','trim','stopFollowing','_univerInstanceService','fill','getTypeOfUnitAdded$','substring','You\x27re\x20following\x20the\x20presenter','tag','function','params','Start','ONLINE','_liveShareService','onRendered','getValue','prototype','set','LIVESHARE_NEW_HOST','clear','unitId','map','_collabSession','concat','offline','_status$','Start\x20following','1016tshvKX','FOLLOWING','length','_fetchOperations','displayName','3kMkLte','send','getOwnPropertySymbols','indexOf','current','0\x200\x2017\x2017','1em','then','pluginName','_startLiveShareCoordinator','_init','_startPresenting','_reporters','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','NEW_CHANGESETS','574ueJiZD','onStarting','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','68700wMEYzq','button','sessionStatus$','add','idSuffix','_sharedOperations','16eSLuhP','stringify','presenter','assign','tryStartPresenting','data','forEach','391642ZanzpZ','defineProperty','idle','asObservable','dispose$','61188gieuxp','10LAJpQh','getCurrentTypeOfUnit$','currentColor','live-share-icon','_handleOperation','_beIdle','_presenter','UNIVER_LIVE_SHARE_PLUGIN','UNIVER_SHEET','_handleOffline','replace','IDLE','_entities','LIVESHARE_REQUEST_HOST','23931lpvCKv','get','init','complete','getOwnPropertyDescriptor','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','xlink:href'];_0x2f03=function(){return _0x32c883;};return _0x2f03();}function xe(_0x31facb,_0x51b636){var _0x370531=_0x485ed8,_0x350d8b,_0x4b53dd=_0x51b636[_0x370531(0x133)];return!_0x4b53dd||_0x4b53dd[_0x370531(0xc9)]===0x0?_0x31facb:_0x31facb['tag']==='defs'&&(!((_0x350d8b=_0x31facb['children'])===null||_0x350d8b===void 0x0)&&_0x350d8b['length'])?c(c({},_0x31facb),{'children':_0x31facb[_0x370531(0x12b)][_0x370531(0xc1)](function(_0x28a0a5){var _0x31c0ec=_0x370531;return typeof _0x28a0a5[_0x31c0ec(0x14f)]['id']=='string'&&_0x4b53dd&&_0x4b53dd[_0x31c0ec(0x147)](_0x28a0a5[_0x31c0ec(0x14f)]['id'])?c(c({},_0x28a0a5),{'attrs':c(c({},_0x28a0a5['attrs']),{'id':_0x28a0a5[_0x31c0ec(0x14f)]['id']+_0x51b636[_0x31c0ec(0xe2)]})}):_0x28a0a5;})}):_0x31facb;}function Le(){var _0x22671d=_0x485ed8;return Math[_0x22671d(0x150)]()[_0x22671d(0x11b)](0x24)[_0x22671d(0x167)](0x2,0x8);}W[_0x485ed8(0xcb)]=_0x485ed8(0x159);var ye={'tag':_0x485ed8(0x156),'attrs':{'xmlns':_0x485ed8(0x114),'fill':'none','viewBox':_0x485ed8(0xd1),'width':_0x485ed8(0xd2),'height':_0x485ed8(0xd2)},'children':[{'tag':_0x485ed8(0x160),'attrs':{'fill':'currentColor','d':_0x485ed8(0x104)}},{'tag':'path','attrs':{'fill':_0x485ed8(0xf3),'d':_0x485ed8(0xd9),'fillRule':_0x485ed8(0x141),'clipRule':_0x485ed8(0x141)}}]},B=_0x128413(function(_0x19d760,_0x5bf795){var _0x5da537=_0x485ed8;return _0x252481(W,Object[_0x5da537(0xe7)]({},_0x19d760,{'id':_0x5da537(0xf4),'ref':_0x5bf795,'icon':ye}));});B[_0x485ed8(0xcb)]='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x4962a5,_0x5eb086,_0x48eacd,_0x3c886f)=>{var _0x4c2504=_0x485ed8;for(var _0x227def=_0x3c886f>0x1?void 0x0:_0x3c886f?Re(_0x5eb086,_0x48eacd):_0x5eb086,_0x36e320=_0x4962a5[_0x4c2504(0xc9)]-0x1,_0x4ccb80;_0x36e320>=0x0;_0x36e320--)(_0x4ccb80=_0x4962a5[_0x36e320])&&(_0x227def=_0x4ccb80(_0x227def)||_0x227def);return _0x227def;},f=(_0x1c8978,_0x1235d3)=>(_0x4ec311,_0x17758e)=>_0x1235d3(_0x4ec311,_0x17758e,_0x1c8978);let I=class extends _0x1bc773{constructor(_0x25a301,_0x45ee7d,_0x3a6a26){var _0x51155c=_0x485ed8;super(),d(this,_0x51155c(0xfd),new Map()),(this[_0x51155c(0x164)]=_0x25a301,this[_0x51155c(0x144)]=_0x45ee7d,this['_collabSessionService']=_0x3a6a26,this[_0x51155c(0xd6)]());}async[_0x485ed8(0x10c)](_0x3fdcdd){var _0x10bed2=_0x485ed8;return this['_entities'][_0x10bed2(0x15a)](_0x3fdcdd)||await this[_0x10bed2(0xd5)](_0x3fdcdd),this['_entities'][_0x10bed2(0x100)](_0x3fdcdd);}[_0x485ed8(0xd6)](){var _0x1eaf9d=_0x485ed8;this[_0x1eaf9d(0x164)][_0x1eaf9d(0x166)](_0x5706ae[_0x1eaf9d(0xf9)])[_0x1eaf9d(0x13a)](_0x510391(this['dispose$']))[_0x1eaf9d(0x15d)](async _0x42d019=>{var _0x543218=_0x1eaf9d;const _0x8cb3a4=_0x42d019[_0x543218(0x15f)]();this[_0x543218(0xfd)][_0x543218(0x15a)](_0x8cb3a4)||this[_0x543218(0xd5)](_0x8cb3a4);}),this['_univerInstanceService'][_0x1eaf9d(0x142)](_0x5706ae['UNIVER_SHEET'])['pipe'](_0x510391(this['dispose$']))[_0x1eaf9d(0x15d)](_0x12ce53=>{var _0x1b0b40=_0x1eaf9d;const _0x3b0210=_0x12ce53[_0x1b0b40(0x15f)](),_0xf27835=this[_0x1b0b40(0xfd)][_0x1b0b40(0x100)](_0x3b0210);_0xf27835==null||_0xf27835[_0x1b0b40(0x132)]();});}async[_0x485ed8(0xd5)](_0x457c25){var _0x55188f=_0x485ed8;const _0x712e30=await this[_0x55188f(0x13d)][_0x55188f(0x107)](_0x457c25),_0x17bb53=this['_injector']['createInstance'](C,_0x457c25,_0x712e30);return _0x17bb53[_0x55188f(0x101)](),this[_0x55188f(0xfd)][_0x55188f(0xbd)](_0x457c25,_0x17bb53),_0x17bb53;}};I=Z([f(0x0,_0x2faaa5),f(0x1,_0x56ae44(_0x11b368)),f(0x2,_0x56ae44(_0x79d5cc))],I);var h=(_0x409170=>(_0x409170[_0x485ed8(0x115)]=_0x485ed8(0xc4),_0x409170[_0x485ed8(0xfc)]=_0x485ed8(0xed),_0x409170['FOLLOWING']=_0x485ed8(0x118),_0x409170['NOT_FOLLOWING']=_0x485ed8(0x130),_0x409170[_0x485ed8(0x155)]='presenting',_0x409170))(h||{});const Pe=_0x485ed8(0x153),Ae=0xc8;let C=class extends _0x1bc773{constructor(_0x4d27f9,_0x5030af,_0x48f3b7,_0x47e387,_0x4dab2d){var _0x478eb5=_0x485ed8;super(),d(this,_0x478eb5(0xc5),new _0x4e6368(_0x478eb5(0xed))),d(this,_0x478eb5(0x161),this[_0x478eb5(0xc5)][_0x478eb5(0xee)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,'_presenter',null),(this[_0x478eb5(0x12a)]=_0x4d27f9,this[_0x478eb5(0xc2)]=_0x5030af,this[_0x478eb5(0x15c)]=_0x48f3b7,this[_0x478eb5(0x16e)]=_0x47e387,this[_0x478eb5(0x12d)]=_0x4dab2d);}get['_status'](){var _0x67c0f5=_0x485ed8;return this[_0x67c0f5(0xc5)][_0x67c0f5(0xbb)]();}['dispose'](){var _0x201484=_0x485ed8,_0x4e0650;(_0x4e0650=this[_0x201484(0x128)])==null||_0x4e0650['dispose'](),this[_0x201484(0xc5)][_0x201484(0x154)](_0x201484(0xed)),this['_status$'][_0x201484(0x102)]();}['init'](){var _0x2cb95e=_0x485ed8;this[_0x2cb95e(0xd6)]||(this[_0x2cb95e(0xd6)]=!0x0,this[_0x2cb95e(0xc2)][_0x2cb95e(0xe0)]['pipe'](_0x510391(this['dispose$']))[_0x2cb95e(0x15d)](_0x90dcf5=>{var _0x20d835=_0x2cb95e;switch(_0x90dcf5){case _0x4d0179[_0x20d835(0x115)]:this[_0x20d835(0xfa)]();break;case _0x4d0179[_0x20d835(0x16d)]:this[_0x20d835(0x134)]();break;}}),this['_collabSession']['event$'][_0x2cb95e(0x13a)](_0x510391(this[_0x2cb95e(0xef)]))[_0x2cb95e(0x15d)](_0x411b0a=>{var _0x30f24f=_0x2cb95e;const {eventID:_0x43bb27}=_0x411b0a;switch(_0x43bb27){case _0x48bc07[_0x30f24f(0xbe)]:this[_0x30f24f(0x11d)](_0x411b0a);break;case _0x48bc07[_0x30f24f(0x122)]:this['_handleOperation'](_0x411b0a);break;case _0x48bc07['LIVESHARE_TERMINATE']:this[_0x30f24f(0x145)]();break;case _0x48bc07[_0x30f24f(0xda)]:this['_handleNewChangeSets'](_0x411b0a);break;}}));}[_0x485ed8(0xe8)](){var _0x25bd15=_0x485ed8;this[_0x25bd15(0xc2)]['send']({'eventID':_0x48bc07[_0x25bd15(0xfe)],'data':{'unitID':this[_0x25bd15(0x12a)],'userID':this[_0x25bd15(0xc2)][_0x25bd15(0x111)]()}},this['_unitID']);}[_0x485ed8(0x158)](){var _0x286f80=_0x485ed8;this['_status']===_0x286f80(0x14b)&&(this[_0x286f80(0xc5)][_0x286f80(0x154)](_0x286f80(0xed)),this[_0x286f80(0xc2)][_0x286f80(0xcd)]({'eventID':_0x48bc07[_0x286f80(0x119)],'data':{'unitID':this[_0x286f80(0x12a)]}},this[_0x286f80(0x12a)]));}[_0x485ed8(0x12e)](){var _0x28adfa=_0x485ed8;this[_0x28adfa(0x123)]==='not-following'&&(this[_0x28adfa(0xc5)][_0x28adfa(0x154)](_0x28adfa(0x118)),this[_0x28adfa(0x14d)]());}['stopFollowing'](){var _0x122dc4=_0x485ed8;this[_0x122dc4(0x123)]===_0x122dc4(0x118)&&this[_0x122dc4(0x13c)]();}[_0x485ed8(0x11d)](_0x5f5544){var _0x1b61c7=_0x485ed8;const {presenter:_0x5e92c3}=_0x5f5544[_0x1b61c7(0xe9)],_0x423157=this[_0x1b61c7(0xc2)][_0x1b61c7(0x111)]();this[_0x1b61c7(0xf7)]=_0x5e92c3,_0x5e92c3===_0x423157?(this[_0x1b61c7(0x13c)](),this[_0x1b61c7(0xd7)]()):this[_0x1b61c7(0x123)]!==_0x1b61c7(0x130)&&(this[_0x1b61c7(0x125)](),this[_0x1b61c7(0x14d)]());}[_0x485ed8(0xca)](){var _0x4a63cf=_0x485ed8;const _0x4e41cd={'eventID':_0x48bc07[_0x4a63cf(0x110)]};this[_0x4a63cf(0xc2)][_0x4a63cf(0xcd)](_0x4e41cd,this['_unitID']);}[_0x485ed8(0x145)](){var _0xbfa49f=_0x485ed8;this[_0xbfa49f(0xf7)]=null,this[_0xbfa49f(0x123)]!=='presenting'&&this[_0xbfa49f(0xf6)]();}['_handleNewChangeSets'](_0x2a3b42){var _0x108643=_0x485ed8;if(this[_0x108643(0x123)]===_0x108643(0x118)&&this[_0x108643(0xf7)]===_0x2a3b42[_0x108643(0xe9)][_0x108643(0x10d)]){const _0x2a05d6=_0x105b53(_0x2a3b42['data'])['mutations'][_0x108643(0x13f)]()['find'](_0x41d8b8=>_0x41d8b8['id']===_0x295080['id']);if(_0x2a05d6){const _0xf52662=_0x2a05d6[_0x108643(0x16b)][_0x108643(0xc0)],_0x5e945c=_0x2a05d6[_0x108643(0x16b)]['sheet']['id'];setTimeout(()=>{var _0x573866=_0x108643;this[_0x573866(0x12d)][_0x573866(0x10a)](_0x228792['id'],{'unitId':_0xf52662,'subUnitId':_0x5e945c},{'fromCollab':!0x0});});}}}[_0x485ed8(0xd7)](){var _0x5b5197=_0x485ed8;this[_0x5b5197(0xc5)][_0x5b5197(0x154)](_0x5b5197(0x14b));const _0x180553=new Map(),_0x549556=this[_0x5b5197(0x128)]=new _0x28b2d6();_0x549556['add'](_0x3eb609(()=>{var _0x597129=_0x5b5197;_0x180553[_0x597129(0xea)](_0x4495a5=>_0x4495a5[_0x597129(0x102)]()),_0x180553[_0x597129(0xbf)]();})),_0x549556[_0x5b5197(0xe1)](this['_commandService']['onCommandExecuted'](_0x23990f=>{var _0x4d50a1=_0x5b5197,_0x1eb1d8;if(_0x23990f[_0x4d50a1(0x11e)]!==_0x4419b1[_0x4d50a1(0x113)]||!this[_0x4d50a1(0x16e)]['shouldShareOperation'](_0x23990f['id']))return;const {id:_0x5661a4}=_0x23990f;let _0x10243f;_0x180553[_0x4d50a1(0x15a)](_0x5661a4)?_0x10243f=_0x180553[_0x4d50a1(0x100)](_0x5661a4):(_0x10243f=new _0x4fa684(),_0x180553[_0x4d50a1(0xbd)](_0x5661a4,_0x10243f),_0x10243f['pipe'](_0x3ce606((_0x1eb1d8=this[_0x4d50a1(0x15c)][_0x4d50a1(0x127)](Pe))!=null?_0x1eb1d8:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x358c4c=>{var _0x2bc7cf=_0x4d50a1;this['_collabSession']['send']({'eventID':_0x48bc07[_0x2bc7cf(0x122)],'data':{'unitID':this[_0x2bc7cf(0x12a)],'operations':{[_0x358c4c['id']]:{'id':_0x358c4c['id'],'params':JSON[_0x2bc7cf(0xe5)](_0x358c4c[_0x2bc7cf(0x16b)])}}}},this[_0x2bc7cf(0x12a)]);})),_0x10243f['next'](_0x23990f);})),this[_0x5b5197(0x16e)][_0x5b5197(0x14c)](this[_0x5b5197(0x12a)])['forEach'](_0x42589f=>this[_0x5b5197(0xc2)][_0x5b5197(0xcd)]({'eventID':_0x48bc07['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5b5197(0x12a)],'operations':{[_0x42589f['id']]:{'id':_0x42589f['id'],'params':JSON[_0x5b5197(0xe5)](_0x42589f[_0x5b5197(0x16b)])}}}},this[_0x5b5197(0x12a)]));}[_0x485ed8(0x125)](){var _0x1c0a50=_0x485ed8,_0x5e065f;this[_0x1c0a50(0xc5)]['next']('idle'),(_0x5e065f=this[_0x1c0a50(0x128)])==null||_0x5e065f['dispose'](),this[_0x1c0a50(0x128)]=null;}[_0x485ed8(0x14d)](){var _0x508503=_0x485ed8,_0x248763;(_0x248763=this[_0x508503(0x128)])==null||_0x248763[_0x508503(0x132)](),this['_status$'][_0x508503(0x154)]('following');}[_0x485ed8(0xf6)](){var _0x2a6ff3=_0x485ed8,_0x5bc019;this['_status$'][_0x2a6ff3(0x154)](_0x2a6ff3(0xed)),(_0x5bc019=this[_0x2a6ff3(0x128)])==null||_0x5bc019[_0x2a6ff3(0x132)](),this[_0x2a6ff3(0x128)]=null;}[_0x485ed8(0x13c)](){var _0x5c7a5e=_0x485ed8,_0x328ab0;this['_status$'][_0x5c7a5e(0x154)]('not-following'),(_0x328ab0=this[_0x5c7a5e(0x128)])==null||_0x328ab0['dispose']();}[_0x485ed8(0xf5)](_0x4213e2){var _0x39fe11=_0x485ed8;if(['presenting',_0x39fe11(0x130),_0x39fe11(0xc4)][_0x39fe11(0x147)](this[_0x39fe11(0x123)])||!_0x4213e2[_0x39fe11(0xe9)][_0x39fe11(0xe6)]||_0x4213e2['data'][_0x39fe11(0xe6)]===this['_collabSession'][_0x39fe11(0x111)]())return;this[_0x39fe11(0x123)]===_0x39fe11(0xed)&&this['_startFollowing']();const _0x36cd2c=_0x4213e2['data'][_0x39fe11(0x12c)];Object['values'](_0x36cd2c)['forEach'](_0x131b9d=>{var _0x5acb19=_0x39fe11;this[_0x5acb19(0x12d)][_0x5acb19(0x10a)](_0x131b9d['id'],_0x131b9d[_0x5acb19(0x16b)]?JSON[_0x5acb19(0x11c)](_0x131b9d[_0x5acb19(0x16b)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0xd0aff5=_0x485ed8,_0x4d8edd;this['_status$'][_0xd0aff5(0x154)](_0xd0aff5(0xc4)),(_0x4d8edd=this[_0xd0aff5(0x128)])==null||_0x4d8edd[_0xd0aff5(0x132)]();}[_0x485ed8(0x134)](){var _0x464ac6=_0x485ed8;this[_0x464ac6(0xc5)][_0x464ac6(0x154)](_0x464ac6(0xed)),this['_fetchOperations']();}};C=Z([f(0x2,_0x2473bb),f(0x3,_0x56ae44(L)),f(0x4,_0x20dcab)],C);function Te(){var _0x9208a5=_0x485ed8;const _0x4ee724=_0x503ec0(I),_0x81c92a=_0x503ec0(_0x2faaa5),_0x5b552b=_0x3d7e06(()=>_0x81c92a[_0x9208a5(0xf2)](_0x5706ae[_0x9208a5(0xf9)]),void 0x0,!0x1,[]),[_0xe660fc,_0x566904]=_0x236131(null),[_0x2c38f0,_0x2d9051]=_0x236131(h[_0x9208a5(0xfc)]),_0x460567=_0x50377a(null);return _0x45d8fa(()=>(_0x5b552b&&_0x4ee724['getLiveShareCoordinator'](_0x5b552b['getUnitId']())[_0x9208a5(0xd3)](_0x1f4aa9=>{var _0x2f6bb5=_0x9208a5;_0x566904(_0x1f4aa9),_0x460567['current']=_0x1f4aa9[_0x2f6bb5(0x161)][_0x2f6bb5(0x15d)](_0x231420=>{_0x2d9051(_0x231420);});}),()=>{var _0xec080e=_0x9208a5,_0xb80703;(_0xb80703=_0x460567[_0xec080e(0xd0)])==null||_0xb80703[_0xec080e(0x12f)](),_0x460567[_0xec080e(0xd0)]=null;}),[_0x5b552b,_0x4ee724]),_0xe660fc?_0x458b0b(_0x6c2787,{'align':_0x9208a5(0x108),'disabled':_0x2c38f0===h[_0x9208a5(0x115)],'className':_0x9208a5(0x143),'overlay':_0x458b0b($e,{'status':_0x2c38f0,'coordinator':_0xe660fc}),'children':_0x458b0b('button',{'className':_0x3c8900(_0x9208a5(0xdd),{'univer-cursor-not-allowed':_0x2c38f0===h[_0x9208a5(0x115)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2c38f0!==h[_0x9208a5(0x115)]}),'type':_0x9208a5(0xdf),'children':_0x458b0b(B,{'className':'univer-size-4'})})}):null;}function $e(_0x2f2cc8){var _0x31c2e2=_0x485ed8;const {status:_0x1b2277,coordinator:_0x174f9a}=_0x2f2cc8;switch(_0x1b2277){case h['IDLE']:return _0x458b0b(Fe,{'coordinator':_0x174f9a});case h[_0x31c2e2(0xc8)]:return _0x458b0b(He,{'coordinator':_0x174f9a});case h[_0x31c2e2(0x10e)]:return _0x458b0b(je,{'coordinator':_0x174f9a});case h[_0x31c2e2(0x115)]:return _0x458b0b(Ve,{});case h['PRESENTING']:return _0x458b0b(Ue,{'coordinator':_0x174f9a});default:return null;}}function Fe(_0x4dd185){var _0x552727=_0x485ed8;const {coordinator:_0x57fc42}=_0x4dd185;return _0x257512(_0x2d7bfa,{'children':[_0x458b0b(_0x552727(0x152),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x552727(0x157)}),_0x458b0b(_0x721d66,{'onClick':()=>_0x57fc42[_0x552727(0xe8)](),'children':_0x552727(0x16c)})]});}function He(_0x4bae8d){var _0x1b1902=_0x485ed8;const {coordinator:_0x33701c}=_0x4bae8d;return _0x257512(_0x2d7bfa,{'children':[_0x458b0b('div',{'className':_0x1b1902(0x11f),'children':_0x1b1902(0x168)}),_0x458b0b(_0x721d66,{'onClick':()=>_0x33701c[_0x1b1902(0x163)](),'children':_0x1b1902(0x136)})]});}function je(_0x8ae7d0){var _0x50aa52=_0x485ed8;const {coordinator:_0x267680}=_0x8ae7d0;return _0x257512(_0x2d7bfa,{'children':[_0x458b0b(_0x50aa52(0x152),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x50aa52(0x140)}),_0x458b0b(_0x721d66,{'variant':'text','onClick':()=>_0x267680[_0x50aa52(0x12e)](),'children':_0x50aa52(0xc6)})]});}function Ue(_0x26e64c){var _0x19bd6f=_0x485ed8;const {coordinator:_0x53e6c2}=_0x26e64c;return _0x257512(_0x2d7bfa,{'children':[_0x458b0b('div',{'className':_0x19bd6f(0x11f),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x458b0b(_0x721d66,{'variant':_0x19bd6f(0x124),'onClick':()=>_0x53e6c2[_0x19bd6f(0x158)](),'children':_0x19bd6f(0x121)})]});}function Ve(){return _0x458b0b(_0x2d7bfa,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x485ed8(0x103)],ke=(_0x5846a8,_0x3ed8fb,_0x29e61b,_0x53d270)=>{for(var _0x4f7a02=_0x53d270>0x1?void 0x0:_0x53d270?Me(_0x3ed8fb,_0x29e61b):_0x3ed8fb,_0x3ea115=_0x5846a8['length']-0x1,_0x2c5dfd;_0x3ea115>=0x0;_0x3ea115--)(_0x2c5dfd=_0x5846a8[_0x3ea115])&&(_0x4f7a02=_0x2c5dfd(_0x4f7a02)||_0x4f7a02);return _0x4f7a02;},$=(_0x4da3ee,_0x288593)=>(_0x59c5b3,_0x4ece4f)=>_0x288593(_0x59c5b3,_0x4ece4f,_0x4da3ee);let b=class extends _0x3c0c36{constructor(_0x28aed4,_0x36f0d8){var _0x19e61a=_0x485ed8;super(),this[_0x19e61a(0x144)]=_0x28aed4,this[_0x19e61a(0x117)]=_0x36f0d8,this[_0x19e61a(0x137)]();}[_0x485ed8(0x137)](){var _0x43855f=_0x485ed8;this[_0x43855f(0x148)](this['_uiPartsService'][_0x43855f(0x129)](_0x542535['HEADER_MENU'],()=>_0x1d00fc(Te,this[_0x43855f(0x144)])));}};b=ke([$(0x0,_0x56ae44(_0x11b368)),$(0x1,_0x5f5b99)],b);var Ge=Object[_0x485ed8(0xec)],We=Object[_0x485ed8(0x103)],Ye=(_0x56352f,_0x4b0531,_0x32338f)=>_0x4b0531 in _0x56352f?Ge(_0x56352f,_0x4b0531,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32338f}):_0x56352f[_0x4b0531]=_0x32338f,Be=(_0x298b86,_0x5e971d,_0xc26ad8,_0x282d63)=>{var _0x198d8f=_0x485ed8;for(var _0x2a9c3d=_0x282d63>0x1?void 0x0:_0x282d63?We(_0x5e971d,_0xc26ad8):_0x5e971d,_0x5686f6=_0x298b86[_0x198d8f(0xc9)]-0x1,_0x2d4bf9;_0x5686f6>=0x0;_0x5686f6--)(_0x2d4bf9=_0x298b86[_0x5686f6])&&(_0x2a9c3d=_0x2d4bf9(_0x2a9c3d)||_0x2a9c3d);return _0x2a9c3d;},F=(_0x1d2d2f,_0xfd9294)=>(_0x3321e3,_0x52e4ef)=>_0xfd9294(_0x3321e3,_0x52e4ef,_0x1d2d2f),J=(_0x1d5ab7,_0x458d37,_0x5a434f)=>Ye(_0x1d5ab7,typeof _0x458d37!=_0x485ed8(0x151)?_0x458d37+'':_0x458d37,_0x5a434f);const Ze=_0x485ed8(0xf8);let O=class extends _0x11a0e9{constructor(_0x851da8=T,_0x1153d1,_0x1989e6){var _0x2fcb91=_0x485ed8;super(),this[_0x2fcb91(0x135)]=_0x851da8,this['_injector']=_0x1153d1,this[_0x2fcb91(0x15c)]=_0x1989e6;const {..._0x34423a}=_0x4e2ab8({},T,this[_0x2fcb91(0x135)]);this[_0x2fcb91(0x15c)][_0x2fcb91(0x149)](Oe,_0x34423a);}[_0x485ed8(0xdc)](){var _0x35d27b=_0x485ed8;_0xe717aa(this[_0x35d27b(0x144)],_0x1a80dc([[L],[I],[m],[b]],this[_0x35d27b(0x135)]['override'])),_0x5cd586(this[_0x35d27b(0x144)],[[m]]);}[_0x485ed8(0xba)](){_0x5cd586(this['_injector'],[[b]]);}};J(O,_0x485ed8(0x11e),_0x5706ae[_0x485ed8(0x146)]),J(O,_0x485ed8(0xd4),Ze),O=Be([_0xaa01dd(_0x13f08e),F(0x1,_0x56ae44(_0x11b368)),F(0x2,_0x2473bb)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x3eb66f=_0xaf36;(function(_0x24bffa,_0x48a22d){var _0x44bc06=_0xaf36,_0xadd4dc=_0x24bffa();while(!![]){try{var _0x1ea307=parseInt(_0x44bc06(0x118))/0x1*(parseInt(_0x44bc06(0x195))/0x2)+-parseInt(_0x44bc06(0x16c))/0x3+parseInt(_0x44bc06(0x196))/0x4+-parseInt(_0x44bc06(0x14c))/0x5+parseInt(_0x44bc06(0x11f))/0x6+parseInt(_0x44bc06(0x125))/0x7*(-parseInt(_0x44bc06(0x102))/0x8)+parseInt(_0x44bc06(0x185))/0x9;if(_0x1ea307===_0x48a22d)break;else _0xadd4dc['push'](_0xadd4dc['shift']());}catch(_0x2666aa){_0xadd4dc['push'](_0xadd4dc['shift']());}}}(_0x59c0,0xb71bb));var q=Object[_0x3eb66f(0x10a)],z=(_0x59cb9d,_0x39743b,_0xdc1b55)=>_0x39743b in _0x59cb9d?q(_0x59cb9d,_0x39743b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdc1b55}):_0x59cb9d[_0x39743b]=_0xdc1b55,d=(_0xd68d5f,_0x5d7255,_0x134a70)=>z(_0xd68d5f,typeof _0x5d7255!=_0x3eb66f(0x15b)?_0x5d7255+'':_0x5d7255,_0x134a70);import{CollaborationSessionService as _0x1b8367,SessionStatus as _0x39791d,UniverCollaborationClientPlugin as _0x26cab8}from'@univerjs-pro/collaboration-client';import{Disposable as _0x28094d,toDisposable as _0x56fa4e,Inject as _0x3f84a3,IUniverInstanceService as _0x516a71,Injector as _0x15d8b5,IConfigService as _0x314f53,ICommandService as _0x39ff78,RxDisposable as _0x2968d7,UniverInstanceType as _0x58c155,DisposableCollection as _0x22943b,CommandType as _0x50cabc,DependentOn as _0x419c79,Plugin as _0x47a77d,merge as _0x1f5ca3,registerDependencies as _0x1df7a9,mergeOverrideWithDependencies as _0x227802,touchDependencies as _0x4f8b46}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3b7bd5,InsertSheetMutation as _0x2a9f7c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x22565f,SetScrollOperation as _0x1c3c05}from'@univerjs/sheets-ui';import{useDependency as _0x318ee9,useObservable as _0x394850,IUIPartsService as _0x326cbf,BuiltInUIPart as _0x45e07f,connectInjector as _0x67a89}from'@univerjs/ui';import{jsx as _0x317f25,jsxs as _0x387033,Fragment as _0xcbf086}from'react/jsx-runtime';import{Dropdown as _0x11722c,clsx as _0x81ab49,Button as _0x29954b}from'@univerjs/design';import{forwardRef as _0x33acf1,useRef as _0x3891b2,createElement as _0x5c13bc,useState as _0xd7af93,useEffect as _0x59b4f4}from'react';import{CollaborationEvent as _0x40c637,parseProtocolChangeset as _0x4c17bf}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x22c326,Subject as _0x4a1280}from'rxjs';function _0xaf36(_0x509563,_0x237477){var _0x59c0c3=_0x59c0();return _0xaf36=function(_0xaf3622,_0x5241e9){_0xaf3622=_0xaf3622-0x100;var _0x520cd9=_0x59c0c3[_0xaf3622];return _0x520cd9;},_0xaf36(_0x509563,_0x237477);}function _0x59c0(){var _0x40178f=['9165863puziSU','not-following','LIVESHARE_TERMINATE','indexOf','UNIVER_SHEET','path','xlink:href','use','tryStartPresenting','pluginName','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','mask','_status$','_mountLiveShare','function','colorChannel1','FOLLOWING','event$','text','getMemberID','_unitID','hasOwnProperty','getConfig','_handleTerminate','getValue','Start\x20following','status$','_injector','unsubscribe','div','getLiveShareCoordinator','children','getOwnPropertySymbols','LIVESHARE_FETCH_OPERATIONS','icon','toString','OFFLINE','type','You\x27are\x20offline.','3807035vbYxKl','get','_stopFollowing','delete','_univerInstanceService','trim','You\x27re\x20not\x20following\x20the\x20presenter','next','Stop\x20presenting','entries','concat','parse','dispose','registerSharedOperation','_commandDisposable','symbol','map','PRESENTING','_startFollowing','_liveShareService','stopFollowing','getUnitId','_stopPresenting','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','evenodd','UNIVER_UNKNOWN','IDLE','defIds','svg','replace','univer-w-full\x20univer-mb-3\x20univer-text-sm','following','1092006djtKtZ','_fetchOperations','complete','You\x27re\x20following\x20the\x20presenter','_handleOperation','_presenter','dispose$','send','_handleNewHost','sessionStatus$','tag','onStarting','0\x200\x2017\x2017','_reporters','displayName','getTypeOfUnitAdded$','asObservable','http://www.w3.org/2000/svg','_startPresenting','getInitialStates','LIVESHARE_OPERATION','shouldShareOperation','subscribe','disposeWithMe','has','2694780ifHsJH','currentColor','operations','_handleOffline','getTypeOfUnitDisposed$','_status','attrs','unitId','NOT_FOLLOWING','idle','live-share.config','univer-size-4','_uiPartsService','registerComponent','assign','className','1892318vsNcDN','4099936nHSwvN','button','presenting','fill','memberID','_init','_entities','_config','registerInitialStateReporter','presenter','createInstance','from','startFollowing','length','stopPresenting','OPERATION','HEADER_MENU','offline','executeCommand','includes','default','string','8MxjwOj','_sharedOperations','url(#$1','_startLiveShareCoordinator','requireSession','params','UNIVER_LIVE_SHARE_PLUGIN','_commandService','defineProperty','_handleOnline','call','set','data','Start','random','univerjs-icon\x20univerjs-icon-','_handleNewChangeSets','setConfig','_collabSession','forEach','idSuffix','getOwnPropertyDescriptor','1ruDppF','stringify','init','_configService','pipe','add','1em','5485596ykxVvK','prototype','_collabSessionService','defs','current','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white'];_0x59c0=function(){return _0x40178f;};return _0x59c0();}import{takeUntil as _0x64489,throttleTime as _0x1cb448}from'rxjs/operators';const Oe=_0x3eb66f(0x18f),T={};class L extends _0x28094d{constructor(){var _0x2460f1=_0x3eb66f;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x2460f1(0x179),new Set());}[_0x3eb66f(0x159)](_0x465716){var _0xffa05f=_0x3eb66f;return this[_0xffa05f(0x103)][_0xffa05f(0x11d)](_0x465716),_0x56fa4e(()=>this[_0xffa05f(0x103)][_0xffa05f(0x14f)](_0x465716));}[_0x3eb66f(0x19e)](_0xe08eaa){var _0x5d5a16=_0x3eb66f;return this[_0x5d5a16(0x179)][_0x5d5a16(0x11d)](_0xe08eaa),_0x56fa4e(()=>this['_reporters'][_0x5d5a16(0x14f)](_0xe08eaa));}[_0x3eb66f(0x181)](_0x3640ae){var _0x44c344=_0x3eb66f;return this[_0x44c344(0x103)]['has'](_0x3640ae);}[_0x3eb66f(0x17f)](_0x130761){var _0x40ab2f=_0x3eb66f;return Array[_0x40ab2f(0x1a1)](this[_0x40ab2f(0x179)])[_0x40ab2f(0x15c)](_0x14bbfb=>_0x14bbfb(_0x130761));}}var Ee=Object[_0x3eb66f(0x117)],we=(_0x547a73,_0x4abe3f,_0x24a2f9,_0x20d92a)=>{var _0x126fbd=_0x3eb66f;for(var _0x566479=_0x20d92a>0x1?void 0x0:_0x20d92a?Ee(_0x4abe3f,_0x24a2f9):_0x4abe3f,_0x132d91=_0x547a73[_0x126fbd(0x1a3)]-0x1,_0x17fc56;_0x132d91>=0x0;_0x132d91--)(_0x17fc56=_0x547a73[_0x132d91])&&(_0x566479=_0x17fc56(_0x566479)||_0x566479);return _0x566479;},Ne=(_0x44562a,_0x59caee)=>(_0x37ca82,_0x13bee0)=>_0x59caee(_0x37ca82,_0x13bee0,_0x44562a);let m=class extends _0x28094d{constructor(_0x5ad8d4){var _0x331d83=_0x3eb66f;super(),this[_0x331d83(0x15f)]=_0x5ad8d4,this[_0x331d83(0x19b)]();}['_init'](){var _0x10c4bc=_0x3eb66f;[_0x22565f['id'],_0x1c3c05['id'],_0x3b7bd5['id']][_0x10c4bc(0x115)](_0x3b68c5=>{var _0x138e3b=_0x10c4bc;this[_0x138e3b(0x183)](this['_liveShareService'][_0x138e3b(0x159)](_0x3b68c5));});}};m=we([Ne(0x0,_0x3f84a3(L))],m);var c=function(){var _0x264bf1=_0x3eb66f;return c=Object[_0x264bf1(0x193)]||function(_0x1729ff){var _0x4dfda6=_0x264bf1;for(var _0x36d04a,_0x34fa1b=0x1,_0x82953b=arguments[_0x4dfda6(0x1a3)];_0x34fa1b<_0x82953b;_0x34fa1b++){_0x36d04a=arguments[_0x34fa1b];for(var _0x93544f in _0x36d04a)Object[_0x4dfda6(0x120)][_0x4dfda6(0x13a)][_0x4dfda6(0x10c)](_0x36d04a,_0x93544f)&&(_0x1729ff[_0x93544f]=_0x36d04a[_0x93544f]);}return _0x1729ff;},c['apply'](this,arguments);},Ce=function(_0x45a122,_0x493b35){var _0x11f1e8=_0x3eb66f,_0x5ca805={};for(var _0x1ae2a4 in _0x45a122)Object['prototype'][_0x11f1e8(0x13a)][_0x11f1e8(0x10c)](_0x45a122,_0x1ae2a4)&&_0x493b35[_0x11f1e8(0x128)](_0x1ae2a4)<0x0&&(_0x5ca805[_0x1ae2a4]=_0x45a122[_0x1ae2a4]);if(_0x45a122!=null&&typeof Object[_0x11f1e8(0x145)]==_0x11f1e8(0x133)){for(var _0xb1b3a1=0x0,_0x1ae2a4=Object['getOwnPropertySymbols'](_0x45a122);_0xb1b3a1<_0x1ae2a4[_0x11f1e8(0x1a3)];_0xb1b3a1++)_0x493b35[_0x11f1e8(0x128)](_0x1ae2a4[_0xb1b3a1])<0x0&&Object[_0x11f1e8(0x120)]['propertyIsEnumerable'][_0x11f1e8(0x10c)](_0x45a122,_0x1ae2a4[_0xb1b3a1])&&(_0x5ca805[_0x1ae2a4[_0xb1b3a1]]=_0x45a122[_0x1ae2a4[_0xb1b3a1]]);}return _0x5ca805;},W=_0x33acf1(function(_0x4ebfab,_0x4cd491){var _0x4a0548=_0x3eb66f,_0x110929=_0x4ebfab['icon'],_0x116ffe=_0x4ebfab['id'],_0x22281a=_0x4ebfab['className'],_0x23edd6=_0x4ebfab['extend'],_0x379481=Ce(_0x4ebfab,[_0x4a0548(0x147),'id',_0x4a0548(0x194),'extend']),_0x3c434a=_0x4a0548(0x111)[_0x4a0548(0x156)](_0x116ffe,'\x20')[_0x4a0548(0x156)](_0x22281a||'')[_0x4a0548(0x151)](),_0x293f41=_0x3891b2('_'[_0x4a0548(0x156)](Le()));return Y(_0x110929,''[_0x4a0548(0x156)](_0x116ffe),{'defIds':_0x110929[_0x4a0548(0x167)],'idSuffix':_0x293f41[_0x4a0548(0x123)]},c({'ref':_0x4cd491,'className':_0x3c434a},_0x379481),_0x23edd6);});function Y(_0x561962,_0x416939,_0x5b956a,_0x38f1d3,_0x270928){var _0x3a3dee=_0x3eb66f;return _0x5c13bc(_0x561962['tag'],c(c({'key':_0x416939},De(_0x561962,_0x5b956a,_0x270928)),_0x38f1d3),(xe(_0x561962,_0x5b956a)[_0x3a3dee(0x144)]||[])['map'](function(_0x5d28b7,_0x13d91d){var _0x460642=_0x3a3dee;return Y(_0x5d28b7,''[_0x460642(0x156)](_0x416939,'-')[_0x460642(0x156)](_0x561962[_0x460642(0x176)],'-')[_0x460642(0x156)](_0x13d91d),_0x5b956a,void 0x0,_0x270928);}));}function De(_0x18d6f1,_0x2806a0,_0x162d92){var _0x149b4b=_0x3eb66f,_0x2dcbad=c({},_0x18d6f1[_0x149b4b(0x18b)]);_0x162d92!=null&&_0x162d92[_0x149b4b(0x134)]&&_0x2dcbad[_0x149b4b(0x199)]==='colorChannel1'&&(_0x2dcbad[_0x149b4b(0x199)]=_0x162d92[_0x149b4b(0x134)]),_0x18d6f1[_0x149b4b(0x176)]==='mask'&&_0x2dcbad['id']&&(_0x2dcbad['id']=_0x2dcbad['id']+_0x2806a0[_0x149b4b(0x116)]),Object[_0x149b4b(0x155)](_0x2dcbad)[_0x149b4b(0x115)](function(_0x53c51a){var _0x29834c=_0x149b4b,_0x208bcf=_0x53c51a[0x0],_0x9fe15c=_0x53c51a[0x1];_0x208bcf===_0x29834c(0x130)&&typeof _0x9fe15c==_0x29834c(0x101)&&(_0x2dcbad[_0x208bcf]=_0x9fe15c[_0x29834c(0x169)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2806a0[_0x29834c(0x116)],')')));});var _0x5ca4b2=_0x2806a0['defIds'];return!_0x5ca4b2||_0x5ca4b2[_0x149b4b(0x1a3)]===0x0||(_0x18d6f1[_0x149b4b(0x176)]===_0x149b4b(0x12c)&&_0x2dcbad[_0x149b4b(0x12b)]&&(_0x2dcbad[_0x149b4b(0x12b)]=_0x2dcbad[_0x149b4b(0x12b)]+_0x2806a0['idSuffix']),Object[_0x149b4b(0x155)](_0x2dcbad)[_0x149b4b(0x115)](function(_0x54a16b){var _0x70d968=_0x149b4b,_0x39beda=_0x54a16b[0x0],_0x16a7f2=_0x54a16b[0x1];typeof _0x16a7f2==_0x70d968(0x101)&&(_0x2dcbad[_0x39beda]=_0x16a7f2[_0x70d968(0x169)](/url\(#(.*)\)/,_0x70d968(0x104)['concat'](_0x2806a0[_0x70d968(0x116)],')')));})),_0x2dcbad;}function xe(_0x34c4d2,_0x13d914){var _0x5e7632=_0x3eb66f,_0x1b3355,_0x472dc8=_0x13d914[_0x5e7632(0x167)];return!_0x472dc8||_0x472dc8['length']===0x0?_0x34c4d2:_0x34c4d2[_0x5e7632(0x176)]===_0x5e7632(0x122)&&(!((_0x1b3355=_0x34c4d2[_0x5e7632(0x144)])===null||_0x1b3355===void 0x0)&&_0x1b3355[_0x5e7632(0x1a3)])?c(c({},_0x34c4d2),{'children':_0x34c4d2[_0x5e7632(0x144)][_0x5e7632(0x15c)](function(_0x3b9116){var _0x200a7a=_0x5e7632;return typeof _0x3b9116[_0x200a7a(0x18b)]['id']=='string'&&_0x472dc8&&_0x472dc8[_0x200a7a(0x1a9)](_0x3b9116[_0x200a7a(0x18b)]['id'])?c(c({},_0x3b9116),{'attrs':c(c({},_0x3b9116[_0x200a7a(0x18b)]),{'id':_0x3b9116[_0x200a7a(0x18b)]['id']+_0x13d914[_0x200a7a(0x116)]})}):_0x3b9116;})}):_0x34c4d2;}function Le(){var _0x2323be=_0x3eb66f;return Math[_0x2323be(0x110)]()[_0x2323be(0x148)](0x24)['substring'](0x2,0x8);}W[_0x3eb66f(0x17a)]='UniverIcon';var ye={'tag':_0x3eb66f(0x168),'attrs':{'xmlns':_0x3eb66f(0x17d),'fill':'none','viewBox':_0x3eb66f(0x178),'width':_0x3eb66f(0x11e),'height':'1em'},'children':[{'tag':_0x3eb66f(0x12a),'attrs':{'fill':_0x3eb66f(0x186),'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':'path','attrs':{'fill':_0x3eb66f(0x186),'d':_0x3eb66f(0x12f),'fillRule':_0x3eb66f(0x164),'clipRule':'evenodd'}}]},B=_0x33acf1(function(_0x1b4209,_0x447a32){return _0x5c13bc(W,Object['assign']({},_0x1b4209,{'id':'live-share-icon','ref':_0x447a32,'icon':ye}));});B[_0x3eb66f(0x17a)]='LiveShareIcon';var Re=Object[_0x3eb66f(0x117)],Z=(_0xa5b805,_0x216d71,_0x28e6ff,_0x58feb7)=>{var _0x80a609=_0x3eb66f;for(var _0x1fada2=_0x58feb7>0x1?void 0x0:_0x58feb7?Re(_0x216d71,_0x28e6ff):_0x216d71,_0x304dd2=_0xa5b805[_0x80a609(0x1a3)]-0x1,_0x14e103;_0x304dd2>=0x0;_0x304dd2--)(_0x14e103=_0xa5b805[_0x304dd2])&&(_0x1fada2=_0x14e103(_0x1fada2)||_0x1fada2);return _0x1fada2;},f=(_0x2e5c93,_0x4eaa7)=>(_0x3b602f,_0x474e19)=>_0x4eaa7(_0x3b602f,_0x474e19,_0x2e5c93);let I=class extends _0x2968d7{constructor(_0x191f88,_0x980a71,_0x160263){var _0x43201a=_0x3eb66f;super(),d(this,_0x43201a(0x19c),new Map()),(this[_0x43201a(0x150)]=_0x191f88,this['_injector']=_0x980a71,this[_0x43201a(0x121)]=_0x160263,this[_0x43201a(0x19b)]());}async['getLiveShareCoordinator'](_0x644c2b){var _0x1dfabd=_0x3eb66f;return this[_0x1dfabd(0x19c)][_0x1dfabd(0x184)](_0x644c2b)||await this[_0x1dfabd(0x105)](_0x644c2b),this[_0x1dfabd(0x19c)][_0x1dfabd(0x14d)](_0x644c2b);}['_init'](){var _0x2e9506=_0x3eb66f;this[_0x2e9506(0x150)][_0x2e9506(0x17b)](_0x58c155[_0x2e9506(0x129)])[_0x2e9506(0x11c)](_0x64489(this[_0x2e9506(0x172)]))[_0x2e9506(0x182)](async _0x425593=>{var _0x4945d4=_0x2e9506;const _0x1d9035=_0x425593[_0x4945d4(0x161)]();this['_entities'][_0x4945d4(0x184)](_0x1d9035)||this[_0x4945d4(0x105)](_0x1d9035);}),this[_0x2e9506(0x150)][_0x2e9506(0x189)](_0x58c155[_0x2e9506(0x129)])[_0x2e9506(0x11c)](_0x64489(this['dispose$']))[_0x2e9506(0x182)](_0x515a74=>{var _0x4a7a1c=_0x2e9506;const _0x26e7f1=_0x515a74[_0x4a7a1c(0x161)](),_0x1dc535=this['_entities']['get'](_0x26e7f1);_0x1dc535==null||_0x1dc535['dispose']();});}async[_0x3eb66f(0x105)](_0x37258e){var _0x2d09bf=_0x3eb66f;const _0x53f0ba=await this[_0x2d09bf(0x121)][_0x2d09bf(0x106)](_0x37258e),_0x287bf8=this[_0x2d09bf(0x140)][_0x2d09bf(0x1a0)](C,_0x37258e,_0x53f0ba);return _0x287bf8[_0x2d09bf(0x11a)](),this['_entities'][_0x2d09bf(0x10d)](_0x37258e,_0x287bf8),_0x287bf8;}};I=Z([f(0x0,_0x516a71),f(0x1,_0x3f84a3(_0x15d8b5)),f(0x2,_0x3f84a3(_0x1b8367))],I);var h=(_0x5cd094=>(_0x5cd094[_0x3eb66f(0x149)]=_0x3eb66f(0x1a7),_0x5cd094[_0x3eb66f(0x166)]='idle',_0x5cd094[_0x3eb66f(0x135)]=_0x3eb66f(0x16b),_0x5cd094[_0x3eb66f(0x18d)]=_0x3eb66f(0x126),_0x5cd094[_0x3eb66f(0x15d)]=_0x3eb66f(0x198),_0x5cd094))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x2968d7{constructor(_0x2835e7,_0x597389,_0x1ad216,_0x42f58a,_0x30b660){var _0x4637f6=_0x3eb66f;super(),d(this,_0x4637f6(0x131),new _0x22c326(_0x4637f6(0x18e))),d(this,'status$',this[_0x4637f6(0x131)][_0x4637f6(0x17c)]()),d(this,'_init',!0x1),d(this,_0x4637f6(0x15a),null),d(this,_0x4637f6(0x171),null),(this[_0x4637f6(0x139)]=_0x2835e7,this[_0x4637f6(0x114)]=_0x597389,this[_0x4637f6(0x11b)]=_0x1ad216,this[_0x4637f6(0x15f)]=_0x42f58a,this[_0x4637f6(0x109)]=_0x30b660);}get[_0x3eb66f(0x18a)](){var _0x6a0a02=_0x3eb66f;return this[_0x6a0a02(0x131)][_0x6a0a02(0x13d)]();}[_0x3eb66f(0x158)](){var _0x22eac7=_0x3eb66f,_0x3e9a4e;(_0x3e9a4e=this[_0x22eac7(0x15a)])==null||_0x3e9a4e[_0x22eac7(0x158)](),this[_0x22eac7(0x131)][_0x22eac7(0x153)](_0x22eac7(0x18e)),this[_0x22eac7(0x131)][_0x22eac7(0x16e)]();}[_0x3eb66f(0x11a)](){var _0x4c977a=_0x3eb66f;this[_0x4c977a(0x19b)]||(this['_init']=!0x0,this[_0x4c977a(0x114)][_0x4c977a(0x175)][_0x4c977a(0x11c)](_0x64489(this['dispose$']))[_0x4c977a(0x182)](_0xf72c5b=>{var _0x17f580=_0x4c977a;switch(_0xf72c5b){case _0x39791d[_0x17f580(0x149)]:this['_handleOffline']();break;case _0x39791d['ONLINE']:this[_0x17f580(0x10b)]();break;}}),this[_0x4c977a(0x114)][_0x4c977a(0x136)]['pipe'](_0x64489(this['dispose$']))[_0x4c977a(0x182)](_0x4f1338=>{var _0x251f11=_0x4c977a;const {eventID:_0x204de6}=_0x4f1338;switch(_0x204de6){case _0x40c637['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4f1338);break;case _0x40c637[_0x251f11(0x180)]:this[_0x251f11(0x170)](_0x4f1338);break;case _0x40c637['LIVESHARE_TERMINATE']:this[_0x251f11(0x13c)]();break;case _0x40c637['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x4f1338);break;}}));}['tryStartPresenting'](){var _0x1eb66c=_0x3eb66f;this[_0x1eb66c(0x114)]['send']({'eventID':_0x40c637['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1eb66c(0x139)],'userID':this[_0x1eb66c(0x114)][_0x1eb66c(0x138)]()}},this[_0x1eb66c(0x139)]);}[_0x3eb66f(0x1a4)](){var _0x327742=_0x3eb66f;this['_status']===_0x327742(0x198)&&(this[_0x327742(0x131)][_0x327742(0x153)]('idle'),this[_0x327742(0x114)][_0x327742(0x173)]({'eventID':_0x40c637[_0x327742(0x127)],'data':{'unitID':this[_0x327742(0x139)]}},this[_0x327742(0x139)]));}['startFollowing'](){var _0x507ba6=_0x3eb66f;this[_0x507ba6(0x18a)]===_0x507ba6(0x126)&&(this['_status$'][_0x507ba6(0x153)](_0x507ba6(0x16b)),this[_0x507ba6(0x15e)]());}['stopFollowing'](){var _0x3e30d8=_0x3eb66f;this[_0x3e30d8(0x18a)]===_0x3e30d8(0x16b)&&this['_stopFollowing']();}[_0x3eb66f(0x174)](_0x15215b){var _0x46f13e=_0x3eb66f;const {presenter:_0x30af10}=_0x15215b[_0x46f13e(0x10e)],_0x54b30e=this[_0x46f13e(0x114)]['getMemberID']();this[_0x46f13e(0x171)]=_0x30af10,_0x30af10===_0x54b30e?(this['_stopFollowing'](),this[_0x46f13e(0x17e)]()):this[_0x46f13e(0x18a)]!==_0x46f13e(0x126)&&(this[_0x46f13e(0x162)](),this[_0x46f13e(0x15e)]());}[_0x3eb66f(0x16d)](){var _0x5d4bd5=_0x3eb66f;const _0x40c1a6={'eventID':_0x40c637[_0x5d4bd5(0x146)]};this['_collabSession'][_0x5d4bd5(0x173)](_0x40c1a6,this[_0x5d4bd5(0x139)]);}[_0x3eb66f(0x13c)](){var _0x659622=_0x3eb66f;this[_0x659622(0x171)]=null,this[_0x659622(0x18a)]!==_0x659622(0x198)&&this['_beIdle']();}[_0x3eb66f(0x112)](_0x2e1d73){var _0x2280f4=_0x3eb66f;if(this['_status']==='following'&&this[_0x2280f4(0x171)]===_0x2e1d73['data'][_0x2280f4(0x19a)]){const _0x302ee2=_0x4c17bf(_0x2e1d73['data'])['mutations']['reverse']()['find'](_0x20a2d0=>_0x20a2d0['id']===_0x2a9f7c['id']);if(_0x302ee2){const _0x543e43=_0x302ee2[_0x2280f4(0x107)][_0x2280f4(0x18c)],_0x335cc4=_0x302ee2[_0x2280f4(0x107)]['sheet']['id'];setTimeout(()=>{var _0x25ca2b=_0x2280f4;this['_commandService'][_0x25ca2b(0x1a8)](_0x3b7bd5['id'],{'unitId':_0x543e43,'subUnitId':_0x335cc4},{'fromCollab':!0x0});});}}}[_0x3eb66f(0x17e)](){var _0x23010c=_0x3eb66f;this['_status$'][_0x23010c(0x153)](_0x23010c(0x198));const _0x5ceb43=new Map(),_0x3ab671=this[_0x23010c(0x15a)]=new _0x22943b();_0x3ab671[_0x23010c(0x11d)](_0x56fa4e(()=>{var _0x5180d0=_0x23010c;_0x5ceb43['forEach'](_0x122fc5=>_0x122fc5[_0x5180d0(0x16e)]()),_0x5ceb43['clear']();})),_0x3ab671[_0x23010c(0x11d)](this[_0x23010c(0x109)]['onCommandExecuted'](_0x57b028=>{var _0x5c255f=_0x23010c,_0x40a3fa;if(_0x57b028[_0x5c255f(0x14a)]!==_0x50cabc[_0x5c255f(0x1a5)]||!this[_0x5c255f(0x15f)]['shouldShareOperation'](_0x57b028['id']))return;const {id:_0x18c313}=_0x57b028;let _0x3ded07;_0x5ceb43[_0x5c255f(0x184)](_0x18c313)?_0x3ded07=_0x5ceb43['get'](_0x18c313):(_0x3ded07=new _0x4a1280(),_0x5ceb43['set'](_0x18c313,_0x3ded07),_0x3ded07['pipe'](_0x1cb448((_0x40a3fa=this[_0x5c255f(0x11b)][_0x5c255f(0x13b)](Pe))!=null?_0x40a3fa:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5c255f(0x182)](_0x4165a6=>{var _0x3fe6d5=_0x5c255f;this[_0x3fe6d5(0x114)]['send']({'eventID':_0x40c637['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4165a6['id']]:{'id':_0x4165a6['id'],'params':JSON[_0x3fe6d5(0x119)](_0x4165a6[_0x3fe6d5(0x107)])}}}},this['_unitID']);})),_0x3ded07[_0x5c255f(0x153)](_0x57b028);})),this[_0x23010c(0x15f)][_0x23010c(0x17f)](this[_0x23010c(0x139)])[_0x23010c(0x115)](_0x16de63=>this[_0x23010c(0x114)]['send']({'eventID':_0x40c637[_0x23010c(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x16de63['id']]:{'id':_0x16de63['id'],'params':JSON[_0x23010c(0x119)](_0x16de63[_0x23010c(0x107)])}}}},this[_0x23010c(0x139)]));}[_0x3eb66f(0x162)](){var _0x130467=_0x3eb66f,_0x54fd2e;this[_0x130467(0x131)]['next'](_0x130467(0x18e)),(_0x54fd2e=this[_0x130467(0x15a)])==null||_0x54fd2e[_0x130467(0x158)](),this['_commandDisposable']=null;}[_0x3eb66f(0x15e)](){var _0x510ac4=_0x3eb66f,_0x55a288;(_0x55a288=this[_0x510ac4(0x15a)])==null||_0x55a288[_0x510ac4(0x158)](),this['_status$']['next'](_0x510ac4(0x16b));}['_beIdle'](){var _0x2218a8=_0x3eb66f,_0x22ce86;this[_0x2218a8(0x131)][_0x2218a8(0x153)](_0x2218a8(0x18e)),(_0x22ce86=this['_commandDisposable'])==null||_0x22ce86[_0x2218a8(0x158)](),this['_commandDisposable']=null;}[_0x3eb66f(0x14e)](){var _0x535976=_0x3eb66f,_0x2c0dde;this['_status$'][_0x535976(0x153)](_0x535976(0x126)),(_0x2c0dde=this['_commandDisposable'])==null||_0x2c0dde['dispose']();}[_0x3eb66f(0x170)](_0x24f7c7){var _0x15c87a=_0x3eb66f;if([_0x15c87a(0x198),_0x15c87a(0x126),_0x15c87a(0x1a7)][_0x15c87a(0x1a9)](this[_0x15c87a(0x18a)])||!_0x24f7c7['data']['presenter']||_0x24f7c7[_0x15c87a(0x10e)][_0x15c87a(0x19f)]===this['_collabSession'][_0x15c87a(0x138)]())return;this[_0x15c87a(0x18a)]===_0x15c87a(0x18e)&&this['_startFollowing']();const _0x2f485e=_0x24f7c7[_0x15c87a(0x10e)][_0x15c87a(0x187)];Object['values'](_0x2f485e)[_0x15c87a(0x115)](_0x158936=>{var _0x512fb5=_0x15c87a;this['_commandService'][_0x512fb5(0x1a8)](_0x158936['id'],_0x158936[_0x512fb5(0x107)]?JSON[_0x512fb5(0x157)](_0x158936[_0x512fb5(0x107)]):null,{'fromCollab':!0x0});});}[_0x3eb66f(0x188)](){var _0x3a44e5=_0x3eb66f,_0x574c0c;this['_status$']['next'](_0x3a44e5(0x1a7)),(_0x574c0c=this['_commandDisposable'])==null||_0x574c0c[_0x3a44e5(0x158)]();}['_handleOnline'](){var _0x2d947d=_0x3eb66f;this[_0x2d947d(0x131)][_0x2d947d(0x153)](_0x2d947d(0x18e)),this[_0x2d947d(0x16d)]();}};C=Z([f(0x2,_0x314f53),f(0x3,_0x3f84a3(L)),f(0x4,_0x39ff78)],C);function Te(){var _0x41b232=_0x3eb66f;const _0x206bc3=_0x318ee9(I),_0x3cb97e=_0x318ee9(_0x516a71),_0x2713e6=_0x394850(()=>_0x3cb97e['getCurrentTypeOfUnit$'](_0x58c155[_0x41b232(0x129)]),void 0x0,!0x1,[]),[_0x21c736,_0x2b34db]=_0xd7af93(null),[_0x13b350,_0x3b5c0d]=_0xd7af93(h[_0x41b232(0x166)]),_0x2731f4=_0x3891b2(null);return _0x59b4f4(()=>(_0x2713e6&&_0x206bc3[_0x41b232(0x143)](_0x2713e6['getUnitId']())['then'](_0x3e4914=>{var _0x5f29cb=_0x41b232;_0x2b34db(_0x3e4914),_0x2731f4['current']=_0x3e4914[_0x5f29cb(0x13f)][_0x5f29cb(0x182)](_0x471ea4=>{_0x3b5c0d(_0x471ea4);});}),()=>{var _0x9e0507=_0x41b232,_0x45d08a;(_0x45d08a=_0x2731f4[_0x9e0507(0x123)])==null||_0x45d08a[_0x9e0507(0x141)](),_0x2731f4['current']=null;}),[_0x2713e6,_0x206bc3]),_0x21c736?_0x317f25(_0x11722c,{'align':'end','disabled':_0x13b350===h[_0x41b232(0x149)],'className':_0x41b232(0x124),'overlay':_0x317f25($e,{'status':_0x13b350,'coordinator':_0x21c736}),'children':_0x317f25(_0x41b232(0x197),{'className':_0x81ab49(_0x41b232(0x163),{'univer-cursor-not-allowed':_0x13b350===h[_0x41b232(0x149)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x13b350!==h[_0x41b232(0x149)]}),'type':_0x41b232(0x197),'children':_0x317f25(B,{'className':_0x41b232(0x190)})})}):null;}function $e(_0x4fd75a){var _0x3b8523=_0x3eb66f;const {status:_0x26b86d,coordinator:_0x49d2df}=_0x4fd75a;switch(_0x26b86d){case h[_0x3b8523(0x166)]:return _0x317f25(Fe,{'coordinator':_0x49d2df});case h[_0x3b8523(0x135)]:return _0x317f25(He,{'coordinator':_0x49d2df});case h[_0x3b8523(0x18d)]:return _0x317f25(je,{'coordinator':_0x49d2df});case h[_0x3b8523(0x149)]:return _0x317f25(Ve,{});case h[_0x3b8523(0x15d)]:return _0x317f25(Ue,{'coordinator':_0x49d2df});default:return null;}}function Fe(_0x499b26){var _0x2d2586=_0x3eb66f;const {coordinator:_0x1df800}=_0x499b26;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x2d2586(0x142),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x317f25(_0x29954b,{'onClick':()=>_0x1df800[_0x2d2586(0x12d)](),'children':_0x2d2586(0x10f)})]});}function He(_0x553cbf){var _0x305378=_0x3eb66f;const {coordinator:_0x45933c}=_0x553cbf;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x305378(0x142),{'className':_0x305378(0x16a),'children':_0x305378(0x16f)}),_0x317f25(_0x29954b,{'onClick':()=>_0x45933c[_0x305378(0x160)](),'children':'Stop\x20following'})]});}function je(_0x59c570){var _0x130793=_0x3eb66f;const {coordinator:_0x535713}=_0x59c570;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x130793(0x142),{'className':_0x130793(0x16a),'children':_0x130793(0x152)}),_0x317f25(_0x29954b,{'variant':_0x130793(0x137),'onClick':()=>_0x535713[_0x130793(0x1a2)](),'children':_0x130793(0x13e)})]});}function Ue(_0x227770){var _0xe31be0=_0x3eb66f;const {coordinator:_0x4c0903}=_0x227770;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0xe31be0(0x142),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x317f25(_0x29954b,{'variant':_0xe31be0(0x100),'onClick':()=>_0x4c0903[_0xe31be0(0x1a4)](),'children':_0xe31be0(0x154)})]});}function Ve(){var _0x2d4639=_0x3eb66f;return _0x317f25(_0xcbf086,{'children':_0x2d4639(0x14b)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x176aab,_0x3e99de,_0x438bba,_0x303e97)=>{for(var _0x466db5=_0x303e97>0x1?void 0x0:_0x303e97?Me(_0x3e99de,_0x438bba):_0x3e99de,_0x37da53=_0x176aab['length']-0x1,_0x363d41;_0x37da53>=0x0;_0x37da53--)(_0x363d41=_0x176aab[_0x37da53])&&(_0x466db5=_0x363d41(_0x466db5)||_0x466db5);return _0x466db5;},$=(_0x52b8fc,_0x5b6691)=>(_0x59eb1f,_0x3d9047)=>_0x5b6691(_0x59eb1f,_0x3d9047,_0x52b8fc);let b=class extends _0x28094d{constructor(_0x1ed1ff,_0x40625d){var _0x8f0c25=_0x3eb66f;super(),this[_0x8f0c25(0x140)]=_0x1ed1ff,this[_0x8f0c25(0x191)]=_0x40625d,this[_0x8f0c25(0x132)]();}['_mountLiveShare'](){var _0x19c19a=_0x3eb66f;this[_0x19c19a(0x183)](this['_uiPartsService'][_0x19c19a(0x192)](_0x45e07f[_0x19c19a(0x1a6)],()=>_0x67a89(Te,this['_injector'])));}};b=ke([$(0x0,_0x3f84a3(_0x15d8b5)),$(0x1,_0x326cbf)],b);var Ge=Object['defineProperty'],We=Object[_0x3eb66f(0x117)],Ye=(_0x70e9c1,_0x954166,_0x276c9e)=>_0x954166 in _0x70e9c1?Ge(_0x70e9c1,_0x954166,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x276c9e}):_0x70e9c1[_0x954166]=_0x276c9e,Be=(_0x47328e,_0x4cfded,_0x2f2279,_0x30ee14)=>{for(var _0x5a74f6=_0x30ee14>0x1?void 0x0:_0x30ee14?We(_0x4cfded,_0x2f2279):_0x4cfded,_0x4c4c3a=_0x47328e['length']-0x1,_0x1bacac;_0x4c4c3a>=0x0;_0x4c4c3a--)(_0x1bacac=_0x47328e[_0x4c4c3a])&&(_0x5a74f6=_0x1bacac(_0x5a74f6)||_0x5a74f6);return _0x5a74f6;},F=(_0x5e3ec0,_0x2a89c8)=>(_0x45cef5,_0x20c7d8)=>_0x2a89c8(_0x45cef5,_0x20c7d8,_0x5e3ec0),J=(_0x16e971,_0xd9f221,_0x337e01)=>Ye(_0x16e971,typeof _0xd9f221!=_0x3eb66f(0x15b)?_0xd9f221+'':_0xd9f221,_0x337e01);const Ze=_0x3eb66f(0x108);let O=class extends _0x47a77d{constructor(_0x2305ee=T,_0x2250c8,_0x4d146b){var _0x8c5b86=_0x3eb66f;super(),this[_0x8c5b86(0x19d)]=_0x2305ee,this[_0x8c5b86(0x140)]=_0x2250c8,this[_0x8c5b86(0x11b)]=_0x4d146b;const {..._0x96d20d}=_0x1f5ca3({},T,this[_0x8c5b86(0x19d)]);this[_0x8c5b86(0x11b)][_0x8c5b86(0x113)](Oe,_0x96d20d);}[_0x3eb66f(0x177)](){var _0x5f1ff0=_0x3eb66f;_0x1df7a9(this[_0x5f1ff0(0x140)],_0x227802([[L],[I],[m],[b]],this[_0x5f1ff0(0x19d)]['override'])),_0x4f8b46(this[_0x5f1ff0(0x140)],[[m]]);}['onRendered'](){var _0x2d4ecf=_0x3eb66f;_0x4f8b46(this[_0x2d4ecf(0x140)],[[b]]);}};J(O,_0x3eb66f(0x14a),_0x58c155[_0x3eb66f(0x165)]),J(O,_0x3eb66f(0x12e),Ze),O=Be([_0x419c79(_0x26cab8),F(0x1,_0x3f84a3(_0x15d8b5)),F(0x2,_0x314f53)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5899(){var _0x197edf=['use','LiveShareCoordinator','1em','UniverSheetsUi','assign','override','IUniverInstanceService','shouldShareOperation','stopPresenting','idSuffix','useDependency','CollaborationEvent','_beIdle','delete','LiveShareStatus','718311EQzLwy','entries','createElement','_status$','UniverProLiveShare','defineProperty','asObservable','univerjs-icon\x20univerjs-icon-','presenter','_unitID','replace','Start','currentColor','Disposable','You\x27are\x20offline.','NEW_CHANGESETS','url(#$1','apply','UniverProCollaboration','_config','PRESENTING','_handleNewHost','getValue','startFollowing','_uiPartsService','idle','Injector','status$','11FyzJyk','@univerjs-pro/collaboration','_handleTerminate','includes','_commandService','Inject','getOwnPropertyDescriptor','BehaviorSubject','registerInitialStateReporter','5640765UkFZmO','UniverIcon','current','dispose','div','add','stringify','not-following','icon','svg','BuiltInUIPart','3392138iDBpYg','clsx','concat','attrs','Stop\x20presenting','UniverUi','set','default','Start\x20following','touchDependencies','_init','getMemberID','@univerjs/sheets','5187833gfcBNZ','SetScrollOperation','Plugin','clear','presenting','Subject','_status','FOLLOWING','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','4cXhKtY','subscribe','forEach','_startPresenting','Stop\x20following','merge','NOT_FOLLOWING','_collabSession','find','Dropdown','disposeWithMe','_presenter','LIVESHARE_FETCH_OPERATIONS','children','_injector','getTypeOfUnitAdded$','You\x27re\x20presenting\x20the\x20document','text','call','DependentOn','LiveShareIcon','end','values','@univerjs/sheets-ui','tag','mask','Button','_commandDisposable','OFFLINE','_startFollowing','_mountLiveShare','@univerjs-pro/collaboration-client','onRendered','_sharedOperations','LiveShare','defIds','registerComponent','defs','xlink:href','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','LIVESHARE_NEW_HOST','getInitialStates','requireSession','unitId','getLiveShareCoordinator','_reporters','UNIVER_SHEET','rxjs','LIVESHARE_OPERATION','LIVESHARE_REQUEST_HOST','react','jsx','_handleOnline','registerSharedOperation','operations','LIVESHARE_TERMINATE','http://www.w3.org/2000/svg','exports','_handleOperation','following','LiveShareController','complete','button','jsxs','path','SAME_OPERATION_SHARE_INTERVAL','offline','next','data','_handleOffline','takeUntil','params','OPERATION','live-share.config','toDisposable','Present\x20this\x20document','Module','_startLiveShareCoordinator','has','_entities','send','_stopFollowing','forwardRef','memberID','UniverCollaborationClientPlugin','react/jsx-runtime','IConfigService','RxDisposable','pluginName','HEADER_MENU','createInstance','amd','UniverCore','_liveShareService','colorChannel1','4289460CoXJHX','_univerInstanceService','getUnitId','4982512dTgaNx','SetWorksheetActiveOperation','_configService','CollaborationSessionService','LiveShareService','string','init','SessionStatus','fill','type','onCommandExecuted','6qFTbjE','Fragment','UniverInstanceType','_collabSessionService','evenodd','extend','trim','sheet','registerDependencies','parse','_handleNewChangeSets','ICommandService','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','IUIPartsService','prototype','@univerjs/ui','useRef','dispose$','useState','toString','You\x27re\x20not\x20following\x20the\x20presenter','@univerjs/core','getTypeOfUnitDisposed$','length','@univerjs/design','live-share-icon','from','onStarting','object','map','stopFollowing','substring','IDLE','then','UniverLiveSharePlugin','symbol','rxjs/operators','throttleTime','5292890XCHuuz','_stopPresenting','tryStartPresenting','connectInjector','univer-w-full\x20univer-mb-3\x20univer-text-sm','pipe','9MHvVhQ','_fetchOperations','none','DesktopLiveShareController','indexOf','0\x200\x2017\x2017','reverse','displayName','className'];_0x5899=function(){return _0x197edf;};return _0x5899();}function _0x14a6(_0x13e6f4,_0xc96893){var _0x589945=_0x5899();return _0x14a6=function(_0x14a65a,_0x53c358){_0x14a65a=_0x14a65a-0x1e9;var _0xfa6003=_0x589945[_0x14a65a];return _0xfa6003;},_0x14a6(_0x13e6f4,_0xc96893);}(function(_0x364cd8,_0x2427e1){var _0x5dc6c7=_0x14a6,_0x5a9faa=_0x364cd8();while(!![]){try{var _0x5a681e=-parseInt(_0x5dc6c7(0x241))/0x1+-parseInt(_0x5dc6c7(0x271))/0x2+parseInt(_0x5dc6c7(0x1ef))/0x3+-parseInt(_0x5dc6c7(0x287))/0x4*(-parseInt(_0x5dc6c7(0x266))/0x5)+parseInt(_0x5dc6c7(0x1fd))/0x6*(parseInt(_0x5dc6c7(0x27e))/0x7)+parseInt(_0x5dc6c7(0x1f2))/0x8*(parseInt(_0x5dc6c7(0x229))/0x9)+-parseInt(_0x5dc6c7(0x223))/0xa*(parseInt(_0x5dc6c7(0x25d))/0xb);if(_0x5a681e===_0x2427e1)break;else _0x5a9faa['push'](_0x5a9faa['shift']());}catch(_0x161d7f){_0x5a9faa['push'](_0x5a9faa['shift']());}}}(_0x5899,0xeed3d),function(_0x72f9c8,_0x4da5fc){var _0x19953b=_0x14a6;typeof exports==_0x19953b(0x219)&&typeof module<'u'?_0x4da5fc(exports,require(_0x19953b(0x2a6)),require(_0x19953b(0x212)),require(_0x19953b(0x27d)),require(_0x19953b(0x29e)),require(_0x19953b(0x20c)),require(_0x19953b(0x2dc)),require(_0x19953b(0x215)),require(_0x19953b(0x2b9)),require(_0x19953b(0x25e)),require(_0x19953b(0x2b6)),require(_0x19953b(0x221))):typeof define=='function'&&define[_0x19953b(0x1eb)]?define([_0x19953b(0x2c0),'@univerjs-pro/collaboration-client',_0x19953b(0x212),'@univerjs/sheets','@univerjs/sheets-ui',_0x19953b(0x20c),_0x19953b(0x2dc),_0x19953b(0x215),_0x19953b(0x2b9),_0x19953b(0x25e),_0x19953b(0x2b6),_0x19953b(0x221)],_0x4da5fc):(_0x72f9c8=typeof globalThis<'u'?globalThis:_0x72f9c8||self,_0x4da5fc(_0x72f9c8[_0x19953b(0x245)]={},_0x72f9c8['UniverProCollaborationClient'],_0x72f9c8[_0x19953b(0x1ec)],_0x72f9c8['UniverSheets'],_0x72f9c8[_0x19953b(0x235)],_0x72f9c8[_0x19953b(0x276)],_0x72f9c8['React'],_0x72f9c8['UniverDesign'],_0x72f9c8['React'],_0x72f9c8[_0x19953b(0x253)],_0x72f9c8['rxjs'],_0x72f9c8[_0x19953b(0x2b6)]['operators']));}(this,function(_0x4916c2,_0x30cfd4,_0x24fb6d,_0x32f362,_0x5d5209,_0x564fc8,_0x5ac5fd,_0x1db449,_0x1572da,_0x39e7aa,_0x4a6093,_0x52fafd){'use strict';var _0x4faa30=_0x14a6;var _0x207325=Object[_0x4faa30(0x246)],_0x176a39=(_0x1c313d,_0x5bdda2,_0x326eb9)=>_0x5bdda2 in _0x1c313d?_0x207325(_0x1c313d,_0x5bdda2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x326eb9}):_0x1c313d[_0x5bdda2]=_0x326eb9,_0x360b3d=(_0x550dad,_0x17ecd9,_0x35a953)=>_0x176a39(_0x550dad,typeof _0x17ecd9!='symbol'?_0x17ecd9+'':_0x17ecd9,_0x35a953);const _0x1be2ea=_0x4faa30(0x2d0),_0x48d8f6={};class _0x3ec7d9 extends _0x24fb6d[_0x4faa30(0x24e)]{constructor(){var _0x5ee7e5=_0x4faa30;super(...arguments),_0x360b3d(this,'_sharedOperations',new Set()),_0x360b3d(this,_0x5ee7e5(0x2b4),new Set());}[_0x4faa30(0x2bc)](_0x5377bc){var _0x46edd0=_0x4faa30;return this[_0x46edd0(0x2a8)][_0x46edd0(0x26b)](_0x5377bc),_0x24fb6d[_0x46edd0(0x2d1)](()=>this['_sharedOperations'][_0x46edd0(0x23f)](_0x5377bc));}[_0x4faa30(0x265)](_0x3b1bee){var _0x2c4a79=_0x4faa30;return this[_0x2c4a79(0x2b4)][_0x2c4a79(0x26b)](_0x3b1bee),_0x24fb6d[_0x2c4a79(0x2d1)](()=>this['_reporters'][_0x2c4a79(0x23f)](_0x3b1bee));}['shouldShareOperation'](_0x5d83e7){var _0xc9bb3f=_0x4faa30;return this[_0xc9bb3f(0x2a8)]['has'](_0x5d83e7);}['getInitialStates'](_0x10d92d){var _0x3599a6=_0x4faa30;return Array[_0x3599a6(0x217)](this[_0x3599a6(0x2b4)])[_0x3599a6(0x21a)](_0x1a9ce9=>_0x1a9ce9(_0x10d92d));}}var _0x14a6e7=Object[_0x4faa30(0x263)],_0x3ca277=(_0x41ba9f,_0x2a0b3a,_0x5828b6,_0x55e87d)=>{var _0x3a8d93=_0x4faa30;for(var _0x8995=_0x55e87d>0x1?void 0x0:_0x55e87d?_0x14a6e7(_0x2a0b3a,_0x5828b6):_0x2a0b3a,_0x9f6211=_0x41ba9f[_0x3a8d93(0x214)]-0x1,_0x45ab33;_0x9f6211>=0x0;_0x9f6211--)(_0x45ab33=_0x41ba9f[_0x9f6211])&&(_0x8995=_0x45ab33(_0x8995)||_0x8995);return _0x8995;},_0x8c0e59=(_0x115460,_0x4a3c2e)=>(_0x5599ac,_0x51124e)=>_0x4a3c2e(_0x5599ac,_0x51124e,_0x115460);let _0x1197ad=class extends _0x24fb6d[_0x4faa30(0x24e)]{constructor(_0xdcc340){var _0x2867b2=_0x4faa30;super(),this['_liveShareService']=_0xdcc340,this[_0x2867b2(0x27b)]();}['_init'](){var _0x344f8e=_0x4faa30;[_0x5d5209['SetZoomRatioOperation']['id'],_0x5d5209[_0x344f8e(0x27f)]['id'],_0x32f362[_0x344f8e(0x1f3)]['id']][_0x344f8e(0x289)](_0x442601=>{var _0x21f0f6=_0x344f8e;this[_0x21f0f6(0x291)](this[_0x21f0f6(0x1ed)][_0x21f0f6(0x2bc)](_0x442601));});}};_0x1197ad=_0x3ca277([_0x8c0e59(0x0,_0x24fb6d['Inject'](_0x3ec7d9))],_0x1197ad);var _0x16157a=function(){var _0x4d7dc2=_0x4faa30;return _0x16157a=Object[_0x4d7dc2(0x236)]||function(_0x544e8f){var _0x2a7371=_0x4d7dc2;for(var _0x35e576,_0x1053ef=0x1,_0x508d7e=arguments[_0x2a7371(0x214)];_0x1053ef<_0x508d7e;_0x1053ef++){_0x35e576=arguments[_0x1053ef];for(var _0x2c4f09 in _0x35e576)Object[_0x2a7371(0x20b)]['hasOwnProperty'][_0x2a7371(0x299)](_0x35e576,_0x2c4f09)&&(_0x544e8f[_0x2c4f09]=_0x35e576[_0x2c4f09]);}return _0x544e8f;},_0x16157a[_0x4d7dc2(0x252)](this,arguments);},_0x2a06d8=function(_0x39cf71,_0x5112be){var _0x1f21e0=_0x4faa30,_0xee089c={};for(var _0x2f147d in _0x39cf71)Object[_0x1f21e0(0x20b)]['hasOwnProperty'][_0x1f21e0(0x299)](_0x39cf71,_0x2f147d)&&_0x5112be[_0x1f21e0(0x22d)](_0x2f147d)<0x0&&(_0xee089c[_0x2f147d]=_0x39cf71[_0x2f147d]);if(_0x39cf71!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x4d6608=0x0,_0x2f147d=Object['getOwnPropertySymbols'](_0x39cf71);_0x4d6608<_0x2f147d[_0x1f21e0(0x214)];_0x4d6608++)_0x5112be[_0x1f21e0(0x22d)](_0x2f147d[_0x4d6608])<0x0&&Object[_0x1f21e0(0x20b)]['propertyIsEnumerable']['call'](_0x39cf71,_0x2f147d[_0x4d6608])&&(_0xee089c[_0x2f147d[_0x4d6608]]=_0x39cf71[_0x2f147d[_0x4d6608]]);}return _0xee089c;},_0x44a61b=_0x1572da[_0x4faa30(0x2d9)](function(_0x5a4bf9,_0x5d2807){var _0x59f5ab=_0x4faa30,_0x5b075e=_0x5a4bf9[_0x59f5ab(0x26e)],_0x34c866=_0x5a4bf9['id'],_0x57c210=_0x5a4bf9['className'],_0x3a36a6=_0x5a4bf9[_0x59f5ab(0x202)],_0x42c444=_0x2a06d8(_0x5a4bf9,[_0x59f5ab(0x26e),'id',_0x59f5ab(0x231),'extend']),_0x2dc1b5=_0x59f5ab(0x248)[_0x59f5ab(0x273)](_0x34c866,'\x20')[_0x59f5ab(0x273)](_0x57c210||'')[_0x59f5ab(0x203)](),_0x3efa10=_0x1572da[_0x59f5ab(0x20d)]('_'[_0x59f5ab(0x273)](_0x268588()));return _0x21285b(_0x5b075e,''['concat'](_0x34c866),{'defIds':_0x5b075e[_0x59f5ab(0x2aa)],'idSuffix':_0x3efa10[_0x59f5ab(0x268)]},_0x16157a({'ref':_0x5d2807,'className':_0x2dc1b5},_0x42c444),_0x3a36a6);});function _0x21285b(_0x198fd5,_0x1b7c78,_0x7b4611,_0x4c968c,_0x5c763d){var _0x516518=_0x4faa30;return _0x1572da['createElement'](_0x198fd5[_0x516518(0x29f)],_0x16157a(_0x16157a({'key':_0x1b7c78},_0x59f40f(_0x198fd5,_0x7b4611,_0x5c763d)),_0x4c968c),(_0x480a4b(_0x198fd5,_0x7b4611)[_0x516518(0x294)]||[])['map'](function(_0x42a65f,_0x4e7ae6){var _0x40271e=_0x516518;return _0x21285b(_0x42a65f,''['concat'](_0x1b7c78,'-')[_0x40271e(0x273)](_0x198fd5[_0x40271e(0x29f)],'-')[_0x40271e(0x273)](_0x4e7ae6),_0x7b4611,void 0x0,_0x5c763d);}));}function _0x59f40f(_0x4ab82c,_0x35de31,_0x2ce8fd){var _0x2be870=_0x4faa30,_0x1127d5=_0x16157a({},_0x4ab82c[_0x2be870(0x274)]);_0x2ce8fd!=null&&_0x2ce8fd[_0x2be870(0x1ee)]&&_0x1127d5[_0x2be870(0x1fa)]===_0x2be870(0x1ee)&&(_0x1127d5[_0x2be870(0x1fa)]=_0x2ce8fd['colorChannel1']),_0x4ab82c['tag']===_0x2be870(0x2a0)&&_0x1127d5['id']&&(_0x1127d5['id']=_0x1127d5['id']+_0x35de31[_0x2be870(0x23b)]),Object['entries'](_0x1127d5)[_0x2be870(0x289)](function(_0xa80f19){var _0x3c750d=_0x2be870,_0x14e62c=_0xa80f19[0x0],_0x2f1f54=_0xa80f19[0x1];_0x14e62c===_0x3c750d(0x2a0)&&typeof _0x2f1f54==_0x3c750d(0x1f7)&&(_0x1127d5[_0x14e62c]=_0x2f1f54[_0x3c750d(0x24b)](/url\(#(.*)\)/,'url(#$1'[_0x3c750d(0x273)](_0x35de31[_0x3c750d(0x23b)],')')));});var _0x2bce52=_0x35de31[_0x2be870(0x2aa)];return!_0x2bce52||_0x2bce52[_0x2be870(0x214)]===0x0||(_0x4ab82c['tag']===_0x2be870(0x232)&&_0x1127d5[_0x2be870(0x2ad)]&&(_0x1127d5[_0x2be870(0x2ad)]=_0x1127d5[_0x2be870(0x2ad)]+_0x35de31[_0x2be870(0x23b)]),Object[_0x2be870(0x242)](_0x1127d5)[_0x2be870(0x289)](function(_0x6576e6){var _0x389749=_0x2be870,_0x10268c=_0x6576e6[0x0],_0x5911b0=_0x6576e6[0x1];typeof _0x5911b0==_0x389749(0x1f7)&&(_0x1127d5[_0x10268c]=_0x5911b0[_0x389749(0x24b)](/url\(#(.*)\)/,_0x389749(0x251)[_0x389749(0x273)](_0x35de31['idSuffix'],')')));})),_0x1127d5;}function _0x480a4b(_0x1cfe63,_0x20b1fb){var _0x498902=_0x4faa30,_0x143c5a,_0x4fe557=_0x20b1fb[_0x498902(0x2aa)];return!_0x4fe557||_0x4fe557[_0x498902(0x214)]===0x0?_0x1cfe63:_0x1cfe63['tag']===_0x498902(0x2ac)&&(!((_0x143c5a=_0x1cfe63[_0x498902(0x294)])===null||_0x143c5a===void 0x0)&&_0x143c5a[_0x498902(0x214)])?_0x16157a(_0x16157a({},_0x1cfe63),{'children':_0x1cfe63['children']['map'](function(_0x583dbe){var _0x26b5ac=_0x498902;return typeof _0x583dbe[_0x26b5ac(0x274)]['id']==_0x26b5ac(0x1f7)&&_0x4fe557&&_0x4fe557[_0x26b5ac(0x260)](_0x583dbe[_0x26b5ac(0x274)]['id'])?_0x16157a(_0x16157a({},_0x583dbe),{'attrs':_0x16157a(_0x16157a({},_0x583dbe[_0x26b5ac(0x274)]),{'id':_0x583dbe[_0x26b5ac(0x274)]['id']+_0x20b1fb[_0x26b5ac(0x23b)]})}):_0x583dbe;})}):_0x1cfe63;}function _0x268588(){var _0xbafddb=_0x4faa30;return Math['random']()[_0xbafddb(0x210)](0x24)[_0xbafddb(0x21c)](0x2,0x8);}_0x44a61b['displayName']=_0x4faa30(0x267);var _0x3316c6={'tag':_0x4faa30(0x26f),'attrs':{'xmlns':_0x4faa30(0x2bf),'fill':_0x4faa30(0x22b),'viewBox':_0x4faa30(0x22e),'width':_0x4faa30(0x234),'height':_0x4faa30(0x234)},'children':[{'tag':_0x4faa30(0x2c7),'attrs':{'fill':_0x4faa30(0x24d),'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':_0x4faa30(0x2c7),'attrs':{'fill':_0x4faa30(0x24d),'d':_0x4faa30(0x209),'fillRule':'evenodd','clipRule':_0x4faa30(0x201)}}]},_0x5a927c=_0x1572da['forwardRef'](function(_0x3df1b5,_0xdb44a1){var _0x7e2115=_0x4faa30;return _0x1572da[_0x7e2115(0x243)](_0x44a61b,Object[_0x7e2115(0x236)]({},_0x3df1b5,{'id':_0x7e2115(0x216),'ref':_0xdb44a1,'icon':_0x3316c6}));});_0x5a927c[_0x4faa30(0x230)]=_0x4faa30(0x29b);var _0x5079b7=Object[_0x4faa30(0x263)],_0x58558c=(_0x4c3bf1,_0x1845d4,_0x5846ec,_0x1180ed)=>{var _0x3295c3=_0x4faa30;for(var _0x39ac9d=_0x1180ed>0x1?void 0x0:_0x1180ed?_0x5079b7(_0x1845d4,_0x5846ec):_0x1845d4,_0xad4e32=_0x4c3bf1[_0x3295c3(0x214)]-0x1,_0x515755;_0xad4e32>=0x0;_0xad4e32--)(_0x515755=_0x4c3bf1[_0xad4e32])&&(_0x39ac9d=_0x515755(_0x39ac9d)||_0x39ac9d);return _0x39ac9d;},_0x2fea13=(_0x22b801,_0x1a5fae)=>(_0x4e72a4,_0xcbd895)=>_0x1a5fae(_0x4e72a4,_0xcbd895,_0x22b801);_0x4916c2['LiveShareController']=class extends _0x24fb6d['RxDisposable']{constructor(_0x54d0d6,_0x507e0e,_0x3d32f7){var _0x40fc5e=_0x4faa30;super(),_0x360b3d(this,'_entities',new Map()),(this[_0x40fc5e(0x1f0)]=_0x54d0d6,this[_0x40fc5e(0x295)]=_0x507e0e,this[_0x40fc5e(0x200)]=_0x3d32f7,this[_0x40fc5e(0x27b)]());}async[_0x4faa30(0x2b3)](_0x3a41d3){var _0x16a654=_0x4faa30;return this['_entities']['has'](_0x3a41d3)||await this[_0x16a654(0x2d4)](_0x3a41d3),this['_entities']['get'](_0x3a41d3);}[_0x4faa30(0x27b)](){var _0x571106=_0x4faa30;this[_0x571106(0x1f0)][_0x571106(0x296)](_0x24fb6d[_0x571106(0x1ff)][_0x571106(0x2b5)])[_0x571106(0x228)](_0x52fafd['takeUntil'](this['dispose$']))[_0x571106(0x288)](async _0x3a27e8=>{var _0x39f611=_0x571106;const _0x3d2604=_0x3a27e8[_0x39f611(0x1f1)]();this[_0x39f611(0x2d6)][_0x39f611(0x2d5)](_0x3d2604)||this[_0x39f611(0x2d4)](_0x3d2604);}),this[_0x571106(0x1f0)][_0x571106(0x213)](_0x24fb6d[_0x571106(0x1ff)][_0x571106(0x2b5)])['pipe'](_0x52fafd['takeUntil'](this[_0x571106(0x20e)]))['subscribe'](_0x5b0c5a=>{var _0x208e49=_0x571106;const _0x51f640=_0x5b0c5a[_0x208e49(0x1f1)](),_0x18e934=this[_0x208e49(0x2d6)]['get'](_0x51f640);_0x18e934==null||_0x18e934[_0x208e49(0x269)]();});}async[_0x4faa30(0x2d4)](_0x2b9772){var _0x9eefc=_0x4faa30;const _0xe74b8c=await this['_collabSessionService'][_0x9eefc(0x2b1)](_0x2b9772),_0x53aead=this[_0x9eefc(0x295)][_0x9eefc(0x1ea)](_0x4916c2['LiveShareCoordinator'],_0x2b9772,_0xe74b8c);return _0x53aead[_0x9eefc(0x1f8)](),this[_0x9eefc(0x2d6)][_0x9eefc(0x277)](_0x2b9772,_0x53aead),_0x53aead;}},_0x4916c2[_0x4faa30(0x2c3)]=_0x58558c([_0x2fea13(0x0,_0x24fb6d[_0x4faa30(0x238)]),_0x2fea13(0x1,_0x24fb6d[_0x4faa30(0x262)](_0x24fb6d[_0x4faa30(0x25b)])),_0x2fea13(0x2,_0x24fb6d[_0x4faa30(0x262)](_0x30cfd4[_0x4faa30(0x1f5)]))],_0x4916c2[_0x4faa30(0x2c3)]);var _0x2ef041=(_0x2371b5=>(_0x2371b5['OFFLINE']='offline',_0x2371b5[_0x4faa30(0x21d)]='idle',_0x2371b5[_0x4faa30(0x285)]='following',_0x2371b5[_0x4faa30(0x28d)]='not-following',_0x2371b5[_0x4faa30(0x255)]=_0x4faa30(0x282),_0x2371b5))(_0x2ef041||{});const _0x260126=_0x4faa30(0x2c8),_0x2ab79b=0xc8;_0x4916c2[_0x4faa30(0x233)]=class extends _0x24fb6d[_0x4faa30(0x2de)]{constructor(_0x3d2327,_0x3492e1,_0x42fbcc,_0x3ff0a3,_0x1ccfdd){var _0x20a4d1=_0x4faa30;super(),_0x360b3d(this,'_status$',new _0x4a6093[(_0x20a4d1(0x264))](_0x20a4d1(0x25a))),_0x360b3d(this,_0x20a4d1(0x25c),this[_0x20a4d1(0x244)][_0x20a4d1(0x247)]()),_0x360b3d(this,_0x20a4d1(0x27b),!0x1),_0x360b3d(this,_0x20a4d1(0x2a2),null),_0x360b3d(this,'_presenter',null),(this[_0x20a4d1(0x24a)]=_0x3d2327,this[_0x20a4d1(0x28e)]=_0x3492e1,this[_0x20a4d1(0x1f4)]=_0x42fbcc,this[_0x20a4d1(0x1ed)]=_0x3ff0a3,this[_0x20a4d1(0x261)]=_0x1ccfdd);}get['_status'](){var _0x292698=_0x4faa30;return this[_0x292698(0x244)][_0x292698(0x257)]();}[_0x4faa30(0x269)](){var _0x3e06ba=_0x4faa30,_0x4bac8e;(_0x4bac8e=this[_0x3e06ba(0x2a2)])==null||_0x4bac8e[_0x3e06ba(0x269)](),this['_status$']['next'](_0x3e06ba(0x25a)),this[_0x3e06ba(0x244)]['complete']();}[_0x4faa30(0x1f8)](){var _0xa5a0b5=_0x4faa30;this[_0xa5a0b5(0x27b)]||(this[_0xa5a0b5(0x27b)]=!0x0,this['_collabSession']['sessionStatus$'][_0xa5a0b5(0x228)](_0x52fafd[_0xa5a0b5(0x2cd)](this['dispose$']))['subscribe'](_0xafe0b3=>{var _0x2b5aa6=_0xa5a0b5;switch(_0xafe0b3){case _0x30cfd4['SessionStatus'][_0x2b5aa6(0x2a3)]:this[_0x2b5aa6(0x2cc)]();break;case _0x30cfd4[_0x2b5aa6(0x1f9)]['ONLINE']:this[_0x2b5aa6(0x2bb)]();break;}}),this[_0xa5a0b5(0x28e)]['event$'][_0xa5a0b5(0x228)](_0x52fafd[_0xa5a0b5(0x2cd)](this[_0xa5a0b5(0x20e)]))[_0xa5a0b5(0x288)](_0x16ceb0=>{var _0x423bca=_0xa5a0b5;const {eventID:_0x398102}=_0x16ceb0;switch(_0x398102){case _0x39e7aa[_0x423bca(0x23d)][_0x423bca(0x2af)]:this['_handleNewHost'](_0x16ceb0);break;case _0x39e7aa[_0x423bca(0x23d)]['LIVESHARE_OPERATION']:this[_0x423bca(0x2c1)](_0x16ceb0);break;case _0x39e7aa[_0x423bca(0x23d)][_0x423bca(0x2be)]:this[_0x423bca(0x25f)]();break;case _0x39e7aa[_0x423bca(0x23d)][_0x423bca(0x250)]:this['_handleNewChangeSets'](_0x16ceb0);break;}}));}[_0x4faa30(0x225)](){var _0x2c84d0=_0x4faa30;this[_0x2c84d0(0x28e)]['send']({'eventID':_0x39e7aa[_0x2c84d0(0x23d)][_0x2c84d0(0x2b8)],'data':{'unitID':this['_unitID'],'userID':this[_0x2c84d0(0x28e)][_0x2c84d0(0x27c)]()}},this['_unitID']);}['stopPresenting'](){var _0xb531ee=_0x4faa30;this[_0xb531ee(0x284)]===_0xb531ee(0x282)&&(this[_0xb531ee(0x244)]['next']('idle'),this['_collabSession'][_0xb531ee(0x2d7)]({'eventID':_0x39e7aa['CollaborationEvent'][_0xb531ee(0x2be)],'data':{'unitID':this[_0xb531ee(0x24a)]}},this[_0xb531ee(0x24a)]));}[_0x4faa30(0x258)](){var _0x14126f=_0x4faa30;this['_status']===_0x14126f(0x26d)&&(this[_0x14126f(0x244)]['next'](_0x14126f(0x2c2)),this[_0x14126f(0x2a4)]());}[_0x4faa30(0x21b)](){var _0x33a961=_0x4faa30;this['_status']==='following'&&this[_0x33a961(0x2d8)]();}[_0x4faa30(0x256)](_0x4671a1){var _0x236164=_0x4faa30;const {presenter:_0x389604}=_0x4671a1[_0x236164(0x2cb)],_0xf6d16e=this[_0x236164(0x28e)][_0x236164(0x27c)]();this['_presenter']=_0x389604,_0x389604===_0xf6d16e?(this[_0x236164(0x2d8)](),this['_startPresenting']()):this[_0x236164(0x284)]!=='not-following'&&(this[_0x236164(0x224)](),this[_0x236164(0x2a4)]());}[_0x4faa30(0x22a)](){var _0x4ba84f=_0x4faa30;const _0x15603c={'eventID':_0x39e7aa[_0x4ba84f(0x23d)][_0x4ba84f(0x293)]};this[_0x4ba84f(0x28e)][_0x4ba84f(0x2d7)](_0x15603c,this[_0x4ba84f(0x24a)]);}[_0x4faa30(0x25f)](){var _0x3d21a2=_0x4faa30;this['_presenter']=null,this['_status']!==_0x3d21a2(0x282)&&this[_0x3d21a2(0x23e)]();}[_0x4faa30(0x207)](_0x2b599b){var _0x559e2e=_0x4faa30;if(this[_0x559e2e(0x284)]==='following'&&this[_0x559e2e(0x292)]===_0x2b599b[_0x559e2e(0x2cb)][_0x559e2e(0x2da)]){const _0x709aca=_0x39e7aa['parseProtocolChangeset'](_0x2b599b[_0x559e2e(0x2cb)])['mutations'][_0x559e2e(0x22f)]()[_0x559e2e(0x28f)](_0x202739=>_0x202739['id']===_0x32f362['InsertSheetMutation']['id']);if(_0x709aca){const _0x5800d6=_0x709aca[_0x559e2e(0x2ce)][_0x559e2e(0x2b2)],_0x8743dd=_0x709aca[_0x559e2e(0x2ce)][_0x559e2e(0x204)]['id'];setTimeout(()=>{var _0x1ce4a0=_0x559e2e;this[_0x1ce4a0(0x261)]['executeCommand'](_0x32f362[_0x1ce4a0(0x1f3)]['id'],{'unitId':_0x5800d6,'subUnitId':_0x8743dd},{'fromCollab':!0x0});});}}}[_0x4faa30(0x28a)](){var _0x17b891=_0x4faa30;this['_status$'][_0x17b891(0x2ca)](_0x17b891(0x282));const _0x243d3d=new Map(),_0x5d0f86=this[_0x17b891(0x2a2)]=new _0x24fb6d['DisposableCollection']();_0x5d0f86[_0x17b891(0x26b)](_0x24fb6d[_0x17b891(0x2d1)](()=>{var _0x13725e=_0x17b891;_0x243d3d[_0x13725e(0x289)](_0x4a7995=>_0x4a7995[_0x13725e(0x2c4)]()),_0x243d3d[_0x13725e(0x281)]();})),_0x5d0f86[_0x17b891(0x26b)](this[_0x17b891(0x261)][_0x17b891(0x1fc)](_0x1c2ed9=>{var _0x444e62=_0x17b891,_0xd511b2;if(_0x1c2ed9[_0x444e62(0x1fb)]!==_0x24fb6d['CommandType'][_0x444e62(0x2cf)]||!this['_liveShareService'][_0x444e62(0x239)](_0x1c2ed9['id']))return;const {id:_0x102f27}=_0x1c2ed9;let _0xb9c37c;_0x243d3d[_0x444e62(0x2d5)](_0x102f27)?_0xb9c37c=_0x243d3d['get'](_0x102f27):(_0xb9c37c=new _0x4a6093[(_0x444e62(0x283))](),_0x243d3d['set'](_0x102f27,_0xb9c37c),_0xb9c37c[_0x444e62(0x228)](_0x52fafd[_0x444e62(0x222)]((_0xd511b2=this[_0x444e62(0x1f4)]['getConfig'](_0x260126))!=null?_0xd511b2:_0x2ab79b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x444e62(0x288)](_0x37966f=>{var _0x6e9210=_0x444e62;this['_collabSession']['send']({'eventID':_0x39e7aa[_0x6e9210(0x23d)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x6e9210(0x24a)],'operations':{[_0x37966f['id']]:{'id':_0x37966f['id'],'params':JSON[_0x6e9210(0x26c)](_0x37966f['params'])}}}},this['_unitID']);})),_0xb9c37c[_0x444e62(0x2ca)](_0x1c2ed9);})),this[_0x17b891(0x1ed)][_0x17b891(0x2b0)](this[_0x17b891(0x24a)])['forEach'](_0x4d8bc6=>this[_0x17b891(0x28e)][_0x17b891(0x2d7)]({'eventID':_0x39e7aa['CollaborationEvent'][_0x17b891(0x2b7)],'data':{'unitID':this[_0x17b891(0x24a)],'operations':{[_0x4d8bc6['id']]:{'id':_0x4d8bc6['id'],'params':JSON[_0x17b891(0x26c)](_0x4d8bc6[_0x17b891(0x2ce)])}}}},this[_0x17b891(0x24a)]));}['_stopPresenting'](){var _0x29ad3e=_0x4faa30,_0x29cfbe;this[_0x29ad3e(0x244)][_0x29ad3e(0x2ca)](_0x29ad3e(0x25a)),(_0x29cfbe=this[_0x29ad3e(0x2a2)])==null||_0x29cfbe[_0x29ad3e(0x269)](),this[_0x29ad3e(0x2a2)]=null;}[_0x4faa30(0x2a4)](){var _0x856551=_0x4faa30,_0xd26433;(_0xd26433=this[_0x856551(0x2a2)])==null||_0xd26433['dispose'](),this[_0x856551(0x244)][_0x856551(0x2ca)](_0x856551(0x2c2));}[_0x4faa30(0x23e)](){var _0x35430e=_0x4faa30,_0x5277d0;this[_0x35430e(0x244)][_0x35430e(0x2ca)](_0x35430e(0x25a)),(_0x5277d0=this[_0x35430e(0x2a2)])==null||_0x5277d0[_0x35430e(0x269)](),this[_0x35430e(0x2a2)]=null;}[_0x4faa30(0x2d8)](){var _0x98d298=_0x4faa30,_0x5deca8;this[_0x98d298(0x244)][_0x98d298(0x2ca)](_0x98d298(0x26d)),(_0x5deca8=this['_commandDisposable'])==null||_0x5deca8['dispose']();}[_0x4faa30(0x2c1)](_0x2798bf){var _0x2490de=_0x4faa30;if([_0x2490de(0x282),_0x2490de(0x26d),_0x2490de(0x2c9)]['includes'](this['_status'])||!_0x2798bf[_0x2490de(0x2cb)]['presenter']||_0x2798bf[_0x2490de(0x2cb)][_0x2490de(0x249)]===this['_collabSession']['getMemberID']())return;this[_0x2490de(0x284)]===_0x2490de(0x25a)&&this['_startFollowing']();const _0x5a5962=_0x2798bf['data'][_0x2490de(0x2bd)];Object[_0x2490de(0x29d)](_0x5a5962)[_0x2490de(0x289)](_0x111bb1=>{var _0x36bcdf=_0x2490de;this[_0x36bcdf(0x261)]['executeCommand'](_0x111bb1['id'],_0x111bb1[_0x36bcdf(0x2ce)]?JSON[_0x36bcdf(0x206)](_0x111bb1[_0x36bcdf(0x2ce)]):null,{'fromCollab':!0x0});});}[_0x4faa30(0x2cc)](){var _0x116620=_0x4faa30,_0x3c4aa6;this[_0x116620(0x244)][_0x116620(0x2ca)](_0x116620(0x2c9)),(_0x3c4aa6=this['_commandDisposable'])==null||_0x3c4aa6[_0x116620(0x269)]();}[_0x4faa30(0x2bb)](){var _0x4c34f7=_0x4faa30;this['_status$'][_0x4c34f7(0x2ca)](_0x4c34f7(0x25a)),this[_0x4c34f7(0x22a)]();}},_0x4916c2['LiveShareCoordinator']=_0x58558c([_0x2fea13(0x2,_0x24fb6d[_0x4faa30(0x2dd)]),_0x2fea13(0x3,_0x24fb6d[_0x4faa30(0x262)](_0x3ec7d9)),_0x2fea13(0x4,_0x24fb6d[_0x4faa30(0x208)])],_0x4916c2[_0x4faa30(0x233)]);function _0x47e90c(){var _0x10ddb3=_0x4faa30;const _0x1d76e0=_0x564fc8[_0x10ddb3(0x23c)](_0x4916c2[_0x10ddb3(0x2c3)]),_0xbe9e42=_0x564fc8[_0x10ddb3(0x23c)](_0x24fb6d[_0x10ddb3(0x238)]),_0x473120=_0x564fc8['useObservable'](()=>_0xbe9e42['getCurrentTypeOfUnit$'](_0x24fb6d[_0x10ddb3(0x1ff)][_0x10ddb3(0x2b5)]),void 0x0,!0x1,[]),[_0xf35da3,_0x1e5da2]=_0x1572da[_0x10ddb3(0x20f)](null),[_0x5dc9b,_0x269534]=_0x1572da[_0x10ddb3(0x20f)](_0x2ef041[_0x10ddb3(0x21d)]),_0x32d617=_0x1572da['useRef'](null);return _0x1572da['useEffect'](()=>(_0x473120&&_0x1d76e0['getLiveShareCoordinator'](_0x473120[_0x10ddb3(0x1f1)]())[_0x10ddb3(0x21e)](_0x5a005c=>{var _0xb7966b=_0x10ddb3;_0x1e5da2(_0x5a005c),_0x32d617[_0xb7966b(0x268)]=_0x5a005c[_0xb7966b(0x25c)]['subscribe'](_0x1e8ae=>{_0x269534(_0x1e8ae);});}),()=>{var _0x41b0a4=_0x10ddb3,_0x528da2;(_0x528da2=_0x32d617[_0x41b0a4(0x268)])==null||_0x528da2['unsubscribe'](),_0x32d617[_0x41b0a4(0x268)]=null;}),[_0x473120,_0x1d76e0]),_0xf35da3?_0x5ac5fd[_0x10ddb3(0x2ba)](_0x1db449[_0x10ddb3(0x290)],{'align':_0x10ddb3(0x29c),'disabled':_0x5dc9b===_0x2ef041[_0x10ddb3(0x2a3)],'className':_0x10ddb3(0x286),'overlay':_0x5ac5fd[_0x10ddb3(0x2ba)](_0x111304,{'status':_0x5dc9b,'coordinator':_0xf35da3}),'children':_0x5ac5fd[_0x10ddb3(0x2ba)](_0x10ddb3(0x2c5),{'className':_0x1db449[_0x10ddb3(0x272)](_0x10ddb3(0x2ae),{'univer-cursor-not-allowed':_0x5dc9b===_0x2ef041['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5dc9b!==_0x2ef041[_0x10ddb3(0x2a3)]}),'type':_0x10ddb3(0x2c5),'children':_0x5ac5fd[_0x10ddb3(0x2ba)](_0x5a927c,{'className':'univer-size-4'})})}):null;}function _0x111304(_0xef9472){var _0x52368a=_0x4faa30;const {status:_0x29a783,coordinator:_0x1938a5}=_0xef9472;switch(_0x29a783){case _0x2ef041[_0x52368a(0x21d)]:return _0x5ac5fd['jsx'](_0x5aa27d,{'coordinator':_0x1938a5});case _0x2ef041[_0x52368a(0x285)]:return _0x5ac5fd[_0x52368a(0x2ba)](_0x208210,{'coordinator':_0x1938a5});case _0x2ef041['NOT_FOLLOWING']:return _0x5ac5fd[_0x52368a(0x2ba)](_0x43379b,{'coordinator':_0x1938a5});case _0x2ef041[_0x52368a(0x2a3)]:return _0x5ac5fd[_0x52368a(0x2ba)](_0x19cb97,{});case _0x2ef041[_0x52368a(0x255)]:return _0x5ac5fd[_0x52368a(0x2ba)](_0x43c5a1,{'coordinator':_0x1938a5});default:return null;}}function _0x5aa27d(_0x5f056d){var _0x24a489=_0x4faa30;const {coordinator:_0x3881a8}=_0x5f056d;return _0x5ac5fd[_0x24a489(0x2c6)](_0x5ac5fd[_0x24a489(0x1fe)],{'children':[_0x5ac5fd[_0x24a489(0x2ba)](_0x24a489(0x26a),{'className':_0x24a489(0x227),'children':_0x24a489(0x2d2)}),_0x5ac5fd[_0x24a489(0x2ba)](_0x1db449[_0x24a489(0x2a1)],{'onClick':()=>_0x3881a8[_0x24a489(0x225)](),'children':_0x24a489(0x24c)})]});}function _0x208210(_0x28e2c7){var _0x2b6054=_0x4faa30;const {coordinator:_0x3ef1a5}=_0x28e2c7;return _0x5ac5fd[_0x2b6054(0x2c6)](_0x5ac5fd[_0x2b6054(0x1fe)],{'children':[_0x5ac5fd[_0x2b6054(0x2ba)](_0x2b6054(0x26a),{'className':_0x2b6054(0x227),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5ac5fd[_0x2b6054(0x2ba)](_0x1db449['Button'],{'onClick':()=>_0x3ef1a5[_0x2b6054(0x21b)](),'children':_0x2b6054(0x28b)})]});}function _0x43379b(_0x227e48){var _0x250689=_0x4faa30;const {coordinator:_0x3bf9ba}=_0x227e48;return _0x5ac5fd[_0x250689(0x2c6)](_0x5ac5fd['Fragment'],{'children':[_0x5ac5fd['jsx'](_0x250689(0x26a),{'className':_0x250689(0x227),'children':_0x250689(0x211)}),_0x5ac5fd['jsx'](_0x1db449[_0x250689(0x2a1)],{'variant':_0x250689(0x298),'onClick':()=>_0x3bf9ba[_0x250689(0x258)](),'children':_0x250689(0x279)})]});}function _0x43c5a1(_0x230b85){var _0x2dc04d=_0x4faa30;const {coordinator:_0x4a02e4}=_0x230b85;return _0x5ac5fd[_0x2dc04d(0x2c6)](_0x5ac5fd['Fragment'],{'children':[_0x5ac5fd[_0x2dc04d(0x2ba)]('div',{'className':_0x2dc04d(0x227),'children':_0x2dc04d(0x297)}),_0x5ac5fd['jsx'](_0x1db449[_0x2dc04d(0x2a1)],{'variant':_0x2dc04d(0x278),'onClick':()=>_0x4a02e4[_0x2dc04d(0x23a)](),'children':_0x2dc04d(0x275)})]});}function _0x19cb97(){var _0x452493=_0x4faa30;return _0x5ac5fd[_0x452493(0x2ba)](_0x5ac5fd['Fragment'],{'children':_0x452493(0x24f)});}var _0xe3058e=Object['getOwnPropertyDescriptor'],_0x230893=(_0x445345,_0x5b6210,_0x1ae5cd,_0x567937)=>{var _0x453d53=_0x4faa30;for(var _0x157be2=_0x567937>0x1?void 0x0:_0x567937?_0xe3058e(_0x5b6210,_0x1ae5cd):_0x5b6210,_0x9b52ca=_0x445345[_0x453d53(0x214)]-0x1,_0x4543f8;_0x9b52ca>=0x0;_0x9b52ca--)(_0x4543f8=_0x445345[_0x9b52ca])&&(_0x157be2=_0x4543f8(_0x157be2)||_0x157be2);return _0x157be2;},_0x2a52c0=(_0x4ad561,_0x30649b)=>(_0x39d710,_0x1c0624)=>_0x30649b(_0x39d710,_0x1c0624,_0x4ad561);_0x4916c2['DesktopLiveShareController']=class extends _0x24fb6d[_0x4faa30(0x24e)]{constructor(_0x49912c,_0x338969){var _0x445fee=_0x4faa30;super(),this[_0x445fee(0x295)]=_0x49912c,this[_0x445fee(0x259)]=_0x338969,this[_0x445fee(0x2a5)]();}['_mountLiveShare'](){var _0x482f00=_0x4faa30;this[_0x482f00(0x291)](this[_0x482f00(0x259)][_0x482f00(0x2ab)](_0x564fc8[_0x482f00(0x270)][_0x482f00(0x1e9)],()=>_0x564fc8[_0x482f00(0x226)](_0x47e90c,this[_0x482f00(0x295)])));}},_0x4916c2[_0x4faa30(0x22c)]=_0x230893([_0x2a52c0(0x0,_0x24fb6d['Inject'](_0x24fb6d[_0x4faa30(0x25b)])),_0x2a52c0(0x1,_0x564fc8[_0x4faa30(0x20a)])],_0x4916c2[_0x4faa30(0x22c)]);var _0x4584ab=Object['defineProperty'],_0x3d3f22=Object[_0x4faa30(0x263)],_0x2aab78=(_0x25664d,_0x139fb5,_0x4fcbb6)=>_0x139fb5 in _0x25664d?_0x4584ab(_0x25664d,_0x139fb5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fcbb6}):_0x25664d[_0x139fb5]=_0x4fcbb6,_0x11ec27=(_0x25467b,_0x17fe7c,_0x3d0ec0,_0x97d01d)=>{var _0x413835=_0x4faa30;for(var _0x4468a6=_0x97d01d>0x1?void 0x0:_0x97d01d?_0x3d3f22(_0x17fe7c,_0x3d0ec0):_0x17fe7c,_0x5679d1=_0x25467b[_0x413835(0x214)]-0x1,_0x2fb90f;_0x5679d1>=0x0;_0x5679d1--)(_0x2fb90f=_0x25467b[_0x5679d1])&&(_0x4468a6=_0x2fb90f(_0x4468a6)||_0x4468a6);return _0x4468a6;},_0x2d13cb=(_0x2e88d2,_0x4d2602)=>(_0x5b7896,_0x548dac)=>_0x4d2602(_0x5b7896,_0x548dac,_0x2e88d2),_0x1d51f2=(_0x4ed03e,_0x352390,_0x39570b)=>_0x2aab78(_0x4ed03e,typeof _0x352390!=_0x4faa30(0x220)?_0x352390+'':_0x352390,_0x39570b);const _0x57d17b='UNIVER_LIVE_SHARE_PLUGIN';_0x4916c2[_0x4faa30(0x21f)]=class extends _0x24fb6d[_0x4faa30(0x280)]{constructor(_0x3f668d=_0x48d8f6,_0x16000c,_0xb38f73){var _0x453592=_0x4faa30;super(),this[_0x453592(0x254)]=_0x3f668d,this[_0x453592(0x295)]=_0x16000c,this['_configService']=_0xb38f73;const {..._0x3d8267}=_0x24fb6d[_0x453592(0x28c)]({},_0x48d8f6,this[_0x453592(0x254)]);this[_0x453592(0x1f4)]['setConfig'](_0x1be2ea,_0x3d8267);}[_0x4faa30(0x218)](){var _0x143a2e=_0x4faa30;_0x24fb6d[_0x143a2e(0x205)](this[_0x143a2e(0x295)],_0x24fb6d['mergeOverrideWithDependencies']([[_0x3ec7d9],[_0x4916c2[_0x143a2e(0x2c3)]],[_0x1197ad],[_0x4916c2[_0x143a2e(0x22c)]]],this[_0x143a2e(0x254)][_0x143a2e(0x237)])),_0x24fb6d[_0x143a2e(0x27a)](this[_0x143a2e(0x295)],[[_0x1197ad]]);}[_0x4faa30(0x2a7)](){var _0xcc5895=_0x4faa30;_0x24fb6d[_0xcc5895(0x27a)](this[_0xcc5895(0x295)],[[_0x4916c2['DesktopLiveShareController']]]);}},_0x1d51f2(_0x4916c2[_0x4faa30(0x21f)],'type',_0x24fb6d[_0x4faa30(0x1ff)]['UNIVER_UNKNOWN']),_0x1d51f2(_0x4916c2[_0x4faa30(0x21f)],_0x4faa30(0x2df),_0x57d17b),_0x4916c2[_0x4faa30(0x21f)]=_0x11ec27([_0x24fb6d[_0x4faa30(0x29a)](_0x30cfd4[_0x4faa30(0x2db)]),_0x2d13cb(0x1,_0x24fb6d[_0x4faa30(0x262)](_0x24fb6d[_0x4faa30(0x25b)])),_0x2d13cb(0x2,_0x24fb6d[_0x4faa30(0x2dd)])],_0x4916c2[_0x4faa30(0x21f)]),_0x4916c2[_0x4faa30(0x2a9)]=_0x47e90c,_0x4916c2[_0x4faa30(0x1f6)]=_0x3ec7d9,_0x4916c2[_0x4faa30(0x240)]=_0x2ef041,Object['defineProperty'](_0x4916c2,Symbol['toStringTag'],{'value':_0x4faa30(0x2d3)});}));
|
|
1
|
+
function _0x436d(){var _0x5ee7d5=['getCurrentTypeOfUnit$','get','LiveShareCoordinator','presenting','createElement','_collabSession','executeCommand','Start','has','defIds','7534496OiQOwg','getOwnPropertySymbols','currentColor','colorChannel1','pluginName','React','then','prototype','Stop\x20presenting','NOT_FOLLOWING','_injector','_handleNewHost','assign','displayName','takeUntil','params','_stopFollowing','clear','57BzAkuj','_handleOperation','presenter','subscribe','startFollowing','_startPresenting','live-share.config','status$','extend','throttleTime','attrs','getTypeOfUnitDisposed$','following','24BzXRAr','UniverDesign','@univerjs-pro/collaboration-client','from','parse','disposeWithMe','_handleTerminate','concat','_unitID','memberID','forwardRef','url(#$1','_fetchOperations','rxjs','string','_startFollowing','CollaborationEvent','DesktopLiveShareController','6309259OtzHuE','Stop\x20following','xlink:href','onRendered','Fragment','_reporters','useDependency','svg','InsertSheetMutation','getValue','symbol','set','UniverLiveSharePlugin','_init','add','useState','tryStartPresenting','@univerjs/sheets','PRESENTING','Button','getInitialStates','LiveShareStatus','stopPresenting','UniverProLiveShare','_handleNewChangeSets','pipe','react/jsx-runtime','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','_handleOffline','unitId','indexOf','includes','_commandDisposable','LiveShare','touchDependencies','univerjs-icon\x20univerjs-icon-','defs','UniverUi','ICommandService','complete','unsubscribe','IUniverInstanceService','_uiPartsService','className','registerSharedOperation','DependentOn','getOwnPropertyDescriptor','Disposable','length','Injector','idSuffix','UniverProCollaborationClient','current','event$','merge','button','@univerjs/sheets-ui','div','IUIPartsService','useRef','propertyIsEnumerable','Start\x20following','Plugin','getTypeOfUnitAdded$','OPERATION','1809438xXIlCL','2357050yRsXen','_status','NEW_CHANGESETS','_liveShareService','IDLE','idle','550775GurYoe','_entities','LiveShareController','@univerjs/core','data','react','replace','mutations','14eIOaEp','toDisposable','default','override','Subject','SessionStatus','values','fill','none','jsx','substring','_presenter','entries','shouldShareOperation','_configService','ONLINE','toStringTag','use','univer-w-full\x20univer-mb-3\x20univer-text-sm','248048kdOLnh','@univerjs/design','offline','Present\x20this\x20document','_commandService','_status$','SAME_OPERATION_SHARE_INTERVAL','operators','call','_config','icon','setConfig','exports','mask','@univerjs-pro/collaboration','trim','_startLiveShareCoordinator','73258OozRin','jsxs','onCommandExecuted','tag','getUnitId','forEach','useObservable','evenodd','stringify','registerInitialStateReporter','getConfig','next','http://www.w3.org/2000/svg','LIVESHARE_TERMINATE','sheet','Dropdown','UNIVER_LIVE_SHARE_PLUGIN','_handleOnline','9idGhkw','rxjs/operators','You\x27re\x20presenting\x20the\x20document','You\x27are\x20offline.','SetScrollOperation','children','LIVESHARE_FETCH_OPERATIONS','_beIdle','live-share-icon','dispose$','not-following','CommandType','toString','HEADER_MENU','CollaborationSessionService','UniverProCollaboration','univer-size-4','parseProtocolChangeset','requireSession','init','UniverSheets','delete','LIVESHARE_OPERATION','0\x200\x2017\x2017','_collabSessionService','Module','OFFLINE','getMemberID','hasOwnProperty','_sharedOperations','registerComponent','You\x27re\x20following\x20the\x20presenter','stopFollowing','map','defineProperty','@univerjs/ui','BehaviorSubject','connectInjector','1em','type','UniverInstanceType','28VBTEoF','You\x27re\x20not\x20following\x20the\x20presenter','IConfigService','UNIVER_SHEET','UniverIcon','send','getLiveShareCoordinator','Inject','dispose','DisposableCollection','UniverCore','apply','createInstance','SetWorksheetActiveOperation'];_0x436d=function(){return _0x5ee7d5;};return _0x436d();}function _0x37fa(_0x868c3a,_0xf0572b){var _0x436d88=_0x436d();return _0x37fa=function(_0x37fa67,_0x2a24c7){_0x37fa67=_0x37fa67-0xca;var _0x3a7dcc=_0x436d88[_0x37fa67];return _0x3a7dcc;},_0x37fa(_0x868c3a,_0xf0572b);}(function(_0x2a53ce,_0x542902){var _0x27420e=_0x37fa,_0x186686=_0x2a53ce();while(!![]){try{var _0x2dda7e=parseInt(_0x27420e(0x134))/0x1+parseInt(_0x27420e(0x145))/0x2*(-parseInt(_0x27420e(0x1aa))/0x3)+parseInt(_0x27420e(0x180))/0x4*(-parseInt(_0x27420e(0x119))/0x5)+-parseInt(_0x27420e(0x112))/0x6*(parseInt(_0x27420e(0x121))/0x7)+-parseInt(_0x27420e(0x198))/0x8*(-parseInt(_0x27420e(0x157))/0x9)+parseInt(_0x27420e(0x113))/0xa+-parseInt(_0x27420e(0xd1))/0xb*(-parseInt(_0x27420e(0x1b7))/0xc);if(_0x2dda7e===_0x542902)break;else _0x186686['push'](_0x186686['shift']());}catch(_0xc4243d){_0x186686['push'](_0x186686['shift']());}}}(_0x436d,0x7aaf9),function(_0x5aa92c,_0x5bba74){var _0x237cfe=_0x37fa;typeof exports=='object'&&typeof module<'u'?_0x5bba74(exports,require(_0x237cfe(0x1b9)),require('@univerjs/core'),require(_0x237cfe(0xe2)),require(_0x237cfe(0x109)),require(_0x237cfe(0x17a)),require(_0x237cfe(0xeb)),require(_0x237cfe(0x135)),require(_0x237cfe(0x11e)),require(_0x237cfe(0x142)),require(_0x237cfe(0xcc)),require(_0x237cfe(0x158))):typeof define=='function'&&define['amd']?define([_0x237cfe(0x140),_0x237cfe(0x1b9),_0x237cfe(0x11c),_0x237cfe(0xe2),_0x237cfe(0x109),_0x237cfe(0x17a),'react/jsx-runtime','@univerjs/design',_0x237cfe(0x11e),'@univerjs-pro/collaboration','rxjs',_0x237cfe(0x158)],_0x5bba74):(_0x5aa92c=typeof globalThis<'u'?globalThis:_0x5aa92c||self,_0x5bba74(_0x5aa92c[_0x237cfe(0xe8)]={},_0x5aa92c[_0x237cfe(0x104)],_0x5aa92c[_0x237cfe(0x18a)],_0x5aa92c[_0x237cfe(0x16b)],_0x5aa92c['UniverSheetsUi'],_0x5aa92c[_0x237cfe(0xf6)],_0x5aa92c[_0x237cfe(0x19d)],_0x5aa92c[_0x237cfe(0x1b8)],_0x5aa92c[_0x237cfe(0x19d)],_0x5aa92c[_0x237cfe(0x166)],_0x5aa92c[_0x237cfe(0xcc)],_0x5aa92c['rxjs'][_0x237cfe(0x13b)]));}(this,function(_0x565b9d,_0x30c176,_0x1036c4,_0x6b5b,_0x31fb7b,_0x42a8f4,_0x30007c,_0x3f92b9,_0xcbca53,_0xfcf66,_0x978848,_0x483d17){'use strict';var _0x543230=_0x37fa;var _0x5e12e0=Object[_0x543230(0x179)],_0x42ac7c=(_0x9acc61,_0x45eede,_0x3a14bd)=>_0x45eede in _0x9acc61?_0x5e12e0(_0x9acc61,_0x45eede,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a14bd}):_0x9acc61[_0x45eede]=_0x3a14bd,_0xabe042=(_0x9c9abf,_0x50739a,_0x217ea7)=>_0x42ac7c(_0x9c9abf,typeof _0x50739a!=_0x543230(0xdb)?_0x50739a+'':_0x50739a,_0x217ea7);const _0x5991ee=_0x543230(0x1b0),_0x4e279d={};class _0x50f0d8 extends _0x1036c4[_0x543230(0x100)]{constructor(){var _0x7738de=_0x543230;super(...arguments),_0xabe042(this,'_sharedOperations',new Set()),_0xabe042(this,_0x7738de(0xd6),new Set());}[_0x543230(0xfd)](_0x2abe9b){var _0x14b8b4=_0x543230;return this[_0x14b8b4(0x174)][_0x14b8b4(0xdf)](_0x2abe9b),_0x1036c4[_0x14b8b4(0x122)](()=>this[_0x14b8b4(0x174)]['delete'](_0x2abe9b));}[_0x543230(0x14e)](_0x3fc766){var _0x582a84=_0x543230;return this['_reporters'][_0x582a84(0xdf)](_0x3fc766),_0x1036c4[_0x582a84(0x122)](()=>this[_0x582a84(0xd6)][_0x582a84(0x16c)](_0x3fc766));}[_0x543230(0x12e)](_0x580e92){var _0x53a30b=_0x543230;return this[_0x53a30b(0x174)][_0x53a30b(0x196)](_0x580e92);}[_0x543230(0xe5)](_0x37285b){var _0x5b18b=_0x543230;return Array[_0x5b18b(0x1ba)](this[_0x5b18b(0xd6)])[_0x5b18b(0x178)](_0x59f51d=>_0x59f51d(_0x37285b));}}var _0x49729c=Object['getOwnPropertyDescriptor'],_0x4d3f7b=(_0x307752,_0x48f7e7,_0x3ae835,_0x21d072)=>{var _0x2d3b3a=_0x543230;for(var _0x8ef2c6=_0x21d072>0x1?void 0x0:_0x21d072?_0x49729c(_0x48f7e7,_0x3ae835):_0x48f7e7,_0x434231=_0x307752[_0x2d3b3a(0x101)]-0x1,_0x4b0ffe;_0x434231>=0x0;_0x434231--)(_0x4b0ffe=_0x307752[_0x434231])&&(_0x8ef2c6=_0x4b0ffe(_0x8ef2c6)||_0x8ef2c6);return _0x8ef2c6;},_0x3123e4=(_0x1b60b1,_0x2e2c32)=>(_0x3d271e,_0x4eca26)=>_0x2e2c32(_0x3d271e,_0x4eca26,_0x1b60b1);let _0xff3e31=class extends _0x1036c4['Disposable']{constructor(_0x47b602){var _0x15655a=_0x543230;super(),this[_0x15655a(0x116)]=_0x47b602,this[_0x15655a(0xde)]();}[_0x543230(0xde)](){var _0x2593f0=_0x543230;[_0x31fb7b['SetZoomRatioOperation']['id'],_0x31fb7b[_0x2593f0(0x15b)]['id'],_0x6b5b[_0x2593f0(0x18d)]['id']][_0x2593f0(0x14a)](_0x2314d7=>{var _0x3798b5=_0x2593f0;this[_0x3798b5(0x1bc)](this[_0x3798b5(0x116)]['registerSharedOperation'](_0x2314d7));});}};_0xff3e31=_0x4d3f7b([_0x3123e4(0x0,_0x1036c4[_0x543230(0x187)](_0x50f0d8))],_0xff3e31);var _0x1bcaeb=function(){var _0x244087=_0x543230;return _0x1bcaeb=Object[_0x244087(0x1a4)]||function(_0x178a94){var _0x3ec711=_0x244087;for(var _0x1bedab,_0x3a0c88=0x1,_0x2d9309=arguments[_0x3ec711(0x101)];_0x3a0c88<_0x2d9309;_0x3a0c88++){_0x1bedab=arguments[_0x3a0c88];for(var _0x287419 in _0x1bedab)Object['prototype'][_0x3ec711(0x173)][_0x3ec711(0x13c)](_0x1bedab,_0x287419)&&(_0x178a94[_0x287419]=_0x1bedab[_0x287419]);}return _0x178a94;},_0x1bcaeb[_0x244087(0x18b)](this,arguments);},_0x21a89a=function(_0x164acf,_0x33a84d){var _0x42886e=_0x543230,_0x3765f6={};for(var _0x1735c2 in _0x164acf)Object[_0x42886e(0x19f)][_0x42886e(0x173)][_0x42886e(0x13c)](_0x164acf,_0x1735c2)&&_0x33a84d[_0x42886e(0xef)](_0x1735c2)<0x0&&(_0x3765f6[_0x1735c2]=_0x164acf[_0x1735c2]);if(_0x164acf!=null&&typeof Object[_0x42886e(0x199)]=='function'){for(var _0x4fc011=0x0,_0x1735c2=Object[_0x42886e(0x199)](_0x164acf);_0x4fc011<_0x1735c2['length'];_0x4fc011++)_0x33a84d[_0x42886e(0xef)](_0x1735c2[_0x4fc011])<0x0&&Object[_0x42886e(0x19f)][_0x42886e(0x10d)][_0x42886e(0x13c)](_0x164acf,_0x1735c2[_0x4fc011])&&(_0x3765f6[_0x1735c2[_0x4fc011]]=_0x164acf[_0x1735c2[_0x4fc011]]);}return _0x3765f6;},_0x221589=_0xcbca53[_0x543230(0x1c1)](function(_0x41c59d,_0x33c32e){var _0x53e2c7=_0x543230,_0x19dcf0=_0x41c59d['icon'],_0x856411=_0x41c59d['id'],_0x254a68=_0x41c59d[_0x53e2c7(0xfc)],_0x4bf3bc=_0x41c59d[_0x53e2c7(0x1b2)],_0x3e30b6=_0x21a89a(_0x41c59d,[_0x53e2c7(0x13e),'id','className',_0x53e2c7(0x1b2)]),_0x42b105=_0x53e2c7(0xf4)[_0x53e2c7(0x1be)](_0x856411,'\x20')[_0x53e2c7(0x1be)](_0x254a68||'')[_0x53e2c7(0x143)](),_0x239761=_0xcbca53[_0x53e2c7(0x10c)]('_'['concat'](_0x42e3e3()));return _0x4ec5a0(_0x19dcf0,''[_0x53e2c7(0x1be)](_0x856411),{'defIds':_0x19dcf0[_0x53e2c7(0x197)],'idSuffix':_0x239761[_0x53e2c7(0x105)]},_0x1bcaeb({'ref':_0x33c32e,'className':_0x42b105},_0x3e30b6),_0x4bf3bc);});function _0x4ec5a0(_0x18285f,_0x224c77,_0x187b14,_0x510f8d,_0x4d50b0){var _0x52f4be=_0x543230;return _0xcbca53['createElement'](_0x18285f[_0x52f4be(0x148)],_0x1bcaeb(_0x1bcaeb({'key':_0x224c77},_0x2d1c5f(_0x18285f,_0x187b14,_0x4d50b0)),_0x510f8d),(_0x333ad5(_0x18285f,_0x187b14)[_0x52f4be(0x15c)]||[])[_0x52f4be(0x178)](function(_0xac0dbc,_0x14fc74){var _0x23af83=_0x52f4be;return _0x4ec5a0(_0xac0dbc,''[_0x23af83(0x1be)](_0x224c77,'-')['concat'](_0x18285f[_0x23af83(0x148)],'-')[_0x23af83(0x1be)](_0x14fc74),_0x187b14,void 0x0,_0x4d50b0);}));}function _0x2d1c5f(_0x4890f1,_0x385bbe,_0x50ef07){var _0x2ba85a=_0x543230,_0x3ca035=_0x1bcaeb({},_0x4890f1[_0x2ba85a(0x1b4)]);_0x50ef07!=null&&_0x50ef07['colorChannel1']&&_0x3ca035[_0x2ba85a(0x128)]===_0x2ba85a(0x19b)&&(_0x3ca035[_0x2ba85a(0x128)]=_0x50ef07[_0x2ba85a(0x19b)]),_0x4890f1['tag']===_0x2ba85a(0x141)&&_0x3ca035['id']&&(_0x3ca035['id']=_0x3ca035['id']+_0x385bbe['idSuffix']),Object[_0x2ba85a(0x12d)](_0x3ca035)['forEach'](function(_0x2d2a04){var _0x5ca871=_0x2ba85a,_0x437796=_0x2d2a04[0x0],_0x13d351=_0x2d2a04[0x1];_0x437796==='mask'&&typeof _0x13d351==_0x5ca871(0xcd)&&(_0x3ca035[_0x437796]=_0x13d351[_0x5ca871(0x11f)](/url\(#(.*)\)/,_0x5ca871(0xca)[_0x5ca871(0x1be)](_0x385bbe['idSuffix'],')')));});var _0x1863a7=_0x385bbe[_0x2ba85a(0x197)];return!_0x1863a7||_0x1863a7[_0x2ba85a(0x101)]===0x0||(_0x4890f1[_0x2ba85a(0x148)]===_0x2ba85a(0x132)&&_0x3ca035['xlink:href']&&(_0x3ca035[_0x2ba85a(0xd3)]=_0x3ca035[_0x2ba85a(0xd3)]+_0x385bbe[_0x2ba85a(0x103)]),Object[_0x2ba85a(0x12d)](_0x3ca035)[_0x2ba85a(0x14a)](function(_0x564741){var _0x1d9c04=_0x2ba85a,_0x2169de=_0x564741[0x0],_0x382c13=_0x564741[0x1];typeof _0x382c13==_0x1d9c04(0xcd)&&(_0x3ca035[_0x2169de]=_0x382c13[_0x1d9c04(0x11f)](/url\(#(.*)\)/,'url(#$1'[_0x1d9c04(0x1be)](_0x385bbe[_0x1d9c04(0x103)],')')));})),_0x3ca035;}function _0x333ad5(_0x5723ea,_0x244bc3){var _0x2d91c3=_0x543230,_0x3886f1,_0x27aebf=_0x244bc3[_0x2d91c3(0x197)];return!_0x27aebf||_0x27aebf[_0x2d91c3(0x101)]===0x0?_0x5723ea:_0x5723ea[_0x2d91c3(0x148)]===_0x2d91c3(0xf5)&&(!((_0x3886f1=_0x5723ea['children'])===null||_0x3886f1===void 0x0)&&_0x3886f1[_0x2d91c3(0x101)])?_0x1bcaeb(_0x1bcaeb({},_0x5723ea),{'children':_0x5723ea[_0x2d91c3(0x15c)]['map'](function(_0x3c51a4){var _0x522883=_0x2d91c3;return typeof _0x3c51a4[_0x522883(0x1b4)]['id']==_0x522883(0xcd)&&_0x27aebf&&_0x27aebf[_0x522883(0xf0)](_0x3c51a4[_0x522883(0x1b4)]['id'])?_0x1bcaeb(_0x1bcaeb({},_0x3c51a4),{'attrs':_0x1bcaeb(_0x1bcaeb({},_0x3c51a4[_0x522883(0x1b4)]),{'id':_0x3c51a4[_0x522883(0x1b4)]['id']+_0x244bc3['idSuffix']})}):_0x3c51a4;})}):_0x5723ea;}function _0x42e3e3(){var _0x3e2538=_0x543230;return Math['random']()[_0x3e2538(0x163)](0x24)[_0x3e2538(0x12b)](0x2,0x8);}_0x221589[_0x543230(0x1a5)]=_0x543230(0x184);var _0x118035={'tag':_0x543230(0xd8),'attrs':{'xmlns':_0x543230(0x151),'fill':_0x543230(0x129),'viewBox':_0x543230(0x16e),'width':_0x543230(0x17d),'height':_0x543230(0x17d)},'children':[{'tag':'path','attrs':{'fill':_0x543230(0x19a),'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':'path','attrs':{'fill':_0x543230(0x19a),'d':_0x543230(0xec),'fillRule':_0x543230(0x14c),'clipRule':_0x543230(0x14c)}}]},_0x57962a=_0xcbca53['forwardRef'](function(_0x490d28,_0x19efb){var _0xed070c=_0x543230;return _0xcbca53[_0xed070c(0x192)](_0x221589,Object['assign']({},_0x490d28,{'id':_0xed070c(0x15f),'ref':_0x19efb,'icon':_0x118035}));});_0x57962a[_0x543230(0x1a5)]='LiveShareIcon';var _0x53dac3=Object['getOwnPropertyDescriptor'],_0x42fc35=(_0x958701,_0xfba911,_0x5b1d10,_0x2b1d32)=>{var _0x370c4e=_0x543230;for(var _0x4c43d4=_0x2b1d32>0x1?void 0x0:_0x2b1d32?_0x53dac3(_0xfba911,_0x5b1d10):_0xfba911,_0x1cc35b=_0x958701[_0x370c4e(0x101)]-0x1,_0x2518b3;_0x1cc35b>=0x0;_0x1cc35b--)(_0x2518b3=_0x958701[_0x1cc35b])&&(_0x4c43d4=_0x2518b3(_0x4c43d4)||_0x4c43d4);return _0x4c43d4;},_0x592f3d=(_0x385796,_0x32a0a6)=>(_0x4f8339,_0x381139)=>_0x32a0a6(_0x4f8339,_0x381139,_0x385796);_0x565b9d[_0x543230(0x11b)]=class extends _0x1036c4['RxDisposable']{constructor(_0x44106c,_0x5dbdfa,_0x131a5e){var _0x36560a=_0x543230;super(),_0xabe042(this,'_entities',new Map()),(this['_univerInstanceService']=_0x44106c,this[_0x36560a(0x1a2)]=_0x5dbdfa,this[_0x36560a(0x16f)]=_0x131a5e,this[_0x36560a(0xde)]());}async[_0x543230(0x186)](_0x4fab6a){var _0x1c8451=_0x543230;return this[_0x1c8451(0x11a)]['has'](_0x4fab6a)||await this[_0x1c8451(0x144)](_0x4fab6a),this[_0x1c8451(0x11a)]['get'](_0x4fab6a);}[_0x543230(0xde)](){var _0x78dd34=_0x543230;this['_univerInstanceService'][_0x78dd34(0x110)](_0x1036c4[_0x78dd34(0x17f)][_0x78dd34(0x183)])[_0x78dd34(0xea)](_0x483d17[_0x78dd34(0x1a6)](this[_0x78dd34(0x160)]))[_0x78dd34(0x1ad)](async _0x59d97b=>{var _0x4b373d=_0x78dd34;const _0x2d8710=_0x59d97b[_0x4b373d(0x149)]();this[_0x4b373d(0x11a)][_0x4b373d(0x196)](_0x2d8710)||this[_0x4b373d(0x144)](_0x2d8710);}),this['_univerInstanceService'][_0x78dd34(0x1b5)](_0x1036c4[_0x78dd34(0x17f)][_0x78dd34(0x183)])[_0x78dd34(0xea)](_0x483d17[_0x78dd34(0x1a6)](this[_0x78dd34(0x160)]))['subscribe'](_0x33e140=>{var _0x25a39d=_0x78dd34;const _0x5ee613=_0x33e140['getUnitId'](),_0x2524d4=this[_0x25a39d(0x11a)]['get'](_0x5ee613);_0x2524d4==null||_0x2524d4['dispose']();});}async[_0x543230(0x144)](_0x340d78){var _0x3cbc3e=_0x543230;const _0x1a2d0c=await this[_0x3cbc3e(0x16f)][_0x3cbc3e(0x169)](_0x340d78),_0x55b320=this[_0x3cbc3e(0x1a2)][_0x3cbc3e(0x18c)](_0x565b9d[_0x3cbc3e(0x190)],_0x340d78,_0x1a2d0c);return _0x55b320['init'](),this[_0x3cbc3e(0x11a)]['set'](_0x340d78,_0x55b320),_0x55b320;}},_0x565b9d[_0x543230(0x11b)]=_0x42fc35([_0x592f3d(0x0,_0x1036c4[_0x543230(0xfa)]),_0x592f3d(0x1,_0x1036c4['Inject'](_0x1036c4[_0x543230(0x102)])),_0x592f3d(0x2,_0x1036c4[_0x543230(0x187)](_0x30c176[_0x543230(0x165)]))],_0x565b9d[_0x543230(0x11b)]);var _0x1b37f6=(_0x1d60c8=>(_0x1d60c8['OFFLINE']=_0x543230(0x136),_0x1d60c8['IDLE']=_0x543230(0x118),_0x1d60c8['FOLLOWING']=_0x543230(0x1b6),_0x1d60c8[_0x543230(0x1a1)]='not-following',_0x1d60c8[_0x543230(0xe3)]=_0x543230(0x191),_0x1d60c8))(_0x1b37f6||{});const _0x10e68b=_0x543230(0x13a),_0x426489=0xc8;_0x565b9d['LiveShareCoordinator']=class extends _0x1036c4['RxDisposable']{constructor(_0x1546ab,_0x2e422a,_0x1a08e8,_0x37f176,_0x6fca2f){var _0x526763=_0x543230;super(),_0xabe042(this,_0x526763(0x139),new _0x978848[(_0x526763(0x17b))](_0x526763(0x118))),_0xabe042(this,_0x526763(0x1b1),this[_0x526763(0x139)]['asObservable']()),_0xabe042(this,'_init',!0x1),_0xabe042(this,_0x526763(0xf1),null),_0xabe042(this,_0x526763(0x12c),null),(this[_0x526763(0x1bf)]=_0x1546ab,this[_0x526763(0x193)]=_0x2e422a,this[_0x526763(0x12f)]=_0x1a08e8,this[_0x526763(0x116)]=_0x37f176,this[_0x526763(0x138)]=_0x6fca2f);}get['_status'](){var _0x4a472d=_0x543230;return this[_0x4a472d(0x139)][_0x4a472d(0xda)]();}[_0x543230(0x188)](){var _0x5611b5=_0x543230,_0x4291a1;(_0x4291a1=this[_0x5611b5(0xf1)])==null||_0x4291a1[_0x5611b5(0x188)](),this[_0x5611b5(0x139)][_0x5611b5(0x150)](_0x5611b5(0x118)),this[_0x5611b5(0x139)][_0x5611b5(0xf8)]();}[_0x543230(0x16a)](){var _0x2b9a4c=_0x543230;this[_0x2b9a4c(0xde)]||(this[_0x2b9a4c(0xde)]=!0x0,this[_0x2b9a4c(0x193)]['sessionStatus$']['pipe'](_0x483d17[_0x2b9a4c(0x1a6)](this[_0x2b9a4c(0x160)]))[_0x2b9a4c(0x1ad)](_0x187fb8=>{var _0x35a244=_0x2b9a4c;switch(_0x187fb8){case _0x30c176[_0x35a244(0x126)][_0x35a244(0x171)]:this[_0x35a244(0xed)]();break;case _0x30c176[_0x35a244(0x126)][_0x35a244(0x130)]:this[_0x35a244(0x156)]();break;}}),this['_collabSession'][_0x2b9a4c(0x106)][_0x2b9a4c(0xea)](_0x483d17[_0x2b9a4c(0x1a6)](this['dispose$']))[_0x2b9a4c(0x1ad)](_0x9610fd=>{var _0x57a6f3=_0x2b9a4c;const {eventID:_0x44836a}=_0x9610fd;switch(_0x44836a){case _0xfcf66[_0x57a6f3(0xcf)]['LIVESHARE_NEW_HOST']:this[_0x57a6f3(0x1a3)](_0x9610fd);break;case _0xfcf66[_0x57a6f3(0xcf)][_0x57a6f3(0x16d)]:this[_0x57a6f3(0x1ab)](_0x9610fd);break;case _0xfcf66['CollaborationEvent'][_0x57a6f3(0x152)]:this[_0x57a6f3(0x1bd)]();break;case _0xfcf66[_0x57a6f3(0xcf)][_0x57a6f3(0x115)]:this[_0x57a6f3(0xe9)](_0x9610fd);break;}}));}[_0x543230(0xe1)](){var _0x42a850=_0x543230;this[_0x42a850(0x193)][_0x42a850(0x185)]({'eventID':_0xfcf66[_0x42a850(0xcf)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x42a850(0x172)]()}},this['_unitID']);}['stopPresenting'](){var _0x527f49=_0x543230;this['_status']===_0x527f49(0x191)&&(this['_status$'][_0x527f49(0x150)](_0x527f49(0x118)),this[_0x527f49(0x193)][_0x527f49(0x185)]({'eventID':_0xfcf66[_0x527f49(0xcf)][_0x527f49(0x152)],'data':{'unitID':this[_0x527f49(0x1bf)]}},this['_unitID']));}[_0x543230(0x1ae)](){var _0xe822a4=_0x543230;this[_0xe822a4(0x114)]==='not-following'&&(this['_status$'][_0xe822a4(0x150)]('following'),this[_0xe822a4(0xce)]());}['stopFollowing'](){var _0x439843=_0x543230;this[_0x439843(0x114)]===_0x439843(0x1b6)&&this[_0x439843(0x1a8)]();}[_0x543230(0x1a3)](_0x4599f8){var _0x2fc713=_0x543230;const {presenter:_0x5d9048}=_0x4599f8[_0x2fc713(0x11d)],_0x4b161d=this[_0x2fc713(0x193)][_0x2fc713(0x172)]();this[_0x2fc713(0x12c)]=_0x5d9048,_0x5d9048===_0x4b161d?(this[_0x2fc713(0x1a8)](),this['_startPresenting']()):this[_0x2fc713(0x114)]!=='not-following'&&(this['_stopPresenting'](),this[_0x2fc713(0xce)]());}[_0x543230(0xcb)](){var _0x12c77c=_0x543230;const _0x12c6ca={'eventID':_0xfcf66[_0x12c77c(0xcf)][_0x12c77c(0x15d)]};this[_0x12c77c(0x193)][_0x12c77c(0x185)](_0x12c6ca,this[_0x12c77c(0x1bf)]);}[_0x543230(0x1bd)](){var _0x113e75=_0x543230;this[_0x113e75(0x12c)]=null,this[_0x113e75(0x114)]!==_0x113e75(0x191)&&this[_0x113e75(0x15e)]();}[_0x543230(0xe9)](_0x39c9ab){var _0x3483d1=_0x543230;if(this['_status']===_0x3483d1(0x1b6)&&this[_0x3483d1(0x12c)]===_0x39c9ab['data'][_0x3483d1(0x1c0)]){const _0x5a5370=_0xfcf66[_0x3483d1(0x168)](_0x39c9ab[_0x3483d1(0x11d)])[_0x3483d1(0x120)]['reverse']()['find'](_0x2f86cf=>_0x2f86cf['id']===_0x6b5b[_0x3483d1(0xd9)]['id']);if(_0x5a5370){const _0x2bb471=_0x5a5370['params'][_0x3483d1(0xee)],_0x66d006=_0x5a5370[_0x3483d1(0x1a7)][_0x3483d1(0x153)]['id'];setTimeout(()=>{var _0x519b49=_0x3483d1;this[_0x519b49(0x138)][_0x519b49(0x194)](_0x6b5b[_0x519b49(0x18d)]['id'],{'unitId':_0x2bb471,'subUnitId':_0x66d006},{'fromCollab':!0x0});});}}}[_0x543230(0x1af)](){var _0x3a15e3=_0x543230;this[_0x3a15e3(0x139)][_0x3a15e3(0x150)](_0x3a15e3(0x191));const _0x5008a5=new Map(),_0x1acf26=this[_0x3a15e3(0xf1)]=new _0x1036c4[(_0x3a15e3(0x189))]();_0x1acf26[_0x3a15e3(0xdf)](_0x1036c4['toDisposable'](()=>{var _0x169880=_0x3a15e3;_0x5008a5[_0x169880(0x14a)](_0x3f8f92=>_0x3f8f92[_0x169880(0xf8)]()),_0x5008a5[_0x169880(0x1a9)]();})),_0x1acf26['add'](this[_0x3a15e3(0x138)][_0x3a15e3(0x147)](_0x26d0d3=>{var _0x4b6e81=_0x3a15e3,_0x5a7063;if(_0x26d0d3[_0x4b6e81(0x17e)]!==_0x1036c4[_0x4b6e81(0x162)][_0x4b6e81(0x111)]||!this[_0x4b6e81(0x116)]['shouldShareOperation'](_0x26d0d3['id']))return;const {id:_0x1048fa}=_0x26d0d3;let _0x5dd920;_0x5008a5[_0x4b6e81(0x196)](_0x1048fa)?_0x5dd920=_0x5008a5[_0x4b6e81(0x18f)](_0x1048fa):(_0x5dd920=new _0x978848[(_0x4b6e81(0x125))](),_0x5008a5[_0x4b6e81(0xdc)](_0x1048fa,_0x5dd920),_0x5dd920[_0x4b6e81(0xea)](_0x483d17[_0x4b6e81(0x1b3)]((_0x5a7063=this[_0x4b6e81(0x12f)][_0x4b6e81(0x14f)](_0x10e68b))!=null?_0x5a7063:_0x426489,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x28dc9c=>{var _0xbdc4b0=_0x4b6e81;this[_0xbdc4b0(0x193)][_0xbdc4b0(0x185)]({'eventID':_0xfcf66['CollaborationEvent'][_0xbdc4b0(0x16d)],'data':{'unitID':this[_0xbdc4b0(0x1bf)],'operations':{[_0x28dc9c['id']]:{'id':_0x28dc9c['id'],'params':JSON[_0xbdc4b0(0x14d)](_0x28dc9c['params'])}}}},this[_0xbdc4b0(0x1bf)]);})),_0x5dd920[_0x4b6e81(0x150)](_0x26d0d3);})),this['_liveShareService'][_0x3a15e3(0xe5)](this[_0x3a15e3(0x1bf)])[_0x3a15e3(0x14a)](_0x575727=>this[_0x3a15e3(0x193)][_0x3a15e3(0x185)]({'eventID':_0xfcf66[_0x3a15e3(0xcf)][_0x3a15e3(0x16d)],'data':{'unitID':this[_0x3a15e3(0x1bf)],'operations':{[_0x575727['id']]:{'id':_0x575727['id'],'params':JSON[_0x3a15e3(0x14d)](_0x575727[_0x3a15e3(0x1a7)])}}}},this[_0x3a15e3(0x1bf)]));}['_stopPresenting'](){var _0x33c77f=_0x543230,_0x156987;this[_0x33c77f(0x139)]['next'](_0x33c77f(0x118)),(_0x156987=this[_0x33c77f(0xf1)])==null||_0x156987[_0x33c77f(0x188)](),this[_0x33c77f(0xf1)]=null;}[_0x543230(0xce)](){var _0x1897d9=_0x543230,_0x50884c;(_0x50884c=this[_0x1897d9(0xf1)])==null||_0x50884c['dispose'](),this[_0x1897d9(0x139)][_0x1897d9(0x150)]('following');}[_0x543230(0x15e)](){var _0x26ba26=_0x543230,_0x139c7c;this[_0x26ba26(0x139)]['next'](_0x26ba26(0x118)),(_0x139c7c=this['_commandDisposable'])==null||_0x139c7c[_0x26ba26(0x188)](),this[_0x26ba26(0xf1)]=null;}[_0x543230(0x1a8)](){var _0x312e2f=_0x543230,_0x18b540;this[_0x312e2f(0x139)][_0x312e2f(0x150)](_0x312e2f(0x161)),(_0x18b540=this[_0x312e2f(0xf1)])==null||_0x18b540[_0x312e2f(0x188)]();}['_handleOperation'](_0x1ea257){var _0x299b0f=_0x543230;if([_0x299b0f(0x191),'not-following',_0x299b0f(0x136)][_0x299b0f(0xf0)](this[_0x299b0f(0x114)])||!_0x1ea257[_0x299b0f(0x11d)][_0x299b0f(0x1ac)]||_0x1ea257[_0x299b0f(0x11d)][_0x299b0f(0x1ac)]===this[_0x299b0f(0x193)][_0x299b0f(0x172)]())return;this['_status']===_0x299b0f(0x118)&&this[_0x299b0f(0xce)]();const _0x6665a9=_0x1ea257[_0x299b0f(0x11d)]['operations'];Object[_0x299b0f(0x127)](_0x6665a9)['forEach'](_0x4325d5=>{var _0x550117=_0x299b0f;this[_0x550117(0x138)]['executeCommand'](_0x4325d5['id'],_0x4325d5[_0x550117(0x1a7)]?JSON[_0x550117(0x1bb)](_0x4325d5[_0x550117(0x1a7)]):null,{'fromCollab':!0x0});});}[_0x543230(0xed)](){var _0x1e3d41=_0x543230,_0x50c9c1;this['_status$'][_0x1e3d41(0x150)](_0x1e3d41(0x136)),(_0x50c9c1=this['_commandDisposable'])==null||_0x50c9c1[_0x1e3d41(0x188)]();}['_handleOnline'](){var _0x4343f3=_0x543230;this['_status$'][_0x4343f3(0x150)]('idle'),this[_0x4343f3(0xcb)]();}},_0x565b9d['LiveShareCoordinator']=_0x42fc35([_0x592f3d(0x2,_0x1036c4[_0x543230(0x182)]),_0x592f3d(0x3,_0x1036c4[_0x543230(0x187)](_0x50f0d8)),_0x592f3d(0x4,_0x1036c4[_0x543230(0xf7)])],_0x565b9d['LiveShareCoordinator']);function _0x4819eb(){var _0x4932e7=_0x543230;const _0xf2dbd4=_0x42a8f4[_0x4932e7(0xd7)](_0x565b9d[_0x4932e7(0x11b)]),_0x5b4b8f=_0x42a8f4['useDependency'](_0x1036c4[_0x4932e7(0xfa)]),_0x3b6f18=_0x42a8f4[_0x4932e7(0x14b)](()=>_0x5b4b8f[_0x4932e7(0x18e)](_0x1036c4['UniverInstanceType'][_0x4932e7(0x183)]),void 0x0,!0x1,[]),[_0x308a51,_0x4bbe5c]=_0xcbca53[_0x4932e7(0xe0)](null),[_0x56171f,_0x40932a]=_0xcbca53[_0x4932e7(0xe0)](_0x1b37f6[_0x4932e7(0x117)]),_0x4585eb=_0xcbca53['useRef'](null);return _0xcbca53['useEffect'](()=>(_0x3b6f18&&_0xf2dbd4[_0x4932e7(0x186)](_0x3b6f18['getUnitId']())[_0x4932e7(0x19e)](_0x1ccf3a=>{var _0x47af24=_0x4932e7;_0x4bbe5c(_0x1ccf3a),_0x4585eb[_0x47af24(0x105)]=_0x1ccf3a['status$']['subscribe'](_0x275dac=>{_0x40932a(_0x275dac);});}),()=>{var _0x53086c=_0x4932e7,_0x1b12c8;(_0x1b12c8=_0x4585eb[_0x53086c(0x105)])==null||_0x1b12c8[_0x53086c(0xf9)](),_0x4585eb[_0x53086c(0x105)]=null;}),[_0x3b6f18,_0xf2dbd4]),_0x308a51?_0x30007c[_0x4932e7(0x12a)](_0x3f92b9[_0x4932e7(0x154)],{'align':'end','disabled':_0x56171f===_0x1b37f6['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':_0x30007c['jsx'](_0x102854,{'status':_0x56171f,'coordinator':_0x308a51}),'children':_0x30007c[_0x4932e7(0x12a)](_0x4932e7(0x108),{'className':_0x3f92b9['clsx']('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x56171f===_0x1b37f6[_0x4932e7(0x171)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56171f!==_0x1b37f6[_0x4932e7(0x171)]}),'type':_0x4932e7(0x108),'children':_0x30007c[_0x4932e7(0x12a)](_0x57962a,{'className':_0x4932e7(0x167)})})}):null;}function _0x102854(_0x1de96f){var _0x325759=_0x543230;const {status:_0x45a3bb,coordinator:_0x32811a}=_0x1de96f;switch(_0x45a3bb){case _0x1b37f6['IDLE']:return _0x30007c[_0x325759(0x12a)](_0x3c9c49,{'coordinator':_0x32811a});case _0x1b37f6['FOLLOWING']:return _0x30007c[_0x325759(0x12a)](_0x24abf9,{'coordinator':_0x32811a});case _0x1b37f6['NOT_FOLLOWING']:return _0x30007c[_0x325759(0x12a)](_0x387bc2,{'coordinator':_0x32811a});case _0x1b37f6[_0x325759(0x171)]:return _0x30007c[_0x325759(0x12a)](_0x1dd38f,{});case _0x1b37f6[_0x325759(0xe3)]:return _0x30007c['jsx'](_0x189a5f,{'coordinator':_0x32811a});default:return null;}}function _0x3c9c49(_0x46d494){var _0x22ad8e=_0x543230;const {coordinator:_0x19beb9}=_0x46d494;return _0x30007c[_0x22ad8e(0x146)](_0x30007c[_0x22ad8e(0xd5)],{'children':[_0x30007c['jsx'](_0x22ad8e(0x10a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x22ad8e(0x137)}),_0x30007c[_0x22ad8e(0x12a)](_0x3f92b9[_0x22ad8e(0xe4)],{'onClick':()=>_0x19beb9[_0x22ad8e(0xe1)](),'children':_0x22ad8e(0x195)})]});}function _0x24abf9(_0x56dafb){var _0x57499a=_0x543230;const {coordinator:_0x38299c}=_0x56dafb;return _0x30007c[_0x57499a(0x146)](_0x30007c[_0x57499a(0xd5)],{'children':[_0x30007c['jsx'](_0x57499a(0x10a),{'className':_0x57499a(0x133),'children':_0x57499a(0x176)}),_0x30007c[_0x57499a(0x12a)](_0x3f92b9[_0x57499a(0xe4)],{'onClick':()=>_0x38299c[_0x57499a(0x177)](),'children':_0x57499a(0xd2)})]});}function _0x387bc2(_0x4885e5){var _0xcd02af=_0x543230;const {coordinator:_0x5aae4c}=_0x4885e5;return _0x30007c['jsxs'](_0x30007c[_0xcd02af(0xd5)],{'children':[_0x30007c[_0xcd02af(0x12a)](_0xcd02af(0x10a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0xcd02af(0x181)}),_0x30007c[_0xcd02af(0x12a)](_0x3f92b9['Button'],{'variant':'text','onClick':()=>_0x5aae4c[_0xcd02af(0x1ae)](),'children':_0xcd02af(0x10e)})]});}function _0x189a5f(_0x307da6){var _0x1a24f5=_0x543230;const {coordinator:_0x5c11c0}=_0x307da6;return _0x30007c['jsxs'](_0x30007c['Fragment'],{'children':[_0x30007c[_0x1a24f5(0x12a)](_0x1a24f5(0x10a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1a24f5(0x159)}),_0x30007c[_0x1a24f5(0x12a)](_0x3f92b9[_0x1a24f5(0xe4)],{'variant':_0x1a24f5(0x123),'onClick':()=>_0x5c11c0[_0x1a24f5(0xe7)](),'children':_0x1a24f5(0x1a0)})]});}function _0x1dd38f(){var _0x283a7e=_0x543230;return _0x30007c[_0x283a7e(0x12a)](_0x30007c[_0x283a7e(0xd5)],{'children':_0x283a7e(0x15a)});}var _0xe05321=Object[_0x543230(0xff)],_0x4b5716=(_0x55b308,_0x2c6bc2,_0xfb9a4a,_0x1bf91d)=>{for(var _0xeb4007=_0x1bf91d>0x1?void 0x0:_0x1bf91d?_0xe05321(_0x2c6bc2,_0xfb9a4a):_0x2c6bc2,_0x102e26=_0x55b308['length']-0x1,_0x1ae276;_0x102e26>=0x0;_0x102e26--)(_0x1ae276=_0x55b308[_0x102e26])&&(_0xeb4007=_0x1ae276(_0xeb4007)||_0xeb4007);return _0xeb4007;},_0x20de6d=(_0x6083f,_0x44e4a2)=>(_0x1d7445,_0x1aaaa1)=>_0x44e4a2(_0x1d7445,_0x1aaaa1,_0x6083f);_0x565b9d[_0x543230(0xd0)]=class extends _0x1036c4['Disposable']{constructor(_0x4d55af,_0x47a9c7){var _0x2f1fa2=_0x543230;super(),this[_0x2f1fa2(0x1a2)]=_0x4d55af,this[_0x2f1fa2(0xfb)]=_0x47a9c7,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x2087e7=_0x543230;this['disposeWithMe'](this['_uiPartsService'][_0x2087e7(0x175)](_0x42a8f4['BuiltInUIPart'][_0x2087e7(0x164)],()=>_0x42a8f4[_0x2087e7(0x17c)](_0x4819eb,this[_0x2087e7(0x1a2)])));}},_0x565b9d[_0x543230(0xd0)]=_0x4b5716([_0x20de6d(0x0,_0x1036c4[_0x543230(0x187)](_0x1036c4[_0x543230(0x102)])),_0x20de6d(0x1,_0x42a8f4[_0x543230(0x10b)])],_0x565b9d[_0x543230(0xd0)]);var _0x582e0f=Object[_0x543230(0x179)],_0x617bfb=Object[_0x543230(0xff)],_0x31a484=(_0x5931aa,_0x25db84,_0x4e9deb)=>_0x25db84 in _0x5931aa?_0x582e0f(_0x5931aa,_0x25db84,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e9deb}):_0x5931aa[_0x25db84]=_0x4e9deb,_0x4e1dfe=(_0x197b76,_0x6e59cb,_0x3d8265,_0x8f2c9e)=>{var _0x9c8cf9=_0x543230;for(var _0x4ec800=_0x8f2c9e>0x1?void 0x0:_0x8f2c9e?_0x617bfb(_0x6e59cb,_0x3d8265):_0x6e59cb,_0x32d688=_0x197b76[_0x9c8cf9(0x101)]-0x1,_0x1cec52;_0x32d688>=0x0;_0x32d688--)(_0x1cec52=_0x197b76[_0x32d688])&&(_0x4ec800=_0x1cec52(_0x4ec800)||_0x4ec800);return _0x4ec800;},_0x4b20f7=(_0x26d5e1,_0x1d584a)=>(_0x3942d0,_0x198778)=>_0x1d584a(_0x3942d0,_0x198778,_0x26d5e1),_0x2359e0=(_0x2703a3,_0x4643f4,_0x480951)=>_0x31a484(_0x2703a3,typeof _0x4643f4!=_0x543230(0xdb)?_0x4643f4+'':_0x4643f4,_0x480951);const _0x332cea=_0x543230(0x155);_0x565b9d['UniverLiveSharePlugin']=class extends _0x1036c4[_0x543230(0x10f)]{constructor(_0x15357c=_0x4e279d,_0x14f1e2,_0x20e8fd){var _0x44aa05=_0x543230;super(),this[_0x44aa05(0x13d)]=_0x15357c,this[_0x44aa05(0x1a2)]=_0x14f1e2,this['_configService']=_0x20e8fd;const {..._0x2dd3ad}=_0x1036c4[_0x44aa05(0x107)]({},_0x4e279d,this['_config']);this[_0x44aa05(0x12f)][_0x44aa05(0x13f)](_0x5991ee,_0x2dd3ad);}['onStarting'](){var _0x46aca1=_0x543230;_0x1036c4['registerDependencies'](this[_0x46aca1(0x1a2)],_0x1036c4['mergeOverrideWithDependencies']([[_0x50f0d8],[_0x565b9d[_0x46aca1(0x11b)]],[_0xff3e31],[_0x565b9d[_0x46aca1(0xd0)]]],this[_0x46aca1(0x13d)][_0x46aca1(0x124)])),_0x1036c4[_0x46aca1(0xf3)](this[_0x46aca1(0x1a2)],[[_0xff3e31]]);}[_0x543230(0xd4)](){var _0xa5ebbf=_0x543230;_0x1036c4['touchDependencies'](this[_0xa5ebbf(0x1a2)],[[_0x565b9d[_0xa5ebbf(0xd0)]]]);}},_0x2359e0(_0x565b9d['UniverLiveSharePlugin'],_0x543230(0x17e),_0x1036c4[_0x543230(0x17f)]['UNIVER_UNKNOWN']),_0x2359e0(_0x565b9d[_0x543230(0xdd)],_0x543230(0x19c),_0x332cea),_0x565b9d[_0x543230(0xdd)]=_0x4e1dfe([_0x1036c4[_0x543230(0xfe)](_0x30c176['UniverCollaborationClientPlugin']),_0x4b20f7(0x1,_0x1036c4[_0x543230(0x187)](_0x1036c4[_0x543230(0x102)])),_0x4b20f7(0x2,_0x1036c4[_0x543230(0x182)])],_0x565b9d['UniverLiveSharePlugin']),_0x565b9d[_0x543230(0xf2)]=_0x4819eb,_0x565b9d['LiveShareService']=_0x50f0d8,_0x565b9d[_0x543230(0xe6)]=_0x1b37f6,Object[_0x543230(0x179)](_0x565b9d,Symbol[_0x543230(0x131)],{'value':_0x543230(0x170)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.0-nightly.
|
|
3
|
+
"version": "0.8.0-nightly.202506091607",
|
|
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.4",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.0-nightly.
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/sheets": "0.8.0-nightly.
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs
|
|
56
|
-
"@univerjs/ui": "0.8.0-nightly.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.8.0-nightly.202506091607",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.8.0-nightly.202506091607",
|
|
52
|
+
"@univerjs/core": "0.8.0-nightly.202506091607",
|
|
53
|
+
"@univerjs/sheets": "0.8.0-nightly.202506091607",
|
|
54
|
+
"@univerjs/design": "0.8.0-nightly.202506091607",
|
|
55
|
+
"@univerjs/sheets-ui": "0.8.0-nightly.202506091607",
|
|
56
|
+
"@univerjs/ui": "0.8.0-nightly.202506091607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.4",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
65
|
"vitest": "^3.2.0",
|
|
66
|
-
"@univerjs
|
|
67
|
-
"@univerjs/
|
|
66
|
+
"@univerjs/protocol": "0.1.47-alpha.0",
|
|
67
|
+
"@univerjs-infra/shared": "0.8.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|