@univerjs-pro/live-share 0.15.0-insiders.20260108-47c73e3 → 0.15.0-insiders.20260110-48b77c8
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 +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x8ca9be=_0x7e44;function _0x3f71(){const _0x308877=['No\x20active\x20workbook\x20found.','4727652adlcTj','42mGRZUx','startRow','executeCommand','_initialize','getStatus','LiveShareController','startColumn','LiveShareStatus','LiveShareStatusEnum','21979720ORSkIF','syncExecuteCommand','getId','startPresenting','_commandService','getLiveShareStatus','getRenderById','startFollowing','FEnum','getSheetId','SetWorksheetActiveOperation','stopFollowing','IRenderManagerService','_injector','PRESENTING','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2372120TURKLm','FRange','stopPresenting','getActiveSheet','get','getLiveShareCoordinatorSync','6811280YiVWaM','1597255whQJoy','IDLE','1879542QgFXnM','extend','SetScrollOperation','3456756ujToHJ','getActiveWorkbook'];_0x3f71=function(){return _0x308877;};return _0x3f71();}(function(_0x1c5860,_0x28a34e){const _0x2ac2be=_0x7e44,_0x3ed83f=_0x1c5860();while(!![]){try{const _0x5456b3=-parseInt(_0x2ac2be(0x164))/0x1+-parseInt(_0x2ac2be(0x169))/0x2+-parseInt(_0x2ac2be(0x16c))/0x3+parseInt(_0x2ac2be(0x163))/0x4+-parseInt(_0x2ac2be(0x186))/0x5+parseInt(_0x2ac2be(0x166))/0x6*(parseInt(_0x2ac2be(0x16d))/0x7)+parseInt(_0x2ac2be(0x176))/0x8;if(_0x5456b3===_0x28a34e)break;else _0x3ed83f['push'](_0x3ed83f['shift']());}catch(_0x5a2f07){_0x3ed83f['push'](_0x3ed83f['shift']());}}}(_0x3f71,0xe8e1e));function _0x7e44(_0x3c8438,_0xfeb8f6){_0x3c8438=_0x3c8438-0x163;const _0x3f71c6=_0x3f71();let _0x7e444a=_0x3f71c6[_0x3c8438];return _0x7e444a;}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[_0x8ca9be(0x187)]{[_0x8ca9be(0x170)](_0x3efb41,_0xb9b569,_0x391440,_0x272168,_0x20c4c7){const _0x5f0609=_0x8ca9be,_0x2c2bc1=_0x3efb41[_0x5f0609(0x18a)](n[_0x5f0609(0x172)]),_0x3a34ba=_0x3efb41[_0x5f0609(0x18a)](g[_0x5f0609(0x182)]),_0x9b322c=_0xb9b569['getUnitId'](),_0x390eb3=_0xb9b569[_0x5f0609(0x189)](),_0x2185ae=_0x2c2bc1[_0x5f0609(0x18b)](_0x9b322c);(_0x2185ae==null?void 0x0:_0x2185ae[_0x5f0609(0x171)]())!==n[_0x5f0609(0x174)][_0x5f0609(0x184)]||(_0x391440[_0x5f0609(0x17f)]()!==_0x390eb3[_0x5f0609(0x17f)]()&&this[_0x5f0609(0x17a)][_0x5f0609(0x16f)](u[_0x5f0609(0x180)]['id'],{'unitId':_0x9b322c,'subUnitId':_0x391440[_0x5f0609(0x17f)]()}),!_0x3a34ba[_0x5f0609(0x17c)](_0x9b322c))||_0x20c4c7[_0x5f0609(0x177)](f[_0x5f0609(0x168)]['id'],{'unitId':_0xb9b569['getUnitId'](),'sheetId':_0x391440[_0x5f0609(0x17f)](),'sheetViewStartRow':_0x272168[_0x5f0609(0x16e)],'sheetViewStartColumn':_0x272168[_0x5f0609(0x173)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d['FRange']['extend'](w);class C extends a['FUniver']{[_0x8ca9be(0x17b)](){const _0x51c4f7=_0x8ca9be;var _0x51c47c,_0x5ab50c;const _0x3cc4ae=this['_injector'][_0x51c4f7(0x18a)](n[_0x51c4f7(0x172)]),_0x4740b2=(_0x51c47c=this['getActiveWorkbook']())==null?void 0x0:_0x51c47c[_0x51c4f7(0x178)]();if(!_0x4740b2)throw new Error(_0x51c4f7(0x16b));const _0x18f106=_0x3cc4ae[_0x51c4f7(0x18b)](_0x4740b2);return(_0x5ab50c=_0x18f106==null?void 0x0:_0x18f106[_0x51c4f7(0x171)]())!=null?_0x5ab50c:n[_0x51c4f7(0x174)][_0x51c4f7(0x165)];}['startFollowing'](){const _0x23f816=_0x8ca9be;var _0x3039e1;const _0x3ae7a7=this[_0x23f816(0x183)]['get'](n[_0x23f816(0x172)]),_0x2aaafd=(_0x3039e1=this[_0x23f816(0x16a)]())==null?void 0x0:_0x3039e1[_0x23f816(0x178)]();if(!_0x2aaafd)throw new Error('No\x20active\x20workbook\x20found.');const _0x44353e=_0x3ae7a7[_0x23f816(0x18b)](_0x2aaafd);if(!_0x44353e)throw new Error(_0x23f816(0x185));_0x44353e[_0x23f816(0x17d)]();}[_0x8ca9be(0x181)](){const _0x44cc5b=_0x8ca9be;var _0xa76fe5;const _0x500d26=this[_0x44cc5b(0x183)][_0x44cc5b(0x18a)](n['LiveShareController']),_0x47d932=(_0xa76fe5=this['getActiveWorkbook']())==null?void 0x0:_0xa76fe5[_0x44cc5b(0x178)]();if(!_0x47d932)throw new Error(_0x44cc5b(0x16b));const _0x400d21=_0x500d26[_0x44cc5b(0x18b)](_0x47d932);if(!_0x400d21)throw new Error(_0x44cc5b(0x185));_0x400d21[_0x44cc5b(0x181)]();}[_0x8ca9be(0x179)](){const _0x1b4894=_0x8ca9be;var _0x25addb;const _0x502b0d=this[_0x1b4894(0x183)]['get'](n[_0x1b4894(0x172)]),_0x2097e9=(_0x25addb=this['getActiveWorkbook']())==null?void 0x0:_0x25addb[_0x1b4894(0x178)]();if(!_0x2097e9)throw new Error(_0x1b4894(0x16b));const _0x3b103d=_0x502b0d['getLiveShareCoordinatorSync'](_0x2097e9);if(!_0x3b103d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3b103d['tryStartPresenting']();}[_0x8ca9be(0x188)](){const _0x4806d1=_0x8ca9be;var _0x1bc912;const _0x10e008=this[_0x4806d1(0x183)][_0x4806d1(0x18a)](n[_0x4806d1(0x172)]),_0x43de48=(_0x1bc912=this[_0x4806d1(0x16a)]())==null?void 0x0:_0x1bc912[_0x4806d1(0x178)]();if(!_0x43de48)throw new Error('No\x20active\x20workbook\x20found.');const _0x4e1772=_0x10e008[_0x4806d1(0x18b)](_0x43de48);if(!_0x4e1772)throw new Error(_0x4806d1(0x185));_0x4e1772[_0x4806d1(0x188)]();}}a['FUniver'][_0x8ca9be(0x167)](C);class L extends a['FEnum']{get[_0x8ca9be(0x175)](){const _0x2b7dd3=_0x8ca9be;return n[_0x2b7dd3(0x174)];}}a[_0x8ca9be(0x17e)][_0x8ca9be(0x167)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x526036=_0x20e8;function _0x5e92(){const _0x23bc99=['_collabSessionService','DesktopLiveShareController','LiveShare','_startPresenting','_commandService','_configService','live-share-icon','SessionStatus','IDLE','IUniverInstanceService','LIVESHARE_TERMINATE','getTypeOfUnitAdded$','_handleOnline','substring','onStarting','string','toStringTag','DependentOn','1em','stopPresenting','_stopPresenting','dispose$','path','http://www.w3.org/2000/svg','ONLINE','130rUvoVb','Stop\x20following','get','35408dQdcWj','event$','Plugin','clsx','813556UyRszk','UniverLiveSharePlugin','data','_mountLiveShare','_collabSession','div','LIVESHARE_OPERATION','getOwnPropertyDescriptor','defs','replace','xlink:href','getValue','8810934wIJVKS','setConfig','UNIVER_UNKNOWN','length','random','pipe','_liveShareService','_handleOperation','450yITfKB','params','map','defIds','startFollowing','send','parse','useRef','merge','takeUntil','url(#$1','UNIVER_SHEET','LIVESHARE_NEW_HOST','_startFollowing','complete','throttleTime','CollaborationEvent','_unitID','symbol','Module','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','LiveShareController','end','current','registerInitialStateReporter','Button','useObservable','default','getConfig','getLiveShareCoordinator','_startLiveShareCoordinator','entries','Disposable','NOT_FOLLOWING','delete','LiveShareService','getMemberID','idSuffix','unitId','not-following','fill','toString','svg','You\x27are\x20offline.','createInstance','none','univer-mb-3\x20univer-w-full\x20univer-text-sm','_commandDisposable','Dropdown','PRESENTING','has','init','FOLLOWING','847hQHxKh','operations','_univerInstanceService','subscribe','_init','status$','SetScrollOperation','Start','UNIVER_LIVE_SHARE_PLUGIN','IUIPartsService','children','_entities','SetWorksheetActiveOperation','requireSession','attrs','LiveShareStatus','_handleOffline','tag','idle','SetZoomRatioOperation','includes','next','_uiPartsService','DisposableCollection','presenting','_sharedOperations','_stopFollowing','useDependency','Injector','button','_config','Inject','offline','RxDisposable','You\x27re\x20not\x20following\x20the\x20presenter','useState','following','UniverInstanceType','You\x27re\x20presenting\x20the\x20document','_reporters','add','type','Subject','CollaborationSessionService','jsxs','disposeWithMe','univerjs-icon\x20univerjs-icon-','getInitialStates','reverse','_beIdle','BehaviorSubject','onCommandExecuted','UniverCollaborationClientPlugin','_fetchOperations','currentColor','getTypeOfUnitDisposed$','HEADER_MENU','_injector','defineProperty','forwardRef','_status$','ICommandService','SAME_OPERATION_SHARE_INTERVAL','37917QIgPXz','createElement','OFFLINE','assign','sessionStatus$','colorChannel1','pluginName','presenter','_handleNewChangeSets','mask','_status','trim','asObservable','forEach','IConfigService','jsx','registerDependencies','LiveShareIcon','mutations','0\x200\x2017\x2017','LIVESHARE_FETCH_OPERATIONS','75822NkkbST','dispose','20226gzlqjf','Fragment','shouldShareOperation','executeCommand','304zTKVuK','_presenter','useEffect','LiveShareCoordinator','_handleNewHost','getUnitId','registerSharedOperation','728652GgroAY'];_0x5e92=function(){return _0x23bc99;};return _0x5e92();}(function(_0x547325,_0x43dc98){const _0xb48a0b=_0x20e8,_0x512b9f=_0x547325();while(!![]){try{const _0x1de8c0=-parseInt(_0xb48a0b(0x216))/0x1+-parseInt(_0xb48a0b(0x1f5))/0x2+-parseInt(_0xb48a0b(0x1ea))/0x3*(-parseInt(_0xb48a0b(0x1ee))/0x4)+parseInt(_0xb48a0b(0x20f))/0x5*(-parseInt(_0xb48a0b(0x1e8))/0x6)+-parseInt(_0xb48a0b(0x194))/0x7*(-parseInt(_0xb48a0b(0x212))/0x8)+parseInt(_0xb48a0b(0x1d3))/0x9*(parseInt(_0xb48a0b(0x22a))/0xa)+parseInt(_0xb48a0b(0x222))/0xb;if(_0x1de8c0===_0x43dc98)break;else _0x512b9f['push'](_0x512b9f['shift']());}catch(_0x17dd68){_0x512b9f['push'](_0x512b9f['shift']());}}}(_0x5e92,0x81e69));var T=Object['defineProperty'],U=(_0x549e49,_0x5b6245,_0x19334b)=>_0x5b6245 in _0x549e49?T(_0x549e49,_0x5b6245,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19334b}):_0x549e49[_0x5b6245]=_0x19334b,_=(_0x6169f9,_0x5351c7,_0x2392b7)=>U(_0x6169f9,typeof _0x5351c7!=_0x526036(0x171)?_0x5351c7+'':_0x5351c7,_0x2392b7);Object[_0x526036(0x1ce)](exports,Symbol[_0x526036(0x206)],{'value':_0x526036(0x172)});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:_0x454848,..._0x367e0e}){const _0x1ebc69=_0x526036,{icon:_0xa058bf,id:_0x5a1179,className:_0x1f730f,extend:_0x2edaaf,..._0x3cfdf6}=_0x367e0e,_0x4e2c81=(_0x1ebc69(0x1c2)+_0x5a1179+'\x20'+(_0x1f730f||''))[_0x1ebc69(0x1de)](),_0x537bd6=v[_0x1ebc69(0x231)]('_'+H());return j(_0xa058bf,''+_0x5a1179,{'defIds':_0xa058bf[_0x1ebc69(0x22d)],'idSuffix':_0x537bd6[_0x1ebc69(0x176)]},{'ref':_0x454848,'className':_0x4e2c81,..._0x3cfdf6},_0x2edaaf);}function j(_0x40000d,_0x2c480e,_0x2547e9,_0x342daa,_0x3880ef){const _0x5c6777=_0x526036;return v[_0x5c6777(0x1d4)](_0x40000d[_0x5c6777(0x1a5)],{'key':_0x2c480e,...y(_0x40000d,_0x2547e9,_0x3880ef),..._0x342daa},(F(_0x40000d,_0x2547e9)[_0x5c6777(0x19e)]||[])[_0x5c6777(0x22c)]((_0x125668,_0x5924db)=>j(_0x125668,_0x2c480e+'-'+_0x40000d[_0x5c6777(0x1a5)]+'-'+_0x5924db,_0x2547e9,void 0x0,_0x3880ef)));}function y(_0x20de8b,_0xef55d3,_0x59e643){const _0x316434=_0x526036,_0x60ab8a={..._0x20de8b['attrs']};_0x59e643!=null&&_0x59e643[_0x316434(0x1d8)]&&_0x60ab8a[_0x316434(0x187)]===_0x316434(0x1d8)&&(_0x60ab8a[_0x316434(0x187)]=_0x59e643['colorChannel1']),_0x20de8b[_0x316434(0x1a5)]===_0x316434(0x1dc)&&_0x60ab8a['id']&&(_0x60ab8a['id']=_0x60ab8a['id']+_0xef55d3[_0x316434(0x184)]),Object[_0x316434(0x17e)](_0x60ab8a)['forEach'](([_0x4c4e85,_0x3be627])=>{const _0x460600=_0x316434;_0x4c4e85===_0x460600(0x1dc)&&typeof _0x3be627=='string'&&(_0x60ab8a[_0x4c4e85]=_0x3be627['replace'](/url\(#(.*)\)/,_0x460600(0x169)+_0xef55d3[_0x460600(0x184)]+')'));});const {defIds:_0x3591d8}=_0xef55d3;return!_0x3591d8||_0x3591d8[_0x316434(0x225)]===0x0||(_0x20de8b[_0x316434(0x1a5)]==='use'&&_0x60ab8a['xlink:href']&&(_0x60ab8a[_0x316434(0x220)]=_0x60ab8a[_0x316434(0x220)]+_0xef55d3[_0x316434(0x184)]),Object[_0x316434(0x17e)](_0x60ab8a)[_0x316434(0x1e0)](([_0x4be060,_0x32f5cc])=>{const _0x43047b=_0x316434;typeof _0x32f5cc==_0x43047b(0x205)&&(_0x60ab8a[_0x4be060]=_0x32f5cc[_0x43047b(0x21f)](/url\(#(.*)\)/,_0x43047b(0x169)+_0xef55d3[_0x43047b(0x184)]+')'));})),_0x60ab8a;}function F(_0x4e8236,_0x23b7b2){const _0x1bd695=_0x526036;var _0x4d2cf0;const {defIds:_0xf272e7}=_0x23b7b2;return!_0xf272e7||_0xf272e7[_0x1bd695(0x225)]===0x0?_0x4e8236:_0x4e8236[_0x1bd695(0x1a5)]===_0x1bd695(0x21e)&&((_0x4d2cf0=_0x4e8236['children'])!=null&&_0x4d2cf0[_0x1bd695(0x225)])?{..._0x4e8236,'children':_0x4e8236['children']['map'](_0x3c63ce=>typeof _0x3c63ce[_0x1bd695(0x1a2)]['id']=='string'&&_0xf272e7&&_0xf272e7[_0x1bd695(0x1a8)](_0x3c63ce[_0x1bd695(0x1a2)]['id'])?{..._0x3c63ce,'attrs':{..._0x3c63ce[_0x1bd695(0x1a2)],'id':_0x3c63ce[_0x1bd695(0x1a2)]['id']+_0x23b7b2[_0x1bd695(0x184)]}}:_0x3c63ce)}:_0x4e8236;}function H(){const _0x188a7a=_0x526036;return Math[_0x188a7a(0x226)]()[_0x188a7a(0x188)](0x24)[_0x188a7a(0x203)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':_0x526036(0x189),'attrs':{'xmlns':_0x526036(0x20d),'fill':_0x526036(0x18c),'viewBox':_0x526036(0x1e6),'width':'1em','height':_0x526036(0x208)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x526036(0x173)}},{'tag':_0x526036(0x20c),'attrs':{'fill':_0x526036(0x1ca),'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':'evenodd'}}]},R=v[_0x526036(0x1cf)](function(_0x571e3c,_0x22fae8){const _0x193941=_0x526036;return v[_0x193941(0x1d4)](x,Object[_0x193941(0x1d6)]({},_0x571e3c,{'id':_0x193941(0x1fc),'ref':_0x22fae8,'icon':V}));});R['displayName']=_0x526036(0x1e4);class E extends o[_0x526036(0x17f)]{constructor(){const _0x3854f9=_0x526036;super(...arguments),_(this,_0x3854f9(0x1ad),new Set()),_(this,_0x3854f9(0x1bb),new Set());}['registerSharedOperation'](_0x3b0c98){const _0x32cf77=_0x526036;return this[_0x32cf77(0x1ad)][_0x32cf77(0x1bc)](_0x3b0c98),o['toDisposable'](()=>this[_0x32cf77(0x1ad)][_0x32cf77(0x181)](_0x3b0c98));}[_0x526036(0x177)](_0x17c0bd){const _0x576fd1=_0x526036;return this[_0x576fd1(0x1bb)][_0x576fd1(0x1bc)](_0x17c0bd),o['toDisposable'](()=>this[_0x576fd1(0x1bb)][_0x576fd1(0x181)](_0x17c0bd));}[_0x526036(0x1ec)](_0x7055b0){const _0x4f1a58=_0x526036;return this[_0x4f1a58(0x1ad)][_0x4f1a58(0x191)](_0x7055b0);}[_0x526036(0x1c3)](_0x21adb1){const _0x475a23=_0x526036;return Array['from'](this['_reporters'])[_0x475a23(0x22c)](_0x3a68b6=>_0x3a68b6(_0x21adb1));}}var M=Object[_0x526036(0x21d)],P=(_0x489f7d,_0x4080a5,_0x3e602e,_0x55d75d)=>{const _0x3135da=_0x526036;for(var _0x4a4f94=_0x55d75d>0x1?void 0x0:_0x55d75d?M(_0x4080a5,_0x3e602e):_0x4080a5,_0x5eca13=_0x489f7d[_0x3135da(0x225)]-0x1,_0x581c38;_0x5eca13>=0x0;_0x5eca13--)(_0x581c38=_0x489f7d[_0x5eca13])&&(_0x4a4f94=_0x581c38(_0x4a4f94)||_0x4a4f94);return _0x4a4f94;},S=(_0x3f792e,_0x2aad04)=>(_0x2e064b,_0x5ee46f)=>_0x2aad04(_0x2e064b,_0x5ee46f,_0x3f792e);exports['LiveShareController']=class extends o[_0x526036(0x1b5)]{constructor(_0x9c0a5d,_0x5f2ece,_0x403e26){const _0x3d5b28=_0x526036;super(),_(this,_0x3d5b28(0x19f),new Map()),(this[_0x3d5b28(0x196)]=_0x9c0a5d,this['_injector']=_0x5f2ece,this[_0x3d5b28(0x1f6)]=_0x403e26,this[_0x3d5b28(0x198)]());}async[_0x526036(0x17c)](_0x5d0177){const _0x1e9490=_0x526036;return this[_0x1e9490(0x19f)][_0x1e9490(0x191)](_0x5d0177)||await this[_0x1e9490(0x17d)](_0x5d0177),this[_0x1e9490(0x19f)][_0x1e9490(0x211)](_0x5d0177);}['getLiveShareCoordinatorSync'](_0x2a1219){const _0x109927=_0x526036;var _0x503436;return(_0x503436=this[_0x109927(0x19f)][_0x109927(0x211)](_0x2a1219))!=null?_0x503436:null;}[_0x526036(0x198)](){const _0x409dcb=_0x526036;this[_0x409dcb(0x196)][_0x409dcb(0x201)](o[_0x409dcb(0x1b9)][_0x409dcb(0x16a)])['pipe'](I[_0x409dcb(0x233)](this[_0x409dcb(0x20b)]))['subscribe'](async _0x8d7685=>{const _0x1e1ccb=_0x409dcb,_0x26d5cb=_0x8d7685[_0x1e1ccb(0x1f3)]();this[_0x1e1ccb(0x19f)][_0x1e1ccb(0x191)](_0x26d5cb)||this['_startLiveShareCoordinator'](_0x26d5cb);}),this['_univerInstanceService'][_0x409dcb(0x1cb)](o[_0x409dcb(0x1b9)]['UNIVER_SHEET'])[_0x409dcb(0x227)](I[_0x409dcb(0x233)](this[_0x409dcb(0x20b)]))[_0x409dcb(0x197)](_0x1a830c=>{const _0x5327d7=_0x409dcb,_0x50159d=_0x1a830c[_0x5327d7(0x1f3)](),_0x488c48=this[_0x5327d7(0x19f)][_0x5327d7(0x211)](_0x50159d);_0x488c48==null||_0x488c48[_0x5327d7(0x1e9)]();});}async[_0x526036(0x17d)](_0x38a62e){const _0x5c5b16=_0x526036,_0x4a00fc=await this[_0x5c5b16(0x1f6)][_0x5c5b16(0x1a1)](_0x38a62e),_0x39fec0=this[_0x5c5b16(0x1cd)][_0x5c5b16(0x18b)](exports['LiveShareCoordinator'],_0x38a62e,_0x4a00fc);return _0x39fec0['init'](),this[_0x5c5b16(0x19f)]['set'](_0x38a62e,_0x39fec0),_0x39fec0;}},exports[_0x526036(0x174)]=P([S(0x0,o[_0x526036(0x1ff)]),S(0x1,o[_0x526036(0x1b3)](o['Injector'])),S(0x2,o[_0x526036(0x1b3)](b[_0x526036(0x1bf)]))],exports['LiveShareController']);var u=(_0x3a5822=>(_0x3a5822[_0x526036(0x1d5)]=_0x526036(0x1b4),_0x3a5822[_0x526036(0x1fe)]=_0x526036(0x1a6),_0x3a5822[_0x526036(0x193)]=_0x526036(0x1b8),_0x3a5822[_0x526036(0x180)]=_0x526036(0x186),_0x3a5822[_0x526036(0x190)]=_0x526036(0x1ac),_0x3a5822))(u||{});const k=_0x526036(0x1d2),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x526036(0x1b5)]{constructor(_0x81d7ae,_0x2fdb29,_0x5784bb,_0x53dcb0,_0x58c700){const _0x59b344=_0x526036;super(),_(this,'_status$',new O[(_0x59b344(0x1c6))](_0x59b344(0x1a6))),_(this,'status$',this[_0x59b344(0x1d0)][_0x59b344(0x1df)]()),_(this,_0x59b344(0x198),!0x1),_(this,_0x59b344(0x18e),null),_(this,_0x59b344(0x1ef),null),(this[_0x59b344(0x170)]=_0x81d7ae,this[_0x59b344(0x21a)]=_0x2fdb29,this[_0x59b344(0x1fb)]=_0x5784bb,this[_0x59b344(0x228)]=_0x53dcb0,this[_0x59b344(0x1fa)]=_0x58c700);}get['_status'](){const _0x2617cc=_0x526036;return this['_status$'][_0x2617cc(0x221)]();}[_0x526036(0x1e9)](){const _0x1a8010=_0x526036;var _0x5ae805;(_0x5ae805=this[_0x1a8010(0x18e)])==null||_0x5ae805[_0x1a8010(0x1e9)](),this[_0x1a8010(0x1d0)][_0x1a8010(0x1a9)](_0x1a8010(0x1a6)),this[_0x1a8010(0x1d0)][_0x1a8010(0x16d)]();}['getStatus'](){const _0x2b2174=_0x526036;return this[_0x2b2174(0x1dd)];}[_0x526036(0x192)](){const _0x2b5129=_0x526036;this[_0x2b5129(0x198)]||(this[_0x2b5129(0x198)]=!0x0,this[_0x2b5129(0x21a)][_0x2b5129(0x1d7)][_0x2b5129(0x227)](I[_0x2b5129(0x233)](this[_0x2b5129(0x20b)]))['subscribe'](_0x17bdf5=>{const _0x58c999=_0x2b5129;switch(_0x17bdf5){case b[_0x58c999(0x1fd)][_0x58c999(0x1d5)]:this[_0x58c999(0x1a4)]();break;case b[_0x58c999(0x1fd)][_0x58c999(0x20e)]:this['_handleOnline']();break;}}),this[_0x2b5129(0x21a)][_0x2b5129(0x213)][_0x2b5129(0x227)](I[_0x2b5129(0x233)](this[_0x2b5129(0x20b)]))['subscribe'](_0x225faf=>{const _0x37987e=_0x2b5129,{eventID:_0x539828}=_0x225faf;switch(_0x539828){case d['CollaborationEvent'][_0x37987e(0x16b)]:this['_handleNewHost'](_0x225faf);break;case d[_0x37987e(0x16f)][_0x37987e(0x21c)]:this['_handleOperation'](_0x225faf);break;case d['CollaborationEvent'][_0x37987e(0x200)]:this['_handleTerminate']();break;case d[_0x37987e(0x16f)]['NEW_CHANGESETS']:this[_0x37987e(0x1db)](_0x225faf);break;}}));}['tryStartPresenting'](){const _0x5b5fc3=_0x526036;this[_0x5b5fc3(0x21a)][_0x5b5fc3(0x22f)]({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x5b5fc3(0x170)],'userID':this['_collabSession'][_0x5b5fc3(0x183)]()}},this[_0x5b5fc3(0x170)]);}[_0x526036(0x209)](){const _0x1fa2a9=_0x526036;this['_status']===_0x1fa2a9(0x1ac)&&(this[_0x1fa2a9(0x1d0)][_0x1fa2a9(0x1a9)](_0x1fa2a9(0x1a6)),this[_0x1fa2a9(0x21a)][_0x1fa2a9(0x22f)]({'eventID':d['CollaborationEvent'][_0x1fa2a9(0x200)],'data':{'unitID':this['_unitID']}},this[_0x1fa2a9(0x170)]));}['startFollowing'](){const _0x60113e=_0x526036;this[_0x60113e(0x1dd)]===_0x60113e(0x186)&&(this[_0x60113e(0x1d0)][_0x60113e(0x1a9)](_0x60113e(0x1b8)),this[_0x60113e(0x16c)]());}['stopFollowing'](){const _0x306563=_0x526036;this[_0x306563(0x1dd)]===_0x306563(0x1b8)&&this[_0x306563(0x1ae)]();}[_0x526036(0x1f2)](_0x7298f4){const _0x4e6c6b=_0x526036,{presenter:_0x26b368}=_0x7298f4[_0x4e6c6b(0x218)],_0x163652=this[_0x4e6c6b(0x21a)][_0x4e6c6b(0x183)]();this[_0x4e6c6b(0x1ef)]=_0x26b368,_0x26b368===_0x163652?(this[_0x4e6c6b(0x1ae)](),this[_0x4e6c6b(0x1f9)]()):this[_0x4e6c6b(0x1dd)]!=='not-following'&&(this[_0x4e6c6b(0x20a)](),this[_0x4e6c6b(0x16c)]());}[_0x526036(0x1c9)](){const _0x128a78=_0x526036,_0x5e13c8={'eventID':d[_0x128a78(0x16f)][_0x128a78(0x1e7)]};this[_0x128a78(0x21a)][_0x128a78(0x22f)](_0x5e13c8,this[_0x128a78(0x170)]);}['_handleTerminate'](){const _0x2a57fd=_0x526036;this[_0x2a57fd(0x1ef)]=null,this[_0x2a57fd(0x1dd)]!==_0x2a57fd(0x1ac)&&this[_0x2a57fd(0x1c5)]();}[_0x526036(0x1db)](_0x4f7597){const _0x56ffab=_0x526036;if(this['_status']===_0x56ffab(0x1b8)&&this[_0x56ffab(0x1ef)]===_0x4f7597[_0x56ffab(0x218)]['memberID']){const _0x200c75=d['parseProtocolChangeset'](_0x4f7597['data'])[_0x56ffab(0x1e5)][_0x56ffab(0x1c4)]()['find'](_0x4b9c8f=>_0x4b9c8f['id']===C['InsertSheetMutation']['id']);if(_0x200c75){const _0x33d2da=_0x200c75['params'][_0x56ffab(0x185)],_0x2162d5=_0x200c75[_0x56ffab(0x22b)]['sheet']['id'];setTimeout(()=>{const _0x2c91bb=_0x56ffab;this[_0x2c91bb(0x1fa)][_0x2c91bb(0x1ed)](C[_0x2c91bb(0x1a0)]['id'],{'unitId':_0x33d2da,'subUnitId':_0x2162d5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x34788d=_0x526036;this[_0x34788d(0x1d0)][_0x34788d(0x1a9)](_0x34788d(0x1ac));const _0x2fc768=new Map(),_0xbb1713=this[_0x34788d(0x18e)]=new o[(_0x34788d(0x1ab))]();_0xbb1713[_0x34788d(0x1bc)](o['toDisposable'](()=>{const _0x31c84e=_0x34788d;_0x2fc768[_0x31c84e(0x1e0)](_0x446e9c=>_0x446e9c['complete']()),_0x2fc768['clear']();})),_0xbb1713[_0x34788d(0x1bc)](this[_0x34788d(0x1fa)][_0x34788d(0x1c7)](_0x46ecb5=>{const _0x4ada15=_0x34788d;var _0x1950d5;if(_0x46ecb5[_0x4ada15(0x1bd)]!==o['CommandType']['OPERATION']||!this[_0x4ada15(0x228)][_0x4ada15(0x1ec)](_0x46ecb5['id']))return;const {id:_0x3322d8}=_0x46ecb5;let _0x1a832a;_0x2fc768[_0x4ada15(0x191)](_0x3322d8)?_0x1a832a=_0x2fc768[_0x4ada15(0x211)](_0x3322d8):(_0x1a832a=new O[(_0x4ada15(0x1be))](),_0x2fc768['set'](_0x3322d8,_0x1a832a),_0x1a832a[_0x4ada15(0x227)](I[_0x4ada15(0x16e)]((_0x1950d5=this[_0x4ada15(0x1fb)][_0x4ada15(0x17b)](k))!=null?_0x1950d5:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ada15(0x197)](_0x43a239=>{const _0x20feb1=_0x4ada15;this[_0x20feb1(0x21a)]['send']({'eventID':d['CollaborationEvent'][_0x20feb1(0x21c)],'data':{'unitID':this[_0x20feb1(0x170)],'operations':{[_0x43a239['id']]:{'id':_0x43a239['id'],'params':JSON['stringify'](_0x43a239[_0x20feb1(0x22b)])}}}},this[_0x20feb1(0x170)]);})),_0x1a832a['next'](_0x46ecb5);})),this[_0x34788d(0x228)][_0x34788d(0x1c3)](this[_0x34788d(0x170)])['forEach'](_0x2fa0c5=>this[_0x34788d(0x21a)][_0x34788d(0x22f)]({'eventID':d[_0x34788d(0x16f)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2fa0c5['id']]:{'id':_0x2fa0c5['id'],'params':JSON['stringify'](_0x2fa0c5[_0x34788d(0x22b)])}}}},this[_0x34788d(0x170)]));}[_0x526036(0x20a)](){const _0x5509bb=_0x526036;var _0x5dcfc6;this[_0x5509bb(0x1d0)]['next'](_0x5509bb(0x1a6)),(_0x5dcfc6=this[_0x5509bb(0x18e)])==null||_0x5dcfc6['dispose'](),this['_commandDisposable']=null;}[_0x526036(0x16c)](){const _0x2f2a59=_0x526036;var _0x226313;(_0x226313=this[_0x2f2a59(0x18e)])==null||_0x226313[_0x2f2a59(0x1e9)](),this['_status$'][_0x2f2a59(0x1a9)](_0x2f2a59(0x1b8));}[_0x526036(0x1c5)](){const _0x260455=_0x526036;var _0x463ea4;this[_0x260455(0x1d0)][_0x260455(0x1a9)](_0x260455(0x1a6)),(_0x463ea4=this[_0x260455(0x18e)])==null||_0x463ea4[_0x260455(0x1e9)](),this['_commandDisposable']=null;}[_0x526036(0x1ae)](){const _0x235ac6=_0x526036;var _0x27c8b0;this[_0x235ac6(0x1d0)][_0x235ac6(0x1a9)](_0x235ac6(0x186)),(_0x27c8b0=this['_commandDisposable'])==null||_0x27c8b0[_0x235ac6(0x1e9)]();}[_0x526036(0x229)](_0x200f82){const _0x1c9893=_0x526036;if([_0x1c9893(0x1ac),_0x1c9893(0x186),'offline'][_0x1c9893(0x1a8)](this[_0x1c9893(0x1dd)])||!_0x200f82[_0x1c9893(0x218)][_0x1c9893(0x1da)]||_0x200f82[_0x1c9893(0x218)][_0x1c9893(0x1da)]===this[_0x1c9893(0x21a)][_0x1c9893(0x183)]())return;this[_0x1c9893(0x1dd)]===_0x1c9893(0x1a6)&&this[_0x1c9893(0x16c)]();const _0x63c23a=_0x200f82[_0x1c9893(0x218)][_0x1c9893(0x195)];Object['values'](_0x63c23a)['forEach'](_0x459838=>{const _0x2fdecc=_0x1c9893;this[_0x2fdecc(0x1fa)][_0x2fdecc(0x1ed)](_0x459838['id'],_0x459838[_0x2fdecc(0x22b)]?JSON[_0x2fdecc(0x230)](_0x459838[_0x2fdecc(0x22b)]):null,{'fromCollab':!0x0});});}[_0x526036(0x1a4)](){const _0x10c2c9=_0x526036;var _0x5a99c3;this[_0x10c2c9(0x1d0)][_0x10c2c9(0x1a9)](_0x10c2c9(0x1b4)),(_0x5a99c3=this[_0x10c2c9(0x18e)])==null||_0x5a99c3[_0x10c2c9(0x1e9)]();}[_0x526036(0x202)](){const _0xc2bbf=_0x526036;this[_0xc2bbf(0x1d0)]['next']('idle'),this['_fetchOperations']();}},exports[_0x526036(0x1f1)]=P([S(0x2,o['IConfigService']),S(0x3,o['Inject'](E)),S(0x4,o[_0x526036(0x1d1)])],exports[_0x526036(0x1f1)]);function $(){const _0x3e982b=_0x526036,_0x31ba79=p['useDependency'](exports[_0x3e982b(0x174)]),_0x16d944=p[_0x3e982b(0x1af)](o[_0x3e982b(0x1ff)]),_0x75132c=p[_0x3e982b(0x179)](()=>_0x16d944['getCurrentTypeOfUnit$'](o[_0x3e982b(0x1b9)][_0x3e982b(0x16a)]),void 0x0,!0x1,[]),[_0x41405a,_0x1211a6]=v[_0x3e982b(0x1b7)](null),[_0x172265,_0x5e6b18]=v[_0x3e982b(0x1b7)](u[_0x3e982b(0x1fe)]),_0x19a7fe=v[_0x3e982b(0x231)](null);return v[_0x3e982b(0x1f0)](()=>(_0x75132c&&_0x31ba79[_0x3e982b(0x17c)](_0x75132c[_0x3e982b(0x1f3)]())['then'](_0x121136=>{const _0x46ada4=_0x3e982b;_0x1211a6(_0x121136),_0x19a7fe[_0x46ada4(0x176)]=_0x121136[_0x46ada4(0x199)][_0x46ada4(0x197)](_0x561767=>{_0x5e6b18(_0x561767);});}),()=>{const _0x31ac38=_0x3e982b;var _0x6bc10f;(_0x6bc10f=_0x19a7fe['current'])==null||_0x6bc10f['unsubscribe'](),_0x19a7fe[_0x31ac38(0x176)]=null;}),[_0x75132c,_0x31ba79]),_0x41405a?l[_0x3e982b(0x1e2)](f[_0x3e982b(0x18f)],{'align':_0x3e982b(0x175),'disabled':_0x172265===u[_0x3e982b(0x1d5)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x3e982b(0x1e2)](W,{'status':_0x172265,'coordinator':_0x41405a}),'children':l[_0x3e982b(0x1e2)]('button',{'className':f[_0x3e982b(0x215)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x172265===u[_0x3e982b(0x1d5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x172265!==u['OFFLINE']}),'type':_0x3e982b(0x1b1),'children':l[_0x3e982b(0x1e2)](R,{'className':'univer-size-4'})})}):null;}function W(_0x59c69a){const _0x18f662=_0x526036,{status:_0x490cc4,coordinator:_0x42f92b}=_0x59c69a;switch(_0x490cc4){case u[_0x18f662(0x1fe)]:return l[_0x18f662(0x1e2)](G,{'coordinator':_0x42f92b});case u[_0x18f662(0x193)]:return l[_0x18f662(0x1e2)](B,{'coordinator':_0x42f92b});case u[_0x18f662(0x180)]:return l[_0x18f662(0x1e2)](Y,{'coordinator':_0x42f92b});case u[_0x18f662(0x1d5)]:return l['jsx'](J,{});case u[_0x18f662(0x190)]:return l[_0x18f662(0x1e2)](Z,{'coordinator':_0x42f92b});default:return null;}}function G(_0x745c58){const _0x2f083d=_0x526036,{coordinator:_0x1ada63}=_0x745c58;return l[_0x2f083d(0x1c0)](l['Fragment'],{'children':[l['jsx'](_0x2f083d(0x21b),{'className':_0x2f083d(0x18d),'children':'Present\x20this\x20document'}),l[_0x2f083d(0x1e2)](f[_0x2f083d(0x178)],{'onClick':()=>_0x1ada63['tryStartPresenting'](),'children':_0x2f083d(0x19b)})]});}function B(_0x3abca2){const _0x1d1c6a=_0x526036,{coordinator:_0x1be69f}=_0x3abca2;return l[_0x1d1c6a(0x1c0)](l[_0x1d1c6a(0x1eb)],{'children':[l[_0x1d1c6a(0x1e2)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x1d1c6a(0x1e2)](f[_0x1d1c6a(0x178)],{'onClick':()=>_0x1be69f['stopFollowing'](),'children':_0x1d1c6a(0x210)})]});}function Y(_0x1e8f94){const _0x4b0f10=_0x526036,{coordinator:_0x20b3d0}=_0x1e8f94;return l[_0x4b0f10(0x1c0)](l[_0x4b0f10(0x1eb)],{'children':[l[_0x4b0f10(0x1e2)](_0x4b0f10(0x21b),{'className':_0x4b0f10(0x18d),'children':_0x4b0f10(0x1b6)}),l['jsx'](f['Button'],{'variant':'text','onClick':()=>_0x20b3d0[_0x4b0f10(0x22e)](),'children':'Start\x20following'})]});}function Z(_0x149f5f){const _0x1fa039=_0x526036,{coordinator:_0x3ec2df}=_0x149f5f;return l[_0x1fa039(0x1c0)](l[_0x1fa039(0x1eb)],{'children':[l[_0x1fa039(0x1e2)](_0x1fa039(0x21b),{'className':_0x1fa039(0x18d),'children':_0x1fa039(0x1ba)}),l[_0x1fa039(0x1e2)](f[_0x1fa039(0x178)],{'variant':_0x1fa039(0x17a),'onClick':()=>_0x3ec2df[_0x1fa039(0x209)](),'children':'Stop\x20presenting'})]});}function J(){const _0x273486=_0x526036;return l[_0x273486(0x1e2)](l[_0x273486(0x1eb)],{'children':_0x273486(0x18a)});}var K=Object[_0x526036(0x21d)],z=(_0xaa2a6c,_0x5112cc,_0x14cc21,_0xebfeb)=>{const _0x3d8e9d=_0x526036;for(var _0x3200e1=_0xebfeb>0x1?void 0x0:_0xebfeb?K(_0x5112cc,_0x14cc21):_0x5112cc,_0x517c01=_0xaa2a6c[_0x3d8e9d(0x225)]-0x1,_0x3e9a46;_0x517c01>=0x0;_0x517c01--)(_0x3e9a46=_0xaa2a6c[_0x517c01])&&(_0x3200e1=_0x3e9a46(_0x3200e1)||_0x3200e1);return _0x3200e1;},L=(_0x19969d,_0x5b8c5d)=>(_0x4575f7,_0x234b24)=>_0x5b8c5d(_0x4575f7,_0x234b24,_0x19969d);exports[_0x526036(0x1f7)]=class extends o['Disposable']{constructor(_0x1c3186,_0x150fe3){const _0xbf2000=_0x526036;super(),this[_0xbf2000(0x1cd)]=_0x1c3186,this[_0xbf2000(0x1aa)]=_0x150fe3,this[_0xbf2000(0x219)]();}[_0x526036(0x219)](){const _0x148134=_0x526036;this[_0x148134(0x1c1)](this[_0x148134(0x1aa)]['registerComponent'](p['BuiltInUIPart'][_0x148134(0x1cc)],()=>p['connectInjector']($,this[_0x148134(0x1cd)])));}},exports['DesktopLiveShareController']=z([L(0x0,o['Inject'](o[_0x526036(0x1b0)])),L(0x1,p[_0x526036(0x19d)])],exports['DesktopLiveShareController']);function _0x20e8(_0x199ea9,_0x3a160f){_0x199ea9=_0x199ea9-0x169;const _0x5e9278=_0x5e92();let _0x20e812=_0x5e9278[_0x199ea9];return _0x20e812;}const Q='live-share.config',w={};var X=Object[_0x526036(0x21d)],ee=(_0x5cc606,_0x56a4cc,_0x21cd94,_0x33b5ce)=>{const _0x125832=_0x526036;for(var _0x32c399=_0x33b5ce>0x1?void 0x0:_0x33b5ce?X(_0x56a4cc,_0x21cd94):_0x56a4cc,_0x1d12dc=_0x5cc606[_0x125832(0x225)]-0x1,_0xf1c481;_0x1d12dc>=0x0;_0x1d12dc--)(_0xf1c481=_0x5cc606[_0x1d12dc])&&(_0x32c399=_0xf1c481(_0x32c399)||_0x32c399);return _0x32c399;},te=(_0x4b7e59,_0x23e4b3)=>(_0x3be4b3,_0x41187d)=>_0x23e4b3(_0x3be4b3,_0x41187d,_0x4b7e59);let m=class extends o[_0x526036(0x17f)]{constructor(_0x4aa2b0){const _0x82d8b3=_0x526036;super(),this[_0x82d8b3(0x228)]=_0x4aa2b0,this[_0x82d8b3(0x198)]();}['_init'](){const _0x3dc30b=_0x526036;[D[_0x3dc30b(0x1a7)]['id'],D[_0x3dc30b(0x19a)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x119226=>{const _0x5802b5=_0x3dc30b;this['disposeWithMe'](this[_0x5802b5(0x228)][_0x5802b5(0x1f4)](_0x119226));});}};m=ee([te(0x0,o[_0x526036(0x1b3)](E))],m);var ie=Object['defineProperty'],se=Object[_0x526036(0x21d)],ne=(_0xbbfe96,_0x5d03c4,_0x130789)=>_0x5d03c4 in _0xbbfe96?ie(_0xbbfe96,_0x5d03c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x130789}):_0xbbfe96[_0x5d03c4]=_0x130789,re=(_0x49ee8d,_0x419a63,_0x44f550,_0x2903e4)=>{const _0x1d6771=_0x526036;for(var _0x38bff9=_0x2903e4>0x1?void 0x0:_0x2903e4?se(_0x419a63,_0x44f550):_0x419a63,_0x41f827=_0x49ee8d[_0x1d6771(0x225)]-0x1,_0x6f54af;_0x41f827>=0x0;_0x41f827--)(_0x6f54af=_0x49ee8d[_0x41f827])&&(_0x38bff9=_0x6f54af(_0x38bff9)||_0x38bff9);return _0x38bff9;},N=(_0x573718,_0x4eba6e)=>(_0x2603df,_0x621b2d)=>_0x4eba6e(_0x2603df,_0x621b2d,_0x573718),A=(_0x540245,_0x32d6c6,_0x1d052f)=>ne(_0x540245,typeof _0x32d6c6!=_0x526036(0x171)?_0x32d6c6+'':_0x32d6c6,_0x1d052f);const oe=_0x526036(0x19c);exports['UniverLiveSharePlugin']=class extends o[_0x526036(0x214)]{constructor(_0x910f4b=w,_0x3f4c77,_0x4d8c26){const _0x4638cd=_0x526036;super(),this[_0x4638cd(0x1b2)]=_0x910f4b,this[_0x4638cd(0x1cd)]=_0x3f4c77,this['_configService']=_0x4d8c26;const {..._0x158768}=o[_0x4638cd(0x232)]({},w,this[_0x4638cd(0x1b2)]);this[_0x4638cd(0x1fb)][_0x4638cd(0x223)](Q,_0x158768);}[_0x526036(0x204)](){const _0x6ba27=_0x526036;o[_0x6ba27(0x1e3)](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports[_0x6ba27(0x174)]],[m],[exports[_0x6ba27(0x1f7)]]],this[_0x6ba27(0x1b2)]['override'])),o['touchDependencies'](this[_0x6ba27(0x1cd)],[[m]]);}['onRendered'](){const _0xac9830=_0x526036;o['touchDependencies'](this[_0xac9830(0x1cd)],[[exports[_0xac9830(0x1f7)]]]);}},A(exports[_0x526036(0x217)],'type',o['UniverInstanceType'][_0x526036(0x224)]),A(exports[_0x526036(0x217)],_0x526036(0x1d9),oe),exports[_0x526036(0x217)]=re([o[_0x526036(0x207)](b[_0x526036(0x1c8)]),N(0x1,o['Inject'](o[_0x526036(0x1b0)])),N(0x2,o[_0x526036(0x1e1)])],exports[_0x526036(0x217)]),exports[_0x526036(0x1f8)]=$,exports[_0x526036(0x182)]=E,exports[_0x526036(0x1a3)]=u;
|
|
1
|
+
'use strict';const _0x1daa3d=_0x1b43;(function(_0x32fc0a,_0x3676c4){const _0x6352a6=_0x1b43,_0xe70471=_0x32fc0a();while(!![]){try{const _0xbb9797=parseInt(_0x6352a6(0x234))/0x1*(-parseInt(_0x6352a6(0x229))/0x2)+-parseInt(_0x6352a6(0x22c))/0x3+parseInt(_0x6352a6(0x280))/0x4+parseInt(_0x6352a6(0x21e))/0x5*(parseInt(_0x6352a6(0x256))/0x6)+-parseInt(_0x6352a6(0x1fe))/0x7*(parseInt(_0x6352a6(0x1b7))/0x8)+parseInt(_0x6352a6(0x1e7))/0x9*(-parseInt(_0x6352a6(0x251))/0xa)+parseInt(_0x6352a6(0x1df))/0xb*(parseInt(_0x6352a6(0x1fb))/0xc);if(_0xbb9797===_0x3676c4)break;else _0xe70471['push'](_0xe70471['shift']());}catch(_0x406d28){_0xe70471['push'](_0xe70471['shift']());}}}(_0x3530,0x79022));var T=Object[_0x1daa3d(0x247)],U=(_0x54b02b,_0x2d2c8e,_0x459b47)=>_0x2d2c8e in _0x54b02b?T(_0x54b02b,_0x2d2c8e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x459b47}):_0x54b02b[_0x2d2c8e]=_0x459b47,_=(_0x121fb6,_0x1ffa00,_0x7edfd9)=>U(_0x121fb6,typeof _0x1ffa00!=_0x1daa3d(0x1ff)?_0x1ffa00+'':_0x1ffa00,_0x7edfd9);Object[_0x1daa3d(0x247)](exports,Symbol[_0x1daa3d(0x1cb)],{'value':_0x1daa3d(0x1b2)});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:_0x631ab7,..._0x20eedb}){const _0x46001a=_0x1daa3d,{icon:_0x2c3766,id:_0x5e7920,className:_0xa85def,extend:_0x4606fd,..._0x547713}=_0x20eedb,_0x15f838=(_0x46001a(0x222)+_0x5e7920+'\x20'+(_0xa85def||''))['trim'](),_0x334a6c=v[_0x46001a(0x26a)]('_'+H());return j(_0x2c3766,''+_0x5e7920,{'defIds':_0x2c3766[_0x46001a(0x266)],'idSuffix':_0x334a6c[_0x46001a(0x1ce)]},{'ref':_0x631ab7,'className':_0x15f838,..._0x547713},_0x4606fd);}function j(_0x5a3e91,_0x387d17,_0x24ea6b,_0x47cf23,_0x10974f){const _0x160fcf=_0x1daa3d;return v[_0x160fcf(0x22a)](_0x5a3e91['tag'],{'key':_0x387d17,...y(_0x5a3e91,_0x24ea6b,_0x10974f),..._0x47cf23},(F(_0x5a3e91,_0x24ea6b)[_0x160fcf(0x1bb)]||[])['map']((_0x2850c9,_0x12e9cd)=>j(_0x2850c9,_0x387d17+'-'+_0x5a3e91[_0x160fcf(0x244)]+'-'+_0x12e9cd,_0x24ea6b,void 0x0,_0x10974f)));}function y(_0x46ea4c,_0x3a56da,_0x2874c5){const _0xe657ed=_0x1daa3d,_0xed837={..._0x46ea4c['attrs']};_0x2874c5!=null&&_0x2874c5[_0xe657ed(0x218)]&&_0xed837[_0xe657ed(0x249)]===_0xe657ed(0x218)&&(_0xed837[_0xe657ed(0x249)]=_0x2874c5['colorChannel1']),_0x46ea4c[_0xe657ed(0x244)]===_0xe657ed(0x1ae)&&_0xed837['id']&&(_0xed837['id']=_0xed837['id']+_0x3a56da[_0xe657ed(0x24d)]),Object[_0xe657ed(0x1d8)](_0xed837)[_0xe657ed(0x1fc)](([_0x5eb9a9,_0x37aa90])=>{const _0x452762=_0xe657ed;_0x5eb9a9===_0x452762(0x1ae)&&typeof _0x37aa90=='string'&&(_0xed837[_0x5eb9a9]=_0x37aa90['replace'](/url\(#(.*)\)/,_0x452762(0x278)+_0x3a56da[_0x452762(0x24d)]+')'));});const {defIds:_0x301715}=_0x3a56da;return!_0x301715||_0x301715[_0xe657ed(0x1bf)]===0x0||(_0x46ea4c[_0xe657ed(0x244)]==='use'&&_0xed837[_0xe657ed(0x271)]&&(_0xed837['xlink:href']=_0xed837[_0xe657ed(0x271)]+_0x3a56da[_0xe657ed(0x24d)]),Object[_0xe657ed(0x1d8)](_0xed837)[_0xe657ed(0x1fc)](([_0x3872c4,_0x48fd69])=>{const _0x3f5d13=_0xe657ed;typeof _0x48fd69==_0x3f5d13(0x25d)&&(_0xed837[_0x3872c4]=_0x48fd69['replace'](/url\(#(.*)\)/,_0x3f5d13(0x278)+_0x3a56da[_0x3f5d13(0x24d)]+')'));})),_0xed837;}function F(_0x3c244b,_0x3a453c){const _0x36624d=_0x1daa3d;var _0x301f58;const {defIds:_0x42a999}=_0x3a453c;return!_0x42a999||_0x42a999['length']===0x0?_0x3c244b:_0x3c244b[_0x36624d(0x244)]==='defs'&&((_0x301f58=_0x3c244b[_0x36624d(0x1bb)])!=null&&_0x301f58['length'])?{..._0x3c244b,'children':_0x3c244b['children']['map'](_0x33c27b=>typeof _0x33c27b[_0x36624d(0x236)]['id']==_0x36624d(0x25d)&&_0x42a999&&_0x42a999['includes'](_0x33c27b['attrs']['id'])?{..._0x33c27b,'attrs':{..._0x33c27b[_0x36624d(0x236)],'id':_0x33c27b['attrs']['id']+_0x3a453c[_0x36624d(0x24d)]}}:_0x33c27b)}:_0x3c244b;}function H(){const _0x3a134c=_0x1daa3d;return Math[_0x3a134c(0x21d)]()[_0x3a134c(0x21c)](0x24)[_0x3a134c(0x20d)](0x2,0x8);}x['displayName']=_0x1daa3d(0x210);const V={'tag':'svg','attrs':{'xmlns':_0x1daa3d(0x1ac),'fill':_0x1daa3d(0x1f7),'viewBox':_0x1daa3d(0x215),'width':_0x1daa3d(0x1f9),'height':_0x1daa3d(0x1f9)},'children':[{'tag':_0x1daa3d(0x217),'attrs':{'fill':_0x1daa3d(0x1b3),'d':_0x1daa3d(0x231)}},{'tag':_0x1daa3d(0x217),'attrs':{'fill':_0x1daa3d(0x1b3),'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':_0x1daa3d(0x1e5)}}]},R=v[_0x1daa3d(0x25c)](function(_0x11d5a3,_0x4e075e){const _0xfd7c16=_0x1daa3d;return v[_0xfd7c16(0x22a)](x,Object[_0xfd7c16(0x226)]({},_0x11d5a3,{'id':_0xfd7c16(0x262),'ref':_0x4e075e,'icon':V}));});R[_0x1daa3d(0x206)]=_0x1daa3d(0x26e);class E extends o[_0x1daa3d(0x208)]{constructor(){const _0x5102f8=_0x1daa3d;super(...arguments),_(this,_0x5102f8(0x23f),new Set()),_(this,'_reporters',new Set());}[_0x1daa3d(0x1ba)](_0x2e86fa){const _0x25ce89=_0x1daa3d;return this[_0x25ce89(0x23f)][_0x25ce89(0x254)](_0x2e86fa),o[_0x25ce89(0x1d0)](()=>this[_0x25ce89(0x23f)][_0x25ce89(0x250)](_0x2e86fa));}[_0x1daa3d(0x1da)](_0x2e348b){const _0x2ca9b3=_0x1daa3d;return this[_0x2ca9b3(0x1b4)][_0x2ca9b3(0x254)](_0x2e348b),o['toDisposable'](()=>this['_reporters'][_0x2ca9b3(0x250)](_0x2e348b));}[_0x1daa3d(0x1e0)](_0x39fedd){return this['_sharedOperations']['has'](_0x39fedd);}['getInitialStates'](_0x5b801f){const _0x357af4=_0x1daa3d;return Array[_0x357af4(0x203)](this['_reporters'])[_0x357af4(0x212)](_0x199b83=>_0x199b83(_0x5b801f));}}var M=Object[_0x1daa3d(0x27a)],P=(_0x1cee24,_0x47053c,_0x3a6435,_0x4d969d)=>{const _0x51c3f3=_0x1daa3d;for(var _0x122276=_0x4d969d>0x1?void 0x0:_0x4d969d?M(_0x47053c,_0x3a6435):_0x47053c,_0x3c99c0=_0x1cee24[_0x51c3f3(0x1bf)]-0x1,_0x16f471;_0x3c99c0>=0x0;_0x3c99c0--)(_0x16f471=_0x1cee24[_0x3c99c0])&&(_0x122276=_0x16f471(_0x122276)||_0x122276);return _0x122276;},S=(_0x4ecd8d,_0x474844)=>(_0x386854,_0x49eaee)=>_0x474844(_0x386854,_0x49eaee,_0x4ecd8d);exports[_0x1daa3d(0x259)]=class extends o[_0x1daa3d(0x1f2)]{constructor(_0x1c5598,_0x402992,_0xf2e07e){const _0xcc0cab=_0x1daa3d;super(),_(this,'_entities',new Map()),(this[_0xcc0cab(0x1d3)]=_0x1c5598,this['_injector']=_0x402992,this[_0xcc0cab(0x242)]=_0xf2e07e,this[_0xcc0cab(0x1d6)]());}async[_0x1daa3d(0x1ed)](_0x5e029){const _0x4ff4a0=_0x1daa3d;return this['_entities'][_0x4ff4a0(0x238)](_0x5e029)||await this[_0x4ff4a0(0x243)](_0x5e029),this[_0x4ff4a0(0x219)][_0x4ff4a0(0x23b)](_0x5e029);}[_0x1daa3d(0x1d4)](_0x2cc5a2){var _0x4ec603;return(_0x4ec603=this['_entities']['get'](_0x2cc5a2))!=null?_0x4ec603:null;}[_0x1daa3d(0x1d6)](){const _0x2083d9=_0x1daa3d;this[_0x2083d9(0x1d3)][_0x2083d9(0x1b6)](o[_0x2083d9(0x1fa)][_0x2083d9(0x1cc)])[_0x2083d9(0x22b)](I[_0x2083d9(0x1c8)](this[_0x2083d9(0x1a9)]))['subscribe'](async _0x5b13b5=>{const _0x263c8f=_0x2083d9,_0x31d1e2=_0x5b13b5['getUnitId']();this[_0x263c8f(0x219)]['has'](_0x31d1e2)||this['_startLiveShareCoordinator'](_0x31d1e2);}),this[_0x2083d9(0x1d3)][_0x2083d9(0x1c7)](o[_0x2083d9(0x1fa)][_0x2083d9(0x1cc)])[_0x2083d9(0x22b)](I[_0x2083d9(0x1c8)](this[_0x2083d9(0x1a9)]))[_0x2083d9(0x27f)](_0x37c35b=>{const _0x6dee5b=_0x2083d9,_0x2348fc=_0x37c35b[_0x6dee5b(0x260)](),_0x420578=this[_0x6dee5b(0x219)]['get'](_0x2348fc);_0x420578==null||_0x420578[_0x6dee5b(0x23a)]();});}async[_0x1daa3d(0x243)](_0x2c6e73){const _0x46612a=_0x1daa3d,_0x1ad15d=await this[_0x46612a(0x242)]['requireSession'](_0x2c6e73),_0x2728ad=this[_0x46612a(0x25e)]['createInstance'](exports[_0x46612a(0x224)],_0x2c6e73,_0x1ad15d);return _0x2728ad['init'](),this[_0x46612a(0x219)][_0x46612a(0x24c)](_0x2c6e73,_0x2728ad),_0x2728ad;}},exports[_0x1daa3d(0x259)]=P([S(0x0,o[_0x1daa3d(0x205)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o[_0x1daa3d(0x252)](b[_0x1daa3d(0x21b)]))],exports['LiveShareController']);var u=(_0x1a4b35=>(_0x1a4b35[_0x1daa3d(0x1fd)]=_0x1daa3d(0x1e3),_0x1a4b35['IDLE']=_0x1daa3d(0x25f),_0x1a4b35[_0x1daa3d(0x216)]='following',_0x1a4b35[_0x1daa3d(0x23d)]='not-following',_0x1a4b35[_0x1daa3d(0x1e6)]='presenting',_0x1a4b35))(u||{});const k=_0x1daa3d(0x1e8),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x1daa3d(0x1f2)]{constructor(_0x2816ad,_0x21ed51,_0x54e661,_0x40d008,_0x5b65b1){const _0x23ee11=_0x1daa3d;super(),_(this,_0x23ee11(0x273),new O[(_0x23ee11(0x25b))]('idle')),_(this,_0x23ee11(0x240),this[_0x23ee11(0x273)][_0x23ee11(0x239)]()),_(this,_0x23ee11(0x1d6),!0x1),_(this,_0x23ee11(0x230),null),_(this,_0x23ee11(0x1c3),null),(this[_0x23ee11(0x225)]=_0x2816ad,this['_collabSession']=_0x21ed51,this[_0x23ee11(0x1ca)]=_0x54e661,this[_0x23ee11(0x1aa)]=_0x40d008,this[_0x23ee11(0x246)]=_0x5b65b1);}get[_0x1daa3d(0x1d1)](){const _0x542f11=_0x1daa3d;return this[_0x542f11(0x273)][_0x542f11(0x255)]();}['dispose'](){const _0x23d467=_0x1daa3d;var _0x3c792d;(_0x3c792d=this[_0x23d467(0x230)])==null||_0x3c792d[_0x23d467(0x23a)](),this[_0x23d467(0x273)][_0x23d467(0x26d)]('idle'),this[_0x23d467(0x273)][_0x23d467(0x26c)]();}[_0x1daa3d(0x20f)](){const _0x513f18=_0x1daa3d;return this[_0x513f18(0x1d1)];}['init'](){const _0x5b8b57=_0x1daa3d;this['_init']||(this['_init']=!0x0,this[_0x5b8b57(0x207)][_0x5b8b57(0x1f5)][_0x5b8b57(0x22b)](I['takeUntil'](this['dispose$']))[_0x5b8b57(0x27f)](_0x117804=>{const _0x42fbd9=_0x5b8b57;switch(_0x117804){case b['SessionStatus'][_0x42fbd9(0x1fd)]:this['_handleOffline']();break;case b[_0x42fbd9(0x23e)]['ONLINE']:this[_0x42fbd9(0x265)]();break;}}),this[_0x5b8b57(0x207)][_0x5b8b57(0x1d2)][_0x5b8b57(0x22b)](I[_0x5b8b57(0x1c8)](this[_0x5b8b57(0x1a9)]))[_0x5b8b57(0x27f)](_0x194f72=>{const _0x40d9be=_0x5b8b57,{eventID:_0x487998}=_0x194f72;switch(_0x487998){case d[_0x40d9be(0x248)][_0x40d9be(0x241)]:this[_0x40d9be(0x1c2)](_0x194f72);break;case d[_0x40d9be(0x248)]['LIVESHARE_OPERATION']:this[_0x40d9be(0x221)](_0x194f72);break;case d[_0x40d9be(0x248)][_0x40d9be(0x20b)]:this[_0x40d9be(0x245)]();break;case d[_0x40d9be(0x248)][_0x40d9be(0x1dc)]:this['_handleNewChangeSets'](_0x194f72);break;}}));}[_0x1daa3d(0x20e)](){const _0x35b354=_0x1daa3d;this['_collabSession'][_0x35b354(0x1f8)]({'eventID':d[_0x35b354(0x248)][_0x35b354(0x1d9)],'data':{'unitID':this[_0x35b354(0x225)],'userID':this[_0x35b354(0x207)][_0x35b354(0x214)]()}},this[_0x35b354(0x225)]);}[_0x1daa3d(0x1f1)](){const _0x517ffa=_0x1daa3d;this[_0x517ffa(0x1d1)]==='presenting'&&(this[_0x517ffa(0x273)]['next'](_0x517ffa(0x25f)),this[_0x517ffa(0x207)][_0x517ffa(0x1f8)]({'eventID':d[_0x517ffa(0x248)][_0x517ffa(0x20b)],'data':{'unitID':this['_unitID']}},this[_0x517ffa(0x225)]));}[_0x1daa3d(0x20c)](){const _0xeb4ebd=_0x1daa3d;this[_0xeb4ebd(0x1d1)]===_0xeb4ebd(0x1eb)&&(this[_0xeb4ebd(0x273)][_0xeb4ebd(0x26d)](_0xeb4ebd(0x274)),this[_0xeb4ebd(0x232)]());}[_0x1daa3d(0x1f4)](){const _0x18c38d=_0x1daa3d;this['_status']===_0x18c38d(0x274)&&this[_0x18c38d(0x1ee)]();}[_0x1daa3d(0x1c2)](_0x3b4bff){const _0x5d0bdb=_0x1daa3d,{presenter:_0x476ddd}=_0x3b4bff[_0x5d0bdb(0x24a)],_0xdece9c=this[_0x5d0bdb(0x207)]['getMemberID']();this[_0x5d0bdb(0x1c3)]=_0x476ddd,_0x476ddd===_0xdece9c?(this['_stopFollowing'](),this[_0x5d0bdb(0x213)]()):this[_0x5d0bdb(0x1d1)]!=='not-following'&&(this[_0x5d0bdb(0x1c0)](),this[_0x5d0bdb(0x232)]());}['_fetchOperations'](){const _0x55ac15=_0x1daa3d,_0xfc7964={'eventID':d[_0x55ac15(0x248)][_0x55ac15(0x263)]};this['_collabSession'][_0x55ac15(0x1f8)](_0xfc7964,this[_0x55ac15(0x225)]);}['_handleTerminate'](){const _0x46593f=_0x1daa3d;this[_0x46593f(0x1c3)]=null,this[_0x46593f(0x1d1)]!==_0x46593f(0x235)&&this[_0x46593f(0x21f)]();}['_handleNewChangeSets'](_0x252e9d){const _0x32cb4f=_0x1daa3d;if(this[_0x32cb4f(0x1d1)]==='following'&&this[_0x32cb4f(0x1c3)]===_0x252e9d['data'][_0x32cb4f(0x279)]){const _0x58b110=d[_0x32cb4f(0x1c6)](_0x252e9d[_0x32cb4f(0x24a)])['mutations'][_0x32cb4f(0x202)]()['find'](_0x100410=>_0x100410['id']===C['InsertSheetMutation']['id']);if(_0x58b110){const _0x58ff63=_0x58b110[_0x32cb4f(0x1cd)]['unitId'],_0x433a75=_0x58b110[_0x32cb4f(0x1cd)]['sheet']['id'];setTimeout(()=>{const _0x36c0cc=_0x32cb4f;this[_0x36c0cc(0x246)][_0x36c0cc(0x1ad)](C[_0x36c0cc(0x237)]['id'],{'unitId':_0x58ff63,'subUnitId':_0x433a75},{'fromCollab':!0x0});});}}}[_0x1daa3d(0x213)](){const _0x393892=_0x1daa3d;this[_0x393892(0x273)][_0x393892(0x26d)](_0x393892(0x235));const _0x2e0407=new Map(),_0x35fe89=this[_0x393892(0x230)]=new o['DisposableCollection']();_0x35fe89[_0x393892(0x254)](o[_0x393892(0x1d0)](()=>{const _0x146bf0=_0x393892;_0x2e0407[_0x146bf0(0x1fc)](_0x1b5b82=>_0x1b5b82[_0x146bf0(0x26c)]()),_0x2e0407['clear']();})),_0x35fe89['add'](this['_commandService'][_0x393892(0x1c1)](_0xe8481d=>{const _0x545b76=_0x393892;var _0x2cfdb9;if(_0xe8481d[_0x545b76(0x27c)]!==o[_0x545b76(0x1e9)][_0x545b76(0x1de)]||!this[_0x545b76(0x1aa)][_0x545b76(0x1e0)](_0xe8481d['id']))return;const {id:_0x12e010}=_0xe8481d;let _0x4acaac;_0x2e0407[_0x545b76(0x238)](_0x12e010)?_0x4acaac=_0x2e0407[_0x545b76(0x23b)](_0x12e010):(_0x4acaac=new O[(_0x545b76(0x1c4))](),_0x2e0407[_0x545b76(0x24c)](_0x12e010,_0x4acaac),_0x4acaac[_0x545b76(0x22b)](I[_0x545b76(0x22f)]((_0x2cfdb9=this['_configService'][_0x545b76(0x20a)](k))!=null?_0x2cfdb9:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x545b76(0x27f)](_0x4d1dc8=>{const _0xeec4d6=_0x545b76;this[_0xeec4d6(0x207)]['send']({'eventID':d[_0xeec4d6(0x248)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xeec4d6(0x225)],'operations':{[_0x4d1dc8['id']]:{'id':_0x4d1dc8['id'],'params':JSON[_0xeec4d6(0x269)](_0x4d1dc8[_0xeec4d6(0x1cd)])}}}},this[_0xeec4d6(0x225)]);})),_0x4acaac[_0x545b76(0x26d)](_0xe8481d);})),this[_0x393892(0x1aa)][_0x393892(0x26b)](this[_0x393892(0x225)])[_0x393892(0x1fc)](_0x1be522=>this[_0x393892(0x207)][_0x393892(0x1f8)]({'eventID':d[_0x393892(0x248)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x393892(0x225)],'operations':{[_0x1be522['id']]:{'id':_0x1be522['id'],'params':JSON[_0x393892(0x269)](_0x1be522[_0x393892(0x1cd)])}}}},this[_0x393892(0x225)]));}['_stopPresenting'](){const _0x52bf8e=_0x1daa3d;var _0x4e6794;this[_0x52bf8e(0x273)]['next'](_0x52bf8e(0x25f)),(_0x4e6794=this[_0x52bf8e(0x230)])==null||_0x4e6794[_0x52bf8e(0x23a)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x6a13c6=_0x1daa3d;var _0x1020ae;(_0x1020ae=this[_0x6a13c6(0x230)])==null||_0x1020ae[_0x6a13c6(0x23a)](),this[_0x6a13c6(0x273)][_0x6a13c6(0x26d)]('following');}[_0x1daa3d(0x21f)](){const _0x5ac2a1=_0x1daa3d;var _0x4fa79d;this[_0x5ac2a1(0x273)]['next'](_0x5ac2a1(0x25f)),(_0x4fa79d=this[_0x5ac2a1(0x230)])==null||_0x4fa79d[_0x5ac2a1(0x23a)](),this[_0x5ac2a1(0x230)]=null;}[_0x1daa3d(0x1ee)](){const _0x51149f=_0x1daa3d;var _0x242626;this['_status$'][_0x51149f(0x26d)](_0x51149f(0x1eb)),(_0x242626=this[_0x51149f(0x230)])==null||_0x242626['dispose']();}['_handleOperation'](_0xccb9f9){const _0x47fce5=_0x1daa3d;if([_0x47fce5(0x235),'not-following',_0x47fce5(0x1e3)][_0x47fce5(0x1f6)](this[_0x47fce5(0x1d1)])||!_0xccb9f9['data'][_0x47fce5(0x1bd)]||_0xccb9f9[_0x47fce5(0x24a)][_0x47fce5(0x1bd)]===this['_collabSession'][_0x47fce5(0x214)]())return;this['_status']==='idle'&&this[_0x47fce5(0x232)]();const _0x3966b5=_0xccb9f9[_0x47fce5(0x24a)][_0x47fce5(0x1b8)];Object[_0x47fce5(0x1be)](_0x3966b5)['forEach'](_0x173e55=>{const _0x38f329=_0x47fce5;this['_commandService'][_0x38f329(0x1ad)](_0x173e55['id'],_0x173e55[_0x38f329(0x1cd)]?JSON[_0x38f329(0x27b)](_0x173e55[_0x38f329(0x1cd)]):null,{'fromCollab':!0x0});});}[_0x1daa3d(0x261)](){const _0x528af8=_0x1daa3d;var _0x354bd5;this[_0x528af8(0x273)][_0x528af8(0x26d)]('offline'),(_0x354bd5=this[_0x528af8(0x230)])==null||_0x354bd5['dispose']();}['_handleOnline'](){const _0x436821=_0x1daa3d;this['_status$'][_0x436821(0x26d)]('idle'),this[_0x436821(0x21a)]();}},exports[_0x1daa3d(0x224)]=P([S(0x2,o[_0x1daa3d(0x1b5)]),S(0x3,o['Inject'](E)),S(0x4,o[_0x1daa3d(0x1c5)])],exports['LiveShareCoordinator']);function $(){const _0x2be16f=_0x1daa3d,_0x2878ca=p['useDependency'](exports['LiveShareController']),_0x32c569=p[_0x2be16f(0x1ef)](o[_0x2be16f(0x205)]),_0x3774e6=p[_0x2be16f(0x211)](()=>_0x32c569[_0x2be16f(0x201)](o[_0x2be16f(0x1fa)][_0x2be16f(0x1cc)]),void 0x0,!0x1,[]),[_0x2fe22f,_0x1f858a]=v[_0x2be16f(0x228)](null),[_0x552658,_0xf02bd7]=v[_0x2be16f(0x228)](u['IDLE']),_0x45ef0a=v[_0x2be16f(0x26a)](null);return v[_0x2be16f(0x1ec)](()=>(_0x3774e6&&_0x2878ca['getLiveShareCoordinator'](_0x3774e6[_0x2be16f(0x260)]())['then'](_0x443854=>{const _0x31236f=_0x2be16f;_0x1f858a(_0x443854),_0x45ef0a[_0x31236f(0x1ce)]=_0x443854[_0x31236f(0x240)][_0x31236f(0x27f)](_0x343bf0=>{_0xf02bd7(_0x343bf0);});}),()=>{var _0x5dd4a2;(_0x5dd4a2=_0x45ef0a['current'])==null||_0x5dd4a2['unsubscribe'](),_0x45ef0a['current']=null;}),[_0x3774e6,_0x2878ca]),_0x2fe22f?l[_0x2be16f(0x272)](f[_0x2be16f(0x270)],{'align':_0x2be16f(0x1ab),'disabled':_0x552658===u[_0x2be16f(0x1fd)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l['jsx'](W,{'status':_0x552658,'coordinator':_0x2fe22f}),'children':l[_0x2be16f(0x272)](_0x2be16f(0x1b9),{'className':f[_0x2be16f(0x25a)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x552658===u[_0x2be16f(0x1fd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x552658!==u[_0x2be16f(0x1fd)]}),'type':'button','children':l['jsx'](R,{'className':_0x2be16f(0x1a8)})})}):null;}function W(_0xcb3190){const _0x1419b8=_0x1daa3d,{status:_0x78fc53,coordinator:_0x11568e}=_0xcb3190;switch(_0x78fc53){case u[_0x1419b8(0x257)]:return l[_0x1419b8(0x272)](G,{'coordinator':_0x11568e});case u[_0x1419b8(0x216)]:return l['jsx'](B,{'coordinator':_0x11568e});case u[_0x1419b8(0x23d)]:return l[_0x1419b8(0x272)](Y,{'coordinator':_0x11568e});case u[_0x1419b8(0x1fd)]:return l[_0x1419b8(0x272)](J,{});case u[_0x1419b8(0x1e6)]:return l[_0x1419b8(0x272)](Z,{'coordinator':_0x11568e});default:return null;}}function G(_0x14d907){const _0x2f91e7=_0x1daa3d,{coordinator:_0xc271f6}=_0x14d907;return l['jsxs'](l[_0x2f91e7(0x1e4)],{'children':[l[_0x2f91e7(0x272)](_0x2f91e7(0x275),{'className':_0x2f91e7(0x22d),'children':_0x2f91e7(0x22e)}),l[_0x2f91e7(0x272)](f['Button'],{'onClick':()=>_0xc271f6[_0x2f91e7(0x20e)](),'children':'Start'})]});}function B(_0x24d95e){const _0x1108c6=_0x1daa3d,{coordinator:_0x2ad9b4}=_0x24d95e;return l[_0x1108c6(0x1cf)](l[_0x1108c6(0x1e4)],{'children':[l['jsx'](_0x1108c6(0x275),{'className':_0x1108c6(0x22d),'children':_0x1108c6(0x1db)}),l[_0x1108c6(0x272)](f[_0x1108c6(0x1e2)],{'onClick':()=>_0x2ad9b4[_0x1108c6(0x1f4)](),'children':_0x1108c6(0x1d5)})]});}function Y(_0x4ac1f1){const _0x346de1=_0x1daa3d,{coordinator:_0x8a01fa}=_0x4ac1f1;return l[_0x346de1(0x1cf)](l[_0x346de1(0x1e4)],{'children':[l[_0x346de1(0x272)](_0x346de1(0x275),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x346de1(0x1e1)}),l['jsx'](f[_0x346de1(0x1e2)],{'variant':_0x346de1(0x24e),'onClick':()=>_0x8a01fa[_0x346de1(0x20c)](),'children':_0x346de1(0x24f)})]});}function Z(_0x3432a1){const _0x15c9ac=_0x1daa3d,{coordinator:_0x34eba8}=_0x3432a1;return l[_0x15c9ac(0x1cf)](l[_0x15c9ac(0x1e4)],{'children':[l[_0x15c9ac(0x272)]('div',{'className':_0x15c9ac(0x22d),'children':_0x15c9ac(0x27e)}),l[_0x15c9ac(0x272)](f[_0x15c9ac(0x1e2)],{'variant':_0x15c9ac(0x1d7),'onClick':()=>_0x34eba8['stopPresenting'](),'children':_0x15c9ac(0x276)})]});}function J(){const _0x13a088=_0x1daa3d;return l[_0x13a088(0x272)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var K=Object[_0x1daa3d(0x27a)],z=(_0x1fb0e0,_0x2a28b6,_0x3e7474,_0xfe6fb0)=>{const _0x426a41=_0x1daa3d;for(var _0x122fee=_0xfe6fb0>0x1?void 0x0:_0xfe6fb0?K(_0x2a28b6,_0x3e7474):_0x2a28b6,_0x2ef4b5=_0x1fb0e0[_0x426a41(0x1bf)]-0x1,_0x3de10b;_0x2ef4b5>=0x0;_0x2ef4b5--)(_0x3de10b=_0x1fb0e0[_0x2ef4b5])&&(_0x122fee=_0x3de10b(_0x122fee)||_0x122fee);return _0x122fee;},L=(_0x805fcb,_0x9ebe4d)=>(_0x9f9eae,_0x319598)=>_0x9ebe4d(_0x9f9eae,_0x319598,_0x805fcb);exports[_0x1daa3d(0x268)]=class extends o[_0x1daa3d(0x208)]{constructor(_0x29d9ee,_0x29a90a){const _0x5ddd57=_0x1daa3d;super(),this[_0x5ddd57(0x25e)]=_0x29d9ee,this['_uiPartsService']=_0x29a90a,this['_mountLiveShare']();}[_0x1daa3d(0x1bc)](){const _0x142d3e=_0x1daa3d;this[_0x142d3e(0x277)](this[_0x142d3e(0x220)][_0x142d3e(0x258)](p[_0x142d3e(0x1b1)]['HEADER_MENU'],()=>p[_0x142d3e(0x23c)]($,this[_0x142d3e(0x25e)])));}},exports[_0x1daa3d(0x268)]=z([L(0x0,o[_0x1daa3d(0x252)](o[_0x1daa3d(0x1b0)])),L(0x1,p['IUIPartsService'])],exports[_0x1daa3d(0x268)]);function _0x3530(){const _0x224f5c=['_startFollowing','touchDependencies','96547WtkQBX','presenting','attrs','SetWorksheetActiveOperation','has','asObservable','dispose','get','connectInjector','NOT_FOLLOWING','SessionStatus','_sharedOperations','status$','LIVESHARE_NEW_HOST','_collabSessionService','_startLiveShareCoordinator','tag','_handleTerminate','_commandService','defineProperty','CollaborationEvent','fill','data','UNIVER_UNKNOWN','set','idSuffix','text','Start\x20following','delete','827890UzvBCH','Inject','live-share.config','add','getValue','238482uGwoPz','IDLE','registerComponent','LiveShareController','clsx','BehaviorSubject','forwardRef','string','_injector','idle','getUnitId','_handleOffline','live-share-icon','LIVESHARE_FETCH_OPERATIONS','setConfig','_handleOnline','defIds','mergeOverrideWithDependencies','DesktopLiveShareController','stringify','useRef','getInitialStates','complete','next','LiveShareIcon','SetScrollOperation','Dropdown','xlink:href','jsx','_status$','following','div','Stop\x20presenting','disposeWithMe','url(#$1','memberID','getOwnPropertyDescriptor','parse','type','_config','You\x27re\x20presenting\x20the\x20document','subscribe','2162244xVZSaN','univer-size-4','dispose$','_liveShareService','end','http://www.w3.org/2000/svg','executeCommand','mask','UNIVER_LIVE_SHARE_PLUGIN','Injector','BuiltInUIPart','Module','currentColor','_reporters','IConfigService','getTypeOfUnitAdded$','7014408FNPKqP','operations','button','registerSharedOperation','children','_mountLiveShare','presenter','values','length','_stopPresenting','onCommandExecuted','_handleNewHost','_presenter','Subject','ICommandService','parseProtocolChangeset','getTypeOfUnitDisposed$','takeUntil','onRendered','_configService','toStringTag','UNIVER_SHEET','params','current','jsxs','toDisposable','_status','event$','_univerInstanceService','getLiveShareCoordinatorSync','Stop\x20following','_init','default','entries','LIVESHARE_REQUEST_HOST','registerInitialStateReporter','You\x27re\x20following\x20the\x20presenter','NEW_CHANGESETS','DependentOn','OPERATION','10686643uDFzgi','shouldShareOperation','You\x27re\x20not\x20following\x20the\x20presenter','Button','offline','Fragment','evenodd','PRESENTING','90hBWUUx','SAME_OPERATION_SHARE_INTERVAL','CommandType','LiveShareStatus','not-following','useEffect','getLiveShareCoordinator','_stopFollowing','useDependency','Plugin','stopPresenting','RxDisposable','pluginName','stopFollowing','sessionStatus$','includes','none','send','1em','UniverInstanceType','12hDVLWW','forEach','OFFLINE','7uJJhOi','symbol','UniverLiveSharePlugin','getCurrentTypeOfUnit$','reverse','from','LiveShare','IUniverInstanceService','displayName','_collabSession','Disposable','override','getConfig','LIVESHARE_TERMINATE','startFollowing','substring','tryStartPresenting','getStatus','UniverIcon','useObservable','map','_startPresenting','getMemberID','0\x200\x2017\x2017','FOLLOWING','path','colorChannel1','_entities','_fetchOperations','CollaborationSessionService','toString','random','115qfmCbu','_beIdle','_uiPartsService','_handleOperation','univerjs-icon\x20univerjs-icon-','UniverCollaborationClientPlugin','LiveShareCoordinator','_unitID','assign','onStarting','useState','2oZUKId','createElement','pipe','388101tbYOUQ','univer-mb-3\x20univer-w-full\x20univer-text-sm','Present\x20this\x20document','throttleTime','_commandDisposable','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'];_0x3530=function(){return _0x224f5c;};return _0x3530();}const Q=_0x1daa3d(0x253),w={};var X=Object[_0x1daa3d(0x27a)],ee=(_0x2b3ac9,_0x327cbc,_0x418832,_0x1472f7)=>{const _0x55adae=_0x1daa3d;for(var _0x50adc4=_0x1472f7>0x1?void 0x0:_0x1472f7?X(_0x327cbc,_0x418832):_0x327cbc,_0x14139a=_0x2b3ac9[_0x55adae(0x1bf)]-0x1,_0x3cf59e;_0x14139a>=0x0;_0x14139a--)(_0x3cf59e=_0x2b3ac9[_0x14139a])&&(_0x50adc4=_0x3cf59e(_0x50adc4)||_0x50adc4);return _0x50adc4;},te=(_0x52e371,_0x54afe5)=>(_0xa76408,_0x1dcb2c)=>_0x54afe5(_0xa76408,_0x1dcb2c,_0x52e371);let m=class extends o[_0x1daa3d(0x208)]{constructor(_0x9dcc3e){super(),this['_liveShareService']=_0x9dcc3e,this['_init']();}[_0x1daa3d(0x1d6)](){const _0x39bd2e=_0x1daa3d;[D['SetZoomRatioOperation']['id'],D[_0x39bd2e(0x26f)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x46533b=>{const _0x158378=_0x39bd2e;this['disposeWithMe'](this[_0x158378(0x1aa)][_0x158378(0x1ba)](_0x46533b));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x1daa3d(0x247)],se=Object[_0x1daa3d(0x27a)],ne=(_0x2b2aa9,_0x489ea5,_0x456058)=>_0x489ea5 in _0x2b2aa9?ie(_0x2b2aa9,_0x489ea5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x456058}):_0x2b2aa9[_0x489ea5]=_0x456058,re=(_0x35c6e1,_0xa15924,_0x16d716,_0x540688)=>{for(var _0x27e27e=_0x540688>0x1?void 0x0:_0x540688?se(_0xa15924,_0x16d716):_0xa15924,_0x57fc73=_0x35c6e1['length']-0x1,_0x2b1724;_0x57fc73>=0x0;_0x57fc73--)(_0x2b1724=_0x35c6e1[_0x57fc73])&&(_0x27e27e=_0x2b1724(_0x27e27e)||_0x27e27e);return _0x27e27e;},N=(_0x4d5f3b,_0x139c7b)=>(_0x38fac5,_0xba71fc)=>_0x139c7b(_0x38fac5,_0xba71fc,_0x4d5f3b),A=(_0x175e6f,_0x190819,_0x272aac)=>ne(_0x175e6f,typeof _0x190819!=_0x1daa3d(0x1ff)?_0x190819+'':_0x190819,_0x272aac);function _0x1b43(_0x4af5c7,_0x599e9a){_0x4af5c7=_0x4af5c7-0x1a8;const _0x353025=_0x3530();let _0x1b43c0=_0x353025[_0x4af5c7];return _0x1b43c0;}const oe=_0x1daa3d(0x1af);exports['UniverLiveSharePlugin']=class extends o[_0x1daa3d(0x1f0)]{constructor(_0x19449a=w,_0x24ae8e,_0xffeadf){const _0x35cf85=_0x1daa3d;super(),this[_0x35cf85(0x27d)]=_0x19449a,this[_0x35cf85(0x25e)]=_0x24ae8e,this[_0x35cf85(0x1ca)]=_0xffeadf;const {..._0x34416d}=o['merge']({},w,this['_config']);this[_0x35cf85(0x1ca)][_0x35cf85(0x264)](Q,_0x34416d);}[_0x1daa3d(0x227)](){const _0x53fc08=_0x1daa3d;o['registerDependencies'](this[_0x53fc08(0x25e)],o[_0x53fc08(0x267)]([[E],[exports[_0x53fc08(0x259)]],[m],[exports[_0x53fc08(0x268)]]],this[_0x53fc08(0x27d)][_0x53fc08(0x209)])),o['touchDependencies'](this[_0x53fc08(0x25e)],[[m]]);}[_0x1daa3d(0x1c9)](){const _0x22ff11=_0x1daa3d;o[_0x22ff11(0x233)](this['_injector'],[[exports[_0x22ff11(0x268)]]]);}},A(exports[_0x1daa3d(0x200)],'type',o[_0x1daa3d(0x1fa)][_0x1daa3d(0x24b)]),A(exports[_0x1daa3d(0x200)],_0x1daa3d(0x1f3),oe),exports[_0x1daa3d(0x200)]=re([o[_0x1daa3d(0x1dd)](b[_0x1daa3d(0x223)]),N(0x1,o[_0x1daa3d(0x252)](o[_0x1daa3d(0x1b0)])),N(0x2,o[_0x1daa3d(0x1b5)])],exports[_0x1daa3d(0x200)]),exports[_0x1daa3d(0x204)]=$,exports['LiveShareService']=E,exports[_0x1daa3d(0x1ea)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x449cc1=_0x18bb;(function(_0x2adaa0,_0x1ef814){const _0x226a4e=_0x18bb,_0x5c517f=_0x2adaa0();while(!![]){try{const _0x5572f8=parseInt(_0x226a4e(0xcd))/0x1*(parseInt(_0x226a4e(0xd6))/0x2)+parseInt(_0x226a4e(0xdd))/0x3*(-parseInt(_0x226a4e(0xce))/0x4)+-parseInt(_0x226a4e(0xc3))/0x5+-parseInt(_0x226a4e(0xbd))/0x6+parseInt(_0x226a4e(0xca))/0x7+-parseInt(_0x226a4e(0xcb))/0x8*(-parseInt(_0x226a4e(0xcc))/0x9)+-parseInt(_0x226a4e(0xd7))/0xa*(-parseInt(_0x226a4e(0xd2))/0xb);if(_0x5572f8===_0x1ef814)break;else _0x5c517f['push'](_0x5c517f['shift']());}catch(_0x27f214){_0x5c517f['push'](_0x5c517f['shift']());}}}(_0x2f57,0xa42fa));import{LiveShareController as _0x32dbf9,LiveShareStatus as _0x40216c}from'@univerjs-pro/live-share';function _0x18bb(_0x2b684f,_0x11268a){_0x2b684f=_0x2b684f-0xbd;const _0x2f576a=_0x2f57();let _0x18bbe3=_0x2f576a[_0x2b684f];return _0x18bbe3;}import{IRenderManagerService as _0x5a097a}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x5f3cff}from'@univerjs/sheets';import{SetScrollOperation as _0x199512}from'@univerjs/sheets-ui';import{FRange as _0x3b8a7c}from'@univerjs/sheets/facade';import{FUniver as _0x1de699,FEnum as _0xaae706}from'@univerjs/core/facade';class I extends _0x3b8a7c{[_0x449cc1(0xc9)](_0x2a731f,_0x796527,_0x470ab8,_0x21b009,_0x358964){const _0x50a812=_0x449cc1,_0x411327=_0x2a731f[_0x50a812(0xdf)](_0x32dbf9),_0x5b6de8=_0x2a731f[_0x50a812(0xdf)](_0x5a097a),_0x3d0c0c=_0x796527['getUnitId'](),_0x5e8912=_0x796527[_0x50a812(0xd3)](),_0x66e11=_0x411327[_0x50a812(0xd0)](_0x3d0c0c);(_0x66e11==null?void 0x0:_0x66e11[_0x50a812(0xdc)]())!==_0x40216c[_0x50a812(0xdb)]||(_0x470ab8[_0x50a812(0xde)]()!==_0x5e8912['getSheetId']()&&this[_0x50a812(0xc5)][_0x50a812(0xbf)](_0x5f3cff['id'],{'unitId':_0x3d0c0c,'subUnitId':_0x470ab8[_0x50a812(0xde)]()}),!_0x5b6de8[_0x50a812(0xc4)](_0x3d0c0c))||_0x358964[_0x50a812(0xda)](_0x199512['id'],{'unitId':_0x796527['getUnitId'](),'sheetId':_0x470ab8['getSheetId'](),'sheetViewStartRow':_0x21b009['startRow'],'sheetViewStartColumn':_0x21b009[_0x50a812(0xc8)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x2f57(){const _0x4db848=['startColumn','_initialize','4949987zFPjAK','630496wuruAS','108MOUWqj','4310kFlhqP','394312VgpEar','_injector','getLiveShareCoordinatorSync','getActiveWorkbook','11KNVmhV','getActiveSheet','extend','stopPresenting','186HtriVk','440590EgySbX','getLiveShareStatus','startPresenting','syncExecuteCommand','PRESENTING','getStatus','3GpxqSm','getSheetId','get','6361458cPsFQj','getId','executeCommand','LiveShareStatusEnum','stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1332235CeZTIn','getRenderById','_commandService','startFollowing','No\x20active\x20workbook\x20found.'];_0x2f57=function(){return _0x4db848;};return _0x2f57();}_0x3b8a7c['extend'](I);class m extends _0x1de699{[_0x449cc1(0xd8)](){const _0xc58361=_0x449cc1;var _0x1e76a3,_0x5502d0;const _0x7ebe84=this[_0xc58361(0xcf)][_0xc58361(0xdf)](_0x32dbf9),_0x344c3c=(_0x1e76a3=this[_0xc58361(0xd1)]())==null?void 0x0:_0x1e76a3['getId']();if(!_0x344c3c)throw new Error('No\x20active\x20workbook\x20found.');const _0x40f5e7=_0x7ebe84['getLiveShareCoordinatorSync'](_0x344c3c);return(_0x5502d0=_0x40f5e7==null?void 0x0:_0x40f5e7[_0xc58361(0xdc)]())!=null?_0x5502d0:_0x40216c['IDLE'];}[_0x449cc1(0xc6)](){const _0xec5253=_0x449cc1;var _0x351bf5;const _0x3cebd2=this['_injector']['get'](_0x32dbf9),_0x1e50f2=(_0x351bf5=this[_0xec5253(0xd1)]())==null?void 0x0:_0x351bf5['getId']();if(!_0x1e50f2)throw new Error(_0xec5253(0xc7));const _0x1ec6d8=_0x3cebd2[_0xec5253(0xd0)](_0x1e50f2);if(!_0x1ec6d8)throw new Error(_0xec5253(0xc2));_0x1ec6d8[_0xec5253(0xc6)]();}['stopFollowing'](){const _0x29a841=_0x449cc1;var _0x243ce3;const _0x39fc2c=this['_injector'][_0x29a841(0xdf)](_0x32dbf9),_0x17a05c=(_0x243ce3=this['getActiveWorkbook']())==null?void 0x0:_0x243ce3[_0x29a841(0xbe)]();if(!_0x17a05c)throw new Error(_0x29a841(0xc7));const _0x29ea46=_0x39fc2c[_0x29a841(0xd0)](_0x17a05c);if(!_0x29ea46)throw new Error(_0x29a841(0xc2));_0x29ea46[_0x29a841(0xc1)]();}[_0x449cc1(0xd9)](){const _0x1be510=_0x449cc1;var _0xb7d20c;const _0x325cb6=this[_0x1be510(0xcf)][_0x1be510(0xdf)](_0x32dbf9),_0x2ff8df=(_0xb7d20c=this['getActiveWorkbook']())==null?void 0x0:_0xb7d20c[_0x1be510(0xbe)]();if(!_0x2ff8df)throw new Error(_0x1be510(0xc7));const _0x3ffd65=_0x325cb6[_0x1be510(0xd0)](_0x2ff8df);if(!_0x3ffd65)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3ffd65['tryStartPresenting']();}[_0x449cc1(0xd5)](){const _0x3eb0a4=_0x449cc1;var _0x5f121c;const _0x1eb7de=this[_0x3eb0a4(0xcf)][_0x3eb0a4(0xdf)](_0x32dbf9),_0x4528d3=(_0x5f121c=this[_0x3eb0a4(0xd1)]())==null?void 0x0:_0x5f121c[_0x3eb0a4(0xbe)]();if(!_0x4528d3)throw new Error(_0x3eb0a4(0xc7));const _0x4dfdde=_0x1eb7de['getLiveShareCoordinatorSync'](_0x4528d3);if(!_0x4dfdde)throw new Error(_0x3eb0a4(0xc2));_0x4dfdde['stopPresenting']();}}_0x1de699[_0x449cc1(0xd4)](m);class C extends _0xaae706{get[_0x449cc1(0xc0)](){return _0x40216c;}}_0xaae706['extend'](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x37c48f=_0xe409;(function(_0xca09e3,_0x23be34){const _0x503460=_0xe409,_0xabed41=_0xca09e3();while(!![]){try{const _0x1b3726=parseInt(_0x503460(0x171))/0x1+-parseInt(_0x503460(0x1dd))/0x2+-parseInt(_0x503460(0x182))/0x3*(parseInt(_0x503460(0x1ed))/0x4)+parseInt(_0x503460(0x155))/0x5*(-parseInt(_0x503460(0x1a5))/0x6)+parseInt(_0x503460(0x15d))/0x7+-parseInt(_0x503460(0x16d))/0x8+-parseInt(_0x503460(0x18f))/0x9*(-parseInt(_0x503460(0x1d5))/0xa);if(_0x1b3726===_0x23be34)break;else _0xabed41['push'](_0xabed41['shift']());}catch(_0x3c4d11){_0xabed41['push'](_0xabed41['shift']());}}}(_0x33ed,0x571d8));var J=Object['defineProperty'],K=(_0x4f7e0a,_0x24e8b5,_0xe4ea7)=>_0x24e8b5 in _0x4f7e0a?J(_0x4f7e0a,_0x24e8b5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe4ea7}):_0x4f7e0a[_0x24e8b5]=_0xe4ea7,u=(_0x2a9c80,_0x6b58ae,_0x256c56)=>K(_0x2a9c80,typeof _0x6b58ae!='symbol'?_0x6b58ae+'':_0x6b58ae,_0x256c56);import{Disposable as _0x56ac81,toDisposable as _0x14fed3,IUniverInstanceService as _0x3fde3e,Inject as _0x19be43,Injector as _0x26383e,IConfigService as _0x347dc0,ICommandService as _0x4afaea,RxDisposable as _0x46b3fc,UniverInstanceType as _0x339dac,DisposableCollection as _0x2d7a31,CommandType as _0x412c4e,DependentOn as _0x2d581b,Plugin as _0x541451,merge as _0x367c89,registerDependencies as _0x5a7450,mergeOverrideWithDependencies as _0x3edeed,touchDependencies as _0x427e11}from'@univerjs/core';import{useDependency as _0x3d5a42,useObservable as _0x38adb2,IUIPartsService as _0x5ded7e,BuiltInUIPart as _0x1d340b,connectInjector as _0x573695}from'@univerjs/ui';import{jsx as _0x1c493a,jsxs as _0x151147,Fragment as _0xc16d68}from'react/jsx-runtime';import{Dropdown as _0x271335,clsx as _0x4fc2f0,Button as _0x47c0d7}from'@univerjs/design';import{useRef as _0x43a44d,createElement as _0x9d760e,forwardRef as _0x5dd029,useState as _0x105361,useEffect as _0xf1fe}from'react';import{CollaborationEvent as _0xfbd7ce,parseProtocolChangeset as _0x3bd4cc}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1eb5ad,SessionStatus as _0x2028a0,UniverCollaborationClientPlugin as _0x32695c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4662fb,SetWorksheetActiveOperation as _0x382fbd}from'@univerjs/sheets';import{BehaviorSubject as _0x22afaf,Subject as _0x4d5a8a}from'rxjs';import{takeUntil as _0x5c0ffb,throttleTime as _0x3d75be}from'rxjs/operators';import{SetZoomRatioOperation as _0x3e9230,SetScrollOperation as _0x10ff22}from'@univerjs/sheets-ui';function k({ref:_0x6a9a4b,..._0x6607ad}){const _0x3eb271=_0xe409,{icon:_0x3fc80f,id:_0x4f9876,className:_0x3da3d3,extend:_0xf6b093,..._0x2044a2}=_0x6607ad,_0x3cb262=('univerjs-icon\x20univerjs-icon-'+_0x4f9876+'\x20'+(_0x3da3d3||''))[_0x3eb271(0x179)](),_0x1ced54=_0x43a44d('_'+Oe());return G(_0x3fc80f,''+_0x4f9876,{'defIds':_0x3fc80f[_0x3eb271(0x1b1)],'idSuffix':_0x1ced54[_0x3eb271(0x163)]},{'ref':_0x6a9a4b,'className':_0x3cb262,..._0x2044a2},_0xf6b093);}function G(_0x21771a,_0xa9d86f,_0x3dc626,_0x5cd706,_0x6b83d0){const _0x1104eb=_0xe409;return _0x9d760e(_0x21771a[_0x1104eb(0x156)],{'key':_0xa9d86f,...be(_0x21771a,_0x3dc626,_0x6b83d0),..._0x5cd706},(Ee(_0x21771a,_0x3dc626)[_0x1104eb(0x1e5)]||[])['map']((_0x2324d8,_0x44da57)=>G(_0x2324d8,_0xa9d86f+'-'+_0x21771a[_0x1104eb(0x156)]+'-'+_0x44da57,_0x3dc626,void 0x0,_0x6b83d0)));}function be(_0x405bd8,_0x497cb1,_0x3c8e7a){const _0x5697c3=_0xe409,_0x19d15b={..._0x405bd8[_0x5697c3(0x17b)]};_0x3c8e7a!=null&&_0x3c8e7a[_0x5697c3(0x1bb)]&&_0x19d15b[_0x5697c3(0x1b3)]===_0x5697c3(0x1bb)&&(_0x19d15b[_0x5697c3(0x1b3)]=_0x3c8e7a[_0x5697c3(0x1bb)]),_0x405bd8[_0x5697c3(0x156)]==='mask'&&_0x19d15b['id']&&(_0x19d15b['id']=_0x19d15b['id']+_0x497cb1[_0x5697c3(0x185)]),Object[_0x5697c3(0x18d)](_0x19d15b)[_0x5697c3(0x184)](([_0x27af38,_0x434ca1])=>{const _0x2d16ee=_0x5697c3;_0x27af38===_0x2d16ee(0x1ef)&&typeof _0x434ca1==_0x2d16ee(0x1f0)&&(_0x19d15b[_0x27af38]=_0x434ca1[_0x2d16ee(0x1b6)](/url\(#(.*)\)/,_0x2d16ee(0x177)+_0x497cb1[_0x2d16ee(0x185)]+')'));});const {defIds:_0x3ef991}=_0x497cb1;return!_0x3ef991||_0x3ef991[_0x5697c3(0x18e)]===0x0||(_0x405bd8[_0x5697c3(0x156)]===_0x5697c3(0x19f)&&_0x19d15b['xlink:href']&&(_0x19d15b[_0x5697c3(0x170)]=_0x19d15b[_0x5697c3(0x170)]+_0x497cb1['idSuffix']),Object['entries'](_0x19d15b)[_0x5697c3(0x184)](([_0x1e16c5,_0xd1753c])=>{const _0x48282f=_0x5697c3;typeof _0xd1753c==_0x48282f(0x1f0)&&(_0x19d15b[_0x1e16c5]=_0xd1753c[_0x48282f(0x1b6)](/url\(#(.*)\)/,'url(#$1'+_0x497cb1[_0x48282f(0x185)]+')'));})),_0x19d15b;}function Ee(_0x5ecafc,_0xb0ff3d){const _0xaac6fc=_0xe409;var _0x1649af;const {defIds:_0x57fb24}=_0xb0ff3d;return!_0x57fb24||_0x57fb24[_0xaac6fc(0x18e)]===0x0?_0x5ecafc:_0x5ecafc['tag']===_0xaac6fc(0x19a)&&((_0x1649af=_0x5ecafc['children'])!=null&&_0x1649af[_0xaac6fc(0x18e)])?{..._0x5ecafc,'children':_0x5ecafc[_0xaac6fc(0x1e5)]['map'](_0x2097ed=>typeof _0x2097ed[_0xaac6fc(0x17b)]['id']==_0xaac6fc(0x1f0)&&_0x57fb24&&_0x57fb24['includes'](_0x2097ed[_0xaac6fc(0x17b)]['id'])?{..._0x2097ed,'attrs':{..._0x2097ed[_0xaac6fc(0x17b)],'id':_0x2097ed[_0xaac6fc(0x17b)]['id']+_0xb0ff3d[_0xaac6fc(0x185)]}}:_0x2097ed)}:_0x5ecafc;}function Oe(){const _0x4c634c=_0xe409;return Math['random']()['toString'](0x24)[_0x4c634c(0x18b)](0x2,0x8);}function _0x33ed(){const _0x4233a7=['_unitID','PRESENTING','type','executeCommand','get','1729788GBCzyd','Present\x20this\x20document','_handleOffline','getLiveShareCoordinator','_commandService','FOLLOWING','map','LIVESHARE_FETCH_OPERATIONS','1em','init','unsubscribe','then','defIds','getUnitId','fill','UNIVER_SHEET','getTypeOfUnitAdded$','replace','parse','evenodd','onRendered','_mountLiveShare','colorChannel1','path','LIVESHARE_OPERATION','sessionStatus$','_presenter','button','HEADER_MENU','_handleOnline','IDLE','currentColor','_configService','_injector','displayName','sheet','default','live-share.config','LiveShareIcon','has','requireSession','_startLiveShareCoordinator','_collabSession','NEW_CHANGESETS','_startPresenting','data','disposeWithMe','next','470eqiCep','_stopFollowing','_beIdle','You\x27re\x20presenting\x20the\x20document','tryStartPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_TERMINATE','dispose','247406IwrpSk','_collabSessionService','ONLINE','_entities','_config','onCommandExecuted','getLiveShareCoordinatorSync','_sharedOperations','children','stopFollowing','presenting','stringify','_handleNewChangeSets','univer-size-4','_status$','live-share-icon','196dIBLcj','Stop\x20following','mask','string','reverse','dispose$','UNIVER_UNKNOWN','unitId','_commandDisposable','clear','memberID','5OqqcmR','tag','registerSharedOperation','registerComponent','send','values','text','assign','3393236xuwqKQ','getInitialStates','_handleNewHost','You\x27re\x20not\x20following\x20the\x20presenter','presenter','stopPresenting','current','none','delete','getMemberID','_reporters','getOwnPropertyDescriptor','from','getConfig','div','getCurrentTypeOfUnit$','4386376grmqFS','setConfig','offline','xlink:href','285137PKrCMj','_fetchOperations','asObservable','set','_uiPartsService','_stopPresenting','url(#$1','http://www.w3.org/2000/svg','trim','add','attrs','You\x27re\x20following\x20the\x20presenter','_status','idle','defineProperty','Start\x20following','includes','41430gpasBe','createInstance','forEach','idSuffix','LIVESHARE_NEW_HOST','shouldShareOperation','_univerInstanceService','following','OFFLINE','substring','Start','entries','length','234369DfjfQR','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','_init','subscribe','_handleTerminate','startFollowing','_liveShareService','pipe','UNIVER_LIVE_SHARE_PLUGIN','operations','defs','complete','Stop\x20presenting','params','NOT_FOLLOWING','use'];_0x33ed=function(){return _0x4233a7;};return _0x33ed();}k[_0x37c48f(0x1c7)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x37c48f(0x178),'fill':_0x37c48f(0x164),'viewBox':'0\x200\x2017\x2017','width':_0x37c48f(0x1ad),'height':'1em'},'children':[{'tag':_0x37c48f(0x1bc),'attrs':{'fill':_0x37c48f(0x1c4),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x37c48f(0x1c4),'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':_0x37c48f(0x1b8),'clipRule':'evenodd'}}]},W=_0x5dd029(function(_0x31e086,_0x8c82f6){const _0x3cad22=_0x37c48f;return _0x9d760e(k,Object[_0x3cad22(0x15c)]({},_0x31e086,{'id':_0x3cad22(0x1ec),'ref':_0x8c82f6,'icon':we}));});W[_0x37c48f(0x1c7)]=_0x37c48f(0x1cb);class L extends _0x56ac81{constructor(){const _0x4dd519=_0x37c48f;super(...arguments),u(this,_0x4dd519(0x1e4),new Set()),u(this,_0x4dd519(0x167),new Set());}[_0x37c48f(0x157)](_0x2c4f01){const _0x2a6c26=_0x37c48f;return this[_0x2a6c26(0x1e4)][_0x2a6c26(0x17a)](_0x2c4f01),_0x14fed3(()=>this[_0x2a6c26(0x1e4)][_0x2a6c26(0x165)](_0x2c4f01));}['registerInitialStateReporter'](_0x4d105b){const _0x7286ea=_0x37c48f;return this[_0x7286ea(0x167)][_0x7286ea(0x17a)](_0x4d105b),_0x14fed3(()=>this[_0x7286ea(0x167)][_0x7286ea(0x165)](_0x4d105b));}[_0x37c48f(0x187)](_0x2dfe0a){const _0x14cc4c=_0x37c48f;return this[_0x14cc4c(0x1e4)][_0x14cc4c(0x1cc)](_0x2dfe0a);}[_0x37c48f(0x15e)](_0xe3cf1a){const _0x37aea6=_0x37c48f;return Array[_0x37aea6(0x169)](this[_0x37aea6(0x167)])[_0x37aea6(0x1ab)](_0x35e6a2=>_0x35e6a2(_0xe3cf1a));}}var Ne=Object[_0x37c48f(0x168)],Y=(_0x123d7,_0x1484b4,_0x49d19f,_0x3c0cdd)=>{const _0x9ce59e=_0x37c48f;for(var _0x45c3b6=_0x3c0cdd>0x1?void 0x0:_0x3c0cdd?Ne(_0x1484b4,_0x49d19f):_0x1484b4,_0x3d5235=_0x123d7[_0x9ce59e(0x18e)]-0x1,_0x488a22;_0x3d5235>=0x0;_0x3d5235--)(_0x488a22=_0x123d7[_0x3d5235])&&(_0x45c3b6=_0x488a22(_0x45c3b6)||_0x45c3b6);return _0x45c3b6;},_=(_0x3839bc,_0x1b3d1b)=>(_0x32464c,_0x1ae4f3)=>_0x1b3d1b(_0x32464c,_0x1ae4f3,_0x3839bc);let S=class extends _0x46b3fc{constructor(_0x370983,_0xe71a93,_0x1f54c1){const _0x5a7010=_0x37c48f;super(),u(this,_0x5a7010(0x1e0),new Map()),(this[_0x5a7010(0x188)]=_0x370983,this['_injector']=_0xe71a93,this[_0x5a7010(0x1de)]=_0x1f54c1,this[_0x5a7010(0x192)]());}async[_0x37c48f(0x1a8)](_0xbaa191){const _0x5aac94=_0x37c48f;return this[_0x5aac94(0x1e0)][_0x5aac94(0x1cc)](_0xbaa191)||await this['_startLiveShareCoordinator'](_0xbaa191),this['_entities'][_0x5aac94(0x1a4)](_0xbaa191);}[_0x37c48f(0x1e3)](_0x1e78a2){const _0x1bd250=_0x37c48f;var _0x5ade84;return(_0x5ade84=this[_0x1bd250(0x1e0)][_0x1bd250(0x1a4)](_0x1e78a2))!=null?_0x5ade84:null;}[_0x37c48f(0x192)](){const _0x172b40=_0x37c48f;this['_univerInstanceService'][_0x172b40(0x1b5)](_0x339dac[_0x172b40(0x1b4)])[_0x172b40(0x197)](_0x5c0ffb(this[_0x172b40(0x1f2)]))[_0x172b40(0x193)](async _0x12f299=>{const _0x1f164a=_0x172b40,_0x17e224=_0x12f299[_0x1f164a(0x1b2)]();this[_0x1f164a(0x1e0)][_0x1f164a(0x1cc)](_0x17e224)||this[_0x1f164a(0x1ce)](_0x17e224);}),this[_0x172b40(0x188)]['getTypeOfUnitDisposed$'](_0x339dac['UNIVER_SHEET'])[_0x172b40(0x197)](_0x5c0ffb(this[_0x172b40(0x1f2)]))[_0x172b40(0x193)](_0x102a61=>{const _0x2e9cf2=_0x172b40,_0x56aa42=_0x102a61[_0x2e9cf2(0x1b2)](),_0x2b0201=this['_entities'][_0x2e9cf2(0x1a4)](_0x56aa42);_0x2b0201==null||_0x2b0201['dispose']();});}async[_0x37c48f(0x1ce)](_0x5b5fdf){const _0xd07fe1=_0x37c48f,_0x448e24=await this['_collabSessionService'][_0xd07fe1(0x1cd)](_0x5b5fdf),_0x2217ff=this[_0xd07fe1(0x1c6)][_0xd07fe1(0x183)](N,_0x5b5fdf,_0x448e24);return _0x2217ff['init'](),this['_entities'][_0xd07fe1(0x174)](_0x5b5fdf,_0x2217ff),_0x2217ff;}};S=Y([_(0x0,_0x3fde3e),_(0x1,_0x19be43(_0x26383e)),_(0x2,_0x19be43(_0x1eb5ad))],S);var c=(_0x39528e=>(_0x39528e[_0x37c48f(0x18a)]=_0x37c48f(0x16f),_0x39528e[_0x37c48f(0x1c3)]=_0x37c48f(0x17e),_0x39528e[_0x37c48f(0x1aa)]=_0x37c48f(0x189),_0x39528e[_0x37c48f(0x19e)]=_0x37c48f(0x191),_0x39528e[_0x37c48f(0x1a1)]=_0x37c48f(0x1e7),_0x39528e))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x46b3fc{constructor(_0x24039b,_0x1907e1,_0x3d58c3,_0x471940,_0x78b654){const _0x4078f8=_0x37c48f;super(),u(this,_0x4078f8(0x1eb),new _0x22afaf(_0x4078f8(0x17e))),u(this,'status$',this[_0x4078f8(0x1eb)][_0x4078f8(0x173)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x4078f8(0x1bf),null),(this[_0x4078f8(0x1a0)]=_0x24039b,this[_0x4078f8(0x1cf)]=_0x1907e1,this[_0x4078f8(0x1c5)]=_0x3d58c3,this[_0x4078f8(0x196)]=_0x471940,this['_commandService']=_0x78b654);}get['_status'](){return this['_status$']['getValue']();}['dispose'](){const _0x3c9b6a=_0x37c48f;var _0x3004c1;(_0x3004c1=this[_0x3c9b6a(0x152)])==null||_0x3004c1[_0x3c9b6a(0x1dc)](),this[_0x3c9b6a(0x1eb)][_0x3c9b6a(0x1d4)](_0x3c9b6a(0x17e)),this[_0x3c9b6a(0x1eb)][_0x3c9b6a(0x19b)]();}['getStatus'](){const _0x434247=_0x37c48f;return this[_0x434247(0x17d)];}[_0x37c48f(0x1ae)](){const _0x582012=_0x37c48f;this[_0x582012(0x192)]||(this[_0x582012(0x192)]=!0x0,this[_0x582012(0x1cf)][_0x582012(0x1be)][_0x582012(0x197)](_0x5c0ffb(this[_0x582012(0x1f2)]))['subscribe'](_0x474db0=>{const _0x3b3a2a=_0x582012;switch(_0x474db0){case _0x2028a0['OFFLINE']:this[_0x3b3a2a(0x1a7)]();break;case _0x2028a0[_0x3b3a2a(0x1df)]:this[_0x3b3a2a(0x1c2)]();break;}}),this[_0x582012(0x1cf)]['event$'][_0x582012(0x197)](_0x5c0ffb(this[_0x582012(0x1f2)]))['subscribe'](_0x31de8c=>{const _0x5e9b77=_0x582012,{eventID:_0x506dec}=_0x31de8c;switch(_0x506dec){case _0xfbd7ce[_0x5e9b77(0x186)]:this[_0x5e9b77(0x15f)](_0x31de8c);break;case _0xfbd7ce['LIVESHARE_OPERATION']:this['_handleOperation'](_0x31de8c);break;case _0xfbd7ce[_0x5e9b77(0x1db)]:this['_handleTerminate']();break;case _0xfbd7ce[_0x5e9b77(0x1d0)]:this[_0x5e9b77(0x1e9)](_0x31de8c);break;}}));}[_0x37c48f(0x1d9)](){const _0x3eecda=_0x37c48f;this[_0x3eecda(0x1cf)]['send']({'eventID':_0xfbd7ce['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3eecda(0x1a0)],'userID':this[_0x3eecda(0x1cf)][_0x3eecda(0x166)]()}},this[_0x3eecda(0x1a0)]);}[_0x37c48f(0x162)](){const _0x5906ad=_0x37c48f;this[_0x5906ad(0x17d)]===_0x5906ad(0x1e7)&&(this[_0x5906ad(0x1eb)]['next'](_0x5906ad(0x17e)),this[_0x5906ad(0x1cf)][_0x5906ad(0x159)]({'eventID':_0xfbd7ce[_0x5906ad(0x1db)],'data':{'unitID':this[_0x5906ad(0x1a0)]}},this[_0x5906ad(0x1a0)]));}[_0x37c48f(0x195)](){const _0x10cb14=_0x37c48f;this[_0x10cb14(0x17d)]===_0x10cb14(0x191)&&(this[_0x10cb14(0x1eb)][_0x10cb14(0x1d4)]('following'),this['_startFollowing']());}[_0x37c48f(0x1e6)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x37c48f(0x15f)](_0x575056){const _0x452080=_0x37c48f,{presenter:_0x26a52b}=_0x575056[_0x452080(0x1d2)],_0x1ec058=this[_0x452080(0x1cf)][_0x452080(0x166)]();this['_presenter']=_0x26a52b,_0x26a52b===_0x1ec058?(this[_0x452080(0x1d6)](),this[_0x452080(0x1d1)]()):this['_status']!=='not-following'&&(this[_0x452080(0x176)](),this['_startFollowing']());}[_0x37c48f(0x172)](){const _0x26024b=_0x37c48f,_0x18a090={'eventID':_0xfbd7ce[_0x26024b(0x1ac)]};this[_0x26024b(0x1cf)][_0x26024b(0x159)](_0x18a090,this['_unitID']);}[_0x37c48f(0x194)](){const _0xa0f93=_0x37c48f;this[_0xa0f93(0x1bf)]=null,this['_status']!==_0xa0f93(0x1e7)&&this[_0xa0f93(0x1d7)]();}[_0x37c48f(0x1e9)](_0xf00b52){const _0x260620=_0x37c48f;if(this[_0x260620(0x17d)]===_0x260620(0x189)&&this[_0x260620(0x1bf)]===_0xf00b52[_0x260620(0x1d2)][_0x260620(0x154)]){const _0x53f7bf=_0x3bd4cc(_0xf00b52[_0x260620(0x1d2)])['mutations'][_0x260620(0x1f1)]()['find'](_0x5419f1=>_0x5419f1['id']===_0x4662fb['id']);if(_0x53f7bf){const _0x17a862=_0x53f7bf[_0x260620(0x19d)][_0x260620(0x1f4)],_0x12d9c8=_0x53f7bf['params'][_0x260620(0x1c8)]['id'];setTimeout(()=>{const _0x460506=_0x260620;this[_0x460506(0x1a9)][_0x460506(0x1a3)](_0x382fbd['id'],{'unitId':_0x17a862,'subUnitId':_0x12d9c8},{'fromCollab':!0x0});});}}}[_0x37c48f(0x1d1)](){const _0x1c754c=_0x37c48f;this[_0x1c754c(0x1eb)][_0x1c754c(0x1d4)](_0x1c754c(0x1e7));const _0x2a2428=new Map(),_0x2efb46=this[_0x1c754c(0x152)]=new _0x2d7a31();_0x2efb46[_0x1c754c(0x17a)](_0x14fed3(()=>{const _0x2aab58=_0x1c754c;_0x2a2428['forEach'](_0x5d25ad=>_0x5d25ad['complete']()),_0x2a2428[_0x2aab58(0x153)]();})),_0x2efb46[_0x1c754c(0x17a)](this[_0x1c754c(0x1a9)][_0x1c754c(0x1e2)](_0x454cc7=>{const _0x3e998b=_0x1c754c;var _0x5020ce;if(_0x454cc7['type']!==_0x412c4e['OPERATION']||!this['_liveShareService'][_0x3e998b(0x187)](_0x454cc7['id']))return;const {id:_0x313e1d}=_0x454cc7;let _0x1bca42;_0x2a2428[_0x3e998b(0x1cc)](_0x313e1d)?_0x1bca42=_0x2a2428['get'](_0x313e1d):(_0x1bca42=new _0x4d5a8a(),_0x2a2428[_0x3e998b(0x174)](_0x313e1d,_0x1bca42),_0x1bca42[_0x3e998b(0x197)](_0x3d75be((_0x5020ce=this[_0x3e998b(0x1c5)][_0x3e998b(0x16a)](Ce))!=null?_0x5020ce:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3e998b(0x193)](_0x26576b=>{const _0x20d493=_0x3e998b;this[_0x20d493(0x1cf)][_0x20d493(0x159)]({'eventID':_0xfbd7ce[_0x20d493(0x1bd)],'data':{'unitID':this[_0x20d493(0x1a0)],'operations':{[_0x26576b['id']]:{'id':_0x26576b['id'],'params':JSON[_0x20d493(0x1e8)](_0x26576b[_0x20d493(0x19d)])}}}},this[_0x20d493(0x1a0)]);})),_0x1bca42[_0x3e998b(0x1d4)](_0x454cc7);})),this[_0x1c754c(0x196)][_0x1c754c(0x15e)](this[_0x1c754c(0x1a0)])[_0x1c754c(0x184)](_0x11a717=>this[_0x1c754c(0x1cf)][_0x1c754c(0x159)]({'eventID':_0xfbd7ce[_0x1c754c(0x1bd)],'data':{'unitID':this[_0x1c754c(0x1a0)],'operations':{[_0x11a717['id']]:{'id':_0x11a717['id'],'params':JSON['stringify'](_0x11a717['params'])}}}},this[_0x1c754c(0x1a0)]));}[_0x37c48f(0x176)](){const _0x4fa1ae=_0x37c48f;var _0x1e6b49;this[_0x4fa1ae(0x1eb)][_0x4fa1ae(0x1d4)](_0x4fa1ae(0x17e)),(_0x1e6b49=this[_0x4fa1ae(0x152)])==null||_0x1e6b49[_0x4fa1ae(0x1dc)](),this[_0x4fa1ae(0x152)]=null;}['_startFollowing'](){const _0x59deb8=_0x37c48f;var _0x20e2fd;(_0x20e2fd=this[_0x59deb8(0x152)])==null||_0x20e2fd[_0x59deb8(0x1dc)](),this['_status$'][_0x59deb8(0x1d4)](_0x59deb8(0x189));}['_beIdle'](){const _0xb90c9=_0x37c48f;var _0x97f99b;this['_status$'][_0xb90c9(0x1d4)](_0xb90c9(0x17e)),(_0x97f99b=this[_0xb90c9(0x152)])==null||_0x97f99b['dispose'](),this[_0xb90c9(0x152)]=null;}['_stopFollowing'](){const _0x2100ba=_0x37c48f;var _0x4dc1e1;this['_status$'][_0x2100ba(0x1d4)](_0x2100ba(0x191)),(_0x4dc1e1=this['_commandDisposable'])==null||_0x4dc1e1[_0x2100ba(0x1dc)]();}['_handleOperation'](_0x31017b){const _0x2637e2=_0x37c48f;if([_0x2637e2(0x1e7),_0x2637e2(0x191),'offline'][_0x2637e2(0x181)](this[_0x2637e2(0x17d)])||!_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x161)]||_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x161)]===this[_0x2637e2(0x1cf)][_0x2637e2(0x166)]())return;this[_0x2637e2(0x17d)]===_0x2637e2(0x17e)&&this['_startFollowing']();const _0x22448a=_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x199)];Object[_0x2637e2(0x15a)](_0x22448a)[_0x2637e2(0x184)](_0x27d47b=>{const _0x586c00=_0x2637e2;this[_0x586c00(0x1a9)][_0x586c00(0x1a3)](_0x27d47b['id'],_0x27d47b[_0x586c00(0x19d)]?JSON[_0x586c00(0x1b7)](_0x27d47b[_0x586c00(0x19d)]):null,{'fromCollab':!0x0});});}[_0x37c48f(0x1a7)](){const _0x329270=_0x37c48f;var _0x6f6b0a;this[_0x329270(0x1eb)][_0x329270(0x1d4)]('offline'),(_0x6f6b0a=this['_commandDisposable'])==null||_0x6f6b0a[_0x329270(0x1dc)]();}[_0x37c48f(0x1c2)](){const _0x4dcb9b=_0x37c48f;this[_0x4dcb9b(0x1eb)][_0x4dcb9b(0x1d4)]('idle'),this[_0x4dcb9b(0x172)]();}};N=Y([_(0x2,_0x347dc0),_(0x3,_0x19be43(L)),_(0x4,_0x4afaea)],N);function Le(){const _0x1ea1a8=_0x37c48f,_0x22966e=_0x3d5a42(S),_0x2236d8=_0x3d5a42(_0x3fde3e),_0x5cd4cb=_0x38adb2(()=>_0x2236d8[_0x1ea1a8(0x16c)](_0x339dac[_0x1ea1a8(0x1b4)]),void 0x0,!0x1,[]),[_0x1611cd,_0x217445]=_0x105361(null),[_0x55b7dd,_0x20ae94]=_0x105361(c[_0x1ea1a8(0x1c3)]),_0x315ebb=_0x43a44d(null);return _0xf1fe(()=>(_0x5cd4cb&&_0x22966e[_0x1ea1a8(0x1a8)](_0x5cd4cb['getUnitId']())[_0x1ea1a8(0x1b0)](_0x3c2aef=>{_0x217445(_0x3c2aef),_0x315ebb['current']=_0x3c2aef['status$']['subscribe'](_0x3e5d2d=>{_0x20ae94(_0x3e5d2d);});}),()=>{const _0x819182=_0x1ea1a8;var _0x258e73;(_0x258e73=_0x315ebb[_0x819182(0x163)])==null||_0x258e73[_0x819182(0x1af)](),_0x315ebb[_0x819182(0x163)]=null;}),[_0x5cd4cb,_0x22966e]),_0x1611cd?_0x1c493a(_0x271335,{'align':'end','disabled':_0x55b7dd===c[_0x1ea1a8(0x18a)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x1c493a(Re,{'status':_0x55b7dd,'coordinator':_0x1611cd}),'children':_0x1c493a(_0x1ea1a8(0x1c0),{'className':_0x4fc2f0(_0x1ea1a8(0x1da),{'univer-cursor-not-allowed':_0x55b7dd===c[_0x1ea1a8(0x18a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x55b7dd!==c['OFFLINE']}),'type':_0x1ea1a8(0x1c0),'children':_0x1c493a(W,{'className':_0x1ea1a8(0x1ea)})})}):null;}function Re(_0x37a44d){const _0x147e21=_0x37c48f,{status:_0x4931d6,coordinator:_0x557276}=_0x37a44d;switch(_0x4931d6){case c[_0x147e21(0x1c3)]:return _0x1c493a($e,{'coordinator':_0x557276});case c[_0x147e21(0x1aa)]:return _0x1c493a(xe,{'coordinator':_0x557276});case c[_0x147e21(0x19e)]:return _0x1c493a(Pe,{'coordinator':_0x557276});case c['OFFLINE']:return _0x1c493a(Te,{});case c[_0x147e21(0x1a1)]:return _0x1c493a(Ae,{'coordinator':_0x557276});default:return null;}}function $e(_0x391410){const _0x40007c=_0x37c48f,{coordinator:_0x5774ff}=_0x391410;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x40007c(0x16b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x40007c(0x1a6)}),_0x1c493a(_0x47c0d7,{'onClick':()=>_0x5774ff[_0x40007c(0x1d9)](),'children':_0x40007c(0x18c)})]});}function xe(_0xcdaabc){const _0x131849=_0x37c48f,{coordinator:_0x5a040e}=_0xcdaabc;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x131849(0x16b),{'className':_0x131849(0x190),'children':_0x131849(0x17c)}),_0x1c493a(_0x47c0d7,{'onClick':()=>_0x5a040e['stopFollowing'](),'children':_0x131849(0x1ee)})]});}function Pe(_0x1887a6){const _0x347485=_0x37c48f,{coordinator:_0x1a1a0b}=_0x1887a6;return _0x151147(_0xc16d68,{'children':[_0x1c493a('div',{'className':_0x347485(0x190),'children':_0x347485(0x160)}),_0x1c493a(_0x47c0d7,{'variant':_0x347485(0x15b),'onClick':()=>_0x1a1a0b[_0x347485(0x195)](),'children':_0x347485(0x180)})]});}function Ae(_0x412684){const _0x4e2d21=_0x37c48f,{coordinator:_0x1d6da3}=_0x412684;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x4e2d21(0x16b),{'className':_0x4e2d21(0x190),'children':_0x4e2d21(0x1d8)}),_0x1c493a(_0x47c0d7,{'variant':_0x4e2d21(0x1c9),'onClick':()=>_0x1d6da3['stopPresenting'](),'children':_0x4e2d21(0x19c)})]});}function Te(){return _0x1c493a(_0xc16d68,{'children':'You\x27are\x20offline.'});}function _0xe409(_0xaa3080,_0x1dee92){_0xaa3080=_0xaa3080-0x152;const _0x33ed51=_0x33ed();let _0xe409db=_0x33ed51[_0xaa3080];return _0xe409db;}var Fe=Object[_0x37c48f(0x168)],He=(_0x230e79,_0x12bf92,_0x2e8b43,_0x205585)=>{const _0x88815=_0x37c48f;for(var _0x20393d=_0x205585>0x1?void 0x0:_0x205585?Fe(_0x12bf92,_0x2e8b43):_0x12bf92,_0x13c93a=_0x230e79[_0x88815(0x18e)]-0x1,_0x13d586;_0x13c93a>=0x0;_0x13c93a--)(_0x13d586=_0x230e79[_0x13c93a])&&(_0x20393d=_0x13d586(_0x20393d)||_0x20393d);return _0x20393d;},A=(_0x10527a,_0x4d9110)=>(_0x4994de,_0x51e168)=>_0x4d9110(_0x4994de,_0x51e168,_0x10527a);let m=class extends _0x56ac81{constructor(_0x4bb6d3,_0x5d888e){const _0x58644e=_0x37c48f;super(),this[_0x58644e(0x1c6)]=_0x4bb6d3,this[_0x58644e(0x175)]=_0x5d888e,this[_0x58644e(0x1ba)]();}[_0x37c48f(0x1ba)](){const _0x47fac4=_0x37c48f;this[_0x47fac4(0x1d3)](this[_0x47fac4(0x175)][_0x47fac4(0x158)](_0x1d340b[_0x47fac4(0x1c1)],()=>_0x573695(Le,this[_0x47fac4(0x1c6)])));}};m=He([A(0x0,_0x19be43(_0x26383e)),A(0x1,_0x5ded7e)],m);const ye=_0x37c48f(0x1ca),T={};var Ue=Object[_0x37c48f(0x168)],Ve=(_0x540eb4,_0x2a9b18,_0x455760,_0x812682)=>{for(var _0x37e0d4=_0x812682>0x1?void 0x0:_0x812682?Ue(_0x2a9b18,_0x455760):_0x2a9b18,_0x1f81a3=_0x540eb4['length']-0x1,_0x1ca031;_0x1f81a3>=0x0;_0x1f81a3--)(_0x1ca031=_0x540eb4[_0x1f81a3])&&(_0x37e0d4=_0x1ca031(_0x37e0d4)||_0x37e0d4);return _0x37e0d4;},je=(_0x225310,_0x4a766c)=>(_0x4352a8,_0x7b2082)=>_0x4a766c(_0x4352a8,_0x7b2082,_0x225310);let I=class extends _0x56ac81{constructor(_0x1ca355){const _0x21146b=_0x37c48f;super(),this[_0x21146b(0x196)]=_0x1ca355,this['_init']();}['_init'](){const _0x1e41bd=_0x37c48f;[_0x3e9230['id'],_0x10ff22['id'],_0x382fbd['id']][_0x1e41bd(0x184)](_0x442392=>{const _0x5a4ee6=_0x1e41bd;this[_0x5a4ee6(0x1d3)](this['_liveShareService']['registerSharedOperation'](_0x442392));});}};I=Ve([je(0x0,_0x19be43(L))],I);var Me=Object[_0x37c48f(0x17f)],ke=Object[_0x37c48f(0x168)],Ge=(_0x4d96d2,_0x46dd97,_0x578493)=>_0x46dd97 in _0x4d96d2?Me(_0x4d96d2,_0x46dd97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x578493}):_0x4d96d2[_0x46dd97]=_0x578493,We=(_0x124c68,_0x4ea24f,_0x4db16c,_0x23dbd8)=>{const _0x16e381=_0x37c48f;for(var _0x4bbc4c=_0x23dbd8>0x1?void 0x0:_0x23dbd8?ke(_0x4ea24f,_0x4db16c):_0x4ea24f,_0x8b876f=_0x124c68[_0x16e381(0x18e)]-0x1,_0x1828b3;_0x8b876f>=0x0;_0x8b876f--)(_0x1828b3=_0x124c68[_0x8b876f])&&(_0x4bbc4c=_0x1828b3(_0x4bbc4c)||_0x4bbc4c);return _0x4bbc4c;},F=(_0x2ea2ad,_0x5bd073)=>(_0x23bb14,_0x3baa36)=>_0x5bd073(_0x23bb14,_0x3baa36,_0x2ea2ad),B=(_0x177243,_0x12ee22,_0x5f074d)=>Ge(_0x177243,typeof _0x12ee22!='symbol'?_0x12ee22+'':_0x12ee22,_0x5f074d);const Ye=_0x37c48f(0x198);let b=class extends _0x541451{constructor(_0x42ba05=T,_0x18530,_0x4a93fd){const _0x22037d=_0x37c48f;super(),this[_0x22037d(0x1e1)]=_0x42ba05,this[_0x22037d(0x1c6)]=_0x18530,this[_0x22037d(0x1c5)]=_0x4a93fd;const {..._0x28cc9a}=_0x367c89({},T,this[_0x22037d(0x1e1)]);this[_0x22037d(0x1c5)][_0x22037d(0x16e)](ye,_0x28cc9a);}['onStarting'](){const _0x66a57b=_0x37c48f;_0x5a7450(this[_0x66a57b(0x1c6)],_0x3edeed([[L],[S],[I],[m]],this['_config']['override'])),_0x427e11(this[_0x66a57b(0x1c6)],[[I]]);}[_0x37c48f(0x1b9)](){const _0x2a4dcb=_0x37c48f;_0x427e11(this[_0x2a4dcb(0x1c6)],[[m]]);}};B(b,_0x37c48f(0x1a2),_0x339dac[_0x37c48f(0x1f3)]),B(b,'pluginName',Ye),b=We([_0x2d581b(_0x32695c),F(0x1,_0x19be43(_0x26383e)),F(0x2,_0x347dc0)],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 _0x41f8db=_0xc32e;(function(_0x572cc7,_0x116017){const _0x3bf89a=_0xc32e,_0x5d74d0=_0x572cc7();while(!![]){try{const _0x8e5cb9=-parseInt(_0x3bf89a(0xea))/0x1+parseInt(_0x3bf89a(0x153))/0x2*(-parseInt(_0x3bf89a(0x154))/0x3)+-parseInt(_0x3bf89a(0x102))/0x4+parseInt(_0x3bf89a(0xed))/0x5*(parseInt(_0x3bf89a(0x167))/0x6)+-parseInt(_0x3bf89a(0x12c))/0x7*(parseInt(_0x3bf89a(0x155))/0x8)+parseInt(_0x3bf89a(0x112))/0x9*(parseInt(_0x3bf89a(0x10e))/0xa)+parseInt(_0x3bf89a(0x164))/0xb;if(_0x8e5cb9===_0x116017)break;else _0x5d74d0['push'](_0x5d74d0['shift']());}catch(_0x28ea8e){_0x5d74d0['push'](_0x5d74d0['shift']());}}}(_0x5776,0x94505));var J=Object[_0x41f8db(0x118)],K=(_0x43f3a1,_0x5ccfbb,_0x490a2b)=>_0x5ccfbb in _0x43f3a1?J(_0x43f3a1,_0x5ccfbb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x490a2b}):_0x43f3a1[_0x5ccfbb]=_0x490a2b,u=(_0x241792,_0x27540b,_0x4af095)=>K(_0x241792,typeof _0x27540b!=_0x41f8db(0x108)?_0x27540b+'':_0x27540b,_0x4af095);import{Disposable as _0x5c2fbe,toDisposable as _0x11c1b7,IUniverInstanceService as _0x29b9d7,Inject as _0x1f30b7,Injector as _0x3c7c97,IConfigService as _0x2a7193,ICommandService as _0x4ae457,RxDisposable as _0x539958,UniverInstanceType as _0x2b487b,DisposableCollection as _0x586596,CommandType as _0xf756ae,DependentOn as _0x5c1a74,Plugin as _0x509f04,merge as _0x139f7f,registerDependencies as _0x1e8ec2,mergeOverrideWithDependencies as _0x2f956e,touchDependencies as _0x5ca662}from'@univerjs/core';import{useDependency as _0x1e7cc1,useObservable as _0x26668c,IUIPartsService as _0x48d747,BuiltInUIPart as _0x498183,connectInjector as _0x1d5dc4}from'@univerjs/ui';import{jsx as _0x237aec,jsxs as _0x404b74,Fragment as _0x19b1ee}from'react/jsx-runtime';import{Dropdown as _0x9f4a2d,clsx as _0x50baa9,Button as _0x56117f}from'@univerjs/design';import{useRef as _0x43c206,createElement as _0x40f45e,forwardRef as _0x589a99,useState as _0x56af5f,useEffect as _0x2de254}from'react';import{CollaborationEvent as _0x20aac5,parseProtocolChangeset as _0x49e96b}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x138d77,SessionStatus as _0x1a1fae,UniverCollaborationClientPlugin as _0x138530}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x16a3d2,SetWorksheetActiveOperation as _0xfda1ff}from'@univerjs/sheets';import{BehaviorSubject as _0x159a05,Subject as _0x1a5e77}from'rxjs';import{takeUntil as _0x33718d,throttleTime as _0x45f400}from'rxjs/operators';import{SetZoomRatioOperation as _0x635f74,SetScrollOperation as _0x556ff9}from'@univerjs/sheets-ui';function k({ref:_0x3e05cb,..._0x997ec4}){const _0x3afc3c=_0x41f8db,{icon:_0x282fbc,id:_0x6616bf,className:_0xd2e399,extend:_0x550dae,..._0x5b57e5}=_0x997ec4,_0x5085dd=(_0x3afc3c(0x11c)+_0x6616bf+'\x20'+(_0xd2e399||''))[_0x3afc3c(0x109)](),_0x222a0d=_0x43c206('_'+Oe());return G(_0x282fbc,''+_0x6616bf,{'defIds':_0x282fbc[_0x3afc3c(0x159)],'idSuffix':_0x222a0d['current']},{'ref':_0x3e05cb,'className':_0x5085dd,..._0x5b57e5},_0x550dae);}function G(_0x51b1f1,_0xdcf45c,_0x539a19,_0x1b7909,_0x446930){const _0x322013=_0x41f8db;return _0x40f45e(_0x51b1f1[_0x322013(0x144)],{'key':_0xdcf45c,...be(_0x51b1f1,_0x539a19,_0x446930),..._0x1b7909},(Ee(_0x51b1f1,_0x539a19)[_0x322013(0x149)]||[])['map']((_0x3cfcfc,_0x5958e2)=>G(_0x3cfcfc,_0xdcf45c+'-'+_0x51b1f1[_0x322013(0x144)]+'-'+_0x5958e2,_0x539a19,void 0x0,_0x446930)));}function be(_0x271e5a,_0x3870fa,_0x178969){const _0x5468b0=_0x41f8db,_0x5e2b62={..._0x271e5a[_0x5468b0(0x15d)]};_0x178969!=null&&_0x178969[_0x5468b0(0x15b)]&&_0x5e2b62[_0x5468b0(0x14b)]===_0x5468b0(0x15b)&&(_0x5e2b62[_0x5468b0(0x14b)]=_0x178969['colorChannel1']),_0x271e5a[_0x5468b0(0x144)]===_0x5468b0(0x104)&&_0x5e2b62['id']&&(_0x5e2b62['id']=_0x5e2b62['id']+_0x3870fa['idSuffix']),Object[_0x5468b0(0xe4)](_0x5e2b62)[_0x5468b0(0x147)](([_0x359495,_0x1a73c0])=>{const _0x55f37e=_0x5468b0;_0x359495===_0x55f37e(0x104)&&typeof _0x1a73c0==_0x55f37e(0x12a)&&(_0x5e2b62[_0x359495]=_0x1a73c0[_0x55f37e(0x130)](/url\(#(.*)\)/,_0x55f37e(0x111)+_0x3870fa['idSuffix']+')'));});const {defIds:_0xedd0bd}=_0x3870fa;return!_0xedd0bd||_0xedd0bd[_0x5468b0(0x17d)]===0x0||(_0x271e5a[_0x5468b0(0x144)]===_0x5468b0(0x138)&&_0x5e2b62[_0x5468b0(0x11f)]&&(_0x5e2b62['xlink:href']=_0x5e2b62[_0x5468b0(0x11f)]+_0x3870fa['idSuffix']),Object['entries'](_0x5e2b62)[_0x5468b0(0x147)](([_0x402d02,_0x164f93])=>{const _0x2403e0=_0x5468b0;typeof _0x164f93=='string'&&(_0x5e2b62[_0x402d02]=_0x164f93[_0x2403e0(0x130)](/url\(#(.*)\)/,'url(#$1'+_0x3870fa[_0x2403e0(0xe5)]+')'));})),_0x5e2b62;}function Ee(_0x4c7a5f,_0x2a3fc1){const _0x4752f5=_0x41f8db;var _0x388046;const {defIds:_0x471465}=_0x2a3fc1;return!_0x471465||_0x471465[_0x4752f5(0x17d)]===0x0?_0x4c7a5f:_0x4c7a5f[_0x4752f5(0x144)]===_0x4752f5(0x12d)&&((_0x388046=_0x4c7a5f[_0x4752f5(0x149)])!=null&&_0x388046[_0x4752f5(0x17d)])?{..._0x4c7a5f,'children':_0x4c7a5f[_0x4752f5(0x149)][_0x4752f5(0x114)](_0x20b831=>typeof _0x20b831[_0x4752f5(0x15d)]['id']==_0x4752f5(0x12a)&&_0x471465&&_0x471465[_0x4752f5(0x165)](_0x20b831['attrs']['id'])?{..._0x20b831,'attrs':{..._0x20b831[_0x4752f5(0x15d)],'id':_0x20b831[_0x4752f5(0x15d)]['id']+_0x2a3fc1[_0x4752f5(0xe5)]}}:_0x20b831)}:_0x4c7a5f;}function Oe(){const _0x594764=_0x41f8db;return Math[_0x594764(0x121)]()[_0x594764(0x12f)](0x24)[_0x594764(0xe0)](0x2,0x8);}k[_0x41f8db(0xf7)]=_0x41f8db(0x16b);const we={'tag':_0x41f8db(0x11e),'attrs':{'xmlns':_0x41f8db(0x171),'fill':_0x41f8db(0xe8),'viewBox':'0\x200\x2017\x2017','width':_0x41f8db(0x133),'height':_0x41f8db(0x133)},'children':[{'tag':_0x41f8db(0x181),'attrs':{'fill':_0x41f8db(0x163),'d':_0x41f8db(0x15c)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x41f8db(0xe7)}}]},W=_0x589a99(function(_0x171f65,_0x464ed8){const _0x3e4f11=_0x41f8db;return _0x40f45e(k,Object['assign']({},_0x171f65,{'id':_0x3e4f11(0xf3),'ref':_0x464ed8,'icon':we}));});W[_0x41f8db(0xf7)]=_0x41f8db(0x10d);class L extends _0x5c2fbe{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x41f8db(0x158)](_0x589ccd){const _0x3d199f=_0x41f8db;return this['_sharedOperations']['add'](_0x589ccd),_0x11c1b7(()=>this[_0x3d199f(0x148)][_0x3d199f(0x152)](_0x589ccd));}[_0x41f8db(0x161)](_0x9d6a96){const _0x3b3589=_0x41f8db;return this[_0x3b3589(0x106)][_0x3b3589(0x119)](_0x9d6a96),_0x11c1b7(()=>this[_0x3b3589(0x106)][_0x3b3589(0x152)](_0x9d6a96));}[_0x41f8db(0x169)](_0x1c7565){const _0xe0689a=_0x41f8db;return this[_0xe0689a(0x148)][_0xe0689a(0xe1)](_0x1c7565);}['getInitialStates'](_0x4e4ddc){const _0x5c3e09=_0x41f8db;return Array['from'](this[_0x5c3e09(0x106)])['map'](_0x3c08f5=>_0x3c08f5(_0x4e4ddc));}}var Ne=Object[_0x41f8db(0x162)],Y=(_0x3e0895,_0x4dc4ab,_0x3e2985,_0x43d4ab)=>{const _0xd9943f=_0x41f8db;for(var _0x94acf5=_0x43d4ab>0x1?void 0x0:_0x43d4ab?Ne(_0x4dc4ab,_0x3e2985):_0x4dc4ab,_0x31311b=_0x3e0895[_0xd9943f(0x17d)]-0x1,_0x2b0368;_0x31311b>=0x0;_0x31311b--)(_0x2b0368=_0x3e0895[_0x31311b])&&(_0x94acf5=_0x2b0368(_0x94acf5)||_0x94acf5);return _0x94acf5;},_=(_0x43bc8e,_0x19f561)=>(_0x5c8e35,_0xcb02fb)=>_0x19f561(_0x5c8e35,_0xcb02fb,_0x43bc8e);let S=class extends _0x539958{constructor(_0x11db45,_0x4cffa6,_0x144201){const _0x8bc562=_0x41f8db;super(),u(this,_0x8bc562(0x172),new Map()),(this[_0x8bc562(0x168)]=_0x11db45,this['_injector']=_0x4cffa6,this[_0x8bc562(0x16d)]=_0x144201,this[_0x8bc562(0x124)]());}async['getLiveShareCoordinator'](_0x2def8b){const _0x13fc42=_0x41f8db;return this['_entities']['has'](_0x2def8b)||await this[_0x13fc42(0x183)](_0x2def8b),this['_entities']['get'](_0x2def8b);}['getLiveShareCoordinatorSync'](_0x116bef){const _0x38ff2c=_0x41f8db;var _0x1198d2;return(_0x1198d2=this[_0x38ff2c(0x172)][_0x38ff2c(0x116)](_0x116bef))!=null?_0x1198d2:null;}[_0x41f8db(0x124)](){const _0x31e805=_0x41f8db;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2b487b[_0x31e805(0x13b)])[_0x31e805(0xf5)](_0x33718d(this[_0x31e805(0x151)]))['subscribe'](async _0x2f12d9=>{const _0xbb51d7=_0x31e805,_0x130a08=_0x2f12d9[_0xbb51d7(0x17f)]();this[_0xbb51d7(0x172)]['has'](_0x130a08)||this[_0xbb51d7(0x183)](_0x130a08);}),this[_0x31e805(0x168)][_0x31e805(0x178)](_0x2b487b['UNIVER_SHEET'])[_0x31e805(0xf5)](_0x33718d(this[_0x31e805(0x151)]))[_0x31e805(0x142)](_0x3d0404=>{const _0x50cc83=_0x31e805,_0x3d17d6=_0x3d0404[_0x50cc83(0x17f)](),_0x30debf=this[_0x50cc83(0x172)][_0x50cc83(0x116)](_0x3d17d6);_0x30debf==null||_0x30debf['dispose']();});}async[_0x41f8db(0x183)](_0x2fe34e){const _0xd93fc8=_0x41f8db,_0x2f5b35=await this[_0xd93fc8(0x16d)][_0xd93fc8(0x14f)](_0x2fe34e),_0x42ef2d=this[_0xd93fc8(0x176)]['createInstance'](N,_0x2fe34e,_0x2f5b35);return _0x42ef2d['init'](),this['_entities']['set'](_0x2fe34e,_0x42ef2d),_0x42ef2d;}};S=Y([_(0x0,_0x29b9d7),_(0x1,_0x1f30b7(_0x3c7c97)),_(0x2,_0x1f30b7(_0x138d77))],S);var c=(_0x158c84=>(_0x158c84[_0x41f8db(0xfc)]=_0x41f8db(0x146),_0x158c84[_0x41f8db(0x141)]=_0x41f8db(0xfd),_0x158c84[_0x41f8db(0x10b)]=_0x41f8db(0x14c),_0x158c84[_0x41f8db(0x136)]=_0x41f8db(0xeb),_0x158c84[_0x41f8db(0xef)]=_0x41f8db(0x13a),_0x158c84))(c||{});const Ce=_0x41f8db(0x11d),De=0xc8;let N=class extends _0x539958{constructor(_0x5812f4,_0x20cdba,_0x53496a,_0x50798f,_0x2c065a){const _0x481069=_0x41f8db;super(),u(this,_0x481069(0x129),new _0x159a05(_0x481069(0xfd))),u(this,_0x481069(0x14a),this['_status$'][_0x481069(0x16e)]()),u(this,'_init',!0x1),u(this,_0x481069(0x140),null),u(this,_0x481069(0xfb),null),(this[_0x481069(0x17b)]=_0x5812f4,this['_collabSession']=_0x20cdba,this['_configService']=_0x53496a,this[_0x481069(0x105)]=_0x50798f,this['_commandService']=_0x2c065a);}get['_status'](){const _0x1f1b12=_0x41f8db;return this[_0x1f1b12(0x129)][_0x1f1b12(0x16a)]();}[_0x41f8db(0x174)](){const _0x5611c6=_0x41f8db;var _0x27d611;(_0x27d611=this['_commandDisposable'])==null||_0x27d611[_0x5611c6(0x174)](),this[_0x5611c6(0x129)][_0x5611c6(0xf4)](_0x5611c6(0xfd)),this[_0x5611c6(0x129)][_0x5611c6(0x180)]();}[_0x41f8db(0xf2)](){const _0x100fa7=_0x41f8db;return this[_0x100fa7(0x182)];}[_0x41f8db(0xf1)](){const _0x152cf5=_0x41f8db;this[_0x152cf5(0x124)]||(this[_0x152cf5(0x124)]=!0x0,this[_0x152cf5(0x103)]['sessionStatus$'][_0x152cf5(0xf5)](_0x33718d(this[_0x152cf5(0x151)]))[_0x152cf5(0x142)](_0x49de64=>{switch(_0x49de64){case _0x1a1fae['OFFLINE']:this['_handleOffline']();break;case _0x1a1fae['ONLINE']:this['_handleOnline']();break;}}),this[_0x152cf5(0x103)]['event$'][_0x152cf5(0xf5)](_0x33718d(this[_0x152cf5(0x151)]))[_0x152cf5(0x142)](_0x2b22ef=>{const _0x2b8530=_0x152cf5,{eventID:_0x2c372f}=_0x2b22ef;switch(_0x2c372f){case _0x20aac5['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x2b22ef);break;case _0x20aac5['LIVESHARE_OPERATION']:this[_0x2b8530(0x122)](_0x2b22ef);break;case _0x20aac5['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x20aac5[_0x2b8530(0xfe)]:this[_0x2b8530(0x15e)](_0x2b22ef);break;}}));}[_0x41f8db(0x10f)](){const _0x5e42c5=_0x41f8db;this[_0x5e42c5(0x103)][_0x5e42c5(0x177)]({'eventID':_0x20aac5[_0x5e42c5(0x12b)],'data':{'unitID':this[_0x5e42c5(0x17b)],'userID':this['_collabSession'][_0x5e42c5(0xdf)]()}},this[_0x5e42c5(0x17b)]);}['stopPresenting'](){const _0x5d9bd6=_0x41f8db;this[_0x5d9bd6(0x182)]===_0x5d9bd6(0x13a)&&(this['_status$'][_0x5d9bd6(0xf4)](_0x5d9bd6(0xfd)),this['_collabSession'][_0x5d9bd6(0x177)]({'eventID':_0x20aac5[_0x5d9bd6(0x110)],'data':{'unitID':this[_0x5d9bd6(0x17b)]}},this[_0x5d9bd6(0x17b)]));}[_0x41f8db(0x17c)](){const _0x36291c=_0x41f8db;this[_0x36291c(0x182)]===_0x36291c(0xeb)&&(this[_0x36291c(0x129)][_0x36291c(0xf4)]('following'),this[_0x36291c(0x173)]());}['stopFollowing'](){const _0x426db3=_0x41f8db;this[_0x426db3(0x182)]===_0x426db3(0x14c)&&this[_0x426db3(0x132)]();}[_0x41f8db(0x175)](_0x43e74a){const _0x11c10c=_0x41f8db,{presenter:_0x1e8e58}=_0x43e74a[_0x11c10c(0x11b)],_0x48628c=this[_0x11c10c(0x103)][_0x11c10c(0xdf)]();this['_presenter']=_0x1e8e58,_0x1e8e58===_0x48628c?(this[_0x11c10c(0x132)](),this[_0x11c10c(0xff)]()):this['_status']!==_0x11c10c(0xeb)&&(this[_0x11c10c(0x15a)](),this[_0x11c10c(0x173)]());}['_fetchOperations'](){const _0x22986b=_0x41f8db,_0x3bd124={'eventID':_0x20aac5[_0x22986b(0x128)]};this[_0x22986b(0x103)][_0x22986b(0x177)](_0x3bd124,this[_0x22986b(0x17b)]);}['_handleTerminate'](){const _0x1a79ba=_0x41f8db;this[_0x1a79ba(0xfb)]=null,this['_status']!==_0x1a79ba(0x13a)&&this[_0x1a79ba(0x113)]();}[_0x41f8db(0x15e)](_0x1418f3){const _0x6b2bd8=_0x41f8db;if(this['_status']===_0x6b2bd8(0x14c)&&this[_0x6b2bd8(0xfb)]===_0x1418f3[_0x6b2bd8(0x11b)][_0x6b2bd8(0x16c)]){const _0x1a34ef=_0x49e96b(_0x1418f3[_0x6b2bd8(0x11b)])[_0x6b2bd8(0xec)][_0x6b2bd8(0x126)]()['find'](_0x156a61=>_0x156a61['id']===_0x16a3d2['id']);if(_0x1a34ef){const _0x29e531=_0x1a34ef['params'][_0x6b2bd8(0x127)],_0x438794=_0x1a34ef[_0x6b2bd8(0x13d)][_0x6b2bd8(0x100)]['id'];setTimeout(()=>{const _0x4c5236=_0x6b2bd8;this[_0x4c5236(0x13f)][_0x4c5236(0xee)](_0xfda1ff['id'],{'unitId':_0x29e531,'subUnitId':_0x438794},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x5ec2ef=_0x41f8db;this[_0x5ec2ef(0x129)][_0x5ec2ef(0xf4)]('presenting');const _0x47e5e9=new Map(),_0x44a4cf=this[_0x5ec2ef(0x140)]=new _0x586596();_0x44a4cf[_0x5ec2ef(0x119)](_0x11c1b7(()=>{const _0x14f6f6=_0x5ec2ef;_0x47e5e9[_0x14f6f6(0x147)](_0x2e6ff9=>_0x2e6ff9['complete']()),_0x47e5e9['clear']();})),_0x44a4cf['add'](this[_0x5ec2ef(0x13f)][_0x5ec2ef(0xf0)](_0x4cdb52=>{const _0x2d9a3d=_0x5ec2ef;var _0x40562b;if(_0x4cdb52['type']!==_0xf756ae['OPERATION']||!this[_0x2d9a3d(0x105)][_0x2d9a3d(0x169)](_0x4cdb52['id']))return;const {id:_0x313d87}=_0x4cdb52;let _0x47d23;_0x47e5e9[_0x2d9a3d(0xe1)](_0x313d87)?_0x47d23=_0x47e5e9[_0x2d9a3d(0x116)](_0x313d87):(_0x47d23=new _0x1a5e77(),_0x47e5e9[_0x2d9a3d(0x17e)](_0x313d87,_0x47d23),_0x47d23[_0x2d9a3d(0xf5)](_0x45f400((_0x40562b=this['_configService'][_0x2d9a3d(0xfa)](Ce))!=null?_0x40562b:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2d9a3d(0x142)](_0x34bf53=>{const _0x6c3b97=_0x2d9a3d;this['_collabSession'][_0x6c3b97(0x177)]({'eventID':_0x20aac5[_0x6c3b97(0xde)],'data':{'unitID':this[_0x6c3b97(0x17b)],'operations':{[_0x34bf53['id']]:{'id':_0x34bf53['id'],'params':JSON[_0x6c3b97(0x139)](_0x34bf53[_0x6c3b97(0x13d)])}}}},this[_0x6c3b97(0x17b)]);})),_0x47d23[_0x2d9a3d(0xf4)](_0x4cdb52);})),this[_0x5ec2ef(0x105)][_0x5ec2ef(0x137)](this[_0x5ec2ef(0x17b)])[_0x5ec2ef(0x147)](_0xcb4a79=>this[_0x5ec2ef(0x103)][_0x5ec2ef(0x177)]({'eventID':_0x20aac5[_0x5ec2ef(0xde)],'data':{'unitID':this[_0x5ec2ef(0x17b)],'operations':{[_0xcb4a79['id']]:{'id':_0xcb4a79['id'],'params':JSON['stringify'](_0xcb4a79[_0x5ec2ef(0x13d)])}}}},this[_0x5ec2ef(0x17b)]));}[_0x41f8db(0x15a)](){const _0x2c9588=_0x41f8db;var _0x4da08c;this['_status$'][_0x2c9588(0xf4)](_0x2c9588(0xfd)),(_0x4da08c=this[_0x2c9588(0x140)])==null||_0x4da08c[_0x2c9588(0x174)](),this[_0x2c9588(0x140)]=null;}[_0x41f8db(0x173)](){const _0x824f34=_0x41f8db;var _0x320625;(_0x320625=this[_0x824f34(0x140)])==null||_0x320625[_0x824f34(0x174)](),this[_0x824f34(0x129)][_0x824f34(0xf4)](_0x824f34(0x14c));}[_0x41f8db(0x113)](){const _0x1387ba=_0x41f8db;var _0x25fe1a;this['_status$'][_0x1387ba(0xf4)](_0x1387ba(0xfd)),(_0x25fe1a=this[_0x1387ba(0x140)])==null||_0x25fe1a[_0x1387ba(0x174)](),this[_0x1387ba(0x140)]=null;}['_stopFollowing'](){const _0x48fd63=_0x41f8db;var _0x1c195d;this['_status$'][_0x48fd63(0xf4)](_0x48fd63(0xeb)),(_0x1c195d=this[_0x48fd63(0x140)])==null||_0x1c195d[_0x48fd63(0x174)]();}[_0x41f8db(0x122)](_0x171c7e){const _0x42edcc=_0x41f8db;if([_0x42edcc(0x13a),_0x42edcc(0xeb),_0x42edcc(0x146)][_0x42edcc(0x165)](this['_status'])||!_0x171c7e['data'][_0x42edcc(0x123)]||_0x171c7e[_0x42edcc(0x11b)][_0x42edcc(0x123)]===this['_collabSession'][_0x42edcc(0xdf)]())return;this[_0x42edcc(0x182)]===_0x42edcc(0xfd)&&this['_startFollowing']();const _0x35da6b=_0x171c7e[_0x42edcc(0x11b)]['operations'];Object[_0x42edcc(0x179)](_0x35da6b)[_0x42edcc(0x147)](_0x11bc9a=>{const _0x11b314=_0x42edcc;this['_commandService'][_0x11b314(0xee)](_0x11bc9a['id'],_0x11bc9a[_0x11b314(0x13d)]?JSON[_0x11b314(0x145)](_0x11bc9a[_0x11b314(0x13d)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x499a5c=_0x41f8db;var _0x7dbe1f;this['_status$'][_0x499a5c(0xf4)](_0x499a5c(0x146)),(_0x7dbe1f=this['_commandDisposable'])==null||_0x7dbe1f[_0x499a5c(0x174)]();}[_0x41f8db(0x115)](){const _0x36e934=_0x41f8db;this[_0x36e934(0x129)][_0x36e934(0xf4)]('idle'),this[_0x36e934(0x16f)]();}};N=Y([_(0x2,_0x2a7193),_(0x3,_0x1f30b7(L)),_(0x4,_0x4ae457)],N);function Le(){const _0xdefc3c=_0x41f8db,_0x35368b=_0x1e7cc1(S),_0x4e4129=_0x1e7cc1(_0x29b9d7),_0x54a682=_0x26668c(()=>_0x4e4129[_0xdefc3c(0xe9)](_0x2b487b[_0xdefc3c(0x13b)]),void 0x0,!0x1,[]),[_0x4f851c,_0x310911]=_0x56af5f(null),[_0x3cbbed,_0x1b1444]=_0x56af5f(c[_0xdefc3c(0x141)]),_0x5f22e0=_0x43c206(null);return _0x2de254(()=>(_0x54a682&&_0x35368b[_0xdefc3c(0xe2)](_0x54a682[_0xdefc3c(0x17f)]())[_0xdefc3c(0x13c)](_0x2c2dbe=>{const _0x59b848=_0xdefc3c;_0x310911(_0x2c2dbe),_0x5f22e0[_0x59b848(0xe6)]=_0x2c2dbe[_0x59b848(0x14a)][_0x59b848(0x142)](_0x5a0d64=>{_0x1b1444(_0x5a0d64);});}),()=>{const _0x30eb44=_0xdefc3c;var _0x1025c0;(_0x1025c0=_0x5f22e0[_0x30eb44(0xe6)])==null||_0x1025c0[_0x30eb44(0x14d)](),_0x5f22e0[_0x30eb44(0xe6)]=null;}),[_0x54a682,_0x35368b]),_0x4f851c?_0x237aec(_0x9f4a2d,{'align':_0xdefc3c(0x150),'disabled':_0x3cbbed===c['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x237aec(Re,{'status':_0x3cbbed,'coordinator':_0x4f851c}),'children':_0x237aec(_0xdefc3c(0x107),{'className':_0x50baa9(_0xdefc3c(0x120),{'univer-cursor-not-allowed':_0x3cbbed===c[_0xdefc3c(0xfc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3cbbed!==c[_0xdefc3c(0xfc)]}),'type':_0xdefc3c(0x107),'children':_0x237aec(W,{'className':_0xdefc3c(0x13e)})})}):null;}function Re(_0x232e0a){const _0x5ef5ff=_0x41f8db,{status:_0x20b0b4,coordinator:_0x3a0d83}=_0x232e0a;switch(_0x20b0b4){case c[_0x5ef5ff(0x141)]:return _0x237aec($e,{'coordinator':_0x3a0d83});case c[_0x5ef5ff(0x10b)]:return _0x237aec(xe,{'coordinator':_0x3a0d83});case c[_0x5ef5ff(0x136)]:return _0x237aec(Pe,{'coordinator':_0x3a0d83});case c[_0x5ef5ff(0xfc)]:return _0x237aec(Te,{});case c[_0x5ef5ff(0xef)]:return _0x237aec(Ae,{'coordinator':_0x3a0d83});default:return null;}}function $e(_0x42f458){const _0x46c09d=_0x41f8db,{coordinator:_0x2403b9}=_0x42f458;return _0x404b74(_0x19b1ee,{'children':[_0x237aec(_0x46c09d(0x11a),{'className':_0x46c09d(0xf9),'children':'Present\x20this\x20document'}),_0x237aec(_0x56117f,{'onClick':()=>_0x2403b9[_0x46c09d(0x10f)](),'children':_0x46c09d(0x143)})]});}function xe(_0x2512cf){const _0x1bbc62=_0x41f8db,{coordinator:_0x3dc151}=_0x2512cf;return _0x404b74(_0x19b1ee,{'children':[_0x237aec(_0x1bbc62(0x11a),{'className':_0x1bbc62(0xf9),'children':_0x1bbc62(0x160)}),_0x237aec(_0x56117f,{'onClick':()=>_0x3dc151[_0x1bbc62(0x10c)](),'children':'Stop\x20following'})]});}function Pe(_0x43093c){const _0x5c5230=_0x41f8db,{coordinator:_0xcde7de}=_0x43093c;return _0x404b74(_0x19b1ee,{'children':[_0x237aec('div',{'className':_0x5c5230(0xf9),'children':_0x5c5230(0x117)}),_0x237aec(_0x56117f,{'variant':_0x5c5230(0x135),'onClick':()=>_0xcde7de[_0x5c5230(0x17c)](),'children':_0x5c5230(0x101)})]});}function Ae(_0x56ff22){const _0x3296e9=_0x41f8db,{coordinator:_0x9953fd}=_0x56ff22;return _0x404b74(_0x19b1ee,{'children':[_0x237aec(_0x3296e9(0x11a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x237aec(_0x56117f,{'variant':_0x3296e9(0x15f),'onClick':()=>_0x9953fd[_0x3296e9(0x17a)](),'children':_0x3296e9(0x125)})]});}function Te(){return _0x237aec(_0x19b1ee,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x41f8db(0x162)],He=(_0x461681,_0x3fbe8c,_0x4e003b,_0x422798)=>{const _0x5a7033=_0x41f8db;for(var _0x201250=_0x422798>0x1?void 0x0:_0x422798?Fe(_0x3fbe8c,_0x4e003b):_0x3fbe8c,_0x280202=_0x461681[_0x5a7033(0x17d)]-0x1,_0x438c58;_0x280202>=0x0;_0x280202--)(_0x438c58=_0x461681[_0x280202])&&(_0x201250=_0x438c58(_0x201250)||_0x201250);return _0x201250;},A=(_0x530ccf,_0x4eb77f)=>(_0x2d0770,_0x34edac)=>_0x4eb77f(_0x2d0770,_0x34edac,_0x530ccf);let m=class extends _0x5c2fbe{constructor(_0x34cf70,_0x5e8717){const _0x1e361d=_0x41f8db;super(),this[_0x1e361d(0x176)]=_0x34cf70,this[_0x1e361d(0x156)]=_0x5e8717,this['_mountLiveShare']();}[_0x41f8db(0x157)](){const _0x34ce8b=_0x41f8db;this[_0x34ce8b(0xf6)](this['_uiPartsService'][_0x34ce8b(0xf8)](_0x498183[_0x34ce8b(0x12e)],()=>_0x1d5dc4(Le,this['_injector'])));}};function _0x5776(){const _0x45704c=['mutations','435tNyfWX','executeCommand','PRESENTING','onCommandExecuted','init','getStatus','live-share-icon','next','pipe','disposeWithMe','displayName','registerComponent','univer-mb-3\x20univer-w-full\x20univer-text-sm','getConfig','_presenter','OFFLINE','idle','NEW_CHANGESETS','_startPresenting','sheet','Start\x20following','619216uDSXQm','_collabSession','mask','_liveShareService','_reporters','button','symbol','trim','pluginName','FOLLOWING','stopFollowing','LiveShareIcon','314810lmeKPD','tryStartPresenting','LIVESHARE_TERMINATE','url(#$1','72JCipqF','_beIdle','map','_handleOnline','get','You\x27re\x20not\x20following\x20the\x20presenter','defineProperty','add','div','data','univerjs-icon\x20univerjs-icon-','SAME_OPERATION_SHARE_INTERVAL','svg','xlink:href','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','random','_handleOperation','presenter','_init','Stop\x20presenting','reverse','unitId','LIVESHARE_FETCH_OPERATIONS','_status$','string','LIVESHARE_REQUEST_HOST','245HOEIFV','defs','HEADER_MENU','toString','replace','onRendered','_stopFollowing','1em','onStarting','text','NOT_FOLLOWING','getInitialStates','use','stringify','presenting','UNIVER_SHEET','then','params','univer-size-4','_commandService','_commandDisposable','IDLE','subscribe','Start','tag','parse','offline','forEach','_sharedOperations','children','status$','fill','following','unsubscribe','UNIVER_LIVE_SHARE_PLUGIN','requireSession','end','dispose$','delete','1546rBRJQS','3588lWpMGy','61024KyyssT','_uiPartsService','_mountLiveShare','registerSharedOperation','defIds','_stopPresenting','colorChannel1','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','attrs','_handleNewChangeSets','default','You\x27re\x20following\x20the\x20presenter','registerInitialStateReporter','getOwnPropertyDescriptor','currentColor','19741183jmCzeX','includes','_config','30882zYHuee','_univerInstanceService','shouldShareOperation','getValue','UniverIcon','memberID','_collabSessionService','asObservable','_fetchOperations','_configService','http://www.w3.org/2000/svg','_entities','_startFollowing','dispose','_handleNewHost','_injector','send','getTypeOfUnitDisposed$','values','stopPresenting','_unitID','startFollowing','length','set','getUnitId','complete','path','_status','_startLiveShareCoordinator','LIVESHARE_OPERATION','getMemberID','substring','has','getLiveShareCoordinator','setConfig','entries','idSuffix','current','evenodd','none','getCurrentTypeOfUnit$','540505ylwPqF','not-following'];_0x5776=function(){return _0x45704c;};return _0x5776();}m=He([A(0x0,_0x1f30b7(_0x3c7c97)),A(0x1,_0x48d747)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x3c79c1,_0x4bcb92,_0x32e881,_0x2a41d8)=>{const _0x31228d=_0x41f8db;for(var _0x3fe26a=_0x2a41d8>0x1?void 0x0:_0x2a41d8?Ue(_0x4bcb92,_0x32e881):_0x4bcb92,_0x35a83a=_0x3c79c1[_0x31228d(0x17d)]-0x1,_0x44b8cd;_0x35a83a>=0x0;_0x35a83a--)(_0x44b8cd=_0x3c79c1[_0x35a83a])&&(_0x3fe26a=_0x44b8cd(_0x3fe26a)||_0x3fe26a);return _0x3fe26a;},je=(_0x160c16,_0x1302f0)=>(_0x29ca03,_0xf129cb)=>_0x1302f0(_0x29ca03,_0xf129cb,_0x160c16);let I=class extends _0x5c2fbe{constructor(_0x8f87b6){const _0x3f6896=_0x41f8db;super(),this[_0x3f6896(0x105)]=_0x8f87b6,this[_0x3f6896(0x124)]();}[_0x41f8db(0x124)](){const _0x540743=_0x41f8db;[_0x635f74['id'],_0x556ff9['id'],_0xfda1ff['id']][_0x540743(0x147)](_0x361ab9=>{const _0x3b1807=_0x540743;this['disposeWithMe'](this[_0x3b1807(0x105)][_0x3b1807(0x158)](_0x361ab9));});}};I=Ve([je(0x0,_0x1f30b7(L))],I);var Me=Object[_0x41f8db(0x118)],ke=Object[_0x41f8db(0x162)],Ge=(_0x2409b7,_0x15cb08,_0x32ddf6)=>_0x15cb08 in _0x2409b7?Me(_0x2409b7,_0x15cb08,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32ddf6}):_0x2409b7[_0x15cb08]=_0x32ddf6,We=(_0x34ea07,_0x32b203,_0x3c8c38,_0x24130d)=>{for(var _0x210a8e=_0x24130d>0x1?void 0x0:_0x24130d?ke(_0x32b203,_0x3c8c38):_0x32b203,_0x455a70=_0x34ea07['length']-0x1,_0x446546;_0x455a70>=0x0;_0x455a70--)(_0x446546=_0x34ea07[_0x455a70])&&(_0x210a8e=_0x446546(_0x210a8e)||_0x210a8e);return _0x210a8e;},F=(_0x118285,_0x5335bc)=>(_0x4b235a,_0x55e72b)=>_0x5335bc(_0x4b235a,_0x55e72b,_0x118285),B=(_0x283453,_0x5e5934,_0x168056)=>Ge(_0x283453,typeof _0x5e5934!='symbol'?_0x5e5934+'':_0x5e5934,_0x168056);function _0xc32e(_0x293d3b,_0x368ed1){_0x293d3b=_0x293d3b-0xde;const _0x5776ec=_0x5776();let _0xc32e37=_0x5776ec[_0x293d3b];return _0xc32e37;}const Ye=_0x41f8db(0x14e);let b=class extends _0x509f04{constructor(_0x15b42a=T,_0x19b6f1,_0x3ae34){const _0x367d7e=_0x41f8db;super(),this[_0x367d7e(0x166)]=_0x15b42a,this[_0x367d7e(0x176)]=_0x19b6f1,this[_0x367d7e(0x170)]=_0x3ae34;const {..._0x266c3c}=_0x139f7f({},T,this[_0x367d7e(0x166)]);this[_0x367d7e(0x170)][_0x367d7e(0xe3)](ye,_0x266c3c);}[_0x41f8db(0x134)](){const _0x128506=_0x41f8db;_0x1e8ec2(this['_injector'],_0x2f956e([[L],[S],[I],[m]],this['_config']['override'])),_0x5ca662(this[_0x128506(0x176)],[[I]]);}[_0x41f8db(0x131)](){const _0x12c0f6=_0x41f8db;_0x5ca662(this[_0x12c0f6(0x176)],[[m]]);}};B(b,'type',_0x2b487b['UNIVER_UNKNOWN']),B(b,_0x41f8db(0x10a),Ye),b=We([_0x5c1a74(_0x138530),F(0x1,_0x1f30b7(_0x3c7c97)),F(0x2,_0x2a7193)],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 _0x449cc1=_0x18bb;(function(_0x2adaa0,_0x1ef814){const _0x226a4e=_0x18bb,_0x5c517f=_0x2adaa0();while(!![]){try{const _0x5572f8=parseInt(_0x226a4e(0xcd))/0x1*(parseInt(_0x226a4e(0xd6))/0x2)+parseInt(_0x226a4e(0xdd))/0x3*(-parseInt(_0x226a4e(0xce))/0x4)+-parseInt(_0x226a4e(0xc3))/0x5+-parseInt(_0x226a4e(0xbd))/0x6+parseInt(_0x226a4e(0xca))/0x7+-parseInt(_0x226a4e(0xcb))/0x8*(-parseInt(_0x226a4e(0xcc))/0x9)+-parseInt(_0x226a4e(0xd7))/0xa*(-parseInt(_0x226a4e(0xd2))/0xb);if(_0x5572f8===_0x1ef814)break;else _0x5c517f['push'](_0x5c517f['shift']());}catch(_0x27f214){_0x5c517f['push'](_0x5c517f['shift']());}}}(_0x2f57,0xa42fa));import{LiveShareController as _0x32dbf9,LiveShareStatus as _0x40216c}from'@univerjs-pro/live-share';function _0x18bb(_0x2b684f,_0x11268a){_0x2b684f=_0x2b684f-0xbd;const _0x2f576a=_0x2f57();let _0x18bbe3=_0x2f576a[_0x2b684f];return _0x18bbe3;}import{IRenderManagerService as _0x5a097a}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x5f3cff}from'@univerjs/sheets';import{SetScrollOperation as _0x199512}from'@univerjs/sheets-ui';import{FRange as _0x3b8a7c}from'@univerjs/sheets/facade';import{FUniver as _0x1de699,FEnum as _0xaae706}from'@univerjs/core/facade';class I extends _0x3b8a7c{[_0x449cc1(0xc9)](_0x2a731f,_0x796527,_0x470ab8,_0x21b009,_0x358964){const _0x50a812=_0x449cc1,_0x411327=_0x2a731f[_0x50a812(0xdf)](_0x32dbf9),_0x5b6de8=_0x2a731f[_0x50a812(0xdf)](_0x5a097a),_0x3d0c0c=_0x796527['getUnitId'](),_0x5e8912=_0x796527[_0x50a812(0xd3)](),_0x66e11=_0x411327[_0x50a812(0xd0)](_0x3d0c0c);(_0x66e11==null?void 0x0:_0x66e11[_0x50a812(0xdc)]())!==_0x40216c[_0x50a812(0xdb)]||(_0x470ab8[_0x50a812(0xde)]()!==_0x5e8912['getSheetId']()&&this[_0x50a812(0xc5)][_0x50a812(0xbf)](_0x5f3cff['id'],{'unitId':_0x3d0c0c,'subUnitId':_0x470ab8[_0x50a812(0xde)]()}),!_0x5b6de8[_0x50a812(0xc4)](_0x3d0c0c))||_0x358964[_0x50a812(0xda)](_0x199512['id'],{'unitId':_0x796527['getUnitId'](),'sheetId':_0x470ab8['getSheetId'](),'sheetViewStartRow':_0x21b009['startRow'],'sheetViewStartColumn':_0x21b009[_0x50a812(0xc8)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x2f57(){const _0x4db848=['startColumn','_initialize','4949987zFPjAK','630496wuruAS','108MOUWqj','4310kFlhqP','394312VgpEar','_injector','getLiveShareCoordinatorSync','getActiveWorkbook','11KNVmhV','getActiveSheet','extend','stopPresenting','186HtriVk','440590EgySbX','getLiveShareStatus','startPresenting','syncExecuteCommand','PRESENTING','getStatus','3GpxqSm','getSheetId','get','6361458cPsFQj','getId','executeCommand','LiveShareStatusEnum','stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1332235CeZTIn','getRenderById','_commandService','startFollowing','No\x20active\x20workbook\x20found.'];_0x2f57=function(){return _0x4db848;};return _0x2f57();}_0x3b8a7c['extend'](I);class m extends _0x1de699{[_0x449cc1(0xd8)](){const _0xc58361=_0x449cc1;var _0x1e76a3,_0x5502d0;const _0x7ebe84=this[_0xc58361(0xcf)][_0xc58361(0xdf)](_0x32dbf9),_0x344c3c=(_0x1e76a3=this[_0xc58361(0xd1)]())==null?void 0x0:_0x1e76a3['getId']();if(!_0x344c3c)throw new Error('No\x20active\x20workbook\x20found.');const _0x40f5e7=_0x7ebe84['getLiveShareCoordinatorSync'](_0x344c3c);return(_0x5502d0=_0x40f5e7==null?void 0x0:_0x40f5e7[_0xc58361(0xdc)]())!=null?_0x5502d0:_0x40216c['IDLE'];}[_0x449cc1(0xc6)](){const _0xec5253=_0x449cc1;var _0x351bf5;const _0x3cebd2=this['_injector']['get'](_0x32dbf9),_0x1e50f2=(_0x351bf5=this[_0xec5253(0xd1)]())==null?void 0x0:_0x351bf5['getId']();if(!_0x1e50f2)throw new Error(_0xec5253(0xc7));const _0x1ec6d8=_0x3cebd2[_0xec5253(0xd0)](_0x1e50f2);if(!_0x1ec6d8)throw new Error(_0xec5253(0xc2));_0x1ec6d8[_0xec5253(0xc6)]();}['stopFollowing'](){const _0x29a841=_0x449cc1;var _0x243ce3;const _0x39fc2c=this['_injector'][_0x29a841(0xdf)](_0x32dbf9),_0x17a05c=(_0x243ce3=this['getActiveWorkbook']())==null?void 0x0:_0x243ce3[_0x29a841(0xbe)]();if(!_0x17a05c)throw new Error(_0x29a841(0xc7));const _0x29ea46=_0x39fc2c[_0x29a841(0xd0)](_0x17a05c);if(!_0x29ea46)throw new Error(_0x29a841(0xc2));_0x29ea46[_0x29a841(0xc1)]();}[_0x449cc1(0xd9)](){const _0x1be510=_0x449cc1;var _0xb7d20c;const _0x325cb6=this[_0x1be510(0xcf)][_0x1be510(0xdf)](_0x32dbf9),_0x2ff8df=(_0xb7d20c=this['getActiveWorkbook']())==null?void 0x0:_0xb7d20c[_0x1be510(0xbe)]();if(!_0x2ff8df)throw new Error(_0x1be510(0xc7));const _0x3ffd65=_0x325cb6[_0x1be510(0xd0)](_0x2ff8df);if(!_0x3ffd65)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3ffd65['tryStartPresenting']();}[_0x449cc1(0xd5)](){const _0x3eb0a4=_0x449cc1;var _0x5f121c;const _0x1eb7de=this[_0x3eb0a4(0xcf)][_0x3eb0a4(0xdf)](_0x32dbf9),_0x4528d3=(_0x5f121c=this[_0x3eb0a4(0xd1)]())==null?void 0x0:_0x5f121c[_0x3eb0a4(0xbe)]();if(!_0x4528d3)throw new Error(_0x3eb0a4(0xc7));const _0x4dfdde=_0x1eb7de['getLiveShareCoordinatorSync'](_0x4528d3);if(!_0x4dfdde)throw new Error(_0x3eb0a4(0xc2));_0x4dfdde['stopPresenting']();}}_0x1de699[_0x449cc1(0xd4)](m);class C extends _0xaae706{get[_0x449cc1(0xc0)](){return _0x40216c;}}_0xaae706['extend'](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x37c48f=_0xe409;(function(_0xca09e3,_0x23be34){const _0x503460=_0xe409,_0xabed41=_0xca09e3();while(!![]){try{const _0x1b3726=parseInt(_0x503460(0x171))/0x1+-parseInt(_0x503460(0x1dd))/0x2+-parseInt(_0x503460(0x182))/0x3*(parseInt(_0x503460(0x1ed))/0x4)+parseInt(_0x503460(0x155))/0x5*(-parseInt(_0x503460(0x1a5))/0x6)+parseInt(_0x503460(0x15d))/0x7+-parseInt(_0x503460(0x16d))/0x8+-parseInt(_0x503460(0x18f))/0x9*(-parseInt(_0x503460(0x1d5))/0xa);if(_0x1b3726===_0x23be34)break;else _0xabed41['push'](_0xabed41['shift']());}catch(_0x3c4d11){_0xabed41['push'](_0xabed41['shift']());}}}(_0x33ed,0x571d8));var J=Object['defineProperty'],K=(_0x4f7e0a,_0x24e8b5,_0xe4ea7)=>_0x24e8b5 in _0x4f7e0a?J(_0x4f7e0a,_0x24e8b5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe4ea7}):_0x4f7e0a[_0x24e8b5]=_0xe4ea7,u=(_0x2a9c80,_0x6b58ae,_0x256c56)=>K(_0x2a9c80,typeof _0x6b58ae!='symbol'?_0x6b58ae+'':_0x6b58ae,_0x256c56);import{Disposable as _0x56ac81,toDisposable as _0x14fed3,IUniverInstanceService as _0x3fde3e,Inject as _0x19be43,Injector as _0x26383e,IConfigService as _0x347dc0,ICommandService as _0x4afaea,RxDisposable as _0x46b3fc,UniverInstanceType as _0x339dac,DisposableCollection as _0x2d7a31,CommandType as _0x412c4e,DependentOn as _0x2d581b,Plugin as _0x541451,merge as _0x367c89,registerDependencies as _0x5a7450,mergeOverrideWithDependencies as _0x3edeed,touchDependencies as _0x427e11}from'@univerjs/core';import{useDependency as _0x3d5a42,useObservable as _0x38adb2,IUIPartsService as _0x5ded7e,BuiltInUIPart as _0x1d340b,connectInjector as _0x573695}from'@univerjs/ui';import{jsx as _0x1c493a,jsxs as _0x151147,Fragment as _0xc16d68}from'react/jsx-runtime';import{Dropdown as _0x271335,clsx as _0x4fc2f0,Button as _0x47c0d7}from'@univerjs/design';import{useRef as _0x43a44d,createElement as _0x9d760e,forwardRef as _0x5dd029,useState as _0x105361,useEffect as _0xf1fe}from'react';import{CollaborationEvent as _0xfbd7ce,parseProtocolChangeset as _0x3bd4cc}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1eb5ad,SessionStatus as _0x2028a0,UniverCollaborationClientPlugin as _0x32695c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4662fb,SetWorksheetActiveOperation as _0x382fbd}from'@univerjs/sheets';import{BehaviorSubject as _0x22afaf,Subject as _0x4d5a8a}from'rxjs';import{takeUntil as _0x5c0ffb,throttleTime as _0x3d75be}from'rxjs/operators';import{SetZoomRatioOperation as _0x3e9230,SetScrollOperation as _0x10ff22}from'@univerjs/sheets-ui';function k({ref:_0x6a9a4b,..._0x6607ad}){const _0x3eb271=_0xe409,{icon:_0x3fc80f,id:_0x4f9876,className:_0x3da3d3,extend:_0xf6b093,..._0x2044a2}=_0x6607ad,_0x3cb262=('univerjs-icon\x20univerjs-icon-'+_0x4f9876+'\x20'+(_0x3da3d3||''))[_0x3eb271(0x179)](),_0x1ced54=_0x43a44d('_'+Oe());return G(_0x3fc80f,''+_0x4f9876,{'defIds':_0x3fc80f[_0x3eb271(0x1b1)],'idSuffix':_0x1ced54[_0x3eb271(0x163)]},{'ref':_0x6a9a4b,'className':_0x3cb262,..._0x2044a2},_0xf6b093);}function G(_0x21771a,_0xa9d86f,_0x3dc626,_0x5cd706,_0x6b83d0){const _0x1104eb=_0xe409;return _0x9d760e(_0x21771a[_0x1104eb(0x156)],{'key':_0xa9d86f,...be(_0x21771a,_0x3dc626,_0x6b83d0),..._0x5cd706},(Ee(_0x21771a,_0x3dc626)[_0x1104eb(0x1e5)]||[])['map']((_0x2324d8,_0x44da57)=>G(_0x2324d8,_0xa9d86f+'-'+_0x21771a[_0x1104eb(0x156)]+'-'+_0x44da57,_0x3dc626,void 0x0,_0x6b83d0)));}function be(_0x405bd8,_0x497cb1,_0x3c8e7a){const _0x5697c3=_0xe409,_0x19d15b={..._0x405bd8[_0x5697c3(0x17b)]};_0x3c8e7a!=null&&_0x3c8e7a[_0x5697c3(0x1bb)]&&_0x19d15b[_0x5697c3(0x1b3)]===_0x5697c3(0x1bb)&&(_0x19d15b[_0x5697c3(0x1b3)]=_0x3c8e7a[_0x5697c3(0x1bb)]),_0x405bd8[_0x5697c3(0x156)]==='mask'&&_0x19d15b['id']&&(_0x19d15b['id']=_0x19d15b['id']+_0x497cb1[_0x5697c3(0x185)]),Object[_0x5697c3(0x18d)](_0x19d15b)[_0x5697c3(0x184)](([_0x27af38,_0x434ca1])=>{const _0x2d16ee=_0x5697c3;_0x27af38===_0x2d16ee(0x1ef)&&typeof _0x434ca1==_0x2d16ee(0x1f0)&&(_0x19d15b[_0x27af38]=_0x434ca1[_0x2d16ee(0x1b6)](/url\(#(.*)\)/,_0x2d16ee(0x177)+_0x497cb1[_0x2d16ee(0x185)]+')'));});const {defIds:_0x3ef991}=_0x497cb1;return!_0x3ef991||_0x3ef991[_0x5697c3(0x18e)]===0x0||(_0x405bd8[_0x5697c3(0x156)]===_0x5697c3(0x19f)&&_0x19d15b['xlink:href']&&(_0x19d15b[_0x5697c3(0x170)]=_0x19d15b[_0x5697c3(0x170)]+_0x497cb1['idSuffix']),Object['entries'](_0x19d15b)[_0x5697c3(0x184)](([_0x1e16c5,_0xd1753c])=>{const _0x48282f=_0x5697c3;typeof _0xd1753c==_0x48282f(0x1f0)&&(_0x19d15b[_0x1e16c5]=_0xd1753c[_0x48282f(0x1b6)](/url\(#(.*)\)/,'url(#$1'+_0x497cb1[_0x48282f(0x185)]+')'));})),_0x19d15b;}function Ee(_0x5ecafc,_0xb0ff3d){const _0xaac6fc=_0xe409;var _0x1649af;const {defIds:_0x57fb24}=_0xb0ff3d;return!_0x57fb24||_0x57fb24[_0xaac6fc(0x18e)]===0x0?_0x5ecafc:_0x5ecafc['tag']===_0xaac6fc(0x19a)&&((_0x1649af=_0x5ecafc['children'])!=null&&_0x1649af[_0xaac6fc(0x18e)])?{..._0x5ecafc,'children':_0x5ecafc[_0xaac6fc(0x1e5)]['map'](_0x2097ed=>typeof _0x2097ed[_0xaac6fc(0x17b)]['id']==_0xaac6fc(0x1f0)&&_0x57fb24&&_0x57fb24['includes'](_0x2097ed[_0xaac6fc(0x17b)]['id'])?{..._0x2097ed,'attrs':{..._0x2097ed[_0xaac6fc(0x17b)],'id':_0x2097ed[_0xaac6fc(0x17b)]['id']+_0xb0ff3d[_0xaac6fc(0x185)]}}:_0x2097ed)}:_0x5ecafc;}function Oe(){const _0x4c634c=_0xe409;return Math['random']()['toString'](0x24)[_0x4c634c(0x18b)](0x2,0x8);}function _0x33ed(){const _0x4233a7=['_unitID','PRESENTING','type','executeCommand','get','1729788GBCzyd','Present\x20this\x20document','_handleOffline','getLiveShareCoordinator','_commandService','FOLLOWING','map','LIVESHARE_FETCH_OPERATIONS','1em','init','unsubscribe','then','defIds','getUnitId','fill','UNIVER_SHEET','getTypeOfUnitAdded$','replace','parse','evenodd','onRendered','_mountLiveShare','colorChannel1','path','LIVESHARE_OPERATION','sessionStatus$','_presenter','button','HEADER_MENU','_handleOnline','IDLE','currentColor','_configService','_injector','displayName','sheet','default','live-share.config','LiveShareIcon','has','requireSession','_startLiveShareCoordinator','_collabSession','NEW_CHANGESETS','_startPresenting','data','disposeWithMe','next','470eqiCep','_stopFollowing','_beIdle','You\x27re\x20presenting\x20the\x20document','tryStartPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_TERMINATE','dispose','247406IwrpSk','_collabSessionService','ONLINE','_entities','_config','onCommandExecuted','getLiveShareCoordinatorSync','_sharedOperations','children','stopFollowing','presenting','stringify','_handleNewChangeSets','univer-size-4','_status$','live-share-icon','196dIBLcj','Stop\x20following','mask','string','reverse','dispose$','UNIVER_UNKNOWN','unitId','_commandDisposable','clear','memberID','5OqqcmR','tag','registerSharedOperation','registerComponent','send','values','text','assign','3393236xuwqKQ','getInitialStates','_handleNewHost','You\x27re\x20not\x20following\x20the\x20presenter','presenter','stopPresenting','current','none','delete','getMemberID','_reporters','getOwnPropertyDescriptor','from','getConfig','div','getCurrentTypeOfUnit$','4386376grmqFS','setConfig','offline','xlink:href','285137PKrCMj','_fetchOperations','asObservable','set','_uiPartsService','_stopPresenting','url(#$1','http://www.w3.org/2000/svg','trim','add','attrs','You\x27re\x20following\x20the\x20presenter','_status','idle','defineProperty','Start\x20following','includes','41430gpasBe','createInstance','forEach','idSuffix','LIVESHARE_NEW_HOST','shouldShareOperation','_univerInstanceService','following','OFFLINE','substring','Start','entries','length','234369DfjfQR','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','_init','subscribe','_handleTerminate','startFollowing','_liveShareService','pipe','UNIVER_LIVE_SHARE_PLUGIN','operations','defs','complete','Stop\x20presenting','params','NOT_FOLLOWING','use'];_0x33ed=function(){return _0x4233a7;};return _0x33ed();}k[_0x37c48f(0x1c7)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x37c48f(0x178),'fill':_0x37c48f(0x164),'viewBox':'0\x200\x2017\x2017','width':_0x37c48f(0x1ad),'height':'1em'},'children':[{'tag':_0x37c48f(0x1bc),'attrs':{'fill':_0x37c48f(0x1c4),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x37c48f(0x1c4),'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':_0x37c48f(0x1b8),'clipRule':'evenodd'}}]},W=_0x5dd029(function(_0x31e086,_0x8c82f6){const _0x3cad22=_0x37c48f;return _0x9d760e(k,Object[_0x3cad22(0x15c)]({},_0x31e086,{'id':_0x3cad22(0x1ec),'ref':_0x8c82f6,'icon':we}));});W[_0x37c48f(0x1c7)]=_0x37c48f(0x1cb);class L extends _0x56ac81{constructor(){const _0x4dd519=_0x37c48f;super(...arguments),u(this,_0x4dd519(0x1e4),new Set()),u(this,_0x4dd519(0x167),new Set());}[_0x37c48f(0x157)](_0x2c4f01){const _0x2a6c26=_0x37c48f;return this[_0x2a6c26(0x1e4)][_0x2a6c26(0x17a)](_0x2c4f01),_0x14fed3(()=>this[_0x2a6c26(0x1e4)][_0x2a6c26(0x165)](_0x2c4f01));}['registerInitialStateReporter'](_0x4d105b){const _0x7286ea=_0x37c48f;return this[_0x7286ea(0x167)][_0x7286ea(0x17a)](_0x4d105b),_0x14fed3(()=>this[_0x7286ea(0x167)][_0x7286ea(0x165)](_0x4d105b));}[_0x37c48f(0x187)](_0x2dfe0a){const _0x14cc4c=_0x37c48f;return this[_0x14cc4c(0x1e4)][_0x14cc4c(0x1cc)](_0x2dfe0a);}[_0x37c48f(0x15e)](_0xe3cf1a){const _0x37aea6=_0x37c48f;return Array[_0x37aea6(0x169)](this[_0x37aea6(0x167)])[_0x37aea6(0x1ab)](_0x35e6a2=>_0x35e6a2(_0xe3cf1a));}}var Ne=Object[_0x37c48f(0x168)],Y=(_0x123d7,_0x1484b4,_0x49d19f,_0x3c0cdd)=>{const _0x9ce59e=_0x37c48f;for(var _0x45c3b6=_0x3c0cdd>0x1?void 0x0:_0x3c0cdd?Ne(_0x1484b4,_0x49d19f):_0x1484b4,_0x3d5235=_0x123d7[_0x9ce59e(0x18e)]-0x1,_0x488a22;_0x3d5235>=0x0;_0x3d5235--)(_0x488a22=_0x123d7[_0x3d5235])&&(_0x45c3b6=_0x488a22(_0x45c3b6)||_0x45c3b6);return _0x45c3b6;},_=(_0x3839bc,_0x1b3d1b)=>(_0x32464c,_0x1ae4f3)=>_0x1b3d1b(_0x32464c,_0x1ae4f3,_0x3839bc);let S=class extends _0x46b3fc{constructor(_0x370983,_0xe71a93,_0x1f54c1){const _0x5a7010=_0x37c48f;super(),u(this,_0x5a7010(0x1e0),new Map()),(this[_0x5a7010(0x188)]=_0x370983,this['_injector']=_0xe71a93,this[_0x5a7010(0x1de)]=_0x1f54c1,this[_0x5a7010(0x192)]());}async[_0x37c48f(0x1a8)](_0xbaa191){const _0x5aac94=_0x37c48f;return this[_0x5aac94(0x1e0)][_0x5aac94(0x1cc)](_0xbaa191)||await this['_startLiveShareCoordinator'](_0xbaa191),this['_entities'][_0x5aac94(0x1a4)](_0xbaa191);}[_0x37c48f(0x1e3)](_0x1e78a2){const _0x1bd250=_0x37c48f;var _0x5ade84;return(_0x5ade84=this[_0x1bd250(0x1e0)][_0x1bd250(0x1a4)](_0x1e78a2))!=null?_0x5ade84:null;}[_0x37c48f(0x192)](){const _0x172b40=_0x37c48f;this['_univerInstanceService'][_0x172b40(0x1b5)](_0x339dac[_0x172b40(0x1b4)])[_0x172b40(0x197)](_0x5c0ffb(this[_0x172b40(0x1f2)]))[_0x172b40(0x193)](async _0x12f299=>{const _0x1f164a=_0x172b40,_0x17e224=_0x12f299[_0x1f164a(0x1b2)]();this[_0x1f164a(0x1e0)][_0x1f164a(0x1cc)](_0x17e224)||this[_0x1f164a(0x1ce)](_0x17e224);}),this[_0x172b40(0x188)]['getTypeOfUnitDisposed$'](_0x339dac['UNIVER_SHEET'])[_0x172b40(0x197)](_0x5c0ffb(this[_0x172b40(0x1f2)]))[_0x172b40(0x193)](_0x102a61=>{const _0x2e9cf2=_0x172b40,_0x56aa42=_0x102a61[_0x2e9cf2(0x1b2)](),_0x2b0201=this['_entities'][_0x2e9cf2(0x1a4)](_0x56aa42);_0x2b0201==null||_0x2b0201['dispose']();});}async[_0x37c48f(0x1ce)](_0x5b5fdf){const _0xd07fe1=_0x37c48f,_0x448e24=await this['_collabSessionService'][_0xd07fe1(0x1cd)](_0x5b5fdf),_0x2217ff=this[_0xd07fe1(0x1c6)][_0xd07fe1(0x183)](N,_0x5b5fdf,_0x448e24);return _0x2217ff['init'](),this['_entities'][_0xd07fe1(0x174)](_0x5b5fdf,_0x2217ff),_0x2217ff;}};S=Y([_(0x0,_0x3fde3e),_(0x1,_0x19be43(_0x26383e)),_(0x2,_0x19be43(_0x1eb5ad))],S);var c=(_0x39528e=>(_0x39528e[_0x37c48f(0x18a)]=_0x37c48f(0x16f),_0x39528e[_0x37c48f(0x1c3)]=_0x37c48f(0x17e),_0x39528e[_0x37c48f(0x1aa)]=_0x37c48f(0x189),_0x39528e[_0x37c48f(0x19e)]=_0x37c48f(0x191),_0x39528e[_0x37c48f(0x1a1)]=_0x37c48f(0x1e7),_0x39528e))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x46b3fc{constructor(_0x24039b,_0x1907e1,_0x3d58c3,_0x471940,_0x78b654){const _0x4078f8=_0x37c48f;super(),u(this,_0x4078f8(0x1eb),new _0x22afaf(_0x4078f8(0x17e))),u(this,'status$',this[_0x4078f8(0x1eb)][_0x4078f8(0x173)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x4078f8(0x1bf),null),(this[_0x4078f8(0x1a0)]=_0x24039b,this[_0x4078f8(0x1cf)]=_0x1907e1,this[_0x4078f8(0x1c5)]=_0x3d58c3,this[_0x4078f8(0x196)]=_0x471940,this['_commandService']=_0x78b654);}get['_status'](){return this['_status$']['getValue']();}['dispose'](){const _0x3c9b6a=_0x37c48f;var _0x3004c1;(_0x3004c1=this[_0x3c9b6a(0x152)])==null||_0x3004c1[_0x3c9b6a(0x1dc)](),this[_0x3c9b6a(0x1eb)][_0x3c9b6a(0x1d4)](_0x3c9b6a(0x17e)),this[_0x3c9b6a(0x1eb)][_0x3c9b6a(0x19b)]();}['getStatus'](){const _0x434247=_0x37c48f;return this[_0x434247(0x17d)];}[_0x37c48f(0x1ae)](){const _0x582012=_0x37c48f;this[_0x582012(0x192)]||(this[_0x582012(0x192)]=!0x0,this[_0x582012(0x1cf)][_0x582012(0x1be)][_0x582012(0x197)](_0x5c0ffb(this[_0x582012(0x1f2)]))['subscribe'](_0x474db0=>{const _0x3b3a2a=_0x582012;switch(_0x474db0){case _0x2028a0['OFFLINE']:this[_0x3b3a2a(0x1a7)]();break;case _0x2028a0[_0x3b3a2a(0x1df)]:this[_0x3b3a2a(0x1c2)]();break;}}),this[_0x582012(0x1cf)]['event$'][_0x582012(0x197)](_0x5c0ffb(this[_0x582012(0x1f2)]))['subscribe'](_0x31de8c=>{const _0x5e9b77=_0x582012,{eventID:_0x506dec}=_0x31de8c;switch(_0x506dec){case _0xfbd7ce[_0x5e9b77(0x186)]:this[_0x5e9b77(0x15f)](_0x31de8c);break;case _0xfbd7ce['LIVESHARE_OPERATION']:this['_handleOperation'](_0x31de8c);break;case _0xfbd7ce[_0x5e9b77(0x1db)]:this['_handleTerminate']();break;case _0xfbd7ce[_0x5e9b77(0x1d0)]:this[_0x5e9b77(0x1e9)](_0x31de8c);break;}}));}[_0x37c48f(0x1d9)](){const _0x3eecda=_0x37c48f;this[_0x3eecda(0x1cf)]['send']({'eventID':_0xfbd7ce['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3eecda(0x1a0)],'userID':this[_0x3eecda(0x1cf)][_0x3eecda(0x166)]()}},this[_0x3eecda(0x1a0)]);}[_0x37c48f(0x162)](){const _0x5906ad=_0x37c48f;this[_0x5906ad(0x17d)]===_0x5906ad(0x1e7)&&(this[_0x5906ad(0x1eb)]['next'](_0x5906ad(0x17e)),this[_0x5906ad(0x1cf)][_0x5906ad(0x159)]({'eventID':_0xfbd7ce[_0x5906ad(0x1db)],'data':{'unitID':this[_0x5906ad(0x1a0)]}},this[_0x5906ad(0x1a0)]));}[_0x37c48f(0x195)](){const _0x10cb14=_0x37c48f;this[_0x10cb14(0x17d)]===_0x10cb14(0x191)&&(this[_0x10cb14(0x1eb)][_0x10cb14(0x1d4)]('following'),this['_startFollowing']());}[_0x37c48f(0x1e6)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x37c48f(0x15f)](_0x575056){const _0x452080=_0x37c48f,{presenter:_0x26a52b}=_0x575056[_0x452080(0x1d2)],_0x1ec058=this[_0x452080(0x1cf)][_0x452080(0x166)]();this['_presenter']=_0x26a52b,_0x26a52b===_0x1ec058?(this[_0x452080(0x1d6)](),this[_0x452080(0x1d1)]()):this['_status']!=='not-following'&&(this[_0x452080(0x176)](),this['_startFollowing']());}[_0x37c48f(0x172)](){const _0x26024b=_0x37c48f,_0x18a090={'eventID':_0xfbd7ce[_0x26024b(0x1ac)]};this[_0x26024b(0x1cf)][_0x26024b(0x159)](_0x18a090,this['_unitID']);}[_0x37c48f(0x194)](){const _0xa0f93=_0x37c48f;this[_0xa0f93(0x1bf)]=null,this['_status']!==_0xa0f93(0x1e7)&&this[_0xa0f93(0x1d7)]();}[_0x37c48f(0x1e9)](_0xf00b52){const _0x260620=_0x37c48f;if(this[_0x260620(0x17d)]===_0x260620(0x189)&&this[_0x260620(0x1bf)]===_0xf00b52[_0x260620(0x1d2)][_0x260620(0x154)]){const _0x53f7bf=_0x3bd4cc(_0xf00b52[_0x260620(0x1d2)])['mutations'][_0x260620(0x1f1)]()['find'](_0x5419f1=>_0x5419f1['id']===_0x4662fb['id']);if(_0x53f7bf){const _0x17a862=_0x53f7bf[_0x260620(0x19d)][_0x260620(0x1f4)],_0x12d9c8=_0x53f7bf['params'][_0x260620(0x1c8)]['id'];setTimeout(()=>{const _0x460506=_0x260620;this[_0x460506(0x1a9)][_0x460506(0x1a3)](_0x382fbd['id'],{'unitId':_0x17a862,'subUnitId':_0x12d9c8},{'fromCollab':!0x0});});}}}[_0x37c48f(0x1d1)](){const _0x1c754c=_0x37c48f;this[_0x1c754c(0x1eb)][_0x1c754c(0x1d4)](_0x1c754c(0x1e7));const _0x2a2428=new Map(),_0x2efb46=this[_0x1c754c(0x152)]=new _0x2d7a31();_0x2efb46[_0x1c754c(0x17a)](_0x14fed3(()=>{const _0x2aab58=_0x1c754c;_0x2a2428['forEach'](_0x5d25ad=>_0x5d25ad['complete']()),_0x2a2428[_0x2aab58(0x153)]();})),_0x2efb46[_0x1c754c(0x17a)](this[_0x1c754c(0x1a9)][_0x1c754c(0x1e2)](_0x454cc7=>{const _0x3e998b=_0x1c754c;var _0x5020ce;if(_0x454cc7['type']!==_0x412c4e['OPERATION']||!this['_liveShareService'][_0x3e998b(0x187)](_0x454cc7['id']))return;const {id:_0x313e1d}=_0x454cc7;let _0x1bca42;_0x2a2428[_0x3e998b(0x1cc)](_0x313e1d)?_0x1bca42=_0x2a2428['get'](_0x313e1d):(_0x1bca42=new _0x4d5a8a(),_0x2a2428[_0x3e998b(0x174)](_0x313e1d,_0x1bca42),_0x1bca42[_0x3e998b(0x197)](_0x3d75be((_0x5020ce=this[_0x3e998b(0x1c5)][_0x3e998b(0x16a)](Ce))!=null?_0x5020ce:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3e998b(0x193)](_0x26576b=>{const _0x20d493=_0x3e998b;this[_0x20d493(0x1cf)][_0x20d493(0x159)]({'eventID':_0xfbd7ce[_0x20d493(0x1bd)],'data':{'unitID':this[_0x20d493(0x1a0)],'operations':{[_0x26576b['id']]:{'id':_0x26576b['id'],'params':JSON[_0x20d493(0x1e8)](_0x26576b[_0x20d493(0x19d)])}}}},this[_0x20d493(0x1a0)]);})),_0x1bca42[_0x3e998b(0x1d4)](_0x454cc7);})),this[_0x1c754c(0x196)][_0x1c754c(0x15e)](this[_0x1c754c(0x1a0)])[_0x1c754c(0x184)](_0x11a717=>this[_0x1c754c(0x1cf)][_0x1c754c(0x159)]({'eventID':_0xfbd7ce[_0x1c754c(0x1bd)],'data':{'unitID':this[_0x1c754c(0x1a0)],'operations':{[_0x11a717['id']]:{'id':_0x11a717['id'],'params':JSON['stringify'](_0x11a717['params'])}}}},this[_0x1c754c(0x1a0)]));}[_0x37c48f(0x176)](){const _0x4fa1ae=_0x37c48f;var _0x1e6b49;this[_0x4fa1ae(0x1eb)][_0x4fa1ae(0x1d4)](_0x4fa1ae(0x17e)),(_0x1e6b49=this[_0x4fa1ae(0x152)])==null||_0x1e6b49[_0x4fa1ae(0x1dc)](),this[_0x4fa1ae(0x152)]=null;}['_startFollowing'](){const _0x59deb8=_0x37c48f;var _0x20e2fd;(_0x20e2fd=this[_0x59deb8(0x152)])==null||_0x20e2fd[_0x59deb8(0x1dc)](),this['_status$'][_0x59deb8(0x1d4)](_0x59deb8(0x189));}['_beIdle'](){const _0xb90c9=_0x37c48f;var _0x97f99b;this['_status$'][_0xb90c9(0x1d4)](_0xb90c9(0x17e)),(_0x97f99b=this[_0xb90c9(0x152)])==null||_0x97f99b['dispose'](),this[_0xb90c9(0x152)]=null;}['_stopFollowing'](){const _0x2100ba=_0x37c48f;var _0x4dc1e1;this['_status$'][_0x2100ba(0x1d4)](_0x2100ba(0x191)),(_0x4dc1e1=this['_commandDisposable'])==null||_0x4dc1e1[_0x2100ba(0x1dc)]();}['_handleOperation'](_0x31017b){const _0x2637e2=_0x37c48f;if([_0x2637e2(0x1e7),_0x2637e2(0x191),'offline'][_0x2637e2(0x181)](this[_0x2637e2(0x17d)])||!_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x161)]||_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x161)]===this[_0x2637e2(0x1cf)][_0x2637e2(0x166)]())return;this[_0x2637e2(0x17d)]===_0x2637e2(0x17e)&&this['_startFollowing']();const _0x22448a=_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x199)];Object[_0x2637e2(0x15a)](_0x22448a)[_0x2637e2(0x184)](_0x27d47b=>{const _0x586c00=_0x2637e2;this[_0x586c00(0x1a9)][_0x586c00(0x1a3)](_0x27d47b['id'],_0x27d47b[_0x586c00(0x19d)]?JSON[_0x586c00(0x1b7)](_0x27d47b[_0x586c00(0x19d)]):null,{'fromCollab':!0x0});});}[_0x37c48f(0x1a7)](){const _0x329270=_0x37c48f;var _0x6f6b0a;this[_0x329270(0x1eb)][_0x329270(0x1d4)]('offline'),(_0x6f6b0a=this['_commandDisposable'])==null||_0x6f6b0a[_0x329270(0x1dc)]();}[_0x37c48f(0x1c2)](){const _0x4dcb9b=_0x37c48f;this[_0x4dcb9b(0x1eb)][_0x4dcb9b(0x1d4)]('idle'),this[_0x4dcb9b(0x172)]();}};N=Y([_(0x2,_0x347dc0),_(0x3,_0x19be43(L)),_(0x4,_0x4afaea)],N);function Le(){const _0x1ea1a8=_0x37c48f,_0x22966e=_0x3d5a42(S),_0x2236d8=_0x3d5a42(_0x3fde3e),_0x5cd4cb=_0x38adb2(()=>_0x2236d8[_0x1ea1a8(0x16c)](_0x339dac[_0x1ea1a8(0x1b4)]),void 0x0,!0x1,[]),[_0x1611cd,_0x217445]=_0x105361(null),[_0x55b7dd,_0x20ae94]=_0x105361(c[_0x1ea1a8(0x1c3)]),_0x315ebb=_0x43a44d(null);return _0xf1fe(()=>(_0x5cd4cb&&_0x22966e[_0x1ea1a8(0x1a8)](_0x5cd4cb['getUnitId']())[_0x1ea1a8(0x1b0)](_0x3c2aef=>{_0x217445(_0x3c2aef),_0x315ebb['current']=_0x3c2aef['status$']['subscribe'](_0x3e5d2d=>{_0x20ae94(_0x3e5d2d);});}),()=>{const _0x819182=_0x1ea1a8;var _0x258e73;(_0x258e73=_0x315ebb[_0x819182(0x163)])==null||_0x258e73[_0x819182(0x1af)](),_0x315ebb[_0x819182(0x163)]=null;}),[_0x5cd4cb,_0x22966e]),_0x1611cd?_0x1c493a(_0x271335,{'align':'end','disabled':_0x55b7dd===c[_0x1ea1a8(0x18a)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x1c493a(Re,{'status':_0x55b7dd,'coordinator':_0x1611cd}),'children':_0x1c493a(_0x1ea1a8(0x1c0),{'className':_0x4fc2f0(_0x1ea1a8(0x1da),{'univer-cursor-not-allowed':_0x55b7dd===c[_0x1ea1a8(0x18a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x55b7dd!==c['OFFLINE']}),'type':_0x1ea1a8(0x1c0),'children':_0x1c493a(W,{'className':_0x1ea1a8(0x1ea)})})}):null;}function Re(_0x37a44d){const _0x147e21=_0x37c48f,{status:_0x4931d6,coordinator:_0x557276}=_0x37a44d;switch(_0x4931d6){case c[_0x147e21(0x1c3)]:return _0x1c493a($e,{'coordinator':_0x557276});case c[_0x147e21(0x1aa)]:return _0x1c493a(xe,{'coordinator':_0x557276});case c[_0x147e21(0x19e)]:return _0x1c493a(Pe,{'coordinator':_0x557276});case c['OFFLINE']:return _0x1c493a(Te,{});case c[_0x147e21(0x1a1)]:return _0x1c493a(Ae,{'coordinator':_0x557276});default:return null;}}function $e(_0x391410){const _0x40007c=_0x37c48f,{coordinator:_0x5774ff}=_0x391410;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x40007c(0x16b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x40007c(0x1a6)}),_0x1c493a(_0x47c0d7,{'onClick':()=>_0x5774ff[_0x40007c(0x1d9)](),'children':_0x40007c(0x18c)})]});}function xe(_0xcdaabc){const _0x131849=_0x37c48f,{coordinator:_0x5a040e}=_0xcdaabc;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x131849(0x16b),{'className':_0x131849(0x190),'children':_0x131849(0x17c)}),_0x1c493a(_0x47c0d7,{'onClick':()=>_0x5a040e['stopFollowing'](),'children':_0x131849(0x1ee)})]});}function Pe(_0x1887a6){const _0x347485=_0x37c48f,{coordinator:_0x1a1a0b}=_0x1887a6;return _0x151147(_0xc16d68,{'children':[_0x1c493a('div',{'className':_0x347485(0x190),'children':_0x347485(0x160)}),_0x1c493a(_0x47c0d7,{'variant':_0x347485(0x15b),'onClick':()=>_0x1a1a0b[_0x347485(0x195)](),'children':_0x347485(0x180)})]});}function Ae(_0x412684){const _0x4e2d21=_0x37c48f,{coordinator:_0x1d6da3}=_0x412684;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x4e2d21(0x16b),{'className':_0x4e2d21(0x190),'children':_0x4e2d21(0x1d8)}),_0x1c493a(_0x47c0d7,{'variant':_0x4e2d21(0x1c9),'onClick':()=>_0x1d6da3['stopPresenting'](),'children':_0x4e2d21(0x19c)})]});}function Te(){return _0x1c493a(_0xc16d68,{'children':'You\x27are\x20offline.'});}function _0xe409(_0xaa3080,_0x1dee92){_0xaa3080=_0xaa3080-0x152;const _0x33ed51=_0x33ed();let _0xe409db=_0x33ed51[_0xaa3080];return _0xe409db;}var Fe=Object[_0x37c48f(0x168)],He=(_0x230e79,_0x12bf92,_0x2e8b43,_0x205585)=>{const _0x88815=_0x37c48f;for(var _0x20393d=_0x205585>0x1?void 0x0:_0x205585?Fe(_0x12bf92,_0x2e8b43):_0x12bf92,_0x13c93a=_0x230e79[_0x88815(0x18e)]-0x1,_0x13d586;_0x13c93a>=0x0;_0x13c93a--)(_0x13d586=_0x230e79[_0x13c93a])&&(_0x20393d=_0x13d586(_0x20393d)||_0x20393d);return _0x20393d;},A=(_0x10527a,_0x4d9110)=>(_0x4994de,_0x51e168)=>_0x4d9110(_0x4994de,_0x51e168,_0x10527a);let m=class extends _0x56ac81{constructor(_0x4bb6d3,_0x5d888e){const _0x58644e=_0x37c48f;super(),this[_0x58644e(0x1c6)]=_0x4bb6d3,this[_0x58644e(0x175)]=_0x5d888e,this[_0x58644e(0x1ba)]();}[_0x37c48f(0x1ba)](){const _0x47fac4=_0x37c48f;this[_0x47fac4(0x1d3)](this[_0x47fac4(0x175)][_0x47fac4(0x158)](_0x1d340b[_0x47fac4(0x1c1)],()=>_0x573695(Le,this[_0x47fac4(0x1c6)])));}};m=He([A(0x0,_0x19be43(_0x26383e)),A(0x1,_0x5ded7e)],m);const ye=_0x37c48f(0x1ca),T={};var Ue=Object[_0x37c48f(0x168)],Ve=(_0x540eb4,_0x2a9b18,_0x455760,_0x812682)=>{for(var _0x37e0d4=_0x812682>0x1?void 0x0:_0x812682?Ue(_0x2a9b18,_0x455760):_0x2a9b18,_0x1f81a3=_0x540eb4['length']-0x1,_0x1ca031;_0x1f81a3>=0x0;_0x1f81a3--)(_0x1ca031=_0x540eb4[_0x1f81a3])&&(_0x37e0d4=_0x1ca031(_0x37e0d4)||_0x37e0d4);return _0x37e0d4;},je=(_0x225310,_0x4a766c)=>(_0x4352a8,_0x7b2082)=>_0x4a766c(_0x4352a8,_0x7b2082,_0x225310);let I=class extends _0x56ac81{constructor(_0x1ca355){const _0x21146b=_0x37c48f;super(),this[_0x21146b(0x196)]=_0x1ca355,this['_init']();}['_init'](){const _0x1e41bd=_0x37c48f;[_0x3e9230['id'],_0x10ff22['id'],_0x382fbd['id']][_0x1e41bd(0x184)](_0x442392=>{const _0x5a4ee6=_0x1e41bd;this[_0x5a4ee6(0x1d3)](this['_liveShareService']['registerSharedOperation'](_0x442392));});}};I=Ve([je(0x0,_0x19be43(L))],I);var Me=Object[_0x37c48f(0x17f)],ke=Object[_0x37c48f(0x168)],Ge=(_0x4d96d2,_0x46dd97,_0x578493)=>_0x46dd97 in _0x4d96d2?Me(_0x4d96d2,_0x46dd97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x578493}):_0x4d96d2[_0x46dd97]=_0x578493,We=(_0x124c68,_0x4ea24f,_0x4db16c,_0x23dbd8)=>{const _0x16e381=_0x37c48f;for(var _0x4bbc4c=_0x23dbd8>0x1?void 0x0:_0x23dbd8?ke(_0x4ea24f,_0x4db16c):_0x4ea24f,_0x8b876f=_0x124c68[_0x16e381(0x18e)]-0x1,_0x1828b3;_0x8b876f>=0x0;_0x8b876f--)(_0x1828b3=_0x124c68[_0x8b876f])&&(_0x4bbc4c=_0x1828b3(_0x4bbc4c)||_0x4bbc4c);return _0x4bbc4c;},F=(_0x2ea2ad,_0x5bd073)=>(_0x23bb14,_0x3baa36)=>_0x5bd073(_0x23bb14,_0x3baa36,_0x2ea2ad),B=(_0x177243,_0x12ee22,_0x5f074d)=>Ge(_0x177243,typeof _0x12ee22!='symbol'?_0x12ee22+'':_0x12ee22,_0x5f074d);const Ye=_0x37c48f(0x198);let b=class extends _0x541451{constructor(_0x42ba05=T,_0x18530,_0x4a93fd){const _0x22037d=_0x37c48f;super(),this[_0x22037d(0x1e1)]=_0x42ba05,this[_0x22037d(0x1c6)]=_0x18530,this[_0x22037d(0x1c5)]=_0x4a93fd;const {..._0x28cc9a}=_0x367c89({},T,this[_0x22037d(0x1e1)]);this[_0x22037d(0x1c5)][_0x22037d(0x16e)](ye,_0x28cc9a);}['onStarting'](){const _0x66a57b=_0x37c48f;_0x5a7450(this[_0x66a57b(0x1c6)],_0x3edeed([[L],[S],[I],[m]],this['_config']['override'])),_0x427e11(this[_0x66a57b(0x1c6)],[[I]]);}[_0x37c48f(0x1b9)](){const _0x2a4dcb=_0x37c48f;_0x427e11(this[_0x2a4dcb(0x1c6)],[[m]]);}};B(b,_0x37c48f(0x1a2),_0x339dac[_0x37c48f(0x1f3)]),B(b,'pluginName',Ye),b=We([_0x2d581b(_0x32695c),F(0x1,_0x19be43(_0x26383e)),F(0x2,_0x347dc0)],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 _0x41f8db=_0xc32e;(function(_0x572cc7,_0x116017){const _0x3bf89a=_0xc32e,_0x5d74d0=_0x572cc7();while(!![]){try{const _0x8e5cb9=-parseInt(_0x3bf89a(0xea))/0x1+parseInt(_0x3bf89a(0x153))/0x2*(-parseInt(_0x3bf89a(0x154))/0x3)+-parseInt(_0x3bf89a(0x102))/0x4+parseInt(_0x3bf89a(0xed))/0x5*(parseInt(_0x3bf89a(0x167))/0x6)+-parseInt(_0x3bf89a(0x12c))/0x7*(parseInt(_0x3bf89a(0x155))/0x8)+parseInt(_0x3bf89a(0x112))/0x9*(parseInt(_0x3bf89a(0x10e))/0xa)+parseInt(_0x3bf89a(0x164))/0xb;if(_0x8e5cb9===_0x116017)break;else _0x5d74d0['push'](_0x5d74d0['shift']());}catch(_0x28ea8e){_0x5d74d0['push'](_0x5d74d0['shift']());}}}(_0x5776,0x94505));var J=Object[_0x41f8db(0x118)],K=(_0x43f3a1,_0x5ccfbb,_0x490a2b)=>_0x5ccfbb in _0x43f3a1?J(_0x43f3a1,_0x5ccfbb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x490a2b}):_0x43f3a1[_0x5ccfbb]=_0x490a2b,u=(_0x241792,_0x27540b,_0x4af095)=>K(_0x241792,typeof _0x27540b!=_0x41f8db(0x108)?_0x27540b+'':_0x27540b,_0x4af095);import{Disposable as _0x5c2fbe,toDisposable as _0x11c1b7,IUniverInstanceService as _0x29b9d7,Inject as _0x1f30b7,Injector as _0x3c7c97,IConfigService as _0x2a7193,ICommandService as _0x4ae457,RxDisposable as _0x539958,UniverInstanceType as _0x2b487b,DisposableCollection as _0x586596,CommandType as _0xf756ae,DependentOn as _0x5c1a74,Plugin as _0x509f04,merge as _0x139f7f,registerDependencies as _0x1e8ec2,mergeOverrideWithDependencies as _0x2f956e,touchDependencies as _0x5ca662}from'@univerjs/core';import{useDependency as _0x1e7cc1,useObservable as _0x26668c,IUIPartsService as _0x48d747,BuiltInUIPart as _0x498183,connectInjector as _0x1d5dc4}from'@univerjs/ui';import{jsx as _0x237aec,jsxs as _0x404b74,Fragment as _0x19b1ee}from'react/jsx-runtime';import{Dropdown as _0x9f4a2d,clsx as _0x50baa9,Button as _0x56117f}from'@univerjs/design';import{useRef as _0x43c206,createElement as _0x40f45e,forwardRef as _0x589a99,useState as _0x56af5f,useEffect as _0x2de254}from'react';import{CollaborationEvent as _0x20aac5,parseProtocolChangeset as _0x49e96b}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x138d77,SessionStatus as _0x1a1fae,UniverCollaborationClientPlugin as _0x138530}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x16a3d2,SetWorksheetActiveOperation as _0xfda1ff}from'@univerjs/sheets';import{BehaviorSubject as _0x159a05,Subject as _0x1a5e77}from'rxjs';import{takeUntil as _0x33718d,throttleTime as _0x45f400}from'rxjs/operators';import{SetZoomRatioOperation as _0x635f74,SetScrollOperation as _0x556ff9}from'@univerjs/sheets-ui';function k({ref:_0x3e05cb,..._0x997ec4}){const _0x3afc3c=_0x41f8db,{icon:_0x282fbc,id:_0x6616bf,className:_0xd2e399,extend:_0x550dae,..._0x5b57e5}=_0x997ec4,_0x5085dd=(_0x3afc3c(0x11c)+_0x6616bf+'\x20'+(_0xd2e399||''))[_0x3afc3c(0x109)](),_0x222a0d=_0x43c206('_'+Oe());return G(_0x282fbc,''+_0x6616bf,{'defIds':_0x282fbc[_0x3afc3c(0x159)],'idSuffix':_0x222a0d['current']},{'ref':_0x3e05cb,'className':_0x5085dd,..._0x5b57e5},_0x550dae);}function G(_0x51b1f1,_0xdcf45c,_0x539a19,_0x1b7909,_0x446930){const _0x322013=_0x41f8db;return _0x40f45e(_0x51b1f1[_0x322013(0x144)],{'key':_0xdcf45c,...be(_0x51b1f1,_0x539a19,_0x446930),..._0x1b7909},(Ee(_0x51b1f1,_0x539a19)[_0x322013(0x149)]||[])['map']((_0x3cfcfc,_0x5958e2)=>G(_0x3cfcfc,_0xdcf45c+'-'+_0x51b1f1[_0x322013(0x144)]+'-'+_0x5958e2,_0x539a19,void 0x0,_0x446930)));}function be(_0x271e5a,_0x3870fa,_0x178969){const _0x5468b0=_0x41f8db,_0x5e2b62={..._0x271e5a[_0x5468b0(0x15d)]};_0x178969!=null&&_0x178969[_0x5468b0(0x15b)]&&_0x5e2b62[_0x5468b0(0x14b)]===_0x5468b0(0x15b)&&(_0x5e2b62[_0x5468b0(0x14b)]=_0x178969['colorChannel1']),_0x271e5a[_0x5468b0(0x144)]===_0x5468b0(0x104)&&_0x5e2b62['id']&&(_0x5e2b62['id']=_0x5e2b62['id']+_0x3870fa['idSuffix']),Object[_0x5468b0(0xe4)](_0x5e2b62)[_0x5468b0(0x147)](([_0x359495,_0x1a73c0])=>{const _0x55f37e=_0x5468b0;_0x359495===_0x55f37e(0x104)&&typeof _0x1a73c0==_0x55f37e(0x12a)&&(_0x5e2b62[_0x359495]=_0x1a73c0[_0x55f37e(0x130)](/url\(#(.*)\)/,_0x55f37e(0x111)+_0x3870fa['idSuffix']+')'));});const {defIds:_0xedd0bd}=_0x3870fa;return!_0xedd0bd||_0xedd0bd[_0x5468b0(0x17d)]===0x0||(_0x271e5a[_0x5468b0(0x144)]===_0x5468b0(0x138)&&_0x5e2b62[_0x5468b0(0x11f)]&&(_0x5e2b62['xlink:href']=_0x5e2b62[_0x5468b0(0x11f)]+_0x3870fa['idSuffix']),Object['entries'](_0x5e2b62)[_0x5468b0(0x147)](([_0x402d02,_0x164f93])=>{const _0x2403e0=_0x5468b0;typeof _0x164f93=='string'&&(_0x5e2b62[_0x402d02]=_0x164f93[_0x2403e0(0x130)](/url\(#(.*)\)/,'url(#$1'+_0x3870fa[_0x2403e0(0xe5)]+')'));})),_0x5e2b62;}function Ee(_0x4c7a5f,_0x2a3fc1){const _0x4752f5=_0x41f8db;var _0x388046;const {defIds:_0x471465}=_0x2a3fc1;return!_0x471465||_0x471465[_0x4752f5(0x17d)]===0x0?_0x4c7a5f:_0x4c7a5f[_0x4752f5(0x144)]===_0x4752f5(0x12d)&&((_0x388046=_0x4c7a5f[_0x4752f5(0x149)])!=null&&_0x388046[_0x4752f5(0x17d)])?{..._0x4c7a5f,'children':_0x4c7a5f[_0x4752f5(0x149)][_0x4752f5(0x114)](_0x20b831=>typeof _0x20b831[_0x4752f5(0x15d)]['id']==_0x4752f5(0x12a)&&_0x471465&&_0x471465[_0x4752f5(0x165)](_0x20b831['attrs']['id'])?{..._0x20b831,'attrs':{..._0x20b831[_0x4752f5(0x15d)],'id':_0x20b831[_0x4752f5(0x15d)]['id']+_0x2a3fc1[_0x4752f5(0xe5)]}}:_0x20b831)}:_0x4c7a5f;}function Oe(){const _0x594764=_0x41f8db;return Math[_0x594764(0x121)]()[_0x594764(0x12f)](0x24)[_0x594764(0xe0)](0x2,0x8);}k[_0x41f8db(0xf7)]=_0x41f8db(0x16b);const we={'tag':_0x41f8db(0x11e),'attrs':{'xmlns':_0x41f8db(0x171),'fill':_0x41f8db(0xe8),'viewBox':'0\x200\x2017\x2017','width':_0x41f8db(0x133),'height':_0x41f8db(0x133)},'children':[{'tag':_0x41f8db(0x181),'attrs':{'fill':_0x41f8db(0x163),'d':_0x41f8db(0x15c)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x41f8db(0xe7)}}]},W=_0x589a99(function(_0x171f65,_0x464ed8){const _0x3e4f11=_0x41f8db;return _0x40f45e(k,Object['assign']({},_0x171f65,{'id':_0x3e4f11(0xf3),'ref':_0x464ed8,'icon':we}));});W[_0x41f8db(0xf7)]=_0x41f8db(0x10d);class L extends _0x5c2fbe{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x41f8db(0x158)](_0x589ccd){const _0x3d199f=_0x41f8db;return this['_sharedOperations']['add'](_0x589ccd),_0x11c1b7(()=>this[_0x3d199f(0x148)][_0x3d199f(0x152)](_0x589ccd));}[_0x41f8db(0x161)](_0x9d6a96){const _0x3b3589=_0x41f8db;return this[_0x3b3589(0x106)][_0x3b3589(0x119)](_0x9d6a96),_0x11c1b7(()=>this[_0x3b3589(0x106)][_0x3b3589(0x152)](_0x9d6a96));}[_0x41f8db(0x169)](_0x1c7565){const _0xe0689a=_0x41f8db;return this[_0xe0689a(0x148)][_0xe0689a(0xe1)](_0x1c7565);}['getInitialStates'](_0x4e4ddc){const _0x5c3e09=_0x41f8db;return Array['from'](this[_0x5c3e09(0x106)])['map'](_0x3c08f5=>_0x3c08f5(_0x4e4ddc));}}var Ne=Object[_0x41f8db(0x162)],Y=(_0x3e0895,_0x4dc4ab,_0x3e2985,_0x43d4ab)=>{const _0xd9943f=_0x41f8db;for(var _0x94acf5=_0x43d4ab>0x1?void 0x0:_0x43d4ab?Ne(_0x4dc4ab,_0x3e2985):_0x4dc4ab,_0x31311b=_0x3e0895[_0xd9943f(0x17d)]-0x1,_0x2b0368;_0x31311b>=0x0;_0x31311b--)(_0x2b0368=_0x3e0895[_0x31311b])&&(_0x94acf5=_0x2b0368(_0x94acf5)||_0x94acf5);return _0x94acf5;},_=(_0x43bc8e,_0x19f561)=>(_0x5c8e35,_0xcb02fb)=>_0x19f561(_0x5c8e35,_0xcb02fb,_0x43bc8e);let S=class extends _0x539958{constructor(_0x11db45,_0x4cffa6,_0x144201){const _0x8bc562=_0x41f8db;super(),u(this,_0x8bc562(0x172),new Map()),(this[_0x8bc562(0x168)]=_0x11db45,this['_injector']=_0x4cffa6,this[_0x8bc562(0x16d)]=_0x144201,this[_0x8bc562(0x124)]());}async['getLiveShareCoordinator'](_0x2def8b){const _0x13fc42=_0x41f8db;return this['_entities']['has'](_0x2def8b)||await this[_0x13fc42(0x183)](_0x2def8b),this['_entities']['get'](_0x2def8b);}['getLiveShareCoordinatorSync'](_0x116bef){const _0x38ff2c=_0x41f8db;var _0x1198d2;return(_0x1198d2=this[_0x38ff2c(0x172)][_0x38ff2c(0x116)](_0x116bef))!=null?_0x1198d2:null;}[_0x41f8db(0x124)](){const _0x31e805=_0x41f8db;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2b487b[_0x31e805(0x13b)])[_0x31e805(0xf5)](_0x33718d(this[_0x31e805(0x151)]))['subscribe'](async _0x2f12d9=>{const _0xbb51d7=_0x31e805,_0x130a08=_0x2f12d9[_0xbb51d7(0x17f)]();this[_0xbb51d7(0x172)]['has'](_0x130a08)||this[_0xbb51d7(0x183)](_0x130a08);}),this[_0x31e805(0x168)][_0x31e805(0x178)](_0x2b487b['UNIVER_SHEET'])[_0x31e805(0xf5)](_0x33718d(this[_0x31e805(0x151)]))[_0x31e805(0x142)](_0x3d0404=>{const _0x50cc83=_0x31e805,_0x3d17d6=_0x3d0404[_0x50cc83(0x17f)](),_0x30debf=this[_0x50cc83(0x172)][_0x50cc83(0x116)](_0x3d17d6);_0x30debf==null||_0x30debf['dispose']();});}async[_0x41f8db(0x183)](_0x2fe34e){const _0xd93fc8=_0x41f8db,_0x2f5b35=await this[_0xd93fc8(0x16d)][_0xd93fc8(0x14f)](_0x2fe34e),_0x42ef2d=this[_0xd93fc8(0x176)]['createInstance'](N,_0x2fe34e,_0x2f5b35);return _0x42ef2d['init'](),this['_entities']['set'](_0x2fe34e,_0x42ef2d),_0x42ef2d;}};S=Y([_(0x0,_0x29b9d7),_(0x1,_0x1f30b7(_0x3c7c97)),_(0x2,_0x1f30b7(_0x138d77))],S);var c=(_0x158c84=>(_0x158c84[_0x41f8db(0xfc)]=_0x41f8db(0x146),_0x158c84[_0x41f8db(0x141)]=_0x41f8db(0xfd),_0x158c84[_0x41f8db(0x10b)]=_0x41f8db(0x14c),_0x158c84[_0x41f8db(0x136)]=_0x41f8db(0xeb),_0x158c84[_0x41f8db(0xef)]=_0x41f8db(0x13a),_0x158c84))(c||{});const Ce=_0x41f8db(0x11d),De=0xc8;let N=class extends _0x539958{constructor(_0x5812f4,_0x20cdba,_0x53496a,_0x50798f,_0x2c065a){const _0x481069=_0x41f8db;super(),u(this,_0x481069(0x129),new _0x159a05(_0x481069(0xfd))),u(this,_0x481069(0x14a),this['_status$'][_0x481069(0x16e)]()),u(this,'_init',!0x1),u(this,_0x481069(0x140),null),u(this,_0x481069(0xfb),null),(this[_0x481069(0x17b)]=_0x5812f4,this['_collabSession']=_0x20cdba,this['_configService']=_0x53496a,this[_0x481069(0x105)]=_0x50798f,this['_commandService']=_0x2c065a);}get['_status'](){const _0x1f1b12=_0x41f8db;return this[_0x1f1b12(0x129)][_0x1f1b12(0x16a)]();}[_0x41f8db(0x174)](){const _0x5611c6=_0x41f8db;var _0x27d611;(_0x27d611=this['_commandDisposable'])==null||_0x27d611[_0x5611c6(0x174)](),this[_0x5611c6(0x129)][_0x5611c6(0xf4)](_0x5611c6(0xfd)),this[_0x5611c6(0x129)][_0x5611c6(0x180)]();}[_0x41f8db(0xf2)](){const _0x100fa7=_0x41f8db;return this[_0x100fa7(0x182)];}[_0x41f8db(0xf1)](){const _0x152cf5=_0x41f8db;this[_0x152cf5(0x124)]||(this[_0x152cf5(0x124)]=!0x0,this[_0x152cf5(0x103)]['sessionStatus$'][_0x152cf5(0xf5)](_0x33718d(this[_0x152cf5(0x151)]))[_0x152cf5(0x142)](_0x49de64=>{switch(_0x49de64){case _0x1a1fae['OFFLINE']:this['_handleOffline']();break;case _0x1a1fae['ONLINE']:this['_handleOnline']();break;}}),this[_0x152cf5(0x103)]['event$'][_0x152cf5(0xf5)](_0x33718d(this[_0x152cf5(0x151)]))[_0x152cf5(0x142)](_0x2b22ef=>{const _0x2b8530=_0x152cf5,{eventID:_0x2c372f}=_0x2b22ef;switch(_0x2c372f){case _0x20aac5['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x2b22ef);break;case _0x20aac5['LIVESHARE_OPERATION']:this[_0x2b8530(0x122)](_0x2b22ef);break;case _0x20aac5['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x20aac5[_0x2b8530(0xfe)]:this[_0x2b8530(0x15e)](_0x2b22ef);break;}}));}[_0x41f8db(0x10f)](){const _0x5e42c5=_0x41f8db;this[_0x5e42c5(0x103)][_0x5e42c5(0x177)]({'eventID':_0x20aac5[_0x5e42c5(0x12b)],'data':{'unitID':this[_0x5e42c5(0x17b)],'userID':this['_collabSession'][_0x5e42c5(0xdf)]()}},this[_0x5e42c5(0x17b)]);}['stopPresenting'](){const _0x5d9bd6=_0x41f8db;this[_0x5d9bd6(0x182)]===_0x5d9bd6(0x13a)&&(this['_status$'][_0x5d9bd6(0xf4)](_0x5d9bd6(0xfd)),this['_collabSession'][_0x5d9bd6(0x177)]({'eventID':_0x20aac5[_0x5d9bd6(0x110)],'data':{'unitID':this[_0x5d9bd6(0x17b)]}},this[_0x5d9bd6(0x17b)]));}[_0x41f8db(0x17c)](){const _0x36291c=_0x41f8db;this[_0x36291c(0x182)]===_0x36291c(0xeb)&&(this[_0x36291c(0x129)][_0x36291c(0xf4)]('following'),this[_0x36291c(0x173)]());}['stopFollowing'](){const _0x426db3=_0x41f8db;this[_0x426db3(0x182)]===_0x426db3(0x14c)&&this[_0x426db3(0x132)]();}[_0x41f8db(0x175)](_0x43e74a){const _0x11c10c=_0x41f8db,{presenter:_0x1e8e58}=_0x43e74a[_0x11c10c(0x11b)],_0x48628c=this[_0x11c10c(0x103)][_0x11c10c(0xdf)]();this['_presenter']=_0x1e8e58,_0x1e8e58===_0x48628c?(this[_0x11c10c(0x132)](),this[_0x11c10c(0xff)]()):this['_status']!==_0x11c10c(0xeb)&&(this[_0x11c10c(0x15a)](),this[_0x11c10c(0x173)]());}['_fetchOperations'](){const _0x22986b=_0x41f8db,_0x3bd124={'eventID':_0x20aac5[_0x22986b(0x128)]};this[_0x22986b(0x103)][_0x22986b(0x177)](_0x3bd124,this[_0x22986b(0x17b)]);}['_handleTerminate'](){const _0x1a79ba=_0x41f8db;this[_0x1a79ba(0xfb)]=null,this['_status']!==_0x1a79ba(0x13a)&&this[_0x1a79ba(0x113)]();}[_0x41f8db(0x15e)](_0x1418f3){const _0x6b2bd8=_0x41f8db;if(this['_status']===_0x6b2bd8(0x14c)&&this[_0x6b2bd8(0xfb)]===_0x1418f3[_0x6b2bd8(0x11b)][_0x6b2bd8(0x16c)]){const _0x1a34ef=_0x49e96b(_0x1418f3[_0x6b2bd8(0x11b)])[_0x6b2bd8(0xec)][_0x6b2bd8(0x126)]()['find'](_0x156a61=>_0x156a61['id']===_0x16a3d2['id']);if(_0x1a34ef){const _0x29e531=_0x1a34ef['params'][_0x6b2bd8(0x127)],_0x438794=_0x1a34ef[_0x6b2bd8(0x13d)][_0x6b2bd8(0x100)]['id'];setTimeout(()=>{const _0x4c5236=_0x6b2bd8;this[_0x4c5236(0x13f)][_0x4c5236(0xee)](_0xfda1ff['id'],{'unitId':_0x29e531,'subUnitId':_0x438794},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x5ec2ef=_0x41f8db;this[_0x5ec2ef(0x129)][_0x5ec2ef(0xf4)]('presenting');const _0x47e5e9=new Map(),_0x44a4cf=this[_0x5ec2ef(0x140)]=new _0x586596();_0x44a4cf[_0x5ec2ef(0x119)](_0x11c1b7(()=>{const _0x14f6f6=_0x5ec2ef;_0x47e5e9[_0x14f6f6(0x147)](_0x2e6ff9=>_0x2e6ff9['complete']()),_0x47e5e9['clear']();})),_0x44a4cf['add'](this[_0x5ec2ef(0x13f)][_0x5ec2ef(0xf0)](_0x4cdb52=>{const _0x2d9a3d=_0x5ec2ef;var _0x40562b;if(_0x4cdb52['type']!==_0xf756ae['OPERATION']||!this[_0x2d9a3d(0x105)][_0x2d9a3d(0x169)](_0x4cdb52['id']))return;const {id:_0x313d87}=_0x4cdb52;let _0x47d23;_0x47e5e9[_0x2d9a3d(0xe1)](_0x313d87)?_0x47d23=_0x47e5e9[_0x2d9a3d(0x116)](_0x313d87):(_0x47d23=new _0x1a5e77(),_0x47e5e9[_0x2d9a3d(0x17e)](_0x313d87,_0x47d23),_0x47d23[_0x2d9a3d(0xf5)](_0x45f400((_0x40562b=this['_configService'][_0x2d9a3d(0xfa)](Ce))!=null?_0x40562b:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2d9a3d(0x142)](_0x34bf53=>{const _0x6c3b97=_0x2d9a3d;this['_collabSession'][_0x6c3b97(0x177)]({'eventID':_0x20aac5[_0x6c3b97(0xde)],'data':{'unitID':this[_0x6c3b97(0x17b)],'operations':{[_0x34bf53['id']]:{'id':_0x34bf53['id'],'params':JSON[_0x6c3b97(0x139)](_0x34bf53[_0x6c3b97(0x13d)])}}}},this[_0x6c3b97(0x17b)]);})),_0x47d23[_0x2d9a3d(0xf4)](_0x4cdb52);})),this[_0x5ec2ef(0x105)][_0x5ec2ef(0x137)](this[_0x5ec2ef(0x17b)])[_0x5ec2ef(0x147)](_0xcb4a79=>this[_0x5ec2ef(0x103)][_0x5ec2ef(0x177)]({'eventID':_0x20aac5[_0x5ec2ef(0xde)],'data':{'unitID':this[_0x5ec2ef(0x17b)],'operations':{[_0xcb4a79['id']]:{'id':_0xcb4a79['id'],'params':JSON['stringify'](_0xcb4a79[_0x5ec2ef(0x13d)])}}}},this[_0x5ec2ef(0x17b)]));}[_0x41f8db(0x15a)](){const _0x2c9588=_0x41f8db;var _0x4da08c;this['_status$'][_0x2c9588(0xf4)](_0x2c9588(0xfd)),(_0x4da08c=this[_0x2c9588(0x140)])==null||_0x4da08c[_0x2c9588(0x174)](),this[_0x2c9588(0x140)]=null;}[_0x41f8db(0x173)](){const _0x824f34=_0x41f8db;var _0x320625;(_0x320625=this[_0x824f34(0x140)])==null||_0x320625[_0x824f34(0x174)](),this[_0x824f34(0x129)][_0x824f34(0xf4)](_0x824f34(0x14c));}[_0x41f8db(0x113)](){const _0x1387ba=_0x41f8db;var _0x25fe1a;this['_status$'][_0x1387ba(0xf4)](_0x1387ba(0xfd)),(_0x25fe1a=this[_0x1387ba(0x140)])==null||_0x25fe1a[_0x1387ba(0x174)](),this[_0x1387ba(0x140)]=null;}['_stopFollowing'](){const _0x48fd63=_0x41f8db;var _0x1c195d;this['_status$'][_0x48fd63(0xf4)](_0x48fd63(0xeb)),(_0x1c195d=this[_0x48fd63(0x140)])==null||_0x1c195d[_0x48fd63(0x174)]();}[_0x41f8db(0x122)](_0x171c7e){const _0x42edcc=_0x41f8db;if([_0x42edcc(0x13a),_0x42edcc(0xeb),_0x42edcc(0x146)][_0x42edcc(0x165)](this['_status'])||!_0x171c7e['data'][_0x42edcc(0x123)]||_0x171c7e[_0x42edcc(0x11b)][_0x42edcc(0x123)]===this['_collabSession'][_0x42edcc(0xdf)]())return;this[_0x42edcc(0x182)]===_0x42edcc(0xfd)&&this['_startFollowing']();const _0x35da6b=_0x171c7e[_0x42edcc(0x11b)]['operations'];Object[_0x42edcc(0x179)](_0x35da6b)[_0x42edcc(0x147)](_0x11bc9a=>{const _0x11b314=_0x42edcc;this['_commandService'][_0x11b314(0xee)](_0x11bc9a['id'],_0x11bc9a[_0x11b314(0x13d)]?JSON[_0x11b314(0x145)](_0x11bc9a[_0x11b314(0x13d)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x499a5c=_0x41f8db;var _0x7dbe1f;this['_status$'][_0x499a5c(0xf4)](_0x499a5c(0x146)),(_0x7dbe1f=this['_commandDisposable'])==null||_0x7dbe1f[_0x499a5c(0x174)]();}[_0x41f8db(0x115)](){const _0x36e934=_0x41f8db;this[_0x36e934(0x129)][_0x36e934(0xf4)]('idle'),this[_0x36e934(0x16f)]();}};N=Y([_(0x2,_0x2a7193),_(0x3,_0x1f30b7(L)),_(0x4,_0x4ae457)],N);function Le(){const _0xdefc3c=_0x41f8db,_0x35368b=_0x1e7cc1(S),_0x4e4129=_0x1e7cc1(_0x29b9d7),_0x54a682=_0x26668c(()=>_0x4e4129[_0xdefc3c(0xe9)](_0x2b487b[_0xdefc3c(0x13b)]),void 0x0,!0x1,[]),[_0x4f851c,_0x310911]=_0x56af5f(null),[_0x3cbbed,_0x1b1444]=_0x56af5f(c[_0xdefc3c(0x141)]),_0x5f22e0=_0x43c206(null);return _0x2de254(()=>(_0x54a682&&_0x35368b[_0xdefc3c(0xe2)](_0x54a682[_0xdefc3c(0x17f)]())[_0xdefc3c(0x13c)](_0x2c2dbe=>{const _0x59b848=_0xdefc3c;_0x310911(_0x2c2dbe),_0x5f22e0[_0x59b848(0xe6)]=_0x2c2dbe[_0x59b848(0x14a)][_0x59b848(0x142)](_0x5a0d64=>{_0x1b1444(_0x5a0d64);});}),()=>{const _0x30eb44=_0xdefc3c;var _0x1025c0;(_0x1025c0=_0x5f22e0[_0x30eb44(0xe6)])==null||_0x1025c0[_0x30eb44(0x14d)](),_0x5f22e0[_0x30eb44(0xe6)]=null;}),[_0x54a682,_0x35368b]),_0x4f851c?_0x237aec(_0x9f4a2d,{'align':_0xdefc3c(0x150),'disabled':_0x3cbbed===c['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x237aec(Re,{'status':_0x3cbbed,'coordinator':_0x4f851c}),'children':_0x237aec(_0xdefc3c(0x107),{'className':_0x50baa9(_0xdefc3c(0x120),{'univer-cursor-not-allowed':_0x3cbbed===c[_0xdefc3c(0xfc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3cbbed!==c[_0xdefc3c(0xfc)]}),'type':_0xdefc3c(0x107),'children':_0x237aec(W,{'className':_0xdefc3c(0x13e)})})}):null;}function Re(_0x232e0a){const _0x5ef5ff=_0x41f8db,{status:_0x20b0b4,coordinator:_0x3a0d83}=_0x232e0a;switch(_0x20b0b4){case c[_0x5ef5ff(0x141)]:return _0x237aec($e,{'coordinator':_0x3a0d83});case c[_0x5ef5ff(0x10b)]:return _0x237aec(xe,{'coordinator':_0x3a0d83});case c[_0x5ef5ff(0x136)]:return _0x237aec(Pe,{'coordinator':_0x3a0d83});case c[_0x5ef5ff(0xfc)]:return _0x237aec(Te,{});case c[_0x5ef5ff(0xef)]:return _0x237aec(Ae,{'coordinator':_0x3a0d83});default:return null;}}function $e(_0x42f458){const _0x46c09d=_0x41f8db,{coordinator:_0x2403b9}=_0x42f458;return _0x404b74(_0x19b1ee,{'children':[_0x237aec(_0x46c09d(0x11a),{'className':_0x46c09d(0xf9),'children':'Present\x20this\x20document'}),_0x237aec(_0x56117f,{'onClick':()=>_0x2403b9[_0x46c09d(0x10f)](),'children':_0x46c09d(0x143)})]});}function xe(_0x2512cf){const _0x1bbc62=_0x41f8db,{coordinator:_0x3dc151}=_0x2512cf;return _0x404b74(_0x19b1ee,{'children':[_0x237aec(_0x1bbc62(0x11a),{'className':_0x1bbc62(0xf9),'children':_0x1bbc62(0x160)}),_0x237aec(_0x56117f,{'onClick':()=>_0x3dc151[_0x1bbc62(0x10c)](),'children':'Stop\x20following'})]});}function Pe(_0x43093c){const _0x5c5230=_0x41f8db,{coordinator:_0xcde7de}=_0x43093c;return _0x404b74(_0x19b1ee,{'children':[_0x237aec('div',{'className':_0x5c5230(0xf9),'children':_0x5c5230(0x117)}),_0x237aec(_0x56117f,{'variant':_0x5c5230(0x135),'onClick':()=>_0xcde7de[_0x5c5230(0x17c)](),'children':_0x5c5230(0x101)})]});}function Ae(_0x56ff22){const _0x3296e9=_0x41f8db,{coordinator:_0x9953fd}=_0x56ff22;return _0x404b74(_0x19b1ee,{'children':[_0x237aec(_0x3296e9(0x11a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x237aec(_0x56117f,{'variant':_0x3296e9(0x15f),'onClick':()=>_0x9953fd[_0x3296e9(0x17a)](),'children':_0x3296e9(0x125)})]});}function Te(){return _0x237aec(_0x19b1ee,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x41f8db(0x162)],He=(_0x461681,_0x3fbe8c,_0x4e003b,_0x422798)=>{const _0x5a7033=_0x41f8db;for(var _0x201250=_0x422798>0x1?void 0x0:_0x422798?Fe(_0x3fbe8c,_0x4e003b):_0x3fbe8c,_0x280202=_0x461681[_0x5a7033(0x17d)]-0x1,_0x438c58;_0x280202>=0x0;_0x280202--)(_0x438c58=_0x461681[_0x280202])&&(_0x201250=_0x438c58(_0x201250)||_0x201250);return _0x201250;},A=(_0x530ccf,_0x4eb77f)=>(_0x2d0770,_0x34edac)=>_0x4eb77f(_0x2d0770,_0x34edac,_0x530ccf);let m=class extends _0x5c2fbe{constructor(_0x34cf70,_0x5e8717){const _0x1e361d=_0x41f8db;super(),this[_0x1e361d(0x176)]=_0x34cf70,this[_0x1e361d(0x156)]=_0x5e8717,this['_mountLiveShare']();}[_0x41f8db(0x157)](){const _0x34ce8b=_0x41f8db;this[_0x34ce8b(0xf6)](this['_uiPartsService'][_0x34ce8b(0xf8)](_0x498183[_0x34ce8b(0x12e)],()=>_0x1d5dc4(Le,this['_injector'])));}};function _0x5776(){const _0x45704c=['mutations','435tNyfWX','executeCommand','PRESENTING','onCommandExecuted','init','getStatus','live-share-icon','next','pipe','disposeWithMe','displayName','registerComponent','univer-mb-3\x20univer-w-full\x20univer-text-sm','getConfig','_presenter','OFFLINE','idle','NEW_CHANGESETS','_startPresenting','sheet','Start\x20following','619216uDSXQm','_collabSession','mask','_liveShareService','_reporters','button','symbol','trim','pluginName','FOLLOWING','stopFollowing','LiveShareIcon','314810lmeKPD','tryStartPresenting','LIVESHARE_TERMINATE','url(#$1','72JCipqF','_beIdle','map','_handleOnline','get','You\x27re\x20not\x20following\x20the\x20presenter','defineProperty','add','div','data','univerjs-icon\x20univerjs-icon-','SAME_OPERATION_SHARE_INTERVAL','svg','xlink:href','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','random','_handleOperation','presenter','_init','Stop\x20presenting','reverse','unitId','LIVESHARE_FETCH_OPERATIONS','_status$','string','LIVESHARE_REQUEST_HOST','245HOEIFV','defs','HEADER_MENU','toString','replace','onRendered','_stopFollowing','1em','onStarting','text','NOT_FOLLOWING','getInitialStates','use','stringify','presenting','UNIVER_SHEET','then','params','univer-size-4','_commandService','_commandDisposable','IDLE','subscribe','Start','tag','parse','offline','forEach','_sharedOperations','children','status$','fill','following','unsubscribe','UNIVER_LIVE_SHARE_PLUGIN','requireSession','end','dispose$','delete','1546rBRJQS','3588lWpMGy','61024KyyssT','_uiPartsService','_mountLiveShare','registerSharedOperation','defIds','_stopPresenting','colorChannel1','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','attrs','_handleNewChangeSets','default','You\x27re\x20following\x20the\x20presenter','registerInitialStateReporter','getOwnPropertyDescriptor','currentColor','19741183jmCzeX','includes','_config','30882zYHuee','_univerInstanceService','shouldShareOperation','getValue','UniverIcon','memberID','_collabSessionService','asObservable','_fetchOperations','_configService','http://www.w3.org/2000/svg','_entities','_startFollowing','dispose','_handleNewHost','_injector','send','getTypeOfUnitDisposed$','values','stopPresenting','_unitID','startFollowing','length','set','getUnitId','complete','path','_status','_startLiveShareCoordinator','LIVESHARE_OPERATION','getMemberID','substring','has','getLiveShareCoordinator','setConfig','entries','idSuffix','current','evenodd','none','getCurrentTypeOfUnit$','540505ylwPqF','not-following'];_0x5776=function(){return _0x45704c;};return _0x5776();}m=He([A(0x0,_0x1f30b7(_0x3c7c97)),A(0x1,_0x48d747)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x3c79c1,_0x4bcb92,_0x32e881,_0x2a41d8)=>{const _0x31228d=_0x41f8db;for(var _0x3fe26a=_0x2a41d8>0x1?void 0x0:_0x2a41d8?Ue(_0x4bcb92,_0x32e881):_0x4bcb92,_0x35a83a=_0x3c79c1[_0x31228d(0x17d)]-0x1,_0x44b8cd;_0x35a83a>=0x0;_0x35a83a--)(_0x44b8cd=_0x3c79c1[_0x35a83a])&&(_0x3fe26a=_0x44b8cd(_0x3fe26a)||_0x3fe26a);return _0x3fe26a;},je=(_0x160c16,_0x1302f0)=>(_0x29ca03,_0xf129cb)=>_0x1302f0(_0x29ca03,_0xf129cb,_0x160c16);let I=class extends _0x5c2fbe{constructor(_0x8f87b6){const _0x3f6896=_0x41f8db;super(),this[_0x3f6896(0x105)]=_0x8f87b6,this[_0x3f6896(0x124)]();}[_0x41f8db(0x124)](){const _0x540743=_0x41f8db;[_0x635f74['id'],_0x556ff9['id'],_0xfda1ff['id']][_0x540743(0x147)](_0x361ab9=>{const _0x3b1807=_0x540743;this['disposeWithMe'](this[_0x3b1807(0x105)][_0x3b1807(0x158)](_0x361ab9));});}};I=Ve([je(0x0,_0x1f30b7(L))],I);var Me=Object[_0x41f8db(0x118)],ke=Object[_0x41f8db(0x162)],Ge=(_0x2409b7,_0x15cb08,_0x32ddf6)=>_0x15cb08 in _0x2409b7?Me(_0x2409b7,_0x15cb08,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32ddf6}):_0x2409b7[_0x15cb08]=_0x32ddf6,We=(_0x34ea07,_0x32b203,_0x3c8c38,_0x24130d)=>{for(var _0x210a8e=_0x24130d>0x1?void 0x0:_0x24130d?ke(_0x32b203,_0x3c8c38):_0x32b203,_0x455a70=_0x34ea07['length']-0x1,_0x446546;_0x455a70>=0x0;_0x455a70--)(_0x446546=_0x34ea07[_0x455a70])&&(_0x210a8e=_0x446546(_0x210a8e)||_0x210a8e);return _0x210a8e;},F=(_0x118285,_0x5335bc)=>(_0x4b235a,_0x55e72b)=>_0x5335bc(_0x4b235a,_0x55e72b,_0x118285),B=(_0x283453,_0x5e5934,_0x168056)=>Ge(_0x283453,typeof _0x5e5934!='symbol'?_0x5e5934+'':_0x5e5934,_0x168056);function _0xc32e(_0x293d3b,_0x368ed1){_0x293d3b=_0x293d3b-0xde;const _0x5776ec=_0x5776();let _0xc32e37=_0x5776ec[_0x293d3b];return _0xc32e37;}const Ye=_0x41f8db(0x14e);let b=class extends _0x509f04{constructor(_0x15b42a=T,_0x19b6f1,_0x3ae34){const _0x367d7e=_0x41f8db;super(),this[_0x367d7e(0x166)]=_0x15b42a,this[_0x367d7e(0x176)]=_0x19b6f1,this[_0x367d7e(0x170)]=_0x3ae34;const {..._0x266c3c}=_0x139f7f({},T,this[_0x367d7e(0x166)]);this[_0x367d7e(0x170)][_0x367d7e(0xe3)](ye,_0x266c3c);}[_0x41f8db(0x134)](){const _0x128506=_0x41f8db;_0x1e8ec2(this['_injector'],_0x2f956e([[L],[S],[I],[m]],this['_config']['override'])),_0x5ca662(this[_0x128506(0x176)],[[I]]);}[_0x41f8db(0x131)](){const _0x12c0f6=_0x41f8db;_0x5ca662(this[_0x12c0f6(0x176)],[[m]]);}};B(b,'type',_0x2b487b['UNIVER_UNKNOWN']),B(b,_0x41f8db(0x10a),Ye),b=We([_0x5c1a74(_0x138530),F(0x1,_0x1f30b7(_0x3c7c97)),F(0x2,_0x2a7193)],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
|
-
(function(
|
|
1
|
+
function _0x2e79(_0x215b25,_0x244199){_0x215b25=_0x215b25-0x1ed;const _0x4a56bd=_0x4a56();let _0x2e7907=_0x4a56bd[_0x215b25];return _0x2e7907;}(function(_0x3b4511,_0x21a96c){const _0x1b81d7=_0x2e79,_0x26830a=_0x3b4511();while(!![]){try{const _0x3af5c8=-parseInt(_0x1b81d7(0x1ff))/0x1*(parseInt(_0x1b81d7(0x215))/0x2)+-parseInt(_0x1b81d7(0x21b))/0x3*(-parseInt(_0x1b81d7(0x210))/0x4)+parseInt(_0x1b81d7(0x218))/0x5*(-parseInt(_0x1b81d7(0x21c))/0x6)+parseInt(_0x1b81d7(0x200))/0x7*(-parseInt(_0x1b81d7(0x220))/0x8)+-parseInt(_0x1b81d7(0x1f4))/0x9+-parseInt(_0x1b81d7(0x21e))/0xa+parseInt(_0x1b81d7(0x1fe))/0xb;if(_0x3af5c8===_0x21a96c)break;else _0x26830a['push'](_0x26830a['shift']());}catch(_0xa31650){_0x26830a['push'](_0x26830a['shift']());}}}(_0x4a56,0x7bf27),function(_0x3dd7c6,_0x2bebaa){const _0x1e5160=_0x2e79;typeof exports==_0x1e5160(0x222)&&typeof module<'u'?_0x2bebaa(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==_0x1e5160(0x1f7)&&define[_0x1e5160(0x225)]?define([_0x1e5160(0x20a),_0x1e5160(0x1f5),_0x1e5160(0x1fc),_0x1e5160(0x213),_0x1e5160(0x206),_0x1e5160(0x211)],_0x2bebaa):(_0x3dd7c6=typeof globalThis<'u'?globalThis:_0x3dd7c6||self,_0x2bebaa(_0x3dd7c6[_0x1e5160(0x205)],_0x3dd7c6[_0x1e5160(0x20e)],_0x3dd7c6[_0x1e5160(0x1f8)],_0x3dd7c6[_0x1e5160(0x21d)],_0x3dd7c6[_0x1e5160(0x1f0)],_0x3dd7c6[_0x1e5160(0x209)]));}(this,function(_0x445fa6,_0x3e2657,_0x3dd9cf,_0xaf2928,_0x189704,_0x54c177){'use strict';const _0x4fa553=_0x2e79;class _0x1ff194 extends _0x189704[_0x4fa553(0x20f)]{[_0x4fa553(0x207)](_0x3d44be,_0x12754c,_0x3a3b8b,_0x16a38a,_0x46cc84){const _0x5e00f3=_0x4fa553,_0x12ad73=_0x3d44be[_0x5e00f3(0x20d)](_0x445fa6[_0x5e00f3(0x224)]),_0x4f2b1b=_0x3d44be[_0x5e00f3(0x20d)](_0x3e2657[_0x5e00f3(0x20c)]),_0x302bb4=_0x12754c['getUnitId'](),_0x4b129f=_0x12754c[_0x5e00f3(0x212)](),_0xd52f95=_0x12ad73['getLiveShareCoordinatorSync'](_0x302bb4);(_0xd52f95==null?void 0x0:_0xd52f95[_0x5e00f3(0x216)]())!==_0x445fa6[_0x5e00f3(0x1fd)]['PRESENTING']||(_0x3a3b8b['getSheetId']()!==_0x4b129f[_0x5e00f3(0x20b)]()&&this[_0x5e00f3(0x201)][_0x5e00f3(0x208)](_0x3dd9cf[_0x5e00f3(0x1ee)]['id'],{'unitId':_0x302bb4,'subUnitId':_0x3a3b8b['getSheetId']()}),!_0x4f2b1b[_0x5e00f3(0x202)](_0x302bb4))||_0x46cc84[_0x5e00f3(0x1fb)](_0xaf2928[_0x5e00f3(0x1f6)]['id'],{'unitId':_0x12754c['getUnitId'](),'sheetId':_0x3a3b8b['getSheetId'](),'sheetViewStartRow':_0x16a38a[_0x5e00f3(0x219)],'sheetViewStartColumn':_0x16a38a[_0x5e00f3(0x1f9)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x189704['FRange'][_0x4fa553(0x1ed)](_0x1ff194);class _0x16fd99 extends _0x54c177[_0x4fa553(0x1fa)]{['getLiveShareStatus'](){const _0x5efc0f=_0x4fa553;var _0x5cb784,_0x7abb0a;const _0x5d029d=this[_0x5efc0f(0x21f)][_0x5efc0f(0x20d)](_0x445fa6[_0x5efc0f(0x224)]),_0x45d026=(_0x5cb784=this[_0x5efc0f(0x203)]())==null?void 0x0:_0x5cb784[_0x5efc0f(0x1ef)]();if(!_0x45d026)throw new Error(_0x5efc0f(0x217));const _0x4f6177=_0x5d029d[_0x5efc0f(0x1f2)](_0x45d026);return(_0x7abb0a=_0x4f6177==null?void 0x0:_0x4f6177[_0x5efc0f(0x216)]())!=null?_0x7abb0a:_0x445fa6[_0x5efc0f(0x1fd)][_0x5efc0f(0x1f3)];}[_0x4fa553(0x21a)](){const _0x126e4e=_0x4fa553;var _0x22a487;const _0x3cc468=this[_0x126e4e(0x21f)][_0x126e4e(0x20d)](_0x445fa6[_0x126e4e(0x224)]),_0x1280f8=(_0x22a487=this[_0x126e4e(0x203)]())==null?void 0x0:_0x22a487[_0x126e4e(0x1ef)]();if(!_0x1280f8)throw new Error(_0x126e4e(0x217));const _0x2ba07b=_0x3cc468[_0x126e4e(0x1f2)](_0x1280f8);if(!_0x2ba07b)throw new Error(_0x126e4e(0x223));_0x2ba07b['startFollowing']();}['stopFollowing'](){const _0x9de722=_0x4fa553;var _0x3920f6;const _0x2dbe0a=this[_0x9de722(0x21f)][_0x9de722(0x20d)](_0x445fa6['LiveShareController']),_0x4687a4=(_0x3920f6=this[_0x9de722(0x203)]())==null?void 0x0:_0x3920f6[_0x9de722(0x1ef)]();if(!_0x4687a4)throw new Error(_0x9de722(0x217));const _0x3b494a=_0x2dbe0a[_0x9de722(0x1f2)](_0x4687a4);if(!_0x3b494a)throw new Error(_0x9de722(0x223));_0x3b494a['stopFollowing']();}[_0x4fa553(0x214)](){const _0x2d0ebc=_0x4fa553;var _0x1e1490;const _0x1b4cb3=this[_0x2d0ebc(0x21f)][_0x2d0ebc(0x20d)](_0x445fa6['LiveShareController']),_0x335ef0=(_0x1e1490=this[_0x2d0ebc(0x203)]())==null?void 0x0:_0x1e1490[_0x2d0ebc(0x1ef)]();if(!_0x335ef0)throw new Error('No\x20active\x20workbook\x20found.');const _0x4fcc10=_0x1b4cb3[_0x2d0ebc(0x1f2)](_0x335ef0);if(!_0x4fcc10)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4fcc10[_0x2d0ebc(0x1f1)]();}[_0x4fa553(0x204)](){const _0x19b620=_0x4fa553;var _0x1aa394;const _0x74678b=this[_0x19b620(0x21f)][_0x19b620(0x20d)](_0x445fa6[_0x19b620(0x224)]),_0x3bdeed=(_0x1aa394=this[_0x19b620(0x203)]())==null?void 0x0:_0x1aa394[_0x19b620(0x1ef)]();if(!_0x3bdeed)throw new Error(_0x19b620(0x217));const _0x29dad8=_0x74678b['getLiveShareCoordinatorSync'](_0x3bdeed);if(!_0x29dad8)throw new Error(_0x19b620(0x223));_0x29dad8[_0x19b620(0x204)]();}}_0x54c177[_0x4fa553(0x1fa)]['extend'](_0x16fd99);class _0xf46d76 extends _0x54c177[_0x4fa553(0x221)]{get['LiveShareStatusEnum'](){const _0x2e77d2=_0x4fa553;return _0x445fa6[_0x2e77d2(0x1fd)];}}_0x54c177['FEnum']['extend'](_0xf46d76);}));function _0x4a56(){const _0x33773f=['object','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','LiveShareController','amd','extend','SetWorksheetActiveOperation','getId','UniverSheetsFacade','tryStartPresenting','getLiveShareCoordinatorSync','IDLE','5387436MGLjtZ','@univerjs/engine-render','SetScrollOperation','function','UniverSheets','startColumn','FUniver','syncExecuteCommand','@univerjs/sheets','LiveShareStatus','16616028kHHsCT','6469uWpYXf','7OVPNYM','_commandService','getRenderById','getActiveWorkbook','stopPresenting','UniverProLiveShare','@univerjs/sheets/facade','_initialize','executeCommand','UniverCoreFacade','@univerjs-pro/live-share','getSheetId','IRenderManagerService','get','UniverEngineRender','FRange','1591792tTZdfJ','@univerjs/core/facade','getActiveSheet','@univerjs/sheets-ui','startPresenting','6GyPkyQ','getStatus','No\x20active\x20workbook\x20found.','17590Pwsokj','startRow','startFollowing','3QBAhpz','18Ohvnii','UniverSheetsUi','4344630UIdjNk','_injector','2702248XrqWjE','FEnum'];_0x4a56=function(){return _0x33773f;};return _0x4a56();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x9052(_0x1c12fb,_0x13524d){_0x1c12fb=_0x1c12fb-0x126;const _0x2f9cc0=_0x2f9c();let _0x90527b=_0x2f9cc0[_0x1c12fb];return _0x90527b;}(function(_0x19b239,_0x489bbd){const _0x5ebd20=_0x9052,_0x38ff74=_0x19b239();while(!![]){try{const _0x16e011=-parseInt(_0x5ebd20(0x191))/0x1+-parseInt(_0x5ebd20(0x204))/0x2*(-parseInt(_0x5ebd20(0x1a4))/0x3)+-parseInt(_0x5ebd20(0x198))/0x4+-parseInt(_0x5ebd20(0x14a))/0x5*(-parseInt(_0x5ebd20(0x1c4))/0x6)+-parseInt(_0x5ebd20(0x1db))/0x7+parseInt(_0x5ebd20(0x169))/0x8*(-parseInt(_0x5ebd20(0x148))/0x9)+parseInt(_0x5ebd20(0x134))/0xa;if(_0x16e011===_0x489bbd)break;else _0x38ff74['push'](_0x38ff74['shift']());}catch(_0x4bc5b8){_0x38ff74['push'](_0x38ff74['shift']());}}}(_0x2f9c,0x5b79e),function(_0x492156,_0x20b2fb){const _0x5cf0de=_0x9052;typeof exports==_0x5cf0de(0x1e9)&&typeof module<'u'?_0x20b2fb(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==_0x5cf0de(0x13e)&&define[_0x5cf0de(0x1f0)]?define(['exports',_0x5cf0de(0x129),_0x5cf0de(0x1c6),_0x5cf0de(0x1c8),'@univerjs/design',_0x5cf0de(0x1ec),_0x5cf0de(0x1d6),'@univerjs-pro/collaboration-client','@univerjs/sheets',_0x5cf0de(0x1d5),_0x5cf0de(0x136),_0x5cf0de(0x1e8)],_0x20b2fb):(_0x492156=typeof globalThis<'u'?globalThis:_0x492156||self,_0x20b2fb(_0x492156['UniverProLiveShare']={},_0x492156['UniverCore'],_0x492156['UniverUi'],_0x492156[_0x5cf0de(0x193)],_0x492156['UniverDesign'],_0x492156[_0x5cf0de(0x193)],_0x492156[_0x5cf0de(0x13b)],_0x492156[_0x5cf0de(0x133)],_0x492156[_0x5cf0de(0x1ae)],_0x492156[_0x5cf0de(0x1d5)],_0x492156['rxjs'][_0x5cf0de(0x20c)],_0x492156[_0x5cf0de(0x152)]));}(this,function(_0x124aa4,_0x2e6932,_0x2124f8,_0x479a5c,_0x1b6253,_0x27bb21,_0x25a5e1,_0x21ff7a,_0x113b7d,_0x241a2b,_0x352fbc,_0x37f5a8){'use strict';const _0xff167c=_0x9052;var _0x2a0138=Object['defineProperty'],_0x12156b=(_0x5546d9,_0x36649e,_0x47773c)=>_0x36649e in _0x5546d9?_0x2a0138(_0x5546d9,_0x36649e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47773c}):_0x5546d9[_0x36649e]=_0x47773c,_0x4aa7f7=(_0x17cb18,_0x3bc3bf,_0xb9a8a0)=>_0x12156b(_0x17cb18,typeof _0x3bc3bf!=_0xff167c(0x1a2)?_0x3bc3bf+'':_0x3bc3bf,_0xb9a8a0);function _0x17d749({ref:_0x5d007f,..._0x1f99bb}){const _0x2ad43b=_0xff167c,{icon:_0x267217,id:_0x58c154,className:_0x2d6a58,extend:_0x589a63,..._0x45cfd6}=_0x1f99bb,_0x4b2f2a=(_0x2ad43b(0x1a0)+_0x58c154+'\x20'+(_0x2d6a58||''))[_0x2ad43b(0x172)](),_0x4c3890=_0x27bb21[_0x2ad43b(0x1fd)]('_'+_0x36960d());return _0x44cec6(_0x267217,''+_0x58c154,{'defIds':_0x267217[_0x2ad43b(0x1ad)],'idSuffix':_0x4c3890[_0x2ad43b(0x173)]},{'ref':_0x5d007f,'className':_0x4b2f2a,..._0x45cfd6},_0x589a63);}function _0x44cec6(_0x2c5117,_0x4b0cc9,_0x9a3701,_0x500d1f,_0x103d6f){const _0x2ca9d6=_0xff167c;return _0x27bb21[_0x2ca9d6(0x183)](_0x2c5117[_0x2ca9d6(0x150)],{'key':_0x4b0cc9,..._0xa85129(_0x2c5117,_0x9a3701,_0x103d6f),..._0x500d1f},(_0x9dc60c(_0x2c5117,_0x9a3701)[_0x2ca9d6(0x17b)]||[])['map']((_0x2743e6,_0x587f3b)=>_0x44cec6(_0x2743e6,_0x4b0cc9+'-'+_0x2c5117[_0x2ca9d6(0x150)]+'-'+_0x587f3b,_0x9a3701,void 0x0,_0x103d6f)));}function _0xa85129(_0x5e2ac9,_0x4de84f,_0x5643d4){const _0x4078a1=_0xff167c,_0x133622={..._0x5e2ac9['attrs']};_0x5643d4!=null&&_0x5643d4[_0x4078a1(0x1fc)]&&_0x133622[_0x4078a1(0x155)]==='colorChannel1'&&(_0x133622[_0x4078a1(0x155)]=_0x5643d4[_0x4078a1(0x1fc)]),_0x5e2ac9[_0x4078a1(0x150)]===_0x4078a1(0x1bb)&&_0x133622['id']&&(_0x133622['id']=_0x133622['id']+_0x4de84f[_0x4078a1(0x12e)]),Object[_0x4078a1(0x205)](_0x133622)[_0x4078a1(0x19e)](([_0x5b80b9,_0xc2780b])=>{const _0x1171d4=_0x4078a1;_0x5b80b9===_0x1171d4(0x1bb)&&typeof _0xc2780b==_0x1171d4(0x189)&&(_0x133622[_0x5b80b9]=_0xc2780b[_0x1171d4(0x1c0)](/url\(#(.*)\)/,_0x1171d4(0x184)+_0x4de84f[_0x1171d4(0x12e)]+')'));});const {defIds:_0x119b73}=_0x4de84f;return!_0x119b73||_0x119b73[_0x4078a1(0x19b)]===0x0||(_0x5e2ac9['tag']===_0x4078a1(0x199)&&_0x133622[_0x4078a1(0x1c5)]&&(_0x133622[_0x4078a1(0x1c5)]=_0x133622[_0x4078a1(0x1c5)]+_0x4de84f[_0x4078a1(0x12e)]),Object[_0x4078a1(0x205)](_0x133622)[_0x4078a1(0x19e)](([_0x317063,_0x364302])=>{const _0x1e5771=_0x4078a1;typeof _0x364302==_0x1e5771(0x189)&&(_0x133622[_0x317063]=_0x364302[_0x1e5771(0x1c0)](/url\(#(.*)\)/,_0x1e5771(0x184)+_0x4de84f[_0x1e5771(0x12e)]+')'));})),_0x133622;}function _0x9dc60c(_0xa05f7c,_0x22e11c){const _0x4aff54=_0xff167c;var _0x54e25e;const {defIds:_0x4c305a}=_0x22e11c;return!_0x4c305a||_0x4c305a[_0x4aff54(0x19b)]===0x0?_0xa05f7c:_0xa05f7c[_0x4aff54(0x150)]===_0x4aff54(0x181)&&((_0x54e25e=_0xa05f7c['children'])!=null&&_0x54e25e['length'])?{..._0xa05f7c,'children':_0xa05f7c['children']['map'](_0x4cc245=>typeof _0x4cc245[_0x4aff54(0x1b4)]['id']==_0x4aff54(0x189)&&_0x4c305a&&_0x4c305a[_0x4aff54(0x1a5)](_0x4cc245[_0x4aff54(0x1b4)]['id'])?{..._0x4cc245,'attrs':{..._0x4cc245[_0x4aff54(0x1b4)],'id':_0x4cc245[_0x4aff54(0x1b4)]['id']+_0x22e11c[_0x4aff54(0x12e)]}}:_0x4cc245)}:_0xa05f7c;}function _0x36960d(){const _0x39dfc7=_0xff167c;return Math[_0x39dfc7(0x12f)]()['toString'](0x24)[_0x39dfc7(0x1df)](0x2,0x8);}_0x17d749['displayName']=_0xff167c(0x16e);const _0x431634={'tag':_0xff167c(0x18c),'attrs':{'xmlns':_0xff167c(0x1e4),'fill':'none','viewBox':_0xff167c(0x149),'width':_0xff167c(0x167),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0xff167c(0x1e7),'d':_0xff167c(0x174)}},{'tag':_0xff167c(0x14f),'attrs':{'fill':'currentColor','d':_0xff167c(0x18f),'fillRule':_0xff167c(0x188),'clipRule':_0xff167c(0x188)}}]},_0x4b6f68=_0x27bb21[_0xff167c(0x1fe)](function(_0x43c13c,_0x7fb67f){const _0x582284=_0xff167c;return _0x27bb21['createElement'](_0x17d749,Object[_0x582284(0x1e1)]({},_0x43c13c,{'id':'live-share-icon','ref':_0x7fb67f,'icon':_0x431634}));});_0x4b6f68[_0xff167c(0x1a6)]='LiveShareIcon';class _0x91f7c9 extends _0x2e6932[_0xff167c(0x1b7)]{constructor(){const _0x368338=_0xff167c;super(...arguments),_0x4aa7f7(this,_0x368338(0x1a8),new Set()),_0x4aa7f7(this,_0x368338(0x147),new Set());}[_0xff167c(0x12a)](_0x215d02){const _0x15737d=_0xff167c;return this[_0x15737d(0x1a8)]['add'](_0x215d02),_0x2e6932['toDisposable'](()=>this['_sharedOperations'][_0x15737d(0x1af)](_0x215d02));}[_0xff167c(0x208)](_0x292d7f){const _0x1d419a=_0xff167c;return this[_0x1d419a(0x147)][_0x1d419a(0x165)](_0x292d7f),_0x2e6932[_0x1d419a(0x182)](()=>this[_0x1d419a(0x147)]['delete'](_0x292d7f));}['shouldShareOperation'](_0x23e3a4){const _0x10919a=_0xff167c;return this[_0x10919a(0x1a8)][_0x10919a(0x18a)](_0x23e3a4);}['getInitialStates'](_0x4e076e){return Array['from'](this['_reporters'])['map'](_0x4c505a=>_0x4c505a(_0x4e076e));}}var _0x32a6b7=Object[_0xff167c(0x160)],_0x212b37=(_0x791078,_0x334187,_0x505f31,_0x5b2841)=>{const _0x3abb97=_0xff167c;for(var _0x82a75=_0x5b2841>0x1?void 0x0:_0x5b2841?_0x32a6b7(_0x334187,_0x505f31):_0x334187,_0x41d96e=_0x791078[_0x3abb97(0x19b)]-0x1,_0x4bd210;_0x41d96e>=0x0;_0x41d96e--)(_0x4bd210=_0x791078[_0x41d96e])&&(_0x82a75=_0x4bd210(_0x82a75)||_0x82a75);return _0x82a75;},_0x4379c2=(_0x4f7dac,_0x5af90e)=>(_0x1a2c11,_0x33db49)=>_0x5af90e(_0x1a2c11,_0x33db49,_0x4f7dac);_0x124aa4[_0xff167c(0x19f)]=class extends _0x2e6932[_0xff167c(0x14c)]{constructor(_0x2efbce,_0xeb1310,_0x4f6f2a){const _0x4542e8=_0xff167c;super(),_0x4aa7f7(this,_0x4542e8(0x1f6),new Map()),(this[_0x4542e8(0x20a)]=_0x2efbce,this[_0x4542e8(0x186)]=_0xeb1310,this[_0x4542e8(0x15b)]=_0x4f6f2a,this[_0x4542e8(0x170)]());}async[_0xff167c(0x131)](_0x10a52a){const _0x4eebce=_0xff167c;return this[_0x4eebce(0x1f6)][_0x4eebce(0x18a)](_0x10a52a)||await this[_0x4eebce(0x1f8)](_0x10a52a),this[_0x4eebce(0x1f6)]['get'](_0x10a52a);}[_0xff167c(0x19d)](_0x2a9b88){const _0xc59744=_0xff167c;var _0x5b1919;return(_0x5b1919=this[_0xc59744(0x1f6)]['get'](_0x2a9b88))!=null?_0x5b1919:null;}[_0xff167c(0x170)](){const _0xb13e2c=_0xff167c;this[_0xb13e2c(0x20a)][_0xb13e2c(0x1d0)](_0x2e6932[_0xb13e2c(0x1ca)][_0xb13e2c(0x1ee)])[_0xb13e2c(0x190)](_0x352fbc[_0xb13e2c(0x176)](this[_0xb13e2c(0x1c3)]))[_0xb13e2c(0x1cd)](async _0x31b8b4=>{const _0x499a5e=_0xb13e2c,_0x5f0a10=_0x31b8b4[_0x499a5e(0x19c)]();this['_entities'][_0x499a5e(0x18a)](_0x5f0a10)||this[_0x499a5e(0x1f8)](_0x5f0a10);}),this[_0xb13e2c(0x20a)][_0xb13e2c(0x1e6)](_0x2e6932[_0xb13e2c(0x1ca)][_0xb13e2c(0x1ee)])[_0xb13e2c(0x190)](_0x352fbc['takeUntil'](this[_0xb13e2c(0x1c3)]))[_0xb13e2c(0x1cd)](_0x4957f2=>{const _0x105c00=_0xb13e2c,_0x3684b3=_0x4957f2['getUnitId'](),_0x45bad2=this[_0x105c00(0x1f6)]['get'](_0x3684b3);_0x45bad2==null||_0x45bad2[_0x105c00(0x1bd)]();});}async[_0xff167c(0x1f8)](_0xf30db7){const _0x3c571d=_0xff167c,_0x5a63e4=await this['_collabSessionService'][_0x3c571d(0x195)](_0xf30db7),_0x3f8354=this['_injector'][_0x3c571d(0x1b5)](_0x124aa4[_0x3c571d(0x141)],_0xf30db7,_0x5a63e4);return _0x3f8354[_0x3c571d(0x153)](),this['_entities'][_0x3c571d(0x194)](_0xf30db7,_0x3f8354),_0x3f8354;}},_0x124aa4[_0xff167c(0x19f)]=_0x212b37([_0x4379c2(0x0,_0x2e6932['IUniverInstanceService']),_0x4379c2(0x1,_0x2e6932[_0xff167c(0x1ed)](_0x2e6932[_0xff167c(0x1eb)])),_0x4379c2(0x2,_0x2e6932[_0xff167c(0x1ed)](_0x21ff7a['CollaborationSessionService']))],_0x124aa4[_0xff167c(0x19f)]);var _0x3960af=(_0x47f314=>(_0x47f314[_0xff167c(0x12c)]='offline',_0x47f314[_0xff167c(0x1f9)]=_0xff167c(0x1c2),_0x47f314['FOLLOWING']=_0xff167c(0x146),_0x47f314[_0xff167c(0x17c)]=_0xff167c(0x1c9),_0x47f314[_0xff167c(0x179)]='presenting',_0x47f314))(_0x3960af||{});const _0x4e7fe0=_0xff167c(0x1d2),_0x30cfe0=0xc8;_0x124aa4[_0xff167c(0x141)]=class extends _0x2e6932[_0xff167c(0x14c)]{constructor(_0xb0c605,_0x127c6f,_0x483a0a,_0x27bf4e,_0x3bc9f1){const _0x16fc74=_0xff167c;super(),_0x4aa7f7(this,_0x16fc74(0x126),new _0x241a2b[(_0x16fc74(0x1b9))](_0x16fc74(0x1c2))),_0x4aa7f7(this,_0x16fc74(0x177),this[_0x16fc74(0x126)][_0x16fc74(0x17d)]()),_0x4aa7f7(this,_0x16fc74(0x170),!0x1),_0x4aa7f7(this,_0x16fc74(0x151),null),_0x4aa7f7(this,'_presenter',null),(this[_0x16fc74(0x132)]=_0xb0c605,this[_0x16fc74(0x1dc)]=_0x127c6f,this[_0x16fc74(0x1ef)]=_0x483a0a,this[_0x16fc74(0x15c)]=_0x27bf4e,this[_0x16fc74(0x17a)]=_0x3bc9f1);}get[_0xff167c(0x164)](){const _0x45f3e9=_0xff167c;return this[_0x45f3e9(0x126)][_0x45f3e9(0x20d)]();}[_0xff167c(0x1bd)](){const _0x49aeef=_0xff167c;var _0x42fcab;(_0x42fcab=this[_0x49aeef(0x151)])==null||_0x42fcab[_0x49aeef(0x1bd)](),this[_0x49aeef(0x126)][_0x49aeef(0x17f)](_0x49aeef(0x1c2)),this[_0x49aeef(0x126)][_0x49aeef(0x128)]();}['getStatus'](){return this['_status'];}[_0xff167c(0x153)](){const _0x392008=_0xff167c;this[_0x392008(0x170)]||(this[_0x392008(0x170)]=!0x0,this[_0x392008(0x1dc)][_0x392008(0x196)][_0x392008(0x190)](_0x352fbc[_0x392008(0x176)](this[_0x392008(0x1c3)]))[_0x392008(0x1cd)](_0x32d2b6=>{const _0x414b47=_0x392008;switch(_0x32d2b6){case _0x21ff7a['SessionStatus'][_0x414b47(0x12c)]:this[_0x414b47(0x1c1)]();break;case _0x21ff7a[_0x414b47(0x156)][_0x414b47(0x209)]:this['_handleOnline']();break;}}),this[_0x392008(0x1dc)][_0x392008(0x16f)][_0x392008(0x190)](_0x352fbc[_0x392008(0x176)](this[_0x392008(0x1c3)]))[_0x392008(0x1cd)](_0x2f1ec5=>{const _0x203c82=_0x392008,{eventID:_0xa01515}=_0x2f1ec5;switch(_0xa01515){case _0x25a5e1['CollaborationEvent'][_0x203c82(0x1ac)]:this[_0x203c82(0x135)](_0x2f1ec5);break;case _0x25a5e1[_0x203c82(0x1ab)][_0x203c82(0x1b0)]:this['_handleOperation'](_0x2f1ec5);break;case _0x25a5e1[_0x203c82(0x1ab)][_0x203c82(0x1f2)]:this['_handleTerminate']();break;case _0x25a5e1[_0x203c82(0x1ab)][_0x203c82(0x1b8)]:this[_0x203c82(0x15f)](_0x2f1ec5);break;}}));}[_0xff167c(0x154)](){const _0x4002ad=_0xff167c;this['_collabSession'][_0x4002ad(0x1bf)]({'eventID':_0x25a5e1[_0x4002ad(0x1ab)][_0x4002ad(0x161)],'data':{'unitID':this[_0x4002ad(0x132)],'userID':this['_collabSession'][_0x4002ad(0x16c)]()}},this[_0x4002ad(0x132)]);}[_0xff167c(0x1c7)](){const _0x179481=_0xff167c;this['_status']==='presenting'&&(this[_0x179481(0x126)][_0x179481(0x17f)](_0x179481(0x1c2)),this['_collabSession'][_0x179481(0x1bf)]({'eventID':_0x25a5e1[_0x179481(0x1ab)][_0x179481(0x1f2)],'data':{'unitID':this['_unitID']}},this[_0x179481(0x132)]));}[_0xff167c(0x158)](){const _0xf6caac=_0xff167c;this[_0xf6caac(0x164)]==='not-following'&&(this[_0xf6caac(0x126)][_0xf6caac(0x17f)](_0xf6caac(0x146)),this[_0xf6caac(0x1a7)]());}['stopFollowing'](){const _0x5a5e5d=_0xff167c;this['_status']==='following'&&this[_0x5a5e5d(0x15d)]();}['_handleNewHost'](_0x39d721){const _0x49856d=_0xff167c,{presenter:_0x3312ef}=_0x39d721['data'],_0x2c93d1=this[_0x49856d(0x1dc)]['getMemberID']();this['_presenter']=_0x3312ef,_0x3312ef===_0x2c93d1?(this[_0x49856d(0x15d)](),this[_0x49856d(0x197)]()):this[_0x49856d(0x164)]!==_0x49856d(0x1c9)&&(this[_0x49856d(0x1e2)](),this['_startFollowing']());}[_0xff167c(0x1e5)](){const _0x5aab9c=_0xff167c,_0x79866e={'eventID':_0x25a5e1[_0x5aab9c(0x1ab)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x5aab9c(0x1dc)][_0x5aab9c(0x1bf)](_0x79866e,this[_0x5aab9c(0x132)]);}[_0xff167c(0x1ce)](){const _0x382909=_0xff167c;this[_0x382909(0x1cb)]=null,this[_0x382909(0x164)]!==_0x382909(0x18e)&&this[_0x382909(0x1a3)]();}[_0xff167c(0x15f)](_0x55cb47){const _0x200cba=_0xff167c;if(this[_0x200cba(0x164)]===_0x200cba(0x146)&&this[_0x200cba(0x1cb)]===_0x55cb47[_0x200cba(0x1b6)]['memberID']){const _0x42df3d=_0x25a5e1[_0x200cba(0x14b)](_0x55cb47['data'])[_0x200cba(0x1d7)][_0x200cba(0x18b)]()['find'](_0x1ca576=>_0x1ca576['id']===_0x113b7d['InsertSheetMutation']['id']);if(_0x42df3d){const _0x379542=_0x42df3d[_0x200cba(0x1be)]['unitId'],_0x8ddbbd=_0x42df3d['params'][_0x200cba(0x1ea)]['id'];setTimeout(()=>{const _0x3d96d7=_0x200cba;this[_0x3d96d7(0x17a)]['executeCommand'](_0x113b7d[_0x3d96d7(0x1a9)]['id'],{'unitId':_0x379542,'subUnitId':_0x8ddbbd},{'fromCollab':!0x0});});}}}[_0xff167c(0x197)](){const _0x91ee5c=_0xff167c;this['_status$'][_0x91ee5c(0x17f)]('presenting');const _0x19a18a=new Map(),_0x5a1d25=this['_commandDisposable']=new _0x2e6932[(_0x91ee5c(0x1b1))]();_0x5a1d25[_0x91ee5c(0x165)](_0x2e6932[_0x91ee5c(0x182)](()=>{const _0x412d6f=_0x91ee5c;_0x19a18a['forEach'](_0x572a2d=>_0x572a2d[_0x412d6f(0x128)]()),_0x19a18a[_0x412d6f(0x16d)]();})),_0x5a1d25[_0x91ee5c(0x165)](this[_0x91ee5c(0x17a)]['onCommandExecuted'](_0x51b613=>{const _0x423f1f=_0x91ee5c;var _0x41b713;if(_0x51b613[_0x423f1f(0x159)]!==_0x2e6932[_0x423f1f(0x1f4)][_0x423f1f(0x19a)]||!this[_0x423f1f(0x15c)]['shouldShareOperation'](_0x51b613['id']))return;const {id:_0x34a7a5}=_0x51b613;let _0x22d293;_0x19a18a['has'](_0x34a7a5)?_0x22d293=_0x19a18a[_0x423f1f(0x178)](_0x34a7a5):(_0x22d293=new _0x241a2b['Subject'](),_0x19a18a['set'](_0x34a7a5,_0x22d293),_0x22d293[_0x423f1f(0x190)](_0x352fbc[_0x423f1f(0x144)]((_0x41b713=this[_0x423f1f(0x1ef)][_0x423f1f(0x1fb)](_0x4e7fe0))!=null?_0x41b713:_0x30cfe0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x423f1f(0x1cd)](_0x5267f6=>{const _0x16d84c=_0x423f1f;this['_collabSession'][_0x16d84c(0x1bf)]({'eventID':_0x25a5e1[_0x16d84c(0x1ab)][_0x16d84c(0x1b0)],'data':{'unitID':this[_0x16d84c(0x132)],'operations':{[_0x5267f6['id']]:{'id':_0x5267f6['id'],'params':JSON[_0x16d84c(0x1e3)](_0x5267f6[_0x16d84c(0x1be)])}}}},this[_0x16d84c(0x132)]);})),_0x22d293[_0x423f1f(0x17f)](_0x51b613);})),this[_0x91ee5c(0x15c)][_0x91ee5c(0x201)](this[_0x91ee5c(0x132)])[_0x91ee5c(0x19e)](_0x4a1b71=>this['_collabSession'][_0x91ee5c(0x1bf)]({'eventID':_0x25a5e1['CollaborationEvent'][_0x91ee5c(0x1b0)],'data':{'unitID':this[_0x91ee5c(0x132)],'operations':{[_0x4a1b71['id']]:{'id':_0x4a1b71['id'],'params':JSON[_0x91ee5c(0x1e3)](_0x4a1b71[_0x91ee5c(0x1be)])}}}},this[_0x91ee5c(0x132)]));}[_0xff167c(0x1e2)](){const _0x2750e1=_0xff167c;var _0x3898de;this['_status$']['next']('idle'),(_0x3898de=this[_0x2750e1(0x151)])==null||_0x3898de[_0x2750e1(0x1bd)](),this[_0x2750e1(0x151)]=null;}[_0xff167c(0x1a7)](){const _0x3a1104=_0xff167c;var _0x1bd966;(_0x1bd966=this[_0x3a1104(0x151)])==null||_0x1bd966[_0x3a1104(0x1bd)](),this['_status$'][_0x3a1104(0x17f)](_0x3a1104(0x146));}[_0xff167c(0x1a3)](){const _0x3e5e8d=_0xff167c;var _0x486c3c;this['_status$'][_0x3e5e8d(0x17f)](_0x3e5e8d(0x1c2)),(_0x486c3c=this[_0x3e5e8d(0x151)])==null||_0x486c3c[_0x3e5e8d(0x1bd)](),this[_0x3e5e8d(0x151)]=null;}[_0xff167c(0x15d)](){const _0x536b98=_0xff167c;var _0x4892c2;this['_status$'][_0x536b98(0x17f)]('not-following'),(_0x4892c2=this[_0x536b98(0x151)])==null||_0x4892c2['dispose']();}[_0xff167c(0x1f7)](_0x1199f5){const _0x3261b5=_0xff167c;if(['presenting',_0x3261b5(0x1c9),_0x3261b5(0x142)][_0x3261b5(0x1a5)](this[_0x3261b5(0x164)])||!_0x1199f5[_0x3261b5(0x1b6)][_0x3261b5(0x127)]||_0x1199f5[_0x3261b5(0x1b6)][_0x3261b5(0x127)]===this['_collabSession'][_0x3261b5(0x16c)]())return;this[_0x3261b5(0x164)]===_0x3261b5(0x1c2)&&this['_startFollowing']();const _0x2d7a3c=_0x1199f5['data'][_0x3261b5(0x13a)];Object['values'](_0x2d7a3c)[_0x3261b5(0x19e)](_0x38e0e9=>{const _0x54b79e=_0x3261b5;this[_0x54b79e(0x17a)][_0x54b79e(0x1d1)](_0x38e0e9['id'],_0x38e0e9[_0x54b79e(0x1be)]?JSON['parse'](_0x38e0e9[_0x54b79e(0x1be)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5b5888=_0xff167c;var _0x34bd52;this[_0x5b5888(0x126)][_0x5b5888(0x17f)]('offline'),(_0x34bd52=this[_0x5b5888(0x151)])==null||_0x34bd52[_0x5b5888(0x1bd)]();}[_0xff167c(0x14e)](){const _0x38a3ed=_0xff167c;this[_0x38a3ed(0x126)]['next'](_0x38a3ed(0x1c2)),this['_fetchOperations']();}},_0x124aa4[_0xff167c(0x141)]=_0x212b37([_0x4379c2(0x2,_0x2e6932['IConfigService']),_0x4379c2(0x3,_0x2e6932['Inject'](_0x91f7c9)),_0x4379c2(0x4,_0x2e6932[_0xff167c(0x13f)])],_0x124aa4[_0xff167c(0x141)]);function _0x1245b9(){const _0x3b9e82=_0xff167c,_0x578162=_0x2124f8[_0x3b9e82(0x1ff)](_0x124aa4[_0x3b9e82(0x19f)]),_0x57d449=_0x2124f8[_0x3b9e82(0x1ff)](_0x2e6932[_0x3b9e82(0x12b)]),_0x3d76c5=_0x2124f8[_0x3b9e82(0x202)](()=>_0x57d449[_0x3b9e82(0x157)](_0x2e6932[_0x3b9e82(0x1ca)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x27fc08,_0x46d9b8]=_0x27bb21[_0x3b9e82(0x180)](null),[_0x3316bb,_0x51f042]=_0x27bb21['useState'](_0x3960af[_0x3b9e82(0x1f9)]),_0x582cd9=_0x27bb21[_0x3b9e82(0x1fd)](null);return _0x27bb21[_0x3b9e82(0x1dd)](()=>(_0x3d76c5&&_0x578162[_0x3b9e82(0x131)](_0x3d76c5[_0x3b9e82(0x19c)]())['then'](_0x93b0ac=>{const _0x314eb4=_0x3b9e82;_0x46d9b8(_0x93b0ac),_0x582cd9[_0x314eb4(0x173)]=_0x93b0ac[_0x314eb4(0x177)][_0x314eb4(0x1cd)](_0x482bf2=>{_0x51f042(_0x482bf2);});}),()=>{const _0x41188b=_0x3b9e82;var _0x25bf46;(_0x25bf46=_0x582cd9[_0x41188b(0x173)])==null||_0x25bf46[_0x41188b(0x1d9)](),_0x582cd9['current']=null;}),[_0x3d76c5,_0x578162]),_0x27fc08?_0x479a5c['jsx'](_0x1b6253['Dropdown'],{'align':_0x3b9e82(0x1aa),'disabled':_0x3316bb===_0x3960af[_0x3b9e82(0x12c)],'className':_0x3b9e82(0x162),'overlay':_0x479a5c[_0x3b9e82(0x140)](_0x2fe7fd,{'status':_0x3316bb,'coordinator':_0x27fc08}),'children':_0x479a5c[_0x3b9e82(0x140)](_0x3b9e82(0x15a),{'className':_0x1b6253[_0x3b9e82(0x163)](_0x3b9e82(0x17e),{'univer-cursor-not-allowed':_0x3316bb===_0x3960af[_0x3b9e82(0x12c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3316bb!==_0x3960af[_0x3b9e82(0x12c)]}),'type':_0x3b9e82(0x15a),'children':_0x479a5c[_0x3b9e82(0x140)](_0x4b6f68,{'className':_0x3b9e82(0x1de)})})}):null;}function _0x2fe7fd(_0x58fd00){const _0x19b0a6=_0xff167c,{status:_0x42fbcc,coordinator:_0x8f0b62}=_0x58fd00;switch(_0x42fbcc){case _0x3960af[_0x19b0a6(0x1f9)]:return _0x479a5c[_0x19b0a6(0x140)](_0x21b95c,{'coordinator':_0x8f0b62});case _0x3960af['FOLLOWING']:return _0x479a5c[_0x19b0a6(0x140)](_0x51592b,{'coordinator':_0x8f0b62});case _0x3960af[_0x19b0a6(0x17c)]:return _0x479a5c[_0x19b0a6(0x140)](_0x5a680d,{'coordinator':_0x8f0b62});case _0x3960af[_0x19b0a6(0x12c)]:return _0x479a5c['jsx'](_0x30309f,{});case _0x3960af[_0x19b0a6(0x179)]:return _0x479a5c[_0x19b0a6(0x140)](_0x44be0d,{'coordinator':_0x8f0b62});default:return null;}}function _0x21b95c(_0x4f783e){const _0x158ba8=_0xff167c,{coordinator:_0x3c34f1}=_0x4f783e;return _0x479a5c[_0x158ba8(0x20b)](_0x479a5c[_0x158ba8(0x16a)],{'children':[_0x479a5c[_0x158ba8(0x140)](_0x158ba8(0x12d),{'className':_0x158ba8(0x207),'children':'Present\x20this\x20document'}),_0x479a5c['jsx'](_0x1b6253[_0x158ba8(0x18d)],{'onClick':()=>_0x3c34f1[_0x158ba8(0x154)](),'children':_0x158ba8(0x143)})]});}function _0x51592b(_0x33003f){const _0x3a7679=_0xff167c,{coordinator:_0x5df222}=_0x33003f;return _0x479a5c[_0x3a7679(0x20b)](_0x479a5c[_0x3a7679(0x16a)],{'children':[_0x479a5c[_0x3a7679(0x140)]('div',{'className':_0x3a7679(0x207),'children':_0x3a7679(0x13c)}),_0x479a5c[_0x3a7679(0x140)](_0x1b6253['Button'],{'onClick':()=>_0x5df222[_0x3a7679(0x1bc)](),'children':_0x3a7679(0x1cf)})]});}function _0x5a680d(_0x17c7ec){const _0x5e7236=_0xff167c,{coordinator:_0x121ced}=_0x17c7ec;return _0x479a5c[_0x5e7236(0x20b)](_0x479a5c['Fragment'],{'children':[_0x479a5c[_0x5e7236(0x140)](_0x5e7236(0x12d),{'className':_0x5e7236(0x207),'children':_0x5e7236(0x1e0)}),_0x479a5c[_0x5e7236(0x140)](_0x1b6253[_0x5e7236(0x18d)],{'variant':_0x5e7236(0x1cc),'onClick':()=>_0x121ced[_0x5e7236(0x158)](),'children':_0x5e7236(0x20e)})]});}function _0x44be0d(_0xf6aae6){const _0x2abc0a=_0xff167c,{coordinator:_0x2ae248}=_0xf6aae6;return _0x479a5c['jsxs'](_0x479a5c[_0x2abc0a(0x16a)],{'children':[_0x479a5c[_0x2abc0a(0x140)](_0x2abc0a(0x12d),{'className':_0x2abc0a(0x207),'children':_0x2abc0a(0x171)}),_0x479a5c[_0x2abc0a(0x140)](_0x1b6253[_0x2abc0a(0x18d)],{'variant':_0x2abc0a(0x1f1),'onClick':()=>_0x2ae248[_0x2abc0a(0x1c7)](),'children':_0x2abc0a(0x13d)})]});}function _0x30309f(){return _0x479a5c['jsx'](_0x479a5c['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x4fe67c=Object[_0xff167c(0x160)],_0x21d3ff=(_0x1f0fe0,_0x262210,_0xb34d2,_0x3d7149)=>{for(var _0xebbe25=_0x3d7149>0x1?void 0x0:_0x3d7149?_0x4fe67c(_0x262210,_0xb34d2):_0x262210,_0x2e7540=_0x1f0fe0['length']-0x1,_0x214ee0;_0x2e7540>=0x0;_0x2e7540--)(_0x214ee0=_0x1f0fe0[_0x2e7540])&&(_0xebbe25=_0x214ee0(_0xebbe25)||_0xebbe25);return _0xebbe25;},_0xbff61b=(_0x45b303,_0xaa3405)=>(_0x652b97,_0x1c1673)=>_0xaa3405(_0x652b97,_0x1c1673,_0x45b303);_0x124aa4[_0xff167c(0x1d3)]=class extends _0x2e6932[_0xff167c(0x1b7)]{constructor(_0x213579,_0x39a5e7){const _0x211b2d=_0xff167c;super(),this[_0x211b2d(0x186)]=_0x213579,this['_uiPartsService']=_0x39a5e7,this[_0x211b2d(0x1b3)]();}[_0xff167c(0x1b3)](){const _0x5cbc67=_0xff167c;this['disposeWithMe'](this[_0x5cbc67(0x1b2)][_0x5cbc67(0x1d4)](_0x2124f8[_0x5cbc67(0x1d8)][_0x5cbc67(0x203)],()=>_0x2124f8['connectInjector'](_0x1245b9,this[_0x5cbc67(0x186)])));}},_0x124aa4['DesktopLiveShareController']=_0x21d3ff([_0xbff61b(0x0,_0x2e6932[_0xff167c(0x1ed)](_0x2e6932['Injector'])),_0xbff61b(0x1,_0x2124f8[_0xff167c(0x168)])],_0x124aa4[_0xff167c(0x1d3)]);const _0x2be868=_0xff167c(0x1f3),_0x5f4f08={};var _0x4045d7=Object['getOwnPropertyDescriptor'],_0x2d5431=(_0x469d09,_0x54e0ad,_0x500a94,_0x25e0bb)=>{for(var _0x4d207d=_0x25e0bb>0x1?void 0x0:_0x25e0bb?_0x4045d7(_0x54e0ad,_0x500a94):_0x54e0ad,_0x2fcabf=_0x469d09['length']-0x1,_0x539e4e;_0x2fcabf>=0x0;_0x2fcabf--)(_0x539e4e=_0x469d09[_0x2fcabf])&&(_0x4d207d=_0x539e4e(_0x4d207d)||_0x4d207d);return _0x4d207d;},_0x472b04=(_0x43a2fc,_0xd07ee9)=>(_0x582d30,_0x408471)=>_0xd07ee9(_0x582d30,_0x408471,_0x43a2fc);let _0x1c348a=class extends _0x2e6932['Disposable']{constructor(_0x2f3c13){const _0x5c4e3b=_0xff167c;super(),this['_liveShareService']=_0x2f3c13,this[_0x5c4e3b(0x170)]();}['_init'](){const _0x5f407b=_0xff167c;[_0x37f5a8[_0x5f407b(0x1a1)]['id'],_0x37f5a8[_0x5f407b(0x187)]['id'],_0x113b7d[_0x5f407b(0x1a9)]['id']]['forEach'](_0x7fef13=>{const _0x17977e=_0x5f407b;this[_0x17977e(0x145)](this[_0x17977e(0x15c)][_0x17977e(0x12a)](_0x7fef13));});}};_0x1c348a=_0x2d5431([_0x472b04(0x0,_0x2e6932[_0xff167c(0x1ed)](_0x91f7c9))],_0x1c348a);var _0x34eef2=Object['defineProperty'],_0x2924f8=Object['getOwnPropertyDescriptor'],_0x5ec996=(_0x273783,_0x457954,_0x212dd3)=>_0x457954 in _0x273783?_0x34eef2(_0x273783,_0x457954,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x212dd3}):_0x273783[_0x457954]=_0x212dd3,_0x4c7219=(_0x1e511a,_0x255f4e,_0x36a4f0,_0x31e64d)=>{const _0xfaece2=_0xff167c;for(var _0x1b701c=_0x31e64d>0x1?void 0x0:_0x31e64d?_0x2924f8(_0x255f4e,_0x36a4f0):_0x255f4e,_0x3d009e=_0x1e511a[_0xfaece2(0x19b)]-0x1,_0x5bf5b3;_0x3d009e>=0x0;_0x3d009e--)(_0x5bf5b3=_0x1e511a[_0x3d009e])&&(_0x1b701c=_0x5bf5b3(_0x1b701c)||_0x1b701c);return _0x1b701c;},_0x4fae5d=(_0xfe56b8,_0x332b07)=>(_0x221e3a,_0x5e6229)=>_0x332b07(_0x221e3a,_0x5e6229,_0xfe56b8),_0x1eab69=(_0x1ca381,_0x552dd4,_0x49d00c)=>_0x5ec996(_0x1ca381,typeof _0x552dd4!=_0xff167c(0x1a2)?_0x552dd4+'':_0x552dd4,_0x49d00c);const _0x3aae4a=_0xff167c(0x175);_0x124aa4[_0xff167c(0x130)]=class extends _0x2e6932[_0xff167c(0x137)]{constructor(_0x43477f=_0x5f4f08,_0x34ba7d,_0x502d79){const _0x42dc86=_0xff167c;super(),this[_0x42dc86(0x1da)]=_0x43477f,this['_injector']=_0x34ba7d,this[_0x42dc86(0x1ef)]=_0x502d79;const {..._0x2f11ee}=_0x2e6932[_0x42dc86(0x1ba)]({},_0x5f4f08,this[_0x42dc86(0x1da)]);this[_0x42dc86(0x1ef)][_0x42dc86(0x200)](_0x2be868,_0x2f11ee);}['onStarting'](){const _0x3ed0a1=_0xff167c;_0x2e6932[_0x3ed0a1(0x138)](this[_0x3ed0a1(0x186)],_0x2e6932[_0x3ed0a1(0x15e)]([[_0x91f7c9],[_0x124aa4[_0x3ed0a1(0x19f)]],[_0x1c348a],[_0x124aa4[_0x3ed0a1(0x1d3)]]],this[_0x3ed0a1(0x1da)][_0x3ed0a1(0x206)])),_0x2e6932[_0x3ed0a1(0x1fa)](this[_0x3ed0a1(0x186)],[[_0x1c348a]]);}[_0xff167c(0x1f5)](){const _0x2ea001=_0xff167c;_0x2e6932['touchDependencies'](this[_0x2ea001(0x186)],[[_0x124aa4[_0x2ea001(0x1d3)]]]);}},_0x1eab69(_0x124aa4[_0xff167c(0x130)],_0xff167c(0x159),_0x2e6932[_0xff167c(0x1ca)]['UNIVER_UNKNOWN']),_0x1eab69(_0x124aa4[_0xff167c(0x130)],'pluginName',_0x3aae4a),_0x124aa4[_0xff167c(0x130)]=_0x4c7219([_0x2e6932[_0xff167c(0x139)](_0x21ff7a[_0xff167c(0x16b)]),_0x4fae5d(0x1,_0x2e6932[_0xff167c(0x1ed)](_0x2e6932[_0xff167c(0x1eb)])),_0x4fae5d(0x2,_0x2e6932[_0xff167c(0x166)])],_0x124aa4[_0xff167c(0x130)]),_0x124aa4[_0xff167c(0x185)]=_0x1245b9,_0x124aa4['LiveShareService']=_0x91f7c9,_0x124aa4[_0xff167c(0x192)]=_0x3960af,Object['defineProperty'](_0x124aa4,Symbol[_0xff167c(0x14d)],{'value':'Module'});}));function _0x2f9c(){const _0x320927=['next','useState','defs','toDisposable','createElement','url(#$1','LiveShare','_injector','SetScrollOperation','evenodd','string','has','reverse','svg','Button','presenting','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','pipe','136847XaemHF','LiveShareStatus','React','set','requireSession','sessionStatus$','_startPresenting','1174964uwnRxi','use','OPERATION','length','getUnitId','getLiveShareCoordinatorSync','forEach','LiveShareController','univerjs-icon\x20univerjs-icon-','SetZoomRatioOperation','symbol','_beIdle','9651BIiCaw','includes','displayName','_startFollowing','_sharedOperations','SetWorksheetActiveOperation','end','CollaborationEvent','LIVESHARE_NEW_HOST','defIds','UniverSheets','delete','LIVESHARE_OPERATION','DisposableCollection','_uiPartsService','_mountLiveShare','attrs','createInstance','data','Disposable','NEW_CHANGESETS','BehaviorSubject','merge','mask','stopFollowing','dispose','params','send','replace','_handleOffline','idle','dispose$','30wwRfmx','xlink:href','@univerjs/ui','stopPresenting','react/jsx-runtime','not-following','UniverInstanceType','_presenter','text','subscribe','_handleTerminate','Stop\x20following','getTypeOfUnitAdded$','executeCommand','SAME_OPERATION_SHARE_INTERVAL','DesktopLiveShareController','registerComponent','rxjs','@univerjs-pro/collaboration','mutations','BuiltInUIPart','unsubscribe','_config','2758693mNZqGX','_collabSession','useEffect','univer-size-4','substring','You\x27re\x20not\x20following\x20the\x20presenter','assign','_stopPresenting','stringify','http://www.w3.org/2000/svg','_fetchOperations','getTypeOfUnitDisposed$','currentColor','@univerjs/sheets-ui','object','sheet','Injector','react','Inject','UNIVER_SHEET','_configService','amd','default','LIVESHARE_TERMINATE','live-share.config','CommandType','onRendered','_entities','_handleOperation','_startLiveShareCoordinator','IDLE','touchDependencies','getConfig','colorChannel1','useRef','forwardRef','useDependency','setConfig','getInitialStates','useObservable','HEADER_MENU','282DzrJeF','entries','override','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerInitialStateReporter','ONLINE','_univerInstanceService','jsxs','operators','getValue','Start\x20following','_status$','presenter','complete','@univerjs/core','registerSharedOperation','IUniverInstanceService','OFFLINE','div','idSuffix','random','UniverLiveSharePlugin','getLiveShareCoordinator','_unitID','UniverProCollaborationClient','11570460lsDZKL','_handleNewHost','rxjs/operators','Plugin','registerDependencies','DependentOn','operations','UniverProCollaboration','You\x27re\x20following\x20the\x20presenter','Stop\x20presenting','function','ICommandService','jsx','LiveShareCoordinator','offline','Start','throttleTime','disposeWithMe','following','_reporters','2115PXIkSw','0\x200\x2017\x2017','11965ZWvdjy','parseProtocolChangeset','RxDisposable','toStringTag','_handleOnline','path','tag','_commandDisposable','UniverSheetsUi','init','tryStartPresenting','fill','SessionStatus','getCurrentTypeOfUnit$','startFollowing','type','button','_collabSessionService','_liveShareService','_stopFollowing','mergeOverrideWithDependencies','_handleNewChangeSets','getOwnPropertyDescriptor','LIVESHARE_REQUEST_HOST','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','clsx','_status','add','IConfigService','1em','IUIPartsService','14408QstkmJ','Fragment','UniverCollaborationClientPlugin','getMemberID','clear','UniverIcon','event$','_init','You\x27re\x20presenting\x20the\x20document','trim','current','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','UNIVER_LIVE_SHARE_PLUGIN','takeUntil','status$','get','PRESENTING','_commandService','children','NOT_FOLLOWING','asObservable','univer-border-none\x20univer-text-gray-600\x20univer-outline-none'];_0x2f9c=function(){return _0x320927;};return _0x2f9c();}
|
|
1
|
+
function _0x3cc3(_0x21ab96,_0x1faf5d){_0x21ab96=_0x21ab96-0x168;const _0x26c1a6=_0x26c1();let _0x3cc3b4=_0x26c1a6[_0x21ab96];return _0x3cc3b4;}function _0x26c1(){const _0x33b610=['@univerjs/sheets-ui','rxjs','Plugin','_collabSession','params','_startPresenting','trim','_beIdle','rxjs/operators','You\x27re\x20not\x20following\x20the\x20presenter','IConfigService','stringify','_mountLiveShare','map','toDisposable','registerDependencies','defineProperty','LIVESHARE_OPERATION','shouldShareOperation','default','idle','Start\x20following','tryStartPresenting','mask','_commandDisposable','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','681QlNBqE','LiveShareCoordinator','UniverCollaborationClientPlugin','current','none','tag','add','SetZoomRatioOperation','_handleNewChangeSets','24882057rsxNIB','defIds','jsxs','Dropdown','onStarting','complete','getMemberID','string','0\x200\x2017\x2017','svg','_handleTerminate','BehaviorSubject','_handleOffline','Inject','_univerInstanceService','toStringTag','replace','delete','univer-mb-3\x20univer-w-full\x20univer-text-sm','live-share.config','http://www.w3.org/2000/svg','You\x27re\x20presenting\x20the\x20document','Disposable','_stopPresenting','subscribe','_handleOperation','ICommandService','Button','use','getInitialStates','_startFollowing','UniverLiveSharePlugin','Fragment','random','createElement','symbol','sheet','UniverSheets','clsx','LIVESHARE_TERMINATE','send','UniverProCollaborationClient','PRESENTING','@univerjs/core','defs','currentColor','next','merge','getTypeOfUnitDisposed$','_liveShareService','dispose$','RxDisposable','6NpwrjF','operations','evenodd','idSuffix','76413hCFhJe','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','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','_config','executeCommand','_startLiveShareCoordinator','useDependency','_injector','getTypeOfUnitAdded$','react','_init','useRef','@univerjs/design','presenter','DisposableCollection','IDLE','DependentOn','type','_presenter','fill','@univerjs/sheets','_fetchOperations','takeUntil','url(#$1','UniverIcon','object','registerSharedOperation','ONLINE','1em','then','values','has','_handleOnline','memberID','@univerjs/ui','LiveShareController','operators','_commandService','live-share-icon','_uiPartsService','colorChannel1','Present\x20this\x20document','OFFLINE','CollaborationEvent','LiveShare','UNIVER_UNKNOWN','exports','NOT_FOLLOWING','entries','mutations','Stop\x20presenting','throttleTime','getUnitId','SAME_OPERATION_SHARE_INTERVAL','createInstance','CommandType','xlink:href','3993940BLKVwy','getLiveShareCoordinator','@univerjs-pro/collaboration-client','pipe','not-following','offline','SetWorksheetActiveOperation','LiveShareStatus','_collabSessionService','_status','disposeWithMe','UniverInstanceType','div','UniverCore','BuiltInUIPart','_reporters','substring','1221680aQdMhH','_status$','includes','stopFollowing','UniverProCollaboration','DesktopLiveShareController','1471016KDPdaN','useState','react/jsx-runtime','12700aTuTSq','attrs','LiveShareService','useObservable','get','_sharedOperations','startFollowing','override','UNIVER_SHEET','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_FETCH_OPERATIONS','status$','sessionStatus$','dispose','UniverSheetsUi','SetScrollOperation','getOwnPropertyDescriptor','NEW_CHANGESETS','getCurrentTypeOfUnit$','_entities','children','LiveShareIcon','toString','data','CollaborationSessionService','set','_unitID','asObservable','mergeOverrideWithDependencies','connectInjector','function','forEach','OPERATION','touchDependencies','UniverProLiveShare','Injector','setConfig','length','find','9251172qXQMdm','displayName','univerjs-icon\x20univerjs-icon-','requireSession','jsx','pluginName','following','FOLLOWING','UniverDesign','_configService','parse','useEffect','getValue','_handleNewHost','button','presenting','React','registerComponent','UniverUi','_stopFollowing'];_0x26c1=function(){return _0x33b610;};return _0x26c1();}(function(_0x2820a0,_0x597c64){const _0x3c5769=_0x3cc3,_0x25a6e4=_0x2820a0();while(!![]){try{const _0x186780=parseInt(_0x3c5769(0x1f6))/0x1+-parseInt(_0x3c5769(0x246))/0x2+-parseInt(_0x3c5769(0x1b5))/0x3*(parseInt(_0x3c5769(0x249))/0x4)+-parseInt(_0x3c5769(0x22f))/0x5*(-parseInt(_0x3c5769(0x1f2))/0x6)+-parseInt(_0x3c5769(0x187))/0x7+-parseInt(_0x3c5769(0x240))/0x8+parseInt(_0x3c5769(0x1be))/0x9;if(_0x186780===_0x597c64)break;else _0x25a6e4['push'](_0x25a6e4['shift']());}catch(_0x269193){_0x25a6e4['push'](_0x25a6e4['shift']());}}}(_0x26c1,0xad2d7),function(_0x209b0d,_0x117719){const _0x1c5c53=_0x3cc3;typeof exports==_0x1c5c53(0x20f)&&typeof module<'u'?_0x117719(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==_0x1c5c53(0x17e)&&define['amd']?define([_0x1c5c53(0x224),_0x1c5c53(0x1e9),_0x1c5c53(0x218),_0x1c5c53(0x248),_0x1c5c53(0x202),_0x1c5c53(0x1ff),'@univerjs-pro/collaboration',_0x1c5c53(0x231),_0x1c5c53(0x20a),'rxjs',_0x1c5c53(0x1a3),_0x1c5c53(0x19b)],_0x117719):(_0x209b0d=typeof globalThis<'u'?globalThis:_0x209b0d||self,_0x117719(_0x209b0d[_0x1c5c53(0x182)]={},_0x209b0d[_0x1c5c53(0x23c)],_0x209b0d[_0x1c5c53(0x199)],_0x209b0d['React'],_0x209b0d[_0x1c5c53(0x18f)],_0x209b0d[_0x1c5c53(0x197)],_0x209b0d[_0x1c5c53(0x244)],_0x209b0d[_0x1c5c53(0x1e7)],_0x209b0d[_0x1c5c53(0x1e3)],_0x209b0d[_0x1c5c53(0x19c)],_0x209b0d[_0x1c5c53(0x19c)][_0x1c5c53(0x21a)],_0x209b0d[_0x1c5c53(0x16e)]));}(this,function(_0xa2757b,_0x3b2d48,_0x46af64,_0x59c9f9,_0x183aa2,_0x221013,_0x3c042d,_0x2f6388,_0x586c3c,_0x481bfd,_0xb00dce,_0x34aedc){'use strict';const _0x484990=_0x3cc3;var _0x332a8e=Object['defineProperty'],_0x599fd0=(_0x5cbe7b,_0x3ab918,_0x5532af)=>_0x3ab918 in _0x5cbe7b?_0x332a8e(_0x5cbe7b,_0x3ab918,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5532af}):_0x5cbe7b[_0x3ab918]=_0x5532af,_0x5a3180=(_0x500b4c,_0x1a0b22,_0x4152f4)=>_0x599fd0(_0x500b4c,typeof _0x1a0b22!=_0x484990(0x1e1)?_0x1a0b22+'':_0x1a0b22,_0x4152f4);function _0x1c9364({ref:_0x22650d,..._0x19fa4a}){const _0x27f2e6=_0x484990,{icon:_0x564e69,id:_0x5e548a,className:_0x1fd4f3,extend:_0x236487,..._0x51c031}=_0x19fa4a,_0x419ff8=(_0x27f2e6(0x189)+_0x5e548a+'\x20'+(_0x1fd4f3||''))[_0x27f2e6(0x1a1)](),_0x3a52db=_0x221013['useRef']('_'+_0x35d2cf());return _0x320e08(_0x564e69,''+_0x5e548a,{'defIds':_0x564e69[_0x27f2e6(0x1bf)],'idSuffix':_0x3a52db[_0x27f2e6(0x1b8)]},{'ref':_0x22650d,'className':_0x419ff8,..._0x51c031},_0x236487);}function _0x320e08(_0x7c6c7a,_0x16e0ad,_0x5646cd,_0x59ae61,_0x1ba754){const _0x5a9b0a=_0x484990;return _0x221013[_0x5a9b0a(0x1e0)](_0x7c6c7a['tag'],{'key':_0x16e0ad,..._0x103345(_0x7c6c7a,_0x5646cd,_0x1ba754),..._0x59ae61},(_0x242e44(_0x7c6c7a,_0x5646cd)['children']||[])[_0x5a9b0a(0x1a8)]((_0x566904,_0x36a02d)=>_0x320e08(_0x566904,_0x16e0ad+'-'+_0x7c6c7a[_0x5a9b0a(0x1ba)]+'-'+_0x36a02d,_0x5646cd,void 0x0,_0x1ba754)));}function _0x103345(_0x1ae526,_0x27cfa9,_0x1752e2){const _0x3eed48=_0x484990,_0xdff8ad={..._0x1ae526[_0x3eed48(0x24a)]};_0x1752e2!=null&&_0x1752e2['colorChannel1']&&_0xdff8ad[_0x3eed48(0x209)]===_0x3eed48(0x21e)&&(_0xdff8ad[_0x3eed48(0x209)]=_0x1752e2[_0x3eed48(0x21e)]),_0x1ae526[_0x3eed48(0x1ba)]===_0x3eed48(0x1b2)&&_0xdff8ad['id']&&(_0xdff8ad['id']=_0xdff8ad['id']+_0x27cfa9[_0x3eed48(0x1f5)]),Object[_0x3eed48(0x226)](_0xdff8ad)[_0x3eed48(0x17f)](([_0x2bba3d,_0x10effe])=>{const _0x3ce8aa=_0x3eed48;_0x2bba3d==='mask'&&typeof _0x10effe==_0x3ce8aa(0x1c5)&&(_0xdff8ad[_0x2bba3d]=_0x10effe[_0x3ce8aa(0x1ce)](/url\(#(.*)\)/,_0x3ce8aa(0x20d)+_0x27cfa9[_0x3ce8aa(0x1f5)]+')'));});const {defIds:_0x200f55}=_0x27cfa9;return!_0x200f55||_0x200f55[_0x3eed48(0x185)]===0x0||(_0x1ae526['tag']===_0x3eed48(0x1da)&&_0xdff8ad[_0x3eed48(0x22e)]&&(_0xdff8ad[_0x3eed48(0x22e)]=_0xdff8ad[_0x3eed48(0x22e)]+_0x27cfa9[_0x3eed48(0x1f5)]),Object['entries'](_0xdff8ad)[_0x3eed48(0x17f)](([_0x4a3900,_0x33aac9])=>{const _0x50f522=_0x3eed48;typeof _0x33aac9=='string'&&(_0xdff8ad[_0x4a3900]=_0x33aac9[_0x50f522(0x1ce)](/url\(#(.*)\)/,_0x50f522(0x20d)+_0x27cfa9[_0x50f522(0x1f5)]+')'));})),_0xdff8ad;}function _0x242e44(_0x19ee9a,_0x1b6e57){const _0x57daa8=_0x484990;var _0x532a1d;const {defIds:_0x5c8206}=_0x1b6e57;return!_0x5c8206||_0x5c8206['length']===0x0?_0x19ee9a:_0x19ee9a['tag']===_0x57daa8(0x1ea)&&((_0x532a1d=_0x19ee9a[_0x57daa8(0x174)])!=null&&_0x532a1d[_0x57daa8(0x185)])?{..._0x19ee9a,'children':_0x19ee9a[_0x57daa8(0x174)][_0x57daa8(0x1a8)](_0x5e2dab=>typeof _0x5e2dab[_0x57daa8(0x24a)]['id']==_0x57daa8(0x1c5)&&_0x5c8206&&_0x5c8206[_0x57daa8(0x242)](_0x5e2dab[_0x57daa8(0x24a)]['id'])?{..._0x5e2dab,'attrs':{..._0x5e2dab[_0x57daa8(0x24a)],'id':_0x5e2dab[_0x57daa8(0x24a)]['id']+_0x1b6e57['idSuffix']}}:_0x5e2dab)}:_0x19ee9a;}function _0x35d2cf(){const _0x2bd03c=_0x484990;return Math[_0x2bd03c(0x1df)]()[_0x2bd03c(0x176)](0x24)[_0x2bd03c(0x23f)](0x2,0x8);}_0x1c9364['displayName']=_0x484990(0x20e);const _0x410216={'tag':_0x484990(0x1c7),'attrs':{'xmlns':_0x484990(0x1d2),'fill':_0x484990(0x1b9),'viewBox':_0x484990(0x1c6),'width':'1em','height':_0x484990(0x212)},'children':[{'tag':'path','attrs':{'fill':_0x484990(0x1eb),'d':_0x484990(0x1f8)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x484990(0x1b4),'fillRule':_0x484990(0x1f4),'clipRule':'evenodd'}}]},_0x367e44=_0x221013['forwardRef'](function(_0x5283b4,_0x407185){const _0x5e238e=_0x484990;return _0x221013[_0x5e238e(0x1e0)](_0x1c9364,Object['assign']({},_0x5283b4,{'id':_0x5e238e(0x21c),'ref':_0x407185,'icon':_0x410216}));});_0x367e44[_0x484990(0x188)]=_0x484990(0x175);class _0x48c29b extends _0x3b2d48[_0x484990(0x1d4)]{constructor(){const _0x6b43c6=_0x484990;super(...arguments),_0x5a3180(this,_0x6b43c6(0x24e),new Set()),_0x5a3180(this,'_reporters',new Set());}[_0x484990(0x210)](_0x38fcf1){const _0xfdba21=_0x484990;return this[_0xfdba21(0x24e)][_0xfdba21(0x1bb)](_0x38fcf1),_0x3b2d48[_0xfdba21(0x1a9)](()=>this[_0xfdba21(0x24e)][_0xfdba21(0x1cf)](_0x38fcf1));}['registerInitialStateReporter'](_0x5bc364){const _0x570dc4=_0x484990;return this['_reporters'][_0x570dc4(0x1bb)](_0x5bc364),_0x3b2d48['toDisposable'](()=>this['_reporters'][_0x570dc4(0x1cf)](_0x5bc364));}[_0x484990(0x1ad)](_0x2d6a0b){const _0x5ab96f=_0x484990;return this[_0x5ab96f(0x24e)][_0x5ab96f(0x215)](_0x2d6a0b);}[_0x484990(0x1db)](_0x56d45d){const _0x2b0cd1=_0x484990;return Array['from'](this[_0x2b0cd1(0x23e)])[_0x2b0cd1(0x1a8)](_0x1ac045=>_0x1ac045(_0x56d45d));}}var _0xa783d2=Object[_0x484990(0x170)],_0x41ff3f=(_0x5106dc,_0x7aad4b,_0x2356f2,_0x46ad6c)=>{const _0x24ac82=_0x484990;for(var _0x4f0835=_0x46ad6c>0x1?void 0x0:_0x46ad6c?_0xa783d2(_0x7aad4b,_0x2356f2):_0x7aad4b,_0x56f010=_0x5106dc[_0x24ac82(0x185)]-0x1,_0x16e364;_0x56f010>=0x0;_0x56f010--)(_0x16e364=_0x5106dc[_0x56f010])&&(_0x4f0835=_0x16e364(_0x4f0835)||_0x4f0835);return _0x4f0835;},_0x2bbfd2=(_0x2d2707,_0xa2753e)=>(_0x256402,_0xa53db8)=>_0xa2753e(_0x256402,_0xa53db8,_0x2d2707);_0xa2757b['LiveShareController']=class extends _0x3b2d48[_0x484990(0x1f1)]{constructor(_0x2a0bab,_0x58f8a4,_0x2b5541){const _0x2a35a0=_0x484990;super(),_0x5a3180(this,_0x2a35a0(0x173),new Map()),(this[_0x2a35a0(0x1cc)]=_0x2a0bab,this[_0x2a35a0(0x1fd)]=_0x58f8a4,this[_0x2a35a0(0x237)]=_0x2b5541,this[_0x2a35a0(0x200)]());}async[_0x484990(0x230)](_0x9ec70c){const _0x6d0008=_0x484990;return this[_0x6d0008(0x173)][_0x6d0008(0x215)](_0x9ec70c)||await this[_0x6d0008(0x1fb)](_0x9ec70c),this[_0x6d0008(0x173)][_0x6d0008(0x24d)](_0x9ec70c);}['getLiveShareCoordinatorSync'](_0x1ccc69){const _0x4182f0=_0x484990;var _0x34f252;return(_0x34f252=this[_0x4182f0(0x173)][_0x4182f0(0x24d)](_0x1ccc69))!=null?_0x34f252:null;}[_0x484990(0x200)](){const _0x2dffa4=_0x484990;this[_0x2dffa4(0x1cc)][_0x2dffa4(0x1fe)](_0x3b2d48[_0x2dffa4(0x23a)][_0x2dffa4(0x168)])[_0x2dffa4(0x232)](_0xb00dce[_0x2dffa4(0x20c)](this[_0x2dffa4(0x1f0)]))[_0x2dffa4(0x1d6)](async _0x42a393=>{const _0x2ee05e=_0x2dffa4,_0x41b1b6=_0x42a393[_0x2ee05e(0x22a)]();this['_entities'][_0x2ee05e(0x215)](_0x41b1b6)||this[_0x2ee05e(0x1fb)](_0x41b1b6);}),this[_0x2dffa4(0x1cc)][_0x2dffa4(0x1ee)](_0x3b2d48[_0x2dffa4(0x23a)][_0x2dffa4(0x168)])[_0x2dffa4(0x232)](_0xb00dce[_0x2dffa4(0x20c)](this[_0x2dffa4(0x1f0)]))[_0x2dffa4(0x1d6)](_0x1b7cd1=>{const _0x32a52d=_0x2dffa4,_0x545584=_0x1b7cd1[_0x32a52d(0x22a)](),_0x23c763=this['_entities']['get'](_0x545584);_0x23c763==null||_0x23c763[_0x32a52d(0x16d)]();});}async[_0x484990(0x1fb)](_0x18de0a){const _0x1edf95=_0x484990,_0x20b86d=await this[_0x1edf95(0x237)][_0x1edf95(0x18a)](_0x18de0a),_0x1908ed=this['_injector'][_0x1edf95(0x22c)](_0xa2757b[_0x1edf95(0x1b6)],_0x18de0a,_0x20b86d);return _0x1908ed['init'](),this[_0x1edf95(0x173)][_0x1edf95(0x179)](_0x18de0a,_0x1908ed),_0x1908ed;}},_0xa2757b[_0x484990(0x219)]=_0x41ff3f([_0x2bbfd2(0x0,_0x3b2d48['IUniverInstanceService']),_0x2bbfd2(0x1,_0x3b2d48[_0x484990(0x1cb)](_0x3b2d48[_0x484990(0x183)])),_0x2bbfd2(0x2,_0x3b2d48[_0x484990(0x1cb)](_0x2f6388[_0x484990(0x178)]))],_0xa2757b[_0x484990(0x219)]);var _0x7950f5=(_0x518852=>(_0x518852['OFFLINE']=_0x484990(0x234),_0x518852[_0x484990(0x205)]=_0x484990(0x1af),_0x518852[_0x484990(0x18e)]=_0x484990(0x18d),_0x518852['NOT_FOLLOWING']='not-following',_0x518852['PRESENTING']=_0x484990(0x196),_0x518852))(_0x7950f5||{});const _0x571620=_0x484990(0x22b),_0xcae593=0xc8;_0xa2757b[_0x484990(0x1b6)]=class extends _0x3b2d48[_0x484990(0x1f1)]{constructor(_0x346b79,_0x8bca50,_0x9e6e89,_0x203d8e,_0x46d38e){const _0xeba58a=_0x484990;super(),_0x5a3180(this,_0xeba58a(0x241),new _0x481bfd[(_0xeba58a(0x1c9))]('idle')),_0x5a3180(this,_0xeba58a(0x16b),this[_0xeba58a(0x241)][_0xeba58a(0x17b)]()),_0x5a3180(this,_0xeba58a(0x200),!0x1),_0x5a3180(this,_0xeba58a(0x1b3),null),_0x5a3180(this,_0xeba58a(0x208),null),(this[_0xeba58a(0x17a)]=_0x346b79,this['_collabSession']=_0x8bca50,this[_0xeba58a(0x190)]=_0x9e6e89,this[_0xeba58a(0x1ef)]=_0x203d8e,this[_0xeba58a(0x21b)]=_0x46d38e);}get[_0x484990(0x238)](){const _0x93782=_0x484990;return this[_0x93782(0x241)][_0x93782(0x193)]();}[_0x484990(0x16d)](){const _0x52d53b=_0x484990;var _0x59f02e;(_0x59f02e=this[_0x52d53b(0x1b3)])==null||_0x59f02e[_0x52d53b(0x16d)](),this[_0x52d53b(0x241)][_0x52d53b(0x1ec)](_0x52d53b(0x1af)),this[_0x52d53b(0x241)][_0x52d53b(0x1c3)]();}['getStatus'](){return this['_status'];}['init'](){const _0x57255d=_0x484990;this[_0x57255d(0x200)]||(this[_0x57255d(0x200)]=!0x0,this[_0x57255d(0x19e)][_0x57255d(0x16c)]['pipe'](_0xb00dce[_0x57255d(0x20c)](this[_0x57255d(0x1f0)]))[_0x57255d(0x1d6)](_0x506041=>{const _0x32f200=_0x57255d;switch(_0x506041){case _0x2f6388['SessionStatus']['OFFLINE']:this[_0x32f200(0x1ca)]();break;case _0x2f6388['SessionStatus'][_0x32f200(0x211)]:this[_0x32f200(0x216)]();break;}}),this[_0x57255d(0x19e)]['event$'][_0x57255d(0x232)](_0xb00dce[_0x57255d(0x20c)](this[_0x57255d(0x1f0)]))[_0x57255d(0x1d6)](_0x2716e5=>{const _0xf07ef8=_0x57255d,{eventID:_0x1bd3a8}=_0x2716e5;switch(_0x1bd3a8){case _0x3c042d[_0xf07ef8(0x221)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x2716e5);break;case _0x3c042d['CollaborationEvent'][_0xf07ef8(0x1ac)]:this[_0xf07ef8(0x1d7)](_0x2716e5);break;case _0x3c042d[_0xf07ef8(0x221)][_0xf07ef8(0x1e5)]:this[_0xf07ef8(0x1c8)]();break;case _0x3c042d['CollaborationEvent'][_0xf07ef8(0x171)]:this[_0xf07ef8(0x1bd)](_0x2716e5);break;}}));}[_0x484990(0x1b1)](){const _0x1f57e6=_0x484990;this[_0x1f57e6(0x19e)][_0x1f57e6(0x1e6)]({'eventID':_0x3c042d[_0x1f57e6(0x221)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1f57e6(0x17a)],'userID':this[_0x1f57e6(0x19e)][_0x1f57e6(0x1c4)]()}},this[_0x1f57e6(0x17a)]);}['stopPresenting'](){const _0xdc783c=_0x484990;this[_0xdc783c(0x238)]==='presenting'&&(this[_0xdc783c(0x241)][_0xdc783c(0x1ec)](_0xdc783c(0x1af)),this['_collabSession'][_0xdc783c(0x1e6)]({'eventID':_0x3c042d['CollaborationEvent'][_0xdc783c(0x1e5)],'data':{'unitID':this['_unitID']}},this[_0xdc783c(0x17a)]));}[_0x484990(0x24f)](){const _0x3706f5=_0x484990;this[_0x3706f5(0x238)]===_0x3706f5(0x233)&&(this[_0x3706f5(0x241)][_0x3706f5(0x1ec)]('following'),this[_0x3706f5(0x1dc)]());}[_0x484990(0x243)](){const _0x5526b8=_0x484990;this['_status']===_0x5526b8(0x18d)&&this[_0x5526b8(0x19a)]();}[_0x484990(0x194)](_0x19c91b){const _0x5becfb=_0x484990,{presenter:_0x343626}=_0x19c91b['data'],_0x398372=this['_collabSession'][_0x5becfb(0x1c4)]();this[_0x5becfb(0x208)]=_0x343626,_0x343626===_0x398372?(this[_0x5becfb(0x19a)](),this['_startPresenting']()):this[_0x5becfb(0x238)]!==_0x5becfb(0x233)&&(this['_stopPresenting'](),this[_0x5becfb(0x1dc)]());}[_0x484990(0x20b)](){const _0x35d0a3=_0x484990,_0x3316ec={'eventID':_0x3c042d[_0x35d0a3(0x221)][_0x35d0a3(0x16a)]};this[_0x35d0a3(0x19e)][_0x35d0a3(0x1e6)](_0x3316ec,this[_0x35d0a3(0x17a)]);}[_0x484990(0x1c8)](){const _0x1deb25=_0x484990;this[_0x1deb25(0x208)]=null,this['_status']!==_0x1deb25(0x196)&&this[_0x1deb25(0x1a2)]();}[_0x484990(0x1bd)](_0x1d77fd){const _0x32e2ef=_0x484990;if(this[_0x32e2ef(0x238)]===_0x32e2ef(0x18d)&&this[_0x32e2ef(0x208)]===_0x1d77fd[_0x32e2ef(0x177)][_0x32e2ef(0x217)]){const _0x58755d=_0x3c042d['parseProtocolChangeset'](_0x1d77fd[_0x32e2ef(0x177)])[_0x32e2ef(0x227)]['reverse']()[_0x32e2ef(0x186)](_0x4d40df=>_0x4d40df['id']===_0x586c3c['InsertSheetMutation']['id']);if(_0x58755d){const _0x10eb96=_0x58755d[_0x32e2ef(0x19f)]['unitId'],_0x1291d2=_0x58755d[_0x32e2ef(0x19f)][_0x32e2ef(0x1e2)]['id'];setTimeout(()=>{const _0x12acbd=_0x32e2ef;this['_commandService']['executeCommand'](_0x586c3c[_0x12acbd(0x235)]['id'],{'unitId':_0x10eb96,'subUnitId':_0x1291d2},{'fromCollab':!0x0});});}}}[_0x484990(0x1a0)](){const _0x5da27e=_0x484990;this['_status$'][_0x5da27e(0x1ec)]('presenting');const _0xdb0d78=new Map(),_0x208bfc=this['_commandDisposable']=new _0x3b2d48[(_0x5da27e(0x204))]();_0x208bfc[_0x5da27e(0x1bb)](_0x3b2d48[_0x5da27e(0x1a9)](()=>{const _0x28ace0=_0x5da27e;_0xdb0d78[_0x28ace0(0x17f)](_0x137d3f=>_0x137d3f[_0x28ace0(0x1c3)]()),_0xdb0d78['clear']();})),_0x208bfc[_0x5da27e(0x1bb)](this['_commandService']['onCommandExecuted'](_0x38b9a0=>{const _0x4e33b2=_0x5da27e;var _0x30399e;if(_0x38b9a0[_0x4e33b2(0x207)]!==_0x3b2d48[_0x4e33b2(0x22d)][_0x4e33b2(0x180)]||!this[_0x4e33b2(0x1ef)]['shouldShareOperation'](_0x38b9a0['id']))return;const {id:_0x164f66}=_0x38b9a0;let _0x4b2377;_0xdb0d78[_0x4e33b2(0x215)](_0x164f66)?_0x4b2377=_0xdb0d78[_0x4e33b2(0x24d)](_0x164f66):(_0x4b2377=new _0x481bfd['Subject'](),_0xdb0d78[_0x4e33b2(0x179)](_0x164f66,_0x4b2377),_0x4b2377[_0x4e33b2(0x232)](_0xb00dce[_0x4e33b2(0x229)]((_0x30399e=this[_0x4e33b2(0x190)]['getConfig'](_0x571620))!=null?_0x30399e:_0xcae593,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4e33b2(0x1d6)](_0x4efde5=>{const _0x420c24=_0x4e33b2;this['_collabSession'][_0x420c24(0x1e6)]({'eventID':_0x3c042d['CollaborationEvent'][_0x420c24(0x1ac)],'data':{'unitID':this[_0x420c24(0x17a)],'operations':{[_0x4efde5['id']]:{'id':_0x4efde5['id'],'params':JSON['stringify'](_0x4efde5[_0x420c24(0x19f)])}}}},this[_0x420c24(0x17a)]);})),_0x4b2377['next'](_0x38b9a0);})),this[_0x5da27e(0x1ef)][_0x5da27e(0x1db)](this[_0x5da27e(0x17a)])[_0x5da27e(0x17f)](_0x87340c=>this[_0x5da27e(0x19e)]['send']({'eventID':_0x3c042d[_0x5da27e(0x221)][_0x5da27e(0x1ac)],'data':{'unitID':this[_0x5da27e(0x17a)],'operations':{[_0x87340c['id']]:{'id':_0x87340c['id'],'params':JSON[_0x5da27e(0x1a6)](_0x87340c[_0x5da27e(0x19f)])}}}},this[_0x5da27e(0x17a)]));}[_0x484990(0x1d5)](){const _0x8b9c90=_0x484990;var _0x513400;this[_0x8b9c90(0x241)]['next'](_0x8b9c90(0x1af)),(_0x513400=this[_0x8b9c90(0x1b3)])==null||_0x513400[_0x8b9c90(0x16d)](),this[_0x8b9c90(0x1b3)]=null;}[_0x484990(0x1dc)](){const _0x43d4ff=_0x484990;var _0x62185f;(_0x62185f=this['_commandDisposable'])==null||_0x62185f[_0x43d4ff(0x16d)](),this['_status$'][_0x43d4ff(0x1ec)](_0x43d4ff(0x18d));}['_beIdle'](){const _0x2652b2=_0x484990;var _0x3e0451;this['_status$'][_0x2652b2(0x1ec)](_0x2652b2(0x1af)),(_0x3e0451=this['_commandDisposable'])==null||_0x3e0451['dispose'](),this['_commandDisposable']=null;}[_0x484990(0x19a)](){const _0x14a093=_0x484990;var _0x3df3c1;this['_status$'][_0x14a093(0x1ec)]('not-following'),(_0x3df3c1=this[_0x14a093(0x1b3)])==null||_0x3df3c1['dispose']();}[_0x484990(0x1d7)](_0x4e4823){const _0x4d141e=_0x484990;if([_0x4d141e(0x196),_0x4d141e(0x233),_0x4d141e(0x234)][_0x4d141e(0x242)](this['_status'])||!_0x4e4823[_0x4d141e(0x177)]['presenter']||_0x4e4823[_0x4d141e(0x177)][_0x4d141e(0x203)]===this[_0x4d141e(0x19e)][_0x4d141e(0x1c4)]())return;this[_0x4d141e(0x238)]===_0x4d141e(0x1af)&&this['_startFollowing']();const _0x50b97c=_0x4e4823[_0x4d141e(0x177)][_0x4d141e(0x1f3)];Object[_0x4d141e(0x214)](_0x50b97c)[_0x4d141e(0x17f)](_0x203b19=>{const _0x12abf8=_0x4d141e;this[_0x12abf8(0x21b)][_0x12abf8(0x1fa)](_0x203b19['id'],_0x203b19[_0x12abf8(0x19f)]?JSON[_0x12abf8(0x191)](_0x203b19['params']):null,{'fromCollab':!0x0});});}[_0x484990(0x1ca)](){const _0x3e3f0b=_0x484990;var _0x1438c5;this[_0x3e3f0b(0x241)][_0x3e3f0b(0x1ec)](_0x3e3f0b(0x234)),(_0x1438c5=this[_0x3e3f0b(0x1b3)])==null||_0x1438c5[_0x3e3f0b(0x16d)]();}[_0x484990(0x216)](){const _0x4b31e2=_0x484990;this['_status$']['next']('idle'),this[_0x4b31e2(0x20b)]();}},_0xa2757b[_0x484990(0x1b6)]=_0x41ff3f([_0x2bbfd2(0x2,_0x3b2d48[_0x484990(0x1a5)]),_0x2bbfd2(0x3,_0x3b2d48['Inject'](_0x48c29b)),_0x2bbfd2(0x4,_0x3b2d48[_0x484990(0x1d8)])],_0xa2757b[_0x484990(0x1b6)]);function _0xa047bf(){const _0x250d20=_0x484990,_0x11e566=_0x46af64[_0x250d20(0x1fc)](_0xa2757b['LiveShareController']),_0x2db576=_0x46af64[_0x250d20(0x1fc)](_0x3b2d48['IUniverInstanceService']),_0x3259a=_0x46af64[_0x250d20(0x24c)](()=>_0x2db576[_0x250d20(0x172)](_0x3b2d48[_0x250d20(0x23a)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x34b13f,_0x1666d4]=_0x221013[_0x250d20(0x247)](null),[_0x582078,_0x1c7fd2]=_0x221013['useState'](_0x7950f5[_0x250d20(0x205)]),_0xf11426=_0x221013[_0x250d20(0x201)](null);return _0x221013[_0x250d20(0x192)](()=>(_0x3259a&&_0x11e566['getLiveShareCoordinator'](_0x3259a[_0x250d20(0x22a)]())[_0x250d20(0x213)](_0x316a62=>{const _0x235e7c=_0x250d20;_0x1666d4(_0x316a62),_0xf11426[_0x235e7c(0x1b8)]=_0x316a62['status$'][_0x235e7c(0x1d6)](_0x502b76=>{_0x1c7fd2(_0x502b76);});}),()=>{var _0x58f235;(_0x58f235=_0xf11426['current'])==null||_0x58f235['unsubscribe'](),_0xf11426['current']=null;}),[_0x3259a,_0x11e566]),_0x34b13f?_0x59c9f9[_0x250d20(0x18b)](_0x183aa2[_0x250d20(0x1c1)],{'align':'end','disabled':_0x582078===_0x7950f5['OFFLINE'],'className':_0x250d20(0x1f7),'overlay':_0x59c9f9[_0x250d20(0x18b)](_0xbe2eb,{'status':_0x582078,'coordinator':_0x34b13f}),'children':_0x59c9f9['jsx'](_0x250d20(0x195),{'className':_0x183aa2[_0x250d20(0x1e4)](_0x250d20(0x169),{'univer-cursor-not-allowed':_0x582078===_0x7950f5[_0x250d20(0x220)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x582078!==_0x7950f5[_0x250d20(0x220)]}),'type':_0x250d20(0x195),'children':_0x59c9f9[_0x250d20(0x18b)](_0x367e44,{'className':'univer-size-4'})})}):null;}function _0xbe2eb(_0x5218b8){const _0x32bb9e=_0x484990,{status:_0x1359ce,coordinator:_0x42eac6}=_0x5218b8;switch(_0x1359ce){case _0x7950f5[_0x32bb9e(0x205)]:return _0x59c9f9[_0x32bb9e(0x18b)](_0x2c2fab,{'coordinator':_0x42eac6});case _0x7950f5[_0x32bb9e(0x18e)]:return _0x59c9f9[_0x32bb9e(0x18b)](_0x319262,{'coordinator':_0x42eac6});case _0x7950f5[_0x32bb9e(0x225)]:return _0x59c9f9[_0x32bb9e(0x18b)](_0x9bf3db,{'coordinator':_0x42eac6});case _0x7950f5[_0x32bb9e(0x220)]:return _0x59c9f9[_0x32bb9e(0x18b)](_0x55feae,{});case _0x7950f5[_0x32bb9e(0x1e8)]:return _0x59c9f9[_0x32bb9e(0x18b)](_0x5448ad,{'coordinator':_0x42eac6});default:return null;}}function _0x2c2fab(_0xfb447e){const _0x1eadb3=_0x484990,{coordinator:_0xa6894f}=_0xfb447e;return _0x59c9f9[_0x1eadb3(0x1c0)](_0x59c9f9[_0x1eadb3(0x1de)],{'children':[_0x59c9f9[_0x1eadb3(0x18b)](_0x1eadb3(0x23b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1eadb3(0x21f)}),_0x59c9f9[_0x1eadb3(0x18b)](_0x183aa2[_0x1eadb3(0x1d9)],{'onClick':()=>_0xa6894f[_0x1eadb3(0x1b1)](),'children':'Start'})]});}function _0x319262(_0x2f290e){const _0x2003c6=_0x484990,{coordinator:_0x197c8f}=_0x2f290e;return _0x59c9f9[_0x2003c6(0x1c0)](_0x59c9f9['Fragment'],{'children':[_0x59c9f9['jsx'](_0x2003c6(0x23b),{'className':_0x2003c6(0x1d0),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x59c9f9[_0x2003c6(0x18b)](_0x183aa2[_0x2003c6(0x1d9)],{'onClick':()=>_0x197c8f[_0x2003c6(0x243)](),'children':'Stop\x20following'})]});}function _0x9bf3db(_0x537187){const _0x32cbe3=_0x484990,{coordinator:_0x1afa1e}=_0x537187;return _0x59c9f9[_0x32cbe3(0x1c0)](_0x59c9f9[_0x32cbe3(0x1de)],{'children':[_0x59c9f9[_0x32cbe3(0x18b)]('div',{'className':_0x32cbe3(0x1d0),'children':_0x32cbe3(0x1a4)}),_0x59c9f9[_0x32cbe3(0x18b)](_0x183aa2['Button'],{'variant':'text','onClick':()=>_0x1afa1e['startFollowing'](),'children':_0x32cbe3(0x1b0)})]});}function _0x5448ad(_0x53ada0){const _0x3c5fc8=_0x484990,{coordinator:_0x5fa4d7}=_0x53ada0;return _0x59c9f9[_0x3c5fc8(0x1c0)](_0x59c9f9[_0x3c5fc8(0x1de)],{'children':[_0x59c9f9[_0x3c5fc8(0x18b)](_0x3c5fc8(0x23b),{'className':_0x3c5fc8(0x1d0),'children':_0x3c5fc8(0x1d3)}),_0x59c9f9[_0x3c5fc8(0x18b)](_0x183aa2[_0x3c5fc8(0x1d9)],{'variant':_0x3c5fc8(0x1ae),'onClick':()=>_0x5fa4d7['stopPresenting'](),'children':_0x3c5fc8(0x228)})]});}function _0x55feae(){const _0xeb0055=_0x484990;return _0x59c9f9[_0xeb0055(0x18b)](_0x59c9f9[_0xeb0055(0x1de)],{'children':'You\x27are\x20offline.'});}var _0x182f5a=Object[_0x484990(0x170)],_0x301861=(_0x2e8a27,_0x4d9d63,_0x2fb140,_0x18ac76)=>{const _0x53fa4d=_0x484990;for(var _0x2b7551=_0x18ac76>0x1?void 0x0:_0x18ac76?_0x182f5a(_0x4d9d63,_0x2fb140):_0x4d9d63,_0x306688=_0x2e8a27[_0x53fa4d(0x185)]-0x1,_0x4f5e55;_0x306688>=0x0;_0x306688--)(_0x4f5e55=_0x2e8a27[_0x306688])&&(_0x2b7551=_0x4f5e55(_0x2b7551)||_0x2b7551);return _0x2b7551;},_0x99742=(_0x26fa17,_0x2615a8)=>(_0x5dcd6b,_0x567cd1)=>_0x2615a8(_0x5dcd6b,_0x567cd1,_0x26fa17);_0xa2757b[_0x484990(0x245)]=class extends _0x3b2d48[_0x484990(0x1d4)]{constructor(_0x33a354,_0x1002ba){const _0x2c36fe=_0x484990;super(),this[_0x2c36fe(0x1fd)]=_0x33a354,this['_uiPartsService']=_0x1002ba,this['_mountLiveShare']();}[_0x484990(0x1a7)](){const _0x6fe908=_0x484990;this[_0x6fe908(0x239)](this[_0x6fe908(0x21d)][_0x6fe908(0x198)](_0x46af64[_0x6fe908(0x23d)]['HEADER_MENU'],()=>_0x46af64[_0x6fe908(0x17d)](_0xa047bf,this[_0x6fe908(0x1fd)])));}},_0xa2757b[_0x484990(0x245)]=_0x301861([_0x99742(0x0,_0x3b2d48[_0x484990(0x1cb)](_0x3b2d48[_0x484990(0x183)])),_0x99742(0x1,_0x46af64['IUIPartsService'])],_0xa2757b['DesktopLiveShareController']);const _0x6327ae=_0x484990(0x1d1),_0x1b0abe={};var _0x8f1c17=Object['getOwnPropertyDescriptor'],_0x75b6df=(_0x493253,_0x2342fa,_0x352627,_0x4e536a)=>{const _0x585d84=_0x484990;for(var _0x40f5b4=_0x4e536a>0x1?void 0x0:_0x4e536a?_0x8f1c17(_0x2342fa,_0x352627):_0x2342fa,_0x1e2d7b=_0x493253[_0x585d84(0x185)]-0x1,_0x238fa5;_0x1e2d7b>=0x0;_0x1e2d7b--)(_0x238fa5=_0x493253[_0x1e2d7b])&&(_0x40f5b4=_0x238fa5(_0x40f5b4)||_0x40f5b4);return _0x40f5b4;},_0x2000d2=(_0x4eccc1,_0x101899)=>(_0x5401f9,_0x50a325)=>_0x101899(_0x5401f9,_0x50a325,_0x4eccc1);let _0x3fa21c=class extends _0x3b2d48[_0x484990(0x1d4)]{constructor(_0x39db73){const _0x53f8f5=_0x484990;super(),this['_liveShareService']=_0x39db73,this[_0x53f8f5(0x200)]();}['_init'](){const _0xfa7f24=_0x484990;[_0x34aedc[_0xfa7f24(0x1bc)]['id'],_0x34aedc[_0xfa7f24(0x16f)]['id'],_0x586c3c[_0xfa7f24(0x235)]['id']][_0xfa7f24(0x17f)](_0x152377=>{const _0x3626e7=_0xfa7f24;this[_0x3626e7(0x239)](this[_0x3626e7(0x1ef)]['registerSharedOperation'](_0x152377));});}};_0x3fa21c=_0x75b6df([_0x2000d2(0x0,_0x3b2d48[_0x484990(0x1cb)](_0x48c29b))],_0x3fa21c);var _0x3ba4f4=Object[_0x484990(0x1ab)],_0x3eb81b=Object[_0x484990(0x170)],_0x33fd19=(_0x277f52,_0x344464,_0x262b36)=>_0x344464 in _0x277f52?_0x3ba4f4(_0x277f52,_0x344464,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x262b36}):_0x277f52[_0x344464]=_0x262b36,_0x2d3af3=(_0x2bebd5,_0x29d8c6,_0x9ad1e2,_0x213734)=>{const _0x2d7eb0=_0x484990;for(var _0xc1fc76=_0x213734>0x1?void 0x0:_0x213734?_0x3eb81b(_0x29d8c6,_0x9ad1e2):_0x29d8c6,_0x404539=_0x2bebd5[_0x2d7eb0(0x185)]-0x1,_0x52f14c;_0x404539>=0x0;_0x404539--)(_0x52f14c=_0x2bebd5[_0x404539])&&(_0xc1fc76=_0x52f14c(_0xc1fc76)||_0xc1fc76);return _0xc1fc76;},_0x4aa788=(_0x534699,_0xc9f02c)=>(_0x7973e0,_0x3059e0)=>_0xc9f02c(_0x7973e0,_0x3059e0,_0x534699),_0x5e55ef=(_0x51b0b2,_0x119bf9,_0x25981a)=>_0x33fd19(_0x51b0b2,typeof _0x119bf9!=_0x484990(0x1e1)?_0x119bf9+'':_0x119bf9,_0x25981a);const _0x30fcc0='UNIVER_LIVE_SHARE_PLUGIN';_0xa2757b[_0x484990(0x1dd)]=class extends _0x3b2d48[_0x484990(0x19d)]{constructor(_0x2ab482=_0x1b0abe,_0x5314ea,_0x54c8b8){const _0x5545b3=_0x484990;super(),this['_config']=_0x2ab482,this[_0x5545b3(0x1fd)]=_0x5314ea,this['_configService']=_0x54c8b8;const {..._0x2694d3}=_0x3b2d48[_0x5545b3(0x1ed)]({},_0x1b0abe,this[_0x5545b3(0x1f9)]);this['_configService'][_0x5545b3(0x184)](_0x6327ae,_0x2694d3);}[_0x484990(0x1c2)](){const _0x2ae01f=_0x484990;_0x3b2d48[_0x2ae01f(0x1aa)](this[_0x2ae01f(0x1fd)],_0x3b2d48[_0x2ae01f(0x17c)]([[_0x48c29b],[_0xa2757b[_0x2ae01f(0x219)]],[_0x3fa21c],[_0xa2757b['DesktopLiveShareController']]],this['_config'][_0x2ae01f(0x250)])),_0x3b2d48[_0x2ae01f(0x181)](this[_0x2ae01f(0x1fd)],[[_0x3fa21c]]);}['onRendered'](){const _0x326d59=_0x484990;_0x3b2d48[_0x326d59(0x181)](this[_0x326d59(0x1fd)],[[_0xa2757b['DesktopLiveShareController']]]);}},_0x5e55ef(_0xa2757b[_0x484990(0x1dd)],_0x484990(0x207),_0x3b2d48[_0x484990(0x23a)][_0x484990(0x223)]),_0x5e55ef(_0xa2757b['UniverLiveSharePlugin'],_0x484990(0x18c),_0x30fcc0),_0xa2757b[_0x484990(0x1dd)]=_0x2d3af3([_0x3b2d48[_0x484990(0x206)](_0x2f6388[_0x484990(0x1b7)]),_0x4aa788(0x1,_0x3b2d48[_0x484990(0x1cb)](_0x3b2d48[_0x484990(0x183)])),_0x4aa788(0x2,_0x3b2d48[_0x484990(0x1a5)])],_0xa2757b[_0x484990(0x1dd)]),_0xa2757b[_0x484990(0x222)]=_0xa047bf,_0xa2757b[_0x484990(0x24b)]=_0x48c29b,_0xa2757b[_0x484990(0x236)]=_0x7950f5,Object[_0x484990(0x1ab)](_0xa2757b,Symbol[_0x484990(0x1cd)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.15.0-insiders.
|
|
3
|
+
"version": "0.15.0-insiders.20260110-48b77c8",
|
|
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.1.1",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.15.0-insiders.
|
|
61
|
-
"@univerjs-pro/collaboration-client": "0.15.0-insiders.
|
|
62
|
-
"@univerjs/design": "0.15.0-insiders.
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets": "0.15.0-insiders.
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.15.0-insiders.20260110-48b77c8",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.15.0-insiders.20260110-48b77c8",
|
|
62
|
+
"@univerjs/design": "0.15.0-insiders.20260110-48b77c8",
|
|
63
|
+
"@univerjs/core": "0.15.0-insiders.20260110-48b77c8",
|
|
64
|
+
"@univerjs/engine-render": "0.15.0-insiders.20260110-48b77c8",
|
|
65
|
+
"@univerjs/sheets-ui": "0.15.0-insiders.20260110-48b77c8",
|
|
66
|
+
"@univerjs/ui": "0.15.0-insiders.20260110-48b77c8",
|
|
67
|
+
"@univerjs/sheets": "0.15.0-insiders.20260110-48b77c8"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.3.1",
|
|
76
76
|
"vitest": "^4.0.16",
|
|
77
|
-
"@univerjs/
|
|
78
|
-
"@univerjs
|
|
77
|
+
"@univerjs-infra/shared": "0.15.0",
|
|
78
|
+
"@univerjs/protocol": "0.1.48"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|