@univerjs-pro/live-share 0.12.2-experimental.20251202-45172c6 → 0.12.2-experimental.20251202-7f1a98f
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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x586d(){const _0x1ba29c=['getActiveSheet','1092kFlswN','596eLbTlR','getId','1489zogwSm','extend','FRange','_initialize','326lfYaAA','LiveShareController','stopPresenting','startRow','254493WIUcFB','getSheetId','1138376zZFysc','executeCommand','LiveShareStatus','getStatus','get','startPresenting','getUnitId','29840ieoVIH','IDLE','_injector','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','_commandService','1110xlwoQU','startFollowing','IRenderManagerService','22566SSfqzu','stopFollowing','syncExecuteCommand','406549WvgxnZ','FEnum','470IuMcut','PRESENTING','getActiveWorkbook','FUniver','10908002WccEcn','getRenderById','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x586d=function(){return _0x1ba29c;};return _0x586d();}const _0x18db74=_0x12af;(function(_0x90426d,_0x56ea90){const _0x43967f=_0x12af,_0x428dad=_0x90426d();while(!![]){try{const _0x44be37=parseInt(_0x43967f(0x1d1))/0x1*(parseInt(_0x43967f(0x1d5))/0x2)+parseInt(_0x43967f(0x1c1))/0x3*(parseInt(_0x43967f(0x1cf))/0x4)+parseInt(_0x43967f(0x1b8))/0x5*(-parseInt(_0x43967f(0x1be))/0x6)+-parseInt(_0x43967f(0x1ca))/0x7+parseInt(_0x43967f(0x1b1))/0x8+-parseInt(_0x43967f(0x1af))/0x9*(parseInt(_0x43967f(0x1c6))/0xa)+-parseInt(_0x43967f(0x1c4))/0xb*(-parseInt(_0x43967f(0x1ce))/0xc);if(_0x44be37===_0x56ea90)break;else _0x428dad['push'](_0x428dad['shift']());}catch(_0x2ca88b){_0x428dad['push'](_0x428dad['shift']());}}}(_0x586d,0xd6462));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d['FRange']{[_0x18db74(0x1d4)](_0x2cbaaa,_0x28b4d5,_0x5264cd,_0x5221dc,_0x5033c7){const _0x9901c5=_0x18db74,_0x225bee=_0x2cbaaa[_0x9901c5(0x1b5)](n[_0x9901c5(0x1ac)]),_0x1a8a58=_0x2cbaaa[_0x9901c5(0x1b5)](g[_0x9901c5(0x1c0)]),_0x41489d=_0x28b4d5[_0x9901c5(0x1b7)](),_0x5da509=_0x28b4d5[_0x9901c5(0x1cd)](),_0x4fea1e=_0x225bee['getLiveShareCoordinatorSync'](_0x41489d);(_0x4fea1e==null?void 0x0:_0x4fea1e[_0x9901c5(0x1b4)]())!==n[_0x9901c5(0x1b3)][_0x9901c5(0x1c7)]||(_0x5264cd[_0x9901c5(0x1b0)]()!==_0x5da509[_0x9901c5(0x1b0)]()&&this[_0x9901c5(0x1bd)][_0x9901c5(0x1b2)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x41489d,'subUnitId':_0x5264cd[_0x9901c5(0x1b0)]()}),!_0x1a8a58[_0x9901c5(0x1cb)](_0x41489d))||_0x5033c7[_0x9901c5(0x1c3)](f['SetScrollOperation']['id'],{'unitId':_0x28b4d5[_0x9901c5(0x1b7)](),'sheetId':_0x5264cd[_0x9901c5(0x1b0)](),'sheetViewStartRow':_0x5221dc[_0x9901c5(0x1ae)],'sheetViewStartColumn':_0x5221dc['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x12af(_0x3c4559,_0x1afc67){const _0x586da5=_0x586d();return _0x12af=function(_0x12af24,_0x3b624a){_0x12af24=_0x12af24-0x1ac;let _0x365e02=_0x586da5[_0x12af24];return _0x365e02;},_0x12af(_0x3c4559,_0x1afc67);}d[_0x18db74(0x1d3)][_0x18db74(0x1d2)](w);class C extends a[_0x18db74(0x1c9)]{['getLiveShareStatus'](){const _0x568969=_0x18db74;var _0x5f904,_0x1e8dcb;const _0x5dc24d=this[_0x568969(0x1ba)]['get'](n[_0x568969(0x1ac)]),_0x3abfeb=(_0x5f904=this[_0x568969(0x1c8)]())==null?void 0x0:_0x5f904[_0x568969(0x1d0)]();if(!_0x3abfeb)throw new Error(_0x568969(0x1bc));const _0x3a131f=_0x5dc24d[_0x568969(0x1bb)](_0x3abfeb);return(_0x1e8dcb=_0x3a131f==null?void 0x0:_0x3a131f[_0x568969(0x1b4)]())!=null?_0x1e8dcb:n[_0x568969(0x1b3)][_0x568969(0x1b9)];}[_0x18db74(0x1bf)](){const _0x3ae42b=_0x18db74;var _0x316ab4;const _0x642381=this[_0x3ae42b(0x1ba)][_0x3ae42b(0x1b5)](n[_0x3ae42b(0x1ac)]),_0x589f77=(_0x316ab4=this[_0x3ae42b(0x1c8)]())==null?void 0x0:_0x316ab4[_0x3ae42b(0x1d0)]();if(!_0x589f77)throw new Error('No\x20active\x20workbook\x20found.');const _0x1c069b=_0x642381[_0x3ae42b(0x1bb)](_0x589f77);if(!_0x1c069b)throw new Error(_0x3ae42b(0x1cc));_0x1c069b['startFollowing']();}['stopFollowing'](){const _0x3e3167=_0x18db74;var _0x4f7ea4;const _0x1c702d=this[_0x3e3167(0x1ba)][_0x3e3167(0x1b5)](n['LiveShareController']),_0x1b3e1e=(_0x4f7ea4=this[_0x3e3167(0x1c8)]())==null?void 0x0:_0x4f7ea4['getId']();if(!_0x1b3e1e)throw new Error('No\x20active\x20workbook\x20found.');const _0x35c04e=_0x1c702d[_0x3e3167(0x1bb)](_0x1b3e1e);if(!_0x35c04e)throw new Error(_0x3e3167(0x1cc));_0x35c04e[_0x3e3167(0x1c2)]();}[_0x18db74(0x1b6)](){const _0x586954=_0x18db74;var _0x386add;const _0x2c5ab4=this['_injector']['get'](n[_0x586954(0x1ac)]),_0xc31006=(_0x386add=this['getActiveWorkbook']())==null?void 0x0:_0x386add[_0x586954(0x1d0)]();if(!_0xc31006)throw new Error(_0x586954(0x1bc));const _0x1d7844=_0x2c5ab4[_0x586954(0x1bb)](_0xc31006);if(!_0x1d7844)throw new Error(_0x586954(0x1cc));_0x1d7844['tryStartPresenting']();}['stopPresenting'](){const _0x59982c=_0x18db74;var _0x22025f;const _0x1c040f=this['_injector'][_0x59982c(0x1b5)](n[_0x59982c(0x1ac)]),_0x519e26=(_0x22025f=this['getActiveWorkbook']())==null?void 0x0:_0x22025f[_0x59982c(0x1d0)]();if(!_0x519e26)throw new Error(_0x59982c(0x1bc));const _0x5438e3=_0x1c040f['getLiveShareCoordinatorSync'](_0x519e26);if(!_0x5438e3)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5438e3[_0x59982c(0x1ad)]();}}a['FUniver'][_0x18db74(0x1d2)](C);class L extends a[_0x18db74(0x1c5)]{get['LiveShareStatusEnum'](){const _0x354cb1=_0x18db74;return n[_0x354cb1(0x1b3)];}}a[_0x18db74(0x1c5)]['extend'](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x46cccf=_0x4de5;(function(_0x1681db,_0x41b78e){const _0x2eb5f3=_0x4de5,_0x4b658b=_0x1681db();while(!![]){try{const _0x2fa4a7=-parseInt(_0x2eb5f3(0x154))/0x1*(parseInt(_0x2eb5f3(0x1ac))/0x2)+-parseInt(_0x2eb5f3(0x1b1))/0x3*(-parseInt(_0x2eb5f3(0x1cb))/0x4)+parseInt(_0x2eb5f3(0x18f))/0x5+parseInt(_0x2eb5f3(0x160))/0x6*(-parseInt(_0x2eb5f3(0x172))/0x7)+-parseInt(_0x2eb5f3(0x15e))/0x8*(-parseInt(_0x2eb5f3(0x126))/0x9)+parseInt(_0x2eb5f3(0x1cf))/0xa*(-parseInt(_0x2eb5f3(0x197))/0xb)+-parseInt(_0x2eb5f3(0x18c))/0xc*(-parseInt(_0x2eb5f3(0x125))/0xd);if(_0x2fa4a7===_0x41b78e)break;else _0x4b658b['push'](_0x4b658b['shift']());}catch(_0x3c7e1b){_0x4b658b['push'](_0x4b658b['shift']());}}}(_0x259c,0x5cb36));var T=Object[_0x46cccf(0x1b6)],U=(_0x8e40ce,_0x456470,_0x32382c)=>_0x456470 in _0x8e40ce?T(_0x8e40ce,_0x456470,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32382c}):_0x8e40ce[_0x456470]=_0x32382c,_=(_0xbb1fce,_0x573ad5,_0x45dc3c)=>U(_0xbb1fce,typeof _0x573ad5!=_0x46cccf(0x1bf)?_0x573ad5+'':_0x573ad5,_0x45dc3c);Object[_0x46cccf(0x1b6)](exports,Symbol[_0x46cccf(0x171)],{'value':_0x46cccf(0x1e3)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x54a9f5,..._0x5e2218}){const _0x2537cb=_0x46cccf,{icon:_0x1eb749,id:_0x30cd22,className:_0x457bcb,extend:_0xcf974e,..._0x24e4cb}=_0x5e2218,_0x470dd4=(_0x2537cb(0x174)+_0x30cd22+'\x20'+(_0x457bcb||''))[_0x2537cb(0x146)](),_0x4afc15=v[_0x2537cb(0x122)]('_'+H());return j(_0x1eb749,''+_0x30cd22,{'defIds':_0x1eb749['defIds'],'idSuffix':_0x4afc15[_0x2537cb(0x167)]},{'ref':_0x54a9f5,'className':_0x470dd4,..._0x24e4cb},_0xcf974e);}function j(_0x242da5,_0x57bf67,_0x38d9f1,_0x396ab2,_0x35d5f5){const _0x4d6f4a=_0x46cccf;return v[_0x4d6f4a(0x17b)](_0x242da5[_0x4d6f4a(0x1aa)],{'key':_0x57bf67,...y(_0x242da5,_0x38d9f1,_0x35d5f5),..._0x396ab2},(F(_0x242da5,_0x38d9f1)['children']||[])['map']((_0x34e580,_0x230775)=>j(_0x34e580,_0x57bf67+'-'+_0x242da5[_0x4d6f4a(0x1aa)]+'-'+_0x230775,_0x38d9f1,void 0x0,_0x35d5f5)));}function y(_0x2e626f,_0x28d09f,_0x253b46){const _0x3e4e36=_0x46cccf,_0x3aca9a={..._0x2e626f[_0x3e4e36(0x1bc)]};_0x253b46!=null&&_0x253b46[_0x3e4e36(0x13a)]&&_0x3aca9a[_0x3e4e36(0x19d)]==='colorChannel1'&&(_0x3aca9a['fill']=_0x253b46[_0x3e4e36(0x13a)]),_0x2e626f[_0x3e4e36(0x1aa)]===_0x3e4e36(0x1e8)&&_0x3aca9a['id']&&(_0x3aca9a['id']=_0x3aca9a['id']+_0x28d09f[_0x3e4e36(0x151)]),Object[_0x3e4e36(0x152)](_0x3aca9a)['forEach'](([_0xb7f9d8,_0x41603e])=>{const _0x479ff7=_0x3e4e36;_0xb7f9d8===_0x479ff7(0x1e8)&&typeof _0x41603e==_0x479ff7(0x14a)&&(_0x3aca9a[_0xb7f9d8]=_0x41603e['replace'](/url\(#(.*)\)/,_0x479ff7(0x11d)+_0x28d09f[_0x479ff7(0x151)]+')'));});const {defIds:_0x1b2764}=_0x28d09f;return!_0x1b2764||_0x1b2764['length']===0x0||(_0x2e626f['tag']===_0x3e4e36(0x16b)&&_0x3aca9a[_0x3e4e36(0x16d)]&&(_0x3aca9a[_0x3e4e36(0x16d)]=_0x3aca9a[_0x3e4e36(0x16d)]+_0x28d09f['idSuffix']),Object[_0x3e4e36(0x152)](_0x3aca9a)[_0x3e4e36(0x130)](([_0x5deba9,_0x15a696])=>{const _0x272de7=_0x3e4e36;typeof _0x15a696==_0x272de7(0x14a)&&(_0x3aca9a[_0x5deba9]=_0x15a696[_0x272de7(0x1cc)](/url\(#(.*)\)/,_0x272de7(0x11d)+_0x28d09f[_0x272de7(0x151)]+')'));})),_0x3aca9a;}function F(_0x3604f4,_0x4808b4){const _0x4f7d20=_0x46cccf;var _0x373c4b;const {defIds:_0x3ba0f0}=_0x4808b4;return!_0x3ba0f0||_0x3ba0f0[_0x4f7d20(0x1ab)]===0x0?_0x3604f4:_0x3604f4[_0x4f7d20(0x1aa)]==='defs'&&((_0x373c4b=_0x3604f4[_0x4f7d20(0x187)])!=null&&_0x373c4b[_0x4f7d20(0x1ab)])?{..._0x3604f4,'children':_0x3604f4[_0x4f7d20(0x187)][_0x4f7d20(0x1c5)](_0x31e9d8=>typeof _0x31e9d8[_0x4f7d20(0x1bc)]['id']=='string'&&_0x3ba0f0&&_0x3ba0f0[_0x4f7d20(0x164)](_0x31e9d8[_0x4f7d20(0x1bc)]['id'])?{..._0x31e9d8,'attrs':{..._0x31e9d8[_0x4f7d20(0x1bc)],'id':_0x31e9d8['attrs']['id']+_0x4808b4['idSuffix']}}:_0x31e9d8)}:_0x3604f4;}function H(){const _0x1805e3=_0x46cccf;return Math[_0x1805e3(0x1e1)]()[_0x1805e3(0x1d7)](0x24)[_0x1805e3(0x12d)](0x2,0x8);}x[_0x46cccf(0x1b7)]=_0x46cccf(0x189);function _0x259c(){const _0x324080=['substring','toDisposable','useState','forEach','RxDisposable','LIVESHARE_NEW_HOST','UniverLiveSharePlugin','getConfig','DisposableCollection','stopPresenting','_status','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareStatus','colorChannel1','presenting','currentColor','SetScrollOperation','OFFLINE','_config','UNIVER_SHEET','LiveShareCoordinator','sessionStatus$','getMemberID','registerDependencies','takeUntil','trim','SessionStatus','_collabSession','assign','string','live-share-icon','jsx','delete','from','_commandService','BehaviorSubject','idSuffix','entries','univer-size-4','3Qkjzpl','_entities','You\x27re\x20presenting\x20the\x20document','IUIPartsService','You\x27are\x20offline.','Subject','DesktopLiveShareController','_handleOnline','LiveShareIcon','SetZoomRatioOperation','8mgHCss','send','1503990BVPFnJ','IConfigService','_mountLiveShare','Injector','includes','_sharedOperations','getLiveShareCoordinator','current','stringify','following','FOLLOWING','use','_init','xlink:href','IUniverInstanceService','_beIdle','You\x27re\x20following\x20the\x20presenter','toStringTag','21TIDeIA','startFollowing','univerjs-icon\x20univerjs-icon-','Plugin','getInitialStates','registerComponent','DependentOn','getTypeOfUnitDisposed$','dispose','createElement','0\x200\x2017\x2017','NEW_CHANGESETS','mutations','params','_commandDisposable','getOwnPropertyDescriptor','SetWorksheetActiveOperation','_stopFollowing','LiveShare','_startLiveShareCoordinator','_uiPartsService','children','onCommandExecuted','UniverIcon','useEffect','CommandType','12rRKvLp','pipe','_reporters','3373300gcICcx','http://www.w3.org/2000/svg','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','useDependency','_configService','_unitID','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','PRESENTING','32714UVioUd','Start\x20following','idle','memberID','_startFollowing','throttleTime','fill','_fetchOperations','setConfig','forwardRef','disposeWithMe','add','LiveShareController','merge','NOT_FOLLOWING','_liveShareService','UniverInstanceType','mergeOverrideWithDependencies','parseProtocolChangeset','tag','length','148468hZfLLD','reverse','_startPresenting','_stopPresenting','_handleTerminate','360483FdBBSw','OPERATION','next','tryStartPresenting','get','defineProperty','displayName','find','pluginName','_collabSessionService','getValue','attrs','type','Dropdown','symbol','Button','dispose$','_status$','set','text','map','path','parse','jsxs','getUnitId','presenter','4jSNBnz','replace','live-share.config','UNIVER_UNKNOWN','1920NVkBPd','stopFollowing','not-following','Inject','Present\x20this\x20document','createInstance','registerInitialStateReporter','_handleOffline','toString','_presenter','onRendered','button','LIVESHARE_OPERATION','IDLE','getCurrentTypeOfUnit$','1em','_univerInstanceService','has','random','_handleNewChangeSets','Module','init','subscribe','executeCommand','CollaborationEvent','mask','touchDependencies','evenodd','_handleNewHost','ICommandService','shouldShareOperation','override','CollaborationSessionService','Fragment','LIVESHARE_TERMINATE','status$','url(#$1','Start','event$','Disposable','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','useRef','registerSharedOperation','operations','13365157TRXmZT','922473RNOYCr','clear','_injector','unitId','data','div','complete'];_0x259c=function(){return _0x324080;};return _0x259c();}const V={'tag':'svg','attrs':{'xmlns':_0x46cccf(0x190),'fill':'none','viewBox':_0x46cccf(0x17c),'width':_0x46cccf(0x1de),'height':_0x46cccf(0x1de)},'children':[{'tag':_0x46cccf(0x1c6),'attrs':{'fill':_0x46cccf(0x13c),'d':_0x46cccf(0x195)}},{'tag':_0x46cccf(0x1c6),'attrs':{'fill':_0x46cccf(0x13c),'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':_0x46cccf(0x1ea),'clipRule':'evenodd'}}]},R=v[_0x46cccf(0x1a0)](function(_0x289627,_0x24ef6f){const _0x27bba2=_0x46cccf;return v[_0x27bba2(0x17b)](x,Object[_0x27bba2(0x149)]({},_0x289627,{'id':_0x27bba2(0x14b),'ref':_0x24ef6f,'icon':V}));});R[_0x46cccf(0x1b7)]=_0x46cccf(0x15c);class E extends o[_0x46cccf(0x120)]{constructor(){const _0x4f9b86=_0x46cccf;super(...arguments),_(this,_0x4f9b86(0x165),new Set()),_(this,_0x4f9b86(0x18e),new Set());}[_0x46cccf(0x123)](_0x57e576){const _0x469dc5=_0x46cccf;return this[_0x469dc5(0x165)][_0x469dc5(0x1a2)](_0x57e576),o['toDisposable'](()=>this['_sharedOperations'][_0x469dc5(0x14d)](_0x57e576));}[_0x46cccf(0x1d5)](_0x407681){const _0x4b9087=_0x46cccf;return this[_0x4b9087(0x18e)]['add'](_0x407681),o['toDisposable'](()=>this[_0x4b9087(0x18e)][_0x4b9087(0x14d)](_0x407681));}[_0x46cccf(0x1ed)](_0x1e2668){const _0x315966=_0x46cccf;return this[_0x315966(0x165)][_0x315966(0x1e0)](_0x1e2668);}[_0x46cccf(0x176)](_0x46f11c){const _0x2656bb=_0x46cccf;return Array[_0x2656bb(0x14e)](this['_reporters'])['map'](_0x179833=>_0x179833(_0x46f11c));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x48f1e9,_0x34fa15,_0x1bf0f9,_0x587632)=>{const _0x2f166e=_0x46cccf;for(var _0x34fc9d=_0x587632>0x1?void 0x0:_0x587632?M(_0x34fa15,_0x1bf0f9):_0x34fa15,_0x49cb12=_0x48f1e9[_0x2f166e(0x1ab)]-0x1,_0x5ba111;_0x49cb12>=0x0;_0x49cb12--)(_0x5ba111=_0x48f1e9[_0x49cb12])&&(_0x34fc9d=_0x5ba111(_0x34fc9d)||_0x34fc9d);return _0x34fc9d;},S=(_0x159e0c,_0x54c2a6)=>(_0x3632e4,_0x189415)=>_0x54c2a6(_0x3632e4,_0x189415,_0x159e0c);exports[_0x46cccf(0x1a3)]=class extends o[_0x46cccf(0x131)]{constructor(_0x1691f9,_0xbd1c5b,_0x48b386){const _0x203347=_0x46cccf;super(),_(this,_0x203347(0x155),new Map()),(this[_0x203347(0x1df)]=_0x1691f9,this[_0x203347(0x128)]=_0xbd1c5b,this['_collabSessionService']=_0x48b386,this[_0x203347(0x16c)]());}async[_0x46cccf(0x166)](_0x4d0f21){const _0x114626=_0x46cccf;return this[_0x114626(0x155)][_0x114626(0x1e0)](_0x4d0f21)||await this[_0x114626(0x185)](_0x4d0f21),this[_0x114626(0x155)][_0x114626(0x1b5)](_0x4d0f21);}['getLiveShareCoordinatorSync'](_0x57b009){const _0x4aa657=_0x46cccf;var _0x166bf1;return(_0x166bf1=this[_0x4aa657(0x155)]['get'](_0x57b009))!=null?_0x166bf1:null;}[_0x46cccf(0x16c)](){const _0x1e8e65=_0x46cccf;this[_0x1e8e65(0x1df)]['getTypeOfUnitAdded$'](o[_0x1e8e65(0x1a7)][_0x1e8e65(0x140)])['pipe'](I['takeUntil'](this[_0x1e8e65(0x1c1)]))[_0x1e8e65(0x1e5)](async _0x6f4d9f=>{const _0xabc016=_0x1e8e65,_0x10ba9b=_0x6f4d9f[_0xabc016(0x1c9)]();this[_0xabc016(0x155)][_0xabc016(0x1e0)](_0x10ba9b)||this[_0xabc016(0x185)](_0x10ba9b);}),this[_0x1e8e65(0x1df)][_0x1e8e65(0x179)](o[_0x1e8e65(0x1a7)][_0x1e8e65(0x140)])['pipe'](I[_0x1e8e65(0x145)](this['dispose$']))[_0x1e8e65(0x1e5)](_0x362baa=>{const _0x3ecff4=_0x1e8e65,_0x7f12af=_0x362baa[_0x3ecff4(0x1c9)](),_0x2e4552=this[_0x3ecff4(0x155)]['get'](_0x7f12af);_0x2e4552==null||_0x2e4552[_0x3ecff4(0x17a)]();});}async[_0x46cccf(0x185)](_0x2d868){const _0x430a3d=_0x46cccf,_0x2aff17=await this[_0x430a3d(0x1ba)]['requireSession'](_0x2d868),_0xc65cb5=this[_0x430a3d(0x128)][_0x430a3d(0x1d4)](exports['LiveShareCoordinator'],_0x2d868,_0x2aff17);return _0xc65cb5[_0x430a3d(0x1e4)](),this[_0x430a3d(0x155)][_0x430a3d(0x1c3)](_0x2d868,_0xc65cb5),_0xc65cb5;}},exports[_0x46cccf(0x1a3)]=P([S(0x0,o[_0x46cccf(0x16e)]),S(0x1,o[_0x46cccf(0x1d2)](o['Injector'])),S(0x2,o['Inject'](b[_0x46cccf(0x1ef)]))],exports[_0x46cccf(0x1a3)]);var u=(_0x16b477=>(_0x16b477['OFFLINE']='offline',_0x16b477[_0x46cccf(0x1dc)]=_0x46cccf(0x199),_0x16b477['FOLLOWING']=_0x46cccf(0x169),_0x16b477[_0x46cccf(0x1a5)]=_0x46cccf(0x1d1),_0x16b477[_0x46cccf(0x196)]=_0x46cccf(0x13b),_0x16b477))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x46cccf(0x141)]=class extends o[_0x46cccf(0x131)]{constructor(_0xd46c61,_0x4d58e4,_0x596f6a,_0x11e70b,_0x29a4b9){const _0x34fccb=_0x46cccf;super(),_(this,_0x34fccb(0x1c2),new O[(_0x34fccb(0x150))](_0x34fccb(0x199))),_(this,_0x34fccb(0x11c),this[_0x34fccb(0x1c2)]['asObservable']()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,_0x34fccb(0x1d8),null),(this[_0x34fccb(0x194)]=_0xd46c61,this['_collabSession']=_0x4d58e4,this[_0x34fccb(0x193)]=_0x596f6a,this[_0x34fccb(0x1a6)]=_0x11e70b,this[_0x34fccb(0x14f)]=_0x29a4b9);}get['_status'](){const _0x34ba50=_0x46cccf;return this[_0x34ba50(0x1c2)][_0x34ba50(0x1bb)]();}['dispose'](){const _0x580f83=_0x46cccf;var _0x58db7e;(_0x58db7e=this[_0x580f83(0x180)])==null||_0x58db7e[_0x580f83(0x17a)](),this[_0x580f83(0x1c2)][_0x580f83(0x1b3)](_0x580f83(0x199)),this[_0x580f83(0x1c2)]['complete']();}['getStatus'](){const _0xb69546=_0x46cccf;return this[_0xb69546(0x137)];}[_0x46cccf(0x1e4)](){const _0x485f7a=_0x46cccf;this[_0x485f7a(0x16c)]||(this[_0x485f7a(0x16c)]=!0x0,this[_0x485f7a(0x148)][_0x485f7a(0x142)][_0x485f7a(0x18d)](I[_0x485f7a(0x145)](this[_0x485f7a(0x1c1)]))[_0x485f7a(0x1e5)](_0x6fb077=>{const _0x4f034e=_0x485f7a;switch(_0x6fb077){case b[_0x4f034e(0x147)][_0x4f034e(0x13e)]:this[_0x4f034e(0x1d6)]();break;case b['SessionStatus']['ONLINE']:this[_0x4f034e(0x15b)]();break;}}),this[_0x485f7a(0x148)][_0x485f7a(0x11f)][_0x485f7a(0x18d)](I['takeUntil'](this[_0x485f7a(0x1c1)]))[_0x485f7a(0x1e5)](_0x11ad3b=>{const _0x5171ac=_0x485f7a,{eventID:_0x33c443}=_0x11ad3b;switch(_0x33c443){case d[_0x5171ac(0x1e7)][_0x5171ac(0x132)]:this['_handleNewHost'](_0x11ad3b);break;case d[_0x5171ac(0x1e7)][_0x5171ac(0x1db)]:this['_handleOperation'](_0x11ad3b);break;case d['CollaborationEvent'][_0x5171ac(0x11b)]:this[_0x5171ac(0x1b0)]();break;case d[_0x5171ac(0x1e7)][_0x5171ac(0x17d)]:this['_handleNewChangeSets'](_0x11ad3b);break;}}));}[_0x46cccf(0x1b4)](){const _0x55852a=_0x46cccf;this[_0x55852a(0x148)][_0x55852a(0x15f)]({'eventID':d[_0x55852a(0x1e7)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x55852a(0x194)],'userID':this['_collabSession'][_0x55852a(0x143)]()}},this[_0x55852a(0x194)]);}[_0x46cccf(0x136)](){const _0x274aab=_0x46cccf;this[_0x274aab(0x137)]==='presenting'&&(this['_status$'][_0x274aab(0x1b3)](_0x274aab(0x199)),this[_0x274aab(0x148)][_0x274aab(0x15f)]({'eventID':d[_0x274aab(0x1e7)][_0x274aab(0x11b)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x46cccf(0x173)](){const _0x2b60da=_0x46cccf;this['_status']===_0x2b60da(0x1d1)&&(this['_status$'][_0x2b60da(0x1b3)](_0x2b60da(0x169)),this[_0x2b60da(0x19b)]());}['stopFollowing'](){const _0x2e78fc=_0x46cccf;this['_status']===_0x2e78fc(0x169)&&this[_0x2e78fc(0x183)]();}[_0x46cccf(0x1eb)](_0xf47c9f){const _0x1fc920=_0x46cccf,{presenter:_0x3b0327}=_0xf47c9f['data'],_0x980f4e=this[_0x1fc920(0x148)][_0x1fc920(0x143)]();this['_presenter']=_0x3b0327,_0x3b0327===_0x980f4e?(this['_stopFollowing'](),this[_0x1fc920(0x1ae)]()):this[_0x1fc920(0x137)]!==_0x1fc920(0x1d1)&&(this[_0x1fc920(0x1af)](),this[_0x1fc920(0x19b)]());}[_0x46cccf(0x19e)](){const _0x409f14=_0x46cccf,_0x6314d6={'eventID':d[_0x409f14(0x1e7)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x409f14(0x148)][_0x409f14(0x15f)](_0x6314d6,this[_0x409f14(0x194)]);}[_0x46cccf(0x1b0)](){const _0x2fbcf7=_0x46cccf;this[_0x2fbcf7(0x1d8)]=null,this[_0x2fbcf7(0x137)]!==_0x2fbcf7(0x13b)&&this['_beIdle']();}[_0x46cccf(0x1e2)](_0x102e13){const _0x29a746=_0x46cccf;if(this['_status']===_0x29a746(0x169)&&this[_0x29a746(0x1d8)]===_0x102e13['data'][_0x29a746(0x19a)]){const _0x29d0d2=d[_0x29a746(0x1a9)](_0x102e13[_0x29a746(0x12a)])[_0x29a746(0x17e)][_0x29a746(0x1ad)]()[_0x29a746(0x1b8)](_0x1f19ff=>_0x1f19ff['id']===C['InsertSheetMutation']['id']);if(_0x29d0d2){const _0x24cf5f=_0x29d0d2[_0x29a746(0x17f)][_0x29a746(0x129)],_0x3024c7=_0x29d0d2[_0x29a746(0x17f)]['sheet']['id'];setTimeout(()=>{const _0x1446c5=_0x29a746;this[_0x1446c5(0x14f)][_0x1446c5(0x1e6)](C[_0x1446c5(0x182)]['id'],{'unitId':_0x24cf5f,'subUnitId':_0x3024c7},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x3afa53=_0x46cccf;this[_0x3afa53(0x1c2)]['next'](_0x3afa53(0x13b));const _0x5d9739=new Map(),_0xc75de3=this[_0x3afa53(0x180)]=new o[(_0x3afa53(0x135))]();_0xc75de3[_0x3afa53(0x1a2)](o[_0x3afa53(0x12e)](()=>{const _0x2837e8=_0x3afa53;_0x5d9739[_0x2837e8(0x130)](_0x20e240=>_0x20e240[_0x2837e8(0x12c)]()),_0x5d9739[_0x2837e8(0x127)]();})),_0xc75de3[_0x3afa53(0x1a2)](this[_0x3afa53(0x14f)][_0x3afa53(0x188)](_0x514ded=>{const _0x4ec839=_0x3afa53;var _0x2759ae;if(_0x514ded[_0x4ec839(0x1bd)]!==o[_0x4ec839(0x18b)][_0x4ec839(0x1b2)]||!this[_0x4ec839(0x1a6)][_0x4ec839(0x1ed)](_0x514ded['id']))return;const {id:_0x292157}=_0x514ded;let _0xd2e399;_0x5d9739[_0x4ec839(0x1e0)](_0x292157)?_0xd2e399=_0x5d9739[_0x4ec839(0x1b5)](_0x292157):(_0xd2e399=new O[(_0x4ec839(0x159))](),_0x5d9739[_0x4ec839(0x1c3)](_0x292157,_0xd2e399),_0xd2e399[_0x4ec839(0x18d)](I[_0x4ec839(0x19c)]((_0x2759ae=this[_0x4ec839(0x193)][_0x4ec839(0x134)](k))!=null?_0x2759ae:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ec839(0x1e5)](_0x5d1cea=>{const _0x21128f=_0x4ec839;this[_0x21128f(0x148)][_0x21128f(0x15f)]({'eventID':d[_0x21128f(0x1e7)][_0x21128f(0x1db)],'data':{'unitID':this[_0x21128f(0x194)],'operations':{[_0x5d1cea['id']]:{'id':_0x5d1cea['id'],'params':JSON['stringify'](_0x5d1cea['params'])}}}},this[_0x21128f(0x194)]);})),_0xd2e399[_0x4ec839(0x1b3)](_0x514ded);})),this['_liveShareService'][_0x3afa53(0x176)](this[_0x3afa53(0x194)])['forEach'](_0x1cd216=>this['_collabSession'][_0x3afa53(0x15f)]({'eventID':d[_0x3afa53(0x1e7)][_0x3afa53(0x1db)],'data':{'unitID':this[_0x3afa53(0x194)],'operations':{[_0x1cd216['id']]:{'id':_0x1cd216['id'],'params':JSON[_0x3afa53(0x168)](_0x1cd216[_0x3afa53(0x17f)])}}}},this[_0x3afa53(0x194)]));}['_stopPresenting'](){const _0x50cfa9=_0x46cccf;var _0x59cb84;this[_0x50cfa9(0x1c2)][_0x50cfa9(0x1b3)](_0x50cfa9(0x199)),(_0x59cb84=this[_0x50cfa9(0x180)])==null||_0x59cb84[_0x50cfa9(0x17a)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x58fa71=_0x46cccf;var _0x2a9c80;(_0x2a9c80=this[_0x58fa71(0x180)])==null||_0x2a9c80[_0x58fa71(0x17a)](),this[_0x58fa71(0x1c2)][_0x58fa71(0x1b3)]('following');}[_0x46cccf(0x16f)](){const _0x2a7354=_0x46cccf;var _0x1ef0c9;this['_status$'][_0x2a7354(0x1b3)](_0x2a7354(0x199)),(_0x1ef0c9=this['_commandDisposable'])==null||_0x1ef0c9[_0x2a7354(0x17a)](),this[_0x2a7354(0x180)]=null;}[_0x46cccf(0x183)](){const _0x59bc51=_0x46cccf;var _0x4fe476;this['_status$'][_0x59bc51(0x1b3)](_0x59bc51(0x1d1)),(_0x4fe476=this[_0x59bc51(0x180)])==null||_0x4fe476[_0x59bc51(0x17a)]();}['_handleOperation'](_0x580858){const _0x4f8499=_0x46cccf;if([_0x4f8499(0x13b),_0x4f8499(0x1d1),'offline'][_0x4f8499(0x164)](this[_0x4f8499(0x137)])||!_0x580858[_0x4f8499(0x12a)][_0x4f8499(0x1ca)]||_0x580858[_0x4f8499(0x12a)][_0x4f8499(0x1ca)]===this[_0x4f8499(0x148)]['getMemberID']())return;this[_0x4f8499(0x137)]===_0x4f8499(0x199)&&this[_0x4f8499(0x19b)]();const _0x53a57a=_0x580858[_0x4f8499(0x12a)][_0x4f8499(0x124)];Object['values'](_0x53a57a)[_0x4f8499(0x130)](_0x275add=>{const _0x1fede3=_0x4f8499;this['_commandService'][_0x1fede3(0x1e6)](_0x275add['id'],_0x275add[_0x1fede3(0x17f)]?JSON[_0x1fede3(0x1c7)](_0x275add[_0x1fede3(0x17f)]):null,{'fromCollab':!0x0});});}[_0x46cccf(0x1d6)](){const _0x3d49d9=_0x46cccf;var _0x4b87e1;this[_0x3d49d9(0x1c2)]['next']('offline'),(_0x4b87e1=this['_commandDisposable'])==null||_0x4b87e1[_0x3d49d9(0x17a)]();}[_0x46cccf(0x15b)](){const _0x5dcb41=_0x46cccf;this[_0x5dcb41(0x1c2)]['next']('idle'),this[_0x5dcb41(0x19e)]();}},exports[_0x46cccf(0x141)]=P([S(0x2,o[_0x46cccf(0x161)]),S(0x3,o[_0x46cccf(0x1d2)](E)),S(0x4,o[_0x46cccf(0x1ec)])],exports['LiveShareCoordinator']);function $(){const _0x53bd63=_0x46cccf,_0x6f1fdb=p[_0x53bd63(0x192)](exports[_0x53bd63(0x1a3)]),_0x30258a=p['useDependency'](o['IUniverInstanceService']),_0x18d40a=p['useObservable'](()=>_0x30258a[_0x53bd63(0x1dd)](o[_0x53bd63(0x1a7)][_0x53bd63(0x140)]),void 0x0,!0x1,[]),[_0x5ca64e,_0x4e5798]=v[_0x53bd63(0x12f)](null),[_0x2d1bd3,_0x43a8a0]=v[_0x53bd63(0x12f)](u['IDLE']),_0x23aa66=v['useRef'](null);return v[_0x53bd63(0x18a)](()=>(_0x18d40a&&_0x6f1fdb['getLiveShareCoordinator'](_0x18d40a[_0x53bd63(0x1c9)]())['then'](_0x1c8a82=>{const _0x333f77=_0x53bd63;_0x4e5798(_0x1c8a82),_0x23aa66[_0x333f77(0x167)]=_0x1c8a82[_0x333f77(0x11c)]['subscribe'](_0x19cf6b=>{_0x43a8a0(_0x19cf6b);});}),()=>{const _0x393822=_0x53bd63;var _0x5a2fcb;(_0x5a2fcb=_0x23aa66[_0x393822(0x167)])==null||_0x5a2fcb['unsubscribe'](),_0x23aa66['current']=null;}),[_0x18d40a,_0x6f1fdb]),_0x5ca64e?l[_0x53bd63(0x14c)](f[_0x53bd63(0x1be)],{'align':'end','disabled':_0x2d1bd3===u[_0x53bd63(0x13e)],'className':_0x53bd63(0x191),'overlay':l['jsx'](W,{'status':_0x2d1bd3,'coordinator':_0x5ca64e}),'children':l['jsx']('button',{'className':f['clsx'](_0x53bd63(0x121),{'univer-cursor-not-allowed':_0x2d1bd3===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2d1bd3!==u['OFFLINE']}),'type':_0x53bd63(0x1da),'children':l[_0x53bd63(0x14c)](R,{'className':_0x53bd63(0x153)})})}):null;}function W(_0x313256){const _0x4f6f58=_0x46cccf,{status:_0x23c996,coordinator:_0x458411}=_0x313256;switch(_0x23c996){case u[_0x4f6f58(0x1dc)]:return l['jsx'](G,{'coordinator':_0x458411});case u[_0x4f6f58(0x16a)]:return l[_0x4f6f58(0x14c)](B,{'coordinator':_0x458411});case u[_0x4f6f58(0x1a5)]:return l['jsx'](Y,{'coordinator':_0x458411});case u[_0x4f6f58(0x13e)]:return l[_0x4f6f58(0x14c)](J,{});case u[_0x4f6f58(0x196)]:return l['jsx'](Z,{'coordinator':_0x458411});default:return null;}}function G(_0x32e079){const _0x26c51a=_0x46cccf,{coordinator:_0x4643d2}=_0x32e079;return l[_0x26c51a(0x1c8)](l[_0x26c51a(0x11a)],{'children':[l['jsx'](_0x26c51a(0x12b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x26c51a(0x1d3)}),l['jsx'](f[_0x26c51a(0x1c0)],{'onClick':()=>_0x4643d2[_0x26c51a(0x1b4)](),'children':_0x26c51a(0x11e)})]});}function B(_0x4325ea){const _0x289834=_0x46cccf,{coordinator:_0x457954}=_0x4325ea;return l['jsxs'](l[_0x289834(0x11a)],{'children':[l[_0x289834(0x14c)](_0x289834(0x12b),{'className':_0x289834(0x138),'children':_0x289834(0x170)}),l[_0x289834(0x14c)](f['Button'],{'onClick':()=>_0x457954[_0x289834(0x1d0)](),'children':'Stop\x20following'})]});}function Y(_0x5ddce8){const _0x576354=_0x46cccf,{coordinator:_0x25dbb6}=_0x5ddce8;return l[_0x576354(0x1c8)](l['Fragment'],{'children':[l[_0x576354(0x14c)]('div',{'className':_0x576354(0x138),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x576354(0x14c)](f[_0x576354(0x1c0)],{'variant':_0x576354(0x1c4),'onClick':()=>_0x25dbb6[_0x576354(0x173)](),'children':_0x576354(0x198)})]});}function Z(_0x56837d){const _0x290b14=_0x46cccf,{coordinator:_0x3ac36f}=_0x56837d;return l['jsxs'](l[_0x290b14(0x11a)],{'children':[l['jsx'](_0x290b14(0x12b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x290b14(0x156)}),l[_0x290b14(0x14c)](f[_0x290b14(0x1c0)],{'variant':'default','onClick':()=>_0x3ac36f[_0x290b14(0x136)](),'children':'Stop\x20presenting'})]});}function _0x4de5(_0x1d18bf,_0x53f6f8){const _0x259c50=_0x259c();return _0x4de5=function(_0x4de57f,_0xe4de5){_0x4de57f=_0x4de57f-0x11a;let _0x3de218=_0x259c50[_0x4de57f];return _0x3de218;},_0x4de5(_0x1d18bf,_0x53f6f8);}function J(){const _0xca54d3=_0x46cccf;return l[_0xca54d3(0x14c)](l['Fragment'],{'children':_0xca54d3(0x158)});}var K=Object[_0x46cccf(0x181)],z=(_0x33ee64,_0x338869,_0x26b7f2,_0x3bf703)=>{for(var _0x2f186e=_0x3bf703>0x1?void 0x0:_0x3bf703?K(_0x338869,_0x26b7f2):_0x338869,_0xd002bb=_0x33ee64['length']-0x1,_0x470ecf;_0xd002bb>=0x0;_0xd002bb--)(_0x470ecf=_0x33ee64[_0xd002bb])&&(_0x2f186e=_0x470ecf(_0x2f186e)||_0x2f186e);return _0x2f186e;},L=(_0x5088ce,_0x3b52a7)=>(_0x133854,_0x160573)=>_0x3b52a7(_0x133854,_0x160573,_0x5088ce);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0xe4411b,_0x16955a){const _0x41cea6=_0x46cccf;super(),this[_0x41cea6(0x128)]=_0xe4411b,this['_uiPartsService']=_0x16955a,this[_0x41cea6(0x162)]();}[_0x46cccf(0x162)](){const _0x4097c2=_0x46cccf;this[_0x4097c2(0x1a1)](this[_0x4097c2(0x186)][_0x4097c2(0x177)](p['BuiltInUIPart']['HEADER_MENU'],()=>p['connectInjector']($,this[_0x4097c2(0x128)])));}},exports[_0x46cccf(0x15a)]=z([L(0x0,o[_0x46cccf(0x1d2)](o['Injector'])),L(0x1,p[_0x46cccf(0x157)])],exports[_0x46cccf(0x15a)]);const Q=_0x46cccf(0x1cd),w={};var X=Object[_0x46cccf(0x181)],ee=(_0x44025f,_0x8ba14b,_0x2278c8,_0x52c9f6)=>{const _0x10bda7=_0x46cccf;for(var _0x4121cd=_0x52c9f6>0x1?void 0x0:_0x52c9f6?X(_0x8ba14b,_0x2278c8):_0x8ba14b,_0x28c5ca=_0x44025f[_0x10bda7(0x1ab)]-0x1,_0x4b2f55;_0x28c5ca>=0x0;_0x28c5ca--)(_0x4b2f55=_0x44025f[_0x28c5ca])&&(_0x4121cd=_0x4b2f55(_0x4121cd)||_0x4121cd);return _0x4121cd;},te=(_0x4ae520,_0x1f0a7f)=>(_0x2b75eb,_0x2d05fc)=>_0x1f0a7f(_0x2b75eb,_0x2d05fc,_0x4ae520);let m=class extends o[_0x46cccf(0x120)]{constructor(_0x30d12e){const _0xac16d5=_0x46cccf;super(),this['_liveShareService']=_0x30d12e,this[_0xac16d5(0x16c)]();}[_0x46cccf(0x16c)](){const _0x2c6694=_0x46cccf;[D[_0x2c6694(0x15d)]['id'],D[_0x2c6694(0x13d)]['id'],C[_0x2c6694(0x182)]['id']]['forEach'](_0x2369ef=>{const _0x3ba759=_0x2c6694;this[_0x3ba759(0x1a1)](this[_0x3ba759(0x1a6)][_0x3ba759(0x123)](_0x2369ef));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x46cccf(0x1b6)],se=Object[_0x46cccf(0x181)],ne=(_0x231378,_0x1bac39,_0x44d982)=>_0x1bac39 in _0x231378?ie(_0x231378,_0x1bac39,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44d982}):_0x231378[_0x1bac39]=_0x44d982,re=(_0x3cdb1d,_0x21bd63,_0x4487c5,_0xfaf02e)=>{const _0x3827e8=_0x46cccf;for(var _0x1138f5=_0xfaf02e>0x1?void 0x0:_0xfaf02e?se(_0x21bd63,_0x4487c5):_0x21bd63,_0x5586a4=_0x3cdb1d[_0x3827e8(0x1ab)]-0x1,_0x24ce65;_0x5586a4>=0x0;_0x5586a4--)(_0x24ce65=_0x3cdb1d[_0x5586a4])&&(_0x1138f5=_0x24ce65(_0x1138f5)||_0x1138f5);return _0x1138f5;},N=(_0x22a54a,_0x3145d8)=>(_0x590ff5,_0x18aed7)=>_0x3145d8(_0x590ff5,_0x18aed7,_0x22a54a),A=(_0x1e2d92,_0x2ff71c,_0x2b090b)=>ne(_0x1e2d92,typeof _0x2ff71c!=_0x46cccf(0x1bf)?_0x2ff71c+'':_0x2ff71c,_0x2b090b);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x46cccf(0x133)]=class extends o[_0x46cccf(0x175)]{constructor(_0x4cec9b=w,_0x40e1bc,_0x1cc4a8){const _0x31bed6=_0x46cccf;super(),this['_config']=_0x4cec9b,this[_0x31bed6(0x128)]=_0x40e1bc,this[_0x31bed6(0x193)]=_0x1cc4a8;const {..._0xee43f3}=o[_0x31bed6(0x1a4)]({},w,this[_0x31bed6(0x13f)]);this['_configService'][_0x31bed6(0x19f)](Q,_0xee43f3);}['onStarting'](){const _0x4f5cb4=_0x46cccf;o[_0x4f5cb4(0x144)](this[_0x4f5cb4(0x128)],o[_0x4f5cb4(0x1a8)]([[E],[exports[_0x4f5cb4(0x1a3)]],[m],[exports['DesktopLiveShareController']]],this[_0x4f5cb4(0x13f)][_0x4f5cb4(0x1ee)])),o[_0x4f5cb4(0x1e9)](this[_0x4f5cb4(0x128)],[[m]]);}[_0x46cccf(0x1d9)](){const _0x2347ba=_0x46cccf;o[_0x2347ba(0x1e9)](this[_0x2347ba(0x128)],[[exports[_0x2347ba(0x15a)]]]);}},A(exports[_0x46cccf(0x133)],_0x46cccf(0x1bd),o[_0x46cccf(0x1a7)][_0x46cccf(0x1ce)]),A(exports[_0x46cccf(0x133)],_0x46cccf(0x1b9),oe),exports[_0x46cccf(0x133)]=re([o[_0x46cccf(0x178)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x46cccf(0x1d2)](o[_0x46cccf(0x163)])),N(0x2,o[_0x46cccf(0x161)])],exports[_0x46cccf(0x133)]),exports[_0x46cccf(0x184)]=$,exports['LiveShareService']=E,exports[_0x46cccf(0x139)]=u;
|
|
1
|
+
'use strict';const _0x5138d6=_0x4855;(function(_0xdd196e,_0x3ddcec){const _0x163bc6=_0x4855,_0xb05543=_0xdd196e();while(!![]){try{const _0x4ce43a=-parseInt(_0x163bc6(0x126))/0x1+parseInt(_0x163bc6(0x13f))/0x2*(parseInt(_0x163bc6(0x182))/0x3)+parseInt(_0x163bc6(0x149))/0x4*(-parseInt(_0x163bc6(0x169))/0x5)+-parseInt(_0x163bc6(0xe3))/0x6*(parseInt(_0x163bc6(0xf1))/0x7)+parseInt(_0x163bc6(0x192))/0x8+-parseInt(_0x163bc6(0x128))/0x9*(parseInt(_0x163bc6(0x146))/0xa)+-parseInt(_0x163bc6(0x14f))/0xb*(-parseInt(_0x163bc6(0x16b))/0xc);if(_0x4ce43a===_0x3ddcec)break;else _0xb05543['push'](_0xb05543['shift']());}catch(_0x1f938c){_0xb05543['push'](_0xb05543['shift']());}}}(_0x4948,0xccc30));var T=Object[_0x5138d6(0xe5)],U=(_0xfe6bb2,_0x2ce387,_0x5cff6f)=>_0x2ce387 in _0xfe6bb2?T(_0xfe6bb2,_0x2ce387,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5cff6f}):_0xfe6bb2[_0x2ce387]=_0x5cff6f,_=(_0x58be1a,_0x2e9024,_0x189f4f)=>U(_0x58be1a,typeof _0x2e9024!='symbol'?_0x2e9024+'':_0x2e9024,_0x189f4f);Object[_0x5138d6(0xe5)](exports,Symbol['toStringTag'],{'value':_0x5138d6(0x179)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x46bc4f,..._0x5b7453}){const _0x7e620d=_0x5138d6,{icon:_0x5987b5,id:_0x3a1f81,className:_0x59e733,extend:_0x394e03,..._0x26cffc}=_0x5b7453,_0x23cdd8=('univerjs-icon\x20univerjs-icon-'+_0x3a1f81+'\x20'+(_0x59e733||''))[_0x7e620d(0x132)](),_0x262b1a=v['useRef']('_'+H());return j(_0x5987b5,''+_0x3a1f81,{'defIds':_0x5987b5[_0x7e620d(0xe1)],'idSuffix':_0x262b1a['current']},{'ref':_0x46bc4f,'className':_0x23cdd8,..._0x26cffc},_0x394e03);}function j(_0xdac6bb,_0x4f02ed,_0x46a07e,_0x51a202,_0x11430d){const _0x44a646=_0x5138d6;return v['createElement'](_0xdac6bb[_0x44a646(0x15f)],{'key':_0x4f02ed,...y(_0xdac6bb,_0x46a07e,_0x11430d),..._0x51a202},(F(_0xdac6bb,_0x46a07e)[_0x44a646(0x12e)]||[])[_0x44a646(0x116)]((_0x18bbeb,_0x2abd2c)=>j(_0x18bbeb,_0x4f02ed+'-'+_0xdac6bb[_0x44a646(0x15f)]+'-'+_0x2abd2c,_0x46a07e,void 0x0,_0x11430d)));}function y(_0x222447,_0x25f98c,_0x573fcc){const _0x285f1c=_0x5138d6,_0x27527e={..._0x222447[_0x285f1c(0xd4)]};_0x573fcc!=null&&_0x573fcc['colorChannel1']&&_0x27527e['fill']===_0x285f1c(0xea)&&(_0x27527e['fill']=_0x573fcc['colorChannel1']),_0x222447[_0x285f1c(0x15f)]==='mask'&&_0x27527e['id']&&(_0x27527e['id']=_0x27527e['id']+_0x25f98c[_0x285f1c(0xe0)]),Object[_0x285f1c(0x185)](_0x27527e)[_0x285f1c(0xcf)](([_0x438690,_0x56e633])=>{const _0x518401=_0x285f1c;_0x438690===_0x518401(0x11a)&&typeof _0x56e633==_0x518401(0x18a)&&(_0x27527e[_0x438690]=_0x56e633[_0x518401(0x154)](/url\(#(.*)\)/,_0x518401(0xfb)+_0x25f98c['idSuffix']+')'));});const {defIds:_0x3daec0}=_0x25f98c;return!_0x3daec0||_0x3daec0[_0x285f1c(0xdf)]===0x0||(_0x222447['tag']==='use'&&_0x27527e['xlink:href']&&(_0x27527e[_0x285f1c(0x14e)]=_0x27527e[_0x285f1c(0x14e)]+_0x25f98c['idSuffix']),Object[_0x285f1c(0x185)](_0x27527e)[_0x285f1c(0xcf)](([_0x305952,_0x5a0c25])=>{const _0x47330e=_0x285f1c;typeof _0x5a0c25==_0x47330e(0x18a)&&(_0x27527e[_0x305952]=_0x5a0c25[_0x47330e(0x154)](/url\(#(.*)\)/,_0x47330e(0xfb)+_0x25f98c[_0x47330e(0xe0)]+')'));})),_0x27527e;}function F(_0xfc8343,_0xe36862){const _0x287469=_0x5138d6;var _0xdca75e;const {defIds:_0x26cfc3}=_0xe36862;return!_0x26cfc3||_0x26cfc3[_0x287469(0xdf)]===0x0?_0xfc8343:_0xfc8343[_0x287469(0x15f)]===_0x287469(0x13c)&&((_0xdca75e=_0xfc8343['children'])!=null&&_0xdca75e['length'])?{..._0xfc8343,'children':_0xfc8343['children']['map'](_0x3b48dd=>typeof _0x3b48dd[_0x287469(0xd4)]['id']==_0x287469(0x18a)&&_0x26cfc3&&_0x26cfc3[_0x287469(0x133)](_0x3b48dd[_0x287469(0xd4)]['id'])?{..._0x3b48dd,'attrs':{..._0x3b48dd[_0x287469(0xd4)],'id':_0x3b48dd[_0x287469(0xd4)]['id']+_0xe36862[_0x287469(0xe0)]}}:_0x3b48dd)}:_0xfc8343;}function H(){const _0x50845f=_0x5138d6;return Math[_0x50845f(0x186)]()[_0x50845f(0x16f)](0x24)[_0x50845f(0x114)](0x2,0x8);}x[_0x5138d6(0x15a)]='UniverIcon';const V={'tag':_0x5138d6(0x142),'attrs':{'xmlns':_0x5138d6(0x17c),'fill':_0x5138d6(0xf6),'viewBox':_0x5138d6(0xdb),'width':_0x5138d6(0x103),'height':_0x5138d6(0x103)},'children':[{'tag':_0x5138d6(0x166),'attrs':{'fill':_0x5138d6(0xe4),'d':_0x5138d6(0xdd)}},{'tag':_0x5138d6(0x166),'attrs':{'fill':_0x5138d6(0xe4),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x5138d6(0x13a)}}]},R=v['forwardRef'](function(_0x515052,_0x304f2a){const _0x525edc=_0x5138d6;return v['createElement'](x,Object[_0x525edc(0x10b)]({},_0x515052,{'id':_0x525edc(0x162),'ref':_0x304f2a,'icon':V}));});R['displayName']=_0x5138d6(0x18f);function _0x4855(_0x4eb26f,_0x2f4d08){const _0x4948ac=_0x4948();return _0x4855=function(_0x4855f8,_0x21c396){_0x4855f8=_0x4855f8-0xc8;let _0xb39f51=_0x4948ac[_0x4855f8];return _0xb39f51;},_0x4855(_0x4eb26f,_0x2f4d08);}function _0x4948(){const _0x20ab36=['LiveShareIcon','_fetchOperations','sessionStatus$','9998888ATeHif','delete','InsertSheetMutation','useState','useRef','symbol','HEADER_MENU','unitId','stringify','OPERATION','getInitialStates','getStatus','executeCommand','Dropdown','registerComponent','send','jsx','_mountLiveShare','_status','UNIVER_UNKNOWN','forEach','unsubscribe','_startLiveShareCoordinator','SessionStatus','RxDisposable','attrs','next','_collabSession','SAME_OPERATION_SHARE_INTERVAL','mutations','NOT_FOLLOWING','LIVESHARE_REQUEST_HOST','0\x200\x2017\x2017','UNIVER_LIVE_SHARE_PLUGIN','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','BuiltInUIPart','length','idSuffix','defIds','Fragment','111894mtSZBD','currentColor','defineProperty','IUIPartsService','FOLLOWING','CommandType','_commandService','colorChannel1','onStarting','registerSharedOperation','getUnitId','offline','_liveShareService','Start\x20following','7bAVXlW','disposeWithMe','_collabSessionService','status$','Injector','none','You\x27re\x20presenting\x20the\x20document','presenting','LIVESHARE_OPERATION','Start','url(#$1','IUniverInstanceService','LiveShareService','UniverInstanceType','sheet','button','LIVESHARE_FETCH_OPERATIONS','_startFollowing','1em','getTypeOfUnitDisposed$','registerInitialStateReporter','CollaborationEvent','Plugin','ONLINE','BehaviorSubject','_beIdle','assign','LiveShareStatus','_entities','IConfigService','PRESENTING','asObservable','_status$','_commandDisposable','not-following','substring','has','map','reverse','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewChangeSets','mask','tryStartPresenting','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','pipe','getCurrentTypeOfUnit$','clsx','stopFollowing','LIVESHARE_NEW_HOST','getConfig','getTypeOfUnitAdded$','values','useDependency','1603132iCGWaa','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','63ocoVRa','_handleNewHost','LIVESHARE_TERMINATE','registerDependencies','ICommandService','init','children','idle','LiveShareController','dispose','trim','includes','takeUntil','following','Inject','getMemberID','jsxs','Button','evenodd','createInstance','defs','DependentOn','_reporters','16jnjaaK','connectInjector','add','svg','SetScrollOperation','Subject','_handleOffline','871550tRRWVn','complete','toDisposable','1052tQTGKO','OFFLINE','_handleOperation','_sharedOperations','memberID','xlink:href','5951vmsRvx','current','clear','_init','UniverCollaborationClientPlugin','replace','DesktopLiveShareController','setConfig','_stopFollowing','_configService','LiveShare','displayName','override','live-share.config','parse','parseProtocolChangeset','tag','getOwnPropertyDescriptor','Stop\x20following','live-share-icon','_presenter','_handleOnline','Disposable','path','subscribe','get','5690Snktdn','params','18132VAmSOH','_injector','touchDependencies','_univerInstanceService','toString','UNIVER_SHEET','pluginName','getValue','_handleTerminate','data','shouldShareOperation','getLiveShareCoordinator','div','_config','Module','SetWorksheetActiveOperation','UniverLiveSharePlugin','http://www.w3.org/2000/svg','Stop\x20presenting','from','_stopPresenting','presenter','useEffect','488457kawEeS','startFollowing','set','entries','random','You\x27are\x20offline.','default','_startPresenting','string','_unitID','You\x27re\x20not\x20following\x20the\x20presenter','LiveShareCoordinator','dispose$'];_0x4948=function(){return _0x20ab36;};return _0x4948();}class E extends o[_0x5138d6(0x165)]{constructor(){const _0x6543a2=_0x5138d6;super(...arguments),_(this,_0x6543a2(0x14c),new Set()),_(this,_0x6543a2(0x13e),new Set());}[_0x5138d6(0xec)](_0x15b45f){const _0x54b43c=_0x5138d6;return this[_0x54b43c(0x14c)][_0x54b43c(0x141)](_0x15b45f),o['toDisposable'](()=>this[_0x54b43c(0x14c)][_0x54b43c(0x193)](_0x15b45f));}[_0x5138d6(0x105)](_0x28e305){const _0xcb291a=_0x5138d6;return this[_0xcb291a(0x13e)][_0xcb291a(0x141)](_0x28e305),o[_0xcb291a(0x148)](()=>this[_0xcb291a(0x13e)][_0xcb291a(0x193)](_0x28e305));}[_0x5138d6(0x175)](_0x5cecf6){const _0x55ff46=_0x5138d6;return this[_0x55ff46(0x14c)][_0x55ff46(0x115)](_0x5cecf6);}['getInitialStates'](_0x3244a1){const _0x156767=_0x5138d6;return Array[_0x156767(0x17e)](this[_0x156767(0x13e)])[_0x156767(0x116)](_0x184eed=>_0x184eed(_0x3244a1));}}var M=Object[_0x5138d6(0x160)],P=(_0x5abef9,_0x597692,_0x55d546,_0x657bdf)=>{const _0x25c1ca=_0x5138d6;for(var _0x498d72=_0x657bdf>0x1?void 0x0:_0x657bdf?M(_0x597692,_0x55d546):_0x597692,_0x50621b=_0x5abef9[_0x25c1ca(0xdf)]-0x1,_0x10cd85;_0x50621b>=0x0;_0x50621b--)(_0x10cd85=_0x5abef9[_0x50621b])&&(_0x498d72=_0x10cd85(_0x498d72)||_0x498d72);return _0x498d72;},S=(_0x1557d8,_0xa81a4d)=>(_0x2ea433,_0x98b166)=>_0xa81a4d(_0x2ea433,_0x98b166,_0x1557d8);exports[_0x5138d6(0x130)]=class extends o[_0x5138d6(0xd3)]{constructor(_0x97c64e,_0x20032f,_0x1282ae){const _0x5c1b5a=_0x5138d6;super(),_(this,_0x5c1b5a(0x10d),new Map()),(this[_0x5c1b5a(0x16e)]=_0x97c64e,this[_0x5c1b5a(0x16c)]=_0x20032f,this[_0x5c1b5a(0xf3)]=_0x1282ae,this[_0x5c1b5a(0x152)]());}async[_0x5138d6(0x176)](_0x193a5e){const _0xeee6e8=_0x5138d6;return this[_0xeee6e8(0x10d)][_0xeee6e8(0x115)](_0x193a5e)||await this[_0xeee6e8(0xd1)](_0x193a5e),this[_0xeee6e8(0x10d)][_0xeee6e8(0x168)](_0x193a5e);}['getLiveShareCoordinatorSync'](_0x519714){const _0x3480a3=_0x5138d6;var _0x372949;return(_0x372949=this[_0x3480a3(0x10d)]['get'](_0x519714))!=null?_0x372949:null;}['_init'](){const _0x2265a5=_0x5138d6;this['_univerInstanceService'][_0x2265a5(0x123)](o[_0x2265a5(0xfe)][_0x2265a5(0x170)])[_0x2265a5(0x11d)](I[_0x2265a5(0x134)](this[_0x2265a5(0x18e)]))[_0x2265a5(0x167)](async _0x22cbbc=>{const _0x176b53=_0x2265a5,_0x13f450=_0x22cbbc[_0x176b53(0xed)]();this[_0x176b53(0x10d)][_0x176b53(0x115)](_0x13f450)||this[_0x176b53(0xd1)](_0x13f450);}),this[_0x2265a5(0x16e)][_0x2265a5(0x104)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x2265a5(0x11d)](I['takeUntil'](this[_0x2265a5(0x18e)]))[_0x2265a5(0x167)](_0x22eab9=>{const _0x409690=_0x2265a5,_0x3de6f7=_0x22eab9['getUnitId'](),_0x588730=this[_0x409690(0x10d)][_0x409690(0x168)](_0x3de6f7);_0x588730==null||_0x588730[_0x409690(0x131)]();});}async[_0x5138d6(0xd1)](_0x230774){const _0x45cc9f=_0x5138d6,_0x132471=await this[_0x45cc9f(0xf3)]['requireSession'](_0x230774),_0x5c2d0a=this[_0x45cc9f(0x16c)][_0x45cc9f(0x13b)](exports['LiveShareCoordinator'],_0x230774,_0x132471);return _0x5c2d0a['init'](),this['_entities'][_0x45cc9f(0x184)](_0x230774,_0x5c2d0a),_0x5c2d0a;}},exports[_0x5138d6(0x130)]=P([S(0x0,o[_0x5138d6(0xfc)]),S(0x1,o['Inject'](o[_0x5138d6(0xf5)])),S(0x2,o['Inject'](b['CollaborationSessionService']))],exports[_0x5138d6(0x130)]);var u=(_0x1e8eac=>(_0x1e8eac['OFFLINE']=_0x5138d6(0xee),_0x1e8eac['IDLE']=_0x5138d6(0x12f),_0x1e8eac[_0x5138d6(0xe7)]='following',_0x1e8eac[_0x5138d6(0xd9)]='not-following',_0x1e8eac[_0x5138d6(0x10f)]='presenting',_0x1e8eac))(u||{});const k=_0x5138d6(0xd7),q=0xc8;exports[_0x5138d6(0x18d)]=class extends o['RxDisposable']{constructor(_0x2f7b9e,_0xaffe66,_0x269071,_0x19397b,_0x1be3ff){const _0x5bb88b=_0x5138d6;super(),_(this,_0x5bb88b(0x111),new O[(_0x5bb88b(0x109))](_0x5bb88b(0x12f))),_(this,_0x5bb88b(0xf4),this['_status$'][_0x5bb88b(0x110)]()),_(this,_0x5bb88b(0x152),!0x1),_(this,_0x5bb88b(0x112),null),_(this,'_presenter',null),(this[_0x5bb88b(0x18b)]=_0x2f7b9e,this[_0x5bb88b(0xd6)]=_0xaffe66,this[_0x5bb88b(0x158)]=_0x269071,this[_0x5bb88b(0xef)]=_0x19397b,this[_0x5bb88b(0xe9)]=_0x1be3ff);}get['_status'](){const _0x2557fa=_0x5138d6;return this[_0x2557fa(0x111)][_0x2557fa(0x172)]();}[_0x5138d6(0x131)](){const _0x496679=_0x5138d6;var _0x357c0e;(_0x357c0e=this[_0x496679(0x112)])==null||_0x357c0e['dispose'](),this[_0x496679(0x111)][_0x496679(0xd5)](_0x496679(0x12f)),this[_0x496679(0x111)][_0x496679(0x147)]();}[_0x5138d6(0x19d)](){const _0x780cb0=_0x5138d6;return this[_0x780cb0(0xcd)];}[_0x5138d6(0x12d)](){const _0x19d4c8=_0x5138d6;this[_0x19d4c8(0x152)]||(this[_0x19d4c8(0x152)]=!0x0,this[_0x19d4c8(0xd6)][_0x19d4c8(0x191)][_0x19d4c8(0x11d)](I[_0x19d4c8(0x134)](this[_0x19d4c8(0x18e)]))[_0x19d4c8(0x167)](_0x1a4f5f=>{const _0x4a40af=_0x19d4c8;switch(_0x1a4f5f){case b[_0x4a40af(0xd2)][_0x4a40af(0x14a)]:this[_0x4a40af(0x145)]();break;case b[_0x4a40af(0xd2)][_0x4a40af(0x108)]:this[_0x4a40af(0x164)]();break;}}),this[_0x19d4c8(0xd6)]['event$'][_0x19d4c8(0x11d)](I['takeUntil'](this[_0x19d4c8(0x18e)]))['subscribe'](_0x4cd09b=>{const _0x413f17=_0x19d4c8,{eventID:_0x3f6bee}=_0x4cd09b;switch(_0x3f6bee){case d[_0x413f17(0x106)][_0x413f17(0x121)]:this[_0x413f17(0x129)](_0x4cd09b);break;case d[_0x413f17(0x106)][_0x413f17(0xf9)]:this[_0x413f17(0x14b)](_0x4cd09b);break;case d['CollaborationEvent'][_0x413f17(0x12a)]:this[_0x413f17(0x173)]();break;case d[_0x413f17(0x106)]['NEW_CHANGESETS']:this[_0x413f17(0x119)](_0x4cd09b);break;}}));}['tryStartPresenting'](){const _0x4e6a4c=_0x5138d6;this['_collabSession'][_0x4e6a4c(0xca)]({'eventID':d[_0x4e6a4c(0x106)][_0x4e6a4c(0xda)],'data':{'unitID':this['_unitID'],'userID':this[_0x4e6a4c(0xd6)][_0x4e6a4c(0x137)]()}},this[_0x4e6a4c(0x18b)]);}['stopPresenting'](){const _0x3b1c2c=_0x5138d6;this[_0x3b1c2c(0xcd)]==='presenting'&&(this['_status$'][_0x3b1c2c(0xd5)](_0x3b1c2c(0x12f)),this[_0x3b1c2c(0xd6)][_0x3b1c2c(0xca)]({'eventID':d['CollaborationEvent'][_0x3b1c2c(0x12a)],'data':{'unitID':this[_0x3b1c2c(0x18b)]}},this['_unitID']));}['startFollowing'](){const _0x477f79=_0x5138d6;this[_0x477f79(0xcd)]===_0x477f79(0x113)&&(this[_0x477f79(0x111)][_0x477f79(0xd5)](_0x477f79(0x135)),this[_0x477f79(0x102)]());}[_0x5138d6(0x120)](){const _0x358b7c=_0x5138d6;this[_0x358b7c(0xcd)]===_0x358b7c(0x135)&&this[_0x358b7c(0x157)]();}['_handleNewHost'](_0x51521a){const _0x50f484=_0x5138d6,{presenter:_0x28be77}=_0x51521a[_0x50f484(0x174)],_0x1c6838=this['_collabSession'][_0x50f484(0x137)]();this[_0x50f484(0x163)]=_0x28be77,_0x28be77===_0x1c6838?(this[_0x50f484(0x157)](),this[_0x50f484(0x189)]()):this[_0x50f484(0xcd)]!==_0x50f484(0x113)&&(this[_0x50f484(0x17f)](),this[_0x50f484(0x102)]());}[_0x5138d6(0x190)](){const _0x12e394=_0x5138d6,_0x108a8b={'eventID':d[_0x12e394(0x106)][_0x12e394(0x101)]};this[_0x12e394(0xd6)][_0x12e394(0xca)](_0x108a8b,this['_unitID']);}[_0x5138d6(0x173)](){const _0x4ec8db=_0x5138d6;this[_0x4ec8db(0x163)]=null,this[_0x4ec8db(0xcd)]!==_0x4ec8db(0xf8)&&this[_0x4ec8db(0x10a)]();}[_0x5138d6(0x119)](_0x273a2b){const _0x306c10=_0x5138d6;if(this[_0x306c10(0xcd)]===_0x306c10(0x135)&&this[_0x306c10(0x163)]===_0x273a2b[_0x306c10(0x174)][_0x306c10(0x14d)]){const _0x34b890=d[_0x306c10(0x15e)](_0x273a2b[_0x306c10(0x174)])[_0x306c10(0xd8)][_0x306c10(0x117)]()['find'](_0x1d1dd6=>_0x1d1dd6['id']===C[_0x306c10(0x194)]['id']);if(_0x34b890){const _0x1c83d4=_0x34b890['params'][_0x306c10(0x199)],_0x1fac23=_0x34b890['params'][_0x306c10(0xff)]['id'];setTimeout(()=>{const _0x1e7f15=_0x306c10;this['_commandService']['executeCommand'](C[_0x1e7f15(0x17a)]['id'],{'unitId':_0x1c83d4,'subUnitId':_0x1fac23},{'fromCollab':!0x0});});}}}[_0x5138d6(0x189)](){const _0x5107fd=_0x5138d6;this[_0x5107fd(0x111)][_0x5107fd(0xd5)]('presenting');const _0x4f76d1=new Map(),_0x1c7454=this['_commandDisposable']=new o['DisposableCollection']();_0x1c7454['add'](o[_0x5107fd(0x148)](()=>{const _0x19d773=_0x5107fd;_0x4f76d1[_0x19d773(0xcf)](_0x3f0fe5=>_0x3f0fe5['complete']()),_0x4f76d1[_0x19d773(0x151)]();})),_0x1c7454[_0x5107fd(0x141)](this[_0x5107fd(0xe9)]['onCommandExecuted'](_0xa43071=>{const _0x167097=_0x5107fd;var _0x405861;if(_0xa43071['type']!==o[_0x167097(0xe8)][_0x167097(0x19b)]||!this['_liveShareService'][_0x167097(0x175)](_0xa43071['id']))return;const {id:_0x3319c2}=_0xa43071;let _0x2f8288;_0x4f76d1[_0x167097(0x115)](_0x3319c2)?_0x2f8288=_0x4f76d1[_0x167097(0x168)](_0x3319c2):(_0x2f8288=new O[(_0x167097(0x144))](),_0x4f76d1['set'](_0x3319c2,_0x2f8288),_0x2f8288[_0x167097(0x11d)](I['throttleTime']((_0x405861=this[_0x167097(0x158)][_0x167097(0x122)](k))!=null?_0x405861:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x167097(0x167)](_0x2e72c1=>{const _0x41ad1d=_0x167097;this['_collabSession'][_0x41ad1d(0xca)]({'eventID':d[_0x41ad1d(0x106)][_0x41ad1d(0xf9)],'data':{'unitID':this[_0x41ad1d(0x18b)],'operations':{[_0x2e72c1['id']]:{'id':_0x2e72c1['id'],'params':JSON[_0x41ad1d(0x19a)](_0x2e72c1['params'])}}}},this[_0x41ad1d(0x18b)]);})),_0x2f8288[_0x167097(0xd5)](_0xa43071);})),this['_liveShareService'][_0x5107fd(0x19c)](this[_0x5107fd(0x18b)])[_0x5107fd(0xcf)](_0x4e9e96=>this[_0x5107fd(0xd6)][_0x5107fd(0xca)]({'eventID':d[_0x5107fd(0x106)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5107fd(0x18b)],'operations':{[_0x4e9e96['id']]:{'id':_0x4e9e96['id'],'params':JSON[_0x5107fd(0x19a)](_0x4e9e96[_0x5107fd(0x16a)])}}}},this[_0x5107fd(0x18b)]));}[_0x5138d6(0x17f)](){const _0x5ebeae=_0x5138d6;var _0x590cd0;this[_0x5ebeae(0x111)]['next']('idle'),(_0x590cd0=this['_commandDisposable'])==null||_0x590cd0[_0x5ebeae(0x131)](),this[_0x5ebeae(0x112)]=null;}[_0x5138d6(0x102)](){const _0x13f65f=_0x5138d6;var _0x5aa4ce;(_0x5aa4ce=this[_0x13f65f(0x112)])==null||_0x5aa4ce[_0x13f65f(0x131)](),this[_0x13f65f(0x111)][_0x13f65f(0xd5)](_0x13f65f(0x135));}[_0x5138d6(0x10a)](){const _0xb9696c=_0x5138d6;var _0x2e20e4;this[_0xb9696c(0x111)]['next'](_0xb9696c(0x12f)),(_0x2e20e4=this['_commandDisposable'])==null||_0x2e20e4[_0xb9696c(0x131)](),this[_0xb9696c(0x112)]=null;}['_stopFollowing'](){const _0x1ced07=_0x5138d6;var _0x1cd754;this[_0x1ced07(0x111)]['next']('not-following'),(_0x1cd754=this[_0x1ced07(0x112)])==null||_0x1cd754[_0x1ced07(0x131)]();}[_0x5138d6(0x14b)](_0x8baf4e){const _0x45ac98=_0x5138d6;if([_0x45ac98(0xf8),_0x45ac98(0x113),_0x45ac98(0xee)][_0x45ac98(0x133)](this[_0x45ac98(0xcd)])||!_0x8baf4e[_0x45ac98(0x174)][_0x45ac98(0x180)]||_0x8baf4e[_0x45ac98(0x174)][_0x45ac98(0x180)]===this[_0x45ac98(0xd6)]['getMemberID']())return;this[_0x45ac98(0xcd)]===_0x45ac98(0x12f)&&this[_0x45ac98(0x102)]();const _0x5f1980=_0x8baf4e[_0x45ac98(0x174)]['operations'];Object[_0x45ac98(0x124)](_0x5f1980)[_0x45ac98(0xcf)](_0x18046a=>{const _0xf13162=_0x45ac98;this[_0xf13162(0xe9)][_0xf13162(0x19e)](_0x18046a['id'],_0x18046a['params']?JSON[_0xf13162(0x15d)](_0x18046a['params']):null,{'fromCollab':!0x0});});}[_0x5138d6(0x145)](){const _0x3187c6=_0x5138d6;var _0xe793ae;this[_0x3187c6(0x111)][_0x3187c6(0xd5)](_0x3187c6(0xee)),(_0xe793ae=this['_commandDisposable'])==null||_0xe793ae[_0x3187c6(0x131)]();}[_0x5138d6(0x164)](){const _0x4b21db=_0x5138d6;this[_0x4b21db(0x111)][_0x4b21db(0xd5)](_0x4b21db(0x12f)),this[_0x4b21db(0x190)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x5138d6(0x10e)]),S(0x3,o[_0x5138d6(0x136)](E)),S(0x4,o[_0x5138d6(0x12c)])],exports[_0x5138d6(0x18d)]);function $(){const _0x234db5=_0x5138d6,_0x4ec12d=p[_0x234db5(0x125)](exports['LiveShareController']),_0x467150=p[_0x234db5(0x125)](o['IUniverInstanceService']),_0x316533=p['useObservable'](()=>_0x467150[_0x234db5(0x11e)](o[_0x234db5(0xfe)][_0x234db5(0x170)]),void 0x0,!0x1,[]),[_0x49db47,_0x465561]=v['useState'](null),[_0x2884d3,_0x5edd6d]=v[_0x234db5(0x195)](u['IDLE']),_0x3abe2b=v[_0x234db5(0x196)](null);return v[_0x234db5(0x181)](()=>(_0x316533&&_0x4ec12d[_0x234db5(0x176)](_0x316533['getUnitId']())['then'](_0x256e62=>{const _0x606f2e=_0x234db5;_0x465561(_0x256e62),_0x3abe2b['current']=_0x256e62['status$'][_0x606f2e(0x167)](_0x338517=>{_0x5edd6d(_0x338517);});}),()=>{const _0x1c790c=_0x234db5;var _0x3473f4;(_0x3473f4=_0x3abe2b[_0x1c790c(0x150)])==null||_0x3473f4[_0x1c790c(0xd0)](),_0x3abe2b['current']=null;}),[_0x316533,_0x4ec12d]),_0x49db47?l['jsx'](f[_0x234db5(0xc8)],{'align':'end','disabled':_0x2884d3===u[_0x234db5(0x14a)],'className':_0x234db5(0x11c),'overlay':l[_0x234db5(0xcb)](W,{'status':_0x2884d3,'coordinator':_0x49db47}),'children':l['jsx'](_0x234db5(0x100),{'className':f[_0x234db5(0x11f)](_0x234db5(0x127),{'univer-cursor-not-allowed':_0x2884d3===u[_0x234db5(0x14a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2884d3!==u[_0x234db5(0x14a)]}),'type':'button','children':l[_0x234db5(0xcb)](R,{'className':'univer-size-4'})})}):null;}function W(_0x8a5370){const _0x17c5fc=_0x5138d6,{status:_0x3a1cb3,coordinator:_0x4c92c8}=_0x8a5370;switch(_0x3a1cb3){case u['IDLE']:return l[_0x17c5fc(0xcb)](G,{'coordinator':_0x4c92c8});case u['FOLLOWING']:return l[_0x17c5fc(0xcb)](B,{'coordinator':_0x4c92c8});case u[_0x17c5fc(0xd9)]:return l['jsx'](Y,{'coordinator':_0x4c92c8});case u[_0x17c5fc(0x14a)]:return l[_0x17c5fc(0xcb)](J,{});case u[_0x17c5fc(0x10f)]:return l[_0x17c5fc(0xcb)](Z,{'coordinator':_0x4c92c8});default:return null;}}function G(_0x4d1195){const _0x2c9a53=_0x5138d6,{coordinator:_0x31f227}=_0x4d1195;return l[_0x2c9a53(0x138)](l[_0x2c9a53(0xe2)],{'children':[l[_0x2c9a53(0xcb)](_0x2c9a53(0x177),{'className':_0x2c9a53(0x118),'children':'Present\x20this\x20document'}),l[_0x2c9a53(0xcb)](f[_0x2c9a53(0x139)],{'onClick':()=>_0x31f227[_0x2c9a53(0x11b)](),'children':_0x2c9a53(0xfa)})]});}function B(_0x27e81e){const _0x36cabc=_0x5138d6,{coordinator:_0x30b8db}=_0x27e81e;return l[_0x36cabc(0x138)](l[_0x36cabc(0xe2)],{'children':[l['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](f[_0x36cabc(0x139)],{'onClick':()=>_0x30b8db[_0x36cabc(0x120)](),'children':_0x36cabc(0x161)})]});}function Y(_0x438202){const _0x567d5f=_0x5138d6,{coordinator:_0x403296}=_0x438202;return l[_0x567d5f(0x138)](l[_0x567d5f(0xe2)],{'children':[l[_0x567d5f(0xcb)](_0x567d5f(0x177),{'className':_0x567d5f(0x118),'children':_0x567d5f(0x18c)}),l['jsx'](f[_0x567d5f(0x139)],{'variant':'text','onClick':()=>_0x403296[_0x567d5f(0x183)](),'children':_0x567d5f(0xf0)})]});}function Z(_0x5dbb06){const _0x4531f1=_0x5138d6,{coordinator:_0xfeb065}=_0x5dbb06;return l[_0x4531f1(0x138)](l[_0x4531f1(0xe2)],{'children':[l[_0x4531f1(0xcb)](_0x4531f1(0x177),{'className':_0x4531f1(0x118),'children':_0x4531f1(0xf7)}),l['jsx'](f[_0x4531f1(0x139)],{'variant':_0x4531f1(0x188),'onClick':()=>_0xfeb065['stopPresenting'](),'children':_0x4531f1(0x17d)})]});}function J(){const _0xea85a=_0x5138d6;return l[_0xea85a(0xcb)](l[_0xea85a(0xe2)],{'children':_0xea85a(0x187)});}var K=Object[_0x5138d6(0x160)],z=(_0x40e17a,_0x5d8d81,_0x4bac7b,_0x5644ac)=>{const _0x299172=_0x5138d6;for(var _0xfe63f=_0x5644ac>0x1?void 0x0:_0x5644ac?K(_0x5d8d81,_0x4bac7b):_0x5d8d81,_0xac3ea0=_0x40e17a[_0x299172(0xdf)]-0x1,_0x41ac0d;_0xac3ea0>=0x0;_0xac3ea0--)(_0x41ac0d=_0x40e17a[_0xac3ea0])&&(_0xfe63f=_0x41ac0d(_0xfe63f)||_0xfe63f);return _0xfe63f;},L=(_0x150ebf,_0x5456b)=>(_0x25e871,_0x41a84e)=>_0x5456b(_0x25e871,_0x41a84e,_0x150ebf);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x1f898d,_0x5446e6){const _0x5b8ad3=_0x5138d6;super(),this[_0x5b8ad3(0x16c)]=_0x1f898d,this['_uiPartsService']=_0x5446e6,this[_0x5b8ad3(0xcc)]();}[_0x5138d6(0xcc)](){const _0x3408f7=_0x5138d6;this[_0x3408f7(0xf2)](this['_uiPartsService'][_0x3408f7(0xc9)](p[_0x3408f7(0xde)][_0x3408f7(0x198)],()=>p[_0x3408f7(0x140)]($,this['_injector'])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x5138d6(0x136)](o[_0x5138d6(0xf5)])),L(0x1,p[_0x5138d6(0xe6)])],exports[_0x5138d6(0x155)]);const Q=_0x5138d6(0x15c),w={};var X=Object[_0x5138d6(0x160)],ee=(_0x1b2182,_0x22208f,_0x26d3dc,_0xedb9d1)=>{const _0x7e3427=_0x5138d6;for(var _0x2a6beb=_0xedb9d1>0x1?void 0x0:_0xedb9d1?X(_0x22208f,_0x26d3dc):_0x22208f,_0x166e21=_0x1b2182[_0x7e3427(0xdf)]-0x1,_0x48c751;_0x166e21>=0x0;_0x166e21--)(_0x48c751=_0x1b2182[_0x166e21])&&(_0x2a6beb=_0x48c751(_0x2a6beb)||_0x2a6beb);return _0x2a6beb;},te=(_0x1ac975,_0x5ce4d5)=>(_0x238951,_0x222612)=>_0x5ce4d5(_0x238951,_0x222612,_0x1ac975);let m=class extends o[_0x5138d6(0x165)]{constructor(_0x3329f4){const _0x310c4e=_0x5138d6;super(),this[_0x310c4e(0xef)]=_0x3329f4,this[_0x310c4e(0x152)]();}[_0x5138d6(0x152)](){const _0x392847=_0x5138d6;[D['SetZoomRatioOperation']['id'],D[_0x392847(0x143)]['id'],C[_0x392847(0x17a)]['id']][_0x392847(0xcf)](_0x2edc44=>{const _0x4d229b=_0x392847;this[_0x4d229b(0xf2)](this[_0x4d229b(0xef)]['registerSharedOperation'](_0x2edc44));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x5138d6(0xe5)],se=Object[_0x5138d6(0x160)],ne=(_0x45d824,_0x3026f7,_0x54a3db)=>_0x3026f7 in _0x45d824?ie(_0x45d824,_0x3026f7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54a3db}):_0x45d824[_0x3026f7]=_0x54a3db,re=(_0x45248e,_0x2e25cf,_0x3d54fd,_0x4a0932)=>{const _0xf78467=_0x5138d6;for(var _0x249ee0=_0x4a0932>0x1?void 0x0:_0x4a0932?se(_0x2e25cf,_0x3d54fd):_0x2e25cf,_0x5952f4=_0x45248e[_0xf78467(0xdf)]-0x1,_0x4f0995;_0x5952f4>=0x0;_0x5952f4--)(_0x4f0995=_0x45248e[_0x5952f4])&&(_0x249ee0=_0x4f0995(_0x249ee0)||_0x249ee0);return _0x249ee0;},N=(_0x3a4699,_0x39bdfa)=>(_0x24eb8c,_0x2281ed)=>_0x39bdfa(_0x24eb8c,_0x2281ed,_0x3a4699),A=(_0x52bd98,_0x47b485,_0x414d63)=>ne(_0x52bd98,typeof _0x47b485!=_0x5138d6(0x197)?_0x47b485+'':_0x47b485,_0x414d63);const oe=_0x5138d6(0xdc);exports[_0x5138d6(0x17b)]=class extends o[_0x5138d6(0x107)]{constructor(_0x54b61f=w,_0x4df7ed,_0x1d12d0){const _0x5018cd=_0x5138d6;super(),this[_0x5018cd(0x178)]=_0x54b61f,this[_0x5018cd(0x16c)]=_0x4df7ed,this[_0x5018cd(0x158)]=_0x1d12d0;const {..._0x3b7fca}=o['merge']({},w,this['_config']);this[_0x5018cd(0x158)][_0x5018cd(0x156)](Q,_0x3b7fca);}[_0x5138d6(0xeb)](){const _0x24c8e5=_0x5138d6;o[_0x24c8e5(0x12b)](this[_0x24c8e5(0x16c)],o['mergeOverrideWithDependencies']([[E],[exports['LiveShareController']],[m],[exports[_0x24c8e5(0x155)]]],this[_0x24c8e5(0x178)][_0x24c8e5(0x15b)])),o[_0x24c8e5(0x16d)](this[_0x24c8e5(0x16c)],[[m]]);}['onRendered'](){const _0xb8e2cb=_0x5138d6;o['touchDependencies'](this[_0xb8e2cb(0x16c)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x5138d6(0x17b)],'type',o['UniverInstanceType'][_0x5138d6(0xce)]),A(exports[_0x5138d6(0x17b)],_0x5138d6(0x171),oe),exports[_0x5138d6(0x17b)]=re([o[_0x5138d6(0x13d)](b[_0x5138d6(0x153)]),N(0x1,o['Inject'](o[_0x5138d6(0xf5)])),N(0x2,o[_0x5138d6(0x10e)])],exports[_0x5138d6(0x17b)]),exports[_0x5138d6(0x159)]=$,exports[_0x5138d6(0xfd)]=E,exports[_0x5138d6(0x10c)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x591f44=_0x2906;(function(_0x15cbfa,_0xcab813){const _0x2e8c74=_0x2906,_0x2ad79d=_0x15cbfa();while(!![]){try{const _0x53edbe=-parseInt(_0x2e8c74(0xb5))/0x1*(parseInt(_0x2e8c74(0xbb))/0x2)+parseInt(_0x2e8c74(0xc2))/0x3*(parseInt(_0x2e8c74(0xba))/0x4)+-parseInt(_0x2e8c74(0xca))/0x5*(parseInt(_0x2e8c74(0xad))/0x6)+parseInt(_0x2e8c74(0xbd))/0x7*(-parseInt(_0x2e8c74(0xac))/0x8)+parseInt(_0x2e8c74(0xc7))/0x9*(-parseInt(_0x2e8c74(0xb4))/0xa)+-parseInt(_0x2e8c74(0xcc))/0xb+parseInt(_0x2e8c74(0xce))/0xc;if(_0x53edbe===_0xcab813)break;else _0x2ad79d['push'](_0x2ad79d['shift']());}catch(_0x3277e5){_0x2ad79d['push'](_0x2ad79d['shift']());}}}(_0x4b10,0xd872a));function _0x2906(_0x2f55b5,_0x127ad8){const _0x4b10da=_0x4b10();return _0x2906=function(_0x29068c,_0x201338){_0x29068c=_0x29068c-0xab;let _0x5384fb=_0x4b10da[_0x29068c];return _0x5384fb;},_0x2906(_0x2f55b5,_0x127ad8);}function _0x4b10(){const _0x1f847b=['2qzDrTO','getLiveShareStatus','5218766dRjBnl','getActiveWorkbook','startFollowing','get','getSheetId','6JgrWde','getId','getUnitId','_injector','IDLE','37341WCpGrM','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','10RHoJiy','executeCommand','7053332vuvjTa','startPresenting','46353864onntdV','_initialize','8LSAtzV','5142RmCUXf','_commandService','extend','syncExecuteCommand','stopPresenting','getStatus','LiveShareStatusEnum','750DPLcmv','1409531ZiwkXd','tryStartPresenting','startColumn','stopFollowing','No\x20active\x20workbook\x20found.','265836msEKCG'];_0x4b10=function(){return _0x1f847b;};return _0x4b10();}import{LiveShareController as _0x3f47b6,LiveShareStatus as _0x17c660}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x32ace1}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x5b7835}from'@univerjs/sheets';import{SetScrollOperation as _0x399b3d}from'@univerjs/sheets-ui';import{FRange as _0x3fa4b0}from'@univerjs/sheets/facade';import{FUniver as _0x929f6d,FEnum as _0x5b3fa5}from'@univerjs/core/facade';class I extends _0x3fa4b0{[_0x591f44(0xab)](_0x441314,_0x340617,_0x26406b,_0x46e62c,_0x48cfa4){const _0x5a8d55=_0x591f44,_0x530955=_0x441314[_0x5a8d55(0xc0)](_0x3f47b6),_0x2c781c=_0x441314[_0x5a8d55(0xc0)](_0x32ace1),_0x23f83e=_0x340617[_0x5a8d55(0xc4)](),_0x294c22=_0x340617['getActiveSheet'](),_0x5a51fe=_0x530955[_0x5a8d55(0xc8)](_0x23f83e);(_0x5a51fe==null?void 0x0:_0x5a51fe[_0x5a8d55(0xb2)]())!==_0x17c660['PRESENTING']||(_0x26406b[_0x5a8d55(0xc1)]()!==_0x294c22['getSheetId']()&&this[_0x5a8d55(0xae)][_0x5a8d55(0xcb)](_0x5b7835['id'],{'unitId':_0x23f83e,'subUnitId':_0x26406b[_0x5a8d55(0xc1)]()}),!_0x2c781c['getRenderById'](_0x23f83e))||_0x48cfa4[_0x5a8d55(0xb0)](_0x399b3d['id'],{'unitId':_0x340617['getUnitId'](),'sheetId':_0x26406b[_0x5a8d55(0xc1)](),'sheetViewStartRow':_0x46e62c['startRow'],'sheetViewStartColumn':_0x46e62c[_0x5a8d55(0xb7)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3fa4b0[_0x591f44(0xaf)](I);class m extends _0x929f6d{[_0x591f44(0xbc)](){const _0x27a722=_0x591f44;var _0x271cb9,_0x432c03;const _0x1ccb7f=this[_0x27a722(0xc5)][_0x27a722(0xc0)](_0x3f47b6),_0x3b1fcc=(_0x271cb9=this[_0x27a722(0xbe)]())==null?void 0x0:_0x271cb9[_0x27a722(0xc3)]();if(!_0x3b1fcc)throw new Error(_0x27a722(0xb9));const _0x62b8b7=_0x1ccb7f['getLiveShareCoordinatorSync'](_0x3b1fcc);return(_0x432c03=_0x62b8b7==null?void 0x0:_0x62b8b7['getStatus']())!=null?_0x432c03:_0x17c660[_0x27a722(0xc6)];}[_0x591f44(0xbf)](){const _0xa6b875=_0x591f44;var _0x9f48c6;const _0xf61466=this[_0xa6b875(0xc5)][_0xa6b875(0xc0)](_0x3f47b6),_0x49eb26=(_0x9f48c6=this[_0xa6b875(0xbe)]())==null?void 0x0:_0x9f48c6[_0xa6b875(0xc3)]();if(!_0x49eb26)throw new Error(_0xa6b875(0xb9));const _0xbc1606=_0xf61466[_0xa6b875(0xc8)](_0x49eb26);if(!_0xbc1606)throw new Error(_0xa6b875(0xc9));_0xbc1606['startFollowing']();}[_0x591f44(0xb8)](){const _0x161051=_0x591f44;var _0x39a3c0;const _0x4db4a9=this[_0x161051(0xc5)][_0x161051(0xc0)](_0x3f47b6),_0x3405c7=(_0x39a3c0=this[_0x161051(0xbe)]())==null?void 0x0:_0x39a3c0[_0x161051(0xc3)]();if(!_0x3405c7)throw new Error('No\x20active\x20workbook\x20found.');const _0x1923fa=_0x4db4a9['getLiveShareCoordinatorSync'](_0x3405c7);if(!_0x1923fa)throw new Error(_0x161051(0xc9));_0x1923fa[_0x161051(0xb8)]();}[_0x591f44(0xcd)](){const _0x2f6738=_0x591f44;var _0x27ffb6;const _0x5283c5=this['_injector']['get'](_0x3f47b6),_0x3e0d0a=(_0x27ffb6=this['getActiveWorkbook']())==null?void 0x0:_0x27ffb6[_0x2f6738(0xc3)]();if(!_0x3e0d0a)throw new Error('No\x20active\x20workbook\x20found.');const _0x2082c6=_0x5283c5['getLiveShareCoordinatorSync'](_0x3e0d0a);if(!_0x2082c6)throw new Error(_0x2f6738(0xc9));_0x2082c6[_0x2f6738(0xb6)]();}['stopPresenting'](){const _0x2bde3c=_0x591f44;var _0x30ca12;const _0xeb817=this[_0x2bde3c(0xc5)]['get'](_0x3f47b6),_0x19b468=(_0x30ca12=this[_0x2bde3c(0xbe)]())==null?void 0x0:_0x30ca12[_0x2bde3c(0xc3)]();if(!_0x19b468)throw new Error(_0x2bde3c(0xb9));const _0x56d7fc=_0xeb817[_0x2bde3c(0xc8)](_0x19b468);if(!_0x56d7fc)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x56d7fc[_0x2bde3c(0xb1)]();}}_0x929f6d[_0x591f44(0xaf)](m);class C extends _0x5b3fa5{get[_0x591f44(0xb3)](){return _0x17c660;}}_0x5b3fa5[_0x591f44(0xaf)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x33c0d5=_0x1222;(function(_0xc38f3c,_0x1da37d){const _0x134b08=_0x1222,_0x42afae=_0xc38f3c();while(!![]){try{const _0x247247=-parseInt(_0x134b08(0x1b6))/0x1+parseInt(_0x134b08(0x126))/0x2*(parseInt(_0x134b08(0x15c))/0x3)+parseInt(_0x134b08(0x191))/0x4+-parseInt(_0x134b08(0x166))/0x5*(-parseInt(_0x134b08(0x145))/0x6)+-parseInt(_0x134b08(0x1a1))/0x7*(-parseInt(_0x134b08(0x136))/0x8)+-parseInt(_0x134b08(0x165))/0x9*(-parseInt(_0x134b08(0x1c7))/0xa)+-parseInt(_0x134b08(0x169))/0xb;if(_0x247247===_0x1da37d)break;else _0x42afae['push'](_0x42afae['shift']());}catch(_0x3845c9){_0x42afae['push'](_0x42afae['shift']());}}}(_0x5737,0xd1d56));var J=Object['defineProperty'],K=(_0x2f0abe,_0x58c7d8,_0x1262e3)=>_0x58c7d8 in _0x2f0abe?J(_0x2f0abe,_0x58c7d8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1262e3}):_0x2f0abe[_0x58c7d8]=_0x1262e3,u=(_0x1bbc44,_0x63953d,_0x31ddb8)=>K(_0x1bbc44,typeof _0x63953d!='symbol'?_0x63953d+'':_0x63953d,_0x31ddb8);import{Disposable as _0x2eb520,toDisposable as _0xa18819,IUniverInstanceService as _0x213847,Inject as _0x1465af,Injector as _0x574d75,IConfigService as _0x3c1f5c,ICommandService as _0x2771da,RxDisposable as _0x207d4a,UniverInstanceType as _0x4e0037,DisposableCollection as _0x3472ee,CommandType as _0x2a1b33,DependentOn as _0x5cad98,Plugin as _0x2e958d,merge as _0x551b22,registerDependencies as _0x25b9eb,mergeOverrideWithDependencies as _0x4c2590,touchDependencies as _0x2704d5}from'@univerjs/core';import{useDependency as _0xd36f04,useObservable as _0x48b784,IUIPartsService as _0x45f094,BuiltInUIPart as _0x323948,connectInjector as _0x15a4f6}from'@univerjs/ui';import{jsx as _0x49193b,jsxs as _0x48b03d,Fragment as _0x456367}from'react/jsx-runtime';import{Dropdown as _0x35d73c,clsx as _0x4c3322,Button as _0x1199fb}from'@univerjs/design';import{useRef as _0xe1e52d,createElement as _0x35b954,forwardRef as _0x11b4d3,useState as _0x3f7468,useEffect as _0x1d6da2}from'react';import{CollaborationEvent as _0x29bfd2,parseProtocolChangeset as _0x1b4190}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xf04e22,SessionStatus as _0xdd7313,UniverCollaborationClientPlugin as _0x17a4d8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2b76f4,SetWorksheetActiveOperation as _0x4e0d10}from'@univerjs/sheets';import{BehaviorSubject as _0x29530b,Subject as _0x1f94fd}from'rxjs';import{takeUntil as _0x4ca9d7,throttleTime as _0x1b3748}from'rxjs/operators';import{SetZoomRatioOperation as _0x13e569,SetScrollOperation as _0x4f372f}from'@univerjs/sheets-ui';function k({ref:_0x3e2a3e,..._0x1d0690}){const _0x105f3e=_0x1222,{icon:_0x1995c9,id:_0x88d405,className:_0x570eb7,extend:_0x172618,..._0xd0f503}=_0x1d0690,_0x52cfb5=(_0x105f3e(0x132)+_0x88d405+'\x20'+(_0x570eb7||''))[_0x105f3e(0x146)](),_0x1420d5=_0xe1e52d('_'+Oe());return G(_0x1995c9,''+_0x88d405,{'defIds':_0x1995c9[_0x105f3e(0x17a)],'idSuffix':_0x1420d5[_0x105f3e(0x1ca)]},{'ref':_0x3e2a3e,'className':_0x52cfb5,..._0xd0f503},_0x172618);}function G(_0x1dcff4,_0x5754a0,_0x16f9cb,_0x1d4c04,_0x1c8f49){const _0x5bc735=_0x1222;return _0x35b954(_0x1dcff4[_0x5bc735(0x137)],{'key':_0x5754a0,...be(_0x1dcff4,_0x16f9cb,_0x1c8f49),..._0x1d4c04},(Ee(_0x1dcff4,_0x16f9cb)['children']||[])[_0x5bc735(0x1ce)]((_0x52e04c,_0x511943)=>G(_0x52e04c,_0x5754a0+'-'+_0x1dcff4['tag']+'-'+_0x511943,_0x16f9cb,void 0x0,_0x1c8f49)));}function be(_0x588129,_0x3b87ac,_0x574f9f){const _0x41e82b=_0x1222,_0x41fe0c={..._0x588129[_0x41e82b(0x149)]};_0x574f9f!=null&&_0x574f9f['colorChannel1']&&_0x41fe0c[_0x41e82b(0x1bb)]===_0x41e82b(0x1c2)&&(_0x41fe0c['fill']=_0x574f9f[_0x41e82b(0x1c2)]),_0x588129[_0x41e82b(0x137)]===_0x41e82b(0x14f)&&_0x41fe0c['id']&&(_0x41fe0c['id']=_0x41fe0c['id']+_0x3b87ac[_0x41e82b(0x185)]),Object[_0x41e82b(0x148)](_0x41fe0c)[_0x41e82b(0x15a)](([_0x4949d1,_0x2f2bf0])=>{const _0x3d91f9=_0x41e82b;_0x4949d1===_0x3d91f9(0x14f)&&typeof _0x2f2bf0==_0x3d91f9(0x19e)&&(_0x41fe0c[_0x4949d1]=_0x2f2bf0[_0x3d91f9(0x140)](/url\(#(.*)\)/,_0x3d91f9(0x16a)+_0x3b87ac[_0x3d91f9(0x185)]+')'));});const {defIds:_0x5c5cf1}=_0x3b87ac;return!_0x5c5cf1||_0x5c5cf1[_0x41e82b(0x155)]===0x0||(_0x588129[_0x41e82b(0x137)]===_0x41e82b(0x1b0)&&_0x41fe0c[_0x41e82b(0x1c9)]&&(_0x41fe0c[_0x41e82b(0x1c9)]=_0x41fe0c[_0x41e82b(0x1c9)]+_0x3b87ac[_0x41e82b(0x185)]),Object[_0x41e82b(0x148)](_0x41fe0c)[_0x41e82b(0x15a)](([_0x5e8fe4,_0x545ecd])=>{const _0xd51f4a=_0x41e82b;typeof _0x545ecd==_0xd51f4a(0x19e)&&(_0x41fe0c[_0x5e8fe4]=_0x545ecd[_0xd51f4a(0x140)](/url\(#(.*)\)/,_0xd51f4a(0x16a)+_0x3b87ac[_0xd51f4a(0x185)]+')'));})),_0x41fe0c;}function Ee(_0x42441f,_0x35a4d9){const _0x5a4c62=_0x1222;var _0x28e393;const {defIds:_0x476973}=_0x35a4d9;return!_0x476973||_0x476973[_0x5a4c62(0x155)]===0x0?_0x42441f:_0x42441f[_0x5a4c62(0x137)]===_0x5a4c62(0x18d)&&((_0x28e393=_0x42441f[_0x5a4c62(0x19f)])!=null&&_0x28e393[_0x5a4c62(0x155)])?{..._0x42441f,'children':_0x42441f[_0x5a4c62(0x19f)]['map'](_0x1d72fa=>typeof _0x1d72fa[_0x5a4c62(0x149)]['id']=='string'&&_0x476973&&_0x476973['includes'](_0x1d72fa[_0x5a4c62(0x149)]['id'])?{..._0x1d72fa,'attrs':{..._0x1d72fa[_0x5a4c62(0x149)],'id':_0x1d72fa['attrs']['id']+_0x35a4d9[_0x5a4c62(0x185)]}}:_0x1d72fa)}:_0x42441f;}function Oe(){const _0x564b23=_0x1222;return Math[_0x564b23(0x183)]()[_0x564b23(0x1b4)](0x24)[_0x564b23(0x16b)](0x2,0x8);}k[_0x33c0d5(0x15f)]='UniverIcon';const we={'tag':_0x33c0d5(0x1a0),'attrs':{'xmlns':_0x33c0d5(0x12b),'fill':_0x33c0d5(0x1b9),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x33c0d5(0x180)},'children':[{'tag':_0x33c0d5(0x19d),'attrs':{'fill':_0x33c0d5(0x16c),'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':_0x33c0d5(0x19d),'attrs':{'fill':'currentColor','d':_0x33c0d5(0x141),'fillRule':_0x33c0d5(0x14d),'clipRule':'evenodd'}}]},W=_0x11b4d3(function(_0x2f8ab0,_0x31a285){const _0x17d585=_0x33c0d5;return _0x35b954(k,Object[_0x17d585(0x131)]({},_0x2f8ab0,{'id':_0x17d585(0x1af),'ref':_0x31a285,'icon':we}));});W['displayName']=_0x33c0d5(0x195);class L extends _0x2eb520{constructor(){const _0x259797=_0x33c0d5;super(...arguments),u(this,_0x259797(0x152),new Set()),u(this,_0x259797(0x13f),new Set());}['registerSharedOperation'](_0x422cf7){const _0x1cbd7d=_0x33c0d5;return this[_0x1cbd7d(0x152)][_0x1cbd7d(0x12c)](_0x422cf7),_0xa18819(()=>this['_sharedOperations'][_0x1cbd7d(0x13c)](_0x422cf7));}['registerInitialStateReporter'](_0x24ac55){const _0x49eae2=_0x33c0d5;return this['_reporters']['add'](_0x24ac55),_0xa18819(()=>this[_0x49eae2(0x13f)][_0x49eae2(0x13c)](_0x24ac55));}[_0x33c0d5(0x190)](_0x1c02f0){const _0x3eaae5=_0x33c0d5;return this[_0x3eaae5(0x152)][_0x3eaae5(0x188)](_0x1c02f0);}['getInitialStates'](_0x1c1e29){const _0xe77863=_0x33c0d5;return Array[_0xe77863(0x142)](this[_0xe77863(0x13f)])['map'](_0x254b07=>_0x254b07(_0x1c1e29));}}var Ne=Object[_0x33c0d5(0x1c6)],Y=(_0x1c3ef3,_0x335640,_0x13906b,_0x3415f8)=>{const _0x48eb5d=_0x33c0d5;for(var _0x5e233e=_0x3415f8>0x1?void 0x0:_0x3415f8?Ne(_0x335640,_0x13906b):_0x335640,_0x4b7fd1=_0x1c3ef3[_0x48eb5d(0x155)]-0x1,_0x2c0daa;_0x4b7fd1>=0x0;_0x4b7fd1--)(_0x2c0daa=_0x1c3ef3[_0x4b7fd1])&&(_0x5e233e=_0x2c0daa(_0x5e233e)||_0x5e233e);return _0x5e233e;},_=(_0x338328,_0x1ca725)=>(_0x41b81f,_0x1877ef)=>_0x1ca725(_0x41b81f,_0x1877ef,_0x338328);let S=class extends _0x207d4a{constructor(_0x3620b5,_0x144df6,_0x65207c){const _0x26802a=_0x33c0d5;super(),u(this,_0x26802a(0x1a5),new Map()),(this['_univerInstanceService']=_0x3620b5,this[_0x26802a(0x1ac)]=_0x144df6,this['_collabSessionService']=_0x65207c,this[_0x26802a(0x161)]());}async[_0x33c0d5(0x1b5)](_0x581452){const _0x42f907=_0x33c0d5;return this[_0x42f907(0x1a5)][_0x42f907(0x188)](_0x581452)||await this[_0x42f907(0x1b7)](_0x581452),this['_entities']['get'](_0x581452);}[_0x33c0d5(0x1c1)](_0x4b561b){const _0x418d14=_0x33c0d5;var _0x38919e;return(_0x38919e=this[_0x418d14(0x1a5)][_0x418d14(0x15d)](_0x4b561b))!=null?_0x38919e:null;}[_0x33c0d5(0x161)](){const _0x49cf7e=_0x33c0d5;this[_0x49cf7e(0x139)][_0x49cf7e(0x1a3)](_0x4e0037['UNIVER_SHEET'])[_0x49cf7e(0x1c0)](_0x4ca9d7(this[_0x49cf7e(0x147)]))['subscribe'](async _0xdb3ebf=>{const _0x55b154=_0x49cf7e,_0x5e6e4d=_0xdb3ebf[_0x55b154(0x16d)]();this[_0x55b154(0x1a5)]['has'](_0x5e6e4d)||this['_startLiveShareCoordinator'](_0x5e6e4d);}),this[_0x49cf7e(0x139)]['getTypeOfUnitDisposed$'](_0x4e0037[_0x49cf7e(0x14b)])[_0x49cf7e(0x1c0)](_0x4ca9d7(this[_0x49cf7e(0x147)]))[_0x49cf7e(0x144)](_0x728095=>{const _0x58f6ef=_0x49cf7e,_0x2fe5e3=_0x728095['getUnitId'](),_0x21e7eb=this[_0x58f6ef(0x1a5)][_0x58f6ef(0x15d)](_0x2fe5e3);_0x21e7eb==null||_0x21e7eb['dispose']();});}async['_startLiveShareCoordinator'](_0x5d6ce2){const _0x36c28c=_0x33c0d5,_0xa7079d=await this[_0x36c28c(0x1a2)][_0x36c28c(0x154)](_0x5d6ce2),_0x24caf2=this[_0x36c28c(0x1ac)][_0x36c28c(0x175)](N,_0x5d6ce2,_0xa7079d);return _0x24caf2[_0x36c28c(0x199)](),this['_entities']['set'](_0x5d6ce2,_0x24caf2),_0x24caf2;}};function _0x5737(){const _0x2b629e=['Start\x20following','button','map','72LyiNun','next','_config','_status$','memberID','http://www.w3.org/2000/svg','add','following','LIVESHARE_REQUEST_HOST','presenting','clear','assign','univerjs-icon\x20univerjs-icon-','OFFLINE','_handleNewChangeSets','_collabSession','312jCJPzZ','tag','_handleOperation','_univerInstanceService','pluginName','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','delete','_uiPartsService','_handleOnline','_reporters','replace','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','from','You\x27re\x20presenting\x20the\x20document','subscribe','276TkWyuL','trim','dispose$','entries','attrs','setConfig','UNIVER_SHEET','params','evenodd','data','mask','_commandService','_liveShareService','_sharedOperations','getCurrentTypeOfUnit$','requireSession','length','end','reverse','_mountLiveShare','_presenter','forEach','getInitialStates','59379UBoXFP','get','_status','displayName','getMemberID','_init','tryStartPresenting','ONLINE','_handleOffline','612yOGUIo','20065KtogHw','stringify','parse','30409698mZwYqX','url(#$1','substring','currentColor','getUnitId','_handleNewHost','onStarting','_commandDisposable','_startFollowing','getValue','_stopFollowing','registerComponent','createInstance','UNIVER_UNKNOWN','onRendered','LIVESHARE_OPERATION','SAME_OPERATION_SHARE_INTERVAL','defIds','HEADER_MENU','stopPresenting','not-following','complete','IDLE','1em','univer-size-4','PRESENTING','random','You\x27are\x20offline.','idSuffix','Present\x20this\x20document','idle','has','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','sessionStatus$','_handleTerminate','defs','event$','override','shouldShareOperation','5616468MUlbij','Stop\x20following','executeCommand','_beIdle','LiveShareIcon','OPERATION','then','You\x27re\x20not\x20following\x20the\x20presenter','init','sheet','_configService','disposeWithMe','path','string','children','svg','209517zmPTbu','_collabSessionService','getTypeOfUnitAdded$','status$','_entities','operations','_stopPresenting','default','_unitID','UNIVER_LIVE_SHARE_PLUGIN','type','_injector','onCommandExecuted','_fetchOperations','live-share-icon','use','getStatus','div','unitId','toString','getLiveShareCoordinator','191036mmUoud','_startLiveShareCoordinator','send','none','NOT_FOLLOWING','fill','offline','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','startFollowing','You\x27re\x20following\x20the\x20presenter','pipe','getLiveShareCoordinatorSync','colorChannel1','stopFollowing','values','FOLLOWING','getOwnPropertyDescriptor','50950dxBeyJ','dispose','xlink:href','current','LIVESHARE_FETCH_OPERATIONS'];_0x5737=function(){return _0x2b629e;};return _0x5737();}S=Y([_(0x0,_0x213847),_(0x1,_0x1465af(_0x574d75)),_(0x2,_0x1465af(_0xf04e22))],S);var c=(_0xaaabbd=>(_0xaaabbd['OFFLINE']=_0x33c0d5(0x1bc),_0xaaabbd[_0x33c0d5(0x17f)]=_0x33c0d5(0x187),_0xaaabbd[_0x33c0d5(0x1c5)]=_0x33c0d5(0x12d),_0xaaabbd[_0x33c0d5(0x1ba)]=_0x33c0d5(0x17d),_0xaaabbd[_0x33c0d5(0x182)]=_0x33c0d5(0x12f),_0xaaabbd))(c||{});const Ce=_0x33c0d5(0x179),De=0xc8;let N=class extends _0x207d4a{constructor(_0x104238,_0x20136b,_0xf13c15,_0x441d09,_0x3499f3){const _0x432099=_0x33c0d5;super(),u(this,_0x432099(0x129),new _0x29530b('idle')),u(this,_0x432099(0x1a4),this[_0x432099(0x129)]['asObservable']()),u(this,_0x432099(0x161),!0x1),u(this,_0x432099(0x170),null),u(this,_0x432099(0x159),null),(this[_0x432099(0x1a9)]=_0x104238,this[_0x432099(0x135)]=_0x20136b,this[_0x432099(0x19b)]=_0xf13c15,this[_0x432099(0x151)]=_0x441d09,this[_0x432099(0x150)]=_0x3499f3);}get[_0x33c0d5(0x15e)](){const _0x31a985=_0x33c0d5;return this[_0x31a985(0x129)][_0x31a985(0x172)]();}['dispose'](){const _0x34299e=_0x33c0d5;var _0x25fada;(_0x25fada=this[_0x34299e(0x170)])==null||_0x25fada['dispose'](),this[_0x34299e(0x129)][_0x34299e(0x127)](_0x34299e(0x187)),this[_0x34299e(0x129)][_0x34299e(0x17e)]();}[_0x33c0d5(0x1b1)](){const _0x5c323f=_0x33c0d5;return this[_0x5c323f(0x15e)];}[_0x33c0d5(0x199)](){const _0x305fde=_0x33c0d5;this[_0x305fde(0x161)]||(this[_0x305fde(0x161)]=!0x0,this[_0x305fde(0x135)][_0x305fde(0x18b)]['pipe'](_0x4ca9d7(this[_0x305fde(0x147)]))[_0x305fde(0x144)](_0x3e8af5=>{const _0x3c97c8=_0x305fde;switch(_0x3e8af5){case _0xdd7313[_0x3c97c8(0x133)]:this[_0x3c97c8(0x164)]();break;case _0xdd7313[_0x3c97c8(0x163)]:this[_0x3c97c8(0x13e)]();break;}}),this['_collabSession'][_0x305fde(0x18e)][_0x305fde(0x1c0)](_0x4ca9d7(this[_0x305fde(0x147)]))[_0x305fde(0x144)](_0x3cbdb2=>{const _0x454ec8=_0x305fde,{eventID:_0x47052b}=_0x3cbdb2;switch(_0x47052b){case _0x29bfd2['LIVESHARE_NEW_HOST']:this[_0x454ec8(0x16e)](_0x3cbdb2);break;case _0x29bfd2[_0x454ec8(0x178)]:this[_0x454ec8(0x138)](_0x3cbdb2);break;case _0x29bfd2['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x29bfd2['NEW_CHANGESETS']:this[_0x454ec8(0x134)](_0x3cbdb2);break;}}));}[_0x33c0d5(0x162)](){const _0x262827=_0x33c0d5;this[_0x262827(0x135)][_0x262827(0x1b8)]({'eventID':_0x29bfd2[_0x262827(0x12e)],'data':{'unitID':this[_0x262827(0x1a9)],'userID':this[_0x262827(0x135)][_0x262827(0x160)]()}},this[_0x262827(0x1a9)]);}[_0x33c0d5(0x17c)](){const _0x340766=_0x33c0d5;this['_status']===_0x340766(0x12f)&&(this[_0x340766(0x129)][_0x340766(0x127)](_0x340766(0x187)),this[_0x340766(0x135)][_0x340766(0x1b8)]({'eventID':_0x29bfd2['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x340766(0x1a9)]}},this[_0x340766(0x1a9)]));}['startFollowing'](){const _0x3d6962=_0x33c0d5;this[_0x3d6962(0x15e)]===_0x3d6962(0x17d)&&(this[_0x3d6962(0x129)]['next']('following'),this[_0x3d6962(0x171)]());}[_0x33c0d5(0x1c3)](){const _0x1c9ebc=_0x33c0d5;this[_0x1c9ebc(0x15e)]==='following'&&this['_stopFollowing']();}[_0x33c0d5(0x16e)](_0x6447ca){const _0x399d76=_0x33c0d5,{presenter:_0x1f9c53}=_0x6447ca[_0x399d76(0x14e)],_0x147f73=this[_0x399d76(0x135)][_0x399d76(0x160)]();this[_0x399d76(0x159)]=_0x1f9c53,_0x1f9c53===_0x147f73?(this[_0x399d76(0x173)](),this['_startPresenting']()):this[_0x399d76(0x15e)]!==_0x399d76(0x17d)&&(this[_0x399d76(0x1a7)](),this[_0x399d76(0x171)]());}['_fetchOperations'](){const _0x49150a=_0x33c0d5,_0x120f6b={'eventID':_0x29bfd2[_0x49150a(0x1cb)]};this[_0x49150a(0x135)][_0x49150a(0x1b8)](_0x120f6b,this[_0x49150a(0x1a9)]);}[_0x33c0d5(0x18c)](){const _0x5874a9=_0x33c0d5;this[_0x5874a9(0x159)]=null,this[_0x5874a9(0x15e)]!==_0x5874a9(0x12f)&&this[_0x5874a9(0x194)]();}['_handleNewChangeSets'](_0x1ffaab){const _0x2729f7=_0x33c0d5;if(this[_0x2729f7(0x15e)]===_0x2729f7(0x12d)&&this['_presenter']===_0x1ffaab[_0x2729f7(0x14e)][_0x2729f7(0x12a)]){const _0x555b18=_0x1b4190(_0x1ffaab[_0x2729f7(0x14e)])['mutations'][_0x2729f7(0x157)]()['find'](_0x273be6=>_0x273be6['id']===_0x2b76f4['id']);if(_0x555b18){const _0x40688c=_0x555b18[_0x2729f7(0x14c)][_0x2729f7(0x1b3)],_0x313969=_0x555b18['params'][_0x2729f7(0x19a)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x4e0d10['id'],{'unitId':_0x40688c,'subUnitId':_0x313969},{'fromCollab':!0x0});});}}}[_0x33c0d5(0x18a)](){const _0x221cf7=_0x33c0d5;this[_0x221cf7(0x129)][_0x221cf7(0x127)](_0x221cf7(0x12f));const _0x1cfc55=new Map(),_0x1b9c67=this[_0x221cf7(0x170)]=new _0x3472ee();_0x1b9c67[_0x221cf7(0x12c)](_0xa18819(()=>{const _0x140d66=_0x221cf7;_0x1cfc55[_0x140d66(0x15a)](_0x3b6e48=>_0x3b6e48[_0x140d66(0x17e)]()),_0x1cfc55[_0x140d66(0x130)]();})),_0x1b9c67[_0x221cf7(0x12c)](this[_0x221cf7(0x150)][_0x221cf7(0x1ad)](_0x32b363=>{const _0x1b67b0=_0x221cf7;var _0x65dd7;if(_0x32b363[_0x1b67b0(0x1ab)]!==_0x2a1b33[_0x1b67b0(0x196)]||!this[_0x1b67b0(0x151)][_0x1b67b0(0x190)](_0x32b363['id']))return;const {id:_0x26ebe7}=_0x32b363;let _0x22fab2;_0x1cfc55[_0x1b67b0(0x188)](_0x26ebe7)?_0x22fab2=_0x1cfc55['get'](_0x26ebe7):(_0x22fab2=new _0x1f94fd(),_0x1cfc55['set'](_0x26ebe7,_0x22fab2),_0x22fab2[_0x1b67b0(0x1c0)](_0x1b3748((_0x65dd7=this['_configService']['getConfig'](Ce))!=null?_0x65dd7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x243441=>{const _0x2479af=_0x1b67b0;this[_0x2479af(0x135)]['send']({'eventID':_0x29bfd2[_0x2479af(0x178)],'data':{'unitID':this[_0x2479af(0x1a9)],'operations':{[_0x243441['id']]:{'id':_0x243441['id'],'params':JSON[_0x2479af(0x167)](_0x243441[_0x2479af(0x14c)])}}}},this[_0x2479af(0x1a9)]);})),_0x22fab2['next'](_0x32b363);})),this[_0x221cf7(0x151)][_0x221cf7(0x15b)](this[_0x221cf7(0x1a9)])['forEach'](_0x35245a=>this[_0x221cf7(0x135)][_0x221cf7(0x1b8)]({'eventID':_0x29bfd2['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x221cf7(0x1a9)],'operations':{[_0x35245a['id']]:{'id':_0x35245a['id'],'params':JSON[_0x221cf7(0x167)](_0x35245a['params'])}}}},this[_0x221cf7(0x1a9)]));}['_stopPresenting'](){const _0x1dbc32=_0x33c0d5;var _0x39c24f;this[_0x1dbc32(0x129)]['next'](_0x1dbc32(0x187)),(_0x39c24f=this[_0x1dbc32(0x170)])==null||_0x39c24f[_0x1dbc32(0x1c8)](),this[_0x1dbc32(0x170)]=null;}[_0x33c0d5(0x171)](){const _0x42e372=_0x33c0d5;var _0x532fc8;(_0x532fc8=this['_commandDisposable'])==null||_0x532fc8[_0x42e372(0x1c8)](),this['_status$'][_0x42e372(0x127)](_0x42e372(0x12d));}[_0x33c0d5(0x194)](){const _0x5a8405=_0x33c0d5;var _0x66b38a;this[_0x5a8405(0x129)]['next'](_0x5a8405(0x187)),(_0x66b38a=this[_0x5a8405(0x170)])==null||_0x66b38a[_0x5a8405(0x1c8)](),this[_0x5a8405(0x170)]=null;}[_0x33c0d5(0x173)](){const _0x15a659=_0x33c0d5;var _0x2e679c;this[_0x15a659(0x129)][_0x15a659(0x127)](_0x15a659(0x17d)),(_0x2e679c=this['_commandDisposable'])==null||_0x2e679c[_0x15a659(0x1c8)]();}[_0x33c0d5(0x138)](_0x183c52){const _0x6d984e=_0x33c0d5;if(['presenting','not-following','offline']['includes'](this[_0x6d984e(0x15e)])||!_0x183c52[_0x6d984e(0x14e)]['presenter']||_0x183c52[_0x6d984e(0x14e)]['presenter']===this[_0x6d984e(0x135)][_0x6d984e(0x160)]())return;this[_0x6d984e(0x15e)]===_0x6d984e(0x187)&&this[_0x6d984e(0x171)]();const _0x1e3449=_0x183c52[_0x6d984e(0x14e)][_0x6d984e(0x1a6)];Object[_0x6d984e(0x1c4)](_0x1e3449)[_0x6d984e(0x15a)](_0x2f8c7d=>{const _0x4d4938=_0x6d984e;this[_0x4d4938(0x150)][_0x4d4938(0x193)](_0x2f8c7d['id'],_0x2f8c7d['params']?JSON[_0x4d4938(0x168)](_0x2f8c7d['params']):null,{'fromCollab':!0x0});});}[_0x33c0d5(0x164)](){const _0x53bc54=_0x33c0d5;var _0x50e45a;this[_0x53bc54(0x129)][_0x53bc54(0x127)](_0x53bc54(0x1bc)),(_0x50e45a=this['_commandDisposable'])==null||_0x50e45a[_0x53bc54(0x1c8)]();}[_0x33c0d5(0x13e)](){const _0x4dbb4e=_0x33c0d5;this['_status$']['next']('idle'),this[_0x4dbb4e(0x1ae)]();}};N=Y([_(0x2,_0x3c1f5c),_(0x3,_0x1465af(L)),_(0x4,_0x2771da)],N);function Le(){const _0x56c829=_0x33c0d5,_0x577148=_0xd36f04(S),_0xb8fd38=_0xd36f04(_0x213847),_0x26ac52=_0x48b784(()=>_0xb8fd38[_0x56c829(0x153)](_0x4e0037[_0x56c829(0x14b)]),void 0x0,!0x1,[]),[_0x36c11f,_0x57c9da]=_0x3f7468(null),[_0x5b75b8,_0x21c879]=_0x3f7468(c[_0x56c829(0x17f)]),_0x343147=_0xe1e52d(null);return _0x1d6da2(()=>(_0x26ac52&&_0x577148[_0x56c829(0x1b5)](_0x26ac52['getUnitId']())[_0x56c829(0x197)](_0x4b9e4c=>{const _0x411c26=_0x56c829;_0x57c9da(_0x4b9e4c),_0x343147[_0x411c26(0x1ca)]=_0x4b9e4c[_0x411c26(0x1a4)][_0x411c26(0x144)](_0x5a8237=>{_0x21c879(_0x5a8237);});}),()=>{const _0x45a284=_0x56c829;var _0x6281b8;(_0x6281b8=_0x343147[_0x45a284(0x1ca)])==null||_0x6281b8['unsubscribe'](),_0x343147[_0x45a284(0x1ca)]=null;}),[_0x26ac52,_0x577148]),_0x36c11f?_0x49193b(_0x35d73c,{'align':_0x56c829(0x156),'disabled':_0x5b75b8===c['OFFLINE'],'className':_0x56c829(0x13b),'overlay':_0x49193b(Re,{'status':_0x5b75b8,'coordinator':_0x36c11f}),'children':_0x49193b(_0x56c829(0x1cd),{'className':_0x4c3322(_0x56c829(0x1bd),{'univer-cursor-not-allowed':_0x5b75b8===c[_0x56c829(0x133)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5b75b8!==c[_0x56c829(0x133)]}),'type':_0x56c829(0x1cd),'children':_0x49193b(W,{'className':_0x56c829(0x181)})})}):null;}function Re(_0x1353a5){const _0xe9e261=_0x33c0d5,{status:_0xee14a0,coordinator:_0x138400}=_0x1353a5;switch(_0xee14a0){case c['IDLE']:return _0x49193b($e,{'coordinator':_0x138400});case c[_0xe9e261(0x1c5)]:return _0x49193b(xe,{'coordinator':_0x138400});case c[_0xe9e261(0x1ba)]:return _0x49193b(Pe,{'coordinator':_0x138400});case c['OFFLINE']:return _0x49193b(Te,{});case c[_0xe9e261(0x182)]:return _0x49193b(Ae,{'coordinator':_0x138400});default:return null;}}function $e(_0x566fb5){const _0x166b5a=_0x33c0d5,{coordinator:_0x121373}=_0x566fb5;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x166b5a(0x1b2),{'className':_0x166b5a(0x189),'children':_0x166b5a(0x186)}),_0x49193b(_0x1199fb,{'onClick':()=>_0x121373[_0x166b5a(0x162)](),'children':'Start'})]});}function xe(_0x4c9455){const _0xaa9693=_0x33c0d5,{coordinator:_0x28b4c4}=_0x4c9455;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0xaa9693(0x1b2),{'className':_0xaa9693(0x189),'children':_0xaa9693(0x1bf)}),_0x49193b(_0x1199fb,{'onClick':()=>_0x28b4c4[_0xaa9693(0x1c3)](),'children':_0xaa9693(0x192)})]});}function Pe(_0x54b4a7){const _0x4462b7=_0x33c0d5,{coordinator:_0x2e917b}=_0x54b4a7;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x4462b7(0x1b2),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4462b7(0x198)}),_0x49193b(_0x1199fb,{'variant':'text','onClick':()=>_0x2e917b[_0x4462b7(0x1be)](),'children':_0x4462b7(0x1cc)})]});}function Ae(_0x55f81e){const _0x3a34a5=_0x33c0d5,{coordinator:_0x59917b}=_0x55f81e;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x3a34a5(0x1b2),{'className':_0x3a34a5(0x189),'children':_0x3a34a5(0x143)}),_0x49193b(_0x1199fb,{'variant':_0x3a34a5(0x1a8),'onClick':()=>_0x59917b[_0x3a34a5(0x17c)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x6846d=_0x33c0d5;return _0x49193b(_0x456367,{'children':_0x6846d(0x184)});}var Fe=Object[_0x33c0d5(0x1c6)],He=(_0x4b37e4,_0x198a55,_0x1e7182,_0x11e564)=>{const _0x5c3745=_0x33c0d5;for(var _0x4a86d0=_0x11e564>0x1?void 0x0:_0x11e564?Fe(_0x198a55,_0x1e7182):_0x198a55,_0xcc357f=_0x4b37e4[_0x5c3745(0x155)]-0x1,_0x3b988c;_0xcc357f>=0x0;_0xcc357f--)(_0x3b988c=_0x4b37e4[_0xcc357f])&&(_0x4a86d0=_0x3b988c(_0x4a86d0)||_0x4a86d0);return _0x4a86d0;},A=(_0x111d56,_0x12470e)=>(_0x8d18f4,_0x39d9af)=>_0x12470e(_0x8d18f4,_0x39d9af,_0x111d56);let m=class extends _0x2eb520{constructor(_0x2abe36,_0x4689d8){const _0x3bda93=_0x33c0d5;super(),this[_0x3bda93(0x1ac)]=_0x2abe36,this[_0x3bda93(0x13d)]=_0x4689d8,this[_0x3bda93(0x158)]();}['_mountLiveShare'](){const _0x42e789=_0x33c0d5;this[_0x42e789(0x19c)](this['_uiPartsService'][_0x42e789(0x174)](_0x323948[_0x42e789(0x17b)],()=>_0x15a4f6(Le,this[_0x42e789(0x1ac)])));}};m=He([A(0x0,_0x1465af(_0x574d75)),A(0x1,_0x45f094)],m);const ye='live-share.config',T={};var Ue=Object[_0x33c0d5(0x1c6)],Ve=(_0x18256d,_0x4f7013,_0x463f23,_0x28a97c)=>{const _0x4935ac=_0x33c0d5;for(var _0x54fcfd=_0x28a97c>0x1?void 0x0:_0x28a97c?Ue(_0x4f7013,_0x463f23):_0x4f7013,_0x3c8a47=_0x18256d[_0x4935ac(0x155)]-0x1,_0x1a5916;_0x3c8a47>=0x0;_0x3c8a47--)(_0x1a5916=_0x18256d[_0x3c8a47])&&(_0x54fcfd=_0x1a5916(_0x54fcfd)||_0x54fcfd);return _0x54fcfd;},je=(_0x577057,_0x47b77b)=>(_0x5daa0f,_0xf55712)=>_0x47b77b(_0x5daa0f,_0xf55712,_0x577057);let I=class extends _0x2eb520{constructor(_0xe92e93){const _0x400446=_0x33c0d5;super(),this[_0x400446(0x151)]=_0xe92e93,this[_0x400446(0x161)]();}[_0x33c0d5(0x161)](){const _0x21ea4c=_0x33c0d5;[_0x13e569['id'],_0x4f372f['id'],_0x4e0d10['id']][_0x21ea4c(0x15a)](_0x366faa=>{const _0x56259c=_0x21ea4c;this[_0x56259c(0x19c)](this[_0x56259c(0x151)]['registerSharedOperation'](_0x366faa));});}};I=Ve([je(0x0,_0x1465af(L))],I);var Me=Object['defineProperty'],ke=Object[_0x33c0d5(0x1c6)],Ge=(_0x5e08c4,_0x256ca7,_0x29d861)=>_0x256ca7 in _0x5e08c4?Me(_0x5e08c4,_0x256ca7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29d861}):_0x5e08c4[_0x256ca7]=_0x29d861,We=(_0x493c72,_0x356d27,_0x48f45e,_0x2f82e0)=>{const _0x941ad4=_0x33c0d5;for(var _0x31b645=_0x2f82e0>0x1?void 0x0:_0x2f82e0?ke(_0x356d27,_0x48f45e):_0x356d27,_0x47ee4b=_0x493c72[_0x941ad4(0x155)]-0x1,_0x5ef4db;_0x47ee4b>=0x0;_0x47ee4b--)(_0x5ef4db=_0x493c72[_0x47ee4b])&&(_0x31b645=_0x5ef4db(_0x31b645)||_0x31b645);return _0x31b645;},F=(_0x17a408,_0x1ba768)=>(_0x449c19,_0x467754)=>_0x1ba768(_0x449c19,_0x467754,_0x17a408),B=(_0x1a8d3f,_0x1eb3b6,_0x1a635b)=>Ge(_0x1a8d3f,typeof _0x1eb3b6!='symbol'?_0x1eb3b6+'':_0x1eb3b6,_0x1a635b);function _0x1222(_0x1ae22d,_0x56d74b){const _0x5737d1=_0x5737();return _0x1222=function(_0x122212,_0x47b29b){_0x122212=_0x122212-0x126;let _0x26ecd0=_0x5737d1[_0x122212];return _0x26ecd0;},_0x1222(_0x1ae22d,_0x56d74b);}const Ye=_0x33c0d5(0x1aa);let b=class extends _0x2e958d{constructor(_0x2fae6e=T,_0x4a87e9,_0x3a0f26){const _0x49638d=_0x33c0d5;super(),this[_0x49638d(0x128)]=_0x2fae6e,this['_injector']=_0x4a87e9,this[_0x49638d(0x19b)]=_0x3a0f26;const {..._0x2cf667}=_0x551b22({},T,this[_0x49638d(0x128)]);this[_0x49638d(0x19b)][_0x49638d(0x14a)](ye,_0x2cf667);}[_0x33c0d5(0x16f)](){const _0x2b25d2=_0x33c0d5;_0x25b9eb(this[_0x2b25d2(0x1ac)],_0x4c2590([[L],[S],[I],[m]],this[_0x2b25d2(0x128)][_0x2b25d2(0x18f)])),_0x2704d5(this[_0x2b25d2(0x1ac)],[[I]]);}[_0x33c0d5(0x177)](){const _0x391f29=_0x33c0d5;_0x2704d5(this[_0x391f29(0x1ac)],[[m]]);}};B(b,_0x33c0d5(0x1ab),_0x4e0037[_0x33c0d5(0x176)]),B(b,_0x33c0d5(0x13a),Ye),b=We([_0x5cad98(_0x17a4d8),F(0x1,_0x1465af(_0x574d75)),F(0x2,_0x3c1f5c)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x50b04f=_0xee39;(function(_0xf26e8,_0x154d03){const _0x5dafee=_0xee39,_0x115527=_0xf26e8();while(!![]){try{const _0xddc865=-parseInt(_0x5dafee(0xed))/0x1*(-parseInt(_0x5dafee(0x153))/0x2)+parseInt(_0x5dafee(0x136))/0x3*(parseInt(_0x5dafee(0x10a))/0x4)+parseInt(_0x5dafee(0x173))/0x5+-parseInt(_0x5dafee(0xe7))/0x6*(parseInt(_0x5dafee(0xeb))/0x7)+parseInt(_0x5dafee(0x159))/0x8*(-parseInt(_0x5dafee(0xe0))/0x9)+-parseInt(_0x5dafee(0x185))/0xa+parseInt(_0x5dafee(0xe8))/0xb;if(_0xddc865===_0x154d03)break;else _0x115527['push'](_0x115527['shift']());}catch(_0x450a95){_0x115527['push'](_0x115527['shift']());}}}(_0x5745,0x75ad7));var J=Object[_0x50b04f(0x163)],K=(_0x371aa7,_0x237b40,_0x234f19)=>_0x237b40 in _0x371aa7?J(_0x371aa7,_0x237b40,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x234f19}):_0x371aa7[_0x237b40]=_0x234f19,u=(_0x255e77,_0x401ad3,_0x47e471)=>K(_0x255e77,typeof _0x401ad3!=_0x50b04f(0xef)?_0x401ad3+'':_0x401ad3,_0x47e471);import{Disposable as _0x378465,toDisposable as _0x2f79c9,IUniverInstanceService as _0x564a28,Inject as _0x3ff304,Injector as _0xd5904c,IConfigService as _0x3f06fa,ICommandService as _0xa43ba5,RxDisposable as _0x545f48,UniverInstanceType as _0x4cc59d,DisposableCollection as _0xbd95de,CommandType as _0xbddddd,DependentOn as _0x28bdb8,Plugin as _0x1ab157,merge as _0x4a1ce3,registerDependencies as _0x46b869,mergeOverrideWithDependencies as _0xa8fa05,touchDependencies as _0x1720fd}from'@univerjs/core';import{useDependency as _0x641c68,useObservable as _0x153a06,IUIPartsService as _0x426c2b,BuiltInUIPart as _0x3c3833,connectInjector as _0xc72806}from'@univerjs/ui';import{jsx as _0x408ea6,jsxs as _0x22742b,Fragment as _0x58da67}from'react/jsx-runtime';import{Dropdown as _0x34b338,clsx as _0x5933a1,Button as _0x4a665a}from'@univerjs/design';import{useRef as _0x2095df,createElement as _0x2ac1e4,forwardRef as _0x17469d,useState as _0x592726,useEffect as _0x5788d1}from'react';import{CollaborationEvent as _0x49f1c2,parseProtocolChangeset as _0x375e1a}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x48de6e,SessionStatus as _0xbbeeaf,UniverCollaborationClientPlugin as _0x350d70}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x29fe2e,SetWorksheetActiveOperation as _0x41dfb1}from'@univerjs/sheets';import{BehaviorSubject as _0x36972b,Subject as _0x3736e1}from'rxjs';import{takeUntil as _0x19303d,throttleTime as _0xf3bebc}from'rxjs/operators';import{SetZoomRatioOperation as _0x19a876,SetScrollOperation as _0x279c42}from'@univerjs/sheets-ui';function k({ref:_0x343fdb,..._0x30c6bf}){const _0x4a3791=_0x50b04f,{icon:_0x5b883,id:_0x228eeb,className:_0x2cbba6,extend:_0x39489c,..._0x3939c1}=_0x30c6bf,_0x2ae7c9=('univerjs-icon\x20univerjs-icon-'+_0x228eeb+'\x20'+(_0x2cbba6||''))['trim'](),_0x5d844e=_0x2095df('_'+Oe());return G(_0x5b883,''+_0x228eeb,{'defIds':_0x5b883['defIds'],'idSuffix':_0x5d844e[_0x4a3791(0x15b)]},{'ref':_0x343fdb,'className':_0x2ae7c9,..._0x3939c1},_0x39489c);}function G(_0x9de647,_0x1a5737,_0x41359e,_0x3edb4b,_0x43bfdc){const _0x31ffa7=_0x50b04f;return _0x2ac1e4(_0x9de647[_0x31ffa7(0xf5)],{'key':_0x1a5737,...be(_0x9de647,_0x41359e,_0x43bfdc),..._0x3edb4b},(Ee(_0x9de647,_0x41359e)['children']||[])[_0x31ffa7(0x17b)]((_0x53ab09,_0x40273e)=>G(_0x53ab09,_0x1a5737+'-'+_0x9de647[_0x31ffa7(0xf5)]+'-'+_0x40273e,_0x41359e,void 0x0,_0x43bfdc)));}function be(_0x1be9da,_0x2596f0,_0x3188ff){const _0x5dae10=_0x50b04f,_0x5be719={..._0x1be9da[_0x5dae10(0x120)]};_0x3188ff!=null&&_0x3188ff['colorChannel1']&&_0x5be719[_0x5dae10(0x11d)]==='colorChannel1'&&(_0x5be719[_0x5dae10(0x11d)]=_0x3188ff[_0x5dae10(0x15a)]),_0x1be9da[_0x5dae10(0xf5)]===_0x5dae10(0xf6)&&_0x5be719['id']&&(_0x5be719['id']=_0x5be719['id']+_0x2596f0[_0x5dae10(0xff)]),Object[_0x5dae10(0x14f)](_0x5be719)['forEach'](([_0x32d59d,_0x5f4f4e])=>{const _0x22504d=_0x5dae10;_0x32d59d==='mask'&&typeof _0x5f4f4e==_0x22504d(0xe2)&&(_0x5be719[_0x32d59d]=_0x5f4f4e['replace'](/url\(#(.*)\)/,_0x22504d(0x183)+_0x2596f0['idSuffix']+')'));});const {defIds:_0x2748dd}=_0x2596f0;return!_0x2748dd||_0x2748dd['length']===0x0||(_0x1be9da[_0x5dae10(0xf5)]===_0x5dae10(0x100)&&_0x5be719[_0x5dae10(0x115)]&&(_0x5be719[_0x5dae10(0x115)]=_0x5be719[_0x5dae10(0x115)]+_0x2596f0[_0x5dae10(0xff)]),Object[_0x5dae10(0x14f)](_0x5be719)[_0x5dae10(0x14b)](([_0xbfa7b9,_0x1e4440])=>{const _0x5c64a2=_0x5dae10;typeof _0x1e4440=='string'&&(_0x5be719[_0xbfa7b9]=_0x1e4440[_0x5c64a2(0x103)](/url\(#(.*)\)/,_0x5c64a2(0x183)+_0x2596f0[_0x5c64a2(0xff)]+')'));})),_0x5be719;}function Ee(_0x327a0f,_0x265c7c){const _0x5ad147=_0x50b04f;var _0x50e117;const {defIds:_0x16b3c7}=_0x265c7c;return!_0x16b3c7||_0x16b3c7[_0x5ad147(0x109)]===0x0?_0x327a0f:_0x327a0f[_0x5ad147(0xf5)]===_0x5ad147(0xea)&&((_0x50e117=_0x327a0f['children'])!=null&&_0x50e117[_0x5ad147(0x109)])?{..._0x327a0f,'children':_0x327a0f[_0x5ad147(0x11e)]['map'](_0x25b4b9=>typeof _0x25b4b9[_0x5ad147(0x120)]['id']==_0x5ad147(0xe2)&&_0x16b3c7&&_0x16b3c7[_0x5ad147(0x140)](_0x25b4b9['attrs']['id'])?{..._0x25b4b9,'attrs':{..._0x25b4b9['attrs'],'id':_0x25b4b9[_0x5ad147(0x120)]['id']+_0x265c7c[_0x5ad147(0xff)]}}:_0x25b4b9)}:_0x327a0f;}function _0xee39(_0x340cfb,_0x4f9c71){const _0x574550=_0x5745();return _0xee39=function(_0xee398f,_0x301161){_0xee398f=_0xee398f-0xda;let _0x56a247=_0x574550[_0xee398f];return _0x56a247;},_0xee39(_0x340cfb,_0x4f9c71);}function Oe(){const _0x51a784=_0x50b04f;return Math[_0x51a784(0x11f)]()[_0x51a784(0x164)](0x24)[_0x51a784(0xfd)](0x2,0x8);}k['displayName']=_0x50b04f(0x132);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x50b04f(0x129),'viewBox':_0x50b04f(0x10b),'width':_0x50b04f(0xf0),'height':_0x50b04f(0xf0)},'children':[{'tag':_0x50b04f(0x161),'attrs':{'fill':'currentColor','d':_0x50b04f(0x123)}},{'tag':'path','attrs':{'fill':_0x50b04f(0x14a),'d':_0x50b04f(0x15f),'fillRule':'evenodd','clipRule':_0x50b04f(0xe9)}}]},W=_0x17469d(function(_0x3c34a5,_0x345683){const _0x58ef7d=_0x50b04f;return _0x2ac1e4(k,Object[_0x58ef7d(0xfc)]({},_0x3c34a5,{'id':_0x58ef7d(0x127),'ref':_0x345683,'icon':we}));});W[_0x50b04f(0x101)]=_0x50b04f(0x11a);class L extends _0x378465{constructor(){const _0xbdae33=_0x50b04f;super(...arguments),u(this,_0xbdae33(0x10d),new Set()),u(this,_0xbdae33(0x168),new Set());}[_0x50b04f(0x107)](_0xaa2105){const _0x3e6827=_0x50b04f;return this[_0x3e6827(0x10d)][_0x3e6827(0x17a)](_0xaa2105),_0x2f79c9(()=>this['_sharedOperations']['delete'](_0xaa2105));}['registerInitialStateReporter'](_0x5d1a25){const _0x1e2cca=_0x50b04f;return this['_reporters'][_0x1e2cca(0x17a)](_0x5d1a25),_0x2f79c9(()=>this[_0x1e2cca(0x168)][_0x1e2cca(0xe6)](_0x5d1a25));}[_0x50b04f(0x10e)](_0x14e033){const _0x1f52a9=_0x50b04f;return this[_0x1f52a9(0x10d)][_0x1f52a9(0x137)](_0x14e033);}[_0x50b04f(0x17e)](_0x20eeca){const _0x17da24=_0x50b04f;return Array[_0x17da24(0x156)](this[_0x17da24(0x168)])['map'](_0xb0b4d4=>_0xb0b4d4(_0x20eeca));}}var Ne=Object[_0x50b04f(0x14c)],Y=(_0x36f9ac,_0x4a0afc,_0x18c399,_0x53046c)=>{const _0x24dc1c=_0x50b04f;for(var _0x2768e6=_0x53046c>0x1?void 0x0:_0x53046c?Ne(_0x4a0afc,_0x18c399):_0x4a0afc,_0x3e7783=_0x36f9ac[_0x24dc1c(0x109)]-0x1,_0x5aaf88;_0x3e7783>=0x0;_0x3e7783--)(_0x5aaf88=_0x36f9ac[_0x3e7783])&&(_0x2768e6=_0x5aaf88(_0x2768e6)||_0x2768e6);return _0x2768e6;},_=(_0x2dbdbd,_0x48ab65)=>(_0x1bbc14,_0x122b83)=>_0x48ab65(_0x1bbc14,_0x122b83,_0x2dbdbd);let S=class extends _0x545f48{constructor(_0x1aa91e,_0x270d5a,_0x2507f1){const _0xd15aad=_0x50b04f;super(),u(this,_0xd15aad(0x14d),new Map()),(this[_0xd15aad(0x167)]=_0x1aa91e,this[_0xd15aad(0x162)]=_0x270d5a,this[_0xd15aad(0x117)]=_0x2507f1,this[_0xd15aad(0x145)]());}async[_0x50b04f(0xfe)](_0x4722c3){const _0x47edfd=_0x50b04f;return this[_0x47edfd(0x14d)][_0x47edfd(0x137)](_0x4722c3)||await this['_startLiveShareCoordinator'](_0x4722c3),this[_0x47edfd(0x14d)][_0x47edfd(0x113)](_0x4722c3);}['getLiveShareCoordinatorSync'](_0x4ae5e2){const _0x5af2d9=_0x50b04f;var _0x427b6d;return(_0x427b6d=this['_entities'][_0x5af2d9(0x113)](_0x4ae5e2))!=null?_0x427b6d:null;}[_0x50b04f(0x145)](){const _0x12f9c9=_0x50b04f;this[_0x12f9c9(0x167)][_0x12f9c9(0x116)](_0x4cc59d['UNIVER_SHEET'])[_0x12f9c9(0xf2)](_0x19303d(this['dispose$']))[_0x12f9c9(0x125)](async _0x4f3de5=>{const _0x4964a0=_0x12f9c9,_0xa3e1b5=_0x4f3de5[_0x4964a0(0x172)]();this[_0x4964a0(0x14d)][_0x4964a0(0x137)](_0xa3e1b5)||this[_0x4964a0(0x184)](_0xa3e1b5);}),this[_0x12f9c9(0x167)]['getTypeOfUnitDisposed$'](_0x4cc59d[_0x12f9c9(0x13e)])[_0x12f9c9(0xf2)](_0x19303d(this[_0x12f9c9(0x181)]))[_0x12f9c9(0x125)](_0x285b68=>{const _0x2f5dd5=_0x12f9c9,_0x2e086b=_0x285b68[_0x2f5dd5(0x172)](),_0x461f29=this[_0x2f5dd5(0x14d)]['get'](_0x2e086b);_0x461f29==null||_0x461f29[_0x2f5dd5(0x121)]();});}async[_0x50b04f(0x184)](_0x9391e5){const _0xbdc5b4=_0x50b04f,_0x5a1a89=await this[_0xbdc5b4(0x117)][_0xbdc5b4(0x175)](_0x9391e5),_0xc7d42c=this[_0xbdc5b4(0x162)][_0xbdc5b4(0x170)](N,_0x9391e5,_0x5a1a89);return _0xc7d42c[_0xbdc5b4(0x151)](),this[_0xbdc5b4(0x14d)][_0xbdc5b4(0x118)](_0x9391e5,_0xc7d42c),_0xc7d42c;}};S=Y([_(0x0,_0x564a28),_(0x1,_0x3ff304(_0xd5904c)),_(0x2,_0x3ff304(_0x48de6e))],S);var c=(_0x9fd566=>(_0x9fd566[_0x50b04f(0x130)]=_0x50b04f(0x114),_0x9fd566[_0x50b04f(0xfb)]=_0x50b04f(0x171),_0x9fd566[_0x50b04f(0x12d)]=_0x50b04f(0x146),_0x9fd566[_0x50b04f(0x147)]='not-following',_0x9fd566['PRESENTING']='presenting',_0x9fd566))(c||{});const Ce=_0x50b04f(0x15c),De=0xc8;let N=class extends _0x545f48{constructor(_0x82f574,_0xd94469,_0xec77ca,_0x59d98e,_0xbebafc){const _0x33d9fc=_0x50b04f;super(),u(this,_0x33d9fc(0x13d),new _0x36972b(_0x33d9fc(0x171))),u(this,_0x33d9fc(0xdc),this[_0x33d9fc(0x13d)][_0x33d9fc(0x111)]()),u(this,_0x33d9fc(0x145),!0x1),u(this,_0x33d9fc(0x165),null),u(this,_0x33d9fc(0x13b),null),(this[_0x33d9fc(0x12f)]=_0x82f574,this['_collabSession']=_0xd94469,this['_configService']=_0xec77ca,this['_liveShareService']=_0x59d98e,this[_0x33d9fc(0x11b)]=_0xbebafc);}get[_0x50b04f(0xe4)](){const _0x44b6f5=_0x50b04f;return this[_0x44b6f5(0x13d)][_0x44b6f5(0x160)]();}[_0x50b04f(0x121)](){const _0x2f6b49=_0x50b04f;var _0x515b43;(_0x515b43=this[_0x2f6b49(0x165)])==null||_0x515b43[_0x2f6b49(0x121)](),this[_0x2f6b49(0x13d)]['next']('idle'),this[_0x2f6b49(0x13d)][_0x2f6b49(0x108)]();}[_0x50b04f(0x128)](){return this['_status'];}[_0x50b04f(0x151)](){const _0x1cdf27=_0x50b04f;this[_0x1cdf27(0x145)]||(this['_init']=!0x0,this[_0x1cdf27(0x177)][_0x1cdf27(0x182)]['pipe'](_0x19303d(this[_0x1cdf27(0x181)]))[_0x1cdf27(0x125)](_0x84dd0d=>{const _0x540edb=_0x1cdf27;switch(_0x84dd0d){case _0xbbeeaf[_0x540edb(0x130)]:this['_handleOffline']();break;case _0xbbeeaf[_0x540edb(0x12b)]:this[_0x540edb(0x135)]();break;}}),this[_0x1cdf27(0x177)][_0x1cdf27(0x104)][_0x1cdf27(0xf2)](_0x19303d(this['dispose$']))['subscribe'](_0x4dd224=>{const _0x484dac=_0x1cdf27,{eventID:_0x32ed85}=_0x4dd224;switch(_0x32ed85){case _0x49f1c2[_0x484dac(0xf9)]:this[_0x484dac(0x119)](_0x4dd224);break;case _0x49f1c2['LIVESHARE_OPERATION']:this[_0x484dac(0x106)](_0x4dd224);break;case _0x49f1c2[_0x484dac(0xfa)]:this[_0x484dac(0x17f)]();break;case _0x49f1c2[_0x484dac(0xec)]:this['_handleNewChangeSets'](_0x4dd224);break;}}));}[_0x50b04f(0xf7)](){const _0x59a7d5=_0x50b04f;this[_0x59a7d5(0x177)][_0x59a7d5(0xf3)]({'eventID':_0x49f1c2[_0x59a7d5(0x157)],'data':{'unitID':this[_0x59a7d5(0x12f)],'userID':this[_0x59a7d5(0x177)][_0x59a7d5(0x15e)]()}},this[_0x59a7d5(0x12f)]);}[_0x50b04f(0x11c)](){const _0x41d7d9=_0x50b04f;this[_0x41d7d9(0xe4)]==='presenting'&&(this[_0x41d7d9(0x13d)][_0x41d7d9(0x13a)](_0x41d7d9(0x171)),this[_0x41d7d9(0x177)][_0x41d7d9(0xf3)]({'eventID':_0x49f1c2[_0x41d7d9(0xfa)],'data':{'unitID':this[_0x41d7d9(0x12f)]}},this[_0x41d7d9(0x12f)]));}[_0x50b04f(0x142)](){const _0x174ac4=_0x50b04f;this['_status']===_0x174ac4(0x16f)&&(this[_0x174ac4(0x13d)][_0x174ac4(0x13a)](_0x174ac4(0x146)),this['_startFollowing']());}[_0x50b04f(0x12a)](){const _0x114ddf=_0x50b04f;this['_status']===_0x114ddf(0x146)&&this['_stopFollowing']();}[_0x50b04f(0x119)](_0x88e54d){const _0x2fc252=_0x50b04f,{presenter:_0xe24a5c}=_0x88e54d['data'],_0x2a43a4=this[_0x2fc252(0x177)]['getMemberID']();this[_0x2fc252(0x13b)]=_0xe24a5c,_0xe24a5c===_0x2a43a4?(this[_0x2fc252(0x158)](),this[_0x2fc252(0x144)]()):this[_0x2fc252(0xe4)]!==_0x2fc252(0x16f)&&(this[_0x2fc252(0x10f)](),this[_0x2fc252(0x12e)]());}['_fetchOperations'](){const _0x49e74a=_0x50b04f,_0x31daea={'eventID':_0x49f1c2[_0x49e74a(0x179)]};this[_0x49e74a(0x177)][_0x49e74a(0xf3)](_0x31daea,this[_0x49e74a(0x12f)]);}[_0x50b04f(0x17f)](){const _0x1a161d=_0x50b04f;this[_0x1a161d(0x13b)]=null,this[_0x1a161d(0xe4)]!==_0x1a161d(0x13c)&&this[_0x1a161d(0x187)]();}[_0x50b04f(0x16c)](_0xb3276c){const _0xed44=_0x50b04f;if(this[_0xed44(0xe4)]===_0xed44(0x146)&&this[_0xed44(0x13b)]===_0xb3276c['data'][_0xed44(0x141)]){const _0x4d8694=_0x375e1a(_0xb3276c[_0xed44(0x12c)])['mutations'][_0xed44(0x124)]()[_0xed44(0x126)](_0x196348=>_0x196348['id']===_0x29fe2e['id']);if(_0x4d8694){const _0x4ab96b=_0x4d8694[_0xed44(0x155)][_0xed44(0x166)],_0x27cc32=_0x4d8694[_0xed44(0x155)][_0xed44(0x15d)]['id'];setTimeout(()=>{const _0x1780bf=_0xed44;this[_0x1780bf(0x11b)]['executeCommand'](_0x41dfb1['id'],{'unitId':_0x4ab96b,'subUnitId':_0x27cc32},{'fromCollab':!0x0});});}}}[_0x50b04f(0x144)](){const _0x366330=_0x50b04f;this[_0x366330(0x13d)][_0x366330(0x13a)]('presenting');const _0x295e0a=new Map(),_0x32b8e2=this[_0x366330(0x165)]=new _0xbd95de();_0x32b8e2['add'](_0x2f79c9(()=>{const _0x55f140=_0x366330;_0x295e0a['forEach'](_0x3c6ac1=>_0x3c6ac1[_0x55f140(0x108)]()),_0x295e0a[_0x55f140(0x154)]();})),_0x32b8e2['add'](this['_commandService'][_0x366330(0x14e)](_0xcfcf8a=>{const _0x6bd60b=_0x366330;var _0xd051c1;if(_0xcfcf8a[_0x6bd60b(0x150)]!==_0xbddddd['OPERATION']||!this[_0x6bd60b(0x16a)]['shouldShareOperation'](_0xcfcf8a['id']))return;const {id:_0x4bd043}=_0xcfcf8a;let _0x56b407;_0x295e0a[_0x6bd60b(0x137)](_0x4bd043)?_0x56b407=_0x295e0a[_0x6bd60b(0x113)](_0x4bd043):(_0x56b407=new _0x3736e1(),_0x295e0a[_0x6bd60b(0x118)](_0x4bd043,_0x56b407),_0x56b407[_0x6bd60b(0xf2)](_0xf3bebc((_0xd051c1=this['_configService'][_0x6bd60b(0xe5)](Ce))!=null?_0xd051c1:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x6bd60b(0x125)](_0x37ed4e=>{const _0x295257=_0x6bd60b;this[_0x295257(0x177)][_0x295257(0xf3)]({'eventID':_0x49f1c2[_0x295257(0x180)],'data':{'unitID':this[_0x295257(0x12f)],'operations':{[_0x37ed4e['id']]:{'id':_0x37ed4e['id'],'params':JSON[_0x295257(0xf1)](_0x37ed4e['params'])}}}},this[_0x295257(0x12f)]);})),_0x56b407[_0x6bd60b(0x13a)](_0xcfcf8a);})),this['_liveShareService'][_0x366330(0x17e)](this[_0x366330(0x12f)])[_0x366330(0x14b)](_0x37ca9f=>this[_0x366330(0x177)][_0x366330(0xf3)]({'eventID':_0x49f1c2[_0x366330(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x37ca9f['id']]:{'id':_0x37ca9f['id'],'params':JSON['stringify'](_0x37ca9f[_0x366330(0x155)])}}}},this[_0x366330(0x12f)]));}[_0x50b04f(0x10f)](){const _0x1df2ac=_0x50b04f;var _0x3b8a7f;this[_0x1df2ac(0x13d)][_0x1df2ac(0x13a)](_0x1df2ac(0x171)),(_0x3b8a7f=this[_0x1df2ac(0x165)])==null||_0x3b8a7f[_0x1df2ac(0x121)](),this[_0x1df2ac(0x165)]=null;}[_0x50b04f(0x12e)](){const _0xd9cad7=_0x50b04f;var _0x3af639;(_0x3af639=this[_0xd9cad7(0x165)])==null||_0x3af639[_0xd9cad7(0x121)](),this[_0xd9cad7(0x13d)][_0xd9cad7(0x13a)](_0xd9cad7(0x146));}[_0x50b04f(0x187)](){const _0x371fbf=_0x50b04f;var _0x101868;this[_0x371fbf(0x13d)]['next'](_0x371fbf(0x171)),(_0x101868=this[_0x371fbf(0x165)])==null||_0x101868[_0x371fbf(0x121)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x1ef81e=_0x50b04f;var _0x3490ec;this['_status$'][_0x1ef81e(0x13a)](_0x1ef81e(0x16f)),(_0x3490ec=this[_0x1ef81e(0x165)])==null||_0x3490ec['dispose']();}['_handleOperation'](_0x1f89e9){const _0x5c6acc=_0x50b04f;if([_0x5c6acc(0x13c),_0x5c6acc(0x16f),_0x5c6acc(0x114)]['includes'](this[_0x5c6acc(0xe4)])||!_0x1f89e9[_0x5c6acc(0x12c)]['presenter']||_0x1f89e9[_0x5c6acc(0x12c)]['presenter']===this[_0x5c6acc(0x177)][_0x5c6acc(0x15e)]())return;this['_status']==='idle'&&this[_0x5c6acc(0x12e)]();const _0x2b586f=_0x1f89e9[_0x5c6acc(0x12c)][_0x5c6acc(0x102)];Object[_0x5c6acc(0x178)](_0x2b586f)[_0x5c6acc(0x14b)](_0x12be96=>{const _0x9a6aa2=_0x5c6acc;this[_0x9a6aa2(0x11b)][_0x9a6aa2(0x13f)](_0x12be96['id'],_0x12be96['params']?JSON[_0x9a6aa2(0xf4)](_0x12be96['params']):null,{'fromCollab':!0x0});});}[_0x50b04f(0x17c)](){const _0x2f2112=_0x50b04f;var _0x326d10;this[_0x2f2112(0x13d)][_0x2f2112(0x13a)]('offline'),(_0x326d10=this[_0x2f2112(0x165)])==null||_0x326d10[_0x2f2112(0x121)]();}[_0x50b04f(0x135)](){const _0xd3fc62=_0x50b04f;this[_0xd3fc62(0x13d)]['next']('idle'),this[_0xd3fc62(0xdd)]();}};N=Y([_(0x2,_0x3f06fa),_(0x3,_0x3ff304(L)),_(0x4,_0xa43ba5)],N);function Le(){const _0x425a26=_0x50b04f,_0x33af56=_0x641c68(S),_0x21ba4d=_0x641c68(_0x564a28),_0x35afcb=_0x153a06(()=>_0x21ba4d['getCurrentTypeOfUnit$'](_0x4cc59d[_0x425a26(0x13e)]),void 0x0,!0x1,[]),[_0x1a9b5a,_0x1555e5]=_0x592726(null),[_0x3c8862,_0x537543]=_0x592726(c[_0x425a26(0xfb)]),_0x1edff9=_0x2095df(null);return _0x5788d1(()=>(_0x35afcb&&_0x33af56['getLiveShareCoordinator'](_0x35afcb[_0x425a26(0x172)]())[_0x425a26(0x148)](_0x303e58=>{const _0x13b8ba=_0x425a26;_0x1555e5(_0x303e58),_0x1edff9['current']=_0x303e58['status$'][_0x13b8ba(0x125)](_0x3556f7=>{_0x537543(_0x3556f7);});}),()=>{const _0x34b450=_0x425a26;var _0x1c5a73;(_0x1c5a73=_0x1edff9[_0x34b450(0x15b)])==null||_0x1c5a73['unsubscribe'](),_0x1edff9['current']=null;}),[_0x35afcb,_0x33af56]),_0x1a9b5a?_0x408ea6(_0x34b338,{'align':_0x425a26(0x110),'disabled':_0x3c8862===c[_0x425a26(0x130)],'className':_0x425a26(0x143),'overlay':_0x408ea6(Re,{'status':_0x3c8862,'coordinator':_0x1a9b5a}),'children':_0x408ea6('button',{'className':_0x5933a1(_0x425a26(0xda),{'univer-cursor-not-allowed':_0x3c8862===c[_0x425a26(0x130)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3c8862!==c[_0x425a26(0x130)]}),'type':_0x425a26(0x16b),'children':_0x408ea6(W,{'className':_0x425a26(0xde)})})}):null;}function Re(_0x333cfe){const _0xf3bd1=_0x50b04f,{status:_0x427722,coordinator:_0x386f5d}=_0x333cfe;switch(_0x427722){case c[_0xf3bd1(0xfb)]:return _0x408ea6($e,{'coordinator':_0x386f5d});case c[_0xf3bd1(0x12d)]:return _0x408ea6(xe,{'coordinator':_0x386f5d});case c[_0xf3bd1(0x147)]:return _0x408ea6(Pe,{'coordinator':_0x386f5d});case c[_0xf3bd1(0x130)]:return _0x408ea6(Te,{});case c[_0xf3bd1(0xe1)]:return _0x408ea6(Ae,{'coordinator':_0x386f5d});default:return null;}}function $e(_0x22db2f){const _0x179d8b=_0x50b04f,{coordinator:_0x2e34c0}=_0x22db2f;return _0x22742b(_0x58da67,{'children':[_0x408ea6(_0x179d8b(0x105),{'className':_0x179d8b(0x152),'children':'Present\x20this\x20document'}),_0x408ea6(_0x4a665a,{'onClick':()=>_0x2e34c0['tryStartPresenting'](),'children':_0x179d8b(0x112)})]});}function xe(_0x53c24f){const _0x1046ab=_0x50b04f,{coordinator:_0x594c65}=_0x53c24f;return _0x22742b(_0x58da67,{'children':[_0x408ea6(_0x1046ab(0x105),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1046ab(0x122)}),_0x408ea6(_0x4a665a,{'onClick':()=>_0x594c65[_0x1046ab(0x12a)](),'children':_0x1046ab(0x186)})]});}function Pe(_0x28d3d1){const _0x157407=_0x50b04f,{coordinator:_0x5e4c77}=_0x28d3d1;return _0x22742b(_0x58da67,{'children':[_0x408ea6(_0x157407(0x105),{'className':_0x157407(0x152),'children':_0x157407(0x133)}),_0x408ea6(_0x4a665a,{'variant':'text','onClick':()=>_0x5e4c77[_0x157407(0x142)](),'children':_0x157407(0x174)})]});}function Ae(_0x1c32e1){const _0xcb554a=_0x50b04f,{coordinator:_0x39fe68}=_0x1c32e1;return _0x22742b(_0x58da67,{'children':[_0x408ea6(_0xcb554a(0x105),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xcb554a(0xee)}),_0x408ea6(_0x4a665a,{'variant':_0xcb554a(0xf8),'onClick':()=>_0x39fe68[_0xcb554a(0x11c)](),'children':_0xcb554a(0xdf)})]});}function Te(){const _0x3cb263=_0x50b04f;return _0x408ea6(_0x58da67,{'children':_0x3cb263(0x139)});}var Fe=Object[_0x50b04f(0x14c)],He=(_0x2a4ed6,_0x46fc88,_0x33c399,_0x139cd1)=>{for(var _0x30acc7=_0x139cd1>0x1?void 0x0:_0x139cd1?Fe(_0x46fc88,_0x33c399):_0x46fc88,_0x1ed215=_0x2a4ed6['length']-0x1,_0x2436e4;_0x1ed215>=0x0;_0x1ed215--)(_0x2436e4=_0x2a4ed6[_0x1ed215])&&(_0x30acc7=_0x2436e4(_0x30acc7)||_0x30acc7);return _0x30acc7;},A=(_0x25810a,_0x48ac82)=>(_0x24634a,_0x5936b8)=>_0x48ac82(_0x24634a,_0x5936b8,_0x25810a);let m=class extends _0x378465{constructor(_0x3f3571,_0x47653a){const _0x5c1f5b=_0x50b04f;super(),this['_injector']=_0x3f3571,this['_uiPartsService']=_0x47653a,this[_0x5c1f5b(0x10c)]();}[_0x50b04f(0x10c)](){const _0x1542a7=_0x50b04f;this[_0x1542a7(0xdb)](this['_uiPartsService'][_0x1542a7(0x17d)](_0x3c3833[_0x1542a7(0xe3)],()=>_0xc72806(Le,this['_injector'])));}};m=He([A(0x0,_0x3ff304(_0xd5904c)),A(0x1,_0x426c2b)],m);const ye='live-share.config',T={};var Ue=Object[_0x50b04f(0x14c)],Ve=(_0x37edf9,_0xf06aba,_0x3f916d,_0x15cfc5)=>{const _0xe7fc76=_0x50b04f;for(var _0x4771ad=_0x15cfc5>0x1?void 0x0:_0x15cfc5?Ue(_0xf06aba,_0x3f916d):_0xf06aba,_0x3a8af8=_0x37edf9[_0xe7fc76(0x109)]-0x1,_0xabb176;_0x3a8af8>=0x0;_0x3a8af8--)(_0xabb176=_0x37edf9[_0x3a8af8])&&(_0x4771ad=_0xabb176(_0x4771ad)||_0x4771ad);return _0x4771ad;},je=(_0x13c758,_0x468ed5)=>(_0x1b61ad,_0x119d8b)=>_0x468ed5(_0x1b61ad,_0x119d8b,_0x13c758);let I=class extends _0x378465{constructor(_0x1284a6){const _0x420b21=_0x50b04f;super(),this[_0x420b21(0x16a)]=_0x1284a6,this['_init']();}[_0x50b04f(0x145)](){const _0x429f46=_0x50b04f;[_0x19a876['id'],_0x279c42['id'],_0x41dfb1['id']][_0x429f46(0x14b)](_0x1cbe32=>{const _0x393dea=_0x429f46;this[_0x393dea(0xdb)](this[_0x393dea(0x16a)][_0x393dea(0x107)](_0x1cbe32));});}};I=Ve([je(0x0,_0x3ff304(L))],I);var Me=Object[_0x50b04f(0x163)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x5c944b,_0x15b51a,_0x58f5d3)=>_0x15b51a in _0x5c944b?Me(_0x5c944b,_0x15b51a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58f5d3}):_0x5c944b[_0x15b51a]=_0x58f5d3,We=(_0x10b311,_0xbe874e,_0x5e3e90,_0x2a1976)=>{const _0x1b9b93=_0x50b04f;for(var _0x60b384=_0x2a1976>0x1?void 0x0:_0x2a1976?ke(_0xbe874e,_0x5e3e90):_0xbe874e,_0x305aff=_0x10b311[_0x1b9b93(0x109)]-0x1,_0x5ec9cb;_0x305aff>=0x0;_0x305aff--)(_0x5ec9cb=_0x10b311[_0x305aff])&&(_0x60b384=_0x5ec9cb(_0x60b384)||_0x60b384);return _0x60b384;},F=(_0x8d9638,_0x514e7f)=>(_0x2cf29e,_0x2fba08)=>_0x514e7f(_0x2cf29e,_0x2fba08,_0x8d9638),B=(_0x80addc,_0x624f7f,_0x137b51)=>Ge(_0x80addc,typeof _0x624f7f!=_0x50b04f(0xef)?_0x624f7f+'':_0x624f7f,_0x137b51);function _0x5745(){const _0x4dbf1=['6240388QenMGg','evenodd','defs','407834qRAloz','NEW_CHANGESETS','2ZudEtk','You\x27re\x20presenting\x20the\x20document','symbol','1em','stringify','pipe','send','parse','tag','mask','tryStartPresenting','default','LIVESHARE_NEW_HOST','LIVESHARE_TERMINATE','IDLE','assign','substring','getLiveShareCoordinator','idSuffix','use','displayName','operations','replace','event$','div','_handleOperation','registerSharedOperation','complete','length','316hPYqoL','0\x200\x2017\x2017','_mountLiveShare','_sharedOperations','shouldShareOperation','_stopPresenting','end','asObservable','Start','get','offline','xlink:href','getTypeOfUnitAdded$','_collabSessionService','set','_handleNewHost','LiveShareIcon','_commandService','stopPresenting','fill','children','random','attrs','dispose','You\x27re\x20following\x20the\x20presenter','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','reverse','subscribe','find','live-share-icon','getStatus','none','stopFollowing','ONLINE','data','FOLLOWING','_startFollowing','_unitID','OFFLINE','setConfig','UniverIcon','You\x27re\x20not\x20following\x20the\x20presenter','UNIVER_LIVE_SHARE_PLUGIN','_handleOnline','7818dVxyYB','has','_configService','You\x27are\x20offline.','next','_presenter','presenting','_status$','UNIVER_SHEET','executeCommand','includes','memberID','startFollowing','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_startPresenting','_init','following','NOT_FOLLOWING','then','_config','currentColor','forEach','getOwnPropertyDescriptor','_entities','onCommandExecuted','entries','type','init','univer-mb-3\x20univer-w-full\x20univer-text-sm','32924aKZHWl','clear','params','from','LIVESHARE_REQUEST_HOST','_stopFollowing','72KpgQrA','colorChannel1','current','SAME_OPERATION_SHARE_INTERVAL','sheet','getMemberID','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','getValue','path','_injector','defineProperty','toString','_commandDisposable','unitId','_univerInstanceService','_reporters','override','_liveShareService','button','_handleNewChangeSets','UNIVER_UNKNOWN','onRendered','not-following','createInstance','idle','getUnitId','2700465rHXLNw','Start\x20following','requireSession','pluginName','_collabSession','values','LIVESHARE_FETCH_OPERATIONS','add','map','_handleOffline','registerComponent','getInitialStates','_handleTerminate','LIVESHARE_OPERATION','dispose$','sessionStatus$','url(#$1','_startLiveShareCoordinator','3750450SfmBrS','Stop\x20following','_beIdle','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','disposeWithMe','status$','_fetchOperations','univer-size-4','Stop\x20presenting','314361UZxBKI','PRESENTING','string','HEADER_MENU','_status','getConfig','delete','18FRxkcF'];_0x5745=function(){return _0x4dbf1;};return _0x5745();}const Ye=_0x50b04f(0x134);let b=class extends _0x1ab157{constructor(_0x71ae57=T,_0x52a755,_0x2d02d6){const _0x347bbb=_0x50b04f;super(),this[_0x347bbb(0x149)]=_0x71ae57,this[_0x347bbb(0x162)]=_0x52a755,this[_0x347bbb(0x138)]=_0x2d02d6;const {..._0x3321a9}=_0x4a1ce3({},T,this['_config']);this['_configService'][_0x347bbb(0x131)](ye,_0x3321a9);}['onStarting'](){const _0x311515=_0x50b04f;_0x46b869(this[_0x311515(0x162)],_0xa8fa05([[L],[S],[I],[m]],this[_0x311515(0x149)][_0x311515(0x169)])),_0x1720fd(this[_0x311515(0x162)],[[I]]);}[_0x50b04f(0x16e)](){const _0x5a0c38=_0x50b04f;_0x1720fd(this[_0x5a0c38(0x162)],[[m]]);}};B(b,_0x50b04f(0x150),_0x4cc59d[_0x50b04f(0x16d)]),B(b,_0x50b04f(0x176),Ye),b=We([_0x28bdb8(_0x350d70),F(0x1,_0x3ff304(_0xd5904c)),F(0x2,_0x3f06fa)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x591f44=_0x2906;(function(_0x15cbfa,_0xcab813){const _0x2e8c74=_0x2906,_0x2ad79d=_0x15cbfa();while(!![]){try{const _0x53edbe=-parseInt(_0x2e8c74(0xb5))/0x1*(parseInt(_0x2e8c74(0xbb))/0x2)+parseInt(_0x2e8c74(0xc2))/0x3*(parseInt(_0x2e8c74(0xba))/0x4)+-parseInt(_0x2e8c74(0xca))/0x5*(parseInt(_0x2e8c74(0xad))/0x6)+parseInt(_0x2e8c74(0xbd))/0x7*(-parseInt(_0x2e8c74(0xac))/0x8)+parseInt(_0x2e8c74(0xc7))/0x9*(-parseInt(_0x2e8c74(0xb4))/0xa)+-parseInt(_0x2e8c74(0xcc))/0xb+parseInt(_0x2e8c74(0xce))/0xc;if(_0x53edbe===_0xcab813)break;else _0x2ad79d['push'](_0x2ad79d['shift']());}catch(_0x3277e5){_0x2ad79d['push'](_0x2ad79d['shift']());}}}(_0x4b10,0xd872a));function _0x2906(_0x2f55b5,_0x127ad8){const _0x4b10da=_0x4b10();return _0x2906=function(_0x29068c,_0x201338){_0x29068c=_0x29068c-0xab;let _0x5384fb=_0x4b10da[_0x29068c];return _0x5384fb;},_0x2906(_0x2f55b5,_0x127ad8);}function _0x4b10(){const _0x1f847b=['2qzDrTO','getLiveShareStatus','5218766dRjBnl','getActiveWorkbook','startFollowing','get','getSheetId','6JgrWde','getId','getUnitId','_injector','IDLE','37341WCpGrM','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','10RHoJiy','executeCommand','7053332vuvjTa','startPresenting','46353864onntdV','_initialize','8LSAtzV','5142RmCUXf','_commandService','extend','syncExecuteCommand','stopPresenting','getStatus','LiveShareStatusEnum','750DPLcmv','1409531ZiwkXd','tryStartPresenting','startColumn','stopFollowing','No\x20active\x20workbook\x20found.','265836msEKCG'];_0x4b10=function(){return _0x1f847b;};return _0x4b10();}import{LiveShareController as _0x3f47b6,LiveShareStatus as _0x17c660}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x32ace1}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x5b7835}from'@univerjs/sheets';import{SetScrollOperation as _0x399b3d}from'@univerjs/sheets-ui';import{FRange as _0x3fa4b0}from'@univerjs/sheets/facade';import{FUniver as _0x929f6d,FEnum as _0x5b3fa5}from'@univerjs/core/facade';class I extends _0x3fa4b0{[_0x591f44(0xab)](_0x441314,_0x340617,_0x26406b,_0x46e62c,_0x48cfa4){const _0x5a8d55=_0x591f44,_0x530955=_0x441314[_0x5a8d55(0xc0)](_0x3f47b6),_0x2c781c=_0x441314[_0x5a8d55(0xc0)](_0x32ace1),_0x23f83e=_0x340617[_0x5a8d55(0xc4)](),_0x294c22=_0x340617['getActiveSheet'](),_0x5a51fe=_0x530955[_0x5a8d55(0xc8)](_0x23f83e);(_0x5a51fe==null?void 0x0:_0x5a51fe[_0x5a8d55(0xb2)]())!==_0x17c660['PRESENTING']||(_0x26406b[_0x5a8d55(0xc1)]()!==_0x294c22['getSheetId']()&&this[_0x5a8d55(0xae)][_0x5a8d55(0xcb)](_0x5b7835['id'],{'unitId':_0x23f83e,'subUnitId':_0x26406b[_0x5a8d55(0xc1)]()}),!_0x2c781c['getRenderById'](_0x23f83e))||_0x48cfa4[_0x5a8d55(0xb0)](_0x399b3d['id'],{'unitId':_0x340617['getUnitId'](),'sheetId':_0x26406b[_0x5a8d55(0xc1)](),'sheetViewStartRow':_0x46e62c['startRow'],'sheetViewStartColumn':_0x46e62c[_0x5a8d55(0xb7)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3fa4b0[_0x591f44(0xaf)](I);class m extends _0x929f6d{[_0x591f44(0xbc)](){const _0x27a722=_0x591f44;var _0x271cb9,_0x432c03;const _0x1ccb7f=this[_0x27a722(0xc5)][_0x27a722(0xc0)](_0x3f47b6),_0x3b1fcc=(_0x271cb9=this[_0x27a722(0xbe)]())==null?void 0x0:_0x271cb9[_0x27a722(0xc3)]();if(!_0x3b1fcc)throw new Error(_0x27a722(0xb9));const _0x62b8b7=_0x1ccb7f['getLiveShareCoordinatorSync'](_0x3b1fcc);return(_0x432c03=_0x62b8b7==null?void 0x0:_0x62b8b7['getStatus']())!=null?_0x432c03:_0x17c660[_0x27a722(0xc6)];}[_0x591f44(0xbf)](){const _0xa6b875=_0x591f44;var _0x9f48c6;const _0xf61466=this[_0xa6b875(0xc5)][_0xa6b875(0xc0)](_0x3f47b6),_0x49eb26=(_0x9f48c6=this[_0xa6b875(0xbe)]())==null?void 0x0:_0x9f48c6[_0xa6b875(0xc3)]();if(!_0x49eb26)throw new Error(_0xa6b875(0xb9));const _0xbc1606=_0xf61466[_0xa6b875(0xc8)](_0x49eb26);if(!_0xbc1606)throw new Error(_0xa6b875(0xc9));_0xbc1606['startFollowing']();}[_0x591f44(0xb8)](){const _0x161051=_0x591f44;var _0x39a3c0;const _0x4db4a9=this[_0x161051(0xc5)][_0x161051(0xc0)](_0x3f47b6),_0x3405c7=(_0x39a3c0=this[_0x161051(0xbe)]())==null?void 0x0:_0x39a3c0[_0x161051(0xc3)]();if(!_0x3405c7)throw new Error('No\x20active\x20workbook\x20found.');const _0x1923fa=_0x4db4a9['getLiveShareCoordinatorSync'](_0x3405c7);if(!_0x1923fa)throw new Error(_0x161051(0xc9));_0x1923fa[_0x161051(0xb8)]();}[_0x591f44(0xcd)](){const _0x2f6738=_0x591f44;var _0x27ffb6;const _0x5283c5=this['_injector']['get'](_0x3f47b6),_0x3e0d0a=(_0x27ffb6=this['getActiveWorkbook']())==null?void 0x0:_0x27ffb6[_0x2f6738(0xc3)]();if(!_0x3e0d0a)throw new Error('No\x20active\x20workbook\x20found.');const _0x2082c6=_0x5283c5['getLiveShareCoordinatorSync'](_0x3e0d0a);if(!_0x2082c6)throw new Error(_0x2f6738(0xc9));_0x2082c6[_0x2f6738(0xb6)]();}['stopPresenting'](){const _0x2bde3c=_0x591f44;var _0x30ca12;const _0xeb817=this[_0x2bde3c(0xc5)]['get'](_0x3f47b6),_0x19b468=(_0x30ca12=this[_0x2bde3c(0xbe)]())==null?void 0x0:_0x30ca12[_0x2bde3c(0xc3)]();if(!_0x19b468)throw new Error(_0x2bde3c(0xb9));const _0x56d7fc=_0xeb817[_0x2bde3c(0xc8)](_0x19b468);if(!_0x56d7fc)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x56d7fc[_0x2bde3c(0xb1)]();}}_0x929f6d[_0x591f44(0xaf)](m);class C extends _0x5b3fa5{get[_0x591f44(0xb3)](){return _0x17c660;}}_0x5b3fa5[_0x591f44(0xaf)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x33c0d5=_0x1222;(function(_0xc38f3c,_0x1da37d){const _0x134b08=_0x1222,_0x42afae=_0xc38f3c();while(!![]){try{const _0x247247=-parseInt(_0x134b08(0x1b6))/0x1+parseInt(_0x134b08(0x126))/0x2*(parseInt(_0x134b08(0x15c))/0x3)+parseInt(_0x134b08(0x191))/0x4+-parseInt(_0x134b08(0x166))/0x5*(-parseInt(_0x134b08(0x145))/0x6)+-parseInt(_0x134b08(0x1a1))/0x7*(-parseInt(_0x134b08(0x136))/0x8)+-parseInt(_0x134b08(0x165))/0x9*(-parseInt(_0x134b08(0x1c7))/0xa)+-parseInt(_0x134b08(0x169))/0xb;if(_0x247247===_0x1da37d)break;else _0x42afae['push'](_0x42afae['shift']());}catch(_0x3845c9){_0x42afae['push'](_0x42afae['shift']());}}}(_0x5737,0xd1d56));var J=Object['defineProperty'],K=(_0x2f0abe,_0x58c7d8,_0x1262e3)=>_0x58c7d8 in _0x2f0abe?J(_0x2f0abe,_0x58c7d8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1262e3}):_0x2f0abe[_0x58c7d8]=_0x1262e3,u=(_0x1bbc44,_0x63953d,_0x31ddb8)=>K(_0x1bbc44,typeof _0x63953d!='symbol'?_0x63953d+'':_0x63953d,_0x31ddb8);import{Disposable as _0x2eb520,toDisposable as _0xa18819,IUniverInstanceService as _0x213847,Inject as _0x1465af,Injector as _0x574d75,IConfigService as _0x3c1f5c,ICommandService as _0x2771da,RxDisposable as _0x207d4a,UniverInstanceType as _0x4e0037,DisposableCollection as _0x3472ee,CommandType as _0x2a1b33,DependentOn as _0x5cad98,Plugin as _0x2e958d,merge as _0x551b22,registerDependencies as _0x25b9eb,mergeOverrideWithDependencies as _0x4c2590,touchDependencies as _0x2704d5}from'@univerjs/core';import{useDependency as _0xd36f04,useObservable as _0x48b784,IUIPartsService as _0x45f094,BuiltInUIPart as _0x323948,connectInjector as _0x15a4f6}from'@univerjs/ui';import{jsx as _0x49193b,jsxs as _0x48b03d,Fragment as _0x456367}from'react/jsx-runtime';import{Dropdown as _0x35d73c,clsx as _0x4c3322,Button as _0x1199fb}from'@univerjs/design';import{useRef as _0xe1e52d,createElement as _0x35b954,forwardRef as _0x11b4d3,useState as _0x3f7468,useEffect as _0x1d6da2}from'react';import{CollaborationEvent as _0x29bfd2,parseProtocolChangeset as _0x1b4190}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xf04e22,SessionStatus as _0xdd7313,UniverCollaborationClientPlugin as _0x17a4d8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2b76f4,SetWorksheetActiveOperation as _0x4e0d10}from'@univerjs/sheets';import{BehaviorSubject as _0x29530b,Subject as _0x1f94fd}from'rxjs';import{takeUntil as _0x4ca9d7,throttleTime as _0x1b3748}from'rxjs/operators';import{SetZoomRatioOperation as _0x13e569,SetScrollOperation as _0x4f372f}from'@univerjs/sheets-ui';function k({ref:_0x3e2a3e,..._0x1d0690}){const _0x105f3e=_0x1222,{icon:_0x1995c9,id:_0x88d405,className:_0x570eb7,extend:_0x172618,..._0xd0f503}=_0x1d0690,_0x52cfb5=(_0x105f3e(0x132)+_0x88d405+'\x20'+(_0x570eb7||''))[_0x105f3e(0x146)](),_0x1420d5=_0xe1e52d('_'+Oe());return G(_0x1995c9,''+_0x88d405,{'defIds':_0x1995c9[_0x105f3e(0x17a)],'idSuffix':_0x1420d5[_0x105f3e(0x1ca)]},{'ref':_0x3e2a3e,'className':_0x52cfb5,..._0xd0f503},_0x172618);}function G(_0x1dcff4,_0x5754a0,_0x16f9cb,_0x1d4c04,_0x1c8f49){const _0x5bc735=_0x1222;return _0x35b954(_0x1dcff4[_0x5bc735(0x137)],{'key':_0x5754a0,...be(_0x1dcff4,_0x16f9cb,_0x1c8f49),..._0x1d4c04},(Ee(_0x1dcff4,_0x16f9cb)['children']||[])[_0x5bc735(0x1ce)]((_0x52e04c,_0x511943)=>G(_0x52e04c,_0x5754a0+'-'+_0x1dcff4['tag']+'-'+_0x511943,_0x16f9cb,void 0x0,_0x1c8f49)));}function be(_0x588129,_0x3b87ac,_0x574f9f){const _0x41e82b=_0x1222,_0x41fe0c={..._0x588129[_0x41e82b(0x149)]};_0x574f9f!=null&&_0x574f9f['colorChannel1']&&_0x41fe0c[_0x41e82b(0x1bb)]===_0x41e82b(0x1c2)&&(_0x41fe0c['fill']=_0x574f9f[_0x41e82b(0x1c2)]),_0x588129[_0x41e82b(0x137)]===_0x41e82b(0x14f)&&_0x41fe0c['id']&&(_0x41fe0c['id']=_0x41fe0c['id']+_0x3b87ac[_0x41e82b(0x185)]),Object[_0x41e82b(0x148)](_0x41fe0c)[_0x41e82b(0x15a)](([_0x4949d1,_0x2f2bf0])=>{const _0x3d91f9=_0x41e82b;_0x4949d1===_0x3d91f9(0x14f)&&typeof _0x2f2bf0==_0x3d91f9(0x19e)&&(_0x41fe0c[_0x4949d1]=_0x2f2bf0[_0x3d91f9(0x140)](/url\(#(.*)\)/,_0x3d91f9(0x16a)+_0x3b87ac[_0x3d91f9(0x185)]+')'));});const {defIds:_0x5c5cf1}=_0x3b87ac;return!_0x5c5cf1||_0x5c5cf1[_0x41e82b(0x155)]===0x0||(_0x588129[_0x41e82b(0x137)]===_0x41e82b(0x1b0)&&_0x41fe0c[_0x41e82b(0x1c9)]&&(_0x41fe0c[_0x41e82b(0x1c9)]=_0x41fe0c[_0x41e82b(0x1c9)]+_0x3b87ac[_0x41e82b(0x185)]),Object[_0x41e82b(0x148)](_0x41fe0c)[_0x41e82b(0x15a)](([_0x5e8fe4,_0x545ecd])=>{const _0xd51f4a=_0x41e82b;typeof _0x545ecd==_0xd51f4a(0x19e)&&(_0x41fe0c[_0x5e8fe4]=_0x545ecd[_0xd51f4a(0x140)](/url\(#(.*)\)/,_0xd51f4a(0x16a)+_0x3b87ac[_0xd51f4a(0x185)]+')'));})),_0x41fe0c;}function Ee(_0x42441f,_0x35a4d9){const _0x5a4c62=_0x1222;var _0x28e393;const {defIds:_0x476973}=_0x35a4d9;return!_0x476973||_0x476973[_0x5a4c62(0x155)]===0x0?_0x42441f:_0x42441f[_0x5a4c62(0x137)]===_0x5a4c62(0x18d)&&((_0x28e393=_0x42441f[_0x5a4c62(0x19f)])!=null&&_0x28e393[_0x5a4c62(0x155)])?{..._0x42441f,'children':_0x42441f[_0x5a4c62(0x19f)]['map'](_0x1d72fa=>typeof _0x1d72fa[_0x5a4c62(0x149)]['id']=='string'&&_0x476973&&_0x476973['includes'](_0x1d72fa[_0x5a4c62(0x149)]['id'])?{..._0x1d72fa,'attrs':{..._0x1d72fa[_0x5a4c62(0x149)],'id':_0x1d72fa['attrs']['id']+_0x35a4d9[_0x5a4c62(0x185)]}}:_0x1d72fa)}:_0x42441f;}function Oe(){const _0x564b23=_0x1222;return Math[_0x564b23(0x183)]()[_0x564b23(0x1b4)](0x24)[_0x564b23(0x16b)](0x2,0x8);}k[_0x33c0d5(0x15f)]='UniverIcon';const we={'tag':_0x33c0d5(0x1a0),'attrs':{'xmlns':_0x33c0d5(0x12b),'fill':_0x33c0d5(0x1b9),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x33c0d5(0x180)},'children':[{'tag':_0x33c0d5(0x19d),'attrs':{'fill':_0x33c0d5(0x16c),'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':_0x33c0d5(0x19d),'attrs':{'fill':'currentColor','d':_0x33c0d5(0x141),'fillRule':_0x33c0d5(0x14d),'clipRule':'evenodd'}}]},W=_0x11b4d3(function(_0x2f8ab0,_0x31a285){const _0x17d585=_0x33c0d5;return _0x35b954(k,Object[_0x17d585(0x131)]({},_0x2f8ab0,{'id':_0x17d585(0x1af),'ref':_0x31a285,'icon':we}));});W['displayName']=_0x33c0d5(0x195);class L extends _0x2eb520{constructor(){const _0x259797=_0x33c0d5;super(...arguments),u(this,_0x259797(0x152),new Set()),u(this,_0x259797(0x13f),new Set());}['registerSharedOperation'](_0x422cf7){const _0x1cbd7d=_0x33c0d5;return this[_0x1cbd7d(0x152)][_0x1cbd7d(0x12c)](_0x422cf7),_0xa18819(()=>this['_sharedOperations'][_0x1cbd7d(0x13c)](_0x422cf7));}['registerInitialStateReporter'](_0x24ac55){const _0x49eae2=_0x33c0d5;return this['_reporters']['add'](_0x24ac55),_0xa18819(()=>this[_0x49eae2(0x13f)][_0x49eae2(0x13c)](_0x24ac55));}[_0x33c0d5(0x190)](_0x1c02f0){const _0x3eaae5=_0x33c0d5;return this[_0x3eaae5(0x152)][_0x3eaae5(0x188)](_0x1c02f0);}['getInitialStates'](_0x1c1e29){const _0xe77863=_0x33c0d5;return Array[_0xe77863(0x142)](this[_0xe77863(0x13f)])['map'](_0x254b07=>_0x254b07(_0x1c1e29));}}var Ne=Object[_0x33c0d5(0x1c6)],Y=(_0x1c3ef3,_0x335640,_0x13906b,_0x3415f8)=>{const _0x48eb5d=_0x33c0d5;for(var _0x5e233e=_0x3415f8>0x1?void 0x0:_0x3415f8?Ne(_0x335640,_0x13906b):_0x335640,_0x4b7fd1=_0x1c3ef3[_0x48eb5d(0x155)]-0x1,_0x2c0daa;_0x4b7fd1>=0x0;_0x4b7fd1--)(_0x2c0daa=_0x1c3ef3[_0x4b7fd1])&&(_0x5e233e=_0x2c0daa(_0x5e233e)||_0x5e233e);return _0x5e233e;},_=(_0x338328,_0x1ca725)=>(_0x41b81f,_0x1877ef)=>_0x1ca725(_0x41b81f,_0x1877ef,_0x338328);let S=class extends _0x207d4a{constructor(_0x3620b5,_0x144df6,_0x65207c){const _0x26802a=_0x33c0d5;super(),u(this,_0x26802a(0x1a5),new Map()),(this['_univerInstanceService']=_0x3620b5,this[_0x26802a(0x1ac)]=_0x144df6,this['_collabSessionService']=_0x65207c,this[_0x26802a(0x161)]());}async[_0x33c0d5(0x1b5)](_0x581452){const _0x42f907=_0x33c0d5;return this[_0x42f907(0x1a5)][_0x42f907(0x188)](_0x581452)||await this[_0x42f907(0x1b7)](_0x581452),this['_entities']['get'](_0x581452);}[_0x33c0d5(0x1c1)](_0x4b561b){const _0x418d14=_0x33c0d5;var _0x38919e;return(_0x38919e=this[_0x418d14(0x1a5)][_0x418d14(0x15d)](_0x4b561b))!=null?_0x38919e:null;}[_0x33c0d5(0x161)](){const _0x49cf7e=_0x33c0d5;this[_0x49cf7e(0x139)][_0x49cf7e(0x1a3)](_0x4e0037['UNIVER_SHEET'])[_0x49cf7e(0x1c0)](_0x4ca9d7(this[_0x49cf7e(0x147)]))['subscribe'](async _0xdb3ebf=>{const _0x55b154=_0x49cf7e,_0x5e6e4d=_0xdb3ebf[_0x55b154(0x16d)]();this[_0x55b154(0x1a5)]['has'](_0x5e6e4d)||this['_startLiveShareCoordinator'](_0x5e6e4d);}),this[_0x49cf7e(0x139)]['getTypeOfUnitDisposed$'](_0x4e0037[_0x49cf7e(0x14b)])[_0x49cf7e(0x1c0)](_0x4ca9d7(this[_0x49cf7e(0x147)]))[_0x49cf7e(0x144)](_0x728095=>{const _0x58f6ef=_0x49cf7e,_0x2fe5e3=_0x728095['getUnitId'](),_0x21e7eb=this[_0x58f6ef(0x1a5)][_0x58f6ef(0x15d)](_0x2fe5e3);_0x21e7eb==null||_0x21e7eb['dispose']();});}async['_startLiveShareCoordinator'](_0x5d6ce2){const _0x36c28c=_0x33c0d5,_0xa7079d=await this[_0x36c28c(0x1a2)][_0x36c28c(0x154)](_0x5d6ce2),_0x24caf2=this[_0x36c28c(0x1ac)][_0x36c28c(0x175)](N,_0x5d6ce2,_0xa7079d);return _0x24caf2[_0x36c28c(0x199)](),this['_entities']['set'](_0x5d6ce2,_0x24caf2),_0x24caf2;}};function _0x5737(){const _0x2b629e=['Start\x20following','button','map','72LyiNun','next','_config','_status$','memberID','http://www.w3.org/2000/svg','add','following','LIVESHARE_REQUEST_HOST','presenting','clear','assign','univerjs-icon\x20univerjs-icon-','OFFLINE','_handleNewChangeSets','_collabSession','312jCJPzZ','tag','_handleOperation','_univerInstanceService','pluginName','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','delete','_uiPartsService','_handleOnline','_reporters','replace','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','from','You\x27re\x20presenting\x20the\x20document','subscribe','276TkWyuL','trim','dispose$','entries','attrs','setConfig','UNIVER_SHEET','params','evenodd','data','mask','_commandService','_liveShareService','_sharedOperations','getCurrentTypeOfUnit$','requireSession','length','end','reverse','_mountLiveShare','_presenter','forEach','getInitialStates','59379UBoXFP','get','_status','displayName','getMemberID','_init','tryStartPresenting','ONLINE','_handleOffline','612yOGUIo','20065KtogHw','stringify','parse','30409698mZwYqX','url(#$1','substring','currentColor','getUnitId','_handleNewHost','onStarting','_commandDisposable','_startFollowing','getValue','_stopFollowing','registerComponent','createInstance','UNIVER_UNKNOWN','onRendered','LIVESHARE_OPERATION','SAME_OPERATION_SHARE_INTERVAL','defIds','HEADER_MENU','stopPresenting','not-following','complete','IDLE','1em','univer-size-4','PRESENTING','random','You\x27are\x20offline.','idSuffix','Present\x20this\x20document','idle','has','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','sessionStatus$','_handleTerminate','defs','event$','override','shouldShareOperation','5616468MUlbij','Stop\x20following','executeCommand','_beIdle','LiveShareIcon','OPERATION','then','You\x27re\x20not\x20following\x20the\x20presenter','init','sheet','_configService','disposeWithMe','path','string','children','svg','209517zmPTbu','_collabSessionService','getTypeOfUnitAdded$','status$','_entities','operations','_stopPresenting','default','_unitID','UNIVER_LIVE_SHARE_PLUGIN','type','_injector','onCommandExecuted','_fetchOperations','live-share-icon','use','getStatus','div','unitId','toString','getLiveShareCoordinator','191036mmUoud','_startLiveShareCoordinator','send','none','NOT_FOLLOWING','fill','offline','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','startFollowing','You\x27re\x20following\x20the\x20presenter','pipe','getLiveShareCoordinatorSync','colorChannel1','stopFollowing','values','FOLLOWING','getOwnPropertyDescriptor','50950dxBeyJ','dispose','xlink:href','current','LIVESHARE_FETCH_OPERATIONS'];_0x5737=function(){return _0x2b629e;};return _0x5737();}S=Y([_(0x0,_0x213847),_(0x1,_0x1465af(_0x574d75)),_(0x2,_0x1465af(_0xf04e22))],S);var c=(_0xaaabbd=>(_0xaaabbd['OFFLINE']=_0x33c0d5(0x1bc),_0xaaabbd[_0x33c0d5(0x17f)]=_0x33c0d5(0x187),_0xaaabbd[_0x33c0d5(0x1c5)]=_0x33c0d5(0x12d),_0xaaabbd[_0x33c0d5(0x1ba)]=_0x33c0d5(0x17d),_0xaaabbd[_0x33c0d5(0x182)]=_0x33c0d5(0x12f),_0xaaabbd))(c||{});const Ce=_0x33c0d5(0x179),De=0xc8;let N=class extends _0x207d4a{constructor(_0x104238,_0x20136b,_0xf13c15,_0x441d09,_0x3499f3){const _0x432099=_0x33c0d5;super(),u(this,_0x432099(0x129),new _0x29530b('idle')),u(this,_0x432099(0x1a4),this[_0x432099(0x129)]['asObservable']()),u(this,_0x432099(0x161),!0x1),u(this,_0x432099(0x170),null),u(this,_0x432099(0x159),null),(this[_0x432099(0x1a9)]=_0x104238,this[_0x432099(0x135)]=_0x20136b,this[_0x432099(0x19b)]=_0xf13c15,this[_0x432099(0x151)]=_0x441d09,this[_0x432099(0x150)]=_0x3499f3);}get[_0x33c0d5(0x15e)](){const _0x31a985=_0x33c0d5;return this[_0x31a985(0x129)][_0x31a985(0x172)]();}['dispose'](){const _0x34299e=_0x33c0d5;var _0x25fada;(_0x25fada=this[_0x34299e(0x170)])==null||_0x25fada['dispose'](),this[_0x34299e(0x129)][_0x34299e(0x127)](_0x34299e(0x187)),this[_0x34299e(0x129)][_0x34299e(0x17e)]();}[_0x33c0d5(0x1b1)](){const _0x5c323f=_0x33c0d5;return this[_0x5c323f(0x15e)];}[_0x33c0d5(0x199)](){const _0x305fde=_0x33c0d5;this[_0x305fde(0x161)]||(this[_0x305fde(0x161)]=!0x0,this[_0x305fde(0x135)][_0x305fde(0x18b)]['pipe'](_0x4ca9d7(this[_0x305fde(0x147)]))[_0x305fde(0x144)](_0x3e8af5=>{const _0x3c97c8=_0x305fde;switch(_0x3e8af5){case _0xdd7313[_0x3c97c8(0x133)]:this[_0x3c97c8(0x164)]();break;case _0xdd7313[_0x3c97c8(0x163)]:this[_0x3c97c8(0x13e)]();break;}}),this['_collabSession'][_0x305fde(0x18e)][_0x305fde(0x1c0)](_0x4ca9d7(this[_0x305fde(0x147)]))[_0x305fde(0x144)](_0x3cbdb2=>{const _0x454ec8=_0x305fde,{eventID:_0x47052b}=_0x3cbdb2;switch(_0x47052b){case _0x29bfd2['LIVESHARE_NEW_HOST']:this[_0x454ec8(0x16e)](_0x3cbdb2);break;case _0x29bfd2[_0x454ec8(0x178)]:this[_0x454ec8(0x138)](_0x3cbdb2);break;case _0x29bfd2['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x29bfd2['NEW_CHANGESETS']:this[_0x454ec8(0x134)](_0x3cbdb2);break;}}));}[_0x33c0d5(0x162)](){const _0x262827=_0x33c0d5;this[_0x262827(0x135)][_0x262827(0x1b8)]({'eventID':_0x29bfd2[_0x262827(0x12e)],'data':{'unitID':this[_0x262827(0x1a9)],'userID':this[_0x262827(0x135)][_0x262827(0x160)]()}},this[_0x262827(0x1a9)]);}[_0x33c0d5(0x17c)](){const _0x340766=_0x33c0d5;this['_status']===_0x340766(0x12f)&&(this[_0x340766(0x129)][_0x340766(0x127)](_0x340766(0x187)),this[_0x340766(0x135)][_0x340766(0x1b8)]({'eventID':_0x29bfd2['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x340766(0x1a9)]}},this[_0x340766(0x1a9)]));}['startFollowing'](){const _0x3d6962=_0x33c0d5;this[_0x3d6962(0x15e)]===_0x3d6962(0x17d)&&(this[_0x3d6962(0x129)]['next']('following'),this[_0x3d6962(0x171)]());}[_0x33c0d5(0x1c3)](){const _0x1c9ebc=_0x33c0d5;this[_0x1c9ebc(0x15e)]==='following'&&this['_stopFollowing']();}[_0x33c0d5(0x16e)](_0x6447ca){const _0x399d76=_0x33c0d5,{presenter:_0x1f9c53}=_0x6447ca[_0x399d76(0x14e)],_0x147f73=this[_0x399d76(0x135)][_0x399d76(0x160)]();this[_0x399d76(0x159)]=_0x1f9c53,_0x1f9c53===_0x147f73?(this[_0x399d76(0x173)](),this['_startPresenting']()):this[_0x399d76(0x15e)]!==_0x399d76(0x17d)&&(this[_0x399d76(0x1a7)](),this[_0x399d76(0x171)]());}['_fetchOperations'](){const _0x49150a=_0x33c0d5,_0x120f6b={'eventID':_0x29bfd2[_0x49150a(0x1cb)]};this[_0x49150a(0x135)][_0x49150a(0x1b8)](_0x120f6b,this[_0x49150a(0x1a9)]);}[_0x33c0d5(0x18c)](){const _0x5874a9=_0x33c0d5;this[_0x5874a9(0x159)]=null,this[_0x5874a9(0x15e)]!==_0x5874a9(0x12f)&&this[_0x5874a9(0x194)]();}['_handleNewChangeSets'](_0x1ffaab){const _0x2729f7=_0x33c0d5;if(this[_0x2729f7(0x15e)]===_0x2729f7(0x12d)&&this['_presenter']===_0x1ffaab[_0x2729f7(0x14e)][_0x2729f7(0x12a)]){const _0x555b18=_0x1b4190(_0x1ffaab[_0x2729f7(0x14e)])['mutations'][_0x2729f7(0x157)]()['find'](_0x273be6=>_0x273be6['id']===_0x2b76f4['id']);if(_0x555b18){const _0x40688c=_0x555b18[_0x2729f7(0x14c)][_0x2729f7(0x1b3)],_0x313969=_0x555b18['params'][_0x2729f7(0x19a)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x4e0d10['id'],{'unitId':_0x40688c,'subUnitId':_0x313969},{'fromCollab':!0x0});});}}}[_0x33c0d5(0x18a)](){const _0x221cf7=_0x33c0d5;this[_0x221cf7(0x129)][_0x221cf7(0x127)](_0x221cf7(0x12f));const _0x1cfc55=new Map(),_0x1b9c67=this[_0x221cf7(0x170)]=new _0x3472ee();_0x1b9c67[_0x221cf7(0x12c)](_0xa18819(()=>{const _0x140d66=_0x221cf7;_0x1cfc55[_0x140d66(0x15a)](_0x3b6e48=>_0x3b6e48[_0x140d66(0x17e)]()),_0x1cfc55[_0x140d66(0x130)]();})),_0x1b9c67[_0x221cf7(0x12c)](this[_0x221cf7(0x150)][_0x221cf7(0x1ad)](_0x32b363=>{const _0x1b67b0=_0x221cf7;var _0x65dd7;if(_0x32b363[_0x1b67b0(0x1ab)]!==_0x2a1b33[_0x1b67b0(0x196)]||!this[_0x1b67b0(0x151)][_0x1b67b0(0x190)](_0x32b363['id']))return;const {id:_0x26ebe7}=_0x32b363;let _0x22fab2;_0x1cfc55[_0x1b67b0(0x188)](_0x26ebe7)?_0x22fab2=_0x1cfc55['get'](_0x26ebe7):(_0x22fab2=new _0x1f94fd(),_0x1cfc55['set'](_0x26ebe7,_0x22fab2),_0x22fab2[_0x1b67b0(0x1c0)](_0x1b3748((_0x65dd7=this['_configService']['getConfig'](Ce))!=null?_0x65dd7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x243441=>{const _0x2479af=_0x1b67b0;this[_0x2479af(0x135)]['send']({'eventID':_0x29bfd2[_0x2479af(0x178)],'data':{'unitID':this[_0x2479af(0x1a9)],'operations':{[_0x243441['id']]:{'id':_0x243441['id'],'params':JSON[_0x2479af(0x167)](_0x243441[_0x2479af(0x14c)])}}}},this[_0x2479af(0x1a9)]);})),_0x22fab2['next'](_0x32b363);})),this[_0x221cf7(0x151)][_0x221cf7(0x15b)](this[_0x221cf7(0x1a9)])['forEach'](_0x35245a=>this[_0x221cf7(0x135)][_0x221cf7(0x1b8)]({'eventID':_0x29bfd2['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x221cf7(0x1a9)],'operations':{[_0x35245a['id']]:{'id':_0x35245a['id'],'params':JSON[_0x221cf7(0x167)](_0x35245a['params'])}}}},this[_0x221cf7(0x1a9)]));}['_stopPresenting'](){const _0x1dbc32=_0x33c0d5;var _0x39c24f;this[_0x1dbc32(0x129)]['next'](_0x1dbc32(0x187)),(_0x39c24f=this[_0x1dbc32(0x170)])==null||_0x39c24f[_0x1dbc32(0x1c8)](),this[_0x1dbc32(0x170)]=null;}[_0x33c0d5(0x171)](){const _0x42e372=_0x33c0d5;var _0x532fc8;(_0x532fc8=this['_commandDisposable'])==null||_0x532fc8[_0x42e372(0x1c8)](),this['_status$'][_0x42e372(0x127)](_0x42e372(0x12d));}[_0x33c0d5(0x194)](){const _0x5a8405=_0x33c0d5;var _0x66b38a;this[_0x5a8405(0x129)]['next'](_0x5a8405(0x187)),(_0x66b38a=this[_0x5a8405(0x170)])==null||_0x66b38a[_0x5a8405(0x1c8)](),this[_0x5a8405(0x170)]=null;}[_0x33c0d5(0x173)](){const _0x15a659=_0x33c0d5;var _0x2e679c;this[_0x15a659(0x129)][_0x15a659(0x127)](_0x15a659(0x17d)),(_0x2e679c=this['_commandDisposable'])==null||_0x2e679c[_0x15a659(0x1c8)]();}[_0x33c0d5(0x138)](_0x183c52){const _0x6d984e=_0x33c0d5;if(['presenting','not-following','offline']['includes'](this[_0x6d984e(0x15e)])||!_0x183c52[_0x6d984e(0x14e)]['presenter']||_0x183c52[_0x6d984e(0x14e)]['presenter']===this[_0x6d984e(0x135)][_0x6d984e(0x160)]())return;this[_0x6d984e(0x15e)]===_0x6d984e(0x187)&&this[_0x6d984e(0x171)]();const _0x1e3449=_0x183c52[_0x6d984e(0x14e)][_0x6d984e(0x1a6)];Object[_0x6d984e(0x1c4)](_0x1e3449)[_0x6d984e(0x15a)](_0x2f8c7d=>{const _0x4d4938=_0x6d984e;this[_0x4d4938(0x150)][_0x4d4938(0x193)](_0x2f8c7d['id'],_0x2f8c7d['params']?JSON[_0x4d4938(0x168)](_0x2f8c7d['params']):null,{'fromCollab':!0x0});});}[_0x33c0d5(0x164)](){const _0x53bc54=_0x33c0d5;var _0x50e45a;this[_0x53bc54(0x129)][_0x53bc54(0x127)](_0x53bc54(0x1bc)),(_0x50e45a=this['_commandDisposable'])==null||_0x50e45a[_0x53bc54(0x1c8)]();}[_0x33c0d5(0x13e)](){const _0x4dbb4e=_0x33c0d5;this['_status$']['next']('idle'),this[_0x4dbb4e(0x1ae)]();}};N=Y([_(0x2,_0x3c1f5c),_(0x3,_0x1465af(L)),_(0x4,_0x2771da)],N);function Le(){const _0x56c829=_0x33c0d5,_0x577148=_0xd36f04(S),_0xb8fd38=_0xd36f04(_0x213847),_0x26ac52=_0x48b784(()=>_0xb8fd38[_0x56c829(0x153)](_0x4e0037[_0x56c829(0x14b)]),void 0x0,!0x1,[]),[_0x36c11f,_0x57c9da]=_0x3f7468(null),[_0x5b75b8,_0x21c879]=_0x3f7468(c[_0x56c829(0x17f)]),_0x343147=_0xe1e52d(null);return _0x1d6da2(()=>(_0x26ac52&&_0x577148[_0x56c829(0x1b5)](_0x26ac52['getUnitId']())[_0x56c829(0x197)](_0x4b9e4c=>{const _0x411c26=_0x56c829;_0x57c9da(_0x4b9e4c),_0x343147[_0x411c26(0x1ca)]=_0x4b9e4c[_0x411c26(0x1a4)][_0x411c26(0x144)](_0x5a8237=>{_0x21c879(_0x5a8237);});}),()=>{const _0x45a284=_0x56c829;var _0x6281b8;(_0x6281b8=_0x343147[_0x45a284(0x1ca)])==null||_0x6281b8['unsubscribe'](),_0x343147[_0x45a284(0x1ca)]=null;}),[_0x26ac52,_0x577148]),_0x36c11f?_0x49193b(_0x35d73c,{'align':_0x56c829(0x156),'disabled':_0x5b75b8===c['OFFLINE'],'className':_0x56c829(0x13b),'overlay':_0x49193b(Re,{'status':_0x5b75b8,'coordinator':_0x36c11f}),'children':_0x49193b(_0x56c829(0x1cd),{'className':_0x4c3322(_0x56c829(0x1bd),{'univer-cursor-not-allowed':_0x5b75b8===c[_0x56c829(0x133)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5b75b8!==c[_0x56c829(0x133)]}),'type':_0x56c829(0x1cd),'children':_0x49193b(W,{'className':_0x56c829(0x181)})})}):null;}function Re(_0x1353a5){const _0xe9e261=_0x33c0d5,{status:_0xee14a0,coordinator:_0x138400}=_0x1353a5;switch(_0xee14a0){case c['IDLE']:return _0x49193b($e,{'coordinator':_0x138400});case c[_0xe9e261(0x1c5)]:return _0x49193b(xe,{'coordinator':_0x138400});case c[_0xe9e261(0x1ba)]:return _0x49193b(Pe,{'coordinator':_0x138400});case c['OFFLINE']:return _0x49193b(Te,{});case c[_0xe9e261(0x182)]:return _0x49193b(Ae,{'coordinator':_0x138400});default:return null;}}function $e(_0x566fb5){const _0x166b5a=_0x33c0d5,{coordinator:_0x121373}=_0x566fb5;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x166b5a(0x1b2),{'className':_0x166b5a(0x189),'children':_0x166b5a(0x186)}),_0x49193b(_0x1199fb,{'onClick':()=>_0x121373[_0x166b5a(0x162)](),'children':'Start'})]});}function xe(_0x4c9455){const _0xaa9693=_0x33c0d5,{coordinator:_0x28b4c4}=_0x4c9455;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0xaa9693(0x1b2),{'className':_0xaa9693(0x189),'children':_0xaa9693(0x1bf)}),_0x49193b(_0x1199fb,{'onClick':()=>_0x28b4c4[_0xaa9693(0x1c3)](),'children':_0xaa9693(0x192)})]});}function Pe(_0x54b4a7){const _0x4462b7=_0x33c0d5,{coordinator:_0x2e917b}=_0x54b4a7;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x4462b7(0x1b2),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4462b7(0x198)}),_0x49193b(_0x1199fb,{'variant':'text','onClick':()=>_0x2e917b[_0x4462b7(0x1be)](),'children':_0x4462b7(0x1cc)})]});}function Ae(_0x55f81e){const _0x3a34a5=_0x33c0d5,{coordinator:_0x59917b}=_0x55f81e;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x3a34a5(0x1b2),{'className':_0x3a34a5(0x189),'children':_0x3a34a5(0x143)}),_0x49193b(_0x1199fb,{'variant':_0x3a34a5(0x1a8),'onClick':()=>_0x59917b[_0x3a34a5(0x17c)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x6846d=_0x33c0d5;return _0x49193b(_0x456367,{'children':_0x6846d(0x184)});}var Fe=Object[_0x33c0d5(0x1c6)],He=(_0x4b37e4,_0x198a55,_0x1e7182,_0x11e564)=>{const _0x5c3745=_0x33c0d5;for(var _0x4a86d0=_0x11e564>0x1?void 0x0:_0x11e564?Fe(_0x198a55,_0x1e7182):_0x198a55,_0xcc357f=_0x4b37e4[_0x5c3745(0x155)]-0x1,_0x3b988c;_0xcc357f>=0x0;_0xcc357f--)(_0x3b988c=_0x4b37e4[_0xcc357f])&&(_0x4a86d0=_0x3b988c(_0x4a86d0)||_0x4a86d0);return _0x4a86d0;},A=(_0x111d56,_0x12470e)=>(_0x8d18f4,_0x39d9af)=>_0x12470e(_0x8d18f4,_0x39d9af,_0x111d56);let m=class extends _0x2eb520{constructor(_0x2abe36,_0x4689d8){const _0x3bda93=_0x33c0d5;super(),this[_0x3bda93(0x1ac)]=_0x2abe36,this[_0x3bda93(0x13d)]=_0x4689d8,this[_0x3bda93(0x158)]();}['_mountLiveShare'](){const _0x42e789=_0x33c0d5;this[_0x42e789(0x19c)](this['_uiPartsService'][_0x42e789(0x174)](_0x323948[_0x42e789(0x17b)],()=>_0x15a4f6(Le,this[_0x42e789(0x1ac)])));}};m=He([A(0x0,_0x1465af(_0x574d75)),A(0x1,_0x45f094)],m);const ye='live-share.config',T={};var Ue=Object[_0x33c0d5(0x1c6)],Ve=(_0x18256d,_0x4f7013,_0x463f23,_0x28a97c)=>{const _0x4935ac=_0x33c0d5;for(var _0x54fcfd=_0x28a97c>0x1?void 0x0:_0x28a97c?Ue(_0x4f7013,_0x463f23):_0x4f7013,_0x3c8a47=_0x18256d[_0x4935ac(0x155)]-0x1,_0x1a5916;_0x3c8a47>=0x0;_0x3c8a47--)(_0x1a5916=_0x18256d[_0x3c8a47])&&(_0x54fcfd=_0x1a5916(_0x54fcfd)||_0x54fcfd);return _0x54fcfd;},je=(_0x577057,_0x47b77b)=>(_0x5daa0f,_0xf55712)=>_0x47b77b(_0x5daa0f,_0xf55712,_0x577057);let I=class extends _0x2eb520{constructor(_0xe92e93){const _0x400446=_0x33c0d5;super(),this[_0x400446(0x151)]=_0xe92e93,this[_0x400446(0x161)]();}[_0x33c0d5(0x161)](){const _0x21ea4c=_0x33c0d5;[_0x13e569['id'],_0x4f372f['id'],_0x4e0d10['id']][_0x21ea4c(0x15a)](_0x366faa=>{const _0x56259c=_0x21ea4c;this[_0x56259c(0x19c)](this[_0x56259c(0x151)]['registerSharedOperation'](_0x366faa));});}};I=Ve([je(0x0,_0x1465af(L))],I);var Me=Object['defineProperty'],ke=Object[_0x33c0d5(0x1c6)],Ge=(_0x5e08c4,_0x256ca7,_0x29d861)=>_0x256ca7 in _0x5e08c4?Me(_0x5e08c4,_0x256ca7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29d861}):_0x5e08c4[_0x256ca7]=_0x29d861,We=(_0x493c72,_0x356d27,_0x48f45e,_0x2f82e0)=>{const _0x941ad4=_0x33c0d5;for(var _0x31b645=_0x2f82e0>0x1?void 0x0:_0x2f82e0?ke(_0x356d27,_0x48f45e):_0x356d27,_0x47ee4b=_0x493c72[_0x941ad4(0x155)]-0x1,_0x5ef4db;_0x47ee4b>=0x0;_0x47ee4b--)(_0x5ef4db=_0x493c72[_0x47ee4b])&&(_0x31b645=_0x5ef4db(_0x31b645)||_0x31b645);return _0x31b645;},F=(_0x17a408,_0x1ba768)=>(_0x449c19,_0x467754)=>_0x1ba768(_0x449c19,_0x467754,_0x17a408),B=(_0x1a8d3f,_0x1eb3b6,_0x1a635b)=>Ge(_0x1a8d3f,typeof _0x1eb3b6!='symbol'?_0x1eb3b6+'':_0x1eb3b6,_0x1a635b);function _0x1222(_0x1ae22d,_0x56d74b){const _0x5737d1=_0x5737();return _0x1222=function(_0x122212,_0x47b29b){_0x122212=_0x122212-0x126;let _0x26ecd0=_0x5737d1[_0x122212];return _0x26ecd0;},_0x1222(_0x1ae22d,_0x56d74b);}const Ye=_0x33c0d5(0x1aa);let b=class extends _0x2e958d{constructor(_0x2fae6e=T,_0x4a87e9,_0x3a0f26){const _0x49638d=_0x33c0d5;super(),this[_0x49638d(0x128)]=_0x2fae6e,this['_injector']=_0x4a87e9,this[_0x49638d(0x19b)]=_0x3a0f26;const {..._0x2cf667}=_0x551b22({},T,this[_0x49638d(0x128)]);this[_0x49638d(0x19b)][_0x49638d(0x14a)](ye,_0x2cf667);}[_0x33c0d5(0x16f)](){const _0x2b25d2=_0x33c0d5;_0x25b9eb(this[_0x2b25d2(0x1ac)],_0x4c2590([[L],[S],[I],[m]],this[_0x2b25d2(0x128)][_0x2b25d2(0x18f)])),_0x2704d5(this[_0x2b25d2(0x1ac)],[[I]]);}[_0x33c0d5(0x177)](){const _0x391f29=_0x33c0d5;_0x2704d5(this[_0x391f29(0x1ac)],[[m]]);}};B(b,_0x33c0d5(0x1ab),_0x4e0037[_0x33c0d5(0x176)]),B(b,_0x33c0d5(0x13a),Ye),b=We([_0x5cad98(_0x17a4d8),F(0x1,_0x1465af(_0x574d75)),F(0x2,_0x3c1f5c)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x50b04f=_0xee39;(function(_0xf26e8,_0x154d03){const _0x5dafee=_0xee39,_0x115527=_0xf26e8();while(!![]){try{const _0xddc865=-parseInt(_0x5dafee(0xed))/0x1*(-parseInt(_0x5dafee(0x153))/0x2)+parseInt(_0x5dafee(0x136))/0x3*(parseInt(_0x5dafee(0x10a))/0x4)+parseInt(_0x5dafee(0x173))/0x5+-parseInt(_0x5dafee(0xe7))/0x6*(parseInt(_0x5dafee(0xeb))/0x7)+parseInt(_0x5dafee(0x159))/0x8*(-parseInt(_0x5dafee(0xe0))/0x9)+-parseInt(_0x5dafee(0x185))/0xa+parseInt(_0x5dafee(0xe8))/0xb;if(_0xddc865===_0x154d03)break;else _0x115527['push'](_0x115527['shift']());}catch(_0x450a95){_0x115527['push'](_0x115527['shift']());}}}(_0x5745,0x75ad7));var J=Object[_0x50b04f(0x163)],K=(_0x371aa7,_0x237b40,_0x234f19)=>_0x237b40 in _0x371aa7?J(_0x371aa7,_0x237b40,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x234f19}):_0x371aa7[_0x237b40]=_0x234f19,u=(_0x255e77,_0x401ad3,_0x47e471)=>K(_0x255e77,typeof _0x401ad3!=_0x50b04f(0xef)?_0x401ad3+'':_0x401ad3,_0x47e471);import{Disposable as _0x378465,toDisposable as _0x2f79c9,IUniverInstanceService as _0x564a28,Inject as _0x3ff304,Injector as _0xd5904c,IConfigService as _0x3f06fa,ICommandService as _0xa43ba5,RxDisposable as _0x545f48,UniverInstanceType as _0x4cc59d,DisposableCollection as _0xbd95de,CommandType as _0xbddddd,DependentOn as _0x28bdb8,Plugin as _0x1ab157,merge as _0x4a1ce3,registerDependencies as _0x46b869,mergeOverrideWithDependencies as _0xa8fa05,touchDependencies as _0x1720fd}from'@univerjs/core';import{useDependency as _0x641c68,useObservable as _0x153a06,IUIPartsService as _0x426c2b,BuiltInUIPart as _0x3c3833,connectInjector as _0xc72806}from'@univerjs/ui';import{jsx as _0x408ea6,jsxs as _0x22742b,Fragment as _0x58da67}from'react/jsx-runtime';import{Dropdown as _0x34b338,clsx as _0x5933a1,Button as _0x4a665a}from'@univerjs/design';import{useRef as _0x2095df,createElement as _0x2ac1e4,forwardRef as _0x17469d,useState as _0x592726,useEffect as _0x5788d1}from'react';import{CollaborationEvent as _0x49f1c2,parseProtocolChangeset as _0x375e1a}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x48de6e,SessionStatus as _0xbbeeaf,UniverCollaborationClientPlugin as _0x350d70}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x29fe2e,SetWorksheetActiveOperation as _0x41dfb1}from'@univerjs/sheets';import{BehaviorSubject as _0x36972b,Subject as _0x3736e1}from'rxjs';import{takeUntil as _0x19303d,throttleTime as _0xf3bebc}from'rxjs/operators';import{SetZoomRatioOperation as _0x19a876,SetScrollOperation as _0x279c42}from'@univerjs/sheets-ui';function k({ref:_0x343fdb,..._0x30c6bf}){const _0x4a3791=_0x50b04f,{icon:_0x5b883,id:_0x228eeb,className:_0x2cbba6,extend:_0x39489c,..._0x3939c1}=_0x30c6bf,_0x2ae7c9=('univerjs-icon\x20univerjs-icon-'+_0x228eeb+'\x20'+(_0x2cbba6||''))['trim'](),_0x5d844e=_0x2095df('_'+Oe());return G(_0x5b883,''+_0x228eeb,{'defIds':_0x5b883['defIds'],'idSuffix':_0x5d844e[_0x4a3791(0x15b)]},{'ref':_0x343fdb,'className':_0x2ae7c9,..._0x3939c1},_0x39489c);}function G(_0x9de647,_0x1a5737,_0x41359e,_0x3edb4b,_0x43bfdc){const _0x31ffa7=_0x50b04f;return _0x2ac1e4(_0x9de647[_0x31ffa7(0xf5)],{'key':_0x1a5737,...be(_0x9de647,_0x41359e,_0x43bfdc),..._0x3edb4b},(Ee(_0x9de647,_0x41359e)['children']||[])[_0x31ffa7(0x17b)]((_0x53ab09,_0x40273e)=>G(_0x53ab09,_0x1a5737+'-'+_0x9de647[_0x31ffa7(0xf5)]+'-'+_0x40273e,_0x41359e,void 0x0,_0x43bfdc)));}function be(_0x1be9da,_0x2596f0,_0x3188ff){const _0x5dae10=_0x50b04f,_0x5be719={..._0x1be9da[_0x5dae10(0x120)]};_0x3188ff!=null&&_0x3188ff['colorChannel1']&&_0x5be719[_0x5dae10(0x11d)]==='colorChannel1'&&(_0x5be719[_0x5dae10(0x11d)]=_0x3188ff[_0x5dae10(0x15a)]),_0x1be9da[_0x5dae10(0xf5)]===_0x5dae10(0xf6)&&_0x5be719['id']&&(_0x5be719['id']=_0x5be719['id']+_0x2596f0[_0x5dae10(0xff)]),Object[_0x5dae10(0x14f)](_0x5be719)['forEach'](([_0x32d59d,_0x5f4f4e])=>{const _0x22504d=_0x5dae10;_0x32d59d==='mask'&&typeof _0x5f4f4e==_0x22504d(0xe2)&&(_0x5be719[_0x32d59d]=_0x5f4f4e['replace'](/url\(#(.*)\)/,_0x22504d(0x183)+_0x2596f0['idSuffix']+')'));});const {defIds:_0x2748dd}=_0x2596f0;return!_0x2748dd||_0x2748dd['length']===0x0||(_0x1be9da[_0x5dae10(0xf5)]===_0x5dae10(0x100)&&_0x5be719[_0x5dae10(0x115)]&&(_0x5be719[_0x5dae10(0x115)]=_0x5be719[_0x5dae10(0x115)]+_0x2596f0[_0x5dae10(0xff)]),Object[_0x5dae10(0x14f)](_0x5be719)[_0x5dae10(0x14b)](([_0xbfa7b9,_0x1e4440])=>{const _0x5c64a2=_0x5dae10;typeof _0x1e4440=='string'&&(_0x5be719[_0xbfa7b9]=_0x1e4440[_0x5c64a2(0x103)](/url\(#(.*)\)/,_0x5c64a2(0x183)+_0x2596f0[_0x5c64a2(0xff)]+')'));})),_0x5be719;}function Ee(_0x327a0f,_0x265c7c){const _0x5ad147=_0x50b04f;var _0x50e117;const {defIds:_0x16b3c7}=_0x265c7c;return!_0x16b3c7||_0x16b3c7[_0x5ad147(0x109)]===0x0?_0x327a0f:_0x327a0f[_0x5ad147(0xf5)]===_0x5ad147(0xea)&&((_0x50e117=_0x327a0f['children'])!=null&&_0x50e117[_0x5ad147(0x109)])?{..._0x327a0f,'children':_0x327a0f[_0x5ad147(0x11e)]['map'](_0x25b4b9=>typeof _0x25b4b9[_0x5ad147(0x120)]['id']==_0x5ad147(0xe2)&&_0x16b3c7&&_0x16b3c7[_0x5ad147(0x140)](_0x25b4b9['attrs']['id'])?{..._0x25b4b9,'attrs':{..._0x25b4b9['attrs'],'id':_0x25b4b9[_0x5ad147(0x120)]['id']+_0x265c7c[_0x5ad147(0xff)]}}:_0x25b4b9)}:_0x327a0f;}function _0xee39(_0x340cfb,_0x4f9c71){const _0x574550=_0x5745();return _0xee39=function(_0xee398f,_0x301161){_0xee398f=_0xee398f-0xda;let _0x56a247=_0x574550[_0xee398f];return _0x56a247;},_0xee39(_0x340cfb,_0x4f9c71);}function Oe(){const _0x51a784=_0x50b04f;return Math[_0x51a784(0x11f)]()[_0x51a784(0x164)](0x24)[_0x51a784(0xfd)](0x2,0x8);}k['displayName']=_0x50b04f(0x132);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x50b04f(0x129),'viewBox':_0x50b04f(0x10b),'width':_0x50b04f(0xf0),'height':_0x50b04f(0xf0)},'children':[{'tag':_0x50b04f(0x161),'attrs':{'fill':'currentColor','d':_0x50b04f(0x123)}},{'tag':'path','attrs':{'fill':_0x50b04f(0x14a),'d':_0x50b04f(0x15f),'fillRule':'evenodd','clipRule':_0x50b04f(0xe9)}}]},W=_0x17469d(function(_0x3c34a5,_0x345683){const _0x58ef7d=_0x50b04f;return _0x2ac1e4(k,Object[_0x58ef7d(0xfc)]({},_0x3c34a5,{'id':_0x58ef7d(0x127),'ref':_0x345683,'icon':we}));});W[_0x50b04f(0x101)]=_0x50b04f(0x11a);class L extends _0x378465{constructor(){const _0xbdae33=_0x50b04f;super(...arguments),u(this,_0xbdae33(0x10d),new Set()),u(this,_0xbdae33(0x168),new Set());}[_0x50b04f(0x107)](_0xaa2105){const _0x3e6827=_0x50b04f;return this[_0x3e6827(0x10d)][_0x3e6827(0x17a)](_0xaa2105),_0x2f79c9(()=>this['_sharedOperations']['delete'](_0xaa2105));}['registerInitialStateReporter'](_0x5d1a25){const _0x1e2cca=_0x50b04f;return this['_reporters'][_0x1e2cca(0x17a)](_0x5d1a25),_0x2f79c9(()=>this[_0x1e2cca(0x168)][_0x1e2cca(0xe6)](_0x5d1a25));}[_0x50b04f(0x10e)](_0x14e033){const _0x1f52a9=_0x50b04f;return this[_0x1f52a9(0x10d)][_0x1f52a9(0x137)](_0x14e033);}[_0x50b04f(0x17e)](_0x20eeca){const _0x17da24=_0x50b04f;return Array[_0x17da24(0x156)](this[_0x17da24(0x168)])['map'](_0xb0b4d4=>_0xb0b4d4(_0x20eeca));}}var Ne=Object[_0x50b04f(0x14c)],Y=(_0x36f9ac,_0x4a0afc,_0x18c399,_0x53046c)=>{const _0x24dc1c=_0x50b04f;for(var _0x2768e6=_0x53046c>0x1?void 0x0:_0x53046c?Ne(_0x4a0afc,_0x18c399):_0x4a0afc,_0x3e7783=_0x36f9ac[_0x24dc1c(0x109)]-0x1,_0x5aaf88;_0x3e7783>=0x0;_0x3e7783--)(_0x5aaf88=_0x36f9ac[_0x3e7783])&&(_0x2768e6=_0x5aaf88(_0x2768e6)||_0x2768e6);return _0x2768e6;},_=(_0x2dbdbd,_0x48ab65)=>(_0x1bbc14,_0x122b83)=>_0x48ab65(_0x1bbc14,_0x122b83,_0x2dbdbd);let S=class extends _0x545f48{constructor(_0x1aa91e,_0x270d5a,_0x2507f1){const _0xd15aad=_0x50b04f;super(),u(this,_0xd15aad(0x14d),new Map()),(this[_0xd15aad(0x167)]=_0x1aa91e,this[_0xd15aad(0x162)]=_0x270d5a,this[_0xd15aad(0x117)]=_0x2507f1,this[_0xd15aad(0x145)]());}async[_0x50b04f(0xfe)](_0x4722c3){const _0x47edfd=_0x50b04f;return this[_0x47edfd(0x14d)][_0x47edfd(0x137)](_0x4722c3)||await this['_startLiveShareCoordinator'](_0x4722c3),this[_0x47edfd(0x14d)][_0x47edfd(0x113)](_0x4722c3);}['getLiveShareCoordinatorSync'](_0x4ae5e2){const _0x5af2d9=_0x50b04f;var _0x427b6d;return(_0x427b6d=this['_entities'][_0x5af2d9(0x113)](_0x4ae5e2))!=null?_0x427b6d:null;}[_0x50b04f(0x145)](){const _0x12f9c9=_0x50b04f;this[_0x12f9c9(0x167)][_0x12f9c9(0x116)](_0x4cc59d['UNIVER_SHEET'])[_0x12f9c9(0xf2)](_0x19303d(this['dispose$']))[_0x12f9c9(0x125)](async _0x4f3de5=>{const _0x4964a0=_0x12f9c9,_0xa3e1b5=_0x4f3de5[_0x4964a0(0x172)]();this[_0x4964a0(0x14d)][_0x4964a0(0x137)](_0xa3e1b5)||this[_0x4964a0(0x184)](_0xa3e1b5);}),this[_0x12f9c9(0x167)]['getTypeOfUnitDisposed$'](_0x4cc59d[_0x12f9c9(0x13e)])[_0x12f9c9(0xf2)](_0x19303d(this[_0x12f9c9(0x181)]))[_0x12f9c9(0x125)](_0x285b68=>{const _0x2f5dd5=_0x12f9c9,_0x2e086b=_0x285b68[_0x2f5dd5(0x172)](),_0x461f29=this[_0x2f5dd5(0x14d)]['get'](_0x2e086b);_0x461f29==null||_0x461f29[_0x2f5dd5(0x121)]();});}async[_0x50b04f(0x184)](_0x9391e5){const _0xbdc5b4=_0x50b04f,_0x5a1a89=await this[_0xbdc5b4(0x117)][_0xbdc5b4(0x175)](_0x9391e5),_0xc7d42c=this[_0xbdc5b4(0x162)][_0xbdc5b4(0x170)](N,_0x9391e5,_0x5a1a89);return _0xc7d42c[_0xbdc5b4(0x151)](),this[_0xbdc5b4(0x14d)][_0xbdc5b4(0x118)](_0x9391e5,_0xc7d42c),_0xc7d42c;}};S=Y([_(0x0,_0x564a28),_(0x1,_0x3ff304(_0xd5904c)),_(0x2,_0x3ff304(_0x48de6e))],S);var c=(_0x9fd566=>(_0x9fd566[_0x50b04f(0x130)]=_0x50b04f(0x114),_0x9fd566[_0x50b04f(0xfb)]=_0x50b04f(0x171),_0x9fd566[_0x50b04f(0x12d)]=_0x50b04f(0x146),_0x9fd566[_0x50b04f(0x147)]='not-following',_0x9fd566['PRESENTING']='presenting',_0x9fd566))(c||{});const Ce=_0x50b04f(0x15c),De=0xc8;let N=class extends _0x545f48{constructor(_0x82f574,_0xd94469,_0xec77ca,_0x59d98e,_0xbebafc){const _0x33d9fc=_0x50b04f;super(),u(this,_0x33d9fc(0x13d),new _0x36972b(_0x33d9fc(0x171))),u(this,_0x33d9fc(0xdc),this[_0x33d9fc(0x13d)][_0x33d9fc(0x111)]()),u(this,_0x33d9fc(0x145),!0x1),u(this,_0x33d9fc(0x165),null),u(this,_0x33d9fc(0x13b),null),(this[_0x33d9fc(0x12f)]=_0x82f574,this['_collabSession']=_0xd94469,this['_configService']=_0xec77ca,this['_liveShareService']=_0x59d98e,this[_0x33d9fc(0x11b)]=_0xbebafc);}get[_0x50b04f(0xe4)](){const _0x44b6f5=_0x50b04f;return this[_0x44b6f5(0x13d)][_0x44b6f5(0x160)]();}[_0x50b04f(0x121)](){const _0x2f6b49=_0x50b04f;var _0x515b43;(_0x515b43=this[_0x2f6b49(0x165)])==null||_0x515b43[_0x2f6b49(0x121)](),this[_0x2f6b49(0x13d)]['next']('idle'),this[_0x2f6b49(0x13d)][_0x2f6b49(0x108)]();}[_0x50b04f(0x128)](){return this['_status'];}[_0x50b04f(0x151)](){const _0x1cdf27=_0x50b04f;this[_0x1cdf27(0x145)]||(this['_init']=!0x0,this[_0x1cdf27(0x177)][_0x1cdf27(0x182)]['pipe'](_0x19303d(this[_0x1cdf27(0x181)]))[_0x1cdf27(0x125)](_0x84dd0d=>{const _0x540edb=_0x1cdf27;switch(_0x84dd0d){case _0xbbeeaf[_0x540edb(0x130)]:this['_handleOffline']();break;case _0xbbeeaf[_0x540edb(0x12b)]:this[_0x540edb(0x135)]();break;}}),this[_0x1cdf27(0x177)][_0x1cdf27(0x104)][_0x1cdf27(0xf2)](_0x19303d(this['dispose$']))['subscribe'](_0x4dd224=>{const _0x484dac=_0x1cdf27,{eventID:_0x32ed85}=_0x4dd224;switch(_0x32ed85){case _0x49f1c2[_0x484dac(0xf9)]:this[_0x484dac(0x119)](_0x4dd224);break;case _0x49f1c2['LIVESHARE_OPERATION']:this[_0x484dac(0x106)](_0x4dd224);break;case _0x49f1c2[_0x484dac(0xfa)]:this[_0x484dac(0x17f)]();break;case _0x49f1c2[_0x484dac(0xec)]:this['_handleNewChangeSets'](_0x4dd224);break;}}));}[_0x50b04f(0xf7)](){const _0x59a7d5=_0x50b04f;this[_0x59a7d5(0x177)][_0x59a7d5(0xf3)]({'eventID':_0x49f1c2[_0x59a7d5(0x157)],'data':{'unitID':this[_0x59a7d5(0x12f)],'userID':this[_0x59a7d5(0x177)][_0x59a7d5(0x15e)]()}},this[_0x59a7d5(0x12f)]);}[_0x50b04f(0x11c)](){const _0x41d7d9=_0x50b04f;this[_0x41d7d9(0xe4)]==='presenting'&&(this[_0x41d7d9(0x13d)][_0x41d7d9(0x13a)](_0x41d7d9(0x171)),this[_0x41d7d9(0x177)][_0x41d7d9(0xf3)]({'eventID':_0x49f1c2[_0x41d7d9(0xfa)],'data':{'unitID':this[_0x41d7d9(0x12f)]}},this[_0x41d7d9(0x12f)]));}[_0x50b04f(0x142)](){const _0x174ac4=_0x50b04f;this['_status']===_0x174ac4(0x16f)&&(this[_0x174ac4(0x13d)][_0x174ac4(0x13a)](_0x174ac4(0x146)),this['_startFollowing']());}[_0x50b04f(0x12a)](){const _0x114ddf=_0x50b04f;this['_status']===_0x114ddf(0x146)&&this['_stopFollowing']();}[_0x50b04f(0x119)](_0x88e54d){const _0x2fc252=_0x50b04f,{presenter:_0xe24a5c}=_0x88e54d['data'],_0x2a43a4=this[_0x2fc252(0x177)]['getMemberID']();this[_0x2fc252(0x13b)]=_0xe24a5c,_0xe24a5c===_0x2a43a4?(this[_0x2fc252(0x158)](),this[_0x2fc252(0x144)]()):this[_0x2fc252(0xe4)]!==_0x2fc252(0x16f)&&(this[_0x2fc252(0x10f)](),this[_0x2fc252(0x12e)]());}['_fetchOperations'](){const _0x49e74a=_0x50b04f,_0x31daea={'eventID':_0x49f1c2[_0x49e74a(0x179)]};this[_0x49e74a(0x177)][_0x49e74a(0xf3)](_0x31daea,this[_0x49e74a(0x12f)]);}[_0x50b04f(0x17f)](){const _0x1a161d=_0x50b04f;this[_0x1a161d(0x13b)]=null,this[_0x1a161d(0xe4)]!==_0x1a161d(0x13c)&&this[_0x1a161d(0x187)]();}[_0x50b04f(0x16c)](_0xb3276c){const _0xed44=_0x50b04f;if(this[_0xed44(0xe4)]===_0xed44(0x146)&&this[_0xed44(0x13b)]===_0xb3276c['data'][_0xed44(0x141)]){const _0x4d8694=_0x375e1a(_0xb3276c[_0xed44(0x12c)])['mutations'][_0xed44(0x124)]()[_0xed44(0x126)](_0x196348=>_0x196348['id']===_0x29fe2e['id']);if(_0x4d8694){const _0x4ab96b=_0x4d8694[_0xed44(0x155)][_0xed44(0x166)],_0x27cc32=_0x4d8694[_0xed44(0x155)][_0xed44(0x15d)]['id'];setTimeout(()=>{const _0x1780bf=_0xed44;this[_0x1780bf(0x11b)]['executeCommand'](_0x41dfb1['id'],{'unitId':_0x4ab96b,'subUnitId':_0x27cc32},{'fromCollab':!0x0});});}}}[_0x50b04f(0x144)](){const _0x366330=_0x50b04f;this[_0x366330(0x13d)][_0x366330(0x13a)]('presenting');const _0x295e0a=new Map(),_0x32b8e2=this[_0x366330(0x165)]=new _0xbd95de();_0x32b8e2['add'](_0x2f79c9(()=>{const _0x55f140=_0x366330;_0x295e0a['forEach'](_0x3c6ac1=>_0x3c6ac1[_0x55f140(0x108)]()),_0x295e0a[_0x55f140(0x154)]();})),_0x32b8e2['add'](this['_commandService'][_0x366330(0x14e)](_0xcfcf8a=>{const _0x6bd60b=_0x366330;var _0xd051c1;if(_0xcfcf8a[_0x6bd60b(0x150)]!==_0xbddddd['OPERATION']||!this[_0x6bd60b(0x16a)]['shouldShareOperation'](_0xcfcf8a['id']))return;const {id:_0x4bd043}=_0xcfcf8a;let _0x56b407;_0x295e0a[_0x6bd60b(0x137)](_0x4bd043)?_0x56b407=_0x295e0a[_0x6bd60b(0x113)](_0x4bd043):(_0x56b407=new _0x3736e1(),_0x295e0a[_0x6bd60b(0x118)](_0x4bd043,_0x56b407),_0x56b407[_0x6bd60b(0xf2)](_0xf3bebc((_0xd051c1=this['_configService'][_0x6bd60b(0xe5)](Ce))!=null?_0xd051c1:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x6bd60b(0x125)](_0x37ed4e=>{const _0x295257=_0x6bd60b;this[_0x295257(0x177)][_0x295257(0xf3)]({'eventID':_0x49f1c2[_0x295257(0x180)],'data':{'unitID':this[_0x295257(0x12f)],'operations':{[_0x37ed4e['id']]:{'id':_0x37ed4e['id'],'params':JSON[_0x295257(0xf1)](_0x37ed4e['params'])}}}},this[_0x295257(0x12f)]);})),_0x56b407[_0x6bd60b(0x13a)](_0xcfcf8a);})),this['_liveShareService'][_0x366330(0x17e)](this[_0x366330(0x12f)])[_0x366330(0x14b)](_0x37ca9f=>this[_0x366330(0x177)][_0x366330(0xf3)]({'eventID':_0x49f1c2[_0x366330(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x37ca9f['id']]:{'id':_0x37ca9f['id'],'params':JSON['stringify'](_0x37ca9f[_0x366330(0x155)])}}}},this[_0x366330(0x12f)]));}[_0x50b04f(0x10f)](){const _0x1df2ac=_0x50b04f;var _0x3b8a7f;this[_0x1df2ac(0x13d)][_0x1df2ac(0x13a)](_0x1df2ac(0x171)),(_0x3b8a7f=this[_0x1df2ac(0x165)])==null||_0x3b8a7f[_0x1df2ac(0x121)](),this[_0x1df2ac(0x165)]=null;}[_0x50b04f(0x12e)](){const _0xd9cad7=_0x50b04f;var _0x3af639;(_0x3af639=this[_0xd9cad7(0x165)])==null||_0x3af639[_0xd9cad7(0x121)](),this[_0xd9cad7(0x13d)][_0xd9cad7(0x13a)](_0xd9cad7(0x146));}[_0x50b04f(0x187)](){const _0x371fbf=_0x50b04f;var _0x101868;this[_0x371fbf(0x13d)]['next'](_0x371fbf(0x171)),(_0x101868=this[_0x371fbf(0x165)])==null||_0x101868[_0x371fbf(0x121)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x1ef81e=_0x50b04f;var _0x3490ec;this['_status$'][_0x1ef81e(0x13a)](_0x1ef81e(0x16f)),(_0x3490ec=this[_0x1ef81e(0x165)])==null||_0x3490ec['dispose']();}['_handleOperation'](_0x1f89e9){const _0x5c6acc=_0x50b04f;if([_0x5c6acc(0x13c),_0x5c6acc(0x16f),_0x5c6acc(0x114)]['includes'](this[_0x5c6acc(0xe4)])||!_0x1f89e9[_0x5c6acc(0x12c)]['presenter']||_0x1f89e9[_0x5c6acc(0x12c)]['presenter']===this[_0x5c6acc(0x177)][_0x5c6acc(0x15e)]())return;this['_status']==='idle'&&this[_0x5c6acc(0x12e)]();const _0x2b586f=_0x1f89e9[_0x5c6acc(0x12c)][_0x5c6acc(0x102)];Object[_0x5c6acc(0x178)](_0x2b586f)[_0x5c6acc(0x14b)](_0x12be96=>{const _0x9a6aa2=_0x5c6acc;this[_0x9a6aa2(0x11b)][_0x9a6aa2(0x13f)](_0x12be96['id'],_0x12be96['params']?JSON[_0x9a6aa2(0xf4)](_0x12be96['params']):null,{'fromCollab':!0x0});});}[_0x50b04f(0x17c)](){const _0x2f2112=_0x50b04f;var _0x326d10;this[_0x2f2112(0x13d)][_0x2f2112(0x13a)]('offline'),(_0x326d10=this[_0x2f2112(0x165)])==null||_0x326d10[_0x2f2112(0x121)]();}[_0x50b04f(0x135)](){const _0xd3fc62=_0x50b04f;this[_0xd3fc62(0x13d)]['next']('idle'),this[_0xd3fc62(0xdd)]();}};N=Y([_(0x2,_0x3f06fa),_(0x3,_0x3ff304(L)),_(0x4,_0xa43ba5)],N);function Le(){const _0x425a26=_0x50b04f,_0x33af56=_0x641c68(S),_0x21ba4d=_0x641c68(_0x564a28),_0x35afcb=_0x153a06(()=>_0x21ba4d['getCurrentTypeOfUnit$'](_0x4cc59d[_0x425a26(0x13e)]),void 0x0,!0x1,[]),[_0x1a9b5a,_0x1555e5]=_0x592726(null),[_0x3c8862,_0x537543]=_0x592726(c[_0x425a26(0xfb)]),_0x1edff9=_0x2095df(null);return _0x5788d1(()=>(_0x35afcb&&_0x33af56['getLiveShareCoordinator'](_0x35afcb[_0x425a26(0x172)]())[_0x425a26(0x148)](_0x303e58=>{const _0x13b8ba=_0x425a26;_0x1555e5(_0x303e58),_0x1edff9['current']=_0x303e58['status$'][_0x13b8ba(0x125)](_0x3556f7=>{_0x537543(_0x3556f7);});}),()=>{const _0x34b450=_0x425a26;var _0x1c5a73;(_0x1c5a73=_0x1edff9[_0x34b450(0x15b)])==null||_0x1c5a73['unsubscribe'](),_0x1edff9['current']=null;}),[_0x35afcb,_0x33af56]),_0x1a9b5a?_0x408ea6(_0x34b338,{'align':_0x425a26(0x110),'disabled':_0x3c8862===c[_0x425a26(0x130)],'className':_0x425a26(0x143),'overlay':_0x408ea6(Re,{'status':_0x3c8862,'coordinator':_0x1a9b5a}),'children':_0x408ea6('button',{'className':_0x5933a1(_0x425a26(0xda),{'univer-cursor-not-allowed':_0x3c8862===c[_0x425a26(0x130)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3c8862!==c[_0x425a26(0x130)]}),'type':_0x425a26(0x16b),'children':_0x408ea6(W,{'className':_0x425a26(0xde)})})}):null;}function Re(_0x333cfe){const _0xf3bd1=_0x50b04f,{status:_0x427722,coordinator:_0x386f5d}=_0x333cfe;switch(_0x427722){case c[_0xf3bd1(0xfb)]:return _0x408ea6($e,{'coordinator':_0x386f5d});case c[_0xf3bd1(0x12d)]:return _0x408ea6(xe,{'coordinator':_0x386f5d});case c[_0xf3bd1(0x147)]:return _0x408ea6(Pe,{'coordinator':_0x386f5d});case c[_0xf3bd1(0x130)]:return _0x408ea6(Te,{});case c[_0xf3bd1(0xe1)]:return _0x408ea6(Ae,{'coordinator':_0x386f5d});default:return null;}}function $e(_0x22db2f){const _0x179d8b=_0x50b04f,{coordinator:_0x2e34c0}=_0x22db2f;return _0x22742b(_0x58da67,{'children':[_0x408ea6(_0x179d8b(0x105),{'className':_0x179d8b(0x152),'children':'Present\x20this\x20document'}),_0x408ea6(_0x4a665a,{'onClick':()=>_0x2e34c0['tryStartPresenting'](),'children':_0x179d8b(0x112)})]});}function xe(_0x53c24f){const _0x1046ab=_0x50b04f,{coordinator:_0x594c65}=_0x53c24f;return _0x22742b(_0x58da67,{'children':[_0x408ea6(_0x1046ab(0x105),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1046ab(0x122)}),_0x408ea6(_0x4a665a,{'onClick':()=>_0x594c65[_0x1046ab(0x12a)](),'children':_0x1046ab(0x186)})]});}function Pe(_0x28d3d1){const _0x157407=_0x50b04f,{coordinator:_0x5e4c77}=_0x28d3d1;return _0x22742b(_0x58da67,{'children':[_0x408ea6(_0x157407(0x105),{'className':_0x157407(0x152),'children':_0x157407(0x133)}),_0x408ea6(_0x4a665a,{'variant':'text','onClick':()=>_0x5e4c77[_0x157407(0x142)](),'children':_0x157407(0x174)})]});}function Ae(_0x1c32e1){const _0xcb554a=_0x50b04f,{coordinator:_0x39fe68}=_0x1c32e1;return _0x22742b(_0x58da67,{'children':[_0x408ea6(_0xcb554a(0x105),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xcb554a(0xee)}),_0x408ea6(_0x4a665a,{'variant':_0xcb554a(0xf8),'onClick':()=>_0x39fe68[_0xcb554a(0x11c)](),'children':_0xcb554a(0xdf)})]});}function Te(){const _0x3cb263=_0x50b04f;return _0x408ea6(_0x58da67,{'children':_0x3cb263(0x139)});}var Fe=Object[_0x50b04f(0x14c)],He=(_0x2a4ed6,_0x46fc88,_0x33c399,_0x139cd1)=>{for(var _0x30acc7=_0x139cd1>0x1?void 0x0:_0x139cd1?Fe(_0x46fc88,_0x33c399):_0x46fc88,_0x1ed215=_0x2a4ed6['length']-0x1,_0x2436e4;_0x1ed215>=0x0;_0x1ed215--)(_0x2436e4=_0x2a4ed6[_0x1ed215])&&(_0x30acc7=_0x2436e4(_0x30acc7)||_0x30acc7);return _0x30acc7;},A=(_0x25810a,_0x48ac82)=>(_0x24634a,_0x5936b8)=>_0x48ac82(_0x24634a,_0x5936b8,_0x25810a);let m=class extends _0x378465{constructor(_0x3f3571,_0x47653a){const _0x5c1f5b=_0x50b04f;super(),this['_injector']=_0x3f3571,this['_uiPartsService']=_0x47653a,this[_0x5c1f5b(0x10c)]();}[_0x50b04f(0x10c)](){const _0x1542a7=_0x50b04f;this[_0x1542a7(0xdb)](this['_uiPartsService'][_0x1542a7(0x17d)](_0x3c3833[_0x1542a7(0xe3)],()=>_0xc72806(Le,this['_injector'])));}};m=He([A(0x0,_0x3ff304(_0xd5904c)),A(0x1,_0x426c2b)],m);const ye='live-share.config',T={};var Ue=Object[_0x50b04f(0x14c)],Ve=(_0x37edf9,_0xf06aba,_0x3f916d,_0x15cfc5)=>{const _0xe7fc76=_0x50b04f;for(var _0x4771ad=_0x15cfc5>0x1?void 0x0:_0x15cfc5?Ue(_0xf06aba,_0x3f916d):_0xf06aba,_0x3a8af8=_0x37edf9[_0xe7fc76(0x109)]-0x1,_0xabb176;_0x3a8af8>=0x0;_0x3a8af8--)(_0xabb176=_0x37edf9[_0x3a8af8])&&(_0x4771ad=_0xabb176(_0x4771ad)||_0x4771ad);return _0x4771ad;},je=(_0x13c758,_0x468ed5)=>(_0x1b61ad,_0x119d8b)=>_0x468ed5(_0x1b61ad,_0x119d8b,_0x13c758);let I=class extends _0x378465{constructor(_0x1284a6){const _0x420b21=_0x50b04f;super(),this[_0x420b21(0x16a)]=_0x1284a6,this['_init']();}[_0x50b04f(0x145)](){const _0x429f46=_0x50b04f;[_0x19a876['id'],_0x279c42['id'],_0x41dfb1['id']][_0x429f46(0x14b)](_0x1cbe32=>{const _0x393dea=_0x429f46;this[_0x393dea(0xdb)](this[_0x393dea(0x16a)][_0x393dea(0x107)](_0x1cbe32));});}};I=Ve([je(0x0,_0x3ff304(L))],I);var Me=Object[_0x50b04f(0x163)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x5c944b,_0x15b51a,_0x58f5d3)=>_0x15b51a in _0x5c944b?Me(_0x5c944b,_0x15b51a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58f5d3}):_0x5c944b[_0x15b51a]=_0x58f5d3,We=(_0x10b311,_0xbe874e,_0x5e3e90,_0x2a1976)=>{const _0x1b9b93=_0x50b04f;for(var _0x60b384=_0x2a1976>0x1?void 0x0:_0x2a1976?ke(_0xbe874e,_0x5e3e90):_0xbe874e,_0x305aff=_0x10b311[_0x1b9b93(0x109)]-0x1,_0x5ec9cb;_0x305aff>=0x0;_0x305aff--)(_0x5ec9cb=_0x10b311[_0x305aff])&&(_0x60b384=_0x5ec9cb(_0x60b384)||_0x60b384);return _0x60b384;},F=(_0x8d9638,_0x514e7f)=>(_0x2cf29e,_0x2fba08)=>_0x514e7f(_0x2cf29e,_0x2fba08,_0x8d9638),B=(_0x80addc,_0x624f7f,_0x137b51)=>Ge(_0x80addc,typeof _0x624f7f!=_0x50b04f(0xef)?_0x624f7f+'':_0x624f7f,_0x137b51);function _0x5745(){const _0x4dbf1=['6240388QenMGg','evenodd','defs','407834qRAloz','NEW_CHANGESETS','2ZudEtk','You\x27re\x20presenting\x20the\x20document','symbol','1em','stringify','pipe','send','parse','tag','mask','tryStartPresenting','default','LIVESHARE_NEW_HOST','LIVESHARE_TERMINATE','IDLE','assign','substring','getLiveShareCoordinator','idSuffix','use','displayName','operations','replace','event$','div','_handleOperation','registerSharedOperation','complete','length','316hPYqoL','0\x200\x2017\x2017','_mountLiveShare','_sharedOperations','shouldShareOperation','_stopPresenting','end','asObservable','Start','get','offline','xlink:href','getTypeOfUnitAdded$','_collabSessionService','set','_handleNewHost','LiveShareIcon','_commandService','stopPresenting','fill','children','random','attrs','dispose','You\x27re\x20following\x20the\x20presenter','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','reverse','subscribe','find','live-share-icon','getStatus','none','stopFollowing','ONLINE','data','FOLLOWING','_startFollowing','_unitID','OFFLINE','setConfig','UniverIcon','You\x27re\x20not\x20following\x20the\x20presenter','UNIVER_LIVE_SHARE_PLUGIN','_handleOnline','7818dVxyYB','has','_configService','You\x27are\x20offline.','next','_presenter','presenting','_status$','UNIVER_SHEET','executeCommand','includes','memberID','startFollowing','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_startPresenting','_init','following','NOT_FOLLOWING','then','_config','currentColor','forEach','getOwnPropertyDescriptor','_entities','onCommandExecuted','entries','type','init','univer-mb-3\x20univer-w-full\x20univer-text-sm','32924aKZHWl','clear','params','from','LIVESHARE_REQUEST_HOST','_stopFollowing','72KpgQrA','colorChannel1','current','SAME_OPERATION_SHARE_INTERVAL','sheet','getMemberID','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','getValue','path','_injector','defineProperty','toString','_commandDisposable','unitId','_univerInstanceService','_reporters','override','_liveShareService','button','_handleNewChangeSets','UNIVER_UNKNOWN','onRendered','not-following','createInstance','idle','getUnitId','2700465rHXLNw','Start\x20following','requireSession','pluginName','_collabSession','values','LIVESHARE_FETCH_OPERATIONS','add','map','_handleOffline','registerComponent','getInitialStates','_handleTerminate','LIVESHARE_OPERATION','dispose$','sessionStatus$','url(#$1','_startLiveShareCoordinator','3750450SfmBrS','Stop\x20following','_beIdle','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','disposeWithMe','status$','_fetchOperations','univer-size-4','Stop\x20presenting','314361UZxBKI','PRESENTING','string','HEADER_MENU','_status','getConfig','delete','18FRxkcF'];_0x5745=function(){return _0x4dbf1;};return _0x5745();}const Ye=_0x50b04f(0x134);let b=class extends _0x1ab157{constructor(_0x71ae57=T,_0x52a755,_0x2d02d6){const _0x347bbb=_0x50b04f;super(),this[_0x347bbb(0x149)]=_0x71ae57,this[_0x347bbb(0x162)]=_0x52a755,this[_0x347bbb(0x138)]=_0x2d02d6;const {..._0x3321a9}=_0x4a1ce3({},T,this['_config']);this['_configService'][_0x347bbb(0x131)](ye,_0x3321a9);}['onStarting'](){const _0x311515=_0x50b04f;_0x46b869(this[_0x311515(0x162)],_0xa8fa05([[L],[S],[I],[m]],this[_0x311515(0x149)][_0x311515(0x169)])),_0x1720fd(this[_0x311515(0x162)],[[I]]);}[_0x50b04f(0x16e)](){const _0x5a0c38=_0x50b04f;_0x1720fd(this[_0x5a0c38(0x162)],[[m]]);}};B(b,_0x50b04f(0x150),_0x4cc59d[_0x50b04f(0x16d)]),B(b,_0x50b04f(0x176),Ye),b=We([_0x28bdb8(_0x350d70),F(0x1,_0x3ff304(_0xd5904c)),F(0x2,_0x3f06fa)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x27b6ed,_0x56196c){const _0x1c8659=_0x4e8e,_0x4ff15f=_0x27b6ed();while(!![]){try{const _0x34afec=-parseInt(_0x1c8659(0xf2))/0x1+-parseInt(_0x1c8659(0xf5))/0x2*(-parseInt(_0x1c8659(0x11a))/0x3)+-parseInt(_0x1c8659(0x115))/0x4+parseInt(_0x1c8659(0x122))/0x5+parseInt(_0x1c8659(0x11b))/0x6*(parseInt(_0x1c8659(0x102))/0x7)+parseInt(_0x1c8659(0x10e))/0x8+-parseInt(_0x1c8659(0x119))/0x9;if(_0x34afec===_0x56196c)break;else _0x4ff15f['push'](_0x4ff15f['shift']());}catch(_0x3fa5ee){_0x4ff15f['push'](_0x4ff15f['shift']());}}}(_0x710d,0x4c451),function(_0x4fa9ba,_0x2785f1){const _0x1e1d7c=_0x4e8e;typeof exports==_0x1e1d7c(0xfa)&&typeof module<'u'?_0x2785f1(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x1e1d7c(0x10d)&&define[_0x1e1d7c(0x10c)]?define(['@univerjs-pro/live-share',_0x1e1d7c(0x112),'@univerjs/sheets',_0x1e1d7c(0x114),_0x1e1d7c(0x116),_0x1e1d7c(0x11c)],_0x2785f1):(_0x4fa9ba=typeof globalThis<'u'?globalThis:_0x4fa9ba||self,_0x2785f1(_0x4fa9ba[_0x1e1d7c(0xf4)],_0x4fa9ba[_0x1e1d7c(0x110)],_0x4fa9ba[_0x1e1d7c(0x100)],_0x4fa9ba[_0x1e1d7c(0x106)],_0x4fa9ba[_0x1e1d7c(0xf8)],_0x4fa9ba[_0x1e1d7c(0x117)]));}(this,function(_0x66fd6f,_0x297bac,_0x5df17b,_0x5c60f0,_0x4523aa,_0x3fe42e){'use strict';const _0x596874=_0x4e8e;class _0x24b2e2 extends _0x4523aa[_0x596874(0xff)]{[_0x596874(0x10f)](_0x1d0bb3,_0x422098,_0x465419,_0x250ed6,_0x642199){const _0x7e20bf=_0x596874,_0x28b4d5=_0x1d0bb3['get'](_0x66fd6f[_0x7e20bf(0x10a)]),_0x25f2d3=_0x1d0bb3[_0x7e20bf(0x104)](_0x297bac[_0x7e20bf(0xf7)]),_0x8a2111=_0x422098[_0x7e20bf(0x125)](),_0x5557ce=_0x422098[_0x7e20bf(0xf6)](),_0x161da6=_0x28b4d5[_0x7e20bf(0x118)](_0x8a2111);(_0x161da6==null?void 0x0:_0x161da6[_0x7e20bf(0x126)]())!==_0x66fd6f[_0x7e20bf(0xfd)][_0x7e20bf(0x10b)]||(_0x465419[_0x7e20bf(0x121)]()!==_0x5557ce[_0x7e20bf(0x121)]()&&this[_0x7e20bf(0x111)][_0x7e20bf(0xfb)](_0x5df17b[_0x7e20bf(0x11d)]['id'],{'unitId':_0x8a2111,'subUnitId':_0x465419[_0x7e20bf(0x121)]()}),!_0x25f2d3[_0x7e20bf(0x113)](_0x8a2111))||_0x642199[_0x7e20bf(0xf1)](_0x5c60f0['SetScrollOperation']['id'],{'unitId':_0x422098['getUnitId'](),'sheetId':_0x465419[_0x7e20bf(0x121)](),'sheetViewStartRow':_0x250ed6[_0x7e20bf(0x109)],'sheetViewStartColumn':_0x250ed6[_0x7e20bf(0x127)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4523aa[_0x596874(0xff)][_0x596874(0xf3)](_0x24b2e2);class _0x2bb428 extends _0x3fe42e[_0x596874(0x107)]{[_0x596874(0x103)](){const _0x285230=_0x596874;var _0x2c107a,_0x4924e6;const _0x7197ed=this['_injector'][_0x285230(0x104)](_0x66fd6f['LiveShareController']),_0xa55965=(_0x2c107a=this[_0x285230(0x105)]())==null?void 0x0:_0x2c107a['getId']();if(!_0xa55965)throw new Error('No\x20active\x20workbook\x20found.');const _0x427c5f=_0x7197ed[_0x285230(0x118)](_0xa55965);return(_0x4924e6=_0x427c5f==null?void 0x0:_0x427c5f[_0x285230(0x126)]())!=null?_0x4924e6:_0x66fd6f['LiveShareStatus']['IDLE'];}[_0x596874(0x123)](){const _0x20fabf=_0x596874;var _0x6ceaa2;const _0xbbf7d=this[_0x20fabf(0x108)][_0x20fabf(0x104)](_0x66fd6f[_0x20fabf(0x10a)]),_0x298aad=(_0x6ceaa2=this['getActiveWorkbook']())==null?void 0x0:_0x6ceaa2[_0x20fabf(0xf9)]();if(!_0x298aad)throw new Error('No\x20active\x20workbook\x20found.');const _0x6d609f=_0xbbf7d[_0x20fabf(0x118)](_0x298aad);if(!_0x6d609f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x6d609f[_0x20fabf(0x123)]();}['stopFollowing'](){const _0x40d3e9=_0x596874;var _0xba98cc;const _0x556156=this[_0x40d3e9(0x108)][_0x40d3e9(0x104)](_0x66fd6f[_0x40d3e9(0x10a)]),_0x3e76e7=(_0xba98cc=this[_0x40d3e9(0x105)]())==null?void 0x0:_0xba98cc[_0x40d3e9(0xf9)]();if(!_0x3e76e7)throw new Error(_0x40d3e9(0xfe));const _0x45e1d6=_0x556156[_0x40d3e9(0x118)](_0x3e76e7);if(!_0x45e1d6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x45e1d6['stopFollowing']();}[_0x596874(0x124)](){const _0x2ea717=_0x596874;var _0x1ca15f;const _0x566a9f=this[_0x2ea717(0x108)]['get'](_0x66fd6f[_0x2ea717(0x10a)]),_0x3e9072=(_0x1ca15f=this[_0x2ea717(0x105)]())==null?void 0x0:_0x1ca15f[_0x2ea717(0xf9)]();if(!_0x3e9072)throw new Error(_0x2ea717(0xfe));const _0x25067c=_0x566a9f[_0x2ea717(0x118)](_0x3e9072);if(!_0x25067c)throw new Error(_0x2ea717(0x11f));_0x25067c[_0x2ea717(0xfc)]();}[_0x596874(0x120)](){const _0x29759a=_0x596874;var _0x329e49;const _0x23b52e=this['_injector'][_0x29759a(0x104)](_0x66fd6f[_0x29759a(0x10a)]),_0x38232d=(_0x329e49=this['getActiveWorkbook']())==null?void 0x0:_0x329e49[_0x29759a(0xf9)]();if(!_0x38232d)throw new Error(_0x29759a(0xfe));const _0x4f24bc=_0x23b52e['getLiveShareCoordinatorSync'](_0x38232d);if(!_0x4f24bc)throw new Error(_0x29759a(0x11f));_0x4f24bc['stopPresenting']();}}_0x3fe42e['FUniver'][_0x596874(0xf3)](_0x2bb428);class _0x476249 extends _0x3fe42e['FEnum']{get[_0x596874(0x101)](){return _0x66fd6f['LiveShareStatus'];}}_0x3fe42e[_0x596874(0x11e)][_0x596874(0xf3)](_0x476249);}));function _0x4e8e(_0x255d68,_0x5a9091){const _0x710d3f=_0x710d();return _0x4e8e=function(_0x4e8edf,_0x107e05){_0x4e8edf=_0x4e8edf-0xf1;let _0x1c49d6=_0x710d3f[_0x4e8edf];return _0x1c49d6;},_0x4e8e(_0x255d68,_0x5a9091);}function _0x710d(){const _0x5b1b10=['getId','object','executeCommand','tryStartPresenting','LiveShareStatus','No\x20active\x20workbook\x20found.','FRange','UniverSheets','LiveShareStatusEnum','3901268kNmmXj','getLiveShareStatus','get','getActiveWorkbook','UniverSheetsUi','FUniver','_injector','startRow','LiveShareController','PRESENTING','amd','function','3681112MpuEMB','_initialize','UniverEngineRender','_commandService','@univerjs/engine-render','getRenderById','@univerjs/sheets-ui','1826992jCziKj','@univerjs/sheets/facade','UniverCoreFacade','getLiveShareCoordinatorSync','5585112FkbcTu','1243362kEYGLr','6ZJvffD','@univerjs/core/facade','SetWorksheetActiveOperation','FEnum','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','getSheetId','550820yrgDaZ','startFollowing','startPresenting','getUnitId','getStatus','startColumn','syncExecuteCommand','152364hyJNyV','extend','UniverProLiveShare','2RtBpPY','getActiveSheet','IRenderManagerService','UniverSheetsFacade'];_0x710d=function(){return _0x5b1b10;};return _0x710d();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5dcd(){const _0x82308e=['live-share-icon','LIVESHARE_TERMINATE','current','defineProperty','getTypeOfUnitDisposed$','presenting','925608JsFrMT','@univerjs/core','clear','27TPnsbG','IConfigService','Present\x20this\x20document','div','idSuffix','useEffect','entries','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','length','not-following','symbol','then','LiveShare','UniverSheets','_handleOffline','forwardRef','UniverCore','_handleOnline','svg','univerjs-icon\x20univerjs-icon-','NOT_FOLLOWING','CommandType','object','setConfig','UniverCollaborationClientPlugin','random','BehaviorSubject','pipe','jsx','useState','5fSewQZ','trim','_commandDisposable','sheet','stringify','getTypeOfUnitAdded$','fill','@univerjs/sheets-ui','stopPresenting','button','has','live-share.config','from','_status','takeUntil','get','executeCommand','Injector','_handleNewHost','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','disposeWithMe','path','UniverProCollaborationClient','_collabSessionService','IDLE','_presenter','UniverUi','_beIdle','find','displayName','LIVESHARE_OPERATION','jsxs','clsx','init','replace','presenter','_uiPartsService','_collabSession','react/jsx-runtime','shouldShareOperation','DesktopLiveShareController','_liveShareService','children','Plugin','_injector','FOLLOWING','OFFLINE','registerInitialStateReporter','string','unitId','getStatus','rxjs/operators','_commandService','UNIVER_UNKNOWN','SessionStatus','IUIPartsService','UniverIcon','useObservable','LiveShareController','_sharedOperations','mask','_stopPresenting','UniverProCollaboration','univer-size-4','DependentOn','Stop\x20presenting','exports','asObservable','tag','type','event$','_fetchOperations','useRef','sessionStatus$','_univerInstanceService','complete','UniverSheetsUi','React','IUniverInstanceService','reverse','amd','createElement','HEADER_MENU','react','params','mutations','override','idle','getUnitId','delete','add','_startLiveShareCoordinator','data','_config','getLiveShareCoordinator','getCurrentTypeOfUnit$','getLiveShareCoordinatorSync','_handleTerminate','url(#$1','registerSharedOperation','status$','following','DisposableCollection','OPERATION','@univerjs-pro/collaboration-client','defs','throttleTime','Inject','createInstance','startFollowing','Disposable','_unitID','ONLINE','getConfig','_startFollowing','unsubscribe','_entities','toDisposable','parseProtocolChangeset','mergeOverrideWithDependencies','@univerjs/sheets','getMemberID','dispose$','getOwnPropertyDescriptor','_status$','1em','LIVESHARE_NEW_HOST','915753OZLNhQ','@univerjs/design','getValue','BuiltInUIPart','forEach','http://www.w3.org/2000/svg','defIds','Stop\x20following','_mountLiveShare','toString','dispose','evenodd','Module','RxDisposable','488014gjhBzW','none','map','PRESENTING','toStringTag','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','SetWorksheetActiveOperation','_handleNewChangeSets','colorChannel1','30MKKAbU','_init','onCommandExecuted','_configService','LiveShareCoordinator','UniverLiveSharePlugin','UniverInstanceType','_reporters','ICommandService','1746833CtmPTe','memberID','getInitialStates','_stopFollowing','CollaborationEvent','attrs','Button','onStarting','subscribe','_startPresenting','next','operators','LiveShareIcon','includes','end','Fragment','touchDependencies','UNIVER_SHEET','Start\x20following','rxjs','175620fGQCvc','onRendered','_handleOperation','useDependency','stopFollowing','currentColor','xlink:href','operations','send','pluginName','tryStartPresenting','LIVESHARE_REQUEST_HOST','Start','CollaborationSessionService','136630hqPKTl','offline','7mypvyU','499560TzESKY','set','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20following\x20the\x20presenter'];_0x5dcd=function(){return _0x82308e;};return _0x5dcd();}function _0x5f54(_0x5114ce,_0x4d7cb8){const _0x5dcd11=_0x5dcd();return _0x5f54=function(_0x5f545d,_0xe0a9d5){_0x5f545d=_0x5f545d-0x7a;let _0x5c68f1=_0x5dcd11[_0x5f545d];return _0x5c68f1;},_0x5f54(_0x5114ce,_0x4d7cb8);}(function(_0x19f638,_0x43c87a){const _0x5019c9=_0x5f54,_0x52b10a=_0x19f638();while(!![]){try{const _0x4cc4b1=parseInt(_0x5019c9(0x158))/0x1+-parseInt(_0x5019c9(0x124))/0x2+parseInt(_0x5019c9(0x116))/0x3+-parseInt(_0x5019c9(0x14a))/0x4*(parseInt(_0x5019c9(0x97))/0x5)+parseInt(_0x5019c9(0x165))/0x6*(-parseInt(_0x5019c9(0x15a))/0x7)+parseInt(_0x5019c9(0x15b))/0x8*(-parseInt(_0x5019c9(0x168))/0x9)+-parseInt(_0x5019c9(0x12d))/0xa*(-parseInt(_0x5019c9(0x136))/0xb);if(_0x4cc4b1===_0x43c87a)break;else _0x52b10a['push'](_0x52b10a['shift']());}catch(_0x2a1a38){_0x52b10a['push'](_0x52b10a['shift']());}}}(_0x5dcd,0x46807),function(_0x74f9df,_0x9302f5){const _0x1fc1f5=_0x5f54;typeof exports==_0x1fc1f5(0x8f)&&typeof module<'u'?_0x9302f5(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x1fc1f5(0xe7)]?define([_0x1fc1f5(0xd9),_0x1fc1f5(0x166),'@univerjs/ui',_0x1fc1f5(0xbd),_0x1fc1f5(0x117),_0x1fc1f5(0xea),'@univerjs-pro/collaboration',_0x1fc1f5(0xff),_0x1fc1f5(0x10f),_0x1fc1f5(0x149),_0x1fc1f5(0xca),_0x1fc1f5(0x9e)],_0x9302f5):(_0x74f9df=typeof globalThis<'u'?globalThis:_0x74f9df||self,_0x9302f5(_0x74f9df['UniverProLiveShare']={},_0x74f9df[_0x1fc1f5(0x89)],_0x74f9df[_0x1fc1f5(0xb1)],_0x74f9df[_0x1fc1f5(0xe4)],_0x74f9df['UniverDesign'],_0x74f9df[_0x1fc1f5(0xe4)],_0x74f9df[_0x1fc1f5(0xd5)],_0x74f9df[_0x1fc1f5(0xad)],_0x74f9df[_0x1fc1f5(0x86)],_0x74f9df[_0x1fc1f5(0x149)],_0x74f9df[_0x1fc1f5(0x149)][_0x1fc1f5(0x141)],_0x74f9df[_0x1fc1f5(0xe3)]));}(this,function(_0x337bdf,_0x22843f,_0x43069c,_0x6ca322,_0x168d28,_0x4af639,_0x7b6f2e,_0x48621c,_0x40796a,_0xc3b0d0,_0x12ea5d,_0x5857a0){'use strict';const _0x41be65=_0x5f54;var _0x581918=Object[_0x41be65(0x162)],_0x1736b3=(_0x438062,_0x33831f,_0xc8a99)=>_0x33831f in _0x438062?_0x581918(_0x438062,_0x33831f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc8a99}):_0x438062[_0x33831f]=_0xc8a99,_0x1af315=(_0xc3fa7d,_0x2b7fa3,_0x1de253)=>_0x1736b3(_0xc3fa7d,typeof _0x2b7fa3!=_0x41be65(0x83)?_0x2b7fa3+'':_0x2b7fa3,_0x1de253);function _0x4b4bc8({ref:_0x61de6e,..._0x47dff6}){const _0x3bcfb7=_0x41be65,{icon:_0x3909a9,id:_0x3413bd,className:_0x1a27ee,extend:_0x4643a5,..._0x216eef}=_0x47dff6,_0x49cc7d=(_0x3bcfb7(0x8c)+_0x3413bd+'\x20'+(_0x1a27ee||''))[_0x3bcfb7(0x98)](),_0x332083=_0x4af639[_0x3bcfb7(0xdf)]('_'+_0x372e98());return _0x2567ad(_0x3909a9,''+_0x3413bd,{'defIds':_0x3909a9[_0x3bcfb7(0x11c)],'idSuffix':_0x332083[_0x3bcfb7(0x161)]},{'ref':_0x61de6e,'className':_0x49cc7d,..._0x216eef},_0x4643a5);}function _0x2567ad(_0x52fbd3,_0x14765c,_0x416e39,_0x204c2d,_0x3025dc){const _0x322a37=_0x41be65;return _0x4af639[_0x322a37(0xe8)](_0x52fbd3[_0x322a37(0xdb)],{'key':_0x14765c,..._0x4a4e94(_0x52fbd3,_0x416e39,_0x3025dc),..._0x204c2d},(_0x195abe(_0x52fbd3,_0x416e39)[_0x322a37(0xc1)]||[])[_0x322a37(0x126)]((_0x395254,_0x384367)=>_0x2567ad(_0x395254,_0x14765c+'-'+_0x52fbd3[_0x322a37(0xdb)]+'-'+_0x384367,_0x416e39,void 0x0,_0x3025dc)));}function _0x4a4e94(_0x3de5aa,_0x5b4838,_0x195eb0){const _0x54d2af=_0x41be65,_0x1e39fb={..._0x3de5aa[_0x54d2af(0x13b)]};_0x195eb0!=null&&_0x195eb0[_0x54d2af(0x12c)]&&_0x1e39fb[_0x54d2af(0x9d)]===_0x54d2af(0x12c)&&(_0x1e39fb['fill']=_0x195eb0[_0x54d2af(0x12c)]),_0x3de5aa['tag']===_0x54d2af(0xd3)&&_0x1e39fb['id']&&(_0x1e39fb['id']=_0x1e39fb['id']+_0x5b4838['idSuffix']),Object[_0x54d2af(0x7f)](_0x1e39fb)[_0x54d2af(0x11a)](([_0x5ee25a,_0x496e47])=>{const _0x2a0d04=_0x54d2af;_0x5ee25a===_0x2a0d04(0xd3)&&typeof _0x496e47==_0x2a0d04(0xc7)&&(_0x1e39fb[_0x5ee25a]=_0x496e47[_0x2a0d04(0xb9)](/url\(#(.*)\)/,_0x2a0d04(0xf9)+_0x5b4838[_0x2a0d04(0x7d)]+')'));});const {defIds:_0x43618e}=_0x5b4838;return!_0x43618e||_0x43618e[_0x54d2af(0x81)]===0x0||(_0x3de5aa[_0x54d2af(0xdb)]==='use'&&_0x1e39fb[_0x54d2af(0x150)]&&(_0x1e39fb[_0x54d2af(0x150)]=_0x1e39fb[_0x54d2af(0x150)]+_0x5b4838[_0x54d2af(0x7d)]),Object['entries'](_0x1e39fb)[_0x54d2af(0x11a)](([_0x2afa8e,_0x4bc808])=>{const _0x44dcbe=_0x54d2af;typeof _0x4bc808==_0x44dcbe(0xc7)&&(_0x1e39fb[_0x2afa8e]=_0x4bc808[_0x44dcbe(0xb9)](/url\(#(.*)\)/,_0x44dcbe(0xf9)+_0x5b4838[_0x44dcbe(0x7d)]+')'));})),_0x1e39fb;}function _0x195abe(_0x31d212,_0x2b1196){const _0x296b54=_0x41be65;var _0x3f1643;const {defIds:_0x431d13}=_0x2b1196;return!_0x431d13||_0x431d13[_0x296b54(0x81)]===0x0?_0x31d212:_0x31d212[_0x296b54(0xdb)]===_0x296b54(0x100)&&((_0x3f1643=_0x31d212[_0x296b54(0xc1)])!=null&&_0x3f1643[_0x296b54(0x81)])?{..._0x31d212,'children':_0x31d212[_0x296b54(0xc1)][_0x296b54(0x126)](_0x5179b5=>typeof _0x5179b5[_0x296b54(0x13b)]['id']=='string'&&_0x431d13&&_0x431d13[_0x296b54(0x143)](_0x5179b5[_0x296b54(0x13b)]['id'])?{..._0x5179b5,'attrs':{..._0x5179b5[_0x296b54(0x13b)],'id':_0x5179b5['attrs']['id']+_0x2b1196['idSuffix']}}:_0x5179b5)}:_0x31d212;}function _0x372e98(){const _0x1626f8=_0x41be65;return Math[_0x1626f8(0x92)]()[_0x1626f8(0x11f)](0x24)['substring'](0x2,0x8);}_0x4b4bc8[_0x41be65(0xb4)]=_0x41be65(0xcf);const _0x3ccfca={'tag':_0x41be65(0x8b),'attrs':{'xmlns':_0x41be65(0x11b),'fill':_0x41be65(0x125),'viewBox':'0\x200\x2017\x2017','width':_0x41be65(0x114),'height':_0x41be65(0x114)},'children':[{'tag':_0x41be65(0xac),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x41be65(0xac),'attrs':{'fill':_0x41be65(0x14f),'d':_0x41be65(0xaa),'fillRule':'evenodd','clipRule':_0x41be65(0x121)}}]},_0x319dcd=_0x4af639[_0x41be65(0x88)](function(_0x5d36c5,_0x1d8f64){const _0x4e8304=_0x41be65;return _0x4af639[_0x4e8304(0xe8)](_0x4b4bc8,Object['assign']({},_0x5d36c5,{'id':_0x4e8304(0x15f),'ref':_0x1d8f64,'icon':_0x3ccfca}));});_0x319dcd['displayName']=_0x41be65(0x142);class _0x5c7e50 extends _0x22843f[_0x41be65(0x105)]{constructor(){const _0x28c27b=_0x41be65;super(...arguments),_0x1af315(this,'_sharedOperations',new Set()),_0x1af315(this,_0x28c27b(0x134),new Set());}['registerSharedOperation'](_0xa8dc47){const _0x27af35=_0x41be65;return this['_sharedOperations'][_0x27af35(0xf1)](_0xa8dc47),_0x22843f['toDisposable'](()=>this[_0x27af35(0xd2)][_0x27af35(0xf0)](_0xa8dc47));}[_0x41be65(0xc6)](_0x1f0da6){const _0x4f2aed=_0x41be65;return this[_0x4f2aed(0x134)][_0x4f2aed(0xf1)](_0x1f0da6),_0x22843f[_0x4f2aed(0x10c)](()=>this['_reporters'][_0x4f2aed(0xf0)](_0x1f0da6));}['shouldShareOperation'](_0x129591){const _0x1e86f2=_0x41be65;return this[_0x1e86f2(0xd2)][_0x1e86f2(0xa1)](_0x129591);}[_0x41be65(0x138)](_0x1f0aed){const _0x4dc868=_0x41be65;return Array[_0x4dc868(0xa3)](this[_0x4dc868(0x134)])[_0x4dc868(0x126)](_0x154da3=>_0x154da3(_0x1f0aed));}}var _0x44c52a=Object[_0x41be65(0x112)],_0x2ba73f=(_0xda7e06,_0x177e01,_0x3a2ac9,_0x11885e)=>{for(var _0x135f61=_0x11885e>0x1?void 0x0:_0x11885e?_0x44c52a(_0x177e01,_0x3a2ac9):_0x177e01,_0xa74033=_0xda7e06['length']-0x1,_0x459beb;_0xa74033>=0x0;_0xa74033--)(_0x459beb=_0xda7e06[_0xa74033])&&(_0x135f61=_0x459beb(_0x135f61)||_0x135f61);return _0x135f61;},_0x19bedc=(_0x12f12f,_0x40a059)=>(_0x497554,_0x38e3b4)=>_0x40a059(_0x497554,_0x38e3b4,_0x12f12f);_0x337bdf['LiveShareController']=class extends _0x22843f[_0x41be65(0x123)]{constructor(_0x55e86e,_0x4b4147,_0x50c177){const _0x11267c=_0x41be65;super(),_0x1af315(this,_0x11267c(0x10b),new Map()),(this['_univerInstanceService']=_0x55e86e,this[_0x11267c(0xc3)]=_0x4b4147,this[_0x11267c(0xae)]=_0x50c177,this[_0x11267c(0x12e)]());}async['getLiveShareCoordinator'](_0x321577){const _0x21d531=_0x41be65;return this[_0x21d531(0x10b)][_0x21d531(0xa1)](_0x321577)||await this[_0x21d531(0xf2)](_0x321577),this[_0x21d531(0x10b)][_0x21d531(0xa6)](_0x321577);}[_0x41be65(0xf7)](_0x403409){const _0x18a5b8=_0x41be65;var _0x196053;return(_0x196053=this['_entities'][_0x18a5b8(0xa6)](_0x403409))!=null?_0x196053:null;}['_init'](){const _0x48aba3=_0x41be65;this[_0x48aba3(0xe1)][_0x48aba3(0x9c)](_0x22843f['UniverInstanceType'][_0x48aba3(0x147)])[_0x48aba3(0x94)](_0x12ea5d[_0x48aba3(0xa5)](this['dispose$']))['subscribe'](async _0x2a75a8=>{const _0x13153b=_0x48aba3,_0x5aaaa0=_0x2a75a8[_0x13153b(0xef)]();this[_0x13153b(0x10b)]['has'](_0x5aaaa0)||this['_startLiveShareCoordinator'](_0x5aaaa0);}),this[_0x48aba3(0xe1)][_0x48aba3(0x163)](_0x22843f['UniverInstanceType'][_0x48aba3(0x147)])[_0x48aba3(0x94)](_0x12ea5d[_0x48aba3(0xa5)](this[_0x48aba3(0x111)]))[_0x48aba3(0x13e)](_0x1a30e6=>{const _0x32156f=_0x48aba3,_0x3dafc0=_0x1a30e6[_0x32156f(0xef)](),_0x4aedcc=this[_0x32156f(0x10b)][_0x32156f(0xa6)](_0x3dafc0);_0x4aedcc==null||_0x4aedcc[_0x32156f(0x120)]();});}async[_0x41be65(0xf2)](_0x49e162){const _0x504715=_0x41be65,_0x92e300=await this[_0x504715(0xae)]['requireSession'](_0x49e162),_0xd83f4=this[_0x504715(0xc3)][_0x504715(0x103)](_0x337bdf[_0x504715(0x131)],_0x49e162,_0x92e300);return _0xd83f4[_0x504715(0xb8)](),this[_0x504715(0x10b)][_0x504715(0x15c)](_0x49e162,_0xd83f4),_0xd83f4;}},_0x337bdf[_0x41be65(0xd1)]=_0x2ba73f([_0x19bedc(0x0,_0x22843f['IUniverInstanceService']),_0x19bedc(0x1,_0x22843f['Inject'](_0x22843f[_0x41be65(0xa8)])),_0x19bedc(0x2,_0x22843f['Inject'](_0x48621c[_0x41be65(0x157)]))],_0x337bdf[_0x41be65(0xd1)]);var _0x119424=(_0x55cc62=>(_0x55cc62['OFFLINE']=_0x41be65(0x159),_0x55cc62[_0x41be65(0xaf)]='idle',_0x55cc62[_0x41be65(0xc4)]=_0x41be65(0xfc),_0x55cc62[_0x41be65(0x8d)]='not-following',_0x55cc62[_0x41be65(0x127)]=_0x41be65(0x164),_0x55cc62))(_0x119424||{});const _0x5b6813='SAME_OPERATION_SHARE_INTERVAL',_0x345f6f=0xc8;_0x337bdf[_0x41be65(0x131)]=class extends _0x22843f[_0x41be65(0x123)]{constructor(_0x3df219,_0x27e469,_0x26cd12,_0x263ab0,_0x5c5b25){const _0x50237c=_0x41be65;super(),_0x1af315(this,_0x50237c(0x113),new _0xc3b0d0[(_0x50237c(0x93))]('idle')),_0x1af315(this,_0x50237c(0xfb),this[_0x50237c(0x113)][_0x50237c(0xda)]()),_0x1af315(this,'_init',!0x1),_0x1af315(this,_0x50237c(0x99),null),_0x1af315(this,_0x50237c(0xb0),null),(this[_0x50237c(0x106)]=_0x3df219,this['_collabSession']=_0x27e469,this[_0x50237c(0x130)]=_0x26cd12,this[_0x50237c(0xc0)]=_0x263ab0,this[_0x50237c(0xcb)]=_0x5c5b25);}get['_status'](){const _0x576342=_0x41be65;return this[_0x576342(0x113)][_0x576342(0x118)]();}[_0x41be65(0x120)](){const _0x5d26b3=_0x41be65;var _0xca9da7;(_0xca9da7=this[_0x5d26b3(0x99)])==null||_0xca9da7[_0x5d26b3(0x120)](),this['_status$'][_0x5d26b3(0x140)](_0x5d26b3(0xee)),this[_0x5d26b3(0x113)][_0x5d26b3(0xe2)]();}[_0x41be65(0xc9)](){const _0x135d3a=_0x41be65;return this[_0x135d3a(0xa4)];}[_0x41be65(0xb8)](){const _0x3831bd=_0x41be65;this[_0x3831bd(0x12e)]||(this[_0x3831bd(0x12e)]=!0x0,this[_0x3831bd(0xbc)][_0x3831bd(0xe0)][_0x3831bd(0x94)](_0x12ea5d[_0x3831bd(0xa5)](this[_0x3831bd(0x111)]))[_0x3831bd(0x13e)](_0x1ef735=>{const _0x1c0bd6=_0x3831bd;switch(_0x1ef735){case _0x48621c[_0x1c0bd6(0xcd)]['OFFLINE']:this[_0x1c0bd6(0x87)]();break;case _0x48621c[_0x1c0bd6(0xcd)][_0x1c0bd6(0x107)]:this[_0x1c0bd6(0x8a)]();break;}}),this[_0x3831bd(0xbc)][_0x3831bd(0xdd)][_0x3831bd(0x94)](_0x12ea5d[_0x3831bd(0xa5)](this[_0x3831bd(0x111)]))[_0x3831bd(0x13e)](_0x38b1dc=>{const _0x267d0d=_0x3831bd,{eventID:_0x4bbec8}=_0x38b1dc;switch(_0x4bbec8){case _0x7b6f2e['CollaborationEvent'][_0x267d0d(0x115)]:this[_0x267d0d(0xa9)](_0x38b1dc);break;case _0x7b6f2e['CollaborationEvent'][_0x267d0d(0xb5)]:this[_0x267d0d(0x14c)](_0x38b1dc);break;case _0x7b6f2e['CollaborationEvent'][_0x267d0d(0x160)]:this[_0x267d0d(0xf8)]();break;case _0x7b6f2e['CollaborationEvent']['NEW_CHANGESETS']:this[_0x267d0d(0x12b)](_0x38b1dc);break;}}));}[_0x41be65(0x154)](){const _0x14b738=_0x41be65;this[_0x14b738(0xbc)][_0x14b738(0x152)]({'eventID':_0x7b6f2e[_0x14b738(0x13a)][_0x14b738(0x155)],'data':{'unitID':this[_0x14b738(0x106)],'userID':this['_collabSession']['getMemberID']()}},this[_0x14b738(0x106)]);}['stopPresenting'](){const _0x53c8c2=_0x41be65;this['_status']===_0x53c8c2(0x164)&&(this[_0x53c8c2(0x113)]['next'](_0x53c8c2(0xee)),this[_0x53c8c2(0xbc)][_0x53c8c2(0x152)]({'eventID':_0x7b6f2e[_0x53c8c2(0x13a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x53c8c2(0x106)]}},this['_unitID']));}[_0x41be65(0x104)](){const _0x37e03f=_0x41be65;this[_0x37e03f(0xa4)]===_0x37e03f(0x82)&&(this[_0x37e03f(0x113)]['next'](_0x37e03f(0xfc)),this['_startFollowing']());}[_0x41be65(0x14e)](){const _0x536e23=_0x41be65;this[_0x536e23(0xa4)]===_0x536e23(0xfc)&&this[_0x536e23(0x139)]();}[_0x41be65(0xa9)](_0x1c3a4d){const _0x12a7a9=_0x41be65,{presenter:_0x256610}=_0x1c3a4d[_0x12a7a9(0xf3)],_0x4fda5c=this[_0x12a7a9(0xbc)][_0x12a7a9(0x110)]();this[_0x12a7a9(0xb0)]=_0x256610,_0x256610===_0x4fda5c?(this[_0x12a7a9(0x139)](),this[_0x12a7a9(0x13f)]()):this[_0x12a7a9(0xa4)]!==_0x12a7a9(0x82)&&(this[_0x12a7a9(0xd4)](),this[_0x12a7a9(0x109)]());}[_0x41be65(0xde)](){const _0x481720=_0x41be65,_0x228a62={'eventID':_0x7b6f2e['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x481720(0xbc)][_0x481720(0x152)](_0x228a62,this[_0x481720(0x106)]);}[_0x41be65(0xf8)](){const _0x1e0e99=_0x41be65;this[_0x1e0e99(0xb0)]=null,this[_0x1e0e99(0xa4)]!=='presenting'&&this[_0x1e0e99(0xb2)]();}['_handleNewChangeSets'](_0x5d42a9){const _0x2b3dd2=_0x41be65;if(this[_0x2b3dd2(0xa4)]===_0x2b3dd2(0xfc)&&this[_0x2b3dd2(0xb0)]===_0x5d42a9[_0x2b3dd2(0xf3)][_0x2b3dd2(0x137)]){const _0x2dc51e=_0x7b6f2e[_0x2b3dd2(0x10d)](_0x5d42a9[_0x2b3dd2(0xf3)])[_0x2b3dd2(0xec)][_0x2b3dd2(0xe6)]()[_0x2b3dd2(0xb3)](_0x4442a2=>_0x4442a2['id']===_0x40796a['InsertSheetMutation']['id']);if(_0x2dc51e){const _0xb2aca6=_0x2dc51e[_0x2b3dd2(0xeb)][_0x2b3dd2(0xc8)],_0x1885b0=_0x2dc51e[_0x2b3dd2(0xeb)][_0x2b3dd2(0x9a)]['id'];setTimeout(()=>{const _0x3a233d=_0x2b3dd2;this[_0x3a233d(0xcb)][_0x3a233d(0xa7)](_0x40796a[_0x3a233d(0x12a)]['id'],{'unitId':_0xb2aca6,'subUnitId':_0x1885b0},{'fromCollab':!0x0});});}}}[_0x41be65(0x13f)](){const _0x16ceba=_0x41be65;this[_0x16ceba(0x113)][_0x16ceba(0x140)](_0x16ceba(0x164));const _0x1d443e=new Map(),_0x74dbdd=this['_commandDisposable']=new _0x22843f[(_0x16ceba(0xfd))]();_0x74dbdd[_0x16ceba(0xf1)](_0x22843f[_0x16ceba(0x10c)](()=>{const _0x3e0fe9=_0x16ceba;_0x1d443e[_0x3e0fe9(0x11a)](_0x8841b0=>_0x8841b0[_0x3e0fe9(0xe2)]()),_0x1d443e[_0x3e0fe9(0x167)]();})),_0x74dbdd['add'](this[_0x16ceba(0xcb)][_0x16ceba(0x12f)](_0x43bb48=>{const _0x348003=_0x16ceba;var _0x3c513b;if(_0x43bb48[_0x348003(0xdc)]!==_0x22843f[_0x348003(0x8e)][_0x348003(0xfe)]||!this[_0x348003(0xc0)][_0x348003(0xbe)](_0x43bb48['id']))return;const {id:_0x23afb0}=_0x43bb48;let _0x7e56a5;_0x1d443e[_0x348003(0xa1)](_0x23afb0)?_0x7e56a5=_0x1d443e[_0x348003(0xa6)](_0x23afb0):(_0x7e56a5=new _0xc3b0d0['Subject'](),_0x1d443e['set'](_0x23afb0,_0x7e56a5),_0x7e56a5[_0x348003(0x94)](_0x12ea5d[_0x348003(0x101)]((_0x3c513b=this[_0x348003(0x130)][_0x348003(0x108)](_0x5b6813))!=null?_0x3c513b:_0x345f6f,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2a556b=>{const _0xb22186=_0x348003;this[_0xb22186(0xbc)][_0xb22186(0x152)]({'eventID':_0x7b6f2e[_0xb22186(0x13a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xb22186(0x106)],'operations':{[_0x2a556b['id']]:{'id':_0x2a556b['id'],'params':JSON[_0xb22186(0x9b)](_0x2a556b[_0xb22186(0xeb)])}}}},this['_unitID']);})),_0x7e56a5[_0x348003(0x140)](_0x43bb48);})),this[_0x16ceba(0xc0)][_0x16ceba(0x138)](this[_0x16ceba(0x106)])['forEach'](_0x3c6609=>this[_0x16ceba(0xbc)][_0x16ceba(0x152)]({'eventID':_0x7b6f2e['CollaborationEvent'][_0x16ceba(0xb5)],'data':{'unitID':this[_0x16ceba(0x106)],'operations':{[_0x3c6609['id']]:{'id':_0x3c6609['id'],'params':JSON[_0x16ceba(0x9b)](_0x3c6609[_0x16ceba(0xeb)])}}}},this[_0x16ceba(0x106)]));}[_0x41be65(0xd4)](){const _0x438215=_0x41be65;var _0x4b7a69;this[_0x438215(0x113)]['next']('idle'),(_0x4b7a69=this[_0x438215(0x99)])==null||_0x4b7a69[_0x438215(0x120)](),this[_0x438215(0x99)]=null;}['_startFollowing'](){const _0x1b2cb8=_0x41be65;var _0x187ca6;(_0x187ca6=this[_0x1b2cb8(0x99)])==null||_0x187ca6['dispose'](),this[_0x1b2cb8(0x113)][_0x1b2cb8(0x140)](_0x1b2cb8(0xfc));}[_0x41be65(0xb2)](){const _0x49b2a8=_0x41be65;var _0x89103d;this['_status$']['next'](_0x49b2a8(0xee)),(_0x89103d=this[_0x49b2a8(0x99)])==null||_0x89103d[_0x49b2a8(0x120)](),this[_0x49b2a8(0x99)]=null;}[_0x41be65(0x139)](){const _0x17c3f6=_0x41be65;var _0xe015bd;this[_0x17c3f6(0x113)]['next'](_0x17c3f6(0x82)),(_0xe015bd=this[_0x17c3f6(0x99)])==null||_0xe015bd[_0x17c3f6(0x120)]();}[_0x41be65(0x14c)](_0x2b051c){const _0x499961=_0x41be65;if([_0x499961(0x164),_0x499961(0x82),'offline'][_0x499961(0x143)](this[_0x499961(0xa4)])||!_0x2b051c[_0x499961(0xf3)][_0x499961(0xba)]||_0x2b051c[_0x499961(0xf3)][_0x499961(0xba)]===this[_0x499961(0xbc)][_0x499961(0x110)]())return;this[_0x499961(0xa4)]===_0x499961(0xee)&&this[_0x499961(0x109)]();const _0x57089c=_0x2b051c[_0x499961(0xf3)][_0x499961(0x151)];Object['values'](_0x57089c)['forEach'](_0x1b965c=>{const _0x17fff5=_0x499961;this[_0x17fff5(0xcb)][_0x17fff5(0xa7)](_0x1b965c['id'],_0x1b965c['params']?JSON['parse'](_0x1b965c[_0x17fff5(0xeb)]):null,{'fromCollab':!0x0});});}[_0x41be65(0x87)](){const _0xac20f2=_0x41be65;var _0x3230fd;this['_status$'][_0xac20f2(0x140)](_0xac20f2(0x159)),(_0x3230fd=this[_0xac20f2(0x99)])==null||_0x3230fd[_0xac20f2(0x120)]();}[_0x41be65(0x8a)](){const _0x2403d3=_0x41be65;this[_0x2403d3(0x113)][_0x2403d3(0x140)](_0x2403d3(0xee)),this[_0x2403d3(0xde)]();}},_0x337bdf[_0x41be65(0x131)]=_0x2ba73f([_0x19bedc(0x2,_0x22843f['IConfigService']),_0x19bedc(0x3,_0x22843f[_0x41be65(0x102)](_0x5c7e50)),_0x19bedc(0x4,_0x22843f[_0x41be65(0x135)])],_0x337bdf[_0x41be65(0x131)]);function _0x5ae231(){const _0x5ab1fd=_0x41be65,_0x48ddaa=_0x43069c[_0x5ab1fd(0x14d)](_0x337bdf[_0x5ab1fd(0xd1)]),_0x2adf54=_0x43069c[_0x5ab1fd(0x14d)](_0x22843f[_0x5ab1fd(0xe5)]),_0x5651c8=_0x43069c[_0x5ab1fd(0xd0)](()=>_0x2adf54[_0x5ab1fd(0xf6)](_0x22843f['UniverInstanceType'][_0x5ab1fd(0x147)]),void 0x0,!0x1,[]),[_0x2b7943,_0x246b2b]=_0x4af639[_0x5ab1fd(0x96)](null),[_0x1262a1,_0x4558bd]=_0x4af639[_0x5ab1fd(0x96)](_0x119424[_0x5ab1fd(0xaf)]),_0x276c57=_0x4af639['useRef'](null);return _0x4af639[_0x5ab1fd(0x7e)](()=>(_0x5651c8&&_0x48ddaa[_0x5ab1fd(0xf5)](_0x5651c8[_0x5ab1fd(0xef)]())[_0x5ab1fd(0x84)](_0x1dd25c=>{const _0x4ae9d1=_0x5ab1fd;_0x246b2b(_0x1dd25c),_0x276c57[_0x4ae9d1(0x161)]=_0x1dd25c['status$'][_0x4ae9d1(0x13e)](_0x2f76d8=>{_0x4558bd(_0x2f76d8);});}),()=>{const _0x16111e=_0x5ab1fd;var _0x5164f3;(_0x5164f3=_0x276c57[_0x16111e(0x161)])==null||_0x5164f3[_0x16111e(0x10a)](),_0x276c57[_0x16111e(0x161)]=null;}),[_0x5651c8,_0x48ddaa]),_0x2b7943?_0x6ca322[_0x5ab1fd(0x95)](_0x168d28['Dropdown'],{'align':_0x5ab1fd(0x144),'disabled':_0x1262a1===_0x119424['OFFLINE'],'className':_0x5ab1fd(0x129),'overlay':_0x6ca322['jsx'](_0x4386f3,{'status':_0x1262a1,'coordinator':_0x2b7943}),'children':_0x6ca322['jsx'](_0x5ab1fd(0xa0),{'className':_0x168d28[_0x5ab1fd(0xb7)](_0x5ab1fd(0x80),{'univer-cursor-not-allowed':_0x1262a1===_0x119424[_0x5ab1fd(0xc5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1262a1!==_0x119424[_0x5ab1fd(0xc5)]}),'type':_0x5ab1fd(0xa0),'children':_0x6ca322['jsx'](_0x319dcd,{'className':_0x5ab1fd(0xd6)})})}):null;}function _0x4386f3(_0xf26bcc){const _0x441b6b=_0x41be65,{status:_0x18e20e,coordinator:_0x412e80}=_0xf26bcc;switch(_0x18e20e){case _0x119424['IDLE']:return _0x6ca322['jsx'](_0x31a00b,{'coordinator':_0x412e80});case _0x119424['FOLLOWING']:return _0x6ca322[_0x441b6b(0x95)](_0x5bf7c2,{'coordinator':_0x412e80});case _0x119424[_0x441b6b(0x8d)]:return _0x6ca322[_0x441b6b(0x95)](_0x4babc4,{'coordinator':_0x412e80});case _0x119424[_0x441b6b(0xc5)]:return _0x6ca322[_0x441b6b(0x95)](_0x18430b,{});case _0x119424['PRESENTING']:return _0x6ca322[_0x441b6b(0x95)](_0x4f1823,{'coordinator':_0x412e80});default:return null;}}function _0x31a00b(_0x33a34a){const _0x21c0d3=_0x41be65,{coordinator:_0x319e3f}=_0x33a34a;return _0x6ca322['jsxs'](_0x6ca322[_0x21c0d3(0x145)],{'children':[_0x6ca322[_0x21c0d3(0x95)](_0x21c0d3(0x7c),{'className':_0x21c0d3(0x15d),'children':_0x21c0d3(0x7b)}),_0x6ca322['jsx'](_0x168d28['Button'],{'onClick':()=>_0x319e3f['tryStartPresenting'](),'children':_0x21c0d3(0x156)})]});}function _0x5bf7c2(_0x40d147){const _0x1f302a=_0x41be65,{coordinator:_0x56277f}=_0x40d147;return _0x6ca322['jsxs'](_0x6ca322[_0x1f302a(0x145)],{'children':[_0x6ca322[_0x1f302a(0x95)](_0x1f302a(0x7c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1f302a(0x15e)}),_0x6ca322[_0x1f302a(0x95)](_0x168d28[_0x1f302a(0x13c)],{'onClick':()=>_0x56277f[_0x1f302a(0x14e)](),'children':_0x1f302a(0x11d)})]});}function _0x4babc4(_0x20e8e8){const _0x47a374=_0x41be65,{coordinator:_0x54ec67}=_0x20e8e8;return _0x6ca322['jsxs'](_0x6ca322[_0x47a374(0x145)],{'children':[_0x6ca322[_0x47a374(0x95)]('div',{'className':_0x47a374(0x15d),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x6ca322[_0x47a374(0x95)](_0x168d28[_0x47a374(0x13c)],{'variant':'text','onClick':()=>_0x54ec67[_0x47a374(0x104)](),'children':_0x47a374(0x148)})]});}function _0x4f1823(_0x2c9715){const _0x4b5ea9=_0x41be65,{coordinator:_0x417a58}=_0x2c9715;return _0x6ca322[_0x4b5ea9(0xb6)](_0x6ca322[_0x4b5ea9(0x145)],{'children':[_0x6ca322['jsx'](_0x4b5ea9(0x7c),{'className':_0x4b5ea9(0x15d),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x6ca322[_0x4b5ea9(0x95)](_0x168d28['Button'],{'variant':'default','onClick':()=>_0x417a58[_0x4b5ea9(0x9f)](),'children':_0x4b5ea9(0xd8)})]});}function _0x18430b(){const _0x5b8ef5=_0x41be65;return _0x6ca322[_0x5b8ef5(0x95)](_0x6ca322[_0x5b8ef5(0x145)],{'children':'You\x27are\x20offline.'});}var _0x4b61f7=Object[_0x41be65(0x112)],_0xfb8c5f=(_0x23afb2,_0x46c649,_0x1a1433,_0x2f053c)=>{const _0x358c5c=_0x41be65;for(var _0x59978f=_0x2f053c>0x1?void 0x0:_0x2f053c?_0x4b61f7(_0x46c649,_0x1a1433):_0x46c649,_0x3acaba=_0x23afb2[_0x358c5c(0x81)]-0x1,_0x394875;_0x3acaba>=0x0;_0x3acaba--)(_0x394875=_0x23afb2[_0x3acaba])&&(_0x59978f=_0x394875(_0x59978f)||_0x59978f);return _0x59978f;},_0x3ab9f5=(_0x47ada7,_0x2f2c22)=>(_0x20962c,_0x3022e2)=>_0x2f2c22(_0x20962c,_0x3022e2,_0x47ada7);_0x337bdf[_0x41be65(0xbf)]=class extends _0x22843f[_0x41be65(0x105)]{constructor(_0x5371eb,_0x4776f3){const _0x44e4bd=_0x41be65;super(),this[_0x44e4bd(0xc3)]=_0x5371eb,this[_0x44e4bd(0xbb)]=_0x4776f3,this[_0x44e4bd(0x11e)]();}[_0x41be65(0x11e)](){const _0x1174a9=_0x41be65;this[_0x1174a9(0xab)](this[_0x1174a9(0xbb)]['registerComponent'](_0x43069c[_0x1174a9(0x119)][_0x1174a9(0xe9)],()=>_0x43069c['connectInjector'](_0x5ae231,this[_0x1174a9(0xc3)])));}},_0x337bdf[_0x41be65(0xbf)]=_0xfb8c5f([_0x3ab9f5(0x0,_0x22843f[_0x41be65(0x102)](_0x22843f['Injector'])),_0x3ab9f5(0x1,_0x43069c[_0x41be65(0xce)])],_0x337bdf['DesktopLiveShareController']);const _0x22248e=_0x41be65(0xa2),_0x42f49f={};var _0x5de725=Object[_0x41be65(0x112)],_0x3023de=(_0x10f12c,_0x1bedb,_0x4f07bc,_0x3bfc28)=>{const _0x31d009=_0x41be65;for(var _0x3099e7=_0x3bfc28>0x1?void 0x0:_0x3bfc28?_0x5de725(_0x1bedb,_0x4f07bc):_0x1bedb,_0x2447af=_0x10f12c[_0x31d009(0x81)]-0x1,_0x22ee3c;_0x2447af>=0x0;_0x2447af--)(_0x22ee3c=_0x10f12c[_0x2447af])&&(_0x3099e7=_0x22ee3c(_0x3099e7)||_0x3099e7);return _0x3099e7;},_0x1a7859=(_0x51fc9e,_0xbdb792)=>(_0x50df1c,_0x2540ec)=>_0xbdb792(_0x50df1c,_0x2540ec,_0x51fc9e);let _0x469b14=class extends _0x22843f[_0x41be65(0x105)]{constructor(_0x304e9b){const _0x41a410=_0x41be65;super(),this['_liveShareService']=_0x304e9b,this[_0x41a410(0x12e)]();}[_0x41be65(0x12e)](){const _0x23f1a8=_0x41be65;[_0x5857a0['SetZoomRatioOperation']['id'],_0x5857a0['SetScrollOperation']['id'],_0x40796a[_0x23f1a8(0x12a)]['id']][_0x23f1a8(0x11a)](_0x5ea345=>{const _0x1e8d36=_0x23f1a8;this['disposeWithMe'](this[_0x1e8d36(0xc0)][_0x1e8d36(0xfa)](_0x5ea345));});}};_0x469b14=_0x3023de([_0x1a7859(0x0,_0x22843f['Inject'](_0x5c7e50))],_0x469b14);var _0x22e280=Object['defineProperty'],_0x1b802c=Object[_0x41be65(0x112)],_0x28637d=(_0x40d8cc,_0x1f6c55,_0x102e63)=>_0x1f6c55 in _0x40d8cc?_0x22e280(_0x40d8cc,_0x1f6c55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x102e63}):_0x40d8cc[_0x1f6c55]=_0x102e63,_0x220cbd=(_0x7e64ac,_0xed572c,_0x452a3e,_0x317e48)=>{const _0x494e69=_0x41be65;for(var _0x561b72=_0x317e48>0x1?void 0x0:_0x317e48?_0x1b802c(_0xed572c,_0x452a3e):_0xed572c,_0x3dae0b=_0x7e64ac[_0x494e69(0x81)]-0x1,_0x541a84;_0x3dae0b>=0x0;_0x3dae0b--)(_0x541a84=_0x7e64ac[_0x3dae0b])&&(_0x561b72=_0x541a84(_0x561b72)||_0x561b72);return _0x561b72;},_0x74170=(_0x3c3a98,_0x2ec1ee)=>(_0x251823,_0x22d159)=>_0x2ec1ee(_0x251823,_0x22d159,_0x3c3a98),_0x44fde6=(_0x242aa4,_0x1128c1,_0x26ba84)=>_0x28637d(_0x242aa4,typeof _0x1128c1!=_0x41be65(0x83)?_0x1128c1+'':_0x1128c1,_0x26ba84);const _0x4d2ca5='UNIVER_LIVE_SHARE_PLUGIN';_0x337bdf[_0x41be65(0x132)]=class extends _0x22843f[_0x41be65(0xc2)]{constructor(_0x92fbc=_0x42f49f,_0x4d2cba,_0x2cdc6d){const _0x5a60e0=_0x41be65;super(),this[_0x5a60e0(0xf4)]=_0x92fbc,this[_0x5a60e0(0xc3)]=_0x4d2cba,this[_0x5a60e0(0x130)]=_0x2cdc6d;const {..._0x5524da}=_0x22843f['merge']({},_0x42f49f,this[_0x5a60e0(0xf4)]);this[_0x5a60e0(0x130)][_0x5a60e0(0x90)](_0x22248e,_0x5524da);}[_0x41be65(0x13d)](){const _0x38f0b0=_0x41be65;_0x22843f['registerDependencies'](this['_injector'],_0x22843f[_0x38f0b0(0x10e)]([[_0x5c7e50],[_0x337bdf[_0x38f0b0(0xd1)]],[_0x469b14],[_0x337bdf['DesktopLiveShareController']]],this[_0x38f0b0(0xf4)][_0x38f0b0(0xed)])),_0x22843f[_0x38f0b0(0x146)](this[_0x38f0b0(0xc3)],[[_0x469b14]]);}[_0x41be65(0x14b)](){const _0x3f2499=_0x41be65;_0x22843f[_0x3f2499(0x146)](this[_0x3f2499(0xc3)],[[_0x337bdf[_0x3f2499(0xbf)]]]);}},_0x44fde6(_0x337bdf[_0x41be65(0x132)],_0x41be65(0xdc),_0x22843f[_0x41be65(0x133)][_0x41be65(0xcc)]),_0x44fde6(_0x337bdf[_0x41be65(0x132)],_0x41be65(0x153),_0x4d2ca5),_0x337bdf[_0x41be65(0x132)]=_0x220cbd([_0x22843f[_0x41be65(0xd7)](_0x48621c[_0x41be65(0x91)]),_0x74170(0x1,_0x22843f[_0x41be65(0x102)](_0x22843f[_0x41be65(0xa8)])),_0x74170(0x2,_0x22843f[_0x41be65(0x7a)])],_0x337bdf[_0x41be65(0x132)]),_0x337bdf[_0x41be65(0x85)]=_0x5ae231,_0x337bdf['LiveShareService']=_0x5c7e50,_0x337bdf['LiveShareStatus']=_0x119424,Object[_0x41be65(0x162)](_0x337bdf,Symbol[_0x41be65(0x128)],{'value':_0x41be65(0x122)});}));
|
|
1
|
+
(function(_0x6fc9ec,_0x53c57c){const _0x35fa88=_0x18a8,_0x308d57=_0x6fc9ec();while(!![]){try{const _0x59d340=parseInt(_0x35fa88(0x97))/0x1*(parseInt(_0x35fa88(0x16c))/0x2)+parseInt(_0x35fa88(0xf5))/0x3*(-parseInt(_0x35fa88(0x11c))/0x4)+-parseInt(_0x35fa88(0x122))/0x5*(parseInt(_0x35fa88(0x135))/0x6)+parseInt(_0x35fa88(0xa7))/0x7+-parseInt(_0x35fa88(0xae))/0x8+-parseInt(_0x35fa88(0x177))/0x9+parseInt(_0x35fa88(0x92))/0xa;if(_0x59d340===_0x53c57c)break;else _0x308d57['push'](_0x308d57['shift']());}catch(_0x58f890){_0x308d57['push'](_0x308d57['shift']());}}}(_0x38ee,0xa2d84),function(_0x3e39d3,_0x1f8054){const _0x2c575f=_0x18a8;typeof exports=='object'&&typeof module<'u'?_0x1f8054(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x2c575f(0xd4)]?define([_0x2c575f(0x141),_0x2c575f(0x134),_0x2c575f(0x136),_0x2c575f(0xea),_0x2c575f(0xb1),'react','@univerjs-pro/collaboration',_0x2c575f(0x121),_0x2c575f(0x13c),_0x2c575f(0x165),_0x2c575f(0xc7),_0x2c575f(0xbf)],_0x1f8054):(_0x3e39d3=typeof globalThis<'u'?globalThis:_0x3e39d3||self,_0x1f8054(_0x3e39d3[_0x2c575f(0x12e)]={},_0x3e39d3[_0x2c575f(0x175)],_0x3e39d3['UniverUi'],_0x3e39d3[_0x2c575f(0x163)],_0x3e39d3[_0x2c575f(0xa3)],_0x3e39d3[_0x2c575f(0x163)],_0x3e39d3[_0x2c575f(0xdc)],_0x3e39d3[_0x2c575f(0xc2)],_0x3e39d3[_0x2c575f(0x91)],_0x3e39d3[_0x2c575f(0x165)],_0x3e39d3[_0x2c575f(0x165)][_0x2c575f(0x14f)],_0x3e39d3[_0x2c575f(0x125)]));}(this,function(_0x1a53d9,_0x25191a,_0xb28cb4,_0x12bc83,_0x3c3832,_0x3d1f40,_0x4e0268,_0x4c6c35,_0x43be79,_0x593ed8,_0x43e1ad,_0x3c8577){'use strict';const _0xd4bc48=_0x18a8;var _0xc94ea7=Object[_0xd4bc48(0x16b)],_0x26365e=(_0x3ec0c5,_0x513bec,_0x56f6f8)=>_0x513bec in _0x3ec0c5?_0xc94ea7(_0x3ec0c5,_0x513bec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56f6f8}):_0x3ec0c5[_0x513bec]=_0x56f6f8,_0x3da899=(_0x1a5887,_0x377ccf,_0x433511)=>_0x26365e(_0x1a5887,typeof _0x377ccf!=_0xd4bc48(0x153)?_0x377ccf+'':_0x377ccf,_0x433511);function _0x16ff1c({ref:_0xc28264,..._0x41f233}){const _0x289607=_0xd4bc48,{icon:_0x466ccf,id:_0x2344ab,className:_0x13f83a,extend:_0x5ab565,..._0x1e7743}=_0x41f233,_0x4db758=(_0x289607(0x144)+_0x2344ab+'\x20'+(_0x13f83a||''))[_0x289607(0xf9)](),_0x285778=_0x3d1f40[_0x289607(0xfa)]('_'+_0x5656c5());return _0xab6b5e(_0x466ccf,''+_0x2344ab,{'defIds':_0x466ccf[_0x289607(0x15c)],'idSuffix':_0x285778['current']},{'ref':_0xc28264,'className':_0x4db758,..._0x1e7743},_0x5ab565);}function _0xab6b5e(_0x1f2ebc,_0x1ae5b0,_0x285e2b,_0x2bb108,_0x1afc40){const _0x4f1c4c=_0xd4bc48;return _0x3d1f40['createElement'](_0x1f2ebc[_0x4f1c4c(0xe0)],{'key':_0x1ae5b0,..._0x669e57(_0x1f2ebc,_0x285e2b,_0x1afc40),..._0x2bb108},(_0x111e8d(_0x1f2ebc,_0x285e2b)[_0x4f1c4c(0x102)]||[])[_0x4f1c4c(0x11b)]((_0x3eb652,_0x311eab)=>_0xab6b5e(_0x3eb652,_0x1ae5b0+'-'+_0x1f2ebc[_0x4f1c4c(0xe0)]+'-'+_0x311eab,_0x285e2b,void 0x0,_0x1afc40)));}function _0x669e57(_0x1dcf42,_0x3e2b48,_0x4084aa){const _0x13aa77=_0xd4bc48,_0xda9d9b={..._0x1dcf42['attrs']};_0x4084aa!=null&&_0x4084aa[_0x13aa77(0xb9)]&&_0xda9d9b['fill']==='colorChannel1'&&(_0xda9d9b['fill']=_0x4084aa[_0x13aa77(0xb9)]),_0x1dcf42[_0x13aa77(0xe0)]===_0x13aa77(0xa9)&&_0xda9d9b['id']&&(_0xda9d9b['id']=_0xda9d9b['id']+_0x3e2b48[_0x13aa77(0xcd)]),Object[_0x13aa77(0x11f)](_0xda9d9b)[_0x13aa77(0x8f)](([_0x510539,_0x182b0a])=>{const _0x1c9eb9=_0x13aa77;_0x510539===_0x1c9eb9(0xa9)&&typeof _0x182b0a==_0x1c9eb9(0xfd)&&(_0xda9d9b[_0x510539]=_0x182b0a[_0x1c9eb9(0x10e)](/url\(#(.*)\)/,_0x1c9eb9(0xbd)+_0x3e2b48[_0x1c9eb9(0xcd)]+')'));});const {defIds:_0x1a1d9e}=_0x3e2b48;return!_0x1a1d9e||_0x1a1d9e['length']===0x0||(_0x1dcf42['tag']===_0x13aa77(0xf1)&&_0xda9d9b['xlink:href']&&(_0xda9d9b[_0x13aa77(0x16d)]=_0xda9d9b[_0x13aa77(0x16d)]+_0x3e2b48[_0x13aa77(0xcd)]),Object[_0x13aa77(0x11f)](_0xda9d9b)[_0x13aa77(0x8f)](([_0x1df1e9,_0x354963])=>{const _0xa51bc8=_0x13aa77;typeof _0x354963==_0xa51bc8(0xfd)&&(_0xda9d9b[_0x1df1e9]=_0x354963[_0xa51bc8(0x10e)](/url\(#(.*)\)/,'url(#$1'+_0x3e2b48[_0xa51bc8(0xcd)]+')'));})),_0xda9d9b;}function _0x111e8d(_0xbd34f4,_0x10b4b2){const _0x2e3960=_0xd4bc48;var _0x231d3b;const {defIds:_0x492a90}=_0x10b4b2;return!_0x492a90||_0x492a90[_0x2e3960(0x171)]===0x0?_0xbd34f4:_0xbd34f4[_0x2e3960(0xe0)]==='defs'&&((_0x231d3b=_0xbd34f4['children'])!=null&&_0x231d3b[_0x2e3960(0x171)])?{..._0xbd34f4,'children':_0xbd34f4['children'][_0x2e3960(0x11b)](_0x3b9afb=>typeof _0x3b9afb['attrs']['id']==_0x2e3960(0xfd)&&_0x492a90&&_0x492a90[_0x2e3960(0x131)](_0x3b9afb[_0x2e3960(0x112)]['id'])?{..._0x3b9afb,'attrs':{..._0x3b9afb[_0x2e3960(0x112)],'id':_0x3b9afb[_0x2e3960(0x112)]['id']+_0x10b4b2[_0x2e3960(0xcd)]}}:_0x3b9afb)}:_0xbd34f4;}function _0x5656c5(){const _0x3f385d=_0xd4bc48;return Math[_0x3f385d(0x128)]()['toString'](0x24)[_0x3f385d(0x10d)](0x2,0x8);}_0x16ff1c[_0xd4bc48(0xf3)]=_0xd4bc48(0x151);const _0x5d86a7={'tag':_0xd4bc48(0x123),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xd4bc48(0x12f),'viewBox':_0xd4bc48(0xef),'width':_0xd4bc48(0x173),'height':_0xd4bc48(0x173)},'children':[{'tag':_0xd4bc48(0x94),'attrs':{'fill':'currentColor','d':_0xd4bc48(0xd7)}},{'tag':_0xd4bc48(0x94),'attrs':{'fill':_0xd4bc48(0xfe),'d':_0xd4bc48(0xa1),'fillRule':_0xd4bc48(0xd3),'clipRule':_0xd4bc48(0xd3)}}]},_0x16bc05=_0x3d1f40[_0xd4bc48(0xf2)](function(_0x53fb2a,_0x36c468){const _0x4e7022=_0xd4bc48;return _0x3d1f40['createElement'](_0x16ff1c,Object[_0x4e7022(0x107)]({},_0x53fb2a,{'id':_0x4e7022(0xc6),'ref':_0x36c468,'icon':_0x5d86a7}));});_0x16bc05['displayName']=_0xd4bc48(0x9b);class _0x38d1f1 extends _0x25191a[_0xd4bc48(0x149)]{constructor(){const _0x1914ec=_0xd4bc48;super(...arguments),_0x3da899(this,'_sharedOperations',new Set()),_0x3da899(this,_0x1914ec(0x158),new Set());}['registerSharedOperation'](_0x37b9f9){const _0x50de12=_0xd4bc48;return this['_sharedOperations'][_0x50de12(0xba)](_0x37b9f9),_0x25191a[_0x50de12(0xa5)](()=>this[_0x50de12(0x16f)][_0x50de12(0xe9)](_0x37b9f9));}[_0xd4bc48(0x138)](_0x2f6ceb){const _0x33d6d0=_0xd4bc48;return this[_0x33d6d0(0x158)][_0x33d6d0(0xba)](_0x2f6ceb),_0x25191a[_0x33d6d0(0xa5)](()=>this[_0x33d6d0(0x158)]['delete'](_0x2f6ceb));}[_0xd4bc48(0x13a)](_0xf68fab){const _0x2b0100=_0xd4bc48;return this[_0x2b0100(0x16f)][_0x2b0100(0x13d)](_0xf68fab);}[_0xd4bc48(0x11e)](_0x22a3e5){const _0x373722=_0xd4bc48;return Array[_0x373722(0xda)](this[_0x373722(0x158)])['map'](_0x2f0bcb=>_0x2f0bcb(_0x22a3e5));}}var _0x1644bc=Object[_0xd4bc48(0x139)],_0x5e0c56=(_0x2cb230,_0x50e035,_0x37b428,_0x510071)=>{const _0x458162=_0xd4bc48;for(var _0x14be96=_0x510071>0x1?void 0x0:_0x510071?_0x1644bc(_0x50e035,_0x37b428):_0x50e035,_0x5959d2=_0x2cb230[_0x458162(0x171)]-0x1,_0x513e02;_0x5959d2>=0x0;_0x5959d2--)(_0x513e02=_0x2cb230[_0x5959d2])&&(_0x14be96=_0x513e02(_0x14be96)||_0x14be96);return _0x14be96;},_0x4e64b4=(_0x5e89eb,_0x45fbdb)=>(_0x1373b1,_0x519b79)=>_0x45fbdb(_0x1373b1,_0x519b79,_0x5e89eb);_0x1a53d9[_0xd4bc48(0x9e)]=class extends _0x25191a['RxDisposable']{constructor(_0x35942f,_0x3c38f0,_0x1c6438){const _0x1c4a69=_0xd4bc48;super(),_0x3da899(this,'_entities',new Map()),(this[_0x1c4a69(0x154)]=_0x35942f,this[_0x1c4a69(0x109)]=_0x3c38f0,this[_0x1c4a69(0xa0)]=_0x1c6438,this[_0x1c4a69(0x176)]());}async['getLiveShareCoordinator'](_0x4957b2){const _0x8789e0=_0xd4bc48;return this[_0x8789e0(0xb6)][_0x8789e0(0x13d)](_0x4957b2)||await this[_0x8789e0(0x105)](_0x4957b2),this[_0x8789e0(0xb6)]['get'](_0x4957b2);}[_0xd4bc48(0xe5)](_0x67cb28){const _0x26ed46=_0xd4bc48;var _0xa728fb;return(_0xa728fb=this['_entities'][_0x26ed46(0x126)](_0x67cb28))!=null?_0xa728fb:null;}[_0xd4bc48(0x176)](){const _0x3a0927=_0xd4bc48;this[_0x3a0927(0x154)]['getTypeOfUnitAdded$'](_0x25191a[_0x3a0927(0xc1)][_0x3a0927(0x14b)])['pipe'](_0x43e1ad['takeUntil'](this[_0x3a0927(0xad)]))[_0x3a0927(0x172)](async _0x422bef=>{const _0x42deec=_0x3a0927,_0x31210a=_0x422bef['getUnitId']();this[_0x42deec(0xb6)][_0x42deec(0x13d)](_0x31210a)||this[_0x42deec(0x105)](_0x31210a);}),this['_univerInstanceService'][_0x3a0927(0x10b)](_0x25191a[_0x3a0927(0xc1)]['UNIVER_SHEET'])['pipe'](_0x43e1ad['takeUntil'](this['dispose$']))[_0x3a0927(0x172)](_0x386185=>{const _0x32bad7=_0x3a0927,_0x14157f=_0x386185[_0x32bad7(0xfb)](),_0x3141ba=this[_0x32bad7(0xb6)][_0x32bad7(0x126)](_0x14157f);_0x3141ba==null||_0x3141ba[_0x32bad7(0xab)]();});}async[_0xd4bc48(0x105)](_0x5c33ec){const _0x4d29cc=_0xd4bc48,_0x22c0a5=await this['_collabSessionService'][_0x4d29cc(0x12d)](_0x5c33ec),_0x1947ec=this[_0x4d29cc(0x109)]['createInstance'](_0x1a53d9['LiveShareCoordinator'],_0x5c33ec,_0x22c0a5);return _0x1947ec['init'](),this[_0x4d29cc(0xb6)][_0x4d29cc(0x96)](_0x5c33ec,_0x1947ec),_0x1947ec;}},_0x1a53d9[_0xd4bc48(0x9e)]=_0x5e0c56([_0x4e64b4(0x0,_0x25191a[_0xd4bc48(0xaf)]),_0x4e64b4(0x1,_0x25191a[_0xd4bc48(0xce)](_0x25191a[_0xd4bc48(0x140)])),_0x4e64b4(0x2,_0x25191a[_0xd4bc48(0xce)](_0x4c6c35['CollaborationSessionService']))],_0x1a53d9[_0xd4bc48(0x9e)]);var _0x1ba4fb=(_0x36dd92=>(_0x36dd92['OFFLINE']='offline',_0x36dd92[_0xd4bc48(0xe4)]=_0xd4bc48(0x113),_0x36dd92[_0xd4bc48(0xc0)]=_0xd4bc48(0x12c),_0x36dd92[_0xd4bc48(0xe3)]=_0xd4bc48(0x124),_0x36dd92[_0xd4bc48(0x101)]=_0xd4bc48(0xaa),_0x36dd92))(_0x1ba4fb||{});const _0x275a0e='SAME_OPERATION_SHARE_INTERVAL',_0xcfa867=0xc8;_0x1a53d9['LiveShareCoordinator']=class extends _0x25191a[_0xd4bc48(0x15f)]{constructor(_0x5f0f54,_0x22e221,_0x5ed9e8,_0x4c724e,_0x40c353){const _0x49ea41=_0xd4bc48;super(),_0x3da899(this,_0x49ea41(0x99),new _0x593ed8[(_0x49ea41(0x150))](_0x49ea41(0x113))),_0x3da899(this,_0x49ea41(0xde),this[_0x49ea41(0x99)]['asObservable']()),_0x3da899(this,'_init',!0x1),_0x3da899(this,'_commandDisposable',null),_0x3da899(this,'_presenter',null),(this[_0x49ea41(0xdd)]=_0x5f0f54,this[_0x49ea41(0xa2)]=_0x22e221,this[_0x49ea41(0x93)]=_0x5ed9e8,this['_liveShareService']=_0x4c724e,this['_commandService']=_0x40c353);}get['_status'](){const _0x231ce3=_0xd4bc48;return this[_0x231ce3(0x99)][_0x231ce3(0x15a)]();}['dispose'](){const _0x18ac96=_0xd4bc48;var _0x1f74fb;(_0x1f74fb=this['_commandDisposable'])==null||_0x1f74fb[_0x18ac96(0xab)](),this['_status$'][_0x18ac96(0xdf)](_0x18ac96(0x113)),this[_0x18ac96(0x99)]['complete']();}[_0xd4bc48(0x11a)](){const _0x182331=_0xd4bc48;return this[_0x182331(0x162)];}[_0xd4bc48(0x152)](){const _0x38b843=_0xd4bc48;this[_0x38b843(0x176)]||(this['_init']=!0x0,this[_0x38b843(0xa2)]['sessionStatus$']['pipe'](_0x43e1ad['takeUntil'](this[_0x38b843(0xad)]))['subscribe'](_0xae5393=>{const _0x5d45d8=_0x38b843;switch(_0xae5393){case _0x4c6c35['SessionStatus'][_0x5d45d8(0xa4)]:this['_handleOffline']();break;case _0x4c6c35['SessionStatus'][_0x5d45d8(0x133)]:this['_handleOnline']();break;}}),this[_0x38b843(0xa2)][_0x38b843(0xb4)][_0x38b843(0x13f)](_0x43e1ad[_0x38b843(0xc3)](this['dispose$']))[_0x38b843(0x172)](_0x15b621=>{const _0x4d77b9=_0x38b843,{eventID:_0xe577a1}=_0x15b621;switch(_0xe577a1){case _0x4e0268['CollaborationEvent'][_0x4d77b9(0xe7)]:this[_0x4d77b9(0x137)](_0x15b621);break;case _0x4e0268['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x4d77b9(0xb0)](_0x15b621);break;case _0x4e0268[_0x4d77b9(0xd9)][_0x4d77b9(0xd0)]:this[_0x4d77b9(0xe1)]();break;case _0x4e0268[_0x4d77b9(0xd9)]['NEW_CHANGESETS']:this[_0x4d77b9(0x15b)](_0x15b621);break;}}));}['tryStartPresenting'](){const _0x2bdc75=_0xd4bc48;this[_0x2bdc75(0xa2)][_0x2bdc75(0x14a)]({'eventID':_0x4e0268['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x2bdc75(0xdd)],'userID':this[_0x2bdc75(0xa2)][_0x2bdc75(0x116)]()}},this[_0x2bdc75(0xdd)]);}['stopPresenting'](){const _0x47735f=_0xd4bc48;this[_0x47735f(0x162)]===_0x47735f(0xaa)&&(this[_0x47735f(0x99)][_0x47735f(0xdf)](_0x47735f(0x113)),this[_0x47735f(0xa2)][_0x47735f(0x14a)]({'eventID':_0x4e0268[_0x47735f(0xd9)][_0x47735f(0xd0)],'data':{'unitID':this[_0x47735f(0xdd)]}},this[_0x47735f(0xdd)]));}[_0xd4bc48(0x164)](){const _0x3cf2a6=_0xd4bc48;this[_0x3cf2a6(0x162)]===_0x3cf2a6(0x124)&&(this['_status$'][_0x3cf2a6(0xdf)]('following'),this[_0x3cf2a6(0x147)]());}[_0xd4bc48(0xf0)](){const _0x1012d6=_0xd4bc48;this[_0x1012d6(0x162)]==='following'&&this[_0x1012d6(0x166)]();}['_handleNewHost'](_0x26c420){const _0x3cfef8=_0xd4bc48,{presenter:_0x487a26}=_0x26c420[_0x3cfef8(0x10c)],_0xdbb0bf=this[_0x3cfef8(0xa2)][_0x3cfef8(0x116)]();this[_0x3cfef8(0x95)]=_0x487a26,_0x487a26===_0xdbb0bf?(this[_0x3cfef8(0x166)](),this[_0x3cfef8(0xcb)]()):this[_0x3cfef8(0x162)]!==_0x3cfef8(0x124)&&(this[_0x3cfef8(0xb2)](),this[_0x3cfef8(0x147)]());}[_0xd4bc48(0xdb)](){const _0x412ea5=_0xd4bc48,_0x3e9617={'eventID':_0x4e0268[_0x412ea5(0xd9)][_0x412ea5(0x10f)]};this[_0x412ea5(0xa2)][_0x412ea5(0x14a)](_0x3e9617,this[_0x412ea5(0xdd)]);}['_handleTerminate'](){const _0xc78eea=_0xd4bc48;this[_0xc78eea(0x95)]=null,this[_0xc78eea(0x162)]!==_0xc78eea(0xaa)&&this[_0xc78eea(0xd5)]();}[_0xd4bc48(0x15b)](_0x16f4c9){const _0x649789=_0xd4bc48;if(this[_0x649789(0x162)]==='following'&&this[_0x649789(0x95)]===_0x16f4c9[_0x649789(0x10c)][_0x649789(0x148)]){const _0x480123=_0x4e0268[_0x649789(0x108)](_0x16f4c9['data'])[_0x649789(0xff)][_0x649789(0x110)]()[_0x649789(0x160)](_0x373529=>_0x373529['id']===_0x43be79[_0x649789(0xbe)]['id']);if(_0x480123){const _0x1fbfd6=_0x480123[_0x649789(0xbc)][_0x649789(0x132)],_0x599266=_0x480123[_0x649789(0xbc)][_0x649789(0xe8)]['id'];setTimeout(()=>{const _0x47cc7b=_0x649789;this[_0x47cc7b(0x159)]['executeCommand'](_0x43be79[_0x47cc7b(0x16e)]['id'],{'unitId':_0x1fbfd6,'subUnitId':_0x599266},{'fromCollab':!0x0});});}}}[_0xd4bc48(0xcb)](){const _0x33aade=_0xd4bc48;this[_0x33aade(0x99)][_0x33aade(0xdf)]('presenting');const _0x4dc0cd=new Map(),_0x917bee=this[_0x33aade(0x145)]=new _0x25191a[(_0x33aade(0x14e))]();_0x917bee[_0x33aade(0xba)](_0x25191a[_0x33aade(0xa5)](()=>{const _0x9d4441=_0x33aade;_0x4dc0cd[_0x9d4441(0x8f)](_0x4024ed=>_0x4024ed['complete']()),_0x4dc0cd[_0x9d4441(0x129)]();})),_0x917bee[_0x33aade(0xba)](this[_0x33aade(0x159)][_0x33aade(0xcc)](_0x5d3a52=>{const _0x58ee77=_0x33aade;var _0x2a63c0;if(_0x5d3a52[_0x58ee77(0x9c)]!==_0x25191a[_0x58ee77(0x117)][_0x58ee77(0xc8)]||!this['_liveShareService'][_0x58ee77(0x13a)](_0x5d3a52['id']))return;const {id:_0x3527b5}=_0x5d3a52;let _0x4ccc28;_0x4dc0cd[_0x58ee77(0x13d)](_0x3527b5)?_0x4ccc28=_0x4dc0cd[_0x58ee77(0x126)](_0x3527b5):(_0x4ccc28=new _0x593ed8['Subject'](),_0x4dc0cd['set'](_0x3527b5,_0x4ccc28),_0x4ccc28['pipe'](_0x43e1ad[_0x58ee77(0x9f)]((_0x2a63c0=this[_0x58ee77(0x93)][_0x58ee77(0xf7)](_0x275a0e))!=null?_0x2a63c0:_0xcfa867,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x58ee77(0x172)](_0x5b92a5=>{const _0x27a6f7=_0x58ee77;this[_0x27a6f7(0xa2)][_0x27a6f7(0x14a)]({'eventID':_0x4e0268[_0x27a6f7(0xd9)][_0x27a6f7(0x167)],'data':{'unitID':this['_unitID'],'operations':{[_0x5b92a5['id']]:{'id':_0x5b92a5['id'],'params':JSON['stringify'](_0x5b92a5[_0x27a6f7(0xbc)])}}}},this['_unitID']);})),_0x4ccc28[_0x58ee77(0xdf)](_0x5d3a52);})),this[_0x33aade(0xe6)]['getInitialStates'](this['_unitID'])[_0x33aade(0x8f)](_0x2b31b8=>this['_collabSession'][_0x33aade(0x14a)]({'eventID':_0x4e0268[_0x33aade(0xd9)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x33aade(0xdd)],'operations':{[_0x2b31b8['id']]:{'id':_0x2b31b8['id'],'params':JSON['stringify'](_0x2b31b8[_0x33aade(0xbc)])}}}},this[_0x33aade(0xdd)]));}['_stopPresenting'](){const _0x4c3926=_0xd4bc48;var _0x262e22;this[_0x4c3926(0x99)][_0x4c3926(0xdf)]('idle'),(_0x262e22=this[_0x4c3926(0x145)])==null||_0x262e22['dispose'](),this[_0x4c3926(0x145)]=null;}[_0xd4bc48(0x147)](){const _0x866b=_0xd4bc48;var _0x22a2bd;(_0x22a2bd=this['_commandDisposable'])==null||_0x22a2bd[_0x866b(0xab)](),this[_0x866b(0x99)][_0x866b(0xdf)]('following');}[_0xd4bc48(0xd5)](){const _0xb07dc=_0xd4bc48;var _0x3b3fe5;this['_status$'][_0xb07dc(0xdf)](_0xb07dc(0x113)),(_0x3b3fe5=this[_0xb07dc(0x145)])==null||_0x3b3fe5[_0xb07dc(0xab)](),this[_0xb07dc(0x145)]=null;}[_0xd4bc48(0x166)](){const _0x27d67b=_0xd4bc48;var _0x53d3f1;this[_0x27d67b(0x99)][_0x27d67b(0xdf)](_0x27d67b(0x124)),(_0x53d3f1=this[_0x27d67b(0x145)])==null||_0x53d3f1[_0x27d67b(0xab)]();}[_0xd4bc48(0xb0)](_0x31ccfd){const _0x568a0e=_0xd4bc48;if(['presenting',_0x568a0e(0x124),_0x568a0e(0x12b)][_0x568a0e(0x131)](this[_0x568a0e(0x162)])||!_0x31ccfd[_0x568a0e(0x10c)]['presenter']||_0x31ccfd['data'][_0x568a0e(0x16a)]===this[_0x568a0e(0xa2)][_0x568a0e(0x116)]())return;this[_0x568a0e(0x162)]===_0x568a0e(0x113)&&this[_0x568a0e(0x147)]();const _0x21249a=_0x31ccfd[_0x568a0e(0x10c)][_0x568a0e(0x155)];Object[_0x568a0e(0x118)](_0x21249a)[_0x568a0e(0x8f)](_0x18e05d=>{const _0x164719=_0x568a0e;this[_0x164719(0x159)]['executeCommand'](_0x18e05d['id'],_0x18e05d['params']?JSON['parse'](_0x18e05d['params']):null,{'fromCollab':!0x0});});}[_0xd4bc48(0xf6)](){const _0x3764e0=_0xd4bc48;var _0x4f0203;this[_0x3764e0(0x99)][_0x3764e0(0xdf)](_0x3764e0(0x12b)),(_0x4f0203=this[_0x3764e0(0x145)])==null||_0x4f0203[_0x3764e0(0xab)]();}[_0xd4bc48(0xbb)](){const _0x1e9a20=_0xd4bc48;this['_status$'][_0x1e9a20(0xdf)]('idle'),this['_fetchOperations']();}},_0x1a53d9[_0xd4bc48(0xb8)]=_0x5e0c56([_0x4e64b4(0x2,_0x25191a[_0xd4bc48(0x127)]),_0x4e64b4(0x3,_0x25191a[_0xd4bc48(0xce)](_0x38d1f1)),_0x4e64b4(0x4,_0x25191a[_0xd4bc48(0xa8)])],_0x1a53d9['LiveShareCoordinator']);function _0x583539(){const _0x72f891=_0xd4bc48,_0x5e5029=_0xb28cb4['useDependency'](_0x1a53d9['LiveShareController']),_0x40812b=_0xb28cb4[_0x72f891(0xa6)](_0x25191a['IUniverInstanceService']),_0x4e125e=_0xb28cb4[_0x72f891(0xc9)](()=>_0x40812b[_0x72f891(0xac)](_0x25191a[_0x72f891(0xc1)][_0x72f891(0x14b)]),void 0x0,!0x1,[]),[_0x168a3b,_0x3a5ec4]=_0x3d1f40[_0x72f891(0x11d)](null),[_0x230453,_0x3d39bd]=_0x3d1f40[_0x72f891(0x11d)](_0x1ba4fb[_0x72f891(0xe4)]),_0x305f0b=_0x3d1f40[_0x72f891(0xfa)](null);return _0x3d1f40[_0x72f891(0xb3)](()=>(_0x4e125e&&_0x5e5029[_0x72f891(0x119)](_0x4e125e[_0x72f891(0xfb)]())['then'](_0x4adbdd=>{const _0x5ca7a7=_0x72f891;_0x3a5ec4(_0x4adbdd),_0x305f0b[_0x5ca7a7(0x8e)]=_0x4adbdd[_0x5ca7a7(0xde)][_0x5ca7a7(0x172)](_0x344e19=>{_0x3d39bd(_0x344e19);});}),()=>{const _0x344dc1=_0x72f891;var _0x1247ce;(_0x1247ce=_0x305f0b[_0x344dc1(0x8e)])==null||_0x1247ce[_0x344dc1(0x106)](),_0x305f0b[_0x344dc1(0x8e)]=null;}),[_0x4e125e,_0x5e5029]),_0x168a3b?_0x12bc83['jsx'](_0x3c3832[_0x72f891(0xe2)],{'align':_0x72f891(0x111),'disabled':_0x230453===_0x1ba4fb[_0x72f891(0xa4)],'className':_0x72f891(0xc4),'overlay':_0x12bc83[_0x72f891(0xd8)](_0x4e6ade,{'status':_0x230453,'coordinator':_0x168a3b}),'children':_0x12bc83[_0x72f891(0xd8)]('button',{'className':_0x3c3832[_0x72f891(0xd6)](_0x72f891(0xf8),{'univer-cursor-not-allowed':_0x230453===_0x1ba4fb[_0x72f891(0xa4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x230453!==_0x1ba4fb['OFFLINE']}),'type':_0x72f891(0x168),'children':_0x12bc83['jsx'](_0x16bc05,{'className':_0x72f891(0x104)})})}):null;}function _0x4e6ade(_0x17e6d3){const _0x4498c4=_0xd4bc48,{status:_0x2421c4,coordinator:_0x5606c7}=_0x17e6d3;switch(_0x2421c4){case _0x1ba4fb[_0x4498c4(0xe4)]:return _0x12bc83[_0x4498c4(0xd8)](_0x66c3eb,{'coordinator':_0x5606c7});case _0x1ba4fb[_0x4498c4(0xc0)]:return _0x12bc83[_0x4498c4(0xd8)](_0x9b785b,{'coordinator':_0x5606c7});case _0x1ba4fb[_0x4498c4(0xe3)]:return _0x12bc83[_0x4498c4(0xd8)](_0x34385a,{'coordinator':_0x5606c7});case _0x1ba4fb[_0x4498c4(0xa4)]:return _0x12bc83[_0x4498c4(0xd8)](_0x53e9bb,{});case _0x1ba4fb[_0x4498c4(0x101)]:return _0x12bc83[_0x4498c4(0xd8)](_0x228fff,{'coordinator':_0x5606c7});default:return null;}}function _0x66c3eb(_0x318696){const _0xebcfc4=_0xd4bc48,{coordinator:_0xe11ca4}=_0x318696;return _0x12bc83[_0xebcfc4(0xcf)](_0x12bc83[_0xebcfc4(0x14d)],{'children':[_0x12bc83[_0xebcfc4(0xd8)](_0xebcfc4(0x98),{'className':_0xebcfc4(0x9a),'children':_0xebcfc4(0x15e)}),_0x12bc83[_0xebcfc4(0xd8)](_0x3c3832[_0xebcfc4(0x157)],{'onClick':()=>_0xe11ca4['tryStartPresenting'](),'children':'Start'})]});}function _0x9b785b(_0xaffdf7){const _0x45e3e9=_0xd4bc48,{coordinator:_0x4fee85}=_0xaffdf7;return _0x12bc83[_0x45e3e9(0xcf)](_0x12bc83[_0x45e3e9(0x14d)],{'children':[_0x12bc83[_0x45e3e9(0xd8)](_0x45e3e9(0x98),{'className':_0x45e3e9(0x9a),'children':_0x45e3e9(0xeb)}),_0x12bc83['jsx'](_0x3c3832[_0x45e3e9(0x157)],{'onClick':()=>_0x4fee85[_0x45e3e9(0xf0)](),'children':_0x45e3e9(0xd2)})]});}function _0x34385a(_0x3a80ed){const _0x37b329=_0xd4bc48,{coordinator:_0x169f1d}=_0x3a80ed;return _0x12bc83[_0x37b329(0xcf)](_0x12bc83[_0x37b329(0x14d)],{'children':[_0x12bc83[_0x37b329(0xd8)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x12bc83[_0x37b329(0xd8)](_0x3c3832[_0x37b329(0x157)],{'variant':_0x37b329(0x143),'onClick':()=>_0x169f1d[_0x37b329(0x164)](),'children':_0x37b329(0xed)})]});}function _0x228fff(_0x219dc2){const _0xf34175=_0xd4bc48,{coordinator:_0x510872}=_0x219dc2;return _0x12bc83[_0xf34175(0xcf)](_0x12bc83[_0xf34175(0x14d)],{'children':[_0x12bc83[_0xf34175(0xd8)](_0xf34175(0x98),{'className':_0xf34175(0x9a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x12bc83['jsx'](_0x3c3832['Button'],{'variant':'default','onClick':()=>_0x510872[_0xf34175(0x14c)](),'children':_0xf34175(0xf4)})]});}function _0x53e9bb(){const _0x250eda=_0xd4bc48;return _0x12bc83[_0x250eda(0xd8)](_0x12bc83[_0x250eda(0x14d)],{'children':'You\x27are\x20offline.'});}var _0x1fc4d8=Object[_0xd4bc48(0x139)],_0x5b7e2b=(_0x5ecc93,_0x88468c,_0x42bca9,_0x1bfcca)=>{const _0x9c8362=_0xd4bc48;for(var _0x259b97=_0x1bfcca>0x1?void 0x0:_0x1bfcca?_0x1fc4d8(_0x88468c,_0x42bca9):_0x88468c,_0x1b46e3=_0x5ecc93[_0x9c8362(0x171)]-0x1,_0x1fa0c6;_0x1b46e3>=0x0;_0x1b46e3--)(_0x1fa0c6=_0x5ecc93[_0x1b46e3])&&(_0x259b97=_0x1fa0c6(_0x259b97)||_0x259b97);return _0x259b97;},_0x4b1261=(_0x5a6863,_0x369094)=>(_0x41970f,_0x5dcee3)=>_0x369094(_0x41970f,_0x5dcee3,_0x5a6863);_0x1a53d9[_0xd4bc48(0xee)]=class extends _0x25191a[_0xd4bc48(0x149)]{constructor(_0x327666,_0x1608bb){const _0x2fea39=_0xd4bc48;super(),this[_0x2fea39(0x109)]=_0x327666,this[_0x2fea39(0x161)]=_0x1608bb,this[_0x2fea39(0x170)]();}[_0xd4bc48(0x170)](){const _0x97189c=_0xd4bc48;this[_0x97189c(0xd1)](this[_0x97189c(0x161)][_0x97189c(0x174)](_0xb28cb4[_0x97189c(0x120)][_0x97189c(0x115)],()=>_0xb28cb4['connectInjector'](_0x583539,this['_injector'])));}},_0x1a53d9[_0xd4bc48(0xee)]=_0x5b7e2b([_0x4b1261(0x0,_0x25191a[_0xd4bc48(0xce)](_0x25191a[_0xd4bc48(0x140)])),_0x4b1261(0x1,_0xb28cb4['IUIPartsService'])],_0x1a53d9[_0xd4bc48(0xee)]);const _0x2126f7=_0xd4bc48(0xfc),_0x3e6b42={};var _0x3131be=Object[_0xd4bc48(0x139)],_0x3e534d=(_0x29b26a,_0x5d2520,_0x4b2f0e,_0x21183f)=>{const _0x5db51e=_0xd4bc48;for(var _0x476e1e=_0x21183f>0x1?void 0x0:_0x21183f?_0x3131be(_0x5d2520,_0x4b2f0e):_0x5d2520,_0x5ba51c=_0x29b26a[_0x5db51e(0x171)]-0x1,_0x34826d;_0x5ba51c>=0x0;_0x5ba51c--)(_0x34826d=_0x29b26a[_0x5ba51c])&&(_0x476e1e=_0x34826d(_0x476e1e)||_0x476e1e);return _0x476e1e;},_0x20cd39=(_0x51b05d,_0x32ee7a)=>(_0x30b049,_0x25d233)=>_0x32ee7a(_0x30b049,_0x25d233,_0x51b05d);let _0x462c82=class extends _0x25191a[_0xd4bc48(0x149)]{constructor(_0xcd1a7e){const _0x276cab=_0xd4bc48;super(),this[_0x276cab(0xe6)]=_0xcd1a7e,this['_init']();}[_0xd4bc48(0x176)](){const _0x1e55cf=_0xd4bc48;[_0x3c8577[_0x1e55cf(0x169)]['id'],_0x3c8577[_0x1e55cf(0x12a)]['id'],_0x43be79[_0x1e55cf(0x16e)]['id']]['forEach'](_0x3f2da2=>{const _0x4d6ca0=_0x1e55cf;this[_0x4d6ca0(0xd1)](this['_liveShareService'][_0x4d6ca0(0x9d)](_0x3f2da2));});}};_0x462c82=_0x3e534d([_0x20cd39(0x0,_0x25191a['Inject'](_0x38d1f1))],_0x462c82);var _0x20f7a1=Object['defineProperty'],_0xf589a2=Object[_0xd4bc48(0x139)],_0x4d793b=(_0x5b6f5e,_0x21b579,_0x319cdf)=>_0x21b579 in _0x5b6f5e?_0x20f7a1(_0x5b6f5e,_0x21b579,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x319cdf}):_0x5b6f5e[_0x21b579]=_0x319cdf,_0x568e68=(_0x21e57c,_0x2ca9b3,_0x560c30,_0x474c15)=>{const _0x560a9f=_0xd4bc48;for(var _0xe5d2c8=_0x474c15>0x1?void 0x0:_0x474c15?_0xf589a2(_0x2ca9b3,_0x560c30):_0x2ca9b3,_0x52df66=_0x21e57c[_0x560a9f(0x171)]-0x1,_0x1a6032;_0x52df66>=0x0;_0x52df66--)(_0x1a6032=_0x21e57c[_0x52df66])&&(_0xe5d2c8=_0x1a6032(_0xe5d2c8)||_0xe5d2c8);return _0xe5d2c8;},_0x57b5ce=(_0x43fd66,_0xb1a6bf)=>(_0x41a029,_0x58af4a)=>_0xb1a6bf(_0x41a029,_0x58af4a,_0x43fd66),_0x4d3660=(_0x3d25c2,_0x49932e,_0x570d1e)=>_0x4d793b(_0x3d25c2,typeof _0x49932e!=_0xd4bc48(0x153)?_0x49932e+'':_0x49932e,_0x570d1e);const _0x48d126='UNIVER_LIVE_SHARE_PLUGIN';_0x1a53d9[_0xd4bc48(0xca)]=class extends _0x25191a[_0xd4bc48(0x15d)]{constructor(_0x708fa1=_0x3e6b42,_0x46be1e,_0xb87e3a){const _0x52b4f0=_0xd4bc48;super(),this[_0x52b4f0(0x146)]=_0x708fa1,this[_0x52b4f0(0x109)]=_0x46be1e,this['_configService']=_0xb87e3a;const {..._0x4c10ba}=_0x25191a['merge']({},_0x3e6b42,this['_config']);this[_0x52b4f0(0x93)][_0x52b4f0(0x10a)](_0x2126f7,_0x4c10ba);}[_0xd4bc48(0x13b)](){const _0x15ed0c=_0xd4bc48;_0x25191a[_0x15ed0c(0x142)](this['_injector'],_0x25191a[_0x15ed0c(0x156)]([[_0x38d1f1],[_0x1a53d9['LiveShareController']],[_0x462c82],[_0x1a53d9['DesktopLiveShareController']]],this[_0x15ed0c(0x146)][_0x15ed0c(0xb5)])),_0x25191a[_0x15ed0c(0x130)](this['_injector'],[[_0x462c82]]);}['onRendered'](){const _0x342eef=_0xd4bc48;_0x25191a[_0x342eef(0x130)](this[_0x342eef(0x109)],[[_0x1a53d9['DesktopLiveShareController']]]);}},_0x4d3660(_0x1a53d9[_0xd4bc48(0xca)],'type',_0x25191a['UniverInstanceType'][_0xd4bc48(0x100)]),_0x4d3660(_0x1a53d9[_0xd4bc48(0xca)],_0xd4bc48(0xec),_0x48d126),_0x1a53d9[_0xd4bc48(0xca)]=_0x568e68([_0x25191a['DependentOn'](_0x4c6c35[_0xd4bc48(0xc5)]),_0x57b5ce(0x1,_0x25191a[_0xd4bc48(0xce)](_0x25191a[_0xd4bc48(0x140)])),_0x57b5ce(0x2,_0x25191a[_0xd4bc48(0x127)])],_0x1a53d9['UniverLiveSharePlugin']),_0x1a53d9[_0xd4bc48(0x114)]=_0x583539,_0x1a53d9[_0xd4bc48(0xb7)]=_0x38d1f1,_0x1a53d9[_0xd4bc48(0x13e)]=_0x1ba4fb,Object[_0xd4bc48(0x16b)](_0x1a53d9,Symbol[_0xd4bc48(0x103)],{'value':_0xd4bc48(0x90)});}));function _0x18a8(_0x1cc036,_0x15dd46){const _0x38ee38=_0x38ee();return _0x18a8=function(_0x18a880,_0x15d916){_0x18a880=_0x18a880-0x8e;let _0x2c233d=_0x38ee38[_0x18a880];return _0x2c233d;},_0x18a8(_0x1cc036,_0x15dd46);}function _0x38ee(){const _0x5173f5=['sheet','delete','react/jsx-runtime','You\x27re\x20following\x20the\x20presenter','pluginName','Start\x20following','DesktopLiveShareController','0\x200\x2017\x2017','stopFollowing','use','forwardRef','displayName','Stop\x20presenting','3972789VzpJMw','_handleOffline','getConfig','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','trim','useRef','getUnitId','live-share.config','string','currentColor','mutations','UNIVER_UNKNOWN','PRESENTING','children','toStringTag','univer-size-4','_startLiveShareCoordinator','unsubscribe','assign','parseProtocolChangeset','_injector','setConfig','getTypeOfUnitDisposed$','data','substring','replace','LIVESHARE_FETCH_OPERATIONS','reverse','end','attrs','idle','LiveShare','HEADER_MENU','getMemberID','CommandType','values','getLiveShareCoordinator','getStatus','map','4SMyBps','useState','getInitialStates','entries','BuiltInUIPart','@univerjs-pro/collaboration-client','25teTUSr','svg','not-following','UniverSheetsUi','get','IConfigService','random','clear','SetScrollOperation','offline','following','requireSession','UniverProLiveShare','none','touchDependencies','includes','unitId','ONLINE','@univerjs/core','83166EcaXHe','@univerjs/ui','_handleNewHost','registerInitialStateReporter','getOwnPropertyDescriptor','shouldShareOperation','onStarting','@univerjs/sheets','has','LiveShareStatus','pipe','Injector','exports','registerDependencies','text','univerjs-icon\x20univerjs-icon-','_commandDisposable','_config','_startFollowing','memberID','Disposable','send','UNIVER_SHEET','stopPresenting','Fragment','DisposableCollection','operators','BehaviorSubject','UniverIcon','init','symbol','_univerInstanceService','operations','mergeOverrideWithDependencies','Button','_reporters','_commandService','getValue','_handleNewChangeSets','defIds','Plugin','Present\x20this\x20document','RxDisposable','find','_uiPartsService','_status','React','startFollowing','rxjs','_stopFollowing','LIVESHARE_OPERATION','button','SetZoomRatioOperation','presenter','defineProperty','2FqcfyP','xlink:href','SetWorksheetActiveOperation','_sharedOperations','_mountLiveShare','length','subscribe','1em','registerComponent','UniverCore','_init','9589455tFEkfI','current','forEach','Module','UniverSheets','29089830SrOZjj','_configService','path','_presenter','set','578951DLrivB','div','_status$','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareIcon','type','registerSharedOperation','LiveShareController','throttleTime','_collabSessionService','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_collabSession','UniverDesign','OFFLINE','toDisposable','useDependency','3416791ucLbLo','ICommandService','mask','presenting','dispose','getCurrentTypeOfUnit$','dispose$','6799776bhjPbI','IUniverInstanceService','_handleOperation','@univerjs/design','_stopPresenting','useEffect','event$','override','_entities','LiveShareService','LiveShareCoordinator','colorChannel1','add','_handleOnline','params','url(#$1','InsertSheetMutation','@univerjs/sheets-ui','FOLLOWING','UniverInstanceType','UniverProCollaborationClient','takeUntil','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','UniverCollaborationClientPlugin','live-share-icon','rxjs/operators','OPERATION','useObservable','UniverLiveSharePlugin','_startPresenting','onCommandExecuted','idSuffix','Inject','jsxs','LIVESHARE_TERMINATE','disposeWithMe','Stop\x20following','evenodd','amd','_beIdle','clsx','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','jsx','CollaborationEvent','from','_fetchOperations','UniverProCollaboration','_unitID','status$','next','tag','_handleTerminate','Dropdown','NOT_FOLLOWING','IDLE','getLiveShareCoordinatorSync','_liveShareService','LIVESHARE_NEW_HOST'];_0x38ee=function(){return _0x5173f5;};return _0x38ee();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.2-experimental.20251202-
|
|
3
|
+
"version": "0.12.2-experimental.20251202-7f1a98f",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.12.2-experimental.20251202-
|
|
61
|
-
"@univerjs-pro/collaboration-client": "0.12.2-experimental.20251202-
|
|
62
|
-
"@univerjs/core": "0.12.2-experimental.20251202-
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets": "0.12.2-experimental.20251202-
|
|
66
|
-
"@univerjs/sheets-ui": "0.12.2-experimental.20251202-
|
|
67
|
-
"@univerjs/ui": "0.12.2-experimental.20251202-
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.2-experimental.20251202-7f1a98f",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.2-experimental.20251202-7f1a98f",
|
|
62
|
+
"@univerjs/core": "0.12.2-experimental.20251202-7f1a98f",
|
|
63
|
+
"@univerjs/engine-render": "0.12.2-experimental.20251202-7f1a98f",
|
|
64
|
+
"@univerjs/design": "0.12.2-experimental.20251202-7f1a98f",
|
|
65
|
+
"@univerjs/sheets": "0.12.2-experimental.20251202-7f1a98f",
|
|
66
|
+
"@univerjs/sheets-ui": "0.12.2-experimental.20251202-7f1a98f",
|
|
67
|
+
"@univerjs/ui": "0.12.2-experimental.20251202-7f1a98f"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|