@univerjs-pro/live-share 1.0.0-alpha.0 → 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 CHANGED
@@ -1 +1 @@
1
- const _0x96369b=_0x46c8;(function(_0x479277,_0x3fad50){const _0xa55377=_0x46c8,_0x1a73c8=_0x479277();while(!![]){try{const _0xacf3ba=-parseInt(_0xa55377(0x1f2))/0x1+-parseInt(_0xa55377(0x1e7))/0x2*(parseInt(_0xa55377(0x1e8))/0x3)+parseInt(_0xa55377(0x1ee))/0x4+parseInt(_0xa55377(0x1d3))/0x5+parseInt(_0xa55377(0x1df))/0x6+parseInt(_0xa55377(0x1e5))/0x7+parseInt(_0xa55377(0x1e4))/0x8;if(_0xacf3ba===_0x3fad50)break;else _0x1a73c8['push'](_0x1a73c8['shift']());}catch(_0x196807){_0x1a73c8['push'](_0x1a73c8['shift']());}}}(_0x1986,0xd0ae3));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x2b948f){'@babel/helpers - typeof';const _0x8f14cf=_0x46c8;return r=typeof Symbol==_0x8f14cf(0x1dd)&&typeof Symbol[_0x8f14cf(0x1e3)]=='symbol'?function(_0x41f6df){return typeof _0x41f6df;}:function(_0x16379e){const _0x19d0d6=_0x8f14cf;return _0x16379e&&typeof Symbol=='function'&&_0x16379e[_0x19d0d6(0x1dc)]===Symbol&&_0x16379e!==Symbol[_0x19d0d6(0x1cd)]?_0x19d0d6(0x1ea):typeof _0x16379e;},r(_0x2b948f);}function i(_0x459053,_0x5e051a){const _0x54c99e=_0x46c8;if(r(_0x459053)!=_0x54c99e(0x1e1)||!_0x459053)return _0x459053;var _0x2aed6d=_0x459053[Symbol[_0x54c99e(0x1f0)]];if(_0x2aed6d!==void 0x0){var _0x39b6b7=_0x2aed6d['call'](_0x459053,_0x5e051a||_0x54c99e(0x1e9));if(r(_0x39b6b7)!='object')return _0x39b6b7;throw TypeError(_0x54c99e(0x1d0));}return(_0x5e051a===_0x54c99e(0x1d2)?String:Number)(_0x459053);}function a(_0x2e2c53){const _0x3f4293=_0x46c8;var _0x160b73=i(_0x2e2c53,_0x3f4293(0x1d2));return r(_0x160b73)=='symbol'?_0x160b73:_0x160b73+'';}function _0x46c8(_0x566beb,_0x20d703){_0x566beb=_0x566beb-0x1c8;const _0x1986b0=_0x1986();let _0x46c8ec=_0x1986b0[_0x566beb];return _0x46c8ec;}function o(_0x39383f,_0x5b154b,_0x2919de){const _0x11683d=_0x46c8;return(_0x5b154b=a(_0x5b154b))in _0x39383f?Object[_0x11683d(0x1e6)](_0x39383f,_0x5b154b,{'value':_0x2919de,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39383f[_0x5b154b]=_0x2919de,_0x39383f;}var s=class extends n[_0x96369b(0x1ca)]{constructor(..._0x56afb2){const _0x15e4ef=_0x96369b;super(..._0x56afb2),o(this,_0x15e4ef(0x1d7),void 0x0);}[_0x96369b(0x1db)](_0x51d03e){const _0x1cd697=_0x96369b;this['_liveShareController']=_0x51d03e[_0x1cd697(0x1cf)](e[_0x1cd697(0x1ef)]);}[_0x96369b(0x1cc)](){const _0x15b57d=_0x96369b;var _0x40bbec;let _0x6aef9=this[_0x15b57d(0x1d6)]['get'](t['IUniverInstanceService'])['getCurrentUnitOfType'](t['UniverInstanceType']['UNIVER_SHEET']);if(!_0x6aef9)throw Error(_0x15b57d(0x1ed));let _0x4096b5=_0x6aef9['getUnitId'](),_0xdb4c82=this[_0x15b57d(0x1d7)][_0x15b57d(0x1d8)](_0x4096b5);return(_0x40bbec=_0xdb4c82==null?void 0x0:_0xdb4c82[_0x15b57d(0x1d5)]())==null?e[_0x15b57d(0x1da)][_0x15b57d(0x1eb)]:_0x40bbec;}['startFollowing'](){const _0x227abe=_0x96369b;let _0x17627f=this['_injector']['get'](t[_0x227abe(0x1f1)])[_0x227abe(0x1ec)](t['UniverInstanceType'][_0x227abe(0x1de)]);if(!_0x17627f)throw Error(_0x227abe(0x1ed));let _0x1d3b34=_0x17627f['getUnitId'](),_0x4d7ecc=this[_0x227abe(0x1d7)][_0x227abe(0x1d8)](_0x1d3b34);if(!_0x4d7ecc)throw Error(_0x227abe(0x1e0));_0x4d7ecc['startFollowing']();}[_0x96369b(0x1cb)](){const _0x5912a8=_0x96369b;let _0x3579b8=this[_0x5912a8(0x1d6)]['get'](t[_0x5912a8(0x1f1)])[_0x5912a8(0x1ec)](t[_0x5912a8(0x1c9)][_0x5912a8(0x1de)]);if(!_0x3579b8)throw Error('No\x20active\x20workbook\x20found.');let _0x2b8901=_0x3579b8[_0x5912a8(0x1d9)](),_0x298d7c=this[_0x5912a8(0x1d7)]['getLiveShareCoordinatorSync'](_0x2b8901);if(!_0x298d7c)throw Error(_0x5912a8(0x1e0));_0x298d7c[_0x5912a8(0x1cb)]();}['startPresenting'](){const _0x144840=_0x96369b;let _0x102b9c=this[_0x144840(0x1d6)][_0x144840(0x1cf)](t[_0x144840(0x1f1)])['getCurrentUnitOfType'](t[_0x144840(0x1c9)][_0x144840(0x1de)]);if(!_0x102b9c)throw Error('No\x20active\x20workbook\x20found.');let _0x90e10b=_0x102b9c[_0x144840(0x1d9)](),_0x481588=this[_0x144840(0x1d7)]['getLiveShareCoordinatorSync'](_0x90e10b);if(!_0x481588)throw Error(_0x144840(0x1e0));_0x481588[_0x144840(0x1d4)]();}[_0x96369b(0x1c8)](){const _0x3c7334=_0x96369b;let _0x14133a=this[_0x3c7334(0x1d6)]['get'](t['IUniverInstanceService'])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x3c7334(0x1de)]);if(!_0x14133a)throw Error(_0x3c7334(0x1ed));let _0x54a0d4=_0x14133a[_0x3c7334(0x1d9)](),_0x24df41=this['_liveShareController'][_0x3c7334(0x1d8)](_0x54a0d4);if(!_0x24df41)throw Error(_0x3c7334(0x1e0));_0x24df41['stopPresenting']();}};function _0x1986(){const _0x31a983=['default','symbol','IDLE','getCurrentUnitOfType','No\x20active\x20workbook\x20found.','395148cHNHJw','LiveShareController','toPrimitive','IUniverInstanceService','684009wmAHhg','stopPresenting','UniverInstanceType','FUniver','stopFollowing','getLiveShareStatus','prototype','FEnum','get','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','extend','string','1605355otEwsL','tryStartPresenting','getStatus','_injector','_liveShareController','getLiveShareCoordinatorSync','getUnitId','LiveShareStatus','_initialize','constructor','function','UNIVER_SHEET','4385760acazHL','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','object','LiveShareStatusEnum','iterator','4725016orcgtB','890806vzdARa','defineProperty','2bdemtf','989817gDqxIC'];_0x1986=function(){return _0x31a983;};return _0x1986();}n[_0x96369b(0x1ca)]['extend'](s);var c=class extends n[_0x96369b(0x1ce)]{get[_0x96369b(0x1e2)](){const _0x12db5f=_0x96369b;return e[_0x12db5f(0x1da)];}};n['FEnum'][_0x96369b(0x1d1)](c);
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 _0x4125fe=_0x3d35;(function(_0x182767,_0x3b71f1){const _0x3933f3=_0x3d35,_0x229384=_0x182767();while(!![]){try{const _0x100ba7=-parseInt(_0x3933f3(0x184))/0x1+-parseInt(_0x3933f3(0x153))/0x2+parseInt(_0x3933f3(0x176))/0x3*(-parseInt(_0x3933f3(0x16b))/0x4)+parseInt(_0x3933f3(0x1c8))/0x5+-parseInt(_0x3933f3(0x1a5))/0x6*(parseInt(_0x3933f3(0x194))/0x7)+-parseInt(_0x3933f3(0x1eb))/0x8+parseInt(_0x3933f3(0x180))/0x9*(parseInt(_0x3933f3(0x149))/0xa);if(_0x100ba7===_0x3b71f1)break;else _0x229384['push'](_0x229384['shift']());}catch(_0x439c16){_0x229384['push'](_0x229384['shift']());}}}(_0x2f87,0xbc65c),Object[_0x4125fe(0x12f)](exports,Symbol[_0x4125fe(0x1cc)],{'value':_0x4125fe(0x157)}));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(_0x27a20b){'@babel/helpers - typeof';const _0x32cce9=_0x4125fe;return f=typeof Symbol=='function'&&typeof Symbol[_0x32cce9(0x1f1)]==_0x32cce9(0x1e8)?function(_0x3cd843){return typeof _0x3cd843;}:function(_0x445003){const _0x41adfd=_0x32cce9;return _0x445003&&typeof Symbol==_0x41adfd(0x130)&&_0x445003[_0x41adfd(0x162)]===Symbol&&_0x445003!==Symbol['prototype']?_0x41adfd(0x1e8):typeof _0x445003;},f(_0x27a20b);}function _0x2f87(){const _0xd07416=['_sharedOperations','_startPresenting','tryStartPresenting','registerSharedOperation','forEach','_handleNewChangeSets','LiveShare','HEADER_MENU','Disposable','not-following','operations','InsertSheetMutation','univer-mb-3\x20univer-w-full\x20univer-text-sm','sessionStatus$','NOT_FOLLOWING','OFFLINE','useEffect','setConfig','get','string','onCommandExecuted','current','type','_status$','RxDisposable','find','2689900sEEvcx','_entities','CollaborationSessionService','following','toStringTag','decorate','_unitID','UNIVER_UNKNOWN','getOwnPropertyDescriptor','UNIVER_SHEET','includes','ONLINE','clear','SAME_OPERATION_SHARE_INTERVAL','presenting','_handleTerminate','_handleNewHost','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Inject','_status','BehaviorSubject','_presenter','version','parse','LiveShareIcon','values','end','UniverCollaborationClientPlugin','memberID','touchDependencies','UniverInstanceType','LiveShareCoordinator','symbol','getStatus','getLiveShareCoordinatorSync','6008512DVdLwi','params','ICommandService','Stop\x20presenting','Subject','onStarting','iterator','presenter','connectInjector','status$','defineProperty','function','reverse','_beIdle','DesktopLiveShareController','_fetchOperations','mutations','getInitialStates','requireSession','live-share.config','getConfig','toDisposable','LIVESHARE_FETCH_OPERATIONS','Fragment','throttleTime','_uiPartsService','getValue','button','Stop\x20following','_init','merge','toPrimitive','_injector','UniverLiveSharePlugin','_config','SetZoomRatioOperation','10OkICfO','_startFollowing','offline','_configService','NEW_CHANGESETS','_stopFollowing','getUnitId','then','disposeWithMe','useState','1835702XChLaZ','LIVESHARE_NEW_HOST','LIVESHARE_REQUEST_HOST','delete','Module','length','Present\x20this\x20document','getLiveShareCoordinator','LiveShareController','useRef','_reporters','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','useDependency','_commandService','SetWorksheetActiveOperation','constructor','subscribe','object','registerDependencies','DependentOn','init','packageName','_liveShareService','jsxs','551732vxBljq','Button','getMemberID','default','add','takeUntil','parseProtocolChangeset','shouldShareOperation','registerComponent','Injector','next','3cRLHlE','OPERATION','Dropdown','BuiltInUIPart','unsubscribe','_collabSession','_univerInstanceService','DisposableCollection','map','_stopPresenting','41266125vytIQQ','_commandDisposable','asObservable','_handleOnline','1427739FeCADg','idle','call','_handleOffline','IUniverInstanceService','pluginName','subject','LiveShareStatus','from','_startLiveShareCoordinator','set','jsx','SessionStatus','has','stopPresenting','@univerjs-pro/live-share','7QIonUp','onRendered','pipe','CommandType','_handleOperation','_mountLiveShare','getCurrentTypeOfUnit$','LIVESHARE_OPERATION','stopFollowing','clsx','sheet','You\x27are\x20offline.','executeCommand','CollaborationEvent','send','dispose$','FOLLOWING','6701052iYvhal','dispose','Start\x20following','IConfigService','_collabSessionService','text','Plugin','data','div'];_0x2f87=function(){return _0xd07416;};return _0x2f87();}function p(_0x50cb26,_0x5c5429){const _0x1d45d8=_0x4125fe;if(f(_0x50cb26)!=_0x1d45d8(0x164)||!_0x50cb26)return _0x50cb26;var _0x3c4e45=_0x50cb26[Symbol[_0x1d45d8(0x144)]];if(_0x3c4e45!==void 0x0){var _0x302312=_0x3c4e45[_0x1d45d8(0x186)](_0x50cb26,_0x5c5429||_0x1d45d8(0x16e));if(f(_0x302312)!=_0x1d45d8(0x164))return _0x302312;throw TypeError(_0x1d45d8(0x15e));}return(_0x5c5429===_0x1d45d8(0x1c1)?String:Number)(_0x50cb26);}function m(_0x53951b){const _0x4fb83f=_0x4125fe;var _0x29f5d7=p(_0x53951b,_0x4fb83f(0x1c1));return f(_0x29f5d7)==_0x4fb83f(0x1e8)?_0x29f5d7:_0x29f5d7+'';}function h(_0xe7bd00,_0x2a74fb,_0x3397ed){const _0x4ca309=_0x4125fe;return(_0x2a74fb=m(_0x2a74fb))in _0xe7bd00?Object[_0x4ca309(0x12f)](_0xe7bd00,_0x2a74fb,{'value':_0x3397ed,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xe7bd00[_0x2a74fb]=_0x3397ed,_0xe7bd00;}var g=class extends n[_0x4125fe(0x1b6)]{constructor(..._0x424e0e){const _0x29ad4e=_0x4125fe;super(..._0x424e0e),h(this,_0x29ad4e(0x1ae),new Set()),h(this,_0x29ad4e(0x15d),new Set());}[_0x4125fe(0x1b1)](_0x5e9911){const _0x10ce3d=_0x4125fe;return this['_sharedOperations']['add'](_0x5e9911),(0x0,n['toDisposable'])(()=>this[_0x10ce3d(0x1ae)][_0x10ce3d(0x156)](_0x5e9911));}['registerInitialStateReporter'](_0x5a5f9c){const _0x36b12d=_0x4125fe;return this['_reporters'][_0x36b12d(0x16f)](_0x5a5f9c),(0x0,n['toDisposable'])(()=>this[_0x36b12d(0x15d)][_0x36b12d(0x156)](_0x5a5f9c));}[_0x4125fe(0x172)](_0x1890ec){const _0x43b09e=_0x4125fe;return this[_0x43b09e(0x1ae)]['has'](_0x1890ec);}[_0x4125fe(0x136)](_0xa79571){const _0x52f0b1=_0x4125fe;return Array[_0x52f0b1(0x18c)](this[_0x52f0b1(0x15d)])[_0x52f0b1(0x17e)](_0x3620d1=>_0x3620d1(_0xa79571));}};function _(_0x542682,_0x37e2){return function(_0x3ec5ba,_0x3ac406){_0x37e2(_0x3ec5ba,_0x3ac406,_0x542682);};}function v(_0x363fda,_0x493609,_0x4e739e,_0x4481e9){const _0x218430=_0x4125fe;var _0x5e19e8=arguments['length'],_0x40220b=_0x5e19e8<0x3?_0x493609:_0x4481e9===null?_0x4481e9=Object[_0x218430(0x1d0)](_0x493609,_0x4e739e):_0x4481e9,_0x5b28e6;if(typeof Reflect==_0x218430(0x164)&&typeof Reflect[_0x218430(0x1cd)]==_0x218430(0x130))_0x40220b=Reflect[_0x218430(0x1cd)](_0x363fda,_0x493609,_0x4e739e,_0x4481e9);else{for(var _0x26f33e=_0x363fda[_0x218430(0x158)]-0x1;_0x26f33e>=0x0;_0x26f33e--)(_0x5b28e6=_0x363fda[_0x26f33e])&&(_0x40220b=(_0x5e19e8<0x3?_0x5b28e6(_0x40220b):_0x5e19e8>0x3?_0x5b28e6(_0x493609,_0x4e739e,_0x40220b):_0x5b28e6(_0x493609,_0x4e739e))||_0x40220b);}return _0x5e19e8>0x3&&_0x40220b&&Object['defineProperty'](_0x493609,_0x4e739e,_0x40220b),_0x40220b;}let y=class extends n[_0x4125fe(0x1c6)]{constructor(_0xccdd06,_0x375a15,_0x1de318){const _0x162d63=_0x4125fe;super(),this['_univerInstanceService']=_0xccdd06,this[_0x162d63(0x145)]=_0x375a15,this[_0x162d63(0x1a9)]=_0x1de318,h(this,'_entities',new Map()),this[_0x162d63(0x142)]();}async[_0x4125fe(0x15a)](_0x205a81){const _0x4e783d=_0x4125fe;return this['_entities'][_0x4e783d(0x191)](_0x205a81)||await this[_0x4e783d(0x18d)](_0x205a81),this['_entities'][_0x4e783d(0x1c0)](_0x205a81);}[_0x4125fe(0x1ea)](_0x18f9b7){const _0x265f70=_0x4125fe;var _0x3a5150;return(_0x3a5150=this[_0x265f70(0x1c9)][_0x265f70(0x1c0)](_0x18f9b7))==null?null:_0x3a5150;}[_0x4125fe(0x142)](){const _0x3a9f73=_0x4125fe;this[_0x3a9f73(0x17c)]['getTypeOfUnitAdded$'](n[_0x3a9f73(0x1e6)][_0x3a9f73(0x1d1)])[_0x3a9f73(0x196)]((0x0,a[_0x3a9f73(0x170)])(this[_0x3a9f73(0x1a3)]))[_0x3a9f73(0x163)](async _0x3deb48=>{const _0x53ac77=_0x3a9f73;let _0x47041a=_0x3deb48['unit']['getUnitId']();this['_entities']['has'](_0x47041a)||this[_0x53ac77(0x18d)](_0x47041a);}),this[_0x3a9f73(0x17c)]['getTypeOfUnitDisposed$'](n['UniverInstanceType'][_0x3a9f73(0x1d1)])[_0x3a9f73(0x196)]((0x0,a[_0x3a9f73(0x170)])(this['dispose$']))[_0x3a9f73(0x163)](_0x487fdb=>{const _0x5aefdf=_0x3a9f73;let _0x3324a8=_0x487fdb['getUnitId'](),_0x418b5d=this[_0x5aefdf(0x1c9)][_0x5aefdf(0x1c0)](_0x3324a8);_0x418b5d==null||_0x418b5d[_0x5aefdf(0x1a6)]();});}async[_0x4125fe(0x18d)](_0x3f2217){const _0x55f52d=_0x4125fe;let _0x3bbf94=await this['_collabSessionService'][_0x55f52d(0x137)](_0x3f2217),_0x5c5795=this[_0x55f52d(0x145)]['createInstance'](x,_0x3f2217,_0x3bbf94);return _0x5c5795[_0x55f52d(0x167)](),this['_entities'][_0x55f52d(0x18e)](_0x3f2217,_0x5c5795),_0x5c5795;}};y=v([_(0x0,n[_0x4125fe(0x188)]),_(0x1,(0x0,n[_0x4125fe(0x1da)])(n[_0x4125fe(0x174)])),_(0x2,(0x0,n[_0x4125fe(0x1da)])(t[_0x4125fe(0x1ca)]))],y);let b=function(_0x8f4e17){const _0x2982fe=_0x4125fe;return _0x8f4e17[_0x2982fe(0x1bd)]=_0x2982fe(0x14b),_0x8f4e17['IDLE']=_0x2982fe(0x185),_0x8f4e17[_0x2982fe(0x1a4)]='following',_0x8f4e17[_0x2982fe(0x1bc)]=_0x2982fe(0x1b7),_0x8f4e17['PRESENTING']=_0x2982fe(0x1d6),_0x8f4e17;}({}),x=class extends n['RxDisposable']{get[_0x4125fe(0x1db)](){const _0x5003dc=_0x4125fe;return this[_0x5003dc(0x1c5)][_0x5003dc(0x13f)]();}constructor(_0x590a38,_0x5c7a2d,_0x45c458,_0x288eb9,_0x20f7a0){const _0xf666cf=_0x4125fe;super(),this['_unitID']=_0x590a38,this[_0xf666cf(0x17b)]=_0x5c7a2d,this[_0xf666cf(0x14c)]=_0x45c458,this[_0xf666cf(0x169)]=_0x288eb9,this[_0xf666cf(0x160)]=_0x20f7a0,h(this,_0xf666cf(0x1c5),new i[(_0xf666cf(0x1dc))]('idle')),h(this,'status$',this[_0xf666cf(0x1c5)][_0xf666cf(0x182)]()),h(this,_0xf666cf(0x142),!0x1),h(this,'_commandDisposable',null),h(this,_0xf666cf(0x1dd),null);}[_0x4125fe(0x1a6)](){const _0x125f75=_0x4125fe;var _0x24e895;(_0x24e895=this[_0x125f75(0x181)])==null||_0x24e895[_0x125f75(0x1a6)](),this[_0x125f75(0x1c5)][_0x125f75(0x175)](_0x125f75(0x185)),this[_0x125f75(0x1c5)]['complete']();}[_0x4125fe(0x1e9)](){const _0x1c7ae8=_0x4125fe;return this[_0x1c7ae8(0x1db)];}[_0x4125fe(0x167)](){const _0xb55b2d=_0x4125fe;this[_0xb55b2d(0x142)]||(this[_0xb55b2d(0x142)]=!0x0,this[_0xb55b2d(0x17b)][_0xb55b2d(0x1bb)][_0xb55b2d(0x196)]((0x0,a[_0xb55b2d(0x170)])(this[_0xb55b2d(0x1a3)]))['subscribe'](_0x20e5fc=>{const _0x4cdbef=_0xb55b2d;switch(_0x20e5fc){case t['SessionStatus'][_0x4cdbef(0x1bd)]:this[_0x4cdbef(0x187)]();break;case t[_0x4cdbef(0x190)][_0x4cdbef(0x1d3)]:this[_0x4cdbef(0x183)]();break;default:}}),this[_0xb55b2d(0x17b)]['event$'][_0xb55b2d(0x196)]((0x0,a[_0xb55b2d(0x170)])(this[_0xb55b2d(0x1a3)]))[_0xb55b2d(0x163)](_0x3b3b0f=>{const _0x43c46a=_0xb55b2d;let {eventID:_0x5e7d1f}=_0x3b3b0f;switch(_0x5e7d1f){case e[_0x43c46a(0x1a1)][_0x43c46a(0x154)]:this[_0x43c46a(0x1d8)](_0x3b3b0f);break;case e[_0x43c46a(0x1a1)][_0x43c46a(0x19b)]:this[_0x43c46a(0x198)](_0x3b3b0f);break;case e[_0x43c46a(0x1a1)]['LIVESHARE_TERMINATE']:this[_0x43c46a(0x1d7)]();break;case e[_0x43c46a(0x1a1)][_0x43c46a(0x14d)]:this['_handleNewChangeSets'](_0x3b3b0f);break;default:}}));}['tryStartPresenting'](){const _0x5f1c0e=_0x4125fe;this[_0x5f1c0e(0x17b)]['send']({'eventID':e['CollaborationEvent'][_0x5f1c0e(0x155)],'data':{'unitID':this[_0x5f1c0e(0x1ce)],'userID':this[_0x5f1c0e(0x17b)][_0x5f1c0e(0x16d)]()}},this[_0x5f1c0e(0x1ce)]);}[_0x4125fe(0x192)](){const _0x574d1e=_0x4125fe;this[_0x574d1e(0x1db)]===_0x574d1e(0x1d6)&&(this[_0x574d1e(0x1c5)][_0x574d1e(0x175)](_0x574d1e(0x185)),this[_0x574d1e(0x17b)]['send']({'eventID':e[_0x574d1e(0x1a1)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x574d1e(0x1ce)]}},this['_unitID']));}['startFollowing'](){const _0x16ceb9=_0x4125fe;this[_0x16ceb9(0x1db)]===_0x16ceb9(0x1b7)&&(this[_0x16ceb9(0x1c5)][_0x16ceb9(0x175)](_0x16ceb9(0x1cb)),this[_0x16ceb9(0x14a)]());}['stopFollowing'](){const _0x409563=_0x4125fe;this[_0x409563(0x1db)]===_0x409563(0x1cb)&&this[_0x409563(0x14e)]();}[_0x4125fe(0x1d8)](_0x5e4c33){const _0x20d139=_0x4125fe;let {presenter:_0x429b12}=_0x5e4c33[_0x20d139(0x1ac)],_0x3c38f5=this['_collabSession'][_0x20d139(0x16d)]();this['_presenter']=_0x429b12,_0x429b12===_0x3c38f5?(this[_0x20d139(0x14e)](),this[_0x20d139(0x1af)]()):this[_0x20d139(0x1db)]!==_0x20d139(0x1b7)&&(this['_stopPresenting'](),this[_0x20d139(0x14a)]());}['_fetchOperations'](){const _0x561ee6=_0x4125fe;let _0x2a6329={'eventID':e[_0x561ee6(0x1a1)][_0x561ee6(0x13b)]};this[_0x561ee6(0x17b)][_0x561ee6(0x1a2)](_0x2a6329,this[_0x561ee6(0x1ce)]);}[_0x4125fe(0x1d7)](){const _0x410380=_0x4125fe;this[_0x410380(0x1dd)]=null,this['_status']!==_0x410380(0x1d6)&&this[_0x410380(0x132)]();}[_0x4125fe(0x1b3)](_0xc5ef56){const _0x559593=_0x4125fe;if(this[_0x559593(0x1db)]===_0x559593(0x1cb)&&this['_presenter']===_0xc5ef56[_0x559593(0x1ac)][_0x559593(0x1e4)]){let _0x4bf112=(0x0,e[_0x559593(0x171)])(_0xc5ef56[_0x559593(0x1ac)])[_0x559593(0x135)][_0x559593(0x131)]()[_0x559593(0x1c7)](_0x4dd082=>_0x4dd082['id']===r[_0x559593(0x1b9)]['id']);if(_0x4bf112){let _0x50ea3=_0x4bf112[_0x559593(0x1ec)]['unitId'],_0x259240=_0x4bf112[_0x559593(0x1ec)][_0x559593(0x19e)]['id'];setTimeout(()=>{const _0x1c8b13=_0x559593;this['_commandService'][_0x1c8b13(0x1a0)](r[_0x1c8b13(0x161)]['id'],{'unitId':_0x50ea3,'subUnitId':_0x259240},{'fromCollab':!0x0});});}}}[_0x4125fe(0x1af)](){const _0x446899=_0x4125fe;var _0x3be18e;(_0x3be18e=this[_0x446899(0x181)])==null||_0x3be18e['dispose'](),this[_0x446899(0x1c5)][_0x446899(0x175)](_0x446899(0x1d6));let _0x508e4c=new Map(),_0x491a17=this['_commandDisposable']=new n[(_0x446899(0x17d))]();_0x491a17[_0x446899(0x16f)]((0x0,n[_0x446899(0x13a)])(()=>{const _0x3dbf70=_0x446899;_0x508e4c[_0x3dbf70(0x1b2)](({subject:_0x5508c4,subscription:_0x537da6})=>{const _0x117c7e=_0x3dbf70;_0x537da6[_0x117c7e(0x17a)](),_0x5508c4['complete']();}),_0x508e4c[_0x3dbf70(0x1d4)]();})),_0x491a17[_0x446899(0x16f)](this[_0x446899(0x160)][_0x446899(0x1c2)](_0x466439=>{const _0x39dd38=_0x446899;if(_0x466439[_0x39dd38(0x1c4)]!==n[_0x39dd38(0x197)][_0x39dd38(0x177)]||!this['_liveShareService'][_0x39dd38(0x172)](_0x466439['id']))return;let {id:_0x18b9da}=_0x466439,_0x5c77ec;if(_0x508e4c['has'](_0x18b9da))_0x5c77ec=_0x508e4c['get'](_0x18b9da)[_0x39dd38(0x18a)];else{var _0x2e7845;_0x5c77ec=new i[(_0x39dd38(0x1ef))]();let _0x43377b=_0x5c77ec[_0x39dd38(0x196)]((0x0,a[_0x39dd38(0x13d)])((_0x2e7845=this[_0x39dd38(0x14c)][_0x39dd38(0x139)](_0x39dd38(0x1d5)))==null?0xc8:_0x2e7845,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x39dd38(0x163)](_0x38cda7=>{const _0x13fe7a=_0x39dd38;this[_0x13fe7a(0x17b)]['send']({'eventID':e[_0x13fe7a(0x1a1)][_0x13fe7a(0x19b)],'data':{'unitID':this['_unitID'],'operations':{[_0x38cda7['id']]:{'id':_0x38cda7['id'],'params':JSON['stringify'](_0x38cda7[_0x13fe7a(0x1ec)])}}}},this[_0x13fe7a(0x1ce)]);});_0x508e4c[_0x39dd38(0x18e)](_0x18b9da,{'subject':_0x5c77ec,'subscription':_0x43377b});}_0x5c77ec[_0x39dd38(0x175)](_0x466439);})),this[_0x446899(0x169)][_0x446899(0x136)](this[_0x446899(0x1ce)])[_0x446899(0x1b2)](_0x392555=>this['_collabSession'][_0x446899(0x1a2)]({'eventID':e[_0x446899(0x1a1)][_0x446899(0x19b)],'data':{'unitID':this['_unitID'],'operations':{[_0x392555['id']]:{'id':_0x392555['id'],'params':JSON['stringify'](_0x392555[_0x446899(0x1ec)])}}}},this[_0x446899(0x1ce)]));}[_0x4125fe(0x17f)](){const _0x4be6a5=_0x4125fe;var _0x2d37ff;this['_status$'][_0x4be6a5(0x175)](_0x4be6a5(0x185)),(_0x2d37ff=this[_0x4be6a5(0x181)])==null||_0x2d37ff['dispose'](),this['_commandDisposable']=null;}[_0x4125fe(0x14a)](){const _0x14ae95=_0x4125fe;var _0x16296b;(_0x16296b=this['_commandDisposable'])==null||_0x16296b[_0x14ae95(0x1a6)](),this[_0x14ae95(0x1c5)][_0x14ae95(0x175)]('following');}[_0x4125fe(0x132)](){const _0x1d4bd7=_0x4125fe;var _0x70a836;this['_status$'][_0x1d4bd7(0x175)](_0x1d4bd7(0x185)),(_0x70a836=this[_0x1d4bd7(0x181)])==null||_0x70a836[_0x1d4bd7(0x1a6)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x20ca56=_0x4125fe;var _0x582649;this[_0x20ca56(0x1c5)][_0x20ca56(0x175)](_0x20ca56(0x1b7)),(_0x582649=this[_0x20ca56(0x181)])==null||_0x582649['dispose']();}[_0x4125fe(0x198)](_0x2b9054){const _0x278755=_0x4125fe;if([_0x278755(0x1d6),_0x278755(0x1b7),_0x278755(0x14b)][_0x278755(0x1d2)](this[_0x278755(0x1db)])||!_0x2b9054[_0x278755(0x1ac)]['presenter']||_0x2b9054[_0x278755(0x1ac)][_0x278755(0x1f2)]===this['_collabSession'][_0x278755(0x16d)]())return;this[_0x278755(0x1db)]==='idle'&&this[_0x278755(0x14a)]();let _0x2080be=_0x2b9054['data'][_0x278755(0x1b8)];Object[_0x278755(0x1e1)](_0x2080be)[_0x278755(0x1b2)](_0x50a5a5=>{const _0x5842c0=_0x278755;this['_commandService'][_0x5842c0(0x1a0)](_0x50a5a5['id'],_0x50a5a5['params']?JSON[_0x5842c0(0x1df)](_0x50a5a5[_0x5842c0(0x1ec)]):null,{'fromCollab':!0x0});});}[_0x4125fe(0x187)](){const _0x52a887=_0x4125fe;var _0x4cd816;this['_status$']['next'](_0x52a887(0x14b)),(_0x4cd816=this['_commandDisposable'])==null||_0x4cd816['dispose']();}[_0x4125fe(0x183)](){const _0x4de92a=_0x4125fe;this[_0x4de92a(0x1c5)][_0x4de92a(0x175)]('idle'),this[_0x4de92a(0x134)]();}};x=v([_(0x2,n[_0x4125fe(0x1a8)]),_(0x3,(0x0,n['Inject'])(g)),_(0x4,n[_0x4125fe(0x1ed)])],x);function S(){const _0x4ebbfb=_0x4125fe;let _0x14afe9=(0x0,o['useDependency'])(y),_0x3412af=(0x0,o[_0x4ebbfb(0x15f)])(n[_0x4ebbfb(0x188)]),_0x24b7ee=(0x0,o['useObservable'])(()=>_0x3412af[_0x4ebbfb(0x19a)](n['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x27e438,_0x50bb01]=(0x0,l[_0x4ebbfb(0x152)])(null),[_0x3540cc,_0x17f5c1]=(0x0,l[_0x4ebbfb(0x152)])('idle'),_0x5ce1ec=(0x0,l[_0x4ebbfb(0x15c)])(null);return(0x0,l[_0x4ebbfb(0x1be)])(()=>(_0x24b7ee&&_0x14afe9['getLiveShareCoordinator'](_0x24b7ee[_0x4ebbfb(0x14f)]())[_0x4ebbfb(0x150)](_0x249a75=>{const _0x18d7ce=_0x4ebbfb;_0x50bb01(_0x249a75),_0x5ce1ec[_0x18d7ce(0x1c3)]=_0x249a75[_0x18d7ce(0x12e)][_0x18d7ce(0x163)](_0x210c57=>{_0x17f5c1(_0x210c57);});}),()=>{const _0x17c96d=_0x4ebbfb;var _0x4fc7ab;(_0x4fc7ab=_0x5ce1ec['current'])==null||_0x4fc7ab[_0x17c96d(0x17a)](),_0x5ce1ec[_0x17c96d(0x1c3)]=null;}),[_0x24b7ee,_0x14afe9]),_0x27e438?(0x0,u['jsx'])(s[_0x4ebbfb(0x178)],{'align':_0x4ebbfb(0x1e2),'disabled':_0x3540cc==='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':(0x0,u[_0x4ebbfb(0x18f)])(C,{'status':_0x3540cc,'coordinator':_0x27e438}),'children':(0x0,u['jsx'])('button',{'className':(0x0,s[_0x4ebbfb(0x19d)])(_0x4ebbfb(0x1d9),{'univer-cursor-not-allowed':_0x3540cc===_0x4ebbfb(0x14b),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3540cc!==_0x4ebbfb(0x14b)}),'type':_0x4ebbfb(0x140),'children':(0x0,u[_0x4ebbfb(0x18f)])(c[_0x4ebbfb(0x1e0)],{})})}):null;}function C(_0x3b0487){const _0x1544d4=_0x4125fe;let {status:_0xc6006c,coordinator:_0x5a0166}=_0x3b0487;switch(_0xc6006c){case _0x1544d4(0x185):return(0x0,u[_0x1544d4(0x18f)])(w,{'coordinator':_0x5a0166});case _0x1544d4(0x1cb):return(0x0,u[_0x1544d4(0x18f)])(T,{'coordinator':_0x5a0166});case _0x1544d4(0x1b7):return(0x0,u['jsx'])(E,{'coordinator':_0x5a0166});case _0x1544d4(0x14b):return(0x0,u['jsx'])(O,{});case _0x1544d4(0x1d6):return(0x0,u[_0x1544d4(0x18f)])(D,{'coordinator':_0x5a0166});default:return null;}}function w(_0x436573){const _0x4bea19=_0x4125fe;let {coordinator:_0x28b43e}=_0x436573;return(0x0,u['jsxs'])(u['Fragment'],{'children':[(0x0,u[_0x4bea19(0x18f)])(_0x4bea19(0x1ad),{'className':_0x4bea19(0x1ba),'children':_0x4bea19(0x159)}),(0x0,u[_0x4bea19(0x18f)])(s[_0x4bea19(0x16c)],{'onClick':()=>_0x28b43e[_0x4bea19(0x1b0)](),'children':'Start'})]});}function T(_0xb2188a){const _0x24eb02=_0x4125fe;let {coordinator:_0x4409f6}=_0xb2188a;return(0x0,u[_0x24eb02(0x16a)])(u['Fragment'],{'children':[(0x0,u['jsx'])(_0x24eb02(0x1ad),{'className':_0x24eb02(0x1ba),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,u[_0x24eb02(0x18f)])(s[_0x24eb02(0x16c)],{'onClick':()=>_0x4409f6[_0x24eb02(0x19c)](),'children':_0x24eb02(0x141)})]});}function _0x3d35(_0x13b4e1,_0x11e371){_0x13b4e1=_0x13b4e1-0x12e;const _0x2f8700=_0x2f87();let _0x3d3567=_0x2f8700[_0x13b4e1];return _0x3d3567;}function E(_0x85cf36){const _0x2c64bd=_0x4125fe;let {coordinator:_0x4d4c08}=_0x85cf36;return(0x0,u['jsxs'])(u['Fragment'],{'children':[(0x0,u['jsx'])(_0x2c64bd(0x1ad),{'className':_0x2c64bd(0x1ba),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,u[_0x2c64bd(0x18f)])(s[_0x2c64bd(0x16c)],{'variant':_0x2c64bd(0x1aa),'onClick':()=>_0x4d4c08['startFollowing'](),'children':_0x2c64bd(0x1a7)})]});}function D(_0x3c052d){const _0x2c531c=_0x4125fe;let {coordinator:_0x490eae}=_0x3c052d;return(0x0,u[_0x2c531c(0x16a)])(u[_0x2c531c(0x13c)],{'children':[(0x0,u['jsx'])(_0x2c531c(0x1ad),{'className':_0x2c531c(0x1ba),'children':'You\x27re\x20presenting\x20the\x20document'}),(0x0,u['jsx'])(s[_0x2c531c(0x16c)],{'variant':'default','onClick':()=>_0x490eae[_0x2c531c(0x192)](),'children':_0x2c531c(0x1ee)})]});}function O(){const _0x5843fa=_0x4125fe;return(0x0,u[_0x5843fa(0x18f)])(u[_0x5843fa(0x13c)],{'children':_0x5843fa(0x19f)});}let k=class extends n[_0x4125fe(0x1b6)]{constructor(_0x474d06,_0x43328f){const _0x1d4b5e=_0x4125fe;super(),this[_0x1d4b5e(0x145)]=_0x474d06,this[_0x1d4b5e(0x13e)]=_0x43328f,this[_0x1d4b5e(0x199)]();}[_0x4125fe(0x199)](){const _0x1efba8=_0x4125fe;this[_0x1efba8(0x151)](this[_0x1efba8(0x13e)][_0x1efba8(0x173)](o[_0x1efba8(0x179)][_0x1efba8(0x1b5)],()=>(0x0,o[_0x1efba8(0x1f3)])(S,this[_0x1efba8(0x145)])));}};k=v([_(0x0,(0x0,n[_0x4125fe(0x1da)])(n[_0x4125fe(0x174)])),_(0x1,o['IUIPartsService'])],k);var A=_0x4125fe(0x193),j='1.0.0-alpha.0';const M={};let N=class extends n[_0x4125fe(0x1b6)]{constructor(_0x211b92){const _0x43be3c=_0x4125fe;super(),this[_0x43be3c(0x169)]=_0x211b92,this['_init']();}[_0x4125fe(0x142)](){const _0x52fd57=_0x4125fe;[d[_0x52fd57(0x148)]['id'],d['SetScrollOperation']['id'],r[_0x52fd57(0x161)]['id']]['forEach'](_0xc0b878=>{const _0xfd42b6=_0x52fd57;this['disposeWithMe'](this[_0xfd42b6(0x169)][_0xfd42b6(0x1b1)](_0xc0b878));});}};N=v([_(0x0,(0x0,n[_0x4125fe(0x1da)])(g))],N);let P=class extends n[_0x4125fe(0x1ab)]{constructor(_0xe1df16=M,_0x20ebad,_0x115c51){const _0x5455e5=_0x4125fe;super(),this['_config']=_0xe1df16,this['_injector']=_0x20ebad,this[_0x5455e5(0x14c)]=_0x115c51;let {..._0x4a6f39}=(0x0,n[_0x5455e5(0x143)])({},M,this[_0x5455e5(0x147)]);this[_0x5455e5(0x14c)][_0x5455e5(0x1bf)](_0x5455e5(0x138),_0x4a6f39);}[_0x4125fe(0x1f0)](){const _0x24d1f4=_0x4125fe;(0x0,n[_0x24d1f4(0x165)])(this['_injector'],(0x0,n['mergeOverrideWithDependencies'])([[g],[y],[N],[k]],this[_0x24d1f4(0x147)]['override'])),(0x0,n['touchDependencies'])(this[_0x24d1f4(0x145)],[[N]]);}[_0x4125fe(0x195)](){const _0x5ddf65=_0x4125fe;(0x0,n[_0x5ddf65(0x1e5)])(this['_injector'],[[k]]);}};h(P,_0x4125fe(0x1c4),n[_0x4125fe(0x1e6)][_0x4125fe(0x1cf)]),h(P,_0x4125fe(0x189),'UNIVER_LIVE_SHARE_PLUGIN'),h(P,_0x4125fe(0x168),A),h(P,_0x4125fe(0x1de),j),P=v([(0x0,n[_0x4125fe(0x166)])(t[_0x4125fe(0x1e3)]),_(0x1,(0x0,n['Inject'])(n['Injector'])),_(0x2,n[_0x4125fe(0x1a8)])],P),Object[_0x4125fe(0x12f)](exports,_0x4125fe(0x133),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x4125fe(0x1b4)]=S,Object[_0x4125fe(0x12f)](exports,_0x4125fe(0x15b),{'enumerable':!0x0,'get':function(){return y;}}),Object[_0x4125fe(0x12f)](exports,_0x4125fe(0x1e7),{'enumerable':!0x0,'get':function(){return x;}}),exports['LiveShareService']=g,exports[_0x4125fe(0x18b)]=b,Object[_0x4125fe(0x12f)](exports,_0x4125fe(0x146),{'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
- function _0x4f8f(){const _0x5d8927=['startPresenting','114lzODbz','get','2187752GtBAlR','30AOZfcI','No\x20active\x20workbook\x20found.','getCurrentUnitOfType','UNIVER_SHEET','symbol','extend','2012ktHnKJ','string','150hNoteb','tryStartPresenting','6554568qXemYU','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','iterator','defineProperty','32026170kuDmDJ','_liveShareController','getUnitId','352496ZsWpYe','getLiveShareCoordinatorSync','8058618jllkMh','221495pfcgHU','call','getLiveShareStatus','startFollowing','object','constructor','toPrimitive','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','stopFollowing','10XSLIqF','getStatus','stopPresenting'];_0x4f8f=function(){return _0x5d8927;};return _0x4f8f();}const _0xe5ece8=_0xfb78;(function(_0x1d622b,_0x489713){const _0x5d0343=_0xfb78,_0x519da6=_0x1d622b();while(!![]){try{const _0x86bbbc=parseInt(_0x5d0343(0xe4))/0x1*(-parseInt(_0x5d0343(0xe2))/0x2)+-parseInt(_0x5d0343(0xdc))/0x3*(parseInt(_0x5d0343(0xee))/0x4)+parseInt(_0x5d0343(0xf1))/0x5*(parseInt(_0x5d0343(0xd9))/0x6)+-parseInt(_0x5d0343(0xdb))/0x7+-parseInt(_0x5d0343(0xe6))/0x8+-parseInt(_0x5d0343(0xf0))/0x9*(parseInt(_0x5d0343(0xd5))/0xa)+parseInt(_0x5d0343(0xeb))/0xb;if(_0x86bbbc===_0x489713)break;else _0x519da6['push'](_0x519da6['shift']());}catch(_0x196315){_0x519da6['push'](_0x519da6['shift']());}}}(_0x4f8f,0xa95f8));import{LiveShareController as _0x9b52ec,LiveShareStatus as _0x16f243}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x3109cc,UniverInstanceType as _0x44c09a}from'@univerjs/core';import{FEnum as _0x31875d,FUniver as _0x125cd6}from'@univerjs/core/facade';function o(_0x425763){'@babel/helpers - typeof';const _0x21d674=_0xfb78;return o=typeof Symbol==_0x21d674(0xd3)&&typeof Symbol[_0x21d674(0xe9)]==_0x21d674(0xe0)?function(_0x5886a0){return typeof _0x5886a0;}:function(_0x39db0d){const _0x147edb=_0x21d674;return _0x39db0d&&typeof Symbol==_0x147edb(0xd3)&&_0x39db0d[_0x147edb(0xd0)]===Symbol&&_0x39db0d!==Symbol['prototype']?_0x147edb(0xe0):typeof _0x39db0d;},o(_0x425763);}function s(_0x2a0f34,_0x41206e){const _0x248cd5=_0xfb78;if(o(_0x2a0f34)!=_0x248cd5(0xcf)||!_0x2a0f34)return _0x2a0f34;var _0x5c6d8a=_0x2a0f34[Symbol[_0x248cd5(0xd1)]];if(_0x5c6d8a!==void 0x0){var _0x410b61=_0x5c6d8a[_0x248cd5(0xf2)](_0x2a0f34,_0x41206e||'default');if(o(_0x410b61)!=_0x248cd5(0xcf))return _0x410b61;throw TypeError(_0x248cd5(0xd2));}return(_0x41206e===_0x248cd5(0xe3)?String:Number)(_0x2a0f34);}function c(_0x546bc5){const _0x46f6a4=_0xfb78;var _0x200c95=s(_0x546bc5,_0x46f6a4(0xe3));return o(_0x200c95)=='symbol'?_0x200c95:_0x200c95+'';}function l(_0x34d1e3,_0x9ec152,_0x2a2ebd){const _0x5d76b0=_0xfb78;return(_0x9ec152=c(_0x9ec152))in _0x34d1e3?Object[_0x5d76b0(0xea)](_0x34d1e3,_0x9ec152,{'value':_0x2a2ebd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x34d1e3[_0x9ec152]=_0x2a2ebd,_0x34d1e3;}var u=class extends _0x125cd6{constructor(..._0x4f5e0d){const _0x1d889b=_0xfb78;super(..._0x4f5e0d),l(this,_0x1d889b(0xec),void 0x0);}['_initialize'](_0x584002){const _0x2492ed=_0xfb78;this[_0x2492ed(0xec)]=_0x584002[_0x2492ed(0xda)](_0x9b52ec);}[_0xe5ece8(0xcd)](){const _0x5798ea=_0xe5ece8;var _0x31686e;let _0x38ea45=this[_0x5798ea(0xe7)][_0x5798ea(0xda)](_0x3109cc)['getCurrentUnitOfType'](_0x44c09a[_0x5798ea(0xdf)]);if(!_0x38ea45)throw Error(_0x5798ea(0xdd));let _0x531a4d=_0x38ea45[_0x5798ea(0xed)](),_0x1a583f=this[_0x5798ea(0xec)][_0x5798ea(0xef)](_0x531a4d);return(_0x31686e=_0x1a583f==null?void 0x0:_0x1a583f[_0x5798ea(0xd6)]())==null?_0x16f243['IDLE']:_0x31686e;}[_0xe5ece8(0xce)](){const _0x25084a=_0xe5ece8;let _0x5db284=this[_0x25084a(0xe7)]['get'](_0x3109cc)['getCurrentUnitOfType'](_0x44c09a[_0x25084a(0xdf)]);if(!_0x5db284)throw Error(_0x25084a(0xdd));let _0x1e01ae=_0x5db284[_0x25084a(0xed)](),_0x11eaab=this['_liveShareController'][_0x25084a(0xef)](_0x1e01ae);if(!_0x11eaab)throw Error(_0x25084a(0xe8));_0x11eaab[_0x25084a(0xce)]();}[_0xe5ece8(0xd4)](){const _0x4328ff=_0xe5ece8;let _0x43021a=this[_0x4328ff(0xe7)][_0x4328ff(0xda)](_0x3109cc)[_0x4328ff(0xde)](_0x44c09a[_0x4328ff(0xdf)]);if(!_0x43021a)throw Error(_0x4328ff(0xdd));let _0x18d5fe=_0x43021a[_0x4328ff(0xed)](),_0x222282=this[_0x4328ff(0xec)]['getLiveShareCoordinatorSync'](_0x18d5fe);if(!_0x222282)throw Error(_0x4328ff(0xe8));_0x222282['stopFollowing']();}[_0xe5ece8(0xd8)](){const _0x26a820=_0xe5ece8;let _0x83c3a5=this[_0x26a820(0xe7)]['get'](_0x3109cc)[_0x26a820(0xde)](_0x44c09a['UNIVER_SHEET']);if(!_0x83c3a5)throw Error('No\x20active\x20workbook\x20found.');let _0x97e1b1=_0x83c3a5[_0x26a820(0xed)](),_0x5eba6f=this[_0x26a820(0xec)]['getLiveShareCoordinatorSync'](_0x97e1b1);if(!_0x5eba6f)throw Error(_0x26a820(0xe8));_0x5eba6f[_0x26a820(0xe5)]();}[_0xe5ece8(0xd7)](){const _0x56973d=_0xe5ece8;let _0x49dd5f=this[_0x56973d(0xe7)][_0x56973d(0xda)](_0x3109cc)[_0x56973d(0xde)](_0x44c09a[_0x56973d(0xdf)]);if(!_0x49dd5f)throw Error(_0x56973d(0xdd));let _0x59c903=_0x49dd5f[_0x56973d(0xed)](),_0x9c1691=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x59c903);if(!_0x9c1691)throw Error(_0x56973d(0xe8));_0x9c1691['stopPresenting']();}};_0x125cd6[_0xe5ece8(0xe1)](u);var d=class extends _0x31875d{get['LiveShareStatusEnum'](){return _0x16f243;}};_0x31875d[_0xe5ece8(0xe1)](d);function _0xfb78(_0xfcfc91,_0x35bdcb){_0xfcfc91=_0xfcfc91-0xcd;const _0x4f8f68=_0x4f8f();let _0xfb7887=_0x4f8f68[_0xfcfc91];return _0xfb7887;}export{};
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 _0x2fef7c=_0x5d67;(function(_0x289af8,_0x57bbe8){const _0x138244=_0x5d67,_0x47e91a=_0x289af8();while(!![]){try{const _0x217bd0=-parseInt(_0x138244(0x1c8))/0x1+-parseInt(_0x138244(0x1f2))/0x2+parseInt(_0x138244(0x1ae))/0x3+parseInt(_0x138244(0x203))/0x4+-parseInt(_0x138244(0x1e9))/0x5*(-parseInt(_0x138244(0x221))/0x6)+-parseInt(_0x138244(0x1de))/0x7*(parseInt(_0x138244(0x216))/0x8)+parseInt(_0x138244(0x21c))/0x9*(parseInt(_0x138244(0x214))/0xa);if(_0x217bd0===_0x57bbe8)break;else _0x47e91a['push'](_0x47e91a['shift']());}catch(_0x1b6eda){_0x47e91a['push'](_0x47e91a['shift']());}}}(_0x1586,0x97ebf));import{CollaborationEvent as _0x478db0,parseProtocolChangeset as _0xcd04f0}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x512147,SessionStatus as _0x498991,UniverCollaborationClientPlugin as _0x425914}from'@univerjs-pro/collaboration-client';import{CommandType as _0x1c342c,DependentOn as _0x4cd9e3,Disposable as _0x34af2c,DisposableCollection as _0x4c4ac3,ICommandService as _0x45569a,IConfigService as _0x1d7a2a,IUniverInstanceService as _0x37e2f7,Inject as _0x58ba95,Injector as _0x1d5427,Plugin as _0x5703cb,RxDisposable as _0x37cd84,UniverInstanceType as _0x484186,merge as _0x4ef3b5,mergeOverrideWithDependencies as _0xb5819d,registerDependencies as _0x118c94,toDisposable as _0x11276b,touchDependencies as _0xce53d7}from'@univerjs/core';function _0x1586(){const _0x2e8a65=['next','event$','getLiveShareCoordinator','startFollowing','@univerjs-pro/live-share','_startPresenting','_status$','type','LIVESHARE_OPERATION','unit','_handleTerminate','status$','FOLLOWING','IDLE','idle','53382iWMhlk','send','packageName','dispose','onCommandExecuted','override','univer-mb-3\x20univer-w-full\x20univer-text-sm','tryStartPresenting','_init','_beIdle','function','7130SbuLvQ','_startFollowing','disposeWithMe','_mountLiveShare','SAME_OPERATION_SHARE_INTERVAL','set','_commandService','stopPresenting','parse','493428eOwyFu','UNIVER_LIVE_SHARE_PLUGIN','call','then','params','_stopPresenting','requireSession','dispose$','Stop\x20presenting','onRendered','_configService','forEach','Start\x20following','toPrimitive','iterator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','not-following','3008852cAOPDK','_collabSessionService','1.0.0-alpha.0','map','data','stopFollowing','sessionStatus$','LIVESHARE_FETCH_OPERATIONS','registerComponent','length','LIVESHARE_TERMINATE','_startLiveShareCoordinator','_univerInstanceService','createInstance','_handleOperation','_reporters','_handleNewHost','570wWuYoL','LIVESHARE_NEW_HOST','1168hBveuz','shouldShareOperation','unitId','getLiveShareCoordinatorSync','_injector','_presenter','240201mXjrLH','executeCommand','pipe','_status','getMemberID','1044zxIGqW','presenting','add','You\x27re\x20following\x20the\x20presenter','div','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_uiPartsService','get','_fetchOperations','mutations','getUnitId','getConfig','OPERATION','offline','current','getValue','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','pluginName','registerSharedOperation','unsubscribe','memberID','_commandDisposable','has','registerInitialStateReporter','Present\x20this\x20document','_unitID','button','NOT_FOLLOWING','UNIVER_SHEET','NEW_CHANGESETS','You\x27re\x20not\x20following\x20the\x20presenter','627915IhdPcZ','_handleNewChangeSets','You\x27are\x20offline.','getTypeOfUnitDisposed$','OFFLINE','complete','UNIVER_UNKNOWN','_entities','_handleOffline','_collabSession','find','clear','_sharedOperations','sheet','prototype','_liveShareService','LIVESHARE_REQUEST_HOST','string','defineProperty','init','PRESENTING','stringify','following','symbol','object','delete','748534YZCHhW','asObservable','_stopFollowing','default','subscribe','_config','presenter'];_0x1586=function(){return _0x2e8a65;};return _0x1586();}import{InsertSheetMutation as _0x500e77,SetWorksheetActiveOperation as _0x1f3228}from'@univerjs/sheets';import{BehaviorSubject as _0x1774ef,Subject as _0xe151d8}from'rxjs';import{takeUntil as _0x7a005d,throttleTime as _0x5d90f3}from'rxjs/operators';import{BuiltInUIPart as _0x1794fc,IUIPartsService as _0x10d088,connectInjector as _0x1516ea,useDependency as _0x4a7844,useObservable as _0x516d61}from'@univerjs/ui';import{Button as _0x55f00c,Dropdown as _0x53bcb1,clsx as _0x56d0d4}from'@univerjs/design';import{LiveShareIcon as _0x509d2b}from'@univerjs/icons';import{useEffect as _0x1fb6ee,useRef as _0x5219a6,useState as _0x93df6b}from'react';import{Fragment as _0x4ecb73,jsx as _0x15f794,jsxs as _0x3b419a}from'react/jsx-runtime';import{SetScrollOperation as _0x3d0847,SetZoomRatioOperation as _0x590899}from'@univerjs/sheets-ui';function R(_0x44a525){'@babel/helpers - typeof';const _0x12392e=_0x5d67;return R=typeof Symbol==_0x12392e(0x1e8)&&typeof Symbol[_0x12392e(0x200)]==_0x12392e(0x1c5)?function(_0xda6c25){return typeof _0xda6c25;}:function(_0x145ab0){const _0x187458=_0x12392e;return _0x145ab0&&typeof Symbol=='function'&&_0x145ab0['constructor']===Symbol&&_0x145ab0!==Symbol[_0x187458(0x1bc)]?'symbol':typeof _0x145ab0;},R(_0x44a525);}function z(_0x3b2acc,_0x468db6){const _0x1c7537=_0x5d67;if(R(_0x3b2acc)!=_0x1c7537(0x1c6)||!_0x3b2acc)return _0x3b2acc;var _0x4c5321=_0x3b2acc[Symbol[_0x1c7537(0x1ff)]];if(_0x4c5321!==void 0x0){var _0x439969=_0x4c5321[_0x1c7537(0x1f4)](_0x3b2acc,_0x468db6||_0x1c7537(0x1cb));if(R(_0x439969)!=_0x1c7537(0x1c6))return _0x439969;throw TypeError(_0x1c7537(0x226));}return(_0x468db6===_0x1c7537(0x1bf)?String:Number)(_0x3b2acc);}function B(_0x2566b0){const _0xe9f83=_0x5d67;var _0x1485dd=z(_0x2566b0,_0xe9f83(0x1bf));return R(_0x1485dd)==_0xe9f83(0x1c5)?_0x1485dd:_0x1485dd+'';}function V(_0x52271f,_0x2ed73e,_0x39d149){const _0x2dcecd=_0x5d67;return(_0x2ed73e=B(_0x2ed73e))in _0x52271f?Object[_0x2dcecd(0x1c0)](_0x52271f,_0x2ed73e,{'value':_0x39d149,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52271f[_0x2ed73e]=_0x39d149,_0x52271f;}var H=class extends _0x34af2c{constructor(..._0x55b199){const _0x2a9ef3=_0x5d67;super(..._0x55b199),V(this,_0x2a9ef3(0x1ba),new Set()),V(this,_0x2a9ef3(0x212),new Set());}[_0x2fef7c(0x233)](_0x5f3b57){const _0x38388a=_0x2fef7c;return this[_0x38388a(0x1ba)]['add'](_0x5f3b57),_0x11276b(()=>this['_sharedOperations'][_0x38388a(0x1c7)](_0x5f3b57));}[_0x2fef7c(0x1a6)](_0x5506b9){const _0x100815=_0x2fef7c;return this[_0x100815(0x212)][_0x100815(0x223)](_0x5506b9),_0x11276b(()=>this[_0x100815(0x212)]['delete'](_0x5506b9));}[_0x2fef7c(0x217)](_0x4c009e){const _0x42182d=_0x2fef7c;return this[_0x42182d(0x1ba)][_0x42182d(0x1a5)](_0x4c009e);}['getInitialStates'](_0x22d416){const _0x4aa8fa=_0x2fef7c;return Array['from'](this[_0x4aa8fa(0x212)])[_0x4aa8fa(0x206)](_0x3dd8ca=>_0x3dd8ca(_0x22d416));}};function U(_0x34267e,_0x5a8c8e){return function(_0x5e9d6c,_0x373230){_0x5a8c8e(_0x5e9d6c,_0x373230,_0x34267e);};}function W(_0x422a09,_0x393b5c,_0x515bcb,_0x132d72){const _0x1dfc6a=_0x2fef7c;var _0xe24a46=arguments['length'],_0x2ed574=_0xe24a46<0x3?_0x393b5c:_0x132d72===null?_0x132d72=Object['getOwnPropertyDescriptor'](_0x393b5c,_0x515bcb):_0x132d72,_0x3d44f9;if(typeof Reflect==_0x1dfc6a(0x1c6)&&typeof Reflect['decorate']==_0x1dfc6a(0x1e8))_0x2ed574=Reflect['decorate'](_0x422a09,_0x393b5c,_0x515bcb,_0x132d72);else{for(var _0x27aa0d=_0x422a09[_0x1dfc6a(0x20c)]-0x1;_0x27aa0d>=0x0;_0x27aa0d--)(_0x3d44f9=_0x422a09[_0x27aa0d])&&(_0x2ed574=(_0xe24a46<0x3?_0x3d44f9(_0x2ed574):_0xe24a46>0x3?_0x3d44f9(_0x393b5c,_0x515bcb,_0x2ed574):_0x3d44f9(_0x393b5c,_0x515bcb))||_0x2ed574);}return _0xe24a46>0x3&&_0x2ed574&&Object[_0x1dfc6a(0x1c0)](_0x393b5c,_0x515bcb,_0x2ed574),_0x2ed574;}let G=class extends _0x37cd84{constructor(_0xf901d9,_0x425654,_0x399db5){const _0x25f027=_0x2fef7c;super(),this[_0x25f027(0x20f)]=_0xf901d9,this[_0x25f027(0x21a)]=_0x425654,this[_0x25f027(0x204)]=_0x399db5,V(this,_0x25f027(0x1b5),new Map()),this[_0x25f027(0x1e6)]();}async[_0x2fef7c(0x1d1)](_0x30745d){const _0x218db5=_0x2fef7c;return this['_entities']['has'](_0x30745d)||await this[_0x218db5(0x20e)](_0x30745d),this[_0x218db5(0x1b5)][_0x218db5(0x228)](_0x30745d);}[_0x2fef7c(0x219)](_0x42f9ee){const _0x42a262=_0x2fef7c;var _0x54a086;return(_0x54a086=this[_0x42a262(0x1b5)]['get'](_0x42f9ee))==null?null:_0x54a086;}[_0x2fef7c(0x1e6)](){const _0x33cdbd=_0x2fef7c;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x484186[_0x33cdbd(0x1ab)])[_0x33cdbd(0x21e)](_0x7a005d(this[_0x33cdbd(0x1f9)]))['subscribe'](async _0x15b86d=>{const _0x23d30f=_0x33cdbd;let _0x46332b=_0x15b86d[_0x23d30f(0x1d8)][_0x23d30f(0x22b)]();this[_0x23d30f(0x1b5)]['has'](_0x46332b)||this[_0x23d30f(0x20e)](_0x46332b);}),this[_0x33cdbd(0x20f)][_0x33cdbd(0x1b1)](_0x484186[_0x33cdbd(0x1ab)])[_0x33cdbd(0x21e)](_0x7a005d(this[_0x33cdbd(0x1f9)]))[_0x33cdbd(0x1cc)](_0x5ced9e=>{const _0x49e621=_0x33cdbd;let _0x5e7cf9=_0x5ced9e[_0x49e621(0x22b)](),_0x3cd4ae=this[_0x49e621(0x1b5)][_0x49e621(0x228)](_0x5e7cf9);_0x3cd4ae==null||_0x3cd4ae[_0x49e621(0x1e1)]();});}async[_0x2fef7c(0x20e)](_0x29dce1){const _0x1f7549=_0x2fef7c;let _0x2d66d8=await this[_0x1f7549(0x204)][_0x1f7549(0x1f8)](_0x29dce1),_0x416d10=this['_injector'][_0x1f7549(0x210)](q,_0x29dce1,_0x2d66d8);return _0x416d10[_0x1f7549(0x1c1)](),this[_0x1f7549(0x1b5)][_0x1f7549(0x1ee)](_0x29dce1,_0x416d10),_0x416d10;}};G=W([U(0x0,_0x37e2f7),U(0x1,_0x58ba95(_0x1d5427)),U(0x2,_0x58ba95(_0x512147))],G);let K=function(_0x2506ac){const _0x4ddf04=_0x2fef7c;return _0x2506ac['OFFLINE']='offline',_0x2506ac[_0x4ddf04(0x1dc)]='idle',_0x2506ac[_0x4ddf04(0x1db)]=_0x4ddf04(0x1c4),_0x2506ac[_0x4ddf04(0x1aa)]='not-following',_0x2506ac[_0x4ddf04(0x1c2)]=_0x4ddf04(0x222),_0x2506ac;}({}),q=class extends _0x37cd84{get[_0x2fef7c(0x21f)](){const _0x5c6083=_0x2fef7c;return this[_0x5c6083(0x1d5)][_0x5c6083(0x230)]();}constructor(_0x33ab99,_0x5e0b9f,_0x38876b,_0x45a9f1,_0x478906){const _0x5f4837=_0x2fef7c;super(),this[_0x5f4837(0x1a8)]=_0x33ab99,this[_0x5f4837(0x1b7)]=_0x5e0b9f,this[_0x5f4837(0x1fc)]=_0x38876b,this[_0x5f4837(0x1bd)]=_0x45a9f1,this[_0x5f4837(0x1ef)]=_0x478906,V(this,_0x5f4837(0x1d5),new _0x1774ef(_0x5f4837(0x1dd))),V(this,_0x5f4837(0x1da),this[_0x5f4837(0x1d5)][_0x5f4837(0x1c9)]()),V(this,_0x5f4837(0x1e6),!0x1),V(this,_0x5f4837(0x1a4),null),V(this,_0x5f4837(0x21b),null);}[_0x2fef7c(0x1e1)](){const _0x3ef23e=_0x2fef7c;var _0x5dcb9e;(_0x5dcb9e=this[_0x3ef23e(0x1a4)])==null||_0x5dcb9e[_0x3ef23e(0x1e1)](),this['_status$'][_0x3ef23e(0x1cf)]('idle'),this[_0x3ef23e(0x1d5)][_0x3ef23e(0x1b3)]();}['getStatus'](){const _0x2e6163=_0x2fef7c;return this[_0x2e6163(0x21f)];}['init'](){const _0x48dd2a=_0x2fef7c;this['_init']||(this[_0x48dd2a(0x1e6)]=!0x0,this['_collabSession'][_0x48dd2a(0x209)][_0x48dd2a(0x21e)](_0x7a005d(this['dispose$']))[_0x48dd2a(0x1cc)](_0x145471=>{const _0xaad294=_0x48dd2a;switch(_0x145471){case _0x498991[_0xaad294(0x1b2)]:this[_0xaad294(0x1b6)]();break;case _0x498991['ONLINE']:this['_handleOnline']();break;default:}}),this[_0x48dd2a(0x1b7)][_0x48dd2a(0x1d0)]['pipe'](_0x7a005d(this['dispose$']))[_0x48dd2a(0x1cc)](_0x478d7c=>{const _0x2d5d1a=_0x48dd2a;let {eventID:_0x45249a}=_0x478d7c;switch(_0x45249a){case _0x478db0[_0x2d5d1a(0x215)]:this['_handleNewHost'](_0x478d7c);break;case _0x478db0[_0x2d5d1a(0x1d7)]:this['_handleOperation'](_0x478d7c);break;case _0x478db0[_0x2d5d1a(0x20d)]:this[_0x2d5d1a(0x1d9)]();break;case _0x478db0[_0x2d5d1a(0x1ac)]:this[_0x2d5d1a(0x1af)](_0x478d7c);break;default:}}));}[_0x2fef7c(0x1e5)](){const _0x1bb7b9=_0x2fef7c;this[_0x1bb7b9(0x1b7)][_0x1bb7b9(0x1df)]({'eventID':_0x478db0[_0x1bb7b9(0x1be)],'data':{'unitID':this[_0x1bb7b9(0x1a8)],'userID':this[_0x1bb7b9(0x1b7)]['getMemberID']()}},this[_0x1bb7b9(0x1a8)]);}[_0x2fef7c(0x1f0)](){const _0x1445c6=_0x2fef7c;this[_0x1445c6(0x21f)]==='presenting'&&(this[_0x1445c6(0x1d5)][_0x1445c6(0x1cf)]('idle'),this[_0x1445c6(0x1b7)][_0x1445c6(0x1df)]({'eventID':_0x478db0['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1445c6(0x1a8)]}},this[_0x1445c6(0x1a8)]));}[_0x2fef7c(0x1d2)](){const _0x18cf49=_0x2fef7c;this[_0x18cf49(0x21f)]==='not-following'&&(this[_0x18cf49(0x1d5)][_0x18cf49(0x1cf)](_0x18cf49(0x1c4)),this[_0x18cf49(0x1ea)]());}['stopFollowing'](){const _0x3696ba=_0x2fef7c;this[_0x3696ba(0x21f)]===_0x3696ba(0x1c4)&&this['_stopFollowing']();}[_0x2fef7c(0x213)](_0x424c6c){const _0x38acf8=_0x2fef7c;let {presenter:_0x5bfca6}=_0x424c6c['data'],_0xec1494=this[_0x38acf8(0x1b7)][_0x38acf8(0x220)]();this[_0x38acf8(0x21b)]=_0x5bfca6,_0x5bfca6===_0xec1494?(this[_0x38acf8(0x1ca)](),this[_0x38acf8(0x1d4)]()):this['_status']!==_0x38acf8(0x202)&&(this[_0x38acf8(0x1f7)](),this[_0x38acf8(0x1ea)]());}[_0x2fef7c(0x229)](){const _0x287c75=_0x2fef7c;let _0x1e7c60={'eventID':_0x478db0[_0x287c75(0x20a)]};this[_0x287c75(0x1b7)]['send'](_0x1e7c60,this['_unitID']);}['_handleTerminate'](){const _0x2e9f1e=_0x2fef7c;this[_0x2e9f1e(0x21b)]=null,this['_status']!==_0x2e9f1e(0x222)&&this[_0x2e9f1e(0x1e7)]();}['_handleNewChangeSets'](_0xf2a402){const _0x457761=_0x2fef7c;if(this[_0x457761(0x21f)]===_0x457761(0x1c4)&&this[_0x457761(0x21b)]===_0xf2a402[_0x457761(0x207)][_0x457761(0x1a3)]){let _0x226e38=_0xcd04f0(_0xf2a402[_0x457761(0x207)])[_0x457761(0x22a)]['reverse']()[_0x457761(0x1b8)](_0x29e944=>_0x29e944['id']===_0x500e77['id']);if(_0x226e38){let _0x2775bf=_0x226e38[_0x457761(0x1f6)][_0x457761(0x218)],_0x2ea326=_0x226e38[_0x457761(0x1f6)][_0x457761(0x1bb)]['id'];setTimeout(()=>{const _0x3bfb05=_0x457761;this['_commandService'][_0x3bfb05(0x21d)](_0x1f3228['id'],{'unitId':_0x2775bf,'subUnitId':_0x2ea326},{'fromCollab':!0x0});});}}}[_0x2fef7c(0x1d4)](){const _0x2fbd88=_0x2fef7c;var _0x154ce2;(_0x154ce2=this['_commandDisposable'])==null||_0x154ce2['dispose'](),this[_0x2fbd88(0x1d5)][_0x2fbd88(0x1cf)](_0x2fbd88(0x222));let _0x448227=new Map(),_0x48e064=this[_0x2fbd88(0x1a4)]=new _0x4c4ac3();_0x48e064[_0x2fbd88(0x223)](_0x11276b(()=>{const _0x2b79e5=_0x2fbd88;_0x448227[_0x2b79e5(0x1fd)](({subject:_0x4fd9bc,subscription:_0x129172})=>{const _0x36c609=_0x2b79e5;_0x129172[_0x36c609(0x234)](),_0x4fd9bc['complete']();}),_0x448227[_0x2b79e5(0x1b9)]();})),_0x48e064[_0x2fbd88(0x223)](this[_0x2fbd88(0x1ef)][_0x2fbd88(0x1e2)](_0x467536=>{const _0x3c1dfb=_0x2fbd88;if(_0x467536[_0x3c1dfb(0x1d6)]!==_0x1c342c[_0x3c1dfb(0x22d)]||!this[_0x3c1dfb(0x1bd)][_0x3c1dfb(0x217)](_0x467536['id']))return;let {id:_0x6f4c6c}=_0x467536,_0x2571a6;if(_0x448227[_0x3c1dfb(0x1a5)](_0x6f4c6c))_0x2571a6=_0x448227[_0x3c1dfb(0x228)](_0x6f4c6c)['subject'];else{var _0xb14794;_0x2571a6=new _0xe151d8();let _0x2540d8=_0x2571a6[_0x3c1dfb(0x21e)](_0x5d90f3((_0xb14794=this[_0x3c1dfb(0x1fc)][_0x3c1dfb(0x22c)](_0x3c1dfb(0x1ed)))==null?0xc8:_0xb14794,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3c1dfb(0x1cc)](_0x285ca3=>{const _0x441dc1=_0x3c1dfb;this[_0x441dc1(0x1b7)][_0x441dc1(0x1df)]({'eventID':_0x478db0['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x441dc1(0x1a8)],'operations':{[_0x285ca3['id']]:{'id':_0x285ca3['id'],'params':JSON[_0x441dc1(0x1c3)](_0x285ca3[_0x441dc1(0x1f6)])}}}},this[_0x441dc1(0x1a8)]);});_0x448227[_0x3c1dfb(0x1ee)](_0x6f4c6c,{'subject':_0x2571a6,'subscription':_0x2540d8});}_0x2571a6['next'](_0x467536);})),this[_0x2fbd88(0x1bd)]['getInitialStates'](this[_0x2fbd88(0x1a8)])[_0x2fbd88(0x1fd)](_0x5e7ac3=>this[_0x2fbd88(0x1b7)][_0x2fbd88(0x1df)]({'eventID':_0x478db0[_0x2fbd88(0x1d7)],'data':{'unitID':this['_unitID'],'operations':{[_0x5e7ac3['id']]:{'id':_0x5e7ac3['id'],'params':JSON[_0x2fbd88(0x1c3)](_0x5e7ac3[_0x2fbd88(0x1f6)])}}}},this['_unitID']));}[_0x2fef7c(0x1f7)](){const _0xd9979f=_0x2fef7c;var _0x272f2f;this[_0xd9979f(0x1d5)][_0xd9979f(0x1cf)](_0xd9979f(0x1dd)),(_0x272f2f=this[_0xd9979f(0x1a4)])==null||_0x272f2f[_0xd9979f(0x1e1)](),this[_0xd9979f(0x1a4)]=null;}[_0x2fef7c(0x1ea)](){const _0x206ea6=_0x2fef7c;var _0x1f2bc5;(_0x1f2bc5=this[_0x206ea6(0x1a4)])==null||_0x1f2bc5[_0x206ea6(0x1e1)](),this[_0x206ea6(0x1d5)][_0x206ea6(0x1cf)](_0x206ea6(0x1c4));}[_0x2fef7c(0x1e7)](){const _0x4345c7=_0x2fef7c;var _0x4569b2;this[_0x4345c7(0x1d5)][_0x4345c7(0x1cf)]('idle'),(_0x4569b2=this[_0x4345c7(0x1a4)])==null||_0x4569b2[_0x4345c7(0x1e1)](),this[_0x4345c7(0x1a4)]=null;}[_0x2fef7c(0x1ca)](){const _0x55ba17=_0x2fef7c;var _0x4a54e0;this['_status$'][_0x55ba17(0x1cf)](_0x55ba17(0x202)),(_0x4a54e0=this[_0x55ba17(0x1a4)])==null||_0x4a54e0[_0x55ba17(0x1e1)]();}[_0x2fef7c(0x211)](_0x18cc30){const _0x385f65=_0x2fef7c;if(['presenting','not-following',_0x385f65(0x22e)]['includes'](this[_0x385f65(0x21f)])||!_0x18cc30[_0x385f65(0x207)][_0x385f65(0x1ce)]||_0x18cc30[_0x385f65(0x207)]['presenter']===this[_0x385f65(0x1b7)]['getMemberID']())return;this['_status']===_0x385f65(0x1dd)&&this[_0x385f65(0x1ea)]();let _0x56c30a=_0x18cc30[_0x385f65(0x207)]['operations'];Object['values'](_0x56c30a)[_0x385f65(0x1fd)](_0x197bd7=>{const _0x292971=_0x385f65;this[_0x292971(0x1ef)][_0x292971(0x21d)](_0x197bd7['id'],_0x197bd7[_0x292971(0x1f6)]?JSON[_0x292971(0x1f1)](_0x197bd7[_0x292971(0x1f6)]):null,{'fromCollab':!0x0});});}[_0x2fef7c(0x1b6)](){const _0x165287=_0x2fef7c;var _0x3710d6;this['_status$'][_0x165287(0x1cf)](_0x165287(0x22e)),(_0x3710d6=this[_0x165287(0x1a4)])==null||_0x3710d6['dispose']();}['_handleOnline'](){const _0x4b3547=_0x2fef7c;this['_status$'][_0x4b3547(0x1cf)]('idle'),this['_fetchOperations']();}};q=W([U(0x2,_0x1d7a2a),U(0x3,_0x58ba95(H)),U(0x4,_0x45569a)],q);function J(){const _0x443167=_0x2fef7c;let _0x53933b=_0x4a7844(G),_0x3f214a=_0x4a7844(_0x37e2f7),_0x35e03a=_0x516d61(()=>_0x3f214a['getCurrentTypeOfUnit$'](_0x484186[_0x443167(0x1ab)]),void 0x0,!0x1,[]),[_0x2d79bd,_0x2383bf]=_0x93df6b(null),[_0x17c01d,_0xf6a381]=_0x93df6b(_0x443167(0x1dd)),_0x28fe60=_0x5219a6(null);return _0x1fb6ee(()=>(_0x35e03a&&_0x53933b[_0x443167(0x1d1)](_0x35e03a['getUnitId']())[_0x443167(0x1f5)](_0x3c7d1d=>{const _0x3d0877=_0x443167;_0x2383bf(_0x3c7d1d),_0x28fe60[_0x3d0877(0x22f)]=_0x3c7d1d[_0x3d0877(0x1da)]['subscribe'](_0x97171b=>{_0xf6a381(_0x97171b);});}),()=>{const _0x28a4b3=_0x443167;var _0xd731a1;(_0xd731a1=_0x28fe60[_0x28a4b3(0x22f)])==null||_0xd731a1[_0x28a4b3(0x234)](),_0x28fe60[_0x28a4b3(0x22f)]=null;}),[_0x35e03a,_0x53933b]),_0x2d79bd?_0x15f794(_0x53bcb1,{'align':'end','disabled':_0x17c01d===_0x443167(0x22e),'className':_0x443167(0x231),'overlay':_0x15f794(se,{'status':_0x17c01d,'coordinator':_0x2d79bd}),'children':_0x15f794(_0x443167(0x1a9),{'className':_0x56d0d4(_0x443167(0x201),{'univer-cursor-not-allowed':_0x17c01d===_0x443167(0x22e),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17c01d!==_0x443167(0x22e)}),'type':_0x443167(0x1a9),'children':_0x15f794(_0x509d2b,{})})}):null;}function se(_0x55c102){const _0x48c359=_0x2fef7c;let {status:_0x51f5b8,coordinator:_0x387aa5}=_0x55c102;switch(_0x51f5b8){case _0x48c359(0x1dd):return _0x15f794(ce,{'coordinator':_0x387aa5});case _0x48c359(0x1c4):return _0x15f794(le,{'coordinator':_0x387aa5});case _0x48c359(0x202):return _0x15f794(ue,{'coordinator':_0x387aa5});case _0x48c359(0x22e):return _0x15f794(de,{});case _0x48c359(0x222):return _0x15f794(Y,{'coordinator':_0x387aa5});default:return null;}}function ce(_0x92d006){const _0x2f721c=_0x2fef7c;let {coordinator:_0x3bb0d9}=_0x92d006;return _0x3b419a(_0x4ecb73,{'children':[_0x15f794(_0x2f721c(0x225),{'className':_0x2f721c(0x1e4),'children':_0x2f721c(0x1a7)}),_0x15f794(_0x55f00c,{'onClick':()=>_0x3bb0d9[_0x2f721c(0x1e5)](),'children':'Start'})]});}function le(_0x3a9022){const _0x4dfb6a=_0x2fef7c;let {coordinator:_0x12bd06}=_0x3a9022;return _0x3b419a(_0x4ecb73,{'children':[_0x15f794('div',{'className':_0x4dfb6a(0x1e4),'children':_0x4dfb6a(0x224)}),_0x15f794(_0x55f00c,{'onClick':()=>_0x12bd06[_0x4dfb6a(0x208)](),'children':'Stop\x20following'})]});}function ue(_0x6e2716){const _0x465cf3=_0x2fef7c;let {coordinator:_0x322520}=_0x6e2716;return _0x3b419a(_0x4ecb73,{'children':[_0x15f794(_0x465cf3(0x225),{'className':_0x465cf3(0x1e4),'children':_0x465cf3(0x1ad)}),_0x15f794(_0x55f00c,{'variant':'text','onClick':()=>_0x322520[_0x465cf3(0x1d2)](),'children':_0x465cf3(0x1fe)})]});}function _0x5d67(_0x387637,_0x3cede3){_0x387637=_0x387637-0x1a3;const _0x15864d=_0x1586();let _0x5d675a=_0x15864d[_0x387637];return _0x5d675a;}function Y(_0x1c5a53){const _0x30097b=_0x2fef7c;let {coordinator:_0x130552}=_0x1c5a53;return _0x3b419a(_0x4ecb73,{'children':[_0x15f794('div',{'className':_0x30097b(0x1e4),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x15f794(_0x55f00c,{'variant':'default','onClick':()=>_0x130552[_0x30097b(0x1f0)](),'children':_0x30097b(0x1fa)})]});}function de(){const _0x159885=_0x2fef7c;return _0x15f794(_0x4ecb73,{'children':_0x159885(0x1b0)});}let X=class extends _0x34af2c{constructor(_0x11adab,_0x59aa32){const _0x429b61=_0x2fef7c;super(),this[_0x429b61(0x21a)]=_0x11adab,this[_0x429b61(0x227)]=_0x59aa32,this['_mountLiveShare']();}[_0x2fef7c(0x1ec)](){const _0x3239d6=_0x2fef7c;this[_0x3239d6(0x1eb)](this['_uiPartsService'][_0x3239d6(0x20b)](_0x1794fc['HEADER_MENU'],()=>_0x1516ea(J,this[_0x3239d6(0x21a)])));}};X=W([U(0x0,_0x58ba95(_0x1d5427)),U(0x1,_0x10d088)],X);var fe=_0x2fef7c(0x1d3),pe=_0x2fef7c(0x205);const Z={};let Q=class extends _0x34af2c{constructor(_0x10e21){const _0x3c2bfa=_0x2fef7c;super(),this[_0x3c2bfa(0x1bd)]=_0x10e21,this[_0x3c2bfa(0x1e6)]();}[_0x2fef7c(0x1e6)](){[_0x590899['id'],_0x3d0847['id'],_0x1f3228['id']]['forEach'](_0x19271a=>{const _0x25a3a4=_0x5d67;this[_0x25a3a4(0x1eb)](this[_0x25a3a4(0x1bd)][_0x25a3a4(0x233)](_0x19271a));});}};Q=W([U(0x0,_0x58ba95(H))],Q);let $=class extends _0x5703cb{constructor(_0x24d5bd=Z,_0x56c729,_0x4e301d){const _0x2d1eba=_0x2fef7c;super(),this['_config']=_0x24d5bd,this[_0x2d1eba(0x21a)]=_0x56c729,this[_0x2d1eba(0x1fc)]=_0x4e301d;let {..._0x3caf70}=_0x4ef3b5({},Z,this[_0x2d1eba(0x1cd)]);this['_configService']['setConfig']('live-share.config',_0x3caf70);}['onStarting'](){const _0x1f7c56=_0x2fef7c;_0x118c94(this[_0x1f7c56(0x21a)],_0xb5819d([[H],[G],[Q],[X]],this[_0x1f7c56(0x1cd)][_0x1f7c56(0x1e3)])),_0xce53d7(this['_injector'],[[Q]]);}[_0x2fef7c(0x1fb)](){const _0x1ae284=_0x2fef7c;_0xce53d7(this[_0x1ae284(0x21a)],[[X]]);}};V($,_0x2fef7c(0x1d6),_0x484186[_0x2fef7c(0x1b4)]),V($,_0x2fef7c(0x232),_0x2fef7c(0x1f3)),V($,_0x2fef7c(0x1e0),fe),V($,'version',pe),$=W([_0x4cd9e3(_0x425914),U(0x1,_0x58ba95(_0x1d5427)),U(0x2,_0x1d7a2a)],$);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
- function _0x4f8f(){const _0x5d8927=['startPresenting','114lzODbz','get','2187752GtBAlR','30AOZfcI','No\x20active\x20workbook\x20found.','getCurrentUnitOfType','UNIVER_SHEET','symbol','extend','2012ktHnKJ','string','150hNoteb','tryStartPresenting','6554568qXemYU','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','iterator','defineProperty','32026170kuDmDJ','_liveShareController','getUnitId','352496ZsWpYe','getLiveShareCoordinatorSync','8058618jllkMh','221495pfcgHU','call','getLiveShareStatus','startFollowing','object','constructor','toPrimitive','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','stopFollowing','10XSLIqF','getStatus','stopPresenting'];_0x4f8f=function(){return _0x5d8927;};return _0x4f8f();}const _0xe5ece8=_0xfb78;(function(_0x1d622b,_0x489713){const _0x5d0343=_0xfb78,_0x519da6=_0x1d622b();while(!![]){try{const _0x86bbbc=parseInt(_0x5d0343(0xe4))/0x1*(-parseInt(_0x5d0343(0xe2))/0x2)+-parseInt(_0x5d0343(0xdc))/0x3*(parseInt(_0x5d0343(0xee))/0x4)+parseInt(_0x5d0343(0xf1))/0x5*(parseInt(_0x5d0343(0xd9))/0x6)+-parseInt(_0x5d0343(0xdb))/0x7+-parseInt(_0x5d0343(0xe6))/0x8+-parseInt(_0x5d0343(0xf0))/0x9*(parseInt(_0x5d0343(0xd5))/0xa)+parseInt(_0x5d0343(0xeb))/0xb;if(_0x86bbbc===_0x489713)break;else _0x519da6['push'](_0x519da6['shift']());}catch(_0x196315){_0x519da6['push'](_0x519da6['shift']());}}}(_0x4f8f,0xa95f8));import{LiveShareController as _0x9b52ec,LiveShareStatus as _0x16f243}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x3109cc,UniverInstanceType as _0x44c09a}from'@univerjs/core';import{FEnum as _0x31875d,FUniver as _0x125cd6}from'@univerjs/core/facade';function o(_0x425763){'@babel/helpers - typeof';const _0x21d674=_0xfb78;return o=typeof Symbol==_0x21d674(0xd3)&&typeof Symbol[_0x21d674(0xe9)]==_0x21d674(0xe0)?function(_0x5886a0){return typeof _0x5886a0;}:function(_0x39db0d){const _0x147edb=_0x21d674;return _0x39db0d&&typeof Symbol==_0x147edb(0xd3)&&_0x39db0d[_0x147edb(0xd0)]===Symbol&&_0x39db0d!==Symbol['prototype']?_0x147edb(0xe0):typeof _0x39db0d;},o(_0x425763);}function s(_0x2a0f34,_0x41206e){const _0x248cd5=_0xfb78;if(o(_0x2a0f34)!=_0x248cd5(0xcf)||!_0x2a0f34)return _0x2a0f34;var _0x5c6d8a=_0x2a0f34[Symbol[_0x248cd5(0xd1)]];if(_0x5c6d8a!==void 0x0){var _0x410b61=_0x5c6d8a[_0x248cd5(0xf2)](_0x2a0f34,_0x41206e||'default');if(o(_0x410b61)!=_0x248cd5(0xcf))return _0x410b61;throw TypeError(_0x248cd5(0xd2));}return(_0x41206e===_0x248cd5(0xe3)?String:Number)(_0x2a0f34);}function c(_0x546bc5){const _0x46f6a4=_0xfb78;var _0x200c95=s(_0x546bc5,_0x46f6a4(0xe3));return o(_0x200c95)=='symbol'?_0x200c95:_0x200c95+'';}function l(_0x34d1e3,_0x9ec152,_0x2a2ebd){const _0x5d76b0=_0xfb78;return(_0x9ec152=c(_0x9ec152))in _0x34d1e3?Object[_0x5d76b0(0xea)](_0x34d1e3,_0x9ec152,{'value':_0x2a2ebd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x34d1e3[_0x9ec152]=_0x2a2ebd,_0x34d1e3;}var u=class extends _0x125cd6{constructor(..._0x4f5e0d){const _0x1d889b=_0xfb78;super(..._0x4f5e0d),l(this,_0x1d889b(0xec),void 0x0);}['_initialize'](_0x584002){const _0x2492ed=_0xfb78;this[_0x2492ed(0xec)]=_0x584002[_0x2492ed(0xda)](_0x9b52ec);}[_0xe5ece8(0xcd)](){const _0x5798ea=_0xe5ece8;var _0x31686e;let _0x38ea45=this[_0x5798ea(0xe7)][_0x5798ea(0xda)](_0x3109cc)['getCurrentUnitOfType'](_0x44c09a[_0x5798ea(0xdf)]);if(!_0x38ea45)throw Error(_0x5798ea(0xdd));let _0x531a4d=_0x38ea45[_0x5798ea(0xed)](),_0x1a583f=this[_0x5798ea(0xec)][_0x5798ea(0xef)](_0x531a4d);return(_0x31686e=_0x1a583f==null?void 0x0:_0x1a583f[_0x5798ea(0xd6)]())==null?_0x16f243['IDLE']:_0x31686e;}[_0xe5ece8(0xce)](){const _0x25084a=_0xe5ece8;let _0x5db284=this[_0x25084a(0xe7)]['get'](_0x3109cc)['getCurrentUnitOfType'](_0x44c09a[_0x25084a(0xdf)]);if(!_0x5db284)throw Error(_0x25084a(0xdd));let _0x1e01ae=_0x5db284[_0x25084a(0xed)](),_0x11eaab=this['_liveShareController'][_0x25084a(0xef)](_0x1e01ae);if(!_0x11eaab)throw Error(_0x25084a(0xe8));_0x11eaab[_0x25084a(0xce)]();}[_0xe5ece8(0xd4)](){const _0x4328ff=_0xe5ece8;let _0x43021a=this[_0x4328ff(0xe7)][_0x4328ff(0xda)](_0x3109cc)[_0x4328ff(0xde)](_0x44c09a[_0x4328ff(0xdf)]);if(!_0x43021a)throw Error(_0x4328ff(0xdd));let _0x18d5fe=_0x43021a[_0x4328ff(0xed)](),_0x222282=this[_0x4328ff(0xec)]['getLiveShareCoordinatorSync'](_0x18d5fe);if(!_0x222282)throw Error(_0x4328ff(0xe8));_0x222282['stopFollowing']();}[_0xe5ece8(0xd8)](){const _0x26a820=_0xe5ece8;let _0x83c3a5=this[_0x26a820(0xe7)]['get'](_0x3109cc)[_0x26a820(0xde)](_0x44c09a['UNIVER_SHEET']);if(!_0x83c3a5)throw Error('No\x20active\x20workbook\x20found.');let _0x97e1b1=_0x83c3a5[_0x26a820(0xed)](),_0x5eba6f=this[_0x26a820(0xec)]['getLiveShareCoordinatorSync'](_0x97e1b1);if(!_0x5eba6f)throw Error(_0x26a820(0xe8));_0x5eba6f[_0x26a820(0xe5)]();}[_0xe5ece8(0xd7)](){const _0x56973d=_0xe5ece8;let _0x49dd5f=this[_0x56973d(0xe7)][_0x56973d(0xda)](_0x3109cc)[_0x56973d(0xde)](_0x44c09a[_0x56973d(0xdf)]);if(!_0x49dd5f)throw Error(_0x56973d(0xdd));let _0x59c903=_0x49dd5f[_0x56973d(0xed)](),_0x9c1691=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x59c903);if(!_0x9c1691)throw Error(_0x56973d(0xe8));_0x9c1691['stopPresenting']();}};_0x125cd6[_0xe5ece8(0xe1)](u);var d=class extends _0x31875d{get['LiveShareStatusEnum'](){return _0x16f243;}};_0x31875d[_0xe5ece8(0xe1)](d);function _0xfb78(_0xfcfc91,_0x35bdcb){_0xfcfc91=_0xfcfc91-0xcd;const _0x4f8f68=_0x4f8f();let _0xfb7887=_0x4f8f68[_0xfcfc91];return _0xfb7887;}export{};
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 _0x2fef7c=_0x5d67;(function(_0x289af8,_0x57bbe8){const _0x138244=_0x5d67,_0x47e91a=_0x289af8();while(!![]){try{const _0x217bd0=-parseInt(_0x138244(0x1c8))/0x1+-parseInt(_0x138244(0x1f2))/0x2+parseInt(_0x138244(0x1ae))/0x3+parseInt(_0x138244(0x203))/0x4+-parseInt(_0x138244(0x1e9))/0x5*(-parseInt(_0x138244(0x221))/0x6)+-parseInt(_0x138244(0x1de))/0x7*(parseInt(_0x138244(0x216))/0x8)+parseInt(_0x138244(0x21c))/0x9*(parseInt(_0x138244(0x214))/0xa);if(_0x217bd0===_0x57bbe8)break;else _0x47e91a['push'](_0x47e91a['shift']());}catch(_0x1b6eda){_0x47e91a['push'](_0x47e91a['shift']());}}}(_0x1586,0x97ebf));import{CollaborationEvent as _0x478db0,parseProtocolChangeset as _0xcd04f0}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x512147,SessionStatus as _0x498991,UniverCollaborationClientPlugin as _0x425914}from'@univerjs-pro/collaboration-client';import{CommandType as _0x1c342c,DependentOn as _0x4cd9e3,Disposable as _0x34af2c,DisposableCollection as _0x4c4ac3,ICommandService as _0x45569a,IConfigService as _0x1d7a2a,IUniverInstanceService as _0x37e2f7,Inject as _0x58ba95,Injector as _0x1d5427,Plugin as _0x5703cb,RxDisposable as _0x37cd84,UniverInstanceType as _0x484186,merge as _0x4ef3b5,mergeOverrideWithDependencies as _0xb5819d,registerDependencies as _0x118c94,toDisposable as _0x11276b,touchDependencies as _0xce53d7}from'@univerjs/core';function _0x1586(){const _0x2e8a65=['next','event$','getLiveShareCoordinator','startFollowing','@univerjs-pro/live-share','_startPresenting','_status$','type','LIVESHARE_OPERATION','unit','_handleTerminate','status$','FOLLOWING','IDLE','idle','53382iWMhlk','send','packageName','dispose','onCommandExecuted','override','univer-mb-3\x20univer-w-full\x20univer-text-sm','tryStartPresenting','_init','_beIdle','function','7130SbuLvQ','_startFollowing','disposeWithMe','_mountLiveShare','SAME_OPERATION_SHARE_INTERVAL','set','_commandService','stopPresenting','parse','493428eOwyFu','UNIVER_LIVE_SHARE_PLUGIN','call','then','params','_stopPresenting','requireSession','dispose$','Stop\x20presenting','onRendered','_configService','forEach','Start\x20following','toPrimitive','iterator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','not-following','3008852cAOPDK','_collabSessionService','1.0.0-alpha.0','map','data','stopFollowing','sessionStatus$','LIVESHARE_FETCH_OPERATIONS','registerComponent','length','LIVESHARE_TERMINATE','_startLiveShareCoordinator','_univerInstanceService','createInstance','_handleOperation','_reporters','_handleNewHost','570wWuYoL','LIVESHARE_NEW_HOST','1168hBveuz','shouldShareOperation','unitId','getLiveShareCoordinatorSync','_injector','_presenter','240201mXjrLH','executeCommand','pipe','_status','getMemberID','1044zxIGqW','presenting','add','You\x27re\x20following\x20the\x20presenter','div','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_uiPartsService','get','_fetchOperations','mutations','getUnitId','getConfig','OPERATION','offline','current','getValue','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','pluginName','registerSharedOperation','unsubscribe','memberID','_commandDisposable','has','registerInitialStateReporter','Present\x20this\x20document','_unitID','button','NOT_FOLLOWING','UNIVER_SHEET','NEW_CHANGESETS','You\x27re\x20not\x20following\x20the\x20presenter','627915IhdPcZ','_handleNewChangeSets','You\x27are\x20offline.','getTypeOfUnitDisposed$','OFFLINE','complete','UNIVER_UNKNOWN','_entities','_handleOffline','_collabSession','find','clear','_sharedOperations','sheet','prototype','_liveShareService','LIVESHARE_REQUEST_HOST','string','defineProperty','init','PRESENTING','stringify','following','symbol','object','delete','748534YZCHhW','asObservable','_stopFollowing','default','subscribe','_config','presenter'];_0x1586=function(){return _0x2e8a65;};return _0x1586();}import{InsertSheetMutation as _0x500e77,SetWorksheetActiveOperation as _0x1f3228}from'@univerjs/sheets';import{BehaviorSubject as _0x1774ef,Subject as _0xe151d8}from'rxjs';import{takeUntil as _0x7a005d,throttleTime as _0x5d90f3}from'rxjs/operators';import{BuiltInUIPart as _0x1794fc,IUIPartsService as _0x10d088,connectInjector as _0x1516ea,useDependency as _0x4a7844,useObservable as _0x516d61}from'@univerjs/ui';import{Button as _0x55f00c,Dropdown as _0x53bcb1,clsx as _0x56d0d4}from'@univerjs/design';import{LiveShareIcon as _0x509d2b}from'@univerjs/icons';import{useEffect as _0x1fb6ee,useRef as _0x5219a6,useState as _0x93df6b}from'react';import{Fragment as _0x4ecb73,jsx as _0x15f794,jsxs as _0x3b419a}from'react/jsx-runtime';import{SetScrollOperation as _0x3d0847,SetZoomRatioOperation as _0x590899}from'@univerjs/sheets-ui';function R(_0x44a525){'@babel/helpers - typeof';const _0x12392e=_0x5d67;return R=typeof Symbol==_0x12392e(0x1e8)&&typeof Symbol[_0x12392e(0x200)]==_0x12392e(0x1c5)?function(_0xda6c25){return typeof _0xda6c25;}:function(_0x145ab0){const _0x187458=_0x12392e;return _0x145ab0&&typeof Symbol=='function'&&_0x145ab0['constructor']===Symbol&&_0x145ab0!==Symbol[_0x187458(0x1bc)]?'symbol':typeof _0x145ab0;},R(_0x44a525);}function z(_0x3b2acc,_0x468db6){const _0x1c7537=_0x5d67;if(R(_0x3b2acc)!=_0x1c7537(0x1c6)||!_0x3b2acc)return _0x3b2acc;var _0x4c5321=_0x3b2acc[Symbol[_0x1c7537(0x1ff)]];if(_0x4c5321!==void 0x0){var _0x439969=_0x4c5321[_0x1c7537(0x1f4)](_0x3b2acc,_0x468db6||_0x1c7537(0x1cb));if(R(_0x439969)!=_0x1c7537(0x1c6))return _0x439969;throw TypeError(_0x1c7537(0x226));}return(_0x468db6===_0x1c7537(0x1bf)?String:Number)(_0x3b2acc);}function B(_0x2566b0){const _0xe9f83=_0x5d67;var _0x1485dd=z(_0x2566b0,_0xe9f83(0x1bf));return R(_0x1485dd)==_0xe9f83(0x1c5)?_0x1485dd:_0x1485dd+'';}function V(_0x52271f,_0x2ed73e,_0x39d149){const _0x2dcecd=_0x5d67;return(_0x2ed73e=B(_0x2ed73e))in _0x52271f?Object[_0x2dcecd(0x1c0)](_0x52271f,_0x2ed73e,{'value':_0x39d149,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52271f[_0x2ed73e]=_0x39d149,_0x52271f;}var H=class extends _0x34af2c{constructor(..._0x55b199){const _0x2a9ef3=_0x5d67;super(..._0x55b199),V(this,_0x2a9ef3(0x1ba),new Set()),V(this,_0x2a9ef3(0x212),new Set());}[_0x2fef7c(0x233)](_0x5f3b57){const _0x38388a=_0x2fef7c;return this[_0x38388a(0x1ba)]['add'](_0x5f3b57),_0x11276b(()=>this['_sharedOperations'][_0x38388a(0x1c7)](_0x5f3b57));}[_0x2fef7c(0x1a6)](_0x5506b9){const _0x100815=_0x2fef7c;return this[_0x100815(0x212)][_0x100815(0x223)](_0x5506b9),_0x11276b(()=>this[_0x100815(0x212)]['delete'](_0x5506b9));}[_0x2fef7c(0x217)](_0x4c009e){const _0x42182d=_0x2fef7c;return this[_0x42182d(0x1ba)][_0x42182d(0x1a5)](_0x4c009e);}['getInitialStates'](_0x22d416){const _0x4aa8fa=_0x2fef7c;return Array['from'](this[_0x4aa8fa(0x212)])[_0x4aa8fa(0x206)](_0x3dd8ca=>_0x3dd8ca(_0x22d416));}};function U(_0x34267e,_0x5a8c8e){return function(_0x5e9d6c,_0x373230){_0x5a8c8e(_0x5e9d6c,_0x373230,_0x34267e);};}function W(_0x422a09,_0x393b5c,_0x515bcb,_0x132d72){const _0x1dfc6a=_0x2fef7c;var _0xe24a46=arguments['length'],_0x2ed574=_0xe24a46<0x3?_0x393b5c:_0x132d72===null?_0x132d72=Object['getOwnPropertyDescriptor'](_0x393b5c,_0x515bcb):_0x132d72,_0x3d44f9;if(typeof Reflect==_0x1dfc6a(0x1c6)&&typeof Reflect['decorate']==_0x1dfc6a(0x1e8))_0x2ed574=Reflect['decorate'](_0x422a09,_0x393b5c,_0x515bcb,_0x132d72);else{for(var _0x27aa0d=_0x422a09[_0x1dfc6a(0x20c)]-0x1;_0x27aa0d>=0x0;_0x27aa0d--)(_0x3d44f9=_0x422a09[_0x27aa0d])&&(_0x2ed574=(_0xe24a46<0x3?_0x3d44f9(_0x2ed574):_0xe24a46>0x3?_0x3d44f9(_0x393b5c,_0x515bcb,_0x2ed574):_0x3d44f9(_0x393b5c,_0x515bcb))||_0x2ed574);}return _0xe24a46>0x3&&_0x2ed574&&Object[_0x1dfc6a(0x1c0)](_0x393b5c,_0x515bcb,_0x2ed574),_0x2ed574;}let G=class extends _0x37cd84{constructor(_0xf901d9,_0x425654,_0x399db5){const _0x25f027=_0x2fef7c;super(),this[_0x25f027(0x20f)]=_0xf901d9,this[_0x25f027(0x21a)]=_0x425654,this[_0x25f027(0x204)]=_0x399db5,V(this,_0x25f027(0x1b5),new Map()),this[_0x25f027(0x1e6)]();}async[_0x2fef7c(0x1d1)](_0x30745d){const _0x218db5=_0x2fef7c;return this['_entities']['has'](_0x30745d)||await this[_0x218db5(0x20e)](_0x30745d),this[_0x218db5(0x1b5)][_0x218db5(0x228)](_0x30745d);}[_0x2fef7c(0x219)](_0x42f9ee){const _0x42a262=_0x2fef7c;var _0x54a086;return(_0x54a086=this[_0x42a262(0x1b5)]['get'](_0x42f9ee))==null?null:_0x54a086;}[_0x2fef7c(0x1e6)](){const _0x33cdbd=_0x2fef7c;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x484186[_0x33cdbd(0x1ab)])[_0x33cdbd(0x21e)](_0x7a005d(this[_0x33cdbd(0x1f9)]))['subscribe'](async _0x15b86d=>{const _0x23d30f=_0x33cdbd;let _0x46332b=_0x15b86d[_0x23d30f(0x1d8)][_0x23d30f(0x22b)]();this[_0x23d30f(0x1b5)]['has'](_0x46332b)||this[_0x23d30f(0x20e)](_0x46332b);}),this[_0x33cdbd(0x20f)][_0x33cdbd(0x1b1)](_0x484186[_0x33cdbd(0x1ab)])[_0x33cdbd(0x21e)](_0x7a005d(this[_0x33cdbd(0x1f9)]))[_0x33cdbd(0x1cc)](_0x5ced9e=>{const _0x49e621=_0x33cdbd;let _0x5e7cf9=_0x5ced9e[_0x49e621(0x22b)](),_0x3cd4ae=this[_0x49e621(0x1b5)][_0x49e621(0x228)](_0x5e7cf9);_0x3cd4ae==null||_0x3cd4ae[_0x49e621(0x1e1)]();});}async[_0x2fef7c(0x20e)](_0x29dce1){const _0x1f7549=_0x2fef7c;let _0x2d66d8=await this[_0x1f7549(0x204)][_0x1f7549(0x1f8)](_0x29dce1),_0x416d10=this['_injector'][_0x1f7549(0x210)](q,_0x29dce1,_0x2d66d8);return _0x416d10[_0x1f7549(0x1c1)](),this[_0x1f7549(0x1b5)][_0x1f7549(0x1ee)](_0x29dce1,_0x416d10),_0x416d10;}};G=W([U(0x0,_0x37e2f7),U(0x1,_0x58ba95(_0x1d5427)),U(0x2,_0x58ba95(_0x512147))],G);let K=function(_0x2506ac){const _0x4ddf04=_0x2fef7c;return _0x2506ac['OFFLINE']='offline',_0x2506ac[_0x4ddf04(0x1dc)]='idle',_0x2506ac[_0x4ddf04(0x1db)]=_0x4ddf04(0x1c4),_0x2506ac[_0x4ddf04(0x1aa)]='not-following',_0x2506ac[_0x4ddf04(0x1c2)]=_0x4ddf04(0x222),_0x2506ac;}({}),q=class extends _0x37cd84{get[_0x2fef7c(0x21f)](){const _0x5c6083=_0x2fef7c;return this[_0x5c6083(0x1d5)][_0x5c6083(0x230)]();}constructor(_0x33ab99,_0x5e0b9f,_0x38876b,_0x45a9f1,_0x478906){const _0x5f4837=_0x2fef7c;super(),this[_0x5f4837(0x1a8)]=_0x33ab99,this[_0x5f4837(0x1b7)]=_0x5e0b9f,this[_0x5f4837(0x1fc)]=_0x38876b,this[_0x5f4837(0x1bd)]=_0x45a9f1,this[_0x5f4837(0x1ef)]=_0x478906,V(this,_0x5f4837(0x1d5),new _0x1774ef(_0x5f4837(0x1dd))),V(this,_0x5f4837(0x1da),this[_0x5f4837(0x1d5)][_0x5f4837(0x1c9)]()),V(this,_0x5f4837(0x1e6),!0x1),V(this,_0x5f4837(0x1a4),null),V(this,_0x5f4837(0x21b),null);}[_0x2fef7c(0x1e1)](){const _0x3ef23e=_0x2fef7c;var _0x5dcb9e;(_0x5dcb9e=this[_0x3ef23e(0x1a4)])==null||_0x5dcb9e[_0x3ef23e(0x1e1)](),this['_status$'][_0x3ef23e(0x1cf)]('idle'),this[_0x3ef23e(0x1d5)][_0x3ef23e(0x1b3)]();}['getStatus'](){const _0x2e6163=_0x2fef7c;return this[_0x2e6163(0x21f)];}['init'](){const _0x48dd2a=_0x2fef7c;this['_init']||(this[_0x48dd2a(0x1e6)]=!0x0,this['_collabSession'][_0x48dd2a(0x209)][_0x48dd2a(0x21e)](_0x7a005d(this['dispose$']))[_0x48dd2a(0x1cc)](_0x145471=>{const _0xaad294=_0x48dd2a;switch(_0x145471){case _0x498991[_0xaad294(0x1b2)]:this[_0xaad294(0x1b6)]();break;case _0x498991['ONLINE']:this['_handleOnline']();break;default:}}),this[_0x48dd2a(0x1b7)][_0x48dd2a(0x1d0)]['pipe'](_0x7a005d(this['dispose$']))[_0x48dd2a(0x1cc)](_0x478d7c=>{const _0x2d5d1a=_0x48dd2a;let {eventID:_0x45249a}=_0x478d7c;switch(_0x45249a){case _0x478db0[_0x2d5d1a(0x215)]:this['_handleNewHost'](_0x478d7c);break;case _0x478db0[_0x2d5d1a(0x1d7)]:this['_handleOperation'](_0x478d7c);break;case _0x478db0[_0x2d5d1a(0x20d)]:this[_0x2d5d1a(0x1d9)]();break;case _0x478db0[_0x2d5d1a(0x1ac)]:this[_0x2d5d1a(0x1af)](_0x478d7c);break;default:}}));}[_0x2fef7c(0x1e5)](){const _0x1bb7b9=_0x2fef7c;this[_0x1bb7b9(0x1b7)][_0x1bb7b9(0x1df)]({'eventID':_0x478db0[_0x1bb7b9(0x1be)],'data':{'unitID':this[_0x1bb7b9(0x1a8)],'userID':this[_0x1bb7b9(0x1b7)]['getMemberID']()}},this[_0x1bb7b9(0x1a8)]);}[_0x2fef7c(0x1f0)](){const _0x1445c6=_0x2fef7c;this[_0x1445c6(0x21f)]==='presenting'&&(this[_0x1445c6(0x1d5)][_0x1445c6(0x1cf)]('idle'),this[_0x1445c6(0x1b7)][_0x1445c6(0x1df)]({'eventID':_0x478db0['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1445c6(0x1a8)]}},this[_0x1445c6(0x1a8)]));}[_0x2fef7c(0x1d2)](){const _0x18cf49=_0x2fef7c;this[_0x18cf49(0x21f)]==='not-following'&&(this[_0x18cf49(0x1d5)][_0x18cf49(0x1cf)](_0x18cf49(0x1c4)),this[_0x18cf49(0x1ea)]());}['stopFollowing'](){const _0x3696ba=_0x2fef7c;this[_0x3696ba(0x21f)]===_0x3696ba(0x1c4)&&this['_stopFollowing']();}[_0x2fef7c(0x213)](_0x424c6c){const _0x38acf8=_0x2fef7c;let {presenter:_0x5bfca6}=_0x424c6c['data'],_0xec1494=this[_0x38acf8(0x1b7)][_0x38acf8(0x220)]();this[_0x38acf8(0x21b)]=_0x5bfca6,_0x5bfca6===_0xec1494?(this[_0x38acf8(0x1ca)](),this[_0x38acf8(0x1d4)]()):this['_status']!==_0x38acf8(0x202)&&(this[_0x38acf8(0x1f7)](),this[_0x38acf8(0x1ea)]());}[_0x2fef7c(0x229)](){const _0x287c75=_0x2fef7c;let _0x1e7c60={'eventID':_0x478db0[_0x287c75(0x20a)]};this[_0x287c75(0x1b7)]['send'](_0x1e7c60,this['_unitID']);}['_handleTerminate'](){const _0x2e9f1e=_0x2fef7c;this[_0x2e9f1e(0x21b)]=null,this['_status']!==_0x2e9f1e(0x222)&&this[_0x2e9f1e(0x1e7)]();}['_handleNewChangeSets'](_0xf2a402){const _0x457761=_0x2fef7c;if(this[_0x457761(0x21f)]===_0x457761(0x1c4)&&this[_0x457761(0x21b)]===_0xf2a402[_0x457761(0x207)][_0x457761(0x1a3)]){let _0x226e38=_0xcd04f0(_0xf2a402[_0x457761(0x207)])[_0x457761(0x22a)]['reverse']()[_0x457761(0x1b8)](_0x29e944=>_0x29e944['id']===_0x500e77['id']);if(_0x226e38){let _0x2775bf=_0x226e38[_0x457761(0x1f6)][_0x457761(0x218)],_0x2ea326=_0x226e38[_0x457761(0x1f6)][_0x457761(0x1bb)]['id'];setTimeout(()=>{const _0x3bfb05=_0x457761;this['_commandService'][_0x3bfb05(0x21d)](_0x1f3228['id'],{'unitId':_0x2775bf,'subUnitId':_0x2ea326},{'fromCollab':!0x0});});}}}[_0x2fef7c(0x1d4)](){const _0x2fbd88=_0x2fef7c;var _0x154ce2;(_0x154ce2=this['_commandDisposable'])==null||_0x154ce2['dispose'](),this[_0x2fbd88(0x1d5)][_0x2fbd88(0x1cf)](_0x2fbd88(0x222));let _0x448227=new Map(),_0x48e064=this[_0x2fbd88(0x1a4)]=new _0x4c4ac3();_0x48e064[_0x2fbd88(0x223)](_0x11276b(()=>{const _0x2b79e5=_0x2fbd88;_0x448227[_0x2b79e5(0x1fd)](({subject:_0x4fd9bc,subscription:_0x129172})=>{const _0x36c609=_0x2b79e5;_0x129172[_0x36c609(0x234)](),_0x4fd9bc['complete']();}),_0x448227[_0x2b79e5(0x1b9)]();})),_0x48e064[_0x2fbd88(0x223)](this[_0x2fbd88(0x1ef)][_0x2fbd88(0x1e2)](_0x467536=>{const _0x3c1dfb=_0x2fbd88;if(_0x467536[_0x3c1dfb(0x1d6)]!==_0x1c342c[_0x3c1dfb(0x22d)]||!this[_0x3c1dfb(0x1bd)][_0x3c1dfb(0x217)](_0x467536['id']))return;let {id:_0x6f4c6c}=_0x467536,_0x2571a6;if(_0x448227[_0x3c1dfb(0x1a5)](_0x6f4c6c))_0x2571a6=_0x448227[_0x3c1dfb(0x228)](_0x6f4c6c)['subject'];else{var _0xb14794;_0x2571a6=new _0xe151d8();let _0x2540d8=_0x2571a6[_0x3c1dfb(0x21e)](_0x5d90f3((_0xb14794=this[_0x3c1dfb(0x1fc)][_0x3c1dfb(0x22c)](_0x3c1dfb(0x1ed)))==null?0xc8:_0xb14794,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3c1dfb(0x1cc)](_0x285ca3=>{const _0x441dc1=_0x3c1dfb;this[_0x441dc1(0x1b7)][_0x441dc1(0x1df)]({'eventID':_0x478db0['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x441dc1(0x1a8)],'operations':{[_0x285ca3['id']]:{'id':_0x285ca3['id'],'params':JSON[_0x441dc1(0x1c3)](_0x285ca3[_0x441dc1(0x1f6)])}}}},this[_0x441dc1(0x1a8)]);});_0x448227[_0x3c1dfb(0x1ee)](_0x6f4c6c,{'subject':_0x2571a6,'subscription':_0x2540d8});}_0x2571a6['next'](_0x467536);})),this[_0x2fbd88(0x1bd)]['getInitialStates'](this[_0x2fbd88(0x1a8)])[_0x2fbd88(0x1fd)](_0x5e7ac3=>this[_0x2fbd88(0x1b7)][_0x2fbd88(0x1df)]({'eventID':_0x478db0[_0x2fbd88(0x1d7)],'data':{'unitID':this['_unitID'],'operations':{[_0x5e7ac3['id']]:{'id':_0x5e7ac3['id'],'params':JSON[_0x2fbd88(0x1c3)](_0x5e7ac3[_0x2fbd88(0x1f6)])}}}},this['_unitID']));}[_0x2fef7c(0x1f7)](){const _0xd9979f=_0x2fef7c;var _0x272f2f;this[_0xd9979f(0x1d5)][_0xd9979f(0x1cf)](_0xd9979f(0x1dd)),(_0x272f2f=this[_0xd9979f(0x1a4)])==null||_0x272f2f[_0xd9979f(0x1e1)](),this[_0xd9979f(0x1a4)]=null;}[_0x2fef7c(0x1ea)](){const _0x206ea6=_0x2fef7c;var _0x1f2bc5;(_0x1f2bc5=this[_0x206ea6(0x1a4)])==null||_0x1f2bc5[_0x206ea6(0x1e1)](),this[_0x206ea6(0x1d5)][_0x206ea6(0x1cf)](_0x206ea6(0x1c4));}[_0x2fef7c(0x1e7)](){const _0x4345c7=_0x2fef7c;var _0x4569b2;this[_0x4345c7(0x1d5)][_0x4345c7(0x1cf)]('idle'),(_0x4569b2=this[_0x4345c7(0x1a4)])==null||_0x4569b2[_0x4345c7(0x1e1)](),this[_0x4345c7(0x1a4)]=null;}[_0x2fef7c(0x1ca)](){const _0x55ba17=_0x2fef7c;var _0x4a54e0;this['_status$'][_0x55ba17(0x1cf)](_0x55ba17(0x202)),(_0x4a54e0=this[_0x55ba17(0x1a4)])==null||_0x4a54e0[_0x55ba17(0x1e1)]();}[_0x2fef7c(0x211)](_0x18cc30){const _0x385f65=_0x2fef7c;if(['presenting','not-following',_0x385f65(0x22e)]['includes'](this[_0x385f65(0x21f)])||!_0x18cc30[_0x385f65(0x207)][_0x385f65(0x1ce)]||_0x18cc30[_0x385f65(0x207)]['presenter']===this[_0x385f65(0x1b7)]['getMemberID']())return;this['_status']===_0x385f65(0x1dd)&&this[_0x385f65(0x1ea)]();let _0x56c30a=_0x18cc30[_0x385f65(0x207)]['operations'];Object['values'](_0x56c30a)[_0x385f65(0x1fd)](_0x197bd7=>{const _0x292971=_0x385f65;this[_0x292971(0x1ef)][_0x292971(0x21d)](_0x197bd7['id'],_0x197bd7[_0x292971(0x1f6)]?JSON[_0x292971(0x1f1)](_0x197bd7[_0x292971(0x1f6)]):null,{'fromCollab':!0x0});});}[_0x2fef7c(0x1b6)](){const _0x165287=_0x2fef7c;var _0x3710d6;this['_status$'][_0x165287(0x1cf)](_0x165287(0x22e)),(_0x3710d6=this[_0x165287(0x1a4)])==null||_0x3710d6['dispose']();}['_handleOnline'](){const _0x4b3547=_0x2fef7c;this['_status$'][_0x4b3547(0x1cf)]('idle'),this['_fetchOperations']();}};q=W([U(0x2,_0x1d7a2a),U(0x3,_0x58ba95(H)),U(0x4,_0x45569a)],q);function J(){const _0x443167=_0x2fef7c;let _0x53933b=_0x4a7844(G),_0x3f214a=_0x4a7844(_0x37e2f7),_0x35e03a=_0x516d61(()=>_0x3f214a['getCurrentTypeOfUnit$'](_0x484186[_0x443167(0x1ab)]),void 0x0,!0x1,[]),[_0x2d79bd,_0x2383bf]=_0x93df6b(null),[_0x17c01d,_0xf6a381]=_0x93df6b(_0x443167(0x1dd)),_0x28fe60=_0x5219a6(null);return _0x1fb6ee(()=>(_0x35e03a&&_0x53933b[_0x443167(0x1d1)](_0x35e03a['getUnitId']())[_0x443167(0x1f5)](_0x3c7d1d=>{const _0x3d0877=_0x443167;_0x2383bf(_0x3c7d1d),_0x28fe60[_0x3d0877(0x22f)]=_0x3c7d1d[_0x3d0877(0x1da)]['subscribe'](_0x97171b=>{_0xf6a381(_0x97171b);});}),()=>{const _0x28a4b3=_0x443167;var _0xd731a1;(_0xd731a1=_0x28fe60[_0x28a4b3(0x22f)])==null||_0xd731a1[_0x28a4b3(0x234)](),_0x28fe60[_0x28a4b3(0x22f)]=null;}),[_0x35e03a,_0x53933b]),_0x2d79bd?_0x15f794(_0x53bcb1,{'align':'end','disabled':_0x17c01d===_0x443167(0x22e),'className':_0x443167(0x231),'overlay':_0x15f794(se,{'status':_0x17c01d,'coordinator':_0x2d79bd}),'children':_0x15f794(_0x443167(0x1a9),{'className':_0x56d0d4(_0x443167(0x201),{'univer-cursor-not-allowed':_0x17c01d===_0x443167(0x22e),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17c01d!==_0x443167(0x22e)}),'type':_0x443167(0x1a9),'children':_0x15f794(_0x509d2b,{})})}):null;}function se(_0x55c102){const _0x48c359=_0x2fef7c;let {status:_0x51f5b8,coordinator:_0x387aa5}=_0x55c102;switch(_0x51f5b8){case _0x48c359(0x1dd):return _0x15f794(ce,{'coordinator':_0x387aa5});case _0x48c359(0x1c4):return _0x15f794(le,{'coordinator':_0x387aa5});case _0x48c359(0x202):return _0x15f794(ue,{'coordinator':_0x387aa5});case _0x48c359(0x22e):return _0x15f794(de,{});case _0x48c359(0x222):return _0x15f794(Y,{'coordinator':_0x387aa5});default:return null;}}function ce(_0x92d006){const _0x2f721c=_0x2fef7c;let {coordinator:_0x3bb0d9}=_0x92d006;return _0x3b419a(_0x4ecb73,{'children':[_0x15f794(_0x2f721c(0x225),{'className':_0x2f721c(0x1e4),'children':_0x2f721c(0x1a7)}),_0x15f794(_0x55f00c,{'onClick':()=>_0x3bb0d9[_0x2f721c(0x1e5)](),'children':'Start'})]});}function le(_0x3a9022){const _0x4dfb6a=_0x2fef7c;let {coordinator:_0x12bd06}=_0x3a9022;return _0x3b419a(_0x4ecb73,{'children':[_0x15f794('div',{'className':_0x4dfb6a(0x1e4),'children':_0x4dfb6a(0x224)}),_0x15f794(_0x55f00c,{'onClick':()=>_0x12bd06[_0x4dfb6a(0x208)](),'children':'Stop\x20following'})]});}function ue(_0x6e2716){const _0x465cf3=_0x2fef7c;let {coordinator:_0x322520}=_0x6e2716;return _0x3b419a(_0x4ecb73,{'children':[_0x15f794(_0x465cf3(0x225),{'className':_0x465cf3(0x1e4),'children':_0x465cf3(0x1ad)}),_0x15f794(_0x55f00c,{'variant':'text','onClick':()=>_0x322520[_0x465cf3(0x1d2)](),'children':_0x465cf3(0x1fe)})]});}function _0x5d67(_0x387637,_0x3cede3){_0x387637=_0x387637-0x1a3;const _0x15864d=_0x1586();let _0x5d675a=_0x15864d[_0x387637];return _0x5d675a;}function Y(_0x1c5a53){const _0x30097b=_0x2fef7c;let {coordinator:_0x130552}=_0x1c5a53;return _0x3b419a(_0x4ecb73,{'children':[_0x15f794('div',{'className':_0x30097b(0x1e4),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x15f794(_0x55f00c,{'variant':'default','onClick':()=>_0x130552[_0x30097b(0x1f0)](),'children':_0x30097b(0x1fa)})]});}function de(){const _0x159885=_0x2fef7c;return _0x15f794(_0x4ecb73,{'children':_0x159885(0x1b0)});}let X=class extends _0x34af2c{constructor(_0x11adab,_0x59aa32){const _0x429b61=_0x2fef7c;super(),this[_0x429b61(0x21a)]=_0x11adab,this[_0x429b61(0x227)]=_0x59aa32,this['_mountLiveShare']();}[_0x2fef7c(0x1ec)](){const _0x3239d6=_0x2fef7c;this[_0x3239d6(0x1eb)](this['_uiPartsService'][_0x3239d6(0x20b)](_0x1794fc['HEADER_MENU'],()=>_0x1516ea(J,this[_0x3239d6(0x21a)])));}};X=W([U(0x0,_0x58ba95(_0x1d5427)),U(0x1,_0x10d088)],X);var fe=_0x2fef7c(0x1d3),pe=_0x2fef7c(0x205);const Z={};let Q=class extends _0x34af2c{constructor(_0x10e21){const _0x3c2bfa=_0x2fef7c;super(),this[_0x3c2bfa(0x1bd)]=_0x10e21,this[_0x3c2bfa(0x1e6)]();}[_0x2fef7c(0x1e6)](){[_0x590899['id'],_0x3d0847['id'],_0x1f3228['id']]['forEach'](_0x19271a=>{const _0x25a3a4=_0x5d67;this[_0x25a3a4(0x1eb)](this[_0x25a3a4(0x1bd)][_0x25a3a4(0x233)](_0x19271a));});}};Q=W([U(0x0,_0x58ba95(H))],Q);let $=class extends _0x5703cb{constructor(_0x24d5bd=Z,_0x56c729,_0x4e301d){const _0x2d1eba=_0x2fef7c;super(),this['_config']=_0x24d5bd,this[_0x2d1eba(0x21a)]=_0x56c729,this[_0x2d1eba(0x1fc)]=_0x4e301d;let {..._0x3caf70}=_0x4ef3b5({},Z,this[_0x2d1eba(0x1cd)]);this['_configService']['setConfig']('live-share.config',_0x3caf70);}['onStarting'](){const _0x1f7c56=_0x2fef7c;_0x118c94(this[_0x1f7c56(0x21a)],_0xb5819d([[H],[G],[Q],[X]],this[_0x1f7c56(0x1cd)][_0x1f7c56(0x1e3)])),_0xce53d7(this['_injector'],[[Q]]);}[_0x2fef7c(0x1fb)](){const _0x1ae284=_0x2fef7c;_0xce53d7(this[_0x1ae284(0x21a)],[[X]]);}};V($,_0x2fef7c(0x1d6),_0x484186[_0x2fef7c(0x1b4)]),V($,_0x2fef7c(0x232),_0x2fef7c(0x1f3)),V($,_0x2fef7c(0x1e0),fe),V($,'version',pe),$=W([_0x4cd9e3(_0x425914),U(0x1,_0x58ba95(_0x1d5427)),U(0x2,_0x1d7a2a)],$);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(_0x3ce13b,_0xcf5590){const _0x4a1a61=_0x594f,_0x308a9d=_0x3ce13b();while(!![]){try{const _0x37b24f=parseInt(_0x4a1a61(0x18c))/0x1+parseInt(_0x4a1a61(0x18d))/0x2*(-parseInt(_0x4a1a61(0x194))/0x3)+-parseInt(_0x4a1a61(0x199))/0x4*(parseInt(_0x4a1a61(0x175))/0x5)+parseInt(_0x4a1a61(0x180))/0x6+-parseInt(_0x4a1a61(0x198))/0x7*(parseInt(_0x4a1a61(0x186))/0x8)+-parseInt(_0x4a1a61(0x193))/0x9+parseInt(_0x4a1a61(0x185))/0xa;if(_0x37b24f===_0xcf5590)break;else _0x308a9d['push'](_0x308a9d['shift']());}catch(_0xfa3139){_0x308a9d['push'](_0x308a9d['shift']());}}}(_0x25ad,0x5cf81),function(_0x3567bc,_0x44f6ab){const _0x1bc606=_0x594f;typeof exports==_0x1bc606(0x192)&&typeof module<'u'?_0x44f6ab(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x1bc606(0x17a)&&define[_0x1bc606(0x17d)]?define(['@univerjs-pro/live-share',_0x1bc606(0x188),_0x1bc606(0x182)],_0x44f6ab):(_0x3567bc=typeof globalThis<'u'?globalThis:_0x3567bc||self,_0x44f6ab(_0x3567bc[_0x1bc606(0x17b)],_0x3567bc['UniverCore'],_0x3567bc[_0x1bc606(0x1a1)]));}(this,function(_0x42aad3,_0xc95617,_0x35a9c9){const _0xa540cc=_0x594f;function _0x1611bc(_0x485c6c){'@babel/helpers - typeof';const _0x2dd821=_0x594f;return _0x1611bc=typeof Symbol==_0x2dd821(0x17a)&&typeof Symbol[_0x2dd821(0x18b)]==_0x2dd821(0x178)?function(_0x418e6a){return typeof _0x418e6a;}:function(_0x458fad){const _0x1e2786=_0x2dd821;return _0x458fad&&typeof Symbol==_0x1e2786(0x17a)&&_0x458fad[_0x1e2786(0x19c)]===Symbol&&_0x458fad!==Symbol[_0x1e2786(0x181)]?'symbol':typeof _0x458fad;},_0x1611bc(_0x485c6c);}function _0x571d76(_0x5153fd,_0x568b08){const _0x5da1b9=_0x594f;if(_0x1611bc(_0x5153fd)!=_0x5da1b9(0x192)||!_0x5153fd)return _0x5153fd;var _0x1a944b=_0x5153fd[Symbol[_0x5da1b9(0x174)]];if(_0x1a944b!==void 0x0){var _0x3a5cec=_0x1a944b[_0x5da1b9(0x19f)](_0x5153fd,_0x568b08||_0x5da1b9(0x18f));if(_0x1611bc(_0x3a5cec)!=_0x5da1b9(0x192))return _0x3a5cec;throw TypeError(_0x5da1b9(0x19e));}return(_0x568b08==='string'?String:Number)(_0x5153fd);}function _0x5caff4(_0x19f701){const _0x3bceab=_0x594f;var _0x406544=_0x571d76(_0x19f701,'string');return _0x1611bc(_0x406544)==_0x3bceab(0x178)?_0x406544:_0x406544+'';}function _0x93d875(_0xa28d36,_0x168576,_0x4230d4){const _0x1e3a2e=_0x594f;return(_0x168576=_0x5caff4(_0x168576))in _0xa28d36?Object[_0x1e3a2e(0x176)](_0xa28d36,_0x168576,{'value':_0x4230d4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xa28d36[_0x168576]=_0x4230d4,_0xa28d36;}var _0x1bb428=class extends _0x35a9c9[_0xa540cc(0x17f)]{constructor(..._0x4b0901){super(..._0x4b0901),_0x93d875(this,'_liveShareController',void 0x0);}[_0xa540cc(0x184)](_0x15d455){const _0x4d4f75=_0xa540cc;this[_0x4d4f75(0x171)]=_0x15d455['get'](_0x42aad3[_0x4d4f75(0x18e)]);}[_0xa540cc(0x195)](){const _0x3f20d1=_0xa540cc;var _0x561e87;let _0x3e3175=this['_injector'][_0x3f20d1(0x189)](_0xc95617[_0x3f20d1(0x19a)])[_0x3f20d1(0x183)](_0xc95617[_0x3f20d1(0x170)][_0x3f20d1(0x18a)]);if(!_0x3e3175)throw Error(_0x3f20d1(0x173));let _0x17255f=_0x3e3175['getUnitId'](),_0x5f0cec=this[_0x3f20d1(0x171)][_0x3f20d1(0x197)](_0x17255f);return(_0x561e87=_0x5f0cec==null?void 0x0:_0x5f0cec[_0x3f20d1(0x19d)]())==null?_0x42aad3[_0x3f20d1(0x196)]['IDLE']:_0x561e87;}[_0xa540cc(0x187)](){const _0x5045b1=_0xa540cc;let _0x5242a1=this['_injector'][_0x5045b1(0x189)](_0xc95617[_0x5045b1(0x19a)])['getCurrentUnitOfType'](_0xc95617[_0x5045b1(0x170)][_0x5045b1(0x18a)]);if(!_0x5242a1)throw Error(_0x5045b1(0x173));let _0x206d43=_0x5242a1['getUnitId'](),_0x161ca5=this[_0x5045b1(0x171)][_0x5045b1(0x197)](_0x206d43);if(!_0x161ca5)throw Error(_0x5045b1(0x191));_0x161ca5['startFollowing']();}['stopFollowing'](){const _0x4ed353=_0xa540cc;let _0x3257e4=this[_0x4ed353(0x179)][_0x4ed353(0x189)](_0xc95617['IUniverInstanceService'])['getCurrentUnitOfType'](_0xc95617['UniverInstanceType']['UNIVER_SHEET']);if(!_0x3257e4)throw Error(_0x4ed353(0x173));let _0x594e88=_0x3257e4[_0x4ed353(0x1a0)](),_0x4eb56b=this[_0x4ed353(0x171)][_0x4ed353(0x197)](_0x594e88);if(!_0x4eb56b)throw Error(_0x4ed353(0x191));_0x4eb56b['stopFollowing']();}[_0xa540cc(0x17e)](){const _0x3e4e56=_0xa540cc;let _0x498c66=this['_injector']['get'](_0xc95617[_0x3e4e56(0x19a)])[_0x3e4e56(0x183)](_0xc95617[_0x3e4e56(0x170)]['UNIVER_SHEET']);if(!_0x498c66)throw Error(_0x3e4e56(0x173));let _0x271b08=_0x498c66[_0x3e4e56(0x1a0)](),_0xeadd16=this[_0x3e4e56(0x171)][_0x3e4e56(0x197)](_0x271b08);if(!_0xeadd16)throw Error(_0x3e4e56(0x191));_0xeadd16[_0x3e4e56(0x177)]();}[_0xa540cc(0x190)](){const _0x35d175=_0xa540cc;let _0x45a52a=this[_0x35d175(0x179)][_0x35d175(0x189)](_0xc95617['IUniverInstanceService'])['getCurrentUnitOfType'](_0xc95617[_0x35d175(0x170)][_0x35d175(0x18a)]);if(!_0x45a52a)throw Error(_0x35d175(0x173));let _0x578b28=_0x45a52a[_0x35d175(0x1a0)](),_0xcb1de1=this[_0x35d175(0x171)]['getLiveShareCoordinatorSync'](_0x578b28);if(!_0xcb1de1)throw Error(_0x35d175(0x191));_0xcb1de1[_0x35d175(0x190)]();}};_0x35a9c9[_0xa540cc(0x17f)][_0xa540cc(0x17c)](_0x1bb428);var _0x20e785=class extends _0x35a9c9['FEnum']{get[_0xa540cc(0x19b)](){return _0x42aad3['LiveShareStatus'];}};_0x35a9c9[_0xa540cc(0x172)][_0xa540cc(0x17c)](_0x20e785);}));function _0x594f(_0x58dc93,_0x5e0d61){_0x58dc93=_0x58dc93-0x170;const _0x25adf1=_0x25ad();let _0x594f12=_0x25adf1[_0x58dc93];return _0x594f12;}function _0x25ad(){const _0x12a544=['object','975627tHgfOo','228783JkSCDb','getLiveShareStatus','LiveShareStatus','getLiveShareCoordinatorSync','471793HNSbWm','1992580qnMoEL','IUniverInstanceService','LiveShareStatusEnum','constructor','getStatus','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','call','getUnitId','UniverCoreFacade','UniverInstanceType','_liveShareController','FEnum','No\x20active\x20workbook\x20found.','toPrimitive','5Vdxsut','defineProperty','tryStartPresenting','symbol','_injector','function','UniverProLiveShare','extend','amd','startPresenting','FUniver','2639130QpxpuD','prototype','@univerjs/core/facade','getCurrentUnitOfType','_initialize','2299910yWRZPX','8pAaekE','startFollowing','@univerjs/core','get','UNIVER_SHEET','iterator','461163AeRfas','2NweILp','LiveShareController','default','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x25ad=function(){return _0x12a544;};return _0x25ad();}
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(_0x570fe2,_0x4bcccd){const _0x45eda3=_0x2f76,_0x58433d=_0x570fe2();while(!![]){try{const _0xf74614=-parseInt(_0x45eda3(0x113))/0x1*(parseInt(_0x45eda3(0xaa))/0x2)+parseInt(_0x45eda3(0xe5))/0x3+parseInt(_0x45eda3(0xd6))/0x4+-parseInt(_0x45eda3(0xd9))/0x5*(-parseInt(_0x45eda3(0x162))/0x6)+parseInt(_0x45eda3(0xea))/0x7*(parseInt(_0x45eda3(0xa6))/0x8)+-parseInt(_0x45eda3(0x105))/0x9+-parseInt(_0x45eda3(0x185))/0xa*(parseInt(_0x45eda3(0x150))/0xb);if(_0xf74614===_0x4bcccd)break;else _0x58433d['push'](_0x58433d['shift']());}catch(_0x1cbee5){_0x58433d['push'](_0x58433d['shift']());}}}(_0x41e8,0x19ce2),function(_0x35e80b,_0x3763ea){const _0x162b89=_0x2f76;typeof exports==_0x162b89(0x10e)&&typeof module<'u'?_0x3763ea(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==_0x162b89(0x16e)&&define['amd']?define(['exports','@univerjs-pro/collaboration',_0x162b89(0x109),'@univerjs/core','@univerjs/sheets',_0x162b89(0xcf),'rxjs/operators',_0x162b89(0x127),_0x162b89(0x139),_0x162b89(0xef),_0x162b89(0xd1),_0x162b89(0x186)],_0x3763ea):(_0x35e80b=typeof globalThis<'u'?globalThis:_0x35e80b||self,_0x3763ea(_0x35e80b[_0x162b89(0x11f)]={},_0x35e80b[_0x162b89(0xe7)],_0x35e80b[_0x162b89(0xfc)],_0x35e80b['UniverCore'],_0x35e80b['UniverSheets'],_0x35e80b[_0x162b89(0xcf)],_0x35e80b[_0x162b89(0xcf)][_0x162b89(0xb7)],_0x35e80b['UniverUi'],_0x35e80b[_0x162b89(0x169)],_0x35e80b[_0x162b89(0x98)],_0x35e80b[_0x162b89(0x98)],_0x35e80b[_0x162b89(0xb9)]));}(this,function(_0x1d6d0c,_0x1def79,_0x533395,_0x2533ed,_0x5d2bc8,_0x29b2db,_0x238d5a,_0x1b0ce3,_0x1b4364,_0x193e8d,_0x1c1026,_0x2592eb){const _0x2e5b4a=_0x2f76;Object['defineProperty'](_0x1d6d0c,Symbol['toStringTag'],{'value':_0x2e5b4a(0x121)});function _0xd75afb(_0xdb6f1a){'@babel/helpers - typeof';const _0x5df71=_0x2e5b4a;return _0xd75afb=typeof Symbol==_0x5df71(0x16e)&&typeof Symbol[_0x5df71(0xe4)]==_0x5df71(0x9e)?function(_0x544f16){return typeof _0x544f16;}:function(_0x12a47e){const _0x146c8d=_0x5df71;return _0x12a47e&&typeof Symbol==_0x146c8d(0x16e)&&_0x12a47e[_0x146c8d(0x15d)]===Symbol&&_0x12a47e!==Symbol[_0x146c8d(0xc1)]?_0x146c8d(0x9e):typeof _0x12a47e;},_0xd75afb(_0xdb6f1a);}function _0x44ad71(_0x2d3aa6,_0x29af16){const _0x4f274c=_0x2e5b4a;if(_0xd75afb(_0x2d3aa6)!=_0x4f274c(0x10e)||!_0x2d3aa6)return _0x2d3aa6;var _0x20d125=_0x2d3aa6[Symbol[_0x4f274c(0xb4)]];if(_0x20d125!==void 0x0){var _0x522662=_0x20d125[_0x4f274c(0x165)](_0x2d3aa6,_0x29af16||_0x4f274c(0x142));if(_0xd75afb(_0x522662)!=_0x4f274c(0x10e))return _0x522662;throw TypeError(_0x4f274c(0x118));}return(_0x29af16===_0x4f274c(0x149)?String:Number)(_0x2d3aa6);}function _0x2cdf3b(_0xe3b6d1){const _0xef4aa0=_0x2e5b4a;var _0x10944c=_0x44ad71(_0xe3b6d1,_0xef4aa0(0x149));return _0xd75afb(_0x10944c)==_0xef4aa0(0x9e)?_0x10944c:_0x10944c+'';}function _0x31f9f7(_0x354620,_0x207163,_0x4c435f){const _0x5cbb3f=_0x2e5b4a;return(_0x207163=_0x2cdf3b(_0x207163))in _0x354620?Object[_0x5cbb3f(0x12d)](_0x354620,_0x207163,{'value':_0x4c435f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x354620[_0x207163]=_0x4c435f,_0x354620;}var _0x353a3c=class extends _0x2533ed[_0x2e5b4a(0xc0)]{constructor(..._0x1a95c2){super(..._0x1a95c2),_0x31f9f7(this,'_sharedOperations',new Set()),_0x31f9f7(this,'_reporters',new Set());}[_0x2e5b4a(0xf6)](_0x2cfac1){const _0x2d406a=_0x2e5b4a;return this['_sharedOperations'][_0x2d406a(0x13b)](_0x2cfac1),(0x0,_0x2533ed[_0x2d406a(0x13a)])(()=>this[_0x2d406a(0xb0)][_0x2d406a(0xbc)](_0x2cfac1));}['registerInitialStateReporter'](_0x19b5ec){const _0x4169cf=_0x2e5b4a;return this[_0x4169cf(0x176)][_0x4169cf(0x13b)](_0x19b5ec),(0x0,_0x2533ed[_0x4169cf(0x13a)])(()=>this[_0x4169cf(0x176)]['delete'](_0x19b5ec));}[_0x2e5b4a(0xc2)](_0x449eb3){const _0x24a2f8=_0x2e5b4a;return this[_0x24a2f8(0xb0)][_0x24a2f8(0x15b)](_0x449eb3);}[_0x2e5b4a(0x17a)](_0xd53c9f){const _0x4c07af=_0x2e5b4a;return Array[_0x4c07af(0x135)](this[_0x4c07af(0x176)])['map'](_0x56b2b2=>_0x56b2b2(_0xd53c9f));}};function _0x5d92c1(_0x490a34,_0x437663){return function(_0x5ae28c,_0x144146){_0x437663(_0x5ae28c,_0x144146,_0x490a34);};}function _0x49cad7(_0xaee94f,_0x46caa0,_0x4bf40d,_0x3ad918){const _0x4c254e=_0x2e5b4a;var _0x3afcaa=arguments[_0x4c254e(0x168)],_0x528dd4=_0x3afcaa<0x3?_0x46caa0:_0x3ad918===null?_0x3ad918=Object[_0x4c254e(0x125)](_0x46caa0,_0x4bf40d):_0x3ad918,_0x85ac37;if(typeof Reflect==_0x4c254e(0x10e)&&typeof Reflect[_0x4c254e(0xad)]=='function')_0x528dd4=Reflect[_0x4c254e(0xad)](_0xaee94f,_0x46caa0,_0x4bf40d,_0x3ad918);else{for(var _0x58a64e=_0xaee94f[_0x4c254e(0x168)]-0x1;_0x58a64e>=0x0;_0x58a64e--)(_0x85ac37=_0xaee94f[_0x58a64e])&&(_0x528dd4=(_0x3afcaa<0x3?_0x85ac37(_0x528dd4):_0x3afcaa>0x3?_0x85ac37(_0x46caa0,_0x4bf40d,_0x528dd4):_0x85ac37(_0x46caa0,_0x4bf40d))||_0x528dd4);}return _0x3afcaa>0x3&&_0x528dd4&&Object[_0x4c254e(0x12d)](_0x46caa0,_0x4bf40d,_0x528dd4),_0x528dd4;}let _0xbf334d=class extends _0x2533ed[_0x2e5b4a(0xda)]{constructor(_0x5498c6,_0x5b6032,_0x209555){const _0x2ae143=_0x2e5b4a;super(),this[_0x2ae143(0x10f)]=_0x5498c6,this['_injector']=_0x5b6032,this[_0x2ae143(0x153)]=_0x209555,_0x31f9f7(this,_0x2ae143(0x167),new Map()),this[_0x2ae143(0x13e)]();}async['getLiveShareCoordinator'](_0x599326){const _0x5ab58e=_0x2e5b4a;return this[_0x5ab58e(0x167)][_0x5ab58e(0x15b)](_0x599326)||await this[_0x5ab58e(0xc6)](_0x599326),this[_0x5ab58e(0x167)][_0x5ab58e(0x12e)](_0x599326);}['getLiveShareCoordinatorSync'](_0x140f4d){const _0x4d2a87=_0x2e5b4a;var _0x4ed41a;return(_0x4ed41a=this[_0x4d2a87(0x167)][_0x4d2a87(0x12e)](_0x140f4d))==null?null:_0x4ed41a;}['_init'](){const _0x45e797=_0x2e5b4a;this[_0x45e797(0x10f)][_0x45e797(0xb2)](_0x2533ed[_0x45e797(0x120)][_0x45e797(0xd7)])[_0x45e797(0xd2)]((0x0,_0x238d5a[_0x45e797(0x174)])(this[_0x45e797(0xe1)]))[_0x45e797(0x114)](async _0xba9294=>{const _0x4cbd2d=_0x45e797;let _0x477ad7=_0xba9294[_0x4cbd2d(0xac)][_0x4cbd2d(0x106)]();this[_0x4cbd2d(0x167)][_0x4cbd2d(0x15b)](_0x477ad7)||this[_0x4cbd2d(0xc6)](_0x477ad7);}),this[_0x45e797(0x10f)][_0x45e797(0x12c)](_0x2533ed['UniverInstanceType'][_0x45e797(0xd7)])[_0x45e797(0xd2)]((0x0,_0x238d5a[_0x45e797(0x174)])(this[_0x45e797(0xe1)]))[_0x45e797(0x114)](_0x5a587d=>{const _0x4cbe73=_0x45e797;let _0x3071fc=_0x5a587d[_0x4cbe73(0x106)](),_0x2fc58a=this[_0x4cbe73(0x167)]['get'](_0x3071fc);_0x2fc58a==null||_0x2fc58a['dispose']();});}async[_0x2e5b4a(0xc6)](_0x1f868c){const _0x2f135b=_0x2e5b4a;let _0x3b9ee8=await this['_collabSessionService'][_0x2f135b(0x173)](_0x1f868c),_0x117906=this[_0x2f135b(0xb1)][_0x2f135b(0xba)](_0x3f68be,_0x1f868c,_0x3b9ee8);return _0x117906[_0x2f135b(0x148)](),this['_entities']['set'](_0x1f868c,_0x117906),_0x117906;}};_0xbf334d=_0x49cad7([_0x5d92c1(0x0,_0x2533ed[_0x2e5b4a(0xeb)]),_0x5d92c1(0x1,(0x0,_0x2533ed[_0x2e5b4a(0x100)])(_0x2533ed[_0x2e5b4a(0xcb)])),_0x5d92c1(0x2,(0x0,_0x2533ed['Inject'])(_0x533395[_0x2e5b4a(0xf2)]))],_0xbf334d);let _0x3abd44=function(_0x5d10b2){const _0x1c0edb=_0x2e5b4a;return _0x5d10b2[_0x1c0edb(0x130)]='offline',_0x5d10b2[_0x1c0edb(0x182)]=_0x1c0edb(0x10c),_0x5d10b2[_0x1c0edb(0x110)]=_0x1c0edb(0xee),_0x5d10b2[_0x1c0edb(0x188)]='not-following',_0x5d10b2[_0x1c0edb(0x11d)]='presenting',_0x5d10b2;}({}),_0x3f68be=class extends _0x2533ed[_0x2e5b4a(0xda)]{get[_0x2e5b4a(0x152)](){const _0x51a26d=_0x2e5b4a;return this[_0x51a26d(0x11e)][_0x51a26d(0x95)]();}constructor(_0x2b0b99,_0x1f73b3,_0x5eae26,_0x430d58,_0x470f7b){const _0x5bc1ab=_0x2e5b4a;super(),this[_0x5bc1ab(0x17d)]=_0x2b0b99,this[_0x5bc1ab(0x132)]=_0x1f73b3,this[_0x5bc1ab(0xca)]=_0x5eae26,this[_0x5bc1ab(0xf8)]=_0x430d58,this[_0x5bc1ab(0x16d)]=_0x470f7b,_0x31f9f7(this,_0x5bc1ab(0x11e),new _0x29b2db[(_0x5bc1ab(0x179))](_0x5bc1ab(0x10c))),_0x31f9f7(this,_0x5bc1ab(0x181),this[_0x5bc1ab(0x11e)][_0x5bc1ab(0x108)]()),_0x31f9f7(this,_0x5bc1ab(0x13e),!0x1),_0x31f9f7(this,_0x5bc1ab(0x136),null),_0x31f9f7(this,_0x5bc1ab(0xa3),null);}[_0x2e5b4a(0x145)](){const _0x75e570=_0x2e5b4a;var _0x1d6fa1;(_0x1d6fa1=this[_0x75e570(0x136)])==null||_0x1d6fa1[_0x75e570(0x145)](),this[_0x75e570(0x11e)][_0x75e570(0xd0)](_0x75e570(0x10c)),this['_status$'][_0x75e570(0x104)]();}[_0x2e5b4a(0xf4)](){return this['_status'];}[_0x2e5b4a(0x148)](){const _0x207ef4=_0x2e5b4a;this['_init']||(this[_0x207ef4(0x13e)]=!0x0,this['_collabSession'][_0x207ef4(0xf5)]['pipe']((0x0,_0x238d5a[_0x207ef4(0x174)])(this[_0x207ef4(0xe1)]))['subscribe'](_0x49908f=>{const _0x3222b5=_0x207ef4;switch(_0x49908f){case _0x533395[_0x3222b5(0xae)]['OFFLINE']:this['_handleOffline']();break;case _0x533395[_0x3222b5(0xae)][_0x3222b5(0x178)]:this[_0x3222b5(0x14f)]();break;default:}}),this[_0x207ef4(0x132)]['event$']['pipe']((0x0,_0x238d5a[_0x207ef4(0x174)])(this[_0x207ef4(0xe1)]))[_0x207ef4(0x114)](_0x37614f=>{const _0x5df6a2=_0x207ef4;let {eventID:_0x220941}=_0x37614f;switch(_0x220941){case _0x1def79[_0x5df6a2(0xc7)][_0x5df6a2(0xb5)]:this['_handleNewHost'](_0x37614f);break;case _0x1def79[_0x5df6a2(0xc7)][_0x5df6a2(0x107)]:this['_handleOperation'](_0x37614f);break;case _0x1def79[_0x5df6a2(0xc7)][_0x5df6a2(0x13d)]:this[_0x5df6a2(0x10d)]();break;case _0x1def79[_0x5df6a2(0xc7)][_0x5df6a2(0xbb)]:this[_0x5df6a2(0xb3)](_0x37614f);break;default:}}));}[_0x2e5b4a(0x15f)](){const _0x133fc0=_0x2e5b4a;this[_0x133fc0(0x132)][_0x133fc0(0x14a)]({'eventID':_0x1def79['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x133fc0(0x132)][_0x133fc0(0xcc)]()}},this['_unitID']);}[_0x2e5b4a(0xfd)](){const _0x4d8fd2=_0x2e5b4a;this['_status']===_0x4d8fd2(0x154)&&(this[_0x4d8fd2(0x11e)]['next'](_0x4d8fd2(0x10c)),this['_collabSession'][_0x4d8fd2(0x14a)]({'eventID':_0x1def79[_0x4d8fd2(0xc7)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x4d8fd2(0x17d)]));}[_0x2e5b4a(0xde)](){const _0x5c506c=_0x2e5b4a;this[_0x5c506c(0x152)]===_0x5c506c(0x158)&&(this[_0x5c506c(0x11e)][_0x5c506c(0xd0)]('following'),this['_startFollowing']());}['stopFollowing'](){const _0x549c7f=_0x2e5b4a;this[_0x549c7f(0x152)]===_0x549c7f(0xee)&&this[_0x549c7f(0xfb)]();}[_0x2e5b4a(0x184)](_0x394f52){const _0x3a2dcc=_0x2e5b4a;let {presenter:_0x2a570d}=_0x394f52['data'],_0x57b717=this[_0x3a2dcc(0x132)]['getMemberID']();this[_0x3a2dcc(0xa3)]=_0x2a570d,_0x2a570d===_0x57b717?(this[_0x3a2dcc(0xfb)](),this[_0x3a2dcc(0x155)]()):this[_0x3a2dcc(0x152)]!=='not-following'&&(this[_0x3a2dcc(0x180)](),this[_0x3a2dcc(0x172)]());}[_0x2e5b4a(0xa8)](){const _0x49a13a=_0x2e5b4a;let _0x160da0={'eventID':_0x1def79[_0x49a13a(0xc7)][_0x49a13a(0xa9)]};this['_collabSession']['send'](_0x160da0,this[_0x49a13a(0x17d)]);}[_0x2e5b4a(0x10d)](){const _0xb5423c=_0x2e5b4a;this[_0xb5423c(0xa3)]=null,this[_0xb5423c(0x152)]!==_0xb5423c(0x154)&&this['_beIdle']();}[_0x2e5b4a(0xb3)](_0x5a9dfb){const _0x38605e=_0x2e5b4a;if(this[_0x38605e(0x152)]===_0x38605e(0xee)&&this[_0x38605e(0xa3)]===_0x5a9dfb[_0x38605e(0x103)][_0x38605e(0x9b)]){let _0xd2cf4e=(0x0,_0x1def79[_0x38605e(0x94)])(_0x5a9dfb['data'])['mutations']['reverse']()[_0x38605e(0x147)](_0x4c387a=>_0x4c387a['id']===_0x5d2bc8[_0x38605e(0xed)]['id']);if(_0xd2cf4e){let _0x4c9984=_0xd2cf4e[_0x38605e(0x171)][_0x38605e(0x10a)],_0xaee5a=_0xd2cf4e[_0x38605e(0x171)][_0x38605e(0xd5)]['id'];setTimeout(()=>{const _0x4ba118=_0x38605e;this[_0x4ba118(0x16d)]['executeCommand'](_0x5d2bc8[_0x4ba118(0x115)]['id'],{'unitId':_0x4c9984,'subUnitId':_0xaee5a},{'fromCollab':!0x0});});}}}[_0x2e5b4a(0x155)](){const _0x1945d3=_0x2e5b4a;var _0x20dfb0;(_0x20dfb0=this[_0x1945d3(0x136)])==null||_0x20dfb0[_0x1945d3(0x145)](),this[_0x1945d3(0x11e)][_0x1945d3(0xd0)](_0x1945d3(0x154));let _0x59da99=new Map(),_0xb6cd37=this[_0x1945d3(0x136)]=new _0x2533ed[(_0x1945d3(0xfe))]();_0xb6cd37['add']((0x0,_0x2533ed[_0x1945d3(0x13a)])(()=>{const _0xb16cd0=_0x1945d3;_0x59da99[_0xb16cd0(0x11b)](({subject:_0x247aef,subscription:_0x427903})=>{const _0x2a93e8=_0xb16cd0;_0x427903[_0x2a93e8(0xdd)](),_0x247aef[_0x2a93e8(0x104)]();}),_0x59da99['clear']();})),_0xb6cd37[_0x1945d3(0x13b)](this[_0x1945d3(0x16d)][_0x1945d3(0xa4)](_0xc60c68=>{const _0x2b9f28=_0x1945d3;if(_0xc60c68[_0x2b9f28(0xe0)]!==_0x2533ed[_0x2b9f28(0xc3)][_0x2b9f28(0x10b)]||!this[_0x2b9f28(0xf8)][_0x2b9f28(0xc2)](_0xc60c68['id']))return;let {id:_0x41ebaa}=_0xc60c68,_0x2214b5;if(_0x59da99[_0x2b9f28(0x15b)](_0x41ebaa))_0x2214b5=_0x59da99['get'](_0x41ebaa)['subject'];else{var _0x2bdcee;_0x2214b5=new _0x29b2db['Subject']();let _0x55cb11=_0x2214b5[_0x2b9f28(0xd2)]((0x0,_0x238d5a[_0x2b9f28(0x12b)])((_0x2bdcee=this[_0x2b9f28(0xca)]['getConfig'](_0x2b9f28(0x13c)))==null?0xc8:_0x2bdcee,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2b9f28(0x114)](_0x5eb83b=>{const _0x346031=_0x2b9f28;this[_0x346031(0x132)][_0x346031(0x14a)]({'eventID':_0x1def79[_0x346031(0xc7)][_0x346031(0x107)],'data':{'unitID':this[_0x346031(0x17d)],'operations':{[_0x5eb83b['id']]:{'id':_0x5eb83b['id'],'params':JSON['stringify'](_0x5eb83b[_0x346031(0x171)])}}}},this[_0x346031(0x17d)]);});_0x59da99[_0x2b9f28(0xd4)](_0x41ebaa,{'subject':_0x2214b5,'subscription':_0x55cb11});}_0x2214b5[_0x2b9f28(0xd0)](_0xc60c68);})),this[_0x1945d3(0xf8)][_0x1945d3(0x17a)](this['_unitID'])['forEach'](_0x50b293=>this[_0x1945d3(0x132)]['send']({'eventID':_0x1def79[_0x1945d3(0xc7)][_0x1945d3(0x107)],'data':{'unitID':this[_0x1945d3(0x17d)],'operations':{[_0x50b293['id']]:{'id':_0x50b293['id'],'params':JSON[_0x1945d3(0x9f)](_0x50b293[_0x1945d3(0x171)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x1434d3=_0x2e5b4a;var _0x4a555a;this[_0x1434d3(0x11e)][_0x1434d3(0xd0)](_0x1434d3(0x10c)),(_0x4a555a=this[_0x1434d3(0x136)])==null||_0x4a555a[_0x1434d3(0x145)](),this['_commandDisposable']=null;}[_0x2e5b4a(0x172)](){const _0x275270=_0x2e5b4a;var _0x24a309;(_0x24a309=this[_0x275270(0x136)])==null||_0x24a309[_0x275270(0x145)](),this[_0x275270(0x11e)][_0x275270(0xd0)](_0x275270(0xee));}[_0x2e5b4a(0x16c)](){const _0x52b17c=_0x2e5b4a;var _0x8b26cb;this['_status$']['next'](_0x52b17c(0x10c)),(_0x8b26cb=this[_0x52b17c(0x136)])==null||_0x8b26cb['dispose'](),this['_commandDisposable']=null;}[_0x2e5b4a(0xfb)](){const _0x55870e=_0x2e5b4a;var _0x39c2cb;this[_0x55870e(0x11e)][_0x55870e(0xd0)](_0x55870e(0x158)),(_0x39c2cb=this[_0x55870e(0x136)])==null||_0x39c2cb[_0x55870e(0x145)]();}[_0x2e5b4a(0xfa)](_0x57fcdc){const _0x346e64=_0x2e5b4a;if(['presenting',_0x346e64(0x158),_0x346e64(0x97)][_0x346e64(0x14c)](this[_0x346e64(0x152)])||!_0x57fcdc[_0x346e64(0x103)][_0x346e64(0x161)]||_0x57fcdc[_0x346e64(0x103)][_0x346e64(0x161)]===this[_0x346e64(0x132)][_0x346e64(0xcc)]())return;this[_0x346e64(0x152)]===_0x346e64(0x10c)&&this[_0x346e64(0x172)]();let _0x3c339f=_0x57fcdc[_0x346e64(0x103)][_0x346e64(0x134)];Object[_0x346e64(0xa2)](_0x3c339f)['forEach'](_0x418cb6=>{const _0x2f34f4=_0x346e64;this['_commandService'][_0x2f34f4(0x146)](_0x418cb6['id'],_0x418cb6[_0x2f34f4(0x171)]?JSON[_0x2f34f4(0x14e)](_0x418cb6[_0x2f34f4(0x171)]):null,{'fromCollab':!0x0});});}[_0x2e5b4a(0x141)](){const _0x21365f=_0x2e5b4a;var _0x470bca;this[_0x21365f(0x11e)][_0x21365f(0xd0)](_0x21365f(0x97)),(_0x470bca=this[_0x21365f(0x136)])==null||_0x470bca['dispose']();}[_0x2e5b4a(0x14f)](){const _0x16500a=_0x2e5b4a;this[_0x16500a(0x11e)][_0x16500a(0xd0)]('idle'),this[_0x16500a(0xa8)]();}};_0x3f68be=_0x49cad7([_0x5d92c1(0x2,_0x2533ed[_0x2e5b4a(0x183)]),_0x5d92c1(0x3,(0x0,_0x2533ed[_0x2e5b4a(0x100)])(_0x353a3c)),_0x5d92c1(0x4,_0x2533ed[_0x2e5b4a(0xbe)])],_0x3f68be);function _0x54d1fe({ref:_0x30023a,..._0x38829a}){const _0x1a96b8=_0x2e5b4a;let {icon:_0x541eb0,id:_0x118cc3,className:_0x9d1601,extend:_0x3b39b8,..._0x44dae5}=_0x38829a,_0xf55955=(_0x1a96b8(0xf0)+_0x118cc3+'\x20'+(_0x9d1601||''))[_0x1a96b8(0x102)](),_0x30b9f1=(0x0,_0x193e8d[_0x1a96b8(0x133)])('_'+_0x37647a());return _0x10402d(_0x541eb0,''+_0x118cc3,{'defIds':_0x541eb0['defIds'],'idSuffix':_0x30b9f1[_0x1a96b8(0x101)]},{'ref':_0x30023a,'className':_0xf55955,..._0x44dae5},_0x3b39b8);}function _0x10402d(_0x801ca2,_0x13ee12,_0x41a248,_0x5816e1,_0x545b72){const _0xdd5aab=_0x2e5b4a;return(0x0,_0x193e8d[_0xdd5aab(0x151)])(_0x801ca2[_0xdd5aab(0xb6)],{'key':_0x13ee12,..._0x4194cf(_0x801ca2,_0x41a248,_0x545b72),..._0x5816e1},(_0x35fcee(_0x801ca2,_0x41a248)['children']||[])[_0xdd5aab(0x177)]((_0x19e9ec,_0x1d8da0)=>_0x10402d(_0x19e9ec,_0x13ee12+'-'+_0x801ca2[_0xdd5aab(0xb6)]+'-'+_0x1d8da0,_0x41a248,void 0x0,_0x545b72)));}function _0x4194cf(_0x3d61ef,_0x154677,_0x272ce8){const _0x2045ae=_0x2e5b4a;let _0x545370={..._0x3d61ef[_0x2045ae(0xd3)]};_0x272ce8!=null&&_0x272ce8[_0x2045ae(0xbf)]&&_0x545370[_0x2045ae(0xec)]==='colorChannel1'&&(_0x545370[_0x2045ae(0xec)]=_0x272ce8[_0x2045ae(0xbf)]),_0x272ce8!=null&&_0x272ce8[_0x2045ae(0xbf)]&&_0x545370[_0x2045ae(0x16f)]===_0x2045ae(0xbf)&&(_0x545370[_0x2045ae(0x16f)]=_0x272ce8[_0x2045ae(0xbf)]),_0x3d61ef[_0x2045ae(0xb6)]===_0x2045ae(0x137)&&_0x545370['id']&&(_0x545370['id']+=_0x154677[_0x2045ae(0xbd)]),Object[_0x2045ae(0xf1)](_0x545370)[_0x2045ae(0x11b)](([_0x5d0a2f,_0x1237a2])=>{const _0x5e20d4=_0x2045ae;_0x5d0a2f==='mask'&&typeof _0x1237a2==_0x5e20d4(0x149)&&(_0x545370[_0x5d0a2f]=_0x1237a2[_0x5e20d4(0x9c)](/url\(#(.*)\)/,_0x5e20d4(0x126)+_0x154677['idSuffix']+')'));});let {defIds:_0x5afe4d}=_0x154677;return!_0x5afe4d||_0x5afe4d['length']===0x0?_0x545370:(_0x3d61ef[_0x2045ae(0xb6)]==='use'&&_0x545370[_0x2045ae(0xff)]&&(_0x545370['xlink:href']+=_0x154677[_0x2045ae(0xbd)]),Object['entries'](_0x545370)[_0x2045ae(0x11b)](([_0x12717d,_0xc0469d])=>{const _0x5891a2=_0x2045ae;typeof _0xc0469d==_0x5891a2(0x149)&&(_0x545370[_0x12717d]=_0xc0469d[_0x5891a2(0x9c)](/url\(#(.*)\)/,_0x5891a2(0x126)+_0x154677[_0x5891a2(0xbd)]+')'));}),_0x545370);}function _0x35fcee(_0x2c21e7,_0x170d99){const _0x4557e9=_0x2e5b4a;var _0x5455f9;let {defIds:_0x2fb586}=_0x170d99;return!_0x2fb586||_0x2fb586[_0x4557e9(0x168)]===0x0?_0x2c21e7:_0x2c21e7[_0x4557e9(0xb6)]===_0x4557e9(0xaf)&&(_0x5455f9=_0x2c21e7[_0x4557e9(0x112)])!=null&&_0x5455f9[_0x4557e9(0x168)]?{..._0x2c21e7,'children':_0x2c21e7[_0x4557e9(0x112)][_0x4557e9(0x177)](_0x19bbab=>typeof _0x19bbab[_0x4557e9(0xd3)]['id']=='string'&&_0x2fb586&&_0x2fb586[_0x4557e9(0x14c)](_0x19bbab[_0x4557e9(0xd3)]['id'])?{..._0x19bbab,'attrs':{..._0x19bbab[_0x4557e9(0xd3)],'id':_0x19bbab[_0x4557e9(0xd3)]['id']+_0x170d99[_0x4557e9(0xbd)]}}:_0x19bbab)}:_0x2c21e7;}function _0x37647a(){const _0x26fc64=_0x2e5b4a;return Math[_0x26fc64(0x128)]()['toString'](0x24)[_0x26fc64(0x131)](0x2,0x8);}_0x54d1fe[_0x2e5b4a(0x156)]='UniverIcon';let _0x54eb8b={'tag':_0x2e5b4a(0xdb),'attrs':{'xmlns':_0x2e5b4a(0x175),'fill':_0x2e5b4a(0xdf),'viewBox':_0x2e5b4a(0xc5),'width':_0x2e5b4a(0x9a),'height':_0x2e5b4a(0x9a)},'children':[{'tag':'path','attrs':{'fill':_0x2e5b4a(0xf3),'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':_0x2e5b4a(0x16a),'attrs':{'fill':_0x2e5b4a(0xf3),'d':_0x2e5b4a(0x164),'fillRule':_0x2e5b4a(0xc8),'clipRule':_0x2e5b4a(0xc8)}}]},_0x25a4fa=(0x0,_0x193e8d['forwardRef'])(function(_0x5d0637,_0x4677ea){const _0x499fb1=_0x2e5b4a;return(0x0,_0x193e8d['createElement'])(_0x54d1fe,Object[_0x499fb1(0xe8)]({},_0x5d0637,{'id':_0x499fb1(0xf7),'ref':_0x4677ea,'icon':_0x54eb8b}));});_0x25a4fa[_0x2e5b4a(0x156)]=_0x2e5b4a(0x17b);function _0x27de14(){const _0x43305f=_0x2e5b4a;let _0x47aeb2=(0x0,_0x1b0ce3[_0x43305f(0xf9)])(_0xbf334d),_0x277736=(0x0,_0x1b0ce3['useDependency'])(_0x2533ed[_0x43305f(0xeb)]),_0x133843=(0x0,_0x1b0ce3[_0x43305f(0xa0)])(()=>_0x277736[_0x43305f(0x15a)](_0x2533ed[_0x43305f(0x120)][_0x43305f(0xd7)]),void 0x0,!0x1,[]),[_0x54008e,_0x1f1590]=(0x0,_0x193e8d[_0x43305f(0xe9)])(null),[_0x566c08,_0x4f4735]=(0x0,_0x193e8d[_0x43305f(0xe9)])('idle'),_0x523bda=(0x0,_0x193e8d[_0x43305f(0x133)])(null);return(0x0,_0x193e8d['useEffect'])(()=>(_0x133843&&_0x47aeb2['getLiveShareCoordinator'](_0x133843['getUnitId']())[_0x43305f(0x170)](_0x2cbd64=>{const _0x138ace=_0x43305f;_0x1f1590(_0x2cbd64),_0x523bda[_0x138ace(0x101)]=_0x2cbd64[_0x138ace(0x181)][_0x138ace(0x114)](_0x3de868=>{_0x4f4735(_0x3de868);});}),()=>{const _0xff2783=_0x43305f;var _0x1498bb;(_0x1498bb=_0x523bda['current'])==null||_0x1498bb[_0xff2783(0xdd)](),_0x523bda[_0xff2783(0x101)]=null;}),[_0x133843,_0x47aeb2]),_0x54008e?(0x0,_0x1c1026[_0x43305f(0x17e)])(_0x1b4364['Dropdown'],{'align':'end','disabled':_0x566c08===_0x43305f(0x97),'className':_0x43305f(0xe3),'overlay':(0x0,_0x1c1026[_0x43305f(0x17e)])(_0x3e7f6f,{'status':_0x566c08,'coordinator':_0x54008e}),'children':(0x0,_0x1c1026[_0x43305f(0x17e)])(_0x43305f(0xe6),{'className':(0x0,_0x1b4364[_0x43305f(0xe2)])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x566c08===_0x43305f(0x97),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x566c08!==_0x43305f(0x97)}),'type':_0x43305f(0xe6),'children':(0x0,_0x1c1026[_0x43305f(0x17e)])(_0x25a4fa,{})})}):null;}function _0x3e7f6f(_0x1c90cd){const _0x1507ac=_0x2e5b4a;let {status:_0x2840ce,coordinator:_0x181601}=_0x1c90cd;switch(_0x2840ce){case _0x1507ac(0x10c):return(0x0,_0x1c1026[_0x1507ac(0x17e)])(_0x219dd1,{'coordinator':_0x181601});case _0x1507ac(0xee):return(0x0,_0x1c1026[_0x1507ac(0x17e)])(_0x935111,{'coordinator':_0x181601});case _0x1507ac(0x158):return(0x0,_0x1c1026[_0x1507ac(0x17e)])(_0x47f5a7,{'coordinator':_0x181601});case _0x1507ac(0x97):return(0x0,_0x1c1026['jsx'])(_0x3809ee,{});case _0x1507ac(0x154):return(0x0,_0x1c1026[_0x1507ac(0x17e)])(_0x54abb2,{'coordinator':_0x181601});default:return null;}}function _0x219dd1(_0x58e20f){const _0x733121=_0x2e5b4a;let {coordinator:_0x460507}=_0x58e20f;return(0x0,_0x1c1026['jsxs'])(_0x1c1026[_0x733121(0x163)],{'children':[(0x0,_0x1c1026[_0x733121(0x17e)])(_0x733121(0x14d),{'className':_0x733121(0x12f),'children':_0x733121(0x116)}),(0x0,_0x1c1026[_0x733121(0x17e)])(_0x1b4364['Button'],{'onClick':()=>_0x460507['tryStartPresenting'](),'children':'Start'})]});}function _0x935111(_0x271a8c){const _0x2efc40=_0x2e5b4a;let {coordinator:_0x2f7778}=_0x271a8c;return(0x0,_0x1c1026[_0x2efc40(0x123)])(_0x1c1026[_0x2efc40(0x163)],{'children':[(0x0,_0x1c1026[_0x2efc40(0x17e)])(_0x2efc40(0x14d),{'className':_0x2efc40(0x12f),'children':_0x2efc40(0x117)}),(0x0,_0x1c1026[_0x2efc40(0x17e)])(_0x1b4364[_0x2efc40(0x160)],{'onClick':()=>_0x2f7778[_0x2efc40(0x9d)](),'children':_0x2efc40(0x124)})]});}function _0x47f5a7(_0x2ca2fa){const _0x5eae3c=_0x2e5b4a;let {coordinator:_0x133c11}=_0x2ca2fa;return(0x0,_0x1c1026['jsxs'])(_0x1c1026[_0x5eae3c(0x163)],{'children':[(0x0,_0x1c1026[_0x5eae3c(0x17e)])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5eae3c(0x140)}),(0x0,_0x1c1026[_0x5eae3c(0x17e)])(_0x1b4364['Button'],{'variant':'text','onClick':()=>_0x133c11['startFollowing'](),'children':_0x5eae3c(0x129)})]});}function _0x54abb2(_0x466d52){const _0x3c051d=_0x2e5b4a;let {coordinator:_0x1cf392}=_0x466d52;return(0x0,_0x1c1026['jsxs'])(_0x1c1026['Fragment'],{'children':[(0x0,_0x1c1026[_0x3c051d(0x17e)])(_0x3c051d(0x14d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3c051d(0xd8)}),(0x0,_0x1c1026[_0x3c051d(0x17e)])(_0x1b4364[_0x3c051d(0x160)],{'variant':_0x3c051d(0x142),'onClick':()=>_0x1cf392[_0x3c051d(0xfd)](),'children':_0x3c051d(0xce)})]});}function _0x3809ee(){const _0xa9925d=_0x2e5b4a;return(0x0,_0x1c1026[_0xa9925d(0x17e)])(_0x1c1026[_0xa9925d(0x163)],{'children':_0xa9925d(0xa1)});}let _0xe65ec8=class extends _0x2533ed[_0x2e5b4a(0xc0)]{constructor(_0x5c3b8d,_0x31a5b6){const _0x4eed48=_0x2e5b4a;super(),this[_0x4eed48(0xb1)]=_0x5c3b8d,this[_0x4eed48(0xab)]=_0x31a5b6,this[_0x4eed48(0xcd)]();}['_mountLiveShare'](){const _0x3f9b30=_0x2e5b4a;this[_0x3f9b30(0x96)](this[_0x3f9b30(0xab)][_0x3f9b30(0xc4)](_0x1b0ce3[_0x3f9b30(0x14b)][_0x3f9b30(0x111)],()=>(0x0,_0x1b0ce3[_0x3f9b30(0x144)])(_0x27de14,this[_0x3f9b30(0xb1)])));}};_0xe65ec8=_0x49cad7([_0x5d92c1(0x0,(0x0,_0x2533ed[_0x2e5b4a(0x100)])(_0x2533ed['Injector'])),_0x5d92c1(0x1,_0x1b0ce3[_0x2e5b4a(0x122)])],_0xe65ec8);var _0x44a75d=_0x2e5b4a(0x99),_0x4ed9ab='1.0.0-alpha.0';let _0x4518c7={},_0x334bae=class extends _0x2533ed[_0x2e5b4a(0xc0)]{constructor(_0x5a24db){const _0x56b49d=_0x2e5b4a;super(),this[_0x56b49d(0xf8)]=_0x5a24db,this[_0x56b49d(0x13e)]();}[_0x2e5b4a(0x13e)](){const _0x156a99=_0x2e5b4a;[_0x2592eb[_0x156a99(0x12a)]['id'],_0x2592eb[_0x156a99(0x187)]['id'],_0x5d2bc8[_0x156a99(0x115)]['id']][_0x156a99(0x11b)](_0x195d71=>{const _0x4ef317=_0x156a99;this[_0x4ef317(0x96)](this['_liveShareService'][_0x4ef317(0xf6)](_0x195d71));});}};_0x334bae=_0x49cad7([_0x5d92c1(0x0,(0x0,_0x2533ed['Inject'])(_0x353a3c))],_0x334bae);let _0xfee362=class extends _0x2533ed[_0x2e5b4a(0xdc)]{constructor(_0x252cbf=_0x4518c7,_0x32f664,_0x5bca8d){const _0x3ce7a1=_0x2e5b4a;super(),this['_config']=_0x252cbf,this[_0x3ce7a1(0xb1)]=_0x32f664,this['_configService']=_0x5bca8d;let {..._0x42c29f}=(0x0,_0x2533ed['merge'])({},_0x4518c7,this[_0x3ce7a1(0x119)]);this[_0x3ce7a1(0xca)][_0x3ce7a1(0xa5)](_0x3ce7a1(0x166),_0x42c29f);}[_0x2e5b4a(0x15e)](){const _0x996744=_0x2e5b4a;(0x0,_0x2533ed['registerDependencies'])(this[_0x996744(0xb1)],(0x0,_0x2533ed['mergeOverrideWithDependencies'])([[_0x353a3c],[_0xbf334d],[_0x334bae],[_0xe65ec8]],this[_0x996744(0x119)][_0x996744(0x11c)])),(0x0,_0x2533ed[_0x996744(0x17c)])(this[_0x996744(0xb1)],[[_0x334bae]]);}[_0x2e5b4a(0x15c)](){const _0x5d84d8=_0x2e5b4a;(0x0,_0x2533ed[_0x5d84d8(0x17c)])(this[_0x5d84d8(0xb1)],[[_0xe65ec8]]);}};_0x31f9f7(_0xfee362,'type',_0x2533ed[_0x2e5b4a(0x120)][_0x2e5b4a(0x143)]),_0x31f9f7(_0xfee362,'pluginName',_0x2e5b4a(0x138)),_0x31f9f7(_0xfee362,_0x2e5b4a(0x159),_0x44a75d),_0x31f9f7(_0xfee362,_0x2e5b4a(0xb8),_0x4ed9ab),_0xfee362=_0x49cad7([(0x0,_0x2533ed[_0x2e5b4a(0xc9)])(_0x533395[_0x2e5b4a(0xa7)]),_0x5d92c1(0x1,(0x0,_0x2533ed[_0x2e5b4a(0x100)])(_0x2533ed[_0x2e5b4a(0xcb)])),_0x5d92c1(0x2,_0x2533ed['IConfigService'])],_0xfee362),Object[_0x2e5b4a(0x12d)](_0x1d6d0c,_0x2e5b4a(0x11a),{'enumerable':!0x0,'get':function(){return _0xe65ec8;}}),_0x1d6d0c[_0x2e5b4a(0x16b)]=_0x27de14,Object[_0x2e5b4a(0x12d)](_0x1d6d0c,_0x2e5b4a(0x157),{'enumerable':!0x0,'get':function(){return _0xbf334d;}}),Object[_0x2e5b4a(0x12d)](_0x1d6d0c,_0x2e5b4a(0x13f),{'enumerable':!0x0,'get':function(){return _0x3f68be;}}),_0x1d6d0c['LiveShareService']=_0x353a3c,_0x1d6d0c['LiveShareStatus']=_0x3abd44,Object[_0x2e5b4a(0x12d)](_0x1d6d0c,_0x2e5b4a(0x17f),{'enumerable':!0x0,'get':function(){return _0xfee362;}});}));function _0x2f76(_0x5e9a46,_0x2dc0ac){_0x5e9a46=_0x5e9a46-0x94;const _0x41e804=_0x41e8();let _0x2f76bd=_0x41e804[_0x5e9a46];return _0x2f76bd;}function _0x41e8(){const _0x2e1f17=['children','713dRcZmX','subscribe','SetWorksheetActiveOperation','Present\x20this\x20document','You\x27re\x20following\x20the\x20presenter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_config','DesktopLiveShareController','forEach','override','PRESENTING','_status$','UniverProLiveShare','UniverInstanceType','Module','IUIPartsService','jsxs','Stop\x20following','getOwnPropertyDescriptor','url(#$1','@univerjs/ui','random','Start\x20following','SetZoomRatioOperation','throttleTime','getTypeOfUnitDisposed$','defineProperty','get','univer-mb-3\x20univer-w-full\x20univer-text-sm','OFFLINE','substring','_collabSession','useRef','operations','from','_commandDisposable','mask','UNIVER_LIVE_SHARE_PLUGIN','@univerjs/design','toDisposable','add','SAME_OPERATION_SHARE_INTERVAL','LIVESHARE_TERMINATE','_init','LiveShareCoordinator','You\x27re\x20not\x20following\x20the\x20presenter','_handleOffline','default','UNIVER_UNKNOWN','connectInjector','dispose','executeCommand','find','init','string','send','BuiltInUIPart','includes','div','parse','_handleOnline','44LHSdKG','createElement','_status','_collabSessionService','presenting','_startPresenting','displayName','LiveShareController','not-following','packageName','getCurrentTypeOfUnit$','has','onRendered','constructor','onStarting','tryStartPresenting','Button','presenter','29598BWXJjh','Fragment','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','call','live-share.config','_entities','length','UniverDesign','path','LiveShare','_beIdle','_commandService','function','stroke','then','params','_startFollowing','requireSession','takeUntil','http://www.w3.org/2000/svg','_reporters','map','ONLINE','BehaviorSubject','getInitialStates','LiveShareIcon','touchDependencies','_unitID','jsx','UniverLiveSharePlugin','_stopPresenting','status$','IDLE','IConfigService','_handleNewHost','54370rtLvFr','@univerjs/sheets-ui','SetScrollOperation','NOT_FOLLOWING','parseProtocolChangeset','getValue','disposeWithMe','offline','React','@univerjs-pro/live-share','1em','memberID','replace','stopFollowing','symbol','stringify','useObservable','You\x27are\x20offline.','values','_presenter','onCommandExecuted','setConfig','32SKDJyJ','UniverCollaborationClientPlugin','_fetchOperations','LIVESHARE_FETCH_OPERATIONS','210LFWKPV','_uiPartsService','unit','decorate','SessionStatus','defs','_sharedOperations','_injector','getTypeOfUnitAdded$','_handleNewChangeSets','toPrimitive','LIVESHARE_NEW_HOST','tag','operators','version','UniverSheetsUi','createInstance','NEW_CHANGESETS','delete','idSuffix','ICommandService','colorChannel1','Disposable','prototype','shouldShareOperation','CommandType','registerComponent','0\x200\x2017\x2017','_startLiveShareCoordinator','CollaborationEvent','evenodd','DependentOn','_configService','Injector','getMemberID','_mountLiveShare','Stop\x20presenting','rxjs','next','react/jsx-runtime','pipe','attrs','set','sheet','161120cNlOlF','UNIVER_SHEET','You\x27re\x20presenting\x20the\x20document','10ULMRdi','RxDisposable','svg','Plugin','unsubscribe','startFollowing','none','type','dispose$','clsx','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','iterator','453750EbPCYI','button','UniverProCollaboration','assign','useState','70700fWEFKM','IUniverInstanceService','fill','InsertSheetMutation','following','react','univerjs-icon\x20univerjs-icon-','entries','CollaborationSessionService','currentColor','getStatus','sessionStatus$','registerSharedOperation','live-share-icon','_liveShareService','useDependency','_handleOperation','_stopFollowing','UniverProCollaborationClient','stopPresenting','DisposableCollection','xlink:href','Inject','current','trim','data','complete','355365PDUwlL','getUnitId','LIVESHARE_OPERATION','asObservable','@univerjs-pro/collaboration-client','unitId','OPERATION','idle','_handleTerminate','object','_univerInstanceService','FOLLOWING','HEADER_MENU'];_0x41e8=function(){return _0x2e1f17;};return _0x41e8();}
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.0",
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.12.0",
66
- "@univerjs-pro/collaboration": "1.0.0-alpha.0",
67
- "@univerjs-pro/collaboration-client": "1.0.0-alpha.0",
68
- "@univerjs/core": "1.0.0-alpha.0",
69
- "@univerjs/sheets": "1.0.0-alpha.0",
70
- "@univerjs/sheets-ui": "1.0.0-alpha.0",
71
- "@univerjs/design": "1.0.0-alpha.0",
72
- "@univerjs/ui": "1.0.0-alpha.0"
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.0",
82
- "@univerjs/protocol": "1.0.0-alpha.0"
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",