@univerjs-pro/live-share 0.15.2-insiders.20260119-edc718c → 0.15.2-insiders.20260122-b1556b1
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 +10 -10
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4560ad=_0x339c;function _0x303e(){const _0x50e234=['FUniver','getLiveShareCoordinatorSync','204jpSFFh','symbol','defineProperty','298373VTynQP','479961pGiPOF','FEnum','tryStartPresenting','2jmojCt','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','35Dncthi','stopPresenting','getCurrentUnitOfType','startFollowing','9jwGhEi','223740aEQEVU','stopFollowing','10858270fKloYe','LiveShareStatus','UNIVER_SHEET','_liveShareController','IUniverInstanceService','366056FoXEQx','2181605JIjJFK','LiveShareController','_injector','No\x20active\x20workbook\x20found.','IDLE','getUnitId','6LpILOf','104kXmFqU','get','4qKdzCh','1710842hhCuBF','UniverInstanceType','_initialize'];_0x303e=function(){return _0x50e234;};return _0x303e();}function _0x339c(_0x2a926d,_0x2a6010){_0x2a926d=_0x2a926d-0x77;const _0x303e81=_0x303e();let _0x339c49=_0x303e81[_0x2a926d];return _0x339c49;}(function(_0x2c59ae,_0x2e45ae){const _0x5a239a=_0x339c,_0x3a6dd5=_0x2c59ae();while(!![]){try{const _0x1ca8d1=-parseInt(_0x5a239a(0x89))/0x1*(-parseInt(_0x5a239a(0x8d))/0x2)+-parseInt(_0x5a239a(0x8a))/0x3*(-parseInt(_0x5a239a(0x80))/0x4)+parseInt(_0x5a239a(0x77))/0x5*(parseInt(_0x5a239a(0x7d))/0x6)+parseInt(_0x5a239a(0x8f))/0x7*(parseInt(_0x5a239a(0x9b))/0x8)+-parseInt(_0x5a239a(0x93))/0x9*(-parseInt(_0x5a239a(0x96))/0xa)+parseInt(_0x5a239a(0x94))/0xb*(-parseInt(_0x5a239a(0x86))/0xc)+parseInt(_0x5a239a(0x7e))/0xd*(-parseInt(_0x5a239a(0x81))/0xe);if(_0x1ca8d1===_0x2e45ae)break;else _0x3a6dd5['push'](_0x3a6dd5['shift']());}catch(_0x5ee778){_0x3a6dd5['push'](_0x3a6dd5['shift']());}}}(_0x303e,0xd8481));var h=Object[_0x4560ad(0x88)],u=(_0x44f6e8,_0x16c2a0,_0x3fb687)=>_0x16c2a0 in _0x44f6e8?h(_0x44f6e8,_0x16c2a0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fb687}):_0x44f6e8[_0x16c2a0]=_0x3fb687,S=(_0x1dbc95,_0x1b2f08,_0x4bd433)=>u(_0x1dbc95,typeof _0x1b2f08!=_0x4560ad(0x87)?_0x1b2f08+'':_0x1b2f08,_0x4bd433);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');class I extends c[_0x4560ad(0x84)]{constructor(){super(...arguments),S(this,'_liveShareController');}[_0x4560ad(0x83)](_0x27632a){const _0x304ab7=_0x4560ad;this[_0x304ab7(0x99)]=_0x27632a['get'](s[_0x304ab7(0x78)]);}['getLiveShareStatus'](){const _0x36c1d2=_0x4560ad;var _0x227440;const _0x422488=this['_injector'][_0x36c1d2(0x7f)](n[_0x36c1d2(0x9a)])['getCurrentUnitOfType'](n['UniverInstanceType'][_0x36c1d2(0x98)]);if(!_0x422488)throw new Error(_0x36c1d2(0x7a));const _0x2221d1=_0x422488[_0x36c1d2(0x7c)](),_0x1983e1=this[_0x36c1d2(0x99)][_0x36c1d2(0x85)](_0x2221d1);return(_0x227440=_0x1983e1==null?void 0x0:_0x1983e1['getStatus']())!=null?_0x227440:s[_0x36c1d2(0x97)][_0x36c1d2(0x7b)];}[_0x4560ad(0x92)](){const _0xc9cd26=_0x4560ad,_0x691ef=this[_0xc9cd26(0x79)][_0xc9cd26(0x7f)](n[_0xc9cd26(0x9a)])[_0xc9cd26(0x91)](n[_0xc9cd26(0x82)][_0xc9cd26(0x98)]);if(!_0x691ef)throw new Error(_0xc9cd26(0x7a));const _0x31be0f=_0x691ef[_0xc9cd26(0x7c)](),_0x26de0b=this[_0xc9cd26(0x99)][_0xc9cd26(0x85)](_0x31be0f);if(!_0x26de0b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x26de0b['startFollowing']();}[_0x4560ad(0x95)](){const _0x5b8647=_0x4560ad,_0x4134a3=this[_0x5b8647(0x79)][_0x5b8647(0x7f)](n[_0x5b8647(0x9a)])[_0x5b8647(0x91)](n[_0x5b8647(0x82)]['UNIVER_SHEET']);if(!_0x4134a3)throw new Error(_0x5b8647(0x7a));const _0x39a8b0=_0x4134a3[_0x5b8647(0x7c)](),_0x374540=this[_0x5b8647(0x99)][_0x5b8647(0x85)](_0x39a8b0);if(!_0x374540)throw new Error(_0x5b8647(0x8e));_0x374540[_0x5b8647(0x95)]();}['startPresenting'](){const _0x513b48=_0x4560ad,_0x31cce6=this['_injector'][_0x513b48(0x7f)](n[_0x513b48(0x9a)])[_0x513b48(0x91)](n[_0x513b48(0x82)][_0x513b48(0x98)]);if(!_0x31cce6)throw new Error(_0x513b48(0x7a));const _0x1faf85=_0x31cce6['getUnitId'](),_0x223e5d=this[_0x513b48(0x99)][_0x513b48(0x85)](_0x1faf85);if(!_0x223e5d)throw new Error(_0x513b48(0x8e));_0x223e5d[_0x513b48(0x8c)]();}[_0x4560ad(0x90)](){const _0x2a86d7=_0x4560ad,_0x2b627a=this['_injector'][_0x2a86d7(0x7f)](n[_0x2a86d7(0x9a)])[_0x2a86d7(0x91)](n[_0x2a86d7(0x82)][_0x2a86d7(0x98)]);if(!_0x2b627a)throw new Error(_0x2a86d7(0x7a));const _0x51d5bc=_0x2b627a['getUnitId'](),_0x243e2b=this[_0x2a86d7(0x99)][_0x2a86d7(0x85)](_0x51d5bc);if(!_0x243e2b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x243e2b['stopPresenting']();}}c[_0x4560ad(0x84)]['extend'](I);class l extends c[_0x4560ad(0x8b)]{get['LiveShareStatusEnum'](){const _0x368ad3=_0x4560ad;return s[_0x368ad3(0x97)];}}c[_0x4560ad(0x8b)]['extend'](l);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4c0162=_0xf66b;(function(_0x290d37,_0x4ab46c){const _0x33b098=_0xf66b,_0x1b72f9=_0x290d37();while(!![]){try{const _0x366087=parseInt(_0x33b098(0xf6))/0x1*(-parseInt(_0x33b098(0x158))/0x2)+parseInt(_0x33b098(0x13f))/0x3+-parseInt(_0x33b098(0xf4))/0x4+-parseInt(_0x33b098(0xc0))/0x5*(-parseInt(_0x33b098(0x112))/0x6)+parseInt(_0x33b098(0x134))/0x7*(-parseInt(_0x33b098(0x189))/0x8)+parseInt(_0x33b098(0x13d))/0x9*(parseInt(_0x33b098(0x110))/0xa)+parseInt(_0x33b098(0xb8))/0xb;if(_0x366087===_0x4ab46c)break;else _0x1b72f9['push'](_0x1b72f9['shift']());}catch(_0x4e448e){_0x1b72f9['push'](_0x1b72f9['shift']());}}}(_0x2686,0x5d80a));function _0x2686(){const _0x4bb846=['_startFollowing','UniverInstanceType','IDLE','You\x27are\x20offline.','1608LTFQjS','following','LiveShareController','forwardRef','BehaviorSubject','getUnitId','operations','Start\x20following','type','getStatus','Fragment','_handleOnline','_handleOffline','FOLLOWING','params','_entities','memberID','9783059NtHxNi','live-share.config','executeCommand','getLiveShareCoordinatorSync','LIVESHARE_NEW_HOST','SetZoomRatioOperation','connectInjector','defineProperty','425dJbxra','getCurrentTypeOfUnit$','event$','_fetchOperations','getInitialStates','get','idle','pluginName','_handleNewChangeSets','next','_status','UniverLiveSharePlugin','You\x27re\x20presenting\x20the\x20document','getConfig','mutations','Inject','_commandService','assign','_stopFollowing','jsxs','IConfigService','_presenter','entries','values','getLiveShareCoordinator','merge','NOT_FOLLOWING','BuiltInUIPart','dispose$','createElement','fill','toString','send','useRef','replace','Start','registerComponent','sessionStatus$','1em','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','stopFollowing','url(#$1','registerInitialStateReporter','CollaborationEvent','Module','_sharedOperations','Disposable','Stop\x20presenting','sheet','UniverIcon','touchDependencies','stopPresenting','2997968sMXOqB','dispose','3grnEdK','UNIVER_SHEET','_stopPresenting','length','forEach','unsubscribe','NEW_CHANGESETS','LiveShareIcon','currentColor','Plugin','_collabSession','registerSharedOperation','button','attrs','LIVESHARE_OPERATION','toDisposable','add','IUniverInstanceService','presenting','_beIdle','useEffect','LiveShare','SAME_OPERATION_SHARE_INTERVAL','DependentOn','UNIVER_UNKNOWN','_mountLiveShare','4762600sDobsq','Present\x20this\x20document','18492AcIyRU','throttleTime','not-following','map','from','symbol','_unitID','DesktopLiveShareController','Button','idSuffix','complete','0\x200\x2017\x2017','_startLiveShareCoordinator','mask','displayName','init','find','http://www.w3.org/2000/svg','substring','data','LIVESHARE_FETCH_OPERATIONS','UNIVER_LIVE_SHARE_PLUGIN','svg','SetScrollOperation','current','presenter','reverse','use','path','LiveShareStatus','random','offline','_injector','_commandDisposable','20902SlTqVA','_configService','setConfig','colorChannel1','_univerInstanceService','registerDependencies','tag','div','univerjs-icon\x20univerjs-icon-','9Zwlclv','_config','1912380KCMQTE','defIds','asObservable','ICommandService','_status$','DisposableCollection','defs','Stop\x20following','useDependency','startFollowing','_uiPartsService','IUIPartsService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getTypeOfUnitDisposed$','xlink:href','default','univer-mb-3\x20univer-w-full\x20univer-text-sm','string','set','SetWorksheetActiveOperation','_handleTerminate','takeUntil','none','_liveShareService','requireSession','354930RnmBkt','clsx','evenodd','_handleOperation','trim','stringify','children','_reporters','Dropdown','delete','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','parseProtocolChangeset','_init','UniverCollaborationClientPlugin','createInstance','LiveShareCoordinator','onRendered','shouldShareOperation','CommandType','SessionStatus','parse','jsx','OFFLINE','_startPresenting','getOwnPropertyDescriptor','You\x27re\x20following\x20the\x20presenter','disposeWithMe','LiveShareService','_collabSessionService','LIVESHARE_REQUEST_HOST','useState','PRESENTING','getMemberID','subscribe','status$','Injector','pipe','then','toStringTag','onCommandExecuted','override','RxDisposable','_handleNewHost','has','clear'];_0x2686=function(){return _0x4bb846;};return _0x2686();}var T=Object[_0x4c0162(0xbf)],U=(_0x378543,_0x40cbe1,_0x1af112)=>_0x40cbe1 in _0x378543?T(_0x378543,_0x40cbe1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1af112}):_0x378543[_0x40cbe1]=_0x1af112,_=(_0x23e1d9,_0xfbcdcc,_0x373705)=>U(_0x23e1d9,typeof _0xfbcdcc!=_0x4c0162(0x117)?_0xfbcdcc+'':_0xfbcdcc,_0x373705);Object[_0x4c0162(0xbf)](exports,Symbol[_0x4c0162(0x17e)],{'value':_0x4c0162(0xec)});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:_0x7ebd4d,..._0x29e80e}){const _0x32e049=_0x4c0162,{icon:_0x111a07,id:_0xf366d0,className:_0x548376,extend:_0x1deef4,..._0x3ea90a}=_0x29e80e,_0x288f64=(_0x32e049(0x13c)+_0xf366d0+'\x20'+(_0x548376||''))[_0x32e049(0x15c)](),_0x1f8b8e=v[_0x32e049(0xe1)]('_'+H());return j(_0x111a07,''+_0xf366d0,{'defIds':_0x111a07[_0x32e049(0x140)],'idSuffix':_0x1f8b8e['current']},{'ref':_0x7ebd4d,'className':_0x288f64,..._0x3ea90a},_0x1deef4);}function j(_0x536c4b,_0x4378dc,_0x46e4d8,_0x23fed7,_0x4e4cde){const _0x11c357=_0x4c0162;return v['createElement'](_0x536c4b['tag'],{'key':_0x4378dc,...y(_0x536c4b,_0x46e4d8,_0x4e4cde),..._0x23fed7},(F(_0x536c4b,_0x46e4d8)[_0x11c357(0x15e)]||[])[_0x11c357(0x115)]((_0x218ab0,_0x136e94)=>j(_0x218ab0,_0x4378dc+'-'+_0x536c4b[_0x11c357(0x13a)]+'-'+_0x136e94,_0x46e4d8,void 0x0,_0x4e4cde)));}function y(_0xca844d,_0xfe1926,_0x23f90c){const _0xba8aa1=_0x4c0162,_0x1cbbf8={..._0xca844d['attrs']};_0x23f90c!=null&&_0x23f90c['colorChannel1']&&_0x1cbbf8[_0xba8aa1(0xde)]===_0xba8aa1(0x137)&&(_0x1cbbf8[_0xba8aa1(0xde)]=_0x23f90c['colorChannel1']),_0xca844d['tag']===_0xba8aa1(0x11f)&&_0x1cbbf8['id']&&(_0x1cbbf8['id']=_0x1cbbf8['id']+_0xfe1926['idSuffix']),Object[_0xba8aa1(0xd6)](_0x1cbbf8)['forEach'](([_0x45f5ae,_0x214af8])=>{const _0x43a05b=_0xba8aa1;_0x45f5ae===_0x43a05b(0x11f)&&typeof _0x214af8==_0x43a05b(0x150)&&(_0x1cbbf8[_0x45f5ae]=_0x214af8[_0x43a05b(0xe2)](/url\(#(.*)\)/,_0x43a05b(0xe9)+_0xfe1926[_0x43a05b(0x11b)]+')'));});const {defIds:_0x513cca}=_0xfe1926;return!_0x513cca||_0x513cca[_0xba8aa1(0xf9)]===0x0||(_0xca844d[_0xba8aa1(0x13a)]===_0xba8aa1(0x12d)&&_0x1cbbf8[_0xba8aa1(0x14d)]&&(_0x1cbbf8[_0xba8aa1(0x14d)]=_0x1cbbf8[_0xba8aa1(0x14d)]+_0xfe1926[_0xba8aa1(0x11b)]),Object[_0xba8aa1(0xd6)](_0x1cbbf8)[_0xba8aa1(0xfa)](([_0x309bd8,_0x1b7438])=>{const _0x421ffc=_0xba8aa1;typeof _0x1b7438==_0x421ffc(0x150)&&(_0x1cbbf8[_0x309bd8]=_0x1b7438['replace'](/url\(#(.*)\)/,'url(#$1'+_0xfe1926[_0x421ffc(0x11b)]+')'));})),_0x1cbbf8;}function F(_0x3fefbe,_0xfdf756){const _0x2b1d15=_0x4c0162;var _0x34406f;const {defIds:_0x21a8cd}=_0xfdf756;return!_0x21a8cd||_0x21a8cd['length']===0x0?_0x3fefbe:_0x3fefbe['tag']===_0x2b1d15(0x145)&&((_0x34406f=_0x3fefbe[_0x2b1d15(0x15e)])!=null&&_0x34406f[_0x2b1d15(0xf9)])?{..._0x3fefbe,'children':_0x3fefbe[_0x2b1d15(0x15e)][_0x2b1d15(0x115)](_0x34e3c5=>typeof _0x34e3c5[_0x2b1d15(0x103)]['id']==_0x2b1d15(0x150)&&_0x21a8cd&&_0x21a8cd['includes'](_0x34e3c5[_0x2b1d15(0x103)]['id'])?{..._0x34e3c5,'attrs':{..._0x34e3c5['attrs'],'id':_0x34e3c5[_0x2b1d15(0x103)]['id']+_0xfdf756[_0x2b1d15(0x11b)]}}:_0x34e3c5)}:_0x3fefbe;}function H(){const _0x130d21=_0x4c0162;return Math[_0x130d21(0x130)]()[_0x130d21(0xdf)](0x24)[_0x130d21(0x124)](0x2,0x8);}x[_0x4c0162(0x120)]=_0x4c0162(0xf1);const V={'tag':_0x4c0162(0x128),'attrs':{'xmlns':_0x4c0162(0x123),'fill':_0x4c0162(0x155),'viewBox':_0x4c0162(0x11d),'width':_0x4c0162(0xe6),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x4c0162(0xfe),'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':_0x4c0162(0x12e),'attrs':{'fill':_0x4c0162(0xfe),'d':_0x4c0162(0xe7),'fillRule':_0x4c0162(0x15a),'clipRule':_0x4c0162(0x15a)}}]},R=v[_0x4c0162(0x18c)](function(_0x5cfe2b,_0x3d18e6){const _0x43a1af=_0x4c0162;return v[_0x43a1af(0xdd)](x,Object[_0x43a1af(0xd1)]({},_0x5cfe2b,{'id':'live-share-icon','ref':_0x3d18e6,'icon':V}));});R[_0x4c0162(0x120)]=_0x4c0162(0xfd);class E extends o['Disposable']{constructor(){const _0xf63e0a=_0x4c0162;super(...arguments),_(this,_0xf63e0a(0xed),new Set()),_(this,_0xf63e0a(0x15f),new Set());}[_0x4c0162(0x101)](_0x24d34a){const _0x3c914e=_0x4c0162;return this[_0x3c914e(0xed)]['add'](_0x24d34a),o[_0x3c914e(0x105)](()=>this[_0x3c914e(0xed)][_0x3c914e(0x161)](_0x24d34a));}[_0x4c0162(0xea)](_0x592dca){const _0x556cf5=_0x4c0162;return this['_reporters']['add'](_0x592dca),o[_0x556cf5(0x105)](()=>this[_0x556cf5(0x15f)][_0x556cf5(0x161)](_0x592dca));}[_0x4c0162(0x169)](_0x5d51e8){const _0x2bc47d=_0x4c0162;return this[_0x2bc47d(0xed)][_0x2bc47d(0x183)](_0x5d51e8);}[_0x4c0162(0xc4)](_0x16037c){const _0x186230=_0x4c0162;return Array[_0x186230(0x116)](this[_0x186230(0x15f)])[_0x186230(0x115)](_0x487621=>_0x487621(_0x16037c));}}var M=Object[_0x4c0162(0x170)],P=(_0x3ef408,_0x5819eb,_0x5c8cda,_0x29751a)=>{const _0x5a3bae=_0x4c0162;for(var _0x31f832=_0x29751a>0x1?void 0x0:_0x29751a?M(_0x5819eb,_0x5c8cda):_0x5819eb,_0x2fc171=_0x3ef408[_0x5a3bae(0xf9)]-0x1,_0x4b5153;_0x2fc171>=0x0;_0x2fc171--)(_0x4b5153=_0x3ef408[_0x2fc171])&&(_0x31f832=_0x4b5153(_0x31f832)||_0x31f832);return _0x31f832;},S=(_0x5d1f9e,_0x37dc49)=>(_0x42befb,_0x414e4c)=>_0x37dc49(_0x42befb,_0x414e4c,_0x5d1f9e);exports[_0x4c0162(0x18b)]=class extends o[_0x4c0162(0x181)]{constructor(_0x561931,_0xdbcef0,_0x189853){const _0x15d2d6=_0x4c0162;super(),_(this,_0x15d2d6(0xb6),new Map()),(this[_0x15d2d6(0x138)]=_0x561931,this[_0x15d2d6(0x132)]=_0xdbcef0,this[_0x15d2d6(0x174)]=_0x189853,this[_0x15d2d6(0x164)]());}async[_0x4c0162(0xd8)](_0x5363a4){const _0x2314ae=_0x4c0162;return this['_entities'][_0x2314ae(0x183)](_0x5363a4)||await this['_startLiveShareCoordinator'](_0x5363a4),this[_0x2314ae(0xb6)]['get'](_0x5363a4);}[_0x4c0162(0xbb)](_0x56d0de){const _0x4e3824=_0x4c0162;var _0x28ed82;return(_0x28ed82=this[_0x4e3824(0xb6)]['get'](_0x56d0de))!=null?_0x28ed82:null;}[_0x4c0162(0x164)](){const _0xfd4be1=_0x4c0162;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0xfd4be1(0x186)][_0xfd4be1(0xf7)])['pipe'](I[_0xfd4be1(0x154)](this[_0xfd4be1(0xdc)]))[_0xfd4be1(0x179)](async _0x3520ae=>{const _0x2ed61a=_0xfd4be1,_0x4f7704=_0x3520ae[_0x2ed61a(0x18e)]();this[_0x2ed61a(0xb6)][_0x2ed61a(0x183)](_0x4f7704)||this[_0x2ed61a(0x11e)](_0x4f7704);}),this[_0xfd4be1(0x138)][_0xfd4be1(0x14c)](o[_0xfd4be1(0x186)][_0xfd4be1(0xf7)])['pipe'](I[_0xfd4be1(0x154)](this[_0xfd4be1(0xdc)]))['subscribe'](_0x3ae0cb=>{const _0x32ab9b=_0xfd4be1,_0x4816ae=_0x3ae0cb[_0x32ab9b(0x18e)](),_0x2938eb=this[_0x32ab9b(0xb6)][_0x32ab9b(0xc5)](_0x4816ae);_0x2938eb==null||_0x2938eb[_0x32ab9b(0xf5)]();});}async[_0x4c0162(0x11e)](_0x446917){const _0x754d70=_0x4c0162,_0x45fd91=await this[_0x754d70(0x174)][_0x754d70(0x157)](_0x446917),_0x42743a=this['_injector'][_0x754d70(0x166)](exports[_0x754d70(0x167)],_0x446917,_0x45fd91);return _0x42743a[_0x754d70(0x121)](),this[_0x754d70(0xb6)][_0x754d70(0x151)](_0x446917,_0x42743a),_0x42743a;}},exports[_0x4c0162(0x18b)]=P([S(0x0,o[_0x4c0162(0x107)]),S(0x1,o[_0x4c0162(0xcf)](o[_0x4c0162(0x17b)])),S(0x2,o[_0x4c0162(0xcf)](b['CollaborationSessionService']))],exports[_0x4c0162(0x18b)]);var u=(_0x2f1870=>(_0x2f1870[_0x4c0162(0x16e)]=_0x4c0162(0x131),_0x2f1870['IDLE']=_0x4c0162(0xc6),_0x2f1870['FOLLOWING']=_0x4c0162(0x18a),_0x2f1870['NOT_FOLLOWING']='not-following',_0x2f1870['PRESENTING']=_0x4c0162(0x108),_0x2f1870))(u||{});const k=_0x4c0162(0x10c),q=0xc8;exports[_0x4c0162(0x167)]=class extends o[_0x4c0162(0x181)]{constructor(_0x29ea86,_0x104b1a,_0x2a4994,_0x4f2924,_0x29616a){const _0x1dc708=_0x4c0162;super(),_(this,_0x1dc708(0x143),new O[(_0x1dc708(0x18d))](_0x1dc708(0xc6))),_(this,_0x1dc708(0x17a),this[_0x1dc708(0x143)][_0x1dc708(0x141)]()),_(this,_0x1dc708(0x164),!0x1),_(this,_0x1dc708(0x133),null),_(this,_0x1dc708(0xd5),null),(this['_unitID']=_0x29ea86,this[_0x1dc708(0x100)]=_0x104b1a,this[_0x1dc708(0x135)]=_0x2a4994,this['_liveShareService']=_0x4f2924,this[_0x1dc708(0xd0)]=_0x29616a);}get[_0x4c0162(0xca)](){const _0x17d742=_0x4c0162;return this[_0x17d742(0x143)]['getValue']();}[_0x4c0162(0xf5)](){const _0x169a20=_0x4c0162;var _0x1b4f8b;(_0x1b4f8b=this[_0x169a20(0x133)])==null||_0x1b4f8b[_0x169a20(0xf5)](),this[_0x169a20(0x143)][_0x169a20(0xc9)](_0x169a20(0xc6)),this[_0x169a20(0x143)]['complete']();}[_0x4c0162(0x192)](){return this['_status'];}[_0x4c0162(0x121)](){const _0x2c5d11=_0x4c0162;this['_init']||(this[_0x2c5d11(0x164)]=!0x0,this[_0x2c5d11(0x100)][_0x2c5d11(0xe5)][_0x2c5d11(0x17c)](I[_0x2c5d11(0x154)](this[_0x2c5d11(0xdc)]))[_0x2c5d11(0x179)](_0x5d9900=>{const _0x2fc857=_0x2c5d11;switch(_0x5d9900){case b[_0x2fc857(0x16b)]['OFFLINE']:this['_handleOffline']();break;case b[_0x2fc857(0x16b)]['ONLINE']:this['_handleOnline']();break;}}),this[_0x2c5d11(0x100)][_0x2c5d11(0xc2)][_0x2c5d11(0x17c)](I[_0x2c5d11(0x154)](this[_0x2c5d11(0xdc)]))[_0x2c5d11(0x179)](_0x206628=>{const _0x326839=_0x2c5d11,{eventID:_0x3061ea}=_0x206628;switch(_0x3061ea){case d[_0x326839(0xeb)][_0x326839(0xbc)]:this[_0x326839(0x182)](_0x206628);break;case d['CollaborationEvent'][_0x326839(0x104)]:this[_0x326839(0x15b)](_0x206628);break;case d[_0x326839(0xeb)]['LIVESHARE_TERMINATE']:this[_0x326839(0x153)]();break;case d['CollaborationEvent'][_0x326839(0xfc)]:this[_0x326839(0xc8)](_0x206628);break;}}));}['tryStartPresenting'](){const _0x4a2726=_0x4c0162;this[_0x4a2726(0x100)]['send']({'eventID':d['CollaborationEvent'][_0x4a2726(0x175)],'data':{'unitID':this[_0x4a2726(0x118)],'userID':this['_collabSession'][_0x4a2726(0x178)]()}},this[_0x4a2726(0x118)]);}[_0x4c0162(0xf3)](){const _0x538cf2=_0x4c0162;this[_0x538cf2(0xca)]==='presenting'&&(this[_0x538cf2(0x143)][_0x538cf2(0xc9)](_0x538cf2(0xc6)),this[_0x538cf2(0x100)][_0x538cf2(0xe0)]({'eventID':d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x538cf2(0x118)]));}['startFollowing'](){const _0x10d8a3=_0x4c0162;this[_0x10d8a3(0xca)]===_0x10d8a3(0x114)&&(this[_0x10d8a3(0x143)][_0x10d8a3(0xc9)](_0x10d8a3(0x18a)),this[_0x10d8a3(0x185)]());}[_0x4c0162(0xe8)](){const _0x733c33=_0x4c0162;this[_0x733c33(0xca)]===_0x733c33(0x18a)&&this[_0x733c33(0xd2)]();}['_handleNewHost'](_0x35f720){const _0x4afbc9=_0x4c0162,{presenter:_0xf5851b}=_0x35f720[_0x4afbc9(0x125)],_0x2e9b5f=this['_collabSession']['getMemberID']();this[_0x4afbc9(0xd5)]=_0xf5851b,_0xf5851b===_0x2e9b5f?(this[_0x4afbc9(0xd2)](),this[_0x4afbc9(0x16f)]()):this[_0x4afbc9(0xca)]!==_0x4afbc9(0x114)&&(this[_0x4afbc9(0xf8)](),this[_0x4afbc9(0x185)]());}['_fetchOperations'](){const _0x154872=_0x4c0162,_0x4cb97c={'eventID':d[_0x154872(0xeb)][_0x154872(0x126)]};this[_0x154872(0x100)][_0x154872(0xe0)](_0x4cb97c,this[_0x154872(0x118)]);}[_0x4c0162(0x153)](){const _0x5bf930=_0x4c0162;this[_0x5bf930(0xd5)]=null,this[_0x5bf930(0xca)]!==_0x5bf930(0x108)&&this[_0x5bf930(0x109)]();}[_0x4c0162(0xc8)](_0x324164){const _0x56255e=_0x4c0162;if(this[_0x56255e(0xca)]===_0x56255e(0x18a)&&this[_0x56255e(0xd5)]===_0x324164[_0x56255e(0x125)][_0x56255e(0xb7)]){const _0x314824=d[_0x56255e(0x163)](_0x324164[_0x56255e(0x125)])[_0x56255e(0xce)][_0x56255e(0x12c)]()[_0x56255e(0x122)](_0x40ca29=>_0x40ca29['id']===C['InsertSheetMutation']['id']);if(_0x314824){const _0x58f882=_0x314824['params']['unitId'],_0x1d5829=_0x314824['params'][_0x56255e(0xf0)]['id'];setTimeout(()=>{const _0x341847=_0x56255e;this[_0x341847(0xd0)][_0x341847(0xba)](C[_0x341847(0x152)]['id'],{'unitId':_0x58f882,'subUnitId':_0x1d5829},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x15db28=_0x4c0162;this[_0x15db28(0x143)][_0x15db28(0xc9)](_0x15db28(0x108));const _0x33e24b=new Map(),_0x192fed=this[_0x15db28(0x133)]=new o[(_0x15db28(0x144))]();_0x192fed[_0x15db28(0x106)](o['toDisposable'](()=>{const _0x332914=_0x15db28;_0x33e24b[_0x332914(0xfa)](_0x3018f6=>_0x3018f6[_0x332914(0x11c)]()),_0x33e24b[_0x332914(0x184)]();})),_0x192fed['add'](this[_0x15db28(0xd0)][_0x15db28(0x17f)](_0x4ccb0f=>{const _0x2a7869=_0x15db28;var _0x5a9978;if(_0x4ccb0f[_0x2a7869(0x191)]!==o[_0x2a7869(0x16a)]['OPERATION']||!this[_0x2a7869(0x156)][_0x2a7869(0x169)](_0x4ccb0f['id']))return;const {id:_0x3c6c6c}=_0x4ccb0f;let _0x15a881;_0x33e24b[_0x2a7869(0x183)](_0x3c6c6c)?_0x15a881=_0x33e24b[_0x2a7869(0xc5)](_0x3c6c6c):(_0x15a881=new O['Subject'](),_0x33e24b['set'](_0x3c6c6c,_0x15a881),_0x15a881['pipe'](I[_0x2a7869(0x113)]((_0x5a9978=this[_0x2a7869(0x135)][_0x2a7869(0xcd)](k))!=null?_0x5a9978:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2a7869(0x179)](_0x1d6ece=>{const _0x2272fd=_0x2a7869;this[_0x2272fd(0x100)][_0x2272fd(0xe0)]({'eventID':d[_0x2272fd(0xeb)][_0x2272fd(0x104)],'data':{'unitID':this['_unitID'],'operations':{[_0x1d6ece['id']]:{'id':_0x1d6ece['id'],'params':JSON[_0x2272fd(0x15d)](_0x1d6ece[_0x2272fd(0xb5)])}}}},this[_0x2272fd(0x118)]);})),_0x15a881[_0x2a7869(0xc9)](_0x4ccb0f);})),this[_0x15db28(0x156)][_0x15db28(0xc4)](this[_0x15db28(0x118)])[_0x15db28(0xfa)](_0xe81ae3=>this['_collabSession'][_0x15db28(0xe0)]({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x15db28(0x118)],'operations':{[_0xe81ae3['id']]:{'id':_0xe81ae3['id'],'params':JSON['stringify'](_0xe81ae3[_0x15db28(0xb5)])}}}},this[_0x15db28(0x118)]));}[_0x4c0162(0xf8)](){const _0x239132=_0x4c0162;var _0x4c3793;this['_status$'][_0x239132(0xc9)](_0x239132(0xc6)),(_0x4c3793=this[_0x239132(0x133)])==null||_0x4c3793[_0x239132(0xf5)](),this[_0x239132(0x133)]=null;}['_startFollowing'](){const _0x2fe660=_0x4c0162;var _0x447957;(_0x447957=this['_commandDisposable'])==null||_0x447957[_0x2fe660(0xf5)](),this[_0x2fe660(0x143)][_0x2fe660(0xc9)](_0x2fe660(0x18a));}[_0x4c0162(0x109)](){const _0x49add4=_0x4c0162;var _0x51659f;this[_0x49add4(0x143)]['next'](_0x49add4(0xc6)),(_0x51659f=this[_0x49add4(0x133)])==null||_0x51659f['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x1bb377=_0x4c0162;var _0x527c13;this[_0x1bb377(0x143)]['next'](_0x1bb377(0x114)),(_0x527c13=this[_0x1bb377(0x133)])==null||_0x527c13['dispose']();}[_0x4c0162(0x15b)](_0xa27a64){const _0x2bb1ee=_0x4c0162;if(['presenting',_0x2bb1ee(0x114),_0x2bb1ee(0x131)]['includes'](this[_0x2bb1ee(0xca)])||!_0xa27a64[_0x2bb1ee(0x125)][_0x2bb1ee(0x12b)]||_0xa27a64[_0x2bb1ee(0x125)][_0x2bb1ee(0x12b)]===this[_0x2bb1ee(0x100)][_0x2bb1ee(0x178)]())return;this[_0x2bb1ee(0xca)]===_0x2bb1ee(0xc6)&&this[_0x2bb1ee(0x185)]();const _0x12744e=_0xa27a64[_0x2bb1ee(0x125)][_0x2bb1ee(0x18f)];Object[_0x2bb1ee(0xd7)](_0x12744e)[_0x2bb1ee(0xfa)](_0x5911ae=>{const _0x41da01=_0x2bb1ee;this[_0x41da01(0xd0)][_0x41da01(0xba)](_0x5911ae['id'],_0x5911ae[_0x41da01(0xb5)]?JSON[_0x41da01(0x16c)](_0x5911ae[_0x41da01(0xb5)]):null,{'fromCollab':!0x0});});}[_0x4c0162(0xb3)](){const _0x461195=_0x4c0162;var _0x34c1d9;this[_0x461195(0x143)]['next'](_0x461195(0x131)),(_0x34c1d9=this['_commandDisposable'])==null||_0x34c1d9[_0x461195(0xf5)]();}[_0x4c0162(0xb2)](){const _0x2e500a=_0x4c0162;this[_0x2e500a(0x143)][_0x2e500a(0xc9)]('idle'),this[_0x2e500a(0xc3)]();}},exports[_0x4c0162(0x167)]=P([S(0x2,o[_0x4c0162(0xd4)]),S(0x3,o[_0x4c0162(0xcf)](E)),S(0x4,o[_0x4c0162(0x142)])],exports[_0x4c0162(0x167)]);function $(){const _0x2e5216=_0x4c0162,_0xc25e84=p[_0x2e5216(0x147)](exports[_0x2e5216(0x18b)]),_0x3bbc1d=p[_0x2e5216(0x147)](o['IUniverInstanceService']),_0x24c836=p['useObservable'](()=>_0x3bbc1d[_0x2e5216(0xc1)](o[_0x2e5216(0x186)][_0x2e5216(0xf7)]),void 0x0,!0x1,[]),[_0x155115,_0x5113e2]=v[_0x2e5216(0x176)](null),[_0x27c0a2,_0x11abd4]=v[_0x2e5216(0x176)](u[_0x2e5216(0x187)]),_0x44cf01=v[_0x2e5216(0xe1)](null);return v[_0x2e5216(0x10a)](()=>(_0x24c836&&_0xc25e84[_0x2e5216(0xd8)](_0x24c836[_0x2e5216(0x18e)]())[_0x2e5216(0x17d)](_0x532b4c=>{const _0x21c506=_0x2e5216;_0x5113e2(_0x532b4c),_0x44cf01[_0x21c506(0x12a)]=_0x532b4c[_0x21c506(0x17a)][_0x21c506(0x179)](_0x181886=>{_0x11abd4(_0x181886);});}),()=>{const _0x487c9d=_0x2e5216;var _0x2cbeed;(_0x2cbeed=_0x44cf01[_0x487c9d(0x12a)])==null||_0x2cbeed[_0x487c9d(0xfb)](),_0x44cf01[_0x487c9d(0x12a)]=null;}),[_0x24c836,_0xc25e84]),_0x155115?l[_0x2e5216(0x16d)](f[_0x2e5216(0x160)],{'align':'end','disabled':_0x27c0a2===u[_0x2e5216(0x16e)],'className':_0x2e5216(0x162),'overlay':l[_0x2e5216(0x16d)](W,{'status':_0x27c0a2,'coordinator':_0x155115}),'children':l[_0x2e5216(0x16d)](_0x2e5216(0x102),{'className':f[_0x2e5216(0x159)](_0x2e5216(0x14b),{'univer-cursor-not-allowed':_0x27c0a2===u[_0x2e5216(0x16e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x27c0a2!==u[_0x2e5216(0x16e)]}),'type':'button','children':l[_0x2e5216(0x16d)](R,{'className':'univer-size-4'})})}):null;}function W(_0xc4ad6f){const _0x530a2d=_0x4c0162,{status:_0x33b345,coordinator:_0x315caa}=_0xc4ad6f;switch(_0x33b345){case u['IDLE']:return l[_0x530a2d(0x16d)](G,{'coordinator':_0x315caa});case u[_0x530a2d(0xb4)]:return l[_0x530a2d(0x16d)](B,{'coordinator':_0x315caa});case u[_0x530a2d(0xda)]:return l[_0x530a2d(0x16d)](Y,{'coordinator':_0x315caa});case u[_0x530a2d(0x16e)]:return l[_0x530a2d(0x16d)](J,{});case u[_0x530a2d(0x177)]:return l[_0x530a2d(0x16d)](Z,{'coordinator':_0x315caa});default:return null;}}function G(_0x321e4a){const _0x8552bc=_0x4c0162,{coordinator:_0x56402f}=_0x321e4a;return l[_0x8552bc(0xd3)](l[_0x8552bc(0xb1)],{'children':[l['jsx']('div',{'className':_0x8552bc(0x14f),'children':_0x8552bc(0x111)}),l[_0x8552bc(0x16d)](f['Button'],{'onClick':()=>_0x56402f['tryStartPresenting'](),'children':_0x8552bc(0xe3)})]});}function B(_0x1ac1f9){const _0x4a4d3b=_0x4c0162,{coordinator:_0x449e54}=_0x1ac1f9;return l[_0x4a4d3b(0xd3)](l['Fragment'],{'children':[l[_0x4a4d3b(0x16d)](_0x4a4d3b(0x13b),{'className':_0x4a4d3b(0x14f),'children':_0x4a4d3b(0x171)}),l[_0x4a4d3b(0x16d)](f[_0x4a4d3b(0x11a)],{'onClick':()=>_0x449e54[_0x4a4d3b(0xe8)](),'children':_0x4a4d3b(0x146)})]});}function Y(_0x1d50d0){const _0x21f310=_0x4c0162,{coordinator:_0x13008a}=_0x1d50d0;return l['jsxs'](l[_0x21f310(0xb1)],{'children':[l[_0x21f310(0x16d)](_0x21f310(0x13b),{'className':_0x21f310(0x14f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x21f310(0x16d)](f['Button'],{'variant':'text','onClick':()=>_0x13008a[_0x21f310(0x148)](),'children':_0x21f310(0x190)})]});}function Z(_0x12a8c7){const _0x49a4d9=_0x4c0162,{coordinator:_0x54e1cc}=_0x12a8c7;return l[_0x49a4d9(0xd3)](l[_0x49a4d9(0xb1)],{'children':[l[_0x49a4d9(0x16d)](_0x49a4d9(0x13b),{'className':_0x49a4d9(0x14f),'children':_0x49a4d9(0xcc)}),l['jsx'](f[_0x49a4d9(0x11a)],{'variant':_0x49a4d9(0x14e),'onClick':()=>_0x54e1cc[_0x49a4d9(0xf3)](),'children':_0x49a4d9(0xef)})]});}function J(){const _0x24c982=_0x4c0162;return l[_0x24c982(0x16d)](l[_0x24c982(0xb1)],{'children':_0x24c982(0x188)});}var K=Object[_0x4c0162(0x170)],z=(_0x59b8f5,_0x4356b7,_0x48f923,_0x4c78ef)=>{const _0xccfcbf=_0x4c0162;for(var _0x2ce4a2=_0x4c78ef>0x1?void 0x0:_0x4c78ef?K(_0x4356b7,_0x48f923):_0x4356b7,_0x7cf666=_0x59b8f5[_0xccfcbf(0xf9)]-0x1,_0x2b8ab5;_0x7cf666>=0x0;_0x7cf666--)(_0x2b8ab5=_0x59b8f5[_0x7cf666])&&(_0x2ce4a2=_0x2b8ab5(_0x2ce4a2)||_0x2ce4a2);return _0x2ce4a2;},L=(_0x425e39,_0x46edb9)=>(_0x1445d9,_0x469098)=>_0x46edb9(_0x1445d9,_0x469098,_0x425e39);exports[_0x4c0162(0x119)]=class extends o['Disposable']{constructor(_0x4e40a5,_0x5f51b3){const _0xe71c1b=_0x4c0162;super(),this[_0xe71c1b(0x132)]=_0x4e40a5,this[_0xe71c1b(0x149)]=_0x5f51b3,this['_mountLiveShare']();}[_0x4c0162(0x10f)](){const _0x449306=_0x4c0162;this[_0x449306(0x172)](this[_0x449306(0x149)][_0x449306(0xe4)](p[_0x449306(0xdb)]['HEADER_MENU'],()=>p[_0x449306(0xbe)]($,this[_0x449306(0x132)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x4c0162(0xcf)](o[_0x4c0162(0x17b)])),L(0x1,p[_0x4c0162(0x14a)])],exports[_0x4c0162(0x119)]);const Q=_0x4c0162(0xb9),w={};function _0xf66b(_0xcb26c,_0x172666){_0xcb26c=_0xcb26c-0xb1;const _0x26863b=_0x2686();let _0xf66bbb=_0x26863b[_0xcb26c];return _0xf66bbb;}var X=Object['getOwnPropertyDescriptor'],ee=(_0x386f1a,_0x365b74,_0x3b3076,_0x571e8d)=>{const _0x2bb21c=_0x4c0162;for(var _0x4e57a6=_0x571e8d>0x1?void 0x0:_0x571e8d?X(_0x365b74,_0x3b3076):_0x365b74,_0x326d34=_0x386f1a[_0x2bb21c(0xf9)]-0x1,_0x19a9b0;_0x326d34>=0x0;_0x326d34--)(_0x19a9b0=_0x386f1a[_0x326d34])&&(_0x4e57a6=_0x19a9b0(_0x4e57a6)||_0x4e57a6);return _0x4e57a6;},te=(_0xc3b167,_0x3e4afe)=>(_0x1a0b39,_0x1f9669)=>_0x3e4afe(_0x1a0b39,_0x1f9669,_0xc3b167);let m=class extends o[_0x4c0162(0xee)]{constructor(_0x4cc9c0){const _0x2be7b=_0x4c0162;super(),this[_0x2be7b(0x156)]=_0x4cc9c0,this[_0x2be7b(0x164)]();}['_init'](){const _0x1a0aa6=_0x4c0162;[D[_0x1a0aa6(0xbd)]['id'],D[_0x1a0aa6(0x129)]['id'],C['SetWorksheetActiveOperation']['id']][_0x1a0aa6(0xfa)](_0xa41494=>{const _0x165f6d=_0x1a0aa6;this[_0x165f6d(0x172)](this[_0x165f6d(0x156)]['registerSharedOperation'](_0xa41494));});}};m=ee([te(0x0,o[_0x4c0162(0xcf)](E))],m);var ie=Object[_0x4c0162(0xbf)],se=Object[_0x4c0162(0x170)],ne=(_0x2245e3,_0x34e4c8,_0x42e291)=>_0x34e4c8 in _0x2245e3?ie(_0x2245e3,_0x34e4c8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42e291}):_0x2245e3[_0x34e4c8]=_0x42e291,re=(_0x178ff3,_0x27e916,_0xfcabd0,_0x4b164f)=>{const _0x25870c=_0x4c0162;for(var _0x545fdb=_0x4b164f>0x1?void 0x0:_0x4b164f?se(_0x27e916,_0xfcabd0):_0x27e916,_0x4f43c8=_0x178ff3[_0x25870c(0xf9)]-0x1,_0xc8ba51;_0x4f43c8>=0x0;_0x4f43c8--)(_0xc8ba51=_0x178ff3[_0x4f43c8])&&(_0x545fdb=_0xc8ba51(_0x545fdb)||_0x545fdb);return _0x545fdb;},N=(_0x40383a,_0x2ae114)=>(_0x24cc54,_0x36f120)=>_0x2ae114(_0x24cc54,_0x36f120,_0x40383a),A=(_0x20dec4,_0x162dac,_0x36fa77)=>ne(_0x20dec4,typeof _0x162dac!=_0x4c0162(0x117)?_0x162dac+'':_0x162dac,_0x36fa77);const oe=_0x4c0162(0x127);exports[_0x4c0162(0xcb)]=class extends o[_0x4c0162(0xff)]{constructor(_0x5ae5ae=w,_0x3ef4a6,_0x1799c4){const _0x225078=_0x4c0162;super(),this['_config']=_0x5ae5ae,this[_0x225078(0x132)]=_0x3ef4a6,this[_0x225078(0x135)]=_0x1799c4;const {..._0x2b91c8}=o[_0x225078(0xd9)]({},w,this[_0x225078(0x13e)]);this[_0x225078(0x135)][_0x225078(0x136)](Q,_0x2b91c8);}['onStarting'](){const _0xfb1673=_0x4c0162;o[_0xfb1673(0x139)](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports['LiveShareController']],[m],[exports['DesktopLiveShareController']]],this[_0xfb1673(0x13e)][_0xfb1673(0x180)])),o[_0xfb1673(0xf2)](this[_0xfb1673(0x132)],[[m]]);}[_0x4c0162(0x168)](){const _0x5ae4de=_0x4c0162;o['touchDependencies'](this[_0x5ae4de(0x132)],[[exports[_0x5ae4de(0x119)]]]);}},A(exports[_0x4c0162(0xcb)],'type',o[_0x4c0162(0x186)][_0x4c0162(0x10e)]),A(exports[_0x4c0162(0xcb)],_0x4c0162(0xc7),oe),exports[_0x4c0162(0xcb)]=re([o[_0x4c0162(0x10d)](b[_0x4c0162(0x165)]),N(0x1,o[_0x4c0162(0xcf)](o['Injector'])),N(0x2,o[_0x4c0162(0xd4)])],exports['UniverLiveSharePlugin']),exports[_0x4c0162(0x10b)]=$,exports[_0x4c0162(0x173)]=E,exports[_0x4c0162(0x12f)]=u;
|
|
1
|
+
'use strict';const _0x1d9ea9=_0x139a;function _0x139a(_0x1f4d30,_0x56bfec){_0x1f4d30=_0x1f4d30-0x130;const _0x404a2a=_0x404a();let _0x139a5e=_0x404a2a[_0x1f4d30];return _0x139a5e;}(function(_0x4e002d,_0x4ae108){const _0xd9a285=_0x139a,_0x2ea1d1=_0x4e002d();while(!![]){try{const _0x53311e=-parseInt(_0xd9a285(0x17b))/0x1*(parseInt(_0xd9a285(0x1b3))/0x2)+parseInt(_0xd9a285(0x168))/0x3*(parseInt(_0xd9a285(0x1fe))/0x4)+-parseInt(_0xd9a285(0x1c5))/0x5*(parseInt(_0xd9a285(0x1f6))/0x6)+-parseInt(_0xd9a285(0x1b1))/0x7+-parseInt(_0xd9a285(0x1d6))/0x8+parseInt(_0xd9a285(0x16f))/0x9*(parseInt(_0xd9a285(0x1d4))/0xa)+parseInt(_0xd9a285(0x14a))/0xb*(parseInt(_0xd9a285(0x1c7))/0xc);if(_0x53311e===_0x4ae108)break;else _0x2ea1d1['push'](_0x2ea1d1['shift']());}catch(_0x2d17bf){_0x2ea1d1['push'](_0x2ea1d1['shift']());}}}(_0x404a,0x4983f));var T=Object[_0x1d9ea9(0x1d8)],U=(_0x803bd1,_0x374a56,_0x26a156)=>_0x374a56 in _0x803bd1?T(_0x803bd1,_0x374a56,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26a156}):_0x803bd1[_0x374a56]=_0x26a156,_=(_0x27bceb,_0x352a5b,_0x560837)=>U(_0x27bceb,typeof _0x352a5b!=_0x1d9ea9(0x205)?_0x352a5b+'':_0x352a5b,_0x560837);Object['defineProperty'](exports,Symbol[_0x1d9ea9(0x130)],{'value':'Module'});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:_0x1783df,..._0x5d601f}){const _0x29d143=_0x1d9ea9,{icon:_0x29a573,id:_0x3abc1a,className:_0x1cafbe,extend:_0x104f19,..._0x2e655a}=_0x5d601f,_0x218ffd=(_0x29d143(0x1ca)+_0x3abc1a+'\x20'+(_0x1cafbe||''))[_0x29d143(0x176)](),_0x15db80=v[_0x29d143(0x16d)]('_'+H());return j(_0x29a573,''+_0x3abc1a,{'defIds':_0x29a573[_0x29d143(0x1d1)],'idSuffix':_0x15db80[_0x29d143(0x1c6)]},{'ref':_0x1783df,'className':_0x218ffd,..._0x2e655a},_0x104f19);}function j(_0x372226,_0x1e0919,_0x1c0c62,_0x1f3495,_0x4cb9e5){const _0x32515c=_0x1d9ea9;return v[_0x32515c(0x1b2)](_0x372226[_0x32515c(0x13a)],{'key':_0x1e0919,...y(_0x372226,_0x1c0c62,_0x4cb9e5),..._0x1f3495},(F(_0x372226,_0x1c0c62)[_0x32515c(0x17a)]||[])[_0x32515c(0x1a1)]((_0x55f5fc,_0x1fba43)=>j(_0x55f5fc,_0x1e0919+'-'+_0x372226['tag']+'-'+_0x1fba43,_0x1c0c62,void 0x0,_0x4cb9e5)));}function y(_0x16e35f,_0x457de9,_0x471fbe){const _0x1946a8=_0x1d9ea9,_0x181eaa={..._0x16e35f[_0x1946a8(0x1c0)]};_0x471fbe!=null&&_0x471fbe[_0x1946a8(0x156)]&&_0x181eaa[_0x1946a8(0x186)]===_0x1946a8(0x156)&&(_0x181eaa['fill']=_0x471fbe[_0x1946a8(0x156)]),_0x16e35f[_0x1946a8(0x13a)]===_0x1946a8(0x1e2)&&_0x181eaa['id']&&(_0x181eaa['id']=_0x181eaa['id']+_0x457de9[_0x1946a8(0x1e0)]),Object['entries'](_0x181eaa)[_0x1946a8(0x207)](([_0x45e4fe,_0x42f3f4])=>{const _0xe109c9=_0x1946a8;_0x45e4fe==='mask'&&typeof _0x42f3f4==_0xe109c9(0x138)&&(_0x181eaa[_0x45e4fe]=_0x42f3f4[_0xe109c9(0x1da)](/url\(#(.*)\)/,_0xe109c9(0x1eb)+_0x457de9[_0xe109c9(0x1e0)]+')'));});const {defIds:_0x5c3bff}=_0x457de9;return!_0x5c3bff||_0x5c3bff[_0x1946a8(0x1e9)]===0x0||(_0x16e35f[_0x1946a8(0x13a)]==='use'&&_0x181eaa[_0x1946a8(0x1a8)]&&(_0x181eaa[_0x1946a8(0x1a8)]=_0x181eaa[_0x1946a8(0x1a8)]+_0x457de9[_0x1946a8(0x1e0)]),Object['entries'](_0x181eaa)[_0x1946a8(0x207)](([_0x40bd17,_0x391cab])=>{const _0xcbfc64=_0x1946a8;typeof _0x391cab==_0xcbfc64(0x138)&&(_0x181eaa[_0x40bd17]=_0x391cab[_0xcbfc64(0x1da)](/url\(#(.*)\)/,_0xcbfc64(0x1eb)+_0x457de9[_0xcbfc64(0x1e0)]+')'));})),_0x181eaa;}function F(_0x957d31,_0x243eb7){const _0x54a575=_0x1d9ea9;var _0x15b2fd;const {defIds:_0x56cf85}=_0x243eb7;return!_0x56cf85||_0x56cf85[_0x54a575(0x1e9)]===0x0?_0x957d31:_0x957d31[_0x54a575(0x13a)]===_0x54a575(0x1e3)&&((_0x15b2fd=_0x957d31[_0x54a575(0x17a)])!=null&&_0x15b2fd[_0x54a575(0x1e9)])?{..._0x957d31,'children':_0x957d31['children']['map'](_0x1391ca=>typeof _0x1391ca['attrs']['id']==_0x54a575(0x138)&&_0x56cf85&&_0x56cf85[_0x54a575(0x14f)](_0x1391ca[_0x54a575(0x1c0)]['id'])?{..._0x1391ca,'attrs':{..._0x1391ca[_0x54a575(0x1c0)],'id':_0x1391ca[_0x54a575(0x1c0)]['id']+_0x243eb7[_0x54a575(0x1e0)]}}:_0x1391ca)}:_0x957d31;}function H(){const _0x1a2c1f=_0x1d9ea9;return Math['random']()[_0x1a2c1f(0x174)](0x24)['substring'](0x2,0x8);}x[_0x1d9ea9(0x1a4)]=_0x1d9ea9(0x155);const V={'tag':'svg','attrs':{'xmlns':_0x1d9ea9(0x173),'fill':_0x1d9ea9(0x149),'viewBox':_0x1d9ea9(0x14d),'width':_0x1d9ea9(0x151),'height':'1em'},'children':[{'tag':_0x1d9ea9(0x163),'attrs':{'fill':_0x1d9ea9(0x18f),'d':_0x1d9ea9(0x146)}},{'tag':_0x1d9ea9(0x163),'attrs':{'fill':_0x1d9ea9(0x18f),'d':_0x1d9ea9(0x1e6),'fillRule':_0x1d9ea9(0x206),'clipRule':_0x1d9ea9(0x206)}}]},R=v[_0x1d9ea9(0x161)](function(_0x11ac3f,_0x4a62c2){const _0x2e8c2e=_0x1d9ea9;return v[_0x2e8c2e(0x1b2)](x,Object[_0x2e8c2e(0x15d)]({},_0x11ac3f,{'id':_0x2e8c2e(0x1c8),'ref':_0x4a62c2,'icon':V}));});R[_0x1d9ea9(0x1a4)]=_0x1d9ea9(0x15a);class E extends o[_0x1d9ea9(0x183)]{constructor(){const _0xf4510c=_0x1d9ea9;super(...arguments),_(this,_0xf4510c(0x1ac),new Set()),_(this,_0xf4510c(0x1cb),new Set());}['registerSharedOperation'](_0x16ebf6){const _0x4e3054=_0x1d9ea9;return this[_0x4e3054(0x1ac)][_0x4e3054(0x1d0)](_0x16ebf6),o[_0x4e3054(0x18b)](()=>this['_sharedOperations'][_0x4e3054(0x1d9)](_0x16ebf6));}[_0x1d9ea9(0x142)](_0xcb8417){const _0x4f586f=_0x1d9ea9;return this[_0x4f586f(0x1cb)][_0x4f586f(0x1d0)](_0xcb8417),o[_0x4f586f(0x18b)](()=>this[_0x4f586f(0x1cb)][_0x4f586f(0x1d9)](_0xcb8417));}[_0x1d9ea9(0x1bf)](_0x32a02c){const _0x4d2836=_0x1d9ea9;return this[_0x4d2836(0x1ac)][_0x4d2836(0x157)](_0x32a02c);}['getInitialStates'](_0x5c1c5e){const _0x1ec02d=_0x1d9ea9;return Array[_0x1ec02d(0x13c)](this[_0x1ec02d(0x1cb)])['map'](_0x3ecf36=>_0x3ecf36(_0x5c1c5e));}}var M=Object[_0x1d9ea9(0x162)],P=(_0x41558e,_0x3be231,_0x3e4d23,_0x3ea0e3)=>{const _0x23877e=_0x1d9ea9;for(var _0x1b1837=_0x3ea0e3>0x1?void 0x0:_0x3ea0e3?M(_0x3be231,_0x3e4d23):_0x3be231,_0x1a9e83=_0x41558e[_0x23877e(0x1e9)]-0x1,_0x131919;_0x1a9e83>=0x0;_0x1a9e83--)(_0x131919=_0x41558e[_0x1a9e83])&&(_0x1b1837=_0x131919(_0x1b1837)||_0x1b1837);return _0x1b1837;},S=(_0x2d8817,_0x5bc823)=>(_0xf20d72,_0x2786b4)=>_0x5bc823(_0xf20d72,_0x2786b4,_0x2d8817);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0xdab5e1,_0xd36f7a,_0x1a3cde){const _0x403018=_0x1d9ea9;super(),_(this,'_entities',new Map()),(this[_0x403018(0x154)]=_0xdab5e1,this[_0x403018(0x1b6)]=_0xd36f7a,this[_0x403018(0x172)]=_0x1a3cde,this[_0x403018(0x1ee)]());}async[_0x1d9ea9(0x20b)](_0x421e77){const _0x22519e=_0x1d9ea9;return this[_0x22519e(0x1dd)][_0x22519e(0x157)](_0x421e77)||await this['_startLiveShareCoordinator'](_0x421e77),this[_0x22519e(0x1dd)][_0x22519e(0x170)](_0x421e77);}['getLiveShareCoordinatorSync'](_0x27d6cd){const _0x2be595=_0x1d9ea9;var _0x32da45;return(_0x32da45=this[_0x2be595(0x1dd)]['get'](_0x27d6cd))!=null?_0x32da45:null;}[_0x1d9ea9(0x1ee)](){const _0x402d9a=_0x1d9ea9;this['_univerInstanceService'][_0x402d9a(0x18e)](o[_0x402d9a(0x188)]['UNIVER_SHEET'])[_0x402d9a(0x197)](I[_0x402d9a(0x1dc)](this['dispose$']))[_0x402d9a(0x1f3)](async _0x3ee5e0=>{const _0x55c5f0=_0x402d9a,_0x2a166f=_0x3ee5e0[_0x55c5f0(0x1db)]();this['_entities'][_0x55c5f0(0x157)](_0x2a166f)||this['_startLiveShareCoordinator'](_0x2a166f);}),this[_0x402d9a(0x154)][_0x402d9a(0x1ec)](o[_0x402d9a(0x188)][_0x402d9a(0x148)])[_0x402d9a(0x197)](I[_0x402d9a(0x1dc)](this[_0x402d9a(0x132)]))[_0x402d9a(0x1f3)](_0x553cb9=>{const _0x36b386=_0x402d9a,_0x1c510f=_0x553cb9[_0x36b386(0x1db)](),_0x500b31=this[_0x36b386(0x1dd)][_0x36b386(0x170)](_0x1c510f);_0x500b31==null||_0x500b31[_0x36b386(0x1f8)]();});}async['_startLiveShareCoordinator'](_0x5c14b5){const _0x4d745b=_0x1d9ea9,_0x148d83=await this['_collabSessionService'][_0x4d745b(0x1bc)](_0x5c14b5),_0x2f4b9=this[_0x4d745b(0x1b6)]['createInstance'](exports[_0x4d745b(0x18a)],_0x5c14b5,_0x148d83);return _0x2f4b9[_0x4d745b(0x164)](),this[_0x4d745b(0x1dd)][_0x4d745b(0x1f7)](_0x5c14b5,_0x2f4b9),_0x2f4b9;}},exports['LiveShareController']=P([S(0x0,o[_0x1d9ea9(0x15c)]),S(0x1,o[_0x1d9ea9(0x1d2)](o[_0x1d9ea9(0x20a)])),S(0x2,o[_0x1d9ea9(0x1d2)](b[_0x1d9ea9(0x140)]))],exports[_0x1d9ea9(0x1a9)]);var u=(_0x24d9f4=>(_0x24d9f4['OFFLINE']=_0x1d9ea9(0x13f),_0x24d9f4[_0x1d9ea9(0x152)]=_0x1d9ea9(0x141),_0x24d9f4[_0x1d9ea9(0x184)]='following',_0x24d9f4[_0x1d9ea9(0x143)]='not-following',_0x24d9f4['PRESENTING']=_0x1d9ea9(0x131),_0x24d9f4))(u||{});const k=_0x1d9ea9(0x1a0),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x1d9ea9(0x153)]{constructor(_0x23eacc,_0x68f8e0,_0x513299,_0xa9a534,_0x3d6ac9){const _0x34b660=_0x1d9ea9;super(),_(this,_0x34b660(0x196),new O[(_0x34b660(0x144))](_0x34b660(0x141))),_(this,'status$',this[_0x34b660(0x196)][_0x34b660(0x1e1)]()),_(this,_0x34b660(0x1ee),!0x1),_(this,_0x34b660(0x17d),null),_(this,'_presenter',null),(this[_0x34b660(0x190)]=_0x23eacc,this['_collabSession']=_0x68f8e0,this[_0x34b660(0x194)]=_0x513299,this[_0x34b660(0x1ce)]=_0xa9a534,this[_0x34b660(0x1bd)]=_0x3d6ac9);}get[_0x1d9ea9(0x150)](){const _0x5c583f=_0x1d9ea9;return this[_0x5c583f(0x196)][_0x5c583f(0x1f4)]();}['dispose'](){const _0x35a52f=_0x1d9ea9;var _0x2a62e6;(_0x2a62e6=this[_0x35a52f(0x17d)])==null||_0x2a62e6[_0x35a52f(0x1f8)](),this[_0x35a52f(0x196)][_0x35a52f(0x200)](_0x35a52f(0x141)),this[_0x35a52f(0x196)][_0x35a52f(0x204)]();}['getStatus'](){const _0x11450a=_0x1d9ea9;return this[_0x11450a(0x150)];}['init'](){const _0x55343b=_0x1d9ea9;this['_init']||(this[_0x55343b(0x1ee)]=!0x0,this[_0x55343b(0x13b)][_0x55343b(0x1cd)][_0x55343b(0x197)](I[_0x55343b(0x1dc)](this['dispose$']))[_0x55343b(0x1f3)](_0x246e8a=>{const _0x4ec0ad=_0x55343b;switch(_0x246e8a){case b[_0x4ec0ad(0x1d5)][_0x4ec0ad(0x177)]:this[_0x4ec0ad(0x1bb)]();break;case b[_0x4ec0ad(0x1d5)]['ONLINE']:this[_0x4ec0ad(0x203)]();break;}}),this['_collabSession']['event$'][_0x55343b(0x197)](I[_0x55343b(0x1dc)](this[_0x55343b(0x132)]))['subscribe'](_0x5c5b93=>{const _0x6a5396=_0x55343b,{eventID:_0x32e6e6}=_0x5c5b93;switch(_0x32e6e6){case d[_0x6a5396(0x187)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x5c5b93);break;case d[_0x6a5396(0x187)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x5c5b93);break;case d[_0x6a5396(0x187)][_0x6a5396(0x1e8)]:this[_0x6a5396(0x1ae)]();break;case d[_0x6a5396(0x187)][_0x6a5396(0x199)]:this['_handleNewChangeSets'](_0x5c5b93);break;}}));}['tryStartPresenting'](){const _0x3602ae=_0x1d9ea9;this[_0x3602ae(0x13b)][_0x3602ae(0x193)]({'eventID':d[_0x3602ae(0x187)][_0x3602ae(0x1e5)],'data':{'unitID':this['_unitID'],'userID':this[_0x3602ae(0x13b)][_0x3602ae(0x1c9)]()}},this[_0x3602ae(0x190)]);}[_0x1d9ea9(0x1a5)](){const _0x2fe1fb=_0x1d9ea9;this[_0x2fe1fb(0x150)]==='presenting'&&(this[_0x2fe1fb(0x196)][_0x2fe1fb(0x200)]('idle'),this[_0x2fe1fb(0x13b)][_0x2fe1fb(0x193)]({'eventID':d['CollaborationEvent'][_0x2fe1fb(0x1e8)],'data':{'unitID':this['_unitID']}},this[_0x2fe1fb(0x190)]));}['startFollowing'](){const _0x2b9622=_0x1d9ea9;this['_status']===_0x2b9622(0x1fb)&&(this['_status$']['next'](_0x2b9622(0x1e7)),this[_0x2b9622(0x133)]());}[_0x1d9ea9(0x1b9)](){const _0x1bcb11=_0x1d9ea9;this['_status']==='following'&&this[_0x1bcb11(0x18c)]();}['_handleNewHost'](_0x27e1b6){const _0x2e1cb2=_0x1d9ea9,{presenter:_0x429c2a}=_0x27e1b6[_0x2e1cb2(0x1f5)],_0x519fe8=this[_0x2e1cb2(0x13b)][_0x2e1cb2(0x1c9)]();this['_presenter']=_0x429c2a,_0x429c2a===_0x519fe8?(this[_0x2e1cb2(0x18c)](),this['_startPresenting']()):this[_0x2e1cb2(0x150)]!=='not-following'&&(this[_0x2e1cb2(0x209)](),this[_0x2e1cb2(0x133)]());}[_0x1d9ea9(0x165)](){const _0x45de6e=_0x1d9ea9,_0x145f13={'eventID':d[_0x45de6e(0x187)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x45de6e(0x13b)]['send'](_0x145f13,this['_unitID']);}[_0x1d9ea9(0x1ae)](){const _0x41b031=_0x1d9ea9;this[_0x41b031(0x1c3)]=null,this[_0x41b031(0x150)]!==_0x41b031(0x131)&&this[_0x41b031(0x1df)]();}['_handleNewChangeSets'](_0x4c889b){const _0x504432=_0x1d9ea9;if(this[_0x504432(0x150)]==='following'&&this[_0x504432(0x1c3)]===_0x4c889b['data'][_0x504432(0x139)]){const _0xd8cf6f=d['parseProtocolChangeset'](_0x4c889b['data'])[_0x504432(0x1f2)][_0x504432(0x16b)]()[_0x504432(0x1ad)](_0x3493d2=>_0x3493d2['id']===C[_0x504432(0x181)]['id']);if(_0xd8cf6f){const _0x1c1059=_0xd8cf6f['params'][_0x504432(0x1e4)],_0x544ee9=_0xd8cf6f[_0x504432(0x179)]['sheet']['id'];setTimeout(()=>{const _0x4d0c8f=_0x504432;this[_0x4d0c8f(0x1bd)][_0x4d0c8f(0x158)](C[_0x4d0c8f(0x1fa)]['id'],{'unitId':_0x1c1059,'subUnitId':_0x544ee9},{'fromCollab':!0x0});});}}}[_0x1d9ea9(0x1f9)](){const _0x2e70e9=_0x1d9ea9;this[_0x2e70e9(0x196)][_0x2e70e9(0x200)](_0x2e70e9(0x131));const _0xc58957=new Map(),_0x1da933=this['_commandDisposable']=new o['DisposableCollection']();_0x1da933[_0x2e70e9(0x1d0)](o['toDisposable'](()=>{const _0x2d3a60=_0x2e70e9;_0xc58957[_0x2d3a60(0x207)](_0x25a738=>_0x25a738[_0x2d3a60(0x204)]()),_0xc58957[_0x2d3a60(0x1ff)]();})),_0x1da933['add'](this[_0x2e70e9(0x1bd)][_0x2e70e9(0x1b5)](_0x51f2f6=>{const _0xda690b=_0x2e70e9;var _0x22131e;if(_0x51f2f6[_0xda690b(0x1af)]!==o[_0xda690b(0x13e)][_0xda690b(0x160)]||!this[_0xda690b(0x1ce)][_0xda690b(0x1bf)](_0x51f2f6['id']))return;const {id:_0x31f322}=_0x51f2f6;let _0xf9d13b;_0xc58957[_0xda690b(0x157)](_0x31f322)?_0xf9d13b=_0xc58957[_0xda690b(0x170)](_0x31f322):(_0xf9d13b=new O[(_0xda690b(0x135))](),_0xc58957[_0xda690b(0x1f7)](_0x31f322,_0xf9d13b),_0xf9d13b[_0xda690b(0x197)](I[_0xda690b(0x19a)]((_0x22131e=this['_configService'][_0xda690b(0x198)](k))!=null?_0x22131e:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xda690b(0x1f3)](_0x38fa7c=>{const _0x49446a=_0xda690b;this[_0x49446a(0x13b)][_0x49446a(0x193)]({'eventID':d[_0x49446a(0x187)][_0x49446a(0x1ea)],'data':{'unitID':this[_0x49446a(0x190)],'operations':{[_0x38fa7c['id']]:{'id':_0x38fa7c['id'],'params':JSON[_0x49446a(0x185)](_0x38fa7c[_0x49446a(0x179)])}}}},this[_0x49446a(0x190)]);})),_0xf9d13b[_0xda690b(0x200)](_0x51f2f6);})),this[_0x2e70e9(0x1ce)]['getInitialStates'](this[_0x2e70e9(0x190)])[_0x2e70e9(0x207)](_0x5f3e61=>this['_collabSession'][_0x2e70e9(0x193)]({'eventID':d[_0x2e70e9(0x187)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x5f3e61['id']]:{'id':_0x5f3e61['id'],'params':JSON[_0x2e70e9(0x185)](_0x5f3e61['params'])}}}},this[_0x2e70e9(0x190)]));}['_stopPresenting'](){const _0x5eb832=_0x1d9ea9;var _0x5b5453;this[_0x5eb832(0x196)][_0x5eb832(0x200)](_0x5eb832(0x141)),(_0x5b5453=this[_0x5eb832(0x17d)])==null||_0x5b5453['dispose'](),this[_0x5eb832(0x17d)]=null;}[_0x1d9ea9(0x133)](){const _0x18c44b=_0x1d9ea9;var _0x2e2233;(_0x2e2233=this[_0x18c44b(0x17d)])==null||_0x2e2233[_0x18c44b(0x1f8)](),this[_0x18c44b(0x196)]['next']('following');}['_beIdle'](){const _0x3e834a=_0x1d9ea9;var _0x145bc8;this[_0x3e834a(0x196)][_0x3e834a(0x200)]('idle'),(_0x145bc8=this[_0x3e834a(0x17d)])==null||_0x145bc8[_0x3e834a(0x1f8)](),this[_0x3e834a(0x17d)]=null;}[_0x1d9ea9(0x18c)](){const _0x46673a=_0x1d9ea9;var _0x2fbb67;this[_0x46673a(0x196)]['next']('not-following'),(_0x2fbb67=this[_0x46673a(0x17d)])==null||_0x2fbb67['dispose']();}[_0x1d9ea9(0x208)](_0xad75f0){const _0x59e430=_0x1d9ea9;if(['presenting',_0x59e430(0x1fb),_0x59e430(0x13f)]['includes'](this[_0x59e430(0x150)])||!_0xad75f0[_0x59e430(0x1f5)][_0x59e430(0x1a2)]||_0xad75f0['data'][_0x59e430(0x1a2)]===this[_0x59e430(0x13b)]['getMemberID']())return;this['_status']===_0x59e430(0x141)&&this[_0x59e430(0x133)]();const _0x3da69b=_0xad75f0[_0x59e430(0x1f5)][_0x59e430(0x1ab)];Object[_0x59e430(0x19b)](_0x3da69b)['forEach'](_0x2ddac4=>{const _0x3c9ab8=_0x59e430;this['_commandService'][_0x3c9ab8(0x158)](_0x2ddac4['id'],_0x2ddac4[_0x3c9ab8(0x179)]?JSON['parse'](_0x2ddac4[_0x3c9ab8(0x179)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0xb41015=_0x1d9ea9;var _0x468358;this['_status$'][_0xb41015(0x200)](_0xb41015(0x13f)),(_0x468358=this['_commandDisposable'])==null||_0x468358[_0xb41015(0x1f8)]();}[_0x1d9ea9(0x203)](){const _0x1ddb85=_0x1d9ea9;this[_0x1ddb85(0x196)]['next'](_0x1ddb85(0x141)),this[_0x1ddb85(0x165)]();}},exports[_0x1d9ea9(0x18a)]=P([S(0x2,o[_0x1d9ea9(0x15e)]),S(0x3,o[_0x1d9ea9(0x1d2)](E)),S(0x4,o[_0x1d9ea9(0x1f1)])],exports[_0x1d9ea9(0x18a)]);function $(){const _0x386be0=_0x1d9ea9,_0x6a9901=p['useDependency'](exports['LiveShareController']),_0x2c87f1=p[_0x386be0(0x17c)](o[_0x386be0(0x15c)]),_0x451a5b=p[_0x386be0(0x14c)](()=>_0x2c87f1[_0x386be0(0x1a6)](o['UniverInstanceType'][_0x386be0(0x148)]),void 0x0,!0x1,[]),[_0x17da5e,_0x2b7c88]=v[_0x386be0(0x15f)](null),[_0x560282,_0x332abf]=v['useState'](u[_0x386be0(0x152)]),_0x58155c=v['useRef'](null);return v[_0x386be0(0x1a7)](()=>(_0x451a5b&&_0x6a9901[_0x386be0(0x20b)](_0x451a5b[_0x386be0(0x1db)]())[_0x386be0(0x16c)](_0x3e3f50=>{const _0x542a39=_0x386be0;_0x2b7c88(_0x3e3f50),_0x58155c[_0x542a39(0x1c6)]=_0x3e3f50[_0x542a39(0x169)]['subscribe'](_0x4a9dd3=>{_0x332abf(_0x4a9dd3);});}),()=>{const _0x1801ef=_0x386be0;var _0x2391a1;(_0x2391a1=_0x58155c[_0x1801ef(0x1c6)])==null||_0x2391a1[_0x1801ef(0x1ed)](),_0x58155c[_0x1801ef(0x1c6)]=null;}),[_0x451a5b,_0x6a9901]),_0x17da5e?l[_0x386be0(0x201)](f[_0x386be0(0x15b)],{'align':_0x386be0(0x145),'disabled':_0x560282===u[_0x386be0(0x177)],'className':_0x386be0(0x192),'overlay':l[_0x386be0(0x201)](W,{'status':_0x560282,'coordinator':_0x17da5e}),'children':l[_0x386be0(0x201)](_0x386be0(0x189),{'className':f['clsx'](_0x386be0(0x180),{'univer-cursor-not-allowed':_0x560282===u[_0x386be0(0x177)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x560282!==u[_0x386be0(0x177)]}),'type':_0x386be0(0x189),'children':l[_0x386be0(0x201)](R,{'className':_0x386be0(0x1cf)})})}):null;}function W(_0x53333a){const _0x3f5bd9=_0x1d9ea9,{status:_0x38930c,coordinator:_0x4c5c28}=_0x53333a;switch(_0x38930c){case u[_0x3f5bd9(0x152)]:return l[_0x3f5bd9(0x201)](G,{'coordinator':_0x4c5c28});case u['FOLLOWING']:return l[_0x3f5bd9(0x201)](B,{'coordinator':_0x4c5c28});case u[_0x3f5bd9(0x143)]:return l[_0x3f5bd9(0x201)](Y,{'coordinator':_0x4c5c28});case u[_0x3f5bd9(0x177)]:return l[_0x3f5bd9(0x201)](J,{});case u[_0x3f5bd9(0x16e)]:return l['jsx'](Z,{'coordinator':_0x4c5c28});default:return null;}}function G(_0x3deab2){const _0x59f1dd=_0x1d9ea9,{coordinator:_0x5d5c12}=_0x3deab2;return l[_0x59f1dd(0x195)](l['Fragment'],{'children':[l[_0x59f1dd(0x201)](_0x59f1dd(0x147),{'className':_0x59f1dd(0x1b0),'children':_0x59f1dd(0x1fc)}),l[_0x59f1dd(0x201)](f[_0x59f1dd(0x1d7)],{'onClick':()=>_0x5d5c12[_0x59f1dd(0x17e)](),'children':_0x59f1dd(0x16a)})]});}function B(_0x27233b){const _0x4d30e1=_0x1d9ea9,{coordinator:_0x36dcab}=_0x27233b;return l[_0x4d30e1(0x195)](l[_0x4d30e1(0x136)],{'children':[l[_0x4d30e1(0x201)](_0x4d30e1(0x147),{'className':_0x4d30e1(0x1b0),'children':_0x4d30e1(0x1ef)}),l[_0x4d30e1(0x201)](f[_0x4d30e1(0x1d7)],{'onClick':()=>_0x36dcab[_0x4d30e1(0x1b9)](),'children':_0x4d30e1(0x18d)})]});}function Y(_0x7ec19e){const _0x5233d0=_0x1d9ea9,{coordinator:_0x566aec}=_0x7ec19e;return l[_0x5233d0(0x195)](l[_0x5233d0(0x136)],{'children':[l[_0x5233d0(0x201)](_0x5233d0(0x147),{'className':_0x5233d0(0x1b0),'children':_0x5233d0(0x17f)}),l[_0x5233d0(0x201)](f['Button'],{'variant':_0x5233d0(0x1de),'onClick':()=>_0x566aec[_0x5233d0(0x1d3)](),'children':_0x5233d0(0x19e)})]});}function Z(_0x4dc593){const _0x46d335=_0x1d9ea9,{coordinator:_0x3e8551}=_0x4dc593;return l[_0x46d335(0x195)](l[_0x46d335(0x136)],{'children':[l[_0x46d335(0x201)](_0x46d335(0x147),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x46d335(0x1b4)}),l[_0x46d335(0x201)](f[_0x46d335(0x1d7)],{'variant':_0x46d335(0x1b8),'onClick':()=>_0x3e8551['stopPresenting'](),'children':_0x46d335(0x159)})]});}function _0x404a(){const _0x3c68b6=['evenodd','forEach','_handleOperation','_stopPresenting','Injector','getLiveShareCoordinator','toStringTag','presenting','dispose$','_startFollowing','onRendered','Subject','Fragment','_mountLiveShare','string','memberID','tag','_collabSession','from','DependentOn','CommandType','offline','CollaborationSessionService','idle','registerInitialStateReporter','NOT_FOLLOWING','BehaviorSubject','end','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','div','UNIVER_SHEET','none','190663sIgAZT','HEADER_MENU','useObservable','0\x200\x2017\x2017','SetZoomRatioOperation','includes','_status','1em','IDLE','RxDisposable','_univerInstanceService','UniverIcon','colorChannel1','has','executeCommand','Stop\x20presenting','LiveShareIcon','Dropdown','IUniverInstanceService','assign','IConfigService','useState','OPERATION','forwardRef','getOwnPropertyDescriptor','path','init','_fetchOperations','LiveShare','registerDependencies','943683wxFJvD','status$','Start','reverse','then','useRef','PRESENTING','117405LswEia','get','UNIVER_UNKNOWN','_collabSessionService','http://www.w3.org/2000/svg','toString','registerComponent','trim','OFFLINE','touchDependencies','params','children','178819cPyRLB','useDependency','_commandDisposable','tryStartPresenting','You\x27re\x20not\x20following\x20the\x20presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','InsertSheetMutation','onStarting','Disposable','FOLLOWING','stringify','fill','CollaborationEvent','UniverInstanceType','button','LiveShareCoordinator','toDisposable','_stopFollowing','Stop\x20following','getTypeOfUnitAdded$','currentColor','_unitID','_uiPartsService','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','send','_configService','jsxs','_status$','pipe','getConfig','NEW_CHANGESETS','throttleTime','values','setConfig','merge','Start\x20following','pluginName','SAME_OPERATION_SHARE_INTERVAL','map','presenter','disposeWithMe','displayName','stopPresenting','getCurrentTypeOfUnit$','useEffect','xlink:href','LiveShareController','IUIPartsService','operations','_sharedOperations','find','_handleTerminate','type','univer-mb-3\x20univer-w-full\x20univer-text-sm','1909117zGWrTU','createElement','2JLcmWP','You\x27re\x20presenting\x20the\x20document','onCommandExecuted','_injector','mergeOverrideWithDependencies','default','stopFollowing','DesktopLiveShareController','_handleOffline','requireSession','_commandService','LiveShareStatus','shouldShareOperation','attrs','live-share.config','LiveShareService','_presenter','override','790boKrvt','current','348ObgQiQ','live-share-icon','getMemberID','univerjs-icon\x20univerjs-icon-','_reporters','UniverLiveSharePlugin','sessionStatus$','_liveShareService','univer-size-4','add','defIds','Inject','startFollowing','190pbwUkp','SessionStatus','703088HNxmdA','Button','defineProperty','delete','replace','getUnitId','takeUntil','_entities','text','_beIdle','idSuffix','asObservable','mask','defs','unitId','LIVESHARE_REQUEST_HOST','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','following','LIVESHARE_TERMINATE','length','LIVESHARE_OPERATION','url(#$1','getTypeOfUnitDisposed$','unsubscribe','_init','You\x27re\x20following\x20the\x20presenter','connectInjector','ICommandService','mutations','subscribe','getValue','data','8526UbhXJS','set','dispose','_startPresenting','SetWorksheetActiveOperation','not-following','Present\x20this\x20document','BuiltInUIPart','4vWBfoc','clear','next','jsx','_config','_handleOnline','complete','symbol'];_0x404a=function(){return _0x3c68b6;};return _0x404a();}function J(){const _0x2c93af=_0x1d9ea9;return l[_0x2c93af(0x201)](l[_0x2c93af(0x136)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x1d9ea9(0x162)],z=(_0x1f083b,_0x3d80a1,_0x31dedb,_0x504a83)=>{const _0x85d71=_0x1d9ea9;for(var _0x58a49b=_0x504a83>0x1?void 0x0:_0x504a83?K(_0x3d80a1,_0x31dedb):_0x3d80a1,_0x295c55=_0x1f083b[_0x85d71(0x1e9)]-0x1,_0x510b46;_0x295c55>=0x0;_0x295c55--)(_0x510b46=_0x1f083b[_0x295c55])&&(_0x58a49b=_0x510b46(_0x58a49b)||_0x58a49b);return _0x58a49b;},L=(_0x214abf,_0x508cd0)=>(_0x2d7008,_0x9141af)=>_0x508cd0(_0x2d7008,_0x9141af,_0x214abf);exports[_0x1d9ea9(0x1ba)]=class extends o['Disposable']{constructor(_0xb6d067,_0x23bb5d){const _0x598d94=_0x1d9ea9;super(),this['_injector']=_0xb6d067,this[_0x598d94(0x191)]=_0x23bb5d,this[_0x598d94(0x137)]();}[_0x1d9ea9(0x137)](){const _0xbb3e0d=_0x1d9ea9;this[_0xbb3e0d(0x1a3)](this[_0xbb3e0d(0x191)][_0xbb3e0d(0x175)](p[_0xbb3e0d(0x1fd)][_0xbb3e0d(0x14b)],()=>p[_0xbb3e0d(0x1f0)]($,this[_0xbb3e0d(0x1b6)])));}},exports[_0x1d9ea9(0x1ba)]=z([L(0x0,o[_0x1d9ea9(0x1d2)](o[_0x1d9ea9(0x20a)])),L(0x1,p[_0x1d9ea9(0x1aa)])],exports[_0x1d9ea9(0x1ba)]);const Q=_0x1d9ea9(0x1c1),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x2b8ae3,_0x1cc3ad,_0x13aa54,_0x5c0370)=>{const _0x199312=_0x1d9ea9;for(var _0x46f392=_0x5c0370>0x1?void 0x0:_0x5c0370?X(_0x1cc3ad,_0x13aa54):_0x1cc3ad,_0x433e44=_0x2b8ae3[_0x199312(0x1e9)]-0x1,_0x23f852;_0x433e44>=0x0;_0x433e44--)(_0x23f852=_0x2b8ae3[_0x433e44])&&(_0x46f392=_0x23f852(_0x46f392)||_0x46f392);return _0x46f392;},te=(_0x34feef,_0x2c82ed)=>(_0x462c1e,_0x312d7a)=>_0x2c82ed(_0x462c1e,_0x312d7a,_0x34feef);let m=class extends o[_0x1d9ea9(0x183)]{constructor(_0x2d4ba0){const _0x58999e=_0x1d9ea9;super(),this[_0x58999e(0x1ce)]=_0x2d4ba0,this['_init']();}['_init'](){const _0x4344ce=_0x1d9ea9;[D[_0x4344ce(0x14e)]['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x9e750e=>{const _0x199851=_0x4344ce;this[_0x199851(0x1a3)](this[_0x199851(0x1ce)]['registerSharedOperation'](_0x9e750e));});}};m=ee([te(0x0,o[_0x1d9ea9(0x1d2)](E))],m);var ie=Object[_0x1d9ea9(0x1d8)],se=Object[_0x1d9ea9(0x162)],ne=(_0x1a5cd1,_0x3cfddd,_0x159661)=>_0x3cfddd in _0x1a5cd1?ie(_0x1a5cd1,_0x3cfddd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x159661}):_0x1a5cd1[_0x3cfddd]=_0x159661,re=(_0x15e96b,_0x16281f,_0x393d5c,_0x132b62)=>{const _0xfc5eb7=_0x1d9ea9;for(var _0x4fcb04=_0x132b62>0x1?void 0x0:_0x132b62?se(_0x16281f,_0x393d5c):_0x16281f,_0x594109=_0x15e96b[_0xfc5eb7(0x1e9)]-0x1,_0x77738b;_0x594109>=0x0;_0x594109--)(_0x77738b=_0x15e96b[_0x594109])&&(_0x4fcb04=_0x77738b(_0x4fcb04)||_0x4fcb04);return _0x4fcb04;},N=(_0x361b1e,_0xbf056c)=>(_0x5437cb,_0x51d2b5)=>_0xbf056c(_0x5437cb,_0x51d2b5,_0x361b1e),A=(_0xb89ff3,_0x42a7f0,_0x869994)=>ne(_0xb89ff3,typeof _0x42a7f0!=_0x1d9ea9(0x205)?_0x42a7f0+'':_0x42a7f0,_0x869994);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x1d9ea9(0x1cc)]=class extends o['Plugin']{constructor(_0x3a4ff3=w,_0x5cd3bd,_0x484915){const _0x2da7d8=_0x1d9ea9;super(),this['_config']=_0x3a4ff3,this['_injector']=_0x5cd3bd,this[_0x2da7d8(0x194)]=_0x484915;const {..._0x59be56}=o[_0x2da7d8(0x19d)]({},w,this[_0x2da7d8(0x202)]);this[_0x2da7d8(0x194)][_0x2da7d8(0x19c)](Q,_0x59be56);}[_0x1d9ea9(0x182)](){const _0x386494=_0x1d9ea9;o[_0x386494(0x167)](this['_injector'],o[_0x386494(0x1b7)]([[E],[exports['LiveShareController']],[m],[exports[_0x386494(0x1ba)]]],this[_0x386494(0x202)][_0x386494(0x1c4)])),o[_0x386494(0x178)](this[_0x386494(0x1b6)],[[m]]);}[_0x1d9ea9(0x134)](){const _0x380483=_0x1d9ea9;o['touchDependencies'](this[_0x380483(0x1b6)],[[exports[_0x380483(0x1ba)]]]);}},A(exports[_0x1d9ea9(0x1cc)],_0x1d9ea9(0x1af),o[_0x1d9ea9(0x188)][_0x1d9ea9(0x171)]),A(exports[_0x1d9ea9(0x1cc)],_0x1d9ea9(0x19f),oe),exports[_0x1d9ea9(0x1cc)]=re([o[_0x1d9ea9(0x13d)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x1d9ea9(0x1d2)](o['Injector'])),N(0x2,o[_0x1d9ea9(0x15e)])],exports[_0x1d9ea9(0x1cc)]),exports[_0x1d9ea9(0x166)]=$,exports[_0x1d9ea9(0x1c2)]=E,exports[_0x1d9ea9(0x1be)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xba1afe=_0x1575;(function(_0x238760,_0x2e3550){const _0x1d0baa=_0x1575,_0x4160ab=_0x238760();while(!![]){try{const _0x123a17=-parseInt(_0x1d0baa(0xfc))/0x1+parseInt(_0x1d0baa(0xfd))/0x2*(parseInt(_0x1d0baa(0x112))/0x3)+parseInt(_0x1d0baa(0x109))/0x4*(-parseInt(_0x1d0baa(0xfb))/0x5)+parseInt(_0x1d0baa(0x107))/0x6*(parseInt(_0x1d0baa(0x10e))/0x7)+parseInt(_0x1d0baa(0x10b))/0x8*(-parseInt(_0x1d0baa(0x103))/0x9)+parseInt(_0x1d0baa(0xfe))/0xa+parseInt(_0x1d0baa(0x105))/0xb;if(_0x123a17===_0x2e3550)break;else _0x4160ab['push'](_0x4160ab['shift']());}catch(_0x2a94e9){_0x4160ab['push'](_0x4160ab['shift']());}}}(_0x3050,0xbf777));var l=Object[_0xba1afe(0x10c)],w=(_0x135571,_0xab6bd6,_0xe1bd4c)=>_0xab6bd6 in _0x135571?l(_0x135571,_0xab6bd6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe1bd4c}):_0x135571[_0xab6bd6]=_0xe1bd4c,v=(_0x28711d,_0x5293fe,_0x1401ce)=>w(_0x28711d,typeof _0x5293fe!=_0xba1afe(0x114)?_0x5293fe+'':_0x5293fe,_0x1401ce);function _0x1575(_0x27819f,_0x41beae){_0x27819f=_0x27819f-0xfa;const _0x305017=_0x3050();let _0x1575c0=_0x305017[_0x27819f];return _0x1575c0;}function _0x3050(){const _0x2b0130=['_liveShareController','startFollowing','getLiveShareCoordinatorSync','20zOwBkI','239137Jpptex','2syNJtz','6159480NWdJzj','extend','tryStartPresenting','UNIVER_SHEET','get','3152853OHMhUX','stopFollowing','15673504gzEPgl','startPresenting','1009062AofoPm','stopPresenting','446588yHebts','No\x20active\x20workbook\x20found.','32KYZjDW','defineProperty','_injector','7lKHSpk','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','getCurrentUnitOfType','1986753iVkPuo','IDLE','symbol','getUnitId'];_0x3050=function(){return _0x2b0130;};return _0x3050();}import{LiveShareController as _0x368e14,LiveShareStatus as _0x197484}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x372a33,UniverInstanceType as _0x462e53}from'@univerjs/core';import{FUniver as _0x3fb83b,FEnum as _0x3235b8}from'@univerjs/core/facade';class g extends _0x3fb83b{constructor(){const _0x22202e=_0xba1afe;super(...arguments),v(this,_0x22202e(0x116));}['_initialize'](_0x237f06){const _0x3c3a3a=_0xba1afe;this[_0x3c3a3a(0x116)]=_0x237f06[_0x3c3a3a(0x102)](_0x368e14);}['getLiveShareStatus'](){const _0x22cdb4=_0xba1afe;var _0x57b6ec;const _0x13f37f=this[_0x22cdb4(0x10d)][_0x22cdb4(0x102)](_0x372a33)[_0x22cdb4(0x111)](_0x462e53['UNIVER_SHEET']);if(!_0x13f37f)throw new Error(_0x22cdb4(0x10a));const _0x8af84a=_0x13f37f[_0x22cdb4(0x115)](),_0x17bc84=this[_0x22cdb4(0x116)][_0x22cdb4(0xfa)](_0x8af84a);return(_0x57b6ec=_0x17bc84==null?void 0x0:_0x17bc84[_0x22cdb4(0x110)]())!=null?_0x57b6ec:_0x197484[_0x22cdb4(0x113)];}[_0xba1afe(0x117)](){const _0x135714=_0xba1afe,_0x154412=this['_injector'][_0x135714(0x102)](_0x372a33)['getCurrentUnitOfType'](_0x462e53['UNIVER_SHEET']);if(!_0x154412)throw new Error(_0x135714(0x10a));const _0xe62c89=_0x154412[_0x135714(0x115)](),_0x2c12fb=this['_liveShareController'][_0x135714(0xfa)](_0xe62c89);if(!_0x2c12fb)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2c12fb[_0x135714(0x117)]();}[_0xba1afe(0x104)](){const _0x2827d9=_0xba1afe,_0x2ab2c1=this[_0x2827d9(0x10d)]['get'](_0x372a33)[_0x2827d9(0x111)](_0x462e53[_0x2827d9(0x101)]);if(!_0x2ab2c1)throw new Error(_0x2827d9(0x10a));const _0xc846d8=_0x2ab2c1[_0x2827d9(0x115)](),_0x439a8f=this[_0x2827d9(0x116)]['getLiveShareCoordinatorSync'](_0xc846d8);if(!_0x439a8f)throw new Error(_0x2827d9(0x10f));_0x439a8f[_0x2827d9(0x104)]();}[_0xba1afe(0x106)](){const _0x5ba1af=_0xba1afe,_0x660d34=this[_0x5ba1af(0x10d)][_0x5ba1af(0x102)](_0x372a33)[_0x5ba1af(0x111)](_0x462e53[_0x5ba1af(0x101)]);if(!_0x660d34)throw new Error(_0x5ba1af(0x10a));const _0x321573=_0x660d34[_0x5ba1af(0x115)](),_0x3fc79f=this[_0x5ba1af(0x116)][_0x5ba1af(0xfa)](_0x321573);if(!_0x3fc79f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3fc79f[_0x5ba1af(0x100)]();}[_0xba1afe(0x108)](){const _0x4f1831=_0xba1afe,_0x25d029=this[_0x4f1831(0x10d)]['get'](_0x372a33)[_0x4f1831(0x111)](_0x462e53[_0x4f1831(0x101)]);if(!_0x25d029)throw new Error(_0x4f1831(0x10a));const _0x2662de=_0x25d029['getUnitId'](),_0x5c9cf1=this[_0x4f1831(0x116)][_0x4f1831(0xfa)](_0x2662de);if(!_0x5c9cf1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5c9cf1['stopPresenting']();}}_0x3fb83b['extend'](g);class f extends _0x3235b8{get['LiveShareStatusEnum'](){return _0x197484;}}_0x3235b8[_0xba1afe(0xff)](f);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x592408=_0x293d;(function(_0x38139e,_0x34835c){const _0x5bc4f0=_0x293d,_0x2d1908=_0x38139e();while(!![]){try{const _0x1aa606=parseInt(_0x5bc4f0(0x20e))/0x1*(-parseInt(_0x5bc4f0(0x24d))/0x2)+-parseInt(_0x5bc4f0(0x235))/0x3+-parseInt(_0x5bc4f0(0x1e4))/0x4+parseInt(_0x5bc4f0(0x22d))/0x5+parseInt(_0x5bc4f0(0x218))/0x6+-parseInt(_0x5bc4f0(0x21d))/0x7+parseInt(_0x5bc4f0(0x242))/0x8;if(_0x1aa606===_0x34835c)break;else _0x2d1908['push'](_0x2d1908['shift']());}catch(_0x4702e9){_0x2d1908['push'](_0x2d1908['shift']());}}}(_0x40ff,0x9ef19));var J=Object[_0x592408(0x1d4)],K=(_0x25694b,_0x5775e6,_0x463e02)=>_0x5775e6 in _0x25694b?J(_0x25694b,_0x5775e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x463e02}):_0x25694b[_0x5775e6]=_0x463e02,u=(_0x12abe7,_0x35b39c,_0x38c3c7)=>K(_0x12abe7,typeof _0x35b39c!='symbol'?_0x35b39c+'':_0x35b39c,_0x38c3c7);import{Disposable as _0x33ef8e,toDisposable as _0x20dd5b,IUniverInstanceService as _0x53f99e,Inject as _0x311fb0,Injector as _0x24ee9e,IConfigService as _0x3de0b0,ICommandService as _0x148cf9,RxDisposable as _0x1c3605,UniverInstanceType as _0x538a9c,DisposableCollection as _0x3daf0f,CommandType as _0x4f6879,DependentOn as _0x23f815,Plugin as _0x13b402,merge as _0x1bcd48,registerDependencies as _0x135b87,mergeOverrideWithDependencies as _0x1312ff,touchDependencies as _0x8d80af}from'@univerjs/core';import{useDependency as _0x204cae,useObservable as _0xb7854a,IUIPartsService as _0x8de62a,BuiltInUIPart as _0x11ce85,connectInjector as _0x4f5fb6}from'@univerjs/ui';import{jsx as _0x4a42da,jsxs as _0x38eaf4,Fragment as _0x29e3a5}from'react/jsx-runtime';import{Dropdown as _0x9f7729,clsx as _0x421684,Button as _0x24ed50}from'@univerjs/design';import{useRef as _0x20004a,createElement as _0x5ab196,forwardRef as _0x3fde48,useState as _0x4a1d9e,useEffect as _0x1e0d3a}from'react';import{CollaborationEvent as _0x2c77f3,parseProtocolChangeset as _0xbe98ce}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x34794b,SessionStatus as _0x34eb0b,UniverCollaborationClientPlugin as _0x3d09b1}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4a66bf,SetWorksheetActiveOperation as _0xc6f41a}from'@univerjs/sheets';import{BehaviorSubject as _0x5eee04,Subject as _0x402774}from'rxjs';import{takeUntil as _0x2f8329,throttleTime as _0x598727}from'rxjs/operators';import{SetZoomRatioOperation as _0x26ffad,SetScrollOperation as _0xeb207}from'@univerjs/sheets-ui';function k({ref:_0x27b357,..._0x8aadbc}){const _0x31a1dd=_0x592408,{icon:_0x3897d1,id:_0x1be106,className:_0x5589c4,extend:_0x2ccd93,..._0x3b6fee}=_0x8aadbc,_0x496bd4=('univerjs-icon\x20univerjs-icon-'+_0x1be106+'\x20'+(_0x5589c4||''))['trim'](),_0x3c9c50=_0x20004a('_'+Oe());return G(_0x3897d1,''+_0x1be106,{'defIds':_0x3897d1['defIds'],'idSuffix':_0x3c9c50[_0x31a1dd(0x1ee)]},{'ref':_0x27b357,'className':_0x496bd4,..._0x3b6fee},_0x2ccd93);}function G(_0x280e8b,_0x37d25c,_0x40d904,_0x4be9bd,_0x27bf3d){const _0x54de1c=_0x592408;return _0x5ab196(_0x280e8b['tag'],{'key':_0x37d25c,...be(_0x280e8b,_0x40d904,_0x27bf3d),..._0x4be9bd},(Ee(_0x280e8b,_0x40d904)[_0x54de1c(0x23e)]||[])[_0x54de1c(0x215)]((_0x26490c,_0x2bb720)=>G(_0x26490c,_0x37d25c+'-'+_0x280e8b[_0x54de1c(0x24a)]+'-'+_0x2bb720,_0x40d904,void 0x0,_0x27bf3d)));}function be(_0x3c5c0a,_0x3398da,_0x47ee34){const _0x55a73f=_0x592408,_0x1ead94={..._0x3c5c0a[_0x55a73f(0x1ca)]};_0x47ee34!=null&&_0x47ee34['colorChannel1']&&_0x1ead94['fill']===_0x55a73f(0x213)&&(_0x1ead94[_0x55a73f(0x1e2)]=_0x47ee34[_0x55a73f(0x213)]),_0x3c5c0a['tag']==='mask'&&_0x1ead94['id']&&(_0x1ead94['id']=_0x1ead94['id']+_0x3398da[_0x55a73f(0x1dd)]),Object[_0x55a73f(0x20d)](_0x1ead94)[_0x55a73f(0x246)](([_0x1a55fd,_0x5981b0])=>{const _0x23e574=_0x55a73f;_0x1a55fd===_0x23e574(0x202)&&typeof _0x5981b0==_0x23e574(0x1ae)&&(_0x1ead94[_0x1a55fd]=_0x5981b0[_0x23e574(0x208)](/url\(#(.*)\)/,'url(#$1'+_0x3398da[_0x23e574(0x1dd)]+')'));});const {defIds:_0x5a5b75}=_0x3398da;return!_0x5a5b75||_0x5a5b75['length']===0x0||(_0x3c5c0a[_0x55a73f(0x24a)]===_0x55a73f(0x23f)&&_0x1ead94['xlink:href']&&(_0x1ead94[_0x55a73f(0x1dc)]=_0x1ead94[_0x55a73f(0x1dc)]+_0x3398da[_0x55a73f(0x1dd)]),Object[_0x55a73f(0x20d)](_0x1ead94)[_0x55a73f(0x246)](([_0x3367cc,_0x48a836])=>{const _0x5a80b3=_0x55a73f;typeof _0x48a836==_0x5a80b3(0x1ae)&&(_0x1ead94[_0x3367cc]=_0x48a836['replace'](/url\(#(.*)\)/,'url(#$1'+_0x3398da[_0x5a80b3(0x1dd)]+')'));})),_0x1ead94;}function Ee(_0x192aae,_0x4322e2){const _0x44136d=_0x592408;var _0x469cdb;const {defIds:_0x23b6a2}=_0x4322e2;return!_0x23b6a2||_0x23b6a2[_0x44136d(0x244)]===0x0?_0x192aae:_0x192aae[_0x44136d(0x24a)]==='defs'&&((_0x469cdb=_0x192aae[_0x44136d(0x23e)])!=null&&_0x469cdb['length'])?{..._0x192aae,'children':_0x192aae[_0x44136d(0x23e)][_0x44136d(0x215)](_0x21694a=>typeof _0x21694a[_0x44136d(0x1ca)]['id']=='string'&&_0x23b6a2&&_0x23b6a2[_0x44136d(0x1f3)](_0x21694a[_0x44136d(0x1ca)]['id'])?{..._0x21694a,'attrs':{..._0x21694a[_0x44136d(0x1ca)],'id':_0x21694a[_0x44136d(0x1ca)]['id']+_0x4322e2[_0x44136d(0x1dd)]}}:_0x21694a)}:_0x192aae;}function Oe(){const _0x64d690=_0x592408;return Math[_0x64d690(0x225)]()[_0x64d690(0x230)](0x24)[_0x64d690(0x228)](0x2,0x8);}k['displayName']=_0x592408(0x232);const we={'tag':'svg','attrs':{'xmlns':_0x592408(0x20b),'fill':_0x592408(0x1c2),'viewBox':_0x592408(0x227),'width':'1em','height':'1em'},'children':[{'tag':_0x592408(0x223),'attrs':{'fill':_0x592408(0x1d1),'d':_0x592408(0x1fe)}},{'tag':_0x592408(0x223),'attrs':{'fill':_0x592408(0x1d1),'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'}}]},W=_0x3fde48(function(_0x395d52,_0x4d971a){const _0x218af1=_0x592408;return _0x5ab196(k,Object[_0x218af1(0x1e6)]({},_0x395d52,{'id':_0x218af1(0x212),'ref':_0x4d971a,'icon':we}));});W[_0x592408(0x1f0)]=_0x592408(0x21c);class L extends _0x33ef8e{constructor(){const _0x13e232=_0x592408;super(...arguments),u(this,_0x13e232(0x1af),new Set()),u(this,_0x13e232(0x217),new Set());}['registerSharedOperation'](_0x48d44c){const _0x237079=_0x592408;return this['_sharedOperations'][_0x237079(0x245)](_0x48d44c),_0x20dd5b(()=>this[_0x237079(0x1af)][_0x237079(0x1d6)](_0x48d44c));}[_0x592408(0x1ce)](_0x1f2f06){const _0xb1e29a=_0x592408;return this['_reporters'][_0xb1e29a(0x245)](_0x1f2f06),_0x20dd5b(()=>this['_reporters']['delete'](_0x1f2f06));}[_0x592408(0x1fb)](_0x3dbbb4){const _0x5024b0=_0x592408;return this[_0x5024b0(0x1af)][_0x5024b0(0x1b4)](_0x3dbbb4);}['getInitialStates'](_0x1a2470){const _0x5d2471=_0x592408;return Array[_0x5d2471(0x248)](this[_0x5d2471(0x217)])[_0x5d2471(0x215)](_0x3f337f=>_0x3f337f(_0x1a2470));}}var Ne=Object[_0x592408(0x1f8)],Y=(_0x5a55d4,_0x303de6,_0x5bd326,_0x88f0d0)=>{const _0x16006a=_0x592408;for(var _0x1f2db4=_0x88f0d0>0x1?void 0x0:_0x88f0d0?Ne(_0x303de6,_0x5bd326):_0x303de6,_0x3c04d5=_0x5a55d4[_0x16006a(0x244)]-0x1,_0x3d44b2;_0x3c04d5>=0x0;_0x3c04d5--)(_0x3d44b2=_0x5a55d4[_0x3c04d5])&&(_0x1f2db4=_0x3d44b2(_0x1f2db4)||_0x1f2db4);return _0x1f2db4;},_=(_0x29c6ae,_0x46f958)=>(_0x52d675,_0x447703)=>_0x46f958(_0x52d675,_0x447703,_0x29c6ae);let S=class extends _0x1c3605{constructor(_0x2d81b5,_0x22f4aa,_0x4ed05f){const _0x4a7a6e=_0x592408;super(),u(this,_0x4a7a6e(0x24c),new Map()),(this['_univerInstanceService']=_0x2d81b5,this['_injector']=_0x22f4aa,this[_0x4a7a6e(0x24f)]=_0x4ed05f,this['_init']());}async[_0x592408(0x1d5)](_0x234e50){const _0x1edb53=_0x592408;return this[_0x1edb53(0x24c)][_0x1edb53(0x1b4)](_0x234e50)||await this[_0x1edb53(0x1bf)](_0x234e50),this[_0x1edb53(0x24c)][_0x1edb53(0x1d8)](_0x234e50);}[_0x592408(0x22f)](_0xd8c30){const _0x1d0e4b=_0x592408;var _0x9d0516;return(_0x9d0516=this[_0x1d0e4b(0x24c)][_0x1d0e4b(0x1d8)](_0xd8c30))!=null?_0x9d0516:null;}[_0x592408(0x1ff)](){const _0x22d9d0=_0x592408;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x538a9c[_0x22d9d0(0x247)])['pipe'](_0x2f8329(this[_0x22d9d0(0x1d2)]))[_0x22d9d0(0x1fa)](async _0x564d05=>{const _0x577942=_0x22d9d0,_0x58f3d7=_0x564d05[_0x577942(0x22e)]();this[_0x577942(0x24c)][_0x577942(0x1b4)](_0x58f3d7)||this[_0x577942(0x1bf)](_0x58f3d7);}),this[_0x22d9d0(0x236)][_0x22d9d0(0x21a)](_0x538a9c[_0x22d9d0(0x247)])[_0x22d9d0(0x1d9)](_0x2f8329(this[_0x22d9d0(0x1d2)]))[_0x22d9d0(0x1fa)](_0x4c3b6b=>{const _0x48b16b=_0x22d9d0,_0x119eec=_0x4c3b6b[_0x48b16b(0x22e)](),_0xca6e10=this[_0x48b16b(0x24c)][_0x48b16b(0x1d8)](_0x119eec);_0xca6e10==null||_0xca6e10[_0x48b16b(0x1d0)]();});}async[_0x592408(0x1bf)](_0x436f00){const _0x1155cb=_0x592408,_0x4c3720=await this['_collabSessionService'][_0x1155cb(0x1db)](_0x436f00),_0x131bd0=this[_0x1155cb(0x1b2)][_0x1155cb(0x216)](N,_0x436f00,_0x4c3720);return _0x131bd0[_0x1155cb(0x209)](),this[_0x1155cb(0x24c)][_0x1155cb(0x1bc)](_0x436f00,_0x131bd0),_0x131bd0;}};S=Y([_(0x0,_0x53f99e),_(0x1,_0x311fb0(_0x24ee9e)),_(0x2,_0x311fb0(_0x34794b))],S);var c=(_0x34dd14=>(_0x34dd14[_0x592408(0x21e)]=_0x592408(0x1e3),_0x34dd14[_0x592408(0x1b1)]='idle',_0x34dd14[_0x592408(0x226)]=_0x592408(0x1f6),_0x34dd14['NOT_FOLLOWING']=_0x592408(0x1cd),_0x34dd14[_0x592408(0x203)]='presenting',_0x34dd14))(c||{});const Ce=_0x592408(0x1b0),De=0xc8;let N=class extends _0x1c3605{constructor(_0x417e43,_0x3ddf84,_0x40872e,_0x22dbd0,_0x3d40d9){const _0x46cf5e=_0x592408;super(),u(this,_0x46cf5e(0x201),new _0x5eee04(_0x46cf5e(0x1ba))),u(this,_0x46cf5e(0x1f5),this['_status$'][_0x46cf5e(0x1eb)]()),u(this,_0x46cf5e(0x1ff),!0x1),u(this,_0x46cf5e(0x1c1),null),u(this,_0x46cf5e(0x1c7),null),(this[_0x46cf5e(0x1c8)]=_0x417e43,this['_collabSession']=_0x3ddf84,this[_0x46cf5e(0x1ac)]=_0x40872e,this[_0x46cf5e(0x211)]=_0x22dbd0,this['_commandService']=_0x3d40d9);}get['_status'](){const _0x5dfec7=_0x592408;return this['_status$'][_0x5dfec7(0x205)]();}[_0x592408(0x1d0)](){const _0x2bcc83=_0x592408;var _0x40e54d;(_0x40e54d=this[_0x2bcc83(0x1c1)])==null||_0x40e54d[_0x2bcc83(0x1d0)](),this[_0x2bcc83(0x201)][_0x2bcc83(0x1c3)]('idle'),this[_0x2bcc83(0x201)]['complete']();}['getStatus'](){const _0x274a14=_0x592408;return this[_0x274a14(0x200)];}[_0x592408(0x209)](){const _0x59ced1=_0x592408;this[_0x59ced1(0x1ff)]||(this[_0x59ced1(0x1ff)]=!0x0,this[_0x59ced1(0x1c6)][_0x59ced1(0x1ea)][_0x59ced1(0x1d9)](_0x2f8329(this[_0x59ced1(0x1d2)]))['subscribe'](_0x582ae2=>{const _0x25e366=_0x59ced1;switch(_0x582ae2){case _0x34eb0b[_0x25e366(0x21e)]:this[_0x25e366(0x222)]();break;case _0x34eb0b[_0x25e366(0x210)]:this[_0x25e366(0x1bb)]();break;}}),this[_0x59ced1(0x1c6)]['event$'][_0x59ced1(0x1d9)](_0x2f8329(this[_0x59ced1(0x1d2)]))[_0x59ced1(0x1fa)](_0xf58ae3=>{const _0x4e3c8a=_0x59ced1,{eventID:_0x4eb6bc}=_0xf58ae3;switch(_0x4eb6bc){case _0x2c77f3[_0x4e3c8a(0x220)]:this[_0x4e3c8a(0x234)](_0xf58ae3);break;case _0x2c77f3['LIVESHARE_OPERATION']:this[_0x4e3c8a(0x1d7)](_0xf58ae3);break;case _0x2c77f3[_0x4e3c8a(0x1df)]:this[_0x4e3c8a(0x224)]();break;case _0x2c77f3[_0x4e3c8a(0x24e)]:this[_0x4e3c8a(0x20f)](_0xf58ae3);break;}}));}[_0x592408(0x23b)](){const _0x1bb5ea=_0x592408;this['_collabSession'][_0x1bb5ea(0x1ef)]({'eventID':_0x2c77f3[_0x1bb5ea(0x1b9)],'data':{'unitID':this[_0x1bb5ea(0x1c8)],'userID':this[_0x1bb5ea(0x1c6)][_0x1bb5ea(0x1cc)]()}},this[_0x1bb5ea(0x1c8)]);}[_0x592408(0x1fd)](){const _0x6d8a06=_0x592408;this[_0x6d8a06(0x200)]===_0x6d8a06(0x1cf)&&(this['_status$'][_0x6d8a06(0x1c3)](_0x6d8a06(0x1ba)),this[_0x6d8a06(0x1c6)]['send']({'eventID':_0x2c77f3[_0x6d8a06(0x1df)],'data':{'unitID':this[_0x6d8a06(0x1c8)]}},this[_0x6d8a06(0x1c8)]));}[_0x592408(0x1f1)](){const _0x4d78e2=_0x592408;this[_0x4d78e2(0x200)]===_0x4d78e2(0x1cd)&&(this[_0x4d78e2(0x201)]['next'](_0x4d78e2(0x1f6)),this['_startFollowing']());}[_0x592408(0x1be)](){const _0x417637=_0x592408;this[_0x417637(0x200)]===_0x417637(0x1f6)&&this['_stopFollowing']();}[_0x592408(0x234)](_0x49c768){const _0x4688b8=_0x592408,{presenter:_0x75bb78}=_0x49c768[_0x4688b8(0x1f2)],_0x291a99=this['_collabSession'][_0x4688b8(0x1cc)]();this[_0x4688b8(0x1c7)]=_0x75bb78,_0x75bb78===_0x291a99?(this[_0x4688b8(0x21b)](),this[_0x4688b8(0x207)]()):this['_status']!==_0x4688b8(0x1cd)&&(this[_0x4688b8(0x1d3)](),this['_startFollowing']());}[_0x592408(0x23a)](){const _0xafa2ec=_0x592408,_0x5c4ec9={'eventID':_0x2c77f3[_0xafa2ec(0x1f4)]};this['_collabSession'][_0xafa2ec(0x1ef)](_0x5c4ec9,this[_0xafa2ec(0x1c8)]);}[_0x592408(0x224)](){const _0x277b95=_0x592408;this[_0x277b95(0x1c7)]=null,this['_status']!==_0x277b95(0x1cf)&&this[_0x277b95(0x238)]();}[_0x592408(0x20f)](_0x2135e3){const _0x587d22=_0x592408;if(this[_0x587d22(0x200)]===_0x587d22(0x1f6)&&this[_0x587d22(0x1c7)]===_0x2135e3[_0x587d22(0x1f2)][_0x587d22(0x221)]){const _0x390eec=_0xbe98ce(_0x2135e3[_0x587d22(0x1f2)])['mutations']['reverse']()['find'](_0x21ab2e=>_0x21ab2e['id']===_0x4a66bf['id']);if(_0x390eec){const _0x5831dc=_0x390eec['params'][_0x587d22(0x1f9)],_0x321222=_0x390eec[_0x587d22(0x1ed)][_0x587d22(0x1e1)]['id'];setTimeout(()=>{const _0x5e311e=_0x587d22;this[_0x5e311e(0x229)][_0x5e311e(0x206)](_0xc6f41a['id'],{'unitId':_0x5831dc,'subUnitId':_0x321222},{'fromCollab':!0x0});});}}}[_0x592408(0x207)](){const _0x4200e7=_0x592408;this[_0x4200e7(0x201)][_0x4200e7(0x1c3)](_0x4200e7(0x1cf));const _0x52bef0=new Map(),_0xd9b92e=this[_0x4200e7(0x1c1)]=new _0x3daf0f();_0xd9b92e['add'](_0x20dd5b(()=>{const _0x2ab5e7=_0x4200e7;_0x52bef0[_0x2ab5e7(0x246)](_0x390319=>_0x390319['complete']()),_0x52bef0[_0x2ab5e7(0x219)]();})),_0xd9b92e[_0x4200e7(0x245)](this[_0x4200e7(0x229)][_0x4200e7(0x237)](_0x37f7ee=>{const _0x2d0503=_0x4200e7;var _0x32a5ce;if(_0x37f7ee[_0x2d0503(0x1c9)]!==_0x4f6879[_0x2d0503(0x1e7)]||!this['_liveShareService'][_0x2d0503(0x1fb)](_0x37f7ee['id']))return;const {id:_0x74279a}=_0x37f7ee;let _0x3a33f0;_0x52bef0[_0x2d0503(0x1b4)](_0x74279a)?_0x3a33f0=_0x52bef0[_0x2d0503(0x1d8)](_0x74279a):(_0x3a33f0=new _0x402774(),_0x52bef0[_0x2d0503(0x1bc)](_0x74279a,_0x3a33f0),_0x3a33f0[_0x2d0503(0x1d9)](_0x598727((_0x32a5ce=this['_configService'][_0x2d0503(0x241)](Ce))!=null?_0x32a5ce:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2d0503(0x1fa)](_0x4a37d6=>{const _0x409813=_0x2d0503;this[_0x409813(0x1c6)][_0x409813(0x1ef)]({'eventID':_0x2c77f3[_0x409813(0x23d)],'data':{'unitID':this[_0x409813(0x1c8)],'operations':{[_0x4a37d6['id']]:{'id':_0x4a37d6['id'],'params':JSON['stringify'](_0x4a37d6[_0x409813(0x1ed)])}}}},this[_0x409813(0x1c8)]);})),_0x3a33f0[_0x2d0503(0x1c3)](_0x37f7ee);})),this['_liveShareService'][_0x4200e7(0x23c)](this['_unitID'])[_0x4200e7(0x246)](_0x138c81=>this['_collabSession'][_0x4200e7(0x1ef)]({'eventID':_0x2c77f3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4200e7(0x1c8)],'operations':{[_0x138c81['id']]:{'id':_0x138c81['id'],'params':JSON[_0x4200e7(0x204)](_0x138c81[_0x4200e7(0x1ed)])}}}},this['_unitID']));}[_0x592408(0x1d3)](){const _0x569646=_0x592408;var _0x3cb3aa;this[_0x569646(0x201)][_0x569646(0x1c3)](_0x569646(0x1ba)),(_0x3cb3aa=this[_0x569646(0x1c1)])==null||_0x3cb3aa[_0x569646(0x1d0)](),this[_0x569646(0x1c1)]=null;}[_0x592408(0x1b6)](){const _0x3b6c97=_0x592408;var _0x1a1c32;(_0x1a1c32=this[_0x3b6c97(0x1c1)])==null||_0x1a1c32[_0x3b6c97(0x1d0)](),this[_0x3b6c97(0x201)][_0x3b6c97(0x1c3)](_0x3b6c97(0x1f6));}['_beIdle'](){const _0x4d375d=_0x592408;var _0x10dae2;this['_status$'][_0x4d375d(0x1c3)](_0x4d375d(0x1ba)),(_0x10dae2=this[_0x4d375d(0x1c1)])==null||_0x10dae2[_0x4d375d(0x1d0)](),this[_0x4d375d(0x1c1)]=null;}[_0x592408(0x21b)](){const _0x541b13=_0x592408;var _0xfe4b6;this[_0x541b13(0x201)][_0x541b13(0x1c3)](_0x541b13(0x1cd)),(_0xfe4b6=this[_0x541b13(0x1c1)])==null||_0xfe4b6['dispose']();}[_0x592408(0x1d7)](_0x40b74a){const _0x37e93a=_0x592408;if(['presenting',_0x37e93a(0x1cd),_0x37e93a(0x1e3)][_0x37e93a(0x1f3)](this[_0x37e93a(0x200)])||!_0x40b74a[_0x37e93a(0x1f2)][_0x37e93a(0x249)]||_0x40b74a['data']['presenter']===this[_0x37e93a(0x1c6)][_0x37e93a(0x1cc)]())return;this[_0x37e93a(0x200)]===_0x37e93a(0x1ba)&&this['_startFollowing']();const _0x408097=_0x40b74a['data'][_0x37e93a(0x243)];Object['values'](_0x408097)['forEach'](_0x566915=>{const _0x2f7d38=_0x37e93a;this[_0x2f7d38(0x229)]['executeCommand'](_0x566915['id'],_0x566915[_0x2f7d38(0x1ed)]?JSON['parse'](_0x566915['params']):null,{'fromCollab':!0x0});});}[_0x592408(0x222)](){const _0x449f0a=_0x592408;var _0xdc7d27;this[_0x449f0a(0x201)][_0x449f0a(0x1c3)](_0x449f0a(0x1e3)),(_0xdc7d27=this[_0x449f0a(0x1c1)])==null||_0xdc7d27[_0x449f0a(0x1d0)]();}[_0x592408(0x1bb)](){const _0x2414b5=_0x592408;this[_0x2414b5(0x201)]['next'](_0x2414b5(0x1ba)),this[_0x2414b5(0x23a)]();}};N=Y([_(0x2,_0x3de0b0),_(0x3,_0x311fb0(L)),_(0x4,_0x148cf9)],N);function Le(){const _0x1b272a=_0x592408,_0x5028e8=_0x204cae(S),_0x69a3f0=_0x204cae(_0x53f99e),_0x560d12=_0xb7854a(()=>_0x69a3f0[_0x1b272a(0x1c0)](_0x538a9c[_0x1b272a(0x247)]),void 0x0,!0x1,[]),[_0x357fff,_0x316b66]=_0x4a1d9e(null),[_0x37f0a5,_0x3ed1ca]=_0x4a1d9e(c['IDLE']),_0x469dbd=_0x20004a(null);return _0x1e0d3a(()=>(_0x560d12&&_0x5028e8['getLiveShareCoordinator'](_0x560d12[_0x1b272a(0x22e)]())[_0x1b272a(0x24b)](_0x27e0f2=>{const _0x222a12=_0x1b272a;_0x316b66(_0x27e0f2),_0x469dbd['current']=_0x27e0f2[_0x222a12(0x1f5)][_0x222a12(0x1fa)](_0x2ec750=>{_0x3ed1ca(_0x2ec750);});}),()=>{const _0x22fd6b=_0x1b272a;var _0x4cca82;(_0x4cca82=_0x469dbd[_0x22fd6b(0x1ee)])==null||_0x4cca82[_0x22fd6b(0x1cb)](),_0x469dbd['current']=null;}),[_0x560d12,_0x5028e8]),_0x357fff?_0x4a42da(_0x9f7729,{'align':_0x1b272a(0x1c4),'disabled':_0x37f0a5===c['OFFLINE'],'className':_0x1b272a(0x1e5),'overlay':_0x4a42da(Re,{'status':_0x37f0a5,'coordinator':_0x357fff}),'children':_0x4a42da('button',{'className':_0x421684(_0x1b272a(0x1b3),{'univer-cursor-not-allowed':_0x37f0a5===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x37f0a5!==c[_0x1b272a(0x21e)]}),'type':_0x1b272a(0x214),'children':_0x4a42da(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2f3259){const _0x511d50=_0x592408,{status:_0x4d06e9,coordinator:_0x143c35}=_0x2f3259;switch(_0x4d06e9){case c[_0x511d50(0x1b1)]:return _0x4a42da($e,{'coordinator':_0x143c35});case c[_0x511d50(0x226)]:return _0x4a42da(xe,{'coordinator':_0x143c35});case c[_0x511d50(0x1b7)]:return _0x4a42da(Pe,{'coordinator':_0x143c35});case c[_0x511d50(0x21e)]:return _0x4a42da(Te,{});case c[_0x511d50(0x203)]:return _0x4a42da(Ae,{'coordinator':_0x143c35});default:return null;}}function $e(_0x15742d){const _0x64e20d=_0x592408,{coordinator:_0xb4a93b}=_0x15742d;return _0x38eaf4(_0x29e3a5,{'children':[_0x4a42da(_0x64e20d(0x22b),{'className':_0x64e20d(0x231),'children':_0x64e20d(0x1e8)}),_0x4a42da(_0x24ed50,{'onClick':()=>_0xb4a93b[_0x64e20d(0x23b)](),'children':_0x64e20d(0x1b5)})]});}function xe(_0x1e5387){const _0x472a9e=_0x592408,{coordinator:_0x215513}=_0x1e5387;return _0x38eaf4(_0x29e3a5,{'children':[_0x4a42da(_0x472a9e(0x22b),{'className':_0x472a9e(0x231),'children':_0x472a9e(0x1e9)}),_0x4a42da(_0x24ed50,{'onClick':()=>_0x215513[_0x472a9e(0x1be)](),'children':_0x472a9e(0x239)})]});}function Pe(_0x2e2091){const _0xdc9403=_0x592408,{coordinator:_0x3a838a}=_0x2e2091;return _0x38eaf4(_0x29e3a5,{'children':[_0x4a42da('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4a42da(_0x24ed50,{'variant':_0xdc9403(0x1ad),'onClick':()=>_0x3a838a[_0xdc9403(0x1f1)](),'children':_0xdc9403(0x1c5)})]});}function Ae(_0x3aa827){const _0x59da29=_0x592408,{coordinator:_0x432edc}=_0x3aa827;return _0x38eaf4(_0x29e3a5,{'children':[_0x4a42da(_0x59da29(0x22b),{'className':_0x59da29(0x231),'children':_0x59da29(0x22a)}),_0x4a42da(_0x24ed50,{'variant':_0x59da29(0x20a),'onClick':()=>_0x432edc[_0x59da29(0x1fd)](),'children':_0x59da29(0x233)})]});}function Te(){return _0x4a42da(_0x29e3a5,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x592408(0x1f8)],He=(_0x32e00f,_0x16da39,_0x20c2f8,_0xc070d7)=>{const _0x2f2fd0=_0x592408;for(var _0x3c7882=_0xc070d7>0x1?void 0x0:_0xc070d7?Fe(_0x16da39,_0x20c2f8):_0x16da39,_0x319d18=_0x32e00f[_0x2f2fd0(0x244)]-0x1,_0x226565;_0x319d18>=0x0;_0x319d18--)(_0x226565=_0x32e00f[_0x319d18])&&(_0x3c7882=_0x226565(_0x3c7882)||_0x3c7882);return _0x3c7882;},A=(_0x20c8b2,_0x4705e7)=>(_0x38d6d1,_0x77714d)=>_0x4705e7(_0x38d6d1,_0x77714d,_0x20c8b2);let m=class extends _0x33ef8e{constructor(_0x5831ff,_0x2e5c47){const _0x590b74=_0x592408;super(),this[_0x590b74(0x1b2)]=_0x5831ff,this[_0x590b74(0x1de)]=_0x2e5c47,this[_0x590b74(0x240)]();}[_0x592408(0x240)](){const _0x512834=_0x592408;this['disposeWithMe'](this[_0x512834(0x1de)]['registerComponent'](_0x11ce85[_0x512834(0x1f7)],()=>_0x4f5fb6(Le,this[_0x512834(0x1b2)])));}};function _0x293d(_0x40fdb7,_0x94f80){_0x40fdb7=_0x40fdb7-0x1ab;const _0x40ff8b=_0x40ff();let _0x293d6c=_0x40ff8b[_0x40fdb7];return _0x293d6c;}m=He([A(0x0,_0x311fb0(_0x24ee9e)),A(0x1,_0x8de62a)],m);const ye=_0x592408(0x1da),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x27ce8c,_0x4b5540,_0xcbfec7,_0x2e6cb5)=>{for(var _0x129a67=_0x2e6cb5>0x1?void 0x0:_0x2e6cb5?Ue(_0x4b5540,_0xcbfec7):_0x4b5540,_0xafe55a=_0x27ce8c['length']-0x1,_0x2c85a0;_0xafe55a>=0x0;_0xafe55a--)(_0x2c85a0=_0x27ce8c[_0xafe55a])&&(_0x129a67=_0x2c85a0(_0x129a67)||_0x129a67);return _0x129a67;},je=(_0x589fd1,_0x23e718)=>(_0x842216,_0x5429f5)=>_0x23e718(_0x842216,_0x5429f5,_0x589fd1);let I=class extends _0x33ef8e{constructor(_0x4f4012){const _0x56a98e=_0x592408;super(),this[_0x56a98e(0x211)]=_0x4f4012,this[_0x56a98e(0x1ff)]();}['_init'](){const _0x780702=_0x592408;[_0x26ffad['id'],_0xeb207['id'],_0xc6f41a['id']][_0x780702(0x246)](_0x1d5d07=>{const _0x12fb16=_0x780702;this[_0x12fb16(0x20c)](this[_0x12fb16(0x211)][_0x12fb16(0x1ab)](_0x1d5d07));});}};I=Ve([je(0x0,_0x311fb0(L))],I);function _0x40ff(){const _0x127166=['disposeWithMe','entries','7zIQclS','_handleNewChangeSets','ONLINE','_liveShareService','live-share-icon','colorChannel1','button','map','createInstance','_reporters','75210HMeIUw','clear','getTypeOfUnitDisposed$','_stopFollowing','LiveShareIcon','7916524hragxB','OFFLINE','onRendered','LIVESHARE_NEW_HOST','memberID','_handleOffline','path','_handleTerminate','random','FOLLOWING','0\x200\x2017\x2017','substring','_commandService','You\x27re\x20presenting\x20the\x20document','div','setConfig','5922850hiOKQE','getUnitId','getLiveShareCoordinatorSync','toString','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverIcon','Stop\x20presenting','_handleNewHost','1044705apDLaJ','_univerInstanceService','onCommandExecuted','_beIdle','Stop\x20following','_fetchOperations','tryStartPresenting','getInitialStates','LIVESHARE_OPERATION','children','use','_mountLiveShare','getConfig','13657264RvdmWB','operations','length','add','forEach','UNIVER_SHEET','from','presenter','tag','then','_entities','108772MrDIwv','NEW_CHANGESETS','_collabSessionService','registerSharedOperation','_configService','text','string','_sharedOperations','SAME_OPERATION_SHARE_INTERVAL','IDLE','_injector','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','has','Start','_startFollowing','NOT_FOLLOWING','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_REQUEST_HOST','idle','_handleOnline','set','override','stopFollowing','_startLiveShareCoordinator','getCurrentTypeOfUnit$','_commandDisposable','none','next','end','Start\x20following','_collabSession','_presenter','_unitID','type','attrs','unsubscribe','getMemberID','not-following','registerInitialStateReporter','presenting','dispose','currentColor','dispose$','_stopPresenting','defineProperty','getLiveShareCoordinator','delete','_handleOperation','get','pipe','live-share.config','requireSession','xlink:href','idSuffix','_uiPartsService','LIVESHARE_TERMINATE','pluginName','sheet','fill','offline','1573444WVCrcm','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','assign','OPERATION','Present\x20this\x20document','You\x27re\x20following\x20the\x20presenter','sessionStatus$','asObservable','onStarting','params','current','send','displayName','startFollowing','data','includes','LIVESHARE_FETCH_OPERATIONS','status$','following','HEADER_MENU','getOwnPropertyDescriptor','unitId','subscribe','shouldShareOperation','_config','stopPresenting','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','_init','_status','_status$','mask','PRESENTING','stringify','getValue','executeCommand','_startPresenting','replace','init','default','http://www.w3.org/2000/svg'];_0x40ff=function(){return _0x127166;};return _0x40ff();}var Me=Object[_0x592408(0x1d4)],ke=Object[_0x592408(0x1f8)],Ge=(_0x7c1980,_0x4e5481,_0x3e4bfe)=>_0x4e5481 in _0x7c1980?Me(_0x7c1980,_0x4e5481,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e4bfe}):_0x7c1980[_0x4e5481]=_0x3e4bfe,We=(_0x37369a,_0x2b61a8,_0x2f3f03,_0x441760)=>{const _0x53ff5d=_0x592408;for(var _0x359d2a=_0x441760>0x1?void 0x0:_0x441760?ke(_0x2b61a8,_0x2f3f03):_0x2b61a8,_0x1d7a72=_0x37369a[_0x53ff5d(0x244)]-0x1,_0x4ac5cb;_0x1d7a72>=0x0;_0x1d7a72--)(_0x4ac5cb=_0x37369a[_0x1d7a72])&&(_0x359d2a=_0x4ac5cb(_0x359d2a)||_0x359d2a);return _0x359d2a;},F=(_0x537364,_0x43476a)=>(_0x4f0ed1,_0x410faa)=>_0x43476a(_0x4f0ed1,_0x410faa,_0x537364),B=(_0x9ce590,_0x5f358d,_0x2a34bc)=>Ge(_0x9ce590,typeof _0x5f358d!='symbol'?_0x5f358d+'':_0x5f358d,_0x2a34bc);const Ye=_0x592408(0x1b8);let b=class extends _0x13b402{constructor(_0x39ca85=T,_0x2efb02,_0x1d6f46){const _0x5929fe=_0x592408;super(),this[_0x5929fe(0x1fc)]=_0x39ca85,this[_0x5929fe(0x1b2)]=_0x2efb02,this['_configService']=_0x1d6f46;const {..._0x1de41e}=_0x1bcd48({},T,this['_config']);this[_0x5929fe(0x1ac)][_0x5929fe(0x22c)](ye,_0x1de41e);}[_0x592408(0x1ec)](){const _0x1862d5=_0x592408;_0x135b87(this[_0x1862d5(0x1b2)],_0x1312ff([[L],[S],[I],[m]],this['_config'][_0x1862d5(0x1bd)])),_0x8d80af(this['_injector'],[[I]]);}[_0x592408(0x21f)](){const _0x361b11=_0x592408;_0x8d80af(this[_0x361b11(0x1b2)],[[m]]);}};B(b,'type',_0x538a9c['UNIVER_UNKNOWN']),B(b,_0x592408(0x1e0),Ye),b=We([_0x23f815(_0x3d09b1),F(0x1,_0x311fb0(_0x24ee9e)),F(0x2,_0x3de0b0)],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 _0x1191b2=_0x3c6d;(function(_0x375322,_0x2ad210){const _0x4c8417=_0x3c6d,_0x4d5e73=_0x375322();while(!![]){try{const _0x39b03b=-parseInt(_0x4c8417(0x209))/0x1*(parseInt(_0x4c8417(0x198))/0x2)+parseInt(_0x4c8417(0x1a3))/0x3*(-parseInt(_0x4c8417(0x18e))/0x4)+parseInt(_0x4c8417(0x1d5))/0x5+-parseInt(_0x4c8417(0x19d))/0x6+parseInt(_0x4c8417(0x1ba))/0x7*(-parseInt(_0x4c8417(0x184))/0x8)+parseInt(_0x4c8417(0x1ea))/0x9+parseInt(_0x4c8417(0x1e6))/0xa;if(_0x39b03b===_0x2ad210)break;else _0x4d5e73['push'](_0x4d5e73['shift']());}catch(_0x546531){_0x4d5e73['push'](_0x4d5e73['shift']());}}}(_0x18ef,0x24b08));var J=Object['defineProperty'],K=(_0x45f795,_0x2a0594,_0x5601bc)=>_0x2a0594 in _0x45f795?J(_0x45f795,_0x2a0594,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5601bc}):_0x45f795[_0x2a0594]=_0x5601bc,u=(_0x5e1d5e,_0x1c187b,_0x4de588)=>K(_0x5e1d5e,typeof _0x1c187b!='symbol'?_0x1c187b+'':_0x1c187b,_0x4de588);import{Disposable as _0x42f139,toDisposable as _0x1417df,IUniverInstanceService as _0x13599b,Inject as _0x52f490,Injector as _0xfcc158,IConfigService as _0x3b6203,ICommandService as _0x1133a0,RxDisposable as _0x12d579,UniverInstanceType as _0x52ac2b,DisposableCollection as _0x12bfa0,CommandType as _0x58cba0,DependentOn as _0x31ac97,Plugin as _0x597a77,merge as _0x8b45b2,registerDependencies as _0x277ea5,mergeOverrideWithDependencies as _0x1a5bcb,touchDependencies as _0x412fe3}from'@univerjs/core';import{useDependency as _0x13c131,useObservable as _0x4a22ff,IUIPartsService as _0x40fce5,BuiltInUIPart as _0x344c8b,connectInjector as _0x1f7308}from'@univerjs/ui';import{jsx as _0x23bdaf,jsxs as _0x3c669a,Fragment as _0x2260a2}from'react/jsx-runtime';import{Dropdown as _0xa5e188,clsx as _0x5bda25,Button as _0x229044}from'@univerjs/design';function _0x3c6d(_0x27138e,_0x1d89fc){_0x27138e=_0x27138e-0x166;const _0x18ef1e=_0x18ef();let _0x3c6d4a=_0x18ef1e[_0x27138e];return _0x3c6d4a;}import{useRef as _0x26e3e5,createElement as _0x2270b1,forwardRef as _0x229bee,useState as _0x4c8df0,useEffect as _0x2e70ea}from'react';import{CollaborationEvent as _0x54850e,parseProtocolChangeset as _0x4ea61e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x46ad75,SessionStatus as _0x38f2a3,UniverCollaborationClientPlugin as _0x42c667}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x424699,SetWorksheetActiveOperation as _0x22d280}from'@univerjs/sheets';import{BehaviorSubject as _0x4ad1e3,Subject as _0x338e65}from'rxjs';import{takeUntil as _0x1096b2,throttleTime as _0x23d433}from'rxjs/operators';import{SetZoomRatioOperation as _0x2e5eb8,SetScrollOperation as _0x4c04a3}from'@univerjs/sheets-ui';function k({ref:_0x2db846,..._0x1d0a15}){const _0x38adde=_0x3c6d,{icon:_0xbcf763,id:_0x2c0994,className:_0x1076ad,extend:_0x5afb17,..._0x422897}=_0x1d0a15,_0x97ea70=(_0x38adde(0x206)+_0x2c0994+'\x20'+(_0x1076ad||''))[_0x38adde(0x210)](),_0x11f29b=_0x26e3e5('_'+Oe());return G(_0xbcf763,''+_0x2c0994,{'defIds':_0xbcf763['defIds'],'idSuffix':_0x11f29b[_0x38adde(0x1d3)]},{'ref':_0x2db846,'className':_0x97ea70,..._0x422897},_0x5afb17);}function G(_0x15c8f0,_0x5e405e,_0x110cda,_0x4befed,_0x56dbf2){const _0x1b87c2=_0x3c6d;return _0x2270b1(_0x15c8f0['tag'],{'key':_0x5e405e,...be(_0x15c8f0,_0x110cda,_0x56dbf2),..._0x4befed},(Ee(_0x15c8f0,_0x110cda)[_0x1b87c2(0x194)]||[])[_0x1b87c2(0x208)]((_0x2ed83d,_0x1e451f)=>G(_0x2ed83d,_0x5e405e+'-'+_0x15c8f0[_0x1b87c2(0x202)]+'-'+_0x1e451f,_0x110cda,void 0x0,_0x56dbf2)));}function be(_0x3c29c7,_0x5c62bc,_0x140ab5){const _0x4a5b06=_0x3c6d,_0x29b48c={..._0x3c29c7['attrs']};_0x140ab5!=null&&_0x140ab5[_0x4a5b06(0x1de)]&&_0x29b48c[_0x4a5b06(0x1dd)]===_0x4a5b06(0x1de)&&(_0x29b48c['fill']=_0x140ab5[_0x4a5b06(0x1de)]),_0x3c29c7[_0x4a5b06(0x202)]==='mask'&&_0x29b48c['id']&&(_0x29b48c['id']=_0x29b48c['id']+_0x5c62bc['idSuffix']),Object[_0x4a5b06(0x204)](_0x29b48c)[_0x4a5b06(0x1f5)](([_0x1969da,_0x193e23])=>{const _0x5e0b39=_0x4a5b06;_0x1969da===_0x5e0b39(0x1fa)&&typeof _0x193e23==_0x5e0b39(0x200)&&(_0x29b48c[_0x1969da]=_0x193e23[_0x5e0b39(0x196)](/url\(#(.*)\)/,_0x5e0b39(0x1e8)+_0x5c62bc[_0x5e0b39(0x168)]+')'));});const {defIds:_0x3db7c}=_0x5c62bc;return!_0x3db7c||_0x3db7c[_0x4a5b06(0x1fc)]===0x0||(_0x3c29c7['tag']===_0x4a5b06(0x1be)&&_0x29b48c[_0x4a5b06(0x1d4)]&&(_0x29b48c['xlink:href']=_0x29b48c['xlink:href']+_0x5c62bc[_0x4a5b06(0x168)]),Object['entries'](_0x29b48c)[_0x4a5b06(0x1f5)](([_0x31c1f0,_0x2737b2])=>{const _0x34a785=_0x4a5b06;typeof _0x2737b2==_0x34a785(0x200)&&(_0x29b48c[_0x31c1f0]=_0x2737b2['replace'](/url\(#(.*)\)/,_0x34a785(0x1e8)+_0x5c62bc[_0x34a785(0x168)]+')'));})),_0x29b48c;}function Ee(_0x108315,_0x9e1250){const _0xab565f=_0x3c6d;var _0x31520a;const {defIds:_0x4f0671}=_0x9e1250;return!_0x4f0671||_0x4f0671[_0xab565f(0x1fc)]===0x0?_0x108315:_0x108315[_0xab565f(0x202)]===_0xab565f(0x1e5)&&((_0x31520a=_0x108315[_0xab565f(0x194)])!=null&&_0x31520a[_0xab565f(0x1fc)])?{..._0x108315,'children':_0x108315[_0xab565f(0x194)][_0xab565f(0x208)](_0x449432=>typeof _0x449432[_0xab565f(0x1fe)]['id']=='string'&&_0x4f0671&&_0x4f0671[_0xab565f(0x1bf)](_0x449432[_0xab565f(0x1fe)]['id'])?{..._0x449432,'attrs':{..._0x449432[_0xab565f(0x1fe)],'id':_0x449432['attrs']['id']+_0x9e1250[_0xab565f(0x168)]}}:_0x449432)}:_0x108315;}function Oe(){const _0x47cf0e=_0x3c6d;return Math[_0x47cf0e(0x188)]()[_0x47cf0e(0x18a)](0x24)[_0x47cf0e(0x1ac)](0x2,0x8);}k[_0x1191b2(0x1ed)]=_0x1191b2(0x174);const we={'tag':_0x1191b2(0x16b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1191b2(0x1e3),'viewBox':'0\x200\x2017\x2017','width':_0x1191b2(0x192),'height':'1em'},'children':[{'tag':_0x1191b2(0x1c7),'attrs':{'fill':_0x1191b2(0x20d),'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':_0x1191b2(0x1c7),'attrs':{'fill':_0x1191b2(0x20d),'d':_0x1191b2(0x207),'fillRule':_0x1191b2(0x16d),'clipRule':'evenodd'}}]},W=_0x229bee(function(_0x55ce6c,_0x4f1fcb){return _0x2270b1(k,Object['assign']({},_0x55ce6c,{'id':'live-share-icon','ref':_0x4f1fcb,'icon':we}));});W['displayName']=_0x1191b2(0x1d6);class L extends _0x42f139{constructor(){const _0x345df2=_0x1191b2;super(...arguments),u(this,_0x345df2(0x1a1),new Set()),u(this,_0x345df2(0x1d2),new Set());}[_0x1191b2(0x19f)](_0x542655){const _0x3e75a3=_0x1191b2;return this[_0x3e75a3(0x1a1)][_0x3e75a3(0x1bb)](_0x542655),_0x1417df(()=>this['_sharedOperations'][_0x3e75a3(0x20f)](_0x542655));}['registerInitialStateReporter'](_0x476a63){const _0x15e42f=_0x1191b2;return this['_reporters'][_0x15e42f(0x1bb)](_0x476a63),_0x1417df(()=>this[_0x15e42f(0x1d2)][_0x15e42f(0x20f)](_0x476a63));}[_0x1191b2(0x17c)](_0x4118f1){const _0x5bc383=_0x1191b2;return this[_0x5bc383(0x1a1)][_0x5bc383(0x20c)](_0x4118f1);}[_0x1191b2(0x173)](_0xf020dc){const _0x76e158=_0x1191b2;return Array[_0x76e158(0x1c4)](this[_0x76e158(0x1d2)])[_0x76e158(0x208)](_0x226d29=>_0x226d29(_0xf020dc));}}var Ne=Object[_0x1191b2(0x1cb)],Y=(_0x495b86,_0x2aa9b8,_0x2f8e1f,_0x496a5b)=>{const _0x57a684=_0x1191b2;for(var _0x444968=_0x496a5b>0x1?void 0x0:_0x496a5b?Ne(_0x2aa9b8,_0x2f8e1f):_0x2aa9b8,_0x3dfa43=_0x495b86[_0x57a684(0x1fc)]-0x1,_0x5aecc4;_0x3dfa43>=0x0;_0x3dfa43--)(_0x5aecc4=_0x495b86[_0x3dfa43])&&(_0x444968=_0x5aecc4(_0x444968)||_0x444968);return _0x444968;},_=(_0x4d1ee7,_0x54bc9a)=>(_0x38f715,_0x390c40)=>_0x54bc9a(_0x38f715,_0x390c40,_0x4d1ee7);let S=class extends _0x12d579{constructor(_0x88e00b,_0x4298e1,_0x3d29e0){const _0x192423=_0x1191b2;super(),u(this,_0x192423(0x186),new Map()),(this[_0x192423(0x17f)]=_0x88e00b,this['_injector']=_0x4298e1,this['_collabSessionService']=_0x3d29e0,this[_0x192423(0x1ec)]());}async['getLiveShareCoordinator'](_0x59d1c3){const _0x1bb3ce=_0x1191b2;return this[_0x1bb3ce(0x186)][_0x1bb3ce(0x20c)](_0x59d1c3)||await this[_0x1bb3ce(0x1b3)](_0x59d1c3),this[_0x1bb3ce(0x186)][_0x1bb3ce(0x191)](_0x59d1c3);}[_0x1191b2(0x177)](_0x358ced){const _0x19f00e=_0x1191b2;var _0x32de33;return(_0x32de33=this[_0x19f00e(0x186)][_0x19f00e(0x191)](_0x358ced))!=null?_0x32de33:null;}['_init'](){const _0x453995=_0x1191b2;this['_univerInstanceService'][_0x453995(0x1d1)](_0x52ac2b[_0x453995(0x180)])['pipe'](_0x1096b2(this[_0x453995(0x18b)]))[_0x453995(0x1f1)](async _0x49d54d=>{const _0x4c7ac7=_0x453995,_0x2e687c=_0x49d54d[_0x4c7ac7(0x1e2)]();this[_0x4c7ac7(0x186)][_0x4c7ac7(0x20c)](_0x2e687c)||this[_0x4c7ac7(0x1b3)](_0x2e687c);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x52ac2b[_0x453995(0x180)])[_0x453995(0x1e9)](_0x1096b2(this[_0x453995(0x18b)]))[_0x453995(0x1f1)](_0x5d8709=>{const _0x3a8720=_0x453995,_0x4c1060=_0x5d8709['getUnitId'](),_0x346756=this[_0x3a8720(0x186)][_0x3a8720(0x191)](_0x4c1060);_0x346756==null||_0x346756[_0x3a8720(0x1eb)]();});}async[_0x1191b2(0x1b3)](_0x5e1e02){const _0x32c6f7=_0x1191b2,_0x1e17ab=await this['_collabSessionService'][_0x32c6f7(0x1da)](_0x5e1e02),_0x1346a3=this[_0x32c6f7(0x197)][_0x32c6f7(0x170)](N,_0x5e1e02,_0x1e17ab);return _0x1346a3['init'](),this[_0x32c6f7(0x186)][_0x32c6f7(0x1b2)](_0x5e1e02,_0x1346a3),_0x1346a3;}};S=Y([_(0x0,_0x13599b),_(0x1,_0x52f490(_0xfcc158)),_(0x2,_0x52f490(_0x46ad75))],S);var c=(_0xc68a38=>(_0xc68a38[_0x1191b2(0x1cc)]=_0x1191b2(0x1ee),_0xc68a38[_0x1191b2(0x20b)]=_0x1191b2(0x1cd),_0xc68a38[_0x1191b2(0x16e)]=_0x1191b2(0x1d8),_0xc68a38[_0x1191b2(0x1b0)]=_0x1191b2(0x201),_0xc68a38[_0x1191b2(0x1f9)]=_0x1191b2(0x1ae),_0xc68a38))(c||{});const Ce=_0x1191b2(0x17e),De=0xc8;let N=class extends _0x12d579{constructor(_0x38ee06,_0x293cfa,_0x227d3a,_0x38960d,_0x10dd83){const _0x509a71=_0x1191b2;super(),u(this,_0x509a71(0x1f2),new _0x4ad1e3(_0x509a71(0x1cd))),u(this,_0x509a71(0x178),this[_0x509a71(0x1f2)][_0x509a71(0x190)]()),u(this,_0x509a71(0x1ec),!0x1),u(this,_0x509a71(0x1e7),null),u(this,_0x509a71(0x171),null),(this[_0x509a71(0x1c9)]=_0x38ee06,this[_0x509a71(0x1bc)]=_0x293cfa,this[_0x509a71(0x16c)]=_0x227d3a,this['_liveShareService']=_0x38960d,this[_0x509a71(0x1e1)]=_0x10dd83);}get[_0x1191b2(0x1e4)](){const _0x3be8cc=_0x1191b2;return this[_0x3be8cc(0x1f2)][_0x3be8cc(0x1a5)]();}[_0x1191b2(0x1eb)](){const _0x3bf7f7=_0x1191b2;var _0x9559a8;(_0x9559a8=this[_0x3bf7f7(0x1e7)])==null||_0x9559a8[_0x3bf7f7(0x1eb)](),this[_0x3bf7f7(0x1f2)][_0x3bf7f7(0x1b1)]('idle'),this[_0x3bf7f7(0x1f2)][_0x3bf7f7(0x1ab)]();}[_0x1191b2(0x19b)](){const _0x17c770=_0x1191b2;return this[_0x17c770(0x1e4)];}[_0x1191b2(0x16a)](){const _0x986724=_0x1191b2;this[_0x986724(0x1ec)]||(this[_0x986724(0x1ec)]=!0x0,this['_collabSession'][_0x986724(0x17d)][_0x986724(0x1e9)](_0x1096b2(this[_0x986724(0x18b)]))[_0x986724(0x1f1)](_0x5061fc=>{const _0x114fed=_0x986724;switch(_0x5061fc){case _0x38f2a3[_0x114fed(0x1cc)]:this[_0x114fed(0x199)]();break;case _0x38f2a3[_0x114fed(0x1d0)]:this[_0x114fed(0x185)]();break;}}),this[_0x986724(0x1bc)][_0x986724(0x1a7)][_0x986724(0x1e9)](_0x1096b2(this[_0x986724(0x18b)]))[_0x986724(0x1f1)](_0x1b57e7=>{const _0x4154a3=_0x986724,{eventID:_0x3d71ee}=_0x1b57e7;switch(_0x3d71ee){case _0x54850e[_0x4154a3(0x20a)]:this[_0x4154a3(0x211)](_0x1b57e7);break;case _0x54850e[_0x4154a3(0x166)]:this[_0x4154a3(0x1f6)](_0x1b57e7);break;case _0x54850e['LIVESHARE_TERMINATE']:this[_0x4154a3(0x1b5)]();break;case _0x54850e[_0x4154a3(0x18d)]:this[_0x4154a3(0x1ef)](_0x1b57e7);break;}}));}[_0x1191b2(0x182)](){const _0x272cac=_0x1191b2;this[_0x272cac(0x1bc)][_0x272cac(0x1d9)]({'eventID':_0x54850e['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x272cac(0x1c9)],'userID':this[_0x272cac(0x1bc)]['getMemberID']()}},this[_0x272cac(0x1c9)]);}[_0x1191b2(0x1c6)](){const _0x381341=_0x1191b2;this[_0x381341(0x1e4)]===_0x381341(0x1ae)&&(this['_status$'][_0x381341(0x1b1)]('idle'),this[_0x381341(0x1bc)][_0x381341(0x1d9)]({'eventID':_0x54850e['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x381341(0x1c9)]));}[_0x1191b2(0x1a6)](){const _0x53e064=_0x1191b2;this[_0x53e064(0x1e4)]===_0x53e064(0x201)&&(this[_0x53e064(0x1f2)][_0x53e064(0x1b1)]('following'),this[_0x53e064(0x20e)]());}[_0x1191b2(0x1b4)](){const _0x561b48=_0x1191b2;this[_0x561b48(0x1e4)]===_0x561b48(0x1d8)&&this[_0x561b48(0x1cf)]();}[_0x1191b2(0x211)](_0x35f29e){const _0x5b0cc6=_0x1191b2,{presenter:_0x7f9b81}=_0x35f29e[_0x5b0cc6(0x1bd)],_0x482ed1=this[_0x5b0cc6(0x1bc)][_0x5b0cc6(0x1ca)]();this['_presenter']=_0x7f9b81,_0x7f9b81===_0x482ed1?(this[_0x5b0cc6(0x1cf)](),this[_0x5b0cc6(0x175)]()):this[_0x5b0cc6(0x1e4)]!=='not-following'&&(this[_0x5b0cc6(0x172)](),this[_0x5b0cc6(0x20e)]());}['_fetchOperations'](){const _0x35b053=_0x1191b2,_0xd85293={'eventID':_0x54850e[_0x35b053(0x1db)]};this[_0x35b053(0x1bc)][_0x35b053(0x1d9)](_0xd85293,this[_0x35b053(0x1c9)]);}[_0x1191b2(0x1b5)](){const _0x1c81b9=_0x1191b2;this[_0x1c81b9(0x171)]=null,this[_0x1c81b9(0x1e4)]!==_0x1c81b9(0x1ae)&&this[_0x1c81b9(0x176)]();}[_0x1191b2(0x1ef)](_0x284dd7){const _0x887c70=_0x1191b2;if(this[_0x887c70(0x1e4)]===_0x887c70(0x1d8)&&this['_presenter']===_0x284dd7[_0x887c70(0x1bd)][_0x887c70(0x1c5)]){const _0x329ab8=_0x4ea61e(_0x284dd7[_0x887c70(0x1bd)])[_0x887c70(0x17a)][_0x887c70(0x1c2)]()[_0x887c70(0x195)](_0x2c1ee7=>_0x2c1ee7['id']===_0x424699['id']);if(_0x329ab8){const _0x49d467=_0x329ab8[_0x887c70(0x193)][_0x887c70(0x1b9)],_0x81f4b0=_0x329ab8[_0x887c70(0x193)][_0x887c70(0x1f8)]['id'];setTimeout(()=>{const _0x21dd88=_0x887c70;this[_0x21dd88(0x1e1)][_0x21dd88(0x1c3)](_0x22d280['id'],{'unitId':_0x49d467,'subUnitId':_0x81f4b0},{'fromCollab':!0x0});});}}}[_0x1191b2(0x175)](){const _0x36a5a0=_0x1191b2;this['_status$'][_0x36a5a0(0x1b1)](_0x36a5a0(0x1ae));const _0x43250b=new Map(),_0x22e6eb=this[_0x36a5a0(0x1e7)]=new _0x12bfa0();_0x22e6eb[_0x36a5a0(0x1bb)](_0x1417df(()=>{const _0x446eb7=_0x36a5a0;_0x43250b[_0x446eb7(0x1f5)](_0xe2b1a3=>_0xe2b1a3[_0x446eb7(0x1ab)]()),_0x43250b[_0x446eb7(0x189)]();})),_0x22e6eb['add'](this[_0x36a5a0(0x1e1)]['onCommandExecuted'](_0x258568=>{const _0x2c4ba8=_0x36a5a0;var _0x537d31;if(_0x258568[_0x2c4ba8(0x1fd)]!==_0x58cba0[_0x2c4ba8(0x181)]||!this['_liveShareService'][_0x2c4ba8(0x17c)](_0x258568['id']))return;const {id:_0x3f04f2}=_0x258568;let _0x55c0e4;_0x43250b['has'](_0x3f04f2)?_0x55c0e4=_0x43250b[_0x2c4ba8(0x191)](_0x3f04f2):(_0x55c0e4=new _0x338e65(),_0x43250b[_0x2c4ba8(0x1b2)](_0x3f04f2,_0x55c0e4),_0x55c0e4['pipe'](_0x23d433((_0x537d31=this['_configService'][_0x2c4ba8(0x1c1)](Ce))!=null?_0x537d31:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c4ba8(0x1f1)](_0x5f4677=>{const _0x16abe5=_0x2c4ba8;this['_collabSession'][_0x16abe5(0x1d9)]({'eventID':_0x54850e[_0x16abe5(0x166)],'data':{'unitID':this[_0x16abe5(0x1c9)],'operations':{[_0x5f4677['id']]:{'id':_0x5f4677['id'],'params':JSON[_0x16abe5(0x1df)](_0x5f4677[_0x16abe5(0x193)])}}}},this[_0x16abe5(0x1c9)]);})),_0x55c0e4[_0x2c4ba8(0x1b1)](_0x258568);})),this[_0x36a5a0(0x16f)]['getInitialStates'](this[_0x36a5a0(0x1c9)])[_0x36a5a0(0x1f5)](_0x5607f5=>this[_0x36a5a0(0x1bc)][_0x36a5a0(0x1d9)]({'eventID':_0x54850e[_0x36a5a0(0x166)],'data':{'unitID':this['_unitID'],'operations':{[_0x5607f5['id']]:{'id':_0x5607f5['id'],'params':JSON[_0x36a5a0(0x1df)](_0x5607f5[_0x36a5a0(0x193)])}}}},this[_0x36a5a0(0x1c9)]));}[_0x1191b2(0x172)](){const _0x36bb17=_0x1191b2;var _0x246115;this['_status$'][_0x36bb17(0x1b1)](_0x36bb17(0x1cd)),(_0x246115=this[_0x36bb17(0x1e7)])==null||_0x246115[_0x36bb17(0x1eb)](),this[_0x36bb17(0x1e7)]=null;}[_0x1191b2(0x20e)](){const _0x338b3d=_0x1191b2;var _0x2b76a4;(_0x2b76a4=this[_0x338b3d(0x1e7)])==null||_0x2b76a4['dispose'](),this[_0x338b3d(0x1f2)][_0x338b3d(0x1b1)](_0x338b3d(0x1d8));}[_0x1191b2(0x176)](){const _0x42bd77=_0x1191b2;var _0x389e24;this[_0x42bd77(0x1f2)][_0x42bd77(0x1b1)](_0x42bd77(0x1cd)),(_0x389e24=this[_0x42bd77(0x1e7)])==null||_0x389e24[_0x42bd77(0x1eb)](),this[_0x42bd77(0x1e7)]=null;}[_0x1191b2(0x1cf)](){const _0x326b8c=_0x1191b2;var _0x172890;this[_0x326b8c(0x1f2)][_0x326b8c(0x1b1)](_0x326b8c(0x201)),(_0x172890=this[_0x326b8c(0x1e7)])==null||_0x172890[_0x326b8c(0x1eb)]();}[_0x1191b2(0x1f6)](_0x212d99){const _0x3d982d=_0x1191b2;if([_0x3d982d(0x1ae),_0x3d982d(0x201),_0x3d982d(0x1ee)]['includes'](this['_status'])||!_0x212d99[_0x3d982d(0x1bd)][_0x3d982d(0x1b6)]||_0x212d99['data']['presenter']===this['_collabSession']['getMemberID']())return;this[_0x3d982d(0x1e4)]===_0x3d982d(0x1cd)&&this[_0x3d982d(0x20e)]();const _0x5b4ed5=_0x212d99[_0x3d982d(0x1bd)][_0x3d982d(0x1e0)];Object[_0x3d982d(0x1f7)](_0x5b4ed5)['forEach'](_0x1ce5fd=>{const _0x2952b5=_0x3d982d;this[_0x2952b5(0x1e1)][_0x2952b5(0x1c3)](_0x1ce5fd['id'],_0x1ce5fd[_0x2952b5(0x193)]?JSON[_0x2952b5(0x1ce)](_0x1ce5fd[_0x2952b5(0x193)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3434ae=_0x1191b2;var _0x5040be;this['_status$'][_0x3434ae(0x1b1)](_0x3434ae(0x1ee)),(_0x5040be=this[_0x3434ae(0x1e7)])==null||_0x5040be['dispose']();}['_handleOnline'](){const _0x1ad42b=_0x1191b2;this[_0x1ad42b(0x1f2)][_0x1ad42b(0x1b1)](_0x1ad42b(0x1cd)),this['_fetchOperations']();}};N=Y([_(0x2,_0x3b6203),_(0x3,_0x52f490(L)),_(0x4,_0x1133a0)],N);function _0x18ef(){const _0x2c07e1=['fill','colorChannel1','stringify','operations','_commandService','getUnitId','none','_status','defs','4569200XiUAfa','_commandDisposable','url(#$1','pipe','1588023xgFIcT','dispose','_init','displayName','offline','_handleNewChangeSets','You\x27re\x20not\x20following\x20the\x20presenter','subscribe','_status$','registerComponent','_uiPartsService','forEach','_handleOperation','values','sheet','PRESENTING','mask','setConfig','length','type','attrs','then','string','not-following','tag','pluginName','entries','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','univerjs-icon\x20univerjs-icon-','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','map','5191WjNups','LIVESHARE_NEW_HOST','IDLE','has','currentColor','_startFollowing','delete','trim','_handleNewHost','LIVESHARE_OPERATION','live-share.config','idSuffix','Start','init','svg','_configService','evenodd','FOLLOWING','_liveShareService','createInstance','_presenter','_stopPresenting','getInitialStates','UniverIcon','_startPresenting','_beIdle','getLiveShareCoordinatorSync','status$','div','mutations','unsubscribe','shouldShareOperation','sessionStatus$','SAME_OPERATION_SHARE_INTERVAL','_univerInstanceService','UNIVER_SHEET','OPERATION','tryStartPresenting','Stop\x20presenting','553856mVrDyc','_handleOnline','_entities','_mountLiveShare','random','clear','toString','dispose$','_config','NEW_CHANGESETS','52ZweQzB','You\x27re\x20following\x20the\x20presenter','asObservable','get','1em','params','children','find','replace','_injector','18nInjSU','_handleOffline','univer-size-4','getStatus','UNIVER_UNKNOWN','549390GdTUZv','getLiveShareCoordinator','registerSharedOperation','onStarting','_sharedOperations','You\x27are\x20offline.','45732gZnCMh','HEADER_MENU','getValue','startFollowing','event$','defineProperty','button','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','complete','substring','getCurrentTypeOfUnit$','presenting','onRendered','NOT_FOLLOWING','next','set','_startLiveShareCoordinator','stopFollowing','_handleTerminate','presenter','override','Stop\x20following','unitId','21htOeON','add','_collabSession','data','use','includes','UNIVER_LIVE_SHARE_PLUGIN','getConfig','reverse','executeCommand','from','memberID','stopPresenting','path','Present\x20this\x20document','_unitID','getMemberID','getOwnPropertyDescriptor','OFFLINE','idle','parse','_stopFollowing','ONLINE','getTypeOfUnitAdded$','_reporters','current','xlink:href','305325bpcbWy','LiveShareIcon','end','following','send','requireSession','LIVESHARE_FETCH_OPERATIONS','univer-mb-3\x20univer-w-full\x20univer-text-sm'];_0x18ef=function(){return _0x2c07e1;};return _0x18ef();}function Le(){const _0x3fc323=_0x1191b2,_0x5be799=_0x13c131(S),_0x29c354=_0x13c131(_0x13599b),_0x2130a8=_0x4a22ff(()=>_0x29c354[_0x3fc323(0x1ad)](_0x52ac2b['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x468fb7,_0x363d66]=_0x4c8df0(null),[_0x585c36,_0x8f7a2d]=_0x4c8df0(c['IDLE']),_0x13b400=_0x26e3e5(null);return _0x2e70ea(()=>(_0x2130a8&&_0x5be799[_0x3fc323(0x19e)](_0x2130a8[_0x3fc323(0x1e2)]())[_0x3fc323(0x1ff)](_0x5bb7fd=>{const _0xdf8946=_0x3fc323;_0x363d66(_0x5bb7fd),_0x13b400[_0xdf8946(0x1d3)]=_0x5bb7fd[_0xdf8946(0x178)]['subscribe'](_0x1a5505=>{_0x8f7a2d(_0x1a5505);});}),()=>{const _0x2794b0=_0x3fc323;var _0xd0e2c8;(_0xd0e2c8=_0x13b400[_0x2794b0(0x1d3)])==null||_0xd0e2c8[_0x2794b0(0x17b)](),_0x13b400[_0x2794b0(0x1d3)]=null;}),[_0x2130a8,_0x5be799]),_0x468fb7?_0x23bdaf(_0xa5e188,{'align':_0x3fc323(0x1d7),'disabled':_0x585c36===c[_0x3fc323(0x1cc)],'className':_0x3fc323(0x205),'overlay':_0x23bdaf(Re,{'status':_0x585c36,'coordinator':_0x468fb7}),'children':_0x23bdaf(_0x3fc323(0x1a9),{'className':_0x5bda25(_0x3fc323(0x1aa),{'univer-cursor-not-allowed':_0x585c36===c[_0x3fc323(0x1cc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x585c36!==c[_0x3fc323(0x1cc)]}),'type':_0x3fc323(0x1a9),'children':_0x23bdaf(W,{'className':_0x3fc323(0x19a)})})}):null;}function Re(_0x4a220f){const _0x1c09ad=_0x1191b2,{status:_0x4cb5e6,coordinator:_0x103fd1}=_0x4a220f;switch(_0x4cb5e6){case c[_0x1c09ad(0x20b)]:return _0x23bdaf($e,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x16e)]:return _0x23bdaf(xe,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x1b0)]:return _0x23bdaf(Pe,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x1cc)]:return _0x23bdaf(Te,{});case c[_0x1c09ad(0x1f9)]:return _0x23bdaf(Ae,{'coordinator':_0x103fd1});default:return null;}}function $e(_0x41c802){const _0x310efb=_0x1191b2,{coordinator:_0x410a14}=_0x41c802;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf(_0x310efb(0x179),{'className':_0x310efb(0x1dc),'children':_0x310efb(0x1c8)}),_0x23bdaf(_0x229044,{'onClick':()=>_0x410a14['tryStartPresenting'](),'children':_0x310efb(0x169)})]});}function xe(_0x480756){const _0x39a72a=_0x1191b2,{coordinator:_0x51204c}=_0x480756;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf('div',{'className':_0x39a72a(0x1dc),'children':_0x39a72a(0x18f)}),_0x23bdaf(_0x229044,{'onClick':()=>_0x51204c[_0x39a72a(0x1b4)](),'children':_0x39a72a(0x1b8)})]});}function Pe(_0x11538d){const _0x523dae=_0x1191b2,{coordinator:_0x44e5c9}=_0x11538d;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf('div',{'className':_0x523dae(0x1dc),'children':_0x523dae(0x1f0)}),_0x23bdaf(_0x229044,{'variant':'text','onClick':()=>_0x44e5c9['startFollowing'](),'children':'Start\x20following'})]});}function Ae(_0x1a0e0f){const _0x1497a0=_0x1191b2,{coordinator:_0x29ba19}=_0x1a0e0f;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf(_0x1497a0(0x179),{'className':_0x1497a0(0x1dc),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x23bdaf(_0x229044,{'variant':'default','onClick':()=>_0x29ba19[_0x1497a0(0x1c6)](),'children':_0x1497a0(0x183)})]});}function Te(){const _0x30693d=_0x1191b2;return _0x23bdaf(_0x2260a2,{'children':_0x30693d(0x1a2)});}var Fe=Object[_0x1191b2(0x1cb)],He=(_0x5ca343,_0x5b619b,_0x13067a,_0x3297af)=>{for(var _0x413a50=_0x3297af>0x1?void 0x0:_0x3297af?Fe(_0x5b619b,_0x13067a):_0x5b619b,_0x334f6c=_0x5ca343['length']-0x1,_0x14e78a;_0x334f6c>=0x0;_0x334f6c--)(_0x14e78a=_0x5ca343[_0x334f6c])&&(_0x413a50=_0x14e78a(_0x413a50)||_0x413a50);return _0x413a50;},A=(_0x23edb1,_0x466f95)=>(_0x1311a5,_0x268e25)=>_0x466f95(_0x1311a5,_0x268e25,_0x23edb1);let m=class extends _0x42f139{constructor(_0x4aea36,_0x330108){const _0x3bb5dc=_0x1191b2;super(),this[_0x3bb5dc(0x197)]=_0x4aea36,this[_0x3bb5dc(0x1f4)]=_0x330108,this[_0x3bb5dc(0x187)]();}[_0x1191b2(0x187)](){const _0x3041c6=_0x1191b2;this['disposeWithMe'](this[_0x3041c6(0x1f4)][_0x3041c6(0x1f3)](_0x344c8b[_0x3041c6(0x1a4)],()=>_0x1f7308(Le,this[_0x3041c6(0x197)])));}};m=He([A(0x0,_0x52f490(_0xfcc158)),A(0x1,_0x40fce5)],m);const ye=_0x1191b2(0x167),T={};var Ue=Object[_0x1191b2(0x1cb)],Ve=(_0x12e81c,_0x10d8ff,_0x4c1d34,_0x14a214)=>{const _0x5e97d3=_0x1191b2;for(var _0x32f752=_0x14a214>0x1?void 0x0:_0x14a214?Ue(_0x10d8ff,_0x4c1d34):_0x10d8ff,_0x3bb14c=_0x12e81c[_0x5e97d3(0x1fc)]-0x1,_0x111bb1;_0x3bb14c>=0x0;_0x3bb14c--)(_0x111bb1=_0x12e81c[_0x3bb14c])&&(_0x32f752=_0x111bb1(_0x32f752)||_0x32f752);return _0x32f752;},je=(_0x5ce6c1,_0x43bc64)=>(_0x20307b,_0x5a2e88)=>_0x43bc64(_0x20307b,_0x5a2e88,_0x5ce6c1);let I=class extends _0x42f139{constructor(_0x276cc9){const _0xdcceaf=_0x1191b2;super(),this[_0xdcceaf(0x16f)]=_0x276cc9,this[_0xdcceaf(0x1ec)]();}['_init'](){const _0x20c950=_0x1191b2;[_0x2e5eb8['id'],_0x4c04a3['id'],_0x22d280['id']][_0x20c950(0x1f5)](_0x4e1022=>{const _0x4ca05a=_0x20c950;this['disposeWithMe'](this[_0x4ca05a(0x16f)][_0x4ca05a(0x19f)](_0x4e1022));});}};I=Ve([je(0x0,_0x52f490(L))],I);var Me=Object[_0x1191b2(0x1a8)],ke=Object[_0x1191b2(0x1cb)],Ge=(_0x430524,_0x4c3d91,_0x2adbd6)=>_0x4c3d91 in _0x430524?Me(_0x430524,_0x4c3d91,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2adbd6}):_0x430524[_0x4c3d91]=_0x2adbd6,We=(_0x4240b8,_0xe2fffc,_0x4b037f,_0x51f531)=>{const _0x247721=_0x1191b2;for(var _0x25052b=_0x51f531>0x1?void 0x0:_0x51f531?ke(_0xe2fffc,_0x4b037f):_0xe2fffc,_0x1411e3=_0x4240b8[_0x247721(0x1fc)]-0x1,_0x401bee;_0x1411e3>=0x0;_0x1411e3--)(_0x401bee=_0x4240b8[_0x1411e3])&&(_0x25052b=_0x401bee(_0x25052b)||_0x25052b);return _0x25052b;},F=(_0x22b2c0,_0x5a2661)=>(_0x375af8,_0x5beab9)=>_0x5a2661(_0x375af8,_0x5beab9,_0x22b2c0),B=(_0x403063,_0x516ba0,_0x2f7d83)=>Ge(_0x403063,typeof _0x516ba0!='symbol'?_0x516ba0+'':_0x516ba0,_0x2f7d83);const Ye=_0x1191b2(0x1c0);let b=class extends _0x597a77{constructor(_0x3e96e2=T,_0x452945,_0x3844ad){const _0x58b97e=_0x1191b2;super(),this[_0x58b97e(0x18c)]=_0x3e96e2,this[_0x58b97e(0x197)]=_0x452945,this[_0x58b97e(0x16c)]=_0x3844ad;const {..._0xde74f8}=_0x8b45b2({},T,this[_0x58b97e(0x18c)]);this['_configService'][_0x58b97e(0x1fb)](ye,_0xde74f8);}[_0x1191b2(0x1a0)](){const _0x3bc167=_0x1191b2;_0x277ea5(this[_0x3bc167(0x197)],_0x1a5bcb([[L],[S],[I],[m]],this[_0x3bc167(0x18c)][_0x3bc167(0x1b7)])),_0x412fe3(this[_0x3bc167(0x197)],[[I]]);}[_0x1191b2(0x1af)](){const _0x46bbf4=_0x1191b2;_0x412fe3(this[_0x46bbf4(0x197)],[[m]]);}};B(b,_0x1191b2(0x1fd),_0x52ac2b[_0x1191b2(0x19c)]),B(b,_0x1191b2(0x203),Ye),b=We([_0x31ac97(_0x42c667),F(0x1,_0x52f490(_0xfcc158)),F(0x2,_0x3b6203)],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 _0xba1afe=_0x1575;(function(_0x238760,_0x2e3550){const _0x1d0baa=_0x1575,_0x4160ab=_0x238760();while(!![]){try{const _0x123a17=-parseInt(_0x1d0baa(0xfc))/0x1+parseInt(_0x1d0baa(0xfd))/0x2*(parseInt(_0x1d0baa(0x112))/0x3)+parseInt(_0x1d0baa(0x109))/0x4*(-parseInt(_0x1d0baa(0xfb))/0x5)+parseInt(_0x1d0baa(0x107))/0x6*(parseInt(_0x1d0baa(0x10e))/0x7)+parseInt(_0x1d0baa(0x10b))/0x8*(-parseInt(_0x1d0baa(0x103))/0x9)+parseInt(_0x1d0baa(0xfe))/0xa+parseInt(_0x1d0baa(0x105))/0xb;if(_0x123a17===_0x2e3550)break;else _0x4160ab['push'](_0x4160ab['shift']());}catch(_0x2a94e9){_0x4160ab['push'](_0x4160ab['shift']());}}}(_0x3050,0xbf777));var l=Object[_0xba1afe(0x10c)],w=(_0x135571,_0xab6bd6,_0xe1bd4c)=>_0xab6bd6 in _0x135571?l(_0x135571,_0xab6bd6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe1bd4c}):_0x135571[_0xab6bd6]=_0xe1bd4c,v=(_0x28711d,_0x5293fe,_0x1401ce)=>w(_0x28711d,typeof _0x5293fe!=_0xba1afe(0x114)?_0x5293fe+'':_0x5293fe,_0x1401ce);function _0x1575(_0x27819f,_0x41beae){_0x27819f=_0x27819f-0xfa;const _0x305017=_0x3050();let _0x1575c0=_0x305017[_0x27819f];return _0x1575c0;}function _0x3050(){const _0x2b0130=['_liveShareController','startFollowing','getLiveShareCoordinatorSync','20zOwBkI','239137Jpptex','2syNJtz','6159480NWdJzj','extend','tryStartPresenting','UNIVER_SHEET','get','3152853OHMhUX','stopFollowing','15673504gzEPgl','startPresenting','1009062AofoPm','stopPresenting','446588yHebts','No\x20active\x20workbook\x20found.','32KYZjDW','defineProperty','_injector','7lKHSpk','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','getCurrentUnitOfType','1986753iVkPuo','IDLE','symbol','getUnitId'];_0x3050=function(){return _0x2b0130;};return _0x3050();}import{LiveShareController as _0x368e14,LiveShareStatus as _0x197484}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x372a33,UniverInstanceType as _0x462e53}from'@univerjs/core';import{FUniver as _0x3fb83b,FEnum as _0x3235b8}from'@univerjs/core/facade';class g extends _0x3fb83b{constructor(){const _0x22202e=_0xba1afe;super(...arguments),v(this,_0x22202e(0x116));}['_initialize'](_0x237f06){const _0x3c3a3a=_0xba1afe;this[_0x3c3a3a(0x116)]=_0x237f06[_0x3c3a3a(0x102)](_0x368e14);}['getLiveShareStatus'](){const _0x22cdb4=_0xba1afe;var _0x57b6ec;const _0x13f37f=this[_0x22cdb4(0x10d)][_0x22cdb4(0x102)](_0x372a33)[_0x22cdb4(0x111)](_0x462e53['UNIVER_SHEET']);if(!_0x13f37f)throw new Error(_0x22cdb4(0x10a));const _0x8af84a=_0x13f37f[_0x22cdb4(0x115)](),_0x17bc84=this[_0x22cdb4(0x116)][_0x22cdb4(0xfa)](_0x8af84a);return(_0x57b6ec=_0x17bc84==null?void 0x0:_0x17bc84[_0x22cdb4(0x110)]())!=null?_0x57b6ec:_0x197484[_0x22cdb4(0x113)];}[_0xba1afe(0x117)](){const _0x135714=_0xba1afe,_0x154412=this['_injector'][_0x135714(0x102)](_0x372a33)['getCurrentUnitOfType'](_0x462e53['UNIVER_SHEET']);if(!_0x154412)throw new Error(_0x135714(0x10a));const _0xe62c89=_0x154412[_0x135714(0x115)](),_0x2c12fb=this['_liveShareController'][_0x135714(0xfa)](_0xe62c89);if(!_0x2c12fb)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2c12fb[_0x135714(0x117)]();}[_0xba1afe(0x104)](){const _0x2827d9=_0xba1afe,_0x2ab2c1=this[_0x2827d9(0x10d)]['get'](_0x372a33)[_0x2827d9(0x111)](_0x462e53[_0x2827d9(0x101)]);if(!_0x2ab2c1)throw new Error(_0x2827d9(0x10a));const _0xc846d8=_0x2ab2c1[_0x2827d9(0x115)](),_0x439a8f=this[_0x2827d9(0x116)]['getLiveShareCoordinatorSync'](_0xc846d8);if(!_0x439a8f)throw new Error(_0x2827d9(0x10f));_0x439a8f[_0x2827d9(0x104)]();}[_0xba1afe(0x106)](){const _0x5ba1af=_0xba1afe,_0x660d34=this[_0x5ba1af(0x10d)][_0x5ba1af(0x102)](_0x372a33)[_0x5ba1af(0x111)](_0x462e53[_0x5ba1af(0x101)]);if(!_0x660d34)throw new Error(_0x5ba1af(0x10a));const _0x321573=_0x660d34[_0x5ba1af(0x115)](),_0x3fc79f=this[_0x5ba1af(0x116)][_0x5ba1af(0xfa)](_0x321573);if(!_0x3fc79f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3fc79f[_0x5ba1af(0x100)]();}[_0xba1afe(0x108)](){const _0x4f1831=_0xba1afe,_0x25d029=this[_0x4f1831(0x10d)]['get'](_0x372a33)[_0x4f1831(0x111)](_0x462e53[_0x4f1831(0x101)]);if(!_0x25d029)throw new Error(_0x4f1831(0x10a));const _0x2662de=_0x25d029['getUnitId'](),_0x5c9cf1=this[_0x4f1831(0x116)][_0x4f1831(0xfa)](_0x2662de);if(!_0x5c9cf1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5c9cf1['stopPresenting']();}}_0x3fb83b['extend'](g);class f extends _0x3235b8{get['LiveShareStatusEnum'](){return _0x197484;}}_0x3235b8[_0xba1afe(0xff)](f);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x592408=_0x293d;(function(_0x38139e,_0x34835c){const _0x5bc4f0=_0x293d,_0x2d1908=_0x38139e();while(!![]){try{const _0x1aa606=parseInt(_0x5bc4f0(0x20e))/0x1*(-parseInt(_0x5bc4f0(0x24d))/0x2)+-parseInt(_0x5bc4f0(0x235))/0x3+-parseInt(_0x5bc4f0(0x1e4))/0x4+parseInt(_0x5bc4f0(0x22d))/0x5+parseInt(_0x5bc4f0(0x218))/0x6+-parseInt(_0x5bc4f0(0x21d))/0x7+parseInt(_0x5bc4f0(0x242))/0x8;if(_0x1aa606===_0x34835c)break;else _0x2d1908['push'](_0x2d1908['shift']());}catch(_0x4702e9){_0x2d1908['push'](_0x2d1908['shift']());}}}(_0x40ff,0x9ef19));var J=Object[_0x592408(0x1d4)],K=(_0x25694b,_0x5775e6,_0x463e02)=>_0x5775e6 in _0x25694b?J(_0x25694b,_0x5775e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x463e02}):_0x25694b[_0x5775e6]=_0x463e02,u=(_0x12abe7,_0x35b39c,_0x38c3c7)=>K(_0x12abe7,typeof _0x35b39c!='symbol'?_0x35b39c+'':_0x35b39c,_0x38c3c7);import{Disposable as _0x33ef8e,toDisposable as _0x20dd5b,IUniverInstanceService as _0x53f99e,Inject as _0x311fb0,Injector as _0x24ee9e,IConfigService as _0x3de0b0,ICommandService as _0x148cf9,RxDisposable as _0x1c3605,UniverInstanceType as _0x538a9c,DisposableCollection as _0x3daf0f,CommandType as _0x4f6879,DependentOn as _0x23f815,Plugin as _0x13b402,merge as _0x1bcd48,registerDependencies as _0x135b87,mergeOverrideWithDependencies as _0x1312ff,touchDependencies as _0x8d80af}from'@univerjs/core';import{useDependency as _0x204cae,useObservable as _0xb7854a,IUIPartsService as _0x8de62a,BuiltInUIPart as _0x11ce85,connectInjector as _0x4f5fb6}from'@univerjs/ui';import{jsx as _0x4a42da,jsxs as _0x38eaf4,Fragment as _0x29e3a5}from'react/jsx-runtime';import{Dropdown as _0x9f7729,clsx as _0x421684,Button as _0x24ed50}from'@univerjs/design';import{useRef as _0x20004a,createElement as _0x5ab196,forwardRef as _0x3fde48,useState as _0x4a1d9e,useEffect as _0x1e0d3a}from'react';import{CollaborationEvent as _0x2c77f3,parseProtocolChangeset as _0xbe98ce}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x34794b,SessionStatus as _0x34eb0b,UniverCollaborationClientPlugin as _0x3d09b1}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4a66bf,SetWorksheetActiveOperation as _0xc6f41a}from'@univerjs/sheets';import{BehaviorSubject as _0x5eee04,Subject as _0x402774}from'rxjs';import{takeUntil as _0x2f8329,throttleTime as _0x598727}from'rxjs/operators';import{SetZoomRatioOperation as _0x26ffad,SetScrollOperation as _0xeb207}from'@univerjs/sheets-ui';function k({ref:_0x27b357,..._0x8aadbc}){const _0x31a1dd=_0x592408,{icon:_0x3897d1,id:_0x1be106,className:_0x5589c4,extend:_0x2ccd93,..._0x3b6fee}=_0x8aadbc,_0x496bd4=('univerjs-icon\x20univerjs-icon-'+_0x1be106+'\x20'+(_0x5589c4||''))['trim'](),_0x3c9c50=_0x20004a('_'+Oe());return G(_0x3897d1,''+_0x1be106,{'defIds':_0x3897d1['defIds'],'idSuffix':_0x3c9c50[_0x31a1dd(0x1ee)]},{'ref':_0x27b357,'className':_0x496bd4,..._0x3b6fee},_0x2ccd93);}function G(_0x280e8b,_0x37d25c,_0x40d904,_0x4be9bd,_0x27bf3d){const _0x54de1c=_0x592408;return _0x5ab196(_0x280e8b['tag'],{'key':_0x37d25c,...be(_0x280e8b,_0x40d904,_0x27bf3d),..._0x4be9bd},(Ee(_0x280e8b,_0x40d904)[_0x54de1c(0x23e)]||[])[_0x54de1c(0x215)]((_0x26490c,_0x2bb720)=>G(_0x26490c,_0x37d25c+'-'+_0x280e8b[_0x54de1c(0x24a)]+'-'+_0x2bb720,_0x40d904,void 0x0,_0x27bf3d)));}function be(_0x3c5c0a,_0x3398da,_0x47ee34){const _0x55a73f=_0x592408,_0x1ead94={..._0x3c5c0a[_0x55a73f(0x1ca)]};_0x47ee34!=null&&_0x47ee34['colorChannel1']&&_0x1ead94['fill']===_0x55a73f(0x213)&&(_0x1ead94[_0x55a73f(0x1e2)]=_0x47ee34[_0x55a73f(0x213)]),_0x3c5c0a['tag']==='mask'&&_0x1ead94['id']&&(_0x1ead94['id']=_0x1ead94['id']+_0x3398da[_0x55a73f(0x1dd)]),Object[_0x55a73f(0x20d)](_0x1ead94)[_0x55a73f(0x246)](([_0x1a55fd,_0x5981b0])=>{const _0x23e574=_0x55a73f;_0x1a55fd===_0x23e574(0x202)&&typeof _0x5981b0==_0x23e574(0x1ae)&&(_0x1ead94[_0x1a55fd]=_0x5981b0[_0x23e574(0x208)](/url\(#(.*)\)/,'url(#$1'+_0x3398da[_0x23e574(0x1dd)]+')'));});const {defIds:_0x5a5b75}=_0x3398da;return!_0x5a5b75||_0x5a5b75['length']===0x0||(_0x3c5c0a[_0x55a73f(0x24a)]===_0x55a73f(0x23f)&&_0x1ead94['xlink:href']&&(_0x1ead94[_0x55a73f(0x1dc)]=_0x1ead94[_0x55a73f(0x1dc)]+_0x3398da[_0x55a73f(0x1dd)]),Object[_0x55a73f(0x20d)](_0x1ead94)[_0x55a73f(0x246)](([_0x3367cc,_0x48a836])=>{const _0x5a80b3=_0x55a73f;typeof _0x48a836==_0x5a80b3(0x1ae)&&(_0x1ead94[_0x3367cc]=_0x48a836['replace'](/url\(#(.*)\)/,'url(#$1'+_0x3398da[_0x5a80b3(0x1dd)]+')'));})),_0x1ead94;}function Ee(_0x192aae,_0x4322e2){const _0x44136d=_0x592408;var _0x469cdb;const {defIds:_0x23b6a2}=_0x4322e2;return!_0x23b6a2||_0x23b6a2[_0x44136d(0x244)]===0x0?_0x192aae:_0x192aae[_0x44136d(0x24a)]==='defs'&&((_0x469cdb=_0x192aae[_0x44136d(0x23e)])!=null&&_0x469cdb['length'])?{..._0x192aae,'children':_0x192aae[_0x44136d(0x23e)][_0x44136d(0x215)](_0x21694a=>typeof _0x21694a[_0x44136d(0x1ca)]['id']=='string'&&_0x23b6a2&&_0x23b6a2[_0x44136d(0x1f3)](_0x21694a[_0x44136d(0x1ca)]['id'])?{..._0x21694a,'attrs':{..._0x21694a[_0x44136d(0x1ca)],'id':_0x21694a[_0x44136d(0x1ca)]['id']+_0x4322e2[_0x44136d(0x1dd)]}}:_0x21694a)}:_0x192aae;}function Oe(){const _0x64d690=_0x592408;return Math[_0x64d690(0x225)]()[_0x64d690(0x230)](0x24)[_0x64d690(0x228)](0x2,0x8);}k['displayName']=_0x592408(0x232);const we={'tag':'svg','attrs':{'xmlns':_0x592408(0x20b),'fill':_0x592408(0x1c2),'viewBox':_0x592408(0x227),'width':'1em','height':'1em'},'children':[{'tag':_0x592408(0x223),'attrs':{'fill':_0x592408(0x1d1),'d':_0x592408(0x1fe)}},{'tag':_0x592408(0x223),'attrs':{'fill':_0x592408(0x1d1),'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'}}]},W=_0x3fde48(function(_0x395d52,_0x4d971a){const _0x218af1=_0x592408;return _0x5ab196(k,Object[_0x218af1(0x1e6)]({},_0x395d52,{'id':_0x218af1(0x212),'ref':_0x4d971a,'icon':we}));});W[_0x592408(0x1f0)]=_0x592408(0x21c);class L extends _0x33ef8e{constructor(){const _0x13e232=_0x592408;super(...arguments),u(this,_0x13e232(0x1af),new Set()),u(this,_0x13e232(0x217),new Set());}['registerSharedOperation'](_0x48d44c){const _0x237079=_0x592408;return this['_sharedOperations'][_0x237079(0x245)](_0x48d44c),_0x20dd5b(()=>this[_0x237079(0x1af)][_0x237079(0x1d6)](_0x48d44c));}[_0x592408(0x1ce)](_0x1f2f06){const _0xb1e29a=_0x592408;return this['_reporters'][_0xb1e29a(0x245)](_0x1f2f06),_0x20dd5b(()=>this['_reporters']['delete'](_0x1f2f06));}[_0x592408(0x1fb)](_0x3dbbb4){const _0x5024b0=_0x592408;return this[_0x5024b0(0x1af)][_0x5024b0(0x1b4)](_0x3dbbb4);}['getInitialStates'](_0x1a2470){const _0x5d2471=_0x592408;return Array[_0x5d2471(0x248)](this[_0x5d2471(0x217)])[_0x5d2471(0x215)](_0x3f337f=>_0x3f337f(_0x1a2470));}}var Ne=Object[_0x592408(0x1f8)],Y=(_0x5a55d4,_0x303de6,_0x5bd326,_0x88f0d0)=>{const _0x16006a=_0x592408;for(var _0x1f2db4=_0x88f0d0>0x1?void 0x0:_0x88f0d0?Ne(_0x303de6,_0x5bd326):_0x303de6,_0x3c04d5=_0x5a55d4[_0x16006a(0x244)]-0x1,_0x3d44b2;_0x3c04d5>=0x0;_0x3c04d5--)(_0x3d44b2=_0x5a55d4[_0x3c04d5])&&(_0x1f2db4=_0x3d44b2(_0x1f2db4)||_0x1f2db4);return _0x1f2db4;},_=(_0x29c6ae,_0x46f958)=>(_0x52d675,_0x447703)=>_0x46f958(_0x52d675,_0x447703,_0x29c6ae);let S=class extends _0x1c3605{constructor(_0x2d81b5,_0x22f4aa,_0x4ed05f){const _0x4a7a6e=_0x592408;super(),u(this,_0x4a7a6e(0x24c),new Map()),(this['_univerInstanceService']=_0x2d81b5,this['_injector']=_0x22f4aa,this[_0x4a7a6e(0x24f)]=_0x4ed05f,this['_init']());}async[_0x592408(0x1d5)](_0x234e50){const _0x1edb53=_0x592408;return this[_0x1edb53(0x24c)][_0x1edb53(0x1b4)](_0x234e50)||await this[_0x1edb53(0x1bf)](_0x234e50),this[_0x1edb53(0x24c)][_0x1edb53(0x1d8)](_0x234e50);}[_0x592408(0x22f)](_0xd8c30){const _0x1d0e4b=_0x592408;var _0x9d0516;return(_0x9d0516=this[_0x1d0e4b(0x24c)][_0x1d0e4b(0x1d8)](_0xd8c30))!=null?_0x9d0516:null;}[_0x592408(0x1ff)](){const _0x22d9d0=_0x592408;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x538a9c[_0x22d9d0(0x247)])['pipe'](_0x2f8329(this[_0x22d9d0(0x1d2)]))[_0x22d9d0(0x1fa)](async _0x564d05=>{const _0x577942=_0x22d9d0,_0x58f3d7=_0x564d05[_0x577942(0x22e)]();this[_0x577942(0x24c)][_0x577942(0x1b4)](_0x58f3d7)||this[_0x577942(0x1bf)](_0x58f3d7);}),this[_0x22d9d0(0x236)][_0x22d9d0(0x21a)](_0x538a9c[_0x22d9d0(0x247)])[_0x22d9d0(0x1d9)](_0x2f8329(this[_0x22d9d0(0x1d2)]))[_0x22d9d0(0x1fa)](_0x4c3b6b=>{const _0x48b16b=_0x22d9d0,_0x119eec=_0x4c3b6b[_0x48b16b(0x22e)](),_0xca6e10=this[_0x48b16b(0x24c)][_0x48b16b(0x1d8)](_0x119eec);_0xca6e10==null||_0xca6e10[_0x48b16b(0x1d0)]();});}async[_0x592408(0x1bf)](_0x436f00){const _0x1155cb=_0x592408,_0x4c3720=await this['_collabSessionService'][_0x1155cb(0x1db)](_0x436f00),_0x131bd0=this[_0x1155cb(0x1b2)][_0x1155cb(0x216)](N,_0x436f00,_0x4c3720);return _0x131bd0[_0x1155cb(0x209)](),this[_0x1155cb(0x24c)][_0x1155cb(0x1bc)](_0x436f00,_0x131bd0),_0x131bd0;}};S=Y([_(0x0,_0x53f99e),_(0x1,_0x311fb0(_0x24ee9e)),_(0x2,_0x311fb0(_0x34794b))],S);var c=(_0x34dd14=>(_0x34dd14[_0x592408(0x21e)]=_0x592408(0x1e3),_0x34dd14[_0x592408(0x1b1)]='idle',_0x34dd14[_0x592408(0x226)]=_0x592408(0x1f6),_0x34dd14['NOT_FOLLOWING']=_0x592408(0x1cd),_0x34dd14[_0x592408(0x203)]='presenting',_0x34dd14))(c||{});const Ce=_0x592408(0x1b0),De=0xc8;let N=class extends _0x1c3605{constructor(_0x417e43,_0x3ddf84,_0x40872e,_0x22dbd0,_0x3d40d9){const _0x46cf5e=_0x592408;super(),u(this,_0x46cf5e(0x201),new _0x5eee04(_0x46cf5e(0x1ba))),u(this,_0x46cf5e(0x1f5),this['_status$'][_0x46cf5e(0x1eb)]()),u(this,_0x46cf5e(0x1ff),!0x1),u(this,_0x46cf5e(0x1c1),null),u(this,_0x46cf5e(0x1c7),null),(this[_0x46cf5e(0x1c8)]=_0x417e43,this['_collabSession']=_0x3ddf84,this[_0x46cf5e(0x1ac)]=_0x40872e,this[_0x46cf5e(0x211)]=_0x22dbd0,this['_commandService']=_0x3d40d9);}get['_status'](){const _0x5dfec7=_0x592408;return this['_status$'][_0x5dfec7(0x205)]();}[_0x592408(0x1d0)](){const _0x2bcc83=_0x592408;var _0x40e54d;(_0x40e54d=this[_0x2bcc83(0x1c1)])==null||_0x40e54d[_0x2bcc83(0x1d0)](),this[_0x2bcc83(0x201)][_0x2bcc83(0x1c3)]('idle'),this[_0x2bcc83(0x201)]['complete']();}['getStatus'](){const _0x274a14=_0x592408;return this[_0x274a14(0x200)];}[_0x592408(0x209)](){const _0x59ced1=_0x592408;this[_0x59ced1(0x1ff)]||(this[_0x59ced1(0x1ff)]=!0x0,this[_0x59ced1(0x1c6)][_0x59ced1(0x1ea)][_0x59ced1(0x1d9)](_0x2f8329(this[_0x59ced1(0x1d2)]))['subscribe'](_0x582ae2=>{const _0x25e366=_0x59ced1;switch(_0x582ae2){case _0x34eb0b[_0x25e366(0x21e)]:this[_0x25e366(0x222)]();break;case _0x34eb0b[_0x25e366(0x210)]:this[_0x25e366(0x1bb)]();break;}}),this[_0x59ced1(0x1c6)]['event$'][_0x59ced1(0x1d9)](_0x2f8329(this[_0x59ced1(0x1d2)]))[_0x59ced1(0x1fa)](_0xf58ae3=>{const _0x4e3c8a=_0x59ced1,{eventID:_0x4eb6bc}=_0xf58ae3;switch(_0x4eb6bc){case _0x2c77f3[_0x4e3c8a(0x220)]:this[_0x4e3c8a(0x234)](_0xf58ae3);break;case _0x2c77f3['LIVESHARE_OPERATION']:this[_0x4e3c8a(0x1d7)](_0xf58ae3);break;case _0x2c77f3[_0x4e3c8a(0x1df)]:this[_0x4e3c8a(0x224)]();break;case _0x2c77f3[_0x4e3c8a(0x24e)]:this[_0x4e3c8a(0x20f)](_0xf58ae3);break;}}));}[_0x592408(0x23b)](){const _0x1bb5ea=_0x592408;this['_collabSession'][_0x1bb5ea(0x1ef)]({'eventID':_0x2c77f3[_0x1bb5ea(0x1b9)],'data':{'unitID':this[_0x1bb5ea(0x1c8)],'userID':this[_0x1bb5ea(0x1c6)][_0x1bb5ea(0x1cc)]()}},this[_0x1bb5ea(0x1c8)]);}[_0x592408(0x1fd)](){const _0x6d8a06=_0x592408;this[_0x6d8a06(0x200)]===_0x6d8a06(0x1cf)&&(this['_status$'][_0x6d8a06(0x1c3)](_0x6d8a06(0x1ba)),this[_0x6d8a06(0x1c6)]['send']({'eventID':_0x2c77f3[_0x6d8a06(0x1df)],'data':{'unitID':this[_0x6d8a06(0x1c8)]}},this[_0x6d8a06(0x1c8)]));}[_0x592408(0x1f1)](){const _0x4d78e2=_0x592408;this[_0x4d78e2(0x200)]===_0x4d78e2(0x1cd)&&(this[_0x4d78e2(0x201)]['next'](_0x4d78e2(0x1f6)),this['_startFollowing']());}[_0x592408(0x1be)](){const _0x417637=_0x592408;this[_0x417637(0x200)]===_0x417637(0x1f6)&&this['_stopFollowing']();}[_0x592408(0x234)](_0x49c768){const _0x4688b8=_0x592408,{presenter:_0x75bb78}=_0x49c768[_0x4688b8(0x1f2)],_0x291a99=this['_collabSession'][_0x4688b8(0x1cc)]();this[_0x4688b8(0x1c7)]=_0x75bb78,_0x75bb78===_0x291a99?(this[_0x4688b8(0x21b)](),this[_0x4688b8(0x207)]()):this['_status']!==_0x4688b8(0x1cd)&&(this[_0x4688b8(0x1d3)](),this['_startFollowing']());}[_0x592408(0x23a)](){const _0xafa2ec=_0x592408,_0x5c4ec9={'eventID':_0x2c77f3[_0xafa2ec(0x1f4)]};this['_collabSession'][_0xafa2ec(0x1ef)](_0x5c4ec9,this[_0xafa2ec(0x1c8)]);}[_0x592408(0x224)](){const _0x277b95=_0x592408;this[_0x277b95(0x1c7)]=null,this['_status']!==_0x277b95(0x1cf)&&this[_0x277b95(0x238)]();}[_0x592408(0x20f)](_0x2135e3){const _0x587d22=_0x592408;if(this[_0x587d22(0x200)]===_0x587d22(0x1f6)&&this[_0x587d22(0x1c7)]===_0x2135e3[_0x587d22(0x1f2)][_0x587d22(0x221)]){const _0x390eec=_0xbe98ce(_0x2135e3[_0x587d22(0x1f2)])['mutations']['reverse']()['find'](_0x21ab2e=>_0x21ab2e['id']===_0x4a66bf['id']);if(_0x390eec){const _0x5831dc=_0x390eec['params'][_0x587d22(0x1f9)],_0x321222=_0x390eec[_0x587d22(0x1ed)][_0x587d22(0x1e1)]['id'];setTimeout(()=>{const _0x5e311e=_0x587d22;this[_0x5e311e(0x229)][_0x5e311e(0x206)](_0xc6f41a['id'],{'unitId':_0x5831dc,'subUnitId':_0x321222},{'fromCollab':!0x0});});}}}[_0x592408(0x207)](){const _0x4200e7=_0x592408;this[_0x4200e7(0x201)][_0x4200e7(0x1c3)](_0x4200e7(0x1cf));const _0x52bef0=new Map(),_0xd9b92e=this[_0x4200e7(0x1c1)]=new _0x3daf0f();_0xd9b92e['add'](_0x20dd5b(()=>{const _0x2ab5e7=_0x4200e7;_0x52bef0[_0x2ab5e7(0x246)](_0x390319=>_0x390319['complete']()),_0x52bef0[_0x2ab5e7(0x219)]();})),_0xd9b92e[_0x4200e7(0x245)](this[_0x4200e7(0x229)][_0x4200e7(0x237)](_0x37f7ee=>{const _0x2d0503=_0x4200e7;var _0x32a5ce;if(_0x37f7ee[_0x2d0503(0x1c9)]!==_0x4f6879[_0x2d0503(0x1e7)]||!this['_liveShareService'][_0x2d0503(0x1fb)](_0x37f7ee['id']))return;const {id:_0x74279a}=_0x37f7ee;let _0x3a33f0;_0x52bef0[_0x2d0503(0x1b4)](_0x74279a)?_0x3a33f0=_0x52bef0[_0x2d0503(0x1d8)](_0x74279a):(_0x3a33f0=new _0x402774(),_0x52bef0[_0x2d0503(0x1bc)](_0x74279a,_0x3a33f0),_0x3a33f0[_0x2d0503(0x1d9)](_0x598727((_0x32a5ce=this['_configService'][_0x2d0503(0x241)](Ce))!=null?_0x32a5ce:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2d0503(0x1fa)](_0x4a37d6=>{const _0x409813=_0x2d0503;this[_0x409813(0x1c6)][_0x409813(0x1ef)]({'eventID':_0x2c77f3[_0x409813(0x23d)],'data':{'unitID':this[_0x409813(0x1c8)],'operations':{[_0x4a37d6['id']]:{'id':_0x4a37d6['id'],'params':JSON['stringify'](_0x4a37d6[_0x409813(0x1ed)])}}}},this[_0x409813(0x1c8)]);})),_0x3a33f0[_0x2d0503(0x1c3)](_0x37f7ee);})),this['_liveShareService'][_0x4200e7(0x23c)](this['_unitID'])[_0x4200e7(0x246)](_0x138c81=>this['_collabSession'][_0x4200e7(0x1ef)]({'eventID':_0x2c77f3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4200e7(0x1c8)],'operations':{[_0x138c81['id']]:{'id':_0x138c81['id'],'params':JSON[_0x4200e7(0x204)](_0x138c81[_0x4200e7(0x1ed)])}}}},this['_unitID']));}[_0x592408(0x1d3)](){const _0x569646=_0x592408;var _0x3cb3aa;this[_0x569646(0x201)][_0x569646(0x1c3)](_0x569646(0x1ba)),(_0x3cb3aa=this[_0x569646(0x1c1)])==null||_0x3cb3aa[_0x569646(0x1d0)](),this[_0x569646(0x1c1)]=null;}[_0x592408(0x1b6)](){const _0x3b6c97=_0x592408;var _0x1a1c32;(_0x1a1c32=this[_0x3b6c97(0x1c1)])==null||_0x1a1c32[_0x3b6c97(0x1d0)](),this[_0x3b6c97(0x201)][_0x3b6c97(0x1c3)](_0x3b6c97(0x1f6));}['_beIdle'](){const _0x4d375d=_0x592408;var _0x10dae2;this['_status$'][_0x4d375d(0x1c3)](_0x4d375d(0x1ba)),(_0x10dae2=this[_0x4d375d(0x1c1)])==null||_0x10dae2[_0x4d375d(0x1d0)](),this[_0x4d375d(0x1c1)]=null;}[_0x592408(0x21b)](){const _0x541b13=_0x592408;var _0xfe4b6;this[_0x541b13(0x201)][_0x541b13(0x1c3)](_0x541b13(0x1cd)),(_0xfe4b6=this[_0x541b13(0x1c1)])==null||_0xfe4b6['dispose']();}[_0x592408(0x1d7)](_0x40b74a){const _0x37e93a=_0x592408;if(['presenting',_0x37e93a(0x1cd),_0x37e93a(0x1e3)][_0x37e93a(0x1f3)](this[_0x37e93a(0x200)])||!_0x40b74a[_0x37e93a(0x1f2)][_0x37e93a(0x249)]||_0x40b74a['data']['presenter']===this[_0x37e93a(0x1c6)][_0x37e93a(0x1cc)]())return;this[_0x37e93a(0x200)]===_0x37e93a(0x1ba)&&this['_startFollowing']();const _0x408097=_0x40b74a['data'][_0x37e93a(0x243)];Object['values'](_0x408097)['forEach'](_0x566915=>{const _0x2f7d38=_0x37e93a;this[_0x2f7d38(0x229)]['executeCommand'](_0x566915['id'],_0x566915[_0x2f7d38(0x1ed)]?JSON['parse'](_0x566915['params']):null,{'fromCollab':!0x0});});}[_0x592408(0x222)](){const _0x449f0a=_0x592408;var _0xdc7d27;this[_0x449f0a(0x201)][_0x449f0a(0x1c3)](_0x449f0a(0x1e3)),(_0xdc7d27=this[_0x449f0a(0x1c1)])==null||_0xdc7d27[_0x449f0a(0x1d0)]();}[_0x592408(0x1bb)](){const _0x2414b5=_0x592408;this[_0x2414b5(0x201)]['next'](_0x2414b5(0x1ba)),this[_0x2414b5(0x23a)]();}};N=Y([_(0x2,_0x3de0b0),_(0x3,_0x311fb0(L)),_(0x4,_0x148cf9)],N);function Le(){const _0x1b272a=_0x592408,_0x5028e8=_0x204cae(S),_0x69a3f0=_0x204cae(_0x53f99e),_0x560d12=_0xb7854a(()=>_0x69a3f0[_0x1b272a(0x1c0)](_0x538a9c[_0x1b272a(0x247)]),void 0x0,!0x1,[]),[_0x357fff,_0x316b66]=_0x4a1d9e(null),[_0x37f0a5,_0x3ed1ca]=_0x4a1d9e(c['IDLE']),_0x469dbd=_0x20004a(null);return _0x1e0d3a(()=>(_0x560d12&&_0x5028e8['getLiveShareCoordinator'](_0x560d12[_0x1b272a(0x22e)]())[_0x1b272a(0x24b)](_0x27e0f2=>{const _0x222a12=_0x1b272a;_0x316b66(_0x27e0f2),_0x469dbd['current']=_0x27e0f2[_0x222a12(0x1f5)][_0x222a12(0x1fa)](_0x2ec750=>{_0x3ed1ca(_0x2ec750);});}),()=>{const _0x22fd6b=_0x1b272a;var _0x4cca82;(_0x4cca82=_0x469dbd[_0x22fd6b(0x1ee)])==null||_0x4cca82[_0x22fd6b(0x1cb)](),_0x469dbd['current']=null;}),[_0x560d12,_0x5028e8]),_0x357fff?_0x4a42da(_0x9f7729,{'align':_0x1b272a(0x1c4),'disabled':_0x37f0a5===c['OFFLINE'],'className':_0x1b272a(0x1e5),'overlay':_0x4a42da(Re,{'status':_0x37f0a5,'coordinator':_0x357fff}),'children':_0x4a42da('button',{'className':_0x421684(_0x1b272a(0x1b3),{'univer-cursor-not-allowed':_0x37f0a5===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x37f0a5!==c[_0x1b272a(0x21e)]}),'type':_0x1b272a(0x214),'children':_0x4a42da(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2f3259){const _0x511d50=_0x592408,{status:_0x4d06e9,coordinator:_0x143c35}=_0x2f3259;switch(_0x4d06e9){case c[_0x511d50(0x1b1)]:return _0x4a42da($e,{'coordinator':_0x143c35});case c[_0x511d50(0x226)]:return _0x4a42da(xe,{'coordinator':_0x143c35});case c[_0x511d50(0x1b7)]:return _0x4a42da(Pe,{'coordinator':_0x143c35});case c[_0x511d50(0x21e)]:return _0x4a42da(Te,{});case c[_0x511d50(0x203)]:return _0x4a42da(Ae,{'coordinator':_0x143c35});default:return null;}}function $e(_0x15742d){const _0x64e20d=_0x592408,{coordinator:_0xb4a93b}=_0x15742d;return _0x38eaf4(_0x29e3a5,{'children':[_0x4a42da(_0x64e20d(0x22b),{'className':_0x64e20d(0x231),'children':_0x64e20d(0x1e8)}),_0x4a42da(_0x24ed50,{'onClick':()=>_0xb4a93b[_0x64e20d(0x23b)](),'children':_0x64e20d(0x1b5)})]});}function xe(_0x1e5387){const _0x472a9e=_0x592408,{coordinator:_0x215513}=_0x1e5387;return _0x38eaf4(_0x29e3a5,{'children':[_0x4a42da(_0x472a9e(0x22b),{'className':_0x472a9e(0x231),'children':_0x472a9e(0x1e9)}),_0x4a42da(_0x24ed50,{'onClick':()=>_0x215513[_0x472a9e(0x1be)](),'children':_0x472a9e(0x239)})]});}function Pe(_0x2e2091){const _0xdc9403=_0x592408,{coordinator:_0x3a838a}=_0x2e2091;return _0x38eaf4(_0x29e3a5,{'children':[_0x4a42da('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4a42da(_0x24ed50,{'variant':_0xdc9403(0x1ad),'onClick':()=>_0x3a838a[_0xdc9403(0x1f1)](),'children':_0xdc9403(0x1c5)})]});}function Ae(_0x3aa827){const _0x59da29=_0x592408,{coordinator:_0x432edc}=_0x3aa827;return _0x38eaf4(_0x29e3a5,{'children':[_0x4a42da(_0x59da29(0x22b),{'className':_0x59da29(0x231),'children':_0x59da29(0x22a)}),_0x4a42da(_0x24ed50,{'variant':_0x59da29(0x20a),'onClick':()=>_0x432edc[_0x59da29(0x1fd)](),'children':_0x59da29(0x233)})]});}function Te(){return _0x4a42da(_0x29e3a5,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x592408(0x1f8)],He=(_0x32e00f,_0x16da39,_0x20c2f8,_0xc070d7)=>{const _0x2f2fd0=_0x592408;for(var _0x3c7882=_0xc070d7>0x1?void 0x0:_0xc070d7?Fe(_0x16da39,_0x20c2f8):_0x16da39,_0x319d18=_0x32e00f[_0x2f2fd0(0x244)]-0x1,_0x226565;_0x319d18>=0x0;_0x319d18--)(_0x226565=_0x32e00f[_0x319d18])&&(_0x3c7882=_0x226565(_0x3c7882)||_0x3c7882);return _0x3c7882;},A=(_0x20c8b2,_0x4705e7)=>(_0x38d6d1,_0x77714d)=>_0x4705e7(_0x38d6d1,_0x77714d,_0x20c8b2);let m=class extends _0x33ef8e{constructor(_0x5831ff,_0x2e5c47){const _0x590b74=_0x592408;super(),this[_0x590b74(0x1b2)]=_0x5831ff,this[_0x590b74(0x1de)]=_0x2e5c47,this[_0x590b74(0x240)]();}[_0x592408(0x240)](){const _0x512834=_0x592408;this['disposeWithMe'](this[_0x512834(0x1de)]['registerComponent'](_0x11ce85[_0x512834(0x1f7)],()=>_0x4f5fb6(Le,this[_0x512834(0x1b2)])));}};function _0x293d(_0x40fdb7,_0x94f80){_0x40fdb7=_0x40fdb7-0x1ab;const _0x40ff8b=_0x40ff();let _0x293d6c=_0x40ff8b[_0x40fdb7];return _0x293d6c;}m=He([A(0x0,_0x311fb0(_0x24ee9e)),A(0x1,_0x8de62a)],m);const ye=_0x592408(0x1da),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x27ce8c,_0x4b5540,_0xcbfec7,_0x2e6cb5)=>{for(var _0x129a67=_0x2e6cb5>0x1?void 0x0:_0x2e6cb5?Ue(_0x4b5540,_0xcbfec7):_0x4b5540,_0xafe55a=_0x27ce8c['length']-0x1,_0x2c85a0;_0xafe55a>=0x0;_0xafe55a--)(_0x2c85a0=_0x27ce8c[_0xafe55a])&&(_0x129a67=_0x2c85a0(_0x129a67)||_0x129a67);return _0x129a67;},je=(_0x589fd1,_0x23e718)=>(_0x842216,_0x5429f5)=>_0x23e718(_0x842216,_0x5429f5,_0x589fd1);let I=class extends _0x33ef8e{constructor(_0x4f4012){const _0x56a98e=_0x592408;super(),this[_0x56a98e(0x211)]=_0x4f4012,this[_0x56a98e(0x1ff)]();}['_init'](){const _0x780702=_0x592408;[_0x26ffad['id'],_0xeb207['id'],_0xc6f41a['id']][_0x780702(0x246)](_0x1d5d07=>{const _0x12fb16=_0x780702;this[_0x12fb16(0x20c)](this[_0x12fb16(0x211)][_0x12fb16(0x1ab)](_0x1d5d07));});}};I=Ve([je(0x0,_0x311fb0(L))],I);function _0x40ff(){const _0x127166=['disposeWithMe','entries','7zIQclS','_handleNewChangeSets','ONLINE','_liveShareService','live-share-icon','colorChannel1','button','map','createInstance','_reporters','75210HMeIUw','clear','getTypeOfUnitDisposed$','_stopFollowing','LiveShareIcon','7916524hragxB','OFFLINE','onRendered','LIVESHARE_NEW_HOST','memberID','_handleOffline','path','_handleTerminate','random','FOLLOWING','0\x200\x2017\x2017','substring','_commandService','You\x27re\x20presenting\x20the\x20document','div','setConfig','5922850hiOKQE','getUnitId','getLiveShareCoordinatorSync','toString','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverIcon','Stop\x20presenting','_handleNewHost','1044705apDLaJ','_univerInstanceService','onCommandExecuted','_beIdle','Stop\x20following','_fetchOperations','tryStartPresenting','getInitialStates','LIVESHARE_OPERATION','children','use','_mountLiveShare','getConfig','13657264RvdmWB','operations','length','add','forEach','UNIVER_SHEET','from','presenter','tag','then','_entities','108772MrDIwv','NEW_CHANGESETS','_collabSessionService','registerSharedOperation','_configService','text','string','_sharedOperations','SAME_OPERATION_SHARE_INTERVAL','IDLE','_injector','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','has','Start','_startFollowing','NOT_FOLLOWING','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_REQUEST_HOST','idle','_handleOnline','set','override','stopFollowing','_startLiveShareCoordinator','getCurrentTypeOfUnit$','_commandDisposable','none','next','end','Start\x20following','_collabSession','_presenter','_unitID','type','attrs','unsubscribe','getMemberID','not-following','registerInitialStateReporter','presenting','dispose','currentColor','dispose$','_stopPresenting','defineProperty','getLiveShareCoordinator','delete','_handleOperation','get','pipe','live-share.config','requireSession','xlink:href','idSuffix','_uiPartsService','LIVESHARE_TERMINATE','pluginName','sheet','fill','offline','1573444WVCrcm','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','assign','OPERATION','Present\x20this\x20document','You\x27re\x20following\x20the\x20presenter','sessionStatus$','asObservable','onStarting','params','current','send','displayName','startFollowing','data','includes','LIVESHARE_FETCH_OPERATIONS','status$','following','HEADER_MENU','getOwnPropertyDescriptor','unitId','subscribe','shouldShareOperation','_config','stopPresenting','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','_init','_status','_status$','mask','PRESENTING','stringify','getValue','executeCommand','_startPresenting','replace','init','default','http://www.w3.org/2000/svg'];_0x40ff=function(){return _0x127166;};return _0x40ff();}var Me=Object[_0x592408(0x1d4)],ke=Object[_0x592408(0x1f8)],Ge=(_0x7c1980,_0x4e5481,_0x3e4bfe)=>_0x4e5481 in _0x7c1980?Me(_0x7c1980,_0x4e5481,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e4bfe}):_0x7c1980[_0x4e5481]=_0x3e4bfe,We=(_0x37369a,_0x2b61a8,_0x2f3f03,_0x441760)=>{const _0x53ff5d=_0x592408;for(var _0x359d2a=_0x441760>0x1?void 0x0:_0x441760?ke(_0x2b61a8,_0x2f3f03):_0x2b61a8,_0x1d7a72=_0x37369a[_0x53ff5d(0x244)]-0x1,_0x4ac5cb;_0x1d7a72>=0x0;_0x1d7a72--)(_0x4ac5cb=_0x37369a[_0x1d7a72])&&(_0x359d2a=_0x4ac5cb(_0x359d2a)||_0x359d2a);return _0x359d2a;},F=(_0x537364,_0x43476a)=>(_0x4f0ed1,_0x410faa)=>_0x43476a(_0x4f0ed1,_0x410faa,_0x537364),B=(_0x9ce590,_0x5f358d,_0x2a34bc)=>Ge(_0x9ce590,typeof _0x5f358d!='symbol'?_0x5f358d+'':_0x5f358d,_0x2a34bc);const Ye=_0x592408(0x1b8);let b=class extends _0x13b402{constructor(_0x39ca85=T,_0x2efb02,_0x1d6f46){const _0x5929fe=_0x592408;super(),this[_0x5929fe(0x1fc)]=_0x39ca85,this[_0x5929fe(0x1b2)]=_0x2efb02,this['_configService']=_0x1d6f46;const {..._0x1de41e}=_0x1bcd48({},T,this['_config']);this[_0x5929fe(0x1ac)][_0x5929fe(0x22c)](ye,_0x1de41e);}[_0x592408(0x1ec)](){const _0x1862d5=_0x592408;_0x135b87(this[_0x1862d5(0x1b2)],_0x1312ff([[L],[S],[I],[m]],this['_config'][_0x1862d5(0x1bd)])),_0x8d80af(this['_injector'],[[I]]);}[_0x592408(0x21f)](){const _0x361b11=_0x592408;_0x8d80af(this[_0x361b11(0x1b2)],[[m]]);}};B(b,'type',_0x538a9c['UNIVER_UNKNOWN']),B(b,_0x592408(0x1e0),Ye),b=We([_0x23f815(_0x3d09b1),F(0x1,_0x311fb0(_0x24ee9e)),F(0x2,_0x3de0b0)],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 _0x1191b2=_0x3c6d;(function(_0x375322,_0x2ad210){const _0x4c8417=_0x3c6d,_0x4d5e73=_0x375322();while(!![]){try{const _0x39b03b=-parseInt(_0x4c8417(0x209))/0x1*(parseInt(_0x4c8417(0x198))/0x2)+parseInt(_0x4c8417(0x1a3))/0x3*(-parseInt(_0x4c8417(0x18e))/0x4)+parseInt(_0x4c8417(0x1d5))/0x5+-parseInt(_0x4c8417(0x19d))/0x6+parseInt(_0x4c8417(0x1ba))/0x7*(-parseInt(_0x4c8417(0x184))/0x8)+parseInt(_0x4c8417(0x1ea))/0x9+parseInt(_0x4c8417(0x1e6))/0xa;if(_0x39b03b===_0x2ad210)break;else _0x4d5e73['push'](_0x4d5e73['shift']());}catch(_0x546531){_0x4d5e73['push'](_0x4d5e73['shift']());}}}(_0x18ef,0x24b08));var J=Object['defineProperty'],K=(_0x45f795,_0x2a0594,_0x5601bc)=>_0x2a0594 in _0x45f795?J(_0x45f795,_0x2a0594,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5601bc}):_0x45f795[_0x2a0594]=_0x5601bc,u=(_0x5e1d5e,_0x1c187b,_0x4de588)=>K(_0x5e1d5e,typeof _0x1c187b!='symbol'?_0x1c187b+'':_0x1c187b,_0x4de588);import{Disposable as _0x42f139,toDisposable as _0x1417df,IUniverInstanceService as _0x13599b,Inject as _0x52f490,Injector as _0xfcc158,IConfigService as _0x3b6203,ICommandService as _0x1133a0,RxDisposable as _0x12d579,UniverInstanceType as _0x52ac2b,DisposableCollection as _0x12bfa0,CommandType as _0x58cba0,DependentOn as _0x31ac97,Plugin as _0x597a77,merge as _0x8b45b2,registerDependencies as _0x277ea5,mergeOverrideWithDependencies as _0x1a5bcb,touchDependencies as _0x412fe3}from'@univerjs/core';import{useDependency as _0x13c131,useObservable as _0x4a22ff,IUIPartsService as _0x40fce5,BuiltInUIPart as _0x344c8b,connectInjector as _0x1f7308}from'@univerjs/ui';import{jsx as _0x23bdaf,jsxs as _0x3c669a,Fragment as _0x2260a2}from'react/jsx-runtime';import{Dropdown as _0xa5e188,clsx as _0x5bda25,Button as _0x229044}from'@univerjs/design';function _0x3c6d(_0x27138e,_0x1d89fc){_0x27138e=_0x27138e-0x166;const _0x18ef1e=_0x18ef();let _0x3c6d4a=_0x18ef1e[_0x27138e];return _0x3c6d4a;}import{useRef as _0x26e3e5,createElement as _0x2270b1,forwardRef as _0x229bee,useState as _0x4c8df0,useEffect as _0x2e70ea}from'react';import{CollaborationEvent as _0x54850e,parseProtocolChangeset as _0x4ea61e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x46ad75,SessionStatus as _0x38f2a3,UniverCollaborationClientPlugin as _0x42c667}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x424699,SetWorksheetActiveOperation as _0x22d280}from'@univerjs/sheets';import{BehaviorSubject as _0x4ad1e3,Subject as _0x338e65}from'rxjs';import{takeUntil as _0x1096b2,throttleTime as _0x23d433}from'rxjs/operators';import{SetZoomRatioOperation as _0x2e5eb8,SetScrollOperation as _0x4c04a3}from'@univerjs/sheets-ui';function k({ref:_0x2db846,..._0x1d0a15}){const _0x38adde=_0x3c6d,{icon:_0xbcf763,id:_0x2c0994,className:_0x1076ad,extend:_0x5afb17,..._0x422897}=_0x1d0a15,_0x97ea70=(_0x38adde(0x206)+_0x2c0994+'\x20'+(_0x1076ad||''))[_0x38adde(0x210)](),_0x11f29b=_0x26e3e5('_'+Oe());return G(_0xbcf763,''+_0x2c0994,{'defIds':_0xbcf763['defIds'],'idSuffix':_0x11f29b[_0x38adde(0x1d3)]},{'ref':_0x2db846,'className':_0x97ea70,..._0x422897},_0x5afb17);}function G(_0x15c8f0,_0x5e405e,_0x110cda,_0x4befed,_0x56dbf2){const _0x1b87c2=_0x3c6d;return _0x2270b1(_0x15c8f0['tag'],{'key':_0x5e405e,...be(_0x15c8f0,_0x110cda,_0x56dbf2),..._0x4befed},(Ee(_0x15c8f0,_0x110cda)[_0x1b87c2(0x194)]||[])[_0x1b87c2(0x208)]((_0x2ed83d,_0x1e451f)=>G(_0x2ed83d,_0x5e405e+'-'+_0x15c8f0[_0x1b87c2(0x202)]+'-'+_0x1e451f,_0x110cda,void 0x0,_0x56dbf2)));}function be(_0x3c29c7,_0x5c62bc,_0x140ab5){const _0x4a5b06=_0x3c6d,_0x29b48c={..._0x3c29c7['attrs']};_0x140ab5!=null&&_0x140ab5[_0x4a5b06(0x1de)]&&_0x29b48c[_0x4a5b06(0x1dd)]===_0x4a5b06(0x1de)&&(_0x29b48c['fill']=_0x140ab5[_0x4a5b06(0x1de)]),_0x3c29c7[_0x4a5b06(0x202)]==='mask'&&_0x29b48c['id']&&(_0x29b48c['id']=_0x29b48c['id']+_0x5c62bc['idSuffix']),Object[_0x4a5b06(0x204)](_0x29b48c)[_0x4a5b06(0x1f5)](([_0x1969da,_0x193e23])=>{const _0x5e0b39=_0x4a5b06;_0x1969da===_0x5e0b39(0x1fa)&&typeof _0x193e23==_0x5e0b39(0x200)&&(_0x29b48c[_0x1969da]=_0x193e23[_0x5e0b39(0x196)](/url\(#(.*)\)/,_0x5e0b39(0x1e8)+_0x5c62bc[_0x5e0b39(0x168)]+')'));});const {defIds:_0x3db7c}=_0x5c62bc;return!_0x3db7c||_0x3db7c[_0x4a5b06(0x1fc)]===0x0||(_0x3c29c7['tag']===_0x4a5b06(0x1be)&&_0x29b48c[_0x4a5b06(0x1d4)]&&(_0x29b48c['xlink:href']=_0x29b48c['xlink:href']+_0x5c62bc[_0x4a5b06(0x168)]),Object['entries'](_0x29b48c)[_0x4a5b06(0x1f5)](([_0x31c1f0,_0x2737b2])=>{const _0x34a785=_0x4a5b06;typeof _0x2737b2==_0x34a785(0x200)&&(_0x29b48c[_0x31c1f0]=_0x2737b2['replace'](/url\(#(.*)\)/,_0x34a785(0x1e8)+_0x5c62bc[_0x34a785(0x168)]+')'));})),_0x29b48c;}function Ee(_0x108315,_0x9e1250){const _0xab565f=_0x3c6d;var _0x31520a;const {defIds:_0x4f0671}=_0x9e1250;return!_0x4f0671||_0x4f0671[_0xab565f(0x1fc)]===0x0?_0x108315:_0x108315[_0xab565f(0x202)]===_0xab565f(0x1e5)&&((_0x31520a=_0x108315[_0xab565f(0x194)])!=null&&_0x31520a[_0xab565f(0x1fc)])?{..._0x108315,'children':_0x108315[_0xab565f(0x194)][_0xab565f(0x208)](_0x449432=>typeof _0x449432[_0xab565f(0x1fe)]['id']=='string'&&_0x4f0671&&_0x4f0671[_0xab565f(0x1bf)](_0x449432[_0xab565f(0x1fe)]['id'])?{..._0x449432,'attrs':{..._0x449432[_0xab565f(0x1fe)],'id':_0x449432['attrs']['id']+_0x9e1250[_0xab565f(0x168)]}}:_0x449432)}:_0x108315;}function Oe(){const _0x47cf0e=_0x3c6d;return Math[_0x47cf0e(0x188)]()[_0x47cf0e(0x18a)](0x24)[_0x47cf0e(0x1ac)](0x2,0x8);}k[_0x1191b2(0x1ed)]=_0x1191b2(0x174);const we={'tag':_0x1191b2(0x16b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1191b2(0x1e3),'viewBox':'0\x200\x2017\x2017','width':_0x1191b2(0x192),'height':'1em'},'children':[{'tag':_0x1191b2(0x1c7),'attrs':{'fill':_0x1191b2(0x20d),'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':_0x1191b2(0x1c7),'attrs':{'fill':_0x1191b2(0x20d),'d':_0x1191b2(0x207),'fillRule':_0x1191b2(0x16d),'clipRule':'evenodd'}}]},W=_0x229bee(function(_0x55ce6c,_0x4f1fcb){return _0x2270b1(k,Object['assign']({},_0x55ce6c,{'id':'live-share-icon','ref':_0x4f1fcb,'icon':we}));});W['displayName']=_0x1191b2(0x1d6);class L extends _0x42f139{constructor(){const _0x345df2=_0x1191b2;super(...arguments),u(this,_0x345df2(0x1a1),new Set()),u(this,_0x345df2(0x1d2),new Set());}[_0x1191b2(0x19f)](_0x542655){const _0x3e75a3=_0x1191b2;return this[_0x3e75a3(0x1a1)][_0x3e75a3(0x1bb)](_0x542655),_0x1417df(()=>this['_sharedOperations'][_0x3e75a3(0x20f)](_0x542655));}['registerInitialStateReporter'](_0x476a63){const _0x15e42f=_0x1191b2;return this['_reporters'][_0x15e42f(0x1bb)](_0x476a63),_0x1417df(()=>this[_0x15e42f(0x1d2)][_0x15e42f(0x20f)](_0x476a63));}[_0x1191b2(0x17c)](_0x4118f1){const _0x5bc383=_0x1191b2;return this[_0x5bc383(0x1a1)][_0x5bc383(0x20c)](_0x4118f1);}[_0x1191b2(0x173)](_0xf020dc){const _0x76e158=_0x1191b2;return Array[_0x76e158(0x1c4)](this[_0x76e158(0x1d2)])[_0x76e158(0x208)](_0x226d29=>_0x226d29(_0xf020dc));}}var Ne=Object[_0x1191b2(0x1cb)],Y=(_0x495b86,_0x2aa9b8,_0x2f8e1f,_0x496a5b)=>{const _0x57a684=_0x1191b2;for(var _0x444968=_0x496a5b>0x1?void 0x0:_0x496a5b?Ne(_0x2aa9b8,_0x2f8e1f):_0x2aa9b8,_0x3dfa43=_0x495b86[_0x57a684(0x1fc)]-0x1,_0x5aecc4;_0x3dfa43>=0x0;_0x3dfa43--)(_0x5aecc4=_0x495b86[_0x3dfa43])&&(_0x444968=_0x5aecc4(_0x444968)||_0x444968);return _0x444968;},_=(_0x4d1ee7,_0x54bc9a)=>(_0x38f715,_0x390c40)=>_0x54bc9a(_0x38f715,_0x390c40,_0x4d1ee7);let S=class extends _0x12d579{constructor(_0x88e00b,_0x4298e1,_0x3d29e0){const _0x192423=_0x1191b2;super(),u(this,_0x192423(0x186),new Map()),(this[_0x192423(0x17f)]=_0x88e00b,this['_injector']=_0x4298e1,this['_collabSessionService']=_0x3d29e0,this[_0x192423(0x1ec)]());}async['getLiveShareCoordinator'](_0x59d1c3){const _0x1bb3ce=_0x1191b2;return this[_0x1bb3ce(0x186)][_0x1bb3ce(0x20c)](_0x59d1c3)||await this[_0x1bb3ce(0x1b3)](_0x59d1c3),this[_0x1bb3ce(0x186)][_0x1bb3ce(0x191)](_0x59d1c3);}[_0x1191b2(0x177)](_0x358ced){const _0x19f00e=_0x1191b2;var _0x32de33;return(_0x32de33=this[_0x19f00e(0x186)][_0x19f00e(0x191)](_0x358ced))!=null?_0x32de33:null;}['_init'](){const _0x453995=_0x1191b2;this['_univerInstanceService'][_0x453995(0x1d1)](_0x52ac2b[_0x453995(0x180)])['pipe'](_0x1096b2(this[_0x453995(0x18b)]))[_0x453995(0x1f1)](async _0x49d54d=>{const _0x4c7ac7=_0x453995,_0x2e687c=_0x49d54d[_0x4c7ac7(0x1e2)]();this[_0x4c7ac7(0x186)][_0x4c7ac7(0x20c)](_0x2e687c)||this[_0x4c7ac7(0x1b3)](_0x2e687c);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x52ac2b[_0x453995(0x180)])[_0x453995(0x1e9)](_0x1096b2(this[_0x453995(0x18b)]))[_0x453995(0x1f1)](_0x5d8709=>{const _0x3a8720=_0x453995,_0x4c1060=_0x5d8709['getUnitId'](),_0x346756=this[_0x3a8720(0x186)][_0x3a8720(0x191)](_0x4c1060);_0x346756==null||_0x346756[_0x3a8720(0x1eb)]();});}async[_0x1191b2(0x1b3)](_0x5e1e02){const _0x32c6f7=_0x1191b2,_0x1e17ab=await this['_collabSessionService'][_0x32c6f7(0x1da)](_0x5e1e02),_0x1346a3=this[_0x32c6f7(0x197)][_0x32c6f7(0x170)](N,_0x5e1e02,_0x1e17ab);return _0x1346a3['init'](),this[_0x32c6f7(0x186)][_0x32c6f7(0x1b2)](_0x5e1e02,_0x1346a3),_0x1346a3;}};S=Y([_(0x0,_0x13599b),_(0x1,_0x52f490(_0xfcc158)),_(0x2,_0x52f490(_0x46ad75))],S);var c=(_0xc68a38=>(_0xc68a38[_0x1191b2(0x1cc)]=_0x1191b2(0x1ee),_0xc68a38[_0x1191b2(0x20b)]=_0x1191b2(0x1cd),_0xc68a38[_0x1191b2(0x16e)]=_0x1191b2(0x1d8),_0xc68a38[_0x1191b2(0x1b0)]=_0x1191b2(0x201),_0xc68a38[_0x1191b2(0x1f9)]=_0x1191b2(0x1ae),_0xc68a38))(c||{});const Ce=_0x1191b2(0x17e),De=0xc8;let N=class extends _0x12d579{constructor(_0x38ee06,_0x293cfa,_0x227d3a,_0x38960d,_0x10dd83){const _0x509a71=_0x1191b2;super(),u(this,_0x509a71(0x1f2),new _0x4ad1e3(_0x509a71(0x1cd))),u(this,_0x509a71(0x178),this[_0x509a71(0x1f2)][_0x509a71(0x190)]()),u(this,_0x509a71(0x1ec),!0x1),u(this,_0x509a71(0x1e7),null),u(this,_0x509a71(0x171),null),(this[_0x509a71(0x1c9)]=_0x38ee06,this[_0x509a71(0x1bc)]=_0x293cfa,this[_0x509a71(0x16c)]=_0x227d3a,this['_liveShareService']=_0x38960d,this[_0x509a71(0x1e1)]=_0x10dd83);}get[_0x1191b2(0x1e4)](){const _0x3be8cc=_0x1191b2;return this[_0x3be8cc(0x1f2)][_0x3be8cc(0x1a5)]();}[_0x1191b2(0x1eb)](){const _0x3bf7f7=_0x1191b2;var _0x9559a8;(_0x9559a8=this[_0x3bf7f7(0x1e7)])==null||_0x9559a8[_0x3bf7f7(0x1eb)](),this[_0x3bf7f7(0x1f2)][_0x3bf7f7(0x1b1)]('idle'),this[_0x3bf7f7(0x1f2)][_0x3bf7f7(0x1ab)]();}[_0x1191b2(0x19b)](){const _0x17c770=_0x1191b2;return this[_0x17c770(0x1e4)];}[_0x1191b2(0x16a)](){const _0x986724=_0x1191b2;this[_0x986724(0x1ec)]||(this[_0x986724(0x1ec)]=!0x0,this['_collabSession'][_0x986724(0x17d)][_0x986724(0x1e9)](_0x1096b2(this[_0x986724(0x18b)]))[_0x986724(0x1f1)](_0x5061fc=>{const _0x114fed=_0x986724;switch(_0x5061fc){case _0x38f2a3[_0x114fed(0x1cc)]:this[_0x114fed(0x199)]();break;case _0x38f2a3[_0x114fed(0x1d0)]:this[_0x114fed(0x185)]();break;}}),this[_0x986724(0x1bc)][_0x986724(0x1a7)][_0x986724(0x1e9)](_0x1096b2(this[_0x986724(0x18b)]))[_0x986724(0x1f1)](_0x1b57e7=>{const _0x4154a3=_0x986724,{eventID:_0x3d71ee}=_0x1b57e7;switch(_0x3d71ee){case _0x54850e[_0x4154a3(0x20a)]:this[_0x4154a3(0x211)](_0x1b57e7);break;case _0x54850e[_0x4154a3(0x166)]:this[_0x4154a3(0x1f6)](_0x1b57e7);break;case _0x54850e['LIVESHARE_TERMINATE']:this[_0x4154a3(0x1b5)]();break;case _0x54850e[_0x4154a3(0x18d)]:this[_0x4154a3(0x1ef)](_0x1b57e7);break;}}));}[_0x1191b2(0x182)](){const _0x272cac=_0x1191b2;this[_0x272cac(0x1bc)][_0x272cac(0x1d9)]({'eventID':_0x54850e['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x272cac(0x1c9)],'userID':this[_0x272cac(0x1bc)]['getMemberID']()}},this[_0x272cac(0x1c9)]);}[_0x1191b2(0x1c6)](){const _0x381341=_0x1191b2;this[_0x381341(0x1e4)]===_0x381341(0x1ae)&&(this['_status$'][_0x381341(0x1b1)]('idle'),this[_0x381341(0x1bc)][_0x381341(0x1d9)]({'eventID':_0x54850e['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x381341(0x1c9)]));}[_0x1191b2(0x1a6)](){const _0x53e064=_0x1191b2;this[_0x53e064(0x1e4)]===_0x53e064(0x201)&&(this[_0x53e064(0x1f2)][_0x53e064(0x1b1)]('following'),this[_0x53e064(0x20e)]());}[_0x1191b2(0x1b4)](){const _0x561b48=_0x1191b2;this[_0x561b48(0x1e4)]===_0x561b48(0x1d8)&&this[_0x561b48(0x1cf)]();}[_0x1191b2(0x211)](_0x35f29e){const _0x5b0cc6=_0x1191b2,{presenter:_0x7f9b81}=_0x35f29e[_0x5b0cc6(0x1bd)],_0x482ed1=this[_0x5b0cc6(0x1bc)][_0x5b0cc6(0x1ca)]();this['_presenter']=_0x7f9b81,_0x7f9b81===_0x482ed1?(this[_0x5b0cc6(0x1cf)](),this[_0x5b0cc6(0x175)]()):this[_0x5b0cc6(0x1e4)]!=='not-following'&&(this[_0x5b0cc6(0x172)](),this[_0x5b0cc6(0x20e)]());}['_fetchOperations'](){const _0x35b053=_0x1191b2,_0xd85293={'eventID':_0x54850e[_0x35b053(0x1db)]};this[_0x35b053(0x1bc)][_0x35b053(0x1d9)](_0xd85293,this[_0x35b053(0x1c9)]);}[_0x1191b2(0x1b5)](){const _0x1c81b9=_0x1191b2;this[_0x1c81b9(0x171)]=null,this[_0x1c81b9(0x1e4)]!==_0x1c81b9(0x1ae)&&this[_0x1c81b9(0x176)]();}[_0x1191b2(0x1ef)](_0x284dd7){const _0x887c70=_0x1191b2;if(this[_0x887c70(0x1e4)]===_0x887c70(0x1d8)&&this['_presenter']===_0x284dd7[_0x887c70(0x1bd)][_0x887c70(0x1c5)]){const _0x329ab8=_0x4ea61e(_0x284dd7[_0x887c70(0x1bd)])[_0x887c70(0x17a)][_0x887c70(0x1c2)]()[_0x887c70(0x195)](_0x2c1ee7=>_0x2c1ee7['id']===_0x424699['id']);if(_0x329ab8){const _0x49d467=_0x329ab8[_0x887c70(0x193)][_0x887c70(0x1b9)],_0x81f4b0=_0x329ab8[_0x887c70(0x193)][_0x887c70(0x1f8)]['id'];setTimeout(()=>{const _0x21dd88=_0x887c70;this[_0x21dd88(0x1e1)][_0x21dd88(0x1c3)](_0x22d280['id'],{'unitId':_0x49d467,'subUnitId':_0x81f4b0},{'fromCollab':!0x0});});}}}[_0x1191b2(0x175)](){const _0x36a5a0=_0x1191b2;this['_status$'][_0x36a5a0(0x1b1)](_0x36a5a0(0x1ae));const _0x43250b=new Map(),_0x22e6eb=this[_0x36a5a0(0x1e7)]=new _0x12bfa0();_0x22e6eb[_0x36a5a0(0x1bb)](_0x1417df(()=>{const _0x446eb7=_0x36a5a0;_0x43250b[_0x446eb7(0x1f5)](_0xe2b1a3=>_0xe2b1a3[_0x446eb7(0x1ab)]()),_0x43250b[_0x446eb7(0x189)]();})),_0x22e6eb['add'](this[_0x36a5a0(0x1e1)]['onCommandExecuted'](_0x258568=>{const _0x2c4ba8=_0x36a5a0;var _0x537d31;if(_0x258568[_0x2c4ba8(0x1fd)]!==_0x58cba0[_0x2c4ba8(0x181)]||!this['_liveShareService'][_0x2c4ba8(0x17c)](_0x258568['id']))return;const {id:_0x3f04f2}=_0x258568;let _0x55c0e4;_0x43250b['has'](_0x3f04f2)?_0x55c0e4=_0x43250b[_0x2c4ba8(0x191)](_0x3f04f2):(_0x55c0e4=new _0x338e65(),_0x43250b[_0x2c4ba8(0x1b2)](_0x3f04f2,_0x55c0e4),_0x55c0e4['pipe'](_0x23d433((_0x537d31=this['_configService'][_0x2c4ba8(0x1c1)](Ce))!=null?_0x537d31:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c4ba8(0x1f1)](_0x5f4677=>{const _0x16abe5=_0x2c4ba8;this['_collabSession'][_0x16abe5(0x1d9)]({'eventID':_0x54850e[_0x16abe5(0x166)],'data':{'unitID':this[_0x16abe5(0x1c9)],'operations':{[_0x5f4677['id']]:{'id':_0x5f4677['id'],'params':JSON[_0x16abe5(0x1df)](_0x5f4677[_0x16abe5(0x193)])}}}},this[_0x16abe5(0x1c9)]);})),_0x55c0e4[_0x2c4ba8(0x1b1)](_0x258568);})),this[_0x36a5a0(0x16f)]['getInitialStates'](this[_0x36a5a0(0x1c9)])[_0x36a5a0(0x1f5)](_0x5607f5=>this[_0x36a5a0(0x1bc)][_0x36a5a0(0x1d9)]({'eventID':_0x54850e[_0x36a5a0(0x166)],'data':{'unitID':this['_unitID'],'operations':{[_0x5607f5['id']]:{'id':_0x5607f5['id'],'params':JSON[_0x36a5a0(0x1df)](_0x5607f5[_0x36a5a0(0x193)])}}}},this[_0x36a5a0(0x1c9)]));}[_0x1191b2(0x172)](){const _0x36bb17=_0x1191b2;var _0x246115;this['_status$'][_0x36bb17(0x1b1)](_0x36bb17(0x1cd)),(_0x246115=this[_0x36bb17(0x1e7)])==null||_0x246115[_0x36bb17(0x1eb)](),this[_0x36bb17(0x1e7)]=null;}[_0x1191b2(0x20e)](){const _0x338b3d=_0x1191b2;var _0x2b76a4;(_0x2b76a4=this[_0x338b3d(0x1e7)])==null||_0x2b76a4['dispose'](),this[_0x338b3d(0x1f2)][_0x338b3d(0x1b1)](_0x338b3d(0x1d8));}[_0x1191b2(0x176)](){const _0x42bd77=_0x1191b2;var _0x389e24;this[_0x42bd77(0x1f2)][_0x42bd77(0x1b1)](_0x42bd77(0x1cd)),(_0x389e24=this[_0x42bd77(0x1e7)])==null||_0x389e24[_0x42bd77(0x1eb)](),this[_0x42bd77(0x1e7)]=null;}[_0x1191b2(0x1cf)](){const _0x326b8c=_0x1191b2;var _0x172890;this[_0x326b8c(0x1f2)][_0x326b8c(0x1b1)](_0x326b8c(0x201)),(_0x172890=this[_0x326b8c(0x1e7)])==null||_0x172890[_0x326b8c(0x1eb)]();}[_0x1191b2(0x1f6)](_0x212d99){const _0x3d982d=_0x1191b2;if([_0x3d982d(0x1ae),_0x3d982d(0x201),_0x3d982d(0x1ee)]['includes'](this['_status'])||!_0x212d99[_0x3d982d(0x1bd)][_0x3d982d(0x1b6)]||_0x212d99['data']['presenter']===this['_collabSession']['getMemberID']())return;this[_0x3d982d(0x1e4)]===_0x3d982d(0x1cd)&&this[_0x3d982d(0x20e)]();const _0x5b4ed5=_0x212d99[_0x3d982d(0x1bd)][_0x3d982d(0x1e0)];Object[_0x3d982d(0x1f7)](_0x5b4ed5)['forEach'](_0x1ce5fd=>{const _0x2952b5=_0x3d982d;this[_0x2952b5(0x1e1)][_0x2952b5(0x1c3)](_0x1ce5fd['id'],_0x1ce5fd[_0x2952b5(0x193)]?JSON[_0x2952b5(0x1ce)](_0x1ce5fd[_0x2952b5(0x193)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3434ae=_0x1191b2;var _0x5040be;this['_status$'][_0x3434ae(0x1b1)](_0x3434ae(0x1ee)),(_0x5040be=this[_0x3434ae(0x1e7)])==null||_0x5040be['dispose']();}['_handleOnline'](){const _0x1ad42b=_0x1191b2;this[_0x1ad42b(0x1f2)][_0x1ad42b(0x1b1)](_0x1ad42b(0x1cd)),this['_fetchOperations']();}};N=Y([_(0x2,_0x3b6203),_(0x3,_0x52f490(L)),_(0x4,_0x1133a0)],N);function _0x18ef(){const _0x2c07e1=['fill','colorChannel1','stringify','operations','_commandService','getUnitId','none','_status','defs','4569200XiUAfa','_commandDisposable','url(#$1','pipe','1588023xgFIcT','dispose','_init','displayName','offline','_handleNewChangeSets','You\x27re\x20not\x20following\x20the\x20presenter','subscribe','_status$','registerComponent','_uiPartsService','forEach','_handleOperation','values','sheet','PRESENTING','mask','setConfig','length','type','attrs','then','string','not-following','tag','pluginName','entries','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','univerjs-icon\x20univerjs-icon-','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','map','5191WjNups','LIVESHARE_NEW_HOST','IDLE','has','currentColor','_startFollowing','delete','trim','_handleNewHost','LIVESHARE_OPERATION','live-share.config','idSuffix','Start','init','svg','_configService','evenodd','FOLLOWING','_liveShareService','createInstance','_presenter','_stopPresenting','getInitialStates','UniverIcon','_startPresenting','_beIdle','getLiveShareCoordinatorSync','status$','div','mutations','unsubscribe','shouldShareOperation','sessionStatus$','SAME_OPERATION_SHARE_INTERVAL','_univerInstanceService','UNIVER_SHEET','OPERATION','tryStartPresenting','Stop\x20presenting','553856mVrDyc','_handleOnline','_entities','_mountLiveShare','random','clear','toString','dispose$','_config','NEW_CHANGESETS','52ZweQzB','You\x27re\x20following\x20the\x20presenter','asObservable','get','1em','params','children','find','replace','_injector','18nInjSU','_handleOffline','univer-size-4','getStatus','UNIVER_UNKNOWN','549390GdTUZv','getLiveShareCoordinator','registerSharedOperation','onStarting','_sharedOperations','You\x27are\x20offline.','45732gZnCMh','HEADER_MENU','getValue','startFollowing','event$','defineProperty','button','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','complete','substring','getCurrentTypeOfUnit$','presenting','onRendered','NOT_FOLLOWING','next','set','_startLiveShareCoordinator','stopFollowing','_handleTerminate','presenter','override','Stop\x20following','unitId','21htOeON','add','_collabSession','data','use','includes','UNIVER_LIVE_SHARE_PLUGIN','getConfig','reverse','executeCommand','from','memberID','stopPresenting','path','Present\x20this\x20document','_unitID','getMemberID','getOwnPropertyDescriptor','OFFLINE','idle','parse','_stopFollowing','ONLINE','getTypeOfUnitAdded$','_reporters','current','xlink:href','305325bpcbWy','LiveShareIcon','end','following','send','requireSession','LIVESHARE_FETCH_OPERATIONS','univer-mb-3\x20univer-w-full\x20univer-text-sm'];_0x18ef=function(){return _0x2c07e1;};return _0x18ef();}function Le(){const _0x3fc323=_0x1191b2,_0x5be799=_0x13c131(S),_0x29c354=_0x13c131(_0x13599b),_0x2130a8=_0x4a22ff(()=>_0x29c354[_0x3fc323(0x1ad)](_0x52ac2b['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x468fb7,_0x363d66]=_0x4c8df0(null),[_0x585c36,_0x8f7a2d]=_0x4c8df0(c['IDLE']),_0x13b400=_0x26e3e5(null);return _0x2e70ea(()=>(_0x2130a8&&_0x5be799[_0x3fc323(0x19e)](_0x2130a8[_0x3fc323(0x1e2)]())[_0x3fc323(0x1ff)](_0x5bb7fd=>{const _0xdf8946=_0x3fc323;_0x363d66(_0x5bb7fd),_0x13b400[_0xdf8946(0x1d3)]=_0x5bb7fd[_0xdf8946(0x178)]['subscribe'](_0x1a5505=>{_0x8f7a2d(_0x1a5505);});}),()=>{const _0x2794b0=_0x3fc323;var _0xd0e2c8;(_0xd0e2c8=_0x13b400[_0x2794b0(0x1d3)])==null||_0xd0e2c8[_0x2794b0(0x17b)](),_0x13b400[_0x2794b0(0x1d3)]=null;}),[_0x2130a8,_0x5be799]),_0x468fb7?_0x23bdaf(_0xa5e188,{'align':_0x3fc323(0x1d7),'disabled':_0x585c36===c[_0x3fc323(0x1cc)],'className':_0x3fc323(0x205),'overlay':_0x23bdaf(Re,{'status':_0x585c36,'coordinator':_0x468fb7}),'children':_0x23bdaf(_0x3fc323(0x1a9),{'className':_0x5bda25(_0x3fc323(0x1aa),{'univer-cursor-not-allowed':_0x585c36===c[_0x3fc323(0x1cc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x585c36!==c[_0x3fc323(0x1cc)]}),'type':_0x3fc323(0x1a9),'children':_0x23bdaf(W,{'className':_0x3fc323(0x19a)})})}):null;}function Re(_0x4a220f){const _0x1c09ad=_0x1191b2,{status:_0x4cb5e6,coordinator:_0x103fd1}=_0x4a220f;switch(_0x4cb5e6){case c[_0x1c09ad(0x20b)]:return _0x23bdaf($e,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x16e)]:return _0x23bdaf(xe,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x1b0)]:return _0x23bdaf(Pe,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x1cc)]:return _0x23bdaf(Te,{});case c[_0x1c09ad(0x1f9)]:return _0x23bdaf(Ae,{'coordinator':_0x103fd1});default:return null;}}function $e(_0x41c802){const _0x310efb=_0x1191b2,{coordinator:_0x410a14}=_0x41c802;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf(_0x310efb(0x179),{'className':_0x310efb(0x1dc),'children':_0x310efb(0x1c8)}),_0x23bdaf(_0x229044,{'onClick':()=>_0x410a14['tryStartPresenting'](),'children':_0x310efb(0x169)})]});}function xe(_0x480756){const _0x39a72a=_0x1191b2,{coordinator:_0x51204c}=_0x480756;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf('div',{'className':_0x39a72a(0x1dc),'children':_0x39a72a(0x18f)}),_0x23bdaf(_0x229044,{'onClick':()=>_0x51204c[_0x39a72a(0x1b4)](),'children':_0x39a72a(0x1b8)})]});}function Pe(_0x11538d){const _0x523dae=_0x1191b2,{coordinator:_0x44e5c9}=_0x11538d;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf('div',{'className':_0x523dae(0x1dc),'children':_0x523dae(0x1f0)}),_0x23bdaf(_0x229044,{'variant':'text','onClick':()=>_0x44e5c9['startFollowing'](),'children':'Start\x20following'})]});}function Ae(_0x1a0e0f){const _0x1497a0=_0x1191b2,{coordinator:_0x29ba19}=_0x1a0e0f;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf(_0x1497a0(0x179),{'className':_0x1497a0(0x1dc),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x23bdaf(_0x229044,{'variant':'default','onClick':()=>_0x29ba19[_0x1497a0(0x1c6)](),'children':_0x1497a0(0x183)})]});}function Te(){const _0x30693d=_0x1191b2;return _0x23bdaf(_0x2260a2,{'children':_0x30693d(0x1a2)});}var Fe=Object[_0x1191b2(0x1cb)],He=(_0x5ca343,_0x5b619b,_0x13067a,_0x3297af)=>{for(var _0x413a50=_0x3297af>0x1?void 0x0:_0x3297af?Fe(_0x5b619b,_0x13067a):_0x5b619b,_0x334f6c=_0x5ca343['length']-0x1,_0x14e78a;_0x334f6c>=0x0;_0x334f6c--)(_0x14e78a=_0x5ca343[_0x334f6c])&&(_0x413a50=_0x14e78a(_0x413a50)||_0x413a50);return _0x413a50;},A=(_0x23edb1,_0x466f95)=>(_0x1311a5,_0x268e25)=>_0x466f95(_0x1311a5,_0x268e25,_0x23edb1);let m=class extends _0x42f139{constructor(_0x4aea36,_0x330108){const _0x3bb5dc=_0x1191b2;super(),this[_0x3bb5dc(0x197)]=_0x4aea36,this[_0x3bb5dc(0x1f4)]=_0x330108,this[_0x3bb5dc(0x187)]();}[_0x1191b2(0x187)](){const _0x3041c6=_0x1191b2;this['disposeWithMe'](this[_0x3041c6(0x1f4)][_0x3041c6(0x1f3)](_0x344c8b[_0x3041c6(0x1a4)],()=>_0x1f7308(Le,this[_0x3041c6(0x197)])));}};m=He([A(0x0,_0x52f490(_0xfcc158)),A(0x1,_0x40fce5)],m);const ye=_0x1191b2(0x167),T={};var Ue=Object[_0x1191b2(0x1cb)],Ve=(_0x12e81c,_0x10d8ff,_0x4c1d34,_0x14a214)=>{const _0x5e97d3=_0x1191b2;for(var _0x32f752=_0x14a214>0x1?void 0x0:_0x14a214?Ue(_0x10d8ff,_0x4c1d34):_0x10d8ff,_0x3bb14c=_0x12e81c[_0x5e97d3(0x1fc)]-0x1,_0x111bb1;_0x3bb14c>=0x0;_0x3bb14c--)(_0x111bb1=_0x12e81c[_0x3bb14c])&&(_0x32f752=_0x111bb1(_0x32f752)||_0x32f752);return _0x32f752;},je=(_0x5ce6c1,_0x43bc64)=>(_0x20307b,_0x5a2e88)=>_0x43bc64(_0x20307b,_0x5a2e88,_0x5ce6c1);let I=class extends _0x42f139{constructor(_0x276cc9){const _0xdcceaf=_0x1191b2;super(),this[_0xdcceaf(0x16f)]=_0x276cc9,this[_0xdcceaf(0x1ec)]();}['_init'](){const _0x20c950=_0x1191b2;[_0x2e5eb8['id'],_0x4c04a3['id'],_0x22d280['id']][_0x20c950(0x1f5)](_0x4e1022=>{const _0x4ca05a=_0x20c950;this['disposeWithMe'](this[_0x4ca05a(0x16f)][_0x4ca05a(0x19f)](_0x4e1022));});}};I=Ve([je(0x0,_0x52f490(L))],I);var Me=Object[_0x1191b2(0x1a8)],ke=Object[_0x1191b2(0x1cb)],Ge=(_0x430524,_0x4c3d91,_0x2adbd6)=>_0x4c3d91 in _0x430524?Me(_0x430524,_0x4c3d91,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2adbd6}):_0x430524[_0x4c3d91]=_0x2adbd6,We=(_0x4240b8,_0xe2fffc,_0x4b037f,_0x51f531)=>{const _0x247721=_0x1191b2;for(var _0x25052b=_0x51f531>0x1?void 0x0:_0x51f531?ke(_0xe2fffc,_0x4b037f):_0xe2fffc,_0x1411e3=_0x4240b8[_0x247721(0x1fc)]-0x1,_0x401bee;_0x1411e3>=0x0;_0x1411e3--)(_0x401bee=_0x4240b8[_0x1411e3])&&(_0x25052b=_0x401bee(_0x25052b)||_0x25052b);return _0x25052b;},F=(_0x22b2c0,_0x5a2661)=>(_0x375af8,_0x5beab9)=>_0x5a2661(_0x375af8,_0x5beab9,_0x22b2c0),B=(_0x403063,_0x516ba0,_0x2f7d83)=>Ge(_0x403063,typeof _0x516ba0!='symbol'?_0x516ba0+'':_0x516ba0,_0x2f7d83);const Ye=_0x1191b2(0x1c0);let b=class extends _0x597a77{constructor(_0x3e96e2=T,_0x452945,_0x3844ad){const _0x58b97e=_0x1191b2;super(),this[_0x58b97e(0x18c)]=_0x3e96e2,this[_0x58b97e(0x197)]=_0x452945,this[_0x58b97e(0x16c)]=_0x3844ad;const {..._0xde74f8}=_0x8b45b2({},T,this[_0x58b97e(0x18c)]);this['_configService'][_0x58b97e(0x1fb)](ye,_0xde74f8);}[_0x1191b2(0x1a0)](){const _0x3bc167=_0x1191b2;_0x277ea5(this[_0x3bc167(0x197)],_0x1a5bcb([[L],[S],[I],[m]],this[_0x3bc167(0x18c)][_0x3bc167(0x1b7)])),_0x412fe3(this[_0x3bc167(0x197)],[[I]]);}[_0x1191b2(0x1af)](){const _0x46bbf4=_0x1191b2;_0x412fe3(this[_0x46bbf4(0x197)],[[m]]);}};B(b,_0x1191b2(0x1fd),_0x52ac2b[_0x1191b2(0x19c)]),B(b,_0x1191b2(0x203),Ye),b=We([_0x31ac97(_0x42c667),F(0x1,_0x52f490(_0xfcc158)),F(0x2,_0x3b6203)],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 _0x1b2f(_0x16ac72,_0x17b1fa){_0x16ac72=_0x16ac72-0x1c6;const _0xef3301=_0xef33();let _0x1b2f00=_0xef3301[_0x16ac72];return _0x1b2f00;}(function(_0x4b8692,_0x4839c1){const _0x444cdf=_0x1b2f,_0x358157=_0x4b8692();while(!![]){try{const _0x2f2761=-parseInt(_0x444cdf(0x1e4))/0x1*(-parseInt(_0x444cdf(0x1d2))/0x2)+parseInt(_0x444cdf(0x1e5))/0x3+parseInt(_0x444cdf(0x1e6))/0x4*(parseInt(_0x444cdf(0x1ce))/0x5)+-parseInt(_0x444cdf(0x1f0))/0x6*(parseInt(_0x444cdf(0x1e9))/0x7)+-parseInt(_0x444cdf(0x1d8))/0x8+parseInt(_0x444cdf(0x1de))/0x9*(-parseInt(_0x444cdf(0x1ea))/0xa)+parseInt(_0x444cdf(0x1ec))/0xb;if(_0x2f2761===_0x4839c1)break;else _0x358157['push'](_0x358157['shift']());}catch(_0x44a70a){_0x358157['push'](_0x358157['shift']());}}}(_0xef33,0x66f38),function(_0x3132a1,_0x37967f){const _0x26f7e4=_0x1b2f;typeof exports=='object'&&typeof module<'u'?_0x37967f(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x26f7e4(0x1cc)&&define[_0x26f7e4(0x1db)]?define([_0x26f7e4(0x1d6),_0x26f7e4(0x1d9),_0x26f7e4(0x1d7)],_0x37967f):(_0x3132a1=typeof globalThis<'u'?globalThis:_0x3132a1||self,_0x37967f(_0x3132a1[_0x26f7e4(0x1da)],_0x3132a1[_0x26f7e4(0x1ee)],_0x3132a1[_0x26f7e4(0x1df)]));}(this,function(_0x10e21c,_0x36c8ce,_0x20bf55){'use strict';const _0x131bb3=_0x1b2f;var _0x573eb0=Object[_0x131bb3(0x1e2)],_0x3e61ac=(_0x546562,_0x25bd00,_0x48818d)=>_0x25bd00 in _0x546562?_0x573eb0(_0x546562,_0x25bd00,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48818d}):_0x546562[_0x25bd00]=_0x48818d,_0x464a47=(_0x1d2850,_0x325902,_0x3ece79)=>_0x3e61ac(_0x1d2850,typeof _0x325902!=_0x131bb3(0x1cf)?_0x325902+'':_0x325902,_0x3ece79);class _0x49a55e extends _0x20bf55[_0x131bb3(0x1e0)]{constructor(){const _0x5d84cb=_0x131bb3;super(...arguments),_0x464a47(this,_0x5d84cb(0x1f1));}[_0x131bb3(0x1cd)](_0x4175cd){const _0x26df19=_0x131bb3;this[_0x26df19(0x1f1)]=_0x4175cd[_0x26df19(0x1d0)](_0x10e21c[_0x26df19(0x1e7)]);}['getLiveShareStatus'](){const _0x473a39=_0x131bb3;var _0xecedb;const _0x7ce27d=this[_0x473a39(0x1eb)][_0x473a39(0x1d0)](_0x36c8ce[_0x473a39(0x1d3)])[_0x473a39(0x1ed)](_0x36c8ce[_0x473a39(0x1ca)][_0x473a39(0x1c6)]);if(!_0x7ce27d)throw new Error(_0x473a39(0x1c7));const _0x7292a4=_0x7ce27d[_0x473a39(0x1dd)](),_0x36a09a=this['_liveShareController'][_0x473a39(0x1e8)](_0x7292a4);return(_0xecedb=_0x36a09a==null?void 0x0:_0x36a09a['getStatus']())!=null?_0xecedb:_0x10e21c[_0x473a39(0x1cb)][_0x473a39(0x1ef)];}[_0x131bb3(0x1d1)](){const _0x4bfb6e=_0x131bb3,_0x2ae002=this[_0x4bfb6e(0x1eb)][_0x4bfb6e(0x1d0)](_0x36c8ce['IUniverInstanceService'])[_0x4bfb6e(0x1ed)](_0x36c8ce[_0x4bfb6e(0x1ca)][_0x4bfb6e(0x1c6)]);if(!_0x2ae002)throw new Error(_0x4bfb6e(0x1c7));const _0x2ab482=_0x2ae002['getUnitId'](),_0x1549aa=this[_0x4bfb6e(0x1f1)][_0x4bfb6e(0x1e8)](_0x2ab482);if(!_0x1549aa)throw new Error(_0x4bfb6e(0x1c9));_0x1549aa[_0x4bfb6e(0x1d1)]();}['stopFollowing'](){const _0x1699c4=_0x131bb3,_0x90bd00=this[_0x1699c4(0x1eb)][_0x1699c4(0x1d0)](_0x36c8ce[_0x1699c4(0x1d3)])['getCurrentUnitOfType'](_0x36c8ce['UniverInstanceType'][_0x1699c4(0x1c6)]);if(!_0x90bd00)throw new Error(_0x1699c4(0x1c7));const _0x1ad299=_0x90bd00['getUnitId'](),_0x525c64=this['_liveShareController'][_0x1699c4(0x1e8)](_0x1ad299);if(!_0x525c64)throw new Error(_0x1699c4(0x1c9));_0x525c64[_0x1699c4(0x1c8)]();}[_0x131bb3(0x1d5)](){const _0x5b63ec=_0x131bb3,_0x5d64f2=this[_0x5b63ec(0x1eb)]['get'](_0x36c8ce['IUniverInstanceService'])[_0x5b63ec(0x1ed)](_0x36c8ce[_0x5b63ec(0x1ca)][_0x5b63ec(0x1c6)]);if(!_0x5d64f2)throw new Error(_0x5b63ec(0x1c7));const _0x2e6d33=_0x5d64f2['getUnitId'](),_0x1dcbd3=this['_liveShareController'][_0x5b63ec(0x1e8)](_0x2e6d33);if(!_0x1dcbd3)throw new Error(_0x5b63ec(0x1c9));_0x1dcbd3[_0x5b63ec(0x1d4)]();}[_0x131bb3(0x1dc)](){const _0x4c540a=_0x131bb3,_0x4d82b3=this[_0x4c540a(0x1eb)]['get'](_0x36c8ce['IUniverInstanceService'])[_0x4c540a(0x1ed)](_0x36c8ce[_0x4c540a(0x1ca)][_0x4c540a(0x1c6)]);if(!_0x4d82b3)throw new Error(_0x4c540a(0x1c7));const _0x296215=_0x4d82b3['getUnitId'](),_0x39aa1c=this[_0x4c540a(0x1f1)][_0x4c540a(0x1e8)](_0x296215);if(!_0x39aa1c)throw new Error(_0x4c540a(0x1c9));_0x39aa1c['stopPresenting']();}}_0x20bf55[_0x131bb3(0x1e0)][_0x131bb3(0x1e3)](_0x49a55e);class _0x8da196 extends _0x20bf55['FEnum']{get[_0x131bb3(0x1e1)](){const _0x177b32=_0x131bb3;return _0x10e21c[_0x177b32(0x1cb)];}}_0x20bf55['FEnum'][_0x131bb3(0x1e3)](_0x8da196);}));function _0xef33(){const _0x486ac8=['UniverCoreFacade','FUniver','LiveShareStatusEnum','defineProperty','extend','194433CwWMcH','208548Qyasdm','24DBnGtU','LiveShareController','getLiveShareCoordinatorSync','1310330BLdoaH','70hOcuIf','_injector','278773NAlbjB','getCurrentUnitOfType','UniverCore','IDLE','6PnFtfk','_liveShareController','UNIVER_SHEET','No\x20active\x20workbook\x20found.','stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverInstanceType','LiveShareStatus','function','_initialize','596815XgtvWJ','symbol','get','startFollowing','2GziHkt','IUniverInstanceService','tryStartPresenting','startPresenting','@univerjs-pro/live-share','@univerjs/core/facade','1045912loYcqH','@univerjs/core','UniverProLiveShare','amd','stopPresenting','getUnitId','341811dzcKNL'];_0xef33=function(){return _0x486ac8;};return _0xef33();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x37ee(){const _0x2de2d3=['tag','stopPresenting','_init','Button','SetZoomRatioOperation','FOLLOWING','Plugin','useState','map','SessionStatus','SetWorksheetActiveOperation','end','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','not-following','getTypeOfUnitAdded$','DisposableCollection','_stopPresenting','5UQVtUT','SAME_OPERATION_SHARE_INTERVAL','_presenter','_collabSessionService','getInitialStates','unsubscribe','UniverProLiveShare','_startPresenting','data','_sharedOperations','pipe','12HYQxUv','defineProperty','UniverSheetsUi','clsx','_univerInstanceService','CommandType','parse','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','tryStartPresenting','sessionStatus$','useRef','IUIPartsService','operations','toString','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','onCommandExecuted','delete','OFFLINE','Injector','_handleOffline','Start','CollaborationSessionService','complete','_unitID','@univerjs-pro/collaboration-client','LIVESHARE_NEW_HOST','string','attrs','registerDependencies','LIVESHARE_OPERATION','idle','getMemberID','UNIVER_UNKNOWN','svg','_injector','url(#$1','PRESENTING','NOT_FOLLOWING','live-share-icon','subscribe','init','jsxs','_liveShareService','presenting','6glvaCJ','offline','You\x27re\x20not\x20following\x20the\x20presenter','getStatus','merge','getLiveShareCoordinator','_configService','jsx','symbol','Inject','IUniverInstanceService','evenodd','_status','react/jsx-runtime','1em','operators','toStringTag','presenter','2492076jeMwFK','20780617vsfQiX','@univerjs/design','LiveShareService','rxjs/operators','registerInitialStateReporter','_startFollowing','add','_mountLiveShare','startFollowing','includes','react','following','_fetchOperations','React','text','mergeOverrideWithDependencies','object','idSuffix','from','UNIVER_SHEET','LiveShareCoordinator','UniverDesign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','children','button','takeUntil','path','throttleTime','touchDependencies','replace','UniverInstanceType','find','colorChannel1','defIds','UniverLiveSharePlugin','@univerjs-pro/collaboration','xlink:href','13155432jTRYFV','@univerjs/core','BuiltInUIPart','5545640bMyGyW','LiveShareController','stopFollowing','_uiPartsService','getOwnPropertyDescriptor','UniverProCollaboration','fill','onStarting','RxDisposable','length','reverse','IDLE','asObservable','Subject','type','override','UniverCollaborationClientPlugin','Fragment','currentColor','toDisposable','_status$','UniverIcon','getUnitId','dispose','12023560xqENwI','Start\x20following','505651YwywGN','forEach','onRendered','InsertSheetMutation','ICommandService','UniverUi','DesktopLiveShareController','status$','CollaborationEvent','univer-size-4','_startLiveShareCoordinator','registerSharedOperation','You\x27re\x20presenting\x20the\x20document','LiveShare','displayName','div','exports','params','disposeWithMe','entries','_commandService','287553MpcDiw','univer-mb-3\x20univer-w-full\x20univer-text-sm','_beIdle','shouldShareOperation','_stopFollowing','useEffect','Disposable','_handleNewHost','parseProtocolChangeset','getLiveShareCoordinatorSync','assign','getValue','LIVESHARE_TERMINATE','_entities','_commandDisposable','current','univerjs-icon\x20univerjs-icon-','Stop\x20presenting','use','OPERATION','has','mutations','memberID','createElement','Stop\x20following','_handleOnline','executeCommand','clear','LiveShareIcon','IConfigService','DependentOn','Present\x20this\x20document','send','@univerjs/sheets-ui','stringify','get','_config','event$','Module','none','next','getTypeOfUnitDisposed$','_collabSession','_reporters','9hdAkSe','NEW_CHANGESETS','rxjs','dispose$'];_0x37ee=function(){return _0x2de2d3;};return _0x37ee();}function _0x1e60(_0x378cfb,_0x58edcf){_0x378cfb=_0x378cfb-0x134;const _0x37ee7a=_0x37ee();let _0x1e60b2=_0x37ee7a[_0x378cfb];return _0x1e60b2;}(function(_0x59ab77,_0x457704){const _0x413c57=_0x1e60,_0x30e39d=_0x59ab77();while(!![]){try{const _0x12d53c=-parseInt(_0x413c57(0x134))/0x1*(-parseInt(_0x413c57(0x1c1))/0x2)+-parseInt(_0x413c57(0x1d3))/0x3+-parseInt(_0x413c57(0x1fc))/0x4*(parseInt(_0x413c57(0x18a))/0x5)+-parseInt(_0x413c57(0x195))/0x6*(-parseInt(_0x413c57(0x149))/0x7)+-parseInt(_0x413c57(0x1f9))/0x8*(parseInt(_0x413c57(0x175))/0x9)+parseInt(_0x413c57(0x214))/0xa+parseInt(_0x413c57(0x1d4))/0xb;if(_0x12d53c===_0x457704)break;else _0x30e39d['push'](_0x30e39d['shift']());}catch(_0xad435a){_0x30e39d['push'](_0x30e39d['shift']());}}}(_0x37ee,0xca69b),function(_0x516a47,_0x5e11ce){const _0x5c3bc8=_0x1e60;typeof exports==_0x5c3bc8(0x1e4)&&typeof module<'u'?_0x5e11ce(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define['amd']?define([_0x5c3bc8(0x144),_0x5c3bc8(0x1fa),'@univerjs/ui',_0x5c3bc8(0x1ce),_0x5c3bc8(0x1d5),_0x5c3bc8(0x1de),_0x5c3bc8(0x1f7),_0x5c3bc8(0x1ad),'@univerjs/sheets',_0x5c3bc8(0x177),_0x5c3bc8(0x1d7),_0x5c3bc8(0x16a)],_0x5e11ce):(_0x516a47=typeof globalThis<'u'?globalThis:_0x516a47||self,_0x5e11ce(_0x516a47[_0x5c3bc8(0x190)]={},_0x516a47['UniverCore'],_0x516a47[_0x5c3bc8(0x139)],_0x516a47[_0x5c3bc8(0x1e1)],_0x516a47[_0x5c3bc8(0x1e9)],_0x516a47['React'],_0x516a47[_0x5c3bc8(0x201)],_0x516a47['UniverProCollaborationClient'],_0x516a47['UniverSheets'],_0x516a47[_0x5c3bc8(0x177)],_0x516a47[_0x5c3bc8(0x177)][_0x5c3bc8(0x1d0)],_0x516a47[_0x5c3bc8(0x197)]));}(this,function(_0x360f1c,_0x90b24f,_0x25839f,_0x44b23a,_0x639229,_0x4ea418,_0x2082d3,_0xc6c7db,_0x32dd66,_0x410d6d,_0x3f3f91,_0xa977cd){'use strict';const _0x266c87=_0x1e60;var _0x485d06=Object['defineProperty'],_0x559458=(_0x2eb42f,_0x587885,_0x202bed)=>_0x587885 in _0x2eb42f?_0x485d06(_0x2eb42f,_0x587885,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x202bed}):_0x2eb42f[_0x587885]=_0x202bed,_0x3ef9fe=(_0x21f0b2,_0x3ff6e8,_0x54d0ba)=>_0x559458(_0x21f0b2,typeof _0x3ff6e8!=_0x266c87(0x1c9)?_0x3ff6e8+'':_0x3ff6e8,_0x54d0ba);function _0xd7bc73({ref:_0x582653,..._0x216fad}){const _0x2d3dd4=_0x266c87,{icon:_0x2e9aef,id:_0x19d7eb,className:_0x44c75f,extend:_0x3c8338,..._0x3ee99d}=_0x216fad,_0x229255=(_0x2d3dd4(0x159)+_0x19d7eb+'\x20'+(_0x44c75f||''))['trim'](),_0x5801db=_0x4ea418[_0x2d3dd4(0x19f)]('_'+_0x30fc93());return _0x1755e5(_0x2e9aef,''+_0x19d7eb,{'defIds':_0x2e9aef[_0x2d3dd4(0x1f5)],'idSuffix':_0x5801db[_0x2d3dd4(0x158)]},{'ref':_0x582653,'className':_0x229255,..._0x3ee99d},_0x3c8338);}function _0x1755e5(_0x26e65a,_0x2a9628,_0x97252,_0xf8977,_0x31cc8e){const _0x4ca0ac=_0x266c87;return _0x4ea418[_0x4ca0ac(0x160)](_0x26e65a[_0x4ca0ac(0x179)],{'key':_0x2a9628,..._0x255843(_0x26e65a,_0x97252,_0x31cc8e),..._0xf8977},(_0x391376(_0x26e65a,_0x97252)[_0x4ca0ac(0x1eb)]||[])[_0x4ca0ac(0x181)]((_0xdd9fa4,_0x106417)=>_0x1755e5(_0xdd9fa4,_0x2a9628+'-'+_0x26e65a[_0x4ca0ac(0x179)]+'-'+_0x106417,_0x97252,void 0x0,_0x31cc8e)));}function _0x255843(_0x17bd95,_0x1868ce,_0x46ee33){const _0x21e9e1=_0x266c87,_0x2c3e67={..._0x17bd95[_0x21e9e1(0x1b0)]};_0x46ee33!=null&&_0x46ee33['colorChannel1']&&_0x2c3e67[_0x21e9e1(0x202)]===_0x21e9e1(0x1f4)&&(_0x2c3e67[_0x21e9e1(0x202)]=_0x46ee33['colorChannel1']),_0x17bd95['tag']==='mask'&&_0x2c3e67['id']&&(_0x2c3e67['id']=_0x2c3e67['id']+_0x1868ce[_0x21e9e1(0x1e5)]),Object[_0x21e9e1(0x147)](_0x2c3e67)['forEach'](([_0x32002c,_0x491823])=>{const _0x58e118=_0x21e9e1;_0x32002c==='mask'&&typeof _0x491823==_0x58e118(0x1af)&&(_0x2c3e67[_0x32002c]=_0x491823[_0x58e118(0x1f1)](/url\(#(.*)\)/,_0x58e118(0x1b8)+_0x1868ce[_0x58e118(0x1e5)]+')'));});const {defIds:_0x1be0d2}=_0x1868ce;return!_0x1be0d2||_0x1be0d2[_0x21e9e1(0x205)]===0x0||(_0x17bd95[_0x21e9e1(0x179)]===_0x21e9e1(0x15b)&&_0x2c3e67[_0x21e9e1(0x1f8)]&&(_0x2c3e67[_0x21e9e1(0x1f8)]=_0x2c3e67[_0x21e9e1(0x1f8)]+_0x1868ce['idSuffix']),Object[_0x21e9e1(0x147)](_0x2c3e67)[_0x21e9e1(0x135)](([_0x2319a4,_0x2e3732])=>{const _0x40e656=_0x21e9e1;typeof _0x2e3732==_0x40e656(0x1af)&&(_0x2c3e67[_0x2319a4]=_0x2e3732[_0x40e656(0x1f1)](/url\(#(.*)\)/,'url(#$1'+_0x1868ce[_0x40e656(0x1e5)]+')'));})),_0x2c3e67;}function _0x391376(_0x1e1c0a,_0xed0f65){const _0x214996=_0x266c87;var _0x52da68;const {defIds:_0x5d8c3d}=_0xed0f65;return!_0x5d8c3d||_0x5d8c3d['length']===0x0?_0x1e1c0a:_0x1e1c0a[_0x214996(0x179)]==='defs'&&((_0x52da68=_0x1e1c0a[_0x214996(0x1eb)])!=null&&_0x52da68['length'])?{..._0x1e1c0a,'children':_0x1e1c0a[_0x214996(0x1eb)][_0x214996(0x181)](_0x3e4a69=>typeof _0x3e4a69[_0x214996(0x1b0)]['id']==_0x214996(0x1af)&&_0x5d8c3d&&_0x5d8c3d['includes'](_0x3e4a69[_0x214996(0x1b0)]['id'])?{..._0x3e4a69,'attrs':{..._0x3e4a69[_0x214996(0x1b0)],'id':_0x3e4a69['attrs']['id']+_0xed0f65[_0x214996(0x1e5)]}}:_0x3e4a69)}:_0x1e1c0a;}function _0x30fc93(){const _0x46bf58=_0x266c87;return Math['random']()[_0x46bf58(0x1a2)](0x24)['substring'](0x2,0x8);}_0xd7bc73['displayName']=_0x266c87(0x211);const _0x54fdd1={'tag':_0x266c87(0x1b6),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x266c87(0x170),'viewBox':'0\x200\x2017\x2017','width':_0x266c87(0x1cf),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x266c87(0x20e),'d':_0x266c87(0x185)}},{'tag':_0x266c87(0x1ee),'attrs':{'fill':'currentColor','d':_0x266c87(0x19c),'fillRule':_0x266c87(0x1cc),'clipRule':_0x266c87(0x1cc)}}]},_0x187896=_0x4ea418['forwardRef'](function(_0x59a2b3,_0xfad159){const _0x11e050=_0x266c87;return _0x4ea418[_0x11e050(0x160)](_0xd7bc73,Object[_0x11e050(0x153)]({},_0x59a2b3,{'id':_0x11e050(0x1bb),'ref':_0xfad159,'icon':_0x54fdd1}));});_0x187896[_0x266c87(0x142)]=_0x266c87(0x165);class _0x485919 extends _0x90b24f[_0x266c87(0x14f)]{constructor(){const _0x1b9146=_0x266c87;super(...arguments),_0x3ef9fe(this,_0x1b9146(0x193),new Set()),_0x3ef9fe(this,_0x1b9146(0x174),new Set());}[_0x266c87(0x13f)](_0xf46bca){const _0xb83d1a=_0x266c87;return this[_0xb83d1a(0x193)][_0xb83d1a(0x1da)](_0xf46bca),_0x90b24f[_0xb83d1a(0x20f)](()=>this['_sharedOperations'][_0xb83d1a(0x1a5)](_0xf46bca));}[_0x266c87(0x1d8)](_0x249f65){const _0x1425e6=_0x266c87;return this[_0x1425e6(0x174)]['add'](_0x249f65),_0x90b24f[_0x1425e6(0x20f)](()=>this['_reporters'][_0x1425e6(0x1a5)](_0x249f65));}[_0x266c87(0x14c)](_0x38a3d4){const _0x554a85=_0x266c87;return this['_sharedOperations'][_0x554a85(0x15d)](_0x38a3d4);}[_0x266c87(0x18e)](_0x4ce5c5){const _0x3f50db=_0x266c87;return Array[_0x3f50db(0x1e6)](this['_reporters'])[_0x3f50db(0x181)](_0x5331e4=>_0x5331e4(_0x4ce5c5));}}var _0x4b9494=Object['getOwnPropertyDescriptor'],_0x16e761=(_0x5dd2bc,_0x188358,_0x469399,_0x5eedee)=>{const _0x1555ff=_0x266c87;for(var _0x26a738=_0x5eedee>0x1?void 0x0:_0x5eedee?_0x4b9494(_0x188358,_0x469399):_0x188358,_0x435db4=_0x5dd2bc[_0x1555ff(0x205)]-0x1,_0x4b13c4;_0x435db4>=0x0;_0x435db4--)(_0x4b13c4=_0x5dd2bc[_0x435db4])&&(_0x26a738=_0x4b13c4(_0x26a738)||_0x26a738);return _0x26a738;},_0x4f60ab=(_0x5d0f5a,_0x54c9a4)=>(_0x226c70,_0x1e59b4)=>_0x54c9a4(_0x226c70,_0x1e59b4,_0x5d0f5a);_0x360f1c[_0x266c87(0x1fd)]=class extends _0x90b24f[_0x266c87(0x204)]{constructor(_0x22089e,_0x85abff,_0x1b35c9){const _0x391185=_0x266c87;super(),_0x3ef9fe(this,_0x391185(0x156),new Map()),(this['_univerInstanceService']=_0x22089e,this['_injector']=_0x85abff,this[_0x391185(0x18d)]=_0x1b35c9,this[_0x391185(0x17b)]());}async[_0x266c87(0x1c6)](_0x2113a6){const _0x308968=_0x266c87;return this['_entities']['has'](_0x2113a6)||await this[_0x308968(0x13e)](_0x2113a6),this[_0x308968(0x156)][_0x308968(0x16c)](_0x2113a6);}[_0x266c87(0x152)](_0x3bea7f){const _0x44c20a=_0x266c87;var _0x52da11;return(_0x52da11=this['_entities'][_0x44c20a(0x16c)](_0x3bea7f))!=null?_0x52da11:null;}['_init'](){const _0x2e9eee=_0x266c87;this['_univerInstanceService'][_0x2e9eee(0x187)](_0x90b24f[_0x2e9eee(0x1f2)][_0x2e9eee(0x1e7)])['pipe'](_0x3f3f91[_0x2e9eee(0x1ed)](this[_0x2e9eee(0x178)]))[_0x2e9eee(0x1bc)](async _0x8a85a7=>{const _0x446a6b=_0x2e9eee,_0x1ff96c=_0x8a85a7[_0x446a6b(0x212)]();this[_0x446a6b(0x156)]['has'](_0x1ff96c)||this[_0x446a6b(0x13e)](_0x1ff96c);}),this[_0x2e9eee(0x199)][_0x2e9eee(0x172)](_0x90b24f[_0x2e9eee(0x1f2)][_0x2e9eee(0x1e7)])[_0x2e9eee(0x194)](_0x3f3f91[_0x2e9eee(0x1ed)](this[_0x2e9eee(0x178)]))[_0x2e9eee(0x1bc)](_0x2eca68=>{const _0x5b57a8=_0x2e9eee,_0x5461b3=_0x2eca68[_0x5b57a8(0x212)](),_0x40cadc=this['_entities'][_0x5b57a8(0x16c)](_0x5461b3);_0x40cadc==null||_0x40cadc[_0x5b57a8(0x213)]();});}async['_startLiveShareCoordinator'](_0x3e60bc){const _0x12574c=_0x266c87,_0x54972d=await this['_collabSessionService']['requireSession'](_0x3e60bc),_0x590380=this[_0x12574c(0x1b7)]['createInstance'](_0x360f1c[_0x12574c(0x1e8)],_0x3e60bc,_0x54972d);return _0x590380['init'](),this[_0x12574c(0x156)]['set'](_0x3e60bc,_0x590380),_0x590380;}},_0x360f1c[_0x266c87(0x1fd)]=_0x16e761([_0x4f60ab(0x0,_0x90b24f['IUniverInstanceService']),_0x4f60ab(0x1,_0x90b24f[_0x266c87(0x1ca)](_0x90b24f['Injector'])),_0x4f60ab(0x2,_0x90b24f['Inject'](_0xc6c7db[_0x266c87(0x1aa)]))],_0x360f1c[_0x266c87(0x1fd)]);var _0x5526e1=(_0x48947a=>(_0x48947a['OFFLINE']=_0x266c87(0x1c2),_0x48947a['IDLE']=_0x266c87(0x1b3),_0x48947a[_0x266c87(0x17e)]=_0x266c87(0x1df),_0x48947a[_0x266c87(0x1ba)]=_0x266c87(0x186),_0x48947a[_0x266c87(0x1b9)]=_0x266c87(0x1c0),_0x48947a))(_0x5526e1||{});const _0x39055c=_0x266c87(0x18b),_0x2bf06d=0xc8;_0x360f1c[_0x266c87(0x1e8)]=class extends _0x90b24f['RxDisposable']{constructor(_0x27409b,_0x494275,_0x12d54d,_0x29fa7b,_0x4f3f3d){const _0x11c7a2=_0x266c87;super(),_0x3ef9fe(this,_0x11c7a2(0x210),new _0x410d6d['BehaviorSubject']('idle')),_0x3ef9fe(this,_0x11c7a2(0x13b),this[_0x11c7a2(0x210)][_0x11c7a2(0x208)]()),_0x3ef9fe(this,_0x11c7a2(0x17b),!0x1),_0x3ef9fe(this,'_commandDisposable',null),_0x3ef9fe(this,_0x11c7a2(0x18c),null),(this[_0x11c7a2(0x1ac)]=_0x27409b,this['_collabSession']=_0x494275,this[_0x11c7a2(0x1c7)]=_0x12d54d,this['_liveShareService']=_0x29fa7b,this[_0x11c7a2(0x148)]=_0x4f3f3d);}get['_status'](){const _0x4f2093=_0x266c87;return this[_0x4f2093(0x210)][_0x4f2093(0x154)]();}[_0x266c87(0x213)](){const _0x2f6adc=_0x266c87;var _0x5293e4;(_0x5293e4=this[_0x2f6adc(0x157)])==null||_0x5293e4[_0x2f6adc(0x213)](),this['_status$']['next'](_0x2f6adc(0x1b3)),this[_0x2f6adc(0x210)]['complete']();}[_0x266c87(0x1c4)](){return this['_status'];}[_0x266c87(0x1bd)](){const _0x186a0b=_0x266c87;this[_0x186a0b(0x17b)]||(this[_0x186a0b(0x17b)]=!0x0,this[_0x186a0b(0x173)][_0x186a0b(0x19e)][_0x186a0b(0x194)](_0x3f3f91[_0x186a0b(0x1ed)](this[_0x186a0b(0x178)]))['subscribe'](_0x6e4ce5=>{const _0x118f82=_0x186a0b;switch(_0x6e4ce5){case _0xc6c7db[_0x118f82(0x182)][_0x118f82(0x1a6)]:this[_0x118f82(0x1a8)]();break;case _0xc6c7db['SessionStatus']['ONLINE']:this[_0x118f82(0x162)]();break;}}),this[_0x186a0b(0x173)][_0x186a0b(0x16e)]['pipe'](_0x3f3f91['takeUntil'](this[_0x186a0b(0x178)]))[_0x186a0b(0x1bc)](_0x172678=>{const _0x40d4f3=_0x186a0b,{eventID:_0x2a388d}=_0x172678;switch(_0x2a388d){case _0x2082d3[_0x40d4f3(0x13c)][_0x40d4f3(0x1ae)]:this[_0x40d4f3(0x150)](_0x172678);break;case _0x2082d3['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x172678);break;case _0x2082d3[_0x40d4f3(0x13c)][_0x40d4f3(0x155)]:this['_handleTerminate']();break;case _0x2082d3['CollaborationEvent'][_0x40d4f3(0x176)]:this['_handleNewChangeSets'](_0x172678);break;}}));}[_0x266c87(0x19d)](){const _0x2c303f=_0x266c87;this[_0x2c303f(0x173)][_0x2c303f(0x169)]({'eventID':_0x2082d3[_0x2c303f(0x13c)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x2c303f(0x1ac)],'userID':this[_0x2c303f(0x173)]['getMemberID']()}},this['_unitID']);}[_0x266c87(0x17a)](){const _0x32d76b=_0x266c87;this[_0x32d76b(0x1cd)]===_0x32d76b(0x1c0)&&(this[_0x32d76b(0x210)]['next']('idle'),this[_0x32d76b(0x173)][_0x32d76b(0x169)]({'eventID':_0x2082d3['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x32d76b(0x1ac)]}},this[_0x32d76b(0x1ac)]));}[_0x266c87(0x1dc)](){const _0x1bb7ab=_0x266c87;this[_0x1bb7ab(0x1cd)]==='not-following'&&(this[_0x1bb7ab(0x210)][_0x1bb7ab(0x171)](_0x1bb7ab(0x1df)),this['_startFollowing']());}[_0x266c87(0x1fe)](){const _0x5d8d55=_0x266c87;this[_0x5d8d55(0x1cd)]===_0x5d8d55(0x1df)&&this[_0x5d8d55(0x14d)]();}['_handleNewHost'](_0x2be94f){const _0xcae7c7=_0x266c87,{presenter:_0xc8bebf}=_0x2be94f[_0xcae7c7(0x192)],_0x3a3c64=this['_collabSession'][_0xcae7c7(0x1b4)]();this['_presenter']=_0xc8bebf,_0xc8bebf===_0x3a3c64?(this[_0xcae7c7(0x14d)](),this['_startPresenting']()):this[_0xcae7c7(0x1cd)]!=='not-following'&&(this[_0xcae7c7(0x189)](),this[_0xcae7c7(0x1d9)]());}[_0x266c87(0x1e0)](){const _0x14a097=_0x266c87,_0x503eee={'eventID':_0x2082d3[_0x14a097(0x13c)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x14a097(0x173)][_0x14a097(0x169)](_0x503eee,this[_0x14a097(0x1ac)]);}['_handleTerminate'](){const _0x246c15=_0x266c87;this[_0x246c15(0x18c)]=null,this[_0x246c15(0x1cd)]!==_0x246c15(0x1c0)&&this[_0x246c15(0x14b)]();}['_handleNewChangeSets'](_0x52434a){const _0xedbea9=_0x266c87;if(this[_0xedbea9(0x1cd)]===_0xedbea9(0x1df)&&this[_0xedbea9(0x18c)]===_0x52434a[_0xedbea9(0x192)][_0xedbea9(0x15f)]){const _0x2404cd=_0x2082d3[_0xedbea9(0x151)](_0x52434a['data'])[_0xedbea9(0x15e)][_0xedbea9(0x206)]()[_0xedbea9(0x1f3)](_0x52bfa1=>_0x52bfa1['id']===_0x32dd66[_0xedbea9(0x137)]['id']);if(_0x2404cd){const _0x39b8b9=_0x2404cd[_0xedbea9(0x145)]['unitId'],_0x1b66be=_0x2404cd[_0xedbea9(0x145)]['sheet']['id'];setTimeout(()=>{const _0x20a889=_0xedbea9;this[_0x20a889(0x148)]['executeCommand'](_0x32dd66[_0x20a889(0x183)]['id'],{'unitId':_0x39b8b9,'subUnitId':_0x1b66be},{'fromCollab':!0x0});});}}}[_0x266c87(0x191)](){const _0x4f153b=_0x266c87;this[_0x4f153b(0x210)]['next'](_0x4f153b(0x1c0));const _0x3cad48=new Map(),_0x5b0e83=this[_0x4f153b(0x157)]=new _0x90b24f[(_0x4f153b(0x188))]();_0x5b0e83[_0x4f153b(0x1da)](_0x90b24f[_0x4f153b(0x20f)](()=>{const _0x409681=_0x4f153b;_0x3cad48[_0x409681(0x135)](_0x5417a3=>_0x5417a3[_0x409681(0x1ab)]()),_0x3cad48[_0x409681(0x164)]();})),_0x5b0e83['add'](this[_0x4f153b(0x148)][_0x4f153b(0x1a4)](_0x2e54ed=>{const _0x59ff9d=_0x4f153b;var _0x31f927;if(_0x2e54ed[_0x59ff9d(0x20a)]!==_0x90b24f[_0x59ff9d(0x19a)][_0x59ff9d(0x15c)]||!this[_0x59ff9d(0x1bf)]['shouldShareOperation'](_0x2e54ed['id']))return;const {id:_0x476153}=_0x2e54ed;let _0x261847;_0x3cad48['has'](_0x476153)?_0x261847=_0x3cad48[_0x59ff9d(0x16c)](_0x476153):(_0x261847=new _0x410d6d[(_0x59ff9d(0x209))](),_0x3cad48['set'](_0x476153,_0x261847),_0x261847['pipe'](_0x3f3f91[_0x59ff9d(0x1ef)]((_0x31f927=this[_0x59ff9d(0x1c7)]['getConfig'](_0x39055c))!=null?_0x31f927:_0x2bf06d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59ff9d(0x1bc)](_0x112567=>{const _0x1f466b=_0x59ff9d;this[_0x1f466b(0x173)][_0x1f466b(0x169)]({'eventID':_0x2082d3[_0x1f466b(0x13c)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1f466b(0x1ac)],'operations':{[_0x112567['id']]:{'id':_0x112567['id'],'params':JSON[_0x1f466b(0x16b)](_0x112567[_0x1f466b(0x145)])}}}},this['_unitID']);})),_0x261847['next'](_0x2e54ed);})),this[_0x4f153b(0x1bf)]['getInitialStates'](this[_0x4f153b(0x1ac)])[_0x4f153b(0x135)](_0x186a15=>this[_0x4f153b(0x173)][_0x4f153b(0x169)]({'eventID':_0x2082d3[_0x4f153b(0x13c)][_0x4f153b(0x1b2)],'data':{'unitID':this[_0x4f153b(0x1ac)],'operations':{[_0x186a15['id']]:{'id':_0x186a15['id'],'params':JSON[_0x4f153b(0x16b)](_0x186a15[_0x4f153b(0x145)])}}}},this[_0x4f153b(0x1ac)]));}[_0x266c87(0x189)](){const _0x199647=_0x266c87;var _0x183192;this['_status$']['next'](_0x199647(0x1b3)),(_0x183192=this[_0x199647(0x157)])==null||_0x183192[_0x199647(0x213)](),this[_0x199647(0x157)]=null;}[_0x266c87(0x1d9)](){const _0x2237ef=_0x266c87;var _0x41cf4e;(_0x41cf4e=this[_0x2237ef(0x157)])==null||_0x41cf4e[_0x2237ef(0x213)](),this[_0x2237ef(0x210)][_0x2237ef(0x171)](_0x2237ef(0x1df));}[_0x266c87(0x14b)](){const _0x35ebd6=_0x266c87;var _0x1ceac3;this[_0x35ebd6(0x210)][_0x35ebd6(0x171)](_0x35ebd6(0x1b3)),(_0x1ceac3=this['_commandDisposable'])==null||_0x1ceac3[_0x35ebd6(0x213)](),this[_0x35ebd6(0x157)]=null;}[_0x266c87(0x14d)](){const _0x21d5db=_0x266c87;var _0x90a9ab;this[_0x21d5db(0x210)][_0x21d5db(0x171)](_0x21d5db(0x186)),(_0x90a9ab=this[_0x21d5db(0x157)])==null||_0x90a9ab[_0x21d5db(0x213)]();}['_handleOperation'](_0x555c0b){const _0x563b88=_0x266c87;if(['presenting',_0x563b88(0x186),_0x563b88(0x1c2)][_0x563b88(0x1dd)](this['_status'])||!_0x555c0b[_0x563b88(0x192)][_0x563b88(0x1d2)]||_0x555c0b[_0x563b88(0x192)]['presenter']===this[_0x563b88(0x173)][_0x563b88(0x1b4)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0x5dff46=_0x555c0b[_0x563b88(0x192)][_0x563b88(0x1a1)];Object['values'](_0x5dff46)[_0x563b88(0x135)](_0x4360b0=>{const _0x42b061=_0x563b88;this[_0x42b061(0x148)][_0x42b061(0x163)](_0x4360b0['id'],_0x4360b0[_0x42b061(0x145)]?JSON[_0x42b061(0x19b)](_0x4360b0[_0x42b061(0x145)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4f9231=_0x266c87;var _0x1d48b1;this['_status$']['next']('offline'),(_0x1d48b1=this[_0x4f9231(0x157)])==null||_0x1d48b1[_0x4f9231(0x213)]();}[_0x266c87(0x162)](){const _0x9b5da5=_0x266c87;this['_status$'][_0x9b5da5(0x171)](_0x9b5da5(0x1b3)),this[_0x9b5da5(0x1e0)]();}},_0x360f1c[_0x266c87(0x1e8)]=_0x16e761([_0x4f60ab(0x2,_0x90b24f[_0x266c87(0x166)]),_0x4f60ab(0x3,_0x90b24f[_0x266c87(0x1ca)](_0x485919)),_0x4f60ab(0x4,_0x90b24f[_0x266c87(0x138)])],_0x360f1c[_0x266c87(0x1e8)]);function _0x44cbfc(){const _0x5a5748=_0x266c87,_0x4ac58a=_0x25839f['useDependency'](_0x360f1c[_0x5a5748(0x1fd)]),_0x155463=_0x25839f['useDependency'](_0x90b24f[_0x5a5748(0x1cb)]),_0x10053c=_0x25839f['useObservable'](()=>_0x155463['getCurrentTypeOfUnit$'](_0x90b24f[_0x5a5748(0x1f2)][_0x5a5748(0x1e7)]),void 0x0,!0x1,[]),[_0x402eac,_0x6eb725]=_0x4ea418[_0x5a5748(0x180)](null),[_0x5bef49,_0x5d3b65]=_0x4ea418[_0x5a5748(0x180)](_0x5526e1[_0x5a5748(0x207)]),_0x24780e=_0x4ea418[_0x5a5748(0x19f)](null);return _0x4ea418[_0x5a5748(0x14e)](()=>(_0x10053c&&_0x4ac58a[_0x5a5748(0x1c6)](_0x10053c['getUnitId']())['then'](_0x2252b6=>{const _0x1a01eb=_0x5a5748;_0x6eb725(_0x2252b6),_0x24780e[_0x1a01eb(0x158)]=_0x2252b6[_0x1a01eb(0x13b)][_0x1a01eb(0x1bc)](_0x526193=>{_0x5d3b65(_0x526193);});}),()=>{const _0x3c9dba=_0x5a5748;var _0x33ff94;(_0x33ff94=_0x24780e[_0x3c9dba(0x158)])==null||_0x33ff94[_0x3c9dba(0x18f)](),_0x24780e[_0x3c9dba(0x158)]=null;}),[_0x10053c,_0x4ac58a]),_0x402eac?_0x44b23a['jsx'](_0x639229['Dropdown'],{'align':_0x5a5748(0x184),'disabled':_0x5bef49===_0x5526e1[_0x5a5748(0x1a6)],'className':_0x5a5748(0x1a3),'overlay':_0x44b23a[_0x5a5748(0x1c8)](_0x5b5ea3,{'status':_0x5bef49,'coordinator':_0x402eac}),'children':_0x44b23a[_0x5a5748(0x1c8)](_0x5a5748(0x1ec),{'className':_0x639229[_0x5a5748(0x198)](_0x5a5748(0x1ea),{'univer-cursor-not-allowed':_0x5bef49===_0x5526e1[_0x5a5748(0x1a6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5bef49!==_0x5526e1['OFFLINE']}),'type':_0x5a5748(0x1ec),'children':_0x44b23a[_0x5a5748(0x1c8)](_0x187896,{'className':_0x5a5748(0x13d)})})}):null;}function _0x5b5ea3(_0x3c4c7b){const _0x501385=_0x266c87,{status:_0x33951c,coordinator:_0x1791cb}=_0x3c4c7b;switch(_0x33951c){case _0x5526e1[_0x501385(0x207)]:return _0x44b23a['jsx'](_0x587228,{'coordinator':_0x1791cb});case _0x5526e1[_0x501385(0x17e)]:return _0x44b23a['jsx'](_0x2a3656,{'coordinator':_0x1791cb});case _0x5526e1[_0x501385(0x1ba)]:return _0x44b23a['jsx'](_0x4742b8,{'coordinator':_0x1791cb});case _0x5526e1[_0x501385(0x1a6)]:return _0x44b23a[_0x501385(0x1c8)](_0x2739cc,{});case _0x5526e1[_0x501385(0x1b9)]:return _0x44b23a[_0x501385(0x1c8)](_0x39c9dd,{'coordinator':_0x1791cb});default:return null;}}function _0x587228(_0x59b141){const _0x12cee0=_0x266c87,{coordinator:_0x262f52}=_0x59b141;return _0x44b23a['jsxs'](_0x44b23a[_0x12cee0(0x20d)],{'children':[_0x44b23a['jsx'](_0x12cee0(0x143),{'className':_0x12cee0(0x14a),'children':_0x12cee0(0x168)}),_0x44b23a[_0x12cee0(0x1c8)](_0x639229['Button'],{'onClick':()=>_0x262f52['tryStartPresenting'](),'children':_0x12cee0(0x1a9)})]});}function _0x2a3656(_0x56f9f7){const _0x212cf3=_0x266c87,{coordinator:_0xe3f540}=_0x56f9f7;return _0x44b23a[_0x212cf3(0x1be)](_0x44b23a[_0x212cf3(0x20d)],{'children':[_0x44b23a[_0x212cf3(0x1c8)](_0x212cf3(0x143),{'className':_0x212cf3(0x14a),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x44b23a[_0x212cf3(0x1c8)](_0x639229[_0x212cf3(0x17c)],{'onClick':()=>_0xe3f540[_0x212cf3(0x1fe)](),'children':_0x212cf3(0x161)})]});}function _0x4742b8(_0x2f84d6){const _0x133197=_0x266c87,{coordinator:_0x412ba8}=_0x2f84d6;return _0x44b23a[_0x133197(0x1be)](_0x44b23a[_0x133197(0x20d)],{'children':[_0x44b23a[_0x133197(0x1c8)](_0x133197(0x143),{'className':_0x133197(0x14a),'children':_0x133197(0x1c3)}),_0x44b23a[_0x133197(0x1c8)](_0x639229[_0x133197(0x17c)],{'variant':_0x133197(0x1e2),'onClick':()=>_0x412ba8[_0x133197(0x1dc)](),'children':_0x133197(0x215)})]});}function _0x39c9dd(_0x5e9f05){const _0x176f83=_0x266c87,{coordinator:_0x47d53b}=_0x5e9f05;return _0x44b23a[_0x176f83(0x1be)](_0x44b23a[_0x176f83(0x20d)],{'children':[_0x44b23a[_0x176f83(0x1c8)](_0x176f83(0x143),{'className':_0x176f83(0x14a),'children':_0x176f83(0x140)}),_0x44b23a[_0x176f83(0x1c8)](_0x639229[_0x176f83(0x17c)],{'variant':'default','onClick':()=>_0x47d53b['stopPresenting'](),'children':_0x176f83(0x15a)})]});}function _0x2739cc(){return _0x44b23a['jsx'](_0x44b23a['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x4d4124=Object[_0x266c87(0x200)],_0x5163ec=(_0x24c137,_0x4d39cf,_0xa91976,_0x356324)=>{const _0xcd30c3=_0x266c87;for(var _0x3f8bf8=_0x356324>0x1?void 0x0:_0x356324?_0x4d4124(_0x4d39cf,_0xa91976):_0x4d39cf,_0x333493=_0x24c137[_0xcd30c3(0x205)]-0x1,_0x76db8;_0x333493>=0x0;_0x333493--)(_0x76db8=_0x24c137[_0x333493])&&(_0x3f8bf8=_0x76db8(_0x3f8bf8)||_0x3f8bf8);return _0x3f8bf8;},_0x4c4dc9=(_0x1ce08d,_0x1a97c8)=>(_0x356911,_0x3ff614)=>_0x1a97c8(_0x356911,_0x3ff614,_0x1ce08d);_0x360f1c[_0x266c87(0x13a)]=class extends _0x90b24f[_0x266c87(0x14f)]{constructor(_0x4c6b30,_0x2c30ce){const _0x36d8bb=_0x266c87;super(),this[_0x36d8bb(0x1b7)]=_0x4c6b30,this[_0x36d8bb(0x1ff)]=_0x2c30ce,this[_0x36d8bb(0x1db)]();}[_0x266c87(0x1db)](){const _0x5035ce=_0x266c87;this[_0x5035ce(0x146)](this[_0x5035ce(0x1ff)]['registerComponent'](_0x25839f[_0x5035ce(0x1fb)]['HEADER_MENU'],()=>_0x25839f['connectInjector'](_0x44cbfc,this['_injector'])));}},_0x360f1c[_0x266c87(0x13a)]=_0x5163ec([_0x4c4dc9(0x0,_0x90b24f[_0x266c87(0x1ca)](_0x90b24f[_0x266c87(0x1a7)])),_0x4c4dc9(0x1,_0x25839f[_0x266c87(0x1a0)])],_0x360f1c['DesktopLiveShareController']);const _0x5b9b25='live-share.config',_0x38dca2={};var _0x1c8bf8=Object[_0x266c87(0x200)],_0xd22ddf=(_0x3fa7cc,_0x5f2e0d,_0x1363c4,_0x34cea2)=>{const _0x1a8bfb=_0x266c87;for(var _0x590b33=_0x34cea2>0x1?void 0x0:_0x34cea2?_0x1c8bf8(_0x5f2e0d,_0x1363c4):_0x5f2e0d,_0x2c6f00=_0x3fa7cc[_0x1a8bfb(0x205)]-0x1,_0x1428f1;_0x2c6f00>=0x0;_0x2c6f00--)(_0x1428f1=_0x3fa7cc[_0x2c6f00])&&(_0x590b33=_0x1428f1(_0x590b33)||_0x590b33);return _0x590b33;},_0xeea5c1=(_0x594edd,_0x1f78f0)=>(_0x567c7d,_0x100415)=>_0x1f78f0(_0x567c7d,_0x100415,_0x594edd);let _0xb269f8=class extends _0x90b24f['Disposable']{constructor(_0x13dc51){const _0x43ebaa=_0x266c87;super(),this[_0x43ebaa(0x1bf)]=_0x13dc51,this['_init']();}[_0x266c87(0x17b)](){const _0x2b0165=_0x266c87;[_0xa977cd[_0x2b0165(0x17d)]['id'],_0xa977cd['SetScrollOperation']['id'],_0x32dd66[_0x2b0165(0x183)]['id']]['forEach'](_0x51ca8b=>{const _0x2a3eec=_0x2b0165;this[_0x2a3eec(0x146)](this[_0x2a3eec(0x1bf)][_0x2a3eec(0x13f)](_0x51ca8b));});}};_0xb269f8=_0xd22ddf([_0xeea5c1(0x0,_0x90b24f[_0x266c87(0x1ca)](_0x485919))],_0xb269f8);var _0x43e009=Object['defineProperty'],_0x21bed6=Object[_0x266c87(0x200)],_0x3c0cc3=(_0x2cd56d,_0x20a0d1,_0x2c0531)=>_0x20a0d1 in _0x2cd56d?_0x43e009(_0x2cd56d,_0x20a0d1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c0531}):_0x2cd56d[_0x20a0d1]=_0x2c0531,_0x5862e3=(_0x9ca83d,_0x3f26a0,_0x5b4984,_0x546a42)=>{const _0x40a0c6=_0x266c87;for(var _0x2a2847=_0x546a42>0x1?void 0x0:_0x546a42?_0x21bed6(_0x3f26a0,_0x5b4984):_0x3f26a0,_0x588600=_0x9ca83d[_0x40a0c6(0x205)]-0x1,_0x5b5113;_0x588600>=0x0;_0x588600--)(_0x5b5113=_0x9ca83d[_0x588600])&&(_0x2a2847=_0x5b5113(_0x2a2847)||_0x2a2847);return _0x2a2847;},_0x57d575=(_0x2d04fc,_0x53b156)=>(_0x2b52e7,_0x538faf)=>_0x53b156(_0x2b52e7,_0x538faf,_0x2d04fc),_0x3eee37=(_0xf51395,_0x15ad1b,_0x6a8dbd)=>_0x3c0cc3(_0xf51395,typeof _0x15ad1b!='symbol'?_0x15ad1b+'':_0x15ad1b,_0x6a8dbd);const _0x302152='UNIVER_LIVE_SHARE_PLUGIN';_0x360f1c['UniverLiveSharePlugin']=class extends _0x90b24f[_0x266c87(0x17f)]{constructor(_0x4b67be=_0x38dca2,_0x179628,_0x423461){const _0xc3c53e=_0x266c87;super(),this[_0xc3c53e(0x16d)]=_0x4b67be,this[_0xc3c53e(0x1b7)]=_0x179628,this[_0xc3c53e(0x1c7)]=_0x423461;const {..._0x3bab4c}=_0x90b24f[_0xc3c53e(0x1c5)]({},_0x38dca2,this[_0xc3c53e(0x16d)]);this['_configService']['setConfig'](_0x5b9b25,_0x3bab4c);}[_0x266c87(0x203)](){const _0x370348=_0x266c87;_0x90b24f[_0x370348(0x1b1)](this[_0x370348(0x1b7)],_0x90b24f[_0x370348(0x1e3)]([[_0x485919],[_0x360f1c['LiveShareController']],[_0xb269f8],[_0x360f1c[_0x370348(0x13a)]]],this[_0x370348(0x16d)][_0x370348(0x20b)])),_0x90b24f[_0x370348(0x1f0)](this[_0x370348(0x1b7)],[[_0xb269f8]]);}[_0x266c87(0x136)](){const _0x3b2d28=_0x266c87;_0x90b24f['touchDependencies'](this[_0x3b2d28(0x1b7)],[[_0x360f1c['DesktopLiveShareController']]]);}},_0x3eee37(_0x360f1c[_0x266c87(0x1f6)],_0x266c87(0x20a),_0x90b24f['UniverInstanceType'][_0x266c87(0x1b5)]),_0x3eee37(_0x360f1c[_0x266c87(0x1f6)],'pluginName',_0x302152),_0x360f1c[_0x266c87(0x1f6)]=_0x5862e3([_0x90b24f[_0x266c87(0x167)](_0xc6c7db[_0x266c87(0x20c)]),_0x57d575(0x1,_0x90b24f[_0x266c87(0x1ca)](_0x90b24f['Injector'])),_0x57d575(0x2,_0x90b24f[_0x266c87(0x166)])],_0x360f1c['UniverLiveSharePlugin']),_0x360f1c[_0x266c87(0x141)]=_0x44cbfc,_0x360f1c[_0x266c87(0x1d6)]=_0x485919,_0x360f1c['LiveShareStatus']=_0x5526e1,Object[_0x266c87(0x196)](_0x360f1c,Symbol[_0x266c87(0x1d1)],{'value':_0x266c87(0x16f)});}));
|
|
1
|
+
(function(_0x4678fc,_0x533038){const _0x38525b=_0x5a6d,_0xcebde=_0x4678fc();while(!![]){try{const _0x24647d=parseInt(_0x38525b(0xe5))/0x1+-parseInt(_0x38525b(0xfc))/0x2*(parseInt(_0x38525b(0x17e))/0x3)+-parseInt(_0x38525b(0xb4))/0x4+-parseInt(_0x38525b(0x104))/0x5*(parseInt(_0x38525b(0x110))/0x6)+-parseInt(_0x38525b(0x179))/0x7*(parseInt(_0x38525b(0x122))/0x8)+parseInt(_0x38525b(0x139))/0x9*(parseInt(_0x38525b(0xbd))/0xa)+-parseInt(_0x38525b(0xe7))/0xb*(-parseInt(_0x38525b(0xaf))/0xc);if(_0x24647d===_0x533038)break;else _0xcebde['push'](_0xcebde['shift']());}catch(_0x574b97){_0xcebde['push'](_0xcebde['shift']());}}}(_0x4622,0x5288c),function(_0x5ca170,_0x3297e2){const _0x446a9b=_0x5a6d;typeof exports=='object'&&typeof module<'u'?_0x3297e2(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==_0x446a9b(0x107)&&define[_0x446a9b(0x12a)]?define([_0x446a9b(0x13a),_0x446a9b(0x146),_0x446a9b(0xb1),_0x446a9b(0x15d),_0x446a9b(0x11d),_0x446a9b(0x17f),_0x446a9b(0xfd),_0x446a9b(0xf7),_0x446a9b(0xb6),'rxjs',_0x446a9b(0xdb),_0x446a9b(0x105)],_0x3297e2):(_0x5ca170=typeof globalThis<'u'?globalThis:_0x5ca170||self,_0x3297e2(_0x5ca170['UniverProLiveShare']={},_0x5ca170[_0x446a9b(0x11b)],_0x5ca170[_0x446a9b(0x10f)],_0x5ca170[_0x446a9b(0x17a)],_0x5ca170[_0x446a9b(0xfb)],_0x5ca170[_0x446a9b(0x17a)],_0x5ca170['UniverProCollaboration'],_0x5ca170[_0x446a9b(0x13f)],_0x5ca170[_0x446a9b(0x121)],_0x5ca170[_0x446a9b(0xc6)],_0x5ca170['rxjs'][_0x446a9b(0xf5)],_0x5ca170[_0x446a9b(0x136)]));}(this,function(_0xb111cc,_0x4c6753,_0x462432,_0x1a7374,_0x17fd4c,_0x18d1ec,_0x4361d9,_0x5a4563,_0x57d05a,_0x3a52e9,_0x29a6c7,_0x290a03){'use strict';const _0x18f5c5=_0x5a6d;var _0x5b0c64=Object[_0x18f5c5(0x12f)],_0x2cdc91=(_0x3737f8,_0x587626,_0x14d572)=>_0x587626 in _0x3737f8?_0x5b0c64(_0x3737f8,_0x587626,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14d572}):_0x3737f8[_0x587626]=_0x14d572,_0x3b8ef1=(_0xa67856,_0x3afa65,_0x50b938)=>_0x2cdc91(_0xa67856,typeof _0x3afa65!='symbol'?_0x3afa65+'':_0x3afa65,_0x50b938);function _0x22a2dc({ref:_0x483fa9,..._0x1a881a}){const _0x2ea157=_0x18f5c5,{icon:_0x4eb951,id:_0x171c6c,className:_0x5cb6c1,extend:_0x503a2b,..._0x90069c}=_0x1a881a,_0x20e750=(_0x2ea157(0xdf)+_0x171c6c+'\x20'+(_0x5cb6c1||''))[_0x2ea157(0x16e)](),_0x72926c=_0x18d1ec['useRef']('_'+_0x420418());return _0x24d52a(_0x4eb951,''+_0x171c6c,{'defIds':_0x4eb951[_0x2ea157(0x181)],'idSuffix':_0x72926c[_0x2ea157(0xe6)]},{'ref':_0x483fa9,'className':_0x20e750,..._0x90069c},_0x503a2b);}function _0x24d52a(_0x2e5f56,_0x229bad,_0x319a65,_0x581e67,_0x2cbcc4){const _0x42c150=_0x18f5c5;return _0x18d1ec[_0x42c150(0x135)](_0x2e5f56['tag'],{'key':_0x229bad,..._0x4efeb5(_0x2e5f56,_0x319a65,_0x2cbcc4),..._0x581e67},(_0x47ddd5(_0x2e5f56,_0x319a65)['children']||[])[_0x42c150(0x15c)]((_0x4411a8,_0x1f83e6)=>_0x24d52a(_0x4411a8,_0x229bad+'-'+_0x2e5f56['tag']+'-'+_0x1f83e6,_0x319a65,void 0x0,_0x2cbcc4)));}function _0x4efeb5(_0x30fe01,_0x3322a2,_0x1e1a72){const _0x2ef1dc=_0x18f5c5,_0x2b9095={..._0x30fe01['attrs']};_0x1e1a72!=null&&_0x1e1a72[_0x2ef1dc(0xc5)]&&_0x2b9095[_0x2ef1dc(0x170)]===_0x2ef1dc(0xc5)&&(_0x2b9095[_0x2ef1dc(0x170)]=_0x1e1a72['colorChannel1']),_0x30fe01[_0x2ef1dc(0x13c)]===_0x2ef1dc(0x180)&&_0x2b9095['id']&&(_0x2b9095['id']=_0x2b9095['id']+_0x3322a2[_0x2ef1dc(0x17c)]),Object['entries'](_0x2b9095)[_0x2ef1dc(0x109)](([_0x5bdb67,_0x14ebd5])=>{const _0x30761e=_0x2ef1dc;_0x5bdb67===_0x30761e(0x180)&&typeof _0x14ebd5==_0x30761e(0xb2)&&(_0x2b9095[_0x5bdb67]=_0x14ebd5[_0x30761e(0xfe)](/url\(#(.*)\)/,_0x30761e(0x101)+_0x3322a2['idSuffix']+')'));});const {defIds:_0xa673b}=_0x3322a2;return!_0xa673b||_0xa673b['length']===0x0||(_0x30fe01[_0x2ef1dc(0x13c)]==='use'&&_0x2b9095[_0x2ef1dc(0xcc)]&&(_0x2b9095[_0x2ef1dc(0xcc)]=_0x2b9095[_0x2ef1dc(0xcc)]+_0x3322a2[_0x2ef1dc(0x17c)]),Object[_0x2ef1dc(0x116)](_0x2b9095)['forEach'](([_0x958f44,_0x489871])=>{const _0x432dea=_0x2ef1dc;typeof _0x489871==_0x432dea(0xb2)&&(_0x2b9095[_0x958f44]=_0x489871[_0x432dea(0xfe)](/url\(#(.*)\)/,'url(#$1'+_0x3322a2['idSuffix']+')'));})),_0x2b9095;}function _0x47ddd5(_0x15ed73,_0x5bc13d){const _0x361999=_0x18f5c5;var _0x12d877;const {defIds:_0x404156}=_0x5bc13d;return!_0x404156||_0x404156[_0x361999(0x151)]===0x0?_0x15ed73:_0x15ed73[_0x361999(0x13c)]===_0x361999(0xd2)&&((_0x12d877=_0x15ed73[_0x361999(0xf2)])!=null&&_0x12d877[_0x361999(0x151)])?{..._0x15ed73,'children':_0x15ed73[_0x361999(0xf2)][_0x361999(0x15c)](_0x59d01a=>typeof _0x59d01a[_0x361999(0x163)]['id']==_0x361999(0xb2)&&_0x404156&&_0x404156[_0x361999(0x14f)](_0x59d01a['attrs']['id'])?{..._0x59d01a,'attrs':{..._0x59d01a[_0x361999(0x163)],'id':_0x59d01a[_0x361999(0x163)]['id']+_0x5bc13d['idSuffix']}}:_0x59d01a)}:_0x15ed73;}function _0x420418(){const _0x587dc9=_0x18f5c5;return Math['random']()[_0x587dc9(0x19d)](0x24)['substring'](0x2,0x8);}_0x22a2dc['displayName']='UniverIcon';const _0x370a10={'tag':_0x18f5c5(0x14d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x18f5c5(0x156),'viewBox':_0x18f5c5(0x162),'width':_0x18f5c5(0x143),'height':_0x18f5c5(0x143)},'children':[{'tag':_0x18f5c5(0xd8),'attrs':{'fill':'currentColor','d':_0x18f5c5(0xc8)}},{'tag':_0x18f5c5(0xd8),'attrs':{'fill':_0x18f5c5(0x118),'d':_0x18f5c5(0x18a),'fillRule':_0x18f5c5(0x14e),'clipRule':_0x18f5c5(0x14e)}}]},_0x24d395=_0x18d1ec['forwardRef'](function(_0x50413f,_0x2e8c63){const _0x574b18=_0x18f5c5;return _0x18d1ec['createElement'](_0x22a2dc,Object[_0x574b18(0xf1)]({},_0x50413f,{'id':_0x574b18(0xb0),'ref':_0x2e8c63,'icon':_0x370a10}));});_0x24d395[_0x18f5c5(0x11f)]=_0x18f5c5(0x159);class _0x3c7620 extends _0x4c6753['Disposable']{constructor(){const _0x527fb4=_0x18f5c5;super(...arguments),_0x3b8ef1(this,_0x527fb4(0x18d),new Set()),_0x3b8ef1(this,_0x527fb4(0x11a),new Set());}['registerSharedOperation'](_0x507721){const _0x353ab0=_0x18f5c5;return this[_0x353ab0(0x18d)][_0x353ab0(0x112)](_0x507721),_0x4c6753['toDisposable'](()=>this['_sharedOperations'][_0x353ab0(0x177)](_0x507721));}[_0x18f5c5(0xee)](_0x5d6d31){const _0x341641=_0x18f5c5;return this[_0x341641(0x11a)][_0x341641(0x112)](_0x5d6d31),_0x4c6753['toDisposable'](()=>this['_reporters'][_0x341641(0x177)](_0x5d6d31));}[_0x18f5c5(0x198)](_0x4b1b2b){const _0x28f4da=_0x18f5c5;return this[_0x28f4da(0x18d)][_0x28f4da(0x19a)](_0x4b1b2b);}[_0x18f5c5(0x108)](_0x52d5ee){const _0x448683=_0x18f5c5;return Array[_0x448683(0x14c)](this[_0x448683(0x11a)])['map'](_0x50e626=>_0x50e626(_0x52d5ee));}}var _0x3278d9=Object[_0x18f5c5(0x10a)],_0x2f2ace=(_0x5e1d53,_0x41c542,_0x19122d,_0x141976)=>{const _0x1a7c88=_0x18f5c5;for(var _0x40707c=_0x141976>0x1?void 0x0:_0x141976?_0x3278d9(_0x41c542,_0x19122d):_0x41c542,_0x644112=_0x5e1d53[_0x1a7c88(0x151)]-0x1,_0x5a504b;_0x644112>=0x0;_0x644112--)(_0x5a504b=_0x5e1d53[_0x644112])&&(_0x40707c=_0x5a504b(_0x40707c)||_0x40707c);return _0x40707c;},_0x210108=(_0x59cb3c,_0x1e4866)=>(_0x560e6c,_0x4cac2c)=>_0x1e4866(_0x560e6c,_0x4cac2c,_0x59cb3c);_0xb111cc[_0x18f5c5(0x175)]=class extends _0x4c6753['RxDisposable']{constructor(_0x5f6a4a,_0x31d724,_0x214ab7){const _0x10ead7=_0x18f5c5;super(),_0x3b8ef1(this,_0x10ead7(0xfa),new Map()),(this[_0x10ead7(0x114)]=_0x5f6a4a,this[_0x10ead7(0xed)]=_0x31d724,this['_collabSessionService']=_0x214ab7,this[_0x10ead7(0xe8)]());}async[_0x18f5c5(0x111)](_0x2d7027){const _0x4af5f6=_0x18f5c5;return this[_0x4af5f6(0xfa)]['has'](_0x2d7027)||await this[_0x4af5f6(0x140)](_0x2d7027),this['_entities']['get'](_0x2d7027);}[_0x18f5c5(0xf4)](_0x2f2a2e){const _0xef048f=_0x18f5c5;var _0x2b023f;return(_0x2b023f=this['_entities'][_0xef048f(0x150)](_0x2f2a2e))!=null?_0x2b023f:null;}[_0x18f5c5(0xe8)](){const _0x39f9d4=_0x18f5c5;this[_0x39f9d4(0x114)]['getTypeOfUnitAdded$'](_0x4c6753[_0x39f9d4(0x166)]['UNIVER_SHEET'])['pipe'](_0x29a6c7[_0x39f9d4(0x131)](this[_0x39f9d4(0x12e)]))[_0x39f9d4(0xd9)](async _0x440617=>{const _0x12463a=_0x39f9d4,_0x3a4d94=_0x440617[_0x12463a(0xd4)]();this[_0x12463a(0xfa)][_0x12463a(0x19a)](_0x3a4d94)||this[_0x12463a(0x140)](_0x3a4d94);}),this[_0x39f9d4(0x114)][_0x39f9d4(0xca)](_0x4c6753['UniverInstanceType'][_0x39f9d4(0x16d)])[_0x39f9d4(0xb9)](_0x29a6c7[_0x39f9d4(0x131)](this['dispose$']))[_0x39f9d4(0xd9)](_0x36d7f=>{const _0x5a6f1b=_0x39f9d4,_0x1ec7fc=_0x36d7f[_0x5a6f1b(0xd4)](),_0x16c6b4=this[_0x5a6f1b(0xfa)][_0x5a6f1b(0x150)](_0x1ec7fc);_0x16c6b4==null||_0x16c6b4['dispose']();});}async[_0x18f5c5(0x140)](_0x2568dc){const _0x2185ca=_0x18f5c5,_0x53c282=await this[_0x2185ca(0x12d)][_0x2185ca(0xe3)](_0x2568dc),_0x419ba2=this[_0x2185ca(0xed)][_0x2185ca(0x182)](_0xb111cc[_0x2185ca(0x183)],_0x2568dc,_0x53c282);return _0x419ba2[_0x2185ca(0x144)](),this[_0x2185ca(0xfa)][_0x2185ca(0x14b)](_0x2568dc,_0x419ba2),_0x419ba2;}},_0xb111cc[_0x18f5c5(0x175)]=_0x2f2ace([_0x210108(0x0,_0x4c6753[_0x18f5c5(0x165)]),_0x210108(0x1,_0x4c6753['Inject'](_0x4c6753[_0x18f5c5(0xf6)])),_0x210108(0x2,_0x4c6753[_0x18f5c5(0x141)](_0x5a4563[_0x18f5c5(0x103)]))],_0xb111cc['LiveShareController']);var _0x2850bb=(_0x29389a=>(_0x29389a['OFFLINE']=_0x18f5c5(0xbc),_0x29389a[_0x18f5c5(0x168)]='idle',_0x29389a[_0x18f5c5(0xc9)]=_0x18f5c5(0xad),_0x29389a[_0x18f5c5(0x18b)]=_0x18f5c5(0x152),_0x29389a[_0x18f5c5(0x173)]=_0x18f5c5(0x160),_0x29389a))(_0x2850bb||{});const _0x2da41f=_0x18f5c5(0x172),_0x40259b=0xc8;_0xb111cc[_0x18f5c5(0x183)]=class extends _0x4c6753[_0x18f5c5(0x197)]{constructor(_0x4f1578,_0x5e4d97,_0x221480,_0x2aecfb,_0x54a5a9){const _0x97bf0=_0x18f5c5;super(),_0x3b8ef1(this,_0x97bf0(0x13d),new _0x3a52e9[(_0x97bf0(0x157))]('idle')),_0x3b8ef1(this,_0x97bf0(0xf0),this[_0x97bf0(0x13d)][_0x97bf0(0x189)]()),_0x3b8ef1(this,_0x97bf0(0xe8),!0x1),_0x3b8ef1(this,_0x97bf0(0x12c),null),_0x3b8ef1(this,_0x97bf0(0x11e),null),(this[_0x97bf0(0x195)]=_0x4f1578,this[_0x97bf0(0x126)]=_0x5e4d97,this[_0x97bf0(0x14a)]=_0x221480,this['_liveShareService']=_0x2aecfb,this[_0x97bf0(0x169)]=_0x54a5a9);}get[_0x18f5c5(0xba)](){const _0x2330e0=_0x18f5c5;return this[_0x2330e0(0x13d)][_0x2330e0(0xd3)]();}[_0x18f5c5(0xc0)](){const _0x5fe829=_0x18f5c5;var _0x123bd2;(_0x123bd2=this[_0x5fe829(0x12c)])==null||_0x123bd2[_0x5fe829(0xc0)](),this['_status$'][_0x5fe829(0x19c)](_0x5fe829(0x19b)),this[_0x5fe829(0x13d)]['complete']();}[_0x18f5c5(0xd6)](){const _0x315cde=_0x18f5c5;return this[_0x315cde(0xba)];}[_0x18f5c5(0x144)](){const _0x33f23a=_0x18f5c5;this[_0x33f23a(0xe8)]||(this[_0x33f23a(0xe8)]=!0x0,this[_0x33f23a(0x126)][_0x33f23a(0xd0)][_0x33f23a(0xb9)](_0x29a6c7['takeUntil'](this[_0x33f23a(0x12e)]))['subscribe'](_0x5c9bcd=>{const _0x4870ef=_0x33f23a;switch(_0x5c9bcd){case _0x5a4563['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case _0x5a4563['SessionStatus'][_0x4870ef(0x13e)]:this[_0x4870ef(0x142)]();break;}}),this[_0x33f23a(0x126)]['event$'][_0x33f23a(0xb9)](_0x29a6c7[_0x33f23a(0x131)](this['dispose$']))['subscribe'](_0x2bceb0=>{const _0x56b808=_0x33f23a,{eventID:_0x4b4a04}=_0x2bceb0;switch(_0x4b4a04){case _0x4361d9[_0x56b808(0xf9)][_0x56b808(0xe2)]:this[_0x56b808(0x128)](_0x2bceb0);break;case _0x4361d9[_0x56b808(0xf9)][_0x56b808(0xff)]:this['_handleOperation'](_0x2bceb0);break;case _0x4361d9['CollaborationEvent'][_0x56b808(0xcf)]:this['_handleTerminate']();break;case _0x4361d9[_0x56b808(0xf9)][_0x56b808(0x11c)]:this['_handleNewChangeSets'](_0x2bceb0);break;}}));}['tryStartPresenting'](){const _0x127aea=_0x18f5c5;this[_0x127aea(0x126)][_0x127aea(0xd5)]({'eventID':_0x4361d9[_0x127aea(0xf9)][_0x127aea(0x193)],'data':{'unitID':this[_0x127aea(0x195)],'userID':this[_0x127aea(0x126)][_0x127aea(0x16b)]()}},this['_unitID']);}[_0x18f5c5(0x15e)](){const _0x42cf39=_0x18f5c5;this[_0x42cf39(0xba)]==='presenting'&&(this['_status$'][_0x42cf39(0x19c)]('idle'),this['_collabSession'][_0x42cf39(0xd5)]({'eventID':_0x4361d9['CollaborationEvent'][_0x42cf39(0xcf)],'data':{'unitID':this[_0x42cf39(0x195)]}},this['_unitID']));}[_0x18f5c5(0x186)](){const _0x189f75=_0x18f5c5;this[_0x189f75(0xba)]===_0x189f75(0x152)&&(this['_status$'][_0x189f75(0x19c)](_0x189f75(0xad)),this[_0x189f75(0x16c)]());}['stopFollowing'](){const _0x5d06fc=_0x18f5c5;this['_status']===_0x5d06fc(0xad)&&this[_0x5d06fc(0x18f)]();}[_0x18f5c5(0x128)](_0x2423e8){const _0x5ef370=_0x18f5c5,{presenter:_0x103ad8}=_0x2423e8['data'],_0x273b38=this[_0x5ef370(0x126)][_0x5ef370(0x16b)]();this[_0x5ef370(0x11e)]=_0x103ad8,_0x103ad8===_0x273b38?(this[_0x5ef370(0x18f)](),this[_0x5ef370(0xc2)]()):this['_status']!==_0x5ef370(0x152)&&(this['_stopPresenting'](),this[_0x5ef370(0x16c)]());}['_fetchOperations'](){const _0x4752ef=_0x18f5c5,_0x3f55a8={'eventID':_0x4361d9[_0x4752ef(0xf9)][_0x4752ef(0xae)]};this[_0x4752ef(0x126)]['send'](_0x3f55a8,this['_unitID']);}['_handleTerminate'](){const _0xa086d6=_0x18f5c5;this[_0xa086d6(0x11e)]=null,this[_0xa086d6(0xba)]!==_0xa086d6(0x160)&&this[_0xa086d6(0xc1)]();}[_0x18f5c5(0xef)](_0x1f8ff2){const _0x5135bc=_0x18f5c5;if(this['_status']===_0x5135bc(0xad)&&this['_presenter']===_0x1f8ff2['data'][_0x5135bc(0xe4)]){const _0x21f5a5=_0x4361d9['parseProtocolChangeset'](_0x1f8ff2[_0x5135bc(0xf3)])[_0x5135bc(0x155)][_0x5135bc(0xeb)]()[_0x5135bc(0xec)](_0x4c8b46=>_0x4c8b46['id']===_0x57d05a[_0x5135bc(0xc4)]['id']);if(_0x21f5a5){const _0xfff753=_0x21f5a5['params'][_0x5135bc(0xbb)],_0x14166f=_0x21f5a5['params'][_0x5135bc(0x15f)]['id'];setTimeout(()=>{const _0x22d03d=_0x5135bc;this[_0x22d03d(0x169)][_0x22d03d(0x199)](_0x57d05a[_0x22d03d(0xb5)]['id'],{'unitId':_0xfff753,'subUnitId':_0x14166f},{'fromCollab':!0x0});});}}}[_0x18f5c5(0xc2)](){const _0x1cd883=_0x18f5c5;this['_status$'][_0x1cd883(0x19c)](_0x1cd883(0x160));const _0x483717=new Map(),_0x5f29e7=this['_commandDisposable']=new _0x4c6753[(_0x1cd883(0x158))]();_0x5f29e7[_0x1cd883(0x112)](_0x4c6753['toDisposable'](()=>{const _0x106e7f=_0x1cd883;_0x483717[_0x106e7f(0x109)](_0x2de76b=>_0x2de76b[_0x106e7f(0x191)]()),_0x483717[_0x106e7f(0x188)]();})),_0x5f29e7['add'](this[_0x1cd883(0x169)][_0x1cd883(0x153)](_0x282433=>{const _0x415fba=_0x1cd883;var _0x31adf1;if(_0x282433[_0x415fba(0x15a)]!==_0x4c6753[_0x415fba(0xd7)][_0x415fba(0x167)]||!this[_0x415fba(0x176)][_0x415fba(0x198)](_0x282433['id']))return;const {id:_0x815d36}=_0x282433;let _0x2b1f18;_0x483717[_0x415fba(0x19a)](_0x815d36)?_0x2b1f18=_0x483717[_0x415fba(0x150)](_0x815d36):(_0x2b1f18=new _0x3a52e9['Subject'](),_0x483717[_0x415fba(0x14b)](_0x815d36,_0x2b1f18),_0x2b1f18[_0x415fba(0xb9)](_0x29a6c7[_0x415fba(0x115)]((_0x31adf1=this[_0x415fba(0x14a)][_0x415fba(0xce)](_0x2da41f))!=null?_0x31adf1:_0x40259b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x415fba(0xd9)](_0x4e2693=>{const _0xee3880=_0x415fba;this[_0xee3880(0x126)][_0xee3880(0xd5)]({'eventID':_0x4361d9['CollaborationEvent'][_0xee3880(0xff)],'data':{'unitID':this[_0xee3880(0x195)],'operations':{[_0x4e2693['id']]:{'id':_0x4e2693['id'],'params':JSON[_0xee3880(0xbf)](_0x4e2693[_0xee3880(0xdd)])}}}},this[_0xee3880(0x195)]);})),_0x2b1f18[_0x415fba(0x19c)](_0x282433);})),this['_liveShareService'][_0x1cd883(0x108)](this['_unitID'])[_0x1cd883(0x109)](_0x3da5bb=>this['_collabSession']['send']({'eventID':_0x4361d9[_0x1cd883(0xf9)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1cd883(0x195)],'operations':{[_0x3da5bb['id']]:{'id':_0x3da5bb['id'],'params':JSON[_0x1cd883(0xbf)](_0x3da5bb[_0x1cd883(0xdd)])}}}},this['_unitID']));}[_0x18f5c5(0xb8)](){const _0xe47c76=_0x18f5c5;var _0x352f55;this[_0xe47c76(0x13d)]['next'](_0xe47c76(0x19b)),(_0x352f55=this[_0xe47c76(0x12c)])==null||_0x352f55[_0xe47c76(0xc0)](),this[_0xe47c76(0x12c)]=null;}[_0x18f5c5(0x16c)](){const _0x1c4c30=_0x18f5c5;var _0x92c3d2;(_0x92c3d2=this[_0x1c4c30(0x12c)])==null||_0x92c3d2[_0x1c4c30(0xc0)](),this[_0x1c4c30(0x13d)][_0x1c4c30(0x19c)](_0x1c4c30(0xad));}[_0x18f5c5(0xc1)](){const _0x4af6d0=_0x18f5c5;var _0x17d946;this['_status$'][_0x4af6d0(0x19c)](_0x4af6d0(0x19b)),(_0x17d946=this[_0x4af6d0(0x12c)])==null||_0x17d946['dispose'](),this[_0x4af6d0(0x12c)]=null;}[_0x18f5c5(0x18f)](){const _0xaa8544=_0x18f5c5;var _0x2227b9;this[_0xaa8544(0x13d)]['next'](_0xaa8544(0x152)),(_0x2227b9=this[_0xaa8544(0x12c)])==null||_0x2227b9[_0xaa8544(0xc0)]();}['_handleOperation'](_0x9f5619){const _0xcbf4a=_0x18f5c5;if(['presenting','not-following',_0xcbf4a(0xbc)][_0xcbf4a(0x14f)](this[_0xcbf4a(0xba)])||!_0x9f5619[_0xcbf4a(0xf3)]['presenter']||_0x9f5619[_0xcbf4a(0xf3)][_0xcbf4a(0x113)]===this['_collabSession'][_0xcbf4a(0x16b)]())return;this['_status']==='idle'&&this[_0xcbf4a(0x16c)]();const _0x5fb6db=_0x9f5619[_0xcbf4a(0xf3)]['operations'];Object[_0xcbf4a(0xc7)](_0x5fb6db)[_0xcbf4a(0x109)](_0x64e42a=>{const _0x30c86d=_0xcbf4a;this[_0x30c86d(0x169)][_0x30c86d(0x199)](_0x64e42a['id'],_0x64e42a[_0x30c86d(0xdd)]?JSON['parse'](_0x64e42a[_0x30c86d(0xdd)]):null,{'fromCollab':!0x0});});}[_0x18f5c5(0x102)](){const _0x3541ce=_0x18f5c5;var _0x2b7187;this['_status$'][_0x3541ce(0x19c)](_0x3541ce(0xbc)),(_0x2b7187=this[_0x3541ce(0x12c)])==null||_0x2b7187['dispose']();}['_handleOnline'](){const _0x4095bf=_0x18f5c5;this[_0x4095bf(0x13d)][_0x4095bf(0x19c)](_0x4095bf(0x19b)),this[_0x4095bf(0x10b)]();}},_0xb111cc['LiveShareCoordinator']=_0x2f2ace([_0x210108(0x2,_0x4c6753['IConfigService']),_0x210108(0x3,_0x4c6753[_0x18f5c5(0x141)](_0x3c7620)),_0x210108(0x4,_0x4c6753['ICommandService'])],_0xb111cc[_0x18f5c5(0x183)]);function _0x4e517b(){const _0x99798a=_0x18f5c5,_0x4e3530=_0x462432[_0x99798a(0x10d)](_0xb111cc[_0x99798a(0x175)]),_0x41c2f2=_0x462432['useDependency'](_0x4c6753[_0x99798a(0x165)]),_0x187f89=_0x462432[_0x99798a(0x196)](()=>_0x41c2f2[_0x99798a(0x178)](_0x4c6753[_0x99798a(0x166)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x51bd81,_0x1c477c]=_0x18d1ec[_0x99798a(0x119)](null),[_0x16b8ce,_0x465ec3]=_0x18d1ec[_0x99798a(0x119)](_0x2850bb[_0x99798a(0x168)]),_0xac22d4=_0x18d1ec[_0x99798a(0xc3)](null);return _0x18d1ec[_0x99798a(0x117)](()=>(_0x187f89&&_0x4e3530[_0x99798a(0x111)](_0x187f89[_0x99798a(0xd4)]())[_0x99798a(0x16f)](_0xa24730=>{const _0x44b86f=_0x99798a;_0x1c477c(_0xa24730),_0xac22d4[_0x44b86f(0xe6)]=_0xa24730[_0x44b86f(0xf0)][_0x44b86f(0xd9)](_0x2dc646=>{_0x465ec3(_0x2dc646);});}),()=>{const _0x1bd003=_0x99798a;var _0x1ed434;(_0x1ed434=_0xac22d4[_0x1bd003(0xe6)])==null||_0x1ed434[_0x1bd003(0x161)](),_0xac22d4[_0x1bd003(0xe6)]=null;}),[_0x187f89,_0x4e3530]),_0x51bd81?_0x1a7374[_0x99798a(0x190)](_0x17fd4c[_0x99798a(0xf8)],{'align':_0x99798a(0x125),'disabled':_0x16b8ce===_0x2850bb[_0x99798a(0xe1)],'className':_0x99798a(0x148),'overlay':_0x1a7374[_0x99798a(0x190)](_0x501ada,{'status':_0x16b8ce,'coordinator':_0x51bd81}),'children':_0x1a7374[_0x99798a(0x190)]('button',{'className':_0x17fd4c['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x16b8ce===_0x2850bb[_0x99798a(0xe1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x16b8ce!==_0x2850bb[_0x99798a(0xe1)]}),'type':_0x99798a(0x138),'children':_0x1a7374[_0x99798a(0x190)](_0x24d395,{'className':'univer-size-4'})})}):null;}function _0x501ada(_0x425410){const _0x50ecba=_0x18f5c5,{status:_0x5502ee,coordinator:_0x13d83c}=_0x425410;switch(_0x5502ee){case _0x2850bb[_0x50ecba(0x168)]:return _0x1a7374[_0x50ecba(0x190)](_0x90695,{'coordinator':_0x13d83c});case _0x2850bb[_0x50ecba(0xc9)]:return _0x1a7374[_0x50ecba(0x190)](_0x243c6d,{'coordinator':_0x13d83c});case _0x2850bb[_0x50ecba(0x18b)]:return _0x1a7374[_0x50ecba(0x190)](_0x39580d,{'coordinator':_0x13d83c});case _0x2850bb[_0x50ecba(0xe1)]:return _0x1a7374[_0x50ecba(0x190)](_0x2e427d,{});case _0x2850bb[_0x50ecba(0x173)]:return _0x1a7374[_0x50ecba(0x190)](_0xbf04f5,{'coordinator':_0x13d83c});default:return null;}}function _0x90695(_0x5b231c){const _0x43b5dd=_0x18f5c5,{coordinator:_0x2c38a7}=_0x5b231c;return _0x1a7374[_0x43b5dd(0x17b)](_0x1a7374[_0x43b5dd(0x18e)],{'children':[_0x1a7374[_0x43b5dd(0x190)](_0x43b5dd(0x17d),{'className':_0x43b5dd(0xb7),'children':_0x43b5dd(0xdc)}),_0x1a7374[_0x43b5dd(0x190)](_0x17fd4c[_0x43b5dd(0x147)],{'onClick':()=>_0x2c38a7['tryStartPresenting'](),'children':_0x43b5dd(0x18c)})]});}function _0x243c6d(_0x5c7593){const _0x3f6e17=_0x18f5c5,{coordinator:_0x181fc0}=_0x5c7593;return _0x1a7374[_0x3f6e17(0x17b)](_0x1a7374[_0x3f6e17(0x18e)],{'children':[_0x1a7374[_0x3f6e17(0x190)](_0x3f6e17(0x17d),{'className':_0x3f6e17(0xb7),'children':_0x3f6e17(0x132)}),_0x1a7374[_0x3f6e17(0x190)](_0x17fd4c[_0x3f6e17(0x147)],{'onClick':()=>_0x181fc0[_0x3f6e17(0xea)](),'children':_0x3f6e17(0x194)})]});}function _0x39580d(_0x2a0497){const _0x5980b9=_0x18f5c5,{coordinator:_0x49ce72}=_0x2a0497;return _0x1a7374[_0x5980b9(0x17b)](_0x1a7374['Fragment'],{'children':[_0x1a7374[_0x5980b9(0x190)]('div',{'className':_0x5980b9(0xb7),'children':_0x5980b9(0x120)}),_0x1a7374[_0x5980b9(0x190)](_0x17fd4c[_0x5980b9(0x147)],{'variant':'text','onClick':()=>_0x49ce72[_0x5980b9(0x186)](),'children':_0x5980b9(0x171)})]});}function _0xbf04f5(_0x2b62b7){const _0x2fed92=_0x18f5c5,{coordinator:_0x56c1ab}=_0x2b62b7;return _0x1a7374['jsxs'](_0x1a7374['Fragment'],{'children':[_0x1a7374[_0x2fed92(0x190)](_0x2fed92(0x17d),{'className':_0x2fed92(0xb7),'children':_0x2fed92(0xe9)}),_0x1a7374[_0x2fed92(0x190)](_0x17fd4c[_0x2fed92(0x147)],{'variant':'default','onClick':()=>_0x56c1ab[_0x2fed92(0x15e)](),'children':_0x2fed92(0x145)})]});}function _0x2e427d(){const _0x175e96=_0x18f5c5;return _0x1a7374[_0x175e96(0x190)](_0x1a7374[_0x175e96(0x18e)],{'children':_0x175e96(0xb3)});}var _0x2415d9=Object[_0x18f5c5(0x10a)],_0x33841a=(_0x5bd820,_0x3d078f,_0x2d58a0,_0x49e3f2)=>{const _0x26d071=_0x18f5c5;for(var _0x4d6a88=_0x49e3f2>0x1?void 0x0:_0x49e3f2?_0x2415d9(_0x3d078f,_0x2d58a0):_0x3d078f,_0x2ff254=_0x5bd820[_0x26d071(0x151)]-0x1,_0x2fbaab;_0x2ff254>=0x0;_0x2ff254--)(_0x2fbaab=_0x5bd820[_0x2ff254])&&(_0x4d6a88=_0x2fbaab(_0x4d6a88)||_0x4d6a88);return _0x4d6a88;},_0x54a7bc=(_0x482f2b,_0x285ea7)=>(_0x37ac69,_0x5a7a90)=>_0x285ea7(_0x37ac69,_0x5a7a90,_0x482f2b);_0xb111cc['DesktopLiveShareController']=class extends _0x4c6753[_0x18f5c5(0x134)]{constructor(_0x37673c,_0x3bee8b){const _0x5b85f6=_0x18f5c5;super(),this['_injector']=_0x37673c,this[_0x5b85f6(0x100)]=_0x3bee8b,this[_0x5b85f6(0x154)]();}[_0x18f5c5(0x154)](){const _0x1497ff=_0x18f5c5;this[_0x1497ff(0x12b)](this[_0x1497ff(0x100)][_0x1497ff(0x164)](_0x462432[_0x1497ff(0x184)][_0x1497ff(0x10c)],()=>_0x462432[_0x1497ff(0xde)](_0x4e517b,this[_0x1497ff(0xed)])));}},_0xb111cc[_0x18f5c5(0xcd)]=_0x33841a([_0x54a7bc(0x0,_0x4c6753[_0x18f5c5(0x141)](_0x4c6753['Injector'])),_0x54a7bc(0x1,_0x462432[_0x18f5c5(0x123)])],_0xb111cc['DesktopLiveShareController']);const _0x438c1a=_0x18f5c5(0x130),_0x22ade5={};var _0x16f195=Object[_0x18f5c5(0x10a)],_0x5dbf3e=(_0x3a6ae9,_0x1e4cb4,_0x52ced4,_0x1840eb)=>{const _0x1a22a8=_0x18f5c5;for(var _0x15357c=_0x1840eb>0x1?void 0x0:_0x1840eb?_0x16f195(_0x1e4cb4,_0x52ced4):_0x1e4cb4,_0x203ec3=_0x3a6ae9[_0x1a22a8(0x151)]-0x1,_0x530250;_0x203ec3>=0x0;_0x203ec3--)(_0x530250=_0x3a6ae9[_0x203ec3])&&(_0x15357c=_0x530250(_0x15357c)||_0x15357c);return _0x15357c;},_0x11b073=(_0x31046e,_0x37939e)=>(_0x45af68,_0x4590ec)=>_0x37939e(_0x45af68,_0x4590ec,_0x31046e);let _0x34efb6=class extends _0x4c6753[_0x18f5c5(0x134)]{constructor(_0x696e6c){const _0x7bbe25=_0x18f5c5;super(),this[_0x7bbe25(0x176)]=_0x696e6c,this[_0x7bbe25(0xe8)]();}[_0x18f5c5(0xe8)](){const _0x1adedf=_0x18f5c5;[_0x290a03[_0x1adedf(0x10e)]['id'],_0x290a03[_0x1adedf(0x192)]['id'],_0x57d05a['SetWorksheetActiveOperation']['id']][_0x1adedf(0x109)](_0x49ee1a=>{const _0x22da44=_0x1adedf;this['disposeWithMe'](this[_0x22da44(0x176)][_0x22da44(0x185)](_0x49ee1a));});}};_0x34efb6=_0x5dbf3e([_0x11b073(0x0,_0x4c6753['Inject'](_0x3c7620))],_0x34efb6);var _0x2e7e4f=Object['defineProperty'],_0x42533f=Object['getOwnPropertyDescriptor'],_0x3c3465=(_0x1f59fe,_0x554e0d,_0x3a39f6)=>_0x554e0d in _0x1f59fe?_0x2e7e4f(_0x1f59fe,_0x554e0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a39f6}):_0x1f59fe[_0x554e0d]=_0x3a39f6,_0x5e4889=(_0x20157c,_0x160eb9,_0x462d1e,_0x21dd5e)=>{const _0x9d0c1=_0x18f5c5;for(var _0x478705=_0x21dd5e>0x1?void 0x0:_0x21dd5e?_0x42533f(_0x160eb9,_0x462d1e):_0x160eb9,_0x16c5a2=_0x20157c[_0x9d0c1(0x151)]-0x1,_0x5b3021;_0x16c5a2>=0x0;_0x16c5a2--)(_0x5b3021=_0x20157c[_0x16c5a2])&&(_0x478705=_0x5b3021(_0x478705)||_0x478705);return _0x478705;},_0x11d38e=(_0x5532f4,_0x5effb5)=>(_0x36dddc,_0x2d6f67)=>_0x5effb5(_0x36dddc,_0x2d6f67,_0x5532f4),_0x431ee0=(_0x35e3d6,_0x284dc2,_0x418b01)=>_0x3c3465(_0x35e3d6,typeof _0x284dc2!=_0x18f5c5(0x106)?_0x284dc2+'':_0x284dc2,_0x418b01);const _0x1ed42f=_0x18f5c5(0x187);_0xb111cc[_0x18f5c5(0x174)]=class extends _0x4c6753[_0x18f5c5(0x137)]{constructor(_0x33ae53=_0x22ade5,_0x5ac544,_0x51b82f){const _0x166891=_0x18f5c5;super(),this['_config']=_0x33ae53,this['_injector']=_0x5ac544,this[_0x166891(0x14a)]=_0x51b82f;const {..._0xed28d3}=_0x4c6753[_0x166891(0x124)]({},_0x22ade5,this['_config']);this['_configService']['setConfig'](_0x438c1a,_0xed28d3);}['onStarting'](){const _0x2124c1=_0x18f5c5;_0x4c6753[_0x2124c1(0xe0)](this['_injector'],_0x4c6753[_0x2124c1(0x16a)]([[_0x3c7620],[_0xb111cc[_0x2124c1(0x175)]],[_0x34efb6],[_0xb111cc['DesktopLiveShareController']]],this[_0x2124c1(0x15b)][_0x2124c1(0xda)])),_0x4c6753[_0x2124c1(0x129)](this['_injector'],[[_0x34efb6]]);}[_0x18f5c5(0xbe)](){const _0x3aede3=_0x18f5c5;_0x4c6753[_0x3aede3(0x129)](this[_0x3aede3(0xed)],[[_0xb111cc['DesktopLiveShareController']]]);}},_0x431ee0(_0xb111cc['UniverLiveSharePlugin'],'type',_0x4c6753['UniverInstanceType'][_0x18f5c5(0x127)]),_0x431ee0(_0xb111cc[_0x18f5c5(0x174)],'pluginName',_0x1ed42f),_0xb111cc[_0x18f5c5(0x174)]=_0x5e4889([_0x4c6753[_0x18f5c5(0x133)](_0x5a4563[_0x18f5c5(0x13b)]),_0x11d38e(0x1,_0x4c6753[_0x18f5c5(0x141)](_0x4c6753['Injector'])),_0x11d38e(0x2,_0x4c6753['IConfigService'])],_0xb111cc['UniverLiveSharePlugin']),_0xb111cc[_0x18f5c5(0xcb)]=_0x4e517b,_0xb111cc['LiveShareService']=_0x3c7620,_0xb111cc['LiveShareStatus']=_0x2850bb,Object[_0x18f5c5(0x12f)](_0xb111cc,Symbol[_0x18f5c5(0x149)],{'value':_0x18f5c5(0xd1)});}));function _0x5a6d(_0x4fe3be,_0x5d7dfe){_0x4fe3be=_0x4fe3be-0xad;const _0x4622eb=_0x4622();let _0x5a6dff=_0x4622eb[_0x4fe3be];return _0x5a6dff;}function _0x4622(){const _0x2de368=['end','_collabSession','UNIVER_UNKNOWN','_handleNewHost','touchDependencies','amd','disposeWithMe','_commandDisposable','_collabSessionService','dispose$','defineProperty','live-share.config','takeUntil','You\x27re\x20following\x20the\x20presenter','DependentOn','Disposable','createElement','UniverSheetsUi','Plugin','button','18arwqlH','exports','UniverCollaborationClientPlugin','tag','_status$','ONLINE','UniverProCollaborationClient','_startLiveShareCoordinator','Inject','_handleOnline','1em','init','Stop\x20presenting','@univerjs/core','Button','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','toStringTag','_configService','set','from','svg','evenodd','includes','get','length','not-following','onCommandExecuted','_mountLiveShare','mutations','none','BehaviorSubject','DisposableCollection','LiveShareIcon','type','_config','map','react/jsx-runtime','stopPresenting','sheet','presenting','unsubscribe','0\x200\x2017\x2017','attrs','registerComponent','IUniverInstanceService','UniverInstanceType','OPERATION','IDLE','_commandService','mergeOverrideWithDependencies','getMemberID','_startFollowing','UNIVER_SHEET','trim','then','fill','Start\x20following','SAME_OPERATION_SHARE_INTERVAL','PRESENTING','UniverLiveSharePlugin','LiveShareController','_liveShareService','delete','getCurrentTypeOfUnit$','28pnJFoU','React','jsxs','idSuffix','div','188919qVRZBN','react','mask','defIds','createInstance','LiveShareCoordinator','BuiltInUIPart','registerSharedOperation','startFollowing','UNIVER_LIVE_SHARE_PLUGIN','clear','asObservable','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','NOT_FOLLOWING','Start','_sharedOperations','Fragment','_stopFollowing','jsx','complete','SetScrollOperation','LIVESHARE_REQUEST_HOST','Stop\x20following','_unitID','useObservable','RxDisposable','shouldShareOperation','executeCommand','has','idle','next','toString','following','LIVESHARE_FETCH_OPERATIONS','96BjNfuc','live-share-icon','@univerjs/ui','string','You\x27are\x20offline.','655216fEDFFG','SetWorksheetActiveOperation','@univerjs/sheets','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting','pipe','_status','unitId','offline','397370rhgaZD','onRendered','stringify','dispose','_beIdle','_startPresenting','useRef','InsertSheetMutation','colorChannel1','rxjs','values','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','FOLLOWING','getTypeOfUnitDisposed$','LiveShare','xlink:href','DesktopLiveShareController','getConfig','LIVESHARE_TERMINATE','sessionStatus$','Module','defs','getValue','getUnitId','send','getStatus','CommandType','path','subscribe','override','rxjs/operators','Present\x20this\x20document','params','connectInjector','univerjs-icon\x20univerjs-icon-','registerDependencies','OFFLINE','LIVESHARE_NEW_HOST','requireSession','memberID','55915eRpwDR','current','1443706tAbUtk','_init','You\x27re\x20presenting\x20the\x20document','stopFollowing','reverse','find','_injector','registerInitialStateReporter','_handleNewChangeSets','status$','assign','children','data','getLiveShareCoordinatorSync','operators','Injector','@univerjs-pro/collaboration-client','Dropdown','CollaborationEvent','_entities','UniverDesign','2CZvddr','@univerjs-pro/collaboration','replace','LIVESHARE_OPERATION','_uiPartsService','url(#$1','_handleOffline','CollaborationSessionService','772085IBXLkn','@univerjs/sheets-ui','symbol','function','getInitialStates','forEach','getOwnPropertyDescriptor','_fetchOperations','HEADER_MENU','useDependency','SetZoomRatioOperation','UniverUi','24nTUKYI','getLiveShareCoordinator','add','presenter','_univerInstanceService','throttleTime','entries','useEffect','currentColor','useState','_reporters','UniverCore','NEW_CHANGESETS','@univerjs/design','_presenter','displayName','You\x27re\x20not\x20following\x20the\x20presenter','UniverSheets','5704TRnneb','IUIPartsService','merge'];_0x4622=function(){return _0x2de368;};return _0x4622();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.15.2-insiders.
|
|
3
|
+
"version": "0.15.2-insiders.20260122-b1556b1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.1.1",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.15.2-insiders.
|
|
61
|
-
"@univerjs
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/sheets": "0.15.2-insiders.
|
|
65
|
-
"@univerjs/ui": "0.15.2-insiders.
|
|
66
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.15.2-insiders.20260122-b1556b1",
|
|
61
|
+
"@univerjs/design": "0.15.2-insiders.20260122-b1556b1",
|
|
62
|
+
"@univerjs-pro/collaboration-client": "0.15.2-insiders.20260122-b1556b1",
|
|
63
|
+
"@univerjs/core": "0.15.2-insiders.20260122-b1556b1",
|
|
64
|
+
"@univerjs/sheets": "0.15.2-insiders.20260122-b1556b1",
|
|
65
|
+
"@univerjs/sheets-ui": "0.15.2-insiders.20260122-b1556b1",
|
|
66
|
+
"@univerjs/ui": "0.15.2-insiders.20260122-b1556b1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"postcss": "^8.5.6",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"typescript": "^5.9.3",
|
|
74
74
|
"vite": "^7.3.1",
|
|
75
75
|
"vitest": "^4.0.16",
|
|
76
|
-
"@univerjs/
|
|
77
|
-
"@univerjs
|
|
76
|
+
"@univerjs-infra/shared": "0.15.2",
|
|
77
|
+
"@univerjs/protocol": "0.1.48"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"test": "vitest run",
|