@univerjs-pro/live-share 1.0.0-alpha.3 → 1.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +12 -12
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x13f2b3=_0x24e6;(function(_0x5706f9,_0x28506f){const _0x249439=_0x24e6,_0x33fecc=_0x5706f9();while(!![]){try{const _0x541d3c=parseInt(_0x249439(0x211))/0x1*(-parseInt(_0x249439(0x1f9))/0x2)+parseInt(_0x249439(0x1fc))/0x3+-parseInt(_0x249439(0x203))/0x4*(parseInt(_0x249439(0x20c))/0x5)+parseInt(_0x249439(0x213))/0x6*(-parseInt(_0x249439(0x1ec))/0x7)+parseInt(_0x249439(0x205))/0x8*(-parseInt(_0x249439(0x206))/0x9)+parseInt(_0x249439(0x207))/0xa*(parseInt(_0x249439(0x1f5))/0xb)+parseInt(_0x249439(0x1f8))/0xc;if(_0x541d3c===_0x28506f)break;else _0x33fecc['push'](_0x33fecc['shift']());}catch(_0x1f7c37){_0x33fecc['push'](_0x33fecc['shift']());}}}(_0x43a1,0x3e3c7));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0xa7d12f){'@babel/helpers - typeof';const _0x111e09=_0x24e6;return r=typeof Symbol==_0x111e09(0x208)&&typeof Symbol[_0x111e09(0x20a)]=='symbol'?function(_0xecd60b){return typeof _0xecd60b;}:function(_0x465235){const _0x921c1f=_0x111e09;return _0x465235&&typeof Symbol==_0x921c1f(0x208)&&_0x465235[_0x921c1f(0x210)]===Symbol&&_0x465235!==Symbol['prototype']?'symbol':typeof _0x465235;},r(_0xa7d12f);}function _0x24e6(_0x973139,_0x53b4b2){_0x973139=_0x973139-0x1e7;const _0x43a132=_0x43a1();let _0x24e620=_0x43a132[_0x973139];return _0x24e620;}function i(_0x30e8ca,_0x4c9a4d){const _0x35f509=_0x24e6;if(r(_0x30e8ca)!=_0x35f509(0x1f0)||!_0x30e8ca)return _0x30e8ca;var _0x7abe0e=_0x30e8ca[Symbol['toPrimitive']];if(_0x7abe0e!==void 0x0){var _0x2f898a=_0x7abe0e[_0x35f509(0x1ee)](_0x30e8ca,_0x4c9a4d||_0x35f509(0x1f6));if(r(_0x2f898a)!=_0x35f509(0x1f0))return _0x2f898a;throw TypeError(_0x35f509(0x20d));}return(_0x4c9a4d===_0x35f509(0x1fd)?String:Number)(_0x30e8ca);}function a(_0x2df8b5){const _0x2c6726=_0x24e6;var _0x15cd7a=i(_0x2df8b5,_0x2c6726(0x1fd));return r(_0x15cd7a)==_0x2c6726(0x1ed)?_0x15cd7a:_0x15cd7a+'';}function o(_0x57f003,_0x2f509a,_0x2b73e5){return(_0x2f509a=a(_0x2f509a))in _0x57f003?Object['defineProperty'](_0x57f003,_0x2f509a,{'value':_0x2b73e5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57f003[_0x2f509a]=_0x2b73e5,_0x57f003;}var s=class extends n['FUniver']{constructor(..._0x4e9359){const _0x557b98=_0x24e6;super(..._0x4e9359),o(this,_0x557b98(0x204),void 0x0);}['_initialize'](_0x123768){const _0xa831d0=_0x24e6;this[_0xa831d0(0x204)]=_0x123768['get'](e['LiveShareController']);}[_0x13f2b3(0x1e8)](){const _0x3efc7b=_0x13f2b3;var _0x284f40;let _0x14803d=this['_injector'][_0x3efc7b(0x1ea)](t[_0x3efc7b(0x212)])['getCurrentUnitOfType'](t[_0x3efc7b(0x1fa)][_0x3efc7b(0x1fe)]);if(!_0x14803d)throw Error(_0x3efc7b(0x1ef));let _0x45ed15=_0x14803d['getUnitId'](),_0x35ac15=this[_0x3efc7b(0x204)][_0x3efc7b(0x1f7)](_0x45ed15);return(_0x284f40=_0x35ac15==null?void 0x0:_0x35ac15[_0x3efc7b(0x1fb)]())==null?e[_0x3efc7b(0x202)][_0x3efc7b(0x1f4)]:_0x284f40;}['startFollowing'](){const _0x3a1d22=_0x13f2b3;let _0x10f2b9=this[_0x3a1d22(0x1f2)][_0x3a1d22(0x1ea)](t[_0x3a1d22(0x212)])[_0x3a1d22(0x1f3)](t[_0x3a1d22(0x1fa)][_0x3a1d22(0x1fe)]);if(!_0x10f2b9)throw Error(_0x3a1d22(0x1ef));let _0x28b822=_0x10f2b9[_0x3a1d22(0x1eb)](),_0x45d857=this[_0x3a1d22(0x204)][_0x3a1d22(0x1f7)](_0x28b822);if(!_0x45d857)throw Error(_0x3a1d22(0x209));_0x45d857[_0x3a1d22(0x20f)]();}[_0x13f2b3(0x1e7)](){const _0xd58782=_0x13f2b3;let _0x31a85c=this[_0xd58782(0x1f2)][_0xd58782(0x1ea)](t[_0xd58782(0x212)])[_0xd58782(0x1f3)](t[_0xd58782(0x1fa)]['UNIVER_SHEET']);if(!_0x31a85c)throw Error('No\x20active\x20workbook\x20found.');let _0x5165a1=_0x31a85c['getUnitId'](),_0x6f1312=this[_0xd58782(0x204)][_0xd58782(0x1f7)](_0x5165a1);if(!_0x6f1312)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x6f1312[_0xd58782(0x1e7)]();}[_0x13f2b3(0x20b)](){const _0x21fecf=_0x13f2b3;let _0x52d4f2=this[_0x21fecf(0x1f2)][_0x21fecf(0x1ea)](t['IUniverInstanceService'])[_0x21fecf(0x1f3)](t[_0x21fecf(0x1fa)]['UNIVER_SHEET']);if(!_0x52d4f2)throw Error(_0x21fecf(0x1ef));let _0x2ff4f8=_0x52d4f2['getUnitId'](),_0x2563af=this['_liveShareController'][_0x21fecf(0x1f7)](_0x2ff4f8);if(!_0x2563af)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2563af[_0x21fecf(0x1e9)]();}[_0x13f2b3(0x20e)](){const _0x5a36e7=_0x13f2b3;let _0xb5209a=this[_0x5a36e7(0x1f2)][_0x5a36e7(0x1ea)](t[_0x5a36e7(0x212)])[_0x5a36e7(0x1f3)](t['UniverInstanceType'][_0x5a36e7(0x1fe)]);if(!_0xb5209a)throw Error(_0x5a36e7(0x1ef));let _0x3b76e7=_0xb5209a['getUnitId'](),_0x3437aa=this[_0x5a36e7(0x204)][_0x5a36e7(0x1f7)](_0x3b76e7);if(!_0x3437aa)throw Error(_0x5a36e7(0x209));_0x3437aa[_0x5a36e7(0x20e)]();}};n[_0x13f2b3(0x200)]['extend'](s);var c=class extends n[_0x13f2b3(0x1ff)]{get[_0x13f2b3(0x201)](){const _0x3dab1b=_0x13f2b3;return e[_0x3dab1b(0x202)];}};function _0x43a1(){const _0x58b21c=['IUniverInstanceService','870474sgHMBo','stopFollowing','getLiveShareStatus','tryStartPresenting','get','getUnitId','21vjEtxh','symbol','call','No\x20active\x20workbook\x20found.','object','extend','_injector','getCurrentUnitOfType','IDLE','1378993OMSwoz','default','getLiveShareCoordinatorSync','14775240ZxYZYH','11742uygTYW','UniverInstanceType','getStatus','852009IPIyDM','string','UNIVER_SHEET','FEnum','FUniver','LiveShareStatusEnum','LiveShareStatus','615184aukIgR','_liveShareController','72680RhUHne','153UoEAPg','10bMSmoa','function','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','iterator','startPresenting','15CfWfNI','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','stopPresenting','startFollowing','constructor','57rwOnOt'];_0x43a1=function(){return _0x58b21c;};return _0x43a1();}n[_0x13f2b3(0x1ff)][_0x13f2b3(0x1f1)](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
|
+
const _0x2825e9=_0xf098;function _0xf098(_0x9da494,_0x4fccef){_0x9da494=_0x9da494-0xdf;const _0x319e44=_0x319e();let _0xf0980d=_0x319e44[_0x9da494];return _0xf0980d;}(function(_0x4bb116,_0x11428d){const _0x4b68c0=_0xf098,_0x3f1ef1=_0x4bb116();while(!![]){try{const _0x45757e=-parseInt(_0x4b68c0(0x176))/0x1+-parseInt(_0x4b68c0(0x18c))/0x2+parseInt(_0x4b68c0(0x150))/0x3*(-parseInt(_0x4b68c0(0x184))/0x4)+parseInt(_0x4b68c0(0x151))/0x5+parseInt(_0x4b68c0(0x11e))/0x6*(-parseInt(_0x4b68c0(0x16c))/0x7)+parseInt(_0x4b68c0(0x12f))/0x8+-parseInt(_0x4b68c0(0x111))/0x9*(-parseInt(_0x4b68c0(0x190))/0xa);if(_0x45757e===_0x11428d)break;else _0x3f1ef1['push'](_0x3f1ef1['shift']());}catch(_0x12935d){_0x3f1ef1['push'](_0x3f1ef1['shift']());}}}(_0x319e,0x85c3a),Object['defineProperty'](exports,Symbol[_0x2825e9(0x12c)],{'value':_0x2825e9(0x15b)}));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(_0x37b688){'@babel/helpers - typeof';const _0x24145a=_0x2825e9;return f=typeof Symbol==_0x24145a(0x14f)&&typeof Symbol[_0x24145a(0xed)]==_0x24145a(0x12e)?function(_0x391f28){return typeof _0x391f28;}:function(_0x74530){const _0x2fd7a5=_0x24145a;return _0x74530&&typeof Symbol==_0x2fd7a5(0x14f)&&_0x74530[_0x2fd7a5(0xe9)]===Symbol&&_0x74530!==Symbol[_0x2fd7a5(0x16e)]?_0x2fd7a5(0x12e):typeof _0x74530;},f(_0x37b688);}function p(_0x4f21f7,_0x173224){const _0x4ad4a4=_0x2825e9;if(f(_0x4f21f7)!=_0x4ad4a4(0x16d)||!_0x4f21f7)return _0x4f21f7;var _0xda159=_0x4f21f7[Symbol['toPrimitive']];if(_0xda159!==void 0x0){var _0x1c94f6=_0xda159[_0x4ad4a4(0x12a)](_0x4f21f7,_0x173224||_0x4ad4a4(0x14d));if(f(_0x1c94f6)!=_0x4ad4a4(0x16d))return _0x1c94f6;throw TypeError(_0x4ad4a4(0x171));}return(_0x173224===_0x4ad4a4(0x116)?String:Number)(_0x4f21f7);}function m(_0x28aa3c){const _0x1e5785=_0x2825e9;var _0x1d3471=p(_0x28aa3c,_0x1e5785(0x116));return f(_0x1d3471)==_0x1e5785(0x12e)?_0x1d3471:_0x1d3471+'';}function h(_0x1f23b4,_0xec2e9c,_0x2977d9){const _0x105ebc=_0x2825e9;return(_0xec2e9c=m(_0xec2e9c))in _0x1f23b4?Object[_0x105ebc(0x10c)](_0x1f23b4,_0xec2e9c,{'value':_0x2977d9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1f23b4[_0xec2e9c]=_0x2977d9,_0x1f23b4;}var g=class extends n[_0x2825e9(0xef)]{constructor(..._0x2c5a30){const _0x4aca12=_0x2825e9;super(..._0x2c5a30),h(this,_0x4aca12(0x185),new Set()),h(this,_0x4aca12(0x11c),new Set());}[_0x2825e9(0x15a)](_0x214a97){const _0x12aa98=_0x2825e9;return this[_0x12aa98(0x185)][_0x12aa98(0x115)](_0x214a97),(0x0,n[_0x12aa98(0x17d)])(()=>this[_0x12aa98(0x185)][_0x12aa98(0xeb)](_0x214a97));}['registerInitialStateReporter'](_0x3acb78){const _0x4729c3=_0x2825e9;return this[_0x4729c3(0x11c)]['add'](_0x3acb78),(0x0,n[_0x4729c3(0x17d)])(()=>this[_0x4729c3(0x11c)][_0x4729c3(0xeb)](_0x3acb78));}[_0x2825e9(0xdf)](_0x3df642){const _0x21f683=_0x2825e9;return this[_0x21f683(0x185)][_0x21f683(0x131)](_0x3df642);}[_0x2825e9(0x14e)](_0x32f75b){const _0x11ac68=_0x2825e9;return Array['from'](this[_0x11ac68(0x11c)])[_0x11ac68(0x14b)](_0x164a53=>_0x164a53(_0x32f75b));}};function _(_0x282d0c,_0x3e9dfb){return function(_0x323262,_0x4bb800){_0x3e9dfb(_0x323262,_0x4bb800,_0x282d0c);};}function _0x319e(){const _0x22b0b6=['BehaviorSubject','startFollowing','1.0.0-alpha.5','pipe','Plugin','unit','sheet','63sSuJFX','object','prototype','type','_startFollowing','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','button','DisposableCollection','_injector','not-following','858534uuHfmU','OFFLINE','requireSession','LiveShareStatus','subscribe','find','_init','toDisposable','takeUntil','LIVESHARE_REQUEST_HOST','_uiPartsService','onStarting','Inject','get','3956ROkfRk','_sharedOperations','_collabSession','DependentOn','_commandDisposable','jsxs','values','disposeWithMe','852036wFMmrT','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20presenting\x20the\x20document','registerDependencies','210roptBi','OPERATION','ICommandService','data','useObservable','You\x27are\x20offline.','jsx','params','idle','useDependency','shouldShareOperation','parse','_handleOnline','_commandService','HEADER_MENU','_handleOperation','status$','memberID','touchDependencies','sessionStatus$','constructor','LIVESHARE_OPERATION','delete','UNIVER_SHEET','iterator','length','Disposable','createInstance','_configService','Injector','RxDisposable','_stopPresenting','dispose$','complete','getStatus','version','executeCommand','ONLINE','div','_unitID','CollaborationEvent','_collabSessionService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_config','_handleTerminate','@univerjs-pro/live-share','LiveShareIcon','pluginName','_handleOffline','offline','presenting','SetWorksheetActiveOperation','_stopFollowing','_presenter','PRESENTING','defineProperty','Stop\x20presenting','live-share.config','stopPresenting','init','1077309NoShIz','_univerInstanceService','Present\x20this\x20document','UniverInstanceType','add','string','forEach','_handleNewChangeSets','getMemberID','FOLLOWING','_liveShareService','_reporters','event$','612054WMLkuK','dispose','UniverCollaborationClientPlugin','includes','following','decorate','BuiltInUIPart','_startLiveShareCoordinator','packageName','Button','_beIdle','next','call','CollaborationSessionService','toStringTag','clsx','symbol','3847864kvpPdF','SessionStatus','has','UNIVER_LIVE_SHARE_PLUGIN','getTypeOfUnitDisposed$','clear','You\x27re\x20following\x20the\x20presenter','useMemo','_status$','NEW_CHANGESETS','IUniverInstanceService','IUIPartsService','stringify','set','end','_status','Fragment','_fetchOperations','_mountLiveShare','CommandType','UNIVER_UNKNOWN','LIVESHARE_TERMINATE','operations','presenter','subject','IDLE','onCommandExecuted','_entities','map','_handleNewHost','default','getInitialStates','function','3126WjwXsW','3931825SOJnhP','IConfigService','getValue','stopFollowing','send','getLiveShareCoordinator','Dropdown','NOT_FOLLOWING','getOwnPropertyDescriptor','registerSharedOperation','Module','onRendered','merge','Start\x20following','mutations','connectInjector','unsubscribe','getUnitId','tryStartPresenting','_startPresenting'];_0x319e=function(){return _0x22b0b6;};return _0x319e();}function v(_0x5de43f,_0x3ad22f,_0x2cb56e,_0x1751a8){const _0xaf168c=_0x2825e9;var _0xb47f45=arguments[_0xaf168c(0xee)],_0x2eb8b6=_0xb47f45<0x3?_0x3ad22f:_0x1751a8===null?_0x1751a8=Object[_0xaf168c(0x159)](_0x3ad22f,_0x2cb56e):_0x1751a8,_0x3b5b5b;if(typeof Reflect==_0xaf168c(0x16d)&&typeof Reflect['decorate']==_0xaf168c(0x14f))_0x2eb8b6=Reflect[_0xaf168c(0x123)](_0x5de43f,_0x3ad22f,_0x2cb56e,_0x1751a8);else{for(var _0x243b3a=_0x5de43f[_0xaf168c(0xee)]-0x1;_0x243b3a>=0x0;_0x243b3a--)(_0x3b5b5b=_0x5de43f[_0x243b3a])&&(_0x2eb8b6=(_0xb47f45<0x3?_0x3b5b5b(_0x2eb8b6):_0xb47f45>0x3?_0x3b5b5b(_0x3ad22f,_0x2cb56e,_0x2eb8b6):_0x3b5b5b(_0x3ad22f,_0x2cb56e))||_0x2eb8b6);}return _0xb47f45>0x3&&_0x2eb8b6&&Object[_0xaf168c(0x10c)](_0x3ad22f,_0x2cb56e,_0x2eb8b6),_0x2eb8b6;}let y=class extends n[_0x2825e9(0xf3)]{constructor(_0x2c0717,_0x129a69,_0x4475cf){const _0x49f164=_0x2825e9;super(),this[_0x49f164(0x112)]=_0x2c0717,this[_0x49f164(0x174)]=_0x129a69,this[_0x49f164(0xfe)]=_0x4475cf,h(this,'_entities',new Map()),this[_0x49f164(0x17c)]();}async[_0x2825e9(0x156)](_0x1f9b87){const _0x160cd6=_0x2825e9;return this[_0x160cd6(0x14a)][_0x160cd6(0x131)](_0x1f9b87)||await this['_startLiveShareCoordinator'](_0x1f9b87),this[_0x160cd6(0x14a)][_0x160cd6(0x183)](_0x1f9b87);}['getLiveShareCoordinatorSync'](_0x299876){var _0xb01fa2;return(_0xb01fa2=this['_entities']['get'](_0x299876))==null?null:_0xb01fa2;}['_init'](){const _0x3d3a6f=_0x2825e9;this[_0x3d3a6f(0x112)]['getTypeOfUnitAdded$'](n[_0x3d3a6f(0x114)][_0x3d3a6f(0xec)])[_0x3d3a6f(0x168)]((0x0,a[_0x3d3a6f(0x17e)])(this['dispose$']))[_0x3d3a6f(0x17a)](async _0x554d41=>{const _0x21782e=_0x3d3a6f;let _0x4896f7=_0x554d41[_0x21782e(0x16a)]['getUnitId']();this[_0x21782e(0x14a)][_0x21782e(0x131)](_0x4896f7)||this[_0x21782e(0x125)](_0x4896f7);}),this[_0x3d3a6f(0x112)][_0x3d3a6f(0x133)](n[_0x3d3a6f(0x114)]['UNIVER_SHEET'])[_0x3d3a6f(0x168)]((0x0,a[_0x3d3a6f(0x17e)])(this[_0x3d3a6f(0xf5)]))[_0x3d3a6f(0x17a)](_0x12f03d=>{const _0x3a3b3d=_0x3d3a6f;let _0x23d023=_0x12f03d[_0x3a3b3d(0x162)](),_0x696c61=this[_0x3a3b3d(0x14a)][_0x3a3b3d(0x183)](_0x23d023);_0x696c61==null||_0x696c61[_0x3a3b3d(0x11f)]();});}async[_0x2825e9(0x125)](_0x153773){const _0x72ca54=_0x2825e9;let _0x71cd41=await this[_0x72ca54(0xfe)][_0x72ca54(0x178)](_0x153773),_0x3c416d=this[_0x72ca54(0x174)][_0x72ca54(0xf0)](x,_0x153773,_0x71cd41);return _0x3c416d[_0x72ca54(0x110)](),this['_entities'][_0x72ca54(0x13c)](_0x153773,_0x3c416d),_0x3c416d;}};y=v([_(0x0,n[_0x2825e9(0x139)]),_(0x1,(0x0,n[_0x2825e9(0x182)])(n[_0x2825e9(0xf2)])),_(0x2,(0x0,n[_0x2825e9(0x182)])(t[_0x2825e9(0x12b)]))],y);let b=function(_0x5e4ecd){const _0x318722=_0x2825e9;return _0x5e4ecd[_0x318722(0x177)]=_0x318722(0x106),_0x5e4ecd[_0x318722(0x148)]=_0x318722(0x198),_0x5e4ecd[_0x318722(0x11a)]=_0x318722(0x122),_0x5e4ecd[_0x318722(0x158)]='not-following',_0x5e4ecd[_0x318722(0x10b)]='presenting',_0x5e4ecd;}({}),x=class extends n[_0x2825e9(0xf3)]{get['_status'](){const _0x3e5428=_0x2825e9;return this[_0x3e5428(0x137)][_0x3e5428(0x153)]();}constructor(_0x273a92,_0x10be03,_0x14300f,_0x419cf0,_0x9dcbc){const _0x2c25d4=_0x2825e9;super(),this[_0x2c25d4(0xfc)]=_0x273a92,this[_0x2c25d4(0x186)]=_0x10be03,this[_0x2c25d4(0xf1)]=_0x14300f,this['_liveShareService']=_0x419cf0,this[_0x2c25d4(0xe2)]=_0x9dcbc,h(this,'_status$',new i[(_0x2c25d4(0x165))](_0x2c25d4(0x198))),h(this,'status$',this[_0x2c25d4(0x137)]['asObservable']()),h(this,'_init',!0x1),h(this,_0x2c25d4(0x188),null),h(this,_0x2c25d4(0x10a),null);}[_0x2825e9(0x11f)](){const _0x108486=_0x2825e9;var _0x7158c1;(_0x7158c1=this[_0x108486(0x188)])==null||_0x7158c1[_0x108486(0x11f)](),this[_0x108486(0x137)][_0x108486(0x129)](_0x108486(0x198)),this[_0x108486(0x137)][_0x108486(0xf6)]();}[_0x2825e9(0xf7)](){const _0x56637b=_0x2825e9;return this[_0x56637b(0x13e)];}[_0x2825e9(0x110)](){const _0x11ae66=_0x2825e9;this[_0x11ae66(0x17c)]||(this[_0x11ae66(0x17c)]=!0x0,this['_collabSession'][_0x11ae66(0xe8)][_0x11ae66(0x168)]((0x0,a[_0x11ae66(0x17e)])(this[_0x11ae66(0xf5)]))['subscribe'](_0x9b4f90=>{const _0x3d535d=_0x11ae66;switch(_0x9b4f90){case t['SessionStatus'][_0x3d535d(0x177)]:this[_0x3d535d(0x105)]();break;case t[_0x3d535d(0x130)][_0x3d535d(0xfa)]:this['_handleOnline']();break;default:}}),this['_collabSession'][_0x11ae66(0x11d)][_0x11ae66(0x168)]((0x0,a[_0x11ae66(0x17e)])(this[_0x11ae66(0xf5)]))[_0x11ae66(0x17a)](_0x564124=>{const _0x40020b=_0x11ae66;let {eventID:_0xff0528}=_0x564124;switch(_0xff0528){case e[_0x40020b(0xfd)]['LIVESHARE_NEW_HOST']:this[_0x40020b(0x14c)](_0x564124);break;case e[_0x40020b(0xfd)][_0x40020b(0xea)]:this['_handleOperation'](_0x564124);break;case e[_0x40020b(0xfd)][_0x40020b(0x144)]:this[_0x40020b(0x101)]();break;case e[_0x40020b(0xfd)][_0x40020b(0x138)]:this[_0x40020b(0x118)](_0x564124);break;default:}}));}['tryStartPresenting'](){const _0x4aca24=_0x2825e9;this[_0x4aca24(0x186)][_0x4aca24(0x155)]({'eventID':e['CollaborationEvent'][_0x4aca24(0x17f)],'data':{'unitID':this['_unitID'],'userID':this[_0x4aca24(0x186)]['getMemberID']()}},this[_0x4aca24(0xfc)]);}[_0x2825e9(0x10f)](){const _0x4e3d2a=_0x2825e9;this['_status']===_0x4e3d2a(0x107)&&(this[_0x4e3d2a(0x137)][_0x4e3d2a(0x129)](_0x4e3d2a(0x198)),this[_0x4e3d2a(0x186)]['send']({'eventID':e[_0x4e3d2a(0xfd)][_0x4e3d2a(0x144)],'data':{'unitID':this['_unitID']}},this[_0x4e3d2a(0xfc)]));}[_0x2825e9(0x166)](){const _0x2d7ad2=_0x2825e9;this[_0x2d7ad2(0x13e)]==='not-following'&&(this[_0x2d7ad2(0x137)]['next'](_0x2d7ad2(0x122)),this[_0x2d7ad2(0x170)]());}[_0x2825e9(0x154)](){const _0x26b7fd=_0x2825e9;this[_0x26b7fd(0x13e)]===_0x26b7fd(0x122)&&this[_0x26b7fd(0x109)]();}[_0x2825e9(0x14c)](_0xb98a43){const _0x1be40f=_0x2825e9;let {presenter:_0x4463d5}=_0xb98a43[_0x1be40f(0x193)],_0x2aee4f=this['_collabSession'][_0x1be40f(0x119)]();this[_0x1be40f(0x10a)]=_0x4463d5,_0x4463d5===_0x2aee4f?(this[_0x1be40f(0x109)](),this[_0x1be40f(0x164)]()):this[_0x1be40f(0x13e)]!=='not-following'&&(this[_0x1be40f(0xf4)](),this['_startFollowing']());}[_0x2825e9(0x140)](){const _0x29114f=_0x2825e9;let _0xda91cf={'eventID':e[_0x29114f(0xfd)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x29114f(0x155)](_0xda91cf,this[_0x29114f(0xfc)]);}[_0x2825e9(0x101)](){const _0x3925b9=_0x2825e9;this[_0x3925b9(0x10a)]=null,this['_status']!=='presenting'&&this[_0x3925b9(0x128)]();}[_0x2825e9(0x118)](_0xdb2990){const _0x3c23e0=_0x2825e9;if(this[_0x3c23e0(0x13e)]===_0x3c23e0(0x122)&&this[_0x3c23e0(0x10a)]===_0xdb2990['data'][_0x3c23e0(0xe6)]){let _0x2942e5=(0x0,e['parseProtocolChangeset'])(_0xdb2990[_0x3c23e0(0x193)])[_0x3c23e0(0x15f)]['reverse']()[_0x3c23e0(0x17b)](_0xc020ac=>_0xc020ac['id']===r['InsertSheetMutation']['id']);if(_0x2942e5){let _0x4e96b5=_0x2942e5['params']['unitId'],_0x71b972=_0x2942e5[_0x3c23e0(0x197)][_0x3c23e0(0x16b)]['id'];setTimeout(()=>{const _0x393807=_0x3c23e0;this[_0x393807(0xe2)][_0x393807(0xf9)](r[_0x393807(0x108)]['id'],{'unitId':_0x4e96b5,'subUnitId':_0x71b972},{'fromCollab':!0x0});});}}}[_0x2825e9(0x164)](){const _0x37890a=_0x2825e9;var _0x43266c;(_0x43266c=this[_0x37890a(0x188)])==null||_0x43266c['dispose'](),this[_0x37890a(0x137)][_0x37890a(0x129)]('presenting');let _0x12c53c=new Map(),_0x4926da=this['_commandDisposable']=new n[(_0x37890a(0x173))]();_0x4926da[_0x37890a(0x115)]((0x0,n[_0x37890a(0x17d)])(()=>{const _0xa6a061=_0x37890a;_0x12c53c[_0xa6a061(0x117)](({subject:_0x4718d5,subscription:_0x4d22f8})=>{const _0x36abe9=_0xa6a061;_0x4d22f8[_0x36abe9(0x161)](),_0x4718d5[_0x36abe9(0xf6)]();}),_0x12c53c[_0xa6a061(0x134)]();})),_0x4926da[_0x37890a(0x115)](this[_0x37890a(0xe2)][_0x37890a(0x149)](_0x276845=>{const _0x13232f=_0x37890a;if(_0x276845[_0x13232f(0x16f)]!==n[_0x13232f(0x142)][_0x13232f(0x191)]||!this[_0x13232f(0x11b)][_0x13232f(0xdf)](_0x276845['id']))return;let {id:_0x1da102}=_0x276845,_0xfa8073;if(_0x12c53c[_0x13232f(0x131)](_0x1da102))_0xfa8073=_0x12c53c[_0x13232f(0x183)](_0x1da102)[_0x13232f(0x147)];else{var _0x5acbe4;_0xfa8073=new i['Subject']();let _0x1285cf=_0xfa8073['pipe']((0x0,a['throttleTime'])((_0x5acbe4=this[_0x13232f(0xf1)]['getConfig']('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x5acbe4,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x13232f(0x17a)](_0x460aad=>{const _0x4a7f8b=_0x13232f;this[_0x4a7f8b(0x186)]['send']({'eventID':e[_0x4a7f8b(0xfd)][_0x4a7f8b(0xea)],'data':{'unitID':this[_0x4a7f8b(0xfc)],'operations':{[_0x460aad['id']]:{'id':_0x460aad['id'],'params':JSON[_0x4a7f8b(0x13b)](_0x460aad[_0x4a7f8b(0x197)])}}}},this[_0x4a7f8b(0xfc)]);});_0x12c53c[_0x13232f(0x13c)](_0x1da102,{'subject':_0xfa8073,'subscription':_0x1285cf});}_0xfa8073[_0x13232f(0x129)](_0x276845);})),this['_liveShareService'][_0x37890a(0x14e)](this['_unitID'])['forEach'](_0x49b858=>this[_0x37890a(0x186)]['send']({'eventID':e[_0x37890a(0xfd)][_0x37890a(0xea)],'data':{'unitID':this[_0x37890a(0xfc)],'operations':{[_0x49b858['id']]:{'id':_0x49b858['id'],'params':JSON[_0x37890a(0x13b)](_0x49b858[_0x37890a(0x197)])}}}},this[_0x37890a(0xfc)]));}[_0x2825e9(0xf4)](){const _0x42a078=_0x2825e9;var _0x4c7627;this[_0x42a078(0x137)][_0x42a078(0x129)]('idle'),(_0x4c7627=this[_0x42a078(0x188)])==null||_0x4c7627[_0x42a078(0x11f)](),this[_0x42a078(0x188)]=null;}[_0x2825e9(0x170)](){const _0x4ae248=_0x2825e9;var _0x4f7d6d;(_0x4f7d6d=this['_commandDisposable'])==null||_0x4f7d6d[_0x4ae248(0x11f)](),this[_0x4ae248(0x137)][_0x4ae248(0x129)](_0x4ae248(0x122));}[_0x2825e9(0x128)](){const _0x1d1b13=_0x2825e9;var _0x4ce207;this['_status$']['next'](_0x1d1b13(0x198)),(_0x4ce207=this[_0x1d1b13(0x188)])==null||_0x4ce207[_0x1d1b13(0x11f)](),this[_0x1d1b13(0x188)]=null;}[_0x2825e9(0x109)](){const _0x53a0d3=_0x2825e9;var _0x5b7720;this[_0x53a0d3(0x137)]['next'](_0x53a0d3(0x175)),(_0x5b7720=this[_0x53a0d3(0x188)])==null||_0x5b7720['dispose']();}[_0x2825e9(0xe4)](_0x1be4b2){const _0x88897e=_0x2825e9;if(['presenting',_0x88897e(0x175),_0x88897e(0x106)][_0x88897e(0x121)](this[_0x88897e(0x13e)])||!_0x1be4b2[_0x88897e(0x193)][_0x88897e(0x146)]||_0x1be4b2[_0x88897e(0x193)][_0x88897e(0x146)]===this[_0x88897e(0x186)][_0x88897e(0x119)]())return;this[_0x88897e(0x13e)]===_0x88897e(0x198)&&this[_0x88897e(0x170)]();let _0x2ae2cf=_0x1be4b2[_0x88897e(0x193)][_0x88897e(0x145)];Object[_0x88897e(0x18a)](_0x2ae2cf)[_0x88897e(0x117)](_0x1b1b4c=>{const _0x1a1d32=_0x88897e;this[_0x1a1d32(0xe2)][_0x1a1d32(0xf9)](_0x1b1b4c['id'],_0x1b1b4c['params']?JSON[_0x1a1d32(0xe0)](_0x1b1b4c[_0x1a1d32(0x197)]):null,{'fromCollab':!0x0});});}[_0x2825e9(0x105)](){const _0x491f64=_0x2825e9;var _0x3f3b2d;this[_0x491f64(0x137)][_0x491f64(0x129)](_0x491f64(0x106)),(_0x3f3b2d=this[_0x491f64(0x188)])==null||_0x3f3b2d[_0x491f64(0x11f)]();}[_0x2825e9(0xe1)](){const _0x196374=_0x2825e9;this[_0x196374(0x137)][_0x196374(0x129)](_0x196374(0x198)),this[_0x196374(0x140)]();}};x=v([_(0x2,n[_0x2825e9(0x152)]),_(0x3,(0x0,n[_0x2825e9(0x182)])(g)),_(0x4,n[_0x2825e9(0x192)])],x);var S=_0x2825e9(0x102),C=_0x2825e9(0x167);const w={};let T=class extends n[_0x2825e9(0xef)]{constructor(_0x3738d8){const _0xe1c34f=_0x2825e9;super(),this[_0xe1c34f(0x11b)]=_0x3738d8,this[_0xe1c34f(0x17c)]();}[_0x2825e9(0x17c)](){const _0x34dc73=_0x2825e9;[o['SetZoomRatioOperation']['id'],o['SetScrollOperation']['id'],r[_0x34dc73(0x108)]['id']][_0x34dc73(0x117)](_0x46e8f2=>{const _0xb1e865=_0x34dc73;this[_0xb1e865(0x18b)](this[_0xb1e865(0x11b)][_0xb1e865(0x15a)](_0x46e8f2));});}};T=v([_(0x0,(0x0,n[_0x2825e9(0x182)])(g))],T);function E(){const _0x1b86d3=_0x2825e9;let _0x2eebf1=(0x0,s[_0x1b86d3(0x199)])(y),_0x3823e7=(0x0,s[_0x1b86d3(0x199)])(n[_0x1b86d3(0x139)]),_0x433854=(0x0,s[_0x1b86d3(0x194)])(()=>_0x3823e7['getCurrentTypeOfUnit$'](n[_0x1b86d3(0x114)][_0x1b86d3(0xec)]),void 0x0,!0x1,[]),_0x116e7e=(0x0,s[_0x1b86d3(0x194)])((0x0,u[_0x1b86d3(0x136)])(()=>_0x433854?(0x0,i['defer'])(()=>(0x0,i['from'])(_0x2eebf1['getLiveShareCoordinator'](_0x433854[_0x1b86d3(0x162)]()))):(0x0,i['of'])(null),[_0x433854,_0x2eebf1]),null),_0x189f0d=(0x0,s[_0x1b86d3(0x194)])(_0x116e7e?()=>_0x116e7e[_0x1b86d3(0xe5)]:null,_0x1b86d3(0x198),!0x1,[_0x116e7e]);return _0x116e7e?(0x0,d[_0x1b86d3(0x196)])(c[_0x1b86d3(0x157)],{'align':_0x1b86d3(0x13d),'disabled':_0x189f0d==='offline','className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':(0x0,d[_0x1b86d3(0x196)])(D,{'status':_0x189f0d,'coordinator':_0x116e7e}),'children':(0x0,d[_0x1b86d3(0x196)])(_0x1b86d3(0x172),{'className':(0x0,c[_0x1b86d3(0x12d)])(_0x1b86d3(0xff),{'univer-cursor-not-allowed':_0x189f0d===_0x1b86d3(0x106),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x189f0d!==_0x1b86d3(0x106)}),'type':_0x1b86d3(0x172),'children':(0x0,d[_0x1b86d3(0x196)])(l[_0x1b86d3(0x103)],{})})}):null;}function D(_0x3b5b16){const _0x11f136=_0x2825e9;let {status:_0x5d3d46,coordinator:_0x1547af}=_0x3b5b16;switch(_0x5d3d46){case'idle':return(0x0,d['jsx'])(O,{'coordinator':_0x1547af});case'following':return(0x0,d[_0x11f136(0x196)])(k,{'coordinator':_0x1547af});case'not-following':return(0x0,d[_0x11f136(0x196)])(A,{'coordinator':_0x1547af});case _0x11f136(0x106):return(0x0,d['jsx'])(M,{});case _0x11f136(0x107):return(0x0,d[_0x11f136(0x196)])(j,{'coordinator':_0x1547af});default:return null;}}function O(_0x2c4c05){const _0x35dd39=_0x2825e9;let {coordinator:_0x1249e5}=_0x2c4c05;return(0x0,d['jsxs'])(d['Fragment'],{'children':[(0x0,d[_0x35dd39(0x196)])(_0x35dd39(0xfb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x35dd39(0x113)}),(0x0,d[_0x35dd39(0x196)])(c[_0x35dd39(0x127)],{'onClick':()=>_0x1249e5[_0x35dd39(0x163)](),'children':'Start'})]});}function k(_0x4d1318){const _0x4acd3c=_0x2825e9;let {coordinator:_0x275de1}=_0x4d1318;return(0x0,d[_0x4acd3c(0x189)])(d[_0x4acd3c(0x13f)],{'children':[(0x0,d[_0x4acd3c(0x196)])('div',{'className':_0x4acd3c(0x18d),'children':_0x4acd3c(0x135)}),(0x0,d[_0x4acd3c(0x196)])(c['Button'],{'onClick':()=>_0x275de1[_0x4acd3c(0x154)](),'children':'Stop\x20following'})]});}function A(_0x694fca){const _0x5ea639=_0x2825e9;let {coordinator:_0x40baec}=_0x694fca;return(0x0,d[_0x5ea639(0x189)])(d[_0x5ea639(0x13f)],{'children':[(0x0,d[_0x5ea639(0x196)])(_0x5ea639(0xfb),{'className':_0x5ea639(0x18d),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,d['jsx'])(c[_0x5ea639(0x127)],{'variant':'text','onClick':()=>_0x40baec[_0x5ea639(0x166)](),'children':_0x5ea639(0x15e)})]});}function j(_0x428895){const _0x443ae1=_0x2825e9;let {coordinator:_0x40188c}=_0x428895;return(0x0,d[_0x443ae1(0x189)])(d['Fragment'],{'children':[(0x0,d[_0x443ae1(0x196)])(_0x443ae1(0xfb),{'className':_0x443ae1(0x18d),'children':_0x443ae1(0x18e)}),(0x0,d[_0x443ae1(0x196)])(c['Button'],{'variant':'default','onClick':()=>_0x40188c[_0x443ae1(0x10f)](),'children':_0x443ae1(0x10d)})]});}function M(){const _0x17bc2f=_0x2825e9;return(0x0,d['jsx'])(d[_0x17bc2f(0x13f)],{'children':_0x17bc2f(0x195)});}let N=class extends n[_0x2825e9(0xef)]{constructor(_0xa84a9,_0x2701a0){const _0x233e5d=_0x2825e9;super(),this[_0x233e5d(0x174)]=_0xa84a9,this[_0x233e5d(0x180)]=_0x2701a0,this['_mountLiveShare']();}[_0x2825e9(0x141)](){const _0x45c20d=_0x2825e9;this[_0x45c20d(0x18b)](this['_uiPartsService']['registerComponent'](s[_0x45c20d(0x124)][_0x45c20d(0xe3)],()=>(0x0,s[_0x45c20d(0x160)])(E,this[_0x45c20d(0x174)])));}};N=v([_(0x0,(0x0,n[_0x2825e9(0x182)])(n['Injector'])),_(0x1,s[_0x2825e9(0x13a)])],N);let P=class extends n[_0x2825e9(0x169)]{constructor(_0x5e19cd=w,_0x835ca5,_0x1b9d36){const _0x519d36=_0x2825e9;super(),this[_0x519d36(0x100)]=_0x5e19cd,this[_0x519d36(0x174)]=_0x835ca5,this[_0x519d36(0xf1)]=_0x1b9d36;let {..._0x25c65d}=(0x0,n[_0x519d36(0x15d)])({},w,this['_config']);this[_0x519d36(0xf1)]['setConfig'](_0x519d36(0x10e),_0x25c65d);}[_0x2825e9(0x181)](){const _0x4f9b49=_0x2825e9;(0x0,n[_0x4f9b49(0x18f)])(this['_injector'],(0x0,n['mergeOverrideWithDependencies'])([[g],[y],[T],[N]],this['_config']['override'])),(0x0,n['touchDependencies'])(this[_0x4f9b49(0x174)],[[T]]);}[_0x2825e9(0x15c)](){const _0x406d54=_0x2825e9;(0x0,n[_0x406d54(0xe7)])(this[_0x406d54(0x174)],[[N]]);}};h(P,_0x2825e9(0x16f),n[_0x2825e9(0x114)][_0x2825e9(0x143)]),h(P,_0x2825e9(0x104),_0x2825e9(0x132)),h(P,_0x2825e9(0x126),S),h(P,_0x2825e9(0xf8),C),P=v([(0x0,n[_0x2825e9(0x187)])(t[_0x2825e9(0x120)]),_(0x1,(0x0,n['Inject'])(n[_0x2825e9(0xf2)])),_(0x2,n['IConfigService'])],P),Object[_0x2825e9(0x10c)](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return y;}}),exports[_0x2825e9(0x179)]=b,Object[_0x2825e9(0x10c)](exports,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return P;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x9377a=_0x2470;(function(_0x408228,_0x9209e6){const _0x2d1a5e=_0x2470,_0x5d7416=_0x408228();while(!![]){try{const _0x4b0b50=-parseInt(_0x2d1a5e(0x13f))/0x1+-parseInt(_0x2d1a5e(0x139))/0x2*(parseInt(_0x2d1a5e(0x13b))/0x3)+parseInt(_0x2d1a5e(0x13d))/0x4+parseInt(_0x2d1a5e(0x131))/0x5*(parseInt(_0x2d1a5e(0x135))/0x6)+parseInt(_0x2d1a5e(0x129))/0x7+parseInt(_0x2d1a5e(0x138))/0x8*(parseInt(_0x2d1a5e(0x132))/0x9)+-parseInt(_0x2d1a5e(0x13a))/0xa*(parseInt(_0x2d1a5e(0x13e))/0xb);if(_0x4b0b50===_0x9209e6)break;else _0x5d7416['push'](_0x5d7416['shift']());}catch(_0xa1877b){_0x5d7416['push'](_0x5d7416['shift']());}}}(_0x3204,0x2284b));import{LiveShareController as _0x1ead6f,LiveShareStatus as _0x1b5ca8}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x25ec40,UniverInstanceType as _0x44ba55}from'@univerjs/core';import{FEnum as _0x3cbf58,FUniver as _0x1926e9}from'@univerjs/core/facade';function o(_0x3f579d){'@babel/helpers - typeof';const _0x1f84f8=_0x2470;return o=typeof Symbol=='function'&&typeof Symbol[_0x1f84f8(0x126)]==_0x1f84f8(0x136)?function(_0x250fe9){return typeof _0x250fe9;}:function(_0x21d7b6){const _0x1632bd=_0x1f84f8;return _0x21d7b6&&typeof Symbol==_0x1632bd(0x119)&&_0x21d7b6[_0x1632bd(0x123)]===Symbol&&_0x21d7b6!==Symbol[_0x1632bd(0x12e)]?'symbol':typeof _0x21d7b6;},o(_0x3f579d);}function s(_0x4f66e5,_0x26ca75){const _0x3262b5=_0x2470;if(o(_0x4f66e5)!=_0x3262b5(0x127)||!_0x4f66e5)return _0x4f66e5;var _0x58f37e=_0x4f66e5[Symbol['toPrimitive']];if(_0x58f37e!==void 0x0){var _0x28f0e7=_0x58f37e[_0x3262b5(0x124)](_0x4f66e5,_0x26ca75||_0x3262b5(0x128));if(o(_0x28f0e7)!=_0x3262b5(0x127))return _0x28f0e7;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x26ca75===_0x3262b5(0x11d)?String:Number)(_0x4f66e5);}function c(_0x3540d1){const _0x6e47b9=_0x2470;var _0x2e67bc=s(_0x3540d1,'string');return o(_0x2e67bc)==_0x6e47b9(0x136)?_0x2e67bc:_0x2e67bc+'';}function l(_0x551d6e,_0x1c13e3,_0x51b705){const _0x31a8bf=_0x2470;return(_0x1c13e3=c(_0x1c13e3))in _0x551d6e?Object[_0x31a8bf(0x12c)](_0x551d6e,_0x1c13e3,{'value':_0x51b705,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x551d6e[_0x1c13e3]=_0x51b705,_0x551d6e;}function _0x3204(){const _0x31a809=['1027852iGPEhb','getStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','defineProperty','_injector','prototype','No\x20active\x20workbook\x20found.','IDLE','15fNyScY','18fgXsbP','getCurrentUnitOfType','getUnitId','452964pOaffs','symbol','get','22072uwpesc','277484hwsuLN','16460MIGICu','3gMBExr','stopFollowing','286988QulQmn','143pNKoMY','149056koyoFF','function','_liveShareController','getLiveShareCoordinatorSync','getLiveShareStatus','string','startPresenting','startFollowing','UNIVER_SHEET','_initialize','stopPresenting','constructor','call','extend','iterator','object','default'];_0x3204=function(){return _0x31a809;};return _0x3204();}var u=class extends _0x1926e9{constructor(..._0x56104e){const _0x10aae1=_0x2470;super(..._0x56104e),l(this,_0x10aae1(0x11a),void 0x0);}[_0x9377a(0x121)](_0x4cc677){const _0x57b3d7=_0x9377a;this['_liveShareController']=_0x4cc677[_0x57b3d7(0x137)](_0x1ead6f);}[_0x9377a(0x11c)](){const _0x30d4fc=_0x9377a;var _0x53b1c1;let _0x39e287=this[_0x30d4fc(0x12d)][_0x30d4fc(0x137)](_0x25ec40)[_0x30d4fc(0x133)](_0x44ba55[_0x30d4fc(0x120)]);if(!_0x39e287)throw Error('No\x20active\x20workbook\x20found.');let _0x54d196=_0x39e287[_0x30d4fc(0x134)](),_0xdd3ff=this['_liveShareController'][_0x30d4fc(0x11b)](_0x54d196);return(_0x53b1c1=_0xdd3ff==null?void 0x0:_0xdd3ff[_0x30d4fc(0x12a)]())==null?_0x1b5ca8[_0x30d4fc(0x130)]:_0x53b1c1;}[_0x9377a(0x11f)](){const _0x6e4210=_0x9377a;let _0x3db636=this['_injector'][_0x6e4210(0x137)](_0x25ec40)[_0x6e4210(0x133)](_0x44ba55[_0x6e4210(0x120)]);if(!_0x3db636)throw Error(_0x6e4210(0x12f));let _0x4895ef=_0x3db636['getUnitId'](),_0x5b9d15=this['_liveShareController'][_0x6e4210(0x11b)](_0x4895ef);if(!_0x5b9d15)throw Error(_0x6e4210(0x12b));_0x5b9d15['startFollowing']();}[_0x9377a(0x13c)](){const _0x5493c4=_0x9377a;let _0x2645df=this['_injector'][_0x5493c4(0x137)](_0x25ec40)[_0x5493c4(0x133)](_0x44ba55[_0x5493c4(0x120)]);if(!_0x2645df)throw Error(_0x5493c4(0x12f));let _0x58f88d=_0x2645df[_0x5493c4(0x134)](),_0x248d61=this[_0x5493c4(0x11a)][_0x5493c4(0x11b)](_0x58f88d);if(!_0x248d61)throw Error(_0x5493c4(0x12b));_0x248d61[_0x5493c4(0x13c)]();}[_0x9377a(0x11e)](){const _0x1d3367=_0x9377a;let _0x2f63ce=this[_0x1d3367(0x12d)][_0x1d3367(0x137)](_0x25ec40)[_0x1d3367(0x133)](_0x44ba55[_0x1d3367(0x120)]);if(!_0x2f63ce)throw Error(_0x1d3367(0x12f));let _0x32d0b4=_0x2f63ce[_0x1d3367(0x134)](),_0x5d0d38=this['_liveShareController'][_0x1d3367(0x11b)](_0x32d0b4);if(!_0x5d0d38)throw Error(_0x1d3367(0x12b));_0x5d0d38['tryStartPresenting']();}[_0x9377a(0x122)](){const _0x1ce9c8=_0x9377a;let _0x28a841=this[_0x1ce9c8(0x12d)][_0x1ce9c8(0x137)](_0x25ec40)[_0x1ce9c8(0x133)](_0x44ba55[_0x1ce9c8(0x120)]);if(!_0x28a841)throw Error(_0x1ce9c8(0x12f));let _0x1e57f3=_0x28a841[_0x1ce9c8(0x134)](),_0x1b350b=this[_0x1ce9c8(0x11a)]['getLiveShareCoordinatorSync'](_0x1e57f3);if(!_0x1b350b)throw Error(_0x1ce9c8(0x12b));_0x1b350b[_0x1ce9c8(0x122)]();}};_0x1926e9[_0x9377a(0x125)](u);var d=class extends _0x3cbf58{get['LiveShareStatusEnum'](){return _0x1b5ca8;}};_0x3cbf58[_0x9377a(0x125)](d);function _0x2470(_0x3b9907,_0x5d9a27){_0x3b9907=_0x3b9907-0x119;const _0x320412=_0x3204();let _0x2470f3=_0x320412[_0x3b9907];return _0x2470f3;}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 _0x261bc3=_0x4dec;(function(_0x33408b,_0x1f8b60){const _0x1b9d18=_0x4dec,_0x514800=_0x33408b();while(!![]){try{const _0x3ce1cb=-parseInt(_0x1b9d18(0x1b5))/0x1*(-parseInt(_0x1b9d18(0x1b9))/0x2)+parseInt(_0x1b9d18(0x19b))/0x3+parseInt(_0x1b9d18(0x1e7))/0x4+-parseInt(_0x1b9d18(0x1bb))/0x5*(-parseInt(_0x1b9d18(0x1a9))/0x6)+parseInt(_0x1b9d18(0x1af))/0x7*(parseInt(_0x1b9d18(0x1ff))/0x8)+-parseInt(_0x1b9d18(0x18f))/0x9+-parseInt(_0x1b9d18(0x1c2))/0xa;if(_0x3ce1cb===_0x1f8b60)break;else _0x514800['push'](_0x514800['shift']());}catch(_0x232004){_0x514800['push'](_0x514800['shift']());}}}(_0x17e9,0x2a80c));import{CollaborationEvent as _0x12c2c1,parseProtocolChangeset as _0x33d9e3}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x22e23c,SessionStatus as _0x21eb63,UniverCollaborationClientPlugin as _0x3c7edb}from'@univerjs-pro/collaboration-client';import{CommandType as _0x4194b0,DependentOn as _0x1e023b,Disposable as _0x4eb40c,DisposableCollection as _0x1eec39,ICommandService as _0x3d7ea5,IConfigService as _0x397d2f,IUniverInstanceService as _0x383ebd,Inject as _0x32b958,Injector as _0x1da4d7,Plugin as _0x507076,RxDisposable as _0x45cb97,UniverInstanceType as _0x11b71c,merge as _0x17ab15,mergeOverrideWithDependencies as _0x181612,registerDependencies as _0x28447a,toDisposable as _0x1638c4,touchDependencies as _0xe80ba}from'@univerjs/core';import{InsertSheetMutation as _0x56a7aa,SetWorksheetActiveOperation as _0xabfb1a}from'@univerjs/sheets';import{BehaviorSubject as _0x19f4f8,Subject as _0x1a5e9a,defer as _0xf20517,from as _0x272db5,of as _0x1c3fcc}from'rxjs';import{takeUntil as _0x28c0db,throttleTime as _0x4f6be8}from'rxjs/operators';import{SetScrollOperation as _0x2be65d,SetZoomRatioOperation as _0x29a9b7}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x66e4d0,IUIPartsService as _0x166cce,connectInjector as _0x5ecd17,useDependency as _0x59df5b,useObservable as _0x4f01fd}from'@univerjs/ui';import{Button as _0x217a44,Dropdown as _0x5e37fa,clsx as _0x1c008e}from'@univerjs/design';import{LiveShareIcon as _0x28428a}from'@univerjs/icons';import{useMemo as _0x509d3e}from'react';import{Fragment as _0x5e88da,jsx as _0xf6a67d,jsxs as _0x2306c2}from'react/jsx-runtime';function z(_0x206ec3){'@babel/helpers - typeof';const _0x5be19e=_0x4dec;return z=typeof Symbol=='function'&&typeof Symbol[_0x5be19e(0x1c9)]==_0x5be19e(0x1d8)?function(_0x296546){return typeof _0x296546;}:function(_0xd3e5d0){const _0x1de670=_0x5be19e;return _0xd3e5d0&&typeof Symbol=='function'&&_0xd3e5d0[_0x1de670(0x1d3)]===Symbol&&_0xd3e5d0!==Symbol[_0x1de670(0x1d2)]?'symbol':typeof _0xd3e5d0;},z(_0x206ec3);}function B(_0x423b30,_0x344c1a){const _0x15584c=_0x4dec;if(z(_0x423b30)!=_0x15584c(0x215)||!_0x423b30)return _0x423b30;var _0x3afd00=_0x423b30[Symbol[_0x15584c(0x20a)]];if(_0x3afd00!==void 0x0){var _0xbc677=_0x3afd00[_0x15584c(0x1bd)](_0x423b30,_0x344c1a||_0x15584c(0x211));if(z(_0xbc677)!=_0x15584c(0x215))return _0xbc677;throw TypeError(_0x15584c(0x18b));}return(_0x344c1a===_0x15584c(0x1e0)?String:Number)(_0x423b30);}function V(_0x48974b){const _0x542e44=_0x4dec;var _0x4949ed=B(_0x48974b,_0x542e44(0x1e0));return z(_0x4949ed)=='symbol'?_0x4949ed:_0x4949ed+'';}function H(_0x29fc1d,_0x1b97eb,_0x50a158){const _0x19badc=_0x4dec;return(_0x1b97eb=V(_0x1b97eb))in _0x29fc1d?Object[_0x19badc(0x1fb)](_0x29fc1d,_0x1b97eb,{'value':_0x50a158,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x29fc1d[_0x1b97eb]=_0x50a158,_0x29fc1d;}var U=class extends _0x4eb40c{constructor(..._0x3a55b7){const _0x36391f=_0x4dec;super(..._0x3a55b7),H(this,_0x36391f(0x1cf),new Set()),H(this,'_reporters',new Set());}[_0x261bc3(0x1ec)](_0x4bb395){const _0x1806ce=_0x261bc3;return this['_sharedOperations']['add'](_0x4bb395),_0x1638c4(()=>this[_0x1806ce(0x1cf)][_0x1806ce(0x210)](_0x4bb395));}[_0x261bc3(0x1cb)](_0x19ffbd){const _0x4dcb7a=_0x261bc3;return this[_0x4dcb7a(0x191)][_0x4dcb7a(0x203)](_0x19ffbd),_0x1638c4(()=>this[_0x4dcb7a(0x191)][_0x4dcb7a(0x210)](_0x19ffbd));}[_0x261bc3(0x1f6)](_0x9b285d){const _0x589c16=_0x261bc3;return this[_0x589c16(0x1cf)]['has'](_0x9b285d);}[_0x261bc3(0x20b)](_0x19b33f){const _0x47dc33=_0x261bc3;return Array['from'](this[_0x47dc33(0x191)])['map'](_0x57d698=>_0x57d698(_0x19b33f));}};function W(_0x27a0e7,_0x5bfb4d){return function(_0x6b299c,_0x95c95a){_0x5bfb4d(_0x6b299c,_0x95c95a,_0x27a0e7);};}function G(_0x44212e,_0x299052,_0x306315,_0x265db8){const _0x198191=_0x261bc3;var _0x4514c9=arguments['length'],_0x30689c=_0x4514c9<0x3?_0x299052:_0x265db8===null?_0x265db8=Object[_0x198191(0x1f7)](_0x299052,_0x306315):_0x265db8,_0x2993ed;if(typeof Reflect==_0x198191(0x215)&&typeof Reflect[_0x198191(0x1d6)]==_0x198191(0x196))_0x30689c=Reflect[_0x198191(0x1d6)](_0x44212e,_0x299052,_0x306315,_0x265db8);else{for(var _0xcc9567=_0x44212e['length']-0x1;_0xcc9567>=0x0;_0xcc9567--)(_0x2993ed=_0x44212e[_0xcc9567])&&(_0x30689c=(_0x4514c9<0x3?_0x2993ed(_0x30689c):_0x4514c9>0x3?_0x2993ed(_0x299052,_0x306315,_0x30689c):_0x2993ed(_0x299052,_0x306315))||_0x30689c);}return _0x4514c9>0x3&&_0x30689c&&Object['defineProperty'](_0x299052,_0x306315,_0x30689c),_0x30689c;}let K=class extends _0x45cb97{constructor(_0x123eb4,_0x5b0f69,_0x1262e2){const _0x122f2d=_0x261bc3;super(),this[_0x122f2d(0x207)]=_0x123eb4,this['_injector']=_0x5b0f69,this['_collabSessionService']=_0x1262e2,H(this,_0x122f2d(0x1a4),new Map()),this[_0x122f2d(0x1a0)]();}async[_0x261bc3(0x1ce)](_0x54f40e){const _0x3e67b7=_0x261bc3;return this[_0x3e67b7(0x1a4)][_0x3e67b7(0x1b2)](_0x54f40e)||await this[_0x3e67b7(0x1f9)](_0x54f40e),this[_0x3e67b7(0x1a4)][_0x3e67b7(0x21a)](_0x54f40e);}['getLiveShareCoordinatorSync'](_0x5b0cff){const _0x241403=_0x261bc3;var _0x1f604c;return(_0x1f604c=this[_0x241403(0x1a4)][_0x241403(0x21a)](_0x5b0cff))==null?null:_0x1f604c;}[_0x261bc3(0x1a0)](){const _0x5d27d1=_0x261bc3;this[_0x5d27d1(0x207)]['getTypeOfUnitAdded$'](_0x11b71c[_0x5d27d1(0x1b4)])[_0x5d27d1(0x1ca)](_0x28c0db(this[_0x5d27d1(0x199)]))['subscribe'](async _0x10d8c3=>{const _0x2aba64=_0x5d27d1;let _0x5396fb=_0x10d8c3[_0x2aba64(0x194)][_0x2aba64(0x1e9)]();this[_0x2aba64(0x1a4)][_0x2aba64(0x1b2)](_0x5396fb)||this[_0x2aba64(0x1f9)](_0x5396fb);}),this[_0x5d27d1(0x207)][_0x5d27d1(0x20e)](_0x11b71c[_0x5d27d1(0x1b4)])[_0x5d27d1(0x1ca)](_0x28c0db(this[_0x5d27d1(0x199)]))[_0x5d27d1(0x1a8)](_0x1e86e0=>{const _0x39555f=_0x5d27d1;let _0x3d29d3=_0x1e86e0['getUnitId'](),_0x29294c=this[_0x39555f(0x1a4)][_0x39555f(0x21a)](_0x3d29d3);_0x29294c==null||_0x29294c[_0x39555f(0x1d9)]();});}async[_0x261bc3(0x1f9)](_0xd39753){const _0x1c9ac3=_0x261bc3;let _0x4186c1=await this[_0x1c9ac3(0x1da)]['requireSession'](_0xd39753),_0x1a140c=this['_injector'][_0x1c9ac3(0x212)](J,_0xd39753,_0x4186c1);return _0x1a140c[_0x1c9ac3(0x19c)](),this[_0x1c9ac3(0x1a4)][_0x1c9ac3(0x1c8)](_0xd39753,_0x1a140c),_0x1a140c;}};K=G([W(0x0,_0x383ebd),W(0x1,_0x32b958(_0x1da4d7)),W(0x2,_0x32b958(_0x22e23c))],K);let q=function(_0x2aa245){const _0x5b5f61=_0x261bc3;return _0x2aa245[_0x5b5f61(0x1b8)]=_0x5b5f61(0x208),_0x2aa245[_0x5b5f61(0x1d7)]='idle',_0x2aa245[_0x5b5f61(0x1b3)]=_0x5b5f61(0x195),_0x2aa245['NOT_FOLLOWING']=_0x5b5f61(0x1b1),_0x2aa245[_0x5b5f61(0x1f4)]=_0x5b5f61(0x216),_0x2aa245;}({}),J=class extends _0x45cb97{get[_0x261bc3(0x1fa)](){return this['_status$']['getValue']();}constructor(_0x2e5295,_0x3f1f7a,_0x1d4923,_0x7aa6dc,_0x1e04a5){const _0x3d0696=_0x261bc3;super(),this['_unitID']=_0x2e5295,this[_0x3d0696(0x1eb)]=_0x3f1f7a,this[_0x3d0696(0x1e2)]=_0x1d4923,this[_0x3d0696(0x1aa)]=_0x7aa6dc,this[_0x3d0696(0x1a1)]=_0x1e04a5,H(this,_0x3d0696(0x193),new _0x19f4f8(_0x3d0696(0x1e3))),H(this,_0x3d0696(0x18c),this[_0x3d0696(0x193)][_0x3d0696(0x1de)]()),H(this,'_init',!0x1),H(this,'_commandDisposable',null),H(this,_0x3d0696(0x1f1),null);}[_0x261bc3(0x1d9)](){const _0x9e25a6=_0x261bc3;var _0x489389;(_0x489389=this[_0x9e25a6(0x214)])==null||_0x489389[_0x9e25a6(0x1d9)](),this[_0x9e25a6(0x193)][_0x9e25a6(0x1a7)]('idle'),this[_0x9e25a6(0x193)][_0x9e25a6(0x190)]();}[_0x261bc3(0x1a6)](){const _0x77ac89=_0x261bc3;return this[_0x77ac89(0x1fa)];}['init'](){const _0x4cee39=_0x261bc3;this[_0x4cee39(0x1a0)]||(this[_0x4cee39(0x1a0)]=!0x0,this[_0x4cee39(0x1eb)]['sessionStatus$'][_0x4cee39(0x1ca)](_0x28c0db(this[_0x4cee39(0x199)]))[_0x4cee39(0x1a8)](_0x4eb5da=>{const _0x107d61=_0x4cee39;switch(_0x4eb5da){case _0x21eb63[_0x107d61(0x1b8)]:this[_0x107d61(0x200)]();break;case _0x21eb63[_0x107d61(0x205)]:this[_0x107d61(0x218)]();break;default:}}),this[_0x4cee39(0x1eb)][_0x4cee39(0x19a)][_0x4cee39(0x1ca)](_0x28c0db(this[_0x4cee39(0x199)]))['subscribe'](_0x1a4a26=>{const _0x2eb9c9=_0x4cee39;let {eventID:_0x4ac43a}=_0x1a4a26;switch(_0x4ac43a){case _0x12c2c1[_0x2eb9c9(0x1f0)]:this[_0x2eb9c9(0x1ad)](_0x1a4a26);break;case _0x12c2c1[_0x2eb9c9(0x21b)]:this['_handleOperation'](_0x1a4a26);break;case _0x12c2c1['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x12c2c1[_0x2eb9c9(0x198)]:this[_0x2eb9c9(0x213)](_0x1a4a26);break;default:}}));}[_0x261bc3(0x1d5)](){const _0x3e77c2=_0x261bc3;this[_0x3e77c2(0x1eb)]['send']({'eventID':_0x12c2c1[_0x3e77c2(0x1dd)],'data':{'unitID':this[_0x3e77c2(0x1c5)],'userID':this['_collabSession'][_0x3e77c2(0x1dc)]()}},this[_0x3e77c2(0x1c5)]);}[_0x261bc3(0x1f3)](){const _0x55ab41=_0x261bc3;this[_0x55ab41(0x1fa)]==='presenting'&&(this['_status$'][_0x55ab41(0x1a7)](_0x55ab41(0x1e3)),this[_0x55ab41(0x1eb)]['send']({'eventID':_0x12c2c1[_0x55ab41(0x18d)],'data':{'unitID':this[_0x55ab41(0x1c5)]}},this[_0x55ab41(0x1c5)]));}[_0x261bc3(0x1e6)](){const _0xa3cb5f=_0x261bc3;this['_status']==='not-following'&&(this[_0xa3cb5f(0x193)][_0xa3cb5f(0x1a7)](_0xa3cb5f(0x195)),this['_startFollowing']());}[_0x261bc3(0x1e8)](){const _0x43d8e8=_0x261bc3;this[_0x43d8e8(0x1fa)]===_0x43d8e8(0x195)&&this[_0x43d8e8(0x1db)]();}['_handleNewHost'](_0x30d417){const _0x193423=_0x261bc3;let {presenter:_0x2a8be5}=_0x30d417[_0x193423(0x1c3)],_0x4a58e8=this[_0x193423(0x1eb)][_0x193423(0x1dc)]();this[_0x193423(0x1f1)]=_0x2a8be5,_0x2a8be5===_0x4a58e8?(this[_0x193423(0x1db)](),this[_0x193423(0x1bc)]()):this[_0x193423(0x1fa)]!==_0x193423(0x1b1)&&(this[_0x193423(0x1ae)](),this[_0x193423(0x1fd)]());}['_fetchOperations'](){const _0x33a2bd=_0x261bc3;let _0x2192c7={'eventID':_0x12c2c1['LIVESHARE_FETCH_OPERATIONS']};this[_0x33a2bd(0x1eb)]['send'](_0x2192c7,this[_0x33a2bd(0x1c5)]);}[_0x261bc3(0x1d4)](){const _0x59fc5a=_0x261bc3;this[_0x59fc5a(0x1f1)]=null,this[_0x59fc5a(0x1fa)]!==_0x59fc5a(0x216)&&this[_0x59fc5a(0x1f5)]();}[_0x261bc3(0x213)](_0x4a809a){const _0x424c97=_0x261bc3;if(this['_status']===_0x424c97(0x195)&&this['_presenter']===_0x4a809a[_0x424c97(0x1c3)]['memberID']){let _0x3b3513=_0x33d9e3(_0x4a809a[_0x424c97(0x1c3)])[_0x424c97(0x19f)][_0x424c97(0x1a2)]()[_0x424c97(0x1a3)](_0x9d517f=>_0x9d517f['id']===_0x56a7aa['id']);if(_0x3b3513){let _0x188211=_0x3b3513[_0x424c97(0x19d)][_0x424c97(0x1be)],_0x5097e0=_0x3b3513[_0x424c97(0x19d)]['sheet']['id'];setTimeout(()=>{const _0x20c3f5=_0x424c97;this['_commandService'][_0x20c3f5(0x1c4)](_0xabfb1a['id'],{'unitId':_0x188211,'subUnitId':_0x5097e0},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x5978de=_0x261bc3;var _0x3e95c8;(_0x3e95c8=this[_0x5978de(0x214)])==null||_0x3e95c8[_0x5978de(0x1d9)](),this[_0x5978de(0x193)]['next'](_0x5978de(0x216));let _0x137be8=new Map(),_0x24c481=this[_0x5978de(0x214)]=new _0x1eec39();_0x24c481[_0x5978de(0x203)](_0x1638c4(()=>{const _0x2a064e=_0x5978de;_0x137be8[_0x2a064e(0x1ef)](({subject:_0x2b668d,subscription:_0xb67ce9})=>{const _0x35d9ae=_0x2a064e;_0xb67ce9[_0x35d9ae(0x1c0)](),_0x2b668d[_0x35d9ae(0x190)]();}),_0x137be8[_0x2a064e(0x1c6)]();})),_0x24c481[_0x5978de(0x203)](this[_0x5978de(0x1a1)][_0x5978de(0x219)](_0x9b5589=>{const _0x5853bb=_0x5978de;if(_0x9b5589['type']!==_0x4194b0[_0x5853bb(0x1ac)]||!this['_liveShareService']['shouldShareOperation'](_0x9b5589['id']))return;let {id:_0x56a22b}=_0x9b5589,_0x178be9;if(_0x137be8[_0x5853bb(0x1b2)](_0x56a22b))_0x178be9=_0x137be8[_0x5853bb(0x21a)](_0x56a22b)[_0x5853bb(0x1d0)];else{var _0x3b9b0a;_0x178be9=new _0x1a5e9a();let _0x276e06=_0x178be9[_0x5853bb(0x1ca)](_0x4f6be8((_0x3b9b0a=this[_0x5853bb(0x1e2)][_0x5853bb(0x1fc)](_0x5853bb(0x20d)))==null?0xc8:_0x3b9b0a,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5853bb(0x1a8)](_0xad564a=>{const _0x544723=_0x5853bb;this[_0x544723(0x1eb)]['send']({'eventID':_0x12c2c1[_0x544723(0x21b)],'data':{'unitID':this['_unitID'],'operations':{[_0xad564a['id']]:{'id':_0xad564a['id'],'params':JSON['stringify'](_0xad564a[_0x544723(0x19d)])}}}},this[_0x544723(0x1c5)]);});_0x137be8[_0x5853bb(0x1c8)](_0x56a22b,{'subject':_0x178be9,'subscription':_0x276e06});}_0x178be9['next'](_0x9b5589);})),this[_0x5978de(0x1aa)][_0x5978de(0x20b)](this['_unitID'])[_0x5978de(0x1ef)](_0x46a8c0=>this['_collabSession'][_0x5978de(0x209)]({'eventID':_0x12c2c1['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x46a8c0['id']]:{'id':_0x46a8c0['id'],'params':JSON['stringify'](_0x46a8c0['params'])}}}},this[_0x5978de(0x1c5)]));}[_0x261bc3(0x1ae)](){const _0x251d39=_0x261bc3;var _0x41e6a2;this['_status$'][_0x251d39(0x1a7)](_0x251d39(0x1e3)),(_0x41e6a2=this[_0x251d39(0x214)])==null||_0x41e6a2[_0x251d39(0x1d9)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x207016=_0x261bc3;var _0xe2c14;(_0xe2c14=this[_0x207016(0x214)])==null||_0xe2c14[_0x207016(0x1d9)](),this[_0x207016(0x193)][_0x207016(0x1a7)](_0x207016(0x195));}[_0x261bc3(0x1f5)](){const _0x101999=_0x261bc3;var _0x5a55cd;this[_0x101999(0x193)][_0x101999(0x1a7)](_0x101999(0x1e3)),(_0x5a55cd=this[_0x101999(0x214)])==null||_0x5a55cd[_0x101999(0x1d9)](),this[_0x101999(0x214)]=null;}[_0x261bc3(0x1db)](){const _0x22ce88=_0x261bc3;var _0x1d4ba1;this[_0x22ce88(0x193)][_0x22ce88(0x1a7)](_0x22ce88(0x1b1)),(_0x1d4ba1=this[_0x22ce88(0x214)])==null||_0x1d4ba1[_0x22ce88(0x1d9)]();}[_0x261bc3(0x1b0)](_0x5b089c){const _0x518c44=_0x261bc3;if(['presenting',_0x518c44(0x1b1),_0x518c44(0x208)][_0x518c44(0x1df)](this[_0x518c44(0x1fa)])||!_0x5b089c[_0x518c44(0x1c3)][_0x518c44(0x1ba)]||_0x5b089c[_0x518c44(0x1c3)][_0x518c44(0x1ba)]===this[_0x518c44(0x1eb)][_0x518c44(0x1dc)]())return;this['_status']==='idle'&&this[_0x518c44(0x1fd)]();let _0xc1cc36=_0x5b089c[_0x518c44(0x1c3)][_0x518c44(0x1ed)];Object[_0x518c44(0x1cd)](_0xc1cc36)[_0x518c44(0x1ef)](_0x3e2185=>{const _0x10209f=_0x518c44;this['_commandService'][_0x10209f(0x1c4)](_0x3e2185['id'],_0x3e2185['params']?JSON[_0x10209f(0x20f)](_0x3e2185[_0x10209f(0x19d)]):null,{'fromCollab':!0x0});});}[_0x261bc3(0x200)](){const _0x4dd85f=_0x261bc3;var _0x5231a9;this[_0x4dd85f(0x193)][_0x4dd85f(0x1a7)](_0x4dd85f(0x208)),(_0x5231a9=this[_0x4dd85f(0x214)])==null||_0x5231a9[_0x4dd85f(0x1d9)]();}[_0x261bc3(0x218)](){const _0xc21c0d=_0x261bc3;this[_0xc21c0d(0x193)][_0xc21c0d(0x1a7)]('idle'),this[_0xc21c0d(0x1ee)]();}};J=G([W(0x2,_0x397d2f),W(0x3,_0x32b958(U)),W(0x4,_0x3d7ea5)],J);var se=_0x261bc3(0x1d1),ce='1.0.0-alpha.5';const Y={};let X=class extends _0x4eb40c{constructor(_0x256570){const _0x2fa028=_0x261bc3;super(),this[_0x2fa028(0x1aa)]=_0x256570,this[_0x2fa028(0x1a0)]();}[_0x261bc3(0x1a0)](){const _0x44affc=_0x261bc3;[_0x29a9b7['id'],_0x2be65d['id'],_0xabfb1a['id']][_0x44affc(0x1ef)](_0x3a9dd5=>{const _0x27a330=_0x44affc;this[_0x27a330(0x201)](this['_liveShareService']['registerSharedOperation'](_0x3a9dd5));});}};X=G([W(0x0,_0x32b958(U))],X);function Z(){const _0x5ac959=_0x261bc3;let _0x2f5e86=_0x59df5b(K),_0x4d3fd=_0x59df5b(_0x383ebd),_0x4a2210=_0x4f01fd(()=>_0x4d3fd[_0x5ac959(0x1ea)](_0x11b71c[_0x5ac959(0x1b4)]),void 0x0,!0x1,[]),_0x1c67d3=_0x4f01fd(_0x509d3e(()=>_0x4a2210?_0xf20517(()=>_0x272db5(_0x2f5e86[_0x5ac959(0x1ce)](_0x4a2210[_0x5ac959(0x1e9)]()))):_0x1c3fcc(null),[_0x4a2210,_0x2f5e86]),null),_0x51a0f4=_0x4f01fd(_0x1c67d3?()=>_0x1c67d3[_0x5ac959(0x18c)]:null,_0x5ac959(0x1e3),!0x1,[_0x1c67d3]);return _0x1c67d3?_0xf6a67d(_0x5e37fa,{'align':_0x5ac959(0x1e5),'disabled':_0x51a0f4===_0x5ac959(0x208),'className':_0x5ac959(0x202),'overlay':_0xf6a67d(le,{'status':_0x51a0f4,'coordinator':_0x1c67d3}),'children':_0xf6a67d(_0x5ac959(0x192),{'className':_0x1c008e(_0x5ac959(0x197),{'univer-cursor-not-allowed':_0x51a0f4===_0x5ac959(0x208),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51a0f4!=='offline'}),'type':_0x5ac959(0x192),'children':_0xf6a67d(_0x28428a,{})})}):null;}function le(_0x2461c0){const _0x2d2b1b=_0x261bc3;let {status:_0x525182,coordinator:_0xefde41}=_0x2461c0;switch(_0x525182){case _0x2d2b1b(0x1e3):return _0xf6a67d(ue,{'coordinator':_0xefde41});case _0x2d2b1b(0x195):return _0xf6a67d(de,{'coordinator':_0xefde41});case _0x2d2b1b(0x1b1):return _0xf6a67d(fe,{'coordinator':_0xefde41});case _0x2d2b1b(0x208):return _0xf6a67d(me,{});case _0x2d2b1b(0x216):return _0xf6a67d(pe,{'coordinator':_0xefde41});default:return null;}}function ue(_0x1b839a){const _0x4aba7c=_0x261bc3;let {coordinator:_0x1d85aa}=_0x1b839a;return _0x2306c2(_0x5e88da,{'children':[_0xf6a67d(_0x4aba7c(0x18e),{'className':_0x4aba7c(0x1f8),'children':'Present\x20this\x20document'}),_0xf6a67d(_0x217a44,{'onClick':()=>_0x1d85aa[_0x4aba7c(0x1d5)](),'children':'Start'})]});}function _0x17e9(){const _0xfcd267=['disposeWithMe','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','add','_uiPartsService','ONLINE','setConfig','_univerInstanceService','offline','send','toPrimitive','getInitialStates','packageName','SAME_OPERATION_SHARE_INTERVAL','getTypeOfUnitDisposed$','parse','delete','default','createInstance','_handleNewChangeSets','_commandDisposable','object','presenting','_config','_handleOnline','onCommandExecuted','get','LIVESHARE_OPERATION','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','status$','LIVESHARE_TERMINATE','div','2039256qnXZbj','complete','_reporters','button','_status$','unit','following','function','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','NEW_CHANGESETS','dispose$','event$','143064bxQGvu','init','params','You\x27re\x20presenting\x20the\x20document','mutations','_init','_commandService','reverse','find','_entities','registerComponent','getStatus','next','subscribe','10818JygUVe','_liveShareService','onRendered','OPERATION','_handleNewHost','_stopPresenting','19978lBvzIC','_handleOperation','not-following','has','FOLLOWING','UNIVER_SHEET','2639thmZAt','Start\x20following','Stop\x20presenting','OFFLINE','126JTsfbe','presenter','955YdxYdY','_startPresenting','call','unitId','HEADER_MENU','unsubscribe','UNIVER_LIVE_SHARE_PLUGIN','8068290bfvpQL','data','executeCommand','_unitID','clear','_mountLiveShare','set','iterator','pipe','registerInitialStateReporter','UNIVER_UNKNOWN','values','getLiveShareCoordinator','_sharedOperations','subject','@univerjs-pro/live-share','prototype','constructor','_handleTerminate','tryStartPresenting','decorate','IDLE','symbol','dispose','_collabSessionService','_stopFollowing','getMemberID','LIVESHARE_REQUEST_HOST','asObservable','includes','string','_injector','_configService','idle','You\x27re\x20following\x20the\x20presenter','end','startFollowing','1352404dhgbMc','stopFollowing','getUnitId','getCurrentTypeOfUnit$','_collabSession','registerSharedOperation','operations','_fetchOperations','forEach','LIVESHARE_NEW_HOST','_presenter','type','stopPresenting','PRESENTING','_beIdle','shouldShareOperation','getOwnPropertyDescriptor','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startLiveShareCoordinator','_status','defineProperty','getConfig','_startFollowing','version','872NcJpGc','_handleOffline'];_0x17e9=function(){return _0xfcd267;};return _0x17e9();}function de(_0x2957cf){const _0x256ee2=_0x261bc3;let {coordinator:_0x555cd6}=_0x2957cf;return _0x2306c2(_0x5e88da,{'children':[_0xf6a67d('div',{'className':_0x256ee2(0x1f8),'children':_0x256ee2(0x1e4)}),_0xf6a67d(_0x217a44,{'onClick':()=>_0x555cd6[_0x256ee2(0x1e8)](),'children':'Stop\x20following'})]});}function fe(_0x348f4b){const _0x4afebc=_0x261bc3;let {coordinator:_0x23b50e}=_0x348f4b;return _0x2306c2(_0x5e88da,{'children':[_0xf6a67d(_0x4afebc(0x18e),{'className':_0x4afebc(0x1f8),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0xf6a67d(_0x217a44,{'variant':'text','onClick':()=>_0x23b50e[_0x4afebc(0x1e6)](),'children':_0x4afebc(0x1b6)})]});}function _0x4dec(_0x5c3129,_0x528f67){_0x5c3129=_0x5c3129-0x18b;const _0x17e976=_0x17e9();let _0x4decbe=_0x17e976[_0x5c3129];return _0x4decbe;}function pe(_0x24eb55){const _0x1ac56d=_0x261bc3;let {coordinator:_0x7b519d}=_0x24eb55;return _0x2306c2(_0x5e88da,{'children':[_0xf6a67d(_0x1ac56d(0x18e),{'className':_0x1ac56d(0x1f8),'children':_0x1ac56d(0x19e)}),_0xf6a67d(_0x217a44,{'variant':_0x1ac56d(0x211),'onClick':()=>_0x7b519d['stopPresenting'](),'children':_0x1ac56d(0x1b7)})]});}function me(){return _0xf6a67d(_0x5e88da,{'children':'You\x27are\x20offline.'});}let Q=class extends _0x4eb40c{constructor(_0xadd82,_0x59fe88){const _0x5a1010=_0x261bc3;super(),this[_0x5a1010(0x1e1)]=_0xadd82,this[_0x5a1010(0x204)]=_0x59fe88,this['_mountLiveShare']();}[_0x261bc3(0x1c7)](){const _0x458598=_0x261bc3;this['disposeWithMe'](this[_0x458598(0x204)][_0x458598(0x1a5)](_0x66e4d0[_0x458598(0x1bf)],()=>_0x5ecd17(Z,this[_0x458598(0x1e1)])));}};Q=G([W(0x0,_0x32b958(_0x1da4d7)),W(0x1,_0x166cce)],Q);let $=class extends _0x507076{constructor(_0x5ae356=Y,_0x296fb5,_0x2bf0a5){const _0x478599=_0x261bc3;super(),this[_0x478599(0x217)]=_0x5ae356,this[_0x478599(0x1e1)]=_0x296fb5,this['_configService']=_0x2bf0a5;let {..._0x420661}=_0x17ab15({},Y,this['_config']);this[_0x478599(0x1e2)][_0x478599(0x206)]('live-share.config',_0x420661);}['onStarting'](){const _0x429d80=_0x261bc3;_0x28447a(this[_0x429d80(0x1e1)],_0x181612([[U],[K],[X],[Q]],this[_0x429d80(0x217)]['override'])),_0xe80ba(this['_injector'],[[X]]);}[_0x261bc3(0x1ab)](){_0xe80ba(this['_injector'],[[Q]]);}};H($,_0x261bc3(0x1f2),_0x11b71c[_0x261bc3(0x1cc)]),H($,'pluginName',_0x261bc3(0x1c1)),H($,_0x261bc3(0x20c),se),H($,_0x261bc3(0x1fe),ce),$=G([_0x1e023b(_0x3c7edb),W(0x1,_0x32b958(_0x1da4d7)),W(0x2,_0x397d2f)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x9377a=_0x2470;(function(_0x408228,_0x9209e6){const _0x2d1a5e=_0x2470,_0x5d7416=_0x408228();while(!![]){try{const _0x4b0b50=-parseInt(_0x2d1a5e(0x13f))/0x1+-parseInt(_0x2d1a5e(0x139))/0x2*(parseInt(_0x2d1a5e(0x13b))/0x3)+parseInt(_0x2d1a5e(0x13d))/0x4+parseInt(_0x2d1a5e(0x131))/0x5*(parseInt(_0x2d1a5e(0x135))/0x6)+parseInt(_0x2d1a5e(0x129))/0x7+parseInt(_0x2d1a5e(0x138))/0x8*(parseInt(_0x2d1a5e(0x132))/0x9)+-parseInt(_0x2d1a5e(0x13a))/0xa*(parseInt(_0x2d1a5e(0x13e))/0xb);if(_0x4b0b50===_0x9209e6)break;else _0x5d7416['push'](_0x5d7416['shift']());}catch(_0xa1877b){_0x5d7416['push'](_0x5d7416['shift']());}}}(_0x3204,0x2284b));import{LiveShareController as _0x1ead6f,LiveShareStatus as _0x1b5ca8}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x25ec40,UniverInstanceType as _0x44ba55}from'@univerjs/core';import{FEnum as _0x3cbf58,FUniver as _0x1926e9}from'@univerjs/core/facade';function o(_0x3f579d){'@babel/helpers - typeof';const _0x1f84f8=_0x2470;return o=typeof Symbol=='function'&&typeof Symbol[_0x1f84f8(0x126)]==_0x1f84f8(0x136)?function(_0x250fe9){return typeof _0x250fe9;}:function(_0x21d7b6){const _0x1632bd=_0x1f84f8;return _0x21d7b6&&typeof Symbol==_0x1632bd(0x119)&&_0x21d7b6[_0x1632bd(0x123)]===Symbol&&_0x21d7b6!==Symbol[_0x1632bd(0x12e)]?'symbol':typeof _0x21d7b6;},o(_0x3f579d);}function s(_0x4f66e5,_0x26ca75){const _0x3262b5=_0x2470;if(o(_0x4f66e5)!=_0x3262b5(0x127)||!_0x4f66e5)return _0x4f66e5;var _0x58f37e=_0x4f66e5[Symbol['toPrimitive']];if(_0x58f37e!==void 0x0){var _0x28f0e7=_0x58f37e[_0x3262b5(0x124)](_0x4f66e5,_0x26ca75||_0x3262b5(0x128));if(o(_0x28f0e7)!=_0x3262b5(0x127))return _0x28f0e7;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x26ca75===_0x3262b5(0x11d)?String:Number)(_0x4f66e5);}function c(_0x3540d1){const _0x6e47b9=_0x2470;var _0x2e67bc=s(_0x3540d1,'string');return o(_0x2e67bc)==_0x6e47b9(0x136)?_0x2e67bc:_0x2e67bc+'';}function l(_0x551d6e,_0x1c13e3,_0x51b705){const _0x31a8bf=_0x2470;return(_0x1c13e3=c(_0x1c13e3))in _0x551d6e?Object[_0x31a8bf(0x12c)](_0x551d6e,_0x1c13e3,{'value':_0x51b705,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x551d6e[_0x1c13e3]=_0x51b705,_0x551d6e;}function _0x3204(){const _0x31a809=['1027852iGPEhb','getStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','defineProperty','_injector','prototype','No\x20active\x20workbook\x20found.','IDLE','15fNyScY','18fgXsbP','getCurrentUnitOfType','getUnitId','452964pOaffs','symbol','get','22072uwpesc','277484hwsuLN','16460MIGICu','3gMBExr','stopFollowing','286988QulQmn','143pNKoMY','149056koyoFF','function','_liveShareController','getLiveShareCoordinatorSync','getLiveShareStatus','string','startPresenting','startFollowing','UNIVER_SHEET','_initialize','stopPresenting','constructor','call','extend','iterator','object','default'];_0x3204=function(){return _0x31a809;};return _0x3204();}var u=class extends _0x1926e9{constructor(..._0x56104e){const _0x10aae1=_0x2470;super(..._0x56104e),l(this,_0x10aae1(0x11a),void 0x0);}[_0x9377a(0x121)](_0x4cc677){const _0x57b3d7=_0x9377a;this['_liveShareController']=_0x4cc677[_0x57b3d7(0x137)](_0x1ead6f);}[_0x9377a(0x11c)](){const _0x30d4fc=_0x9377a;var _0x53b1c1;let _0x39e287=this[_0x30d4fc(0x12d)][_0x30d4fc(0x137)](_0x25ec40)[_0x30d4fc(0x133)](_0x44ba55[_0x30d4fc(0x120)]);if(!_0x39e287)throw Error('No\x20active\x20workbook\x20found.');let _0x54d196=_0x39e287[_0x30d4fc(0x134)](),_0xdd3ff=this['_liveShareController'][_0x30d4fc(0x11b)](_0x54d196);return(_0x53b1c1=_0xdd3ff==null?void 0x0:_0xdd3ff[_0x30d4fc(0x12a)]())==null?_0x1b5ca8[_0x30d4fc(0x130)]:_0x53b1c1;}[_0x9377a(0x11f)](){const _0x6e4210=_0x9377a;let _0x3db636=this['_injector'][_0x6e4210(0x137)](_0x25ec40)[_0x6e4210(0x133)](_0x44ba55[_0x6e4210(0x120)]);if(!_0x3db636)throw Error(_0x6e4210(0x12f));let _0x4895ef=_0x3db636['getUnitId'](),_0x5b9d15=this['_liveShareController'][_0x6e4210(0x11b)](_0x4895ef);if(!_0x5b9d15)throw Error(_0x6e4210(0x12b));_0x5b9d15['startFollowing']();}[_0x9377a(0x13c)](){const _0x5493c4=_0x9377a;let _0x2645df=this['_injector'][_0x5493c4(0x137)](_0x25ec40)[_0x5493c4(0x133)](_0x44ba55[_0x5493c4(0x120)]);if(!_0x2645df)throw Error(_0x5493c4(0x12f));let _0x58f88d=_0x2645df[_0x5493c4(0x134)](),_0x248d61=this[_0x5493c4(0x11a)][_0x5493c4(0x11b)](_0x58f88d);if(!_0x248d61)throw Error(_0x5493c4(0x12b));_0x248d61[_0x5493c4(0x13c)]();}[_0x9377a(0x11e)](){const _0x1d3367=_0x9377a;let _0x2f63ce=this[_0x1d3367(0x12d)][_0x1d3367(0x137)](_0x25ec40)[_0x1d3367(0x133)](_0x44ba55[_0x1d3367(0x120)]);if(!_0x2f63ce)throw Error(_0x1d3367(0x12f));let _0x32d0b4=_0x2f63ce[_0x1d3367(0x134)](),_0x5d0d38=this['_liveShareController'][_0x1d3367(0x11b)](_0x32d0b4);if(!_0x5d0d38)throw Error(_0x1d3367(0x12b));_0x5d0d38['tryStartPresenting']();}[_0x9377a(0x122)](){const _0x1ce9c8=_0x9377a;let _0x28a841=this[_0x1ce9c8(0x12d)][_0x1ce9c8(0x137)](_0x25ec40)[_0x1ce9c8(0x133)](_0x44ba55[_0x1ce9c8(0x120)]);if(!_0x28a841)throw Error(_0x1ce9c8(0x12f));let _0x1e57f3=_0x28a841[_0x1ce9c8(0x134)](),_0x1b350b=this[_0x1ce9c8(0x11a)]['getLiveShareCoordinatorSync'](_0x1e57f3);if(!_0x1b350b)throw Error(_0x1ce9c8(0x12b));_0x1b350b[_0x1ce9c8(0x122)]();}};_0x1926e9[_0x9377a(0x125)](u);var d=class extends _0x3cbf58{get['LiveShareStatusEnum'](){return _0x1b5ca8;}};_0x3cbf58[_0x9377a(0x125)](d);function _0x2470(_0x3b9907,_0x5d9a27){_0x3b9907=_0x3b9907-0x119;const _0x320412=_0x3204();let _0x2470f3=_0x320412[_0x3b9907];return _0x2470f3;}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 _0x261bc3=_0x4dec;(function(_0x33408b,_0x1f8b60){const _0x1b9d18=_0x4dec,_0x514800=_0x33408b();while(!![]){try{const _0x3ce1cb=-parseInt(_0x1b9d18(0x1b5))/0x1*(-parseInt(_0x1b9d18(0x1b9))/0x2)+parseInt(_0x1b9d18(0x19b))/0x3+parseInt(_0x1b9d18(0x1e7))/0x4+-parseInt(_0x1b9d18(0x1bb))/0x5*(-parseInt(_0x1b9d18(0x1a9))/0x6)+parseInt(_0x1b9d18(0x1af))/0x7*(parseInt(_0x1b9d18(0x1ff))/0x8)+-parseInt(_0x1b9d18(0x18f))/0x9+-parseInt(_0x1b9d18(0x1c2))/0xa;if(_0x3ce1cb===_0x1f8b60)break;else _0x514800['push'](_0x514800['shift']());}catch(_0x232004){_0x514800['push'](_0x514800['shift']());}}}(_0x17e9,0x2a80c));import{CollaborationEvent as _0x12c2c1,parseProtocolChangeset as _0x33d9e3}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x22e23c,SessionStatus as _0x21eb63,UniverCollaborationClientPlugin as _0x3c7edb}from'@univerjs-pro/collaboration-client';import{CommandType as _0x4194b0,DependentOn as _0x1e023b,Disposable as _0x4eb40c,DisposableCollection as _0x1eec39,ICommandService as _0x3d7ea5,IConfigService as _0x397d2f,IUniverInstanceService as _0x383ebd,Inject as _0x32b958,Injector as _0x1da4d7,Plugin as _0x507076,RxDisposable as _0x45cb97,UniverInstanceType as _0x11b71c,merge as _0x17ab15,mergeOverrideWithDependencies as _0x181612,registerDependencies as _0x28447a,toDisposable as _0x1638c4,touchDependencies as _0xe80ba}from'@univerjs/core';import{InsertSheetMutation as _0x56a7aa,SetWorksheetActiveOperation as _0xabfb1a}from'@univerjs/sheets';import{BehaviorSubject as _0x19f4f8,Subject as _0x1a5e9a,defer as _0xf20517,from as _0x272db5,of as _0x1c3fcc}from'rxjs';import{takeUntil as _0x28c0db,throttleTime as _0x4f6be8}from'rxjs/operators';import{SetScrollOperation as _0x2be65d,SetZoomRatioOperation as _0x29a9b7}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x66e4d0,IUIPartsService as _0x166cce,connectInjector as _0x5ecd17,useDependency as _0x59df5b,useObservable as _0x4f01fd}from'@univerjs/ui';import{Button as _0x217a44,Dropdown as _0x5e37fa,clsx as _0x1c008e}from'@univerjs/design';import{LiveShareIcon as _0x28428a}from'@univerjs/icons';import{useMemo as _0x509d3e}from'react';import{Fragment as _0x5e88da,jsx as _0xf6a67d,jsxs as _0x2306c2}from'react/jsx-runtime';function z(_0x206ec3){'@babel/helpers - typeof';const _0x5be19e=_0x4dec;return z=typeof Symbol=='function'&&typeof Symbol[_0x5be19e(0x1c9)]==_0x5be19e(0x1d8)?function(_0x296546){return typeof _0x296546;}:function(_0xd3e5d0){const _0x1de670=_0x5be19e;return _0xd3e5d0&&typeof Symbol=='function'&&_0xd3e5d0[_0x1de670(0x1d3)]===Symbol&&_0xd3e5d0!==Symbol[_0x1de670(0x1d2)]?'symbol':typeof _0xd3e5d0;},z(_0x206ec3);}function B(_0x423b30,_0x344c1a){const _0x15584c=_0x4dec;if(z(_0x423b30)!=_0x15584c(0x215)||!_0x423b30)return _0x423b30;var _0x3afd00=_0x423b30[Symbol[_0x15584c(0x20a)]];if(_0x3afd00!==void 0x0){var _0xbc677=_0x3afd00[_0x15584c(0x1bd)](_0x423b30,_0x344c1a||_0x15584c(0x211));if(z(_0xbc677)!=_0x15584c(0x215))return _0xbc677;throw TypeError(_0x15584c(0x18b));}return(_0x344c1a===_0x15584c(0x1e0)?String:Number)(_0x423b30);}function V(_0x48974b){const _0x542e44=_0x4dec;var _0x4949ed=B(_0x48974b,_0x542e44(0x1e0));return z(_0x4949ed)=='symbol'?_0x4949ed:_0x4949ed+'';}function H(_0x29fc1d,_0x1b97eb,_0x50a158){const _0x19badc=_0x4dec;return(_0x1b97eb=V(_0x1b97eb))in _0x29fc1d?Object[_0x19badc(0x1fb)](_0x29fc1d,_0x1b97eb,{'value':_0x50a158,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x29fc1d[_0x1b97eb]=_0x50a158,_0x29fc1d;}var U=class extends _0x4eb40c{constructor(..._0x3a55b7){const _0x36391f=_0x4dec;super(..._0x3a55b7),H(this,_0x36391f(0x1cf),new Set()),H(this,'_reporters',new Set());}[_0x261bc3(0x1ec)](_0x4bb395){const _0x1806ce=_0x261bc3;return this['_sharedOperations']['add'](_0x4bb395),_0x1638c4(()=>this[_0x1806ce(0x1cf)][_0x1806ce(0x210)](_0x4bb395));}[_0x261bc3(0x1cb)](_0x19ffbd){const _0x4dcb7a=_0x261bc3;return this[_0x4dcb7a(0x191)][_0x4dcb7a(0x203)](_0x19ffbd),_0x1638c4(()=>this[_0x4dcb7a(0x191)][_0x4dcb7a(0x210)](_0x19ffbd));}[_0x261bc3(0x1f6)](_0x9b285d){const _0x589c16=_0x261bc3;return this[_0x589c16(0x1cf)]['has'](_0x9b285d);}[_0x261bc3(0x20b)](_0x19b33f){const _0x47dc33=_0x261bc3;return Array['from'](this[_0x47dc33(0x191)])['map'](_0x57d698=>_0x57d698(_0x19b33f));}};function W(_0x27a0e7,_0x5bfb4d){return function(_0x6b299c,_0x95c95a){_0x5bfb4d(_0x6b299c,_0x95c95a,_0x27a0e7);};}function G(_0x44212e,_0x299052,_0x306315,_0x265db8){const _0x198191=_0x261bc3;var _0x4514c9=arguments['length'],_0x30689c=_0x4514c9<0x3?_0x299052:_0x265db8===null?_0x265db8=Object[_0x198191(0x1f7)](_0x299052,_0x306315):_0x265db8,_0x2993ed;if(typeof Reflect==_0x198191(0x215)&&typeof Reflect[_0x198191(0x1d6)]==_0x198191(0x196))_0x30689c=Reflect[_0x198191(0x1d6)](_0x44212e,_0x299052,_0x306315,_0x265db8);else{for(var _0xcc9567=_0x44212e['length']-0x1;_0xcc9567>=0x0;_0xcc9567--)(_0x2993ed=_0x44212e[_0xcc9567])&&(_0x30689c=(_0x4514c9<0x3?_0x2993ed(_0x30689c):_0x4514c9>0x3?_0x2993ed(_0x299052,_0x306315,_0x30689c):_0x2993ed(_0x299052,_0x306315))||_0x30689c);}return _0x4514c9>0x3&&_0x30689c&&Object['defineProperty'](_0x299052,_0x306315,_0x30689c),_0x30689c;}let K=class extends _0x45cb97{constructor(_0x123eb4,_0x5b0f69,_0x1262e2){const _0x122f2d=_0x261bc3;super(),this[_0x122f2d(0x207)]=_0x123eb4,this['_injector']=_0x5b0f69,this['_collabSessionService']=_0x1262e2,H(this,_0x122f2d(0x1a4),new Map()),this[_0x122f2d(0x1a0)]();}async[_0x261bc3(0x1ce)](_0x54f40e){const _0x3e67b7=_0x261bc3;return this[_0x3e67b7(0x1a4)][_0x3e67b7(0x1b2)](_0x54f40e)||await this[_0x3e67b7(0x1f9)](_0x54f40e),this[_0x3e67b7(0x1a4)][_0x3e67b7(0x21a)](_0x54f40e);}['getLiveShareCoordinatorSync'](_0x5b0cff){const _0x241403=_0x261bc3;var _0x1f604c;return(_0x1f604c=this[_0x241403(0x1a4)][_0x241403(0x21a)](_0x5b0cff))==null?null:_0x1f604c;}[_0x261bc3(0x1a0)](){const _0x5d27d1=_0x261bc3;this[_0x5d27d1(0x207)]['getTypeOfUnitAdded$'](_0x11b71c[_0x5d27d1(0x1b4)])[_0x5d27d1(0x1ca)](_0x28c0db(this[_0x5d27d1(0x199)]))['subscribe'](async _0x10d8c3=>{const _0x2aba64=_0x5d27d1;let _0x5396fb=_0x10d8c3[_0x2aba64(0x194)][_0x2aba64(0x1e9)]();this[_0x2aba64(0x1a4)][_0x2aba64(0x1b2)](_0x5396fb)||this[_0x2aba64(0x1f9)](_0x5396fb);}),this[_0x5d27d1(0x207)][_0x5d27d1(0x20e)](_0x11b71c[_0x5d27d1(0x1b4)])[_0x5d27d1(0x1ca)](_0x28c0db(this[_0x5d27d1(0x199)]))[_0x5d27d1(0x1a8)](_0x1e86e0=>{const _0x39555f=_0x5d27d1;let _0x3d29d3=_0x1e86e0['getUnitId'](),_0x29294c=this[_0x39555f(0x1a4)][_0x39555f(0x21a)](_0x3d29d3);_0x29294c==null||_0x29294c[_0x39555f(0x1d9)]();});}async[_0x261bc3(0x1f9)](_0xd39753){const _0x1c9ac3=_0x261bc3;let _0x4186c1=await this[_0x1c9ac3(0x1da)]['requireSession'](_0xd39753),_0x1a140c=this['_injector'][_0x1c9ac3(0x212)](J,_0xd39753,_0x4186c1);return _0x1a140c[_0x1c9ac3(0x19c)](),this[_0x1c9ac3(0x1a4)][_0x1c9ac3(0x1c8)](_0xd39753,_0x1a140c),_0x1a140c;}};K=G([W(0x0,_0x383ebd),W(0x1,_0x32b958(_0x1da4d7)),W(0x2,_0x32b958(_0x22e23c))],K);let q=function(_0x2aa245){const _0x5b5f61=_0x261bc3;return _0x2aa245[_0x5b5f61(0x1b8)]=_0x5b5f61(0x208),_0x2aa245[_0x5b5f61(0x1d7)]='idle',_0x2aa245[_0x5b5f61(0x1b3)]=_0x5b5f61(0x195),_0x2aa245['NOT_FOLLOWING']=_0x5b5f61(0x1b1),_0x2aa245[_0x5b5f61(0x1f4)]=_0x5b5f61(0x216),_0x2aa245;}({}),J=class extends _0x45cb97{get[_0x261bc3(0x1fa)](){return this['_status$']['getValue']();}constructor(_0x2e5295,_0x3f1f7a,_0x1d4923,_0x7aa6dc,_0x1e04a5){const _0x3d0696=_0x261bc3;super(),this['_unitID']=_0x2e5295,this[_0x3d0696(0x1eb)]=_0x3f1f7a,this[_0x3d0696(0x1e2)]=_0x1d4923,this[_0x3d0696(0x1aa)]=_0x7aa6dc,this[_0x3d0696(0x1a1)]=_0x1e04a5,H(this,_0x3d0696(0x193),new _0x19f4f8(_0x3d0696(0x1e3))),H(this,_0x3d0696(0x18c),this[_0x3d0696(0x193)][_0x3d0696(0x1de)]()),H(this,'_init',!0x1),H(this,'_commandDisposable',null),H(this,_0x3d0696(0x1f1),null);}[_0x261bc3(0x1d9)](){const _0x9e25a6=_0x261bc3;var _0x489389;(_0x489389=this[_0x9e25a6(0x214)])==null||_0x489389[_0x9e25a6(0x1d9)](),this[_0x9e25a6(0x193)][_0x9e25a6(0x1a7)]('idle'),this[_0x9e25a6(0x193)][_0x9e25a6(0x190)]();}[_0x261bc3(0x1a6)](){const _0x77ac89=_0x261bc3;return this[_0x77ac89(0x1fa)];}['init'](){const _0x4cee39=_0x261bc3;this[_0x4cee39(0x1a0)]||(this[_0x4cee39(0x1a0)]=!0x0,this[_0x4cee39(0x1eb)]['sessionStatus$'][_0x4cee39(0x1ca)](_0x28c0db(this[_0x4cee39(0x199)]))[_0x4cee39(0x1a8)](_0x4eb5da=>{const _0x107d61=_0x4cee39;switch(_0x4eb5da){case _0x21eb63[_0x107d61(0x1b8)]:this[_0x107d61(0x200)]();break;case _0x21eb63[_0x107d61(0x205)]:this[_0x107d61(0x218)]();break;default:}}),this[_0x4cee39(0x1eb)][_0x4cee39(0x19a)][_0x4cee39(0x1ca)](_0x28c0db(this[_0x4cee39(0x199)]))['subscribe'](_0x1a4a26=>{const _0x2eb9c9=_0x4cee39;let {eventID:_0x4ac43a}=_0x1a4a26;switch(_0x4ac43a){case _0x12c2c1[_0x2eb9c9(0x1f0)]:this[_0x2eb9c9(0x1ad)](_0x1a4a26);break;case _0x12c2c1[_0x2eb9c9(0x21b)]:this['_handleOperation'](_0x1a4a26);break;case _0x12c2c1['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x12c2c1[_0x2eb9c9(0x198)]:this[_0x2eb9c9(0x213)](_0x1a4a26);break;default:}}));}[_0x261bc3(0x1d5)](){const _0x3e77c2=_0x261bc3;this[_0x3e77c2(0x1eb)]['send']({'eventID':_0x12c2c1[_0x3e77c2(0x1dd)],'data':{'unitID':this[_0x3e77c2(0x1c5)],'userID':this['_collabSession'][_0x3e77c2(0x1dc)]()}},this[_0x3e77c2(0x1c5)]);}[_0x261bc3(0x1f3)](){const _0x55ab41=_0x261bc3;this[_0x55ab41(0x1fa)]==='presenting'&&(this['_status$'][_0x55ab41(0x1a7)](_0x55ab41(0x1e3)),this[_0x55ab41(0x1eb)]['send']({'eventID':_0x12c2c1[_0x55ab41(0x18d)],'data':{'unitID':this[_0x55ab41(0x1c5)]}},this[_0x55ab41(0x1c5)]));}[_0x261bc3(0x1e6)](){const _0xa3cb5f=_0x261bc3;this['_status']==='not-following'&&(this[_0xa3cb5f(0x193)][_0xa3cb5f(0x1a7)](_0xa3cb5f(0x195)),this['_startFollowing']());}[_0x261bc3(0x1e8)](){const _0x43d8e8=_0x261bc3;this[_0x43d8e8(0x1fa)]===_0x43d8e8(0x195)&&this[_0x43d8e8(0x1db)]();}['_handleNewHost'](_0x30d417){const _0x193423=_0x261bc3;let {presenter:_0x2a8be5}=_0x30d417[_0x193423(0x1c3)],_0x4a58e8=this[_0x193423(0x1eb)][_0x193423(0x1dc)]();this[_0x193423(0x1f1)]=_0x2a8be5,_0x2a8be5===_0x4a58e8?(this[_0x193423(0x1db)](),this[_0x193423(0x1bc)]()):this[_0x193423(0x1fa)]!==_0x193423(0x1b1)&&(this[_0x193423(0x1ae)](),this[_0x193423(0x1fd)]());}['_fetchOperations'](){const _0x33a2bd=_0x261bc3;let _0x2192c7={'eventID':_0x12c2c1['LIVESHARE_FETCH_OPERATIONS']};this[_0x33a2bd(0x1eb)]['send'](_0x2192c7,this[_0x33a2bd(0x1c5)]);}[_0x261bc3(0x1d4)](){const _0x59fc5a=_0x261bc3;this[_0x59fc5a(0x1f1)]=null,this[_0x59fc5a(0x1fa)]!==_0x59fc5a(0x216)&&this[_0x59fc5a(0x1f5)]();}[_0x261bc3(0x213)](_0x4a809a){const _0x424c97=_0x261bc3;if(this['_status']===_0x424c97(0x195)&&this['_presenter']===_0x4a809a[_0x424c97(0x1c3)]['memberID']){let _0x3b3513=_0x33d9e3(_0x4a809a[_0x424c97(0x1c3)])[_0x424c97(0x19f)][_0x424c97(0x1a2)]()[_0x424c97(0x1a3)](_0x9d517f=>_0x9d517f['id']===_0x56a7aa['id']);if(_0x3b3513){let _0x188211=_0x3b3513[_0x424c97(0x19d)][_0x424c97(0x1be)],_0x5097e0=_0x3b3513[_0x424c97(0x19d)]['sheet']['id'];setTimeout(()=>{const _0x20c3f5=_0x424c97;this['_commandService'][_0x20c3f5(0x1c4)](_0xabfb1a['id'],{'unitId':_0x188211,'subUnitId':_0x5097e0},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x5978de=_0x261bc3;var _0x3e95c8;(_0x3e95c8=this[_0x5978de(0x214)])==null||_0x3e95c8[_0x5978de(0x1d9)](),this[_0x5978de(0x193)]['next'](_0x5978de(0x216));let _0x137be8=new Map(),_0x24c481=this[_0x5978de(0x214)]=new _0x1eec39();_0x24c481[_0x5978de(0x203)](_0x1638c4(()=>{const _0x2a064e=_0x5978de;_0x137be8[_0x2a064e(0x1ef)](({subject:_0x2b668d,subscription:_0xb67ce9})=>{const _0x35d9ae=_0x2a064e;_0xb67ce9[_0x35d9ae(0x1c0)](),_0x2b668d[_0x35d9ae(0x190)]();}),_0x137be8[_0x2a064e(0x1c6)]();})),_0x24c481[_0x5978de(0x203)](this[_0x5978de(0x1a1)][_0x5978de(0x219)](_0x9b5589=>{const _0x5853bb=_0x5978de;if(_0x9b5589['type']!==_0x4194b0[_0x5853bb(0x1ac)]||!this['_liveShareService']['shouldShareOperation'](_0x9b5589['id']))return;let {id:_0x56a22b}=_0x9b5589,_0x178be9;if(_0x137be8[_0x5853bb(0x1b2)](_0x56a22b))_0x178be9=_0x137be8[_0x5853bb(0x21a)](_0x56a22b)[_0x5853bb(0x1d0)];else{var _0x3b9b0a;_0x178be9=new _0x1a5e9a();let _0x276e06=_0x178be9[_0x5853bb(0x1ca)](_0x4f6be8((_0x3b9b0a=this[_0x5853bb(0x1e2)][_0x5853bb(0x1fc)](_0x5853bb(0x20d)))==null?0xc8:_0x3b9b0a,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5853bb(0x1a8)](_0xad564a=>{const _0x544723=_0x5853bb;this[_0x544723(0x1eb)]['send']({'eventID':_0x12c2c1[_0x544723(0x21b)],'data':{'unitID':this['_unitID'],'operations':{[_0xad564a['id']]:{'id':_0xad564a['id'],'params':JSON['stringify'](_0xad564a[_0x544723(0x19d)])}}}},this[_0x544723(0x1c5)]);});_0x137be8[_0x5853bb(0x1c8)](_0x56a22b,{'subject':_0x178be9,'subscription':_0x276e06});}_0x178be9['next'](_0x9b5589);})),this[_0x5978de(0x1aa)][_0x5978de(0x20b)](this['_unitID'])[_0x5978de(0x1ef)](_0x46a8c0=>this['_collabSession'][_0x5978de(0x209)]({'eventID':_0x12c2c1['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x46a8c0['id']]:{'id':_0x46a8c0['id'],'params':JSON['stringify'](_0x46a8c0['params'])}}}},this[_0x5978de(0x1c5)]));}[_0x261bc3(0x1ae)](){const _0x251d39=_0x261bc3;var _0x41e6a2;this['_status$'][_0x251d39(0x1a7)](_0x251d39(0x1e3)),(_0x41e6a2=this[_0x251d39(0x214)])==null||_0x41e6a2[_0x251d39(0x1d9)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x207016=_0x261bc3;var _0xe2c14;(_0xe2c14=this[_0x207016(0x214)])==null||_0xe2c14[_0x207016(0x1d9)](),this[_0x207016(0x193)][_0x207016(0x1a7)](_0x207016(0x195));}[_0x261bc3(0x1f5)](){const _0x101999=_0x261bc3;var _0x5a55cd;this[_0x101999(0x193)][_0x101999(0x1a7)](_0x101999(0x1e3)),(_0x5a55cd=this[_0x101999(0x214)])==null||_0x5a55cd[_0x101999(0x1d9)](),this[_0x101999(0x214)]=null;}[_0x261bc3(0x1db)](){const _0x22ce88=_0x261bc3;var _0x1d4ba1;this[_0x22ce88(0x193)][_0x22ce88(0x1a7)](_0x22ce88(0x1b1)),(_0x1d4ba1=this[_0x22ce88(0x214)])==null||_0x1d4ba1[_0x22ce88(0x1d9)]();}[_0x261bc3(0x1b0)](_0x5b089c){const _0x518c44=_0x261bc3;if(['presenting',_0x518c44(0x1b1),_0x518c44(0x208)][_0x518c44(0x1df)](this[_0x518c44(0x1fa)])||!_0x5b089c[_0x518c44(0x1c3)][_0x518c44(0x1ba)]||_0x5b089c[_0x518c44(0x1c3)][_0x518c44(0x1ba)]===this[_0x518c44(0x1eb)][_0x518c44(0x1dc)]())return;this['_status']==='idle'&&this[_0x518c44(0x1fd)]();let _0xc1cc36=_0x5b089c[_0x518c44(0x1c3)][_0x518c44(0x1ed)];Object[_0x518c44(0x1cd)](_0xc1cc36)[_0x518c44(0x1ef)](_0x3e2185=>{const _0x10209f=_0x518c44;this['_commandService'][_0x10209f(0x1c4)](_0x3e2185['id'],_0x3e2185['params']?JSON[_0x10209f(0x20f)](_0x3e2185[_0x10209f(0x19d)]):null,{'fromCollab':!0x0});});}[_0x261bc3(0x200)](){const _0x4dd85f=_0x261bc3;var _0x5231a9;this[_0x4dd85f(0x193)][_0x4dd85f(0x1a7)](_0x4dd85f(0x208)),(_0x5231a9=this[_0x4dd85f(0x214)])==null||_0x5231a9[_0x4dd85f(0x1d9)]();}[_0x261bc3(0x218)](){const _0xc21c0d=_0x261bc3;this[_0xc21c0d(0x193)][_0xc21c0d(0x1a7)]('idle'),this[_0xc21c0d(0x1ee)]();}};J=G([W(0x2,_0x397d2f),W(0x3,_0x32b958(U)),W(0x4,_0x3d7ea5)],J);var se=_0x261bc3(0x1d1),ce='1.0.0-alpha.5';const Y={};let X=class extends _0x4eb40c{constructor(_0x256570){const _0x2fa028=_0x261bc3;super(),this[_0x2fa028(0x1aa)]=_0x256570,this[_0x2fa028(0x1a0)]();}[_0x261bc3(0x1a0)](){const _0x44affc=_0x261bc3;[_0x29a9b7['id'],_0x2be65d['id'],_0xabfb1a['id']][_0x44affc(0x1ef)](_0x3a9dd5=>{const _0x27a330=_0x44affc;this[_0x27a330(0x201)](this['_liveShareService']['registerSharedOperation'](_0x3a9dd5));});}};X=G([W(0x0,_0x32b958(U))],X);function Z(){const _0x5ac959=_0x261bc3;let _0x2f5e86=_0x59df5b(K),_0x4d3fd=_0x59df5b(_0x383ebd),_0x4a2210=_0x4f01fd(()=>_0x4d3fd[_0x5ac959(0x1ea)](_0x11b71c[_0x5ac959(0x1b4)]),void 0x0,!0x1,[]),_0x1c67d3=_0x4f01fd(_0x509d3e(()=>_0x4a2210?_0xf20517(()=>_0x272db5(_0x2f5e86[_0x5ac959(0x1ce)](_0x4a2210[_0x5ac959(0x1e9)]()))):_0x1c3fcc(null),[_0x4a2210,_0x2f5e86]),null),_0x51a0f4=_0x4f01fd(_0x1c67d3?()=>_0x1c67d3[_0x5ac959(0x18c)]:null,_0x5ac959(0x1e3),!0x1,[_0x1c67d3]);return _0x1c67d3?_0xf6a67d(_0x5e37fa,{'align':_0x5ac959(0x1e5),'disabled':_0x51a0f4===_0x5ac959(0x208),'className':_0x5ac959(0x202),'overlay':_0xf6a67d(le,{'status':_0x51a0f4,'coordinator':_0x1c67d3}),'children':_0xf6a67d(_0x5ac959(0x192),{'className':_0x1c008e(_0x5ac959(0x197),{'univer-cursor-not-allowed':_0x51a0f4===_0x5ac959(0x208),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51a0f4!=='offline'}),'type':_0x5ac959(0x192),'children':_0xf6a67d(_0x28428a,{})})}):null;}function le(_0x2461c0){const _0x2d2b1b=_0x261bc3;let {status:_0x525182,coordinator:_0xefde41}=_0x2461c0;switch(_0x525182){case _0x2d2b1b(0x1e3):return _0xf6a67d(ue,{'coordinator':_0xefde41});case _0x2d2b1b(0x195):return _0xf6a67d(de,{'coordinator':_0xefde41});case _0x2d2b1b(0x1b1):return _0xf6a67d(fe,{'coordinator':_0xefde41});case _0x2d2b1b(0x208):return _0xf6a67d(me,{});case _0x2d2b1b(0x216):return _0xf6a67d(pe,{'coordinator':_0xefde41});default:return null;}}function ue(_0x1b839a){const _0x4aba7c=_0x261bc3;let {coordinator:_0x1d85aa}=_0x1b839a;return _0x2306c2(_0x5e88da,{'children':[_0xf6a67d(_0x4aba7c(0x18e),{'className':_0x4aba7c(0x1f8),'children':'Present\x20this\x20document'}),_0xf6a67d(_0x217a44,{'onClick':()=>_0x1d85aa[_0x4aba7c(0x1d5)](),'children':'Start'})]});}function _0x17e9(){const _0xfcd267=['disposeWithMe','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','add','_uiPartsService','ONLINE','setConfig','_univerInstanceService','offline','send','toPrimitive','getInitialStates','packageName','SAME_OPERATION_SHARE_INTERVAL','getTypeOfUnitDisposed$','parse','delete','default','createInstance','_handleNewChangeSets','_commandDisposable','object','presenting','_config','_handleOnline','onCommandExecuted','get','LIVESHARE_OPERATION','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','status$','LIVESHARE_TERMINATE','div','2039256qnXZbj','complete','_reporters','button','_status$','unit','following','function','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','NEW_CHANGESETS','dispose$','event$','143064bxQGvu','init','params','You\x27re\x20presenting\x20the\x20document','mutations','_init','_commandService','reverse','find','_entities','registerComponent','getStatus','next','subscribe','10818JygUVe','_liveShareService','onRendered','OPERATION','_handleNewHost','_stopPresenting','19978lBvzIC','_handleOperation','not-following','has','FOLLOWING','UNIVER_SHEET','2639thmZAt','Start\x20following','Stop\x20presenting','OFFLINE','126JTsfbe','presenter','955YdxYdY','_startPresenting','call','unitId','HEADER_MENU','unsubscribe','UNIVER_LIVE_SHARE_PLUGIN','8068290bfvpQL','data','executeCommand','_unitID','clear','_mountLiveShare','set','iterator','pipe','registerInitialStateReporter','UNIVER_UNKNOWN','values','getLiveShareCoordinator','_sharedOperations','subject','@univerjs-pro/live-share','prototype','constructor','_handleTerminate','tryStartPresenting','decorate','IDLE','symbol','dispose','_collabSessionService','_stopFollowing','getMemberID','LIVESHARE_REQUEST_HOST','asObservable','includes','string','_injector','_configService','idle','You\x27re\x20following\x20the\x20presenter','end','startFollowing','1352404dhgbMc','stopFollowing','getUnitId','getCurrentTypeOfUnit$','_collabSession','registerSharedOperation','operations','_fetchOperations','forEach','LIVESHARE_NEW_HOST','_presenter','type','stopPresenting','PRESENTING','_beIdle','shouldShareOperation','getOwnPropertyDescriptor','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startLiveShareCoordinator','_status','defineProperty','getConfig','_startFollowing','version','872NcJpGc','_handleOffline'];_0x17e9=function(){return _0xfcd267;};return _0x17e9();}function de(_0x2957cf){const _0x256ee2=_0x261bc3;let {coordinator:_0x555cd6}=_0x2957cf;return _0x2306c2(_0x5e88da,{'children':[_0xf6a67d('div',{'className':_0x256ee2(0x1f8),'children':_0x256ee2(0x1e4)}),_0xf6a67d(_0x217a44,{'onClick':()=>_0x555cd6[_0x256ee2(0x1e8)](),'children':'Stop\x20following'})]});}function fe(_0x348f4b){const _0x4afebc=_0x261bc3;let {coordinator:_0x23b50e}=_0x348f4b;return _0x2306c2(_0x5e88da,{'children':[_0xf6a67d(_0x4afebc(0x18e),{'className':_0x4afebc(0x1f8),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0xf6a67d(_0x217a44,{'variant':'text','onClick':()=>_0x23b50e[_0x4afebc(0x1e6)](),'children':_0x4afebc(0x1b6)})]});}function _0x4dec(_0x5c3129,_0x528f67){_0x5c3129=_0x5c3129-0x18b;const _0x17e976=_0x17e9();let _0x4decbe=_0x17e976[_0x5c3129];return _0x4decbe;}function pe(_0x24eb55){const _0x1ac56d=_0x261bc3;let {coordinator:_0x7b519d}=_0x24eb55;return _0x2306c2(_0x5e88da,{'children':[_0xf6a67d(_0x1ac56d(0x18e),{'className':_0x1ac56d(0x1f8),'children':_0x1ac56d(0x19e)}),_0xf6a67d(_0x217a44,{'variant':_0x1ac56d(0x211),'onClick':()=>_0x7b519d['stopPresenting'](),'children':_0x1ac56d(0x1b7)})]});}function me(){return _0xf6a67d(_0x5e88da,{'children':'You\x27are\x20offline.'});}let Q=class extends _0x4eb40c{constructor(_0xadd82,_0x59fe88){const _0x5a1010=_0x261bc3;super(),this[_0x5a1010(0x1e1)]=_0xadd82,this[_0x5a1010(0x204)]=_0x59fe88,this['_mountLiveShare']();}[_0x261bc3(0x1c7)](){const _0x458598=_0x261bc3;this['disposeWithMe'](this[_0x458598(0x204)][_0x458598(0x1a5)](_0x66e4d0[_0x458598(0x1bf)],()=>_0x5ecd17(Z,this[_0x458598(0x1e1)])));}};Q=G([W(0x0,_0x32b958(_0x1da4d7)),W(0x1,_0x166cce)],Q);let $=class extends _0x507076{constructor(_0x5ae356=Y,_0x296fb5,_0x2bf0a5){const _0x478599=_0x261bc3;super(),this[_0x478599(0x217)]=_0x5ae356,this[_0x478599(0x1e1)]=_0x296fb5,this['_configService']=_0x2bf0a5;let {..._0x420661}=_0x17ab15({},Y,this['_config']);this[_0x478599(0x1e2)][_0x478599(0x206)]('live-share.config',_0x420661);}['onStarting'](){const _0x429d80=_0x261bc3;_0x28447a(this[_0x429d80(0x1e1)],_0x181612([[U],[K],[X],[Q]],this[_0x429d80(0x217)]['override'])),_0xe80ba(this['_injector'],[[X]]);}[_0x261bc3(0x1ab)](){_0xe80ba(this['_injector'],[[Q]]);}};H($,_0x261bc3(0x1f2),_0x11b71c[_0x261bc3(0x1cc)]),H($,'pluginName',_0x261bc3(0x1c1)),H($,_0x261bc3(0x20c),se),H($,_0x261bc3(0x1fe),ce),$=G([_0x1e023b(_0x3c7edb),W(0x1,_0x32b958(_0x1da4d7)),W(0x2,_0x397d2f)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4785(){const _0x24f182=['function','IUniverInstanceService','prototype','getLiveShareCoordinatorSync','stopPresenting','@univerjs-pro/live-share','39vqvXig','_liveShareController','6277185vknThE','FEnum','amd','IDLE','11806136nnRcxS','stopFollowing','getUnitId','LiveShareStatusEnum','2295120IntzLP','7HHEpOW','UniverCoreFacade','getCurrentUnitOfType','@univerjs/core/facade','default','startPresenting','1060854RVNeab','string','17008866pmcICd','startFollowing','548733nhzBpT','getStatus','FUniver','364220FuICuB','symbol','No\x20active\x20workbook\x20found.','iterator','UNIVER_SHEET','object','_injector','call','@univerjs/core','LiveShareStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverInstanceType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','get'];_0x4785=function(){return _0x24f182;};return _0x4785();}function _0xeee2(_0x3e6ab2,_0x406aa0){_0x3e6ab2=_0x3e6ab2-0x145;const _0x4785a7=_0x4785();let _0xeee2bd=_0x4785a7[_0x3e6ab2];return _0xeee2bd;}(function(_0x3749f0,_0x19ed35){const _0x210a2a=_0xeee2,_0x1622b8=_0x3749f0();while(!![]){try{const _0x492337=-parseInt(_0x210a2a(0x16f))/0x1+parseInt(_0x210a2a(0x164))/0x2+-parseInt(_0x210a2a(0x15a))/0x3*(parseInt(_0x210a2a(0x146))/0x4)+parseInt(_0x210a2a(0x15c))/0x5+-parseInt(_0x210a2a(0x16b))/0x6+-parseInt(_0x210a2a(0x165))/0x7*(parseInt(_0x210a2a(0x160))/0x8)+parseInt(_0x210a2a(0x16d))/0x9;if(_0x492337===_0x19ed35)break;else _0x1622b8['push'](_0x1622b8['shift']());}catch(_0x421f7a){_0x1622b8['push'](_0x1622b8['shift']());}}}(_0x4785,0xdda47),function(_0x5c5a0e,_0x45c65a){const _0xc6196c=_0xeee2;typeof exports==_0xc6196c(0x14b)&&typeof module<'u'?_0x45c65a(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0xc6196c(0x154)&&define[_0xc6196c(0x15e)]?define([_0xc6196c(0x159),_0xc6196c(0x14e),_0xc6196c(0x168)],_0x45c65a):(_0x5c5a0e=typeof globalThis<'u'?globalThis:_0x5c5a0e||self,_0x45c65a(_0x5c5a0e['UniverProLiveShare'],_0x5c5a0e['UniverCore'],_0x5c5a0e[_0xc6196c(0x166)]));}(this,function(_0x499e06,_0x1b9ac3,_0x40a95a){const _0x51c50d=_0xeee2;function _0x102b72(_0x43804f){'@babel/helpers - typeof';const _0x3b14af=_0xeee2;return _0x102b72=typeof Symbol==_0x3b14af(0x154)&&typeof Symbol[_0x3b14af(0x149)]==_0x3b14af(0x147)?function(_0x104b92){return typeof _0x104b92;}:function(_0x12762e){const _0x118060=_0x3b14af;return _0x12762e&&typeof Symbol=='function'&&_0x12762e['constructor']===Symbol&&_0x12762e!==Symbol[_0x118060(0x156)]?_0x118060(0x147):typeof _0x12762e;},_0x102b72(_0x43804f);}function _0x48f657(_0x383d45,_0x33d376){const _0x56cd25=_0xeee2;if(_0x102b72(_0x383d45)!=_0x56cd25(0x14b)||!_0x383d45)return _0x383d45;var _0x4c302e=_0x383d45[Symbol['toPrimitive']];if(_0x4c302e!==void 0x0){var _0x4d9dd0=_0x4c302e[_0x56cd25(0x14d)](_0x383d45,_0x33d376||_0x56cd25(0x169));if(_0x102b72(_0x4d9dd0)!=_0x56cd25(0x14b))return _0x4d9dd0;throw TypeError(_0x56cd25(0x152));}return(_0x33d376===_0x56cd25(0x16c)?String:Number)(_0x383d45);}function _0x3845eb(_0x1c256b){const _0x1664fc=_0xeee2;var _0x143933=_0x48f657(_0x1c256b,_0x1664fc(0x16c));return _0x102b72(_0x143933)==_0x1664fc(0x147)?_0x143933:_0x143933+'';}function _0x21b865(_0x3571a3,_0x49df76,_0x225d5e){return(_0x49df76=_0x3845eb(_0x49df76))in _0x3571a3?Object['defineProperty'](_0x3571a3,_0x49df76,{'value':_0x225d5e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3571a3[_0x49df76]=_0x225d5e,_0x3571a3;}var _0x24dd2a=class extends _0x40a95a[_0x51c50d(0x145)]{constructor(..._0x101f63){const _0x2a5d3f=_0x51c50d;super(..._0x101f63),_0x21b865(this,_0x2a5d3f(0x15b),void 0x0);}['_initialize'](_0x41d9ef){const _0x2bfd09=_0x51c50d;this[_0x2bfd09(0x15b)]=_0x41d9ef[_0x2bfd09(0x153)](_0x499e06['LiveShareController']);}['getLiveShareStatus'](){const _0x4454db=_0x51c50d;var _0x58411f;let _0x2fac0e=this[_0x4454db(0x14c)]['get'](_0x1b9ac3[_0x4454db(0x155)])[_0x4454db(0x167)](_0x1b9ac3[_0x4454db(0x151)][_0x4454db(0x14a)]);if(!_0x2fac0e)throw Error(_0x4454db(0x148));let _0x5c0d44=_0x2fac0e['getUnitId'](),_0x2cf776=this[_0x4454db(0x15b)][_0x4454db(0x157)](_0x5c0d44);return(_0x58411f=_0x2cf776==null?void 0x0:_0x2cf776[_0x4454db(0x170)]())==null?_0x499e06[_0x4454db(0x14f)][_0x4454db(0x15f)]:_0x58411f;}[_0x51c50d(0x16e)](){const _0x1bdf65=_0x51c50d;let _0x23189e=this[_0x1bdf65(0x14c)][_0x1bdf65(0x153)](_0x1b9ac3[_0x1bdf65(0x155)])[_0x1bdf65(0x167)](_0x1b9ac3[_0x1bdf65(0x151)][_0x1bdf65(0x14a)]);if(!_0x23189e)throw Error(_0x1bdf65(0x148));let _0x44b712=_0x23189e[_0x1bdf65(0x162)](),_0x1b7669=this[_0x1bdf65(0x15b)]['getLiveShareCoordinatorSync'](_0x44b712);if(!_0x1b7669)throw Error(_0x1bdf65(0x150));_0x1b7669[_0x1bdf65(0x16e)]();}[_0x51c50d(0x161)](){const _0x409a28=_0x51c50d;let _0x5f5a85=this[_0x409a28(0x14c)][_0x409a28(0x153)](_0x1b9ac3['IUniverInstanceService'])[_0x409a28(0x167)](_0x1b9ac3[_0x409a28(0x151)][_0x409a28(0x14a)]);if(!_0x5f5a85)throw Error('No\x20active\x20workbook\x20found.');let _0x38f39b=_0x5f5a85[_0x409a28(0x162)](),_0x57e3d3=this[_0x409a28(0x15b)][_0x409a28(0x157)](_0x38f39b);if(!_0x57e3d3)throw Error(_0x409a28(0x150));_0x57e3d3[_0x409a28(0x161)]();}[_0x51c50d(0x16a)](){const _0x3d494e=_0x51c50d;let _0x1fc98e=this[_0x3d494e(0x14c)][_0x3d494e(0x153)](_0x1b9ac3['IUniverInstanceService'])[_0x3d494e(0x167)](_0x1b9ac3[_0x3d494e(0x151)]['UNIVER_SHEET']);if(!_0x1fc98e)throw Error(_0x3d494e(0x148));let _0x157099=_0x1fc98e[_0x3d494e(0x162)](),_0x5a9819=this['_liveShareController'][_0x3d494e(0x157)](_0x157099);if(!_0x5a9819)throw Error(_0x3d494e(0x150));_0x5a9819['tryStartPresenting']();}[_0x51c50d(0x158)](){const _0x12bc1b=_0x51c50d;let _0x558e7f=this[_0x12bc1b(0x14c)][_0x12bc1b(0x153)](_0x1b9ac3[_0x12bc1b(0x155)])['getCurrentUnitOfType'](_0x1b9ac3['UniverInstanceType'][_0x12bc1b(0x14a)]);if(!_0x558e7f)throw Error('No\x20active\x20workbook\x20found.');let _0x3dbfd7=_0x558e7f['getUnitId'](),_0x189869=this[_0x12bc1b(0x15b)][_0x12bc1b(0x157)](_0x3dbfd7);if(!_0x189869)throw Error(_0x12bc1b(0x150));_0x189869['stopPresenting']();}};_0x40a95a[_0x51c50d(0x145)]['extend'](_0x24dd2a);var _0x56d5bf=class extends _0x40a95a['FEnum']{get[_0x51c50d(0x163)](){const _0x315ee1=_0x51c50d;return _0x499e06[_0x315ee1(0x14f)];}};_0x40a95a[_0x51c50d(0x15d)]['extend'](_0x56d5bf);}));
|
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(_0x37ea86,_0x5341bb){const _0x5e8930=_0x54a8,_0x378bf4=_0x37ea86();while(!![]){try{const _0x497020=-parseInt(_0x5e8930(0xa9))/0x1+-parseInt(_0x5e8930(0xed))/0x2+parseInt(_0x5e8930(0x127))/0x3*(parseInt(_0x5e8930(0xad))/0x4)+parseInt(_0x5e8930(0x11b))/0x5*(-parseInt(_0x5e8930(0x15a))/0x6)+-parseInt(_0x5e8930(0x126))/0x7*(-parseInt(_0x5e8930(0x16e))/0x8)+-parseInt(_0x5e8930(0xe4))/0x9+parseInt(_0x5e8930(0x114))/0xa;if(_0x497020===_0x5341bb)break;else _0x378bf4['push'](_0x378bf4['shift']());}catch(_0xed52fa){_0x378bf4['push'](_0x378bf4['shift']());}}}(_0x1a5e,0xbebb8),function(_0x230efc,_0x2932db){const _0x40561f=_0x54a8;typeof exports=='object'&&typeof module<'u'?_0x2932db(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==_0x40561f(0xd0)&&define[_0x40561f(0x17f)]?define([_0x40561f(0x133),_0x40561f(0x185),_0x40561f(0xe1),_0x40561f(0xe6),_0x40561f(0x13d),_0x40561f(0x152),_0x40561f(0x119),_0x40561f(0x182),_0x40561f(0xa6),_0x40561f(0xc5),'react',_0x40561f(0x143)],_0x2932db):(_0x230efc=typeof globalThis<'u'?globalThis:_0x230efc||self,_0x2932db(_0x230efc[_0x40561f(0x12e)]={},_0x230efc[_0x40561f(0x161)],_0x230efc[_0x40561f(0x106)],_0x230efc[_0x40561f(0x117)],_0x230efc['UniverSheets'],_0x230efc[_0x40561f(0x152)],_0x230efc[_0x40561f(0x152)][_0x40561f(0xf8)],_0x230efc[_0x40561f(0x11c)],_0x230efc[_0x40561f(0x173)],_0x230efc[_0x40561f(0x17c)],_0x230efc['React'],_0x230efc['React']));}(this,function(_0xee738c,_0x57f7d4,_0x2ef358,_0x9f5bcc,_0x4bc96b,_0x140176,_0x335518,_0x5b0f3e,_0x4463d7,_0x3aa7cc,_0x42ed6b,_0x52c28a){const _0x4dbffb=_0x54a8;Object[_0x4dbffb(0x134)](_0xee738c,Symbol[_0x4dbffb(0x179)],{'value':'Module'});function _0x38317a(_0x4439e3){'@babel/helpers - typeof';const _0x52f7f5=_0x4dbffb;return _0x38317a=typeof Symbol=='function'&&typeof Symbol[_0x52f7f5(0xf1)]==_0x52f7f5(0x11e)?function(_0xe7c725){return typeof _0xe7c725;}:function(_0x3de81e){const _0x47e5f7=_0x52f7f5;return _0x3de81e&&typeof Symbol==_0x47e5f7(0xd0)&&_0x3de81e['constructor']===Symbol&&_0x3de81e!==Symbol['prototype']?_0x47e5f7(0x11e):typeof _0x3de81e;},_0x38317a(_0x4439e3);}function _0x4b24f2(_0x157fce,_0xa762e6){const _0x416e29=_0x4dbffb;if(_0x38317a(_0x157fce)!='object'||!_0x157fce)return _0x157fce;var _0x3c18d3=_0x157fce[Symbol['toPrimitive']];if(_0x3c18d3!==void 0x0){var _0x4106e7=_0x3c18d3[_0x416e29(0xdc)](_0x157fce,_0xa762e6||'default');if(_0x38317a(_0x4106e7)!='object')return _0x4106e7;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xa762e6===_0x416e29(0x121)?String:Number)(_0x157fce);}function _0x2398f6(_0x5b1607){const _0x163570=_0x4dbffb;var _0x3dd3ae=_0x4b24f2(_0x5b1607,_0x163570(0x121));return _0x38317a(_0x3dd3ae)==_0x163570(0x11e)?_0x3dd3ae:_0x3dd3ae+'';}function _0x272476(_0x1e32aa,_0x220b20,_0x29dde8){const _0x1ab2d7=_0x4dbffb;return(_0x220b20=_0x2398f6(_0x220b20))in _0x1e32aa?Object[_0x1ab2d7(0x134)](_0x1e32aa,_0x220b20,{'value':_0x29dde8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1e32aa[_0x220b20]=_0x29dde8,_0x1e32aa;}var _0x56bded=class extends _0x9f5bcc['Disposable']{constructor(..._0x1f975e){const _0x5a4fa9=_0x4dbffb;super(..._0x1f975e),_0x272476(this,_0x5a4fa9(0xb4),new Set()),_0x272476(this,_0x5a4fa9(0x14e),new Set());}[_0x4dbffb(0xab)](_0x428522){const _0x1ecccc=_0x4dbffb;return this[_0x1ecccc(0xb4)]['add'](_0x428522),(0x0,_0x9f5bcc[_0x1ecccc(0x17b)])(()=>this[_0x1ecccc(0xb4)]['delete'](_0x428522));}[_0x4dbffb(0x149)](_0x2d8992){const _0x20e790=_0x4dbffb;return this['_reporters'][_0x20e790(0xbc)](_0x2d8992),(0x0,_0x9f5bcc[_0x20e790(0x17b)])(()=>this['_reporters'][_0x20e790(0xd5)](_0x2d8992));}[_0x4dbffb(0xd1)](_0x1b3177){const _0x3170b5=_0x4dbffb;return this[_0x3170b5(0xb4)][_0x3170b5(0xd6)](_0x1b3177);}[_0x4dbffb(0xb1)](_0x26a32b){const _0x5ca9cc=_0x4dbffb;return Array[_0x5ca9cc(0x170)](this['_reporters'])[_0x5ca9cc(0x109)](_0x1d4031=>_0x1d4031(_0x26a32b));}};function _0xd78c00(_0x4abb14,_0x5f5b63){return function(_0x4ef7ba,_0x4b2297){_0x5f5b63(_0x4ef7ba,_0x4b2297,_0x4abb14);};}function _0x4fbcd5(_0x401ade,_0x37885b,_0x55164b,_0x29f0da){const _0x896e9c=_0x4dbffb;var _0xabd946=arguments[_0x896e9c(0x10c)],_0xb744be=_0xabd946<0x3?_0x37885b:_0x29f0da===null?_0x29f0da=Object[_0x896e9c(0xa1)](_0x37885b,_0x55164b):_0x29f0da,_0x31a831;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0xb744be=Reflect[_0x896e9c(0x146)](_0x401ade,_0x37885b,_0x55164b,_0x29f0da);else{for(var _0x289b3c=_0x401ade[_0x896e9c(0x10c)]-0x1;_0x289b3c>=0x0;_0x289b3c--)(_0x31a831=_0x401ade[_0x289b3c])&&(_0xb744be=(_0xabd946<0x3?_0x31a831(_0xb744be):_0xabd946>0x3?_0x31a831(_0x37885b,_0x55164b,_0xb744be):_0x31a831(_0x37885b,_0x55164b))||_0xb744be);}return _0xabd946>0x3&&_0xb744be&&Object[_0x896e9c(0x134)](_0x37885b,_0x55164b,_0xb744be),_0xb744be;}let _0x4e5713=class extends _0x9f5bcc['RxDisposable']{constructor(_0x16fc6,_0x575831,_0x38ae9d){const _0x27ae72=_0x4dbffb;super(),this[_0x27ae72(0xcc)]=_0x16fc6,this[_0x27ae72(0x16f)]=_0x575831,this['_collabSessionService']=_0x38ae9d,_0x272476(this,_0x27ae72(0x140),new Map()),this[_0x27ae72(0xd2)]();}async[_0x4dbffb(0x105)](_0x351946){const _0x56b7c9=_0x4dbffb;return this[_0x56b7c9(0x140)][_0x56b7c9(0xd6)](_0x351946)||await this[_0x56b7c9(0x11f)](_0x351946),this[_0x56b7c9(0x140)][_0x56b7c9(0x181)](_0x351946);}[_0x4dbffb(0x142)](_0x31c6c2){const _0x576baf=_0x4dbffb;var _0x5e94c6;return(_0x5e94c6=this[_0x576baf(0x140)][_0x576baf(0x181)](_0x31c6c2))==null?null:_0x5e94c6;}[_0x4dbffb(0xd2)](){const _0x5225f4=_0x4dbffb;this[_0x5225f4(0xcc)][_0x5225f4(0xf0)](_0x9f5bcc[_0x5225f4(0x16c)][_0x5225f4(0xd8)])[_0x5225f4(0x16d)]((0x0,_0x335518[_0x5225f4(0x16b)])(this[_0x5225f4(0x10d)]))[_0x5225f4(0xc0)](async _0x3b5a8f=>{const _0x4f37e3=_0x5225f4;let _0x2e678f=_0x3b5a8f[_0x4f37e3(0x17a)][_0x4f37e3(0xeb)]();this['_entities'][_0x4f37e3(0xd6)](_0x2e678f)||this[_0x4f37e3(0x11f)](_0x2e678f);}),this[_0x5225f4(0xcc)]['getTypeOfUnitDisposed$'](_0x9f5bcc['UniverInstanceType'][_0x5225f4(0xd8)])['pipe']((0x0,_0x335518[_0x5225f4(0x16b)])(this[_0x5225f4(0x10d)]))['subscribe'](_0x10e021=>{const _0x3fbe25=_0x5225f4;let _0x4ce547=_0x10e021['getUnitId'](),_0x3c6976=this['_entities'][_0x3fbe25(0x181)](_0x4ce547);_0x3c6976==null||_0x3c6976[_0x3fbe25(0x103)]();});}async['_startLiveShareCoordinator'](_0x318dd5){const _0x55218a=_0x4dbffb;let _0x21f601=await this[_0x55218a(0xb9)][_0x55218a(0x148)](_0x318dd5),_0x53d8fe=this[_0x55218a(0x16f)]['createInstance'](_0x1cbeb6,_0x318dd5,_0x21f601);return _0x53d8fe['init'](),this[_0x55218a(0x140)][_0x55218a(0x17e)](_0x318dd5,_0x53d8fe),_0x53d8fe;}};_0x4e5713=_0x4fbcd5([_0xd78c00(0x0,_0x9f5bcc[_0x4dbffb(0x14d)]),_0xd78c00(0x1,(0x0,_0x9f5bcc[_0x4dbffb(0x15d)])(_0x9f5bcc[_0x4dbffb(0xc9)])),_0xd78c00(0x2,(0x0,_0x9f5bcc[_0x4dbffb(0x15d)])(_0x2ef358[_0x4dbffb(0xbb)]))],_0x4e5713);let _0x24dc49=function(_0x49a7d4){const _0x4b449c=_0x4dbffb;return _0x49a7d4['OFFLINE']=_0x4b449c(0x102),_0x49a7d4[_0x4b449c(0x13a)]=_0x4b449c(0xa0),_0x49a7d4[_0x4b449c(0x130)]=_0x4b449c(0x112),_0x49a7d4[_0x4b449c(0xb8)]=_0x4b449c(0x129),_0x49a7d4[_0x4b449c(0xbe)]=_0x4b449c(0x115),_0x49a7d4;}({}),_0x1cbeb6=class extends _0x9f5bcc[_0x4dbffb(0x13f)]{get[_0x4dbffb(0xa3)](){const _0x4f095d=_0x4dbffb;return this[_0x4f095d(0x160)][_0x4f095d(0x166)]();}constructor(_0x2acfb7,_0x1262b2,_0x5e870c,_0x530f05,_0x16cb96){const _0x191147=_0x4dbffb;super(),this[_0x191147(0x155)]=_0x2acfb7,this['_collabSession']=_0x1262b2,this['_configService']=_0x5e870c,this['_liveShareService']=_0x530f05,this[_0x191147(0x124)]=_0x16cb96,_0x272476(this,_0x191147(0x160),new _0x140176[(_0x191147(0xdb))]('idle')),_0x272476(this,_0x191147(0x167),this[_0x191147(0x160)][_0x191147(0x174)]()),_0x272476(this,'_init',!0x1),_0x272476(this,'_commandDisposable',null),_0x272476(this,_0x191147(0xae),null);}[_0x4dbffb(0x103)](){const _0x184336=_0x4dbffb;var _0xeeae7c;(_0xeeae7c=this['_commandDisposable'])==null||_0xeeae7c[_0x184336(0x103)](),this['_status$'][_0x184336(0x187)](_0x184336(0xa0)),this[_0x184336(0x160)][_0x184336(0x12a)]();}[_0x4dbffb(0xaa)](){const _0x30e722=_0x4dbffb;return this[_0x30e722(0xa3)];}[_0x4dbffb(0xb5)](){const _0x23898c=_0x4dbffb;this['_init']||(this[_0x23898c(0xd2)]=!0x0,this[_0x23898c(0x11d)][_0x23898c(0x10a)][_0x23898c(0x16d)]((0x0,_0x335518[_0x23898c(0x16b)])(this[_0x23898c(0x10d)]))['subscribe'](_0x47a48d=>{const _0x115b4c=_0x23898c;switch(_0x47a48d){case _0x2ef358['SessionStatus']['OFFLINE']:this[_0x115b4c(0x14c)]();break;case _0x2ef358[_0x115b4c(0xe0)][_0x115b4c(0x154)]:this['_handleOnline']();break;default:}}),this[_0x23898c(0x11d)][_0x23898c(0x128)]['pipe']((0x0,_0x335518['takeUntil'])(this[_0x23898c(0x10d)]))[_0x23898c(0xc0)](_0x269063=>{const _0x947b0c=_0x23898c;let {eventID:_0x1d3e7c}=_0x269063;switch(_0x1d3e7c){case _0x57f7d4['CollaborationEvent'][_0x947b0c(0x15c)]:this[_0x947b0c(0x17d)](_0x269063);break;case _0x57f7d4[_0x947b0c(0xaf)][_0x947b0c(0xd3)]:this[_0x947b0c(0x132)](_0x269063);break;case _0x57f7d4[_0x947b0c(0xaf)]['LIVESHARE_TERMINATE']:this[_0x947b0c(0x188)]();break;case _0x57f7d4['CollaborationEvent']['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x269063);break;default:}}));}[_0x4dbffb(0xb2)](){const _0x224eb1=_0x4dbffb;this[_0x224eb1(0x11d)][_0x224eb1(0xf9)]({'eventID':_0x57f7d4[_0x224eb1(0xaf)][_0x224eb1(0x164)],'data':{'unitID':this[_0x224eb1(0x155)],'userID':this[_0x224eb1(0x11d)][_0x224eb1(0xf4)]()}},this[_0x224eb1(0x155)]);}[_0x4dbffb(0xca)](){const _0x321c59=_0x4dbffb;this[_0x321c59(0xa3)]===_0x321c59(0x115)&&(this[_0x321c59(0x160)][_0x321c59(0x187)](_0x321c59(0xa0)),this[_0x321c59(0x11d)][_0x321c59(0xf9)]({'eventID':_0x57f7d4[_0x321c59(0xaf)][_0x321c59(0xc8)],'data':{'unitID':this[_0x321c59(0x155)]}},this['_unitID']));}[_0x4dbffb(0x175)](){const _0x1492a6=_0x4dbffb;this[_0x1492a6(0xa3)]===_0x1492a6(0x129)&&(this[_0x1492a6(0x160)]['next']('following'),this['_startFollowing']());}[_0x4dbffb(0x156)](){const _0x39633d=_0x4dbffb;this[_0x39633d(0xa3)]===_0x39633d(0x112)&&this[_0x39633d(0xbd)]();}['_handleNewHost'](_0xc59ed9){const _0x13cf92=_0x4dbffb;let {presenter:_0x214f08}=_0xc59ed9['data'],_0x2204ba=this[_0x13cf92(0x11d)][_0x13cf92(0xf4)]();this[_0x13cf92(0xae)]=_0x214f08,_0x214f08===_0x2204ba?(this[_0x13cf92(0xbd)](),this['_startPresenting']()):this[_0x13cf92(0xa3)]!=='not-following'&&(this[_0x13cf92(0xcb)](),this['_startFollowing']());}[_0x4dbffb(0x13b)](){const _0x47bb2f=_0x4dbffb;let _0x4eb3c8={'eventID':_0x57f7d4[_0x47bb2f(0xaf)][_0x47bb2f(0xc6)]};this[_0x47bb2f(0x11d)]['send'](_0x4eb3c8,this[_0x47bb2f(0x155)]);}[_0x4dbffb(0x188)](){const _0x2ee47e=_0x4dbffb;this['_presenter']=null,this[_0x2ee47e(0xa3)]!=='presenting'&&this['_beIdle']();}[_0x4dbffb(0x14a)](_0xc54ea2){const _0x67c666=_0x4dbffb;if(this['_status']==='following'&&this[_0x67c666(0xae)]===_0xc54ea2['data'][_0x67c666(0x108)]){let _0x3e4337=(0x0,_0x57f7d4[_0x67c666(0xba)])(_0xc54ea2[_0x67c666(0xc2)])[_0x67c666(0xa2)]['reverse']()[_0x67c666(0x141)](_0x40e73f=>_0x40e73f['id']===_0x4bc96b[_0x67c666(0x14b)]['id']);if(_0x3e4337){let _0x47ae39=_0x3e4337['params']['unitId'],_0x216b2b=_0x3e4337[_0x67c666(0x186)][_0x67c666(0x11a)]['id'];setTimeout(()=>{const _0x59b8ba=_0x67c666;this[_0x59b8ba(0x124)][_0x59b8ba(0xe8)](_0x4bc96b[_0x59b8ba(0x177)]['id'],{'unitId':_0x47ae39,'subUnitId':_0x216b2b},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0xfd6fa0=_0x4dbffb;var _0x4f089c;(_0x4f089c=this[_0xfd6fa0(0xb7)])==null||_0x4f089c[_0xfd6fa0(0x103)](),this[_0xfd6fa0(0x160)][_0xfd6fa0(0x187)](_0xfd6fa0(0x115));let _0x17416d=new Map(),_0x252315=this[_0xfd6fa0(0xb7)]=new _0x9f5bcc['DisposableCollection']();_0x252315[_0xfd6fa0(0xbc)]((0x0,_0x9f5bcc[_0xfd6fa0(0x17b)])(()=>{const _0x5daf44=_0xfd6fa0;_0x17416d[_0x5daf44(0xcf)](({subject:_0x3759f6,subscription:_0x53cc82})=>{const _0x5409d2=_0x5daf44;_0x53cc82[_0x5409d2(0xc3)](),_0x3759f6['complete']();}),_0x17416d['clear']();})),_0x252315[_0xfd6fa0(0xbc)](this[_0xfd6fa0(0x124)][_0xfd6fa0(0xa8)](_0x2f754a=>{const _0x3face4=_0xfd6fa0;if(_0x2f754a['type']!==_0x9f5bcc[_0x3face4(0x18a)]['OPERATION']||!this[_0x3face4(0x12f)][_0x3face4(0xd1)](_0x2f754a['id']))return;let {id:_0x2a3a15}=_0x2f754a,_0xed9a8c;if(_0x17416d['has'](_0x2a3a15))_0xed9a8c=_0x17416d[_0x3face4(0x181)](_0x2a3a15)[_0x3face4(0x111)];else{var _0x4e95ba;_0xed9a8c=new _0x140176[(_0x3face4(0x163))]();let _0x21ed56=_0xed9a8c[_0x3face4(0x16d)]((0x0,_0x335518[_0x3face4(0xbf)])((_0x4e95ba=this[_0x3face4(0x15b)][_0x3face4(0x18c)](_0x3face4(0x165)))==null?0xc8:_0x4e95ba,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3face4(0xc0)](_0x260afe=>{const _0x4a7356=_0x3face4;this[_0x4a7356(0x11d)][_0x4a7356(0xf9)]({'eventID':_0x57f7d4[_0x4a7356(0xaf)][_0x4a7356(0xd3)],'data':{'unitID':this[_0x4a7356(0x155)],'operations':{[_0x260afe['id']]:{'id':_0x260afe['id'],'params':JSON[_0x4a7356(0xb6)](_0x260afe['params'])}}}},this['_unitID']);});_0x17416d[_0x3face4(0x17e)](_0x2a3a15,{'subject':_0xed9a8c,'subscription':_0x21ed56});}_0xed9a8c[_0x3face4(0x187)](_0x2f754a);})),this[_0xfd6fa0(0x12f)][_0xfd6fa0(0xb1)](this[_0xfd6fa0(0x155)])[_0xfd6fa0(0xcf)](_0x2057c6=>this[_0xfd6fa0(0x11d)]['send']({'eventID':_0x57f7d4[_0xfd6fa0(0xaf)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xfd6fa0(0x155)],'operations':{[_0x2057c6['id']]:{'id':_0x2057c6['id'],'params':JSON[_0xfd6fa0(0xb6)](_0x2057c6[_0xfd6fa0(0x186)])}}}},this[_0xfd6fa0(0x155)]));}[_0x4dbffb(0xcb)](){const _0x2e2a8d=_0x4dbffb;var _0x7ae012;this[_0x2e2a8d(0x160)]['next']('idle'),(_0x7ae012=this[_0x2e2a8d(0xb7)])==null||_0x7ae012[_0x2e2a8d(0x103)](),this[_0x2e2a8d(0xb7)]=null;}[_0x4dbffb(0xda)](){const _0x5d94cf=_0x4dbffb;var _0x93bf94;(_0x93bf94=this[_0x5d94cf(0xb7)])==null||_0x93bf94[_0x5d94cf(0x103)](),this[_0x5d94cf(0x160)][_0x5d94cf(0x187)](_0x5d94cf(0x112));}[_0x4dbffb(0x153)](){const _0x356dc7=_0x4dbffb;var _0x3ee5d0;this[_0x356dc7(0x160)][_0x356dc7(0x187)](_0x356dc7(0xa0)),(_0x3ee5d0=this[_0x356dc7(0xb7)])==null||_0x3ee5d0[_0x356dc7(0x103)](),this[_0x356dc7(0xb7)]=null;}['_stopFollowing'](){const _0xe5b80b=_0x4dbffb;var _0x2e9949;this[_0xe5b80b(0x160)][_0xe5b80b(0x187)]('not-following'),(_0x2e9949=this[_0xe5b80b(0xb7)])==null||_0x2e9949[_0xe5b80b(0x103)]();}[_0x4dbffb(0x132)](_0x1e0947){const _0x1b4b09=_0x4dbffb;if([_0x1b4b09(0x115),_0x1b4b09(0x129),_0x1b4b09(0x102)][_0x1b4b09(0x15f)](this[_0x1b4b09(0xa3)])||!_0x1e0947['data'][_0x1b4b09(0xf5)]||_0x1e0947[_0x1b4b09(0xc2)]['presenter']===this[_0x1b4b09(0x11d)]['getMemberID']())return;this[_0x1b4b09(0xa3)]===_0x1b4b09(0xa0)&&this[_0x1b4b09(0xda)]();let _0x5b52ac=_0x1e0947['data'][_0x1b4b09(0x171)];Object['values'](_0x5b52ac)[_0x1b4b09(0xcf)](_0x14acf4=>{const _0x23c5da=_0x1b4b09;this[_0x23c5da(0x124)]['executeCommand'](_0x14acf4['id'],_0x14acf4['params']?JSON['parse'](_0x14acf4['params']):null,{'fromCollab':!0x0});});}[_0x4dbffb(0x14c)](){const _0x47c0e5=_0x4dbffb;var _0x1f448f;this[_0x47c0e5(0x160)][_0x47c0e5(0x187)]('offline'),(_0x1f448f=this[_0x47c0e5(0xb7)])==null||_0x1f448f['dispose']();}[_0x4dbffb(0x169)](){const _0x25c189=_0x4dbffb;this[_0x25c189(0x160)][_0x25c189(0x187)](_0x25c189(0xa0)),this[_0x25c189(0x13b)]();}};_0x1cbeb6=_0x4fbcd5([_0xd78c00(0x2,_0x9f5bcc[_0x4dbffb(0x157)]),_0xd78c00(0x3,(0x0,_0x9f5bcc[_0x4dbffb(0x15d)])(_0x56bded)),_0xd78c00(0x4,_0x9f5bcc[_0x4dbffb(0x138)])],_0x1cbeb6);var _0x3847d6=_0x4dbffb(0x139),_0x2604f2=_0x4dbffb(0x135);let _0x33e3be={},_0x19a572=class extends _0x9f5bcc[_0x4dbffb(0xa4)]{constructor(_0xbd5432){const _0x43e6e5=_0x4dbffb;super(),this[_0x43e6e5(0x12f)]=_0xbd5432,this[_0x43e6e5(0xd2)]();}[_0x4dbffb(0xd2)](){const _0x49d3e1=_0x4dbffb;[_0x5b0f3e[_0x49d3e1(0x14f)]['id'],_0x5b0f3e['SetScrollOperation']['id'],_0x4bc96b[_0x49d3e1(0x177)]['id']]['forEach'](_0x451859=>{const _0x91105=_0x49d3e1;this[_0x91105(0x12c)](this[_0x91105(0x12f)][_0x91105(0xab)](_0x451859));});}};_0x19a572=_0x4fbcd5([_0xd78c00(0x0,(0x0,_0x9f5bcc[_0x4dbffb(0x15d)])(_0x56bded))],_0x19a572);function _0x8e0947({ref:_0x34128d,..._0x4e47aa}){const _0x354ec2=_0x4dbffb;let {icon:_0x7d9ef5,id:_0x206c69,className:_0x387537,extend:_0x5747b0,..._0x479468}=_0x4e47aa,_0x7fded=(_0x354ec2(0x15e)+_0x206c69+'\x20'+(_0x387537||''))[_0x354ec2(0xfc)](),_0x41e9c5=(0x0,_0x42ed6b[_0x354ec2(0xe7)])('_'+_0x5c9b07());return _0x4f99af(_0x7d9ef5,''+_0x206c69,{'defIds':_0x7d9ef5[_0x354ec2(0xc1)],'idSuffix':_0x41e9c5[_0x354ec2(0x131)]},{'ref':_0x34128d,'className':_0x7fded,..._0x479468},_0x5747b0);}function _0x4f99af(_0x1cf013,_0x2e0b5f,_0x2aa57b,_0x299679,_0x17133d){const _0xe81e0e=_0x4dbffb;return(0x0,_0x42ed6b[_0xe81e0e(0x113)])(_0x1cf013[_0xe81e0e(0xf7)],{'key':_0x2e0b5f,..._0x1106d4(_0x1cf013,_0x2aa57b,_0x17133d),..._0x299679},(_0x59828e(_0x1cf013,_0x2aa57b)[_0xe81e0e(0xe9)]||[])[_0xe81e0e(0x109)]((_0xfd8b56,_0x50000c)=>_0x4f99af(_0xfd8b56,_0x2e0b5f+'-'+_0x1cf013[_0xe81e0e(0xf7)]+'-'+_0x50000c,_0x2aa57b,void 0x0,_0x17133d)));}function _0x1106d4(_0x778c6c,_0x367c17,_0x3727b2){const _0xc8dc69=_0x4dbffb;let _0xfb5cd7={..._0x778c6c['attrs']};_0x3727b2!=null&&_0x3727b2[_0xc8dc69(0x150)]&&_0xfb5cd7[_0xc8dc69(0x168)]===_0xc8dc69(0x150)&&(_0xfb5cd7[_0xc8dc69(0x168)]=_0x3727b2[_0xc8dc69(0x150)]),_0x3727b2!=null&&_0x3727b2[_0xc8dc69(0x150)]&&_0xfb5cd7[_0xc8dc69(0xee)]===_0xc8dc69(0x150)&&(_0xfb5cd7[_0xc8dc69(0xee)]=_0x3727b2[_0xc8dc69(0x150)]),_0x778c6c[_0xc8dc69(0xf7)]===_0xc8dc69(0x100)&&_0xfb5cd7['id']&&(_0xfb5cd7['id']+=_0x367c17[_0xc8dc69(0xd4)]),Object[_0xc8dc69(0xb3)](_0xfb5cd7)[_0xc8dc69(0xcf)](([_0x2cabe8,_0xe70f76])=>{const _0x3dd561=_0xc8dc69;_0x2cabe8===_0x3dd561(0x100)&&typeof _0xe70f76=='string'&&(_0xfb5cd7[_0x2cabe8]=_0xe70f76[_0x3dd561(0x12d)](/url\(#(.*)\)/,'url(#$1'+_0x367c17[_0x3dd561(0xd4)]+')'));});let {defIds:_0x3492d9}=_0x367c17;return!_0x3492d9||_0x3492d9[_0xc8dc69(0x10c)]===0x0?_0xfb5cd7:(_0x778c6c[_0xc8dc69(0xf7)]===_0xc8dc69(0xfb)&&_0xfb5cd7[_0xc8dc69(0x10f)]&&(_0xfb5cd7[_0xc8dc69(0x10f)]+=_0x367c17['idSuffix']),Object['entries'](_0xfb5cd7)[_0xc8dc69(0xcf)](([_0xc8b4cc,_0x535172])=>{const _0x272fad=_0xc8dc69;typeof _0x535172==_0x272fad(0x121)&&(_0xfb5cd7[_0xc8b4cc]=_0x535172[_0x272fad(0x12d)](/url\(#(.*)\)/,_0x272fad(0xe2)+_0x367c17[_0x272fad(0xd4)]+')'));}),_0xfb5cd7);}function _0x59828e(_0x1c0c0b,_0xa5eb84){const _0x5f56f9=_0x4dbffb;var _0xa48e2f;let {defIds:_0x90f0a4}=_0xa5eb84;return!_0x90f0a4||_0x90f0a4[_0x5f56f9(0x10c)]===0x0?_0x1c0c0b:_0x1c0c0b[_0x5f56f9(0xf7)]==='defs'&&(_0xa48e2f=_0x1c0c0b[_0x5f56f9(0xe9)])!=null&&_0xa48e2f[_0x5f56f9(0x10c)]?{..._0x1c0c0b,'children':_0x1c0c0b[_0x5f56f9(0xe9)]['map'](_0x297d1d=>typeof _0x297d1d[_0x5f56f9(0x145)]['id']==_0x5f56f9(0x121)&&_0x90f0a4&&_0x90f0a4[_0x5f56f9(0x15f)](_0x297d1d[_0x5f56f9(0x145)]['id'])?{..._0x297d1d,'attrs':{..._0x297d1d[_0x5f56f9(0x145)],'id':_0x297d1d[_0x5f56f9(0x145)]['id']+_0xa5eb84['idSuffix']}}:_0x297d1d)}:_0x1c0c0b;}function _0x5c9b07(){const _0x5c21cb=_0x4dbffb;return Math[_0x5c21cb(0x120)]()[_0x5c21cb(0xa5)](0x24)[_0x5c21cb(0xef)](0x2,0x8);}_0x8e0947[_0x4dbffb(0xff)]=_0x4dbffb(0xc7);let _0x2cbcfa={'tag':'svg','attrs':{'xmlns':_0x4dbffb(0xf2),'fill':_0x4dbffb(0xf6),'viewBox':_0x4dbffb(0x125),'width':'1em','height':'1em'},'children':[{'tag':_0x4dbffb(0x162),'attrs':{'fill':_0x4dbffb(0xc4),'d':_0x4dbffb(0x10e)}},{'tag':_0x4dbffb(0x162),'attrs':{'fill':'currentColor','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':_0x4dbffb(0xdf),'clipRule':_0x4dbffb(0xdf)}}]},_0x525d9e=(0x0,_0x42ed6b['forwardRef'])(function(_0x369965,_0x29f98f){const _0x21b3a1=_0x4dbffb;return(0x0,_0x42ed6b[_0x21b3a1(0x113)])(_0x8e0947,Object['assign']({},_0x369965,{'id':'live-share-icon','ref':_0x29f98f,'icon':_0x2cbcfa}));});_0x525d9e[_0x4dbffb(0xff)]=_0x4dbffb(0xd9);function _0x2b1b99(){const _0x3e9b92=_0x4dbffb;let _0x384a6e=(0x0,_0x4463d7[_0x3e9b92(0xe3)])(_0x4e5713),_0x151ee3=(0x0,_0x4463d7['useDependency'])(_0x9f5bcc['IUniverInstanceService']),_0x4fdc7a=(0x0,_0x4463d7['useObservable'])(()=>_0x151ee3[_0x3e9b92(0x10b)](_0x9f5bcc[_0x3e9b92(0x16c)][_0x3e9b92(0xd8)]),void 0x0,!0x1,[]),_0x489b56=(0x0,_0x4463d7[_0x3e9b92(0x147)])((0x0,_0x42ed6b[_0x3e9b92(0xfe)])(()=>_0x4fdc7a?(0x0,_0x140176[_0x3e9b92(0x172)])(()=>(0x0,_0x140176[_0x3e9b92(0x170)])(_0x384a6e['getLiveShareCoordinator'](_0x4fdc7a[_0x3e9b92(0xeb)]()))):(0x0,_0x140176['of'])(null),[_0x4fdc7a,_0x384a6e]),null),_0x232642=(0x0,_0x4463d7[_0x3e9b92(0x147)])(_0x489b56?()=>_0x489b56['status$']:null,_0x3e9b92(0xa0),!0x1,[_0x489b56]);return _0x489b56?(0x0,_0x52c28a[_0x3e9b92(0x122)])(_0x3aa7cc[_0x3e9b92(0x144)],{'align':'end','disabled':_0x232642===_0x3e9b92(0x102),'className':_0x3e9b92(0x158),'overlay':(0x0,_0x52c28a[_0x3e9b92(0x122)])(_0x51c659,{'status':_0x232642,'coordinator':_0x489b56}),'children':(0x0,_0x52c28a[_0x3e9b92(0x122)])('button',{'className':(0x0,_0x3aa7cc['clsx'])(_0x3e9b92(0xfd),{'univer-cursor-not-allowed':_0x232642===_0x3e9b92(0x102),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x232642!==_0x3e9b92(0x102)}),'type':'button','children':(0x0,_0x52c28a['jsx'])(_0x525d9e,{})})}):null;}function _0x51c659(_0x10e6c9){const _0x5efd9e=_0x4dbffb;let {status:_0x357931,coordinator:_0x117842}=_0x10e6c9;switch(_0x357931){case _0x5efd9e(0xa0):return(0x0,_0x52c28a[_0x5efd9e(0x122)])(_0x5e0088,{'coordinator':_0x117842});case _0x5efd9e(0x112):return(0x0,_0x52c28a[_0x5efd9e(0x122)])(_0x486894,{'coordinator':_0x117842});case'not-following':return(0x0,_0x52c28a[_0x5efd9e(0x122)])(_0x5c4578,{'coordinator':_0x117842});case _0x5efd9e(0x102):return(0x0,_0x52c28a[_0x5efd9e(0x122)])(_0x39985d,{});case _0x5efd9e(0x115):return(0x0,_0x52c28a[_0x5efd9e(0x122)])(_0x2145b8,{'coordinator':_0x117842});default:return null;}}function _0x5e0088(_0x2f6c8a){const _0x26d538=_0x4dbffb;let {coordinator:_0x543fe6}=_0x2f6c8a;return(0x0,_0x52c28a['jsxs'])(_0x52c28a[_0x26d538(0x18d)],{'children':[(0x0,_0x52c28a[_0x26d538(0x122)])(_0x26d538(0x12b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x26d538(0x107)}),(0x0,_0x52c28a[_0x26d538(0x122)])(_0x3aa7cc[_0x26d538(0x178)],{'onClick':()=>_0x543fe6[_0x26d538(0xb2)](),'children':_0x26d538(0x184)})]});}function _0x486894(_0x3f06a8){const _0x25a542=_0x4dbffb;let {coordinator:_0x422c2c}=_0x3f06a8;return(0x0,_0x52c28a[_0x25a542(0x101)])(_0x52c28a[_0x25a542(0x18d)],{'children':[(0x0,_0x52c28a[_0x25a542(0x122)])(_0x25a542(0x12b),{'className':_0x25a542(0xdd),'children':_0x25a542(0x118)}),(0x0,_0x52c28a['jsx'])(_0x3aa7cc[_0x25a542(0x178)],{'onClick':()=>_0x422c2c['stopFollowing'](),'children':_0x25a542(0x123)})]});}function _0x5c4578(_0xf0e91f){const _0x117d98=_0x4dbffb;let {coordinator:_0x2446d7}=_0xf0e91f;return(0x0,_0x52c28a[_0x117d98(0x101)])(_0x52c28a[_0x117d98(0x18d)],{'children':[(0x0,_0x52c28a[_0x117d98(0x122)])('div',{'className':_0x117d98(0xdd),'children':_0x117d98(0x159)}),(0x0,_0x52c28a[_0x117d98(0x122)])(_0x3aa7cc['Button'],{'variant':'text','onClick':()=>_0x2446d7[_0x117d98(0x175)](),'children':'Start\x20following'})]});}function _0x2145b8(_0x44e17b){const _0x53faa9=_0x4dbffb;let {coordinator:_0x1f18bb}=_0x44e17b;return(0x0,_0x52c28a[_0x53faa9(0x101)])(_0x52c28a[_0x53faa9(0x18d)],{'children':[(0x0,_0x52c28a[_0x53faa9(0x122)])(_0x53faa9(0x12b),{'className':_0x53faa9(0xdd),'children':_0x53faa9(0x16a)}),(0x0,_0x52c28a['jsx'])(_0x3aa7cc['Button'],{'variant':_0x53faa9(0x151),'onClick':()=>_0x1f18bb[_0x53faa9(0xca)](),'children':_0x53faa9(0x110)})]});}function _0x39985d(){const _0x1407a0=_0x4dbffb;return(0x0,_0x52c28a[_0x1407a0(0x122)])(_0x52c28a['Fragment'],{'children':_0x1407a0(0xde)});}let _0x26f49a=class extends _0x9f5bcc[_0x4dbffb(0xa4)]{constructor(_0x237c13,_0x542ed1){const _0x5de30a=_0x4dbffb;super(),this[_0x5de30a(0x16f)]=_0x237c13,this[_0x5de30a(0x183)]=_0x542ed1,this[_0x5de30a(0xec)]();}[_0x4dbffb(0xec)](){const _0x54fde3=_0x4dbffb;this[_0x54fde3(0x12c)](this['_uiPartsService'][_0x54fde3(0xac)](_0x4463d7[_0x54fde3(0x13e)][_0x54fde3(0x104)],()=>(0x0,_0x4463d7[_0x54fde3(0x116)])(_0x2b1b99,this[_0x54fde3(0x16f)])));}};_0x26f49a=_0x4fbcd5([_0xd78c00(0x0,(0x0,_0x9f5bcc[_0x4dbffb(0x15d)])(_0x9f5bcc[_0x4dbffb(0xc9)])),_0xd78c00(0x1,_0x4463d7[_0x4dbffb(0xe5)])],_0x26f49a);let _0x52fe39=class extends _0x9f5bcc[_0x4dbffb(0x18b)]{constructor(_0x137108=_0x33e3be,_0x5f05c7,_0x5b1e74){const _0x21d78f=_0x4dbffb;super(),this[_0x21d78f(0x13c)]=_0x137108,this[_0x21d78f(0x16f)]=_0x5f05c7,this[_0x21d78f(0x15b)]=_0x5b1e74;let {..._0x484508}=(0x0,_0x9f5bcc[_0x21d78f(0x176)])({},_0x33e3be,this[_0x21d78f(0x13c)]);this[_0x21d78f(0x15b)][_0x21d78f(0xcd)]('live-share.config',_0x484508);}[_0x4dbffb(0x180)](){const _0xe22cde=_0x4dbffb;(0x0,_0x9f5bcc[_0xe22cde(0xb0)])(this[_0xe22cde(0x16f)],(0x0,_0x9f5bcc[_0xe22cde(0xd7)])([[_0x56bded],[_0x4e5713],[_0x19a572],[_0x26f49a]],this['_config']['override'])),(0x0,_0x9f5bcc[_0xe22cde(0x137)])(this[_0xe22cde(0x16f)],[[_0x19a572]]);}[_0x4dbffb(0xf3)](){const _0x2aba84=_0x4dbffb;(0x0,_0x9f5bcc['touchDependencies'])(this[_0x2aba84(0x16f)],[[_0x26f49a]]);}};_0x272476(_0x52fe39,'type',_0x9f5bcc[_0x4dbffb(0x16c)][_0x4dbffb(0xa7)]),_0x272476(_0x52fe39,'pluginName',_0x4dbffb(0x189)),_0x272476(_0x52fe39,_0x4dbffb(0xce),_0x3847d6),_0x272476(_0x52fe39,'version',_0x2604f2),_0x52fe39=_0x4fbcd5([(0x0,_0x9f5bcc[_0x4dbffb(0xea)])(_0x2ef358[_0x4dbffb(0xfa)]),_0xd78c00(0x1,(0x0,_0x9f5bcc[_0x4dbffb(0x15d)])(_0x9f5bcc[_0x4dbffb(0xc9)])),_0xd78c00(0x2,_0x9f5bcc['IConfigService'])],_0x52fe39),Object['defineProperty'](_0xee738c,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x4e5713;}}),_0xee738c[_0x4dbffb(0x136)]=_0x24dc49,Object['defineProperty'](_0xee738c,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return _0x52fe39;}});}));function _0x54a8(_0x1d9eee,_0x4aeb8d){_0x1d9eee=_0x1d9eee-0xa0;const _0x1a5e6a=_0x1a5e();let _0x54a847=_0x1a5e6a[_0x1d9eee];return _0x54a847;}function _0x1a5e(){const _0x5e462c=['parseProtocolChangeset','CollaborationSessionService','add','_stopFollowing','PRESENTING','throttleTime','subscribe','defIds','data','unsubscribe','currentColor','@univerjs/design','LIVESHARE_FETCH_OPERATIONS','UniverIcon','LIVESHARE_TERMINATE','Injector','stopPresenting','_stopPresenting','_univerInstanceService','setConfig','packageName','forEach','function','shouldShareOperation','_init','LIVESHARE_OPERATION','idSuffix','delete','has','mergeOverrideWithDependencies','UNIVER_SHEET','LiveShareIcon','_startFollowing','BehaviorSubject','call','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27are\x20offline.','evenodd','SessionStatus','@univerjs-pro/collaboration-client','url(#$1','useDependency','6224490kjCWoA','IUIPartsService','@univerjs/core','useRef','executeCommand','children','DependentOn','getUnitId','_mountLiveShare','2664080AeCqtU','stroke','substring','getTypeOfUnitAdded$','iterator','http://www.w3.org/2000/svg','onRendered','getMemberID','presenter','none','tag','operators','send','UniverCollaborationClientPlugin','use','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','useMemo','displayName','mask','jsxs','offline','dispose','HEADER_MENU','getLiveShareCoordinator','UniverProCollaborationClient','Present\x20this\x20document','memberID','map','sessionStatus$','getCurrentTypeOfUnit$','length','dispose$','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','xlink:href','Stop\x20presenting','subject','following','createElement','33470920zIOaqz','presenting','connectInjector','UniverCore','You\x27re\x20following\x20the\x20presenter','rxjs/operators','sheet','5ivTeyW','UniverSheetsUi','_collabSession','symbol','_startLiveShareCoordinator','random','string','jsx','Stop\x20following','_commandService','0\x200\x2017\x2017','21hXvCXd','4737nAWhhv','event$','not-following','complete','div','disposeWithMe','replace','UniverProLiveShare','_liveShareService','FOLLOWING','current','_handleOperation','exports','defineProperty','1.0.0-alpha.5','LiveShareStatus','touchDependencies','ICommandService','@univerjs-pro/live-share','IDLE','_fetchOperations','_config','@univerjs/sheets','BuiltInUIPart','RxDisposable','_entities','find','getLiveShareCoordinatorSync','react/jsx-runtime','Dropdown','attrs','decorate','useObservable','requireSession','registerInitialStateReporter','_handleNewChangeSets','InsertSheetMutation','_handleOffline','IUniverInstanceService','_reporters','SetZoomRatioOperation','colorChannel1','default','rxjs','_beIdle','ONLINE','_unitID','stopFollowing','IConfigService','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','You\x27re\x20not\x20following\x20the\x20presenter','7261716nPPoQz','_configService','LIVESHARE_NEW_HOST','Inject','univerjs-icon\x20univerjs-icon-','includes','_status$','UniverProCollaboration','path','Subject','LIVESHARE_REQUEST_HOST','SAME_OPERATION_SHARE_INTERVAL','getValue','status$','fill','_handleOnline','You\x27re\x20presenting\x20the\x20document','takeUntil','UniverInstanceType','pipe','99224mpIKML','_injector','from','operations','defer','UniverUi','asObservable','startFollowing','merge','SetWorksheetActiveOperation','Button','toStringTag','unit','toDisposable','UniverDesign','_handleNewHost','set','amd','onStarting','get','@univerjs/sheets-ui','_uiPartsService','Start','@univerjs-pro/collaboration','params','next','_handleTerminate','UNIVER_LIVE_SHARE_PLUGIN','CommandType','Plugin','getConfig','Fragment','idle','getOwnPropertyDescriptor','mutations','_status','Disposable','toString','@univerjs/ui','UNIVER_UNKNOWN','onCommandExecuted','739697RbQZdI','getStatus','registerSharedOperation','registerComponent','3472gqNPGH','_presenter','CollaborationEvent','registerDependencies','getInitialStates','tryStartPresenting','entries','_sharedOperations','init','stringify','_commandDisposable','NOT_FOLLOWING','_collabSessionService'];_0x1a5e=function(){return _0x5e462c;};return _0x1a5e();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.5",
|
|
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.
|
|
66
|
-
"@univerjs-pro/collaboration": "1.0.0-alpha.
|
|
67
|
-
"@univerjs-pro/collaboration-client": "1.0.0-alpha.
|
|
68
|
-
"@univerjs/core": "1.0.0-alpha.
|
|
69
|
-
"@univerjs/design": "1.0.0-alpha.
|
|
70
|
-
"@univerjs/sheets": "1.0.0-alpha.
|
|
71
|
-
"@univerjs/
|
|
72
|
-
"@univerjs/ui": "1.0.0-alpha.
|
|
65
|
+
"@univerjs/icons": "1.29.0",
|
|
66
|
+
"@univerjs-pro/collaboration": "1.0.0-alpha.5",
|
|
67
|
+
"@univerjs-pro/collaboration-client": "1.0.0-alpha.5",
|
|
68
|
+
"@univerjs/core": "1.0.0-alpha.5",
|
|
69
|
+
"@univerjs/design": "1.0.0-alpha.5",
|
|
70
|
+
"@univerjs/sheets": "1.0.0-alpha.5",
|
|
71
|
+
"@univerjs/ui": "1.0.0-alpha.5",
|
|
72
|
+
"@univerjs/sheets-ui": "1.0.0-alpha.5"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"postcss": "^8.5.
|
|
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.
|
|
82
|
-
"@univerjs/protocol": "1.0.0-alpha.
|
|
81
|
+
"@univerjs-infra/shared": "1.0.0-alpha.5",
|
|
82
|
+
"@univerjs/protocol": "1.0.0-alpha.5"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
85
|
"test": "vitest run",
|