@univerjs-pro/live-share 0.25.0 → 0.25.1
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 +10 -10
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x41ae17=_0x3859;function _0x4707(){const _0x1c3a00=['3267432lsMXPv','16kupzFY','15995060jkEsFq','prototype','_liveShareController','FUniver','LiveShareStatusEnum','getUnitId','default','symbol','IUniverInstanceService','14024504Gzlbqt','getCurrentUnitOfType','No\x20active\x20workbook\x20found.','toPrimitive','_initialize','IDLE','_injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','defineProperty','getLiveShareStatus','1116035NvUgXK','call','318LvZKHC','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','stopFollowing','8069FdZLPG','733260xsslNb','1199MuRxCM','30tLmiWH','381168uycXkc','object','iterator','getStatus','getLiveShareCoordinatorSync','string','get','UniverInstanceType','extend','startPresenting','UNIVER_SHEET','FEnum','startFollowing','LiveShareStatus','7Aeenfi'];_0x4707=function(){return _0x1c3a00;};return _0x4707();}function _0x3859(_0x304c6b,_0x26e091){_0x304c6b=_0x304c6b-0xa4;const _0x4707af=_0x4707();let _0x38593f=_0x4707af[_0x304c6b];return _0x38593f;}(function(_0x158c3b,_0x5cd668){const _0x5b757a=_0x3859,_0x1acd7b=_0x158c3b();while(!![]){try{const _0x1a8dee=parseInt(_0x5b757a(0xc8))/0x1*(parseInt(_0x5b757a(0xc4))/0x2)+-parseInt(_0x5b757a(0xc9))/0x3*(-parseInt(_0x5b757a(0xad))/0x4)+-parseInt(_0x5b757a(0xc2))/0x5*(parseInt(_0x5b757a(0xcb))/0x6)+parseInt(_0x5b757a(0xab))/0x7*(-parseInt(_0x5b757a(0xb7))/0x8)+-parseInt(_0x5b757a(0xac))/0x9+-parseInt(_0x5b757a(0xae))/0xa+parseInt(_0x5b757a(0xca))/0xb*(parseInt(_0x5b757a(0xcc))/0xc);if(_0x1a8dee===_0x5cd668)break;else _0x1acd7b['push'](_0x1acd7b['shift']());}catch(_0x119766){_0x1acd7b['push'](_0x1acd7b['shift']());}}}(_0x4707,0xd998b));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x56a4d5){'@babel/helpers - typeof';const _0x29e1a1=_0x3859;return r=typeof Symbol==_0x29e1a1(0xbf)&&typeof Symbol[_0x29e1a1(0xce)]==_0x29e1a1(0xb5)?function(_0x36eb71){return typeof _0x36eb71;}:function(_0x50118f){const _0x1c5eec=_0x29e1a1;return _0x50118f&&typeof Symbol=='function'&&_0x50118f['constructor']===Symbol&&_0x50118f!==Symbol[_0x1c5eec(0xaf)]?_0x1c5eec(0xb5):typeof _0x50118f;},r(_0x56a4d5);}function i(_0x309404,_0x14884a){const _0x5c0748=_0x3859;if(r(_0x309404)!=_0x5c0748(0xcd)||!_0x309404)return _0x309404;var _0x273f57=_0x309404[Symbol[_0x5c0748(0xba)]];if(_0x273f57!==void 0x0){var _0x502c5d=_0x273f57[_0x5c0748(0xc3)](_0x309404,_0x14884a||_0x5c0748(0xb4));if(r(_0x502c5d)!=_0x5c0748(0xcd))return _0x502c5d;throw TypeError(_0x5c0748(0xbe));}return(_0x14884a==='string'?String:Number)(_0x309404);}function a(_0xc301c4){const _0x29c2f4=_0x3859;var _0x2800bb=i(_0xc301c4,_0x29c2f4(0xd1));return r(_0x2800bb)==_0x29c2f4(0xb5)?_0x2800bb:_0x2800bb+'';}function o(_0x14cc33,_0x52142f,_0x465d4b){const _0x29b2e4=_0x3859;return(_0x52142f=a(_0x52142f))in _0x14cc33?Object[_0x29b2e4(0xc0)](_0x14cc33,_0x52142f,{'value':_0x465d4b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x14cc33[_0x52142f]=_0x465d4b,_0x14cc33;}var s=class extends n[_0x41ae17(0xb1)]{constructor(..._0x40f576){super(..._0x40f576),o(this,'_liveShareController',void 0x0);}[_0x41ae17(0xbb)](_0x37b86f){const _0x4e6d34=_0x41ae17;this['_liveShareController']=_0x37b86f[_0x4e6d34(0xd2)](e['LiveShareController']);}[_0x41ae17(0xc1)](){const _0xdd5cb0=_0x41ae17;var _0x2fca40;let _0x33ab9c=this[_0xdd5cb0(0xbd)][_0xdd5cb0(0xd2)](t['IUniverInstanceService'])[_0xdd5cb0(0xb8)](t[_0xdd5cb0(0xa4)][_0xdd5cb0(0xa7)]);if(!_0x33ab9c)throw Error(_0xdd5cb0(0xb9));let _0x524516=_0x33ab9c[_0xdd5cb0(0xb3)](),_0x22c787=this['_liveShareController'][_0xdd5cb0(0xd0)](_0x524516);return(_0x2fca40=_0x22c787==null?void 0x0:_0x22c787[_0xdd5cb0(0xcf)]())==null?e[_0xdd5cb0(0xaa)][_0xdd5cb0(0xbc)]:_0x2fca40;}[_0x41ae17(0xa9)](){const _0x1e83f8=_0x41ae17;let _0x737876=this[_0x1e83f8(0xbd)][_0x1e83f8(0xd2)](t[_0x1e83f8(0xb6)])[_0x1e83f8(0xb8)](t['UniverInstanceType'][_0x1e83f8(0xa7)]);if(!_0x737876)throw Error(_0x1e83f8(0xb9));let _0x5da298=_0x737876[_0x1e83f8(0xb3)](),_0x2c7c21=this[_0x1e83f8(0xb0)][_0x1e83f8(0xd0)](_0x5da298);if(!_0x2c7c21)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2c7c21[_0x1e83f8(0xa9)]();}['stopFollowing'](){const _0x46af77=_0x41ae17;let _0x1b17f0=this[_0x46af77(0xbd)]['get'](t[_0x46af77(0xb6)])[_0x46af77(0xb8)](t['UniverInstanceType'][_0x46af77(0xa7)]);if(!_0x1b17f0)throw Error(_0x46af77(0xb9));let _0x55b10d=_0x1b17f0['getUnitId'](),_0x1abb27=this[_0x46af77(0xb0)][_0x46af77(0xd0)](_0x55b10d);if(!_0x1abb27)throw Error(_0x46af77(0xc5));_0x1abb27[_0x46af77(0xc7)]();}[_0x41ae17(0xa6)](){const _0x48be25=_0x41ae17;let _0x2fc23d=this[_0x48be25(0xbd)][_0x48be25(0xd2)](t['IUniverInstanceService'])[_0x48be25(0xb8)](t['UniverInstanceType'][_0x48be25(0xa7)]);if(!_0x2fc23d)throw Error('No\x20active\x20workbook\x20found.');let _0x1c2190=_0x2fc23d[_0x48be25(0xb3)](),_0x17f9b7=this[_0x48be25(0xb0)][_0x48be25(0xd0)](_0x1c2190);if(!_0x17f9b7)throw Error(_0x48be25(0xc5));_0x17f9b7['tryStartPresenting']();}[_0x41ae17(0xc6)](){const _0x5307c5=_0x41ae17;let _0x321506=this[_0x5307c5(0xbd)]['get'](t[_0x5307c5(0xb6)])[_0x5307c5(0xb8)](t[_0x5307c5(0xa4)]['UNIVER_SHEET']);if(!_0x321506)throw Error('No\x20active\x20workbook\x20found.');let _0x12c9ce=_0x321506[_0x5307c5(0xb3)](),_0x4d627b=this[_0x5307c5(0xb0)][_0x5307c5(0xd0)](_0x12c9ce);if(!_0x4d627b)throw Error(_0x5307c5(0xc5));_0x4d627b['stopPresenting']();}};n[_0x41ae17(0xb1)][_0x41ae17(0xa5)](s);var c=class extends n[_0x41ae17(0xa8)]{get[_0x41ae17(0xb2)](){const _0x2bc515=_0x41ae17;return e[_0x2bc515(0xaa)];}};n[_0x41ae17(0xa8)][_0x41ae17(0xa5)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4acaa3=_0x5b02;(function(_0x120672,_0x2fa7f8){const _0x4b33f3=_0x5b02,_0x5cc22f=_0x120672();while(!![]){try{const _0x427277=parseInt(_0x4b33f3(0x1e5))/0x1*(-parseInt(_0x4b33f3(0x266))/0x2)+parseInt(_0x4b33f3(0x234))/0x3+-parseInt(_0x4b33f3(0x22d))/0x4*(parseInt(_0x4b33f3(0x1e2))/0x5)+parseInt(_0x4b33f3(0x28d))/0x6+parseInt(_0x4b33f3(0x1d8))/0x7*(parseInt(_0x4b33f3(0x293))/0x8)+parseInt(_0x4b33f3(0x211))/0x9+-parseInt(_0x4b33f3(0x273))/0xa*(parseInt(_0x4b33f3(0x209))/0xb);if(_0x427277===_0x2fa7f8)break;else _0x5cc22f['push'](_0x5cc22f['shift']());}catch(_0x11bcf6){_0x5cc22f['push'](_0x5cc22f['shift']());}}}(_0x3643,0x19999),Object[_0x4acaa3(0x1e7)](exports,Symbol[_0x4acaa3(0x229)],{'value':_0x4acaa3(0x22b)}));let e=require('@univerjs/core'),t=require('@univerjs/ui'),n=require('@univerjs/design'),r=require('@univerjs/icons'),i=require('react'),a=require('@univerjs-pro/collaboration'),o=require('@univerjs-pro/collaboration-client'),s=require('@univerjs/sheets'),c=require('rxjs'),l=require('rxjs/operators'),u=require('react/jsx-runtime'),d=require('@univerjs/sheets-ui');function f(_0x4b5305){'@babel/helpers - typeof';const _0x2e96b2=_0x4acaa3;return f=typeof Symbol=='function'&&typeof Symbol[_0x2e96b2(0x201)]==_0x2e96b2(0x21c)?function(_0x81aa1c){return typeof _0x81aa1c;}:function(_0x3a34a5){const _0x204e84=_0x2e96b2;return _0x3a34a5&&typeof Symbol==_0x204e84(0x204)&&_0x3a34a5['constructor']===Symbol&&_0x3a34a5!==Symbol[_0x204e84(0x256)]?_0x204e84(0x21c):typeof _0x3a34a5;},f(_0x4b5305);}function p(_0x42efe8,_0x56dc0a){const _0x16c897=_0x4acaa3;if(f(_0x42efe8)!=_0x16c897(0x271)||!_0x42efe8)return _0x42efe8;var _0x352573=_0x42efe8[Symbol[_0x16c897(0x270)]];if(_0x352573!==void 0x0){var _0x330261=_0x352573[_0x16c897(0x1f8)](_0x42efe8,_0x56dc0a||'default');if(f(_0x330261)!=_0x16c897(0x271))return _0x330261;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x56dc0a===_0x16c897(0x216)?String:Number)(_0x42efe8);}function m(_0x3ef79f){const _0xa770b8=_0x4acaa3;var _0x2c5b8a=p(_0x3ef79f,_0xa770b8(0x216));return f(_0x2c5b8a)==_0xa770b8(0x21c)?_0x2c5b8a:_0x2c5b8a+'';}function h(_0x30edcb,_0x466013,_0x10708b){const _0x3f802f=_0x4acaa3;return(_0x466013=m(_0x466013))in _0x30edcb?Object[_0x3f802f(0x1e7)](_0x30edcb,_0x466013,{'value':_0x10708b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x30edcb[_0x466013]=_0x10708b,_0x30edcb;}var g=class extends e[_0x4acaa3(0x239)]{constructor(..._0x2524d4){const _0x3bc63b=_0x4acaa3;super(..._0x2524d4),h(this,_0x3bc63b(0x20b),new Set()),h(this,_0x3bc63b(0x29f),new Set());}[_0x4acaa3(0x23a)](_0x4dfffd){const _0x14033d=_0x4acaa3;return this['_sharedOperations'][_0x14033d(0x29c)](_0x4dfffd),(0x0,e['toDisposable'])(()=>this[_0x14033d(0x20b)]['delete'](_0x4dfffd));}[_0x4acaa3(0x238)](_0x33a03a){const _0x46c887=_0x4acaa3;return this[_0x46c887(0x29f)][_0x46c887(0x29c)](_0x33a03a),(0x0,e[_0x46c887(0x1f5)])(()=>this[_0x46c887(0x29f)][_0x46c887(0x230)](_0x33a03a));}[_0x4acaa3(0x217)](_0x3de22c){const _0x204496=_0x4acaa3;return this[_0x204496(0x20b)][_0x204496(0x235)](_0x3de22c);}[_0x4acaa3(0x23f)](_0x375f60){const _0x4953dd=_0x4acaa3;return Array['from'](this[_0x4953dd(0x29f)])[_0x4953dd(0x1fd)](_0x19bf7b=>_0x19bf7b(_0x375f60));}};function _(_0x5b0a4f,_0x469069){return function(_0x515d13,_0x26425d){_0x469069(_0x515d13,_0x26425d,_0x5b0a4f);};}function v(_0x5b610a,_0x2d6387,_0x13f019,_0x472ebf){const _0x14c5e1=_0x4acaa3;var _0x2b8f9d=arguments[_0x14c5e1(0x1db)],_0x5e0518=_0x2b8f9d<0x3?_0x2d6387:_0x472ebf===null?_0x472ebf=Object[_0x14c5e1(0x263)](_0x2d6387,_0x13f019):_0x472ebf,_0x405157;if(typeof Reflect=='object'&&typeof Reflect[_0x14c5e1(0x268)]==_0x14c5e1(0x204))_0x5e0518=Reflect[_0x14c5e1(0x268)](_0x5b610a,_0x2d6387,_0x13f019,_0x472ebf);else{for(var _0x51f661=_0x5b610a[_0x14c5e1(0x1db)]-0x1;_0x51f661>=0x0;_0x51f661--)(_0x405157=_0x5b610a[_0x51f661])&&(_0x5e0518=(_0x2b8f9d<0x3?_0x405157(_0x5e0518):_0x2b8f9d>0x3?_0x405157(_0x2d6387,_0x13f019,_0x5e0518):_0x405157(_0x2d6387,_0x13f019))||_0x5e0518);}return _0x2b8f9d>0x3&&_0x5e0518&&Object[_0x14c5e1(0x1e7)](_0x2d6387,_0x13f019,_0x5e0518),_0x5e0518;}let y=class extends e['RxDisposable']{constructor(_0x1ec186,_0x4029ef,_0x4746f5){const _0x84d29d=_0x4acaa3;super(),this[_0x84d29d(0x265)]=_0x1ec186,this[_0x84d29d(0x27e)]=_0x4029ef,this[_0x84d29d(0x26b)]=_0x4746f5,h(this,'_entities',new Map()),this[_0x84d29d(0x24a)]();}async['getLiveShareCoordinator'](_0x9297bd){const _0x5079d0=_0x4acaa3;return this[_0x5079d0(0x21b)][_0x5079d0(0x235)](_0x9297bd)||await this['_startLiveShareCoordinator'](_0x9297bd),this[_0x5079d0(0x21b)][_0x5079d0(0x22a)](_0x9297bd);}[_0x4acaa3(0x25d)](_0x40da64){const _0x380f59=_0x4acaa3;var _0x25cd81;return(_0x25cd81=this[_0x380f59(0x21b)][_0x380f59(0x22a)](_0x40da64))==null?null:_0x25cd81;}['_init'](){const _0x4a3dcc=_0x4acaa3;this['_univerInstanceService'][_0x4a3dcc(0x1e0)](e[_0x4a3dcc(0x20d)][_0x4a3dcc(0x1ff)])['pipe']((0x0,l[_0x4a3dcc(0x299)])(this[_0x4a3dcc(0x240)]))[_0x4a3dcc(0x20f)](async _0x23cf0f=>{const _0x24ee8f=_0x4a3dcc;let _0x57f37b=_0x23cf0f[_0x24ee8f(0x202)]['getUnitId']();this[_0x24ee8f(0x21b)][_0x24ee8f(0x235)](_0x57f37b)||this['_startLiveShareCoordinator'](_0x57f37b);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](e[_0x4a3dcc(0x20d)]['UNIVER_SHEET'])[_0x4a3dcc(0x277)]((0x0,l[_0x4a3dcc(0x299)])(this[_0x4a3dcc(0x240)]))['subscribe'](_0x306967=>{const _0x105a74=_0x4a3dcc;let _0x4fb7fb=_0x306967[_0x105a74(0x24f)](),_0x451546=this[_0x105a74(0x21b)][_0x105a74(0x22a)](_0x4fb7fb);_0x451546==null||_0x451546[_0x105a74(0x280)]();});}async[_0x4acaa3(0x26e)](_0x5912d9){const _0x22ef98=_0x4acaa3;let _0x3544af=await this[_0x22ef98(0x26b)]['requireSession'](_0x5912d9),_0x5388f8=this[_0x22ef98(0x27e)][_0x22ef98(0x28e)](x,_0x5912d9,_0x3544af);return _0x5388f8['init'](),this['_entities'][_0x22ef98(0x246)](_0x5912d9,_0x5388f8),_0x5388f8;}};y=v([_(0x0,e[_0x4acaa3(0x27f)]),_(0x1,(0x0,e['Inject'])(e[_0x4acaa3(0x215)])),_(0x2,(0x0,e[_0x4acaa3(0x1ec)])(o[_0x4acaa3(0x24c)]))],y);let b=function(_0x2c45eb){const _0x522cb6=_0x4acaa3;return _0x2c45eb[_0x522cb6(0x286)]=_0x522cb6(0x1ea),_0x2c45eb[_0x522cb6(0x244)]=_0x522cb6(0x1fb),_0x2c45eb[_0x522cb6(0x1e1)]=_0x522cb6(0x1f9),_0x2c45eb[_0x522cb6(0x243)]=_0x522cb6(0x21d),_0x2c45eb[_0x522cb6(0x1f0)]=_0x522cb6(0x287),_0x2c45eb;}({}),x=class extends e[_0x4acaa3(0x255)]{get[_0x4acaa3(0x298)](){const _0x8d9abf=_0x4acaa3;return this[_0x8d9abf(0x1da)][_0x8d9abf(0x282)]();}constructor(_0x53212d,_0x1753d7,_0x220fc7,_0xb8d36a,_0x3893ce){const _0x193446=_0x4acaa3;super(),this['_unitID']=_0x53212d,this[_0x193446(0x222)]=_0x1753d7,this[_0x193446(0x21a)]=_0x220fc7,this[_0x193446(0x259)]=_0xb8d36a,this[_0x193446(0x22e)]=_0x3893ce,h(this,_0x193446(0x1da),new c[(_0x193446(0x214))]('idle')),h(this,_0x193446(0x249),this['_status$'][_0x193446(0x250)]()),h(this,_0x193446(0x24a),!0x1),h(this,_0x193446(0x226),null),h(this,'_presenter',null);}[_0x4acaa3(0x280)](){const _0x2d1771=_0x4acaa3;var _0x59e400;(_0x59e400=this['_commandDisposable'])==null||_0x59e400[_0x2d1771(0x280)](),this[_0x2d1771(0x1da)][_0x2d1771(0x28a)]('idle'),this['_status$'][_0x2d1771(0x281)]();}[_0x4acaa3(0x23d)](){const _0x4eced2=_0x4acaa3;return this[_0x4eced2(0x298)];}[_0x4acaa3(0x225)](){const _0x2630fd=_0x4acaa3;this['_init']||(this[_0x2630fd(0x24a)]=!0x0,this[_0x2630fd(0x222)][_0x2630fd(0x20c)][_0x2630fd(0x277)]((0x0,l[_0x2630fd(0x299)])(this[_0x2630fd(0x240)]))[_0x2630fd(0x20f)](_0x1f2f87=>{const _0x42a9a6=_0x2630fd;switch(_0x1f2f87){case o[_0x42a9a6(0x27a)][_0x42a9a6(0x286)]:this['_handleOffline']();break;case o[_0x42a9a6(0x27a)][_0x42a9a6(0x26a)]:this[_0x42a9a6(0x24b)]();break;default:}}),this[_0x2630fd(0x222)][_0x2630fd(0x23e)]['pipe']((0x0,l[_0x2630fd(0x299)])(this[_0x2630fd(0x240)]))[_0x2630fd(0x20f)](_0x106fd6=>{const _0x15fa9f=_0x2630fd;let {eventID:_0x1339bf}=_0x106fd6;switch(_0x1339bf){case a[_0x15fa9f(0x278)][_0x15fa9f(0x26c)]:this[_0x15fa9f(0x207)](_0x106fd6);break;case a[_0x15fa9f(0x278)][_0x15fa9f(0x237)]:this[_0x15fa9f(0x267)](_0x106fd6);break;case a[_0x15fa9f(0x278)]['LIVESHARE_TERMINATE']:this[_0x15fa9f(0x1fe)]();break;case a[_0x15fa9f(0x278)][_0x15fa9f(0x247)]:this[_0x15fa9f(0x251)](_0x106fd6);break;default:}}));}['tryStartPresenting'](){const _0x101315=_0x4acaa3;this[_0x101315(0x222)][_0x101315(0x1e9)]({'eventID':a[_0x101315(0x278)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x101315(0x269)],'userID':this[_0x101315(0x222)][_0x101315(0x1f7)]()}},this[_0x101315(0x269)]);}[_0x4acaa3(0x1ef)](){const _0xfa9dac=_0x4acaa3;this['_status']===_0xfa9dac(0x287)&&(this['_status$'][_0xfa9dac(0x28a)](_0xfa9dac(0x1fb)),this[_0xfa9dac(0x222)]['send']({'eventID':a['CollaborationEvent'][_0xfa9dac(0x252)],'data':{'unitID':this[_0xfa9dac(0x269)]}},this[_0xfa9dac(0x269)]));}[_0x4acaa3(0x1e3)](){const _0x3b1a9c=_0x4acaa3;this[_0x3b1a9c(0x298)]==='not-following'&&(this['_status$']['next'](_0x3b1a9c(0x1f9)),this[_0x3b1a9c(0x28f)]());}[_0x4acaa3(0x1dd)](){const _0x496610=_0x4acaa3;this[_0x496610(0x298)]===_0x496610(0x1f9)&&this[_0x496610(0x1f6)]();}[_0x4acaa3(0x207)](_0x20a70c){const _0xfc54d7=_0x4acaa3;let {presenter:_0x102316}=_0x20a70c[_0xfc54d7(0x22f)],_0x46cbad=this[_0xfc54d7(0x222)]['getMemberID']();this['_presenter']=_0x102316,_0x102316===_0x46cbad?(this[_0xfc54d7(0x1f6)](),this[_0xfc54d7(0x220)]()):this['_status']!=='not-following'&&(this[_0xfc54d7(0x212)](),this[_0xfc54d7(0x28f)]());}[_0x4acaa3(0x203)](){const _0x44d071=_0x4acaa3;let _0x3cb6d8={'eventID':a[_0x44d071(0x278)][_0x44d071(0x200)]};this[_0x44d071(0x222)][_0x44d071(0x1e9)](_0x3cb6d8,this[_0x44d071(0x269)]);}[_0x4acaa3(0x1fe)](){const _0x39b9f1=_0x4acaa3;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x39b9f1(0x227)]();}['_handleNewChangeSets'](_0x4b73e2){const _0x5341b9=_0x4acaa3;if(this[_0x5341b9(0x298)]==='following'&&this[_0x5341b9(0x21e)]===_0x4b73e2['data'][_0x5341b9(0x253)]){let _0x205ea9=(0x0,a[_0x5341b9(0x208)])(_0x4b73e2['data'])[_0x5341b9(0x1d9)][_0x5341b9(0x228)]()[_0x5341b9(0x260)](_0xbf3d4b=>_0xbf3d4b['id']===s[_0x5341b9(0x1dc)]['id']);if(_0x205ea9){let _0x23917c=_0x205ea9['params']['unitId'],_0x27c8b4=_0x205ea9[_0x5341b9(0x1ed)][_0x5341b9(0x213)]['id'];setTimeout(()=>{const _0x351654=_0x5341b9;this[_0x351654(0x22e)][_0x351654(0x22c)](s['SetWorksheetActiveOperation']['id'],{'unitId':_0x23917c,'subUnitId':_0x27c8b4},{'fromCollab':!0x0});});}}}[_0x4acaa3(0x220)](){const _0xbe7972=_0x4acaa3;var _0x4435ca;(_0x4435ca=this[_0xbe7972(0x226)])==null||_0x4435ca[_0xbe7972(0x280)](),this[_0xbe7972(0x1da)][_0xbe7972(0x28a)](_0xbe7972(0x287));let _0x14e01f=new Map(),_0xa6319e=this['_commandDisposable']=new e[(_0xbe7972(0x231))]();_0xa6319e[_0xbe7972(0x29c)]((0x0,e[_0xbe7972(0x1f5)])(()=>{const _0x167c80=_0xbe7972;_0x14e01f[_0x167c80(0x205)](({subject:_0x3139f2,subscription:_0x323c94})=>{const _0x24e3a3=_0x167c80;_0x323c94[_0x24e3a3(0x25b)](),_0x3139f2[_0x24e3a3(0x281)]();}),_0x14e01f['clear']();})),_0xa6319e[_0xbe7972(0x29c)](this[_0xbe7972(0x22e)][_0xbe7972(0x25f)](_0xa44d94=>{const _0x101836=_0xbe7972;if(_0xa44d94[_0x101836(0x276)]!==e['CommandType'][_0x101836(0x29e)]||!this['_liveShareService'][_0x101836(0x217)](_0xa44d94['id']))return;let {id:_0x6aaffb}=_0xa44d94,_0x43d25c;if(_0x14e01f[_0x101836(0x235)](_0x6aaffb))_0x43d25c=_0x14e01f['get'](_0x6aaffb)[_0x101836(0x26f)];else{var _0x2a1a60;_0x43d25c=new c[(_0x101836(0x275))]();let _0x22b2bf=_0x43d25c[_0x101836(0x277)]((0x0,l[_0x101836(0x1de)])((_0x2a1a60=this[_0x101836(0x21a)][_0x101836(0x262)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2a1a60,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x101836(0x20f)](_0x3a507a=>{const _0x10febb=_0x101836;this[_0x10febb(0x222)]['send']({'eventID':a['CollaborationEvent'][_0x10febb(0x237)],'data':{'unitID':this[_0x10febb(0x269)],'operations':{[_0x3a507a['id']]:{'id':_0x3a507a['id'],'params':JSON[_0x10febb(0x24d)](_0x3a507a[_0x10febb(0x1ed)])}}}},this[_0x10febb(0x269)]);});_0x14e01f[_0x101836(0x246)](_0x6aaffb,{'subject':_0x43d25c,'subscription':_0x22b2bf});}_0x43d25c[_0x101836(0x28a)](_0xa44d94);})),this[_0xbe7972(0x259)][_0xbe7972(0x23f)](this[_0xbe7972(0x269)])['forEach'](_0x323432=>this[_0xbe7972(0x222)]['send']({'eventID':a['CollaborationEvent'][_0xbe7972(0x237)],'data':{'unitID':this['_unitID'],'operations':{[_0x323432['id']]:{'id':_0x323432['id'],'params':JSON[_0xbe7972(0x24d)](_0x323432['params'])}}}},this['_unitID']));}[_0x4acaa3(0x212)](){const _0x495720=_0x4acaa3;var _0x419aba;this[_0x495720(0x1da)][_0x495720(0x28a)](_0x495720(0x1fb)),(_0x419aba=this[_0x495720(0x226)])==null||_0x419aba[_0x495720(0x280)](),this[_0x495720(0x226)]=null;}[_0x4acaa3(0x28f)](){const _0x5128cc=_0x4acaa3;var _0x5a1922;(_0x5a1922=this['_commandDisposable'])==null||_0x5a1922[_0x5128cc(0x280)](),this['_status$'][_0x5128cc(0x28a)](_0x5128cc(0x1f9));}[_0x4acaa3(0x227)](){const _0x1cc1e8=_0x4acaa3;var _0x17eef7;this[_0x1cc1e8(0x1da)][_0x1cc1e8(0x28a)](_0x1cc1e8(0x1fb)),(_0x17eef7=this[_0x1cc1e8(0x226)])==null||_0x17eef7[_0x1cc1e8(0x280)](),this['_commandDisposable']=null;}[_0x4acaa3(0x1f6)](){const _0x1f3a5d=_0x4acaa3;var _0x339ab7;this[_0x1f3a5d(0x1da)]['next'](_0x1f3a5d(0x21d)),(_0x339ab7=this['_commandDisposable'])==null||_0x339ab7[_0x1f3a5d(0x280)]();}['_handleOperation'](_0x462c80){const _0x553d6c=_0x4acaa3;if([_0x553d6c(0x287),_0x553d6c(0x21d),_0x553d6c(0x1ea)][_0x553d6c(0x291)](this['_status'])||!_0x462c80[_0x553d6c(0x22f)][_0x553d6c(0x27c)]||_0x462c80[_0x553d6c(0x22f)][_0x553d6c(0x27c)]===this['_collabSession'][_0x553d6c(0x1f7)]())return;this[_0x553d6c(0x298)]===_0x553d6c(0x1fb)&&this[_0x553d6c(0x28f)]();let _0x24f0ec=_0x462c80['data'][_0x553d6c(0x2a0)];Object[_0x553d6c(0x245)](_0x24f0ec)[_0x553d6c(0x205)](_0x331561=>{const _0x34645d=_0x553d6c;this[_0x34645d(0x22e)][_0x34645d(0x22c)](_0x331561['id'],_0x331561[_0x34645d(0x1ed)]?JSON[_0x34645d(0x1f3)](_0x331561['params']):null,{'fromCollab':!0x0});});}[_0x4acaa3(0x1fc)](){const _0x15b5ca=_0x4acaa3;var _0x569659;this['_status$'][_0x15b5ca(0x28a)](_0x15b5ca(0x1ea)),(_0x569659=this[_0x15b5ca(0x226)])==null||_0x569659[_0x15b5ca(0x280)]();}['_handleOnline'](){const _0xe8aaaa=_0x4acaa3;this['_status$'][_0xe8aaaa(0x28a)](_0xe8aaaa(0x1fb)),this[_0xe8aaaa(0x203)]();}};x=v([_(0x2,e[_0x4acaa3(0x274)]),_(0x3,(0x0,e[_0x4acaa3(0x1ec)])(g)),_(0x4,e[_0x4acaa3(0x297)])],x);function S(){const _0x4d0a2b=_0x4acaa3;let _0x5dc89f=(0x0,t['useDependency'])(y),_0x479d0d=(0x0,t[_0x4d0a2b(0x28b)])(e[_0x4d0a2b(0x27f)]),_0x39843f=(0x0,t[_0x4d0a2b(0x27d)])(()=>_0x479d0d[_0x4d0a2b(0x23c)](e[_0x4d0a2b(0x20d)][_0x4d0a2b(0x1ff)]),void 0x0,!0x1,[]),[_0x2d6999,_0x20c610]=(0x0,i['useState'])(null),[_0x101bd4,_0x4de317]=(0x0,i[_0x4d0a2b(0x25a)])(_0x4d0a2b(0x1fb)),_0x1143d1=(0x0,i[_0x4d0a2b(0x233)])(null);return(0x0,i['useEffect'])(()=>(_0x39843f&&_0x5dc89f[_0x4d0a2b(0x257)](_0x39843f['getUnitId']())[_0x4d0a2b(0x29b)](_0xcf86af=>{const _0x5b3bdb=_0x4d0a2b;_0x20c610(_0xcf86af),_0x1143d1['current']=_0xcf86af[_0x5b3bdb(0x249)][_0x5b3bdb(0x20f)](_0x3a4676=>{_0x4de317(_0x3a4676);});}),()=>{const _0xef44e5=_0x4d0a2b;var _0x13c9bd;(_0x13c9bd=_0x1143d1[_0xef44e5(0x210)])==null||_0x13c9bd[_0xef44e5(0x25b)](),_0x1143d1[_0xef44e5(0x210)]=null;}),[_0x39843f,_0x5dc89f]),_0x2d6999?(0x0,u['jsx'])(n[_0x4d0a2b(0x219)],{'align':_0x4d0a2b(0x27b),'disabled':_0x101bd4==='offline','className':_0x4d0a2b(0x29d),'overlay':(0x0,u['jsx'])(C,{'status':_0x101bd4,'coordinator':_0x2d6999}),'children':(0x0,u[_0x4d0a2b(0x248)])(_0x4d0a2b(0x25e),{'className':(0x0,n[_0x4d0a2b(0x289)])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x101bd4===_0x4d0a2b(0x1ea),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x101bd4!==_0x4d0a2b(0x1ea)}),'type':'button','children':(0x0,u[_0x4d0a2b(0x248)])(r['LiveShareIcon'],{'className':_0x4d0a2b(0x241)})})}):null;}function C(_0x33c229){const _0x18b969=_0x4acaa3;let {status:_0x53f376,coordinator:_0x17466e}=_0x33c229;switch(_0x53f376){case _0x18b969(0x1fb):return(0x0,u[_0x18b969(0x248)])(w,{'coordinator':_0x17466e});case'following':return(0x0,u[_0x18b969(0x248)])(T,{'coordinator':_0x17466e});case _0x18b969(0x21d):return(0x0,u[_0x18b969(0x248)])(E,{'coordinator':_0x17466e});case'offline':return(0x0,u['jsx'])(O,{});case _0x18b969(0x287):return(0x0,u[_0x18b969(0x248)])(D,{'coordinator':_0x17466e});default:return null;}}function w(_0x5e8da6){const _0x2f9877=_0x4acaa3;let {coordinator:_0x57714f}=_0x5e8da6;return(0x0,u[_0x2f9877(0x254)])(u[_0x2f9877(0x1eb)],{'children':[(0x0,u[_0x2f9877(0x248)])(_0x2f9877(0x283),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2f9877(0x224)}),(0x0,u[_0x2f9877(0x248)])(n[_0x2f9877(0x1e6)],{'onClick':()=>_0x57714f[_0x2f9877(0x1ee)](),'children':'Start'})]});}function T(_0x2b9156){const _0x5ce81a=_0x4acaa3;let {coordinator:_0x11749e}=_0x2b9156;return(0x0,u['jsxs'])(u[_0x5ce81a(0x1eb)],{'children':[(0x0,u[_0x5ce81a(0x248)])('div',{'className':_0x5ce81a(0x288),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,u[_0x5ce81a(0x248)])(n[_0x5ce81a(0x1e6)],{'onClick':()=>_0x11749e[_0x5ce81a(0x1dd)](),'children':_0x5ce81a(0x28c)})]});}function E(_0x4c4f2f){const _0x5501d6=_0x4acaa3;let {coordinator:_0x44cd2a}=_0x4c4f2f;return(0x0,u[_0x5501d6(0x254)])(u[_0x5501d6(0x1eb)],{'children':[(0x0,u['jsx'])(_0x5501d6(0x283),{'className':_0x5501d6(0x288),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,u[_0x5501d6(0x248)])(n[_0x5501d6(0x1e6)],{'variant':_0x5501d6(0x29a),'onClick':()=>_0x44cd2a['startFollowing'](),'children':_0x5501d6(0x24e)})]});}function D(_0x3b470b){const _0x4798e7=_0x4acaa3;let {coordinator:_0x154ed9}=_0x3b470b;return(0x0,u[_0x4798e7(0x254)])(u[_0x4798e7(0x1eb)],{'children':[(0x0,u[_0x4798e7(0x248)])(_0x4798e7(0x283),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),(0x0,u['jsx'])(n['Button'],{'variant':_0x4798e7(0x25c),'onClick':()=>_0x154ed9['stopPresenting'](),'children':'Stop\x20presenting'})]});}function O(){const _0x4bd962=_0x4acaa3;return(0x0,u['jsx'])(u[_0x4bd962(0x1eb)],{'children':_0x4bd962(0x20a)});}let k=class extends e[_0x4acaa3(0x239)]{constructor(_0x54e0f3,_0x242333){const _0x5b8a38=_0x4acaa3;super(),this[_0x5b8a38(0x27e)]=_0x54e0f3,this[_0x5b8a38(0x21f)]=_0x242333,this[_0x5b8a38(0x232)]();}[_0x4acaa3(0x232)](){const _0x1aa8cd=_0x4acaa3;this[_0x1aa8cd(0x1df)](this[_0x1aa8cd(0x21f)][_0x1aa8cd(0x1f4)](t[_0x1aa8cd(0x20e)][_0x1aa8cd(0x279)],()=>(0x0,t[_0x1aa8cd(0x295)])(S,this[_0x1aa8cd(0x27e)])));}};k=v([_(0x0,(0x0,e[_0x4acaa3(0x1ec)])(e[_0x4acaa3(0x215)])),_(0x1,t[_0x4acaa3(0x1e4)])],k);function _0x5b02(_0x4907e6,_0x88bb96){_0x4907e6=_0x4907e6-0x1d8;const _0x3643e9=_0x3643();let _0x5b02c2=_0x3643e9[_0x4907e6];return _0x5b02c2;}var A=_0x4acaa3(0x26d),j=_0x4acaa3(0x264);const M={};let N=class extends e[_0x4acaa3(0x239)]{constructor(_0x2bd133){const _0xc9de70=_0x4acaa3;super(),this[_0xc9de70(0x259)]=_0x2bd133,this['_init']();}[_0x4acaa3(0x24a)](){const _0x17c658=_0x4acaa3;[d[_0x17c658(0x296)]['id'],d[_0x17c658(0x284)]['id'],s[_0x17c658(0x1fa)]['id']][_0x17c658(0x205)](_0x317fb7=>{const _0x39e163=_0x17c658;this[_0x39e163(0x1df)](this['_liveShareService'][_0x39e163(0x23a)](_0x317fb7));});}};function _0x3643(){const _0x1eb325=['Subject','type','pipe','CollaborationEvent','HEADER_MENU','SessionStatus','end','presenter','useObservable','_injector','IUniverInstanceService','dispose','complete','getValue','div','SetScrollOperation','_config','OFFLINE','presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','clsx','next','useDependency','Stop\x20following','977118rZuCHU','createInstance','_startFollowing','LiveShareStatus','includes','pluginName','8xVpHny','touchDependencies','connectInjector','SetZoomRatioOperation','ICommandService','_status','takeUntil','text','then','add','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','OPERATION','_reporters','operations','551831PRKgyw','mutations','_status$','length','InsertSheetMutation','stopFollowing','throttleTime','disposeWithMe','getTypeOfUnitAdded$','FOLLOWING','15dFvrbI','startFollowing','IUIPartsService','34ApzWBe','Button','defineProperty','mergeOverrideWithDependencies','send','offline','Fragment','Inject','params','tryStartPresenting','stopPresenting','PRESENTING','LiveShareCoordinator','registerDependencies','parse','registerComponent','toDisposable','_stopFollowing','getMemberID','call','following','SetWorksheetActiveOperation','idle','_handleOffline','map','_handleTerminate','UNIVER_SHEET','LIVESHARE_FETCH_OPERATIONS','iterator','unit','_fetchOperations','function','forEach','live-share.config','_handleNewHost','parseProtocolChangeset','11WoRBgS','You\x27are\x20offline.','_sharedOperations','sessionStatus$','UniverInstanceType','BuiltInUIPart','subscribe','current','947223pJMSyd','_stopPresenting','sheet','BehaviorSubject','Injector','string','shouldShareOperation','merge','Dropdown','_configService','_entities','symbol','not-following','_presenter','_uiPartsService','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','_collabSession','DesktopLiveShareController','Present\x20this\x20document','init','_commandDisposable','_beIdle','reverse','toStringTag','get','Module','executeCommand','196796pCCftN','_commandService','data','delete','DisposableCollection','_mountLiveShare','useRef','32337qXuwim','has','UniverLiveSharePlugin','LIVESHARE_OPERATION','registerInitialStateReporter','Disposable','registerSharedOperation','LiveShareService','getCurrentTypeOfUnit$','getStatus','event$','getInitialStates','dispose$','univer-size-4','LiveShareController','NOT_FOLLOWING','IDLE','values','set','NEW_CHANGESETS','jsx','status$','_init','_handleOnline','CollaborationSessionService','stringify','Start\x20following','getUnitId','asObservable','_handleNewChangeSets','LIVESHARE_TERMINATE','memberID','jsxs','RxDisposable','prototype','getLiveShareCoordinator','LiveShare','_liveShareService','useState','unsubscribe','default','getLiveShareCoordinatorSync','button','onCommandExecuted','find','UniverCollaborationClientPlugin','getConfig','getOwnPropertyDescriptor','0.25.0','_univerInstanceService','1506aHwFax','_handleOperation','decorate','_unitID','ONLINE','_collabSessionService','LIVESHARE_NEW_HOST','@univerjs-pro/live-share','_startLiveShareCoordinator','subject','toPrimitive','object','packageName','796560Engxff','IConfigService'];_0x3643=function(){return _0x1eb325;};return _0x3643();}N=v([_(0x0,(0x0,e[_0x4acaa3(0x1ec)])(g))],N);let P=class extends e['Plugin']{constructor(_0x23f7a4=M,_0x1236d2,_0x4de6e6){const _0x4391e1=_0x4acaa3;super(),this[_0x4391e1(0x285)]=_0x23f7a4,this[_0x4391e1(0x27e)]=_0x1236d2,this['_configService']=_0x4de6e6;let {..._0x517457}=(0x0,e[_0x4391e1(0x218)])({},M,this[_0x4391e1(0x285)]);this[_0x4391e1(0x21a)]['setConfig'](_0x4391e1(0x206),_0x517457);}['onStarting'](){const _0x4754e4=_0x4acaa3;(0x0,e[_0x4754e4(0x1f2)])(this['_injector'],(0x0,e[_0x4754e4(0x1e8)])([[g],[y],[N],[k]],this['_config']['override'])),(0x0,e[_0x4754e4(0x294)])(this[_0x4754e4(0x27e)],[[N]]);}['onRendered'](){const _0x369608=_0x4acaa3;(0x0,e[_0x369608(0x294)])(this[_0x369608(0x27e)],[[k]]);}};h(P,_0x4acaa3(0x276),e['UniverInstanceType']['UNIVER_UNKNOWN']),h(P,_0x4acaa3(0x292),_0x4acaa3(0x221)),h(P,_0x4acaa3(0x272),A),h(P,'version',j),P=v([(0x0,e['DependentOn'])(o[_0x4acaa3(0x261)]),_(0x1,(0x0,e['Inject'])(e[_0x4acaa3(0x215)])),_(0x2,e[_0x4acaa3(0x274)])],P),Object[_0x4acaa3(0x1e7)](exports,_0x4acaa3(0x223),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x4acaa3(0x258)]=S,Object[_0x4acaa3(0x1e7)](exports,_0x4acaa3(0x242),{'enumerable':!0x0,'get':function(){return y;}}),Object[_0x4acaa3(0x1e7)](exports,_0x4acaa3(0x1f1),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x4acaa3(0x23b)]=g,exports[_0x4acaa3(0x290)]=b,Object[_0x4acaa3(0x1e7)](exports,_0x4acaa3(0x236),{'enumerable':!0x0,'get':function(){return P;}});
|
|
1
|
+
const _0x2a6aa1=_0x1878;(function(_0x25c78e,_0xc9b328){const _0x3d481e=_0x1878,_0x571f4e=_0x25c78e();while(!![]){try{const _0x311999=-parseInt(_0x3d481e(0x1ee))/0x1*(parseInt(_0x3d481e(0x21d))/0x2)+parseInt(_0x3d481e(0x1f8))/0x3+-parseInt(_0x3d481e(0x1c3))/0x4*(-parseInt(_0x3d481e(0x1a8))/0x5)+-parseInt(_0x3d481e(0x178))/0x6*(-parseInt(_0x3d481e(0x1f1))/0x7)+-parseInt(_0x3d481e(0x1f4))/0x8*(-parseInt(_0x3d481e(0x20d))/0x9)+-parseInt(_0x3d481e(0x171))/0xa+-parseInt(_0x3d481e(0x1e6))/0xb;if(_0x311999===_0xc9b328)break;else _0x571f4e['push'](_0x571f4e['shift']());}catch(_0x276bfe){_0x571f4e['push'](_0x571f4e['shift']());}}}(_0x4b1b,0xb110a),Object[_0x2a6aa1(0x1a9)](exports,Symbol[_0x2a6aa1(0x211)],{'value':'Module'}));let e=require('@univerjs/core'),t=require('@univerjs/ui'),n=require('@univerjs/design'),r=require('@univerjs/icons'),i=require('react'),a=require('@univerjs-pro/collaboration'),o=require('@univerjs-pro/collaboration-client'),s=require('@univerjs/sheets'),c=require('rxjs'),l=require('rxjs/operators'),u=require('react/jsx-runtime'),d=require('@univerjs/sheets-ui');function f(_0x89c5c7){'@babel/helpers - typeof';const _0x5066e5=_0x2a6aa1;return f=typeof Symbol==_0x5066e5(0x1ae)&&typeof Symbol['iterator']=='symbol'?function(_0x489c63){return typeof _0x489c63;}:function(_0xf15985){const _0x4a56f3=_0x5066e5;return _0xf15985&&typeof Symbol==_0x4a56f3(0x1ae)&&_0xf15985[_0x4a56f3(0x1a7)]===Symbol&&_0xf15985!==Symbol[_0x4a56f3(0x1b7)]?_0x4a56f3(0x1bd):typeof _0xf15985;},f(_0x89c5c7);}function p(_0x2cd95a,_0x461ed1){const _0x476c5f=_0x2a6aa1;if(f(_0x2cd95a)!=_0x476c5f(0x177)||!_0x2cd95a)return _0x2cd95a;var _0x39edcd=_0x2cd95a[Symbol['toPrimitive']];if(_0x39edcd!==void 0x0){var _0x2b83c5=_0x39edcd['call'](_0x2cd95a,_0x461ed1||_0x476c5f(0x199));if(f(_0x2b83c5)!=_0x476c5f(0x177))return _0x2b83c5;throw TypeError(_0x476c5f(0x1d0));}return(_0x461ed1===_0x476c5f(0x1ac)?String:Number)(_0x2cd95a);}function m(_0x36eec3){const _0x3f9c7a=_0x2a6aa1;var _0x488f11=p(_0x36eec3,'string');return f(_0x488f11)==_0x3f9c7a(0x1bd)?_0x488f11:_0x488f11+'';}function h(_0x4a0fda,_0x2bcfd4,_0x39c076){const _0x3bab8d=_0x2a6aa1;return(_0x2bcfd4=m(_0x2bcfd4))in _0x4a0fda?Object[_0x3bab8d(0x1a9)](_0x4a0fda,_0x2bcfd4,{'value':_0x39c076,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a0fda[_0x2bcfd4]=_0x39c076,_0x4a0fda;}var g=class extends e['Disposable']{constructor(..._0xde0a0a){const _0x4e761b=_0x2a6aa1;super(..._0xde0a0a),h(this,_0x4e761b(0x196),new Set()),h(this,_0x4e761b(0x1b4),new Set());}[_0x2a6aa1(0x19b)](_0x41d31d){const _0x329a28=_0x2a6aa1;return this[_0x329a28(0x196)]['add'](_0x41d31d),(0x0,e[_0x329a28(0x1d8)])(()=>this[_0x329a28(0x196)]['delete'](_0x41d31d));}[_0x2a6aa1(0x19d)](_0x1621c3){const _0xd7f301=_0x2a6aa1;return this[_0xd7f301(0x1b4)]['add'](_0x1621c3),(0x0,e['toDisposable'])(()=>this[_0xd7f301(0x1b4)][_0xd7f301(0x22b)](_0x1621c3));}[_0x2a6aa1(0x1ca)](_0x1c4d88){const _0x2bde57=_0x2a6aa1;return this[_0x2bde57(0x196)]['has'](_0x1c4d88);}[_0x2a6aa1(0x1e2)](_0x527fe4){const _0x5058b6=_0x2a6aa1;return Array[_0x5058b6(0x1fd)](this['_reporters'])[_0x5058b6(0x20f)](_0x29f414=>_0x29f414(_0x527fe4));}};function _(_0x597948,_0x1d1aef){return function(_0x1914c7,_0x5e6a29){_0x1d1aef(_0x1914c7,_0x5e6a29,_0x597948);};}function v(_0x5c7506,_0x30f46f,_0x1c453c,_0x471f78){const _0x1d11fc=_0x2a6aa1;var _0x596f83=arguments[_0x1d11fc(0x1c5)],_0x406bae=_0x596f83<0x3?_0x30f46f:_0x471f78===null?_0x471f78=Object[_0x1d11fc(0x1b1)](_0x30f46f,_0x1c453c):_0x471f78,_0x573ac3;if(typeof Reflect=='object'&&typeof Reflect[_0x1d11fc(0x1cd)]==_0x1d11fc(0x1ae))_0x406bae=Reflect[_0x1d11fc(0x1cd)](_0x5c7506,_0x30f46f,_0x1c453c,_0x471f78);else{for(var _0x153809=_0x5c7506[_0x1d11fc(0x1c5)]-0x1;_0x153809>=0x0;_0x153809--)(_0x573ac3=_0x5c7506[_0x153809])&&(_0x406bae=(_0x596f83<0x3?_0x573ac3(_0x406bae):_0x596f83>0x3?_0x573ac3(_0x30f46f,_0x1c453c,_0x406bae):_0x573ac3(_0x30f46f,_0x1c453c))||_0x406bae);}return _0x596f83>0x3&&_0x406bae&&Object[_0x1d11fc(0x1a9)](_0x30f46f,_0x1c453c,_0x406bae),_0x406bae;}let y=class extends e['RxDisposable']{constructor(_0x467a16,_0x586990,_0x5a036d){const _0x4df159=_0x2a6aa1;super(),this[_0x4df159(0x1e1)]=_0x467a16,this[_0x4df159(0x17a)]=_0x586990,this[_0x4df159(0x195)]=_0x5a036d,h(this,_0x4df159(0x184),new Map()),this[_0x4df159(0x20c)]();}async['getLiveShareCoordinator'](_0x41345e){const _0x5c49a4=_0x2a6aa1;return this[_0x5c49a4(0x184)]['has'](_0x41345e)||await this[_0x5c49a4(0x179)](_0x41345e),this['_entities'][_0x5c49a4(0x18b)](_0x41345e);}[_0x2a6aa1(0x18f)](_0x54c707){const _0x2a6f38=_0x2a6aa1;var _0x86db55;return(_0x86db55=this[_0x2a6f38(0x184)][_0x2a6f38(0x18b)](_0x54c707))==null?null:_0x86db55;}[_0x2a6aa1(0x20c)](){const _0x78e8a3=_0x2a6aa1;this[_0x78e8a3(0x1e1)][_0x78e8a3(0x1a1)](e['UniverInstanceType']['UNIVER_SHEET'])[_0x78e8a3(0x22e)]((0x0,l[_0x78e8a3(0x1eb)])(this[_0x78e8a3(0x1f6)]))[_0x78e8a3(0x1db)](async _0x3dfa8e=>{const _0x537027=_0x78e8a3;let _0x8bdc7d=_0x3dfa8e['unit'][_0x537027(0x22c)]();this[_0x537027(0x184)][_0x537027(0x1dd)](_0x8bdc7d)||this[_0x537027(0x179)](_0x8bdc7d);}),this['_univerInstanceService'][_0x78e8a3(0x1bf)](e[_0x78e8a3(0x221)][_0x78e8a3(0x1f7)])[_0x78e8a3(0x22e)]((0x0,l['takeUntil'])(this[_0x78e8a3(0x1f6)]))['subscribe'](_0x26a843=>{const _0x13f660=_0x78e8a3;let _0x2af9ff=_0x26a843['getUnitId'](),_0x28c976=this[_0x13f660(0x184)][_0x13f660(0x18b)](_0x2af9ff);_0x28c976==null||_0x28c976[_0x13f660(0x1ec)]();});}async[_0x2a6aa1(0x179)](_0x2f9a44){const _0x4aedb8=_0x2a6aa1;let _0x441ac5=await this['_collabSessionService'][_0x4aedb8(0x1cc)](_0x2f9a44),_0x485872=this['_injector'][_0x4aedb8(0x1d1)](x,_0x2f9a44,_0x441ac5);return _0x485872[_0x4aedb8(0x223)](),this[_0x4aedb8(0x184)][_0x4aedb8(0x222)](_0x2f9a44,_0x485872),_0x485872;}};y=v([_(0x0,e[_0x2a6aa1(0x1a5)]),_(0x1,(0x0,e[_0x2a6aa1(0x189)])(e[_0x2a6aa1(0x1cf)])),_(0x2,(0x0,e[_0x2a6aa1(0x189)])(o['CollaborationSessionService']))],y);let b=function(_0x525a2e){const _0x41e165=_0x2a6aa1;return _0x525a2e[_0x41e165(0x1d9)]=_0x41e165(0x1c6),_0x525a2e[_0x41e165(0x1de)]=_0x41e165(0x21b),_0x525a2e[_0x41e165(0x218)]=_0x41e165(0x1f3),_0x525a2e[_0x41e165(0x1d7)]=_0x41e165(0x1b5),_0x525a2e[_0x41e165(0x1c7)]='presenting',_0x525a2e;}({}),x=class extends e[_0x2a6aa1(0x1e4)]{get[_0x2a6aa1(0x1fb)](){const _0x135ab2=_0x2a6aa1;return this[_0x135ab2(0x17f)][_0x135ab2(0x176)]();}constructor(_0x2d5cce,_0x5ad87d,_0x242327,_0x242882,_0x1adf4e){const _0x5c7cdd=_0x2a6aa1;super(),this[_0x5c7cdd(0x1c1)]=_0x2d5cce,this[_0x5c7cdd(0x1a4)]=_0x5ad87d,this['_configService']=_0x242327,this[_0x5c7cdd(0x1b3)]=_0x242882,this['_commandService']=_0x1adf4e,h(this,_0x5c7cdd(0x17f),new c[(_0x5c7cdd(0x1b0))](_0x5c7cdd(0x21b))),h(this,'status$',this[_0x5c7cdd(0x17f)][_0x5c7cdd(0x1a6)]()),h(this,_0x5c7cdd(0x20c),!0x1),h(this,'_commandDisposable',null),h(this,_0x5c7cdd(0x202),null);}['dispose'](){const _0x10cc61=_0x2a6aa1;var _0x5609be;(_0x5609be=this[_0x10cc61(0x1f0)])==null||_0x5609be[_0x10cc61(0x1ec)](),this[_0x10cc61(0x17f)][_0x10cc61(0x193)](_0x10cc61(0x21b)),this[_0x10cc61(0x17f)]['complete']();}['getStatus'](){return this['_status'];}[_0x2a6aa1(0x223)](){const _0x319171=_0x2a6aa1;this[_0x319171(0x20c)]||(this['_init']=!0x0,this[_0x319171(0x1a4)]['sessionStatus$']['pipe']((0x0,l[_0x319171(0x1eb)])(this[_0x319171(0x1f6)]))[_0x319171(0x1db)](_0x58620a=>{const _0xb6a3b1=_0x319171;switch(_0x58620a){case o['SessionStatus']['OFFLINE']:this[_0xb6a3b1(0x1d4)]();break;case o[_0xb6a3b1(0x19c)][_0xb6a3b1(0x1e7)]:this[_0xb6a3b1(0x225)]();break;default:}}),this[_0x319171(0x1a4)][_0x319171(0x215)]['pipe']((0x0,l[_0x319171(0x1eb)])(this[_0x319171(0x1f6)]))[_0x319171(0x1db)](_0x5ccf5c=>{const _0x369cdc=_0x319171;let {eventID:_0x2789e9}=_0x5ccf5c;switch(_0x2789e9){case a[_0x369cdc(0x188)][_0x369cdc(0x1ef)]:this['_handleNewHost'](_0x5ccf5c);break;case a[_0x369cdc(0x188)][_0x369cdc(0x1c9)]:this['_handleOperation'](_0x5ccf5c);break;case a['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x369cdc(0x21c)]();break;case a[_0x369cdc(0x188)][_0x369cdc(0x1d2)]:this[_0x369cdc(0x1bb)](_0x5ccf5c);break;default:}}));}['tryStartPresenting'](){const _0x1b34d1=_0x2a6aa1;this[_0x1b34d1(0x1a4)][_0x1b34d1(0x1e8)]({'eventID':a[_0x1b34d1(0x188)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1b34d1(0x1c1)],'userID':this[_0x1b34d1(0x1a4)][_0x1b34d1(0x21a)]()}},this[_0x1b34d1(0x1c1)]);}[_0x2a6aa1(0x1a3)](){const _0x2ba4bf=_0x2a6aa1;this[_0x2ba4bf(0x1fb)]===_0x2ba4bf(0x224)&&(this[_0x2ba4bf(0x17f)]['next'](_0x2ba4bf(0x21b)),this['_collabSession'][_0x2ba4bf(0x1e8)]({'eventID':a['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2ba4bf(0x1c1)]}},this[_0x2ba4bf(0x1c1)]));}['startFollowing'](){const _0x5cd6cb=_0x2a6aa1;this[_0x5cd6cb(0x1fb)]===_0x5cd6cb(0x1b5)&&(this[_0x5cd6cb(0x17f)][_0x5cd6cb(0x193)](_0x5cd6cb(0x1f3)),this['_startFollowing']());}[_0x2a6aa1(0x22d)](){const _0x1f96d1=_0x2a6aa1;this['_status']===_0x1f96d1(0x1f3)&&this[_0x1f96d1(0x21f)]();}[_0x2a6aa1(0x192)](_0xb03af9){const _0x125710=_0x2a6aa1;let {presenter:_0x4e59ca}=_0xb03af9['data'],_0x302236=this[_0x125710(0x1a4)][_0x125710(0x21a)]();this[_0x125710(0x202)]=_0x4e59ca,_0x4e59ca===_0x302236?(this[_0x125710(0x21f)](),this[_0x125710(0x18c)]()):this[_0x125710(0x1fb)]!==_0x125710(0x1b5)&&(this[_0x125710(0x1d3)](),this[_0x125710(0x174)]());}[_0x2a6aa1(0x182)](){const _0x4f59fd=_0x2a6aa1;let _0x230b90={'eventID':a['CollaborationEvent'][_0x4f59fd(0x185)]};this[_0x4f59fd(0x1a4)][_0x4f59fd(0x1e8)](_0x230b90,this['_unitID']);}[_0x2a6aa1(0x21c)](){const _0x2efacc=_0x2a6aa1;this[_0x2efacc(0x202)]=null,this[_0x2efacc(0x1fb)]!==_0x2efacc(0x224)&&this[_0x2efacc(0x217)]();}[_0x2a6aa1(0x1bb)](_0x1d07cd){const _0x214a0a=_0x2a6aa1;if(this[_0x214a0a(0x1fb)]==='following'&&this[_0x214a0a(0x202)]===_0x1d07cd['data'][_0x214a0a(0x190)]){let _0x31ea5d=(0x0,a['parseProtocolChangeset'])(_0x1d07cd[_0x214a0a(0x209)])[_0x214a0a(0x197)][_0x214a0a(0x1b8)]()[_0x214a0a(0x1ed)](_0x190508=>_0x190508['id']===s[_0x214a0a(0x187)]['id']);if(_0x31ea5d){let _0x535a54=_0x31ea5d[_0x214a0a(0x17d)][_0x214a0a(0x1f2)],_0x5b59d7=_0x31ea5d[_0x214a0a(0x17d)]['sheet']['id'];setTimeout(()=>{const _0x5a1201=_0x214a0a;this['_commandService'][_0x5a1201(0x227)](s[_0x5a1201(0x17e)]['id'],{'unitId':_0x535a54,'subUnitId':_0x5b59d7},{'fromCollab':!0x0});});}}}[_0x2a6aa1(0x18c)](){const _0x150205=_0x2a6aa1;var _0x16a47e;(_0x16a47e=this[_0x150205(0x1f0)])==null||_0x16a47e[_0x150205(0x1ec)](),this[_0x150205(0x17f)][_0x150205(0x193)](_0x150205(0x224));let _0x9f4cb5=new Map(),_0x3b1844=this['_commandDisposable']=new e[(_0x150205(0x1c0))]();_0x3b1844[_0x150205(0x191)]((0x0,e[_0x150205(0x1d8)])(()=>{const _0x482e16=_0x150205;_0x9f4cb5[_0x482e16(0x172)](({subject:_0x34ba14,subscription:_0x1ee6b8})=>{const _0x593b61=_0x482e16;_0x1ee6b8[_0x593b61(0x183)](),_0x34ba14['complete']();}),_0x9f4cb5[_0x482e16(0x20a)]();})),_0x3b1844[_0x150205(0x191)](this[_0x150205(0x200)][_0x150205(0x1ce)](_0x59d296=>{const _0x5aea20=_0x150205;if(_0x59d296[_0x5aea20(0x229)]!==e['CommandType'][_0x5aea20(0x1ff)]||!this[_0x5aea20(0x1b3)][_0x5aea20(0x1ca)](_0x59d296['id']))return;let {id:_0x2c365e}=_0x59d296,_0x442dfc;if(_0x9f4cb5[_0x5aea20(0x1dd)](_0x2c365e))_0x442dfc=_0x9f4cb5[_0x5aea20(0x18b)](_0x2c365e)[_0x5aea20(0x1ab)];else{var _0x2a1984;_0x442dfc=new c['Subject']();let _0xa76041=_0x442dfc[_0x5aea20(0x22e)]((0x0,l[_0x5aea20(0x19a)])((_0x2a1984=this['_configService'][_0x5aea20(0x18a)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2a1984,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5aea20(0x1db)](_0x344830=>{const _0x5a406f=_0x5aea20;this['_collabSession']['send']({'eventID':a['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5a406f(0x1c1)],'operations':{[_0x344830['id']]:{'id':_0x344830['id'],'params':JSON[_0x5a406f(0x228)](_0x344830[_0x5a406f(0x17d)])}}}},this[_0x5a406f(0x1c1)]);});_0x9f4cb5[_0x5aea20(0x222)](_0x2c365e,{'subject':_0x442dfc,'subscription':_0xa76041});}_0x442dfc[_0x5aea20(0x193)](_0x59d296);})),this['_liveShareService'][_0x150205(0x1e2)](this['_unitID'])[_0x150205(0x172)](_0xa00189=>this[_0x150205(0x1a4)][_0x150205(0x1e8)]({'eventID':a[_0x150205(0x188)][_0x150205(0x1c9)],'data':{'unitID':this['_unitID'],'operations':{[_0xa00189['id']]:{'id':_0xa00189['id'],'params':JSON[_0x150205(0x228)](_0xa00189[_0x150205(0x17d)])}}}},this[_0x150205(0x1c1)]));}[_0x2a6aa1(0x1d3)](){const _0x339401=_0x2a6aa1;var _0x4eb665;this[_0x339401(0x17f)][_0x339401(0x193)](_0x339401(0x21b)),(_0x4eb665=this[_0x339401(0x1f0)])==null||_0x4eb665['dispose'](),this[_0x339401(0x1f0)]=null;}[_0x2a6aa1(0x174)](){const _0x3b8d85=_0x2a6aa1;var _0x5f37c3;(_0x5f37c3=this[_0x3b8d85(0x1f0)])==null||_0x5f37c3[_0x3b8d85(0x1ec)](),this[_0x3b8d85(0x17f)][_0x3b8d85(0x193)](_0x3b8d85(0x1f3));}[_0x2a6aa1(0x217)](){const _0x531040=_0x2a6aa1;var _0x2ada3d;this['_status$'][_0x531040(0x193)](_0x531040(0x21b)),(_0x2ada3d=this[_0x531040(0x1f0)])==null||_0x2ada3d['dispose'](),this[_0x531040(0x1f0)]=null;}['_stopFollowing'](){const _0x3fe2fb=_0x2a6aa1;var _0x421d4b;this['_status$'][_0x3fe2fb(0x193)](_0x3fe2fb(0x1b5)),(_0x421d4b=this[_0x3fe2fb(0x1f0)])==null||_0x421d4b['dispose']();}['_handleOperation'](_0x41d822){const _0x2bdd15=_0x2a6aa1;if([_0x2bdd15(0x224),_0x2bdd15(0x1b5),_0x2bdd15(0x1c6)]['includes'](this['_status'])||!_0x41d822[_0x2bdd15(0x209)]['presenter']||_0x41d822[_0x2bdd15(0x209)]['presenter']===this['_collabSession'][_0x2bdd15(0x21a)]())return;this[_0x2bdd15(0x1fb)]===_0x2bdd15(0x21b)&&this[_0x2bdd15(0x174)]();let _0x32a294=_0x41d822[_0x2bdd15(0x209)]['operations'];Object['values'](_0x32a294)[_0x2bdd15(0x172)](_0xf9275c=>{const _0x45fef5=_0x2bdd15;this[_0x45fef5(0x200)][_0x45fef5(0x227)](_0xf9275c['id'],_0xf9275c[_0x45fef5(0x17d)]?JSON[_0x45fef5(0x19e)](_0xf9275c[_0x45fef5(0x17d)]):null,{'fromCollab':!0x0});});}[_0x2a6aa1(0x1d4)](){const _0x3cf985=_0x2a6aa1;var _0xfda53f;this[_0x3cf985(0x17f)]['next'](_0x3cf985(0x1c6)),(_0xfda53f=this[_0x3cf985(0x1f0)])==null||_0xfda53f['dispose']();}[_0x2a6aa1(0x225)](){const _0x253f26=_0x2a6aa1;this['_status$']['next'](_0x253f26(0x21b)),this[_0x253f26(0x182)]();}};x=v([_(0x2,e[_0x2a6aa1(0x186)]),_(0x3,(0x0,e[_0x2a6aa1(0x189)])(g)),_(0x4,e[_0x2a6aa1(0x1ea)])],x);function S(){const _0x1d0d3d=_0x2a6aa1;let _0x2a5f5b=(0x0,t['useDependency'])(y),_0x506ba0=(0x0,t[_0x1d0d3d(0x216)])(e[_0x1d0d3d(0x1a5)]),_0x569878=(0x0,t[_0x1d0d3d(0x198)])(()=>_0x506ba0[_0x1d0d3d(0x219)](e[_0x1d0d3d(0x221)][_0x1d0d3d(0x1f7)]),void 0x0,!0x1,[]),[_0x3aa62f,_0x53dd2c]=(0x0,i['useState'])(null),[_0x354ca2,_0x130c34]=(0x0,i[_0x1d0d3d(0x22a)])(_0x1d0d3d(0x21b)),_0x9ddb1b=(0x0,i['useRef'])(null);return(0x0,i['useEffect'])(()=>(_0x569878&&_0x2a5f5b[_0x1d0d3d(0x1f5)](_0x569878['getUnitId']())['then'](_0x4f3d42=>{const _0x476c3f=_0x1d0d3d;_0x53dd2c(_0x4f3d42),_0x9ddb1b[_0x476c3f(0x1c4)]=_0x4f3d42[_0x476c3f(0x1d5)][_0x476c3f(0x1db)](_0x508d81=>{_0x130c34(_0x508d81);});}),()=>{const _0x75909d=_0x1d0d3d;var _0x3e794d;(_0x3e794d=_0x9ddb1b['current'])==null||_0x3e794d['unsubscribe'](),_0x9ddb1b[_0x75909d(0x1c4)]=null;}),[_0x569878,_0x2a5f5b]),_0x3aa62f?(0x0,u[_0x1d0d3d(0x207)])(n[_0x1d0d3d(0x1a2)],{'align':_0x1d0d3d(0x203),'disabled':_0x354ca2===_0x1d0d3d(0x1c6),'className':_0x1d0d3d(0x175),'overlay':(0x0,u['jsx'])(C,{'status':_0x354ca2,'coordinator':_0x3aa62f}),'children':(0x0,u[_0x1d0d3d(0x207)])(_0x1d0d3d(0x1ad),{'className':(0x0,n[_0x1d0d3d(0x212)])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x354ca2==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x354ca2!==_0x1d0d3d(0x1c6)}),'type':_0x1d0d3d(0x1ad),'children':(0x0,u['jsx'])(r[_0x1d0d3d(0x181)],{'className':_0x1d0d3d(0x1f9)})})}):null;}function C(_0x460016){const _0xf2cd4a=_0x2a6aa1;let {status:_0x1e75ee,coordinator:_0x541939}=_0x460016;switch(_0x1e75ee){case _0xf2cd4a(0x21b):return(0x0,u['jsx'])(w,{'coordinator':_0x541939});case _0xf2cd4a(0x1f3):return(0x0,u['jsx'])(T,{'coordinator':_0x541939});case _0xf2cd4a(0x1b5):return(0x0,u[_0xf2cd4a(0x207)])(E,{'coordinator':_0x541939});case _0xf2cd4a(0x1c6):return(0x0,u['jsx'])(O,{});case _0xf2cd4a(0x224):return(0x0,u['jsx'])(D,{'coordinator':_0x541939});default:return null;}}function w(_0x4be624){const _0x4d652b=_0x2a6aa1;let {coordinator:_0x4bee47}=_0x4be624;return(0x0,u[_0x4d652b(0x208)])(u[_0x4d652b(0x21e)],{'children':[(0x0,u[_0x4d652b(0x207)])(_0x4d652b(0x1aa),{'className':_0x4d652b(0x1c2),'children':_0x4d652b(0x226)}),(0x0,u[_0x4d652b(0x207)])(n['Button'],{'onClick':()=>_0x4bee47['tryStartPresenting'](),'children':_0x4d652b(0x1e3)})]});}function T(_0x3b18ca){const _0x44e64b=_0x2a6aa1;let {coordinator:_0x4abe44}=_0x3b18ca;return(0x0,u['jsxs'])(u[_0x44e64b(0x21e)],{'children':[(0x0,u['jsx'])(_0x44e64b(0x1aa),{'className':_0x44e64b(0x1c2),'children':_0x44e64b(0x173)}),(0x0,u['jsx'])(n[_0x44e64b(0x19f)],{'onClick':()=>_0x4abe44[_0x44e64b(0x22d)](),'children':_0x44e64b(0x214)})]});}function E(_0x107d95){const _0x3eb5aa=_0x2a6aa1;let {coordinator:_0x3f007e}=_0x107d95;return(0x0,u[_0x3eb5aa(0x208)])(u[_0x3eb5aa(0x21e)],{'children':[(0x0,u[_0x3eb5aa(0x207)])(_0x3eb5aa(0x1aa),{'className':_0x3eb5aa(0x1c2),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,u[_0x3eb5aa(0x207)])(n['Button'],{'variant':_0x3eb5aa(0x1ba),'onClick':()=>_0x3f007e[_0x3eb5aa(0x210)](),'children':'Start\x20following'})]});}function D(_0x8ed177){const _0x583276=_0x2a6aa1;let {coordinator:_0x4d490b}=_0x8ed177;return(0x0,u[_0x583276(0x208)])(u[_0x583276(0x21e)],{'children':[(0x0,u[_0x583276(0x207)])(_0x583276(0x1aa),{'className':_0x583276(0x1c2),'children':_0x583276(0x20e)}),(0x0,u[_0x583276(0x207)])(n[_0x583276(0x19f)],{'variant':_0x583276(0x199),'onClick':()=>_0x4d490b[_0x583276(0x1a3)](),'children':'Stop\x20presenting'})]});}function O(){const _0x8d0f1f=_0x2a6aa1;return(0x0,u['jsx'])(u[_0x8d0f1f(0x21e)],{'children':'You\x27are\x20offline.'});}let k=class extends e[_0x2a6aa1(0x1e9)]{constructor(_0xd1e325,_0x2a0112){const _0x142d1b=_0x2a6aa1;super(),this[_0x142d1b(0x17a)]=_0xd1e325,this[_0x142d1b(0x1fe)]=_0x2a0112,this[_0x142d1b(0x1da)]();}[_0x2a6aa1(0x1da)](){const _0x44caec=_0x2a6aa1;this[_0x44caec(0x220)](this[_0x44caec(0x1fe)][_0x44caec(0x1b2)](t[_0x44caec(0x20b)][_0x44caec(0x18d)],()=>(0x0,t['connectInjector'])(S,this[_0x44caec(0x17a)])));}};k=v([_(0x0,(0x0,e['Inject'])(e[_0x2a6aa1(0x1cf)])),_(0x1,t[_0x2a6aa1(0x205)])],k);function _0x4b1b(){const _0x1dd580=['subject','string','button','function','pluginName','BehaviorSubject','getOwnPropertyDescriptor','registerComponent','_liveShareService','_reporters','not-following','0.25.1','prototype','reverse','override','text','_handleNewChangeSets','mergeOverrideWithDependencies','symbol','live-share.config','getTypeOfUnitDisposed$','DisposableCollection','_unitID','univer-mb-3\x20univer-w-full\x20univer-text-sm','161084EWpetQ','current','length','offline','PRESENTING','Plugin','LIVESHARE_OPERATION','shouldShareOperation','LiveShareController','requireSession','decorate','onCommandExecuted','Injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createInstance','NEW_CHANGESETS','_stopPresenting','_handleOffline','status$','registerDependencies','NOT_FOLLOWING','toDisposable','OFFLINE','_mountLiveShare','subscribe','touchDependencies','has','IDLE','SetZoomRatioOperation','merge','_univerInstanceService','getInitialStates','Start','RxDisposable','LiveShareService','11012782ADfTJQ','ONLINE','send','Disposable','ICommandService','takeUntil','dispose','find','1416980CJfFNx','LIVESHARE_NEW_HOST','_commandDisposable','1817893HgGPrN','unitId','following','1394168jqwdKy','getLiveShareCoordinator','dispose$','UNIVER_SHEET','962739iQnpOr','univer-size-4','LiveShareStatus','_status','LiveShareCoordinator','from','_uiPartsService','OPERATION','_commandService','DependentOn','_presenter','end','UNIVER_LIVE_SHARE_PLUGIN','IUIPartsService','setConfig','jsx','jsxs','data','clear','BuiltInUIPart','_init','63KxnkGQ','You\x27re\x20presenting\x20the\x20document','map','startFollowing','toStringTag','clsx','version','Stop\x20following','event$','useDependency','_beIdle','FOLLOWING','getCurrentTypeOfUnit$','getMemberID','idle','_handleTerminate','2liAotl','Fragment','_stopFollowing','disposeWithMe','UniverInstanceType','set','init','presenting','_handleOnline','Present\x20this\x20document','executeCommand','stringify','type','useState','delete','getUnitId','stopFollowing','pipe','1027400AiLpTk','forEach','You\x27re\x20following\x20the\x20presenter','_startFollowing','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','getValue','object','18RKzSnP','_startLiveShareCoordinator','_injector','_configService','UniverCollaborationClientPlugin','params','SetWorksheetActiveOperation','_status$','UniverLiveSharePlugin','LiveShareIcon','_fetchOperations','unsubscribe','_entities','LIVESHARE_FETCH_OPERATIONS','IConfigService','InsertSheetMutation','CollaborationEvent','Inject','getConfig','get','_startPresenting','HEADER_MENU','UNIVER_UNKNOWN','getLiveShareCoordinatorSync','memberID','add','_handleNewHost','next','onRendered','_collabSessionService','_sharedOperations','mutations','useObservable','default','throttleTime','registerSharedOperation','SessionStatus','registerInitialStateReporter','parse','Button','_config','getTypeOfUnitAdded$','Dropdown','stopPresenting','_collabSession','IUniverInstanceService','asObservable','constructor','115oYeyAW','defineProperty','div'];_0x4b1b=function(){return _0x1dd580;};return _0x4b1b();}var A='@univerjs-pro/live-share',j=_0x2a6aa1(0x1b6);const M={};let N=class extends e['Disposable']{constructor(_0x538552){const _0x4e571a=_0x2a6aa1;super(),this[_0x4e571a(0x1b3)]=_0x538552,this[_0x4e571a(0x20c)]();}[_0x2a6aa1(0x20c)](){const _0x274772=_0x2a6aa1;[d[_0x274772(0x1df)]['id'],d['SetScrollOperation']['id'],s[_0x274772(0x17e)]['id']]['forEach'](_0x3068c1=>{const _0x2ef60f=_0x274772;this[_0x2ef60f(0x220)](this[_0x2ef60f(0x1b3)]['registerSharedOperation'](_0x3068c1));});}};N=v([_(0x0,(0x0,e['Inject'])(g))],N);function _0x1878(_0x5bfa1c,_0x14f4ae){_0x5bfa1c=_0x5bfa1c-0x171;const _0x4b1b2b=_0x4b1b();let _0x1878f9=_0x4b1b2b[_0x5bfa1c];return _0x1878f9;}let P=class extends e[_0x2a6aa1(0x1c8)]{constructor(_0x1c80af=M,_0x3a8f4a,_0x1501c9){const _0x28355b=_0x2a6aa1;super(),this[_0x28355b(0x1a0)]=_0x1c80af,this[_0x28355b(0x17a)]=_0x3a8f4a,this[_0x28355b(0x17b)]=_0x1501c9;let {..._0x57a5d2}=(0x0,e[_0x28355b(0x1e0)])({},M,this['_config']);this[_0x28355b(0x17b)][_0x28355b(0x206)](_0x28355b(0x1be),_0x57a5d2);}['onStarting'](){const _0x125fe1=_0x2a6aa1;(0x0,e[_0x125fe1(0x1d6)])(this[_0x125fe1(0x17a)],(0x0,e[_0x125fe1(0x1bc)])([[g],[y],[N],[k]],this[_0x125fe1(0x1a0)][_0x125fe1(0x1b9)])),(0x0,e['touchDependencies'])(this[_0x125fe1(0x17a)],[[N]]);}[_0x2a6aa1(0x194)](){const _0x2b0116=_0x2a6aa1;(0x0,e[_0x2b0116(0x1dc)])(this[_0x2b0116(0x17a)],[[k]]);}};h(P,_0x2a6aa1(0x229),e[_0x2a6aa1(0x221)][_0x2a6aa1(0x18e)]),h(P,_0x2a6aa1(0x1af),_0x2a6aa1(0x204)),h(P,'packageName',A),h(P,_0x2a6aa1(0x213),j),P=v([(0x0,e[_0x2a6aa1(0x201)])(o[_0x2a6aa1(0x17c)]),_(0x1,(0x0,e[_0x2a6aa1(0x189)])(e[_0x2a6aa1(0x1cf)])),_(0x2,e[_0x2a6aa1(0x186)])],P),Object[_0x2a6aa1(0x1a9)](exports,'DesktopLiveShareController',{'enumerable':!0x0,'get':function(){return k;}}),exports['LiveShare']=S,Object['defineProperty'](exports,_0x2a6aa1(0x1cb),{'enumerable':!0x0,'get':function(){return y;}}),Object[_0x2a6aa1(0x1a9)](exports,_0x2a6aa1(0x1fc),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x2a6aa1(0x1e5)]=g,exports[_0x2a6aa1(0x1fa)]=b,Object['defineProperty'](exports,_0x2a6aa1(0x180),{'enumerable':!0x0,'get':function(){return P;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x303a(_0x52d751,_0x2ede3d){_0x52d751=_0x52d751-0x85;const _0x2fcba9=_0x2fcb();let _0x303a3a=_0x2fcba9[_0x52d751];return _0x303a3a;}const _0x15dec6=_0x303a;(function(_0x442712,_0x97fb7a){const _0x3ff7b4=_0x303a,_0x58e93c=_0x442712();while(!![]){try{const _0x53af9b=-parseInt(_0x3ff7b4(0x89))/0x1*(parseInt(_0x3ff7b4(0x94))/0x2)+-parseInt(_0x3ff7b4(0xa4))/0x3+parseInt(_0x3ff7b4(0x93))/0x4+parseInt(_0x3ff7b4(0xa5))/0x5+-parseInt(_0x3ff7b4(0x9e))/0x6+parseInt(_0x3ff7b4(0x85))/0x7*(parseInt(_0x3ff7b4(0xa7))/0x8)+parseInt(_0x3ff7b4(0x8d))/0x9;if(_0x53af9b===_0x97fb7a)break;else _0x58e93c['push'](_0x58e93c['shift']());}catch(_0x4c2baf){_0x58e93c['push'](_0x58e93c['shift']());}}}(_0x2fcb,0x86143));function _0x2fcb(){const _0x4f6fcd=['getCurrentUnitOfType','2655018YgQYHC','4587660RekjyL','get','8QFksfw','defineProperty','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','function','startFollowing','UNIVER_SHEET','3999205jENbWg','iterator','getLiveShareStatus','getLiveShareCoordinatorSync','944728qHkQbP','stopFollowing','call','_liveShareController','10568871jMMSjN','getStatus','default','_injector','tryStartPresenting','getUnitId','1275720CSdIbN','2tvPmNL','prototype','extend','string','No\x20active\x20workbook\x20found.','symbol','constructor','startPresenting','stopPresenting','toPrimitive','3619050TiQrAr','IDLE','LiveShareStatusEnum','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.'];_0x2fcb=function(){return _0x4f6fcd;};return _0x2fcb();}import{LiveShareController as _0x29911a,LiveShareStatus as _0x2b9fc5}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x22a8d9,UniverInstanceType as _0x2cdea1}from'@univerjs/core';import{FEnum as _0x7b51a,FUniver as _0x3b0d47}from'@univerjs/core/facade';function o(_0x2d78a7){'@babel/helpers - typeof';const _0x254ff2=_0x303a;return o=typeof Symbol==_0x254ff2(0xaa)&&typeof Symbol[_0x254ff2(0x86)]=='symbol'?function(_0x356d32){return typeof _0x356d32;}:function(_0x5e0744){const _0x4054cb=_0x254ff2;return _0x5e0744&&typeof Symbol==_0x4054cb(0xaa)&&_0x5e0744[_0x4054cb(0x9a)]===Symbol&&_0x5e0744!==Symbol[_0x4054cb(0x95)]?_0x4054cb(0x99):typeof _0x5e0744;},o(_0x2d78a7);}function s(_0x4566c0,_0x1352b2){const _0x17af68=_0x303a;if(o(_0x4566c0)!=_0x17af68(0xa1)||!_0x4566c0)return _0x4566c0;var _0x21d2f2=_0x4566c0[Symbol[_0x17af68(0x9d)]];if(_0x21d2f2!==void 0x0){var _0x125675=_0x21d2f2[_0x17af68(0x8b)](_0x4566c0,_0x1352b2||_0x17af68(0x8f));if(o(_0x125675)!=_0x17af68(0xa1))return _0x125675;throw TypeError(_0x17af68(0xa2));}return(_0x1352b2===_0x17af68(0x97)?String:Number)(_0x4566c0);}function c(_0x597870){const _0x341463=_0x303a;var _0x10b68d=s(_0x597870,_0x341463(0x97));return o(_0x10b68d)==_0x341463(0x99)?_0x10b68d:_0x10b68d+'';}function l(_0x2d8e77,_0x290394,_0x3be3bc){const _0x37059c=_0x303a;return(_0x290394=c(_0x290394))in _0x2d8e77?Object[_0x37059c(0xa8)](_0x2d8e77,_0x290394,{'value':_0x3be3bc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d8e77[_0x290394]=_0x3be3bc,_0x2d8e77;}var u=class extends _0x3b0d47{constructor(..._0x203974){const _0x422d64=_0x303a;super(..._0x203974),l(this,_0x422d64(0x8c),void 0x0);}['_initialize'](_0x7c795e){const _0x2d3553=_0x303a;this['_liveShareController']=_0x7c795e[_0x2d3553(0xa6)](_0x29911a);}[_0x15dec6(0x87)](){const _0x3973dd=_0x15dec6;var _0x4c5c58;let _0xad1859=this['_injector'][_0x3973dd(0xa6)](_0x22a8d9)[_0x3973dd(0xa3)](_0x2cdea1[_0x3973dd(0xac)]);if(!_0xad1859)throw Error('No\x20active\x20workbook\x20found.');let _0x185a76=_0xad1859[_0x3973dd(0x92)](),_0x17256c=this['_liveShareController'][_0x3973dd(0x88)](_0x185a76);return(_0x4c5c58=_0x17256c==null?void 0x0:_0x17256c[_0x3973dd(0x8e)]())==null?_0x2b9fc5[_0x3973dd(0x9f)]:_0x4c5c58;}[_0x15dec6(0xab)](){const _0x1651be=_0x15dec6;let _0x2281a3=this[_0x1651be(0x90)][_0x1651be(0xa6)](_0x22a8d9)[_0x1651be(0xa3)](_0x2cdea1[_0x1651be(0xac)]);if(!_0x2281a3)throw Error('No\x20active\x20workbook\x20found.');let _0x1d8bea=_0x2281a3['getUnitId'](),_0x4b599f=this[_0x1651be(0x8c)][_0x1651be(0x88)](_0x1d8bea);if(!_0x4b599f)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4b599f[_0x1651be(0xab)]();}[_0x15dec6(0x8a)](){const _0x48887d=_0x15dec6;let _0xcd7b84=this[_0x48887d(0x90)][_0x48887d(0xa6)](_0x22a8d9)['getCurrentUnitOfType'](_0x2cdea1[_0x48887d(0xac)]);if(!_0xcd7b84)throw Error('No\x20active\x20workbook\x20found.');let _0x51b80f=_0xcd7b84['getUnitId'](),_0x34194d=this[_0x48887d(0x8c)]['getLiveShareCoordinatorSync'](_0x51b80f);if(!_0x34194d)throw Error(_0x48887d(0xa9));_0x34194d['stopFollowing']();}[_0x15dec6(0x9b)](){const _0x58989f=_0x15dec6;let _0x459276=this[_0x58989f(0x90)]['get'](_0x22a8d9)['getCurrentUnitOfType'](_0x2cdea1[_0x58989f(0xac)]);if(!_0x459276)throw Error(_0x58989f(0x98));let _0x44a772=_0x459276[_0x58989f(0x92)](),_0x16af71=this[_0x58989f(0x8c)][_0x58989f(0x88)](_0x44a772);if(!_0x16af71)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x16af71[_0x58989f(0x91)]();}['stopPresenting'](){const _0x174886=_0x15dec6;let _0x1ee611=this['_injector'][_0x174886(0xa6)](_0x22a8d9)[_0x174886(0xa3)](_0x2cdea1[_0x174886(0xac)]);if(!_0x1ee611)throw Error(_0x174886(0x98));let _0x51bb88=_0x1ee611['getUnitId'](),_0x13c16a=this[_0x174886(0x8c)][_0x174886(0x88)](_0x51bb88);if(!_0x13c16a)throw Error(_0x174886(0xa9));_0x13c16a[_0x174886(0x9c)]();}};_0x3b0d47['extend'](u);var d=class extends _0x7b51a{get[_0x15dec6(0xa0)](){return _0x2b9fc5;}};_0x7b51a[_0x15dec6(0x96)](d);export{};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4bfb65=_0x2290;(function(_0x38130e,_0x52ba00){const _0x1186c9=_0x2290,_0x574ec6=_0x38130e();while(!![]){try{const _0x41863a=parseInt(_0x1186c9(0x19e))/0x1+-parseInt(_0x1186c9(0x153))/0x2*(parseInt(_0x1186c9(0x16f))/0x3)+-parseInt(_0x1186c9(0x14d))/0x4+-parseInt(_0x1186c9(0x1b9))/0x5+-parseInt(_0x1186c9(0x16a))/0x6*(-parseInt(_0x1186c9(0x158))/0x7)+-parseInt(_0x1186c9(0x136))/0x8*(parseInt(_0x1186c9(0x1af))/0x9)+-parseInt(_0x1186c9(0x177))/0xa*(-parseInt(_0x1186c9(0x14b))/0xb);if(_0x41863a===_0x52ba00)break;else _0x574ec6['push'](_0x574ec6['shift']());}catch(_0x4f0dae){_0x574ec6['push'](_0x574ec6['shift']());}}}(_0x41da,0xadb29));import{CommandType as _0x19d177,DependentOn as _0x59b5e2,Disposable as _0x1ce4ab,DisposableCollection as _0x32b6cc,ICommandService as _0x34d8a7,IConfigService as _0x25496e,IUniverInstanceService as _0x4f09f7,Inject as _0x56773e,Injector as _0x51a301,Plugin as _0x1b359a,RxDisposable as _0x1a3ddb,UniverInstanceType as _0x7bf701,merge as _0x5bb40d,mergeOverrideWithDependencies as _0x250f7e,registerDependencies as _0x519864,toDisposable as _0x3bc937,touchDependencies as _0x4834f3}from'@univerjs/core';import{BuiltInUIPart as _0x342ffe,IUIPartsService as _0x27ea1c,connectInjector as _0x229861,useDependency as _0x4aae14,useObservable as _0x2f2a72}from'@univerjs/ui';import{Button as _0x2e3da7,Dropdown as _0x256d48,clsx as _0x16695f}from'@univerjs/design';import{LiveShareIcon as _0x279c39}from'@univerjs/icons';import{useEffect as _0x3b2091,useRef as _0x3b13ea,useState as _0x3a871b}from'react';import{CollaborationEvent as _0x13fab2,parseProtocolChangeset as _0x5034fc}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3c4ea9,SessionStatus as _0x15ce3e,UniverCollaborationClientPlugin as _0x138c17}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5c83b9,SetWorksheetActiveOperation as _0x3bef8f}from'@univerjs/sheets';import{BehaviorSubject as _0x4610d5,Subject as _0x5f429a}from'rxjs';import{takeUntil as _0x264a65,throttleTime as _0x16b8ad}from'rxjs/operators';import{Fragment as _0x2f0b38,jsx as _0x5e0507,jsxs as _0x546f71}from'react/jsx-runtime';import{SetScrollOperation as _0x5abf17,SetZoomRatioOperation as _0x59b108}from'@univerjs/sheets-ui';function R(_0x2a1524){'@babel/helpers - typeof';const _0x5341fc=_0x2290;return R=typeof Symbol==_0x5341fc(0x147)&&typeof Symbol['iterator']=='symbol'?function(_0x425c03){return typeof _0x425c03;}:function(_0x1fc4ff){const _0x3eaa98=_0x5341fc;return _0x1fc4ff&&typeof Symbol==_0x3eaa98(0x147)&&_0x1fc4ff['constructor']===Symbol&&_0x1fc4ff!==Symbol[_0x3eaa98(0x18d)]?_0x3eaa98(0x159):typeof _0x1fc4ff;},R(_0x2a1524);}function z(_0x101c94,_0xbd8e4c){const _0x2031cd=_0x2290;if(R(_0x101c94)!='object'||!_0x101c94)return _0x101c94;var _0x2e139b=_0x101c94[Symbol[_0x2031cd(0x174)]];if(_0x2e139b!==void 0x0){var _0x4318e7=_0x2e139b['call'](_0x101c94,_0xbd8e4c||_0x2031cd(0x15f));if(R(_0x4318e7)!=_0x2031cd(0x19d))return _0x4318e7;throw TypeError(_0x2031cd(0x14f));}return(_0xbd8e4c==='string'?String:Number)(_0x101c94);}function B(_0xb11bdc){const _0x443b0d=_0x2290;var _0x518065=z(_0xb11bdc,_0x443b0d(0x15b));return R(_0x518065)=='symbol'?_0x518065:_0x518065+'';}function V(_0x3ca471,_0x499271,_0x3f6cce){const _0x205b8a=_0x2290;return(_0x499271=B(_0x499271))in _0x3ca471?Object[_0x205b8a(0x152)](_0x3ca471,_0x499271,{'value':_0x3f6cce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3ca471[_0x499271]=_0x3f6cce,_0x3ca471;}var H=class extends _0x1ce4ab{constructor(..._0x539b07){const _0x8269b0=_0x2290;super(..._0x539b07),V(this,'_sharedOperations',new Set()),V(this,_0x8269b0(0x14a),new Set());}['registerSharedOperation'](_0x28ed9c){const _0x5597fe=_0x2290;return this[_0x5597fe(0x155)]['add'](_0x28ed9c),_0x3bc937(()=>this[_0x5597fe(0x155)]['delete'](_0x28ed9c));}[_0x4bfb65(0x187)](_0x47d1c8){const _0x22aa2f=_0x4bfb65;return this[_0x22aa2f(0x14a)][_0x22aa2f(0x12d)](_0x47d1c8),_0x3bc937(()=>this[_0x22aa2f(0x14a)]['delete'](_0x47d1c8));}[_0x4bfb65(0x15d)](_0x412477){const _0x3c25a9=_0x4bfb65;return this[_0x3c25a9(0x155)][_0x3c25a9(0x170)](_0x412477);}[_0x4bfb65(0x146)](_0x3d3879){const _0x2096ab=_0x4bfb65;return Array[_0x2096ab(0x157)](this['_reporters'])[_0x2096ab(0x18a)](_0x53f955=>_0x53f955(_0x3d3879));}};function U(_0x474cb9,_0x30c562){return function(_0x5b3b51,_0x10e3a5){_0x30c562(_0x5b3b51,_0x10e3a5,_0x474cb9);};}function W(_0x19748c,_0x2c7c96,_0x447637,_0x272e45){const _0x4f229f=_0x4bfb65;var _0x515ddf=arguments[_0x4f229f(0x135)],_0x34c317=_0x515ddf<0x3?_0x2c7c96:_0x272e45===null?_0x272e45=Object[_0x4f229f(0x191)](_0x2c7c96,_0x447637):_0x272e45,_0x3c960c;if(typeof Reflect=='object'&&typeof Reflect[_0x4f229f(0x144)]==_0x4f229f(0x147))_0x34c317=Reflect[_0x4f229f(0x144)](_0x19748c,_0x2c7c96,_0x447637,_0x272e45);else{for(var _0x477e89=_0x19748c[_0x4f229f(0x135)]-0x1;_0x477e89>=0x0;_0x477e89--)(_0x3c960c=_0x19748c[_0x477e89])&&(_0x34c317=(_0x515ddf<0x3?_0x3c960c(_0x34c317):_0x515ddf>0x3?_0x3c960c(_0x2c7c96,_0x447637,_0x34c317):_0x3c960c(_0x2c7c96,_0x447637))||_0x34c317);}return _0x515ddf>0x3&&_0x34c317&&Object['defineProperty'](_0x2c7c96,_0x447637,_0x34c317),_0x34c317;}function _0x41da(){const _0x3b2379=['Stop\x20following','Start\x20following','SAME_OPERATION_SHARE_INTERVAL','getStatus','includes','_status','_status$','_startLiveShareCoordinator','You\x27re\x20not\x20following\x20the\x20presenter','status$','_univerInstanceService','2763cWqBeO','Present\x20this\x20document','operations','params','_startFollowing','_unitID','unsubscribe','_uiPartsService','stopFollowing','getLiveShareCoordinator','3390370UUWlsD','forEach','current','dispose','LIVESHARE_FETCH_OPERATIONS','following','LIVESHARE_OPERATION','_configService','event$','add','not-following','live-share.config','LIVESHARE_REQUEST_HOST','type','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','pluginName','_entities','length','8784fJLvGx','memberID','stopPresenting','You\x27are\x20offline.','You\x27re\x20presenting\x20the\x20document','getLiveShareCoordinatorSync','_handleOnline','init','_presenter','_stopFollowing','disposeWithMe','0.25.0','UNIVER_SHEET','_liveShareService','decorate','_beIdle','getInitialStates','function','tryStartPresenting','_commandDisposable','_reporters','2179914wFynEy','getConfig','1407576bqAdTG','getTypeOfUnitDisposed$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','div','offline','defineProperty','754124sTQsrk','_handleNewChangeSets','_sharedOperations','NOT_FOLLOWING','from','7pxkwak','symbol','getUnitId','string','startFollowing','shouldShareOperation','_mountLiveShare','default','_handleOperation','set','send','pipe','dispose$','text','complete','setConfig','_collabSession','_collabSessionService','3121062VbFUgg','next','subscribe','getTypeOfUnitAdded$','PRESENTING','3FGxjnp','has','executeCommand','find','registerSharedOperation','toPrimitive','data','HEADER_MENU','30iPaxFT','UNIVER_LIVE_SHARE_PLUGIN','FOLLOWING','LIVESHARE_TERMINATE','reverse','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_stopPresenting','_injector','values','asObservable','_init','createInstance','presenting','then','_startPresenting','_commandService','registerInitialStateReporter','NEW_CHANGESETS','_fetchOperations','map','_config','requireSession','prototype','presenter','stringify','univer-mb-3\x20univer-w-full\x20univer-text-sm','getOwnPropertyDescriptor','get','button','sheet','getMemberID','registerComponent','idle','unit','OFFLINE','subject','UNIVER_UNKNOWN','IDLE','object','1340882VUXrLG','parse','onStarting','mutations','_handleNewHost','_handleOffline'];_0x41da=function(){return _0x3b2379;};return _0x41da();}let G=class extends _0x1a3ddb{constructor(_0x25b0f7,_0x1e18be,_0x30f611){const _0x2cee2a=_0x4bfb65;super(),this[_0x2cee2a(0x1ae)]=_0x25b0f7,this[_0x2cee2a(0x17e)]=_0x1e18be,this[_0x2cee2a(0x169)]=_0x30f611,V(this,_0x2cee2a(0x134),new Map()),this[_0x2cee2a(0x181)]();}async['getLiveShareCoordinator'](_0x104e9f){const _0x2cad5a=_0x4bfb65;return this[_0x2cad5a(0x134)][_0x2cad5a(0x170)](_0x104e9f)||await this[_0x2cad5a(0x1ab)](_0x104e9f),this['_entities'][_0x2cad5a(0x192)](_0x104e9f);}[_0x4bfb65(0x13b)](_0xa5236){const _0x6baff3=_0x4bfb65;var _0x2cb56a;return(_0x2cb56a=this[_0x6baff3(0x134)][_0x6baff3(0x192)](_0xa5236))==null?null:_0x2cb56a;}[_0x4bfb65(0x181)](){const _0x43e8d3=_0x4bfb65;this[_0x43e8d3(0x1ae)][_0x43e8d3(0x16d)](_0x7bf701[_0x43e8d3(0x142)])[_0x43e8d3(0x163)](_0x264a65(this[_0x43e8d3(0x164)]))[_0x43e8d3(0x16c)](async _0x25bc6e=>{const _0xe3be1b=_0x43e8d3;let _0x57b1df=_0x25bc6e[_0xe3be1b(0x198)]['getUnitId']();this[_0xe3be1b(0x134)][_0xe3be1b(0x170)](_0x57b1df)||this[_0xe3be1b(0x1ab)](_0x57b1df);}),this[_0x43e8d3(0x1ae)][_0x43e8d3(0x14e)](_0x7bf701[_0x43e8d3(0x142)])[_0x43e8d3(0x163)](_0x264a65(this[_0x43e8d3(0x164)]))[_0x43e8d3(0x16c)](_0xe09c49=>{const _0x597665=_0x43e8d3;let _0x45582d=_0xe09c49[_0x597665(0x15a)](),_0x578ec6=this[_0x597665(0x134)]['get'](_0x45582d);_0x578ec6==null||_0x578ec6[_0x597665(0x1bc)]();});}async[_0x4bfb65(0x1ab)](_0x4c900c){const _0x3faca5=_0x4bfb65;let _0x35a9ac=await this[_0x3faca5(0x169)][_0x3faca5(0x18c)](_0x4c900c),_0x8f180b=this[_0x3faca5(0x17e)][_0x3faca5(0x182)](q,_0x4c900c,_0x35a9ac);return _0x8f180b[_0x3faca5(0x13d)](),this[_0x3faca5(0x134)][_0x3faca5(0x161)](_0x4c900c,_0x8f180b),_0x8f180b;}};G=W([U(0x0,_0x4f09f7),U(0x1,_0x56773e(_0x51a301)),U(0x2,_0x56773e(_0x3c4ea9))],G);let K=function(_0x553144){const _0x71acf4=_0x4bfb65;return _0x553144[_0x71acf4(0x199)]=_0x71acf4(0x151),_0x553144[_0x71acf4(0x19c)]=_0x71acf4(0x197),_0x553144[_0x71acf4(0x179)]=_0x71acf4(0x1be),_0x553144[_0x71acf4(0x156)]='not-following',_0x553144[_0x71acf4(0x16e)]=_0x71acf4(0x183),_0x553144;}({}),q=class extends _0x1a3ddb{get[_0x4bfb65(0x1a9)](){const _0x5583b9=_0x4bfb65;return this[_0x5583b9(0x1aa)]['getValue']();}constructor(_0x44bda8,_0x368732,_0x37c925,_0x22b1b0,_0x34397c){const _0x113d22=_0x4bfb65;super(),this['_unitID']=_0x44bda8,this['_collabSession']=_0x368732,this[_0x113d22(0x1c0)]=_0x37c925,this[_0x113d22(0x143)]=_0x22b1b0,this[_0x113d22(0x186)]=_0x34397c,V(this,_0x113d22(0x1aa),new _0x4610d5('idle')),V(this,_0x113d22(0x1ad),this[_0x113d22(0x1aa)][_0x113d22(0x180)]()),V(this,_0x113d22(0x181),!0x1),V(this,'_commandDisposable',null),V(this,'_presenter',null);}['dispose'](){const _0x1e12bf=_0x4bfb65;var _0x900623;(_0x900623=this[_0x1e12bf(0x149)])==null||_0x900623[_0x1e12bf(0x1bc)](),this[_0x1e12bf(0x1aa)][_0x1e12bf(0x16b)]('idle'),this['_status$'][_0x1e12bf(0x166)]();}[_0x4bfb65(0x1a7)](){const _0x290313=_0x4bfb65;return this[_0x290313(0x1a9)];}[_0x4bfb65(0x13d)](){const _0x25d25e=_0x4bfb65;this[_0x25d25e(0x181)]||(this['_init']=!0x0,this[_0x25d25e(0x168)]['sessionStatus$'][_0x25d25e(0x163)](_0x264a65(this[_0x25d25e(0x164)]))['subscribe'](_0x2c01e3=>{const _0x20014b=_0x25d25e;switch(_0x2c01e3){case _0x15ce3e[_0x20014b(0x199)]:this[_0x20014b(0x1a3)]();break;case _0x15ce3e['ONLINE']:this[_0x20014b(0x13c)]();break;default:}}),this[_0x25d25e(0x168)][_0x25d25e(0x1c1)][_0x25d25e(0x163)](_0x264a65(this[_0x25d25e(0x164)]))[_0x25d25e(0x16c)](_0x498a23=>{const _0x36d04b=_0x25d25e;let {eventID:_0x56538d}=_0x498a23;switch(_0x56538d){case _0x13fab2['LIVESHARE_NEW_HOST']:this[_0x36d04b(0x1a2)](_0x498a23);break;case _0x13fab2['LIVESHARE_OPERATION']:this[_0x36d04b(0x160)](_0x498a23);break;case _0x13fab2[_0x36d04b(0x17a)]:this['_handleTerminate']();break;case _0x13fab2[_0x36d04b(0x188)]:this[_0x36d04b(0x154)](_0x498a23);break;default:}}));}[_0x4bfb65(0x148)](){const _0x52e11a=_0x4bfb65;this[_0x52e11a(0x168)][_0x52e11a(0x162)]({'eventID':_0x13fab2[_0x52e11a(0x130)],'data':{'unitID':this[_0x52e11a(0x1b4)],'userID':this[_0x52e11a(0x168)]['getMemberID']()}},this[_0x52e11a(0x1b4)]);}[_0x4bfb65(0x138)](){const _0x212eb0=_0x4bfb65;this[_0x212eb0(0x1a9)]===_0x212eb0(0x183)&&(this['_status$'][_0x212eb0(0x16b)](_0x212eb0(0x197)),this[_0x212eb0(0x168)][_0x212eb0(0x162)]({'eventID':_0x13fab2['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x212eb0(0x1b4)]));}[_0x4bfb65(0x15c)](){const _0x4e208c=_0x4bfb65;this[_0x4e208c(0x1a9)]===_0x4e208c(0x12e)&&(this[_0x4e208c(0x1aa)][_0x4e208c(0x16b)](_0x4e208c(0x1be)),this[_0x4e208c(0x1b3)]());}['stopFollowing'](){const _0x1ad6dd=_0x4bfb65;this[_0x1ad6dd(0x1a9)]===_0x1ad6dd(0x1be)&&this[_0x1ad6dd(0x13f)]();}[_0x4bfb65(0x1a2)](_0x3a2ef5){const _0x5db380=_0x4bfb65;let {presenter:_0x574917}=_0x3a2ef5[_0x5db380(0x175)],_0xcda10e=this['_collabSession'][_0x5db380(0x195)]();this[_0x5db380(0x13e)]=_0x574917,_0x574917===_0xcda10e?(this[_0x5db380(0x13f)](),this[_0x5db380(0x185)]()):this[_0x5db380(0x1a9)]!==_0x5db380(0x12e)&&(this[_0x5db380(0x17d)](),this['_startFollowing']());}[_0x4bfb65(0x189)](){const _0x43f052=_0x4bfb65;let _0x421978={'eventID':_0x13fab2[_0x43f052(0x1bd)]};this[_0x43f052(0x168)][_0x43f052(0x162)](_0x421978,this[_0x43f052(0x1b4)]);}['_handleTerminate'](){const _0x58ac23=_0x4bfb65;this[_0x58ac23(0x13e)]=null,this[_0x58ac23(0x1a9)]!==_0x58ac23(0x183)&&this[_0x58ac23(0x145)]();}[_0x4bfb65(0x154)](_0x31bffc){const _0x59116b=_0x4bfb65;if(this['_status']===_0x59116b(0x1be)&&this[_0x59116b(0x13e)]===_0x31bffc[_0x59116b(0x175)][_0x59116b(0x137)]){let _0x7a39f0=_0x5034fc(_0x31bffc[_0x59116b(0x175)])[_0x59116b(0x1a1)][_0x59116b(0x17b)]()[_0x59116b(0x172)](_0x3a37c3=>_0x3a37c3['id']===_0x5c83b9['id']);if(_0x7a39f0){let _0x26d748=_0x7a39f0[_0x59116b(0x1b2)]['unitId'],_0x1afc87=_0x7a39f0[_0x59116b(0x1b2)][_0x59116b(0x194)]['id'];setTimeout(()=>{const _0x2d3809=_0x59116b;this[_0x2d3809(0x186)]['executeCommand'](_0x3bef8f['id'],{'unitId':_0x26d748,'subUnitId':_0x1afc87},{'fromCollab':!0x0});});}}}[_0x4bfb65(0x185)](){const _0x5a1666=_0x4bfb65;var _0x39fb0a;(_0x39fb0a=this['_commandDisposable'])==null||_0x39fb0a[_0x5a1666(0x1bc)](),this[_0x5a1666(0x1aa)]['next']('presenting');let _0x1b1fb7=new Map(),_0x50dd89=this[_0x5a1666(0x149)]=new _0x32b6cc();_0x50dd89['add'](_0x3bc937(()=>{_0x1b1fb7['forEach'](({subject:_0x4cf126,subscription:_0x428f19})=>{const _0x303858=_0x2290;_0x428f19[_0x303858(0x1b5)](),_0x4cf126['complete']();}),_0x1b1fb7['clear']();})),_0x50dd89[_0x5a1666(0x12d)](this[_0x5a1666(0x186)]['onCommandExecuted'](_0x40d0e6=>{const _0x11e372=_0x5a1666;if(_0x40d0e6[_0x11e372(0x131)]!==_0x19d177['OPERATION']||!this[_0x11e372(0x143)][_0x11e372(0x15d)](_0x40d0e6['id']))return;let {id:_0x125e6e}=_0x40d0e6,_0x166778;if(_0x1b1fb7['has'](_0x125e6e))_0x166778=_0x1b1fb7[_0x11e372(0x192)](_0x125e6e)[_0x11e372(0x19a)];else{var _0x8a0057;_0x166778=new _0x5f429a();let _0x19d9a5=_0x166778['pipe'](_0x16b8ad((_0x8a0057=this[_0x11e372(0x1c0)][_0x11e372(0x14c)](_0x11e372(0x1a6)))==null?0xc8:_0x8a0057,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x11e372(0x16c)](_0x4da033=>{const _0x1493f2=_0x11e372;this[_0x1493f2(0x168)][_0x1493f2(0x162)]({'eventID':_0x13fab2[_0x1493f2(0x1bf)],'data':{'unitID':this[_0x1493f2(0x1b4)],'operations':{[_0x4da033['id']]:{'id':_0x4da033['id'],'params':JSON['stringify'](_0x4da033[_0x1493f2(0x1b2)])}}}},this[_0x1493f2(0x1b4)]);});_0x1b1fb7['set'](_0x125e6e,{'subject':_0x166778,'subscription':_0x19d9a5});}_0x166778['next'](_0x40d0e6);})),this[_0x5a1666(0x143)]['getInitialStates'](this[_0x5a1666(0x1b4)])[_0x5a1666(0x1ba)](_0x373811=>this[_0x5a1666(0x168)][_0x5a1666(0x162)]({'eventID':_0x13fab2[_0x5a1666(0x1bf)],'data':{'unitID':this[_0x5a1666(0x1b4)],'operations':{[_0x373811['id']]:{'id':_0x373811['id'],'params':JSON[_0x5a1666(0x18f)](_0x373811[_0x5a1666(0x1b2)])}}}},this[_0x5a1666(0x1b4)]));}[_0x4bfb65(0x17d)](){const _0x227d47=_0x4bfb65;var _0x28363f;this[_0x227d47(0x1aa)][_0x227d47(0x16b)]('idle'),(_0x28363f=this[_0x227d47(0x149)])==null||_0x28363f[_0x227d47(0x1bc)](),this[_0x227d47(0x149)]=null;}[_0x4bfb65(0x1b3)](){const _0x1665ea=_0x4bfb65;var _0x28bc13;(_0x28bc13=this['_commandDisposable'])==null||_0x28bc13[_0x1665ea(0x1bc)](),this['_status$'][_0x1665ea(0x16b)]('following');}[_0x4bfb65(0x145)](){const _0x10c040=_0x4bfb65;var _0x1dc827;this[_0x10c040(0x1aa)][_0x10c040(0x16b)](_0x10c040(0x197)),(_0x1dc827=this[_0x10c040(0x149)])==null||_0x1dc827[_0x10c040(0x1bc)](),this[_0x10c040(0x149)]=null;}[_0x4bfb65(0x13f)](){const _0xc37d19=_0x4bfb65;var _0x14363b;this[_0xc37d19(0x1aa)][_0xc37d19(0x16b)](_0xc37d19(0x12e)),(_0x14363b=this[_0xc37d19(0x149)])==null||_0x14363b[_0xc37d19(0x1bc)]();}[_0x4bfb65(0x160)](_0x4d5f6f){const _0x128a36=_0x4bfb65;if([_0x128a36(0x183),_0x128a36(0x12e),_0x128a36(0x151)][_0x128a36(0x1a8)](this[_0x128a36(0x1a9)])||!_0x4d5f6f['data']['presenter']||_0x4d5f6f[_0x128a36(0x175)][_0x128a36(0x18e)]===this[_0x128a36(0x168)]['getMemberID']())return;this[_0x128a36(0x1a9)]==='idle'&&this[_0x128a36(0x1b3)]();let _0x4eb22e=_0x4d5f6f[_0x128a36(0x175)][_0x128a36(0x1b1)];Object[_0x128a36(0x17f)](_0x4eb22e)[_0x128a36(0x1ba)](_0x24f510=>{const _0x19545e=_0x128a36;this[_0x19545e(0x186)][_0x19545e(0x171)](_0x24f510['id'],_0x24f510['params']?JSON[_0x19545e(0x19f)](_0x24f510[_0x19545e(0x1b2)]):null,{'fromCollab':!0x0});});}[_0x4bfb65(0x1a3)](){const _0x46c67a=_0x4bfb65;var _0x3a08a2;this['_status$'][_0x46c67a(0x16b)](_0x46c67a(0x151)),(_0x3a08a2=this[_0x46c67a(0x149)])==null||_0x3a08a2[_0x46c67a(0x1bc)]();}[_0x4bfb65(0x13c)](){const _0xad2c8f=_0x4bfb65;this['_status$']['next'](_0xad2c8f(0x197)),this[_0xad2c8f(0x189)]();}};q=W([U(0x2,_0x25496e),U(0x3,_0x56773e(H)),U(0x4,_0x34d8a7)],q);function J(){const _0x2b336c=_0x4bfb65;let _0x536d64=_0x4aae14(G),_0x447395=_0x4aae14(_0x4f09f7),_0x30f598=_0x2f2a72(()=>_0x447395['getCurrentTypeOfUnit$'](_0x7bf701[_0x2b336c(0x142)]),void 0x0,!0x1,[]),[_0x36884e,_0x4e526d]=_0x3a871b(null),[_0x3e6134,_0x16fc35]=_0x3a871b(_0x2b336c(0x197)),_0xd5a0c3=_0x3b13ea(null);return _0x3b2091(()=>(_0x30f598&&_0x536d64[_0x2b336c(0x1b8)](_0x30f598[_0x2b336c(0x15a)]())[_0x2b336c(0x184)](_0x103eaa=>{const _0x4f9b48=_0x2b336c;_0x4e526d(_0x103eaa),_0xd5a0c3[_0x4f9b48(0x1bb)]=_0x103eaa[_0x4f9b48(0x1ad)]['subscribe'](_0x274dd1=>{_0x16fc35(_0x274dd1);});}),()=>{const _0x3621be=_0x2b336c;var _0x48eb2b;(_0x48eb2b=_0xd5a0c3[_0x3621be(0x1bb)])==null||_0x48eb2b[_0x3621be(0x1b5)](),_0xd5a0c3[_0x3621be(0x1bb)]=null;}),[_0x30f598,_0x536d64]),_0x36884e?_0x5e0507(_0x256d48,{'align':'end','disabled':_0x3e6134===_0x2b336c(0x151),'className':_0x2b336c(0x132),'overlay':_0x5e0507(se,{'status':_0x3e6134,'coordinator':_0x36884e}),'children':_0x5e0507(_0x2b336c(0x193),{'className':_0x16695f(_0x2b336c(0x17c),{'univer-cursor-not-allowed':_0x3e6134===_0x2b336c(0x151),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3e6134!=='offline'}),'type':'button','children':_0x5e0507(_0x279c39,{'className':'univer-size-4'})})}):null;}function se(_0x4c043c){const _0x225901=_0x4bfb65;let {status:_0x3bfe2e,coordinator:_0x10bbe5}=_0x4c043c;switch(_0x3bfe2e){case'idle':return _0x5e0507(ce,{'coordinator':_0x10bbe5});case'following':return _0x5e0507(le,{'coordinator':_0x10bbe5});case _0x225901(0x12e):return _0x5e0507(ue,{'coordinator':_0x10bbe5});case _0x225901(0x151):return _0x5e0507(de,{});case'presenting':return _0x5e0507(Y,{'coordinator':_0x10bbe5});default:return null;}}function ce(_0x2b5845){const _0xd66ce=_0x4bfb65;let {coordinator:_0x46b85b}=_0x2b5845;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507('div',{'className':_0xd66ce(0x190),'children':_0xd66ce(0x1b0)}),_0x5e0507(_0x2e3da7,{'onClick':()=>_0x46b85b[_0xd66ce(0x148)](),'children':'Start'})]});}function le(_0x2ff54f){const _0x23dab1=_0x4bfb65;let {coordinator:_0x28a05c}=_0x2ff54f;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507('div',{'className':_0x23dab1(0x190),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5e0507(_0x2e3da7,{'onClick':()=>_0x28a05c[_0x23dab1(0x1b7)](),'children':_0x23dab1(0x1a4)})]});}function ue(_0x471ce3){const _0x5f1e26=_0x4bfb65;let {coordinator:_0x4bb366}=_0x471ce3;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507(_0x5f1e26(0x150),{'className':_0x5f1e26(0x190),'children':_0x5f1e26(0x1ac)}),_0x5e0507(_0x2e3da7,{'variant':_0x5f1e26(0x165),'onClick':()=>_0x4bb366[_0x5f1e26(0x15c)](),'children':_0x5f1e26(0x1a5)})]});}function Y(_0x26abfd){const _0x536f53=_0x4bfb65;let {coordinator:_0x24203f}=_0x26abfd;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507(_0x536f53(0x150),{'className':_0x536f53(0x190),'children':_0x536f53(0x13a)}),_0x5e0507(_0x2e3da7,{'variant':_0x536f53(0x15f),'onClick':()=>_0x24203f[_0x536f53(0x138)](),'children':'Stop\x20presenting'})]});}function de(){const _0x28505f=_0x4bfb65;return _0x5e0507(_0x2f0b38,{'children':_0x28505f(0x139)});}let X=class extends _0x1ce4ab{constructor(_0x472176,_0x40787e){const _0xbb4c8e=_0x4bfb65;super(),this[_0xbb4c8e(0x17e)]=_0x472176,this[_0xbb4c8e(0x1b6)]=_0x40787e,this['_mountLiveShare']();}[_0x4bfb65(0x15e)](){const _0x2c88d5=_0x4bfb65;this['disposeWithMe'](this[_0x2c88d5(0x1b6)][_0x2c88d5(0x196)](_0x342ffe[_0x2c88d5(0x176)],()=>_0x229861(J,this[_0x2c88d5(0x17e)])));}};X=W([U(0x0,_0x56773e(_0x51a301)),U(0x1,_0x27ea1c)],X);var fe='@univerjs-pro/live-share',pe=_0x4bfb65(0x141);function _0x2290(_0x22c53c,_0x46936c){_0x22c53c=_0x22c53c-0x12d;const _0x41da41=_0x41da();let _0x229021=_0x41da41[_0x22c53c];return _0x229021;}const Z={};let Q=class extends _0x1ce4ab{constructor(_0x294a46){const _0xd1a91c=_0x4bfb65;super(),this[_0xd1a91c(0x143)]=_0x294a46,this[_0xd1a91c(0x181)]();}[_0x4bfb65(0x181)](){[_0x59b108['id'],_0x5abf17['id'],_0x3bef8f['id']]['forEach'](_0x1c12c7=>{const _0x22e397=_0x2290;this[_0x22e397(0x140)](this[_0x22e397(0x143)][_0x22e397(0x173)](_0x1c12c7));});}};Q=W([U(0x0,_0x56773e(H))],Q);let $=class extends _0x1b359a{constructor(_0x183a8d=Z,_0x146c69,_0x3246fd){const _0x3a7986=_0x4bfb65;super(),this[_0x3a7986(0x18b)]=_0x183a8d,this['_injector']=_0x146c69,this['_configService']=_0x3246fd;let {..._0x5d1d2e}=_0x5bb40d({},Z,this[_0x3a7986(0x18b)]);this[_0x3a7986(0x1c0)][_0x3a7986(0x167)](_0x3a7986(0x12f),_0x5d1d2e);}[_0x4bfb65(0x1a0)](){const _0x50b75b=_0x4bfb65;_0x519864(this[_0x50b75b(0x17e)],_0x250f7e([[H],[G],[Q],[X]],this[_0x50b75b(0x18b)]['override'])),_0x4834f3(this[_0x50b75b(0x17e)],[[Q]]);}['onRendered'](){_0x4834f3(this['_injector'],[[X]]);}};V($,_0x4bfb65(0x131),_0x7bf701[_0x4bfb65(0x19b)]),V($,_0x4bfb65(0x133),_0x4bfb65(0x178)),V($,'packageName',fe),V($,'version',pe),$=W([_0x59b5e2(_0x138c17),U(0x1,_0x56773e(_0x51a301)),U(0x2,_0x25496e)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x3a51e2=_0x4f04;(function(_0x7c94c4,_0x9fd205){const _0x517d9e=_0x4f04,_0x11008d=_0x7c94c4();while(!![]){try{const _0x4b19f5=-parseInt(_0x517d9e(0x129))/0x1*(-parseInt(_0x517d9e(0x15b))/0x2)+-parseInt(_0x517d9e(0x13f))/0x3*(-parseInt(_0x517d9e(0x16e))/0x4)+parseInt(_0x517d9e(0x181))/0x5*(parseInt(_0x517d9e(0x189))/0x6)+parseInt(_0x517d9e(0x175))/0x7+-parseInt(_0x517d9e(0x17e))/0x8*(parseInt(_0x517d9e(0x112))/0x9)+-parseInt(_0x517d9e(0x139))/0xa+-parseInt(_0x517d9e(0x121))/0xb;if(_0x4b19f5===_0x9fd205)break;else _0x11008d['push'](_0x11008d['shift']());}catch(_0x2953e4){_0x11008d['push'](_0x11008d['shift']());}}}(_0x3355,0x832fa));import{CommandType as _0x7f38d3,DependentOn as _0x4c3c0f,Disposable as _0x4a49fb,DisposableCollection as _0x18665d,ICommandService as _0x3b1e83,IConfigService as _0x57549a,IUniverInstanceService as _0x4621f9,Inject as _0x3840c8,Injector as _0x368b3b,Plugin as _0x4e113b,RxDisposable as _0x1e9a11,UniverInstanceType as _0x17f2f1,merge as _0x5aed77,mergeOverrideWithDependencies as _0x168dbe,registerDependencies as _0x127fa5,toDisposable as _0x4d1eee,touchDependencies as _0x337d60}from'@univerjs/core';import{BuiltInUIPart as _0x377270,IUIPartsService as _0x2e12cf,connectInjector as _0x7d9cd6,useDependency as _0x47178f,useObservable as _0x557da8}from'@univerjs/ui';function _0x4f04(_0x57b70f,_0x541404){_0x57b70f=_0x57b70f-0x106;const _0x33556f=_0x3355();let _0x4f044c=_0x33556f[_0x57b70f];return _0x4f044c;}import{Button as _0x1c8cae,Dropdown as _0x8acd69,clsx as _0x59885a}from'@univerjs/design';import{LiveShareIcon as _0x22016b}from'@univerjs/icons';import{useEffect as _0xa54735,useRef as _0x18e2b4,useState as _0x358d85}from'react';import{CollaborationEvent as _0x190d08,parseProtocolChangeset as _0x426c25}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2d443c,SessionStatus as _0x193eec,UniverCollaborationClientPlugin as _0x9355f0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x228261,SetWorksheetActiveOperation as _0x519c92}from'@univerjs/sheets';import{BehaviorSubject as _0x5a7d17,Subject as _0x574717}from'rxjs';import{takeUntil as _0x1bbe95,throttleTime as _0x409197}from'rxjs/operators';import{Fragment as _0x16c28a,jsx as _0xe94489,jsxs as _0x3b4390}from'react/jsx-runtime';import{SetScrollOperation as _0x13b133,SetZoomRatioOperation as _0x35525e}from'@univerjs/sheets-ui';function R(_0x40bae0){'@babel/helpers - typeof';const _0x2359fe=_0x4f04;return R=typeof Symbol==_0x2359fe(0x18b)&&typeof Symbol[_0x2359fe(0x120)]==_0x2359fe(0x194)?function(_0x145bbf){return typeof _0x145bbf;}:function(_0x524d37){const _0x45a1ad=_0x2359fe;return _0x524d37&&typeof Symbol=='function'&&_0x524d37[_0x45a1ad(0x179)]===Symbol&&_0x524d37!==Symbol[_0x45a1ad(0x143)]?_0x45a1ad(0x194):typeof _0x524d37;},R(_0x40bae0);}function z(_0x5e38e2,_0xd45460){const _0x3d6ea6=_0x4f04;if(R(_0x5e38e2)!=_0x3d6ea6(0x115)||!_0x5e38e2)return _0x5e38e2;var _0x580a8c=_0x5e38e2[Symbol['toPrimitive']];if(_0x580a8c!==void 0x0){var _0x1020fb=_0x580a8c[_0x3d6ea6(0x15d)](_0x5e38e2,_0xd45460||_0x3d6ea6(0x16b));if(R(_0x1020fb)!='object')return _0x1020fb;throw TypeError(_0x3d6ea6(0x165));}return(_0xd45460===_0x3d6ea6(0x197)?String:Number)(_0x5e38e2);}function B(_0x3058f0){var _0x56af65=z(_0x3058f0,'string');return R(_0x56af65)=='symbol'?_0x56af65:_0x56af65+'';}function V(_0x37da58,_0x440c93,_0x55f37b){return(_0x440c93=B(_0x440c93))in _0x37da58?Object['defineProperty'](_0x37da58,_0x440c93,{'value':_0x55f37b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x37da58[_0x440c93]=_0x55f37b,_0x37da58;}var H=class extends _0x4a49fb{constructor(..._0x128230){const _0x195211=_0x4f04;super(..._0x128230),V(this,_0x195211(0x162),new Set()),V(this,_0x195211(0x196),new Set());}[_0x3a51e2(0x138)](_0x29075c){const _0x34ac9b=_0x3a51e2;return this['_sharedOperations']['add'](_0x29075c),_0x4d1eee(()=>this[_0x34ac9b(0x162)][_0x34ac9b(0x163)](_0x29075c));}[_0x3a51e2(0x166)](_0x26e81f){const _0x52e67d=_0x3a51e2;return this['_reporters']['add'](_0x26e81f),_0x4d1eee(()=>this[_0x52e67d(0x196)]['delete'](_0x26e81f));}[_0x3a51e2(0x133)](_0x3bc063){const _0x39f892=_0x3a51e2;return this[_0x39f892(0x162)][_0x39f892(0x14a)](_0x3bc063);}[_0x3a51e2(0x180)](_0x22d7e7){const _0x43d20c=_0x3a51e2;return Array[_0x43d20c(0x106)](this[_0x43d20c(0x196)])['map'](_0x3cfc32=>_0x3cfc32(_0x22d7e7));}};function U(_0x21ac22,_0x5300cb){return function(_0x333287,_0x5490a9){_0x5300cb(_0x333287,_0x5490a9,_0x21ac22);};}function W(_0x435b2e,_0x32a2c4,_0x52d947,_0x43f3ba){const _0x5210b2=_0x3a51e2;var _0x1a58cb=arguments[_0x5210b2(0x155)],_0x32a8fc=_0x1a58cb<0x3?_0x32a2c4:_0x43f3ba===null?_0x43f3ba=Object[_0x5210b2(0x18a)](_0x32a2c4,_0x52d947):_0x43f3ba,_0x5f0cfb;if(typeof Reflect==_0x5210b2(0x115)&&typeof Reflect[_0x5210b2(0x18d)]==_0x5210b2(0x18b))_0x32a8fc=Reflect[_0x5210b2(0x18d)](_0x435b2e,_0x32a2c4,_0x52d947,_0x43f3ba);else{for(var _0x1c3fe9=_0x435b2e[_0x5210b2(0x155)]-0x1;_0x1c3fe9>=0x0;_0x1c3fe9--)(_0x5f0cfb=_0x435b2e[_0x1c3fe9])&&(_0x32a8fc=(_0x1a58cb<0x3?_0x5f0cfb(_0x32a8fc):_0x1a58cb>0x3?_0x5f0cfb(_0x32a2c4,_0x52d947,_0x32a8fc):_0x5f0cfb(_0x32a2c4,_0x52d947))||_0x32a8fc);}return _0x1a58cb>0x3&&_0x32a8fc&&Object[_0x5210b2(0x17f)](_0x32a2c4,_0x52d947,_0x32a8fc),_0x32a8fc;}let G=class extends _0x1e9a11{constructor(_0x2d0d1b,_0x3c9550,_0x24da43){const _0xd924e6=_0x3a51e2;super(),this[_0xd924e6(0x12e)]=_0x2d0d1b,this[_0xd924e6(0x10e)]=_0x3c9550,this[_0xd924e6(0x110)]=_0x24da43,V(this,_0xd924e6(0x11c),new Map()),this[_0xd924e6(0x188)]();}async['getLiveShareCoordinator'](_0x19eded){const _0x552abb=_0x3a51e2;return this['_entities'][_0x552abb(0x14a)](_0x19eded)||await this[_0x552abb(0x11d)](_0x19eded),this[_0x552abb(0x11c)][_0x552abb(0x183)](_0x19eded);}[_0x3a51e2(0x134)](_0x5a9c67){const _0x31d597=_0x3a51e2;var _0x36e5c1;return(_0x36e5c1=this[_0x31d597(0x11c)][_0x31d597(0x183)](_0x5a9c67))==null?null:_0x36e5c1;}['_init'](){const _0x430e38=_0x3a51e2;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x17f2f1[_0x430e38(0x158)])[_0x430e38(0x10a)](_0x1bbe95(this[_0x430e38(0x191)]))[_0x430e38(0x19a)](async _0x8c48c7=>{const _0x4fca02=_0x430e38;let _0x389370=_0x8c48c7['unit']['getUnitId']();this['_entities'][_0x4fca02(0x14a)](_0x389370)||this['_startLiveShareCoordinator'](_0x389370);}),this[_0x430e38(0x12e)]['getTypeOfUnitDisposed$'](_0x17f2f1[_0x430e38(0x158)])[_0x430e38(0x10a)](_0x1bbe95(this['dispose$']))[_0x430e38(0x19a)](_0x1b0592=>{const _0x219248=_0x430e38;let _0x154f02=_0x1b0592['getUnitId'](),_0x2763e1=this[_0x219248(0x11c)][_0x219248(0x183)](_0x154f02);_0x2763e1==null||_0x2763e1[_0x219248(0x13a)]();});}async[_0x3a51e2(0x11d)](_0x206541){const _0x4077cb=_0x3a51e2;let _0x299bd5=await this[_0x4077cb(0x110)][_0x4077cb(0x14c)](_0x206541),_0x23fb35=this[_0x4077cb(0x10e)][_0x4077cb(0x16d)](q,_0x206541,_0x299bd5);return _0x23fb35[_0x4077cb(0x11a)](),this['_entities'][_0x4077cb(0x192)](_0x206541,_0x23fb35),_0x23fb35;}};G=W([U(0x0,_0x4621f9),U(0x1,_0x3840c8(_0x368b3b)),U(0x2,_0x3840c8(_0x2d443c))],G);let K=function(_0x40e7e5){const _0x1707de=_0x3a51e2;return _0x40e7e5[_0x1707de(0x141)]='offline',_0x40e7e5[_0x1707de(0x117)]=_0x1707de(0x151),_0x40e7e5[_0x1707de(0x186)]=_0x1707de(0x160),_0x40e7e5[_0x1707de(0x150)]=_0x1707de(0x12a),_0x40e7e5[_0x1707de(0x154)]=_0x1707de(0x156),_0x40e7e5;}({}),q=class extends _0x1e9a11{get[_0x3a51e2(0x140)](){const _0x2b6524=_0x3a51e2;return this[_0x2b6524(0x17c)][_0x2b6524(0x18f)]();}constructor(_0x43e65f,_0x369a37,_0x393d64,_0x434708,_0x40b832){const _0x3e3032=_0x3a51e2;super(),this[_0x3e3032(0x164)]=_0x43e65f,this[_0x3e3032(0x119)]=_0x369a37,this['_configService']=_0x393d64,this[_0x3e3032(0x136)]=_0x434708,this[_0x3e3032(0x108)]=_0x40b832,V(this,_0x3e3032(0x17c),new _0x5a7d17(_0x3e3032(0x151))),V(this,_0x3e3032(0x12c),this['_status$']['asObservable']()),V(this,'_init',!0x1),V(this,_0x3e3032(0x116),null),V(this,_0x3e3032(0x10c),null);}[_0x3a51e2(0x13a)](){const _0x284d01=_0x3a51e2;var _0x5ab5ee;(_0x5ab5ee=this[_0x284d01(0x116)])==null||_0x5ab5ee[_0x284d01(0x13a)](),this['_status$'][_0x284d01(0x159)](_0x284d01(0x151)),this[_0x284d01(0x17c)][_0x284d01(0x12d)]();}[_0x3a51e2(0x170)](){const _0x35afb5=_0x3a51e2;return this[_0x35afb5(0x140)];}[_0x3a51e2(0x11a)](){const _0x41b569=_0x3a51e2;this[_0x41b569(0x188)]||(this[_0x41b569(0x188)]=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0x1bbe95(this[_0x41b569(0x191)]))[_0x41b569(0x19a)](_0x4b2061=>{const _0x451f48=_0x41b569;switch(_0x4b2061){case _0x193eec['OFFLINE']:this[_0x451f48(0x124)]();break;case _0x193eec[_0x451f48(0x127)]:this[_0x451f48(0x152)]();break;default:}}),this['_collabSession'][_0x41b569(0x142)]['pipe'](_0x1bbe95(this['dispose$']))[_0x41b569(0x19a)](_0x4a7ee4=>{const _0x13c775=_0x41b569;let {eventID:_0x24563a}=_0x4a7ee4;switch(_0x24563a){case _0x190d08[_0x13c775(0x137)]:this[_0x13c775(0x195)](_0x4a7ee4);break;case _0x190d08[_0x13c775(0x114)]:this[_0x13c775(0x144)](_0x4a7ee4);break;case _0x190d08[_0x13c775(0x161)]:this['_handleTerminate']();break;case _0x190d08[_0x13c775(0x125)]:this[_0x13c775(0x123)](_0x4a7ee4);break;default:}}));}['tryStartPresenting'](){const _0x2d4d04=_0x3a51e2;this[_0x2d4d04(0x119)][_0x2d4d04(0x185)]({'eventID':_0x190d08['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x2d4d04(0x119)][_0x2d4d04(0x13c)]()}},this[_0x2d4d04(0x164)]);}[_0x3a51e2(0x146)](){const _0x10bfec=_0x3a51e2;this['_status']===_0x10bfec(0x156)&&(this[_0x10bfec(0x17c)][_0x10bfec(0x159)]('idle'),this[_0x10bfec(0x119)][_0x10bfec(0x185)]({'eventID':_0x190d08[_0x10bfec(0x161)],'data':{'unitID':this[_0x10bfec(0x164)]}},this[_0x10bfec(0x164)]));}[_0x3a51e2(0x171)](){const _0x11a72a=_0x3a51e2;this['_status']===_0x11a72a(0x12a)&&(this[_0x11a72a(0x17c)][_0x11a72a(0x159)](_0x11a72a(0x160)),this[_0x11a72a(0x187)]());}[_0x3a51e2(0x157)](){const _0x14eacd=_0x3a51e2;this[_0x14eacd(0x140)]===_0x14eacd(0x160)&&this['_stopFollowing']();}['_handleNewHost'](_0x1651f0){const _0x4dc404=_0x3a51e2;let {presenter:_0x1ecdee}=_0x1651f0[_0x4dc404(0x16f)],_0x5d5e28=this[_0x4dc404(0x119)][_0x4dc404(0x13c)]();this[_0x4dc404(0x10c)]=_0x1ecdee,_0x1ecdee===_0x5d5e28?(this[_0x4dc404(0x131)](),this[_0x4dc404(0x15a)]()):this[_0x4dc404(0x140)]!==_0x4dc404(0x12a)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3a51e2(0x126)](){const _0x25250c=_0x3a51e2;let _0x590b56={'eventID':_0x190d08['LIVESHARE_FETCH_OPERATIONS']};this[_0x25250c(0x119)][_0x25250c(0x185)](_0x590b56,this[_0x25250c(0x164)]);}[_0x3a51e2(0x10d)](){const _0x13d2fb=_0x3a51e2;this['_presenter']=null,this[_0x13d2fb(0x140)]!==_0x13d2fb(0x156)&&this['_beIdle']();}[_0x3a51e2(0x123)](_0x163903){const _0x27382b=_0x3a51e2;if(this['_status']===_0x27382b(0x160)&&this[_0x27382b(0x10c)]===_0x163903[_0x27382b(0x16f)][_0x27382b(0x147)]){let _0x5b1cf6=_0x426c25(_0x163903[_0x27382b(0x16f)])[_0x27382b(0x173)][_0x27382b(0x14b)]()[_0x27382b(0x132)](_0x362b5a=>_0x362b5a['id']===_0x228261['id']);if(_0x5b1cf6){let _0x29c4b0=_0x5b1cf6[_0x27382b(0x130)][_0x27382b(0x17a)],_0x30543d=_0x5b1cf6[_0x27382b(0x130)]['sheet']['id'];setTimeout(()=>{const _0x1e70fe=_0x27382b;this[_0x1e70fe(0x108)][_0x1e70fe(0x128)](_0x519c92['id'],{'unitId':_0x29c4b0,'subUnitId':_0x30543d},{'fromCollab':!0x0});});}}}[_0x3a51e2(0x15a)](){const _0x34a16d=_0x3a51e2;var _0x463490;(_0x463490=this[_0x34a16d(0x116)])==null||_0x463490[_0x34a16d(0x13a)](),this[_0x34a16d(0x17c)][_0x34a16d(0x159)]('presenting');let _0x453ff6=new Map(),_0x3da532=this[_0x34a16d(0x116)]=new _0x18665d();_0x3da532[_0x34a16d(0x19c)](_0x4d1eee(()=>{const _0x232b80=_0x34a16d;_0x453ff6[_0x232b80(0x167)](({subject:_0x56c9e4,subscription:_0x41f52d})=>{const _0x170c8c=_0x232b80;_0x41f52d[_0x170c8c(0x16c)](),_0x56c9e4[_0x170c8c(0x12d)]();}),_0x453ff6[_0x232b80(0x198)]();})),_0x3da532[_0x34a16d(0x19c)](this[_0x34a16d(0x108)][_0x34a16d(0x190)](_0x3b026b=>{const _0x751393=_0x34a16d;if(_0x3b026b[_0x751393(0x13e)]!==_0x7f38d3[_0x751393(0x135)]||!this[_0x751393(0x136)][_0x751393(0x133)](_0x3b026b['id']))return;let {id:_0x278cb3}=_0x3b026b,_0x4db587;if(_0x453ff6[_0x751393(0x14a)](_0x278cb3))_0x4db587=_0x453ff6[_0x751393(0x183)](_0x278cb3)[_0x751393(0x11e)];else{var _0x465484;_0x4db587=new _0x574717();let _0x4fe22a=_0x4db587[_0x751393(0x10a)](_0x409197((_0x465484=this[_0x751393(0x15c)][_0x751393(0x145)](_0x751393(0x177)))==null?0xc8:_0x465484,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x751393(0x19a)](_0x76ef33=>{const _0x4b7ab0=_0x751393;this[_0x4b7ab0(0x119)][_0x4b7ab0(0x185)]({'eventID':_0x190d08[_0x4b7ab0(0x114)],'data':{'unitID':this[_0x4b7ab0(0x164)],'operations':{[_0x76ef33['id']]:{'id':_0x76ef33['id'],'params':JSON['stringify'](_0x76ef33['params'])}}}},this['_unitID']);});_0x453ff6[_0x751393(0x192)](_0x278cb3,{'subject':_0x4db587,'subscription':_0x4fe22a});}_0x4db587[_0x751393(0x159)](_0x3b026b);})),this['_liveShareService'][_0x34a16d(0x180)](this[_0x34a16d(0x164)])[_0x34a16d(0x167)](_0x45d99e=>this[_0x34a16d(0x119)]['send']({'eventID':_0x190d08['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x34a16d(0x164)],'operations':{[_0x45d99e['id']]:{'id':_0x45d99e['id'],'params':JSON['stringify'](_0x45d99e['params'])}}}},this[_0x34a16d(0x164)]));}['_stopPresenting'](){const _0x32eb23=_0x3a51e2;var _0x99d5cc;this[_0x32eb23(0x17c)][_0x32eb23(0x159)](_0x32eb23(0x151)),(_0x99d5cc=this[_0x32eb23(0x116)])==null||_0x99d5cc[_0x32eb23(0x13a)](),this[_0x32eb23(0x116)]=null;}[_0x3a51e2(0x187)](){const _0x498ad6=_0x3a51e2;var _0x4528be;(_0x4528be=this[_0x498ad6(0x116)])==null||_0x4528be[_0x498ad6(0x13a)](),this[_0x498ad6(0x17c)][_0x498ad6(0x159)](_0x498ad6(0x160));}[_0x3a51e2(0x17d)](){const _0x53c94e=_0x3a51e2;var _0x1e18df;this[_0x53c94e(0x17c)][_0x53c94e(0x159)](_0x53c94e(0x151)),(_0x1e18df=this['_commandDisposable'])==null||_0x1e18df[_0x53c94e(0x13a)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x52a6c5=_0x3a51e2;var _0xac56a2;this['_status$'][_0x52a6c5(0x159)](_0x52a6c5(0x12a)),(_0xac56a2=this[_0x52a6c5(0x116)])==null||_0xac56a2['dispose']();}['_handleOperation'](_0x1e233c){const _0xd56dba=_0x3a51e2;if([_0xd56dba(0x156),_0xd56dba(0x12a),'offline'][_0xd56dba(0x109)](this[_0xd56dba(0x140)])||!_0x1e233c['data'][_0xd56dba(0x18c)]||_0x1e233c['data'][_0xd56dba(0x18c)]===this[_0xd56dba(0x119)][_0xd56dba(0x13c)]())return;this[_0xd56dba(0x140)]===_0xd56dba(0x151)&&this[_0xd56dba(0x187)]();let _0x256ee3=_0x1e233c[_0xd56dba(0x16f)][_0xd56dba(0x14f)];Object[_0xd56dba(0x113)](_0x256ee3)[_0xd56dba(0x167)](_0x59a1d2=>{const _0x28a37d=_0xd56dba;this[_0x28a37d(0x108)][_0x28a37d(0x128)](_0x59a1d2['id'],_0x59a1d2[_0x28a37d(0x130)]?JSON['parse'](_0x59a1d2[_0x28a37d(0x130)]):null,{'fromCollab':!0x0});});}[_0x3a51e2(0x124)](){const _0x35c6c8=_0x3a51e2;var _0x2f56c5;this[_0x35c6c8(0x17c)]['next'](_0x35c6c8(0x122)),(_0x2f56c5=this[_0x35c6c8(0x116)])==null||_0x2f56c5[_0x35c6c8(0x13a)]();}['_handleOnline'](){const _0xd9627=_0x3a51e2;this[_0xd9627(0x17c)][_0xd9627(0x159)]('idle'),this['_fetchOperations']();}};q=W([U(0x2,_0x57549a),U(0x3,_0x3840c8(H)),U(0x4,_0x3b1e83)],q);function J(){const _0x41191f=_0x3a51e2;let _0x290dc9=_0x47178f(G),_0x592e87=_0x47178f(_0x4621f9),_0x17f05d=_0x557da8(()=>_0x592e87[_0x41191f(0x18e)](_0x17f2f1[_0x41191f(0x158)]),void 0x0,!0x1,[]),[_0xeea236,_0x431a25]=_0x358d85(null),[_0x147972,_0x44b26c]=_0x358d85(_0x41191f(0x151)),_0x2c68c2=_0x18e2b4(null);return _0xa54735(()=>(_0x17f05d&&_0x290dc9['getLiveShareCoordinator'](_0x17f05d[_0x41191f(0x19d)]())[_0x41191f(0x17b)](_0x320267=>{const _0x33307d=_0x41191f;_0x431a25(_0x320267),_0x2c68c2[_0x33307d(0x10b)]=_0x320267[_0x33307d(0x12c)][_0x33307d(0x19a)](_0x545bdc=>{_0x44b26c(_0x545bdc);});}),()=>{const _0x58820f=_0x41191f;var _0x5f5b83;(_0x5f5b83=_0x2c68c2[_0x58820f(0x10b)])==null||_0x5f5b83[_0x58820f(0x16c)](),_0x2c68c2['current']=null;}),[_0x17f05d,_0x290dc9]),_0xeea236?_0xe94489(_0x8acd69,{'align':_0x41191f(0x10f),'disabled':_0x147972===_0x41191f(0x122),'className':_0x41191f(0x15e),'overlay':_0xe94489(se,{'status':_0x147972,'coordinator':_0xeea236}),'children':_0xe94489(_0x41191f(0x14d),{'className':_0x59885a('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x147972===_0x41191f(0x122),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x147972!==_0x41191f(0x122)}),'type':_0x41191f(0x14d),'children':_0xe94489(_0x22016b,{'className':_0x41191f(0x193)})})}):null;}function se(_0x462768){const _0x22ba38=_0x3a51e2;let {status:_0x29f8d1,coordinator:_0x2e1208}=_0x462768;switch(_0x29f8d1){case'idle':return _0xe94489(ce,{'coordinator':_0x2e1208});case _0x22ba38(0x160):return _0xe94489(le,{'coordinator':_0x2e1208});case _0x22ba38(0x12a):return _0xe94489(ue,{'coordinator':_0x2e1208});case'offline':return _0xe94489(de,{});case _0x22ba38(0x156):return _0xe94489(Y,{'coordinator':_0x2e1208});default:return null;}}function ce(_0xe425ea){const _0x3ce838=_0x3a51e2;let {coordinator:_0x4cffe4}=_0xe425ea;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x3ce838(0x15f),{'className':_0x3ce838(0x19b),'children':_0x3ce838(0x118)}),_0xe94489(_0x1c8cae,{'onClick':()=>_0x4cffe4[_0x3ce838(0x12f)](),'children':_0x3ce838(0x176)})]});}function le(_0x4a0205){const _0x604d73=_0x3a51e2;let {coordinator:_0x569f56}=_0x4a0205;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x604d73(0x15f),{'className':_0x604d73(0x19b),'children':_0x604d73(0x182)}),_0xe94489(_0x1c8cae,{'onClick':()=>_0x569f56[_0x604d73(0x157)](),'children':'Stop\x20following'})]});}function ue(_0x13229f){const _0x597adc=_0x3a51e2;let {coordinator:_0x548d73}=_0x13229f;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x597adc(0x15f),{'className':_0x597adc(0x19b),'children':_0x597adc(0x11f)}),_0xe94489(_0x1c8cae,{'variant':_0x597adc(0x107),'onClick':()=>_0x548d73[_0x597adc(0x171)](),'children':'Start\x20following'})]});}function Y(_0x1288a1){const _0x23a5b8=_0x3a51e2;let {coordinator:_0x97b1e1}=_0x1288a1;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x23a5b8(0x15f),{'className':_0x23a5b8(0x19b),'children':_0x23a5b8(0x111)}),_0xe94489(_0x1c8cae,{'variant':_0x23a5b8(0x16b),'onClick':()=>_0x97b1e1[_0x23a5b8(0x146)](),'children':_0x23a5b8(0x172)})]});}function de(){const _0x645c71=_0x3a51e2;return _0xe94489(_0x16c28a,{'children':_0x645c71(0x153)});}let X=class extends _0x4a49fb{constructor(_0x1235b0,_0x4dffd6){const _0x2a95b2=_0x3a51e2;super(),this['_injector']=_0x1235b0,this[_0x2a95b2(0x169)]=_0x4dffd6,this[_0x2a95b2(0x11b)]();}[_0x3a51e2(0x11b)](){const _0x400b71=_0x3a51e2;this[_0x400b71(0x174)](this['_uiPartsService'][_0x400b71(0x13b)](_0x377270[_0x400b71(0x148)],()=>_0x7d9cd6(J,this['_injector'])));}};X=W([U(0x0,_0x3840c8(_0x368b3b)),U(0x1,_0x2e12cf)],X);var fe='@univerjs-pro/live-share',pe='0.25.1';function _0x3355(){const _0x445cda=['registerComponent','getMemberID','setConfig','type','2025663idGcpW','_status','OFFLINE','event$','prototype','_handleOperation','getConfig','stopPresenting','memberID','HEADER_MENU','onStarting','has','reverse','requireSession','button','_config','operations','NOT_FOLLOWING','idle','_handleOnline','You\x27are\x20offline.','PRESENTING','length','presenting','stopFollowing','UNIVER_SHEET','next','_startPresenting','1846eGkgmN','_configService','call','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','div','following','LIVESHARE_TERMINATE','_sharedOperations','delete','_unitID','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','registerInitialStateReporter','forEach','live-share.config','_uiPartsService','override','default','unsubscribe','createInstance','4rwIDrz','data','getStatus','startFollowing','Stop\x20presenting','mutations','disposeWithMe','4281753lrXCUB','Start','SAME_OPERATION_SHARE_INTERVAL','packageName','constructor','unitId','then','_status$','_beIdle','416560emdqXc','defineProperty','getInitialStates','45OIxCvk','You\x27re\x20following\x20the\x20presenter','get','version','send','FOLLOWING','_startFollowing','_init','551856fnNNXI','getOwnPropertyDescriptor','function','presenter','decorate','getCurrentTypeOfUnit$','getValue','onCommandExecuted','dispose$','set','univer-size-4','symbol','_handleNewHost','_reporters','string','clear','UNIVER_LIVE_SHARE_PLUGIN','subscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','add','getUnitId','from','text','_commandService','includes','pipe','current','_presenter','_handleTerminate','_injector','end','_collabSessionService','You\x27re\x20presenting\x20the\x20document','126hOOgSF','values','LIVESHARE_OPERATION','object','_commandDisposable','IDLE','Present\x20this\x20document','_collabSession','init','_mountLiveShare','_entities','_startLiveShareCoordinator','subject','You\x27re\x20not\x20following\x20the\x20presenter','iterator','15159276rXigCW','offline','_handleNewChangeSets','_handleOffline','NEW_CHANGESETS','_fetchOperations','ONLINE','executeCommand','859CQMnfw','not-following','pluginName','status$','complete','_univerInstanceService','tryStartPresenting','params','_stopFollowing','find','shouldShareOperation','getLiveShareCoordinatorSync','OPERATION','_liveShareService','LIVESHARE_NEW_HOST','registerSharedOperation','2631070jaWWIj','dispose'];_0x3355=function(){return _0x445cda;};return _0x3355();}const Z={};let Q=class extends _0x4a49fb{constructor(_0x351bd8){const _0x3106e4=_0x3a51e2;super(),this[_0x3106e4(0x136)]=_0x351bd8,this[_0x3106e4(0x188)]();}[_0x3a51e2(0x188)](){[_0x35525e['id'],_0x13b133['id'],_0x519c92['id']]['forEach'](_0x2e3836=>{const _0x5ab586=_0x4f04;this['disposeWithMe'](this[_0x5ab586(0x136)][_0x5ab586(0x138)](_0x2e3836));});}};Q=W([U(0x0,_0x3840c8(H))],Q);let $=class extends _0x4e113b{constructor(_0x21a659=Z,_0x51af84,_0x7c930f){const _0x3dd96d=_0x3a51e2;super(),this[_0x3dd96d(0x14e)]=_0x21a659,this['_injector']=_0x51af84,this[_0x3dd96d(0x15c)]=_0x7c930f;let {..._0xd57fa5}=_0x5aed77({},Z,this[_0x3dd96d(0x14e)]);this[_0x3dd96d(0x15c)][_0x3dd96d(0x13d)](_0x3dd96d(0x168),_0xd57fa5);}[_0x3a51e2(0x149)](){const _0x27b297=_0x3a51e2;_0x127fa5(this[_0x27b297(0x10e)],_0x168dbe([[H],[G],[Q],[X]],this[_0x27b297(0x14e)][_0x27b297(0x16a)])),_0x337d60(this[_0x27b297(0x10e)],[[Q]]);}['onRendered'](){_0x337d60(this['_injector'],[[X]]);}};V($,_0x3a51e2(0x13e),_0x17f2f1['UNIVER_UNKNOWN']),V($,_0x3a51e2(0x12b),_0x3a51e2(0x199)),V($,_0x3a51e2(0x178),fe),V($,_0x3a51e2(0x184),pe),$=W([_0x4c3c0f(_0x9355f0),U(0x1,_0x3840c8(_0x368b3b)),U(0x2,_0x57549a)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x303a(_0x52d751,_0x2ede3d){_0x52d751=_0x52d751-0x85;const _0x2fcba9=_0x2fcb();let _0x303a3a=_0x2fcba9[_0x52d751];return _0x303a3a;}const _0x15dec6=_0x303a;(function(_0x442712,_0x97fb7a){const _0x3ff7b4=_0x303a,_0x58e93c=_0x442712();while(!![]){try{const _0x53af9b=-parseInt(_0x3ff7b4(0x89))/0x1*(parseInt(_0x3ff7b4(0x94))/0x2)+-parseInt(_0x3ff7b4(0xa4))/0x3+parseInt(_0x3ff7b4(0x93))/0x4+parseInt(_0x3ff7b4(0xa5))/0x5+-parseInt(_0x3ff7b4(0x9e))/0x6+parseInt(_0x3ff7b4(0x85))/0x7*(parseInt(_0x3ff7b4(0xa7))/0x8)+parseInt(_0x3ff7b4(0x8d))/0x9;if(_0x53af9b===_0x97fb7a)break;else _0x58e93c['push'](_0x58e93c['shift']());}catch(_0x4c2baf){_0x58e93c['push'](_0x58e93c['shift']());}}}(_0x2fcb,0x86143));function _0x2fcb(){const _0x4f6fcd=['getCurrentUnitOfType','2655018YgQYHC','4587660RekjyL','get','8QFksfw','defineProperty','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','function','startFollowing','UNIVER_SHEET','3999205jENbWg','iterator','getLiveShareStatus','getLiveShareCoordinatorSync','944728qHkQbP','stopFollowing','call','_liveShareController','10568871jMMSjN','getStatus','default','_injector','tryStartPresenting','getUnitId','1275720CSdIbN','2tvPmNL','prototype','extend','string','No\x20active\x20workbook\x20found.','symbol','constructor','startPresenting','stopPresenting','toPrimitive','3619050TiQrAr','IDLE','LiveShareStatusEnum','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.'];_0x2fcb=function(){return _0x4f6fcd;};return _0x2fcb();}import{LiveShareController as _0x29911a,LiveShareStatus as _0x2b9fc5}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x22a8d9,UniverInstanceType as _0x2cdea1}from'@univerjs/core';import{FEnum as _0x7b51a,FUniver as _0x3b0d47}from'@univerjs/core/facade';function o(_0x2d78a7){'@babel/helpers - typeof';const _0x254ff2=_0x303a;return o=typeof Symbol==_0x254ff2(0xaa)&&typeof Symbol[_0x254ff2(0x86)]=='symbol'?function(_0x356d32){return typeof _0x356d32;}:function(_0x5e0744){const _0x4054cb=_0x254ff2;return _0x5e0744&&typeof Symbol==_0x4054cb(0xaa)&&_0x5e0744[_0x4054cb(0x9a)]===Symbol&&_0x5e0744!==Symbol[_0x4054cb(0x95)]?_0x4054cb(0x99):typeof _0x5e0744;},o(_0x2d78a7);}function s(_0x4566c0,_0x1352b2){const _0x17af68=_0x303a;if(o(_0x4566c0)!=_0x17af68(0xa1)||!_0x4566c0)return _0x4566c0;var _0x21d2f2=_0x4566c0[Symbol[_0x17af68(0x9d)]];if(_0x21d2f2!==void 0x0){var _0x125675=_0x21d2f2[_0x17af68(0x8b)](_0x4566c0,_0x1352b2||_0x17af68(0x8f));if(o(_0x125675)!=_0x17af68(0xa1))return _0x125675;throw TypeError(_0x17af68(0xa2));}return(_0x1352b2===_0x17af68(0x97)?String:Number)(_0x4566c0);}function c(_0x597870){const _0x341463=_0x303a;var _0x10b68d=s(_0x597870,_0x341463(0x97));return o(_0x10b68d)==_0x341463(0x99)?_0x10b68d:_0x10b68d+'';}function l(_0x2d8e77,_0x290394,_0x3be3bc){const _0x37059c=_0x303a;return(_0x290394=c(_0x290394))in _0x2d8e77?Object[_0x37059c(0xa8)](_0x2d8e77,_0x290394,{'value':_0x3be3bc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d8e77[_0x290394]=_0x3be3bc,_0x2d8e77;}var u=class extends _0x3b0d47{constructor(..._0x203974){const _0x422d64=_0x303a;super(..._0x203974),l(this,_0x422d64(0x8c),void 0x0);}['_initialize'](_0x7c795e){const _0x2d3553=_0x303a;this['_liveShareController']=_0x7c795e[_0x2d3553(0xa6)](_0x29911a);}[_0x15dec6(0x87)](){const _0x3973dd=_0x15dec6;var _0x4c5c58;let _0xad1859=this['_injector'][_0x3973dd(0xa6)](_0x22a8d9)[_0x3973dd(0xa3)](_0x2cdea1[_0x3973dd(0xac)]);if(!_0xad1859)throw Error('No\x20active\x20workbook\x20found.');let _0x185a76=_0xad1859[_0x3973dd(0x92)](),_0x17256c=this['_liveShareController'][_0x3973dd(0x88)](_0x185a76);return(_0x4c5c58=_0x17256c==null?void 0x0:_0x17256c[_0x3973dd(0x8e)]())==null?_0x2b9fc5[_0x3973dd(0x9f)]:_0x4c5c58;}[_0x15dec6(0xab)](){const _0x1651be=_0x15dec6;let _0x2281a3=this[_0x1651be(0x90)][_0x1651be(0xa6)](_0x22a8d9)[_0x1651be(0xa3)](_0x2cdea1[_0x1651be(0xac)]);if(!_0x2281a3)throw Error('No\x20active\x20workbook\x20found.');let _0x1d8bea=_0x2281a3['getUnitId'](),_0x4b599f=this[_0x1651be(0x8c)][_0x1651be(0x88)](_0x1d8bea);if(!_0x4b599f)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4b599f[_0x1651be(0xab)]();}[_0x15dec6(0x8a)](){const _0x48887d=_0x15dec6;let _0xcd7b84=this[_0x48887d(0x90)][_0x48887d(0xa6)](_0x22a8d9)['getCurrentUnitOfType'](_0x2cdea1[_0x48887d(0xac)]);if(!_0xcd7b84)throw Error('No\x20active\x20workbook\x20found.');let _0x51b80f=_0xcd7b84['getUnitId'](),_0x34194d=this[_0x48887d(0x8c)]['getLiveShareCoordinatorSync'](_0x51b80f);if(!_0x34194d)throw Error(_0x48887d(0xa9));_0x34194d['stopFollowing']();}[_0x15dec6(0x9b)](){const _0x58989f=_0x15dec6;let _0x459276=this[_0x58989f(0x90)]['get'](_0x22a8d9)['getCurrentUnitOfType'](_0x2cdea1[_0x58989f(0xac)]);if(!_0x459276)throw Error(_0x58989f(0x98));let _0x44a772=_0x459276[_0x58989f(0x92)](),_0x16af71=this[_0x58989f(0x8c)][_0x58989f(0x88)](_0x44a772);if(!_0x16af71)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x16af71[_0x58989f(0x91)]();}['stopPresenting'](){const _0x174886=_0x15dec6;let _0x1ee611=this['_injector'][_0x174886(0xa6)](_0x22a8d9)[_0x174886(0xa3)](_0x2cdea1[_0x174886(0xac)]);if(!_0x1ee611)throw Error(_0x174886(0x98));let _0x51bb88=_0x1ee611['getUnitId'](),_0x13c16a=this[_0x174886(0x8c)][_0x174886(0x88)](_0x51bb88);if(!_0x13c16a)throw Error(_0x174886(0xa9));_0x13c16a[_0x174886(0x9c)]();}};_0x3b0d47['extend'](u);var d=class extends _0x7b51a{get[_0x15dec6(0xa0)](){return _0x2b9fc5;}};_0x7b51a[_0x15dec6(0x96)](d);export{};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4bfb65=_0x2290;(function(_0x38130e,_0x52ba00){const _0x1186c9=_0x2290,_0x574ec6=_0x38130e();while(!![]){try{const _0x41863a=parseInt(_0x1186c9(0x19e))/0x1+-parseInt(_0x1186c9(0x153))/0x2*(parseInt(_0x1186c9(0x16f))/0x3)+-parseInt(_0x1186c9(0x14d))/0x4+-parseInt(_0x1186c9(0x1b9))/0x5+-parseInt(_0x1186c9(0x16a))/0x6*(-parseInt(_0x1186c9(0x158))/0x7)+-parseInt(_0x1186c9(0x136))/0x8*(parseInt(_0x1186c9(0x1af))/0x9)+-parseInt(_0x1186c9(0x177))/0xa*(-parseInt(_0x1186c9(0x14b))/0xb);if(_0x41863a===_0x52ba00)break;else _0x574ec6['push'](_0x574ec6['shift']());}catch(_0x4f0dae){_0x574ec6['push'](_0x574ec6['shift']());}}}(_0x41da,0xadb29));import{CommandType as _0x19d177,DependentOn as _0x59b5e2,Disposable as _0x1ce4ab,DisposableCollection as _0x32b6cc,ICommandService as _0x34d8a7,IConfigService as _0x25496e,IUniverInstanceService as _0x4f09f7,Inject as _0x56773e,Injector as _0x51a301,Plugin as _0x1b359a,RxDisposable as _0x1a3ddb,UniverInstanceType as _0x7bf701,merge as _0x5bb40d,mergeOverrideWithDependencies as _0x250f7e,registerDependencies as _0x519864,toDisposable as _0x3bc937,touchDependencies as _0x4834f3}from'@univerjs/core';import{BuiltInUIPart as _0x342ffe,IUIPartsService as _0x27ea1c,connectInjector as _0x229861,useDependency as _0x4aae14,useObservable as _0x2f2a72}from'@univerjs/ui';import{Button as _0x2e3da7,Dropdown as _0x256d48,clsx as _0x16695f}from'@univerjs/design';import{LiveShareIcon as _0x279c39}from'@univerjs/icons';import{useEffect as _0x3b2091,useRef as _0x3b13ea,useState as _0x3a871b}from'react';import{CollaborationEvent as _0x13fab2,parseProtocolChangeset as _0x5034fc}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3c4ea9,SessionStatus as _0x15ce3e,UniverCollaborationClientPlugin as _0x138c17}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5c83b9,SetWorksheetActiveOperation as _0x3bef8f}from'@univerjs/sheets';import{BehaviorSubject as _0x4610d5,Subject as _0x5f429a}from'rxjs';import{takeUntil as _0x264a65,throttleTime as _0x16b8ad}from'rxjs/operators';import{Fragment as _0x2f0b38,jsx as _0x5e0507,jsxs as _0x546f71}from'react/jsx-runtime';import{SetScrollOperation as _0x5abf17,SetZoomRatioOperation as _0x59b108}from'@univerjs/sheets-ui';function R(_0x2a1524){'@babel/helpers - typeof';const _0x5341fc=_0x2290;return R=typeof Symbol==_0x5341fc(0x147)&&typeof Symbol['iterator']=='symbol'?function(_0x425c03){return typeof _0x425c03;}:function(_0x1fc4ff){const _0x3eaa98=_0x5341fc;return _0x1fc4ff&&typeof Symbol==_0x3eaa98(0x147)&&_0x1fc4ff['constructor']===Symbol&&_0x1fc4ff!==Symbol[_0x3eaa98(0x18d)]?_0x3eaa98(0x159):typeof _0x1fc4ff;},R(_0x2a1524);}function z(_0x101c94,_0xbd8e4c){const _0x2031cd=_0x2290;if(R(_0x101c94)!='object'||!_0x101c94)return _0x101c94;var _0x2e139b=_0x101c94[Symbol[_0x2031cd(0x174)]];if(_0x2e139b!==void 0x0){var _0x4318e7=_0x2e139b['call'](_0x101c94,_0xbd8e4c||_0x2031cd(0x15f));if(R(_0x4318e7)!=_0x2031cd(0x19d))return _0x4318e7;throw TypeError(_0x2031cd(0x14f));}return(_0xbd8e4c==='string'?String:Number)(_0x101c94);}function B(_0xb11bdc){const _0x443b0d=_0x2290;var _0x518065=z(_0xb11bdc,_0x443b0d(0x15b));return R(_0x518065)=='symbol'?_0x518065:_0x518065+'';}function V(_0x3ca471,_0x499271,_0x3f6cce){const _0x205b8a=_0x2290;return(_0x499271=B(_0x499271))in _0x3ca471?Object[_0x205b8a(0x152)](_0x3ca471,_0x499271,{'value':_0x3f6cce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3ca471[_0x499271]=_0x3f6cce,_0x3ca471;}var H=class extends _0x1ce4ab{constructor(..._0x539b07){const _0x8269b0=_0x2290;super(..._0x539b07),V(this,'_sharedOperations',new Set()),V(this,_0x8269b0(0x14a),new Set());}['registerSharedOperation'](_0x28ed9c){const _0x5597fe=_0x2290;return this[_0x5597fe(0x155)]['add'](_0x28ed9c),_0x3bc937(()=>this[_0x5597fe(0x155)]['delete'](_0x28ed9c));}[_0x4bfb65(0x187)](_0x47d1c8){const _0x22aa2f=_0x4bfb65;return this[_0x22aa2f(0x14a)][_0x22aa2f(0x12d)](_0x47d1c8),_0x3bc937(()=>this[_0x22aa2f(0x14a)]['delete'](_0x47d1c8));}[_0x4bfb65(0x15d)](_0x412477){const _0x3c25a9=_0x4bfb65;return this[_0x3c25a9(0x155)][_0x3c25a9(0x170)](_0x412477);}[_0x4bfb65(0x146)](_0x3d3879){const _0x2096ab=_0x4bfb65;return Array[_0x2096ab(0x157)](this['_reporters'])[_0x2096ab(0x18a)](_0x53f955=>_0x53f955(_0x3d3879));}};function U(_0x474cb9,_0x30c562){return function(_0x5b3b51,_0x10e3a5){_0x30c562(_0x5b3b51,_0x10e3a5,_0x474cb9);};}function W(_0x19748c,_0x2c7c96,_0x447637,_0x272e45){const _0x4f229f=_0x4bfb65;var _0x515ddf=arguments[_0x4f229f(0x135)],_0x34c317=_0x515ddf<0x3?_0x2c7c96:_0x272e45===null?_0x272e45=Object[_0x4f229f(0x191)](_0x2c7c96,_0x447637):_0x272e45,_0x3c960c;if(typeof Reflect=='object'&&typeof Reflect[_0x4f229f(0x144)]==_0x4f229f(0x147))_0x34c317=Reflect[_0x4f229f(0x144)](_0x19748c,_0x2c7c96,_0x447637,_0x272e45);else{for(var _0x477e89=_0x19748c[_0x4f229f(0x135)]-0x1;_0x477e89>=0x0;_0x477e89--)(_0x3c960c=_0x19748c[_0x477e89])&&(_0x34c317=(_0x515ddf<0x3?_0x3c960c(_0x34c317):_0x515ddf>0x3?_0x3c960c(_0x2c7c96,_0x447637,_0x34c317):_0x3c960c(_0x2c7c96,_0x447637))||_0x34c317);}return _0x515ddf>0x3&&_0x34c317&&Object['defineProperty'](_0x2c7c96,_0x447637,_0x34c317),_0x34c317;}function _0x41da(){const _0x3b2379=['Stop\x20following','Start\x20following','SAME_OPERATION_SHARE_INTERVAL','getStatus','includes','_status','_status$','_startLiveShareCoordinator','You\x27re\x20not\x20following\x20the\x20presenter','status$','_univerInstanceService','2763cWqBeO','Present\x20this\x20document','operations','params','_startFollowing','_unitID','unsubscribe','_uiPartsService','stopFollowing','getLiveShareCoordinator','3390370UUWlsD','forEach','current','dispose','LIVESHARE_FETCH_OPERATIONS','following','LIVESHARE_OPERATION','_configService','event$','add','not-following','live-share.config','LIVESHARE_REQUEST_HOST','type','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','pluginName','_entities','length','8784fJLvGx','memberID','stopPresenting','You\x27are\x20offline.','You\x27re\x20presenting\x20the\x20document','getLiveShareCoordinatorSync','_handleOnline','init','_presenter','_stopFollowing','disposeWithMe','0.25.0','UNIVER_SHEET','_liveShareService','decorate','_beIdle','getInitialStates','function','tryStartPresenting','_commandDisposable','_reporters','2179914wFynEy','getConfig','1407576bqAdTG','getTypeOfUnitDisposed$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','div','offline','defineProperty','754124sTQsrk','_handleNewChangeSets','_sharedOperations','NOT_FOLLOWING','from','7pxkwak','symbol','getUnitId','string','startFollowing','shouldShareOperation','_mountLiveShare','default','_handleOperation','set','send','pipe','dispose$','text','complete','setConfig','_collabSession','_collabSessionService','3121062VbFUgg','next','subscribe','getTypeOfUnitAdded$','PRESENTING','3FGxjnp','has','executeCommand','find','registerSharedOperation','toPrimitive','data','HEADER_MENU','30iPaxFT','UNIVER_LIVE_SHARE_PLUGIN','FOLLOWING','LIVESHARE_TERMINATE','reverse','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_stopPresenting','_injector','values','asObservable','_init','createInstance','presenting','then','_startPresenting','_commandService','registerInitialStateReporter','NEW_CHANGESETS','_fetchOperations','map','_config','requireSession','prototype','presenter','stringify','univer-mb-3\x20univer-w-full\x20univer-text-sm','getOwnPropertyDescriptor','get','button','sheet','getMemberID','registerComponent','idle','unit','OFFLINE','subject','UNIVER_UNKNOWN','IDLE','object','1340882VUXrLG','parse','onStarting','mutations','_handleNewHost','_handleOffline'];_0x41da=function(){return _0x3b2379;};return _0x41da();}let G=class extends _0x1a3ddb{constructor(_0x25b0f7,_0x1e18be,_0x30f611){const _0x2cee2a=_0x4bfb65;super(),this[_0x2cee2a(0x1ae)]=_0x25b0f7,this[_0x2cee2a(0x17e)]=_0x1e18be,this[_0x2cee2a(0x169)]=_0x30f611,V(this,_0x2cee2a(0x134),new Map()),this[_0x2cee2a(0x181)]();}async['getLiveShareCoordinator'](_0x104e9f){const _0x2cad5a=_0x4bfb65;return this[_0x2cad5a(0x134)][_0x2cad5a(0x170)](_0x104e9f)||await this[_0x2cad5a(0x1ab)](_0x104e9f),this['_entities'][_0x2cad5a(0x192)](_0x104e9f);}[_0x4bfb65(0x13b)](_0xa5236){const _0x6baff3=_0x4bfb65;var _0x2cb56a;return(_0x2cb56a=this[_0x6baff3(0x134)][_0x6baff3(0x192)](_0xa5236))==null?null:_0x2cb56a;}[_0x4bfb65(0x181)](){const _0x43e8d3=_0x4bfb65;this[_0x43e8d3(0x1ae)][_0x43e8d3(0x16d)](_0x7bf701[_0x43e8d3(0x142)])[_0x43e8d3(0x163)](_0x264a65(this[_0x43e8d3(0x164)]))[_0x43e8d3(0x16c)](async _0x25bc6e=>{const _0xe3be1b=_0x43e8d3;let _0x57b1df=_0x25bc6e[_0xe3be1b(0x198)]['getUnitId']();this[_0xe3be1b(0x134)][_0xe3be1b(0x170)](_0x57b1df)||this[_0xe3be1b(0x1ab)](_0x57b1df);}),this[_0x43e8d3(0x1ae)][_0x43e8d3(0x14e)](_0x7bf701[_0x43e8d3(0x142)])[_0x43e8d3(0x163)](_0x264a65(this[_0x43e8d3(0x164)]))[_0x43e8d3(0x16c)](_0xe09c49=>{const _0x597665=_0x43e8d3;let _0x45582d=_0xe09c49[_0x597665(0x15a)](),_0x578ec6=this[_0x597665(0x134)]['get'](_0x45582d);_0x578ec6==null||_0x578ec6[_0x597665(0x1bc)]();});}async[_0x4bfb65(0x1ab)](_0x4c900c){const _0x3faca5=_0x4bfb65;let _0x35a9ac=await this[_0x3faca5(0x169)][_0x3faca5(0x18c)](_0x4c900c),_0x8f180b=this[_0x3faca5(0x17e)][_0x3faca5(0x182)](q,_0x4c900c,_0x35a9ac);return _0x8f180b[_0x3faca5(0x13d)](),this[_0x3faca5(0x134)][_0x3faca5(0x161)](_0x4c900c,_0x8f180b),_0x8f180b;}};G=W([U(0x0,_0x4f09f7),U(0x1,_0x56773e(_0x51a301)),U(0x2,_0x56773e(_0x3c4ea9))],G);let K=function(_0x553144){const _0x71acf4=_0x4bfb65;return _0x553144[_0x71acf4(0x199)]=_0x71acf4(0x151),_0x553144[_0x71acf4(0x19c)]=_0x71acf4(0x197),_0x553144[_0x71acf4(0x179)]=_0x71acf4(0x1be),_0x553144[_0x71acf4(0x156)]='not-following',_0x553144[_0x71acf4(0x16e)]=_0x71acf4(0x183),_0x553144;}({}),q=class extends _0x1a3ddb{get[_0x4bfb65(0x1a9)](){const _0x5583b9=_0x4bfb65;return this[_0x5583b9(0x1aa)]['getValue']();}constructor(_0x44bda8,_0x368732,_0x37c925,_0x22b1b0,_0x34397c){const _0x113d22=_0x4bfb65;super(),this['_unitID']=_0x44bda8,this['_collabSession']=_0x368732,this[_0x113d22(0x1c0)]=_0x37c925,this[_0x113d22(0x143)]=_0x22b1b0,this[_0x113d22(0x186)]=_0x34397c,V(this,_0x113d22(0x1aa),new _0x4610d5('idle')),V(this,_0x113d22(0x1ad),this[_0x113d22(0x1aa)][_0x113d22(0x180)]()),V(this,_0x113d22(0x181),!0x1),V(this,'_commandDisposable',null),V(this,'_presenter',null);}['dispose'](){const _0x1e12bf=_0x4bfb65;var _0x900623;(_0x900623=this[_0x1e12bf(0x149)])==null||_0x900623[_0x1e12bf(0x1bc)](),this[_0x1e12bf(0x1aa)][_0x1e12bf(0x16b)]('idle'),this['_status$'][_0x1e12bf(0x166)]();}[_0x4bfb65(0x1a7)](){const _0x290313=_0x4bfb65;return this[_0x290313(0x1a9)];}[_0x4bfb65(0x13d)](){const _0x25d25e=_0x4bfb65;this[_0x25d25e(0x181)]||(this['_init']=!0x0,this[_0x25d25e(0x168)]['sessionStatus$'][_0x25d25e(0x163)](_0x264a65(this[_0x25d25e(0x164)]))['subscribe'](_0x2c01e3=>{const _0x20014b=_0x25d25e;switch(_0x2c01e3){case _0x15ce3e[_0x20014b(0x199)]:this[_0x20014b(0x1a3)]();break;case _0x15ce3e['ONLINE']:this[_0x20014b(0x13c)]();break;default:}}),this[_0x25d25e(0x168)][_0x25d25e(0x1c1)][_0x25d25e(0x163)](_0x264a65(this[_0x25d25e(0x164)]))[_0x25d25e(0x16c)](_0x498a23=>{const _0x36d04b=_0x25d25e;let {eventID:_0x56538d}=_0x498a23;switch(_0x56538d){case _0x13fab2['LIVESHARE_NEW_HOST']:this[_0x36d04b(0x1a2)](_0x498a23);break;case _0x13fab2['LIVESHARE_OPERATION']:this[_0x36d04b(0x160)](_0x498a23);break;case _0x13fab2[_0x36d04b(0x17a)]:this['_handleTerminate']();break;case _0x13fab2[_0x36d04b(0x188)]:this[_0x36d04b(0x154)](_0x498a23);break;default:}}));}[_0x4bfb65(0x148)](){const _0x52e11a=_0x4bfb65;this[_0x52e11a(0x168)][_0x52e11a(0x162)]({'eventID':_0x13fab2[_0x52e11a(0x130)],'data':{'unitID':this[_0x52e11a(0x1b4)],'userID':this[_0x52e11a(0x168)]['getMemberID']()}},this[_0x52e11a(0x1b4)]);}[_0x4bfb65(0x138)](){const _0x212eb0=_0x4bfb65;this[_0x212eb0(0x1a9)]===_0x212eb0(0x183)&&(this['_status$'][_0x212eb0(0x16b)](_0x212eb0(0x197)),this[_0x212eb0(0x168)][_0x212eb0(0x162)]({'eventID':_0x13fab2['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x212eb0(0x1b4)]));}[_0x4bfb65(0x15c)](){const _0x4e208c=_0x4bfb65;this[_0x4e208c(0x1a9)]===_0x4e208c(0x12e)&&(this[_0x4e208c(0x1aa)][_0x4e208c(0x16b)](_0x4e208c(0x1be)),this[_0x4e208c(0x1b3)]());}['stopFollowing'](){const _0x1ad6dd=_0x4bfb65;this[_0x1ad6dd(0x1a9)]===_0x1ad6dd(0x1be)&&this[_0x1ad6dd(0x13f)]();}[_0x4bfb65(0x1a2)](_0x3a2ef5){const _0x5db380=_0x4bfb65;let {presenter:_0x574917}=_0x3a2ef5[_0x5db380(0x175)],_0xcda10e=this['_collabSession'][_0x5db380(0x195)]();this[_0x5db380(0x13e)]=_0x574917,_0x574917===_0xcda10e?(this[_0x5db380(0x13f)](),this[_0x5db380(0x185)]()):this[_0x5db380(0x1a9)]!==_0x5db380(0x12e)&&(this[_0x5db380(0x17d)](),this['_startFollowing']());}[_0x4bfb65(0x189)](){const _0x43f052=_0x4bfb65;let _0x421978={'eventID':_0x13fab2[_0x43f052(0x1bd)]};this[_0x43f052(0x168)][_0x43f052(0x162)](_0x421978,this[_0x43f052(0x1b4)]);}['_handleTerminate'](){const _0x58ac23=_0x4bfb65;this[_0x58ac23(0x13e)]=null,this[_0x58ac23(0x1a9)]!==_0x58ac23(0x183)&&this[_0x58ac23(0x145)]();}[_0x4bfb65(0x154)](_0x31bffc){const _0x59116b=_0x4bfb65;if(this['_status']===_0x59116b(0x1be)&&this[_0x59116b(0x13e)]===_0x31bffc[_0x59116b(0x175)][_0x59116b(0x137)]){let _0x7a39f0=_0x5034fc(_0x31bffc[_0x59116b(0x175)])[_0x59116b(0x1a1)][_0x59116b(0x17b)]()[_0x59116b(0x172)](_0x3a37c3=>_0x3a37c3['id']===_0x5c83b9['id']);if(_0x7a39f0){let _0x26d748=_0x7a39f0[_0x59116b(0x1b2)]['unitId'],_0x1afc87=_0x7a39f0[_0x59116b(0x1b2)][_0x59116b(0x194)]['id'];setTimeout(()=>{const _0x2d3809=_0x59116b;this[_0x2d3809(0x186)]['executeCommand'](_0x3bef8f['id'],{'unitId':_0x26d748,'subUnitId':_0x1afc87},{'fromCollab':!0x0});});}}}[_0x4bfb65(0x185)](){const _0x5a1666=_0x4bfb65;var _0x39fb0a;(_0x39fb0a=this['_commandDisposable'])==null||_0x39fb0a[_0x5a1666(0x1bc)](),this[_0x5a1666(0x1aa)]['next']('presenting');let _0x1b1fb7=new Map(),_0x50dd89=this[_0x5a1666(0x149)]=new _0x32b6cc();_0x50dd89['add'](_0x3bc937(()=>{_0x1b1fb7['forEach'](({subject:_0x4cf126,subscription:_0x428f19})=>{const _0x303858=_0x2290;_0x428f19[_0x303858(0x1b5)](),_0x4cf126['complete']();}),_0x1b1fb7['clear']();})),_0x50dd89[_0x5a1666(0x12d)](this[_0x5a1666(0x186)]['onCommandExecuted'](_0x40d0e6=>{const _0x11e372=_0x5a1666;if(_0x40d0e6[_0x11e372(0x131)]!==_0x19d177['OPERATION']||!this[_0x11e372(0x143)][_0x11e372(0x15d)](_0x40d0e6['id']))return;let {id:_0x125e6e}=_0x40d0e6,_0x166778;if(_0x1b1fb7['has'](_0x125e6e))_0x166778=_0x1b1fb7[_0x11e372(0x192)](_0x125e6e)[_0x11e372(0x19a)];else{var _0x8a0057;_0x166778=new _0x5f429a();let _0x19d9a5=_0x166778['pipe'](_0x16b8ad((_0x8a0057=this[_0x11e372(0x1c0)][_0x11e372(0x14c)](_0x11e372(0x1a6)))==null?0xc8:_0x8a0057,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x11e372(0x16c)](_0x4da033=>{const _0x1493f2=_0x11e372;this[_0x1493f2(0x168)][_0x1493f2(0x162)]({'eventID':_0x13fab2[_0x1493f2(0x1bf)],'data':{'unitID':this[_0x1493f2(0x1b4)],'operations':{[_0x4da033['id']]:{'id':_0x4da033['id'],'params':JSON['stringify'](_0x4da033[_0x1493f2(0x1b2)])}}}},this[_0x1493f2(0x1b4)]);});_0x1b1fb7['set'](_0x125e6e,{'subject':_0x166778,'subscription':_0x19d9a5});}_0x166778['next'](_0x40d0e6);})),this[_0x5a1666(0x143)]['getInitialStates'](this[_0x5a1666(0x1b4)])[_0x5a1666(0x1ba)](_0x373811=>this[_0x5a1666(0x168)][_0x5a1666(0x162)]({'eventID':_0x13fab2[_0x5a1666(0x1bf)],'data':{'unitID':this[_0x5a1666(0x1b4)],'operations':{[_0x373811['id']]:{'id':_0x373811['id'],'params':JSON[_0x5a1666(0x18f)](_0x373811[_0x5a1666(0x1b2)])}}}},this[_0x5a1666(0x1b4)]));}[_0x4bfb65(0x17d)](){const _0x227d47=_0x4bfb65;var _0x28363f;this[_0x227d47(0x1aa)][_0x227d47(0x16b)]('idle'),(_0x28363f=this[_0x227d47(0x149)])==null||_0x28363f[_0x227d47(0x1bc)](),this[_0x227d47(0x149)]=null;}[_0x4bfb65(0x1b3)](){const _0x1665ea=_0x4bfb65;var _0x28bc13;(_0x28bc13=this['_commandDisposable'])==null||_0x28bc13[_0x1665ea(0x1bc)](),this['_status$'][_0x1665ea(0x16b)]('following');}[_0x4bfb65(0x145)](){const _0x10c040=_0x4bfb65;var _0x1dc827;this[_0x10c040(0x1aa)][_0x10c040(0x16b)](_0x10c040(0x197)),(_0x1dc827=this[_0x10c040(0x149)])==null||_0x1dc827[_0x10c040(0x1bc)](),this[_0x10c040(0x149)]=null;}[_0x4bfb65(0x13f)](){const _0xc37d19=_0x4bfb65;var _0x14363b;this[_0xc37d19(0x1aa)][_0xc37d19(0x16b)](_0xc37d19(0x12e)),(_0x14363b=this[_0xc37d19(0x149)])==null||_0x14363b[_0xc37d19(0x1bc)]();}[_0x4bfb65(0x160)](_0x4d5f6f){const _0x128a36=_0x4bfb65;if([_0x128a36(0x183),_0x128a36(0x12e),_0x128a36(0x151)][_0x128a36(0x1a8)](this[_0x128a36(0x1a9)])||!_0x4d5f6f['data']['presenter']||_0x4d5f6f[_0x128a36(0x175)][_0x128a36(0x18e)]===this[_0x128a36(0x168)]['getMemberID']())return;this[_0x128a36(0x1a9)]==='idle'&&this[_0x128a36(0x1b3)]();let _0x4eb22e=_0x4d5f6f[_0x128a36(0x175)][_0x128a36(0x1b1)];Object[_0x128a36(0x17f)](_0x4eb22e)[_0x128a36(0x1ba)](_0x24f510=>{const _0x19545e=_0x128a36;this[_0x19545e(0x186)][_0x19545e(0x171)](_0x24f510['id'],_0x24f510['params']?JSON[_0x19545e(0x19f)](_0x24f510[_0x19545e(0x1b2)]):null,{'fromCollab':!0x0});});}[_0x4bfb65(0x1a3)](){const _0x46c67a=_0x4bfb65;var _0x3a08a2;this['_status$'][_0x46c67a(0x16b)](_0x46c67a(0x151)),(_0x3a08a2=this[_0x46c67a(0x149)])==null||_0x3a08a2[_0x46c67a(0x1bc)]();}[_0x4bfb65(0x13c)](){const _0xad2c8f=_0x4bfb65;this['_status$']['next'](_0xad2c8f(0x197)),this[_0xad2c8f(0x189)]();}};q=W([U(0x2,_0x25496e),U(0x3,_0x56773e(H)),U(0x4,_0x34d8a7)],q);function J(){const _0x2b336c=_0x4bfb65;let _0x536d64=_0x4aae14(G),_0x447395=_0x4aae14(_0x4f09f7),_0x30f598=_0x2f2a72(()=>_0x447395['getCurrentTypeOfUnit$'](_0x7bf701[_0x2b336c(0x142)]),void 0x0,!0x1,[]),[_0x36884e,_0x4e526d]=_0x3a871b(null),[_0x3e6134,_0x16fc35]=_0x3a871b(_0x2b336c(0x197)),_0xd5a0c3=_0x3b13ea(null);return _0x3b2091(()=>(_0x30f598&&_0x536d64[_0x2b336c(0x1b8)](_0x30f598[_0x2b336c(0x15a)]())[_0x2b336c(0x184)](_0x103eaa=>{const _0x4f9b48=_0x2b336c;_0x4e526d(_0x103eaa),_0xd5a0c3[_0x4f9b48(0x1bb)]=_0x103eaa[_0x4f9b48(0x1ad)]['subscribe'](_0x274dd1=>{_0x16fc35(_0x274dd1);});}),()=>{const _0x3621be=_0x2b336c;var _0x48eb2b;(_0x48eb2b=_0xd5a0c3[_0x3621be(0x1bb)])==null||_0x48eb2b[_0x3621be(0x1b5)](),_0xd5a0c3[_0x3621be(0x1bb)]=null;}),[_0x30f598,_0x536d64]),_0x36884e?_0x5e0507(_0x256d48,{'align':'end','disabled':_0x3e6134===_0x2b336c(0x151),'className':_0x2b336c(0x132),'overlay':_0x5e0507(se,{'status':_0x3e6134,'coordinator':_0x36884e}),'children':_0x5e0507(_0x2b336c(0x193),{'className':_0x16695f(_0x2b336c(0x17c),{'univer-cursor-not-allowed':_0x3e6134===_0x2b336c(0x151),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3e6134!=='offline'}),'type':'button','children':_0x5e0507(_0x279c39,{'className':'univer-size-4'})})}):null;}function se(_0x4c043c){const _0x225901=_0x4bfb65;let {status:_0x3bfe2e,coordinator:_0x10bbe5}=_0x4c043c;switch(_0x3bfe2e){case'idle':return _0x5e0507(ce,{'coordinator':_0x10bbe5});case'following':return _0x5e0507(le,{'coordinator':_0x10bbe5});case _0x225901(0x12e):return _0x5e0507(ue,{'coordinator':_0x10bbe5});case _0x225901(0x151):return _0x5e0507(de,{});case'presenting':return _0x5e0507(Y,{'coordinator':_0x10bbe5});default:return null;}}function ce(_0x2b5845){const _0xd66ce=_0x4bfb65;let {coordinator:_0x46b85b}=_0x2b5845;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507('div',{'className':_0xd66ce(0x190),'children':_0xd66ce(0x1b0)}),_0x5e0507(_0x2e3da7,{'onClick':()=>_0x46b85b[_0xd66ce(0x148)](),'children':'Start'})]});}function le(_0x2ff54f){const _0x23dab1=_0x4bfb65;let {coordinator:_0x28a05c}=_0x2ff54f;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507('div',{'className':_0x23dab1(0x190),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5e0507(_0x2e3da7,{'onClick':()=>_0x28a05c[_0x23dab1(0x1b7)](),'children':_0x23dab1(0x1a4)})]});}function ue(_0x471ce3){const _0x5f1e26=_0x4bfb65;let {coordinator:_0x4bb366}=_0x471ce3;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507(_0x5f1e26(0x150),{'className':_0x5f1e26(0x190),'children':_0x5f1e26(0x1ac)}),_0x5e0507(_0x2e3da7,{'variant':_0x5f1e26(0x165),'onClick':()=>_0x4bb366[_0x5f1e26(0x15c)](),'children':_0x5f1e26(0x1a5)})]});}function Y(_0x26abfd){const _0x536f53=_0x4bfb65;let {coordinator:_0x24203f}=_0x26abfd;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507(_0x536f53(0x150),{'className':_0x536f53(0x190),'children':_0x536f53(0x13a)}),_0x5e0507(_0x2e3da7,{'variant':_0x536f53(0x15f),'onClick':()=>_0x24203f[_0x536f53(0x138)](),'children':'Stop\x20presenting'})]});}function de(){const _0x28505f=_0x4bfb65;return _0x5e0507(_0x2f0b38,{'children':_0x28505f(0x139)});}let X=class extends _0x1ce4ab{constructor(_0x472176,_0x40787e){const _0xbb4c8e=_0x4bfb65;super(),this[_0xbb4c8e(0x17e)]=_0x472176,this[_0xbb4c8e(0x1b6)]=_0x40787e,this['_mountLiveShare']();}[_0x4bfb65(0x15e)](){const _0x2c88d5=_0x4bfb65;this['disposeWithMe'](this[_0x2c88d5(0x1b6)][_0x2c88d5(0x196)](_0x342ffe[_0x2c88d5(0x176)],()=>_0x229861(J,this[_0x2c88d5(0x17e)])));}};X=W([U(0x0,_0x56773e(_0x51a301)),U(0x1,_0x27ea1c)],X);var fe='@univerjs-pro/live-share',pe=_0x4bfb65(0x141);function _0x2290(_0x22c53c,_0x46936c){_0x22c53c=_0x22c53c-0x12d;const _0x41da41=_0x41da();let _0x229021=_0x41da41[_0x22c53c];return _0x229021;}const Z={};let Q=class extends _0x1ce4ab{constructor(_0x294a46){const _0xd1a91c=_0x4bfb65;super(),this[_0xd1a91c(0x143)]=_0x294a46,this[_0xd1a91c(0x181)]();}[_0x4bfb65(0x181)](){[_0x59b108['id'],_0x5abf17['id'],_0x3bef8f['id']]['forEach'](_0x1c12c7=>{const _0x22e397=_0x2290;this[_0x22e397(0x140)](this[_0x22e397(0x143)][_0x22e397(0x173)](_0x1c12c7));});}};Q=W([U(0x0,_0x56773e(H))],Q);let $=class extends _0x1b359a{constructor(_0x183a8d=Z,_0x146c69,_0x3246fd){const _0x3a7986=_0x4bfb65;super(),this[_0x3a7986(0x18b)]=_0x183a8d,this['_injector']=_0x146c69,this['_configService']=_0x3246fd;let {..._0x5d1d2e}=_0x5bb40d({},Z,this[_0x3a7986(0x18b)]);this[_0x3a7986(0x1c0)][_0x3a7986(0x167)](_0x3a7986(0x12f),_0x5d1d2e);}[_0x4bfb65(0x1a0)](){const _0x50b75b=_0x4bfb65;_0x519864(this[_0x50b75b(0x17e)],_0x250f7e([[H],[G],[Q],[X]],this[_0x50b75b(0x18b)]['override'])),_0x4834f3(this[_0x50b75b(0x17e)],[[Q]]);}['onRendered'](){_0x4834f3(this['_injector'],[[X]]);}};V($,_0x4bfb65(0x131),_0x7bf701[_0x4bfb65(0x19b)]),V($,_0x4bfb65(0x133),_0x4bfb65(0x178)),V($,'packageName',fe),V($,'version',pe),$=W([_0x59b5e2(_0x138c17),U(0x1,_0x56773e(_0x51a301)),U(0x2,_0x25496e)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x3a51e2=_0x4f04;(function(_0x7c94c4,_0x9fd205){const _0x517d9e=_0x4f04,_0x11008d=_0x7c94c4();while(!![]){try{const _0x4b19f5=-parseInt(_0x517d9e(0x129))/0x1*(-parseInt(_0x517d9e(0x15b))/0x2)+-parseInt(_0x517d9e(0x13f))/0x3*(-parseInt(_0x517d9e(0x16e))/0x4)+parseInt(_0x517d9e(0x181))/0x5*(parseInt(_0x517d9e(0x189))/0x6)+parseInt(_0x517d9e(0x175))/0x7+-parseInt(_0x517d9e(0x17e))/0x8*(parseInt(_0x517d9e(0x112))/0x9)+-parseInt(_0x517d9e(0x139))/0xa+-parseInt(_0x517d9e(0x121))/0xb;if(_0x4b19f5===_0x9fd205)break;else _0x11008d['push'](_0x11008d['shift']());}catch(_0x2953e4){_0x11008d['push'](_0x11008d['shift']());}}}(_0x3355,0x832fa));import{CommandType as _0x7f38d3,DependentOn as _0x4c3c0f,Disposable as _0x4a49fb,DisposableCollection as _0x18665d,ICommandService as _0x3b1e83,IConfigService as _0x57549a,IUniverInstanceService as _0x4621f9,Inject as _0x3840c8,Injector as _0x368b3b,Plugin as _0x4e113b,RxDisposable as _0x1e9a11,UniverInstanceType as _0x17f2f1,merge as _0x5aed77,mergeOverrideWithDependencies as _0x168dbe,registerDependencies as _0x127fa5,toDisposable as _0x4d1eee,touchDependencies as _0x337d60}from'@univerjs/core';import{BuiltInUIPart as _0x377270,IUIPartsService as _0x2e12cf,connectInjector as _0x7d9cd6,useDependency as _0x47178f,useObservable as _0x557da8}from'@univerjs/ui';function _0x4f04(_0x57b70f,_0x541404){_0x57b70f=_0x57b70f-0x106;const _0x33556f=_0x3355();let _0x4f044c=_0x33556f[_0x57b70f];return _0x4f044c;}import{Button as _0x1c8cae,Dropdown as _0x8acd69,clsx as _0x59885a}from'@univerjs/design';import{LiveShareIcon as _0x22016b}from'@univerjs/icons';import{useEffect as _0xa54735,useRef as _0x18e2b4,useState as _0x358d85}from'react';import{CollaborationEvent as _0x190d08,parseProtocolChangeset as _0x426c25}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2d443c,SessionStatus as _0x193eec,UniverCollaborationClientPlugin as _0x9355f0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x228261,SetWorksheetActiveOperation as _0x519c92}from'@univerjs/sheets';import{BehaviorSubject as _0x5a7d17,Subject as _0x574717}from'rxjs';import{takeUntil as _0x1bbe95,throttleTime as _0x409197}from'rxjs/operators';import{Fragment as _0x16c28a,jsx as _0xe94489,jsxs as _0x3b4390}from'react/jsx-runtime';import{SetScrollOperation as _0x13b133,SetZoomRatioOperation as _0x35525e}from'@univerjs/sheets-ui';function R(_0x40bae0){'@babel/helpers - typeof';const _0x2359fe=_0x4f04;return R=typeof Symbol==_0x2359fe(0x18b)&&typeof Symbol[_0x2359fe(0x120)]==_0x2359fe(0x194)?function(_0x145bbf){return typeof _0x145bbf;}:function(_0x524d37){const _0x45a1ad=_0x2359fe;return _0x524d37&&typeof Symbol=='function'&&_0x524d37[_0x45a1ad(0x179)]===Symbol&&_0x524d37!==Symbol[_0x45a1ad(0x143)]?_0x45a1ad(0x194):typeof _0x524d37;},R(_0x40bae0);}function z(_0x5e38e2,_0xd45460){const _0x3d6ea6=_0x4f04;if(R(_0x5e38e2)!=_0x3d6ea6(0x115)||!_0x5e38e2)return _0x5e38e2;var _0x580a8c=_0x5e38e2[Symbol['toPrimitive']];if(_0x580a8c!==void 0x0){var _0x1020fb=_0x580a8c[_0x3d6ea6(0x15d)](_0x5e38e2,_0xd45460||_0x3d6ea6(0x16b));if(R(_0x1020fb)!='object')return _0x1020fb;throw TypeError(_0x3d6ea6(0x165));}return(_0xd45460===_0x3d6ea6(0x197)?String:Number)(_0x5e38e2);}function B(_0x3058f0){var _0x56af65=z(_0x3058f0,'string');return R(_0x56af65)=='symbol'?_0x56af65:_0x56af65+'';}function V(_0x37da58,_0x440c93,_0x55f37b){return(_0x440c93=B(_0x440c93))in _0x37da58?Object['defineProperty'](_0x37da58,_0x440c93,{'value':_0x55f37b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x37da58[_0x440c93]=_0x55f37b,_0x37da58;}var H=class extends _0x4a49fb{constructor(..._0x128230){const _0x195211=_0x4f04;super(..._0x128230),V(this,_0x195211(0x162),new Set()),V(this,_0x195211(0x196),new Set());}[_0x3a51e2(0x138)](_0x29075c){const _0x34ac9b=_0x3a51e2;return this['_sharedOperations']['add'](_0x29075c),_0x4d1eee(()=>this[_0x34ac9b(0x162)][_0x34ac9b(0x163)](_0x29075c));}[_0x3a51e2(0x166)](_0x26e81f){const _0x52e67d=_0x3a51e2;return this['_reporters']['add'](_0x26e81f),_0x4d1eee(()=>this[_0x52e67d(0x196)]['delete'](_0x26e81f));}[_0x3a51e2(0x133)](_0x3bc063){const _0x39f892=_0x3a51e2;return this[_0x39f892(0x162)][_0x39f892(0x14a)](_0x3bc063);}[_0x3a51e2(0x180)](_0x22d7e7){const _0x43d20c=_0x3a51e2;return Array[_0x43d20c(0x106)](this[_0x43d20c(0x196)])['map'](_0x3cfc32=>_0x3cfc32(_0x22d7e7));}};function U(_0x21ac22,_0x5300cb){return function(_0x333287,_0x5490a9){_0x5300cb(_0x333287,_0x5490a9,_0x21ac22);};}function W(_0x435b2e,_0x32a2c4,_0x52d947,_0x43f3ba){const _0x5210b2=_0x3a51e2;var _0x1a58cb=arguments[_0x5210b2(0x155)],_0x32a8fc=_0x1a58cb<0x3?_0x32a2c4:_0x43f3ba===null?_0x43f3ba=Object[_0x5210b2(0x18a)](_0x32a2c4,_0x52d947):_0x43f3ba,_0x5f0cfb;if(typeof Reflect==_0x5210b2(0x115)&&typeof Reflect[_0x5210b2(0x18d)]==_0x5210b2(0x18b))_0x32a8fc=Reflect[_0x5210b2(0x18d)](_0x435b2e,_0x32a2c4,_0x52d947,_0x43f3ba);else{for(var _0x1c3fe9=_0x435b2e[_0x5210b2(0x155)]-0x1;_0x1c3fe9>=0x0;_0x1c3fe9--)(_0x5f0cfb=_0x435b2e[_0x1c3fe9])&&(_0x32a8fc=(_0x1a58cb<0x3?_0x5f0cfb(_0x32a8fc):_0x1a58cb>0x3?_0x5f0cfb(_0x32a2c4,_0x52d947,_0x32a8fc):_0x5f0cfb(_0x32a2c4,_0x52d947))||_0x32a8fc);}return _0x1a58cb>0x3&&_0x32a8fc&&Object[_0x5210b2(0x17f)](_0x32a2c4,_0x52d947,_0x32a8fc),_0x32a8fc;}let G=class extends _0x1e9a11{constructor(_0x2d0d1b,_0x3c9550,_0x24da43){const _0xd924e6=_0x3a51e2;super(),this[_0xd924e6(0x12e)]=_0x2d0d1b,this[_0xd924e6(0x10e)]=_0x3c9550,this[_0xd924e6(0x110)]=_0x24da43,V(this,_0xd924e6(0x11c),new Map()),this[_0xd924e6(0x188)]();}async['getLiveShareCoordinator'](_0x19eded){const _0x552abb=_0x3a51e2;return this['_entities'][_0x552abb(0x14a)](_0x19eded)||await this[_0x552abb(0x11d)](_0x19eded),this[_0x552abb(0x11c)][_0x552abb(0x183)](_0x19eded);}[_0x3a51e2(0x134)](_0x5a9c67){const _0x31d597=_0x3a51e2;var _0x36e5c1;return(_0x36e5c1=this[_0x31d597(0x11c)][_0x31d597(0x183)](_0x5a9c67))==null?null:_0x36e5c1;}['_init'](){const _0x430e38=_0x3a51e2;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x17f2f1[_0x430e38(0x158)])[_0x430e38(0x10a)](_0x1bbe95(this[_0x430e38(0x191)]))[_0x430e38(0x19a)](async _0x8c48c7=>{const _0x4fca02=_0x430e38;let _0x389370=_0x8c48c7['unit']['getUnitId']();this['_entities'][_0x4fca02(0x14a)](_0x389370)||this['_startLiveShareCoordinator'](_0x389370);}),this[_0x430e38(0x12e)]['getTypeOfUnitDisposed$'](_0x17f2f1[_0x430e38(0x158)])[_0x430e38(0x10a)](_0x1bbe95(this['dispose$']))[_0x430e38(0x19a)](_0x1b0592=>{const _0x219248=_0x430e38;let _0x154f02=_0x1b0592['getUnitId'](),_0x2763e1=this[_0x219248(0x11c)][_0x219248(0x183)](_0x154f02);_0x2763e1==null||_0x2763e1[_0x219248(0x13a)]();});}async[_0x3a51e2(0x11d)](_0x206541){const _0x4077cb=_0x3a51e2;let _0x299bd5=await this[_0x4077cb(0x110)][_0x4077cb(0x14c)](_0x206541),_0x23fb35=this[_0x4077cb(0x10e)][_0x4077cb(0x16d)](q,_0x206541,_0x299bd5);return _0x23fb35[_0x4077cb(0x11a)](),this['_entities'][_0x4077cb(0x192)](_0x206541,_0x23fb35),_0x23fb35;}};G=W([U(0x0,_0x4621f9),U(0x1,_0x3840c8(_0x368b3b)),U(0x2,_0x3840c8(_0x2d443c))],G);let K=function(_0x40e7e5){const _0x1707de=_0x3a51e2;return _0x40e7e5[_0x1707de(0x141)]='offline',_0x40e7e5[_0x1707de(0x117)]=_0x1707de(0x151),_0x40e7e5[_0x1707de(0x186)]=_0x1707de(0x160),_0x40e7e5[_0x1707de(0x150)]=_0x1707de(0x12a),_0x40e7e5[_0x1707de(0x154)]=_0x1707de(0x156),_0x40e7e5;}({}),q=class extends _0x1e9a11{get[_0x3a51e2(0x140)](){const _0x2b6524=_0x3a51e2;return this[_0x2b6524(0x17c)][_0x2b6524(0x18f)]();}constructor(_0x43e65f,_0x369a37,_0x393d64,_0x434708,_0x40b832){const _0x3e3032=_0x3a51e2;super(),this[_0x3e3032(0x164)]=_0x43e65f,this[_0x3e3032(0x119)]=_0x369a37,this['_configService']=_0x393d64,this[_0x3e3032(0x136)]=_0x434708,this[_0x3e3032(0x108)]=_0x40b832,V(this,_0x3e3032(0x17c),new _0x5a7d17(_0x3e3032(0x151))),V(this,_0x3e3032(0x12c),this['_status$']['asObservable']()),V(this,'_init',!0x1),V(this,_0x3e3032(0x116),null),V(this,_0x3e3032(0x10c),null);}[_0x3a51e2(0x13a)](){const _0x284d01=_0x3a51e2;var _0x5ab5ee;(_0x5ab5ee=this[_0x284d01(0x116)])==null||_0x5ab5ee[_0x284d01(0x13a)](),this['_status$'][_0x284d01(0x159)](_0x284d01(0x151)),this[_0x284d01(0x17c)][_0x284d01(0x12d)]();}[_0x3a51e2(0x170)](){const _0x35afb5=_0x3a51e2;return this[_0x35afb5(0x140)];}[_0x3a51e2(0x11a)](){const _0x41b569=_0x3a51e2;this[_0x41b569(0x188)]||(this[_0x41b569(0x188)]=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0x1bbe95(this[_0x41b569(0x191)]))[_0x41b569(0x19a)](_0x4b2061=>{const _0x451f48=_0x41b569;switch(_0x4b2061){case _0x193eec['OFFLINE']:this[_0x451f48(0x124)]();break;case _0x193eec[_0x451f48(0x127)]:this[_0x451f48(0x152)]();break;default:}}),this['_collabSession'][_0x41b569(0x142)]['pipe'](_0x1bbe95(this['dispose$']))[_0x41b569(0x19a)](_0x4a7ee4=>{const _0x13c775=_0x41b569;let {eventID:_0x24563a}=_0x4a7ee4;switch(_0x24563a){case _0x190d08[_0x13c775(0x137)]:this[_0x13c775(0x195)](_0x4a7ee4);break;case _0x190d08[_0x13c775(0x114)]:this[_0x13c775(0x144)](_0x4a7ee4);break;case _0x190d08[_0x13c775(0x161)]:this['_handleTerminate']();break;case _0x190d08[_0x13c775(0x125)]:this[_0x13c775(0x123)](_0x4a7ee4);break;default:}}));}['tryStartPresenting'](){const _0x2d4d04=_0x3a51e2;this[_0x2d4d04(0x119)][_0x2d4d04(0x185)]({'eventID':_0x190d08['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x2d4d04(0x119)][_0x2d4d04(0x13c)]()}},this[_0x2d4d04(0x164)]);}[_0x3a51e2(0x146)](){const _0x10bfec=_0x3a51e2;this['_status']===_0x10bfec(0x156)&&(this[_0x10bfec(0x17c)][_0x10bfec(0x159)]('idle'),this[_0x10bfec(0x119)][_0x10bfec(0x185)]({'eventID':_0x190d08[_0x10bfec(0x161)],'data':{'unitID':this[_0x10bfec(0x164)]}},this[_0x10bfec(0x164)]));}[_0x3a51e2(0x171)](){const _0x11a72a=_0x3a51e2;this['_status']===_0x11a72a(0x12a)&&(this[_0x11a72a(0x17c)][_0x11a72a(0x159)](_0x11a72a(0x160)),this[_0x11a72a(0x187)]());}[_0x3a51e2(0x157)](){const _0x14eacd=_0x3a51e2;this[_0x14eacd(0x140)]===_0x14eacd(0x160)&&this['_stopFollowing']();}['_handleNewHost'](_0x1651f0){const _0x4dc404=_0x3a51e2;let {presenter:_0x1ecdee}=_0x1651f0[_0x4dc404(0x16f)],_0x5d5e28=this[_0x4dc404(0x119)][_0x4dc404(0x13c)]();this[_0x4dc404(0x10c)]=_0x1ecdee,_0x1ecdee===_0x5d5e28?(this[_0x4dc404(0x131)](),this[_0x4dc404(0x15a)]()):this[_0x4dc404(0x140)]!==_0x4dc404(0x12a)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3a51e2(0x126)](){const _0x25250c=_0x3a51e2;let _0x590b56={'eventID':_0x190d08['LIVESHARE_FETCH_OPERATIONS']};this[_0x25250c(0x119)][_0x25250c(0x185)](_0x590b56,this[_0x25250c(0x164)]);}[_0x3a51e2(0x10d)](){const _0x13d2fb=_0x3a51e2;this['_presenter']=null,this[_0x13d2fb(0x140)]!==_0x13d2fb(0x156)&&this['_beIdle']();}[_0x3a51e2(0x123)](_0x163903){const _0x27382b=_0x3a51e2;if(this['_status']===_0x27382b(0x160)&&this[_0x27382b(0x10c)]===_0x163903[_0x27382b(0x16f)][_0x27382b(0x147)]){let _0x5b1cf6=_0x426c25(_0x163903[_0x27382b(0x16f)])[_0x27382b(0x173)][_0x27382b(0x14b)]()[_0x27382b(0x132)](_0x362b5a=>_0x362b5a['id']===_0x228261['id']);if(_0x5b1cf6){let _0x29c4b0=_0x5b1cf6[_0x27382b(0x130)][_0x27382b(0x17a)],_0x30543d=_0x5b1cf6[_0x27382b(0x130)]['sheet']['id'];setTimeout(()=>{const _0x1e70fe=_0x27382b;this[_0x1e70fe(0x108)][_0x1e70fe(0x128)](_0x519c92['id'],{'unitId':_0x29c4b0,'subUnitId':_0x30543d},{'fromCollab':!0x0});});}}}[_0x3a51e2(0x15a)](){const _0x34a16d=_0x3a51e2;var _0x463490;(_0x463490=this[_0x34a16d(0x116)])==null||_0x463490[_0x34a16d(0x13a)](),this[_0x34a16d(0x17c)][_0x34a16d(0x159)]('presenting');let _0x453ff6=new Map(),_0x3da532=this[_0x34a16d(0x116)]=new _0x18665d();_0x3da532[_0x34a16d(0x19c)](_0x4d1eee(()=>{const _0x232b80=_0x34a16d;_0x453ff6[_0x232b80(0x167)](({subject:_0x56c9e4,subscription:_0x41f52d})=>{const _0x170c8c=_0x232b80;_0x41f52d[_0x170c8c(0x16c)](),_0x56c9e4[_0x170c8c(0x12d)]();}),_0x453ff6[_0x232b80(0x198)]();})),_0x3da532[_0x34a16d(0x19c)](this[_0x34a16d(0x108)][_0x34a16d(0x190)](_0x3b026b=>{const _0x751393=_0x34a16d;if(_0x3b026b[_0x751393(0x13e)]!==_0x7f38d3[_0x751393(0x135)]||!this[_0x751393(0x136)][_0x751393(0x133)](_0x3b026b['id']))return;let {id:_0x278cb3}=_0x3b026b,_0x4db587;if(_0x453ff6[_0x751393(0x14a)](_0x278cb3))_0x4db587=_0x453ff6[_0x751393(0x183)](_0x278cb3)[_0x751393(0x11e)];else{var _0x465484;_0x4db587=new _0x574717();let _0x4fe22a=_0x4db587[_0x751393(0x10a)](_0x409197((_0x465484=this[_0x751393(0x15c)][_0x751393(0x145)](_0x751393(0x177)))==null?0xc8:_0x465484,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x751393(0x19a)](_0x76ef33=>{const _0x4b7ab0=_0x751393;this[_0x4b7ab0(0x119)][_0x4b7ab0(0x185)]({'eventID':_0x190d08[_0x4b7ab0(0x114)],'data':{'unitID':this[_0x4b7ab0(0x164)],'operations':{[_0x76ef33['id']]:{'id':_0x76ef33['id'],'params':JSON['stringify'](_0x76ef33['params'])}}}},this['_unitID']);});_0x453ff6[_0x751393(0x192)](_0x278cb3,{'subject':_0x4db587,'subscription':_0x4fe22a});}_0x4db587[_0x751393(0x159)](_0x3b026b);})),this['_liveShareService'][_0x34a16d(0x180)](this[_0x34a16d(0x164)])[_0x34a16d(0x167)](_0x45d99e=>this[_0x34a16d(0x119)]['send']({'eventID':_0x190d08['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x34a16d(0x164)],'operations':{[_0x45d99e['id']]:{'id':_0x45d99e['id'],'params':JSON['stringify'](_0x45d99e['params'])}}}},this[_0x34a16d(0x164)]));}['_stopPresenting'](){const _0x32eb23=_0x3a51e2;var _0x99d5cc;this[_0x32eb23(0x17c)][_0x32eb23(0x159)](_0x32eb23(0x151)),(_0x99d5cc=this[_0x32eb23(0x116)])==null||_0x99d5cc[_0x32eb23(0x13a)](),this[_0x32eb23(0x116)]=null;}[_0x3a51e2(0x187)](){const _0x498ad6=_0x3a51e2;var _0x4528be;(_0x4528be=this[_0x498ad6(0x116)])==null||_0x4528be[_0x498ad6(0x13a)](),this[_0x498ad6(0x17c)][_0x498ad6(0x159)](_0x498ad6(0x160));}[_0x3a51e2(0x17d)](){const _0x53c94e=_0x3a51e2;var _0x1e18df;this[_0x53c94e(0x17c)][_0x53c94e(0x159)](_0x53c94e(0x151)),(_0x1e18df=this['_commandDisposable'])==null||_0x1e18df[_0x53c94e(0x13a)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x52a6c5=_0x3a51e2;var _0xac56a2;this['_status$'][_0x52a6c5(0x159)](_0x52a6c5(0x12a)),(_0xac56a2=this[_0x52a6c5(0x116)])==null||_0xac56a2['dispose']();}['_handleOperation'](_0x1e233c){const _0xd56dba=_0x3a51e2;if([_0xd56dba(0x156),_0xd56dba(0x12a),'offline'][_0xd56dba(0x109)](this[_0xd56dba(0x140)])||!_0x1e233c['data'][_0xd56dba(0x18c)]||_0x1e233c['data'][_0xd56dba(0x18c)]===this[_0xd56dba(0x119)][_0xd56dba(0x13c)]())return;this[_0xd56dba(0x140)]===_0xd56dba(0x151)&&this[_0xd56dba(0x187)]();let _0x256ee3=_0x1e233c[_0xd56dba(0x16f)][_0xd56dba(0x14f)];Object[_0xd56dba(0x113)](_0x256ee3)[_0xd56dba(0x167)](_0x59a1d2=>{const _0x28a37d=_0xd56dba;this[_0x28a37d(0x108)][_0x28a37d(0x128)](_0x59a1d2['id'],_0x59a1d2[_0x28a37d(0x130)]?JSON['parse'](_0x59a1d2[_0x28a37d(0x130)]):null,{'fromCollab':!0x0});});}[_0x3a51e2(0x124)](){const _0x35c6c8=_0x3a51e2;var _0x2f56c5;this[_0x35c6c8(0x17c)]['next'](_0x35c6c8(0x122)),(_0x2f56c5=this[_0x35c6c8(0x116)])==null||_0x2f56c5[_0x35c6c8(0x13a)]();}['_handleOnline'](){const _0xd9627=_0x3a51e2;this[_0xd9627(0x17c)][_0xd9627(0x159)]('idle'),this['_fetchOperations']();}};q=W([U(0x2,_0x57549a),U(0x3,_0x3840c8(H)),U(0x4,_0x3b1e83)],q);function J(){const _0x41191f=_0x3a51e2;let _0x290dc9=_0x47178f(G),_0x592e87=_0x47178f(_0x4621f9),_0x17f05d=_0x557da8(()=>_0x592e87[_0x41191f(0x18e)](_0x17f2f1[_0x41191f(0x158)]),void 0x0,!0x1,[]),[_0xeea236,_0x431a25]=_0x358d85(null),[_0x147972,_0x44b26c]=_0x358d85(_0x41191f(0x151)),_0x2c68c2=_0x18e2b4(null);return _0xa54735(()=>(_0x17f05d&&_0x290dc9['getLiveShareCoordinator'](_0x17f05d[_0x41191f(0x19d)]())[_0x41191f(0x17b)](_0x320267=>{const _0x33307d=_0x41191f;_0x431a25(_0x320267),_0x2c68c2[_0x33307d(0x10b)]=_0x320267[_0x33307d(0x12c)][_0x33307d(0x19a)](_0x545bdc=>{_0x44b26c(_0x545bdc);});}),()=>{const _0x58820f=_0x41191f;var _0x5f5b83;(_0x5f5b83=_0x2c68c2[_0x58820f(0x10b)])==null||_0x5f5b83[_0x58820f(0x16c)](),_0x2c68c2['current']=null;}),[_0x17f05d,_0x290dc9]),_0xeea236?_0xe94489(_0x8acd69,{'align':_0x41191f(0x10f),'disabled':_0x147972===_0x41191f(0x122),'className':_0x41191f(0x15e),'overlay':_0xe94489(se,{'status':_0x147972,'coordinator':_0xeea236}),'children':_0xe94489(_0x41191f(0x14d),{'className':_0x59885a('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x147972===_0x41191f(0x122),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x147972!==_0x41191f(0x122)}),'type':_0x41191f(0x14d),'children':_0xe94489(_0x22016b,{'className':_0x41191f(0x193)})})}):null;}function se(_0x462768){const _0x22ba38=_0x3a51e2;let {status:_0x29f8d1,coordinator:_0x2e1208}=_0x462768;switch(_0x29f8d1){case'idle':return _0xe94489(ce,{'coordinator':_0x2e1208});case _0x22ba38(0x160):return _0xe94489(le,{'coordinator':_0x2e1208});case _0x22ba38(0x12a):return _0xe94489(ue,{'coordinator':_0x2e1208});case'offline':return _0xe94489(de,{});case _0x22ba38(0x156):return _0xe94489(Y,{'coordinator':_0x2e1208});default:return null;}}function ce(_0xe425ea){const _0x3ce838=_0x3a51e2;let {coordinator:_0x4cffe4}=_0xe425ea;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x3ce838(0x15f),{'className':_0x3ce838(0x19b),'children':_0x3ce838(0x118)}),_0xe94489(_0x1c8cae,{'onClick':()=>_0x4cffe4[_0x3ce838(0x12f)](),'children':_0x3ce838(0x176)})]});}function le(_0x4a0205){const _0x604d73=_0x3a51e2;let {coordinator:_0x569f56}=_0x4a0205;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x604d73(0x15f),{'className':_0x604d73(0x19b),'children':_0x604d73(0x182)}),_0xe94489(_0x1c8cae,{'onClick':()=>_0x569f56[_0x604d73(0x157)](),'children':'Stop\x20following'})]});}function ue(_0x13229f){const _0x597adc=_0x3a51e2;let {coordinator:_0x548d73}=_0x13229f;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x597adc(0x15f),{'className':_0x597adc(0x19b),'children':_0x597adc(0x11f)}),_0xe94489(_0x1c8cae,{'variant':_0x597adc(0x107),'onClick':()=>_0x548d73[_0x597adc(0x171)](),'children':'Start\x20following'})]});}function Y(_0x1288a1){const _0x23a5b8=_0x3a51e2;let {coordinator:_0x97b1e1}=_0x1288a1;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x23a5b8(0x15f),{'className':_0x23a5b8(0x19b),'children':_0x23a5b8(0x111)}),_0xe94489(_0x1c8cae,{'variant':_0x23a5b8(0x16b),'onClick':()=>_0x97b1e1[_0x23a5b8(0x146)](),'children':_0x23a5b8(0x172)})]});}function de(){const _0x645c71=_0x3a51e2;return _0xe94489(_0x16c28a,{'children':_0x645c71(0x153)});}let X=class extends _0x4a49fb{constructor(_0x1235b0,_0x4dffd6){const _0x2a95b2=_0x3a51e2;super(),this['_injector']=_0x1235b0,this[_0x2a95b2(0x169)]=_0x4dffd6,this[_0x2a95b2(0x11b)]();}[_0x3a51e2(0x11b)](){const _0x400b71=_0x3a51e2;this[_0x400b71(0x174)](this['_uiPartsService'][_0x400b71(0x13b)](_0x377270[_0x400b71(0x148)],()=>_0x7d9cd6(J,this['_injector'])));}};X=W([U(0x0,_0x3840c8(_0x368b3b)),U(0x1,_0x2e12cf)],X);var fe='@univerjs-pro/live-share',pe='0.25.1';function _0x3355(){const _0x445cda=['registerComponent','getMemberID','setConfig','type','2025663idGcpW','_status','OFFLINE','event$','prototype','_handleOperation','getConfig','stopPresenting','memberID','HEADER_MENU','onStarting','has','reverse','requireSession','button','_config','operations','NOT_FOLLOWING','idle','_handleOnline','You\x27are\x20offline.','PRESENTING','length','presenting','stopFollowing','UNIVER_SHEET','next','_startPresenting','1846eGkgmN','_configService','call','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','div','following','LIVESHARE_TERMINATE','_sharedOperations','delete','_unitID','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','registerInitialStateReporter','forEach','live-share.config','_uiPartsService','override','default','unsubscribe','createInstance','4rwIDrz','data','getStatus','startFollowing','Stop\x20presenting','mutations','disposeWithMe','4281753lrXCUB','Start','SAME_OPERATION_SHARE_INTERVAL','packageName','constructor','unitId','then','_status$','_beIdle','416560emdqXc','defineProperty','getInitialStates','45OIxCvk','You\x27re\x20following\x20the\x20presenter','get','version','send','FOLLOWING','_startFollowing','_init','551856fnNNXI','getOwnPropertyDescriptor','function','presenter','decorate','getCurrentTypeOfUnit$','getValue','onCommandExecuted','dispose$','set','univer-size-4','symbol','_handleNewHost','_reporters','string','clear','UNIVER_LIVE_SHARE_PLUGIN','subscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','add','getUnitId','from','text','_commandService','includes','pipe','current','_presenter','_handleTerminate','_injector','end','_collabSessionService','You\x27re\x20presenting\x20the\x20document','126hOOgSF','values','LIVESHARE_OPERATION','object','_commandDisposable','IDLE','Present\x20this\x20document','_collabSession','init','_mountLiveShare','_entities','_startLiveShareCoordinator','subject','You\x27re\x20not\x20following\x20the\x20presenter','iterator','15159276rXigCW','offline','_handleNewChangeSets','_handleOffline','NEW_CHANGESETS','_fetchOperations','ONLINE','executeCommand','859CQMnfw','not-following','pluginName','status$','complete','_univerInstanceService','tryStartPresenting','params','_stopFollowing','find','shouldShareOperation','getLiveShareCoordinatorSync','OPERATION','_liveShareService','LIVESHARE_NEW_HOST','registerSharedOperation','2631070jaWWIj','dispose'];_0x3355=function(){return _0x445cda;};return _0x3355();}const Z={};let Q=class extends _0x4a49fb{constructor(_0x351bd8){const _0x3106e4=_0x3a51e2;super(),this[_0x3106e4(0x136)]=_0x351bd8,this[_0x3106e4(0x188)]();}[_0x3a51e2(0x188)](){[_0x35525e['id'],_0x13b133['id'],_0x519c92['id']]['forEach'](_0x2e3836=>{const _0x5ab586=_0x4f04;this['disposeWithMe'](this[_0x5ab586(0x136)][_0x5ab586(0x138)](_0x2e3836));});}};Q=W([U(0x0,_0x3840c8(H))],Q);let $=class extends _0x4e113b{constructor(_0x21a659=Z,_0x51af84,_0x7c930f){const _0x3dd96d=_0x3a51e2;super(),this[_0x3dd96d(0x14e)]=_0x21a659,this['_injector']=_0x51af84,this[_0x3dd96d(0x15c)]=_0x7c930f;let {..._0xd57fa5}=_0x5aed77({},Z,this[_0x3dd96d(0x14e)]);this[_0x3dd96d(0x15c)][_0x3dd96d(0x13d)](_0x3dd96d(0x168),_0xd57fa5);}[_0x3a51e2(0x149)](){const _0x27b297=_0x3a51e2;_0x127fa5(this[_0x27b297(0x10e)],_0x168dbe([[H],[G],[Q],[X]],this[_0x27b297(0x14e)][_0x27b297(0x16a)])),_0x337d60(this[_0x27b297(0x10e)],[[Q]]);}['onRendered'](){_0x337d60(this['_injector'],[[X]]);}};V($,_0x3a51e2(0x13e),_0x17f2f1['UNIVER_UNKNOWN']),V($,_0x3a51e2(0x12b),_0x3a51e2(0x199)),V($,_0x3a51e2(0x178),fe),V($,_0x3a51e2(0x184),pe),$=W([_0x4c3c0f(_0x9355f0),U(0x1,_0x3840c8(_0x368b3b)),U(0x2,_0x57549a)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x41a5(_0x3f08b9,_0x45a34a){_0x3f08b9=_0x3f08b9-0x125;const _0x3cd80a=_0x3cd8();let _0x41a527=_0x3cd80a[_0x3f08b9];return _0x41a527;}(function(_0x4e3bac,_0x784db7){const _0x2a7a82=_0x41a5,_0x352935=_0x4e3bac();while(!![]){try{const _0x2b97cf=parseInt(_0x2a7a82(0x14e))/0x1*(parseInt(_0x2a7a82(0x14b))/0x2)+parseInt(_0x2a7a82(0x155))/0x3+-parseInt(_0x2a7a82(0x134))/0x4*(parseInt(_0x2a7a82(0x153))/0x5)+-parseInt(_0x2a7a82(0x127))/0x6*(-parseInt(_0x2a7a82(0x142))/0x7)+-parseInt(_0x2a7a82(0x149))/0x8*(-parseInt(_0x2a7a82(0x151))/0x9)+-parseInt(_0x2a7a82(0x12c))/0xa*(-parseInt(_0x2a7a82(0x12d))/0xb)+-parseInt(_0x2a7a82(0x133))/0xc;if(_0x2b97cf===_0x784db7)break;else _0x352935['push'](_0x352935['shift']());}catch(_0x482372){_0x352935['push'](_0x352935['shift']());}}}(_0x3cd8,0x31990),function(_0x213c16,_0x367b30){const _0xd20d31=_0x41a5;typeof exports=='object'&&typeof module<'u'?_0x367b30(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0xd20d31(0x143)&&define[_0xd20d31(0x146)]?define([_0xd20d31(0x13a),_0xd20d31(0x152),_0xd20d31(0x14a)],_0x367b30):(_0x213c16=typeof globalThis<'u'?globalThis:_0x213c16||self,_0x367b30(_0x213c16['UniverProLiveShare'],_0x213c16[_0xd20d31(0x145)],_0x213c16[_0xd20d31(0x135)]));}(this,function(_0x2436bd,_0x36405c,_0x3f8ff9){const _0x45f0d6=_0x41a5;function _0x104053(_0x41c209){'@babel/helpers - typeof';const _0x1c31f3=_0x41a5;return _0x104053=typeof Symbol==_0x1c31f3(0x143)&&typeof Symbol[_0x1c31f3(0x12b)]==_0x1c31f3(0x128)?function(_0x109d12){return typeof _0x109d12;}:function(_0x2ad003){const _0x3b8c3c=_0x1c31f3;return _0x2ad003&&typeof Symbol==_0x3b8c3c(0x143)&&_0x2ad003[_0x3b8c3c(0x126)]===Symbol&&_0x2ad003!==Symbol[_0x3b8c3c(0x12f)]?_0x3b8c3c(0x128):typeof _0x2ad003;},_0x104053(_0x41c209);}function _0x3a62f9(_0x27a966,_0xd459a){const _0x182350=_0x41a5;if(_0x104053(_0x27a966)!=_0x182350(0x148)||!_0x27a966)return _0x27a966;var _0x1d160c=_0x27a966[Symbol[_0x182350(0x14d)]];if(_0x1d160c!==void 0x0){var _0x3c130b=_0x1d160c['call'](_0x27a966,_0xd459a||_0x182350(0x13b));if(_0x104053(_0x3c130b)!=_0x182350(0x148))return _0x3c130b;throw TypeError(_0x182350(0x136));}return(_0xd459a===_0x182350(0x14f)?String:Number)(_0x27a966);}function _0x377564(_0x905ff5){const _0x3ffa4d=_0x41a5;var _0x37cdf5=_0x3a62f9(_0x905ff5,_0x3ffa4d(0x14f));return _0x104053(_0x37cdf5)==_0x3ffa4d(0x128)?_0x37cdf5:_0x37cdf5+'';}function _0x5068b3(_0x36f6cc,_0x435c38,_0xc0a88){const _0x47a53d=_0x41a5;return(_0x435c38=_0x377564(_0x435c38))in _0x36f6cc?Object[_0x47a53d(0x156)](_0x36f6cc,_0x435c38,{'value':_0xc0a88,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x36f6cc[_0x435c38]=_0xc0a88,_0x36f6cc;}var _0x3353fd=class extends _0x3f8ff9[_0x45f0d6(0x144)]{constructor(..._0x2cc771){const _0x36e973=_0x45f0d6;super(..._0x2cc771),_0x5068b3(this,_0x36e973(0x154),void 0x0);}[_0x45f0d6(0x13e)](_0x2d4569){const _0x440361=_0x45f0d6;this[_0x440361(0x154)]=_0x2d4569[_0x440361(0x125)](_0x2436bd[_0x440361(0x158)]);}[_0x45f0d6(0x140)](){const _0x57aa89=_0x45f0d6;var _0x59c786;let _0x1055f7=this[_0x57aa89(0x157)]['get'](_0x36405c[_0x57aa89(0x13f)])['getCurrentUnitOfType'](_0x36405c[_0x57aa89(0x141)]['UNIVER_SHEET']);if(!_0x1055f7)throw Error(_0x57aa89(0x129));let _0x10b9d8=_0x1055f7[_0x57aa89(0x132)](),_0xba13d4=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x10b9d8);return(_0x59c786=_0xba13d4==null?void 0x0:_0xba13d4['getStatus']())==null?_0x2436bd[_0x57aa89(0x130)]['IDLE']:_0x59c786;}[_0x45f0d6(0x159)](){const _0x5ee2c2=_0x45f0d6;let _0x10292e=this['_injector'][_0x5ee2c2(0x125)](_0x36405c['IUniverInstanceService'])[_0x5ee2c2(0x13c)](_0x36405c[_0x5ee2c2(0x141)][_0x5ee2c2(0x139)]);if(!_0x10292e)throw Error(_0x5ee2c2(0x129));let _0x22809c=_0x10292e[_0x5ee2c2(0x132)](),_0x30fccf=this[_0x5ee2c2(0x154)][_0x5ee2c2(0x13d)](_0x22809c);if(!_0x30fccf)throw Error(_0x5ee2c2(0x12a));_0x30fccf[_0x5ee2c2(0x159)]();}[_0x45f0d6(0x150)](){const _0x48fc18=_0x45f0d6;let _0x5f2f0d=this['_injector']['get'](_0x36405c[_0x48fc18(0x13f)])['getCurrentUnitOfType'](_0x36405c[_0x48fc18(0x141)]['UNIVER_SHEET']);if(!_0x5f2f0d)throw Error(_0x48fc18(0x129));let _0x1a3143=_0x5f2f0d[_0x48fc18(0x132)](),_0x1577f4=this[_0x48fc18(0x154)]['getLiveShareCoordinatorSync'](_0x1a3143);if(!_0x1577f4)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1577f4[_0x48fc18(0x150)]();}[_0x45f0d6(0x14c)](){const _0x5cc4c4=_0x45f0d6;let _0x1c5822=this[_0x5cc4c4(0x157)][_0x5cc4c4(0x125)](_0x36405c[_0x5cc4c4(0x13f)])[_0x5cc4c4(0x13c)](_0x36405c['UniverInstanceType']['UNIVER_SHEET']);if(!_0x1c5822)throw Error(_0x5cc4c4(0x129));let _0x59d0e3=_0x1c5822[_0x5cc4c4(0x132)](),_0x3179b7=this[_0x5cc4c4(0x154)][_0x5cc4c4(0x13d)](_0x59d0e3);if(!_0x3179b7)throw Error(_0x5cc4c4(0x12a));_0x3179b7[_0x5cc4c4(0x138)]();}[_0x45f0d6(0x147)](){const _0x3e6a71=_0x45f0d6;let _0x491120=this[_0x3e6a71(0x157)][_0x3e6a71(0x125)](_0x36405c[_0x3e6a71(0x13f)])['getCurrentUnitOfType'](_0x36405c[_0x3e6a71(0x141)]['UNIVER_SHEET']);if(!_0x491120)throw Error(_0x3e6a71(0x129));let _0xc6f9ba=_0x491120[_0x3e6a71(0x132)](),_0x42caf9=this[_0x3e6a71(0x154)][_0x3e6a71(0x13d)](_0xc6f9ba);if(!_0x42caf9)throw Error(_0x3e6a71(0x12a));_0x42caf9[_0x3e6a71(0x147)]();}};_0x3f8ff9[_0x45f0d6(0x144)][_0x45f0d6(0x137)](_0x3353fd);var _0x577716=class extends _0x3f8ff9[_0x45f0d6(0x12e)]{get[_0x45f0d6(0x131)](){const _0xca21b9=_0x45f0d6;return _0x2436bd[_0xca21b9(0x130)];}};_0x3f8ff9[_0x45f0d6(0x12e)]['extend'](_0x577716);}));function _0x3cd8(){const _0x4dda83=['46hOKunS','string','stopFollowing','45EOpjOi','@univerjs/core','120135RvFobH','_liveShareController','1080978MOQtTW','defineProperty','_injector','LiveShareController','startFollowing','get','constructor','6FSGMbB','symbol','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','iterator','1231710GQgYAX','33NYLEky','FEnum','prototype','LiveShareStatus','LiveShareStatusEnum','getUnitId','10161264CQPqHZ','36KHudSD','UniverCoreFacade','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','extend','tryStartPresenting','UNIVER_SHEET','@univerjs-pro/live-share','default','getCurrentUnitOfType','getLiveShareCoordinatorSync','_initialize','IUniverInstanceService','getLiveShareStatus','UniverInstanceType','2707775ygSTSo','function','FUniver','UniverCore','amd','stopPresenting','object','155816WZNmZC','@univerjs/core/facade','2266oFleBM','startPresenting','toPrimitive'];_0x3cd8=function(){return _0x4dda83;};return _0x3cd8();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3ee8(){const _0xbdb4ac=['assign','url(#$1','LIVESHARE_NEW_HOST','LiveShareIcon','LIVESHARE_TERMINATE','dispose','UniverProCollaboration','send','UNIVER_LIVE_SHARE_PLUGIN','currentColor','You\x27re\x20presenting\x20the\x20document','LiveShareStatus','rxjs/operators','HEADER_MENU','offline','LiveShareController','from','UniverSheets','toStringTag','substring','presenter','UniverCore','svg','LiveShareService','_status$','_init','function','not-following','forEach','_handleOperation','random','attrs','throttleTime','_startLiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','clear','evenodd','createInstance','PRESENTING','You\x27are\x20offline.','LIVESHARE_OPERATION','Button','getStatus','registerSharedOperation','live-share-icon','event$','12105904QNbvTn','2755125EpohhT','_handleTerminate','iterator','defineProperty','_injector','values','DesktopLiveShareController','CollaborationEvent','0\x200\x2017\x2017','getInitialStates','univer-mb-3\x20univer-w-full\x20univer-text-sm','get','_uiPartsService','UniverLiveSharePlugin','_stopPresenting','entries','useEffect','Dropdown','_beIdle','takeUntil','pluginName','@univerjs/core','7674265feQGyN','1em','operations','@univerjs/sheets-ui','InsertSheetMutation','tag','jsxs','40jnZmOg','has','IUniverInstanceService','_collabSession','BehaviorSubject','default','useDependency','React','_handleNewHost','Subject','_sharedOperations','FOLLOWING','onRendered','Inject','presenting','0.25.0','ICommandService','_unitID','NEW_CHANGESETS','@univerjs-pro/live-share','getTypeOfUnitAdded$','SetZoomRatioOperation','displayName','params','includes','replace','data','UNIVER_SHEET','find','Start\x20following','react/jsx-runtime','connectInjector','useRef','then','_config','CommandType','set','call','mutations','operators','You\x27re\x20not\x20following\x20the\x20presenter','version','pipe','useObservable','UniverProLiveShare','object','delete','Disposable','_reporters','unitId','jsx','_entities','_status','onStarting','LIVESHARE_REQUEST_HOST','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','path','_fetchOperations','tryStartPresenting','getCurrentTypeOfUnit$','getMemberID','useState','659166jwHIHo','LIVESHARE_FETCH_OPERATIONS','SetWorksheetActiveOperation','UniverUi','7535898CJZoxb','UNIVER_UNKNOWN','xlink:href','button','getTypeOfUnitDisposed$','onCommandExecuted','Stop\x20following','packageName','SessionStatus','getConfig','rxjs','_handleOnline','stopFollowing','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','unit','shouldShareOperation','_presenter','complete','Start','ONLINE','subscribe','defIds','registerDependencies','colorChannel1','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','1290230qhQWCm','decorate','_handleNewChangeSets','_commandDisposable','toPrimitive','@univerjs-pro/collaboration-client','exports','reverse','fill','mask','status$','length','next','_stopFollowing','UniverDesign','touchDependencies','sessionStatus$','unsubscribe','mergeOverrideWithDependencies','UniverInstanceType','startFollowing','add','following','parseProtocolChangeset','div','react','disposeWithMe','_handleOffline','getOwnPropertyDescriptor','init','BuiltInUIPart','map','_startFollowing','idle','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','IConfigService','UniverProCollaborationClient','NOT_FOLLOWING','stringify','CollaborationSessionService','univerjs-icon\x20univerjs-icon-','toString','toDisposable','parse','21175rtfalu','Injector','string','end','use','OPERATION','UniverCollaborationClientPlugin','getUnitId','98ZxOTKN','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','DisposableCollection','type','_liveShareService','@univerjs/ui','_configService','_mountLiveShare','setConfig','getLiveShareCoordinator','RxDisposable','OFFLINE','current','Fragment','@univerjs-pro/collaboration','idSuffix','SetScrollOperation','4MgVbbJ','_univerInstanceService','children','Stop\x20presenting','amd','_commandService','clsx','symbol','dispose$'];_0x3ee8=function(){return _0xbdb4ac;};return _0x3ee8();}function _0x5a09(_0x5bd85f,_0x38759e){_0x5bd85f=_0x5bd85f-0xa5;const _0x3ee877=_0x3ee8();let _0x5a09ed=_0x3ee877[_0x5bd85f];return _0x5a09ed;}(function(_0x1f7a3d,_0x174bd7){const _0xdaea1f=_0x5a09,_0x121448=_0x1f7a3d();while(!![]){try{const _0x48dd5b=-parseInt(_0xdaea1f(0xbd))/0x1*(-parseInt(_0xdaea1f(0x12b))/0x2)+parseInt(_0xdaea1f(0x10e))/0x3+-parseInt(_0xdaea1f(0xd6))/0x4*(-parseInt(_0xdaea1f(0x124))/0x5)+parseInt(_0xdaea1f(0x169))/0x6*(-parseInt(_0xdaea1f(0xc5))/0x7)+-parseInt(_0xdaea1f(0x10d))/0x8+parseInt(_0xdaea1f(0x16d))/0x9+parseInt(_0xdaea1f(0x186))/0xa;if(_0x48dd5b===_0x174bd7)break;else _0x121448['push'](_0x121448['shift']());}catch(_0x3c6796){_0x121448['push'](_0x121448['shift']());}}}(_0x3ee8,0xc14e5),function(_0x53078d,_0x4a00d0){const _0x290b52=_0x5a09;typeof exports==_0x290b52(0x158)&&typeof module<'u'?_0x4a00d0(exports,require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('react/jsx-runtime'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x290b52(0xda)]?define([_0x290b52(0x18c),_0x290b52(0x123),_0x290b52(0xca),'@univerjs/design',_0x290b52(0xaa),_0x290b52(0xd3),_0x290b52(0x18b),'@univerjs/sheets',_0x290b52(0x177),_0x290b52(0xeb),_0x290b52(0x149),_0x290b52(0x127)],_0x4a00d0):(_0x53078d=typeof globalThis<'u'?globalThis:_0x53078d||self,_0x4a00d0(_0x53078d[_0x290b52(0x157)]={},_0x53078d[_0x290b52(0xf4)],_0x53078d[_0x290b52(0x16c)],_0x53078d[_0x290b52(0x194)],_0x53078d['React'],_0x53078d[_0x290b52(0xe5)],_0x53078d[_0x290b52(0xb5)],_0x53078d[_0x290b52(0xf0)],_0x53078d[_0x290b52(0x177)],_0x53078d['rxjs'][_0x290b52(0x152)],_0x53078d[_0x290b52(0x132)],_0x53078d['UniverSheetsUi']));}(this,function(_0x4a206c,_0x2e7bad,_0x51e529,_0x1fb8e8,_0x56d0c6,_0x47a740,_0x473c83,_0x10e3b7,_0x3c016f,_0x8ea80b,_0x3d6e13,_0x17de75){const _0x11a364=_0x5a09;Object[_0x11a364(0x111)](_0x4a206c,Symbol[_0x11a364(0xf1)],{'value':'Module'});function _0x36903c({ref:_0xdc673b,..._0x3991d3}){const _0x11197f=_0x11a364;let {icon:_0x45875b,id:_0x37704c,className:_0x27fccf,extend:_0x37bce4,..._0x247b9}=_0x3991d3,_0x26ae2c=(_0x11197f(0xb9)+_0x37704c+'\x20'+(_0x27fccf||''))['trim'](),_0x1c3a1f=(0x0,_0x56d0c6[_0x11197f(0x14b)])('_'+_0x36acdd());return _0x570777(_0x45875b,''+_0x37704c,{'defIds':_0x45875b[_0x11197f(0x182)],'idSuffix':_0x1c3a1f[_0x11197f(0xd1)]},{'ref':_0xdc673b,'className':_0x26ae2c,..._0x247b9},_0x37bce4);}function _0x570777(_0x4764b1,_0x4e5453,_0x1801fd,_0x3aa848,_0x437403){const _0x146a44=_0x11a364;return(0x0,_0x56d0c6['createElement'])(_0x4764b1['tag'],{'key':_0x4e5453,..._0x1c29b4(_0x4764b1,_0x1801fd,_0x437403),..._0x3aa848},(_0x7a751c(_0x4764b1,_0x1801fd)['children']||[])[_0x146a44(0xb0)]((_0x3e25fe,_0x2e762f)=>_0x570777(_0x3e25fe,_0x4e5453+'-'+_0x4764b1[_0x146a44(0x129)]+'-'+_0x2e762f,_0x1801fd,void 0x0,_0x437403)));}function _0x1c29b4(_0xcd012e,_0x369939,_0x38479a){const _0x262c20=_0x11a364;let _0x402057={..._0xcd012e['attrs']};_0x38479a!=null&&_0x38479a['colorChannel1']&&_0x402057[_0x262c20(0x18e)]==='colorChannel1'&&(_0x402057[_0x262c20(0x18e)]=_0x38479a[_0x262c20(0x184)]),_0xcd012e[_0x262c20(0x129)]==='mask'&&_0x402057['id']&&(_0x402057['id']+=_0x369939[_0x262c20(0xd4)]),Object[_0x262c20(0x11d)](_0x402057)[_0x262c20(0xfb)](([_0x2fdd96,_0x42b893])=>{const _0x46db3e=_0x262c20;_0x2fdd96===_0x46db3e(0x18f)&&typeof _0x42b893==_0x46db3e(0xbf)&&(_0x402057[_0x2fdd96]=_0x42b893[_0x46db3e(0x144)](/url\(#(.*)\)/,_0x46db3e(0xe0)+_0x369939[_0x46db3e(0xd4)]+')'));});let {defIds:_0x331020}=_0x369939;return!_0x331020||_0x331020[_0x262c20(0x191)]===0x0?_0x402057:(_0xcd012e[_0x262c20(0x129)]===_0x262c20(0xc1)&&_0x402057[_0x262c20(0x16f)]&&(_0x402057[_0x262c20(0x16f)]+=_0x369939[_0x262c20(0xd4)]),Object['entries'](_0x402057)[_0x262c20(0xfb)](([_0x49ab3a,_0x3177c8])=>{const _0x268e07=_0x262c20;typeof _0x3177c8==_0x268e07(0xbf)&&(_0x402057[_0x49ab3a]=_0x3177c8[_0x268e07(0x144)](/url\(#(.*)\)/,_0x268e07(0xe0)+_0x369939[_0x268e07(0xd4)]+')'));}),_0x402057);}function _0x7a751c(_0x3f0bb8,_0x52b1be){const _0x244326=_0x11a364;var _0x40f9ff;let {defIds:_0x265017}=_0x52b1be;return!_0x265017||_0x265017[_0x244326(0x191)]===0x0?_0x3f0bb8:_0x3f0bb8['tag']==='defs'&&(_0x40f9ff=_0x3f0bb8[_0x244326(0xd8)])!=null&&_0x40f9ff['length']?{..._0x3f0bb8,'children':_0x3f0bb8['children'][_0x244326(0xb0)](_0x2f2874=>typeof _0x2f2874[_0x244326(0xfe)]['id']==_0x244326(0xbf)&&_0x265017&&_0x265017[_0x244326(0x143)](_0x2f2874['attrs']['id'])?{..._0x2f2874,'attrs':{..._0x2f2874['attrs'],'id':_0x2f2874[_0x244326(0xfe)]['id']+_0x52b1be['idSuffix']}}:_0x2f2874)}:_0x3f0bb8;}function _0x36acdd(){const _0x4034d9=_0x11a364;return Math[_0x4034d9(0xfd)]()[_0x4034d9(0xba)](0x24)[_0x4034d9(0xf2)](0x2,0x8);}_0x36903c[_0x11a364(0x141)]='UniverIcon';let _0x1194e8={'tag':_0x11a364(0xf5),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x11a364(0x116),'width':'1em','height':_0x11a364(0x125)},'children':[{'tag':'path','attrs':{'fill':_0x11a364(0xe8),'d':_0x11a364(0x162)}},{'tag':_0x11a364(0x163),'attrs':{'fill':_0x11a364(0xe8),'d':_0x11a364(0xc6),'fillRule':'evenodd','clipRule':_0x11a364(0x103)}}]},_0xe5d3f2=(0x0,_0x56d0c6['forwardRef'])(function(_0x383aaa,_0x5c5b54){const _0x181d62=_0x11a364;return(0x0,_0x56d0c6['createElement'])(_0x36903c,Object[_0x181d62(0xdf)]({},_0x383aaa,{'id':_0x181d62(0x10b),'ref':_0x5c5b54,'icon':_0x1194e8}));});_0xe5d3f2['displayName']=_0x11a364(0xe2);function _0x48899a(_0x135867){'@babel/helpers - typeof';const _0x8b9c1=_0x11a364;return _0x48899a=typeof Symbol==_0x8b9c1(0xf9)&&typeof Symbol[_0x8b9c1(0x110)]==_0x8b9c1(0xdd)?function(_0x2c9852){return typeof _0x2c9852;}:function(_0x2c8b0d){const _0x564e41=_0x8b9c1;return _0x2c8b0d&&typeof Symbol==_0x564e41(0xf9)&&_0x2c8b0d['constructor']===Symbol&&_0x2c8b0d!==Symbol['prototype']?_0x564e41(0xdd):typeof _0x2c8b0d;},_0x48899a(_0x135867);}function _0x13f7c6(_0x44d01a,_0x5c2031){const _0x181b3a=_0x11a364;if(_0x48899a(_0x44d01a)!=_0x181b3a(0x158)||!_0x44d01a)return _0x44d01a;var _0x47b3a6=_0x44d01a[Symbol[_0x181b3a(0x18a)]];if(_0x47b3a6!==void 0x0){var _0x332802=_0x47b3a6[_0x181b3a(0x150)](_0x44d01a,_0x5c2031||_0x181b3a(0x130));if(_0x48899a(_0x332802)!=_0x181b3a(0x158))return _0x332802;throw TypeError(_0x181b3a(0xb3));}return(_0x5c2031===_0x181b3a(0xbf)?String:Number)(_0x44d01a);}function _0x326d2b(_0x47ac6f){const _0x347993=_0x11a364;var _0x4e4204=_0x13f7c6(_0x47ac6f,_0x347993(0xbf));return _0x48899a(_0x4e4204)==_0x347993(0xdd)?_0x4e4204:_0x4e4204+'';}function _0x28317c(_0x49e134,_0x4a4cdf,_0x3ab6e3){const _0x5723d6=_0x11a364;return(_0x4a4cdf=_0x326d2b(_0x4a4cdf))in _0x49e134?Object[_0x5723d6(0x111)](_0x49e134,_0x4a4cdf,{'value':_0x3ab6e3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x49e134[_0x4a4cdf]=_0x3ab6e3,_0x49e134;}var _0x225913=class extends _0x2e7bad['Disposable']{constructor(..._0x49a8f1){const _0x301a29=_0x11a364;super(..._0x49a8f1),_0x28317c(this,_0x301a29(0x135),new Set()),_0x28317c(this,_0x301a29(0x15b),new Set());}[_0x11a364(0x10a)](_0x1437d3){const _0x485613=_0x11a364;return this[_0x485613(0x135)][_0x485613(0xa6)](_0x1437d3),(0x0,_0x2e7bad['toDisposable'])(()=>this[_0x485613(0x135)][_0x485613(0x159)](_0x1437d3));}['registerInitialStateReporter'](_0x2c09fd){const _0x4d8a14=_0x11a364;return this[_0x4d8a14(0x15b)][_0x4d8a14(0xa6)](_0x2c09fd),(0x0,_0x2e7bad[_0x4d8a14(0xbb)])(()=>this[_0x4d8a14(0x15b)][_0x4d8a14(0x159)](_0x2c09fd));}[_0x11a364(0x17c)](_0x5333cc){const _0xcc84de=_0x11a364;return this['_sharedOperations'][_0xcc84de(0x12c)](_0x5333cc);}['getInitialStates'](_0x578a59){const _0x16811d=_0x11a364;return Array[_0x16811d(0xef)](this[_0x16811d(0x15b)])[_0x16811d(0xb0)](_0x3d0ef8=>_0x3d0ef8(_0x578a59));}};function _0x3f7fa2(_0x5f3416,_0x4a0517){return function(_0x2dc64c,_0x155056){_0x4a0517(_0x2dc64c,_0x155056,_0x5f3416);};}function _0x306afd(_0x47c638,_0x140798,_0x5227af,_0x2ebe54){const _0x13be94=_0x11a364;var _0x2127e4=arguments['length'],_0x22f812=_0x2127e4<0x3?_0x140798:_0x2ebe54===null?_0x2ebe54=Object[_0x13be94(0xad)](_0x140798,_0x5227af):_0x2ebe54,_0xde28ab;if(typeof Reflect==_0x13be94(0x158)&&typeof Reflect[_0x13be94(0x187)]==_0x13be94(0xf9))_0x22f812=Reflect[_0x13be94(0x187)](_0x47c638,_0x140798,_0x5227af,_0x2ebe54);else{for(var _0x47d97e=_0x47c638['length']-0x1;_0x47d97e>=0x0;_0x47d97e--)(_0xde28ab=_0x47c638[_0x47d97e])&&(_0x22f812=(_0x2127e4<0x3?_0xde28ab(_0x22f812):_0x2127e4>0x3?_0xde28ab(_0x140798,_0x5227af,_0x22f812):_0xde28ab(_0x140798,_0x5227af))||_0x22f812);}return _0x2127e4>0x3&&_0x22f812&&Object['defineProperty'](_0x140798,_0x5227af,_0x22f812),_0x22f812;}let _0x217326=class extends _0x2e7bad[_0x11a364(0xcf)]{constructor(_0x307907,_0x3f06db,_0x37d208){const _0x12cc17=_0x11a364;super(),this[_0x12cc17(0xd7)]=_0x307907,this[_0x12cc17(0x112)]=_0x3f06db,this['_collabSessionService']=_0x37d208,_0x28317c(this,_0x12cc17(0x15e),new Map()),this[_0x12cc17(0xf8)]();}async[_0x11a364(0xce)](_0x44c147){const _0x3f112e=_0x11a364;return this['_entities'][_0x3f112e(0x12c)](_0x44c147)||await this[_0x3f112e(0x100)](_0x44c147),this['_entities'][_0x3f112e(0x119)](_0x44c147);}['getLiveShareCoordinatorSync'](_0x2d1396){const _0x24b469=_0x11a364;var _0x54ceb8;return(_0x54ceb8=this[_0x24b469(0x15e)]['get'](_0x2d1396))==null?null:_0x54ceb8;}[_0x11a364(0xf8)](){const _0x3da985=_0x11a364;this[_0x3da985(0xd7)][_0x3da985(0x13f)](_0x2e7bad[_0x3da985(0x199)][_0x3da985(0x146)])['pipe']((0x0,_0x8ea80b[_0x3da985(0x121)])(this['dispose$']))[_0x3da985(0x181)](async _0x9041e0=>{const _0x2fa323=_0x3da985;let _0x5622e4=_0x9041e0[_0x2fa323(0x17b)][_0x2fa323(0xc4)]();this['_entities']['has'](_0x5622e4)||this['_startLiveShareCoordinator'](_0x5622e4);}),this['_univerInstanceService'][_0x3da985(0x171)](_0x2e7bad[_0x3da985(0x199)][_0x3da985(0x146)])[_0x3da985(0x155)]((0x0,_0x8ea80b['takeUntil'])(this[_0x3da985(0xde)]))['subscribe'](_0x3849b8=>{const _0x1c1bbb=_0x3da985;let _0xa073c0=_0x3849b8[_0x1c1bbb(0xc4)](),_0x5b7eeb=this[_0x1c1bbb(0x15e)]['get'](_0xa073c0);_0x5b7eeb==null||_0x5b7eeb['dispose']();});}async[_0x11a364(0x100)](_0x16a059){const _0x4970c5=_0x11a364;let _0x1321ff=await this['_collabSessionService']['requireSession'](_0x16a059),_0x1157c5=this[_0x4970c5(0x112)][_0x4970c5(0x104)](_0x1bb0fb,_0x16a059,_0x1321ff);return _0x1157c5[_0x4970c5(0xae)](),this[_0x4970c5(0x15e)][_0x4970c5(0x14f)](_0x16a059,_0x1157c5),_0x1157c5;}};_0x217326=_0x306afd([_0x3f7fa2(0x0,_0x2e7bad['IUniverInstanceService']),_0x3f7fa2(0x1,(0x0,_0x2e7bad[_0x11a364(0x138)])(_0x2e7bad[_0x11a364(0xbe)])),_0x3f7fa2(0x2,(0x0,_0x2e7bad[_0x11a364(0x138)])(_0x473c83[_0x11a364(0xb8)]))],_0x217326);let _0x3f762f=function(_0x409ee7){const _0x5cbb5c=_0x11a364;return _0x409ee7[_0x5cbb5c(0xd0)]=_0x5cbb5c(0xed),_0x409ee7['IDLE']=_0x5cbb5c(0xb2),_0x409ee7[_0x5cbb5c(0x136)]=_0x5cbb5c(0xa7),_0x409ee7[_0x5cbb5c(0xb6)]='not-following',_0x409ee7[_0x5cbb5c(0x105)]=_0x5cbb5c(0x139),_0x409ee7;}({}),_0x1bb0fb=class extends _0x2e7bad[_0x11a364(0xcf)]{get['_status'](){const _0xa8eea6=_0x11a364;return this[_0xa8eea6(0xf7)]['getValue']();}constructor(_0x563d7a,_0x2ec849,_0x5f0bbb,_0x3f4efd,_0x28154d){const _0x2f90de=_0x11a364;super(),this['_unitID']=_0x563d7a,this['_collabSession']=_0x2ec849,this[_0x2f90de(0xcb)]=_0x5f0bbb,this[_0x2f90de(0xc9)]=_0x3f4efd,this['_commandService']=_0x28154d,_0x28317c(this,_0x2f90de(0xf7),new _0x3c016f[(_0x2f90de(0x12f))](_0x2f90de(0xb2))),_0x28317c(this,_0x2f90de(0x190),this[_0x2f90de(0xf7)]['asObservable']()),_0x28317c(this,_0x2f90de(0xf8),!0x1),_0x28317c(this,_0x2f90de(0x189),null),_0x28317c(this,_0x2f90de(0x17d),null);}['dispose'](){const _0x41f6bc=_0x11a364;var _0xf4afbb;(_0xf4afbb=this[_0x41f6bc(0x189)])==null||_0xf4afbb[_0x41f6bc(0xe4)](),this[_0x41f6bc(0xf7)][_0x41f6bc(0x192)]('idle'),this[_0x41f6bc(0xf7)][_0x41f6bc(0x17e)]();}[_0x11a364(0x109)](){const _0x1baa39=_0x11a364;return this[_0x1baa39(0x15f)];}[_0x11a364(0xae)](){const _0x191b35=_0x11a364;this[_0x191b35(0xf8)]||(this['_init']=!0x0,this[_0x191b35(0x12e)][_0x191b35(0x196)]['pipe']((0x0,_0x8ea80b[_0x191b35(0x121)])(this[_0x191b35(0xde)]))['subscribe'](_0x3e4e3c=>{const _0x330236=_0x191b35;switch(_0x3e4e3c){case _0x473c83[_0x330236(0x175)][_0x330236(0xd0)]:this[_0x330236(0xac)]();break;case _0x473c83[_0x330236(0x175)][_0x330236(0x180)]:this['_handleOnline']();break;default:}}),this['_collabSession'][_0x191b35(0x10c)]['pipe']((0x0,_0x8ea80b[_0x191b35(0x121)])(this[_0x191b35(0xde)]))[_0x191b35(0x181)](_0x4f0e9b=>{const _0x10a581=_0x191b35;let {eventID:_0x4f5d8f}=_0x4f0e9b;switch(_0x4f5d8f){case _0x47a740[_0x10a581(0x115)][_0x10a581(0xe1)]:this[_0x10a581(0x133)](_0x4f0e9b);break;case _0x47a740[_0x10a581(0x115)][_0x10a581(0x107)]:this[_0x10a581(0xfc)](_0x4f0e9b);break;case _0x47a740[_0x10a581(0x115)][_0x10a581(0xe3)]:this[_0x10a581(0x10f)]();break;case _0x47a740[_0x10a581(0x115)][_0x10a581(0x13d)]:this[_0x10a581(0x188)](_0x4f0e9b);break;default:}}));}[_0x11a364(0x165)](){const _0x654dce=_0x11a364;this[_0x654dce(0x12e)][_0x654dce(0xe6)]({'eventID':_0x47a740[_0x654dce(0x115)][_0x654dce(0x161)],'data':{'unitID':this[_0x654dce(0x13c)],'userID':this[_0x654dce(0x12e)][_0x654dce(0x167)]()}},this[_0x654dce(0x13c)]);}['stopPresenting'](){const _0x16049c=_0x11a364;this[_0x16049c(0x15f)]===_0x16049c(0x139)&&(this[_0x16049c(0xf7)][_0x16049c(0x192)]('idle'),this[_0x16049c(0x12e)][_0x16049c(0xe6)]({'eventID':_0x47a740[_0x16049c(0x115)][_0x16049c(0xe3)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x11a364(0xa5)](){const _0x5d80a8=_0x11a364;this[_0x5d80a8(0x15f)]==='not-following'&&(this['_status$']['next'](_0x5d80a8(0xa7)),this[_0x5d80a8(0xb1)]());}['stopFollowing'](){const _0x4addc0=_0x11a364;this[_0x4addc0(0x15f)]===_0x4addc0(0xa7)&&this[_0x4addc0(0x193)]();}['_handleNewHost'](_0x9e952e){const _0x34e7dc=_0x11a364;let {presenter:_0x2a3832}=_0x9e952e[_0x34e7dc(0x145)],_0x4971b1=this[_0x34e7dc(0x12e)][_0x34e7dc(0x167)]();this['_presenter']=_0x2a3832,_0x2a3832===_0x4971b1?(this[_0x34e7dc(0x193)](),this['_startPresenting']()):this[_0x34e7dc(0x15f)]!==_0x34e7dc(0xfa)&&(this[_0x34e7dc(0x11c)](),this['_startFollowing']());}[_0x11a364(0x164)](){const _0x585fbc=_0x11a364;let _0x3ecc11={'eventID':_0x47a740[_0x585fbc(0x115)][_0x585fbc(0x16a)]};this['_collabSession']['send'](_0x3ecc11,this[_0x585fbc(0x13c)]);}[_0x11a364(0x10f)](){const _0x57ecf5=_0x11a364;this['_presenter']=null,this[_0x57ecf5(0x15f)]!==_0x57ecf5(0x139)&&this[_0x57ecf5(0x120)]();}[_0x11a364(0x188)](_0x669e02){const _0x20700b=_0x11a364;if(this[_0x20700b(0x15f)]==='following'&&this[_0x20700b(0x17d)]===_0x669e02[_0x20700b(0x145)]['memberID']){let _0x3ae28f=(0x0,_0x47a740[_0x20700b(0xa8)])(_0x669e02[_0x20700b(0x145)])[_0x20700b(0x151)][_0x20700b(0x18d)]()[_0x20700b(0x147)](_0x2fcddf=>_0x2fcddf['id']===_0x10e3b7[_0x20700b(0x128)]['id']);if(_0x3ae28f){let _0x5abc33=_0x3ae28f[_0x20700b(0x142)][_0x20700b(0x15c)],_0x49038f=_0x3ae28f[_0x20700b(0x142)]['sheet']['id'];setTimeout(()=>{const _0x78d98b=_0x20700b;this[_0x78d98b(0xdb)]['executeCommand'](_0x10e3b7[_0x78d98b(0x16b)]['id'],{'unitId':_0x5abc33,'subUnitId':_0x49038f},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1ef1cf=_0x11a364;var _0x4e9d07;(_0x4e9d07=this[_0x1ef1cf(0x189)])==null||_0x4e9d07[_0x1ef1cf(0xe4)](),this[_0x1ef1cf(0xf7)][_0x1ef1cf(0x192)](_0x1ef1cf(0x139));let _0x48ca39=new Map(),_0x4c821f=this['_commandDisposable']=new _0x2e7bad[(_0x1ef1cf(0xc7))]();_0x4c821f[_0x1ef1cf(0xa6)]((0x0,_0x2e7bad[_0x1ef1cf(0xbb)])(()=>{const _0xf8971f=_0x1ef1cf;_0x48ca39['forEach'](({subject:_0x2fd709,subscription:_0x50f515})=>{const _0x318f52=_0x5a09;_0x50f515[_0x318f52(0x197)](),_0x2fd709[_0x318f52(0x17e)]();}),_0x48ca39[_0xf8971f(0x102)]();})),_0x4c821f[_0x1ef1cf(0xa6)](this[_0x1ef1cf(0xdb)][_0x1ef1cf(0x172)](_0x519c7f=>{const _0x561f64=_0x1ef1cf;if(_0x519c7f[_0x561f64(0xc8)]!==_0x2e7bad[_0x561f64(0x14e)][_0x561f64(0xc2)]||!this['_liveShareService']['shouldShareOperation'](_0x519c7f['id']))return;let {id:_0x5c46d5}=_0x519c7f,_0x4d3bce;if(_0x48ca39[_0x561f64(0x12c)](_0x5c46d5))_0x4d3bce=_0x48ca39[_0x561f64(0x119)](_0x5c46d5)['subject'];else{var _0x598da0;_0x4d3bce=new _0x3c016f[(_0x561f64(0x134))]();let _0x51545c=_0x4d3bce[_0x561f64(0x155)]((0x0,_0x8ea80b[_0x561f64(0xff)])((_0x598da0=this[_0x561f64(0xcb)][_0x561f64(0x176)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x598da0,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4b889f=>{const _0x137b79=_0x561f64;this[_0x137b79(0x12e)][_0x137b79(0xe6)]({'eventID':_0x47a740[_0x137b79(0x115)][_0x137b79(0x107)],'data':{'unitID':this[_0x137b79(0x13c)],'operations':{[_0x4b889f['id']]:{'id':_0x4b889f['id'],'params':JSON[_0x137b79(0xb7)](_0x4b889f[_0x137b79(0x142)])}}}},this[_0x137b79(0x13c)]);});_0x48ca39['set'](_0x5c46d5,{'subject':_0x4d3bce,'subscription':_0x51545c});}_0x4d3bce[_0x561f64(0x192)](_0x519c7f);})),this[_0x1ef1cf(0xc9)][_0x1ef1cf(0x117)](this[_0x1ef1cf(0x13c)])[_0x1ef1cf(0xfb)](_0x4cb24f=>this[_0x1ef1cf(0x12e)][_0x1ef1cf(0xe6)]({'eventID':_0x47a740[_0x1ef1cf(0x115)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1ef1cf(0x13c)],'operations':{[_0x4cb24f['id']]:{'id':_0x4cb24f['id'],'params':JSON[_0x1ef1cf(0xb7)](_0x4cb24f[_0x1ef1cf(0x142)])}}}},this[_0x1ef1cf(0x13c)]));}[_0x11a364(0x11c)](){const _0x46c132=_0x11a364;var _0x458727;this[_0x46c132(0xf7)][_0x46c132(0x192)](_0x46c132(0xb2)),(_0x458727=this[_0x46c132(0x189)])==null||_0x458727['dispose'](),this[_0x46c132(0x189)]=null;}['_startFollowing'](){const _0x5209fd=_0x11a364;var _0xd80dd;(_0xd80dd=this[_0x5209fd(0x189)])==null||_0xd80dd[_0x5209fd(0xe4)](),this['_status$'][_0x5209fd(0x192)](_0x5209fd(0xa7));}[_0x11a364(0x120)](){const _0x30132a=_0x11a364;var _0x343b35;this[_0x30132a(0xf7)]['next']('idle'),(_0x343b35=this[_0x30132a(0x189)])==null||_0x343b35[_0x30132a(0xe4)](),this['_commandDisposable']=null;}[_0x11a364(0x193)](){const _0x58bac8=_0x11a364;var _0x5addbd;this[_0x58bac8(0xf7)][_0x58bac8(0x192)](_0x58bac8(0xfa)),(_0x5addbd=this[_0x58bac8(0x189)])==null||_0x5addbd[_0x58bac8(0xe4)]();}[_0x11a364(0xfc)](_0x3fd86b){const _0x2ccdd7=_0x11a364;if([_0x2ccdd7(0x139),_0x2ccdd7(0xfa),_0x2ccdd7(0xed)][_0x2ccdd7(0x143)](this[_0x2ccdd7(0x15f)])||!_0x3fd86b[_0x2ccdd7(0x145)][_0x2ccdd7(0xf3)]||_0x3fd86b[_0x2ccdd7(0x145)]['presenter']===this[_0x2ccdd7(0x12e)]['getMemberID']())return;this['_status']==='idle'&&this['_startFollowing']();let _0x28b58f=_0x3fd86b[_0x2ccdd7(0x145)][_0x2ccdd7(0x126)];Object[_0x2ccdd7(0x113)](_0x28b58f)[_0x2ccdd7(0xfb)](_0x201cfd=>{const _0x1485f3=_0x2ccdd7;this[_0x1485f3(0xdb)]['executeCommand'](_0x201cfd['id'],_0x201cfd[_0x1485f3(0x142)]?JSON[_0x1485f3(0xbc)](_0x201cfd[_0x1485f3(0x142)]):null,{'fromCollab':!0x0});});}[_0x11a364(0xac)](){const _0x341586=_0x11a364;var _0x157432;this[_0x341586(0xf7)][_0x341586(0x192)](_0x341586(0xed)),(_0x157432=this[_0x341586(0x189)])==null||_0x157432[_0x341586(0xe4)]();}[_0x11a364(0x178)](){const _0x53cf72=_0x11a364;this[_0x53cf72(0xf7)][_0x53cf72(0x192)]('idle'),this[_0x53cf72(0x164)]();}};_0x1bb0fb=_0x306afd([_0x3f7fa2(0x2,_0x2e7bad[_0x11a364(0xb4)]),_0x3f7fa2(0x3,(0x0,_0x2e7bad['Inject'])(_0x225913)),_0x3f7fa2(0x4,_0x2e7bad[_0x11a364(0x13b)])],_0x1bb0fb);function _0xdd9c28(){const _0xc820e6=_0x11a364;let _0x307687=(0x0,_0x51e529['useDependency'])(_0x217326),_0x1e079d=(0x0,_0x51e529[_0xc820e6(0x131)])(_0x2e7bad[_0xc820e6(0x12d)]),_0x4f0afb=(0x0,_0x51e529[_0xc820e6(0x156)])(()=>_0x1e079d[_0xc820e6(0x166)](_0x2e7bad[_0xc820e6(0x199)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3317a4,_0x2b108e]=(0x0,_0x56d0c6[_0xc820e6(0x168)])(null),[_0x38bc75,_0xb8f30c]=(0x0,_0x56d0c6['useState'])(_0xc820e6(0xb2)),_0x557491=(0x0,_0x56d0c6[_0xc820e6(0x14b)])(null);return(0x0,_0x56d0c6[_0xc820e6(0x11e)])(()=>(_0x4f0afb&&_0x307687[_0xc820e6(0xce)](_0x4f0afb[_0xc820e6(0xc4)]())[_0xc820e6(0x14c)](_0x12e104=>{const _0xc9c41e=_0xc820e6;_0x2b108e(_0x12e104),_0x557491[_0xc9c41e(0xd1)]=_0x12e104[_0xc9c41e(0x190)]['subscribe'](_0x2c1bd7=>{_0xb8f30c(_0x2c1bd7);});}),()=>{const _0xa80827=_0xc820e6;var _0x435a7f;(_0x435a7f=_0x557491[_0xa80827(0xd1)])==null||_0x435a7f[_0xa80827(0x197)](),_0x557491['current']=null;}),[_0x4f0afb,_0x307687]),_0x3317a4?(0x0,_0x3d6e13[_0xc820e6(0x15d)])(_0x1fb8e8[_0xc820e6(0x11f)],{'align':_0xc820e6(0xc0),'disabled':_0x38bc75==='offline','className':_0xc820e6(0x17a),'overlay':(0x0,_0x3d6e13[_0xc820e6(0x15d)])(_0x1dcad6,{'status':_0x38bc75,'coordinator':_0x3317a4}),'children':(0x0,_0x3d6e13[_0xc820e6(0x15d)])(_0xc820e6(0x170),{'className':(0x0,_0x1fb8e8[_0xc820e6(0xdc)])(_0xc820e6(0x185),{'univer-cursor-not-allowed':_0x38bc75==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38bc75!==_0xc820e6(0xed)}),'type':_0xc820e6(0x170),'children':(0x0,_0x3d6e13['jsx'])(_0xe5d3f2,{'className':'univer-size-4'})})}):null;}function _0x1dcad6(_0x149d6e){const _0x5a208c=_0x11a364;let {status:_0x1af880,coordinator:_0x362f22}=_0x149d6e;switch(_0x1af880){case _0x5a208c(0xb2):return(0x0,_0x3d6e13['jsx'])(_0x230f66,{'coordinator':_0x362f22});case _0x5a208c(0xa7):return(0x0,_0x3d6e13[_0x5a208c(0x15d)])(_0x1badf9,{'coordinator':_0x362f22});case _0x5a208c(0xfa):return(0x0,_0x3d6e13[_0x5a208c(0x15d)])(_0x44a827,{'coordinator':_0x362f22});case _0x5a208c(0xed):return(0x0,_0x3d6e13[_0x5a208c(0x15d)])(_0x2fe692,{});case _0x5a208c(0x139):return(0x0,_0x3d6e13['jsx'])(_0x4b6a5b,{'coordinator':_0x362f22});default:return null;}}function _0x230f66(_0x89242d){const _0x22846d=_0x11a364;let {coordinator:_0x155fb0}=_0x89242d;return(0x0,_0x3d6e13['jsxs'])(_0x3d6e13[_0x22846d(0xd2)],{'children':[(0x0,_0x3d6e13['jsx'])(_0x22846d(0xa9),{'className':_0x22846d(0x118),'children':'Present\x20this\x20document'}),(0x0,_0x3d6e13[_0x22846d(0x15d)])(_0x1fb8e8[_0x22846d(0x108)],{'onClick':()=>_0x155fb0[_0x22846d(0x165)](),'children':_0x22846d(0x17f)})]});}function _0x1badf9(_0x53206c){const _0x5eb99a=_0x11a364;let {coordinator:_0x306ee4}=_0x53206c;return(0x0,_0x3d6e13[_0x5eb99a(0x12a)])(_0x3d6e13[_0x5eb99a(0xd2)],{'children':[(0x0,_0x3d6e13['jsx'])(_0x5eb99a(0xa9),{'className':_0x5eb99a(0x118),'children':_0x5eb99a(0x101)}),(0x0,_0x3d6e13[_0x5eb99a(0x15d)])(_0x1fb8e8[_0x5eb99a(0x108)],{'onClick':()=>_0x306ee4[_0x5eb99a(0x179)](),'children':_0x5eb99a(0x173)})]});}function _0x44a827(_0x4c3913){const _0x297c18=_0x11a364;let {coordinator:_0x5c5537}=_0x4c3913;return(0x0,_0x3d6e13[_0x297c18(0x12a)])(_0x3d6e13[_0x297c18(0xd2)],{'children':[(0x0,_0x3d6e13['jsx'])('div',{'className':_0x297c18(0x118),'children':_0x297c18(0x153)}),(0x0,_0x3d6e13[_0x297c18(0x15d)])(_0x1fb8e8[_0x297c18(0x108)],{'variant':'text','onClick':()=>_0x5c5537[_0x297c18(0xa5)](),'children':_0x297c18(0x148)})]});}function _0x4b6a5b(_0x467ea9){const _0x3d04f3=_0x11a364;let {coordinator:_0x52f03b}=_0x467ea9;return(0x0,_0x3d6e13[_0x3d04f3(0x12a)])(_0x3d6e13[_0x3d04f3(0xd2)],{'children':[(0x0,_0x3d6e13[_0x3d04f3(0x15d)])(_0x3d04f3(0xa9),{'className':_0x3d04f3(0x118),'children':_0x3d04f3(0xe9)}),(0x0,_0x3d6e13['jsx'])(_0x1fb8e8['Button'],{'variant':_0x3d04f3(0x130),'onClick':()=>_0x52f03b['stopPresenting'](),'children':_0x3d04f3(0xd9)})]});}function _0x2fe692(){const _0x5ee8d7=_0x11a364;return(0x0,_0x3d6e13[_0x5ee8d7(0x15d)])(_0x3d6e13[_0x5ee8d7(0xd2)],{'children':_0x5ee8d7(0x106)});}let _0x149d2f=class extends _0x2e7bad[_0x11a364(0x15a)]{constructor(_0x4c2f89,_0x2d2806){const _0x1a9a1a=_0x11a364;super(),this[_0x1a9a1a(0x112)]=_0x4c2f89,this['_uiPartsService']=_0x2d2806,this[_0x1a9a1a(0xcc)]();}['_mountLiveShare'](){const _0x3f80bb=_0x11a364;this[_0x3f80bb(0xab)](this[_0x3f80bb(0x11a)]['registerComponent'](_0x51e529[_0x3f80bb(0xaf)][_0x3f80bb(0xec)],()=>(0x0,_0x51e529[_0x3f80bb(0x14a)])(_0xdd9c28,this[_0x3f80bb(0x112)])));}};_0x149d2f=_0x306afd([_0x3f7fa2(0x0,(0x0,_0x2e7bad[_0x11a364(0x138)])(_0x2e7bad['Injector'])),_0x3f7fa2(0x1,_0x51e529['IUIPartsService'])],_0x149d2f);var _0xa691cc=_0x11a364(0x13e),_0x457589=_0x11a364(0x13a);let _0x3fa4ec={},_0x4de94d=class extends _0x2e7bad[_0x11a364(0x15a)]{constructor(_0x4bddfa){const _0x276df6=_0x11a364;super(),this[_0x276df6(0xc9)]=_0x4bddfa,this[_0x276df6(0xf8)]();}[_0x11a364(0xf8)](){const _0x29ecb4=_0x11a364;[_0x17de75[_0x29ecb4(0x140)]['id'],_0x17de75[_0x29ecb4(0xd5)]['id'],_0x10e3b7[_0x29ecb4(0x16b)]['id']]['forEach'](_0x4b7ce9=>{const _0x3652a1=_0x29ecb4;this[_0x3652a1(0xab)](this[_0x3652a1(0xc9)]['registerSharedOperation'](_0x4b7ce9));});}};_0x4de94d=_0x306afd([_0x3f7fa2(0x0,(0x0,_0x2e7bad['Inject'])(_0x225913))],_0x4de94d);let _0xceb584=class extends _0x2e7bad['Plugin']{constructor(_0x31637c=_0x3fa4ec,_0x20e075,_0x464097){const _0x10e7c7=_0x11a364;super(),this['_config']=_0x31637c,this[_0x10e7c7(0x112)]=_0x20e075,this[_0x10e7c7(0xcb)]=_0x464097;let {..._0x1370a4}=(0x0,_0x2e7bad['merge'])({},_0x3fa4ec,this[_0x10e7c7(0x14d)]);this[_0x10e7c7(0xcb)][_0x10e7c7(0xcd)]('live-share.config',_0x1370a4);}[_0x11a364(0x160)](){const _0x10bec9=_0x11a364;(0x0,_0x2e7bad[_0x10bec9(0x183)])(this[_0x10bec9(0x112)],(0x0,_0x2e7bad[_0x10bec9(0x198)])([[_0x225913],[_0x217326],[_0x4de94d],[_0x149d2f]],this[_0x10bec9(0x14d)]['override'])),(0x0,_0x2e7bad[_0x10bec9(0x195)])(this['_injector'],[[_0x4de94d]]);}[_0x11a364(0x137)](){const _0x5b9570=_0x11a364;(0x0,_0x2e7bad[_0x5b9570(0x195)])(this[_0x5b9570(0x112)],[[_0x149d2f]]);}};_0x28317c(_0xceb584,_0x11a364(0xc8),_0x2e7bad[_0x11a364(0x199)][_0x11a364(0x16e)]),_0x28317c(_0xceb584,_0x11a364(0x122),_0x11a364(0xe7)),_0x28317c(_0xceb584,_0x11a364(0x174),_0xa691cc),_0x28317c(_0xceb584,_0x11a364(0x154),_0x457589),_0xceb584=_0x306afd([(0x0,_0x2e7bad['DependentOn'])(_0x473c83[_0x11a364(0xc3)]),_0x3f7fa2(0x1,(0x0,_0x2e7bad[_0x11a364(0x138)])(_0x2e7bad['Injector'])),_0x3f7fa2(0x2,_0x2e7bad[_0x11a364(0xb4)])],_0xceb584),Object[_0x11a364(0x111)](_0x4a206c,_0x11a364(0x114),{'enumerable':!0x0,'get':function(){return _0x149d2f;}}),_0x4a206c['LiveShare']=_0xdd9c28,Object[_0x11a364(0x111)](_0x4a206c,_0x11a364(0xee),{'enumerable':!0x0,'get':function(){return _0x217326;}}),Object[_0x11a364(0x111)](_0x4a206c,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return _0x1bb0fb;}}),_0x4a206c[_0x11a364(0xf6)]=_0x225913,_0x4a206c[_0x11a364(0xea)]=_0x3f762f,Object[_0x11a364(0x111)](_0x4a206c,_0x11a364(0x11b),{'enumerable':!0x0,'get':function(){return _0xceb584;}});}));
|
|
1
|
+
function _0x4487(_0x535be6,_0x3a86a3){_0x535be6=_0x535be6-0x7e;const _0xb4a871=_0xb4a8();let _0x448758=_0xb4a871[_0x535be6];return _0x448758;}(function(_0x3a4b82,_0x50df29){const _0x4cc9cb=_0x4487,_0x2f44d3=_0x3a4b82();while(!![]){try{const _0x442307=-parseInt(_0x4cc9cb(0x148))/0x1*(parseInt(_0x4cc9cb(0x114))/0x2)+-parseInt(_0x4cc9cb(0xae))/0x3+-parseInt(_0x4cc9cb(0x137))/0x4*(-parseInt(_0x4cc9cb(0xd6))/0x5)+-parseInt(_0x4cc9cb(0xca))/0x6+-parseInt(_0x4cc9cb(0x159))/0x7*(parseInt(_0x4cc9cb(0xaa))/0x8)+-parseInt(_0x4cc9cb(0x153))/0x9+-parseInt(_0x4cc9cb(0xef))/0xa*(-parseInt(_0x4cc9cb(0x15d))/0xb);if(_0x442307===_0x50df29)break;else _0x2f44d3['push'](_0x2f44d3['shift']());}catch(_0x1e4482){_0x2f44d3['push'](_0x2f44d3['shift']());}}}(_0xb4a8,0x870af),function(_0x3a0a76,_0x150d49){const _0x3573b4=_0x4487;typeof exports==_0x3573b4(0xf8)&&typeof module<'u'?_0x150d49(exports,require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('react/jsx-runtime'),require('@univerjs/sheets-ui')):typeof define==_0x3573b4(0x132)&&define[_0x3573b4(0xd0)]?define([_0x3573b4(0xfb),_0x3573b4(0x98),_0x3573b4(0xfd),_0x3573b4(0x169),_0x3573b4(0x106),_0x3573b4(0xd7),_0x3573b4(0xa2),_0x3573b4(0xbe),_0x3573b4(0xbb),_0x3573b4(0xcb),_0x3573b4(0xd4),_0x3573b4(0x124)],_0x150d49):(_0x3a0a76=typeof globalThis<'u'?globalThis:_0x3a0a76||self,_0x150d49(_0x3a0a76['UniverProLiveShare']={},_0x3a0a76[_0x3573b4(0x117)],_0x3a0a76[_0x3573b4(0x12e)],_0x3a0a76[_0x3573b4(0x12b)],_0x3a0a76[_0x3573b4(0xfc)],_0x3a0a76[_0x3573b4(0xf6)],_0x3a0a76[_0x3573b4(0x123)],_0x3a0a76[_0x3573b4(0x8a)],_0x3a0a76[_0x3573b4(0xbb)],_0x3a0a76[_0x3573b4(0xbb)][_0x3573b4(0xc8)],_0x3a0a76['React'],_0x3a0a76[_0x3573b4(0xd8)]));}(this,function(_0x267332,_0x5d0cde,_0x2d834b,_0x28b9d4,_0x168f88,_0x51961d,_0x2d41d9,_0x4e0523,_0x418e8f,_0x4ebb2a,_0x38b09a,_0x522b82){const _0x21389e=_0x4487;Object[_0x21389e(0x93)](_0x267332,Symbol['toStringTag'],{'value':_0x21389e(0x9a)});function _0x2ed2e8({ref:_0x567275,..._0x4e66dd}){const _0x27fa71=_0x21389e;let {icon:_0x2f3905,id:_0x18b587,className:_0x5de2fb,extend:_0x4b6e38,..._0x2fb1b2}=_0x4e66dd,_0x3f2072=(_0x27fa71(0xe1)+_0x18b587+'\x20'+(_0x5de2fb||''))[_0x27fa71(0xde)](),_0x52a235=(0x0,_0x168f88[_0x27fa71(0xad)])('_'+_0x2a6f4a());return _0x13745e(_0x2f3905,''+_0x18b587,{'defIds':_0x2f3905[_0x27fa71(0x116)],'idSuffix':_0x52a235[_0x27fa71(0x158)]},{'ref':_0x567275,'className':_0x3f2072,..._0x2fb1b2},_0x4b6e38);}function _0x13745e(_0x267a7a,_0x23071d,_0x4d766c,_0x233885,_0x4e1753){const _0x4dd3b5=_0x21389e;return(0x0,_0x168f88[_0x4dd3b5(0x13f)])(_0x267a7a[_0x4dd3b5(0xcc)],{'key':_0x23071d,..._0x48fa28(_0x267a7a,_0x4d766c,_0x4e1753),..._0x233885},(_0x40b54e(_0x267a7a,_0x4d766c)[_0x4dd3b5(0x174)]||[])[_0x4dd3b5(0x92)]((_0x55e8a1,_0x12c916)=>_0x13745e(_0x55e8a1,_0x23071d+'-'+_0x267a7a['tag']+'-'+_0x12c916,_0x4d766c,void 0x0,_0x4e1753)));}function _0x48fa28(_0x591491,_0x18125d,_0x336183){const _0x3bab89=_0x21389e;let _0x5e6a5a={..._0x591491[_0x3bab89(0xd2)]};_0x336183!=null&&_0x336183[_0x3bab89(0x15a)]&&_0x5e6a5a[_0x3bab89(0x15f)]===_0x3bab89(0x15a)&&(_0x5e6a5a['fill']=_0x336183[_0x3bab89(0x15a)]),_0x591491[_0x3bab89(0xcc)]===_0x3bab89(0xce)&&_0x5e6a5a['id']&&(_0x5e6a5a['id']+=_0x18125d[_0x3bab89(0x168)]),Object[_0x3bab89(0x136)](_0x5e6a5a)[_0x3bab89(0x166)](([_0x31079d,_0x3d25ca])=>{const _0x3def35=_0x3bab89;_0x31079d===_0x3def35(0xce)&&typeof _0x3d25ca==_0x3def35(0x143)&&(_0x5e6a5a[_0x31079d]=_0x3d25ca[_0x3def35(0x105)](/url\(#(.*)\)/,_0x3def35(0x94)+_0x18125d['idSuffix']+')'));});let {defIds:_0x586c97}=_0x18125d;return!_0x586c97||_0x586c97['length']===0x0?_0x5e6a5a:(_0x591491[_0x3bab89(0xcc)]===_0x3bab89(0x155)&&_0x5e6a5a['xlink:href']&&(_0x5e6a5a[_0x3bab89(0x142)]+=_0x18125d[_0x3bab89(0x168)]),Object['entries'](_0x5e6a5a)['forEach'](([_0x52cc13,_0x9770d])=>{const _0x388fd6=_0x3bab89;typeof _0x9770d==_0x388fd6(0x143)&&(_0x5e6a5a[_0x52cc13]=_0x9770d[_0x388fd6(0x105)](/url\(#(.*)\)/,_0x388fd6(0x94)+_0x18125d[_0x388fd6(0x168)]+')'));}),_0x5e6a5a);}function _0x40b54e(_0x53f522,_0x25541f){const _0x295215=_0x21389e;var _0x9aa4a4;let {defIds:_0x25e9ca}=_0x25541f;return!_0x25e9ca||_0x25e9ca[_0x295215(0x8c)]===0x0?_0x53f522:_0x53f522[_0x295215(0xcc)]===_0x295215(0x147)&&(_0x9aa4a4=_0x53f522['children'])!=null&&_0x9aa4a4[_0x295215(0x8c)]?{..._0x53f522,'children':_0x53f522[_0x295215(0x174)][_0x295215(0x92)](_0xb233d3=>typeof _0xb233d3[_0x295215(0xd2)]['id']==_0x295215(0x143)&&_0x25e9ca&&_0x25e9ca[_0x295215(0x84)](_0xb233d3[_0x295215(0xd2)]['id'])?{..._0xb233d3,'attrs':{..._0xb233d3[_0x295215(0xd2)],'id':_0xb233d3[_0x295215(0xd2)]['id']+_0x25541f[_0x295215(0x168)]}}:_0xb233d3)}:_0x53f522;}function _0x2a6f4a(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x2ed2e8[_0x21389e(0x144)]=_0x21389e(0xbc);let _0x5c915b={'tag':_0x21389e(0xba),'attrs':{'xmlns':_0x21389e(0x108),'fill':_0x21389e(0x85),'viewBox':'0\x200\x2017\x2017','width':_0x21389e(0x145),'height':'1em'},'children':[{'tag':_0x21389e(0x95),'attrs':{'fill':_0x21389e(0x146),'d':_0x21389e(0x83)}},{'tag':_0x21389e(0x95),'attrs':{'fill':_0x21389e(0x146),'d':_0x21389e(0x150),'fillRule':'evenodd','clipRule':_0x21389e(0x10e)}}]},_0x28fca2=(0x0,_0x168f88['forwardRef'])(function(_0x3f4650,_0x38225c){const _0x36be41=_0x21389e;return(0x0,_0x168f88[_0x36be41(0x13f)])(_0x2ed2e8,Object['assign']({},_0x3f4650,{'id':_0x36be41(0x12a),'ref':_0x38225c,'icon':_0x5c915b}));});_0x28fca2[_0x21389e(0x144)]=_0x21389e(0x160);function _0x3b6e5b(_0xcb869e){'@babel/helpers - typeof';const _0x302f19=_0x21389e;return _0x3b6e5b=typeof Symbol==_0x302f19(0x132)&&typeof Symbol[_0x302f19(0xb5)]=='symbol'?function(_0x18db48){return typeof _0x18db48;}:function(_0x4cad8d){const _0x2ca6da=_0x302f19;return _0x4cad8d&&typeof Symbol=='function'&&_0x4cad8d[_0x2ca6da(0xa4)]===Symbol&&_0x4cad8d!==Symbol['prototype']?_0x2ca6da(0x80):typeof _0x4cad8d;},_0x3b6e5b(_0xcb869e);}function _0x35b973(_0x232f2e,_0x432f4a){const _0x44c069=_0x21389e;if(_0x3b6e5b(_0x232f2e)!=_0x44c069(0xf8)||!_0x232f2e)return _0x232f2e;var _0x28e6a2=_0x232f2e[Symbol[_0x44c069(0xb4)]];if(_0x28e6a2!==void 0x0){var _0x6da949=_0x28e6a2[_0x44c069(0x154)](_0x232f2e,_0x432f4a||_0x44c069(0xd1));if(_0x3b6e5b(_0x6da949)!='object')return _0x6da949;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x432f4a==='string'?String:Number)(_0x232f2e);}function _0x191f38(_0x5fff8f){const _0x5eed6c=_0x21389e;var _0x14fa23=_0x35b973(_0x5fff8f,_0x5eed6c(0x143));return _0x3b6e5b(_0x14fa23)=='symbol'?_0x14fa23:_0x14fa23+'';}function _0x527e54(_0x5a5d1c,_0x3c0bd2,_0x50c348){const _0x276b73=_0x21389e;return(_0x3c0bd2=_0x191f38(_0x3c0bd2))in _0x5a5d1c?Object[_0x276b73(0x93)](_0x5a5d1c,_0x3c0bd2,{'value':_0x50c348,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5a5d1c[_0x3c0bd2]=_0x50c348,_0x5a5d1c;}var _0x2e5c0f=class extends _0x5d0cde[_0x21389e(0xf4)]{constructor(..._0x4f39ae){const _0x53091e=_0x21389e;super(..._0x4f39ae),_0x527e54(this,_0x53091e(0x14b),new Set()),_0x527e54(this,_0x53091e(0x141),new Set());}[_0x21389e(0xcf)](_0x52a473){const _0x3d4a4f=_0x21389e;return this[_0x3d4a4f(0x14b)][_0x3d4a4f(0x13b)](_0x52a473),(0x0,_0x5d0cde['toDisposable'])(()=>this[_0x3d4a4f(0x14b)][_0x3d4a4f(0x11a)](_0x52a473));}[_0x21389e(0x14d)](_0x2b11db){const _0x5ed2ab=_0x21389e;return this[_0x5ed2ab(0x141)][_0x5ed2ab(0x13b)](_0x2b11db),(0x0,_0x5d0cde[_0x5ed2ab(0xb8)])(()=>this[_0x5ed2ab(0x141)][_0x5ed2ab(0x11a)](_0x2b11db));}['shouldShareOperation'](_0x5dcfbf){const _0xe0909f=_0x21389e;return this[_0xe0909f(0x14b)][_0xe0909f(0x7e)](_0x5dcfbf);}[_0x21389e(0x152)](_0x368d59){const _0x361a13=_0x21389e;return Array[_0x361a13(0xfe)](this[_0x361a13(0x141)])[_0x361a13(0x92)](_0x51f610=>_0x51f610(_0x368d59));}};function _0x13e222(_0x316945,_0x580c9b){return function(_0x5501da,_0x2d4b8b){_0x580c9b(_0x5501da,_0x2d4b8b,_0x316945);};}function _0x3fc719(_0x20a2fa,_0x2f9924,_0x4b847e,_0x26058b){const _0xab739e=_0x21389e;var _0x5f181e=arguments[_0xab739e(0x8c)],_0x35d9e0=_0x5f181e<0x3?_0x2f9924:_0x26058b===null?_0x26058b=Object['getOwnPropertyDescriptor'](_0x2f9924,_0x4b847e):_0x26058b,_0x248902;if(typeof Reflect==_0xab739e(0xf8)&&typeof Reflect[_0xab739e(0xf5)]==_0xab739e(0x132))_0x35d9e0=Reflect[_0xab739e(0xf5)](_0x20a2fa,_0x2f9924,_0x4b847e,_0x26058b);else{for(var _0x221ca0=_0x20a2fa[_0xab739e(0x8c)]-0x1;_0x221ca0>=0x0;_0x221ca0--)(_0x248902=_0x20a2fa[_0x221ca0])&&(_0x35d9e0=(_0x5f181e<0x3?_0x248902(_0x35d9e0):_0x5f181e>0x3?_0x248902(_0x2f9924,_0x4b847e,_0x35d9e0):_0x248902(_0x2f9924,_0x4b847e))||_0x35d9e0);}return _0x5f181e>0x3&&_0x35d9e0&&Object[_0xab739e(0x93)](_0x2f9924,_0x4b847e,_0x35d9e0),_0x35d9e0;}let _0x5cd63a=class extends _0x5d0cde['RxDisposable']{constructor(_0x187333,_0x191029,_0x599a35){const _0xf6be0d=_0x21389e;super(),this[_0xf6be0d(0x12c)]=_0x187333,this['_injector']=_0x191029,this[_0xf6be0d(0x14e)]=_0x599a35,_0x527e54(this,_0xf6be0d(0xb7),new Map()),this[_0xf6be0d(0xf0)]();}async[_0x21389e(0xa7)](_0x1ce972){const _0x40c6cf=_0x21389e;return this['_entities'][_0x40c6cf(0x7e)](_0x1ce972)||await this[_0x40c6cf(0x129)](_0x1ce972),this['_entities']['get'](_0x1ce972);}[_0x21389e(0x107)](_0x312ca3){const _0x34bbc6=_0x21389e;var _0x36303c;return(_0x36303c=this[_0x34bbc6(0xb7)][_0x34bbc6(0x10a)](_0x312ca3))==null?null:_0x36303c;}[_0x21389e(0xf0)](){const _0x181924=_0x21389e;this[_0x181924(0x12c)][_0x181924(0xb0)](_0x5d0cde[_0x181924(0xe5)]['UNIVER_SHEET'])['pipe']((0x0,_0x4ebb2a[_0x181924(0x126)])(this[_0x181924(0xe8)]))[_0x181924(0x11f)](async _0x79d7c0=>{const _0x2f633d=_0x181924;let _0x551052=_0x79d7c0['unit'][_0x2f633d(0x121)]();this[_0x2f633d(0xb7)][_0x2f633d(0x7e)](_0x551052)||this[_0x2f633d(0x129)](_0x551052);}),this[_0x181924(0x12c)][_0x181924(0xa9)](_0x5d0cde[_0x181924(0xe5)]['UNIVER_SHEET'])['pipe']((0x0,_0x4ebb2a[_0x181924(0x126)])(this[_0x181924(0xe8)]))[_0x181924(0x11f)](_0x173644=>{const _0x37edf7=_0x181924;let _0x282d6b=_0x173644[_0x37edf7(0x121)](),_0x2af064=this['_entities'][_0x37edf7(0x10a)](_0x282d6b);_0x2af064==null||_0x2af064[_0x37edf7(0xfa)]();});}async['_startLiveShareCoordinator'](_0x205825){const _0x56e747=_0x21389e;let _0x435db6=await this[_0x56e747(0x14e)][_0x56e747(0x10d)](_0x205825),_0x406e05=this[_0x56e747(0xf3)][_0x56e747(0x87)](_0x1841b1,_0x205825,_0x435db6);return _0x406e05[_0x56e747(0x127)](),this[_0x56e747(0xb7)]['set'](_0x205825,_0x406e05),_0x406e05;}};_0x5cd63a=_0x3fc719([_0x13e222(0x0,_0x5d0cde[_0x21389e(0x162)]),_0x13e222(0x1,(0x0,_0x5d0cde['Inject'])(_0x5d0cde[_0x21389e(0x134)])),_0x13e222(0x2,(0x0,_0x5d0cde[_0x21389e(0xc4)])(_0x2d41d9[_0x21389e(0x8e)]))],_0x5cd63a);let _0x24d389=function(_0x2f5a1f){const _0x5ba050=_0x21389e;return _0x2f5a1f[_0x5ba050(0x13d)]=_0x5ba050(0x10b),_0x2f5a1f[_0x5ba050(0xc6)]=_0x5ba050(0xc2),_0x2f5a1f[_0x5ba050(0x11d)]=_0x5ba050(0x101),_0x2f5a1f[_0x5ba050(0x122)]=_0x5ba050(0x139),_0x2f5a1f[_0x5ba050(0x9c)]=_0x5ba050(0x89),_0x2f5a1f;}({}),_0x1841b1=class extends _0x5d0cde[_0x21389e(0x16e)]{get[_0x21389e(0x10f)](){const _0x14468b=_0x21389e;return this[_0x14468b(0x161)]['getValue']();}constructor(_0x48b2ae,_0x49db33,_0x546632,_0x1b0045,_0x35c814){const _0x505c6e=_0x21389e;super(),this[_0x505c6e(0xac)]=_0x48b2ae,this[_0x505c6e(0xb2)]=_0x49db33,this['_configService']=_0x546632,this[_0x505c6e(0x13c)]=_0x1b0045,this['_commandService']=_0x35c814,_0x527e54(this,_0x505c6e(0x161),new _0x418e8f[(_0x505c6e(0x118))]('idle')),_0x527e54(this,_0x505c6e(0x173),this['_status$'][_0x505c6e(0xb1)]()),_0x527e54(this,'_init',!0x1),_0x527e54(this,_0x505c6e(0x8b),null),_0x527e54(this,_0x505c6e(0x12d),null);}['dispose'](){const _0x29a96f=_0x21389e;var _0x127bd6;(_0x127bd6=this['_commandDisposable'])==null||_0x127bd6[_0x29a96f(0xfa)](),this[_0x29a96f(0x161)][_0x29a96f(0x11b)]('idle'),this[_0x29a96f(0x161)][_0x29a96f(0x16c)]();}[_0x21389e(0x9f)](){const _0x171dfc=_0x21389e;return this[_0x171dfc(0x10f)];}[_0x21389e(0x127)](){const _0x3546b0=_0x21389e;this[_0x3546b0(0xf0)]||(this['_init']=!0x0,this[_0x3546b0(0xb2)][_0x3546b0(0x175)][_0x3546b0(0xab)]((0x0,_0x4ebb2a[_0x3546b0(0x126)])(this['dispose$']))[_0x3546b0(0x11f)](_0x5b2da0=>{const _0x5c28f6=_0x3546b0;switch(_0x5b2da0){case _0x2d41d9[_0x5c28f6(0x14f)][_0x5c28f6(0x13d)]:this['_handleOffline']();break;case _0x2d41d9[_0x5c28f6(0x14f)][_0x5c28f6(0x96)]:this[_0x5c28f6(0xbf)]();break;default:}}),this['_collabSession'][_0x3546b0(0xf9)][_0x3546b0(0xab)]((0x0,_0x4ebb2a[_0x3546b0(0x126)])(this[_0x3546b0(0xe8)]))[_0x3546b0(0x11f)](_0x3c8067=>{const _0x4e8687=_0x3546b0;let {eventID:_0x2ac588}=_0x3c8067;switch(_0x2ac588){case _0x51961d['CollaborationEvent'][_0x4e8687(0xf2)]:this[_0x4e8687(0xc7)](_0x3c8067);break;case _0x51961d[_0x4e8687(0x13e)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x3c8067);break;case _0x51961d[_0x4e8687(0x13e)][_0x4e8687(0x167)]:this[_0x4e8687(0x102)]();break;case _0x51961d[_0x4e8687(0x13e)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3c8067);break;default:}}));}[_0x21389e(0xbd)](){const _0x3f55cc=_0x21389e;this[_0x3f55cc(0xb2)][_0x3f55cc(0xaf)]({'eventID':_0x51961d[_0x3f55cc(0x13e)][_0x3f55cc(0x14a)],'data':{'unitID':this['_unitID'],'userID':this[_0x3f55cc(0xb2)]['getMemberID']()}},this[_0x3f55cc(0xac)]);}[_0x21389e(0xff)](){const _0x62759c=_0x21389e;this['_status']===_0x62759c(0x89)&&(this['_status$'][_0x62759c(0x11b)](_0x62759c(0xc2)),this['_collabSession'][_0x62759c(0xaf)]({'eventID':_0x51961d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x62759c(0xac)]}},this[_0x62759c(0xac)]));}[_0x21389e(0xd9)](){const _0x2f31c5=_0x21389e;this[_0x2f31c5(0x10f)]===_0x2f31c5(0x139)&&(this[_0x2f31c5(0x161)][_0x2f31c5(0x11b)]('following'),this['_startFollowing']());}['stopFollowing'](){const _0x1e4c8e=_0x21389e;this[_0x1e4c8e(0x10f)]===_0x1e4c8e(0x101)&&this['_stopFollowing']();}['_handleNewHost'](_0x22d196){const _0xea7181=_0x21389e;let {presenter:_0x5774dd}=_0x22d196[_0xea7181(0x9d)],_0x13662a=this[_0xea7181(0xb2)]['getMemberID']();this[_0xea7181(0x12d)]=_0x5774dd,_0x5774dd===_0x13662a?(this[_0xea7181(0xe7)](),this['_startPresenting']()):this[_0xea7181(0x10f)]!=='not-following'&&(this[_0xea7181(0xc1)](),this[_0xea7181(0x149)]());}[_0x21389e(0xe4)](){const _0x3d2a7a=_0x21389e;let _0x5c00aa={'eventID':_0x51961d[_0x3d2a7a(0x13e)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x3d2a7a(0xb2)][_0x3d2a7a(0xaf)](_0x5c00aa,this[_0x3d2a7a(0xac)]);}['_handleTerminate'](){const _0x55473f=_0x21389e;this[_0x55473f(0x12d)]=null,this[_0x55473f(0x10f)]!==_0x55473f(0x89)&&this[_0x55473f(0x113)]();}['_handleNewChangeSets'](_0x3a3fd9){const _0x21a974=_0x21389e;if(this['_status']===_0x21a974(0x101)&&this['_presenter']===_0x3a3fd9[_0x21a974(0x9d)][_0x21a974(0x15b)]){let _0x1e86b2=(0x0,_0x51961d[_0x21a974(0xa1)])(_0x3a3fd9['data'])[_0x21a974(0x16d)][_0x21a974(0x110)]()[_0x21a974(0x7f)](_0x56b0bc=>_0x56b0bc['id']===_0x4e0523[_0x21a974(0x109)]['id']);if(_0x1e86b2){let _0x5b7800=_0x1e86b2[_0x21a974(0x11c)]['unitId'],_0x329e00=_0x1e86b2[_0x21a974(0x11c)][_0x21a974(0x130)]['id'];setTimeout(()=>{const _0xf5ad7f=_0x21a974;this[_0xf5ad7f(0x8d)]['executeCommand'](_0x4e0523[_0xf5ad7f(0x156)]['id'],{'unitId':_0x5b7800,'subUnitId':_0x329e00},{'fromCollab':!0x0});});}}}[_0x21389e(0x119)](){const _0x59f95a=_0x21389e;var _0x4f5606;(_0x4f5606=this['_commandDisposable'])==null||_0x4f5606[_0x59f95a(0xfa)](),this[_0x59f95a(0x161)][_0x59f95a(0x11b)](_0x59f95a(0x89));let _0x408a03=new Map(),_0x2fd0f4=this[_0x59f95a(0x8b)]=new _0x5d0cde[(_0x59f95a(0x100))]();_0x2fd0f4[_0x59f95a(0x13b)]((0x0,_0x5d0cde[_0x59f95a(0xb8)])(()=>{const _0x4dbc3e=_0x59f95a;_0x408a03[_0x4dbc3e(0x166)](({subject:_0x3bd7b2,subscription:_0x3b1aef})=>{const _0x30af03=_0x4dbc3e;_0x3b1aef[_0x30af03(0xd5)](),_0x3bd7b2[_0x30af03(0x16c)]();}),_0x408a03[_0x4dbc3e(0x157)]();})),_0x2fd0f4[_0x59f95a(0x13b)](this[_0x59f95a(0x8d)]['onCommandExecuted'](_0x166d6d=>{const _0x2fef15=_0x59f95a;if(_0x166d6d[_0x2fef15(0x86)]!==_0x5d0cde[_0x2fef15(0x133)][_0x2fef15(0x9e)]||!this['_liveShareService'][_0x2fef15(0xee)](_0x166d6d['id']))return;let {id:_0x4cb69e}=_0x166d6d,_0x218128;if(_0x408a03[_0x2fef15(0x7e)](_0x4cb69e))_0x218128=_0x408a03[_0x2fef15(0x10a)](_0x4cb69e)[_0x2fef15(0xea)];else{var _0x65635c;_0x218128=new _0x418e8f[(_0x2fef15(0x13a))]();let _0x151d7c=_0x218128[_0x2fef15(0xab)]((0x0,_0x4ebb2a[_0x2fef15(0xf7)])((_0x65635c=this[_0x2fef15(0xb6)][_0x2fef15(0xa3)](_0x2fef15(0xa6)))==null?0xc8:_0x65635c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2fef15(0x11f)](_0x2c8985=>{const _0x3cd2a7=_0x2fef15;this[_0x3cd2a7(0xb2)][_0x3cd2a7(0xaf)]({'eventID':_0x51961d[_0x3cd2a7(0x13e)][_0x3cd2a7(0x172)],'data':{'unitID':this[_0x3cd2a7(0xac)],'operations':{[_0x2c8985['id']]:{'id':_0x2c8985['id'],'params':JSON['stringify'](_0x2c8985['params'])}}}},this[_0x3cd2a7(0xac)]);});_0x408a03['set'](_0x4cb69e,{'subject':_0x218128,'subscription':_0x151d7c});}_0x218128['next'](_0x166d6d);})),this[_0x59f95a(0x13c)][_0x59f95a(0x152)](this[_0x59f95a(0xac)])['forEach'](_0x2b9998=>this[_0x59f95a(0xb2)]['send']({'eventID':_0x51961d['CollaborationEvent'][_0x59f95a(0x172)],'data':{'unitID':this[_0x59f95a(0xac)],'operations':{[_0x2b9998['id']]:{'id':_0x2b9998['id'],'params':JSON[_0x59f95a(0x15c)](_0x2b9998[_0x59f95a(0x11c)])}}}},this[_0x59f95a(0xac)]));}[_0x21389e(0xc1)](){const _0x497672=_0x21389e;var _0x1e7b9d;this[_0x497672(0x161)]['next']('idle'),(_0x1e7b9d=this[_0x497672(0x8b)])==null||_0x1e7b9d[_0x497672(0xfa)](),this[_0x497672(0x8b)]=null;}['_startFollowing'](){const _0x1ff247=_0x21389e;var _0xfa3689;(_0xfa3689=this[_0x1ff247(0x8b)])==null||_0xfa3689['dispose'](),this[_0x1ff247(0x161)][_0x1ff247(0x11b)]('following');}[_0x21389e(0x113)](){const _0x521651=_0x21389e;var _0x35c140;this['_status$']['next'](_0x521651(0xc2)),(_0x35c140=this[_0x521651(0x8b)])==null||_0x35c140['dispose'](),this[_0x521651(0x8b)]=null;}[_0x21389e(0xe7)](){const _0x1db87d=_0x21389e;var _0x10ec28;this[_0x1db87d(0x161)]['next'](_0x1db87d(0x139)),(_0x10ec28=this['_commandDisposable'])==null||_0x10ec28[_0x1db87d(0xfa)]();}[_0x21389e(0xc3)](_0x32ea83){const _0x5495de=_0x21389e;if([_0x5495de(0x89),_0x5495de(0x139),'offline'][_0x5495de(0x84)](this['_status'])||!_0x32ea83[_0x5495de(0x9d)]['presenter']||_0x32ea83['data'][_0x5495de(0x88)]===this[_0x5495de(0xb2)][_0x5495de(0x90)]())return;this[_0x5495de(0x10f)]===_0x5495de(0xc2)&&this[_0x5495de(0x149)]();let _0x487206=_0x32ea83[_0x5495de(0x9d)][_0x5495de(0xc0)];Object[_0x5495de(0x112)](_0x487206)[_0x5495de(0x166)](_0x1fc1ad=>{const _0x110d29=_0x5495de;this['_commandService'][_0x110d29(0xc9)](_0x1fc1ad['id'],_0x1fc1ad[_0x110d29(0x11c)]?JSON[_0x110d29(0x103)](_0x1fc1ad[_0x110d29(0x11c)]):null,{'fromCollab':!0x0});});}[_0x21389e(0x170)](){const _0x3db8c2=_0x21389e;var _0x1868d8;this[_0x3db8c2(0x161)][_0x3db8c2(0x11b)](_0x3db8c2(0x10b)),(_0x1868d8=this[_0x3db8c2(0x8b)])==null||_0x1868d8[_0x3db8c2(0xfa)]();}[_0x21389e(0xbf)](){const _0x35fe07=_0x21389e;this['_status$'][_0x35fe07(0x11b)]('idle'),this[_0x35fe07(0xe4)]();}};_0x1841b1=_0x3fc719([_0x13e222(0x2,_0x5d0cde['IConfigService']),_0x13e222(0x3,(0x0,_0x5d0cde[_0x21389e(0xc4)])(_0x2e5c0f)),_0x13e222(0x4,_0x5d0cde[_0x21389e(0xdb)])],_0x1841b1);function _0x4d1733(){const _0x30a7b0=_0x21389e;let _0x7ba00=(0x0,_0x2d834b[_0x30a7b0(0x111)])(_0x5cd63a),_0x5f23f4=(0x0,_0x2d834b[_0x30a7b0(0x111)])(_0x5d0cde[_0x30a7b0(0x162)]),_0x3daccd=(0x0,_0x2d834b[_0x30a7b0(0xe2)])(()=>_0x5f23f4['getCurrentTypeOfUnit$'](_0x5d0cde[_0x30a7b0(0xe5)][_0x30a7b0(0x16a)]),void 0x0,!0x1,[]),[_0x5b264d,_0x23a044]=(0x0,_0x168f88['useState'])(null),[_0x375c85,_0x2e982f]=(0x0,_0x168f88[_0x30a7b0(0x99)])(_0x30a7b0(0xc2)),_0x33f825=(0x0,_0x168f88[_0x30a7b0(0xad)])(null);return(0x0,_0x168f88['useEffect'])(()=>(_0x3daccd&&_0x7ba00[_0x30a7b0(0xa7)](_0x3daccd[_0x30a7b0(0x121)]())['then'](_0x16ca8d=>{const _0x1e3c50=_0x30a7b0;_0x23a044(_0x16ca8d),_0x33f825['current']=_0x16ca8d[_0x1e3c50(0x173)][_0x1e3c50(0x11f)](_0xa3f613=>{_0x2e982f(_0xa3f613);});}),()=>{const _0x97b8b5=_0x30a7b0;var _0x5e6fa0;(_0x5e6fa0=_0x33f825[_0x97b8b5(0x158)])==null||_0x5e6fa0['unsubscribe'](),_0x33f825['current']=null;}),[_0x3daccd,_0x7ba00]),_0x5b264d?(0x0,_0x38b09a[_0x30a7b0(0xe0)])(_0x28b9d4['Dropdown'],{'align':_0x30a7b0(0xda),'disabled':_0x375c85===_0x30a7b0(0x10b),'className':_0x30a7b0(0xa0),'overlay':(0x0,_0x38b09a[_0x30a7b0(0xe0)])(_0x312fb2,{'status':_0x375c85,'coordinator':_0x5b264d}),'children':(0x0,_0x38b09a[_0x30a7b0(0xe0)])(_0x30a7b0(0x91),{'className':(0x0,_0x28b9d4[_0x30a7b0(0xdf)])(_0x30a7b0(0xed),{'univer-cursor-not-allowed':_0x375c85===_0x30a7b0(0x10b),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x375c85!==_0x30a7b0(0x10b)}),'type':_0x30a7b0(0x91),'children':(0x0,_0x38b09a[_0x30a7b0(0xe0)])(_0x28fca2,{'className':_0x30a7b0(0x135)})})}):null;}function _0x312fb2(_0x2a143b){const _0x5c6bf8=_0x21389e;let {status:_0x475e20,coordinator:_0x2998e2}=_0x2a143b;switch(_0x475e20){case _0x5c6bf8(0xc2):return(0x0,_0x38b09a[_0x5c6bf8(0xe0)])(_0x28db49,{'coordinator':_0x2998e2});case'following':return(0x0,_0x38b09a[_0x5c6bf8(0xe0)])(_0x3f13a9,{'coordinator':_0x2998e2});case _0x5c6bf8(0x139):return(0x0,_0x38b09a['jsx'])(_0xd0bf7,{'coordinator':_0x2998e2});case _0x5c6bf8(0x10b):return(0x0,_0x38b09a['jsx'])(_0x1d8caf,{});case _0x5c6bf8(0x89):return(0x0,_0x38b09a[_0x5c6bf8(0xe0)])(_0x1457dd,{'coordinator':_0x2998e2});default:return null;}}function _0x28db49(_0x1e9820){const _0x122b7f=_0x21389e;let {coordinator:_0x5c02b9}=_0x1e9820;return(0x0,_0x38b09a[_0x122b7f(0x131)])(_0x38b09a['Fragment'],{'children':[(0x0,_0x38b09a[_0x122b7f(0xe0)])(_0x122b7f(0x11e),{'className':_0x122b7f(0xe9),'children':'Present\x20this\x20document'}),(0x0,_0x38b09a[_0x122b7f(0xe0)])(_0x28b9d4[_0x122b7f(0x128)],{'onClick':()=>_0x5c02b9['tryStartPresenting'](),'children':_0x122b7f(0x9b)})]});}function _0x3f13a9(_0x138cd1){const _0x423d95=_0x21389e;let {coordinator:_0x2408c0}=_0x138cd1;return(0x0,_0x38b09a['jsxs'])(_0x38b09a[_0x423d95(0x8f)],{'children':[(0x0,_0x38b09a[_0x423d95(0xe0)])(_0x423d95(0x11e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x423d95(0x16b)}),(0x0,_0x38b09a['jsx'])(_0x28b9d4[_0x423d95(0x128)],{'onClick':()=>_0x2408c0[_0x423d95(0xeb)](),'children':_0x423d95(0x163)})]});}function _0xd0bf7(_0x623ace){const _0x301408=_0x21389e;let {coordinator:_0x5e80d0}=_0x623ace;return(0x0,_0x38b09a['jsxs'])(_0x38b09a[_0x301408(0x8f)],{'children':[(0x0,_0x38b09a[_0x301408(0xe0)])('div',{'className':_0x301408(0xe9),'children':_0x301408(0x14c)}),(0x0,_0x38b09a['jsx'])(_0x28b9d4['Button'],{'variant':_0x301408(0x171),'onClick':()=>_0x5e80d0[_0x301408(0xd9)](),'children':_0x301408(0x164)})]});}function _0x1457dd(_0x1d5da0){const _0x10390a=_0x21389e;let {coordinator:_0x56229f}=_0x1d5da0;return(0x0,_0x38b09a[_0x10390a(0x131)])(_0x38b09a[_0x10390a(0x8f)],{'children':[(0x0,_0x38b09a[_0x10390a(0xe0)])(_0x10390a(0x11e),{'className':_0x10390a(0xe9),'children':_0x10390a(0xe3)}),(0x0,_0x38b09a[_0x10390a(0xe0)])(_0x28b9d4[_0x10390a(0x128)],{'variant':_0x10390a(0xd1),'onClick':()=>_0x56229f[_0x10390a(0xff)](),'children':'Stop\x20presenting'})]});}function _0x1d8caf(){const _0x45f9d2=_0x21389e;return(0x0,_0x38b09a[_0x45f9d2(0xe0)])(_0x38b09a['Fragment'],{'children':_0x45f9d2(0x120)});}let _0x3a9a8f=class extends _0x5d0cde[_0x21389e(0xf4)]{constructor(_0x29dd51,_0x5bda41){const _0x13527d=_0x21389e;super(),this[_0x13527d(0xf3)]=_0x29dd51,this[_0x13527d(0xe6)]=_0x5bda41,this['_mountLiveShare']();}[_0x21389e(0x97)](){const _0x503e6a=_0x21389e;this['disposeWithMe'](this[_0x503e6a(0xe6)][_0x503e6a(0x15e)](_0x2d834b[_0x503e6a(0x104)]['HEADER_MENU'],()=>(0x0,_0x2d834b['connectInjector'])(_0x4d1733,this[_0x503e6a(0xf3)])));}};_0x3a9a8f=_0x3fc719([_0x13e222(0x0,(0x0,_0x5d0cde[_0x21389e(0xc4)])(_0x5d0cde[_0x21389e(0x134)])),_0x13e222(0x1,_0x2d834b[_0x21389e(0x81)])],_0x3a9a8f);var _0x24e7a3=_0x21389e(0xa8),_0x3231a4=_0x21389e(0xdc);let _0x211232={},_0x5fc1b=class extends _0x5d0cde[_0x21389e(0xf4)]{constructor(_0x97a05b){const _0x337823=_0x21389e;super(),this[_0x337823(0x13c)]=_0x97a05b,this[_0x337823(0xf0)]();}[_0x21389e(0xf0)](){const _0x2b6d43=_0x21389e;[_0x522b82[_0x2b6d43(0x138)]['id'],_0x522b82[_0x2b6d43(0x115)]['id'],_0x4e0523[_0x2b6d43(0x156)]['id']]['forEach'](_0x34497c=>{const _0x2ab33b=_0x2b6d43;this[_0x2ab33b(0xb9)](this[_0x2ab33b(0x13c)][_0x2ab33b(0xcf)](_0x34497c));});}};_0x5fc1b=_0x3fc719([_0x13e222(0x0,(0x0,_0x5d0cde[_0x21389e(0xc4)])(_0x2e5c0f))],_0x5fc1b);let _0x3fd576=class extends _0x5d0cde['Plugin']{constructor(_0x24d2a8=_0x211232,_0x494b6e,_0x4c6d6d){const _0x5431ac=_0x21389e;super(),this[_0x5431ac(0x151)]=_0x24d2a8,this[_0x5431ac(0xf3)]=_0x494b6e,this[_0x5431ac(0xb6)]=_0x4c6d6d;let {..._0x2d7437}=(0x0,_0x5d0cde['merge'])({},_0x211232,this[_0x5431ac(0x151)]);this[_0x5431ac(0xb6)][_0x5431ac(0x82)]('live-share.config',_0x2d7437);}[_0x21389e(0x140)](){const _0x155484=_0x21389e;(0x0,_0x5d0cde['registerDependencies'])(this['_injector'],(0x0,_0x5d0cde[_0x155484(0x10c)])([[_0x2e5c0f],[_0x5cd63a],[_0x5fc1b],[_0x3a9a8f]],this[_0x155484(0x151)][_0x155484(0xb3)])),(0x0,_0x5d0cde[_0x155484(0x125)])(this[_0x155484(0xf3)],[[_0x5fc1b]]);}[_0x21389e(0x12f)](){const _0x42d5bc=_0x21389e;(0x0,_0x5d0cde['touchDependencies'])(this[_0x42d5bc(0xf3)],[[_0x3a9a8f]]);}};_0x527e54(_0x3fd576,_0x21389e(0x86),_0x5d0cde[_0x21389e(0xe5)][_0x21389e(0xa5)]),_0x527e54(_0x3fd576,'pluginName',_0x21389e(0xdd)),_0x527e54(_0x3fd576,_0x21389e(0x16f),_0x24e7a3),_0x527e54(_0x3fd576,'version',_0x3231a4),_0x3fd576=_0x3fc719([(0x0,_0x5d0cde[_0x21389e(0xd3)])(_0x2d41d9[_0x21389e(0xf1)]),_0x13e222(0x1,(0x0,_0x5d0cde[_0x21389e(0xc4)])(_0x5d0cde[_0x21389e(0x134)])),_0x13e222(0x2,_0x5d0cde[_0x21389e(0xec)])],_0x3fd576),Object[_0x21389e(0x93)](_0x267332,'DesktopLiveShareController',{'enumerable':!0x0,'get':function(){return _0x3a9a8f;}}),_0x267332[_0x21389e(0x165)]=_0x4d1733,Object[_0x21389e(0x93)](_0x267332,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x5cd63a;}}),Object[_0x21389e(0x93)](_0x267332,_0x21389e(0xcd),{'enumerable':!0x0,'get':function(){return _0x1841b1;}}),_0x267332['LiveShareService']=_0x2e5c0f,_0x267332['LiveShareStatus']=_0x24d389,Object[_0x21389e(0x93)](_0x267332,_0x21389e(0xc5),{'enumerable':!0x0,'get':function(){return _0x3fd576;}});}));function _0xb4a8(){const _0x496fd0=['mask','registerSharedOperation','amd','default','attrs','DependentOn','react/jsx-runtime','unsubscribe','9665DKDMkw','@univerjs-pro/collaboration','UniverSheetsUi','startFollowing','end','ICommandService','0.25.1','UNIVER_LIVE_SHARE_PLUGIN','trim','clsx','jsx','univerjs-icon\x20univerjs-icon-','useObservable','You\x27re\x20presenting\x20the\x20document','_fetchOperations','UniverInstanceType','_uiPartsService','_stopFollowing','dispose$','univer-mb-3\x20univer-w-full\x20univer-text-sm','subject','stopFollowing','IConfigService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','shouldShareOperation','51860tNeQBh','_init','UniverCollaborationClientPlugin','LIVESHARE_NEW_HOST','_injector','Disposable','decorate','UniverProCollaboration','throttleTime','object','event$','dispose','exports','React','@univerjs/ui','from','stopPresenting','DisposableCollection','following','_handleTerminate','parse','BuiltInUIPart','replace','react','getLiveShareCoordinatorSync','http://www.w3.org/2000/svg','InsertSheetMutation','get','offline','mergeOverrideWithDependencies','requireSession','evenodd','_status','reverse','useDependency','values','_beIdle','3594EOqYFO','SetScrollOperation','defIds','UniverCore','BehaviorSubject','_startPresenting','delete','next','params','FOLLOWING','div','subscribe','You\x27are\x20offline.','getUnitId','NOT_FOLLOWING','UniverProCollaborationClient','@univerjs/sheets-ui','touchDependencies','takeUntil','init','Button','_startLiveShareCoordinator','live-share-icon','UniverDesign','_univerInstanceService','_presenter','UniverUi','onRendered','sheet','jsxs','function','CommandType','Injector','univer-size-4','entries','1368pRsgTz','SetZoomRatioOperation','not-following','Subject','add','_liveShareService','OFFLINE','CollaborationEvent','createElement','onStarting','_reporters','xlink:href','string','displayName','1em','currentColor','defs','381MydBdI','_startFollowing','LIVESHARE_REQUEST_HOST','_sharedOperations','You\x27re\x20not\x20following\x20the\x20presenter','registerInitialStateReporter','_collabSessionService','SessionStatus','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','_config','getInitialStates','7171353gqeHBo','call','use','SetWorksheetActiveOperation','clear','current','182VypVIx','colorChannel1','memberID','stringify','7007XLvNmS','registerComponent','fill','LiveShareIcon','_status$','IUniverInstanceService','Stop\x20following','Start\x20following','LiveShare','forEach','LIVESHARE_TERMINATE','idSuffix','@univerjs/design','UNIVER_SHEET','You\x27re\x20following\x20the\x20presenter','complete','mutations','RxDisposable','packageName','_handleOffline','text','LIVESHARE_OPERATION','status$','children','sessionStatus$','has','find','symbol','IUIPartsService','setConfig','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','includes','none','type','createInstance','presenter','presenting','UniverSheets','_commandDisposable','length','_commandService','CollaborationSessionService','Fragment','getMemberID','button','map','defineProperty','url(#$1','path','ONLINE','_mountLiveShare','@univerjs/core','useState','Module','Start','PRESENTING','data','OPERATION','getStatus','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','parseProtocolChangeset','@univerjs-pro/collaboration-client','getConfig','constructor','UNIVER_UNKNOWN','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','@univerjs-pro/live-share','getTypeOfUnitDisposed$','58096LDSUgR','pipe','_unitID','useRef','3217014ESYVlR','send','getTypeOfUnitAdded$','asObservable','_collabSession','override','toPrimitive','iterator','_configService','_entities','toDisposable','disposeWithMe','svg','rxjs','UniverIcon','tryStartPresenting','@univerjs/sheets','_handleOnline','operations','_stopPresenting','idle','_handleOperation','Inject','UniverLiveSharePlugin','IDLE','_handleNewHost','operators','executeCommand','4012854WBGIwL','rxjs/operators','tag','LiveShareCoordinator'];_0xb4a8=function(){return _0x496fd0;};return _0xb4a8();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Live share collaboration plugin for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -63,13 +63,13 @@
|
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@univerjs/icons": "1.4.0",
|
|
66
|
-
"@univerjs-pro/collaboration": "0.25.
|
|
67
|
-
"@univerjs-pro/collaboration-client": "0.25.
|
|
68
|
-
"@univerjs/
|
|
69
|
-
"@univerjs/
|
|
70
|
-
"@univerjs/sheets": "0.25.
|
|
71
|
-
"@univerjs/sheets-ui": "0.25.
|
|
72
|
-
"@univerjs/ui": "0.25.
|
|
66
|
+
"@univerjs-pro/collaboration": "0.25.1",
|
|
67
|
+
"@univerjs-pro/collaboration-client": "0.25.1",
|
|
68
|
+
"@univerjs/design": "0.25.1",
|
|
69
|
+
"@univerjs/core": "0.25.1",
|
|
70
|
+
"@univerjs/sheets": "0.25.1",
|
|
71
|
+
"@univerjs/sheets-ui": "0.25.1",
|
|
72
|
+
"@univerjs/ui": "0.25.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"postcss": "^8.5.14",
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"tailwindcss": "^3.4.17",
|
|
79
79
|
"typescript": "^6.0.3",
|
|
80
80
|
"vitest": "^4.1.6",
|
|
81
|
-
"@univerjs/protocol": "0.25.
|
|
82
|
-
"@univerjs-infra/shared": "0.25.
|
|
81
|
+
"@univerjs/protocol": "0.25.1",
|
|
82
|
+
"@univerjs-infra/shared": "0.25.1"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
85
|
"test": "vitest run",
|