@univerjs-pro/live-share 0.10.13 → 0.10.14
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 _0x28cc63=_0x522a;(function(_0x16fe3c,_0x2f72b6){const _0x112719=_0x522a,_0x5dbb23=_0x16fe3c();while(!![]){try{const _0x32720a=-parseInt(_0x112719(0x19a))/0x1+-parseInt(_0x112719(0x1a3))/0x2*(parseInt(_0x112719(0x1a0))/0x3)+parseInt(_0x112719(0x1a2))/0x4+parseInt(_0x112719(0x1a9))/0x5+parseInt(_0x112719(0x189))/0x6*(parseInt(_0x112719(0x192))/0x7)+-parseInt(_0x112719(0x193))/0x8+parseInt(_0x112719(0x194))/0x9*(parseInt(_0x112719(0x186))/0xa);if(_0x32720a===_0x2f72b6)break;else _0x5dbb23['push'](_0x5dbb23['shift']());}catch(_0x25e0b3){_0x5dbb23['push'](_0x5dbb23['shift']());}}}(_0x11af,0xf18f7));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']{[_0x28cc63(0x18a)](_0x146d4b,_0x1dec85,_0x321085,_0xaf0044,_0x5f3f6c){const _0x599f21=_0x28cc63,_0xdcffed=_0x146d4b[_0x599f21(0x19b)](n[_0x599f21(0x1a4)]),_0x2f9a72=_0x146d4b[_0x599f21(0x19b)](g[_0x599f21(0x1a1)]),_0x396a2f=_0x1dec85[_0x599f21(0x191)](),_0x18677c=_0x1dec85[_0x599f21(0x199)](),_0x552703=_0xdcffed[_0x599f21(0x1a8)](_0x396a2f);(_0x552703==null?void 0x0:_0x552703[_0x599f21(0x19f)]())!==n[_0x599f21(0x19d)][_0x599f21(0x198)]||(_0x321085[_0x599f21(0x18b)]()!==_0x18677c[_0x599f21(0x18b)]()&&this['_commandService']['executeCommand'](u[_0x599f21(0x197)]['id'],{'unitId':_0x396a2f,'subUnitId':_0x321085[_0x599f21(0x18b)]()}),!_0x2f9a72[_0x599f21(0x19e)](_0x396a2f))||_0x5f3f6c[_0x599f21(0x18f)](f[_0x599f21(0x188)]['id'],{'unitId':_0x1dec85[_0x599f21(0x191)](),'sheetId':_0x321085[_0x599f21(0x18b)](),'sheetViewStartRow':_0xaf0044[_0x599f21(0x195)],'sheetViewStartColumn':_0xaf0044['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x28cc63(0x187)][_0x28cc63(0x18c)](w);class C extends a[_0x28cc63(0x182)]{['getLiveShareStatus'](){const _0x5b1383=_0x28cc63;var _0x1f9301,_0x99284f;const _0x16d960=this[_0x5b1383(0x185)][_0x5b1383(0x19b)](n['LiveShareController']),_0x345809=(_0x1f9301=this[_0x5b1383(0x18d)]())==null?void 0x0:_0x1f9301[_0x5b1383(0x1a5)]();if(!_0x345809)throw new Error(_0x5b1383(0x183));const _0x2f3c7c=_0x16d960[_0x5b1383(0x1a8)](_0x345809);return(_0x99284f=_0x2f3c7c==null?void 0x0:_0x2f3c7c[_0x5b1383(0x19f)]())!=null?_0x99284f:n['LiveShareStatus'][_0x5b1383(0x19c)];}[_0x28cc63(0x180)](){const _0x5519fe=_0x28cc63;var _0x4f08a1;const _0x13c954=this[_0x5519fe(0x185)]['get'](n[_0x5519fe(0x1a4)]),_0x29117f=(_0x4f08a1=this[_0x5519fe(0x18d)]())==null?void 0x0:_0x4f08a1[_0x5519fe(0x1a5)]();if(!_0x29117f)throw new Error(_0x5519fe(0x183));const _0x4d33d7=_0x13c954[_0x5519fe(0x1a8)](_0x29117f);if(!_0x4d33d7)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4d33d7['startFollowing']();}[_0x28cc63(0x1a6)](){const _0x38506f=_0x28cc63;var _0x56e23f;const _0x210e15=this[_0x38506f(0x185)][_0x38506f(0x19b)](n['LiveShareController']),_0x295bb7=(_0x56e23f=this['getActiveWorkbook']())==null?void 0x0:_0x56e23f[_0x38506f(0x1a5)]();if(!_0x295bb7)throw new Error(_0x38506f(0x183));const _0x2f79e9=_0x210e15['getLiveShareCoordinatorSync'](_0x295bb7);if(!_0x2f79e9)throw new Error(_0x38506f(0x196));_0x2f79e9[_0x38506f(0x1a6)]();}[_0x28cc63(0x184)](){const _0x54d53e=_0x28cc63;var _0x4f7e6f;const _0xafcaab=this[_0x54d53e(0x185)][_0x54d53e(0x19b)](n['LiveShareController']),_0x38f898=(_0x4f7e6f=this[_0x54d53e(0x18d)]())==null?void 0x0:_0x4f7e6f[_0x54d53e(0x1a5)]();if(!_0x38f898)throw new Error(_0x54d53e(0x183));const _0x796cc0=_0xafcaab[_0x54d53e(0x1a8)](_0x38f898);if(!_0x796cc0)throw new Error(_0x54d53e(0x196));_0x796cc0[_0x54d53e(0x18e)]();}[_0x28cc63(0x1a7)](){const _0x23ef8a=_0x28cc63;var _0x26e01b;const _0x236c35=this[_0x23ef8a(0x185)][_0x23ef8a(0x19b)](n[_0x23ef8a(0x1a4)]),_0x36a6e7=(_0x26e01b=this[_0x23ef8a(0x18d)]())==null?void 0x0:_0x26e01b[_0x23ef8a(0x1a5)]();if(!_0x36a6e7)throw new Error('No\x20active\x20workbook\x20found.');const _0xdc15fb=_0x236c35[_0x23ef8a(0x1a8)](_0x36a6e7);if(!_0xdc15fb)throw new Error(_0x23ef8a(0x196));_0xdc15fb[_0x23ef8a(0x1a7)]();}}function _0x522a(_0x7b0723,_0x4991d8){const _0x11af2b=_0x11af();return _0x522a=function(_0x522acc,_0x1c7ee4){_0x522acc=_0x522acc-0x180;let _0x324536=_0x11af2b[_0x522acc];return _0x324536;},_0x522a(_0x7b0723,_0x4991d8);}a[_0x28cc63(0x182)][_0x28cc63(0x18c)](C);function _0x11af(){const _0x3e4822=['FUniver','No\x20active\x20workbook\x20found.','startPresenting','_injector','2930zvjUWS','FRange','SetScrollOperation','9007698YnRtEx','_initialize','getSheetId','extend','getActiveWorkbook','tryStartPresenting','syncExecuteCommand','FEnum','getUnitId','7gaiUVH','2363920nPvBnv','22626tkDkOn','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','SetWorksheetActiveOperation','PRESENTING','getActiveSheet','954902kHLITM','get','IDLE','LiveShareStatus','getRenderById','getStatus','3051708LeFRJq','IRenderManagerService','468488HCnQvr','2uSEzSP','LiveShareController','getId','stopFollowing','stopPresenting','getLiveShareCoordinatorSync','4510260CjoFFo','startFollowing','LiveShareStatusEnum'];_0x11af=function(){return _0x3e4822;};return _0x11af();}class L extends a[_0x28cc63(0x190)]{get[_0x28cc63(0x181)](){const _0xaa1532=_0x28cc63;return n[_0xaa1532(0x19d)];}}a[_0x28cc63(0x190)]['extend'](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x44ba(_0x52a5f6,_0x1aba47){const _0x34ff6a=_0x34ff();return _0x44ba=function(_0x44baff,_0x2767d2){_0x44baff=_0x44baff-0xd7;let _0x28d3f3=_0x34ff6a[_0x44baff];return _0x28d3f3;},_0x44ba(_0x52a5f6,_0x1aba47);}const _0x1b3401=_0x44ba;function _0x34ff(){const _0x44af3b=['jsx','_presenter','text','idSuffix','displayName','_handleOffline','defs','Plugin','LIVESHARE_FETCH_OPERATIONS','getUnitId','dispose','408695jXdDEf','createInstance','values','random','You\x27re\x20not\x20following\x20the\x20presenter','_handleOnline','IUniverInstanceService','touchDependencies','send','BuiltInUIPart','Inject','complete','evenodd','symbol','_stopFollowing','toString','_unitID','_beIdle','_fetchOperations','_injector','get','map','params','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','pluginName','UNIVER_SHEET','_stopPresenting','_mountLiveShare','BehaviorSubject','_status','PRESENTING','NEW_CHANGESETS','ICommandService','11283003oJNJwD','tryStartPresenting','button','end','jsxs','SetWorksheetActiveOperation','getMemberID','shouldShareOperation','CollaborationSessionService','846774IVBTvg','_collabSession','override','includes','pipe','not-following','attrs','disposeWithMe','dispose$','createElement','defIds','none','CollaborationEvent','getCurrentTypeOfUnit$','_init','_reporters','set','LIVESHARE_OPERATION','http://www.w3.org/2000/svg','clsx','UNIVER_LIVE_SHARE_PLUGIN','xlink:href','then','Start\x20following','_commandDisposable','status$','UniverInstanceType','asObservable','Disposable','_commandService','2661118mtgvrz','following','idle','_uiPartsService','live-share-icon','SessionStatus','string','data','mutations','_handleTerminate','DependentOn','UniverLiveSharePlugin','url(#$1','has','find','Start','SetZoomRatioOperation','2986047uqXDOP','defineProperty','DisposableCollection','throttleTime','1em','parse','Stop\x20following','_entities','tag','add','use','init','CommandType','executeCommand','toDisposable','path','SetScrollOperation','clear','presenting','Fragment','mask','length','currentColor','delete','registerSharedOperation','replace','offline','IConfigService','Injector','Module','stringify','sessionStatus$','_startLiveShareCoordinator','_configService','subscribe','useEffect','_status$','stopPresenting','onCommandExecuted','event$','_sharedOperations','univerjs-icon\x20univerjs-icon-','OFFLINE','_handleOperation','mergeOverrideWithDependencies','LiveShareIcon','getOwnPropertyDescriptor','IDLE','entries','getLiveShareCoordinator','sheet','merge','next','getTypeOfUnitDisposed$','default','useState','_startPresenting','forEach','Stop\x20presenting','_collabSessionService','DesktopLiveShareController','InsertSheetMutation','onStarting','RxDisposable','getInitialStates','0\x200\x2017\x2017','8VcwAzu','children','trim','univer-size-4','FOLLOWING','parseProtocolChangeset','useObservable','118824VTaAXM','assign','from','_handleNewChangeSets','div','getTypeOfUnitAdded$','registerInitialStateReporter','You\x27are\x20offline.','NOT_FOLLOWING','5CqVSKA','HEADER_MENU','LiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','_config','LiveShareController','getStatus','stopFollowing','fill','univer-mb-3\x20univer-w-full\x20univer-text-sm','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','current','Subject','LIVESHARE_TERMINATE','_univerInstanceService','useRef','takeUntil','LiveShareService','205308RjLldk','unitId','live-share.config','registerComponent','UNIVER_UNKNOWN','UniverIcon','LIVESHARE_NEW_HOST','Button','_startFollowing','You\x27re\x20presenting\x20the\x20document','type','startFollowing','_liveShareService'];_0x34ff=function(){return _0x44af3b;};return _0x34ff();}(function(_0x38fefd,_0x3ceeed){const _0x271de1=_0x44ba,_0x100daf=_0x38fefd();while(!![]){try{const _0x2c595a=-parseInt(_0x271de1(0x197))/0x1+-parseInt(_0x271de1(0x13d))/0x2+parseInt(_0x271de1(0x14e))/0x3+-parseInt(_0x271de1(0xdd))/0x4*(-parseInt(_0x271de1(0x1a0))/0x5)+-parseInt(_0x271de1(0x11f))/0x6+-parseInt(_0x271de1(0xf5))/0x7*(-parseInt(_0x271de1(0x190))/0x8)+parseInt(_0x271de1(0x116))/0x9;if(_0x2c595a===_0x3ceeed)break;else _0x100daf['push'](_0x100daf['shift']());}catch(_0x24b550){_0x100daf['push'](_0x100daf['shift']());}}}(_0x34ff,0xbb8d8));var T=Object[_0x1b3401(0x14f)],U=(_0x22136e,_0x5dddf1,_0x5d8159)=>_0x5dddf1 in _0x22136e?T(_0x22136e,_0x5dddf1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d8159}):_0x22136e[_0x5dddf1]=_0x5d8159,_=(_0x580fed,_0x57a8a2,_0x3b5983)=>U(_0x580fed,typeof _0x57a8a2!=_0x1b3401(0x102)?_0x57a8a2+'':_0x57a8a2,_0x3b5983);Object[_0x1b3401(0x14f)](exports,Symbol['toStringTag'],{'value':_0x1b3401(0x16b)});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:_0x484797,..._0x34c744}){const _0x5e1876=_0x1b3401,{icon:_0x4a328f,id:_0x317108,className:_0x58a079,extend:_0x5eff59,..._0x42500d}=_0x34c744,_0x4f40d8=(_0x5e1876(0x177)+_0x317108+'\x20'+(_0x58a079||''))[_0x5e1876(0x192)](),_0x21687a=v[_0x5e1876(0xda)]('_'+H());return j(_0x4a328f,''+_0x317108,{'defIds':_0x4a328f[_0x5e1876(0x129)],'idSuffix':_0x21687a[_0x5e1876(0x1ac)]},{'ref':_0x484797,'className':_0x4f40d8,..._0x42500d},_0x5eff59);}function j(_0xb03a7c,_0x1bb4c6,_0x55fe50,_0x4a59a3,_0x3625db){const _0x1b9ffa=_0x1b3401;return v[_0x1b9ffa(0x128)](_0xb03a7c[_0x1b9ffa(0x156)],{'key':_0x1bb4c6,...y(_0xb03a7c,_0x55fe50,_0x3625db),..._0x4a59a3},(F(_0xb03a7c,_0x55fe50)['children']||[])[_0x1b9ffa(0x10a)]((_0x1e4e98,_0x59e63a)=>j(_0x1e4e98,_0x1bb4c6+'-'+_0xb03a7c['tag']+'-'+_0x59e63a,_0x55fe50,void 0x0,_0x3625db)));}function y(_0x5a3172,_0x207e4b,_0x2755eb){const _0x59c8b7=_0x1b3401,_0x5bbd9d={..._0x5a3172[_0x59c8b7(0x125)]};_0x2755eb!=null&&_0x2755eb[_0x59c8b7(0x1aa)]&&_0x5bbd9d[_0x59c8b7(0x1a8)]===_0x59c8b7(0x1aa)&&(_0x5bbd9d[_0x59c8b7(0x1a8)]=_0x2755eb[_0x59c8b7(0x1aa)]),_0x5a3172['tag']==='mask'&&_0x5bbd9d['id']&&(_0x5bbd9d['id']=_0x5bbd9d['id']+_0x207e4b[_0x59c8b7(0xed)]),Object[_0x59c8b7(0x17e)](_0x5bbd9d)['forEach'](([_0x183e74,_0x2be75d])=>{const _0x1cb93f=_0x59c8b7;_0x183e74===_0x1cb93f(0x162)&&typeof _0x2be75d==_0x1cb93f(0x143)&&(_0x5bbd9d[_0x183e74]=_0x2be75d[_0x1cb93f(0x167)](/url\(#(.*)\)/,_0x1cb93f(0x149)+_0x207e4b['idSuffix']+')'));});const {defIds:_0x153cb0}=_0x207e4b;return!_0x153cb0||_0x153cb0[_0x59c8b7(0x163)]===0x0||(_0x5a3172[_0x59c8b7(0x156)]===_0x59c8b7(0x158)&&_0x5bbd9d[_0x59c8b7(0x134)]&&(_0x5bbd9d[_0x59c8b7(0x134)]=_0x5bbd9d[_0x59c8b7(0x134)]+_0x207e4b['idSuffix']),Object[_0x59c8b7(0x17e)](_0x5bbd9d)[_0x59c8b7(0x187)](([_0x5c88be,_0x5c302c])=>{const _0x34f08f=_0x59c8b7;typeof _0x5c302c=='string'&&(_0x5bbd9d[_0x5c88be]=_0x5c302c[_0x34f08f(0x167)](/url\(#(.*)\)/,_0x34f08f(0x149)+_0x207e4b[_0x34f08f(0xed)]+')'));})),_0x5bbd9d;}function F(_0x3c1fa6,_0x4f7188){const _0x4740f1=_0x1b3401;var _0x1b4307;const {defIds:_0x4245f8}=_0x4f7188;return!_0x4245f8||_0x4245f8[_0x4740f1(0x163)]===0x0?_0x3c1fa6:_0x3c1fa6[_0x4740f1(0x156)]===_0x4740f1(0xf0)&&((_0x1b4307=_0x3c1fa6[_0x4740f1(0x191)])!=null&&_0x1b4307[_0x4740f1(0x163)])?{..._0x3c1fa6,'children':_0x3c1fa6['children'][_0x4740f1(0x10a)](_0x5d2d35=>typeof _0x5d2d35['attrs']['id']==_0x4740f1(0x143)&&_0x4245f8&&_0x4245f8[_0x4740f1(0x122)](_0x5d2d35[_0x4740f1(0x125)]['id'])?{..._0x5d2d35,'attrs':{..._0x5d2d35[_0x4740f1(0x125)],'id':_0x5d2d35[_0x4740f1(0x125)]['id']+_0x4f7188[_0x4740f1(0xed)]}}:_0x5d2d35)}:_0x3c1fa6;}function H(){const _0x39f34b=_0x1b3401;return Math[_0x39f34b(0xf8)]()[_0x39f34b(0x104)](0x24)['substring'](0x2,0x8);}x[_0x1b3401(0xee)]=_0x1b3401(0xe2);const V={'tag':'svg','attrs':{'xmlns':_0x1b3401(0x131),'fill':_0x1b3401(0x12a),'viewBox':_0x1b3401(0x18f),'width':'1em','height':_0x1b3401(0x152)},'children':[{'tag':_0x1b3401(0x15d),'attrs':{'fill':_0x1b3401(0x164),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x1b3401(0x164),'d':_0x1b3401(0x1ab),'fillRule':_0x1b3401(0x101),'clipRule':_0x1b3401(0x101)}}]},R=v['forwardRef'](function(_0x205bca,_0x3167f2){const _0x4add07=_0x1b3401;return v[_0x4add07(0x128)](x,Object[_0x4add07(0x198)]({},_0x205bca,{'id':_0x4add07(0x141),'ref':_0x3167f2,'icon':V}));});R[_0x1b3401(0xee)]=_0x1b3401(0x17b);class E extends o[_0x1b3401(0x13b)]{constructor(){const _0x5371cb=_0x1b3401;super(...arguments),_(this,_0x5371cb(0x176),new Set()),_(this,'_reporters',new Set());}[_0x1b3401(0x166)](_0x7f7ce9){const _0x5af53c=_0x1b3401;return this[_0x5af53c(0x176)][_0x5af53c(0x157)](_0x7f7ce9),o[_0x5af53c(0x15c)](()=>this[_0x5af53c(0x176)][_0x5af53c(0x165)](_0x7f7ce9));}[_0x1b3401(0x19d)](_0x2e0b22){const _0x59c209=_0x1b3401;return this['_reporters']['add'](_0x2e0b22),o[_0x59c209(0x15c)](()=>this['_reporters']['delete'](_0x2e0b22));}[_0x1b3401(0x11d)](_0x251a9c){const _0x3c9cce=_0x1b3401;return this[_0x3c9cce(0x176)][_0x3c9cce(0x14a)](_0x251a9c);}[_0x1b3401(0x18e)](_0x2a4f67){const _0x10c810=_0x1b3401;return Array[_0x10c810(0x199)](this[_0x10c810(0x12e)])[_0x10c810(0x10a)](_0x316c64=>_0x316c64(_0x2a4f67));}}var M=Object[_0x1b3401(0x17c)],P=(_0x48982a,_0x59aaaf,_0x6bb4e0,_0x279717)=>{const _0x1b0d96=_0x1b3401;for(var _0x36d47b=_0x279717>0x1?void 0x0:_0x279717?M(_0x59aaaf,_0x6bb4e0):_0x59aaaf,_0x12baf5=_0x48982a[_0x1b0d96(0x163)]-0x1,_0x32f462;_0x12baf5>=0x0;_0x12baf5--)(_0x32f462=_0x48982a[_0x12baf5])&&(_0x36d47b=_0x32f462(_0x36d47b)||_0x36d47b);return _0x36d47b;},S=(_0xe60488,_0x321d19)=>(_0x3a4186,_0x466226)=>_0x321d19(_0x3a4186,_0x466226,_0xe60488);exports[_0x1b3401(0x1a5)]=class extends o[_0x1b3401(0x18d)]{constructor(_0x22aedc,_0x2e8cde,_0x4207cd){const _0x268378=_0x1b3401;super(),_(this,_0x268378(0x155),new Map()),(this[_0x268378(0xd9)]=_0x22aedc,this[_0x268378(0x108)]=_0x2e8cde,this['_collabSessionService']=_0x4207cd,this['_init']());}async[_0x1b3401(0x17f)](_0x1f68cd){const _0x583453=_0x1b3401;return this[_0x583453(0x155)][_0x583453(0x14a)](_0x1f68cd)||await this[_0x583453(0x16e)](_0x1f68cd),this[_0x583453(0x155)][_0x583453(0x109)](_0x1f68cd);}['getLiveShareCoordinatorSync'](_0x185a5d){const _0x4d81e3=_0x1b3401;var _0x5673c4;return(_0x5673c4=this[_0x4d81e3(0x155)][_0x4d81e3(0x109)](_0x185a5d))!=null?_0x5673c4:null;}[_0x1b3401(0x12d)](){const _0x5694d9=_0x1b3401;this[_0x5694d9(0xd9)][_0x5694d9(0x19c)](o[_0x5694d9(0x139)][_0x5694d9(0x10e)])['pipe'](I[_0x5694d9(0xdb)](this[_0x5694d9(0x127)]))[_0x5694d9(0x170)](async _0x16f6b8=>{const _0x22b5a7=_0x5694d9,_0x17bf87=_0x16f6b8[_0x22b5a7(0xf3)]();this[_0x22b5a7(0x155)][_0x22b5a7(0x14a)](_0x17bf87)||this['_startLiveShareCoordinator'](_0x17bf87);}),this['_univerInstanceService'][_0x5694d9(0x183)](o[_0x5694d9(0x139)][_0x5694d9(0x10e)])['pipe'](I['takeUntil'](this[_0x5694d9(0x127)]))[_0x5694d9(0x170)](_0x56e555=>{const _0x5c1244=_0x5694d9,_0x5cc818=_0x56e555[_0x5c1244(0xf3)](),_0x4b1dfe=this['_entities'][_0x5c1244(0x109)](_0x5cc818);_0x4b1dfe==null||_0x4b1dfe[_0x5c1244(0xf4)]();});}async[_0x1b3401(0x16e)](_0x187341){const _0x276761=_0x1b3401,_0x3cc6f7=await this[_0x276761(0x189)]['requireSession'](_0x187341),_0x3010be=this[_0x276761(0x108)][_0x276761(0xf6)](exports[_0x276761(0x1a2)],_0x187341,_0x3cc6f7);return _0x3010be[_0x276761(0x159)](),this[_0x276761(0x155)][_0x276761(0x12f)](_0x187341,_0x3010be),_0x3010be;}},exports[_0x1b3401(0x1a5)]=P([S(0x0,o[_0x1b3401(0xfb)]),S(0x1,o['Inject'](o[_0x1b3401(0x16a)])),S(0x2,o['Inject'](b[_0x1b3401(0x11e)]))],exports[_0x1b3401(0x1a5)]);var u=(_0x3f4010=>(_0x3f4010[_0x1b3401(0x178)]=_0x1b3401(0x168),_0x3f4010['IDLE']=_0x1b3401(0x13f),_0x3f4010[_0x1b3401(0x194)]=_0x1b3401(0x13e),_0x3f4010[_0x1b3401(0x19f)]='not-following',_0x3f4010[_0x1b3401(0x113)]=_0x1b3401(0x160),_0x3f4010))(u||{});const k=_0x1b3401(0x1a3),q=0xc8;exports[_0x1b3401(0x1a2)]=class extends o['RxDisposable']{constructor(_0x500f41,_0x27a632,_0x3470b3,_0x513958,_0x25e7ed){const _0x20118b=_0x1b3401;super(),_(this,_0x20118b(0x172),new O[(_0x20118b(0x111))](_0x20118b(0x13f))),_(this,_0x20118b(0x138),this[_0x20118b(0x172)][_0x20118b(0x13a)]()),_(this,'_init',!0x1),_(this,_0x20118b(0x137),null),_(this,_0x20118b(0xeb),null),(this[_0x20118b(0x105)]=_0x500f41,this[_0x20118b(0x120)]=_0x27a632,this[_0x20118b(0x16f)]=_0x3470b3,this[_0x20118b(0xe9)]=_0x513958,this[_0x20118b(0x13c)]=_0x25e7ed);}get[_0x1b3401(0x112)](){const _0x3a21b0=_0x1b3401;return this[_0x3a21b0(0x172)]['getValue']();}['dispose'](){const _0x3e0628=_0x1b3401;var _0x446f8b;(_0x446f8b=this[_0x3e0628(0x137)])==null||_0x446f8b[_0x3e0628(0xf4)](),this[_0x3e0628(0x172)]['next']('idle'),this[_0x3e0628(0x172)][_0x3e0628(0x100)]();}[_0x1b3401(0x1a6)](){const _0x28670e=_0x1b3401;return this[_0x28670e(0x112)];}[_0x1b3401(0x159)](){const _0xf7774b=_0x1b3401;this['_init']||(this[_0xf7774b(0x12d)]=!0x0,this[_0xf7774b(0x120)][_0xf7774b(0x16d)][_0xf7774b(0x123)](I['takeUntil'](this[_0xf7774b(0x127)]))['subscribe'](_0xcd1218=>{const _0x45f528=_0xf7774b;switch(_0xcd1218){case b['SessionStatus']['OFFLINE']:this[_0x45f528(0xef)]();break;case b[_0x45f528(0x142)]['ONLINE']:this[_0x45f528(0xfa)]();break;}}),this[_0xf7774b(0x120)][_0xf7774b(0x175)]['pipe'](I[_0xf7774b(0xdb)](this['dispose$']))[_0xf7774b(0x170)](_0x4c7916=>{const _0x190586=_0xf7774b,{eventID:_0x210ba4}=_0x4c7916;switch(_0x210ba4){case d['CollaborationEvent'][_0x190586(0xe3)]:this['_handleNewHost'](_0x4c7916);break;case d['CollaborationEvent'][_0x190586(0x130)]:this['_handleOperation'](_0x4c7916);break;case d[_0x190586(0x12b)][_0x190586(0xd8)]:this[_0x190586(0x146)]();break;case d[_0x190586(0x12b)][_0x190586(0x114)]:this['_handleNewChangeSets'](_0x4c7916);break;}}));}[_0x1b3401(0x117)](){const _0x2336f5=_0x1b3401;this[_0x2336f5(0x120)][_0x2336f5(0xfd)]({'eventID':d[_0x2336f5(0x12b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x2336f5(0x11c)]()}},this[_0x2336f5(0x105)]);}[_0x1b3401(0x173)](){const _0x35c3bd=_0x1b3401;this[_0x35c3bd(0x112)]===_0x35c3bd(0x160)&&(this[_0x35c3bd(0x172)]['next'](_0x35c3bd(0x13f)),this[_0x35c3bd(0x120)][_0x35c3bd(0xfd)]({'eventID':d[_0x35c3bd(0x12b)][_0x35c3bd(0xd8)],'data':{'unitID':this[_0x35c3bd(0x105)]}},this[_0x35c3bd(0x105)]));}[_0x1b3401(0xe8)](){const _0x199b03=_0x1b3401;this[_0x199b03(0x112)]===_0x199b03(0x124)&&(this['_status$']['next']('following'),this[_0x199b03(0xe5)]());}[_0x1b3401(0x1a7)](){const _0x57e76b=_0x1b3401;this['_status']===_0x57e76b(0x13e)&&this[_0x57e76b(0x103)]();}['_handleNewHost'](_0x2258a4){const _0x22c09c=_0x1b3401,{presenter:_0x1bbf6b}=_0x2258a4['data'],_0x2a3179=this[_0x22c09c(0x120)][_0x22c09c(0x11c)]();this['_presenter']=_0x1bbf6b,_0x1bbf6b===_0x2a3179?(this[_0x22c09c(0x103)](),this[_0x22c09c(0x186)]()):this[_0x22c09c(0x112)]!=='not-following'&&(this[_0x22c09c(0x10f)](),this[_0x22c09c(0xe5)]());}[_0x1b3401(0x107)](){const _0x505571=_0x1b3401,_0x279fc8={'eventID':d['CollaborationEvent'][_0x505571(0xf2)]};this[_0x505571(0x120)][_0x505571(0xfd)](_0x279fc8,this[_0x505571(0x105)]);}[_0x1b3401(0x146)](){const _0x13572c=_0x1b3401;this['_presenter']=null,this[_0x13572c(0x112)]!==_0x13572c(0x160)&&this[_0x13572c(0x106)]();}[_0x1b3401(0x19a)](_0x44acb1){const _0x112818=_0x1b3401;if(this[_0x112818(0x112)]==='following'&&this[_0x112818(0xeb)]===_0x44acb1[_0x112818(0x144)]['memberID']){const _0x393a2d=d[_0x112818(0x195)](_0x44acb1[_0x112818(0x144)])[_0x112818(0x145)]['reverse']()[_0x112818(0x14b)](_0x39e87f=>_0x39e87f['id']===C[_0x112818(0x18b)]['id']);if(_0x393a2d){const _0x557147=_0x393a2d[_0x112818(0x10b)][_0x112818(0xde)],_0x37ec06=_0x393a2d['params'][_0x112818(0x180)]['id'];setTimeout(()=>{const _0x358f86=_0x112818;this['_commandService'][_0x358f86(0x15b)](C[_0x358f86(0x11b)]['id'],{'unitId':_0x557147,'subUnitId':_0x37ec06},{'fromCollab':!0x0});});}}}[_0x1b3401(0x186)](){const _0x269dd4=_0x1b3401;this[_0x269dd4(0x172)][_0x269dd4(0x182)](_0x269dd4(0x160));const _0x2eea39=new Map(),_0x19afab=this[_0x269dd4(0x137)]=new o[(_0x269dd4(0x150))]();_0x19afab[_0x269dd4(0x157)](o['toDisposable'](()=>{const _0x58c970=_0x269dd4;_0x2eea39[_0x58c970(0x187)](_0x51a9aa=>_0x51a9aa[_0x58c970(0x100)]()),_0x2eea39[_0x58c970(0x15f)]();})),_0x19afab[_0x269dd4(0x157)](this[_0x269dd4(0x13c)][_0x269dd4(0x174)](_0x4e094b=>{const _0x2f45e1=_0x269dd4;var _0x14afaf;if(_0x4e094b[_0x2f45e1(0xe7)]!==o[_0x2f45e1(0x15a)]['OPERATION']||!this['_liveShareService'][_0x2f45e1(0x11d)](_0x4e094b['id']))return;const {id:_0xb62b7}=_0x4e094b;let _0x11d585;_0x2eea39[_0x2f45e1(0x14a)](_0xb62b7)?_0x11d585=_0x2eea39['get'](_0xb62b7):(_0x11d585=new O[(_0x2f45e1(0xd7))](),_0x2eea39[_0x2f45e1(0x12f)](_0xb62b7,_0x11d585),_0x11d585[_0x2f45e1(0x123)](I[_0x2f45e1(0x151)]((_0x14afaf=this['_configService']['getConfig'](k))!=null?_0x14afaf:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x50b542=>{const _0x20634b=_0x2f45e1;this['_collabSession'][_0x20634b(0xfd)]({'eventID':d[_0x20634b(0x12b)][_0x20634b(0x130)],'data':{'unitID':this['_unitID'],'operations':{[_0x50b542['id']]:{'id':_0x50b542['id'],'params':JSON[_0x20634b(0x16c)](_0x50b542[_0x20634b(0x10b)])}}}},this[_0x20634b(0x105)]);})),_0x11d585[_0x2f45e1(0x182)](_0x4e094b);})),this[_0x269dd4(0xe9)][_0x269dd4(0x18e)](this[_0x269dd4(0x105)])[_0x269dd4(0x187)](_0x2bb803=>this[_0x269dd4(0x120)][_0x269dd4(0xfd)]({'eventID':d[_0x269dd4(0x12b)][_0x269dd4(0x130)],'data':{'unitID':this[_0x269dd4(0x105)],'operations':{[_0x2bb803['id']]:{'id':_0x2bb803['id'],'params':JSON[_0x269dd4(0x16c)](_0x2bb803[_0x269dd4(0x10b)])}}}},this[_0x269dd4(0x105)]));}[_0x1b3401(0x10f)](){const _0x5517be=_0x1b3401;var _0xeaab31;this[_0x5517be(0x172)][_0x5517be(0x182)]('idle'),(_0xeaab31=this[_0x5517be(0x137)])==null||_0xeaab31['dispose'](),this[_0x5517be(0x137)]=null;}[_0x1b3401(0xe5)](){const _0x9640ec=_0x1b3401;var _0x2f8f79;(_0x2f8f79=this['_commandDisposable'])==null||_0x2f8f79['dispose'](),this[_0x9640ec(0x172)][_0x9640ec(0x182)]('following');}[_0x1b3401(0x106)](){const _0x1a3112=_0x1b3401;var _0x4ede84;this[_0x1a3112(0x172)][_0x1a3112(0x182)](_0x1a3112(0x13f)),(_0x4ede84=this[_0x1a3112(0x137)])==null||_0x4ede84['dispose'](),this[_0x1a3112(0x137)]=null;}['_stopFollowing'](){const _0x2a57ef=_0x1b3401;var _0x392292;this[_0x2a57ef(0x172)]['next'](_0x2a57ef(0x124)),(_0x392292=this[_0x2a57ef(0x137)])==null||_0x392292[_0x2a57ef(0xf4)]();}[_0x1b3401(0x179)](_0x549b31){const _0x1c0d53=_0x1b3401;if(['presenting','not-following',_0x1c0d53(0x168)][_0x1c0d53(0x122)](this[_0x1c0d53(0x112)])||!_0x549b31[_0x1c0d53(0x144)]['presenter']||_0x549b31[_0x1c0d53(0x144)]['presenter']===this[_0x1c0d53(0x120)][_0x1c0d53(0x11c)]())return;this[_0x1c0d53(0x112)]===_0x1c0d53(0x13f)&&this[_0x1c0d53(0xe5)]();const _0x4f4bd6=_0x549b31[_0x1c0d53(0x144)]['operations'];Object[_0x1c0d53(0xf7)](_0x4f4bd6)[_0x1c0d53(0x187)](_0xe223ea=>{const _0x30522f=_0x1c0d53;this[_0x30522f(0x13c)][_0x30522f(0x15b)](_0xe223ea['id'],_0xe223ea[_0x30522f(0x10b)]?JSON[_0x30522f(0x153)](_0xe223ea[_0x30522f(0x10b)]):null,{'fromCollab':!0x0});});}[_0x1b3401(0xef)](){const _0x7c4b9f=_0x1b3401;var _0x290680;this[_0x7c4b9f(0x172)]['next'](_0x7c4b9f(0x168)),(_0x290680=this[_0x7c4b9f(0x137)])==null||_0x290680[_0x7c4b9f(0xf4)]();}[_0x1b3401(0xfa)](){const _0x531136=_0x1b3401;this[_0x531136(0x172)][_0x531136(0x182)](_0x531136(0x13f)),this[_0x531136(0x107)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x1b3401(0x169)]),S(0x3,o[_0x1b3401(0xff)](E)),S(0x4,o[_0x1b3401(0x115)])],exports[_0x1b3401(0x1a2)]);function $(){const _0x2e0e0c=_0x1b3401,_0x16ebf9=p['useDependency'](exports['LiveShareController']),_0x5174f0=p['useDependency'](o[_0x2e0e0c(0xfb)]),_0x456ae6=p[_0x2e0e0c(0x196)](()=>_0x5174f0[_0x2e0e0c(0x12c)](o[_0x2e0e0c(0x139)][_0x2e0e0c(0x10e)]),void 0x0,!0x1,[]),[_0xc0746f,_0x2a27d7]=v[_0x2e0e0c(0x185)](null),[_0x4e46e6,_0x59d2b2]=v[_0x2e0e0c(0x185)](u[_0x2e0e0c(0x17d)]),_0x4c13e8=v[_0x2e0e0c(0xda)](null);return v[_0x2e0e0c(0x171)](()=>(_0x456ae6&&_0x16ebf9['getLiveShareCoordinator'](_0x456ae6['getUnitId']())[_0x2e0e0c(0x135)](_0x29ac5b=>{const _0x8dc728=_0x2e0e0c;_0x2a27d7(_0x29ac5b),_0x4c13e8[_0x8dc728(0x1ac)]=_0x29ac5b['status$'][_0x8dc728(0x170)](_0x220a49=>{_0x59d2b2(_0x220a49);});}),()=>{const _0x45a540=_0x2e0e0c;var _0x1d3614;(_0x1d3614=_0x4c13e8[_0x45a540(0x1ac)])==null||_0x1d3614['unsubscribe'](),_0x4c13e8[_0x45a540(0x1ac)]=null;}),[_0x456ae6,_0x16ebf9]),_0xc0746f?l[_0x2e0e0c(0xea)](f['Dropdown'],{'align':_0x2e0e0c(0x119),'disabled':_0x4e46e6===u[_0x2e0e0c(0x178)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x2e0e0c(0xea)](W,{'status':_0x4e46e6,'coordinator':_0xc0746f}),'children':l[_0x2e0e0c(0xea)](_0x2e0e0c(0x118),{'className':f[_0x2e0e0c(0x132)](_0x2e0e0c(0x10c),{'univer-cursor-not-allowed':_0x4e46e6===u[_0x2e0e0c(0x178)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4e46e6!==u[_0x2e0e0c(0x178)]}),'type':_0x2e0e0c(0x118),'children':l['jsx'](R,{'className':_0x2e0e0c(0x193)})})}):null;}function W(_0x30a7fd){const _0x1a59d8=_0x1b3401,{status:_0x19dee1,coordinator:_0x23f495}=_0x30a7fd;switch(_0x19dee1){case u[_0x1a59d8(0x17d)]:return l[_0x1a59d8(0xea)](G,{'coordinator':_0x23f495});case u['FOLLOWING']:return l[_0x1a59d8(0xea)](B,{'coordinator':_0x23f495});case u[_0x1a59d8(0x19f)]:return l[_0x1a59d8(0xea)](Y,{'coordinator':_0x23f495});case u[_0x1a59d8(0x178)]:return l[_0x1a59d8(0xea)](J,{});case u['PRESENTING']:return l[_0x1a59d8(0xea)](Z,{'coordinator':_0x23f495});default:return null;}}function G(_0x194ce4){const _0x1ef3ae=_0x1b3401,{coordinator:_0x38f9b3}=_0x194ce4;return l['jsxs'](l[_0x1ef3ae(0x161)],{'children':[l['jsx'](_0x1ef3ae(0x19b),{'className':_0x1ef3ae(0x1a9),'children':'Present\x20this\x20document'}),l[_0x1ef3ae(0xea)](f['Button'],{'onClick':()=>_0x38f9b3['tryStartPresenting'](),'children':_0x1ef3ae(0x14c)})]});}function B(_0x13bf68){const _0x35f2d3=_0x1b3401,{coordinator:_0x22a0b1}=_0x13bf68;return l[_0x35f2d3(0x11a)](l['Fragment'],{'children':[l[_0x35f2d3(0xea)](_0x35f2d3(0x19b),{'className':_0x35f2d3(0x1a9),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x35f2d3(0xea)](f[_0x35f2d3(0xe4)],{'onClick':()=>_0x22a0b1[_0x35f2d3(0x1a7)](),'children':_0x35f2d3(0x154)})]});}function Y(_0x327693){const _0x3e6c00=_0x1b3401,{coordinator:_0x269f30}=_0x327693;return l['jsxs'](l[_0x3e6c00(0x161)],{'children':[l['jsx'](_0x3e6c00(0x19b),{'className':_0x3e6c00(0x1a9),'children':_0x3e6c00(0xf9)}),l[_0x3e6c00(0xea)](f[_0x3e6c00(0xe4)],{'variant':_0x3e6c00(0xec),'onClick':()=>_0x269f30['startFollowing'](),'children':_0x3e6c00(0x136)})]});}function Z(_0x1c4228){const _0x267a67=_0x1b3401,{coordinator:_0xea2861}=_0x1c4228;return l['jsxs'](l[_0x267a67(0x161)],{'children':[l[_0x267a67(0xea)](_0x267a67(0x19b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x267a67(0xe6)}),l[_0x267a67(0xea)](f[_0x267a67(0xe4)],{'variant':_0x267a67(0x184),'onClick':()=>_0xea2861[_0x267a67(0x173)](),'children':_0x267a67(0x188)})]});}function J(){const _0x5a0a2c=_0x1b3401;return l['jsx'](l[_0x5a0a2c(0x161)],{'children':_0x5a0a2c(0x19e)});}var K=Object[_0x1b3401(0x17c)],z=(_0x592e8f,_0x5950db,_0x2d77e8,_0x3560d6)=>{for(var _0x306ce7=_0x3560d6>0x1?void 0x0:_0x3560d6?K(_0x5950db,_0x2d77e8):_0x5950db,_0x38b650=_0x592e8f['length']-0x1,_0xf10e81;_0x38b650>=0x0;_0x38b650--)(_0xf10e81=_0x592e8f[_0x38b650])&&(_0x306ce7=_0xf10e81(_0x306ce7)||_0x306ce7);return _0x306ce7;},L=(_0x3b2ca2,_0x263f90)=>(_0x345be0,_0x5de25c)=>_0x263f90(_0x345be0,_0x5de25c,_0x3b2ca2);exports[_0x1b3401(0x18a)]=class extends o[_0x1b3401(0x13b)]{constructor(_0x254fc9,_0x18abf6){const _0x51bd0f=_0x1b3401;super(),this[_0x51bd0f(0x108)]=_0x254fc9,this['_uiPartsService']=_0x18abf6,this['_mountLiveShare']();}[_0x1b3401(0x110)](){const _0x19af5f=_0x1b3401;this['disposeWithMe'](this[_0x19af5f(0x140)][_0x19af5f(0xe0)](p[_0x19af5f(0xfe)][_0x19af5f(0x1a1)],()=>p['connectInjector']($,this[_0x19af5f(0x108)])));}},exports[_0x1b3401(0x18a)]=z([L(0x0,o[_0x1b3401(0xff)](o[_0x1b3401(0x16a)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);const Q=_0x1b3401(0xdf),w={};var X=Object[_0x1b3401(0x17c)],ee=(_0x1496b2,_0x4c6bed,_0x2bb425,_0x2aef68)=>{for(var _0xf7a4e5=_0x2aef68>0x1?void 0x0:_0x2aef68?X(_0x4c6bed,_0x2bb425):_0x4c6bed,_0x5b0100=_0x1496b2['length']-0x1,_0x2bf272;_0x5b0100>=0x0;_0x5b0100--)(_0x2bf272=_0x1496b2[_0x5b0100])&&(_0xf7a4e5=_0x2bf272(_0xf7a4e5)||_0xf7a4e5);return _0xf7a4e5;},te=(_0x283677,_0x23731d)=>(_0x4627ea,_0x2c5e40)=>_0x23731d(_0x4627ea,_0x2c5e40,_0x283677);let m=class extends o['Disposable']{constructor(_0x420b40){const _0x132fb5=_0x1b3401;super(),this[_0x132fb5(0xe9)]=_0x420b40,this['_init']();}[_0x1b3401(0x12d)](){const _0x1f63ca=_0x1b3401;[D[_0x1f63ca(0x14d)]['id'],D[_0x1f63ca(0x15e)]['id'],C[_0x1f63ca(0x11b)]['id']][_0x1f63ca(0x187)](_0x11bea0=>{const _0x21a6f4=_0x1f63ca;this[_0x21a6f4(0x126)](this[_0x21a6f4(0xe9)][_0x21a6f4(0x166)](_0x11bea0));});}};m=ee([te(0x0,o[_0x1b3401(0xff)](E))],m);var ie=Object[_0x1b3401(0x14f)],se=Object['getOwnPropertyDescriptor'],ne=(_0x29738f,_0x27a932,_0x53826c)=>_0x27a932 in _0x29738f?ie(_0x29738f,_0x27a932,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53826c}):_0x29738f[_0x27a932]=_0x53826c,re=(_0x2bfb52,_0x29b1b3,_0xcb84c0,_0x336a7f)=>{const _0x145f1d=_0x1b3401;for(var _0x3a303b=_0x336a7f>0x1?void 0x0:_0x336a7f?se(_0x29b1b3,_0xcb84c0):_0x29b1b3,_0x4ebf37=_0x2bfb52[_0x145f1d(0x163)]-0x1,_0x5b6dda;_0x4ebf37>=0x0;_0x4ebf37--)(_0x5b6dda=_0x2bfb52[_0x4ebf37])&&(_0x3a303b=_0x5b6dda(_0x3a303b)||_0x3a303b);return _0x3a303b;},N=(_0x4f2257,_0x313e91)=>(_0x571cac,_0xa8778a)=>_0x313e91(_0x571cac,_0xa8778a,_0x4f2257),A=(_0x50d3c5,_0x3e259e,_0x3c771c)=>ne(_0x50d3c5,typeof _0x3e259e!=_0x1b3401(0x102)?_0x3e259e+'':_0x3e259e,_0x3c771c);const oe=_0x1b3401(0x133);exports[_0x1b3401(0x148)]=class extends o[_0x1b3401(0xf1)]{constructor(_0x3a2cce=w,_0xd86513,_0x1fa8f){const _0x1dcf78=_0x1b3401;super(),this[_0x1dcf78(0x1a4)]=_0x3a2cce,this[_0x1dcf78(0x108)]=_0xd86513,this[_0x1dcf78(0x16f)]=_0x1fa8f;const {..._0x470080}=o[_0x1dcf78(0x181)]({},w,this['_config']);this[_0x1dcf78(0x16f)]['setConfig'](Q,_0x470080);}[_0x1b3401(0x18c)](){const _0x44c8e6=_0x1b3401;o['registerDependencies'](this['_injector'],o[_0x44c8e6(0x17a)]([[E],[exports[_0x44c8e6(0x1a5)]],[m],[exports[_0x44c8e6(0x18a)]]],this[_0x44c8e6(0x1a4)][_0x44c8e6(0x121)])),o[_0x44c8e6(0xfc)](this[_0x44c8e6(0x108)],[[m]]);}['onRendered'](){o['touchDependencies'](this['_injector'],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x1b3401(0x148)],'type',o[_0x1b3401(0x139)][_0x1b3401(0xe1)]),A(exports[_0x1b3401(0x148)],_0x1b3401(0x10d),oe),exports['UniverLiveSharePlugin']=re([o[_0x1b3401(0x147)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x1b3401(0xff)](o[_0x1b3401(0x16a)])),N(0x2,o[_0x1b3401(0x169)])],exports[_0x1b3401(0x148)]),exports['LiveShare']=$,exports[_0x1b3401(0xdc)]=E,exports['LiveShareStatus']=u;
|
|
1
|
+
'use strict';function _0x37d0(){const _0x1829a3=['values','LIVESHARE_NEW_HOST','UniverLiveSharePlugin','PRESENTING','requireSession','_handleOffline','throttleTime','delete','toDisposable','startFollowing','text','_init','_unitID','SetWorksheetActiveOperation','operations','Plugin','following','SessionStatus','colorChannel1','CollaborationEvent','createElement','UNIVER_SHEET','_stopFollowing','current','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOnline','24790XnIRhK','children','NEW_CHANGESETS','_commandService','offline','live-share-icon','mask','fill','_status$','stringify','666076aFIEqY','getInitialStates','add','clear','_commandDisposable','LIVESHARE_TERMINATE','defIds','589307oJByKr','includes','FOLLOWING','OFFLINE','getCurrentTypeOfUnit$','BuiltInUIPart','_collabSessionService','Module','get','currentColor','SetScrollOperation','symbol','Subject','getUnitId','forwardRef','sessionStatus$','SetZoomRatioOperation','memberID','idle','_startLiveShareCoordinator','registerSharedOperation','ONLINE','has','jsx','_fetchOperations','then','event$','useDependency','75964XYiBex','substring','You\x27re\x20not\x20following\x20the\x20presenter','_uiPartsService','string','UniverInstanceType','status$','useEffect','unitId','registerInitialStateReporter','_entities','button','presenting','6jJSkrt','BehaviorSubject','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','registerComponent','OPERATION','_reporters','_config','Fragment','map','_liveShareService','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','UniverCollaborationClientPlugin','forEach','LiveShareStatus','onStarting','HEADER_MENU','toString','url(#$1','Inject','find','UNIVER_LIVE_SHARE_PLUGIN','getMemberID','setConfig','_status','553255ZxmTTC','stopPresenting','set','evenodd','_mountLiveShare','_collabSession','next','not-following','268624fuhIMS','Stop\x20presenting','merge','useRef','length','asObservable','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','connectInjector','198153FckElv','_presenter','complete','disposeWithMe','208mnBZTY','getLiveShareCoordinator','getValue','defs','defineProperty','mergeOverrideWithDependencies','_handleNewChangeSets','Disposable','getOwnPropertyDescriptor','_beIdle','entries','Button','Stop\x20following','UNIVER_UNKNOWN','getLiveShareCoordinatorSync','sheet','You\x27re\x20following\x20the\x20presenter','0\x200\x2017\x2017','IDLE','2277VsCPkD','pipe','IConfigService','presenter','getTypeOfUnitDisposed$','replace','DependentOn','_handleOperation','executeCommand','univer-size-4','ICommandService','data','LiveShareController','trim','useState','CommandType','getStatus','attrs','LiveShareCoordinator','LIVESHARE_FETCH_OPERATIONS','dispose','parse','SAME_OPERATION_SHARE_INTERVAL','univerjs-icon\x20univerjs-icon-','subscribe','RxDisposable','send','1em','takeUntil','path','Injector','div','registerDependencies','LiveShareIcon','dispose$','from','_stopPresenting','CollaborationSessionService','_univerInstanceService','createInstance','LiveShare','_configService','http://www.w3.org/2000/svg','DisposableCollection','You\x27are\x20offline.','onRendered','tag','Present\x20this\x20document','idSuffix','pluginName','onCommandExecuted','InsertSheetMutation','touchDependencies','DesktopLiveShareController','stopFollowing','displayName','mutations','You\x27re\x20presenting\x20the\x20document','jsxs','init','_sharedOperations','none','_handleTerminate','end','_startFollowing','params','type','reverse'];_0x37d0=function(){return _0x1829a3;};return _0x37d0();}const _0x392f9e=_0x4739;(function(_0x2b7e52,_0x3e6b18){const _0x402ee5=_0x4739,_0x2f6b9f=_0x2b7e52();while(!![]){try{const _0x443d94=parseInt(_0x402ee5(0x163))/0x1+parseInt(_0x402ee5(0x1ac))/0x2+parseInt(_0x402ee5(0x1b4))/0x3+-parseInt(_0x402ee5(0x15c))/0x4+-parseInt(_0x402ee5(0x1a4))/0x5*(-parseInt(_0x402ee5(0x18c))/0x6)+-parseInt(_0x402ee5(0x17f))/0x7*(-parseInt(_0x402ee5(0x1b8))/0x8)+parseInt(_0x402ee5(0xf4))/0x9*(-parseInt(_0x402ee5(0x152))/0xa);if(_0x443d94===_0x3e6b18)break;else _0x2f6b9f['push'](_0x2f6b9f['shift']());}catch(_0x3b59ce){_0x2f6b9f['push'](_0x2f6b9f['shift']());}}}(_0x37d0,0x5ee9f));var T=Object[_0x392f9e(0x1bc)],U=(_0x323ae1,_0x4fbfae,_0x1b84b4)=>_0x4fbfae in _0x323ae1?T(_0x323ae1,_0x4fbfae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b84b4}):_0x323ae1[_0x4fbfae]=_0x1b84b4,_=(_0x15ab11,_0xaa4127,_0xd4f95)=>U(_0x15ab11,typeof _0xaa4127!=_0x392f9e(0x16e)?_0xaa4127+'':_0xaa4127,_0xd4f95);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x392f9e(0x16a)});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:_0x21464d,..._0x5eeb77}){const _0x1129db=_0x392f9e,{icon:_0x1da564,id:_0x3aac3a,className:_0x2f46c4,extend:_0x1096b1,..._0x5297a6}=_0x5eeb77,_0xabc471=(_0x1129db(0x10b)+_0x3aac3a+'\x20'+(_0x2f46c4||''))[_0x1129db(0x101)](),_0x4f9d0e=v[_0x1129db(0x1af)]('_'+H());return j(_0x1da564,''+_0x3aac3a,{'defIds':_0x1da564[_0x1129db(0x162)],'idSuffix':_0x4f9d0e[_0x1129db(0x14f)]},{'ref':_0x21464d,'className':_0xabc471,..._0x5297a6},_0x1096b1);}function j(_0x51fb2b,_0x2ff63b,_0x131695,_0x219043,_0x4126e9){const _0x283271=_0x392f9e;return v[_0x283271(0x14c)](_0x51fb2b[_0x283271(0x122)],{'key':_0x2ff63b,...y(_0x51fb2b,_0x131695,_0x4126e9),..._0x219043},(F(_0x51fb2b,_0x131695)['children']||[])[_0x283271(0x194)]((_0x17c2cd,_0x299653)=>j(_0x17c2cd,_0x2ff63b+'-'+_0x51fb2b[_0x283271(0x122)]+'-'+_0x299653,_0x131695,void 0x0,_0x4126e9)));}function y(_0x2182df,_0x271bdf,_0x5ce5ec){const _0x429262=_0x392f9e,_0x2cfb8c={..._0x2182df[_0x429262(0x105)]};_0x5ce5ec!=null&&_0x5ce5ec['colorChannel1']&&_0x2cfb8c[_0x429262(0x159)]===_0x429262(0x14a)&&(_0x2cfb8c[_0x429262(0x159)]=_0x5ce5ec['colorChannel1']),_0x2182df[_0x429262(0x122)]===_0x429262(0x158)&&_0x2cfb8c['id']&&(_0x2cfb8c['id']=_0x2cfb8c['id']+_0x271bdf['idSuffix']),Object[_0x429262(0x1c2)](_0x2cfb8c)['forEach'](([_0x5c826b,_0x4385f7])=>{const _0x3f1bd4=_0x429262;_0x5c826b===_0x3f1bd4(0x158)&&typeof _0x4385f7==_0x3f1bd4(0x183)&&(_0x2cfb8c[_0x5c826b]=_0x4385f7['replace'](/url\(#(.*)\)/,_0x3f1bd4(0x19d)+_0x271bdf[_0x3f1bd4(0x124)]+')'));});const {defIds:_0x332c5e}=_0x271bdf;return!_0x332c5e||_0x332c5e[_0x429262(0x1b0)]===0x0||(_0x2182df[_0x429262(0x122)]==='use'&&_0x2cfb8c['xlink:href']&&(_0x2cfb8c['xlink:href']=_0x2cfb8c['xlink:href']+_0x271bdf[_0x429262(0x124)]),Object[_0x429262(0x1c2)](_0x2cfb8c)[_0x429262(0x198)](([_0xcd2884,_0x54d5bb])=>{const _0x397c6b=_0x429262;typeof _0x54d5bb=='string'&&(_0x2cfb8c[_0xcd2884]=_0x54d5bb[_0x397c6b(0xf9)](/url\(#(.*)\)/,_0x397c6b(0x19d)+_0x271bdf[_0x397c6b(0x124)]+')'));})),_0x2cfb8c;}function F(_0x478ebf,_0x2b2069){const _0x123e77=_0x392f9e;var _0x3e756e;const {defIds:_0x3b8286}=_0x2b2069;return!_0x3b8286||_0x3b8286['length']===0x0?_0x478ebf:_0x478ebf['tag']===_0x123e77(0x1bb)&&((_0x3e756e=_0x478ebf[_0x123e77(0x153)])!=null&&_0x3e756e[_0x123e77(0x1b0)])?{..._0x478ebf,'children':_0x478ebf[_0x123e77(0x153)][_0x123e77(0x194)](_0x4df7d0=>typeof _0x4df7d0[_0x123e77(0x105)]['id']=='string'&&_0x3b8286&&_0x3b8286['includes'](_0x4df7d0[_0x123e77(0x105)]['id'])?{..._0x4df7d0,'attrs':{..._0x4df7d0[_0x123e77(0x105)],'id':_0x4df7d0[_0x123e77(0x105)]['id']+_0x2b2069['idSuffix']}}:_0x4df7d0)}:_0x478ebf;}function H(){const _0x3b9547=_0x392f9e;return Math['random']()[_0x3b9547(0x19c)](0x24)[_0x3b9547(0x180)](0x2,0x8);}x[_0x392f9e(0x12b)]='UniverIcon';const V={'tag':'svg','attrs':{'xmlns':_0x392f9e(0x11e),'fill':_0x392f9e(0x131),'viewBox':_0x392f9e(0xf2),'width':_0x392f9e(0x10f),'height':'1em'},'children':[{'tag':_0x392f9e(0x111),'attrs':{'fill':_0x392f9e(0x16c),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x392f9e(0x111),'attrs':{'fill':_0x392f9e(0x16c),'d':_0x392f9e(0x196),'fillRule':_0x392f9e(0x1a7),'clipRule':_0x392f9e(0x1a7)}}]},R=v[_0x392f9e(0x171)](function(_0x21bda4,_0x49e407){const _0x5be590=_0x392f9e;return v[_0x5be590(0x14c)](x,Object['assign']({},_0x21bda4,{'id':_0x5be590(0x157),'ref':_0x49e407,'icon':V}));});R[_0x392f9e(0x12b)]=_0x392f9e(0x115);class E extends o[_0x392f9e(0x1bf)]{constructor(){const _0x11e917=_0x392f9e;super(...arguments),_(this,_0x11e917(0x130),new Set()),_(this,_0x11e917(0x191),new Set());}['registerSharedOperation'](_0x300ada){const _0x3b4d43=_0x392f9e;return this[_0x3b4d43(0x130)]['add'](_0x300ada),o[_0x3b4d43(0x140)](()=>this[_0x3b4d43(0x130)][_0x3b4d43(0x13f)](_0x300ada));}[_0x392f9e(0x188)](_0x8d30bd){const _0x7b1e06=_0x392f9e;return this[_0x7b1e06(0x191)][_0x7b1e06(0x15e)](_0x8d30bd),o[_0x7b1e06(0x140)](()=>this[_0x7b1e06(0x191)][_0x7b1e06(0x13f)](_0x8d30bd));}['shouldShareOperation'](_0x527e27){return this['_sharedOperations']['has'](_0x527e27);}['getInitialStates'](_0x2acb90){const _0x46fcab=_0x392f9e;return Array[_0x46fcab(0x117)](this[_0x46fcab(0x191)])['map'](_0x1c7d51=>_0x1c7d51(_0x2acb90));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x4e88aa,_0x26d286,_0x30234b,_0x200461)=>{for(var _0x29262e=_0x200461>0x1?void 0x0:_0x200461?M(_0x26d286,_0x30234b):_0x26d286,_0x5c5525=_0x4e88aa['length']-0x1,_0x1dd991;_0x5c5525>=0x0;_0x5c5525--)(_0x1dd991=_0x4e88aa[_0x5c5525])&&(_0x29262e=_0x1dd991(_0x29262e)||_0x29262e);return _0x29262e;},S=(_0x58b08e,_0x1a54d8)=>(_0x52e68c,_0x34c845)=>_0x1a54d8(_0x52e68c,_0x34c845,_0x58b08e);exports[_0x392f9e(0x100)]=class extends o[_0x392f9e(0x10d)]{constructor(_0x1c40e5,_0x1418a2,_0x3953fa){const _0x1eeae6=_0x392f9e;super(),_(this,'_entities',new Map()),(this[_0x1eeae6(0x11a)]=_0x1c40e5,this['_injector']=_0x1418a2,this['_collabSessionService']=_0x3953fa,this['_init']());}async[_0x392f9e(0x1b9)](_0x2ff8f0){const _0x1669e1=_0x392f9e;return this[_0x1669e1(0x189)][_0x1669e1(0x179)](_0x2ff8f0)||await this['_startLiveShareCoordinator'](_0x2ff8f0),this['_entities'][_0x1669e1(0x16b)](_0x2ff8f0);}[_0x392f9e(0xef)](_0x72f5b0){const _0x3be173=_0x392f9e;var _0x39c07d;return(_0x39c07d=this[_0x3be173(0x189)][_0x3be173(0x16b)](_0x72f5b0))!=null?_0x39c07d:null;}['_init'](){const _0x1b15c3=_0x392f9e;this[_0x1b15c3(0x11a)]['getTypeOfUnitAdded$'](o[_0x1b15c3(0x184)]['UNIVER_SHEET'])[_0x1b15c3(0xf5)](I[_0x1b15c3(0x110)](this[_0x1b15c3(0x116)]))['subscribe'](async _0x55564d=>{const _0x4af41a=_0x1b15c3,_0x33a8df=_0x55564d[_0x4af41a(0x170)]();this[_0x4af41a(0x189)]['has'](_0x33a8df)||this[_0x4af41a(0x176)](_0x33a8df);}),this[_0x1b15c3(0x11a)][_0x1b15c3(0xf8)](o[_0x1b15c3(0x184)][_0x1b15c3(0x14d)])[_0x1b15c3(0xf5)](I[_0x1b15c3(0x110)](this['dispose$']))[_0x1b15c3(0x10c)](_0x4fc19f=>{const _0x4b6d9f=_0x1b15c3,_0x10cf67=_0x4fc19f['getUnitId'](),_0x5f06e6=this[_0x4b6d9f(0x189)][_0x4b6d9f(0x16b)](_0x10cf67);_0x5f06e6==null||_0x5f06e6[_0x4b6d9f(0x108)]();});}async[_0x392f9e(0x176)](_0x4d24c6){const _0x1f81eb=_0x392f9e,_0x68d223=await this[_0x1f81eb(0x169)][_0x1f81eb(0x13c)](_0x4d24c6),_0x18c6ae=this['_injector'][_0x1f81eb(0x11b)](exports[_0x1f81eb(0x106)],_0x4d24c6,_0x68d223);return _0x18c6ae[_0x1f81eb(0x12f)](),this[_0x1f81eb(0x189)][_0x1f81eb(0x1a6)](_0x4d24c6,_0x18c6ae),_0x18c6ae;}},exports[_0x392f9e(0x100)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x392f9e(0x19e)](o[_0x392f9e(0x112)])),S(0x2,o[_0x392f9e(0x19e)](b[_0x392f9e(0x119)]))],exports['LiveShareController']);function _0x4739(_0x404e54,_0x3ce7ee){const _0x37d069=_0x37d0();return _0x4739=function(_0x4739be,_0x4d9136){_0x4739be=_0x4739be-0xef;let _0x42d89d=_0x37d069[_0x4739be];return _0x42d89d;},_0x4739(_0x404e54,_0x3ce7ee);}var u=(_0x17a0a4=>(_0x17a0a4[_0x392f9e(0x166)]=_0x392f9e(0x156),_0x17a0a4['IDLE']='idle',_0x17a0a4[_0x392f9e(0x165)]=_0x392f9e(0x148),_0x17a0a4['NOT_FOLLOWING']=_0x392f9e(0x1ab),_0x17a0a4[_0x392f9e(0x13b)]='presenting',_0x17a0a4))(u||{});const k=_0x392f9e(0x10a),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x392f9e(0x10d)]{constructor(_0x310bc4,_0x4bb4e9,_0x263c0c,_0x5267b1,_0x5acd83){const _0x2c9107=_0x392f9e;super(),_(this,'_status$',new O[(_0x2c9107(0x18d))](_0x2c9107(0x175))),_(this,_0x2c9107(0x185),this[_0x2c9107(0x15a)][_0x2c9107(0x1b1)]()),_(this,_0x2c9107(0x143),!0x1),_(this,'_commandDisposable',null),_(this,'_presenter',null),(this[_0x2c9107(0x144)]=_0x310bc4,this[_0x2c9107(0x1a9)]=_0x4bb4e9,this[_0x2c9107(0x11d)]=_0x263c0c,this[_0x2c9107(0x195)]=_0x5267b1,this['_commandService']=_0x5acd83);}get['_status'](){const _0x306bde=_0x392f9e;return this['_status$'][_0x306bde(0x1ba)]();}[_0x392f9e(0x108)](){const _0x237290=_0x392f9e;var _0x573578;(_0x573578=this[_0x237290(0x160)])==null||_0x573578[_0x237290(0x108)](),this[_0x237290(0x15a)][_0x237290(0x1aa)](_0x237290(0x175)),this[_0x237290(0x15a)]['complete']();}[_0x392f9e(0x104)](){return this['_status'];}[_0x392f9e(0x12f)](){const _0x1b3392=_0x392f9e;this[_0x1b3392(0x143)]||(this[_0x1b3392(0x143)]=!0x0,this[_0x1b3392(0x1a9)][_0x1b3392(0x172)][_0x1b3392(0xf5)](I['takeUntil'](this['dispose$']))[_0x1b3392(0x10c)](_0x1e5a2f=>{const _0x17490e=_0x1b3392;switch(_0x1e5a2f){case b[_0x17490e(0x149)][_0x17490e(0x166)]:this[_0x17490e(0x13d)]();break;case b[_0x17490e(0x149)][_0x17490e(0x178)]:this[_0x17490e(0x151)]();break;}}),this[_0x1b3392(0x1a9)][_0x1b3392(0x17d)][_0x1b3392(0xf5)](I[_0x1b3392(0x110)](this[_0x1b3392(0x116)]))[_0x1b3392(0x10c)](_0x4e1186=>{const _0x340393=_0x1b3392,{eventID:_0x5c81f3}=_0x4e1186;switch(_0x5c81f3){case d[_0x340393(0x14b)][_0x340393(0x139)]:this['_handleNewHost'](_0x4e1186);break;case d[_0x340393(0x14b)]['LIVESHARE_OPERATION']:this[_0x340393(0xfb)](_0x4e1186);break;case d[_0x340393(0x14b)][_0x340393(0x161)]:this[_0x340393(0x132)]();break;case d[_0x340393(0x14b)][_0x340393(0x154)]:this[_0x340393(0x1be)](_0x4e1186);break;}}));}['tryStartPresenting'](){const _0x1811cb=_0x392f9e;this['_collabSession']['send']({'eventID':d[_0x1811cb(0x14b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1811cb(0x144)],'userID':this[_0x1811cb(0x1a9)][_0x1811cb(0x1a1)]()}},this[_0x1811cb(0x144)]);}[_0x392f9e(0x1a5)](){const _0x269774=_0x392f9e;this[_0x269774(0x1a3)]==='presenting'&&(this[_0x269774(0x15a)][_0x269774(0x1aa)]('idle'),this[_0x269774(0x1a9)][_0x269774(0x10e)]({'eventID':d[_0x269774(0x14b)][_0x269774(0x161)],'data':{'unitID':this[_0x269774(0x144)]}},this[_0x269774(0x144)]));}[_0x392f9e(0x141)](){const _0x1b1ad2=_0x392f9e;this[_0x1b1ad2(0x1a3)]===_0x1b1ad2(0x1ab)&&(this[_0x1b1ad2(0x15a)][_0x1b1ad2(0x1aa)](_0x1b1ad2(0x148)),this[_0x1b1ad2(0x134)]());}[_0x392f9e(0x12a)](){const _0x432c63=_0x392f9e;this['_status']===_0x432c63(0x148)&&this[_0x432c63(0x14e)]();}['_handleNewHost'](_0x52ec99){const _0x459e9d=_0x392f9e,{presenter:_0x2f39c8}=_0x52ec99[_0x459e9d(0xff)],_0x1e8fd6=this[_0x459e9d(0x1a9)]['getMemberID']();this[_0x459e9d(0x1b5)]=_0x2f39c8,_0x2f39c8===_0x1e8fd6?(this[_0x459e9d(0x14e)](),this['_startPresenting']()):this[_0x459e9d(0x1a3)]!==_0x459e9d(0x1ab)&&(this[_0x459e9d(0x118)](),this[_0x459e9d(0x134)]());}['_fetchOperations'](){const _0xacd352=_0x392f9e,_0x2eb32a={'eventID':d[_0xacd352(0x14b)][_0xacd352(0x107)]};this[_0xacd352(0x1a9)]['send'](_0x2eb32a,this['_unitID']);}['_handleTerminate'](){const _0x4a0131=_0x392f9e;this[_0x4a0131(0x1b5)]=null,this[_0x4a0131(0x1a3)]!==_0x4a0131(0x18b)&&this[_0x4a0131(0x1c1)]();}[_0x392f9e(0x1be)](_0xc023c0){const _0x37e1d9=_0x392f9e;if(this['_status']===_0x37e1d9(0x148)&&this[_0x37e1d9(0x1b5)]===_0xc023c0[_0x37e1d9(0xff)][_0x37e1d9(0x174)]){const _0x5e4487=d['parseProtocolChangeset'](_0xc023c0['data'])[_0x37e1d9(0x12c)][_0x37e1d9(0x137)]()[_0x37e1d9(0x19f)](_0x4e3129=>_0x4e3129['id']===C[_0x37e1d9(0x127)]['id']);if(_0x5e4487){const _0x58ffa7=_0x5e4487[_0x37e1d9(0x135)][_0x37e1d9(0x187)],_0x5c6a4c=_0x5e4487['params'][_0x37e1d9(0xf0)]['id'];setTimeout(()=>{const _0x4f25d5=_0x37e1d9;this['_commandService']['executeCommand'](C[_0x4f25d5(0x145)]['id'],{'unitId':_0x58ffa7,'subUnitId':_0x5c6a4c},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1875a1=_0x392f9e;this[_0x1875a1(0x15a)][_0x1875a1(0x1aa)](_0x1875a1(0x18b));const _0x149ecf=new Map(),_0x33505c=this[_0x1875a1(0x160)]=new o[(_0x1875a1(0x11f))]();_0x33505c['add'](o[_0x1875a1(0x140)](()=>{const _0x38c235=_0x1875a1;_0x149ecf['forEach'](_0x111416=>_0x111416[_0x38c235(0x1b6)]()),_0x149ecf[_0x38c235(0x15f)]();})),_0x33505c['add'](this['_commandService'][_0x1875a1(0x126)](_0x38372e=>{const _0x5e2d15=_0x1875a1;var _0x49b885;if(_0x38372e[_0x5e2d15(0x136)]!==o[_0x5e2d15(0x103)][_0x5e2d15(0x190)]||!this[_0x5e2d15(0x195)]['shouldShareOperation'](_0x38372e['id']))return;const {id:_0x25e504}=_0x38372e;let _0x3bea52;_0x149ecf[_0x5e2d15(0x179)](_0x25e504)?_0x3bea52=_0x149ecf[_0x5e2d15(0x16b)](_0x25e504):(_0x3bea52=new O[(_0x5e2d15(0x16f))](),_0x149ecf[_0x5e2d15(0x1a6)](_0x25e504,_0x3bea52),_0x3bea52['pipe'](I[_0x5e2d15(0x13e)]((_0x49b885=this[_0x5e2d15(0x11d)]['getConfig'](k))!=null?_0x49b885:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5e2d15(0x10c)](_0x260313=>{const _0x16bc96=_0x5e2d15;this['_collabSession'][_0x16bc96(0x10e)]({'eventID':d[_0x16bc96(0x14b)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x16bc96(0x144)],'operations':{[_0x260313['id']]:{'id':_0x260313['id'],'params':JSON['stringify'](_0x260313[_0x16bc96(0x135)])}}}},this['_unitID']);})),_0x3bea52['next'](_0x38372e);})),this[_0x1875a1(0x195)][_0x1875a1(0x15d)](this[_0x1875a1(0x144)])[_0x1875a1(0x198)](_0x348f47=>this[_0x1875a1(0x1a9)][_0x1875a1(0x10e)]({'eventID':d[_0x1875a1(0x14b)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1875a1(0x144)],'operations':{[_0x348f47['id']]:{'id':_0x348f47['id'],'params':JSON[_0x1875a1(0x15b)](_0x348f47[_0x1875a1(0x135)])}}}},this[_0x1875a1(0x144)]));}[_0x392f9e(0x118)](){const _0x5319d9=_0x392f9e;var _0x1b3d1f;this[_0x5319d9(0x15a)]['next'](_0x5319d9(0x175)),(_0x1b3d1f=this['_commandDisposable'])==null||_0x1b3d1f[_0x5319d9(0x108)](),this['_commandDisposable']=null;}[_0x392f9e(0x134)](){const _0x6a8b=_0x392f9e;var _0x5c83c1;(_0x5c83c1=this[_0x6a8b(0x160)])==null||_0x5c83c1['dispose'](),this[_0x6a8b(0x15a)]['next'](_0x6a8b(0x148));}[_0x392f9e(0x1c1)](){const _0x128175=_0x392f9e;var _0x36bb0a;this[_0x128175(0x15a)][_0x128175(0x1aa)](_0x128175(0x175)),(_0x36bb0a=this[_0x128175(0x160)])==null||_0x36bb0a[_0x128175(0x108)](),this['_commandDisposable']=null;}[_0x392f9e(0x14e)](){const _0x7441c9=_0x392f9e;var _0x421874;this[_0x7441c9(0x15a)][_0x7441c9(0x1aa)](_0x7441c9(0x1ab)),(_0x421874=this[_0x7441c9(0x160)])==null||_0x421874['dispose']();}[_0x392f9e(0xfb)](_0x52e65c){const _0x450508=_0x392f9e;if([_0x450508(0x18b),'not-following',_0x450508(0x156)][_0x450508(0x164)](this['_status'])||!_0x52e65c['data']['presenter']||_0x52e65c['data'][_0x450508(0xf7)]===this['_collabSession']['getMemberID']())return;this[_0x450508(0x1a3)]===_0x450508(0x175)&&this[_0x450508(0x134)]();const _0x45c7db=_0x52e65c['data'][_0x450508(0x146)];Object[_0x450508(0x138)](_0x45c7db)['forEach'](_0xe6b0af=>{const _0x1a66cd=_0x450508;this[_0x1a66cd(0x155)][_0x1a66cd(0xfc)](_0xe6b0af['id'],_0xe6b0af[_0x1a66cd(0x135)]?JSON[_0x1a66cd(0x109)](_0xe6b0af[_0x1a66cd(0x135)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x40e98f=_0x392f9e;var _0x20d7db;this[_0x40e98f(0x15a)][_0x40e98f(0x1aa)](_0x40e98f(0x156)),(_0x20d7db=this['_commandDisposable'])==null||_0x20d7db[_0x40e98f(0x108)]();}[_0x392f9e(0x151)](){const _0x29753f=_0x392f9e;this[_0x29753f(0x15a)][_0x29753f(0x1aa)](_0x29753f(0x175)),this[_0x29753f(0x17b)]();}},exports[_0x392f9e(0x106)]=P([S(0x2,o[_0x392f9e(0xf6)]),S(0x3,o[_0x392f9e(0x19e)](E)),S(0x4,o[_0x392f9e(0xfe)])],exports[_0x392f9e(0x106)]);function $(){const _0x1feb9f=_0x392f9e,_0x5c85dc=p[_0x1feb9f(0x17e)](exports[_0x1feb9f(0x100)]),_0x3761d2=p['useDependency'](o['IUniverInstanceService']),_0x5b4742=p['useObservable'](()=>_0x3761d2[_0x1feb9f(0x167)](o[_0x1feb9f(0x184)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x31938d,_0xd6aa13]=v[_0x1feb9f(0x102)](null),[_0x47d1d0,_0x31188f]=v[_0x1feb9f(0x102)](u[_0x1feb9f(0xf3)]),_0x422d3b=v[_0x1feb9f(0x1af)](null);return v[_0x1feb9f(0x186)](()=>(_0x5b4742&&_0x5c85dc[_0x1feb9f(0x1b9)](_0x5b4742[_0x1feb9f(0x170)]())[_0x1feb9f(0x17c)](_0x309ce5=>{const _0x4bf643=_0x1feb9f;_0xd6aa13(_0x309ce5),_0x422d3b['current']=_0x309ce5[_0x4bf643(0x185)]['subscribe'](_0x3c8de2=>{_0x31188f(_0x3c8de2);});}),()=>{const _0x506c4d=_0x1feb9f;var _0x591f59;(_0x591f59=_0x422d3b[_0x506c4d(0x14f)])==null||_0x591f59['unsubscribe'](),_0x422d3b['current']=null;}),[_0x5b4742,_0x5c85dc]),_0x31938d?l[_0x1feb9f(0x17a)](f['Dropdown'],{'align':_0x1feb9f(0x133),'disabled':_0x47d1d0===u[_0x1feb9f(0x166)],'className':_0x1feb9f(0x1b2),'overlay':l[_0x1feb9f(0x17a)](W,{'status':_0x47d1d0,'coordinator':_0x31938d}),'children':l[_0x1feb9f(0x17a)](_0x1feb9f(0x18a),{'className':f['clsx'](_0x1feb9f(0x18e),{'univer-cursor-not-allowed':_0x47d1d0===u[_0x1feb9f(0x166)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47d1d0!==u['OFFLINE']}),'type':'button','children':l[_0x1feb9f(0x17a)](R,{'className':_0x1feb9f(0xfd)})})}):null;}function W(_0x18a86b){const _0x3947f4=_0x392f9e,{status:_0x4a9ed1,coordinator:_0x59b391}=_0x18a86b;switch(_0x4a9ed1){case u['IDLE']:return l['jsx'](G,{'coordinator':_0x59b391});case u['FOLLOWING']:return l[_0x3947f4(0x17a)](B,{'coordinator':_0x59b391});case u['NOT_FOLLOWING']:return l[_0x3947f4(0x17a)](Y,{'coordinator':_0x59b391});case u['OFFLINE']:return l[_0x3947f4(0x17a)](J,{});case u['PRESENTING']:return l[_0x3947f4(0x17a)](Z,{'coordinator':_0x59b391});default:return null;}}function G(_0x20c712){const _0x294473=_0x392f9e,{coordinator:_0x16c885}=_0x20c712;return l[_0x294473(0x12e)](l[_0x294473(0x193)],{'children':[l[_0x294473(0x17a)](_0x294473(0x113),{'className':_0x294473(0x150),'children':_0x294473(0x123)}),l[_0x294473(0x17a)](f[_0x294473(0x1c3)],{'onClick':()=>_0x16c885['tryStartPresenting'](),'children':'Start'})]});}function B(_0x27c375){const _0x12e893=_0x392f9e,{coordinator:_0x462d2c}=_0x27c375;return l['jsxs'](l['Fragment'],{'children':[l[_0x12e893(0x17a)](_0x12e893(0x113),{'className':_0x12e893(0x150),'children':_0x12e893(0xf1)}),l[_0x12e893(0x17a)](f[_0x12e893(0x1c3)],{'onClick':()=>_0x462d2c[_0x12e893(0x12a)](),'children':_0x12e893(0x1c4)})]});}function Y(_0x48a08d){const _0x7bd56b=_0x392f9e,{coordinator:_0x1baa50}=_0x48a08d;return l[_0x7bd56b(0x12e)](l[_0x7bd56b(0x193)],{'children':[l[_0x7bd56b(0x17a)]('div',{'className':_0x7bd56b(0x150),'children':_0x7bd56b(0x181)}),l[_0x7bd56b(0x17a)](f[_0x7bd56b(0x1c3)],{'variant':_0x7bd56b(0x142),'onClick':()=>_0x1baa50[_0x7bd56b(0x141)](),'children':'Start\x20following'})]});}function Z(_0x456a0e){const _0x3e4886=_0x392f9e,{coordinator:_0x15f3bf}=_0x456a0e;return l[_0x3e4886(0x12e)](l['Fragment'],{'children':[l[_0x3e4886(0x17a)](_0x3e4886(0x113),{'className':_0x3e4886(0x150),'children':_0x3e4886(0x12d)}),l[_0x3e4886(0x17a)](f[_0x3e4886(0x1c3)],{'variant':'default','onClick':()=>_0x15f3bf[_0x3e4886(0x1a5)](),'children':_0x3e4886(0x1ad)})]});}function J(){const _0x2466ce=_0x392f9e;return l[_0x2466ce(0x17a)](l[_0x2466ce(0x193)],{'children':_0x2466ce(0x120)});}var K=Object[_0x392f9e(0x1c0)],z=(_0x304f98,_0x5d2cce,_0x4a5b93,_0x567203)=>{const _0x1e25b3=_0x392f9e;for(var _0x253e95=_0x567203>0x1?void 0x0:_0x567203?K(_0x5d2cce,_0x4a5b93):_0x5d2cce,_0x4e0b8d=_0x304f98[_0x1e25b3(0x1b0)]-0x1,_0x10aced;_0x4e0b8d>=0x0;_0x4e0b8d--)(_0x10aced=_0x304f98[_0x4e0b8d])&&(_0x253e95=_0x10aced(_0x253e95)||_0x253e95);return _0x253e95;},L=(_0x59b68f,_0x4f4f09)=>(_0x249b26,_0x90b473)=>_0x4f4f09(_0x249b26,_0x90b473,_0x59b68f);exports[_0x392f9e(0x129)]=class extends o[_0x392f9e(0x1bf)]{constructor(_0xc1f73d,_0x57c585){const _0x3266a6=_0x392f9e;super(),this['_injector']=_0xc1f73d,this[_0x3266a6(0x182)]=_0x57c585,this[_0x3266a6(0x1a8)]();}[_0x392f9e(0x1a8)](){const _0x8c450c=_0x392f9e;this[_0x8c450c(0x1b7)](this['_uiPartsService'][_0x8c450c(0x18f)](p[_0x8c450c(0x168)][_0x8c450c(0x19b)],()=>p[_0x8c450c(0x1b3)]($,this['_injector'])));}},exports[_0x392f9e(0x129)]=z([L(0x0,o['Inject'](o[_0x392f9e(0x112)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);const Q='live-share.config',w={};var X=Object[_0x392f9e(0x1c0)],ee=(_0x5ce4d8,_0x2c888b,_0x5a8d2e,_0x1eb0de)=>{const _0x4429f4=_0x392f9e;for(var _0x2ccb1e=_0x1eb0de>0x1?void 0x0:_0x1eb0de?X(_0x2c888b,_0x5a8d2e):_0x2c888b,_0x23e41e=_0x5ce4d8[_0x4429f4(0x1b0)]-0x1,_0x15a88f;_0x23e41e>=0x0;_0x23e41e--)(_0x15a88f=_0x5ce4d8[_0x23e41e])&&(_0x2ccb1e=_0x15a88f(_0x2ccb1e)||_0x2ccb1e);return _0x2ccb1e;},te=(_0xf0ba7b,_0x3115b6)=>(_0x4a6225,_0x56bcde)=>_0x3115b6(_0x4a6225,_0x56bcde,_0xf0ba7b);let m=class extends o['Disposable']{constructor(_0x5b8752){const _0x2459b4=_0x392f9e;super(),this[_0x2459b4(0x195)]=_0x5b8752,this[_0x2459b4(0x143)]();}[_0x392f9e(0x143)](){const _0x19efe1=_0x392f9e;[D[_0x19efe1(0x173)]['id'],D[_0x19efe1(0x16d)]['id'],C[_0x19efe1(0x145)]['id']][_0x19efe1(0x198)](_0x313153=>{const _0x1d7942=_0x19efe1;this[_0x1d7942(0x1b7)](this[_0x1d7942(0x195)][_0x1d7942(0x177)](_0x313153));});}};m=ee([te(0x0,o[_0x392f9e(0x19e)](E))],m);var ie=Object[_0x392f9e(0x1bc)],se=Object[_0x392f9e(0x1c0)],ne=(_0x5b1721,_0x4892f4,_0x50a190)=>_0x4892f4 in _0x5b1721?ie(_0x5b1721,_0x4892f4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50a190}):_0x5b1721[_0x4892f4]=_0x50a190,re=(_0x13be44,_0x4e3be6,_0x5a446c,_0x354c26)=>{const _0x3da293=_0x392f9e;for(var _0x2af01c=_0x354c26>0x1?void 0x0:_0x354c26?se(_0x4e3be6,_0x5a446c):_0x4e3be6,_0x458502=_0x13be44[_0x3da293(0x1b0)]-0x1,_0x857c28;_0x458502>=0x0;_0x458502--)(_0x857c28=_0x13be44[_0x458502])&&(_0x2af01c=_0x857c28(_0x2af01c)||_0x2af01c);return _0x2af01c;},N=(_0x2613cd,_0x136fd2)=>(_0x237582,_0x33704f)=>_0x136fd2(_0x237582,_0x33704f,_0x2613cd),A=(_0x1c7e0e,_0x17ba42,_0x24c8c8)=>ne(_0x1c7e0e,typeof _0x17ba42!=_0x392f9e(0x16e)?_0x17ba42+'':_0x17ba42,_0x24c8c8);const oe=_0x392f9e(0x1a0);exports[_0x392f9e(0x13a)]=class extends o[_0x392f9e(0x147)]{constructor(_0x56999d=w,_0x4d2844,_0x302f98){const _0x6272d5=_0x392f9e;super(),this[_0x6272d5(0x192)]=_0x56999d,this['_injector']=_0x4d2844,this[_0x6272d5(0x11d)]=_0x302f98;const {..._0x47b21e}=o[_0x6272d5(0x1ae)]({},w,this[_0x6272d5(0x192)]);this['_configService'][_0x6272d5(0x1a2)](Q,_0x47b21e);}[_0x392f9e(0x19a)](){const _0x1f2134=_0x392f9e;o[_0x1f2134(0x114)](this['_injector'],o[_0x1f2134(0x1bd)]([[E],[exports[_0x1f2134(0x100)]],[m],[exports[_0x1f2134(0x129)]]],this[_0x1f2134(0x192)]['override'])),o[_0x1f2134(0x128)](this['_injector'],[[m]]);}[_0x392f9e(0x121)](){const _0x4d29b2=_0x392f9e;o['touchDependencies'](this['_injector'],[[exports[_0x4d29b2(0x129)]]]);}},A(exports[_0x392f9e(0x13a)],_0x392f9e(0x136),o[_0x392f9e(0x184)][_0x392f9e(0x1c5)]),A(exports[_0x392f9e(0x13a)],_0x392f9e(0x125),oe),exports['UniverLiveSharePlugin']=re([o[_0x392f9e(0xfa)](b[_0x392f9e(0x197)]),N(0x1,o['Inject'](o[_0x392f9e(0x112)])),N(0x2,o[_0x392f9e(0xf6)])],exports[_0x392f9e(0x13a)]),exports[_0x392f9e(0x11c)]=$,exports['LiveShareService']=E,exports[_0x392f9e(0x199)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1c49(_0x35a73c,_0x3d7167){const _0x39957d=_0x3995();return _0x1c49=function(_0x1c49c7,_0x338363){_0x1c49c7=_0x1c49c7-0xb8;let _0x11c51a=_0x39957d[_0x1c49c7];return _0x11c51a;},_0x1c49(_0x35a73c,_0x3d7167);}const _0x385ee5=_0x1c49;(function(_0x5c8676,_0x1bfe50){const _0x31c4ad=_0x1c49,_0x3dc571=_0x5c8676();while(!![]){try{const _0x4893a7=-parseInt(_0x31c4ad(0xc6))/0x1*(-parseInt(_0x31c4ad(0xce))/0x2)+-parseInt(_0x31c4ad(0xd1))/0x3*(-parseInt(_0x31c4ad(0xbd))/0x4)+-parseInt(_0x31c4ad(0xc9))/0x5*(parseInt(_0x31c4ad(0xd6))/0x6)+parseInt(_0x31c4ad(0xc2))/0x7*(-parseInt(_0x31c4ad(0xd0))/0x8)+-parseInt(_0x31c4ad(0xb9))/0x9*(parseInt(_0x31c4ad(0xc0))/0xa)+parseInt(_0x31c4ad(0xd4))/0xb+parseInt(_0x31c4ad(0xd7))/0xc;if(_0x4893a7===_0x1bfe50)break;else _0x3dc571['push'](_0x3dc571['shift']());}catch(_0x42ea04){_0x3dc571['push'](_0x3dc571['shift']());}}}(_0x3995,0xcca92));import{LiveShareController as _0x3c4784,LiveShareStatus as _0x28e52a}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x117b23}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x9893b1}from'@univerjs/sheets';import{SetScrollOperation as _0x35c931}from'@univerjs/sheets-ui';import{FRange as _0x2e72a3}from'@univerjs/sheets/facade';function _0x3995(){const _0x49b7a7=['48WxRdOK','3gqcnzB','getUnitId','No\x20active\x20workbook\x20found.','1716594YFeIpn','get','208122lnTlNn','3980124fLhzXk','getRenderById','startPresenting','9kRlIuD','stopFollowing','getId','getLiveShareCoordinatorSync','4596932BDJhhk','_injector','getSheetId','6123710xXuAPh','_commandService','1113119KRczoE','startFollowing','_initialize','stopPresenting','21dCigQf','getActiveWorkbook','extend','60EYtiHh','syncExecuteCommand','getStatus','getActiveSheet','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','112766vzdusu','PRESENTING'];_0x3995=function(){return _0x49b7a7;};return _0x3995();}import{FUniver as _0x570aa0,FEnum as _0x479bf3}from'@univerjs/core/facade';class I extends _0x2e72a3{[_0x385ee5(0xc4)](_0x10aeed,_0x49c341,_0x2bbaa6,_0x3e0d01,_0x2fe5be){const _0x452a81=_0x385ee5,_0x2854ee=_0x10aeed['get'](_0x3c4784),_0x4f8dc3=_0x10aeed[_0x452a81(0xd5)](_0x117b23),_0x30ad2f=_0x49c341['getUnitId'](),_0x45cfe7=_0x49c341[_0x452a81(0xcc)](),_0x29e214=_0x2854ee[_0x452a81(0xbc)](_0x30ad2f);(_0x29e214==null?void 0x0:_0x29e214[_0x452a81(0xcb)]())!==_0x28e52a[_0x452a81(0xcf)]||(_0x2bbaa6['getSheetId']()!==_0x45cfe7[_0x452a81(0xbf)]()&&this[_0x452a81(0xc1)]['executeCommand'](_0x9893b1['id'],{'unitId':_0x30ad2f,'subUnitId':_0x2bbaa6['getSheetId']()}),!_0x4f8dc3[_0x452a81(0xd8)](_0x30ad2f))||_0x2fe5be[_0x452a81(0xca)](_0x35c931['id'],{'unitId':_0x49c341[_0x452a81(0xd2)](),'sheetId':_0x2bbaa6[_0x452a81(0xbf)](),'sheetViewStartRow':_0x3e0d01['startRow'],'sheetViewStartColumn':_0x3e0d01['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x2e72a3[_0x385ee5(0xc8)](I);class m extends _0x570aa0{['getLiveShareStatus'](){const _0x11a0f6=_0x385ee5;var _0x59bc77,_0x241738;const _0x427b2d=this[_0x11a0f6(0xbe)][_0x11a0f6(0xd5)](_0x3c4784),_0xb4a6fd=(_0x59bc77=this[_0x11a0f6(0xc7)]())==null?void 0x0:_0x59bc77[_0x11a0f6(0xbb)]();if(!_0xb4a6fd)throw new Error(_0x11a0f6(0xd3));const _0x17fbb4=_0x427b2d[_0x11a0f6(0xbc)](_0xb4a6fd);return(_0x241738=_0x17fbb4==null?void 0x0:_0x17fbb4[_0x11a0f6(0xcb)]())!=null?_0x241738:_0x28e52a['IDLE'];}[_0x385ee5(0xc3)](){const _0x16c878=_0x385ee5;var _0x45f675;const _0x2c004d=this[_0x16c878(0xbe)][_0x16c878(0xd5)](_0x3c4784),_0x5cbc0e=(_0x45f675=this['getActiveWorkbook']())==null?void 0x0:_0x45f675[_0x16c878(0xbb)]();if(!_0x5cbc0e)throw new Error('No\x20active\x20workbook\x20found.');const _0x2d0c35=_0x2c004d['getLiveShareCoordinatorSync'](_0x5cbc0e);if(!_0x2d0c35)throw new Error(_0x16c878(0xcd));_0x2d0c35[_0x16c878(0xc3)]();}[_0x385ee5(0xba)](){const _0x30b557=_0x385ee5;var _0xbf38e8;const _0x5d4c5e=this[_0x30b557(0xbe)][_0x30b557(0xd5)](_0x3c4784),_0x223473=(_0xbf38e8=this[_0x30b557(0xc7)]())==null?void 0x0:_0xbf38e8[_0x30b557(0xbb)]();if(!_0x223473)throw new Error(_0x30b557(0xd3));const _0x60664c=_0x5d4c5e['getLiveShareCoordinatorSync'](_0x223473);if(!_0x60664c)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x60664c[_0x30b557(0xba)]();}[_0x385ee5(0xb8)](){const _0x286b3c=_0x385ee5;var _0x101f7e;const _0x38ed9e=this['_injector'][_0x286b3c(0xd5)](_0x3c4784),_0x5bba9f=(_0x101f7e=this['getActiveWorkbook']())==null?void 0x0:_0x101f7e[_0x286b3c(0xbb)]();if(!_0x5bba9f)throw new Error(_0x286b3c(0xd3));const _0x13a25e=_0x38ed9e[_0x286b3c(0xbc)](_0x5bba9f);if(!_0x13a25e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x13a25e['tryStartPresenting']();}[_0x385ee5(0xc5)](){const _0x7727a8=_0x385ee5;var _0x3290a3;const _0x30ea03=this['_injector'][_0x7727a8(0xd5)](_0x3c4784),_0x5f590f=(_0x3290a3=this[_0x7727a8(0xc7)]())==null?void 0x0:_0x3290a3[_0x7727a8(0xbb)]();if(!_0x5f590f)throw new Error(_0x7727a8(0xd3));const _0x36df00=_0x30ea03[_0x7727a8(0xbc)](_0x5f590f);if(!_0x36df00)throw new Error(_0x7727a8(0xcd));_0x36df00['stopPresenting']();}}_0x570aa0['extend'](m);class C extends _0x479bf3{get['LiveShareStatusEnum'](){return _0x28e52a;}}_0x479bf3['extend'](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1d8f(_0xb058dc,_0x3c0d8f){const _0x17fa9f=_0x17fa();return _0x1d8f=function(_0x1d8f29,_0x46e013){_0x1d8f29=_0x1d8f29-0x1bd;let _0x238f7b=_0x17fa9f[_0x1d8f29];return _0x238f7b;},_0x1d8f(_0xb058dc,_0x3c0d8f);}const _0xa0c0b6=_0x1d8f;(function(_0x291d23,_0x35c7f2){const _0x268d65=_0x1d8f,_0x52691d=_0x291d23();while(!![]){try{const _0x5b3fad=parseInt(_0x268d65(0x1f1))/0x1+parseInt(_0x268d65(0x1e6))/0x2*(parseInt(_0x268d65(0x1e9))/0x3)+parseInt(_0x268d65(0x1fe))/0x4*(parseInt(_0x268d65(0x1f2))/0x5)+-parseInt(_0x268d65(0x210))/0x6+-parseInt(_0x268d65(0x20c))/0x7+-parseInt(_0x268d65(0x20d))/0x8+-parseInt(_0x268d65(0x220))/0x9*(-parseInt(_0x268d65(0x226))/0xa);if(_0x5b3fad===_0x35c7f2)break;else _0x52691d['push'](_0x52691d['shift']());}catch(_0x3044ea){_0x52691d['push'](_0x52691d['shift']());}}}(_0x17fa,0xb5bdb));var J=Object[_0xa0c0b6(0x1bf)],K=(_0x417551,_0x1d7ab3,_0x28b094)=>_0x1d7ab3 in _0x417551?J(_0x417551,_0x1d7ab3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28b094}):_0x417551[_0x1d7ab3]=_0x28b094,u=(_0x2fdc4d,_0x4dfcad,_0x4fef98)=>K(_0x2fdc4d,typeof _0x4dfcad!=_0xa0c0b6(0x243)?_0x4dfcad+'':_0x4dfcad,_0x4fef98);import{Disposable as _0x47be1,toDisposable as _0x59aa4e,IUniverInstanceService as _0x50bef0,Inject as _0x46e58e,Injector as _0x34570d,IConfigService as _0x51d074,ICommandService as _0x2d4b2a,RxDisposable as _0x5b9ba2,UniverInstanceType as _0x1c5b82,DisposableCollection as _0x574b38,CommandType as _0x24cbe9,DependentOn as _0x3e663a,Plugin as _0x405a79,merge as _0x3b3b27,registerDependencies as _0x233739,mergeOverrideWithDependencies as _0x3f2ca7,touchDependencies as _0x65f852}from'@univerjs/core';import{useDependency as _0x3020fd,useObservable as _0x5a31ad,IUIPartsService as _0x1089dc,BuiltInUIPart as _0x3ee1f5,connectInjector as _0x376659}from'@univerjs/ui';import{jsx as _0x4b183d,jsxs as _0x3f8de9,Fragment as _0x39f39b}from'react/jsx-runtime';import{Dropdown as _0x209b75,clsx as _0x59ff9b,Button as _0x89b657}from'@univerjs/design';import{useRef as _0x470aac,createElement as _0x4e23df,forwardRef as _0x2895d2,useState as _0x458258,useEffect as _0x4df20f}from'react';function _0x17fa(){const _0x17f208=['params','onStarting','_reporters','_unitID','_sharedOperations','clear','forEach','tag','Start\x20following','getOwnPropertyDescriptor','_init','type','registerComponent','IDLE','getStatus','path','dispose$','_stopFollowing','parse','shouldShareOperation','registerSharedOperation','NEW_CHANGESETS','LiveShareIcon','substring','PRESENTING','_beIdle','children','LIVESHARE_OPERATION','complete','presenter','mask','includes','162910LiRmoY','executeCommand','Present\x20this\x20document','3NVCpAw','SAME_OPERATION_SHARE_INTERVAL','override','_handleOperation','then','getValue','evenodd','_status$','1360520oVwqWP','19115tUEyHn','_injector','getLiveShareCoordinator','_startLiveShareCoordinator','_commandDisposable','getMemberID','status$','colorChannel1','_liveShareService','startFollowing','replace','data','516FqOXsG','event$','string','defIds','url(#$1','presenting','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','getLiveShareCoordinatorSync','ONLINE','getUnitId','_startFollowing','HEADER_MENU','displayName','div','8715105TnapPe','9902136sPNQGp','FOLLOWING','delete','3046074ZbSNLL','_univerInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_commandService','_presenter','onRendered','tryStartPresenting','sessionStatus$','You\x27are\x20offline.','_handleOffline','getCurrentTypeOfUnit$','OPERATION','init','not-following','stopFollowing','from','81cEkYSP','default','Start','idle','following','add','1999700XmVGvv','_uiPartsService','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','toString','pipe','xlink:href','live-share-icon','_status','has','find','_collabSessionService','LIVESHARE_TERMINATE','entries','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','fill','Stop\x20following','dispose','button','getInitialStates','_handleTerminate','_configService','You\x27re\x20not\x20following\x20the\x20presenter','pluginName','send','subscribe','_config','http://www.w3.org/2000/svg','symbol','createInstance','random','LIVESHARE_NEW_HOST','UNIVER_UNKNOWN','unsubscribe','_handleOnline','You\x27re\x20presenting\x20the\x20document','univerjs-icon\x20univerjs-icon-','unitId','_entities','stringify','0\x200\x2017\x2017','1em','_handleNewHost','Stop\x20presenting','get','mutations','NOT_FOLLOWING','_collabSession','map','onCommandExecuted','_fetchOperations','idSuffix','stopPresenting','next','assign','UNIVER_SHEET','asObservable','sheet','current','OFFLINE','registerInitialStateReporter','currentColor','LIVESHARE_REQUEST_HOST','_startPresenting','defineProperty','trim','live-share.config','getTypeOfUnitDisposed$','attrs','length','_mountLiveShare'];_0x17fa=function(){return _0x17f208;};return _0x17fa();}import{CollaborationEvent as _0xf330b6,parseProtocolChangeset as _0x282616}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x548dab,SessionStatus as _0x3972e8,UniverCollaborationClientPlugin as _0x176434}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x97a76,SetWorksheetActiveOperation as _0x15573d}from'@univerjs/sheets';import{BehaviorSubject as _0x52f53b,Subject as _0x272542}from'rxjs';import{takeUntil as _0x290aa2,throttleTime as _0x374a3c}from'rxjs/operators';import{SetZoomRatioOperation as _0x240ca6,SetScrollOperation as _0x35c30a}from'@univerjs/sheets-ui';function k({ref:_0x1f28ce,..._0x311b60}){const _0x46e321=_0xa0c0b6,{icon:_0x44c4c4,id:_0x51d30c,className:_0x3591d5,extend:_0x543391,..._0x5d680f}=_0x311b60,_0x30534b=(_0x46e321(0x24b)+_0x51d30c+'\x20'+(_0x3591d5||''))[_0x46e321(0x1c0)](),_0x1773cd=_0x470aac('_'+Oe());return G(_0x44c4c4,''+_0x51d30c,{'defIds':_0x44c4c4[_0x46e321(0x201)],'idSuffix':_0x1773cd[_0x46e321(0x261)]},{'ref':_0x1f28ce,'className':_0x30534b,..._0x5d680f},_0x543391);}function G(_0x333660,_0x3bdd40,_0x12577b,_0x44ddb1,_0x4e6e63){const _0x2e8a26=_0xa0c0b6;return _0x4e23df(_0x333660[_0x2e8a26(0x1cd)],{'key':_0x3bdd40,...be(_0x333660,_0x12577b,_0x4e6e63),..._0x44ddb1},(Ee(_0x333660,_0x12577b)[_0x2e8a26(0x1e0)]||[])['map']((_0x45a197,_0x1e9d91)=>G(_0x45a197,_0x3bdd40+'-'+_0x333660[_0x2e8a26(0x1cd)]+'-'+_0x1e9d91,_0x12577b,void 0x0,_0x4e6e63)));}function be(_0x465700,_0x268d9d,_0xdcc508){const _0x45ae33=_0xa0c0b6,_0x21aeb9={..._0x465700[_0x45ae33(0x1c3)]};_0xdcc508!=null&&_0xdcc508['colorChannel1']&&_0x21aeb9[_0x45ae33(0x236)]===_0x45ae33(0x1f9)&&(_0x21aeb9[_0x45ae33(0x236)]=_0xdcc508[_0x45ae33(0x1f9)]),_0x465700[_0x45ae33(0x1cd)]===_0x45ae33(0x1e4)&&_0x21aeb9['id']&&(_0x21aeb9['id']=_0x21aeb9['id']+_0x268d9d[_0x45ae33(0x25a)]),Object[_0x45ae33(0x233)](_0x21aeb9)[_0x45ae33(0x1cc)](([_0x305482,_0x274c4e])=>{const _0x533105=_0x45ae33;_0x305482==='mask'&&typeof _0x274c4e=='string'&&(_0x21aeb9[_0x305482]=_0x274c4e[_0x533105(0x1fc)](/url\(#(.*)\)/,_0x533105(0x202)+_0x268d9d[_0x533105(0x25a)]+')'));});const {defIds:_0x43c5c}=_0x268d9d;return!_0x43c5c||_0x43c5c['length']===0x0||(_0x465700['tag']==='use'&&_0x21aeb9['xlink:href']&&(_0x21aeb9['xlink:href']=_0x21aeb9[_0x45ae33(0x22c)]+_0x268d9d[_0x45ae33(0x25a)]),Object[_0x45ae33(0x233)](_0x21aeb9)[_0x45ae33(0x1cc)](([_0x18993f,_0x4af33d])=>{const _0xbd2c6=_0x45ae33;typeof _0x4af33d=='string'&&(_0x21aeb9[_0x18993f]=_0x4af33d[_0xbd2c6(0x1fc)](/url\(#(.*)\)/,_0xbd2c6(0x202)+_0x268d9d[_0xbd2c6(0x25a)]+')'));})),_0x21aeb9;}function Ee(_0x3cdbb2,_0x55fbb5){const _0x36fdd6=_0xa0c0b6;var _0x1f4304;const {defIds:_0x43d229}=_0x55fbb5;return!_0x43d229||_0x43d229[_0x36fdd6(0x1c4)]===0x0?_0x3cdbb2:_0x3cdbb2[_0x36fdd6(0x1cd)]==='defs'&&((_0x1f4304=_0x3cdbb2[_0x36fdd6(0x1e0)])!=null&&_0x1f4304[_0x36fdd6(0x1c4)])?{..._0x3cdbb2,'children':_0x3cdbb2[_0x36fdd6(0x1e0)][_0x36fdd6(0x257)](_0x3b6b59=>typeof _0x3b6b59['attrs']['id']==_0x36fdd6(0x200)&&_0x43d229&&_0x43d229[_0x36fdd6(0x1e5)](_0x3b6b59[_0x36fdd6(0x1c3)]['id'])?{..._0x3b6b59,'attrs':{..._0x3b6b59[_0x36fdd6(0x1c3)],'id':_0x3b6b59[_0x36fdd6(0x1c3)]['id']+_0x55fbb5[_0x36fdd6(0x25a)]}}:_0x3b6b59)}:_0x3cdbb2;}function Oe(){const _0x47f5e4=_0xa0c0b6;return Math[_0x47f5e4(0x245)]()[_0x47f5e4(0x22a)](0x24)[_0x47f5e4(0x1dd)](0x2,0x8);}k[_0xa0c0b6(0x20a)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0xa0c0b6(0x242),'fill':'none','viewBox':_0xa0c0b6(0x24f),'width':'1em','height':_0xa0c0b6(0x250)},'children':[{'tag':_0xa0c0b6(0x1d5),'attrs':{'fill':_0xa0c0b6(0x264),'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':_0xa0c0b6(0x1d5),'attrs':{'fill':_0xa0c0b6(0x264),'d':_0xa0c0b6(0x234),'fillRule':'evenodd','clipRule':_0xa0c0b6(0x1ef)}}]},W=_0x2895d2(function(_0xb7f402,_0x51456f){const _0x22b72a=_0xa0c0b6;return _0x4e23df(k,Object[_0x22b72a(0x25d)]({},_0xb7f402,{'id':_0x22b72a(0x22d),'ref':_0x51456f,'icon':we}));});W[_0xa0c0b6(0x20a)]=_0xa0c0b6(0x1dc);class L extends _0x47be1{constructor(){const _0x1d8f56=_0xa0c0b6;super(...arguments),u(this,_0x1d8f56(0x1ca),new Set()),u(this,'_reporters',new Set());}[_0xa0c0b6(0x1da)](_0x9b44d7){const _0x278d24=_0xa0c0b6;return this[_0x278d24(0x1ca)][_0x278d24(0x225)](_0x9b44d7),_0x59aa4e(()=>this[_0x278d24(0x1ca)][_0x278d24(0x20f)](_0x9b44d7));}[_0xa0c0b6(0x263)](_0x1634f3){const _0x1dc117=_0xa0c0b6;return this[_0x1dc117(0x1c8)][_0x1dc117(0x225)](_0x1634f3),_0x59aa4e(()=>this['_reporters'][_0x1dc117(0x20f)](_0x1634f3));}[_0xa0c0b6(0x1d9)](_0x556e29){return this['_sharedOperations']['has'](_0x556e29);}[_0xa0c0b6(0x23a)](_0x4f025e){const _0x47e4f8=_0xa0c0b6;return Array[_0x47e4f8(0x21f)](this[_0x47e4f8(0x1c8)])[_0x47e4f8(0x257)](_0x481bd8=>_0x481bd8(_0x4f025e));}}var Ne=Object[_0xa0c0b6(0x1cf)],Y=(_0xaff5d5,_0x33db42,_0x309d60,_0x22133c)=>{const _0x52dc27=_0xa0c0b6;for(var _0x335f17=_0x22133c>0x1?void 0x0:_0x22133c?Ne(_0x33db42,_0x309d60):_0x33db42,_0x5d9a08=_0xaff5d5[_0x52dc27(0x1c4)]-0x1,_0x1c255b;_0x5d9a08>=0x0;_0x5d9a08--)(_0x1c255b=_0xaff5d5[_0x5d9a08])&&(_0x335f17=_0x1c255b(_0x335f17)||_0x335f17);return _0x335f17;},_=(_0x477077,_0x5dd4d9)=>(_0x2a79e7,_0x29a138)=>_0x5dd4d9(_0x2a79e7,_0x29a138,_0x477077);let S=class extends _0x5b9ba2{constructor(_0x5c50ac,_0x2b94cf,_0x3c3ad8){const _0x856814=_0xa0c0b6;super(),u(this,_0x856814(0x24d),new Map()),(this['_univerInstanceService']=_0x5c50ac,this[_0x856814(0x1f3)]=_0x2b94cf,this[_0x856814(0x231)]=_0x3c3ad8,this[_0x856814(0x1d0)]());}async[_0xa0c0b6(0x1f4)](_0x38d03d){const _0x429233=_0xa0c0b6;return this[_0x429233(0x24d)][_0x429233(0x22f)](_0x38d03d)||await this[_0x429233(0x1f5)](_0x38d03d),this[_0x429233(0x24d)][_0x429233(0x253)](_0x38d03d);}[_0xa0c0b6(0x205)](_0x56d221){const _0x16f85c=_0xa0c0b6;var _0x1d254f;return(_0x1d254f=this['_entities'][_0x16f85c(0x253)](_0x56d221))!=null?_0x1d254f:null;}[_0xa0c0b6(0x1d0)](){const _0x3bf8a8=_0xa0c0b6;this[_0x3bf8a8(0x211)]['getTypeOfUnitAdded$'](_0x1c5b82[_0x3bf8a8(0x25e)])[_0x3bf8a8(0x22b)](_0x290aa2(this[_0x3bf8a8(0x1d6)]))[_0x3bf8a8(0x240)](async _0x263afd=>{const _0x49a577=_0x3bf8a8,_0x5035e8=_0x263afd['getUnitId']();this[_0x49a577(0x24d)]['has'](_0x5035e8)||this[_0x49a577(0x1f5)](_0x5035e8);}),this[_0x3bf8a8(0x211)][_0x3bf8a8(0x1c2)](_0x1c5b82[_0x3bf8a8(0x25e)])[_0x3bf8a8(0x22b)](_0x290aa2(this[_0x3bf8a8(0x1d6)]))[_0x3bf8a8(0x240)](_0x5d8bc1=>{const _0x46367a=_0x3bf8a8,_0x3131bc=_0x5d8bc1['getUnitId'](),_0x2df236=this[_0x46367a(0x24d)][_0x46367a(0x253)](_0x3131bc);_0x2df236==null||_0x2df236['dispose']();});}async[_0xa0c0b6(0x1f5)](_0x343e91){const _0x4b6e6e=_0xa0c0b6,_0x5f5549=await this[_0x4b6e6e(0x231)]['requireSession'](_0x343e91),_0x2f4062=this['_injector'][_0x4b6e6e(0x244)](N,_0x343e91,_0x5f5549);return _0x2f4062[_0x4b6e6e(0x21c)](),this[_0x4b6e6e(0x24d)]['set'](_0x343e91,_0x2f4062),_0x2f4062;}};S=Y([_(0x0,_0x50bef0),_(0x1,_0x46e58e(_0x34570d)),_(0x2,_0x46e58e(_0x548dab))],S);var c=(_0x1f0707=>(_0x1f0707[_0xa0c0b6(0x262)]='offline',_0x1f0707[_0xa0c0b6(0x1d3)]=_0xa0c0b6(0x223),_0x1f0707['FOLLOWING']=_0xa0c0b6(0x224),_0x1f0707[_0xa0c0b6(0x255)]=_0xa0c0b6(0x21d),_0x1f0707['PRESENTING']=_0xa0c0b6(0x203),_0x1f0707))(c||{});const Ce=_0xa0c0b6(0x1ea),De=0xc8;let N=class extends _0x5b9ba2{constructor(_0x315fe2,_0x44b645,_0x1bb5f0,_0x46fbe8,_0x22027c){const _0x2180a4=_0xa0c0b6;super(),u(this,_0x2180a4(0x1f0),new _0x52f53b(_0x2180a4(0x223))),u(this,_0x2180a4(0x1f8),this[_0x2180a4(0x1f0)][_0x2180a4(0x25f)]()),u(this,'_init',!0x1),u(this,_0x2180a4(0x1f6),null),u(this,'_presenter',null),(this[_0x2180a4(0x1c9)]=_0x315fe2,this[_0x2180a4(0x256)]=_0x44b645,this[_0x2180a4(0x23c)]=_0x1bb5f0,this[_0x2180a4(0x1fa)]=_0x46fbe8,this[_0x2180a4(0x213)]=_0x22027c);}get[_0xa0c0b6(0x22e)](){const _0x33a331=_0xa0c0b6;return this['_status$'][_0x33a331(0x1ee)]();}['dispose'](){const _0x47b04c=_0xa0c0b6;var _0x57dccb;(_0x57dccb=this['_commandDisposable'])==null||_0x57dccb[_0x47b04c(0x238)](),this[_0x47b04c(0x1f0)][_0x47b04c(0x25c)]('idle'),this[_0x47b04c(0x1f0)][_0x47b04c(0x1e2)]();}[_0xa0c0b6(0x1d4)](){const _0x16245b=_0xa0c0b6;return this[_0x16245b(0x22e)];}[_0xa0c0b6(0x21c)](){const _0x106ff5=_0xa0c0b6;this['_init']||(this[_0x106ff5(0x1d0)]=!0x0,this[_0x106ff5(0x256)][_0x106ff5(0x217)]['pipe'](_0x290aa2(this[_0x106ff5(0x1d6)]))['subscribe'](_0xc6aa38=>{const _0xe31007=_0x106ff5;switch(_0xc6aa38){case _0x3972e8[_0xe31007(0x262)]:this['_handleOffline']();break;case _0x3972e8[_0xe31007(0x206)]:this[_0xe31007(0x249)]();break;}}),this[_0x106ff5(0x256)][_0x106ff5(0x1ff)][_0x106ff5(0x22b)](_0x290aa2(this[_0x106ff5(0x1d6)]))['subscribe'](_0x21459f=>{const _0x5c7125=_0x106ff5,{eventID:_0x26bb47}=_0x21459f;switch(_0x26bb47){case _0xf330b6[_0x5c7125(0x246)]:this['_handleNewHost'](_0x21459f);break;case _0xf330b6[_0x5c7125(0x1e1)]:this['_handleOperation'](_0x21459f);break;case _0xf330b6[_0x5c7125(0x232)]:this[_0x5c7125(0x23b)]();break;case _0xf330b6[_0x5c7125(0x1db)]:this['_handleNewChangeSets'](_0x21459f);break;}}));}[_0xa0c0b6(0x216)](){const _0xa24803=_0xa0c0b6;this[_0xa24803(0x256)]['send']({'eventID':_0xf330b6[_0xa24803(0x1bd)],'data':{'unitID':this['_unitID'],'userID':this[_0xa24803(0x256)][_0xa24803(0x1f7)]()}},this[_0xa24803(0x1c9)]);}[_0xa0c0b6(0x25b)](){const _0xc85687=_0xa0c0b6;this[_0xc85687(0x22e)]===_0xc85687(0x203)&&(this[_0xc85687(0x1f0)][_0xc85687(0x25c)](_0xc85687(0x223)),this[_0xc85687(0x256)]['send']({'eventID':_0xf330b6[_0xc85687(0x232)],'data':{'unitID':this[_0xc85687(0x1c9)]}},this[_0xc85687(0x1c9)]));}[_0xa0c0b6(0x1fb)](){const _0x399c12=_0xa0c0b6;this[_0x399c12(0x22e)]===_0x399c12(0x21d)&&(this['_status$'][_0x399c12(0x25c)](_0x399c12(0x224)),this[_0x399c12(0x208)]());}[_0xa0c0b6(0x21e)](){const _0xf1d7cd=_0xa0c0b6;this[_0xf1d7cd(0x22e)]===_0xf1d7cd(0x224)&&this[_0xf1d7cd(0x1d7)]();}[_0xa0c0b6(0x251)](_0x4e2031){const _0x59e27c=_0xa0c0b6,{presenter:_0x3da6a9}=_0x4e2031[_0x59e27c(0x1fd)],_0x225acb=this[_0x59e27c(0x256)]['getMemberID']();this[_0x59e27c(0x214)]=_0x3da6a9,_0x3da6a9===_0x225acb?(this[_0x59e27c(0x1d7)](),this[_0x59e27c(0x1be)]()):this[_0x59e27c(0x22e)]!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xa0c0b6(0x259)](){const _0x5974ff=_0xa0c0b6,_0x5b38c4={'eventID':_0xf330b6[_0x5974ff(0x229)]};this[_0x5974ff(0x256)][_0x5974ff(0x23f)](_0x5b38c4,this[_0x5974ff(0x1c9)]);}[_0xa0c0b6(0x23b)](){const _0x59a53e=_0xa0c0b6;this[_0x59a53e(0x214)]=null,this[_0x59a53e(0x22e)]!==_0x59a53e(0x203)&&this[_0x59a53e(0x1df)]();}['_handleNewChangeSets'](_0x558607){const _0x14f936=_0xa0c0b6;if(this['_status']===_0x14f936(0x224)&&this[_0x14f936(0x214)]===_0x558607[_0x14f936(0x1fd)]['memberID']){const _0x399e05=_0x282616(_0x558607[_0x14f936(0x1fd)])[_0x14f936(0x254)]['reverse']()[_0x14f936(0x230)](_0x15ec3f=>_0x15ec3f['id']===_0x97a76['id']);if(_0x399e05){const _0xa6d10b=_0x399e05[_0x14f936(0x1c6)][_0x14f936(0x24c)],_0x22da9d=_0x399e05[_0x14f936(0x1c6)][_0x14f936(0x260)]['id'];setTimeout(()=>{const _0x1228d5=_0x14f936;this['_commandService'][_0x1228d5(0x1e7)](_0x15573d['id'],{'unitId':_0xa6d10b,'subUnitId':_0x22da9d},{'fromCollab':!0x0});});}}}[_0xa0c0b6(0x1be)](){const _0x519772=_0xa0c0b6;this[_0x519772(0x1f0)][_0x519772(0x25c)](_0x519772(0x203));const _0x769864=new Map(),_0x26dd89=this[_0x519772(0x1f6)]=new _0x574b38();_0x26dd89['add'](_0x59aa4e(()=>{const _0x15d407=_0x519772;_0x769864[_0x15d407(0x1cc)](_0x1ffe6a=>_0x1ffe6a['complete']()),_0x769864[_0x15d407(0x1cb)]();})),_0x26dd89[_0x519772(0x225)](this[_0x519772(0x213)][_0x519772(0x258)](_0x4deff7=>{const _0x3e66cb=_0x519772;var _0x96fe22;if(_0x4deff7[_0x3e66cb(0x1d1)]!==_0x24cbe9[_0x3e66cb(0x21b)]||!this[_0x3e66cb(0x1fa)]['shouldShareOperation'](_0x4deff7['id']))return;const {id:_0x40b512}=_0x4deff7;let _0x42dfed;_0x769864[_0x3e66cb(0x22f)](_0x40b512)?_0x42dfed=_0x769864[_0x3e66cb(0x253)](_0x40b512):(_0x42dfed=new _0x272542(),_0x769864['set'](_0x40b512,_0x42dfed),_0x42dfed[_0x3e66cb(0x22b)](_0x374a3c((_0x96fe22=this[_0x3e66cb(0x23c)]['getConfig'](Ce))!=null?_0x96fe22:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3b4dff=>{const _0x4affe8=_0x3e66cb;this[_0x4affe8(0x256)]['send']({'eventID':_0xf330b6[_0x4affe8(0x1e1)],'data':{'unitID':this[_0x4affe8(0x1c9)],'operations':{[_0x3b4dff['id']]:{'id':_0x3b4dff['id'],'params':JSON['stringify'](_0x3b4dff['params'])}}}},this['_unitID']);})),_0x42dfed[_0x3e66cb(0x25c)](_0x4deff7);})),this['_liveShareService']['getInitialStates'](this[_0x519772(0x1c9)])[_0x519772(0x1cc)](_0x4b18f4=>this['_collabSession'][_0x519772(0x23f)]({'eventID':_0xf330b6[_0x519772(0x1e1)],'data':{'unitID':this[_0x519772(0x1c9)],'operations':{[_0x4b18f4['id']]:{'id':_0x4b18f4['id'],'params':JSON[_0x519772(0x24e)](_0x4b18f4[_0x519772(0x1c6)])}}}},this[_0x519772(0x1c9)]));}['_stopPresenting'](){const _0x3437e6=_0xa0c0b6;var _0x3c25a1;this[_0x3437e6(0x1f0)]['next'](_0x3437e6(0x223)),(_0x3c25a1=this['_commandDisposable'])==null||_0x3c25a1[_0x3437e6(0x238)](),this['_commandDisposable']=null;}[_0xa0c0b6(0x208)](){const _0x2d037a=_0xa0c0b6;var _0x3e1246;(_0x3e1246=this[_0x2d037a(0x1f6)])==null||_0x3e1246['dispose'](),this['_status$'][_0x2d037a(0x25c)]('following');}[_0xa0c0b6(0x1df)](){const _0x2611bd=_0xa0c0b6;var _0x24b7e8;this[_0x2611bd(0x1f0)][_0x2611bd(0x25c)](_0x2611bd(0x223)),(_0x24b7e8=this['_commandDisposable'])==null||_0x24b7e8[_0x2611bd(0x238)](),this[_0x2611bd(0x1f6)]=null;}[_0xa0c0b6(0x1d7)](){const _0x406226=_0xa0c0b6;var _0x4fee8c;this[_0x406226(0x1f0)][_0x406226(0x25c)](_0x406226(0x21d)),(_0x4fee8c=this[_0x406226(0x1f6)])==null||_0x4fee8c[_0x406226(0x238)]();}[_0xa0c0b6(0x1ec)](_0x366569){const _0x5dd1a5=_0xa0c0b6;if([_0x5dd1a5(0x203),_0x5dd1a5(0x21d),_0x5dd1a5(0x235)]['includes'](this['_status'])||!_0x366569[_0x5dd1a5(0x1fd)][_0x5dd1a5(0x1e3)]||_0x366569[_0x5dd1a5(0x1fd)][_0x5dd1a5(0x1e3)]===this[_0x5dd1a5(0x256)][_0x5dd1a5(0x1f7)]())return;this[_0x5dd1a5(0x22e)]==='idle'&&this[_0x5dd1a5(0x208)]();const _0x48cc91=_0x366569[_0x5dd1a5(0x1fd)]['operations'];Object['values'](_0x48cc91)[_0x5dd1a5(0x1cc)](_0x33a239=>{const _0x4b4bce=_0x5dd1a5;this[_0x4b4bce(0x213)][_0x4b4bce(0x1e7)](_0x33a239['id'],_0x33a239['params']?JSON[_0x4b4bce(0x1d8)](_0x33a239['params']):null,{'fromCollab':!0x0});});}[_0xa0c0b6(0x219)](){const _0x1a1073=_0xa0c0b6;var _0x10bd21;this[_0x1a1073(0x1f0)]['next'](_0x1a1073(0x235)),(_0x10bd21=this['_commandDisposable'])==null||_0x10bd21[_0x1a1073(0x238)]();}[_0xa0c0b6(0x249)](){const _0x545106=_0xa0c0b6;this[_0x545106(0x1f0)]['next']('idle'),this[_0x545106(0x259)]();}};N=Y([_(0x2,_0x51d074),_(0x3,_0x46e58e(L)),_(0x4,_0x2d4b2a)],N);function Le(){const _0x1de32d=_0xa0c0b6,_0xc102b1=_0x3020fd(S),_0x5e4b35=_0x3020fd(_0x50bef0),_0x13977e=_0x5a31ad(()=>_0x5e4b35[_0x1de32d(0x21a)](_0x1c5b82[_0x1de32d(0x25e)]),void 0x0,!0x1,[]),[_0x246344,_0x2dee7c]=_0x458258(null),[_0xda82da,_0x47522b]=_0x458258(c[_0x1de32d(0x1d3)]),_0x1703d2=_0x470aac(null);return _0x4df20f(()=>(_0x13977e&&_0xc102b1[_0x1de32d(0x1f4)](_0x13977e[_0x1de32d(0x207)]())[_0x1de32d(0x1ed)](_0xf3bb57=>{const _0x44c4a4=_0x1de32d;_0x2dee7c(_0xf3bb57),_0x1703d2[_0x44c4a4(0x261)]=_0xf3bb57[_0x44c4a4(0x1f8)][_0x44c4a4(0x240)](_0x2f2db7=>{_0x47522b(_0x2f2db7);});}),()=>{const _0x4568d0=_0x1de32d;var _0x54ec1f;(_0x54ec1f=_0x1703d2[_0x4568d0(0x261)])==null||_0x54ec1f[_0x4568d0(0x248)](),_0x1703d2[_0x4568d0(0x261)]=null;}),[_0x13977e,_0xc102b1]),_0x246344?_0x4b183d(_0x209b75,{'align':'end','disabled':_0xda82da===c[_0x1de32d(0x262)],'className':_0x1de32d(0x204),'overlay':_0x4b183d(Re,{'status':_0xda82da,'coordinator':_0x246344}),'children':_0x4b183d(_0x1de32d(0x239),{'className':_0x59ff9b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xda82da===c[_0x1de32d(0x262)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xda82da!==c[_0x1de32d(0x262)]}),'type':_0x1de32d(0x239),'children':_0x4b183d(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2a7faa){const _0x31c817=_0xa0c0b6,{status:_0x35470a,coordinator:_0x4f9d9e}=_0x2a7faa;switch(_0x35470a){case c[_0x31c817(0x1d3)]:return _0x4b183d($e,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x20e)]:return _0x4b183d(xe,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x255)]:return _0x4b183d(Pe,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x262)]:return _0x4b183d(Te,{});case c[_0x31c817(0x1de)]:return _0x4b183d(Ae,{'coordinator':_0x4f9d9e});default:return null;}}function $e(_0x31f826){const _0x2328e8=_0xa0c0b6,{coordinator:_0xd12508}=_0x31f826;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0x2328e8(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2328e8(0x1e8)}),_0x4b183d(_0x89b657,{'onClick':()=>_0xd12508['tryStartPresenting'](),'children':_0x2328e8(0x222)})]});}function xe(_0x319f0b){const _0x41082c=_0xa0c0b6,{coordinator:_0x106875}=_0x319f0b;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d('div',{'className':_0x41082c(0x212),'children':_0x41082c(0x228)}),_0x4b183d(_0x89b657,{'onClick':()=>_0x106875[_0x41082c(0x21e)](),'children':_0x41082c(0x237)})]});}function Pe(_0x8e6b43){const _0xbcb14e=_0xa0c0b6,{coordinator:_0x5a2ee7}=_0x8e6b43;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0xbcb14e(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xbcb14e(0x23d)}),_0x4b183d(_0x89b657,{'variant':'text','onClick':()=>_0x5a2ee7[_0xbcb14e(0x1fb)](),'children':_0xbcb14e(0x1ce)})]});}function Ae(_0x5e90c2){const _0x2b07f0=_0xa0c0b6,{coordinator:_0x35c664}=_0x5e90c2;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0x2b07f0(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2b07f0(0x24a)}),_0x4b183d(_0x89b657,{'variant':_0x2b07f0(0x221),'onClick':()=>_0x35c664['stopPresenting'](),'children':_0x2b07f0(0x252)})]});}function Te(){const _0x5330a3=_0xa0c0b6;return _0x4b183d(_0x39f39b,{'children':_0x5330a3(0x218)});}var Fe=Object[_0xa0c0b6(0x1cf)],He=(_0x2cfb82,_0x2ef574,_0x51ecfa,_0x26e78b)=>{for(var _0x3463e1=_0x26e78b>0x1?void 0x0:_0x26e78b?Fe(_0x2ef574,_0x51ecfa):_0x2ef574,_0x4eb2eb=_0x2cfb82['length']-0x1,_0x2c3652;_0x4eb2eb>=0x0;_0x4eb2eb--)(_0x2c3652=_0x2cfb82[_0x4eb2eb])&&(_0x3463e1=_0x2c3652(_0x3463e1)||_0x3463e1);return _0x3463e1;},A=(_0x1a9823,_0x47d7d5)=>(_0x31539e,_0x58aea0)=>_0x47d7d5(_0x31539e,_0x58aea0,_0x1a9823);let m=class extends _0x47be1{constructor(_0x401f41,_0x459896){const _0x58371a=_0xa0c0b6;super(),this['_injector']=_0x401f41,this[_0x58371a(0x227)]=_0x459896,this[_0x58371a(0x1c5)]();}[_0xa0c0b6(0x1c5)](){const _0x56c65c=_0xa0c0b6;this['disposeWithMe'](this[_0x56c65c(0x227)][_0x56c65c(0x1d2)](_0x3ee1f5[_0x56c65c(0x209)],()=>_0x376659(Le,this[_0x56c65c(0x1f3)])));}};m=He([A(0x0,_0x46e58e(_0x34570d)),A(0x1,_0x1089dc)],m);const ye=_0xa0c0b6(0x1c1),T={};var Ue=Object[_0xa0c0b6(0x1cf)],Ve=(_0x584ff5,_0x49514c,_0x386ddd,_0x2bd633)=>{const _0xd91ca2=_0xa0c0b6;for(var _0x1309c4=_0x2bd633>0x1?void 0x0:_0x2bd633?Ue(_0x49514c,_0x386ddd):_0x49514c,_0x55efbb=_0x584ff5[_0xd91ca2(0x1c4)]-0x1,_0x378b46;_0x55efbb>=0x0;_0x55efbb--)(_0x378b46=_0x584ff5[_0x55efbb])&&(_0x1309c4=_0x378b46(_0x1309c4)||_0x1309c4);return _0x1309c4;},je=(_0x248691,_0x375808)=>(_0x1a8ed6,_0x1d5038)=>_0x375808(_0x1a8ed6,_0x1d5038,_0x248691);let I=class extends _0x47be1{constructor(_0x4ca817){const _0x9f996=_0xa0c0b6;super(),this[_0x9f996(0x1fa)]=_0x4ca817,this[_0x9f996(0x1d0)]();}[_0xa0c0b6(0x1d0)](){const _0x44a536=_0xa0c0b6;[_0x240ca6['id'],_0x35c30a['id'],_0x15573d['id']][_0x44a536(0x1cc)](_0x49e56d=>{const _0x55d7a5=_0x44a536;this['disposeWithMe'](this[_0x55d7a5(0x1fa)][_0x55d7a5(0x1da)](_0x49e56d));});}};I=Ve([je(0x0,_0x46e58e(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x85523a,_0x34dc93,_0x435a77)=>_0x34dc93 in _0x85523a?Me(_0x85523a,_0x34dc93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x435a77}):_0x85523a[_0x34dc93]=_0x435a77,We=(_0x2d5a03,_0x51b7a8,_0x2e6e94,_0x1c79f7)=>{for(var _0x2b1b7f=_0x1c79f7>0x1?void 0x0:_0x1c79f7?ke(_0x51b7a8,_0x2e6e94):_0x51b7a8,_0x2603ba=_0x2d5a03['length']-0x1,_0x30da1d;_0x2603ba>=0x0;_0x2603ba--)(_0x30da1d=_0x2d5a03[_0x2603ba])&&(_0x2b1b7f=_0x30da1d(_0x2b1b7f)||_0x2b1b7f);return _0x2b1b7f;},F=(_0x354821,_0x39c35f)=>(_0x13acfc,_0x51d30e)=>_0x39c35f(_0x13acfc,_0x51d30e,_0x354821),B=(_0x5d3577,_0x624882,_0xcc4901)=>Ge(_0x5d3577,typeof _0x624882!=_0xa0c0b6(0x243)?_0x624882+'':_0x624882,_0xcc4901);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x405a79{constructor(_0x531770=T,_0xa1d0ae,_0x23463e){const _0x3474c4=_0xa0c0b6;super(),this[_0x3474c4(0x241)]=_0x531770,this[_0x3474c4(0x1f3)]=_0xa1d0ae,this['_configService']=_0x23463e;const {..._0x5e9ccf}=_0x3b3b27({},T,this[_0x3474c4(0x241)]);this[_0x3474c4(0x23c)]['setConfig'](ye,_0x5e9ccf);}[_0xa0c0b6(0x1c7)](){const _0x2cbc2e=_0xa0c0b6;_0x233739(this['_injector'],_0x3f2ca7([[L],[S],[I],[m]],this[_0x2cbc2e(0x241)][_0x2cbc2e(0x1eb)])),_0x65f852(this[_0x2cbc2e(0x1f3)],[[I]]);}[_0xa0c0b6(0x215)](){const _0x1793e4=_0xa0c0b6;_0x65f852(this[_0x1793e4(0x1f3)],[[m]]);}};B(b,_0xa0c0b6(0x1d1),_0x1c5b82[_0xa0c0b6(0x247)]),B(b,_0xa0c0b6(0x23e),Ye),b=We([_0x3e663a(_0x176434),F(0x1,_0x46e58e(_0x34570d)),F(0x2,_0x51d074)],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 _0x2c17bd=_0x6dcd;(function(_0x46eab9,_0x3f9f6e){const _0x372050=_0x6dcd,_0x163203=_0x46eab9();while(!![]){try{const _0x2f00ac=-parseInt(_0x372050(0x1f7))/0x1+parseInt(_0x372050(0x266))/0x2*(parseInt(_0x372050(0x1e7))/0x3)+-parseInt(_0x372050(0x246))/0x4*(-parseInt(_0x372050(0x218))/0x5)+-parseInt(_0x372050(0x21c))/0x6*(-parseInt(_0x372050(0x1e5))/0x7)+-parseInt(_0x372050(0x1ff))/0x8*(-parseInt(_0x372050(0x1dd))/0x9)+parseInt(_0x372050(0x1fe))/0xa+-parseInt(_0x372050(0x1d4))/0xb;if(_0x2f00ac===_0x3f9f6e)break;else _0x163203['push'](_0x163203['shift']());}catch(_0x4a332d){_0x163203['push'](_0x163203['shift']());}}}(_0xae52,0x2ddb1));var J=Object['defineProperty'],K=(_0x35970c,_0x3ab2be,_0x4465cc)=>_0x3ab2be in _0x35970c?J(_0x35970c,_0x3ab2be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4465cc}):_0x35970c[_0x3ab2be]=_0x4465cc,u=(_0x22a061,_0x191ca2,_0x191e6c)=>K(_0x22a061,typeof _0x191ca2!=_0x2c17bd(0x1d3)?_0x191ca2+'':_0x191ca2,_0x191e6c);import{Disposable as _0x340cc7,toDisposable as _0x1aa50a,IUniverInstanceService as _0x9a2b99,Inject as _0xb91b10,Injector as _0x13efe5,IConfigService as _0x45ac9b,ICommandService as _0x147916,RxDisposable as _0x1729a0,UniverInstanceType as _0x45889c,DisposableCollection as _0x4a90c4,CommandType as _0x4010de,DependentOn as _0x1c6ccb,Plugin as _0x24270d,merge as _0x51df76,registerDependencies as _0x312d92,mergeOverrideWithDependencies as _0x43af49,touchDependencies as _0x5199da}from'@univerjs/core';import{useDependency as _0x1bfba8,useObservable as _0x206e01,IUIPartsService as _0x2066c5,BuiltInUIPart as _0x1bd2e1,connectInjector as _0x33bb9e}from'@univerjs/ui';import{jsx as _0x76a09b,jsxs as _0x490d08,Fragment as _0x1c44c8}from'react/jsx-runtime';import{Dropdown as _0x39b390,clsx as _0x3e4a67,Button as _0x2cafee}from'@univerjs/design';import{useRef as _0x470657,createElement as _0x690b7e,forwardRef as _0x22f24d,useState as _0x14fd36,useEffect as _0x23e84d}from'react';import{CollaborationEvent as _0x51a117,parseProtocolChangeset as _0x1db3a1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x228d40,SessionStatus as _0x79de65,UniverCollaborationClientPlugin as _0x172e42}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x288a71,SetWorksheetActiveOperation as _0x411a50}from'@univerjs/sheets';import{BehaviorSubject as _0x530a32,Subject as _0x517350}from'rxjs';import{takeUntil as _0x1f1c93,throttleTime as _0x3d7821}from'rxjs/operators';import{SetZoomRatioOperation as _0x3270d8,SetScrollOperation as _0x552a0c}from'@univerjs/sheets-ui';function k({ref:_0x1df001,..._0x513bb3}){const _0x354358=_0x2c17bd,{icon:_0x41d999,id:_0x3a64c2,className:_0x2ad4d2,extend:_0x401ca8,..._0x35a9d5}=_0x513bb3,_0x357d63=(_0x354358(0x249)+_0x3a64c2+'\x20'+(_0x2ad4d2||''))[_0x354358(0x22e)](),_0x3bd686=_0x470657('_'+Oe());return G(_0x41d999,''+_0x3a64c2,{'defIds':_0x41d999[_0x354358(0x21d)],'idSuffix':_0x3bd686['current']},{'ref':_0x1df001,'className':_0x357d63,..._0x35a9d5},_0x401ca8);}function G(_0x5a6ee8,_0x586d64,_0xada4dc,_0x3ebb1f,_0x4a6f3f){const _0x5e05ae=_0x2c17bd;return _0x690b7e(_0x5a6ee8[_0x5e05ae(0x273)],{'key':_0x586d64,...be(_0x5a6ee8,_0xada4dc,_0x4a6f3f),..._0x3ebb1f},(Ee(_0x5a6ee8,_0xada4dc)['children']||[])[_0x5e05ae(0x22d)]((_0x30a27b,_0x3c71c4)=>G(_0x30a27b,_0x586d64+'-'+_0x5a6ee8[_0x5e05ae(0x273)]+'-'+_0x3c71c4,_0xada4dc,void 0x0,_0x4a6f3f)));}function be(_0x4f137d,_0xa6c78e,_0x437c49){const _0x4b4d1f=_0x2c17bd,_0x44902f={..._0x4f137d[_0x4b4d1f(0x1f5)]};_0x437c49!=null&&_0x437c49[_0x4b4d1f(0x268)]&&_0x44902f[_0x4b4d1f(0x217)]===_0x4b4d1f(0x268)&&(_0x44902f[_0x4b4d1f(0x217)]=_0x437c49['colorChannel1']),_0x4f137d[_0x4b4d1f(0x273)]==='mask'&&_0x44902f['id']&&(_0x44902f['id']=_0x44902f['id']+_0xa6c78e[_0x4b4d1f(0x23e)]),Object[_0x4b4d1f(0x1e0)](_0x44902f)[_0x4b4d1f(0x252)](([_0x40353a,_0x11371d])=>{const _0x2d2c9b=_0x4b4d1f;_0x40353a===_0x2d2c9b(0x210)&&typeof _0x11371d==_0x2d2c9b(0x25e)&&(_0x44902f[_0x40353a]=_0x11371d[_0x2d2c9b(0x1f8)](/url\(#(.*)\)/,'url(#$1'+_0xa6c78e[_0x2d2c9b(0x23e)]+')'));});const {defIds:_0xf09bbc}=_0xa6c78e;return!_0xf09bbc||_0xf09bbc[_0x4b4d1f(0x225)]===0x0||(_0x4f137d[_0x4b4d1f(0x273)]===_0x4b4d1f(0x275)&&_0x44902f[_0x4b4d1f(0x24a)]&&(_0x44902f[_0x4b4d1f(0x24a)]=_0x44902f[_0x4b4d1f(0x24a)]+_0xa6c78e['idSuffix']),Object[_0x4b4d1f(0x1e0)](_0x44902f)[_0x4b4d1f(0x252)](([_0x19d350,_0x1d4ae8])=>{const _0x5d1565=_0x4b4d1f;typeof _0x1d4ae8==_0x5d1565(0x25e)&&(_0x44902f[_0x19d350]=_0x1d4ae8[_0x5d1565(0x1f8)](/url\(#(.*)\)/,_0x5d1565(0x1f1)+_0xa6c78e['idSuffix']+')'));})),_0x44902f;}function Ee(_0x2e1a6f,_0x2ad328){const _0x3fa413=_0x2c17bd;var _0x37c9f4;const {defIds:_0x5bc420}=_0x2ad328;return!_0x5bc420||_0x5bc420[_0x3fa413(0x225)]===0x0?_0x2e1a6f:_0x2e1a6f[_0x3fa413(0x273)]===_0x3fa413(0x226)&&((_0x37c9f4=_0x2e1a6f['children'])!=null&&_0x37c9f4[_0x3fa413(0x225)])?{..._0x2e1a6f,'children':_0x2e1a6f[_0x3fa413(0x243)][_0x3fa413(0x22d)](_0x28888b=>typeof _0x28888b[_0x3fa413(0x1f5)]['id']==_0x3fa413(0x25e)&&_0x5bc420&&_0x5bc420['includes'](_0x28888b[_0x3fa413(0x1f5)]['id'])?{..._0x28888b,'attrs':{..._0x28888b['attrs'],'id':_0x28888b[_0x3fa413(0x1f5)]['id']+_0x2ad328['idSuffix']}}:_0x28888b)}:_0x2e1a6f;}function Oe(){const _0xaf154c=_0x2c17bd;return Math['random']()[_0xaf154c(0x1d5)](0x24)[_0xaf154c(0x265)](0x2,0x8);}k[_0x2c17bd(0x23c)]='UniverIcon';const we={'tag':_0x2c17bd(0x1dc),'attrs':{'xmlns':_0x2c17bd(0x25f),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x2c17bd(0x271),'height':_0x2c17bd(0x271)},'children':[{'tag':_0x2c17bd(0x219),'attrs':{'fill':_0x2c17bd(0x1ee),'d':_0x2c17bd(0x1fa)}},{'tag':_0x2c17bd(0x219),'attrs':{'fill':_0x2c17bd(0x1ee),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x2c17bd(0x20c),'clipRule':'evenodd'}}]},W=_0x22f24d(function(_0x50414d,_0x4ebea5){return _0x690b7e(k,Object['assign']({},_0x50414d,{'id':'live-share-icon','ref':_0x4ebea5,'icon':we}));});W[_0x2c17bd(0x23c)]=_0x2c17bd(0x211);class L extends _0x340cc7{constructor(){const _0x2435a6=_0x2c17bd;super(...arguments),u(this,_0x2435a6(0x24f),new Set()),u(this,_0x2435a6(0x205),new Set());}[_0x2c17bd(0x20e)](_0x41c0a5){const _0x5a6bdc=_0x2c17bd;return this[_0x5a6bdc(0x24f)]['add'](_0x41c0a5),_0x1aa50a(()=>this[_0x5a6bdc(0x24f)][_0x5a6bdc(0x1d7)](_0x41c0a5));}[_0x2c17bd(0x248)](_0x5176f0){const _0x482477=_0x2c17bd;return this[_0x482477(0x205)][_0x482477(0x255)](_0x5176f0),_0x1aa50a(()=>this[_0x482477(0x205)]['delete'](_0x5176f0));}[_0x2c17bd(0x203)](_0x24d258){const _0x1e2684=_0x2c17bd;return this[_0x1e2684(0x24f)][_0x1e2684(0x22a)](_0x24d258);}[_0x2c17bd(0x257)](_0x5d77de){const _0x390056=_0x2c17bd;return Array[_0x390056(0x26a)](this['_reporters'])[_0x390056(0x22d)](_0x507a8f=>_0x507a8f(_0x5d77de));}}var Ne=Object[_0x2c17bd(0x214)],Y=(_0xd80162,_0x315b46,_0x520114,_0x5ac254)=>{const _0x45e54d=_0x2c17bd;for(var _0x3eb9d6=_0x5ac254>0x1?void 0x0:_0x5ac254?Ne(_0x315b46,_0x520114):_0x315b46,_0x42a071=_0xd80162[_0x45e54d(0x225)]-0x1,_0xa5d9a5;_0x42a071>=0x0;_0x42a071--)(_0xa5d9a5=_0xd80162[_0x42a071])&&(_0x3eb9d6=_0xa5d9a5(_0x3eb9d6)||_0x3eb9d6);return _0x3eb9d6;},_=(_0x5357c8,_0x5e2084)=>(_0x5a230b,_0x2bacba)=>_0x5e2084(_0x5a230b,_0x2bacba,_0x5357c8);let S=class extends _0x1729a0{constructor(_0x2d5315,_0x37abb6,_0x107b1f){const _0x58a46a=_0x2c17bd;super(),u(this,'_entities',new Map()),(this[_0x58a46a(0x20a)]=_0x2d5315,this[_0x58a46a(0x1d8)]=_0x37abb6,this['_collabSessionService']=_0x107b1f,this[_0x58a46a(0x1e1)]());}async[_0x2c17bd(0x1ed)](_0x4a21eb){const _0x147a9a=_0x2c17bd;return this[_0x147a9a(0x1e3)][_0x147a9a(0x22a)](_0x4a21eb)||await this[_0x147a9a(0x25c)](_0x4a21eb),this['_entities'][_0x147a9a(0x23d)](_0x4a21eb);}[_0x2c17bd(0x267)](_0x570ee6){const _0x57bc53=_0x2c17bd;var _0x1e4954;return(_0x1e4954=this[_0x57bc53(0x1e3)][_0x57bc53(0x23d)](_0x570ee6))!=null?_0x1e4954:null;}['_init'](){const _0x4e1f10=_0x2c17bd;this[_0x4e1f10(0x20a)][_0x4e1f10(0x24d)](_0x45889c[_0x4e1f10(0x1de)])[_0x4e1f10(0x1f6)](_0x1f1c93(this[_0x4e1f10(0x1e2)]))[_0x4e1f10(0x232)](async _0x485fc2=>{const _0x545891=_0x4e1f10,_0x47768c=_0x485fc2[_0x545891(0x274)]();this[_0x545891(0x1e3)][_0x545891(0x22a)](_0x47768c)||this[_0x545891(0x25c)](_0x47768c);}),this[_0x4e1f10(0x20a)][_0x4e1f10(0x1df)](_0x45889c[_0x4e1f10(0x1de)])[_0x4e1f10(0x1f6)](_0x1f1c93(this[_0x4e1f10(0x1e2)]))[_0x4e1f10(0x232)](_0x321e9a=>{const _0x31af76=_0x4e1f10,_0x22d47a=_0x321e9a[_0x31af76(0x274)](),_0x2ed8ce=this[_0x31af76(0x1e3)][_0x31af76(0x23d)](_0x22d47a);_0x2ed8ce==null||_0x2ed8ce[_0x31af76(0x241)]();});}async[_0x2c17bd(0x25c)](_0x15653a){const _0x5d7f3a=_0x2c17bd,_0x5f2b47=await this[_0x5d7f3a(0x22b)][_0x5d7f3a(0x23b)](_0x15653a),_0x46bd9b=this['_injector']['createInstance'](N,_0x15653a,_0x5f2b47);return _0x46bd9b[_0x5d7f3a(0x216)](),this[_0x5d7f3a(0x1e3)][_0x5d7f3a(0x1d1)](_0x15653a,_0x46bd9b),_0x46bd9b;}};S=Y([_(0x0,_0x9a2b99),_(0x1,_0xb91b10(_0x13efe5)),_(0x2,_0xb91b10(_0x228d40))],S);var c=(_0x48bffd=>(_0x48bffd[_0x2c17bd(0x1ef)]=_0x2c17bd(0x261),_0x48bffd[_0x2c17bd(0x26c)]=_0x2c17bd(0x201),_0x48bffd[_0x2c17bd(0x258)]=_0x2c17bd(0x253),_0x48bffd['NOT_FOLLOWING']=_0x2c17bd(0x212),_0x48bffd[_0x2c17bd(0x22f)]='presenting',_0x48bffd))(c||{});const Ce=_0x2c17bd(0x24e),De=0xc8;let N=class extends _0x1729a0{constructor(_0x421a24,_0x1d4fe7,_0x4e4a9e,_0x58778c,_0x255ad6){const _0x5cdd7f=_0x2c17bd;super(),u(this,_0x5cdd7f(0x204),new _0x530a32(_0x5cdd7f(0x201))),u(this,_0x5cdd7f(0x1d2),this[_0x5cdd7f(0x204)][_0x5cdd7f(0x26e)]()),u(this,_0x5cdd7f(0x1e1),!0x1),u(this,_0x5cdd7f(0x264),null),u(this,_0x5cdd7f(0x1e8),null),(this[_0x5cdd7f(0x202)]=_0x421a24,this['_collabSession']=_0x1d4fe7,this[_0x5cdd7f(0x220)]=_0x4e4a9e,this[_0x5cdd7f(0x236)]=_0x58778c,this[_0x5cdd7f(0x238)]=_0x255ad6);}get['_status'](){const _0x566241=_0x2c17bd;return this[_0x566241(0x204)][_0x566241(0x260)]();}[_0x2c17bd(0x241)](){const _0x2d9d0b=_0x2c17bd;var _0x21417d;(_0x21417d=this[_0x2d9d0b(0x264)])==null||_0x21417d[_0x2d9d0b(0x241)](),this[_0x2d9d0b(0x204)][_0x2d9d0b(0x270)](_0x2d9d0b(0x201)),this[_0x2d9d0b(0x204)][_0x2d9d0b(0x1d9)]();}[_0x2c17bd(0x1ec)](){const _0x58033f=_0x2c17bd;return this[_0x58033f(0x1da)];}[_0x2c17bd(0x216)](){const _0x31733a=_0x2c17bd;this[_0x31733a(0x1e1)]||(this[_0x31733a(0x1e1)]=!0x0,this['_collabSession'][_0x31733a(0x26f)][_0x31733a(0x1f6)](_0x1f1c93(this[_0x31733a(0x1e2)]))['subscribe'](_0x17ec45=>{const _0x38dc57=_0x31733a;switch(_0x17ec45){case _0x79de65[_0x38dc57(0x1ef)]:this['_handleOffline']();break;case _0x79de65[_0x38dc57(0x25d)]:this['_handleOnline']();break;}}),this[_0x31733a(0x26d)][_0x31733a(0x208)][_0x31733a(0x1f6)](_0x1f1c93(this['dispose$']))[_0x31733a(0x232)](_0x88aae0=>{const _0x1932c0=_0x31733a,{eventID:_0x449af1}=_0x88aae0;switch(_0x449af1){case _0x51a117['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x88aae0);break;case _0x51a117[_0x1932c0(0x240)]:this[_0x1932c0(0x215)](_0x88aae0);break;case _0x51a117['LIVESHARE_TERMINATE']:this[_0x1932c0(0x26b)]();break;case _0x51a117[_0x1932c0(0x231)]:this[_0x1932c0(0x207)](_0x88aae0);break;}}));}['tryStartPresenting'](){const _0x907710=_0x2c17bd;this[_0x907710(0x26d)]['send']({'eventID':_0x51a117[_0x907710(0x1fb)],'data':{'unitID':this[_0x907710(0x202)],'userID':this[_0x907710(0x26d)]['getMemberID']()}},this[_0x907710(0x202)]);}[_0x2c17bd(0x1f0)](){const _0x2aa2f9=_0x2c17bd;this[_0x2aa2f9(0x1da)]==='presenting'&&(this[_0x2aa2f9(0x204)][_0x2aa2f9(0x270)](_0x2aa2f9(0x201)),this[_0x2aa2f9(0x26d)][_0x2aa2f9(0x1f4)]({'eventID':_0x51a117[_0x2aa2f9(0x239)],'data':{'unitID':this[_0x2aa2f9(0x202)]}},this[_0x2aa2f9(0x202)]));}[_0x2c17bd(0x1fc)](){const _0x2d5d72=_0x2c17bd;this['_status']===_0x2d5d72(0x212)&&(this[_0x2d5d72(0x204)][_0x2d5d72(0x270)](_0x2d5d72(0x253)),this[_0x2d5d72(0x224)]());}[_0x2c17bd(0x1f3)](){const _0x2fed31=_0x2c17bd;this[_0x2fed31(0x1da)]===_0x2fed31(0x253)&&this[_0x2fed31(0x1e4)]();}['_handleNewHost'](_0x27a1d2){const _0x2ce34b=_0x2c17bd,{presenter:_0xc8a672}=_0x27a1d2[_0x2ce34b(0x237)],_0x4d8d36=this[_0x2ce34b(0x26d)]['getMemberID']();this[_0x2ce34b(0x1e8)]=_0xc8a672,_0xc8a672===_0x4d8d36?(this[_0x2ce34b(0x1e4)](),this[_0x2ce34b(0x227)]()):this[_0x2ce34b(0x1da)]!==_0x2ce34b(0x212)&&(this[_0x2ce34b(0x206)](),this[_0x2ce34b(0x224)]());}['_fetchOperations'](){const _0x1af4a7=_0x2c17bd,_0x299498={'eventID':_0x51a117[_0x1af4a7(0x25a)]};this[_0x1af4a7(0x26d)]['send'](_0x299498,this['_unitID']);}[_0x2c17bd(0x26b)](){const _0x30f54e=_0x2c17bd;this['_presenter']=null,this[_0x30f54e(0x1da)]!==_0x30f54e(0x20f)&&this[_0x30f54e(0x233)]();}[_0x2c17bd(0x207)](_0x4b0354){const _0x20ad2c=_0x2c17bd;if(this[_0x20ad2c(0x1da)]===_0x20ad2c(0x253)&&this[_0x20ad2c(0x1e8)]===_0x4b0354[_0x20ad2c(0x237)]['memberID']){const _0x22b7b6=_0x1db3a1(_0x4b0354[_0x20ad2c(0x237)])[_0x20ad2c(0x20d)][_0x20ad2c(0x21e)]()[_0x20ad2c(0x230)](_0x41a9c3=>_0x41a9c3['id']===_0x288a71['id']);if(_0x22b7b6){const _0x2e5be3=_0x22b7b6[_0x20ad2c(0x1e9)][_0x20ad2c(0x1eb)],_0xd40381=_0x22b7b6[_0x20ad2c(0x1e9)][_0x20ad2c(0x1fd)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x411a50['id'],{'unitId':_0x2e5be3,'subUnitId':_0xd40381},{'fromCollab':!0x0});});}}}[_0x2c17bd(0x227)](){const _0xe68353=_0x2c17bd;this[_0xe68353(0x204)][_0xe68353(0x270)](_0xe68353(0x20f));const _0x1a9045=new Map(),_0x22dea8=this[_0xe68353(0x264)]=new _0x4a90c4();_0x22dea8[_0xe68353(0x255)](_0x1aa50a(()=>{const _0x8cb478=_0xe68353;_0x1a9045[_0x8cb478(0x252)](_0x56aa2e=>_0x56aa2e[_0x8cb478(0x1d9)]()),_0x1a9045[_0x8cb478(0x1ea)]();})),_0x22dea8[_0xe68353(0x255)](this[_0xe68353(0x238)]['onCommandExecuted'](_0x49a0a8=>{const _0x4f78af=_0xe68353;var _0x7947c;if(_0x49a0a8[_0x4f78af(0x228)]!==_0x4010de['OPERATION']||!this['_liveShareService']['shouldShareOperation'](_0x49a0a8['id']))return;const {id:_0x59e605}=_0x49a0a8;let _0x14ad6a;_0x1a9045['has'](_0x59e605)?_0x14ad6a=_0x1a9045['get'](_0x59e605):(_0x14ad6a=new _0x517350(),_0x1a9045['set'](_0x59e605,_0x14ad6a),_0x14ad6a[_0x4f78af(0x1f6)](_0x3d7821((_0x7947c=this['_configService']['getConfig'](Ce))!=null?_0x7947c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1ebcd3=>{const _0x35dfa8=_0x4f78af;this[_0x35dfa8(0x26d)][_0x35dfa8(0x1f4)]({'eventID':_0x51a117[_0x35dfa8(0x240)],'data':{'unitID':this[_0x35dfa8(0x202)],'operations':{[_0x1ebcd3['id']]:{'id':_0x1ebcd3['id'],'params':JSON[_0x35dfa8(0x1d6)](_0x1ebcd3[_0x35dfa8(0x1e9)])}}}},this[_0x35dfa8(0x202)]);})),_0x14ad6a[_0x4f78af(0x270)](_0x49a0a8);})),this[_0xe68353(0x236)][_0xe68353(0x257)](this[_0xe68353(0x202)])[_0xe68353(0x252)](_0x525933=>this[_0xe68353(0x26d)]['send']({'eventID':_0x51a117[_0xe68353(0x240)],'data':{'unitID':this[_0xe68353(0x202)],'operations':{[_0x525933['id']]:{'id':_0x525933['id'],'params':JSON[_0xe68353(0x1d6)](_0x525933[_0xe68353(0x1e9)])}}}},this[_0xe68353(0x202)]));}['_stopPresenting'](){const _0x1d9168=_0x2c17bd;var _0x24528a;this[_0x1d9168(0x204)]['next'](_0x1d9168(0x201)),(_0x24528a=this[_0x1d9168(0x264)])==null||_0x24528a[_0x1d9168(0x241)](),this[_0x1d9168(0x264)]=null;}[_0x2c17bd(0x224)](){const _0x3f915e=_0x2c17bd;var _0x61c514;(_0x61c514=this[_0x3f915e(0x264)])==null||_0x61c514['dispose'](),this['_status$'][_0x3f915e(0x270)]('following');}[_0x2c17bd(0x233)](){const _0x2c2b0b=_0x2c17bd;var _0x39c84b;this['_status$']['next'](_0x2c2b0b(0x201)),(_0x39c84b=this[_0x2c2b0b(0x264)])==null||_0x39c84b[_0x2c2b0b(0x241)](),this[_0x2c2b0b(0x264)]=null;}[_0x2c17bd(0x1e4)](){const _0x573324=_0x2c17bd;var _0x1b4944;this[_0x573324(0x204)][_0x573324(0x270)](_0x573324(0x212)),(_0x1b4944=this[_0x573324(0x264)])==null||_0x1b4944[_0x573324(0x241)]();}[_0x2c17bd(0x215)](_0x1e99cb){const _0x1cf79c=_0x2c17bd;if([_0x1cf79c(0x20f),_0x1cf79c(0x212),_0x1cf79c(0x261)][_0x1cf79c(0x213)](this[_0x1cf79c(0x1da)])||!_0x1e99cb[_0x1cf79c(0x237)]['presenter']||_0x1e99cb[_0x1cf79c(0x237)][_0x1cf79c(0x24b)]===this['_collabSession']['getMemberID']())return;this[_0x1cf79c(0x1da)]==='idle'&&this[_0x1cf79c(0x224)]();const _0x7cb88f=_0x1e99cb[_0x1cf79c(0x237)][_0x1cf79c(0x20b)];Object[_0x1cf79c(0x25b)](_0x7cb88f)[_0x1cf79c(0x252)](_0xb6fb73=>{const _0x50a750=_0x1cf79c;this[_0x50a750(0x238)][_0x50a750(0x1e6)](_0xb6fb73['id'],_0xb6fb73[_0x50a750(0x1e9)]?JSON[_0x50a750(0x234)](_0xb6fb73[_0x50a750(0x1e9)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x41055d=_0x2c17bd;var _0x1c4063;this[_0x41055d(0x204)][_0x41055d(0x270)](_0x41055d(0x261)),(_0x1c4063=this[_0x41055d(0x264)])==null||_0x1c4063['dispose']();}[_0x2c17bd(0x269)](){const _0x5ba351=_0x2c17bd;this['_status$'][_0x5ba351(0x270)](_0x5ba351(0x201)),this[_0x5ba351(0x256)]();}};N=Y([_(0x2,_0x45ac9b),_(0x3,_0xb91b10(L)),_(0x4,_0x147916)],N);function Le(){const _0x18e79c=_0x2c17bd,_0x1dd162=_0x1bfba8(S),_0x4a51aa=_0x1bfba8(_0x9a2b99),_0x1cd3f6=_0x206e01(()=>_0x4a51aa[_0x18e79c(0x1f2)](_0x45889c['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3a132f,_0x30e72d]=_0x14fd36(null),[_0x3c8a80,_0x39aeef]=_0x14fd36(c[_0x18e79c(0x26c)]),_0x5d719f=_0x470657(null);return _0x23e84d(()=>(_0x1cd3f6&&_0x1dd162[_0x18e79c(0x1ed)](_0x1cd3f6[_0x18e79c(0x274)]())['then'](_0x512a61=>{const _0x193bf1=_0x18e79c;_0x30e72d(_0x512a61),_0x5d719f[_0x193bf1(0x272)]=_0x512a61[_0x193bf1(0x1d2)][_0x193bf1(0x232)](_0xaa4c7b=>{_0x39aeef(_0xaa4c7b);});}),()=>{const _0xbe3200=_0x18e79c;var _0x6f1578;(_0x6f1578=_0x5d719f[_0xbe3200(0x272)])==null||_0x6f1578['unsubscribe'](),_0x5d719f[_0xbe3200(0x272)]=null;}),[_0x1cd3f6,_0x1dd162]),_0x3a132f?_0x76a09b(_0x39b390,{'align':_0x18e79c(0x22c),'disabled':_0x3c8a80===c[_0x18e79c(0x1ef)],'className':_0x18e79c(0x221),'overlay':_0x76a09b(Re,{'status':_0x3c8a80,'coordinator':_0x3a132f}),'children':_0x76a09b('button',{'className':_0x3e4a67('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3c8a80===c[_0x18e79c(0x1ef)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3c8a80!==c['OFFLINE']}),'type':_0x18e79c(0x254),'children':_0x76a09b(W,{'className':_0x18e79c(0x222)})})}):null;}function Re(_0x3a55a0){const _0x45fef2=_0x2c17bd,{status:_0x32baff,coordinator:_0x53e42a}=_0x3a55a0;switch(_0x32baff){case c[_0x45fef2(0x26c)]:return _0x76a09b($e,{'coordinator':_0x53e42a});case c[_0x45fef2(0x258)]:return _0x76a09b(xe,{'coordinator':_0x53e42a});case c['NOT_FOLLOWING']:return _0x76a09b(Pe,{'coordinator':_0x53e42a});case c['OFFLINE']:return _0x76a09b(Te,{});case c[_0x45fef2(0x22f)]:return _0x76a09b(Ae,{'coordinator':_0x53e42a});default:return null;}}function $e(_0x50a119){const _0x17f16b=_0x2c17bd,{coordinator:_0x4dd261}=_0x50a119;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x17f16b(0x21f),{'className':_0x17f16b(0x1db),'children':_0x17f16b(0x21a)}),_0x76a09b(_0x2cafee,{'onClick':()=>_0x4dd261[_0x17f16b(0x209)](),'children':'Start'})]});}function xe(_0x3e1b1a){const _0x48b8e3=_0x2c17bd,{coordinator:_0x1b8c91}=_0x3e1b1a;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b('div',{'className':_0x48b8e3(0x1db),'children':_0x48b8e3(0x259)}),_0x76a09b(_0x2cafee,{'onClick':()=>_0x1b8c91[_0x48b8e3(0x1f3)](),'children':_0x48b8e3(0x223)})]});}function Pe(_0x182e79){const _0x173f14=_0x2c17bd,{coordinator:_0x4b774b}=_0x182e79;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x173f14(0x21f),{'className':_0x173f14(0x1db),'children':_0x173f14(0x245)}),_0x76a09b(_0x2cafee,{'variant':_0x173f14(0x200),'onClick':()=>_0x4b774b[_0x173f14(0x1fc)](),'children':'Start\x20following'})]});}function Ae(_0x214adf){const _0x2cf4c8=_0x2c17bd,{coordinator:_0x2ef842}=_0x214adf;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x2cf4c8(0x21f),{'className':_0x2cf4c8(0x1db),'children':_0x2cf4c8(0x242)}),_0x76a09b(_0x2cafee,{'variant':_0x2cf4c8(0x250),'onClick':()=>_0x2ef842[_0x2cf4c8(0x1f0)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x1a7d3b=_0x2c17bd;return _0x76a09b(_0x1c44c8,{'children':_0x1a7d3b(0x24c)});}var Fe=Object[_0x2c17bd(0x214)],He=(_0x1bb9b2,_0x5b183a,_0x2c02d7,_0x19aaed)=>{const _0x44d7bb=_0x2c17bd;for(var _0x38898e=_0x19aaed>0x1?void 0x0:_0x19aaed?Fe(_0x5b183a,_0x2c02d7):_0x5b183a,_0x16e70c=_0x1bb9b2[_0x44d7bb(0x225)]-0x1,_0x2d18c0;_0x16e70c>=0x0;_0x16e70c--)(_0x2d18c0=_0x1bb9b2[_0x16e70c])&&(_0x38898e=_0x2d18c0(_0x38898e)||_0x38898e);return _0x38898e;},A=(_0x5d6fbc,_0x537193)=>(_0x114252,_0x52e674)=>_0x537193(_0x114252,_0x52e674,_0x5d6fbc);let m=class extends _0x340cc7{constructor(_0x339511,_0x36757c){const _0x26e2ce=_0x2c17bd;super(),this[_0x26e2ce(0x1d8)]=_0x339511,this['_uiPartsService']=_0x36757c,this[_0x26e2ce(0x262)]();}[_0x2c17bd(0x262)](){const _0x4207e1=_0x2c17bd;this['disposeWithMe'](this[_0x4207e1(0x21b)][_0x4207e1(0x263)](_0x1bd2e1['HEADER_MENU'],()=>_0x33bb9e(Le,this['_injector'])));}};function _0x6dcd(_0x4e732e,_0xc26307){const _0xae527a=_0xae52();return _0x6dcd=function(_0x6dcde7,_0x39503b){_0x6dcde7=_0x6dcde7-0x1d1;let _0x4315be=_0xae527a[_0x6dcde7];return _0x4315be;},_0x6dcd(_0x4e732e,_0xc26307);}m=He([A(0x0,_0xb91b10(_0x13efe5)),A(0x1,_0x2066c5)],m);const ye=_0x2c17bd(0x235),T={};function _0xae52(){const _0x40ee8b=['_commandService','LIVESHARE_TERMINATE','UNIVER_LIVE_SHARE_PLUGIN','requireSession','displayName','get','idSuffix','onStarting','LIVESHARE_OPERATION','dispose','You\x27re\x20presenting\x20the\x20document','children','override','You\x27re\x20not\x20following\x20the\x20presenter','778388HjjhZk','UNIVER_UNKNOWN','registerInitialStateReporter','univerjs-icon\x20univerjs-icon-','xlink:href','presenter','You\x27are\x20offline.','getTypeOfUnitAdded$','SAME_OPERATION_SHARE_INTERVAL','_sharedOperations','default','defineProperty','forEach','following','button','add','_fetchOperations','getInitialStates','FOLLOWING','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','values','_startLiveShareCoordinator','ONLINE','string','http://www.w3.org/2000/svg','getValue','offline','_mountLiveShare','registerComponent','_commandDisposable','substring','4IaNogR','getLiveShareCoordinatorSync','colorChannel1','_handleOnline','from','_handleTerminate','IDLE','_collabSession','asObservable','sessionStatus$','next','1em','current','tag','getUnitId','use','set','status$','symbol','4297007InuhqR','toString','stringify','delete','_injector','complete','_status','univer-mb-3\x20univer-w-full\x20univer-text-sm','svg','18nIahkE','UNIVER_SHEET','getTypeOfUnitDisposed$','entries','_init','dispose$','_entities','_stopFollowing','280PuBcim','executeCommand','302898cZIFaY','_presenter','params','clear','unitId','getStatus','getLiveShareCoordinator','currentColor','OFFLINE','stopPresenting','url(#$1','getCurrentTypeOfUnit$','stopFollowing','send','attrs','pipe','176396MgLtAD','replace','_config','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','LIVESHARE_REQUEST_HOST','startFollowing','sheet','475990AnLsXP','463080ilZrEI','text','idle','_unitID','shouldShareOperation','_status$','_reporters','_stopPresenting','_handleNewChangeSets','event$','tryStartPresenting','_univerInstanceService','operations','evenodd','mutations','registerSharedOperation','presenting','mask','LiveShareIcon','not-following','includes','getOwnPropertyDescriptor','_handleOperation','init','fill','5SHPAQV','path','Present\x20this\x20document','_uiPartsService','29244SHabli','defIds','reverse','div','_configService','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-size-4','Stop\x20following','_startFollowing','length','defs','_startPresenting','type','setConfig','has','_collabSessionService','end','map','trim','PRESENTING','find','NEW_CHANGESETS','subscribe','_beIdle','parse','live-share.config','_liveShareService','data'];_0xae52=function(){return _0x40ee8b;};return _0xae52();}var Ue=Object[_0x2c17bd(0x214)],Ve=(_0x217ad0,_0x224ef1,_0x34314d,_0x7bd26a)=>{for(var _0x137332=_0x7bd26a>0x1?void 0x0:_0x7bd26a?Ue(_0x224ef1,_0x34314d):_0x224ef1,_0x33d2fe=_0x217ad0['length']-0x1,_0x29934a;_0x33d2fe>=0x0;_0x33d2fe--)(_0x29934a=_0x217ad0[_0x33d2fe])&&(_0x137332=_0x29934a(_0x137332)||_0x137332);return _0x137332;},je=(_0x4c8e1e,_0xcf5ea2)=>(_0x5df688,_0x35e3c5)=>_0xcf5ea2(_0x5df688,_0x35e3c5,_0x4c8e1e);let I=class extends _0x340cc7{constructor(_0x2b07e9){const _0x3e2627=_0x2c17bd;super(),this['_liveShareService']=_0x2b07e9,this[_0x3e2627(0x1e1)]();}['_init'](){const _0x199b69=_0x2c17bd;[_0x3270d8['id'],_0x552a0c['id'],_0x411a50['id']][_0x199b69(0x252)](_0xe6353c=>{const _0x4b0121=_0x199b69;this['disposeWithMe'](this[_0x4b0121(0x236)]['registerSharedOperation'](_0xe6353c));});}};I=Ve([je(0x0,_0xb91b10(L))],I);var Me=Object[_0x2c17bd(0x251)],ke=Object[_0x2c17bd(0x214)],Ge=(_0x2c8443,_0x481ed6,_0x435fe3)=>_0x481ed6 in _0x2c8443?Me(_0x2c8443,_0x481ed6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x435fe3}):_0x2c8443[_0x481ed6]=_0x435fe3,We=(_0x46b691,_0xee6291,_0x3cab60,_0x4e6182)=>{const _0x255d72=_0x2c17bd;for(var _0x91af07=_0x4e6182>0x1?void 0x0:_0x4e6182?ke(_0xee6291,_0x3cab60):_0xee6291,_0x7391f2=_0x46b691[_0x255d72(0x225)]-0x1,_0x5944a1;_0x7391f2>=0x0;_0x7391f2--)(_0x5944a1=_0x46b691[_0x7391f2])&&(_0x91af07=_0x5944a1(_0x91af07)||_0x91af07);return _0x91af07;},F=(_0x4043e1,_0x31c920)=>(_0x489a54,_0x290d7e)=>_0x31c920(_0x489a54,_0x290d7e,_0x4043e1),B=(_0x3c6a58,_0x5e6dde,_0x41706a)=>Ge(_0x3c6a58,typeof _0x5e6dde!=_0x2c17bd(0x1d3)?_0x5e6dde+'':_0x5e6dde,_0x41706a);const Ye=_0x2c17bd(0x23a);let b=class extends _0x24270d{constructor(_0x20754a=T,_0x5f3d9b,_0x25e57d){const _0x15807a=_0x2c17bd;super(),this[_0x15807a(0x1f9)]=_0x20754a,this[_0x15807a(0x1d8)]=_0x5f3d9b,this[_0x15807a(0x220)]=_0x25e57d;const {..._0x40acd5}=_0x51df76({},T,this[_0x15807a(0x1f9)]);this[_0x15807a(0x220)][_0x15807a(0x229)](ye,_0x40acd5);}[_0x2c17bd(0x23f)](){const _0x1064ca=_0x2c17bd;_0x312d92(this[_0x1064ca(0x1d8)],_0x43af49([[L],[S],[I],[m]],this[_0x1064ca(0x1f9)][_0x1064ca(0x244)])),_0x5199da(this[_0x1064ca(0x1d8)],[[I]]);}['onRendered'](){const _0x37eac9=_0x2c17bd;_0x5199da(this[_0x37eac9(0x1d8)],[[m]]);}};B(b,'type',_0x45889c[_0x2c17bd(0x247)]),B(b,'pluginName',Ye),b=We([_0x1c6ccb(_0x172e42),F(0x1,_0xb91b10(_0x13efe5)),F(0x2,_0x45ac9b)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1c49(_0x35a73c,_0x3d7167){const _0x39957d=_0x3995();return _0x1c49=function(_0x1c49c7,_0x338363){_0x1c49c7=_0x1c49c7-0xb8;let _0x11c51a=_0x39957d[_0x1c49c7];return _0x11c51a;},_0x1c49(_0x35a73c,_0x3d7167);}const _0x385ee5=_0x1c49;(function(_0x5c8676,_0x1bfe50){const _0x31c4ad=_0x1c49,_0x3dc571=_0x5c8676();while(!![]){try{const _0x4893a7=-parseInt(_0x31c4ad(0xc6))/0x1*(-parseInt(_0x31c4ad(0xce))/0x2)+-parseInt(_0x31c4ad(0xd1))/0x3*(-parseInt(_0x31c4ad(0xbd))/0x4)+-parseInt(_0x31c4ad(0xc9))/0x5*(parseInt(_0x31c4ad(0xd6))/0x6)+parseInt(_0x31c4ad(0xc2))/0x7*(-parseInt(_0x31c4ad(0xd0))/0x8)+-parseInt(_0x31c4ad(0xb9))/0x9*(parseInt(_0x31c4ad(0xc0))/0xa)+parseInt(_0x31c4ad(0xd4))/0xb+parseInt(_0x31c4ad(0xd7))/0xc;if(_0x4893a7===_0x1bfe50)break;else _0x3dc571['push'](_0x3dc571['shift']());}catch(_0x42ea04){_0x3dc571['push'](_0x3dc571['shift']());}}}(_0x3995,0xcca92));import{LiveShareController as _0x3c4784,LiveShareStatus as _0x28e52a}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x117b23}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x9893b1}from'@univerjs/sheets';import{SetScrollOperation as _0x35c931}from'@univerjs/sheets-ui';import{FRange as _0x2e72a3}from'@univerjs/sheets/facade';function _0x3995(){const _0x49b7a7=['48WxRdOK','3gqcnzB','getUnitId','No\x20active\x20workbook\x20found.','1716594YFeIpn','get','208122lnTlNn','3980124fLhzXk','getRenderById','startPresenting','9kRlIuD','stopFollowing','getId','getLiveShareCoordinatorSync','4596932BDJhhk','_injector','getSheetId','6123710xXuAPh','_commandService','1113119KRczoE','startFollowing','_initialize','stopPresenting','21dCigQf','getActiveWorkbook','extend','60EYtiHh','syncExecuteCommand','getStatus','getActiveSheet','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','112766vzdusu','PRESENTING'];_0x3995=function(){return _0x49b7a7;};return _0x3995();}import{FUniver as _0x570aa0,FEnum as _0x479bf3}from'@univerjs/core/facade';class I extends _0x2e72a3{[_0x385ee5(0xc4)](_0x10aeed,_0x49c341,_0x2bbaa6,_0x3e0d01,_0x2fe5be){const _0x452a81=_0x385ee5,_0x2854ee=_0x10aeed['get'](_0x3c4784),_0x4f8dc3=_0x10aeed[_0x452a81(0xd5)](_0x117b23),_0x30ad2f=_0x49c341['getUnitId'](),_0x45cfe7=_0x49c341[_0x452a81(0xcc)](),_0x29e214=_0x2854ee[_0x452a81(0xbc)](_0x30ad2f);(_0x29e214==null?void 0x0:_0x29e214[_0x452a81(0xcb)]())!==_0x28e52a[_0x452a81(0xcf)]||(_0x2bbaa6['getSheetId']()!==_0x45cfe7[_0x452a81(0xbf)]()&&this[_0x452a81(0xc1)]['executeCommand'](_0x9893b1['id'],{'unitId':_0x30ad2f,'subUnitId':_0x2bbaa6['getSheetId']()}),!_0x4f8dc3[_0x452a81(0xd8)](_0x30ad2f))||_0x2fe5be[_0x452a81(0xca)](_0x35c931['id'],{'unitId':_0x49c341[_0x452a81(0xd2)](),'sheetId':_0x2bbaa6[_0x452a81(0xbf)](),'sheetViewStartRow':_0x3e0d01['startRow'],'sheetViewStartColumn':_0x3e0d01['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x2e72a3[_0x385ee5(0xc8)](I);class m extends _0x570aa0{['getLiveShareStatus'](){const _0x11a0f6=_0x385ee5;var _0x59bc77,_0x241738;const _0x427b2d=this[_0x11a0f6(0xbe)][_0x11a0f6(0xd5)](_0x3c4784),_0xb4a6fd=(_0x59bc77=this[_0x11a0f6(0xc7)]())==null?void 0x0:_0x59bc77[_0x11a0f6(0xbb)]();if(!_0xb4a6fd)throw new Error(_0x11a0f6(0xd3));const _0x17fbb4=_0x427b2d[_0x11a0f6(0xbc)](_0xb4a6fd);return(_0x241738=_0x17fbb4==null?void 0x0:_0x17fbb4[_0x11a0f6(0xcb)]())!=null?_0x241738:_0x28e52a['IDLE'];}[_0x385ee5(0xc3)](){const _0x16c878=_0x385ee5;var _0x45f675;const _0x2c004d=this[_0x16c878(0xbe)][_0x16c878(0xd5)](_0x3c4784),_0x5cbc0e=(_0x45f675=this['getActiveWorkbook']())==null?void 0x0:_0x45f675[_0x16c878(0xbb)]();if(!_0x5cbc0e)throw new Error('No\x20active\x20workbook\x20found.');const _0x2d0c35=_0x2c004d['getLiveShareCoordinatorSync'](_0x5cbc0e);if(!_0x2d0c35)throw new Error(_0x16c878(0xcd));_0x2d0c35[_0x16c878(0xc3)]();}[_0x385ee5(0xba)](){const _0x30b557=_0x385ee5;var _0xbf38e8;const _0x5d4c5e=this[_0x30b557(0xbe)][_0x30b557(0xd5)](_0x3c4784),_0x223473=(_0xbf38e8=this[_0x30b557(0xc7)]())==null?void 0x0:_0xbf38e8[_0x30b557(0xbb)]();if(!_0x223473)throw new Error(_0x30b557(0xd3));const _0x60664c=_0x5d4c5e['getLiveShareCoordinatorSync'](_0x223473);if(!_0x60664c)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x60664c[_0x30b557(0xba)]();}[_0x385ee5(0xb8)](){const _0x286b3c=_0x385ee5;var _0x101f7e;const _0x38ed9e=this['_injector'][_0x286b3c(0xd5)](_0x3c4784),_0x5bba9f=(_0x101f7e=this['getActiveWorkbook']())==null?void 0x0:_0x101f7e[_0x286b3c(0xbb)]();if(!_0x5bba9f)throw new Error(_0x286b3c(0xd3));const _0x13a25e=_0x38ed9e[_0x286b3c(0xbc)](_0x5bba9f);if(!_0x13a25e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x13a25e['tryStartPresenting']();}[_0x385ee5(0xc5)](){const _0x7727a8=_0x385ee5;var _0x3290a3;const _0x30ea03=this['_injector'][_0x7727a8(0xd5)](_0x3c4784),_0x5f590f=(_0x3290a3=this[_0x7727a8(0xc7)]())==null?void 0x0:_0x3290a3[_0x7727a8(0xbb)]();if(!_0x5f590f)throw new Error(_0x7727a8(0xd3));const _0x36df00=_0x30ea03[_0x7727a8(0xbc)](_0x5f590f);if(!_0x36df00)throw new Error(_0x7727a8(0xcd));_0x36df00['stopPresenting']();}}_0x570aa0['extend'](m);class C extends _0x479bf3{get['LiveShareStatusEnum'](){return _0x28e52a;}}_0x479bf3['extend'](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1d8f(_0xb058dc,_0x3c0d8f){const _0x17fa9f=_0x17fa();return _0x1d8f=function(_0x1d8f29,_0x46e013){_0x1d8f29=_0x1d8f29-0x1bd;let _0x238f7b=_0x17fa9f[_0x1d8f29];return _0x238f7b;},_0x1d8f(_0xb058dc,_0x3c0d8f);}const _0xa0c0b6=_0x1d8f;(function(_0x291d23,_0x35c7f2){const _0x268d65=_0x1d8f,_0x52691d=_0x291d23();while(!![]){try{const _0x5b3fad=parseInt(_0x268d65(0x1f1))/0x1+parseInt(_0x268d65(0x1e6))/0x2*(parseInt(_0x268d65(0x1e9))/0x3)+parseInt(_0x268d65(0x1fe))/0x4*(parseInt(_0x268d65(0x1f2))/0x5)+-parseInt(_0x268d65(0x210))/0x6+-parseInt(_0x268d65(0x20c))/0x7+-parseInt(_0x268d65(0x20d))/0x8+-parseInt(_0x268d65(0x220))/0x9*(-parseInt(_0x268d65(0x226))/0xa);if(_0x5b3fad===_0x35c7f2)break;else _0x52691d['push'](_0x52691d['shift']());}catch(_0x3044ea){_0x52691d['push'](_0x52691d['shift']());}}}(_0x17fa,0xb5bdb));var J=Object[_0xa0c0b6(0x1bf)],K=(_0x417551,_0x1d7ab3,_0x28b094)=>_0x1d7ab3 in _0x417551?J(_0x417551,_0x1d7ab3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28b094}):_0x417551[_0x1d7ab3]=_0x28b094,u=(_0x2fdc4d,_0x4dfcad,_0x4fef98)=>K(_0x2fdc4d,typeof _0x4dfcad!=_0xa0c0b6(0x243)?_0x4dfcad+'':_0x4dfcad,_0x4fef98);import{Disposable as _0x47be1,toDisposable as _0x59aa4e,IUniverInstanceService as _0x50bef0,Inject as _0x46e58e,Injector as _0x34570d,IConfigService as _0x51d074,ICommandService as _0x2d4b2a,RxDisposable as _0x5b9ba2,UniverInstanceType as _0x1c5b82,DisposableCollection as _0x574b38,CommandType as _0x24cbe9,DependentOn as _0x3e663a,Plugin as _0x405a79,merge as _0x3b3b27,registerDependencies as _0x233739,mergeOverrideWithDependencies as _0x3f2ca7,touchDependencies as _0x65f852}from'@univerjs/core';import{useDependency as _0x3020fd,useObservable as _0x5a31ad,IUIPartsService as _0x1089dc,BuiltInUIPart as _0x3ee1f5,connectInjector as _0x376659}from'@univerjs/ui';import{jsx as _0x4b183d,jsxs as _0x3f8de9,Fragment as _0x39f39b}from'react/jsx-runtime';import{Dropdown as _0x209b75,clsx as _0x59ff9b,Button as _0x89b657}from'@univerjs/design';import{useRef as _0x470aac,createElement as _0x4e23df,forwardRef as _0x2895d2,useState as _0x458258,useEffect as _0x4df20f}from'react';function _0x17fa(){const _0x17f208=['params','onStarting','_reporters','_unitID','_sharedOperations','clear','forEach','tag','Start\x20following','getOwnPropertyDescriptor','_init','type','registerComponent','IDLE','getStatus','path','dispose$','_stopFollowing','parse','shouldShareOperation','registerSharedOperation','NEW_CHANGESETS','LiveShareIcon','substring','PRESENTING','_beIdle','children','LIVESHARE_OPERATION','complete','presenter','mask','includes','162910LiRmoY','executeCommand','Present\x20this\x20document','3NVCpAw','SAME_OPERATION_SHARE_INTERVAL','override','_handleOperation','then','getValue','evenodd','_status$','1360520oVwqWP','19115tUEyHn','_injector','getLiveShareCoordinator','_startLiveShareCoordinator','_commandDisposable','getMemberID','status$','colorChannel1','_liveShareService','startFollowing','replace','data','516FqOXsG','event$','string','defIds','url(#$1','presenting','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','getLiveShareCoordinatorSync','ONLINE','getUnitId','_startFollowing','HEADER_MENU','displayName','div','8715105TnapPe','9902136sPNQGp','FOLLOWING','delete','3046074ZbSNLL','_univerInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_commandService','_presenter','onRendered','tryStartPresenting','sessionStatus$','You\x27are\x20offline.','_handleOffline','getCurrentTypeOfUnit$','OPERATION','init','not-following','stopFollowing','from','81cEkYSP','default','Start','idle','following','add','1999700XmVGvv','_uiPartsService','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','toString','pipe','xlink:href','live-share-icon','_status','has','find','_collabSessionService','LIVESHARE_TERMINATE','entries','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','fill','Stop\x20following','dispose','button','getInitialStates','_handleTerminate','_configService','You\x27re\x20not\x20following\x20the\x20presenter','pluginName','send','subscribe','_config','http://www.w3.org/2000/svg','symbol','createInstance','random','LIVESHARE_NEW_HOST','UNIVER_UNKNOWN','unsubscribe','_handleOnline','You\x27re\x20presenting\x20the\x20document','univerjs-icon\x20univerjs-icon-','unitId','_entities','stringify','0\x200\x2017\x2017','1em','_handleNewHost','Stop\x20presenting','get','mutations','NOT_FOLLOWING','_collabSession','map','onCommandExecuted','_fetchOperations','idSuffix','stopPresenting','next','assign','UNIVER_SHEET','asObservable','sheet','current','OFFLINE','registerInitialStateReporter','currentColor','LIVESHARE_REQUEST_HOST','_startPresenting','defineProperty','trim','live-share.config','getTypeOfUnitDisposed$','attrs','length','_mountLiveShare'];_0x17fa=function(){return _0x17f208;};return _0x17fa();}import{CollaborationEvent as _0xf330b6,parseProtocolChangeset as _0x282616}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x548dab,SessionStatus as _0x3972e8,UniverCollaborationClientPlugin as _0x176434}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x97a76,SetWorksheetActiveOperation as _0x15573d}from'@univerjs/sheets';import{BehaviorSubject as _0x52f53b,Subject as _0x272542}from'rxjs';import{takeUntil as _0x290aa2,throttleTime as _0x374a3c}from'rxjs/operators';import{SetZoomRatioOperation as _0x240ca6,SetScrollOperation as _0x35c30a}from'@univerjs/sheets-ui';function k({ref:_0x1f28ce,..._0x311b60}){const _0x46e321=_0xa0c0b6,{icon:_0x44c4c4,id:_0x51d30c,className:_0x3591d5,extend:_0x543391,..._0x5d680f}=_0x311b60,_0x30534b=(_0x46e321(0x24b)+_0x51d30c+'\x20'+(_0x3591d5||''))[_0x46e321(0x1c0)](),_0x1773cd=_0x470aac('_'+Oe());return G(_0x44c4c4,''+_0x51d30c,{'defIds':_0x44c4c4[_0x46e321(0x201)],'idSuffix':_0x1773cd[_0x46e321(0x261)]},{'ref':_0x1f28ce,'className':_0x30534b,..._0x5d680f},_0x543391);}function G(_0x333660,_0x3bdd40,_0x12577b,_0x44ddb1,_0x4e6e63){const _0x2e8a26=_0xa0c0b6;return _0x4e23df(_0x333660[_0x2e8a26(0x1cd)],{'key':_0x3bdd40,...be(_0x333660,_0x12577b,_0x4e6e63),..._0x44ddb1},(Ee(_0x333660,_0x12577b)[_0x2e8a26(0x1e0)]||[])['map']((_0x45a197,_0x1e9d91)=>G(_0x45a197,_0x3bdd40+'-'+_0x333660[_0x2e8a26(0x1cd)]+'-'+_0x1e9d91,_0x12577b,void 0x0,_0x4e6e63)));}function be(_0x465700,_0x268d9d,_0xdcc508){const _0x45ae33=_0xa0c0b6,_0x21aeb9={..._0x465700[_0x45ae33(0x1c3)]};_0xdcc508!=null&&_0xdcc508['colorChannel1']&&_0x21aeb9[_0x45ae33(0x236)]===_0x45ae33(0x1f9)&&(_0x21aeb9[_0x45ae33(0x236)]=_0xdcc508[_0x45ae33(0x1f9)]),_0x465700[_0x45ae33(0x1cd)]===_0x45ae33(0x1e4)&&_0x21aeb9['id']&&(_0x21aeb9['id']=_0x21aeb9['id']+_0x268d9d[_0x45ae33(0x25a)]),Object[_0x45ae33(0x233)](_0x21aeb9)[_0x45ae33(0x1cc)](([_0x305482,_0x274c4e])=>{const _0x533105=_0x45ae33;_0x305482==='mask'&&typeof _0x274c4e=='string'&&(_0x21aeb9[_0x305482]=_0x274c4e[_0x533105(0x1fc)](/url\(#(.*)\)/,_0x533105(0x202)+_0x268d9d[_0x533105(0x25a)]+')'));});const {defIds:_0x43c5c}=_0x268d9d;return!_0x43c5c||_0x43c5c['length']===0x0||(_0x465700['tag']==='use'&&_0x21aeb9['xlink:href']&&(_0x21aeb9['xlink:href']=_0x21aeb9[_0x45ae33(0x22c)]+_0x268d9d[_0x45ae33(0x25a)]),Object[_0x45ae33(0x233)](_0x21aeb9)[_0x45ae33(0x1cc)](([_0x18993f,_0x4af33d])=>{const _0xbd2c6=_0x45ae33;typeof _0x4af33d=='string'&&(_0x21aeb9[_0x18993f]=_0x4af33d[_0xbd2c6(0x1fc)](/url\(#(.*)\)/,_0xbd2c6(0x202)+_0x268d9d[_0xbd2c6(0x25a)]+')'));})),_0x21aeb9;}function Ee(_0x3cdbb2,_0x55fbb5){const _0x36fdd6=_0xa0c0b6;var _0x1f4304;const {defIds:_0x43d229}=_0x55fbb5;return!_0x43d229||_0x43d229[_0x36fdd6(0x1c4)]===0x0?_0x3cdbb2:_0x3cdbb2[_0x36fdd6(0x1cd)]==='defs'&&((_0x1f4304=_0x3cdbb2[_0x36fdd6(0x1e0)])!=null&&_0x1f4304[_0x36fdd6(0x1c4)])?{..._0x3cdbb2,'children':_0x3cdbb2[_0x36fdd6(0x1e0)][_0x36fdd6(0x257)](_0x3b6b59=>typeof _0x3b6b59['attrs']['id']==_0x36fdd6(0x200)&&_0x43d229&&_0x43d229[_0x36fdd6(0x1e5)](_0x3b6b59[_0x36fdd6(0x1c3)]['id'])?{..._0x3b6b59,'attrs':{..._0x3b6b59[_0x36fdd6(0x1c3)],'id':_0x3b6b59[_0x36fdd6(0x1c3)]['id']+_0x55fbb5[_0x36fdd6(0x25a)]}}:_0x3b6b59)}:_0x3cdbb2;}function Oe(){const _0x47f5e4=_0xa0c0b6;return Math[_0x47f5e4(0x245)]()[_0x47f5e4(0x22a)](0x24)[_0x47f5e4(0x1dd)](0x2,0x8);}k[_0xa0c0b6(0x20a)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0xa0c0b6(0x242),'fill':'none','viewBox':_0xa0c0b6(0x24f),'width':'1em','height':_0xa0c0b6(0x250)},'children':[{'tag':_0xa0c0b6(0x1d5),'attrs':{'fill':_0xa0c0b6(0x264),'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':_0xa0c0b6(0x1d5),'attrs':{'fill':_0xa0c0b6(0x264),'d':_0xa0c0b6(0x234),'fillRule':'evenodd','clipRule':_0xa0c0b6(0x1ef)}}]},W=_0x2895d2(function(_0xb7f402,_0x51456f){const _0x22b72a=_0xa0c0b6;return _0x4e23df(k,Object[_0x22b72a(0x25d)]({},_0xb7f402,{'id':_0x22b72a(0x22d),'ref':_0x51456f,'icon':we}));});W[_0xa0c0b6(0x20a)]=_0xa0c0b6(0x1dc);class L extends _0x47be1{constructor(){const _0x1d8f56=_0xa0c0b6;super(...arguments),u(this,_0x1d8f56(0x1ca),new Set()),u(this,'_reporters',new Set());}[_0xa0c0b6(0x1da)](_0x9b44d7){const _0x278d24=_0xa0c0b6;return this[_0x278d24(0x1ca)][_0x278d24(0x225)](_0x9b44d7),_0x59aa4e(()=>this[_0x278d24(0x1ca)][_0x278d24(0x20f)](_0x9b44d7));}[_0xa0c0b6(0x263)](_0x1634f3){const _0x1dc117=_0xa0c0b6;return this[_0x1dc117(0x1c8)][_0x1dc117(0x225)](_0x1634f3),_0x59aa4e(()=>this['_reporters'][_0x1dc117(0x20f)](_0x1634f3));}[_0xa0c0b6(0x1d9)](_0x556e29){return this['_sharedOperations']['has'](_0x556e29);}[_0xa0c0b6(0x23a)](_0x4f025e){const _0x47e4f8=_0xa0c0b6;return Array[_0x47e4f8(0x21f)](this[_0x47e4f8(0x1c8)])[_0x47e4f8(0x257)](_0x481bd8=>_0x481bd8(_0x4f025e));}}var Ne=Object[_0xa0c0b6(0x1cf)],Y=(_0xaff5d5,_0x33db42,_0x309d60,_0x22133c)=>{const _0x52dc27=_0xa0c0b6;for(var _0x335f17=_0x22133c>0x1?void 0x0:_0x22133c?Ne(_0x33db42,_0x309d60):_0x33db42,_0x5d9a08=_0xaff5d5[_0x52dc27(0x1c4)]-0x1,_0x1c255b;_0x5d9a08>=0x0;_0x5d9a08--)(_0x1c255b=_0xaff5d5[_0x5d9a08])&&(_0x335f17=_0x1c255b(_0x335f17)||_0x335f17);return _0x335f17;},_=(_0x477077,_0x5dd4d9)=>(_0x2a79e7,_0x29a138)=>_0x5dd4d9(_0x2a79e7,_0x29a138,_0x477077);let S=class extends _0x5b9ba2{constructor(_0x5c50ac,_0x2b94cf,_0x3c3ad8){const _0x856814=_0xa0c0b6;super(),u(this,_0x856814(0x24d),new Map()),(this['_univerInstanceService']=_0x5c50ac,this[_0x856814(0x1f3)]=_0x2b94cf,this[_0x856814(0x231)]=_0x3c3ad8,this[_0x856814(0x1d0)]());}async[_0xa0c0b6(0x1f4)](_0x38d03d){const _0x429233=_0xa0c0b6;return this[_0x429233(0x24d)][_0x429233(0x22f)](_0x38d03d)||await this[_0x429233(0x1f5)](_0x38d03d),this[_0x429233(0x24d)][_0x429233(0x253)](_0x38d03d);}[_0xa0c0b6(0x205)](_0x56d221){const _0x16f85c=_0xa0c0b6;var _0x1d254f;return(_0x1d254f=this['_entities'][_0x16f85c(0x253)](_0x56d221))!=null?_0x1d254f:null;}[_0xa0c0b6(0x1d0)](){const _0x3bf8a8=_0xa0c0b6;this[_0x3bf8a8(0x211)]['getTypeOfUnitAdded$'](_0x1c5b82[_0x3bf8a8(0x25e)])[_0x3bf8a8(0x22b)](_0x290aa2(this[_0x3bf8a8(0x1d6)]))[_0x3bf8a8(0x240)](async _0x263afd=>{const _0x49a577=_0x3bf8a8,_0x5035e8=_0x263afd['getUnitId']();this[_0x49a577(0x24d)]['has'](_0x5035e8)||this[_0x49a577(0x1f5)](_0x5035e8);}),this[_0x3bf8a8(0x211)][_0x3bf8a8(0x1c2)](_0x1c5b82[_0x3bf8a8(0x25e)])[_0x3bf8a8(0x22b)](_0x290aa2(this[_0x3bf8a8(0x1d6)]))[_0x3bf8a8(0x240)](_0x5d8bc1=>{const _0x46367a=_0x3bf8a8,_0x3131bc=_0x5d8bc1['getUnitId'](),_0x2df236=this[_0x46367a(0x24d)][_0x46367a(0x253)](_0x3131bc);_0x2df236==null||_0x2df236['dispose']();});}async[_0xa0c0b6(0x1f5)](_0x343e91){const _0x4b6e6e=_0xa0c0b6,_0x5f5549=await this[_0x4b6e6e(0x231)]['requireSession'](_0x343e91),_0x2f4062=this['_injector'][_0x4b6e6e(0x244)](N,_0x343e91,_0x5f5549);return _0x2f4062[_0x4b6e6e(0x21c)](),this[_0x4b6e6e(0x24d)]['set'](_0x343e91,_0x2f4062),_0x2f4062;}};S=Y([_(0x0,_0x50bef0),_(0x1,_0x46e58e(_0x34570d)),_(0x2,_0x46e58e(_0x548dab))],S);var c=(_0x1f0707=>(_0x1f0707[_0xa0c0b6(0x262)]='offline',_0x1f0707[_0xa0c0b6(0x1d3)]=_0xa0c0b6(0x223),_0x1f0707['FOLLOWING']=_0xa0c0b6(0x224),_0x1f0707[_0xa0c0b6(0x255)]=_0xa0c0b6(0x21d),_0x1f0707['PRESENTING']=_0xa0c0b6(0x203),_0x1f0707))(c||{});const Ce=_0xa0c0b6(0x1ea),De=0xc8;let N=class extends _0x5b9ba2{constructor(_0x315fe2,_0x44b645,_0x1bb5f0,_0x46fbe8,_0x22027c){const _0x2180a4=_0xa0c0b6;super(),u(this,_0x2180a4(0x1f0),new _0x52f53b(_0x2180a4(0x223))),u(this,_0x2180a4(0x1f8),this[_0x2180a4(0x1f0)][_0x2180a4(0x25f)]()),u(this,'_init',!0x1),u(this,_0x2180a4(0x1f6),null),u(this,'_presenter',null),(this[_0x2180a4(0x1c9)]=_0x315fe2,this[_0x2180a4(0x256)]=_0x44b645,this[_0x2180a4(0x23c)]=_0x1bb5f0,this[_0x2180a4(0x1fa)]=_0x46fbe8,this[_0x2180a4(0x213)]=_0x22027c);}get[_0xa0c0b6(0x22e)](){const _0x33a331=_0xa0c0b6;return this['_status$'][_0x33a331(0x1ee)]();}['dispose'](){const _0x47b04c=_0xa0c0b6;var _0x57dccb;(_0x57dccb=this['_commandDisposable'])==null||_0x57dccb[_0x47b04c(0x238)](),this[_0x47b04c(0x1f0)][_0x47b04c(0x25c)]('idle'),this[_0x47b04c(0x1f0)][_0x47b04c(0x1e2)]();}[_0xa0c0b6(0x1d4)](){const _0x16245b=_0xa0c0b6;return this[_0x16245b(0x22e)];}[_0xa0c0b6(0x21c)](){const _0x106ff5=_0xa0c0b6;this['_init']||(this[_0x106ff5(0x1d0)]=!0x0,this[_0x106ff5(0x256)][_0x106ff5(0x217)]['pipe'](_0x290aa2(this[_0x106ff5(0x1d6)]))['subscribe'](_0xc6aa38=>{const _0xe31007=_0x106ff5;switch(_0xc6aa38){case _0x3972e8[_0xe31007(0x262)]:this['_handleOffline']();break;case _0x3972e8[_0xe31007(0x206)]:this[_0xe31007(0x249)]();break;}}),this[_0x106ff5(0x256)][_0x106ff5(0x1ff)][_0x106ff5(0x22b)](_0x290aa2(this[_0x106ff5(0x1d6)]))['subscribe'](_0x21459f=>{const _0x5c7125=_0x106ff5,{eventID:_0x26bb47}=_0x21459f;switch(_0x26bb47){case _0xf330b6[_0x5c7125(0x246)]:this['_handleNewHost'](_0x21459f);break;case _0xf330b6[_0x5c7125(0x1e1)]:this['_handleOperation'](_0x21459f);break;case _0xf330b6[_0x5c7125(0x232)]:this[_0x5c7125(0x23b)]();break;case _0xf330b6[_0x5c7125(0x1db)]:this['_handleNewChangeSets'](_0x21459f);break;}}));}[_0xa0c0b6(0x216)](){const _0xa24803=_0xa0c0b6;this[_0xa24803(0x256)]['send']({'eventID':_0xf330b6[_0xa24803(0x1bd)],'data':{'unitID':this['_unitID'],'userID':this[_0xa24803(0x256)][_0xa24803(0x1f7)]()}},this[_0xa24803(0x1c9)]);}[_0xa0c0b6(0x25b)](){const _0xc85687=_0xa0c0b6;this[_0xc85687(0x22e)]===_0xc85687(0x203)&&(this[_0xc85687(0x1f0)][_0xc85687(0x25c)](_0xc85687(0x223)),this[_0xc85687(0x256)]['send']({'eventID':_0xf330b6[_0xc85687(0x232)],'data':{'unitID':this[_0xc85687(0x1c9)]}},this[_0xc85687(0x1c9)]));}[_0xa0c0b6(0x1fb)](){const _0x399c12=_0xa0c0b6;this[_0x399c12(0x22e)]===_0x399c12(0x21d)&&(this['_status$'][_0x399c12(0x25c)](_0x399c12(0x224)),this[_0x399c12(0x208)]());}[_0xa0c0b6(0x21e)](){const _0xf1d7cd=_0xa0c0b6;this[_0xf1d7cd(0x22e)]===_0xf1d7cd(0x224)&&this[_0xf1d7cd(0x1d7)]();}[_0xa0c0b6(0x251)](_0x4e2031){const _0x59e27c=_0xa0c0b6,{presenter:_0x3da6a9}=_0x4e2031[_0x59e27c(0x1fd)],_0x225acb=this[_0x59e27c(0x256)]['getMemberID']();this[_0x59e27c(0x214)]=_0x3da6a9,_0x3da6a9===_0x225acb?(this[_0x59e27c(0x1d7)](),this[_0x59e27c(0x1be)]()):this[_0x59e27c(0x22e)]!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xa0c0b6(0x259)](){const _0x5974ff=_0xa0c0b6,_0x5b38c4={'eventID':_0xf330b6[_0x5974ff(0x229)]};this[_0x5974ff(0x256)][_0x5974ff(0x23f)](_0x5b38c4,this[_0x5974ff(0x1c9)]);}[_0xa0c0b6(0x23b)](){const _0x59a53e=_0xa0c0b6;this[_0x59a53e(0x214)]=null,this[_0x59a53e(0x22e)]!==_0x59a53e(0x203)&&this[_0x59a53e(0x1df)]();}['_handleNewChangeSets'](_0x558607){const _0x14f936=_0xa0c0b6;if(this['_status']===_0x14f936(0x224)&&this[_0x14f936(0x214)]===_0x558607[_0x14f936(0x1fd)]['memberID']){const _0x399e05=_0x282616(_0x558607[_0x14f936(0x1fd)])[_0x14f936(0x254)]['reverse']()[_0x14f936(0x230)](_0x15ec3f=>_0x15ec3f['id']===_0x97a76['id']);if(_0x399e05){const _0xa6d10b=_0x399e05[_0x14f936(0x1c6)][_0x14f936(0x24c)],_0x22da9d=_0x399e05[_0x14f936(0x1c6)][_0x14f936(0x260)]['id'];setTimeout(()=>{const _0x1228d5=_0x14f936;this['_commandService'][_0x1228d5(0x1e7)](_0x15573d['id'],{'unitId':_0xa6d10b,'subUnitId':_0x22da9d},{'fromCollab':!0x0});});}}}[_0xa0c0b6(0x1be)](){const _0x519772=_0xa0c0b6;this[_0x519772(0x1f0)][_0x519772(0x25c)](_0x519772(0x203));const _0x769864=new Map(),_0x26dd89=this[_0x519772(0x1f6)]=new _0x574b38();_0x26dd89['add'](_0x59aa4e(()=>{const _0x15d407=_0x519772;_0x769864[_0x15d407(0x1cc)](_0x1ffe6a=>_0x1ffe6a['complete']()),_0x769864[_0x15d407(0x1cb)]();})),_0x26dd89[_0x519772(0x225)](this[_0x519772(0x213)][_0x519772(0x258)](_0x4deff7=>{const _0x3e66cb=_0x519772;var _0x96fe22;if(_0x4deff7[_0x3e66cb(0x1d1)]!==_0x24cbe9[_0x3e66cb(0x21b)]||!this[_0x3e66cb(0x1fa)]['shouldShareOperation'](_0x4deff7['id']))return;const {id:_0x40b512}=_0x4deff7;let _0x42dfed;_0x769864[_0x3e66cb(0x22f)](_0x40b512)?_0x42dfed=_0x769864[_0x3e66cb(0x253)](_0x40b512):(_0x42dfed=new _0x272542(),_0x769864['set'](_0x40b512,_0x42dfed),_0x42dfed[_0x3e66cb(0x22b)](_0x374a3c((_0x96fe22=this[_0x3e66cb(0x23c)]['getConfig'](Ce))!=null?_0x96fe22:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3b4dff=>{const _0x4affe8=_0x3e66cb;this[_0x4affe8(0x256)]['send']({'eventID':_0xf330b6[_0x4affe8(0x1e1)],'data':{'unitID':this[_0x4affe8(0x1c9)],'operations':{[_0x3b4dff['id']]:{'id':_0x3b4dff['id'],'params':JSON['stringify'](_0x3b4dff['params'])}}}},this['_unitID']);})),_0x42dfed[_0x3e66cb(0x25c)](_0x4deff7);})),this['_liveShareService']['getInitialStates'](this[_0x519772(0x1c9)])[_0x519772(0x1cc)](_0x4b18f4=>this['_collabSession'][_0x519772(0x23f)]({'eventID':_0xf330b6[_0x519772(0x1e1)],'data':{'unitID':this[_0x519772(0x1c9)],'operations':{[_0x4b18f4['id']]:{'id':_0x4b18f4['id'],'params':JSON[_0x519772(0x24e)](_0x4b18f4[_0x519772(0x1c6)])}}}},this[_0x519772(0x1c9)]));}['_stopPresenting'](){const _0x3437e6=_0xa0c0b6;var _0x3c25a1;this[_0x3437e6(0x1f0)]['next'](_0x3437e6(0x223)),(_0x3c25a1=this['_commandDisposable'])==null||_0x3c25a1[_0x3437e6(0x238)](),this['_commandDisposable']=null;}[_0xa0c0b6(0x208)](){const _0x2d037a=_0xa0c0b6;var _0x3e1246;(_0x3e1246=this[_0x2d037a(0x1f6)])==null||_0x3e1246['dispose'](),this['_status$'][_0x2d037a(0x25c)]('following');}[_0xa0c0b6(0x1df)](){const _0x2611bd=_0xa0c0b6;var _0x24b7e8;this[_0x2611bd(0x1f0)][_0x2611bd(0x25c)](_0x2611bd(0x223)),(_0x24b7e8=this['_commandDisposable'])==null||_0x24b7e8[_0x2611bd(0x238)](),this[_0x2611bd(0x1f6)]=null;}[_0xa0c0b6(0x1d7)](){const _0x406226=_0xa0c0b6;var _0x4fee8c;this[_0x406226(0x1f0)][_0x406226(0x25c)](_0x406226(0x21d)),(_0x4fee8c=this[_0x406226(0x1f6)])==null||_0x4fee8c[_0x406226(0x238)]();}[_0xa0c0b6(0x1ec)](_0x366569){const _0x5dd1a5=_0xa0c0b6;if([_0x5dd1a5(0x203),_0x5dd1a5(0x21d),_0x5dd1a5(0x235)]['includes'](this['_status'])||!_0x366569[_0x5dd1a5(0x1fd)][_0x5dd1a5(0x1e3)]||_0x366569[_0x5dd1a5(0x1fd)][_0x5dd1a5(0x1e3)]===this[_0x5dd1a5(0x256)][_0x5dd1a5(0x1f7)]())return;this[_0x5dd1a5(0x22e)]==='idle'&&this[_0x5dd1a5(0x208)]();const _0x48cc91=_0x366569[_0x5dd1a5(0x1fd)]['operations'];Object['values'](_0x48cc91)[_0x5dd1a5(0x1cc)](_0x33a239=>{const _0x4b4bce=_0x5dd1a5;this[_0x4b4bce(0x213)][_0x4b4bce(0x1e7)](_0x33a239['id'],_0x33a239['params']?JSON[_0x4b4bce(0x1d8)](_0x33a239['params']):null,{'fromCollab':!0x0});});}[_0xa0c0b6(0x219)](){const _0x1a1073=_0xa0c0b6;var _0x10bd21;this[_0x1a1073(0x1f0)]['next'](_0x1a1073(0x235)),(_0x10bd21=this['_commandDisposable'])==null||_0x10bd21[_0x1a1073(0x238)]();}[_0xa0c0b6(0x249)](){const _0x545106=_0xa0c0b6;this[_0x545106(0x1f0)]['next']('idle'),this[_0x545106(0x259)]();}};N=Y([_(0x2,_0x51d074),_(0x3,_0x46e58e(L)),_(0x4,_0x2d4b2a)],N);function Le(){const _0x1de32d=_0xa0c0b6,_0xc102b1=_0x3020fd(S),_0x5e4b35=_0x3020fd(_0x50bef0),_0x13977e=_0x5a31ad(()=>_0x5e4b35[_0x1de32d(0x21a)](_0x1c5b82[_0x1de32d(0x25e)]),void 0x0,!0x1,[]),[_0x246344,_0x2dee7c]=_0x458258(null),[_0xda82da,_0x47522b]=_0x458258(c[_0x1de32d(0x1d3)]),_0x1703d2=_0x470aac(null);return _0x4df20f(()=>(_0x13977e&&_0xc102b1[_0x1de32d(0x1f4)](_0x13977e[_0x1de32d(0x207)]())[_0x1de32d(0x1ed)](_0xf3bb57=>{const _0x44c4a4=_0x1de32d;_0x2dee7c(_0xf3bb57),_0x1703d2[_0x44c4a4(0x261)]=_0xf3bb57[_0x44c4a4(0x1f8)][_0x44c4a4(0x240)](_0x2f2db7=>{_0x47522b(_0x2f2db7);});}),()=>{const _0x4568d0=_0x1de32d;var _0x54ec1f;(_0x54ec1f=_0x1703d2[_0x4568d0(0x261)])==null||_0x54ec1f[_0x4568d0(0x248)](),_0x1703d2[_0x4568d0(0x261)]=null;}),[_0x13977e,_0xc102b1]),_0x246344?_0x4b183d(_0x209b75,{'align':'end','disabled':_0xda82da===c[_0x1de32d(0x262)],'className':_0x1de32d(0x204),'overlay':_0x4b183d(Re,{'status':_0xda82da,'coordinator':_0x246344}),'children':_0x4b183d(_0x1de32d(0x239),{'className':_0x59ff9b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xda82da===c[_0x1de32d(0x262)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xda82da!==c[_0x1de32d(0x262)]}),'type':_0x1de32d(0x239),'children':_0x4b183d(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2a7faa){const _0x31c817=_0xa0c0b6,{status:_0x35470a,coordinator:_0x4f9d9e}=_0x2a7faa;switch(_0x35470a){case c[_0x31c817(0x1d3)]:return _0x4b183d($e,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x20e)]:return _0x4b183d(xe,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x255)]:return _0x4b183d(Pe,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x262)]:return _0x4b183d(Te,{});case c[_0x31c817(0x1de)]:return _0x4b183d(Ae,{'coordinator':_0x4f9d9e});default:return null;}}function $e(_0x31f826){const _0x2328e8=_0xa0c0b6,{coordinator:_0xd12508}=_0x31f826;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0x2328e8(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2328e8(0x1e8)}),_0x4b183d(_0x89b657,{'onClick':()=>_0xd12508['tryStartPresenting'](),'children':_0x2328e8(0x222)})]});}function xe(_0x319f0b){const _0x41082c=_0xa0c0b6,{coordinator:_0x106875}=_0x319f0b;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d('div',{'className':_0x41082c(0x212),'children':_0x41082c(0x228)}),_0x4b183d(_0x89b657,{'onClick':()=>_0x106875[_0x41082c(0x21e)](),'children':_0x41082c(0x237)})]});}function Pe(_0x8e6b43){const _0xbcb14e=_0xa0c0b6,{coordinator:_0x5a2ee7}=_0x8e6b43;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0xbcb14e(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xbcb14e(0x23d)}),_0x4b183d(_0x89b657,{'variant':'text','onClick':()=>_0x5a2ee7[_0xbcb14e(0x1fb)](),'children':_0xbcb14e(0x1ce)})]});}function Ae(_0x5e90c2){const _0x2b07f0=_0xa0c0b6,{coordinator:_0x35c664}=_0x5e90c2;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0x2b07f0(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2b07f0(0x24a)}),_0x4b183d(_0x89b657,{'variant':_0x2b07f0(0x221),'onClick':()=>_0x35c664['stopPresenting'](),'children':_0x2b07f0(0x252)})]});}function Te(){const _0x5330a3=_0xa0c0b6;return _0x4b183d(_0x39f39b,{'children':_0x5330a3(0x218)});}var Fe=Object[_0xa0c0b6(0x1cf)],He=(_0x2cfb82,_0x2ef574,_0x51ecfa,_0x26e78b)=>{for(var _0x3463e1=_0x26e78b>0x1?void 0x0:_0x26e78b?Fe(_0x2ef574,_0x51ecfa):_0x2ef574,_0x4eb2eb=_0x2cfb82['length']-0x1,_0x2c3652;_0x4eb2eb>=0x0;_0x4eb2eb--)(_0x2c3652=_0x2cfb82[_0x4eb2eb])&&(_0x3463e1=_0x2c3652(_0x3463e1)||_0x3463e1);return _0x3463e1;},A=(_0x1a9823,_0x47d7d5)=>(_0x31539e,_0x58aea0)=>_0x47d7d5(_0x31539e,_0x58aea0,_0x1a9823);let m=class extends _0x47be1{constructor(_0x401f41,_0x459896){const _0x58371a=_0xa0c0b6;super(),this['_injector']=_0x401f41,this[_0x58371a(0x227)]=_0x459896,this[_0x58371a(0x1c5)]();}[_0xa0c0b6(0x1c5)](){const _0x56c65c=_0xa0c0b6;this['disposeWithMe'](this[_0x56c65c(0x227)][_0x56c65c(0x1d2)](_0x3ee1f5[_0x56c65c(0x209)],()=>_0x376659(Le,this[_0x56c65c(0x1f3)])));}};m=He([A(0x0,_0x46e58e(_0x34570d)),A(0x1,_0x1089dc)],m);const ye=_0xa0c0b6(0x1c1),T={};var Ue=Object[_0xa0c0b6(0x1cf)],Ve=(_0x584ff5,_0x49514c,_0x386ddd,_0x2bd633)=>{const _0xd91ca2=_0xa0c0b6;for(var _0x1309c4=_0x2bd633>0x1?void 0x0:_0x2bd633?Ue(_0x49514c,_0x386ddd):_0x49514c,_0x55efbb=_0x584ff5[_0xd91ca2(0x1c4)]-0x1,_0x378b46;_0x55efbb>=0x0;_0x55efbb--)(_0x378b46=_0x584ff5[_0x55efbb])&&(_0x1309c4=_0x378b46(_0x1309c4)||_0x1309c4);return _0x1309c4;},je=(_0x248691,_0x375808)=>(_0x1a8ed6,_0x1d5038)=>_0x375808(_0x1a8ed6,_0x1d5038,_0x248691);let I=class extends _0x47be1{constructor(_0x4ca817){const _0x9f996=_0xa0c0b6;super(),this[_0x9f996(0x1fa)]=_0x4ca817,this[_0x9f996(0x1d0)]();}[_0xa0c0b6(0x1d0)](){const _0x44a536=_0xa0c0b6;[_0x240ca6['id'],_0x35c30a['id'],_0x15573d['id']][_0x44a536(0x1cc)](_0x49e56d=>{const _0x55d7a5=_0x44a536;this['disposeWithMe'](this[_0x55d7a5(0x1fa)][_0x55d7a5(0x1da)](_0x49e56d));});}};I=Ve([je(0x0,_0x46e58e(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x85523a,_0x34dc93,_0x435a77)=>_0x34dc93 in _0x85523a?Me(_0x85523a,_0x34dc93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x435a77}):_0x85523a[_0x34dc93]=_0x435a77,We=(_0x2d5a03,_0x51b7a8,_0x2e6e94,_0x1c79f7)=>{for(var _0x2b1b7f=_0x1c79f7>0x1?void 0x0:_0x1c79f7?ke(_0x51b7a8,_0x2e6e94):_0x51b7a8,_0x2603ba=_0x2d5a03['length']-0x1,_0x30da1d;_0x2603ba>=0x0;_0x2603ba--)(_0x30da1d=_0x2d5a03[_0x2603ba])&&(_0x2b1b7f=_0x30da1d(_0x2b1b7f)||_0x2b1b7f);return _0x2b1b7f;},F=(_0x354821,_0x39c35f)=>(_0x13acfc,_0x51d30e)=>_0x39c35f(_0x13acfc,_0x51d30e,_0x354821),B=(_0x5d3577,_0x624882,_0xcc4901)=>Ge(_0x5d3577,typeof _0x624882!=_0xa0c0b6(0x243)?_0x624882+'':_0x624882,_0xcc4901);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x405a79{constructor(_0x531770=T,_0xa1d0ae,_0x23463e){const _0x3474c4=_0xa0c0b6;super(),this[_0x3474c4(0x241)]=_0x531770,this[_0x3474c4(0x1f3)]=_0xa1d0ae,this['_configService']=_0x23463e;const {..._0x5e9ccf}=_0x3b3b27({},T,this[_0x3474c4(0x241)]);this[_0x3474c4(0x23c)]['setConfig'](ye,_0x5e9ccf);}[_0xa0c0b6(0x1c7)](){const _0x2cbc2e=_0xa0c0b6;_0x233739(this['_injector'],_0x3f2ca7([[L],[S],[I],[m]],this[_0x2cbc2e(0x241)][_0x2cbc2e(0x1eb)])),_0x65f852(this[_0x2cbc2e(0x1f3)],[[I]]);}[_0xa0c0b6(0x215)](){const _0x1793e4=_0xa0c0b6;_0x65f852(this[_0x1793e4(0x1f3)],[[m]]);}};B(b,_0xa0c0b6(0x1d1),_0x1c5b82[_0xa0c0b6(0x247)]),B(b,_0xa0c0b6(0x23e),Ye),b=We([_0x3e663a(_0x176434),F(0x1,_0x46e58e(_0x34570d)),F(0x2,_0x51d074)],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 _0x2c17bd=_0x6dcd;(function(_0x46eab9,_0x3f9f6e){const _0x372050=_0x6dcd,_0x163203=_0x46eab9();while(!![]){try{const _0x2f00ac=-parseInt(_0x372050(0x1f7))/0x1+parseInt(_0x372050(0x266))/0x2*(parseInt(_0x372050(0x1e7))/0x3)+-parseInt(_0x372050(0x246))/0x4*(-parseInt(_0x372050(0x218))/0x5)+-parseInt(_0x372050(0x21c))/0x6*(-parseInt(_0x372050(0x1e5))/0x7)+-parseInt(_0x372050(0x1ff))/0x8*(-parseInt(_0x372050(0x1dd))/0x9)+parseInt(_0x372050(0x1fe))/0xa+-parseInt(_0x372050(0x1d4))/0xb;if(_0x2f00ac===_0x3f9f6e)break;else _0x163203['push'](_0x163203['shift']());}catch(_0x4a332d){_0x163203['push'](_0x163203['shift']());}}}(_0xae52,0x2ddb1));var J=Object['defineProperty'],K=(_0x35970c,_0x3ab2be,_0x4465cc)=>_0x3ab2be in _0x35970c?J(_0x35970c,_0x3ab2be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4465cc}):_0x35970c[_0x3ab2be]=_0x4465cc,u=(_0x22a061,_0x191ca2,_0x191e6c)=>K(_0x22a061,typeof _0x191ca2!=_0x2c17bd(0x1d3)?_0x191ca2+'':_0x191ca2,_0x191e6c);import{Disposable as _0x340cc7,toDisposable as _0x1aa50a,IUniverInstanceService as _0x9a2b99,Inject as _0xb91b10,Injector as _0x13efe5,IConfigService as _0x45ac9b,ICommandService as _0x147916,RxDisposable as _0x1729a0,UniverInstanceType as _0x45889c,DisposableCollection as _0x4a90c4,CommandType as _0x4010de,DependentOn as _0x1c6ccb,Plugin as _0x24270d,merge as _0x51df76,registerDependencies as _0x312d92,mergeOverrideWithDependencies as _0x43af49,touchDependencies as _0x5199da}from'@univerjs/core';import{useDependency as _0x1bfba8,useObservable as _0x206e01,IUIPartsService as _0x2066c5,BuiltInUIPart as _0x1bd2e1,connectInjector as _0x33bb9e}from'@univerjs/ui';import{jsx as _0x76a09b,jsxs as _0x490d08,Fragment as _0x1c44c8}from'react/jsx-runtime';import{Dropdown as _0x39b390,clsx as _0x3e4a67,Button as _0x2cafee}from'@univerjs/design';import{useRef as _0x470657,createElement as _0x690b7e,forwardRef as _0x22f24d,useState as _0x14fd36,useEffect as _0x23e84d}from'react';import{CollaborationEvent as _0x51a117,parseProtocolChangeset as _0x1db3a1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x228d40,SessionStatus as _0x79de65,UniverCollaborationClientPlugin as _0x172e42}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x288a71,SetWorksheetActiveOperation as _0x411a50}from'@univerjs/sheets';import{BehaviorSubject as _0x530a32,Subject as _0x517350}from'rxjs';import{takeUntil as _0x1f1c93,throttleTime as _0x3d7821}from'rxjs/operators';import{SetZoomRatioOperation as _0x3270d8,SetScrollOperation as _0x552a0c}from'@univerjs/sheets-ui';function k({ref:_0x1df001,..._0x513bb3}){const _0x354358=_0x2c17bd,{icon:_0x41d999,id:_0x3a64c2,className:_0x2ad4d2,extend:_0x401ca8,..._0x35a9d5}=_0x513bb3,_0x357d63=(_0x354358(0x249)+_0x3a64c2+'\x20'+(_0x2ad4d2||''))[_0x354358(0x22e)](),_0x3bd686=_0x470657('_'+Oe());return G(_0x41d999,''+_0x3a64c2,{'defIds':_0x41d999[_0x354358(0x21d)],'idSuffix':_0x3bd686['current']},{'ref':_0x1df001,'className':_0x357d63,..._0x35a9d5},_0x401ca8);}function G(_0x5a6ee8,_0x586d64,_0xada4dc,_0x3ebb1f,_0x4a6f3f){const _0x5e05ae=_0x2c17bd;return _0x690b7e(_0x5a6ee8[_0x5e05ae(0x273)],{'key':_0x586d64,...be(_0x5a6ee8,_0xada4dc,_0x4a6f3f),..._0x3ebb1f},(Ee(_0x5a6ee8,_0xada4dc)['children']||[])[_0x5e05ae(0x22d)]((_0x30a27b,_0x3c71c4)=>G(_0x30a27b,_0x586d64+'-'+_0x5a6ee8[_0x5e05ae(0x273)]+'-'+_0x3c71c4,_0xada4dc,void 0x0,_0x4a6f3f)));}function be(_0x4f137d,_0xa6c78e,_0x437c49){const _0x4b4d1f=_0x2c17bd,_0x44902f={..._0x4f137d[_0x4b4d1f(0x1f5)]};_0x437c49!=null&&_0x437c49[_0x4b4d1f(0x268)]&&_0x44902f[_0x4b4d1f(0x217)]===_0x4b4d1f(0x268)&&(_0x44902f[_0x4b4d1f(0x217)]=_0x437c49['colorChannel1']),_0x4f137d[_0x4b4d1f(0x273)]==='mask'&&_0x44902f['id']&&(_0x44902f['id']=_0x44902f['id']+_0xa6c78e[_0x4b4d1f(0x23e)]),Object[_0x4b4d1f(0x1e0)](_0x44902f)[_0x4b4d1f(0x252)](([_0x40353a,_0x11371d])=>{const _0x2d2c9b=_0x4b4d1f;_0x40353a===_0x2d2c9b(0x210)&&typeof _0x11371d==_0x2d2c9b(0x25e)&&(_0x44902f[_0x40353a]=_0x11371d[_0x2d2c9b(0x1f8)](/url\(#(.*)\)/,'url(#$1'+_0xa6c78e[_0x2d2c9b(0x23e)]+')'));});const {defIds:_0xf09bbc}=_0xa6c78e;return!_0xf09bbc||_0xf09bbc[_0x4b4d1f(0x225)]===0x0||(_0x4f137d[_0x4b4d1f(0x273)]===_0x4b4d1f(0x275)&&_0x44902f[_0x4b4d1f(0x24a)]&&(_0x44902f[_0x4b4d1f(0x24a)]=_0x44902f[_0x4b4d1f(0x24a)]+_0xa6c78e['idSuffix']),Object[_0x4b4d1f(0x1e0)](_0x44902f)[_0x4b4d1f(0x252)](([_0x19d350,_0x1d4ae8])=>{const _0x5d1565=_0x4b4d1f;typeof _0x1d4ae8==_0x5d1565(0x25e)&&(_0x44902f[_0x19d350]=_0x1d4ae8[_0x5d1565(0x1f8)](/url\(#(.*)\)/,_0x5d1565(0x1f1)+_0xa6c78e['idSuffix']+')'));})),_0x44902f;}function Ee(_0x2e1a6f,_0x2ad328){const _0x3fa413=_0x2c17bd;var _0x37c9f4;const {defIds:_0x5bc420}=_0x2ad328;return!_0x5bc420||_0x5bc420[_0x3fa413(0x225)]===0x0?_0x2e1a6f:_0x2e1a6f[_0x3fa413(0x273)]===_0x3fa413(0x226)&&((_0x37c9f4=_0x2e1a6f['children'])!=null&&_0x37c9f4[_0x3fa413(0x225)])?{..._0x2e1a6f,'children':_0x2e1a6f[_0x3fa413(0x243)][_0x3fa413(0x22d)](_0x28888b=>typeof _0x28888b[_0x3fa413(0x1f5)]['id']==_0x3fa413(0x25e)&&_0x5bc420&&_0x5bc420['includes'](_0x28888b[_0x3fa413(0x1f5)]['id'])?{..._0x28888b,'attrs':{..._0x28888b['attrs'],'id':_0x28888b[_0x3fa413(0x1f5)]['id']+_0x2ad328['idSuffix']}}:_0x28888b)}:_0x2e1a6f;}function Oe(){const _0xaf154c=_0x2c17bd;return Math['random']()[_0xaf154c(0x1d5)](0x24)[_0xaf154c(0x265)](0x2,0x8);}k[_0x2c17bd(0x23c)]='UniverIcon';const we={'tag':_0x2c17bd(0x1dc),'attrs':{'xmlns':_0x2c17bd(0x25f),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x2c17bd(0x271),'height':_0x2c17bd(0x271)},'children':[{'tag':_0x2c17bd(0x219),'attrs':{'fill':_0x2c17bd(0x1ee),'d':_0x2c17bd(0x1fa)}},{'tag':_0x2c17bd(0x219),'attrs':{'fill':_0x2c17bd(0x1ee),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x2c17bd(0x20c),'clipRule':'evenodd'}}]},W=_0x22f24d(function(_0x50414d,_0x4ebea5){return _0x690b7e(k,Object['assign']({},_0x50414d,{'id':'live-share-icon','ref':_0x4ebea5,'icon':we}));});W[_0x2c17bd(0x23c)]=_0x2c17bd(0x211);class L extends _0x340cc7{constructor(){const _0x2435a6=_0x2c17bd;super(...arguments),u(this,_0x2435a6(0x24f),new Set()),u(this,_0x2435a6(0x205),new Set());}[_0x2c17bd(0x20e)](_0x41c0a5){const _0x5a6bdc=_0x2c17bd;return this[_0x5a6bdc(0x24f)]['add'](_0x41c0a5),_0x1aa50a(()=>this[_0x5a6bdc(0x24f)][_0x5a6bdc(0x1d7)](_0x41c0a5));}[_0x2c17bd(0x248)](_0x5176f0){const _0x482477=_0x2c17bd;return this[_0x482477(0x205)][_0x482477(0x255)](_0x5176f0),_0x1aa50a(()=>this[_0x482477(0x205)]['delete'](_0x5176f0));}[_0x2c17bd(0x203)](_0x24d258){const _0x1e2684=_0x2c17bd;return this[_0x1e2684(0x24f)][_0x1e2684(0x22a)](_0x24d258);}[_0x2c17bd(0x257)](_0x5d77de){const _0x390056=_0x2c17bd;return Array[_0x390056(0x26a)](this['_reporters'])[_0x390056(0x22d)](_0x507a8f=>_0x507a8f(_0x5d77de));}}var Ne=Object[_0x2c17bd(0x214)],Y=(_0xd80162,_0x315b46,_0x520114,_0x5ac254)=>{const _0x45e54d=_0x2c17bd;for(var _0x3eb9d6=_0x5ac254>0x1?void 0x0:_0x5ac254?Ne(_0x315b46,_0x520114):_0x315b46,_0x42a071=_0xd80162[_0x45e54d(0x225)]-0x1,_0xa5d9a5;_0x42a071>=0x0;_0x42a071--)(_0xa5d9a5=_0xd80162[_0x42a071])&&(_0x3eb9d6=_0xa5d9a5(_0x3eb9d6)||_0x3eb9d6);return _0x3eb9d6;},_=(_0x5357c8,_0x5e2084)=>(_0x5a230b,_0x2bacba)=>_0x5e2084(_0x5a230b,_0x2bacba,_0x5357c8);let S=class extends _0x1729a0{constructor(_0x2d5315,_0x37abb6,_0x107b1f){const _0x58a46a=_0x2c17bd;super(),u(this,'_entities',new Map()),(this[_0x58a46a(0x20a)]=_0x2d5315,this[_0x58a46a(0x1d8)]=_0x37abb6,this['_collabSessionService']=_0x107b1f,this[_0x58a46a(0x1e1)]());}async[_0x2c17bd(0x1ed)](_0x4a21eb){const _0x147a9a=_0x2c17bd;return this[_0x147a9a(0x1e3)][_0x147a9a(0x22a)](_0x4a21eb)||await this[_0x147a9a(0x25c)](_0x4a21eb),this['_entities'][_0x147a9a(0x23d)](_0x4a21eb);}[_0x2c17bd(0x267)](_0x570ee6){const _0x57bc53=_0x2c17bd;var _0x1e4954;return(_0x1e4954=this[_0x57bc53(0x1e3)][_0x57bc53(0x23d)](_0x570ee6))!=null?_0x1e4954:null;}['_init'](){const _0x4e1f10=_0x2c17bd;this[_0x4e1f10(0x20a)][_0x4e1f10(0x24d)](_0x45889c[_0x4e1f10(0x1de)])[_0x4e1f10(0x1f6)](_0x1f1c93(this[_0x4e1f10(0x1e2)]))[_0x4e1f10(0x232)](async _0x485fc2=>{const _0x545891=_0x4e1f10,_0x47768c=_0x485fc2[_0x545891(0x274)]();this[_0x545891(0x1e3)][_0x545891(0x22a)](_0x47768c)||this[_0x545891(0x25c)](_0x47768c);}),this[_0x4e1f10(0x20a)][_0x4e1f10(0x1df)](_0x45889c[_0x4e1f10(0x1de)])[_0x4e1f10(0x1f6)](_0x1f1c93(this[_0x4e1f10(0x1e2)]))[_0x4e1f10(0x232)](_0x321e9a=>{const _0x31af76=_0x4e1f10,_0x22d47a=_0x321e9a[_0x31af76(0x274)](),_0x2ed8ce=this[_0x31af76(0x1e3)][_0x31af76(0x23d)](_0x22d47a);_0x2ed8ce==null||_0x2ed8ce[_0x31af76(0x241)]();});}async[_0x2c17bd(0x25c)](_0x15653a){const _0x5d7f3a=_0x2c17bd,_0x5f2b47=await this[_0x5d7f3a(0x22b)][_0x5d7f3a(0x23b)](_0x15653a),_0x46bd9b=this['_injector']['createInstance'](N,_0x15653a,_0x5f2b47);return _0x46bd9b[_0x5d7f3a(0x216)](),this[_0x5d7f3a(0x1e3)][_0x5d7f3a(0x1d1)](_0x15653a,_0x46bd9b),_0x46bd9b;}};S=Y([_(0x0,_0x9a2b99),_(0x1,_0xb91b10(_0x13efe5)),_(0x2,_0xb91b10(_0x228d40))],S);var c=(_0x48bffd=>(_0x48bffd[_0x2c17bd(0x1ef)]=_0x2c17bd(0x261),_0x48bffd[_0x2c17bd(0x26c)]=_0x2c17bd(0x201),_0x48bffd[_0x2c17bd(0x258)]=_0x2c17bd(0x253),_0x48bffd['NOT_FOLLOWING']=_0x2c17bd(0x212),_0x48bffd[_0x2c17bd(0x22f)]='presenting',_0x48bffd))(c||{});const Ce=_0x2c17bd(0x24e),De=0xc8;let N=class extends _0x1729a0{constructor(_0x421a24,_0x1d4fe7,_0x4e4a9e,_0x58778c,_0x255ad6){const _0x5cdd7f=_0x2c17bd;super(),u(this,_0x5cdd7f(0x204),new _0x530a32(_0x5cdd7f(0x201))),u(this,_0x5cdd7f(0x1d2),this[_0x5cdd7f(0x204)][_0x5cdd7f(0x26e)]()),u(this,_0x5cdd7f(0x1e1),!0x1),u(this,_0x5cdd7f(0x264),null),u(this,_0x5cdd7f(0x1e8),null),(this[_0x5cdd7f(0x202)]=_0x421a24,this['_collabSession']=_0x1d4fe7,this[_0x5cdd7f(0x220)]=_0x4e4a9e,this[_0x5cdd7f(0x236)]=_0x58778c,this[_0x5cdd7f(0x238)]=_0x255ad6);}get['_status'](){const _0x566241=_0x2c17bd;return this[_0x566241(0x204)][_0x566241(0x260)]();}[_0x2c17bd(0x241)](){const _0x2d9d0b=_0x2c17bd;var _0x21417d;(_0x21417d=this[_0x2d9d0b(0x264)])==null||_0x21417d[_0x2d9d0b(0x241)](),this[_0x2d9d0b(0x204)][_0x2d9d0b(0x270)](_0x2d9d0b(0x201)),this[_0x2d9d0b(0x204)][_0x2d9d0b(0x1d9)]();}[_0x2c17bd(0x1ec)](){const _0x58033f=_0x2c17bd;return this[_0x58033f(0x1da)];}[_0x2c17bd(0x216)](){const _0x31733a=_0x2c17bd;this[_0x31733a(0x1e1)]||(this[_0x31733a(0x1e1)]=!0x0,this['_collabSession'][_0x31733a(0x26f)][_0x31733a(0x1f6)](_0x1f1c93(this[_0x31733a(0x1e2)]))['subscribe'](_0x17ec45=>{const _0x38dc57=_0x31733a;switch(_0x17ec45){case _0x79de65[_0x38dc57(0x1ef)]:this['_handleOffline']();break;case _0x79de65[_0x38dc57(0x25d)]:this['_handleOnline']();break;}}),this[_0x31733a(0x26d)][_0x31733a(0x208)][_0x31733a(0x1f6)](_0x1f1c93(this['dispose$']))[_0x31733a(0x232)](_0x88aae0=>{const _0x1932c0=_0x31733a,{eventID:_0x449af1}=_0x88aae0;switch(_0x449af1){case _0x51a117['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x88aae0);break;case _0x51a117[_0x1932c0(0x240)]:this[_0x1932c0(0x215)](_0x88aae0);break;case _0x51a117['LIVESHARE_TERMINATE']:this[_0x1932c0(0x26b)]();break;case _0x51a117[_0x1932c0(0x231)]:this[_0x1932c0(0x207)](_0x88aae0);break;}}));}['tryStartPresenting'](){const _0x907710=_0x2c17bd;this[_0x907710(0x26d)]['send']({'eventID':_0x51a117[_0x907710(0x1fb)],'data':{'unitID':this[_0x907710(0x202)],'userID':this[_0x907710(0x26d)]['getMemberID']()}},this[_0x907710(0x202)]);}[_0x2c17bd(0x1f0)](){const _0x2aa2f9=_0x2c17bd;this[_0x2aa2f9(0x1da)]==='presenting'&&(this[_0x2aa2f9(0x204)][_0x2aa2f9(0x270)](_0x2aa2f9(0x201)),this[_0x2aa2f9(0x26d)][_0x2aa2f9(0x1f4)]({'eventID':_0x51a117[_0x2aa2f9(0x239)],'data':{'unitID':this[_0x2aa2f9(0x202)]}},this[_0x2aa2f9(0x202)]));}[_0x2c17bd(0x1fc)](){const _0x2d5d72=_0x2c17bd;this['_status']===_0x2d5d72(0x212)&&(this[_0x2d5d72(0x204)][_0x2d5d72(0x270)](_0x2d5d72(0x253)),this[_0x2d5d72(0x224)]());}[_0x2c17bd(0x1f3)](){const _0x2fed31=_0x2c17bd;this[_0x2fed31(0x1da)]===_0x2fed31(0x253)&&this[_0x2fed31(0x1e4)]();}['_handleNewHost'](_0x27a1d2){const _0x2ce34b=_0x2c17bd,{presenter:_0xc8a672}=_0x27a1d2[_0x2ce34b(0x237)],_0x4d8d36=this[_0x2ce34b(0x26d)]['getMemberID']();this[_0x2ce34b(0x1e8)]=_0xc8a672,_0xc8a672===_0x4d8d36?(this[_0x2ce34b(0x1e4)](),this[_0x2ce34b(0x227)]()):this[_0x2ce34b(0x1da)]!==_0x2ce34b(0x212)&&(this[_0x2ce34b(0x206)](),this[_0x2ce34b(0x224)]());}['_fetchOperations'](){const _0x1af4a7=_0x2c17bd,_0x299498={'eventID':_0x51a117[_0x1af4a7(0x25a)]};this[_0x1af4a7(0x26d)]['send'](_0x299498,this['_unitID']);}[_0x2c17bd(0x26b)](){const _0x30f54e=_0x2c17bd;this['_presenter']=null,this[_0x30f54e(0x1da)]!==_0x30f54e(0x20f)&&this[_0x30f54e(0x233)]();}[_0x2c17bd(0x207)](_0x4b0354){const _0x20ad2c=_0x2c17bd;if(this[_0x20ad2c(0x1da)]===_0x20ad2c(0x253)&&this[_0x20ad2c(0x1e8)]===_0x4b0354[_0x20ad2c(0x237)]['memberID']){const _0x22b7b6=_0x1db3a1(_0x4b0354[_0x20ad2c(0x237)])[_0x20ad2c(0x20d)][_0x20ad2c(0x21e)]()[_0x20ad2c(0x230)](_0x41a9c3=>_0x41a9c3['id']===_0x288a71['id']);if(_0x22b7b6){const _0x2e5be3=_0x22b7b6[_0x20ad2c(0x1e9)][_0x20ad2c(0x1eb)],_0xd40381=_0x22b7b6[_0x20ad2c(0x1e9)][_0x20ad2c(0x1fd)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x411a50['id'],{'unitId':_0x2e5be3,'subUnitId':_0xd40381},{'fromCollab':!0x0});});}}}[_0x2c17bd(0x227)](){const _0xe68353=_0x2c17bd;this[_0xe68353(0x204)][_0xe68353(0x270)](_0xe68353(0x20f));const _0x1a9045=new Map(),_0x22dea8=this[_0xe68353(0x264)]=new _0x4a90c4();_0x22dea8[_0xe68353(0x255)](_0x1aa50a(()=>{const _0x8cb478=_0xe68353;_0x1a9045[_0x8cb478(0x252)](_0x56aa2e=>_0x56aa2e[_0x8cb478(0x1d9)]()),_0x1a9045[_0x8cb478(0x1ea)]();})),_0x22dea8[_0xe68353(0x255)](this[_0xe68353(0x238)]['onCommandExecuted'](_0x49a0a8=>{const _0x4f78af=_0xe68353;var _0x7947c;if(_0x49a0a8[_0x4f78af(0x228)]!==_0x4010de['OPERATION']||!this['_liveShareService']['shouldShareOperation'](_0x49a0a8['id']))return;const {id:_0x59e605}=_0x49a0a8;let _0x14ad6a;_0x1a9045['has'](_0x59e605)?_0x14ad6a=_0x1a9045['get'](_0x59e605):(_0x14ad6a=new _0x517350(),_0x1a9045['set'](_0x59e605,_0x14ad6a),_0x14ad6a[_0x4f78af(0x1f6)](_0x3d7821((_0x7947c=this['_configService']['getConfig'](Ce))!=null?_0x7947c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1ebcd3=>{const _0x35dfa8=_0x4f78af;this[_0x35dfa8(0x26d)][_0x35dfa8(0x1f4)]({'eventID':_0x51a117[_0x35dfa8(0x240)],'data':{'unitID':this[_0x35dfa8(0x202)],'operations':{[_0x1ebcd3['id']]:{'id':_0x1ebcd3['id'],'params':JSON[_0x35dfa8(0x1d6)](_0x1ebcd3[_0x35dfa8(0x1e9)])}}}},this[_0x35dfa8(0x202)]);})),_0x14ad6a[_0x4f78af(0x270)](_0x49a0a8);})),this[_0xe68353(0x236)][_0xe68353(0x257)](this[_0xe68353(0x202)])[_0xe68353(0x252)](_0x525933=>this[_0xe68353(0x26d)]['send']({'eventID':_0x51a117[_0xe68353(0x240)],'data':{'unitID':this[_0xe68353(0x202)],'operations':{[_0x525933['id']]:{'id':_0x525933['id'],'params':JSON[_0xe68353(0x1d6)](_0x525933[_0xe68353(0x1e9)])}}}},this[_0xe68353(0x202)]));}['_stopPresenting'](){const _0x1d9168=_0x2c17bd;var _0x24528a;this[_0x1d9168(0x204)]['next'](_0x1d9168(0x201)),(_0x24528a=this[_0x1d9168(0x264)])==null||_0x24528a[_0x1d9168(0x241)](),this[_0x1d9168(0x264)]=null;}[_0x2c17bd(0x224)](){const _0x3f915e=_0x2c17bd;var _0x61c514;(_0x61c514=this[_0x3f915e(0x264)])==null||_0x61c514['dispose'](),this['_status$'][_0x3f915e(0x270)]('following');}[_0x2c17bd(0x233)](){const _0x2c2b0b=_0x2c17bd;var _0x39c84b;this['_status$']['next'](_0x2c2b0b(0x201)),(_0x39c84b=this[_0x2c2b0b(0x264)])==null||_0x39c84b[_0x2c2b0b(0x241)](),this[_0x2c2b0b(0x264)]=null;}[_0x2c17bd(0x1e4)](){const _0x573324=_0x2c17bd;var _0x1b4944;this[_0x573324(0x204)][_0x573324(0x270)](_0x573324(0x212)),(_0x1b4944=this[_0x573324(0x264)])==null||_0x1b4944[_0x573324(0x241)]();}[_0x2c17bd(0x215)](_0x1e99cb){const _0x1cf79c=_0x2c17bd;if([_0x1cf79c(0x20f),_0x1cf79c(0x212),_0x1cf79c(0x261)][_0x1cf79c(0x213)](this[_0x1cf79c(0x1da)])||!_0x1e99cb[_0x1cf79c(0x237)]['presenter']||_0x1e99cb[_0x1cf79c(0x237)][_0x1cf79c(0x24b)]===this['_collabSession']['getMemberID']())return;this[_0x1cf79c(0x1da)]==='idle'&&this[_0x1cf79c(0x224)]();const _0x7cb88f=_0x1e99cb[_0x1cf79c(0x237)][_0x1cf79c(0x20b)];Object[_0x1cf79c(0x25b)](_0x7cb88f)[_0x1cf79c(0x252)](_0xb6fb73=>{const _0x50a750=_0x1cf79c;this[_0x50a750(0x238)][_0x50a750(0x1e6)](_0xb6fb73['id'],_0xb6fb73[_0x50a750(0x1e9)]?JSON[_0x50a750(0x234)](_0xb6fb73[_0x50a750(0x1e9)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x41055d=_0x2c17bd;var _0x1c4063;this[_0x41055d(0x204)][_0x41055d(0x270)](_0x41055d(0x261)),(_0x1c4063=this[_0x41055d(0x264)])==null||_0x1c4063['dispose']();}[_0x2c17bd(0x269)](){const _0x5ba351=_0x2c17bd;this['_status$'][_0x5ba351(0x270)](_0x5ba351(0x201)),this[_0x5ba351(0x256)]();}};N=Y([_(0x2,_0x45ac9b),_(0x3,_0xb91b10(L)),_(0x4,_0x147916)],N);function Le(){const _0x18e79c=_0x2c17bd,_0x1dd162=_0x1bfba8(S),_0x4a51aa=_0x1bfba8(_0x9a2b99),_0x1cd3f6=_0x206e01(()=>_0x4a51aa[_0x18e79c(0x1f2)](_0x45889c['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3a132f,_0x30e72d]=_0x14fd36(null),[_0x3c8a80,_0x39aeef]=_0x14fd36(c[_0x18e79c(0x26c)]),_0x5d719f=_0x470657(null);return _0x23e84d(()=>(_0x1cd3f6&&_0x1dd162[_0x18e79c(0x1ed)](_0x1cd3f6[_0x18e79c(0x274)]())['then'](_0x512a61=>{const _0x193bf1=_0x18e79c;_0x30e72d(_0x512a61),_0x5d719f[_0x193bf1(0x272)]=_0x512a61[_0x193bf1(0x1d2)][_0x193bf1(0x232)](_0xaa4c7b=>{_0x39aeef(_0xaa4c7b);});}),()=>{const _0xbe3200=_0x18e79c;var _0x6f1578;(_0x6f1578=_0x5d719f[_0xbe3200(0x272)])==null||_0x6f1578['unsubscribe'](),_0x5d719f[_0xbe3200(0x272)]=null;}),[_0x1cd3f6,_0x1dd162]),_0x3a132f?_0x76a09b(_0x39b390,{'align':_0x18e79c(0x22c),'disabled':_0x3c8a80===c[_0x18e79c(0x1ef)],'className':_0x18e79c(0x221),'overlay':_0x76a09b(Re,{'status':_0x3c8a80,'coordinator':_0x3a132f}),'children':_0x76a09b('button',{'className':_0x3e4a67('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3c8a80===c[_0x18e79c(0x1ef)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3c8a80!==c['OFFLINE']}),'type':_0x18e79c(0x254),'children':_0x76a09b(W,{'className':_0x18e79c(0x222)})})}):null;}function Re(_0x3a55a0){const _0x45fef2=_0x2c17bd,{status:_0x32baff,coordinator:_0x53e42a}=_0x3a55a0;switch(_0x32baff){case c[_0x45fef2(0x26c)]:return _0x76a09b($e,{'coordinator':_0x53e42a});case c[_0x45fef2(0x258)]:return _0x76a09b(xe,{'coordinator':_0x53e42a});case c['NOT_FOLLOWING']:return _0x76a09b(Pe,{'coordinator':_0x53e42a});case c['OFFLINE']:return _0x76a09b(Te,{});case c[_0x45fef2(0x22f)]:return _0x76a09b(Ae,{'coordinator':_0x53e42a});default:return null;}}function $e(_0x50a119){const _0x17f16b=_0x2c17bd,{coordinator:_0x4dd261}=_0x50a119;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x17f16b(0x21f),{'className':_0x17f16b(0x1db),'children':_0x17f16b(0x21a)}),_0x76a09b(_0x2cafee,{'onClick':()=>_0x4dd261[_0x17f16b(0x209)](),'children':'Start'})]});}function xe(_0x3e1b1a){const _0x48b8e3=_0x2c17bd,{coordinator:_0x1b8c91}=_0x3e1b1a;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b('div',{'className':_0x48b8e3(0x1db),'children':_0x48b8e3(0x259)}),_0x76a09b(_0x2cafee,{'onClick':()=>_0x1b8c91[_0x48b8e3(0x1f3)](),'children':_0x48b8e3(0x223)})]});}function Pe(_0x182e79){const _0x173f14=_0x2c17bd,{coordinator:_0x4b774b}=_0x182e79;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x173f14(0x21f),{'className':_0x173f14(0x1db),'children':_0x173f14(0x245)}),_0x76a09b(_0x2cafee,{'variant':_0x173f14(0x200),'onClick':()=>_0x4b774b[_0x173f14(0x1fc)](),'children':'Start\x20following'})]});}function Ae(_0x214adf){const _0x2cf4c8=_0x2c17bd,{coordinator:_0x2ef842}=_0x214adf;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x2cf4c8(0x21f),{'className':_0x2cf4c8(0x1db),'children':_0x2cf4c8(0x242)}),_0x76a09b(_0x2cafee,{'variant':_0x2cf4c8(0x250),'onClick':()=>_0x2ef842[_0x2cf4c8(0x1f0)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x1a7d3b=_0x2c17bd;return _0x76a09b(_0x1c44c8,{'children':_0x1a7d3b(0x24c)});}var Fe=Object[_0x2c17bd(0x214)],He=(_0x1bb9b2,_0x5b183a,_0x2c02d7,_0x19aaed)=>{const _0x44d7bb=_0x2c17bd;for(var _0x38898e=_0x19aaed>0x1?void 0x0:_0x19aaed?Fe(_0x5b183a,_0x2c02d7):_0x5b183a,_0x16e70c=_0x1bb9b2[_0x44d7bb(0x225)]-0x1,_0x2d18c0;_0x16e70c>=0x0;_0x16e70c--)(_0x2d18c0=_0x1bb9b2[_0x16e70c])&&(_0x38898e=_0x2d18c0(_0x38898e)||_0x38898e);return _0x38898e;},A=(_0x5d6fbc,_0x537193)=>(_0x114252,_0x52e674)=>_0x537193(_0x114252,_0x52e674,_0x5d6fbc);let m=class extends _0x340cc7{constructor(_0x339511,_0x36757c){const _0x26e2ce=_0x2c17bd;super(),this[_0x26e2ce(0x1d8)]=_0x339511,this['_uiPartsService']=_0x36757c,this[_0x26e2ce(0x262)]();}[_0x2c17bd(0x262)](){const _0x4207e1=_0x2c17bd;this['disposeWithMe'](this[_0x4207e1(0x21b)][_0x4207e1(0x263)](_0x1bd2e1['HEADER_MENU'],()=>_0x33bb9e(Le,this['_injector'])));}};function _0x6dcd(_0x4e732e,_0xc26307){const _0xae527a=_0xae52();return _0x6dcd=function(_0x6dcde7,_0x39503b){_0x6dcde7=_0x6dcde7-0x1d1;let _0x4315be=_0xae527a[_0x6dcde7];return _0x4315be;},_0x6dcd(_0x4e732e,_0xc26307);}m=He([A(0x0,_0xb91b10(_0x13efe5)),A(0x1,_0x2066c5)],m);const ye=_0x2c17bd(0x235),T={};function _0xae52(){const _0x40ee8b=['_commandService','LIVESHARE_TERMINATE','UNIVER_LIVE_SHARE_PLUGIN','requireSession','displayName','get','idSuffix','onStarting','LIVESHARE_OPERATION','dispose','You\x27re\x20presenting\x20the\x20document','children','override','You\x27re\x20not\x20following\x20the\x20presenter','778388HjjhZk','UNIVER_UNKNOWN','registerInitialStateReporter','univerjs-icon\x20univerjs-icon-','xlink:href','presenter','You\x27are\x20offline.','getTypeOfUnitAdded$','SAME_OPERATION_SHARE_INTERVAL','_sharedOperations','default','defineProperty','forEach','following','button','add','_fetchOperations','getInitialStates','FOLLOWING','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','values','_startLiveShareCoordinator','ONLINE','string','http://www.w3.org/2000/svg','getValue','offline','_mountLiveShare','registerComponent','_commandDisposable','substring','4IaNogR','getLiveShareCoordinatorSync','colorChannel1','_handleOnline','from','_handleTerminate','IDLE','_collabSession','asObservable','sessionStatus$','next','1em','current','tag','getUnitId','use','set','status$','symbol','4297007InuhqR','toString','stringify','delete','_injector','complete','_status','univer-mb-3\x20univer-w-full\x20univer-text-sm','svg','18nIahkE','UNIVER_SHEET','getTypeOfUnitDisposed$','entries','_init','dispose$','_entities','_stopFollowing','280PuBcim','executeCommand','302898cZIFaY','_presenter','params','clear','unitId','getStatus','getLiveShareCoordinator','currentColor','OFFLINE','stopPresenting','url(#$1','getCurrentTypeOfUnit$','stopFollowing','send','attrs','pipe','176396MgLtAD','replace','_config','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','LIVESHARE_REQUEST_HOST','startFollowing','sheet','475990AnLsXP','463080ilZrEI','text','idle','_unitID','shouldShareOperation','_status$','_reporters','_stopPresenting','_handleNewChangeSets','event$','tryStartPresenting','_univerInstanceService','operations','evenodd','mutations','registerSharedOperation','presenting','mask','LiveShareIcon','not-following','includes','getOwnPropertyDescriptor','_handleOperation','init','fill','5SHPAQV','path','Present\x20this\x20document','_uiPartsService','29244SHabli','defIds','reverse','div','_configService','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-size-4','Stop\x20following','_startFollowing','length','defs','_startPresenting','type','setConfig','has','_collabSessionService','end','map','trim','PRESENTING','find','NEW_CHANGESETS','subscribe','_beIdle','parse','live-share.config','_liveShareService','data'];_0xae52=function(){return _0x40ee8b;};return _0xae52();}var Ue=Object[_0x2c17bd(0x214)],Ve=(_0x217ad0,_0x224ef1,_0x34314d,_0x7bd26a)=>{for(var _0x137332=_0x7bd26a>0x1?void 0x0:_0x7bd26a?Ue(_0x224ef1,_0x34314d):_0x224ef1,_0x33d2fe=_0x217ad0['length']-0x1,_0x29934a;_0x33d2fe>=0x0;_0x33d2fe--)(_0x29934a=_0x217ad0[_0x33d2fe])&&(_0x137332=_0x29934a(_0x137332)||_0x137332);return _0x137332;},je=(_0x4c8e1e,_0xcf5ea2)=>(_0x5df688,_0x35e3c5)=>_0xcf5ea2(_0x5df688,_0x35e3c5,_0x4c8e1e);let I=class extends _0x340cc7{constructor(_0x2b07e9){const _0x3e2627=_0x2c17bd;super(),this['_liveShareService']=_0x2b07e9,this[_0x3e2627(0x1e1)]();}['_init'](){const _0x199b69=_0x2c17bd;[_0x3270d8['id'],_0x552a0c['id'],_0x411a50['id']][_0x199b69(0x252)](_0xe6353c=>{const _0x4b0121=_0x199b69;this['disposeWithMe'](this[_0x4b0121(0x236)]['registerSharedOperation'](_0xe6353c));});}};I=Ve([je(0x0,_0xb91b10(L))],I);var Me=Object[_0x2c17bd(0x251)],ke=Object[_0x2c17bd(0x214)],Ge=(_0x2c8443,_0x481ed6,_0x435fe3)=>_0x481ed6 in _0x2c8443?Me(_0x2c8443,_0x481ed6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x435fe3}):_0x2c8443[_0x481ed6]=_0x435fe3,We=(_0x46b691,_0xee6291,_0x3cab60,_0x4e6182)=>{const _0x255d72=_0x2c17bd;for(var _0x91af07=_0x4e6182>0x1?void 0x0:_0x4e6182?ke(_0xee6291,_0x3cab60):_0xee6291,_0x7391f2=_0x46b691[_0x255d72(0x225)]-0x1,_0x5944a1;_0x7391f2>=0x0;_0x7391f2--)(_0x5944a1=_0x46b691[_0x7391f2])&&(_0x91af07=_0x5944a1(_0x91af07)||_0x91af07);return _0x91af07;},F=(_0x4043e1,_0x31c920)=>(_0x489a54,_0x290d7e)=>_0x31c920(_0x489a54,_0x290d7e,_0x4043e1),B=(_0x3c6a58,_0x5e6dde,_0x41706a)=>Ge(_0x3c6a58,typeof _0x5e6dde!=_0x2c17bd(0x1d3)?_0x5e6dde+'':_0x5e6dde,_0x41706a);const Ye=_0x2c17bd(0x23a);let b=class extends _0x24270d{constructor(_0x20754a=T,_0x5f3d9b,_0x25e57d){const _0x15807a=_0x2c17bd;super(),this[_0x15807a(0x1f9)]=_0x20754a,this[_0x15807a(0x1d8)]=_0x5f3d9b,this[_0x15807a(0x220)]=_0x25e57d;const {..._0x40acd5}=_0x51df76({},T,this[_0x15807a(0x1f9)]);this[_0x15807a(0x220)][_0x15807a(0x229)](ye,_0x40acd5);}[_0x2c17bd(0x23f)](){const _0x1064ca=_0x2c17bd;_0x312d92(this[_0x1064ca(0x1d8)],_0x43af49([[L],[S],[I],[m]],this[_0x1064ca(0x1f9)][_0x1064ca(0x244)])),_0x5199da(this[_0x1064ca(0x1d8)],[[I]]);}['onRendered'](){const _0x37eac9=_0x2c17bd;_0x5199da(this[_0x37eac9(0x1d8)],[[m]]);}};B(b,'type',_0x45889c[_0x2c17bd(0x247)]),B(b,'pluginName',Ye),b=We([_0x1c6ccb(_0x172e42),F(0x1,_0xb91b10(_0x13efe5)),F(0x2,_0x45ac9b)],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(_0x17032f,_0x80f66e){const _0xd820f5=_0x2a8f,_0x11f3f6=_0x17032f();while(!![]){try{const _0x21146f=-parseInt(_0xd820f5(0xbf))/0x1+-parseInt(_0xd820f5(0xaa))/0x2*(parseInt(_0xd820f5(0xd6))/0x3)+parseInt(_0xd820f5(0xcc))/0x4*(-parseInt(_0xd820f5(0xce))/0x5)+-parseInt(_0xd820f5(0xd1))/0x6+-parseInt(_0xd820f5(0xb9))/0x7+parseInt(_0xd820f5(0xca))/0x8*(-parseInt(_0xd820f5(0xe0))/0x9)+parseInt(_0xd820f5(0xd9))/0xa;if(_0x21146f===_0x80f66e)break;else _0x11f3f6['push'](_0x11f3f6['shift']());}catch(_0x2b8ca9){_0x11f3f6['push'](_0x11f3f6['shift']());}}}(_0x5690,0xea9bc),function(_0x23cadb,_0x23a61e){const _0x159e75=_0x2a8f;typeof exports==_0x159e75(0xdb)&&typeof module<'u'?_0x23a61e(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==_0x159e75(0xcd)&&define['amd']?define([_0x159e75(0xc7),_0x159e75(0xc0),_0x159e75(0xbc),_0x159e75(0xbb),_0x159e75(0xba),_0x159e75(0xdf)],_0x23a61e):(_0x23cadb=typeof globalThis<'u'?globalThis:_0x23cadb||self,_0x23a61e(_0x23cadb[_0x159e75(0xc1)],_0x23cadb['UniverEngineRender'],_0x23cadb[_0x159e75(0xbe)],_0x23cadb[_0x159e75(0xb3)],_0x23cadb[_0x159e75(0xd8)],_0x23cadb['UniverCoreFacade']));}(this,function(_0x1270a2,_0x4982f0,_0x175776,_0x5ca673,_0x3ddf9e,_0x25aca4){'use strict';const _0x4b97c8=_0x2a8f;class _0x5f3d0a extends _0x3ddf9e[_0x4b97c8(0xd2)]{['_initialize'](_0x176164,_0x25a5f3,_0x519bba,_0x1d4d42,_0x409a19){const _0xf21868=_0x4b97c8,_0x79d68e=_0x176164[_0xf21868(0xc4)](_0x1270a2[_0xf21868(0xc2)]),_0x1190cb=_0x176164['get'](_0x4982f0[_0xf21868(0xc9)]),_0x21c4c0=_0x25a5f3['getUnitId'](),_0x61a84=_0x25a5f3[_0xf21868(0xc8)](),_0x3401e7=_0x79d68e[_0xf21868(0xc3)](_0x21c4c0);(_0x3401e7==null?void 0x0:_0x3401e7[_0xf21868(0xb4)]())!==_0x1270a2[_0xf21868(0xbd)]['PRESENTING']||(_0x519bba[_0xf21868(0xac)]()!==_0x61a84[_0xf21868(0xac)]()&&this[_0xf21868(0xae)][_0xf21868(0xab)](_0x175776[_0xf21868(0xb5)]['id'],{'unitId':_0x21c4c0,'subUnitId':_0x519bba[_0xf21868(0xac)]()}),!_0x1190cb[_0xf21868(0xb6)](_0x21c4c0))||_0x409a19[_0xf21868(0xd7)](_0x5ca673[_0xf21868(0xd0)]['id'],{'unitId':_0x25a5f3[_0xf21868(0xb2)](),'sheetId':_0x519bba[_0xf21868(0xac)](),'sheetViewStartRow':_0x1d4d42[_0xf21868(0xda)],'sheetViewStartColumn':_0x1d4d42[_0xf21868(0xaf)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3ddf9e[_0x4b97c8(0xd2)][_0x4b97c8(0xdc)](_0x5f3d0a);class _0x16a1da extends _0x25aca4[_0x4b97c8(0xb1)]{[_0x4b97c8(0xc5)](){const _0x792a65=_0x4b97c8;var _0x265058,_0x25b8fb;const _0x105f42=this[_0x792a65(0xd5)]['get'](_0x1270a2[_0x792a65(0xc2)]),_0xa107a3=(_0x265058=this[_0x792a65(0xad)]())==null?void 0x0:_0x265058[_0x792a65(0xe1)]();if(!_0xa107a3)throw new Error('No\x20active\x20workbook\x20found.');const _0x223dbc=_0x105f42[_0x792a65(0xc3)](_0xa107a3);return(_0x25b8fb=_0x223dbc==null?void 0x0:_0x223dbc[_0x792a65(0xb4)]())!=null?_0x25b8fb:_0x1270a2[_0x792a65(0xbd)][_0x792a65(0xd4)];}[_0x4b97c8(0xd3)](){const _0x3e88e4=_0x4b97c8;var _0x84d1b4;const _0x20e92f=this[_0x3e88e4(0xd5)][_0x3e88e4(0xc4)](_0x1270a2[_0x3e88e4(0xc2)]),_0x4aceaf=(_0x84d1b4=this[_0x3e88e4(0xad)]())==null?void 0x0:_0x84d1b4[_0x3e88e4(0xe1)]();if(!_0x4aceaf)throw new Error(_0x3e88e4(0xdd));const _0x578d43=_0x20e92f[_0x3e88e4(0xc3)](_0x4aceaf);if(!_0x578d43)throw new Error(_0x3e88e4(0xc6));_0x578d43[_0x3e88e4(0xd3)]();}[_0x4b97c8(0xcb)](){const _0x2806c7=_0x4b97c8;var _0x2de1b2;const _0x47dd1c=this[_0x2806c7(0xd5)][_0x2806c7(0xc4)](_0x1270a2[_0x2806c7(0xc2)]),_0xc04527=(_0x2de1b2=this[_0x2806c7(0xad)]())==null?void 0x0:_0x2de1b2[_0x2806c7(0xe1)]();if(!_0xc04527)throw new Error(_0x2806c7(0xdd));const _0x3deb9c=_0x47dd1c[_0x2806c7(0xc3)](_0xc04527);if(!_0x3deb9c)throw new Error(_0x2806c7(0xc6));_0x3deb9c['stopFollowing']();}[_0x4b97c8(0xb0)](){const _0x202c19=_0x4b97c8;var _0x46173f;const _0x3576f1=this[_0x202c19(0xd5)][_0x202c19(0xc4)](_0x1270a2['LiveShareController']),_0x57955a=(_0x46173f=this['getActiveWorkbook']())==null?void 0x0:_0x46173f['getId']();if(!_0x57955a)throw new Error(_0x202c19(0xdd));const _0x5bc437=_0x3576f1[_0x202c19(0xc3)](_0x57955a);if(!_0x5bc437)throw new Error(_0x202c19(0xc6));_0x5bc437[_0x202c19(0xb7)]();}[_0x4b97c8(0xde)](){const _0x29cfd0=_0x4b97c8;var _0xc71ee;const _0x14904f=this[_0x29cfd0(0xd5)]['get'](_0x1270a2['LiveShareController']),_0x22cfe2=(_0xc71ee=this[_0x29cfd0(0xad)]())==null?void 0x0:_0xc71ee[_0x29cfd0(0xe1)]();if(!_0x22cfe2)throw new Error('No\x20active\x20workbook\x20found.');const _0x2e39cd=_0x14904f['getLiveShareCoordinatorSync'](_0x22cfe2);if(!_0x2e39cd)throw new Error(_0x29cfd0(0xc6));_0x2e39cd[_0x29cfd0(0xde)]();}}_0x25aca4[_0x4b97c8(0xb1)]['extend'](_0x16a1da);class _0x1752c8 extends _0x25aca4['FEnum']{get[_0x4b97c8(0xcf)](){const _0x18d45e=_0x4b97c8;return _0x1270a2[_0x18d45e(0xbd)];}}_0x25aca4[_0x4b97c8(0xb8)]['extend'](_0x1752c8);}));function _0x2a8f(_0x48bab0,_0x32070a){const _0x5690c2=_0x5690();return _0x2a8f=function(_0x2a8f47,_0xb6d50c){_0x2a8f47=_0x2a8f47-0xaa;let _0x4f2416=_0x5690c2[_0x2a8f47];return _0x4f2416;},_0x2a8f(_0x48bab0,_0x32070a);}function _0x5690(){const _0x723d37=['getId','3746168FREKVx','executeCommand','getSheetId','getActiveWorkbook','_commandService','startColumn','startPresenting','FUniver','getUnitId','UniverSheetsUi','getStatus','SetWorksheetActiveOperation','getRenderById','tryStartPresenting','FEnum','7711543lefSfx','@univerjs/sheets/facade','@univerjs/sheets-ui','@univerjs/sheets','LiveShareStatus','UniverSheets','698758fUSWsa','@univerjs/engine-render','UniverProLiveShare','LiveShareController','getLiveShareCoordinatorSync','get','getLiveShareStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs-pro/live-share','getActiveSheet','IRenderManagerService','8872rBjXEO','stopFollowing','29384rcySUm','function','1055sfVbeH','LiveShareStatusEnum','SetScrollOperation','1144992fQtrZM','FRange','startFollowing','IDLE','_injector','3bexUGe','syncExecuteCommand','UniverSheetsFacade','73855840nzLpdc','startRow','object','extend','No\x20active\x20workbook\x20found.','stopPresenting','@univerjs/core/facade','8199JcMswX'];_0x5690=function(){return _0x723d37;};return _0x5690();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x6d23c,_0x20c708){const _0x4c5184=_0x4047,_0x4d8781=_0x6d23c();while(!![]){try{const _0x48069e=-parseInt(_0x4c5184(0x172))/0x1*(parseInt(_0x4c5184(0x154))/0x2)+-parseInt(_0x4c5184(0xd6))/0x3+-parseInt(_0x4c5184(0x122))/0x4+-parseInt(_0x4c5184(0x12a))/0x5*(-parseInt(_0x4c5184(0x96))/0x6)+parseInt(_0x4c5184(0x128))/0x7+parseInt(_0x4c5184(0xda))/0x8+parseInt(_0x4c5184(0x132))/0x9;if(_0x48069e===_0x20c708)break;else _0x4d8781['push'](_0x4d8781['shift']());}catch(_0x4532fd){_0x4d8781['push'](_0x4d8781['shift']());}}}(_0x104b,0x71d78),function(_0x4b2a28,_0x117f7a){const _0x383e11=_0x4047;typeof exports=='object'&&typeof module<'u'?_0x117f7a(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[_0x383e11(0x124)]?define([_0x383e11(0xe1),'@univerjs/core',_0x383e11(0x152),_0x383e11(0xf0),'@univerjs/design',_0x383e11(0xd4),_0x383e11(0xfb),_0x383e11(0x142),_0x383e11(0xa3),'rxjs',_0x383e11(0xde),'@univerjs/sheets-ui'],_0x117f7a):(_0x4b2a28=typeof globalThis<'u'?globalThis:_0x4b2a28||self,_0x117f7a(_0x4b2a28[_0x383e11(0xbe)]={},_0x4b2a28[_0x383e11(0xf9)],_0x4b2a28[_0x383e11(0x178)],_0x4b2a28['React'],_0x4b2a28[_0x383e11(0x175)],_0x4b2a28[_0x383e11(0xa4)],_0x4b2a28[_0x383e11(0x14b)],_0x4b2a28[_0x383e11(0xe5)],_0x4b2a28[_0x383e11(0xa8)],_0x4b2a28['rxjs'],_0x4b2a28[_0x383e11(0xcf)][_0x383e11(0xa7)],_0x4b2a28[_0x383e11(0xe4)]));}(this,function(_0x3abbfa,_0x4359e1,_0x2d5985,_0x2c4380,_0xdf5c6c,_0x21bcc6,_0x27ab74,_0x2431fe,_0x459134,_0x47e1d1,_0x3ab019,_0x16f6d9){'use strict';const _0x3466ad=_0x4047;var _0x15cbaa=Object['defineProperty'],_0x2a4487=(_0x5c8a5a,_0x33f3e3,_0x3489c8)=>_0x33f3e3 in _0x5c8a5a?_0x15cbaa(_0x5c8a5a,_0x33f3e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3489c8}):_0x5c8a5a[_0x33f3e3]=_0x3489c8,_0x1f450f=(_0x3cfc60,_0x37791a,_0x57ebe7)=>_0x2a4487(_0x3cfc60,typeof _0x37791a!=_0x3466ad(0x167)?_0x37791a+'':_0x37791a,_0x57ebe7);function _0x2b598e({ref:_0x3b9b48,..._0x1d0ee1}){const _0x3b29fe=_0x3466ad,{icon:_0x11684,id:_0x52226b,className:_0x6faa96,extend:_0x468b33,..._0x41122b}=_0x1d0ee1,_0x40ff5a=(_0x3b29fe(0xa9)+_0x52226b+'\x20'+(_0x6faa96||''))[_0x3b29fe(0x12f)](),_0x385a0d=_0x21bcc6['useRef']('_'+_0x105a90());return _0x56505d(_0x11684,''+_0x52226b,{'defIds':_0x11684[_0x3b29fe(0xca)],'idSuffix':_0x385a0d[_0x3b29fe(0x149)]},{'ref':_0x3b9b48,'className':_0x40ff5a,..._0x41122b},_0x468b33);}function _0x56505d(_0x5a4bc0,_0x36d879,_0x492e24,_0x23a7c8,_0x4ff428){const _0x436ec9=_0x3466ad;return _0x21bcc6[_0x436ec9(0x16f)](_0x5a4bc0[_0x436ec9(0x16d)],{'key':_0x36d879,..._0x4a9777(_0x5a4bc0,_0x492e24,_0x4ff428),..._0x23a7c8},(_0x46caa5(_0x5a4bc0,_0x492e24)[_0x436ec9(0x99)]||[])[_0x436ec9(0xb3)]((_0x34690c,_0x2d41f3)=>_0x56505d(_0x34690c,_0x36d879+'-'+_0x5a4bc0[_0x436ec9(0x16d)]+'-'+_0x2d41f3,_0x492e24,void 0x0,_0x4ff428)));}function _0x4a9777(_0xa6bb75,_0x3a3e71,_0x1b4a3d){const _0x337d48=_0x3466ad,_0x2b0276={..._0xa6bb75[_0x337d48(0x125)]};_0x1b4a3d!=null&&_0x1b4a3d[_0x337d48(0x169)]&&_0x2b0276['fill']==='colorChannel1'&&(_0x2b0276[_0x337d48(0x100)]=_0x1b4a3d[_0x337d48(0x169)]),_0xa6bb75['tag']===_0x337d48(0xba)&&_0x2b0276['id']&&(_0x2b0276['id']=_0x2b0276['id']+_0x3a3e71[_0x337d48(0x11c)]),Object[_0x337d48(0x162)](_0x2b0276)[_0x337d48(0xc2)](([_0x2aad71,_0x41dc47])=>{const _0xa74612=_0x337d48;_0x2aad71==='mask'&&typeof _0x41dc47==_0xa74612(0x155)&&(_0x2b0276[_0x2aad71]=_0x41dc47[_0xa74612(0xdf)](/url\(#(.*)\)/,_0xa74612(0xf5)+_0x3a3e71['idSuffix']+')'));});const {defIds:_0x65938b}=_0x3a3e71;return!_0x65938b||_0x65938b[_0x337d48(0x158)]===0x0||(_0xa6bb75[_0x337d48(0x16d)]===_0x337d48(0xeb)&&_0x2b0276['xlink:href']&&(_0x2b0276[_0x337d48(0x168)]=_0x2b0276['xlink:href']+_0x3a3e71['idSuffix']),Object[_0x337d48(0x162)](_0x2b0276)['forEach'](([_0x2dba42,_0x576ac8])=>{const _0x34452b=_0x337d48;typeof _0x576ac8==_0x34452b(0x155)&&(_0x2b0276[_0x2dba42]=_0x576ac8[_0x34452b(0xdf)](/url\(#(.*)\)/,_0x34452b(0xf5)+_0x3a3e71['idSuffix']+')'));})),_0x2b0276;}function _0x46caa5(_0x533bf6,_0x5ac013){const _0x4e004f=_0x3466ad;var _0x18668f;const {defIds:_0x42a515}=_0x5ac013;return!_0x42a515||_0x42a515[_0x4e004f(0x158)]===0x0?_0x533bf6:_0x533bf6[_0x4e004f(0x16d)]===_0x4e004f(0xec)&&((_0x18668f=_0x533bf6[_0x4e004f(0x99)])!=null&&_0x18668f['length'])?{..._0x533bf6,'children':_0x533bf6['children'][_0x4e004f(0xb3)](_0x1741da=>typeof _0x1741da[_0x4e004f(0x125)]['id']==_0x4e004f(0x155)&&_0x42a515&&_0x42a515[_0x4e004f(0x170)](_0x1741da[_0x4e004f(0x125)]['id'])?{..._0x1741da,'attrs':{..._0x1741da[_0x4e004f(0x125)],'id':_0x1741da['attrs']['id']+_0x5ac013[_0x4e004f(0x11c)]}}:_0x1741da)}:_0x533bf6;}function _0x105a90(){const _0x4c7eaf=_0x3466ad;return Math[_0x4c7eaf(0x116)]()[_0x4c7eaf(0x146)](0x24)['substring'](0x2,0x8);}_0x2b598e[_0x3466ad(0xe6)]=_0x3466ad(0xaf);const _0x287fb8={'tag':_0x3466ad(0x108),'attrs':{'xmlns':_0x3466ad(0xb4),'fill':'none','viewBox':_0x3466ad(0x160),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x3466ad(0x157),'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':_0x3466ad(0x17b),'attrs':{'fill':'currentColor','d':_0x3466ad(0xee),'fillRule':_0x3466ad(0x105),'clipRule':_0x3466ad(0x105)}}]},_0x19234d=_0x21bcc6[_0x3466ad(0x12c)](function(_0x2a6ac5,_0x1a51a0){const _0x42aa2f=_0x3466ad;return _0x21bcc6[_0x42aa2f(0x16f)](_0x2b598e,Object[_0x42aa2f(0x14e)]({},_0x2a6ac5,{'id':_0x42aa2f(0xb0),'ref':_0x1a51a0,'icon':_0x287fb8}));});_0x19234d[_0x3466ad(0xe6)]=_0x3466ad(0x153);class _0xb3b5ac extends _0x4359e1[_0x3466ad(0x10f)]{constructor(){const _0x78cf07=_0x3466ad;super(...arguments),_0x1f450f(this,'_sharedOperations',new Set()),_0x1f450f(this,_0x78cf07(0x15a),new Set());}[_0x3466ad(0xaa)](_0x3cbcb2){const _0x24e95d=_0x3466ad;return this[_0x24e95d(0x101)]['add'](_0x3cbcb2),_0x4359e1['toDisposable'](()=>this[_0x24e95d(0x101)]['delete'](_0x3cbcb2));}[_0x3466ad(0xdc)](_0x2c39d0){const _0x1fc445=_0x3466ad;return this[_0x1fc445(0x15a)][_0x1fc445(0x13b)](_0x2c39d0),_0x4359e1['toDisposable'](()=>this[_0x1fc445(0x15a)][_0x1fc445(0x120)](_0x2c39d0));}[_0x3466ad(0x164)](_0xb176f1){const _0x58f163=_0x3466ad;return this[_0x58f163(0x101)][_0x58f163(0xd5)](_0xb176f1);}['getInitialStates'](_0x575b0b){const _0x3b6f41=_0x3466ad;return Array[_0x3b6f41(0x114)](this['_reporters'])['map'](_0xdea91e=>_0xdea91e(_0x575b0b));}}var _0x2becc1=Object['getOwnPropertyDescriptor'],_0x3fd12f=(_0x167f46,_0x44c4b6,_0x3c3228,_0x5903ed)=>{const _0x293de3=_0x3466ad;for(var _0x6762bd=_0x5903ed>0x1?void 0x0:_0x5903ed?_0x2becc1(_0x44c4b6,_0x3c3228):_0x44c4b6,_0x23997c=_0x167f46[_0x293de3(0x158)]-0x1,_0x3d0318;_0x23997c>=0x0;_0x23997c--)(_0x3d0318=_0x167f46[_0x23997c])&&(_0x6762bd=_0x3d0318(_0x6762bd)||_0x6762bd);return _0x6762bd;},_0x5d4fb8=(_0xab9004,_0x180a9e)=>(_0x237951,_0x11f747)=>_0x180a9e(_0x237951,_0x11f747,_0xab9004);_0x3abbfa[_0x3466ad(0x102)]=class extends _0x4359e1['RxDisposable']{constructor(_0x51692d,_0x2d7c6e,_0x653823){const _0x353322=_0x3466ad;super(),_0x1f450f(this,'_entities',new Map()),(this[_0x353322(0x138)]=_0x51692d,this[_0x353322(0xf8)]=_0x2d7c6e,this[_0x353322(0xac)]=_0x653823,this[_0x353322(0xd1)]());}async['getLiveShareCoordinator'](_0xa72a00){const _0x39dfa9=_0x3466ad;return this[_0x39dfa9(0x176)]['has'](_0xa72a00)||await this[_0x39dfa9(0x174)](_0xa72a00),this[_0x39dfa9(0x176)][_0x39dfa9(0x12e)](_0xa72a00);}[_0x3466ad(0xf2)](_0x383497){const _0x3c02ea=_0x3466ad;var _0x3213b9;return(_0x3213b9=this['_entities'][_0x3c02ea(0x12e)](_0x383497))!=null?_0x3213b9:null;}[_0x3466ad(0xd1)](){const _0x112ffa=_0x3466ad;this[_0x112ffa(0x138)][_0x112ffa(0xe2)](_0x4359e1[_0x112ffa(0xf7)][_0x112ffa(0xce)])[_0x112ffa(0xbf)](_0x3ab019[_0x112ffa(0xe3)](this[_0x112ffa(0x10a)]))[_0x112ffa(0x109)](async _0x548362=>{const _0x48ffd1=_0x112ffa,_0x5a758a=_0x548362[_0x48ffd1(0x17e)]();this[_0x48ffd1(0x176)][_0x48ffd1(0xd5)](_0x5a758a)||this[_0x48ffd1(0x174)](_0x5a758a);}),this['_univerInstanceService'][_0x112ffa(0x166)](_0x4359e1[_0x112ffa(0xf7)]['UNIVER_SHEET'])['pipe'](_0x3ab019['takeUntil'](this[_0x112ffa(0x10a)]))[_0x112ffa(0x109)](_0x2bd5ff=>{const _0x1eef09=_0x112ffa,_0x53712f=_0x2bd5ff['getUnitId'](),_0x3751f1=this[_0x1eef09(0x176)][_0x1eef09(0x12e)](_0x53712f);_0x3751f1==null||_0x3751f1[_0x1eef09(0x10e)]();});}async[_0x3466ad(0x174)](_0x5821a4){const _0x2d4b76=_0x3466ad,_0x44d371=await this[_0x2d4b76(0xac)]['requireSession'](_0x5821a4),_0x332102=this[_0x2d4b76(0xf8)]['createInstance'](_0x3abbfa[_0x2d4b76(0x148)],_0x5821a4,_0x44d371);return _0x332102['init'](),this[_0x2d4b76(0x176)][_0x2d4b76(0xea)](_0x5821a4,_0x332102),_0x332102;}},_0x3abbfa['LiveShareController']=_0x3fd12f([_0x5d4fb8(0x0,_0x4359e1[_0x3466ad(0xff)]),_0x5d4fb8(0x1,_0x4359e1['Inject'](_0x4359e1[_0x3466ad(0xcd)])),_0x5d4fb8(0x2,_0x4359e1[_0x3466ad(0x135)](_0x2431fe[_0x3466ad(0xed)]))],_0x3abbfa[_0x3466ad(0x102)]);var _0x53cc48=(_0x253843=>(_0x253843[_0x3466ad(0x14a)]=_0x3466ad(0xd7),_0x253843['IDLE']=_0x3466ad(0x177),_0x253843[_0x3466ad(0x16b)]=_0x3466ad(0x17d),_0x253843[_0x3466ad(0x107)]=_0x3466ad(0xd3),_0x253843[_0x3466ad(0xc3)]=_0x3466ad(0x13d),_0x253843))(_0x53cc48||{});const _0x26e80c=_0x3466ad(0xae),_0x33d4c0=0xc8;_0x3abbfa['LiveShareCoordinator']=class extends _0x4359e1['RxDisposable']{constructor(_0x58d938,_0x58d4a9,_0x2b4e7f,_0x3e6e24,_0x2e8f99){const _0x4ab263=_0x3466ad;super(),_0x1f450f(this,_0x4ab263(0x16a),new _0x47e1d1[(_0x4ab263(0xb1))](_0x4ab263(0x177))),_0x1f450f(this,_0x4ab263(0xb2),this[_0x4ab263(0x16a)][_0x4ab263(0xd8)]()),_0x1f450f(this,_0x4ab263(0xd1),!0x1),_0x1f450f(this,_0x4ab263(0x11f),null),_0x1f450f(this,_0x4ab263(0x95),null),(this[_0x4ab263(0x13c)]=_0x58d938,this[_0x4ab263(0x129)]=_0x58d4a9,this[_0x4ab263(0xef)]=_0x2b4e7f,this['_liveShareService']=_0x3e6e24,this['_commandService']=_0x2e8f99);}get['_status'](){const _0x209d78=_0x3466ad;return this[_0x209d78(0x16a)][_0x209d78(0xc5)]();}[_0x3466ad(0x10e)](){const _0x4cc7aa=_0x3466ad;var _0x55414c;(_0x55414c=this['_commandDisposable'])==null||_0x55414c['dispose'](),this[_0x4cc7aa(0x16a)][_0x4cc7aa(0xbd)](_0x4cc7aa(0x177)),this['_status$'][_0x4cc7aa(0xa5)]();}[_0x3466ad(0x12d)](){const _0x549ee9=_0x3466ad;return this[_0x549ee9(0xd2)];}['init'](){const _0x2e6e6d=_0x3466ad;this[_0x2e6e6d(0xd1)]||(this[_0x2e6e6d(0xd1)]=!0x0,this['_collabSession'][_0x2e6e6d(0x119)][_0x2e6e6d(0xbf)](_0x3ab019[_0x2e6e6d(0xe3)](this['dispose$']))[_0x2e6e6d(0x109)](_0x225982=>{const _0x1f861d=_0x2e6e6d;switch(_0x225982){case _0x2431fe['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case _0x2431fe[_0x1f861d(0xb6)][_0x1f861d(0x139)]:this[_0x1f861d(0xe8)]();break;}}),this[_0x2e6e6d(0x129)][_0x2e6e6d(0x11d)][_0x2e6e6d(0xbf)](_0x3ab019['takeUntil'](this['dispose$']))['subscribe'](_0x190a9c=>{const _0x1aa6f5=_0x2e6e6d,{eventID:_0x5910ae}=_0x190a9c;switch(_0x5910ae){case _0x27ab74['CollaborationEvent'][_0x1aa6f5(0x9a)]:this['_handleNewHost'](_0x190a9c);break;case _0x27ab74[_0x1aa6f5(0x91)][_0x1aa6f5(0xcb)]:this['_handleOperation'](_0x190a9c);break;case _0x27ab74[_0x1aa6f5(0x91)][_0x1aa6f5(0x9c)]:this[_0x1aa6f5(0x16e)]();break;case _0x27ab74[_0x1aa6f5(0x91)][_0x1aa6f5(0x163)]:this[_0x1aa6f5(0x144)](_0x190a9c);break;}}));}['tryStartPresenting'](){const _0x4193b4=_0x3466ad;this['_collabSession'][_0x4193b4(0xe7)]({'eventID':_0x27ab74[_0x4193b4(0x91)][_0x4193b4(0x156)],'data':{'unitID':this[_0x4193b4(0x13c)],'userID':this[_0x4193b4(0x129)][_0x4193b4(0x14c)]()}},this['_unitID']);}[_0x3466ad(0x171)](){const _0x9c9c58=_0x3466ad;this[_0x9c9c58(0xd2)]===_0x9c9c58(0x13d)&&(this['_status$'][_0x9c9c58(0xbd)](_0x9c9c58(0x177)),this[_0x9c9c58(0x129)][_0x9c9c58(0xe7)]({'eventID':_0x27ab74['CollaborationEvent'][_0x9c9c58(0x9c)],'data':{'unitID':this[_0x9c9c58(0x13c)]}},this[_0x9c9c58(0x13c)]));}[_0x3466ad(0xbc)](){const _0x619cf=_0x3466ad;this[_0x619cf(0xd2)]===_0x619cf(0xd3)&&(this[_0x619cf(0x16a)][_0x619cf(0xbd)](_0x619cf(0x17d)),this[_0x619cf(0x147)]());}[_0x3466ad(0x113)](){const _0xf39d57=_0x3466ad;this[_0xf39d57(0xd2)]===_0xf39d57(0x17d)&&this[_0xf39d57(0x11b)]();}[_0x3466ad(0xa1)](_0x5392c7){const _0x9dc36c=_0x3466ad,{presenter:_0x57e1fc}=_0x5392c7[_0x9dc36c(0x165)],_0x491b6b=this[_0x9dc36c(0x129)][_0x9dc36c(0x14c)]();this[_0x9dc36c(0x95)]=_0x57e1fc,_0x57e1fc===_0x491b6b?(this[_0x9dc36c(0x11b)](),this['_startPresenting']()):this[_0x9dc36c(0xd2)]!==_0x9dc36c(0xd3)&&(this[_0x9dc36c(0x133)](),this[_0x9dc36c(0x147)]());}[_0x3466ad(0x179)](){const _0x582f5c=_0x3466ad,_0x3ee616={'eventID':_0x27ab74[_0x582f5c(0x91)][_0x582f5c(0x143)]};this['_collabSession'][_0x582f5c(0xe7)](_0x3ee616,this['_unitID']);}[_0x3466ad(0x16e)](){const _0xa645ca=_0x3466ad;this[_0xa645ca(0x95)]=null,this[_0xa645ca(0xd2)]!==_0xa645ca(0x13d)&&this['_beIdle']();}['_handleNewChangeSets'](_0x3a886){const _0x18b73d=_0x3466ad;if(this[_0x18b73d(0xd2)]===_0x18b73d(0x17d)&&this[_0x18b73d(0x95)]===_0x3a886[_0x18b73d(0x165)]['memberID']){const _0x2842b5=_0x27ab74[_0x18b73d(0xbb)](_0x3a886['data'])['mutations'][_0x18b73d(0x159)]()[_0x18b73d(0x121)](_0x4616b8=>_0x4616b8['id']===_0x459134[_0x18b73d(0x13a)]['id']);if(_0x2842b5){const _0x657b3e=_0x2842b5[_0x18b73d(0x112)][_0x18b73d(0x151)],_0x1da8f6=_0x2842b5[_0x18b73d(0x112)][_0x18b73d(0x14f)]['id'];setTimeout(()=>{const _0x424d67=_0x18b73d;this[_0x424d67(0xdb)]['executeCommand'](_0x459134[_0x424d67(0x15d)]['id'],{'unitId':_0x657b3e,'subUnitId':_0x1da8f6},{'fromCollab':!0x0});});}}}[_0x3466ad(0x9b)](){const _0x54bada=_0x3466ad;this[_0x54bada(0x16a)]['next'](_0x54bada(0x13d));const _0x27cb9c=new Map(),_0x18fc98=this['_commandDisposable']=new _0x4359e1[(_0x54bada(0xc7))]();_0x18fc98[_0x54bada(0x13b)](_0x4359e1[_0x54bada(0x9d)](()=>{const _0xb3c572=_0x54bada;_0x27cb9c['forEach'](_0x14494e=>_0x14494e[_0xb3c572(0xa5)]()),_0x27cb9c[_0xb3c572(0x16c)]();})),_0x18fc98[_0x54bada(0x13b)](this[_0x54bada(0xdb)][_0x54bada(0xcc)](_0x256f43=>{const _0x26011d=_0x54bada;var _0x24321c;if(_0x256f43[_0x26011d(0xfa)]!==_0x4359e1['CommandType']['OPERATION']||!this['_liveShareService'][_0x26011d(0x164)](_0x256f43['id']))return;const {id:_0x4ba781}=_0x256f43;let _0x37ebaf;_0x27cb9c['has'](_0x4ba781)?_0x37ebaf=_0x27cb9c[_0x26011d(0x12e)](_0x4ba781):(_0x37ebaf=new _0x47e1d1['Subject'](),_0x27cb9c[_0x26011d(0xea)](_0x4ba781,_0x37ebaf),_0x37ebaf[_0x26011d(0xbf)](_0x3ab019[_0x26011d(0x137)]((_0x24321c=this['_configService']['getConfig'](_0x26e80c))!=null?_0x24321c:_0x33d4c0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x26011d(0x109)](_0x25642b=>{const _0x4c9d81=_0x26011d;this['_collabSession'][_0x4c9d81(0xe7)]({'eventID':_0x27ab74['CollaborationEvent'][_0x4c9d81(0xcb)],'data':{'unitID':this[_0x4c9d81(0x13c)],'operations':{[_0x25642b['id']]:{'id':_0x25642b['id'],'params':JSON[_0x4c9d81(0x110)](_0x25642b[_0x4c9d81(0x112)])}}}},this[_0x4c9d81(0x13c)]);})),_0x37ebaf['next'](_0x256f43);})),this['_liveShareService'][_0x54bada(0xf1)](this[_0x54bada(0x13c)])['forEach'](_0x13cd38=>this[_0x54bada(0x129)][_0x54bada(0xe7)]({'eventID':_0x27ab74[_0x54bada(0x91)][_0x54bada(0xcb)],'data':{'unitID':this['_unitID'],'operations':{[_0x13cd38['id']]:{'id':_0x13cd38['id'],'params':JSON[_0x54bada(0x110)](_0x13cd38[_0x54bada(0x112)])}}}},this[_0x54bada(0x13c)]));}[_0x3466ad(0x133)](){const _0x21a377=_0x3466ad;var _0x55eb02;this[_0x21a377(0x16a)]['next']('idle'),(_0x55eb02=this[_0x21a377(0x11f)])==null||_0x55eb02[_0x21a377(0x10e)](),this[_0x21a377(0x11f)]=null;}[_0x3466ad(0x147)](){const _0x37bcd8=_0x3466ad;var _0x3d8748;(_0x3d8748=this[_0x37bcd8(0x11f)])==null||_0x3d8748['dispose'](),this['_status$'][_0x37bcd8(0xbd)]('following');}[_0x3466ad(0x9e)](){const _0x2d3376=_0x3466ad;var _0x3ee4bb;this[_0x2d3376(0x16a)][_0x2d3376(0xbd)](_0x2d3376(0x177)),(_0x3ee4bb=this['_commandDisposable'])==null||_0x3ee4bb[_0x2d3376(0x10e)](),this['_commandDisposable']=null;}[_0x3466ad(0x11b)](){const _0x28364b=_0x3466ad;var _0x2e52e2;this[_0x28364b(0x16a)]['next']('not-following'),(_0x2e52e2=this[_0x28364b(0x11f)])==null||_0x2e52e2[_0x28364b(0x10e)]();}['_handleOperation'](_0x3999e3){const _0x205dae=_0x3466ad;if([_0x205dae(0x13d),_0x205dae(0xd3),'offline']['includes'](this[_0x205dae(0xd2)])||!_0x3999e3[_0x205dae(0x165)][_0x205dae(0xa0)]||_0x3999e3['data'][_0x205dae(0xa0)]===this['_collabSession'][_0x205dae(0x14c)]())return;this[_0x205dae(0xd2)]===_0x205dae(0x177)&&this[_0x205dae(0x147)]();const _0x207f23=_0x3999e3['data'][_0x205dae(0x15f)];Object['values'](_0x207f23)['forEach'](_0x443ae9=>{const _0x3f6758=_0x205dae;this[_0x3f6758(0xdb)][_0x3f6758(0x17c)](_0x443ae9['id'],_0x443ae9['params']?JSON[_0x3f6758(0xc0)](_0x443ae9[_0x3f6758(0x112)]):null,{'fromCollab':!0x0});});}[_0x3466ad(0x123)](){const _0x12db3f=_0x3466ad;var _0x3e95d1;this[_0x12db3f(0x16a)][_0x12db3f(0xbd)]('offline'),(_0x3e95d1=this[_0x12db3f(0x11f)])==null||_0x3e95d1[_0x12db3f(0x10e)]();}[_0x3466ad(0xe8)](){const _0x574c51=_0x3466ad;this[_0x574c51(0x16a)][_0x574c51(0xbd)](_0x574c51(0x177)),this[_0x574c51(0x179)]();}},_0x3abbfa[_0x3466ad(0x148)]=_0x3fd12f([_0x5d4fb8(0x2,_0x4359e1[_0x3466ad(0xb5)]),_0x5d4fb8(0x3,_0x4359e1[_0x3466ad(0x135)](_0xb3b5ac)),_0x5d4fb8(0x4,_0x4359e1[_0x3466ad(0x115)])],_0x3abbfa[_0x3466ad(0x148)]);function _0x558aee(){const _0x2a0da8=_0x3466ad,_0x3c7c0b=_0x2d5985[_0x2a0da8(0xe0)](_0x3abbfa[_0x2a0da8(0x102)]),_0x272075=_0x2d5985[_0x2a0da8(0xe0)](_0x4359e1[_0x2a0da8(0xff)]),_0x5cc3e8=_0x2d5985[_0x2a0da8(0x13e)](()=>_0x272075[_0x2a0da8(0x161)](_0x4359e1[_0x2a0da8(0xf7)][_0x2a0da8(0xce)]),void 0x0,!0x1,[]),[_0x19a078,_0x467ddf]=_0x21bcc6[_0x2a0da8(0x13f)](null),[_0xfb608a,_0x2b077f]=_0x21bcc6[_0x2a0da8(0x13f)](_0x53cc48[_0x2a0da8(0x126)]),_0x3627f2=_0x21bcc6['useRef'](null);return _0x21bcc6[_0x2a0da8(0xab)](()=>(_0x5cc3e8&&_0x3c7c0b[_0x2a0da8(0x145)](_0x5cc3e8[_0x2a0da8(0x17e)]())[_0x2a0da8(0xf4)](_0xa9dd03=>{const _0x4d40b3=_0x2a0da8;_0x467ddf(_0xa9dd03),_0x3627f2[_0x4d40b3(0x149)]=_0xa9dd03['status$'][_0x4d40b3(0x109)](_0x5a6bd9=>{_0x2b077f(_0x5a6bd9);});}),()=>{const _0x3dcfad=_0x2a0da8;var _0x5182bf;(_0x5182bf=_0x3627f2[_0x3dcfad(0x149)])==null||_0x5182bf[_0x3dcfad(0x150)](),_0x3627f2[_0x3dcfad(0x149)]=null;}),[_0x5cc3e8,_0x3c7c0b]),_0x19a078?_0x2c4380[_0x2a0da8(0x10c)](_0xdf5c6c[_0x2a0da8(0xd9)],{'align':_0x2a0da8(0x131),'disabled':_0xfb608a===_0x53cc48['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x2c4380[_0x2a0da8(0x10c)](_0x5699b4,{'status':_0xfb608a,'coordinator':_0x19a078}),'children':_0x2c4380['jsx'](_0x2a0da8(0x106),{'className':_0xdf5c6c[_0x2a0da8(0x130)](_0x2a0da8(0x104),{'univer-cursor-not-allowed':_0xfb608a===_0x53cc48[_0x2a0da8(0x14a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xfb608a!==_0x53cc48['OFFLINE']}),'type':_0x2a0da8(0x106),'children':_0x2c4380[_0x2a0da8(0x10c)](_0x19234d,{'className':_0x2a0da8(0xc6)})})}):null;}function _0x5699b4(_0x4dc57d){const _0x41ec4c=_0x3466ad,{status:_0x27e09c,coordinator:_0x42410d}=_0x4dc57d;switch(_0x27e09c){case _0x53cc48[_0x41ec4c(0x126)]:return _0x2c4380[_0x41ec4c(0x10c)](_0x3ca318,{'coordinator':_0x42410d});case _0x53cc48[_0x41ec4c(0x16b)]:return _0x2c4380['jsx'](_0x43cead,{'coordinator':_0x42410d});case _0x53cc48['NOT_FOLLOWING']:return _0x2c4380[_0x41ec4c(0x10c)](_0x41e65b,{'coordinator':_0x42410d});case _0x53cc48[_0x41ec4c(0x14a)]:return _0x2c4380[_0x41ec4c(0x10c)](_0x343752,{});case _0x53cc48[_0x41ec4c(0xc3)]:return _0x2c4380[_0x41ec4c(0x10c)](_0x1084b9,{'coordinator':_0x42410d});default:return null;}}function _0x3ca318(_0x1750e2){const _0x99822d=_0x3466ad,{coordinator:_0x3bba32}=_0x1750e2;return _0x2c4380[_0x99822d(0x17a)](_0x2c4380['Fragment'],{'children':[_0x2c4380['jsx'](_0x99822d(0x11a),{'className':_0x99822d(0xc4),'children':_0x99822d(0x134)}),_0x2c4380[_0x99822d(0x10c)](_0xdf5c6c[_0x99822d(0x10b)],{'onClick':()=>_0x3bba32[_0x99822d(0xb7)](),'children':_0x99822d(0xc9)})]});}function _0x43cead(_0xc3db){const _0x383d1d=_0x3466ad,{coordinator:_0x54818e}=_0xc3db;return _0x2c4380[_0x383d1d(0x17a)](_0x2c4380[_0x383d1d(0xf6)],{'children':[_0x2c4380[_0x383d1d(0x10c)](_0x383d1d(0x11a),{'className':_0x383d1d(0xc4),'children':_0x383d1d(0xfc)}),_0x2c4380[_0x383d1d(0x10c)](_0xdf5c6c[_0x383d1d(0x10b)],{'onClick':()=>_0x54818e[_0x383d1d(0x113)](),'children':_0x383d1d(0x97)})]});}function _0x41e65b(_0x3f9fad){const _0x39a6c6=_0x3466ad,{coordinator:_0x3696fe}=_0x3f9fad;return _0x2c4380['jsxs'](_0x2c4380[_0x39a6c6(0xf6)],{'children':[_0x2c4380['jsx'](_0x39a6c6(0x11a),{'className':_0x39a6c6(0xc4),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2c4380[_0x39a6c6(0x10c)](_0xdf5c6c[_0x39a6c6(0x10b)],{'variant':_0x39a6c6(0xa6),'onClick':()=>_0x3696fe[_0x39a6c6(0xbc)](),'children':_0x39a6c6(0x15b)})]});}function _0x1084b9(_0x4cffb7){const _0x28dbf7=_0x3466ad,{coordinator:_0x4bfabb}=_0x4cffb7;return _0x2c4380['jsxs'](_0x2c4380[_0x28dbf7(0xf6)],{'children':[_0x2c4380['jsx'](_0x28dbf7(0x11a),{'className':_0x28dbf7(0xc4),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x2c4380[_0x28dbf7(0x10c)](_0xdf5c6c[_0x28dbf7(0x10b)],{'variant':_0x28dbf7(0x98),'onClick':()=>_0x4bfabb['stopPresenting'](),'children':_0x28dbf7(0x11e)})]});}function _0x343752(){const _0x2eddb2=_0x3466ad;return _0x2c4380['jsx'](_0x2c4380[_0x2eddb2(0xf6)],{'children':_0x2eddb2(0x136)});}var _0x1f7bed=Object[_0x3466ad(0x141)],_0x39011f=(_0x4bdb0a,_0x9bdf8a,_0x3a362e,_0x1bd7a2)=>{const _0x415b86=_0x3466ad;for(var _0x3b1910=_0x1bd7a2>0x1?void 0x0:_0x1bd7a2?_0x1f7bed(_0x9bdf8a,_0x3a362e):_0x9bdf8a,_0x3e5aca=_0x4bdb0a[_0x415b86(0x158)]-0x1,_0x16262c;_0x3e5aca>=0x0;_0x3e5aca--)(_0x16262c=_0x4bdb0a[_0x3e5aca])&&(_0x3b1910=_0x16262c(_0x3b1910)||_0x3b1910);return _0x3b1910;},_0x34abfb=(_0x56a0ab,_0x234e83)=>(_0x26592b,_0x47c770)=>_0x234e83(_0x26592b,_0x47c770,_0x56a0ab);_0x3abbfa[_0x3466ad(0x14d)]=class extends _0x4359e1['Disposable']{constructor(_0x9708e5,_0x52bb6d){const _0x43baad=_0x3466ad;super(),this[_0x43baad(0xf8)]=_0x9708e5,this['_uiPartsService']=_0x52bb6d,this[_0x43baad(0xb8)]();}['_mountLiveShare'](){const _0x1df841=_0x3466ad;this[_0x1df841(0xe9)](this[_0x1df841(0x111)][_0x1df841(0x118)](_0x2d5985[_0x1df841(0xdd)][_0x1df841(0xc8)],()=>_0x2d5985[_0x1df841(0x9f)](_0x558aee,this[_0x1df841(0xf8)])));}},_0x3abbfa[_0x3466ad(0x14d)]=_0x39011f([_0x34abfb(0x0,_0x4359e1[_0x3466ad(0x135)](_0x4359e1[_0x3466ad(0xcd)])),_0x34abfb(0x1,_0x2d5985[_0x3466ad(0x10d)])],_0x3abbfa[_0x3466ad(0x14d)]);const _0x1ad01c=_0x3466ad(0x127),_0x4f60e0={};var _0x3701a6=Object[_0x3466ad(0x141)],_0xfb79d=(_0x3b2689,_0x4691be,_0x42e970,_0x487dff)=>{const _0x5269f7=_0x3466ad;for(var _0x18e7cb=_0x487dff>0x1?void 0x0:_0x487dff?_0x3701a6(_0x4691be,_0x42e970):_0x4691be,_0xc6213b=_0x3b2689[_0x5269f7(0x158)]-0x1,_0x38bc33;_0xc6213b>=0x0;_0xc6213b--)(_0x38bc33=_0x3b2689[_0xc6213b])&&(_0x18e7cb=_0x38bc33(_0x18e7cb)||_0x18e7cb);return _0x18e7cb;},_0x517ddf=(_0xd052a3,_0x4fe070)=>(_0x48a194,_0x3e875d)=>_0x4fe070(_0x48a194,_0x3e875d,_0xd052a3);let _0x5c9df4=class extends _0x4359e1[_0x3466ad(0x10f)]{constructor(_0x10f064){const _0x9217fe=_0x3466ad;super(),this['_liveShareService']=_0x10f064,this[_0x9217fe(0xd1)]();}[_0x3466ad(0xd1)](){const _0x4ab527=_0x3466ad;[_0x16f6d9[_0x4ab527(0xfd)]['id'],_0x16f6d9[_0x4ab527(0x180)]['id'],_0x459134['SetWorksheetActiveOperation']['id']][_0x4ab527(0xc2)](_0x1dc749=>{const _0x79e481=_0x4ab527;this['disposeWithMe'](this['_liveShareService'][_0x79e481(0xaa)](_0x1dc749));});}};_0x5c9df4=_0xfb79d([_0x517ddf(0x0,_0x4359e1[_0x3466ad(0x135)](_0xb3b5ac))],_0x5c9df4);var _0x300f61=Object[_0x3466ad(0x173)],_0x8dcd59=Object[_0x3466ad(0x141)],_0xa06838=(_0x138727,_0x3d4fcc,_0x4219d6)=>_0x3d4fcc in _0x138727?_0x300f61(_0x138727,_0x3d4fcc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4219d6}):_0x138727[_0x3d4fcc]=_0x4219d6,_0x10de32=(_0x4c6528,_0x3ffbf2,_0x5ee5f4,_0x348c35)=>{const _0x549e03=_0x3466ad;for(var _0x22da0b=_0x348c35>0x1?void 0x0:_0x348c35?_0x8dcd59(_0x3ffbf2,_0x5ee5f4):_0x3ffbf2,_0x185015=_0x4c6528[_0x549e03(0x158)]-0x1,_0x4f12ed;_0x185015>=0x0;_0x185015--)(_0x4f12ed=_0x4c6528[_0x185015])&&(_0x22da0b=_0x4f12ed(_0x22da0b)||_0x22da0b);return _0x22da0b;},_0x3c1e10=(_0x547305,_0x3c2201)=>(_0x1f7e25,_0x1adb01)=>_0x3c2201(_0x1f7e25,_0x1adb01,_0x547305),_0x21b930=(_0x2ebdb4,_0xc0f6f1,_0x269fc2)=>_0xa06838(_0x2ebdb4,typeof _0xc0f6f1!=_0x3466ad(0x167)?_0xc0f6f1+'':_0xc0f6f1,_0x269fc2);const _0x12221c='UNIVER_LIVE_SHARE_PLUGIN';_0x3abbfa[_0x3466ad(0x103)]=class extends _0x4359e1[_0x3466ad(0x140)]{constructor(_0x526337=_0x4f60e0,_0xa756c,_0x20870f){const _0x442cb5=_0x3466ad;super(),this[_0x442cb5(0xd0)]=_0x526337,this['_injector']=_0xa756c,this[_0x442cb5(0xef)]=_0x20870f;const {..._0x2cefbd}=_0x4359e1['merge']({},_0x4f60e0,this[_0x442cb5(0xd0)]);this['_configService'][_0x442cb5(0x117)](_0x1ad01c,_0x2cefbd);}[_0x3466ad(0xad)](){const _0x1d073f=_0x3466ad;_0x4359e1['registerDependencies'](this[_0x1d073f(0xf8)],_0x4359e1[_0x1d073f(0x93)]([[_0xb3b5ac],[_0x3abbfa[_0x1d073f(0x102)]],[_0x5c9df4],[_0x3abbfa[_0x1d073f(0x14d)]]],this['_config'][_0x1d073f(0xfe)])),_0x4359e1[_0x1d073f(0x12b)](this['_injector'],[[_0x5c9df4]]);}[_0x3466ad(0x94)](){const _0x274d96=_0x3466ad;_0x4359e1[_0x274d96(0x12b)](this[_0x274d96(0xf8)],[[_0x3abbfa[_0x274d96(0x14d)]]]);}},_0x21b930(_0x3abbfa['UniverLiveSharePlugin'],'type',_0x4359e1[_0x3466ad(0xf7)][_0x3466ad(0xa2)]),_0x21b930(_0x3abbfa[_0x3466ad(0x103)],_0x3466ad(0xb9),_0x12221c),_0x3abbfa[_0x3466ad(0x103)]=_0x10de32([_0x4359e1[_0x3466ad(0xf3)](_0x2431fe[_0x3466ad(0x15e)]),_0x3c1e10(0x1,_0x4359e1[_0x3466ad(0x135)](_0x4359e1[_0x3466ad(0xcd)])),_0x3c1e10(0x2,_0x4359e1[_0x3466ad(0xb5)])],_0x3abbfa[_0x3466ad(0x103)]),_0x3abbfa[_0x3466ad(0x92)]=_0x558aee,_0x3abbfa[_0x3466ad(0xc1)]=_0xb3b5ac,_0x3abbfa[_0x3466ad(0x15c)]=_0x53cc48,Object[_0x3466ad(0x173)](_0x3abbfa,Symbol['toStringTag'],{'value':_0x3466ad(0x17f)});}));function _0x4047(_0x534a2d,_0x15169f){const _0x104b55=_0x104b();return _0x4047=function(_0x40473b,_0x5a4e52){_0x40473b=_0x40473b-0x91;let _0x2079cc=_0x104b55[_0x40473b];return _0x2079cc;},_0x4047(_0x534a2d,_0x15169f);}function _0x104b(){const _0x52d86d=['override','IUniverInstanceService','fill','_sharedOperations','LiveShareController','UniverLiveSharePlugin','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','evenodd','button','NOT_FOLLOWING','svg','subscribe','dispose$','Button','jsx','IUIPartsService','dispose','Disposable','stringify','_uiPartsService','params','stopFollowing','from','ICommandService','random','setConfig','registerComponent','sessionStatus$','div','_stopFollowing','idSuffix','event$','Stop\x20presenting','_commandDisposable','delete','find','2384108NPhjzq','_handleOffline','amd','attrs','IDLE','live-share.config','1034201PWCWXE','_collabSession','5nrImzV','touchDependencies','forwardRef','getStatus','get','trim','clsx','end','7429203QgqgLt','_stopPresenting','Present\x20this\x20document','Inject','You\x27are\x20offline.','throttleTime','_univerInstanceService','ONLINE','InsertSheetMutation','add','_unitID','presenting','useObservable','useState','Plugin','getOwnPropertyDescriptor','@univerjs-pro/collaboration-client','LIVESHARE_FETCH_OPERATIONS','_handleNewChangeSets','getLiveShareCoordinator','toString','_startFollowing','LiveShareCoordinator','current','OFFLINE','UniverProCollaboration','getMemberID','DesktopLiveShareController','assign','sheet','unsubscribe','unitId','@univerjs/ui','LiveShareIcon','716076ZeiBBs','string','LIVESHARE_REQUEST_HOST','currentColor','length','reverse','_reporters','Start\x20following','LiveShareStatus','SetWorksheetActiveOperation','UniverCollaborationClientPlugin','operations','0\x200\x2017\x2017','getCurrentTypeOfUnit$','entries','NEW_CHANGESETS','shouldShareOperation','data','getTypeOfUnitDisposed$','symbol','xlink:href','colorChannel1','_status$','FOLLOWING','clear','tag','_handleTerminate','createElement','includes','stopPresenting','1RMdYWR','defineProperty','_startLiveShareCoordinator','UniverDesign','_entities','idle','UniverUi','_fetchOperations','jsxs','path','executeCommand','following','getUnitId','Module','SetScrollOperation','CollaborationEvent','LiveShare','mergeOverrideWithDependencies','onRendered','_presenter','4059852TimTyx','Stop\x20following','default','children','LIVESHARE_NEW_HOST','_startPresenting','LIVESHARE_TERMINATE','toDisposable','_beIdle','connectInjector','presenter','_handleNewHost','UNIVER_UNKNOWN','@univerjs/sheets','React','complete','text','operators','UniverSheets','univerjs-icon\x20univerjs-icon-','registerSharedOperation','useEffect','_collabSessionService','onStarting','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','live-share-icon','BehaviorSubject','status$','map','http://www.w3.org/2000/svg','IConfigService','SessionStatus','tryStartPresenting','_mountLiveShare','pluginName','mask','parseProtocolChangeset','startFollowing','next','UniverProLiveShare','pipe','parse','LiveShareService','forEach','PRESENTING','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','univer-size-4','DisposableCollection','HEADER_MENU','Start','defIds','LIVESHARE_OPERATION','onCommandExecuted','Injector','UNIVER_SHEET','rxjs','_config','_init','_status','not-following','react','has','2016060DMvMJv','offline','asObservable','Dropdown','3540232OUwfZZ','_commandService','registerInitialStateReporter','BuiltInUIPart','rxjs/operators','replace','useDependency','exports','getTypeOfUnitAdded$','takeUntil','UniverSheetsUi','UniverProCollaborationClient','displayName','send','_handleOnline','disposeWithMe','set','use','defs','CollaborationSessionService','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','_configService','react/jsx-runtime','getInitialStates','getLiveShareCoordinatorSync','DependentOn','then','url(#$1','Fragment','UniverInstanceType','_injector','UniverCore','type','@univerjs-pro/collaboration','You\x27re\x20following\x20the\x20presenter','SetZoomRatioOperation'];_0x104b=function(){return _0x52d86d;};return _0x104b();}
|
|
1
|
+
function _0x23e3(){const _0x2d6a6b=['forEach','_handleTerminate','toDisposable','defs','UniverProCollaboration','9998800YuDZkO','dispose$','displayName','_fetchOperations','_handleOnline','onCommandExecuted','IUIPartsService','asObservable','getCurrentTypeOfUnit$','override','SessionStatus','xlink:href','136248zrGtCv','useObservable','operators','Button','@univerjs/sheets','FOLLOWING','stopFollowing','@univerjs-pro/collaboration','You\x27re\x20following\x20the\x20presenter','path','_commandService','parseProtocolChangeset','fill','random','assign','_unitID','pluginName','_config','mask','react/jsx-runtime','clear','LIVESHARE_NEW_HOST','LIVESHARE_REQUEST_HOST','CommandType','offline','stopPresenting','DesktopLiveShareController','getOwnPropertyDescriptor','Stop\x20following','params','@univerjs-pro/collaboration-client','_mountLiveShare','trim','toStringTag','set','857859PjJBhI','getMemberID','jsxs','LIVESHARE_TERMINATE','RxDisposable','clsx','subscribe','registerSharedOperation','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','78qTaOAH','registerDependencies','_startPresenting','_configService','replace','amd','LiveShareCoordinator','_liveShareService','default','colorChannel1','attrs','1311644ZRZdWi','not-following','UNIVER_UNKNOWN','getLiveShareCoordinatorSync','merge','Subject','useDependency','0\x200\x2017\x2017','_handleNewChangeSets','UniverInstanceType','ONLINE','DependentOn','touchDependencies','onRendered','UniverCollaborationClientPlugin','reverse','status$','includes','dispose','sessionStatus$','mutations','from','button','setConfig','values','_entities','ICommandService','LiveShare','LIVESHARE_FETCH_OPERATIONS','unsubscribe','DisposableCollection','_beIdle','defineProperty','send','@univerjs/design','CollaborationEvent','univer-size-4','_status$','_stopFollowing','idle','Start\x20following','rxjs/operators','_startFollowing','next','_handleOffline','UniverSheets','getStatus','then','react','_reporters','UniverSheetsUi','tryStartPresenting','createInstance','operations','takeUntil','use','_handleNewHost','_commandDisposable','_status','entries','42aWmCsv','univerjs-icon\x20univerjs-icon-','UniverLiveSharePlugin','UniverProCollaborationClient','presenter','stringify','useRef','HEADER_MENU','get','data','UniverIcon','1124307Hisxat','throttleTime','@univerjs/core','url(#$1','has','sheet','getTypeOfUnitAdded$','IUniverInstanceService','BuiltInUIPart','exports','_injector','_univerInstanceService','_collabSession','useEffect','LIVESHARE_OPERATION','BehaviorSubject','getTypeOfUnitDisposed$','You\x27re\x20not\x20following\x20the\x20presenter','registerInitialStateReporter','defIds','following','UniverProLiveShare','_sharedOperations','presenting','shouldShareOperation','NOT_FOLLOWING','pipe','executeCommand','startFollowing','http://www.w3.org/2000/svg','InsertSheetMutation','createElement','evenodd','_collabSessionService','_init','jsx','_startLiveShareCoordinator','string','LiveShareStatus','getLiveShareCoordinator','Dropdown','add','mergeOverrideWithDependencies','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20presenting\x20the\x20document','Disposable','idSuffix','OFFLINE','complete','useState','current','UNIVER_SHEET','@univerjs/ui','Stop\x20presenting','div','init','map','15224iBbdhw','children','rxjs','_presenter','Inject','length','994610loRHYS','getUnitId','Fragment','object','tag','getInitialStates','function','symbol','24NjZNtb','delete','UniverDesign','forwardRef','IDLE','getConfig','Injector','1em','disposeWithMe','_stopPresenting','_handleOperation','requireSession','IConfigService','LiveShareController'];_0x23e3=function(){return _0x2d6a6b;};return _0x23e3();}function _0x4e29(_0x3706fb,_0x4e0811){const _0x23e353=_0x23e3();return _0x4e29=function(_0x4e29f6,_0x4e3256){_0x4e29f6=_0x4e29f6-0xd6;let _0x28594e=_0x23e353[_0x4e29f6];return _0x28594e;},_0x4e29(_0x3706fb,_0x4e0811);}(function(_0x55e389,_0x264835){const _0x43b961=_0x4e29,_0x2abc04=_0x55e389();while(!![]){try{const _0x256747=-parseInt(_0x43b961(0x115))/0x1*(-parseInt(_0x43b961(0x1b6))/0x2)+-parseInt(_0x43b961(0x165))/0x3+parseInt(_0x43b961(0x17a))/0x4+parseInt(_0x43b961(0x11b))/0x5+-parseInt(_0x43b961(0x16f))/0x6*(-parseInt(_0x43b961(0x142))/0x7)+-parseInt(_0x43b961(0x123))/0x8*(-parseInt(_0x43b961(0xdb))/0x9)+-parseInt(_0x43b961(0x136))/0xa;if(_0x256747===_0x264835)break;else _0x2abc04['push'](_0x2abc04['shift']());}catch(_0x1431f7){_0x2abc04['push'](_0x2abc04['shift']());}}}(_0x23e3,0x2e059),function(_0x3346dd,_0xb3e22b){const _0x38428a=_0x4e29;typeof exports==_0x38428a(0x11e)&&typeof module<'u'?_0xb3e22b(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==_0x38428a(0x121)&&define[_0x38428a(0x174)]?define([_0x38428a(0xe4),_0x38428a(0xdd),_0x38428a(0x110),_0x38428a(0x155),_0x38428a(0x19c),_0x38428a(0x1aa),_0x38428a(0x149),_0x38428a(0x160),_0x38428a(0x146),_0x38428a(0x117),_0x38428a(0x1a3),'@univerjs/sheets-ui'],_0xb3e22b):(_0x3346dd=typeof globalThis<'u'?globalThis:_0x3346dd||self,_0xb3e22b(_0x3346dd[_0x38428a(0xf0)]={},_0x3346dd['UniverCore'],_0x3346dd['UniverUi'],_0x3346dd['React'],_0x3346dd[_0x38428a(0x125)],_0x3346dd['React'],_0x3346dd[_0x38428a(0x135)],_0x3346dd[_0x38428a(0x1b9)],_0x3346dd[_0x38428a(0x1a7)],_0x3346dd[_0x38428a(0x117)],_0x3346dd[_0x38428a(0x117)][_0x38428a(0x144)],_0x3346dd[_0x38428a(0x1ac)]));}(this,function(_0x25a97d,_0x34f908,_0x4d5594,_0x4a72e8,_0x2657de,_0x14a001,_0x2d822a,_0x3bbabe,_0x1aef0b,_0x108c51,_0x4c4e05,_0x1661c8){'use strict';const _0x962b26=_0x4e29;var _0x59f3fb=Object['defineProperty'],_0x2b0435=(_0x172921,_0x5be9b6,_0x188a12)=>_0x5be9b6 in _0x172921?_0x59f3fb(_0x172921,_0x5be9b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x188a12}):_0x172921[_0x5be9b6]=_0x188a12,_0x3d2603=(_0x4f7e38,_0x28bf37,_0x2d637b)=>_0x2b0435(_0x4f7e38,typeof _0x28bf37!=_0x962b26(0x122)?_0x28bf37+'':_0x28bf37,_0x2d637b);function _0x21b439({ref:_0x2f9245,..._0x4bfc14}){const _0x23a133=_0x962b26,{icon:_0x21bdef,id:_0x5718a9,className:_0x4cf0e2,extend:_0x44809f,..._0x3dbb6a}=_0x4bfc14,_0x2d5c6a=(_0x23a133(0x1b7)+_0x5718a9+'\x20'+(_0x4cf0e2||''))[_0x23a133(0x162)](),_0x224529=_0x14a001[_0x23a133(0xd6)]('_'+_0x1a3272());return _0x57c17a(_0x21bdef,''+_0x5718a9,{'defIds':_0x21bdef[_0x23a133(0xee)],'idSuffix':_0x224529[_0x23a133(0x10e)]},{'ref':_0x2f9245,'className':_0x2d5c6a,..._0x3dbb6a},_0x44809f);}function _0x57c17a(_0x52fe5c,_0x3f5622,_0x489fd3,_0x3f8bc3,_0x8d3f3a){const _0xac9107=_0x962b26;return _0x14a001[_0xac9107(0xfa)](_0x52fe5c[_0xac9107(0x11f)],{'key':_0x3f5622,..._0x3aefc8(_0x52fe5c,_0x489fd3,_0x8d3f3a),..._0x3f8bc3},(_0x183444(_0x52fe5c,_0x489fd3)[_0xac9107(0x116)]||[])[_0xac9107(0x114)]((_0x364bd2,_0x3d649c)=>_0x57c17a(_0x364bd2,_0x3f5622+'-'+_0x52fe5c[_0xac9107(0x11f)]+'-'+_0x3d649c,_0x489fd3,void 0x0,_0x8d3f3a)));}function _0x3aefc8(_0x4bdf89,_0x3addf6,_0x24bffa){const _0x2d7ea3=_0x962b26,_0xa29419={..._0x4bdf89[_0x2d7ea3(0x179)]};_0x24bffa!=null&&_0x24bffa[_0x2d7ea3(0x178)]&&_0xa29419['fill']===_0x2d7ea3(0x178)&&(_0xa29419[_0x2d7ea3(0x14e)]=_0x24bffa['colorChannel1']),_0x4bdf89[_0x2d7ea3(0x11f)]===_0x2d7ea3(0x154)&&_0xa29419['id']&&(_0xa29419['id']=_0xa29419['id']+_0x3addf6[_0x2d7ea3(0x10a)]),Object[_0x2d7ea3(0x1b5)](_0xa29419)[_0x2d7ea3(0x131)](([_0x3c6461,_0x5977de])=>{const _0x499e92=_0x2d7ea3;_0x3c6461===_0x499e92(0x154)&&typeof _0x5977de==_0x499e92(0x100)&&(_0xa29419[_0x3c6461]=_0x5977de[_0x499e92(0x173)](/url\(#(.*)\)/,_0x499e92(0xde)+_0x3addf6['idSuffix']+')'));});const {defIds:_0x263047}=_0x3addf6;return!_0x263047||_0x263047[_0x2d7ea3(0x11a)]===0x0||(_0x4bdf89[_0x2d7ea3(0x11f)]===_0x2d7ea3(0x1b1)&&_0xa29419[_0x2d7ea3(0x141)]&&(_0xa29419[_0x2d7ea3(0x141)]=_0xa29419[_0x2d7ea3(0x141)]+_0x3addf6[_0x2d7ea3(0x10a)]),Object[_0x2d7ea3(0x1b5)](_0xa29419)[_0x2d7ea3(0x131)](([_0x4be1ff,_0x3989f5])=>{const _0x107c1a=_0x2d7ea3;typeof _0x3989f5==_0x107c1a(0x100)&&(_0xa29419[_0x4be1ff]=_0x3989f5[_0x107c1a(0x173)](/url\(#(.*)\)/,_0x107c1a(0xde)+_0x3addf6['idSuffix']+')'));})),_0xa29419;}function _0x183444(_0x359951,_0x484b01){const _0x34380f=_0x962b26;var _0x583e56;const {defIds:_0x24c6ee}=_0x484b01;return!_0x24c6ee||_0x24c6ee[_0x34380f(0x11a)]===0x0?_0x359951:_0x359951[_0x34380f(0x11f)]===_0x34380f(0x134)&&((_0x583e56=_0x359951[_0x34380f(0x116)])!=null&&_0x583e56['length'])?{..._0x359951,'children':_0x359951['children'][_0x34380f(0x114)](_0x2b924f=>typeof _0x2b924f[_0x34380f(0x179)]['id']==_0x34380f(0x100)&&_0x24c6ee&&_0x24c6ee[_0x34380f(0x18b)](_0x2b924f['attrs']['id'])?{..._0x2b924f,'attrs':{..._0x2b924f[_0x34380f(0x179)],'id':_0x2b924f[_0x34380f(0x179)]['id']+_0x484b01[_0x34380f(0x10a)]}}:_0x2b924f)}:_0x359951;}function _0x1a3272(){const _0x4d45c9=_0x962b26;return Math[_0x4d45c9(0x14f)]()['toString'](0x24)['substring'](0x2,0x8);}_0x21b439[_0x962b26(0x138)]=_0x962b26(0xda);const _0x2ff253={'tag':'svg','attrs':{'xmlns':_0x962b26(0xf8),'fill':'none','viewBox':_0x962b26(0x181),'width':'1em','height':_0x962b26(0x12a)},'children':[{'tag':'path','attrs':{'fill':_0x962b26(0x16e),'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':_0x962b26(0x14b),'attrs':{'fill':'currentColor','d':_0x962b26(0x16d),'fillRule':_0x962b26(0xfb),'clipRule':'evenodd'}}]},_0x260691=_0x14a001[_0x962b26(0x126)](function(_0x50be8d,_0x8c4aa5){const _0x527441=_0x962b26;return _0x14a001[_0x527441(0xfa)](_0x21b439,Object[_0x527441(0x150)]({},_0x50be8d,{'id':'live-share-icon','ref':_0x8c4aa5,'icon':_0x2ff253}));});_0x260691[_0x962b26(0x138)]='LiveShareIcon';class _0xa8cdd extends _0x34f908[_0x962b26(0x109)]{constructor(){const _0x230df8=_0x962b26;super(...arguments),_0x3d2603(this,_0x230df8(0xf1),new Set()),_0x3d2603(this,_0x230df8(0x1ab),new Set());}[_0x962b26(0x16c)](_0x2fba21){const _0x5c8a26=_0x962b26;return this[_0x5c8a26(0xf1)][_0x5c8a26(0x104)](_0x2fba21),_0x34f908[_0x5c8a26(0x133)](()=>this[_0x5c8a26(0xf1)]['delete'](_0x2fba21));}[_0x962b26(0xed)](_0x3c147f){const _0x5b8b10=_0x962b26;return this[_0x5b8b10(0x1ab)]['add'](_0x3c147f),_0x34f908[_0x5b8b10(0x133)](()=>this['_reporters'][_0x5b8b10(0x124)](_0x3c147f));}[_0x962b26(0xf3)](_0x386210){const _0x3e7774=_0x962b26;return this['_sharedOperations'][_0x3e7774(0xdf)](_0x386210);}[_0x962b26(0x120)](_0x2c52dd){const _0x353985=_0x962b26;return Array[_0x353985(0x18f)](this[_0x353985(0x1ab)])[_0x353985(0x114)](_0x443cd6=>_0x443cd6(_0x2c52dd));}}var _0x30c0a9=Object[_0x962b26(0x15d)],_0x1a686d=(_0x1a77c8,_0x406e15,_0x18e961,_0x2b7872)=>{const _0x3b6623=_0x962b26;for(var _0x21dca7=_0x2b7872>0x1?void 0x0:_0x2b7872?_0x30c0a9(_0x406e15,_0x18e961):_0x406e15,_0x9f483c=_0x1a77c8[_0x3b6623(0x11a)]-0x1,_0xb3600d;_0x9f483c>=0x0;_0x9f483c--)(_0xb3600d=_0x1a77c8[_0x9f483c])&&(_0x21dca7=_0xb3600d(_0x21dca7)||_0x21dca7);return _0x21dca7;},_0x36127e=(_0x478253,_0x282f61)=>(_0x238a76,_0x2b1713)=>_0x282f61(_0x238a76,_0x2b1713,_0x478253);_0x25a97d[_0x962b26(0x130)]=class extends _0x34f908[_0x962b26(0x169)]{constructor(_0x163b97,_0x356ee1,_0x467259){const _0xc5a9a3=_0x962b26;super(),_0x3d2603(this,_0xc5a9a3(0x193),new Map()),(this[_0xc5a9a3(0xe6)]=_0x163b97,this[_0xc5a9a3(0xe5)]=_0x356ee1,this[_0xc5a9a3(0xfc)]=_0x467259,this[_0xc5a9a3(0xfd)]());}async[_0x962b26(0x102)](_0x16f9aa){const _0x5892df=_0x962b26;return this[_0x5892df(0x193)][_0x5892df(0xdf)](_0x16f9aa)||await this['_startLiveShareCoordinator'](_0x16f9aa),this[_0x5892df(0x193)][_0x5892df(0xd8)](_0x16f9aa);}[_0x962b26(0x17d)](_0x5d7730){const _0x13865e=_0x962b26;var _0xa6fdcf;return(_0xa6fdcf=this[_0x13865e(0x193)][_0x13865e(0xd8)](_0x5d7730))!=null?_0xa6fdcf:null;}[_0x962b26(0xfd)](){const _0x4472cc=_0x962b26;this[_0x4472cc(0xe6)][_0x4472cc(0xe1)](_0x34f908['UniverInstanceType'][_0x4472cc(0x10f)])[_0x4472cc(0xf5)](_0x4c4e05[_0x4472cc(0x1b0)](this[_0x4472cc(0x137)]))[_0x4472cc(0x16b)](async _0x34d7fc=>{const _0x1322e7=_0x4472cc,_0x3b44c8=_0x34d7fc[_0x1322e7(0x11c)]();this[_0x1322e7(0x193)][_0x1322e7(0xdf)](_0x3b44c8)||this[_0x1322e7(0xff)](_0x3b44c8);}),this[_0x4472cc(0xe6)][_0x4472cc(0xeb)](_0x34f908[_0x4472cc(0x183)][_0x4472cc(0x10f)])[_0x4472cc(0xf5)](_0x4c4e05[_0x4472cc(0x1b0)](this['dispose$']))[_0x4472cc(0x16b)](_0x113435=>{const _0xc25261=_0x4472cc,_0x2f593f=_0x113435[_0xc25261(0x11c)](),_0x5e3fa6=this[_0xc25261(0x193)][_0xc25261(0xd8)](_0x2f593f);_0x5e3fa6==null||_0x5e3fa6[_0xc25261(0x18c)]();});}async['_startLiveShareCoordinator'](_0x177298){const _0x291f93=_0x962b26,_0x4e002f=await this['_collabSessionService'][_0x291f93(0x12e)](_0x177298),_0x52125e=this[_0x291f93(0xe5)][_0x291f93(0x1ae)](_0x25a97d[_0x291f93(0x175)],_0x177298,_0x4e002f);return _0x52125e['init'](),this['_entities'][_0x291f93(0x164)](_0x177298,_0x52125e),_0x52125e;}},_0x25a97d[_0x962b26(0x130)]=_0x1a686d([_0x36127e(0x0,_0x34f908[_0x962b26(0xe2)]),_0x36127e(0x1,_0x34f908[_0x962b26(0x119)](_0x34f908['Injector'])),_0x36127e(0x2,_0x34f908[_0x962b26(0x119)](_0x3bbabe['CollaborationSessionService']))],_0x25a97d[_0x962b26(0x130)]);var _0x320925=(_0x4b2fbd=>(_0x4b2fbd[_0x962b26(0x10b)]=_0x962b26(0x15a),_0x4b2fbd[_0x962b26(0x127)]=_0x962b26(0x1a1),_0x4b2fbd[_0x962b26(0x147)]='following',_0x4b2fbd[_0x962b26(0xf4)]=_0x962b26(0x17b),_0x4b2fbd['PRESENTING']=_0x962b26(0xf2),_0x4b2fbd))(_0x320925||{});const _0x110334='SAME_OPERATION_SHARE_INTERVAL',_0x22030d=0xc8;_0x25a97d['LiveShareCoordinator']=class extends _0x34f908[_0x962b26(0x169)]{constructor(_0x2242eb,_0x47418b,_0x6f6ea0,_0xc56cc5,_0x234040){const _0x226422=_0x962b26;super(),_0x3d2603(this,'_status$',new _0x108c51[(_0x226422(0xea))](_0x226422(0x1a1))),_0x3d2603(this,_0x226422(0x18a),this[_0x226422(0x19f)][_0x226422(0x13d)]()),_0x3d2603(this,_0x226422(0xfd),!0x1),_0x3d2603(this,_0x226422(0x1b3),null),_0x3d2603(this,_0x226422(0x118),null),(this[_0x226422(0x151)]=_0x2242eb,this['_collabSession']=_0x47418b,this[_0x226422(0x172)]=_0x6f6ea0,this[_0x226422(0x176)]=_0xc56cc5,this[_0x226422(0x14c)]=_0x234040);}get[_0x962b26(0x1b4)](){const _0x5f4b18=_0x962b26;return this[_0x5f4b18(0x19f)]['getValue']();}[_0x962b26(0x18c)](){const _0x555283=_0x962b26;var _0x15eeef;(_0x15eeef=this[_0x555283(0x1b3)])==null||_0x15eeef[_0x555283(0x18c)](),this['_status$'][_0x555283(0x1a5)](_0x555283(0x1a1)),this[_0x555283(0x19f)][_0x555283(0x10c)]();}[_0x962b26(0x1a8)](){return this['_status'];}[_0x962b26(0x113)](){const _0x2fbe9e=_0x962b26;this[_0x2fbe9e(0xfd)]||(this[_0x2fbe9e(0xfd)]=!0x0,this[_0x2fbe9e(0xe7)][_0x2fbe9e(0x18d)][_0x2fbe9e(0xf5)](_0x4c4e05['takeUntil'](this[_0x2fbe9e(0x137)]))[_0x2fbe9e(0x16b)](_0x3127da=>{const _0x15f941=_0x2fbe9e;switch(_0x3127da){case _0x3bbabe['SessionStatus']['OFFLINE']:this[_0x15f941(0x1a6)]();break;case _0x3bbabe[_0x15f941(0x140)][_0x15f941(0x184)]:this[_0x15f941(0x13a)]();break;}}),this[_0x2fbe9e(0xe7)]['event$'][_0x2fbe9e(0xf5)](_0x4c4e05[_0x2fbe9e(0x1b0)](this[_0x2fbe9e(0x137)]))[_0x2fbe9e(0x16b)](_0x83cb4e=>{const _0x2d260f=_0x2fbe9e,{eventID:_0x2a9e1b}=_0x83cb4e;switch(_0x2a9e1b){case _0x2d822a['CollaborationEvent'][_0x2d260f(0x157)]:this[_0x2d260f(0x1b2)](_0x83cb4e);break;case _0x2d822a[_0x2d260f(0x19d)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x83cb4e);break;case _0x2d822a[_0x2d260f(0x19d)][_0x2d260f(0x168)]:this[_0x2d260f(0x132)]();break;case _0x2d822a[_0x2d260f(0x19d)]['NEW_CHANGESETS']:this[_0x2d260f(0x182)](_0x83cb4e);break;}}));}[_0x962b26(0x1ad)](){const _0x540eb3=_0x962b26;this[_0x540eb3(0xe7)]['send']({'eventID':_0x2d822a[_0x540eb3(0x19d)][_0x540eb3(0x158)],'data':{'unitID':this['_unitID'],'userID':this[_0x540eb3(0xe7)][_0x540eb3(0x166)]()}},this[_0x540eb3(0x151)]);}[_0x962b26(0x15b)](){const _0x4c5933=_0x962b26;this[_0x4c5933(0x1b4)]==='presenting'&&(this[_0x4c5933(0x19f)][_0x4c5933(0x1a5)](_0x4c5933(0x1a1)),this[_0x4c5933(0xe7)]['send']({'eventID':_0x2d822a['CollaborationEvent'][_0x4c5933(0x168)],'data':{'unitID':this['_unitID']}},this[_0x4c5933(0x151)]));}[_0x962b26(0xf7)](){const _0x543b44=_0x962b26;this['_status']===_0x543b44(0x17b)&&(this[_0x543b44(0x19f)][_0x543b44(0x1a5)](_0x543b44(0xef)),this[_0x543b44(0x1a4)]());}[_0x962b26(0x148)](){const _0x17aa12=_0x962b26;this[_0x17aa12(0x1b4)]===_0x17aa12(0xef)&&this[_0x17aa12(0x1a0)]();}[_0x962b26(0x1b2)](_0x4ef4ff){const _0x516e02=_0x962b26,{presenter:_0x11d7f0}=_0x4ef4ff[_0x516e02(0xd9)],_0x583f22=this[_0x516e02(0xe7)]['getMemberID']();this[_0x516e02(0x118)]=_0x11d7f0,_0x11d7f0===_0x583f22?(this['_stopFollowing'](),this[_0x516e02(0x171)]()):this[_0x516e02(0x1b4)]!==_0x516e02(0x17b)&&(this['_stopPresenting'](),this[_0x516e02(0x1a4)]());}[_0x962b26(0x139)](){const _0x51a1bc=_0x962b26,_0x57aa7a={'eventID':_0x2d822a[_0x51a1bc(0x19d)][_0x51a1bc(0x196)]};this[_0x51a1bc(0xe7)][_0x51a1bc(0x19b)](_0x57aa7a,this[_0x51a1bc(0x151)]);}[_0x962b26(0x132)](){const _0x56f1fd=_0x962b26;this[_0x56f1fd(0x118)]=null,this[_0x56f1fd(0x1b4)]!==_0x56f1fd(0xf2)&&this[_0x56f1fd(0x199)]();}[_0x962b26(0x182)](_0x3bb4a8){const _0x4ea16d=_0x962b26;if(this[_0x4ea16d(0x1b4)]==='following'&&this['_presenter']===_0x3bb4a8[_0x4ea16d(0xd9)]['memberID']){const _0x5d1bdb=_0x2d822a[_0x4ea16d(0x14d)](_0x3bb4a8[_0x4ea16d(0xd9)])[_0x4ea16d(0x18e)][_0x4ea16d(0x189)]()['find'](_0x42aa8f=>_0x42aa8f['id']===_0x1aef0b[_0x4ea16d(0xf9)]['id']);if(_0x5d1bdb){const _0x42d7e7=_0x5d1bdb[_0x4ea16d(0x15f)]['unitId'],_0xb8ae0f=_0x5d1bdb[_0x4ea16d(0x15f)][_0x4ea16d(0xe0)]['id'];setTimeout(()=>{const _0x2d0fa5=_0x4ea16d;this[_0x2d0fa5(0x14c)][_0x2d0fa5(0xf6)](_0x1aef0b['SetWorksheetActiveOperation']['id'],{'unitId':_0x42d7e7,'subUnitId':_0xb8ae0f},{'fromCollab':!0x0});});}}}[_0x962b26(0x171)](){const _0x327233=_0x962b26;this[_0x327233(0x19f)]['next'](_0x327233(0xf2));const _0x63377a=new Map(),_0x1620c3=this['_commandDisposable']=new _0x34f908[(_0x327233(0x198))]();_0x1620c3['add'](_0x34f908[_0x327233(0x133)](()=>{const _0x5a52b2=_0x327233;_0x63377a['forEach'](_0x1715f0=>_0x1715f0[_0x5a52b2(0x10c)]()),_0x63377a[_0x5a52b2(0x156)]();})),_0x1620c3['add'](this[_0x327233(0x14c)][_0x327233(0x13b)](_0xd4a45d=>{const _0x3480bd=_0x327233;var _0x3988c8;if(_0xd4a45d['type']!==_0x34f908[_0x3480bd(0x159)]['OPERATION']||!this['_liveShareService'][_0x3480bd(0xf3)](_0xd4a45d['id']))return;const {id:_0x3d5f2f}=_0xd4a45d;let _0x191337;_0x63377a[_0x3480bd(0xdf)](_0x3d5f2f)?_0x191337=_0x63377a['get'](_0x3d5f2f):(_0x191337=new _0x108c51[(_0x3480bd(0x17f))](),_0x63377a[_0x3480bd(0x164)](_0x3d5f2f,_0x191337),_0x191337['pipe'](_0x4c4e05[_0x3480bd(0xdc)]((_0x3988c8=this[_0x3480bd(0x172)][_0x3480bd(0x128)](_0x110334))!=null?_0x3988c8:_0x22030d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3480bd(0x16b)](_0x18bc7c=>{const _0x5dc1b7=_0x3480bd;this[_0x5dc1b7(0xe7)][_0x5dc1b7(0x19b)]({'eventID':_0x2d822a[_0x5dc1b7(0x19d)][_0x5dc1b7(0xe9)],'data':{'unitID':this['_unitID'],'operations':{[_0x18bc7c['id']]:{'id':_0x18bc7c['id'],'params':JSON[_0x5dc1b7(0x1bb)](_0x18bc7c[_0x5dc1b7(0x15f)])}}}},this[_0x5dc1b7(0x151)]);})),_0x191337[_0x3480bd(0x1a5)](_0xd4a45d);})),this[_0x327233(0x176)][_0x327233(0x120)](this[_0x327233(0x151)])[_0x327233(0x131)](_0x5d324d=>this[_0x327233(0xe7)]['send']({'eventID':_0x2d822a[_0x327233(0x19d)][_0x327233(0xe9)],'data':{'unitID':this[_0x327233(0x151)],'operations':{[_0x5d324d['id']]:{'id':_0x5d324d['id'],'params':JSON[_0x327233(0x1bb)](_0x5d324d['params'])}}}},this[_0x327233(0x151)]));}[_0x962b26(0x12c)](){const _0x4acab6=_0x962b26;var _0x1bc82f;this[_0x4acab6(0x19f)][_0x4acab6(0x1a5)](_0x4acab6(0x1a1)),(_0x1bc82f=this[_0x4acab6(0x1b3)])==null||_0x1bc82f['dispose'](),this[_0x4acab6(0x1b3)]=null;}['_startFollowing'](){const _0x203d88=_0x962b26;var _0x3afba7;(_0x3afba7=this[_0x203d88(0x1b3)])==null||_0x3afba7[_0x203d88(0x18c)](),this['_status$'][_0x203d88(0x1a5)](_0x203d88(0xef));}[_0x962b26(0x199)](){const _0x3d793f=_0x962b26;var _0x5b78b7;this[_0x3d793f(0x19f)][_0x3d793f(0x1a5)](_0x3d793f(0x1a1)),(_0x5b78b7=this[_0x3d793f(0x1b3)])==null||_0x5b78b7[_0x3d793f(0x18c)](),this['_commandDisposable']=null;}[_0x962b26(0x1a0)](){const _0x40c65d=_0x962b26;var _0x48df97;this['_status$'][_0x40c65d(0x1a5)](_0x40c65d(0x17b)),(_0x48df97=this[_0x40c65d(0x1b3)])==null||_0x48df97[_0x40c65d(0x18c)]();}[_0x962b26(0x12d)](_0x23801c){const _0x2712bd=_0x962b26;if([_0x2712bd(0xf2),_0x2712bd(0x17b),_0x2712bd(0x15a)][_0x2712bd(0x18b)](this[_0x2712bd(0x1b4)])||!_0x23801c[_0x2712bd(0xd9)][_0x2712bd(0x1ba)]||_0x23801c[_0x2712bd(0xd9)]['presenter']===this['_collabSession'][_0x2712bd(0x166)]())return;this[_0x2712bd(0x1b4)]===_0x2712bd(0x1a1)&&this['_startFollowing']();const _0x2b66a2=_0x23801c['data'][_0x2712bd(0x1af)];Object[_0x2712bd(0x192)](_0x2b66a2)[_0x2712bd(0x131)](_0x1ba74e=>{const _0x33e9d4=_0x2712bd;this[_0x33e9d4(0x14c)][_0x33e9d4(0xf6)](_0x1ba74e['id'],_0x1ba74e[_0x33e9d4(0x15f)]?JSON['parse'](_0x1ba74e[_0x33e9d4(0x15f)]):null,{'fromCollab':!0x0});});}[_0x962b26(0x1a6)](){const _0x13c36d=_0x962b26;var _0x93dbe1;this[_0x13c36d(0x19f)]['next'](_0x13c36d(0x15a)),(_0x93dbe1=this[_0x13c36d(0x1b3)])==null||_0x93dbe1[_0x13c36d(0x18c)]();}[_0x962b26(0x13a)](){const _0x470d6e=_0x962b26;this['_status$'][_0x470d6e(0x1a5)](_0x470d6e(0x1a1)),this['_fetchOperations']();}},_0x25a97d['LiveShareCoordinator']=_0x1a686d([_0x36127e(0x2,_0x34f908[_0x962b26(0x12f)]),_0x36127e(0x3,_0x34f908[_0x962b26(0x119)](_0xa8cdd)),_0x36127e(0x4,_0x34f908[_0x962b26(0x194)])],_0x25a97d[_0x962b26(0x175)]);function _0x548691(){const _0x342f1b=_0x962b26,_0x4293f4=_0x4d5594['useDependency'](_0x25a97d[_0x342f1b(0x130)]),_0x1cb1d6=_0x4d5594[_0x342f1b(0x180)](_0x34f908[_0x342f1b(0xe2)]),_0x43a814=_0x4d5594[_0x342f1b(0x143)](()=>_0x1cb1d6[_0x342f1b(0x13e)](_0x34f908[_0x342f1b(0x183)][_0x342f1b(0x10f)]),void 0x0,!0x1,[]),[_0x41f40d,_0x53140e]=_0x14a001[_0x342f1b(0x10d)](null),[_0x3b02aa,_0x4899a4]=_0x14a001[_0x342f1b(0x10d)](_0x320925['IDLE']),_0x5b18aa=_0x14a001[_0x342f1b(0xd6)](null);return _0x14a001[_0x342f1b(0xe8)](()=>(_0x43a814&&_0x4293f4[_0x342f1b(0x102)](_0x43a814['getUnitId']())[_0x342f1b(0x1a9)](_0x18adb1=>{const _0x124b40=_0x342f1b;_0x53140e(_0x18adb1),_0x5b18aa[_0x124b40(0x10e)]=_0x18adb1[_0x124b40(0x18a)][_0x124b40(0x16b)](_0x40090b=>{_0x4899a4(_0x40090b);});}),()=>{const _0x1ec40c=_0x342f1b;var _0x11e87e;(_0x11e87e=_0x5b18aa[_0x1ec40c(0x10e)])==null||_0x11e87e[_0x1ec40c(0x197)](),_0x5b18aa[_0x1ec40c(0x10e)]=null;}),[_0x43a814,_0x4293f4]),_0x41f40d?_0x4a72e8['jsx'](_0x2657de[_0x342f1b(0x103)],{'align':'end','disabled':_0x3b02aa===_0x320925[_0x342f1b(0x10b)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x4a72e8[_0x342f1b(0xfe)](_0xf1391a,{'status':_0x3b02aa,'coordinator':_0x41f40d}),'children':_0x4a72e8['jsx'](_0x342f1b(0x190),{'className':_0x2657de[_0x342f1b(0x16a)](_0x342f1b(0x106),{'univer-cursor-not-allowed':_0x3b02aa===_0x320925[_0x342f1b(0x10b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3b02aa!==_0x320925[_0x342f1b(0x10b)]}),'type':_0x342f1b(0x190),'children':_0x4a72e8[_0x342f1b(0xfe)](_0x260691,{'className':_0x342f1b(0x19e)})})}):null;}function _0xf1391a(_0x2eb071){const _0x1d985b=_0x962b26,{status:_0x468b28,coordinator:_0x4cf8b5}=_0x2eb071;switch(_0x468b28){case _0x320925[_0x1d985b(0x127)]:return _0x4a72e8[_0x1d985b(0xfe)](_0x45b850,{'coordinator':_0x4cf8b5});case _0x320925[_0x1d985b(0x147)]:return _0x4a72e8[_0x1d985b(0xfe)](_0x2515fc,{'coordinator':_0x4cf8b5});case _0x320925['NOT_FOLLOWING']:return _0x4a72e8[_0x1d985b(0xfe)](_0x282b59,{'coordinator':_0x4cf8b5});case _0x320925[_0x1d985b(0x10b)]:return _0x4a72e8[_0x1d985b(0xfe)](_0x1598f2,{});case _0x320925['PRESENTING']:return _0x4a72e8[_0x1d985b(0xfe)](_0x7e160a,{'coordinator':_0x4cf8b5});default:return null;}}function _0x45b850(_0x2fb9d0){const _0x10dc7e=_0x962b26,{coordinator:_0x57ad32}=_0x2fb9d0;return _0x4a72e8['jsxs'](_0x4a72e8['Fragment'],{'children':[_0x4a72e8['jsx'](_0x10dc7e(0x112),{'className':_0x10dc7e(0x107),'children':'Present\x20this\x20document'}),_0x4a72e8[_0x10dc7e(0xfe)](_0x2657de[_0x10dc7e(0x145)],{'onClick':()=>_0x57ad32[_0x10dc7e(0x1ad)](),'children':'Start'})]});}function _0x2515fc(_0x3b9774){const _0x3b11d8=_0x962b26,{coordinator:_0x2d9fba}=_0x3b9774;return _0x4a72e8['jsxs'](_0x4a72e8[_0x3b11d8(0x11d)],{'children':[_0x4a72e8[_0x3b11d8(0xfe)](_0x3b11d8(0x112),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3b11d8(0x14a)}),_0x4a72e8['jsx'](_0x2657de[_0x3b11d8(0x145)],{'onClick':()=>_0x2d9fba[_0x3b11d8(0x148)](),'children':_0x3b11d8(0x15e)})]});}function _0x282b59(_0x50f802){const _0xa8fb03=_0x962b26,{coordinator:_0x5be460}=_0x50f802;return _0x4a72e8[_0xa8fb03(0x167)](_0x4a72e8[_0xa8fb03(0x11d)],{'children':[_0x4a72e8[_0xa8fb03(0xfe)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xa8fb03(0xec)}),_0x4a72e8[_0xa8fb03(0xfe)](_0x2657de['Button'],{'variant':'text','onClick':()=>_0x5be460[_0xa8fb03(0xf7)](),'children':_0xa8fb03(0x1a2)})]});}function _0x7e160a(_0x3563e8){const _0x1e5456=_0x962b26,{coordinator:_0x4268a6}=_0x3563e8;return _0x4a72e8[_0x1e5456(0x167)](_0x4a72e8[_0x1e5456(0x11d)],{'children':[_0x4a72e8[_0x1e5456(0xfe)](_0x1e5456(0x112),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1e5456(0x108)}),_0x4a72e8[_0x1e5456(0xfe)](_0x2657de['Button'],{'variant':_0x1e5456(0x177),'onClick':()=>_0x4268a6[_0x1e5456(0x15b)](),'children':_0x1e5456(0x111)})]});}function _0x1598f2(){const _0x530fd1=_0x962b26;return _0x4a72e8['jsx'](_0x4a72e8[_0x530fd1(0x11d)],{'children':'You\x27are\x20offline.'});}var _0x22276f=Object['getOwnPropertyDescriptor'],_0x16a17d=(_0x50ee53,_0x4a33c5,_0x4c7a6e,_0x337141)=>{const _0x182021=_0x962b26;for(var _0x3fa331=_0x337141>0x1?void 0x0:_0x337141?_0x22276f(_0x4a33c5,_0x4c7a6e):_0x4a33c5,_0x244d14=_0x50ee53[_0x182021(0x11a)]-0x1,_0x3dd4f8;_0x244d14>=0x0;_0x244d14--)(_0x3dd4f8=_0x50ee53[_0x244d14])&&(_0x3fa331=_0x3dd4f8(_0x3fa331)||_0x3fa331);return _0x3fa331;},_0x5ab00a=(_0x29d06e,_0x2b153d)=>(_0x36722f,_0x18ee91)=>_0x2b153d(_0x36722f,_0x18ee91,_0x29d06e);_0x25a97d['DesktopLiveShareController']=class extends _0x34f908['Disposable']{constructor(_0x35fc32,_0x513599){const _0x4c819c=_0x962b26;super(),this[_0x4c819c(0xe5)]=_0x35fc32,this['_uiPartsService']=_0x513599,this[_0x4c819c(0x161)]();}[_0x962b26(0x161)](){const _0x152e66=_0x962b26;this[_0x152e66(0x12b)](this['_uiPartsService']['registerComponent'](_0x4d5594[_0x152e66(0xe3)][_0x152e66(0xd7)],()=>_0x4d5594['connectInjector'](_0x548691,this['_injector'])));}},_0x25a97d[_0x962b26(0x15c)]=_0x16a17d([_0x5ab00a(0x0,_0x34f908[_0x962b26(0x119)](_0x34f908[_0x962b26(0x129)])),_0x5ab00a(0x1,_0x4d5594[_0x962b26(0x13c)])],_0x25a97d[_0x962b26(0x15c)]);const _0x57aa68='live-share.config',_0x43f128={};var _0x9ad926=Object[_0x962b26(0x15d)],_0x59d2a6=(_0x2bc867,_0x526247,_0x3c377c,_0x51f670)=>{const _0x47c38e=_0x962b26;for(var _0x2fc581=_0x51f670>0x1?void 0x0:_0x51f670?_0x9ad926(_0x526247,_0x3c377c):_0x526247,_0x31cf91=_0x2bc867[_0x47c38e(0x11a)]-0x1,_0x521d2c;_0x31cf91>=0x0;_0x31cf91--)(_0x521d2c=_0x2bc867[_0x31cf91])&&(_0x2fc581=_0x521d2c(_0x2fc581)||_0x2fc581);return _0x2fc581;},_0x405d2e=(_0x32c534,_0x169538)=>(_0x270846,_0x4006f5)=>_0x169538(_0x270846,_0x4006f5,_0x32c534);let _0x1e580c=class extends _0x34f908[_0x962b26(0x109)]{constructor(_0x47e43b){const _0x224075=_0x962b26;super(),this[_0x224075(0x176)]=_0x47e43b,this[_0x224075(0xfd)]();}['_init'](){const _0x50e9ee=_0x962b26;[_0x1661c8['SetZoomRatioOperation']['id'],_0x1661c8['SetScrollOperation']['id'],_0x1aef0b['SetWorksheetActiveOperation']['id']][_0x50e9ee(0x131)](_0x5a8043=>{const _0x1cebbf=_0x50e9ee;this[_0x1cebbf(0x12b)](this[_0x1cebbf(0x176)][_0x1cebbf(0x16c)](_0x5a8043));});}};_0x1e580c=_0x59d2a6([_0x405d2e(0x0,_0x34f908[_0x962b26(0x119)](_0xa8cdd))],_0x1e580c);var _0x29f613=Object[_0x962b26(0x19a)],_0x2c88cd=Object['getOwnPropertyDescriptor'],_0x46c276=(_0x4276aa,_0x1b3e50,_0x205c65)=>_0x1b3e50 in _0x4276aa?_0x29f613(_0x4276aa,_0x1b3e50,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x205c65}):_0x4276aa[_0x1b3e50]=_0x205c65,_0x2bcb16=(_0x3768e8,_0x5ef6a8,_0x4c1379,_0x5734d3)=>{const _0x3b32e4=_0x962b26;for(var _0x430a74=_0x5734d3>0x1?void 0x0:_0x5734d3?_0x2c88cd(_0x5ef6a8,_0x4c1379):_0x5ef6a8,_0x565322=_0x3768e8[_0x3b32e4(0x11a)]-0x1,_0x5138a3;_0x565322>=0x0;_0x565322--)(_0x5138a3=_0x3768e8[_0x565322])&&(_0x430a74=_0x5138a3(_0x430a74)||_0x430a74);return _0x430a74;},_0x27db3b=(_0x29d035,_0x10e428)=>(_0x51b2db,_0x204f0a)=>_0x10e428(_0x51b2db,_0x204f0a,_0x29d035),_0x12d3a3=(_0x304c1c,_0x2dec14,_0x52d5e2)=>_0x46c276(_0x304c1c,typeof _0x2dec14!='symbol'?_0x2dec14+'':_0x2dec14,_0x52d5e2);const _0x13b69d='UNIVER_LIVE_SHARE_PLUGIN';_0x25a97d[_0x962b26(0x1b8)]=class extends _0x34f908['Plugin']{constructor(_0x169540=_0x43f128,_0xf97f66,_0x5c4a59){const _0x14df53=_0x962b26;super(),this[_0x14df53(0x153)]=_0x169540,this['_injector']=_0xf97f66,this[_0x14df53(0x172)]=_0x5c4a59;const {..._0x4017ad}=_0x34f908[_0x14df53(0x17e)]({},_0x43f128,this['_config']);this[_0x14df53(0x172)][_0x14df53(0x191)](_0x57aa68,_0x4017ad);}['onStarting'](){const _0x532ffe=_0x962b26;_0x34f908[_0x532ffe(0x170)](this[_0x532ffe(0xe5)],_0x34f908[_0x532ffe(0x105)]([[_0xa8cdd],[_0x25a97d[_0x532ffe(0x130)]],[_0x1e580c],[_0x25a97d[_0x532ffe(0x15c)]]],this[_0x532ffe(0x153)][_0x532ffe(0x13f)])),_0x34f908['touchDependencies'](this[_0x532ffe(0xe5)],[[_0x1e580c]]);}[_0x962b26(0x187)](){const _0x174ecb=_0x962b26;_0x34f908[_0x174ecb(0x186)](this['_injector'],[[_0x25a97d[_0x174ecb(0x15c)]]]);}},_0x12d3a3(_0x25a97d[_0x962b26(0x1b8)],'type',_0x34f908[_0x962b26(0x183)][_0x962b26(0x17c)]),_0x12d3a3(_0x25a97d[_0x962b26(0x1b8)],_0x962b26(0x152),_0x13b69d),_0x25a97d[_0x962b26(0x1b8)]=_0x2bcb16([_0x34f908[_0x962b26(0x185)](_0x3bbabe[_0x962b26(0x188)]),_0x27db3b(0x1,_0x34f908[_0x962b26(0x119)](_0x34f908[_0x962b26(0x129)])),_0x27db3b(0x2,_0x34f908['IConfigService'])],_0x25a97d['UniverLiveSharePlugin']),_0x25a97d[_0x962b26(0x195)]=_0x548691,_0x25a97d['LiveShareService']=_0xa8cdd,_0x25a97d[_0x962b26(0x101)]=_0x320925,Object[_0x962b26(0x19a)](_0x25a97d,Symbol[_0x962b26(0x163)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.14",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.10.
|
|
61
|
-
"@univerjs
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration-client": "0.10.14",
|
|
61
|
+
"@univerjs/core": "0.10.14",
|
|
62
|
+
"@univerjs/sheets": "0.10.14",
|
|
63
|
+
"@univerjs-pro/collaboration": "0.10.14",
|
|
64
|
+
"@univerjs/ui": "0.10.14",
|
|
65
|
+
"@univerjs/sheets-ui": "0.10.14",
|
|
66
|
+
"@univerjs/design": "0.10.14",
|
|
67
|
+
"@univerjs/engine-render": "0.10.14"
|
|
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.1.
|
|
75
|
+
"vite": "^7.1.12",
|
|
76
76
|
"vitest": "^3.2.4",
|
|
77
|
-
"@univerjs-infra/shared": "0.10.
|
|
78
|
-
"@univerjs/protocol": "0.1.47
|
|
77
|
+
"@univerjs-infra/shared": "0.10.14",
|
|
78
|
+
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|