@univerjs-pro/live-share 1.0.0-alpha.1 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x53a0(){const _0x503908=['getLiveShareStatus','4359330REXgxQ','getUnitId','default','LiveShareController','6426xXexfu','extend','startFollowing','_injector','UniverInstanceType','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_liveShareController','33995lGLUGt','symbol','FUniver','LiveShareStatusEnum','constructor','1200456ZOOuch','5oAZdPe','FEnum','IDLE','3654840TfJxbA','getLiveShareCoordinatorSync','18zqPIzj','toPrimitive','stopFollowing','11ZCAjsx','UNIVER_SHEET','iterator','8dapemb','3RFZlgA','IUniverInstanceService','get','function','LiveShareStatus','stopPresenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','defineProperty','9286280QBcbaz','prototype','5298808yAPncS','No\x20active\x20workbook\x20found.','getCurrentUnitOfType','139468RnaxKY','14GgVeiJ'];_0x53a0=function(){return _0x503908;};return _0x53a0();}const _0x221662=_0x11db;(function(_0xb9c919,_0x27b7d6){const _0x182b8b=_0x11db,_0x4dcf51=_0xb9c919();while(!![]){try{const _0x548725=-parseInt(_0x182b8b(0x1e2))/0x1*(-parseInt(_0x182b8b(0x1d4))/0x2)+-parseInt(_0x182b8b(0x1d5))/0x3*(parseInt(_0x182b8b(0x1f5))/0x4)+-parseInt(_0x182b8b(0x1f6))/0x5*(parseInt(_0x182b8b(0x1e5))/0x6)+parseInt(_0x182b8b(0x1e3))/0x7*(-parseInt(_0x182b8b(0x1df))/0x8)+-parseInt(_0x182b8b(0x1ce))/0x9*(-parseInt(_0x182b8b(0x1dd))/0xa)+parseInt(_0x182b8b(0x1d1))/0xb*(-parseInt(_0x182b8b(0x1f9))/0xc)+parseInt(_0x182b8b(0x1f0))/0xd*(parseInt(_0x182b8b(0x1e9))/0xe);if(_0x548725===_0x27b7d6)break;else _0x4dcf51['push'](_0x4dcf51['shift']());}catch(_0x3c2b59){_0x4dcf51['push'](_0x4dcf51['shift']());}}}(_0x53a0,0xea3f0));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x586f0c){'@babel/helpers - typeof';const _0x595db0=_0x11db;return r=typeof Symbol==_0x595db0(0x1d8)&&typeof Symbol[_0x595db0(0x1d3)]==_0x595db0(0x1f1)?function(_0x5cc7b7){return typeof _0x5cc7b7;}:function(_0x1e27ce){const _0x5b61a7=_0x595db0;return _0x1e27ce&&typeof Symbol==_0x5b61a7(0x1d8)&&_0x1e27ce[_0x5b61a7(0x1f4)]===Symbol&&_0x1e27ce!==Symbol[_0x5b61a7(0x1de)]?_0x5b61a7(0x1f1):typeof _0x1e27ce;},r(_0x586f0c);}function i(_0x19614e,_0x233f40){const _0x5c9106=_0x11db;if(r(_0x19614e)!='object'||!_0x19614e)return _0x19614e;var _0x4a9276=_0x19614e[Symbol[_0x5c9106(0x1cf)]];if(_0x4a9276!==void 0x0){var _0x14ee37=_0x4a9276['call'](_0x19614e,_0x233f40||_0x5c9106(0x1e7));if(r(_0x14ee37)!='object')return _0x14ee37;throw TypeError(_0x5c9106(0x1db));}return(_0x233f40==='string'?String:Number)(_0x19614e);}function a(_0x44097d){var _0x4c9311=i(_0x44097d,'string');return r(_0x4c9311)=='symbol'?_0x4c9311:_0x4c9311+'';}function o(_0x17a8e7,_0x854bc5,_0x23b968){const _0x1a6809=_0x11db;return(_0x854bc5=a(_0x854bc5))in _0x17a8e7?Object[_0x1a6809(0x1dc)](_0x17a8e7,_0x854bc5,{'value':_0x23b968,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x17a8e7[_0x854bc5]=_0x23b968,_0x17a8e7;}var s=class extends n[_0x221662(0x1f2)]{constructor(..._0x4784dc){const _0x4c9ea2=_0x221662;super(..._0x4784dc),o(this,_0x4c9ea2(0x1ef),void 0x0);}['_initialize'](_0x480c30){const _0x105a5b=_0x221662;this[_0x105a5b(0x1ef)]=_0x480c30[_0x105a5b(0x1d7)](e[_0x105a5b(0x1e8)]);}[_0x221662(0x1e4)](){const _0x41badb=_0x221662;var _0x3c413d;let _0x211c2c=this['_injector'][_0x41badb(0x1d7)](t['IUniverInstanceService'])[_0x41badb(0x1e1)](t['UniverInstanceType'][_0x41badb(0x1d2)]);if(!_0x211c2c)throw Error(_0x41badb(0x1e0));let _0x3c3142=_0x211c2c[_0x41badb(0x1e6)](),_0x2c7ca3=this[_0x41badb(0x1ef)][_0x41badb(0x1fa)](_0x3c3142);return(_0x3c413d=_0x2c7ca3==null?void 0x0:_0x2c7ca3['getStatus']())==null?e[_0x41badb(0x1d9)][_0x41badb(0x1f8)]:_0x3c413d;}[_0x221662(0x1eb)](){const _0x53a23f=_0x221662;let _0x13391e=this[_0x53a23f(0x1ec)][_0x53a23f(0x1d7)](t['IUniverInstanceService'])[_0x53a23f(0x1e1)](t['UniverInstanceType'][_0x53a23f(0x1d2)]);if(!_0x13391e)throw Error(_0x53a23f(0x1e0));let _0x5e8a93=_0x13391e[_0x53a23f(0x1e6)](),_0x5c4042=this[_0x53a23f(0x1ef)]['getLiveShareCoordinatorSync'](_0x5e8a93);if(!_0x5c4042)throw Error(_0x53a23f(0x1ee));_0x5c4042[_0x53a23f(0x1eb)]();}[_0x221662(0x1d0)](){const _0x340415=_0x221662;let _0x40aa2f=this[_0x340415(0x1ec)][_0x340415(0x1d7)](t[_0x340415(0x1d6)])[_0x340415(0x1e1)](t[_0x340415(0x1ed)]['UNIVER_SHEET']);if(!_0x40aa2f)throw Error(_0x340415(0x1e0));let _0x35a179=_0x40aa2f[_0x340415(0x1e6)](),_0xb427f0=this[_0x340415(0x1ef)][_0x340415(0x1fa)](_0x35a179);if(!_0xb427f0)throw Error(_0x340415(0x1ee));_0xb427f0[_0x340415(0x1d0)]();}['startPresenting'](){const _0x42b1db=_0x221662;let _0x38d478=this[_0x42b1db(0x1ec)][_0x42b1db(0x1d7)](t[_0x42b1db(0x1d6)])['getCurrentUnitOfType'](t[_0x42b1db(0x1ed)]['UNIVER_SHEET']);if(!_0x38d478)throw Error(_0x42b1db(0x1e0));let _0x3eefe6=_0x38d478[_0x42b1db(0x1e6)](),_0x54cc62=this[_0x42b1db(0x1ef)][_0x42b1db(0x1fa)](_0x3eefe6);if(!_0x54cc62)throw Error(_0x42b1db(0x1ee));_0x54cc62['tryStartPresenting']();}['stopPresenting'](){const _0x485951=_0x221662;let _0x102c01=this[_0x485951(0x1ec)][_0x485951(0x1d7)](t['IUniverInstanceService'])[_0x485951(0x1e1)](t[_0x485951(0x1ed)][_0x485951(0x1d2)]);if(!_0x102c01)throw Error(_0x485951(0x1e0));let _0x12fe3f=_0x102c01[_0x485951(0x1e6)](),_0x49e4fa=this['_liveShareController'][_0x485951(0x1fa)](_0x12fe3f);if(!_0x49e4fa)throw Error(_0x485951(0x1ee));_0x49e4fa[_0x485951(0x1da)]();}};n['FUniver']['extend'](s);function _0x11db(_0x1a2217,_0x3f527a){_0x1a2217=_0x1a2217-0x1ce;const _0x53a01e=_0x53a0();let _0x11dbc5=_0x53a01e[_0x1a2217];return _0x11dbc5;}var c=class extends n[_0x221662(0x1f7)]{get[_0x221662(0x1f3)](){const _0x3d182b=_0x221662;return e[_0x3d182b(0x1d9)];}};n[_0x221662(0x1f7)][_0x221662(0x1ea)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5d5271=_0x4057;(function(_0x369080,_0x1752f9){const _0xd09079=_0x4057,_0x13efb5=_0x369080();while(!![]){try{const _0x5e6c55=-parseInt(_0xd09079(0x267))/0x1*(parseInt(_0xd09079(0x29e))/0x2)+parseInt(_0xd09079(0x289))/0x3*(-parseInt(_0xd09079(0x1ea))/0x4)+parseInt(_0xd09079(0x262))/0x5+parseInt(_0xd09079(0x25e))/0x6+parseInt(_0xd09079(0x1f1))/0x7+-parseInt(_0xd09079(0x24a))/0x8*(parseInt(_0xd09079(0x21b))/0x9)+-parseInt(_0xd09079(0x22d))/0xa*(-parseInt(_0xd09079(0x21d))/0xb);if(_0x5e6c55===_0x1752f9)break;else _0x13efb5['push'](_0x13efb5['shift']());}catch(_0x23a9ab){_0x13efb5['push'](_0x13efb5['shift']());}}}(_0x13f4,0x80eae),Object[_0x5d5271(0x279)](exports,Symbol[_0x5d5271(0x28c)],{'value':'Module'}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/ui'),s=require('@univerjs/design'),c=require('@univerjs/icons'),l=require('react'),u=require('react/jsx-runtime'),d=require('@univerjs/sheets-ui');function f(_0x194457){'@babel/helpers - typeof';const _0x5df084=_0x5d5271;return f=typeof Symbol==_0x5df084(0x25c)&&typeof Symbol[_0x5df084(0x27a)]=='symbol'?function(_0x96250e){return typeof _0x96250e;}:function(_0x506273){const _0x1333d5=_0x5df084;return _0x506273&&typeof Symbol=='function'&&_0x506273[_0x1333d5(0x243)]===Symbol&&_0x506273!==Symbol[_0x1333d5(0x225)]?'symbol':typeof _0x506273;},f(_0x194457);}function _0x13f4(){const _0x584edf=['object','next','UniverCollaborationClientPlugin','_fetchOperations','idle','OPERATION','SetZoomRatioOperation','LiveShare','Plugin','reverse','find','_collabSessionService','_collabSession','constructor','decorate','_entities','presenting','get','CollaborationEvent','disposeWithMe','8sodfIV','sheet','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ONLINE','asObservable','version','_handleNewHost','getTypeOfUnitDisposed$','not-following','_univerInstanceService','getOwnPropertyDescriptor','Inject','tryStartPresenting','_reporters','IUIPartsService','_mountLiveShare','jsxs','_stopPresenting','function','_config','2148528hKrhEq','useObservable','unsubscribe','set','4111760nGiXoq','shouldShareOperation','UniverInstanceType','getLiveShareCoordinator','call','58eytDTN','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','Subject','Disposable','parseProtocolChangeset','merge','end','pipe','offline','Present\x20this\x20document','button','BuiltInUIPart','event$','useDependency','_stopFollowing','stopPresenting','delete','params','defineProperty','iterator','sessionStatus$','onStarting','_sharedOperations','_handleOnline','_startPresenting','RxDisposable','override','_status$','NOT_FOLLOWING','univer-mb-3\x20univer-w-full\x20univer-text-sm','getStatus','_startFollowing','init','stopFollowing','2199YTfbrG','setConfig','UniverLiveSharePlugin','toStringTag','1.0.0-alpha.1','_liveShareService','throttleTime','LIVESHARE_REQUEST_HOST','IUniverInstanceService','forEach','Injector','add','parse','values','div','onCommandExecuted','_unitID','SetWorksheetActiveOperation','registerDependencies','text','live-share.config','15356HnKFoj','type','LiveShareService','useState','_handleTerminate','SessionStatus','mutations','Button','touchDependencies','InsertSheetMutation','You\x27re\x20presenting\x20the\x20document','1444FTmnxW','getConfig','toDisposable','presenter','getInitialStates','takeUntil','_startLiveShareCoordinator','5647271COhgJS','getCurrentTypeOfUnit$','_uiPartsService','You\x27re\x20following\x20the\x20presenter','mergeOverrideWithDependencies','unitId','_commandService','OFFLINE','IConfigService','following','jsx','_handleOffline','useRef','current','dispose','startFollowing','then','LIVESHARE_FETCH_OPERATIONS','getValue','_beIdle','onRendered','Fragment','_configService','getMemberID','_presenter','Start','CollaborationSessionService','getLiveShareCoordinatorSync','registerComponent','Stop\x20following','status$','default','_handleOperation','send','_commandDisposable','UNIVER_SHEET','getTypeOfUnitAdded$','CommandType','subscribe','@univerjs-pro/live-share','FOLLOWING','from','9225558ZPFzDG','length','11LNIpOp','unit','getUnitId','DesktopLiveShareController','_init','_status','symbol','pluginName','prototype','SAME_OPERATION_SHARE_INTERVAL','string','clear','stringify','data','SetScrollOperation','UNIVER_LIVE_SHARE_PLUGIN','2758520dxXuLK','_handleNewChangeSets','DependentOn','has','complete','subject','dispose$','_injector','LIVESHARE_OPERATION'];_0x13f4=function(){return _0x584edf;};return _0x13f4();}function p(_0x2fdce6,_0x21ff04){const _0x170206=_0x5d5271;if(f(_0x2fdce6)!=_0x170206(0x236)||!_0x2fdce6)return _0x2fdce6;var _0x298911=_0x2fdce6[Symbol['toPrimitive']];if(_0x298911!==void 0x0){var _0x4eb140=_0x298911[_0x170206(0x266)](_0x2fdce6,_0x21ff04||'default');if(f(_0x4eb140)!=_0x170206(0x236))return _0x4eb140;throw TypeError(_0x170206(0x24c));}return(_0x21ff04===_0x170206(0x227)?String:Number)(_0x2fdce6);}function m(_0x27d1e1){const _0x1e32e6=_0x5d5271;var _0x5806c6=p(_0x27d1e1,_0x1e32e6(0x227));return f(_0x5806c6)==_0x1e32e6(0x223)?_0x5806c6:_0x5806c6+'';}function h(_0x21a868,_0x24285b,_0x276ae5){return(_0x24285b=m(_0x24285b))in _0x21a868?Object['defineProperty'](_0x21a868,_0x24285b,{'value':_0x276ae5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x21a868[_0x24285b]=_0x276ae5,_0x21a868;}var g=class extends n[_0x5d5271(0x26a)]{constructor(..._0x105410){const _0x56e94f=_0x5d5271;super(..._0x105410),h(this,_0x56e94f(0x27d),new Set()),h(this,_0x56e94f(0x257),new Set());}['registerSharedOperation'](_0x51c3a5){const _0x3b752b=_0x5d5271;return this[_0x3b752b(0x27d)][_0x3b752b(0x294)](_0x51c3a5),(0x0,n[_0x3b752b(0x1ec)])(()=>this[_0x3b752b(0x27d)][_0x3b752b(0x277)](_0x51c3a5));}['registerInitialStateReporter'](_0x440b98){const _0xcbc6fa=_0x5d5271;return this[_0xcbc6fa(0x257)][_0xcbc6fa(0x294)](_0x440b98),(0x0,n[_0xcbc6fa(0x1ec)])(()=>this['_reporters']['delete'](_0x440b98));}[_0x5d5271(0x263)](_0x4704b1){const _0x299632=_0x5d5271;return this[_0x299632(0x27d)][_0x299632(0x230)](_0x4704b1);}[_0x5d5271(0x1ee)](_0x228d4f){const _0x49a90b=_0x5d5271;return Array[_0x49a90b(0x21a)](this[_0x49a90b(0x257)])['map'](_0xe1cdfa=>_0xe1cdfa(_0x228d4f));}};function _(_0x5f37da,_0x181597){return function(_0x6ad20f,_0x4838d2){_0x181597(_0x6ad20f,_0x4838d2,_0x5f37da);};}function v(_0x562ed3,_0x3fffbe,_0x5922a4,_0x2f3da2){const _0x2843e5=_0x5d5271;var _0x2fb42a=arguments[_0x2843e5(0x21c)],_0x2689f9=_0x2fb42a<0x3?_0x3fffbe:_0x2f3da2===null?_0x2f3da2=Object[_0x2843e5(0x254)](_0x3fffbe,_0x5922a4):_0x2f3da2,_0x1af31f;if(typeof Reflect=='object'&&typeof Reflect[_0x2843e5(0x244)]==_0x2843e5(0x25c))_0x2689f9=Reflect[_0x2843e5(0x244)](_0x562ed3,_0x3fffbe,_0x5922a4,_0x2f3da2);else{for(var _0x3471e4=_0x562ed3[_0x2843e5(0x21c)]-0x1;_0x3471e4>=0x0;_0x3471e4--)(_0x1af31f=_0x562ed3[_0x3471e4])&&(_0x2689f9=(_0x2fb42a<0x3?_0x1af31f(_0x2689f9):_0x2fb42a>0x3?_0x1af31f(_0x3fffbe,_0x5922a4,_0x2689f9):_0x1af31f(_0x3fffbe,_0x5922a4))||_0x2689f9);}return _0x2fb42a>0x3&&_0x2689f9&&Object[_0x2843e5(0x279)](_0x3fffbe,_0x5922a4,_0x2689f9),_0x2689f9;}let y=class extends n[_0x5d5271(0x280)]{constructor(_0x13a35b,_0x402c22,_0x29ab51){const _0x48d13c=_0x5d5271;super(),this[_0x48d13c(0x253)]=_0x13a35b,this['_injector']=_0x402c22,this[_0x48d13c(0x241)]=_0x29ab51,h(this,_0x48d13c(0x245),new Map()),this['_init']();}async[_0x5d5271(0x265)](_0x4a9a33){const _0x313b95=_0x5d5271;return this[_0x313b95(0x245)][_0x313b95(0x230)](_0x4a9a33)||await this['_startLiveShareCoordinator'](_0x4a9a33),this[_0x313b95(0x245)][_0x313b95(0x247)](_0x4a9a33);}[_0x5d5271(0x20c)](_0x130dd2){const _0x431821=_0x5d5271;var _0x20f069;return(_0x20f069=this[_0x431821(0x245)][_0x431821(0x247)](_0x130dd2))==null?null:_0x20f069;}[_0x5d5271(0x221)](){const _0x36a387=_0x5d5271;this[_0x36a387(0x253)][_0x36a387(0x215)](n['UniverInstanceType'][_0x36a387(0x214)])[_0x36a387(0x26e)]((0x0,a[_0x36a387(0x1ef)])(this['dispose$']))[_0x36a387(0x217)](async _0x351c09=>{const _0x36c060=_0x36a387;let _0x29c1bc=_0x351c09[_0x36c060(0x21e)][_0x36c060(0x21f)]();this[_0x36c060(0x245)][_0x36c060(0x230)](_0x29c1bc)||this[_0x36c060(0x1f0)](_0x29c1bc);}),this[_0x36a387(0x253)][_0x36a387(0x251)](n[_0x36a387(0x264)][_0x36a387(0x214)])['pipe']((0x0,a['takeUntil'])(this[_0x36a387(0x233)]))[_0x36a387(0x217)](_0x3fc093=>{const _0x2eaec3=_0x36a387;let _0x4e5ae0=_0x3fc093[_0x2eaec3(0x21f)](),_0x52ce84=this[_0x2eaec3(0x245)][_0x2eaec3(0x247)](_0x4e5ae0);_0x52ce84==null||_0x52ce84[_0x2eaec3(0x1ff)]();});}async[_0x5d5271(0x1f0)](_0x57a4b4){const _0x5af126=_0x5d5271;let _0x4bbbed=await this['_collabSessionService']['requireSession'](_0x57a4b4),_0x5b90f7=this[_0x5af126(0x234)]['createInstance'](x,_0x57a4b4,_0x4bbbed);return _0x5b90f7[_0x5af126(0x287)](),this['_entities']['set'](_0x57a4b4,_0x5b90f7),_0x5b90f7;}};y=v([_(0x0,n[_0x5d5271(0x291)]),_(0x1,(0x0,n['Inject'])(n[_0x5d5271(0x293)])),_(0x2,(0x0,n[_0x5d5271(0x255)])(t[_0x5d5271(0x20b)]))],y);let b=function(_0x197304){const _0x1e7561=_0x5d5271;return _0x197304[_0x1e7561(0x1f8)]=_0x1e7561(0x26f),_0x197304['IDLE']=_0x1e7561(0x23a),_0x197304[_0x1e7561(0x219)]=_0x1e7561(0x1fa),_0x197304[_0x1e7561(0x283)]=_0x1e7561(0x252),_0x197304['PRESENTING']=_0x1e7561(0x246),_0x197304;}({}),x=class extends n[_0x5d5271(0x280)]{get[_0x5d5271(0x222)](){const _0x556443=_0x5d5271;return this[_0x556443(0x282)][_0x556443(0x203)]();}constructor(_0x259086,_0x485b15,_0x2c05e3,_0x33f08b,_0x17adc3){const _0x5b6ae5=_0x5d5271;super(),this['_unitID']=_0x259086,this[_0x5b6ae5(0x242)]=_0x485b15,this['_configService']=_0x2c05e3,this[_0x5b6ae5(0x28e)]=_0x33f08b,this['_commandService']=_0x17adc3,h(this,'_status$',new i['BehaviorSubject'](_0x5b6ae5(0x23a))),h(this,_0x5b6ae5(0x20f),this[_0x5b6ae5(0x282)][_0x5b6ae5(0x24e)]()),h(this,_0x5b6ae5(0x221),!0x1),h(this,'_commandDisposable',null),h(this,'_presenter',null);}['dispose'](){const _0x462b6f=_0x5d5271;var _0x8b748;(_0x8b748=this[_0x462b6f(0x213)])==null||_0x8b748[_0x462b6f(0x1ff)](),this[_0x462b6f(0x282)][_0x462b6f(0x237)]('idle'),this['_status$'][_0x462b6f(0x231)]();}[_0x5d5271(0x285)](){const _0xa2e7c=_0x5d5271;return this[_0xa2e7c(0x222)];}[_0x5d5271(0x287)](){const _0x52e16e=_0x5d5271;this[_0x52e16e(0x221)]||(this[_0x52e16e(0x221)]=!0x0,this[_0x52e16e(0x242)][_0x52e16e(0x27b)]['pipe']((0x0,a['takeUntil'])(this[_0x52e16e(0x233)]))[_0x52e16e(0x217)](_0x3a6f4d=>{const _0x5d8f22=_0x52e16e;switch(_0x3a6f4d){case t[_0x5d8f22(0x1e4)][_0x5d8f22(0x1f8)]:this[_0x5d8f22(0x1fc)]();break;case t[_0x5d8f22(0x1e4)][_0x5d8f22(0x24d)]:this[_0x5d8f22(0x27e)]();break;default:}}),this[_0x52e16e(0x242)][_0x52e16e(0x273)]['pipe']((0x0,a['takeUntil'])(this[_0x52e16e(0x233)]))[_0x52e16e(0x217)](_0x1c6982=>{const _0x2f19d1=_0x52e16e;let {eventID:_0x480419}=_0x1c6982;switch(_0x480419){case e[_0x2f19d1(0x248)]['LIVESHARE_NEW_HOST']:this[_0x2f19d1(0x250)](_0x1c6982);break;case e[_0x2f19d1(0x248)][_0x2f19d1(0x235)]:this[_0x2f19d1(0x211)](_0x1c6982);break;case e[_0x2f19d1(0x248)]['LIVESHARE_TERMINATE']:this[_0x2f19d1(0x2a2)]();break;case e[_0x2f19d1(0x248)]['NEW_CHANGESETS']:this[_0x2f19d1(0x22e)](_0x1c6982);break;default:}}));}[_0x5d5271(0x256)](){const _0x591ee5=_0x5d5271;this[_0x591ee5(0x242)]['send']({'eventID':e[_0x591ee5(0x248)][_0x591ee5(0x290)],'data':{'unitID':this[_0x591ee5(0x299)],'userID':this[_0x591ee5(0x242)]['getMemberID']()}},this['_unitID']);}[_0x5d5271(0x276)](){const _0x52d099=_0x5d5271;this[_0x52d099(0x222)]===_0x52d099(0x246)&&(this['_status$']['next'](_0x52d099(0x23a)),this['_collabSession']['send']({'eventID':e[_0x52d099(0x248)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x52d099(0x299)]}},this[_0x52d099(0x299)]));}[_0x5d5271(0x200)](){const _0x2c149f=_0x5d5271;this[_0x2c149f(0x222)]===_0x2c149f(0x252)&&(this[_0x2c149f(0x282)]['next'](_0x2c149f(0x1fa)),this[_0x2c149f(0x286)]());}['stopFollowing'](){const _0x11d114=_0x5d5271;this[_0x11d114(0x222)]===_0x11d114(0x1fa)&&this[_0x11d114(0x275)]();}[_0x5d5271(0x250)](_0x3537ec){const _0x1bf8e3=_0x5d5271;let {presenter:_0x2ab7b2}=_0x3537ec['data'],_0x2d43a4=this[_0x1bf8e3(0x242)][_0x1bf8e3(0x208)]();this[_0x1bf8e3(0x209)]=_0x2ab7b2,_0x2ab7b2===_0x2d43a4?(this[_0x1bf8e3(0x275)](),this[_0x1bf8e3(0x27f)]()):this[_0x1bf8e3(0x222)]!=='not-following'&&(this[_0x1bf8e3(0x25b)](),this[_0x1bf8e3(0x286)]());}[_0x5d5271(0x239)](){const _0x4ebbdf=_0x5d5271;let _0x24251c={'eventID':e[_0x4ebbdf(0x248)][_0x4ebbdf(0x202)]};this[_0x4ebbdf(0x242)][_0x4ebbdf(0x212)](_0x24251c,this[_0x4ebbdf(0x299)]);}[_0x5d5271(0x2a2)](){const _0x5151f7=_0x5d5271;this['_presenter']=null,this[_0x5151f7(0x222)]!==_0x5151f7(0x246)&&this[_0x5151f7(0x204)]();}['_handleNewChangeSets'](_0x46e747){const _0x18b3c0=_0x5d5271;if(this[_0x18b3c0(0x222)]===_0x18b3c0(0x1fa)&&this[_0x18b3c0(0x209)]===_0x46e747['data']['memberID']){let _0x3569f0=(0x0,e[_0x18b3c0(0x26b)])(_0x46e747[_0x18b3c0(0x22a)])[_0x18b3c0(0x1e5)][_0x18b3c0(0x23f)]()[_0x18b3c0(0x240)](_0x553fa8=>_0x553fa8['id']===r[_0x18b3c0(0x1e8)]['id']);if(_0x3569f0){let _0x52f60d=_0x3569f0['params'][_0x18b3c0(0x1f6)],_0x20f850=_0x3569f0[_0x18b3c0(0x278)][_0x18b3c0(0x24b)]['id'];setTimeout(()=>{const _0x48010d=_0x18b3c0;this[_0x48010d(0x1f7)]['executeCommand'](r['SetWorksheetActiveOperation']['id'],{'unitId':_0x52f60d,'subUnitId':_0x20f850},{'fromCollab':!0x0});});}}}[_0x5d5271(0x27f)](){const _0x1268f6=_0x5d5271;var _0x532116;(_0x532116=this[_0x1268f6(0x213)])==null||_0x532116[_0x1268f6(0x1ff)](),this[_0x1268f6(0x282)]['next'](_0x1268f6(0x246));let _0x178ffb=new Map(),_0x15e078=this[_0x1268f6(0x213)]=new n['DisposableCollection']();_0x15e078[_0x1268f6(0x294)]((0x0,n['toDisposable'])(()=>{const _0x26cddd=_0x1268f6;_0x178ffb['forEach'](({subject:_0x39d523,subscription:_0x9e1abc})=>{const _0x34dda8=_0x4057;_0x9e1abc[_0x34dda8(0x260)](),_0x39d523['complete']();}),_0x178ffb[_0x26cddd(0x228)]();})),_0x15e078[_0x1268f6(0x294)](this['_commandService'][_0x1268f6(0x298)](_0x685b17=>{const _0x2860bd=_0x1268f6;if(_0x685b17[_0x2860bd(0x29f)]!==n[_0x2860bd(0x216)][_0x2860bd(0x23b)]||!this['_liveShareService']['shouldShareOperation'](_0x685b17['id']))return;let {id:_0x53da3f}=_0x685b17,_0xba65f3;if(_0x178ffb[_0x2860bd(0x230)](_0x53da3f))_0xba65f3=_0x178ffb[_0x2860bd(0x247)](_0x53da3f)[_0x2860bd(0x232)];else{var _0x2a014d;_0xba65f3=new i[(_0x2860bd(0x269))]();let _0x388129=_0xba65f3[_0x2860bd(0x26e)]((0x0,a[_0x2860bd(0x28f)])((_0x2a014d=this[_0x2860bd(0x207)][_0x2860bd(0x1eb)](_0x2860bd(0x226)))==null?0xc8:_0x2a014d,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3f3da2=>{const _0x515756=_0x2860bd;this[_0x515756(0x242)]['send']({'eventID':e['CollaborationEvent'][_0x515756(0x235)],'data':{'unitID':this[_0x515756(0x299)],'operations':{[_0x3f3da2['id']]:{'id':_0x3f3da2['id'],'params':JSON[_0x515756(0x229)](_0x3f3da2[_0x515756(0x278)])}}}},this[_0x515756(0x299)]);});_0x178ffb[_0x2860bd(0x261)](_0x53da3f,{'subject':_0xba65f3,'subscription':_0x388129});}_0xba65f3[_0x2860bd(0x237)](_0x685b17);})),this[_0x1268f6(0x28e)][_0x1268f6(0x1ee)](this['_unitID'])[_0x1268f6(0x292)](_0x7d7014=>this[_0x1268f6(0x242)][_0x1268f6(0x212)]({'eventID':e[_0x1268f6(0x248)][_0x1268f6(0x235)],'data':{'unitID':this[_0x1268f6(0x299)],'operations':{[_0x7d7014['id']]:{'id':_0x7d7014['id'],'params':JSON[_0x1268f6(0x229)](_0x7d7014[_0x1268f6(0x278)])}}}},this[_0x1268f6(0x299)]));}[_0x5d5271(0x25b)](){const _0x15e883=_0x5d5271;var _0x3fa4c8;this[_0x15e883(0x282)][_0x15e883(0x237)](_0x15e883(0x23a)),(_0x3fa4c8=this['_commandDisposable'])==null||_0x3fa4c8[_0x15e883(0x1ff)](),this[_0x15e883(0x213)]=null;}[_0x5d5271(0x286)](){const _0x12c89d=_0x5d5271;var _0x1fb638;(_0x1fb638=this[_0x12c89d(0x213)])==null||_0x1fb638[_0x12c89d(0x1ff)](),this[_0x12c89d(0x282)][_0x12c89d(0x237)](_0x12c89d(0x1fa));}[_0x5d5271(0x204)](){const _0x15e7af=_0x5d5271;var _0x28285b;this[_0x15e7af(0x282)][_0x15e7af(0x237)]('idle'),(_0x28285b=this[_0x15e7af(0x213)])==null||_0x28285b[_0x15e7af(0x1ff)](),this[_0x15e7af(0x213)]=null;}['_stopFollowing'](){const _0x53b4a4=_0x5d5271;var _0x9ad4ea;this['_status$'][_0x53b4a4(0x237)](_0x53b4a4(0x252)),(_0x9ad4ea=this[_0x53b4a4(0x213)])==null||_0x9ad4ea[_0x53b4a4(0x1ff)]();}[_0x5d5271(0x211)](_0x5b09d4){const _0x2bb1bf=_0x5d5271;if([_0x2bb1bf(0x246),'not-following',_0x2bb1bf(0x26f)]['includes'](this['_status'])||!_0x5b09d4[_0x2bb1bf(0x22a)][_0x2bb1bf(0x1ed)]||_0x5b09d4[_0x2bb1bf(0x22a)]['presenter']===this[_0x2bb1bf(0x242)][_0x2bb1bf(0x208)]())return;this[_0x2bb1bf(0x222)]==='idle'&&this[_0x2bb1bf(0x286)]();let _0x253df6=_0x5b09d4[_0x2bb1bf(0x22a)]['operations'];Object[_0x2bb1bf(0x296)](_0x253df6)['forEach'](_0x3cdb07=>{const _0xb062db=_0x2bb1bf;this[_0xb062db(0x1f7)]['executeCommand'](_0x3cdb07['id'],_0x3cdb07[_0xb062db(0x278)]?JSON[_0xb062db(0x295)](_0x3cdb07[_0xb062db(0x278)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x56d5fe=_0x5d5271;var _0x3a0f62;this[_0x56d5fe(0x282)][_0x56d5fe(0x237)]('offline'),(_0x3a0f62=this[_0x56d5fe(0x213)])==null||_0x3a0f62[_0x56d5fe(0x1ff)]();}[_0x5d5271(0x27e)](){const _0x3a5001=_0x5d5271;this[_0x3a5001(0x282)][_0x3a5001(0x237)]('idle'),this[_0x3a5001(0x239)]();}};x=v([_(0x2,n[_0x5d5271(0x1f9)]),_(0x3,(0x0,n[_0x5d5271(0x255)])(g)),_(0x4,n['ICommandService'])],x);function _0x4057(_0x2ef9ca,_0x2d2d14){_0x2ef9ca=_0x2ef9ca-0x1e4;const _0x13f465=_0x13f4();let _0x40574a=_0x13f465[_0x2ef9ca];return _0x40574a;}function S(){const _0x3a73cf=_0x5d5271;let _0x2e21bc=(0x0,o[_0x3a73cf(0x274)])(y),_0x2920d0=(0x0,o['useDependency'])(n[_0x3a73cf(0x291)]),_0x20e85f=(0x0,o[_0x3a73cf(0x25f)])(()=>_0x2920d0[_0x3a73cf(0x1f2)](n[_0x3a73cf(0x264)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x271036,_0x31fc07]=(0x0,l[_0x3a73cf(0x2a1)])(null),[_0x30bac1,_0x4b9866]=(0x0,l[_0x3a73cf(0x2a1)])(_0x3a73cf(0x23a)),_0xaea6a3=(0x0,l[_0x3a73cf(0x1fd)])(null);return(0x0,l['useEffect'])(()=>(_0x20e85f&&_0x2e21bc[_0x3a73cf(0x265)](_0x20e85f['getUnitId']())[_0x3a73cf(0x201)](_0x3e7e98=>{const _0x3489c5=_0x3a73cf;_0x31fc07(_0x3e7e98),_0xaea6a3[_0x3489c5(0x1fe)]=_0x3e7e98[_0x3489c5(0x20f)]['subscribe'](_0x4ab0b6=>{_0x4b9866(_0x4ab0b6);});}),()=>{const _0x58ae14=_0x3a73cf;var _0x52f7bf;(_0x52f7bf=_0xaea6a3[_0x58ae14(0x1fe)])==null||_0x52f7bf['unsubscribe'](),_0xaea6a3['current']=null;}),[_0x20e85f,_0x2e21bc]),_0x271036?(0x0,u[_0x3a73cf(0x1fb)])(s['Dropdown'],{'align':_0x3a73cf(0x26d),'disabled':_0x30bac1==='offline','className':_0x3a73cf(0x268),'overlay':(0x0,u[_0x3a73cf(0x1fb)])(C,{'status':_0x30bac1,'coordinator':_0x271036}),'children':(0x0,u[_0x3a73cf(0x1fb)])(_0x3a73cf(0x271),{'className':(0x0,s['clsx'])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x30bac1===_0x3a73cf(0x26f),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x30bac1!==_0x3a73cf(0x26f)}),'type':_0x3a73cf(0x271),'children':(0x0,u['jsx'])(c['LiveShareIcon'],{})})}):null;}function C(_0x26dc97){const _0x3749e2=_0x5d5271;let {status:_0x32ecf8,coordinator:_0x5073c0}=_0x26dc97;switch(_0x32ecf8){case _0x3749e2(0x23a):return(0x0,u[_0x3749e2(0x1fb)])(w,{'coordinator':_0x5073c0});case _0x3749e2(0x1fa):return(0x0,u[_0x3749e2(0x1fb)])(T,{'coordinator':_0x5073c0});case _0x3749e2(0x252):return(0x0,u[_0x3749e2(0x1fb)])(E,{'coordinator':_0x5073c0});case'offline':return(0x0,u['jsx'])(O,{});case _0x3749e2(0x246):return(0x0,u[_0x3749e2(0x1fb)])(D,{'coordinator':_0x5073c0});default:return null;}}function w(_0x36ddca){const _0xf09a4d=_0x5d5271;let {coordinator:_0x419573}=_0x36ddca;return(0x0,u[_0xf09a4d(0x25a)])(u[_0xf09a4d(0x206)],{'children':[(0x0,u[_0xf09a4d(0x1fb)])('div',{'className':_0xf09a4d(0x284),'children':_0xf09a4d(0x270)}),(0x0,u[_0xf09a4d(0x1fb)])(s[_0xf09a4d(0x1e6)],{'onClick':()=>_0x419573[_0xf09a4d(0x256)](),'children':_0xf09a4d(0x20a)})]});}function T(_0x598cdb){const _0x23bf6d=_0x5d5271;let {coordinator:_0x42af2c}=_0x598cdb;return(0x0,u[_0x23bf6d(0x25a)])(u['Fragment'],{'children':[(0x0,u[_0x23bf6d(0x1fb)])('div',{'className':_0x23bf6d(0x284),'children':_0x23bf6d(0x1f4)}),(0x0,u[_0x23bf6d(0x1fb)])(s[_0x23bf6d(0x1e6)],{'onClick':()=>_0x42af2c[_0x23bf6d(0x288)](),'children':_0x23bf6d(0x20e)})]});}function E(_0x201e71){const _0x1a4051=_0x5d5271;let {coordinator:_0xf60763}=_0x201e71;return(0x0,u[_0x1a4051(0x25a)])(u[_0x1a4051(0x206)],{'children':[(0x0,u[_0x1a4051(0x1fb)])(_0x1a4051(0x297),{'className':_0x1a4051(0x284),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,u[_0x1a4051(0x1fb)])(s[_0x1a4051(0x1e6)],{'variant':_0x1a4051(0x29c),'onClick':()=>_0xf60763[_0x1a4051(0x200)](),'children':'Start\x20following'})]});}function D(_0x719b8e){const _0x1ee59f=_0x5d5271;let {coordinator:_0x2e3c01}=_0x719b8e;return(0x0,u[_0x1ee59f(0x25a)])(u[_0x1ee59f(0x206)],{'children':[(0x0,u[_0x1ee59f(0x1fb)])('div',{'className':_0x1ee59f(0x284),'children':_0x1ee59f(0x1e9)}),(0x0,u['jsx'])(s[_0x1ee59f(0x1e6)],{'variant':_0x1ee59f(0x210),'onClick':()=>_0x2e3c01[_0x1ee59f(0x276)](),'children':'Stop\x20presenting'})]});}function O(){const _0x3decd5=_0x5d5271;return(0x0,u[_0x3decd5(0x1fb)])(u[_0x3decd5(0x206)],{'children':'You\x27are\x20offline.'});}let k=class extends n['Disposable']{constructor(_0x434dd1,_0x5e4ba3){const _0x30c756=_0x5d5271;super(),this[_0x30c756(0x234)]=_0x434dd1,this[_0x30c756(0x1f3)]=_0x5e4ba3,this[_0x30c756(0x259)]();}[_0x5d5271(0x259)](){const _0x33dc30=_0x5d5271;this['disposeWithMe'](this[_0x33dc30(0x1f3)][_0x33dc30(0x20d)](o[_0x33dc30(0x272)]['HEADER_MENU'],()=>(0x0,o['connectInjector'])(S,this[_0x33dc30(0x234)])));}};k=v([_(0x0,(0x0,n[_0x5d5271(0x255)])(n[_0x5d5271(0x293)])),_(0x1,o[_0x5d5271(0x258)])],k);var A=_0x5d5271(0x218),j=_0x5d5271(0x28d);const M={};let N=class extends n['Disposable']{constructor(_0x29fedb){const _0x47259e=_0x5d5271;super(),this[_0x47259e(0x28e)]=_0x29fedb,this[_0x47259e(0x221)]();}[_0x5d5271(0x221)](){const _0x597f78=_0x5d5271;[d[_0x597f78(0x23c)]['id'],d[_0x597f78(0x22b)]['id'],r[_0x597f78(0x29a)]['id']][_0x597f78(0x292)](_0x20ddc4=>{const _0xf4177=_0x597f78;this[_0xf4177(0x249)](this['_liveShareService']['registerSharedOperation'](_0x20ddc4));});}};N=v([_(0x0,(0x0,n[_0x5d5271(0x255)])(g))],N);let P=class extends n[_0x5d5271(0x23e)]{constructor(_0x246465=M,_0x3b6384,_0x5bed58){const _0x578956=_0x5d5271;super(),this['_config']=_0x246465,this[_0x578956(0x234)]=_0x3b6384,this[_0x578956(0x207)]=_0x5bed58;let {..._0x205669}=(0x0,n[_0x578956(0x26c)])({},M,this[_0x578956(0x25d)]);this[_0x578956(0x207)][_0x578956(0x28a)](_0x578956(0x29d),_0x205669);}[_0x5d5271(0x27c)](){const _0x21c97c=_0x5d5271;(0x0,n[_0x21c97c(0x29b)])(this[_0x21c97c(0x234)],(0x0,n[_0x21c97c(0x1f5)])([[g],[y],[N],[k]],this[_0x21c97c(0x25d)][_0x21c97c(0x281)])),(0x0,n[_0x21c97c(0x1e7)])(this[_0x21c97c(0x234)],[[N]]);}[_0x5d5271(0x205)](){const _0x592db0=_0x5d5271;(0x0,n[_0x592db0(0x1e7)])(this[_0x592db0(0x234)],[[k]]);}};h(P,_0x5d5271(0x29f),n[_0x5d5271(0x264)]['UNIVER_UNKNOWN']),h(P,_0x5d5271(0x224),_0x5d5271(0x22c)),h(P,'packageName',A),h(P,_0x5d5271(0x24f),j),P=v([(0x0,n[_0x5d5271(0x22f)])(t[_0x5d5271(0x238)]),_(0x1,(0x0,n['Inject'])(n[_0x5d5271(0x293)])),_(0x2,n[_0x5d5271(0x1f9)])],P),Object[_0x5d5271(0x279)](exports,_0x5d5271(0x220),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x5d5271(0x23d)]=S,Object['defineProperty'](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return y;}}),Object['defineProperty'](exports,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x5d5271(0x2a0)]=g,exports['LiveShareStatus']=b,Object[_0x5d5271(0x279)](exports,_0x5d5271(0x28b),{'enumerable':!0x0,'get':function(){return P;}});
|
|
1
|
+
const _0x358850=_0x6c5c;(function(_0x2810be,_0xffc1cb){const _0x4966e7=_0x6c5c,_0x95e351=_0x2810be();while(!![]){try{const _0x5e7c32=-parseInt(_0x4966e7(0x130))/0x1*(-parseInt(_0x4966e7(0x16b))/0x2)+parseInt(_0x4966e7(0x194))/0x3*(-parseInt(_0x4966e7(0x1a0))/0x4)+-parseInt(_0x4966e7(0x15d))/0x5+-parseInt(_0x4966e7(0x18e))/0x6*(parseInt(_0x4966e7(0x1b7))/0x7)+parseInt(_0x4966e7(0x187))/0x8*(-parseInt(_0x4966e7(0x1c2))/0x9)+parseInt(_0x4966e7(0x13a))/0xa+parseInt(_0x4966e7(0x136))/0xb*(parseInt(_0x4966e7(0x1c6))/0xc);if(_0x5e7c32===_0xffc1cb)break;else _0x95e351['push'](_0x95e351['shift']());}catch(_0x37f1bb){_0x95e351['push'](_0x95e351['shift']());}}}(_0x445c,0x25ef8),Object[_0x358850(0x1a2)](exports,Symbol['toStringTag'],{'value':_0x358850(0x1af)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/ui'),s=require('@univerjs/design'),c=require('@univerjs/icons'),l=require('react'),u=require('react/jsx-runtime'),d=require('@univerjs/sheets-ui');function f(_0x536b7f){'@babel/helpers - typeof';const _0x1e0be2=_0x358850;return f=typeof Symbol==_0x1e0be2(0x1a1)&&typeof Symbol['iterator']==_0x1e0be2(0x139)?function(_0x1cd463){return typeof _0x1cd463;}:function(_0x41dce2){const _0x2a562f=_0x1e0be2;return _0x41dce2&&typeof Symbol==_0x2a562f(0x1a1)&&_0x41dce2['constructor']===Symbol&&_0x41dce2!==Symbol[_0x2a562f(0x16e)]?'symbol':typeof _0x41dce2;},f(_0x536b7f);}function p(_0x25685b,_0x9fdacf){const _0x3ed1f1=_0x358850;if(f(_0x25685b)!=_0x3ed1f1(0x1d0)||!_0x25685b)return _0x25685b;var _0x5bd81d=_0x25685b[Symbol['toPrimitive']];if(_0x5bd81d!==void 0x0){var _0x4bfb5c=_0x5bd81d[_0x3ed1f1(0x12d)](_0x25685b,_0x9fdacf||_0x3ed1f1(0x1d3));if(f(_0x4bfb5c)!=_0x3ed1f1(0x1d0))return _0x4bfb5c;throw TypeError(_0x3ed1f1(0x172));}return(_0x9fdacf===_0x3ed1f1(0x1da)?String:Number)(_0x25685b);}function m(_0x460fe8){const _0x48d182=_0x358850;var _0x1bdc3d=p(_0x460fe8,_0x48d182(0x1da));return f(_0x1bdc3d)==_0x48d182(0x139)?_0x1bdc3d:_0x1bdc3d+'';}function _0x6c5c(_0x494444,_0x29444e){_0x494444=_0x494444-0x116;const _0x445c0f=_0x445c();let _0x6c5c43=_0x445c0f[_0x494444];return _0x6c5c43;}function h(_0x4bdc22,_0x5a3ae1,_0x2ed704){const _0xbb6603=_0x358850;return(_0x5a3ae1=m(_0x5a3ae1))in _0x4bdc22?Object[_0xbb6603(0x1a2)](_0x4bdc22,_0x5a3ae1,{'value':_0x2ed704,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4bdc22[_0x5a3ae1]=_0x2ed704,_0x4bdc22;}var g=class extends n[_0x358850(0x135)]{constructor(..._0x442aaf){const _0xca4d67=_0x358850;super(..._0x442aaf),h(this,_0xca4d67(0x149),new Set()),h(this,_0xca4d67(0x15a),new Set());}[_0x358850(0x121)](_0x38004d){const _0x3b4d5c=_0x358850;return this[_0x3b4d5c(0x149)][_0x3b4d5c(0x119)](_0x38004d),(0x0,n[_0x3b4d5c(0x1b8)])(()=>this[_0x3b4d5c(0x149)][_0x3b4d5c(0x1c8)](_0x38004d));}[_0x358850(0x157)](_0x14248a){const _0x3c8e09=_0x358850;return this[_0x3c8e09(0x15a)][_0x3c8e09(0x119)](_0x14248a),(0x0,n[_0x3c8e09(0x1b8)])(()=>this['_reporters'][_0x3c8e09(0x1c8)](_0x14248a));}['shouldShareOperation'](_0x373fad){const _0x4a6c39=_0x358850;return this[_0x4a6c39(0x149)][_0x4a6c39(0x156)](_0x373fad);}[_0x358850(0x198)](_0x18edd1){const _0x386562=_0x358850;return Array[_0x386562(0x143)](this['_reporters'])[_0x386562(0x19e)](_0x45c59c=>_0x45c59c(_0x18edd1));}};function _(_0x3159ea,_0x38fbf7){return function(_0x445c5f,_0x113b64){_0x38fbf7(_0x445c5f,_0x113b64,_0x3159ea);};}function v(_0x477d67,_0x10b359,_0x1d3dab,_0x20133c){const _0x4ffef0=_0x358850;var _0xe36ea2=arguments['length'],_0x3984eb=_0xe36ea2<0x3?_0x10b359:_0x20133c===null?_0x20133c=Object[_0x4ffef0(0x150)](_0x10b359,_0x1d3dab):_0x20133c,_0x1d506a;if(typeof Reflect==_0x4ffef0(0x1d0)&&typeof Reflect[_0x4ffef0(0x179)]=='function')_0x3984eb=Reflect[_0x4ffef0(0x179)](_0x477d67,_0x10b359,_0x1d3dab,_0x20133c);else{for(var _0x36ea72=_0x477d67[_0x4ffef0(0x186)]-0x1;_0x36ea72>=0x0;_0x36ea72--)(_0x1d506a=_0x477d67[_0x36ea72])&&(_0x3984eb=(_0xe36ea2<0x3?_0x1d506a(_0x3984eb):_0xe36ea2>0x3?_0x1d506a(_0x10b359,_0x1d3dab,_0x3984eb):_0x1d506a(_0x10b359,_0x1d3dab))||_0x3984eb);}return _0xe36ea2>0x3&&_0x3984eb&&Object[_0x4ffef0(0x1a2)](_0x10b359,_0x1d3dab,_0x3984eb),_0x3984eb;}let y=class extends n[_0x358850(0x1a5)]{constructor(_0x42a7c6,_0x41dda6,_0x17315d){const _0xecff0a=_0x358850;super(),this[_0xecff0a(0x174)]=_0x42a7c6,this[_0xecff0a(0x133)]=_0x41dda6,this[_0xecff0a(0x13e)]=_0x17315d,h(this,_0xecff0a(0x168),new Map()),this[_0xecff0a(0x18f)]();}async[_0x358850(0x181)](_0x479206){const _0xd9d1e9=_0x358850;return this[_0xd9d1e9(0x168)][_0xd9d1e9(0x156)](_0x479206)||await this[_0xd9d1e9(0x167)](_0x479206),this[_0xd9d1e9(0x168)][_0xd9d1e9(0x1b5)](_0x479206);}[_0x358850(0x1a8)](_0x506ba4){var _0x20265d;return(_0x20265d=this['_entities']['get'](_0x506ba4))==null?null:_0x20265d;}['_init'](){const _0x1cac1b=_0x358850;this['_univerInstanceService'][_0x1cac1b(0x14f)](n['UniverInstanceType']['UNIVER_SHEET'])[_0x1cac1b(0x17a)]((0x0,a[_0x1cac1b(0x147)])(this[_0x1cac1b(0x1d9)]))[_0x1cac1b(0x19b)](async _0x8e9e4d=>{const _0x4383d0=_0x1cac1b;let _0x5475db=_0x8e9e4d[_0x4383d0(0x15e)]['getUnitId']();this[_0x4383d0(0x168)]['has'](_0x5475db)||this[_0x4383d0(0x167)](_0x5475db);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](n['UniverInstanceType'][_0x1cac1b(0x125)])['pipe']((0x0,a[_0x1cac1b(0x147)])(this['dispose$']))[_0x1cac1b(0x19b)](_0x1cc8f3=>{const _0x357c3b=_0x1cac1b;let _0x126af1=_0x1cc8f3[_0x357c3b(0x118)](),_0x1c47dd=this['_entities'][_0x357c3b(0x1b5)](_0x126af1);_0x1c47dd==null||_0x1c47dd['dispose']();});}async[_0x358850(0x167)](_0x57f941){const _0x892c6a=_0x358850;let _0x26f66c=await this['_collabSessionService']['requireSession'](_0x57f941),_0xbaf10c=this['_injector'][_0x892c6a(0x188)](x,_0x57f941,_0x26f66c);return _0xbaf10c[_0x892c6a(0x140)](),this[_0x892c6a(0x168)][_0x892c6a(0x160)](_0x57f941,_0xbaf10c),_0xbaf10c;}};y=v([_(0x0,n[_0x358850(0x138)]),_(0x1,(0x0,n['Inject'])(n[_0x358850(0x1be)])),_(0x2,(0x0,n[_0x358850(0x145)])(t[_0x358850(0x14a)]))],y);let b=function(_0x20e99e){const _0x180aac=_0x358850;return _0x20e99e[_0x180aac(0x178)]=_0x180aac(0x197),_0x20e99e[_0x180aac(0x183)]='idle',_0x20e99e[_0x180aac(0x166)]=_0x180aac(0x134),_0x20e99e[_0x180aac(0x12b)]=_0x180aac(0x17d),_0x20e99e[_0x180aac(0x11f)]='presenting',_0x20e99e;}({}),x=class extends n[_0x358850(0x1a5)]{get[_0x358850(0x19f)](){const _0x2ebd6d=_0x358850;return this['_status$'][_0x2ebd6d(0x17e)]();}constructor(_0x45a7fe,_0x3190e3,_0x1d9da0,_0x2ad912,_0x113d44){const _0x1875a1=_0x358850;super(),this['_unitID']=_0x45a7fe,this[_0x1875a1(0x180)]=_0x3190e3,this[_0x1875a1(0x1b4)]=_0x1d9da0,this[_0x1875a1(0x123)]=_0x2ad912,this[_0x1875a1(0x128)]=_0x113d44,h(this,_0x1875a1(0x17b),new i[(_0x1875a1(0x131))](_0x1875a1(0x132))),h(this,'status$',this[_0x1875a1(0x17b)][_0x1875a1(0x16d)]()),h(this,_0x1875a1(0x18f),!0x1),h(this,_0x1875a1(0x14b),null),h(this,_0x1875a1(0x152),null);}[_0x358850(0x126)](){const _0x285ff8=_0x358850;var _0x41668a;(_0x41668a=this[_0x285ff8(0x14b)])==null||_0x41668a[_0x285ff8(0x126)](),this[_0x285ff8(0x17b)][_0x285ff8(0x1ac)](_0x285ff8(0x132)),this['_status$'][_0x285ff8(0x1b2)]();}['getStatus'](){const _0x225cb4=_0x358850;return this[_0x225cb4(0x19f)];}[_0x358850(0x140)](){const _0x304442=_0x358850;this[_0x304442(0x18f)]||(this[_0x304442(0x18f)]=!0x0,this[_0x304442(0x180)]['sessionStatus$'][_0x304442(0x17a)]((0x0,a[_0x304442(0x147)])(this[_0x304442(0x1d9)]))[_0x304442(0x19b)](_0x42ab2f=>{const _0x54b3b6=_0x304442;switch(_0x42ab2f){case t[_0x54b3b6(0x1b0)]['OFFLINE']:this[_0x54b3b6(0x15c)]();break;case t[_0x54b3b6(0x1b0)][_0x54b3b6(0x146)]:this[_0x54b3b6(0x163)]();break;default:}}),this[_0x304442(0x180)][_0x304442(0x15b)][_0x304442(0x17a)]((0x0,a['takeUntil'])(this[_0x304442(0x1d9)]))[_0x304442(0x19b)](_0x2cf04a=>{const _0x3a70e2=_0x304442;let {eventID:_0x3b6ef6}=_0x2cf04a;switch(_0x3b6ef6){case e[_0x3a70e2(0x1ba)]['LIVESHARE_NEW_HOST']:this[_0x3a70e2(0x129)](_0x2cf04a);break;case e[_0x3a70e2(0x1ba)][_0x3a70e2(0x1bf)]:this[_0x3a70e2(0x196)](_0x2cf04a);break;case e[_0x3a70e2(0x1ba)][_0x3a70e2(0x144)]:this[_0x3a70e2(0x1ab)]();break;case e['CollaborationEvent']['NEW_CHANGESETS']:this[_0x3a70e2(0x19d)](_0x2cf04a);break;default:}}));}[_0x358850(0x164)](){const _0x4d77db=_0x358850;this[_0x4d77db(0x180)][_0x4d77db(0x192)]({'eventID':e['CollaborationEvent'][_0x4d77db(0x14c)],'data':{'unitID':this[_0x4d77db(0x1cc)],'userID':this[_0x4d77db(0x180)][_0x4d77db(0x1ca)]()}},this[_0x4d77db(0x1cc)]);}['stopPresenting'](){const _0x31b463=_0x358850;this[_0x31b463(0x19f)]===_0x31b463(0x13d)&&(this['_status$']['next'](_0x31b463(0x132)),this[_0x31b463(0x180)]['send']({'eventID':e[_0x31b463(0x1ba)][_0x31b463(0x144)],'data':{'unitID':this[_0x31b463(0x1cc)]}},this['_unitID']));}['startFollowing'](){const _0x3e738f=_0x358850;this[_0x3e738f(0x19f)]==='not-following'&&(this[_0x3e738f(0x17b)]['next'](_0x3e738f(0x134)),this[_0x3e738f(0x120)]());}['stopFollowing'](){const _0x17cb13=_0x358850;this['_status']===_0x17cb13(0x134)&&this[_0x17cb13(0x169)]();}['_handleNewHost'](_0xc54be4){const _0x34aa71=_0x358850;let {presenter:_0x257293}=_0xc54be4['data'],_0x54e55d=this[_0x34aa71(0x180)]['getMemberID']();this['_presenter']=_0x257293,_0x257293===_0x54e55d?(this[_0x34aa71(0x169)](),this[_0x34aa71(0x14d)]()):this[_0x34aa71(0x19f)]!=='not-following'&&(this[_0x34aa71(0x1ad)](),this['_startFollowing']());}[_0x358850(0x1b9)](){const _0x50eba6=_0x358850;let _0x4af5b5={'eventID':e[_0x50eba6(0x1ba)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x50eba6(0x192)](_0x4af5b5,this[_0x50eba6(0x1cc)]);}['_handleTerminate'](){const _0xe65d3b=_0x358850;this[_0xe65d3b(0x152)]=null,this[_0xe65d3b(0x19f)]!==_0xe65d3b(0x13d)&&this[_0xe65d3b(0x15f)]();}[_0x358850(0x19d)](_0x4bc326){const _0x3d1c32=_0x358850;if(this[_0x3d1c32(0x19f)]==='following'&&this['_presenter']===_0x4bc326[_0x3d1c32(0x190)]['memberID']){let _0x119e93=(0x0,e[_0x3d1c32(0x154)])(_0x4bc326['data'])[_0x3d1c32(0x191)][_0x3d1c32(0x12a)]()[_0x3d1c32(0x127)](_0xbecb37=>_0xbecb37['id']===r['InsertSheetMutation']['id']);if(_0x119e93){let _0x47be63=_0x119e93[_0x3d1c32(0x1c5)][_0x3d1c32(0x1bc)],_0x115bb5=_0x119e93[_0x3d1c32(0x1c5)][_0x3d1c32(0x1cb)]['id'];setTimeout(()=>{const _0x5aa8f5=_0x3d1c32;this[_0x5aa8f5(0x128)][_0x5aa8f5(0x1ce)](r[_0x5aa8f5(0x193)]['id'],{'unitId':_0x47be63,'subUnitId':_0x115bb5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2c8c04=_0x358850;var _0x16df82;(_0x16df82=this[_0x2c8c04(0x14b)])==null||_0x16df82[_0x2c8c04(0x126)](),this[_0x2c8c04(0x17b)][_0x2c8c04(0x1ac)](_0x2c8c04(0x13d));let _0x100b10=new Map(),_0x24680d=this[_0x2c8c04(0x14b)]=new n[(_0x2c8c04(0x1bb))]();_0x24680d[_0x2c8c04(0x119)]((0x0,n[_0x2c8c04(0x1b8)])(()=>{const _0x138d6c=_0x2c8c04;_0x100b10['forEach'](({subject:_0x1daac4,subscription:_0x13f9bc})=>{const _0xa0711e=_0x6c5c;_0x13f9bc['unsubscribe'](),_0x1daac4[_0xa0711e(0x1b2)]();}),_0x100b10[_0x138d6c(0x1d8)]();})),_0x24680d[_0x2c8c04(0x119)](this[_0x2c8c04(0x128)][_0x2c8c04(0x117)](_0x3865b4=>{const _0x3663c3=_0x2c8c04;if(_0x3865b4[_0x3663c3(0x155)]!==n[_0x3663c3(0x195)][_0x3663c3(0x165)]||!this['_liveShareService'][_0x3663c3(0x124)](_0x3865b4['id']))return;let {id:_0x1dc99c}=_0x3865b4,_0x34f362;if(_0x100b10['has'](_0x1dc99c))_0x34f362=_0x100b10[_0x3663c3(0x1b5)](_0x1dc99c)[_0x3663c3(0x16c)];else{var _0x30b248;_0x34f362=new i['Subject']();let _0x49f91e=_0x34f362['pipe']((0x0,a[_0x3663c3(0x18c)])((_0x30b248=this['_configService'][_0x3663c3(0x16a)](_0x3663c3(0x173)))==null?0xc8:_0x30b248,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3663c3(0x19b)](_0x149e5d=>{const _0x479ba0=_0x3663c3;this[_0x479ba0(0x180)]['send']({'eventID':e[_0x479ba0(0x1ba)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x149e5d['id']]:{'id':_0x149e5d['id'],'params':JSON[_0x479ba0(0x1c4)](_0x149e5d[_0x479ba0(0x1c5)])}}}},this['_unitID']);});_0x100b10[_0x3663c3(0x160)](_0x1dc99c,{'subject':_0x34f362,'subscription':_0x49f91e});}_0x34f362[_0x3663c3(0x1ac)](_0x3865b4);})),this[_0x2c8c04(0x123)][_0x2c8c04(0x198)](this[_0x2c8c04(0x1cc)])[_0x2c8c04(0x17c)](_0x38a3f9=>this[_0x2c8c04(0x180)][_0x2c8c04(0x192)]({'eventID':e[_0x2c8c04(0x1ba)][_0x2c8c04(0x1bf)],'data':{'unitID':this['_unitID'],'operations':{[_0x38a3f9['id']]:{'id':_0x38a3f9['id'],'params':JSON[_0x2c8c04(0x1c4)](_0x38a3f9[_0x2c8c04(0x1c5)])}}}},this['_unitID']));}[_0x358850(0x1ad)](){const _0x4b8795=_0x358850;var _0x5eec9f;this[_0x4b8795(0x17b)]['next'](_0x4b8795(0x132)),(_0x5eec9f=this[_0x4b8795(0x14b)])==null||_0x5eec9f[_0x4b8795(0x126)](),this[_0x4b8795(0x14b)]=null;}['_startFollowing'](){const _0x32f1ad=_0x358850;var _0x47bab5;(_0x47bab5=this[_0x32f1ad(0x14b)])==null||_0x47bab5[_0x32f1ad(0x126)](),this['_status$'][_0x32f1ad(0x1ac)](_0x32f1ad(0x134));}[_0x358850(0x15f)](){const _0x191827=_0x358850;var _0x4bfff6;this[_0x191827(0x17b)][_0x191827(0x1ac)](_0x191827(0x132)),(_0x4bfff6=this[_0x191827(0x14b)])==null||_0x4bfff6[_0x191827(0x126)](),this[_0x191827(0x14b)]=null;}[_0x358850(0x169)](){const _0x54c97d=_0x358850;var _0x55add4;this['_status$']['next'](_0x54c97d(0x17d)),(_0x55add4=this[_0x54c97d(0x14b)])==null||_0x55add4[_0x54c97d(0x126)]();}[_0x358850(0x196)](_0x243d6e){const _0x11006b=_0x358850;if(['presenting',_0x11006b(0x17d),_0x11006b(0x197)][_0x11006b(0x151)](this['_status'])||!_0x243d6e[_0x11006b(0x190)][_0x11006b(0x1c9)]||_0x243d6e[_0x11006b(0x190)][_0x11006b(0x1c9)]===this[_0x11006b(0x180)][_0x11006b(0x1ca)]())return;this['_status']===_0x11006b(0x132)&&this[_0x11006b(0x120)]();let _0x63729d=_0x243d6e[_0x11006b(0x190)]['operations'];Object['values'](_0x63729d)['forEach'](_0x1c1a40=>{const _0x145e5b=_0x11006b;this[_0x145e5b(0x128)][_0x145e5b(0x1ce)](_0x1c1a40['id'],_0x1c1a40[_0x145e5b(0x1c5)]?JSON[_0x145e5b(0x161)](_0x1c1a40[_0x145e5b(0x1c5)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x7c87f8=_0x358850;var _0x27e5fb;this['_status$']['next']('offline'),(_0x27e5fb=this[_0x7c87f8(0x14b)])==null||_0x27e5fb[_0x7c87f8(0x126)]();}[_0x358850(0x163)](){const _0x438159=_0x358850;this[_0x438159(0x17b)][_0x438159(0x1ac)](_0x438159(0x132)),this[_0x438159(0x1b9)]();}};x=v([_(0x2,n[_0x358850(0x1b1)]),_(0x3,(0x0,n[_0x358850(0x145)])(g)),_(0x4,n[_0x358850(0x11c)])],x);function S(){const _0x30018c=_0x358850;let _0x93d70d=(0x0,o[_0x30018c(0x159)])(y),_0x56083c=(0x0,o[_0x30018c(0x159)])(n[_0x30018c(0x138)]),_0x275cc9=(0x0,o[_0x30018c(0x185)])(()=>_0x56083c[_0x30018c(0x13b)](n['UniverInstanceType'][_0x30018c(0x125)]),void 0x0,!0x1,[]),[_0x317d87,_0x56da79]=(0x0,l[_0x30018c(0x11a)])(null),[_0x28d7fb,_0x1c167a]=(0x0,l['useState'])(_0x30018c(0x132)),_0x1f3614=(0x0,l[_0x30018c(0x1ae)])(null);return(0x0,l[_0x30018c(0x199)])(()=>(_0x275cc9&&_0x93d70d[_0x30018c(0x181)](_0x275cc9[_0x30018c(0x118)]())[_0x30018c(0x153)](_0x3c8af7=>{const _0x79019f=_0x30018c;_0x56da79(_0x3c8af7),_0x1f3614[_0x79019f(0x170)]=_0x3c8af7[_0x79019f(0x176)]['subscribe'](_0x5f105c=>{_0x1c167a(_0x5f105c);});}),()=>{const _0x169620=_0x30018c;var _0x397280;(_0x397280=_0x1f3614[_0x169620(0x170)])==null||_0x397280[_0x169620(0x17f)](),_0x1f3614['current']=null;}),[_0x275cc9,_0x93d70d]),_0x317d87?(0x0,u[_0x30018c(0x1d6)])(s['Dropdown'],{'align':'end','disabled':_0x28d7fb===_0x30018c(0x197),'className':_0x30018c(0x182),'overlay':(0x0,u[_0x30018c(0x1d6)])(C,{'status':_0x28d7fb,'coordinator':_0x317d87}),'children':(0x0,u[_0x30018c(0x1d6)])(_0x30018c(0x189),{'className':(0x0,s['clsx'])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x28d7fb===_0x30018c(0x197),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x28d7fb!==_0x30018c(0x197)}),'type':_0x30018c(0x189),'children':(0x0,u[_0x30018c(0x1d6)])(c[_0x30018c(0x142)],{})})}):null;}function C(_0x5d5bda){const _0x4c7369=_0x358850;let {status:_0x2e2563,coordinator:_0x211773}=_0x5d5bda;switch(_0x2e2563){case'idle':return(0x0,u['jsx'])(w,{'coordinator':_0x211773});case _0x4c7369(0x134):return(0x0,u[_0x4c7369(0x1d6)])(T,{'coordinator':_0x211773});case'not-following':return(0x0,u[_0x4c7369(0x1d6)])(E,{'coordinator':_0x211773});case _0x4c7369(0x197):return(0x0,u[_0x4c7369(0x1d6)])(O,{});case _0x4c7369(0x13d):return(0x0,u[_0x4c7369(0x1d6)])(D,{'coordinator':_0x211773});default:return null;}}function w(_0x5cf69b){const _0x295c8a=_0x358850;let {coordinator:_0x161dad}=_0x5cf69b;return(0x0,u[_0x295c8a(0x171)])(u[_0x295c8a(0x137)],{'children':[(0x0,u[_0x295c8a(0x1d6)])('div',{'className':_0x295c8a(0x1d5),'children':_0x295c8a(0x158)}),(0x0,u[_0x295c8a(0x1d6)])(s['Button'],{'onClick':()=>_0x161dad[_0x295c8a(0x164)](),'children':_0x295c8a(0x177)})]});}function T(_0x1ae695){const _0x418921=_0x358850;let {coordinator:_0x3fdc0c}=_0x1ae695;return(0x0,u['jsxs'])(u[_0x418921(0x137)],{'children':[(0x0,u[_0x418921(0x1d6)])(_0x418921(0x18b),{'className':_0x418921(0x1d5),'children':_0x418921(0x1cd)}),(0x0,u[_0x418921(0x1d6)])(s[_0x418921(0x11d)],{'onClick':()=>_0x3fdc0c['stopFollowing'](),'children':_0x418921(0x184)})]});}function E(_0x3b8832){const _0x8187cf=_0x358850;let {coordinator:_0x11db57}=_0x3b8832;return(0x0,u[_0x8187cf(0x171)])(u[_0x8187cf(0x137)],{'children':[(0x0,u['jsx'])(_0x8187cf(0x18b),{'className':_0x8187cf(0x1d5),'children':_0x8187cf(0x1cf)}),(0x0,u[_0x8187cf(0x1d6)])(s[_0x8187cf(0x11d)],{'variant':_0x8187cf(0x11e),'onClick':()=>_0x11db57[_0x8187cf(0x1d7)](),'children':'Start\x20following'})]});}function D(_0x1bf93d){const _0x162156=_0x358850;let {coordinator:_0x13de38}=_0x1bf93d;return(0x0,u[_0x162156(0x171)])(u[_0x162156(0x137)],{'children':[(0x0,u['jsx'])(_0x162156(0x18b),{'className':_0x162156(0x1d5),'children':_0x162156(0x13c)}),(0x0,u[_0x162156(0x1d6)])(s[_0x162156(0x11d)],{'variant':_0x162156(0x1d3),'onClick':()=>_0x13de38[_0x162156(0x13f)](),'children':'Stop\x20presenting'})]});}function O(){const _0x3af5b0=_0x358850;return(0x0,u[_0x3af5b0(0x1d6)])(u['Fragment'],{'children':_0x3af5b0(0x11b)});}let k=class extends n[_0x358850(0x135)]{constructor(_0x5347d4,_0x2ce79d){const _0x257acd=_0x358850;super(),this[_0x257acd(0x133)]=_0x5347d4,this[_0x257acd(0x162)]=_0x2ce79d,this['_mountLiveShare']();}[_0x358850(0x1c7)](){const _0x3a6d78=_0x358850;this[_0x3a6d78(0x19a)](this['_uiPartsService']['registerComponent'](o[_0x3a6d78(0x12f)]['HEADER_MENU'],()=>(0x0,o[_0x3a6d78(0x116)])(S,this[_0x3a6d78(0x133)])));}};k=v([_(0x0,(0x0,n[_0x358850(0x145)])(n[_0x358850(0x1be)])),_(0x1,o[_0x358850(0x1d4)])],k);var A=_0x358850(0x1c3),j=_0x358850(0x19c);const M={};function _0x445c(){const _0x32ee14=['set','parse','_uiPartsService','_handleOnline','tryStartPresenting','OPERATION','FOLLOWING','_startLiveShareCoordinator','_entities','_stopFollowing','getConfig','19526zlwXuI','subject','asObservable','prototype','LiveShareController','current','jsxs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SAME_OPERATION_SHARE_INTERVAL','_univerInstanceService','UniverCollaborationClientPlugin','status$','Start','OFFLINE','decorate','pipe','_status$','forEach','not-following','getValue','unsubscribe','_collabSession','getLiveShareCoordinator','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','IDLE','Stop\x20following','useObservable','length','2269424MKxpgW','createInstance','button','LiveShareService','div','throttleTime','DesktopLiveShareController','637968XBKXCi','_init','data','mutations','send','SetWorksheetActiveOperation','2460NWGeAX','CommandType','_handleOperation','offline','getInitialStates','useEffect','disposeWithMe','subscribe','1.0.0-alpha.2','_handleNewChangeSets','map','_status','732NDOQrK','function','defineProperty','UniverInstanceType','live-share.config','RxDisposable','LiveShareCoordinator','LiveShare','getLiveShareCoordinatorSync','onStarting','SetScrollOperation','_handleTerminate','next','_stopPresenting','useRef','Module','SessionStatus','IConfigService','complete','_config','_configService','get','UNIVER_UNKNOWN','14zkVwve','toDisposable','_fetchOperations','CollaborationEvent','DisposableCollection','unitId','override','Injector','LIVESHARE_OPERATION','onRendered','DependentOn','9TAjPds','@univerjs-pro/live-share','stringify','params','1752EVMevu','_mountLiveShare','delete','presenter','getMemberID','sheet','_unitID','You\x27re\x20following\x20the\x20presenter','executeCommand','You\x27re\x20not\x20following\x20the\x20presenter','object','SetZoomRatioOperation','version','default','IUIPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','jsx','startFollowing','clear','dispose$','string','connectInjector','onCommandExecuted','getUnitId','add','useState','You\x27are\x20offline.','ICommandService','Button','text','PRESENTING','_startFollowing','registerSharedOperation','setConfig','_liveShareService','shouldShareOperation','UNIVER_SHEET','dispose','find','_commandService','_handleNewHost','reverse','NOT_FOLLOWING','mergeOverrideWithDependencies','call','touchDependencies','BuiltInUIPart','25ptaiNp','BehaviorSubject','idle','_injector','following','Disposable','29733hIsXQr','Fragment','IUniverInstanceService','symbol','2933820sDlUgb','getCurrentTypeOfUnit$','You\x27re\x20presenting\x20the\x20document','presenting','_collabSessionService','stopPresenting','init','UNIVER_LIVE_SHARE_PLUGIN','LiveShareIcon','from','LIVESHARE_TERMINATE','Inject','ONLINE','takeUntil','pluginName','_sharedOperations','CollaborationSessionService','_commandDisposable','LIVESHARE_REQUEST_HOST','_startPresenting','Plugin','getTypeOfUnitAdded$','getOwnPropertyDescriptor','includes','_presenter','then','parseProtocolChangeset','type','has','registerInitialStateReporter','Present\x20this\x20document','useDependency','_reporters','event$','_handleOffline','651585pEOmZr','unit','_beIdle'];_0x445c=function(){return _0x32ee14;};return _0x445c();}let N=class extends n[_0x358850(0x135)]{constructor(_0x2a0dbd){const _0x35e3fb=_0x358850;super(),this['_liveShareService']=_0x2a0dbd,this[_0x35e3fb(0x18f)]();}[_0x358850(0x18f)](){const _0x2ccbd3=_0x358850;[d[_0x2ccbd3(0x1d1)]['id'],d[_0x2ccbd3(0x1aa)]['id'],r[_0x2ccbd3(0x193)]['id']][_0x2ccbd3(0x17c)](_0x25ba1b=>{const _0x49565f=_0x2ccbd3;this['disposeWithMe'](this[_0x49565f(0x123)]['registerSharedOperation'](_0x25ba1b));});}};N=v([_(0x0,(0x0,n[_0x358850(0x145)])(g))],N);let P=class extends n[_0x358850(0x14e)]{constructor(_0x95b8b=M,_0x34fda6,_0x50278c){const _0x2deee8=_0x358850;super(),this[_0x2deee8(0x1b3)]=_0x95b8b,this['_injector']=_0x34fda6,this['_configService']=_0x50278c;let {..._0xe9f441}=(0x0,n['merge'])({},M,this['_config']);this['_configService'][_0x2deee8(0x122)](_0x2deee8(0x1a4),_0xe9f441);}[_0x358850(0x1a9)](){const _0xfe3ef0=_0x358850;(0x0,n['registerDependencies'])(this['_injector'],(0x0,n[_0xfe3ef0(0x12c)])([[g],[y],[N],[k]],this['_config'][_0xfe3ef0(0x1bd)])),(0x0,n[_0xfe3ef0(0x12e)])(this[_0xfe3ef0(0x133)],[[N]]);}[_0x358850(0x1c0)](){const _0x1f152e=_0x358850;(0x0,n[_0x1f152e(0x12e)])(this[_0x1f152e(0x133)],[[k]]);}};h(P,_0x358850(0x155),n[_0x358850(0x1a3)][_0x358850(0x1b6)]),h(P,_0x358850(0x148),_0x358850(0x141)),h(P,'packageName',A),h(P,_0x358850(0x1d2),j),P=v([(0x0,n[_0x358850(0x1c1)])(t[_0x358850(0x175)]),_(0x1,(0x0,n[_0x358850(0x145)])(n[_0x358850(0x1be)])),_(0x2,n[_0x358850(0x1b1)])],P),Object['defineProperty'](exports,_0x358850(0x18d),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x358850(0x1a7)]=S,Object[_0x358850(0x1a2)](exports,_0x358850(0x16f),{'enumerable':!0x0,'get':function(){return y;}}),Object['defineProperty'](exports,_0x358850(0x1a6),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x358850(0x18a)]=g,exports['LiveShareStatus']=b,Object[_0x358850(0x1a2)](exports,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return P;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x288a82=_0x3e28;(function(_0x598a6b,_0x307b4b){const _0x54801b=_0x3e28,_0x2a4221=_0x598a6b();while(!![]){try{const _0x12d28a=parseInt(_0x54801b(0x8e))/0x1*(-parseInt(_0x54801b(0x87))/0x2)+-parseInt(_0x54801b(0x71))/0x3*(-parseInt(_0x54801b(0x7e))/0x4)+parseInt(_0x54801b(0x92))/0x5*(parseInt(_0x54801b(0x72))/0x6)+parseInt(_0x54801b(0x7d))/0x7*(-parseInt(_0x54801b(0x75))/0x8)+parseInt(_0x54801b(0x8d))/0x9+-parseInt(_0x54801b(0x7c))/0xa*(-parseInt(_0x54801b(0x73))/0xb)+-parseInt(_0x54801b(0x93))/0xc*(parseInt(_0x54801b(0x95))/0xd);if(_0x12d28a===_0x307b4b)break;else _0x2a4221['push'](_0x2a4221['shift']());}catch(_0x45aa89){_0x2a4221['push'](_0x2a4221['shift']());}}}(_0x143c,0x3145f));import{LiveShareController as _0x96f8c8,LiveShareStatus as _0x24d91b}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x29b743,UniverInstanceType as _0x5677c5}from'@univerjs/core';import{FEnum as _0x3fdd56,FUniver as _0x4c6ff6}from'@univerjs/core/facade';function o(_0x5bab16){'@babel/helpers - typeof';const _0x1a7cdb=_0x3e28;return o=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x1a7cdb(0x89)?function(_0x197549){return typeof _0x197549;}:function(_0x2f891a){const _0x2756e4=_0x1a7cdb;return _0x2f891a&&typeof Symbol==_0x2756e4(0x6e)&&_0x2f891a['constructor']===Symbol&&_0x2f891a!==Symbol[_0x2756e4(0x86)]?_0x2756e4(0x89):typeof _0x2f891a;},o(_0x5bab16);}function _0x143c(){const _0x2c5108=['startFollowing','getLiveShareStatus','1623006QqwbOe','50129MCxsrN','stopFollowing','getUnitId','LiveShareStatusEnum','180935ghosXr','5026956xWpHLn','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','13SsyGrY','extend','default','function','No\x20active\x20workbook\x20found.','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','36408yIbFpD','18vnshRO','1995818mudTRY','_initialize','2184wqfRwT','tryStartPresenting','string','toPrimitive','defineProperty','getLiveShareCoordinatorSync','object','10yuBIdU','2597lWnHVy','116rlgiXr','getCurrentUnitOfType','get','startPresenting','getStatus','UNIVER_SHEET','_injector','_liveShareController','prototype','4YVBioX','call','symbol','IDLE'];_0x143c=function(){return _0x2c5108;};return _0x143c();}function s(_0x2cf311,_0x114eef){const _0x50a216=_0x3e28;if(o(_0x2cf311)!=_0x50a216(0x7b)||!_0x2cf311)return _0x2cf311;var _0x584c9c=_0x2cf311[Symbol[_0x50a216(0x78)]];if(_0x584c9c!==void 0x0){var _0xfabacd=_0x584c9c[_0x50a216(0x88)](_0x2cf311,_0x114eef||_0x50a216(0x6d));if(o(_0xfabacd)!=_0x50a216(0x7b))return _0xfabacd;throw TypeError(_0x50a216(0x70));}return(_0x114eef===_0x50a216(0x77)?String:Number)(_0x2cf311);}function c(_0x507389){const _0x5f6390=_0x3e28;var _0x36785c=s(_0x507389,'string');return o(_0x36785c)==_0x5f6390(0x89)?_0x36785c:_0x36785c+'';}function _0x3e28(_0xdce574,_0x2a10d0){_0xdce574=_0xdce574-0x6c;const _0x143c57=_0x143c();let _0x3e282a=_0x143c57[_0xdce574];return _0x3e282a;}function l(_0x4289cc,_0x1ef9db,_0x3dd061){const _0x5cb6a8=_0x3e28;return(_0x1ef9db=c(_0x1ef9db))in _0x4289cc?Object[_0x5cb6a8(0x79)](_0x4289cc,_0x1ef9db,{'value':_0x3dd061,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4289cc[_0x1ef9db]=_0x3dd061,_0x4289cc;}var u=class extends _0x4c6ff6{constructor(..._0x175a99){super(..._0x175a99),l(this,'_liveShareController',void 0x0);}[_0x288a82(0x74)](_0x136c6b){const _0x43186d=_0x288a82;this[_0x43186d(0x85)]=_0x136c6b[_0x43186d(0x80)](_0x96f8c8);}[_0x288a82(0x8c)](){const _0x3fdca1=_0x288a82;var _0x123451;let _0x40e11a=this['_injector'][_0x3fdca1(0x80)](_0x29b743)[_0x3fdca1(0x7f)](_0x5677c5['UNIVER_SHEET']);if(!_0x40e11a)throw Error('No\x20active\x20workbook\x20found.');let _0x34a642=_0x40e11a['getUnitId'](),_0x3fccc9=this[_0x3fdca1(0x85)]['getLiveShareCoordinatorSync'](_0x34a642);return(_0x123451=_0x3fccc9==null?void 0x0:_0x3fccc9[_0x3fdca1(0x82)]())==null?_0x24d91b[_0x3fdca1(0x8a)]:_0x123451;}[_0x288a82(0x8b)](){const _0x1283d4=_0x288a82;let _0x4a6c9b=this['_injector']['get'](_0x29b743)['getCurrentUnitOfType'](_0x5677c5['UNIVER_SHEET']);if(!_0x4a6c9b)throw Error('No\x20active\x20workbook\x20found.');let _0x20762a=_0x4a6c9b[_0x1283d4(0x90)](),_0x3c15f8=this[_0x1283d4(0x85)][_0x1283d4(0x7a)](_0x20762a);if(!_0x3c15f8)throw Error(_0x1283d4(0x94));_0x3c15f8[_0x1283d4(0x8b)]();}[_0x288a82(0x8f)](){const _0xad092c=_0x288a82;let _0x2d16c3=this[_0xad092c(0x84)][_0xad092c(0x80)](_0x29b743)[_0xad092c(0x7f)](_0x5677c5[_0xad092c(0x83)]);if(!_0x2d16c3)throw Error(_0xad092c(0x6f));let _0x46d0de=_0x2d16c3[_0xad092c(0x90)](),_0x29d9f2=this[_0xad092c(0x85)][_0xad092c(0x7a)](_0x46d0de);if(!_0x29d9f2)throw Error(_0xad092c(0x94));_0x29d9f2[_0xad092c(0x8f)]();}[_0x288a82(0x81)](){const _0x45a0df=_0x288a82;let _0x261c1b=this[_0x45a0df(0x84)]['get'](_0x29b743)['getCurrentUnitOfType'](_0x5677c5[_0x45a0df(0x83)]);if(!_0x261c1b)throw Error('No\x20active\x20workbook\x20found.');let _0x300f54=_0x261c1b[_0x45a0df(0x90)](),_0x3be927=this['_liveShareController'][_0x45a0df(0x7a)](_0x300f54);if(!_0x3be927)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3be927[_0x45a0df(0x76)]();}['stopPresenting'](){const _0x1853ca=_0x288a82;let _0x211265=this[_0x1853ca(0x84)][_0x1853ca(0x80)](_0x29b743)[_0x1853ca(0x7f)](_0x5677c5['UNIVER_SHEET']);if(!_0x211265)throw Error(_0x1853ca(0x6f));let _0x51c20e=_0x211265[_0x1853ca(0x90)](),_0x13b87d=this['_liveShareController'][_0x1853ca(0x7a)](_0x51c20e);if(!_0x13b87d)throw Error(_0x1853ca(0x94));_0x13b87d['stopPresenting']();}};_0x4c6ff6['extend'](u);var d=class extends _0x3fdd56{get[_0x288a82(0x91)](){return _0x24d91b;}};_0x3fdd56[_0x288a82(0x6c)](d);export{};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x163933=_0x49a4;(function(_0x166d25,_0xb36586){const _0x5ed3f5=_0x49a4,_0x5e91b3=_0x166d25();while(!![]){try{const _0x5a83e8=parseInt(_0x5ed3f5(0x1e0))/0x1+parseInt(_0x5ed3f5(0x18e))/0x2*(-parseInt(_0x5ed3f5(0x1ba))/0x3)+-parseInt(_0x5ed3f5(0x18f))/0x4+parseInt(_0x5ed3f5(0x19f))/0x5*(-parseInt(_0x5ed3f5(0x177))/0x6)+parseInt(_0x5ed3f5(0x17e))/0x7+-parseInt(_0x5ed3f5(0x1e2))/0x8*(-parseInt(_0x5ed3f5(0x1f2))/0x9)+parseInt(_0x5ed3f5(0x1eb))/0xa*(-parseInt(_0x5ed3f5(0x1da))/0xb);if(_0x5a83e8===_0xb36586)break;else _0x5e91b3['push'](_0x5e91b3['shift']());}catch(_0x4b0be9){_0x5e91b3['push'](_0x5e91b3['shift']());}}}(_0x4c3f,0x670ae));import{CollaborationEvent as _0x2f4f4b,parseProtocolChangeset as _0xf7fca8}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1dc03d,SessionStatus as _0x43364d,UniverCollaborationClientPlugin as _0x33b357}from'@univerjs-pro/collaboration-client';import{CommandType as _0x41b375,DependentOn as _0x372528,Disposable as _0x3a6ee4,DisposableCollection as _0x373e29,ICommandService as _0x15ae55,IConfigService as _0x3287d9,IUniverInstanceService as _0x5dd410,Inject as _0x147d4e,Injector as _0x430c6d,Plugin as _0x2c55cc,RxDisposable as _0x3eff75,UniverInstanceType as _0x19d69b,merge as _0x1f0203,mergeOverrideWithDependencies as _0x76a44e,registerDependencies as _0x492046,toDisposable as _0x2c9771,touchDependencies as _0x4b567d}from'@univerjs/core';import{InsertSheetMutation as _0x29a9fa,SetWorksheetActiveOperation as _0x24df1b}from'@univerjs/sheets';import{BehaviorSubject as _0x1bdd9f,Subject as _0x4a9313}from'rxjs';import{takeUntil as _0x66b583,throttleTime as _0x23f001}from'rxjs/operators';import{BuiltInUIPart as _0x27c857,IUIPartsService as _0x2568a8,connectInjector as _0x34038f,useDependency as _0x4d0b0b,useObservable as _0x471499}from'@univerjs/ui';function _0x4c3f(){const _0x1d12b0=['_reporters','HEADER_MENU','clear','presenter','_injector','set','FOLLOWING','_commandService','setConfig','status$','executeCommand','LIVESHARE_FETCH_OPERATIONS','subscribe','Start','_handleOnline','getLiveShareCoordinatorSync','data','onStarting','call','6rifvkw','memberID','idle','prototype','_startFollowing','_univerInstanceService','_startPresenting','3153962cexbSX','packageName','toPrimitive','getValue','pluginName','createInstance','_handleNewChangeSets','end','@univerjs-pro/live-share','getTypeOfUnitAdded$','sessionStatus$','decorate','ONLINE','asObservable','pipe','button','12JjJguK','3217576HJgNcE','override','getCurrentTypeOfUnit$','getLiveShareCoordinator','_entities','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','LIVESHARE_NEW_HOST','_unitID','LIVESHARE_TERMINATE','offline','OPERATION','_collabSession','length','shouldShareOperation','_commandDisposable','1497950knNXPS','requireSession','_startLiveShareCoordinator','sheet','tryStartPresenting','OFFLINE','onRendered','current','delete','function','default','getOwnPropertyDescriptor','_collabSessionService','get','stringify','_sharedOperations','following','from','defineProperty','You\x27are\x20offline.','includes','_config','_handleOperation','unitId','div','_handleOffline','complete','82179tBeTmf','You\x27re\x20presenting\x20the\x20document','getInitialStates','forEach','_status','unit','getStatus','getUnitId','presenting','_stopFollowing','disposeWithMe','has','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','add','string','_handleTerminate','_status$','symbol','mutations','_configService','_uiPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','_liveShareService','not-following','getTypeOfUnitDisposed$','reverse','getConfig','UNIVER_LIVE_SHARE_PLUGIN','constructor','registerComponent','_presenter','2560206GIuVnm','1.0.0-alpha.1','_init','onCommandExecuted','send','_mountLiveShare','635588GlObXK','version','1673992efwRCn','find','params','getMemberID','next','LIVESHARE_OPERATION','then','Start\x20following','object','10nwvzzS','init','NOT_FOLLOWING','_handleNewHost','_stopPresenting','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','type','36ekssiw','UNIVER_UNKNOWN','PRESENTING','dispose','dispose$','unsubscribe'];_0x4c3f=function(){return _0x1d12b0;};return _0x4c3f();}import{Button as _0xac3a18,Dropdown as _0x4045b5,clsx as _0x38f52b}from'@univerjs/design';import{LiveShareIcon as _0x5e9cb6}from'@univerjs/icons';import{useEffect as _0x542576,useRef as _0x418b8a,useState as _0x41fdc7}from'react';import{Fragment as _0x98295f,jsx as _0x50789a,jsxs as _0x16b88}from'react/jsx-runtime';import{SetScrollOperation as _0x452de4,SetZoomRatioOperation as _0x284992}from'@univerjs/sheets-ui';function R(_0x2e5dbd){'@babel/helpers - typeof';const _0x1909dc=_0x49a4;return R=typeof Symbol==_0x1909dc(0x1a8)&&typeof Symbol['iterator']=='symbol'?function(_0x1aede5){return typeof _0x1aede5;}:function(_0x4970eb){const _0x1f32d9=_0x1909dc;return _0x4970eb&&typeof Symbol=='function'&&_0x4970eb[_0x1f32d9(0x1d7)]===Symbol&&_0x4970eb!==Symbol[_0x1f32d9(0x17a)]?_0x1f32d9(0x1cb):typeof _0x4970eb;},R(_0x2e5dbd);}function z(_0x360513,_0x561972){const _0x566e15=_0x49a4;if(R(_0x360513)!=_0x566e15(0x1ea)||!_0x360513)return _0x360513;var _0x1ca540=_0x360513[Symbol[_0x566e15(0x180)]];if(_0x1ca540!==void 0x0){var _0xaa31f1=_0x1ca540[_0x566e15(0x176)](_0x360513,_0x561972||_0x566e15(0x1a9));if(R(_0xaa31f1)!=_0x566e15(0x1ea))return _0xaa31f1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x561972===_0x566e15(0x1c8)?String:Number)(_0x360513);}function B(_0x298d17){const _0x2bc6a9=_0x49a4;var _0x2e51f5=z(_0x298d17,_0x2bc6a9(0x1c8));return R(_0x2e51f5)==_0x2bc6a9(0x1cb)?_0x2e51f5:_0x2e51f5+'';}function V(_0x4bc780,_0x3b6231,_0x10d764){return(_0x3b6231=B(_0x3b6231))in _0x4bc780?Object['defineProperty'](_0x4bc780,_0x3b6231,{'value':_0x10d764,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4bc780[_0x3b6231]=_0x10d764,_0x4bc780;}function _0x49a4(_0x430074,_0x2c9319){_0x430074=_0x430074-0x175;const _0x4c3fa5=_0x4c3f();let _0x49a4ac=_0x4c3fa5[_0x430074];return _0x49a4ac;}var H=class extends _0x3a6ee4{constructor(..._0x39f7fb){const _0x4d3fcd=_0x49a4;super(..._0x39f7fb),V(this,_0x4d3fcd(0x1ae),new Set()),V(this,_0x4d3fcd(0x1f8),new Set());}['registerSharedOperation'](_0xac2562){const _0x14bfae=_0x49a4;return this[_0x14bfae(0x1ae)]['add'](_0xac2562),_0x2c9771(()=>this['_sharedOperations'][_0x14bfae(0x1a7)](_0xac2562));}['registerInitialStateReporter'](_0x4b672f){const _0x5870a3=_0x49a4;return this['_reporters'][_0x5870a3(0x1c7)](_0x4b672f),_0x2c9771(()=>this[_0x5870a3(0x1f8)][_0x5870a3(0x1a7)](_0x4b672f));}[_0x163933(0x19d)](_0x2c4e5c){const _0x1680f1=_0x163933;return this[_0x1680f1(0x1ae)][_0x1680f1(0x1c5)](_0x2c4e5c);}[_0x163933(0x1bc)](_0x48c9c8){const _0x3e8813=_0x163933;return Array[_0x3e8813(0x1b0)](this['_reporters'])['map'](_0x56600c=>_0x56600c(_0x48c9c8));}};function U(_0xe4e8b3,_0x1df87b){return function(_0xa60193,_0x182af4){_0x1df87b(_0xa60193,_0x182af4,_0xe4e8b3);};}function W(_0x386c97,_0x3a1df4,_0x4c0591,_0x1ea34e){const _0x3f17be=_0x163933;var _0x5a9968=arguments['length'],_0x2d3b37=_0x5a9968<0x3?_0x3a1df4:_0x1ea34e===null?_0x1ea34e=Object[_0x3f17be(0x1aa)](_0x3a1df4,_0x4c0591):_0x1ea34e,_0x1b9b97;if(typeof Reflect=='object'&&typeof Reflect[_0x3f17be(0x189)]==_0x3f17be(0x1a8))_0x2d3b37=Reflect['decorate'](_0x386c97,_0x3a1df4,_0x4c0591,_0x1ea34e);else{for(var _0x1a01d8=_0x386c97[_0x3f17be(0x19c)]-0x1;_0x1a01d8>=0x0;_0x1a01d8--)(_0x1b9b97=_0x386c97[_0x1a01d8])&&(_0x2d3b37=(_0x5a9968<0x3?_0x1b9b97(_0x2d3b37):_0x5a9968>0x3?_0x1b9b97(_0x3a1df4,_0x4c0591,_0x2d3b37):_0x1b9b97(_0x3a1df4,_0x4c0591))||_0x2d3b37);}return _0x5a9968>0x3&&_0x2d3b37&&Object[_0x3f17be(0x1b1)](_0x3a1df4,_0x4c0591,_0x2d3b37),_0x2d3b37;}let G=class extends _0x3eff75{constructor(_0x226578,_0x47fef8,_0x38b540){const _0x226b13=_0x163933;super(),this[_0x226b13(0x17c)]=_0x226578,this[_0x226b13(0x1fc)]=_0x47fef8,this[_0x226b13(0x1ab)]=_0x38b540,V(this,_0x226b13(0x193),new Map()),this[_0x226b13(0x1dc)]();}async[_0x163933(0x192)](_0x24bf37){const _0x5ea5c0=_0x163933;return this[_0x5ea5c0(0x193)]['has'](_0x24bf37)||await this[_0x5ea5c0(0x1a1)](_0x24bf37),this[_0x5ea5c0(0x193)][_0x5ea5c0(0x1ac)](_0x24bf37);}[_0x163933(0x207)](_0x4a1474){const _0x2ebb49=_0x163933;var _0x592831;return(_0x592831=this[_0x2ebb49(0x193)]['get'](_0x4a1474))==null?null:_0x592831;}[_0x163933(0x1dc)](){const _0x2cdc17=_0x163933;this[_0x2cdc17(0x17c)][_0x2cdc17(0x187)](_0x19d69b['UNIVER_SHEET'])[_0x2cdc17(0x18c)](_0x66b583(this['dispose$']))[_0x2cdc17(0x204)](async _0x15dbb3=>{const _0x5f77be=_0x2cdc17;let _0x3a2665=_0x15dbb3[_0x5f77be(0x1bf)]['getUnitId']();this['_entities']['has'](_0x3a2665)||this[_0x5f77be(0x1a1)](_0x3a2665);}),this[_0x2cdc17(0x17c)][_0x2cdc17(0x1d3)](_0x19d69b['UNIVER_SHEET'])['pipe'](_0x66b583(this[_0x2cdc17(0x1f6)]))[_0x2cdc17(0x204)](_0x5012e4=>{const _0x59db71=_0x2cdc17;let _0xc87cc0=_0x5012e4[_0x59db71(0x1c1)](),_0x37f9cd=this[_0x59db71(0x193)][_0x59db71(0x1ac)](_0xc87cc0);_0x37f9cd==null||_0x37f9cd['dispose']();});}async[_0x163933(0x1a1)](_0x5df195){const _0x3d0cb1=_0x163933;let _0x13f003=await this[_0x3d0cb1(0x1ab)][_0x3d0cb1(0x1a0)](_0x5df195),_0x202b31=this['_injector'][_0x3d0cb1(0x183)](q,_0x5df195,_0x13f003);return _0x202b31['init'](),this[_0x3d0cb1(0x193)]['set'](_0x5df195,_0x202b31),_0x202b31;}};G=W([U(0x0,_0x5dd410),U(0x1,_0x147d4e(_0x430c6d)),U(0x2,_0x147d4e(_0x1dc03d))],G);let K=function(_0x56b824){const _0x5d24ed=_0x163933;return _0x56b824[_0x5d24ed(0x1a4)]='offline',_0x56b824['IDLE']='idle',_0x56b824[_0x5d24ed(0x1fe)]=_0x5d24ed(0x1af),_0x56b824[_0x5d24ed(0x1ed)]='not-following',_0x56b824[_0x5d24ed(0x1f4)]='presenting',_0x56b824;}({}),q=class extends _0x3eff75{get['_status'](){const _0x8c5651=_0x163933;return this[_0x8c5651(0x1ca)][_0x8c5651(0x181)]();}constructor(_0x32fb17,_0x183cd3,_0x8672c3,_0x50f8c5,_0x10d38f){const _0x38b91d=_0x163933;super(),this['_unitID']=_0x32fb17,this['_collabSession']=_0x183cd3,this[_0x38b91d(0x1cd)]=_0x8672c3,this['_liveShareService']=_0x50f8c5,this[_0x38b91d(0x1ff)]=_0x10d38f,V(this,'_status$',new _0x1bdd9f('idle')),V(this,_0x38b91d(0x201),this[_0x38b91d(0x1ca)][_0x38b91d(0x18b)]()),V(this,_0x38b91d(0x1dc),!0x1),V(this,_0x38b91d(0x19e),null),V(this,_0x38b91d(0x1d9),null);}[_0x163933(0x1f5)](){const _0x5c4bde=_0x163933;var _0x50be78;(_0x50be78=this[_0x5c4bde(0x19e)])==null||_0x50be78['dispose'](),this[_0x5c4bde(0x1ca)][_0x5c4bde(0x1e6)](_0x5c4bde(0x179)),this[_0x5c4bde(0x1ca)][_0x5c4bde(0x1b9)]();}[_0x163933(0x1c0)](){const _0x5d2248=_0x163933;return this[_0x5d2248(0x1be)];}[_0x163933(0x1ec)](){const _0xd79c49=_0x163933;this[_0xd79c49(0x1dc)]||(this[_0xd79c49(0x1dc)]=!0x0,this[_0xd79c49(0x19b)][_0xd79c49(0x188)][_0xd79c49(0x18c)](_0x66b583(this[_0xd79c49(0x1f6)]))[_0xd79c49(0x204)](_0x28822a=>{const _0x30a943=_0xd79c49;switch(_0x28822a){case _0x43364d[_0x30a943(0x1a4)]:this[_0x30a943(0x1b8)]();break;case _0x43364d[_0x30a943(0x18a)]:this[_0x30a943(0x206)]();break;default:}}),this[_0xd79c49(0x19b)]['event$']['pipe'](_0x66b583(this['dispose$']))['subscribe'](_0x565bc9=>{const _0x5f285e=_0xd79c49;let {eventID:_0x59cf12}=_0x565bc9;switch(_0x59cf12){case _0x2f4f4b[_0x5f285e(0x196)]:this[_0x5f285e(0x1ee)](_0x565bc9);break;case _0x2f4f4b[_0x5f285e(0x1e7)]:this[_0x5f285e(0x1b5)](_0x565bc9);break;case _0x2f4f4b[_0x5f285e(0x198)]:this[_0x5f285e(0x1c9)]();break;case _0x2f4f4b['NEW_CHANGESETS']:this[_0x5f285e(0x184)](_0x565bc9);break;default:}}));}[_0x163933(0x1a3)](){const _0x19b60e=_0x163933;this['_collabSession']['send']({'eventID':_0x2f4f4b[_0x19b60e(0x195)],'data':{'unitID':this['_unitID'],'userID':this[_0x19b60e(0x19b)][_0x19b60e(0x1e5)]()}},this['_unitID']);}['stopPresenting'](){const _0xbdaf9f=_0x163933;this[_0xbdaf9f(0x1be)]===_0xbdaf9f(0x1c2)&&(this['_status$'][_0xbdaf9f(0x1e6)](_0xbdaf9f(0x179)),this[_0xbdaf9f(0x19b)]['send']({'eventID':_0x2f4f4b[_0xbdaf9f(0x198)],'data':{'unitID':this[_0xbdaf9f(0x197)]}},this['_unitID']));}['startFollowing'](){const _0x352bd5=_0x163933;this[_0x352bd5(0x1be)]==='not-following'&&(this[_0x352bd5(0x1ca)][_0x352bd5(0x1e6)](_0x352bd5(0x1af)),this[_0x352bd5(0x17b)]());}['stopFollowing'](){const _0x54df9c=_0x163933;this[_0x54df9c(0x1be)]===_0x54df9c(0x1af)&&this[_0x54df9c(0x1c3)]();}[_0x163933(0x1ee)](_0x1d46da){const _0x1b552e=_0x163933;let {presenter:_0x2019ff}=_0x1d46da[_0x1b552e(0x208)],_0x42ec53=this[_0x1b552e(0x19b)][_0x1b552e(0x1e5)]();this[_0x1b552e(0x1d9)]=_0x2019ff,_0x2019ff===_0x42ec53?(this['_stopFollowing'](),this[_0x1b552e(0x17d)]()):this['_status']!=='not-following'&&(this[_0x1b552e(0x1ef)](),this[_0x1b552e(0x17b)]());}['_fetchOperations'](){const _0x542a10=_0x163933;let _0x1b4fb8={'eventID':_0x2f4f4b[_0x542a10(0x203)]};this[_0x542a10(0x19b)][_0x542a10(0x1de)](_0x1b4fb8,this['_unitID']);}[_0x163933(0x1c9)](){const _0x5a4953=_0x163933;this[_0x5a4953(0x1d9)]=null,this[_0x5a4953(0x1be)]!=='presenting'&&this['_beIdle']();}[_0x163933(0x184)](_0x109487){const _0x2a09bf=_0x163933;if(this[_0x2a09bf(0x1be)]==='following'&&this[_0x2a09bf(0x1d9)]===_0x109487[_0x2a09bf(0x208)][_0x2a09bf(0x178)]){let _0x233132=_0xf7fca8(_0x109487[_0x2a09bf(0x208)])[_0x2a09bf(0x1cc)][_0x2a09bf(0x1d4)]()[_0x2a09bf(0x1e3)](_0x4dc560=>_0x4dc560['id']===_0x29a9fa['id']);if(_0x233132){let _0x164df1=_0x233132[_0x2a09bf(0x1e4)][_0x2a09bf(0x1b6)],_0x768efc=_0x233132[_0x2a09bf(0x1e4)][_0x2a09bf(0x1a2)]['id'];setTimeout(()=>{const _0x5f586a=_0x2a09bf;this[_0x5f586a(0x1ff)][_0x5f586a(0x202)](_0x24df1b['id'],{'unitId':_0x164df1,'subUnitId':_0x768efc},{'fromCollab':!0x0});});}}}[_0x163933(0x17d)](){const _0x5d9911=_0x163933;var _0x59abbb;(_0x59abbb=this[_0x5d9911(0x19e)])==null||_0x59abbb[_0x5d9911(0x1f5)](),this[_0x5d9911(0x1ca)][_0x5d9911(0x1e6)](_0x5d9911(0x1c2));let _0x519bcd=new Map(),_0x4bba98=this[_0x5d9911(0x19e)]=new _0x373e29();_0x4bba98[_0x5d9911(0x1c7)](_0x2c9771(()=>{const _0x5ca6ba=_0x5d9911;_0x519bcd[_0x5ca6ba(0x1bd)](({subject:_0x3075c4,subscription:_0x3b94d6})=>{const _0x1443b7=_0x5ca6ba;_0x3b94d6[_0x1443b7(0x1f7)](),_0x3075c4[_0x1443b7(0x1b9)]();}),_0x519bcd[_0x5ca6ba(0x1fa)]();})),_0x4bba98[_0x5d9911(0x1c7)](this[_0x5d9911(0x1ff)][_0x5d9911(0x1dd)](_0x349dd1=>{const _0x44c970=_0x5d9911;if(_0x349dd1[_0x44c970(0x1f1)]!==_0x41b375[_0x44c970(0x19a)]||!this[_0x44c970(0x1d1)][_0x44c970(0x19d)](_0x349dd1['id']))return;let {id:_0x56b6fb}=_0x349dd1,_0x5984e8;if(_0x519bcd[_0x44c970(0x1c5)](_0x56b6fb))_0x5984e8=_0x519bcd[_0x44c970(0x1ac)](_0x56b6fb)['subject'];else{var _0x136831;_0x5984e8=new _0x4a9313();let _0x6bf016=_0x5984e8[_0x44c970(0x18c)](_0x23f001((_0x136831=this[_0x44c970(0x1cd)][_0x44c970(0x1d5)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x136831,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x44c970(0x204)](_0x161cdb=>{const _0x337870=_0x44c970;this[_0x337870(0x19b)][_0x337870(0x1de)]({'eventID':_0x2f4f4b[_0x337870(0x1e7)],'data':{'unitID':this['_unitID'],'operations':{[_0x161cdb['id']]:{'id':_0x161cdb['id'],'params':JSON[_0x337870(0x1ad)](_0x161cdb[_0x337870(0x1e4)])}}}},this['_unitID']);});_0x519bcd[_0x44c970(0x1fd)](_0x56b6fb,{'subject':_0x5984e8,'subscription':_0x6bf016});}_0x5984e8[_0x44c970(0x1e6)](_0x349dd1);})),this[_0x5d9911(0x1d1)]['getInitialStates'](this[_0x5d9911(0x197)])[_0x5d9911(0x1bd)](_0x289507=>this[_0x5d9911(0x19b)]['send']({'eventID':_0x2f4f4b[_0x5d9911(0x1e7)],'data':{'unitID':this[_0x5d9911(0x197)],'operations':{[_0x289507['id']]:{'id':_0x289507['id'],'params':JSON['stringify'](_0x289507[_0x5d9911(0x1e4)])}}}},this[_0x5d9911(0x197)]));}[_0x163933(0x1ef)](){const _0x16a67e=_0x163933;var _0x59d750;this[_0x16a67e(0x1ca)]['next'](_0x16a67e(0x179)),(_0x59d750=this[_0x16a67e(0x19e)])==null||_0x59d750[_0x16a67e(0x1f5)](),this[_0x16a67e(0x19e)]=null;}[_0x163933(0x17b)](){const _0x5c1ac5=_0x163933;var _0x125d5f;(_0x125d5f=this[_0x5c1ac5(0x19e)])==null||_0x125d5f[_0x5c1ac5(0x1f5)](),this[_0x5c1ac5(0x1ca)]['next'](_0x5c1ac5(0x1af));}['_beIdle'](){const _0x1c0665=_0x163933;var _0x365def;this[_0x1c0665(0x1ca)][_0x1c0665(0x1e6)](_0x1c0665(0x179)),(_0x365def=this['_commandDisposable'])==null||_0x365def[_0x1c0665(0x1f5)](),this[_0x1c0665(0x19e)]=null;}[_0x163933(0x1c3)](){const _0x16fb98=_0x163933;var _0x5ae3ba;this[_0x16fb98(0x1ca)]['next'](_0x16fb98(0x1d2)),(_0x5ae3ba=this['_commandDisposable'])==null||_0x5ae3ba[_0x16fb98(0x1f5)]();}[_0x163933(0x1b5)](_0x2a7e7c){const _0x434bd5=_0x163933;if([_0x434bd5(0x1c2),_0x434bd5(0x1d2),_0x434bd5(0x199)][_0x434bd5(0x1b3)](this[_0x434bd5(0x1be)])||!_0x2a7e7c[_0x434bd5(0x208)][_0x434bd5(0x1fb)]||_0x2a7e7c['data'][_0x434bd5(0x1fb)]===this[_0x434bd5(0x19b)][_0x434bd5(0x1e5)]())return;this[_0x434bd5(0x1be)]===_0x434bd5(0x179)&&this[_0x434bd5(0x17b)]();let _0x747534=_0x2a7e7c['data']['operations'];Object['values'](_0x747534)['forEach'](_0x46610a=>{const _0x405ca9=_0x434bd5;this[_0x405ca9(0x1ff)]['executeCommand'](_0x46610a['id'],_0x46610a['params']?JSON['parse'](_0x46610a[_0x405ca9(0x1e4)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5e049c=_0x163933;var _0x4abaa6;this['_status$'][_0x5e049c(0x1e6)](_0x5e049c(0x199)),(_0x4abaa6=this[_0x5e049c(0x19e)])==null||_0x4abaa6[_0x5e049c(0x1f5)]();}[_0x163933(0x206)](){const _0x34a1f0=_0x163933;this['_status$'][_0x34a1f0(0x1e6)](_0x34a1f0(0x179)),this['_fetchOperations']();}};q=W([U(0x2,_0x3287d9),U(0x3,_0x147d4e(H)),U(0x4,_0x15ae55)],q);function J(){const _0x544e9c=_0x163933;let _0x18e9df=_0x4d0b0b(G),_0x47d618=_0x4d0b0b(_0x5dd410),_0xe72ba5=_0x471499(()=>_0x47d618[_0x544e9c(0x191)](_0x19d69b[_0x544e9c(0x194)]),void 0x0,!0x1,[]),[_0x554ef2,_0x2c5c35]=_0x41fdc7(null),[_0x4d2e68,_0x28c5a7]=_0x41fdc7(_0x544e9c(0x179)),_0xd2604d=_0x418b8a(null);return _0x542576(()=>(_0xe72ba5&&_0x18e9df[_0x544e9c(0x192)](_0xe72ba5[_0x544e9c(0x1c1)]())[_0x544e9c(0x1e8)](_0x349de9=>{const _0x20ae39=_0x544e9c;_0x2c5c35(_0x349de9),_0xd2604d['current']=_0x349de9['status$'][_0x20ae39(0x204)](_0x3be167=>{_0x28c5a7(_0x3be167);});}),()=>{const _0x3f1dd3=_0x544e9c;var _0xcaf005;(_0xcaf005=_0xd2604d[_0x3f1dd3(0x1a6)])==null||_0xcaf005[_0x3f1dd3(0x1f7)](),_0xd2604d['current']=null;}),[_0xe72ba5,_0x18e9df]),_0x554ef2?_0x50789a(_0x4045b5,{'align':_0x544e9c(0x185),'disabled':_0x4d2e68==='offline','className':_0x544e9c(0x1f0),'overlay':_0x50789a(se,{'status':_0x4d2e68,'coordinator':_0x554ef2}),'children':_0x50789a(_0x544e9c(0x18d),{'className':_0x38f52b(_0x544e9c(0x1c6),{'univer-cursor-not-allowed':_0x4d2e68==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4d2e68!==_0x544e9c(0x199)}),'type':_0x544e9c(0x18d),'children':_0x50789a(_0x5e9cb6,{})})}):null;}function se(_0x5aa10c){const _0x7863ca=_0x163933;let {status:_0x3e622d,coordinator:_0x5e64a1}=_0x5aa10c;switch(_0x3e622d){case _0x7863ca(0x179):return _0x50789a(ce,{'coordinator':_0x5e64a1});case'following':return _0x50789a(le,{'coordinator':_0x5e64a1});case _0x7863ca(0x1d2):return _0x50789a(ue,{'coordinator':_0x5e64a1});case'offline':return _0x50789a(de,{});case _0x7863ca(0x1c2):return _0x50789a(Y,{'coordinator':_0x5e64a1});default:return null;}}function ce(_0x540ff2){const _0x219aa0=_0x163933;let {coordinator:_0x19cf79}=_0x540ff2;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x219aa0(0x1b7),{'className':_0x219aa0(0x1cf),'children':'Present\x20this\x20document'}),_0x50789a(_0xac3a18,{'onClick':()=>_0x19cf79[_0x219aa0(0x1a3)](),'children':_0x219aa0(0x205)})]});}function le(_0x73a277){const _0x33576b=_0x163933;let {coordinator:_0x1086c9}=_0x73a277;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x33576b(0x1b7),{'className':_0x33576b(0x1cf),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x50789a(_0xac3a18,{'onClick':()=>_0x1086c9[_0x33576b(0x1d0)](),'children':'Stop\x20following'})]});}function ue(_0x531476){const _0xaf0dff=_0x163933;let {coordinator:_0x50bc01}=_0x531476;return _0x16b88(_0x98295f,{'children':[_0x50789a('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x50789a(_0xac3a18,{'variant':'text','onClick':()=>_0x50bc01['startFollowing'](),'children':_0xaf0dff(0x1e9)})]});}function Y(_0x399c83){const _0x3251e4=_0x163933;let {coordinator:_0x4980a9}=_0x399c83;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x3251e4(0x1b7),{'className':_0x3251e4(0x1cf),'children':_0x3251e4(0x1bb)}),_0x50789a(_0xac3a18,{'variant':_0x3251e4(0x1a9),'onClick':()=>_0x4980a9['stopPresenting'](),'children':'Stop\x20presenting'})]});}function de(){const _0x5194cd=_0x163933;return _0x50789a(_0x98295f,{'children':_0x5194cd(0x1b2)});}let X=class extends _0x3a6ee4{constructor(_0x593ddd,_0x26b2fc){const _0x15338f=_0x163933;super(),this[_0x15338f(0x1fc)]=_0x593ddd,this[_0x15338f(0x1ce)]=_0x26b2fc,this[_0x15338f(0x1df)]();}['_mountLiveShare'](){const _0x1070bb=_0x163933;this[_0x1070bb(0x1c4)](this[_0x1070bb(0x1ce)][_0x1070bb(0x1d8)](_0x27c857[_0x1070bb(0x1f9)],()=>_0x34038f(J,this[_0x1070bb(0x1fc)])));}};X=W([U(0x0,_0x147d4e(_0x430c6d)),U(0x1,_0x2568a8)],X);var fe=_0x163933(0x186),pe=_0x163933(0x1db);const Z={};let Q=class extends _0x3a6ee4{constructor(_0x6ac638){const _0x154f47=_0x163933;super(),this[_0x154f47(0x1d1)]=_0x6ac638,this[_0x154f47(0x1dc)]();}[_0x163933(0x1dc)](){const _0x356985=_0x163933;[_0x284992['id'],_0x452de4['id'],_0x24df1b['id']][_0x356985(0x1bd)](_0x5dd2df=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x5dd2df));});}};Q=W([U(0x0,_0x147d4e(H))],Q);let $=class extends _0x2c55cc{constructor(_0x12150e=Z,_0x4a2f61,_0x441862){const _0x15a3a7=_0x163933;super(),this[_0x15a3a7(0x1b4)]=_0x12150e,this['_injector']=_0x4a2f61,this[_0x15a3a7(0x1cd)]=_0x441862;let {..._0x40b82b}=_0x1f0203({},Z,this[_0x15a3a7(0x1b4)]);this[_0x15a3a7(0x1cd)][_0x15a3a7(0x200)]('live-share.config',_0x40b82b);}[_0x163933(0x175)](){const _0x1e6350=_0x163933;_0x492046(this['_injector'],_0x76a44e([[H],[G],[Q],[X]],this[_0x1e6350(0x1b4)][_0x1e6350(0x190)])),_0x4b567d(this[_0x1e6350(0x1fc)],[[Q]]);}[_0x163933(0x1a5)](){const _0x322fc0=_0x163933;_0x4b567d(this[_0x322fc0(0x1fc)],[[X]]);}};V($,_0x163933(0x1f1),_0x19d69b[_0x163933(0x1f3)]),V($,_0x163933(0x182),_0x163933(0x1d6)),V($,_0x163933(0x17f),fe),V($,_0x163933(0x1e1),pe),$=W([_0x372528(_0x33b357),U(0x1,_0x147d4e(_0x430c6d)),U(0x2,_0x3287d9)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x255515=_0x3685;(function(_0x1aa2a0,_0x58cf55){const _0x20cc02=_0x3685,_0x529053=_0x1aa2a0();while(!![]){try{const _0x40f922=parseInt(_0x20cc02(0xed))/0x1+-parseInt(_0x20cc02(0xdf))/0x2+parseInt(_0x20cc02(0xd8))/0x3*(parseInt(_0x20cc02(0xea))/0x4)+-parseInt(_0x20cc02(0x112))/0x5*(-parseInt(_0x20cc02(0x108))/0x6)+parseInt(_0x20cc02(0x11e))/0x7*(parseInt(_0x20cc02(0x131))/0x8)+-parseInt(_0x20cc02(0xfd))/0x9+-parseInt(_0x20cc02(0xa2))/0xa;if(_0x40f922===_0x58cf55)break;else _0x529053['push'](_0x529053['shift']());}catch(_0x3c05a6){_0x529053['push'](_0x529053['shift']());}}}(_0x3b04,0x2610d));function _0x3685(_0xb62f3b,_0x307532){_0xb62f3b=_0xb62f3b-0xa0;const _0x3b0423=_0x3b04();let _0x368518=_0x3b0423[_0xb62f3b];return _0x368518;}import{CollaborationEvent as _0x24db57,parseProtocolChangeset as _0x1198e4}from'@univerjs-pro/collaboration';function _0x3b04(){const _0x449aa2=['type','then','requireSession','_handleOperation','iterator','Stop\x20presenting','onStarting','_univerInstanceService','Start','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','init','next','subject','_handleTerminate','string','_presenter','setConfig','_liveShareService','Start\x20following','_status','_commandDisposable','getStatus','_stopFollowing','asObservable','You\x27re\x20presenting\x20the\x20document','_handleNewChangeSets','memberID','18375lzwwcF','onCommandExecuted','_unitID','div','NEW_CHANGESETS','getLiveShareCoordinatorSync','subscribe','231212xMiYMq','operations','createInstance','@univerjs-pro/live-share','has','getInitialStates','startFollowing','override','parse','live-share.config','getConfig','120yaNYwo','getTypeOfUnitAdded$','toPrimitive','141634RAygrU','complete','_reporters','pipe','Present\x20this\x20document','UNIVER_SHEET','add','symbol','_startLiveShareCoordinator','clear','_commandService','_beIdle','following','_startFollowing','values','_status$','1290924yKrksT','unit','tryStartPresenting','unsubscribe','getTypeOfUnitDisposed$','LIVESHARE_FETCH_OPERATIONS','text','registerSharedOperation','mutations','getLiveShareCoordinator','includes','300xbiTUV','offline','decorate','_injector','LIVESHARE_NEW_HOST','delete','dispose$','getValue','_handleNewHost','call','25040nyZbrT','_fetchOperations','_collabSessionService','NOT_FOLLOWING','_configService','getMemberID','status$','find','You\x27re\x20not\x20following\x20the\x20presenter','OFFLINE','UNIVER_UNKNOWN','dispose','8785TNUhkA','IDLE','params','disposeWithMe','shouldShareOperation','_handleOffline','defineProperty','packageName','object','from','registerInitialStateReporter','_config','default','presenting','getCurrentTypeOfUnit$','_entities','registerComponent','not-following','end','56hOUcUi','_init','set','UNIVER_LIVE_SHARE_PLUGIN','_sharedOperations','idle','stopPresenting','1696100JXTsVM','_handleOnline','forEach','_collabSession','_uiPartsService','onRendered','get','LIVESHARE_OPERATION','Stop\x20following','pluginName','data','stopFollowing','function','getUnitId','unitId','_stopPresenting','ONLINE','FOLLOWING','current','send','executeCommand','_mountLiveShare','presenter','stringify','event$','map'];_0x3b04=function(){return _0x449aa2;};return _0x3b04();}import{CollaborationSessionService as _0x5525bb,SessionStatus as _0x28a6cc,UniverCollaborationClientPlugin as _0x57b419}from'@univerjs-pro/collaboration-client';import{CommandType as _0xbc0567,DependentOn as _0x51ca48,Disposable as _0x516cea,DisposableCollection as _0xf927e1,ICommandService as _0x36e78,IConfigService as _0x3ceecb,IUniverInstanceService as _0x407d65,Inject as _0x2e8c25,Injector as _0x301770,Plugin as _0x22dadf,RxDisposable as _0x454ded,UniverInstanceType as _0x104030,merge as _0x22904a,mergeOverrideWithDependencies as _0x49a17a,registerDependencies as _0x4c4ef5,toDisposable as _0x7b8648,touchDependencies as _0x2efcc9}from'@univerjs/core';import{InsertSheetMutation as _0x417356,SetWorksheetActiveOperation as _0x825d3}from'@univerjs/sheets';import{BehaviorSubject as _0x48b8ba,Subject as _0x2a6741}from'rxjs';import{takeUntil as _0x471262,throttleTime as _0x464a34}from'rxjs/operators';import{BuiltInUIPart as _0xb35ac5,IUIPartsService as _0x396b3b,connectInjector as _0x2af7a6,useDependency as _0x49f746,useObservable as _0x3fc517}from'@univerjs/ui';import{Button as _0x1d87b5,Dropdown as _0x132052,clsx as _0x43282b}from'@univerjs/design';import{LiveShareIcon as _0x501a81}from'@univerjs/icons';import{useEffect as _0x4e5c5e,useRef as _0xf04e19,useState as _0x54d631}from'react';import{Fragment as _0x33c60e,jsx as _0x2b78ed,jsxs as _0x46c0ab}from'react/jsx-runtime';import{SetScrollOperation as _0x4eaff8,SetZoomRatioOperation as _0x35ad51}from'@univerjs/sheets-ui';function R(_0x291027){'@babel/helpers - typeof';const _0x1f3aaf=_0x3685;return R=typeof Symbol==_0x1f3aaf(0xae)&&typeof Symbol[_0x1f3aaf(0xc0)]==_0x1f3aaf(0xf4)?function(_0x1b7878){return typeof _0x1b7878;}:function(_0x2ae6c2){const _0x4075fe=_0x1f3aaf;return _0x2ae6c2&&typeof Symbol==_0x4075fe(0xae)&&_0x2ae6c2['constructor']===Symbol&&_0x2ae6c2!==Symbol['prototype']?_0x4075fe(0xf4):typeof _0x2ae6c2;},R(_0x291027);}function z(_0xf774cb,_0x586126){const _0x48ae5d=_0x3685;if(R(_0xf774cb)!=_0x48ae5d(0x126)||!_0xf774cb)return _0xf774cb;var _0x1c1ea4=_0xf774cb[Symbol[_0x48ae5d(0xec)]];if(_0x1c1ea4!==void 0x0){var _0x3c996e=_0x1c1ea4[_0x48ae5d(0x111)](_0xf774cb,_0x586126||_0x48ae5d(0x12a));if(R(_0x3c996e)!=_0x48ae5d(0x126))return _0x3c996e;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x586126===_0x48ae5d(0xcb)?String:Number)(_0xf774cb);}function B(_0x356567){const _0x20b902=_0x3685;var _0xe0ddc4=z(_0x356567,_0x20b902(0xcb));return R(_0xe0ddc4)==_0x20b902(0xf4)?_0xe0ddc4:_0xe0ddc4+'';}function V(_0x256d0e,_0x52b8fb,_0x1529ec){const _0x19f888=_0x3685;return(_0x52b8fb=B(_0x52b8fb))in _0x256d0e?Object[_0x19f888(0x124)](_0x256d0e,_0x52b8fb,{'value':_0x1529ec,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x256d0e[_0x52b8fb]=_0x1529ec,_0x256d0e;}var H=class extends _0x516cea{constructor(..._0x192d21){const _0xa16cae=_0x3685;super(..._0x192d21),V(this,_0xa16cae(0x135),new Set()),V(this,_0xa16cae(0xef),new Set());}[_0x255515(0x104)](_0x208fd9){const _0xb13642=_0x255515;return this['_sharedOperations'][_0xb13642(0xf3)](_0x208fd9),_0x7b8648(()=>this[_0xb13642(0x135)][_0xb13642(0x10d)](_0x208fd9));}[_0x255515(0x128)](_0x28e71d){const _0x1dfc3d=_0x255515;return this['_reporters'][_0x1dfc3d(0xf3)](_0x28e71d),_0x7b8648(()=>this[_0x1dfc3d(0xef)]['delete'](_0x28e71d));}[_0x255515(0x122)](_0x14588f){const _0x1ac9c3=_0x255515;return this[_0x1ac9c3(0x135)][_0x1ac9c3(0xe3)](_0x14588f);}[_0x255515(0xe4)](_0x45e5c6){const _0x5d40cb=_0x255515;return Array[_0x5d40cb(0x127)](this[_0x5d40cb(0xef)])[_0x5d40cb(0xbb)](_0x46c62c=>_0x46c62c(_0x45e5c6));}};function U(_0x388b15,_0xa8cce){return function(_0x126223,_0x1e36f4){_0xa8cce(_0x126223,_0x1e36f4,_0x388b15);};}function W(_0x77d6f1,_0x2cfdb6,_0x48fe60,_0x1bac49){const _0xc32ae2=_0x255515;var _0x3b206e=arguments['length'],_0x599a9b=_0x3b206e<0x3?_0x2cfdb6:_0x1bac49===null?_0x1bac49=Object['getOwnPropertyDescriptor'](_0x2cfdb6,_0x48fe60):_0x1bac49,_0x4c94be;if(typeof Reflect==_0xc32ae2(0x126)&&typeof Reflect[_0xc32ae2(0x10a)]==_0xc32ae2(0xae))_0x599a9b=Reflect[_0xc32ae2(0x10a)](_0x77d6f1,_0x2cfdb6,_0x48fe60,_0x1bac49);else{for(var _0x423fa2=_0x77d6f1['length']-0x1;_0x423fa2>=0x0;_0x423fa2--)(_0x4c94be=_0x77d6f1[_0x423fa2])&&(_0x599a9b=(_0x3b206e<0x3?_0x4c94be(_0x599a9b):_0x3b206e>0x3?_0x4c94be(_0x2cfdb6,_0x48fe60,_0x599a9b):_0x4c94be(_0x2cfdb6,_0x48fe60))||_0x599a9b);}return _0x3b206e>0x3&&_0x599a9b&&Object[_0xc32ae2(0x124)](_0x2cfdb6,_0x48fe60,_0x599a9b),_0x599a9b;}let G=class extends _0x454ded{constructor(_0x4c8b46,_0xf5eef4,_0x4a07c5){const _0x21a6b5=_0x255515;super(),this['_univerInstanceService']=_0x4c8b46,this[_0x21a6b5(0x10b)]=_0xf5eef4,this['_collabSessionService']=_0x4a07c5,V(this,_0x21a6b5(0x12d),new Map()),this[_0x21a6b5(0x132)]();}async[_0x255515(0x106)](_0x458f39){const _0x140a66=_0x255515;return this[_0x140a66(0x12d)][_0x140a66(0xe3)](_0x458f39)||await this[_0x140a66(0xf5)](_0x458f39),this[_0x140a66(0x12d)]['get'](_0x458f39);}[_0x255515(0xdd)](_0x526e39){const _0x804695=_0x255515;var _0x3e9a64;return(_0x3e9a64=this[_0x804695(0x12d)][_0x804695(0xa8)](_0x526e39))==null?null:_0x3e9a64;}[_0x255515(0x132)](){const _0x2afed9=_0x255515;this[_0x2afed9(0xc3)][_0x2afed9(0xeb)](_0x104030['UNIVER_SHEET'])['pipe'](_0x471262(this[_0x2afed9(0x10e)]))[_0x2afed9(0xde)](async _0x4d074c=>{const _0x515d50=_0x2afed9;let _0x18cbe8=_0x4d074c[_0x515d50(0xfe)]['getUnitId']();this[_0x515d50(0x12d)]['has'](_0x18cbe8)||this[_0x515d50(0xf5)](_0x18cbe8);}),this[_0x2afed9(0xc3)][_0x2afed9(0x101)](_0x104030[_0x2afed9(0xf2)])[_0x2afed9(0xf0)](_0x471262(this[_0x2afed9(0x10e)]))[_0x2afed9(0xde)](_0x3583fb=>{const _0x25e0db=_0x2afed9;let _0x49cf13=_0x3583fb[_0x25e0db(0xaf)](),_0x529e1c=this['_entities'][_0x25e0db(0xa8)](_0x49cf13);_0x529e1c==null||_0x529e1c[_0x25e0db(0x11d)]();});}async[_0x255515(0xf5)](_0x31b484){const _0x22fa46=_0x255515;let _0x396478=await this[_0x22fa46(0x114)][_0x22fa46(0xbe)](_0x31b484),_0xcc3b03=this[_0x22fa46(0x10b)][_0x22fa46(0xe1)](q,_0x31b484,_0x396478);return _0xcc3b03[_0x22fa46(0xc7)](),this['_entities'][_0x22fa46(0x133)](_0x31b484,_0xcc3b03),_0xcc3b03;}};G=W([U(0x0,_0x407d65),U(0x1,_0x2e8c25(_0x301770)),U(0x2,_0x2e8c25(_0x5525bb))],G);let K=function(_0x25ba5c){const _0x14e866=_0x255515;return _0x25ba5c[_0x14e866(0x11b)]=_0x14e866(0x109),_0x25ba5c[_0x14e866(0x11f)]='idle',_0x25ba5c[_0x14e866(0xb3)]=_0x14e866(0xf9),_0x25ba5c[_0x14e866(0x115)]=_0x14e866(0x12f),_0x25ba5c['PRESENTING']=_0x14e866(0x12b),_0x25ba5c;}({}),q=class extends _0x454ded{get[_0x255515(0xd0)](){const _0x5e429f=_0x255515;return this[_0x5e429f(0xfc)][_0x5e429f(0x10f)]();}constructor(_0x28834e,_0x16146f,_0x5ec53e,_0x42de2a,_0x47e0ef){const _0xb92322=_0x255515;super(),this['_unitID']=_0x28834e,this[_0xb92322(0xa5)]=_0x16146f,this[_0xb92322(0x116)]=_0x5ec53e,this[_0xb92322(0xce)]=_0x42de2a,this[_0xb92322(0xf7)]=_0x47e0ef,V(this,'_status$',new _0x48b8ba(_0xb92322(0xa0))),V(this,_0xb92322(0x118),this[_0xb92322(0xfc)][_0xb92322(0xd4)]()),V(this,_0xb92322(0x132),!0x1),V(this,_0xb92322(0xd1),null),V(this,_0xb92322(0xcc),null);}[_0x255515(0x11d)](){const _0x16b895=_0x255515;var _0x5f009e;(_0x5f009e=this[_0x16b895(0xd1)])==null||_0x5f009e[_0x16b895(0x11d)](),this[_0x16b895(0xfc)]['next']('idle'),this[_0x16b895(0xfc)]['complete']();}[_0x255515(0xd2)](){return this['_status'];}[_0x255515(0xc7)](){const _0x714908=_0x255515;this[_0x714908(0x132)]||(this[_0x714908(0x132)]=!0x0,this[_0x714908(0xa5)]['sessionStatus$'][_0x714908(0xf0)](_0x471262(this[_0x714908(0x10e)]))['subscribe'](_0x156c04=>{const _0x3613c3=_0x714908;switch(_0x156c04){case _0x28a6cc[_0x3613c3(0x11b)]:this['_handleOffline']();break;case _0x28a6cc[_0x3613c3(0xb2)]:this[_0x3613c3(0xa3)]();break;default:}}),this['_collabSession'][_0x714908(0xba)][_0x714908(0xf0)](_0x471262(this[_0x714908(0x10e)]))[_0x714908(0xde)](_0x5c4b1a=>{const _0x582c94=_0x714908;let {eventID:_0x582aac}=_0x5c4b1a;switch(_0x582aac){case _0x24db57[_0x582c94(0x10c)]:this[_0x582c94(0x110)](_0x5c4b1a);break;case _0x24db57[_0x582c94(0xa9)]:this[_0x582c94(0xbf)](_0x5c4b1a);break;case _0x24db57['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x24db57[_0x582c94(0xdc)]:this[_0x582c94(0xd6)](_0x5c4b1a);break;default:}}));}['tryStartPresenting'](){const _0x3d4eda=_0x255515;this[_0x3d4eda(0xa5)][_0x3d4eda(0xb5)]({'eventID':_0x24db57['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3d4eda(0xda)],'userID':this[_0x3d4eda(0xa5)][_0x3d4eda(0x117)]()}},this[_0x3d4eda(0xda)]);}[_0x255515(0xa1)](){const _0x412192=_0x255515;this[_0x412192(0xd0)]==='presenting'&&(this[_0x412192(0xfc)][_0x412192(0xc8)](_0x412192(0xa0)),this['_collabSession'][_0x412192(0xb5)]({'eventID':_0x24db57['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x412192(0xda)]}},this[_0x412192(0xda)]));}[_0x255515(0xe5)](){const _0x40eea6=_0x255515;this['_status']===_0x40eea6(0x12f)&&(this[_0x40eea6(0xfc)][_0x40eea6(0xc8)](_0x40eea6(0xf9)),this['_startFollowing']());}[_0x255515(0xad)](){const _0x37f6b0=_0x255515;this[_0x37f6b0(0xd0)]===_0x37f6b0(0xf9)&&this[_0x37f6b0(0xd3)]();}[_0x255515(0x110)](_0x25e52f){const _0x355eeb=_0x255515;let {presenter:_0x5a9e12}=_0x25e52f[_0x355eeb(0xac)],_0x2d28af=this[_0x355eeb(0xa5)]['getMemberID']();this[_0x355eeb(0xcc)]=_0x5a9e12,_0x5a9e12===_0x2d28af?(this[_0x355eeb(0xd3)](),this[_0x355eeb(0xc6)]()):this[_0x355eeb(0xd0)]!==_0x355eeb(0x12f)&&(this[_0x355eeb(0xb1)](),this['_startFollowing']());}['_fetchOperations'](){const _0x22e1e2=_0x255515;let _0x2e21d9={'eventID':_0x24db57[_0x22e1e2(0x102)]};this[_0x22e1e2(0xa5)][_0x22e1e2(0xb5)](_0x2e21d9,this[_0x22e1e2(0xda)]);}[_0x255515(0xca)](){const _0x4174b7=_0x255515;this[_0x4174b7(0xcc)]=null,this[_0x4174b7(0xd0)]!==_0x4174b7(0x12b)&&this[_0x4174b7(0xf8)]();}['_handleNewChangeSets'](_0x688b52){const _0x2e2b8f=_0x255515;if(this[_0x2e2b8f(0xd0)]===_0x2e2b8f(0xf9)&&this[_0x2e2b8f(0xcc)]===_0x688b52[_0x2e2b8f(0xac)][_0x2e2b8f(0xd7)]){let _0x481b52=_0x1198e4(_0x688b52['data'])[_0x2e2b8f(0x105)]['reverse']()[_0x2e2b8f(0x119)](_0x1c9f74=>_0x1c9f74['id']===_0x417356['id']);if(_0x481b52){let _0x57b4d0=_0x481b52['params'][_0x2e2b8f(0xb0)],_0x5b7178=_0x481b52[_0x2e2b8f(0x120)]['sheet']['id'];setTimeout(()=>{const _0x3ba644=_0x2e2b8f;this[_0x3ba644(0xf7)][_0x3ba644(0xb6)](_0x825d3['id'],{'unitId':_0x57b4d0,'subUnitId':_0x5b7178},{'fromCollab':!0x0});});}}}[_0x255515(0xc6)](){const _0x4da664=_0x255515;var _0x37633b;(_0x37633b=this['_commandDisposable'])==null||_0x37633b['dispose'](),this[_0x4da664(0xfc)][_0x4da664(0xc8)](_0x4da664(0x12b));let _0x20f5fa=new Map(),_0x12e6ac=this[_0x4da664(0xd1)]=new _0xf927e1();_0x12e6ac[_0x4da664(0xf3)](_0x7b8648(()=>{const _0x478f78=_0x4da664;_0x20f5fa[_0x478f78(0xa4)](({subject:_0x51b928,subscription:_0x3fd189})=>{const _0x1b5d1a=_0x478f78;_0x3fd189[_0x1b5d1a(0x100)](),_0x51b928[_0x1b5d1a(0xee)]();}),_0x20f5fa[_0x478f78(0xf6)]();})),_0x12e6ac[_0x4da664(0xf3)](this[_0x4da664(0xf7)][_0x4da664(0xd9)](_0x5d10f7=>{const _0x4973fb=_0x4da664;if(_0x5d10f7[_0x4973fb(0xbc)]!==_0xbc0567['OPERATION']||!this[_0x4973fb(0xce)][_0x4973fb(0x122)](_0x5d10f7['id']))return;let {id:_0x429962}=_0x5d10f7,_0x29ec7f;if(_0x20f5fa[_0x4973fb(0xe3)](_0x429962))_0x29ec7f=_0x20f5fa[_0x4973fb(0xa8)](_0x429962)[_0x4973fb(0xc9)];else{var _0x2e56cc;_0x29ec7f=new _0x2a6741();let _0x5b9c5c=_0x29ec7f['pipe'](_0x464a34((_0x2e56cc=this['_configService'][_0x4973fb(0xe9)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2e56cc,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4973fb(0xde)](_0x4c8739=>{const _0x8c6a66=_0x4973fb;this['_collabSession']['send']({'eventID':_0x24db57[_0x8c6a66(0xa9)],'data':{'unitID':this[_0x8c6a66(0xda)],'operations':{[_0x4c8739['id']]:{'id':_0x4c8739['id'],'params':JSON[_0x8c6a66(0xb9)](_0x4c8739['params'])}}}},this[_0x8c6a66(0xda)]);});_0x20f5fa[_0x4973fb(0x133)](_0x429962,{'subject':_0x29ec7f,'subscription':_0x5b9c5c});}_0x29ec7f[_0x4973fb(0xc8)](_0x5d10f7);})),this[_0x4da664(0xce)]['getInitialStates'](this[_0x4da664(0xda)])['forEach'](_0x41af15=>this[_0x4da664(0xa5)][_0x4da664(0xb5)]({'eventID':_0x24db57[_0x4da664(0xa9)],'data':{'unitID':this[_0x4da664(0xda)],'operations':{[_0x41af15['id']]:{'id':_0x41af15['id'],'params':JSON[_0x4da664(0xb9)](_0x41af15[_0x4da664(0x120)])}}}},this[_0x4da664(0xda)]));}['_stopPresenting'](){const _0x5b2d80=_0x255515;var _0x59a1f1;this[_0x5b2d80(0xfc)][_0x5b2d80(0xc8)](_0x5b2d80(0xa0)),(_0x59a1f1=this[_0x5b2d80(0xd1)])==null||_0x59a1f1['dispose'](),this[_0x5b2d80(0xd1)]=null;}[_0x255515(0xfa)](){const _0x5a5541=_0x255515;var _0x212515;(_0x212515=this[_0x5a5541(0xd1)])==null||_0x212515[_0x5a5541(0x11d)](),this[_0x5a5541(0xfc)]['next'](_0x5a5541(0xf9));}[_0x255515(0xf8)](){const _0x4a5581=_0x255515;var _0x3a9caf;this[_0x4a5581(0xfc)][_0x4a5581(0xc8)](_0x4a5581(0xa0)),(_0x3a9caf=this[_0x4a5581(0xd1)])==null||_0x3a9caf[_0x4a5581(0x11d)](),this[_0x4a5581(0xd1)]=null;}[_0x255515(0xd3)](){const _0x2bd40b=_0x255515;var _0x5da691;this[_0x2bd40b(0xfc)][_0x2bd40b(0xc8)](_0x2bd40b(0x12f)),(_0x5da691=this['_commandDisposable'])==null||_0x5da691[_0x2bd40b(0x11d)]();}['_handleOperation'](_0x5b2f26){const _0x3ac595=_0x255515;if([_0x3ac595(0x12b),_0x3ac595(0x12f),_0x3ac595(0x109)][_0x3ac595(0x107)](this[_0x3ac595(0xd0)])||!_0x5b2f26[_0x3ac595(0xac)][_0x3ac595(0xb8)]||_0x5b2f26['data'][_0x3ac595(0xb8)]===this['_collabSession'][_0x3ac595(0x117)]())return;this[_0x3ac595(0xd0)]===_0x3ac595(0xa0)&&this['_startFollowing']();let _0x8f2d5b=_0x5b2f26[_0x3ac595(0xac)][_0x3ac595(0xe0)];Object[_0x3ac595(0xfb)](_0x8f2d5b)[_0x3ac595(0xa4)](_0x2e6295=>{const _0x2d8e1c=_0x3ac595;this[_0x2d8e1c(0xf7)][_0x2d8e1c(0xb6)](_0x2e6295['id'],_0x2e6295[_0x2d8e1c(0x120)]?JSON[_0x2d8e1c(0xe7)](_0x2e6295[_0x2d8e1c(0x120)]):null,{'fromCollab':!0x0});});}[_0x255515(0x123)](){const _0x5856f9=_0x255515;var _0x1857a1;this[_0x5856f9(0xfc)][_0x5856f9(0xc8)](_0x5856f9(0x109)),(_0x1857a1=this['_commandDisposable'])==null||_0x1857a1[_0x5856f9(0x11d)]();}[_0x255515(0xa3)](){const _0x42c8c0=_0x255515;this[_0x42c8c0(0xfc)][_0x42c8c0(0xc8)](_0x42c8c0(0xa0)),this[_0x42c8c0(0x113)]();}};q=W([U(0x2,_0x3ceecb),U(0x3,_0x2e8c25(H)),U(0x4,_0x36e78)],q);function J(){const _0x5055ee=_0x255515;let _0x30d7c1=_0x49f746(G),_0x507ea0=_0x49f746(_0x407d65),_0x1d3427=_0x3fc517(()=>_0x507ea0[_0x5055ee(0x12c)](_0x104030[_0x5055ee(0xf2)]),void 0x0,!0x1,[]),[_0x3d81fb,_0x431784]=_0x54d631(null),[_0x28789c,_0x218f96]=_0x54d631(_0x5055ee(0xa0)),_0x51c5c6=_0xf04e19(null);return _0x4e5c5e(()=>(_0x1d3427&&_0x30d7c1['getLiveShareCoordinator'](_0x1d3427['getUnitId']())[_0x5055ee(0xbd)](_0x17b76b=>{const _0x1c35f3=_0x5055ee;_0x431784(_0x17b76b),_0x51c5c6[_0x1c35f3(0xb4)]=_0x17b76b['status$'][_0x1c35f3(0xde)](_0x438e4e=>{_0x218f96(_0x438e4e);});}),()=>{const _0x133e0b=_0x5055ee;var _0x263f78;(_0x263f78=_0x51c5c6['current'])==null||_0x263f78[_0x133e0b(0x100)](),_0x51c5c6[_0x133e0b(0xb4)]=null;}),[_0x1d3427,_0x30d7c1]),_0x3d81fb?_0x2b78ed(_0x132052,{'align':_0x5055ee(0x130),'disabled':_0x28789c==='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':_0x2b78ed(se,{'status':_0x28789c,'coordinator':_0x3d81fb}),'children':_0x2b78ed('button',{'className':_0x43282b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x28789c==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x28789c!==_0x5055ee(0x109)}),'type':'button','children':_0x2b78ed(_0x501a81,{})})}):null;}function se(_0x19b886){const _0x263110=_0x255515;let {status:_0xf694cc,coordinator:_0x162ebe}=_0x19b886;switch(_0xf694cc){case _0x263110(0xa0):return _0x2b78ed(ce,{'coordinator':_0x162ebe});case'following':return _0x2b78ed(le,{'coordinator':_0x162ebe});case'not-following':return _0x2b78ed(ue,{'coordinator':_0x162ebe});case _0x263110(0x109):return _0x2b78ed(de,{});case _0x263110(0x12b):return _0x2b78ed(Y,{'coordinator':_0x162ebe});default:return null;}}function ce(_0x15ea92){const _0x553815=_0x255515;let {coordinator:_0x61892b}=_0x15ea92;return _0x46c0ab(_0x33c60e,{'children':[_0x2b78ed(_0x553815(0xdb),{'className':_0x553815(0xc5),'children':_0x553815(0xf1)}),_0x2b78ed(_0x1d87b5,{'onClick':()=>_0x61892b[_0x553815(0xff)](),'children':_0x553815(0xc4)})]});}function le(_0xf7c07d){const _0x8ce120=_0x255515;let {coordinator:_0x44ab45}=_0xf7c07d;return _0x46c0ab(_0x33c60e,{'children':[_0x2b78ed(_0x8ce120(0xdb),{'className':_0x8ce120(0xc5),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2b78ed(_0x1d87b5,{'onClick':()=>_0x44ab45[_0x8ce120(0xad)](),'children':_0x8ce120(0xaa)})]});}function ue(_0x4bd266){const _0xc09b4d=_0x255515;let {coordinator:_0x1bd947}=_0x4bd266;return _0x46c0ab(_0x33c60e,{'children':[_0x2b78ed(_0xc09b4d(0xdb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc09b4d(0x11a)}),_0x2b78ed(_0x1d87b5,{'variant':_0xc09b4d(0x103),'onClick':()=>_0x1bd947[_0xc09b4d(0xe5)](),'children':_0xc09b4d(0xcf)})]});}function Y(_0x43686c){const _0x5420ba=_0x255515;let {coordinator:_0x155788}=_0x43686c;return _0x46c0ab(_0x33c60e,{'children':[_0x2b78ed('div',{'className':_0x5420ba(0xc5),'children':_0x5420ba(0xd5)}),_0x2b78ed(_0x1d87b5,{'variant':_0x5420ba(0x12a),'onClick':()=>_0x155788[_0x5420ba(0xa1)](),'children':_0x5420ba(0xc1)})]});}function de(){return _0x2b78ed(_0x33c60e,{'children':'You\x27are\x20offline.'});}let X=class extends _0x516cea{constructor(_0x1dea67,_0x3de4de){super(),this['_injector']=_0x1dea67,this['_uiPartsService']=_0x3de4de,this['_mountLiveShare']();}[_0x255515(0xb7)](){const _0x70f274=_0x255515;this[_0x70f274(0x121)](this[_0x70f274(0xa6)][_0x70f274(0x12e)](_0xb35ac5['HEADER_MENU'],()=>_0x2af7a6(J,this[_0x70f274(0x10b)])));}};X=W([U(0x0,_0x2e8c25(_0x301770)),U(0x1,_0x396b3b)],X);var fe=_0x255515(0xe2),pe='1.0.0-alpha.2';const Z={};let Q=class extends _0x516cea{constructor(_0x460e31){const _0x314636=_0x255515;super(),this[_0x314636(0xce)]=_0x460e31,this[_0x314636(0x132)]();}[_0x255515(0x132)](){const _0x5bfe56=_0x255515;[_0x35ad51['id'],_0x4eaff8['id'],_0x825d3['id']][_0x5bfe56(0xa4)](_0x2f1557=>{const _0x174bcd=_0x5bfe56;this[_0x174bcd(0x121)](this[_0x174bcd(0xce)][_0x174bcd(0x104)](_0x2f1557));});}};Q=W([U(0x0,_0x2e8c25(H))],Q);let $=class extends _0x22dadf{constructor(_0x213cf8=Z,_0xe6139e,_0x2b2dd5){const _0x48b490=_0x255515;super(),this['_config']=_0x213cf8,this['_injector']=_0xe6139e,this[_0x48b490(0x116)]=_0x2b2dd5;let {..._0x35f72a}=_0x22904a({},Z,this['_config']);this[_0x48b490(0x116)][_0x48b490(0xcd)](_0x48b490(0xe8),_0x35f72a);}[_0x255515(0xc2)](){const _0x3e7d37=_0x255515;_0x4c4ef5(this['_injector'],_0x49a17a([[H],[G],[Q],[X]],this[_0x3e7d37(0x129)][_0x3e7d37(0xe6)])),_0x2efcc9(this['_injector'],[[Q]]);}[_0x255515(0xa7)](){const _0x73335b=_0x255515;_0x2efcc9(this[_0x73335b(0x10b)],[[X]]);}};V($,'type',_0x104030[_0x255515(0x11c)]),V($,_0x255515(0xab),_0x255515(0x134)),V($,_0x255515(0x125),fe),V($,'version',pe),$=W([_0x51ca48(_0x57b419),U(0x1,_0x2e8c25(_0x301770)),U(0x2,_0x3ceecb)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x288a82=_0x3e28;(function(_0x598a6b,_0x307b4b){const _0x54801b=_0x3e28,_0x2a4221=_0x598a6b();while(!![]){try{const _0x12d28a=parseInt(_0x54801b(0x8e))/0x1*(-parseInt(_0x54801b(0x87))/0x2)+-parseInt(_0x54801b(0x71))/0x3*(-parseInt(_0x54801b(0x7e))/0x4)+parseInt(_0x54801b(0x92))/0x5*(parseInt(_0x54801b(0x72))/0x6)+parseInt(_0x54801b(0x7d))/0x7*(-parseInt(_0x54801b(0x75))/0x8)+parseInt(_0x54801b(0x8d))/0x9+-parseInt(_0x54801b(0x7c))/0xa*(-parseInt(_0x54801b(0x73))/0xb)+-parseInt(_0x54801b(0x93))/0xc*(parseInt(_0x54801b(0x95))/0xd);if(_0x12d28a===_0x307b4b)break;else _0x2a4221['push'](_0x2a4221['shift']());}catch(_0x45aa89){_0x2a4221['push'](_0x2a4221['shift']());}}}(_0x143c,0x3145f));import{LiveShareController as _0x96f8c8,LiveShareStatus as _0x24d91b}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x29b743,UniverInstanceType as _0x5677c5}from'@univerjs/core';import{FEnum as _0x3fdd56,FUniver as _0x4c6ff6}from'@univerjs/core/facade';function o(_0x5bab16){'@babel/helpers - typeof';const _0x1a7cdb=_0x3e28;return o=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x1a7cdb(0x89)?function(_0x197549){return typeof _0x197549;}:function(_0x2f891a){const _0x2756e4=_0x1a7cdb;return _0x2f891a&&typeof Symbol==_0x2756e4(0x6e)&&_0x2f891a['constructor']===Symbol&&_0x2f891a!==Symbol[_0x2756e4(0x86)]?_0x2756e4(0x89):typeof _0x2f891a;},o(_0x5bab16);}function _0x143c(){const _0x2c5108=['startFollowing','getLiveShareStatus','1623006QqwbOe','50129MCxsrN','stopFollowing','getUnitId','LiveShareStatusEnum','180935ghosXr','5026956xWpHLn','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','13SsyGrY','extend','default','function','No\x20active\x20workbook\x20found.','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','36408yIbFpD','18vnshRO','1995818mudTRY','_initialize','2184wqfRwT','tryStartPresenting','string','toPrimitive','defineProperty','getLiveShareCoordinatorSync','object','10yuBIdU','2597lWnHVy','116rlgiXr','getCurrentUnitOfType','get','startPresenting','getStatus','UNIVER_SHEET','_injector','_liveShareController','prototype','4YVBioX','call','symbol','IDLE'];_0x143c=function(){return _0x2c5108;};return _0x143c();}function s(_0x2cf311,_0x114eef){const _0x50a216=_0x3e28;if(o(_0x2cf311)!=_0x50a216(0x7b)||!_0x2cf311)return _0x2cf311;var _0x584c9c=_0x2cf311[Symbol[_0x50a216(0x78)]];if(_0x584c9c!==void 0x0){var _0xfabacd=_0x584c9c[_0x50a216(0x88)](_0x2cf311,_0x114eef||_0x50a216(0x6d));if(o(_0xfabacd)!=_0x50a216(0x7b))return _0xfabacd;throw TypeError(_0x50a216(0x70));}return(_0x114eef===_0x50a216(0x77)?String:Number)(_0x2cf311);}function c(_0x507389){const _0x5f6390=_0x3e28;var _0x36785c=s(_0x507389,'string');return o(_0x36785c)==_0x5f6390(0x89)?_0x36785c:_0x36785c+'';}function _0x3e28(_0xdce574,_0x2a10d0){_0xdce574=_0xdce574-0x6c;const _0x143c57=_0x143c();let _0x3e282a=_0x143c57[_0xdce574];return _0x3e282a;}function l(_0x4289cc,_0x1ef9db,_0x3dd061){const _0x5cb6a8=_0x3e28;return(_0x1ef9db=c(_0x1ef9db))in _0x4289cc?Object[_0x5cb6a8(0x79)](_0x4289cc,_0x1ef9db,{'value':_0x3dd061,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4289cc[_0x1ef9db]=_0x3dd061,_0x4289cc;}var u=class extends _0x4c6ff6{constructor(..._0x175a99){super(..._0x175a99),l(this,'_liveShareController',void 0x0);}[_0x288a82(0x74)](_0x136c6b){const _0x43186d=_0x288a82;this[_0x43186d(0x85)]=_0x136c6b[_0x43186d(0x80)](_0x96f8c8);}[_0x288a82(0x8c)](){const _0x3fdca1=_0x288a82;var _0x123451;let _0x40e11a=this['_injector'][_0x3fdca1(0x80)](_0x29b743)[_0x3fdca1(0x7f)](_0x5677c5['UNIVER_SHEET']);if(!_0x40e11a)throw Error('No\x20active\x20workbook\x20found.');let _0x34a642=_0x40e11a['getUnitId'](),_0x3fccc9=this[_0x3fdca1(0x85)]['getLiveShareCoordinatorSync'](_0x34a642);return(_0x123451=_0x3fccc9==null?void 0x0:_0x3fccc9[_0x3fdca1(0x82)]())==null?_0x24d91b[_0x3fdca1(0x8a)]:_0x123451;}[_0x288a82(0x8b)](){const _0x1283d4=_0x288a82;let _0x4a6c9b=this['_injector']['get'](_0x29b743)['getCurrentUnitOfType'](_0x5677c5['UNIVER_SHEET']);if(!_0x4a6c9b)throw Error('No\x20active\x20workbook\x20found.');let _0x20762a=_0x4a6c9b[_0x1283d4(0x90)](),_0x3c15f8=this[_0x1283d4(0x85)][_0x1283d4(0x7a)](_0x20762a);if(!_0x3c15f8)throw Error(_0x1283d4(0x94));_0x3c15f8[_0x1283d4(0x8b)]();}[_0x288a82(0x8f)](){const _0xad092c=_0x288a82;let _0x2d16c3=this[_0xad092c(0x84)][_0xad092c(0x80)](_0x29b743)[_0xad092c(0x7f)](_0x5677c5[_0xad092c(0x83)]);if(!_0x2d16c3)throw Error(_0xad092c(0x6f));let _0x46d0de=_0x2d16c3[_0xad092c(0x90)](),_0x29d9f2=this[_0xad092c(0x85)][_0xad092c(0x7a)](_0x46d0de);if(!_0x29d9f2)throw Error(_0xad092c(0x94));_0x29d9f2[_0xad092c(0x8f)]();}[_0x288a82(0x81)](){const _0x45a0df=_0x288a82;let _0x261c1b=this[_0x45a0df(0x84)]['get'](_0x29b743)['getCurrentUnitOfType'](_0x5677c5[_0x45a0df(0x83)]);if(!_0x261c1b)throw Error('No\x20active\x20workbook\x20found.');let _0x300f54=_0x261c1b[_0x45a0df(0x90)](),_0x3be927=this['_liveShareController'][_0x45a0df(0x7a)](_0x300f54);if(!_0x3be927)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3be927[_0x45a0df(0x76)]();}['stopPresenting'](){const _0x1853ca=_0x288a82;let _0x211265=this[_0x1853ca(0x84)][_0x1853ca(0x80)](_0x29b743)[_0x1853ca(0x7f)](_0x5677c5['UNIVER_SHEET']);if(!_0x211265)throw Error(_0x1853ca(0x6f));let _0x51c20e=_0x211265[_0x1853ca(0x90)](),_0x13b87d=this['_liveShareController'][_0x1853ca(0x7a)](_0x51c20e);if(!_0x13b87d)throw Error(_0x1853ca(0x94));_0x13b87d['stopPresenting']();}};_0x4c6ff6['extend'](u);var d=class extends _0x3fdd56{get[_0x288a82(0x91)](){return _0x24d91b;}};_0x3fdd56[_0x288a82(0x6c)](d);export{};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x163933=_0x49a4;(function(_0x166d25,_0xb36586){const _0x5ed3f5=_0x49a4,_0x5e91b3=_0x166d25();while(!![]){try{const _0x5a83e8=parseInt(_0x5ed3f5(0x1e0))/0x1+parseInt(_0x5ed3f5(0x18e))/0x2*(-parseInt(_0x5ed3f5(0x1ba))/0x3)+-parseInt(_0x5ed3f5(0x18f))/0x4+parseInt(_0x5ed3f5(0x19f))/0x5*(-parseInt(_0x5ed3f5(0x177))/0x6)+parseInt(_0x5ed3f5(0x17e))/0x7+-parseInt(_0x5ed3f5(0x1e2))/0x8*(-parseInt(_0x5ed3f5(0x1f2))/0x9)+parseInt(_0x5ed3f5(0x1eb))/0xa*(-parseInt(_0x5ed3f5(0x1da))/0xb);if(_0x5a83e8===_0xb36586)break;else _0x5e91b3['push'](_0x5e91b3['shift']());}catch(_0x4b0be9){_0x5e91b3['push'](_0x5e91b3['shift']());}}}(_0x4c3f,0x670ae));import{CollaborationEvent as _0x2f4f4b,parseProtocolChangeset as _0xf7fca8}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1dc03d,SessionStatus as _0x43364d,UniverCollaborationClientPlugin as _0x33b357}from'@univerjs-pro/collaboration-client';import{CommandType as _0x41b375,DependentOn as _0x372528,Disposable as _0x3a6ee4,DisposableCollection as _0x373e29,ICommandService as _0x15ae55,IConfigService as _0x3287d9,IUniverInstanceService as _0x5dd410,Inject as _0x147d4e,Injector as _0x430c6d,Plugin as _0x2c55cc,RxDisposable as _0x3eff75,UniverInstanceType as _0x19d69b,merge as _0x1f0203,mergeOverrideWithDependencies as _0x76a44e,registerDependencies as _0x492046,toDisposable as _0x2c9771,touchDependencies as _0x4b567d}from'@univerjs/core';import{InsertSheetMutation as _0x29a9fa,SetWorksheetActiveOperation as _0x24df1b}from'@univerjs/sheets';import{BehaviorSubject as _0x1bdd9f,Subject as _0x4a9313}from'rxjs';import{takeUntil as _0x66b583,throttleTime as _0x23f001}from'rxjs/operators';import{BuiltInUIPart as _0x27c857,IUIPartsService as _0x2568a8,connectInjector as _0x34038f,useDependency as _0x4d0b0b,useObservable as _0x471499}from'@univerjs/ui';function _0x4c3f(){const _0x1d12b0=['_reporters','HEADER_MENU','clear','presenter','_injector','set','FOLLOWING','_commandService','setConfig','status$','executeCommand','LIVESHARE_FETCH_OPERATIONS','subscribe','Start','_handleOnline','getLiveShareCoordinatorSync','data','onStarting','call','6rifvkw','memberID','idle','prototype','_startFollowing','_univerInstanceService','_startPresenting','3153962cexbSX','packageName','toPrimitive','getValue','pluginName','createInstance','_handleNewChangeSets','end','@univerjs-pro/live-share','getTypeOfUnitAdded$','sessionStatus$','decorate','ONLINE','asObservable','pipe','button','12JjJguK','3217576HJgNcE','override','getCurrentTypeOfUnit$','getLiveShareCoordinator','_entities','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','LIVESHARE_NEW_HOST','_unitID','LIVESHARE_TERMINATE','offline','OPERATION','_collabSession','length','shouldShareOperation','_commandDisposable','1497950knNXPS','requireSession','_startLiveShareCoordinator','sheet','tryStartPresenting','OFFLINE','onRendered','current','delete','function','default','getOwnPropertyDescriptor','_collabSessionService','get','stringify','_sharedOperations','following','from','defineProperty','You\x27are\x20offline.','includes','_config','_handleOperation','unitId','div','_handleOffline','complete','82179tBeTmf','You\x27re\x20presenting\x20the\x20document','getInitialStates','forEach','_status','unit','getStatus','getUnitId','presenting','_stopFollowing','disposeWithMe','has','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','add','string','_handleTerminate','_status$','symbol','mutations','_configService','_uiPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','_liveShareService','not-following','getTypeOfUnitDisposed$','reverse','getConfig','UNIVER_LIVE_SHARE_PLUGIN','constructor','registerComponent','_presenter','2560206GIuVnm','1.0.0-alpha.1','_init','onCommandExecuted','send','_mountLiveShare','635588GlObXK','version','1673992efwRCn','find','params','getMemberID','next','LIVESHARE_OPERATION','then','Start\x20following','object','10nwvzzS','init','NOT_FOLLOWING','_handleNewHost','_stopPresenting','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','type','36ekssiw','UNIVER_UNKNOWN','PRESENTING','dispose','dispose$','unsubscribe'];_0x4c3f=function(){return _0x1d12b0;};return _0x4c3f();}import{Button as _0xac3a18,Dropdown as _0x4045b5,clsx as _0x38f52b}from'@univerjs/design';import{LiveShareIcon as _0x5e9cb6}from'@univerjs/icons';import{useEffect as _0x542576,useRef as _0x418b8a,useState as _0x41fdc7}from'react';import{Fragment as _0x98295f,jsx as _0x50789a,jsxs as _0x16b88}from'react/jsx-runtime';import{SetScrollOperation as _0x452de4,SetZoomRatioOperation as _0x284992}from'@univerjs/sheets-ui';function R(_0x2e5dbd){'@babel/helpers - typeof';const _0x1909dc=_0x49a4;return R=typeof Symbol==_0x1909dc(0x1a8)&&typeof Symbol['iterator']=='symbol'?function(_0x1aede5){return typeof _0x1aede5;}:function(_0x4970eb){const _0x1f32d9=_0x1909dc;return _0x4970eb&&typeof Symbol=='function'&&_0x4970eb[_0x1f32d9(0x1d7)]===Symbol&&_0x4970eb!==Symbol[_0x1f32d9(0x17a)]?_0x1f32d9(0x1cb):typeof _0x4970eb;},R(_0x2e5dbd);}function z(_0x360513,_0x561972){const _0x566e15=_0x49a4;if(R(_0x360513)!=_0x566e15(0x1ea)||!_0x360513)return _0x360513;var _0x1ca540=_0x360513[Symbol[_0x566e15(0x180)]];if(_0x1ca540!==void 0x0){var _0xaa31f1=_0x1ca540[_0x566e15(0x176)](_0x360513,_0x561972||_0x566e15(0x1a9));if(R(_0xaa31f1)!=_0x566e15(0x1ea))return _0xaa31f1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x561972===_0x566e15(0x1c8)?String:Number)(_0x360513);}function B(_0x298d17){const _0x2bc6a9=_0x49a4;var _0x2e51f5=z(_0x298d17,_0x2bc6a9(0x1c8));return R(_0x2e51f5)==_0x2bc6a9(0x1cb)?_0x2e51f5:_0x2e51f5+'';}function V(_0x4bc780,_0x3b6231,_0x10d764){return(_0x3b6231=B(_0x3b6231))in _0x4bc780?Object['defineProperty'](_0x4bc780,_0x3b6231,{'value':_0x10d764,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4bc780[_0x3b6231]=_0x10d764,_0x4bc780;}function _0x49a4(_0x430074,_0x2c9319){_0x430074=_0x430074-0x175;const _0x4c3fa5=_0x4c3f();let _0x49a4ac=_0x4c3fa5[_0x430074];return _0x49a4ac;}var H=class extends _0x3a6ee4{constructor(..._0x39f7fb){const _0x4d3fcd=_0x49a4;super(..._0x39f7fb),V(this,_0x4d3fcd(0x1ae),new Set()),V(this,_0x4d3fcd(0x1f8),new Set());}['registerSharedOperation'](_0xac2562){const _0x14bfae=_0x49a4;return this[_0x14bfae(0x1ae)]['add'](_0xac2562),_0x2c9771(()=>this['_sharedOperations'][_0x14bfae(0x1a7)](_0xac2562));}['registerInitialStateReporter'](_0x4b672f){const _0x5870a3=_0x49a4;return this['_reporters'][_0x5870a3(0x1c7)](_0x4b672f),_0x2c9771(()=>this[_0x5870a3(0x1f8)][_0x5870a3(0x1a7)](_0x4b672f));}[_0x163933(0x19d)](_0x2c4e5c){const _0x1680f1=_0x163933;return this[_0x1680f1(0x1ae)][_0x1680f1(0x1c5)](_0x2c4e5c);}[_0x163933(0x1bc)](_0x48c9c8){const _0x3e8813=_0x163933;return Array[_0x3e8813(0x1b0)](this['_reporters'])['map'](_0x56600c=>_0x56600c(_0x48c9c8));}};function U(_0xe4e8b3,_0x1df87b){return function(_0xa60193,_0x182af4){_0x1df87b(_0xa60193,_0x182af4,_0xe4e8b3);};}function W(_0x386c97,_0x3a1df4,_0x4c0591,_0x1ea34e){const _0x3f17be=_0x163933;var _0x5a9968=arguments['length'],_0x2d3b37=_0x5a9968<0x3?_0x3a1df4:_0x1ea34e===null?_0x1ea34e=Object[_0x3f17be(0x1aa)](_0x3a1df4,_0x4c0591):_0x1ea34e,_0x1b9b97;if(typeof Reflect=='object'&&typeof Reflect[_0x3f17be(0x189)]==_0x3f17be(0x1a8))_0x2d3b37=Reflect['decorate'](_0x386c97,_0x3a1df4,_0x4c0591,_0x1ea34e);else{for(var _0x1a01d8=_0x386c97[_0x3f17be(0x19c)]-0x1;_0x1a01d8>=0x0;_0x1a01d8--)(_0x1b9b97=_0x386c97[_0x1a01d8])&&(_0x2d3b37=(_0x5a9968<0x3?_0x1b9b97(_0x2d3b37):_0x5a9968>0x3?_0x1b9b97(_0x3a1df4,_0x4c0591,_0x2d3b37):_0x1b9b97(_0x3a1df4,_0x4c0591))||_0x2d3b37);}return _0x5a9968>0x3&&_0x2d3b37&&Object[_0x3f17be(0x1b1)](_0x3a1df4,_0x4c0591,_0x2d3b37),_0x2d3b37;}let G=class extends _0x3eff75{constructor(_0x226578,_0x47fef8,_0x38b540){const _0x226b13=_0x163933;super(),this[_0x226b13(0x17c)]=_0x226578,this[_0x226b13(0x1fc)]=_0x47fef8,this[_0x226b13(0x1ab)]=_0x38b540,V(this,_0x226b13(0x193),new Map()),this[_0x226b13(0x1dc)]();}async[_0x163933(0x192)](_0x24bf37){const _0x5ea5c0=_0x163933;return this[_0x5ea5c0(0x193)]['has'](_0x24bf37)||await this[_0x5ea5c0(0x1a1)](_0x24bf37),this[_0x5ea5c0(0x193)][_0x5ea5c0(0x1ac)](_0x24bf37);}[_0x163933(0x207)](_0x4a1474){const _0x2ebb49=_0x163933;var _0x592831;return(_0x592831=this[_0x2ebb49(0x193)]['get'](_0x4a1474))==null?null:_0x592831;}[_0x163933(0x1dc)](){const _0x2cdc17=_0x163933;this[_0x2cdc17(0x17c)][_0x2cdc17(0x187)](_0x19d69b['UNIVER_SHEET'])[_0x2cdc17(0x18c)](_0x66b583(this['dispose$']))[_0x2cdc17(0x204)](async _0x15dbb3=>{const _0x5f77be=_0x2cdc17;let _0x3a2665=_0x15dbb3[_0x5f77be(0x1bf)]['getUnitId']();this['_entities']['has'](_0x3a2665)||this[_0x5f77be(0x1a1)](_0x3a2665);}),this[_0x2cdc17(0x17c)][_0x2cdc17(0x1d3)](_0x19d69b['UNIVER_SHEET'])['pipe'](_0x66b583(this[_0x2cdc17(0x1f6)]))[_0x2cdc17(0x204)](_0x5012e4=>{const _0x59db71=_0x2cdc17;let _0xc87cc0=_0x5012e4[_0x59db71(0x1c1)](),_0x37f9cd=this[_0x59db71(0x193)][_0x59db71(0x1ac)](_0xc87cc0);_0x37f9cd==null||_0x37f9cd['dispose']();});}async[_0x163933(0x1a1)](_0x5df195){const _0x3d0cb1=_0x163933;let _0x13f003=await this[_0x3d0cb1(0x1ab)][_0x3d0cb1(0x1a0)](_0x5df195),_0x202b31=this['_injector'][_0x3d0cb1(0x183)](q,_0x5df195,_0x13f003);return _0x202b31['init'](),this[_0x3d0cb1(0x193)]['set'](_0x5df195,_0x202b31),_0x202b31;}};G=W([U(0x0,_0x5dd410),U(0x1,_0x147d4e(_0x430c6d)),U(0x2,_0x147d4e(_0x1dc03d))],G);let K=function(_0x56b824){const _0x5d24ed=_0x163933;return _0x56b824[_0x5d24ed(0x1a4)]='offline',_0x56b824['IDLE']='idle',_0x56b824[_0x5d24ed(0x1fe)]=_0x5d24ed(0x1af),_0x56b824[_0x5d24ed(0x1ed)]='not-following',_0x56b824[_0x5d24ed(0x1f4)]='presenting',_0x56b824;}({}),q=class extends _0x3eff75{get['_status'](){const _0x8c5651=_0x163933;return this[_0x8c5651(0x1ca)][_0x8c5651(0x181)]();}constructor(_0x32fb17,_0x183cd3,_0x8672c3,_0x50f8c5,_0x10d38f){const _0x38b91d=_0x163933;super(),this['_unitID']=_0x32fb17,this['_collabSession']=_0x183cd3,this[_0x38b91d(0x1cd)]=_0x8672c3,this['_liveShareService']=_0x50f8c5,this[_0x38b91d(0x1ff)]=_0x10d38f,V(this,'_status$',new _0x1bdd9f('idle')),V(this,_0x38b91d(0x201),this[_0x38b91d(0x1ca)][_0x38b91d(0x18b)]()),V(this,_0x38b91d(0x1dc),!0x1),V(this,_0x38b91d(0x19e),null),V(this,_0x38b91d(0x1d9),null);}[_0x163933(0x1f5)](){const _0x5c4bde=_0x163933;var _0x50be78;(_0x50be78=this[_0x5c4bde(0x19e)])==null||_0x50be78['dispose'](),this[_0x5c4bde(0x1ca)][_0x5c4bde(0x1e6)](_0x5c4bde(0x179)),this[_0x5c4bde(0x1ca)][_0x5c4bde(0x1b9)]();}[_0x163933(0x1c0)](){const _0x5d2248=_0x163933;return this[_0x5d2248(0x1be)];}[_0x163933(0x1ec)](){const _0xd79c49=_0x163933;this[_0xd79c49(0x1dc)]||(this[_0xd79c49(0x1dc)]=!0x0,this[_0xd79c49(0x19b)][_0xd79c49(0x188)][_0xd79c49(0x18c)](_0x66b583(this[_0xd79c49(0x1f6)]))[_0xd79c49(0x204)](_0x28822a=>{const _0x30a943=_0xd79c49;switch(_0x28822a){case _0x43364d[_0x30a943(0x1a4)]:this[_0x30a943(0x1b8)]();break;case _0x43364d[_0x30a943(0x18a)]:this[_0x30a943(0x206)]();break;default:}}),this[_0xd79c49(0x19b)]['event$']['pipe'](_0x66b583(this['dispose$']))['subscribe'](_0x565bc9=>{const _0x5f285e=_0xd79c49;let {eventID:_0x59cf12}=_0x565bc9;switch(_0x59cf12){case _0x2f4f4b[_0x5f285e(0x196)]:this[_0x5f285e(0x1ee)](_0x565bc9);break;case _0x2f4f4b[_0x5f285e(0x1e7)]:this[_0x5f285e(0x1b5)](_0x565bc9);break;case _0x2f4f4b[_0x5f285e(0x198)]:this[_0x5f285e(0x1c9)]();break;case _0x2f4f4b['NEW_CHANGESETS']:this[_0x5f285e(0x184)](_0x565bc9);break;default:}}));}[_0x163933(0x1a3)](){const _0x19b60e=_0x163933;this['_collabSession']['send']({'eventID':_0x2f4f4b[_0x19b60e(0x195)],'data':{'unitID':this['_unitID'],'userID':this[_0x19b60e(0x19b)][_0x19b60e(0x1e5)]()}},this['_unitID']);}['stopPresenting'](){const _0xbdaf9f=_0x163933;this[_0xbdaf9f(0x1be)]===_0xbdaf9f(0x1c2)&&(this['_status$'][_0xbdaf9f(0x1e6)](_0xbdaf9f(0x179)),this[_0xbdaf9f(0x19b)]['send']({'eventID':_0x2f4f4b[_0xbdaf9f(0x198)],'data':{'unitID':this[_0xbdaf9f(0x197)]}},this['_unitID']));}['startFollowing'](){const _0x352bd5=_0x163933;this[_0x352bd5(0x1be)]==='not-following'&&(this[_0x352bd5(0x1ca)][_0x352bd5(0x1e6)](_0x352bd5(0x1af)),this[_0x352bd5(0x17b)]());}['stopFollowing'](){const _0x54df9c=_0x163933;this[_0x54df9c(0x1be)]===_0x54df9c(0x1af)&&this[_0x54df9c(0x1c3)]();}[_0x163933(0x1ee)](_0x1d46da){const _0x1b552e=_0x163933;let {presenter:_0x2019ff}=_0x1d46da[_0x1b552e(0x208)],_0x42ec53=this[_0x1b552e(0x19b)][_0x1b552e(0x1e5)]();this[_0x1b552e(0x1d9)]=_0x2019ff,_0x2019ff===_0x42ec53?(this['_stopFollowing'](),this[_0x1b552e(0x17d)]()):this['_status']!=='not-following'&&(this[_0x1b552e(0x1ef)](),this[_0x1b552e(0x17b)]());}['_fetchOperations'](){const _0x542a10=_0x163933;let _0x1b4fb8={'eventID':_0x2f4f4b[_0x542a10(0x203)]};this[_0x542a10(0x19b)][_0x542a10(0x1de)](_0x1b4fb8,this['_unitID']);}[_0x163933(0x1c9)](){const _0x5a4953=_0x163933;this[_0x5a4953(0x1d9)]=null,this[_0x5a4953(0x1be)]!=='presenting'&&this['_beIdle']();}[_0x163933(0x184)](_0x109487){const _0x2a09bf=_0x163933;if(this[_0x2a09bf(0x1be)]==='following'&&this[_0x2a09bf(0x1d9)]===_0x109487[_0x2a09bf(0x208)][_0x2a09bf(0x178)]){let _0x233132=_0xf7fca8(_0x109487[_0x2a09bf(0x208)])[_0x2a09bf(0x1cc)][_0x2a09bf(0x1d4)]()[_0x2a09bf(0x1e3)](_0x4dc560=>_0x4dc560['id']===_0x29a9fa['id']);if(_0x233132){let _0x164df1=_0x233132[_0x2a09bf(0x1e4)][_0x2a09bf(0x1b6)],_0x768efc=_0x233132[_0x2a09bf(0x1e4)][_0x2a09bf(0x1a2)]['id'];setTimeout(()=>{const _0x5f586a=_0x2a09bf;this[_0x5f586a(0x1ff)][_0x5f586a(0x202)](_0x24df1b['id'],{'unitId':_0x164df1,'subUnitId':_0x768efc},{'fromCollab':!0x0});});}}}[_0x163933(0x17d)](){const _0x5d9911=_0x163933;var _0x59abbb;(_0x59abbb=this[_0x5d9911(0x19e)])==null||_0x59abbb[_0x5d9911(0x1f5)](),this[_0x5d9911(0x1ca)][_0x5d9911(0x1e6)](_0x5d9911(0x1c2));let _0x519bcd=new Map(),_0x4bba98=this[_0x5d9911(0x19e)]=new _0x373e29();_0x4bba98[_0x5d9911(0x1c7)](_0x2c9771(()=>{const _0x5ca6ba=_0x5d9911;_0x519bcd[_0x5ca6ba(0x1bd)](({subject:_0x3075c4,subscription:_0x3b94d6})=>{const _0x1443b7=_0x5ca6ba;_0x3b94d6[_0x1443b7(0x1f7)](),_0x3075c4[_0x1443b7(0x1b9)]();}),_0x519bcd[_0x5ca6ba(0x1fa)]();})),_0x4bba98[_0x5d9911(0x1c7)](this[_0x5d9911(0x1ff)][_0x5d9911(0x1dd)](_0x349dd1=>{const _0x44c970=_0x5d9911;if(_0x349dd1[_0x44c970(0x1f1)]!==_0x41b375[_0x44c970(0x19a)]||!this[_0x44c970(0x1d1)][_0x44c970(0x19d)](_0x349dd1['id']))return;let {id:_0x56b6fb}=_0x349dd1,_0x5984e8;if(_0x519bcd[_0x44c970(0x1c5)](_0x56b6fb))_0x5984e8=_0x519bcd[_0x44c970(0x1ac)](_0x56b6fb)['subject'];else{var _0x136831;_0x5984e8=new _0x4a9313();let _0x6bf016=_0x5984e8[_0x44c970(0x18c)](_0x23f001((_0x136831=this[_0x44c970(0x1cd)][_0x44c970(0x1d5)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x136831,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x44c970(0x204)](_0x161cdb=>{const _0x337870=_0x44c970;this[_0x337870(0x19b)][_0x337870(0x1de)]({'eventID':_0x2f4f4b[_0x337870(0x1e7)],'data':{'unitID':this['_unitID'],'operations':{[_0x161cdb['id']]:{'id':_0x161cdb['id'],'params':JSON[_0x337870(0x1ad)](_0x161cdb[_0x337870(0x1e4)])}}}},this['_unitID']);});_0x519bcd[_0x44c970(0x1fd)](_0x56b6fb,{'subject':_0x5984e8,'subscription':_0x6bf016});}_0x5984e8[_0x44c970(0x1e6)](_0x349dd1);})),this[_0x5d9911(0x1d1)]['getInitialStates'](this[_0x5d9911(0x197)])[_0x5d9911(0x1bd)](_0x289507=>this[_0x5d9911(0x19b)]['send']({'eventID':_0x2f4f4b[_0x5d9911(0x1e7)],'data':{'unitID':this[_0x5d9911(0x197)],'operations':{[_0x289507['id']]:{'id':_0x289507['id'],'params':JSON['stringify'](_0x289507[_0x5d9911(0x1e4)])}}}},this[_0x5d9911(0x197)]));}[_0x163933(0x1ef)](){const _0x16a67e=_0x163933;var _0x59d750;this[_0x16a67e(0x1ca)]['next'](_0x16a67e(0x179)),(_0x59d750=this[_0x16a67e(0x19e)])==null||_0x59d750[_0x16a67e(0x1f5)](),this[_0x16a67e(0x19e)]=null;}[_0x163933(0x17b)](){const _0x5c1ac5=_0x163933;var _0x125d5f;(_0x125d5f=this[_0x5c1ac5(0x19e)])==null||_0x125d5f[_0x5c1ac5(0x1f5)](),this[_0x5c1ac5(0x1ca)]['next'](_0x5c1ac5(0x1af));}['_beIdle'](){const _0x1c0665=_0x163933;var _0x365def;this[_0x1c0665(0x1ca)][_0x1c0665(0x1e6)](_0x1c0665(0x179)),(_0x365def=this['_commandDisposable'])==null||_0x365def[_0x1c0665(0x1f5)](),this[_0x1c0665(0x19e)]=null;}[_0x163933(0x1c3)](){const _0x16fb98=_0x163933;var _0x5ae3ba;this[_0x16fb98(0x1ca)]['next'](_0x16fb98(0x1d2)),(_0x5ae3ba=this['_commandDisposable'])==null||_0x5ae3ba[_0x16fb98(0x1f5)]();}[_0x163933(0x1b5)](_0x2a7e7c){const _0x434bd5=_0x163933;if([_0x434bd5(0x1c2),_0x434bd5(0x1d2),_0x434bd5(0x199)][_0x434bd5(0x1b3)](this[_0x434bd5(0x1be)])||!_0x2a7e7c[_0x434bd5(0x208)][_0x434bd5(0x1fb)]||_0x2a7e7c['data'][_0x434bd5(0x1fb)]===this[_0x434bd5(0x19b)][_0x434bd5(0x1e5)]())return;this[_0x434bd5(0x1be)]===_0x434bd5(0x179)&&this[_0x434bd5(0x17b)]();let _0x747534=_0x2a7e7c['data']['operations'];Object['values'](_0x747534)['forEach'](_0x46610a=>{const _0x405ca9=_0x434bd5;this[_0x405ca9(0x1ff)]['executeCommand'](_0x46610a['id'],_0x46610a['params']?JSON['parse'](_0x46610a[_0x405ca9(0x1e4)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5e049c=_0x163933;var _0x4abaa6;this['_status$'][_0x5e049c(0x1e6)](_0x5e049c(0x199)),(_0x4abaa6=this[_0x5e049c(0x19e)])==null||_0x4abaa6[_0x5e049c(0x1f5)]();}[_0x163933(0x206)](){const _0x34a1f0=_0x163933;this['_status$'][_0x34a1f0(0x1e6)](_0x34a1f0(0x179)),this['_fetchOperations']();}};q=W([U(0x2,_0x3287d9),U(0x3,_0x147d4e(H)),U(0x4,_0x15ae55)],q);function J(){const _0x544e9c=_0x163933;let _0x18e9df=_0x4d0b0b(G),_0x47d618=_0x4d0b0b(_0x5dd410),_0xe72ba5=_0x471499(()=>_0x47d618[_0x544e9c(0x191)](_0x19d69b[_0x544e9c(0x194)]),void 0x0,!0x1,[]),[_0x554ef2,_0x2c5c35]=_0x41fdc7(null),[_0x4d2e68,_0x28c5a7]=_0x41fdc7(_0x544e9c(0x179)),_0xd2604d=_0x418b8a(null);return _0x542576(()=>(_0xe72ba5&&_0x18e9df[_0x544e9c(0x192)](_0xe72ba5[_0x544e9c(0x1c1)]())[_0x544e9c(0x1e8)](_0x349de9=>{const _0x20ae39=_0x544e9c;_0x2c5c35(_0x349de9),_0xd2604d['current']=_0x349de9['status$'][_0x20ae39(0x204)](_0x3be167=>{_0x28c5a7(_0x3be167);});}),()=>{const _0x3f1dd3=_0x544e9c;var _0xcaf005;(_0xcaf005=_0xd2604d[_0x3f1dd3(0x1a6)])==null||_0xcaf005[_0x3f1dd3(0x1f7)](),_0xd2604d['current']=null;}),[_0xe72ba5,_0x18e9df]),_0x554ef2?_0x50789a(_0x4045b5,{'align':_0x544e9c(0x185),'disabled':_0x4d2e68==='offline','className':_0x544e9c(0x1f0),'overlay':_0x50789a(se,{'status':_0x4d2e68,'coordinator':_0x554ef2}),'children':_0x50789a(_0x544e9c(0x18d),{'className':_0x38f52b(_0x544e9c(0x1c6),{'univer-cursor-not-allowed':_0x4d2e68==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4d2e68!==_0x544e9c(0x199)}),'type':_0x544e9c(0x18d),'children':_0x50789a(_0x5e9cb6,{})})}):null;}function se(_0x5aa10c){const _0x7863ca=_0x163933;let {status:_0x3e622d,coordinator:_0x5e64a1}=_0x5aa10c;switch(_0x3e622d){case _0x7863ca(0x179):return _0x50789a(ce,{'coordinator':_0x5e64a1});case'following':return _0x50789a(le,{'coordinator':_0x5e64a1});case _0x7863ca(0x1d2):return _0x50789a(ue,{'coordinator':_0x5e64a1});case'offline':return _0x50789a(de,{});case _0x7863ca(0x1c2):return _0x50789a(Y,{'coordinator':_0x5e64a1});default:return null;}}function ce(_0x540ff2){const _0x219aa0=_0x163933;let {coordinator:_0x19cf79}=_0x540ff2;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x219aa0(0x1b7),{'className':_0x219aa0(0x1cf),'children':'Present\x20this\x20document'}),_0x50789a(_0xac3a18,{'onClick':()=>_0x19cf79[_0x219aa0(0x1a3)](),'children':_0x219aa0(0x205)})]});}function le(_0x73a277){const _0x33576b=_0x163933;let {coordinator:_0x1086c9}=_0x73a277;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x33576b(0x1b7),{'className':_0x33576b(0x1cf),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x50789a(_0xac3a18,{'onClick':()=>_0x1086c9[_0x33576b(0x1d0)](),'children':'Stop\x20following'})]});}function ue(_0x531476){const _0xaf0dff=_0x163933;let {coordinator:_0x50bc01}=_0x531476;return _0x16b88(_0x98295f,{'children':[_0x50789a('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x50789a(_0xac3a18,{'variant':'text','onClick':()=>_0x50bc01['startFollowing'](),'children':_0xaf0dff(0x1e9)})]});}function Y(_0x399c83){const _0x3251e4=_0x163933;let {coordinator:_0x4980a9}=_0x399c83;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x3251e4(0x1b7),{'className':_0x3251e4(0x1cf),'children':_0x3251e4(0x1bb)}),_0x50789a(_0xac3a18,{'variant':_0x3251e4(0x1a9),'onClick':()=>_0x4980a9['stopPresenting'](),'children':'Stop\x20presenting'})]});}function de(){const _0x5194cd=_0x163933;return _0x50789a(_0x98295f,{'children':_0x5194cd(0x1b2)});}let X=class extends _0x3a6ee4{constructor(_0x593ddd,_0x26b2fc){const _0x15338f=_0x163933;super(),this[_0x15338f(0x1fc)]=_0x593ddd,this[_0x15338f(0x1ce)]=_0x26b2fc,this[_0x15338f(0x1df)]();}['_mountLiveShare'](){const _0x1070bb=_0x163933;this[_0x1070bb(0x1c4)](this[_0x1070bb(0x1ce)][_0x1070bb(0x1d8)](_0x27c857[_0x1070bb(0x1f9)],()=>_0x34038f(J,this[_0x1070bb(0x1fc)])));}};X=W([U(0x0,_0x147d4e(_0x430c6d)),U(0x1,_0x2568a8)],X);var fe=_0x163933(0x186),pe=_0x163933(0x1db);const Z={};let Q=class extends _0x3a6ee4{constructor(_0x6ac638){const _0x154f47=_0x163933;super(),this[_0x154f47(0x1d1)]=_0x6ac638,this[_0x154f47(0x1dc)]();}[_0x163933(0x1dc)](){const _0x356985=_0x163933;[_0x284992['id'],_0x452de4['id'],_0x24df1b['id']][_0x356985(0x1bd)](_0x5dd2df=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x5dd2df));});}};Q=W([U(0x0,_0x147d4e(H))],Q);let $=class extends _0x2c55cc{constructor(_0x12150e=Z,_0x4a2f61,_0x441862){const _0x15a3a7=_0x163933;super(),this[_0x15a3a7(0x1b4)]=_0x12150e,this['_injector']=_0x4a2f61,this[_0x15a3a7(0x1cd)]=_0x441862;let {..._0x40b82b}=_0x1f0203({},Z,this[_0x15a3a7(0x1b4)]);this[_0x15a3a7(0x1cd)][_0x15a3a7(0x200)]('live-share.config',_0x40b82b);}[_0x163933(0x175)](){const _0x1e6350=_0x163933;_0x492046(this['_injector'],_0x76a44e([[H],[G],[Q],[X]],this[_0x1e6350(0x1b4)][_0x1e6350(0x190)])),_0x4b567d(this[_0x1e6350(0x1fc)],[[Q]]);}[_0x163933(0x1a5)](){const _0x322fc0=_0x163933;_0x4b567d(this[_0x322fc0(0x1fc)],[[X]]);}};V($,_0x163933(0x1f1),_0x19d69b[_0x163933(0x1f3)]),V($,_0x163933(0x182),_0x163933(0x1d6)),V($,_0x163933(0x17f),fe),V($,_0x163933(0x1e1),pe),$=W([_0x372528(_0x33b357),U(0x1,_0x147d4e(_0x430c6d)),U(0x2,_0x3287d9)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x255515=_0x3685;(function(_0x1aa2a0,_0x58cf55){const _0x20cc02=_0x3685,_0x529053=_0x1aa2a0();while(!![]){try{const _0x40f922=parseInt(_0x20cc02(0xed))/0x1+-parseInt(_0x20cc02(0xdf))/0x2+parseInt(_0x20cc02(0xd8))/0x3*(parseInt(_0x20cc02(0xea))/0x4)+-parseInt(_0x20cc02(0x112))/0x5*(-parseInt(_0x20cc02(0x108))/0x6)+parseInt(_0x20cc02(0x11e))/0x7*(parseInt(_0x20cc02(0x131))/0x8)+-parseInt(_0x20cc02(0xfd))/0x9+-parseInt(_0x20cc02(0xa2))/0xa;if(_0x40f922===_0x58cf55)break;else _0x529053['push'](_0x529053['shift']());}catch(_0x3c05a6){_0x529053['push'](_0x529053['shift']());}}}(_0x3b04,0x2610d));function _0x3685(_0xb62f3b,_0x307532){_0xb62f3b=_0xb62f3b-0xa0;const _0x3b0423=_0x3b04();let _0x368518=_0x3b0423[_0xb62f3b];return _0x368518;}import{CollaborationEvent as _0x24db57,parseProtocolChangeset as _0x1198e4}from'@univerjs-pro/collaboration';function _0x3b04(){const _0x449aa2=['type','then','requireSession','_handleOperation','iterator','Stop\x20presenting','onStarting','_univerInstanceService','Start','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','init','next','subject','_handleTerminate','string','_presenter','setConfig','_liveShareService','Start\x20following','_status','_commandDisposable','getStatus','_stopFollowing','asObservable','You\x27re\x20presenting\x20the\x20document','_handleNewChangeSets','memberID','18375lzwwcF','onCommandExecuted','_unitID','div','NEW_CHANGESETS','getLiveShareCoordinatorSync','subscribe','231212xMiYMq','operations','createInstance','@univerjs-pro/live-share','has','getInitialStates','startFollowing','override','parse','live-share.config','getConfig','120yaNYwo','getTypeOfUnitAdded$','toPrimitive','141634RAygrU','complete','_reporters','pipe','Present\x20this\x20document','UNIVER_SHEET','add','symbol','_startLiveShareCoordinator','clear','_commandService','_beIdle','following','_startFollowing','values','_status$','1290924yKrksT','unit','tryStartPresenting','unsubscribe','getTypeOfUnitDisposed$','LIVESHARE_FETCH_OPERATIONS','text','registerSharedOperation','mutations','getLiveShareCoordinator','includes','300xbiTUV','offline','decorate','_injector','LIVESHARE_NEW_HOST','delete','dispose$','getValue','_handleNewHost','call','25040nyZbrT','_fetchOperations','_collabSessionService','NOT_FOLLOWING','_configService','getMemberID','status$','find','You\x27re\x20not\x20following\x20the\x20presenter','OFFLINE','UNIVER_UNKNOWN','dispose','8785TNUhkA','IDLE','params','disposeWithMe','shouldShareOperation','_handleOffline','defineProperty','packageName','object','from','registerInitialStateReporter','_config','default','presenting','getCurrentTypeOfUnit$','_entities','registerComponent','not-following','end','56hOUcUi','_init','set','UNIVER_LIVE_SHARE_PLUGIN','_sharedOperations','idle','stopPresenting','1696100JXTsVM','_handleOnline','forEach','_collabSession','_uiPartsService','onRendered','get','LIVESHARE_OPERATION','Stop\x20following','pluginName','data','stopFollowing','function','getUnitId','unitId','_stopPresenting','ONLINE','FOLLOWING','current','send','executeCommand','_mountLiveShare','presenter','stringify','event$','map'];_0x3b04=function(){return _0x449aa2;};return _0x3b04();}import{CollaborationSessionService as _0x5525bb,SessionStatus as _0x28a6cc,UniverCollaborationClientPlugin as _0x57b419}from'@univerjs-pro/collaboration-client';import{CommandType as _0xbc0567,DependentOn as _0x51ca48,Disposable as _0x516cea,DisposableCollection as _0xf927e1,ICommandService as _0x36e78,IConfigService as _0x3ceecb,IUniverInstanceService as _0x407d65,Inject as _0x2e8c25,Injector as _0x301770,Plugin as _0x22dadf,RxDisposable as _0x454ded,UniverInstanceType as _0x104030,merge as _0x22904a,mergeOverrideWithDependencies as _0x49a17a,registerDependencies as _0x4c4ef5,toDisposable as _0x7b8648,touchDependencies as _0x2efcc9}from'@univerjs/core';import{InsertSheetMutation as _0x417356,SetWorksheetActiveOperation as _0x825d3}from'@univerjs/sheets';import{BehaviorSubject as _0x48b8ba,Subject as _0x2a6741}from'rxjs';import{takeUntil as _0x471262,throttleTime as _0x464a34}from'rxjs/operators';import{BuiltInUIPart as _0xb35ac5,IUIPartsService as _0x396b3b,connectInjector as _0x2af7a6,useDependency as _0x49f746,useObservable as _0x3fc517}from'@univerjs/ui';import{Button as _0x1d87b5,Dropdown as _0x132052,clsx as _0x43282b}from'@univerjs/design';import{LiveShareIcon as _0x501a81}from'@univerjs/icons';import{useEffect as _0x4e5c5e,useRef as _0xf04e19,useState as _0x54d631}from'react';import{Fragment as _0x33c60e,jsx as _0x2b78ed,jsxs as _0x46c0ab}from'react/jsx-runtime';import{SetScrollOperation as _0x4eaff8,SetZoomRatioOperation as _0x35ad51}from'@univerjs/sheets-ui';function R(_0x291027){'@babel/helpers - typeof';const _0x1f3aaf=_0x3685;return R=typeof Symbol==_0x1f3aaf(0xae)&&typeof Symbol[_0x1f3aaf(0xc0)]==_0x1f3aaf(0xf4)?function(_0x1b7878){return typeof _0x1b7878;}:function(_0x2ae6c2){const _0x4075fe=_0x1f3aaf;return _0x2ae6c2&&typeof Symbol==_0x4075fe(0xae)&&_0x2ae6c2['constructor']===Symbol&&_0x2ae6c2!==Symbol['prototype']?_0x4075fe(0xf4):typeof _0x2ae6c2;},R(_0x291027);}function z(_0xf774cb,_0x586126){const _0x48ae5d=_0x3685;if(R(_0xf774cb)!=_0x48ae5d(0x126)||!_0xf774cb)return _0xf774cb;var _0x1c1ea4=_0xf774cb[Symbol[_0x48ae5d(0xec)]];if(_0x1c1ea4!==void 0x0){var _0x3c996e=_0x1c1ea4[_0x48ae5d(0x111)](_0xf774cb,_0x586126||_0x48ae5d(0x12a));if(R(_0x3c996e)!=_0x48ae5d(0x126))return _0x3c996e;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x586126===_0x48ae5d(0xcb)?String:Number)(_0xf774cb);}function B(_0x356567){const _0x20b902=_0x3685;var _0xe0ddc4=z(_0x356567,_0x20b902(0xcb));return R(_0xe0ddc4)==_0x20b902(0xf4)?_0xe0ddc4:_0xe0ddc4+'';}function V(_0x256d0e,_0x52b8fb,_0x1529ec){const _0x19f888=_0x3685;return(_0x52b8fb=B(_0x52b8fb))in _0x256d0e?Object[_0x19f888(0x124)](_0x256d0e,_0x52b8fb,{'value':_0x1529ec,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x256d0e[_0x52b8fb]=_0x1529ec,_0x256d0e;}var H=class extends _0x516cea{constructor(..._0x192d21){const _0xa16cae=_0x3685;super(..._0x192d21),V(this,_0xa16cae(0x135),new Set()),V(this,_0xa16cae(0xef),new Set());}[_0x255515(0x104)](_0x208fd9){const _0xb13642=_0x255515;return this['_sharedOperations'][_0xb13642(0xf3)](_0x208fd9),_0x7b8648(()=>this[_0xb13642(0x135)][_0xb13642(0x10d)](_0x208fd9));}[_0x255515(0x128)](_0x28e71d){const _0x1dfc3d=_0x255515;return this['_reporters'][_0x1dfc3d(0xf3)](_0x28e71d),_0x7b8648(()=>this[_0x1dfc3d(0xef)]['delete'](_0x28e71d));}[_0x255515(0x122)](_0x14588f){const _0x1ac9c3=_0x255515;return this[_0x1ac9c3(0x135)][_0x1ac9c3(0xe3)](_0x14588f);}[_0x255515(0xe4)](_0x45e5c6){const _0x5d40cb=_0x255515;return Array[_0x5d40cb(0x127)](this[_0x5d40cb(0xef)])[_0x5d40cb(0xbb)](_0x46c62c=>_0x46c62c(_0x45e5c6));}};function U(_0x388b15,_0xa8cce){return function(_0x126223,_0x1e36f4){_0xa8cce(_0x126223,_0x1e36f4,_0x388b15);};}function W(_0x77d6f1,_0x2cfdb6,_0x48fe60,_0x1bac49){const _0xc32ae2=_0x255515;var _0x3b206e=arguments['length'],_0x599a9b=_0x3b206e<0x3?_0x2cfdb6:_0x1bac49===null?_0x1bac49=Object['getOwnPropertyDescriptor'](_0x2cfdb6,_0x48fe60):_0x1bac49,_0x4c94be;if(typeof Reflect==_0xc32ae2(0x126)&&typeof Reflect[_0xc32ae2(0x10a)]==_0xc32ae2(0xae))_0x599a9b=Reflect[_0xc32ae2(0x10a)](_0x77d6f1,_0x2cfdb6,_0x48fe60,_0x1bac49);else{for(var _0x423fa2=_0x77d6f1['length']-0x1;_0x423fa2>=0x0;_0x423fa2--)(_0x4c94be=_0x77d6f1[_0x423fa2])&&(_0x599a9b=(_0x3b206e<0x3?_0x4c94be(_0x599a9b):_0x3b206e>0x3?_0x4c94be(_0x2cfdb6,_0x48fe60,_0x599a9b):_0x4c94be(_0x2cfdb6,_0x48fe60))||_0x599a9b);}return _0x3b206e>0x3&&_0x599a9b&&Object[_0xc32ae2(0x124)](_0x2cfdb6,_0x48fe60,_0x599a9b),_0x599a9b;}let G=class extends _0x454ded{constructor(_0x4c8b46,_0xf5eef4,_0x4a07c5){const _0x21a6b5=_0x255515;super(),this['_univerInstanceService']=_0x4c8b46,this[_0x21a6b5(0x10b)]=_0xf5eef4,this['_collabSessionService']=_0x4a07c5,V(this,_0x21a6b5(0x12d),new Map()),this[_0x21a6b5(0x132)]();}async[_0x255515(0x106)](_0x458f39){const _0x140a66=_0x255515;return this[_0x140a66(0x12d)][_0x140a66(0xe3)](_0x458f39)||await this[_0x140a66(0xf5)](_0x458f39),this[_0x140a66(0x12d)]['get'](_0x458f39);}[_0x255515(0xdd)](_0x526e39){const _0x804695=_0x255515;var _0x3e9a64;return(_0x3e9a64=this[_0x804695(0x12d)][_0x804695(0xa8)](_0x526e39))==null?null:_0x3e9a64;}[_0x255515(0x132)](){const _0x2afed9=_0x255515;this[_0x2afed9(0xc3)][_0x2afed9(0xeb)](_0x104030['UNIVER_SHEET'])['pipe'](_0x471262(this[_0x2afed9(0x10e)]))[_0x2afed9(0xde)](async _0x4d074c=>{const _0x515d50=_0x2afed9;let _0x18cbe8=_0x4d074c[_0x515d50(0xfe)]['getUnitId']();this[_0x515d50(0x12d)]['has'](_0x18cbe8)||this[_0x515d50(0xf5)](_0x18cbe8);}),this[_0x2afed9(0xc3)][_0x2afed9(0x101)](_0x104030[_0x2afed9(0xf2)])[_0x2afed9(0xf0)](_0x471262(this[_0x2afed9(0x10e)]))[_0x2afed9(0xde)](_0x3583fb=>{const _0x25e0db=_0x2afed9;let _0x49cf13=_0x3583fb[_0x25e0db(0xaf)](),_0x529e1c=this['_entities'][_0x25e0db(0xa8)](_0x49cf13);_0x529e1c==null||_0x529e1c[_0x25e0db(0x11d)]();});}async[_0x255515(0xf5)](_0x31b484){const _0x22fa46=_0x255515;let _0x396478=await this[_0x22fa46(0x114)][_0x22fa46(0xbe)](_0x31b484),_0xcc3b03=this[_0x22fa46(0x10b)][_0x22fa46(0xe1)](q,_0x31b484,_0x396478);return _0xcc3b03[_0x22fa46(0xc7)](),this['_entities'][_0x22fa46(0x133)](_0x31b484,_0xcc3b03),_0xcc3b03;}};G=W([U(0x0,_0x407d65),U(0x1,_0x2e8c25(_0x301770)),U(0x2,_0x2e8c25(_0x5525bb))],G);let K=function(_0x25ba5c){const _0x14e866=_0x255515;return _0x25ba5c[_0x14e866(0x11b)]=_0x14e866(0x109),_0x25ba5c[_0x14e866(0x11f)]='idle',_0x25ba5c[_0x14e866(0xb3)]=_0x14e866(0xf9),_0x25ba5c[_0x14e866(0x115)]=_0x14e866(0x12f),_0x25ba5c['PRESENTING']=_0x14e866(0x12b),_0x25ba5c;}({}),q=class extends _0x454ded{get[_0x255515(0xd0)](){const _0x5e429f=_0x255515;return this[_0x5e429f(0xfc)][_0x5e429f(0x10f)]();}constructor(_0x28834e,_0x16146f,_0x5ec53e,_0x42de2a,_0x47e0ef){const _0xb92322=_0x255515;super(),this['_unitID']=_0x28834e,this[_0xb92322(0xa5)]=_0x16146f,this[_0xb92322(0x116)]=_0x5ec53e,this[_0xb92322(0xce)]=_0x42de2a,this[_0xb92322(0xf7)]=_0x47e0ef,V(this,'_status$',new _0x48b8ba(_0xb92322(0xa0))),V(this,_0xb92322(0x118),this[_0xb92322(0xfc)][_0xb92322(0xd4)]()),V(this,_0xb92322(0x132),!0x1),V(this,_0xb92322(0xd1),null),V(this,_0xb92322(0xcc),null);}[_0x255515(0x11d)](){const _0x16b895=_0x255515;var _0x5f009e;(_0x5f009e=this[_0x16b895(0xd1)])==null||_0x5f009e[_0x16b895(0x11d)](),this[_0x16b895(0xfc)]['next']('idle'),this[_0x16b895(0xfc)]['complete']();}[_0x255515(0xd2)](){return this['_status'];}[_0x255515(0xc7)](){const _0x714908=_0x255515;this[_0x714908(0x132)]||(this[_0x714908(0x132)]=!0x0,this[_0x714908(0xa5)]['sessionStatus$'][_0x714908(0xf0)](_0x471262(this[_0x714908(0x10e)]))['subscribe'](_0x156c04=>{const _0x3613c3=_0x714908;switch(_0x156c04){case _0x28a6cc[_0x3613c3(0x11b)]:this['_handleOffline']();break;case _0x28a6cc[_0x3613c3(0xb2)]:this[_0x3613c3(0xa3)]();break;default:}}),this['_collabSession'][_0x714908(0xba)][_0x714908(0xf0)](_0x471262(this[_0x714908(0x10e)]))[_0x714908(0xde)](_0x5c4b1a=>{const _0x582c94=_0x714908;let {eventID:_0x582aac}=_0x5c4b1a;switch(_0x582aac){case _0x24db57[_0x582c94(0x10c)]:this[_0x582c94(0x110)](_0x5c4b1a);break;case _0x24db57[_0x582c94(0xa9)]:this[_0x582c94(0xbf)](_0x5c4b1a);break;case _0x24db57['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x24db57[_0x582c94(0xdc)]:this[_0x582c94(0xd6)](_0x5c4b1a);break;default:}}));}['tryStartPresenting'](){const _0x3d4eda=_0x255515;this[_0x3d4eda(0xa5)][_0x3d4eda(0xb5)]({'eventID':_0x24db57['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3d4eda(0xda)],'userID':this[_0x3d4eda(0xa5)][_0x3d4eda(0x117)]()}},this[_0x3d4eda(0xda)]);}[_0x255515(0xa1)](){const _0x412192=_0x255515;this[_0x412192(0xd0)]==='presenting'&&(this[_0x412192(0xfc)][_0x412192(0xc8)](_0x412192(0xa0)),this['_collabSession'][_0x412192(0xb5)]({'eventID':_0x24db57['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x412192(0xda)]}},this[_0x412192(0xda)]));}[_0x255515(0xe5)](){const _0x40eea6=_0x255515;this['_status']===_0x40eea6(0x12f)&&(this[_0x40eea6(0xfc)][_0x40eea6(0xc8)](_0x40eea6(0xf9)),this['_startFollowing']());}[_0x255515(0xad)](){const _0x37f6b0=_0x255515;this[_0x37f6b0(0xd0)]===_0x37f6b0(0xf9)&&this[_0x37f6b0(0xd3)]();}[_0x255515(0x110)](_0x25e52f){const _0x355eeb=_0x255515;let {presenter:_0x5a9e12}=_0x25e52f[_0x355eeb(0xac)],_0x2d28af=this[_0x355eeb(0xa5)]['getMemberID']();this[_0x355eeb(0xcc)]=_0x5a9e12,_0x5a9e12===_0x2d28af?(this[_0x355eeb(0xd3)](),this[_0x355eeb(0xc6)]()):this[_0x355eeb(0xd0)]!==_0x355eeb(0x12f)&&(this[_0x355eeb(0xb1)](),this['_startFollowing']());}['_fetchOperations'](){const _0x22e1e2=_0x255515;let _0x2e21d9={'eventID':_0x24db57[_0x22e1e2(0x102)]};this[_0x22e1e2(0xa5)][_0x22e1e2(0xb5)](_0x2e21d9,this[_0x22e1e2(0xda)]);}[_0x255515(0xca)](){const _0x4174b7=_0x255515;this[_0x4174b7(0xcc)]=null,this[_0x4174b7(0xd0)]!==_0x4174b7(0x12b)&&this[_0x4174b7(0xf8)]();}['_handleNewChangeSets'](_0x688b52){const _0x2e2b8f=_0x255515;if(this[_0x2e2b8f(0xd0)]===_0x2e2b8f(0xf9)&&this[_0x2e2b8f(0xcc)]===_0x688b52[_0x2e2b8f(0xac)][_0x2e2b8f(0xd7)]){let _0x481b52=_0x1198e4(_0x688b52['data'])[_0x2e2b8f(0x105)]['reverse']()[_0x2e2b8f(0x119)](_0x1c9f74=>_0x1c9f74['id']===_0x417356['id']);if(_0x481b52){let _0x57b4d0=_0x481b52['params'][_0x2e2b8f(0xb0)],_0x5b7178=_0x481b52[_0x2e2b8f(0x120)]['sheet']['id'];setTimeout(()=>{const _0x3ba644=_0x2e2b8f;this[_0x3ba644(0xf7)][_0x3ba644(0xb6)](_0x825d3['id'],{'unitId':_0x57b4d0,'subUnitId':_0x5b7178},{'fromCollab':!0x0});});}}}[_0x255515(0xc6)](){const _0x4da664=_0x255515;var _0x37633b;(_0x37633b=this['_commandDisposable'])==null||_0x37633b['dispose'](),this[_0x4da664(0xfc)][_0x4da664(0xc8)](_0x4da664(0x12b));let _0x20f5fa=new Map(),_0x12e6ac=this[_0x4da664(0xd1)]=new _0xf927e1();_0x12e6ac[_0x4da664(0xf3)](_0x7b8648(()=>{const _0x478f78=_0x4da664;_0x20f5fa[_0x478f78(0xa4)](({subject:_0x51b928,subscription:_0x3fd189})=>{const _0x1b5d1a=_0x478f78;_0x3fd189[_0x1b5d1a(0x100)](),_0x51b928[_0x1b5d1a(0xee)]();}),_0x20f5fa[_0x478f78(0xf6)]();})),_0x12e6ac[_0x4da664(0xf3)](this[_0x4da664(0xf7)][_0x4da664(0xd9)](_0x5d10f7=>{const _0x4973fb=_0x4da664;if(_0x5d10f7[_0x4973fb(0xbc)]!==_0xbc0567['OPERATION']||!this[_0x4973fb(0xce)][_0x4973fb(0x122)](_0x5d10f7['id']))return;let {id:_0x429962}=_0x5d10f7,_0x29ec7f;if(_0x20f5fa[_0x4973fb(0xe3)](_0x429962))_0x29ec7f=_0x20f5fa[_0x4973fb(0xa8)](_0x429962)[_0x4973fb(0xc9)];else{var _0x2e56cc;_0x29ec7f=new _0x2a6741();let _0x5b9c5c=_0x29ec7f['pipe'](_0x464a34((_0x2e56cc=this['_configService'][_0x4973fb(0xe9)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2e56cc,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4973fb(0xde)](_0x4c8739=>{const _0x8c6a66=_0x4973fb;this['_collabSession']['send']({'eventID':_0x24db57[_0x8c6a66(0xa9)],'data':{'unitID':this[_0x8c6a66(0xda)],'operations':{[_0x4c8739['id']]:{'id':_0x4c8739['id'],'params':JSON[_0x8c6a66(0xb9)](_0x4c8739['params'])}}}},this[_0x8c6a66(0xda)]);});_0x20f5fa[_0x4973fb(0x133)](_0x429962,{'subject':_0x29ec7f,'subscription':_0x5b9c5c});}_0x29ec7f[_0x4973fb(0xc8)](_0x5d10f7);})),this[_0x4da664(0xce)]['getInitialStates'](this[_0x4da664(0xda)])['forEach'](_0x41af15=>this[_0x4da664(0xa5)][_0x4da664(0xb5)]({'eventID':_0x24db57[_0x4da664(0xa9)],'data':{'unitID':this[_0x4da664(0xda)],'operations':{[_0x41af15['id']]:{'id':_0x41af15['id'],'params':JSON[_0x4da664(0xb9)](_0x41af15[_0x4da664(0x120)])}}}},this[_0x4da664(0xda)]));}['_stopPresenting'](){const _0x5b2d80=_0x255515;var _0x59a1f1;this[_0x5b2d80(0xfc)][_0x5b2d80(0xc8)](_0x5b2d80(0xa0)),(_0x59a1f1=this[_0x5b2d80(0xd1)])==null||_0x59a1f1['dispose'](),this[_0x5b2d80(0xd1)]=null;}[_0x255515(0xfa)](){const _0x5a5541=_0x255515;var _0x212515;(_0x212515=this[_0x5a5541(0xd1)])==null||_0x212515[_0x5a5541(0x11d)](),this[_0x5a5541(0xfc)]['next'](_0x5a5541(0xf9));}[_0x255515(0xf8)](){const _0x4a5581=_0x255515;var _0x3a9caf;this[_0x4a5581(0xfc)][_0x4a5581(0xc8)](_0x4a5581(0xa0)),(_0x3a9caf=this[_0x4a5581(0xd1)])==null||_0x3a9caf[_0x4a5581(0x11d)](),this[_0x4a5581(0xd1)]=null;}[_0x255515(0xd3)](){const _0x2bd40b=_0x255515;var _0x5da691;this[_0x2bd40b(0xfc)][_0x2bd40b(0xc8)](_0x2bd40b(0x12f)),(_0x5da691=this['_commandDisposable'])==null||_0x5da691[_0x2bd40b(0x11d)]();}['_handleOperation'](_0x5b2f26){const _0x3ac595=_0x255515;if([_0x3ac595(0x12b),_0x3ac595(0x12f),_0x3ac595(0x109)][_0x3ac595(0x107)](this[_0x3ac595(0xd0)])||!_0x5b2f26[_0x3ac595(0xac)][_0x3ac595(0xb8)]||_0x5b2f26['data'][_0x3ac595(0xb8)]===this['_collabSession'][_0x3ac595(0x117)]())return;this[_0x3ac595(0xd0)]===_0x3ac595(0xa0)&&this['_startFollowing']();let _0x8f2d5b=_0x5b2f26[_0x3ac595(0xac)][_0x3ac595(0xe0)];Object[_0x3ac595(0xfb)](_0x8f2d5b)[_0x3ac595(0xa4)](_0x2e6295=>{const _0x2d8e1c=_0x3ac595;this[_0x2d8e1c(0xf7)][_0x2d8e1c(0xb6)](_0x2e6295['id'],_0x2e6295[_0x2d8e1c(0x120)]?JSON[_0x2d8e1c(0xe7)](_0x2e6295[_0x2d8e1c(0x120)]):null,{'fromCollab':!0x0});});}[_0x255515(0x123)](){const _0x5856f9=_0x255515;var _0x1857a1;this[_0x5856f9(0xfc)][_0x5856f9(0xc8)](_0x5856f9(0x109)),(_0x1857a1=this['_commandDisposable'])==null||_0x1857a1[_0x5856f9(0x11d)]();}[_0x255515(0xa3)](){const _0x42c8c0=_0x255515;this[_0x42c8c0(0xfc)][_0x42c8c0(0xc8)](_0x42c8c0(0xa0)),this[_0x42c8c0(0x113)]();}};q=W([U(0x2,_0x3ceecb),U(0x3,_0x2e8c25(H)),U(0x4,_0x36e78)],q);function J(){const _0x5055ee=_0x255515;let _0x30d7c1=_0x49f746(G),_0x507ea0=_0x49f746(_0x407d65),_0x1d3427=_0x3fc517(()=>_0x507ea0[_0x5055ee(0x12c)](_0x104030[_0x5055ee(0xf2)]),void 0x0,!0x1,[]),[_0x3d81fb,_0x431784]=_0x54d631(null),[_0x28789c,_0x218f96]=_0x54d631(_0x5055ee(0xa0)),_0x51c5c6=_0xf04e19(null);return _0x4e5c5e(()=>(_0x1d3427&&_0x30d7c1['getLiveShareCoordinator'](_0x1d3427['getUnitId']())[_0x5055ee(0xbd)](_0x17b76b=>{const _0x1c35f3=_0x5055ee;_0x431784(_0x17b76b),_0x51c5c6[_0x1c35f3(0xb4)]=_0x17b76b['status$'][_0x1c35f3(0xde)](_0x438e4e=>{_0x218f96(_0x438e4e);});}),()=>{const _0x133e0b=_0x5055ee;var _0x263f78;(_0x263f78=_0x51c5c6['current'])==null||_0x263f78[_0x133e0b(0x100)](),_0x51c5c6[_0x133e0b(0xb4)]=null;}),[_0x1d3427,_0x30d7c1]),_0x3d81fb?_0x2b78ed(_0x132052,{'align':_0x5055ee(0x130),'disabled':_0x28789c==='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':_0x2b78ed(se,{'status':_0x28789c,'coordinator':_0x3d81fb}),'children':_0x2b78ed('button',{'className':_0x43282b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x28789c==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x28789c!==_0x5055ee(0x109)}),'type':'button','children':_0x2b78ed(_0x501a81,{})})}):null;}function se(_0x19b886){const _0x263110=_0x255515;let {status:_0xf694cc,coordinator:_0x162ebe}=_0x19b886;switch(_0xf694cc){case _0x263110(0xa0):return _0x2b78ed(ce,{'coordinator':_0x162ebe});case'following':return _0x2b78ed(le,{'coordinator':_0x162ebe});case'not-following':return _0x2b78ed(ue,{'coordinator':_0x162ebe});case _0x263110(0x109):return _0x2b78ed(de,{});case _0x263110(0x12b):return _0x2b78ed(Y,{'coordinator':_0x162ebe});default:return null;}}function ce(_0x15ea92){const _0x553815=_0x255515;let {coordinator:_0x61892b}=_0x15ea92;return _0x46c0ab(_0x33c60e,{'children':[_0x2b78ed(_0x553815(0xdb),{'className':_0x553815(0xc5),'children':_0x553815(0xf1)}),_0x2b78ed(_0x1d87b5,{'onClick':()=>_0x61892b[_0x553815(0xff)](),'children':_0x553815(0xc4)})]});}function le(_0xf7c07d){const _0x8ce120=_0x255515;let {coordinator:_0x44ab45}=_0xf7c07d;return _0x46c0ab(_0x33c60e,{'children':[_0x2b78ed(_0x8ce120(0xdb),{'className':_0x8ce120(0xc5),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2b78ed(_0x1d87b5,{'onClick':()=>_0x44ab45[_0x8ce120(0xad)](),'children':_0x8ce120(0xaa)})]});}function ue(_0x4bd266){const _0xc09b4d=_0x255515;let {coordinator:_0x1bd947}=_0x4bd266;return _0x46c0ab(_0x33c60e,{'children':[_0x2b78ed(_0xc09b4d(0xdb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc09b4d(0x11a)}),_0x2b78ed(_0x1d87b5,{'variant':_0xc09b4d(0x103),'onClick':()=>_0x1bd947[_0xc09b4d(0xe5)](),'children':_0xc09b4d(0xcf)})]});}function Y(_0x43686c){const _0x5420ba=_0x255515;let {coordinator:_0x155788}=_0x43686c;return _0x46c0ab(_0x33c60e,{'children':[_0x2b78ed('div',{'className':_0x5420ba(0xc5),'children':_0x5420ba(0xd5)}),_0x2b78ed(_0x1d87b5,{'variant':_0x5420ba(0x12a),'onClick':()=>_0x155788[_0x5420ba(0xa1)](),'children':_0x5420ba(0xc1)})]});}function de(){return _0x2b78ed(_0x33c60e,{'children':'You\x27are\x20offline.'});}let X=class extends _0x516cea{constructor(_0x1dea67,_0x3de4de){super(),this['_injector']=_0x1dea67,this['_uiPartsService']=_0x3de4de,this['_mountLiveShare']();}[_0x255515(0xb7)](){const _0x70f274=_0x255515;this[_0x70f274(0x121)](this[_0x70f274(0xa6)][_0x70f274(0x12e)](_0xb35ac5['HEADER_MENU'],()=>_0x2af7a6(J,this[_0x70f274(0x10b)])));}};X=W([U(0x0,_0x2e8c25(_0x301770)),U(0x1,_0x396b3b)],X);var fe=_0x255515(0xe2),pe='1.0.0-alpha.2';const Z={};let Q=class extends _0x516cea{constructor(_0x460e31){const _0x314636=_0x255515;super(),this[_0x314636(0xce)]=_0x460e31,this[_0x314636(0x132)]();}[_0x255515(0x132)](){const _0x5bfe56=_0x255515;[_0x35ad51['id'],_0x4eaff8['id'],_0x825d3['id']][_0x5bfe56(0xa4)](_0x2f1557=>{const _0x174bcd=_0x5bfe56;this[_0x174bcd(0x121)](this[_0x174bcd(0xce)][_0x174bcd(0x104)](_0x2f1557));});}};Q=W([U(0x0,_0x2e8c25(H))],Q);let $=class extends _0x22dadf{constructor(_0x213cf8=Z,_0xe6139e,_0x2b2dd5){const _0x48b490=_0x255515;super(),this['_config']=_0x213cf8,this['_injector']=_0xe6139e,this[_0x48b490(0x116)]=_0x2b2dd5;let {..._0x35f72a}=_0x22904a({},Z,this['_config']);this[_0x48b490(0x116)][_0x48b490(0xcd)](_0x48b490(0xe8),_0x35f72a);}[_0x255515(0xc2)](){const _0x3e7d37=_0x255515;_0x4c4ef5(this['_injector'],_0x49a17a([[H],[G],[Q],[X]],this[_0x3e7d37(0x129)][_0x3e7d37(0xe6)])),_0x2efcc9(this['_injector'],[[Q]]);}[_0x255515(0xa7)](){const _0x73335b=_0x255515;_0x2efcc9(this[_0x73335b(0x10b)],[[X]]);}};V($,'type',_0x104030[_0x255515(0x11c)]),V($,_0x255515(0xab),_0x255515(0x134)),V($,_0x255515(0x125),fe),V($,'version',pe),$=W([_0x51ca48(_0x57b419),U(0x1,_0x2e8c25(_0x301770)),U(0x2,_0x3ceecb)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xe040(){const _0xfbd7cf=['function','_initialize','956nlKwyQ','43582Mtfaoa','UniverInstanceType','toPrimitive','1014443eYifAp','startFollowing','_injector','defineProperty','@univerjs/core','54OlmkLD','No\x20active\x20workbook\x20found.','stopFollowing','FUniver','75070AgOAiX','4tyNfNh','3061848UGwUEY','LiveShareController','getUnitId','iterator','amd','startPresenting','constructor','UniverCoreFacade','UniverCore','object','UniverProLiveShare','_liveShareController','getStatus','getLiveShareStatus','UNIVER_SHEET','1051143COXFyQ','call','getCurrentUnitOfType','1611YkbAiM','22370084oRAKet','29180nGAPpU','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','default','LiveShareStatusEnum','get','stopPresenting','IDLE','FEnum','string','symbol','IUniverInstanceService','@univerjs-pro/live-share','getLiveShareCoordinatorSync'];_0xe040=function(){return _0xfbd7cf;};return _0xe040();}function _0x3093(_0x3ac3dc,_0x31e94e){_0x3ac3dc=_0x3ac3dc-0x16b;const _0xe0404f=_0xe040();let _0x309330=_0xe0404f[_0x3ac3dc];return _0x309330;}(function(_0xcf695b,_0x1ffe3d){const _0x2c26f7=_0x3093,_0x5afce5=_0xcf695b();while(!![]){try{const _0x281ec8=-parseInt(_0x2c26f7(0x198))/0x1+parseInt(_0x2c26f7(0x170))/0x2*(-parseInt(_0x2c26f7(0x180))/0x3)+parseInt(_0x2c26f7(0x194))/0x4*(-parseInt(_0x2c26f7(0x185))/0x5)+-parseInt(_0x2c26f7(0x16b))/0x6*(-parseInt(_0x2c26f7(0x195))/0x7)+parseInt(_0x2c26f7(0x171))/0x8+-parseInt(_0x2c26f7(0x183))/0x9*(-parseInt(_0x2c26f7(0x16f))/0xa)+parseInt(_0x2c26f7(0x184))/0xb;if(_0x281ec8===_0x1ffe3d)break;else _0x5afce5['push'](_0x5afce5['shift']());}catch(_0x59ae33){_0x5afce5['push'](_0x5afce5['shift']());}}}(_0xe040,0xac669),function(_0x7fea3a,_0x1ce480){const _0x5a8b8a=_0x3093;typeof exports==_0x5a8b8a(0x17a)&&typeof module<'u'?_0x1ce480(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x5a8b8a(0x175)]?define([_0x5a8b8a(0x190),_0x5a8b8a(0x19c),'@univerjs/core/facade'],_0x1ce480):(_0x7fea3a=typeof globalThis<'u'?globalThis:_0x7fea3a||self,_0x1ce480(_0x7fea3a[_0x5a8b8a(0x17b)],_0x7fea3a[_0x5a8b8a(0x179)],_0x7fea3a[_0x5a8b8a(0x178)]));}(this,function(_0x2a52c3,_0x5f06db,_0x63883b){const _0x567855=_0x3093;function _0x27881c(_0x235791){'@babel/helpers - typeof';const _0x559f0e=_0x3093;return _0x27881c=typeof Symbol==_0x559f0e(0x192)&&typeof Symbol[_0x559f0e(0x174)]=='symbol'?function(_0x40b6e4){return typeof _0x40b6e4;}:function(_0x25e4dd){const _0x4e7e0e=_0x559f0e;return _0x25e4dd&&typeof Symbol=='function'&&_0x25e4dd[_0x4e7e0e(0x177)]===Symbol&&_0x25e4dd!==Symbol['prototype']?'symbol':typeof _0x25e4dd;},_0x27881c(_0x235791);}function _0x474f7c(_0xa1f2c6,_0x161cc3){const _0x5d8215=_0x3093;if(_0x27881c(_0xa1f2c6)!=_0x5d8215(0x17a)||!_0xa1f2c6)return _0xa1f2c6;var _0x30daed=_0xa1f2c6[Symbol[_0x5d8215(0x197)]];if(_0x30daed!==void 0x0){var _0x53a737=_0x30daed[_0x5d8215(0x181)](_0xa1f2c6,_0x161cc3||_0x5d8215(0x187));if(_0x27881c(_0x53a737)!=_0x5d8215(0x17a))return _0x53a737;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x161cc3===_0x5d8215(0x18d)?String:Number)(_0xa1f2c6);}function _0x344934(_0xde9ce2){const _0x125626=_0x3093;var _0x3496a9=_0x474f7c(_0xde9ce2,_0x125626(0x18d));return _0x27881c(_0x3496a9)==_0x125626(0x18e)?_0x3496a9:_0x3496a9+'';}function _0x204c1e(_0x43e43c,_0x19de1c,_0x3b9727){const _0x5a4bf5=_0x3093;return(_0x19de1c=_0x344934(_0x19de1c))in _0x43e43c?Object[_0x5a4bf5(0x19b)](_0x43e43c,_0x19de1c,{'value':_0x3b9727,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x43e43c[_0x19de1c]=_0x3b9727,_0x43e43c;}var _0x64d197=class extends _0x63883b[_0x567855(0x16e)]{constructor(..._0x3c7b38){super(..._0x3c7b38),_0x204c1e(this,'_liveShareController',void 0x0);}[_0x567855(0x193)](_0x55a6bb){const _0x5378eb=_0x567855;this['_liveShareController']=_0x55a6bb[_0x5378eb(0x189)](_0x2a52c3[_0x5378eb(0x172)]);}[_0x567855(0x17e)](){const _0x1e0ff7=_0x567855;var _0x25bdb6;let _0x560bf7=this[_0x1e0ff7(0x19a)][_0x1e0ff7(0x189)](_0x5f06db[_0x1e0ff7(0x18f)])['getCurrentUnitOfType'](_0x5f06db[_0x1e0ff7(0x196)]['UNIVER_SHEET']);if(!_0x560bf7)throw Error(_0x1e0ff7(0x16c));let _0x10e86c=_0x560bf7['getUnitId'](),_0x169414=this['_liveShareController'][_0x1e0ff7(0x191)](_0x10e86c);return(_0x25bdb6=_0x169414==null?void 0x0:_0x169414[_0x1e0ff7(0x17d)]())==null?_0x2a52c3['LiveShareStatus'][_0x1e0ff7(0x18b)]:_0x25bdb6;}[_0x567855(0x199)](){const _0xa297b7=_0x567855;let _0x1baef3=this[_0xa297b7(0x19a)][_0xa297b7(0x189)](_0x5f06db['IUniverInstanceService'])[_0xa297b7(0x182)](_0x5f06db[_0xa297b7(0x196)]['UNIVER_SHEET']);if(!_0x1baef3)throw Error(_0xa297b7(0x16c));let _0x22de76=_0x1baef3[_0xa297b7(0x173)](),_0x127f09=this[_0xa297b7(0x17c)]['getLiveShareCoordinatorSync'](_0x22de76);if(!_0x127f09)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x127f09[_0xa297b7(0x199)]();}[_0x567855(0x16d)](){const _0x59e108=_0x567855;let _0xa0e3c6=this[_0x59e108(0x19a)][_0x59e108(0x189)](_0x5f06db[_0x59e108(0x18f)])[_0x59e108(0x182)](_0x5f06db[_0x59e108(0x196)][_0x59e108(0x17f)]);if(!_0xa0e3c6)throw Error(_0x59e108(0x16c));let _0x16a8eb=_0xa0e3c6['getUnitId'](),_0x18bbd9=this['_liveShareController'][_0x59e108(0x191)](_0x16a8eb);if(!_0x18bbd9)throw Error(_0x59e108(0x186));_0x18bbd9[_0x59e108(0x16d)]();}[_0x567855(0x176)](){const _0x2d2801=_0x567855;let _0xf160ca=this['_injector'][_0x2d2801(0x189)](_0x5f06db[_0x2d2801(0x18f)])['getCurrentUnitOfType'](_0x5f06db['UniverInstanceType'][_0x2d2801(0x17f)]);if(!_0xf160ca)throw Error(_0x2d2801(0x16c));let _0x453199=_0xf160ca[_0x2d2801(0x173)](),_0x48cba7=this['_liveShareController'][_0x2d2801(0x191)](_0x453199);if(!_0x48cba7)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x48cba7['tryStartPresenting']();}[_0x567855(0x18a)](){const _0x5620c9=_0x567855;let _0x437ffb=this[_0x5620c9(0x19a)][_0x5620c9(0x189)](_0x5f06db['IUniverInstanceService'])['getCurrentUnitOfType'](_0x5f06db[_0x5620c9(0x196)]['UNIVER_SHEET']);if(!_0x437ffb)throw Error(_0x5620c9(0x16c));let _0x668cef=_0x437ffb['getUnitId'](),_0x2f800b=this['_liveShareController'][_0x5620c9(0x191)](_0x668cef);if(!_0x2f800b)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2f800b[_0x5620c9(0x18a)]();}};_0x63883b[_0x567855(0x16e)]['extend'](_0x64d197);var _0x47f6c5=class extends _0x63883b[_0x567855(0x18c)]{get[_0x567855(0x188)](){return _0x2a52c3['LiveShareStatus'];}};_0x63883b[_0x567855(0x18c)]['extend'](_0x47f6c5);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xb787a5,_0x37128c){const _0x1b5365=_0x3522,_0x48f2e9=_0xb787a5();while(!![]){try{const _0x5baf8a=-parseInt(_0x1b5365(0x1c5))/0x1+-parseInt(_0x1b5365(0x24c))/0x2*(-parseInt(_0x1b5365(0x1dc))/0x3)+parseInt(_0x1b5365(0x1e0))/0x4*(parseInt(_0x1b5365(0x19b))/0x5)+-parseInt(_0x1b5365(0x1aa))/0x6+-parseInt(_0x1b5365(0x19a))/0x7+parseInt(_0x1b5365(0x1fd))/0x8*(-parseInt(_0x1b5365(0x1e1))/0x9)+parseInt(_0x1b5365(0x247))/0xa;if(_0x5baf8a===_0x37128c)break;else _0x48f2e9['push'](_0x48f2e9['shift']());}catch(_0x1fae8b){_0x48f2e9['push'](_0x48f2e9['shift']());}}}(_0x3b8f,0x8b687),function(_0x4506cf,_0x49514e){const _0x1e7aac=_0x3522;typeof exports==_0x1e7aac(0x1a9)&&typeof module<'u'?_0x49514e(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime'),require('@univerjs/sheets-ui')):typeof define==_0x1e7aac(0x1b4)&&define['amd']?define(['exports',_0x1e7aac(0x181),_0x1e7aac(0x16f),_0x1e7aac(0x220),_0x1e7aac(0x1f0),'rxjs','rxjs/operators',_0x1e7aac(0x22c),_0x1e7aac(0x200),_0x1e7aac(0x243),_0x1e7aac(0x17e),_0x1e7aac(0x1cb)],_0x49514e):(_0x4506cf=typeof globalThis<'u'?globalThis:_0x4506cf||self,_0x49514e(_0x4506cf[_0x1e7aac(0x22a)]={},_0x4506cf[_0x1e7aac(0x237)],_0x4506cf[_0x1e7aac(0x214)],_0x4506cf[_0x1e7aac(0x1eb)],_0x4506cf[_0x1e7aac(0x207)],_0x4506cf[_0x1e7aac(0x15d)],_0x4506cf['rxjs']['operators'],_0x4506cf[_0x1e7aac(0x1a6)],_0x4506cf[_0x1e7aac(0x1c4)],_0x4506cf['React'],_0x4506cf[_0x1e7aac(0x1c0)],_0x4506cf[_0x1e7aac(0x1da)]));}(this,function(_0x522c9e,_0x5e573b,_0x5a0b21,_0x2783b2,_0x5e4379,_0x1b8c8a,_0x5b7387,_0x59ae43,_0x5342f5,_0x28435e,_0x1fcf35,_0x149c26){const _0x273424=_0x3522;Object[_0x273424(0x228)](_0x522c9e,Symbol[_0x273424(0x24d)],{'value':_0x273424(0x1d0)});function _0x4a213c(_0x1927da){'@babel/helpers - typeof';const _0x4b1d87=_0x273424;return _0x4a213c=typeof Symbol==_0x4b1d87(0x1b4)&&typeof Symbol['iterator']=='symbol'?function(_0x823a02){return typeof _0x823a02;}:function(_0x749b74){const _0x27f1b8=_0x4b1d87;return _0x749b74&&typeof Symbol==_0x27f1b8(0x1b4)&&_0x749b74[_0x27f1b8(0x234)]===Symbol&&_0x749b74!==Symbol[_0x27f1b8(0x16a)]?'symbol':typeof _0x749b74;},_0x4a213c(_0x1927da);}function _0x545adb(_0x67b8fd,_0x1a25fe){const _0x14f6fa=_0x273424;if(_0x4a213c(_0x67b8fd)!=_0x14f6fa(0x1a9)||!_0x67b8fd)return _0x67b8fd;var _0x2ce7cc=_0x67b8fd[Symbol[_0x14f6fa(0x1ec)]];if(_0x2ce7cc!==void 0x0){var _0x443e99=_0x2ce7cc[_0x14f6fa(0x194)](_0x67b8fd,_0x1a25fe||_0x14f6fa(0x17d));if(_0x4a213c(_0x443e99)!='object')return _0x443e99;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1a25fe===_0x14f6fa(0x20b)?String:Number)(_0x67b8fd);}function _0x1ba22d(_0x388432){const _0x259c96=_0x273424;var _0x166d7a=_0x545adb(_0x388432,'string');return _0x4a213c(_0x166d7a)==_0x259c96(0x221)?_0x166d7a:_0x166d7a+'';}function _0xdfb72d(_0x431817,_0x4ab856,_0x20b0fc){const _0x45075a=_0x273424;return(_0x4ab856=_0x1ba22d(_0x4ab856))in _0x431817?Object[_0x45075a(0x228)](_0x431817,_0x4ab856,{'value':_0x20b0fc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x431817[_0x4ab856]=_0x20b0fc,_0x431817;}var _0x46bf5a=class extends _0x2783b2[_0x273424(0x1f2)]{constructor(..._0x47062e){const _0x18b950=_0x273424;super(..._0x47062e),_0xdfb72d(this,'_sharedOperations',new Set()),_0xdfb72d(this,_0x18b950(0x1e4),new Set());}[_0x273424(0x231)](_0x3ce058){const _0x41054d=_0x273424;return this['_sharedOperations'][_0x41054d(0x168)](_0x3ce058),(0x0,_0x2783b2[_0x41054d(0x19f)])(()=>this[_0x41054d(0x18e)]['delete'](_0x3ce058));}[_0x273424(0x224)](_0x1c835e){const _0x46d978=_0x273424;return this[_0x46d978(0x1e4)][_0x46d978(0x168)](_0x1c835e),(0x0,_0x2783b2[_0x46d978(0x19f)])(()=>this[_0x46d978(0x1e4)]['delete'](_0x1c835e));}[_0x273424(0x1c6)](_0x48aae4){const _0x2845c6=_0x273424;return this[_0x2845c6(0x18e)][_0x2845c6(0x226)](_0x48aae4);}[_0x273424(0x17f)](_0x4e912c){const _0x278739=_0x273424;return Array[_0x278739(0x238)](this[_0x278739(0x1e4)])[_0x278739(0x178)](_0x146898=>_0x146898(_0x4e912c));}};function _0x5a79e4(_0x4fd5a0,_0x333307){return function(_0x355ce0,_0x1c15b5){_0x333307(_0x355ce0,_0x1c15b5,_0x4fd5a0);};}function _0x5e495f(_0x4e2cae,_0x2c4bf0,_0x2cbef6,_0x3ffae0){const _0x595fb9=_0x273424;var _0x24fcfb=arguments[_0x595fb9(0x171)],_0x475659=_0x24fcfb<0x3?_0x2c4bf0:_0x3ffae0===null?_0x3ffae0=Object[_0x595fb9(0x1b1)](_0x2c4bf0,_0x2cbef6):_0x3ffae0,_0x18c4da;if(typeof Reflect==_0x595fb9(0x1a9)&&typeof Reflect['decorate']==_0x595fb9(0x1b4))_0x475659=Reflect[_0x595fb9(0x1cd)](_0x4e2cae,_0x2c4bf0,_0x2cbef6,_0x3ffae0);else{for(var _0x873bcc=_0x4e2cae['length']-0x1;_0x873bcc>=0x0;_0x873bcc--)(_0x18c4da=_0x4e2cae[_0x873bcc])&&(_0x475659=(_0x24fcfb<0x3?_0x18c4da(_0x475659):_0x24fcfb>0x3?_0x18c4da(_0x2c4bf0,_0x2cbef6,_0x475659):_0x18c4da(_0x2c4bf0,_0x2cbef6))||_0x475659);}return _0x24fcfb>0x3&&_0x475659&&Object[_0x595fb9(0x228)](_0x2c4bf0,_0x2cbef6,_0x475659),_0x475659;}let _0x403428=class extends _0x2783b2[_0x273424(0x195)]{constructor(_0x23dd4f,_0x3f44ae,_0x5df301){const _0x2da985=_0x273424;super(),this[_0x2da985(0x1e5)]=_0x23dd4f,this['_injector']=_0x3f44ae,this[_0x2da985(0x22e)]=_0x5df301,_0xdfb72d(this,_0x2da985(0x1a1),new Map()),this['_init']();}async['getLiveShareCoordinator'](_0xae6926){const _0x354525=_0x273424;return this[_0x354525(0x1a1)][_0x354525(0x226)](_0xae6926)||await this['_startLiveShareCoordinator'](_0xae6926),this['_entities'][_0x354525(0x241)](_0xae6926);}['getLiveShareCoordinatorSync'](_0x214bc4){const _0x4dc3f9=_0x273424;var _0x498bd7;return(_0x498bd7=this[_0x4dc3f9(0x1a1)][_0x4dc3f9(0x241)](_0x214bc4))==null?null:_0x498bd7;}['_init'](){const _0x1ce1c6=_0x273424;this[_0x1ce1c6(0x1e5)][_0x1ce1c6(0x213)](_0x2783b2['UniverInstanceType'][_0x1ce1c6(0x215)])[_0x1ce1c6(0x167)]((0x0,_0x5b7387['takeUntil'])(this['dispose$']))['subscribe'](async _0x52caf6=>{const _0x384bec=_0x1ce1c6;let _0x4e192e=_0x52caf6[_0x384bec(0x15e)][_0x384bec(0x1fb)]();this['_entities'][_0x384bec(0x226)](_0x4e192e)||this[_0x384bec(0x1e3)](_0x4e192e);}),this[_0x1ce1c6(0x1e5)][_0x1ce1c6(0x20d)](_0x2783b2[_0x1ce1c6(0x16d)][_0x1ce1c6(0x215)])[_0x1ce1c6(0x167)]((0x0,_0x5b7387[_0x1ce1c6(0x1d3)])(this[_0x1ce1c6(0x21d)]))['subscribe'](_0x3cbba5=>{const _0x248716=_0x1ce1c6;let _0x3b3c3b=_0x3cbba5[_0x248716(0x1fb)](),_0x13c980=this[_0x248716(0x1a1)]['get'](_0x3b3c3b);_0x13c980==null||_0x13c980['dispose']();});}async[_0x273424(0x1e3)](_0x67b7a){const _0x24b56b=_0x273424;let _0x1f2c98=await this['_collabSessionService']['requireSession'](_0x67b7a),_0x3647db=this['_injector']['createInstance'](_0x5676f0,_0x67b7a,_0x1f2c98);return _0x3647db[_0x24b56b(0x15f)](),this[_0x24b56b(0x1a1)][_0x24b56b(0x191)](_0x67b7a,_0x3647db),_0x3647db;}};_0x403428=_0x5e495f([_0x5a79e4(0x0,_0x2783b2['IUniverInstanceService']),_0x5a79e4(0x1,(0x0,_0x2783b2[_0x273424(0x182)])(_0x2783b2[_0x273424(0x172)])),_0x5a79e4(0x2,(0x0,_0x2783b2[_0x273424(0x182)])(_0x5a0b21[_0x273424(0x163)]))],_0x403428);let _0x26310f=function(_0xccc439){const _0xce207c=_0x273424;return _0xccc439[_0xce207c(0x1c8)]=_0xce207c(0x192),_0xccc439[_0xce207c(0x199)]='idle',_0xccc439['FOLLOWING']=_0xce207c(0x24b),_0xccc439['NOT_FOLLOWING']='not-following',_0xccc439[_0xce207c(0x230)]=_0xce207c(0x22d),_0xccc439;}({}),_0x5676f0=class extends _0x2783b2['RxDisposable']{get[_0x273424(0x1e8)](){const _0xddf438=_0x273424;return this[_0xddf438(0x1af)]['getValue']();}constructor(_0x535ede,_0x53b117,_0x50a3c5,_0x59b59f,_0x46c480){const _0x1b04e6=_0x273424;super(),this[_0x1b04e6(0x1f8)]=_0x535ede,this[_0x1b04e6(0x18b)]=_0x53b117,this['_configService']=_0x50a3c5,this['_liveShareService']=_0x59b59f,this[_0x1b04e6(0x1ee)]=_0x46c480,_0xdfb72d(this,_0x1b04e6(0x1af),new _0x1b8c8a[(_0x1b04e6(0x1f4))](_0x1b04e6(0x248))),_0xdfb72d(this,'status$',this[_0x1b04e6(0x1af)][_0x1b04e6(0x160)]()),_0xdfb72d(this,'_init',!0x1),_0xdfb72d(this,_0x1b04e6(0x15c),null),_0xdfb72d(this,'_presenter',null);}[_0x273424(0x179)](){const _0x3ee777=_0x273424;var _0x52bf53;(_0x52bf53=this['_commandDisposable'])==null||_0x52bf53[_0x3ee777(0x179)](),this[_0x3ee777(0x1af)][_0x3ee777(0x233)](_0x3ee777(0x248)),this['_status$']['complete']();}[_0x273424(0x21f)](){const _0x32cf97=_0x273424;return this[_0x32cf97(0x1e8)];}[_0x273424(0x15f)](){const _0x5e25b9=_0x273424;this[_0x5e25b9(0x209)]||(this['_init']=!0x0,this['_collabSession'][_0x5e25b9(0x165)][_0x5e25b9(0x167)]((0x0,_0x5b7387[_0x5e25b9(0x1d3)])(this['dispose$']))[_0x5e25b9(0x183)](_0x573fef=>{const _0x4eaa9f=_0x5e25b9;switch(_0x573fef){case _0x5a0b21[_0x4eaa9f(0x22f)][_0x4eaa9f(0x1c8)]:this[_0x4eaa9f(0x23b)]();break;case _0x5a0b21[_0x4eaa9f(0x22f)][_0x4eaa9f(0x210)]:this[_0x4eaa9f(0x1df)]();break;default:}}),this[_0x5e25b9(0x18b)][_0x5e25b9(0x239)][_0x5e25b9(0x167)]((0x0,_0x5b7387[_0x5e25b9(0x1d3)])(this[_0x5e25b9(0x21d)]))[_0x5e25b9(0x183)](_0x240cc6=>{const _0x17c44d=_0x5e25b9;let {eventID:_0x145fb2}=_0x240cc6;switch(_0x145fb2){case _0x5e573b['CollaborationEvent'][_0x17c44d(0x1f3)]:this[_0x17c44d(0x23c)](_0x240cc6);break;case _0x5e573b[_0x17c44d(0x206)][_0x17c44d(0x1dd)]:this['_handleOperation'](_0x240cc6);break;case _0x5e573b[_0x17c44d(0x206)]['LIVESHARE_TERMINATE']:this[_0x17c44d(0x193)]();break;case _0x5e573b[_0x17c44d(0x206)][_0x17c44d(0x203)]:this[_0x17c44d(0x19e)](_0x240cc6);break;default:}}));}[_0x273424(0x1fc)](){const _0x11c287=_0x273424;this[_0x11c287(0x18b)][_0x11c287(0x17a)]({'eventID':_0x5e573b[_0x11c287(0x206)][_0x11c287(0x189)],'data':{'unitID':this['_unitID'],'userID':this[_0x11c287(0x18b)][_0x11c287(0x1f5)]()}},this['_unitID']);}[_0x273424(0x1ed)](){const _0x21cd36=_0x273424;this[_0x21cd36(0x1e8)]==='presenting'&&(this['_status$'][_0x21cd36(0x233)](_0x21cd36(0x248)),this[_0x21cd36(0x18b)][_0x21cd36(0x17a)]({'eventID':_0x5e573b[_0x21cd36(0x206)][_0x21cd36(0x1a2)],'data':{'unitID':this[_0x21cd36(0x1f8)]}},this[_0x21cd36(0x1f8)]));}[_0x273424(0x1a4)](){const _0x15a385=_0x273424;this[_0x15a385(0x1e8)]===_0x15a385(0x1a5)&&(this[_0x15a385(0x1af)][_0x15a385(0x233)]('following'),this[_0x15a385(0x1b0)]());}['stopFollowing'](){const _0x38fd9a=_0x273424;this[_0x38fd9a(0x1e8)]===_0x38fd9a(0x24b)&&this[_0x38fd9a(0x229)]();}[_0x273424(0x23c)](_0x485ee8){const _0x2c0b2b=_0x273424;let {presenter:_0x3ee4c8}=_0x485ee8['data'],_0x4c2c83=this[_0x2c0b2b(0x18b)]['getMemberID']();this[_0x2c0b2b(0x23a)]=_0x3ee4c8,_0x3ee4c8===_0x4c2c83?(this[_0x2c0b2b(0x229)](),this[_0x2c0b2b(0x222)]()):this[_0x2c0b2b(0x1e8)]!=='not-following'&&(this[_0x2c0b2b(0x174)](),this[_0x2c0b2b(0x1b0)]());}['_fetchOperations'](){const _0x2dce54=_0x273424;let _0x3235a1={'eventID':_0x5e573b[_0x2dce54(0x206)][_0x2dce54(0x1f9)]};this[_0x2dce54(0x18b)][_0x2dce54(0x17a)](_0x3235a1,this['_unitID']);}['_handleTerminate'](){const _0xc8ed0c=_0x273424;this['_presenter']=null,this[_0xc8ed0c(0x1e8)]!==_0xc8ed0c(0x22d)&&this[_0xc8ed0c(0x198)]();}['_handleNewChangeSets'](_0x53c920){const _0x117bbd=_0x273424;if(this['_status']===_0x117bbd(0x24b)&&this[_0x117bbd(0x23a)]===_0x53c920[_0x117bbd(0x24e)]['memberID']){let _0x53830a=(0x0,_0x5e573b['parseProtocolChangeset'])(_0x53c920['data'])['mutations'][_0x117bbd(0x166)]()[_0x117bbd(0x15b)](_0x9dc178=>_0x9dc178['id']===_0x5e4379[_0x117bbd(0x170)]['id']);if(_0x53830a){let _0x520775=_0x53830a[_0x117bbd(0x20c)][_0x117bbd(0x1a8)],_0x2745a0=_0x53830a[_0x117bbd(0x20c)][_0x117bbd(0x187)]['id'];setTimeout(()=>{const _0x404603=_0x117bbd;this[_0x404603(0x1ee)][_0x404603(0x1b2)](_0x5e4379[_0x404603(0x1cf)]['id'],{'unitId':_0x520775,'subUnitId':_0x2745a0},{'fromCollab':!0x0});});}}}[_0x273424(0x222)](){const _0x32db00=_0x273424;var _0x2bf9ad;(_0x2bf9ad=this[_0x32db00(0x15c)])==null||_0x2bf9ad['dispose'](),this[_0x32db00(0x1af)]['next'](_0x32db00(0x22d));let _0x34d554=new Map(),_0x4a2972=this[_0x32db00(0x15c)]=new _0x2783b2[(_0x32db00(0x16c))]();_0x4a2972['add']((0x0,_0x2783b2[_0x32db00(0x19f)])(()=>{const _0x3d876c=_0x32db00;_0x34d554['forEach'](({subject:_0x49a983,subscription:_0x263a6f})=>{_0x263a6f['unsubscribe'](),_0x49a983['complete']();}),_0x34d554[_0x3d876c(0x1ac)]();})),_0x4a2972[_0x32db00(0x168)](this[_0x32db00(0x1ee)][_0x32db00(0x246)](_0x2da30d=>{const _0x4889d8=_0x32db00;if(_0x2da30d['type']!==_0x2783b2[_0x4889d8(0x1ad)][_0x4889d8(0x1a0)]||!this['_liveShareService'][_0x4889d8(0x1c6)](_0x2da30d['id']))return;let {id:_0x2f9cae}=_0x2da30d,_0x5d59e0;if(_0x34d554[_0x4889d8(0x226)](_0x2f9cae))_0x5d59e0=_0x34d554['get'](_0x2f9cae)[_0x4889d8(0x1d6)];else{var _0x2459de;_0x5d59e0=new _0x1b8c8a['Subject']();let _0x10b04a=_0x5d59e0[_0x4889d8(0x167)]((0x0,_0x5b7387[_0x4889d8(0x232)])((_0x2459de=this[_0x4889d8(0x1b3)][_0x4889d8(0x227)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2459de,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4889d8(0x183)](_0x550870=>{const _0x310f3e=_0x4889d8;this[_0x310f3e(0x18b)][_0x310f3e(0x17a)]({'eventID':_0x5e573b[_0x310f3e(0x206)][_0x310f3e(0x1dd)],'data':{'unitID':this['_unitID'],'operations':{[_0x550870['id']]:{'id':_0x550870['id'],'params':JSON[_0x310f3e(0x1b7)](_0x550870['params'])}}}},this[_0x310f3e(0x1f8)]);});_0x34d554[_0x4889d8(0x191)](_0x2f9cae,{'subject':_0x5d59e0,'subscription':_0x10b04a});}_0x5d59e0[_0x4889d8(0x233)](_0x2da30d);})),this[_0x32db00(0x18a)][_0x32db00(0x17f)](this['_unitID'])['forEach'](_0xb5ea68=>this[_0x32db00(0x18b)][_0x32db00(0x17a)]({'eventID':_0x5e573b[_0x32db00(0x206)][_0x32db00(0x1dd)],'data':{'unitID':this[_0x32db00(0x1f8)],'operations':{[_0xb5ea68['id']]:{'id':_0xb5ea68['id'],'params':JSON['stringify'](_0xb5ea68[_0x32db00(0x20c)])}}}},this[_0x32db00(0x1f8)]));}['_stopPresenting'](){const _0x4d8408=_0x273424;var _0x174131;this[_0x4d8408(0x1af)][_0x4d8408(0x233)](_0x4d8408(0x248)),(_0x174131=this[_0x4d8408(0x15c)])==null||_0x174131[_0x4d8408(0x179)](),this[_0x4d8408(0x15c)]=null;}['_startFollowing'](){const _0x5a049d=_0x273424;var _0x1de7d5;(_0x1de7d5=this[_0x5a049d(0x15c)])==null||_0x1de7d5[_0x5a049d(0x179)](),this[_0x5a049d(0x1af)][_0x5a049d(0x233)](_0x5a049d(0x24b));}[_0x273424(0x198)](){const _0x1254e4=_0x273424;var _0x92d8ab;this[_0x1254e4(0x1af)]['next'](_0x1254e4(0x248)),(_0x92d8ab=this[_0x1254e4(0x15c)])==null||_0x92d8ab['dispose'](),this[_0x1254e4(0x15c)]=null;}['_stopFollowing'](){const _0x4fef42=_0x273424;var _0xe32ce0;this['_status$'][_0x4fef42(0x233)]('not-following'),(_0xe32ce0=this[_0x4fef42(0x15c)])==null||_0xe32ce0['dispose']();}[_0x273424(0x19d)](_0x2a2668){const _0x38ca5c=_0x273424;if([_0x38ca5c(0x22d),'not-following',_0x38ca5c(0x192)][_0x38ca5c(0x212)](this['_status'])||!_0x2a2668['data'][_0x38ca5c(0x1f1)]||_0x2a2668['data'][_0x38ca5c(0x1f1)]===this[_0x38ca5c(0x18b)][_0x38ca5c(0x1f5)]())return;this[_0x38ca5c(0x1e8)]===_0x38ca5c(0x248)&&this['_startFollowing']();let _0x8e2c7c=_0x2a2668['data'][_0x38ca5c(0x244)];Object[_0x38ca5c(0x162)](_0x8e2c7c)[_0x38ca5c(0x223)](_0xacf7fe=>{const _0x171edf=_0x38ca5c;this[_0x171edf(0x1ee)][_0x171edf(0x1b2)](_0xacf7fe['id'],_0xacf7fe[_0x171edf(0x20c)]?JSON[_0x171edf(0x218)](_0xacf7fe[_0x171edf(0x20c)]):null,{'fromCollab':!0x0});});}[_0x273424(0x23b)](){const _0x201d24=_0x273424;var _0x1888a2;this[_0x201d24(0x1af)][_0x201d24(0x233)](_0x201d24(0x192)),(_0x1888a2=this[_0x201d24(0x15c)])==null||_0x1888a2[_0x201d24(0x179)]();}['_handleOnline'](){const _0x4d1357=_0x273424;this[_0x4d1357(0x1af)]['next'](_0x4d1357(0x248)),this[_0x4d1357(0x245)]();}};_0x5676f0=_0x5e495f([_0x5a79e4(0x2,_0x2783b2[_0x273424(0x1d5)]),_0x5a79e4(0x3,(0x0,_0x2783b2[_0x273424(0x182)])(_0x46bf5a)),_0x5a79e4(0x4,_0x2783b2[_0x273424(0x1b9)])],_0x5676f0);function _0x3524e4({ref:_0x2c434a,..._0x148e3a}){const _0x2387ac=_0x273424;let {icon:_0x1d9570,id:_0xe2f939,className:_0x152532,extend:_0x5caad1,..._0x102baf}=_0x148e3a,_0x53b513=(_0x2387ac(0x164)+_0xe2f939+'\x20'+(_0x152532||''))[_0x2387ac(0x20e)](),_0x4c606a=(0x0,_0x28435e[_0x2387ac(0x1b5)])('_'+_0x22b3c5());return _0x6f7f1d(_0x1d9570,''+_0xe2f939,{'defIds':_0x1d9570[_0x2387ac(0x23e)],'idSuffix':_0x4c606a[_0x2387ac(0x23f)]},{'ref':_0x2c434a,'className':_0x53b513,..._0x102baf},_0x5caad1);}function _0x6f7f1d(_0x4f8c8a,_0x1b17fb,_0x2fc0fe,_0x18d145,_0x44a0a9){const _0x2b4411=_0x273424;return(0x0,_0x28435e[_0x2b4411(0x19c)])(_0x4f8c8a[_0x2b4411(0x17b)],{'key':_0x1b17fb,..._0x38cfc5(_0x4f8c8a,_0x2fc0fe,_0x44a0a9),..._0x18d145},(_0x3dca53(_0x4f8c8a,_0x2fc0fe)['children']||[])[_0x2b4411(0x178)]((_0x43c2c2,_0x506ef0)=>_0x6f7f1d(_0x43c2c2,_0x1b17fb+'-'+_0x4f8c8a[_0x2b4411(0x17b)]+'-'+_0x506ef0,_0x2fc0fe,void 0x0,_0x44a0a9)));}function _0x38cfc5(_0x522e55,_0x4050bd,_0x1db93f){const _0x5c0465=_0x273424;let _0x31e272={..._0x522e55[_0x5c0465(0x1c1)]};_0x1db93f!=null&&_0x1db93f[_0x5c0465(0x1bb)]&&_0x31e272[_0x5c0465(0x20f)]==='colorChannel1'&&(_0x31e272[_0x5c0465(0x20f)]=_0x1db93f[_0x5c0465(0x1bb)]),_0x1db93f!=null&&_0x1db93f[_0x5c0465(0x1bb)]&&_0x31e272['stroke']===_0x5c0465(0x1bb)&&(_0x31e272[_0x5c0465(0x204)]=_0x1db93f[_0x5c0465(0x1bb)]),_0x522e55[_0x5c0465(0x17b)]==='mask'&&_0x31e272['id']&&(_0x31e272['id']+=_0x4050bd[_0x5c0465(0x184)]),Object['entries'](_0x31e272)[_0x5c0465(0x223)](([_0x462403,_0x1e040b])=>{const _0x16323a=_0x5c0465;_0x462403===_0x16323a(0x1e2)&&typeof _0x1e040b==_0x16323a(0x20b)&&(_0x31e272[_0x462403]=_0x1e040b[_0x16323a(0x208)](/url\(#(.*)\)/,_0x16323a(0x1fa)+_0x4050bd[_0x16323a(0x184)]+')'));});let {defIds:_0x4d6aef}=_0x4050bd;return!_0x4d6aef||_0x4d6aef['length']===0x0?_0x31e272:(_0x522e55[_0x5c0465(0x17b)]===_0x5c0465(0x1ca)&&_0x31e272['xlink:href']&&(_0x31e272['xlink:href']+=_0x4050bd['idSuffix']),Object[_0x5c0465(0x188)](_0x31e272)[_0x5c0465(0x223)](([_0xa4fe4b,_0x542e72])=>{const _0x440ffe=_0x5c0465;typeof _0x542e72==_0x440ffe(0x20b)&&(_0x31e272[_0xa4fe4b]=_0x542e72['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4050bd[_0x440ffe(0x184)]+')'));}),_0x31e272);}function _0x3dca53(_0x16b57f,_0x53418f){const _0x36fd9d=_0x273424;var _0x2aa843;let {defIds:_0x11e931}=_0x53418f;return!_0x11e931||_0x11e931[_0x36fd9d(0x171)]===0x0?_0x16b57f:_0x16b57f[_0x36fd9d(0x17b)]===_0x36fd9d(0x216)&&(_0x2aa843=_0x16b57f[_0x36fd9d(0x21b)])!=null&&_0x2aa843[_0x36fd9d(0x171)]?{..._0x16b57f,'children':_0x16b57f[_0x36fd9d(0x21b)][_0x36fd9d(0x178)](_0x37593b=>typeof _0x37593b[_0x36fd9d(0x1c1)]['id']==_0x36fd9d(0x20b)&&_0x11e931&&_0x11e931['includes'](_0x37593b[_0x36fd9d(0x1c1)]['id'])?{..._0x37593b,'attrs':{..._0x37593b[_0x36fd9d(0x1c1)],'id':_0x37593b[_0x36fd9d(0x1c1)]['id']+_0x53418f[_0x36fd9d(0x184)]}}:_0x37593b)}:_0x16b57f;}function _0x22b3c5(){const _0x4d0e24=_0x273424;return Math[_0x4d0e24(0x197)]()[_0x4d0e24(0x1c7)](0x24)[_0x4d0e24(0x17c)](0x2,0x8);}_0x3524e4[_0x273424(0x18d)]=_0x273424(0x180);let _0x1c5187={'tag':_0x273424(0x1d8),'attrs':{'xmlns':_0x273424(0x1d4),'fill':_0x273424(0x1cc),'viewBox':_0x273424(0x1b6),'width':_0x273424(0x16b),'height':_0x273424(0x16b)},'children':[{'tag':_0x273424(0x1bf),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x273424(0x1bf),'attrs':{'fill':_0x273424(0x1de),'d':_0x273424(0x1ab),'fillRule':_0x273424(0x21e),'clipRule':'evenodd'}}]},_0x52df06=(0x0,_0x28435e[_0x273424(0x1bc)])(function(_0x1ca9bd,_0x14d00f){const _0x5b4a65=_0x273424;return(0x0,_0x28435e[_0x5b4a65(0x19c)])(_0x3524e4,Object['assign']({},_0x1ca9bd,{'id':'live-share-icon','ref':_0x14d00f,'icon':_0x1c5187}));});_0x52df06[_0x273424(0x18d)]=_0x273424(0x1d1);function _0x311b0f(){const _0x396b4c=_0x273424;let _0x862bea=(0x0,_0x59ae43[_0x396b4c(0x202)])(_0x403428),_0x392047=(0x0,_0x59ae43['useDependency'])(_0x2783b2[_0x396b4c(0x1e7)]),_0xab3042=(0x0,_0x59ae43['useObservable'])(()=>_0x392047[_0x396b4c(0x1d2)](_0x2783b2[_0x396b4c(0x16d)][_0x396b4c(0x215)]),void 0x0,!0x1,[]),[_0x4c4eb3,_0x194711]=(0x0,_0x28435e[_0x396b4c(0x1f6)])(null),[_0x4f042b,_0x22eb9e]=(0x0,_0x28435e[_0x396b4c(0x1f6)])(_0x396b4c(0x248)),_0x49fe41=(0x0,_0x28435e[_0x396b4c(0x1b5)])(null);return(0x0,_0x28435e[_0x396b4c(0x1bd)])(()=>(_0xab3042&&_0x862bea[_0x396b4c(0x161)](_0xab3042[_0x396b4c(0x1fb)]())[_0x396b4c(0x20a)](_0x284273=>{const _0x35418f=_0x396b4c;_0x194711(_0x284273),_0x49fe41[_0x35418f(0x23f)]=_0x284273['status$']['subscribe'](_0x115f23=>{_0x22eb9e(_0x115f23);});}),()=>{const _0x2efb92=_0x396b4c;var _0x516bba;(_0x516bba=_0x49fe41['current'])==null||_0x516bba[_0x2efb92(0x1ce)](),_0x49fe41[_0x2efb92(0x23f)]=null;}),[_0xab3042,_0x862bea]),_0x4c4eb3?(0x0,_0x1fcf35[_0x396b4c(0x176)])(_0x5342f5[_0x396b4c(0x196)],{'align':_0x396b4c(0x201),'disabled':_0x4f042b===_0x396b4c(0x192),'className':_0x396b4c(0x21a),'overlay':(0x0,_0x1fcf35[_0x396b4c(0x176)])(_0x106f66,{'status':_0x4f042b,'coordinator':_0x4c4eb3}),'children':(0x0,_0x1fcf35[_0x396b4c(0x176)])(_0x396b4c(0x15a),{'className':(0x0,_0x5342f5[_0x396b4c(0x1f7)])(_0x396b4c(0x177),{'univer-cursor-not-allowed':_0x4f042b===_0x396b4c(0x192),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4f042b!==_0x396b4c(0x192)}),'type':_0x396b4c(0x15a),'children':(0x0,_0x1fcf35[_0x396b4c(0x176)])(_0x52df06,{})})}):null;}function _0x106f66(_0xc74eb){const _0x49193d=_0x273424;let {status:_0x2aae41,coordinator:_0x32962f}=_0xc74eb;switch(_0x2aae41){case'idle':return(0x0,_0x1fcf35[_0x49193d(0x176)])(_0x286de5,{'coordinator':_0x32962f});case _0x49193d(0x24b):return(0x0,_0x1fcf35[_0x49193d(0x176)])(_0x29942c,{'coordinator':_0x32962f});case _0x49193d(0x1a5):return(0x0,_0x1fcf35[_0x49193d(0x176)])(_0x407838,{'coordinator':_0x32962f});case _0x49193d(0x192):return(0x0,_0x1fcf35['jsx'])(_0x39ad7c,{});case _0x49193d(0x22d):return(0x0,_0x1fcf35[_0x49193d(0x176)])(_0x5c210c,{'coordinator':_0x32962f});default:return null;}}function _0x286de5(_0x4b02d8){const _0x3b1348=_0x273424;let {coordinator:_0x3b6f2f}=_0x4b02d8;return(0x0,_0x1fcf35['jsxs'])(_0x1fcf35[_0x3b1348(0x1ae)],{'children':[(0x0,_0x1fcf35[_0x3b1348(0x176)])(_0x3b1348(0x1ef),{'className':_0x3b1348(0x173),'children':_0x3b1348(0x1ea)}),(0x0,_0x1fcf35[_0x3b1348(0x176)])(_0x5342f5['Button'],{'onClick':()=>_0x3b6f2f[_0x3b1348(0x1fc)](),'children':'Start'})]});}function _0x29942c(_0x2ba8da){const _0x498244=_0x273424;let {coordinator:_0x1ec19c}=_0x2ba8da;return(0x0,_0x1fcf35[_0x498244(0x16e)])(_0x1fcf35[_0x498244(0x1ae)],{'children':[(0x0,_0x1fcf35[_0x498244(0x176)])(_0x498244(0x1ef),{'className':_0x498244(0x173),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,_0x1fcf35['jsx'])(_0x5342f5[_0x498244(0x219)],{'onClick':()=>_0x1ec19c[_0x498244(0x190)](),'children':_0x498244(0x1c3)})]});}function _0x407838(_0x5c0d57){const _0x41c793=_0x273424;let {coordinator:_0x5beb48}=_0x5c0d57;return(0x0,_0x1fcf35['jsxs'])(_0x1fcf35[_0x41c793(0x1ae)],{'children':[(0x0,_0x1fcf35[_0x41c793(0x176)])(_0x41c793(0x1ef),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x41c793(0x1e6)}),(0x0,_0x1fcf35[_0x41c793(0x176)])(_0x5342f5[_0x41c793(0x219)],{'variant':_0x41c793(0x1d9),'onClick':()=>_0x5beb48[_0x41c793(0x1a4)](),'children':_0x41c793(0x1be)})]});}function _0x5c210c(_0x43ab50){const _0x4efef9=_0x273424;let {coordinator:_0x260281}=_0x43ab50;return(0x0,_0x1fcf35[_0x4efef9(0x16e)])(_0x1fcf35[_0x4efef9(0x1ae)],{'children':[(0x0,_0x1fcf35[_0x4efef9(0x176)])('div',{'className':_0x4efef9(0x173),'children':'You\x27re\x20presenting\x20the\x20document'}),(0x0,_0x1fcf35[_0x4efef9(0x176)])(_0x5342f5['Button'],{'variant':_0x4efef9(0x17d),'onClick':()=>_0x260281[_0x4efef9(0x1ed)](),'children':'Stop\x20presenting'})]});}function _0x39ad7c(){const _0x4bdbc3=_0x273424;return(0x0,_0x1fcf35[_0x4bdbc3(0x176)])(_0x1fcf35[_0x4bdbc3(0x1ae)],{'children':_0x4bdbc3(0x1b8)});}let _0x1107e1=class extends _0x2783b2['Disposable']{constructor(_0x1b7eae,_0x5a2640){const _0x4370f9=_0x273424;super(),this[_0x4370f9(0x1a3)]=_0x1b7eae,this[_0x4370f9(0x186)]=_0x5a2640,this['_mountLiveShare']();}[_0x273424(0x1fe)](){const _0x4339a6=_0x273424;this[_0x4339a6(0x217)](this[_0x4339a6(0x186)]['registerComponent'](_0x59ae43['BuiltInUIPart']['HEADER_MENU'],()=>(0x0,_0x59ae43[_0x4339a6(0x1a7)])(_0x311b0f,this[_0x4339a6(0x1a3)])));}};_0x1107e1=_0x5e495f([_0x5a79e4(0x0,(0x0,_0x2783b2['Inject'])(_0x2783b2['Injector'])),_0x5a79e4(0x1,_0x59ae43[_0x273424(0x185)])],_0x1107e1);var _0x3a2515=_0x273424(0x235),_0x37d115=_0x273424(0x1ba);let _0x3d365b={},_0xc5543f=class extends _0x2783b2[_0x273424(0x1f2)]{constructor(_0x5f2e09){const _0x1fb1ed=_0x273424;super(),this['_liveShareService']=_0x5f2e09,this[_0x1fb1ed(0x209)]();}['_init'](){const _0x5b096e=_0x273424;[_0x149c26[_0x5b096e(0x1c9)]['id'],_0x149c26['SetScrollOperation']['id'],_0x5e4379['SetWorksheetActiveOperation']['id']][_0x5b096e(0x223)](_0x1dfa27=>{const _0x1e504e=_0x5b096e;this['disposeWithMe'](this[_0x1e504e(0x18a)][_0x1e504e(0x231)](_0x1dfa27));});}};_0xc5543f=_0x5e495f([_0x5a79e4(0x0,(0x0,_0x2783b2[_0x273424(0x182)])(_0x46bf5a))],_0xc5543f);let _0x36e118=class extends _0x2783b2[_0x273424(0x22b)]{constructor(_0x367d3c=_0x3d365b,_0x40772b,_0x2fd5ee){const _0x5665b0=_0x273424;super(),this[_0x5665b0(0x249)]=_0x367d3c,this[_0x5665b0(0x1a3)]=_0x40772b,this['_configService']=_0x2fd5ee;let {..._0x1d1dc6}=(0x0,_0x2783b2[_0x5665b0(0x205)])({},_0x3d365b,this[_0x5665b0(0x249)]);this['_configService'][_0x5665b0(0x169)](_0x5665b0(0x211),_0x1d1dc6);}['onStarting'](){const _0x4d26d8=_0x273424;(0x0,_0x2783b2[_0x4d26d8(0x18f)])(this[_0x4d26d8(0x1a3)],(0x0,_0x2783b2[_0x4d26d8(0x1d7)])([[_0x46bf5a],[_0x403428],[_0xc5543f],[_0x1107e1]],this[_0x4d26d8(0x249)]['override'])),(0x0,_0x2783b2[_0x4d26d8(0x1db)])(this[_0x4d26d8(0x1a3)],[[_0xc5543f]]);}[_0x273424(0x18c)](){const _0x2ccdaa=_0x273424;(0x0,_0x2783b2[_0x2ccdaa(0x1db)])(this[_0x2ccdaa(0x1a3)],[[_0x1107e1]]);}};_0xdfb72d(_0x36e118,_0x273424(0x1c2),_0x2783b2[_0x273424(0x16d)]['UNIVER_UNKNOWN']),_0xdfb72d(_0x36e118,_0x273424(0x23d),_0x273424(0x236)),_0xdfb72d(_0x36e118,_0x273424(0x24a),_0x3a2515),_0xdfb72d(_0x36e118,_0x273424(0x21c),_0x37d115),_0x36e118=_0x5e495f([(0x0,_0x2783b2[_0x273424(0x225)])(_0x5a0b21[_0x273424(0x1ff)]),_0x5a79e4(0x1,(0x0,_0x2783b2[_0x273424(0x182)])(_0x2783b2[_0x273424(0x172)])),_0x5a79e4(0x2,_0x2783b2['IConfigService'])],_0x36e118),Object[_0x273424(0x228)](_0x522c9e,_0x273424(0x1e9),{'enumerable':!0x0,'get':function(){return _0x1107e1;}}),_0x522c9e['LiveShare']=_0x311b0f,Object[_0x273424(0x228)](_0x522c9e,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x403428;}}),Object[_0x273424(0x228)](_0x522c9e,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return _0x5676f0;}}),_0x522c9e[_0x273424(0x240)]=_0x46bf5a,_0x522c9e[_0x273424(0x175)]=_0x26310f,Object[_0x273424(0x228)](_0x522c9e,_0x273424(0x242),{'enumerable':!0x0,'get':function(){return _0x36e118;}});}));function _0x3522(_0xaa3579,_0xb9fdc){_0xaa3579=_0xaa3579-0x15a;const _0x3b8f3a=_0x3b8f();let _0x3522e6=_0x3b8f3a[_0xaa3579];return _0x3522e6;}function _0x3b8f(){const _0xd5f17c=['LiveShareStatus','jsx','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','dispose','send','tag','substring','default','react/jsx-runtime','getInitialStates','UniverIcon','@univerjs-pro/collaboration','Inject','subscribe','idSuffix','IUIPartsService','_uiPartsService','sheet','entries','LIVESHARE_REQUEST_HOST','_liveShareService','_collabSession','onRendered','displayName','_sharedOperations','registerDependencies','stopFollowing','set','offline','_handleTerminate','call','RxDisposable','Dropdown','random','_beIdle','IDLE','2272872ZvRerR','3065GgELXd','createElement','_handleOperation','_handleNewChangeSets','toDisposable','OPERATION','_entities','LIVESHARE_TERMINATE','_injector','startFollowing','not-following','UniverUi','connectInjector','unitId','object','1213452nWkyDw','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','clear','CommandType','Fragment','_status$','_startFollowing','getOwnPropertyDescriptor','executeCommand','_configService','function','useRef','0\x200\x2017\x2017','stringify','You\x27are\x20offline.','ICommandService','1.0.0-alpha.1','colorChannel1','forwardRef','useEffect','Start\x20following','path','React','attrs','type','Stop\x20following','UniverDesign','622699KtyZXk','shouldShareOperation','toString','OFFLINE','SetZoomRatioOperation','use','@univerjs/sheets-ui','none','decorate','unsubscribe','SetWorksheetActiveOperation','Module','LiveShareIcon','getCurrentTypeOfUnit$','takeUntil','http://www.w3.org/2000/svg','IConfigService','subject','mergeOverrideWithDependencies','svg','text','UniverSheetsUi','touchDependencies','442977rhqcGt','LIVESHARE_OPERATION','currentColor','_handleOnline','860oGzjyB','180fRMqvC','mask','_startLiveShareCoordinator','_reporters','_univerInstanceService','You\x27re\x20not\x20following\x20the\x20presenter','IUniverInstanceService','_status','DesktopLiveShareController','Present\x20this\x20document','UniverCore','toPrimitive','stopPresenting','_commandService','div','@univerjs/sheets','presenter','Disposable','LIVESHARE_NEW_HOST','BehaviorSubject','getMemberID','useState','clsx','_unitID','LIVESHARE_FETCH_OPERATIONS','url(#$1','getUnitId','tryStartPresenting','64408wrVjFm','_mountLiveShare','UniverCollaborationClientPlugin','@univerjs/design','end','useDependency','NEW_CHANGESETS','stroke','merge','CollaborationEvent','UniverSheets','replace','_init','then','string','params','getTypeOfUnitDisposed$','trim','fill','ONLINE','live-share.config','includes','getTypeOfUnitAdded$','UniverProCollaborationClient','UNIVER_SHEET','defs','disposeWithMe','parse','Button','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','children','version','dispose$','evenodd','getStatus','@univerjs/core','symbol','_startPresenting','forEach','registerInitialStateReporter','DependentOn','has','getConfig','defineProperty','_stopFollowing','UniverProLiveShare','Plugin','@univerjs/ui','presenting','_collabSessionService','SessionStatus','PRESENTING','registerSharedOperation','throttleTime','next','constructor','@univerjs-pro/live-share','UNIVER_LIVE_SHARE_PLUGIN','UniverProCollaboration','from','event$','_presenter','_handleOffline','_handleNewHost','pluginName','defIds','current','LiveShareService','get','UniverLiveSharePlugin','react','operations','_fetchOperations','onCommandExecuted','16022180ExxjrY','idle','_config','packageName','following','2ZUVkIb','toStringTag','data','button','find','_commandDisposable','rxjs','unit','init','asObservable','getLiveShareCoordinator','values','CollaborationSessionService','univerjs-icon\x20univerjs-icon-','sessionStatus$','reverse','pipe','add','setConfig','prototype','1em','DisposableCollection','UniverInstanceType','jsxs','@univerjs-pro/collaboration-client','InsertSheetMutation','length','Injector','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting'];_0x3b8f=function(){return _0xd5f17c;};return _0x3b8f();}
|
|
1
|
+
function _0x2ff3(_0x31010f,_0x1a8fc0){_0x31010f=_0x31010f-0x119;const _0x53e425=_0x53e4();let _0x2ff327=_0x53e425[_0x31010f];return _0x2ff327;}function _0x53e4(){const _0x25d307=['values','createElement','You\x27are\x20offline.','mask','presenting','NOT_FOLLOWING','Start','subject','UniverIcon','SessionStatus','pipe','replace','getConfig','touchDependencies','BehaviorSubject','SetWorksheetActiveOperation','UniverSheetsUi','none','Present\x20this\x20document','183188uHuqqe','_init','init','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','1em','includes','sheet','idle','react/jsx-runtime','@univerjs/design','constructor','onStarting','IConfigService','executeCommand','override','20mAlKTL','status$','requireSession','xlink:href','UniverLiveSharePlugin','forwardRef','Disposable','tryStartPresenting','amd','DisposableCollection','button','params','memberID','defineProperty','ONLINE','presenter','_handleOperation','default','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','react','parseProtocolChangeset','find','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_unitID','@univerjs-pro/live-share','useRef','UniverCollaborationClientPlugin','delete','dispose','You\x27re\x20presenting\x20the\x20document','use','svg','_handleOnline','getTypeOfUnitAdded$','stopPresenting','fill','_collabSession','Fragment','not-following','evenodd','get','getOwnPropertyDescriptor','trim','rxjs','Plugin','_commandService','_startPresenting','2991600SMweUZ','InsertSheetMutation','registerInitialStateReporter','decorate','@univerjs/ui','UniverProLiveShare','ICommandService','offline','UNIVER_SHEET','LIVESHARE_TERMINATE','Button','28800HXTJAQ','SetScrollOperation','738324Zrtqhi','map','onCommandExecuted','_fetchOperations','getLiveShareCoordinatorSync','disposeWithMe','mergeOverrideWithDependencies','getCurrentTypeOfUnit$','Start\x20following','getLiveShareCoordinator','FOLLOWING','live-share-icon','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','getInitialStates','toDisposable','DependentOn','following','0\x200\x2017\x2017','current','forEach','type','UniverSheets','then','registerSharedOperation','LiveShareService','live-share.config','clsx','@univerjs/sheets','132JlOcGA','Injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getTypeOfUnitDisposed$','_startFollowing','operations','IDLE','function','_commandDisposable','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_handleOffline','stroke','60YBiAvn','_reporters','@univerjs-pro/collaboration-client','symbol','version','connectInjector','_mountLiveShare','exports','UniverCore','UniverProCollaborationClient','text','attrs','end','url(#$1','_uiPartsService','operators','getStatus','UniverUi','Inject','entries','Dropdown','string','LiveShareIcon','_handleTerminate','LIVESHARE_OPERATION','LiveShareStatus','20hLdKZh','children','stopFollowing','UniverInstanceType','_sharedOperations','SAME_OPERATION_SHARE_INTERVAL','packageName','UNIVER_LIVE_SHARE_PLUGIN','useState','_presenter','UNIVER_UNKNOWN','You\x27re\x20not\x20following\x20the\x20presenter','has','_beIdle','useObservable','merge','NEW_CHANGESETS','set','http://www.w3.org/2000/svg','LIVESHARE_FETCH_OPERATIONS','_status','_injector','_status$','_liveShareService','CollaborationEvent','registerDependencies','UniverProCollaboration','_stopFollowing','takeUntil','complete','toPrimitive','currentColor','1242zUpYdK','defs','_config','Subject','LIVESHARE_REQUEST_HOST','BuiltInUIPart','jsx','getMemberID','subscribe','29099PYnNlH','1289772iiqdeR','startFollowing','mutations','clear','_collabSessionService','from','add','getUnitId','pluginName','call','Stop\x20presenting','UniverDesign','_stopPresenting','DesktopLiveShareController','next','unit','stringify','length','jsxs','substring','reverse','idSuffix','HEADER_MENU','CommandType','React','shouldShareOperation','_univerInstanceService','data','dispose$','rxjs/operators','SetZoomRatioOperation','object','unsubscribe','colorChannel1','tag','_startLiveShareCoordinator','path','send','createInstance','div','defIds','iterator','RxDisposable','31543TNAZtn','_configService','useDependency','_entities'];_0x53e4=function(){return _0x25d307;};return _0x53e4();}(function(_0x5bc56b,_0x5b32ce){const _0x50e402=_0x2ff3,_0xa3766=_0x5bc56b();while(!![]){try{const _0x348a61=-parseInt(_0x50e402(0x1f3))/0x1*(parseInt(_0x50e402(0x184))/0x2)+-parseInt(_0x50e402(0x158))/0x3+-parseInt(_0x50e402(0x20a))/0x4*(-parseInt(_0x50e402(0x19e))/0x5)+-parseInt(_0x50e402(0x1be))/0x6*(-parseInt(_0x50e402(0x1c7))/0x7)+-parseInt(_0x50e402(0x14d))/0x8+parseInt(_0x50e402(0x15a))/0x9*(-parseInt(_0x50e402(0x11e))/0xa)+-parseInt(_0x50e402(0x178))/0xb*(-parseInt(_0x50e402(0x1c8))/0xc);if(_0x348a61===_0x5b32ce)break;else _0xa3766['push'](_0xa3766['shift']());}catch(_0xceae9c){_0xa3766['push'](_0xa3766['shift']());}}}(_0x53e4,0xccf7b),function(_0x1e2d08,_0x491dd2){const _0x1ac4ef=_0x2ff3;typeof exports==_0x1ac4ef(0x1e7)&&typeof module<'u'?_0x491dd2(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime'),require('@univerjs/sheets-ui')):typeof define==_0x1ac4ef(0x17f)&&define[_0x1ac4ef(0x126)]?define([_0x1ac4ef(0x18b),'@univerjs-pro/collaboration',_0x1ac4ef(0x186),'@univerjs/core',_0x1ac4ef(0x177),'rxjs',_0x1ac4ef(0x1e5),_0x1ac4ef(0x151),_0x1ac4ef(0x213),_0x1ac4ef(0x131),_0x1ac4ef(0x212),'@univerjs/sheets-ui'],_0x491dd2):(_0x1e2d08=typeof globalThis<'u'?globalThis:_0x1e2d08||self,_0x491dd2(_0x1e2d08[_0x1ac4ef(0x152)]={},_0x1e2d08[_0x1ac4ef(0x1b8)],_0x1e2d08[_0x1ac4ef(0x18d)],_0x1e2d08[_0x1ac4ef(0x18c)],_0x1e2d08[_0x1ac4ef(0x171)],_0x1e2d08[_0x1ac4ef(0x149)],_0x1e2d08[_0x1ac4ef(0x149)][_0x1ac4ef(0x193)],_0x1e2d08[_0x1ac4ef(0x195)],_0x1e2d08[_0x1ac4ef(0x1d3)],_0x1e2d08[_0x1ac4ef(0x1e0)],_0x1e2d08['React'],_0x1e2d08[_0x1ac4ef(0x207)]));}(this,function(_0x1b04fa,_0x354a10,_0x35a7ba,_0x4d5305,_0x4b9bce,_0x16af55,_0x150255,_0x14f0d4,_0x5a1bf8,_0xb66b67,_0x3f1c65,_0x52bd8a){const _0x22b7a3=_0x2ff3;Object[_0x22b7a3(0x12b)](_0x1b04fa,Symbol['toStringTag'],{'value':'Module'});function _0x2cc4d8(_0x195092){'@babel/helpers - typeof';const _0x3c30a0=_0x22b7a3;return _0x2cc4d8=typeof Symbol==_0x3c30a0(0x17f)&&typeof Symbol[_0x3c30a0(0x1f1)]==_0x3c30a0(0x187)?function(_0x3f9157){return typeof _0x3f9157;}:function(_0x4c0f41){const _0x40b311=_0x3c30a0;return _0x4c0f41&&typeof Symbol==_0x40b311(0x17f)&&_0x4c0f41[_0x40b311(0x119)]===Symbol&&_0x4c0f41!==Symbol['prototype']?_0x40b311(0x187):typeof _0x4c0f41;},_0x2cc4d8(_0x195092);}function _0x5a4e96(_0x10dc01,_0x1f8564){const _0x2f96b1=_0x22b7a3;if(_0x2cc4d8(_0x10dc01)!='object'||!_0x10dc01)return _0x10dc01;var _0x14d131=_0x10dc01[Symbol[_0x2f96b1(0x1bc)]];if(_0x14d131!==void 0x0){var _0x32bdba=_0x14d131[_0x2f96b1(0x1d1)](_0x10dc01,_0x1f8564||_0x2f96b1(0x12f));if(_0x2cc4d8(_0x32bdba)!=_0x2f96b1(0x1e7))return _0x32bdba;throw TypeError(_0x2f96b1(0x17a));}return(_0x1f8564==='string'?String:Number)(_0x10dc01);}function _0x5d08bb(_0x457fd6){const _0x5ea549=_0x22b7a3;var _0x4530a2=_0x5a4e96(_0x457fd6,_0x5ea549(0x199));return _0x2cc4d8(_0x4530a2)==_0x5ea549(0x187)?_0x4530a2:_0x4530a2+'';}function _0x33eadc(_0x3f7a2c,_0x121277,_0x1cd1c7){const _0x2d33c5=_0x22b7a3;return(_0x121277=_0x5d08bb(_0x121277))in _0x3f7a2c?Object[_0x2d33c5(0x12b)](_0x3f7a2c,_0x121277,{'value':_0x1cd1c7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f7a2c[_0x121277]=_0x1cd1c7,_0x3f7a2c;}var _0x22a0ca=class extends _0x4d5305['Disposable']{constructor(..._0xb0c32a){const _0x28f8b5=_0x22b7a3;super(..._0xb0c32a),_0x33eadc(this,_0x28f8b5(0x1a2),new Set()),_0x33eadc(this,_0x28f8b5(0x185),new Set());}[_0x22b7a3(0x173)](_0x1b62ed){const _0x51daa0=_0x22b7a3;return this[_0x51daa0(0x1a2)][_0x51daa0(0x1ce)](_0x1b62ed),(0x0,_0x4d5305['toDisposable'])(()=>this[_0x51daa0(0x1a2)][_0x51daa0(0x139)](_0x1b62ed));}[_0x22b7a3(0x14f)](_0x294611){const _0x35bfb9=_0x22b7a3;return this['_reporters'][_0x35bfb9(0x1ce)](_0x294611),(0x0,_0x4d5305[_0x35bfb9(0x16a)])(()=>this[_0x35bfb9(0x185)][_0x35bfb9(0x139)](_0x294611));}['shouldShareOperation'](_0xc73685){const _0x483b1f=_0x22b7a3;return this[_0x483b1f(0x1a2)][_0x483b1f(0x1aa)](_0xc73685);}[_0x22b7a3(0x169)](_0x33b4fa){const _0x1ef331=_0x22b7a3;return Array[_0x1ef331(0x1cd)](this['_reporters'])['map'](_0x4385e0=>_0x4385e0(_0x33b4fa));}};function _0x507ae7(_0xe5b793,_0x22e383){return function(_0x96fedc,_0x42aa4e){_0x22e383(_0x96fedc,_0x42aa4e,_0xe5b793);};}function _0x1f8a74(_0x152012,_0x3c92e2,_0x29ae3d,_0x45fc17){const _0x291dea=_0x22b7a3;var _0x5c2d8a=arguments['length'],_0x494077=_0x5c2d8a<0x3?_0x3c92e2:_0x45fc17===null?_0x45fc17=Object[_0x291dea(0x147)](_0x3c92e2,_0x29ae3d):_0x45fc17,_0x1f080a;if(typeof Reflect==_0x291dea(0x1e7)&&typeof Reflect[_0x291dea(0x150)]==_0x291dea(0x17f))_0x494077=Reflect[_0x291dea(0x150)](_0x152012,_0x3c92e2,_0x29ae3d,_0x45fc17);else{for(var _0x3a1e6e=_0x152012[_0x291dea(0x1d9)]-0x1;_0x3a1e6e>=0x0;_0x3a1e6e--)(_0x1f080a=_0x152012[_0x3a1e6e])&&(_0x494077=(_0x5c2d8a<0x3?_0x1f080a(_0x494077):_0x5c2d8a>0x3?_0x1f080a(_0x3c92e2,_0x29ae3d,_0x494077):_0x1f080a(_0x3c92e2,_0x29ae3d))||_0x494077);}return _0x5c2d8a>0x3&&_0x494077&&Object[_0x291dea(0x12b)](_0x3c92e2,_0x29ae3d,_0x494077),_0x494077;}let _0x1abb3a=class extends _0x4d5305[_0x22b7a3(0x1f2)]{constructor(_0xf5e07f,_0xc6c6f5,_0x25f09d){const _0x2f3cbf=_0x22b7a3;super(),this[_0x2f3cbf(0x1e2)]=_0xf5e07f,this[_0x2f3cbf(0x1b3)]=_0xc6c6f5,this[_0x2f3cbf(0x1cc)]=_0x25f09d,_0x33eadc(this,_0x2f3cbf(0x1f6),new Map()),this['_init']();}async['getLiveShareCoordinator'](_0x3aad13){const _0x5834c8=_0x22b7a3;return this[_0x5834c8(0x1f6)][_0x5834c8(0x1aa)](_0x3aad13)||await this[_0x5834c8(0x1eb)](_0x3aad13),this[_0x5834c8(0x1f6)]['get'](_0x3aad13);}[_0x22b7a3(0x15e)](_0x3b2107){const _0x14b65d=_0x22b7a3;var _0x270774;return(_0x270774=this[_0x14b65d(0x1f6)][_0x14b65d(0x146)](_0x3b2107))==null?null:_0x270774;}['_init'](){const _0x4c9be8=_0x22b7a3;this[_0x4c9be8(0x1e2)][_0x4c9be8(0x13f)](_0x4d5305[_0x4c9be8(0x1a1)][_0x4c9be8(0x155)])[_0x4c9be8(0x201)]((0x0,_0x150255[_0x4c9be8(0x1ba)])(this[_0x4c9be8(0x1e4)]))[_0x4c9be8(0x1c6)](async _0x18bc68=>{const _0x171a3c=_0x4c9be8;let _0x3c2be6=_0x18bc68[_0x171a3c(0x1d7)][_0x171a3c(0x1cf)]();this[_0x171a3c(0x1f6)][_0x171a3c(0x1aa)](_0x3c2be6)||this['_startLiveShareCoordinator'](_0x3c2be6);}),this[_0x4c9be8(0x1e2)][_0x4c9be8(0x17b)](_0x4d5305[_0x4c9be8(0x1a1)][_0x4c9be8(0x155)])[_0x4c9be8(0x201)]((0x0,_0x150255[_0x4c9be8(0x1ba)])(this['dispose$']))[_0x4c9be8(0x1c6)](_0x5df80b=>{const _0x46a783=_0x4c9be8;let _0x43f253=_0x5df80b[_0x46a783(0x1cf)](),_0x5cd2fd=this['_entities']['get'](_0x43f253);_0x5cd2fd==null||_0x5cd2fd['dispose']();});}async['_startLiveShareCoordinator'](_0x2be6b2){const _0x43c048=_0x22b7a3;let _0x396e34=await this[_0x43c048(0x1cc)][_0x43c048(0x120)](_0x2be6b2),_0x56787b=this[_0x43c048(0x1b3)][_0x43c048(0x1ee)](_0xc78a9c,_0x2be6b2,_0x396e34);return _0x56787b['init'](),this[_0x43c048(0x1f6)]['set'](_0x2be6b2,_0x56787b),_0x56787b;}};_0x1abb3a=_0x1f8a74([_0x507ae7(0x0,_0x4d5305[_0x22b7a3(0x167)]),_0x507ae7(0x1,(0x0,_0x4d5305[_0x22b7a3(0x196)])(_0x4d5305['Injector'])),_0x507ae7(0x2,(0x0,_0x4d5305['Inject'])(_0x35a7ba['CollaborationSessionService']))],_0x1abb3a);let _0x319ae8=function(_0x2f41eb){const _0x46c0f6=_0x22b7a3;return _0x2f41eb['OFFLINE']='offline',_0x2f41eb[_0x46c0f6(0x17e)]=_0x46c0f6(0x211),_0x2f41eb[_0x46c0f6(0x164)]=_0x46c0f6(0x16c),_0x2f41eb[_0x46c0f6(0x1fc)]=_0x46c0f6(0x144),_0x2f41eb['PRESENTING']='presenting',_0x2f41eb;}({}),_0xc78a9c=class extends _0x4d5305[_0x22b7a3(0x1f2)]{get[_0x22b7a3(0x1b2)](){return this['_status$']['getValue']();}constructor(_0x831e13,_0x2b27c8,_0x247d19,_0x1e150b,_0x194797){const _0x238407=_0x22b7a3;super(),this[_0x238407(0x135)]=_0x831e13,this[_0x238407(0x142)]=_0x2b27c8,this[_0x238407(0x1f4)]=_0x247d19,this['_liveShareService']=_0x1e150b,this[_0x238407(0x14b)]=_0x194797,_0x33eadc(this,_0x238407(0x1b4),new _0x16af55[(_0x238407(0x205))](_0x238407(0x211))),_0x33eadc(this,'status$',this[_0x238407(0x1b4)]['asObservable']()),_0x33eadc(this,_0x238407(0x20b),!0x1),_0x33eadc(this,_0x238407(0x180),null),_0x33eadc(this,_0x238407(0x1a7),null);}['dispose'](){const _0x3bda3f=_0x22b7a3;var _0xd1364b;(_0xd1364b=this[_0x3bda3f(0x180)])==null||_0xd1364b[_0x3bda3f(0x13a)](),this[_0x3bda3f(0x1b4)][_0x3bda3f(0x1d6)]('idle'),this[_0x3bda3f(0x1b4)][_0x3bda3f(0x1bb)]();}[_0x22b7a3(0x194)](){const _0x5842fc=_0x22b7a3;return this[_0x5842fc(0x1b2)];}[_0x22b7a3(0x20c)](){const _0x26ae57=_0x22b7a3;this[_0x26ae57(0x20b)]||(this[_0x26ae57(0x20b)]=!0x0,this[_0x26ae57(0x142)]['sessionStatus$']['pipe']((0x0,_0x150255[_0x26ae57(0x1ba)])(this['dispose$']))[_0x26ae57(0x1c6)](_0x55b6da=>{const _0x2516c9=_0x26ae57;switch(_0x55b6da){case _0x35a7ba[_0x2516c9(0x200)]['OFFLINE']:this['_handleOffline']();break;case _0x35a7ba['SessionStatus'][_0x2516c9(0x12c)]:this[_0x2516c9(0x13e)]();break;default:}}),this[_0x26ae57(0x142)]['event$'][_0x26ae57(0x201)]((0x0,_0x150255['takeUntil'])(this['dispose$']))[_0x26ae57(0x1c6)](_0x3473c8=>{const _0x11ae12=_0x26ae57;let {eventID:_0x22aed1}=_0x3473c8;switch(_0x22aed1){case _0x354a10['CollaborationEvent']['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x3473c8);break;case _0x354a10['CollaborationEvent'][_0x11ae12(0x19c)]:this[_0x11ae12(0x12e)](_0x3473c8);break;case _0x354a10[_0x11ae12(0x1b6)][_0x11ae12(0x156)]:this[_0x11ae12(0x19b)]();break;case _0x354a10[_0x11ae12(0x1b6)][_0x11ae12(0x1ae)]:this['_handleNewChangeSets'](_0x3473c8);break;default:}}));}[_0x22b7a3(0x125)](){const _0x124cbc=_0x22b7a3;this[_0x124cbc(0x142)][_0x124cbc(0x1ed)]({'eventID':_0x354a10['CollaborationEvent'][_0x124cbc(0x1c2)],'data':{'unitID':this[_0x124cbc(0x135)],'userID':this[_0x124cbc(0x142)]['getMemberID']()}},this['_unitID']);}[_0x22b7a3(0x140)](){const _0x546291=_0x22b7a3;this['_status']===_0x546291(0x1fb)&&(this[_0x546291(0x1b4)]['next'](_0x546291(0x211)),this[_0x546291(0x142)][_0x546291(0x1ed)]({'eventID':_0x354a10['CollaborationEvent'][_0x546291(0x156)],'data':{'unitID':this[_0x546291(0x135)]}},this[_0x546291(0x135)]));}[_0x22b7a3(0x1c9)](){const _0x1f6b92=_0x22b7a3;this[_0x1f6b92(0x1b2)]===_0x1f6b92(0x144)&&(this[_0x1f6b92(0x1b4)][_0x1f6b92(0x1d6)](_0x1f6b92(0x16c)),this[_0x1f6b92(0x17c)]());}[_0x22b7a3(0x1a0)](){const _0x1d064f=_0x22b7a3;this[_0x1d064f(0x1b2)]==='following'&&this[_0x1d064f(0x1b9)]();}['_handleNewHost'](_0x1ba325){const _0xa3f949=_0x22b7a3;let {presenter:_0x53e3bf}=_0x1ba325[_0xa3f949(0x1e3)],_0xf53729=this[_0xa3f949(0x142)][_0xa3f949(0x1c5)]();this[_0xa3f949(0x1a7)]=_0x53e3bf,_0x53e3bf===_0xf53729?(this[_0xa3f949(0x1b9)](),this[_0xa3f949(0x14c)]()):this[_0xa3f949(0x1b2)]!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x22b7a3(0x15d)](){const _0x7cdf12=_0x22b7a3;let _0x3e4c0c={'eventID':_0x354a10[_0x7cdf12(0x1b6)][_0x7cdf12(0x1b1)]};this['_collabSession'][_0x7cdf12(0x1ed)](_0x3e4c0c,this[_0x7cdf12(0x135)]);}[_0x22b7a3(0x19b)](){const _0x83151=_0x22b7a3;this[_0x83151(0x1a7)]=null,this[_0x83151(0x1b2)]!==_0x83151(0x1fb)&&this[_0x83151(0x1ab)]();}['_handleNewChangeSets'](_0xfeb7c4){const _0x38d033=_0x22b7a3;if(this[_0x38d033(0x1b2)]===_0x38d033(0x16c)&&this[_0x38d033(0x1a7)]===_0xfeb7c4['data'][_0x38d033(0x12a)]){let _0x1f1a89=(0x0,_0x354a10[_0x38d033(0x132)])(_0xfeb7c4[_0x38d033(0x1e3)])[_0x38d033(0x1ca)][_0x38d033(0x1dc)]()[_0x38d033(0x133)](_0x3ff84f=>_0x3ff84f['id']===_0x4b9bce[_0x38d033(0x14e)]['id']);if(_0x1f1a89){let _0x1e419a=_0x1f1a89[_0x38d033(0x129)]['unitId'],_0xa42791=_0x1f1a89['params'][_0x38d033(0x210)]['id'];setTimeout(()=>{const _0x31068b=_0x38d033;this['_commandService'][_0x31068b(0x11c)](_0x4b9bce['SetWorksheetActiveOperation']['id'],{'unitId':_0x1e419a,'subUnitId':_0xa42791},{'fromCollab':!0x0});});}}}[_0x22b7a3(0x14c)](){const _0x201652=_0x22b7a3;var _0x120f25;(_0x120f25=this[_0x201652(0x180)])==null||_0x120f25[_0x201652(0x13a)](),this[_0x201652(0x1b4)][_0x201652(0x1d6)](_0x201652(0x1fb));let _0x588cef=new Map(),_0x20c7b6=this[_0x201652(0x180)]=new _0x4d5305[(_0x201652(0x127))]();_0x20c7b6[_0x201652(0x1ce)]((0x0,_0x4d5305['toDisposable'])(()=>{const _0x19fdb0=_0x201652;_0x588cef['forEach'](({subject:_0x4142a2,subscription:_0x2f0392})=>{const _0x250e3f=_0x2ff3;_0x2f0392[_0x250e3f(0x1e8)](),_0x4142a2[_0x250e3f(0x1bb)]();}),_0x588cef[_0x19fdb0(0x1cb)]();})),_0x20c7b6['add'](this['_commandService'][_0x201652(0x15c)](_0x65c19f=>{const _0x18f777=_0x201652;if(_0x65c19f[_0x18f777(0x170)]!==_0x4d5305[_0x18f777(0x1df)]['OPERATION']||!this[_0x18f777(0x1b5)][_0x18f777(0x1e1)](_0x65c19f['id']))return;let {id:_0x2b6518}=_0x65c19f,_0x580945;if(_0x588cef[_0x18f777(0x1aa)](_0x2b6518))_0x580945=_0x588cef[_0x18f777(0x146)](_0x2b6518)[_0x18f777(0x1fe)];else{var _0x21b133;_0x580945=new _0x16af55[(_0x18f777(0x1c1))]();let _0x6c75e4=_0x580945[_0x18f777(0x201)]((0x0,_0x150255['throttleTime'])((_0x21b133=this[_0x18f777(0x1f4)][_0x18f777(0x203)](_0x18f777(0x1a3)))==null?0xc8:_0x21b133,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x18f777(0x1c6)](_0x3c98c8=>{const _0x50cfbb=_0x18f777;this['_collabSession']['send']({'eventID':_0x354a10[_0x50cfbb(0x1b6)][_0x50cfbb(0x19c)],'data':{'unitID':this[_0x50cfbb(0x135)],'operations':{[_0x3c98c8['id']]:{'id':_0x3c98c8['id'],'params':JSON[_0x50cfbb(0x1d8)](_0x3c98c8[_0x50cfbb(0x129)])}}}},this[_0x50cfbb(0x135)]);});_0x588cef[_0x18f777(0x1af)](_0x2b6518,{'subject':_0x580945,'subscription':_0x6c75e4});}_0x580945[_0x18f777(0x1d6)](_0x65c19f);})),this[_0x201652(0x1b5)][_0x201652(0x169)](this[_0x201652(0x135)])[_0x201652(0x16f)](_0x3bdbee=>this['_collabSession'][_0x201652(0x1ed)]({'eventID':_0x354a10['CollaborationEvent'][_0x201652(0x19c)],'data':{'unitID':this[_0x201652(0x135)],'operations':{[_0x3bdbee['id']]:{'id':_0x3bdbee['id'],'params':JSON[_0x201652(0x1d8)](_0x3bdbee['params'])}}}},this[_0x201652(0x135)]));}[_0x22b7a3(0x1d4)](){const _0x50e3a7=_0x22b7a3;var _0x4d2f4f;this[_0x50e3a7(0x1b4)][_0x50e3a7(0x1d6)](_0x50e3a7(0x211)),(_0x4d2f4f=this[_0x50e3a7(0x180)])==null||_0x4d2f4f[_0x50e3a7(0x13a)](),this[_0x50e3a7(0x180)]=null;}[_0x22b7a3(0x17c)](){const _0x3a3e80=_0x22b7a3;var _0xdf4ec2;(_0xdf4ec2=this['_commandDisposable'])==null||_0xdf4ec2[_0x3a3e80(0x13a)](),this[_0x3a3e80(0x1b4)]['next'](_0x3a3e80(0x16c));}[_0x22b7a3(0x1ab)](){const _0x1003d6=_0x22b7a3;var _0x2f9034;this[_0x1003d6(0x1b4)][_0x1003d6(0x1d6)](_0x1003d6(0x211)),(_0x2f9034=this['_commandDisposable'])==null||_0x2f9034[_0x1003d6(0x13a)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x405170=_0x22b7a3;var _0x486838;this[_0x405170(0x1b4)][_0x405170(0x1d6)](_0x405170(0x144)),(_0x486838=this['_commandDisposable'])==null||_0x486838[_0x405170(0x13a)]();}[_0x22b7a3(0x12e)](_0x8162b6){const _0x2c96b9=_0x22b7a3;if([_0x2c96b9(0x1fb),_0x2c96b9(0x144),_0x2c96b9(0x154)][_0x2c96b9(0x20f)](this[_0x2c96b9(0x1b2)])||!_0x8162b6['data'][_0x2c96b9(0x12d)]||_0x8162b6[_0x2c96b9(0x1e3)][_0x2c96b9(0x12d)]===this[_0x2c96b9(0x142)][_0x2c96b9(0x1c5)]())return;this['_status']==='idle'&&this[_0x2c96b9(0x17c)]();let _0x5eed78=_0x8162b6[_0x2c96b9(0x1e3)][_0x2c96b9(0x17d)];Object[_0x2c96b9(0x1f7)](_0x5eed78)[_0x2c96b9(0x16f)](_0x20769c=>{const _0x52b0ba=_0x2c96b9;this[_0x52b0ba(0x14b)][_0x52b0ba(0x11c)](_0x20769c['id'],_0x20769c[_0x52b0ba(0x129)]?JSON['parse'](_0x20769c['params']):null,{'fromCollab':!0x0});});}[_0x22b7a3(0x182)](){const _0x1b3ac2=_0x22b7a3;var _0x1a8578;this['_status$'][_0x1b3ac2(0x1d6)](_0x1b3ac2(0x154)),(_0x1a8578=this['_commandDisposable'])==null||_0x1a8578[_0x1b3ac2(0x13a)]();}[_0x22b7a3(0x13e)](){const _0x1f8f8f=_0x22b7a3;this[_0x1f8f8f(0x1b4)][_0x1f8f8f(0x1d6)](_0x1f8f8f(0x211)),this[_0x1f8f8f(0x15d)]();}};_0xc78a9c=_0x1f8a74([_0x507ae7(0x2,_0x4d5305[_0x22b7a3(0x11b)]),_0x507ae7(0x3,(0x0,_0x4d5305[_0x22b7a3(0x196)])(_0x22a0ca)),_0x507ae7(0x4,_0x4d5305[_0x22b7a3(0x153)])],_0xc78a9c);function _0x26592c({ref:_0x2edf05,..._0x11c9be}){const _0x14d0cc=_0x22b7a3;let {icon:_0x5a2c41,id:_0x117b11,className:_0x389111,extend:_0x2756a1,..._0x1431e3}=_0x11c9be,_0x2dfc17=('univerjs-icon\x20univerjs-icon-'+_0x117b11+'\x20'+(_0x389111||''))[_0x14d0cc(0x148)](),_0x31b61d=(0x0,_0xb66b67[_0x14d0cc(0x137)])('_'+_0x363080());return _0x46a7b5(_0x5a2c41,''+_0x117b11,{'defIds':_0x5a2c41[_0x14d0cc(0x1f0)],'idSuffix':_0x31b61d[_0x14d0cc(0x16e)]},{'ref':_0x2edf05,'className':_0x2dfc17,..._0x1431e3},_0x2756a1);}function _0x46a7b5(_0x11e5a9,_0x57b7db,_0x3e4c9f,_0x14058c,_0x3cbc13){const _0x752bd8=_0x22b7a3;return(0x0,_0xb66b67[_0x752bd8(0x1f8)])(_0x11e5a9['tag'],{'key':_0x57b7db,..._0x336685(_0x11e5a9,_0x3e4c9f,_0x3cbc13),..._0x14058c},(_0x47fe60(_0x11e5a9,_0x3e4c9f)[_0x752bd8(0x19f)]||[])['map']((_0xbe62b1,_0x4a424a)=>_0x46a7b5(_0xbe62b1,_0x57b7db+'-'+_0x11e5a9[_0x752bd8(0x1ea)]+'-'+_0x4a424a,_0x3e4c9f,void 0x0,_0x3cbc13)));}function _0x336685(_0x299ef6,_0x47e707,_0x5411ab){const _0x11827f=_0x22b7a3;let _0x5ea05f={..._0x299ef6[_0x11827f(0x18f)]};_0x5411ab!=null&&_0x5411ab[_0x11827f(0x1e9)]&&_0x5ea05f[_0x11827f(0x141)]===_0x11827f(0x1e9)&&(_0x5ea05f[_0x11827f(0x141)]=_0x5411ab[_0x11827f(0x1e9)]),_0x5411ab!=null&&_0x5411ab[_0x11827f(0x1e9)]&&_0x5ea05f[_0x11827f(0x183)]===_0x11827f(0x1e9)&&(_0x5ea05f[_0x11827f(0x183)]=_0x5411ab['colorChannel1']),_0x299ef6['tag']===_0x11827f(0x1fa)&&_0x5ea05f['id']&&(_0x5ea05f['id']+=_0x47e707[_0x11827f(0x1dd)]),Object[_0x11827f(0x197)](_0x5ea05f)[_0x11827f(0x16f)](([_0x47c5c9,_0x54e293])=>{const _0x40eea8=_0x11827f;_0x47c5c9===_0x40eea8(0x1fa)&&typeof _0x54e293==_0x40eea8(0x199)&&(_0x5ea05f[_0x47c5c9]=_0x54e293['replace'](/url\(#(.*)\)/,'url(#$1'+_0x47e707['idSuffix']+')'));});let {defIds:_0x38944a}=_0x47e707;return!_0x38944a||_0x38944a[_0x11827f(0x1d9)]===0x0?_0x5ea05f:(_0x299ef6[_0x11827f(0x1ea)]===_0x11827f(0x13c)&&_0x5ea05f[_0x11827f(0x121)]&&(_0x5ea05f[_0x11827f(0x121)]+=_0x47e707[_0x11827f(0x1dd)]),Object['entries'](_0x5ea05f)[_0x11827f(0x16f)](([_0x1c47f1,_0x24d238])=>{const _0x1b2138=_0x11827f;typeof _0x24d238==_0x1b2138(0x199)&&(_0x5ea05f[_0x1c47f1]=_0x24d238[_0x1b2138(0x202)](/url\(#(.*)\)/,_0x1b2138(0x191)+_0x47e707[_0x1b2138(0x1dd)]+')'));}),_0x5ea05f);}function _0x47fe60(_0x1bbee7,_0x3c9b0){const _0x5ea46d=_0x22b7a3;var _0x44cfb9;let {defIds:_0x418a6d}=_0x3c9b0;return!_0x418a6d||_0x418a6d['length']===0x0?_0x1bbee7:_0x1bbee7[_0x5ea46d(0x1ea)]===_0x5ea46d(0x1bf)&&(_0x44cfb9=_0x1bbee7[_0x5ea46d(0x19f)])!=null&&_0x44cfb9[_0x5ea46d(0x1d9)]?{..._0x1bbee7,'children':_0x1bbee7[_0x5ea46d(0x19f)][_0x5ea46d(0x15b)](_0x2d7c13=>typeof _0x2d7c13[_0x5ea46d(0x18f)]['id']==_0x5ea46d(0x199)&&_0x418a6d&&_0x418a6d['includes'](_0x2d7c13[_0x5ea46d(0x18f)]['id'])?{..._0x2d7c13,'attrs':{..._0x2d7c13[_0x5ea46d(0x18f)],'id':_0x2d7c13['attrs']['id']+_0x3c9b0[_0x5ea46d(0x1dd)]}}:_0x2d7c13)}:_0x1bbee7;}function _0x363080(){const _0x31d03f=_0x22b7a3;return Math['random']()['toString'](0x24)[_0x31d03f(0x1db)](0x2,0x8);}_0x26592c['displayName']=_0x22b7a3(0x1ff);let _0x18ead0={'tag':_0x22b7a3(0x13d),'attrs':{'xmlns':_0x22b7a3(0x1b0),'fill':_0x22b7a3(0x208),'viewBox':_0x22b7a3(0x16d),'width':'1em','height':_0x22b7a3(0x20e)},'children':[{'tag':_0x22b7a3(0x1ec),'attrs':{'fill':_0x22b7a3(0x1bd),'d':_0x22b7a3(0x130)}},{'tag':_0x22b7a3(0x1ec),'attrs':{'fill':'currentColor','d':_0x22b7a3(0x181),'fillRule':'evenodd','clipRule':_0x22b7a3(0x145)}}]},_0x4529dc=(0x0,_0xb66b67[_0x22b7a3(0x123)])(function(_0x2c6ce3,_0x14478a){const _0x136af0=_0x22b7a3;return(0x0,_0xb66b67['createElement'])(_0x26592c,Object['assign']({},_0x2c6ce3,{'id':_0x136af0(0x165),'ref':_0x14478a,'icon':_0x18ead0}));});_0x4529dc['displayName']=_0x22b7a3(0x19a);function _0x6ed351(){const _0x5c0862=_0x22b7a3;let _0x13a142=(0x0,_0x14f0d4[_0x5c0862(0x1f5)])(_0x1abb3a),_0xcae212=(0x0,_0x14f0d4[_0x5c0862(0x1f5)])(_0x4d5305[_0x5c0862(0x167)]),_0x5c9508=(0x0,_0x14f0d4[_0x5c0862(0x1ac)])(()=>_0xcae212[_0x5c0862(0x161)](_0x4d5305[_0x5c0862(0x1a1)][_0x5c0862(0x155)]),void 0x0,!0x1,[]),[_0x1ead4f,_0x34d2ee]=(0x0,_0xb66b67[_0x5c0862(0x1a6)])(null),[_0x2875b3,_0x27a617]=(0x0,_0xb66b67[_0x5c0862(0x1a6)])(_0x5c0862(0x211)),_0xf20b1=(0x0,_0xb66b67[_0x5c0862(0x137)])(null);return(0x0,_0xb66b67['useEffect'])(()=>(_0x5c9508&&_0x13a142[_0x5c0862(0x163)](_0x5c9508[_0x5c0862(0x1cf)]())[_0x5c0862(0x172)](_0x172b67=>{const _0x3041cb=_0x5c0862;_0x34d2ee(_0x172b67),_0xf20b1['current']=_0x172b67[_0x3041cb(0x11f)]['subscribe'](_0xd314fa=>{_0x27a617(_0xd314fa);});}),()=>{const _0x23d3a5=_0x5c0862;var _0x407293;(_0x407293=_0xf20b1[_0x23d3a5(0x16e)])==null||_0x407293[_0x23d3a5(0x1e8)](),_0xf20b1[_0x23d3a5(0x16e)]=null;}),[_0x5c9508,_0x13a142]),_0x1ead4f?(0x0,_0x3f1c65['jsx'])(_0x5a1bf8[_0x5c0862(0x198)],{'align':_0x5c0862(0x190),'disabled':_0x2875b3===_0x5c0862(0x154),'className':_0x5c0862(0x20d),'overlay':(0x0,_0x3f1c65[_0x5c0862(0x1c4)])(_0x3322e4,{'status':_0x2875b3,'coordinator':_0x1ead4f}),'children':(0x0,_0x3f1c65['jsx'])(_0x5c0862(0x128),{'className':(0x0,_0x5a1bf8[_0x5c0862(0x176)])(_0x5c0862(0x134),{'univer-cursor-not-allowed':_0x2875b3===_0x5c0862(0x154),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2875b3!==_0x5c0862(0x154)}),'type':_0x5c0862(0x128),'children':(0x0,_0x3f1c65['jsx'])(_0x4529dc,{})})}):null;}function _0x3322e4(_0x44e98){const _0x36f2ac=_0x22b7a3;let {status:_0x41fbae,coordinator:_0x275cc6}=_0x44e98;switch(_0x41fbae){case'idle':return(0x0,_0x3f1c65[_0x36f2ac(0x1c4)])(_0x456bca,{'coordinator':_0x275cc6});case _0x36f2ac(0x16c):return(0x0,_0x3f1c65[_0x36f2ac(0x1c4)])(_0x37502a,{'coordinator':_0x275cc6});case _0x36f2ac(0x144):return(0x0,_0x3f1c65[_0x36f2ac(0x1c4)])(_0x10011c,{'coordinator':_0x275cc6});case'offline':return(0x0,_0x3f1c65[_0x36f2ac(0x1c4)])(_0x1aa10a,{});case _0x36f2ac(0x1fb):return(0x0,_0x3f1c65[_0x36f2ac(0x1c4)])(_0x4c0e9a,{'coordinator':_0x275cc6});default:return null;}}function _0x456bca(_0x5beb03){const _0x611f3a=_0x22b7a3;let {coordinator:_0x13ed09}=_0x5beb03;return(0x0,_0x3f1c65[_0x611f3a(0x1da)])(_0x3f1c65[_0x611f3a(0x143)],{'children':[(0x0,_0x3f1c65[_0x611f3a(0x1c4)])(_0x611f3a(0x1ef),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x611f3a(0x209)}),(0x0,_0x3f1c65[_0x611f3a(0x1c4)])(_0x5a1bf8[_0x611f3a(0x157)],{'onClick':()=>_0x13ed09[_0x611f3a(0x125)](),'children':_0x611f3a(0x1fd)})]});}function _0x37502a(_0x4fd2a8){const _0x28627c=_0x22b7a3;let {coordinator:_0x364126}=_0x4fd2a8;return(0x0,_0x3f1c65['jsxs'])(_0x3f1c65[_0x28627c(0x143)],{'children':[(0x0,_0x3f1c65[_0x28627c(0x1c4)])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28627c(0x166)}),(0x0,_0x3f1c65[_0x28627c(0x1c4)])(_0x5a1bf8[_0x28627c(0x157)],{'onClick':()=>_0x364126[_0x28627c(0x1a0)](),'children':'Stop\x20following'})]});}function _0x10011c(_0x25a9f5){const _0x2f5955=_0x22b7a3;let {coordinator:_0x318214}=_0x25a9f5;return(0x0,_0x3f1c65[_0x2f5955(0x1da)])(_0x3f1c65[_0x2f5955(0x143)],{'children':[(0x0,_0x3f1c65[_0x2f5955(0x1c4)])(_0x2f5955(0x1ef),{'className':_0x2f5955(0x168),'children':_0x2f5955(0x1a9)}),(0x0,_0x3f1c65['jsx'])(_0x5a1bf8[_0x2f5955(0x157)],{'variant':_0x2f5955(0x18e),'onClick':()=>_0x318214[_0x2f5955(0x1c9)](),'children':_0x2f5955(0x162)})]});}function _0x4c0e9a(_0x2c76f0){const _0x3f0315=_0x22b7a3;let {coordinator:_0x526ef5}=_0x2c76f0;return(0x0,_0x3f1c65['jsxs'])(_0x3f1c65[_0x3f0315(0x143)],{'children':[(0x0,_0x3f1c65[_0x3f0315(0x1c4)])(_0x3f0315(0x1ef),{'className':_0x3f0315(0x168),'children':_0x3f0315(0x13b)}),(0x0,_0x3f1c65[_0x3f0315(0x1c4)])(_0x5a1bf8[_0x3f0315(0x157)],{'variant':_0x3f0315(0x12f),'onClick':()=>_0x526ef5[_0x3f0315(0x140)](),'children':_0x3f0315(0x1d2)})]});}function _0x1aa10a(){const _0x2f9f87=_0x22b7a3;return(0x0,_0x3f1c65['jsx'])(_0x3f1c65[_0x2f9f87(0x143)],{'children':_0x2f9f87(0x1f9)});}let _0x445db8=class extends _0x4d5305['Disposable']{constructor(_0x473d55,_0x415907){const _0x44a2f1=_0x22b7a3;super(),this[_0x44a2f1(0x1b3)]=_0x473d55,this[_0x44a2f1(0x192)]=_0x415907,this['_mountLiveShare']();}[_0x22b7a3(0x18a)](){const _0x1d4b96=_0x22b7a3;this['disposeWithMe'](this[_0x1d4b96(0x192)]['registerComponent'](_0x14f0d4[_0x1d4b96(0x1c3)][_0x1d4b96(0x1de)],()=>(0x0,_0x14f0d4[_0x1d4b96(0x189)])(_0x6ed351,this[_0x1d4b96(0x1b3)])));}};_0x445db8=_0x1f8a74([_0x507ae7(0x0,(0x0,_0x4d5305[_0x22b7a3(0x196)])(_0x4d5305[_0x22b7a3(0x179)])),_0x507ae7(0x1,_0x14f0d4['IUIPartsService'])],_0x445db8);var _0xea47e=_0x22b7a3(0x136),_0x438694='1.0.0-alpha.2';let _0x876d6c={},_0x311b31=class extends _0x4d5305[_0x22b7a3(0x124)]{constructor(_0x3ae5dc){const _0x40140b=_0x22b7a3;super(),this[_0x40140b(0x1b5)]=_0x3ae5dc,this[_0x40140b(0x20b)]();}['_init'](){const _0x5a821e=_0x22b7a3;[_0x52bd8a[_0x5a821e(0x1e6)]['id'],_0x52bd8a[_0x5a821e(0x159)]['id'],_0x4b9bce[_0x5a821e(0x206)]['id']][_0x5a821e(0x16f)](_0x35a68f=>{const _0x12cfc7=_0x5a821e;this[_0x12cfc7(0x15f)](this[_0x12cfc7(0x1b5)][_0x12cfc7(0x173)](_0x35a68f));});}};_0x311b31=_0x1f8a74([_0x507ae7(0x0,(0x0,_0x4d5305[_0x22b7a3(0x196)])(_0x22a0ca))],_0x311b31);let _0x5d1438=class extends _0x4d5305[_0x22b7a3(0x14a)]{constructor(_0x4cae5b=_0x876d6c,_0x4487f0,_0x399dd5){const _0x8d254=_0x22b7a3;super(),this[_0x8d254(0x1c0)]=_0x4cae5b,this[_0x8d254(0x1b3)]=_0x4487f0,this[_0x8d254(0x1f4)]=_0x399dd5;let {..._0x1c5091}=(0x0,_0x4d5305[_0x8d254(0x1ad)])({},_0x876d6c,this[_0x8d254(0x1c0)]);this[_0x8d254(0x1f4)]['setConfig'](_0x8d254(0x175),_0x1c5091);}[_0x22b7a3(0x11a)](){const _0xa8100c=_0x22b7a3;(0x0,_0x4d5305[_0xa8100c(0x1b7)])(this[_0xa8100c(0x1b3)],(0x0,_0x4d5305[_0xa8100c(0x160)])([[_0x22a0ca],[_0x1abb3a],[_0x311b31],[_0x445db8]],this['_config'][_0xa8100c(0x11d)])),(0x0,_0x4d5305[_0xa8100c(0x204)])(this[_0xa8100c(0x1b3)],[[_0x311b31]]);}['onRendered'](){const _0x1190cb=_0x22b7a3;(0x0,_0x4d5305[_0x1190cb(0x204)])(this[_0x1190cb(0x1b3)],[[_0x445db8]]);}};_0x33eadc(_0x5d1438,_0x22b7a3(0x170),_0x4d5305[_0x22b7a3(0x1a1)][_0x22b7a3(0x1a8)]),_0x33eadc(_0x5d1438,_0x22b7a3(0x1d0),_0x22b7a3(0x1a5)),_0x33eadc(_0x5d1438,_0x22b7a3(0x1a4),_0xea47e),_0x33eadc(_0x5d1438,_0x22b7a3(0x188),_0x438694),_0x5d1438=_0x1f8a74([(0x0,_0x4d5305[_0x22b7a3(0x16b)])(_0x35a7ba[_0x22b7a3(0x138)]),_0x507ae7(0x1,(0x0,_0x4d5305[_0x22b7a3(0x196)])(_0x4d5305[_0x22b7a3(0x179)])),_0x507ae7(0x2,_0x4d5305[_0x22b7a3(0x11b)])],_0x5d1438),Object['defineProperty'](_0x1b04fa,_0x22b7a3(0x1d5),{'enumerable':!0x0,'get':function(){return _0x445db8;}}),_0x1b04fa['LiveShare']=_0x6ed351,Object[_0x22b7a3(0x12b)](_0x1b04fa,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x1abb3a;}}),Object['defineProperty'](_0x1b04fa,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return _0xc78a9c;}}),_0x1b04fa[_0x22b7a3(0x174)]=_0x22a0ca,_0x1b04fa[_0x22b7a3(0x19d)]=_0x319ae8,Object[_0x22b7a3(0x12b)](_0x1b04fa,_0x22b7a3(0x122),{'enumerable':!0x0,'get':function(){return _0x5d1438;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Live share collaboration plugin for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
"rxjs": ">=7.0.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@univerjs/icons": "1.
|
|
66
|
-
"@univerjs-pro/collaboration
|
|
67
|
-
"@univerjs-pro/collaboration": "1.0.0-alpha.
|
|
68
|
-
"@univerjs/core": "1.0.0-alpha.
|
|
69
|
-
"@univerjs/design": "1.0.0-alpha.
|
|
70
|
-
"@univerjs/sheets-ui": "1.0.0-alpha.
|
|
71
|
-
"@univerjs/ui": "1.0.0-alpha.
|
|
72
|
-
"@univerjs/sheets": "1.0.0-alpha.
|
|
65
|
+
"@univerjs/icons": "1.16.0",
|
|
66
|
+
"@univerjs-pro/collaboration": "1.0.0-alpha.2",
|
|
67
|
+
"@univerjs-pro/collaboration-client": "1.0.0-alpha.2",
|
|
68
|
+
"@univerjs/core": "1.0.0-alpha.2",
|
|
69
|
+
"@univerjs/design": "1.0.0-alpha.2",
|
|
70
|
+
"@univerjs/sheets-ui": "1.0.0-alpha.2",
|
|
71
|
+
"@univerjs/ui": "1.0.0-alpha.2",
|
|
72
|
+
"@univerjs/sheets": "1.0.0-alpha.2"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"postcss": "^8.5.15",
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"tailwindcss": "3.4.17",
|
|
79
79
|
"typescript": "^6.0.3",
|
|
80
80
|
"vitest": "^4.1.9",
|
|
81
|
-
"@univerjs-infra/shared": "1.0.0-alpha.
|
|
82
|
-
"@univerjs/protocol": "1.0.0-alpha.
|
|
81
|
+
"@univerjs-infra/shared": "1.0.0-alpha.2",
|
|
82
|
+
"@univerjs/protocol": "1.0.0-alpha.2"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
85
|
"test": "vitest run",
|