@univerjs-pro/live-share 0.25.0 → 1.0.0-alpha.0

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