@univerjs-pro/live-share 0.12.2 → 0.12.3-experimental.20251204-1549a8e
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 +13 -13
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3223da=_0x499f;(function(_0x3bab12,_0xf3d207){const _0x549c90=_0x499f,_0xc46594=_0x3bab12();while(!![]){try{const _0x2c43d3=parseInt(_0x549c90(0x14e))/0x1*(-parseInt(_0x549c90(0x146))/0x2)+parseInt(_0x549c90(0x140))/0x3*(parseInt(_0x549c90(0x168))/0x4)+parseInt(_0x549c90(0x167))/0x5*(-parseInt(_0x549c90(0x14d))/0x6)+parseInt(_0x549c90(0x142))/0x7*(-parseInt(_0x549c90(0x160))/0x8)+-parseInt(_0x549c90(0x152))/0x9*(-parseInt(_0x549c90(0x15b))/0xa)+parseInt(_0x549c90(0x147))/0xb*(parseInt(_0x549c90(0x15f))/0xc)+parseInt(_0x549c90(0x153))/0xd*(parseInt(_0x549c90(0x15e))/0xe);if(_0x2c43d3===_0xf3d207)break;else _0xc46594['push'](_0xc46594['shift']());}catch(_0x13c344){_0xc46594['push'](_0xc46594['shift']());}}}(_0x1e02,0x5dbb8));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d['FRange']{['_initialize'](_0x3f98f7,_0x3b0cec,_0x528f67,_0x3ba96c,_0x366a41){const _0x3d6150=_0x499f,_0x1c7562=_0x3f98f7['get'](n[_0x3d6150(0x149)]),_0x1d0d56=_0x3f98f7[_0x3d6150(0x14f)](g[_0x3d6150(0x148)]),_0x3ef6b8=_0x3b0cec[_0x3d6150(0x16c)](),_0x2bddb6=_0x3b0cec[_0x3d6150(0x15a)](),_0x33252b=_0x1c7562['getLiveShareCoordinatorSync'](_0x3ef6b8);(_0x33252b==null?void 0x0:_0x33252b[_0x3d6150(0x158)]())!==n[_0x3d6150(0x14c)][_0x3d6150(0x150)]||(_0x528f67[_0x3d6150(0x159)]()!==_0x2bddb6['getSheetId']()&&this[_0x3d6150(0x161)][_0x3d6150(0x151)](u[_0x3d6150(0x154)]['id'],{'unitId':_0x3ef6b8,'subUnitId':_0x528f67[_0x3d6150(0x159)]()}),!_0x1d0d56[_0x3d6150(0x156)](_0x3ef6b8))||_0x366a41[_0x3d6150(0x157)](f['SetScrollOperation']['id'],{'unitId':_0x3b0cec['getUnitId'](),'sheetId':_0x528f67[_0x3d6150(0x159)](),'sheetViewStartRow':_0x3ba96c[_0x3d6150(0x145)],'sheetViewStartColumn':_0x3ba96c[_0x3d6150(0x144)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x3223da(0x16b)][_0x3223da(0x143)](w);function _0x1e02(){const _0x52e808=['128680OhiuFG','_commandService','startPresenting','FUniver','getActiveWorkbook','getLiveShareStatus','stopPresenting','1018705UpwkqH','705548kYjclM','No\x20active\x20workbook\x20found.','stopFollowing','FRange','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','9YeTFZd','FEnum','91WlIojn','extend','startColumn','startRow','448bEpKou','11SVXEfK','IRenderManagerService','LiveShareController','tryStartPresenting','_injector','LiveShareStatus','18ermqZo','3183IOUygA','get','PRESENTING','executeCommand','522TnfeAA','52pQSGXC','SetWorksheetActiveOperation','getLiveShareCoordinatorSync','getRenderById','syncExecuteCommand','getStatus','getSheetId','getActiveSheet','59530RYZjGW','startFollowing','getId','1303876iiEiHS','8043324WVfbBt'];_0x1e02=function(){return _0x52e808;};return _0x1e02();}class C extends a[_0x3223da(0x163)]{[_0x3223da(0x165)](){const _0x32ade3=_0x3223da;var _0x3220c4,_0x57d19a;const _0x7ed00e=this[_0x32ade3(0x14b)][_0x32ade3(0x14f)](n[_0x32ade3(0x149)]),_0x418735=(_0x3220c4=this['getActiveWorkbook']())==null?void 0x0:_0x3220c4[_0x32ade3(0x15d)]();if(!_0x418735)throw new Error(_0x32ade3(0x169));const _0x23c26a=_0x7ed00e['getLiveShareCoordinatorSync'](_0x418735);return(_0x57d19a=_0x23c26a==null?void 0x0:_0x23c26a[_0x32ade3(0x158)]())!=null?_0x57d19a:n[_0x32ade3(0x14c)]['IDLE'];}[_0x3223da(0x15c)](){const _0x474cd8=_0x3223da;var _0x35a68c;const _0x220045=this[_0x474cd8(0x14b)][_0x474cd8(0x14f)](n['LiveShareController']),_0x581378=(_0x35a68c=this[_0x474cd8(0x164)]())==null?void 0x0:_0x35a68c[_0x474cd8(0x15d)]();if(!_0x581378)throw new Error(_0x474cd8(0x169));const _0x41207f=_0x220045[_0x474cd8(0x155)](_0x581378);if(!_0x41207f)throw new Error(_0x474cd8(0x13f));_0x41207f['startFollowing']();}['stopFollowing'](){const _0x1511f2=_0x3223da;var _0x391bb7;const _0x1d4227=this['_injector'][_0x1511f2(0x14f)](n[_0x1511f2(0x149)]),_0xe46681=(_0x391bb7=this[_0x1511f2(0x164)]())==null?void 0x0:_0x391bb7['getId']();if(!_0xe46681)throw new Error(_0x1511f2(0x169));const _0x22f761=_0x1d4227[_0x1511f2(0x155)](_0xe46681);if(!_0x22f761)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x22f761[_0x1511f2(0x16a)]();}[_0x3223da(0x162)](){const _0x1a7c04=_0x3223da;var _0xa5560f;const _0x491505=this[_0x1a7c04(0x14b)]['get'](n[_0x1a7c04(0x149)]),_0x4f7098=(_0xa5560f=this[_0x1a7c04(0x164)]())==null?void 0x0:_0xa5560f[_0x1a7c04(0x15d)]();if(!_0x4f7098)throw new Error(_0x1a7c04(0x169));const _0x295571=_0x491505[_0x1a7c04(0x155)](_0x4f7098);if(!_0x295571)throw new Error(_0x1a7c04(0x13f));_0x295571[_0x1a7c04(0x14a)]();}[_0x3223da(0x166)](){const _0x2e92ee=_0x3223da;var _0x190a59;const _0x519588=this[_0x2e92ee(0x14b)][_0x2e92ee(0x14f)](n[_0x2e92ee(0x149)]),_0x748e3c=(_0x190a59=this[_0x2e92ee(0x164)]())==null?void 0x0:_0x190a59[_0x2e92ee(0x15d)]();if(!_0x748e3c)throw new Error(_0x2e92ee(0x169));const _0xaf4759=_0x519588[_0x2e92ee(0x155)](_0x748e3c);if(!_0xaf4759)throw new Error(_0x2e92ee(0x13f));_0xaf4759['stopPresenting']();}}a['FUniver'][_0x3223da(0x143)](C);function _0x499f(_0x537900,_0x30963e){_0x537900=_0x537900-0x13f;const _0x1e02f4=_0x1e02();let _0x499ff6=_0x1e02f4[_0x537900];return _0x499ff6;}class L extends a[_0x3223da(0x141)]{get['LiveShareStatusEnum'](){const _0x21ee60=_0x3223da;return n[_0x21ee60(0x14c)];}}a[_0x3223da(0x141)][_0x3223da(0x143)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x19c1ed=_0x2ce0;(function(_0x10082b,_0x577159){const _0x48a7c1=_0x2ce0,_0xd61210=_0x10082b();while(!![]){try{const _0x25f4cb=-parseInt(_0x48a7c1(0x1b1))/0x1+parseInt(_0x48a7c1(0x139))/0x2*(-parseInt(_0x48a7c1(0x13d))/0x3)+parseInt(_0x48a7c1(0x128))/0x4+-parseInt(_0x48a7c1(0x170))/0x5+-parseInt(_0x48a7c1(0x132))/0x6+-parseInt(_0x48a7c1(0xfb))/0x7+-parseInt(_0x48a7c1(0x138))/0x8*(-parseInt(_0x48a7c1(0xe7))/0x9);if(_0x25f4cb===_0x577159)break;else _0xd61210['push'](_0xd61210['shift']());}catch(_0x559769){_0xd61210['push'](_0xd61210['shift']());}}}(_0xe665,0xb9821));var T=Object['defineProperty'],U=(_0x4e3101,_0x4aa736,_0x283580)=>_0x4aa736 in _0x4e3101?T(_0x4e3101,_0x4aa736,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x283580}):_0x4e3101[_0x4aa736]=_0x283580,_=(_0x2e598,_0x58f20d,_0xbd3373)=>U(_0x2e598,typeof _0x58f20d!='symbol'?_0x58f20d+'':_0x58f20d,_0xbd3373);function _0xe665(){const _0x1d1b79=['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','operations','next','currentColor','useObservable','_status','status$','sessionStatus$','IUIPartsService','SetZoomRatioOperation','_handleTerminate','set','LiveShareCoordinator','BuiltInUIPart','getCurrentTypeOfUnit$','subscribe','PRESENTING','1205332PsxHpi','getTypeOfUnitDisposed$','get','touchDependencies','_collabSessionService','Start\x20following','_startFollowing','createElement','_reporters','OPERATION','4396872anwzRA','_configService','toString','dispose','presenting','_handleOperation','5336QjeTsz','219618ZypTBI','symbol','NOT_FOLLOWING','registerComponent','12eymAEz','stopPresenting','entries','Subject','not-following','path','_univerInstanceService','IUniverInstanceService','Disposable','LiveShareStatus','delete','current','mergeOverrideWithDependencies','HEADER_MENU','LIVESHARE_TERMINATE','LIVESHARE_NEW_HOST','DependentOn','pipe','_startPresenting','univer-size-4','http://www.w3.org/2000/svg','_handleOffline','_stopPresenting','Button','length','executeCommand','none','string','_commandService','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','clsx','getConfig','getTypeOfUnitAdded$','parseProtocolChangeset','button','getStatus','replace','trim','IDLE','add','defs','url(#$1','tryStartPresenting','_init','colorChannel1','_stopFollowing','DesktopLiveShareController','toDisposable','following','offline','SetScrollOperation','5396920OZahyH','getMemberID','useRef','mutations','stringify','params','idSuffix','createInstance','complete','includes','find','div','FOLLOWING','pluginName','toStringTag','evenodd','CollaborationEvent','asObservable','Dropdown','_mountLiveShare','live-share-icon','CollaborationSessionService','Present\x20this\x20document','getLiveShareCoordinator','_commandDisposable','then','has','onRendered','idle','jsxs','Plugin','text','_beIdle','children','svg','UNIVER_LIVE_SHARE_PLUGIN','registerSharedOperation','sheet','You\x27are\x20offline.','displayName','defIds','type','dispose$','data','mask','memberID','Injector','UniverCollaborationClientPlugin','UNIVER_UNKNOWN','SetWorksheetActiveOperation','UniverLiveSharePlugin','_collabSession','map','_startLiveShareCoordinator','setConfig','jsx','Start','getOwnPropertyDescriptor','_handleNewHost','IConfigService','univer-mb-3\x20univer-w-full\x20univer-text-sm','OFFLINE','event$','end','takeUntil','77825iYvRIT','forwardRef','SessionStatus','1em','_fetchOperations','InsertSheetMutation','Stop\x20following','getInitialStates','requireSession','UniverInstanceType','CommandType','LiveShareIcon','startFollowing','live-share.config','_config','_presenter','forEach','DisposableCollection','_unitID','55863lrUVRr','SAME_OPERATION_SHARE_INTERVAL','values','presenter','assign','override','RxDisposable','You\x27re\x20following\x20the\x20presenter','tag','Module','useDependency','_status$','unitId','random','LIVESHARE_OPERATION','from','getValue','stopFollowing','_handleNewChangeSets','disposeWithMe','9466128aPPxXL','useState','fill','LiveShareController','UNIVER_SHEET','_handleOnline','parse','getUnitId','default','clear','You\x27re\x20not\x20following\x20the\x20presenter','reverse','_uiPartsService','NEW_CHANGESETS','LIVESHARE_REQUEST_HOST','send','Inject','_injector','UniverIcon','attrs','_liveShareService','Fragment','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_sharedOperations','_entities','xlink:href','LIVESHARE_FETCH_OPERATIONS','shouldShareOperation'];_0xe665=function(){return _0x1d1b79;};return _0xe665();}Object['defineProperty'](exports,Symbol[_0x19c1ed(0x17e)],{'value':_0x19c1ed(0xf0)});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:_0x21e1bd,..._0x18c60f}){const _0x1b9d3d=_0x19c1ed,{icon:_0x1518b7,id:_0x1cdd82,className:_0x559fc0,extend:_0x2e96e9,..._0x1b551a}=_0x18c60f,_0x42d1e1=('univerjs-icon\x20univerjs-icon-'+_0x1cdd82+'\x20'+(_0x559fc0||''))[_0x1b9d3d(0x162)](),_0xb40d1c=v[_0x1b9d3d(0x172)]('_'+H());return j(_0x1518b7,''+_0x1cdd82,{'defIds':_0x1518b7[_0x1b9d3d(0x198)],'idSuffix':_0xb40d1c[_0x1b9d3d(0x148)]},{'ref':_0x21e1bd,'className':_0x42d1e1,..._0x1b551a},_0x2e96e9);}function j(_0x4c4af5,_0x2a1c47,_0x3018e8,_0x465182,_0x16ccbf){const _0x258294=_0x19c1ed;return v['createElement'](_0x4c4af5[_0x258294(0xef)],{'key':_0x2a1c47,...y(_0x4c4af5,_0x3018e8,_0x16ccbf),..._0x465182},(F(_0x4c4af5,_0x3018e8)[_0x258294(0x191)]||[])['map']((_0x3c8720,_0x594d0d)=>j(_0x3c8720,_0x2a1c47+'-'+_0x4c4af5[_0x258294(0xef)]+'-'+_0x594d0d,_0x3018e8,void 0x0,_0x16ccbf)));}function y(_0x46b8e6,_0x438a4c,_0xdb6ed9){const _0x4b9f8b=_0x19c1ed,_0x14db85={..._0x46b8e6[_0x4b9f8b(0x10e)]};_0xdb6ed9!=null&&_0xdb6ed9[_0x4b9f8b(0x169)]&&_0x14db85[_0x4b9f8b(0xfd)]===_0x4b9f8b(0x169)&&(_0x14db85[_0x4b9f8b(0xfd)]=_0xdb6ed9[_0x4b9f8b(0x169)]),_0x46b8e6[_0x4b9f8b(0xef)]===_0x4b9f8b(0x19c)&&_0x14db85['id']&&(_0x14db85['id']=_0x14db85['id']+_0x438a4c[_0x4b9f8b(0x176)]),Object[_0x4b9f8b(0x13f)](_0x14db85)[_0x4b9f8b(0xe4)](([_0x6df35f,_0xf2e27d])=>{const _0x9d8d3f=_0x4b9f8b;_0x6df35f===_0x9d8d3f(0x19c)&&typeof _0xf2e27d==_0x9d8d3f(0x158)&&(_0x14db85[_0x6df35f]=_0xf2e27d[_0x9d8d3f(0x161)](/url\(#(.*)\)/,_0x9d8d3f(0x166)+_0x438a4c[_0x9d8d3f(0x176)]+')'));});const {defIds:_0x51081c}=_0x438a4c;return!_0x51081c||_0x51081c['length']===0x0||(_0x46b8e6[_0x4b9f8b(0xef)]==='use'&&_0x14db85['xlink:href']&&(_0x14db85[_0x4b9f8b(0x114)]=_0x14db85[_0x4b9f8b(0x114)]+_0x438a4c[_0x4b9f8b(0x176)]),Object[_0x4b9f8b(0x13f)](_0x14db85)[_0x4b9f8b(0xe4)](([_0x17da11,_0x12497f])=>{const _0x2ce099=_0x4b9f8b;typeof _0x12497f==_0x2ce099(0x158)&&(_0x14db85[_0x17da11]=_0x12497f[_0x2ce099(0x161)](/url\(#(.*)\)/,_0x2ce099(0x166)+_0x438a4c['idSuffix']+')'));})),_0x14db85;}function F(_0x2371d4,_0xe95394){const _0x37d473=_0x19c1ed;var _0x99d3a;const {defIds:_0x1a64ec}=_0xe95394;return!_0x1a64ec||_0x1a64ec[_0x37d473(0x155)]===0x0?_0x2371d4:_0x2371d4[_0x37d473(0xef)]===_0x37d473(0x165)&&((_0x99d3a=_0x2371d4[_0x37d473(0x191)])!=null&&_0x99d3a[_0x37d473(0x155)])?{..._0x2371d4,'children':_0x2371d4[_0x37d473(0x191)]['map'](_0x1e8835=>typeof _0x1e8835['attrs']['id']==_0x37d473(0x158)&&_0x1a64ec&&_0x1a64ec[_0x37d473(0x179)](_0x1e8835[_0x37d473(0x10e)]['id'])?{..._0x1e8835,'attrs':{..._0x1e8835[_0x37d473(0x10e)],'id':_0x1e8835['attrs']['id']+_0xe95394[_0x37d473(0x176)]}}:_0x1e8835)}:_0x2371d4;}function H(){const _0x67e9c1=_0x19c1ed;return Math[_0x67e9c1(0xf4)]()[_0x67e9c1(0x134)](0x24)['substring'](0x2,0x8);}x['displayName']=_0x19c1ed(0x10d);const V={'tag':_0x19c1ed(0x192),'attrs':{'xmlns':_0x19c1ed(0x151),'fill':_0x19c1ed(0x157),'viewBox':'0\x200\x2017\x2017','width':_0x19c1ed(0x1b4),'height':_0x19c1ed(0x1b4)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x19c1ed(0x142),'attrs':{'fill':_0x19c1ed(0x11a),'d':_0x19c1ed(0x117),'fillRule':_0x19c1ed(0x17f),'clipRule':'evenodd'}}]},R=v[_0x19c1ed(0x1b2)](function(_0x8e8ffa,_0x1e02ef){const _0x169dbc=_0x19c1ed;return v[_0x169dbc(0x12f)](x,Object[_0x169dbc(0xeb)]({},_0x8e8ffa,{'id':_0x169dbc(0x184),'ref':_0x1e02ef,'icon':V}));});R[_0x19c1ed(0x197)]=_0x19c1ed(0xdf);class E extends o[_0x19c1ed(0x145)]{constructor(){const _0x4c96ba=_0x19c1ed;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x4c96ba(0x130),new Set());}[_0x19c1ed(0x194)](_0x47a896){const _0x10fa41=_0x19c1ed;return this['_sharedOperations'][_0x10fa41(0x164)](_0x47a896),o['toDisposable'](()=>this[_0x10fa41(0x112)][_0x10fa41(0x147)](_0x47a896));}['registerInitialStateReporter'](_0xaa77ac){const _0x285af7=_0x19c1ed;return this[_0x285af7(0x130)][_0x285af7(0x164)](_0xaa77ac),o[_0x285af7(0x16c)](()=>this[_0x285af7(0x130)][_0x285af7(0x147)](_0xaa77ac));}[_0x19c1ed(0x116)](_0x911cdb){const _0x49967a=_0x19c1ed;return this[_0x49967a(0x112)][_0x49967a(0x18a)](_0x911cdb);}[_0x19c1ed(0x1b8)](_0x4c2ebb){const _0x24c047=_0x19c1ed;return Array[_0x24c047(0xf6)](this[_0x24c047(0x130)])[_0x24c047(0x1a4)](_0x282feb=>_0x282feb(_0x4c2ebb));}}var M=Object[_0x19c1ed(0x1a9)],P=(_0x9d9e20,_0xd7bb20,_0x5e28e8,_0x52bd18)=>{const _0xb10128=_0x19c1ed;for(var _0x5504c3=_0x52bd18>0x1?void 0x0:_0x52bd18?M(_0xd7bb20,_0x5e28e8):_0xd7bb20,_0x190f03=_0x9d9e20[_0xb10128(0x155)]-0x1,_0x2c99b9;_0x190f03>=0x0;_0x190f03--)(_0x2c99b9=_0x9d9e20[_0x190f03])&&(_0x5504c3=_0x2c99b9(_0x5504c3)||_0x5504c3);return _0x5504c3;},S=(_0x197ee3,_0x3e8a1a)=>(_0xf5f769,_0x4948ef)=>_0x3e8a1a(_0xf5f769,_0x4948ef,_0x197ee3);exports[_0x19c1ed(0xfe)]=class extends o[_0x19c1ed(0xed)]{constructor(_0x37cb9c,_0x2c3ea0,_0x33e671){const _0x34f550=_0x19c1ed;super(),_(this,_0x34f550(0x113),new Map()),(this['_univerInstanceService']=_0x37cb9c,this[_0x34f550(0x10c)]=_0x2c3ea0,this[_0x34f550(0x12c)]=_0x33e671,this[_0x34f550(0x168)]());}async['getLiveShareCoordinator'](_0x1af079){const _0x182571=_0x19c1ed;return this[_0x182571(0x113)][_0x182571(0x18a)](_0x1af079)||await this['_startLiveShareCoordinator'](_0x1af079),this[_0x182571(0x113)][_0x182571(0x12a)](_0x1af079);}['getLiveShareCoordinatorSync'](_0x1914f0){const _0x319beb=_0x19c1ed;var _0x4d1638;return(_0x4d1638=this[_0x319beb(0x113)][_0x319beb(0x12a)](_0x1914f0))!=null?_0x4d1638:null;}[_0x19c1ed(0x168)](){const _0x4b5ec0=_0x19c1ed;this[_0x4b5ec0(0x143)][_0x4b5ec0(0x15d)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x4b5ec0(0x14e)](I[_0x4b5ec0(0x1b0)](this[_0x4b5ec0(0x19a)]))[_0x4b5ec0(0x126)](async _0xfc6849=>{const _0x4a8f21=_0x4b5ec0,_0x164d8b=_0xfc6849[_0x4a8f21(0x102)]();this['_entities']['has'](_0x164d8b)||this['_startLiveShareCoordinator'](_0x164d8b);}),this['_univerInstanceService'][_0x4b5ec0(0x129)](o['UniverInstanceType'][_0x4b5ec0(0xff)])[_0x4b5ec0(0x14e)](I[_0x4b5ec0(0x1b0)](this[_0x4b5ec0(0x19a)]))[_0x4b5ec0(0x126)](_0x311758=>{const _0x27e6de=_0x4b5ec0,_0x29d3bb=_0x311758[_0x27e6de(0x102)](),_0x1a41c1=this[_0x27e6de(0x113)][_0x27e6de(0x12a)](_0x29d3bb);_0x1a41c1==null||_0x1a41c1[_0x27e6de(0x135)]();});}async[_0x19c1ed(0x1a5)](_0x500af9){const _0x292b83=_0x19c1ed,_0x306a6f=await this[_0x292b83(0x12c)][_0x292b83(0x1b9)](_0x500af9),_0x1c18a1=this[_0x292b83(0x10c)][_0x292b83(0x177)](exports['LiveShareCoordinator'],_0x500af9,_0x306a6f);return _0x1c18a1['init'](),this[_0x292b83(0x113)]['set'](_0x500af9,_0x1c18a1),_0x1c18a1;}},exports[_0x19c1ed(0xfe)]=P([S(0x0,o[_0x19c1ed(0x144)]),S(0x1,o[_0x19c1ed(0x10b)](o[_0x19c1ed(0x19e)])),S(0x2,o[_0x19c1ed(0x10b)](b[_0x19c1ed(0x185)]))],exports['LiveShareController']);var u=(_0x1a0e5e=>(_0x1a0e5e[_0x19c1ed(0x1ad)]=_0x19c1ed(0x16e),_0x1a0e5e[_0x19c1ed(0x163)]='idle',_0x1a0e5e[_0x19c1ed(0x17c)]='following',_0x1a0e5e[_0x19c1ed(0x13b)]=_0x19c1ed(0x141),_0x1a0e5e[_0x19c1ed(0x127)]='presenting',_0x1a0e5e))(u||{});const k=_0x19c1ed(0xe8),q=0xc8;exports[_0x19c1ed(0x123)]=class extends o[_0x19c1ed(0xed)]{constructor(_0x5270b1,_0x45305f,_0x1a03cc,_0x10144a,_0x4b059d){const _0x70d380=_0x19c1ed;super(),_(this,_0x70d380(0xf2),new O['BehaviorSubject']('idle')),_(this,_0x70d380(0x11d),this[_0x70d380(0xf2)][_0x70d380(0x181)]()),_(this,'_init',!0x1),_(this,_0x70d380(0x188),null),_(this,_0x70d380(0xe3),null),(this[_0x70d380(0xe6)]=_0x5270b1,this[_0x70d380(0x1a3)]=_0x45305f,this[_0x70d380(0x133)]=_0x1a03cc,this[_0x70d380(0x10f)]=_0x10144a,this['_commandService']=_0x4b059d);}get[_0x19c1ed(0x11c)](){const _0x25ca0f=_0x19c1ed;return this[_0x25ca0f(0xf2)][_0x25ca0f(0xf7)]();}[_0x19c1ed(0x135)](){const _0x1eeebe=_0x19c1ed;var _0x476fde;(_0x476fde=this[_0x1eeebe(0x188)])==null||_0x476fde[_0x1eeebe(0x135)](),this[_0x1eeebe(0xf2)][_0x1eeebe(0x119)](_0x1eeebe(0x18c)),this[_0x1eeebe(0xf2)][_0x1eeebe(0x178)]();}[_0x19c1ed(0x160)](){const _0x581dac=_0x19c1ed;return this[_0x581dac(0x11c)];}['init'](){const _0x21790=_0x19c1ed;this[_0x21790(0x168)]||(this[_0x21790(0x168)]=!0x0,this[_0x21790(0x1a3)][_0x21790(0x11e)][_0x21790(0x14e)](I[_0x21790(0x1b0)](this[_0x21790(0x19a)]))['subscribe'](_0x1bd03b=>{const _0x3d9d66=_0x21790;switch(_0x1bd03b){case b[_0x3d9d66(0x1b3)][_0x3d9d66(0x1ad)]:this[_0x3d9d66(0x152)]();break;case b[_0x3d9d66(0x1b3)]['ONLINE']:this[_0x3d9d66(0x100)]();break;}}),this[_0x21790(0x1a3)][_0x21790(0x1ae)][_0x21790(0x14e)](I[_0x21790(0x1b0)](this['dispose$']))[_0x21790(0x126)](_0x2bec0d=>{const _0x5b2282=_0x21790,{eventID:_0x58fb28}=_0x2bec0d;switch(_0x58fb28){case d[_0x5b2282(0x180)][_0x5b2282(0x14c)]:this[_0x5b2282(0x1aa)](_0x2bec0d);break;case d[_0x5b2282(0x180)][_0x5b2282(0xf5)]:this[_0x5b2282(0x137)](_0x2bec0d);break;case d[_0x5b2282(0x180)][_0x5b2282(0x14b)]:this[_0x5b2282(0x121)]();break;case d['CollaborationEvent'][_0x5b2282(0x108)]:this['_handleNewChangeSets'](_0x2bec0d);break;}}));}[_0x19c1ed(0x167)](){const _0x1a6f0a=_0x19c1ed;this[_0x1a6f0a(0x1a3)][_0x1a6f0a(0x10a)]({'eventID':d[_0x1a6f0a(0x180)][_0x1a6f0a(0x109)],'data':{'unitID':this[_0x1a6f0a(0xe6)],'userID':this[_0x1a6f0a(0x1a3)][_0x1a6f0a(0x171)]()}},this[_0x1a6f0a(0xe6)]);}[_0x19c1ed(0x13e)](){const _0x559b52=_0x19c1ed;this[_0x559b52(0x11c)]==='presenting'&&(this['_status$'][_0x559b52(0x119)]('idle'),this[_0x559b52(0x1a3)]['send']({'eventID':d[_0x559b52(0x180)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x559b52(0xe6)]}},this['_unitID']));}['startFollowing'](){const _0x1662d9=_0x19c1ed;this[_0x1662d9(0x11c)]==='not-following'&&(this[_0x1662d9(0xf2)][_0x1662d9(0x119)](_0x1662d9(0x16d)),this['_startFollowing']());}[_0x19c1ed(0xf8)](){const _0x258c9f=_0x19c1ed;this['_status']===_0x258c9f(0x16d)&&this['_stopFollowing']();}[_0x19c1ed(0x1aa)](_0x1d86da){const _0x37af0c=_0x19c1ed,{presenter:_0x574773}=_0x1d86da['data'],_0x51493b=this[_0x37af0c(0x1a3)]['getMemberID']();this[_0x37af0c(0xe3)]=_0x574773,_0x574773===_0x51493b?(this[_0x37af0c(0x16a)](),this[_0x37af0c(0x14f)]()):this[_0x37af0c(0x11c)]!==_0x37af0c(0x141)&&(this[_0x37af0c(0x153)](),this[_0x37af0c(0x12e)]());}[_0x19c1ed(0x1b5)](){const _0xc94ba1=_0x19c1ed,_0x6669fa={'eventID':d['CollaborationEvent'][_0xc94ba1(0x115)]};this['_collabSession']['send'](_0x6669fa,this[_0xc94ba1(0xe6)]);}[_0x19c1ed(0x121)](){const _0x323bf7=_0x19c1ed;this[_0x323bf7(0xe3)]=null,this[_0x323bf7(0x11c)]!==_0x323bf7(0x136)&&this['_beIdle']();}[_0x19c1ed(0xf9)](_0x5e2d18){const _0x14c498=_0x19c1ed;if(this['_status']===_0x14c498(0x16d)&&this['_presenter']===_0x5e2d18[_0x14c498(0x19b)][_0x14c498(0x19d)]){const _0x36271c=d[_0x14c498(0x15e)](_0x5e2d18[_0x14c498(0x19b)])[_0x14c498(0x173)][_0x14c498(0x106)]()[_0x14c498(0x17a)](_0x46cc3f=>_0x46cc3f['id']===C[_0x14c498(0x1b6)]['id']);if(_0x36271c){const _0x400001=_0x36271c[_0x14c498(0x175)][_0x14c498(0xf3)],_0x48d857=_0x36271c[_0x14c498(0x175)][_0x14c498(0x195)]['id'];setTimeout(()=>{const _0x195a94=_0x14c498;this[_0x195a94(0x159)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x400001,'subUnitId':_0x48d857},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2d14b3=_0x19c1ed;this[_0x2d14b3(0xf2)][_0x2d14b3(0x119)](_0x2d14b3(0x136));const _0x281921=new Map(),_0x537264=this[_0x2d14b3(0x188)]=new o[(_0x2d14b3(0xe5))]();_0x537264['add'](o['toDisposable'](()=>{const _0x121b54=_0x2d14b3;_0x281921[_0x121b54(0xe4)](_0x45348b=>_0x45348b[_0x121b54(0x178)]()),_0x281921[_0x121b54(0x104)]();})),_0x537264[_0x2d14b3(0x164)](this[_0x2d14b3(0x159)]['onCommandExecuted'](_0xa3349a=>{const _0x2e6ea0=_0x2d14b3;var _0x456b14;if(_0xa3349a['type']!==o[_0x2e6ea0(0xde)][_0x2e6ea0(0x131)]||!this[_0x2e6ea0(0x10f)][_0x2e6ea0(0x116)](_0xa3349a['id']))return;const {id:_0x227312}=_0xa3349a;let _0x3df9c8;_0x281921[_0x2e6ea0(0x18a)](_0x227312)?_0x3df9c8=_0x281921[_0x2e6ea0(0x12a)](_0x227312):(_0x3df9c8=new O[(_0x2e6ea0(0x140))](),_0x281921[_0x2e6ea0(0x122)](_0x227312,_0x3df9c8),_0x3df9c8['pipe'](I['throttleTime']((_0x456b14=this[_0x2e6ea0(0x133)][_0x2e6ea0(0x15c)](k))!=null?_0x456b14:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2e6ea0(0x126)](_0x1a3759=>{const _0x116689=_0x2e6ea0;this[_0x116689(0x1a3)][_0x116689(0x10a)]({'eventID':d[_0x116689(0x180)][_0x116689(0xf5)],'data':{'unitID':this['_unitID'],'operations':{[_0x1a3759['id']]:{'id':_0x1a3759['id'],'params':JSON[_0x116689(0x174)](_0x1a3759['params'])}}}},this['_unitID']);})),_0x3df9c8[_0x2e6ea0(0x119)](_0xa3349a);})),this[_0x2d14b3(0x10f)]['getInitialStates'](this['_unitID'])[_0x2d14b3(0xe4)](_0x4a60c4=>this[_0x2d14b3(0x1a3)][_0x2d14b3(0x10a)]({'eventID':d[_0x2d14b3(0x180)][_0x2d14b3(0xf5)],'data':{'unitID':this[_0x2d14b3(0xe6)],'operations':{[_0x4a60c4['id']]:{'id':_0x4a60c4['id'],'params':JSON[_0x2d14b3(0x174)](_0x4a60c4[_0x2d14b3(0x175)])}}}},this[_0x2d14b3(0xe6)]));}[_0x19c1ed(0x153)](){const _0x541660=_0x19c1ed;var _0x2ba16e;this[_0x541660(0xf2)][_0x541660(0x119)](_0x541660(0x18c)),(_0x2ba16e=this[_0x541660(0x188)])==null||_0x2ba16e[_0x541660(0x135)](),this[_0x541660(0x188)]=null;}[_0x19c1ed(0x12e)](){const _0x4b8816=_0x19c1ed;var _0x308751;(_0x308751=this[_0x4b8816(0x188)])==null||_0x308751[_0x4b8816(0x135)](),this['_status$'][_0x4b8816(0x119)](_0x4b8816(0x16d));}[_0x19c1ed(0x190)](){const _0x1d193c=_0x19c1ed;var _0x34a9c8;this[_0x1d193c(0xf2)]['next']('idle'),(_0x34a9c8=this['_commandDisposable'])==null||_0x34a9c8[_0x1d193c(0x135)](),this[_0x1d193c(0x188)]=null;}[_0x19c1ed(0x16a)](){const _0xe62904=_0x19c1ed;var _0x4a0541;this[_0xe62904(0xf2)][_0xe62904(0x119)](_0xe62904(0x141)),(_0x4a0541=this[_0xe62904(0x188)])==null||_0x4a0541[_0xe62904(0x135)]();}['_handleOperation'](_0x5e588c){const _0x169833=_0x19c1ed;if(['presenting',_0x169833(0x141),'offline']['includes'](this[_0x169833(0x11c)])||!_0x5e588c[_0x169833(0x19b)][_0x169833(0xea)]||_0x5e588c['data'][_0x169833(0xea)]===this[_0x169833(0x1a3)][_0x169833(0x171)]())return;this[_0x169833(0x11c)]===_0x169833(0x18c)&&this[_0x169833(0x12e)]();const _0x2eb00e=_0x5e588c[_0x169833(0x19b)][_0x169833(0x118)];Object[_0x169833(0xe9)](_0x2eb00e)[_0x169833(0xe4)](_0x258eb8=>{const _0x5c950a=_0x169833;this[_0x5c950a(0x159)][_0x5c950a(0x156)](_0x258eb8['id'],_0x258eb8['params']?JSON[_0x5c950a(0x101)](_0x258eb8[_0x5c950a(0x175)]):null,{'fromCollab':!0x0});});}[_0x19c1ed(0x152)](){const _0xd7bd35=_0x19c1ed;var _0x18217e;this[_0xd7bd35(0xf2)][_0xd7bd35(0x119)](_0xd7bd35(0x16e)),(_0x18217e=this[_0xd7bd35(0x188)])==null||_0x18217e['dispose']();}[_0x19c1ed(0x100)](){const _0x1b5195=_0x19c1ed;this[_0x1b5195(0xf2)][_0x1b5195(0x119)](_0x1b5195(0x18c)),this[_0x1b5195(0x1b5)]();}},exports[_0x19c1ed(0x123)]=P([S(0x2,o[_0x19c1ed(0x1ab)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function $(){const _0x8fe406=_0x19c1ed,_0xa30536=p['useDependency'](exports[_0x8fe406(0xfe)]),_0x4b9e33=p[_0x8fe406(0xf1)](o[_0x8fe406(0x144)]),_0x1e301b=p[_0x8fe406(0x11b)](()=>_0x4b9e33[_0x8fe406(0x125)](o[_0x8fe406(0xdd)][_0x8fe406(0xff)]),void 0x0,!0x1,[]),[_0x126d3c,_0x3b5c09]=v[_0x8fe406(0xfc)](null),[_0x1d814f,_0x28e255]=v[_0x8fe406(0xfc)](u['IDLE']),_0x4e7c14=v[_0x8fe406(0x172)](null);return v['useEffect'](()=>(_0x1e301b&&_0xa30536[_0x8fe406(0x187)](_0x1e301b['getUnitId']())[_0x8fe406(0x189)](_0x431c78=>{const _0x425734=_0x8fe406;_0x3b5c09(_0x431c78),_0x4e7c14[_0x425734(0x148)]=_0x431c78[_0x425734(0x11d)][_0x425734(0x126)](_0x37c84a=>{_0x28e255(_0x37c84a);});}),()=>{const _0x3cde62=_0x8fe406;var _0x677732;(_0x677732=_0x4e7c14[_0x3cde62(0x148)])==null||_0x677732['unsubscribe'](),_0x4e7c14['current']=null;}),[_0x1e301b,_0xa30536]),_0x126d3c?l[_0x8fe406(0x1a7)](f[_0x8fe406(0x182)],{'align':_0x8fe406(0x1af),'disabled':_0x1d814f===u[_0x8fe406(0x1ad)],'className':_0x8fe406(0x15a),'overlay':l[_0x8fe406(0x1a7)](W,{'status':_0x1d814f,'coordinator':_0x126d3c}),'children':l[_0x8fe406(0x1a7)](_0x8fe406(0x15f),{'className':f[_0x8fe406(0x15b)](_0x8fe406(0x111),{'univer-cursor-not-allowed':_0x1d814f===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d814f!==u[_0x8fe406(0x1ad)]}),'type':_0x8fe406(0x15f),'children':l[_0x8fe406(0x1a7)](R,{'className':_0x8fe406(0x150)})})}):null;}function _0x2ce0(_0x1f6ce6,_0x366f0a){const _0xe6656a=_0xe665();return _0x2ce0=function(_0x2ce08,_0x197117){_0x2ce08=_0x2ce08-0xdd;let _0x31bc7e=_0xe6656a[_0x2ce08];return _0x31bc7e;},_0x2ce0(_0x1f6ce6,_0x366f0a);}function W(_0x511dd6){const _0x3948e1=_0x19c1ed,{status:_0x244d98,coordinator:_0x2e2e55}=_0x511dd6;switch(_0x244d98){case u[_0x3948e1(0x163)]:return l['jsx'](G,{'coordinator':_0x2e2e55});case u['FOLLOWING']:return l[_0x3948e1(0x1a7)](B,{'coordinator':_0x2e2e55});case u[_0x3948e1(0x13b)]:return l[_0x3948e1(0x1a7)](Y,{'coordinator':_0x2e2e55});case u[_0x3948e1(0x1ad)]:return l[_0x3948e1(0x1a7)](J,{});case u[_0x3948e1(0x127)]:return l[_0x3948e1(0x1a7)](Z,{'coordinator':_0x2e2e55});default:return null;}}function G(_0x275bab){const _0x6f195a=_0x19c1ed,{coordinator:_0x13b9ef}=_0x275bab;return l[_0x6f195a(0x18d)](l['Fragment'],{'children':[l[_0x6f195a(0x1a7)](_0x6f195a(0x17b),{'className':_0x6f195a(0x1ac),'children':_0x6f195a(0x186)}),l[_0x6f195a(0x1a7)](f[_0x6f195a(0x154)],{'onClick':()=>_0x13b9ef[_0x6f195a(0x167)](),'children':_0x6f195a(0x1a8)})]});}function B(_0x583598){const _0x3baf0e=_0x19c1ed,{coordinator:_0x35e97f}=_0x583598;return l['jsxs'](l[_0x3baf0e(0x110)],{'children':[l[_0x3baf0e(0x1a7)](_0x3baf0e(0x17b),{'className':_0x3baf0e(0x1ac),'children':_0x3baf0e(0xee)}),l['jsx'](f[_0x3baf0e(0x154)],{'onClick':()=>_0x35e97f[_0x3baf0e(0xf8)](),'children':_0x3baf0e(0x1b7)})]});}function Y(_0x5c7774){const _0x554094=_0x19c1ed,{coordinator:_0x2bc7e9}=_0x5c7774;return l[_0x554094(0x18d)](l[_0x554094(0x110)],{'children':[l[_0x554094(0x1a7)](_0x554094(0x17b),{'className':_0x554094(0x1ac),'children':_0x554094(0x105)}),l['jsx'](f[_0x554094(0x154)],{'variant':_0x554094(0x18f),'onClick':()=>_0x2bc7e9[_0x554094(0xe0)](),'children':_0x554094(0x12d)})]});}function Z(_0xce33a6){const _0x65fba=_0x19c1ed,{coordinator:_0x4c6e3f}=_0xce33a6;return l[_0x65fba(0x18d)](l[_0x65fba(0x110)],{'children':[l[_0x65fba(0x1a7)]('div',{'className':_0x65fba(0x1ac),'children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](f[_0x65fba(0x154)],{'variant':_0x65fba(0x103),'onClick':()=>_0x4c6e3f[_0x65fba(0x13e)](),'children':'Stop\x20presenting'})]});}function J(){const _0x6494aa=_0x19c1ed;return l['jsx'](l[_0x6494aa(0x110)],{'children':_0x6494aa(0x196)});}var K=Object[_0x19c1ed(0x1a9)],z=(_0x2dda87,_0x48a72f,_0x5cfcfc,_0x524a16)=>{const _0x53ab04=_0x19c1ed;for(var _0x4f6ce3=_0x524a16>0x1?void 0x0:_0x524a16?K(_0x48a72f,_0x5cfcfc):_0x48a72f,_0x172061=_0x2dda87[_0x53ab04(0x155)]-0x1,_0x2a3b2a;_0x172061>=0x0;_0x172061--)(_0x2a3b2a=_0x2dda87[_0x172061])&&(_0x4f6ce3=_0x2a3b2a(_0x4f6ce3)||_0x4f6ce3);return _0x4f6ce3;},L=(_0x47ecd7,_0x11766c)=>(_0x171ed4,_0x55ee6f)=>_0x11766c(_0x171ed4,_0x55ee6f,_0x47ecd7);exports['DesktopLiveShareController']=class extends o[_0x19c1ed(0x145)]{constructor(_0x3a0753,_0x2d6a1b){const _0xac6bcc=_0x19c1ed;super(),this[_0xac6bcc(0x10c)]=_0x3a0753,this[_0xac6bcc(0x107)]=_0x2d6a1b,this[_0xac6bcc(0x183)]();}[_0x19c1ed(0x183)](){const _0x1ddd1f=_0x19c1ed;this[_0x1ddd1f(0xfa)](this[_0x1ddd1f(0x107)][_0x1ddd1f(0x13c)](p[_0x1ddd1f(0x124)][_0x1ddd1f(0x14a)],()=>p['connectInjector']($,this['_injector'])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x19c1ed(0x10b)](o['Injector'])),L(0x1,p[_0x19c1ed(0x11f)])],exports[_0x19c1ed(0x16b)]);const Q=_0x19c1ed(0xe1),w={};var X=Object[_0x19c1ed(0x1a9)],ee=(_0x1098f0,_0x227e5f,_0x4fd060,_0x10b824)=>{for(var _0x3bb3ec=_0x10b824>0x1?void 0x0:_0x10b824?X(_0x227e5f,_0x4fd060):_0x227e5f,_0x5cc1aa=_0x1098f0['length']-0x1,_0x3469d1;_0x5cc1aa>=0x0;_0x5cc1aa--)(_0x3469d1=_0x1098f0[_0x5cc1aa])&&(_0x3bb3ec=_0x3469d1(_0x3bb3ec)||_0x3bb3ec);return _0x3bb3ec;},te=(_0x28a81d,_0x2acb12)=>(_0x138cdd,_0x3c62da)=>_0x2acb12(_0x138cdd,_0x3c62da,_0x28a81d);let m=class extends o['Disposable']{constructor(_0x47d964){const _0x42fe72=_0x19c1ed;super(),this[_0x42fe72(0x10f)]=_0x47d964,this['_init']();}[_0x19c1ed(0x168)](){const _0x5e5a80=_0x19c1ed;[D[_0x5e5a80(0x120)]['id'],D[_0x5e5a80(0x16f)]['id'],C[_0x5e5a80(0x1a1)]['id']][_0x5e5a80(0xe4)](_0x304690=>{const _0x2acb1d=_0x5e5a80;this[_0x2acb1d(0xfa)](this[_0x2acb1d(0x10f)][_0x2acb1d(0x194)](_0x304690));});}};m=ee([te(0x0,o[_0x19c1ed(0x10b)](E))],m);var ie=Object['defineProperty'],se=Object[_0x19c1ed(0x1a9)],ne=(_0xfdabc1,_0x33a01e,_0x5179aa)=>_0x33a01e in _0xfdabc1?ie(_0xfdabc1,_0x33a01e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5179aa}):_0xfdabc1[_0x33a01e]=_0x5179aa,re=(_0x11b0e4,_0x1832b7,_0x3d6842,_0x36f2e8)=>{const _0x1e6c73=_0x19c1ed;for(var _0x4e10e1=_0x36f2e8>0x1?void 0x0:_0x36f2e8?se(_0x1832b7,_0x3d6842):_0x1832b7,_0x217aed=_0x11b0e4[_0x1e6c73(0x155)]-0x1,_0x49acb2;_0x217aed>=0x0;_0x217aed--)(_0x49acb2=_0x11b0e4[_0x217aed])&&(_0x4e10e1=_0x49acb2(_0x4e10e1)||_0x4e10e1);return _0x4e10e1;},N=(_0x2178a0,_0x5175a9)=>(_0x3b8a2f,_0x351f5f)=>_0x5175a9(_0x3b8a2f,_0x351f5f,_0x2178a0),A=(_0x8e6e9,_0x24d46f,_0x5aec50)=>ne(_0x8e6e9,typeof _0x24d46f!=_0x19c1ed(0x13a)?_0x24d46f+'':_0x24d46f,_0x5aec50);const oe=_0x19c1ed(0x193);exports[_0x19c1ed(0x1a2)]=class extends o[_0x19c1ed(0x18e)]{constructor(_0x245f2c=w,_0x5eef7f,_0x4e0bf0){const _0x4f71fc=_0x19c1ed;super(),this[_0x4f71fc(0xe2)]=_0x245f2c,this[_0x4f71fc(0x10c)]=_0x5eef7f,this[_0x4f71fc(0x133)]=_0x4e0bf0;const {..._0x1f58c1}=o['merge']({},w,this[_0x4f71fc(0xe2)]);this[_0x4f71fc(0x133)][_0x4f71fc(0x1a6)](Q,_0x1f58c1);}['onStarting'](){const _0x4697b9=_0x19c1ed;o['registerDependencies'](this['_injector'],o[_0x4697b9(0x149)]([[E],[exports[_0x4697b9(0xfe)]],[m],[exports[_0x4697b9(0x16b)]]],this[_0x4697b9(0xe2)][_0x4697b9(0xec)])),o[_0x4697b9(0x12b)](this[_0x4697b9(0x10c)],[[m]]);}[_0x19c1ed(0x18b)](){const _0x12eab6=_0x19c1ed;o[_0x12eab6(0x12b)](this[_0x12eab6(0x10c)],[[exports[_0x12eab6(0x16b)]]]);}},A(exports[_0x19c1ed(0x1a2)],_0x19c1ed(0x199),o['UniverInstanceType'][_0x19c1ed(0x1a0)]),A(exports[_0x19c1ed(0x1a2)],_0x19c1ed(0x17d),oe),exports[_0x19c1ed(0x1a2)]=re([o[_0x19c1ed(0x14d)](b[_0x19c1ed(0x19f)]),N(0x1,o[_0x19c1ed(0x10b)](o[_0x19c1ed(0x19e)])),N(0x2,o[_0x19c1ed(0x1ab)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=$,exports['LiveShareService']=E,exports[_0x19c1ed(0x146)]=u;
|
|
1
|
+
'use strict';function _0x4a81(_0x22bba8,_0x5b7d5e){_0x22bba8=_0x22bba8-0x1b7;const _0x1dd458=_0x1dd4();let _0x4a8119=_0x1dd458[_0x22bba8];return _0x4a8119;}const _0x3c9f75=_0x4a81;(function(_0x54bb81,_0x125ca4){const _0x2604b8=_0x4a81,_0x284573=_0x54bb81();while(!![]){try{const _0x24ed58=-parseInt(_0x2604b8(0x238))/0x1+parseInt(_0x2604b8(0x26c))/0x2+parseInt(_0x2604b8(0x25f))/0x3*(parseInt(_0x2604b8(0x288))/0x4)+-parseInt(_0x2604b8(0x22a))/0x5+-parseInt(_0x2604b8(0x25e))/0x6*(parseInt(_0x2604b8(0x202))/0x7)+-parseInt(_0x2604b8(0x1c5))/0x8*(parseInt(_0x2604b8(0x1c8))/0x9)+parseInt(_0x2604b8(0x1ed))/0xa;if(_0x24ed58===_0x125ca4)break;else _0x284573['push'](_0x284573['shift']());}catch(_0xcc3be){_0x284573['push'](_0x284573['shift']());}}}(_0x1dd4,0xc48af));var T=Object['defineProperty'],U=(_0x40dbaa,_0x4e64a9,_0x4e0d46)=>_0x4e64a9 in _0x40dbaa?T(_0x40dbaa,_0x4e64a9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e0d46}):_0x40dbaa[_0x4e64a9]=_0x4e0d46,_=(_0x55e3a9,_0x243cf5,_0x24c20a)=>U(_0x55e3a9,typeof _0x243cf5!=_0x3c9f75(0x245)?_0x243cf5+'':_0x243cf5,_0x24c20a);Object[_0x3c9f75(0x1fd)](exports,Symbol[_0x3c9f75(0x1b8)],{'value':_0x3c9f75(0x1d5)});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:_0x2f9d5e,..._0x3e6cba}){const _0x13cc85=_0x3c9f75,{icon:_0x15c11c,id:_0x4f3a48,className:_0x52bd4c,extend:_0x18275b,..._0x15bb73}=_0x3e6cba,_0x781035=('univerjs-icon\x20univerjs-icon-'+_0x4f3a48+'\x20'+(_0x52bd4c||''))[_0x13cc85(0x28c)](),_0x4fb192=v[_0x13cc85(0x291)]('_'+H());return j(_0x15c11c,''+_0x4f3a48,{'defIds':_0x15c11c[_0x13cc85(0x263)],'idSuffix':_0x4fb192[_0x13cc85(0x27c)]},{'ref':_0x2f9d5e,'className':_0x781035,..._0x15bb73},_0x18275b);}function j(_0x49caa0,_0x1e0d83,_0x4ea84a,_0x5031ac,_0x5c4209){const _0xcca5a8=_0x3c9f75;return v[_0xcca5a8(0x21e)](_0x49caa0[_0xcca5a8(0x1b9)],{'key':_0x1e0d83,...y(_0x49caa0,_0x4ea84a,_0x5c4209),..._0x5031ac},(F(_0x49caa0,_0x4ea84a)[_0xcca5a8(0x26a)]||[])['map']((_0x4fbd72,_0x35ae0a)=>j(_0x4fbd72,_0x1e0d83+'-'+_0x49caa0['tag']+'-'+_0x35ae0a,_0x4ea84a,void 0x0,_0x5c4209)));}function y(_0x1bd946,_0x5eccc7,_0x36eef8){const _0x59900c=_0x3c9f75,_0x4923b3={..._0x1bd946['attrs']};_0x36eef8!=null&&_0x36eef8[_0x59900c(0x27b)]&&_0x4923b3[_0x59900c(0x26f)]===_0x59900c(0x27b)&&(_0x4923b3[_0x59900c(0x26f)]=_0x36eef8[_0x59900c(0x27b)]),_0x1bd946['tag']===_0x59900c(0x273)&&_0x4923b3['id']&&(_0x4923b3['id']=_0x4923b3['id']+_0x5eccc7['idSuffix']),Object[_0x59900c(0x279)](_0x4923b3)['forEach'](([_0x2a9d0c,_0x4182ad])=>{const _0x51865c=_0x59900c;_0x2a9d0c===_0x51865c(0x273)&&typeof _0x4182ad=='string'&&(_0x4923b3[_0x2a9d0c]=_0x4182ad[_0x51865c(0x25a)](/url\(#(.*)\)/,_0x51865c(0x206)+_0x5eccc7['idSuffix']+')'));});const {defIds:_0xc885b1}=_0x5eccc7;return!_0xc885b1||_0xc885b1[_0x59900c(0x243)]===0x0||(_0x1bd946[_0x59900c(0x1b9)]===_0x59900c(0x222)&&_0x4923b3[_0x59900c(0x251)]&&(_0x4923b3[_0x59900c(0x251)]=_0x4923b3[_0x59900c(0x251)]+_0x5eccc7[_0x59900c(0x1ff)]),Object['entries'](_0x4923b3)[_0x59900c(0x1d1)](([_0xf03144,_0x1a597e])=>{const _0x3526a4=_0x59900c;typeof _0x1a597e=='string'&&(_0x4923b3[_0xf03144]=_0x1a597e[_0x3526a4(0x25a)](/url\(#(.*)\)/,_0x3526a4(0x206)+_0x5eccc7[_0x3526a4(0x1ff)]+')'));})),_0x4923b3;}function F(_0x5e2f64,_0x2af551){const _0x5b4d98=_0x3c9f75;var _0x3b5476;const {defIds:_0x3b48eb}=_0x2af551;return!_0x3b48eb||_0x3b48eb[_0x5b4d98(0x243)]===0x0?_0x5e2f64:_0x5e2f64['tag']===_0x5b4d98(0x1d9)&&((_0x3b5476=_0x5e2f64[_0x5b4d98(0x26a)])!=null&&_0x3b5476['length'])?{..._0x5e2f64,'children':_0x5e2f64[_0x5b4d98(0x26a)][_0x5b4d98(0x1e4)](_0x2b955b=>typeof _0x2b955b[_0x5b4d98(0x22f)]['id']=='string'&&_0x3b48eb&&_0x3b48eb['includes'](_0x2b955b[_0x5b4d98(0x22f)]['id'])?{..._0x2b955b,'attrs':{..._0x2b955b[_0x5b4d98(0x22f)],'id':_0x2b955b[_0x5b4d98(0x22f)]['id']+_0x2af551[_0x5b4d98(0x1ff)]}}:_0x2b955b)}:_0x5e2f64;}function H(){const _0x14697b=_0x3c9f75;return Math[_0x14697b(0x218)]()['toString'](0x24)[_0x14697b(0x1fa)](0x2,0x8);}x[_0x3c9f75(0x1bb)]=_0x3c9f75(0x1b7);const V={'tag':_0x3c9f75(0x1fe),'attrs':{'xmlns':_0x3c9f75(0x1f5),'fill':_0x3c9f75(0x22d),'viewBox':_0x3c9f75(0x217),'width':_0x3c9f75(0x28f),'height':_0x3c9f75(0x28f)},'children':[{'tag':_0x3c9f75(0x1bd),'attrs':{'fill':_0x3c9f75(0x234),'d':_0x3c9f75(0x1cb)}},{'tag':_0x3c9f75(0x1bd),'attrs':{'fill':_0x3c9f75(0x234),'d':_0x3c9f75(0x23c),'fillRule':_0x3c9f75(0x286),'clipRule':'evenodd'}}]},R=v[_0x3c9f75(0x1c7)](function(_0xa0104b,_0x3d9733){const _0xbcc930=_0x3c9f75;return v['createElement'](x,Object[_0xbcc930(0x276)]({},_0xa0104b,{'id':_0xbcc930(0x21a),'ref':_0x3d9733,'icon':V}));});R[_0x3c9f75(0x1bb)]=_0x3c9f75(0x1fb);class E extends o[_0x3c9f75(0x215)]{constructor(){const _0x2d9de4=_0x3c9f75;super(...arguments),_(this,_0x2d9de4(0x259),new Set()),_(this,'_reporters',new Set());}[_0x3c9f75(0x1f8)](_0x9cd80d){const _0x2fcff5=_0x3c9f75;return this['_sharedOperations'][_0x2fcff5(0x225)](_0x9cd80d),o['toDisposable'](()=>this[_0x2fcff5(0x259)][_0x2fcff5(0x1f2)](_0x9cd80d));}[_0x3c9f75(0x226)](_0x26f368){const _0x2450d9=_0x3c9f75;return this[_0x2450d9(0x1df)][_0x2450d9(0x225)](_0x26f368),o[_0x2450d9(0x1cf)](()=>this['_reporters'][_0x2450d9(0x1f2)](_0x26f368));}['shouldShareOperation'](_0x5bf0df){const _0x5435e5=_0x3c9f75;return this['_sharedOperations'][_0x5435e5(0x1ca)](_0x5bf0df);}[_0x3c9f75(0x27f)](_0x531be2){const _0x8819e7=_0x3c9f75;return Array['from'](this[_0x8819e7(0x1df)])['map'](_0x3c9717=>_0x3c9717(_0x531be2));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x4e22f7,_0x4bfce5,_0x481665,_0xb9f0f4)=>{for(var _0x54b709=_0xb9f0f4>0x1?void 0x0:_0xb9f0f4?M(_0x4bfce5,_0x481665):_0x4bfce5,_0x2b7be9=_0x4e22f7['length']-0x1,_0x34b574;_0x2b7be9>=0x0;_0x2b7be9--)(_0x34b574=_0x4e22f7[_0x2b7be9])&&(_0x54b709=_0x34b574(_0x54b709)||_0x54b709);return _0x54b709;},S=(_0x5c514a,_0x317406)=>(_0x4ba07a,_0x17316d)=>_0x317406(_0x4ba07a,_0x17316d,_0x5c514a);exports[_0x3c9f75(0x258)]=class extends o[_0x3c9f75(0x244)]{constructor(_0x51473d,_0x478b25,_0x478d50){const _0x37d221=_0x3c9f75;super(),_(this,_0x37d221(0x213),new Map()),(this[_0x37d221(0x25b)]=_0x51473d,this['_injector']=_0x478b25,this[_0x37d221(0x21c)]=_0x478d50,this[_0x37d221(0x1f4)]());}async[_0x3c9f75(0x1e5)](_0x450810){const _0x2c3002=_0x3c9f75;return this[_0x2c3002(0x213)]['has'](_0x450810)||await this[_0x2c3002(0x205)](_0x450810),this['_entities'][_0x2c3002(0x20c)](_0x450810);}[_0x3c9f75(0x216)](_0x569ff5){const _0x1c87cf=_0x3c9f75;var _0x3ef06d;return(_0x3ef06d=this[_0x1c87cf(0x213)][_0x1c87cf(0x20c)](_0x569ff5))!=null?_0x3ef06d:null;}[_0x3c9f75(0x1f4)](){const _0x537b9e=_0x3c9f75;this[_0x537b9e(0x25b)][_0x537b9e(0x221)](o[_0x537b9e(0x200)]['UNIVER_SHEET'])[_0x537b9e(0x293)](I[_0x537b9e(0x21b)](this[_0x537b9e(0x28e)]))['subscribe'](async _0x41254f=>{const _0x1b7212=_0x537b9e,_0x4b62a0=_0x41254f['getUnitId']();this[_0x1b7212(0x213)][_0x1b7212(0x1ca)](_0x4b62a0)||this['_startLiveShareCoordinator'](_0x4b62a0);}),this[_0x537b9e(0x25b)][_0x537b9e(0x1d2)](o['UniverInstanceType'][_0x537b9e(0x1cd)])[_0x537b9e(0x293)](I['takeUntil'](this['dispose$']))[_0x537b9e(0x274)](_0x41b958=>{const _0x1a8928=_0x537b9e,_0x1d2c47=_0x41b958[_0x1a8928(0x1ba)](),_0x1c85a7=this[_0x1a8928(0x213)]['get'](_0x1d2c47);_0x1c85a7==null||_0x1c85a7[_0x1a8928(0x220)]();});}async[_0x3c9f75(0x205)](_0x365fd7){const _0x531519=_0x3c9f75,_0x4cc104=await this[_0x531519(0x21c)][_0x531519(0x223)](_0x365fd7),_0x39e99b=this[_0x531519(0x204)][_0x531519(0x1f6)](exports[_0x531519(0x266)],_0x365fd7,_0x4cc104);return _0x39e99b[_0x531519(0x1fc)](),this['_entities']['set'](_0x365fd7,_0x39e99b),_0x39e99b;}},exports['LiveShareController']=P([S(0x0,o[_0x3c9f75(0x1e2)]),S(0x1,o[_0x3c9f75(0x203)](o[_0x3c9f75(0x228)])),S(0x2,o[_0x3c9f75(0x203)](b['CollaborationSessionService']))],exports[_0x3c9f75(0x258)]);var u=(_0x40a2ca=>(_0x40a2ca[_0x3c9f75(0x1c6)]=_0x3c9f75(0x1ce),_0x40a2ca['IDLE']=_0x3c9f75(0x28d),_0x40a2ca[_0x3c9f75(0x20a)]='following',_0x40a2ca[_0x3c9f75(0x22b)]=_0x3c9f75(0x278),_0x40a2ca['PRESENTING']=_0x3c9f75(0x24d),_0x40a2ca))(u||{});const k=_0x3c9f75(0x272),q=0xc8;exports[_0x3c9f75(0x266)]=class extends o['RxDisposable']{constructor(_0x82ffc1,_0x3ece62,_0x5026b2,_0x2aea5c,_0xe1d8db){const _0x432b9d=_0x3c9f75;super(),_(this,_0x432b9d(0x294),new O[(_0x432b9d(0x248))](_0x432b9d(0x28d))),_(this,_0x432b9d(0x282),this['_status$'][_0x432b9d(0x1dc)]()),_(this,'_init',!0x1),_(this,_0x432b9d(0x24a),null),_(this,_0x432b9d(0x23d),null),(this['_unitID']=_0x82ffc1,this[_0x432b9d(0x250)]=_0x3ece62,this['_configService']=_0x5026b2,this[_0x432b9d(0x1e8)]=_0x2aea5c,this[_0x432b9d(0x284)]=_0xe1d8db);}get['_status'](){const _0x19a7fc=_0x3c9f75;return this[_0x19a7fc(0x294)][_0x19a7fc(0x201)]();}[_0x3c9f75(0x220)](){const _0x5e09d0=_0x3c9f75;var _0x1d6896;(_0x1d6896=this[_0x5e09d0(0x24a)])==null||_0x1d6896[_0x5e09d0(0x220)](),this[_0x5e09d0(0x294)][_0x5e09d0(0x1c9)](_0x5e09d0(0x28d)),this[_0x5e09d0(0x294)]['complete']();}['getStatus'](){const _0x5677fc=_0x3c9f75;return this[_0x5677fc(0x28a)];}[_0x3c9f75(0x1fc)](){const _0xaa796e=_0x3c9f75;this[_0xaa796e(0x1f4)]||(this[_0xaa796e(0x1f4)]=!0x0,this[_0xaa796e(0x250)][_0xaa796e(0x1db)][_0xaa796e(0x293)](I[_0xaa796e(0x21b)](this[_0xaa796e(0x28e)]))[_0xaa796e(0x274)](_0x5271be=>{const _0x25b954=_0xaa796e;switch(_0x5271be){case b['SessionStatus'][_0x25b954(0x1c6)]:this[_0x25b954(0x23a)]();break;case b[_0x25b954(0x1ec)][_0x25b954(0x26e)]:this['_handleOnline']();break;}}),this[_0xaa796e(0x250)][_0xaa796e(0x21f)][_0xaa796e(0x293)](I['takeUntil'](this[_0xaa796e(0x28e)]))[_0xaa796e(0x274)](_0x22ca89=>{const _0x42095=_0xaa796e,{eventID:_0x328514}=_0x22ca89;switch(_0x328514){case d[_0x42095(0x20b)][_0x42095(0x25c)]:this[_0x42095(0x208)](_0x22ca89);break;case d[_0x42095(0x20b)]['LIVESHARE_OPERATION']:this[_0x42095(0x290)](_0x22ca89);break;case d[_0x42095(0x20b)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case d[_0x42095(0x20b)]['NEW_CHANGESETS']:this[_0x42095(0x292)](_0x22ca89);break;}}));}[_0x3c9f75(0x252)](){const _0x1dfabf=_0x3c9f75;this[_0x1dfabf(0x250)][_0x1dfabf(0x241)]({'eventID':d[_0x1dfabf(0x20b)][_0x1dfabf(0x22c)],'data':{'unitID':this[_0x1dfabf(0x1d3)],'userID':this[_0x1dfabf(0x250)]['getMemberID']()}},this['_unitID']);}[_0x3c9f75(0x270)](){const _0x11ebf1=_0x3c9f75;this[_0x11ebf1(0x28a)]===_0x11ebf1(0x24d)&&(this[_0x11ebf1(0x294)]['next'](_0x11ebf1(0x28d)),this['_collabSession'][_0x11ebf1(0x241)]({'eventID':d['CollaborationEvent'][_0x11ebf1(0x1da)],'data':{'unitID':this[_0x11ebf1(0x1d3)]}},this['_unitID']));}[_0x3c9f75(0x236)](){const _0x5de8a8=_0x3c9f75;this[_0x5de8a8(0x28a)]===_0x5de8a8(0x278)&&(this[_0x5de8a8(0x294)][_0x5de8a8(0x1c9)](_0x5de8a8(0x24b)),this['_startFollowing']());}[_0x3c9f75(0x289)](){const _0x442339=_0x3c9f75;this[_0x442339(0x28a)]===_0x442339(0x24b)&&this[_0x442339(0x237)]();}[_0x3c9f75(0x208)](_0x1c5632){const _0x52ace1=_0x3c9f75,{presenter:_0x5553f9}=_0x1c5632[_0x52ace1(0x295)],_0x31ae09=this[_0x52ace1(0x250)][_0x52ace1(0x249)]();this[_0x52ace1(0x23d)]=_0x5553f9,_0x5553f9===_0x31ae09?(this[_0x52ace1(0x237)](),this[_0x52ace1(0x1c1)]()):this[_0x52ace1(0x28a)]!=='not-following'&&(this[_0x52ace1(0x27a)](),this[_0x52ace1(0x280)]());}[_0x3c9f75(0x267)](){const _0x42ff70=_0x3c9f75,_0x449f5f={'eventID':d[_0x42ff70(0x20b)][_0x42ff70(0x271)]};this[_0x42ff70(0x250)]['send'](_0x449f5f,this['_unitID']);}['_handleTerminate'](){const _0x441553=_0x3c9f75;this[_0x441553(0x23d)]=null,this[_0x441553(0x28a)]!==_0x441553(0x24d)&&this[_0x441553(0x247)]();}['_handleNewChangeSets'](_0x1c4b88){const _0x2e944b=_0x3c9f75;if(this[_0x2e944b(0x28a)]===_0x2e944b(0x24b)&&this[_0x2e944b(0x23d)]===_0x1c4b88[_0x2e944b(0x295)][_0x2e944b(0x1d4)]){const _0x63504c=d[_0x2e944b(0x242)](_0x1c4b88['data'])[_0x2e944b(0x1d0)][_0x2e944b(0x20e)]()['find'](_0x5c686a=>_0x5c686a['id']===C['InsertSheetMutation']['id']);if(_0x63504c){const _0x58cfcf=_0x63504c[_0x2e944b(0x261)][_0x2e944b(0x22e)],_0x15d3d6=_0x63504c[_0x2e944b(0x261)][_0x2e944b(0x240)]['id'];setTimeout(()=>{const _0x3937ac=_0x2e944b;this[_0x3937ac(0x284)][_0x3937ac(0x253)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x58cfcf,'subUnitId':_0x15d3d6},{'fromCollab':!0x0});});}}}[_0x3c9f75(0x1c1)](){const _0x50929e=_0x3c9f75;this[_0x50929e(0x294)][_0x50929e(0x1c9)](_0x50929e(0x24d));const _0x219677=new Map(),_0x412442=this[_0x50929e(0x24a)]=new o[(_0x50929e(0x1f7))]();_0x412442[_0x50929e(0x225)](o['toDisposable'](()=>{const _0x8aa9cd=_0x50929e;_0x219677['forEach'](_0x2078b2=>_0x2078b2[_0x8aa9cd(0x229)]()),_0x219677['clear']();})),_0x412442[_0x50929e(0x225)](this[_0x50929e(0x284)][_0x50929e(0x1d6)](_0x25ad08=>{const _0x151ca0=_0x50929e;var _0x5bad2c;if(_0x25ad08['type']!==o[_0x151ca0(0x1f3)][_0x151ca0(0x269)]||!this[_0x151ca0(0x1e8)][_0x151ca0(0x230)](_0x25ad08['id']))return;const {id:_0x209fd6}=_0x25ad08;let _0x5a0197;_0x219677[_0x151ca0(0x1ca)](_0x209fd6)?_0x5a0197=_0x219677['get'](_0x209fd6):(_0x5a0197=new O[(_0x151ca0(0x1de))](),_0x219677[_0x151ca0(0x1ef)](_0x209fd6,_0x5a0197),_0x5a0197[_0x151ca0(0x293)](I[_0x151ca0(0x232)]((_0x5bad2c=this['_configService'][_0x151ca0(0x212)](k))!=null?_0x5bad2c:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x287ca5=>{const _0x379ec0=_0x151ca0;this[_0x379ec0(0x250)][_0x379ec0(0x241)]({'eventID':d[_0x379ec0(0x20b)][_0x379ec0(0x1eb)],'data':{'unitID':this['_unitID'],'operations':{[_0x287ca5['id']]:{'id':_0x287ca5['id'],'params':JSON[_0x379ec0(0x224)](_0x287ca5[_0x379ec0(0x261)])}}}},this[_0x379ec0(0x1d3)]);})),_0x5a0197[_0x151ca0(0x1c9)](_0x25ad08);})),this[_0x50929e(0x1e8)][_0x50929e(0x27f)](this['_unitID'])[_0x50929e(0x1d1)](_0x500b78=>this[_0x50929e(0x250)][_0x50929e(0x241)]({'eventID':d['CollaborationEvent'][_0x50929e(0x1eb)],'data':{'unitID':this['_unitID'],'operations':{[_0x500b78['id']]:{'id':_0x500b78['id'],'params':JSON['stringify'](_0x500b78['params'])}}}},this[_0x50929e(0x1d3)]));}[_0x3c9f75(0x27a)](){const _0x4e94da=_0x3c9f75;var _0x3c5f20;this['_status$'][_0x4e94da(0x1c9)](_0x4e94da(0x28d)),(_0x3c5f20=this['_commandDisposable'])==null||_0x3c5f20[_0x4e94da(0x220)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x47be3e=_0x3c9f75;var _0x4ed639;(_0x4ed639=this[_0x47be3e(0x24a)])==null||_0x4ed639[_0x47be3e(0x220)](),this['_status$']['next'](_0x47be3e(0x24b));}[_0x3c9f75(0x247)](){const _0x220342=_0x3c9f75;var _0x2ad180;this[_0x220342(0x294)][_0x220342(0x1c9)](_0x220342(0x28d)),(_0x2ad180=this[_0x220342(0x24a)])==null||_0x2ad180[_0x220342(0x220)](),this[_0x220342(0x24a)]=null;}[_0x3c9f75(0x237)](){const _0x23f4e0=_0x3c9f75;var _0x482c20;this['_status$'][_0x23f4e0(0x1c9)]('not-following'),(_0x482c20=this[_0x23f4e0(0x24a)])==null||_0x482c20[_0x23f4e0(0x220)]();}[_0x3c9f75(0x290)](_0x407a52){const _0x328121=_0x3c9f75;if([_0x328121(0x24d),'not-following','offline']['includes'](this[_0x328121(0x28a)])||!_0x407a52[_0x328121(0x295)][_0x328121(0x227)]||_0x407a52['data'][_0x328121(0x227)]===this[_0x328121(0x250)][_0x328121(0x249)]())return;this[_0x328121(0x28a)]===_0x328121(0x28d)&&this[_0x328121(0x280)]();const _0x4d61c6=_0x407a52[_0x328121(0x295)][_0x328121(0x26b)];Object[_0x328121(0x27d)](_0x4d61c6)[_0x328121(0x1d1)](_0x17bed8=>{const _0x3827d0=_0x328121;this[_0x3827d0(0x284)]['executeCommand'](_0x17bed8['id'],_0x17bed8['params']?JSON[_0x3827d0(0x24f)](_0x17bed8[_0x3827d0(0x261)]):null,{'fromCollab':!0x0});});}[_0x3c9f75(0x23a)](){const _0x454520=_0x3c9f75;var _0x43a4e6;this[_0x454520(0x294)][_0x454520(0x1c9)](_0x454520(0x1ce)),(_0x43a4e6=this[_0x454520(0x24a)])==null||_0x43a4e6[_0x454520(0x220)]();}[_0x3c9f75(0x264)](){const _0x465377=_0x3c9f75;this[_0x465377(0x294)]['next'](_0x465377(0x28d)),this[_0x465377(0x267)]();}},exports[_0x3c9f75(0x266)]=P([S(0x2,o[_0x3c9f75(0x1f0)]),S(0x3,o[_0x3c9f75(0x203)](E)),S(0x4,o[_0x3c9f75(0x235)])],exports[_0x3c9f75(0x266)]);function $(){const _0xdd2178=_0x3c9f75,_0x3ac6c4=p[_0xdd2178(0x219)](exports[_0xdd2178(0x258)]),_0x457321=p[_0xdd2178(0x219)](o[_0xdd2178(0x1e2)]),_0x15da94=p[_0xdd2178(0x254)](()=>_0x457321[_0xdd2178(0x262)](o['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xf6c788,_0x9abbfa]=v[_0xdd2178(0x1bc)](null),[_0x3c83d0,_0x3a8a67]=v['useState'](u[_0xdd2178(0x26d)]),_0x242fb1=v[_0xdd2178(0x291)](null);return v[_0xdd2178(0x210)](()=>(_0x15da94&&_0x3ac6c4[_0xdd2178(0x1e5)](_0x15da94['getUnitId']())[_0xdd2178(0x28b)](_0x575a8a=>{const _0x64d13e=_0xdd2178;_0x9abbfa(_0x575a8a),_0x242fb1['current']=_0x575a8a[_0x64d13e(0x282)][_0x64d13e(0x274)](_0x4aec85=>{_0x3a8a67(_0x4aec85);});}),()=>{const _0x46338d=_0xdd2178;var _0x22aff4;(_0x22aff4=_0x242fb1[_0x46338d(0x27c)])==null||_0x22aff4[_0x46338d(0x1d7)](),_0x242fb1[_0x46338d(0x27c)]=null;}),[_0x15da94,_0x3ac6c4]),_0xf6c788?l['jsx'](f[_0xdd2178(0x24e)],{'align':_0xdd2178(0x214),'disabled':_0x3c83d0===u['OFFLINE'],'className':_0xdd2178(0x23b),'overlay':l[_0xdd2178(0x285)](W,{'status':_0x3c83d0,'coordinator':_0xf6c788}),'children':l[_0xdd2178(0x285)](_0xdd2178(0x25d),{'className':f[_0xdd2178(0x297)](_0xdd2178(0x256),{'univer-cursor-not-allowed':_0x3c83d0===u[_0xdd2178(0x1c6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3c83d0!==u[_0xdd2178(0x1c6)]}),'type':'button','children':l['jsx'](R,{'className':_0xdd2178(0x211)})})}):null;}function W(_0x124cc3){const _0x569aa4=_0x3c9f75,{status:_0x332111,coordinator:_0xf390a2}=_0x124cc3;switch(_0x332111){case u[_0x569aa4(0x26d)]:return l['jsx'](G,{'coordinator':_0xf390a2});case u[_0x569aa4(0x20a)]:return l[_0x569aa4(0x285)](B,{'coordinator':_0xf390a2});case u[_0x569aa4(0x22b)]:return l['jsx'](Y,{'coordinator':_0xf390a2});case u['OFFLINE']:return l['jsx'](J,{});case u[_0x569aa4(0x281)]:return l['jsx'](Z,{'coordinator':_0xf390a2});default:return null;}}function G(_0x64b2d7){const _0x31a4a6=_0x3c9f75,{coordinator:_0x3b5590}=_0x64b2d7;return l[_0x31a4a6(0x1e6)](l[_0x31a4a6(0x1c0)],{'children':[l[_0x31a4a6(0x285)](_0x31a4a6(0x1c3),{'className':_0x31a4a6(0x1bf),'children':'Present\x20this\x20document'}),l[_0x31a4a6(0x285)](f[_0x31a4a6(0x1c2)],{'onClick':()=>_0x3b5590[_0x31a4a6(0x252)](),'children':_0x31a4a6(0x1cc)})]});}function B(_0x272d78){const _0x5b8ba3=_0x3c9f75,{coordinator:_0x1fab15}=_0x272d78;return l[_0x5b8ba3(0x1e6)](l['Fragment'],{'children':[l[_0x5b8ba3(0x285)](_0x5b8ba3(0x1c3),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5b8ba3(0x1c4)}),l['jsx'](f[_0x5b8ba3(0x1c2)],{'onClick':()=>_0x1fab15['stopFollowing'](),'children':_0x5b8ba3(0x1dd)})]});}function Y(_0x4f67db){const _0x15348e=_0x3c9f75,{coordinator:_0x48ae9d}=_0x4f67db;return l[_0x15348e(0x1e6)](l[_0x15348e(0x1c0)],{'children':[l['jsx'](_0x15348e(0x1c3),{'className':_0x15348e(0x1bf),'children':_0x15348e(0x1e7)}),l['jsx'](f['Button'],{'variant':'text','onClick':()=>_0x48ae9d[_0x15348e(0x236)](),'children':_0x15348e(0x20f)})]});}function Z(_0x3f217e){const _0x438aca=_0x3c9f75,{coordinator:_0x3d08ff}=_0x3f217e;return l[_0x438aca(0x1e6)](l[_0x438aca(0x1c0)],{'children':[l[_0x438aca(0x285)]('div',{'className':_0x438aca(0x1bf),'children':_0x438aca(0x207)}),l[_0x438aca(0x285)](f[_0x438aca(0x1c2)],{'variant':'default','onClick':()=>_0x3d08ff[_0x438aca(0x270)](),'children':_0x438aca(0x1e1)})]});}function J(){const _0x5dac82=_0x3c9f75;return l[_0x5dac82(0x285)](l[_0x5dac82(0x1c0)],{'children':_0x5dac82(0x255)});}var K=Object[_0x3c9f75(0x27e)],z=(_0x122323,_0x4a3a1d,_0x5654f9,_0x1f682d)=>{const _0x42550c=_0x3c9f75;for(var _0x1a2ca2=_0x1f682d>0x1?void 0x0:_0x1f682d?K(_0x4a3a1d,_0x5654f9):_0x4a3a1d,_0x2167e8=_0x122323[_0x42550c(0x243)]-0x1,_0x549860;_0x2167e8>=0x0;_0x2167e8--)(_0x549860=_0x122323[_0x2167e8])&&(_0x1a2ca2=_0x549860(_0x1a2ca2)||_0x1a2ca2);return _0x1a2ca2;},L=(_0x12d32b,_0x178030)=>(_0x147b6d,_0x11846a)=>_0x178030(_0x147b6d,_0x11846a,_0x12d32b);exports[_0x3c9f75(0x23e)]=class extends o[_0x3c9f75(0x215)]{constructor(_0x2b60d0,_0x525e44){const _0x551f32=_0x3c9f75;super(),this[_0x551f32(0x204)]=_0x2b60d0,this['_uiPartsService']=_0x525e44,this[_0x551f32(0x20d)]();}[_0x3c9f75(0x20d)](){const _0x483e61=_0x3c9f75;this['disposeWithMe'](this['_uiPartsService'][_0x483e61(0x265)](p['BuiltInUIPart'][_0x483e61(0x1e9)],()=>p[_0x483e61(0x260)]($,this['_injector'])));}},exports[_0x3c9f75(0x23e)]=z([L(0x0,o['Inject'](o[_0x3c9f75(0x228)])),L(0x1,p[_0x3c9f75(0x233)])],exports[_0x3c9f75(0x23e)]);const Q=_0x3c9f75(0x21d),w={};function _0x1dd4(){const _0x49799f=['mask','subscribe','UNIVER_UNKNOWN','assign','SetScrollOperation','not-following','entries','_stopPresenting','colorChannel1','current','values','getOwnPropertyDescriptor','getInitialStates','_startFollowing','PRESENTING','status$','LiveShareService','_commandService','jsx','evenodd','UniverCollaborationClientPlugin','6232364bUbQjQ','stopFollowing','_status','then','trim','idle','dispose$','1em','_handleOperation','useRef','_handleNewChangeSets','pipe','_status$','data','_config','clsx','UniverIcon','toStringTag','tag','getUnitId','displayName','useState','path','onRendered','univer-mb-3\x20univer-w-full\x20univer-text-sm','Fragment','_startPresenting','Button','div','You\x27re\x20following\x20the\x20presenter','8zdmZmM','OFFLINE','forwardRef','5041629IQLYmp','next','has','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','Start','UNIVER_SHEET','offline','toDisposable','mutations','forEach','getTypeOfUnitDisposed$','_unitID','memberID','Module','onCommandExecuted','unsubscribe','DependentOn','defs','LIVESHARE_TERMINATE','sessionStatus$','asObservable','Stop\x20following','Subject','_reporters','SetWorksheetActiveOperation','Stop\x20presenting','IUniverInstanceService','SetZoomRatioOperation','map','getLiveShareCoordinator','jsxs','You\x27re\x20not\x20following\x20the\x20presenter','_liveShareService','HEADER_MENU','onStarting','LIVESHARE_OPERATION','SessionStatus','14326360XyTuhM','UNIVER_LIVE_SHARE_PLUGIN','set','IConfigService','setConfig','delete','CommandType','_init','http://www.w3.org/2000/svg','createInstance','DisposableCollection','registerSharedOperation','mergeOverrideWithDependencies','substring','LiveShareIcon','init','defineProperty','svg','idSuffix','UniverInstanceType','getValue','217HeIEyj','Inject','_injector','_startLiveShareCoordinator','url(#$1','You\x27re\x20presenting\x20the\x20document','_handleNewHost','_configService','FOLLOWING','CollaborationEvent','get','_mountLiveShare','reverse','Start\x20following','useEffect','univer-size-4','getConfig','_entities','end','Disposable','getLiveShareCoordinatorSync','0\x200\x2017\x2017','random','useDependency','live-share-icon','takeUntil','_collabSessionService','live-share.config','createElement','event$','dispose','getTypeOfUnitAdded$','use','requireSession','stringify','add','registerInitialStateReporter','presenter','Injector','complete','3716995CuCyzY','NOT_FOLLOWING','LIVESHARE_REQUEST_HOST','none','unitId','attrs','shouldShareOperation','LiveShareStatus','throttleTime','IUIPartsService','currentColor','ICommandService','startFollowing','_stopFollowing','509420eJgbCi','touchDependencies','_handleOffline','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','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','_presenter','DesktopLiveShareController','pluginName','sheet','send','parseProtocolChangeset','length','RxDisposable','symbol','LiveShare','_beIdle','BehaviorSubject','getMemberID','_commandDisposable','following','UniverLiveSharePlugin','presenting','Dropdown','parse','_collabSession','xlink:href','tryStartPresenting','executeCommand','useObservable','You\x27are\x20offline.','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','merge','LiveShareController','_sharedOperations','replace','_univerInstanceService','LIVESHARE_NEW_HOST','button','258324KakiyR','3MWYfVQ','connectInjector','params','getCurrentTypeOfUnit$','defIds','_handleOnline','registerComponent','LiveShareCoordinator','_fetchOperations','override','OPERATION','children','operations','1923972yLoOoz','IDLE','ONLINE','fill','stopPresenting','LIVESHARE_FETCH_OPERATIONS','SAME_OPERATION_SHARE_INTERVAL'];_0x1dd4=function(){return _0x49799f;};return _0x1dd4();}var X=Object[_0x3c9f75(0x27e)],ee=(_0x1a3029,_0x45d7a0,_0x5c5b85,_0x39398a)=>{const _0x25b373=_0x3c9f75;for(var _0x100e82=_0x39398a>0x1?void 0x0:_0x39398a?X(_0x45d7a0,_0x5c5b85):_0x45d7a0,_0x2ac963=_0x1a3029[_0x25b373(0x243)]-0x1,_0xc8f523;_0x2ac963>=0x0;_0x2ac963--)(_0xc8f523=_0x1a3029[_0x2ac963])&&(_0x100e82=_0xc8f523(_0x100e82)||_0x100e82);return _0x100e82;},te=(_0x4d093f,_0x13b1c4)=>(_0x3319ab,_0xd2848a)=>_0x13b1c4(_0x3319ab,_0xd2848a,_0x4d093f);let m=class extends o['Disposable']{constructor(_0x235d41){const _0x8eaace=_0x3c9f75;super(),this[_0x8eaace(0x1e8)]=_0x235d41,this[_0x8eaace(0x1f4)]();}['_init'](){const _0x36beb8=_0x3c9f75;[D[_0x36beb8(0x1e3)]['id'],D[_0x36beb8(0x277)]['id'],C[_0x36beb8(0x1e0)]['id']][_0x36beb8(0x1d1)](_0x5938e2=>{const _0x4f89d0=_0x36beb8;this['disposeWithMe'](this[_0x4f89d0(0x1e8)][_0x4f89d0(0x1f8)](_0x5938e2));});}};m=ee([te(0x0,o[_0x3c9f75(0x203)](E))],m);var ie=Object[_0x3c9f75(0x1fd)],se=Object[_0x3c9f75(0x27e)],ne=(_0x356561,_0x40c119,_0xe2a77a)=>_0x40c119 in _0x356561?ie(_0x356561,_0x40c119,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe2a77a}):_0x356561[_0x40c119]=_0xe2a77a,re=(_0x5a33a4,_0x7d37f9,_0x1c20ee,_0x37f3cc)=>{const _0x520dd5=_0x3c9f75;for(var _0x248ff4=_0x37f3cc>0x1?void 0x0:_0x37f3cc?se(_0x7d37f9,_0x1c20ee):_0x7d37f9,_0x53e35b=_0x5a33a4[_0x520dd5(0x243)]-0x1,_0x5c231c;_0x53e35b>=0x0;_0x53e35b--)(_0x5c231c=_0x5a33a4[_0x53e35b])&&(_0x248ff4=_0x5c231c(_0x248ff4)||_0x248ff4);return _0x248ff4;},N=(_0x51446a,_0x36087a)=>(_0x3d966e,_0x1b1d8e)=>_0x36087a(_0x3d966e,_0x1b1d8e,_0x51446a),A=(_0x2c52b8,_0x3aa468,_0x32d8c1)=>ne(_0x2c52b8,typeof _0x3aa468!=_0x3c9f75(0x245)?_0x3aa468+'':_0x3aa468,_0x32d8c1);const oe=_0x3c9f75(0x1ee);exports[_0x3c9f75(0x24c)]=class extends o['Plugin']{constructor(_0x1a744d=w,_0x12d257,_0x1595ab){const _0x59568e=_0x3c9f75;super(),this[_0x59568e(0x296)]=_0x1a744d,this[_0x59568e(0x204)]=_0x12d257,this[_0x59568e(0x209)]=_0x1595ab;const {..._0x4916e9}=o[_0x59568e(0x257)]({},w,this[_0x59568e(0x296)]);this[_0x59568e(0x209)][_0x59568e(0x1f1)](Q,_0x4916e9);}[_0x3c9f75(0x1ea)](){const _0x39dd67=_0x3c9f75;o['registerDependencies'](this[_0x39dd67(0x204)],o[_0x39dd67(0x1f9)]([[E],[exports[_0x39dd67(0x258)]],[m],[exports[_0x39dd67(0x23e)]]],this[_0x39dd67(0x296)][_0x39dd67(0x268)])),o[_0x39dd67(0x239)](this[_0x39dd67(0x204)],[[m]]);}[_0x3c9f75(0x1be)](){const _0x556149=_0x3c9f75;o[_0x556149(0x239)](this[_0x556149(0x204)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x3c9f75(0x24c)],'type',o[_0x3c9f75(0x200)][_0x3c9f75(0x275)]),A(exports[_0x3c9f75(0x24c)],_0x3c9f75(0x23f),oe),exports[_0x3c9f75(0x24c)]=re([o[_0x3c9f75(0x1d8)](b[_0x3c9f75(0x287)]),N(0x1,o['Inject'](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x3c9f75(0x24c)]),exports[_0x3c9f75(0x246)]=$,exports[_0x3c9f75(0x283)]=E,exports[_0x3c9f75(0x231)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xdec3d=_0x41f0;(function(_0x154676,_0x52e1c2){const _0x27fa8e=_0x41f0,_0x1fd54c=_0x154676();while(!![]){try{const _0x56be66=parseInt(_0x27fa8e(0x14f))/0x1+parseInt(_0x27fa8e(0x15a))/0x2+-parseInt(_0x27fa8e(0x150))/0x3*(-parseInt(_0x27fa8e(0x15f))/0x4)+-parseInt(_0x27fa8e(0x155))/0x5*(parseInt(_0x27fa8e(0x15c))/0x6)+-parseInt(_0x27fa8e(0x151))/0x7+parseInt(_0x27fa8e(0x146))/0x8+-parseInt(_0x27fa8e(0x162))/0x9;if(_0x56be66===_0x52e1c2)break;else _0x1fd54c['push'](_0x1fd54c['shift']());}catch(_0x5e0256){_0x1fd54c['push'](_0x1fd54c['shift']());}}}(_0x5126,0xc1887));function _0x41f0(_0x44ea44,_0x5cbd75){_0x44ea44=_0x44ea44-0x143;const _0x5126fb=_0x5126();let _0x41f08c=_0x5126fb[_0x44ea44];return _0x41f08c;}import{LiveShareController as _0x3c6283,LiveShareStatus as _0x5ce499}from'@univerjs-pro/live-share';function _0x5126(){const _0x5ec4a5=['PRESENTING','1409934MqEmQy','886194bjFicO','6647116WdeAOD','getSheetId','startColumn','startFollowing','124520fqgvfM','syncExecuteCommand','stopFollowing','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','2812896zVyZEM','stopPresenting','372azBYjC','tryStartPresenting','get','12MROtiH','getUnitId','_initialize','11722653TjMiOC','getActiveWorkbook','getActiveSheet','getId','7090304XGhsmN','extend','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startPresenting','_commandService','_injector','getRenderById'];_0x5126=function(){return _0x5ec4a5;};return _0x5126();}import{IRenderManagerService as _0x1be804}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3bc398}from'@univerjs/sheets';import{SetScrollOperation as _0x56e6db}from'@univerjs/sheets-ui';import{FRange as _0x335293}from'@univerjs/sheets/facade';import{FUniver as _0x451090,FEnum as _0xf8fd90}from'@univerjs/core/facade';class I extends _0x335293{[_0xdec3d(0x161)](_0x3ec33d,_0x563e98,_0x17db44,_0x28b84d,_0x34ec08){const _0x16156c=_0xdec3d,_0x17ed33=_0x3ec33d['get'](_0x3c6283),_0x2d9304=_0x3ec33d[_0x16156c(0x15e)](_0x1be804),_0x3c3e74=_0x563e98['getUnitId'](),_0x1cee4e=_0x563e98[_0x16156c(0x144)](),_0x769ff7=_0x17ed33[_0x16156c(0x159)](_0x3c3e74);(_0x769ff7==null?void 0x0:_0x769ff7['getStatus']())!==_0x5ce499[_0x16156c(0x14e)]||(_0x17db44[_0x16156c(0x152)]()!==_0x1cee4e[_0x16156c(0x152)]()&&this[_0x16156c(0x14b)]['executeCommand'](_0x3bc398['id'],{'unitId':_0x3c3e74,'subUnitId':_0x17db44[_0x16156c(0x152)]()}),!_0x2d9304[_0x16156c(0x14d)](_0x3c3e74))||_0x34ec08[_0x16156c(0x156)](_0x56e6db['id'],{'unitId':_0x563e98[_0x16156c(0x160)](),'sheetId':_0x17db44[_0x16156c(0x152)](),'sheetViewStartRow':_0x28b84d[_0x16156c(0x148)],'sheetViewStartColumn':_0x28b84d[_0x16156c(0x153)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x335293[_0xdec3d(0x147)](I);class m extends _0x451090{['getLiveShareStatus'](){const _0x23e4df=_0xdec3d;var _0x12f450,_0x56155f;const _0x410559=this['_injector']['get'](_0x3c6283),_0x4d8018=(_0x12f450=this[_0x23e4df(0x143)]())==null?void 0x0:_0x12f450[_0x23e4df(0x145)]();if(!_0x4d8018)throw new Error(_0x23e4df(0x158));const _0x3c46cc=_0x410559[_0x23e4df(0x159)](_0x4d8018);return(_0x56155f=_0x3c46cc==null?void 0x0:_0x3c46cc['getStatus']())!=null?_0x56155f:_0x5ce499['IDLE'];}[_0xdec3d(0x154)](){const _0x3a852a=_0xdec3d;var _0x5bd449;const _0x421eaf=this['_injector'][_0x3a852a(0x15e)](_0x3c6283),_0x1c5aff=(_0x5bd449=this['getActiveWorkbook']())==null?void 0x0:_0x5bd449[_0x3a852a(0x145)]();if(!_0x1c5aff)throw new Error('No\x20active\x20workbook\x20found.');const _0x14b2b=_0x421eaf['getLiveShareCoordinatorSync'](_0x1c5aff);if(!_0x14b2b)throw new Error(_0x3a852a(0x149));_0x14b2b[_0x3a852a(0x154)]();}[_0xdec3d(0x157)](){const _0x3844cf=_0xdec3d;var _0x288dde;const _0x1fe75b=this['_injector'][_0x3844cf(0x15e)](_0x3c6283),_0x5a84f4=(_0x288dde=this[_0x3844cf(0x143)]())==null?void 0x0:_0x288dde['getId']();if(!_0x5a84f4)throw new Error(_0x3844cf(0x158));const _0x56e10a=_0x1fe75b[_0x3844cf(0x159)](_0x5a84f4);if(!_0x56e10a)throw new Error(_0x3844cf(0x149));_0x56e10a[_0x3844cf(0x157)]();}[_0xdec3d(0x14a)](){const _0x5b8bd4=_0xdec3d;var _0x2fd7ff;const _0x1f5051=this['_injector'][_0x5b8bd4(0x15e)](_0x3c6283),_0x3cda5b=(_0x2fd7ff=this['getActiveWorkbook']())==null?void 0x0:_0x2fd7ff[_0x5b8bd4(0x145)]();if(!_0x3cda5b)throw new Error(_0x5b8bd4(0x158));const _0x28866b=_0x1f5051[_0x5b8bd4(0x159)](_0x3cda5b);if(!_0x28866b)throw new Error(_0x5b8bd4(0x149));_0x28866b[_0x5b8bd4(0x15d)]();}[_0xdec3d(0x15b)](){const _0x290065=_0xdec3d;var _0x50b3cb;const _0x539995=this[_0x290065(0x14c)][_0x290065(0x15e)](_0x3c6283),_0x2c2301=(_0x50b3cb=this[_0x290065(0x143)]())==null?void 0x0:_0x50b3cb[_0x290065(0x145)]();if(!_0x2c2301)throw new Error(_0x290065(0x158));const _0xd59531=_0x539995[_0x290065(0x159)](_0x2c2301);if(!_0xd59531)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xd59531['stopPresenting']();}}_0x451090[_0xdec3d(0x147)](m);class C extends _0xf8fd90{get['LiveShareStatusEnum'](){return _0x5ce499;}}_0xf8fd90['extend'](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x480de2=_0x3214;(function(_0x5b4f45,_0x275d27){const _0x10c06c=_0x3214,_0x4efa24=_0x5b4f45();while(!![]){try{const _0x31c00a=-parseInt(_0x10c06c(0xbb))/0x1*(-parseInt(_0x10c06c(0x10f))/0x2)+-parseInt(_0x10c06c(0xda))/0x3+-parseInt(_0x10c06c(0xbd))/0x4+-parseInt(_0x10c06c(0x117))/0x5*(-parseInt(_0x10c06c(0xfc))/0x6)+parseInt(_0x10c06c(0x8c))/0x7*(-parseInt(_0x10c06c(0x84))/0x8)+-parseInt(_0x10c06c(0x121))/0x9+parseInt(_0x10c06c(0x92))/0xa*(parseInt(_0x10c06c(0xae))/0xb);if(_0x31c00a===_0x275d27)break;else _0x4efa24['push'](_0x4efa24['shift']());}catch(_0x37728f){_0x4efa24['push'](_0x4efa24['shift']());}}}(_0x4f88,0x81f47));var J=Object['defineProperty'],K=(_0x461ca2,_0x4fd856,_0x413d35)=>_0x4fd856 in _0x461ca2?J(_0x461ca2,_0x4fd856,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413d35}):_0x461ca2[_0x4fd856]=_0x413d35,u=(_0x5b1943,_0x3e3b9e,_0x253d78)=>K(_0x5b1943,typeof _0x3e3b9e!=_0x480de2(0x106)?_0x3e3b9e+'':_0x3e3b9e,_0x253d78);import{Disposable as _0x445766,toDisposable as _0x5b0e28,IUniverInstanceService as _0x59e319,Inject as _0x31d8e9,Injector as _0x4d1ef7,IConfigService as _0xea2396,ICommandService as _0x358f4b,RxDisposable as _0x22ff37,UniverInstanceType as _0x1e0e7d,DisposableCollection as _0xb8bf1f,CommandType as _0x2baff1,DependentOn as _0x2532bd,Plugin as _0x218f1f,merge as _0x477aae,registerDependencies as _0xaed711,mergeOverrideWithDependencies as _0xb0235f,touchDependencies as _0xd465dc}from'@univerjs/core';import{useDependency as _0x5b95cb,useObservable as _0x477adc,IUIPartsService as _0x1618ae,BuiltInUIPart as _0x589e20,connectInjector as _0x2bfcca}from'@univerjs/ui';import{jsx as _0x4f48f3,jsxs as _0x4070ad,Fragment as _0x5480f9}from'react/jsx-runtime';import{Dropdown as _0x43303b,clsx as _0x219d87,Button as _0x5f10a4}from'@univerjs/design';import{useRef as _0x2d1821,createElement as _0x4e41ac,forwardRef as _0x46ea63,useState as _0x3126fc,useEffect as _0x42fb54}from'react';import{CollaborationEvent as _0x5cbca8,parseProtocolChangeset as _0x432e75}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x23bc86,SessionStatus as _0x1d465d,UniverCollaborationClientPlugin as _0x1e0ea8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x29dcc9,SetWorksheetActiveOperation as _0x42d600}from'@univerjs/sheets';import{BehaviorSubject as _0x2d7f44,Subject as _0x35191d}from'rxjs';import{takeUntil as _0x227b42,throttleTime as _0x55381b}from'rxjs/operators';import{SetZoomRatioOperation as _0xee7cd,SetScrollOperation as _0x504137}from'@univerjs/sheets-ui';function k({ref:_0x1f377f,..._0x2b47fb}){const _0x59af70=_0x480de2,{icon:_0x39cd92,id:_0xa0f525,className:_0x4aa8ae,extend:_0x336fd9,..._0x504ac5}=_0x2b47fb,_0xbc87d8=(_0x59af70(0xa0)+_0xa0f525+'\x20'+(_0x4aa8ae||''))[_0x59af70(0xc9)](),_0x3ecab3=_0x2d1821('_'+Oe());return G(_0x39cd92,''+_0xa0f525,{'defIds':_0x39cd92['defIds'],'idSuffix':_0x3ecab3[_0x59af70(0x107)]},{'ref':_0x1f377f,'className':_0xbc87d8,..._0x504ac5},_0x336fd9);}function G(_0x8e1b9e,_0x4d9c84,_0x12c0b1,_0x4d9bee,_0x2a75a1){const _0x33094c=_0x480de2;return _0x4e41ac(_0x8e1b9e['tag'],{'key':_0x4d9c84,...be(_0x8e1b9e,_0x12c0b1,_0x2a75a1),..._0x4d9bee},(Ee(_0x8e1b9e,_0x12c0b1)[_0x33094c(0xb8)]||[])[_0x33094c(0x119)]((_0x451e06,_0x4c8de1)=>G(_0x451e06,_0x4d9c84+'-'+_0x8e1b9e[_0x33094c(0xf2)]+'-'+_0x4c8de1,_0x12c0b1,void 0x0,_0x2a75a1)));}function be(_0x16dc26,_0x2470f7,_0x4b0b64){const _0x37b053=_0x480de2,_0x3ba049={..._0x16dc26[_0x37b053(0xc5)]};_0x4b0b64!=null&&_0x4b0b64[_0x37b053(0xd9)]&&_0x3ba049[_0x37b053(0x112)]===_0x37b053(0xd9)&&(_0x3ba049['fill']=_0x4b0b64[_0x37b053(0xd9)]),_0x16dc26[_0x37b053(0xf2)]===_0x37b053(0xbe)&&_0x3ba049['id']&&(_0x3ba049['id']=_0x3ba049['id']+_0x2470f7['idSuffix']),Object[_0x37b053(0x11b)](_0x3ba049)[_0x37b053(0x11d)](([_0x5e987c,_0x16d5a5])=>{const _0x4f4e2b=_0x37b053;_0x5e987c==='mask'&&typeof _0x16d5a5==_0x4f4e2b(0x8f)&&(_0x3ba049[_0x5e987c]=_0x16d5a5[_0x4f4e2b(0xc4)](/url\(#(.*)\)/,_0x4f4e2b(0xaa)+_0x2470f7[_0x4f4e2b(0xef)]+')'));});const {defIds:_0x288fc2}=_0x2470f7;return!_0x288fc2||_0x288fc2[_0x37b053(0xbf)]===0x0||(_0x16dc26['tag']==='use'&&_0x3ba049[_0x37b053(0xab)]&&(_0x3ba049['xlink:href']=_0x3ba049['xlink:href']+_0x2470f7[_0x37b053(0xef)]),Object[_0x37b053(0x11b)](_0x3ba049)[_0x37b053(0x11d)](([_0x52a9f0,_0x2196f9])=>{const _0x2e47d9=_0x37b053;typeof _0x2196f9==_0x2e47d9(0x8f)&&(_0x3ba049[_0x52a9f0]=_0x2196f9[_0x2e47d9(0xc4)](/url\(#(.*)\)/,_0x2e47d9(0xaa)+_0x2470f7['idSuffix']+')'));})),_0x3ba049;}function _0x4f88(){const _0x44b2af=['univer-size-4','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','_fetchOperations','_commandService','pipe','getInitialStates','currentColor','end','LIVESHARE_NEW_HOST','registerComponent','_handleOnline','colorChannel1','2916078oYCONN','_status','Stop\x20following','_stopPresenting','You\x27re\x20presenting\x20the\x20document','path','_unitID','disposeWithMe','div','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','LIVESHARE_OPERATION','_status$','_liveShareService','Present\x20this\x20document','shouldShareOperation','has','Stop\x20presenting','UNIVER_SHEET','dispose$','PRESENTING','_startFollowing','idSuffix','UniverIcon','NEW_CHANGESETS','tag','LIVESHARE_TERMINATE','getLiveShareCoordinator','requireSession','_startPresenting','OFFLINE','LiveShareIcon','You\x27are\x20offline.','_configService','_univerInstanceService','28746NtXJEV','dispose','delete','idle','sessionStatus$','event$','_injector','getOwnPropertyDescriptor','none','IDLE','symbol','current','defineProperty','stopFollowing','HEADER_MENU','_handleOperation','setConfig','1em','_reporters','2638JazVTb','assign','defs','fill','type','subscribe','LIVESHARE_REQUEST_HOST','stringify','435lgdCCJ','_handleOffline','map','includes','entries','live-share-icon','forEach','_stopFollowing','_commandDisposable','following','8406279PXjokW','_startLiveShareCoordinator','getUnitId','executeCommand','toString','_uiPartsService','startFollowing','_init','37096NHKPto','init','onStarting','evenodd','_entities','presenting','_collabSessionService','univer-mb-3\x20univer-w-full\x20univer-text-sm','287bLhYqU','OPERATION','live-share.config','string','Start\x20following','FOLLOWING','6230bZgPbI','_config','svg','send','_beIdle','Start','params','tryStartPresenting','not-following','getTypeOfUnitDisposed$','getConfig','getTypeOfUnitAdded$','sheet','data','univerjs-icon\x20univerjs-icon-','UNIVER_UNKNOWN','pluginName','onCommandExecuted','get','next','_mountLiveShare','getLiveShareCoordinatorSync','complete','offline','url(#$1','xlink:href','_presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','40304BMcGXR','reverse','stopPresenting','add','NOT_FOLLOWING','displayName','_handleNewHost','unitId','registerSharedOperation','_handleTerminate','children','getMemberID','from','31pQmyzD','_sharedOperations','447636cnNcDg','mask','length','getValue','set','onRendered','asObservable','replace','attrs','presenter','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','getCurrentTypeOfUnit$','trim','SAME_OPERATION_SHARE_INTERVAL','override','_collabSession','status$'];_0x4f88=function(){return _0x44b2af;};return _0x4f88();}function Ee(_0x3b253d,_0x1a020c){const _0xb4951d=_0x480de2;var _0x253c02;const {defIds:_0x210575}=_0x1a020c;return!_0x210575||_0x210575['length']===0x0?_0x3b253d:_0x3b253d['tag']===_0xb4951d(0x111)&&((_0x253c02=_0x3b253d[_0xb4951d(0xb8)])!=null&&_0x253c02['length'])?{..._0x3b253d,'children':_0x3b253d[_0xb4951d(0xb8)][_0xb4951d(0x119)](_0xbea93e=>typeof _0xbea93e[_0xb4951d(0xc5)]['id']==_0xb4951d(0x8f)&&_0x210575&&_0x210575[_0xb4951d(0x11a)](_0xbea93e['attrs']['id'])?{..._0xbea93e,'attrs':{..._0xbea93e[_0xb4951d(0xc5)],'id':_0xbea93e[_0xb4951d(0xc5)]['id']+_0x1a020c[_0xb4951d(0xef)]}}:_0xbea93e)}:_0x3b253d;}function Oe(){const _0x18f0fe=_0x480de2;return Math['random']()[_0x18f0fe(0x80)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x480de2(0xf0);const we={'tag':_0x480de2(0x94),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x480de2(0x104),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x480de2(0x10d)},'children':[{'tag':_0x480de2(0xdf),'attrs':{'fill':_0x480de2(0xd4),'d':_0x480de2(0xcf)}},{'tag':'path','attrs':{'fill':_0x480de2(0xd4),'d':_0x480de2(0xe3),'fillRule':'evenodd','clipRule':_0x480de2(0x87)}}]},W=_0x46ea63(function(_0x3df12e,_0x413554){const _0x4cba78=_0x480de2;return _0x4e41ac(k,Object[_0x4cba78(0x110)]({},_0x3df12e,{'id':_0x4cba78(0x11c),'ref':_0x413554,'icon':we}));});W[_0x480de2(0xb3)]=_0x480de2(0xf8);class L extends _0x445766{constructor(){const _0x2f1256=_0x480de2;super(...arguments),u(this,_0x2f1256(0xbc),new Set()),u(this,_0x2f1256(0x10e),new Set());}['registerSharedOperation'](_0x9e9e4d){const _0x10aa7c=_0x480de2;return this['_sharedOperations'][_0x10aa7c(0xb1)](_0x9e9e4d),_0x5b0e28(()=>this[_0x10aa7c(0xbc)]['delete'](_0x9e9e4d));}['registerInitialStateReporter'](_0x260e19){const _0x2aecc4=_0x480de2;return this['_reporters'][_0x2aecc4(0xb1)](_0x260e19),_0x5b0e28(()=>this[_0x2aecc4(0x10e)][_0x2aecc4(0xfe)](_0x260e19));}['shouldShareOperation'](_0x2c5c2a){const _0x442917=_0x480de2;return this['_sharedOperations'][_0x442917(0xe9)](_0x2c5c2a);}['getInitialStates'](_0x1c0749){const _0x233238=_0x480de2;return Array[_0x233238(0xba)](this['_reporters'])[_0x233238(0x119)](_0x352188=>_0x352188(_0x1c0749));}}var Ne=Object[_0x480de2(0x103)],Y=(_0x478bc7,_0x580242,_0x5199e8,_0x1b7626)=>{const _0x58404b=_0x480de2;for(var _0x2b03cb=_0x1b7626>0x1?void 0x0:_0x1b7626?Ne(_0x580242,_0x5199e8):_0x580242,_0x49e4fc=_0x478bc7[_0x58404b(0xbf)]-0x1,_0x2a0e1e;_0x49e4fc>=0x0;_0x49e4fc--)(_0x2a0e1e=_0x478bc7[_0x49e4fc])&&(_0x2b03cb=_0x2a0e1e(_0x2b03cb)||_0x2b03cb);return _0x2b03cb;},_=(_0x1ee860,_0x48db45)=>(_0xa68f8c,_0x30646c)=>_0x48db45(_0xa68f8c,_0x30646c,_0x1ee860);let S=class extends _0x22ff37{constructor(_0x53007f,_0x36da91,_0x3de8a0){const _0x3824a1=_0x480de2;super(),u(this,_0x3824a1(0x88),new Map()),(this['_univerInstanceService']=_0x53007f,this['_injector']=_0x36da91,this[_0x3824a1(0x8a)]=_0x3de8a0,this['_init']());}async[_0x480de2(0xf4)](_0xdeef36){const _0x42f639=_0x480de2;return this[_0x42f639(0x88)][_0x42f639(0xe9)](_0xdeef36)||await this[_0x42f639(0x7d)](_0xdeef36),this[_0x42f639(0x88)][_0x42f639(0xa4)](_0xdeef36);}[_0x480de2(0xa7)](_0x3f6404){const _0x23f827=_0x480de2;var _0x1f01d4;return(_0x1f01d4=this['_entities'][_0x23f827(0xa4)](_0x3f6404))!=null?_0x1f01d4:null;}[_0x480de2(0x83)](){const _0x404733=_0x480de2;this[_0x404733(0xfb)][_0x404733(0x9d)](_0x1e0e7d[_0x404733(0xeb)])[_0x404733(0xd2)](_0x227b42(this['dispose$']))[_0x404733(0x114)](async _0x14f98f=>{const _0x25cae0=_0x404733,_0x5a31d4=_0x14f98f[_0x25cae0(0x7e)]();this['_entities'][_0x25cae0(0xe9)](_0x5a31d4)||this[_0x25cae0(0x7d)](_0x5a31d4);}),this['_univerInstanceService'][_0x404733(0x9b)](_0x1e0e7d[_0x404733(0xeb)])['pipe'](_0x227b42(this[_0x404733(0xec)]))[_0x404733(0x114)](_0x4d2dba=>{const _0x423f18=_0x404733,_0x66f1aa=_0x4d2dba[_0x423f18(0x7e)](),_0x1cc2c8=this[_0x423f18(0x88)]['get'](_0x66f1aa);_0x1cc2c8==null||_0x1cc2c8[_0x423f18(0xfd)]();});}async[_0x480de2(0x7d)](_0x23d24e){const _0x492e3a=_0x480de2,_0x56c05a=await this['_collabSessionService'][_0x492e3a(0xf5)](_0x23d24e),_0x1a44db=this[_0x492e3a(0x102)]['createInstance'](N,_0x23d24e,_0x56c05a);return _0x1a44db[_0x492e3a(0x85)](),this['_entities'][_0x492e3a(0xc1)](_0x23d24e,_0x1a44db),_0x1a44db;}};S=Y([_(0x0,_0x59e319),_(0x1,_0x31d8e9(_0x4d1ef7)),_(0x2,_0x31d8e9(_0x23bc86))],S);function _0x3214(_0x429c19,_0x580096){const _0x4f88eb=_0x4f88();return _0x3214=function(_0x32142e,_0x5e2814){_0x32142e=_0x32142e-0x7d;let _0x29b6e5=_0x4f88eb[_0x32142e];return _0x29b6e5;},_0x3214(_0x429c19,_0x580096);}var c=(_0x2250b0=>(_0x2250b0[_0x480de2(0xf7)]=_0x480de2(0xa9),_0x2250b0[_0x480de2(0x105)]=_0x480de2(0xff),_0x2250b0[_0x480de2(0x91)]=_0x480de2(0x120),_0x2250b0[_0x480de2(0xb2)]=_0x480de2(0x9a),_0x2250b0[_0x480de2(0xed)]='presenting',_0x2250b0))(c||{});const Ce=_0x480de2(0xca),De=0xc8;let N=class extends _0x22ff37{constructor(_0x3b1a1f,_0x17a899,_0x2677f2,_0x3f583b,_0x14b480){const _0x28d07f=_0x480de2;super(),u(this,'_status$',new _0x2d7f44('idle')),u(this,_0x28d07f(0xcd),this['_status$'][_0x28d07f(0xc3)]()),u(this,_0x28d07f(0x83),!0x1),u(this,_0x28d07f(0x11f),null),u(this,_0x28d07f(0xac),null),(this['_unitID']=_0x3b1a1f,this['_collabSession']=_0x17a899,this['_configService']=_0x2677f2,this[_0x28d07f(0xe6)]=_0x3f583b,this[_0x28d07f(0xd1)]=_0x14b480);}get['_status'](){const _0x1ac7d3=_0x480de2;return this[_0x1ac7d3(0xe5)][_0x1ac7d3(0xc0)]();}['dispose'](){const _0x5e09fc=_0x480de2;var _0x27a031;(_0x27a031=this['_commandDisposable'])==null||_0x27a031['dispose'](),this[_0x5e09fc(0xe5)][_0x5e09fc(0xa5)](_0x5e09fc(0xff)),this[_0x5e09fc(0xe5)][_0x5e09fc(0xa8)]();}['getStatus'](){const _0x5cdc36=_0x480de2;return this[_0x5cdc36(0xdb)];}[_0x480de2(0x85)](){const _0x4ed8f1=_0x480de2;this[_0x4ed8f1(0x83)]||(this[_0x4ed8f1(0x83)]=!0x0,this['_collabSession'][_0x4ed8f1(0x100)][_0x4ed8f1(0xd2)](_0x227b42(this[_0x4ed8f1(0xec)]))[_0x4ed8f1(0x114)](_0x55d50c=>{const _0x385180=_0x4ed8f1;switch(_0x55d50c){case _0x1d465d['OFFLINE']:this['_handleOffline']();break;case _0x1d465d['ONLINE']:this[_0x385180(0xd8)]();break;}}),this[_0x4ed8f1(0xcc)][_0x4ed8f1(0x101)][_0x4ed8f1(0xd2)](_0x227b42(this[_0x4ed8f1(0xec)]))[_0x4ed8f1(0x114)](_0x1de0f2=>{const _0x217b39=_0x4ed8f1,{eventID:_0x1bf5a4}=_0x1de0f2;switch(_0x1bf5a4){case _0x5cbca8[_0x217b39(0xd6)]:this[_0x217b39(0xb4)](_0x1de0f2);break;case _0x5cbca8[_0x217b39(0xe4)]:this[_0x217b39(0x10b)](_0x1de0f2);break;case _0x5cbca8[_0x217b39(0xf3)]:this[_0x217b39(0xb7)]();break;case _0x5cbca8[_0x217b39(0xf1)]:this['_handleNewChangeSets'](_0x1de0f2);break;}}));}[_0x480de2(0x99)](){const _0x1361b4=_0x480de2;this[_0x1361b4(0xcc)]['send']({'eventID':_0x5cbca8[_0x1361b4(0x115)],'data':{'unitID':this[_0x1361b4(0xe0)],'userID':this[_0x1361b4(0xcc)][_0x1361b4(0xb9)]()}},this['_unitID']);}[_0x480de2(0xb0)](){const _0x372e5c=_0x480de2;this[_0x372e5c(0xdb)]==='presenting'&&(this[_0x372e5c(0xe5)][_0x372e5c(0xa5)]('idle'),this[_0x372e5c(0xcc)][_0x372e5c(0x95)]({'eventID':_0x5cbca8[_0x372e5c(0xf3)],'data':{'unitID':this[_0x372e5c(0xe0)]}},this[_0x372e5c(0xe0)]));}[_0x480de2(0x82)](){const _0xc43a56=_0x480de2;this[_0xc43a56(0xdb)]===_0xc43a56(0x9a)&&(this[_0xc43a56(0xe5)]['next'](_0xc43a56(0x120)),this[_0xc43a56(0xee)]());}[_0x480de2(0x109)](){const _0x244dc1=_0x480de2;this['_status']===_0x244dc1(0x120)&&this[_0x244dc1(0x11e)]();}[_0x480de2(0xb4)](_0x5a0ec2){const _0x140271=_0x480de2,{presenter:_0x3208f0}=_0x5a0ec2['data'],_0x5bc018=this[_0x140271(0xcc)][_0x140271(0xb9)]();this[_0x140271(0xac)]=_0x3208f0,_0x3208f0===_0x5bc018?(this[_0x140271(0x11e)](),this[_0x140271(0xf6)]()):this[_0x140271(0xdb)]!==_0x140271(0x9a)&&(this[_0x140271(0xdd)](),this[_0x140271(0xee)]());}[_0x480de2(0xd0)](){const _0x5f54f6=_0x480de2,_0x4995df={'eventID':_0x5cbca8['LIVESHARE_FETCH_OPERATIONS']};this[_0x5f54f6(0xcc)][_0x5f54f6(0x95)](_0x4995df,this[_0x5f54f6(0xe0)]);}[_0x480de2(0xb7)](){const _0x49b11b=_0x480de2;this[_0x49b11b(0xac)]=null,this[_0x49b11b(0xdb)]!==_0x49b11b(0x89)&&this[_0x49b11b(0x96)]();}['_handleNewChangeSets'](_0x1b7096){const _0x153f42=_0x480de2;if(this[_0x153f42(0xdb)]===_0x153f42(0x120)&&this[_0x153f42(0xac)]===_0x1b7096['data']['memberID']){const _0x34503f=_0x432e75(_0x1b7096[_0x153f42(0x9f)])['mutations'][_0x153f42(0xaf)]()['find'](_0x7afcd8=>_0x7afcd8['id']===_0x29dcc9['id']);if(_0x34503f){const _0x4ba76b=_0x34503f[_0x153f42(0x98)][_0x153f42(0xb5)],_0x15dba1=_0x34503f[_0x153f42(0x98)][_0x153f42(0x9e)]['id'];setTimeout(()=>{const _0x2ecaf5=_0x153f42;this['_commandService'][_0x2ecaf5(0x7f)](_0x42d600['id'],{'unitId':_0x4ba76b,'subUnitId':_0x15dba1},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x177141=_0x480de2;this['_status$']['next'](_0x177141(0x89));const _0x39f6be=new Map(),_0x3ff90b=this['_commandDisposable']=new _0xb8bf1f();_0x3ff90b[_0x177141(0xb1)](_0x5b0e28(()=>{_0x39f6be['forEach'](_0x293cd6=>_0x293cd6['complete']()),_0x39f6be['clear']();})),_0x3ff90b[_0x177141(0xb1)](this[_0x177141(0xd1)][_0x177141(0xa3)](_0x381eea=>{const _0x4a017b=_0x177141;var _0x4c0798;if(_0x381eea[_0x4a017b(0x113)]!==_0x2baff1[_0x4a017b(0x8d)]||!this['_liveShareService'][_0x4a017b(0xe8)](_0x381eea['id']))return;const {id:_0x520a4d}=_0x381eea;let _0x4f3b76;_0x39f6be['has'](_0x520a4d)?_0x4f3b76=_0x39f6be[_0x4a017b(0xa4)](_0x520a4d):(_0x4f3b76=new _0x35191d(),_0x39f6be[_0x4a017b(0xc1)](_0x520a4d,_0x4f3b76),_0x4f3b76[_0x4a017b(0xd2)](_0x55381b((_0x4c0798=this['_configService'][_0x4a017b(0x9c)](Ce))!=null?_0x4c0798:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a017b(0x114)](_0x26fda9=>{const _0x3bd224=_0x4a017b;this[_0x3bd224(0xcc)]['send']({'eventID':_0x5cbca8[_0x3bd224(0xe4)],'data':{'unitID':this[_0x3bd224(0xe0)],'operations':{[_0x26fda9['id']]:{'id':_0x26fda9['id'],'params':JSON[_0x3bd224(0x116)](_0x26fda9[_0x3bd224(0x98)])}}}},this[_0x3bd224(0xe0)]);})),_0x4f3b76['next'](_0x381eea);})),this[_0x177141(0xe6)][_0x177141(0xd3)](this[_0x177141(0xe0)])[_0x177141(0x11d)](_0x21f65b=>this[_0x177141(0xcc)][_0x177141(0x95)]({'eventID':_0x5cbca8[_0x177141(0xe4)],'data':{'unitID':this[_0x177141(0xe0)],'operations':{[_0x21f65b['id']]:{'id':_0x21f65b['id'],'params':JSON[_0x177141(0x116)](_0x21f65b['params'])}}}},this[_0x177141(0xe0)]));}[_0x480de2(0xdd)](){const _0x4cf352=_0x480de2;var _0xbf5732;this[_0x4cf352(0xe5)][_0x4cf352(0xa5)](_0x4cf352(0xff)),(_0xbf5732=this[_0x4cf352(0x11f)])==null||_0xbf5732[_0x4cf352(0xfd)](),this['_commandDisposable']=null;}[_0x480de2(0xee)](){const _0x21eac1=_0x480de2;var _0x50bcac;(_0x50bcac=this['_commandDisposable'])==null||_0x50bcac[_0x21eac1(0xfd)](),this[_0x21eac1(0xe5)][_0x21eac1(0xa5)](_0x21eac1(0x120));}['_beIdle'](){const _0x2a0fd7=_0x480de2;var _0x24cd7a;this[_0x2a0fd7(0xe5)][_0x2a0fd7(0xa5)]('idle'),(_0x24cd7a=this[_0x2a0fd7(0x11f)])==null||_0x24cd7a[_0x2a0fd7(0xfd)](),this[_0x2a0fd7(0x11f)]=null;}[_0x480de2(0x11e)](){const _0x98543e=_0x480de2;var _0x4bf86b;this[_0x98543e(0xe5)][_0x98543e(0xa5)](_0x98543e(0x9a)),(_0x4bf86b=this[_0x98543e(0x11f)])==null||_0x4bf86b[_0x98543e(0xfd)]();}[_0x480de2(0x10b)](_0x58c3f4){const _0x3a4f0c=_0x480de2;if(['presenting',_0x3a4f0c(0x9a),_0x3a4f0c(0xa9)][_0x3a4f0c(0x11a)](this[_0x3a4f0c(0xdb)])||!_0x58c3f4[_0x3a4f0c(0x9f)][_0x3a4f0c(0xc6)]||_0x58c3f4[_0x3a4f0c(0x9f)][_0x3a4f0c(0xc6)]===this[_0x3a4f0c(0xcc)][_0x3a4f0c(0xb9)]())return;this[_0x3a4f0c(0xdb)]===_0x3a4f0c(0xff)&&this[_0x3a4f0c(0xee)]();const _0x2d886e=_0x58c3f4[_0x3a4f0c(0x9f)]['operations'];Object['values'](_0x2d886e)[_0x3a4f0c(0x11d)](_0x16922f=>{const _0x23ed7c=_0x3a4f0c;this['_commandService']['executeCommand'](_0x16922f['id'],_0x16922f[_0x23ed7c(0x98)]?JSON['parse'](_0x16922f[_0x23ed7c(0x98)]):null,{'fromCollab':!0x0});});}[_0x480de2(0x118)](){const _0x2a63a5=_0x480de2;var _0x5e25ed;this[_0x2a63a5(0xe5)][_0x2a63a5(0xa5)](_0x2a63a5(0xa9)),(_0x5e25ed=this[_0x2a63a5(0x11f)])==null||_0x5e25ed[_0x2a63a5(0xfd)]();}[_0x480de2(0xd8)](){const _0xc83cf5=_0x480de2;this[_0xc83cf5(0xe5)][_0xc83cf5(0xa5)](_0xc83cf5(0xff)),this[_0xc83cf5(0xd0)]();}};N=Y([_(0x2,_0xea2396),_(0x3,_0x31d8e9(L)),_(0x4,_0x358f4b)],N);function Le(){const _0xca5cec=_0x480de2,_0x15a293=_0x5b95cb(S),_0x4c337b=_0x5b95cb(_0x59e319),_0x3ab8b0=_0x477adc(()=>_0x4c337b[_0xca5cec(0xc8)](_0x1e0e7d['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x43c7fc,_0x493cc2]=_0x3126fc(null),[_0x52d3b0,_0x34bd49]=_0x3126fc(c[_0xca5cec(0x105)]),_0x3e6863=_0x2d1821(null);return _0x42fb54(()=>(_0x3ab8b0&&_0x15a293[_0xca5cec(0xf4)](_0x3ab8b0[_0xca5cec(0x7e)]())['then'](_0x142b4d=>{const _0x55dda4=_0xca5cec;_0x493cc2(_0x142b4d),_0x3e6863[_0x55dda4(0x107)]=_0x142b4d[_0x55dda4(0xcd)][_0x55dda4(0x114)](_0x1375d4=>{_0x34bd49(_0x1375d4);});}),()=>{const _0x436328=_0xca5cec;var _0x4ea08b;(_0x4ea08b=_0x3e6863[_0x436328(0x107)])==null||_0x4ea08b['unsubscribe'](),_0x3e6863[_0x436328(0x107)]=null;}),[_0x3ab8b0,_0x15a293]),_0x43c7fc?_0x4f48f3(_0x43303b,{'align':_0xca5cec(0xd5),'disabled':_0x52d3b0===c[_0xca5cec(0xf7)],'className':_0xca5cec(0xc7),'overlay':_0x4f48f3(Re,{'status':_0x52d3b0,'coordinator':_0x43c7fc}),'children':_0x4f48f3('button',{'className':_0x219d87(_0xca5cec(0xad),{'univer-cursor-not-allowed':_0x52d3b0===c[_0xca5cec(0xf7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x52d3b0!==c[_0xca5cec(0xf7)]}),'type':'button','children':_0x4f48f3(W,{'className':_0xca5cec(0xce)})})}):null;}function Re(_0x2ef174){const _0x277700=_0x480de2,{status:_0x2430bb,coordinator:_0x338fed}=_0x2ef174;switch(_0x2430bb){case c[_0x277700(0x105)]:return _0x4f48f3($e,{'coordinator':_0x338fed});case c[_0x277700(0x91)]:return _0x4f48f3(xe,{'coordinator':_0x338fed});case c[_0x277700(0xb2)]:return _0x4f48f3(Pe,{'coordinator':_0x338fed});case c[_0x277700(0xf7)]:return _0x4f48f3(Te,{});case c['PRESENTING']:return _0x4f48f3(Ae,{'coordinator':_0x338fed});default:return null;}}function $e(_0xfad782){const _0x5995a0=_0x480de2,{coordinator:_0x5ee935}=_0xfad782;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5995a0(0xe7)}),_0x4f48f3(_0x5f10a4,{'onClick':()=>_0x5ee935['tryStartPresenting'](),'children':_0x5995a0(0x97)})]});}function xe(_0x4a7620){const _0x13e27f=_0x480de2,{coordinator:_0x541788}=_0x4a7620;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x13e27f(0xe2),{'className':_0x13e27f(0x8b),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4f48f3(_0x5f10a4,{'onClick':()=>_0x541788['stopFollowing'](),'children':_0x13e27f(0xdc)})]});}function Pe(_0x185a58){const _0x400cfa=_0x480de2,{coordinator:_0xa38fab}=_0x185a58;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x400cfa(0xe2),{'className':_0x400cfa(0x8b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4f48f3(_0x5f10a4,{'variant':'text','onClick':()=>_0xa38fab[_0x400cfa(0x82)](),'children':_0x400cfa(0x90)})]});}function Ae(_0x14e769){const _0x49059d=_0x480de2,{coordinator:_0x393521}=_0x14e769;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x49059d(0xe2),{'className':_0x49059d(0x8b),'children':_0x49059d(0xde)}),_0x4f48f3(_0x5f10a4,{'variant':'default','onClick':()=>_0x393521[_0x49059d(0xb0)](),'children':_0x49059d(0xea)})]});}function Te(){const _0x35fc15=_0x480de2;return _0x4f48f3(_0x5480f9,{'children':_0x35fc15(0xf9)});}var Fe=Object[_0x480de2(0x103)],He=(_0xc389b6,_0x47ae8a,_0x4a2f48,_0x244129)=>{for(var _0x5e3960=_0x244129>0x1?void 0x0:_0x244129?Fe(_0x47ae8a,_0x4a2f48):_0x47ae8a,_0x54a047=_0xc389b6['length']-0x1,_0x19907b;_0x54a047>=0x0;_0x54a047--)(_0x19907b=_0xc389b6[_0x54a047])&&(_0x5e3960=_0x19907b(_0x5e3960)||_0x5e3960);return _0x5e3960;},A=(_0x12cc2f,_0x2cada1)=>(_0x41e21f,_0x613bb1)=>_0x2cada1(_0x41e21f,_0x613bb1,_0x12cc2f);let m=class extends _0x445766{constructor(_0x172e53,_0x4f79ea){const _0x1a884a=_0x480de2;super(),this[_0x1a884a(0x102)]=_0x172e53,this['_uiPartsService']=_0x4f79ea,this['_mountLiveShare']();}[_0x480de2(0xa6)](){const _0x5ae6c7=_0x480de2;this['disposeWithMe'](this[_0x5ae6c7(0x81)][_0x5ae6c7(0xd7)](_0x589e20[_0x5ae6c7(0x10a)],()=>_0x2bfcca(Le,this[_0x5ae6c7(0x102)])));}};m=He([A(0x0,_0x31d8e9(_0x4d1ef7)),A(0x1,_0x1618ae)],m);const ye=_0x480de2(0x8e),T={};var Ue=Object[_0x480de2(0x103)],Ve=(_0x249b57,_0x4669ab,_0x3ceaa9,_0xa47879)=>{const _0x14820b=_0x480de2;for(var _0x5a1957=_0xa47879>0x1?void 0x0:_0xa47879?Ue(_0x4669ab,_0x3ceaa9):_0x4669ab,_0xd5a94d=_0x249b57[_0x14820b(0xbf)]-0x1,_0x261a0a;_0xd5a94d>=0x0;_0xd5a94d--)(_0x261a0a=_0x249b57[_0xd5a94d])&&(_0x5a1957=_0x261a0a(_0x5a1957)||_0x5a1957);return _0x5a1957;},je=(_0x12cfd5,_0x4e7413)=>(_0x56a754,_0x9be823)=>_0x4e7413(_0x56a754,_0x9be823,_0x12cfd5);let I=class extends _0x445766{constructor(_0x3ba195){const _0x3b4077=_0x480de2;super(),this[_0x3b4077(0xe6)]=_0x3ba195,this[_0x3b4077(0x83)]();}[_0x480de2(0x83)](){const _0x146712=_0x480de2;[_0xee7cd['id'],_0x504137['id'],_0x42d600['id']][_0x146712(0x11d)](_0x4a77ef=>{const _0x505cfc=_0x146712;this[_0x505cfc(0xe1)](this[_0x505cfc(0xe6)][_0x505cfc(0xb6)](_0x4a77ef));});}};I=Ve([je(0x0,_0x31d8e9(L))],I);var Me=Object[_0x480de2(0x108)],ke=Object[_0x480de2(0x103)],Ge=(_0x3f3f64,_0x21c44a,_0x49d929)=>_0x21c44a in _0x3f3f64?Me(_0x3f3f64,_0x21c44a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49d929}):_0x3f3f64[_0x21c44a]=_0x49d929,We=(_0x77c05d,_0x551572,_0x1732b4,_0x2c59c5)=>{const _0x170ee9=_0x480de2;for(var _0x1a3120=_0x2c59c5>0x1?void 0x0:_0x2c59c5?ke(_0x551572,_0x1732b4):_0x551572,_0xd600ef=_0x77c05d[_0x170ee9(0xbf)]-0x1,_0x500c05;_0xd600ef>=0x0;_0xd600ef--)(_0x500c05=_0x77c05d[_0xd600ef])&&(_0x1a3120=_0x500c05(_0x1a3120)||_0x1a3120);return _0x1a3120;},F=(_0x2901fb,_0x49a302)=>(_0x3613d9,_0x164f78)=>_0x49a302(_0x3613d9,_0x164f78,_0x2901fb),B=(_0x3a68c3,_0x176827,_0xb3ba0f)=>Ge(_0x3a68c3,typeof _0x176827!=_0x480de2(0x106)?_0x176827+'':_0x176827,_0xb3ba0f);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x218f1f{constructor(_0x1d5e66=T,_0x5d5c39,_0xc484d4){const _0x2d2aa6=_0x480de2;super(),this[_0x2d2aa6(0x93)]=_0x1d5e66,this[_0x2d2aa6(0x102)]=_0x5d5c39,this[_0x2d2aa6(0xfa)]=_0xc484d4;const {..._0x40ad25}=_0x477aae({},T,this[_0x2d2aa6(0x93)]);this[_0x2d2aa6(0xfa)][_0x2d2aa6(0x10c)](ye,_0x40ad25);}[_0x480de2(0x86)](){const _0x170149=_0x480de2;_0xaed711(this[_0x170149(0x102)],_0xb0235f([[L],[S],[I],[m]],this[_0x170149(0x93)][_0x170149(0xcb)])),_0xd465dc(this[_0x170149(0x102)],[[I]]);}[_0x480de2(0xc2)](){const _0x14c429=_0x480de2;_0xd465dc(this[_0x14c429(0x102)],[[m]]);}};B(b,'type',_0x1e0e7d[_0x480de2(0xa1)]),B(b,_0x480de2(0xa2),Ye),b=We([_0x2532bd(_0x1e0ea8),F(0x1,_0x31d8e9(_0x4d1ef7)),F(0x2,_0xea2396)],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 _0x6e67a4=_0x135d;(function(_0x354467,_0x7b3ce5){const _0x1c9e91=_0x135d,_0x5d94dd=_0x354467();while(!![]){try{const _0x220892=parseInt(_0x1c9e91(0x1a8))/0x1+-parseInt(_0x1c9e91(0x204))/0x2*(-parseInt(_0x1c9e91(0x22e))/0x3)+parseInt(_0x1c9e91(0x1f2))/0x4*(parseInt(_0x1c9e91(0x19b))/0x5)+-parseInt(_0x1c9e91(0x18c))/0x6*(-parseInt(_0x1c9e91(0x21a))/0x7)+-parseInt(_0x1c9e91(0x1ed))/0x8+-parseInt(_0x1c9e91(0x1b3))/0x9+-parseInt(_0x1c9e91(0x1f6))/0xa;if(_0x220892===_0x7b3ce5)break;else _0x5d94dd['push'](_0x5d94dd['shift']());}catch(_0x520e8e){_0x5d94dd['push'](_0x5d94dd['shift']());}}}(_0x4234,0x3c369));var J=Object[_0x6e67a4(0x1be)],K=(_0x1845a7,_0x152099,_0xb0e92b)=>_0x152099 in _0x1845a7?J(_0x1845a7,_0x152099,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb0e92b}):_0x1845a7[_0x152099]=_0xb0e92b,u=(_0x183d15,_0x108a2e,_0x318511)=>K(_0x183d15,typeof _0x108a2e!=_0x6e67a4(0x1a4)?_0x108a2e+'':_0x108a2e,_0x318511);import{Disposable as _0x5e24bb,toDisposable as _0xe2a356,IUniverInstanceService as _0x429aae,Inject as _0x59f7c6,Injector as _0x4531be,IConfigService as _0x3f6d6e,ICommandService as _0x3ed8d7,RxDisposable as _0x191712,UniverInstanceType as _0x118f42,DisposableCollection as _0x2a5811,CommandType as _0x14388b,DependentOn as _0xe1d233,Plugin as _0x5cd1de,merge as _0x727060,registerDependencies as _0x28a48e,mergeOverrideWithDependencies as _0x357330,touchDependencies as _0x25c3b0}from'@univerjs/core';import{useDependency as _0xdbbe5b,useObservable as _0x1621e2,IUIPartsService as _0x27b447,BuiltInUIPart as _0x47949f,connectInjector as _0x296dfc}from'@univerjs/ui';import{jsx as _0x2ca373,jsxs as _0xbe0ce5,Fragment as _0x511b38}from'react/jsx-runtime';import{Dropdown as _0x2a1e6e,clsx as _0x8ac4ff,Button as _0x29989c}from'@univerjs/design';import{useRef as _0x482ed3,createElement as _0x797d0e,forwardRef as _0x16790e,useState as _0x5d950b,useEffect as _0x52f42a}from'react';import{CollaborationEvent as _0x94e1b3,parseProtocolChangeset as _0x479ed7}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1e5a3d,SessionStatus as _0x4753ef,UniverCollaborationClientPlugin as _0x4a1e33}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x17d247,SetWorksheetActiveOperation as _0x553e77}from'@univerjs/sheets';import{BehaviorSubject as _0x59d67a,Subject as _0x51c7e2}from'rxjs';import{takeUntil as _0x5448c3,throttleTime as _0x35eda6}from'rxjs/operators';import{SetZoomRatioOperation as _0x13aa72,SetScrollOperation as _0x4e9adb}from'@univerjs/sheets-ui';function k({ref:_0x1ae140,..._0x3bcec8}){const _0x1853be=_0x6e67a4,{icon:_0xd1386a,id:_0x1f91e4,className:_0xc749bb,extend:_0x4689db,..._0x221a9f}=_0x3bcec8,_0x200100=(_0x1853be(0x1ef)+_0x1f91e4+'\x20'+(_0xc749bb||''))[_0x1853be(0x1fa)](),_0x332e44=_0x482ed3('_'+Oe());return G(_0xd1386a,''+_0x1f91e4,{'defIds':_0xd1386a[_0x1853be(0x20c)],'idSuffix':_0x332e44[_0x1853be(0x1fd)]},{'ref':_0x1ae140,'className':_0x200100,..._0x221a9f},_0x4689db);}function G(_0x833fa0,_0x12cde1,_0x16c09c,_0x4716fa,_0x34a4d8){const _0x4e4d1d=_0x6e67a4;return _0x797d0e(_0x833fa0[_0x4e4d1d(0x1d0)],{'key':_0x12cde1,...be(_0x833fa0,_0x16c09c,_0x34a4d8),..._0x4716fa},(Ee(_0x833fa0,_0x16c09c)[_0x4e4d1d(0x1b5)]||[])['map']((_0x3fafb2,_0x2f00d8)=>G(_0x3fafb2,_0x12cde1+'-'+_0x833fa0[_0x4e4d1d(0x1d0)]+'-'+_0x2f00d8,_0x16c09c,void 0x0,_0x34a4d8)));}function be(_0x4abf2e,_0x4343c1,_0x2e77b6){const _0x33df50=_0x6e67a4,_0x593596={..._0x4abf2e[_0x33df50(0x20d)]};_0x2e77b6!=null&&_0x2e77b6[_0x33df50(0x186)]&&_0x593596[_0x33df50(0x21c)]===_0x33df50(0x186)&&(_0x593596[_0x33df50(0x21c)]=_0x2e77b6[_0x33df50(0x186)]),_0x4abf2e['tag']===_0x33df50(0x1b7)&&_0x593596['id']&&(_0x593596['id']=_0x593596['id']+_0x4343c1[_0x33df50(0x1e9)]),Object[_0x33df50(0x1a3)](_0x593596)['forEach'](([_0x21e168,_0x3bfd12])=>{const _0x38ba2a=_0x33df50;_0x21e168===_0x38ba2a(0x1b7)&&typeof _0x3bfd12==_0x38ba2a(0x1cd)&&(_0x593596[_0x21e168]=_0x3bfd12['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4343c1[_0x38ba2a(0x1e9)]+')'));});const {defIds:_0x4ab71f}=_0x4343c1;return!_0x4ab71f||_0x4ab71f['length']===0x0||(_0x4abf2e[_0x33df50(0x1d0)]===_0x33df50(0x1b6)&&_0x593596[_0x33df50(0x1c6)]&&(_0x593596['xlink:href']=_0x593596[_0x33df50(0x1c6)]+_0x4343c1[_0x33df50(0x1e9)]),Object[_0x33df50(0x1a3)](_0x593596)[_0x33df50(0x1c9)](([_0x2dd0e6,_0x15a707])=>{const _0x486147=_0x33df50;typeof _0x15a707==_0x486147(0x1cd)&&(_0x593596[_0x2dd0e6]=_0x15a707['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4343c1[_0x486147(0x1e9)]+')'));})),_0x593596;}function Ee(_0x1e7841,_0x799ef){const _0x43ab92=_0x6e67a4;var _0x55ae08;const {defIds:_0x538651}=_0x799ef;return!_0x538651||_0x538651[_0x43ab92(0x18a)]===0x0?_0x1e7841:_0x1e7841['tag']===_0x43ab92(0x1e1)&&((_0x55ae08=_0x1e7841[_0x43ab92(0x1b5)])!=null&&_0x55ae08[_0x43ab92(0x18a)])?{..._0x1e7841,'children':_0x1e7841[_0x43ab92(0x1b5)][_0x43ab92(0x1f9)](_0x19be0b=>typeof _0x19be0b[_0x43ab92(0x20d)]['id']==_0x43ab92(0x1cd)&&_0x538651&&_0x538651[_0x43ab92(0x1cf)](_0x19be0b['attrs']['id'])?{..._0x19be0b,'attrs':{..._0x19be0b[_0x43ab92(0x20d)],'id':_0x19be0b['attrs']['id']+_0x799ef[_0x43ab92(0x1e9)]}}:_0x19be0b)}:_0x1e7841;}function Oe(){const _0x4d5025=_0x6e67a4;return Math[_0x4d5025(0x199)]()[_0x4d5025(0x212)](0x24)[_0x4d5025(0x1d9)](0x2,0x8);}k[_0x6e67a4(0x1a1)]='UniverIcon';const we={'tag':_0x6e67a4(0x1ad),'attrs':{'xmlns':_0x6e67a4(0x20b),'fill':'none','viewBox':_0x6e67a4(0x18e),'width':_0x6e67a4(0x1d8),'height':'1em'},'children':[{'tag':_0x6e67a4(0x208),'attrs':{'fill':_0x6e67a4(0x1d7),'d':_0x6e67a4(0x202)}},{'tag':'path','attrs':{'fill':_0x6e67a4(0x1d7),'d':_0x6e67a4(0x215),'fillRule':_0x6e67a4(0x1d2),'clipRule':'evenodd'}}]},W=_0x16790e(function(_0x1f62a1,_0x5d29e2){return _0x797d0e(k,Object['assign']({},_0x1f62a1,{'id':'live-share-icon','ref':_0x5d29e2,'icon':we}));});W[_0x6e67a4(0x1a1)]=_0x6e67a4(0x187);class L extends _0x5e24bb{constructor(){const _0x2b60d3=_0x6e67a4;super(...arguments),u(this,_0x2b60d3(0x19d),new Set()),u(this,'_reporters',new Set());}[_0x6e67a4(0x190)](_0x3b57ca){const _0x520924=_0x6e67a4;return this[_0x520924(0x19d)][_0x520924(0x1ba)](_0x3b57ca),_0xe2a356(()=>this[_0x520924(0x19d)][_0x520924(0x188)](_0x3b57ca));}[_0x6e67a4(0x224)](_0xb8827){const _0x4e8b83=_0x6e67a4;return this[_0x4e8b83(0x1cc)]['add'](_0xb8827),_0xe2a356(()=>this[_0x4e8b83(0x1cc)][_0x4e8b83(0x188)](_0xb8827));}[_0x6e67a4(0x1bc)](_0x2b5851){const _0xa4a800=_0x6e67a4;return this[_0xa4a800(0x19d)][_0xa4a800(0x1ab)](_0x2b5851);}[_0x6e67a4(0x1b4)](_0x3f70a2){const _0x3b76e8=_0x6e67a4;return Array[_0x3b76e8(0x1c1)](this['_reporters'])[_0x3b76e8(0x1f9)](_0x4d15ac=>_0x4d15ac(_0x3f70a2));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x2e6546,_0xa2f29,_0x16bf90,_0x40d393)=>{for(var _0x4eb0ab=_0x40d393>0x1?void 0x0:_0x40d393?Ne(_0xa2f29,_0x16bf90):_0xa2f29,_0x2102b5=_0x2e6546['length']-0x1,_0x438880;_0x2102b5>=0x0;_0x2102b5--)(_0x438880=_0x2e6546[_0x2102b5])&&(_0x4eb0ab=_0x438880(_0x4eb0ab)||_0x4eb0ab);return _0x4eb0ab;},_=(_0x7b7c13,_0x29bb03)=>(_0x32e15d,_0x4d3bc3)=>_0x29bb03(_0x32e15d,_0x4d3bc3,_0x7b7c13);let S=class extends _0x191712{constructor(_0x459ad7,_0x4b4d66,_0x26758d){const _0x10cb0=_0x6e67a4;super(),u(this,_0x10cb0(0x1a2),new Map()),(this['_univerInstanceService']=_0x459ad7,this[_0x10cb0(0x1b8)]=_0x4b4d66,this[_0x10cb0(0x210)]=_0x26758d,this[_0x10cb0(0x1b2)]());}async[_0x6e67a4(0x1b1)](_0x3a9d84){const _0x25538e=_0x6e67a4;return this[_0x25538e(0x1a2)][_0x25538e(0x1ab)](_0x3a9d84)||await this[_0x25538e(0x207)](_0x3a9d84),this[_0x25538e(0x1a2)][_0x25538e(0x1bd)](_0x3a9d84);}['getLiveShareCoordinatorSync'](_0x30ced4){const _0x4d711b=_0x6e67a4;var _0x6c659a;return(_0x6c659a=this[_0x4d711b(0x1a2)][_0x4d711b(0x1bd)](_0x30ced4))!=null?_0x6c659a:null;}['_init'](){const _0x25532a=_0x6e67a4;this[_0x25532a(0x20a)][_0x25532a(0x222)](_0x118f42[_0x25532a(0x1e6)])[_0x25532a(0x1c0)](_0x5448c3(this[_0x25532a(0x21b)]))[_0x25532a(0x1c2)](async _0x2f9568=>{const _0x6fd157=_0x25532a,_0x15c987=_0x2f9568[_0x6fd157(0x1df)]();this['_entities']['has'](_0x15c987)||this['_startLiveShareCoordinator'](_0x15c987);}),this['_univerInstanceService'][_0x25532a(0x1c4)](_0x118f42[_0x25532a(0x1e6)])[_0x25532a(0x1c0)](_0x5448c3(this['dispose$']))['subscribe'](_0x67e594=>{const _0x965c3e=_0x25532a,_0x355512=_0x67e594[_0x965c3e(0x1df)](),_0x242483=this[_0x965c3e(0x1a2)][_0x965c3e(0x1bd)](_0x355512);_0x242483==null||_0x242483[_0x965c3e(0x1af)]();});}async[_0x6e67a4(0x207)](_0x2609a0){const _0x25e734=_0x6e67a4,_0x67e802=await this[_0x25e734(0x210)][_0x25e734(0x1d1)](_0x2609a0),_0x1d9d3c=this['_injector'][_0x25e734(0x221)](N,_0x2609a0,_0x67e802);return _0x1d9d3c[_0x25e734(0x1f3)](),this['_entities']['set'](_0x2609a0,_0x1d9d3c),_0x1d9d3c;}};S=Y([_(0x0,_0x429aae),_(0x1,_0x59f7c6(_0x4531be)),_(0x2,_0x59f7c6(_0x1e5a3d))],S);var c=(_0x53f6aa=>(_0x53f6aa[_0x6e67a4(0x216)]=_0x6e67a4(0x1f0),_0x53f6aa[_0x6e67a4(0x1ac)]='idle',_0x53f6aa[_0x6e67a4(0x1d3)]=_0x6e67a4(0x1ff),_0x53f6aa[_0x6e67a4(0x1d4)]=_0x6e67a4(0x1dc),_0x53f6aa[_0x6e67a4(0x1da)]=_0x6e67a4(0x219),_0x53f6aa))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x191712{constructor(_0x1a51d7,_0x4137b1,_0x3616cc,_0x345b03,_0x949460){const _0x1d9770=_0x6e67a4;super(),u(this,_0x1d9770(0x1ae),new _0x59d67a(_0x1d9770(0x1b0))),u(this,_0x1d9770(0x18d),this[_0x1d9770(0x1ae)][_0x1d9770(0x1c3)]()),u(this,_0x1d9770(0x1b2),!0x1),u(this,_0x1d9770(0x197),null),u(this,_0x1d9770(0x1e2),null),(this[_0x1d9770(0x1bb)]=_0x1a51d7,this['_collabSession']=_0x4137b1,this['_configService']=_0x3616cc,this[_0x1d9770(0x226)]=_0x345b03,this[_0x1d9770(0x192)]=_0x949460);}get[_0x6e67a4(0x214)](){const _0x1eece5=_0x6e67a4;return this[_0x1eece5(0x1ae)][_0x1eece5(0x20f)]();}[_0x6e67a4(0x1af)](){const _0x151978=_0x6e67a4;var _0x166243;(_0x166243=this[_0x151978(0x197)])==null||_0x166243[_0x151978(0x1af)](),this[_0x151978(0x1ae)][_0x151978(0x20e)](_0x151978(0x1b0)),this['_status$'][_0x151978(0x1e7)]();}[_0x6e67a4(0x213)](){const _0x209dde=_0x6e67a4;return this[_0x209dde(0x214)];}['init'](){const _0x5efdc0=_0x6e67a4;this[_0x5efdc0(0x1b2)]||(this[_0x5efdc0(0x1b2)]=!0x0,this[_0x5efdc0(0x1e4)]['sessionStatus$'][_0x5efdc0(0x1c0)](_0x5448c3(this[_0x5efdc0(0x21b)]))['subscribe'](_0xd000d6=>{const _0x3d3278=_0x5efdc0;switch(_0xd000d6){case _0x4753ef['OFFLINE']:this[_0x3d3278(0x203)]();break;case _0x4753ef[_0x3d3278(0x21f)]:this[_0x3d3278(0x1c7)]();break;}}),this[_0x5efdc0(0x1e4)][_0x5efdc0(0x1a6)]['pipe'](_0x5448c3(this[_0x5efdc0(0x21b)]))[_0x5efdc0(0x1c2)](_0x5df548=>{const _0x272f25=_0x5efdc0,{eventID:_0x576b41}=_0x5df548;switch(_0x576b41){case _0x94e1b3['LIVESHARE_NEW_HOST']:this[_0x272f25(0x1d6)](_0x5df548);break;case _0x94e1b3[_0x272f25(0x229)]:this[_0x272f25(0x1b9)](_0x5df548);break;case _0x94e1b3['LIVESHARE_TERMINATE']:this[_0x272f25(0x19c)]();break;case _0x94e1b3['NEW_CHANGESETS']:this[_0x272f25(0x22d)](_0x5df548);break;}}));}[_0x6e67a4(0x1fb)](){const _0x51c154=_0x6e67a4;this[_0x51c154(0x1e4)][_0x51c154(0x201)]({'eventID':_0x94e1b3[_0x51c154(0x1dd)],'data':{'unitID':this[_0x51c154(0x1bb)],'userID':this['_collabSession'][_0x51c154(0x1a9)]()}},this[_0x51c154(0x1bb)]);}[_0x6e67a4(0x1a0)](){const _0x1be6e6=_0x6e67a4;this[_0x1be6e6(0x214)]==='presenting'&&(this[_0x1be6e6(0x1ae)][_0x1be6e6(0x20e)]('idle'),this['_collabSession'][_0x1be6e6(0x201)]({'eventID':_0x94e1b3[_0x1be6e6(0x206)],'data':{'unitID':this[_0x1be6e6(0x1bb)]}},this[_0x1be6e6(0x1bb)]));}['startFollowing'](){const _0x3970fc=_0x6e67a4;this['_status']==='not-following'&&(this[_0x3970fc(0x1ae)][_0x3970fc(0x20e)](_0x3970fc(0x1ff)),this['_startFollowing']());}[_0x6e67a4(0x1cb)](){const _0x1f02d9=_0x6e67a4;this[_0x1f02d9(0x214)]===_0x1f02d9(0x1ff)&&this[_0x1f02d9(0x191)]();}[_0x6e67a4(0x1d6)](_0x2f5781){const _0x1a0bd0=_0x6e67a4,{presenter:_0x58ec53}=_0x2f5781['data'],_0x272f60=this[_0x1a0bd0(0x1e4)][_0x1a0bd0(0x1a9)]();this[_0x1a0bd0(0x1e2)]=_0x58ec53,_0x58ec53===_0x272f60?(this[_0x1a0bd0(0x191)](),this[_0x1a0bd0(0x1ea)]()):this['_status']!==_0x1a0bd0(0x1dc)&&(this[_0x1a0bd0(0x220)](),this['_startFollowing']());}['_fetchOperations'](){const _0x74075=_0x6e67a4,_0x20508e={'eventID':_0x94e1b3['LIVESHARE_FETCH_OPERATIONS']};this[_0x74075(0x1e4)][_0x74075(0x201)](_0x20508e,this['_unitID']);}[_0x6e67a4(0x19c)](){const _0x4f9fd9=_0x6e67a4;this[_0x4f9fd9(0x1e2)]=null,this['_status']!=='presenting'&&this[_0x4f9fd9(0x1e5)]();}[_0x6e67a4(0x22d)](_0x183c55){const _0x60be10=_0x6e67a4;if(this[_0x60be10(0x214)]===_0x60be10(0x1ff)&&this[_0x60be10(0x1e2)]===_0x183c55['data'][_0x60be10(0x225)]){const _0x579918=_0x479ed7(_0x183c55[_0x60be10(0x1a5)])[_0x60be10(0x21e)][_0x60be10(0x205)]()[_0x60be10(0x22a)](_0x183422=>_0x183422['id']===_0x17d247['id']);if(_0x579918){const _0x534541=_0x579918[_0x60be10(0x21d)][_0x60be10(0x19f)],_0x41f561=_0x579918[_0x60be10(0x21d)][_0x60be10(0x1f1)]['id'];setTimeout(()=>{const _0x7c951d=_0x60be10;this[_0x7c951d(0x192)][_0x7c951d(0x1e8)](_0x553e77['id'],{'unitId':_0x534541,'subUnitId':_0x41f561},{'fromCollab':!0x0});});}}}[_0x6e67a4(0x1ea)](){const _0x242a5d=_0x6e67a4;this[_0x242a5d(0x1ae)][_0x242a5d(0x20e)]('presenting');const _0x144f5f=new Map(),_0x5960bc=this[_0x242a5d(0x197)]=new _0x2a5811();_0x5960bc[_0x242a5d(0x1ba)](_0xe2a356(()=>{const _0xd475c9=_0x242a5d;_0x144f5f['forEach'](_0x30b0e2=>_0x30b0e2['complete']()),_0x144f5f[_0xd475c9(0x227)]();})),_0x5960bc[_0x242a5d(0x1ba)](this[_0x242a5d(0x192)][_0x242a5d(0x228)](_0x7d118a=>{const _0x54a176=_0x242a5d;var _0x521726;if(_0x7d118a['type']!==_0x14388b[_0x54a176(0x196)]||!this[_0x54a176(0x226)][_0x54a176(0x1bc)](_0x7d118a['id']))return;const {id:_0x499adb}=_0x7d118a;let _0x244347;_0x144f5f['has'](_0x499adb)?_0x244347=_0x144f5f[_0x54a176(0x1bd)](_0x499adb):(_0x244347=new _0x51c7e2(),_0x144f5f[_0x54a176(0x1ca)](_0x499adb,_0x244347),_0x244347[_0x54a176(0x1c0)](_0x35eda6((_0x521726=this[_0x54a176(0x1d5)][_0x54a176(0x1ee)](Ce))!=null?_0x521726:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x54a176(0x1c2)](_0x2fcf0b=>{const _0x4ea18c=_0x54a176;this[_0x4ea18c(0x1e4)][_0x4ea18c(0x201)]({'eventID':_0x94e1b3[_0x4ea18c(0x229)],'data':{'unitID':this[_0x4ea18c(0x1bb)],'operations':{[_0x2fcf0b['id']]:{'id':_0x2fcf0b['id'],'params':JSON[_0x4ea18c(0x1c8)](_0x2fcf0b[_0x4ea18c(0x21d)])}}}},this[_0x4ea18c(0x1bb)]);})),_0x244347[_0x54a176(0x20e)](_0x7d118a);})),this[_0x242a5d(0x226)][_0x242a5d(0x1b4)](this[_0x242a5d(0x1bb)])[_0x242a5d(0x1c9)](_0x1f5e6d=>this[_0x242a5d(0x1e4)][_0x242a5d(0x201)]({'eventID':_0x94e1b3[_0x242a5d(0x229)],'data':{'unitID':this[_0x242a5d(0x1bb)],'operations':{[_0x1f5e6d['id']]:{'id':_0x1f5e6d['id'],'params':JSON[_0x242a5d(0x1c8)](_0x1f5e6d['params'])}}}},this[_0x242a5d(0x1bb)]));}[_0x6e67a4(0x220)](){const _0x322e4a=_0x6e67a4;var _0x2f9ec0;this[_0x322e4a(0x1ae)]['next'](_0x322e4a(0x1b0)),(_0x2f9ec0=this[_0x322e4a(0x197)])==null||_0x2f9ec0[_0x322e4a(0x1af)](),this['_commandDisposable']=null;}[_0x6e67a4(0x18b)](){const _0x2b4a13=_0x6e67a4;var _0x282bb3;(_0x282bb3=this['_commandDisposable'])==null||_0x282bb3[_0x2b4a13(0x1af)](),this[_0x2b4a13(0x1ae)][_0x2b4a13(0x20e)](_0x2b4a13(0x1ff));}[_0x6e67a4(0x1e5)](){const _0x355b1a=_0x6e67a4;var _0x1399e9;this[_0x355b1a(0x1ae)]['next'](_0x355b1a(0x1b0)),(_0x1399e9=this[_0x355b1a(0x197)])==null||_0x1399e9[_0x355b1a(0x1af)](),this[_0x355b1a(0x197)]=null;}['_stopFollowing'](){const _0x1f97b1=_0x6e67a4;var _0x5e4309;this['_status$'][_0x1f97b1(0x20e)]('not-following'),(_0x5e4309=this[_0x1f97b1(0x197)])==null||_0x5e4309[_0x1f97b1(0x1af)]();}[_0x6e67a4(0x1b9)](_0x291186){const _0x38cb5c=_0x6e67a4;if([_0x38cb5c(0x219),_0x38cb5c(0x1dc),'offline'][_0x38cb5c(0x1cf)](this['_status'])||!_0x291186['data']['presenter']||_0x291186[_0x38cb5c(0x1a5)][_0x38cb5c(0x1ce)]===this[_0x38cb5c(0x1e4)][_0x38cb5c(0x1a9)]())return;this[_0x38cb5c(0x214)]==='idle'&&this[_0x38cb5c(0x18b)]();const _0x11e332=_0x291186['data'][_0x38cb5c(0x223)];Object['values'](_0x11e332)['forEach'](_0x8f062d=>{const _0x1b1ba0=_0x38cb5c;this[_0x1b1ba0(0x192)][_0x1b1ba0(0x1e8)](_0x8f062d['id'],_0x8f062d['params']?JSON[_0x1b1ba0(0x1c5)](_0x8f062d['params']):null,{'fromCollab':!0x0});});}[_0x6e67a4(0x203)](){const _0x3b9818=_0x6e67a4;var _0x1088e4;this[_0x3b9818(0x1ae)][_0x3b9818(0x20e)]('offline'),(_0x1088e4=this[_0x3b9818(0x197)])==null||_0x1088e4[_0x3b9818(0x1af)]();}['_handleOnline'](){const _0x4c966a=_0x6e67a4;this[_0x4c966a(0x1ae)][_0x4c966a(0x20e)](_0x4c966a(0x1b0)),this['_fetchOperations']();}};N=Y([_(0x2,_0x3f6d6e),_(0x3,_0x59f7c6(L)),_(0x4,_0x3ed8d7)],N);function Le(){const _0x3075e7=_0x6e67a4,_0x41fa16=_0xdbbe5b(S),_0xfe4fc7=_0xdbbe5b(_0x429aae),_0x42ec3e=_0x1621e2(()=>_0xfe4fc7[_0x3075e7(0x22b)](_0x118f42[_0x3075e7(0x1e6)]),void 0x0,!0x1,[]),[_0x2f7f74,_0x514388]=_0x5d950b(null),[_0x31226b,_0x167c93]=_0x5d950b(c[_0x3075e7(0x1ac)]),_0xfdf92a=_0x482ed3(null);return _0x52f42a(()=>(_0x42ec3e&&_0x41fa16['getLiveShareCoordinator'](_0x42ec3e['getUnitId']())[_0x3075e7(0x1e3)](_0x87f068=>{const _0x4da179=_0x3075e7;_0x514388(_0x87f068),_0xfdf92a[_0x4da179(0x1fd)]=_0x87f068[_0x4da179(0x18d)][_0x4da179(0x1c2)](_0x3939ef=>{_0x167c93(_0x3939ef);});}),()=>{const _0x21c17e=_0x3075e7;var _0x54838c;(_0x54838c=_0xfdf92a['current'])==null||_0x54838c[_0x21c17e(0x200)](),_0xfdf92a[_0x21c17e(0x1fd)]=null;}),[_0x42ec3e,_0x41fa16]),_0x2f7f74?_0x2ca373(_0x2a1e6e,{'align':_0x3075e7(0x198),'disabled':_0x31226b===c[_0x3075e7(0x216)],'className':_0x3075e7(0x1eb),'overlay':_0x2ca373(Re,{'status':_0x31226b,'coordinator':_0x2f7f74}),'children':_0x2ca373(_0x3075e7(0x1bf),{'className':_0x8ac4ff(_0x3075e7(0x217),{'univer-cursor-not-allowed':_0x31226b===c[_0x3075e7(0x216)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x31226b!==c[_0x3075e7(0x216)]}),'type':_0x3075e7(0x1bf),'children':_0x2ca373(W,{'className':_0x3075e7(0x1db)})})}):null;}function _0x135d(_0x504359,_0x1f5a82){_0x504359=_0x504359-0x186;const _0x4234cc=_0x4234();let _0x135dae=_0x4234cc[_0x504359];return _0x135dae;}function Re(_0x44459b){const _0x58cf5d=_0x6e67a4,{status:_0x382924,coordinator:_0x378098}=_0x44459b;switch(_0x382924){case c['IDLE']:return _0x2ca373($e,{'coordinator':_0x378098});case c[_0x58cf5d(0x1d3)]:return _0x2ca373(xe,{'coordinator':_0x378098});case c[_0x58cf5d(0x1d4)]:return _0x2ca373(Pe,{'coordinator':_0x378098});case c[_0x58cf5d(0x216)]:return _0x2ca373(Te,{});case c[_0x58cf5d(0x1da)]:return _0x2ca373(Ae,{'coordinator':_0x378098});default:return null;}}function $e(_0x20c0c7){const _0x43e1a7=_0x6e67a4,{coordinator:_0x2d1058}=_0x20c0c7;return _0xbe0ce5(_0x511b38,{'children':[_0x2ca373('div',{'className':_0x43e1a7(0x1e0),'children':_0x43e1a7(0x22f)}),_0x2ca373(_0x29989c,{'onClick':()=>_0x2d1058['tryStartPresenting'](),'children':_0x43e1a7(0x19e)})]});}function xe(_0xcdda64){const _0x5bb45d=_0x6e67a4,{coordinator:_0x1cd96b}=_0xcdda64;return _0xbe0ce5(_0x511b38,{'children':[_0x2ca373('div',{'className':_0x5bb45d(0x1e0),'children':_0x5bb45d(0x1fc)}),_0x2ca373(_0x29989c,{'onClick':()=>_0x1cd96b[_0x5bb45d(0x1cb)](),'children':_0x5bb45d(0x1de)})]});}function Pe(_0x5863f7){const _0x58b85d=_0x6e67a4,{coordinator:_0x1f9cec}=_0x5863f7;return _0xbe0ce5(_0x511b38,{'children':[_0x2ca373(_0x58b85d(0x18f),{'className':_0x58b85d(0x1e0),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2ca373(_0x29989c,{'variant':'text','onClick':()=>_0x1f9cec[_0x58b85d(0x1f7)](),'children':_0x58b85d(0x1f4)})]});}function Ae(_0x9d692b){const _0x5cb381=_0x6e67a4,{coordinator:_0x893fd4}=_0x9d692b;return _0xbe0ce5(_0x511b38,{'children':[_0x2ca373(_0x5cb381(0x18f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5cb381(0x1fe)}),_0x2ca373(_0x29989c,{'variant':_0x5cb381(0x1a7),'onClick':()=>_0x893fd4[_0x5cb381(0x1a0)](),'children':_0x5cb381(0x211)})]});}function Te(){const _0x48e452=_0x6e67a4;return _0x2ca373(_0x511b38,{'children':_0x48e452(0x195)});}var Fe=Object[_0x6e67a4(0x1ec)],He=(_0x156559,_0x2d2eb3,_0x3fc83f,_0x5ebf5c)=>{const _0x14506f=_0x6e67a4;for(var _0x17ab58=_0x5ebf5c>0x1?void 0x0:_0x5ebf5c?Fe(_0x2d2eb3,_0x3fc83f):_0x2d2eb3,_0x5198c7=_0x156559[_0x14506f(0x18a)]-0x1,_0x4062e8;_0x5198c7>=0x0;_0x5198c7--)(_0x4062e8=_0x156559[_0x5198c7])&&(_0x17ab58=_0x4062e8(_0x17ab58)||_0x17ab58);return _0x17ab58;},A=(_0x2b0a5a,_0x1630a7)=>(_0x5d54eb,_0x4ff6e1)=>_0x1630a7(_0x5d54eb,_0x4ff6e1,_0x2b0a5a);let m=class extends _0x5e24bb{constructor(_0x1182c4,_0x631c45){const _0x588ab3=_0x6e67a4;super(),this[_0x588ab3(0x1b8)]=_0x1182c4,this[_0x588ab3(0x209)]=_0x631c45,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x4f05c0=_0x6e67a4;this['disposeWithMe'](this[_0x4f05c0(0x209)][_0x4f05c0(0x22c)](_0x47949f[_0x4f05c0(0x1f5)],()=>_0x296dfc(Le,this['_injector'])));}};m=He([A(0x0,_0x59f7c6(_0x4531be)),A(0x1,_0x27b447)],m);const ye=_0x6e67a4(0x1aa),T={};function _0x4234(){const _0x58ace9=['registerComponent','_handleNewChangeSets','3ZJPFKY','Present\x20this\x20document','colorChannel1','LiveShareIcon','delete','type','length','_startFollowing','594696pOVxRm','status$','0\x200\x2017\x2017','div','registerSharedOperation','_stopFollowing','_commandService','UNIVER_LIVE_SHARE_PLUGIN','override','You\x27are\x20offline.','OPERATION','_commandDisposable','end','random','disposeWithMe','5yrCRed','_handleTerminate','_sharedOperations','Start','unitId','stopPresenting','displayName','_entities','entries','symbol','data','event$','default','485490pqUUdB','getMemberID','live-share.config','has','IDLE','svg','_status$','dispose','idle','getLiveShareCoordinator','_init','3394746sRIDjU','getInitialStates','children','use','mask','_injector','_handleOperation','add','_unitID','shouldShareOperation','get','defineProperty','button','pipe','from','subscribe','asObservable','getTypeOfUnitDisposed$','parse','xlink:href','_handleOnline','stringify','forEach','set','stopFollowing','_reporters','string','presenter','includes','tag','requireSession','evenodd','FOLLOWING','NOT_FOLLOWING','_configService','_handleNewHost','currentColor','1em','substring','PRESENTING','univer-size-4','not-following','LIVESHARE_REQUEST_HOST','Stop\x20following','getUnitId','univer-mb-3\x20univer-w-full\x20univer-text-sm','defs','_presenter','then','_collabSession','_beIdle','UNIVER_SHEET','complete','executeCommand','idSuffix','_startPresenting','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','getOwnPropertyDescriptor','524128cuqhrt','getConfig','univerjs-icon\x20univerjs-icon-','offline','sheet','635140DFbyiI','init','Start\x20following','HEADER_MENU','2621020btxZtJ','startFollowing','pluginName','map','trim','tryStartPresenting','You\x27re\x20following\x20the\x20presenter','current','You\x27re\x20presenting\x20the\x20document','following','unsubscribe','send','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','_handleOffline','19644BGGqJL','reverse','LIVESHARE_TERMINATE','_startLiveShareCoordinator','path','_uiPartsService','_univerInstanceService','http://www.w3.org/2000/svg','defIds','attrs','next','getValue','_collabSessionService','Stop\x20presenting','toString','getStatus','_status','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','OFFLINE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_config','presenting','21ENHpxJ','dispose$','fill','params','mutations','ONLINE','_stopPresenting','createInstance','getTypeOfUnitAdded$','operations','registerInitialStateReporter','memberID','_liveShareService','clear','onCommandExecuted','LIVESHARE_OPERATION','find','getCurrentTypeOfUnit$'];_0x4234=function(){return _0x58ace9;};return _0x4234();}var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x3d8a60,_0x28db47,_0x139ea8,_0x2063df)=>{const _0x36d01c=_0x6e67a4;for(var _0x4529f6=_0x2063df>0x1?void 0x0:_0x2063df?Ue(_0x28db47,_0x139ea8):_0x28db47,_0x4a271c=_0x3d8a60[_0x36d01c(0x18a)]-0x1,_0x58a25e;_0x4a271c>=0x0;_0x4a271c--)(_0x58a25e=_0x3d8a60[_0x4a271c])&&(_0x4529f6=_0x58a25e(_0x4529f6)||_0x4529f6);return _0x4529f6;},je=(_0x17a460,_0x1d08af)=>(_0x4195dd,_0x59a097)=>_0x1d08af(_0x4195dd,_0x59a097,_0x17a460);let I=class extends _0x5e24bb{constructor(_0x169bce){const _0x1a264c=_0x6e67a4;super(),this['_liveShareService']=_0x169bce,this[_0x1a264c(0x1b2)]();}[_0x6e67a4(0x1b2)](){const _0x173351=_0x6e67a4;[_0x13aa72['id'],_0x4e9adb['id'],_0x553e77['id']][_0x173351(0x1c9)](_0x359c56=>{const _0x3ae2c6=_0x173351;this[_0x3ae2c6(0x19a)](this[_0x3ae2c6(0x226)]['registerSharedOperation'](_0x359c56));});}};I=Ve([je(0x0,_0x59f7c6(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x492f5b,_0x530f7a,_0x5b619e)=>_0x530f7a in _0x492f5b?Me(_0x492f5b,_0x530f7a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b619e}):_0x492f5b[_0x530f7a]=_0x5b619e,We=(_0x15f183,_0x2980e6,_0x4b483e,_0x576d45)=>{const _0x28e8cb=_0x6e67a4;for(var _0x88ee99=_0x576d45>0x1?void 0x0:_0x576d45?ke(_0x2980e6,_0x4b483e):_0x2980e6,_0x48bae3=_0x15f183[_0x28e8cb(0x18a)]-0x1,_0x2566cf;_0x48bae3>=0x0;_0x48bae3--)(_0x2566cf=_0x15f183[_0x48bae3])&&(_0x88ee99=_0x2566cf(_0x88ee99)||_0x88ee99);return _0x88ee99;},F=(_0x9e523f,_0x43ee28)=>(_0x3d3fc7,_0x420bd6)=>_0x43ee28(_0x3d3fc7,_0x420bd6,_0x9e523f),B=(_0x37b214,_0x3d7f1f,_0x22a0e8)=>Ge(_0x37b214,typeof _0x3d7f1f!=_0x6e67a4(0x1a4)?_0x3d7f1f+'':_0x3d7f1f,_0x22a0e8);const Ye=_0x6e67a4(0x193);let b=class extends _0x5cd1de{constructor(_0x153859=T,_0x562ddc,_0x5a18ec){const _0x108598=_0x6e67a4;super(),this[_0x108598(0x218)]=_0x153859,this[_0x108598(0x1b8)]=_0x562ddc,this[_0x108598(0x1d5)]=_0x5a18ec;const {..._0x7ee6ec}=_0x727060({},T,this[_0x108598(0x218)]);this[_0x108598(0x1d5)]['setConfig'](ye,_0x7ee6ec);}['onStarting'](){const _0x39e603=_0x6e67a4;_0x28a48e(this[_0x39e603(0x1b8)],_0x357330([[L],[S],[I],[m]],this[_0x39e603(0x218)][_0x39e603(0x194)])),_0x25c3b0(this[_0x39e603(0x1b8)],[[I]]);}['onRendered'](){const _0x570ca8=_0x6e67a4;_0x25c3b0(this[_0x570ca8(0x1b8)],[[m]]);}};B(b,_0x6e67a4(0x189),_0x118f42['UNIVER_UNKNOWN']),B(b,_0x6e67a4(0x1f8),Ye),b=We([_0xe1d233(_0x4a1e33),F(0x1,_0x59f7c6(_0x4531be)),F(0x2,_0x3f6d6e)],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 _0xdec3d=_0x41f0;(function(_0x154676,_0x52e1c2){const _0x27fa8e=_0x41f0,_0x1fd54c=_0x154676();while(!![]){try{const _0x56be66=parseInt(_0x27fa8e(0x14f))/0x1+parseInt(_0x27fa8e(0x15a))/0x2+-parseInt(_0x27fa8e(0x150))/0x3*(-parseInt(_0x27fa8e(0x15f))/0x4)+-parseInt(_0x27fa8e(0x155))/0x5*(parseInt(_0x27fa8e(0x15c))/0x6)+-parseInt(_0x27fa8e(0x151))/0x7+parseInt(_0x27fa8e(0x146))/0x8+-parseInt(_0x27fa8e(0x162))/0x9;if(_0x56be66===_0x52e1c2)break;else _0x1fd54c['push'](_0x1fd54c['shift']());}catch(_0x5e0256){_0x1fd54c['push'](_0x1fd54c['shift']());}}}(_0x5126,0xc1887));function _0x41f0(_0x44ea44,_0x5cbd75){_0x44ea44=_0x44ea44-0x143;const _0x5126fb=_0x5126();let _0x41f08c=_0x5126fb[_0x44ea44];return _0x41f08c;}import{LiveShareController as _0x3c6283,LiveShareStatus as _0x5ce499}from'@univerjs-pro/live-share';function _0x5126(){const _0x5ec4a5=['PRESENTING','1409934MqEmQy','886194bjFicO','6647116WdeAOD','getSheetId','startColumn','startFollowing','124520fqgvfM','syncExecuteCommand','stopFollowing','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','2812896zVyZEM','stopPresenting','372azBYjC','tryStartPresenting','get','12MROtiH','getUnitId','_initialize','11722653TjMiOC','getActiveWorkbook','getActiveSheet','getId','7090304XGhsmN','extend','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startPresenting','_commandService','_injector','getRenderById'];_0x5126=function(){return _0x5ec4a5;};return _0x5126();}import{IRenderManagerService as _0x1be804}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3bc398}from'@univerjs/sheets';import{SetScrollOperation as _0x56e6db}from'@univerjs/sheets-ui';import{FRange as _0x335293}from'@univerjs/sheets/facade';import{FUniver as _0x451090,FEnum as _0xf8fd90}from'@univerjs/core/facade';class I extends _0x335293{[_0xdec3d(0x161)](_0x3ec33d,_0x563e98,_0x17db44,_0x28b84d,_0x34ec08){const _0x16156c=_0xdec3d,_0x17ed33=_0x3ec33d['get'](_0x3c6283),_0x2d9304=_0x3ec33d[_0x16156c(0x15e)](_0x1be804),_0x3c3e74=_0x563e98['getUnitId'](),_0x1cee4e=_0x563e98[_0x16156c(0x144)](),_0x769ff7=_0x17ed33[_0x16156c(0x159)](_0x3c3e74);(_0x769ff7==null?void 0x0:_0x769ff7['getStatus']())!==_0x5ce499[_0x16156c(0x14e)]||(_0x17db44[_0x16156c(0x152)]()!==_0x1cee4e[_0x16156c(0x152)]()&&this[_0x16156c(0x14b)]['executeCommand'](_0x3bc398['id'],{'unitId':_0x3c3e74,'subUnitId':_0x17db44[_0x16156c(0x152)]()}),!_0x2d9304[_0x16156c(0x14d)](_0x3c3e74))||_0x34ec08[_0x16156c(0x156)](_0x56e6db['id'],{'unitId':_0x563e98[_0x16156c(0x160)](),'sheetId':_0x17db44[_0x16156c(0x152)](),'sheetViewStartRow':_0x28b84d[_0x16156c(0x148)],'sheetViewStartColumn':_0x28b84d[_0x16156c(0x153)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x335293[_0xdec3d(0x147)](I);class m extends _0x451090{['getLiveShareStatus'](){const _0x23e4df=_0xdec3d;var _0x12f450,_0x56155f;const _0x410559=this['_injector']['get'](_0x3c6283),_0x4d8018=(_0x12f450=this[_0x23e4df(0x143)]())==null?void 0x0:_0x12f450[_0x23e4df(0x145)]();if(!_0x4d8018)throw new Error(_0x23e4df(0x158));const _0x3c46cc=_0x410559[_0x23e4df(0x159)](_0x4d8018);return(_0x56155f=_0x3c46cc==null?void 0x0:_0x3c46cc['getStatus']())!=null?_0x56155f:_0x5ce499['IDLE'];}[_0xdec3d(0x154)](){const _0x3a852a=_0xdec3d;var _0x5bd449;const _0x421eaf=this['_injector'][_0x3a852a(0x15e)](_0x3c6283),_0x1c5aff=(_0x5bd449=this['getActiveWorkbook']())==null?void 0x0:_0x5bd449[_0x3a852a(0x145)]();if(!_0x1c5aff)throw new Error('No\x20active\x20workbook\x20found.');const _0x14b2b=_0x421eaf['getLiveShareCoordinatorSync'](_0x1c5aff);if(!_0x14b2b)throw new Error(_0x3a852a(0x149));_0x14b2b[_0x3a852a(0x154)]();}[_0xdec3d(0x157)](){const _0x3844cf=_0xdec3d;var _0x288dde;const _0x1fe75b=this['_injector'][_0x3844cf(0x15e)](_0x3c6283),_0x5a84f4=(_0x288dde=this[_0x3844cf(0x143)]())==null?void 0x0:_0x288dde['getId']();if(!_0x5a84f4)throw new Error(_0x3844cf(0x158));const _0x56e10a=_0x1fe75b[_0x3844cf(0x159)](_0x5a84f4);if(!_0x56e10a)throw new Error(_0x3844cf(0x149));_0x56e10a[_0x3844cf(0x157)]();}[_0xdec3d(0x14a)](){const _0x5b8bd4=_0xdec3d;var _0x2fd7ff;const _0x1f5051=this['_injector'][_0x5b8bd4(0x15e)](_0x3c6283),_0x3cda5b=(_0x2fd7ff=this['getActiveWorkbook']())==null?void 0x0:_0x2fd7ff[_0x5b8bd4(0x145)]();if(!_0x3cda5b)throw new Error(_0x5b8bd4(0x158));const _0x28866b=_0x1f5051[_0x5b8bd4(0x159)](_0x3cda5b);if(!_0x28866b)throw new Error(_0x5b8bd4(0x149));_0x28866b[_0x5b8bd4(0x15d)]();}[_0xdec3d(0x15b)](){const _0x290065=_0xdec3d;var _0x50b3cb;const _0x539995=this[_0x290065(0x14c)][_0x290065(0x15e)](_0x3c6283),_0x2c2301=(_0x50b3cb=this[_0x290065(0x143)]())==null?void 0x0:_0x50b3cb[_0x290065(0x145)]();if(!_0x2c2301)throw new Error(_0x290065(0x158));const _0xd59531=_0x539995[_0x290065(0x159)](_0x2c2301);if(!_0xd59531)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xd59531['stopPresenting']();}}_0x451090[_0xdec3d(0x147)](m);class C extends _0xf8fd90{get['LiveShareStatusEnum'](){return _0x5ce499;}}_0xf8fd90['extend'](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x480de2=_0x3214;(function(_0x5b4f45,_0x275d27){const _0x10c06c=_0x3214,_0x4efa24=_0x5b4f45();while(!![]){try{const _0x31c00a=-parseInt(_0x10c06c(0xbb))/0x1*(-parseInt(_0x10c06c(0x10f))/0x2)+-parseInt(_0x10c06c(0xda))/0x3+-parseInt(_0x10c06c(0xbd))/0x4+-parseInt(_0x10c06c(0x117))/0x5*(-parseInt(_0x10c06c(0xfc))/0x6)+parseInt(_0x10c06c(0x8c))/0x7*(-parseInt(_0x10c06c(0x84))/0x8)+-parseInt(_0x10c06c(0x121))/0x9+parseInt(_0x10c06c(0x92))/0xa*(parseInt(_0x10c06c(0xae))/0xb);if(_0x31c00a===_0x275d27)break;else _0x4efa24['push'](_0x4efa24['shift']());}catch(_0x37728f){_0x4efa24['push'](_0x4efa24['shift']());}}}(_0x4f88,0x81f47));var J=Object['defineProperty'],K=(_0x461ca2,_0x4fd856,_0x413d35)=>_0x4fd856 in _0x461ca2?J(_0x461ca2,_0x4fd856,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413d35}):_0x461ca2[_0x4fd856]=_0x413d35,u=(_0x5b1943,_0x3e3b9e,_0x253d78)=>K(_0x5b1943,typeof _0x3e3b9e!=_0x480de2(0x106)?_0x3e3b9e+'':_0x3e3b9e,_0x253d78);import{Disposable as _0x445766,toDisposable as _0x5b0e28,IUniverInstanceService as _0x59e319,Inject as _0x31d8e9,Injector as _0x4d1ef7,IConfigService as _0xea2396,ICommandService as _0x358f4b,RxDisposable as _0x22ff37,UniverInstanceType as _0x1e0e7d,DisposableCollection as _0xb8bf1f,CommandType as _0x2baff1,DependentOn as _0x2532bd,Plugin as _0x218f1f,merge as _0x477aae,registerDependencies as _0xaed711,mergeOverrideWithDependencies as _0xb0235f,touchDependencies as _0xd465dc}from'@univerjs/core';import{useDependency as _0x5b95cb,useObservable as _0x477adc,IUIPartsService as _0x1618ae,BuiltInUIPart as _0x589e20,connectInjector as _0x2bfcca}from'@univerjs/ui';import{jsx as _0x4f48f3,jsxs as _0x4070ad,Fragment as _0x5480f9}from'react/jsx-runtime';import{Dropdown as _0x43303b,clsx as _0x219d87,Button as _0x5f10a4}from'@univerjs/design';import{useRef as _0x2d1821,createElement as _0x4e41ac,forwardRef as _0x46ea63,useState as _0x3126fc,useEffect as _0x42fb54}from'react';import{CollaborationEvent as _0x5cbca8,parseProtocolChangeset as _0x432e75}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x23bc86,SessionStatus as _0x1d465d,UniverCollaborationClientPlugin as _0x1e0ea8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x29dcc9,SetWorksheetActiveOperation as _0x42d600}from'@univerjs/sheets';import{BehaviorSubject as _0x2d7f44,Subject as _0x35191d}from'rxjs';import{takeUntil as _0x227b42,throttleTime as _0x55381b}from'rxjs/operators';import{SetZoomRatioOperation as _0xee7cd,SetScrollOperation as _0x504137}from'@univerjs/sheets-ui';function k({ref:_0x1f377f,..._0x2b47fb}){const _0x59af70=_0x480de2,{icon:_0x39cd92,id:_0xa0f525,className:_0x4aa8ae,extend:_0x336fd9,..._0x504ac5}=_0x2b47fb,_0xbc87d8=(_0x59af70(0xa0)+_0xa0f525+'\x20'+(_0x4aa8ae||''))[_0x59af70(0xc9)](),_0x3ecab3=_0x2d1821('_'+Oe());return G(_0x39cd92,''+_0xa0f525,{'defIds':_0x39cd92['defIds'],'idSuffix':_0x3ecab3[_0x59af70(0x107)]},{'ref':_0x1f377f,'className':_0xbc87d8,..._0x504ac5},_0x336fd9);}function G(_0x8e1b9e,_0x4d9c84,_0x12c0b1,_0x4d9bee,_0x2a75a1){const _0x33094c=_0x480de2;return _0x4e41ac(_0x8e1b9e['tag'],{'key':_0x4d9c84,...be(_0x8e1b9e,_0x12c0b1,_0x2a75a1),..._0x4d9bee},(Ee(_0x8e1b9e,_0x12c0b1)[_0x33094c(0xb8)]||[])[_0x33094c(0x119)]((_0x451e06,_0x4c8de1)=>G(_0x451e06,_0x4d9c84+'-'+_0x8e1b9e[_0x33094c(0xf2)]+'-'+_0x4c8de1,_0x12c0b1,void 0x0,_0x2a75a1)));}function be(_0x16dc26,_0x2470f7,_0x4b0b64){const _0x37b053=_0x480de2,_0x3ba049={..._0x16dc26[_0x37b053(0xc5)]};_0x4b0b64!=null&&_0x4b0b64[_0x37b053(0xd9)]&&_0x3ba049[_0x37b053(0x112)]===_0x37b053(0xd9)&&(_0x3ba049['fill']=_0x4b0b64[_0x37b053(0xd9)]),_0x16dc26[_0x37b053(0xf2)]===_0x37b053(0xbe)&&_0x3ba049['id']&&(_0x3ba049['id']=_0x3ba049['id']+_0x2470f7['idSuffix']),Object[_0x37b053(0x11b)](_0x3ba049)[_0x37b053(0x11d)](([_0x5e987c,_0x16d5a5])=>{const _0x4f4e2b=_0x37b053;_0x5e987c==='mask'&&typeof _0x16d5a5==_0x4f4e2b(0x8f)&&(_0x3ba049[_0x5e987c]=_0x16d5a5[_0x4f4e2b(0xc4)](/url\(#(.*)\)/,_0x4f4e2b(0xaa)+_0x2470f7[_0x4f4e2b(0xef)]+')'));});const {defIds:_0x288fc2}=_0x2470f7;return!_0x288fc2||_0x288fc2[_0x37b053(0xbf)]===0x0||(_0x16dc26['tag']==='use'&&_0x3ba049[_0x37b053(0xab)]&&(_0x3ba049['xlink:href']=_0x3ba049['xlink:href']+_0x2470f7[_0x37b053(0xef)]),Object[_0x37b053(0x11b)](_0x3ba049)[_0x37b053(0x11d)](([_0x52a9f0,_0x2196f9])=>{const _0x2e47d9=_0x37b053;typeof _0x2196f9==_0x2e47d9(0x8f)&&(_0x3ba049[_0x52a9f0]=_0x2196f9[_0x2e47d9(0xc4)](/url\(#(.*)\)/,_0x2e47d9(0xaa)+_0x2470f7['idSuffix']+')'));})),_0x3ba049;}function _0x4f88(){const _0x44b2af=['univer-size-4','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','_fetchOperations','_commandService','pipe','getInitialStates','currentColor','end','LIVESHARE_NEW_HOST','registerComponent','_handleOnline','colorChannel1','2916078oYCONN','_status','Stop\x20following','_stopPresenting','You\x27re\x20presenting\x20the\x20document','path','_unitID','disposeWithMe','div','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','LIVESHARE_OPERATION','_status$','_liveShareService','Present\x20this\x20document','shouldShareOperation','has','Stop\x20presenting','UNIVER_SHEET','dispose$','PRESENTING','_startFollowing','idSuffix','UniverIcon','NEW_CHANGESETS','tag','LIVESHARE_TERMINATE','getLiveShareCoordinator','requireSession','_startPresenting','OFFLINE','LiveShareIcon','You\x27are\x20offline.','_configService','_univerInstanceService','28746NtXJEV','dispose','delete','idle','sessionStatus$','event$','_injector','getOwnPropertyDescriptor','none','IDLE','symbol','current','defineProperty','stopFollowing','HEADER_MENU','_handleOperation','setConfig','1em','_reporters','2638JazVTb','assign','defs','fill','type','subscribe','LIVESHARE_REQUEST_HOST','stringify','435lgdCCJ','_handleOffline','map','includes','entries','live-share-icon','forEach','_stopFollowing','_commandDisposable','following','8406279PXjokW','_startLiveShareCoordinator','getUnitId','executeCommand','toString','_uiPartsService','startFollowing','_init','37096NHKPto','init','onStarting','evenodd','_entities','presenting','_collabSessionService','univer-mb-3\x20univer-w-full\x20univer-text-sm','287bLhYqU','OPERATION','live-share.config','string','Start\x20following','FOLLOWING','6230bZgPbI','_config','svg','send','_beIdle','Start','params','tryStartPresenting','not-following','getTypeOfUnitDisposed$','getConfig','getTypeOfUnitAdded$','sheet','data','univerjs-icon\x20univerjs-icon-','UNIVER_UNKNOWN','pluginName','onCommandExecuted','get','next','_mountLiveShare','getLiveShareCoordinatorSync','complete','offline','url(#$1','xlink:href','_presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','40304BMcGXR','reverse','stopPresenting','add','NOT_FOLLOWING','displayName','_handleNewHost','unitId','registerSharedOperation','_handleTerminate','children','getMemberID','from','31pQmyzD','_sharedOperations','447636cnNcDg','mask','length','getValue','set','onRendered','asObservable','replace','attrs','presenter','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','getCurrentTypeOfUnit$','trim','SAME_OPERATION_SHARE_INTERVAL','override','_collabSession','status$'];_0x4f88=function(){return _0x44b2af;};return _0x4f88();}function Ee(_0x3b253d,_0x1a020c){const _0xb4951d=_0x480de2;var _0x253c02;const {defIds:_0x210575}=_0x1a020c;return!_0x210575||_0x210575['length']===0x0?_0x3b253d:_0x3b253d['tag']===_0xb4951d(0x111)&&((_0x253c02=_0x3b253d[_0xb4951d(0xb8)])!=null&&_0x253c02['length'])?{..._0x3b253d,'children':_0x3b253d[_0xb4951d(0xb8)][_0xb4951d(0x119)](_0xbea93e=>typeof _0xbea93e[_0xb4951d(0xc5)]['id']==_0xb4951d(0x8f)&&_0x210575&&_0x210575[_0xb4951d(0x11a)](_0xbea93e['attrs']['id'])?{..._0xbea93e,'attrs':{..._0xbea93e[_0xb4951d(0xc5)],'id':_0xbea93e[_0xb4951d(0xc5)]['id']+_0x1a020c[_0xb4951d(0xef)]}}:_0xbea93e)}:_0x3b253d;}function Oe(){const _0x18f0fe=_0x480de2;return Math['random']()[_0x18f0fe(0x80)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x480de2(0xf0);const we={'tag':_0x480de2(0x94),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x480de2(0x104),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x480de2(0x10d)},'children':[{'tag':_0x480de2(0xdf),'attrs':{'fill':_0x480de2(0xd4),'d':_0x480de2(0xcf)}},{'tag':'path','attrs':{'fill':_0x480de2(0xd4),'d':_0x480de2(0xe3),'fillRule':'evenodd','clipRule':_0x480de2(0x87)}}]},W=_0x46ea63(function(_0x3df12e,_0x413554){const _0x4cba78=_0x480de2;return _0x4e41ac(k,Object[_0x4cba78(0x110)]({},_0x3df12e,{'id':_0x4cba78(0x11c),'ref':_0x413554,'icon':we}));});W[_0x480de2(0xb3)]=_0x480de2(0xf8);class L extends _0x445766{constructor(){const _0x2f1256=_0x480de2;super(...arguments),u(this,_0x2f1256(0xbc),new Set()),u(this,_0x2f1256(0x10e),new Set());}['registerSharedOperation'](_0x9e9e4d){const _0x10aa7c=_0x480de2;return this['_sharedOperations'][_0x10aa7c(0xb1)](_0x9e9e4d),_0x5b0e28(()=>this[_0x10aa7c(0xbc)]['delete'](_0x9e9e4d));}['registerInitialStateReporter'](_0x260e19){const _0x2aecc4=_0x480de2;return this['_reporters'][_0x2aecc4(0xb1)](_0x260e19),_0x5b0e28(()=>this[_0x2aecc4(0x10e)][_0x2aecc4(0xfe)](_0x260e19));}['shouldShareOperation'](_0x2c5c2a){const _0x442917=_0x480de2;return this['_sharedOperations'][_0x442917(0xe9)](_0x2c5c2a);}['getInitialStates'](_0x1c0749){const _0x233238=_0x480de2;return Array[_0x233238(0xba)](this['_reporters'])[_0x233238(0x119)](_0x352188=>_0x352188(_0x1c0749));}}var Ne=Object[_0x480de2(0x103)],Y=(_0x478bc7,_0x580242,_0x5199e8,_0x1b7626)=>{const _0x58404b=_0x480de2;for(var _0x2b03cb=_0x1b7626>0x1?void 0x0:_0x1b7626?Ne(_0x580242,_0x5199e8):_0x580242,_0x49e4fc=_0x478bc7[_0x58404b(0xbf)]-0x1,_0x2a0e1e;_0x49e4fc>=0x0;_0x49e4fc--)(_0x2a0e1e=_0x478bc7[_0x49e4fc])&&(_0x2b03cb=_0x2a0e1e(_0x2b03cb)||_0x2b03cb);return _0x2b03cb;},_=(_0x1ee860,_0x48db45)=>(_0xa68f8c,_0x30646c)=>_0x48db45(_0xa68f8c,_0x30646c,_0x1ee860);let S=class extends _0x22ff37{constructor(_0x53007f,_0x36da91,_0x3de8a0){const _0x3824a1=_0x480de2;super(),u(this,_0x3824a1(0x88),new Map()),(this['_univerInstanceService']=_0x53007f,this['_injector']=_0x36da91,this[_0x3824a1(0x8a)]=_0x3de8a0,this['_init']());}async[_0x480de2(0xf4)](_0xdeef36){const _0x42f639=_0x480de2;return this[_0x42f639(0x88)][_0x42f639(0xe9)](_0xdeef36)||await this[_0x42f639(0x7d)](_0xdeef36),this[_0x42f639(0x88)][_0x42f639(0xa4)](_0xdeef36);}[_0x480de2(0xa7)](_0x3f6404){const _0x23f827=_0x480de2;var _0x1f01d4;return(_0x1f01d4=this['_entities'][_0x23f827(0xa4)](_0x3f6404))!=null?_0x1f01d4:null;}[_0x480de2(0x83)](){const _0x404733=_0x480de2;this[_0x404733(0xfb)][_0x404733(0x9d)](_0x1e0e7d[_0x404733(0xeb)])[_0x404733(0xd2)](_0x227b42(this['dispose$']))[_0x404733(0x114)](async _0x14f98f=>{const _0x25cae0=_0x404733,_0x5a31d4=_0x14f98f[_0x25cae0(0x7e)]();this['_entities'][_0x25cae0(0xe9)](_0x5a31d4)||this[_0x25cae0(0x7d)](_0x5a31d4);}),this['_univerInstanceService'][_0x404733(0x9b)](_0x1e0e7d[_0x404733(0xeb)])['pipe'](_0x227b42(this[_0x404733(0xec)]))[_0x404733(0x114)](_0x4d2dba=>{const _0x423f18=_0x404733,_0x66f1aa=_0x4d2dba[_0x423f18(0x7e)](),_0x1cc2c8=this[_0x423f18(0x88)]['get'](_0x66f1aa);_0x1cc2c8==null||_0x1cc2c8[_0x423f18(0xfd)]();});}async[_0x480de2(0x7d)](_0x23d24e){const _0x492e3a=_0x480de2,_0x56c05a=await this['_collabSessionService'][_0x492e3a(0xf5)](_0x23d24e),_0x1a44db=this[_0x492e3a(0x102)]['createInstance'](N,_0x23d24e,_0x56c05a);return _0x1a44db[_0x492e3a(0x85)](),this['_entities'][_0x492e3a(0xc1)](_0x23d24e,_0x1a44db),_0x1a44db;}};S=Y([_(0x0,_0x59e319),_(0x1,_0x31d8e9(_0x4d1ef7)),_(0x2,_0x31d8e9(_0x23bc86))],S);function _0x3214(_0x429c19,_0x580096){const _0x4f88eb=_0x4f88();return _0x3214=function(_0x32142e,_0x5e2814){_0x32142e=_0x32142e-0x7d;let _0x29b6e5=_0x4f88eb[_0x32142e];return _0x29b6e5;},_0x3214(_0x429c19,_0x580096);}var c=(_0x2250b0=>(_0x2250b0[_0x480de2(0xf7)]=_0x480de2(0xa9),_0x2250b0[_0x480de2(0x105)]=_0x480de2(0xff),_0x2250b0[_0x480de2(0x91)]=_0x480de2(0x120),_0x2250b0[_0x480de2(0xb2)]=_0x480de2(0x9a),_0x2250b0[_0x480de2(0xed)]='presenting',_0x2250b0))(c||{});const Ce=_0x480de2(0xca),De=0xc8;let N=class extends _0x22ff37{constructor(_0x3b1a1f,_0x17a899,_0x2677f2,_0x3f583b,_0x14b480){const _0x28d07f=_0x480de2;super(),u(this,'_status$',new _0x2d7f44('idle')),u(this,_0x28d07f(0xcd),this['_status$'][_0x28d07f(0xc3)]()),u(this,_0x28d07f(0x83),!0x1),u(this,_0x28d07f(0x11f),null),u(this,_0x28d07f(0xac),null),(this['_unitID']=_0x3b1a1f,this['_collabSession']=_0x17a899,this['_configService']=_0x2677f2,this[_0x28d07f(0xe6)]=_0x3f583b,this[_0x28d07f(0xd1)]=_0x14b480);}get['_status'](){const _0x1ac7d3=_0x480de2;return this[_0x1ac7d3(0xe5)][_0x1ac7d3(0xc0)]();}['dispose'](){const _0x5e09fc=_0x480de2;var _0x27a031;(_0x27a031=this['_commandDisposable'])==null||_0x27a031['dispose'](),this[_0x5e09fc(0xe5)][_0x5e09fc(0xa5)](_0x5e09fc(0xff)),this[_0x5e09fc(0xe5)][_0x5e09fc(0xa8)]();}['getStatus'](){const _0x5cdc36=_0x480de2;return this[_0x5cdc36(0xdb)];}[_0x480de2(0x85)](){const _0x4ed8f1=_0x480de2;this[_0x4ed8f1(0x83)]||(this[_0x4ed8f1(0x83)]=!0x0,this['_collabSession'][_0x4ed8f1(0x100)][_0x4ed8f1(0xd2)](_0x227b42(this[_0x4ed8f1(0xec)]))[_0x4ed8f1(0x114)](_0x55d50c=>{const _0x385180=_0x4ed8f1;switch(_0x55d50c){case _0x1d465d['OFFLINE']:this['_handleOffline']();break;case _0x1d465d['ONLINE']:this[_0x385180(0xd8)]();break;}}),this[_0x4ed8f1(0xcc)][_0x4ed8f1(0x101)][_0x4ed8f1(0xd2)](_0x227b42(this[_0x4ed8f1(0xec)]))[_0x4ed8f1(0x114)](_0x1de0f2=>{const _0x217b39=_0x4ed8f1,{eventID:_0x1bf5a4}=_0x1de0f2;switch(_0x1bf5a4){case _0x5cbca8[_0x217b39(0xd6)]:this[_0x217b39(0xb4)](_0x1de0f2);break;case _0x5cbca8[_0x217b39(0xe4)]:this[_0x217b39(0x10b)](_0x1de0f2);break;case _0x5cbca8[_0x217b39(0xf3)]:this[_0x217b39(0xb7)]();break;case _0x5cbca8[_0x217b39(0xf1)]:this['_handleNewChangeSets'](_0x1de0f2);break;}}));}[_0x480de2(0x99)](){const _0x1361b4=_0x480de2;this[_0x1361b4(0xcc)]['send']({'eventID':_0x5cbca8[_0x1361b4(0x115)],'data':{'unitID':this[_0x1361b4(0xe0)],'userID':this[_0x1361b4(0xcc)][_0x1361b4(0xb9)]()}},this['_unitID']);}[_0x480de2(0xb0)](){const _0x372e5c=_0x480de2;this[_0x372e5c(0xdb)]==='presenting'&&(this[_0x372e5c(0xe5)][_0x372e5c(0xa5)]('idle'),this[_0x372e5c(0xcc)][_0x372e5c(0x95)]({'eventID':_0x5cbca8[_0x372e5c(0xf3)],'data':{'unitID':this[_0x372e5c(0xe0)]}},this[_0x372e5c(0xe0)]));}[_0x480de2(0x82)](){const _0xc43a56=_0x480de2;this[_0xc43a56(0xdb)]===_0xc43a56(0x9a)&&(this[_0xc43a56(0xe5)]['next'](_0xc43a56(0x120)),this[_0xc43a56(0xee)]());}[_0x480de2(0x109)](){const _0x244dc1=_0x480de2;this['_status']===_0x244dc1(0x120)&&this[_0x244dc1(0x11e)]();}[_0x480de2(0xb4)](_0x5a0ec2){const _0x140271=_0x480de2,{presenter:_0x3208f0}=_0x5a0ec2['data'],_0x5bc018=this[_0x140271(0xcc)][_0x140271(0xb9)]();this[_0x140271(0xac)]=_0x3208f0,_0x3208f0===_0x5bc018?(this[_0x140271(0x11e)](),this[_0x140271(0xf6)]()):this[_0x140271(0xdb)]!==_0x140271(0x9a)&&(this[_0x140271(0xdd)](),this[_0x140271(0xee)]());}[_0x480de2(0xd0)](){const _0x5f54f6=_0x480de2,_0x4995df={'eventID':_0x5cbca8['LIVESHARE_FETCH_OPERATIONS']};this[_0x5f54f6(0xcc)][_0x5f54f6(0x95)](_0x4995df,this[_0x5f54f6(0xe0)]);}[_0x480de2(0xb7)](){const _0x49b11b=_0x480de2;this[_0x49b11b(0xac)]=null,this[_0x49b11b(0xdb)]!==_0x49b11b(0x89)&&this[_0x49b11b(0x96)]();}['_handleNewChangeSets'](_0x1b7096){const _0x153f42=_0x480de2;if(this[_0x153f42(0xdb)]===_0x153f42(0x120)&&this[_0x153f42(0xac)]===_0x1b7096['data']['memberID']){const _0x34503f=_0x432e75(_0x1b7096[_0x153f42(0x9f)])['mutations'][_0x153f42(0xaf)]()['find'](_0x7afcd8=>_0x7afcd8['id']===_0x29dcc9['id']);if(_0x34503f){const _0x4ba76b=_0x34503f[_0x153f42(0x98)][_0x153f42(0xb5)],_0x15dba1=_0x34503f[_0x153f42(0x98)][_0x153f42(0x9e)]['id'];setTimeout(()=>{const _0x2ecaf5=_0x153f42;this['_commandService'][_0x2ecaf5(0x7f)](_0x42d600['id'],{'unitId':_0x4ba76b,'subUnitId':_0x15dba1},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x177141=_0x480de2;this['_status$']['next'](_0x177141(0x89));const _0x39f6be=new Map(),_0x3ff90b=this['_commandDisposable']=new _0xb8bf1f();_0x3ff90b[_0x177141(0xb1)](_0x5b0e28(()=>{_0x39f6be['forEach'](_0x293cd6=>_0x293cd6['complete']()),_0x39f6be['clear']();})),_0x3ff90b[_0x177141(0xb1)](this[_0x177141(0xd1)][_0x177141(0xa3)](_0x381eea=>{const _0x4a017b=_0x177141;var _0x4c0798;if(_0x381eea[_0x4a017b(0x113)]!==_0x2baff1[_0x4a017b(0x8d)]||!this['_liveShareService'][_0x4a017b(0xe8)](_0x381eea['id']))return;const {id:_0x520a4d}=_0x381eea;let _0x4f3b76;_0x39f6be['has'](_0x520a4d)?_0x4f3b76=_0x39f6be[_0x4a017b(0xa4)](_0x520a4d):(_0x4f3b76=new _0x35191d(),_0x39f6be[_0x4a017b(0xc1)](_0x520a4d,_0x4f3b76),_0x4f3b76[_0x4a017b(0xd2)](_0x55381b((_0x4c0798=this['_configService'][_0x4a017b(0x9c)](Ce))!=null?_0x4c0798:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a017b(0x114)](_0x26fda9=>{const _0x3bd224=_0x4a017b;this[_0x3bd224(0xcc)]['send']({'eventID':_0x5cbca8[_0x3bd224(0xe4)],'data':{'unitID':this[_0x3bd224(0xe0)],'operations':{[_0x26fda9['id']]:{'id':_0x26fda9['id'],'params':JSON[_0x3bd224(0x116)](_0x26fda9[_0x3bd224(0x98)])}}}},this[_0x3bd224(0xe0)]);})),_0x4f3b76['next'](_0x381eea);})),this[_0x177141(0xe6)][_0x177141(0xd3)](this[_0x177141(0xe0)])[_0x177141(0x11d)](_0x21f65b=>this[_0x177141(0xcc)][_0x177141(0x95)]({'eventID':_0x5cbca8[_0x177141(0xe4)],'data':{'unitID':this[_0x177141(0xe0)],'operations':{[_0x21f65b['id']]:{'id':_0x21f65b['id'],'params':JSON[_0x177141(0x116)](_0x21f65b['params'])}}}},this[_0x177141(0xe0)]));}[_0x480de2(0xdd)](){const _0x4cf352=_0x480de2;var _0xbf5732;this[_0x4cf352(0xe5)][_0x4cf352(0xa5)](_0x4cf352(0xff)),(_0xbf5732=this[_0x4cf352(0x11f)])==null||_0xbf5732[_0x4cf352(0xfd)](),this['_commandDisposable']=null;}[_0x480de2(0xee)](){const _0x21eac1=_0x480de2;var _0x50bcac;(_0x50bcac=this['_commandDisposable'])==null||_0x50bcac[_0x21eac1(0xfd)](),this[_0x21eac1(0xe5)][_0x21eac1(0xa5)](_0x21eac1(0x120));}['_beIdle'](){const _0x2a0fd7=_0x480de2;var _0x24cd7a;this[_0x2a0fd7(0xe5)][_0x2a0fd7(0xa5)]('idle'),(_0x24cd7a=this[_0x2a0fd7(0x11f)])==null||_0x24cd7a[_0x2a0fd7(0xfd)](),this[_0x2a0fd7(0x11f)]=null;}[_0x480de2(0x11e)](){const _0x98543e=_0x480de2;var _0x4bf86b;this[_0x98543e(0xe5)][_0x98543e(0xa5)](_0x98543e(0x9a)),(_0x4bf86b=this[_0x98543e(0x11f)])==null||_0x4bf86b[_0x98543e(0xfd)]();}[_0x480de2(0x10b)](_0x58c3f4){const _0x3a4f0c=_0x480de2;if(['presenting',_0x3a4f0c(0x9a),_0x3a4f0c(0xa9)][_0x3a4f0c(0x11a)](this[_0x3a4f0c(0xdb)])||!_0x58c3f4[_0x3a4f0c(0x9f)][_0x3a4f0c(0xc6)]||_0x58c3f4[_0x3a4f0c(0x9f)][_0x3a4f0c(0xc6)]===this[_0x3a4f0c(0xcc)][_0x3a4f0c(0xb9)]())return;this[_0x3a4f0c(0xdb)]===_0x3a4f0c(0xff)&&this[_0x3a4f0c(0xee)]();const _0x2d886e=_0x58c3f4[_0x3a4f0c(0x9f)]['operations'];Object['values'](_0x2d886e)[_0x3a4f0c(0x11d)](_0x16922f=>{const _0x23ed7c=_0x3a4f0c;this['_commandService']['executeCommand'](_0x16922f['id'],_0x16922f[_0x23ed7c(0x98)]?JSON['parse'](_0x16922f[_0x23ed7c(0x98)]):null,{'fromCollab':!0x0});});}[_0x480de2(0x118)](){const _0x2a63a5=_0x480de2;var _0x5e25ed;this[_0x2a63a5(0xe5)][_0x2a63a5(0xa5)](_0x2a63a5(0xa9)),(_0x5e25ed=this[_0x2a63a5(0x11f)])==null||_0x5e25ed[_0x2a63a5(0xfd)]();}[_0x480de2(0xd8)](){const _0xc83cf5=_0x480de2;this[_0xc83cf5(0xe5)][_0xc83cf5(0xa5)](_0xc83cf5(0xff)),this[_0xc83cf5(0xd0)]();}};N=Y([_(0x2,_0xea2396),_(0x3,_0x31d8e9(L)),_(0x4,_0x358f4b)],N);function Le(){const _0xca5cec=_0x480de2,_0x15a293=_0x5b95cb(S),_0x4c337b=_0x5b95cb(_0x59e319),_0x3ab8b0=_0x477adc(()=>_0x4c337b[_0xca5cec(0xc8)](_0x1e0e7d['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x43c7fc,_0x493cc2]=_0x3126fc(null),[_0x52d3b0,_0x34bd49]=_0x3126fc(c[_0xca5cec(0x105)]),_0x3e6863=_0x2d1821(null);return _0x42fb54(()=>(_0x3ab8b0&&_0x15a293[_0xca5cec(0xf4)](_0x3ab8b0[_0xca5cec(0x7e)]())['then'](_0x142b4d=>{const _0x55dda4=_0xca5cec;_0x493cc2(_0x142b4d),_0x3e6863[_0x55dda4(0x107)]=_0x142b4d[_0x55dda4(0xcd)][_0x55dda4(0x114)](_0x1375d4=>{_0x34bd49(_0x1375d4);});}),()=>{const _0x436328=_0xca5cec;var _0x4ea08b;(_0x4ea08b=_0x3e6863[_0x436328(0x107)])==null||_0x4ea08b['unsubscribe'](),_0x3e6863[_0x436328(0x107)]=null;}),[_0x3ab8b0,_0x15a293]),_0x43c7fc?_0x4f48f3(_0x43303b,{'align':_0xca5cec(0xd5),'disabled':_0x52d3b0===c[_0xca5cec(0xf7)],'className':_0xca5cec(0xc7),'overlay':_0x4f48f3(Re,{'status':_0x52d3b0,'coordinator':_0x43c7fc}),'children':_0x4f48f3('button',{'className':_0x219d87(_0xca5cec(0xad),{'univer-cursor-not-allowed':_0x52d3b0===c[_0xca5cec(0xf7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x52d3b0!==c[_0xca5cec(0xf7)]}),'type':'button','children':_0x4f48f3(W,{'className':_0xca5cec(0xce)})})}):null;}function Re(_0x2ef174){const _0x277700=_0x480de2,{status:_0x2430bb,coordinator:_0x338fed}=_0x2ef174;switch(_0x2430bb){case c[_0x277700(0x105)]:return _0x4f48f3($e,{'coordinator':_0x338fed});case c[_0x277700(0x91)]:return _0x4f48f3(xe,{'coordinator':_0x338fed});case c[_0x277700(0xb2)]:return _0x4f48f3(Pe,{'coordinator':_0x338fed});case c[_0x277700(0xf7)]:return _0x4f48f3(Te,{});case c['PRESENTING']:return _0x4f48f3(Ae,{'coordinator':_0x338fed});default:return null;}}function $e(_0xfad782){const _0x5995a0=_0x480de2,{coordinator:_0x5ee935}=_0xfad782;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5995a0(0xe7)}),_0x4f48f3(_0x5f10a4,{'onClick':()=>_0x5ee935['tryStartPresenting'](),'children':_0x5995a0(0x97)})]});}function xe(_0x4a7620){const _0x13e27f=_0x480de2,{coordinator:_0x541788}=_0x4a7620;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x13e27f(0xe2),{'className':_0x13e27f(0x8b),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4f48f3(_0x5f10a4,{'onClick':()=>_0x541788['stopFollowing'](),'children':_0x13e27f(0xdc)})]});}function Pe(_0x185a58){const _0x400cfa=_0x480de2,{coordinator:_0xa38fab}=_0x185a58;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x400cfa(0xe2),{'className':_0x400cfa(0x8b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4f48f3(_0x5f10a4,{'variant':'text','onClick':()=>_0xa38fab[_0x400cfa(0x82)](),'children':_0x400cfa(0x90)})]});}function Ae(_0x14e769){const _0x49059d=_0x480de2,{coordinator:_0x393521}=_0x14e769;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x49059d(0xe2),{'className':_0x49059d(0x8b),'children':_0x49059d(0xde)}),_0x4f48f3(_0x5f10a4,{'variant':'default','onClick':()=>_0x393521[_0x49059d(0xb0)](),'children':_0x49059d(0xea)})]});}function Te(){const _0x35fc15=_0x480de2;return _0x4f48f3(_0x5480f9,{'children':_0x35fc15(0xf9)});}var Fe=Object[_0x480de2(0x103)],He=(_0xc389b6,_0x47ae8a,_0x4a2f48,_0x244129)=>{for(var _0x5e3960=_0x244129>0x1?void 0x0:_0x244129?Fe(_0x47ae8a,_0x4a2f48):_0x47ae8a,_0x54a047=_0xc389b6['length']-0x1,_0x19907b;_0x54a047>=0x0;_0x54a047--)(_0x19907b=_0xc389b6[_0x54a047])&&(_0x5e3960=_0x19907b(_0x5e3960)||_0x5e3960);return _0x5e3960;},A=(_0x12cc2f,_0x2cada1)=>(_0x41e21f,_0x613bb1)=>_0x2cada1(_0x41e21f,_0x613bb1,_0x12cc2f);let m=class extends _0x445766{constructor(_0x172e53,_0x4f79ea){const _0x1a884a=_0x480de2;super(),this[_0x1a884a(0x102)]=_0x172e53,this['_uiPartsService']=_0x4f79ea,this['_mountLiveShare']();}[_0x480de2(0xa6)](){const _0x5ae6c7=_0x480de2;this['disposeWithMe'](this[_0x5ae6c7(0x81)][_0x5ae6c7(0xd7)](_0x589e20[_0x5ae6c7(0x10a)],()=>_0x2bfcca(Le,this[_0x5ae6c7(0x102)])));}};m=He([A(0x0,_0x31d8e9(_0x4d1ef7)),A(0x1,_0x1618ae)],m);const ye=_0x480de2(0x8e),T={};var Ue=Object[_0x480de2(0x103)],Ve=(_0x249b57,_0x4669ab,_0x3ceaa9,_0xa47879)=>{const _0x14820b=_0x480de2;for(var _0x5a1957=_0xa47879>0x1?void 0x0:_0xa47879?Ue(_0x4669ab,_0x3ceaa9):_0x4669ab,_0xd5a94d=_0x249b57[_0x14820b(0xbf)]-0x1,_0x261a0a;_0xd5a94d>=0x0;_0xd5a94d--)(_0x261a0a=_0x249b57[_0xd5a94d])&&(_0x5a1957=_0x261a0a(_0x5a1957)||_0x5a1957);return _0x5a1957;},je=(_0x12cfd5,_0x4e7413)=>(_0x56a754,_0x9be823)=>_0x4e7413(_0x56a754,_0x9be823,_0x12cfd5);let I=class extends _0x445766{constructor(_0x3ba195){const _0x3b4077=_0x480de2;super(),this[_0x3b4077(0xe6)]=_0x3ba195,this[_0x3b4077(0x83)]();}[_0x480de2(0x83)](){const _0x146712=_0x480de2;[_0xee7cd['id'],_0x504137['id'],_0x42d600['id']][_0x146712(0x11d)](_0x4a77ef=>{const _0x505cfc=_0x146712;this[_0x505cfc(0xe1)](this[_0x505cfc(0xe6)][_0x505cfc(0xb6)](_0x4a77ef));});}};I=Ve([je(0x0,_0x31d8e9(L))],I);var Me=Object[_0x480de2(0x108)],ke=Object[_0x480de2(0x103)],Ge=(_0x3f3f64,_0x21c44a,_0x49d929)=>_0x21c44a in _0x3f3f64?Me(_0x3f3f64,_0x21c44a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49d929}):_0x3f3f64[_0x21c44a]=_0x49d929,We=(_0x77c05d,_0x551572,_0x1732b4,_0x2c59c5)=>{const _0x170ee9=_0x480de2;for(var _0x1a3120=_0x2c59c5>0x1?void 0x0:_0x2c59c5?ke(_0x551572,_0x1732b4):_0x551572,_0xd600ef=_0x77c05d[_0x170ee9(0xbf)]-0x1,_0x500c05;_0xd600ef>=0x0;_0xd600ef--)(_0x500c05=_0x77c05d[_0xd600ef])&&(_0x1a3120=_0x500c05(_0x1a3120)||_0x1a3120);return _0x1a3120;},F=(_0x2901fb,_0x49a302)=>(_0x3613d9,_0x164f78)=>_0x49a302(_0x3613d9,_0x164f78,_0x2901fb),B=(_0x3a68c3,_0x176827,_0xb3ba0f)=>Ge(_0x3a68c3,typeof _0x176827!=_0x480de2(0x106)?_0x176827+'':_0x176827,_0xb3ba0f);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x218f1f{constructor(_0x1d5e66=T,_0x5d5c39,_0xc484d4){const _0x2d2aa6=_0x480de2;super(),this[_0x2d2aa6(0x93)]=_0x1d5e66,this[_0x2d2aa6(0x102)]=_0x5d5c39,this[_0x2d2aa6(0xfa)]=_0xc484d4;const {..._0x40ad25}=_0x477aae({},T,this[_0x2d2aa6(0x93)]);this[_0x2d2aa6(0xfa)][_0x2d2aa6(0x10c)](ye,_0x40ad25);}[_0x480de2(0x86)](){const _0x170149=_0x480de2;_0xaed711(this[_0x170149(0x102)],_0xb0235f([[L],[S],[I],[m]],this[_0x170149(0x93)][_0x170149(0xcb)])),_0xd465dc(this[_0x170149(0x102)],[[I]]);}[_0x480de2(0xc2)](){const _0x14c429=_0x480de2;_0xd465dc(this[_0x14c429(0x102)],[[m]]);}};B(b,'type',_0x1e0e7d[_0x480de2(0xa1)]),B(b,_0x480de2(0xa2),Ye),b=We([_0x2532bd(_0x1e0ea8),F(0x1,_0x31d8e9(_0x4d1ef7)),F(0x2,_0xea2396)],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 _0x6e67a4=_0x135d;(function(_0x354467,_0x7b3ce5){const _0x1c9e91=_0x135d,_0x5d94dd=_0x354467();while(!![]){try{const _0x220892=parseInt(_0x1c9e91(0x1a8))/0x1+-parseInt(_0x1c9e91(0x204))/0x2*(-parseInt(_0x1c9e91(0x22e))/0x3)+parseInt(_0x1c9e91(0x1f2))/0x4*(parseInt(_0x1c9e91(0x19b))/0x5)+-parseInt(_0x1c9e91(0x18c))/0x6*(-parseInt(_0x1c9e91(0x21a))/0x7)+-parseInt(_0x1c9e91(0x1ed))/0x8+-parseInt(_0x1c9e91(0x1b3))/0x9+-parseInt(_0x1c9e91(0x1f6))/0xa;if(_0x220892===_0x7b3ce5)break;else _0x5d94dd['push'](_0x5d94dd['shift']());}catch(_0x520e8e){_0x5d94dd['push'](_0x5d94dd['shift']());}}}(_0x4234,0x3c369));var J=Object[_0x6e67a4(0x1be)],K=(_0x1845a7,_0x152099,_0xb0e92b)=>_0x152099 in _0x1845a7?J(_0x1845a7,_0x152099,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb0e92b}):_0x1845a7[_0x152099]=_0xb0e92b,u=(_0x183d15,_0x108a2e,_0x318511)=>K(_0x183d15,typeof _0x108a2e!=_0x6e67a4(0x1a4)?_0x108a2e+'':_0x108a2e,_0x318511);import{Disposable as _0x5e24bb,toDisposable as _0xe2a356,IUniverInstanceService as _0x429aae,Inject as _0x59f7c6,Injector as _0x4531be,IConfigService as _0x3f6d6e,ICommandService as _0x3ed8d7,RxDisposable as _0x191712,UniverInstanceType as _0x118f42,DisposableCollection as _0x2a5811,CommandType as _0x14388b,DependentOn as _0xe1d233,Plugin as _0x5cd1de,merge as _0x727060,registerDependencies as _0x28a48e,mergeOverrideWithDependencies as _0x357330,touchDependencies as _0x25c3b0}from'@univerjs/core';import{useDependency as _0xdbbe5b,useObservable as _0x1621e2,IUIPartsService as _0x27b447,BuiltInUIPart as _0x47949f,connectInjector as _0x296dfc}from'@univerjs/ui';import{jsx as _0x2ca373,jsxs as _0xbe0ce5,Fragment as _0x511b38}from'react/jsx-runtime';import{Dropdown as _0x2a1e6e,clsx as _0x8ac4ff,Button as _0x29989c}from'@univerjs/design';import{useRef as _0x482ed3,createElement as _0x797d0e,forwardRef as _0x16790e,useState as _0x5d950b,useEffect as _0x52f42a}from'react';import{CollaborationEvent as _0x94e1b3,parseProtocolChangeset as _0x479ed7}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1e5a3d,SessionStatus as _0x4753ef,UniverCollaborationClientPlugin as _0x4a1e33}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x17d247,SetWorksheetActiveOperation as _0x553e77}from'@univerjs/sheets';import{BehaviorSubject as _0x59d67a,Subject as _0x51c7e2}from'rxjs';import{takeUntil as _0x5448c3,throttleTime as _0x35eda6}from'rxjs/operators';import{SetZoomRatioOperation as _0x13aa72,SetScrollOperation as _0x4e9adb}from'@univerjs/sheets-ui';function k({ref:_0x1ae140,..._0x3bcec8}){const _0x1853be=_0x6e67a4,{icon:_0xd1386a,id:_0x1f91e4,className:_0xc749bb,extend:_0x4689db,..._0x221a9f}=_0x3bcec8,_0x200100=(_0x1853be(0x1ef)+_0x1f91e4+'\x20'+(_0xc749bb||''))[_0x1853be(0x1fa)](),_0x332e44=_0x482ed3('_'+Oe());return G(_0xd1386a,''+_0x1f91e4,{'defIds':_0xd1386a[_0x1853be(0x20c)],'idSuffix':_0x332e44[_0x1853be(0x1fd)]},{'ref':_0x1ae140,'className':_0x200100,..._0x221a9f},_0x4689db);}function G(_0x833fa0,_0x12cde1,_0x16c09c,_0x4716fa,_0x34a4d8){const _0x4e4d1d=_0x6e67a4;return _0x797d0e(_0x833fa0[_0x4e4d1d(0x1d0)],{'key':_0x12cde1,...be(_0x833fa0,_0x16c09c,_0x34a4d8),..._0x4716fa},(Ee(_0x833fa0,_0x16c09c)[_0x4e4d1d(0x1b5)]||[])['map']((_0x3fafb2,_0x2f00d8)=>G(_0x3fafb2,_0x12cde1+'-'+_0x833fa0[_0x4e4d1d(0x1d0)]+'-'+_0x2f00d8,_0x16c09c,void 0x0,_0x34a4d8)));}function be(_0x4abf2e,_0x4343c1,_0x2e77b6){const _0x33df50=_0x6e67a4,_0x593596={..._0x4abf2e[_0x33df50(0x20d)]};_0x2e77b6!=null&&_0x2e77b6[_0x33df50(0x186)]&&_0x593596[_0x33df50(0x21c)]===_0x33df50(0x186)&&(_0x593596[_0x33df50(0x21c)]=_0x2e77b6[_0x33df50(0x186)]),_0x4abf2e['tag']===_0x33df50(0x1b7)&&_0x593596['id']&&(_0x593596['id']=_0x593596['id']+_0x4343c1[_0x33df50(0x1e9)]),Object[_0x33df50(0x1a3)](_0x593596)['forEach'](([_0x21e168,_0x3bfd12])=>{const _0x38ba2a=_0x33df50;_0x21e168===_0x38ba2a(0x1b7)&&typeof _0x3bfd12==_0x38ba2a(0x1cd)&&(_0x593596[_0x21e168]=_0x3bfd12['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4343c1[_0x38ba2a(0x1e9)]+')'));});const {defIds:_0x4ab71f}=_0x4343c1;return!_0x4ab71f||_0x4ab71f['length']===0x0||(_0x4abf2e[_0x33df50(0x1d0)]===_0x33df50(0x1b6)&&_0x593596[_0x33df50(0x1c6)]&&(_0x593596['xlink:href']=_0x593596[_0x33df50(0x1c6)]+_0x4343c1[_0x33df50(0x1e9)]),Object[_0x33df50(0x1a3)](_0x593596)[_0x33df50(0x1c9)](([_0x2dd0e6,_0x15a707])=>{const _0x486147=_0x33df50;typeof _0x15a707==_0x486147(0x1cd)&&(_0x593596[_0x2dd0e6]=_0x15a707['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4343c1[_0x486147(0x1e9)]+')'));})),_0x593596;}function Ee(_0x1e7841,_0x799ef){const _0x43ab92=_0x6e67a4;var _0x55ae08;const {defIds:_0x538651}=_0x799ef;return!_0x538651||_0x538651[_0x43ab92(0x18a)]===0x0?_0x1e7841:_0x1e7841['tag']===_0x43ab92(0x1e1)&&((_0x55ae08=_0x1e7841[_0x43ab92(0x1b5)])!=null&&_0x55ae08[_0x43ab92(0x18a)])?{..._0x1e7841,'children':_0x1e7841[_0x43ab92(0x1b5)][_0x43ab92(0x1f9)](_0x19be0b=>typeof _0x19be0b[_0x43ab92(0x20d)]['id']==_0x43ab92(0x1cd)&&_0x538651&&_0x538651[_0x43ab92(0x1cf)](_0x19be0b['attrs']['id'])?{..._0x19be0b,'attrs':{..._0x19be0b[_0x43ab92(0x20d)],'id':_0x19be0b['attrs']['id']+_0x799ef[_0x43ab92(0x1e9)]}}:_0x19be0b)}:_0x1e7841;}function Oe(){const _0x4d5025=_0x6e67a4;return Math[_0x4d5025(0x199)]()[_0x4d5025(0x212)](0x24)[_0x4d5025(0x1d9)](0x2,0x8);}k[_0x6e67a4(0x1a1)]='UniverIcon';const we={'tag':_0x6e67a4(0x1ad),'attrs':{'xmlns':_0x6e67a4(0x20b),'fill':'none','viewBox':_0x6e67a4(0x18e),'width':_0x6e67a4(0x1d8),'height':'1em'},'children':[{'tag':_0x6e67a4(0x208),'attrs':{'fill':_0x6e67a4(0x1d7),'d':_0x6e67a4(0x202)}},{'tag':'path','attrs':{'fill':_0x6e67a4(0x1d7),'d':_0x6e67a4(0x215),'fillRule':_0x6e67a4(0x1d2),'clipRule':'evenodd'}}]},W=_0x16790e(function(_0x1f62a1,_0x5d29e2){return _0x797d0e(k,Object['assign']({},_0x1f62a1,{'id':'live-share-icon','ref':_0x5d29e2,'icon':we}));});W[_0x6e67a4(0x1a1)]=_0x6e67a4(0x187);class L extends _0x5e24bb{constructor(){const _0x2b60d3=_0x6e67a4;super(...arguments),u(this,_0x2b60d3(0x19d),new Set()),u(this,'_reporters',new Set());}[_0x6e67a4(0x190)](_0x3b57ca){const _0x520924=_0x6e67a4;return this[_0x520924(0x19d)][_0x520924(0x1ba)](_0x3b57ca),_0xe2a356(()=>this[_0x520924(0x19d)][_0x520924(0x188)](_0x3b57ca));}[_0x6e67a4(0x224)](_0xb8827){const _0x4e8b83=_0x6e67a4;return this[_0x4e8b83(0x1cc)]['add'](_0xb8827),_0xe2a356(()=>this[_0x4e8b83(0x1cc)][_0x4e8b83(0x188)](_0xb8827));}[_0x6e67a4(0x1bc)](_0x2b5851){const _0xa4a800=_0x6e67a4;return this[_0xa4a800(0x19d)][_0xa4a800(0x1ab)](_0x2b5851);}[_0x6e67a4(0x1b4)](_0x3f70a2){const _0x3b76e8=_0x6e67a4;return Array[_0x3b76e8(0x1c1)](this['_reporters'])[_0x3b76e8(0x1f9)](_0x4d15ac=>_0x4d15ac(_0x3f70a2));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x2e6546,_0xa2f29,_0x16bf90,_0x40d393)=>{for(var _0x4eb0ab=_0x40d393>0x1?void 0x0:_0x40d393?Ne(_0xa2f29,_0x16bf90):_0xa2f29,_0x2102b5=_0x2e6546['length']-0x1,_0x438880;_0x2102b5>=0x0;_0x2102b5--)(_0x438880=_0x2e6546[_0x2102b5])&&(_0x4eb0ab=_0x438880(_0x4eb0ab)||_0x4eb0ab);return _0x4eb0ab;},_=(_0x7b7c13,_0x29bb03)=>(_0x32e15d,_0x4d3bc3)=>_0x29bb03(_0x32e15d,_0x4d3bc3,_0x7b7c13);let S=class extends _0x191712{constructor(_0x459ad7,_0x4b4d66,_0x26758d){const _0x10cb0=_0x6e67a4;super(),u(this,_0x10cb0(0x1a2),new Map()),(this['_univerInstanceService']=_0x459ad7,this[_0x10cb0(0x1b8)]=_0x4b4d66,this[_0x10cb0(0x210)]=_0x26758d,this[_0x10cb0(0x1b2)]());}async[_0x6e67a4(0x1b1)](_0x3a9d84){const _0x25538e=_0x6e67a4;return this[_0x25538e(0x1a2)][_0x25538e(0x1ab)](_0x3a9d84)||await this[_0x25538e(0x207)](_0x3a9d84),this[_0x25538e(0x1a2)][_0x25538e(0x1bd)](_0x3a9d84);}['getLiveShareCoordinatorSync'](_0x30ced4){const _0x4d711b=_0x6e67a4;var _0x6c659a;return(_0x6c659a=this[_0x4d711b(0x1a2)][_0x4d711b(0x1bd)](_0x30ced4))!=null?_0x6c659a:null;}['_init'](){const _0x25532a=_0x6e67a4;this[_0x25532a(0x20a)][_0x25532a(0x222)](_0x118f42[_0x25532a(0x1e6)])[_0x25532a(0x1c0)](_0x5448c3(this[_0x25532a(0x21b)]))[_0x25532a(0x1c2)](async _0x2f9568=>{const _0x6fd157=_0x25532a,_0x15c987=_0x2f9568[_0x6fd157(0x1df)]();this['_entities']['has'](_0x15c987)||this['_startLiveShareCoordinator'](_0x15c987);}),this['_univerInstanceService'][_0x25532a(0x1c4)](_0x118f42[_0x25532a(0x1e6)])[_0x25532a(0x1c0)](_0x5448c3(this['dispose$']))['subscribe'](_0x67e594=>{const _0x965c3e=_0x25532a,_0x355512=_0x67e594[_0x965c3e(0x1df)](),_0x242483=this[_0x965c3e(0x1a2)][_0x965c3e(0x1bd)](_0x355512);_0x242483==null||_0x242483[_0x965c3e(0x1af)]();});}async[_0x6e67a4(0x207)](_0x2609a0){const _0x25e734=_0x6e67a4,_0x67e802=await this[_0x25e734(0x210)][_0x25e734(0x1d1)](_0x2609a0),_0x1d9d3c=this['_injector'][_0x25e734(0x221)](N,_0x2609a0,_0x67e802);return _0x1d9d3c[_0x25e734(0x1f3)](),this['_entities']['set'](_0x2609a0,_0x1d9d3c),_0x1d9d3c;}};S=Y([_(0x0,_0x429aae),_(0x1,_0x59f7c6(_0x4531be)),_(0x2,_0x59f7c6(_0x1e5a3d))],S);var c=(_0x53f6aa=>(_0x53f6aa[_0x6e67a4(0x216)]=_0x6e67a4(0x1f0),_0x53f6aa[_0x6e67a4(0x1ac)]='idle',_0x53f6aa[_0x6e67a4(0x1d3)]=_0x6e67a4(0x1ff),_0x53f6aa[_0x6e67a4(0x1d4)]=_0x6e67a4(0x1dc),_0x53f6aa[_0x6e67a4(0x1da)]=_0x6e67a4(0x219),_0x53f6aa))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x191712{constructor(_0x1a51d7,_0x4137b1,_0x3616cc,_0x345b03,_0x949460){const _0x1d9770=_0x6e67a4;super(),u(this,_0x1d9770(0x1ae),new _0x59d67a(_0x1d9770(0x1b0))),u(this,_0x1d9770(0x18d),this[_0x1d9770(0x1ae)][_0x1d9770(0x1c3)]()),u(this,_0x1d9770(0x1b2),!0x1),u(this,_0x1d9770(0x197),null),u(this,_0x1d9770(0x1e2),null),(this[_0x1d9770(0x1bb)]=_0x1a51d7,this['_collabSession']=_0x4137b1,this['_configService']=_0x3616cc,this[_0x1d9770(0x226)]=_0x345b03,this[_0x1d9770(0x192)]=_0x949460);}get[_0x6e67a4(0x214)](){const _0x1eece5=_0x6e67a4;return this[_0x1eece5(0x1ae)][_0x1eece5(0x20f)]();}[_0x6e67a4(0x1af)](){const _0x151978=_0x6e67a4;var _0x166243;(_0x166243=this[_0x151978(0x197)])==null||_0x166243[_0x151978(0x1af)](),this[_0x151978(0x1ae)][_0x151978(0x20e)](_0x151978(0x1b0)),this['_status$'][_0x151978(0x1e7)]();}[_0x6e67a4(0x213)](){const _0x209dde=_0x6e67a4;return this[_0x209dde(0x214)];}['init'](){const _0x5efdc0=_0x6e67a4;this[_0x5efdc0(0x1b2)]||(this[_0x5efdc0(0x1b2)]=!0x0,this[_0x5efdc0(0x1e4)]['sessionStatus$'][_0x5efdc0(0x1c0)](_0x5448c3(this[_0x5efdc0(0x21b)]))['subscribe'](_0xd000d6=>{const _0x3d3278=_0x5efdc0;switch(_0xd000d6){case _0x4753ef['OFFLINE']:this[_0x3d3278(0x203)]();break;case _0x4753ef[_0x3d3278(0x21f)]:this[_0x3d3278(0x1c7)]();break;}}),this[_0x5efdc0(0x1e4)][_0x5efdc0(0x1a6)]['pipe'](_0x5448c3(this[_0x5efdc0(0x21b)]))[_0x5efdc0(0x1c2)](_0x5df548=>{const _0x272f25=_0x5efdc0,{eventID:_0x576b41}=_0x5df548;switch(_0x576b41){case _0x94e1b3['LIVESHARE_NEW_HOST']:this[_0x272f25(0x1d6)](_0x5df548);break;case _0x94e1b3[_0x272f25(0x229)]:this[_0x272f25(0x1b9)](_0x5df548);break;case _0x94e1b3['LIVESHARE_TERMINATE']:this[_0x272f25(0x19c)]();break;case _0x94e1b3['NEW_CHANGESETS']:this[_0x272f25(0x22d)](_0x5df548);break;}}));}[_0x6e67a4(0x1fb)](){const _0x51c154=_0x6e67a4;this[_0x51c154(0x1e4)][_0x51c154(0x201)]({'eventID':_0x94e1b3[_0x51c154(0x1dd)],'data':{'unitID':this[_0x51c154(0x1bb)],'userID':this['_collabSession'][_0x51c154(0x1a9)]()}},this[_0x51c154(0x1bb)]);}[_0x6e67a4(0x1a0)](){const _0x1be6e6=_0x6e67a4;this[_0x1be6e6(0x214)]==='presenting'&&(this[_0x1be6e6(0x1ae)][_0x1be6e6(0x20e)]('idle'),this['_collabSession'][_0x1be6e6(0x201)]({'eventID':_0x94e1b3[_0x1be6e6(0x206)],'data':{'unitID':this[_0x1be6e6(0x1bb)]}},this[_0x1be6e6(0x1bb)]));}['startFollowing'](){const _0x3970fc=_0x6e67a4;this['_status']==='not-following'&&(this[_0x3970fc(0x1ae)][_0x3970fc(0x20e)](_0x3970fc(0x1ff)),this['_startFollowing']());}[_0x6e67a4(0x1cb)](){const _0x1f02d9=_0x6e67a4;this[_0x1f02d9(0x214)]===_0x1f02d9(0x1ff)&&this[_0x1f02d9(0x191)]();}[_0x6e67a4(0x1d6)](_0x2f5781){const _0x1a0bd0=_0x6e67a4,{presenter:_0x58ec53}=_0x2f5781['data'],_0x272f60=this[_0x1a0bd0(0x1e4)][_0x1a0bd0(0x1a9)]();this[_0x1a0bd0(0x1e2)]=_0x58ec53,_0x58ec53===_0x272f60?(this[_0x1a0bd0(0x191)](),this[_0x1a0bd0(0x1ea)]()):this['_status']!==_0x1a0bd0(0x1dc)&&(this[_0x1a0bd0(0x220)](),this['_startFollowing']());}['_fetchOperations'](){const _0x74075=_0x6e67a4,_0x20508e={'eventID':_0x94e1b3['LIVESHARE_FETCH_OPERATIONS']};this[_0x74075(0x1e4)][_0x74075(0x201)](_0x20508e,this['_unitID']);}[_0x6e67a4(0x19c)](){const _0x4f9fd9=_0x6e67a4;this[_0x4f9fd9(0x1e2)]=null,this['_status']!=='presenting'&&this[_0x4f9fd9(0x1e5)]();}[_0x6e67a4(0x22d)](_0x183c55){const _0x60be10=_0x6e67a4;if(this[_0x60be10(0x214)]===_0x60be10(0x1ff)&&this[_0x60be10(0x1e2)]===_0x183c55['data'][_0x60be10(0x225)]){const _0x579918=_0x479ed7(_0x183c55[_0x60be10(0x1a5)])[_0x60be10(0x21e)][_0x60be10(0x205)]()[_0x60be10(0x22a)](_0x183422=>_0x183422['id']===_0x17d247['id']);if(_0x579918){const _0x534541=_0x579918[_0x60be10(0x21d)][_0x60be10(0x19f)],_0x41f561=_0x579918[_0x60be10(0x21d)][_0x60be10(0x1f1)]['id'];setTimeout(()=>{const _0x7c951d=_0x60be10;this[_0x7c951d(0x192)][_0x7c951d(0x1e8)](_0x553e77['id'],{'unitId':_0x534541,'subUnitId':_0x41f561},{'fromCollab':!0x0});});}}}[_0x6e67a4(0x1ea)](){const _0x242a5d=_0x6e67a4;this[_0x242a5d(0x1ae)][_0x242a5d(0x20e)]('presenting');const _0x144f5f=new Map(),_0x5960bc=this[_0x242a5d(0x197)]=new _0x2a5811();_0x5960bc[_0x242a5d(0x1ba)](_0xe2a356(()=>{const _0xd475c9=_0x242a5d;_0x144f5f['forEach'](_0x30b0e2=>_0x30b0e2['complete']()),_0x144f5f[_0xd475c9(0x227)]();})),_0x5960bc[_0x242a5d(0x1ba)](this[_0x242a5d(0x192)][_0x242a5d(0x228)](_0x7d118a=>{const _0x54a176=_0x242a5d;var _0x521726;if(_0x7d118a['type']!==_0x14388b[_0x54a176(0x196)]||!this[_0x54a176(0x226)][_0x54a176(0x1bc)](_0x7d118a['id']))return;const {id:_0x499adb}=_0x7d118a;let _0x244347;_0x144f5f['has'](_0x499adb)?_0x244347=_0x144f5f[_0x54a176(0x1bd)](_0x499adb):(_0x244347=new _0x51c7e2(),_0x144f5f[_0x54a176(0x1ca)](_0x499adb,_0x244347),_0x244347[_0x54a176(0x1c0)](_0x35eda6((_0x521726=this[_0x54a176(0x1d5)][_0x54a176(0x1ee)](Ce))!=null?_0x521726:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x54a176(0x1c2)](_0x2fcf0b=>{const _0x4ea18c=_0x54a176;this[_0x4ea18c(0x1e4)][_0x4ea18c(0x201)]({'eventID':_0x94e1b3[_0x4ea18c(0x229)],'data':{'unitID':this[_0x4ea18c(0x1bb)],'operations':{[_0x2fcf0b['id']]:{'id':_0x2fcf0b['id'],'params':JSON[_0x4ea18c(0x1c8)](_0x2fcf0b[_0x4ea18c(0x21d)])}}}},this[_0x4ea18c(0x1bb)]);})),_0x244347[_0x54a176(0x20e)](_0x7d118a);})),this[_0x242a5d(0x226)][_0x242a5d(0x1b4)](this[_0x242a5d(0x1bb)])[_0x242a5d(0x1c9)](_0x1f5e6d=>this[_0x242a5d(0x1e4)][_0x242a5d(0x201)]({'eventID':_0x94e1b3[_0x242a5d(0x229)],'data':{'unitID':this[_0x242a5d(0x1bb)],'operations':{[_0x1f5e6d['id']]:{'id':_0x1f5e6d['id'],'params':JSON[_0x242a5d(0x1c8)](_0x1f5e6d['params'])}}}},this[_0x242a5d(0x1bb)]));}[_0x6e67a4(0x220)](){const _0x322e4a=_0x6e67a4;var _0x2f9ec0;this[_0x322e4a(0x1ae)]['next'](_0x322e4a(0x1b0)),(_0x2f9ec0=this[_0x322e4a(0x197)])==null||_0x2f9ec0[_0x322e4a(0x1af)](),this['_commandDisposable']=null;}[_0x6e67a4(0x18b)](){const _0x2b4a13=_0x6e67a4;var _0x282bb3;(_0x282bb3=this['_commandDisposable'])==null||_0x282bb3[_0x2b4a13(0x1af)](),this[_0x2b4a13(0x1ae)][_0x2b4a13(0x20e)](_0x2b4a13(0x1ff));}[_0x6e67a4(0x1e5)](){const _0x355b1a=_0x6e67a4;var _0x1399e9;this[_0x355b1a(0x1ae)]['next'](_0x355b1a(0x1b0)),(_0x1399e9=this[_0x355b1a(0x197)])==null||_0x1399e9[_0x355b1a(0x1af)](),this[_0x355b1a(0x197)]=null;}['_stopFollowing'](){const _0x1f97b1=_0x6e67a4;var _0x5e4309;this['_status$'][_0x1f97b1(0x20e)]('not-following'),(_0x5e4309=this[_0x1f97b1(0x197)])==null||_0x5e4309[_0x1f97b1(0x1af)]();}[_0x6e67a4(0x1b9)](_0x291186){const _0x38cb5c=_0x6e67a4;if([_0x38cb5c(0x219),_0x38cb5c(0x1dc),'offline'][_0x38cb5c(0x1cf)](this['_status'])||!_0x291186['data']['presenter']||_0x291186[_0x38cb5c(0x1a5)][_0x38cb5c(0x1ce)]===this[_0x38cb5c(0x1e4)][_0x38cb5c(0x1a9)]())return;this[_0x38cb5c(0x214)]==='idle'&&this[_0x38cb5c(0x18b)]();const _0x11e332=_0x291186['data'][_0x38cb5c(0x223)];Object['values'](_0x11e332)['forEach'](_0x8f062d=>{const _0x1b1ba0=_0x38cb5c;this[_0x1b1ba0(0x192)][_0x1b1ba0(0x1e8)](_0x8f062d['id'],_0x8f062d['params']?JSON[_0x1b1ba0(0x1c5)](_0x8f062d['params']):null,{'fromCollab':!0x0});});}[_0x6e67a4(0x203)](){const _0x3b9818=_0x6e67a4;var _0x1088e4;this[_0x3b9818(0x1ae)][_0x3b9818(0x20e)]('offline'),(_0x1088e4=this[_0x3b9818(0x197)])==null||_0x1088e4[_0x3b9818(0x1af)]();}['_handleOnline'](){const _0x4c966a=_0x6e67a4;this[_0x4c966a(0x1ae)][_0x4c966a(0x20e)](_0x4c966a(0x1b0)),this['_fetchOperations']();}};N=Y([_(0x2,_0x3f6d6e),_(0x3,_0x59f7c6(L)),_(0x4,_0x3ed8d7)],N);function Le(){const _0x3075e7=_0x6e67a4,_0x41fa16=_0xdbbe5b(S),_0xfe4fc7=_0xdbbe5b(_0x429aae),_0x42ec3e=_0x1621e2(()=>_0xfe4fc7[_0x3075e7(0x22b)](_0x118f42[_0x3075e7(0x1e6)]),void 0x0,!0x1,[]),[_0x2f7f74,_0x514388]=_0x5d950b(null),[_0x31226b,_0x167c93]=_0x5d950b(c[_0x3075e7(0x1ac)]),_0xfdf92a=_0x482ed3(null);return _0x52f42a(()=>(_0x42ec3e&&_0x41fa16['getLiveShareCoordinator'](_0x42ec3e['getUnitId']())[_0x3075e7(0x1e3)](_0x87f068=>{const _0x4da179=_0x3075e7;_0x514388(_0x87f068),_0xfdf92a[_0x4da179(0x1fd)]=_0x87f068[_0x4da179(0x18d)][_0x4da179(0x1c2)](_0x3939ef=>{_0x167c93(_0x3939ef);});}),()=>{const _0x21c17e=_0x3075e7;var _0x54838c;(_0x54838c=_0xfdf92a['current'])==null||_0x54838c[_0x21c17e(0x200)](),_0xfdf92a[_0x21c17e(0x1fd)]=null;}),[_0x42ec3e,_0x41fa16]),_0x2f7f74?_0x2ca373(_0x2a1e6e,{'align':_0x3075e7(0x198),'disabled':_0x31226b===c[_0x3075e7(0x216)],'className':_0x3075e7(0x1eb),'overlay':_0x2ca373(Re,{'status':_0x31226b,'coordinator':_0x2f7f74}),'children':_0x2ca373(_0x3075e7(0x1bf),{'className':_0x8ac4ff(_0x3075e7(0x217),{'univer-cursor-not-allowed':_0x31226b===c[_0x3075e7(0x216)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x31226b!==c[_0x3075e7(0x216)]}),'type':_0x3075e7(0x1bf),'children':_0x2ca373(W,{'className':_0x3075e7(0x1db)})})}):null;}function _0x135d(_0x504359,_0x1f5a82){_0x504359=_0x504359-0x186;const _0x4234cc=_0x4234();let _0x135dae=_0x4234cc[_0x504359];return _0x135dae;}function Re(_0x44459b){const _0x58cf5d=_0x6e67a4,{status:_0x382924,coordinator:_0x378098}=_0x44459b;switch(_0x382924){case c['IDLE']:return _0x2ca373($e,{'coordinator':_0x378098});case c[_0x58cf5d(0x1d3)]:return _0x2ca373(xe,{'coordinator':_0x378098});case c[_0x58cf5d(0x1d4)]:return _0x2ca373(Pe,{'coordinator':_0x378098});case c[_0x58cf5d(0x216)]:return _0x2ca373(Te,{});case c[_0x58cf5d(0x1da)]:return _0x2ca373(Ae,{'coordinator':_0x378098});default:return null;}}function $e(_0x20c0c7){const _0x43e1a7=_0x6e67a4,{coordinator:_0x2d1058}=_0x20c0c7;return _0xbe0ce5(_0x511b38,{'children':[_0x2ca373('div',{'className':_0x43e1a7(0x1e0),'children':_0x43e1a7(0x22f)}),_0x2ca373(_0x29989c,{'onClick':()=>_0x2d1058['tryStartPresenting'](),'children':_0x43e1a7(0x19e)})]});}function xe(_0xcdda64){const _0x5bb45d=_0x6e67a4,{coordinator:_0x1cd96b}=_0xcdda64;return _0xbe0ce5(_0x511b38,{'children':[_0x2ca373('div',{'className':_0x5bb45d(0x1e0),'children':_0x5bb45d(0x1fc)}),_0x2ca373(_0x29989c,{'onClick':()=>_0x1cd96b[_0x5bb45d(0x1cb)](),'children':_0x5bb45d(0x1de)})]});}function Pe(_0x5863f7){const _0x58b85d=_0x6e67a4,{coordinator:_0x1f9cec}=_0x5863f7;return _0xbe0ce5(_0x511b38,{'children':[_0x2ca373(_0x58b85d(0x18f),{'className':_0x58b85d(0x1e0),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2ca373(_0x29989c,{'variant':'text','onClick':()=>_0x1f9cec[_0x58b85d(0x1f7)](),'children':_0x58b85d(0x1f4)})]});}function Ae(_0x9d692b){const _0x5cb381=_0x6e67a4,{coordinator:_0x893fd4}=_0x9d692b;return _0xbe0ce5(_0x511b38,{'children':[_0x2ca373(_0x5cb381(0x18f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5cb381(0x1fe)}),_0x2ca373(_0x29989c,{'variant':_0x5cb381(0x1a7),'onClick':()=>_0x893fd4[_0x5cb381(0x1a0)](),'children':_0x5cb381(0x211)})]});}function Te(){const _0x48e452=_0x6e67a4;return _0x2ca373(_0x511b38,{'children':_0x48e452(0x195)});}var Fe=Object[_0x6e67a4(0x1ec)],He=(_0x156559,_0x2d2eb3,_0x3fc83f,_0x5ebf5c)=>{const _0x14506f=_0x6e67a4;for(var _0x17ab58=_0x5ebf5c>0x1?void 0x0:_0x5ebf5c?Fe(_0x2d2eb3,_0x3fc83f):_0x2d2eb3,_0x5198c7=_0x156559[_0x14506f(0x18a)]-0x1,_0x4062e8;_0x5198c7>=0x0;_0x5198c7--)(_0x4062e8=_0x156559[_0x5198c7])&&(_0x17ab58=_0x4062e8(_0x17ab58)||_0x17ab58);return _0x17ab58;},A=(_0x2b0a5a,_0x1630a7)=>(_0x5d54eb,_0x4ff6e1)=>_0x1630a7(_0x5d54eb,_0x4ff6e1,_0x2b0a5a);let m=class extends _0x5e24bb{constructor(_0x1182c4,_0x631c45){const _0x588ab3=_0x6e67a4;super(),this[_0x588ab3(0x1b8)]=_0x1182c4,this[_0x588ab3(0x209)]=_0x631c45,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x4f05c0=_0x6e67a4;this['disposeWithMe'](this[_0x4f05c0(0x209)][_0x4f05c0(0x22c)](_0x47949f[_0x4f05c0(0x1f5)],()=>_0x296dfc(Le,this['_injector'])));}};m=He([A(0x0,_0x59f7c6(_0x4531be)),A(0x1,_0x27b447)],m);const ye=_0x6e67a4(0x1aa),T={};function _0x4234(){const _0x58ace9=['registerComponent','_handleNewChangeSets','3ZJPFKY','Present\x20this\x20document','colorChannel1','LiveShareIcon','delete','type','length','_startFollowing','594696pOVxRm','status$','0\x200\x2017\x2017','div','registerSharedOperation','_stopFollowing','_commandService','UNIVER_LIVE_SHARE_PLUGIN','override','You\x27are\x20offline.','OPERATION','_commandDisposable','end','random','disposeWithMe','5yrCRed','_handleTerminate','_sharedOperations','Start','unitId','stopPresenting','displayName','_entities','entries','symbol','data','event$','default','485490pqUUdB','getMemberID','live-share.config','has','IDLE','svg','_status$','dispose','idle','getLiveShareCoordinator','_init','3394746sRIDjU','getInitialStates','children','use','mask','_injector','_handleOperation','add','_unitID','shouldShareOperation','get','defineProperty','button','pipe','from','subscribe','asObservable','getTypeOfUnitDisposed$','parse','xlink:href','_handleOnline','stringify','forEach','set','stopFollowing','_reporters','string','presenter','includes','tag','requireSession','evenodd','FOLLOWING','NOT_FOLLOWING','_configService','_handleNewHost','currentColor','1em','substring','PRESENTING','univer-size-4','not-following','LIVESHARE_REQUEST_HOST','Stop\x20following','getUnitId','univer-mb-3\x20univer-w-full\x20univer-text-sm','defs','_presenter','then','_collabSession','_beIdle','UNIVER_SHEET','complete','executeCommand','idSuffix','_startPresenting','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','getOwnPropertyDescriptor','524128cuqhrt','getConfig','univerjs-icon\x20univerjs-icon-','offline','sheet','635140DFbyiI','init','Start\x20following','HEADER_MENU','2621020btxZtJ','startFollowing','pluginName','map','trim','tryStartPresenting','You\x27re\x20following\x20the\x20presenter','current','You\x27re\x20presenting\x20the\x20document','following','unsubscribe','send','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','_handleOffline','19644BGGqJL','reverse','LIVESHARE_TERMINATE','_startLiveShareCoordinator','path','_uiPartsService','_univerInstanceService','http://www.w3.org/2000/svg','defIds','attrs','next','getValue','_collabSessionService','Stop\x20presenting','toString','getStatus','_status','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','OFFLINE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_config','presenting','21ENHpxJ','dispose$','fill','params','mutations','ONLINE','_stopPresenting','createInstance','getTypeOfUnitAdded$','operations','registerInitialStateReporter','memberID','_liveShareService','clear','onCommandExecuted','LIVESHARE_OPERATION','find','getCurrentTypeOfUnit$'];_0x4234=function(){return _0x58ace9;};return _0x4234();}var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x3d8a60,_0x28db47,_0x139ea8,_0x2063df)=>{const _0x36d01c=_0x6e67a4;for(var _0x4529f6=_0x2063df>0x1?void 0x0:_0x2063df?Ue(_0x28db47,_0x139ea8):_0x28db47,_0x4a271c=_0x3d8a60[_0x36d01c(0x18a)]-0x1,_0x58a25e;_0x4a271c>=0x0;_0x4a271c--)(_0x58a25e=_0x3d8a60[_0x4a271c])&&(_0x4529f6=_0x58a25e(_0x4529f6)||_0x4529f6);return _0x4529f6;},je=(_0x17a460,_0x1d08af)=>(_0x4195dd,_0x59a097)=>_0x1d08af(_0x4195dd,_0x59a097,_0x17a460);let I=class extends _0x5e24bb{constructor(_0x169bce){const _0x1a264c=_0x6e67a4;super(),this['_liveShareService']=_0x169bce,this[_0x1a264c(0x1b2)]();}[_0x6e67a4(0x1b2)](){const _0x173351=_0x6e67a4;[_0x13aa72['id'],_0x4e9adb['id'],_0x553e77['id']][_0x173351(0x1c9)](_0x359c56=>{const _0x3ae2c6=_0x173351;this[_0x3ae2c6(0x19a)](this[_0x3ae2c6(0x226)]['registerSharedOperation'](_0x359c56));});}};I=Ve([je(0x0,_0x59f7c6(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x492f5b,_0x530f7a,_0x5b619e)=>_0x530f7a in _0x492f5b?Me(_0x492f5b,_0x530f7a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b619e}):_0x492f5b[_0x530f7a]=_0x5b619e,We=(_0x15f183,_0x2980e6,_0x4b483e,_0x576d45)=>{const _0x28e8cb=_0x6e67a4;for(var _0x88ee99=_0x576d45>0x1?void 0x0:_0x576d45?ke(_0x2980e6,_0x4b483e):_0x2980e6,_0x48bae3=_0x15f183[_0x28e8cb(0x18a)]-0x1,_0x2566cf;_0x48bae3>=0x0;_0x48bae3--)(_0x2566cf=_0x15f183[_0x48bae3])&&(_0x88ee99=_0x2566cf(_0x88ee99)||_0x88ee99);return _0x88ee99;},F=(_0x9e523f,_0x43ee28)=>(_0x3d3fc7,_0x420bd6)=>_0x43ee28(_0x3d3fc7,_0x420bd6,_0x9e523f),B=(_0x37b214,_0x3d7f1f,_0x22a0e8)=>Ge(_0x37b214,typeof _0x3d7f1f!=_0x6e67a4(0x1a4)?_0x3d7f1f+'':_0x3d7f1f,_0x22a0e8);const Ye=_0x6e67a4(0x193);let b=class extends _0x5cd1de{constructor(_0x153859=T,_0x562ddc,_0x5a18ec){const _0x108598=_0x6e67a4;super(),this[_0x108598(0x218)]=_0x153859,this[_0x108598(0x1b8)]=_0x562ddc,this[_0x108598(0x1d5)]=_0x5a18ec;const {..._0x7ee6ec}=_0x727060({},T,this[_0x108598(0x218)]);this[_0x108598(0x1d5)]['setConfig'](ye,_0x7ee6ec);}['onStarting'](){const _0x39e603=_0x6e67a4;_0x28a48e(this[_0x39e603(0x1b8)],_0x357330([[L],[S],[I],[m]],this[_0x39e603(0x218)][_0x39e603(0x194)])),_0x25c3b0(this[_0x39e603(0x1b8)],[[I]]);}['onRendered'](){const _0x570ca8=_0x6e67a4;_0x25c3b0(this[_0x570ca8(0x1b8)],[[m]]);}};B(b,_0x6e67a4(0x189),_0x118f42['UNIVER_UNKNOWN']),B(b,_0x6e67a4(0x1f8),Ye),b=We([_0xe1d233(_0x4a1e33),F(0x1,_0x59f7c6(_0x4531be)),F(0x2,_0x3f6d6e)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2bcfb7,_0x12b15e){const _0x4ae564=_0x3847,_0x47f597=_0x2bcfb7();while(!![]){try{const _0x28588d=-parseInt(_0x4ae564(0x117))/0x1+-parseInt(_0x4ae564(0x11c))/0x2*(parseInt(_0x4ae564(0xf4))/0x3)+parseInt(_0x4ae564(0x110))/0x4*(-parseInt(_0x4ae564(0x12c))/0x5)+-parseInt(_0x4ae564(0x122))/0x6+parseInt(_0x4ae564(0xfc))/0x7*(parseInt(_0x4ae564(0x126))/0x8)+parseInt(_0x4ae564(0x116))/0x9*(-parseInt(_0x4ae564(0x115))/0xa)+parseInt(_0x4ae564(0x125))/0xb;if(_0x28588d===_0x12b15e)break;else _0x47f597['push'](_0x47f597['shift']());}catch(_0x44ed9f){_0x47f597['push'](_0x47f597['shift']());}}}(_0x23d8,0xe8dce),function(_0x148bf2,_0x30ad78){const _0x257417=_0x3847;typeof exports==_0x257417(0x118)&&typeof module<'u'?_0x30ad78(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x257417(0x111)&&define[_0x257417(0x104)]?define([_0x257417(0x11e),_0x257417(0xf6),_0x257417(0x124),_0x257417(0x109),_0x257417(0x114),_0x257417(0x103)],_0x30ad78):(_0x148bf2=typeof globalThis<'u'?globalThis:_0x148bf2||self,_0x30ad78(_0x148bf2['UniverProLiveShare'],_0x148bf2[_0x257417(0x107)],_0x148bf2[_0x257417(0x10a)],_0x148bf2[_0x257417(0xf7)],_0x148bf2['UniverSheetsFacade'],_0x148bf2['UniverCoreFacade']));}(this,function(_0x796e8c,_0x381693,_0x429ae2,_0x84ba6a,_0x4684f4,_0x10b60d){'use strict';const _0x2d46fc=_0x3847;class _0x1c3db3 extends _0x4684f4[_0x2d46fc(0xfa)]{[_0x2d46fc(0x11d)](_0xc03c0d,_0x2e2500,_0x2bad66,_0x190d33,_0x39b32b){const _0x590423=_0x2d46fc,_0x4ffaa2=_0xc03c0d[_0x590423(0x12b)](_0x796e8c[_0x590423(0x10b)]),_0x190ade=_0xc03c0d[_0x590423(0x12b)](_0x381693[_0x590423(0x105)]),_0x2e5d66=_0x2e2500[_0x590423(0x113)](),_0xd3c2ff=_0x2e2500[_0x590423(0xf5)](),_0x4c8757=_0x4ffaa2[_0x590423(0x12a)](_0x2e5d66);(_0x4c8757==null?void 0x0:_0x4c8757[_0x590423(0x10f)]())!==_0x796e8c[_0x590423(0x112)][_0x590423(0x129)]||(_0x2bad66[_0x590423(0x127)]()!==_0xd3c2ff['getSheetId']()&&this['_commandService']['executeCommand'](_0x429ae2[_0x590423(0x120)]['id'],{'unitId':_0x2e5d66,'subUnitId':_0x2bad66[_0x590423(0x127)]()}),!_0x190ade[_0x590423(0x10d)](_0x2e5d66))||_0x39b32b[_0x590423(0x11a)](_0x84ba6a[_0x590423(0x10e)]['id'],{'unitId':_0x2e2500['getUnitId'](),'sheetId':_0x2bad66[_0x590423(0x127)](),'sheetViewStartRow':_0x190d33[_0x590423(0xfe)],'sheetViewStartColumn':_0x190d33[_0x590423(0x108)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4684f4[_0x2d46fc(0xfa)][_0x2d46fc(0x102)](_0x1c3db3);class _0x3aeb4c extends _0x10b60d[_0x2d46fc(0x128)]{[_0x2d46fc(0x10c)](){const _0x318eee=_0x2d46fc;var _0x3ab2ac,_0x98fcb7;const _0x3e6d04=this[_0x318eee(0x100)][_0x318eee(0x12b)](_0x796e8c['LiveShareController']),_0x4f92d9=(_0x3ab2ac=this[_0x318eee(0xfb)]())==null?void 0x0:_0x3ab2ac[_0x318eee(0x119)]();if(!_0x4f92d9)throw new Error('No\x20active\x20workbook\x20found.');const _0xd9e953=_0x3e6d04['getLiveShareCoordinatorSync'](_0x4f92d9);return(_0x98fcb7=_0xd9e953==null?void 0x0:_0xd9e953['getStatus']())!=null?_0x98fcb7:_0x796e8c[_0x318eee(0x112)][_0x318eee(0xfd)];}[_0x2d46fc(0xff)](){const _0x21c932=_0x2d46fc;var _0x3b4471;const _0x24792c=this['_injector'][_0x21c932(0x12b)](_0x796e8c[_0x21c932(0x10b)]),_0x32a629=(_0x3b4471=this[_0x21c932(0xfb)]())==null?void 0x0:_0x3b4471['getId']();if(!_0x32a629)throw new Error(_0x21c932(0x106));const _0x222b98=_0x24792c[_0x21c932(0x12a)](_0x32a629);if(!_0x222b98)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x222b98[_0x21c932(0xff)]();}[_0x2d46fc(0xf8)](){const _0xa84f4c=_0x2d46fc;var _0x15aedc;const _0x2b635c=this[_0xa84f4c(0x100)][_0xa84f4c(0x12b)](_0x796e8c[_0xa84f4c(0x10b)]),_0x138f32=(_0x15aedc=this[_0xa84f4c(0xfb)]())==null?void 0x0:_0x15aedc['getId']();if(!_0x138f32)throw new Error(_0xa84f4c(0x106));const _0x1f0942=_0x2b635c[_0xa84f4c(0x12a)](_0x138f32);if(!_0x1f0942)throw new Error(_0xa84f4c(0x121));_0x1f0942['stopFollowing']();}[_0x2d46fc(0x11b)](){const _0x1400e1=_0x2d46fc;var _0x1a97cc;const _0xe70d63=this['_injector'][_0x1400e1(0x12b)](_0x796e8c[_0x1400e1(0x10b)]),_0x359bce=(_0x1a97cc=this['getActiveWorkbook']())==null?void 0x0:_0x1a97cc[_0x1400e1(0x119)]();if(!_0x359bce)throw new Error(_0x1400e1(0x106));const _0x30c91e=_0xe70d63[_0x1400e1(0x12a)](_0x359bce);if(!_0x30c91e)throw new Error(_0x1400e1(0x121));_0x30c91e[_0x1400e1(0x11f)]();}[_0x2d46fc(0xf9)](){const _0x406d6d=_0x2d46fc;var _0x51fafc;const _0x537eb5=this[_0x406d6d(0x100)][_0x406d6d(0x12b)](_0x796e8c[_0x406d6d(0x10b)]),_0xba92b4=(_0x51fafc=this[_0x406d6d(0xfb)]())==null?void 0x0:_0x51fafc[_0x406d6d(0x119)]();if(!_0xba92b4)throw new Error(_0x406d6d(0x106));const _0x50b231=_0x537eb5[_0x406d6d(0x12a)](_0xba92b4);if(!_0x50b231)throw new Error(_0x406d6d(0x121));_0x50b231['stopPresenting']();}}_0x10b60d[_0x2d46fc(0x128)][_0x2d46fc(0x102)](_0x3aeb4c);class _0x389abe extends _0x10b60d[_0x2d46fc(0x101)]{get[_0x2d46fc(0x123)](){return _0x796e8c['LiveShareStatus'];}}_0x10b60d['FEnum'][_0x2d46fc(0x102)](_0x389abe);}));function _0x3847(_0x37fef0,_0x1dda9f){_0x37fef0=_0x37fef0-0xf4;const _0x23d821=_0x23d8();let _0x3847f3=_0x23d821[_0x37fef0];return _0x3847f3;}function _0x23d8(){const _0x43b80e=['tryStartPresenting','SetWorksheetActiveOperation','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2453232chSqvB','LiveShareStatusEnum','@univerjs/sheets','50071252zNtUCf','3565928Uoremr','getSheetId','FUniver','PRESENTING','getLiveShareCoordinatorSync','get','5hJsFaM','6naQbpZ','getActiveSheet','@univerjs/engine-render','UniverSheetsUi','stopFollowing','stopPresenting','FRange','getActiveWorkbook','7vghJuo','IDLE','startRow','startFollowing','_injector','FEnum','extend','@univerjs/core/facade','amd','IRenderManagerService','No\x20active\x20workbook\x20found.','UniverEngineRender','startColumn','@univerjs/sheets-ui','UniverSheets','LiveShareController','getLiveShareStatus','getRenderById','SetScrollOperation','getStatus','2835640ufeZBO','function','LiveShareStatus','getUnitId','@univerjs/sheets/facade','20SxMumP','6814755IWZyhT','1277723jZlJsj','object','getId','syncExecuteCommand','startPresenting','133972hVtNWp','_initialize','@univerjs-pro/live-share'];_0x23d8=function(){return _0x43b80e;};return _0x23d8();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1699(){const _0x4f9b76=['live-share-icon','registerComponent','substring','getConfig','LiveShareController','getCurrentTypeOfUnit$','map','unsubscribe','_startFollowing','CollaborationSessionService','_collabSessionService','forEach','ICommandService','_mountLiveShare','Start','SetZoomRatioOperation','LIVESHARE_NEW_HOST','Disposable','data','UniverDesign','_liveShareService','toStringTag','_injector','requireSession','getMemberID','1563890DkvwZo','string','colorChannel1','exports','React','tryStartPresenting','default','SetWorksheetActiveOperation','Start\x20following','You\x27are\x20offline.','Module','symbol','presenter','getInitialStates','div','_handleOperation','3156904usvbgF','4594820YNIOAm','next','BehaviorSubject','_commandDisposable','reverse','UNIVER_SHEET','_handleNewHost','FOLLOWING','set','Injector','end','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','IUniverInstanceService','IUIPartsService','5420130PASSIb','includes','_handleOnline','InsertSheetMutation','_startPresenting','tag','asObservable','init','2489247OuMgsA','use','memberID','none','get','useRef','You\x27re\x20following\x20the\x20presenter','RxDisposable','sessionStatus$','jsx','parse','DesktopLiveShareController','@univerjs-pro/collaboration-client','svg','_config','connectInjector','Present\x20this\x20document','displayName','Button','subscribe','amd','_stopPresenting','toDisposable','add','You\x27re\x20not\x20following\x20the\x20presenter','UniverCore','_entities','idSuffix','_reporters','Plugin','assign','LiveShare','toString','path','stopFollowing','UniverProLiveShare','send','6393443WnWlRp','current','clear','pipe','merge','touchDependencies','SAME_OPERATION_SHARE_INTERVAL','setConfig','LiveShareIcon','react/jsx-runtime','stringify','registerInitialStateReporter','LIVESHARE_OPERATION','following','currentColor','sheet','UniverCollaborationClientPlugin','_handleOffline','CollaborationEvent','evenodd','fill','_startLiveShareCoordinator','IConfigService','react','_configService','_unitID','event$','rxjs/operators','defineProperty','@univerjs/core','@univerjs/design','idle','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20presenting\x20the\x20document','parseProtocolChangeset','not-following','ONLINE','dispose','length','NOT_FOLLOWING','_collabSession','UniverSheetsUi','SessionStatus','_stopFollowing','getStatus','NEW_CHANGESETS','univer-size-4','getUnitId','Stop\x20presenting','override','_fetchOperations','startFollowing','getLiveShareCoordinatorSync','_presenter','mergeOverrideWithDependencies','replace','_handleTerminate','values','button','stopPresenting','random','getValue','find','_status$','defs','onCommandExecuted','delete','_beIdle','_handleNewChangeSets','attrs','UNIVER_LIVE_SHARE_PLUGIN','SetScrollOperation','1em','getLiveShareCoordinator','@univerjs-pro/collaboration','presenting','UniverInstanceType','Fragment','takeUntil','url(#$1','Dropdown','getTypeOfUnitAdded$','params','1vGMaQF','LIVESHARE_REQUEST_HOST','pluginName','univer-mb-3\x20univer-w-full\x20univer-text-sm','IDLE','object','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','type','registerDependencies','UniverIcon','throttleTime','OFFLINE','jsxs','@univerjs/ui','createInstance','OPERATION','UniverProCollaboration','_init','clsx','LIVESHARE_TERMINATE','status$','0\x200\x2017\x2017','createElement','LiveShareCoordinator','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','Inject','_commandService','_uiPartsService','useState','getOwnPropertyDescriptor','unitId','UniverSheets','http://www.w3.org/2000/svg','3307608TksVAb','operations','dispose$','from','children','useDependency','@univerjs/sheets','has','UniverLiveSharePlugin','_sharedOperations','UniverUi','xlink:href','PRESENTING','defIds','_univerInstanceService','_status','disposeWithMe','mask','UNIVER_UNKNOWN','onStarting','useObservable','offline','registerSharedOperation'];_0x1699=function(){return _0x4f9b76;};return _0x1699();}function _0x321c(_0x2398bc,_0x18cfbc){const _0x1699bc=_0x1699();return _0x321c=function(_0x321cb5,_0x44ccad){_0x321cb5=_0x321cb5-0xef;let _0x19672b=_0x1699bc[_0x321cb5];return _0x19672b;},_0x321c(_0x2398bc,_0x18cfbc);}(function(_0xc33571,_0x5f5c61){const _0x45abd3=_0x321c,_0x39d4ad=_0xc33571();while(!![]){try{const _0x51613f=-parseInt(_0x45abd3(0x101))/0x1*(parseInt(_0x45abd3(0x152))/0x2)+parseInt(_0x45abd3(0x179))/0x3+-parseInt(_0x45abd3(0x122))/0x4+-parseInt(_0x45abd3(0x163))/0x5+parseInt(_0x45abd3(0x171))/0x6+parseInt(_0x45abd3(0x19e))/0x7+parseInt(_0x45abd3(0x162))/0x8;if(_0x51613f===_0x5f5c61)break;else _0x39d4ad['push'](_0x39d4ad['shift']());}catch(_0x253bec){_0x39d4ad['push'](_0x39d4ad['shift']());}}}(_0x1699,0x7d4e7),function(_0x28542b,_0x436aa3){const _0x47c37d=_0x321c;typeof exports==_0x47c37d(0x106)&&typeof module<'u'?_0x436aa3(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[_0x47c37d(0x18d)]?define([_0x47c37d(0x155),_0x47c37d(0x1bb),_0x47c37d(0x10e),_0x47c37d(0x1a7),_0x47c37d(0x1bc),_0x47c37d(0x1b5),_0x47c37d(0xf8),_0x47c37d(0x185),_0x47c37d(0x128),'rxjs',_0x47c37d(0x1b9),'@univerjs/sheets-ui'],_0x436aa3):(_0x28542b=typeof globalThis<'u'?globalThis:_0x28542b||self,_0x436aa3(_0x28542b[_0x47c37d(0x19c)]={},_0x28542b[_0x47c37d(0x192)],_0x28542b[_0x47c37d(0x12c)],_0x28542b[_0x47c37d(0x156)],_0x28542b[_0x47c37d(0x14c)],_0x28542b[_0x47c37d(0x156)],_0x28542b[_0x47c37d(0x111)],_0x28542b['UniverProCollaborationClient'],_0x28542b[_0x47c37d(0x120)],_0x28542b['rxjs'],_0x28542b['rxjs']['operators'],_0x28542b[_0x47c37d(0x1c7)]));}(this,function(_0x1aa668,_0x544c92,_0x4e5103,_0x135a27,_0x2666de,_0x51f070,_0x403454,_0x1171e0,_0x336bc0,_0x498c12,_0x3c3415,_0x4f2758){'use strict';const _0x27edfa=_0x321c;var _0x9ac266=Object[_0x27edfa(0x1ba)],_0x20f232=(_0x501b9c,_0x176e36,_0x34e5d4)=>_0x176e36 in _0x501b9c?_0x9ac266(_0x501b9c,_0x176e36,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34e5d4}):_0x501b9c[_0x176e36]=_0x34e5d4,_0x428aec=(_0x300461,_0x4579cd,_0x3eb66d)=>_0x20f232(_0x300461,typeof _0x4579cd!='symbol'?_0x4579cd+'':_0x4579cd,_0x3eb66d);function _0xa2edf3({ref:_0x5aa3d2,..._0xa5d6c0}){const _0x5126d9=_0x27edfa,{icon:_0x1c6eee,id:_0xc58cec,className:_0x19bf42,extend:_0x277072,..._0x19f01e}=_0xa5d6c0,_0x1d037f=('univerjs-icon\x20univerjs-icon-'+_0xc58cec+'\x20'+(_0x19bf42||''))['trim'](),_0x434069=_0x51f070['useRef']('_'+_0x318637());return _0x2f6013(_0x1c6eee,''+_0xc58cec,{'defIds':_0x1c6eee[_0x5126d9(0x12f)],'idSuffix':_0x434069[_0x5126d9(0x19f)]},{'ref':_0x5aa3d2,'className':_0x1d037f,..._0x19f01e},_0x277072);}function _0x2f6013(_0x499117,_0x416309,_0x5505e3,_0x63a168,_0x3a1ef0){const _0x7c4b8=_0x27edfa;return _0x51f070[_0x7c4b8(0x117)](_0x499117[_0x7c4b8(0x176)],{'key':_0x416309,..._0x5dcaeb(_0x499117,_0x5505e3,_0x3a1ef0),..._0x63a168},(_0x375833(_0x499117,_0x5505e3)[_0x7c4b8(0x126)]||[])[_0x7c4b8(0x13f)]((_0x5efd08,_0x3d631d)=>_0x2f6013(_0x5efd08,_0x416309+'-'+_0x499117[_0x7c4b8(0x176)]+'-'+_0x3d631d,_0x5505e3,void 0x0,_0x3a1ef0)));}function _0x5dcaeb(_0xcd5580,_0x31f1f0,_0xd3d6eb){const _0x450198=_0x27edfa,_0x2e8c66={..._0xcd5580[_0x450198(0xf3)]};_0xd3d6eb!=null&&_0xd3d6eb[_0x450198(0x154)]&&_0x2e8c66[_0x450198(0x1b2)]===_0x450198(0x154)&&(_0x2e8c66[_0x450198(0x1b2)]=_0xd3d6eb[_0x450198(0x154)]),_0xcd5580[_0x450198(0x176)]===_0x450198(0x133)&&_0x2e8c66['id']&&(_0x2e8c66['id']=_0x2e8c66['id']+_0x31f1f0[_0x450198(0x194)]),Object['entries'](_0x2e8c66)[_0x450198(0x144)](([_0x482bfc,_0xa54c37])=>{const _0x45992f=_0x450198;_0x482bfc==='mask'&&typeof _0xa54c37==_0x45992f(0x153)&&(_0x2e8c66[_0x482bfc]=_0xa54c37['replace'](/url\(#(.*)\)/,_0x45992f(0xfd)+_0x31f1f0['idSuffix']+')'));});const {defIds:_0x1a01e9}=_0x31f1f0;return!_0x1a01e9||_0x1a01e9[_0x450198(0x1c4)]===0x0||(_0xcd5580[_0x450198(0x176)]===_0x450198(0x17a)&&_0x2e8c66[_0x450198(0x12d)]&&(_0x2e8c66[_0x450198(0x12d)]=_0x2e8c66[_0x450198(0x12d)]+_0x31f1f0[_0x450198(0x194)]),Object['entries'](_0x2e8c66)[_0x450198(0x144)](([_0x392525,_0x3b226f])=>{const _0x4ab063=_0x450198;typeof _0x3b226f==_0x4ab063(0x153)&&(_0x2e8c66[_0x392525]=_0x3b226f[_0x4ab063(0x1d5)](/url\(#(.*)\)/,_0x4ab063(0xfd)+_0x31f1f0[_0x4ab063(0x194)]+')'));})),_0x2e8c66;}function _0x375833(_0x126225,_0x2a3473){const _0x323f84=_0x27edfa;var _0x3f8467;const {defIds:_0x32421c}=_0x2a3473;return!_0x32421c||_0x32421c[_0x323f84(0x1c4)]===0x0?_0x126225:_0x126225[_0x323f84(0x176)]===_0x323f84(0x1de)&&((_0x3f8467=_0x126225[_0x323f84(0x126)])!=null&&_0x3f8467[_0x323f84(0x1c4)])?{..._0x126225,'children':_0x126225[_0x323f84(0x126)]['map'](_0x263281=>typeof _0x263281[_0x323f84(0xf3)]['id']==_0x323f84(0x153)&&_0x32421c&&_0x32421c[_0x323f84(0x172)](_0x263281[_0x323f84(0xf3)]['id'])?{..._0x263281,'attrs':{..._0x263281[_0x323f84(0xf3)],'id':_0x263281[_0x323f84(0xf3)]['id']+_0x2a3473[_0x323f84(0x194)]}}:_0x263281)}:_0x126225;}function _0x318637(){const _0x47db3d=_0x27edfa;return Math[_0x47db3d(0x1da)]()[_0x47db3d(0x199)](0x24)[_0x47db3d(0x13b)](0x2,0x8);}_0xa2edf3[_0x27edfa(0x18a)]=_0x27edfa(0x10a);const _0x2b3782={'tag':_0x27edfa(0x186),'attrs':{'xmlns':_0x27edfa(0x121),'fill':_0x27edfa(0x17c),'viewBox':_0x27edfa(0x116),'width':_0x27edfa(0xf6),'height':_0x27edfa(0xf6)},'children':[{'tag':_0x27edfa(0x19a),'attrs':{'fill':'currentColor','d':_0x27edfa(0x119)}},{'tag':_0x27edfa(0x19a),'attrs':{'fill':_0x27edfa(0x1ac),'d':_0x27edfa(0x107),'fillRule':_0x27edfa(0x1b1),'clipRule':_0x27edfa(0x1b1)}}]},_0x45b447=_0x51f070['forwardRef'](function(_0x3272e3,_0xe5e913){const _0x31e93e=_0x27edfa;return _0x51f070[_0x31e93e(0x117)](_0xa2edf3,Object[_0x31e93e(0x197)]({},_0x3272e3,{'id':_0x31e93e(0x139),'ref':_0xe5e913,'icon':_0x2b3782}));});_0x45b447[_0x27edfa(0x18a)]=_0x27edfa(0x1a6);class _0x181d67 extends _0x544c92[_0x27edfa(0x14a)]{constructor(){const _0x4c87a5=_0x27edfa;super(...arguments),_0x428aec(this,_0x4c87a5(0x12b),new Set()),_0x428aec(this,'_reporters',new Set());}['registerSharedOperation'](_0x584e88){const _0x3e3136=_0x27edfa;return this[_0x3e3136(0x12b)]['add'](_0x584e88),_0x544c92['toDisposable'](()=>this[_0x3e3136(0x12b)]['delete'](_0x584e88));}[_0x27edfa(0x1a9)](_0x5990f4){const _0x554765=_0x27edfa;return this['_reporters'][_0x554765(0x190)](_0x5990f4),_0x544c92[_0x554765(0x18f)](()=>this[_0x554765(0x195)][_0x554765(0xf0)](_0x5990f4));}['shouldShareOperation'](_0x32ff90){const _0x3c65a4=_0x27edfa;return this[_0x3c65a4(0x12b)][_0x3c65a4(0x129)](_0x32ff90);}[_0x27edfa(0x15f)](_0x4a7688){const _0x35625b=_0x27edfa;return Array[_0x35625b(0x125)](this[_0x35625b(0x195)])[_0x35625b(0x13f)](_0xc4eec6=>_0xc4eec6(_0x4a7688));}}var _0x12e594=Object[_0x27edfa(0x11e)],_0x2ebb4d=(_0x14dc1b,_0xae6aeb,_0x30ca5a,_0x464ec5)=>{const _0x100ab5=_0x27edfa;for(var _0x1fb579=_0x464ec5>0x1?void 0x0:_0x464ec5?_0x12e594(_0xae6aeb,_0x30ca5a):_0xae6aeb,_0x4362fb=_0x14dc1b[_0x100ab5(0x1c4)]-0x1,_0x41ecfb;_0x4362fb>=0x0;_0x4362fb--)(_0x41ecfb=_0x14dc1b[_0x4362fb])&&(_0x1fb579=_0x41ecfb(_0x1fb579)||_0x1fb579);return _0x1fb579;},_0x446061=(_0x10025f,_0x20abc4)=>(_0x56a4a1,_0x1b94a1)=>_0x20abc4(_0x56a4a1,_0x1b94a1,_0x10025f);_0x1aa668[_0x27edfa(0x13d)]=class extends _0x544c92[_0x27edfa(0x180)]{constructor(_0x4eaa3b,_0x294106,_0x343ab1){const _0xcfd275=_0x27edfa;super(),_0x428aec(this,_0xcfd275(0x193),new Map()),(this['_univerInstanceService']=_0x4eaa3b,this['_injector']=_0x294106,this[_0xcfd275(0x143)]=_0x343ab1,this[_0xcfd275(0x112)]());}async[_0x27edfa(0xf7)](_0x9cda37){const _0x558e32=_0x27edfa;return this[_0x558e32(0x193)][_0x558e32(0x129)](_0x9cda37)||await this['_startLiveShareCoordinator'](_0x9cda37),this[_0x558e32(0x193)][_0x558e32(0x17d)](_0x9cda37);}[_0x27edfa(0x1d2)](_0x1e2d5e){var _0x5afb7e;return(_0x5afb7e=this['_entities']['get'](_0x1e2d5e))!=null?_0x5afb7e:null;}[_0x27edfa(0x112)](){const _0xe385b=_0x27edfa;this[_0xe385b(0x130)][_0xe385b(0xff)](_0x544c92[_0xe385b(0xfa)][_0xe385b(0x168)])['pipe'](_0x3c3415[_0xe385b(0xfc)](this['dispose$']))[_0xe385b(0x18c)](async _0x27cf3b=>{const _0x46ca29=_0xe385b,_0x360390=_0x27cf3b[_0x46ca29(0x1cd)]();this[_0x46ca29(0x193)][_0x46ca29(0x129)](_0x360390)||this[_0x46ca29(0x1b3)](_0x360390);}),this[_0xe385b(0x130)]['getTypeOfUnitDisposed$'](_0x544c92[_0xe385b(0xfa)]['UNIVER_SHEET'])['pipe'](_0x3c3415['takeUntil'](this[_0xe385b(0x124)]))[_0xe385b(0x18c)](_0x50b3d7=>{const _0x2c4b5a=_0xe385b,_0x1fcb28=_0x50b3d7[_0x2c4b5a(0x1cd)](),_0x5d8692=this[_0x2c4b5a(0x193)][_0x2c4b5a(0x17d)](_0x1fcb28);_0x5d8692==null||_0x5d8692[_0x2c4b5a(0x1c3)]();});}async[_0x27edfa(0x1b3)](_0x2672bc){const _0xeabb24=_0x27edfa,_0x5dcfa8=await this[_0xeabb24(0x143)][_0xeabb24(0x150)](_0x2672bc),_0x559eeb=this['_injector'][_0xeabb24(0x10f)](_0x1aa668[_0xeabb24(0x118)],_0x2672bc,_0x5dcfa8);return _0x559eeb[_0xeabb24(0x178)](),this[_0xeabb24(0x193)][_0xeabb24(0x16b)](_0x2672bc,_0x559eeb),_0x559eeb;}},_0x1aa668[_0x27edfa(0x13d)]=_0x2ebb4d([_0x446061(0x0,_0x544c92[_0x27edfa(0x16f)]),_0x446061(0x1,_0x544c92['Inject'](_0x544c92[_0x27edfa(0x16c)])),_0x446061(0x2,_0x544c92[_0x27edfa(0x11a)](_0x1171e0[_0x27edfa(0x142)]))],_0x1aa668['LiveShareController']);var _0x345d0f=(_0x588301=>(_0x588301[_0x27edfa(0x10c)]=_0x27edfa(0x137),_0x588301[_0x27edfa(0x105)]='idle',_0x588301['FOLLOWING']='following',_0x588301['NOT_FOLLOWING']=_0x27edfa(0x1c1),_0x588301[_0x27edfa(0x12e)]=_0x27edfa(0xf9),_0x588301))(_0x345d0f||{});const _0x3b4949=_0x27edfa(0x1a4),_0x38a0b5=0xc8;_0x1aa668[_0x27edfa(0x118)]=class extends _0x544c92[_0x27edfa(0x180)]{constructor(_0x18f15a,_0x2c1d72,_0x36f581,_0x510df3,_0x36465a){const _0x2900fe=_0x27edfa;super(),_0x428aec(this,'_status$',new _0x498c12[(_0x2900fe(0x165))](_0x2900fe(0x1bd))),_0x428aec(this,_0x2900fe(0x115),this[_0x2900fe(0x1dd)][_0x2900fe(0x177)]()),_0x428aec(this,_0x2900fe(0x112),!0x1),_0x428aec(this,_0x2900fe(0x166),null),_0x428aec(this,'_presenter',null),(this[_0x2900fe(0x1b7)]=_0x18f15a,this['_collabSession']=_0x2c1d72,this['_configService']=_0x36f581,this[_0x2900fe(0x14d)]=_0x510df3,this[_0x2900fe(0x11b)]=_0x36465a);}get[_0x27edfa(0x131)](){const _0x593451=_0x27edfa;return this[_0x593451(0x1dd)][_0x593451(0x1db)]();}['dispose'](){const _0x47cab3=_0x27edfa;var _0x3faef4;(_0x3faef4=this[_0x47cab3(0x166)])==null||_0x3faef4[_0x47cab3(0x1c3)](),this[_0x47cab3(0x1dd)][_0x47cab3(0x164)](_0x47cab3(0x1bd)),this[_0x47cab3(0x1dd)]['complete']();}[_0x27edfa(0x1ca)](){const _0xfd218f=_0x27edfa;return this[_0xfd218f(0x131)];}[_0x27edfa(0x178)](){const _0x110003=_0x27edfa;this['_init']||(this[_0x110003(0x112)]=!0x0,this['_collabSession'][_0x110003(0x181)][_0x110003(0x1a1)](_0x3c3415['takeUntil'](this['dispose$']))[_0x110003(0x18c)](_0x28453f=>{const _0x27d048=_0x110003;switch(_0x28453f){case _0x1171e0['SessionStatus'][_0x27d048(0x10c)]:this['_handleOffline']();break;case _0x1171e0[_0x27d048(0x1c8)][_0x27d048(0x1c2)]:this[_0x27d048(0x173)]();break;}}),this[_0x110003(0x1c6)][_0x110003(0x1b8)][_0x110003(0x1a1)](_0x3c3415[_0x110003(0xfc)](this['dispose$']))[_0x110003(0x18c)](_0x4502c2=>{const _0x452553=_0x110003,{eventID:_0x8ae176}=_0x4502c2;switch(_0x8ae176){case _0x403454[_0x452553(0x1b0)][_0x452553(0x149)]:this[_0x452553(0x169)](_0x4502c2);break;case _0x403454[_0x452553(0x1b0)][_0x452553(0x1aa)]:this[_0x452553(0x161)](_0x4502c2);break;case _0x403454[_0x452553(0x1b0)]['LIVESHARE_TERMINATE']:this[_0x452553(0x1d6)]();break;case _0x403454['CollaborationEvent'][_0x452553(0x1cb)]:this['_handleNewChangeSets'](_0x4502c2);break;}}));}[_0x27edfa(0x157)](){const _0x25e2b5=_0x27edfa;this[_0x25e2b5(0x1c6)][_0x25e2b5(0x19d)]({'eventID':_0x403454['CollaborationEvent'][_0x25e2b5(0x102)],'data':{'unitID':this[_0x25e2b5(0x1b7)],'userID':this[_0x25e2b5(0x1c6)][_0x25e2b5(0x151)]()}},this[_0x25e2b5(0x1b7)]);}[_0x27edfa(0x1d9)](){const _0x3e5cae=_0x27edfa;this[_0x3e5cae(0x131)]==='presenting'&&(this[_0x3e5cae(0x1dd)]['next'](_0x3e5cae(0x1bd)),this['_collabSession'][_0x3e5cae(0x19d)]({'eventID':_0x403454[_0x3e5cae(0x1b0)][_0x3e5cae(0x114)],'data':{'unitID':this[_0x3e5cae(0x1b7)]}},this[_0x3e5cae(0x1b7)]));}[_0x27edfa(0x1d1)](){const _0x57881b=_0x27edfa;this[_0x57881b(0x131)]===_0x57881b(0x1c1)&&(this[_0x57881b(0x1dd)][_0x57881b(0x164)](_0x57881b(0x1ab)),this[_0x57881b(0x141)]());}[_0x27edfa(0x19b)](){const _0x27a977=_0x27edfa;this['_status']===_0x27a977(0x1ab)&&this[_0x27a977(0x1c9)]();}['_handleNewHost'](_0x4504c9){const _0x274b3e=_0x27edfa,{presenter:_0x5d2b12}=_0x4504c9[_0x274b3e(0x14b)],_0x11a346=this[_0x274b3e(0x1c6)]['getMemberID']();this[_0x274b3e(0x1d3)]=_0x5d2b12,_0x5d2b12===_0x11a346?(this[_0x274b3e(0x1c9)](),this[_0x274b3e(0x175)]()):this[_0x274b3e(0x131)]!==_0x274b3e(0x1c1)&&(this[_0x274b3e(0x18e)](),this['_startFollowing']());}[_0x27edfa(0x1d0)](){const _0xf420c7=_0x27edfa,_0x2de098={'eventID':_0x403454['CollaborationEvent'][_0xf420c7(0x1be)]};this[_0xf420c7(0x1c6)][_0xf420c7(0x19d)](_0x2de098,this[_0xf420c7(0x1b7)]);}[_0x27edfa(0x1d6)](){const _0x20f3a3=_0x27edfa;this[_0x20f3a3(0x1d3)]=null,this[_0x20f3a3(0x131)]!==_0x20f3a3(0xf9)&&this[_0x20f3a3(0xf1)]();}[_0x27edfa(0xf2)](_0x57d427){const _0x44d802=_0x27edfa;if(this[_0x44d802(0x131)]==='following'&&this[_0x44d802(0x1d3)]===_0x57d427[_0x44d802(0x14b)][_0x44d802(0x17b)]){const _0x4fc7b6=_0x403454[_0x44d802(0x1c0)](_0x57d427[_0x44d802(0x14b)])['mutations'][_0x44d802(0x167)]()[_0x44d802(0x1dc)](_0x40974d=>_0x40974d['id']===_0x336bc0[_0x44d802(0x174)]['id']);if(_0x4fc7b6){const _0x6708a=_0x4fc7b6[_0x44d802(0x100)][_0x44d802(0x11f)],_0x2d1793=_0x4fc7b6[_0x44d802(0x100)][_0x44d802(0x1ad)]['id'];setTimeout(()=>{const _0x2c4f68=_0x44d802;this[_0x2c4f68(0x11b)]['executeCommand'](_0x336bc0[_0x2c4f68(0x159)]['id'],{'unitId':_0x6708a,'subUnitId':_0x2d1793},{'fromCollab':!0x0});});}}}[_0x27edfa(0x175)](){const _0x1051fc=_0x27edfa;this[_0x1051fc(0x1dd)][_0x1051fc(0x164)](_0x1051fc(0xf9));const _0x19479a=new Map(),_0x358efe=this['_commandDisposable']=new _0x544c92['DisposableCollection']();_0x358efe[_0x1051fc(0x190)](_0x544c92[_0x1051fc(0x18f)](()=>{const _0x314c29=_0x1051fc;_0x19479a['forEach'](_0x5ee99d=>_0x5ee99d['complete']()),_0x19479a[_0x314c29(0x1a0)]();})),_0x358efe[_0x1051fc(0x190)](this[_0x1051fc(0x11b)][_0x1051fc(0xef)](_0x48e4f2=>{const _0x5967c4=_0x1051fc;var _0x676635;if(_0x48e4f2[_0x5967c4(0x108)]!==_0x544c92['CommandType'][_0x5967c4(0x110)]||!this[_0x5967c4(0x14d)]['shouldShareOperation'](_0x48e4f2['id']))return;const {id:_0x3cfced}=_0x48e4f2;let _0x524a8d;_0x19479a[_0x5967c4(0x129)](_0x3cfced)?_0x524a8d=_0x19479a[_0x5967c4(0x17d)](_0x3cfced):(_0x524a8d=new _0x498c12['Subject'](),_0x19479a['set'](_0x3cfced,_0x524a8d),_0x524a8d[_0x5967c4(0x1a1)](_0x3c3415[_0x5967c4(0x10b)]((_0x676635=this[_0x5967c4(0x1b6)][_0x5967c4(0x13c)](_0x3b4949))!=null?_0x676635:_0x38a0b5,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5967c4(0x18c)](_0x243cd3=>{const _0x3377c3=_0x5967c4;this[_0x3377c3(0x1c6)][_0x3377c3(0x19d)]({'eventID':_0x403454[_0x3377c3(0x1b0)][_0x3377c3(0x1aa)],'data':{'unitID':this[_0x3377c3(0x1b7)],'operations':{[_0x243cd3['id']]:{'id':_0x243cd3['id'],'params':JSON['stringify'](_0x243cd3[_0x3377c3(0x100)])}}}},this[_0x3377c3(0x1b7)]);})),_0x524a8d[_0x5967c4(0x164)](_0x48e4f2);})),this[_0x1051fc(0x14d)][_0x1051fc(0x15f)](this[_0x1051fc(0x1b7)])['forEach'](_0x4bf67a=>this['_collabSession']['send']({'eventID':_0x403454[_0x1051fc(0x1b0)][_0x1051fc(0x1aa)],'data':{'unitID':this[_0x1051fc(0x1b7)],'operations':{[_0x4bf67a['id']]:{'id':_0x4bf67a['id'],'params':JSON[_0x1051fc(0x1a8)](_0x4bf67a[_0x1051fc(0x100)])}}}},this[_0x1051fc(0x1b7)]));}['_stopPresenting'](){const _0x4d49e6=_0x27edfa;var _0x4e1c66;this[_0x4d49e6(0x1dd)]['next'](_0x4d49e6(0x1bd)),(_0x4e1c66=this[_0x4d49e6(0x166)])==null||_0x4e1c66['dispose'](),this[_0x4d49e6(0x166)]=null;}['_startFollowing'](){const _0x522ac0=_0x27edfa;var _0x23323f;(_0x23323f=this[_0x522ac0(0x166)])==null||_0x23323f[_0x522ac0(0x1c3)](),this[_0x522ac0(0x1dd)][_0x522ac0(0x164)](_0x522ac0(0x1ab));}[_0x27edfa(0xf1)](){const _0x224715=_0x27edfa;var _0x2112e9;this['_status$'][_0x224715(0x164)](_0x224715(0x1bd)),(_0x2112e9=this[_0x224715(0x166)])==null||_0x2112e9[_0x224715(0x1c3)](),this[_0x224715(0x166)]=null;}[_0x27edfa(0x1c9)](){const _0x2e4b95=_0x27edfa;var _0x507191;this[_0x2e4b95(0x1dd)][_0x2e4b95(0x164)](_0x2e4b95(0x1c1)),(_0x507191=this[_0x2e4b95(0x166)])==null||_0x507191['dispose']();}['_handleOperation'](_0x79ad69){const _0x3b73e5=_0x27edfa;if([_0x3b73e5(0xf9),_0x3b73e5(0x1c1),_0x3b73e5(0x137)]['includes'](this[_0x3b73e5(0x131)])||!_0x79ad69[_0x3b73e5(0x14b)][_0x3b73e5(0x15e)]||_0x79ad69['data'][_0x3b73e5(0x15e)]===this[_0x3b73e5(0x1c6)]['getMemberID']())return;this[_0x3b73e5(0x131)]===_0x3b73e5(0x1bd)&&this[_0x3b73e5(0x141)]();const _0x50de90=_0x79ad69['data'][_0x3b73e5(0x123)];Object[_0x3b73e5(0x1d7)](_0x50de90)['forEach'](_0x557862=>{const _0x40aa40=_0x3b73e5;this[_0x40aa40(0x11b)]['executeCommand'](_0x557862['id'],_0x557862[_0x40aa40(0x100)]?JSON[_0x40aa40(0x183)](_0x557862['params']):null,{'fromCollab':!0x0});});}[_0x27edfa(0x1af)](){const _0x50f722=_0x27edfa;var _0x57a45e;this[_0x50f722(0x1dd)]['next'](_0x50f722(0x137)),(_0x57a45e=this[_0x50f722(0x166)])==null||_0x57a45e['dispose']();}[_0x27edfa(0x173)](){const _0x30d865=_0x27edfa;this[_0x30d865(0x1dd)][_0x30d865(0x164)](_0x30d865(0x1bd)),this[_0x30d865(0x1d0)]();}},_0x1aa668[_0x27edfa(0x118)]=_0x2ebb4d([_0x446061(0x2,_0x544c92[_0x27edfa(0x1b4)]),_0x446061(0x3,_0x544c92['Inject'](_0x181d67)),_0x446061(0x4,_0x544c92[_0x27edfa(0x145)])],_0x1aa668[_0x27edfa(0x118)]);function _0x8c856f(){const _0xd4f43c=_0x27edfa,_0x526359=_0x4e5103[_0xd4f43c(0x127)](_0x1aa668[_0xd4f43c(0x13d)]),_0x1ea60e=_0x4e5103[_0xd4f43c(0x127)](_0x544c92[_0xd4f43c(0x16f)]),_0x461c7b=_0x4e5103[_0xd4f43c(0x136)](()=>_0x1ea60e[_0xd4f43c(0x13e)](_0x544c92['UniverInstanceType'][_0xd4f43c(0x168)]),void 0x0,!0x1,[]),[_0x1a6d44,_0x1d5566]=_0x51f070[_0xd4f43c(0x11d)](null),[_0x226fe9,_0x5dcb82]=_0x51f070[_0xd4f43c(0x11d)](_0x345d0f[_0xd4f43c(0x105)]),_0x5e8201=_0x51f070[_0xd4f43c(0x17e)](null);return _0x51f070['useEffect'](()=>(_0x461c7b&&_0x526359[_0xd4f43c(0xf7)](_0x461c7b[_0xd4f43c(0x1cd)]())['then'](_0x47a5b5=>{const _0x112bca=_0xd4f43c;_0x1d5566(_0x47a5b5),_0x5e8201[_0x112bca(0x19f)]=_0x47a5b5['status$'][_0x112bca(0x18c)](_0x3617dd=>{_0x5dcb82(_0x3617dd);});}),()=>{const _0x44d054=_0xd4f43c;var _0x1ddf02;(_0x1ddf02=_0x5e8201[_0x44d054(0x19f)])==null||_0x1ddf02[_0x44d054(0x140)](),_0x5e8201[_0x44d054(0x19f)]=null;}),[_0x461c7b,_0x526359]),_0x1a6d44?_0x135a27[_0xd4f43c(0x182)](_0x2666de[_0xd4f43c(0xfe)],{'align':_0xd4f43c(0x16d),'disabled':_0x226fe9===_0x345d0f['OFFLINE'],'className':_0xd4f43c(0x16e),'overlay':_0x135a27[_0xd4f43c(0x182)](_0x6677ff,{'status':_0x226fe9,'coordinator':_0x1a6d44}),'children':_0x135a27[_0xd4f43c(0x182)](_0xd4f43c(0x1d8),{'className':_0x2666de[_0xd4f43c(0x113)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x226fe9===_0x345d0f[_0xd4f43c(0x10c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x226fe9!==_0x345d0f[_0xd4f43c(0x10c)]}),'type':'button','children':_0x135a27[_0xd4f43c(0x182)](_0x45b447,{'className':_0xd4f43c(0x1cc)})})}):null;}function _0x6677ff(_0x3c40e1){const _0x5ba83b=_0x27edfa,{status:_0x1697e2,coordinator:_0x18610e}=_0x3c40e1;switch(_0x1697e2){case _0x345d0f[_0x5ba83b(0x105)]:return _0x135a27['jsx'](_0x4d4086,{'coordinator':_0x18610e});case _0x345d0f[_0x5ba83b(0x16a)]:return _0x135a27['jsx'](_0x1eb5c2,{'coordinator':_0x18610e});case _0x345d0f[_0x5ba83b(0x1c5)]:return _0x135a27[_0x5ba83b(0x182)](_0x310870,{'coordinator':_0x18610e});case _0x345d0f[_0x5ba83b(0x10c)]:return _0x135a27[_0x5ba83b(0x182)](_0x50b4dc,{});case _0x345d0f[_0x5ba83b(0x12e)]:return _0x135a27[_0x5ba83b(0x182)](_0x35127b,{'coordinator':_0x18610e});default:return null;}}function _0x4d4086(_0x4b7c6d){const _0xf4ea4f=_0x27edfa,{coordinator:_0x3123ca}=_0x4b7c6d;return _0x135a27[_0xf4ea4f(0x10d)](_0x135a27['Fragment'],{'children':[_0x135a27[_0xf4ea4f(0x182)](_0xf4ea4f(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xf4ea4f(0x189)}),_0x135a27[_0xf4ea4f(0x182)](_0x2666de[_0xf4ea4f(0x18b)],{'onClick':()=>_0x3123ca['tryStartPresenting'](),'children':_0xf4ea4f(0x147)})]});}function _0x1eb5c2(_0x3b0a7c){const _0x10120f=_0x27edfa,{coordinator:_0x47f664}=_0x3b0a7c;return _0x135a27[_0x10120f(0x10d)](_0x135a27['Fragment'],{'children':[_0x135a27[_0x10120f(0x182)](_0x10120f(0x160),{'className':_0x10120f(0x104),'children':_0x10120f(0x17f)}),_0x135a27[_0x10120f(0x182)](_0x2666de['Button'],{'onClick':()=>_0x47f664[_0x10120f(0x19b)](),'children':'Stop\x20following'})]});}function _0x310870(_0xf9c159){const _0x3aa904=_0x27edfa,{coordinator:_0x36cead}=_0xf9c159;return _0x135a27[_0x3aa904(0x10d)](_0x135a27[_0x3aa904(0xfb)],{'children':[_0x135a27['jsx'](_0x3aa904(0x160),{'className':_0x3aa904(0x104),'children':_0x3aa904(0x191)}),_0x135a27['jsx'](_0x2666de[_0x3aa904(0x18b)],{'variant':'text','onClick':()=>_0x36cead[_0x3aa904(0x1d1)](),'children':_0x3aa904(0x15a)})]});}function _0x35127b(_0x27889a){const _0x1e0292=_0x27edfa,{coordinator:_0x497251}=_0x27889a;return _0x135a27['jsxs'](_0x135a27['Fragment'],{'children':[_0x135a27[_0x1e0292(0x182)](_0x1e0292(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1e0292(0x1bf)}),_0x135a27[_0x1e0292(0x182)](_0x2666de['Button'],{'variant':_0x1e0292(0x158),'onClick':()=>_0x497251[_0x1e0292(0x1d9)](),'children':_0x1e0292(0x1ce)})]});}function _0x50b4dc(){const _0x3e5e89=_0x27edfa;return _0x135a27[_0x3e5e89(0x182)](_0x135a27['Fragment'],{'children':_0x3e5e89(0x15b)});}var _0x557bf8=Object[_0x27edfa(0x11e)],_0x5cf6d3=(_0x4a00c1,_0xd1c378,_0x558e3e,_0x33ffa4)=>{const _0x3b37a0=_0x27edfa;for(var _0x5769a1=_0x33ffa4>0x1?void 0x0:_0x33ffa4?_0x557bf8(_0xd1c378,_0x558e3e):_0xd1c378,_0x3af4b6=_0x4a00c1[_0x3b37a0(0x1c4)]-0x1,_0x326b51;_0x3af4b6>=0x0;_0x3af4b6--)(_0x326b51=_0x4a00c1[_0x3af4b6])&&(_0x5769a1=_0x326b51(_0x5769a1)||_0x5769a1);return _0x5769a1;},_0x19f417=(_0x16063b,_0x1b3057)=>(_0x4f69ad,_0x35867a)=>_0x1b3057(_0x4f69ad,_0x35867a,_0x16063b);_0x1aa668['DesktopLiveShareController']=class extends _0x544c92[_0x27edfa(0x14a)]{constructor(_0x34668d,_0x5c718a){const _0x36a761=_0x27edfa;super(),this[_0x36a761(0x14f)]=_0x34668d,this[_0x36a761(0x11c)]=_0x5c718a,this[_0x36a761(0x146)]();}[_0x27edfa(0x146)](){const _0x3deaf1=_0x27edfa;this[_0x3deaf1(0x132)](this[_0x3deaf1(0x11c)][_0x3deaf1(0x13a)](_0x4e5103['BuiltInUIPart']['HEADER_MENU'],()=>_0x4e5103[_0x3deaf1(0x188)](_0x8c856f,this[_0x3deaf1(0x14f)])));}},_0x1aa668[_0x27edfa(0x184)]=_0x5cf6d3([_0x19f417(0x0,_0x544c92[_0x27edfa(0x11a)](_0x544c92[_0x27edfa(0x16c)])),_0x19f417(0x1,_0x4e5103[_0x27edfa(0x170)])],_0x1aa668[_0x27edfa(0x184)]);const _0x28dbf1='live-share.config',_0x4e0a9f={};var _0x2d9fb7=Object['getOwnPropertyDescriptor'],_0x42bd93=(_0x22c882,_0x829d1f,_0x2ceaf4,_0x31da85)=>{const _0x29be32=_0x27edfa;for(var _0xc480a7=_0x31da85>0x1?void 0x0:_0x31da85?_0x2d9fb7(_0x829d1f,_0x2ceaf4):_0x829d1f,_0x49afd4=_0x22c882[_0x29be32(0x1c4)]-0x1,_0x375e9d;_0x49afd4>=0x0;_0x49afd4--)(_0x375e9d=_0x22c882[_0x49afd4])&&(_0xc480a7=_0x375e9d(_0xc480a7)||_0xc480a7);return _0xc480a7;},_0x40fdb6=(_0x338ecb,_0x3b2b59)=>(_0x8f10ab,_0x41f795)=>_0x3b2b59(_0x8f10ab,_0x41f795,_0x338ecb);let _0x963f67=class extends _0x544c92[_0x27edfa(0x14a)]{constructor(_0x3a7dac){const _0x50bb06=_0x27edfa;super(),this[_0x50bb06(0x14d)]=_0x3a7dac,this[_0x50bb06(0x112)]();}[_0x27edfa(0x112)](){const _0x5cd289=_0x27edfa;[_0x4f2758[_0x5cd289(0x148)]['id'],_0x4f2758[_0x5cd289(0xf5)]['id'],_0x336bc0['SetWorksheetActiveOperation']['id']][_0x5cd289(0x144)](_0x345b4d=>{const _0xcef1cb=_0x5cd289;this[_0xcef1cb(0x132)](this[_0xcef1cb(0x14d)][_0xcef1cb(0x138)](_0x345b4d));});}};_0x963f67=_0x42bd93([_0x40fdb6(0x0,_0x544c92[_0x27edfa(0x11a)](_0x181d67))],_0x963f67);var _0x27a270=Object[_0x27edfa(0x1ba)],_0x5e476d=Object['getOwnPropertyDescriptor'],_0xa8ddab=(_0x42d122,_0x1d8274,_0x392d)=>_0x1d8274 in _0x42d122?_0x27a270(_0x42d122,_0x1d8274,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x392d}):_0x42d122[_0x1d8274]=_0x392d,_0xa3be9d=(_0x35f93e,_0x3f27b8,_0x31231a,_0x1c2588)=>{for(var _0x4ccd04=_0x1c2588>0x1?void 0x0:_0x1c2588?_0x5e476d(_0x3f27b8,_0x31231a):_0x3f27b8,_0x4ff977=_0x35f93e['length']-0x1,_0xea8e72;_0x4ff977>=0x0;_0x4ff977--)(_0xea8e72=_0x35f93e[_0x4ff977])&&(_0x4ccd04=_0xea8e72(_0x4ccd04)||_0x4ccd04);return _0x4ccd04;},_0x2c5e26=(_0x32aa1e,_0x41ac8a)=>(_0x4eb229,_0x240e67)=>_0x41ac8a(_0x4eb229,_0x240e67,_0x32aa1e),_0x4ea8dc=(_0x1eceef,_0x10f88a,_0x125d7b)=>_0xa8ddab(_0x1eceef,typeof _0x10f88a!=_0x27edfa(0x15d)?_0x10f88a+'':_0x10f88a,_0x125d7b);const _0x502067=_0x27edfa(0xf4);_0x1aa668['UniverLiveSharePlugin']=class extends _0x544c92[_0x27edfa(0x196)]{constructor(_0x34dbfa=_0x4e0a9f,_0x1f4a8a,_0x121ce7){const _0xa06059=_0x27edfa;super(),this['_config']=_0x34dbfa,this[_0xa06059(0x14f)]=_0x1f4a8a,this[_0xa06059(0x1b6)]=_0x121ce7;const {..._0x256ebb}=_0x544c92[_0xa06059(0x1a2)]({},_0x4e0a9f,this[_0xa06059(0x187)]);this[_0xa06059(0x1b6)][_0xa06059(0x1a5)](_0x28dbf1,_0x256ebb);}[_0x27edfa(0x135)](){const _0x5e7707=_0x27edfa;_0x544c92[_0x5e7707(0x109)](this[_0x5e7707(0x14f)],_0x544c92[_0x5e7707(0x1d4)]([[_0x181d67],[_0x1aa668['LiveShareController']],[_0x963f67],[_0x1aa668[_0x5e7707(0x184)]]],this[_0x5e7707(0x187)][_0x5e7707(0x1cf)])),_0x544c92[_0x5e7707(0x1a3)](this[_0x5e7707(0x14f)],[[_0x963f67]]);}['onRendered'](){const _0x519d67=_0x27edfa;_0x544c92[_0x519d67(0x1a3)](this['_injector'],[[_0x1aa668[_0x519d67(0x184)]]]);}},_0x4ea8dc(_0x1aa668['UniverLiveSharePlugin'],_0x27edfa(0x108),_0x544c92['UniverInstanceType'][_0x27edfa(0x134)]),_0x4ea8dc(_0x1aa668[_0x27edfa(0x12a)],_0x27edfa(0x103),_0x502067),_0x1aa668[_0x27edfa(0x12a)]=_0xa3be9d([_0x544c92['DependentOn'](_0x1171e0[_0x27edfa(0x1ae)]),_0x2c5e26(0x1,_0x544c92[_0x27edfa(0x11a)](_0x544c92['Injector'])),_0x2c5e26(0x2,_0x544c92[_0x27edfa(0x1b4)])],_0x1aa668[_0x27edfa(0x12a)]),_0x1aa668[_0x27edfa(0x198)]=_0x8c856f,_0x1aa668['LiveShareService']=_0x181d67,_0x1aa668['LiveShareStatus']=_0x345d0f,Object[_0x27edfa(0x1ba)](_0x1aa668,Symbol[_0x27edfa(0x14e)],{'value':_0x27edfa(0x15c)});}));
|
|
1
|
+
(function(_0x4f56d3,_0x16abc0){const _0x23229d=_0x41ea,_0x5854cf=_0x4f56d3();while(!![]){try{const _0x3cdfb4=parseInt(_0x23229d(0x158))/0x1+parseInt(_0x23229d(0xda))/0x2*(parseInt(_0x23229d(0xd0))/0x3)+parseInt(_0x23229d(0x84))/0x4+parseInt(_0x23229d(0xd3))/0x5*(-parseInt(_0x23229d(0xe9))/0x6)+-parseInt(_0x23229d(0xb5))/0x7+-parseInt(_0x23229d(0x7b))/0x8*(-parseInt(_0x23229d(0xad))/0x9)+-parseInt(_0x23229d(0xd5))/0xa;if(_0x3cdfb4===_0x16abc0)break;else _0x5854cf['push'](_0x5854cf['shift']());}catch(_0x3bf754){_0x5854cf['push'](_0x5854cf['shift']());}}}(_0x3440,0x9a6aa),function(_0x5c87a6,_0x5f087b){const _0x6bb26f=_0x41ea;typeof exports==_0x6bb26f(0x8d)&&typeof module<'u'?_0x5f087b(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([_0x6bb26f(0x92),_0x6bb26f(0xa1),_0x6bb26f(0x81),_0x6bb26f(0x77),_0x6bb26f(0x99),'react',_0x6bb26f(0xc3),_0x6bb26f(0xb8),_0x6bb26f(0x8e),_0x6bb26f(0xf4),'rxjs/operators',_0x6bb26f(0x140)],_0x5f087b):(_0x5c87a6=typeof globalThis<'u'?globalThis:_0x5c87a6||self,_0x5f087b(_0x5c87a6[_0x6bb26f(0x91)]={},_0x5c87a6[_0x6bb26f(0x85)],_0x5c87a6[_0x6bb26f(0xd1)],_0x5c87a6[_0x6bb26f(0x9a)],_0x5c87a6[_0x6bb26f(0xc7)],_0x5c87a6[_0x6bb26f(0x9a)],_0x5c87a6[_0x6bb26f(0x139)],_0x5c87a6[_0x6bb26f(0x145)],_0x5c87a6[_0x6bb26f(0x134)],_0x5c87a6['rxjs'],_0x5c87a6[_0x6bb26f(0xf4)][_0x6bb26f(0x9b)],_0x5c87a6['UniverSheetsUi']));}(this,function(_0x3a7baa,_0x204445,_0x2b0da9,_0x177608,_0x4c467b,_0x36851f,_0x1e03c8,_0x26332d,_0x3ff980,_0x623b2c,_0x4ef54f,_0xbd47dd){'use strict';const _0x1005bc=_0x41ea;var _0xebab71=Object[_0x1005bc(0xc6)],_0x635702=(_0x4951ef,_0x358df6,_0x43417d)=>_0x358df6 in _0x4951ef?_0xebab71(_0x4951ef,_0x358df6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43417d}):_0x4951ef[_0x358df6]=_0x43417d,_0x9a1f59=(_0x308b75,_0x3e878a,_0xbda14c)=>_0x635702(_0x308b75,typeof _0x3e878a!=_0x1005bc(0xbe)?_0x3e878a+'':_0x3e878a,_0xbda14c);function _0x1795d2({ref:_0x65af2f,..._0x18895e}){const _0x264d40=_0x1005bc,{icon:_0x41393a,id:_0x36f21e,className:_0x1bbf37,extend:_0x45eac1,..._0x2a8877}=_0x18895e,_0x10cbd6=(_0x264d40(0xa3)+_0x36f21e+'\x20'+(_0x1bbf37||''))[_0x264d40(0x88)](),_0x5ad953=_0x36851f[_0x264d40(0x12f)]('_'+_0x3ee0d7());return _0x34c614(_0x41393a,''+_0x36f21e,{'defIds':_0x41393a[_0x264d40(0x15b)],'idSuffix':_0x5ad953['current']},{'ref':_0x65af2f,'className':_0x10cbd6,..._0x2a8877},_0x45eac1);}function _0x34c614(_0x483996,_0x4fe9bf,_0x54b3ea,_0x54e29c,_0x3acddd){const _0x141733=_0x1005bc;return _0x36851f['createElement'](_0x483996['tag'],{'key':_0x4fe9bf,..._0x60a8f6(_0x483996,_0x54b3ea,_0x3acddd),..._0x54e29c},(_0x47a848(_0x483996,_0x54b3ea)[_0x141733(0xe8)]||[])[_0x141733(0x78)]((_0x30008e,_0x931da8)=>_0x34c614(_0x30008e,_0x4fe9bf+'-'+_0x483996[_0x141733(0xaf)]+'-'+_0x931da8,_0x54b3ea,void 0x0,_0x3acddd)));}function _0x60a8f6(_0x5b687b,_0x22c89b,_0x5535ca){const _0x1c709e=_0x1005bc,_0x2f9af0={..._0x5b687b[_0x1c709e(0x117)]};_0x5535ca!=null&&_0x5535ca[_0x1c709e(0xc9)]&&_0x2f9af0['fill']===_0x1c709e(0xc9)&&(_0x2f9af0[_0x1c709e(0xa9)]=_0x5535ca[_0x1c709e(0xc9)]),_0x5b687b[_0x1c709e(0xaf)]==='mask'&&_0x2f9af0['id']&&(_0x2f9af0['id']=_0x2f9af0['id']+_0x22c89b['idSuffix']),Object[_0x1c709e(0x106)](_0x2f9af0)[_0x1c709e(0x75)](([_0x11e23d,_0x146ef9])=>{const _0x243fe7=_0x1c709e;_0x11e23d===_0x243fe7(0x7a)&&typeof _0x146ef9==_0x243fe7(0xf8)&&(_0x2f9af0[_0x11e23d]=_0x146ef9[_0x243fe7(0xcf)](/url\(#(.*)\)/,_0x243fe7(0xf7)+_0x22c89b['idSuffix']+')'));});const {defIds:_0x39d428}=_0x22c89b;return!_0x39d428||_0x39d428[_0x1c709e(0xd2)]===0x0||(_0x5b687b[_0x1c709e(0xaf)]===_0x1c709e(0x15e)&&_0x2f9af0[_0x1c709e(0x130)]&&(_0x2f9af0[_0x1c709e(0x130)]=_0x2f9af0[_0x1c709e(0x130)]+_0x22c89b['idSuffix']),Object['entries'](_0x2f9af0)[_0x1c709e(0x75)](([_0x2e3875,_0x4277fc])=>{const _0x4e8dc2=_0x1c709e;typeof _0x4277fc=='string'&&(_0x2f9af0[_0x2e3875]=_0x4277fc[_0x4e8dc2(0xcf)](/url\(#(.*)\)/,_0x4e8dc2(0xf7)+_0x22c89b[_0x4e8dc2(0xee)]+')'));})),_0x2f9af0;}function _0x47a848(_0x26b23a,_0x5c7ffa){const _0x133b49=_0x1005bc;var _0x21b121;const {defIds:_0x298d1e}=_0x5c7ffa;return!_0x298d1e||_0x298d1e[_0x133b49(0xd2)]===0x0?_0x26b23a:_0x26b23a[_0x133b49(0xaf)]===_0x133b49(0x155)&&((_0x21b121=_0x26b23a[_0x133b49(0xe8)])!=null&&_0x21b121['length'])?{..._0x26b23a,'children':_0x26b23a[_0x133b49(0xe8)][_0x133b49(0x78)](_0x404997=>typeof _0x404997[_0x133b49(0x117)]['id']==_0x133b49(0xf8)&&_0x298d1e&&_0x298d1e['includes'](_0x404997[_0x133b49(0x117)]['id'])?{..._0x404997,'attrs':{..._0x404997[_0x133b49(0x117)],'id':_0x404997['attrs']['id']+_0x5c7ffa[_0x133b49(0xee)]}}:_0x404997)}:_0x26b23a;}function _0x3ee0d7(){const _0x73d4da=_0x1005bc;return Math['random']()[_0x73d4da(0xce)](0x24)[_0x73d4da(0x119)](0x2,0x8);}_0x1795d2[_0x1005bc(0xc2)]=_0x1005bc(0x150);const _0x5dd890={'tag':'svg','attrs':{'xmlns':_0x1005bc(0xa0),'fill':_0x1005bc(0x7e),'viewBox':_0x1005bc(0xc8),'width':_0x1005bc(0xb2),'height':_0x1005bc(0xb2)},'children':[{'tag':_0x1005bc(0x11e),'attrs':{'fill':'currentColor','d':_0x1005bc(0xb9)}},{'tag':_0x1005bc(0x11e),'attrs':{'fill':_0x1005bc(0xae),'d':_0x1005bc(0x118),'fillRule':_0x1005bc(0xe2),'clipRule':'evenodd'}}]},_0x3cedae=_0x36851f[_0x1005bc(0x11a)](function(_0xb16702,_0x3df1a1){const _0x58b962=_0x1005bc;return _0x36851f['createElement'](_0x1795d2,Object['assign']({},_0xb16702,{'id':_0x58b962(0xf6),'ref':_0x3df1a1,'icon':_0x5dd890}));});_0x3cedae['displayName']='LiveShareIcon';class _0xc848bf extends _0x204445[_0x1005bc(0x142)]{constructor(){const _0x3143e5=_0x1005bc;super(...arguments),_0x9a1f59(this,'_sharedOperations',new Set()),_0x9a1f59(this,_0x3143e5(0x9d),new Set());}[_0x1005bc(0x87)](_0x2b83fc){const _0x3645c7=_0x1005bc;return this[_0x3645c7(0xbc)][_0x3645c7(0xab)](_0x2b83fc),_0x204445['toDisposable'](()=>this['_sharedOperations'][_0x3645c7(0x97)](_0x2b83fc));}[_0x1005bc(0x147)](_0x3c33bf){const _0x11cf3a=_0x1005bc;return this[_0x11cf3a(0x9d)][_0x11cf3a(0xab)](_0x3c33bf),_0x204445[_0x11cf3a(0x13c)](()=>this[_0x11cf3a(0x9d)][_0x11cf3a(0x97)](_0x3c33bf));}[_0x1005bc(0xbb)](_0x2b03ee){const _0x3bd6c3=_0x1005bc;return this[_0x3bd6c3(0xbc)][_0x3bd6c3(0x107)](_0x2b03ee);}[_0x1005bc(0x79)](_0x25c851){const _0x287d06=_0x1005bc;return Array[_0x287d06(0x10c)](this['_reporters'])[_0x287d06(0x78)](_0x49fa4a=>_0x49fa4a(_0x25c851));}}var _0x120c95=Object[_0x1005bc(0xe5)],_0x56a897=(_0x131737,_0x1a2c5b,_0x221237,_0x24b0d2)=>{const _0x25b489=_0x1005bc;for(var _0xc7d9f0=_0x24b0d2>0x1?void 0x0:_0x24b0d2?_0x120c95(_0x1a2c5b,_0x221237):_0x1a2c5b,_0x52d5a1=_0x131737[_0x25b489(0xd2)]-0x1,_0x25a047;_0x52d5a1>=0x0;_0x52d5a1--)(_0x25a047=_0x131737[_0x52d5a1])&&(_0xc7d9f0=_0x25a047(_0xc7d9f0)||_0xc7d9f0);return _0xc7d9f0;},_0x5751e8=(_0x31683a,_0x5dded6)=>(_0x2201ef,_0xdbeb80)=>_0x5dded6(_0x2201ef,_0xdbeb80,_0x31683a);_0x3a7baa[_0x1005bc(0x13b)]=class extends _0x204445[_0x1005bc(0xc0)]{constructor(_0x4c2b6e,_0x41dbbc,_0x36efb7){const _0x509663=_0x1005bc;super(),_0x9a1f59(this,'_entities',new Map()),(this[_0x509663(0x135)]=_0x4c2b6e,this['_injector']=_0x41dbbc,this['_collabSessionService']=_0x36efb7,this[_0x509663(0x90)]());}async['getLiveShareCoordinator'](_0x17f6c5){const _0x5318b3=_0x1005bc;return this[_0x5318b3(0xe4)][_0x5318b3(0x107)](_0x17f6c5)||await this[_0x5318b3(0x94)](_0x17f6c5),this[_0x5318b3(0xe4)][_0x5318b3(0xdb)](_0x17f6c5);}['getLiveShareCoordinatorSync'](_0x4de9f4){const _0x1f52be=_0x1005bc;var _0x10295e;return(_0x10295e=this['_entities'][_0x1f52be(0xdb)](_0x4de9f4))!=null?_0x10295e:null;}[_0x1005bc(0x90)](){const _0x35e6fd=_0x1005bc;this[_0x35e6fd(0x135)]['getTypeOfUnitAdded$'](_0x204445[_0x35e6fd(0x12c)][_0x35e6fd(0x103)])[_0x35e6fd(0x9f)](_0x4ef54f[_0x35e6fd(0x126)](this['dispose$']))[_0x35e6fd(0xe7)](async _0x17da8a=>{const _0x539b1c=_0x35e6fd,_0x43c62d=_0x17da8a['getUnitId']();this['_entities'][_0x539b1c(0x107)](_0x43c62d)||this[_0x539b1c(0x94)](_0x43c62d);}),this[_0x35e6fd(0x135)][_0x35e6fd(0xa4)](_0x204445[_0x35e6fd(0x12c)][_0x35e6fd(0x103)])[_0x35e6fd(0x9f)](_0x4ef54f[_0x35e6fd(0x126)](this[_0x35e6fd(0x12a)]))[_0x35e6fd(0xe7)](_0x51d35a=>{const _0x136bea=_0x35e6fd,_0x3d3cb6=_0x51d35a[_0x136bea(0xff)](),_0x38597b=this[_0x136bea(0xe4)][_0x136bea(0xdb)](_0x3d3cb6);_0x38597b==null||_0x38597b[_0x136bea(0xb0)]();});}async[_0x1005bc(0x94)](_0x504796){const _0xd5b541=_0x1005bc,_0x3c8195=await this[_0xd5b541(0x10b)][_0xd5b541(0x127)](_0x504796),_0x5b62dd=this[_0xd5b541(0x15c)][_0xd5b541(0x14a)](_0x3a7baa['LiveShareCoordinator'],_0x504796,_0x3c8195);return _0x5b62dd['init'](),this['_entities'][_0xd5b541(0x98)](_0x504796,_0x5b62dd),_0x5b62dd;}},_0x3a7baa[_0x1005bc(0x13b)]=_0x56a897([_0x5751e8(0x0,_0x204445[_0x1005bc(0x14f)]),_0x5751e8(0x1,_0x204445['Inject'](_0x204445[_0x1005bc(0xf0)])),_0x5751e8(0x2,_0x204445[_0x1005bc(0x115)](_0x26332d['CollaborationSessionService']))],_0x3a7baa[_0x1005bc(0x13b)]);var _0x22378a=(_0x560f5a=>(_0x560f5a['OFFLINE']=_0x1005bc(0x153),_0x560f5a[_0x1005bc(0x11b)]='idle',_0x560f5a[_0x1005bc(0x10f)]=_0x1005bc(0xe3),_0x560f5a[_0x1005bc(0x146)]='not-following',_0x560f5a[_0x1005bc(0x13d)]=_0x1005bc(0x11c),_0x560f5a))(_0x22378a||{});const _0x56745e=_0x1005bc(0xaa),_0x1f7722=0xc8;_0x3a7baa[_0x1005bc(0xe0)]=class extends _0x204445[_0x1005bc(0xc0)]{constructor(_0xa7d21f,_0x1b3561,_0x135e77,_0x4c0f88,_0x4dcd38){const _0x33b524=_0x1005bc;super(),_0x9a1f59(this,_0x33b524(0x80),new _0x623b2c['BehaviorSubject'](_0x33b524(0x93))),_0x9a1f59(this,'status$',this['_status$']['asObservable']()),_0x9a1f59(this,'_init',!0x1),_0x9a1f59(this,_0x33b524(0x76),null),_0x9a1f59(this,_0x33b524(0xd6),null),(this[_0x33b524(0xf1)]=_0xa7d21f,this[_0x33b524(0x151)]=_0x1b3561,this[_0x33b524(0x121)]=_0x135e77,this['_liveShareService']=_0x4c0f88,this[_0x33b524(0xa5)]=_0x4dcd38);}get[_0x1005bc(0xac)](){const _0x252e09=_0x1005bc;return this[_0x252e09(0x80)][_0x252e09(0x144)]();}[_0x1005bc(0xb0)](){const _0xa977b7=_0x1005bc;var _0x351048;(_0x351048=this[_0xa977b7(0x76)])==null||_0x351048[_0xa977b7(0xb0)](),this['_status$']['next'](_0xa977b7(0x93)),this['_status$']['complete']();}['getStatus'](){const _0x13c5c1=_0x1005bc;return this[_0x13c5c1(0xac)];}[_0x1005bc(0x10d)](){const _0x3e5915=_0x1005bc;this[_0x3e5915(0x90)]||(this[_0x3e5915(0x90)]=!0x0,this[_0x3e5915(0x151)][_0x3e5915(0xbd)][_0x3e5915(0x9f)](_0x4ef54f[_0x3e5915(0x126)](this['dispose$']))[_0x3e5915(0xe7)](_0x223746=>{const _0x4b970a=_0x3e5915;switch(_0x223746){case _0x26332d[_0x4b970a(0x14b)][_0x4b970a(0x102)]:this[_0x4b970a(0x124)]();break;case _0x26332d['SessionStatus'][_0x4b970a(0x13f)]:this[_0x4b970a(0x104)]();break;}}),this['_collabSession']['event$'][_0x3e5915(0x9f)](_0x4ef54f[_0x3e5915(0x126)](this[_0x3e5915(0x12a)]))['subscribe'](_0x26475a=>{const _0x5af6ea=_0x3e5915,{eventID:_0x36f811}=_0x26475a;switch(_0x36f811){case _0x1e03c8['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x5af6ea(0xca)](_0x26475a);break;case _0x1e03c8['CollaborationEvent'][_0x5af6ea(0xb7)]:this[_0x5af6ea(0xdd)](_0x26475a);break;case _0x1e03c8[_0x5af6ea(0x73)][_0x5af6ea(0x122)]:this[_0x5af6ea(0x125)]();break;case _0x1e03c8['CollaborationEvent'][_0x5af6ea(0x72)]:this['_handleNewChangeSets'](_0x26475a);break;}}));}[_0x1005bc(0x11d)](){const _0x146257=_0x1005bc;this['_collabSession'][_0x146257(0x7f)]({'eventID':_0x1e03c8['CollaborationEvent'][_0x146257(0xb3)],'data':{'unitID':this[_0x146257(0xf1)],'userID':this[_0x146257(0x151)][_0x146257(0x82)]()}},this[_0x146257(0xf1)]);}[_0x1005bc(0x149)](){const _0x52c5e2=_0x1005bc;this['_status']==='presenting'&&(this['_status$'][_0x52c5e2(0xbf)](_0x52c5e2(0x93)),this['_collabSession'][_0x52c5e2(0x7f)]({'eventID':_0x1e03c8[_0x52c5e2(0x73)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x52c5e2(0xf1)]}},this['_unitID']));}[_0x1005bc(0x12e)](){const _0x2ea64c=_0x1005bc;this['_status']==='not-following'&&(this[_0x2ea64c(0x80)][_0x2ea64c(0xbf)]('following'),this[_0x2ea64c(0xb1)]());}['stopFollowing'](){const _0x1d318d=_0x1005bc;this[_0x1d318d(0xac)]===_0x1d318d(0xe3)&&this[_0x1d318d(0x123)]();}[_0x1005bc(0xca)](_0x4cd3ca){const _0xc706d0=_0x1005bc,{presenter:_0xe58110}=_0x4cd3ca[_0xc706d0(0xfd)],_0x263b81=this[_0xc706d0(0x151)]['getMemberID']();this[_0xc706d0(0xd6)]=_0xe58110,_0xe58110===_0x263b81?(this[_0xc706d0(0x123)](),this[_0xc706d0(0x96)]()):this[_0xc706d0(0xac)]!==_0xc706d0(0x83)&&(this[_0xc706d0(0x7c)](),this['_startFollowing']());}['_fetchOperations'](){const _0x240172=_0x1005bc,_0x48e53e={'eventID':_0x1e03c8[_0x240172(0x73)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x240172(0x151)]['send'](_0x48e53e,this[_0x240172(0xf1)]);}[_0x1005bc(0x125)](){const _0x4f0af8=_0x1005bc;this[_0x4f0af8(0xd6)]=null,this[_0x4f0af8(0xac)]!==_0x4f0af8(0x11c)&&this[_0x4f0af8(0xdc)]();}[_0x1005bc(0x12d)](_0x29275d){const _0x2e311a=_0x1005bc;if(this[_0x2e311a(0xac)]===_0x2e311a(0xe3)&&this[_0x2e311a(0xd6)]===_0x29275d[_0x2e311a(0xfd)]['memberID']){const _0x3b736b=_0x1e03c8[_0x2e311a(0x128)](_0x29275d[_0x2e311a(0xfd)])['mutations'][_0x2e311a(0xef)]()[_0x2e311a(0x15d)](_0x4c4f69=>_0x4c4f69['id']===_0x3ff980[_0x2e311a(0xd7)]['id']);if(_0x3b736b){const _0x587762=_0x3b736b['params'][_0x2e311a(0xec)],_0x5210bb=_0x3b736b[_0x2e311a(0xfc)][_0x2e311a(0xb6)]['id'];setTimeout(()=>{const _0x12a814=_0x2e311a;this[_0x12a814(0xa5)][_0x12a814(0xed)](_0x3ff980[_0x12a814(0x86)]['id'],{'unitId':_0x587762,'subUnitId':_0x5210bb},{'fromCollab':!0x0});});}}}[_0x1005bc(0x96)](){const _0x46f13f=_0x1005bc;this[_0x46f13f(0x80)][_0x46f13f(0xbf)]('presenting');const _0x268982=new Map(),_0x374485=this[_0x46f13f(0x76)]=new _0x204445[(_0x46f13f(0xcd))]();_0x374485[_0x46f13f(0xab)](_0x204445[_0x46f13f(0x13c)](()=>{const _0x46aa86=_0x46f13f;_0x268982['forEach'](_0x9cc8b=>_0x9cc8b[_0x46aa86(0x157)]()),_0x268982[_0x46aa86(0x148)]();})),_0x374485[_0x46f13f(0xab)](this[_0x46f13f(0xa5)][_0x46f13f(0x133)](_0x23cd50=>{const _0x574e92=_0x46f13f;var _0x4ee238;if(_0x23cd50[_0x574e92(0xba)]!==_0x204445[_0x574e92(0x12b)]['OPERATION']||!this[_0x574e92(0xd9)][_0x574e92(0xbb)](_0x23cd50['id']))return;const {id:_0x32ac88}=_0x23cd50;let _0x7651e2;_0x268982[_0x574e92(0x107)](_0x32ac88)?_0x7651e2=_0x268982[_0x574e92(0xdb)](_0x32ac88):(_0x7651e2=new _0x623b2c[(_0x574e92(0x138))](),_0x268982['set'](_0x32ac88,_0x7651e2),_0x7651e2[_0x574e92(0x9f)](_0x4ef54f['throttleTime']((_0x4ee238=this[_0x574e92(0x121)][_0x574e92(0xcb)](_0x56745e))!=null?_0x4ee238:_0x1f7722,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x574e92(0xe7)](_0x5c2b89=>{const _0x339aa6=_0x574e92;this[_0x339aa6(0x151)][_0x339aa6(0x7f)]({'eventID':_0x1e03c8[_0x339aa6(0x73)][_0x339aa6(0xb7)],'data':{'unitID':this[_0x339aa6(0xf1)],'operations':{[_0x5c2b89['id']]:{'id':_0x5c2b89['id'],'params':JSON[_0x339aa6(0x15f)](_0x5c2b89[_0x339aa6(0xfc)])}}}},this['_unitID']);})),_0x7651e2[_0x574e92(0xbf)](_0x23cd50);})),this[_0x46f13f(0xd9)]['getInitialStates'](this[_0x46f13f(0xf1)])[_0x46f13f(0x75)](_0x1ef2b7=>this[_0x46f13f(0x151)][_0x46f13f(0x7f)]({'eventID':_0x1e03c8[_0x46f13f(0x73)][_0x46f13f(0xb7)],'data':{'unitID':this['_unitID'],'operations':{[_0x1ef2b7['id']]:{'id':_0x1ef2b7['id'],'params':JSON[_0x46f13f(0x15f)](_0x1ef2b7[_0x46f13f(0xfc)])}}}},this['_unitID']));}['_stopPresenting'](){const _0xcbdecb=_0x1005bc;var _0x5eb09a;this['_status$'][_0xcbdecb(0xbf)](_0xcbdecb(0x93)),(_0x5eb09a=this['_commandDisposable'])==null||_0x5eb09a[_0xcbdecb(0xb0)](),this[_0xcbdecb(0x76)]=null;}[_0x1005bc(0xb1)](){const _0x227480=_0x1005bc;var _0x2fd27e;(_0x2fd27e=this[_0x227480(0x76)])==null||_0x2fd27e[_0x227480(0xb0)](),this[_0x227480(0x80)][_0x227480(0xbf)](_0x227480(0xe3));}[_0x1005bc(0xdc)](){const _0x51669c=_0x1005bc;var _0x2cbdb8;this[_0x51669c(0x80)][_0x51669c(0xbf)](_0x51669c(0x93)),(_0x2cbdb8=this[_0x51669c(0x76)])==null||_0x2cbdb8['dispose'](),this[_0x51669c(0x76)]=null;}[_0x1005bc(0x123)](){const _0x23d621=_0x1005bc;var _0x356386;this['_status$'][_0x23d621(0xbf)]('not-following'),(_0x356386=this['_commandDisposable'])==null||_0x356386[_0x23d621(0xb0)]();}[_0x1005bc(0xdd)](_0x15c728){const _0x3eba63=_0x1005bc;if([_0x3eba63(0x11c),_0x3eba63(0x83),_0x3eba63(0x153)]['includes'](this[_0x3eba63(0xac)])||!_0x15c728[_0x3eba63(0xfd)][_0x3eba63(0x136)]||_0x15c728[_0x3eba63(0xfd)][_0x3eba63(0x136)]===this[_0x3eba63(0x151)][_0x3eba63(0x82)]())return;this[_0x3eba63(0xac)]==='idle'&&this[_0x3eba63(0xb1)]();const _0x4389f1=_0x15c728[_0x3eba63(0xfd)][_0x3eba63(0x159)];Object[_0x3eba63(0x131)](_0x4389f1)['forEach'](_0xe83bb8=>{const _0x583236=_0x3eba63;this[_0x583236(0xa5)][_0x583236(0xed)](_0xe83bb8['id'],_0xe83bb8[_0x583236(0xfc)]?JSON[_0x583236(0xc1)](_0xe83bb8[_0x583236(0xfc)]):null,{'fromCollab':!0x0});});}[_0x1005bc(0x124)](){const _0x34344f=_0x1005bc;var _0x486f64;this[_0x34344f(0x80)][_0x34344f(0xbf)](_0x34344f(0x153)),(_0x486f64=this[_0x34344f(0x76)])==null||_0x486f64[_0x34344f(0xb0)]();}[_0x1005bc(0x104)](){const _0x2f3797=_0x1005bc;this[_0x2f3797(0x80)]['next'](_0x2f3797(0x93)),this[_0x2f3797(0xe1)]();}},_0x3a7baa['LiveShareCoordinator']=_0x56a897([_0x5751e8(0x2,_0x204445[_0x1005bc(0xf2)]),_0x5751e8(0x3,_0x204445[_0x1005bc(0x115)](_0xc848bf)),_0x5751e8(0x4,_0x204445[_0x1005bc(0x105)])],_0x3a7baa[_0x1005bc(0xe0)]);function _0x502a81(){const _0x2e646f=_0x1005bc,_0x49363a=_0x2b0da9[_0x2e646f(0x112)](_0x3a7baa[_0x2e646f(0x13b)]),_0x15787b=_0x2b0da9[_0x2e646f(0x112)](_0x204445[_0x2e646f(0x14f)]),_0x3ab36f=_0x2b0da9['useObservable'](()=>_0x15787b['getCurrentTypeOfUnit$'](_0x204445[_0x2e646f(0x12c)][_0x2e646f(0x103)]),void 0x0,!0x1,[]),[_0x5e9277,_0x243ca4]=_0x36851f['useState'](null),[_0x33b300,_0x512ab3]=_0x36851f['useState'](_0x22378a['IDLE']),_0x188dfd=_0x36851f[_0x2e646f(0x12f)](null);return _0x36851f[_0x2e646f(0x152)](()=>(_0x3ab36f&&_0x49363a[_0x2e646f(0xa6)](_0x3ab36f[_0x2e646f(0xff)]())[_0x2e646f(0xa2)](_0x51860e=>{const _0x456bc1=_0x2e646f;_0x243ca4(_0x51860e),_0x188dfd['current']=_0x51860e[_0x456bc1(0x13e)][_0x456bc1(0xe7)](_0x5813ce=>{_0x512ab3(_0x5813ce);});}),()=>{const _0x3796e4=_0x2e646f;var _0xdb6db0;(_0xdb6db0=_0x188dfd[_0x3796e4(0xeb)])==null||_0xdb6db0[_0x3796e4(0x14d)](),_0x188dfd[_0x3796e4(0xeb)]=null;}),[_0x3ab36f,_0x49363a]),_0x5e9277?_0x177608[_0x2e646f(0x129)](_0x4c467b[_0x2e646f(0x116)],{'align':_0x2e646f(0x11f),'disabled':_0x33b300===_0x22378a[_0x2e646f(0x102)],'className':_0x2e646f(0x114),'overlay':_0x177608[_0x2e646f(0x129)](_0xae0905,{'status':_0x33b300,'coordinator':_0x5e9277}),'children':_0x177608[_0x2e646f(0x129)](_0x2e646f(0xc5),{'className':_0x4c467b[_0x2e646f(0x89)](_0x2e646f(0xa7),{'univer-cursor-not-allowed':_0x33b300===_0x22378a[_0x2e646f(0x102)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x33b300!==_0x22378a[_0x2e646f(0x102)]}),'type':_0x2e646f(0xc5),'children':_0x177608['jsx'](_0x3cedae,{'className':_0x2e646f(0x8f)})})}):null;}function _0xae0905(_0x166f37){const _0x5a0d26=_0x1005bc,{status:_0x12fde5,coordinator:_0x5c14f8}=_0x166f37;switch(_0x12fde5){case _0x22378a[_0x5a0d26(0x11b)]:return _0x177608[_0x5a0d26(0x129)](_0x1737db,{'coordinator':_0x5c14f8});case _0x22378a[_0x5a0d26(0x10f)]:return _0x177608[_0x5a0d26(0x129)](_0x355702,{'coordinator':_0x5c14f8});case _0x22378a[_0x5a0d26(0x146)]:return _0x177608[_0x5a0d26(0x129)](_0x31e196,{'coordinator':_0x5c14f8});case _0x22378a[_0x5a0d26(0x102)]:return _0x177608['jsx'](_0x27ac89,{});case _0x22378a[_0x5a0d26(0x13d)]:return _0x177608[_0x5a0d26(0x129)](_0x20c3ec,{'coordinator':_0x5c14f8});default:return null;}}function _0x1737db(_0x42e24a){const _0x50d6ef=_0x1005bc,{coordinator:_0xcb7afc}=_0x42e24a;return _0x177608['jsxs'](_0x177608['Fragment'],{'children':[_0x177608[_0x50d6ef(0x129)](_0x50d6ef(0x110),{'className':_0x50d6ef(0x74),'children':_0x50d6ef(0x15a)}),_0x177608[_0x50d6ef(0x129)](_0x4c467b['Button'],{'onClick':()=>_0xcb7afc[_0x50d6ef(0x11d)](),'children':_0x50d6ef(0x113)})]});}function _0x355702(_0x3b0190){const _0x61ce96=_0x1005bc,{coordinator:_0x13b8b8}=_0x3b0190;return _0x177608[_0x61ce96(0xe6)](_0x177608[_0x61ce96(0xfe)],{'children':[_0x177608[_0x61ce96(0x129)](_0x61ce96(0x110),{'className':_0x61ce96(0x74),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x177608[_0x61ce96(0x129)](_0x4c467b[_0x61ce96(0xf3)],{'onClick':()=>_0x13b8b8[_0x61ce96(0xf9)](),'children':_0x61ce96(0x10e)})]});}function _0x31e196(_0x33fd83){const _0x3fbf05=_0x1005bc,{coordinator:_0x3d444d}=_0x33fd83;return _0x177608[_0x3fbf05(0xe6)](_0x177608[_0x3fbf05(0xfe)],{'children':[_0x177608[_0x3fbf05(0x129)](_0x3fbf05(0x110),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3fbf05(0x9e)}),_0x177608[_0x3fbf05(0x129)](_0x4c467b[_0x3fbf05(0xf3)],{'variant':_0x3fbf05(0x108),'onClick':()=>_0x3d444d[_0x3fbf05(0x12e)](),'children':_0x3fbf05(0x13a)})]});}function _0x20c3ec(_0x3e656a){const _0x497215=_0x1005bc,{coordinator:_0x1029cd}=_0x3e656a;return _0x177608[_0x497215(0xe6)](_0x177608[_0x497215(0xfe)],{'children':[_0x177608[_0x497215(0x129)](_0x497215(0x110),{'className':_0x497215(0x74),'children':_0x497215(0x14e)}),_0x177608[_0x497215(0x129)](_0x4c467b[_0x497215(0xf3)],{'variant':_0x497215(0xf5),'onClick':()=>_0x1029cd[_0x497215(0x149)](),'children':_0x497215(0x120)})]});}function _0x27ac89(){const _0x508d6f=_0x1005bc;return _0x177608[_0x508d6f(0x129)](_0x177608[_0x508d6f(0xfe)],{'children':_0x508d6f(0x95)});}var _0x5baa07=Object['getOwnPropertyDescriptor'],_0x43a4c7=(_0x233754,_0x27e6fb,_0x149777,_0x4f3dc3)=>{for(var _0x36f6a0=_0x4f3dc3>0x1?void 0x0:_0x4f3dc3?_0x5baa07(_0x27e6fb,_0x149777):_0x27e6fb,_0xf3352d=_0x233754['length']-0x1,_0x33f456;_0xf3352d>=0x0;_0xf3352d--)(_0x33f456=_0x233754[_0xf3352d])&&(_0x36f6a0=_0x33f456(_0x36f6a0)||_0x36f6a0);return _0x36f6a0;},_0x29b77f=(_0x493a7b,_0x47c51c)=>(_0x4f5834,_0x2fac54)=>_0x47c51c(_0x4f5834,_0x2fac54,_0x493a7b);_0x3a7baa[_0x1005bc(0x8c)]=class extends _0x204445[_0x1005bc(0x142)]{constructor(_0x47aa02,_0x1cc234){const _0x1a7119=_0x1005bc;super(),this['_injector']=_0x47aa02,this[_0x1a7119(0x141)]=_0x1cc234,this[_0x1a7119(0x111)]();}['_mountLiveShare'](){const _0x54c995=_0x1005bc;this[_0x54c995(0x109)](this[_0x54c995(0x141)][_0x54c995(0xd4)](_0x2b0da9[_0x54c995(0xb4)][_0x54c995(0xfa)],()=>_0x2b0da9['connectInjector'](_0x502a81,this[_0x54c995(0x15c)])));}},_0x3a7baa[_0x1005bc(0x8c)]=_0x43a4c7([_0x29b77f(0x0,_0x204445[_0x1005bc(0x115)](_0x204445[_0x1005bc(0xf0)])),_0x29b77f(0x1,_0x2b0da9[_0x1005bc(0xdf)])],_0x3a7baa[_0x1005bc(0x8c)]);const _0x1ebb65=_0x1005bc(0xa8),_0x2383a5={};var _0x4eab69=Object[_0x1005bc(0xe5)],_0x3db3c7=(_0x5a722a,_0x3ab924,_0x41ba83,_0x460bae)=>{const _0x87f761=_0x1005bc;for(var _0x587ddf=_0x460bae>0x1?void 0x0:_0x460bae?_0x4eab69(_0x3ab924,_0x41ba83):_0x3ab924,_0x49f554=_0x5a722a[_0x87f761(0xd2)]-0x1,_0x3a2d39;_0x49f554>=0x0;_0x49f554--)(_0x3a2d39=_0x5a722a[_0x49f554])&&(_0x587ddf=_0x3a2d39(_0x587ddf)||_0x587ddf);return _0x587ddf;},_0xb1748c=(_0x681460,_0x8138d0)=>(_0x3d319d,_0x4f87f0)=>_0x8138d0(_0x3d319d,_0x4f87f0,_0x681460);let _0x573bd5=class extends _0x204445['Disposable']{constructor(_0xf2a33e){const _0x27c5e7=_0x1005bc;super(),this[_0x27c5e7(0xd9)]=_0xf2a33e,this[_0x27c5e7(0x90)]();}[_0x1005bc(0x90)](){const _0xbb677f=_0x1005bc;[_0xbd47dd['SetZoomRatioOperation']['id'],_0xbd47dd[_0xbb677f(0xd8)]['id'],_0x3ff980[_0xbb677f(0x86)]['id']][_0xbb677f(0x75)](_0x463f2f=>{const _0x56f90f=_0xbb677f;this['disposeWithMe'](this[_0x56f90f(0xd9)][_0x56f90f(0x87)](_0x463f2f));});}};_0x573bd5=_0x3db3c7([_0xb1748c(0x0,_0x204445[_0x1005bc(0x115)](_0xc848bf))],_0x573bd5);var _0x239768=Object['defineProperty'],_0x36d0f6=Object['getOwnPropertyDescriptor'],_0x364513=(_0xbda6b1,_0x33d1a6,_0x4dc612)=>_0x33d1a6 in _0xbda6b1?_0x239768(_0xbda6b1,_0x33d1a6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4dc612}):_0xbda6b1[_0x33d1a6]=_0x4dc612,_0x4ae649=(_0x524c9d,_0x1b1138,_0x24a3fd,_0x10e649)=>{const _0x219c88=_0x1005bc;for(var _0x481a2f=_0x10e649>0x1?void 0x0:_0x10e649?_0x36d0f6(_0x1b1138,_0x24a3fd):_0x1b1138,_0x2e8b55=_0x524c9d[_0x219c88(0xd2)]-0x1,_0x1ecc78;_0x2e8b55>=0x0;_0x2e8b55--)(_0x1ecc78=_0x524c9d[_0x2e8b55])&&(_0x481a2f=_0x1ecc78(_0x481a2f)||_0x481a2f);return _0x481a2f;},_0x4417d4=(_0x113084,_0x3851fa)=>(_0x26d91d,_0x571e86)=>_0x3851fa(_0x26d91d,_0x571e86,_0x113084),_0x1bb577=(_0xccb0f3,_0x47d9c7,_0x5e0150)=>_0x364513(_0xccb0f3,typeof _0x47d9c7!=_0x1005bc(0xbe)?_0x47d9c7+'':_0x47d9c7,_0x5e0150);const _0x2ff03f='UNIVER_LIVE_SHARE_PLUGIN';_0x3a7baa[_0x1005bc(0x156)]=class extends _0x204445[_0x1005bc(0x14c)]{constructor(_0x36f1d0=_0x2383a5,_0x1ed3c9,_0x1d1146){const _0x1ffcd7=_0x1005bc;super(),this[_0x1ffcd7(0x8a)]=_0x36f1d0,this[_0x1ffcd7(0x15c)]=_0x1ed3c9,this['_configService']=_0x1d1146;const {..._0x6e36e0}=_0x204445[_0x1ffcd7(0x101)]({},_0x2383a5,this[_0x1ffcd7(0x8a)]);this['_configService'][_0x1ffcd7(0xea)](_0x1ebb65,_0x6e36e0);}['onStarting'](){const _0x10dabc=_0x1005bc;_0x204445[_0x10dabc(0x9c)](this['_injector'],_0x204445[_0x10dabc(0x154)]([[_0xc848bf],[_0x3a7baa[_0x10dabc(0x13b)]],[_0x573bd5],[_0x3a7baa[_0x10dabc(0x8c)]]],this[_0x10dabc(0x8a)][_0x10dabc(0x8b)])),_0x204445[_0x10dabc(0xde)](this[_0x10dabc(0x15c)],[[_0x573bd5]]);}[_0x1005bc(0x10a)](){const _0xd0259e=_0x1005bc;_0x204445[_0xd0259e(0xde)](this['_injector'],[[_0x3a7baa[_0xd0259e(0x8c)]]]);}},_0x1bb577(_0x3a7baa[_0x1005bc(0x156)],_0x1005bc(0xba),_0x204445[_0x1005bc(0x12c)]['UNIVER_UNKNOWN']),_0x1bb577(_0x3a7baa[_0x1005bc(0x156)],_0x1005bc(0x143),_0x2ff03f),_0x3a7baa[_0x1005bc(0x156)]=_0x4ae649([_0x204445[_0x1005bc(0x132)](_0x26332d[_0x1005bc(0x7d)]),_0x4417d4(0x1,_0x204445[_0x1005bc(0x115)](_0x204445['Injector'])),_0x4417d4(0x2,_0x204445[_0x1005bc(0xf2)])],_0x3a7baa['UniverLiveSharePlugin']),_0x3a7baa[_0x1005bc(0x100)]=_0x502a81,_0x3a7baa[_0x1005bc(0xcc)]=_0xc848bf,_0x3a7baa[_0x1005bc(0x137)]=_0x22378a,Object[_0x1005bc(0xc6)](_0x3a7baa,Symbol[_0x1005bc(0xfb)],{'value':_0x1005bc(0xc4)});}));function _0x41ea(_0x891bb,_0x4390a5){_0x891bb=_0x891bb-0x72;const _0x3440ea=_0x3440();let _0x41eadc=_0x3440ea[_0x891bb];return _0x41eadc;}function _0x3440(){const _0x329360=['2287520BSqnQW','UniverCore','SetWorksheetActiveOperation','registerSharedOperation','trim','clsx','_config','override','DesktopLiveShareController','object','@univerjs/sheets','univer-size-4','_init','UniverProLiveShare','exports','idle','_startLiveShareCoordinator','You\x27are\x20offline.','_startPresenting','delete','set','@univerjs/design','React','operators','registerDependencies','_reporters','You\x27re\x20not\x20following\x20the\x20presenter','pipe','http://www.w3.org/2000/svg','@univerjs/core','then','univerjs-icon\x20univerjs-icon-','getTypeOfUnitDisposed$','_commandService','getLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','live-share.config','fill','SAME_OPERATION_SHARE_INTERVAL','add','_status','954qqhISu','currentColor','tag','dispose','_startFollowing','1em','LIVESHARE_REQUEST_HOST','BuiltInUIPart','1699404mtuRXw','sheet','LIVESHARE_OPERATION','@univerjs-pro/collaboration-client','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','type','shouldShareOperation','_sharedOperations','sessionStatus$','symbol','next','RxDisposable','parse','displayName','@univerjs-pro/collaboration','Module','button','defineProperty','UniverDesign','0\x200\x2017\x2017','colorChannel1','_handleNewHost','getConfig','LiveShareService','DisposableCollection','toString','replace','5088mzXpNB','UniverUi','length','10LeUTVo','registerComponent','4094530LOmGcf','_presenter','InsertSheetMutation','SetScrollOperation','_liveShareService','24YdWvfL','get','_beIdle','_handleOperation','touchDependencies','IUIPartsService','LiveShareCoordinator','_fetchOperations','evenodd','following','_entities','getOwnPropertyDescriptor','jsxs','subscribe','children','1528266VOJLNZ','setConfig','current','unitId','executeCommand','idSuffix','reverse','Injector','_unitID','IConfigService','Button','rxjs','default','live-share-icon','url(#$1','string','stopFollowing','HEADER_MENU','toStringTag','params','data','Fragment','getUnitId','LiveShare','merge','OFFLINE','UNIVER_SHEET','_handleOnline','ICommandService','entries','has','text','disposeWithMe','onRendered','_collabSessionService','from','init','Stop\x20following','FOLLOWING','div','_mountLiveShare','useDependency','Start','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','Inject','Dropdown','attrs','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','substring','forwardRef','IDLE','presenting','tryStartPresenting','path','end','Stop\x20presenting','_configService','LIVESHARE_TERMINATE','_stopFollowing','_handleOffline','_handleTerminate','takeUntil','requireSession','parseProtocolChangeset','jsx','dispose$','CommandType','UniverInstanceType','_handleNewChangeSets','startFollowing','useRef','xlink:href','values','DependentOn','onCommandExecuted','UniverSheets','_univerInstanceService','presenter','LiveShareStatus','Subject','UniverProCollaboration','Start\x20following','LiveShareController','toDisposable','PRESENTING','status$','ONLINE','@univerjs/sheets-ui','_uiPartsService','Disposable','pluginName','getValue','UniverProCollaborationClient','NOT_FOLLOWING','registerInitialStateReporter','clear','stopPresenting','createInstance','SessionStatus','Plugin','unsubscribe','You\x27re\x20presenting\x20the\x20document','IUniverInstanceService','UniverIcon','_collabSession','useEffect','offline','mergeOverrideWithDependencies','defs','UniverLiveSharePlugin','complete','592723rHDpPd','operations','Present\x20this\x20document','defIds','_injector','find','use','stringify','NEW_CHANGESETS','CollaborationEvent','univer-mb-3\x20univer-w-full\x20univer-text-sm','forEach','_commandDisposable','react/jsx-runtime','map','getInitialStates','mask','45976EZAwAN','_stopPresenting','UniverCollaborationClientPlugin','none','send','_status$','@univerjs/ui','getMemberID','not-following'];_0x3440=function(){return _0x329360;};return _0x3440();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3-experimental.20251204-1549a8e",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs
|
|
61
|
-
"@univerjs-pro/collaboration
|
|
62
|
-
"@univerjs/design": "0.12.
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets": "0.12.
|
|
66
|
-
"@univerjs/sheets
|
|
67
|
-
"@univerjs/ui": "0.12.
|
|
60
|
+
"@univerjs/core": "0.12.3-experimental.20251204-1549a8e",
|
|
61
|
+
"@univerjs-pro/collaboration": "0.12.3-experimental.20251204-1549a8e",
|
|
62
|
+
"@univerjs/design": "0.12.3-experimental.20251204-1549a8e",
|
|
63
|
+
"@univerjs/engine-render": "0.12.3-experimental.20251204-1549a8e",
|
|
64
|
+
"@univerjs-pro/collaboration-client": "0.12.3-experimental.20251204-1549a8e",
|
|
65
|
+
"@univerjs/sheets-ui": "0.12.3-experimental.20251204-1549a8e",
|
|
66
|
+
"@univerjs/sheets": "0.12.3-experimental.20251204-1549a8e",
|
|
67
|
+
"@univerjs/ui": "0.12.3-experimental.20251204-1549a8e"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"rxjs": "7.8.2",
|
|
73
73
|
"tailwindcss": "^3.4.17",
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
|
-
"vite": "^7.2.
|
|
76
|
-
"vitest": "^
|
|
77
|
-
"@univerjs
|
|
78
|
-
"@univerjs/
|
|
75
|
+
"vite": "^7.2.6",
|
|
76
|
+
"vitest": "^4.0.15",
|
|
77
|
+
"@univerjs/protocol": "0.1.47",
|
|
78
|
+
"@univerjs-infra/shared": "0.12.3"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|