@univerjs-pro/live-share 1.0.0-alpha.3 → 1.0.0-alpha.4

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 _0x1b61f7=_0x1d16;(function(_0x2341e1,_0x384ea2){const _0x5a0d76=_0x1d16,_0x9fb759=_0x2341e1();while(!![]){try{const _0x227aae=parseInt(_0x5a0d76(0xd7))/0x1+-parseInt(_0x5a0d76(0xdf))/0x2*(-parseInt(_0x5a0d76(0xce))/0x3)+parseInt(_0x5a0d76(0xf4))/0x4*(parseInt(_0x5a0d76(0xd0))/0x5)+parseInt(_0x5a0d76(0xd2))/0x6*(parseInt(_0x5a0d76(0xd6))/0x7)+parseInt(_0x5a0d76(0xe4))/0x8*(parseInt(_0x5a0d76(0xe2))/0x9)+-parseInt(_0x5a0d76(0xe9))/0xa*(-parseInt(_0x5a0d76(0xde))/0xb)+-parseInt(_0x5a0d76(0xee))/0xc*(parseInt(_0x5a0d76(0xef))/0xd);if(_0x227aae===_0x384ea2)break;else _0x9fb759['push'](_0x9fb759['shift']());}catch(_0x1be462){_0x9fb759['push'](_0x9fb759['shift']());}}}(_0x1cef,0xa7671));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x564cfe){'@babel/helpers - typeof';const _0x3c8dc3=_0x1d16;return r=typeof Symbol==_0x3c8dc3(0xd8)&&typeof Symbol['iterator']=='symbol'?function(_0x23edb4){return typeof _0x23edb4;}:function(_0x498b69){const _0x2dd657=_0x3c8dc3;return _0x498b69&&typeof Symbol=='function'&&_0x498b69['constructor']===Symbol&&_0x498b69!==Symbol[_0x2dd657(0xe1)]?'symbol':typeof _0x498b69;},r(_0x564cfe);}function i(_0x432dcc,_0x36abe5){const _0x3c1c13=_0x1d16;if(r(_0x432dcc)!=_0x3c1c13(0xd1)||!_0x432dcc)return _0x432dcc;var _0x25d2b1=_0x432dcc[Symbol[_0x3c1c13(0xe7)]];if(_0x25d2b1!==void 0x0){var _0x855417=_0x25d2b1[_0x3c1c13(0xd4)](_0x432dcc,_0x36abe5||'default');if(r(_0x855417)!=_0x3c1c13(0xd1))return _0x855417;throw TypeError(_0x3c1c13(0xf6));}return(_0x36abe5==='string'?String:Number)(_0x432dcc);}function a(_0x161823){const _0x193598=_0x1d16;var _0x21a55f=i(_0x161823,_0x193598(0xec));return r(_0x21a55f)==_0x193598(0xcb)?_0x21a55f:_0x21a55f+'';}function _0x1d16(_0x30268d,_0x45f7f7){_0x30268d=_0x30268d-0xcb;const _0x1cef46=_0x1cef();let _0x1d16fe=_0x1cef46[_0x30268d];return _0x1d16fe;}function o(_0x158afa,_0x10291a,_0x5534b9){return(_0x10291a=a(_0x10291a))in _0x158afa?Object['defineProperty'](_0x158afa,_0x10291a,{'value':_0x5534b9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x158afa[_0x10291a]=_0x5534b9,_0x158afa;}var s=class extends n[_0x1b61f7(0xf3)]{constructor(..._0x5cfd60){const _0x421410=_0x1b61f7;super(..._0x5cfd60),o(this,_0x421410(0xe6),void 0x0);}[_0x1b61f7(0xd3)](_0x5f60cc){const _0x1e581d=_0x1b61f7;this[_0x1e581d(0xe6)]=_0x5f60cc[_0x1e581d(0xe0)](e[_0x1e581d(0xf1)]);}[_0x1b61f7(0xea)](){const _0x255d24=_0x1b61f7;var _0x15cc7d;let _0x352b4a=this['_injector'][_0x255d24(0xe0)](t[_0x255d24(0xed)])[_0x255d24(0xe8)](t[_0x255d24(0xf5)][_0x255d24(0xcf)]);if(!_0x352b4a)throw Error('No\x20active\x20workbook\x20found.');let _0x3da8ea=_0x352b4a[_0x255d24(0xcd)](),_0x357850=this['_liveShareController'][_0x255d24(0xdc)](_0x3da8ea);return(_0x15cc7d=_0x357850==null?void 0x0:_0x357850[_0x255d24(0xd5)]())==null?e[_0x255d24(0xcc)][_0x255d24(0xda)]:_0x15cc7d;}[_0x1b61f7(0xdd)](){const _0x26f12c=_0x1b61f7;let _0xb9e1a4=this[_0x26f12c(0xf2)][_0x26f12c(0xe0)](t[_0x26f12c(0xed)])[_0x26f12c(0xe8)](t['UniverInstanceType']['UNIVER_SHEET']);if(!_0xb9e1a4)throw Error('No\x20active\x20workbook\x20found.');let _0x338c25=_0xb9e1a4[_0x26f12c(0xcd)](),_0x3bd8a2=this[_0x26f12c(0xe6)][_0x26f12c(0xdc)](_0x338c25);if(!_0x3bd8a2)throw Error(_0x26f12c(0xdb));_0x3bd8a2[_0x26f12c(0xdd)]();}[_0x1b61f7(0xf0)](){const _0x266517=_0x1b61f7;let _0x2422ac=this[_0x266517(0xf2)]['get'](t[_0x266517(0xed)])[_0x266517(0xe8)](t[_0x266517(0xf5)]['UNIVER_SHEET']);if(!_0x2422ac)throw Error(_0x266517(0xeb));let _0x2fd42a=_0x2422ac[_0x266517(0xcd)](),_0xb08d2e=this[_0x266517(0xe6)][_0x266517(0xdc)](_0x2fd42a);if(!_0xb08d2e)throw Error(_0x266517(0xdb));_0xb08d2e['stopFollowing']();}['startPresenting'](){const _0x46642c=_0x1b61f7;let _0x2f5950=this[_0x46642c(0xf2)][_0x46642c(0xe0)](t['IUniverInstanceService'])[_0x46642c(0xe8)](t[_0x46642c(0xf5)][_0x46642c(0xcf)]);if(!_0x2f5950)throw Error(_0x46642c(0xeb));let _0x13f684=_0x2f5950[_0x46642c(0xcd)](),_0x399f29=this[_0x46642c(0xe6)][_0x46642c(0xdc)](_0x13f684);if(!_0x399f29)throw Error(_0x46642c(0xdb));_0x399f29['tryStartPresenting']();}['stopPresenting'](){const _0xa8df0=_0x1b61f7;let _0x1bab80=this[_0xa8df0(0xf2)][_0xa8df0(0xe0)](t['IUniverInstanceService'])[_0xa8df0(0xe8)](t[_0xa8df0(0xf5)][_0xa8df0(0xcf)]);if(!_0x1bab80)throw Error(_0xa8df0(0xeb));let _0x463896=_0x1bab80['getUnitId'](),_0x5444df=this['_liveShareController'][_0xa8df0(0xdc)](_0x463896);if(!_0x5444df)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5444df['stopPresenting']();}};n['FUniver'][_0x1b61f7(0xe5)](s);var c=class extends n[_0x1b61f7(0xe3)]{get[_0x1b61f7(0xd9)](){return e['LiveShareStatus'];}};n[_0x1b61f7(0xe3)][_0x1b61f7(0xe5)](c);function _0x1cef(){const _0x14051e=['5qKyQwX','object','6oHHeJY','_initialize','call','getStatus','237111QKMRkM','1290097pcEYiS','function','LiveShareStatusEnum','IDLE','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareCoordinatorSync','startFollowing','10671001NfMeqm','2262758BCjPuC','get','prototype','8955qHKaun','FEnum','10024xoqhfG','extend','_liveShareController','toPrimitive','getCurrentUnitOfType','10CZaBPr','getLiveShareStatus','No\x20active\x20workbook\x20found.','string','IUniverInstanceService','12uoZIuM','64369019upOkOI','stopFollowing','LiveShareController','_injector','FUniver','3859876tlQYFt','UniverInstanceType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','LiveShareStatus','getUnitId','3BDjKSo','UNIVER_SHEET'];_0x1cef=function(){return _0x14051e;};return _0x1cef();}
1
+ const _0x5c1b22=_0x21ee;(function(_0x24970e,_0x2bad49){const _0x5ddef5=_0x21ee,_0x125859=_0x24970e();while(!![]){try{const _0x1a2bb1=parseInt(_0x5ddef5(0x1e4))/0x1*(-parseInt(_0x5ddef5(0x1f7))/0x2)+parseInt(_0x5ddef5(0x202))/0x3*(-parseInt(_0x5ddef5(0x1ff))/0x4)+parseInt(_0x5ddef5(0x205))/0x5*(parseInt(_0x5ddef5(0x1e3))/0x6)+-parseInt(_0x5ddef5(0x1df))/0x7+parseInt(_0x5ddef5(0x1de))/0x8*(parseInt(_0x5ddef5(0x1ee))/0x9)+-parseInt(_0x5ddef5(0x204))/0xa*(parseInt(_0x5ddef5(0x200))/0xb)+-parseInt(_0x5ddef5(0x1fc))/0xc*(-parseInt(_0x5ddef5(0x1fa))/0xd);if(_0x1a2bb1===_0x2bad49)break;else _0x125859['push'](_0x125859['shift']());}catch(_0x260d48){_0x125859['push'](_0x125859['shift']());}}}(_0x4f05,0x5ad5d));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x122b1b){'@babel/helpers - typeof';const _0x4d2e53=_0x21ee;return r=typeof Symbol==_0x4d2e53(0x1f6)&&typeof Symbol['iterator']==_0x4d2e53(0x1e8)?function(_0x55cfaa){return typeof _0x55cfaa;}:function(_0xc8711a){const _0x507dfe=_0x4d2e53;return _0xc8711a&&typeof Symbol==_0x507dfe(0x1f6)&&_0xc8711a[_0x507dfe(0x1e5)]===Symbol&&_0xc8711a!==Symbol[_0x507dfe(0x1da)]?_0x507dfe(0x1e8):typeof _0xc8711a;},r(_0x122b1b);}function i(_0x191480,_0x363974){const _0x4e0db6=_0x21ee;if(r(_0x191480)!=_0x4e0db6(0x1fd)||!_0x191480)return _0x191480;var _0x848f49=_0x191480[Symbol[_0x4e0db6(0x1dd)]];if(_0x848f49!==void 0x0){var _0x21bbd1=_0x848f49['call'](_0x191480,_0x363974||_0x4e0db6(0x1e1));if(r(_0x21bbd1)!=_0x4e0db6(0x1fd))return _0x21bbd1;throw TypeError(_0x4e0db6(0x1dc));}return(_0x363974===_0x4e0db6(0x1f0)?String:Number)(_0x191480);}function a(_0x3bc523){const _0x39d330=_0x21ee;var _0x11f0f0=i(_0x3bc523,_0x39d330(0x1f0));return r(_0x11f0f0)==_0x39d330(0x1e8)?_0x11f0f0:_0x11f0f0+'';}function _0x4f05(){const _0x345263=['default','UniverInstanceType','797586eEcwXZ','2203gQEOop','constructor','_liveShareController','tryStartPresenting','symbol','IDLE','LiveShareController','extend','startPresenting','get','63QxbsmH','_injector','string','getLiveShareCoordinatorSync','getStatus','stopPresenting','FUniver','getUnitId','function','220MhNgRb','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','5538ZnuZCw','stopFollowing','27660wSIJOk','object','IUniverInstanceService','888360UkHKUn','6809011LJTrbm','LiveShareStatus','3cuTDhN','getCurrentUnitOfType','10ewuqMp','10xbjQVy','FEnum','UNIVER_SHEET','prototype','No\x20active\x20workbook\x20found.','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','toPrimitive','355744KmwsYD','725102TBYTCt','defineProperty'];_0x4f05=function(){return _0x345263;};return _0x4f05();}function o(_0x266aa3,_0x308c2b,_0x1c4295){const _0x406a0d=_0x21ee;return(_0x308c2b=a(_0x308c2b))in _0x266aa3?Object[_0x406a0d(0x1e0)](_0x266aa3,_0x308c2b,{'value':_0x1c4295,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x266aa3[_0x308c2b]=_0x1c4295,_0x266aa3;}var s=class extends n[_0x5c1b22(0x1f4)]{constructor(..._0x4473f4){super(..._0x4473f4),o(this,'_liveShareController',void 0x0);}['_initialize'](_0x5ba7a3){const _0x3e487d=_0x5c1b22;this['_liveShareController']=_0x5ba7a3['get'](e[_0x3e487d(0x1ea)]);}['getLiveShareStatus'](){const _0x57ea69=_0x5c1b22;var _0xef896c;let _0x216953=this[_0x57ea69(0x1ef)]['get'](t[_0x57ea69(0x1fe)])[_0x57ea69(0x203)](t[_0x57ea69(0x1e2)][_0x57ea69(0x1d9)]);if(!_0x216953)throw Error(_0x57ea69(0x1db));let _0x5dd337=_0x216953[_0x57ea69(0x1f5)](),_0x201c86=this[_0x57ea69(0x1e6)][_0x57ea69(0x1f1)](_0x5dd337);return(_0xef896c=_0x201c86==null?void 0x0:_0x201c86[_0x57ea69(0x1f2)]())==null?e['LiveShareStatus'][_0x57ea69(0x1e9)]:_0xef896c;}[_0x5c1b22(0x1f9)](){const _0x28181f=_0x5c1b22;let _0x4a543b=this[_0x28181f(0x1ef)][_0x28181f(0x1ed)](t[_0x28181f(0x1fe)])[_0x28181f(0x203)](t['UniverInstanceType']['UNIVER_SHEET']);if(!_0x4a543b)throw Error('No\x20active\x20workbook\x20found.');let _0x57ff4a=_0x4a543b[_0x28181f(0x1f5)](),_0x4496fe=this[_0x28181f(0x1e6)][_0x28181f(0x1f1)](_0x57ff4a);if(!_0x4496fe)throw Error(_0x28181f(0x1f8));_0x4496fe[_0x28181f(0x1f9)]();}[_0x5c1b22(0x1fb)](){const _0x57d9fb=_0x5c1b22;let _0x6f64e8=this['_injector'][_0x57d9fb(0x1ed)](t[_0x57d9fb(0x1fe)])[_0x57d9fb(0x203)](t[_0x57d9fb(0x1e2)][_0x57d9fb(0x1d9)]);if(!_0x6f64e8)throw Error(_0x57d9fb(0x1db));let _0x2d468c=_0x6f64e8[_0x57d9fb(0x1f5)](),_0x2d4948=this[_0x57d9fb(0x1e6)][_0x57d9fb(0x1f1)](_0x2d468c);if(!_0x2d4948)throw Error(_0x57d9fb(0x1f8));_0x2d4948[_0x57d9fb(0x1fb)]();}[_0x5c1b22(0x1ec)](){const _0x3246d1=_0x5c1b22;let _0x11ddf0=this[_0x3246d1(0x1ef)][_0x3246d1(0x1ed)](t[_0x3246d1(0x1fe)])[_0x3246d1(0x203)](t[_0x3246d1(0x1e2)][_0x3246d1(0x1d9)]);if(!_0x11ddf0)throw Error(_0x3246d1(0x1db));let _0x5181ec=_0x11ddf0['getUnitId'](),_0xf4c73f=this[_0x3246d1(0x1e6)][_0x3246d1(0x1f1)](_0x5181ec);if(!_0xf4c73f)throw Error(_0x3246d1(0x1f8));_0xf4c73f[_0x3246d1(0x1e7)]();}[_0x5c1b22(0x1f3)](){const _0x291339=_0x5c1b22;let _0xb75311=this['_injector'][_0x291339(0x1ed)](t['IUniverInstanceService'])[_0x291339(0x203)](t[_0x291339(0x1e2)]['UNIVER_SHEET']);if(!_0xb75311)throw Error(_0x291339(0x1db));let _0x46906f=_0xb75311[_0x291339(0x1f5)](),_0x458a9a=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x46906f);if(!_0x458a9a)throw Error(_0x291339(0x1f8));_0x458a9a['stopPresenting']();}};n['FUniver'][_0x5c1b22(0x1eb)](s);var c=class extends n[_0x5c1b22(0x206)]{get['LiveShareStatusEnum'](){const _0x52027f=_0x5c1b22;return e[_0x52027f(0x201)];}};function _0x21ee(_0x5ca770,_0x2733b5){_0x5ca770=_0x5ca770-0x1d9;const _0x4f0581=_0x4f05();let _0x21eec3=_0x4f0581[_0x5ca770];return _0x21eec3;}n[_0x5c1b22(0x206)][_0x5c1b22(0x1eb)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x47a53a=_0x542f;(function(_0x38dd05,_0x2e0aab){const _0x2e5f6a=_0x542f,_0x21f631=_0x38dd05();while(!![]){try{const _0x29a6ff=-parseInt(_0x2e5f6a(0x1ef))/0x1*(-parseInt(_0x2e5f6a(0x1de))/0x2)+-parseInt(_0x2e5f6a(0x236))/0x3*(parseInt(_0x2e5f6a(0x197))/0x4)+-parseInt(_0x2e5f6a(0x222))/0x5+parseInt(_0x2e5f6a(0x1b7))/0x6+-parseInt(_0x2e5f6a(0x1d1))/0x7*(-parseInt(_0x2e5f6a(0x1ec))/0x8)+-parseInt(_0x2e5f6a(0x1ce))/0x9*(-parseInt(_0x2e5f6a(0x205))/0xa)+-parseInt(_0x2e5f6a(0x217))/0xb;if(_0x29a6ff===_0x2e0aab)break;else _0x21f631['push'](_0x21f631['shift']());}catch(_0x421a9b){_0x21f631['push'](_0x21f631['shift']());}}}(_0x2b2a,0xb807c),Object[_0x47a53a(0x1cd)](exports,Symbol[_0x47a53a(0x1e0)],{'value':_0x47a53a(0x1b0)}));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/sheets-ui'),s=require('@univerjs/ui'),c=require('@univerjs/design'),l=require('@univerjs/icons'),u=require('react'),d=require('react/jsx-runtime');function f(_0x4706da){'@babel/helpers - typeof';const _0x396bf7=_0x47a53a;return f=typeof Symbol=='function'&&typeof Symbol[_0x396bf7(0x240)]==_0x396bf7(0x195)?function(_0x4fbdd4){return typeof _0x4fbdd4;}:function(_0x4f26d1){const _0x4ab9b4=_0x396bf7;return _0x4f26d1&&typeof Symbol==_0x4ab9b4(0x1c0)&&_0x4f26d1[_0x4ab9b4(0x216)]===Symbol&&_0x4f26d1!==Symbol['prototype']?_0x4ab9b4(0x195):typeof _0x4f26d1;},f(_0x4706da);}function p(_0x578dea,_0x1c19f0){const _0x5c8b51=_0x47a53a;if(f(_0x578dea)!=_0x5c8b51(0x1b1)||!_0x578dea)return _0x578dea;var _0x1ea135=_0x578dea[Symbol['toPrimitive']];if(_0x1ea135!==void 0x0){var _0x41d578=_0x1ea135[_0x5c8b51(0x1d8)](_0x578dea,_0x1c19f0||'default');if(f(_0x41d578)!='object')return _0x41d578;throw TypeError(_0x5c8b51(0x19a));}return(_0x1c19f0===_0x5c8b51(0x20c)?String:Number)(_0x578dea);}function m(_0x28209a){const _0x21ab5e=_0x47a53a;var _0x79774f=p(_0x28209a,'string');return f(_0x79774f)==_0x21ab5e(0x195)?_0x79774f:_0x79774f+'';}function _0x2b2a(){const _0x12b579=['unitId','_presenter','defineProperty','9tcLPLj','useEffect','getTypeOfUnitAdded$','108563JZHkUs','useState','_startLiveShareCoordinator','BehaviorSubject','presenting','_init','status$','call','presenter','has','NOT_FOLLOWING','div','onCommandExecuted','2608984wLbNGp','IDLE','toStringTag','LiveShareStatus','Disposable','Fragment','onRendered','_stopFollowing','disposeWithMe','_stopPresenting','_injector','not-following','_entities','includes','760UhUTxB','You\x27re\x20following\x20the\x20presenter','HEADER_MENU','1CVlVaC','_startFollowing','touchDependencies','params','get','Plugin','text','offline','_configService','LIVESHARE_OPERATION','version','startFollowing','UNIVER_SHEET','_startPresenting','default','LiveShareIcon','stopPresenting','getStatus','mutations','CollaborationEvent','sheet','throttleTime','8684420AXclgr','LIVESHARE_FETCH_OPERATIONS','FOLLOWING','type','_mountLiveShare','_reporters','next','string','NEW_CHANGESETS','You\x27re\x20presenting\x20the\x20document','UniverInstanceType','LIVESHARE_TERMINATE','registerDependencies','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','decorate','jsx','forEach','constructor','25983518MDxhYE','DisposableCollection','idle','then','_status$','getUnitId','You\x27are\x20offline.','unsubscribe','UNIVER_LIVE_SHARE_PLUGIN','add','init','1899625LvJugH','_handleOffline','LIVESHARE_NEW_HOST','map','find','getConfig','IUniverInstanceService','event$','_commandService','jsxs','requireSession','_collabSession','DependentOn','button','toDisposable','subscribe','operations','_commandDisposable','from','_handleOperation','30ocKVLm','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','current','OPERATION','UNIVER_UNKNOWN','following','parse','_handleOnline','ICommandService','Stop\x20presenting','iterator','useObservable','_univerInstanceService','Inject','SessionStatus','univer-mb-3\x20univer-w-full\x20univer-text-sm','CollaborationSessionService','getValue','useDependency','Present\x20this\x20document','stopFollowing','end','getInitialStates','send','_handleTerminate','_beIdle','sessionStatus$','Start\x20following','override','packageName','_sharedOperations','symbol','Injector','526580OJbywj','_liveShareService','tryStartPresenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getLiveShareCoordinator','pluginName','Dropdown','asObservable','live-share.config','delete','OFFLINE','unit','complete','registerComponent','_status','pipe','Start','1.0.0-alpha.3','registerSharedOperation','RxDisposable','stringify','shouldShareOperation','_fetchOperations','executeCommand','Stop\x20following','Module','object','values','createInstance','_config','getCurrentTypeOfUnit$','_handleNewHost','6996072wQWHiN','onStarting','_handleNewChangeSets','SetWorksheetActiveOperation','Button','parseProtocolChangeset','length','_unitID','takeUntil','function','data','_collabSessionService','LiveShareController','BuiltInUIPart','getMemberID','dispose','PRESENTING','mergeOverrideWithDependencies','set','registerInitialStateReporter'];_0x2b2a=function(){return _0x12b579;};return _0x2b2a();}function h(_0x2c1659,_0x517f68,_0x321af0){const _0x59e200=_0x47a53a;return(_0x517f68=m(_0x517f68))in _0x2c1659?Object[_0x59e200(0x1cd)](_0x2c1659,_0x517f68,{'value':_0x321af0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2c1659[_0x517f68]=_0x321af0,_0x2c1659;}var g=class extends n['Disposable']{constructor(..._0xb36623){const _0x5eba21=_0x47a53a;super(..._0xb36623),h(this,_0x5eba21(0x194),new Set()),h(this,_0x5eba21(0x20a),new Set());}[_0x47a53a(0x1a9)](_0x305f49){const _0x154d9d=_0x47a53a;return this['_sharedOperations']['add'](_0x305f49),(0x0,n[_0x154d9d(0x230)])(()=>this[_0x154d9d(0x194)][_0x154d9d(0x1a0)](_0x305f49));}[_0x47a53a(0x1ca)](_0xb79d03){const _0x21ea50=_0x47a53a;return this[_0x21ea50(0x20a)][_0x21ea50(0x220)](_0xb79d03),(0x0,n[_0x21ea50(0x230)])(()=>this['_reporters'][_0x21ea50(0x1a0)](_0xb79d03));}['shouldShareOperation'](_0x45f6a6){const _0x220f7a=_0x47a53a;return this['_sharedOperations'][_0x220f7a(0x1da)](_0x45f6a6);}[_0x47a53a(0x18c)](_0x3c255b){const _0x2b4a14=_0x47a53a;return Array[_0x2b4a14(0x234)](this[_0x2b4a14(0x20a)])[_0x2b4a14(0x225)](_0x206add=>_0x206add(_0x3c255b));}};function _(_0x39b1b0,_0x24ab70){return function(_0x23aeda,_0x459c1f){_0x24ab70(_0x23aeda,_0x459c1f,_0x39b1b0);};}function v(_0x25e9c3,_0x46eb0d,_0x151c98,_0x5d6863){const _0x5c71ee=_0x47a53a;var _0x3064af=arguments[_0x5c71ee(0x1bd)],_0x2b5a70=_0x3064af<0x3?_0x46eb0d:_0x5d6863===null?_0x5d6863=Object['getOwnPropertyDescriptor'](_0x46eb0d,_0x151c98):_0x5d6863,_0x2a098c;if(typeof Reflect==_0x5c71ee(0x1b1)&&typeof Reflect[_0x5c71ee(0x213)]==_0x5c71ee(0x1c0))_0x2b5a70=Reflect[_0x5c71ee(0x213)](_0x25e9c3,_0x46eb0d,_0x151c98,_0x5d6863);else{for(var _0x12ba50=_0x25e9c3[_0x5c71ee(0x1bd)]-0x1;_0x12ba50>=0x0;_0x12ba50--)(_0x2a098c=_0x25e9c3[_0x12ba50])&&(_0x2b5a70=(_0x3064af<0x3?_0x2a098c(_0x2b5a70):_0x3064af>0x3?_0x2a098c(_0x46eb0d,_0x151c98,_0x2b5a70):_0x2a098c(_0x46eb0d,_0x151c98))||_0x2b5a70);}return _0x3064af>0x3&&_0x2b5a70&&Object[_0x5c71ee(0x1cd)](_0x46eb0d,_0x151c98,_0x2b5a70),_0x2b5a70;}let y=class extends n[_0x47a53a(0x1aa)]{constructor(_0x540b56,_0x5703f1,_0x27f65d){const _0x6ef908=_0x47a53a;super(),this[_0x6ef908(0x242)]=_0x540b56,this[_0x6ef908(0x1e8)]=_0x5703f1,this[_0x6ef908(0x1c2)]=_0x27f65d,h(this,_0x6ef908(0x1ea),new Map()),this['_init']();}async[_0x47a53a(0x19b)](_0x3af186){const _0x58dc57=_0x47a53a;return this[_0x58dc57(0x1ea)][_0x58dc57(0x1da)](_0x3af186)||await this[_0x58dc57(0x1d3)](_0x3af186),this[_0x58dc57(0x1ea)]['get'](_0x3af186);}['getLiveShareCoordinatorSync'](_0x139414){const _0x2a4013=_0x47a53a;var _0x1af1f8;return(_0x1af1f8=this['_entities'][_0x2a4013(0x1f3)](_0x139414))==null?null:_0x1af1f8;}[_0x47a53a(0x1d6)](){const _0x3a9222=_0x47a53a;this[_0x3a9222(0x242)][_0x3a9222(0x1d0)](n[_0x3a9222(0x20f)][_0x3a9222(0x1fb)])[_0x3a9222(0x1a6)]((0x0,a[_0x3a9222(0x1bf)])(this['dispose$']))[_0x3a9222(0x231)](async _0x47937a=>{const _0x13082f=_0x3a9222;let _0x18cf67=_0x47937a[_0x13082f(0x1a2)][_0x13082f(0x21c)]();this[_0x13082f(0x1ea)][_0x13082f(0x1da)](_0x18cf67)||this[_0x13082f(0x1d3)](_0x18cf67);}),this[_0x3a9222(0x242)]['getTypeOfUnitDisposed$'](n[_0x3a9222(0x20f)][_0x3a9222(0x1fb)])[_0x3a9222(0x1a6)]((0x0,a[_0x3a9222(0x1bf)])(this['dispose$']))[_0x3a9222(0x231)](_0x138eb2=>{const _0x355d74=_0x3a9222;let _0x24ce49=_0x138eb2[_0x355d74(0x21c)](),_0x55c3f9=this[_0x355d74(0x1ea)]['get'](_0x24ce49);_0x55c3f9==null||_0x55c3f9['dispose']();});}async[_0x47a53a(0x1d3)](_0xcc5916){const _0x57a1fe=_0x47a53a;let _0x4eee71=await this[_0x57a1fe(0x1c2)][_0x57a1fe(0x22c)](_0xcc5916),_0x47b70d=this[_0x57a1fe(0x1e8)][_0x57a1fe(0x1b3)](x,_0xcc5916,_0x4eee71);return _0x47b70d[_0x57a1fe(0x221)](),this[_0x57a1fe(0x1ea)][_0x57a1fe(0x1c9)](_0xcc5916,_0x47b70d),_0x47b70d;}};y=v([_(0x0,n[_0x47a53a(0x228)]),_(0x1,(0x0,n[_0x47a53a(0x243)])(n[_0x47a53a(0x196)])),_(0x2,(0x0,n[_0x47a53a(0x243)])(t[_0x47a53a(0x186)]))],y);let b=function(_0x242881){const _0x1b4ba6=_0x47a53a;return _0x242881[_0x1b4ba6(0x1a1)]=_0x1b4ba6(0x1f6),_0x242881[_0x1b4ba6(0x1df)]=_0x1b4ba6(0x219),_0x242881[_0x1b4ba6(0x207)]=_0x1b4ba6(0x23b),_0x242881[_0x1b4ba6(0x1db)]='not-following',_0x242881[_0x1b4ba6(0x1c7)]=_0x1b4ba6(0x1d5),_0x242881;}({}),x=class extends n[_0x47a53a(0x1aa)]{get['_status'](){const _0x3e13d4=_0x47a53a;return this[_0x3e13d4(0x21b)][_0x3e13d4(0x187)]();}constructor(_0x23d557,_0x3c0708,_0x6d4a9c,_0x33c3dd,_0x1fd6c7){const _0x168efa=_0x47a53a;super(),this[_0x168efa(0x1be)]=_0x23d557,this['_collabSession']=_0x3c0708,this[_0x168efa(0x1f7)]=_0x6d4a9c,this[_0x168efa(0x198)]=_0x33c3dd,this[_0x168efa(0x22a)]=_0x1fd6c7,h(this,_0x168efa(0x21b),new i[(_0x168efa(0x1d4))]('idle')),h(this,_0x168efa(0x1d7),this[_0x168efa(0x21b)][_0x168efa(0x19e)]()),h(this,_0x168efa(0x1d6),!0x1),h(this,_0x168efa(0x233),null),h(this,_0x168efa(0x1cc),null);}[_0x47a53a(0x1c6)](){const _0x49fe10=_0x47a53a;var _0x5176ae;(_0x5176ae=this[_0x49fe10(0x233)])==null||_0x5176ae[_0x49fe10(0x1c6)](),this[_0x49fe10(0x21b)][_0x49fe10(0x20b)](_0x49fe10(0x219)),this[_0x49fe10(0x21b)]['complete']();}[_0x47a53a(0x200)](){const _0xa2c47b=_0x47a53a;return this[_0xa2c47b(0x1a5)];}[_0x47a53a(0x221)](){const _0x5eaced=_0x47a53a;this[_0x5eaced(0x1d6)]||(this['_init']=!0x0,this[_0x5eaced(0x22d)][_0x5eaced(0x190)][_0x5eaced(0x1a6)]((0x0,a[_0x5eaced(0x1bf)])(this['dispose$']))[_0x5eaced(0x231)](_0x25c8d3=>{const _0x4810bc=_0x5eaced;switch(_0x25c8d3){case t[_0x4810bc(0x244)][_0x4810bc(0x1a1)]:this[_0x4810bc(0x223)]();break;case t[_0x4810bc(0x244)]['ONLINE']:this[_0x4810bc(0x23d)]();break;default:}}),this[_0x5eaced(0x22d)][_0x5eaced(0x229)][_0x5eaced(0x1a6)]((0x0,a[_0x5eaced(0x1bf)])(this['dispose$']))[_0x5eaced(0x231)](_0x2aa583=>{const _0x1da9b6=_0x5eaced;let {eventID:_0x4258d1}=_0x2aa583;switch(_0x4258d1){case e[_0x1da9b6(0x202)][_0x1da9b6(0x224)]:this['_handleNewHost'](_0x2aa583);break;case e['CollaborationEvent'][_0x1da9b6(0x1f8)]:this[_0x1da9b6(0x235)](_0x2aa583);break;case e[_0x1da9b6(0x202)]['LIVESHARE_TERMINATE']:this[_0x1da9b6(0x18e)]();break;case e[_0x1da9b6(0x202)][_0x1da9b6(0x20d)]:this[_0x1da9b6(0x1b9)](_0x2aa583);break;default:}}));}[_0x47a53a(0x199)](){const _0x9fd87a=_0x47a53a;this['_collabSession'][_0x9fd87a(0x18d)]({'eventID':e[_0x9fd87a(0x202)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x9fd87a(0x22d)][_0x9fd87a(0x1c5)]()}},this[_0x9fd87a(0x1be)]);}[_0x47a53a(0x1ff)](){const _0x4f4d02=_0x47a53a;this[_0x4f4d02(0x1a5)]===_0x4f4d02(0x1d5)&&(this[_0x4f4d02(0x21b)][_0x4f4d02(0x20b)](_0x4f4d02(0x219)),this[_0x4f4d02(0x22d)][_0x4f4d02(0x18d)]({'eventID':e['CollaborationEvent'][_0x4f4d02(0x210)],'data':{'unitID':this[_0x4f4d02(0x1be)]}},this[_0x4f4d02(0x1be)]));}[_0x47a53a(0x1fa)](){const _0x20544a=_0x47a53a;this[_0x20544a(0x1a5)]===_0x20544a(0x1e9)&&(this['_status$'][_0x20544a(0x20b)](_0x20544a(0x23b)),this[_0x20544a(0x1f0)]());}[_0x47a53a(0x18a)](){const _0x12d57b=_0x47a53a;this['_status']===_0x12d57b(0x23b)&&this[_0x12d57b(0x1e5)]();}[_0x47a53a(0x1b6)](_0x1767c3){const _0x3b444e=_0x47a53a;let {presenter:_0x2421eb}=_0x1767c3[_0x3b444e(0x1c1)],_0x125d37=this['_collabSession'][_0x3b444e(0x1c5)]();this[_0x3b444e(0x1cc)]=_0x2421eb,_0x2421eb===_0x125d37?(this[_0x3b444e(0x1e5)](),this[_0x3b444e(0x1fc)]()):this[_0x3b444e(0x1a5)]!=='not-following'&&(this[_0x3b444e(0x1e7)](),this[_0x3b444e(0x1f0)]());}[_0x47a53a(0x1ad)](){const _0x541731=_0x47a53a;let _0x5864d0={'eventID':e[_0x541731(0x202)][_0x541731(0x206)]};this['_collabSession']['send'](_0x5864d0,this[_0x541731(0x1be)]);}[_0x47a53a(0x18e)](){const _0x1d8d92=_0x47a53a;this[_0x1d8d92(0x1cc)]=null,this[_0x1d8d92(0x1a5)]!==_0x1d8d92(0x1d5)&&this[_0x1d8d92(0x18f)]();}[_0x47a53a(0x1b9)](_0x44f2a5){const _0x4742b6=_0x47a53a;if(this['_status']===_0x4742b6(0x23b)&&this[_0x4742b6(0x1cc)]===_0x44f2a5[_0x4742b6(0x1c1)]['memberID']){let _0x2206d5=(0x0,e[_0x4742b6(0x1bc)])(_0x44f2a5['data'])[_0x4742b6(0x201)]['reverse']()[_0x4742b6(0x226)](_0x2fb547=>_0x2fb547['id']===r['InsertSheetMutation']['id']);if(_0x2206d5){let _0x13b1df=_0x2206d5[_0x4742b6(0x1f2)][_0x4742b6(0x1cb)],_0x4b175b=_0x2206d5[_0x4742b6(0x1f2)][_0x4742b6(0x203)]['id'];setTimeout(()=>{const _0x3150fc=_0x4742b6;this[_0x3150fc(0x22a)][_0x3150fc(0x1ae)](r[_0x3150fc(0x1ba)]['id'],{'unitId':_0x13b1df,'subUnitId':_0x4b175b},{'fromCollab':!0x0});});}}}[_0x47a53a(0x1fc)](){const _0xd2cd1f=_0x47a53a;var _0x18be23;(_0x18be23=this[_0xd2cd1f(0x233)])==null||_0x18be23[_0xd2cd1f(0x1c6)](),this[_0xd2cd1f(0x21b)][_0xd2cd1f(0x20b)](_0xd2cd1f(0x1d5));let _0x56971d=new Map(),_0x2fa70c=this[_0xd2cd1f(0x233)]=new n[(_0xd2cd1f(0x218))]();_0x2fa70c['add']((0x0,n[_0xd2cd1f(0x230)])(()=>{_0x56971d['forEach'](({subject:_0x294317,subscription:_0x55904b})=>{const _0x3cd7cb=_0x542f;_0x55904b[_0x3cd7cb(0x21e)](),_0x294317[_0x3cd7cb(0x1a3)]();}),_0x56971d['clear']();})),_0x2fa70c['add'](this[_0xd2cd1f(0x22a)][_0xd2cd1f(0x1dd)](_0xc23ae5=>{const _0xa3e03c=_0xd2cd1f;if(_0xc23ae5[_0xa3e03c(0x208)]!==n['CommandType'][_0xa3e03c(0x239)]||!this[_0xa3e03c(0x198)][_0xa3e03c(0x1ac)](_0xc23ae5['id']))return;let {id:_0x154d13}=_0xc23ae5,_0x2531fe;if(_0x56971d[_0xa3e03c(0x1da)](_0x154d13))_0x2531fe=_0x56971d[_0xa3e03c(0x1f3)](_0x154d13)['subject'];else{var _0x33f39e;_0x2531fe=new i['Subject']();let _0x22dc1f=_0x2531fe[_0xa3e03c(0x1a6)]((0x0,a[_0xa3e03c(0x204)])((_0x33f39e=this['_configService'][_0xa3e03c(0x227)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x33f39e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xa3e03c(0x231)](_0x2de782=>{const _0x5d87df=_0xa3e03c;this[_0x5d87df(0x22d)][_0x5d87df(0x18d)]({'eventID':e[_0x5d87df(0x202)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5d87df(0x1be)],'operations':{[_0x2de782['id']]:{'id':_0x2de782['id'],'params':JSON['stringify'](_0x2de782[_0x5d87df(0x1f2)])}}}},this[_0x5d87df(0x1be)]);});_0x56971d[_0xa3e03c(0x1c9)](_0x154d13,{'subject':_0x2531fe,'subscription':_0x22dc1f});}_0x2531fe[_0xa3e03c(0x20b)](_0xc23ae5);})),this[_0xd2cd1f(0x198)][_0xd2cd1f(0x18c)](this[_0xd2cd1f(0x1be)])[_0xd2cd1f(0x215)](_0x4f2bdb=>this[_0xd2cd1f(0x22d)][_0xd2cd1f(0x18d)]({'eventID':e[_0xd2cd1f(0x202)][_0xd2cd1f(0x1f8)],'data':{'unitID':this['_unitID'],'operations':{[_0x4f2bdb['id']]:{'id':_0x4f2bdb['id'],'params':JSON[_0xd2cd1f(0x1ab)](_0x4f2bdb[_0xd2cd1f(0x1f2)])}}}},this[_0xd2cd1f(0x1be)]));}['_stopPresenting'](){const _0x49a2bb=_0x47a53a;var _0x45ba78;this[_0x49a2bb(0x21b)][_0x49a2bb(0x20b)]('idle'),(_0x45ba78=this[_0x49a2bb(0x233)])==null||_0x45ba78[_0x49a2bb(0x1c6)](),this['_commandDisposable']=null;}[_0x47a53a(0x1f0)](){const _0x4bba27=_0x47a53a;var _0x57dc58;(_0x57dc58=this[_0x4bba27(0x233)])==null||_0x57dc58['dispose'](),this[_0x4bba27(0x21b)][_0x4bba27(0x20b)]('following');}[_0x47a53a(0x18f)](){const _0x16a6d4=_0x47a53a;var _0x1e97e0;this[_0x16a6d4(0x21b)][_0x16a6d4(0x20b)](_0x16a6d4(0x219)),(_0x1e97e0=this[_0x16a6d4(0x233)])==null||_0x1e97e0['dispose'](),this[_0x16a6d4(0x233)]=null;}[_0x47a53a(0x1e5)](){const _0x576fac=_0x47a53a;var _0x3dbeee;this[_0x576fac(0x21b)][_0x576fac(0x20b)](_0x576fac(0x1e9)),(_0x3dbeee=this[_0x576fac(0x233)])==null||_0x3dbeee['dispose']();}[_0x47a53a(0x235)](_0x346e18){const _0x93fa77=_0x47a53a;if([_0x93fa77(0x1d5),'not-following','offline'][_0x93fa77(0x1eb)](this[_0x93fa77(0x1a5)])||!_0x346e18[_0x93fa77(0x1c1)][_0x93fa77(0x1d9)]||_0x346e18[_0x93fa77(0x1c1)][_0x93fa77(0x1d9)]===this['_collabSession'][_0x93fa77(0x1c5)]())return;this['_status']===_0x93fa77(0x219)&&this[_0x93fa77(0x1f0)]();let _0x1c6f4e=_0x346e18['data'][_0x93fa77(0x232)];Object[_0x93fa77(0x1b2)](_0x1c6f4e)[_0x93fa77(0x215)](_0x2117b4=>{const _0x2795db=_0x93fa77;this[_0x2795db(0x22a)]['executeCommand'](_0x2117b4['id'],_0x2117b4['params']?JSON[_0x2795db(0x23c)](_0x2117b4['params']):null,{'fromCollab':!0x0});});}[_0x47a53a(0x223)](){const _0x166d3c=_0x47a53a;var _0x4dbd11;this[_0x166d3c(0x21b)]['next'](_0x166d3c(0x1f6)),(_0x4dbd11=this[_0x166d3c(0x233)])==null||_0x4dbd11[_0x166d3c(0x1c6)]();}[_0x47a53a(0x23d)](){const _0x4fba92=_0x47a53a;this['_status$'][_0x4fba92(0x20b)]('idle'),this[_0x4fba92(0x1ad)]();}};x=v([_(0x2,n['IConfigService']),_(0x3,(0x0,n[_0x47a53a(0x243)])(g)),_(0x4,n[_0x47a53a(0x23e)])],x);var S='@univerjs-pro/live-share',C=_0x47a53a(0x1a8);const w={};let T=class extends n[_0x47a53a(0x1e2)]{constructor(_0x163ab3){const _0x62fe9=_0x47a53a;super(),this[_0x62fe9(0x198)]=_0x163ab3,this[_0x62fe9(0x1d6)]();}[_0x47a53a(0x1d6)](){const _0x154f36=_0x47a53a;[o['SetZoomRatioOperation']['id'],o['SetScrollOperation']['id'],r[_0x154f36(0x1ba)]['id']][_0x154f36(0x215)](_0x3f7575=>{const _0x3230bc=_0x154f36;this[_0x3230bc(0x1e6)](this[_0x3230bc(0x198)][_0x3230bc(0x1a9)](_0x3f7575));});}};T=v([_(0x0,(0x0,n[_0x47a53a(0x243)])(g))],T);function E(){const _0x21db8c=_0x47a53a;let _0x3b5da8=(0x0,s['useDependency'])(y),_0x2ec9d8=(0x0,s[_0x21db8c(0x188)])(n[_0x21db8c(0x228)]),_0x327b96=(0x0,s[_0x21db8c(0x241)])(()=>_0x2ec9d8[_0x21db8c(0x1b5)](n[_0x21db8c(0x20f)][_0x21db8c(0x1fb)]),void 0x0,!0x1,[]),[_0x2b7728,_0x1bab43]=(0x0,u['useState'])(null),[_0x2f3a3f,_0x277b1b]=(0x0,u[_0x21db8c(0x1d2)])(_0x21db8c(0x219)),_0x16d784=(0x0,u['useRef'])(null);return(0x0,u[_0x21db8c(0x1cf)])(()=>(_0x327b96&&_0x3b5da8[_0x21db8c(0x19b)](_0x327b96[_0x21db8c(0x21c)]())[_0x21db8c(0x21a)](_0x4a7f63=>{const _0x422eab=_0x21db8c;_0x1bab43(_0x4a7f63),_0x16d784[_0x422eab(0x238)]=_0x4a7f63[_0x422eab(0x1d7)][_0x422eab(0x231)](_0x20c189=>{_0x277b1b(_0x20c189);});}),()=>{const _0x2ebe19=_0x21db8c;var _0x1883ea;(_0x1883ea=_0x16d784[_0x2ebe19(0x238)])==null||_0x1883ea[_0x2ebe19(0x21e)](),_0x16d784[_0x2ebe19(0x238)]=null;}),[_0x327b96,_0x3b5da8]),_0x2b7728?(0x0,d[_0x21db8c(0x214)])(c[_0x21db8c(0x19d)],{'align':_0x21db8c(0x18b),'disabled':_0x2f3a3f===_0x21db8c(0x1f6),'className':_0x21db8c(0x212),'overlay':(0x0,d[_0x21db8c(0x214)])(D,{'status':_0x2f3a3f,'coordinator':_0x2b7728}),'children':(0x0,d[_0x21db8c(0x214)])(_0x21db8c(0x22f),{'className':(0x0,c['clsx'])(_0x21db8c(0x237),{'univer-cursor-not-allowed':_0x2f3a3f===_0x21db8c(0x1f6),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2f3a3f!==_0x21db8c(0x1f6)}),'type':_0x21db8c(0x22f),'children':(0x0,d[_0x21db8c(0x214)])(l[_0x21db8c(0x1fe)],{})})}):null;}function D(_0x597b52){const _0x207a2b=_0x47a53a;let {status:_0x52aa47,coordinator:_0x1833a7}=_0x597b52;switch(_0x52aa47){case _0x207a2b(0x219):return(0x0,d[_0x207a2b(0x214)])(O,{'coordinator':_0x1833a7});case'following':return(0x0,d[_0x207a2b(0x214)])(k,{'coordinator':_0x1833a7});case _0x207a2b(0x1e9):return(0x0,d['jsx'])(A,{'coordinator':_0x1833a7});case _0x207a2b(0x1f6):return(0x0,d[_0x207a2b(0x214)])(M,{});case'presenting':return(0x0,d[_0x207a2b(0x214)])(j,{'coordinator':_0x1833a7});default:return null;}}function O(_0x434ee6){const _0xec66fd=_0x47a53a;let {coordinator:_0x5a54dc}=_0x434ee6;return(0x0,d[_0xec66fd(0x22b)])(d[_0xec66fd(0x1e3)],{'children':[(0x0,d[_0xec66fd(0x214)])(_0xec66fd(0x1dc),{'className':_0xec66fd(0x185),'children':_0xec66fd(0x189)}),(0x0,d[_0xec66fd(0x214)])(c[_0xec66fd(0x1bb)],{'onClick':()=>_0x5a54dc['tryStartPresenting'](),'children':_0xec66fd(0x1a7)})]});}function k(_0x5c098b){const _0x100ac7=_0x47a53a;let {coordinator:_0x203b7a}=_0x5c098b;return(0x0,d[_0x100ac7(0x22b)])(d[_0x100ac7(0x1e3)],{'children':[(0x0,d['jsx'])(_0x100ac7(0x1dc),{'className':_0x100ac7(0x185),'children':_0x100ac7(0x1ed)}),(0x0,d[_0x100ac7(0x214)])(c['Button'],{'onClick':()=>_0x203b7a[_0x100ac7(0x18a)](),'children':_0x100ac7(0x1af)})]});}function A(_0x5ea70d){const _0x2446e7=_0x47a53a;let {coordinator:_0x20e9c5}=_0x5ea70d;return(0x0,d[_0x2446e7(0x22b)])(d[_0x2446e7(0x1e3)],{'children':[(0x0,d[_0x2446e7(0x214)])('div',{'className':_0x2446e7(0x185),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,d['jsx'])(c[_0x2446e7(0x1bb)],{'variant':_0x2446e7(0x1f5),'onClick':()=>_0x20e9c5[_0x2446e7(0x1fa)](),'children':_0x2446e7(0x191)})]});}function j(_0x2e1dc4){const _0x2ce472=_0x47a53a;let {coordinator:_0xc04f51}=_0x2e1dc4;return(0x0,d[_0x2ce472(0x22b)])(d[_0x2ce472(0x1e3)],{'children':[(0x0,d[_0x2ce472(0x214)])(_0x2ce472(0x1dc),{'className':_0x2ce472(0x185),'children':_0x2ce472(0x20e)}),(0x0,d[_0x2ce472(0x214)])(c['Button'],{'variant':_0x2ce472(0x1fd),'onClick':()=>_0xc04f51[_0x2ce472(0x1ff)](),'children':_0x2ce472(0x23f)})]});}function M(){const _0x546e31=_0x47a53a;return(0x0,d[_0x546e31(0x214)])(d[_0x546e31(0x1e3)],{'children':_0x546e31(0x21d)});}let N=class extends n[_0x47a53a(0x1e2)]{constructor(_0x4938d2,_0x43a952){const _0x562e9a=_0x47a53a;super(),this['_injector']=_0x4938d2,this['_uiPartsService']=_0x43a952,this[_0x562e9a(0x209)]();}[_0x47a53a(0x209)](){const _0x46c03a=_0x47a53a;this['disposeWithMe'](this['_uiPartsService'][_0x46c03a(0x1a4)](s[_0x46c03a(0x1c4)][_0x46c03a(0x1ee)],()=>(0x0,s['connectInjector'])(E,this[_0x46c03a(0x1e8)])));}};N=v([_(0x0,(0x0,n[_0x47a53a(0x243)])(n['Injector'])),_(0x1,s['IUIPartsService'])],N);function _0x542f(_0x585c0a,_0x5145bb){_0x585c0a=_0x585c0a-0x185;const _0x2b2a96=_0x2b2a();let _0x542fe9=_0x2b2a96[_0x585c0a];return _0x542fe9;}let P=class extends n[_0x47a53a(0x1f4)]{constructor(_0x1c8677=w,_0x318a47,_0x2477bc){const _0x171361=_0x47a53a;super(),this[_0x171361(0x1b4)]=_0x1c8677,this[_0x171361(0x1e8)]=_0x318a47,this[_0x171361(0x1f7)]=_0x2477bc;let {..._0x49dad1}=(0x0,n['merge'])({},w,this['_config']);this[_0x171361(0x1f7)]['setConfig'](_0x171361(0x19f),_0x49dad1);}[_0x47a53a(0x1b8)](){const _0x24996e=_0x47a53a;(0x0,n[_0x24996e(0x211)])(this[_0x24996e(0x1e8)],(0x0,n[_0x24996e(0x1c8)])([[g],[y],[T],[N]],this[_0x24996e(0x1b4)][_0x24996e(0x192)])),(0x0,n[_0x24996e(0x1f1)])(this[_0x24996e(0x1e8)],[[T]]);}[_0x47a53a(0x1e4)](){const _0x428e3f=_0x47a53a;(0x0,n[_0x428e3f(0x1f1)])(this[_0x428e3f(0x1e8)],[[N]]);}};h(P,_0x47a53a(0x208),n[_0x47a53a(0x20f)][_0x47a53a(0x23a)]),h(P,_0x47a53a(0x19c),_0x47a53a(0x21f)),h(P,_0x47a53a(0x193),S),h(P,_0x47a53a(0x1f9),C),P=v([(0x0,n[_0x47a53a(0x22e)])(t['UniverCollaborationClientPlugin']),_(0x1,(0x0,n['Inject'])(n[_0x47a53a(0x196)])),_(0x2,n['IConfigService'])],P),Object[_0x47a53a(0x1cd)](exports,_0x47a53a(0x1c3),{'enumerable':!0x0,'get':function(){return y;}}),exports[_0x47a53a(0x1e1)]=b,Object[_0x47a53a(0x1cd)](exports,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return P;}});
1
+ function _0x3365(_0x28d180,_0x4f7400){_0x28d180=_0x28d180-0x16d;const _0xa93055=_0xa930();let _0x3365e6=_0xa93055[_0x28d180];return _0x3365e6;}const _0x56be30=_0x3365;(function(_0x40e3d4,_0x5b9b21){const _0x23ecde=_0x3365,_0x16297c=_0x40e3d4();while(!![]){try{const _0x62b387=parseInt(_0x23ecde(0x202))/0x1*(parseInt(_0x23ecde(0x1e9))/0x2)+parseInt(_0x23ecde(0x1b8))/0x3+-parseInt(_0x23ecde(0x1af))/0x4*(parseInt(_0x23ecde(0x1e5))/0x5)+-parseInt(_0x23ecde(0x1ed))/0x6+-parseInt(_0x23ecde(0x17d))/0x7+-parseInt(_0x23ecde(0x16d))/0x8+parseInt(_0x23ecde(0x1b7))/0x9*(parseInt(_0x23ecde(0x1ef))/0xa);if(_0x62b387===_0x5b9b21)break;else _0x16297c['push'](_0x16297c['shift']());}catch(_0x5e4c29){_0x16297c['push'](_0x16297c['shift']());}}}(_0xa930,0xc4d8d),Object[_0x56be30(0x177)](exports,Symbol[_0x56be30(0x224)],{'value':_0x56be30(0x1c8)}));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/sheets-ui'),s=require('@univerjs/ui'),c=require('@univerjs/design'),l=require('@univerjs/icons'),u=require('react'),d=require('react/jsx-runtime');function _0xa930(){const _0xca5744=['symbol','Inject','CollaborationEvent','BuiltInUIPart','stringify','asObservable','toStringTag','disposeWithMe','9421592TNYITr','_unitID','_collabSessionService','IUIPartsService','PRESENTING','_handleOffline','NEW_CHANGESETS','delete','SessionStatus','registerInitialStateReporter','defineProperty','toDisposable','LIVESHARE_REQUEST_HOST','_entities','InsertSheetMutation','HEADER_MENU','8054319QGPDEA','LIVESHARE_FETCH_OPERATIONS','takeUntil','init','iterator','_collabSession','You\x27re\x20presenting\x20the\x20document','set','mutations','div','OFFLINE','_commandService','UniverCollaborationClientPlugin','prototype','Injector','_stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','object','SetWorksheetActiveOperation','packageName','getConfig','UNIVER_UNKNOWN','_handleOnline','jsx','sessionStatus$','subscribe','connectInjector','offline','getUnitId','get','function','forEach','dispose$','stopFollowing','unit','_startFollowing','getValue','live-share.config','call','IDLE','onRendered','_uiPartsService','getStatus','registerSharedOperation','length','_status','has','LIVESHARE_OPERATION','event$','pluginName','188KIjORt','1.0.0-alpha.4','getOwnPropertyDescriptor','touchDependencies','getLiveShareCoordinator','includes','startFollowing','_handleOperation','9cXJYQX','4385352qRVpXA','You\x27are\x20offline.','univer-mb-3\x20univer-w-full\x20univer-text-sm','FOLLOWING','LIVESHARE_TERMINATE','_startPresenting','registerComponent','Disposable','_liveShareService','constructor','CollaborationSessionService','stopPresenting','LiveShareStatus','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','onCommandExecuted','Module','BehaviorSubject','LiveShareIcon','You\x27re\x20following\x20the\x20presenter','following','version','getCurrentTypeOfUnit$','getMemberID','Fragment','getTypeOfUnitAdded$','not-following','decorate','_init','subject','_injector','override','getInitialStates','IUniverInstanceService','default','params','Button','parse','requireSession','text','next','from','presenter','registerDependencies','values','108065eAZnbR','_handleTerminate','_config','_univerInstanceService','412UrsVra','memberID','end','add','7478316ZskQps','clsx','23490200AaKoHO','pipe','RxDisposable','dispose','_handleNewChangeSets','mergeOverrideWithDependencies','UniverLiveSharePlugin','idle','send','_beIdle','_handleNewHost','setConfig','string','_presenter','unsubscribe','Present\x20this\x20document','useObservable','Stop\x20following','executeCommand','7699XPijNo','jsxs','button','find','_mountLiveShare','LIVESHARE_NEW_HOST','presenting','_reporters','complete','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','SetZoomRatioOperation','_configService','_stopFollowing','status$','tryStartPresenting','createInstance','IConfigService','_status$','Dropdown','getTypeOfUnitDisposed$','_sharedOperations','onStarting','ONLINE','UniverInstanceType','merge','UNIVER_SHEET','@univerjs-pro/live-share','data'];_0xa930=function(){return _0xca5744;};return _0xa930();}function f(_0x457b33){'@babel/helpers - typeof';const _0x172966=_0x56be30;return f=typeof Symbol==_0x172966(0x19b)&&typeof Symbol[_0x172966(0x181)]==_0x172966(0x21e)?function(_0x2905ea){return typeof _0x2905ea;}:function(_0x50b705){const _0x16114f=_0x172966;return _0x50b705&&typeof Symbol==_0x16114f(0x19b)&&_0x50b705[_0x16114f(0x1c1)]===Symbol&&_0x50b705!==Symbol[_0x16114f(0x18a)]?_0x16114f(0x21e):typeof _0x50b705;},f(_0x457b33);}function p(_0x1be13e,_0x364b09){const _0x33966f=_0x56be30;if(f(_0x1be13e)!=_0x33966f(0x18e)||!_0x1be13e)return _0x1be13e;var _0x13ba0b=_0x1be13e[Symbol['toPrimitive']];if(_0x13ba0b!==void 0x0){var _0x4972f5=_0x13ba0b[_0x33966f(0x1a3)](_0x1be13e,_0x364b09||_0x33966f(0x1da));if(f(_0x4972f5)!=_0x33966f(0x18e))return _0x4972f5;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x364b09===_0x33966f(0x1fb)?String:Number)(_0x1be13e);}function m(_0x13803f){const _0x3e1f59=_0x56be30;var _0x288b80=p(_0x13803f,_0x3e1f59(0x1fb));return f(_0x288b80)=='symbol'?_0x288b80:_0x288b80+'';}function h(_0x8c154f,_0xf9274,_0x577046){const _0x4e9c85=_0x56be30;return(_0xf9274=m(_0xf9274))in _0x8c154f?Object[_0x4e9c85(0x177)](_0x8c154f,_0xf9274,{'value':_0x577046,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x8c154f[_0xf9274]=_0x577046,_0x8c154f;}var g=class extends n[_0x56be30(0x1bf)]{constructor(..._0x48ce32){const _0x3cf651=_0x56be30;super(..._0x48ce32),h(this,_0x3cf651(0x216),new Set()),h(this,_0x3cf651(0x209),new Set());}[_0x56be30(0x1a8)](_0x274155){const _0x34cc7f=_0x56be30;return this[_0x34cc7f(0x216)][_0x34cc7f(0x1ec)](_0x274155),(0x0,n[_0x34cc7f(0x178)])(()=>this['_sharedOperations'][_0x34cc7f(0x174)](_0x274155));}[_0x56be30(0x176)](_0x273a51){const _0x427558=_0x56be30;return this[_0x427558(0x209)]['add'](_0x273a51),(0x0,n[_0x427558(0x178)])(()=>this[_0x427558(0x209)][_0x427558(0x174)](_0x273a51));}['shouldShareOperation'](_0x3f5417){const _0xb79130=_0x56be30;return this[_0xb79130(0x216)][_0xb79130(0x1ab)](_0x3f5417);}[_0x56be30(0x1d8)](_0x2d249b){const _0x30dab2=_0x56be30;return Array[_0x30dab2(0x1e1)](this[_0x30dab2(0x209)])['map'](_0x2ada9e=>_0x2ada9e(_0x2d249b));}};function _(_0x55282f,_0x419f33){return function(_0xdf533,_0x48663a){_0x419f33(_0xdf533,_0x48663a,_0x55282f);};}function v(_0x1abd71,_0x20a499,_0x8587c5,_0x49fd1e){const _0x102ca3=_0x56be30;var _0x1d6267=arguments[_0x102ca3(0x1a9)],_0x19cc54=_0x1d6267<0x3?_0x20a499:_0x49fd1e===null?_0x49fd1e=Object[_0x102ca3(0x1b1)](_0x20a499,_0x8587c5):_0x49fd1e,_0x2de9c4;if(typeof Reflect==_0x102ca3(0x18e)&&typeof Reflect[_0x102ca3(0x1d3)]=='function')_0x19cc54=Reflect[_0x102ca3(0x1d3)](_0x1abd71,_0x20a499,_0x8587c5,_0x49fd1e);else{for(var _0x4a927f=_0x1abd71[_0x102ca3(0x1a9)]-0x1;_0x4a927f>=0x0;_0x4a927f--)(_0x2de9c4=_0x1abd71[_0x4a927f])&&(_0x19cc54=(_0x1d6267<0x3?_0x2de9c4(_0x19cc54):_0x1d6267>0x3?_0x2de9c4(_0x20a499,_0x8587c5,_0x19cc54):_0x2de9c4(_0x20a499,_0x8587c5))||_0x19cc54);}return _0x1d6267>0x3&&_0x19cc54&&Object[_0x102ca3(0x177)](_0x20a499,_0x8587c5,_0x19cc54),_0x19cc54;}let y=class extends n[_0x56be30(0x1f1)]{constructor(_0x4d6956,_0xb7e885,_0x495bd1){const _0x177d12=_0x56be30;super(),this['_univerInstanceService']=_0x4d6956,this[_0x177d12(0x1d6)]=_0xb7e885,this[_0x177d12(0x16f)]=_0x495bd1,h(this,_0x177d12(0x17a),new Map()),this[_0x177d12(0x1d4)]();}async[_0x56be30(0x1b3)](_0x3828b8){const _0x528ed2=_0x56be30;return this[_0x528ed2(0x17a)][_0x528ed2(0x1ab)](_0x3828b8)||await this['_startLiveShareCoordinator'](_0x3828b8),this[_0x528ed2(0x17a)][_0x528ed2(0x19a)](_0x3828b8);}['getLiveShareCoordinatorSync'](_0xd6eeab){const _0x3f3f95=_0x56be30;var _0x3004c6;return(_0x3004c6=this[_0x3f3f95(0x17a)][_0x3f3f95(0x19a)](_0xd6eeab))==null?null:_0x3004c6;}[_0x56be30(0x1d4)](){const _0x230c5a=_0x56be30;this[_0x230c5a(0x1e8)][_0x230c5a(0x1d1)](n[_0x230c5a(0x219)][_0x230c5a(0x21b)])['pipe']((0x0,a['takeUntil'])(this[_0x230c5a(0x19d)]))[_0x230c5a(0x196)](async _0x4ac9e2=>{const _0x2fb599=_0x230c5a;let _0x40ad76=_0x4ac9e2[_0x2fb599(0x19f)]['getUnitId']();this[_0x2fb599(0x17a)][_0x2fb599(0x1ab)](_0x40ad76)||this['_startLiveShareCoordinator'](_0x40ad76);}),this[_0x230c5a(0x1e8)][_0x230c5a(0x215)](n[_0x230c5a(0x219)][_0x230c5a(0x21b)])[_0x230c5a(0x1f0)]((0x0,a[_0x230c5a(0x17f)])(this[_0x230c5a(0x19d)]))['subscribe'](_0x3b372d=>{const _0x578adc=_0x230c5a;let _0xa6b099=_0x3b372d[_0x578adc(0x199)](),_0x4b2961=this[_0x578adc(0x17a)][_0x578adc(0x19a)](_0xa6b099);_0x4b2961==null||_0x4b2961[_0x578adc(0x1f2)]();});}async['_startLiveShareCoordinator'](_0x26e4fa){const _0x16b337=_0x56be30;let _0x408484=await this['_collabSessionService'][_0x16b337(0x1de)](_0x26e4fa),_0x3710f2=this['_injector'][_0x16b337(0x211)](x,_0x26e4fa,_0x408484);return _0x3710f2[_0x16b337(0x180)](),this[_0x16b337(0x17a)][_0x16b337(0x184)](_0x26e4fa,_0x3710f2),_0x3710f2;}};y=v([_(0x0,n[_0x56be30(0x1d9)]),_(0x1,(0x0,n['Inject'])(n[_0x56be30(0x18b)])),_(0x2,(0x0,n[_0x56be30(0x21f)])(t[_0x56be30(0x1c2)]))],y);let b=function(_0x1c23df){const _0x674bfa=_0x56be30;return _0x1c23df[_0x674bfa(0x187)]=_0x674bfa(0x198),_0x1c23df[_0x674bfa(0x1a4)]='idle',_0x1c23df[_0x674bfa(0x1bb)]=_0x674bfa(0x1cc),_0x1c23df['NOT_FOLLOWING']=_0x674bfa(0x1d2),_0x1c23df[_0x674bfa(0x171)]=_0x674bfa(0x208),_0x1c23df;}({}),x=class extends n[_0x56be30(0x1f1)]{get['_status'](){const _0x3840a2=_0x56be30;return this[_0x3840a2(0x213)][_0x3840a2(0x1a1)]();}constructor(_0x593afa,_0x2c943f,_0x590c06,_0x223044,_0x582dc0){const _0x118bfa=_0x56be30;super(),this['_unitID']=_0x593afa,this[_0x118bfa(0x182)]=_0x2c943f,this[_0x118bfa(0x20d)]=_0x590c06,this['_liveShareService']=_0x223044,this[_0x118bfa(0x188)]=_0x582dc0,h(this,'_status$',new i[(_0x118bfa(0x1c9))](_0x118bfa(0x1f6))),h(this,_0x118bfa(0x20f),this[_0x118bfa(0x213)][_0x118bfa(0x223)]()),h(this,_0x118bfa(0x1d4),!0x1),h(this,_0x118bfa(0x1c6),null),h(this,_0x118bfa(0x1fc),null);}[_0x56be30(0x1f2)](){const _0x2eab5b=_0x56be30;var _0x1e3416;(_0x1e3416=this[_0x2eab5b(0x1c6)])==null||_0x1e3416['dispose'](),this[_0x2eab5b(0x213)][_0x2eab5b(0x1e0)](_0x2eab5b(0x1f6)),this[_0x2eab5b(0x213)][_0x2eab5b(0x20a)]();}[_0x56be30(0x1a7)](){const _0x53b604=_0x56be30;return this[_0x53b604(0x1aa)];}['init'](){const _0x506fd6=_0x56be30;this[_0x506fd6(0x1d4)]||(this[_0x506fd6(0x1d4)]=!0x0,this[_0x506fd6(0x182)][_0x506fd6(0x195)][_0x506fd6(0x1f0)]((0x0,a[_0x506fd6(0x17f)])(this['dispose$']))[_0x506fd6(0x196)](_0x1caa59=>{const _0x597ca6=_0x506fd6;switch(_0x1caa59){case t[_0x597ca6(0x175)][_0x597ca6(0x187)]:this[_0x597ca6(0x172)]();break;case t[_0x597ca6(0x175)][_0x597ca6(0x218)]:this[_0x597ca6(0x193)]();break;default:}}),this[_0x506fd6(0x182)][_0x506fd6(0x1ad)][_0x506fd6(0x1f0)]((0x0,a['takeUntil'])(this[_0x506fd6(0x19d)]))['subscribe'](_0xfe3dfb=>{const _0x30fac6=_0x506fd6;let {eventID:_0x508d54}=_0xfe3dfb;switch(_0x508d54){case e[_0x30fac6(0x220)][_0x30fac6(0x207)]:this[_0x30fac6(0x1f9)](_0xfe3dfb);break;case e[_0x30fac6(0x220)][_0x30fac6(0x1ac)]:this[_0x30fac6(0x1b6)](_0xfe3dfb);break;case e[_0x30fac6(0x220)][_0x30fac6(0x1bc)]:this['_handleTerminate']();break;case e[_0x30fac6(0x220)][_0x30fac6(0x173)]:this[_0x30fac6(0x1f3)](_0xfe3dfb);break;default:}}));}['tryStartPresenting'](){const _0x3b6074=_0x56be30;this[_0x3b6074(0x182)][_0x3b6074(0x1f7)]({'eventID':e[_0x3b6074(0x220)][_0x3b6074(0x179)],'data':{'unitID':this[_0x3b6074(0x16e)],'userID':this[_0x3b6074(0x182)][_0x3b6074(0x1cf)]()}},this[_0x3b6074(0x16e)]);}[_0x56be30(0x1c3)](){const _0x5d34fa=_0x56be30;this[_0x5d34fa(0x1aa)]===_0x5d34fa(0x208)&&(this[_0x5d34fa(0x213)][_0x5d34fa(0x1e0)]('idle'),this[_0x5d34fa(0x182)][_0x5d34fa(0x1f7)]({'eventID':e[_0x5d34fa(0x220)][_0x5d34fa(0x1bc)],'data':{'unitID':this[_0x5d34fa(0x16e)]}},this[_0x5d34fa(0x16e)]));}[_0x56be30(0x1b5)](){const _0xd8bfd6=_0x56be30;this[_0xd8bfd6(0x1aa)]===_0xd8bfd6(0x1d2)&&(this['_status$']['next'](_0xd8bfd6(0x1cc)),this[_0xd8bfd6(0x1a0)]());}[_0x56be30(0x19e)](){const _0x395cb0=_0x56be30;this['_status']===_0x395cb0(0x1cc)&&this[_0x395cb0(0x20e)]();}[_0x56be30(0x1f9)](_0x2786cc){const _0x27567e=_0x56be30;let {presenter:_0x55256b}=_0x2786cc[_0x27567e(0x21d)],_0x5c9e47=this[_0x27567e(0x182)]['getMemberID']();this[_0x27567e(0x1fc)]=_0x55256b,_0x55256b===_0x5c9e47?(this[_0x27567e(0x20e)](),this[_0x27567e(0x1bd)]()):this[_0x27567e(0x1aa)]!=='not-following'&&(this['_stopPresenting'](),this[_0x27567e(0x1a0)]());}['_fetchOperations'](){const _0x4d4d64=_0x56be30;let _0x5d202a={'eventID':e[_0x4d4d64(0x220)][_0x4d4d64(0x17e)]};this[_0x4d4d64(0x182)][_0x4d4d64(0x1f7)](_0x5d202a,this['_unitID']);}[_0x56be30(0x1e6)](){const _0x2be823=_0x56be30;this[_0x2be823(0x1fc)]=null,this[_0x2be823(0x1aa)]!==_0x2be823(0x208)&&this[_0x2be823(0x1f8)]();}[_0x56be30(0x1f3)](_0xa5223f){const _0x273cd3=_0x56be30;if(this[_0x273cd3(0x1aa)]===_0x273cd3(0x1cc)&&this['_presenter']===_0xa5223f['data'][_0x273cd3(0x1ea)]){let _0x310418=(0x0,e['parseProtocolChangeset'])(_0xa5223f[_0x273cd3(0x21d)])[_0x273cd3(0x185)]['reverse']()[_0x273cd3(0x205)](_0x3baf54=>_0x3baf54['id']===r[_0x273cd3(0x17b)]['id']);if(_0x310418){let _0x304640=_0x310418['params']['unitId'],_0x2c5919=_0x310418[_0x273cd3(0x1db)]['sheet']['id'];setTimeout(()=>{const _0x4d178b=_0x273cd3;this[_0x4d178b(0x188)][_0x4d178b(0x201)](r[_0x4d178b(0x18f)]['id'],{'unitId':_0x304640,'subUnitId':_0x2c5919},{'fromCollab':!0x0});});}}}[_0x56be30(0x1bd)](){const _0x5d8460=_0x56be30;var _0x4e2053;(_0x4e2053=this[_0x5d8460(0x1c6)])==null||_0x4e2053[_0x5d8460(0x1f2)](),this[_0x5d8460(0x213)][_0x5d8460(0x1e0)]('presenting');let _0x5e1d04=new Map(),_0x2290e9=this[_0x5d8460(0x1c6)]=new n['DisposableCollection']();_0x2290e9[_0x5d8460(0x1ec)]((0x0,n[_0x5d8460(0x178)])(()=>{const _0x5ea514=_0x5d8460;_0x5e1d04[_0x5ea514(0x19c)](({subject:_0x59e644,subscription:_0x415be1})=>{const _0xce5aa7=_0x5ea514;_0x415be1[_0xce5aa7(0x1fd)](),_0x59e644[_0xce5aa7(0x20a)]();}),_0x5e1d04['clear']();})),_0x2290e9['add'](this[_0x5d8460(0x188)][_0x5d8460(0x1c7)](_0x5939b7=>{const _0x20fc1e=_0x5d8460;if(_0x5939b7['type']!==n['CommandType']['OPERATION']||!this[_0x20fc1e(0x1c0)]['shouldShareOperation'](_0x5939b7['id']))return;let {id:_0x2cb095}=_0x5939b7,_0x687b06;if(_0x5e1d04['has'](_0x2cb095))_0x687b06=_0x5e1d04[_0x20fc1e(0x19a)](_0x2cb095)[_0x20fc1e(0x1d5)];else{var _0x2d4882;_0x687b06=new i['Subject']();let _0x2ef1c3=_0x687b06[_0x20fc1e(0x1f0)]((0x0,a['throttleTime'])((_0x2d4882=this[_0x20fc1e(0x20d)][_0x20fc1e(0x191)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2d4882,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x20fc1e(0x196)](_0x5495eb=>{const _0x122e79=_0x20fc1e;this[_0x122e79(0x182)][_0x122e79(0x1f7)]({'eventID':e[_0x122e79(0x220)][_0x122e79(0x1ac)],'data':{'unitID':this['_unitID'],'operations':{[_0x5495eb['id']]:{'id':_0x5495eb['id'],'params':JSON['stringify'](_0x5495eb[_0x122e79(0x1db)])}}}},this[_0x122e79(0x16e)]);});_0x5e1d04[_0x20fc1e(0x184)](_0x2cb095,{'subject':_0x687b06,'subscription':_0x2ef1c3});}_0x687b06[_0x20fc1e(0x1e0)](_0x5939b7);})),this[_0x5d8460(0x1c0)][_0x5d8460(0x1d8)](this['_unitID'])[_0x5d8460(0x19c)](_0x583909=>this[_0x5d8460(0x182)][_0x5d8460(0x1f7)]({'eventID':e[_0x5d8460(0x220)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5d8460(0x16e)],'operations':{[_0x583909['id']]:{'id':_0x583909['id'],'params':JSON[_0x5d8460(0x222)](_0x583909[_0x5d8460(0x1db)])}}}},this['_unitID']));}[_0x56be30(0x18c)](){const _0x5d02e1=_0x56be30;var _0x23d37c;this[_0x5d02e1(0x213)]['next'](_0x5d02e1(0x1f6)),(_0x23d37c=this[_0x5d02e1(0x1c6)])==null||_0x23d37c[_0x5d02e1(0x1f2)](),this['_commandDisposable']=null;}[_0x56be30(0x1a0)](){const _0xcd49ee=_0x56be30;var _0x52699d;(_0x52699d=this['_commandDisposable'])==null||_0x52699d[_0xcd49ee(0x1f2)](),this[_0xcd49ee(0x213)][_0xcd49ee(0x1e0)](_0xcd49ee(0x1cc));}['_beIdle'](){const _0x512cd9=_0x56be30;var _0x4124ed;this[_0x512cd9(0x213)][_0x512cd9(0x1e0)](_0x512cd9(0x1f6)),(_0x4124ed=this[_0x512cd9(0x1c6)])==null||_0x4124ed[_0x512cd9(0x1f2)](),this[_0x512cd9(0x1c6)]=null;}[_0x56be30(0x20e)](){const _0x34cd17=_0x56be30;var _0x34bb33;this[_0x34cd17(0x213)][_0x34cd17(0x1e0)](_0x34cd17(0x1d2)),(_0x34bb33=this[_0x34cd17(0x1c6)])==null||_0x34bb33[_0x34cd17(0x1f2)]();}[_0x56be30(0x1b6)](_0x4fe4bd){const _0x1a43da=_0x56be30;if([_0x1a43da(0x208),_0x1a43da(0x1d2),'offline'][_0x1a43da(0x1b4)](this[_0x1a43da(0x1aa)])||!_0x4fe4bd[_0x1a43da(0x21d)][_0x1a43da(0x1e2)]||_0x4fe4bd[_0x1a43da(0x21d)][_0x1a43da(0x1e2)]===this['_collabSession']['getMemberID']())return;this[_0x1a43da(0x1aa)]===_0x1a43da(0x1f6)&&this['_startFollowing']();let _0x186f96=_0x4fe4bd[_0x1a43da(0x21d)]['operations'];Object[_0x1a43da(0x1e4)](_0x186f96)[_0x1a43da(0x19c)](_0xd9a98c=>{const _0x480d58=_0x1a43da;this[_0x480d58(0x188)][_0x480d58(0x201)](_0xd9a98c['id'],_0xd9a98c['params']?JSON[_0x480d58(0x1dd)](_0xd9a98c[_0x480d58(0x1db)]):null,{'fromCollab':!0x0});});}[_0x56be30(0x172)](){const _0x2637e6=_0x56be30;var _0x10b4d6;this[_0x2637e6(0x213)]['next']('offline'),(_0x10b4d6=this[_0x2637e6(0x1c6)])==null||_0x10b4d6['dispose']();}['_handleOnline'](){const _0x352dea=_0x56be30;this[_0x352dea(0x213)]['next'](_0x352dea(0x1f6)),this['_fetchOperations']();}};x=v([_(0x2,n[_0x56be30(0x212)]),_(0x3,(0x0,n[_0x56be30(0x21f)])(g)),_(0x4,n['ICommandService'])],x);var S=_0x56be30(0x21c),C=_0x56be30(0x1b0);const w={};let T=class extends n[_0x56be30(0x1bf)]{constructor(_0x136539){const _0x18b51a=_0x56be30;super(),this[_0x18b51a(0x1c0)]=_0x136539,this['_init']();}[_0x56be30(0x1d4)](){const _0x27ecf2=_0x56be30;[o[_0x27ecf2(0x20c)]['id'],o['SetScrollOperation']['id'],r[_0x27ecf2(0x18f)]['id']][_0x27ecf2(0x19c)](_0xf086ca=>{const _0x239b93=_0x27ecf2;this[_0x239b93(0x225)](this[_0x239b93(0x1c0)][_0x239b93(0x1a8)](_0xf086ca));});}};T=v([_(0x0,(0x0,n['Inject'])(g))],T);function E(){const _0x1b18ac=_0x56be30;let _0x3307a4=(0x0,s['useDependency'])(y),_0x1b8ae4=(0x0,s['useDependency'])(n[_0x1b18ac(0x1d9)]),_0x20cfac=(0x0,s[_0x1b18ac(0x1ff)])(()=>_0x1b8ae4[_0x1b18ac(0x1ce)](n['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),_0x471a20=(0x0,s[_0x1b18ac(0x1ff)])((0x0,u['useMemo'])(()=>_0x20cfac?(0x0,i['defer'])(()=>(0x0,i['from'])(_0x3307a4[_0x1b18ac(0x1b3)](_0x20cfac[_0x1b18ac(0x199)]()))):(0x0,i['of'])(null),[_0x20cfac,_0x3307a4]),null),_0x17edaa=(0x0,s[_0x1b18ac(0x1ff)])(_0x471a20?()=>_0x471a20[_0x1b18ac(0x20f)]:null,_0x1b18ac(0x1f6),!0x1,[_0x471a20]);return _0x471a20?(0x0,d['jsx'])(c[_0x1b18ac(0x214)],{'align':_0x1b18ac(0x1eb),'disabled':_0x17edaa===_0x1b18ac(0x198),'className':_0x1b18ac(0x20b),'overlay':(0x0,d[_0x1b18ac(0x194)])(D,{'status':_0x17edaa,'coordinator':_0x471a20}),'children':(0x0,d['jsx'])(_0x1b18ac(0x204),{'className':(0x0,c[_0x1b18ac(0x1ee)])(_0x1b18ac(0x1c5),{'univer-cursor-not-allowed':_0x17edaa==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17edaa!==_0x1b18ac(0x198)}),'type':_0x1b18ac(0x204),'children':(0x0,d[_0x1b18ac(0x194)])(l[_0x1b18ac(0x1ca)],{})})}):null;}function D(_0x37090b){const _0x4c9f44=_0x56be30;let {status:_0x316a69,coordinator:_0x2bfdac}=_0x37090b;switch(_0x316a69){case _0x4c9f44(0x1f6):return(0x0,d[_0x4c9f44(0x194)])(O,{'coordinator':_0x2bfdac});case _0x4c9f44(0x1cc):return(0x0,d[_0x4c9f44(0x194)])(k,{'coordinator':_0x2bfdac});case _0x4c9f44(0x1d2):return(0x0,d[_0x4c9f44(0x194)])(A,{'coordinator':_0x2bfdac});case _0x4c9f44(0x198):return(0x0,d[_0x4c9f44(0x194)])(M,{});case _0x4c9f44(0x208):return(0x0,d[_0x4c9f44(0x194)])(j,{'coordinator':_0x2bfdac});default:return null;}}function O(_0x304489){const _0x2fb78e=_0x56be30;let {coordinator:_0xbe7716}=_0x304489;return(0x0,d[_0x2fb78e(0x203)])(d[_0x2fb78e(0x1d0)],{'children':[(0x0,d['jsx'])(_0x2fb78e(0x186),{'className':_0x2fb78e(0x1ba),'children':_0x2fb78e(0x1fe)}),(0x0,d[_0x2fb78e(0x194)])(c[_0x2fb78e(0x1dc)],{'onClick':()=>_0xbe7716[_0x2fb78e(0x210)](),'children':'Start'})]});}function k(_0x57a92d){const _0x4fb0e2=_0x56be30;let {coordinator:_0x426643}=_0x57a92d;return(0x0,d[_0x4fb0e2(0x203)])(d['Fragment'],{'children':[(0x0,d[_0x4fb0e2(0x194)])(_0x4fb0e2(0x186),{'className':_0x4fb0e2(0x1ba),'children':_0x4fb0e2(0x1cb)}),(0x0,d['jsx'])(c['Button'],{'onClick':()=>_0x426643[_0x4fb0e2(0x19e)](),'children':_0x4fb0e2(0x200)})]});}function A(_0x33430d){const _0x4da32a=_0x56be30;let {coordinator:_0x20abd2}=_0x33430d;return(0x0,d[_0x4da32a(0x203)])(d[_0x4da32a(0x1d0)],{'children':[(0x0,d[_0x4da32a(0x194)])(_0x4da32a(0x186),{'className':_0x4da32a(0x1ba),'children':_0x4da32a(0x18d)}),(0x0,d[_0x4da32a(0x194)])(c['Button'],{'variant':_0x4da32a(0x1df),'onClick':()=>_0x20abd2[_0x4da32a(0x1b5)](),'children':'Start\x20following'})]});}function j(_0x5ae515){const _0xbe6b4b=_0x56be30;let {coordinator:_0x21e1bb}=_0x5ae515;return(0x0,d[_0xbe6b4b(0x203)])(d[_0xbe6b4b(0x1d0)],{'children':[(0x0,d[_0xbe6b4b(0x194)])(_0xbe6b4b(0x186),{'className':_0xbe6b4b(0x1ba),'children':_0xbe6b4b(0x183)}),(0x0,d[_0xbe6b4b(0x194)])(c[_0xbe6b4b(0x1dc)],{'variant':_0xbe6b4b(0x1da),'onClick':()=>_0x21e1bb[_0xbe6b4b(0x1c3)](),'children':'Stop\x20presenting'})]});}function M(){const _0x4efe72=_0x56be30;return(0x0,d[_0x4efe72(0x194)])(d['Fragment'],{'children':_0x4efe72(0x1b9)});}let N=class extends n[_0x56be30(0x1bf)]{constructor(_0x3dfe20,_0x3426c1){const _0x5e9ee9=_0x56be30;super(),this[_0x5e9ee9(0x1d6)]=_0x3dfe20,this[_0x5e9ee9(0x1a6)]=_0x3426c1,this[_0x5e9ee9(0x206)]();}[_0x56be30(0x206)](){const _0x908d60=_0x56be30;this[_0x908d60(0x225)](this[_0x908d60(0x1a6)][_0x908d60(0x1be)](s[_0x908d60(0x221)][_0x908d60(0x17c)],()=>(0x0,s[_0x908d60(0x197)])(E,this[_0x908d60(0x1d6)])));}};N=v([_(0x0,(0x0,n[_0x56be30(0x21f)])(n['Injector'])),_(0x1,s[_0x56be30(0x170)])],N);let P=class extends n['Plugin']{constructor(_0x208db4=w,_0x1e2e74,_0x255f7b){const _0xefb613=_0x56be30;super(),this[_0xefb613(0x1e7)]=_0x208db4,this['_injector']=_0x1e2e74,this['_configService']=_0x255f7b;let {..._0x52f35c}=(0x0,n[_0xefb613(0x21a)])({},w,this[_0xefb613(0x1e7)]);this[_0xefb613(0x20d)][_0xefb613(0x1fa)](_0xefb613(0x1a2),_0x52f35c);}[_0x56be30(0x217)](){const _0x2d608b=_0x56be30;(0x0,n[_0x2d608b(0x1e3)])(this[_0x2d608b(0x1d6)],(0x0,n[_0x2d608b(0x1f4)])([[g],[y],[T],[N]],this[_0x2d608b(0x1e7)][_0x2d608b(0x1d7)])),(0x0,n[_0x2d608b(0x1b2)])(this[_0x2d608b(0x1d6)],[[T]]);}[_0x56be30(0x1a5)](){const _0x46c376=_0x56be30;(0x0,n[_0x46c376(0x1b2)])(this[_0x46c376(0x1d6)],[[N]]);}};h(P,'type',n[_0x56be30(0x219)][_0x56be30(0x192)]),h(P,_0x56be30(0x1ae),'UNIVER_LIVE_SHARE_PLUGIN'),h(P,_0x56be30(0x190),S),h(P,_0x56be30(0x1cd),C),P=v([(0x0,n['DependentOn'])(t[_0x56be30(0x189)]),_(0x1,(0x0,n['Inject'])(n[_0x56be30(0x18b)])),_(0x2,n['IConfigService'])],P),Object[_0x56be30(0x177)](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return y;}}),exports[_0x56be30(0x1c4)]=b,Object[_0x56be30(0x177)](exports,_0x56be30(0x1f5),{'enumerable':!0x0,'get':function(){return P;}});
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x581879=_0x19a0;function _0x1f62(){const _0x132769=['3814977JPYlPM','IDLE','30616kNbftX','call','1174090qeWUfI','2LglRxO','getCurrentUnitOfType','4unbTuV','getLiveShareCoordinatorSync','function','No\x20active\x20workbook\x20found.','stopFollowing','5319867EYkmqw','getUnitId','startFollowing','6310005GdqpNT','_initialize','LiveShareStatusEnum','get','getStatus','868170YckaSa','stopPresenting','89242SDaMuU','getLiveShareStatus','constructor','441nJqZhi','_injector','UNIVER_SHEET','string','_liveShareController','symbol','toPrimitive','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','defineProperty','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','object','tryStartPresenting','extend'];_0x1f62=function(){return _0x132769;};return _0x1f62();}function _0x19a0(_0x34f6ee,_0x6c63b2){_0x34f6ee=_0x34f6ee-0x14a;const _0x1f622b=_0x1f62();let _0x19a09e=_0x1f622b[_0x34f6ee];return _0x19a09e;}(function(_0x218c64,_0x3cea81){const _0x30accd=_0x19a0,_0x41e026=_0x218c64();while(!![]){try{const _0x377fc9=-parseInt(_0x30accd(0x16d))/0x1*(-parseInt(_0x30accd(0x158))/0x2)+parseInt(_0x30accd(0x168))/0x3*(parseInt(_0x30accd(0x16f))/0x4)+-parseInt(_0x30accd(0x151))/0x5+-parseInt(_0x30accd(0x156))/0x6+parseInt(_0x30accd(0x14e))/0x7+parseInt(_0x30accd(0x16a))/0x8*(-parseInt(_0x30accd(0x15b))/0x9)+parseInt(_0x30accd(0x16c))/0xa;if(_0x377fc9===_0x3cea81)break;else _0x41e026['push'](_0x41e026['shift']());}catch(_0x6ee33b){_0x41e026['push'](_0x41e026['shift']());}}}(_0x1f62,0x9d3e8));import{LiveShareController as _0xfaa6c2,LiveShareStatus as _0x41f314}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x418f11,UniverInstanceType as _0x30f3f0}from'@univerjs/core';import{FEnum as _0x35fdd7,FUniver as _0x580b87}from'@univerjs/core/facade';function o(_0x2cb829){'@babel/helpers - typeof';const _0x5cace2=_0x19a0;return o=typeof Symbol==_0x5cace2(0x14b)&&typeof Symbol['iterator']==_0x5cace2(0x160)?function(_0x5a94fc){return typeof _0x5a94fc;}:function(_0x257089){const _0x2e77f4=_0x5cace2;return _0x257089&&typeof Symbol==_0x2e77f4(0x14b)&&_0x257089[_0x2e77f4(0x15a)]===Symbol&&_0x257089!==Symbol['prototype']?_0x2e77f4(0x160):typeof _0x257089;},o(_0x2cb829);}function s(_0x21f60f,_0x4af591){const _0x56b6fc=_0x19a0;if(o(_0x21f60f)!=_0x56b6fc(0x165)||!_0x21f60f)return _0x21f60f;var _0x541c2c=_0x21f60f[Symbol[_0x56b6fc(0x161)]];if(_0x541c2c!==void 0x0){var _0x636c51=_0x541c2c[_0x56b6fc(0x16b)](_0x21f60f,_0x4af591||'default');if(o(_0x636c51)!=_0x56b6fc(0x165))return _0x636c51;throw TypeError(_0x56b6fc(0x164));}return(_0x4af591===_0x56b6fc(0x15e)?String:Number)(_0x21f60f);}function c(_0x1bf028){const _0x11c4ad=_0x19a0;var _0x2c2e35=s(_0x1bf028,_0x11c4ad(0x15e));return o(_0x2c2e35)=='symbol'?_0x2c2e35:_0x2c2e35+'';}function l(_0xcf336e,_0x1273e3,_0xd1bf39){const _0x159bd8=_0x19a0;return(_0x1273e3=c(_0x1273e3))in _0xcf336e?Object[_0x159bd8(0x163)](_0xcf336e,_0x1273e3,{'value':_0xd1bf39,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xcf336e[_0x1273e3]=_0xd1bf39,_0xcf336e;}var u=class extends _0x580b87{constructor(..._0x17f535){const _0x452451=_0x19a0;super(..._0x17f535),l(this,_0x452451(0x15f),void 0x0);}[_0x581879(0x152)](_0x1f6712){const _0x42b04d=_0x581879;this[_0x42b04d(0x15f)]=_0x1f6712[_0x42b04d(0x154)](_0xfaa6c2);}[_0x581879(0x159)](){const _0x3fc369=_0x581879;var _0x801197;let _0x2142d8=this['_injector'][_0x3fc369(0x154)](_0x418f11)[_0x3fc369(0x16e)](_0x30f3f0[_0x3fc369(0x15d)]);if(!_0x2142d8)throw Error(_0x3fc369(0x14c));let _0x560e6e=_0x2142d8[_0x3fc369(0x14f)](),_0x44726a=this[_0x3fc369(0x15f)][_0x3fc369(0x14a)](_0x560e6e);return(_0x801197=_0x44726a==null?void 0x0:_0x44726a[_0x3fc369(0x155)]())==null?_0x41f314[_0x3fc369(0x169)]:_0x801197;}[_0x581879(0x150)](){const _0x48cf68=_0x581879;let _0x48940b=this['_injector'][_0x48cf68(0x154)](_0x418f11)['getCurrentUnitOfType'](_0x30f3f0[_0x48cf68(0x15d)]);if(!_0x48940b)throw Error(_0x48cf68(0x14c));let _0xf76666=_0x48940b['getUnitId'](),_0x5c04e3=this['_liveShareController'][_0x48cf68(0x14a)](_0xf76666);if(!_0x5c04e3)throw Error(_0x48cf68(0x162));_0x5c04e3[_0x48cf68(0x150)]();}[_0x581879(0x14d)](){const _0x5710f2=_0x581879;let _0x1dd3fe=this[_0x5710f2(0x15c)]['get'](_0x418f11)[_0x5710f2(0x16e)](_0x30f3f0[_0x5710f2(0x15d)]);if(!_0x1dd3fe)throw Error('No\x20active\x20workbook\x20found.');let _0x3b3c7b=_0x1dd3fe[_0x5710f2(0x14f)](),_0x3d09ea=this[_0x5710f2(0x15f)][_0x5710f2(0x14a)](_0x3b3c7b);if(!_0x3d09ea)throw Error(_0x5710f2(0x162));_0x3d09ea[_0x5710f2(0x14d)]();}['startPresenting'](){const _0x2f6ace=_0x581879;let _0x48a891=this[_0x2f6ace(0x15c)][_0x2f6ace(0x154)](_0x418f11)['getCurrentUnitOfType'](_0x30f3f0['UNIVER_SHEET']);if(!_0x48a891)throw Error(_0x2f6ace(0x14c));let _0xdb1665=_0x48a891[_0x2f6ace(0x14f)](),_0x54da0c=this['_liveShareController'][_0x2f6ace(0x14a)](_0xdb1665);if(!_0x54da0c)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54da0c[_0x2f6ace(0x166)]();}[_0x581879(0x157)](){const _0x2fdea5=_0x581879;let _0x3a54be=this[_0x2fdea5(0x15c)][_0x2fdea5(0x154)](_0x418f11)[_0x2fdea5(0x16e)](_0x30f3f0[_0x2fdea5(0x15d)]);if(!_0x3a54be)throw Error('No\x20active\x20workbook\x20found.');let _0xf07f54=_0x3a54be[_0x2fdea5(0x14f)](),_0x5273ea=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xf07f54);if(!_0x5273ea)throw Error(_0x2fdea5(0x162));_0x5273ea[_0x2fdea5(0x157)]();}};_0x580b87['extend'](u);var d=class extends _0x35fdd7{get[_0x581879(0x153)](){return _0x41f314;}};_0x35fdd7[_0x581879(0x167)](d);export{};
1
+ const _0x4aaef4=_0x532e;function _0x4ca6(){const _0x32518f=['7510xqbesW','64GzlgDL','78saQwko','IDLE','_liveShareController','getStatus','_injector','7ZWQeBD','object','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2OtZvhl','string','5079915IaFjYd','921696naJJJr','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','extend','140745tUdQAv','getLiveShareStatus','function','getUnitId','getLiveShareCoordinatorSync','call','tryStartPresenting','850208psGVND','stopPresenting','iterator','_initialize','No\x20active\x20workbook\x20found.','1551cdyLqm','symbol','get','94272KagPRn','toPrimitive','getCurrentUnitOfType','prototype','54zLmsNf','228803NtUzij','default','LiveShareStatusEnum','defineProperty','UNIVER_SHEET'];_0x4ca6=function(){return _0x32518f;};return _0x4ca6();}(function(_0x3db987,_0x577ace){const _0x4f02bb=_0x532e,_0x27f1fb=_0x3db987();while(!![]){try{const _0x418593=-parseInt(_0x4f02bb(0x105))/0x1*(-parseInt(_0x4f02bb(0xeb))/0x2)+parseInt(_0x4f02bb(0x100))/0x3*(-parseInt(_0x4f02bb(0xe1))/0x4)+-parseInt(_0x4f02bb(0xf1))/0x5*(parseInt(_0x4f02bb(0x104))/0x6)+-parseInt(_0x4f02bb(0xe7))/0x7*(parseInt(_0x4f02bb(0xf8))/0x8)+parseInt(_0x4f02bb(0xed))/0x9+-parseInt(_0x4f02bb(0xe0))/0xa*(parseInt(_0x4f02bb(0xfd))/0xb)+-parseInt(_0x4f02bb(0xee))/0xc*(-parseInt(_0x4f02bb(0xe2))/0xd);if(_0x418593===_0x577ace)break;else _0x27f1fb['push'](_0x27f1fb['shift']());}catch(_0x2b3740){_0x27f1fb['push'](_0x27f1fb['shift']());}}}(_0x4ca6,0x45c62));import{LiveShareController as _0x3a7481,LiveShareStatus as _0x3e5d44}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x5b7c09,UniverInstanceType as _0x21739a}from'@univerjs/core';import{FEnum as _0x1fd391,FUniver as _0xcf8219}from'@univerjs/core/facade';function _0x532e(_0x31bf33,_0x4d963a){_0x31bf33=_0x31bf33-0xdd;const _0x4ca655=_0x4ca6();let _0x532efd=_0x4ca655[_0x31bf33];return _0x532efd;}function o(_0x36c0f1){'@babel/helpers - typeof';const _0x354e0f=_0x532e;return o=typeof Symbol=='function'&&typeof Symbol[_0x354e0f(0xfa)]=='symbol'?function(_0x52cdad){return typeof _0x52cdad;}:function(_0x56b435){const _0x481fab=_0x354e0f;return _0x56b435&&typeof Symbol==_0x481fab(0xf3)&&_0x56b435['constructor']===Symbol&&_0x56b435!==Symbol[_0x481fab(0x103)]?_0x481fab(0xfe):typeof _0x56b435;},o(_0x36c0f1);}function s(_0x2c919a,_0x4cc2d2){const _0x42a825=_0x532e;if(o(_0x2c919a)!=_0x42a825(0xe8)||!_0x2c919a)return _0x2c919a;var _0x37716d=_0x2c919a[Symbol[_0x42a825(0x101)]];if(_0x37716d!==void 0x0){var _0x4c2868=_0x37716d[_0x42a825(0xf6)](_0x2c919a,_0x4cc2d2||_0x42a825(0x106));if(o(_0x4c2868)!=_0x42a825(0xe8))return _0x4c2868;throw TypeError(_0x42a825(0xef));}return(_0x4cc2d2===_0x42a825(0xec)?String:Number)(_0x2c919a);}function c(_0x1634c4){const _0x2cc308=_0x532e;var _0x4fd1b9=s(_0x1634c4,_0x2cc308(0xec));return o(_0x4fd1b9)==_0x2cc308(0xfe)?_0x4fd1b9:_0x4fd1b9+'';}function l(_0x1aff40,_0x269549,_0x283dc4){const _0x48a013=_0x532e;return(_0x269549=c(_0x269549))in _0x1aff40?Object[_0x48a013(0xde)](_0x1aff40,_0x269549,{'value':_0x283dc4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1aff40[_0x269549]=_0x283dc4,_0x1aff40;}var u=class extends _0xcf8219{constructor(..._0x3a9526){super(..._0x3a9526),l(this,'_liveShareController',void 0x0);}[_0x4aaef4(0xfb)](_0x3d1afb){const _0xf65a63=_0x4aaef4;this[_0xf65a63(0xe4)]=_0x3d1afb[_0xf65a63(0xff)](_0x3a7481);}[_0x4aaef4(0xf2)](){const _0x81efaf=_0x4aaef4;var _0x21a951;let _0x393ddb=this[_0x81efaf(0xe6)][_0x81efaf(0xff)](_0x5b7c09)[_0x81efaf(0x102)](_0x21739a[_0x81efaf(0xdf)]);if(!_0x393ddb)throw Error(_0x81efaf(0xfc));let _0x59515c=_0x393ddb[_0x81efaf(0xf4)](),_0x267c60=this[_0x81efaf(0xe4)][_0x81efaf(0xf5)](_0x59515c);return(_0x21a951=_0x267c60==null?void 0x0:_0x267c60[_0x81efaf(0xe5)]())==null?_0x3e5d44[_0x81efaf(0xe3)]:_0x21a951;}['startFollowing'](){const _0x5496dd=_0x4aaef4;let _0x4e0909=this['_injector'][_0x5496dd(0xff)](_0x5b7c09)[_0x5496dd(0x102)](_0x21739a['UNIVER_SHEET']);if(!_0x4e0909)throw Error('No\x20active\x20workbook\x20found.');let _0x2ef941=_0x4e0909[_0x5496dd(0xf4)](),_0x4fcf9b=this[_0x5496dd(0xe4)][_0x5496dd(0xf5)](_0x2ef941);if(!_0x4fcf9b)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4fcf9b[_0x5496dd(0xe9)]();}['stopFollowing'](){const _0x127616=_0x4aaef4;let _0x4c4e1d=this[_0x127616(0xe6)][_0x127616(0xff)](_0x5b7c09)['getCurrentUnitOfType'](_0x21739a[_0x127616(0xdf)]);if(!_0x4c4e1d)throw Error(_0x127616(0xfc));let _0x34eca6=_0x4c4e1d[_0x127616(0xf4)](),_0x463bbb=this[_0x127616(0xe4)][_0x127616(0xf5)](_0x34eca6);if(!_0x463bbb)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x463bbb['stopFollowing']();}['startPresenting'](){const _0x2d6ab8=_0x4aaef4;let _0x5d70ea=this[_0x2d6ab8(0xe6)][_0x2d6ab8(0xff)](_0x5b7c09)['getCurrentUnitOfType'](_0x21739a[_0x2d6ab8(0xdf)]);if(!_0x5d70ea)throw Error(_0x2d6ab8(0xfc));let _0x34d9d7=_0x5d70ea[_0x2d6ab8(0xf4)](),_0x2b5dfd=this[_0x2d6ab8(0xe4)][_0x2d6ab8(0xf5)](_0x34d9d7);if(!_0x2b5dfd)throw Error(_0x2d6ab8(0xea));_0x2b5dfd[_0x2d6ab8(0xf7)]();}[_0x4aaef4(0xf9)](){const _0x173acf=_0x4aaef4;let _0x1052e8=this['_injector'][_0x173acf(0xff)](_0x5b7c09)[_0x173acf(0x102)](_0x21739a[_0x173acf(0xdf)]);if(!_0x1052e8)throw Error('No\x20active\x20workbook\x20found.');let _0x25e2b9=_0x1052e8[_0x173acf(0xf4)](),_0x345dd6=this[_0x173acf(0xe4)]['getLiveShareCoordinatorSync'](_0x25e2b9);if(!_0x345dd6)throw Error(_0x173acf(0xea));_0x345dd6['stopPresenting']();}};_0xcf8219[_0x4aaef4(0xf0)](u);var d=class extends _0x1fd391{get[_0x4aaef4(0xdd)](){return _0x3e5d44;}};_0x1fd391[_0x4aaef4(0xf0)](d);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x12d49e=_0x56aa;(function(_0x5af5c6,_0x361e7e){const _0x424236=_0x56aa,_0xbb81b1=_0x5af5c6();while(!![]){try{const _0xff31b9=-parseInt(_0x424236(0x145))/0x1*(-parseInt(_0x424236(0x170))/0x2)+parseInt(_0x424236(0x104))/0x3*(-parseInt(_0x424236(0x17d))/0x4)+parseInt(_0x424236(0x125))/0x5*(parseInt(_0x424236(0x162))/0x6)+-parseInt(_0x424236(0x16e))/0x7+-parseInt(_0x424236(0x124))/0x8*(parseInt(_0x424236(0x10f))/0x9)+-parseInt(_0x424236(0x133))/0xa*(parseInt(_0x424236(0xeb))/0xb)+parseInt(_0x424236(0x135))/0xc*(parseInt(_0x424236(0x10b))/0xd);if(_0xff31b9===_0x361e7e)break;else _0xbb81b1['push'](_0xbb81b1['shift']());}catch(_0x21151d){_0xbb81b1['push'](_0xbb81b1['shift']());}}}(_0x29ad,0xdd24a));import{CollaborationEvent as _0x2dfd60,parseProtocolChangeset as _0x47a9e1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32c2a9,SessionStatus as _0x52fe0b,UniverCollaborationClientPlugin as _0x21f3e5}from'@univerjs-pro/collaboration-client';import{CommandType as _0x27732d,DependentOn as _0x1b6da4,Disposable as _0x4659c0,DisposableCollection as _0x58bd8e,ICommandService as _0x41f7a1,IConfigService as _0x348818,IUniverInstanceService as _0x1eddd0,Inject as _0x5247da,Injector as _0x408402,Plugin as _0x1502e3,RxDisposable as _0x5ca59e,UniverInstanceType as _0x14abf6,merge as _0x2dd70c,mergeOverrideWithDependencies as _0x18178b,registerDependencies as _0x59bf00,toDisposable as _0x2f05ef,touchDependencies as _0xa55cab}from'@univerjs/core';import{InsertSheetMutation as _0xa910e4,SetWorksheetActiveOperation as _0x58eadc}from'@univerjs/sheets';import{BehaviorSubject as _0x5700c9,Subject as _0x10b404}from'rxjs';import{takeUntil as _0x2af6df,throttleTime as _0x47be7d}from'rxjs/operators';import{SetScrollOperation as _0x548c90,SetZoomRatioOperation as _0x3d3ee9}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x22834b,IUIPartsService as _0x153cdd,connectInjector as _0x234790,useDependency as _0x2ca01c,useObservable as _0xdec5bf}from'@univerjs/ui';import{Button as _0x1fc5f3,Dropdown as _0x5d4586,clsx as _0x256ea0}from'@univerjs/design';import{LiveShareIcon as _0x4b5bb8}from'@univerjs/icons';import{useEffect as _0x590366,useRef as _0x2077b7,useState as _0x4d0fce}from'react';import{Fragment as _0x1b094c,jsx as _0x2e1826,jsxs as _0x53139}from'react/jsx-runtime';function z(_0x1df1a6){'@babel/helpers - typeof';const _0x596588=_0x56aa;return z=typeof Symbol==_0x596588(0x164)&&typeof Symbol[_0x596588(0x160)]=='symbol'?function(_0x500e9c){return typeof _0x500e9c;}:function(_0x49742b){const _0x6068da=_0x596588;return _0x49742b&&typeof Symbol==_0x6068da(0x164)&&_0x49742b[_0x6068da(0x13a)]===Symbol&&_0x49742b!==Symbol[_0x6068da(0x116)]?'symbol':typeof _0x49742b;},z(_0x1df1a6);}function B(_0x4c3a13,_0x4ccb3f){const _0x74e8fc=_0x56aa;if(z(_0x4c3a13)!=_0x74e8fc(0x176)||!_0x4c3a13)return _0x4c3a13;var _0x1fbcc9=_0x4c3a13[Symbol[_0x74e8fc(0x15f)]];if(_0x1fbcc9!==void 0x0){var _0x5d2630=_0x1fbcc9['call'](_0x4c3a13,_0x4ccb3f||_0x74e8fc(0x101));if(z(_0x5d2630)!='object')return _0x5d2630;throw TypeError(_0x74e8fc(0x11e));}return(_0x4ccb3f===_0x74e8fc(0x16b)?String:Number)(_0x4c3a13);}function V(_0x188519){const _0x542c52=_0x56aa;var _0xcd177e=B(_0x188519,_0x542c52(0x16b));return z(_0xcd177e)==_0x542c52(0x166)?_0xcd177e:_0xcd177e+'';}function H(_0x462b49,_0x603c26,_0x126fbd){const _0x2e6fad=_0x56aa;return(_0x603c26=V(_0x603c26))in _0x462b49?Object[_0x2e6fad(0xf4)](_0x462b49,_0x603c26,{'value':_0x126fbd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x462b49[_0x603c26]=_0x126fbd,_0x462b49;}var U=class extends _0x4659c0{constructor(..._0x3fd6f5){super(..._0x3fd6f5),H(this,'_sharedOperations',new Set()),H(this,'_reporters',new Set());}['registerSharedOperation'](_0x226e08){const _0x1a530b=_0x56aa;return this[_0x1a530b(0xfd)][_0x1a530b(0x138)](_0x226e08),_0x2f05ef(()=>this[_0x1a530b(0xfd)][_0x1a530b(0x120)](_0x226e08));}[_0x12d49e(0x169)](_0x116b99){const _0x13bce4=_0x12d49e;return this[_0x13bce4(0x15a)][_0x13bce4(0x138)](_0x116b99),_0x2f05ef(()=>this[_0x13bce4(0x15a)][_0x13bce4(0x120)](_0x116b99));}[_0x12d49e(0x158)](_0xe56dcf){const _0xe5f948=_0x12d49e;return this['_sharedOperations'][_0xe5f948(0x118)](_0xe56dcf);}[_0x12d49e(0x163)](_0x59edf5){const _0x124cc8=_0x12d49e;return Array[_0x124cc8(0x10d)](this[_0x124cc8(0x15a)])[_0x124cc8(0x115)](_0x1aa362=>_0x1aa362(_0x59edf5));}};function W(_0x36d2c6,_0x467d96){return function(_0x559162,_0x4f0bbf){_0x467d96(_0x559162,_0x4f0bbf,_0x36d2c6);};}function G(_0x40f686,_0x211469,_0x2eefbb,_0x33aa77){const _0x2957ac=_0x12d49e;var _0x9179eb=arguments[_0x2957ac(0x129)],_0x271f4a=_0x9179eb<0x3?_0x211469:_0x33aa77===null?_0x33aa77=Object[_0x2957ac(0x11f)](_0x211469,_0x2eefbb):_0x33aa77,_0xf16eb5;if(typeof Reflect=='object'&&typeof Reflect[_0x2957ac(0x117)]==_0x2957ac(0x164))_0x271f4a=Reflect[_0x2957ac(0x117)](_0x40f686,_0x211469,_0x2eefbb,_0x33aa77);else{for(var _0x317cc2=_0x40f686['length']-0x1;_0x317cc2>=0x0;_0x317cc2--)(_0xf16eb5=_0x40f686[_0x317cc2])&&(_0x271f4a=(_0x9179eb<0x3?_0xf16eb5(_0x271f4a):_0x9179eb>0x3?_0xf16eb5(_0x211469,_0x2eefbb,_0x271f4a):_0xf16eb5(_0x211469,_0x2eefbb))||_0x271f4a);}return _0x9179eb>0x3&&_0x271f4a&&Object[_0x2957ac(0xf4)](_0x211469,_0x2eefbb,_0x271f4a),_0x271f4a;}let K=class extends _0x5ca59e{constructor(_0x4917ee,_0x4db5b7,_0x3c3e1e){const _0x5d489d=_0x12d49e;super(),this[_0x5d489d(0x181)]=_0x4917ee,this[_0x5d489d(0x136)]=_0x4db5b7,this[_0x5d489d(0x121)]=_0x3c3e1e,H(this,_0x5d489d(0x132),new Map()),this['_init']();}async[_0x12d49e(0xfe)](_0x47b956){const _0x261a4b=_0x12d49e;return this[_0x261a4b(0x132)]['has'](_0x47b956)||await this[_0x261a4b(0x137)](_0x47b956),this['_entities']['get'](_0x47b956);}['getLiveShareCoordinatorSync'](_0x1ec7d7){const _0x7a971e=_0x12d49e;var _0x328cc7;return(_0x328cc7=this[_0x7a971e(0x132)]['get'](_0x1ec7d7))==null?null:_0x328cc7;}[_0x12d49e(0x154)](){const _0x5b2aba=_0x12d49e;this[_0x5b2aba(0x181)][_0x5b2aba(0x12c)](_0x14abf6[_0x5b2aba(0x157)])[_0x5b2aba(0x13c)](_0x2af6df(this[_0x5b2aba(0x14f)]))['subscribe'](async _0x4f66d7=>{const _0x359d4f=_0x5b2aba;let _0x83bdd8=_0x4f66d7[_0x359d4f(0x13f)][_0x359d4f(0x112)]();this[_0x359d4f(0x132)][_0x359d4f(0x118)](_0x83bdd8)||this[_0x359d4f(0x137)](_0x83bdd8);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x14abf6[_0x5b2aba(0x157)])[_0x5b2aba(0x13c)](_0x2af6df(this['dispose$']))[_0x5b2aba(0x127)](_0x409989=>{const _0x18122b=_0x5b2aba;let _0x90b7b6=_0x409989[_0x18122b(0x112)](),_0x3fca5c=this[_0x18122b(0x132)][_0x18122b(0x16f)](_0x90b7b6);_0x3fca5c==null||_0x3fca5c[_0x18122b(0x100)]();});}async[_0x12d49e(0x137)](_0x43f6b8){const _0x8cdb11=_0x12d49e;let _0x8f0051=await this[_0x8cdb11(0x121)][_0x8cdb11(0x102)](_0x43f6b8),_0x20947e=this[_0x8cdb11(0x136)]['createInstance'](J,_0x43f6b8,_0x8f0051);return _0x20947e[_0x8cdb11(0xfb)](),this[_0x8cdb11(0x132)][_0x8cdb11(0x109)](_0x43f6b8,_0x20947e),_0x20947e;}};K=G([W(0x0,_0x1eddd0),W(0x1,_0x5247da(_0x408402)),W(0x2,_0x5247da(_0x32c2a9))],K);let q=function(_0x455e5f){const _0x405d6c=_0x12d49e;return _0x455e5f[_0x405d6c(0x142)]=_0x405d6c(0x150),_0x455e5f['IDLE']=_0x405d6c(0x141),_0x455e5f[_0x405d6c(0x108)]=_0x405d6c(0xf2),_0x455e5f[_0x405d6c(0x11d)]=_0x405d6c(0x10c),_0x455e5f['PRESENTING']=_0x405d6c(0xf5),_0x455e5f;}({}),J=class extends _0x5ca59e{get['_status'](){const _0x201835=_0x12d49e;return this[_0x201835(0x107)][_0x201835(0x178)]();}constructor(_0x598eb4,_0x37d206,_0x4ca3b5,_0x69c79,_0x14f351){const _0x556c50=_0x12d49e;super(),this['_unitID']=_0x598eb4,this['_collabSession']=_0x37d206,this[_0x556c50(0x10e)]=_0x4ca3b5,this[_0x556c50(0x16c)]=_0x69c79,this['_commandService']=_0x14f351,H(this,_0x556c50(0x107),new _0x5700c9(_0x556c50(0x141))),H(this,_0x556c50(0x113),this['_status$'][_0x556c50(0x12a)]()),H(this,_0x556c50(0x154),!0x1),H(this,_0x556c50(0xed),null),H(this,_0x556c50(0xfc),null);}[_0x12d49e(0x100)](){const _0x5a1d5d=_0x12d49e;var _0x5ad786;(_0x5ad786=this[_0x5a1d5d(0xed)])==null||_0x5ad786[_0x5a1d5d(0x100)](),this[_0x5a1d5d(0x107)][_0x5a1d5d(0xf7)](_0x5a1d5d(0x141)),this['_status$'][_0x5a1d5d(0x148)]();}['getStatus'](){const _0x4ed593=_0x12d49e;return this[_0x4ed593(0xfa)];}[_0x12d49e(0xfb)](){const _0x186bd7=_0x12d49e;this[_0x186bd7(0x154)]||(this['_init']=!0x0,this[_0x186bd7(0x13d)][_0x186bd7(0x14e)][_0x186bd7(0x13c)](_0x2af6df(this[_0x186bd7(0x14f)]))[_0x186bd7(0x127)](_0x4650e9=>{const _0x38beda=_0x186bd7;switch(_0x4650e9){case _0x52fe0b['OFFLINE']:this[_0x38beda(0xf0)]();break;case _0x52fe0b[_0x38beda(0x14c)]:this['_handleOnline']();break;default:}}),this[_0x186bd7(0x13d)][_0x186bd7(0x15e)][_0x186bd7(0x13c)](_0x2af6df(this[_0x186bd7(0x14f)]))[_0x186bd7(0x127)](_0x24618d=>{const _0x1afb64=_0x186bd7;let {eventID:_0x2bca3d}=_0x24618d;switch(_0x2bca3d){case _0x2dfd60[_0x1afb64(0x149)]:this[_0x1afb64(0xf9)](_0x24618d);break;case _0x2dfd60[_0x1afb64(0xf8)]:this[_0x1afb64(0x126)](_0x24618d);break;case _0x2dfd60[_0x1afb64(0x11a)]:this['_handleTerminate']();break;case _0x2dfd60[_0x1afb64(0x111)]:this[_0x1afb64(0x13e)](_0x24618d);break;default:}}));}[_0x12d49e(0x179)](){const _0x8b7b9e=_0x12d49e;this['_collabSession'][_0x8b7b9e(0x155)]({'eventID':_0x2dfd60[_0x8b7b9e(0x140)],'data':{'unitID':this[_0x8b7b9e(0x14d)],'userID':this[_0x8b7b9e(0x13d)][_0x8b7b9e(0x143)]()}},this[_0x8b7b9e(0x14d)]);}['stopPresenting'](){const _0x10cd91=_0x12d49e;this['_status']===_0x10cd91(0xf5)&&(this[_0x10cd91(0x107)][_0x10cd91(0xf7)](_0x10cd91(0x141)),this[_0x10cd91(0x13d)][_0x10cd91(0x155)]({'eventID':_0x2dfd60[_0x10cd91(0x11a)],'data':{'unitID':this[_0x10cd91(0x14d)]}},this[_0x10cd91(0x14d)]));}[_0x12d49e(0x180)](){const _0x242004=_0x12d49e;this[_0x242004(0xfa)]==='not-following'&&(this[_0x242004(0x107)]['next'](_0x242004(0xf2)),this[_0x242004(0x123)]());}['stopFollowing'](){const _0x326dd5=_0x12d49e;this[_0x326dd5(0xfa)]===_0x326dd5(0xf2)&&this['_stopFollowing']();}['_handleNewHost'](_0x374469){const _0x162050=_0x12d49e;let {presenter:_0x5df368}=_0x374469[_0x162050(0xef)],_0x50cb3d=this['_collabSession'][_0x162050(0x143)]();this[_0x162050(0xfc)]=_0x5df368,_0x5df368===_0x50cb3d?(this['_stopFollowing'](),this[_0x162050(0x152)]()):this[_0x162050(0xfa)]!=='not-following'&&(this['_stopPresenting'](),this[_0x162050(0x123)]());}[_0x12d49e(0x165)](){const _0x28b5f8=_0x12d49e;let _0x433c96={'eventID':_0x2dfd60['LIVESHARE_FETCH_OPERATIONS']};this[_0x28b5f8(0x13d)][_0x28b5f8(0x155)](_0x433c96,this[_0x28b5f8(0x14d)]);}[_0x12d49e(0x167)](){const _0x4ce878=_0x12d49e;this[_0x4ce878(0xfc)]=null,this[_0x4ce878(0xfa)]!==_0x4ce878(0xf5)&&this[_0x4ce878(0x15b)]();}['_handleNewChangeSets'](_0x4c4dc1){const _0x312b90=_0x12d49e;if(this['_status']===_0x312b90(0xf2)&&this[_0x312b90(0xfc)]===_0x4c4dc1['data'][_0x312b90(0x182)]){let _0x39e6d4=_0x47a9e1(_0x4c4dc1[_0x312b90(0xef)])[_0x312b90(0x105)][_0x312b90(0x151)]()[_0x312b90(0x173)](_0x1df189=>_0x1df189['id']===_0xa910e4['id']);if(_0x39e6d4){let _0x15f301=_0x39e6d4[_0x312b90(0x17c)][_0x312b90(0x134)],_0x55d94a=_0x39e6d4[_0x312b90(0x17c)][_0x312b90(0x174)]['id'];setTimeout(()=>{const _0x32f359=_0x312b90;this[_0x32f359(0xf3)]['executeCommand'](_0x58eadc['id'],{'unitId':_0x15f301,'subUnitId':_0x55d94a},{'fromCollab':!0x0});});}}}[_0x12d49e(0x152)](){const _0x10346b=_0x12d49e;var _0x24617d;(_0x24617d=this[_0x10346b(0xed)])==null||_0x24617d[_0x10346b(0x100)](),this[_0x10346b(0x107)][_0x10346b(0xf7)]('presenting');let _0x18bdf3=new Map(),_0x4d6144=this[_0x10346b(0xed)]=new _0x58bd8e();_0x4d6144['add'](_0x2f05ef(()=>{const _0x1807d0=_0x10346b;_0x18bdf3[_0x1807d0(0x10a)](({subject:_0xe9fd2b,subscription:_0x588410})=>{const _0x5d9a11=_0x1807d0;_0x588410[_0x5d9a11(0x17e)](),_0xe9fd2b['complete']();}),_0x18bdf3[_0x1807d0(0x11b)]();})),_0x4d6144[_0x10346b(0x138)](this[_0x10346b(0xf3)][_0x10346b(0x106)](_0x5e4287=>{const _0x4788fd=_0x10346b;if(_0x5e4287[_0x4788fd(0x131)]!==_0x27732d['OPERATION']||!this[_0x4788fd(0x16c)][_0x4788fd(0x158)](_0x5e4287['id']))return;let {id:_0x4f5fbb}=_0x5e4287,_0x31aa58;if(_0x18bdf3[_0x4788fd(0x118)](_0x4f5fbb))_0x31aa58=_0x18bdf3[_0x4788fd(0x16f)](_0x4f5fbb)[_0x4788fd(0x110)];else{var _0x30f24b;_0x31aa58=new _0x10b404();let _0x99010d=_0x31aa58[_0x4788fd(0x13c)](_0x47be7d((_0x30f24b=this['_configService'][_0x4788fd(0x139)](_0x4788fd(0x128)))==null?0xc8:_0x30f24b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4788fd(0x127)](_0x2926ed=>{const _0x58ad0c=_0x4788fd;this['_collabSession']['send']({'eventID':_0x2dfd60['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x58ad0c(0x14d)],'operations':{[_0x2926ed['id']]:{'id':_0x2926ed['id'],'params':JSON[_0x58ad0c(0x11c)](_0x2926ed['params'])}}}},this[_0x58ad0c(0x14d)]);});_0x18bdf3[_0x4788fd(0x109)](_0x4f5fbb,{'subject':_0x31aa58,'subscription':_0x99010d});}_0x31aa58[_0x4788fd(0xf7)](_0x5e4287);})),this[_0x10346b(0x16c)][_0x10346b(0x163)](this[_0x10346b(0x14d)])[_0x10346b(0x10a)](_0x1fb644=>this['_collabSession'][_0x10346b(0x155)]({'eventID':_0x2dfd60['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x10346b(0x14d)],'operations':{[_0x1fb644['id']]:{'id':_0x1fb644['id'],'params':JSON[_0x10346b(0x11c)](_0x1fb644[_0x10346b(0x17c)])}}}},this[_0x10346b(0x14d)]));}[_0x12d49e(0x15d)](){const _0x32ae5d=_0x12d49e;var _0x804031;this[_0x32ae5d(0x107)][_0x32ae5d(0xf7)](_0x32ae5d(0x141)),(_0x804031=this[_0x32ae5d(0xed)])==null||_0x804031[_0x32ae5d(0x100)](),this['_commandDisposable']=null;}[_0x12d49e(0x123)](){const _0x2be806=_0x12d49e;var _0x44643d;(_0x44643d=this[_0x2be806(0xed)])==null||_0x44643d[_0x2be806(0x100)](),this[_0x2be806(0x107)][_0x2be806(0xf7)]('following');}[_0x12d49e(0x15b)](){const _0xd265d0=_0x12d49e;var _0xf9bca3;this[_0xd265d0(0x107)][_0xd265d0(0xf7)](_0xd265d0(0x141)),(_0xf9bca3=this[_0xd265d0(0xed)])==null||_0xf9bca3[_0xd265d0(0x100)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x4ea4f8=_0x12d49e;var _0x115742;this[_0x4ea4f8(0x107)][_0x4ea4f8(0xf7)](_0x4ea4f8(0x10c)),(_0x115742=this[_0x4ea4f8(0xed)])==null||_0x115742[_0x4ea4f8(0x100)]();}[_0x12d49e(0x126)](_0x534275){const _0x47e430=_0x12d49e;if([_0x47e430(0xf5),'not-following','offline'][_0x47e430(0x161)](this[_0x47e430(0xfa)])||!_0x534275[_0x47e430(0xef)]['presenter']||_0x534275[_0x47e430(0xef)][_0x47e430(0x159)]===this['_collabSession'][_0x47e430(0x143)]())return;this['_status']==='idle'&&this[_0x47e430(0x123)]();let _0x3e4257=_0x534275[_0x47e430(0xef)][_0x47e430(0x114)];Object[_0x47e430(0xec)](_0x3e4257)[_0x47e430(0x10a)](_0x223354=>{const _0x50eb01=_0x47e430;this[_0x50eb01(0xf3)][_0x50eb01(0x15c)](_0x223354['id'],_0x223354[_0x50eb01(0x17c)]?JSON[_0x50eb01(0x14b)](_0x223354[_0x50eb01(0x17c)]):null,{'fromCollab':!0x0});});}[_0x12d49e(0xf0)](){const _0x46d52e=_0x12d49e;var _0x3c91b0;this[_0x46d52e(0x107)]['next'](_0x46d52e(0x150)),(_0x3c91b0=this[_0x46d52e(0xed)])==null||_0x3c91b0[_0x46d52e(0x100)]();}[_0x12d49e(0x156)](){const _0x5ccdbe=_0x12d49e;this[_0x5ccdbe(0x107)]['next']('idle'),this['_fetchOperations']();}};J=G([W(0x2,_0x348818),W(0x3,_0x5247da(U)),W(0x4,_0x41f7a1)],J);var oe=_0x12d49e(0x16a),se='1.0.0-alpha.3';const Y={};let X=class extends _0x4659c0{constructor(_0xcd1412){const _0x9fcf53=_0x12d49e;super(),this[_0x9fcf53(0x16c)]=_0xcd1412,this[_0x9fcf53(0x154)]();}[_0x12d49e(0x154)](){const _0x5e33bd=_0x12d49e;[_0x3d3ee9['id'],_0x548c90['id'],_0x58eadc['id']][_0x5e33bd(0x10a)](_0x5b6e8c=>{const _0x5bd46e=_0x5e33bd;this['disposeWithMe'](this['_liveShareService'][_0x5bd46e(0x12d)](_0x5b6e8c));});}};X=G([W(0x0,_0x5247da(U))],X);function ce(){const _0x40248c=_0x12d49e;let _0x3fbc85=_0x2ca01c(K),_0x50d4d0=_0x2ca01c(_0x1eddd0),_0x4ac9d3=_0xdec5bf(()=>_0x50d4d0[_0x40248c(0x168)](_0x14abf6[_0x40248c(0x157)]),void 0x0,!0x1,[]),[_0x42268e,_0x17c1d2]=_0x4d0fce(null),[_0xa9689e,_0x18b7da]=_0x4d0fce(_0x40248c(0x141)),_0x2fb899=_0x2077b7(null);return _0x590366(()=>(_0x4ac9d3&&_0x3fbc85[_0x40248c(0xfe)](_0x4ac9d3[_0x40248c(0x112)]())['then'](_0x1c59c2=>{const _0xe1e8f6=_0x40248c;_0x17c1d2(_0x1c59c2),_0x2fb899[_0xe1e8f6(0x13b)]=_0x1c59c2[_0xe1e8f6(0x113)][_0xe1e8f6(0x127)](_0x3b0da2=>{_0x18b7da(_0x3b0da2);});}),()=>{const _0x256803=_0x40248c;var _0x500f63;(_0x500f63=_0x2fb899[_0x256803(0x13b)])==null||_0x500f63[_0x256803(0x17e)](),_0x2fb899['current']=null;}),[_0x4ac9d3,_0x3fbc85]),_0x42268e?_0x2e1826(_0x5d4586,{'align':_0x40248c(0x17f),'disabled':_0xa9689e===_0x40248c(0x150),'className':_0x40248c(0x144),'overlay':_0x2e1826(Z,{'status':_0xa9689e,'coordinator':_0x42268e}),'children':_0x2e1826(_0x40248c(0x175),{'className':_0x256ea0(_0x40248c(0x122),{'univer-cursor-not-allowed':_0xa9689e===_0x40248c(0x150),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa9689e!==_0x40248c(0x150)}),'type':'button','children':_0x2e1826(_0x4b5bb8,{})})}):null;}function Z(_0xf12cc7){const _0xe8b6a1=_0x12d49e;let {status:_0x5574a7,coordinator:_0xc5d751}=_0xf12cc7;switch(_0x5574a7){case _0xe8b6a1(0x141):return _0x2e1826(le,{'coordinator':_0xc5d751});case'following':return _0x2e1826(ue,{'coordinator':_0xc5d751});case'not-following':return _0x2e1826(de,{'coordinator':_0xc5d751});case _0xe8b6a1(0x150):return _0x2e1826(pe,{});case _0xe8b6a1(0xf5):return _0x2e1826(fe,{'coordinator':_0xc5d751});default:return null;}}function le(_0x347889){const _0x1ef0bc=_0x12d49e;let {coordinator:_0x3f288c}=_0x347889;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x1ef0bc(0x177),{'className':_0x1ef0bc(0x146),'children':'Present\x20this\x20document'}),_0x2e1826(_0x1fc5f3,{'onClick':()=>_0x3f288c[_0x1ef0bc(0x179)](),'children':'Start'})]});}function _0x29ad(){const _0x12240a=['_handleNewHost','_status','init','_presenter','_sharedOperations','getLiveShareCoordinator','Stop\x20following','dispose','default','requireSession','override','452748yIgsgK','mutations','onCommandExecuted','_status$','FOLLOWING','set','forEach','575770stZGgZ','not-following','from','_configService','405APGCvB','subject','NEW_CHANGESETS','getUnitId','status$','operations','map','prototype','decorate','has','text','LIVESHARE_TERMINATE','clear','stringify','NOT_FOLLOWING','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getOwnPropertyDescriptor','delete','_collabSessionService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_startFollowing','180936eEMKwV','3070MxyiFc','_handleOperation','subscribe','SAME_OPERATION_SHARE_INTERVAL','length','asObservable','UNIVER_UNKNOWN','getTypeOfUnitAdded$','registerSharedOperation','registerComponent','UNIVER_LIVE_SHARE_PLUGIN','onStarting','type','_entities','1610rxCgkg','unitId','972teGhAp','_injector','_startLiveShareCoordinator','add','getConfig','constructor','current','pipe','_collabSession','_handleNewChangeSets','unit','LIVESHARE_REQUEST_HOST','idle','OFFLINE','getMemberID','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','1030Fpdstu','univer-mb-3\x20univer-w-full\x20univer-text-sm','_config','complete','LIVESHARE_NEW_HOST','HEADER_MENU','parse','ONLINE','_unitID','sessionStatus$','dispose$','offline','reverse','_startPresenting','_mountLiveShare','_init','send','_handleOnline','UNIVER_SHEET','shouldShareOperation','presenter','_reporters','_beIdle','executeCommand','_stopPresenting','event$','toPrimitive','iterator','includes','7368CsJZCd','getInitialStates','function','_fetchOperations','symbol','_handleTerminate','getCurrentTypeOfUnit$','registerInitialStateReporter','@univerjs-pro/live-share','string','_liveShareService','pluginName','4054624TqWLXY','get','746kEAlTF','live-share.config','_uiPartsService','find','sheet','button','object','div','getValue','tryStartPresenting','stopPresenting','You\x27are\x20offline.','params','40aUoGlQ','unsubscribe','end','startFollowing','_univerInstanceService','memberID','48763RkUsYT','values','_commandDisposable','setConfig','data','_handleOffline','stopFollowing','following','_commandService','defineProperty','presenting','You\x27re\x20not\x20following\x20the\x20presenter','next','LIVESHARE_OPERATION'];_0x29ad=function(){return _0x12240a;};return _0x29ad();}function _0x56aa(_0xe224c0,_0x40afac){_0xe224c0=_0xe224c0-0xeb;const _0x29ad87=_0x29ad();let _0x56aaba=_0x29ad87[_0xe224c0];return _0x56aaba;}function ue(_0x43cfc0){const _0x55bb5d=_0x12d49e;let {coordinator:_0x11fa2d}=_0x43cfc0;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x55bb5d(0x177),{'className':_0x55bb5d(0x146),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2e1826(_0x1fc5f3,{'onClick':()=>_0x11fa2d[_0x55bb5d(0xf1)](),'children':_0x55bb5d(0xff)})]});}function de(_0x31f80a){const _0x377687=_0x12d49e;let {coordinator:_0x1f4b0e}=_0x31f80a;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x377687(0x177),{'className':_0x377687(0x146),'children':_0x377687(0xf6)}),_0x2e1826(_0x1fc5f3,{'variant':_0x377687(0x119),'onClick':()=>_0x1f4b0e[_0x377687(0x180)](),'children':'Start\x20following'})]});}function fe(_0x5717e0){const _0x41daf2=_0x12d49e;let {coordinator:_0x3da7d0}=_0x5717e0;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x41daf2(0x177),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2e1826(_0x1fc5f3,{'variant':'default','onClick':()=>_0x3da7d0[_0x41daf2(0x17a)](),'children':'Stop\x20presenting'})]});}function pe(){const _0x5938fd=_0x12d49e;return _0x2e1826(_0x1b094c,{'children':_0x5938fd(0x17b)});}let Q=class extends _0x4659c0{constructor(_0x45f985,_0x15120f){const _0x1fbafb=_0x12d49e;super(),this[_0x1fbafb(0x136)]=_0x45f985,this[_0x1fbafb(0x172)]=_0x15120f,this[_0x1fbafb(0x153)]();}[_0x12d49e(0x153)](){const _0x46045c=_0x12d49e;this['disposeWithMe'](this[_0x46045c(0x172)][_0x46045c(0x12e)](_0x22834b[_0x46045c(0x14a)],()=>_0x234790(ce,this[_0x46045c(0x136)])));}};Q=G([W(0x0,_0x5247da(_0x408402)),W(0x1,_0x153cdd)],Q);let $=class extends _0x1502e3{constructor(_0xe98712=Y,_0x574da0,_0x33a96a){const _0x44df31=_0x12d49e;super(),this['_config']=_0xe98712,this['_injector']=_0x574da0,this['_configService']=_0x33a96a;let {..._0x40976a}=_0x2dd70c({},Y,this[_0x44df31(0x147)]);this[_0x44df31(0x10e)][_0x44df31(0xee)](_0x44df31(0x171),_0x40976a);}[_0x12d49e(0x130)](){const _0x5ca9d9=_0x12d49e;_0x59bf00(this['_injector'],_0x18178b([[U],[K],[X],[Q]],this['_config'][_0x5ca9d9(0x103)])),_0xa55cab(this[_0x5ca9d9(0x136)],[[X]]);}['onRendered'](){const _0x373fa8=_0x12d49e;_0xa55cab(this[_0x373fa8(0x136)],[[Q]]);}};H($,'type',_0x14abf6[_0x12d49e(0x12b)]),H($,_0x12d49e(0x16d),_0x12d49e(0x12f)),H($,'packageName',oe),H($,'version',se),$=G([_0x1b6da4(_0x21f3e5),W(0x1,_0x5247da(_0x408402)),W(0x2,_0x348818)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x6f555b=_0x261d;(function(_0x315005,_0x47b6a4){const _0x3ca634=_0x261d,_0x5d7335=_0x315005();while(!![]){try{const _0x30a435=-parseInt(_0x3ca634(0x1c3))/0x1+parseInt(_0x3ca634(0x1a5))/0x2*(-parseInt(_0x3ca634(0x1cc))/0x3)+parseInt(_0x3ca634(0x1fd))/0x4+-parseInt(_0x3ca634(0x1ea))/0x5+-parseInt(_0x3ca634(0x1e4))/0x6+parseInt(_0x3ca634(0x1a3))/0x7*(-parseInt(_0x3ca634(0x220))/0x8)+parseInt(_0x3ca634(0x206))/0x9;if(_0x30a435===_0x47b6a4)break;else _0x5d7335['push'](_0x5d7335['shift']());}catch(_0x23afb1){_0x5d7335['push'](_0x5d7335['shift']());}}}(_0x326d,0xe4a4c));import{CollaborationEvent as _0x36ebd8,parseProtocolChangeset as _0x47cdb6}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1e5ff4,SessionStatus as _0x12087e,UniverCollaborationClientPlugin as _0x948aaa}from'@univerjs-pro/collaboration-client';function _0x326d(){const _0x4f065a=['event$','LIVESHARE_FETCH_OPERATIONS','getInitialStates','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','disposeWithMe','NEW_CHANGESETS','presenting','idle','_unitID','You\x27re\x20presenting\x20the\x20document','dispose','_handleOnline','getMemberID','reverse','_mountLiveShare','button','_collabSessionService','_handleNewHost','512zNJAVF','onCommandExecuted','prototype','div','_configService','default','operations','getStatus','asObservable','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_startPresenting','_reporters','@univerjs-pro/live-share','_handleOffline','override','LIVESHARE_TERMINATE','UNIVER_SHEET','getUnitId','PRESENTING','parse','LIVESHARE_OPERATION','_startLiveShareCoordinator','109102dPElBJ','setConfig','146mYPifm','_handleNewChangeSets','onStarting','UNIVER_LIVE_SHARE_PLUGIN','Start','_handleOperation','_sharedOperations','_startFollowing','object','Stop\x20presenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','dispose$','_commandDisposable','LIVESHARE_NEW_HOST','requireSession','_status','defineProperty','version','init','call','_beIdle','UNIVER_UNKNOWN','You\x27are\x20offline.','_init','presenter','_handleTerminate','live-share.config','getTypeOfUnitDisposed$','registerSharedOperation','onRendered','1767182olMLwM','status$','getLiveShareCoordinator','decorate','getCurrentTypeOfUnit$','set','length','has','pipe','69891ECGHtp','mutations','Start\x20following','complete','includes','iterator','unsubscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','IDLE','getLiveShareCoordinatorSync','send','from','OPERATION','_liveShareService','clear','OFFLINE','Present\x20this\x20document','executeCommand','_uiPartsService','registerInitialStateReporter','_stopPresenting','end','function','4225182gmDnKg','shouldShareOperation','getValue','next','getConfig','subscribe','49270XTbtGK','data','_stopFollowing','offline','add','_collabSession','_presenter','symbol','You\x27re\x20not\x20following\x20the\x20presenter','forEach','FOLLOWING','stringify','You\x27re\x20following\x20the\x20presenter','_fetchOperations','get','stopPresenting','_config','tryStartPresenting','LIVESHARE_REQUEST_HOST','7472608zHbYFS','1.0.0-alpha.4','type','string','getOwnPropertyDescriptor','stopFollowing','_status$','_injector','text','38230110FDzPpX','unitId','subject','params','delete','_entities','following','_commandService'];_0x326d=function(){return _0x4f065a;};return _0x326d();}import{CommandType as _0x4e0307,DependentOn as _0x3099e9,Disposable as _0x46999e,DisposableCollection as _0x5ec514,ICommandService as _0x35ab55,IConfigService as _0x52b4ac,IUniverInstanceService as _0x21550a,Inject as _0x28818e,Injector as _0x18620c,Plugin as _0x572057,RxDisposable as _0x1a6fea,UniverInstanceType as _0x203c69,merge as _0x5b8c53,mergeOverrideWithDependencies as _0x2f7b56,registerDependencies as _0x31f0d7,toDisposable as _0x504e8e,touchDependencies as _0x591296}from'@univerjs/core';import{InsertSheetMutation as _0x1b67cb,SetWorksheetActiveOperation as _0x538536}from'@univerjs/sheets';import{BehaviorSubject as _0x3e8934,Subject as _0x7214fd,defer as _0x167d7b,from as _0x9ce90d,of as _0x243cf5}from'rxjs';import{takeUntil as _0x5597d3,throttleTime as _0x4fe322}from'rxjs/operators';import{SetScrollOperation as _0x18fc2b,SetZoomRatioOperation as _0x131898}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x4aa22c,IUIPartsService as _0x45ac3a,connectInjector as _0x1cb2c5,useDependency as _0x1ee678,useObservable as _0x252035}from'@univerjs/ui';import{Button as _0x35e69e,Dropdown as _0x390708,clsx as _0x3d7f89}from'@univerjs/design';import{LiveShareIcon as _0x295a01}from'@univerjs/icons';import{useMemo as _0x4cfce8}from'react';import{Fragment as _0x1019e6,jsx as _0x259d6b,jsxs as _0x12e6ce}from'react/jsx-runtime';function z(_0xccb65a){'@babel/helpers - typeof';const _0x201f13=_0x261d;return z=typeof Symbol==_0x201f13(0x1e3)&&typeof Symbol[_0x201f13(0x1d1)]=='symbol'?function(_0x523a65){return typeof _0x523a65;}:function(_0x1bc8b9){const _0x20e4bf=_0x201f13;return _0x1bc8b9&&typeof Symbol==_0x20e4bf(0x1e3)&&_0x1bc8b9['constructor']===Symbol&&_0x1bc8b9!==Symbol[_0x20e4bf(0x222)]?_0x20e4bf(0x1f1):typeof _0x1bc8b9;},z(_0xccb65a);}function B(_0x5a0c24,_0x27d35f){const _0x281154=_0x261d;if(z(_0x5a0c24)!=_0x281154(0x1ad)||!_0x5a0c24)return _0x5a0c24;var _0x1187a3=_0x5a0c24[Symbol['toPrimitive']];if(_0x1187a3!==void 0x0){var _0x4d7903=_0x1187a3[_0x281154(0x1b8)](_0x5a0c24,_0x27d35f||_0x281154(0x225));if(z(_0x4d7903)!='object')return _0x4d7903;throw TypeError(_0x281154(0x1af));}return(_0x27d35f===_0x281154(0x200)?String:Number)(_0x5a0c24);}function V(_0x2c47aa){const _0x1700ae=_0x261d;var _0x30b008=B(_0x2c47aa,_0x1700ae(0x200));return z(_0x30b008)==_0x1700ae(0x1f1)?_0x30b008:_0x30b008+'';}function H(_0x416913,_0x38eda5,_0x2da8c9){const _0x566239=_0x261d;return(_0x38eda5=V(_0x38eda5))in _0x416913?Object[_0x566239(0x1b5)](_0x416913,_0x38eda5,{'value':_0x2da8c9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x416913[_0x38eda5]=_0x2da8c9,_0x416913;}var U=class extends _0x46999e{constructor(..._0x128891){const _0x1e7e52=_0x261d;super(..._0x128891),H(this,_0x1e7e52(0x1ab),new Set()),H(this,_0x1e7e52(0x22b),new Set());}[_0x6f555b(0x1c1)](_0xbfb8d2){const _0x189681=_0x6f555b;return this[_0x189681(0x1ab)][_0x189681(0x1ee)](_0xbfb8d2),_0x504e8e(()=>this[_0x189681(0x1ab)]['delete'](_0xbfb8d2));}[_0x6f555b(0x1e0)](_0x2e5021){const _0x7e914e=_0x6f555b;return this[_0x7e914e(0x22b)][_0x7e914e(0x1ee)](_0x2e5021),_0x504e8e(()=>this['_reporters'][_0x7e914e(0x20a)](_0x2e5021));}[_0x6f555b(0x1e5)](_0x666ecc){const _0x1cf7ba=_0x6f555b;return this[_0x1cf7ba(0x1ab)][_0x1cf7ba(0x1ca)](_0x666ecc);}[_0x6f555b(0x210)](_0x207fa3){const _0x1f0488=_0x6f555b;return Array[_0x1f0488(0x1d8)](this[_0x1f0488(0x22b)])['map'](_0x4e9bc1=>_0x4e9bc1(_0x207fa3));}};function W(_0x3abcf3,_0x3e6180){return function(_0x42a01c,_0x15beec){_0x3e6180(_0x42a01c,_0x15beec,_0x3abcf3);};}function G(_0x9c986a,_0x13da03,_0xf24af8,_0x4ca499){const _0x1239fc=_0x6f555b;var _0x328910=arguments[_0x1239fc(0x1c9)],_0x9dcb3a=_0x328910<0x3?_0x13da03:_0x4ca499===null?_0x4ca499=Object[_0x1239fc(0x201)](_0x13da03,_0xf24af8):_0x4ca499,_0x2cfb70;if(typeof Reflect==_0x1239fc(0x1ad)&&typeof Reflect[_0x1239fc(0x1c6)]==_0x1239fc(0x1e3))_0x9dcb3a=Reflect[_0x1239fc(0x1c6)](_0x9c986a,_0x13da03,_0xf24af8,_0x4ca499);else{for(var _0x1a4211=_0x9c986a[_0x1239fc(0x1c9)]-0x1;_0x1a4211>=0x0;_0x1a4211--)(_0x2cfb70=_0x9c986a[_0x1a4211])&&(_0x9dcb3a=(_0x328910<0x3?_0x2cfb70(_0x9dcb3a):_0x328910>0x3?_0x2cfb70(_0x13da03,_0xf24af8,_0x9dcb3a):_0x2cfb70(_0x13da03,_0xf24af8))||_0x9dcb3a);}return _0x328910>0x3&&_0x9dcb3a&&Object[_0x1239fc(0x1b5)](_0x13da03,_0xf24af8,_0x9dcb3a),_0x9dcb3a;}let K=class extends _0x1a6fea{constructor(_0x164fc7,_0x6b4e2e,_0x362573){const _0x5594eb=_0x6f555b;super(),this['_univerInstanceService']=_0x164fc7,this[_0x5594eb(0x204)]=_0x6b4e2e,this[_0x5594eb(0x21e)]=_0x362573,H(this,_0x5594eb(0x20b),new Map()),this[_0x5594eb(0x1bc)]();}async[_0x6f555b(0x1c5)](_0x35e96f){const _0x5c163b=_0x6f555b;return this[_0x5c163b(0x20b)][_0x5c163b(0x1ca)](_0x35e96f)||await this['_startLiveShareCoordinator'](_0x35e96f),this[_0x5c163b(0x20b)][_0x5c163b(0x1f8)](_0x35e96f);}[_0x6f555b(0x1d6)](_0x15160e){const _0x3974ca=_0x6f555b;var _0x548488;return(_0x548488=this[_0x3974ca(0x20b)][_0x3974ca(0x1f8)](_0x15160e))==null?null:_0x548488;}['_init'](){const _0x24250c=_0x6f555b;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x203c69[_0x24250c(0x230)])['pipe'](_0x5597d3(this[_0x24250c(0x1b0)]))[_0x24250c(0x1e9)](async _0x2ee67e=>{const _0x39ad77=_0x24250c;let _0x1a18b6=_0x2ee67e['unit']['getUnitId']();this[_0x39ad77(0x20b)][_0x39ad77(0x1ca)](_0x1a18b6)||this[_0x39ad77(0x235)](_0x1a18b6);}),this['_univerInstanceService'][_0x24250c(0x1c0)](_0x203c69[_0x24250c(0x230)])['pipe'](_0x5597d3(this['dispose$']))['subscribe'](_0x2b4708=>{const _0x9571f8=_0x24250c;let _0x898adc=_0x2b4708[_0x9571f8(0x231)](),_0x5dc4ce=this[_0x9571f8(0x20b)][_0x9571f8(0x1f8)](_0x898adc);_0x5dc4ce==null||_0x5dc4ce[_0x9571f8(0x218)]();});}async[_0x6f555b(0x235)](_0x41275c){const _0x232f87=_0x6f555b;let _0x8b3451=await this['_collabSessionService'][_0x232f87(0x1b3)](_0x41275c),_0x3353e8=this[_0x232f87(0x204)]['createInstance'](J,_0x41275c,_0x8b3451);return _0x3353e8[_0x232f87(0x1b7)](),this['_entities'][_0x232f87(0x1c8)](_0x41275c,_0x3353e8),_0x3353e8;}};K=G([W(0x0,_0x21550a),W(0x1,_0x28818e(_0x18620c)),W(0x2,_0x28818e(_0x1e5ff4))],K);let q=function(_0x14c1d0){const _0x3a5812=_0x6f555b;return _0x14c1d0[_0x3a5812(0x1dc)]='offline',_0x14c1d0[_0x3a5812(0x1d5)]=_0x3a5812(0x215),_0x14c1d0[_0x3a5812(0x1f4)]=_0x3a5812(0x20c),_0x14c1d0['NOT_FOLLOWING']=_0x3a5812(0x1d4),_0x14c1d0[_0x3a5812(0x232)]='presenting',_0x14c1d0;}({}),J=class extends _0x1a6fea{get[_0x6f555b(0x1b4)](){const _0x187a60=_0x6f555b;return this['_status$'][_0x187a60(0x1e6)]();}constructor(_0x203874,_0xcd6b60,_0x1511bb,_0x5b6870,_0x5f399f){const _0x833c36=_0x6f555b;super(),this[_0x833c36(0x216)]=_0x203874,this[_0x833c36(0x1ef)]=_0xcd6b60,this[_0x833c36(0x224)]=_0x1511bb,this[_0x833c36(0x1da)]=_0x5b6870,this[_0x833c36(0x20d)]=_0x5f399f,H(this,_0x833c36(0x203),new _0x3e8934('idle')),H(this,_0x833c36(0x1c4),this['_status$'][_0x833c36(0x228)]()),H(this,'_init',!0x1),H(this,_0x833c36(0x1b1),null),H(this,_0x833c36(0x1f0),null);}[_0x6f555b(0x218)](){const _0x42da8d=_0x6f555b;var _0x17db55;(_0x17db55=this['_commandDisposable'])==null||_0x17db55[_0x42da8d(0x218)](),this['_status$'][_0x42da8d(0x1e7)]('idle'),this[_0x42da8d(0x203)][_0x42da8d(0x1cf)]();}[_0x6f555b(0x227)](){const _0x3998fd=_0x6f555b;return this[_0x3998fd(0x1b4)];}[_0x6f555b(0x1b7)](){const _0x20308f=_0x6f555b;this[_0x20308f(0x1bc)]||(this[_0x20308f(0x1bc)]=!0x0,this[_0x20308f(0x1ef)]['sessionStatus$'][_0x20308f(0x1cb)](_0x5597d3(this[_0x20308f(0x1b0)]))[_0x20308f(0x1e9)](_0x16a480=>{const _0xe88e8c=_0x20308f;switch(_0x16a480){case _0x12087e[_0xe88e8c(0x1dc)]:this['_handleOffline']();break;case _0x12087e['ONLINE']:this[_0xe88e8c(0x219)]();break;default:}}),this[_0x20308f(0x1ef)][_0x20308f(0x20e)][_0x20308f(0x1cb)](_0x5597d3(this[_0x20308f(0x1b0)]))[_0x20308f(0x1e9)](_0x1030ce=>{const _0x346ebf=_0x20308f;let {eventID:_0x81170}=_0x1030ce;switch(_0x81170){case _0x36ebd8[_0x346ebf(0x1b2)]:this['_handleNewHost'](_0x1030ce);break;case _0x36ebd8['LIVESHARE_OPERATION']:this[_0x346ebf(0x1aa)](_0x1030ce);break;case _0x36ebd8[_0x346ebf(0x22f)]:this[_0x346ebf(0x1be)]();break;case _0x36ebd8[_0x346ebf(0x213)]:this[_0x346ebf(0x1a6)](_0x1030ce);break;default:}}));}[_0x6f555b(0x1fb)](){const _0x50e899=_0x6f555b;this['_collabSession'][_0x50e899(0x1d7)]({'eventID':_0x36ebd8[_0x50e899(0x1fc)],'data':{'unitID':this['_unitID'],'userID':this[_0x50e899(0x1ef)]['getMemberID']()}},this[_0x50e899(0x216)]);}[_0x6f555b(0x1f9)](){const _0x3f42db=_0x6f555b;this[_0x3f42db(0x1b4)]==='presenting'&&(this[_0x3f42db(0x203)]['next'](_0x3f42db(0x215)),this[_0x3f42db(0x1ef)]['send']({'eventID':_0x36ebd8[_0x3f42db(0x22f)],'data':{'unitID':this[_0x3f42db(0x216)]}},this['_unitID']));}['startFollowing'](){const _0x4235c3=_0x6f555b;this[_0x4235c3(0x1b4)]===_0x4235c3(0x1d4)&&(this[_0x4235c3(0x203)]['next']('following'),this[_0x4235c3(0x1ac)]());}[_0x6f555b(0x202)](){const _0x30f65e=_0x6f555b;this[_0x30f65e(0x1b4)]==='following'&&this['_stopFollowing']();}[_0x6f555b(0x21f)](_0x13a739){const _0x3e2476=_0x6f555b;let {presenter:_0x519a50}=_0x13a739[_0x3e2476(0x1eb)],_0xab587=this[_0x3e2476(0x1ef)][_0x3e2476(0x21a)]();this[_0x3e2476(0x1f0)]=_0x519a50,_0x519a50===_0xab587?(this[_0x3e2476(0x1ec)](),this[_0x3e2476(0x22a)]()):this[_0x3e2476(0x1b4)]!==_0x3e2476(0x1d4)&&(this[_0x3e2476(0x1e1)](),this['_startFollowing']());}[_0x6f555b(0x1f7)](){const _0x116eb6=_0x6f555b;let _0x2ce52a={'eventID':_0x36ebd8[_0x116eb6(0x20f)]};this['_collabSession'][_0x116eb6(0x1d7)](_0x2ce52a,this[_0x116eb6(0x216)]);}[_0x6f555b(0x1be)](){const _0x272a9e=_0x6f555b;this[_0x272a9e(0x1f0)]=null,this[_0x272a9e(0x1b4)]!==_0x272a9e(0x214)&&this[_0x272a9e(0x1b9)]();}[_0x6f555b(0x1a6)](_0x4c50e4){const _0x430cf0=_0x6f555b;if(this[_0x430cf0(0x1b4)]===_0x430cf0(0x20c)&&this[_0x430cf0(0x1f0)]===_0x4c50e4[_0x430cf0(0x1eb)]['memberID']){let _0x538525=_0x47cdb6(_0x4c50e4[_0x430cf0(0x1eb)])[_0x430cf0(0x1cd)][_0x430cf0(0x21b)]()['find'](_0x17d75c=>_0x17d75c['id']===_0x1b67cb['id']);if(_0x538525){let _0x5d5395=_0x538525[_0x430cf0(0x209)][_0x430cf0(0x207)],_0x16c32a=_0x538525[_0x430cf0(0x209)]['sheet']['id'];setTimeout(()=>{const _0x12e7ea=_0x430cf0;this[_0x12e7ea(0x20d)][_0x12e7ea(0x1de)](_0x538536['id'],{'unitId':_0x5d5395,'subUnitId':_0x16c32a},{'fromCollab':!0x0});});}}}[_0x6f555b(0x22a)](){const _0x5a3670=_0x6f555b;var _0x5baf86;(_0x5baf86=this[_0x5a3670(0x1b1)])==null||_0x5baf86[_0x5a3670(0x218)](),this['_status$']['next']('presenting');let _0xffab2d=new Map(),_0x51c9cc=this['_commandDisposable']=new _0x5ec514();_0x51c9cc[_0x5a3670(0x1ee)](_0x504e8e(()=>{const _0x3616db=_0x5a3670;_0xffab2d[_0x3616db(0x1f3)](({subject:_0x11c6a7,subscription:_0x3a6c3b})=>{const _0x140779=_0x3616db;_0x3a6c3b[_0x140779(0x1d2)](),_0x11c6a7[_0x140779(0x1cf)]();}),_0xffab2d[_0x3616db(0x1db)]();})),_0x51c9cc[_0x5a3670(0x1ee)](this[_0x5a3670(0x20d)][_0x5a3670(0x221)](_0x5cb6ff=>{const _0x24a082=_0x5a3670;if(_0x5cb6ff[_0x24a082(0x1ff)]!==_0x4e0307[_0x24a082(0x1d9)]||!this['_liveShareService']['shouldShareOperation'](_0x5cb6ff['id']))return;let {id:_0x53e816}=_0x5cb6ff,_0x4bbd17;if(_0xffab2d['has'](_0x53e816))_0x4bbd17=_0xffab2d[_0x24a082(0x1f8)](_0x53e816)[_0x24a082(0x208)];else{var _0x55dd74;_0x4bbd17=new _0x7214fd();let _0x57ab92=_0x4bbd17['pipe'](_0x4fe322((_0x55dd74=this[_0x24a082(0x224)][_0x24a082(0x1e8)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x55dd74,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2b4dbc=>{const _0x1886fb=_0x24a082;this[_0x1886fb(0x1ef)]['send']({'eventID':_0x36ebd8['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1886fb(0x216)],'operations':{[_0x2b4dbc['id']]:{'id':_0x2b4dbc['id'],'params':JSON[_0x1886fb(0x1f5)](_0x2b4dbc[_0x1886fb(0x209)])}}}},this['_unitID']);});_0xffab2d[_0x24a082(0x1c8)](_0x53e816,{'subject':_0x4bbd17,'subscription':_0x57ab92});}_0x4bbd17[_0x24a082(0x1e7)](_0x5cb6ff);})),this[_0x5a3670(0x1da)][_0x5a3670(0x210)](this[_0x5a3670(0x216)])[_0x5a3670(0x1f3)](_0xc19f40=>this[_0x5a3670(0x1ef)][_0x5a3670(0x1d7)]({'eventID':_0x36ebd8[_0x5a3670(0x234)],'data':{'unitID':this[_0x5a3670(0x216)],'operations':{[_0xc19f40['id']]:{'id':_0xc19f40['id'],'params':JSON[_0x5a3670(0x1f5)](_0xc19f40[_0x5a3670(0x209)])}}}},this[_0x5a3670(0x216)]));}[_0x6f555b(0x1e1)](){const _0x397e79=_0x6f555b;var _0x3b6122;this[_0x397e79(0x203)]['next'](_0x397e79(0x215)),(_0x3b6122=this['_commandDisposable'])==null||_0x3b6122['dispose'](),this['_commandDisposable']=null;}[_0x6f555b(0x1ac)](){const _0x3debc8=_0x6f555b;var _0x4e02ae;(_0x4e02ae=this[_0x3debc8(0x1b1)])==null||_0x4e02ae[_0x3debc8(0x218)](),this[_0x3debc8(0x203)][_0x3debc8(0x1e7)](_0x3debc8(0x20c));}['_beIdle'](){const _0x2445ee=_0x6f555b;var _0x2c99c3;this[_0x2445ee(0x203)]['next']('idle'),(_0x2c99c3=this[_0x2445ee(0x1b1)])==null||_0x2c99c3[_0x2445ee(0x218)](),this['_commandDisposable']=null;}[_0x6f555b(0x1ec)](){const _0x4079cb=_0x6f555b;var _0x170941;this['_status$'][_0x4079cb(0x1e7)](_0x4079cb(0x1d4)),(_0x170941=this[_0x4079cb(0x1b1)])==null||_0x170941[_0x4079cb(0x218)]();}[_0x6f555b(0x1aa)](_0x263403){const _0x2170f9=_0x6f555b;if(['presenting',_0x2170f9(0x1d4),_0x2170f9(0x1ed)][_0x2170f9(0x1d0)](this[_0x2170f9(0x1b4)])||!_0x263403[_0x2170f9(0x1eb)][_0x2170f9(0x1bd)]||_0x263403['data'][_0x2170f9(0x1bd)]===this[_0x2170f9(0x1ef)][_0x2170f9(0x21a)]())return;this['_status']===_0x2170f9(0x215)&&this[_0x2170f9(0x1ac)]();let _0x247cac=_0x263403[_0x2170f9(0x1eb)][_0x2170f9(0x226)];Object['values'](_0x247cac)[_0x2170f9(0x1f3)](_0x4d71d9=>{const _0x380b71=_0x2170f9;this[_0x380b71(0x20d)][_0x380b71(0x1de)](_0x4d71d9['id'],_0x4d71d9[_0x380b71(0x209)]?JSON[_0x380b71(0x233)](_0x4d71d9[_0x380b71(0x209)]):null,{'fromCollab':!0x0});});}[_0x6f555b(0x22d)](){const _0x53dc33=_0x6f555b;var _0x3e2ad0;this[_0x53dc33(0x203)][_0x53dc33(0x1e7)](_0x53dc33(0x1ed)),(_0x3e2ad0=this['_commandDisposable'])==null||_0x3e2ad0[_0x53dc33(0x218)]();}['_handleOnline'](){const _0x41deea=_0x6f555b;this['_status$'][_0x41deea(0x1e7)]('idle'),this[_0x41deea(0x1f7)]();}};J=G([W(0x2,_0x52b4ac),W(0x3,_0x28818e(U)),W(0x4,_0x35ab55)],J);var se=_0x6f555b(0x22c),ce=_0x6f555b(0x1fe);const Y={};let X=class extends _0x46999e{constructor(_0x5bdb2e){const _0x5060a4=_0x6f555b;super(),this[_0x5060a4(0x1da)]=_0x5bdb2e,this[_0x5060a4(0x1bc)]();}['_init'](){const _0x4b596c=_0x6f555b;[_0x131898['id'],_0x18fc2b['id'],_0x538536['id']][_0x4b596c(0x1f3)](_0x41d19f=>{const _0x3aa4df=_0x4b596c;this[_0x3aa4df(0x212)](this[_0x3aa4df(0x1da)][_0x3aa4df(0x1c1)](_0x41d19f));});}};X=G([W(0x0,_0x28818e(U))],X);function Z(){const _0x8372d1=_0x6f555b;let _0x2ab6cd=_0x1ee678(K),_0x4b1139=_0x1ee678(_0x21550a),_0x318bb3=_0x252035(()=>_0x4b1139[_0x8372d1(0x1c7)](_0x203c69[_0x8372d1(0x230)]),void 0x0,!0x1,[]),_0x1892da=_0x252035(_0x4cfce8(()=>_0x318bb3?_0x167d7b(()=>_0x9ce90d(_0x2ab6cd[_0x8372d1(0x1c5)](_0x318bb3[_0x8372d1(0x231)]()))):_0x243cf5(null),[_0x318bb3,_0x2ab6cd]),null),_0x449ac0=_0x252035(_0x1892da?()=>_0x1892da['status$']:null,_0x8372d1(0x215),!0x1,[_0x1892da]);return _0x1892da?_0x259d6b(_0x390708,{'align':_0x8372d1(0x1e2),'disabled':_0x449ac0==='offline','className':_0x8372d1(0x229),'overlay':_0x259d6b(le,{'status':_0x449ac0,'coordinator':_0x1892da}),'children':_0x259d6b(_0x8372d1(0x21d),{'className':_0x3d7f89(_0x8372d1(0x211),{'univer-cursor-not-allowed':_0x449ac0===_0x8372d1(0x1ed),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x449ac0!==_0x8372d1(0x1ed)}),'type':_0x8372d1(0x21d),'children':_0x259d6b(_0x295a01,{})})}):null;}function le(_0x40f80c){const _0x5af244=_0x6f555b;let {status:_0x40b195,coordinator:_0x1c2c04}=_0x40f80c;switch(_0x40b195){case _0x5af244(0x215):return _0x259d6b(ue,{'coordinator':_0x1c2c04});case _0x5af244(0x20c):return _0x259d6b(de,{'coordinator':_0x1c2c04});case _0x5af244(0x1d4):return _0x259d6b(fe,{'coordinator':_0x1c2c04});case _0x5af244(0x1ed):return _0x259d6b(me,{});case _0x5af244(0x214):return _0x259d6b(pe,{'coordinator':_0x1c2c04});default:return null;}}function ue(_0x5c03ad){const _0x3cd729=_0x6f555b;let {coordinator:_0x48f9bf}=_0x5c03ad;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x3cd729(0x223),{'className':_0x3cd729(0x1d3),'children':_0x3cd729(0x1dd)}),_0x259d6b(_0x35e69e,{'onClick':()=>_0x48f9bf[_0x3cd729(0x1fb)](),'children':_0x3cd729(0x1a9)})]});}function de(_0x3c5169){const _0x2acf23=_0x6f555b;let {coordinator:_0x5c8259}=_0x3c5169;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x2acf23(0x223),{'className':_0x2acf23(0x1d3),'children':_0x2acf23(0x1f6)}),_0x259d6b(_0x35e69e,{'onClick':()=>_0x5c8259['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x261d(_0x2fead8,_0x161f5a){_0x2fead8=_0x2fead8-0x1a3;const _0x326d0d=_0x326d();let _0x261de8=_0x326d0d[_0x2fead8];return _0x261de8;}function fe(_0x2d744c){const _0x25c7b2=_0x6f555b;let {coordinator:_0x345ac3}=_0x2d744c;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b('div',{'className':_0x25c7b2(0x1d3),'children':_0x25c7b2(0x1f2)}),_0x259d6b(_0x35e69e,{'variant':_0x25c7b2(0x205),'onClick':()=>_0x345ac3['startFollowing'](),'children':_0x25c7b2(0x1ce)})]});}function pe(_0x45ad0b){const _0x3fd523=_0x6f555b;let {coordinator:_0x3faeb6}=_0x45ad0b;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x3fd523(0x223),{'className':_0x3fd523(0x1d3),'children':_0x3fd523(0x217)}),_0x259d6b(_0x35e69e,{'variant':_0x3fd523(0x225),'onClick':()=>_0x3faeb6[_0x3fd523(0x1f9)](),'children':_0x3fd523(0x1ae)})]});}function me(){const _0x416a58=_0x6f555b;return _0x259d6b(_0x1019e6,{'children':_0x416a58(0x1bb)});}let Q=class extends _0x46999e{constructor(_0x202ea3,_0x20afee){const _0x5cb26e=_0x6f555b;super(),this[_0x5cb26e(0x204)]=_0x202ea3,this['_uiPartsService']=_0x20afee,this['_mountLiveShare']();}[_0x6f555b(0x21c)](){const _0xf62b0=_0x6f555b;this['disposeWithMe'](this[_0xf62b0(0x1df)]['registerComponent'](_0x4aa22c['HEADER_MENU'],()=>_0x1cb2c5(Z,this[_0xf62b0(0x204)])));}};Q=G([W(0x0,_0x28818e(_0x18620c)),W(0x1,_0x45ac3a)],Q);let $=class extends _0x572057{constructor(_0x2f03ef=Y,_0x2fb0bc,_0x1605e7){const _0x4a885f=_0x6f555b;super(),this[_0x4a885f(0x1fa)]=_0x2f03ef,this[_0x4a885f(0x204)]=_0x2fb0bc,this[_0x4a885f(0x224)]=_0x1605e7;let {..._0x5de6eb}=_0x5b8c53({},Y,this[_0x4a885f(0x1fa)]);this[_0x4a885f(0x224)][_0x4a885f(0x1a4)](_0x4a885f(0x1bf),_0x5de6eb);}[_0x6f555b(0x1a7)](){const _0x568e2c=_0x6f555b;_0x31f0d7(this[_0x568e2c(0x204)],_0x2f7b56([[U],[K],[X],[Q]],this['_config'][_0x568e2c(0x22e)])),_0x591296(this['_injector'],[[X]]);}[_0x6f555b(0x1c2)](){const _0xf0db12=_0x6f555b;_0x591296(this[_0xf0db12(0x204)],[[Q]]);}};H($,'type',_0x203c69[_0x6f555b(0x1ba)]),H($,'pluginName',_0x6f555b(0x1a8)),H($,'packageName',se),H($,_0x6f555b(0x1b6),ce),$=G([_0x3099e9(_0x948aaa),W(0x1,_0x28818e(_0x18620c)),W(0x2,_0x52b4ac)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x581879=_0x19a0;function _0x1f62(){const _0x132769=['3814977JPYlPM','IDLE','30616kNbftX','call','1174090qeWUfI','2LglRxO','getCurrentUnitOfType','4unbTuV','getLiveShareCoordinatorSync','function','No\x20active\x20workbook\x20found.','stopFollowing','5319867EYkmqw','getUnitId','startFollowing','6310005GdqpNT','_initialize','LiveShareStatusEnum','get','getStatus','868170YckaSa','stopPresenting','89242SDaMuU','getLiveShareStatus','constructor','441nJqZhi','_injector','UNIVER_SHEET','string','_liveShareController','symbol','toPrimitive','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','defineProperty','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','object','tryStartPresenting','extend'];_0x1f62=function(){return _0x132769;};return _0x1f62();}function _0x19a0(_0x34f6ee,_0x6c63b2){_0x34f6ee=_0x34f6ee-0x14a;const _0x1f622b=_0x1f62();let _0x19a09e=_0x1f622b[_0x34f6ee];return _0x19a09e;}(function(_0x218c64,_0x3cea81){const _0x30accd=_0x19a0,_0x41e026=_0x218c64();while(!![]){try{const _0x377fc9=-parseInt(_0x30accd(0x16d))/0x1*(-parseInt(_0x30accd(0x158))/0x2)+parseInt(_0x30accd(0x168))/0x3*(parseInt(_0x30accd(0x16f))/0x4)+-parseInt(_0x30accd(0x151))/0x5+-parseInt(_0x30accd(0x156))/0x6+parseInt(_0x30accd(0x14e))/0x7+parseInt(_0x30accd(0x16a))/0x8*(-parseInt(_0x30accd(0x15b))/0x9)+parseInt(_0x30accd(0x16c))/0xa;if(_0x377fc9===_0x3cea81)break;else _0x41e026['push'](_0x41e026['shift']());}catch(_0x6ee33b){_0x41e026['push'](_0x41e026['shift']());}}}(_0x1f62,0x9d3e8));import{LiveShareController as _0xfaa6c2,LiveShareStatus as _0x41f314}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x418f11,UniverInstanceType as _0x30f3f0}from'@univerjs/core';import{FEnum as _0x35fdd7,FUniver as _0x580b87}from'@univerjs/core/facade';function o(_0x2cb829){'@babel/helpers - typeof';const _0x5cace2=_0x19a0;return o=typeof Symbol==_0x5cace2(0x14b)&&typeof Symbol['iterator']==_0x5cace2(0x160)?function(_0x5a94fc){return typeof _0x5a94fc;}:function(_0x257089){const _0x2e77f4=_0x5cace2;return _0x257089&&typeof Symbol==_0x2e77f4(0x14b)&&_0x257089[_0x2e77f4(0x15a)]===Symbol&&_0x257089!==Symbol['prototype']?_0x2e77f4(0x160):typeof _0x257089;},o(_0x2cb829);}function s(_0x21f60f,_0x4af591){const _0x56b6fc=_0x19a0;if(o(_0x21f60f)!=_0x56b6fc(0x165)||!_0x21f60f)return _0x21f60f;var _0x541c2c=_0x21f60f[Symbol[_0x56b6fc(0x161)]];if(_0x541c2c!==void 0x0){var _0x636c51=_0x541c2c[_0x56b6fc(0x16b)](_0x21f60f,_0x4af591||'default');if(o(_0x636c51)!=_0x56b6fc(0x165))return _0x636c51;throw TypeError(_0x56b6fc(0x164));}return(_0x4af591===_0x56b6fc(0x15e)?String:Number)(_0x21f60f);}function c(_0x1bf028){const _0x11c4ad=_0x19a0;var _0x2c2e35=s(_0x1bf028,_0x11c4ad(0x15e));return o(_0x2c2e35)=='symbol'?_0x2c2e35:_0x2c2e35+'';}function l(_0xcf336e,_0x1273e3,_0xd1bf39){const _0x159bd8=_0x19a0;return(_0x1273e3=c(_0x1273e3))in _0xcf336e?Object[_0x159bd8(0x163)](_0xcf336e,_0x1273e3,{'value':_0xd1bf39,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xcf336e[_0x1273e3]=_0xd1bf39,_0xcf336e;}var u=class extends _0x580b87{constructor(..._0x17f535){const _0x452451=_0x19a0;super(..._0x17f535),l(this,_0x452451(0x15f),void 0x0);}[_0x581879(0x152)](_0x1f6712){const _0x42b04d=_0x581879;this[_0x42b04d(0x15f)]=_0x1f6712[_0x42b04d(0x154)](_0xfaa6c2);}[_0x581879(0x159)](){const _0x3fc369=_0x581879;var _0x801197;let _0x2142d8=this['_injector'][_0x3fc369(0x154)](_0x418f11)[_0x3fc369(0x16e)](_0x30f3f0[_0x3fc369(0x15d)]);if(!_0x2142d8)throw Error(_0x3fc369(0x14c));let _0x560e6e=_0x2142d8[_0x3fc369(0x14f)](),_0x44726a=this[_0x3fc369(0x15f)][_0x3fc369(0x14a)](_0x560e6e);return(_0x801197=_0x44726a==null?void 0x0:_0x44726a[_0x3fc369(0x155)]())==null?_0x41f314[_0x3fc369(0x169)]:_0x801197;}[_0x581879(0x150)](){const _0x48cf68=_0x581879;let _0x48940b=this['_injector'][_0x48cf68(0x154)](_0x418f11)['getCurrentUnitOfType'](_0x30f3f0[_0x48cf68(0x15d)]);if(!_0x48940b)throw Error(_0x48cf68(0x14c));let _0xf76666=_0x48940b['getUnitId'](),_0x5c04e3=this['_liveShareController'][_0x48cf68(0x14a)](_0xf76666);if(!_0x5c04e3)throw Error(_0x48cf68(0x162));_0x5c04e3[_0x48cf68(0x150)]();}[_0x581879(0x14d)](){const _0x5710f2=_0x581879;let _0x1dd3fe=this[_0x5710f2(0x15c)]['get'](_0x418f11)[_0x5710f2(0x16e)](_0x30f3f0[_0x5710f2(0x15d)]);if(!_0x1dd3fe)throw Error('No\x20active\x20workbook\x20found.');let _0x3b3c7b=_0x1dd3fe[_0x5710f2(0x14f)](),_0x3d09ea=this[_0x5710f2(0x15f)][_0x5710f2(0x14a)](_0x3b3c7b);if(!_0x3d09ea)throw Error(_0x5710f2(0x162));_0x3d09ea[_0x5710f2(0x14d)]();}['startPresenting'](){const _0x2f6ace=_0x581879;let _0x48a891=this[_0x2f6ace(0x15c)][_0x2f6ace(0x154)](_0x418f11)['getCurrentUnitOfType'](_0x30f3f0['UNIVER_SHEET']);if(!_0x48a891)throw Error(_0x2f6ace(0x14c));let _0xdb1665=_0x48a891[_0x2f6ace(0x14f)](),_0x54da0c=this['_liveShareController'][_0x2f6ace(0x14a)](_0xdb1665);if(!_0x54da0c)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54da0c[_0x2f6ace(0x166)]();}[_0x581879(0x157)](){const _0x2fdea5=_0x581879;let _0x3a54be=this[_0x2fdea5(0x15c)][_0x2fdea5(0x154)](_0x418f11)[_0x2fdea5(0x16e)](_0x30f3f0[_0x2fdea5(0x15d)]);if(!_0x3a54be)throw Error('No\x20active\x20workbook\x20found.');let _0xf07f54=_0x3a54be[_0x2fdea5(0x14f)](),_0x5273ea=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xf07f54);if(!_0x5273ea)throw Error(_0x2fdea5(0x162));_0x5273ea[_0x2fdea5(0x157)]();}};_0x580b87['extend'](u);var d=class extends _0x35fdd7{get[_0x581879(0x153)](){return _0x41f314;}};_0x35fdd7[_0x581879(0x167)](d);export{};
1
+ const _0x4aaef4=_0x532e;function _0x4ca6(){const _0x32518f=['7510xqbesW','64GzlgDL','78saQwko','IDLE','_liveShareController','getStatus','_injector','7ZWQeBD','object','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2OtZvhl','string','5079915IaFjYd','921696naJJJr','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','extend','140745tUdQAv','getLiveShareStatus','function','getUnitId','getLiveShareCoordinatorSync','call','tryStartPresenting','850208psGVND','stopPresenting','iterator','_initialize','No\x20active\x20workbook\x20found.','1551cdyLqm','symbol','get','94272KagPRn','toPrimitive','getCurrentUnitOfType','prototype','54zLmsNf','228803NtUzij','default','LiveShareStatusEnum','defineProperty','UNIVER_SHEET'];_0x4ca6=function(){return _0x32518f;};return _0x4ca6();}(function(_0x3db987,_0x577ace){const _0x4f02bb=_0x532e,_0x27f1fb=_0x3db987();while(!![]){try{const _0x418593=-parseInt(_0x4f02bb(0x105))/0x1*(-parseInt(_0x4f02bb(0xeb))/0x2)+parseInt(_0x4f02bb(0x100))/0x3*(-parseInt(_0x4f02bb(0xe1))/0x4)+-parseInt(_0x4f02bb(0xf1))/0x5*(parseInt(_0x4f02bb(0x104))/0x6)+-parseInt(_0x4f02bb(0xe7))/0x7*(parseInt(_0x4f02bb(0xf8))/0x8)+parseInt(_0x4f02bb(0xed))/0x9+-parseInt(_0x4f02bb(0xe0))/0xa*(parseInt(_0x4f02bb(0xfd))/0xb)+-parseInt(_0x4f02bb(0xee))/0xc*(-parseInt(_0x4f02bb(0xe2))/0xd);if(_0x418593===_0x577ace)break;else _0x27f1fb['push'](_0x27f1fb['shift']());}catch(_0x2b3740){_0x27f1fb['push'](_0x27f1fb['shift']());}}}(_0x4ca6,0x45c62));import{LiveShareController as _0x3a7481,LiveShareStatus as _0x3e5d44}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x5b7c09,UniverInstanceType as _0x21739a}from'@univerjs/core';import{FEnum as _0x1fd391,FUniver as _0xcf8219}from'@univerjs/core/facade';function _0x532e(_0x31bf33,_0x4d963a){_0x31bf33=_0x31bf33-0xdd;const _0x4ca655=_0x4ca6();let _0x532efd=_0x4ca655[_0x31bf33];return _0x532efd;}function o(_0x36c0f1){'@babel/helpers - typeof';const _0x354e0f=_0x532e;return o=typeof Symbol=='function'&&typeof Symbol[_0x354e0f(0xfa)]=='symbol'?function(_0x52cdad){return typeof _0x52cdad;}:function(_0x56b435){const _0x481fab=_0x354e0f;return _0x56b435&&typeof Symbol==_0x481fab(0xf3)&&_0x56b435['constructor']===Symbol&&_0x56b435!==Symbol[_0x481fab(0x103)]?_0x481fab(0xfe):typeof _0x56b435;},o(_0x36c0f1);}function s(_0x2c919a,_0x4cc2d2){const _0x42a825=_0x532e;if(o(_0x2c919a)!=_0x42a825(0xe8)||!_0x2c919a)return _0x2c919a;var _0x37716d=_0x2c919a[Symbol[_0x42a825(0x101)]];if(_0x37716d!==void 0x0){var _0x4c2868=_0x37716d[_0x42a825(0xf6)](_0x2c919a,_0x4cc2d2||_0x42a825(0x106));if(o(_0x4c2868)!=_0x42a825(0xe8))return _0x4c2868;throw TypeError(_0x42a825(0xef));}return(_0x4cc2d2===_0x42a825(0xec)?String:Number)(_0x2c919a);}function c(_0x1634c4){const _0x2cc308=_0x532e;var _0x4fd1b9=s(_0x1634c4,_0x2cc308(0xec));return o(_0x4fd1b9)==_0x2cc308(0xfe)?_0x4fd1b9:_0x4fd1b9+'';}function l(_0x1aff40,_0x269549,_0x283dc4){const _0x48a013=_0x532e;return(_0x269549=c(_0x269549))in _0x1aff40?Object[_0x48a013(0xde)](_0x1aff40,_0x269549,{'value':_0x283dc4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1aff40[_0x269549]=_0x283dc4,_0x1aff40;}var u=class extends _0xcf8219{constructor(..._0x3a9526){super(..._0x3a9526),l(this,'_liveShareController',void 0x0);}[_0x4aaef4(0xfb)](_0x3d1afb){const _0xf65a63=_0x4aaef4;this[_0xf65a63(0xe4)]=_0x3d1afb[_0xf65a63(0xff)](_0x3a7481);}[_0x4aaef4(0xf2)](){const _0x81efaf=_0x4aaef4;var _0x21a951;let _0x393ddb=this[_0x81efaf(0xe6)][_0x81efaf(0xff)](_0x5b7c09)[_0x81efaf(0x102)](_0x21739a[_0x81efaf(0xdf)]);if(!_0x393ddb)throw Error(_0x81efaf(0xfc));let _0x59515c=_0x393ddb[_0x81efaf(0xf4)](),_0x267c60=this[_0x81efaf(0xe4)][_0x81efaf(0xf5)](_0x59515c);return(_0x21a951=_0x267c60==null?void 0x0:_0x267c60[_0x81efaf(0xe5)]())==null?_0x3e5d44[_0x81efaf(0xe3)]:_0x21a951;}['startFollowing'](){const _0x5496dd=_0x4aaef4;let _0x4e0909=this['_injector'][_0x5496dd(0xff)](_0x5b7c09)[_0x5496dd(0x102)](_0x21739a['UNIVER_SHEET']);if(!_0x4e0909)throw Error('No\x20active\x20workbook\x20found.');let _0x2ef941=_0x4e0909[_0x5496dd(0xf4)](),_0x4fcf9b=this[_0x5496dd(0xe4)][_0x5496dd(0xf5)](_0x2ef941);if(!_0x4fcf9b)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4fcf9b[_0x5496dd(0xe9)]();}['stopFollowing'](){const _0x127616=_0x4aaef4;let _0x4c4e1d=this[_0x127616(0xe6)][_0x127616(0xff)](_0x5b7c09)['getCurrentUnitOfType'](_0x21739a[_0x127616(0xdf)]);if(!_0x4c4e1d)throw Error(_0x127616(0xfc));let _0x34eca6=_0x4c4e1d[_0x127616(0xf4)](),_0x463bbb=this[_0x127616(0xe4)][_0x127616(0xf5)](_0x34eca6);if(!_0x463bbb)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x463bbb['stopFollowing']();}['startPresenting'](){const _0x2d6ab8=_0x4aaef4;let _0x5d70ea=this[_0x2d6ab8(0xe6)][_0x2d6ab8(0xff)](_0x5b7c09)['getCurrentUnitOfType'](_0x21739a[_0x2d6ab8(0xdf)]);if(!_0x5d70ea)throw Error(_0x2d6ab8(0xfc));let _0x34d9d7=_0x5d70ea[_0x2d6ab8(0xf4)](),_0x2b5dfd=this[_0x2d6ab8(0xe4)][_0x2d6ab8(0xf5)](_0x34d9d7);if(!_0x2b5dfd)throw Error(_0x2d6ab8(0xea));_0x2b5dfd[_0x2d6ab8(0xf7)]();}[_0x4aaef4(0xf9)](){const _0x173acf=_0x4aaef4;let _0x1052e8=this['_injector'][_0x173acf(0xff)](_0x5b7c09)[_0x173acf(0x102)](_0x21739a[_0x173acf(0xdf)]);if(!_0x1052e8)throw Error('No\x20active\x20workbook\x20found.');let _0x25e2b9=_0x1052e8[_0x173acf(0xf4)](),_0x345dd6=this[_0x173acf(0xe4)]['getLiveShareCoordinatorSync'](_0x25e2b9);if(!_0x345dd6)throw Error(_0x173acf(0xea));_0x345dd6['stopPresenting']();}};_0xcf8219[_0x4aaef4(0xf0)](u);var d=class extends _0x1fd391{get[_0x4aaef4(0xdd)](){return _0x3e5d44;}};_0x1fd391[_0x4aaef4(0xf0)](d);export{};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x12d49e=_0x56aa;(function(_0x5af5c6,_0x361e7e){const _0x424236=_0x56aa,_0xbb81b1=_0x5af5c6();while(!![]){try{const _0xff31b9=-parseInt(_0x424236(0x145))/0x1*(-parseInt(_0x424236(0x170))/0x2)+parseInt(_0x424236(0x104))/0x3*(-parseInt(_0x424236(0x17d))/0x4)+parseInt(_0x424236(0x125))/0x5*(parseInt(_0x424236(0x162))/0x6)+-parseInt(_0x424236(0x16e))/0x7+-parseInt(_0x424236(0x124))/0x8*(parseInt(_0x424236(0x10f))/0x9)+-parseInt(_0x424236(0x133))/0xa*(parseInt(_0x424236(0xeb))/0xb)+parseInt(_0x424236(0x135))/0xc*(parseInt(_0x424236(0x10b))/0xd);if(_0xff31b9===_0x361e7e)break;else _0xbb81b1['push'](_0xbb81b1['shift']());}catch(_0x21151d){_0xbb81b1['push'](_0xbb81b1['shift']());}}}(_0x29ad,0xdd24a));import{CollaborationEvent as _0x2dfd60,parseProtocolChangeset as _0x47a9e1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32c2a9,SessionStatus as _0x52fe0b,UniverCollaborationClientPlugin as _0x21f3e5}from'@univerjs-pro/collaboration-client';import{CommandType as _0x27732d,DependentOn as _0x1b6da4,Disposable as _0x4659c0,DisposableCollection as _0x58bd8e,ICommandService as _0x41f7a1,IConfigService as _0x348818,IUniverInstanceService as _0x1eddd0,Inject as _0x5247da,Injector as _0x408402,Plugin as _0x1502e3,RxDisposable as _0x5ca59e,UniverInstanceType as _0x14abf6,merge as _0x2dd70c,mergeOverrideWithDependencies as _0x18178b,registerDependencies as _0x59bf00,toDisposable as _0x2f05ef,touchDependencies as _0xa55cab}from'@univerjs/core';import{InsertSheetMutation as _0xa910e4,SetWorksheetActiveOperation as _0x58eadc}from'@univerjs/sheets';import{BehaviorSubject as _0x5700c9,Subject as _0x10b404}from'rxjs';import{takeUntil as _0x2af6df,throttleTime as _0x47be7d}from'rxjs/operators';import{SetScrollOperation as _0x548c90,SetZoomRatioOperation as _0x3d3ee9}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x22834b,IUIPartsService as _0x153cdd,connectInjector as _0x234790,useDependency as _0x2ca01c,useObservable as _0xdec5bf}from'@univerjs/ui';import{Button as _0x1fc5f3,Dropdown as _0x5d4586,clsx as _0x256ea0}from'@univerjs/design';import{LiveShareIcon as _0x4b5bb8}from'@univerjs/icons';import{useEffect as _0x590366,useRef as _0x2077b7,useState as _0x4d0fce}from'react';import{Fragment as _0x1b094c,jsx as _0x2e1826,jsxs as _0x53139}from'react/jsx-runtime';function z(_0x1df1a6){'@babel/helpers - typeof';const _0x596588=_0x56aa;return z=typeof Symbol==_0x596588(0x164)&&typeof Symbol[_0x596588(0x160)]=='symbol'?function(_0x500e9c){return typeof _0x500e9c;}:function(_0x49742b){const _0x6068da=_0x596588;return _0x49742b&&typeof Symbol==_0x6068da(0x164)&&_0x49742b[_0x6068da(0x13a)]===Symbol&&_0x49742b!==Symbol[_0x6068da(0x116)]?'symbol':typeof _0x49742b;},z(_0x1df1a6);}function B(_0x4c3a13,_0x4ccb3f){const _0x74e8fc=_0x56aa;if(z(_0x4c3a13)!=_0x74e8fc(0x176)||!_0x4c3a13)return _0x4c3a13;var _0x1fbcc9=_0x4c3a13[Symbol[_0x74e8fc(0x15f)]];if(_0x1fbcc9!==void 0x0){var _0x5d2630=_0x1fbcc9['call'](_0x4c3a13,_0x4ccb3f||_0x74e8fc(0x101));if(z(_0x5d2630)!='object')return _0x5d2630;throw TypeError(_0x74e8fc(0x11e));}return(_0x4ccb3f===_0x74e8fc(0x16b)?String:Number)(_0x4c3a13);}function V(_0x188519){const _0x542c52=_0x56aa;var _0xcd177e=B(_0x188519,_0x542c52(0x16b));return z(_0xcd177e)==_0x542c52(0x166)?_0xcd177e:_0xcd177e+'';}function H(_0x462b49,_0x603c26,_0x126fbd){const _0x2e6fad=_0x56aa;return(_0x603c26=V(_0x603c26))in _0x462b49?Object[_0x2e6fad(0xf4)](_0x462b49,_0x603c26,{'value':_0x126fbd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x462b49[_0x603c26]=_0x126fbd,_0x462b49;}var U=class extends _0x4659c0{constructor(..._0x3fd6f5){super(..._0x3fd6f5),H(this,'_sharedOperations',new Set()),H(this,'_reporters',new Set());}['registerSharedOperation'](_0x226e08){const _0x1a530b=_0x56aa;return this[_0x1a530b(0xfd)][_0x1a530b(0x138)](_0x226e08),_0x2f05ef(()=>this[_0x1a530b(0xfd)][_0x1a530b(0x120)](_0x226e08));}[_0x12d49e(0x169)](_0x116b99){const _0x13bce4=_0x12d49e;return this[_0x13bce4(0x15a)][_0x13bce4(0x138)](_0x116b99),_0x2f05ef(()=>this[_0x13bce4(0x15a)][_0x13bce4(0x120)](_0x116b99));}[_0x12d49e(0x158)](_0xe56dcf){const _0xe5f948=_0x12d49e;return this['_sharedOperations'][_0xe5f948(0x118)](_0xe56dcf);}[_0x12d49e(0x163)](_0x59edf5){const _0x124cc8=_0x12d49e;return Array[_0x124cc8(0x10d)](this[_0x124cc8(0x15a)])[_0x124cc8(0x115)](_0x1aa362=>_0x1aa362(_0x59edf5));}};function W(_0x36d2c6,_0x467d96){return function(_0x559162,_0x4f0bbf){_0x467d96(_0x559162,_0x4f0bbf,_0x36d2c6);};}function G(_0x40f686,_0x211469,_0x2eefbb,_0x33aa77){const _0x2957ac=_0x12d49e;var _0x9179eb=arguments[_0x2957ac(0x129)],_0x271f4a=_0x9179eb<0x3?_0x211469:_0x33aa77===null?_0x33aa77=Object[_0x2957ac(0x11f)](_0x211469,_0x2eefbb):_0x33aa77,_0xf16eb5;if(typeof Reflect=='object'&&typeof Reflect[_0x2957ac(0x117)]==_0x2957ac(0x164))_0x271f4a=Reflect[_0x2957ac(0x117)](_0x40f686,_0x211469,_0x2eefbb,_0x33aa77);else{for(var _0x317cc2=_0x40f686['length']-0x1;_0x317cc2>=0x0;_0x317cc2--)(_0xf16eb5=_0x40f686[_0x317cc2])&&(_0x271f4a=(_0x9179eb<0x3?_0xf16eb5(_0x271f4a):_0x9179eb>0x3?_0xf16eb5(_0x211469,_0x2eefbb,_0x271f4a):_0xf16eb5(_0x211469,_0x2eefbb))||_0x271f4a);}return _0x9179eb>0x3&&_0x271f4a&&Object[_0x2957ac(0xf4)](_0x211469,_0x2eefbb,_0x271f4a),_0x271f4a;}let K=class extends _0x5ca59e{constructor(_0x4917ee,_0x4db5b7,_0x3c3e1e){const _0x5d489d=_0x12d49e;super(),this[_0x5d489d(0x181)]=_0x4917ee,this[_0x5d489d(0x136)]=_0x4db5b7,this[_0x5d489d(0x121)]=_0x3c3e1e,H(this,_0x5d489d(0x132),new Map()),this['_init']();}async[_0x12d49e(0xfe)](_0x47b956){const _0x261a4b=_0x12d49e;return this[_0x261a4b(0x132)]['has'](_0x47b956)||await this[_0x261a4b(0x137)](_0x47b956),this['_entities']['get'](_0x47b956);}['getLiveShareCoordinatorSync'](_0x1ec7d7){const _0x7a971e=_0x12d49e;var _0x328cc7;return(_0x328cc7=this[_0x7a971e(0x132)]['get'](_0x1ec7d7))==null?null:_0x328cc7;}[_0x12d49e(0x154)](){const _0x5b2aba=_0x12d49e;this[_0x5b2aba(0x181)][_0x5b2aba(0x12c)](_0x14abf6[_0x5b2aba(0x157)])[_0x5b2aba(0x13c)](_0x2af6df(this[_0x5b2aba(0x14f)]))['subscribe'](async _0x4f66d7=>{const _0x359d4f=_0x5b2aba;let _0x83bdd8=_0x4f66d7[_0x359d4f(0x13f)][_0x359d4f(0x112)]();this[_0x359d4f(0x132)][_0x359d4f(0x118)](_0x83bdd8)||this[_0x359d4f(0x137)](_0x83bdd8);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x14abf6[_0x5b2aba(0x157)])[_0x5b2aba(0x13c)](_0x2af6df(this['dispose$']))[_0x5b2aba(0x127)](_0x409989=>{const _0x18122b=_0x5b2aba;let _0x90b7b6=_0x409989[_0x18122b(0x112)](),_0x3fca5c=this[_0x18122b(0x132)][_0x18122b(0x16f)](_0x90b7b6);_0x3fca5c==null||_0x3fca5c[_0x18122b(0x100)]();});}async[_0x12d49e(0x137)](_0x43f6b8){const _0x8cdb11=_0x12d49e;let _0x8f0051=await this[_0x8cdb11(0x121)][_0x8cdb11(0x102)](_0x43f6b8),_0x20947e=this[_0x8cdb11(0x136)]['createInstance'](J,_0x43f6b8,_0x8f0051);return _0x20947e[_0x8cdb11(0xfb)](),this[_0x8cdb11(0x132)][_0x8cdb11(0x109)](_0x43f6b8,_0x20947e),_0x20947e;}};K=G([W(0x0,_0x1eddd0),W(0x1,_0x5247da(_0x408402)),W(0x2,_0x5247da(_0x32c2a9))],K);let q=function(_0x455e5f){const _0x405d6c=_0x12d49e;return _0x455e5f[_0x405d6c(0x142)]=_0x405d6c(0x150),_0x455e5f['IDLE']=_0x405d6c(0x141),_0x455e5f[_0x405d6c(0x108)]=_0x405d6c(0xf2),_0x455e5f[_0x405d6c(0x11d)]=_0x405d6c(0x10c),_0x455e5f['PRESENTING']=_0x405d6c(0xf5),_0x455e5f;}({}),J=class extends _0x5ca59e{get['_status'](){const _0x201835=_0x12d49e;return this[_0x201835(0x107)][_0x201835(0x178)]();}constructor(_0x598eb4,_0x37d206,_0x4ca3b5,_0x69c79,_0x14f351){const _0x556c50=_0x12d49e;super(),this['_unitID']=_0x598eb4,this['_collabSession']=_0x37d206,this[_0x556c50(0x10e)]=_0x4ca3b5,this[_0x556c50(0x16c)]=_0x69c79,this['_commandService']=_0x14f351,H(this,_0x556c50(0x107),new _0x5700c9(_0x556c50(0x141))),H(this,_0x556c50(0x113),this['_status$'][_0x556c50(0x12a)]()),H(this,_0x556c50(0x154),!0x1),H(this,_0x556c50(0xed),null),H(this,_0x556c50(0xfc),null);}[_0x12d49e(0x100)](){const _0x5a1d5d=_0x12d49e;var _0x5ad786;(_0x5ad786=this[_0x5a1d5d(0xed)])==null||_0x5ad786[_0x5a1d5d(0x100)](),this[_0x5a1d5d(0x107)][_0x5a1d5d(0xf7)](_0x5a1d5d(0x141)),this['_status$'][_0x5a1d5d(0x148)]();}['getStatus'](){const _0x4ed593=_0x12d49e;return this[_0x4ed593(0xfa)];}[_0x12d49e(0xfb)](){const _0x186bd7=_0x12d49e;this[_0x186bd7(0x154)]||(this['_init']=!0x0,this[_0x186bd7(0x13d)][_0x186bd7(0x14e)][_0x186bd7(0x13c)](_0x2af6df(this[_0x186bd7(0x14f)]))[_0x186bd7(0x127)](_0x4650e9=>{const _0x38beda=_0x186bd7;switch(_0x4650e9){case _0x52fe0b['OFFLINE']:this[_0x38beda(0xf0)]();break;case _0x52fe0b[_0x38beda(0x14c)]:this['_handleOnline']();break;default:}}),this[_0x186bd7(0x13d)][_0x186bd7(0x15e)][_0x186bd7(0x13c)](_0x2af6df(this[_0x186bd7(0x14f)]))[_0x186bd7(0x127)](_0x24618d=>{const _0x1afb64=_0x186bd7;let {eventID:_0x2bca3d}=_0x24618d;switch(_0x2bca3d){case _0x2dfd60[_0x1afb64(0x149)]:this[_0x1afb64(0xf9)](_0x24618d);break;case _0x2dfd60[_0x1afb64(0xf8)]:this[_0x1afb64(0x126)](_0x24618d);break;case _0x2dfd60[_0x1afb64(0x11a)]:this['_handleTerminate']();break;case _0x2dfd60[_0x1afb64(0x111)]:this[_0x1afb64(0x13e)](_0x24618d);break;default:}}));}[_0x12d49e(0x179)](){const _0x8b7b9e=_0x12d49e;this['_collabSession'][_0x8b7b9e(0x155)]({'eventID':_0x2dfd60[_0x8b7b9e(0x140)],'data':{'unitID':this[_0x8b7b9e(0x14d)],'userID':this[_0x8b7b9e(0x13d)][_0x8b7b9e(0x143)]()}},this[_0x8b7b9e(0x14d)]);}['stopPresenting'](){const _0x10cd91=_0x12d49e;this['_status']===_0x10cd91(0xf5)&&(this[_0x10cd91(0x107)][_0x10cd91(0xf7)](_0x10cd91(0x141)),this[_0x10cd91(0x13d)][_0x10cd91(0x155)]({'eventID':_0x2dfd60[_0x10cd91(0x11a)],'data':{'unitID':this[_0x10cd91(0x14d)]}},this[_0x10cd91(0x14d)]));}[_0x12d49e(0x180)](){const _0x242004=_0x12d49e;this[_0x242004(0xfa)]==='not-following'&&(this[_0x242004(0x107)]['next'](_0x242004(0xf2)),this[_0x242004(0x123)]());}['stopFollowing'](){const _0x326dd5=_0x12d49e;this[_0x326dd5(0xfa)]===_0x326dd5(0xf2)&&this['_stopFollowing']();}['_handleNewHost'](_0x374469){const _0x162050=_0x12d49e;let {presenter:_0x5df368}=_0x374469[_0x162050(0xef)],_0x50cb3d=this['_collabSession'][_0x162050(0x143)]();this[_0x162050(0xfc)]=_0x5df368,_0x5df368===_0x50cb3d?(this['_stopFollowing'](),this[_0x162050(0x152)]()):this[_0x162050(0xfa)]!=='not-following'&&(this['_stopPresenting'](),this[_0x162050(0x123)]());}[_0x12d49e(0x165)](){const _0x28b5f8=_0x12d49e;let _0x433c96={'eventID':_0x2dfd60['LIVESHARE_FETCH_OPERATIONS']};this[_0x28b5f8(0x13d)][_0x28b5f8(0x155)](_0x433c96,this[_0x28b5f8(0x14d)]);}[_0x12d49e(0x167)](){const _0x4ce878=_0x12d49e;this[_0x4ce878(0xfc)]=null,this[_0x4ce878(0xfa)]!==_0x4ce878(0xf5)&&this[_0x4ce878(0x15b)]();}['_handleNewChangeSets'](_0x4c4dc1){const _0x312b90=_0x12d49e;if(this['_status']===_0x312b90(0xf2)&&this[_0x312b90(0xfc)]===_0x4c4dc1['data'][_0x312b90(0x182)]){let _0x39e6d4=_0x47a9e1(_0x4c4dc1[_0x312b90(0xef)])[_0x312b90(0x105)][_0x312b90(0x151)]()[_0x312b90(0x173)](_0x1df189=>_0x1df189['id']===_0xa910e4['id']);if(_0x39e6d4){let _0x15f301=_0x39e6d4[_0x312b90(0x17c)][_0x312b90(0x134)],_0x55d94a=_0x39e6d4[_0x312b90(0x17c)][_0x312b90(0x174)]['id'];setTimeout(()=>{const _0x32f359=_0x312b90;this[_0x32f359(0xf3)]['executeCommand'](_0x58eadc['id'],{'unitId':_0x15f301,'subUnitId':_0x55d94a},{'fromCollab':!0x0});});}}}[_0x12d49e(0x152)](){const _0x10346b=_0x12d49e;var _0x24617d;(_0x24617d=this[_0x10346b(0xed)])==null||_0x24617d[_0x10346b(0x100)](),this[_0x10346b(0x107)][_0x10346b(0xf7)]('presenting');let _0x18bdf3=new Map(),_0x4d6144=this[_0x10346b(0xed)]=new _0x58bd8e();_0x4d6144['add'](_0x2f05ef(()=>{const _0x1807d0=_0x10346b;_0x18bdf3[_0x1807d0(0x10a)](({subject:_0xe9fd2b,subscription:_0x588410})=>{const _0x5d9a11=_0x1807d0;_0x588410[_0x5d9a11(0x17e)](),_0xe9fd2b['complete']();}),_0x18bdf3[_0x1807d0(0x11b)]();})),_0x4d6144[_0x10346b(0x138)](this[_0x10346b(0xf3)][_0x10346b(0x106)](_0x5e4287=>{const _0x4788fd=_0x10346b;if(_0x5e4287[_0x4788fd(0x131)]!==_0x27732d['OPERATION']||!this[_0x4788fd(0x16c)][_0x4788fd(0x158)](_0x5e4287['id']))return;let {id:_0x4f5fbb}=_0x5e4287,_0x31aa58;if(_0x18bdf3[_0x4788fd(0x118)](_0x4f5fbb))_0x31aa58=_0x18bdf3[_0x4788fd(0x16f)](_0x4f5fbb)[_0x4788fd(0x110)];else{var _0x30f24b;_0x31aa58=new _0x10b404();let _0x99010d=_0x31aa58[_0x4788fd(0x13c)](_0x47be7d((_0x30f24b=this['_configService'][_0x4788fd(0x139)](_0x4788fd(0x128)))==null?0xc8:_0x30f24b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4788fd(0x127)](_0x2926ed=>{const _0x58ad0c=_0x4788fd;this['_collabSession']['send']({'eventID':_0x2dfd60['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x58ad0c(0x14d)],'operations':{[_0x2926ed['id']]:{'id':_0x2926ed['id'],'params':JSON[_0x58ad0c(0x11c)](_0x2926ed['params'])}}}},this[_0x58ad0c(0x14d)]);});_0x18bdf3[_0x4788fd(0x109)](_0x4f5fbb,{'subject':_0x31aa58,'subscription':_0x99010d});}_0x31aa58[_0x4788fd(0xf7)](_0x5e4287);})),this[_0x10346b(0x16c)][_0x10346b(0x163)](this[_0x10346b(0x14d)])[_0x10346b(0x10a)](_0x1fb644=>this['_collabSession'][_0x10346b(0x155)]({'eventID':_0x2dfd60['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x10346b(0x14d)],'operations':{[_0x1fb644['id']]:{'id':_0x1fb644['id'],'params':JSON[_0x10346b(0x11c)](_0x1fb644[_0x10346b(0x17c)])}}}},this[_0x10346b(0x14d)]));}[_0x12d49e(0x15d)](){const _0x32ae5d=_0x12d49e;var _0x804031;this[_0x32ae5d(0x107)][_0x32ae5d(0xf7)](_0x32ae5d(0x141)),(_0x804031=this[_0x32ae5d(0xed)])==null||_0x804031[_0x32ae5d(0x100)](),this['_commandDisposable']=null;}[_0x12d49e(0x123)](){const _0x2be806=_0x12d49e;var _0x44643d;(_0x44643d=this[_0x2be806(0xed)])==null||_0x44643d[_0x2be806(0x100)](),this[_0x2be806(0x107)][_0x2be806(0xf7)]('following');}[_0x12d49e(0x15b)](){const _0xd265d0=_0x12d49e;var _0xf9bca3;this[_0xd265d0(0x107)][_0xd265d0(0xf7)](_0xd265d0(0x141)),(_0xf9bca3=this[_0xd265d0(0xed)])==null||_0xf9bca3[_0xd265d0(0x100)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x4ea4f8=_0x12d49e;var _0x115742;this[_0x4ea4f8(0x107)][_0x4ea4f8(0xf7)](_0x4ea4f8(0x10c)),(_0x115742=this[_0x4ea4f8(0xed)])==null||_0x115742[_0x4ea4f8(0x100)]();}[_0x12d49e(0x126)](_0x534275){const _0x47e430=_0x12d49e;if([_0x47e430(0xf5),'not-following','offline'][_0x47e430(0x161)](this[_0x47e430(0xfa)])||!_0x534275[_0x47e430(0xef)]['presenter']||_0x534275[_0x47e430(0xef)][_0x47e430(0x159)]===this['_collabSession'][_0x47e430(0x143)]())return;this['_status']==='idle'&&this[_0x47e430(0x123)]();let _0x3e4257=_0x534275[_0x47e430(0xef)][_0x47e430(0x114)];Object[_0x47e430(0xec)](_0x3e4257)[_0x47e430(0x10a)](_0x223354=>{const _0x50eb01=_0x47e430;this[_0x50eb01(0xf3)][_0x50eb01(0x15c)](_0x223354['id'],_0x223354[_0x50eb01(0x17c)]?JSON[_0x50eb01(0x14b)](_0x223354[_0x50eb01(0x17c)]):null,{'fromCollab':!0x0});});}[_0x12d49e(0xf0)](){const _0x46d52e=_0x12d49e;var _0x3c91b0;this[_0x46d52e(0x107)]['next'](_0x46d52e(0x150)),(_0x3c91b0=this[_0x46d52e(0xed)])==null||_0x3c91b0[_0x46d52e(0x100)]();}[_0x12d49e(0x156)](){const _0x5ccdbe=_0x12d49e;this[_0x5ccdbe(0x107)]['next']('idle'),this['_fetchOperations']();}};J=G([W(0x2,_0x348818),W(0x3,_0x5247da(U)),W(0x4,_0x41f7a1)],J);var oe=_0x12d49e(0x16a),se='1.0.0-alpha.3';const Y={};let X=class extends _0x4659c0{constructor(_0xcd1412){const _0x9fcf53=_0x12d49e;super(),this[_0x9fcf53(0x16c)]=_0xcd1412,this[_0x9fcf53(0x154)]();}[_0x12d49e(0x154)](){const _0x5e33bd=_0x12d49e;[_0x3d3ee9['id'],_0x548c90['id'],_0x58eadc['id']][_0x5e33bd(0x10a)](_0x5b6e8c=>{const _0x5bd46e=_0x5e33bd;this['disposeWithMe'](this['_liveShareService'][_0x5bd46e(0x12d)](_0x5b6e8c));});}};X=G([W(0x0,_0x5247da(U))],X);function ce(){const _0x40248c=_0x12d49e;let _0x3fbc85=_0x2ca01c(K),_0x50d4d0=_0x2ca01c(_0x1eddd0),_0x4ac9d3=_0xdec5bf(()=>_0x50d4d0[_0x40248c(0x168)](_0x14abf6[_0x40248c(0x157)]),void 0x0,!0x1,[]),[_0x42268e,_0x17c1d2]=_0x4d0fce(null),[_0xa9689e,_0x18b7da]=_0x4d0fce(_0x40248c(0x141)),_0x2fb899=_0x2077b7(null);return _0x590366(()=>(_0x4ac9d3&&_0x3fbc85[_0x40248c(0xfe)](_0x4ac9d3[_0x40248c(0x112)]())['then'](_0x1c59c2=>{const _0xe1e8f6=_0x40248c;_0x17c1d2(_0x1c59c2),_0x2fb899[_0xe1e8f6(0x13b)]=_0x1c59c2[_0xe1e8f6(0x113)][_0xe1e8f6(0x127)](_0x3b0da2=>{_0x18b7da(_0x3b0da2);});}),()=>{const _0x256803=_0x40248c;var _0x500f63;(_0x500f63=_0x2fb899[_0x256803(0x13b)])==null||_0x500f63[_0x256803(0x17e)](),_0x2fb899['current']=null;}),[_0x4ac9d3,_0x3fbc85]),_0x42268e?_0x2e1826(_0x5d4586,{'align':_0x40248c(0x17f),'disabled':_0xa9689e===_0x40248c(0x150),'className':_0x40248c(0x144),'overlay':_0x2e1826(Z,{'status':_0xa9689e,'coordinator':_0x42268e}),'children':_0x2e1826(_0x40248c(0x175),{'className':_0x256ea0(_0x40248c(0x122),{'univer-cursor-not-allowed':_0xa9689e===_0x40248c(0x150),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa9689e!==_0x40248c(0x150)}),'type':'button','children':_0x2e1826(_0x4b5bb8,{})})}):null;}function Z(_0xf12cc7){const _0xe8b6a1=_0x12d49e;let {status:_0x5574a7,coordinator:_0xc5d751}=_0xf12cc7;switch(_0x5574a7){case _0xe8b6a1(0x141):return _0x2e1826(le,{'coordinator':_0xc5d751});case'following':return _0x2e1826(ue,{'coordinator':_0xc5d751});case'not-following':return _0x2e1826(de,{'coordinator':_0xc5d751});case _0xe8b6a1(0x150):return _0x2e1826(pe,{});case _0xe8b6a1(0xf5):return _0x2e1826(fe,{'coordinator':_0xc5d751});default:return null;}}function le(_0x347889){const _0x1ef0bc=_0x12d49e;let {coordinator:_0x3f288c}=_0x347889;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x1ef0bc(0x177),{'className':_0x1ef0bc(0x146),'children':'Present\x20this\x20document'}),_0x2e1826(_0x1fc5f3,{'onClick':()=>_0x3f288c[_0x1ef0bc(0x179)](),'children':'Start'})]});}function _0x29ad(){const _0x12240a=['_handleNewHost','_status','init','_presenter','_sharedOperations','getLiveShareCoordinator','Stop\x20following','dispose','default','requireSession','override','452748yIgsgK','mutations','onCommandExecuted','_status$','FOLLOWING','set','forEach','575770stZGgZ','not-following','from','_configService','405APGCvB','subject','NEW_CHANGESETS','getUnitId','status$','operations','map','prototype','decorate','has','text','LIVESHARE_TERMINATE','clear','stringify','NOT_FOLLOWING','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getOwnPropertyDescriptor','delete','_collabSessionService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_startFollowing','180936eEMKwV','3070MxyiFc','_handleOperation','subscribe','SAME_OPERATION_SHARE_INTERVAL','length','asObservable','UNIVER_UNKNOWN','getTypeOfUnitAdded$','registerSharedOperation','registerComponent','UNIVER_LIVE_SHARE_PLUGIN','onStarting','type','_entities','1610rxCgkg','unitId','972teGhAp','_injector','_startLiveShareCoordinator','add','getConfig','constructor','current','pipe','_collabSession','_handleNewChangeSets','unit','LIVESHARE_REQUEST_HOST','idle','OFFLINE','getMemberID','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','1030Fpdstu','univer-mb-3\x20univer-w-full\x20univer-text-sm','_config','complete','LIVESHARE_NEW_HOST','HEADER_MENU','parse','ONLINE','_unitID','sessionStatus$','dispose$','offline','reverse','_startPresenting','_mountLiveShare','_init','send','_handleOnline','UNIVER_SHEET','shouldShareOperation','presenter','_reporters','_beIdle','executeCommand','_stopPresenting','event$','toPrimitive','iterator','includes','7368CsJZCd','getInitialStates','function','_fetchOperations','symbol','_handleTerminate','getCurrentTypeOfUnit$','registerInitialStateReporter','@univerjs-pro/live-share','string','_liveShareService','pluginName','4054624TqWLXY','get','746kEAlTF','live-share.config','_uiPartsService','find','sheet','button','object','div','getValue','tryStartPresenting','stopPresenting','You\x27are\x20offline.','params','40aUoGlQ','unsubscribe','end','startFollowing','_univerInstanceService','memberID','48763RkUsYT','values','_commandDisposable','setConfig','data','_handleOffline','stopFollowing','following','_commandService','defineProperty','presenting','You\x27re\x20not\x20following\x20the\x20presenter','next','LIVESHARE_OPERATION'];_0x29ad=function(){return _0x12240a;};return _0x29ad();}function _0x56aa(_0xe224c0,_0x40afac){_0xe224c0=_0xe224c0-0xeb;const _0x29ad87=_0x29ad();let _0x56aaba=_0x29ad87[_0xe224c0];return _0x56aaba;}function ue(_0x43cfc0){const _0x55bb5d=_0x12d49e;let {coordinator:_0x11fa2d}=_0x43cfc0;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x55bb5d(0x177),{'className':_0x55bb5d(0x146),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2e1826(_0x1fc5f3,{'onClick':()=>_0x11fa2d[_0x55bb5d(0xf1)](),'children':_0x55bb5d(0xff)})]});}function de(_0x31f80a){const _0x377687=_0x12d49e;let {coordinator:_0x1f4b0e}=_0x31f80a;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x377687(0x177),{'className':_0x377687(0x146),'children':_0x377687(0xf6)}),_0x2e1826(_0x1fc5f3,{'variant':_0x377687(0x119),'onClick':()=>_0x1f4b0e[_0x377687(0x180)](),'children':'Start\x20following'})]});}function fe(_0x5717e0){const _0x41daf2=_0x12d49e;let {coordinator:_0x3da7d0}=_0x5717e0;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x41daf2(0x177),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2e1826(_0x1fc5f3,{'variant':'default','onClick':()=>_0x3da7d0[_0x41daf2(0x17a)](),'children':'Stop\x20presenting'})]});}function pe(){const _0x5938fd=_0x12d49e;return _0x2e1826(_0x1b094c,{'children':_0x5938fd(0x17b)});}let Q=class extends _0x4659c0{constructor(_0x45f985,_0x15120f){const _0x1fbafb=_0x12d49e;super(),this[_0x1fbafb(0x136)]=_0x45f985,this[_0x1fbafb(0x172)]=_0x15120f,this[_0x1fbafb(0x153)]();}[_0x12d49e(0x153)](){const _0x46045c=_0x12d49e;this['disposeWithMe'](this[_0x46045c(0x172)][_0x46045c(0x12e)](_0x22834b[_0x46045c(0x14a)],()=>_0x234790(ce,this[_0x46045c(0x136)])));}};Q=G([W(0x0,_0x5247da(_0x408402)),W(0x1,_0x153cdd)],Q);let $=class extends _0x1502e3{constructor(_0xe98712=Y,_0x574da0,_0x33a96a){const _0x44df31=_0x12d49e;super(),this['_config']=_0xe98712,this['_injector']=_0x574da0,this['_configService']=_0x33a96a;let {..._0x40976a}=_0x2dd70c({},Y,this[_0x44df31(0x147)]);this[_0x44df31(0x10e)][_0x44df31(0xee)](_0x44df31(0x171),_0x40976a);}[_0x12d49e(0x130)](){const _0x5ca9d9=_0x12d49e;_0x59bf00(this['_injector'],_0x18178b([[U],[K],[X],[Q]],this['_config'][_0x5ca9d9(0x103)])),_0xa55cab(this[_0x5ca9d9(0x136)],[[X]]);}['onRendered'](){const _0x373fa8=_0x12d49e;_0xa55cab(this[_0x373fa8(0x136)],[[Q]]);}};H($,'type',_0x14abf6[_0x12d49e(0x12b)]),H($,_0x12d49e(0x16d),_0x12d49e(0x12f)),H($,'packageName',oe),H($,'version',se),$=G([_0x1b6da4(_0x21f3e5),W(0x1,_0x5247da(_0x408402)),W(0x2,_0x348818)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x6f555b=_0x261d;(function(_0x315005,_0x47b6a4){const _0x3ca634=_0x261d,_0x5d7335=_0x315005();while(!![]){try{const _0x30a435=-parseInt(_0x3ca634(0x1c3))/0x1+parseInt(_0x3ca634(0x1a5))/0x2*(-parseInt(_0x3ca634(0x1cc))/0x3)+parseInt(_0x3ca634(0x1fd))/0x4+-parseInt(_0x3ca634(0x1ea))/0x5+-parseInt(_0x3ca634(0x1e4))/0x6+parseInt(_0x3ca634(0x1a3))/0x7*(-parseInt(_0x3ca634(0x220))/0x8)+parseInt(_0x3ca634(0x206))/0x9;if(_0x30a435===_0x47b6a4)break;else _0x5d7335['push'](_0x5d7335['shift']());}catch(_0x23afb1){_0x5d7335['push'](_0x5d7335['shift']());}}}(_0x326d,0xe4a4c));import{CollaborationEvent as _0x36ebd8,parseProtocolChangeset as _0x47cdb6}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1e5ff4,SessionStatus as _0x12087e,UniverCollaborationClientPlugin as _0x948aaa}from'@univerjs-pro/collaboration-client';function _0x326d(){const _0x4f065a=['event$','LIVESHARE_FETCH_OPERATIONS','getInitialStates','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','disposeWithMe','NEW_CHANGESETS','presenting','idle','_unitID','You\x27re\x20presenting\x20the\x20document','dispose','_handleOnline','getMemberID','reverse','_mountLiveShare','button','_collabSessionService','_handleNewHost','512zNJAVF','onCommandExecuted','prototype','div','_configService','default','operations','getStatus','asObservable','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_startPresenting','_reporters','@univerjs-pro/live-share','_handleOffline','override','LIVESHARE_TERMINATE','UNIVER_SHEET','getUnitId','PRESENTING','parse','LIVESHARE_OPERATION','_startLiveShareCoordinator','109102dPElBJ','setConfig','146mYPifm','_handleNewChangeSets','onStarting','UNIVER_LIVE_SHARE_PLUGIN','Start','_handleOperation','_sharedOperations','_startFollowing','object','Stop\x20presenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','dispose$','_commandDisposable','LIVESHARE_NEW_HOST','requireSession','_status','defineProperty','version','init','call','_beIdle','UNIVER_UNKNOWN','You\x27are\x20offline.','_init','presenter','_handleTerminate','live-share.config','getTypeOfUnitDisposed$','registerSharedOperation','onRendered','1767182olMLwM','status$','getLiveShareCoordinator','decorate','getCurrentTypeOfUnit$','set','length','has','pipe','69891ECGHtp','mutations','Start\x20following','complete','includes','iterator','unsubscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','IDLE','getLiveShareCoordinatorSync','send','from','OPERATION','_liveShareService','clear','OFFLINE','Present\x20this\x20document','executeCommand','_uiPartsService','registerInitialStateReporter','_stopPresenting','end','function','4225182gmDnKg','shouldShareOperation','getValue','next','getConfig','subscribe','49270XTbtGK','data','_stopFollowing','offline','add','_collabSession','_presenter','symbol','You\x27re\x20not\x20following\x20the\x20presenter','forEach','FOLLOWING','stringify','You\x27re\x20following\x20the\x20presenter','_fetchOperations','get','stopPresenting','_config','tryStartPresenting','LIVESHARE_REQUEST_HOST','7472608zHbYFS','1.0.0-alpha.4','type','string','getOwnPropertyDescriptor','stopFollowing','_status$','_injector','text','38230110FDzPpX','unitId','subject','params','delete','_entities','following','_commandService'];_0x326d=function(){return _0x4f065a;};return _0x326d();}import{CommandType as _0x4e0307,DependentOn as _0x3099e9,Disposable as _0x46999e,DisposableCollection as _0x5ec514,ICommandService as _0x35ab55,IConfigService as _0x52b4ac,IUniverInstanceService as _0x21550a,Inject as _0x28818e,Injector as _0x18620c,Plugin as _0x572057,RxDisposable as _0x1a6fea,UniverInstanceType as _0x203c69,merge as _0x5b8c53,mergeOverrideWithDependencies as _0x2f7b56,registerDependencies as _0x31f0d7,toDisposable as _0x504e8e,touchDependencies as _0x591296}from'@univerjs/core';import{InsertSheetMutation as _0x1b67cb,SetWorksheetActiveOperation as _0x538536}from'@univerjs/sheets';import{BehaviorSubject as _0x3e8934,Subject as _0x7214fd,defer as _0x167d7b,from as _0x9ce90d,of as _0x243cf5}from'rxjs';import{takeUntil as _0x5597d3,throttleTime as _0x4fe322}from'rxjs/operators';import{SetScrollOperation as _0x18fc2b,SetZoomRatioOperation as _0x131898}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x4aa22c,IUIPartsService as _0x45ac3a,connectInjector as _0x1cb2c5,useDependency as _0x1ee678,useObservable as _0x252035}from'@univerjs/ui';import{Button as _0x35e69e,Dropdown as _0x390708,clsx as _0x3d7f89}from'@univerjs/design';import{LiveShareIcon as _0x295a01}from'@univerjs/icons';import{useMemo as _0x4cfce8}from'react';import{Fragment as _0x1019e6,jsx as _0x259d6b,jsxs as _0x12e6ce}from'react/jsx-runtime';function z(_0xccb65a){'@babel/helpers - typeof';const _0x201f13=_0x261d;return z=typeof Symbol==_0x201f13(0x1e3)&&typeof Symbol[_0x201f13(0x1d1)]=='symbol'?function(_0x523a65){return typeof _0x523a65;}:function(_0x1bc8b9){const _0x20e4bf=_0x201f13;return _0x1bc8b9&&typeof Symbol==_0x20e4bf(0x1e3)&&_0x1bc8b9['constructor']===Symbol&&_0x1bc8b9!==Symbol[_0x20e4bf(0x222)]?_0x20e4bf(0x1f1):typeof _0x1bc8b9;},z(_0xccb65a);}function B(_0x5a0c24,_0x27d35f){const _0x281154=_0x261d;if(z(_0x5a0c24)!=_0x281154(0x1ad)||!_0x5a0c24)return _0x5a0c24;var _0x1187a3=_0x5a0c24[Symbol['toPrimitive']];if(_0x1187a3!==void 0x0){var _0x4d7903=_0x1187a3[_0x281154(0x1b8)](_0x5a0c24,_0x27d35f||_0x281154(0x225));if(z(_0x4d7903)!='object')return _0x4d7903;throw TypeError(_0x281154(0x1af));}return(_0x27d35f===_0x281154(0x200)?String:Number)(_0x5a0c24);}function V(_0x2c47aa){const _0x1700ae=_0x261d;var _0x30b008=B(_0x2c47aa,_0x1700ae(0x200));return z(_0x30b008)==_0x1700ae(0x1f1)?_0x30b008:_0x30b008+'';}function H(_0x416913,_0x38eda5,_0x2da8c9){const _0x566239=_0x261d;return(_0x38eda5=V(_0x38eda5))in _0x416913?Object[_0x566239(0x1b5)](_0x416913,_0x38eda5,{'value':_0x2da8c9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x416913[_0x38eda5]=_0x2da8c9,_0x416913;}var U=class extends _0x46999e{constructor(..._0x128891){const _0x1e7e52=_0x261d;super(..._0x128891),H(this,_0x1e7e52(0x1ab),new Set()),H(this,_0x1e7e52(0x22b),new Set());}[_0x6f555b(0x1c1)](_0xbfb8d2){const _0x189681=_0x6f555b;return this[_0x189681(0x1ab)][_0x189681(0x1ee)](_0xbfb8d2),_0x504e8e(()=>this[_0x189681(0x1ab)]['delete'](_0xbfb8d2));}[_0x6f555b(0x1e0)](_0x2e5021){const _0x7e914e=_0x6f555b;return this[_0x7e914e(0x22b)][_0x7e914e(0x1ee)](_0x2e5021),_0x504e8e(()=>this['_reporters'][_0x7e914e(0x20a)](_0x2e5021));}[_0x6f555b(0x1e5)](_0x666ecc){const _0x1cf7ba=_0x6f555b;return this[_0x1cf7ba(0x1ab)][_0x1cf7ba(0x1ca)](_0x666ecc);}[_0x6f555b(0x210)](_0x207fa3){const _0x1f0488=_0x6f555b;return Array[_0x1f0488(0x1d8)](this[_0x1f0488(0x22b)])['map'](_0x4e9bc1=>_0x4e9bc1(_0x207fa3));}};function W(_0x3abcf3,_0x3e6180){return function(_0x42a01c,_0x15beec){_0x3e6180(_0x42a01c,_0x15beec,_0x3abcf3);};}function G(_0x9c986a,_0x13da03,_0xf24af8,_0x4ca499){const _0x1239fc=_0x6f555b;var _0x328910=arguments[_0x1239fc(0x1c9)],_0x9dcb3a=_0x328910<0x3?_0x13da03:_0x4ca499===null?_0x4ca499=Object[_0x1239fc(0x201)](_0x13da03,_0xf24af8):_0x4ca499,_0x2cfb70;if(typeof Reflect==_0x1239fc(0x1ad)&&typeof Reflect[_0x1239fc(0x1c6)]==_0x1239fc(0x1e3))_0x9dcb3a=Reflect[_0x1239fc(0x1c6)](_0x9c986a,_0x13da03,_0xf24af8,_0x4ca499);else{for(var _0x1a4211=_0x9c986a[_0x1239fc(0x1c9)]-0x1;_0x1a4211>=0x0;_0x1a4211--)(_0x2cfb70=_0x9c986a[_0x1a4211])&&(_0x9dcb3a=(_0x328910<0x3?_0x2cfb70(_0x9dcb3a):_0x328910>0x3?_0x2cfb70(_0x13da03,_0xf24af8,_0x9dcb3a):_0x2cfb70(_0x13da03,_0xf24af8))||_0x9dcb3a);}return _0x328910>0x3&&_0x9dcb3a&&Object[_0x1239fc(0x1b5)](_0x13da03,_0xf24af8,_0x9dcb3a),_0x9dcb3a;}let K=class extends _0x1a6fea{constructor(_0x164fc7,_0x6b4e2e,_0x362573){const _0x5594eb=_0x6f555b;super(),this['_univerInstanceService']=_0x164fc7,this[_0x5594eb(0x204)]=_0x6b4e2e,this[_0x5594eb(0x21e)]=_0x362573,H(this,_0x5594eb(0x20b),new Map()),this[_0x5594eb(0x1bc)]();}async[_0x6f555b(0x1c5)](_0x35e96f){const _0x5c163b=_0x6f555b;return this[_0x5c163b(0x20b)][_0x5c163b(0x1ca)](_0x35e96f)||await this['_startLiveShareCoordinator'](_0x35e96f),this[_0x5c163b(0x20b)][_0x5c163b(0x1f8)](_0x35e96f);}[_0x6f555b(0x1d6)](_0x15160e){const _0x3974ca=_0x6f555b;var _0x548488;return(_0x548488=this[_0x3974ca(0x20b)][_0x3974ca(0x1f8)](_0x15160e))==null?null:_0x548488;}['_init'](){const _0x24250c=_0x6f555b;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x203c69[_0x24250c(0x230)])['pipe'](_0x5597d3(this[_0x24250c(0x1b0)]))[_0x24250c(0x1e9)](async _0x2ee67e=>{const _0x39ad77=_0x24250c;let _0x1a18b6=_0x2ee67e['unit']['getUnitId']();this[_0x39ad77(0x20b)][_0x39ad77(0x1ca)](_0x1a18b6)||this[_0x39ad77(0x235)](_0x1a18b6);}),this['_univerInstanceService'][_0x24250c(0x1c0)](_0x203c69[_0x24250c(0x230)])['pipe'](_0x5597d3(this['dispose$']))['subscribe'](_0x2b4708=>{const _0x9571f8=_0x24250c;let _0x898adc=_0x2b4708[_0x9571f8(0x231)](),_0x5dc4ce=this[_0x9571f8(0x20b)][_0x9571f8(0x1f8)](_0x898adc);_0x5dc4ce==null||_0x5dc4ce[_0x9571f8(0x218)]();});}async[_0x6f555b(0x235)](_0x41275c){const _0x232f87=_0x6f555b;let _0x8b3451=await this['_collabSessionService'][_0x232f87(0x1b3)](_0x41275c),_0x3353e8=this[_0x232f87(0x204)]['createInstance'](J,_0x41275c,_0x8b3451);return _0x3353e8[_0x232f87(0x1b7)](),this['_entities'][_0x232f87(0x1c8)](_0x41275c,_0x3353e8),_0x3353e8;}};K=G([W(0x0,_0x21550a),W(0x1,_0x28818e(_0x18620c)),W(0x2,_0x28818e(_0x1e5ff4))],K);let q=function(_0x14c1d0){const _0x3a5812=_0x6f555b;return _0x14c1d0[_0x3a5812(0x1dc)]='offline',_0x14c1d0[_0x3a5812(0x1d5)]=_0x3a5812(0x215),_0x14c1d0[_0x3a5812(0x1f4)]=_0x3a5812(0x20c),_0x14c1d0['NOT_FOLLOWING']=_0x3a5812(0x1d4),_0x14c1d0[_0x3a5812(0x232)]='presenting',_0x14c1d0;}({}),J=class extends _0x1a6fea{get[_0x6f555b(0x1b4)](){const _0x187a60=_0x6f555b;return this['_status$'][_0x187a60(0x1e6)]();}constructor(_0x203874,_0xcd6b60,_0x1511bb,_0x5b6870,_0x5f399f){const _0x833c36=_0x6f555b;super(),this[_0x833c36(0x216)]=_0x203874,this[_0x833c36(0x1ef)]=_0xcd6b60,this[_0x833c36(0x224)]=_0x1511bb,this[_0x833c36(0x1da)]=_0x5b6870,this[_0x833c36(0x20d)]=_0x5f399f,H(this,_0x833c36(0x203),new _0x3e8934('idle')),H(this,_0x833c36(0x1c4),this['_status$'][_0x833c36(0x228)]()),H(this,'_init',!0x1),H(this,_0x833c36(0x1b1),null),H(this,_0x833c36(0x1f0),null);}[_0x6f555b(0x218)](){const _0x42da8d=_0x6f555b;var _0x17db55;(_0x17db55=this['_commandDisposable'])==null||_0x17db55[_0x42da8d(0x218)](),this['_status$'][_0x42da8d(0x1e7)]('idle'),this[_0x42da8d(0x203)][_0x42da8d(0x1cf)]();}[_0x6f555b(0x227)](){const _0x3998fd=_0x6f555b;return this[_0x3998fd(0x1b4)];}[_0x6f555b(0x1b7)](){const _0x20308f=_0x6f555b;this[_0x20308f(0x1bc)]||(this[_0x20308f(0x1bc)]=!0x0,this[_0x20308f(0x1ef)]['sessionStatus$'][_0x20308f(0x1cb)](_0x5597d3(this[_0x20308f(0x1b0)]))[_0x20308f(0x1e9)](_0x16a480=>{const _0xe88e8c=_0x20308f;switch(_0x16a480){case _0x12087e[_0xe88e8c(0x1dc)]:this['_handleOffline']();break;case _0x12087e['ONLINE']:this[_0xe88e8c(0x219)]();break;default:}}),this[_0x20308f(0x1ef)][_0x20308f(0x20e)][_0x20308f(0x1cb)](_0x5597d3(this[_0x20308f(0x1b0)]))[_0x20308f(0x1e9)](_0x1030ce=>{const _0x346ebf=_0x20308f;let {eventID:_0x81170}=_0x1030ce;switch(_0x81170){case _0x36ebd8[_0x346ebf(0x1b2)]:this['_handleNewHost'](_0x1030ce);break;case _0x36ebd8['LIVESHARE_OPERATION']:this[_0x346ebf(0x1aa)](_0x1030ce);break;case _0x36ebd8[_0x346ebf(0x22f)]:this[_0x346ebf(0x1be)]();break;case _0x36ebd8[_0x346ebf(0x213)]:this[_0x346ebf(0x1a6)](_0x1030ce);break;default:}}));}[_0x6f555b(0x1fb)](){const _0x50e899=_0x6f555b;this['_collabSession'][_0x50e899(0x1d7)]({'eventID':_0x36ebd8[_0x50e899(0x1fc)],'data':{'unitID':this['_unitID'],'userID':this[_0x50e899(0x1ef)]['getMemberID']()}},this[_0x50e899(0x216)]);}[_0x6f555b(0x1f9)](){const _0x3f42db=_0x6f555b;this[_0x3f42db(0x1b4)]==='presenting'&&(this[_0x3f42db(0x203)]['next'](_0x3f42db(0x215)),this[_0x3f42db(0x1ef)]['send']({'eventID':_0x36ebd8[_0x3f42db(0x22f)],'data':{'unitID':this[_0x3f42db(0x216)]}},this['_unitID']));}['startFollowing'](){const _0x4235c3=_0x6f555b;this[_0x4235c3(0x1b4)]===_0x4235c3(0x1d4)&&(this[_0x4235c3(0x203)]['next']('following'),this[_0x4235c3(0x1ac)]());}[_0x6f555b(0x202)](){const _0x30f65e=_0x6f555b;this[_0x30f65e(0x1b4)]==='following'&&this['_stopFollowing']();}[_0x6f555b(0x21f)](_0x13a739){const _0x3e2476=_0x6f555b;let {presenter:_0x519a50}=_0x13a739[_0x3e2476(0x1eb)],_0xab587=this[_0x3e2476(0x1ef)][_0x3e2476(0x21a)]();this[_0x3e2476(0x1f0)]=_0x519a50,_0x519a50===_0xab587?(this[_0x3e2476(0x1ec)](),this[_0x3e2476(0x22a)]()):this[_0x3e2476(0x1b4)]!==_0x3e2476(0x1d4)&&(this[_0x3e2476(0x1e1)](),this['_startFollowing']());}[_0x6f555b(0x1f7)](){const _0x116eb6=_0x6f555b;let _0x2ce52a={'eventID':_0x36ebd8[_0x116eb6(0x20f)]};this['_collabSession'][_0x116eb6(0x1d7)](_0x2ce52a,this[_0x116eb6(0x216)]);}[_0x6f555b(0x1be)](){const _0x272a9e=_0x6f555b;this[_0x272a9e(0x1f0)]=null,this[_0x272a9e(0x1b4)]!==_0x272a9e(0x214)&&this[_0x272a9e(0x1b9)]();}[_0x6f555b(0x1a6)](_0x4c50e4){const _0x430cf0=_0x6f555b;if(this[_0x430cf0(0x1b4)]===_0x430cf0(0x20c)&&this[_0x430cf0(0x1f0)]===_0x4c50e4[_0x430cf0(0x1eb)]['memberID']){let _0x538525=_0x47cdb6(_0x4c50e4[_0x430cf0(0x1eb)])[_0x430cf0(0x1cd)][_0x430cf0(0x21b)]()['find'](_0x17d75c=>_0x17d75c['id']===_0x1b67cb['id']);if(_0x538525){let _0x5d5395=_0x538525[_0x430cf0(0x209)][_0x430cf0(0x207)],_0x16c32a=_0x538525[_0x430cf0(0x209)]['sheet']['id'];setTimeout(()=>{const _0x12e7ea=_0x430cf0;this[_0x12e7ea(0x20d)][_0x12e7ea(0x1de)](_0x538536['id'],{'unitId':_0x5d5395,'subUnitId':_0x16c32a},{'fromCollab':!0x0});});}}}[_0x6f555b(0x22a)](){const _0x5a3670=_0x6f555b;var _0x5baf86;(_0x5baf86=this[_0x5a3670(0x1b1)])==null||_0x5baf86[_0x5a3670(0x218)](),this['_status$']['next']('presenting');let _0xffab2d=new Map(),_0x51c9cc=this['_commandDisposable']=new _0x5ec514();_0x51c9cc[_0x5a3670(0x1ee)](_0x504e8e(()=>{const _0x3616db=_0x5a3670;_0xffab2d[_0x3616db(0x1f3)](({subject:_0x11c6a7,subscription:_0x3a6c3b})=>{const _0x140779=_0x3616db;_0x3a6c3b[_0x140779(0x1d2)](),_0x11c6a7[_0x140779(0x1cf)]();}),_0xffab2d[_0x3616db(0x1db)]();})),_0x51c9cc[_0x5a3670(0x1ee)](this[_0x5a3670(0x20d)][_0x5a3670(0x221)](_0x5cb6ff=>{const _0x24a082=_0x5a3670;if(_0x5cb6ff[_0x24a082(0x1ff)]!==_0x4e0307[_0x24a082(0x1d9)]||!this['_liveShareService']['shouldShareOperation'](_0x5cb6ff['id']))return;let {id:_0x53e816}=_0x5cb6ff,_0x4bbd17;if(_0xffab2d['has'](_0x53e816))_0x4bbd17=_0xffab2d[_0x24a082(0x1f8)](_0x53e816)[_0x24a082(0x208)];else{var _0x55dd74;_0x4bbd17=new _0x7214fd();let _0x57ab92=_0x4bbd17['pipe'](_0x4fe322((_0x55dd74=this[_0x24a082(0x224)][_0x24a082(0x1e8)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x55dd74,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2b4dbc=>{const _0x1886fb=_0x24a082;this[_0x1886fb(0x1ef)]['send']({'eventID':_0x36ebd8['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1886fb(0x216)],'operations':{[_0x2b4dbc['id']]:{'id':_0x2b4dbc['id'],'params':JSON[_0x1886fb(0x1f5)](_0x2b4dbc[_0x1886fb(0x209)])}}}},this['_unitID']);});_0xffab2d[_0x24a082(0x1c8)](_0x53e816,{'subject':_0x4bbd17,'subscription':_0x57ab92});}_0x4bbd17[_0x24a082(0x1e7)](_0x5cb6ff);})),this[_0x5a3670(0x1da)][_0x5a3670(0x210)](this[_0x5a3670(0x216)])[_0x5a3670(0x1f3)](_0xc19f40=>this[_0x5a3670(0x1ef)][_0x5a3670(0x1d7)]({'eventID':_0x36ebd8[_0x5a3670(0x234)],'data':{'unitID':this[_0x5a3670(0x216)],'operations':{[_0xc19f40['id']]:{'id':_0xc19f40['id'],'params':JSON[_0x5a3670(0x1f5)](_0xc19f40[_0x5a3670(0x209)])}}}},this[_0x5a3670(0x216)]));}[_0x6f555b(0x1e1)](){const _0x397e79=_0x6f555b;var _0x3b6122;this[_0x397e79(0x203)]['next'](_0x397e79(0x215)),(_0x3b6122=this['_commandDisposable'])==null||_0x3b6122['dispose'](),this['_commandDisposable']=null;}[_0x6f555b(0x1ac)](){const _0x3debc8=_0x6f555b;var _0x4e02ae;(_0x4e02ae=this[_0x3debc8(0x1b1)])==null||_0x4e02ae[_0x3debc8(0x218)](),this[_0x3debc8(0x203)][_0x3debc8(0x1e7)](_0x3debc8(0x20c));}['_beIdle'](){const _0x2445ee=_0x6f555b;var _0x2c99c3;this[_0x2445ee(0x203)]['next']('idle'),(_0x2c99c3=this[_0x2445ee(0x1b1)])==null||_0x2c99c3[_0x2445ee(0x218)](),this['_commandDisposable']=null;}[_0x6f555b(0x1ec)](){const _0x4079cb=_0x6f555b;var _0x170941;this['_status$'][_0x4079cb(0x1e7)](_0x4079cb(0x1d4)),(_0x170941=this[_0x4079cb(0x1b1)])==null||_0x170941[_0x4079cb(0x218)]();}[_0x6f555b(0x1aa)](_0x263403){const _0x2170f9=_0x6f555b;if(['presenting',_0x2170f9(0x1d4),_0x2170f9(0x1ed)][_0x2170f9(0x1d0)](this[_0x2170f9(0x1b4)])||!_0x263403[_0x2170f9(0x1eb)][_0x2170f9(0x1bd)]||_0x263403['data'][_0x2170f9(0x1bd)]===this[_0x2170f9(0x1ef)][_0x2170f9(0x21a)]())return;this['_status']===_0x2170f9(0x215)&&this[_0x2170f9(0x1ac)]();let _0x247cac=_0x263403[_0x2170f9(0x1eb)][_0x2170f9(0x226)];Object['values'](_0x247cac)[_0x2170f9(0x1f3)](_0x4d71d9=>{const _0x380b71=_0x2170f9;this[_0x380b71(0x20d)][_0x380b71(0x1de)](_0x4d71d9['id'],_0x4d71d9[_0x380b71(0x209)]?JSON[_0x380b71(0x233)](_0x4d71d9[_0x380b71(0x209)]):null,{'fromCollab':!0x0});});}[_0x6f555b(0x22d)](){const _0x53dc33=_0x6f555b;var _0x3e2ad0;this[_0x53dc33(0x203)][_0x53dc33(0x1e7)](_0x53dc33(0x1ed)),(_0x3e2ad0=this['_commandDisposable'])==null||_0x3e2ad0[_0x53dc33(0x218)]();}['_handleOnline'](){const _0x41deea=_0x6f555b;this['_status$'][_0x41deea(0x1e7)]('idle'),this[_0x41deea(0x1f7)]();}};J=G([W(0x2,_0x52b4ac),W(0x3,_0x28818e(U)),W(0x4,_0x35ab55)],J);var se=_0x6f555b(0x22c),ce=_0x6f555b(0x1fe);const Y={};let X=class extends _0x46999e{constructor(_0x5bdb2e){const _0x5060a4=_0x6f555b;super(),this[_0x5060a4(0x1da)]=_0x5bdb2e,this[_0x5060a4(0x1bc)]();}['_init'](){const _0x4b596c=_0x6f555b;[_0x131898['id'],_0x18fc2b['id'],_0x538536['id']][_0x4b596c(0x1f3)](_0x41d19f=>{const _0x3aa4df=_0x4b596c;this[_0x3aa4df(0x212)](this[_0x3aa4df(0x1da)][_0x3aa4df(0x1c1)](_0x41d19f));});}};X=G([W(0x0,_0x28818e(U))],X);function Z(){const _0x8372d1=_0x6f555b;let _0x2ab6cd=_0x1ee678(K),_0x4b1139=_0x1ee678(_0x21550a),_0x318bb3=_0x252035(()=>_0x4b1139[_0x8372d1(0x1c7)](_0x203c69[_0x8372d1(0x230)]),void 0x0,!0x1,[]),_0x1892da=_0x252035(_0x4cfce8(()=>_0x318bb3?_0x167d7b(()=>_0x9ce90d(_0x2ab6cd[_0x8372d1(0x1c5)](_0x318bb3[_0x8372d1(0x231)]()))):_0x243cf5(null),[_0x318bb3,_0x2ab6cd]),null),_0x449ac0=_0x252035(_0x1892da?()=>_0x1892da['status$']:null,_0x8372d1(0x215),!0x1,[_0x1892da]);return _0x1892da?_0x259d6b(_0x390708,{'align':_0x8372d1(0x1e2),'disabled':_0x449ac0==='offline','className':_0x8372d1(0x229),'overlay':_0x259d6b(le,{'status':_0x449ac0,'coordinator':_0x1892da}),'children':_0x259d6b(_0x8372d1(0x21d),{'className':_0x3d7f89(_0x8372d1(0x211),{'univer-cursor-not-allowed':_0x449ac0===_0x8372d1(0x1ed),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x449ac0!==_0x8372d1(0x1ed)}),'type':_0x8372d1(0x21d),'children':_0x259d6b(_0x295a01,{})})}):null;}function le(_0x40f80c){const _0x5af244=_0x6f555b;let {status:_0x40b195,coordinator:_0x1c2c04}=_0x40f80c;switch(_0x40b195){case _0x5af244(0x215):return _0x259d6b(ue,{'coordinator':_0x1c2c04});case _0x5af244(0x20c):return _0x259d6b(de,{'coordinator':_0x1c2c04});case _0x5af244(0x1d4):return _0x259d6b(fe,{'coordinator':_0x1c2c04});case _0x5af244(0x1ed):return _0x259d6b(me,{});case _0x5af244(0x214):return _0x259d6b(pe,{'coordinator':_0x1c2c04});default:return null;}}function ue(_0x5c03ad){const _0x3cd729=_0x6f555b;let {coordinator:_0x48f9bf}=_0x5c03ad;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x3cd729(0x223),{'className':_0x3cd729(0x1d3),'children':_0x3cd729(0x1dd)}),_0x259d6b(_0x35e69e,{'onClick':()=>_0x48f9bf[_0x3cd729(0x1fb)](),'children':_0x3cd729(0x1a9)})]});}function de(_0x3c5169){const _0x2acf23=_0x6f555b;let {coordinator:_0x5c8259}=_0x3c5169;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x2acf23(0x223),{'className':_0x2acf23(0x1d3),'children':_0x2acf23(0x1f6)}),_0x259d6b(_0x35e69e,{'onClick':()=>_0x5c8259['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x261d(_0x2fead8,_0x161f5a){_0x2fead8=_0x2fead8-0x1a3;const _0x326d0d=_0x326d();let _0x261de8=_0x326d0d[_0x2fead8];return _0x261de8;}function fe(_0x2d744c){const _0x25c7b2=_0x6f555b;let {coordinator:_0x345ac3}=_0x2d744c;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b('div',{'className':_0x25c7b2(0x1d3),'children':_0x25c7b2(0x1f2)}),_0x259d6b(_0x35e69e,{'variant':_0x25c7b2(0x205),'onClick':()=>_0x345ac3['startFollowing'](),'children':_0x25c7b2(0x1ce)})]});}function pe(_0x45ad0b){const _0x3fd523=_0x6f555b;let {coordinator:_0x3faeb6}=_0x45ad0b;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x3fd523(0x223),{'className':_0x3fd523(0x1d3),'children':_0x3fd523(0x217)}),_0x259d6b(_0x35e69e,{'variant':_0x3fd523(0x225),'onClick':()=>_0x3faeb6[_0x3fd523(0x1f9)](),'children':_0x3fd523(0x1ae)})]});}function me(){const _0x416a58=_0x6f555b;return _0x259d6b(_0x1019e6,{'children':_0x416a58(0x1bb)});}let Q=class extends _0x46999e{constructor(_0x202ea3,_0x20afee){const _0x5cb26e=_0x6f555b;super(),this[_0x5cb26e(0x204)]=_0x202ea3,this['_uiPartsService']=_0x20afee,this['_mountLiveShare']();}[_0x6f555b(0x21c)](){const _0xf62b0=_0x6f555b;this['disposeWithMe'](this[_0xf62b0(0x1df)]['registerComponent'](_0x4aa22c['HEADER_MENU'],()=>_0x1cb2c5(Z,this[_0xf62b0(0x204)])));}};Q=G([W(0x0,_0x28818e(_0x18620c)),W(0x1,_0x45ac3a)],Q);let $=class extends _0x572057{constructor(_0x2f03ef=Y,_0x2fb0bc,_0x1605e7){const _0x4a885f=_0x6f555b;super(),this[_0x4a885f(0x1fa)]=_0x2f03ef,this[_0x4a885f(0x204)]=_0x2fb0bc,this[_0x4a885f(0x224)]=_0x1605e7;let {..._0x5de6eb}=_0x5b8c53({},Y,this[_0x4a885f(0x1fa)]);this[_0x4a885f(0x224)][_0x4a885f(0x1a4)](_0x4a885f(0x1bf),_0x5de6eb);}[_0x6f555b(0x1a7)](){const _0x568e2c=_0x6f555b;_0x31f0d7(this[_0x568e2c(0x204)],_0x2f7b56([[U],[K],[X],[Q]],this['_config'][_0x568e2c(0x22e)])),_0x591296(this['_injector'],[[X]]);}[_0x6f555b(0x1c2)](){const _0xf0db12=_0x6f555b;_0x591296(this[_0xf0db12(0x204)],[[Q]]);}};H($,'type',_0x203c69[_0x6f555b(0x1ba)]),H($,'pluginName',_0x6f555b(0x1a8)),H($,'packageName',se),H($,_0x6f555b(0x1b6),ce),$=G([_0x3099e9(_0x948aaa),W(0x1,_0x28818e(_0x18620c)),W(0x2,_0x52b4ac)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0xa7ab2e,_0x521669){const _0x555aaa=_0x25d4,_0x4cd563=_0xa7ab2e();while(!![]){try{const _0x194531=-parseInt(_0x555aaa(0x123))/0x1+parseInt(_0x555aaa(0x11c))/0x2+parseInt(_0x555aaa(0x128))/0x3*(-parseInt(_0x555aaa(0x135))/0x4)+-parseInt(_0x555aaa(0x117))/0x5+parseInt(_0x555aaa(0x127))/0x6*(parseInt(_0x555aaa(0x121))/0x7)+-parseInt(_0x555aaa(0x124))/0x8*(-parseInt(_0x555aaa(0x120))/0x9)+parseInt(_0x555aaa(0x142))/0xa*(parseInt(_0x555aaa(0x139))/0xb);if(_0x194531===_0x521669)break;else _0x4cd563['push'](_0x4cd563['shift']());}catch(_0x35d3a2){_0x4cd563['push'](_0x4cd563['shift']());}}}(_0x34e3,0x3fefa),function(_0x3b2228,_0x5d9e2e){const _0x57ff58=_0x25d4;typeof exports==_0x57ff58(0x11e)&&typeof module<'u'?_0x5d9e2e(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x57ff58(0x126)&&define[_0x57ff58(0x11d)]?define([_0x57ff58(0x122),_0x57ff58(0x12e),_0x57ff58(0x11b)],_0x5d9e2e):(_0x3b2228=typeof globalThis<'u'?globalThis:_0x3b2228||self,_0x5d9e2e(_0x3b2228[_0x57ff58(0x141)],_0x3b2228[_0x57ff58(0x12c)],_0x3b2228[_0x57ff58(0x13d)]));}(this,function(_0x3a0e75,_0x4e3387,_0x2d4c57){const _0x485cb3=_0x25d4;function _0x30db42(_0x37c575){'@babel/helpers - typeof';const _0x595a2c=_0x25d4;return _0x30db42=typeof Symbol==_0x595a2c(0x126)&&typeof Symbol['iterator']==_0x595a2c(0x147)?function(_0x5a8ba5){return typeof _0x5a8ba5;}:function(_0x5cd5fb){const _0xab42ab=_0x595a2c;return _0x5cd5fb&&typeof Symbol=='function'&&_0x5cd5fb['constructor']===Symbol&&_0x5cd5fb!==Symbol[_0xab42ab(0x138)]?'symbol':typeof _0x5cd5fb;},_0x30db42(_0x37c575);}function _0x9ef0c8(_0x375f5a,_0x43bf2a){const _0x13e30b=_0x25d4;if(_0x30db42(_0x375f5a)!=_0x13e30b(0x11e)||!_0x375f5a)return _0x375f5a;var _0xd47e75=_0x375f5a[Symbol[_0x13e30b(0x11f)]];if(_0xd47e75!==void 0x0){var _0x1dec81=_0xd47e75[_0x13e30b(0x119)](_0x375f5a,_0x43bf2a||_0x13e30b(0x140));if(_0x30db42(_0x1dec81)!=_0x13e30b(0x11e))return _0x1dec81;throw TypeError(_0x13e30b(0x13c));}return(_0x43bf2a==='string'?String:Number)(_0x375f5a);}function _0x2684ab(_0x35661a){const _0x1b33bc=_0x25d4;var _0x13f8ad=_0x9ef0c8(_0x35661a,_0x1b33bc(0x115));return _0x30db42(_0x13f8ad)==_0x1b33bc(0x147)?_0x13f8ad:_0x13f8ad+'';}function _0x27fd65(_0x46b162,_0x5808ac,_0x2821db){return(_0x5808ac=_0x2684ab(_0x5808ac))in _0x46b162?Object['defineProperty'](_0x46b162,_0x5808ac,{'value':_0x2821db,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46b162[_0x5808ac]=_0x2821db,_0x46b162;}var _0x461c0e=class extends _0x2d4c57['FUniver']{constructor(..._0x4110c6){const _0x228bda=_0x25d4;super(..._0x4110c6),_0x27fd65(this,_0x228bda(0x116),void 0x0);}[_0x485cb3(0x136)](_0x2571f3){const _0x32cd26=_0x485cb3;this[_0x32cd26(0x116)]=_0x2571f3[_0x32cd26(0x11a)](_0x3a0e75[_0x32cd26(0x132)]);}[_0x485cb3(0x12d)](){const _0x250c87=_0x485cb3;var _0x3504c1;let _0x59fb9a=this['_injector'][_0x250c87(0x11a)](_0x4e3387['IUniverInstanceService'])[_0x250c87(0x13a)](_0x4e3387[_0x250c87(0x13f)][_0x250c87(0x144)]);if(!_0x59fb9a)throw Error(_0x250c87(0x137));let _0x2287f6=_0x59fb9a['getUnitId'](),_0x2f65ab=this['_liveShareController'][_0x250c87(0x131)](_0x2287f6);return(_0x3504c1=_0x2f65ab==null?void 0x0:_0x2f65ab['getStatus']())==null?_0x3a0e75['LiveShareStatus'][_0x250c87(0x12b)]:_0x3504c1;}[_0x485cb3(0x143)](){const _0x33adc7=_0x485cb3;let _0x34d14e=this[_0x33adc7(0x125)][_0x33adc7(0x11a)](_0x4e3387[_0x33adc7(0x129)])[_0x33adc7(0x13a)](_0x4e3387[_0x33adc7(0x13f)][_0x33adc7(0x144)]);if(!_0x34d14e)throw Error(_0x33adc7(0x137));let _0x37d344=_0x34d14e[_0x33adc7(0x146)](),_0x5b483b=this['_liveShareController'][_0x33adc7(0x131)](_0x37d344);if(!_0x5b483b)throw Error(_0x33adc7(0x145));_0x5b483b[_0x33adc7(0x143)]();}[_0x485cb3(0x118)](){const _0x42f93a=_0x485cb3;let _0x71ff19=this[_0x42f93a(0x125)][_0x42f93a(0x11a)](_0x4e3387[_0x42f93a(0x129)])[_0x42f93a(0x13a)](_0x4e3387[_0x42f93a(0x13f)][_0x42f93a(0x144)]);if(!_0x71ff19)throw Error(_0x42f93a(0x137));let _0x50ccdc=_0x71ff19[_0x42f93a(0x146)](),_0x4bc686=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x50ccdc);if(!_0x4bc686)throw Error(_0x42f93a(0x145));_0x4bc686['stopFollowing']();}[_0x485cb3(0x148)](){const _0xc178dc=_0x485cb3;let _0x3253c7=this[_0xc178dc(0x125)][_0xc178dc(0x11a)](_0x4e3387['IUniverInstanceService'])[_0xc178dc(0x13a)](_0x4e3387[_0xc178dc(0x13f)][_0xc178dc(0x144)]);if(!_0x3253c7)throw Error(_0xc178dc(0x137));let _0xa12720=_0x3253c7[_0xc178dc(0x146)](),_0x3a45e6=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xa12720);if(!_0x3a45e6)throw Error(_0xc178dc(0x145));_0x3a45e6[_0xc178dc(0x12f)]();}[_0x485cb3(0x134)](){const _0xe20107=_0x485cb3;let _0xbcbf0e=this['_injector'][_0xe20107(0x11a)](_0x4e3387[_0xe20107(0x129)])['getCurrentUnitOfType'](_0x4e3387[_0xe20107(0x13f)]['UNIVER_SHEET']);if(!_0xbcbf0e)throw Error('No\x20active\x20workbook\x20found.');let _0x50bd8f=_0xbcbf0e[_0xe20107(0x146)](),_0x417612=this[_0xe20107(0x116)][_0xe20107(0x131)](_0x50bd8f);if(!_0x417612)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x417612[_0xe20107(0x134)]();}};_0x2d4c57[_0x485cb3(0x13b)][_0x485cb3(0x133)](_0x461c0e);var _0x27e892=class extends _0x2d4c57[_0x485cb3(0x12a)]{get[_0x485cb3(0x13e)](){const _0x32f306=_0x485cb3;return _0x3a0e75[_0x32f306(0x130)];}};_0x2d4c57['FEnum'][_0x485cb3(0x133)](_0x27e892);}));function _0x25d4(_0x453932,_0xa9da3e){_0x453932=_0x453932-0x115;const _0x34e30b=_0x34e3();let _0x25d480=_0x34e30b[_0x453932];return _0x25d480;}function _0x34e3(){const _0x53197b=['@univerjs/core','tryStartPresenting','LiveShareStatus','getLiveShareCoordinatorSync','LiveShareController','extend','stopPresenting','13016jfjSOA','_initialize','No\x20active\x20workbook\x20found.','prototype','7766ehPMBQ','getCurrentUnitOfType','FUniver','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverCoreFacade','LiveShareStatusEnum','UniverInstanceType','default','UniverProLiveShare','7690eIZoKu','startFollowing','UNIVER_SHEET','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getUnitId','symbol','startPresenting','string','_liveShareController','2495095twWRUg','stopFollowing','call','get','@univerjs/core/facade','613204cLZsXx','amd','object','toPrimitive','18BLnymW','259lQQdIX','@univerjs-pro/live-share','35885pWpyYk','1542264EIADcM','_injector','function','8604IuGqhV','453JDpHCt','IUniverInstanceService','FEnum','IDLE','UniverCore','getLiveShareStatus'];_0x34e3=function(){return _0x53197b;};return _0x34e3();}
1
+ function _0xf67e(_0x110a80,_0x4fcd9d){_0x110a80=_0x110a80-0x194;const _0x50c427=_0x50c4();let _0xf67e60=_0x50c427[_0x110a80];return _0xf67e60;}(function(_0x50936a,_0x2cbc72){const _0x4cf434=_0xf67e,_0x1f7aed=_0x50936a();while(!![]){try{const _0x3f8e4e=parseInt(_0x4cf434(0x1c5))/0x1*(parseInt(_0x4cf434(0x1bd))/0x2)+-parseInt(_0x4cf434(0x1ab))/0x3*(-parseInt(_0x4cf434(0x1b8))/0x4)+-parseInt(_0x4cf434(0x1bb))/0x5*(parseInt(_0x4cf434(0x1af))/0x6)+parseInt(_0x4cf434(0x1c1))/0x7+-parseInt(_0x4cf434(0x1a5))/0x8*(-parseInt(_0x4cf434(0x1b4))/0x9)+parseInt(_0x4cf434(0x1aa))/0xa+parseInt(_0x4cf434(0x1ad))/0xb*(-parseInt(_0x4cf434(0x1be))/0xc);if(_0x3f8e4e===_0x2cbc72)break;else _0x1f7aed['push'](_0x1f7aed['shift']());}catch(_0x12f9a5){_0x1f7aed['push'](_0x1f7aed['shift']());}}}(_0x50c4,0xc821e),function(_0x26f31d,_0x53557c){const _0x3828ce=_0xf67e;typeof exports==_0x3828ce(0x1b2)&&typeof module<'u'?_0x53557c(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define=='function'&&define['amd']?define([_0x3828ce(0x1ba),_0x3828ce(0x1a0),_0x3828ce(0x1b3)],_0x53557c):(_0x26f31d=typeof globalThis<'u'?globalThis:_0x26f31d||self,_0x53557c(_0x26f31d[_0x3828ce(0x19a)],_0x26f31d[_0x3828ce(0x1a4)],_0x26f31d[_0x3828ce(0x19c)]));}(this,function(_0x1ee959,_0x56949e,_0x1e4c36){const _0x2739e8=_0xf67e;function _0x30a8ec(_0x3bd71a){'@babel/helpers - typeof';return _0x30a8ec=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x5718f9){return typeof _0x5718f9;}:function(_0x240588){const _0x212b98=_0xf67e;return _0x240588&&typeof Symbol==_0x212b98(0x19e)&&_0x240588[_0x212b98(0x1ae)]===Symbol&&_0x240588!==Symbol[_0x212b98(0x195)]?_0x212b98(0x1a2):typeof _0x240588;},_0x30a8ec(_0x3bd71a);}function _0x26f86e(_0x551fb4,_0xca1620){const _0x3ea07c=_0xf67e;if(_0x30a8ec(_0x551fb4)!=_0x3ea07c(0x1b2)||!_0x551fb4)return _0x551fb4;var _0x1b6708=_0x551fb4[Symbol['toPrimitive']];if(_0x1b6708!==void 0x0){var _0x5ec335=_0x1b6708[_0x3ea07c(0x1c3)](_0x551fb4,_0xca1620||_0x3ea07c(0x1a3));if(_0x30a8ec(_0x5ec335)!='object')return _0x5ec335;throw TypeError(_0x3ea07c(0x199));}return(_0xca1620===_0x3ea07c(0x197)?String:Number)(_0x551fb4);}function _0x4157eb(_0x2cc788){const _0x556ffc=_0xf67e;var _0x383ee4=_0x26f86e(_0x2cc788,_0x556ffc(0x197));return _0x30a8ec(_0x383ee4)==_0x556ffc(0x1a2)?_0x383ee4:_0x383ee4+'';}function _0x40cd56(_0x3a9d65,_0x1818c9,_0x3b9fc2){return(_0x1818c9=_0x4157eb(_0x1818c9))in _0x3a9d65?Object['defineProperty'](_0x3a9d65,_0x1818c9,{'value':_0x3b9fc2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a9d65[_0x1818c9]=_0x3b9fc2,_0x3a9d65;}var _0xd22876=class extends _0x1e4c36[_0x2739e8(0x1c4)]{constructor(..._0x2cb52d){const _0x644767=_0x2739e8;super(..._0x2cb52d),_0x40cd56(this,_0x644767(0x1b9),void 0x0);}[_0x2739e8(0x1a7)](_0x5b19a3){const _0x1ce720=_0x2739e8;this[_0x1ce720(0x1b9)]=_0x5b19a3[_0x1ce720(0x1c0)](_0x1ee959[_0x1ce720(0x19b)]);}[_0x2739e8(0x1a1)](){const _0x2b6ed6=_0x2739e8;var _0x341ef0;let _0x3cb9ba=this[_0x2b6ed6(0x1a8)][_0x2b6ed6(0x1c0)](_0x56949e[_0x2b6ed6(0x1c6)])['getCurrentUnitOfType'](_0x56949e['UniverInstanceType'][_0x2b6ed6(0x1a6)]);if(!_0x3cb9ba)throw Error(_0x2b6ed6(0x1b7));let _0x45ae30=_0x3cb9ba[_0x2b6ed6(0x1bf)](),_0x6bdf12=this[_0x2b6ed6(0x1b9)][_0x2b6ed6(0x1b1)](_0x45ae30);return(_0x341ef0=_0x6bdf12==null?void 0x0:_0x6bdf12[_0x2b6ed6(0x194)]())==null?_0x1ee959[_0x2b6ed6(0x198)][_0x2b6ed6(0x1b0)]:_0x341ef0;}[_0x2739e8(0x1b6)](){const _0x64a7e=_0x2739e8;let _0x3db0fc=this[_0x64a7e(0x1a8)][_0x64a7e(0x1c0)](_0x56949e[_0x64a7e(0x1c6)])[_0x64a7e(0x1b5)](_0x56949e[_0x64a7e(0x1a9)][_0x64a7e(0x1a6)]);if(!_0x3db0fc)throw Error(_0x64a7e(0x1b7));let _0x564712=_0x3db0fc[_0x64a7e(0x1bf)](),_0x3f7fb7=this['_liveShareController'][_0x64a7e(0x1b1)](_0x564712);if(!_0x3f7fb7)throw Error(_0x64a7e(0x1c2));_0x3f7fb7[_0x64a7e(0x1b6)]();}[_0x2739e8(0x196)](){const _0x59f321=_0x2739e8;let _0x41560f=this[_0x59f321(0x1a8)][_0x59f321(0x1c0)](_0x56949e[_0x59f321(0x1c6)])[_0x59f321(0x1b5)](_0x56949e[_0x59f321(0x1a9)][_0x59f321(0x1a6)]);if(!_0x41560f)throw Error(_0x59f321(0x1b7));let _0x487a62=_0x41560f[_0x59f321(0x1bf)](),_0x4733bd=this[_0x59f321(0x1b9)]['getLiveShareCoordinatorSync'](_0x487a62);if(!_0x4733bd)throw Error(_0x59f321(0x1c2));_0x4733bd[_0x59f321(0x196)]();}['startPresenting'](){const _0x4b3a7a=_0x2739e8;let _0x176c5b=this[_0x4b3a7a(0x1a8)][_0x4b3a7a(0x1c0)](_0x56949e['IUniverInstanceService'])[_0x4b3a7a(0x1b5)](_0x56949e[_0x4b3a7a(0x1a9)][_0x4b3a7a(0x1a6)]);if(!_0x176c5b)throw Error(_0x4b3a7a(0x1b7));let _0x2c1c9b=_0x176c5b[_0x4b3a7a(0x1bf)](),_0x478b5e=this[_0x4b3a7a(0x1b9)]['getLiveShareCoordinatorSync'](_0x2c1c9b);if(!_0x478b5e)throw Error(_0x4b3a7a(0x1c2));_0x478b5e['tryStartPresenting']();}[_0x2739e8(0x19f)](){const _0x87f651=_0x2739e8;let _0x5f8eb3=this['_injector']['get'](_0x56949e[_0x87f651(0x1c6)])['getCurrentUnitOfType'](_0x56949e[_0x87f651(0x1a9)][_0x87f651(0x1a6)]);if(!_0x5f8eb3)throw Error(_0x87f651(0x1b7));let _0x5d995f=_0x5f8eb3[_0x87f651(0x1bf)](),_0x11979b=this[_0x87f651(0x1b9)]['getLiveShareCoordinatorSync'](_0x5d995f);if(!_0x11979b)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x11979b['stopPresenting']();}};_0x1e4c36[_0x2739e8(0x1c4)][_0x2739e8(0x1ac)](_0xd22876);var _0x41eb5a=class extends _0x1e4c36['FEnum']{get[_0x2739e8(0x19d)](){const _0x10ca30=_0x2739e8;return _0x1ee959[_0x10ca30(0x198)];}};_0x1e4c36[_0x2739e8(0x1bc)]['extend'](_0x41eb5a);}));function _0x50c4(){const _0x7abde0=['default','UniverCore','3730576NbxbZP','UNIVER_SHEET','_initialize','_injector','UniverInstanceType','9685960DRYUTN','3nCrgnf','extend','33FtPTKc','constructor','66aduwjt','IDLE','getLiveShareCoordinatorSync','object','@univerjs/core/facade','9LTkHiP','getCurrentUnitOfType','startFollowing','No\x20active\x20workbook\x20found.','5909476xwSUJn','_liveShareController','@univerjs-pro/live-share','241765wnVzlq','FEnum','2ewsCPx','14236296unAtpC','getUnitId','get','4526081mkjIeW','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','call','FUniver','1351829RGdUEA','IUniverInstanceService','getStatus','prototype','stopFollowing','string','LiveShareStatus','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverProLiveShare','LiveShareController','UniverCoreFacade','LiveShareStatusEnum','function','stopPresenting','@univerjs/core','getLiveShareStatus','symbol'];_0x50c4=function(){return _0x7abde0;};return _0x50c4();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2513(_0x3a5764,_0x138664){_0x3a5764=_0x3a5764-0x17a;const _0x543a3a=_0x543a();let _0x251383=_0x543a3a[_0x3a5764];return _0x251383;}(function(_0x2b99f7,_0x4c3509){const _0x5ae553=_0x2513,_0x540af4=_0x2b99f7();while(!![]){try{const _0x49f7c1=-parseInt(_0x5ae553(0x26a))/0x1+parseInt(_0x5ae553(0x22f))/0x2+parseInt(_0x5ae553(0x203))/0x3+parseInt(_0x5ae553(0x19d))/0x4*(-parseInt(_0x5ae553(0x1ef))/0x5)+parseInt(_0x5ae553(0x242))/0x6*(parseInt(_0x5ae553(0x255))/0x7)+parseInt(_0x5ae553(0x18d))/0x8+-parseInt(_0x5ae553(0x213))/0x9;if(_0x49f7c1===_0x4c3509)break;else _0x540af4['push'](_0x540af4['shift']());}catch(_0x2d5568){_0x540af4['push'](_0x540af4['shift']());}}}(_0x543a,0xc69ab),function(_0x304b3f,_0x79104b){const _0x53613f=_0x2513;typeof exports==_0x53613f(0x211)&&typeof module<'u'?_0x79104b(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime')):typeof define==_0x53613f(0x24e)&&define[_0x53613f(0x1cb)]?define([_0x53613f(0x17d),_0x53613f(0x23f),_0x53613f(0x19f),_0x53613f(0x247),_0x53613f(0x1e6),_0x53613f(0x25e),_0x53613f(0x194),_0x53613f(0x204),_0x53613f(0x1ea),'@univerjs/design',_0x53613f(0x212),_0x53613f(0x21a)],_0x79104b):(_0x304b3f=typeof globalThis<'u'?globalThis:_0x304b3f||self,_0x79104b(_0x304b3f[_0x53613f(0x1c8)]={},_0x304b3f['UniverProCollaboration'],_0x304b3f[_0x53613f(0x18f)],_0x304b3f[_0x53613f(0x263)],_0x304b3f['UniverSheets'],_0x304b3f[_0x53613f(0x25e)],_0x304b3f[_0x53613f(0x25e)][_0x53613f(0x1a5)],_0x304b3f[_0x53613f(0x189)],_0x304b3f[_0x53613f(0x1ec)],_0x304b3f['UniverDesign'],_0x304b3f['React'],_0x304b3f[_0x53613f(0x197)]));}(this,function(_0x22b40d,_0x226c1a,_0x2c5db5,_0x135454,_0x3c1ee6,_0xa8fcb2,_0x627475,_0x58d540,_0x519b13,_0x278a8a,_0xcb2de2,_0x2d0057){const _0x321abe=_0x2513;Object['defineProperty'](_0x22b40d,Symbol[_0x321abe(0x20b)],{'value':_0x321abe(0x1e9)});function _0x4c2785(_0xcca561){'@babel/helpers - typeof';const _0x51731a=_0x321abe;return _0x4c2785=typeof Symbol=='function'&&typeof Symbol[_0x51731a(0x1de)]==_0x51731a(0x226)?function(_0x587e7b){return typeof _0x587e7b;}:function(_0x1b63e6){const _0x56a004=_0x51731a;return _0x1b63e6&&typeof Symbol==_0x56a004(0x24e)&&_0x1b63e6[_0x56a004(0x1e2)]===Symbol&&_0x1b63e6!==Symbol[_0x56a004(0x181)]?_0x56a004(0x226):typeof _0x1b63e6;},_0x4c2785(_0xcca561);}function _0x2266ee(_0xb66463,_0x312e47){const _0x24b776=_0x321abe;if(_0x4c2785(_0xb66463)!=_0x24b776(0x211)||!_0xb66463)return _0xb66463;var _0x5af32f=_0xb66463[Symbol['toPrimitive']];if(_0x5af32f!==void 0x0){var _0x2b1307=_0x5af32f[_0x24b776(0x22d)](_0xb66463,_0x312e47||'default');if(_0x4c2785(_0x2b1307)!=_0x24b776(0x211))return _0x2b1307;throw TypeError(_0x24b776(0x19e));}return(_0x312e47==='string'?String:Number)(_0xb66463);}function _0x37e0df(_0x33075c){var _0x2f9ee6=_0x2266ee(_0x33075c,'string');return _0x4c2785(_0x2f9ee6)=='symbol'?_0x2f9ee6:_0x2f9ee6+'';}function _0x5e8633(_0x4401b2,_0x46cf06,_0x45ddc6){return(_0x46cf06=_0x37e0df(_0x46cf06))in _0x4401b2?Object['defineProperty'](_0x4401b2,_0x46cf06,{'value':_0x45ddc6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4401b2[_0x46cf06]=_0x45ddc6,_0x4401b2;}var _0x32815e=class extends _0x135454[_0x321abe(0x229)]{constructor(..._0x2bbdc1){const _0x36e4b3=_0x321abe;super(..._0x2bbdc1),_0x5e8633(this,'_sharedOperations',new Set()),_0x5e8633(this,_0x36e4b3(0x210),new Set());}['registerSharedOperation'](_0x2decd6){const _0x25e3c7=_0x321abe;return this[_0x25e3c7(0x230)][_0x25e3c7(0x218)](_0x2decd6),(0x0,_0x135454[_0x25e3c7(0x23b)])(()=>this[_0x25e3c7(0x230)][_0x25e3c7(0x1a4)](_0x2decd6));}[_0x321abe(0x228)](_0x2f7bba){const _0x1f38fe=_0x321abe;return this[_0x1f38fe(0x210)]['add'](_0x2f7bba),(0x0,_0x135454[_0x1f38fe(0x23b)])(()=>this[_0x1f38fe(0x210)]['delete'](_0x2f7bba));}[_0x321abe(0x252)](_0x1d6057){return this['_sharedOperations']['has'](_0x1d6057);}[_0x321abe(0x240)](_0x375532){const _0x3d2e1a=_0x321abe;return Array['from'](this[_0x3d2e1a(0x210)])[_0x3d2e1a(0x1ce)](_0x5adeaa=>_0x5adeaa(_0x375532));}};function _0x5b244f(_0x1c0b85,_0x36b313){return function(_0x57896f,_0x513b01){_0x36b313(_0x57896f,_0x513b01,_0x1c0b85);};}function _0x262a5a(_0x39dc3c,_0x5d576d,_0x36c39b,_0x3728a2){const _0x5ad114=_0x321abe;var _0x453f17=arguments[_0x5ad114(0x1ab)],_0x526978=_0x453f17<0x3?_0x5d576d:_0x3728a2===null?_0x3728a2=Object['getOwnPropertyDescriptor'](_0x5d576d,_0x36c39b):_0x3728a2,_0x24e1ea;if(typeof Reflect=='object'&&typeof Reflect[_0x5ad114(0x19a)]==_0x5ad114(0x24e))_0x526978=Reflect[_0x5ad114(0x19a)](_0x39dc3c,_0x5d576d,_0x36c39b,_0x3728a2);else{for(var _0x370fd4=_0x39dc3c[_0x5ad114(0x1ab)]-0x1;_0x370fd4>=0x0;_0x370fd4--)(_0x24e1ea=_0x39dc3c[_0x370fd4])&&(_0x526978=(_0x453f17<0x3?_0x24e1ea(_0x526978):_0x453f17>0x3?_0x24e1ea(_0x5d576d,_0x36c39b,_0x526978):_0x24e1ea(_0x5d576d,_0x36c39b))||_0x526978);}return _0x453f17>0x3&&_0x526978&&Object[_0x5ad114(0x1bc)](_0x5d576d,_0x36c39b,_0x526978),_0x526978;}let _0x319e38=class extends _0x135454[_0x321abe(0x20e)]{constructor(_0x41f7c,_0x4f5f8b,_0x3c451b){const _0x26cd0b=_0x321abe;super(),this[_0x26cd0b(0x1f2)]=_0x41f7c,this[_0x26cd0b(0x1e3)]=_0x4f5f8b,this[_0x26cd0b(0x257)]=_0x3c451b,_0x5e8633(this,_0x26cd0b(0x20d),new Map()),this[_0x26cd0b(0x243)]();}async[_0x321abe(0x20f)](_0x452003){const _0x5f2989=_0x321abe;return this[_0x5f2989(0x20d)][_0x5f2989(0x23c)](_0x452003)||await this[_0x5f2989(0x220)](_0x452003),this[_0x5f2989(0x20d)][_0x5f2989(0x1be)](_0x452003);}['getLiveShareCoordinatorSync'](_0x5a5a2b){const _0x522fd3=_0x321abe;var _0x2d273e;return(_0x2d273e=this[_0x522fd3(0x20d)]['get'](_0x5a5a2b))==null?null:_0x2d273e;}['_init'](){const _0x2501c6=_0x321abe;this[_0x2501c6(0x1f2)][_0x2501c6(0x256)](_0x135454[_0x2501c6(0x262)]['UNIVER_SHEET'])[_0x2501c6(0x19b)]((0x0,_0x627475[_0x2501c6(0x254)])(this[_0x2501c6(0x1c0)]))[_0x2501c6(0x1d7)](async _0x2696c2=>{const _0x377525=_0x2501c6;let _0x193844=_0x2696c2[_0x377525(0x1e5)][_0x377525(0x241)]();this[_0x377525(0x20d)][_0x377525(0x23c)](_0x193844)||this['_startLiveShareCoordinator'](_0x193844);}),this[_0x2501c6(0x1f2)][_0x2501c6(0x264)](_0x135454[_0x2501c6(0x262)]['UNIVER_SHEET'])[_0x2501c6(0x19b)]((0x0,_0x627475[_0x2501c6(0x254)])(this[_0x2501c6(0x1c0)]))['subscribe'](_0xe0eacc=>{const _0x31c3af=_0x2501c6;let _0x3b4554=_0xe0eacc[_0x31c3af(0x241)](),_0x5694c0=this[_0x31c3af(0x20d)][_0x31c3af(0x1be)](_0x3b4554);_0x5694c0==null||_0x5694c0[_0x31c3af(0x209)]();});}async[_0x321abe(0x220)](_0x3840f3){const _0x3452e9=_0x321abe;let _0x40bae4=await this['_collabSessionService'][_0x3452e9(0x268)](_0x3840f3),_0x3b7d6a=this['_injector'][_0x3452e9(0x1b2)](_0x1f6d67,_0x3840f3,_0x40bae4);return _0x3b7d6a[_0x3452e9(0x1f4)](),this['_entities'][_0x3452e9(0x1c9)](_0x3840f3,_0x3b7d6a),_0x3b7d6a;}};_0x319e38=_0x262a5a([_0x5b244f(0x0,_0x135454[_0x321abe(0x17c)]),_0x5b244f(0x1,(0x0,_0x135454['Inject'])(_0x135454[_0x321abe(0x26b)])),_0x5b244f(0x2,(0x0,_0x135454['Inject'])(_0x2c5db5[_0x321abe(0x1da)]))],_0x319e38);let _0x5cfea9=function(_0x520106){const _0x47f7be=_0x321abe;return _0x520106[_0x47f7be(0x23a)]=_0x47f7be(0x215),_0x520106[_0x47f7be(0x235)]=_0x47f7be(0x186),_0x520106[_0x47f7be(0x187)]=_0x47f7be(0x185),_0x520106[_0x47f7be(0x198)]=_0x47f7be(0x1a1),_0x520106[_0x47f7be(0x1dc)]=_0x47f7be(0x195),_0x520106;}({}),_0x1f6d67=class extends _0x135454[_0x321abe(0x20e)]{get[_0x321abe(0x1b0)](){const _0x9f7634=_0x321abe;return this[_0x9f7634(0x1f9)]['getValue']();}constructor(_0xe2b125,_0x47bb13,_0x10c8e9,_0x3195b6,_0x7d7375){const _0x6ed4f4=_0x321abe;super(),this['_unitID']=_0xe2b125,this[_0x6ed4f4(0x1b7)]=_0x47bb13,this[_0x6ed4f4(0x208)]=_0x10c8e9,this[_0x6ed4f4(0x1f0)]=_0x3195b6,this[_0x6ed4f4(0x1a0)]=_0x7d7375,_0x5e8633(this,'_status$',new _0xa8fcb2[(_0x6ed4f4(0x1d8))]('idle')),_0x5e8633(this,_0x6ed4f4(0x253),this[_0x6ed4f4(0x1f9)][_0x6ed4f4(0x21e)]()),_0x5e8633(this,_0x6ed4f4(0x243),!0x1),_0x5e8633(this,_0x6ed4f4(0x24f),null),_0x5e8633(this,'_presenter',null);}[_0x321abe(0x209)](){const _0x4367b0=_0x321abe;var _0x255948;(_0x255948=this[_0x4367b0(0x24f)])==null||_0x255948[_0x4367b0(0x209)](),this[_0x4367b0(0x1f9)][_0x4367b0(0x1bd)](_0x4367b0(0x186)),this[_0x4367b0(0x1f9)]['complete']();}[_0x321abe(0x25a)](){const _0x5f4655=_0x321abe;return this[_0x5f4655(0x1b0)];}['init'](){const _0x4106de=_0x321abe;this[_0x4106de(0x243)]||(this[_0x4106de(0x243)]=!0x0,this['_collabSession'][_0x4106de(0x191)]['pipe']((0x0,_0x627475[_0x4106de(0x254)])(this[_0x4106de(0x1c0)]))[_0x4106de(0x1d7)](_0x59430b=>{const _0x3a760c=_0x4106de;switch(_0x59430b){case _0x2c5db5[_0x3a760c(0x21d)][_0x3a760c(0x23a)]:this[_0x3a760c(0x1bb)]();break;case _0x2c5db5[_0x3a760c(0x21d)][_0x3a760c(0x1ee)]:this[_0x3a760c(0x182)]();break;default:}}),this['_collabSession']['event$'][_0x4106de(0x19b)]((0x0,_0x627475[_0x4106de(0x254)])(this[_0x4106de(0x1c0)]))[_0x4106de(0x1d7)](_0x688b42=>{const _0x14a9b6=_0x4106de;let {eventID:_0x11ab92}=_0x688b42;switch(_0x11ab92){case _0x226c1a[_0x14a9b6(0x18a)][_0x14a9b6(0x1fa)]:this['_handleNewHost'](_0x688b42);break;case _0x226c1a[_0x14a9b6(0x18a)][_0x14a9b6(0x1df)]:this[_0x14a9b6(0x269)](_0x688b42);break;case _0x226c1a[_0x14a9b6(0x18a)][_0x14a9b6(0x184)]:this[_0x14a9b6(0x1a2)]();break;case _0x226c1a['CollaborationEvent'][_0x14a9b6(0x1a7)]:this['_handleNewChangeSets'](_0x688b42);break;default:}}));}['tryStartPresenting'](){const _0x1f1c86=_0x321abe;this[_0x1f1c86(0x1b7)][_0x1f1c86(0x21b)]({'eventID':_0x226c1a[_0x1f1c86(0x18a)][_0x1f1c86(0x18c)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x1f1c86(0x267)]()}},this[_0x1f1c86(0x227)]);}[_0x321abe(0x21c)](){const _0x58d2c3=_0x321abe;this[_0x58d2c3(0x1b0)]===_0x58d2c3(0x195)&&(this[_0x58d2c3(0x1f9)][_0x58d2c3(0x1bd)](_0x58d2c3(0x186)),this['_collabSession'][_0x58d2c3(0x21b)]({'eventID':_0x226c1a[_0x58d2c3(0x18a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x58d2c3(0x227)]}},this[_0x58d2c3(0x227)]));}[_0x321abe(0x1cc)](){const _0x2389f2=_0x321abe;this[_0x2389f2(0x1b0)]===_0x2389f2(0x1a1)&&(this[_0x2389f2(0x1f9)]['next'](_0x2389f2(0x185)),this[_0x2389f2(0x1f3)]());}[_0x321abe(0x20c)](){const _0x3b5dbe=_0x321abe;this['_status']===_0x3b5dbe(0x185)&&this[_0x3b5dbe(0x1ed)]();}[_0x321abe(0x217)](_0x267ec2){const _0x1f4f3a=_0x321abe;let {presenter:_0x545eb6}=_0x267ec2[_0x1f4f3a(0x1c3)],_0x24abaa=this['_collabSession'][_0x1f4f3a(0x267)]();this['_presenter']=_0x545eb6,_0x545eb6===_0x24abaa?(this['_stopFollowing'](),this[_0x1f4f3a(0x21f)]()):this['_status']!==_0x1f4f3a(0x1a1)&&(this[_0x1f4f3a(0x1aa)](),this[_0x1f4f3a(0x1f3)]());}[_0x321abe(0x1ba)](){const _0x3fd5c1=_0x321abe;let _0x2a27e4={'eventID':_0x226c1a[_0x3fd5c1(0x18a)][_0x3fd5c1(0x249)]};this[_0x3fd5c1(0x1b7)]['send'](_0x2a27e4,this[_0x3fd5c1(0x227)]);}[_0x321abe(0x1a2)](){const _0x5ec000=_0x321abe;this['_presenter']=null,this[_0x5ec000(0x1b0)]!=='presenting'&&this[_0x5ec000(0x1c4)]();}['_handleNewChangeSets'](_0x445082){const _0x1ff8c8=_0x321abe;if(this[_0x1ff8c8(0x1b0)]==='following'&&this[_0x1ff8c8(0x1fd)]===_0x445082[_0x1ff8c8(0x1c3)]['memberID']){let _0x384e60=(0x0,_0x226c1a['parseProtocolChangeset'])(_0x445082['data'])[_0x1ff8c8(0x24d)][_0x1ff8c8(0x214)]()['find'](_0x322337=>_0x322337['id']===_0x3c1ee6[_0x1ff8c8(0x1c5)]['id']);if(_0x384e60){let _0x26ccaf=_0x384e60['params'][_0x1ff8c8(0x1dd)],_0xe41abb=_0x384e60[_0x1ff8c8(0x250)][_0x1ff8c8(0x1d1)]['id'];setTimeout(()=>{const _0x330a32=_0x1ff8c8;this[_0x330a32(0x1a0)][_0x330a32(0x1c2)](_0x3c1ee6[_0x330a32(0x1b4)]['id'],{'unitId':_0x26ccaf,'subUnitId':_0xe41abb},{'fromCollab':!0x0});});}}}[_0x321abe(0x21f)](){const _0x5a98a9=_0x321abe;var _0x303c90;(_0x303c90=this['_commandDisposable'])==null||_0x303c90[_0x5a98a9(0x209)](),this[_0x5a98a9(0x1f9)][_0x5a98a9(0x1bd)]('presenting');let _0x24ce45=new Map(),_0xa9e027=this[_0x5a98a9(0x24f)]=new _0x135454['DisposableCollection']();_0xa9e027[_0x5a98a9(0x218)]((0x0,_0x135454[_0x5a98a9(0x23b)])(()=>{const _0x4cefdf=_0x5a98a9;_0x24ce45['forEach'](({subject:_0x2ca484,subscription:_0x4ee42b})=>{const _0x5e5445=_0x2513;_0x4ee42b['unsubscribe'](),_0x2ca484[_0x5e5445(0x244)]();}),_0x24ce45[_0x4cefdf(0x1b5)]();})),_0xa9e027[_0x5a98a9(0x218)](this[_0x5a98a9(0x1a0)][_0x5a98a9(0x1e1)](_0x296f50=>{const _0x4172ea=_0x5a98a9;if(_0x296f50[_0x4172ea(0x1b8)]!==_0x135454[_0x4172ea(0x1cd)][_0x4172ea(0x1d0)]||!this[_0x4172ea(0x1f0)][_0x4172ea(0x252)](_0x296f50['id']))return;let {id:_0x127cd0}=_0x296f50,_0x508e63;if(_0x24ce45['has'](_0x127cd0))_0x508e63=_0x24ce45[_0x4172ea(0x1be)](_0x127cd0)['subject'];else{var _0x5a1be7;_0x508e63=new _0xa8fcb2[(_0x4172ea(0x1cf))]();let _0x44ea3f=_0x508e63[_0x4172ea(0x19b)]((0x0,_0x627475[_0x4172ea(0x205)])((_0x5a1be7=this[_0x4172ea(0x208)][_0x4172ea(0x1a8)](_0x4172ea(0x200)))==null?0xc8:_0x5a1be7,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4172ea(0x1d7)](_0x531977=>{const _0x46c650=_0x4172ea;this[_0x46c650(0x1b7)]['send']({'eventID':_0x226c1a[_0x46c650(0x18a)][_0x46c650(0x1df)],'data':{'unitID':this[_0x46c650(0x227)],'operations':{[_0x531977['id']]:{'id':_0x531977['id'],'params':JSON[_0x46c650(0x216)](_0x531977['params'])}}}},this[_0x46c650(0x227)]);});_0x24ce45[_0x4172ea(0x1c9)](_0x127cd0,{'subject':_0x508e63,'subscription':_0x44ea3f});}_0x508e63[_0x4172ea(0x1bd)](_0x296f50);})),this[_0x5a98a9(0x1f0)][_0x5a98a9(0x240)](this['_unitID'])[_0x5a98a9(0x221)](_0x4b45b3=>this[_0x5a98a9(0x1b7)][_0x5a98a9(0x21b)]({'eventID':_0x226c1a['CollaborationEvent'][_0x5a98a9(0x1df)],'data':{'unitID':this[_0x5a98a9(0x227)],'operations':{[_0x4b45b3['id']]:{'id':_0x4b45b3['id'],'params':JSON[_0x5a98a9(0x216)](_0x4b45b3[_0x5a98a9(0x250)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x3f8a5d=_0x321abe;var _0x5d0e32;this[_0x3f8a5d(0x1f9)][_0x3f8a5d(0x1bd)](_0x3f8a5d(0x186)),(_0x5d0e32=this[_0x3f8a5d(0x24f)])==null||_0x5d0e32[_0x3f8a5d(0x209)](),this[_0x3f8a5d(0x24f)]=null;}[_0x321abe(0x1f3)](){const _0x107b67=_0x321abe;var _0x869ba1;(_0x869ba1=this['_commandDisposable'])==null||_0x869ba1['dispose'](),this['_status$']['next'](_0x107b67(0x185));}[_0x321abe(0x1c4)](){const _0x47324b=_0x321abe;var _0x4ba7f1;this[_0x47324b(0x1f9)][_0x47324b(0x1bd)](_0x47324b(0x186)),(_0x4ba7f1=this[_0x47324b(0x24f)])==null||_0x4ba7f1[_0x47324b(0x209)](),this[_0x47324b(0x24f)]=null;}[_0x321abe(0x1ed)](){const _0x53cf22=_0x321abe;var _0x5c417e;this['_status$'][_0x53cf22(0x1bd)](_0x53cf22(0x1a1)),(_0x5c417e=this[_0x53cf22(0x24f)])==null||_0x5c417e['dispose']();}[_0x321abe(0x269)](_0xe13a5d){const _0x2b288e=_0x321abe;if([_0x2b288e(0x195),_0x2b288e(0x1a1),'offline'][_0x2b288e(0x219)](this[_0x2b288e(0x1b0)])||!_0xe13a5d[_0x2b288e(0x1c3)][_0x2b288e(0x1f5)]||_0xe13a5d[_0x2b288e(0x1c3)][_0x2b288e(0x1f5)]===this[_0x2b288e(0x1b7)]['getMemberID']())return;this[_0x2b288e(0x1b0)]==='idle'&&this[_0x2b288e(0x1f3)]();let _0x1c36a0=_0xe13a5d[_0x2b288e(0x1c3)]['operations'];Object[_0x2b288e(0x23e)](_0x1c36a0)[_0x2b288e(0x221)](_0x5ce5a6=>{const _0x15fece=_0x2b288e;this['_commandService'][_0x15fece(0x1c2)](_0x5ce5a6['id'],_0x5ce5a6[_0x15fece(0x250)]?JSON['parse'](_0x5ce5a6[_0x15fece(0x250)]):null,{'fromCollab':!0x0});});}[_0x321abe(0x1bb)](){const _0x2ef24e=_0x321abe;var _0x2a2050;this[_0x2ef24e(0x1f9)][_0x2ef24e(0x1bd)](_0x2ef24e(0x215)),(_0x2a2050=this[_0x2ef24e(0x24f)])==null||_0x2a2050[_0x2ef24e(0x209)]();}[_0x321abe(0x182)](){const _0x42127b=_0x321abe;this[_0x42127b(0x1f9)][_0x42127b(0x1bd)](_0x42127b(0x186)),this['_fetchOperations']();}};_0x1f6d67=_0x262a5a([_0x5b244f(0x2,_0x135454[_0x321abe(0x233)]),_0x5b244f(0x3,(0x0,_0x135454['Inject'])(_0x32815e)),_0x5b244f(0x4,_0x135454['ICommandService'])],_0x1f6d67);var _0x44ee2d=_0x321abe(0x260),_0x5c93ef=_0x321abe(0x1ad);let _0x17dc8b={},_0x3dfe76=class extends _0x135454[_0x321abe(0x229)]{constructor(_0x4b828a){const _0x4bae6e=_0x321abe;super(),this[_0x4bae6e(0x1f0)]=_0x4b828a,this[_0x4bae6e(0x243)]();}[_0x321abe(0x243)](){const _0x2b4d7f=_0x321abe;[_0x58d540[_0x2b4d7f(0x1f6)]['id'],_0x58d540[_0x2b4d7f(0x231)]['id'],_0x3c1ee6[_0x2b4d7f(0x1b4)]['id']][_0x2b4d7f(0x221)](_0x471f49=>{const _0x8d939a=_0x2b4d7f;this['disposeWithMe'](this[_0x8d939a(0x1f0)][_0x8d939a(0x207)](_0x471f49));});}};_0x3dfe76=_0x262a5a([_0x5b244f(0x0,(0x0,_0x135454['Inject'])(_0x32815e))],_0x3dfe76);function _0x4d6ade({ref:_0x2b980d,..._0x1d76f5}){const _0x5c316d=_0x321abe;let {icon:_0x15c374,id:_0x31fba9,className:_0x2a7a98,extend:_0x128664,..._0x4d3ab5}=_0x1d76f5,_0x4683cf=(_0x5c316d(0x1c7)+_0x31fba9+'\x20'+(_0x2a7a98||''))['trim'](),_0x518cad=(0x0,_0xcb2de2[_0x5c316d(0x261)])('_'+_0x5ad4c3());return _0x1d65db(_0x15c374,''+_0x31fba9,{'defIds':_0x15c374[_0x5c316d(0x1f8)],'idSuffix':_0x518cad['current']},{'ref':_0x2b980d,'className':_0x4683cf,..._0x4d3ab5},_0x128664);}function _0x1d65db(_0x3949ac,_0x362e87,_0xe461ce,_0x499bad,_0x48e536){const _0xe5d862=_0x321abe;return(0x0,_0xcb2de2[_0xe5d862(0x222)])(_0x3949ac[_0xe5d862(0x1b3)],{'key':_0x362e87,..._0xa2b1bd(_0x3949ac,_0xe461ce,_0x48e536),..._0x499bad},(_0x1db5b9(_0x3949ac,_0xe461ce)[_0xe5d862(0x25d)]||[])['map']((_0xee453d,_0x212659)=>_0x1d65db(_0xee453d,_0x362e87+'-'+_0x3949ac[_0xe5d862(0x1b3)]+'-'+_0x212659,_0xe461ce,void 0x0,_0x48e536)));}function _0xa2b1bd(_0x306c1e,_0x1a3f80,_0x206e51){const _0x5a3a46=_0x321abe;let _0x190b52={..._0x306c1e[_0x5a3a46(0x1fe)]};_0x206e51!=null&&_0x206e51[_0x5a3a46(0x193)]&&_0x190b52[_0x5a3a46(0x22e)]===_0x5a3a46(0x193)&&(_0x190b52['fill']=_0x206e51[_0x5a3a46(0x193)]),_0x206e51!=null&&_0x206e51['colorChannel1']&&_0x190b52[_0x5a3a46(0x1ac)]===_0x5a3a46(0x193)&&(_0x190b52[_0x5a3a46(0x1ac)]=_0x206e51[_0x5a3a46(0x193)]),_0x306c1e[_0x5a3a46(0x1b3)]==='mask'&&_0x190b52['id']&&(_0x190b52['id']+=_0x1a3f80[_0x5a3a46(0x265)]),Object[_0x5a3a46(0x232)](_0x190b52)['forEach'](([_0x29288b,_0xa1c026])=>{const _0x13401a=_0x5a3a46;_0x29288b===_0x13401a(0x1a6)&&typeof _0xa1c026==_0x13401a(0x1e8)&&(_0x190b52[_0x29288b]=_0xa1c026[_0x13401a(0x1db)](/url\(#(.*)\)/,'url(#$1'+_0x1a3f80[_0x13401a(0x265)]+')'));});let {defIds:_0x3a5225}=_0x1a3f80;return!_0x3a5225||_0x3a5225[_0x5a3a46(0x1ab)]===0x0?_0x190b52:(_0x306c1e[_0x5a3a46(0x1b3)]==='use'&&_0x190b52['xlink:href']&&(_0x190b52['xlink:href']+=_0x1a3f80[_0x5a3a46(0x265)]),Object[_0x5a3a46(0x232)](_0x190b52)[_0x5a3a46(0x221)](([_0x40d1de,_0x482d14])=>{const _0x5812d0=_0x5a3a46;typeof _0x482d14==_0x5812d0(0x1e8)&&(_0x190b52[_0x40d1de]=_0x482d14[_0x5812d0(0x1db)](/url\(#(.*)\)/,_0x5812d0(0x24a)+_0x1a3f80['idSuffix']+')'));}),_0x190b52);}function _0x1db5b9(_0x214d00,_0x56b40d){const _0x4ac83d=_0x321abe;var _0x4dae3a;let {defIds:_0x1187d4}=_0x56b40d;return!_0x1187d4||_0x1187d4[_0x4ac83d(0x1ab)]===0x0?_0x214d00:_0x214d00[_0x4ac83d(0x1b3)]===_0x4ac83d(0x1c1)&&(_0x4dae3a=_0x214d00[_0x4ac83d(0x25d)])!=null&&_0x4dae3a[_0x4ac83d(0x1ab)]?{..._0x214d00,'children':_0x214d00[_0x4ac83d(0x25d)][_0x4ac83d(0x1ce)](_0x334c88=>typeof _0x334c88[_0x4ac83d(0x1fe)]['id']==_0x4ac83d(0x1e8)&&_0x1187d4&&_0x1187d4[_0x4ac83d(0x219)](_0x334c88[_0x4ac83d(0x1fe)]['id'])?{..._0x334c88,'attrs':{..._0x334c88['attrs'],'id':_0x334c88['attrs']['id']+_0x56b40d[_0x4ac83d(0x265)]}}:_0x334c88)}:_0x214d00;}function _0x5ad4c3(){const _0x3695c2=_0x321abe;return Math[_0x3695c2(0x1b1)]()[_0x3695c2(0x1bf)](0x24)[_0x3695c2(0x1f1)](0x2,0x8);}_0x4d6ade['displayName']='UniverIcon';let _0x3c5841={'tag':_0x321abe(0x246),'attrs':{'xmlns':_0x321abe(0x1f7),'fill':_0x321abe(0x245),'viewBox':'0\x200\x2017\x2017','width':_0x321abe(0x1a9),'height':_0x321abe(0x1a9)},'children':[{'tag':_0x321abe(0x266),'attrs':{'fill':_0x321abe(0x22b),'d':_0x321abe(0x1d3)}},{'tag':_0x321abe(0x266),'attrs':{'fill':_0x321abe(0x22b),'d':_0x321abe(0x1ff),'fillRule':_0x321abe(0x25c),'clipRule':_0x321abe(0x25c)}}]},_0x350b51=(0x0,_0xcb2de2[_0x321abe(0x18e)])(function(_0x3ba527,_0x420826){const _0xd3b778=_0x321abe;return(0x0,_0xcb2de2['createElement'])(_0x4d6ade,Object['assign']({},_0x3ba527,{'id':_0xd3b778(0x22c),'ref':_0x420826,'icon':_0x3c5841}));});_0x350b51[_0x321abe(0x1eb)]=_0x321abe(0x24b);function _0x2d75ec(){const _0x5efc7d=_0x321abe;let _0x363c99=(0x0,_0x519b13['useDependency'])(_0x319e38),_0x1a8827=(0x0,_0x519b13['useDependency'])(_0x135454['IUniverInstanceService']),_0x229539=(0x0,_0x519b13[_0x5efc7d(0x251)])(()=>_0x1a8827['getCurrentTypeOfUnit$'](_0x135454['UniverInstanceType'][_0x5efc7d(0x201)]),void 0x0,!0x1,[]),[_0x214d07,_0x4afaf4]=(0x0,_0xcb2de2[_0x5efc7d(0x17f)])(null),[_0x4239e8,_0x554fa9]=(0x0,_0xcb2de2[_0x5efc7d(0x17f)])(_0x5efc7d(0x186)),_0x381300=(0x0,_0xcb2de2['useRef'])(null);return(0x0,_0xcb2de2[_0x5efc7d(0x237)])(()=>(_0x229539&&_0x363c99[_0x5efc7d(0x20f)](_0x229539[_0x5efc7d(0x241)]())[_0x5efc7d(0x1fc)](_0x267830=>{const _0x86f771=_0x5efc7d;_0x4afaf4(_0x267830),_0x381300[_0x86f771(0x223)]=_0x267830[_0x86f771(0x253)][_0x86f771(0x1d7)](_0x36f081=>{_0x554fa9(_0x36f081);});}),()=>{const _0x4816fc=_0x5efc7d;var _0x43481f;(_0x43481f=_0x381300['current'])==null||_0x43481f['unsubscribe'](),_0x381300[_0x4816fc(0x223)]=null;}),[_0x229539,_0x363c99]),_0x214d07?(0x0,_0x2d0057['jsx'])(_0x278a8a['Dropdown'],{'align':_0x5efc7d(0x188),'disabled':_0x4239e8===_0x5efc7d(0x215),'className':_0x5efc7d(0x17e),'overlay':(0x0,_0x2d0057[_0x5efc7d(0x1e4)])(_0x5c4fd7,{'status':_0x4239e8,'coordinator':_0x214d07}),'children':(0x0,_0x2d0057[_0x5efc7d(0x1e4)])('button',{'className':(0x0,_0x278a8a[_0x5efc7d(0x1c6)])(_0x5efc7d(0x24c),{'univer-cursor-not-allowed':_0x4239e8===_0x5efc7d(0x215),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4239e8!==_0x5efc7d(0x215)}),'type':'button','children':(0x0,_0x2d0057[_0x5efc7d(0x1e4)])(_0x350b51,{})})}):null;}function _0x5c4fd7(_0x3904e5){const _0x432d38=_0x321abe;let {status:_0x3d8aad,coordinator:_0x22ca8e}=_0x3904e5;switch(_0x3d8aad){case _0x432d38(0x186):return(0x0,_0x2d0057[_0x432d38(0x1e4)])(_0x527c08,{'coordinator':_0x22ca8e});case _0x432d38(0x185):return(0x0,_0x2d0057[_0x432d38(0x1e4)])(_0x36b166,{'coordinator':_0x22ca8e});case _0x432d38(0x1a1):return(0x0,_0x2d0057[_0x432d38(0x1e4)])(_0x399326,{'coordinator':_0x22ca8e});case'offline':return(0x0,_0x2d0057['jsx'])(_0xcddfac,{});case _0x432d38(0x195):return(0x0,_0x2d0057[_0x432d38(0x1e4)])(_0x1f39dc,{'coordinator':_0x22ca8e});default:return null;}}function _0x527c08(_0x2fe117){const _0x3139cf=_0x321abe;let {coordinator:_0x58e6cf}=_0x2fe117;return(0x0,_0x2d0057[_0x3139cf(0x23d)])(_0x2d0057[_0x3139cf(0x234)],{'children':[(0x0,_0x2d0057['jsx'])(_0x3139cf(0x19c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3139cf(0x225)}),(0x0,_0x2d0057[_0x3139cf(0x1e4)])(_0x278a8a[_0x3139cf(0x206)],{'onClick':()=>_0x58e6cf['tryStartPresenting'](),'children':'Start'})]});}function _0x36b166(_0x2b1aa7){const _0x3c3d1f=_0x321abe;let {coordinator:_0x287bf2}=_0x2b1aa7;return(0x0,_0x2d0057[_0x3c3d1f(0x23d)])(_0x2d0057[_0x3c3d1f(0x234)],{'children':[(0x0,_0x2d0057[_0x3c3d1f(0x1e4)])(_0x3c3d1f(0x19c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3c3d1f(0x1e7)}),(0x0,_0x2d0057[_0x3c3d1f(0x1e4)])(_0x278a8a[_0x3c3d1f(0x206)],{'onClick':()=>_0x287bf2['stopFollowing'](),'children':_0x3c3d1f(0x258)})]});}function _0x399326(_0xf74f50){const _0x31cbdf=_0x321abe;let {coordinator:_0x530fa5}=_0xf74f50;return(0x0,_0x2d0057[_0x31cbdf(0x23d)])(_0x2d0057[_0x31cbdf(0x234)],{'children':[(0x0,_0x2d0057[_0x31cbdf(0x1e4)])(_0x31cbdf(0x19c),{'className':_0x31cbdf(0x22a),'children':_0x31cbdf(0x196)}),(0x0,_0x2d0057[_0x31cbdf(0x1e4)])(_0x278a8a['Button'],{'variant':_0x31cbdf(0x1d6),'onClick':()=>_0x530fa5[_0x31cbdf(0x1cc)](),'children':_0x31cbdf(0x18b)})]});}function _0x1f39dc(_0x578ea0){const _0x3f08a2=_0x321abe;let {coordinator:_0x41263f}=_0x578ea0;return(0x0,_0x2d0057[_0x3f08a2(0x23d)])(_0x2d0057[_0x3f08a2(0x234)],{'children':[(0x0,_0x2d0057['jsx'])(_0x3f08a2(0x19c),{'className':_0x3f08a2(0x22a),'children':_0x3f08a2(0x1af)}),(0x0,_0x2d0057['jsx'])(_0x278a8a['Button'],{'variant':_0x3f08a2(0x17a),'onClick':()=>_0x41263f[_0x3f08a2(0x21c)](),'children':_0x3f08a2(0x25f)})]});}function _0xcddfac(){const _0x365a06=_0x321abe;return(0x0,_0x2d0057[_0x365a06(0x1e4)])(_0x2d0057[_0x365a06(0x234)],{'children':'You\x27are\x20offline.'});}let _0x4dfc7f=class extends _0x135454[_0x321abe(0x229)]{constructor(_0x3a3270,_0x4b29b0){const _0x4ceb70=_0x321abe;super(),this['_injector']=_0x3a3270,this[_0x4ceb70(0x1e0)]=_0x4b29b0,this[_0x4ceb70(0x20a)]();}[_0x321abe(0x20a)](){const _0xe472df=_0x321abe;this['disposeWithMe'](this[_0xe472df(0x1e0)][_0xe472df(0x248)](_0x519b13[_0xe472df(0x183)][_0xe472df(0x1b9)],()=>(0x0,_0x519b13['connectInjector'])(_0x2d75ec,this['_injector'])));}};_0x4dfc7f=_0x262a5a([_0x5b244f(0x0,(0x0,_0x135454['Inject'])(_0x135454['Injector'])),_0x5b244f(0x1,_0x519b13['IUIPartsService'])],_0x4dfc7f);let _0x1d2fb6=class extends _0x135454[_0x321abe(0x192)]{constructor(_0x14f2e9=_0x17dc8b,_0x14d362,_0x447382){const _0xf6ea33=_0x321abe;super(),this[_0xf6ea33(0x190)]=_0x14f2e9,this[_0xf6ea33(0x1e3)]=_0x14d362,this['_configService']=_0x447382;let {..._0x56da46}=(0x0,_0x135454[_0xf6ea33(0x17b)])({},_0x17dc8b,this[_0xf6ea33(0x190)]);this['_configService'][_0xf6ea33(0x239)](_0xf6ea33(0x1ca),_0x56da46);}[_0x321abe(0x1d5)](){const _0xc42f89=_0x321abe;(0x0,_0x135454[_0xc42f89(0x1d4)])(this[_0xc42f89(0x1e3)],(0x0,_0x135454[_0xc42f89(0x1d9)])([[_0x32815e],[_0x319e38],[_0x3dfe76],[_0x4dfc7f]],this['_config'][_0xc42f89(0x180)])),(0x0,_0x135454['touchDependencies'])(this[_0xc42f89(0x1e3)],[[_0x3dfe76]]);}[_0x321abe(0x224)](){const _0x191e6c=_0x321abe;(0x0,_0x135454[_0x191e6c(0x199)])(this[_0x191e6c(0x1e3)],[[_0x4dfc7f]]);}};_0x5e8633(_0x1d2fb6,_0x321abe(0x1b8),_0x135454[_0x321abe(0x262)][_0x321abe(0x25b)]),_0x5e8633(_0x1d2fb6,_0x321abe(0x1a3),_0x321abe(0x1fb)),_0x5e8633(_0x1d2fb6,_0x321abe(0x1b6),_0x44ee2d),_0x5e8633(_0x1d2fb6,_0x321abe(0x259),_0x5c93ef),_0x1d2fb6=_0x262a5a([(0x0,_0x135454[_0x321abe(0x1ae)])(_0x2c5db5[_0x321abe(0x1d2)]),_0x5b244f(0x1,(0x0,_0x135454[_0x321abe(0x238)])(_0x135454[_0x321abe(0x26b)])),_0x5b244f(0x2,_0x135454[_0x321abe(0x233)])],_0x1d2fb6),Object['defineProperty'](_0x22b40d,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x319e38;}}),_0x22b40d[_0x321abe(0x236)]=_0x5cfea9,Object['defineProperty'](_0x22b40d,_0x321abe(0x202),{'enumerable':!0x0,'get':function(){return _0x1d2fb6;}});}));function _0x543a(){const _0x3af179=['CollaborationSessionService','replace','PRESENTING','unitId','iterator','LIVESHARE_OPERATION','_uiPartsService','onCommandExecuted','constructor','_injector','jsx','unit','@univerjs/sheets','You\x27re\x20following\x20the\x20presenter','string','Module','@univerjs/ui','displayName','UniverUi','_stopFollowing','ONLINE','3197260cHMghw','_liveShareService','substring','_univerInstanceService','_startFollowing','init','presenter','SetZoomRatioOperation','http://www.w3.org/2000/svg','defIds','_status$','LIVESHARE_NEW_HOST','UNIVER_LIVE_SHARE_PLUGIN','then','_presenter','attrs','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','SAME_OPERATION_SHARE_INTERVAL','UNIVER_SHEET','UniverLiveSharePlugin','2022504wygZUa','@univerjs/sheets-ui','throttleTime','Button','registerSharedOperation','_configService','dispose','_mountLiveShare','toStringTag','stopFollowing','_entities','RxDisposable','getLiveShareCoordinator','_reporters','object','react','1215747zfYMmJ','reverse','offline','stringify','_handleNewHost','add','includes','react/jsx-runtime','send','stopPresenting','SessionStatus','asObservable','_startPresenting','_startLiveShareCoordinator','forEach','createElement','current','onRendered','Present\x20this\x20document','symbol','_unitID','registerInitialStateReporter','Disposable','univer-mb-3\x20univer-w-full\x20univer-text-sm','currentColor','live-share-icon','call','fill','740700plhqqe','_sharedOperations','SetScrollOperation','entries','IConfigService','Fragment','IDLE','LiveShareStatus','useEffect','Inject','setConfig','OFFLINE','toDisposable','has','jsxs','values','@univerjs-pro/collaboration','getInitialStates','getUnitId','6154818vtNefn','_init','complete','none','svg','@univerjs/core','registerComponent','LIVESHARE_FETCH_OPERATIONS','url(#$1','LiveShareIcon','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','mutations','function','_commandDisposable','params','useObservable','shouldShareOperation','status$','takeUntil','7cKRAtI','getTypeOfUnitAdded$','_collabSessionService','Stop\x20following','version','getStatus','UNIVER_UNKNOWN','evenodd','children','rxjs','Stop\x20presenting','@univerjs-pro/live-share','useRef','UniverInstanceType','UniverCore','getTypeOfUnitDisposed$','idSuffix','path','getMemberID','requireSession','_handleOperation','136168PcAInc','Injector','default','merge','IUniverInstanceService','exports','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','useState','override','prototype','_handleOnline','BuiltInUIPart','LIVESHARE_TERMINATE','following','idle','FOLLOWING','end','UniverSheetsUi','CollaborationEvent','Start\x20following','LIVESHARE_REQUEST_HOST','2346536PKAJQk','forwardRef','UniverProCollaborationClient','_config','sessionStatus$','Plugin','colorChannel1','rxjs/operators','presenting','You\x27re\x20not\x20following\x20the\x20presenter','React','NOT_FOLLOWING','touchDependencies','decorate','pipe','div','8oiUKoa','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs-pro/collaboration-client','_commandService','not-following','_handleTerminate','pluginName','delete','operators','mask','NEW_CHANGESETS','getConfig','1em','_stopPresenting','length','stroke','1.0.0-alpha.3','DependentOn','You\x27re\x20presenting\x20the\x20document','_status','random','createInstance','tag','SetWorksheetActiveOperation','clear','packageName','_collabSession','type','HEADER_MENU','_fetchOperations','_handleOffline','defineProperty','next','get','toString','dispose$','defs','executeCommand','data','_beIdle','InsertSheetMutation','clsx','univerjs-icon\x20univerjs-icon-','UniverProLiveShare','set','live-share.config','amd','startFollowing','CommandType','map','Subject','OPERATION','sheet','UniverCollaborationClientPlugin','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','registerDependencies','onStarting','text','subscribe','BehaviorSubject','mergeOverrideWithDependencies'];_0x543a=function(){return _0x3af179;};return _0x543a();}
1
+ function _0x251f(_0x103e44,_0x35f2bc){_0x103e44=_0x103e44-0xad;const _0x4bb79c=_0x4bb7();let _0x251f73=_0x4bb79c[_0x103e44];return _0x251f73;}(function(_0x18a29b,_0x2d7a14){const _0x5005c2=_0x251f,_0xc11726=_0x18a29b();while(!![]){try{const _0x5287e7=parseInt(_0x5005c2(0xb5))/0x1+parseInt(_0x5005c2(0xc9))/0x2*(-parseInt(_0x5005c2(0x152))/0x3)+parseInt(_0x5005c2(0xd2))/0x4+-parseInt(_0x5005c2(0x12b))/0x5+parseInt(_0x5005c2(0xf8))/0x6+-parseInt(_0x5005c2(0x180))/0x7*(-parseInt(_0x5005c2(0xe7))/0x8)+-parseInt(_0x5005c2(0x16c))/0x9;if(_0x5287e7===_0x2d7a14)break;else _0xc11726['push'](_0xc11726['shift']());}catch(_0x3cfa01){_0xc11726['push'](_0xc11726['shift']());}}}(_0x4bb7,0x43e65),function(_0x47a463,_0x4902ce){const _0x52b49b=_0x251f;typeof exports==_0x52b49b(0x166)&&typeof module<'u'?_0x4902ce(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime')):typeof define==_0x52b49b(0x12a)&&define[_0x52b49b(0x128)]?define([_0x52b49b(0xec),_0x52b49b(0xdb),_0x52b49b(0x13b),_0x52b49b(0x19a),_0x52b49b(0xb4),'rxjs',_0x52b49b(0x135),'@univerjs/sheets-ui',_0x52b49b(0x134),_0x52b49b(0x178),_0x52b49b(0xd0),'react/jsx-runtime'],_0x4902ce):(_0x47a463=typeof globalThis<'u'?globalThis:_0x47a463||self,_0x4902ce(_0x47a463[_0x52b49b(0x111)]={},_0x47a463[_0x52b49b(0x158)],_0x47a463['UniverProCollaborationClient'],_0x47a463[_0x52b49b(0x121)],_0x47a463['UniverSheets'],_0x47a463['rxjs'],_0x47a463['rxjs']['operators'],_0x47a463[_0x52b49b(0x197)],_0x47a463[_0x52b49b(0x169)],_0x47a463[_0x52b49b(0x19d)],_0x47a463[_0x52b49b(0x129)],_0x47a463[_0x52b49b(0x129)]));}(this,function(_0x1bc38c,_0x40f0b0,_0xa0d61e,_0x3d684b,_0x3663fc,_0x1348da,_0x2a7d2c,_0x3cd628,_0x305bcb,_0x50b419,_0x4a871b,_0x348bf8){const _0x3d538d=_0x251f;Object[_0x3d538d(0x170)](_0x1bc38c,Symbol[_0x3d538d(0xd7)],{'value':_0x3d538d(0x110)});function _0x2695a1(_0x6813b7){'@babel/helpers - typeof';const _0x129325=_0x3d538d;return _0x2695a1=typeof Symbol==_0x129325(0x12a)&&typeof Symbol['iterator']==_0x129325(0x188)?function(_0xfa7194){return typeof _0xfa7194;}:function(_0x5ae81d){const _0x19aec7=_0x129325;return _0x5ae81d&&typeof Symbol==_0x19aec7(0x12a)&&_0x5ae81d[_0x19aec7(0xeb)]===Symbol&&_0x5ae81d!==Symbol[_0x19aec7(0xcc)]?_0x19aec7(0x188):typeof _0x5ae81d;},_0x2695a1(_0x6813b7);}function _0x306940(_0x78ad6d,_0x314f76){const _0x4a90ae=_0x3d538d;if(_0x2695a1(_0x78ad6d)!=_0x4a90ae(0x166)||!_0x78ad6d)return _0x78ad6d;var _0x25b14b=_0x78ad6d[Symbol[_0x4a90ae(0xc2)]];if(_0x25b14b!==void 0x0){var _0x11f9d7=_0x25b14b['call'](_0x78ad6d,_0x314f76||'default');if(_0x2695a1(_0x11f9d7)!=_0x4a90ae(0x166))return _0x11f9d7;throw TypeError(_0x4a90ae(0x103));}return(_0x314f76===_0x4a90ae(0x13e)?String:Number)(_0x78ad6d);}function _0x10eedd(_0x2aab47){const _0x5afdd8=_0x3d538d;var _0x3906a0=_0x306940(_0x2aab47,_0x5afdd8(0x13e));return _0x2695a1(_0x3906a0)=='symbol'?_0x3906a0:_0x3906a0+'';}function _0x19674a(_0x130d03,_0x3889a2,_0x4e5d66){return(_0x3889a2=_0x10eedd(_0x3889a2))in _0x130d03?Object['defineProperty'](_0x130d03,_0x3889a2,{'value':_0x4e5d66,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x130d03[_0x3889a2]=_0x4e5d66,_0x130d03;}var _0x1f3f2f=class extends _0x3d684b['Disposable']{constructor(..._0x25daf3){super(..._0x25daf3),_0x19674a(this,'_sharedOperations',new Set()),_0x19674a(this,'_reporters',new Set());}[_0x3d538d(0x147)](_0x1d2ded){const _0x408a58=_0x3d538d;return this[_0x408a58(0x138)][_0x408a58(0x13d)](_0x1d2ded),(0x0,_0x3d684b[_0x408a58(0x15c)])(()=>this[_0x408a58(0x138)][_0x408a58(0x11d)](_0x1d2ded));}[_0x3d538d(0xdc)](_0x421821){const _0x22894a=_0x3d538d;return this[_0x22894a(0x15f)][_0x22894a(0x13d)](_0x421821),(0x0,_0x3d684b[_0x22894a(0x15c)])(()=>this[_0x22894a(0x15f)][_0x22894a(0x11d)](_0x421821));}['shouldShareOperation'](_0x3c54e7){const _0x168255=_0x3d538d;return this['_sharedOperations'][_0x168255(0x145)](_0x3c54e7);}[_0x3d538d(0x154)](_0x62ea76){const _0x1be684=_0x3d538d;return Array[_0x1be684(0xb8)](this[_0x1be684(0x15f)])[_0x1be684(0xd9)](_0x5494b9=>_0x5494b9(_0x62ea76));}};function _0x513c74(_0x34aac2,_0x23b632){return function(_0x23b64c,_0x171fab){_0x23b632(_0x23b64c,_0x171fab,_0x34aac2);};}function _0x3c6281(_0x2c750a,_0x5d7902,_0xabb86d,_0x251959){const _0x35f4f1=_0x3d538d;var _0x46323f=arguments[_0x35f4f1(0x164)],_0x1bb200=_0x46323f<0x3?_0x5d7902:_0x251959===null?_0x251959=Object[_0x35f4f1(0x195)](_0x5d7902,_0xabb86d):_0x251959,_0x3abf91;if(typeof Reflect==_0x35f4f1(0x166)&&typeof Reflect[_0x35f4f1(0x160)]=='function')_0x1bb200=Reflect[_0x35f4f1(0x160)](_0x2c750a,_0x5d7902,_0xabb86d,_0x251959);else{for(var _0x1c2943=_0x2c750a[_0x35f4f1(0x164)]-0x1;_0x1c2943>=0x0;_0x1c2943--)(_0x3abf91=_0x2c750a[_0x1c2943])&&(_0x1bb200=(_0x46323f<0x3?_0x3abf91(_0x1bb200):_0x46323f>0x3?_0x3abf91(_0x5d7902,_0xabb86d,_0x1bb200):_0x3abf91(_0x5d7902,_0xabb86d))||_0x1bb200);}return _0x46323f>0x3&&_0x1bb200&&Object['defineProperty'](_0x5d7902,_0xabb86d,_0x1bb200),_0x1bb200;}let _0x55e1b9=class extends _0x3d684b[_0x3d538d(0xd1)]{constructor(_0x43e62d,_0x3740ac,_0x4c1c1a){const _0x168c1c=_0x3d538d;super(),this[_0x168c1c(0xc7)]=_0x43e62d,this[_0x168c1c(0xe1)]=_0x3740ac,this[_0x168c1c(0x172)]=_0x4c1c1a,_0x19674a(this,_0x168c1c(0xb2),new Map()),this['_init']();}async['getLiveShareCoordinator'](_0x4c1045){const _0x4f286a=_0x3d538d;return this['_entities'][_0x4f286a(0x145)](_0x4c1045)||await this[_0x4f286a(0xe9)](_0x4c1045),this[_0x4f286a(0xb2)][_0x4f286a(0x125)](_0x4c1045);}[_0x3d538d(0xef)](_0x1b4a74){const _0xf9d407=_0x3d538d;var _0x5f0cec;return(_0x5f0cec=this[_0xf9d407(0xb2)][_0xf9d407(0x125)](_0x1b4a74))==null?null:_0x5f0cec;}[_0x3d538d(0xbd)](){const _0xf35724=_0x3d538d;this[_0xf35724(0xc7)][_0xf35724(0x12f)](_0x3d684b[_0xf35724(0xda)]['UNIVER_SHEET'])['pipe']((0x0,_0x2a7d2c[_0xf35724(0x167)])(this[_0xf35724(0x182)]))['subscribe'](async _0x2ec84d=>{const _0x1efdb8=_0xf35724;let _0x445bb4=_0x2ec84d[_0x1efdb8(0xdd)][_0x1efdb8(0xe8)]();this[_0x1efdb8(0xb2)][_0x1efdb8(0x145)](_0x445bb4)||this[_0x1efdb8(0xe9)](_0x445bb4);}),this[_0xf35724(0xc7)][_0xf35724(0x14c)](_0x3d684b['UniverInstanceType'][_0xf35724(0x116)])[_0xf35724(0xf0)]((0x0,_0x2a7d2c[_0xf35724(0x167)])(this['dispose$']))[_0xf35724(0xad)](_0x30a1a9=>{const _0xdd87d1=_0xf35724;let _0x52b64b=_0x30a1a9[_0xdd87d1(0xe8)](),_0x3a3d2d=this[_0xdd87d1(0xb2)]['get'](_0x52b64b);_0x3a3d2d==null||_0x3a3d2d[_0xdd87d1(0xf9)]();});}async[_0x3d538d(0xe9)](_0x4181a2){const _0x47467a=_0x3d538d;let _0x59ee35=await this[_0x47467a(0x172)][_0x47467a(0x17c)](_0x4181a2),_0x604081=this[_0x47467a(0xe1)][_0x47467a(0x11f)](_0x36ad0e,_0x4181a2,_0x59ee35);return _0x604081[_0x47467a(0xb0)](),this[_0x47467a(0xb2)][_0x47467a(0x136)](_0x4181a2,_0x604081),_0x604081;}};_0x55e1b9=_0x3c6281([_0x513c74(0x0,_0x3d684b[_0x3d538d(0xaf)]),_0x513c74(0x1,(0x0,_0x3d684b[_0x3d538d(0x150)])(_0x3d684b['Injector'])),_0x513c74(0x2,(0x0,_0x3d684b['Inject'])(_0xa0d61e[_0x3d538d(0xc4)]))],_0x55e1b9);let _0x37ee8a=function(_0x2ffa3b){const _0x1e27c9=_0x3d538d;return _0x2ffa3b[_0x1e27c9(0x119)]='offline',_0x2ffa3b[_0x1e27c9(0x16b)]=_0x1e27c9(0xc0),_0x2ffa3b['FOLLOWING']=_0x1e27c9(0xfe),_0x2ffa3b[_0x1e27c9(0x16a)]=_0x1e27c9(0x115),_0x2ffa3b[_0x1e27c9(0xb1)]='presenting',_0x2ffa3b;}({}),_0x36ad0e=class extends _0x3d684b['RxDisposable']{get['_status'](){const _0x12f3ca=_0x3d538d;return this['_status$'][_0x12f3ca(0xb7)]();}constructor(_0x3ab288,_0x490a74,_0x3cbbb9,_0x173ec8,_0x1f02cc){const _0x253614=_0x3d538d;super(),this['_unitID']=_0x3ab288,this['_collabSession']=_0x490a74,this['_configService']=_0x3cbbb9,this[_0x253614(0xc6)]=_0x173ec8,this['_commandService']=_0x1f02cc,_0x19674a(this,_0x253614(0xfd),new _0x1348da['BehaviorSubject']('idle')),_0x19674a(this,'status$',this[_0x253614(0xfd)][_0x253614(0x18b)]()),_0x19674a(this,_0x253614(0xbd),!0x1),_0x19674a(this,_0x253614(0xf6),null),_0x19674a(this,'_presenter',null);}[_0x3d538d(0xf9)](){const _0x55a556=_0x3d538d;var _0x1f653d;(_0x1f653d=this[_0x55a556(0xf6)])==null||_0x1f653d[_0x55a556(0xf9)](),this[_0x55a556(0xfd)]['next'](_0x55a556(0xc0)),this[_0x55a556(0xfd)][_0x55a556(0x139)]();}[_0x3d538d(0x198)](){const _0x14bab6=_0x3d538d;return this[_0x14bab6(0x175)];}[_0x3d538d(0xb0)](){const _0x2a53b0=_0x3d538d;this[_0x2a53b0(0xbd)]||(this[_0x2a53b0(0xbd)]=!0x0,this[_0x2a53b0(0x18e)][_0x2a53b0(0x108)][_0x2a53b0(0xf0)]((0x0,_0x2a7d2c['takeUntil'])(this[_0x2a53b0(0x182)]))[_0x2a53b0(0xad)](_0x261c09=>{const _0x154c16=_0x2a53b0;switch(_0x261c09){case _0xa0d61e['SessionStatus'][_0x154c16(0x119)]:this[_0x154c16(0x10f)]();break;case _0xa0d61e[_0x154c16(0x19c)]['ONLINE']:this[_0x154c16(0x11e)]();break;default:}}),this[_0x2a53b0(0x18e)]['event$']['pipe']((0x0,_0x2a7d2c[_0x2a53b0(0x167)])(this['dispose$']))['subscribe'](_0x3c5a8c=>{const _0x50b55c=_0x2a53b0;let {eventID:_0x5523ee}=_0x3c5a8c;switch(_0x5523ee){case _0x40f0b0['CollaborationEvent'][_0x50b55c(0xf2)]:this[_0x50b55c(0xba)](_0x3c5a8c);break;case _0x40f0b0[_0x50b55c(0xe2)][_0x50b55c(0x16d)]:this[_0x50b55c(0x17f)](_0x3c5a8c);break;case _0x40f0b0['CollaborationEvent'][_0x50b55c(0x184)]:this[_0x50b55c(0xcf)]();break;case _0x40f0b0[_0x50b55c(0xe2)][_0x50b55c(0xd3)]:this[_0x50b55c(0x15d)](_0x3c5a8c);break;default:}}));}['tryStartPresenting'](){const _0x4b1f76=_0x3d538d;this[_0x4b1f76(0x18e)][_0x4b1f76(0x155)]({'eventID':_0x40f0b0['CollaborationEvent'][_0x4b1f76(0x112)],'data':{'unitID':this[_0x4b1f76(0x196)],'userID':this['_collabSession']['getMemberID']()}},this[_0x4b1f76(0x196)]);}[_0x3d538d(0x187)](){const _0x303898=_0x3d538d;this['_status']===_0x303898(0xb9)&&(this[_0x303898(0xfd)][_0x303898(0x177)](_0x303898(0xc0)),this[_0x303898(0x18e)][_0x303898(0x155)]({'eventID':_0x40f0b0[_0x303898(0xe2)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x303898(0x196)]}},this[_0x303898(0x196)]));}[_0x3d538d(0x17a)](){const _0x344b21=_0x3d538d;this[_0x344b21(0x175)]===_0x344b21(0x115)&&(this['_status$'][_0x344b21(0x177)](_0x344b21(0xfe)),this[_0x344b21(0x148)]());}[_0x3d538d(0x15a)](){const _0x5023c9=_0x3d538d;this[_0x5023c9(0x175)]===_0x5023c9(0xfe)&&this['_stopFollowing']();}[_0x3d538d(0xba)](_0x401e15){const _0x3c9c35=_0x3d538d;let {presenter:_0x3ce67d}=_0x401e15['data'],_0x5b7ec2=this[_0x3c9c35(0x18e)][_0x3c9c35(0x11b)]();this['_presenter']=_0x3ce67d,_0x3ce67d===_0x5b7ec2?(this[_0x3c9c35(0x10c)](),this[_0x3c9c35(0xbb)]()):this[_0x3c9c35(0x175)]!==_0x3c9c35(0x115)&&(this['_stopPresenting'](),this[_0x3c9c35(0x148)]());}['_fetchOperations'](){const _0x12a9e5=_0x3d538d;let _0x25b9fc={'eventID':_0x40f0b0[_0x12a9e5(0xe2)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x12a9e5(0x18e)][_0x12a9e5(0x155)](_0x25b9fc,this[_0x12a9e5(0x196)]);}[_0x3d538d(0xcf)](){const _0xe05e=_0x3d538d;this[_0xe05e(0xfc)]=null,this[_0xe05e(0x175)]!==_0xe05e(0xb9)&&this['_beIdle']();}[_0x3d538d(0x15d)](_0x2ef192){const _0x5c974f=_0x3d538d;if(this[_0x5c974f(0x175)]==='following'&&this[_0x5c974f(0xfc)]===_0x2ef192[_0x5c974f(0x15b)][_0x5c974f(0xe3)]){let _0x541ddd=(0x0,_0x40f0b0[_0x5c974f(0x18f)])(_0x2ef192[_0x5c974f(0x15b)])[_0x5c974f(0x146)]['reverse']()[_0x5c974f(0x12d)](_0x9ed707=>_0x9ed707['id']===_0x3663fc['InsertSheetMutation']['id']);if(_0x541ddd){let _0x3176bc=_0x541ddd[_0x5c974f(0x122)][_0x5c974f(0x1a0)],_0x25882b=_0x541ddd[_0x5c974f(0x122)][_0x5c974f(0x144)]['id'];setTimeout(()=>{const _0x5a31c6=_0x5c974f;this[_0x5a31c6(0xe0)][_0x5a31c6(0xf3)](_0x3663fc[_0x5a31c6(0x18d)]['id'],{'unitId':_0x3176bc,'subUnitId':_0x25882b},{'fromCollab':!0x0});});}}}[_0x3d538d(0xbb)](){const _0x5e3610=_0x3d538d;var _0x2e2b00;(_0x2e2b00=this[_0x5e3610(0xf6)])==null||_0x2e2b00[_0x5e3610(0xf9)](),this['_status$'][_0x5e3610(0x177)](_0x5e3610(0xb9));let _0x59ff79=new Map(),_0x5aba87=this[_0x5e3610(0xf6)]=new _0x3d684b[(_0x5e3610(0x161))]();_0x5aba87[_0x5e3610(0x13d)]((0x0,_0x3d684b['toDisposable'])(()=>{const _0x33ae0e=_0x5e3610;_0x59ff79[_0x33ae0e(0xc8)](({subject:_0x1a12d8,subscription:_0xed2408})=>{_0xed2408['unsubscribe'](),_0x1a12d8['complete']();}),_0x59ff79[_0x33ae0e(0x15e)]();})),_0x5aba87[_0x5e3610(0x13d)](this['_commandService'][_0x5e3610(0x193)](_0x20c049=>{const _0x3d5df1=_0x5e3610;if(_0x20c049['type']!==_0x3d684b[_0x3d5df1(0x179)][_0x3d5df1(0x168)]||!this[_0x3d5df1(0xc6)][_0x3d5df1(0x199)](_0x20c049['id']))return;let {id:_0x1c6580}=_0x20c049,_0x2001c5;if(_0x59ff79['has'](_0x1c6580))_0x2001c5=_0x59ff79[_0x3d5df1(0x125)](_0x1c6580)['subject'];else{var _0xb796ba;_0x2001c5=new _0x1348da[(_0x3d5df1(0x157))]();let _0xf82b84=_0x2001c5[_0x3d5df1(0xf0)]((0x0,_0x2a7d2c[_0x3d5df1(0x140)])((_0xb796ba=this[_0x3d5df1(0x18a)][_0x3d5df1(0x194)](_0x3d5df1(0x16f)))==null?0xc8:_0xb796ba,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3d5df1(0xad)](_0xa6dd2a=>{const _0x558659=_0x3d5df1;this[_0x558659(0x18e)][_0x558659(0x155)]({'eventID':_0x40f0b0['CollaborationEvent'][_0x558659(0x16d)],'data':{'unitID':this[_0x558659(0x196)],'operations':{[_0xa6dd2a['id']]:{'id':_0xa6dd2a['id'],'params':JSON['stringify'](_0xa6dd2a[_0x558659(0x122)])}}}},this['_unitID']);});_0x59ff79[_0x3d5df1(0x136)](_0x1c6580,{'subject':_0x2001c5,'subscription':_0xf82b84});}_0x2001c5[_0x3d5df1(0x177)](_0x20c049);})),this[_0x5e3610(0xc6)][_0x5e3610(0x154)](this[_0x5e3610(0x196)])[_0x5e3610(0xc8)](_0x29bf06=>this[_0x5e3610(0x18e)]['send']({'eventID':_0x40f0b0[_0x5e3610(0xe2)][_0x5e3610(0x16d)],'data':{'unitID':this[_0x5e3610(0x196)],'operations':{[_0x29bf06['id']]:{'id':_0x29bf06['id'],'params':JSON[_0x5e3610(0x13a)](_0x29bf06[_0x5e3610(0x122)])}}}},this[_0x5e3610(0x196)]));}[_0x3d538d(0x105)](){const _0x48df35=_0x3d538d;var _0x1637ff;this[_0x48df35(0xfd)][_0x48df35(0x177)](_0x48df35(0xc0)),(_0x1637ff=this['_commandDisposable'])==null||_0x1637ff['dispose'](),this[_0x48df35(0xf6)]=null;}[_0x3d538d(0x148)](){const _0x58fdc7=_0x3d538d;var _0x242fc5;(_0x242fc5=this['_commandDisposable'])==null||_0x242fc5[_0x58fdc7(0xf9)](),this[_0x58fdc7(0xfd)][_0x58fdc7(0x177)](_0x58fdc7(0xfe));}[_0x3d538d(0xe6)](){const _0x422fba=_0x3d538d;var _0x32c334;this['_status$'][_0x422fba(0x177)](_0x422fba(0xc0)),(_0x32c334=this[_0x422fba(0xf6)])==null||_0x32c334[_0x422fba(0xf9)](),this['_commandDisposable']=null;}[_0x3d538d(0x10c)](){const _0x4d650e=_0x3d538d;var _0x1bfda4;this['_status$']['next']('not-following'),(_0x1bfda4=this[_0x4d650e(0xf6)])==null||_0x1bfda4[_0x4d650e(0xf9)]();}[_0x3d538d(0x17f)](_0x2721df){const _0xf5fe18=_0x3d538d;if([_0xf5fe18(0xb9),_0xf5fe18(0x115),_0xf5fe18(0x102)]['includes'](this[_0xf5fe18(0x175)])||!_0x2721df[_0xf5fe18(0x15b)][_0xf5fe18(0x173)]||_0x2721df[_0xf5fe18(0x15b)][_0xf5fe18(0x173)]===this[_0xf5fe18(0x18e)]['getMemberID']())return;this[_0xf5fe18(0x175)]===_0xf5fe18(0xc0)&&this[_0xf5fe18(0x148)]();let _0xf9c1a3=_0x2721df[_0xf5fe18(0x15b)][_0xf5fe18(0x114)];Object[_0xf5fe18(0xae)](_0xf9c1a3)['forEach'](_0xaba3b=>{const _0x218397=_0xf5fe18;this[_0x218397(0xe0)]['executeCommand'](_0xaba3b['id'],_0xaba3b['params']?JSON['parse'](_0xaba3b[_0x218397(0x122)]):null,{'fromCollab':!0x0});});}[_0x3d538d(0x10f)](){const _0x30e862=_0x3d538d;var _0x296166;this[_0x30e862(0xfd)][_0x30e862(0x177)](_0x30e862(0x102)),(_0x296166=this['_commandDisposable'])==null||_0x296166['dispose']();}[_0x3d538d(0x11e)](){const _0x2e9336=_0x3d538d;this[_0x2e9336(0xfd)][_0x2e9336(0x177)](_0x2e9336(0xc0)),this[_0x2e9336(0x13c)]();}};_0x36ad0e=_0x3c6281([_0x513c74(0x2,_0x3d684b[_0x3d538d(0xbc)]),_0x513c74(0x3,(0x0,_0x3d684b['Inject'])(_0x1f3f2f)),_0x513c74(0x4,_0x3d684b['ICommandService'])],_0x36ad0e);var _0x4f6b81=_0x3d538d(0x106),_0x2ce946=_0x3d538d(0xc5);let _0x186880={},_0x372d8e=class extends _0x3d684b[_0x3d538d(0x16e)]{constructor(_0x315039){const _0x589476=_0x3d538d;super(),this[_0x589476(0xc6)]=_0x315039,this[_0x589476(0xbd)]();}[_0x3d538d(0xbd)](){const _0x3cffc6=_0x3d538d;[_0x3cd628[_0x3cffc6(0x192)]['id'],_0x3cd628[_0x3cffc6(0xfa)]['id'],_0x3663fc[_0x3cffc6(0x18d)]['id']][_0x3cffc6(0xc8)](_0x1c45fa=>{const _0x14ec03=_0x3cffc6;this[_0x14ec03(0x10b)](this[_0x14ec03(0xc6)][_0x14ec03(0x147)](_0x1c45fa));});}};_0x372d8e=_0x3c6281([_0x513c74(0x0,(0x0,_0x3d684b[_0x3d538d(0x150)])(_0x1f3f2f))],_0x372d8e);function _0x107567({ref:_0x4c6a2f,..._0x509ad3}){const _0xf9c7d2=_0x3d538d;let {icon:_0x433d11,id:_0x23a230,className:_0x22254c,extend:_0x35ed82,..._0x292d74}=_0x509ad3,_0x2ed815=('univerjs-icon\x20univerjs-icon-'+_0x23a230+'\x20'+(_0x22254c||''))[_0xf9c7d2(0xe4)](),_0x8844a2=(0x0,_0x4a871b[_0xf9c7d2(0x156)])('_'+_0x1eb182());return _0x1d7952(_0x433d11,''+_0x23a230,{'defIds':_0x433d11['defIds'],'idSuffix':_0x8844a2[_0xf9c7d2(0x14d)]},{'ref':_0x4c6a2f,'className':_0x2ed815,..._0x292d74},_0x35ed82);}function _0x1d7952(_0x5c62ab,_0x132b91,_0x375a64,_0x1bc662,_0x55ce18){const _0xa66a53=_0x3d538d;return(0x0,_0x4a871b['createElement'])(_0x5c62ab[_0xa66a53(0xfb)],{'key':_0x132b91,..._0x37adf2(_0x5c62ab,_0x375a64,_0x55ce18),..._0x1bc662},(_0x153234(_0x5c62ab,_0x375a64)[_0xa66a53(0x162)]||[])['map']((_0x560f0c,_0x427b9b)=>_0x1d7952(_0x560f0c,_0x132b91+'-'+_0x5c62ab[_0xa66a53(0xfb)]+'-'+_0x427b9b,_0x375a64,void 0x0,_0x55ce18)));}function _0x37adf2(_0x572bb6,_0x5e75d4,_0x231a07){const _0x29224e=_0x3d538d;let _0x5c13b7={..._0x572bb6['attrs']};_0x231a07!=null&&_0x231a07[_0x29224e(0xed)]&&_0x5c13b7[_0x29224e(0x19f)]===_0x29224e(0xed)&&(_0x5c13b7['fill']=_0x231a07[_0x29224e(0xed)]),_0x231a07!=null&&_0x231a07['colorChannel1']&&_0x5c13b7[_0x29224e(0x189)]==='colorChannel1'&&(_0x5c13b7[_0x29224e(0x189)]=_0x231a07['colorChannel1']),_0x572bb6[_0x29224e(0xfb)]===_0x29224e(0x10d)&&_0x5c13b7['id']&&(_0x5c13b7['id']+=_0x5e75d4[_0x29224e(0x153)]),Object[_0x29224e(0xbf)](_0x5c13b7)[_0x29224e(0xc8)](([_0x5d6fa5,_0x58120d])=>{const _0x59d68a=_0x29224e;_0x5d6fa5===_0x59d68a(0x10d)&&typeof _0x58120d==_0x59d68a(0x13e)&&(_0x5c13b7[_0x5d6fa5]=_0x58120d[_0x59d68a(0x18c)](/url\(#(.*)\)/,_0x59d68a(0xff)+_0x5e75d4[_0x59d68a(0x153)]+')'));});let {defIds:_0x55c7d3}=_0x5e75d4;return!_0x55c7d3||_0x55c7d3[_0x29224e(0x164)]===0x0?_0x5c13b7:(_0x572bb6[_0x29224e(0xfb)]===_0x29224e(0xd8)&&_0x5c13b7[_0x29224e(0x14f)]&&(_0x5c13b7[_0x29224e(0x14f)]+=_0x5e75d4[_0x29224e(0x153)]),Object[_0x29224e(0xbf)](_0x5c13b7)[_0x29224e(0xc8)](([_0x273d88,_0x91ea57])=>{const _0x38f0c1=_0x29224e;typeof _0x91ea57==_0x38f0c1(0x13e)&&(_0x5c13b7[_0x273d88]=_0x91ea57['replace'](/url\(#(.*)\)/,'url(#$1'+_0x5e75d4[_0x38f0c1(0x153)]+')'));}),_0x5c13b7);}function _0x153234(_0x159f2c,_0x26475e){const _0x19f299=_0x3d538d;var _0x595394;let {defIds:_0xa001c9}=_0x26475e;return!_0xa001c9||_0xa001c9[_0x19f299(0x164)]===0x0?_0x159f2c:_0x159f2c[_0x19f299(0xfb)]===_0x19f299(0x183)&&(_0x595394=_0x159f2c[_0x19f299(0x162)])!=null&&_0x595394[_0x19f299(0x164)]?{..._0x159f2c,'children':_0x159f2c[_0x19f299(0x162)][_0x19f299(0xd9)](_0x10b1f2=>typeof _0x10b1f2[_0x19f299(0x14e)]['id']==_0x19f299(0x13e)&&_0xa001c9&&_0xa001c9[_0x19f299(0xd5)](_0x10b1f2['attrs']['id'])?{..._0x10b1f2,'attrs':{..._0x10b1f2[_0x19f299(0x14e)],'id':_0x10b1f2[_0x19f299(0x14e)]['id']+_0x26475e['idSuffix']}}:_0x10b1f2)}:_0x159f2c;}function _0x1eb182(){const _0x2a3bd9=_0x3d538d;return Math[_0x2a3bd9(0x181)]()[_0x2a3bd9(0x14b)](0x24)[_0x2a3bd9(0x14a)](0x2,0x8);}_0x107567[_0x3d538d(0xe5)]='UniverIcon';let _0x1f2d2b={'tag':'svg','attrs':{'xmlns':_0x3d538d(0x17b),'fill':_0x3d538d(0x191),'viewBox':_0x3d538d(0x142),'width':_0x3d538d(0x176),'height':'1em'},'children':[{'tag':_0x3d538d(0x130),'attrs':{'fill':_0x3d538d(0x1a1),'d':_0x3d538d(0x185)}},{'tag':_0x3d538d(0x130),'attrs':{'fill':_0x3d538d(0x1a1),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x3d538d(0x101),'clipRule':'evenodd'}}]},_0x240f2e=(0x0,_0x4a871b[_0x3d538d(0xf5)])(function(_0x204703,_0x572c3e){const _0x1de236=_0x3d538d;return(0x0,_0x4a871b[_0x1de236(0x113)])(_0x107567,Object[_0x1de236(0x117)]({},_0x204703,{'id':_0x1de236(0x143),'ref':_0x572c3e,'icon':_0x1f2d2b}));});_0x240f2e[_0x3d538d(0xe5)]=_0x3d538d(0xf4);function _0x17b45e(){const _0x5f23b1=_0x3d538d;let _0x138aee=(0x0,_0x305bcb[_0x5f23b1(0x151)])(_0x55e1b9),_0x2403bf=(0x0,_0x305bcb[_0x5f23b1(0x151)])(_0x3d684b[_0x5f23b1(0xaf)]),_0x4919ed=(0x0,_0x305bcb[_0x5f23b1(0xde)])(()=>_0x2403bf[_0x5f23b1(0xcd)](_0x3d684b[_0x5f23b1(0xda)][_0x5f23b1(0x116)]),void 0x0,!0x1,[]),_0xc28255=(0x0,_0x305bcb['useObservable'])((0x0,_0x4a871b['useMemo'])(()=>_0x4919ed?(0x0,_0x1348da[_0x5f23b1(0x141)])(()=>(0x0,_0x1348da[_0x5f23b1(0xb8)])(_0x138aee[_0x5f23b1(0x171)](_0x4919ed['getUnitId']()))):(0x0,_0x1348da['of'])(null),[_0x4919ed,_0x138aee]),null),_0x5bf995=(0x0,_0x305bcb[_0x5f23b1(0xde)])(_0xc28255?()=>_0xc28255['status$']:null,_0x5f23b1(0xc0),!0x1,[_0xc28255]);return _0xc28255?(0x0,_0x348bf8[_0x5f23b1(0x17e)])(_0x50b419[_0x5f23b1(0x10e)],{'align':_0x5f23b1(0x104),'disabled':_0x5bf995===_0x5f23b1(0x102),'className':_0x5f23b1(0xb6),'overlay':(0x0,_0x348bf8[_0x5f23b1(0x17e)])(_0x58e3ff,{'status':_0x5bf995,'coordinator':_0xc28255}),'children':(0x0,_0x348bf8[_0x5f23b1(0x17e)])(_0x5f23b1(0xee),{'className':(0x0,_0x50b419[_0x5f23b1(0xf1)])(_0x5f23b1(0xd6),{'univer-cursor-not-allowed':_0x5bf995==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5bf995!==_0x5f23b1(0x102)}),'type':_0x5f23b1(0xee),'children':(0x0,_0x348bf8[_0x5f23b1(0x17e)])(_0x240f2e,{})})}):null;}function _0x58e3ff(_0x36dd2e){const _0x483829=_0x3d538d;let {status:_0x3b6ccb,coordinator:_0x1ccd8f}=_0x36dd2e;switch(_0x3b6ccb){case _0x483829(0xc0):return(0x0,_0x348bf8['jsx'])(_0x59e488,{'coordinator':_0x1ccd8f});case _0x483829(0xfe):return(0x0,_0x348bf8[_0x483829(0x17e)])(_0x232e3f,{'coordinator':_0x1ccd8f});case'not-following':return(0x0,_0x348bf8[_0x483829(0x17e)])(_0x256fa5,{'coordinator':_0x1ccd8f});case'offline':return(0x0,_0x348bf8[_0x483829(0x17e)])(_0x17c928,{});case _0x483829(0xb9):return(0x0,_0x348bf8[_0x483829(0x17e)])(_0x200e9,{'coordinator':_0x1ccd8f});default:return null;}}function _0x59e488(_0x12fc23){const _0x5f34ae=_0x3d538d;let {coordinator:_0x410a34}=_0x12fc23;return(0x0,_0x348bf8[_0x5f34ae(0x13f)])(_0x348bf8[_0x5f34ae(0x163)],{'children':[(0x0,_0x348bf8[_0x5f34ae(0x17e)])(_0x5f34ae(0x131),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5f34ae(0xdf)}),(0x0,_0x348bf8['jsx'])(_0x50b419['Button'],{'onClick':()=>_0x410a34[_0x5f34ae(0xd4)](),'children':_0x5f34ae(0x137)})]});}function _0x232e3f(_0x3e31e9){const _0x4da9a8=_0x3d538d;let {coordinator:_0x392f8f}=_0x3e31e9;return(0x0,_0x348bf8[_0x4da9a8(0x13f)])(_0x348bf8[_0x4da9a8(0x163)],{'children':[(0x0,_0x348bf8[_0x4da9a8(0x17e)])('div',{'className':_0x4da9a8(0x190),'children':_0x4da9a8(0x17d)}),(0x0,_0x348bf8[_0x4da9a8(0x17e)])(_0x50b419[_0x4da9a8(0x124)],{'onClick':()=>_0x392f8f[_0x4da9a8(0x15a)](),'children':_0x4da9a8(0x149)})]});}function _0x256fa5(_0x53f95d){const _0x295642=_0x3d538d;let {coordinator:_0x5aeeab}=_0x53f95d;return(0x0,_0x348bf8[_0x295642(0x13f)])(_0x348bf8[_0x295642(0x163)],{'children':[(0x0,_0x348bf8[_0x295642(0x17e)])(_0x295642(0x131),{'className':_0x295642(0x190),'children':_0x295642(0x11c)}),(0x0,_0x348bf8[_0x295642(0x17e)])(_0x50b419[_0x295642(0x124)],{'variant':_0x295642(0xf7),'onClick':()=>_0x5aeeab['startFollowing'](),'children':_0x295642(0x127)})]});}function _0x200e9(_0x17df15){const _0x13abea=_0x3d538d;let {coordinator:_0x394e1f}=_0x17df15;return(0x0,_0x348bf8[_0x13abea(0x13f)])(_0x348bf8['Fragment'],{'children':[(0x0,_0x348bf8[_0x13abea(0x17e)])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x13abea(0xc1)}),(0x0,_0x348bf8[_0x13abea(0x17e)])(_0x50b419[_0x13abea(0x124)],{'variant':_0x13abea(0x109),'onClick':()=>_0x394e1f['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x17c928(){const _0x182864=_0x3d538d;return(0x0,_0x348bf8['jsx'])(_0x348bf8[_0x182864(0x163)],{'children':_0x182864(0x133)});}let _0x46b47e=class extends _0x3d684b[_0x3d538d(0x16e)]{constructor(_0x24b419,_0x4ad46a){const _0x45059f=_0x3d538d;super(),this[_0x45059f(0xe1)]=_0x24b419,this[_0x45059f(0x118)]=_0x4ad46a,this[_0x45059f(0x126)]();}[_0x3d538d(0x126)](){const _0x8224d5=_0x3d538d;this[_0x8224d5(0x10b)](this[_0x8224d5(0x118)][_0x8224d5(0x174)](_0x305bcb[_0x8224d5(0xc3)][_0x8224d5(0x12e)],()=>(0x0,_0x305bcb[_0x8224d5(0xbe)])(_0x17b45e,this['_injector'])));}};_0x46b47e=_0x3c6281([_0x513c74(0x0,(0x0,_0x3d684b[_0x3d538d(0x150)])(_0x3d684b[_0x3d538d(0x12c)])),_0x513c74(0x1,_0x305bcb[_0x3d538d(0xea)])],_0x46b47e);let _0x491278=class extends _0x3d684b[_0x3d538d(0x120)]{constructor(_0x56be59=_0x186880,_0x13d410,_0x4ed3d9){const _0x423f25=_0x3d538d;super(),this[_0x423f25(0x11a)]=_0x56be59,this[_0x423f25(0xe1)]=_0x13d410,this[_0x423f25(0x18a)]=_0x4ed3d9;let {..._0x3720c0}=(0x0,_0x3d684b[_0x423f25(0x132)])({},_0x186880,this[_0x423f25(0x11a)]);this[_0x423f25(0x18a)]['setConfig'](_0x423f25(0x19e),_0x3720c0);}[_0x3d538d(0x19b)](){const _0x31b0bf=_0x3d538d;(0x0,_0x3d684b['registerDependencies'])(this[_0x31b0bf(0xe1)],(0x0,_0x3d684b['mergeOverrideWithDependencies'])([[_0x1f3f2f],[_0x55e1b9],[_0x372d8e],[_0x46b47e]],this[_0x31b0bf(0x11a)][_0x31b0bf(0x123)])),(0x0,_0x3d684b[_0x31b0bf(0x100)])(this[_0x31b0bf(0xe1)],[[_0x372d8e]]);}['onRendered'](){(0x0,_0x3d684b['touchDependencies'])(this['_injector'],[[_0x46b47e]]);}};_0x19674a(_0x491278,_0x3d538d(0x159),_0x3d684b[_0x3d538d(0xda)][_0x3d538d(0x107)]),_0x19674a(_0x491278,_0x3d538d(0xca),_0x3d538d(0x165)),_0x19674a(_0x491278,_0x3d538d(0xce),_0x4f6b81),_0x19674a(_0x491278,_0x3d538d(0x186),_0x2ce946),_0x491278=_0x3c6281([(0x0,_0x3d684b[_0x3d538d(0x10a)])(_0xa0d61e[_0x3d538d(0xb3)]),_0x513c74(0x1,(0x0,_0x3d684b[_0x3d538d(0x150)])(_0x3d684b[_0x3d538d(0x12c)])),_0x513c74(0x2,_0x3d684b[_0x3d538d(0xbc)])],_0x491278),Object[_0x3d538d(0x170)](_0x1bc38c,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x55e1b9;}}),_0x1bc38c['LiveShareStatus']=_0x37ee8a,Object[_0x3d538d(0x170)](_0x1bc38c,_0x3d538d(0xcb),{'enumerable':!0x0,'get':function(){return _0x491278;}});}));function _0x4bb7(){const _0x40c6aa=['_startPresenting','IConfigService','_init','connectInjector','entries','idle','You\x27re\x20presenting\x20the\x20document','toPrimitive','BuiltInUIPart','CollaborationSessionService','1.0.0-alpha.4','_liveShareService','_univerInstanceService','forEach','4MQhgRJ','pluginName','UniverLiveSharePlugin','prototype','getCurrentTypeOfUnit$','packageName','_handleTerminate','react','RxDisposable','1112640WCuaIR','NEW_CHANGESETS','tryStartPresenting','includes','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','toStringTag','use','map','UniverInstanceType','@univerjs-pro/collaboration','registerInitialStateReporter','unit','useObservable','Present\x20this\x20document','_commandService','_injector','CollaborationEvent','memberID','trim','displayName','_beIdle','4391128hHjciw','getUnitId','_startLiveShareCoordinator','IUIPartsService','constructor','exports','colorChannel1','button','getLiveShareCoordinatorSync','pipe','clsx','LIVESHARE_NEW_HOST','executeCommand','LiveShareIcon','forwardRef','_commandDisposable','text','954450DsvNxN','dispose','SetScrollOperation','tag','_presenter','_status$','following','url(#$1','touchDependencies','evenodd','offline','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','end','_stopPresenting','@univerjs-pro/live-share','UNIVER_UNKNOWN','sessionStatus$','default','DependentOn','disposeWithMe','_stopFollowing','mask','Dropdown','_handleOffline','Module','UniverProLiveShare','LIVESHARE_REQUEST_HOST','createElement','operations','not-following','UNIVER_SHEET','assign','_uiPartsService','OFFLINE','_config','getMemberID','You\x27re\x20not\x20following\x20the\x20presenter','delete','_handleOnline','createInstance','Plugin','UniverCore','params','override','Button','get','_mountLiveShare','Start\x20following','amd','React','function','1170840jhaZoI','Injector','find','HEADER_MENU','getTypeOfUnitAdded$','path','div','merge','You\x27are\x20offline.','@univerjs/ui','rxjs/operators','set','Start','_sharedOperations','complete','stringify','@univerjs-pro/collaboration-client','_fetchOperations','add','string','jsxs','throttleTime','defer','0\x200\x2017\x2017','live-share-icon','sheet','has','mutations','registerSharedOperation','_startFollowing','Stop\x20following','substring','toString','getTypeOfUnitDisposed$','current','attrs','xlink:href','Inject','useDependency','110076CBLLCf','idSuffix','getInitialStates','send','useRef','Subject','UniverProCollaboration','type','stopFollowing','data','toDisposable','_handleNewChangeSets','clear','_reporters','decorate','DisposableCollection','children','Fragment','length','UNIVER_LIVE_SHARE_PLUGIN','object','takeUntil','OPERATION','UniverUi','NOT_FOLLOWING','IDLE','6931062MQoDLK','LIVESHARE_OPERATION','Disposable','SAME_OPERATION_SHARE_INTERVAL','defineProperty','getLiveShareCoordinator','_collabSessionService','presenter','registerComponent','_status','1em','next','@univerjs/design','CommandType','startFollowing','http://www.w3.org/2000/svg','requireSession','You\x27re\x20following\x20the\x20presenter','jsx','_handleOperation','7FneSSy','random','dispose$','defs','LIVESHARE_TERMINATE','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','version','stopPresenting','symbol','stroke','_configService','asObservable','replace','SetWorksheetActiveOperation','_collabSession','parseProtocolChangeset','univer-mb-3\x20univer-w-full\x20univer-text-sm','none','SetZoomRatioOperation','onCommandExecuted','getConfig','getOwnPropertyDescriptor','_unitID','UniverSheetsUi','getStatus','shouldShareOperation','@univerjs/core','onStarting','SessionStatus','UniverDesign','live-share.config','fill','unitId','currentColor','subscribe','values','IUniverInstanceService','init','PRESENTING','_entities','UniverCollaborationClientPlugin','@univerjs/sheets','369661guMYZU','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','getValue','from','presenting','_handleNewHost'];_0x4bb7=function(){return _0x40c6aa;};return _0x4bb7();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "1.0.0-alpha.3",
3
+ "version": "1.0.0-alpha.4",
4
4
  "private": false,
5
5
  "description": "Live share collaboration plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -62,24 +62,24 @@
62
62
  "rxjs": ">=7.0.0"
63
63
  },
64
64
  "dependencies": {
65
- "@univerjs/icons": "1.20.0",
66
- "@univerjs-pro/collaboration": "1.0.0-alpha.3",
67
- "@univerjs-pro/collaboration-client": "1.0.0-alpha.3",
68
- "@univerjs/core": "1.0.0-alpha.3",
69
- "@univerjs/design": "1.0.0-alpha.3",
70
- "@univerjs/sheets": "1.0.0-alpha.3",
71
- "@univerjs/sheets-ui": "1.0.0-alpha.3",
72
- "@univerjs/ui": "1.0.0-alpha.3"
65
+ "@univerjs/icons": "1.29.0",
66
+ "@univerjs-pro/collaboration": "1.0.0-alpha.4",
67
+ "@univerjs-pro/collaboration-client": "1.0.0-alpha.4",
68
+ "@univerjs/core": "1.0.0-alpha.4",
69
+ "@univerjs/design": "1.0.0-alpha.4",
70
+ "@univerjs/sheets-ui": "1.0.0-alpha.4",
71
+ "@univerjs/sheets": "1.0.0-alpha.4",
72
+ "@univerjs/ui": "1.0.0-alpha.4"
73
73
  },
74
74
  "devDependencies": {
75
- "postcss": "^8.5.16",
75
+ "postcss": "^8.5.19",
76
76
  "react": "18.3.1",
77
77
  "rxjs": "7.8.2",
78
78
  "tailwindcss": "3.4.17",
79
79
  "typescript": "^6.0.3",
80
80
  "vitest": "^4.1.10",
81
- "@univerjs-infra/shared": "1.0.0-alpha.3",
82
- "@univerjs/protocol": "1.0.0-alpha.3"
81
+ "@univerjs-infra/shared": "1.0.0-alpha.4",
82
+ "@univerjs/protocol": "1.0.0-alpha.4"
83
83
  },
84
84
  "scripts": {
85
85
  "test": "vitest run",