@univerjs-pro/live-share 0.12.2-nightly.202511290905 → 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 +12 -12
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 _0x22f433=_0x4c8d;(function(_0x1f07ba,_0x5ef76f){const _0xee615a=_0x4c8d,_0x466da4=_0x1f07ba();while(!![]){try{const _0x241bac=-parseInt(_0xee615a(0x1ac))/0x1*(parseInt(_0xee615a(0x163))/0x2)+parseInt(_0xee615a(0x196))/0x3*(-parseInt(_0xee615a(0x1ab))/0x4)+parseInt(_0xee615a(0x128))/0x5+parseInt(_0xee615a(0x140))/0x6*(-parseInt(_0xee615a(0xfd))/0x7)+-parseInt(_0xee615a(0x139))/0x8+parseInt(_0xee615a(0x186))/0x9+-parseInt(_0xee615a(0x17a))/0xa*(-parseInt(_0xee615a(0xf4))/0xb);if(_0x241bac===_0x5ef76f)break;else _0x466da4['push'](_0x466da4['shift']());}catch(_0x50cf2b){_0x466da4['push'](_0x466da4['shift']());}}}(_0x1e61,0x6bbfc));var T=Object[_0x22f433(0xe1)],U=(_0x44f1dd,_0x1a2695,_0xb40b50)=>_0x1a2695 in _0x44f1dd?T(_0x44f1dd,_0x1a2695,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb40b50}):_0x44f1dd[_0x1a2695]=_0xb40b50,_=(_0x3431c8,_0x581179,_0x5b23d1)=>U(_0x3431c8,typeof _0x581179!=_0x22f433(0x10e)?_0x581179+'':_0x581179,_0x5b23d1);Object[_0x22f433(0xe1)](exports,Symbol[_0x22f433(0x111)],{'value':_0x22f433(0x178)});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:_0x4caea4,..._0xe8cdcd}){const _0x575f1f=_0x22f433,{icon:_0x217c9b,id:_0x23a275,className:_0x1b14b7,extend:_0x4fb455,..._0xd3ac69}=_0xe8cdcd,_0x43bf8c=('univerjs-icon\x20univerjs-icon-'+_0x23a275+'\x20'+(_0x1b14b7||''))['trim'](),_0x3ba029=v['useRef']('_'+H());return j(_0x217c9b,''+_0x23a275,{'defIds':_0x217c9b[_0x575f1f(0x16c)],'idSuffix':_0x3ba029[_0x575f1f(0x1a8)]},{'ref':_0x4caea4,'className':_0x43bf8c,..._0xd3ac69},_0x4fb455);}function j(_0x2b1a49,_0x125dd4,_0x2521be,_0x12016d,_0x248b34){const _0x17ca36=_0x22f433;return v[_0x17ca36(0x11a)](_0x2b1a49[_0x17ca36(0x14d)],{'key':_0x125dd4,...y(_0x2b1a49,_0x2521be,_0x248b34),..._0x12016d},(F(_0x2b1a49,_0x2521be)[_0x17ca36(0x101)]||[])[_0x17ca36(0x11b)]((_0x180d11,_0xb54d77)=>j(_0x180d11,_0x125dd4+'-'+_0x2b1a49[_0x17ca36(0x14d)]+'-'+_0xb54d77,_0x2521be,void 0x0,_0x248b34)));}function _0x4c8d(_0x4201ed,_0x15d593){const _0x1e6132=_0x1e61();return _0x4c8d=function(_0x4c8d6b,_0x20ab3b){_0x4c8d6b=_0x4c8d6b-0xd5;let _0x49d727=_0x1e6132[_0x4c8d6b];return _0x49d727;},_0x4c8d(_0x4201ed,_0x15d593);}function y(_0x266da2,_0x3b1b19,_0x1d0f29){const _0x4720fa=_0x22f433,_0x4dfc87={..._0x266da2[_0x4720fa(0x131)]};_0x1d0f29!=null&&_0x1d0f29['colorChannel1']&&_0x4dfc87[_0x4720fa(0xde)]===_0x4720fa(0xf7)&&(_0x4dfc87[_0x4720fa(0xde)]=_0x1d0f29[_0x4720fa(0xf7)]),_0x266da2[_0x4720fa(0x14d)]===_0x4720fa(0x153)&&_0x4dfc87['id']&&(_0x4dfc87['id']=_0x4dfc87['id']+_0x3b1b19['idSuffix']),Object[_0x4720fa(0x1a0)](_0x4dfc87)[_0x4720fa(0x105)](([_0xd4effe,_0x578c55])=>{const _0x188457=_0x4720fa;_0xd4effe===_0x188457(0x153)&&typeof _0x578c55==_0x188457(0x170)&&(_0x4dfc87[_0xd4effe]=_0x578c55['replace'](/url\(#(.*)\)/,_0x188457(0x148)+_0x3b1b19[_0x188457(0xf5)]+')'));});const {defIds:_0x23863d}=_0x3b1b19;return!_0x23863d||_0x23863d[_0x4720fa(0x183)]===0x0||(_0x266da2[_0x4720fa(0x14d)]===_0x4720fa(0x110)&&_0x4dfc87[_0x4720fa(0x15d)]&&(_0x4dfc87['xlink:href']=_0x4dfc87[_0x4720fa(0x15d)]+_0x3b1b19[_0x4720fa(0xf5)]),Object[_0x4720fa(0x1a0)](_0x4dfc87)[_0x4720fa(0x105)](([_0x2d53ea,_0x259114])=>{const _0x3aee78=_0x4720fa;typeof _0x259114==_0x3aee78(0x170)&&(_0x4dfc87[_0x2d53ea]=_0x259114['replace'](/url\(#(.*)\)/,_0x3aee78(0x148)+_0x3b1b19['idSuffix']+')'));})),_0x4dfc87;}function F(_0x377e35,_0x1ea39e){const _0x5c80f9=_0x22f433;var _0x572b4c;const {defIds:_0x2684d3}=_0x1ea39e;return!_0x2684d3||_0x2684d3[_0x5c80f9(0x183)]===0x0?_0x377e35:_0x377e35[_0x5c80f9(0x14d)]===_0x5c80f9(0x173)&&((_0x572b4c=_0x377e35[_0x5c80f9(0x101)])!=null&&_0x572b4c[_0x5c80f9(0x183)])?{..._0x377e35,'children':_0x377e35[_0x5c80f9(0x101)][_0x5c80f9(0x11b)](_0x41d5c4=>typeof _0x41d5c4[_0x5c80f9(0x131)]['id']==_0x5c80f9(0x170)&&_0x2684d3&&_0x2684d3[_0x5c80f9(0x112)](_0x41d5c4[_0x5c80f9(0x131)]['id'])?{..._0x41d5c4,'attrs':{..._0x41d5c4[_0x5c80f9(0x131)],'id':_0x41d5c4['attrs']['id']+_0x1ea39e[_0x5c80f9(0xf5)]}}:_0x41d5c4)}:_0x377e35;}function H(){const _0x461c05=_0x22f433;return Math[_0x461c05(0x1a3)]()[_0x461c05(0x174)](0x24)[_0x461c05(0xe2)](0x2,0x8);}x[_0x22f433(0x184)]=_0x22f433(0x143);const V={'tag':_0x22f433(0x1ae),'attrs':{'xmlns':_0x22f433(0x126),'fill':_0x22f433(0x103),'viewBox':'0\x200\x2017\x2017','width':_0x22f433(0x12f),'height':'1em'},'children':[{'tag':_0x22f433(0xf3),'attrs':{'fill':_0x22f433(0x136),'d':_0x22f433(0x168)}},{'tag':_0x22f433(0xf3),'attrs':{'fill':_0x22f433(0x136),'d':_0x22f433(0xdd),'fillRule':_0x22f433(0x157),'clipRule':'evenodd'}}]},R=v[_0x22f433(0x144)](function(_0x8ed67b,_0x4b9648){const _0x3f469a=_0x22f433;return v[_0x3f469a(0x11a)](x,Object[_0x3f469a(0x199)]({},_0x8ed67b,{'id':_0x3f469a(0x1a5),'ref':_0x4b9648,'icon':V}));});R[_0x22f433(0x184)]=_0x22f433(0x141);class E extends o[_0x22f433(0x16d)]{constructor(){const _0x51f2b2=_0x22f433;super(...arguments),_(this,_0x51f2b2(0x109),new Set()),_(this,_0x51f2b2(0xe0),new Set());}[_0x22f433(0x185)](_0x2c888f){const _0x333b6f=_0x22f433;return this[_0x333b6f(0x109)][_0x333b6f(0x107)](_0x2c888f),o[_0x333b6f(0x1a4)](()=>this['_sharedOperations'][_0x333b6f(0x1b1)](_0x2c888f));}[_0x22f433(0x18d)](_0x3fcd62){const _0x17f0d6=_0x22f433;return this[_0x17f0d6(0xe0)][_0x17f0d6(0x107)](_0x3fcd62),o[_0x17f0d6(0x1a4)](()=>this['_reporters']['delete'](_0x3fcd62));}[_0x22f433(0x17d)](_0x9822e7){const _0x18c4da=_0x22f433;return this['_sharedOperations'][_0x18c4da(0x11e)](_0x9822e7);}['getInitialStates'](_0x38f300){const _0x18f542=_0x22f433;return Array['from'](this[_0x18f542(0xe0)])[_0x18f542(0x11b)](_0x483717=>_0x483717(_0x38f300));}}function _0x1e61(){const _0xf2bd8b=['none','stopFollowing','forEach','SessionStatus','add','unitId','_sharedOperations','set','requireSession','DesktopLiveShareController','mutations','symbol','button','use','toStringTag','includes','end','UNIVER_SHEET','LIVESHARE_NEW_HOST','_handleNewChangeSets','_handleOperation','useState','next','createElement','map','_univerInstanceService','Subject','has','Stop\x20presenting','LIVESHARE_FETCH_OPERATIONS','_handleNewHost','presenting','takeUntil','univer-mb-3\x20univer-w-full\x20univer-text-sm','throttleTime','http://www.w3.org/2000/svg','data','3141375QhnJZG','get','getLiveShareCoordinatorSync','_presenter','Present\x20this\x20document','getCurrentTypeOfUnit$','Stop\x20following','1em','DependentOn','attrs','following','Start\x20following','_mountLiveShare','useRef','currentColor','useObservable','dispose$','6747120QbBDcE','operations','SetWorksheetActiveOperation','Button','PRESENTING','_init','_fetchOperations','19638VGAdAT','LiveShareIcon','_configService','UniverIcon','forwardRef','getConfig','_stopPresenting','memberID','url(#$1','merge','univer-size-4','subscribe','_injector','tag','getMemberID','IDLE','LiveShareController','parse','IUniverInstanceService','mask','getTypeOfUnitDisposed$','send','div','evenodd','dispose','clsx','connectInjector','BuiltInUIPart','DisposableCollection','xlink:href','BehaviorSubject','getUnitId','InsertSheetMutation','Start','LIVESHARE_REQUEST_HOST','2oKHhsb','params','values','LiveShareStatus','CollaborationEvent','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_startPresenting','LIVESHARE_TERMINATE','getStatus','defIds','Disposable','_config','createInstance','string','getInitialStates','UniverInstanceType','defs','toString','_startFollowing','Plugin','registerDependencies','Module','pipe','710AsEpSc','init','parseProtocolChangeset','shouldShareOperation','find','mergeOverrideWithDependencies','SetZoomRatioOperation','offline','Injector','length','displayName','registerSharedOperation','1120365LUPAAE','setConfig','SetScrollOperation','live-share.config','SAME_OPERATION_SHARE_INTERVAL','_startLiveShareCoordinator','getLiveShareCoordinator','registerInitialStateReporter','_commandDisposable','CollaborationSessionService','_liveShareService','stopPresenting','FOLLOWING','NEW_CHANGESETS','_commandService','registerComponent','16593rFDIvE','IConfigService','jsxs','assign','complete','unsubscribe','reverse','default','startFollowing','type','entries','Fragment','_collabSessionService','random','toDisposable','live-share-icon','pluginName','getTypeOfUnitAdded$','current','status$','_collabSession','444LLaLRQ','245161Blbbvy','LiveShareCoordinator','svg','touchDependencies','NOT_FOLLOWING','delete','text','_status$','onCommandExecuted','stringify','RxDisposable','Inject','_handleTerminate','_entities','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','fill','LIVESHARE_OPERATION','_reporters','defineProperty','substring','presenter','_unitID','executeCommand','sheet','You\x27re\x20following\x20the\x20presenter','_handleOnline','useEffect','clear','You\x27re\x20presenting\x20the\x20document','tryStartPresenting','ONLINE','_beIdle','disposeWithMe','Dropdown','_stopFollowing','jsx','path','346346KykvaG','idSuffix','_uiPartsService','colorChannel1','not-following','_status','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','idle','CommandType','1806LjcvTu','OFFLINE','getOwnPropertyDescriptor','UniverLiveSharePlugin','children','You\x27are\x20offline.'];_0x1e61=function(){return _0xf2bd8b;};return _0x1e61();}var M=Object[_0x22f433(0xff)],P=(_0x4146ff,_0x3070a9,_0x1ba225,_0x3a735c)=>{const _0x39df1c=_0x22f433;for(var _0xb1ae1a=_0x3a735c>0x1?void 0x0:_0x3a735c?M(_0x3070a9,_0x1ba225):_0x3070a9,_0xe99de4=_0x4146ff[_0x39df1c(0x183)]-0x1,_0x420b5c;_0xe99de4>=0x0;_0xe99de4--)(_0x420b5c=_0x4146ff[_0xe99de4])&&(_0xb1ae1a=_0x420b5c(_0xb1ae1a)||_0xb1ae1a);return _0xb1ae1a;},S=(_0x56ed28,_0x1afe48)=>(_0x5d19c5,_0x516ff5)=>_0x1afe48(_0x5d19c5,_0x516ff5,_0x56ed28);exports[_0x22f433(0x150)]=class extends o['RxDisposable']{constructor(_0x3ebf60,_0x4682ef,_0x4f21ab){const _0x2f03b0=_0x22f433;super(),_(this,'_entities',new Map()),(this[_0x2f03b0(0x11c)]=_0x3ebf60,this[_0x2f03b0(0x14c)]=_0x4682ef,this['_collabSessionService']=_0x4f21ab,this[_0x2f03b0(0x13e)]());}async[_0x22f433(0x18c)](_0x566d4a){const _0x21eb26=_0x22f433;return this['_entities'][_0x21eb26(0x11e)](_0x566d4a)||await this[_0x21eb26(0x18b)](_0x566d4a),this['_entities'][_0x21eb26(0x129)](_0x566d4a);}[_0x22f433(0x12a)](_0x22df74){const _0xb57ccb=_0x22f433;var _0x9f8e2a;return(_0x9f8e2a=this[_0xb57ccb(0xdc)][_0xb57ccb(0x129)](_0x22df74))!=null?_0x9f8e2a:null;}['_init'](){const _0x2682b5=_0x22f433;this[_0x2682b5(0x11c)][_0x2682b5(0x1a7)](o[_0x2682b5(0x172)][_0x2682b5(0x114)])[_0x2682b5(0x179)](I[_0x2682b5(0x123)](this[_0x2682b5(0x138)]))['subscribe'](async _0x23101d=>{const _0xea11d4=_0x2682b5,_0xf1e347=_0x23101d[_0xea11d4(0x15f)]();this[_0xea11d4(0xdc)][_0xea11d4(0x11e)](_0xf1e347)||this['_startLiveShareCoordinator'](_0xf1e347);}),this[_0x2682b5(0x11c)][_0x2682b5(0x154)](o[_0x2682b5(0x172)][_0x2682b5(0x114)])['pipe'](I['takeUntil'](this[_0x2682b5(0x138)]))[_0x2682b5(0x14b)](_0x5b9e66=>{const _0x4a1067=_0x2682b5,_0x2b2542=_0x5b9e66['getUnitId'](),_0x21b634=this[_0x4a1067(0xdc)][_0x4a1067(0x129)](_0x2b2542);_0x21b634==null||_0x21b634[_0x4a1067(0x158)]();});}async[_0x22f433(0x18b)](_0x3a0f31){const _0x23126e=_0x22f433,_0x2c4f2e=await this[_0x23126e(0x1a2)][_0x23126e(0x10b)](_0x3a0f31),_0x5c2f1e=this[_0x23126e(0x14c)][_0x23126e(0x16f)](exports[_0x23126e(0x1ad)],_0x3a0f31,_0x2c4f2e);return _0x5c2f1e[_0x23126e(0x17b)](),this[_0x23126e(0xdc)][_0x23126e(0x10a)](_0x3a0f31,_0x5c2f1e),_0x5c2f1e;}},exports['LiveShareController']=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x22f433(0xda)](o[_0x22f433(0x182)])),S(0x2,o['Inject'](b[_0x22f433(0x18f)]))],exports['LiveShareController']);var u=(_0x23d1be=>(_0x23d1be[_0x22f433(0xfe)]=_0x22f433(0x181),_0x23d1be['IDLE']=_0x22f433(0xfb),_0x23d1be['FOLLOWING']=_0x22f433(0x132),_0x23d1be[_0x22f433(0x1b0)]=_0x22f433(0xf8),_0x23d1be[_0x22f433(0x13d)]=_0x22f433(0x122),_0x23d1be))(u||{});const k=_0x22f433(0x18a),q=0xc8;exports[_0x22f433(0x1ad)]=class extends o[_0x22f433(0xd9)]{constructor(_0xc667ed,_0x63a08e,_0x1141c0,_0x348983,_0x1fffcd){const _0x3bb036=_0x22f433;super(),_(this,_0x3bb036(0xd6),new O[(_0x3bb036(0x15e))](_0x3bb036(0xfb))),_(this,_0x3bb036(0x1a9),this[_0x3bb036(0xd6)]['asObservable']()),_(this,_0x3bb036(0x13e),!0x1),_(this,_0x3bb036(0x18e),null),_(this,_0x3bb036(0x12b),null),(this['_unitID']=_0xc667ed,this['_collabSession']=_0x63a08e,this['_configService']=_0x1141c0,this[_0x3bb036(0x190)]=_0x348983,this[_0x3bb036(0x194)]=_0x1fffcd);}get[_0x22f433(0xf9)](){const _0x3fb755=_0x22f433;return this[_0x3fb755(0xd6)]['getValue']();}[_0x22f433(0x158)](){const _0x389e68=_0x22f433;var _0x1f36eb;(_0x1f36eb=this[_0x389e68(0x18e)])==null||_0x1f36eb['dispose'](),this[_0x389e68(0xd6)][_0x389e68(0x119)](_0x389e68(0xfb)),this[_0x389e68(0xd6)][_0x389e68(0x19a)]();}[_0x22f433(0x16b)](){const _0x5bd463=_0x22f433;return this[_0x5bd463(0xf9)];}[_0x22f433(0x17b)](){const _0x330b05=_0x22f433;this[_0x330b05(0x13e)]||(this['_init']=!0x0,this[_0x330b05(0x1aa)]['sessionStatus$'][_0x330b05(0x179)](I[_0x330b05(0x123)](this['dispose$']))[_0x330b05(0x14b)](_0x217659=>{const _0x4b9815=_0x330b05;switch(_0x217659){case b[_0x4b9815(0x106)][_0x4b9815(0xfe)]:this['_handleOffline']();break;case b['SessionStatus'][_0x4b9815(0xed)]:this['_handleOnline']();break;}}),this['_collabSession']['event$']['pipe'](I['takeUntil'](this['dispose$']))['subscribe'](_0x30d3f1=>{const _0x3a7e68=_0x330b05,{eventID:_0x425279}=_0x30d3f1;switch(_0x425279){case d[_0x3a7e68(0x167)][_0x3a7e68(0x115)]:this[_0x3a7e68(0x121)](_0x30d3f1);break;case d[_0x3a7e68(0x167)][_0x3a7e68(0xdf)]:this[_0x3a7e68(0x117)](_0x30d3f1);break;case d[_0x3a7e68(0x167)]['LIVESHARE_TERMINATE']:this[_0x3a7e68(0xdb)]();break;case d[_0x3a7e68(0x167)][_0x3a7e68(0x193)]:this[_0x3a7e68(0x116)](_0x30d3f1);break;}}));}[_0x22f433(0xec)](){const _0x85b34c=_0x22f433;this[_0x85b34c(0x1aa)]['send']({'eventID':d[_0x85b34c(0x167)][_0x85b34c(0x162)],'data':{'unitID':this[_0x85b34c(0xe4)],'userID':this[_0x85b34c(0x1aa)][_0x85b34c(0x14e)]()}},this['_unitID']);}[_0x22f433(0x191)](){const _0x362249=_0x22f433;this[_0x362249(0xf9)]===_0x362249(0x122)&&(this[_0x362249(0xd6)][_0x362249(0x119)](_0x362249(0xfb)),this[_0x362249(0x1aa)][_0x362249(0x155)]({'eventID':d['CollaborationEvent'][_0x362249(0x16a)],'data':{'unitID':this[_0x362249(0xe4)]}},this[_0x362249(0xe4)]));}[_0x22f433(0x19e)](){const _0x2ba570=_0x22f433;this[_0x2ba570(0xf9)]==='not-following'&&(this[_0x2ba570(0xd6)][_0x2ba570(0x119)]('following'),this[_0x2ba570(0x175)]());}[_0x22f433(0x104)](){const _0x30a29b=_0x22f433;this[_0x30a29b(0xf9)]==='following'&&this[_0x30a29b(0xf1)]();}[_0x22f433(0x121)](_0x255fcc){const _0x36357e=_0x22f433,{presenter:_0xdbcc76}=_0x255fcc[_0x36357e(0x127)],_0x524145=this[_0x36357e(0x1aa)]['getMemberID']();this['_presenter']=_0xdbcc76,_0xdbcc76===_0x524145?(this[_0x36357e(0xf1)](),this[_0x36357e(0x169)]()):this['_status']!==_0x36357e(0xf8)&&(this[_0x36357e(0x146)](),this[_0x36357e(0x175)]());}['_fetchOperations'](){const _0x42f604=_0x22f433,_0x3fccd8={'eventID':d[_0x42f604(0x167)][_0x42f604(0x120)]};this[_0x42f604(0x1aa)][_0x42f604(0x155)](_0x3fccd8,this[_0x42f604(0xe4)]);}['_handleTerminate'](){const _0x5af626=_0x22f433;this[_0x5af626(0x12b)]=null,this['_status']!==_0x5af626(0x122)&&this[_0x5af626(0xee)]();}[_0x22f433(0x116)](_0x533273){const _0x13ecbb=_0x22f433;if(this[_0x13ecbb(0xf9)]===_0x13ecbb(0x132)&&this[_0x13ecbb(0x12b)]===_0x533273['data'][_0x13ecbb(0x147)]){const _0x592d4a=d[_0x13ecbb(0x17c)](_0x533273[_0x13ecbb(0x127)])[_0x13ecbb(0x10d)][_0x13ecbb(0x19c)]()[_0x13ecbb(0x17e)](_0x36f918=>_0x36f918['id']===C[_0x13ecbb(0x160)]['id']);if(_0x592d4a){const _0x24cb3e=_0x592d4a[_0x13ecbb(0x164)][_0x13ecbb(0x108)],_0x3cd6aa=_0x592d4a[_0x13ecbb(0x164)][_0x13ecbb(0xe6)]['id'];setTimeout(()=>{const _0x8077ef=_0x13ecbb;this[_0x8077ef(0x194)][_0x8077ef(0xe5)](C[_0x8077ef(0x13b)]['id'],{'unitId':_0x24cb3e,'subUnitId':_0x3cd6aa},{'fromCollab':!0x0});});}}}[_0x22f433(0x169)](){const _0x37ebf4=_0x22f433;this[_0x37ebf4(0xd6)]['next'](_0x37ebf4(0x122));const _0x3991a5=new Map(),_0x3b961d=this[_0x37ebf4(0x18e)]=new o[(_0x37ebf4(0x15c))]();_0x3b961d[_0x37ebf4(0x107)](o['toDisposable'](()=>{const _0x393efe=_0x37ebf4;_0x3991a5[_0x393efe(0x105)](_0x107eb0=>_0x107eb0['complete']()),_0x3991a5[_0x393efe(0xea)]();})),_0x3b961d['add'](this[_0x37ebf4(0x194)][_0x37ebf4(0xd7)](_0x267b6c=>{const _0x4c61e0=_0x37ebf4;var _0x3c162c;if(_0x267b6c[_0x4c61e0(0x19f)]!==o[_0x4c61e0(0xfc)]['OPERATION']||!this['_liveShareService'][_0x4c61e0(0x17d)](_0x267b6c['id']))return;const {id:_0x351cfb}=_0x267b6c;let _0x4f8759;_0x3991a5[_0x4c61e0(0x11e)](_0x351cfb)?_0x4f8759=_0x3991a5[_0x4c61e0(0x129)](_0x351cfb):(_0x4f8759=new O[(_0x4c61e0(0x11d))](),_0x3991a5[_0x4c61e0(0x10a)](_0x351cfb,_0x4f8759),_0x4f8759['pipe'](I[_0x4c61e0(0x125)]((_0x3c162c=this['_configService'][_0x4c61e0(0x145)](k))!=null?_0x3c162c:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4c61e0(0x14b)](_0x1b7016=>{const _0x2d5c81=_0x4c61e0;this[_0x2d5c81(0x1aa)][_0x2d5c81(0x155)]({'eventID':d[_0x2d5c81(0x167)][_0x2d5c81(0xdf)],'data':{'unitID':this[_0x2d5c81(0xe4)],'operations':{[_0x1b7016['id']]:{'id':_0x1b7016['id'],'params':JSON[_0x2d5c81(0xd8)](_0x1b7016[_0x2d5c81(0x164)])}}}},this[_0x2d5c81(0xe4)]);})),_0x4f8759[_0x4c61e0(0x119)](_0x267b6c);})),this[_0x37ebf4(0x190)][_0x37ebf4(0x171)](this[_0x37ebf4(0xe4)])[_0x37ebf4(0x105)](_0x555a52=>this[_0x37ebf4(0x1aa)]['send']({'eventID':d[_0x37ebf4(0x167)][_0x37ebf4(0xdf)],'data':{'unitID':this[_0x37ebf4(0xe4)],'operations':{[_0x555a52['id']]:{'id':_0x555a52['id'],'params':JSON[_0x37ebf4(0xd8)](_0x555a52['params'])}}}},this[_0x37ebf4(0xe4)]));}[_0x22f433(0x146)](){const _0x42040c=_0x22f433;var _0x56b695;this[_0x42040c(0xd6)]['next'](_0x42040c(0xfb)),(_0x56b695=this[_0x42040c(0x18e)])==null||_0x56b695[_0x42040c(0x158)](),this[_0x42040c(0x18e)]=null;}[_0x22f433(0x175)](){const _0x4d8e33=_0x22f433;var _0x2d8ef6;(_0x2d8ef6=this[_0x4d8e33(0x18e)])==null||_0x2d8ef6[_0x4d8e33(0x158)](),this[_0x4d8e33(0xd6)][_0x4d8e33(0x119)](_0x4d8e33(0x132));}['_beIdle'](){const _0x4a73af=_0x22f433;var _0x1e263c;this[_0x4a73af(0xd6)]['next']('idle'),(_0x1e263c=this[_0x4a73af(0x18e)])==null||_0x1e263c[_0x4a73af(0x158)](),this[_0x4a73af(0x18e)]=null;}['_stopFollowing'](){const _0xb3f211=_0x22f433;var _0x4bfee7;this[_0xb3f211(0xd6)][_0xb3f211(0x119)](_0xb3f211(0xf8)),(_0x4bfee7=this[_0xb3f211(0x18e)])==null||_0x4bfee7[_0xb3f211(0x158)]();}[_0x22f433(0x117)](_0x579a22){const _0x21b586=_0x22f433;if([_0x21b586(0x122),_0x21b586(0xf8),_0x21b586(0x181)]['includes'](this[_0x21b586(0xf9)])||!_0x579a22[_0x21b586(0x127)][_0x21b586(0xe3)]||_0x579a22[_0x21b586(0x127)][_0x21b586(0xe3)]===this[_0x21b586(0x1aa)][_0x21b586(0x14e)]())return;this[_0x21b586(0xf9)]===_0x21b586(0xfb)&&this[_0x21b586(0x175)]();const _0x15c28e=_0x579a22[_0x21b586(0x127)][_0x21b586(0x13a)];Object[_0x21b586(0x165)](_0x15c28e)[_0x21b586(0x105)](_0x53556f=>{const _0x3ec568=_0x21b586;this[_0x3ec568(0x194)][_0x3ec568(0xe5)](_0x53556f['id'],_0x53556f['params']?JSON[_0x3ec568(0x151)](_0x53556f[_0x3ec568(0x164)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x37eb65=_0x22f433;var _0x10d7dc;this['_status$'][_0x37eb65(0x119)](_0x37eb65(0x181)),(_0x10d7dc=this[_0x37eb65(0x18e)])==null||_0x10d7dc['dispose']();}[_0x22f433(0xe8)](){const _0x4c9dff=_0x22f433;this[_0x4c9dff(0xd6)][_0x4c9dff(0x119)](_0x4c9dff(0xfb)),this[_0x4c9dff(0x13f)]();}},exports[_0x22f433(0x1ad)]=P([S(0x2,o[_0x22f433(0x197)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports[_0x22f433(0x1ad)]);function $(){const _0xa47aa8=_0x22f433,_0x2f9b01=p['useDependency'](exports[_0xa47aa8(0x150)]),_0x54869f=p['useDependency'](o[_0xa47aa8(0x152)]),_0xc3956a=p[_0xa47aa8(0x137)](()=>_0x54869f[_0xa47aa8(0x12d)](o[_0xa47aa8(0x172)][_0xa47aa8(0x114)]),void 0x0,!0x1,[]),[_0x121e77,_0x5adaac]=v['useState'](null),[_0xcee3a,_0x1c4cf0]=v[_0xa47aa8(0x118)](u['IDLE']),_0x4c4278=v[_0xa47aa8(0x135)](null);return v[_0xa47aa8(0xe9)](()=>(_0xc3956a&&_0x2f9b01[_0xa47aa8(0x18c)](_0xc3956a[_0xa47aa8(0x15f)]())['then'](_0x283387=>{const _0x1fb5f8=_0xa47aa8;_0x5adaac(_0x283387),_0x4c4278[_0x1fb5f8(0x1a8)]=_0x283387[_0x1fb5f8(0x1a9)][_0x1fb5f8(0x14b)](_0x469212=>{_0x1c4cf0(_0x469212);});}),()=>{const _0x5e01e4=_0xa47aa8;var _0x5edc1f;(_0x5edc1f=_0x4c4278[_0x5e01e4(0x1a8)])==null||_0x5edc1f[_0x5e01e4(0x19b)](),_0x4c4278['current']=null;}),[_0xc3956a,_0x2f9b01]),_0x121e77?l[_0xa47aa8(0xf2)](f[_0xa47aa8(0xf0)],{'align':_0xa47aa8(0x113),'disabled':_0xcee3a===u['OFFLINE'],'className':_0xa47aa8(0xfa),'overlay':l[_0xa47aa8(0xf2)](W,{'status':_0xcee3a,'coordinator':_0x121e77}),'children':l[_0xa47aa8(0xf2)](_0xa47aa8(0x10f),{'className':f[_0xa47aa8(0x159)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xcee3a===u[_0xa47aa8(0xfe)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xcee3a!==u['OFFLINE']}),'type':_0xa47aa8(0x10f),'children':l[_0xa47aa8(0xf2)](R,{'className':_0xa47aa8(0x14a)})})}):null;}function W(_0x5cc4bf){const _0x2c7c14=_0x22f433,{status:_0x37a905,coordinator:_0x37f82d}=_0x5cc4bf;switch(_0x37a905){case u[_0x2c7c14(0x14f)]:return l[_0x2c7c14(0xf2)](G,{'coordinator':_0x37f82d});case u[_0x2c7c14(0x192)]:return l[_0x2c7c14(0xf2)](B,{'coordinator':_0x37f82d});case u[_0x2c7c14(0x1b0)]:return l['jsx'](Y,{'coordinator':_0x37f82d});case u[_0x2c7c14(0xfe)]:return l['jsx'](J,{});case u['PRESENTING']:return l[_0x2c7c14(0xf2)](Z,{'coordinator':_0x37f82d});default:return null;}}function G(_0x59a914){const _0x5c6bdc=_0x22f433,{coordinator:_0x54aab9}=_0x59a914;return l[_0x5c6bdc(0x198)](l[_0x5c6bdc(0x1a1)],{'children':[l['jsx'](_0x5c6bdc(0x156),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5c6bdc(0x12c)}),l[_0x5c6bdc(0xf2)](f[_0x5c6bdc(0x13c)],{'onClick':()=>_0x54aab9[_0x5c6bdc(0xec)](),'children':_0x5c6bdc(0x161)})]});}function B(_0x3aea3d){const _0x4de878=_0x22f433,{coordinator:_0x161c68}=_0x3aea3d;return l[_0x4de878(0x198)](l[_0x4de878(0x1a1)],{'children':[l['jsx'](_0x4de878(0x156),{'className':_0x4de878(0x124),'children':_0x4de878(0xe7)}),l[_0x4de878(0xf2)](f[_0x4de878(0x13c)],{'onClick':()=>_0x161c68[_0x4de878(0x104)](),'children':_0x4de878(0x12e)})]});}function Y(_0x5913c3){const _0x19b9cd=_0x22f433,{coordinator:_0x1e840d}=_0x5913c3;return l['jsxs'](l[_0x19b9cd(0x1a1)],{'children':[l[_0x19b9cd(0xf2)](_0x19b9cd(0x156),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](f[_0x19b9cd(0x13c)],{'variant':_0x19b9cd(0xd5),'onClick':()=>_0x1e840d[_0x19b9cd(0x19e)](),'children':_0x19b9cd(0x133)})]});}function Z(_0x377ca6){const _0x331579=_0x22f433,{coordinator:_0x2358f2}=_0x377ca6;return l['jsxs'](l['Fragment'],{'children':[l[_0x331579(0xf2)]('div',{'className':_0x331579(0x124),'children':_0x331579(0xeb)}),l['jsx'](f[_0x331579(0x13c)],{'variant':_0x331579(0x19d),'onClick':()=>_0x2358f2['stopPresenting'](),'children':_0x331579(0x11f)})]});}function J(){const _0x1ac9d9=_0x22f433;return l[_0x1ac9d9(0xf2)](l['Fragment'],{'children':_0x1ac9d9(0x102)});}var K=Object[_0x22f433(0xff)],z=(_0xcb8d6f,_0x20cc99,_0x48160d,_0x481b01)=>{const _0x56f091=_0x22f433;for(var _0x3cf5be=_0x481b01>0x1?void 0x0:_0x481b01?K(_0x20cc99,_0x48160d):_0x20cc99,_0x41e2fe=_0xcb8d6f[_0x56f091(0x183)]-0x1,_0x505bab;_0x41e2fe>=0x0;_0x41e2fe--)(_0x505bab=_0xcb8d6f[_0x41e2fe])&&(_0x3cf5be=_0x505bab(_0x3cf5be)||_0x3cf5be);return _0x3cf5be;},L=(_0x4af112,_0xb540ee)=>(_0x5405e8,_0x53845b)=>_0xb540ee(_0x5405e8,_0x53845b,_0x4af112);exports[_0x22f433(0x10c)]=class extends o[_0x22f433(0x16d)]{constructor(_0x2cd46b,_0x5a32ad){const _0x352ece=_0x22f433;super(),this[_0x352ece(0x14c)]=_0x2cd46b,this[_0x352ece(0xf6)]=_0x5a32ad,this[_0x352ece(0x134)]();}[_0x22f433(0x134)](){const _0x1f597c=_0x22f433;this[_0x1f597c(0xef)](this[_0x1f597c(0xf6)][_0x1f597c(0x195)](p[_0x1f597c(0x15b)]['HEADER_MENU'],()=>p[_0x1f597c(0x15a)]($,this[_0x1f597c(0x14c)])));}},exports[_0x22f433(0x10c)]=z([L(0x0,o[_0x22f433(0xda)](o[_0x22f433(0x182)])),L(0x1,p['IUIPartsService'])],exports[_0x22f433(0x10c)]);const Q=_0x22f433(0x189),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x1ce0f0,_0x1235b3,_0x3c597a,_0x5a04fc)=>{for(var _0x276eea=_0x5a04fc>0x1?void 0x0:_0x5a04fc?X(_0x1235b3,_0x3c597a):_0x1235b3,_0x2b1683=_0x1ce0f0['length']-0x1,_0x1f5039;_0x2b1683>=0x0;_0x2b1683--)(_0x1f5039=_0x1ce0f0[_0x2b1683])&&(_0x276eea=_0x1f5039(_0x276eea)||_0x276eea);return _0x276eea;},te=(_0x41d586,_0x5c4aeb)=>(_0x165af6,_0xe334e0)=>_0x5c4aeb(_0x165af6,_0xe334e0,_0x41d586);let m=class extends o['Disposable']{constructor(_0x50cd6e){const _0x29a9a1=_0x22f433;super(),this[_0x29a9a1(0x190)]=_0x50cd6e,this['_init']();}[_0x22f433(0x13e)](){const _0xffb099=_0x22f433;[D[_0xffb099(0x180)]['id'],D[_0xffb099(0x188)]['id'],C[_0xffb099(0x13b)]['id']][_0xffb099(0x105)](_0x6adb2b=>{const _0x46c3c2=_0xffb099;this[_0x46c3c2(0xef)](this['_liveShareService']['registerSharedOperation'](_0x6adb2b));});}};m=ee([te(0x0,o[_0x22f433(0xda)](E))],m);var ie=Object[_0x22f433(0xe1)],se=Object['getOwnPropertyDescriptor'],ne=(_0x40fa0b,_0x4b8b69,_0x26c2f3)=>_0x4b8b69 in _0x40fa0b?ie(_0x40fa0b,_0x4b8b69,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26c2f3}):_0x40fa0b[_0x4b8b69]=_0x26c2f3,re=(_0x5a5f65,_0x2d6681,_0x5ae6ec,_0x99bc6e)=>{for(var _0x17700d=_0x99bc6e>0x1?void 0x0:_0x99bc6e?se(_0x2d6681,_0x5ae6ec):_0x2d6681,_0x2c99cd=_0x5a5f65['length']-0x1,_0x11d619;_0x2c99cd>=0x0;_0x2c99cd--)(_0x11d619=_0x5a5f65[_0x2c99cd])&&(_0x17700d=_0x11d619(_0x17700d)||_0x17700d);return _0x17700d;},N=(_0x43f3f8,_0x22fcc5)=>(_0xe9fa5c,_0x44b03e)=>_0x22fcc5(_0xe9fa5c,_0x44b03e,_0x43f3f8),A=(_0x13e566,_0x5d747c,_0x3017d7)=>ne(_0x13e566,typeof _0x5d747c!=_0x22f433(0x10e)?_0x5d747c+'':_0x5d747c,_0x3017d7);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o[_0x22f433(0x176)]{constructor(_0x1759ca=w,_0x4deea6,_0x2e71b5){const _0x3d1323=_0x22f433;super(),this[_0x3d1323(0x16e)]=_0x1759ca,this[_0x3d1323(0x14c)]=_0x4deea6,this[_0x3d1323(0x142)]=_0x2e71b5;const {..._0x106bb5}=o[_0x3d1323(0x149)]({},w,this[_0x3d1323(0x16e)]);this[_0x3d1323(0x142)][_0x3d1323(0x187)](Q,_0x106bb5);}['onStarting'](){const _0x3e6252=_0x22f433;o[_0x3e6252(0x177)](this[_0x3e6252(0x14c)],o[_0x3e6252(0x17f)]([[E],[exports[_0x3e6252(0x150)]],[m],[exports[_0x3e6252(0x10c)]]],this[_0x3e6252(0x16e)]['override'])),o[_0x3e6252(0x1af)](this['_injector'],[[m]]);}['onRendered'](){const _0x155cfb=_0x22f433;o[_0x155cfb(0x1af)](this[_0x155cfb(0x14c)],[[exports[_0x155cfb(0x10c)]]]);}},A(exports[_0x22f433(0x100)],_0x22f433(0x19f),o[_0x22f433(0x172)]['UNIVER_UNKNOWN']),A(exports[_0x22f433(0x100)],_0x22f433(0x1a6),oe),exports[_0x22f433(0x100)]=re([o[_0x22f433(0x130)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x22f433(0xda)](o[_0x22f433(0x182)])),N(0x2,o[_0x22f433(0x197)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=$,exports['LiveShareService']=E,exports[_0x22f433(0x166)]=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
|
-
|
|
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 _0x2ea6be=_0x49cd;(function(_0x58954a,_0x8a898d){const _0x333a9e=_0x49cd,_0x2f8dbb=_0x58954a();while(!![]){try{const _0x13ce3c=parseInt(_0x333a9e(0xcb))/0x1*(-parseInt(_0x333a9e(0xa6))/0x2)+parseInt(_0x333a9e(0x122))/0x3*(parseInt(_0x333a9e(0xc0))/0x4)+-parseInt(_0x333a9e(0xcd))/0x5+-parseInt(_0x333a9e(0x120))/0x6+parseInt(_0x333a9e(0xa9))/0x7*(parseInt(_0x333a9e(0x117))/0x8)+parseInt(_0x333a9e(0xa2))/0x9*(-parseInt(_0x333a9e(0x11d))/0xa)+parseInt(_0x333a9e(0x101))/0xb;if(_0x13ce3c===_0x8a898d)break;else _0x2f8dbb['push'](_0x2f8dbb['shift']());}catch(_0x37dbef){_0x2f8dbb['push'](_0x2f8dbb['shift']());}}}(_0x15fb,0x6155b));var J=Object[_0x2ea6be(0x13a)],K=(_0x2e11b6,_0x28a3df,_0x337b48)=>_0x28a3df in _0x2e11b6?J(_0x2e11b6,_0x28a3df,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x337b48}):_0x2e11b6[_0x28a3df]=_0x337b48,u=(_0x3b053b,_0x202f46,_0x5f44bf)=>K(_0x3b053b,typeof _0x202f46!=_0x2ea6be(0xc3)?_0x202f46+'':_0x202f46,_0x5f44bf);import{Disposable as _0x12c3fa,toDisposable as _0x584876,IUniverInstanceService as _0x3b7b43,Inject as _0x45fbec,Injector as _0x399810,IConfigService as _0x1df196,ICommandService as _0x3baf05,RxDisposable as _0x1dfc47,UniverInstanceType as _0x2e2d5f,DisposableCollection as _0x10d2f7,CommandType as _0x80b771,DependentOn as _0x13786b,Plugin as _0x2ba041,merge as _0x490103,registerDependencies as _0x1521f6,mergeOverrideWithDependencies as _0x22600f,touchDependencies as _0x8311ba}from'@univerjs/core';import{useDependency as _0x9da0e7,useObservable as _0x3c7d62,IUIPartsService as _0x375885,BuiltInUIPart as _0x2d447a,connectInjector as _0x349ec9}from'@univerjs/ui';import{jsx as _0x1bf9fb,jsxs as _0x37edb3,Fragment as _0x3e40e6}from'react/jsx-runtime';function _0x49cd(_0x2c8a31,_0x4a3f47){const _0x15fb22=_0x15fb();return _0x49cd=function(_0x49cd6b,_0xcfad4){_0x49cd6b=_0x49cd6b-0x98;let _0x39c34a=_0x15fb22[_0x49cd6b];return _0x39c34a;},_0x49cd(_0x2c8a31,_0x4a3f47);}import{Dropdown as _0x40b541,clsx as _0x27fdaa,Button as _0x2a847b}from'@univerjs/design';import{useRef as _0x1503e0,createElement as _0x11d6cb,forwardRef as _0x417636,useState as _0x1207e6,useEffect as _0x2cb5e3}from'react';import{CollaborationEvent as _0x42c5fe,parseProtocolChangeset as _0x1346fe}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xbc008d,SessionStatus as _0x1c20d9,UniverCollaborationClientPlugin as _0x3a5e2e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4c5605,SetWorksheetActiveOperation as _0x3a2a1b}from'@univerjs/sheets';import{BehaviorSubject as _0x157a6a,Subject as _0x31dba2}from'rxjs';import{takeUntil as _0x1c8b29,throttleTime as _0x9876f1}from'rxjs/operators';import{SetZoomRatioOperation as _0x1aa70f,SetScrollOperation as _0x315c38}from'@univerjs/sheets-ui';function k({ref:_0x16f73a,..._0x8cdf57}){const _0x295e99=_0x2ea6be,{icon:_0x2cff5b,id:_0xfcee0f,className:_0x4af074,extend:_0x41c0d1,..._0x4bb730}=_0x8cdf57,_0xe13769=(_0x295e99(0xba)+_0xfcee0f+'\x20'+(_0x4af074||''))[_0x295e99(0x12c)](),_0x567818=_0x1503e0('_'+Oe());return G(_0x2cff5b,''+_0xfcee0f,{'defIds':_0x2cff5b['defIds'],'idSuffix':_0x567818[_0x295e99(0x111)]},{'ref':_0x16f73a,'className':_0xe13769,..._0x4bb730},_0x41c0d1);}function G(_0x39c9d5,_0x484751,_0xa2867e,_0x1afee0,_0xfbc5d2){const _0x397b7a=_0x2ea6be;return _0x11d6cb(_0x39c9d5['tag'],{'key':_0x484751,...be(_0x39c9d5,_0xa2867e,_0xfbc5d2),..._0x1afee0},(Ee(_0x39c9d5,_0xa2867e)['children']||[])['map']((_0x1d7125,_0x553b20)=>G(_0x1d7125,_0x484751+'-'+_0x39c9d5[_0x397b7a(0xb5)]+'-'+_0x553b20,_0xa2867e,void 0x0,_0xfbc5d2)));}function be(_0x505488,_0x58a222,_0xbe6184){const _0x4c9f0f=_0x2ea6be,_0x4a84fc={..._0x505488[_0x4c9f0f(0x9b)]};_0xbe6184!=null&&_0xbe6184[_0x4c9f0f(0x115)]&&_0x4a84fc[_0x4c9f0f(0xd2)]===_0x4c9f0f(0x115)&&(_0x4a84fc['fill']=_0xbe6184[_0x4c9f0f(0x115)]),_0x505488[_0x4c9f0f(0xb5)]===_0x4c9f0f(0x9d)&&_0x4a84fc['id']&&(_0x4a84fc['id']=_0x4a84fc['id']+_0x58a222[_0x4c9f0f(0xf9)]),Object['entries'](_0x4a84fc)[_0x4c9f0f(0x118)](([_0x3d9ea5,_0x5b15b0])=>{const _0x4850ae=_0x4c9f0f;_0x3d9ea5===_0x4850ae(0x9d)&&typeof _0x5b15b0=='string'&&(_0x4a84fc[_0x3d9ea5]=_0x5b15b0[_0x4850ae(0x131)](/url\(#(.*)\)/,_0x4850ae(0xe5)+_0x58a222[_0x4850ae(0xf9)]+')'));});const {defIds:_0x1d561a}=_0x58a222;return!_0x1d561a||_0x1d561a['length']===0x0||(_0x505488[_0x4c9f0f(0xb5)]===_0x4c9f0f(0xfd)&&_0x4a84fc[_0x4c9f0f(0xd7)]&&(_0x4a84fc['xlink:href']=_0x4a84fc['xlink:href']+_0x58a222[_0x4c9f0f(0xf9)]),Object[_0x4c9f0f(0x128)](_0x4a84fc)[_0x4c9f0f(0x118)](([_0x4b03e4,_0x2d0de4])=>{const _0x4118e7=_0x4c9f0f;typeof _0x2d0de4==_0x4118e7(0x103)&&(_0x4a84fc[_0x4b03e4]=_0x2d0de4[_0x4118e7(0x131)](/url\(#(.*)\)/,_0x4118e7(0xe5)+_0x58a222[_0x4118e7(0xf9)]+')'));})),_0x4a84fc;}function Ee(_0x28aa11,_0x7d675c){const _0x2bb155=_0x2ea6be;var _0x568ae0;const {defIds:_0x584821}=_0x7d675c;return!_0x584821||_0x584821['length']===0x0?_0x28aa11:_0x28aa11['tag']===_0x2bb155(0x124)&&((_0x568ae0=_0x28aa11[_0x2bb155(0xd1)])!=null&&_0x568ae0['length'])?{..._0x28aa11,'children':_0x28aa11[_0x2bb155(0xd1)][_0x2bb155(0x133)](_0x5131a0=>typeof _0x5131a0[_0x2bb155(0x9b)]['id']==_0x2bb155(0x103)&&_0x584821&&_0x584821[_0x2bb155(0xeb)](_0x5131a0[_0x2bb155(0x9b)]['id'])?{..._0x5131a0,'attrs':{..._0x5131a0['attrs'],'id':_0x5131a0[_0x2bb155(0x9b)]['id']+_0x7d675c[_0x2bb155(0xf9)]}}:_0x5131a0)}:_0x28aa11;}function Oe(){const _0xf612c8=_0x2ea6be;return Math[_0xf612c8(0x104)]()['toString'](0x24)[_0xf612c8(0xee)](0x2,0x8);}k['displayName']=_0x2ea6be(0x12b);const we={'tag':_0x2ea6be(0xc9),'attrs':{'xmlns':_0x2ea6be(0xec),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x2ea6be(0xae),'height':_0x2ea6be(0xae)},'children':[{'tag':_0x2ea6be(0xdc),'attrs':{'fill':_0x2ea6be(0x10b),'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':_0x2ea6be(0xdc),'attrs':{'fill':'currentColor','d':_0x2ea6be(0x116),'fillRule':_0x2ea6be(0xc5),'clipRule':_0x2ea6be(0xc5)}}]},W=_0x417636(function(_0x263c4b,_0x262eaa){const _0x178b76=_0x2ea6be;return _0x11d6cb(k,Object[_0x178b76(0xfa)]({},_0x263c4b,{'id':_0x178b76(0x11b),'ref':_0x262eaa,'icon':we}));});W[_0x2ea6be(0xa4)]=_0x2ea6be(0xb4);class L extends _0x12c3fa{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x2ea6be(0x113)](_0x1e70b4){const _0x4de52b=_0x2ea6be;return this['_sharedOperations'][_0x4de52b(0xab)](_0x1e70b4),_0x584876(()=>this[_0x4de52b(0xa5)]['delete'](_0x1e70b4));}[_0x2ea6be(0x110)](_0x132600){const _0x56ceb6=_0x2ea6be;return this['_reporters'][_0x56ceb6(0xab)](_0x132600),_0x584876(()=>this[_0x56ceb6(0xc2)]['delete'](_0x132600));}[_0x2ea6be(0x12a)](_0x547380){const _0x3c05d2=_0x2ea6be;return this[_0x3c05d2(0xa5)]['has'](_0x547380);}[_0x2ea6be(0xad)](_0x340855){const _0x32fe0f=_0x2ea6be;return Array['from'](this[_0x32fe0f(0xc2)])[_0x32fe0f(0x133)](_0x48b049=>_0x48b049(_0x340855));}}var Ne=Object[_0x2ea6be(0xde)],Y=(_0x8273ec,_0x46a5f6,_0x383a4f,_0xd51d3d)=>{const _0x446ea0=_0x2ea6be;for(var _0x588e2e=_0xd51d3d>0x1?void 0x0:_0xd51d3d?Ne(_0x46a5f6,_0x383a4f):_0x46a5f6,_0x3d7daa=_0x8273ec[_0x446ea0(0x136)]-0x1,_0x16bc18;_0x3d7daa>=0x0;_0x3d7daa--)(_0x16bc18=_0x8273ec[_0x3d7daa])&&(_0x588e2e=_0x16bc18(_0x588e2e)||_0x588e2e);return _0x588e2e;},_=(_0x5cb4c2,_0x23b49f)=>(_0x37d02c,_0x89c3e0)=>_0x23b49f(_0x37d02c,_0x89c3e0,_0x5cb4c2);let S=class extends _0x1dfc47{constructor(_0x522ea0,_0x1ee33b,_0x274366){const _0x29ebfe=_0x2ea6be;super(),u(this,_0x29ebfe(0x119),new Map()),(this[_0x29ebfe(0x107)]=_0x522ea0,this[_0x29ebfe(0x109)]=_0x1ee33b,this[_0x29ebfe(0xf5)]=_0x274366,this[_0x29ebfe(0xa0)]());}async[_0x2ea6be(0xbe)](_0x51e03b){const _0x4dca50=_0x2ea6be;return this['_entities']['has'](_0x51e03b)||await this[_0x4dca50(0x123)](_0x51e03b),this[_0x4dca50(0x119)][_0x4dca50(0x106)](_0x51e03b);}[_0x2ea6be(0x129)](_0x5450b6){var _0x223061;return(_0x223061=this['_entities']['get'](_0x5450b6))!=null?_0x223061:null;}[_0x2ea6be(0xa0)](){const _0x3d460e=_0x2ea6be;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2e2d5f[_0x3d460e(0x114)])[_0x3d460e(0xff)](_0x1c8b29(this[_0x3d460e(0x13d)]))['subscribe'](async _0xd278eb=>{const _0x404d07=_0x3d460e,_0x3a01eb=_0xd278eb[_0x404d07(0x12e)]();this[_0x404d07(0x119)][_0x404d07(0x11f)](_0x3a01eb)||this[_0x404d07(0x123)](_0x3a01eb);}),this[_0x3d460e(0x107)][_0x3d460e(0x100)](_0x2e2d5f[_0x3d460e(0x114)])[_0x3d460e(0xff)](_0x1c8b29(this[_0x3d460e(0x13d)]))['subscribe'](_0x585768=>{const _0x1d9d38=_0x3d460e,_0x5c0c3f=_0x585768[_0x1d9d38(0x12e)](),_0x5e5185=this[_0x1d9d38(0x119)][_0x1d9d38(0x106)](_0x5c0c3f);_0x5e5185==null||_0x5e5185['dispose']();});}async[_0x2ea6be(0x123)](_0x13ed16){const _0x43254b=_0x2ea6be,_0x5ddcc5=await this[_0x43254b(0xf5)][_0x43254b(0xe3)](_0x13ed16),_0x299acd=this[_0x43254b(0x109)]['createInstance'](N,_0x13ed16,_0x5ddcc5);return _0x299acd['init'](),this[_0x43254b(0x119)][_0x43254b(0xa3)](_0x13ed16,_0x299acd),_0x299acd;}};S=Y([_(0x0,_0x3b7b43),_(0x1,_0x45fbec(_0x399810)),_(0x2,_0x45fbec(_0xbc008d))],S);var c=(_0x1833e8=>(_0x1833e8[_0x2ea6be(0xe8)]=_0x2ea6be(0x121),_0x1833e8['IDLE']='idle',_0x1833e8['FOLLOWING']=_0x2ea6be(0xbb),_0x1833e8[_0x2ea6be(0xf2)]=_0x2ea6be(0xf6),_0x1833e8[_0x2ea6be(0xaa)]=_0x2ea6be(0xcf),_0x1833e8))(c||{});const Ce=_0x2ea6be(0xea),De=0xc8;let N=class extends _0x1dfc47{constructor(_0x5c3bbc,_0x216eb0,_0x4c2680,_0x477470,_0x3f6108){const _0x26a6f0=_0x2ea6be;super(),u(this,'_status$',new _0x157a6a(_0x26a6f0(0xe6))),u(this,_0x26a6f0(0x140),this[_0x26a6f0(0xb3)]['asObservable']()),u(this,_0x26a6f0(0xa0),!0x1),u(this,_0x26a6f0(0xe2),null),u(this,'_presenter',null),(this['_unitID']=_0x5c3bbc,this[_0x26a6f0(0xe9)]=_0x216eb0,this[_0x26a6f0(0xd4)]=_0x4c2680,this['_liveShareService']=_0x477470,this[_0x26a6f0(0xcc)]=_0x3f6108);}get[_0x2ea6be(0xb0)](){return this['_status$']['getValue']();}[_0x2ea6be(0xf4)](){const _0x4aaddf=_0x2ea6be;var _0x2e6f29;(_0x2e6f29=this[_0x4aaddf(0xe2)])==null||_0x2e6f29['dispose'](),this[_0x4aaddf(0xb3)][_0x4aaddf(0x13e)](_0x4aaddf(0xe6)),this[_0x4aaddf(0xb3)][_0x4aaddf(0xfb)]();}[_0x2ea6be(0xb6)](){const _0x4db9cc=_0x2ea6be;return this[_0x4db9cc(0xb0)];}[_0x2ea6be(0x137)](){const _0x4aab15=_0x2ea6be;this[_0x4aab15(0xa0)]||(this[_0x4aab15(0xa0)]=!0x0,this[_0x4aab15(0xe9)][_0x4aab15(0x139)][_0x4aab15(0xff)](_0x1c8b29(this[_0x4aab15(0x13d)]))['subscribe'](_0xb92fcb=>{const _0x115ca1=_0x4aab15;switch(_0xb92fcb){case _0x1c20d9[_0x115ca1(0xe8)]:this[_0x115ca1(0xf8)]();break;case _0x1c20d9[_0x115ca1(0xda)]:this[_0x115ca1(0x102)]();break;}}),this['_collabSession'][_0x4aab15(0xe4)][_0x4aab15(0xff)](_0x1c8b29(this[_0x4aab15(0x13d)]))['subscribe'](_0x9fa169=>{const _0x4b0b9d=_0x4aab15,{eventID:_0x34e6b0}=_0x9fa169;switch(_0x34e6b0){case _0x42c5fe['LIVESHARE_NEW_HOST']:this[_0x4b0b9d(0x10c)](_0x9fa169);break;case _0x42c5fe[_0x4b0b9d(0xf1)]:this[_0x4b0b9d(0xdf)](_0x9fa169);break;case _0x42c5fe[_0x4b0b9d(0x13b)]:this[_0x4b0b9d(0xb8)]();break;case _0x42c5fe[_0x4b0b9d(0x141)]:this['_handleNewChangeSets'](_0x9fa169);break;}}));}[_0x2ea6be(0x112)](){const _0x46ad1d=_0x2ea6be;this[_0x46ad1d(0xe9)][_0x46ad1d(0xbc)]({'eventID':_0x42c5fe[_0x46ad1d(0x10f)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x46ad1d(0x9c)]);}[_0x2ea6be(0x10a)](){const _0x212eca=_0x2ea6be;this[_0x212eca(0xb0)]===_0x212eca(0xcf)&&(this[_0x212eca(0xb3)]['next'](_0x212eca(0xe6)),this[_0x212eca(0xe9)][_0x212eca(0xbc)]({'eventID':_0x42c5fe['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x212eca(0x9c)]}},this[_0x212eca(0x9c)]));}[_0x2ea6be(0x9f)](){const _0x5a5a39=_0x2ea6be;this[_0x5a5a39(0xb0)]===_0x5a5a39(0xf6)&&(this[_0x5a5a39(0xb3)][_0x5a5a39(0x13e)](_0x5a5a39(0xbb)),this['_startFollowing']());}[_0x2ea6be(0xfe)](){const _0x3eefc1=_0x2ea6be;this[_0x3eefc1(0xb0)]===_0x3eefc1(0xbb)&&this[_0x3eefc1(0xb1)]();}['_handleNewHost'](_0xc39ef3){const _0xa85448=_0x2ea6be,{presenter:_0x9c3efb}=_0xc39ef3[_0xa85448(0x138)],_0x52d7ea=this['_collabSession'][_0xa85448(0x11e)]();this[_0xa85448(0xe7)]=_0x9c3efb,_0x9c3efb===_0x52d7ea?(this[_0xa85448(0xb1)](),this[_0xa85448(0xf3)]()):this[_0xa85448(0xb0)]!==_0xa85448(0xf6)&&(this[_0xa85448(0xe1)](),this[_0xa85448(0x9e)]());}[_0x2ea6be(0x127)](){const _0x436e6a=_0x2ea6be,_0xed2c31={'eventID':_0x42c5fe['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x436e6a(0xbc)](_0xed2c31,this['_unitID']);}[_0x2ea6be(0xb8)](){const _0x4da68b=_0x2ea6be;this[_0x4da68b(0xe7)]=null,this['_status']!=='presenting'&&this['_beIdle']();}[_0x2ea6be(0xd3)](_0x203295){const _0x97b91=_0x2ea6be;if(this['_status']==='following'&&this[_0x97b91(0xe7)]===_0x203295[_0x97b91(0x138)][_0x97b91(0xc1)]){const _0x4063e0=_0x1346fe(_0x203295[_0x97b91(0x138)])['mutations'][_0x97b91(0xca)]()[_0x97b91(0xef)](_0x23e9b7=>_0x23e9b7['id']===_0x4c5605['id']);if(_0x4063e0){const _0x33d668=_0x4063e0['params'][_0x97b91(0x12f)],_0x1e5c33=_0x4063e0[_0x97b91(0xdd)][_0x97b91(0x108)]['id'];setTimeout(()=>{const _0x531eac=_0x97b91;this[_0x531eac(0xcc)]['executeCommand'](_0x3a2a1b['id'],{'unitId':_0x33d668,'subUnitId':_0x1e5c33},{'fromCollab':!0x0});});}}}[_0x2ea6be(0xf3)](){const _0x324603=_0x2ea6be;this[_0x324603(0xb3)][_0x324603(0x13e)]('presenting');const _0x12d150=new Map(),_0x231160=this[_0x324603(0xe2)]=new _0x10d2f7();_0x231160[_0x324603(0xab)](_0x584876(()=>{const _0x27b589=_0x324603;_0x12d150[_0x27b589(0x118)](_0x55f907=>_0x55f907['complete']()),_0x12d150[_0x27b589(0xbd)]();})),_0x231160[_0x324603(0xab)](this['_commandService'][_0x324603(0xb7)](_0x242adf=>{const _0x2bdd48=_0x324603;var _0x1e769d;if(_0x242adf[_0x2bdd48(0x132)]!==_0x80b771['OPERATION']||!this['_liveShareService'][_0x2bdd48(0x12a)](_0x242adf['id']))return;const {id:_0x333d09}=_0x242adf;let _0x5b7b51;_0x12d150['has'](_0x333d09)?_0x5b7b51=_0x12d150['get'](_0x333d09):(_0x5b7b51=new _0x31dba2(),_0x12d150[_0x2bdd48(0xa3)](_0x333d09,_0x5b7b51),_0x5b7b51[_0x2bdd48(0xff)](_0x9876f1((_0x1e769d=this[_0x2bdd48(0xd4)]['getConfig'](Ce))!=null?_0x1e769d:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2bdd48(0x135)](_0x380db4=>{const _0x1acc1a=_0x2bdd48;this[_0x1acc1a(0xe9)][_0x1acc1a(0xbc)]({'eventID':_0x42c5fe['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1acc1a(0x9c)],'operations':{[_0x380db4['id']]:{'id':_0x380db4['id'],'params':JSON[_0x1acc1a(0xa8)](_0x380db4[_0x1acc1a(0xdd)])}}}},this[_0x1acc1a(0x9c)]);})),_0x5b7b51[_0x2bdd48(0x13e)](_0x242adf);})),this[_0x324603(0x10e)]['getInitialStates'](this[_0x324603(0x9c)])[_0x324603(0x118)](_0x551f18=>this[_0x324603(0xe9)][_0x324603(0xbc)]({'eventID':_0x42c5fe[_0x324603(0xf1)],'data':{'unitID':this[_0x324603(0x9c)],'operations':{[_0x551f18['id']]:{'id':_0x551f18['id'],'params':JSON['stringify'](_0x551f18['params'])}}}},this[_0x324603(0x9c)]));}[_0x2ea6be(0xe1)](){const _0x159538=_0x2ea6be;var _0x95769f;this[_0x159538(0xb3)][_0x159538(0x13e)](_0x159538(0xe6)),(_0x95769f=this['_commandDisposable'])==null||_0x95769f[_0x159538(0xf4)](),this[_0x159538(0xe2)]=null;}[_0x2ea6be(0x9e)](){const _0x3f1848=_0x2ea6be;var _0x4ab9e8;(_0x4ab9e8=this['_commandDisposable'])==null||_0x4ab9e8[_0x3f1848(0xf4)](),this['_status$'][_0x3f1848(0x13e)]('following');}[_0x2ea6be(0xc4)](){const _0x362e96=_0x2ea6be;var _0x31b924;this[_0x362e96(0xb3)][_0x362e96(0x13e)](_0x362e96(0xe6)),(_0x31b924=this[_0x362e96(0xe2)])==null||_0x31b924[_0x362e96(0xf4)](),this[_0x362e96(0xe2)]=null;}[_0x2ea6be(0xb1)](){const _0x2f60ff=_0x2ea6be;var _0x457dfd;this[_0x2f60ff(0xb3)][_0x2f60ff(0x13e)](_0x2f60ff(0xf6)),(_0x457dfd=this[_0x2f60ff(0xe2)])==null||_0x457dfd[_0x2f60ff(0xf4)]();}[_0x2ea6be(0xdf)](_0x4a1487){const _0x307e8e=_0x2ea6be;if([_0x307e8e(0xcf),'not-following',_0x307e8e(0x121)]['includes'](this[_0x307e8e(0xb0)])||!_0x4a1487[_0x307e8e(0x138)][_0x307e8e(0xb2)]||_0x4a1487[_0x307e8e(0x138)][_0x307e8e(0xb2)]===this[_0x307e8e(0xe9)]['getMemberID']())return;this['_status']===_0x307e8e(0xe6)&&this['_startFollowing']();const _0x325b4e=_0x4a1487[_0x307e8e(0x138)]['operations'];Object['values'](_0x325b4e)['forEach'](_0x27b723=>{const _0x7d2969=_0x307e8e;this[_0x7d2969(0xcc)][_0x7d2969(0xf0)](_0x27b723['id'],_0x27b723[_0x7d2969(0xdd)]?JSON[_0x7d2969(0xbf)](_0x27b723['params']):null,{'fromCollab':!0x0});});}[_0x2ea6be(0xf8)](){const _0x290b65=_0x2ea6be;var _0x20b23f;this[_0x290b65(0xb3)][_0x290b65(0x13e)]('offline'),(_0x20b23f=this[_0x290b65(0xe2)])==null||_0x20b23f[_0x290b65(0xf4)]();}[_0x2ea6be(0x102)](){const _0x5dc008=_0x2ea6be;this['_status$']['next']('idle'),this[_0x5dc008(0x127)]();}};N=Y([_(0x2,_0x1df196),_(0x3,_0x45fbec(L)),_(0x4,_0x3baf05)],N);function Le(){const _0x4770be=_0x2ea6be,_0x5b4dcf=_0x9da0e7(S),_0x2badab=_0x9da0e7(_0x3b7b43),_0x27b375=_0x3c7d62(()=>_0x2badab[_0x4770be(0xc6)](_0x2e2d5f[_0x4770be(0x114)]),void 0x0,!0x1,[]),[_0x1c7c73,_0x473b16]=_0x1207e6(null),[_0x1f3eee,_0x5ee717]=_0x1207e6(c[_0x4770be(0x99)]),_0x29264c=_0x1503e0(null);return _0x2cb5e3(()=>(_0x27b375&&_0x5b4dcf[_0x4770be(0xbe)](_0x27b375[_0x4770be(0x12e)]())[_0x4770be(0xb9)](_0x3e3bcc=>{const _0x369495=_0x4770be;_0x473b16(_0x3e3bcc),_0x29264c[_0x369495(0x111)]=_0x3e3bcc[_0x369495(0x140)]['subscribe'](_0x47d4bd=>{_0x5ee717(_0x47d4bd);});}),()=>{const _0x5edb92=_0x4770be;var _0x253e9f;(_0x253e9f=_0x29264c[_0x5edb92(0x111)])==null||_0x253e9f[_0x5edb92(0x10d)](),_0x29264c[_0x5edb92(0x111)]=null;}),[_0x27b375,_0x5b4dcf]),_0x1c7c73?_0x1bf9fb(_0x40b541,{'align':_0x4770be(0xe0),'disabled':_0x1f3eee===c['OFFLINE'],'className':_0x4770be(0xc7),'overlay':_0x1bf9fb(Re,{'status':_0x1f3eee,'coordinator':_0x1c7c73}),'children':_0x1bf9fb(_0x4770be(0xd8),{'className':_0x27fdaa(_0x4770be(0xac),{'univer-cursor-not-allowed':_0x1f3eee===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1f3eee!==c['OFFLINE']}),'type':_0x4770be(0xd8),'children':_0x1bf9fb(W,{'className':_0x4770be(0x130)})})}):null;}function Re(_0x3d886a){const _0x4b417e=_0x2ea6be,{status:_0x2bb387,coordinator:_0x3a1940}=_0x3d886a;switch(_0x2bb387){case c['IDLE']:return _0x1bf9fb($e,{'coordinator':_0x3a1940});case c[_0x4b417e(0x126)]:return _0x1bf9fb(xe,{'coordinator':_0x3a1940});case c[_0x4b417e(0xf2)]:return _0x1bf9fb(Pe,{'coordinator':_0x3a1940});case c[_0x4b417e(0xe8)]:return _0x1bf9fb(Te,{});case c[_0x4b417e(0xaa)]:return _0x1bf9fb(Ae,{'coordinator':_0x3a1940});default:return null;}}function $e(_0x5cab16){const _0x3bd49c=_0x2ea6be,{coordinator:_0x27f362}=_0x5cab16;return _0x37edb3(_0x3e40e6,{'children':[_0x1bf9fb(_0x3bd49c(0xdb),{'className':_0x3bd49c(0xf7),'children':_0x3bd49c(0x11c)}),_0x1bf9fb(_0x2a847b,{'onClick':()=>_0x27f362[_0x3bd49c(0x112)](),'children':_0x3bd49c(0x13f)})]});}function xe(_0x3c6765){const _0x4d985e=_0x2ea6be,{coordinator:_0x247d83}=_0x3c6765;return _0x37edb3(_0x3e40e6,{'children':[_0x1bf9fb(_0x4d985e(0xdb),{'className':_0x4d985e(0xf7),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x1bf9fb(_0x2a847b,{'onClick':()=>_0x247d83[_0x4d985e(0xfe)](),'children':_0x4d985e(0x13c)})]});}function Pe(_0x3e681a){const _0x285e8d=_0x2ea6be,{coordinator:_0x56c699}=_0x3e681a;return _0x37edb3(_0x3e40e6,{'children':[_0x1bf9fb(_0x285e8d(0xdb),{'className':_0x285e8d(0xf7),'children':_0x285e8d(0x125)}),_0x1bf9fb(_0x2a847b,{'variant':_0x285e8d(0xfc),'onClick':()=>_0x56c699['startFollowing'](),'children':_0x285e8d(0x105)})]});}function Ae(_0x27321f){const _0x30112f=_0x2ea6be,{coordinator:_0x25a605}=_0x27321f;return _0x37edb3(_0x3e40e6,{'children':[_0x1bf9fb('div',{'className':_0x30112f(0xf7),'children':_0x30112f(0xd5)}),_0x1bf9fb(_0x2a847b,{'variant':_0x30112f(0xd9),'onClick':()=>_0x25a605[_0x30112f(0x10a)](),'children':_0x30112f(0xa1)})]});}function Te(){return _0x1bf9fb(_0x3e40e6,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x2ea6be(0xde)],He=(_0x53a062,_0x5bf32b,_0x154013,_0x39bf97)=>{const _0x45f702=_0x2ea6be;for(var _0x42ddd3=_0x39bf97>0x1?void 0x0:_0x39bf97?Fe(_0x5bf32b,_0x154013):_0x5bf32b,_0x564a7a=_0x53a062[_0x45f702(0x136)]-0x1,_0x419558;_0x564a7a>=0x0;_0x564a7a--)(_0x419558=_0x53a062[_0x564a7a])&&(_0x42ddd3=_0x419558(_0x42ddd3)||_0x42ddd3);return _0x42ddd3;},A=(_0x3afd40,_0x39a568)=>(_0x141ea2,_0x29c96d)=>_0x39a568(_0x141ea2,_0x29c96d,_0x3afd40);let m=class extends _0x12c3fa{constructor(_0x4d6183,_0x363a8c){const _0xb45106=_0x2ea6be;super(),this[_0xb45106(0x109)]=_0x4d6183,this[_0xb45106(0xaf)]=_0x363a8c,this[_0xb45106(0x9a)]();}[_0x2ea6be(0x9a)](){const _0x4074f4=_0x2ea6be;this[_0x4074f4(0xa7)](this['_uiPartsService'][_0x4074f4(0x12d)](_0x2d447a['HEADER_MENU'],()=>_0x349ec9(Le,this[_0x4074f4(0x109)])));}};m=He([A(0x0,_0x45fbec(_0x399810)),A(0x1,_0x375885)],m);const ye=_0x2ea6be(0x98),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x289b16,_0x1b30b5,_0x2cac26,_0x29c1b8)=>{const _0x33c829=_0x2ea6be;for(var _0x7d1f05=_0x29c1b8>0x1?void 0x0:_0x29c1b8?Ue(_0x1b30b5,_0x2cac26):_0x1b30b5,_0x45b4bb=_0x289b16[_0x33c829(0x136)]-0x1,_0x311503;_0x45b4bb>=0x0;_0x45b4bb--)(_0x311503=_0x289b16[_0x45b4bb])&&(_0x7d1f05=_0x311503(_0x7d1f05)||_0x7d1f05);return _0x7d1f05;},je=(_0x1648aa,_0xe26d33)=>(_0x8cc354,_0x1e2640)=>_0xe26d33(_0x8cc354,_0x1e2640,_0x1648aa);let I=class extends _0x12c3fa{constructor(_0x232ffa){super(),this['_liveShareService']=_0x232ffa,this['_init']();}[_0x2ea6be(0xa0)](){const _0x3eb71f=_0x2ea6be;[_0x1aa70f['id'],_0x315c38['id'],_0x3a2a1b['id']][_0x3eb71f(0x118)](_0x1a730c=>{const _0x13e5ae=_0x3eb71f;this['disposeWithMe'](this[_0x13e5ae(0x10e)][_0x13e5ae(0x113)](_0x1a730c));});}};function _0x15fb(){const _0x426be7=['7430UkTDHW','getMemberID','has','2259186wyYFcL','offline','1211043mOKWXS','_startLiveShareCoordinator','defs','You\x27re\x20not\x20following\x20the\x20presenter','FOLLOWING','_fetchOperations','entries','getLiveShareCoordinatorSync','shouldShareOperation','UniverIcon','trim','registerComponent','getUnitId','unitId','univer-size-4','replace','type','map','onStarting','subscribe','length','init','data','sessionStatus$','defineProperty','LIVESHARE_TERMINATE','Stop\x20following','dispose$','next','Start','status$','NEW_CHANGESETS','live-share.config','IDLE','_mountLiveShare','attrs','_unitID','mask','_startFollowing','startFollowing','_init','Stop\x20presenting','5346aMKmRG','set','displayName','_sharedOperations','2JWtRNv','disposeWithMe','stringify','7EpPDJM','PRESENTING','add','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getInitialStates','1em','_uiPartsService','_status','_stopFollowing','presenter','_status$','LiveShareIcon','tag','getStatus','onCommandExecuted','_handleTerminate','then','univerjs-icon\x20univerjs-icon-','following','send','clear','getLiveShareCoordinator','parse','4jNVfMc','memberID','_reporters','symbol','_beIdle','evenodd','getCurrentTypeOfUnit$','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','UNIVER_UNKNOWN','svg','reverse','178501Yyhydf','_commandService','3224755avPCfs','override','presenting','_config','children','fill','_handleNewChangeSets','_configService','You\x27re\x20presenting\x20the\x20document','pluginName','xlink:href','button','default','ONLINE','div','path','params','getOwnPropertyDescriptor','_handleOperation','end','_stopPresenting','_commandDisposable','requireSession','event$','url(#$1','idle','_presenter','OFFLINE','_collabSession','SAME_OPERATION_SHARE_INTERVAL','includes','http://www.w3.org/2000/svg','setConfig','substring','find','executeCommand','LIVESHARE_OPERATION','NOT_FOLLOWING','_startPresenting','dispose','_collabSessionService','not-following','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOffline','idSuffix','assign','complete','text','use','stopFollowing','pipe','getTypeOfUnitDisposed$','12873773OtAkzH','_handleOnline','string','random','Start\x20following','get','_univerInstanceService','sheet','_injector','stopPresenting','currentColor','_handleNewHost','unsubscribe','_liveShareService','LIVESHARE_REQUEST_HOST','registerInitialStateReporter','current','tryStartPresenting','registerSharedOperation','UNIVER_SHEET','colorChannel1','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','3727872uHVkbR','forEach','_entities','onRendered','live-share-icon','Present\x20this\x20document'];_0x15fb=function(){return _0x426be7;};return _0x15fb();}I=Ve([je(0x0,_0x45fbec(L))],I);var Me=Object[_0x2ea6be(0x13a)],ke=Object[_0x2ea6be(0xde)],Ge=(_0x46ec87,_0x43ca8b,_0x3b1ed3)=>_0x43ca8b in _0x46ec87?Me(_0x46ec87,_0x43ca8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b1ed3}):_0x46ec87[_0x43ca8b]=_0x3b1ed3,We=(_0x532e34,_0x1f4d85,_0x4b5236,_0x2ba5d2)=>{for(var _0x15180d=_0x2ba5d2>0x1?void 0x0:_0x2ba5d2?ke(_0x1f4d85,_0x4b5236):_0x1f4d85,_0x352f29=_0x532e34['length']-0x1,_0x65a1e1;_0x352f29>=0x0;_0x352f29--)(_0x65a1e1=_0x532e34[_0x352f29])&&(_0x15180d=_0x65a1e1(_0x15180d)||_0x15180d);return _0x15180d;},F=(_0x393b3c,_0x5786a0)=>(_0x3a27d7,_0x2ce6b8)=>_0x5786a0(_0x3a27d7,_0x2ce6b8,_0x393b3c),B=(_0x573482,_0x529298,_0x3cf523)=>Ge(_0x573482,typeof _0x529298!=_0x2ea6be(0xc3)?_0x529298+'':_0x529298,_0x3cf523);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x2ba041{constructor(_0x5c865e=T,_0x21a6b4,_0x164fbb){const _0x5b82be=_0x2ea6be;super(),this[_0x5b82be(0xd0)]=_0x5c865e,this[_0x5b82be(0x109)]=_0x21a6b4,this['_configService']=_0x164fbb;const {..._0x2e041b}=_0x490103({},T,this[_0x5b82be(0xd0)]);this['_configService'][_0x5b82be(0xed)](ye,_0x2e041b);}[_0x2ea6be(0x134)](){const _0x536023=_0x2ea6be;_0x1521f6(this[_0x536023(0x109)],_0x22600f([[L],[S],[I],[m]],this[_0x536023(0xd0)][_0x536023(0xce)])),_0x8311ba(this[_0x536023(0x109)],[[I]]);}[_0x2ea6be(0x11a)](){_0x8311ba(this['_injector'],[[m]]);}};B(b,'type',_0x2e2d5f[_0x2ea6be(0xc8)]),B(b,_0x2ea6be(0xd6),Ye),b=We([_0x13786b(_0x3a5e2e),F(0x1,_0x45fbec(_0x399810)),F(0x2,_0x1df196)],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
|
-
|
|
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 _0x2ea6be=_0x49cd;(function(_0x58954a,_0x8a898d){const _0x333a9e=_0x49cd,_0x2f8dbb=_0x58954a();while(!![]){try{const _0x13ce3c=parseInt(_0x333a9e(0xcb))/0x1*(-parseInt(_0x333a9e(0xa6))/0x2)+parseInt(_0x333a9e(0x122))/0x3*(parseInt(_0x333a9e(0xc0))/0x4)+-parseInt(_0x333a9e(0xcd))/0x5+-parseInt(_0x333a9e(0x120))/0x6+parseInt(_0x333a9e(0xa9))/0x7*(parseInt(_0x333a9e(0x117))/0x8)+parseInt(_0x333a9e(0xa2))/0x9*(-parseInt(_0x333a9e(0x11d))/0xa)+parseInt(_0x333a9e(0x101))/0xb;if(_0x13ce3c===_0x8a898d)break;else _0x2f8dbb['push'](_0x2f8dbb['shift']());}catch(_0x37dbef){_0x2f8dbb['push'](_0x2f8dbb['shift']());}}}(_0x15fb,0x6155b));var J=Object[_0x2ea6be(0x13a)],K=(_0x2e11b6,_0x28a3df,_0x337b48)=>_0x28a3df in _0x2e11b6?J(_0x2e11b6,_0x28a3df,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x337b48}):_0x2e11b6[_0x28a3df]=_0x337b48,u=(_0x3b053b,_0x202f46,_0x5f44bf)=>K(_0x3b053b,typeof _0x202f46!=_0x2ea6be(0xc3)?_0x202f46+'':_0x202f46,_0x5f44bf);import{Disposable as _0x12c3fa,toDisposable as _0x584876,IUniverInstanceService as _0x3b7b43,Inject as _0x45fbec,Injector as _0x399810,IConfigService as _0x1df196,ICommandService as _0x3baf05,RxDisposable as _0x1dfc47,UniverInstanceType as _0x2e2d5f,DisposableCollection as _0x10d2f7,CommandType as _0x80b771,DependentOn as _0x13786b,Plugin as _0x2ba041,merge as _0x490103,registerDependencies as _0x1521f6,mergeOverrideWithDependencies as _0x22600f,touchDependencies as _0x8311ba}from'@univerjs/core';import{useDependency as _0x9da0e7,useObservable as _0x3c7d62,IUIPartsService as _0x375885,BuiltInUIPart as _0x2d447a,connectInjector as _0x349ec9}from'@univerjs/ui';import{jsx as _0x1bf9fb,jsxs as _0x37edb3,Fragment as _0x3e40e6}from'react/jsx-runtime';function _0x49cd(_0x2c8a31,_0x4a3f47){const _0x15fb22=_0x15fb();return _0x49cd=function(_0x49cd6b,_0xcfad4){_0x49cd6b=_0x49cd6b-0x98;let _0x39c34a=_0x15fb22[_0x49cd6b];return _0x39c34a;},_0x49cd(_0x2c8a31,_0x4a3f47);}import{Dropdown as _0x40b541,clsx as _0x27fdaa,Button as _0x2a847b}from'@univerjs/design';import{useRef as _0x1503e0,createElement as _0x11d6cb,forwardRef as _0x417636,useState as _0x1207e6,useEffect as _0x2cb5e3}from'react';import{CollaborationEvent as _0x42c5fe,parseProtocolChangeset as _0x1346fe}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xbc008d,SessionStatus as _0x1c20d9,UniverCollaborationClientPlugin as _0x3a5e2e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4c5605,SetWorksheetActiveOperation as _0x3a2a1b}from'@univerjs/sheets';import{BehaviorSubject as _0x157a6a,Subject as _0x31dba2}from'rxjs';import{takeUntil as _0x1c8b29,throttleTime as _0x9876f1}from'rxjs/operators';import{SetZoomRatioOperation as _0x1aa70f,SetScrollOperation as _0x315c38}from'@univerjs/sheets-ui';function k({ref:_0x16f73a,..._0x8cdf57}){const _0x295e99=_0x2ea6be,{icon:_0x2cff5b,id:_0xfcee0f,className:_0x4af074,extend:_0x41c0d1,..._0x4bb730}=_0x8cdf57,_0xe13769=(_0x295e99(0xba)+_0xfcee0f+'\x20'+(_0x4af074||''))[_0x295e99(0x12c)](),_0x567818=_0x1503e0('_'+Oe());return G(_0x2cff5b,''+_0xfcee0f,{'defIds':_0x2cff5b['defIds'],'idSuffix':_0x567818[_0x295e99(0x111)]},{'ref':_0x16f73a,'className':_0xe13769,..._0x4bb730},_0x41c0d1);}function G(_0x39c9d5,_0x484751,_0xa2867e,_0x1afee0,_0xfbc5d2){const _0x397b7a=_0x2ea6be;return _0x11d6cb(_0x39c9d5['tag'],{'key':_0x484751,...be(_0x39c9d5,_0xa2867e,_0xfbc5d2),..._0x1afee0},(Ee(_0x39c9d5,_0xa2867e)['children']||[])['map']((_0x1d7125,_0x553b20)=>G(_0x1d7125,_0x484751+'-'+_0x39c9d5[_0x397b7a(0xb5)]+'-'+_0x553b20,_0xa2867e,void 0x0,_0xfbc5d2)));}function be(_0x505488,_0x58a222,_0xbe6184){const _0x4c9f0f=_0x2ea6be,_0x4a84fc={..._0x505488[_0x4c9f0f(0x9b)]};_0xbe6184!=null&&_0xbe6184[_0x4c9f0f(0x115)]&&_0x4a84fc[_0x4c9f0f(0xd2)]===_0x4c9f0f(0x115)&&(_0x4a84fc['fill']=_0xbe6184[_0x4c9f0f(0x115)]),_0x505488[_0x4c9f0f(0xb5)]===_0x4c9f0f(0x9d)&&_0x4a84fc['id']&&(_0x4a84fc['id']=_0x4a84fc['id']+_0x58a222[_0x4c9f0f(0xf9)]),Object['entries'](_0x4a84fc)[_0x4c9f0f(0x118)](([_0x3d9ea5,_0x5b15b0])=>{const _0x4850ae=_0x4c9f0f;_0x3d9ea5===_0x4850ae(0x9d)&&typeof _0x5b15b0=='string'&&(_0x4a84fc[_0x3d9ea5]=_0x5b15b0[_0x4850ae(0x131)](/url\(#(.*)\)/,_0x4850ae(0xe5)+_0x58a222[_0x4850ae(0xf9)]+')'));});const {defIds:_0x1d561a}=_0x58a222;return!_0x1d561a||_0x1d561a['length']===0x0||(_0x505488[_0x4c9f0f(0xb5)]===_0x4c9f0f(0xfd)&&_0x4a84fc[_0x4c9f0f(0xd7)]&&(_0x4a84fc['xlink:href']=_0x4a84fc['xlink:href']+_0x58a222[_0x4c9f0f(0xf9)]),Object[_0x4c9f0f(0x128)](_0x4a84fc)[_0x4c9f0f(0x118)](([_0x4b03e4,_0x2d0de4])=>{const _0x4118e7=_0x4c9f0f;typeof _0x2d0de4==_0x4118e7(0x103)&&(_0x4a84fc[_0x4b03e4]=_0x2d0de4[_0x4118e7(0x131)](/url\(#(.*)\)/,_0x4118e7(0xe5)+_0x58a222[_0x4118e7(0xf9)]+')'));})),_0x4a84fc;}function Ee(_0x28aa11,_0x7d675c){const _0x2bb155=_0x2ea6be;var _0x568ae0;const {defIds:_0x584821}=_0x7d675c;return!_0x584821||_0x584821['length']===0x0?_0x28aa11:_0x28aa11['tag']===_0x2bb155(0x124)&&((_0x568ae0=_0x28aa11[_0x2bb155(0xd1)])!=null&&_0x568ae0['length'])?{..._0x28aa11,'children':_0x28aa11[_0x2bb155(0xd1)][_0x2bb155(0x133)](_0x5131a0=>typeof _0x5131a0[_0x2bb155(0x9b)]['id']==_0x2bb155(0x103)&&_0x584821&&_0x584821[_0x2bb155(0xeb)](_0x5131a0[_0x2bb155(0x9b)]['id'])?{..._0x5131a0,'attrs':{..._0x5131a0['attrs'],'id':_0x5131a0[_0x2bb155(0x9b)]['id']+_0x7d675c[_0x2bb155(0xf9)]}}:_0x5131a0)}:_0x28aa11;}function Oe(){const _0xf612c8=_0x2ea6be;return Math[_0xf612c8(0x104)]()['toString'](0x24)[_0xf612c8(0xee)](0x2,0x8);}k['displayName']=_0x2ea6be(0x12b);const we={'tag':_0x2ea6be(0xc9),'attrs':{'xmlns':_0x2ea6be(0xec),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x2ea6be(0xae),'height':_0x2ea6be(0xae)},'children':[{'tag':_0x2ea6be(0xdc),'attrs':{'fill':_0x2ea6be(0x10b),'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':_0x2ea6be(0xdc),'attrs':{'fill':'currentColor','d':_0x2ea6be(0x116),'fillRule':_0x2ea6be(0xc5),'clipRule':_0x2ea6be(0xc5)}}]},W=_0x417636(function(_0x263c4b,_0x262eaa){const _0x178b76=_0x2ea6be;return _0x11d6cb(k,Object[_0x178b76(0xfa)]({},_0x263c4b,{'id':_0x178b76(0x11b),'ref':_0x262eaa,'icon':we}));});W[_0x2ea6be(0xa4)]=_0x2ea6be(0xb4);class L extends _0x12c3fa{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x2ea6be(0x113)](_0x1e70b4){const _0x4de52b=_0x2ea6be;return this['_sharedOperations'][_0x4de52b(0xab)](_0x1e70b4),_0x584876(()=>this[_0x4de52b(0xa5)]['delete'](_0x1e70b4));}[_0x2ea6be(0x110)](_0x132600){const _0x56ceb6=_0x2ea6be;return this['_reporters'][_0x56ceb6(0xab)](_0x132600),_0x584876(()=>this[_0x56ceb6(0xc2)]['delete'](_0x132600));}[_0x2ea6be(0x12a)](_0x547380){const _0x3c05d2=_0x2ea6be;return this[_0x3c05d2(0xa5)]['has'](_0x547380);}[_0x2ea6be(0xad)](_0x340855){const _0x32fe0f=_0x2ea6be;return Array['from'](this[_0x32fe0f(0xc2)])[_0x32fe0f(0x133)](_0x48b049=>_0x48b049(_0x340855));}}var Ne=Object[_0x2ea6be(0xde)],Y=(_0x8273ec,_0x46a5f6,_0x383a4f,_0xd51d3d)=>{const _0x446ea0=_0x2ea6be;for(var _0x588e2e=_0xd51d3d>0x1?void 0x0:_0xd51d3d?Ne(_0x46a5f6,_0x383a4f):_0x46a5f6,_0x3d7daa=_0x8273ec[_0x446ea0(0x136)]-0x1,_0x16bc18;_0x3d7daa>=0x0;_0x3d7daa--)(_0x16bc18=_0x8273ec[_0x3d7daa])&&(_0x588e2e=_0x16bc18(_0x588e2e)||_0x588e2e);return _0x588e2e;},_=(_0x5cb4c2,_0x23b49f)=>(_0x37d02c,_0x89c3e0)=>_0x23b49f(_0x37d02c,_0x89c3e0,_0x5cb4c2);let S=class extends _0x1dfc47{constructor(_0x522ea0,_0x1ee33b,_0x274366){const _0x29ebfe=_0x2ea6be;super(),u(this,_0x29ebfe(0x119),new Map()),(this[_0x29ebfe(0x107)]=_0x522ea0,this[_0x29ebfe(0x109)]=_0x1ee33b,this[_0x29ebfe(0xf5)]=_0x274366,this[_0x29ebfe(0xa0)]());}async[_0x2ea6be(0xbe)](_0x51e03b){const _0x4dca50=_0x2ea6be;return this['_entities']['has'](_0x51e03b)||await this[_0x4dca50(0x123)](_0x51e03b),this[_0x4dca50(0x119)][_0x4dca50(0x106)](_0x51e03b);}[_0x2ea6be(0x129)](_0x5450b6){var _0x223061;return(_0x223061=this['_entities']['get'](_0x5450b6))!=null?_0x223061:null;}[_0x2ea6be(0xa0)](){const _0x3d460e=_0x2ea6be;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2e2d5f[_0x3d460e(0x114)])[_0x3d460e(0xff)](_0x1c8b29(this[_0x3d460e(0x13d)]))['subscribe'](async _0xd278eb=>{const _0x404d07=_0x3d460e,_0x3a01eb=_0xd278eb[_0x404d07(0x12e)]();this[_0x404d07(0x119)][_0x404d07(0x11f)](_0x3a01eb)||this[_0x404d07(0x123)](_0x3a01eb);}),this[_0x3d460e(0x107)][_0x3d460e(0x100)](_0x2e2d5f[_0x3d460e(0x114)])[_0x3d460e(0xff)](_0x1c8b29(this[_0x3d460e(0x13d)]))['subscribe'](_0x585768=>{const _0x1d9d38=_0x3d460e,_0x5c0c3f=_0x585768[_0x1d9d38(0x12e)](),_0x5e5185=this[_0x1d9d38(0x119)][_0x1d9d38(0x106)](_0x5c0c3f);_0x5e5185==null||_0x5e5185['dispose']();});}async[_0x2ea6be(0x123)](_0x13ed16){const _0x43254b=_0x2ea6be,_0x5ddcc5=await this[_0x43254b(0xf5)][_0x43254b(0xe3)](_0x13ed16),_0x299acd=this[_0x43254b(0x109)]['createInstance'](N,_0x13ed16,_0x5ddcc5);return _0x299acd['init'](),this[_0x43254b(0x119)][_0x43254b(0xa3)](_0x13ed16,_0x299acd),_0x299acd;}};S=Y([_(0x0,_0x3b7b43),_(0x1,_0x45fbec(_0x399810)),_(0x2,_0x45fbec(_0xbc008d))],S);var c=(_0x1833e8=>(_0x1833e8[_0x2ea6be(0xe8)]=_0x2ea6be(0x121),_0x1833e8['IDLE']='idle',_0x1833e8['FOLLOWING']=_0x2ea6be(0xbb),_0x1833e8[_0x2ea6be(0xf2)]=_0x2ea6be(0xf6),_0x1833e8[_0x2ea6be(0xaa)]=_0x2ea6be(0xcf),_0x1833e8))(c||{});const Ce=_0x2ea6be(0xea),De=0xc8;let N=class extends _0x1dfc47{constructor(_0x5c3bbc,_0x216eb0,_0x4c2680,_0x477470,_0x3f6108){const _0x26a6f0=_0x2ea6be;super(),u(this,'_status$',new _0x157a6a(_0x26a6f0(0xe6))),u(this,_0x26a6f0(0x140),this[_0x26a6f0(0xb3)]['asObservable']()),u(this,_0x26a6f0(0xa0),!0x1),u(this,_0x26a6f0(0xe2),null),u(this,'_presenter',null),(this['_unitID']=_0x5c3bbc,this[_0x26a6f0(0xe9)]=_0x216eb0,this[_0x26a6f0(0xd4)]=_0x4c2680,this['_liveShareService']=_0x477470,this[_0x26a6f0(0xcc)]=_0x3f6108);}get[_0x2ea6be(0xb0)](){return this['_status$']['getValue']();}[_0x2ea6be(0xf4)](){const _0x4aaddf=_0x2ea6be;var _0x2e6f29;(_0x2e6f29=this[_0x4aaddf(0xe2)])==null||_0x2e6f29['dispose'](),this[_0x4aaddf(0xb3)][_0x4aaddf(0x13e)](_0x4aaddf(0xe6)),this[_0x4aaddf(0xb3)][_0x4aaddf(0xfb)]();}[_0x2ea6be(0xb6)](){const _0x4db9cc=_0x2ea6be;return this[_0x4db9cc(0xb0)];}[_0x2ea6be(0x137)](){const _0x4aab15=_0x2ea6be;this[_0x4aab15(0xa0)]||(this[_0x4aab15(0xa0)]=!0x0,this[_0x4aab15(0xe9)][_0x4aab15(0x139)][_0x4aab15(0xff)](_0x1c8b29(this[_0x4aab15(0x13d)]))['subscribe'](_0xb92fcb=>{const _0x115ca1=_0x4aab15;switch(_0xb92fcb){case _0x1c20d9[_0x115ca1(0xe8)]:this[_0x115ca1(0xf8)]();break;case _0x1c20d9[_0x115ca1(0xda)]:this[_0x115ca1(0x102)]();break;}}),this['_collabSession'][_0x4aab15(0xe4)][_0x4aab15(0xff)](_0x1c8b29(this[_0x4aab15(0x13d)]))['subscribe'](_0x9fa169=>{const _0x4b0b9d=_0x4aab15,{eventID:_0x34e6b0}=_0x9fa169;switch(_0x34e6b0){case _0x42c5fe['LIVESHARE_NEW_HOST']:this[_0x4b0b9d(0x10c)](_0x9fa169);break;case _0x42c5fe[_0x4b0b9d(0xf1)]:this[_0x4b0b9d(0xdf)](_0x9fa169);break;case _0x42c5fe[_0x4b0b9d(0x13b)]:this[_0x4b0b9d(0xb8)]();break;case _0x42c5fe[_0x4b0b9d(0x141)]:this['_handleNewChangeSets'](_0x9fa169);break;}}));}[_0x2ea6be(0x112)](){const _0x46ad1d=_0x2ea6be;this[_0x46ad1d(0xe9)][_0x46ad1d(0xbc)]({'eventID':_0x42c5fe[_0x46ad1d(0x10f)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x46ad1d(0x9c)]);}[_0x2ea6be(0x10a)](){const _0x212eca=_0x2ea6be;this[_0x212eca(0xb0)]===_0x212eca(0xcf)&&(this[_0x212eca(0xb3)]['next'](_0x212eca(0xe6)),this[_0x212eca(0xe9)][_0x212eca(0xbc)]({'eventID':_0x42c5fe['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x212eca(0x9c)]}},this[_0x212eca(0x9c)]));}[_0x2ea6be(0x9f)](){const _0x5a5a39=_0x2ea6be;this[_0x5a5a39(0xb0)]===_0x5a5a39(0xf6)&&(this[_0x5a5a39(0xb3)][_0x5a5a39(0x13e)](_0x5a5a39(0xbb)),this['_startFollowing']());}[_0x2ea6be(0xfe)](){const _0x3eefc1=_0x2ea6be;this[_0x3eefc1(0xb0)]===_0x3eefc1(0xbb)&&this[_0x3eefc1(0xb1)]();}['_handleNewHost'](_0xc39ef3){const _0xa85448=_0x2ea6be,{presenter:_0x9c3efb}=_0xc39ef3[_0xa85448(0x138)],_0x52d7ea=this['_collabSession'][_0xa85448(0x11e)]();this[_0xa85448(0xe7)]=_0x9c3efb,_0x9c3efb===_0x52d7ea?(this[_0xa85448(0xb1)](),this[_0xa85448(0xf3)]()):this[_0xa85448(0xb0)]!==_0xa85448(0xf6)&&(this[_0xa85448(0xe1)](),this[_0xa85448(0x9e)]());}[_0x2ea6be(0x127)](){const _0x436e6a=_0x2ea6be,_0xed2c31={'eventID':_0x42c5fe['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x436e6a(0xbc)](_0xed2c31,this['_unitID']);}[_0x2ea6be(0xb8)](){const _0x4da68b=_0x2ea6be;this[_0x4da68b(0xe7)]=null,this['_status']!=='presenting'&&this['_beIdle']();}[_0x2ea6be(0xd3)](_0x203295){const _0x97b91=_0x2ea6be;if(this['_status']==='following'&&this[_0x97b91(0xe7)]===_0x203295[_0x97b91(0x138)][_0x97b91(0xc1)]){const _0x4063e0=_0x1346fe(_0x203295[_0x97b91(0x138)])['mutations'][_0x97b91(0xca)]()[_0x97b91(0xef)](_0x23e9b7=>_0x23e9b7['id']===_0x4c5605['id']);if(_0x4063e0){const _0x33d668=_0x4063e0['params'][_0x97b91(0x12f)],_0x1e5c33=_0x4063e0[_0x97b91(0xdd)][_0x97b91(0x108)]['id'];setTimeout(()=>{const _0x531eac=_0x97b91;this[_0x531eac(0xcc)]['executeCommand'](_0x3a2a1b['id'],{'unitId':_0x33d668,'subUnitId':_0x1e5c33},{'fromCollab':!0x0});});}}}[_0x2ea6be(0xf3)](){const _0x324603=_0x2ea6be;this[_0x324603(0xb3)][_0x324603(0x13e)]('presenting');const _0x12d150=new Map(),_0x231160=this[_0x324603(0xe2)]=new _0x10d2f7();_0x231160[_0x324603(0xab)](_0x584876(()=>{const _0x27b589=_0x324603;_0x12d150[_0x27b589(0x118)](_0x55f907=>_0x55f907['complete']()),_0x12d150[_0x27b589(0xbd)]();})),_0x231160[_0x324603(0xab)](this['_commandService'][_0x324603(0xb7)](_0x242adf=>{const _0x2bdd48=_0x324603;var _0x1e769d;if(_0x242adf[_0x2bdd48(0x132)]!==_0x80b771['OPERATION']||!this['_liveShareService'][_0x2bdd48(0x12a)](_0x242adf['id']))return;const {id:_0x333d09}=_0x242adf;let _0x5b7b51;_0x12d150['has'](_0x333d09)?_0x5b7b51=_0x12d150['get'](_0x333d09):(_0x5b7b51=new _0x31dba2(),_0x12d150[_0x2bdd48(0xa3)](_0x333d09,_0x5b7b51),_0x5b7b51[_0x2bdd48(0xff)](_0x9876f1((_0x1e769d=this[_0x2bdd48(0xd4)]['getConfig'](Ce))!=null?_0x1e769d:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2bdd48(0x135)](_0x380db4=>{const _0x1acc1a=_0x2bdd48;this[_0x1acc1a(0xe9)][_0x1acc1a(0xbc)]({'eventID':_0x42c5fe['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1acc1a(0x9c)],'operations':{[_0x380db4['id']]:{'id':_0x380db4['id'],'params':JSON[_0x1acc1a(0xa8)](_0x380db4[_0x1acc1a(0xdd)])}}}},this[_0x1acc1a(0x9c)]);})),_0x5b7b51[_0x2bdd48(0x13e)](_0x242adf);})),this[_0x324603(0x10e)]['getInitialStates'](this[_0x324603(0x9c)])[_0x324603(0x118)](_0x551f18=>this[_0x324603(0xe9)][_0x324603(0xbc)]({'eventID':_0x42c5fe[_0x324603(0xf1)],'data':{'unitID':this[_0x324603(0x9c)],'operations':{[_0x551f18['id']]:{'id':_0x551f18['id'],'params':JSON['stringify'](_0x551f18['params'])}}}},this[_0x324603(0x9c)]));}[_0x2ea6be(0xe1)](){const _0x159538=_0x2ea6be;var _0x95769f;this[_0x159538(0xb3)][_0x159538(0x13e)](_0x159538(0xe6)),(_0x95769f=this['_commandDisposable'])==null||_0x95769f[_0x159538(0xf4)](),this[_0x159538(0xe2)]=null;}[_0x2ea6be(0x9e)](){const _0x3f1848=_0x2ea6be;var _0x4ab9e8;(_0x4ab9e8=this['_commandDisposable'])==null||_0x4ab9e8[_0x3f1848(0xf4)](),this['_status$'][_0x3f1848(0x13e)]('following');}[_0x2ea6be(0xc4)](){const _0x362e96=_0x2ea6be;var _0x31b924;this[_0x362e96(0xb3)][_0x362e96(0x13e)](_0x362e96(0xe6)),(_0x31b924=this[_0x362e96(0xe2)])==null||_0x31b924[_0x362e96(0xf4)](),this[_0x362e96(0xe2)]=null;}[_0x2ea6be(0xb1)](){const _0x2f60ff=_0x2ea6be;var _0x457dfd;this[_0x2f60ff(0xb3)][_0x2f60ff(0x13e)](_0x2f60ff(0xf6)),(_0x457dfd=this[_0x2f60ff(0xe2)])==null||_0x457dfd[_0x2f60ff(0xf4)]();}[_0x2ea6be(0xdf)](_0x4a1487){const _0x307e8e=_0x2ea6be;if([_0x307e8e(0xcf),'not-following',_0x307e8e(0x121)]['includes'](this[_0x307e8e(0xb0)])||!_0x4a1487[_0x307e8e(0x138)][_0x307e8e(0xb2)]||_0x4a1487[_0x307e8e(0x138)][_0x307e8e(0xb2)]===this[_0x307e8e(0xe9)]['getMemberID']())return;this['_status']===_0x307e8e(0xe6)&&this['_startFollowing']();const _0x325b4e=_0x4a1487[_0x307e8e(0x138)]['operations'];Object['values'](_0x325b4e)['forEach'](_0x27b723=>{const _0x7d2969=_0x307e8e;this[_0x7d2969(0xcc)][_0x7d2969(0xf0)](_0x27b723['id'],_0x27b723[_0x7d2969(0xdd)]?JSON[_0x7d2969(0xbf)](_0x27b723['params']):null,{'fromCollab':!0x0});});}[_0x2ea6be(0xf8)](){const _0x290b65=_0x2ea6be;var _0x20b23f;this[_0x290b65(0xb3)][_0x290b65(0x13e)]('offline'),(_0x20b23f=this[_0x290b65(0xe2)])==null||_0x20b23f[_0x290b65(0xf4)]();}[_0x2ea6be(0x102)](){const _0x5dc008=_0x2ea6be;this['_status$']['next']('idle'),this[_0x5dc008(0x127)]();}};N=Y([_(0x2,_0x1df196),_(0x3,_0x45fbec(L)),_(0x4,_0x3baf05)],N);function Le(){const _0x4770be=_0x2ea6be,_0x5b4dcf=_0x9da0e7(S),_0x2badab=_0x9da0e7(_0x3b7b43),_0x27b375=_0x3c7d62(()=>_0x2badab[_0x4770be(0xc6)](_0x2e2d5f[_0x4770be(0x114)]),void 0x0,!0x1,[]),[_0x1c7c73,_0x473b16]=_0x1207e6(null),[_0x1f3eee,_0x5ee717]=_0x1207e6(c[_0x4770be(0x99)]),_0x29264c=_0x1503e0(null);return _0x2cb5e3(()=>(_0x27b375&&_0x5b4dcf[_0x4770be(0xbe)](_0x27b375[_0x4770be(0x12e)]())[_0x4770be(0xb9)](_0x3e3bcc=>{const _0x369495=_0x4770be;_0x473b16(_0x3e3bcc),_0x29264c[_0x369495(0x111)]=_0x3e3bcc[_0x369495(0x140)]['subscribe'](_0x47d4bd=>{_0x5ee717(_0x47d4bd);});}),()=>{const _0x5edb92=_0x4770be;var _0x253e9f;(_0x253e9f=_0x29264c[_0x5edb92(0x111)])==null||_0x253e9f[_0x5edb92(0x10d)](),_0x29264c[_0x5edb92(0x111)]=null;}),[_0x27b375,_0x5b4dcf]),_0x1c7c73?_0x1bf9fb(_0x40b541,{'align':_0x4770be(0xe0),'disabled':_0x1f3eee===c['OFFLINE'],'className':_0x4770be(0xc7),'overlay':_0x1bf9fb(Re,{'status':_0x1f3eee,'coordinator':_0x1c7c73}),'children':_0x1bf9fb(_0x4770be(0xd8),{'className':_0x27fdaa(_0x4770be(0xac),{'univer-cursor-not-allowed':_0x1f3eee===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1f3eee!==c['OFFLINE']}),'type':_0x4770be(0xd8),'children':_0x1bf9fb(W,{'className':_0x4770be(0x130)})})}):null;}function Re(_0x3d886a){const _0x4b417e=_0x2ea6be,{status:_0x2bb387,coordinator:_0x3a1940}=_0x3d886a;switch(_0x2bb387){case c['IDLE']:return _0x1bf9fb($e,{'coordinator':_0x3a1940});case c[_0x4b417e(0x126)]:return _0x1bf9fb(xe,{'coordinator':_0x3a1940});case c[_0x4b417e(0xf2)]:return _0x1bf9fb(Pe,{'coordinator':_0x3a1940});case c[_0x4b417e(0xe8)]:return _0x1bf9fb(Te,{});case c[_0x4b417e(0xaa)]:return _0x1bf9fb(Ae,{'coordinator':_0x3a1940});default:return null;}}function $e(_0x5cab16){const _0x3bd49c=_0x2ea6be,{coordinator:_0x27f362}=_0x5cab16;return _0x37edb3(_0x3e40e6,{'children':[_0x1bf9fb(_0x3bd49c(0xdb),{'className':_0x3bd49c(0xf7),'children':_0x3bd49c(0x11c)}),_0x1bf9fb(_0x2a847b,{'onClick':()=>_0x27f362[_0x3bd49c(0x112)](),'children':_0x3bd49c(0x13f)})]});}function xe(_0x3c6765){const _0x4d985e=_0x2ea6be,{coordinator:_0x247d83}=_0x3c6765;return _0x37edb3(_0x3e40e6,{'children':[_0x1bf9fb(_0x4d985e(0xdb),{'className':_0x4d985e(0xf7),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x1bf9fb(_0x2a847b,{'onClick':()=>_0x247d83[_0x4d985e(0xfe)](),'children':_0x4d985e(0x13c)})]});}function Pe(_0x3e681a){const _0x285e8d=_0x2ea6be,{coordinator:_0x56c699}=_0x3e681a;return _0x37edb3(_0x3e40e6,{'children':[_0x1bf9fb(_0x285e8d(0xdb),{'className':_0x285e8d(0xf7),'children':_0x285e8d(0x125)}),_0x1bf9fb(_0x2a847b,{'variant':_0x285e8d(0xfc),'onClick':()=>_0x56c699['startFollowing'](),'children':_0x285e8d(0x105)})]});}function Ae(_0x27321f){const _0x30112f=_0x2ea6be,{coordinator:_0x25a605}=_0x27321f;return _0x37edb3(_0x3e40e6,{'children':[_0x1bf9fb('div',{'className':_0x30112f(0xf7),'children':_0x30112f(0xd5)}),_0x1bf9fb(_0x2a847b,{'variant':_0x30112f(0xd9),'onClick':()=>_0x25a605[_0x30112f(0x10a)](),'children':_0x30112f(0xa1)})]});}function Te(){return _0x1bf9fb(_0x3e40e6,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x2ea6be(0xde)],He=(_0x53a062,_0x5bf32b,_0x154013,_0x39bf97)=>{const _0x45f702=_0x2ea6be;for(var _0x42ddd3=_0x39bf97>0x1?void 0x0:_0x39bf97?Fe(_0x5bf32b,_0x154013):_0x5bf32b,_0x564a7a=_0x53a062[_0x45f702(0x136)]-0x1,_0x419558;_0x564a7a>=0x0;_0x564a7a--)(_0x419558=_0x53a062[_0x564a7a])&&(_0x42ddd3=_0x419558(_0x42ddd3)||_0x42ddd3);return _0x42ddd3;},A=(_0x3afd40,_0x39a568)=>(_0x141ea2,_0x29c96d)=>_0x39a568(_0x141ea2,_0x29c96d,_0x3afd40);let m=class extends _0x12c3fa{constructor(_0x4d6183,_0x363a8c){const _0xb45106=_0x2ea6be;super(),this[_0xb45106(0x109)]=_0x4d6183,this[_0xb45106(0xaf)]=_0x363a8c,this[_0xb45106(0x9a)]();}[_0x2ea6be(0x9a)](){const _0x4074f4=_0x2ea6be;this[_0x4074f4(0xa7)](this['_uiPartsService'][_0x4074f4(0x12d)](_0x2d447a['HEADER_MENU'],()=>_0x349ec9(Le,this[_0x4074f4(0x109)])));}};m=He([A(0x0,_0x45fbec(_0x399810)),A(0x1,_0x375885)],m);const ye=_0x2ea6be(0x98),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x289b16,_0x1b30b5,_0x2cac26,_0x29c1b8)=>{const _0x33c829=_0x2ea6be;for(var _0x7d1f05=_0x29c1b8>0x1?void 0x0:_0x29c1b8?Ue(_0x1b30b5,_0x2cac26):_0x1b30b5,_0x45b4bb=_0x289b16[_0x33c829(0x136)]-0x1,_0x311503;_0x45b4bb>=0x0;_0x45b4bb--)(_0x311503=_0x289b16[_0x45b4bb])&&(_0x7d1f05=_0x311503(_0x7d1f05)||_0x7d1f05);return _0x7d1f05;},je=(_0x1648aa,_0xe26d33)=>(_0x8cc354,_0x1e2640)=>_0xe26d33(_0x8cc354,_0x1e2640,_0x1648aa);let I=class extends _0x12c3fa{constructor(_0x232ffa){super(),this['_liveShareService']=_0x232ffa,this['_init']();}[_0x2ea6be(0xa0)](){const _0x3eb71f=_0x2ea6be;[_0x1aa70f['id'],_0x315c38['id'],_0x3a2a1b['id']][_0x3eb71f(0x118)](_0x1a730c=>{const _0x13e5ae=_0x3eb71f;this['disposeWithMe'](this[_0x13e5ae(0x10e)][_0x13e5ae(0x113)](_0x1a730c));});}};function _0x15fb(){const _0x426be7=['7430UkTDHW','getMemberID','has','2259186wyYFcL','offline','1211043mOKWXS','_startLiveShareCoordinator','defs','You\x27re\x20not\x20following\x20the\x20presenter','FOLLOWING','_fetchOperations','entries','getLiveShareCoordinatorSync','shouldShareOperation','UniverIcon','trim','registerComponent','getUnitId','unitId','univer-size-4','replace','type','map','onStarting','subscribe','length','init','data','sessionStatus$','defineProperty','LIVESHARE_TERMINATE','Stop\x20following','dispose$','next','Start','status$','NEW_CHANGESETS','live-share.config','IDLE','_mountLiveShare','attrs','_unitID','mask','_startFollowing','startFollowing','_init','Stop\x20presenting','5346aMKmRG','set','displayName','_sharedOperations','2JWtRNv','disposeWithMe','stringify','7EpPDJM','PRESENTING','add','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getInitialStates','1em','_uiPartsService','_status','_stopFollowing','presenter','_status$','LiveShareIcon','tag','getStatus','onCommandExecuted','_handleTerminate','then','univerjs-icon\x20univerjs-icon-','following','send','clear','getLiveShareCoordinator','parse','4jNVfMc','memberID','_reporters','symbol','_beIdle','evenodd','getCurrentTypeOfUnit$','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','UNIVER_UNKNOWN','svg','reverse','178501Yyhydf','_commandService','3224755avPCfs','override','presenting','_config','children','fill','_handleNewChangeSets','_configService','You\x27re\x20presenting\x20the\x20document','pluginName','xlink:href','button','default','ONLINE','div','path','params','getOwnPropertyDescriptor','_handleOperation','end','_stopPresenting','_commandDisposable','requireSession','event$','url(#$1','idle','_presenter','OFFLINE','_collabSession','SAME_OPERATION_SHARE_INTERVAL','includes','http://www.w3.org/2000/svg','setConfig','substring','find','executeCommand','LIVESHARE_OPERATION','NOT_FOLLOWING','_startPresenting','dispose','_collabSessionService','not-following','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOffline','idSuffix','assign','complete','text','use','stopFollowing','pipe','getTypeOfUnitDisposed$','12873773OtAkzH','_handleOnline','string','random','Start\x20following','get','_univerInstanceService','sheet','_injector','stopPresenting','currentColor','_handleNewHost','unsubscribe','_liveShareService','LIVESHARE_REQUEST_HOST','registerInitialStateReporter','current','tryStartPresenting','registerSharedOperation','UNIVER_SHEET','colorChannel1','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','3727872uHVkbR','forEach','_entities','onRendered','live-share-icon','Present\x20this\x20document'];_0x15fb=function(){return _0x426be7;};return _0x15fb();}I=Ve([je(0x0,_0x45fbec(L))],I);var Me=Object[_0x2ea6be(0x13a)],ke=Object[_0x2ea6be(0xde)],Ge=(_0x46ec87,_0x43ca8b,_0x3b1ed3)=>_0x43ca8b in _0x46ec87?Me(_0x46ec87,_0x43ca8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b1ed3}):_0x46ec87[_0x43ca8b]=_0x3b1ed3,We=(_0x532e34,_0x1f4d85,_0x4b5236,_0x2ba5d2)=>{for(var _0x15180d=_0x2ba5d2>0x1?void 0x0:_0x2ba5d2?ke(_0x1f4d85,_0x4b5236):_0x1f4d85,_0x352f29=_0x532e34['length']-0x1,_0x65a1e1;_0x352f29>=0x0;_0x352f29--)(_0x65a1e1=_0x532e34[_0x352f29])&&(_0x15180d=_0x65a1e1(_0x15180d)||_0x15180d);return _0x15180d;},F=(_0x393b3c,_0x5786a0)=>(_0x3a27d7,_0x2ce6b8)=>_0x5786a0(_0x3a27d7,_0x2ce6b8,_0x393b3c),B=(_0x573482,_0x529298,_0x3cf523)=>Ge(_0x573482,typeof _0x529298!=_0x2ea6be(0xc3)?_0x529298+'':_0x529298,_0x3cf523);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x2ba041{constructor(_0x5c865e=T,_0x21a6b4,_0x164fbb){const _0x5b82be=_0x2ea6be;super(),this[_0x5b82be(0xd0)]=_0x5c865e,this[_0x5b82be(0x109)]=_0x21a6b4,this['_configService']=_0x164fbb;const {..._0x2e041b}=_0x490103({},T,this[_0x5b82be(0xd0)]);this['_configService'][_0x5b82be(0xed)](ye,_0x2e041b);}[_0x2ea6be(0x134)](){const _0x536023=_0x2ea6be;_0x1521f6(this[_0x536023(0x109)],_0x22600f([[L],[S],[I],[m]],this[_0x536023(0xd0)][_0x536023(0xce)])),_0x8311ba(this[_0x536023(0x109)],[[I]]);}[_0x2ea6be(0x11a)](){_0x8311ba(this['_injector'],[[m]]);}};B(b,'type',_0x2e2d5f[_0x2ea6be(0xc8)]),B(b,_0x2ea6be(0xd6),Ye),b=We([_0x13786b(_0x3a5e2e),F(0x1,_0x45fbec(_0x399810)),F(0x2,_0x1df196)],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
|
-
(function(
|
|
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 _0x50c8(_0x40f539,_0x589214){const _0x4b652a=_0x4b65();return _0x50c8=function(_0x50c8c3,_0x17446e){_0x50c8c3=_0x50c8c3-0xd1;let _0x230995=_0x4b652a[_0x50c8c3];return _0x230995;},_0x50c8(_0x40f539,_0x589214);}function _0x4b65(){const _0x1232ea=['_startLiveShareCoordinator','data','button','_status','_config','UniverSheetsUi','map','connectInjector','dispose','UniverProCollaboration','string','Injector','@univerjs-pro/collaboration','startFollowing','709140izwVKd','You\x27re\x20presenting\x20the\x20document','set','UniverUi','useRef','UniverCollaborationClientPlugin','div','registerSharedOperation','SetZoomRatioOperation','unitId','subscribe','SetWorksheetActiveOperation','NOT_FOLLOWING','@univerjs/sheets-ui','reverse','683810wWFjLt','symbol','React','@univerjs/ui','evenodd','DependentOn','_startFollowing','BehaviorSubject','http://www.w3.org/2000/svg','DisposableCollection','react','fill','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','complete','Disposable','_entities','_collabSession','setConfig','UniverLiveSharePlugin','text','LIVESHARE_NEW_HOST','Fragment','pipe','_handleTerminate','UniverCore','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','IConfigService','init','@univerjs/core','ONLINE','executeCommand','forEach','defs','onCommandExecuted','OFFLINE','CollaborationEvent','228198ruUkdB','UniverProLiveShare','defineProperty','LIVESHARE_TERMINATE','useObservable','_handleNewChangeSets','merge','univer-size-4','ICommandService','Button','takeUntil','@univerjs/sheets','10Pdewix','event$','registerComponent','createInstance','createElement','UniverSheets','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','dispose$','HEADER_MENU','parse','RxDisposable','end','UniverInstanceType','You\x27are\x20offline.','LiveShareStatus','touchDependencies','_handleOnline','getMemberID','LiveShare','933156ldKgSq','memberID','getCurrentTypeOfUnit$','univer-mb-3\x20univer-w-full\x20univer-text-sm','operators','find','_init','has','jsx','InsertSheetMutation','get','Module','@univerjs/design','use','IDLE','_stopPresenting','_fetchOperations','_uiPartsService','send','_presenter','substring','mask','svg','getLiveShareCoordinator','length','_collabSessionService','_stopFollowing','CommandType','params','_liveShareService','Subject','DesktopLiveShareController','_handleOperation','_status$','getUnitId','next','BuiltInUIPart','tryStartPresenting','IUniverInstanceService','stopFollowing','status$','Inject','UniverIcon','getOwnPropertyDescriptor','_injector','presenter','includes','LiveShareIcon','LIVESHARE_REQUEST_HOST','FOLLOWING','Present\x20this\x20document','add','delete','You\x27re\x20following\x20the\x20presenter','_reporters','idle','_commandService','getConfig','_handleOffline','stringify','react/jsx-runtime','Stop\x20following','object','_startPresenting','stopPresenting','LiveShareService','toStringTag','random','Start\x20following','_configService','1894584wYgjQj','_unitID','1690hTsTKr','OPERATION','clear','41561tWDjzg','_mountLiveShare','forwardRef','UniverProCollaborationClient','live-share.config','_univerInstanceService','LiveShareCoordinator','jsxs','colorChannel1','presenting','useEffect','operations','UNIVER_SHEET','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','currentColor','1em','useState','following','url(#$1','offline','SessionStatus','getTypeOfUnitAdded$','from','path','getTypeOfUnitDisposed$','xlink:href','tag','getStatus','toDisposable','attrs','Stop\x20presenting','mergeOverrideWithDependencies','rxjs','IUIPartsService','useDependency','getInitialStates','LIVESHARE_OPERATION','SetScrollOperation','_handleNewHost','LiveShareController','_commandDisposable','displayName','idSuffix','getValue','default','PRESENTING','3462ygreDh','onStarting','replace','_beIdle','current','children','type','registerInitialStateReporter','entries','then','LIVESHARE_FETCH_OPERATIONS','_sharedOperations','Start','override','function','0\x200\x2017\x2017','not-following','You\x27re\x20not\x20following\x20the\x20presenter','live-share-icon','@univerjs-pro/collaboration-client','36IVduMP','asObservable','values','shouldShareOperation'];_0x4b65=function(){return _0x1232ea;};return _0x4b65();}(function(_0x141201,_0x16c057){const _0x2de709=_0x50c8,_0x58ef4a=_0x141201();while(!![]){try{const _0x45a851=parseInt(_0x2de709(0xdc))/0x1*(parseInt(_0x2de709(0x16f))/0x2)+-parseInt(_0x2de709(0x163))/0x3+-parseInt(_0x2de709(0x130))/0x4+-parseInt(_0x2de709(0xd9))/0x5*(parseInt(_0x2de709(0x10a))/0x6)+-parseInt(_0x2de709(0x182))/0x7+parseInt(_0x2de709(0xd7))/0x8+parseInt(_0x2de709(0x11e))/0x9*(parseInt(_0x2de709(0x13f))/0xa);if(_0x45a851===_0x16c057)break;else _0x58ef4a['push'](_0x58ef4a['shift']());}catch(_0x10a5d5){_0x58ef4a['push'](_0x58ef4a['shift']());}}}(_0x4b65,0x21513),function(_0x2b0234,_0x49e7c7){const _0x2a16df=_0x50c8;typeof exports==_0x2a16df(0x1c0)&&typeof module<'u'?_0x49e7c7(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==_0x2a16df(0x118)&&define['amd']?define(['exports',_0x2a16df(0x15b),_0x2a16df(0x142),_0x2a16df(0x1be),_0x2a16df(0x18e),_0x2a16df(0x149),_0x2a16df(0x12e),_0x2a16df(0x11d),_0x2a16df(0x16e),_0x2a16df(0xfc),'rxjs/operators',_0x2a16df(0x13d)],_0x49e7c7):(_0x2b0234=typeof globalThis<'u'?globalThis:_0x2b0234||self,_0x49e7c7(_0x2b0234[_0x2a16df(0x164)]={},_0x2b0234[_0x2a16df(0x157)],_0x2b0234[_0x2a16df(0x133)],_0x2b0234[_0x2a16df(0x141)],_0x2b0234['UniverDesign'],_0x2b0234['React'],_0x2b0234[_0x2a16df(0x12b)],_0x2b0234[_0x2a16df(0xdf)],_0x2b0234[_0x2a16df(0x174)],_0x2b0234['rxjs'],_0x2b0234[_0x2a16df(0xfc)][_0x2a16df(0x186)],_0x2b0234[_0x2a16df(0x127)]));}(this,function(_0x4e3063,_0x40e527,_0x296916,_0x2bab04,_0x440e50,_0x28287e,_0x14c058,_0x2a3c77,_0x23df98,_0x29d244,_0x566e79,_0xa5d015){'use strict';const _0x157494=_0x50c8;var _0x563399=Object[_0x157494(0x165)],_0xa90e21=(_0x7e181a,_0x592f42,_0x1b7723)=>_0x592f42 in _0x7e181a?_0x563399(_0x7e181a,_0x592f42,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b7723}):_0x7e181a[_0x592f42]=_0x1b7723,_0x252ddf=(_0x361399,_0x33c28e,_0x26d9d0)=>_0xa90e21(_0x361399,typeof _0x33c28e!='symbol'?_0x33c28e+'':_0x33c28e,_0x26d9d0);function _0x54209b({ref:_0x39f9b9,..._0x1add72}){const _0x36fc94=_0x157494,{icon:_0x52cb53,id:_0x3ee9fd,className:_0x4ccdc8,extend:_0x2e81c1,..._0x12a695}=_0x1add72,_0x2fdeff=('univerjs-icon\x20univerjs-icon-'+_0x3ee9fd+'\x20'+(_0x4ccdc8||''))['trim'](),_0x54dfc5=_0x28287e[_0x36fc94(0x134)]('_'+_0x1496e1());return _0x4cb8f3(_0x52cb53,''+_0x3ee9fd,{'defIds':_0x52cb53['defIds'],'idSuffix':_0x54dfc5[_0x36fc94(0x10e)]},{'ref':_0x39f9b9,'className':_0x2fdeff,..._0x12a695},_0x2e81c1);}function _0x4cb8f3(_0x2f846a,_0x2b07f0,_0x443a37,_0x1b72b5,_0x566b05){const _0x3809f7=_0x157494;return _0x28287e[_0x3809f7(0x173)](_0x2f846a[_0x3809f7(0xf6)],{'key':_0x2b07f0,..._0x37be8e(_0x2f846a,_0x443a37,_0x566b05),..._0x1b72b5},(_0x1c9310(_0x2f846a,_0x443a37)[_0x3809f7(0x10f)]||[])[_0x3809f7(0x128)]((_0x1031ea,_0x877693)=>_0x4cb8f3(_0x1031ea,_0x2b07f0+'-'+_0x2f846a[_0x3809f7(0xf6)]+'-'+_0x877693,_0x443a37,void 0x0,_0x566b05)));}function _0x37be8e(_0xb15733,_0x528d6e,_0x2eaef8){const _0x245d3e=_0x157494,_0x5711e9={..._0xb15733[_0x245d3e(0xf9)]};_0x2eaef8!=null&&_0x2eaef8[_0x245d3e(0xe4)]&&_0x5711e9[_0x245d3e(0x14a)]==='colorChannel1'&&(_0x5711e9[_0x245d3e(0x14a)]=_0x2eaef8[_0x245d3e(0xe4)]),_0xb15733[_0x245d3e(0xf6)]===_0x245d3e(0x197)&&_0x5711e9['id']&&(_0x5711e9['id']=_0x5711e9['id']+_0x528d6e[_0x245d3e(0x106)]),Object[_0x245d3e(0x112)](_0x5711e9)[_0x245d3e(0x15e)](([_0x588d7d,_0x274420])=>{const _0x5acead=_0x245d3e;_0x588d7d==='mask'&&typeof _0x274420==_0x5acead(0x12c)&&(_0x5711e9[_0x588d7d]=_0x274420[_0x5acead(0x10c)](/url\(#(.*)\)/,_0x5acead(0xee)+_0x528d6e['idSuffix']+')'));});const {defIds:_0x4ef5bb}=_0x528d6e;return!_0x4ef5bb||_0x4ef5bb[_0x245d3e(0x19a)]===0x0||(_0xb15733[_0x245d3e(0xf6)]===_0x245d3e(0x18f)&&_0x5711e9[_0x245d3e(0xf5)]&&(_0x5711e9[_0x245d3e(0xf5)]=_0x5711e9[_0x245d3e(0xf5)]+_0x528d6e[_0x245d3e(0x106)]),Object[_0x245d3e(0x112)](_0x5711e9)['forEach'](([_0x3866cc,_0x1cda8c])=>{const _0x562ceb=_0x245d3e;typeof _0x1cda8c=='string'&&(_0x5711e9[_0x3866cc]=_0x1cda8c[_0x562ceb(0x10c)](/url\(#(.*)\)/,_0x562ceb(0xee)+_0x528d6e[_0x562ceb(0x106)]+')'));})),_0x5711e9;}function _0x1c9310(_0x261afc,_0xe16627){const _0x5eac49=_0x157494;var _0x297c1c;const {defIds:_0x12ce7f}=_0xe16627;return!_0x12ce7f||_0x12ce7f[_0x5eac49(0x19a)]===0x0?_0x261afc:_0x261afc[_0x5eac49(0xf6)]===_0x5eac49(0x15f)&&((_0x297c1c=_0x261afc[_0x5eac49(0x10f)])!=null&&_0x297c1c[_0x5eac49(0x19a)])?{..._0x261afc,'children':_0x261afc[_0x5eac49(0x10f)][_0x5eac49(0x128)](_0x178a75=>typeof _0x178a75['attrs']['id']==_0x5eac49(0x12c)&&_0x12ce7f&&_0x12ce7f['includes'](_0x178a75[_0x5eac49(0xf9)]['id'])?{..._0x178a75,'attrs':{..._0x178a75[_0x5eac49(0xf9)],'id':_0x178a75[_0x5eac49(0xf9)]['id']+_0xe16627[_0x5eac49(0x106)]}}:_0x178a75)}:_0x261afc;}function _0x1496e1(){const _0x48e42d=_0x157494;return Math[_0x48e42d(0xd4)]()['toString'](0x24)[_0x48e42d(0x196)](0x2,0x8);}_0x54209b[_0x157494(0x105)]=_0x157494(0x1ac);const _0x4550d5={'tag':_0x157494(0x198),'attrs':{'xmlns':_0x157494(0x147),'fill':'none','viewBox':_0x157494(0x119),'width':_0x157494(0xeb),'height':_0x157494(0xeb)},'children':[{'tag':'path','attrs':{'fill':_0x157494(0xea),'d':_0x157494(0x14b)}},{'tag':_0x157494(0xf3),'attrs':{'fill':_0x157494(0xea),'d':_0x157494(0xe9),'fillRule':_0x157494(0x143),'clipRule':'evenodd'}}]},_0x259ec3=_0x28287e[_0x157494(0xde)](function(_0x1b0142,_0x583ac7){const _0x4220ad=_0x157494;return _0x28287e[_0x4220ad(0x173)](_0x54209b,Object['assign']({},_0x1b0142,{'id':_0x4220ad(0x11c),'ref':_0x583ac7,'icon':_0x4550d5}));});_0x259ec3[_0x157494(0x105)]=_0x157494(0x1b1);class _0x5d73bc extends _0x40e527[_0x157494(0x14d)]{constructor(){const _0x295368=_0x157494;super(...arguments),_0x252ddf(this,'_sharedOperations',new Set()),_0x252ddf(this,_0x295368(0x1b8),new Set());}[_0x157494(0x137)](_0x182df3){const _0x3a2c01=_0x157494;return this[_0x3a2c01(0x115)]['add'](_0x182df3),_0x40e527['toDisposable'](()=>this[_0x3a2c01(0x115)][_0x3a2c01(0x1b6)](_0x182df3));}[_0x157494(0x111)](_0x1ac1f3){const _0xe7d3f5=_0x157494;return this[_0xe7d3f5(0x1b8)][_0xe7d3f5(0x1b5)](_0x1ac1f3),_0x40e527[_0xe7d3f5(0xf8)](()=>this[_0xe7d3f5(0x1b8)][_0xe7d3f5(0x1b6)](_0x1ac1f3));}[_0x157494(0x121)](_0x306e47){return this['_sharedOperations']['has'](_0x306e47);}[_0x157494(0xff)](_0x3a9489){const _0x18d716=_0x157494;return Array[_0x18d716(0xf2)](this['_reporters'])['map'](_0x232985=>_0x232985(_0x3a9489));}}var _0x5dc097=Object[_0x157494(0x1ad)],_0xd7994=(_0x16ccbf,_0x80368d,_0x380573,_0x1f6b07)=>{const _0x31939c=_0x157494;for(var _0x401952=_0x1f6b07>0x1?void 0x0:_0x1f6b07?_0x5dc097(_0x80368d,_0x380573):_0x80368d,_0xa222dc=_0x16ccbf[_0x31939c(0x19a)]-0x1,_0x5bd407;_0xa222dc>=0x0;_0xa222dc--)(_0x5bd407=_0x16ccbf[_0xa222dc])&&(_0x401952=_0x5bd407(_0x401952)||_0x401952);return _0x401952;},_0xdc52d5=(_0x2125ff,_0x20c400)=>(_0x5da4e8,_0x563477)=>_0x20c400(_0x5da4e8,_0x563477,_0x2125ff);_0x4e3063['LiveShareController']=class extends _0x40e527[_0x157494(0x179)]{constructor(_0x10c45d,_0x372beb,_0x5e893c){const _0x1bcb31=_0x157494;super(),_0x252ddf(this,_0x1bcb31(0x14e),new Map()),(this[_0x1bcb31(0xe1)]=_0x10c45d,this[_0x1bcb31(0x1ae)]=_0x372beb,this[_0x1bcb31(0x19b)]=_0x5e893c,this[_0x1bcb31(0x188)]());}async['getLiveShareCoordinator'](_0x1e8677){const _0x483ae4=_0x157494;return this[_0x483ae4(0x14e)]['has'](_0x1e8677)||await this[_0x483ae4(0x122)](_0x1e8677),this[_0x483ae4(0x14e)][_0x483ae4(0x18c)](_0x1e8677);}['getLiveShareCoordinatorSync'](_0x320777){const _0x47412b=_0x157494;var _0x397ab6;return(_0x397ab6=this[_0x47412b(0x14e)][_0x47412b(0x18c)](_0x320777))!=null?_0x397ab6:null;}[_0x157494(0x188)](){const _0x9e8459=_0x157494;this[_0x9e8459(0xe1)][_0x9e8459(0xf1)](_0x40e527['UniverInstanceType']['UNIVER_SHEET'])[_0x9e8459(0x155)](_0x566e79[_0x9e8459(0x16d)](this['dispose$']))[_0x9e8459(0x13a)](async _0x22f592=>{const _0x462b4f=_0x9e8459,_0x2e2802=_0x22f592[_0x462b4f(0x1a4)]();this[_0x462b4f(0x14e)][_0x462b4f(0x189)](_0x2e2802)||this[_0x462b4f(0x122)](_0x2e2802);}),this[_0x9e8459(0xe1)][_0x9e8459(0xf4)](_0x40e527[_0x9e8459(0x17b)][_0x9e8459(0xe8)])[_0x9e8459(0x155)](_0x566e79[_0x9e8459(0x16d)](this[_0x9e8459(0x176)]))[_0x9e8459(0x13a)](_0x4d49e6=>{const _0x16e32d=_0x9e8459,_0x24ae69=_0x4d49e6[_0x16e32d(0x1a4)](),_0x3d85b6=this[_0x16e32d(0x14e)][_0x16e32d(0x18c)](_0x24ae69);_0x3d85b6==null||_0x3d85b6[_0x16e32d(0x12a)]();});}async['_startLiveShareCoordinator'](_0x27e789){const _0x3c5618=_0x157494,_0x503127=await this[_0x3c5618(0x19b)]['requireSession'](_0x27e789),_0x379bd6=this[_0x3c5618(0x1ae)][_0x3c5618(0x172)](_0x4e3063[_0x3c5618(0xe2)],_0x27e789,_0x503127);return _0x379bd6[_0x3c5618(0x15a)](),this['_entities'][_0x3c5618(0x132)](_0x27e789,_0x379bd6),_0x379bd6;}},_0x4e3063[_0x157494(0x103)]=_0xd7994([_0xdc52d5(0x0,_0x40e527[_0x157494(0x1a8)]),_0xdc52d5(0x1,_0x40e527[_0x157494(0x1ab)](_0x40e527[_0x157494(0x12d)])),_0xdc52d5(0x2,_0x40e527[_0x157494(0x1ab)](_0x2a3c77['CollaborationSessionService']))],_0x4e3063[_0x157494(0x103)]);var _0xc2ddd1=(_0x54e62c=>(_0x54e62c['OFFLINE']='offline',_0x54e62c[_0x157494(0x190)]='idle',_0x54e62c[_0x157494(0x1b3)]='following',_0x54e62c[_0x157494(0x13c)]=_0x157494(0x11a),_0x54e62c['PRESENTING']=_0x157494(0xe5),_0x54e62c))(_0xc2ddd1||{});const _0x11cda7='SAME_OPERATION_SHARE_INTERVAL',_0xb5df1b=0xc8;_0x4e3063['LiveShareCoordinator']=class extends _0x40e527['RxDisposable']{constructor(_0x4a39cb,_0x3b2b6b,_0x11018f,_0x302035,_0x57bc0e){const _0xf29d04=_0x157494;super(),_0x252ddf(this,_0xf29d04(0x1a3),new _0x29d244[(_0xf29d04(0x146))](_0xf29d04(0x1b9))),_0x252ddf(this,_0xf29d04(0x1aa),this[_0xf29d04(0x1a3)][_0xf29d04(0x11f)]()),_0x252ddf(this,_0xf29d04(0x188),!0x1),_0x252ddf(this,'_commandDisposable',null),_0x252ddf(this,_0xf29d04(0x195),null),(this[_0xf29d04(0xd8)]=_0x4a39cb,this[_0xf29d04(0x14f)]=_0x3b2b6b,this[_0xf29d04(0xd6)]=_0x11018f,this['_liveShareService']=_0x302035,this[_0xf29d04(0x1ba)]=_0x57bc0e);}get[_0x157494(0x125)](){const _0x364873=_0x157494;return this[_0x364873(0x1a3)][_0x364873(0x107)]();}['dispose'](){const _0x120e61=_0x157494;var _0x375b48;(_0x375b48=this[_0x120e61(0x104)])==null||_0x375b48['dispose'](),this[_0x120e61(0x1a3)][_0x120e61(0x1a5)](_0x120e61(0x1b9)),this['_status$'][_0x120e61(0x14c)]();}[_0x157494(0xf7)](){const _0x47c919=_0x157494;return this[_0x47c919(0x125)];}[_0x157494(0x15a)](){const _0x34110d=_0x157494;this['_init']||(this[_0x34110d(0x188)]=!0x0,this[_0x34110d(0x14f)]['sessionStatus$'][_0x34110d(0x155)](_0x566e79[_0x34110d(0x16d)](this[_0x34110d(0x176)]))[_0x34110d(0x13a)](_0x122d9c=>{const _0x54a14a=_0x34110d;switch(_0x122d9c){case _0x2a3c77['SessionStatus'][_0x54a14a(0x161)]:this[_0x54a14a(0x1bc)]();break;case _0x2a3c77[_0x54a14a(0xf0)][_0x54a14a(0x15c)]:this[_0x54a14a(0x17f)]();break;}}),this[_0x34110d(0x14f)][_0x34110d(0x170)][_0x34110d(0x155)](_0x566e79[_0x34110d(0x16d)](this[_0x34110d(0x176)]))['subscribe'](_0x5174f4=>{const _0x387189=_0x34110d,{eventID:_0x5cdfe7}=_0x5174f4;switch(_0x5cdfe7){case _0x14c058[_0x387189(0x162)][_0x387189(0x153)]:this['_handleNewHost'](_0x5174f4);break;case _0x14c058[_0x387189(0x162)][_0x387189(0x100)]:this[_0x387189(0x1a2)](_0x5174f4);break;case _0x14c058[_0x387189(0x162)][_0x387189(0x166)]:this[_0x387189(0x156)]();break;case _0x14c058[_0x387189(0x162)]['NEW_CHANGESETS']:this[_0x387189(0x168)](_0x5174f4);break;}}));}['tryStartPresenting'](){const _0x470fd1=_0x157494;this[_0x470fd1(0x14f)][_0x470fd1(0x194)]({'eventID':_0x14c058[_0x470fd1(0x162)][_0x470fd1(0x1b2)],'data':{'unitID':this[_0x470fd1(0xd8)],'userID':this['_collabSession'][_0x470fd1(0x180)]()}},this[_0x470fd1(0xd8)]);}[_0x157494(0xd1)](){const _0x302bbc=_0x157494;this['_status']===_0x302bbc(0xe5)&&(this[_0x302bbc(0x1a3)]['next']('idle'),this[_0x302bbc(0x14f)][_0x302bbc(0x194)]({'eventID':_0x14c058[_0x302bbc(0x162)][_0x302bbc(0x166)],'data':{'unitID':this[_0x302bbc(0xd8)]}},this['_unitID']));}['startFollowing'](){const _0x17f155=_0x157494;this[_0x17f155(0x125)]===_0x17f155(0x11a)&&(this[_0x17f155(0x1a3)][_0x17f155(0x1a5)]('following'),this[_0x17f155(0x145)]());}[_0x157494(0x1a9)](){const _0x18a52e=_0x157494;this[_0x18a52e(0x125)]===_0x18a52e(0xed)&&this[_0x18a52e(0x19c)]();}[_0x157494(0x102)](_0x136721){const _0x4f1609=_0x157494,{presenter:_0x2f5041}=_0x136721['data'],_0x48390b=this[_0x4f1609(0x14f)][_0x4f1609(0x180)]();this[_0x4f1609(0x195)]=_0x2f5041,_0x2f5041===_0x48390b?(this[_0x4f1609(0x19c)](),this[_0x4f1609(0x1c1)]()):this[_0x4f1609(0x125)]!==_0x4f1609(0x11a)&&(this[_0x4f1609(0x191)](),this[_0x4f1609(0x145)]());}[_0x157494(0x192)](){const _0x67a7a7=_0x157494,_0x6a00e4={'eventID':_0x14c058[_0x67a7a7(0x162)][_0x67a7a7(0x114)]};this[_0x67a7a7(0x14f)][_0x67a7a7(0x194)](_0x6a00e4,this['_unitID']);}[_0x157494(0x156)](){const _0x4f7512=_0x157494;this[_0x4f7512(0x195)]=null,this[_0x4f7512(0x125)]!==_0x4f7512(0xe5)&&this[_0x4f7512(0x10d)]();}[_0x157494(0x168)](_0x30b683){const _0x450e53=_0x157494;if(this[_0x450e53(0x125)]===_0x450e53(0xed)&&this[_0x450e53(0x195)]===_0x30b683[_0x450e53(0x123)][_0x450e53(0x183)]){const _0x1a061e=_0x14c058['parseProtocolChangeset'](_0x30b683[_0x450e53(0x123)])['mutations'][_0x450e53(0x13e)]()[_0x450e53(0x187)](_0x1ae59e=>_0x1ae59e['id']===_0x23df98[_0x450e53(0x18b)]['id']);if(_0x1a061e){const _0x1eda6c=_0x1a061e[_0x450e53(0x19e)][_0x450e53(0x139)],_0x33c28f=_0x1a061e['params']['sheet']['id'];setTimeout(()=>{const _0x465947=_0x450e53;this[_0x465947(0x1ba)][_0x465947(0x15d)](_0x23df98[_0x465947(0x13b)]['id'],{'unitId':_0x1eda6c,'subUnitId':_0x33c28f},{'fromCollab':!0x0});});}}}[_0x157494(0x1c1)](){const _0x31fa3c=_0x157494;this[_0x31fa3c(0x1a3)]['next'](_0x31fa3c(0xe5));const _0x308d76=new Map(),_0x171964=this[_0x31fa3c(0x104)]=new _0x40e527[(_0x31fa3c(0x148))]();_0x171964['add'](_0x40e527[_0x31fa3c(0xf8)](()=>{const _0x246764=_0x31fa3c;_0x308d76['forEach'](_0x4e7bb0=>_0x4e7bb0[_0x246764(0x14c)]()),_0x308d76[_0x246764(0xdb)]();})),_0x171964[_0x31fa3c(0x1b5)](this[_0x31fa3c(0x1ba)][_0x31fa3c(0x160)](_0x1009bb=>{const _0x390db4=_0x31fa3c;var _0x465765;if(_0x1009bb['type']!==_0x40e527[_0x390db4(0x19d)][_0x390db4(0xda)]||!this['_liveShareService'][_0x390db4(0x121)](_0x1009bb['id']))return;const {id:_0x4ce7f8}=_0x1009bb;let _0x52d0ed;_0x308d76[_0x390db4(0x189)](_0x4ce7f8)?_0x52d0ed=_0x308d76[_0x390db4(0x18c)](_0x4ce7f8):(_0x52d0ed=new _0x29d244[(_0x390db4(0x1a0))](),_0x308d76[_0x390db4(0x132)](_0x4ce7f8,_0x52d0ed),_0x52d0ed[_0x390db4(0x155)](_0x566e79['throttleTime']((_0x465765=this[_0x390db4(0xd6)][_0x390db4(0x1bb)](_0x11cda7))!=null?_0x465765:_0xb5df1b,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xb5dca6=>{const _0x4b310b=_0x390db4;this['_collabSession'][_0x4b310b(0x194)]({'eventID':_0x14c058[_0x4b310b(0x162)][_0x4b310b(0x100)],'data':{'unitID':this['_unitID'],'operations':{[_0xb5dca6['id']]:{'id':_0xb5dca6['id'],'params':JSON[_0x4b310b(0x1bd)](_0xb5dca6[_0x4b310b(0x19e)])}}}},this['_unitID']);})),_0x52d0ed[_0x390db4(0x1a5)](_0x1009bb);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x31fa3c(0x15e)](_0x1f4d4e=>this[_0x31fa3c(0x14f)][_0x31fa3c(0x194)]({'eventID':_0x14c058[_0x31fa3c(0x162)][_0x31fa3c(0x100)],'data':{'unitID':this[_0x31fa3c(0xd8)],'operations':{[_0x1f4d4e['id']]:{'id':_0x1f4d4e['id'],'params':JSON[_0x31fa3c(0x1bd)](_0x1f4d4e[_0x31fa3c(0x19e)])}}}},this[_0x31fa3c(0xd8)]));}[_0x157494(0x191)](){const _0x469095=_0x157494;var _0x2183fc;this[_0x469095(0x1a3)][_0x469095(0x1a5)]('idle'),(_0x2183fc=this[_0x469095(0x104)])==null||_0x2183fc['dispose'](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x3e6e01=_0x157494;var _0x484d65;(_0x484d65=this[_0x3e6e01(0x104)])==null||_0x484d65[_0x3e6e01(0x12a)](),this[_0x3e6e01(0x1a3)][_0x3e6e01(0x1a5)]('following');}[_0x157494(0x10d)](){const _0x445c12=_0x157494;var _0x7e3927;this[_0x445c12(0x1a3)]['next']('idle'),(_0x7e3927=this[_0x445c12(0x104)])==null||_0x7e3927[_0x445c12(0x12a)](),this[_0x445c12(0x104)]=null;}['_stopFollowing'](){const _0x5e9760=_0x157494;var _0xa2df6;this[_0x5e9760(0x1a3)][_0x5e9760(0x1a5)](_0x5e9760(0x11a)),(_0xa2df6=this[_0x5e9760(0x104)])==null||_0xa2df6[_0x5e9760(0x12a)]();}[_0x157494(0x1a2)](_0x51b753){const _0x47d2f9=_0x157494;if([_0x47d2f9(0xe5),_0x47d2f9(0x11a),'offline'][_0x47d2f9(0x1b0)](this['_status'])||!_0x51b753['data'][_0x47d2f9(0x1af)]||_0x51b753[_0x47d2f9(0x123)]['presenter']===this['_collabSession'][_0x47d2f9(0x180)]())return;this[_0x47d2f9(0x125)]===_0x47d2f9(0x1b9)&&this[_0x47d2f9(0x145)]();const _0xf35de4=_0x51b753[_0x47d2f9(0x123)][_0x47d2f9(0xe7)];Object[_0x47d2f9(0x120)](_0xf35de4)['forEach'](_0xcf8631=>{const _0x28f190=_0x47d2f9;this[_0x28f190(0x1ba)][_0x28f190(0x15d)](_0xcf8631['id'],_0xcf8631[_0x28f190(0x19e)]?JSON[_0x28f190(0x178)](_0xcf8631[_0x28f190(0x19e)]):null,{'fromCollab':!0x0});});}[_0x157494(0x1bc)](){const _0x224493=_0x157494;var _0x1aef84;this['_status$']['next'](_0x224493(0xef)),(_0x1aef84=this['_commandDisposable'])==null||_0x1aef84['dispose']();}[_0x157494(0x17f)](){const _0x3b9811=_0x157494;this[_0x3b9811(0x1a3)][_0x3b9811(0x1a5)](_0x3b9811(0x1b9)),this[_0x3b9811(0x192)]();}},_0x4e3063[_0x157494(0xe2)]=_0xd7994([_0xdc52d5(0x2,_0x40e527[_0x157494(0x159)]),_0xdc52d5(0x3,_0x40e527['Inject'](_0x5d73bc)),_0xdc52d5(0x4,_0x40e527[_0x157494(0x16b)])],_0x4e3063[_0x157494(0xe2)]);function _0x1048c8(){const _0x50027d=_0x157494,_0x47dbbd=_0x296916[_0x50027d(0xfe)](_0x4e3063[_0x50027d(0x103)]),_0x36ae56=_0x296916[_0x50027d(0xfe)](_0x40e527[_0x50027d(0x1a8)]),_0x2f5130=_0x296916[_0x50027d(0x167)](()=>_0x36ae56[_0x50027d(0x184)](_0x40e527[_0x50027d(0x17b)][_0x50027d(0xe8)]),void 0x0,!0x1,[]),[_0x5f444e,_0x7c2942]=_0x28287e['useState'](null),[_0x44db8f,_0x4d37ad]=_0x28287e[_0x50027d(0xec)](_0xc2ddd1[_0x50027d(0x190)]),_0x445def=_0x28287e['useRef'](null);return _0x28287e[_0x50027d(0xe6)](()=>(_0x2f5130&&_0x47dbbd[_0x50027d(0x199)](_0x2f5130['getUnitId']())[_0x50027d(0x113)](_0xd75c88=>{const _0x2324c2=_0x50027d;_0x7c2942(_0xd75c88),_0x445def[_0x2324c2(0x10e)]=_0xd75c88[_0x2324c2(0x1aa)][_0x2324c2(0x13a)](_0x3d5948=>{_0x4d37ad(_0x3d5948);});}),()=>{const _0x58ce5b=_0x50027d;var _0x27f81d;(_0x27f81d=_0x445def[_0x58ce5b(0x10e)])==null||_0x27f81d['unsubscribe'](),_0x445def[_0x58ce5b(0x10e)]=null;}),[_0x2f5130,_0x47dbbd]),_0x5f444e?_0x2bab04[_0x50027d(0x18a)](_0x440e50['Dropdown'],{'align':_0x50027d(0x17a),'disabled':_0x44db8f===_0xc2ddd1[_0x50027d(0x161)],'className':_0x50027d(0x175),'overlay':_0x2bab04[_0x50027d(0x18a)](_0x4d7b4b,{'status':_0x44db8f,'coordinator':_0x5f444e}),'children':_0x2bab04[_0x50027d(0x18a)](_0x50027d(0x124),{'className':_0x440e50['clsx'](_0x50027d(0x158),{'univer-cursor-not-allowed':_0x44db8f===_0xc2ddd1[_0x50027d(0x161)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x44db8f!==_0xc2ddd1[_0x50027d(0x161)]}),'type':'button','children':_0x2bab04[_0x50027d(0x18a)](_0x259ec3,{'className':_0x50027d(0x16a)})})}):null;}function _0x4d7b4b(_0xc6f0c2){const _0x15bdf7=_0x157494,{status:_0xf80ceb,coordinator:_0x1bdade}=_0xc6f0c2;switch(_0xf80ceb){case _0xc2ddd1['IDLE']:return _0x2bab04['jsx'](_0x5624d2,{'coordinator':_0x1bdade});case _0xc2ddd1['FOLLOWING']:return _0x2bab04[_0x15bdf7(0x18a)](_0x503d05,{'coordinator':_0x1bdade});case _0xc2ddd1['NOT_FOLLOWING']:return _0x2bab04[_0x15bdf7(0x18a)](_0x21e693,{'coordinator':_0x1bdade});case _0xc2ddd1['OFFLINE']:return _0x2bab04[_0x15bdf7(0x18a)](_0x1401ad,{});case _0xc2ddd1[_0x15bdf7(0x109)]:return _0x2bab04[_0x15bdf7(0x18a)](_0x5155b7,{'coordinator':_0x1bdade});default:return null;}}function _0x5624d2(_0xa55704){const _0x28e809=_0x157494,{coordinator:_0x20ace7}=_0xa55704;return _0x2bab04['jsxs'](_0x2bab04['Fragment'],{'children':[_0x2bab04[_0x28e809(0x18a)](_0x28e809(0x136),{'className':_0x28e809(0x185),'children':_0x28e809(0x1b4)}),_0x2bab04[_0x28e809(0x18a)](_0x440e50[_0x28e809(0x16c)],{'onClick':()=>_0x20ace7[_0x28e809(0x1a7)](),'children':_0x28e809(0x116)})]});}function _0x503d05(_0x4f29d6){const _0x512d5e=_0x157494,{coordinator:_0x3bf0fe}=_0x4f29d6;return _0x2bab04['jsxs'](_0x2bab04[_0x512d5e(0x154)],{'children':[_0x2bab04[_0x512d5e(0x18a)](_0x512d5e(0x136),{'className':_0x512d5e(0x185),'children':_0x512d5e(0x1b7)}),_0x2bab04['jsx'](_0x440e50[_0x512d5e(0x16c)],{'onClick':()=>_0x3bf0fe['stopFollowing'](),'children':_0x512d5e(0x1bf)})]});}function _0x21e693(_0x437d19){const _0x2b3fb5=_0x157494,{coordinator:_0x17bad}=_0x437d19;return _0x2bab04[_0x2b3fb5(0xe3)](_0x2bab04['Fragment'],{'children':[_0x2bab04[_0x2b3fb5(0x18a)](_0x2b3fb5(0x136),{'className':_0x2b3fb5(0x185),'children':_0x2b3fb5(0x11b)}),_0x2bab04[_0x2b3fb5(0x18a)](_0x440e50[_0x2b3fb5(0x16c)],{'variant':_0x2b3fb5(0x152),'onClick':()=>_0x17bad[_0x2b3fb5(0x12f)](),'children':_0x2b3fb5(0xd5)})]});}function _0x5155b7(_0x37e769){const _0x27e3f6=_0x157494,{coordinator:_0x57f08b}=_0x37e769;return _0x2bab04[_0x27e3f6(0xe3)](_0x2bab04[_0x27e3f6(0x154)],{'children':[_0x2bab04[_0x27e3f6(0x18a)](_0x27e3f6(0x136),{'className':_0x27e3f6(0x185),'children':_0x27e3f6(0x131)}),_0x2bab04[_0x27e3f6(0x18a)](_0x440e50['Button'],{'variant':_0x27e3f6(0x108),'onClick':()=>_0x57f08b[_0x27e3f6(0xd1)](),'children':_0x27e3f6(0xfa)})]});}function _0x1401ad(){const _0x50ec35=_0x157494;return _0x2bab04[_0x50ec35(0x18a)](_0x2bab04[_0x50ec35(0x154)],{'children':_0x50ec35(0x17c)});}var _0x3dd154=Object[_0x157494(0x1ad)],_0x2a3b5d=(_0x456a3d,_0x21fcb7,_0x449c18,_0x1457fe)=>{for(var _0x2a8e00=_0x1457fe>0x1?void 0x0:_0x1457fe?_0x3dd154(_0x21fcb7,_0x449c18):_0x21fcb7,_0x1b9787=_0x456a3d['length']-0x1,_0x43e918;_0x1b9787>=0x0;_0x1b9787--)(_0x43e918=_0x456a3d[_0x1b9787])&&(_0x2a8e00=_0x43e918(_0x2a8e00)||_0x2a8e00);return _0x2a8e00;},_0x1ab590=(_0x9d0c6a,_0x19a0c3)=>(_0x5531bb,_0x3cc635)=>_0x19a0c3(_0x5531bb,_0x3cc635,_0x9d0c6a);_0x4e3063['DesktopLiveShareController']=class extends _0x40e527['Disposable']{constructor(_0x132215,_0x103a6a){const _0x6f9462=_0x157494;super(),this['_injector']=_0x132215,this[_0x6f9462(0x193)]=_0x103a6a,this['_mountLiveShare']();}[_0x157494(0xdd)](){const _0x161ccf=_0x157494;this['disposeWithMe'](this[_0x161ccf(0x193)][_0x161ccf(0x171)](_0x296916[_0x161ccf(0x1a6)][_0x161ccf(0x177)],()=>_0x296916[_0x161ccf(0x129)](_0x1048c8,this[_0x161ccf(0x1ae)])));}},_0x4e3063['DesktopLiveShareController']=_0x2a3b5d([_0x1ab590(0x0,_0x40e527[_0x157494(0x1ab)](_0x40e527[_0x157494(0x12d)])),_0x1ab590(0x1,_0x296916[_0x157494(0xfd)])],_0x4e3063[_0x157494(0x1a1)]);const _0x33c82f=_0x157494(0xe0),_0xc3e9ed={};var _0x9c4914=Object['getOwnPropertyDescriptor'],_0x51409d=(_0x3cad37,_0x161c8e,_0x3166de,_0x2529d7)=>{const _0x19344e=_0x157494;for(var _0x3e70e5=_0x2529d7>0x1?void 0x0:_0x2529d7?_0x9c4914(_0x161c8e,_0x3166de):_0x161c8e,_0x44a411=_0x3cad37[_0x19344e(0x19a)]-0x1,_0x4b28e1;_0x44a411>=0x0;_0x44a411--)(_0x4b28e1=_0x3cad37[_0x44a411])&&(_0x3e70e5=_0x4b28e1(_0x3e70e5)||_0x3e70e5);return _0x3e70e5;},_0x41b404=(_0x4ecbea,_0x5676c1)=>(_0x57aad4,_0x42f63a)=>_0x5676c1(_0x57aad4,_0x42f63a,_0x4ecbea);let _0xd02212=class extends _0x40e527[_0x157494(0x14d)]{constructor(_0x55e2ba){const _0x338570=_0x157494;super(),this[_0x338570(0x19f)]=_0x55e2ba,this[_0x338570(0x188)]();}[_0x157494(0x188)](){const _0x2148f4=_0x157494;[_0xa5d015[_0x2148f4(0x138)]['id'],_0xa5d015[_0x2148f4(0x101)]['id'],_0x23df98[_0x2148f4(0x13b)]['id']][_0x2148f4(0x15e)](_0x207a9c=>{const _0x49fa88=_0x2148f4;this['disposeWithMe'](this[_0x49fa88(0x19f)][_0x49fa88(0x137)](_0x207a9c));});}};_0xd02212=_0x51409d([_0x41b404(0x0,_0x40e527[_0x157494(0x1ab)](_0x5d73bc))],_0xd02212);var _0xa546a5=Object[_0x157494(0x165)],_0x4eca01=Object[_0x157494(0x1ad)],_0x426625=(_0x5ab1c5,_0x30f739,_0x5eff8e)=>_0x30f739 in _0x5ab1c5?_0xa546a5(_0x5ab1c5,_0x30f739,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5eff8e}):_0x5ab1c5[_0x30f739]=_0x5eff8e,_0x517ed9=(_0x5a5428,_0x32e478,_0x94fa5e,_0x4dc22e)=>{const _0x45f56d=_0x157494;for(var _0xfcb0ec=_0x4dc22e>0x1?void 0x0:_0x4dc22e?_0x4eca01(_0x32e478,_0x94fa5e):_0x32e478,_0x2c1e00=_0x5a5428[_0x45f56d(0x19a)]-0x1,_0x235841;_0x2c1e00>=0x0;_0x2c1e00--)(_0x235841=_0x5a5428[_0x2c1e00])&&(_0xfcb0ec=_0x235841(_0xfcb0ec)||_0xfcb0ec);return _0xfcb0ec;},_0x5c285e=(_0x5690a4,_0x2b133e)=>(_0x38f770,_0x2bb8bc)=>_0x2b133e(_0x38f770,_0x2bb8bc,_0x5690a4),_0xab11d=(_0x22bd10,_0x199ef9,_0x3227e3)=>_0x426625(_0x22bd10,typeof _0x199ef9!=_0x157494(0x140)?_0x199ef9+'':_0x199ef9,_0x3227e3);const _0x20cb35='UNIVER_LIVE_SHARE_PLUGIN';_0x4e3063[_0x157494(0x151)]=class extends _0x40e527['Plugin']{constructor(_0x2a2eb2=_0xc3e9ed,_0x5af2ba,_0x3eba14){const _0x2e291f=_0x157494;super(),this[_0x2e291f(0x126)]=_0x2a2eb2,this[_0x2e291f(0x1ae)]=_0x5af2ba,this[_0x2e291f(0xd6)]=_0x3eba14;const {..._0x573b4b}=_0x40e527[_0x2e291f(0x169)]({},_0xc3e9ed,this[_0x2e291f(0x126)]);this['_configService'][_0x2e291f(0x150)](_0x33c82f,_0x573b4b);}[_0x157494(0x10b)](){const _0x5548d2=_0x157494;_0x40e527['registerDependencies'](this[_0x5548d2(0x1ae)],_0x40e527[_0x5548d2(0xfb)]([[_0x5d73bc],[_0x4e3063[_0x5548d2(0x103)]],[_0xd02212],[_0x4e3063[_0x5548d2(0x1a1)]]],this[_0x5548d2(0x126)][_0x5548d2(0x117)])),_0x40e527[_0x5548d2(0x17e)](this[_0x5548d2(0x1ae)],[[_0xd02212]]);}['onRendered'](){const _0x29d5e0=_0x157494;_0x40e527[_0x29d5e0(0x17e)](this[_0x29d5e0(0x1ae)],[[_0x4e3063['DesktopLiveShareController']]]);}},_0xab11d(_0x4e3063[_0x157494(0x151)],_0x157494(0x110),_0x40e527[_0x157494(0x17b)]['UNIVER_UNKNOWN']),_0xab11d(_0x4e3063[_0x157494(0x151)],'pluginName',_0x20cb35),_0x4e3063[_0x157494(0x151)]=_0x517ed9([_0x40e527[_0x157494(0x144)](_0x2a3c77[_0x157494(0x135)]),_0x5c285e(0x1,_0x40e527[_0x157494(0x1ab)](_0x40e527[_0x157494(0x12d)])),_0x5c285e(0x2,_0x40e527[_0x157494(0x159)])],_0x4e3063[_0x157494(0x151)]),_0x4e3063[_0x157494(0x181)]=_0x1048c8,_0x4e3063[_0x157494(0xd2)]=_0x5d73bc,_0x4e3063[_0x157494(0x17d)]=_0xc2ddd1,Object[_0x157494(0x165)](_0x4e3063,Symbol[_0x157494(0xd3)],{'value':_0x157494(0x18d)});}));
|
|
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/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/
|
|
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": "^4.0.
|
|
75
|
+
"vite": "^7.2.6",
|
|
76
|
+
"vitest": "^4.0.15",
|
|
77
77
|
"@univerjs/protocol": "0.1.47",
|
|
78
|
-
"@univerjs-infra/shared": "0.12.
|
|
78
|
+
"@univerjs-infra/shared": "0.12.3"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|