@univerjs-pro/live-share 0.17.0 → 0.18.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
- 'use strict';const _0x1203f7=_0x3fd1;(function(_0x34f851,_0x3fa518){const _0x5bedcd=_0x3fd1,_0x219109=_0x34f851();while(!![]){try{const _0x598a6c=-parseInt(_0x5bedcd(0xff))/0x1*(parseInt(_0x5bedcd(0x104))/0x2)+parseInt(_0x5bedcd(0xf7))/0x3+-parseInt(_0x5bedcd(0xfb))/0x4+parseInt(_0x5bedcd(0xf8))/0x5+parseInt(_0x5bedcd(0xed))/0x6*(-parseInt(_0x5bedcd(0x101))/0x7)+-parseInt(_0x5bedcd(0xfc))/0x8+parseInt(_0x5bedcd(0x100))/0x9;if(_0x598a6c===_0x3fa518)break;else _0x219109['push'](_0x219109['shift']());}catch(_0x46442a){_0x219109['push'](_0x219109['shift']());}}}(_0x5d2d,0x59a7f));function _0x5d2d(){const _0x584ca9=['extend','getLiveShareCoordinatorSync','1mwStYt','15421545emtlnZ','4623038LTzLfq','getCurrentUnitOfType','startFollowing','1028644xnfJkl','LiveShareStatusEnum','stopFollowing','IDLE','_injector','_liveShareController','getUnitId','FUniver','_initialize','6riNQBj','UniverInstanceType','No\x20active\x20workbook\x20found.','get','symbol','LiveShareStatus','FEnum','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','IUniverInstanceService','stopPresenting','33870yWehgp','1732960XhNDii','UNIVER_SHEET','defineProperty','1209940eneZSt','1815320mSOajB'];_0x5d2d=function(){return _0x584ca9;};return _0x5d2d();}var h=Object[_0x1203f7(0xfa)],u=(_0x42435b,_0x417138,_0x2e11fc)=>_0x417138 in _0x42435b?h(_0x42435b,_0x417138,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e11fc}):_0x42435b[_0x417138]=_0x2e11fc,S=(_0x58fadb,_0x4ba641,_0x47c10b)=>u(_0x58fadb,typeof _0x4ba641!=_0x1203f7(0xf1)?_0x4ba641+'':_0x4ba641,_0x47c10b);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');class I extends c[_0x1203f7(0x10b)]{constructor(){const _0x693b63=_0x1203f7;super(...arguments),S(this,_0x693b63(0x109));}[_0x1203f7(0xec)](_0x506459){const _0x590d83=_0x1203f7;this['_liveShareController']=_0x506459[_0x590d83(0xf0)](s['LiveShareController']);}['getLiveShareStatus'](){const _0x48105=_0x1203f7;var _0xc8d150;const _0x3483bb=this[_0x48105(0x108)][_0x48105(0xf0)](n[_0x48105(0xf5)])[_0x48105(0x102)](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x3483bb)throw new Error(_0x48105(0xef));const _0x49b384=_0x3483bb[_0x48105(0x10a)](),_0xaba124=this['_liveShareController'][_0x48105(0xfe)](_0x49b384);return(_0xc8d150=_0xaba124==null?void 0x0:_0xaba124['getStatus']())!=null?_0xc8d150:s[_0x48105(0xf2)][_0x48105(0x107)];}[_0x1203f7(0x103)](){const _0x1d740d=_0x1203f7,_0x47ff6e=this[_0x1d740d(0x108)]['get'](n[_0x1d740d(0xf5)])[_0x1d740d(0x102)](n[_0x1d740d(0xee)][_0x1d740d(0xf9)]);if(!_0x47ff6e)throw new Error('No\x20active\x20workbook\x20found.');const _0xe0702a=_0x47ff6e['getUnitId'](),_0x198b1e=this[_0x1d740d(0x109)][_0x1d740d(0xfe)](_0xe0702a);if(!_0x198b1e)throw new Error(_0x1d740d(0xf4));_0x198b1e[_0x1d740d(0x103)]();}[_0x1203f7(0x106)](){const _0x2b7308=_0x1203f7,_0x36e6a6=this['_injector'][_0x2b7308(0xf0)](n[_0x2b7308(0xf5)])['getCurrentUnitOfType'](n[_0x2b7308(0xee)][_0x2b7308(0xf9)]);if(!_0x36e6a6)throw new Error(_0x2b7308(0xef));const _0x401231=_0x36e6a6[_0x2b7308(0x10a)](),_0xf3ace1=this[_0x2b7308(0x109)][_0x2b7308(0xfe)](_0x401231);if(!_0xf3ace1)throw new Error(_0x2b7308(0xf4));_0xf3ace1['stopFollowing']();}['startPresenting'](){const _0x481faf=_0x1203f7,_0x426b0d=this['_injector'][_0x481faf(0xf0)](n['IUniverInstanceService'])[_0x481faf(0x102)](n[_0x481faf(0xee)][_0x481faf(0xf9)]);if(!_0x426b0d)throw new Error(_0x481faf(0xef));const _0x4228d2=_0x426b0d[_0x481faf(0x10a)](),_0x441bc2=this[_0x481faf(0x109)][_0x481faf(0xfe)](_0x4228d2);if(!_0x441bc2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x441bc2['tryStartPresenting']();}[_0x1203f7(0xf6)](){const _0x5e21b4=_0x1203f7,_0x4f63b4=this[_0x5e21b4(0x108)]['get'](n[_0x5e21b4(0xf5)])[_0x5e21b4(0x102)](n[_0x5e21b4(0xee)]['UNIVER_SHEET']);if(!_0x4f63b4)throw new Error(_0x5e21b4(0xef));const _0x5024f5=_0x4f63b4[_0x5e21b4(0x10a)](),_0x313a09=this[_0x5e21b4(0x109)][_0x5e21b4(0xfe)](_0x5024f5);if(!_0x313a09)throw new Error(_0x5e21b4(0xf4));_0x313a09[_0x5e21b4(0xf6)]();}}c[_0x1203f7(0x10b)][_0x1203f7(0xfd)](I);function _0x3fd1(_0x42da39,_0x2ab1d4){_0x42da39=_0x42da39-0xec;const _0x5d2d1e=_0x5d2d();let _0x3fd15e=_0x5d2d1e[_0x42da39];return _0x3fd15e;}class l extends c[_0x1203f7(0xf3)]{get[_0x1203f7(0x105)](){const _0x44dab7=_0x1203f7;return s[_0x44dab7(0xf2)];}}c[_0x1203f7(0xf3)][_0x1203f7(0xfd)](l);
1
+ const _0x1e494e=_0x2829;(function(_0x26cb3b,_0x337ce2){const _0x55be3b=_0x2829,_0x593434=_0x26cb3b();while(!![]){try{const _0x5a9ffe=parseInt(_0x55be3b(0x176))/0x1+parseInt(_0x55be3b(0x16a))/0x2*(parseInt(_0x55be3b(0x155))/0x3)+parseInt(_0x55be3b(0x164))/0x4+parseInt(_0x55be3b(0x16f))/0x5*(-parseInt(_0x55be3b(0x162))/0x6)+parseInt(_0x55be3b(0x17d))/0x7+parseInt(_0x55be3b(0x167))/0x8+-parseInt(_0x55be3b(0x165))/0x9*(parseInt(_0x55be3b(0x160))/0xa);if(_0x5a9ffe===_0x337ce2)break;else _0x593434['push'](_0x593434['shift']());}catch(_0x1ed2f0){_0x593434['push'](_0x593434['shift']());}}}(_0x3916,0xabbb6));let e=require(`@univerjs-pro/live-share`),t=require(`@univerjs/core`),n=require(`@univerjs/core/facade`);function r(_0x2ca436){'@babel/helpers - typeof';const _0x247661=_0x2829;return r=typeof Symbol=='function'&&typeof Symbol[_0x247661(0x177)]==_0x247661(0x169)?function(_0x47a67d){return typeof _0x47a67d;}:function(_0x1750b5){const _0x5e9319=_0x247661;return _0x1750b5&&typeof Symbol==_0x5e9319(0x17b)&&_0x1750b5[_0x5e9319(0x157)]===Symbol&&_0x1750b5!==Symbol[_0x5e9319(0x17c)]?_0x5e9319(0x169):typeof _0x1750b5;},r(_0x2ca436);}function i(_0x16df09,_0x4b2883){const _0x34a826=_0x2829;if(r(_0x16df09)!=_0x34a826(0x170)||!_0x16df09)return _0x16df09;var _0x24bb8a=_0x16df09[Symbol['toPrimitive']];if(_0x24bb8a!==void 0x0){var _0x55a11b=_0x24bb8a['call'](_0x16df09,_0x4b2883||'default');if(r(_0x55a11b)!='object')return _0x55a11b;throw TypeError(_0x34a826(0x15f));}return(_0x4b2883==='string'?String:Number)(_0x16df09);}function a(_0x2f74d4){const _0x28f30d=_0x2829;var _0x35d2d1=i(_0x2f74d4,_0x28f30d(0x15a));return r(_0x35d2d1)==_0x28f30d(0x169)?_0x35d2d1:_0x35d2d1+'';}function o(_0x335c0a,_0x81d1f5,_0x4ec9df){const _0x4feb5a=_0x2829;return(_0x81d1f5=a(_0x81d1f5))in _0x335c0a?Object[_0x4feb5a(0x168)](_0x335c0a,_0x81d1f5,{'value':_0x4ec9df,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x335c0a[_0x81d1f5]=_0x4ec9df,_0x335c0a;}var s=class extends n['FUniver']{constructor(..._0x29eaf9){const _0x3dfef7=_0x2829;super(..._0x29eaf9),o(this,_0x3dfef7(0x179),void 0x0);}[_0x1e494e(0x174)](_0x152b6e){const _0x9342c2=_0x1e494e;this['_liveShareController']=_0x152b6e['get'](e[_0x9342c2(0x16b)]);}[_0x1e494e(0x172)](){const _0x3fa2ff=_0x1e494e;var _0x35ad03;let _0x2831dd=this[_0x3fa2ff(0x163)][_0x3fa2ff(0x16c)](t[_0x3fa2ff(0x15d)])[_0x3fa2ff(0x175)](t['UniverInstanceType'][_0x3fa2ff(0x15c)]);if(!_0x2831dd)throw Error('No\x20active\x20workbook\x20found.');let _0x79fd54=_0x2831dd[_0x3fa2ff(0x171)](),_0x35abb1=this[_0x3fa2ff(0x179)][_0x3fa2ff(0x156)](_0x79fd54);return(_0x35ad03=_0x35abb1==null?void 0x0:_0x35abb1[_0x3fa2ff(0x16e)]())==null?e[_0x3fa2ff(0x158)][_0x3fa2ff(0x161)]:_0x35ad03;}[_0x1e494e(0x16d)](){const _0x342a8c=_0x1e494e;let _0x5281a6=this[_0x342a8c(0x163)]['get'](t['IUniverInstanceService'])[_0x342a8c(0x175)](t[_0x342a8c(0x15e)][_0x342a8c(0x15c)]);if(!_0x5281a6)throw Error(_0x342a8c(0x178));let _0x16c18e=_0x5281a6[_0x342a8c(0x171)](),_0x1758c7=this['_liveShareController'][_0x342a8c(0x156)](_0x16c18e);if(!_0x1758c7)throw Error(_0x342a8c(0x166));_0x1758c7[_0x342a8c(0x16d)]();}[_0x1e494e(0x15b)](){const _0x921076=_0x1e494e;let _0x2ef212=this[_0x921076(0x163)]['get'](t[_0x921076(0x15d)])[_0x921076(0x175)](t['UniverInstanceType'][_0x921076(0x15c)]);if(!_0x2ef212)throw Error(_0x921076(0x178));let _0x4bc0f7=_0x2ef212[_0x921076(0x171)](),_0x407cca=this[_0x921076(0x179)][_0x921076(0x156)](_0x4bc0f7);if(!_0x407cca)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x407cca[_0x921076(0x15b)]();}[_0x1e494e(0x173)](){const _0x4e9eb9=_0x1e494e;let _0x598d56=this[_0x4e9eb9(0x163)]['get'](t[_0x4e9eb9(0x15d)])[_0x4e9eb9(0x175)](t[_0x4e9eb9(0x15e)]['UNIVER_SHEET']);if(!_0x598d56)throw Error(_0x4e9eb9(0x178));let _0x15ee7d=_0x598d56[_0x4e9eb9(0x171)](),_0x29db01=this[_0x4e9eb9(0x179)]['getLiveShareCoordinatorSync'](_0x15ee7d);if(!_0x29db01)throw Error(_0x4e9eb9(0x166));_0x29db01[_0x4e9eb9(0x17a)]();}['stopPresenting'](){const _0x429df0=_0x1e494e;let _0x2ea401=this[_0x429df0(0x163)][_0x429df0(0x16c)](t[_0x429df0(0x15d)])[_0x429df0(0x175)](t[_0x429df0(0x15e)][_0x429df0(0x15c)]);if(!_0x2ea401)throw Error(_0x429df0(0x178));let _0x88cfe=_0x2ea401[_0x429df0(0x171)](),_0x55bcc8=this[_0x429df0(0x179)][_0x429df0(0x156)](_0x88cfe);if(!_0x55bcc8)throw Error(_0x429df0(0x166));_0x55bcc8['stopPresenting']();}};n['FUniver'][_0x1e494e(0x17e)](s);var c=class extends n[_0x1e494e(0x159)]{get['LiveShareStatusEnum'](){const _0x936474=_0x1e494e;return e[_0x936474(0x158)];}};function _0x2829(_0x1899fa,_0x3b5f5a){_0x1899fa=_0x1899fa-0x155;const _0x391612=_0x3916();let _0x282916=_0x391612[_0x1899fa];return _0x282916;}function _0x3916(){const _0xe0997d=['getUnitId','getLiveShareStatus','startPresenting','_initialize','getCurrentUnitOfType','35419GvpXXp','iterator','No\x20active\x20workbook\x20found.','_liveShareController','tryStartPresenting','function','prototype','9041907QJEjza','extend','12sybvaE','getLiveShareCoordinatorSync','constructor','LiveShareStatus','FEnum','string','stopFollowing','UNIVER_SHEET','IUniverInstanceService','UniverInstanceType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','9826360lwdvQN','IDLE','43338cvniZf','_injector','2223904WCkBYF','9ZhdXtX','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','8350544hMbEak','defineProperty','symbol','746DHPeUr','LiveShareController','get','startFollowing','getStatus','860CPGaJS','object'];_0x3916=function(){return _0xe0997d;};return _0x3916();}n[_0x1e494e(0x159)][_0x1e494e(0x17e)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x327a41=_0x1840;(function(_0x5bc3b6,_0x46c57f){const _0x3d21d6=_0x1840,_0x578b5f=_0x5bc3b6();while(!![]){try{const _0x4aa32d=-parseInt(_0x3d21d6(0x116))/0x1*(parseInt(_0x3d21d6(0x143))/0x2)+parseInt(_0x3d21d6(0x172))/0x3*(parseInt(_0x3d21d6(0x14e))/0x4)+parseInt(_0x3d21d6(0xbc))/0x5*(-parseInt(_0x3d21d6(0x164))/0x6)+parseInt(_0x3d21d6(0xbe))/0x7*(-parseInt(_0x3d21d6(0x136))/0x8)+parseInt(_0x3d21d6(0x130))/0x9*(-parseInt(_0x3d21d6(0xc5))/0xa)+-parseInt(_0x3d21d6(0x122))/0xb*(parseInt(_0x3d21d6(0x102))/0xc)+-parseInt(_0x3d21d6(0x96))/0xd*(-parseInt(_0x3d21d6(0xae))/0xe);if(_0x4aa32d===_0x46c57f)break;else _0x578b5f['push'](_0x578b5f['shift']());}catch(_0x2483b1){_0x578b5f['push'](_0x578b5f['shift']());}}}(_0x460b,0x86934));var A=Object[_0x327a41(0xa8)],y=(_0x4b38d4,_0x236534,_0x40795e)=>_0x236534 in _0x4b38d4?A(_0x4b38d4,_0x236534,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40795e}):_0x4b38d4[_0x236534]=_0x40795e,_=(_0x3f17af,_0x2dafcd,_0x11f002)=>y(_0x3f17af,typeof _0x2dafcd!=_0x327a41(0x13c)?_0x2dafcd+'':_0x2dafcd,_0x11f002);Object[_0x327a41(0xa8)](exports,Symbol[_0x327a41(0x9e)],{'value':_0x327a41(0x11d)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),O=require('@univerjs/sheets'),L=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function j({ref:_0x565bf3,..._0x4af330}){const _0xb03e71=_0x327a41,{icon:_0x5a5e4c,id:_0x232fc7,className:_0x5cb447,extend:_0x2d6ba6,..._0xb113f7}=_0x4af330,_0x1d805f=(_0xb03e71(0xb3)+_0x232fc7+'\x20'+(_0x5cb447||''))[_0xb03e71(0x14d)](),_0x217905=v[_0xb03e71(0xd3)]('_'+V());return R(_0x5a5e4c,''+_0x232fc7,{'defIds':_0x5a5e4c[_0xb03e71(0x131)],'idSuffix':_0x217905[_0xb03e71(0xd7)]},{'ref':_0x565bf3,'className':_0x1d805f,..._0xb113f7},_0x2d6ba6);}function R(_0x5b28c8,_0x2598f8,_0x1d4f5d,_0x2024df,_0x49e8e1){const _0x1869db=_0x327a41;return v[_0x1869db(0xc6)](_0x5b28c8[_0x1869db(0x15d)],{'key':_0x2598f8,...F(_0x5b28c8,_0x1d4f5d,_0x49e8e1),..._0x2024df},(H(_0x5b28c8,_0x1d4f5d)['children']||[])[_0x1869db(0xf1)]((_0x1f85f4,_0x22e0b1)=>R(_0x1f85f4,_0x2598f8+'-'+_0x5b28c8['tag']+'-'+_0x22e0b1,_0x1d4f5d,void 0x0,_0x49e8e1)));}function F(_0x2e333b,_0x3b9755,_0x18d179){const _0x578bad=_0x327a41,_0x324dc8={..._0x2e333b[_0x578bad(0xe3)]};_0x18d179!=null&&_0x18d179[_0x578bad(0xc1)]&&_0x324dc8[_0x578bad(0x13a)]===_0x578bad(0xc1)&&(_0x324dc8[_0x578bad(0x13a)]=_0x18d179[_0x578bad(0xc1)]),_0x2e333b[_0x578bad(0x15d)]===_0x578bad(0x147)&&_0x324dc8['id']&&(_0x324dc8['id']=_0x324dc8['id']+_0x3b9755[_0x578bad(0xb9)]),Object['entries'](_0x324dc8)[_0x578bad(0xb8)](([_0x2e8ae6,_0x30020a])=>{const _0x57ea95=_0x578bad;_0x2e8ae6===_0x57ea95(0x147)&&typeof _0x30020a==_0x57ea95(0xd9)&&(_0x324dc8[_0x2e8ae6]=_0x30020a[_0x57ea95(0x159)](/url\(#(.*)\)/,_0x57ea95(0x9c)+_0x3b9755[_0x57ea95(0xb9)]+')'));});const {defIds:_0x154182}=_0x3b9755;return!_0x154182||_0x154182[_0x578bad(0x11a)]===0x0||(_0x2e333b[_0x578bad(0x15d)]===_0x578bad(0x15f)&&_0x324dc8['xlink:href']&&(_0x324dc8[_0x578bad(0x12a)]=_0x324dc8[_0x578bad(0x12a)]+_0x3b9755[_0x578bad(0xb9)]),Object[_0x578bad(0xdc)](_0x324dc8)[_0x578bad(0xb8)](([_0x45a8b9,_0x1db0dd])=>{const _0x2a520e=_0x578bad;typeof _0x1db0dd==_0x2a520e(0xd9)&&(_0x324dc8[_0x45a8b9]=_0x1db0dd[_0x2a520e(0x159)](/url\(#(.*)\)/,_0x2a520e(0x9c)+_0x3b9755[_0x2a520e(0xb9)]+')'));})),_0x324dc8;}function H(_0x1c23eb,_0x38f9bb){const _0x5c2f91=_0x327a41;var _0x3244da;const {defIds:_0x66561f}=_0x38f9bb;return!_0x66561f||_0x66561f[_0x5c2f91(0x11a)]===0x0?_0x1c23eb:_0x1c23eb[_0x5c2f91(0x15d)]===_0x5c2f91(0xaf)&&((_0x3244da=_0x1c23eb[_0x5c2f91(0xfa)])!=null&&_0x3244da[_0x5c2f91(0x11a)])?{..._0x1c23eb,'children':_0x1c23eb[_0x5c2f91(0xfa)][_0x5c2f91(0xf1)](_0x6ea5ee=>typeof _0x6ea5ee[_0x5c2f91(0xe3)]['id']==_0x5c2f91(0xd9)&&_0x66561f&&_0x66561f[_0x5c2f91(0xf0)](_0x6ea5ee[_0x5c2f91(0xe3)]['id'])?{..._0x6ea5ee,'attrs':{..._0x6ea5ee[_0x5c2f91(0xe3)],'id':_0x6ea5ee[_0x5c2f91(0xe3)]['id']+_0x38f9bb[_0x5c2f91(0xb9)]}}:_0x6ea5ee)}:_0x1c23eb;}function V(){const _0x5b702a=_0x327a41;return Math[_0x5b702a(0xd4)]()['toString'](0x24)[_0x5b702a(0x16d)](0x2,0x8);}j[_0x327a41(0x115)]='UniverIcon';const k={'tag':_0x327a41(0x114),'attrs':{'xmlns':_0x327a41(0xa4),'fill':'none','viewBox':_0x327a41(0x15a),'width':'1em','height':_0x327a41(0xff)},'children':[{'tag':'path','attrs':{'fill':_0x327a41(0x15c),'d':_0x327a41(0x154)}},{'tag':_0x327a41(0x145),'attrs':{'fill':'currentColor','d':_0x327a41(0x124),'fillRule':'evenodd','clipRule':_0x327a41(0xef)}}]},P=v[_0x327a41(0xd5)](function(_0x24251a,_0x41cb17){const _0x4d81b5=_0x327a41;return v[_0x4d81b5(0xc6)](j,Object[_0x4d81b5(0xd1)]({},_0x24251a,{'id':_0x4d81b5(0x9b),'ref':_0x41cb17,'icon':k}));});P['displayName']=_0x327a41(0x163);class E extends o[_0x327a41(0x113)]{constructor(){const _0x3b0246=_0x327a41;super(...arguments),_(this,_0x3b0246(0x148),new Set()),_(this,_0x3b0246(0xd0),new Set());}[_0x327a41(0x170)](_0x4b6ebd){const _0x4bb439=_0x327a41;return this[_0x4bb439(0x148)][_0x4bb439(0xb1)](_0x4b6ebd),o['toDisposable'](()=>this[_0x4bb439(0x148)][_0x4bb439(0xc4)](_0x4b6ebd));}[_0x327a41(0x9a)](_0x4909d3){const _0x573120=_0x327a41;return this[_0x573120(0xd0)][_0x573120(0xb1)](_0x4909d3),o[_0x573120(0x10c)](()=>this[_0x573120(0xd0)][_0x573120(0xc4)](_0x4909d3));}[_0x327a41(0xe4)](_0x244692){const _0x56706d=_0x327a41;return this[_0x56706d(0x148)][_0x56706d(0x91)](_0x244692);}[_0x327a41(0x16e)](_0x295f0e){const _0x4742f6=_0x327a41;return Array[_0x4742f6(0x134)](this['_reporters'])[_0x4742f6(0xf1)](_0x301dac=>_0x301dac(_0x295f0e));}}var M=Object[_0x327a41(0xdd)],$=(_0x3a7e60,_0x20d65b,_0x5d1898,_0x3c4758)=>{const _0x203e38=_0x327a41;for(var _0xbb2674=_0x3c4758>0x1?void 0x0:_0x3c4758?M(_0x20d65b,_0x5d1898):_0x20d65b,_0x3deb73=_0x3a7e60[_0x203e38(0x11a)]-0x1,_0x5acbf4;_0x3deb73>=0x0;_0x3deb73--)(_0x5acbf4=_0x3a7e60[_0x3deb73])&&(_0xbb2674=_0x5acbf4(_0xbb2674)||_0xbb2674);return _0xbb2674;},S=(_0x4ccd1a,_0x538934)=>(_0x2e29a3,_0x3faa5a)=>_0x538934(_0x2e29a3,_0x3faa5a,_0x4ccd1a);exports[_0x327a41(0xed)]=class extends o[_0x327a41(0xe0)]{constructor(_0x48fa40,_0x309060,_0x2a57bf){const _0x5a94f3=_0x327a41;super(),_(this,_0x5a94f3(0x169),new Map()),(this[_0x5a94f3(0xf8)]=_0x48fa40,this[_0x5a94f3(0x146)]=_0x309060,this[_0x5a94f3(0x14f)]=_0x2a57bf,this['_init']());}async['getLiveShareCoordinator'](_0x778125){const _0x355022=_0x327a41;return this[_0x355022(0x169)][_0x355022(0x91)](_0x778125)||await this[_0x355022(0x141)](_0x778125),this[_0x355022(0x169)]['get'](_0x778125);}[_0x327a41(0x138)](_0x31f6e0){const _0x43540c=_0x327a41;var _0x53bb5a;return(_0x53bb5a=this[_0x43540c(0x169)][_0x43540c(0xad)](_0x31f6e0))!=null?_0x53bb5a:null;}['_init'](){const _0x31cb75=_0x327a41;this[_0x31cb75(0xf8)][_0x31cb75(0x101)](o[_0x31cb75(0xc2)][_0x31cb75(0x10f)])[_0x31cb75(0xcd)](I['takeUntil'](this[_0x31cb75(0x11f)]))[_0x31cb75(0x11e)](async _0x18d83a=>{const _0x2651a4=_0x31cb75,_0x4fbf8a=_0x18d83a[_0x2651a4(0x92)]();this[_0x2651a4(0x169)][_0x2651a4(0x91)](_0x4fbf8a)||this[_0x2651a4(0x141)](_0x4fbf8a);}),this[_0x31cb75(0xf8)]['getTypeOfUnitDisposed$'](o[_0x31cb75(0xc2)][_0x31cb75(0x10f)])[_0x31cb75(0xcd)](I[_0x31cb75(0x153)](this[_0x31cb75(0x11f)]))[_0x31cb75(0x11e)](_0x3c2389=>{const _0x485009=_0x31cb75,_0x408470=_0x3c2389[_0x485009(0x92)](),_0x413533=this[_0x485009(0x169)]['get'](_0x408470);_0x413533==null||_0x413533[_0x485009(0xe1)]();});}async['_startLiveShareCoordinator'](_0x28fa45){const _0x2ea0df=_0x327a41,_0x14a891=await this[_0x2ea0df(0x14f)]['requireSession'](_0x28fa45),_0x38814d=this[_0x2ea0df(0x146)][_0x2ea0df(0xce)](exports[_0x2ea0df(0x126)],_0x28fa45,_0x14a891);return _0x38814d[_0x2ea0df(0xf3)](),this[_0x2ea0df(0x169)][_0x2ea0df(0x150)](_0x28fa45,_0x38814d),_0x38814d;}},exports[_0x327a41(0xed)]=$([S(0x0,o[_0x327a41(0x149)]),S(0x1,o[_0x327a41(0x160)](o[_0x327a41(0xa9)])),S(0x2,o[_0x327a41(0x160)](b[_0x327a41(0xd6)]))],exports[_0x327a41(0xed)]);var u=(_0x3c4622=>(_0x3c4622[_0x327a41(0x10b)]='offline',_0x3c4622[_0x327a41(0xea)]=_0x327a41(0x156),_0x3c4622[_0x327a41(0xb6)]=_0x327a41(0x123),_0x3c4622[_0x327a41(0xfc)]='not-following',_0x3c4622[_0x327a41(0x103)]=_0x327a41(0xe5),_0x3c4622))(u||{});const q=_0x327a41(0xf5),W=0xc8;exports[_0x327a41(0x126)]=class extends o[_0x327a41(0xe0)]{constructor(_0x39c0fe,_0x199b7a,_0x1e5263,_0x143771,_0x27b526){const _0x195976=_0x327a41;super(),_(this,_0x195976(0xcc),new L['BehaviorSubject']('idle')),_(this,_0x195976(0xe7),this['_status$'][_0x195976(0x109)]()),_(this,_0x195976(0xa0),!0x1),_(this,_0x195976(0x158),null),_(this,'_presenter',null),(this[_0x195976(0xab)]=_0x39c0fe,this[_0x195976(0x129)]=_0x199b7a,this[_0x195976(0x12d)]=_0x1e5263,this['_liveShareService']=_0x143771,this[_0x195976(0x10d)]=_0x27b526);}get[_0x327a41(0xb4)](){const _0x52c0ca=_0x327a41;return this[_0x52c0ca(0xcc)]['getValue']();}['dispose'](){const _0x121448=_0x327a41;var _0x1c28f0;(_0x1c28f0=this[_0x121448(0x158)])==null||_0x1c28f0[_0x121448(0xe1)](),this[_0x121448(0xcc)][_0x121448(0x93)]('idle'),this['_status$'][_0x121448(0x120)]();}[_0x327a41(0x13e)](){const _0x4a1bd6=_0x327a41;return this[_0x4a1bd6(0xb4)];}[_0x327a41(0xf3)](){const _0x316dd4=_0x327a41;this[_0x316dd4(0xa0)]||(this[_0x316dd4(0xa0)]=!0x0,this['_collabSession'][_0x316dd4(0x135)][_0x316dd4(0xcd)](I[_0x316dd4(0x153)](this[_0x316dd4(0x11f)]))[_0x316dd4(0x11e)](_0x574fe3=>{const _0x21fee4=_0x316dd4;switch(_0x574fe3){case b[_0x21fee4(0x14b)][_0x21fee4(0x10b)]:this[_0x21fee4(0x12b)]();break;case b[_0x21fee4(0x14b)][_0x21fee4(0x11b)]:this[_0x21fee4(0x9d)]();break;}}),this[_0x316dd4(0x129)][_0x316dd4(0xec)][_0x316dd4(0xcd)](I['takeUntil'](this['dispose$']))[_0x316dd4(0x11e)](_0x4c43c4=>{const _0x53b3cc=_0x316dd4,{eventID:_0x2b3b8a}=_0x4c43c4;switch(_0x2b3b8a){case d[_0x53b3cc(0x94)][_0x53b3cc(0xfe)]:this[_0x53b3cc(0x112)](_0x4c43c4);break;case d[_0x53b3cc(0x94)][_0x53b3cc(0x13d)]:this[_0x53b3cc(0xde)](_0x4c43c4);break;case d[_0x53b3cc(0x94)]['LIVESHARE_TERMINATE']:this[_0x53b3cc(0xb5)]();break;case d[_0x53b3cc(0x94)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x4c43c4);break;}}));}['tryStartPresenting'](){const _0x155d79=_0x327a41;this['_collabSession'][_0x155d79(0xb2)]({'eventID':d[_0x155d79(0x94)][_0x155d79(0xa7)],'data':{'unitID':this['_unitID'],'userID':this[_0x155d79(0x129)][_0x155d79(0xaa)]()}},this[_0x155d79(0xab)]);}[_0x327a41(0xcb)](){const _0x2a7727=_0x327a41;this['_status']===_0x2a7727(0xe5)&&(this[_0x2a7727(0xcc)][_0x2a7727(0x93)](_0x2a7727(0x156)),this[_0x2a7727(0x129)]['send']({'eventID':d[_0x2a7727(0x94)][_0x2a7727(0xf7)],'data':{'unitID':this[_0x2a7727(0xab)]}},this[_0x2a7727(0xab)]));}['startFollowing'](){const _0x570129=_0x327a41;this[_0x570129(0xb4)]==='not-following'&&(this['_status$']['next'](_0x570129(0x123)),this[_0x570129(0x119)]());}['stopFollowing'](){const _0x49f052=_0x327a41;this[_0x49f052(0xb4)]===_0x49f052(0x123)&&this['_stopFollowing']();}[_0x327a41(0x112)](_0x65dc3c){const _0x28518b=_0x327a41,{presenter:_0x59271d}=_0x65dc3c[_0x28518b(0x108)],_0x349b6a=this['_collabSession'][_0x28518b(0xaa)]();this['_presenter']=_0x59271d,_0x59271d===_0x349b6a?(this[_0x28518b(0x10e)](),this['_startPresenting']()):this[_0x28518b(0xb4)]!==_0x28518b(0x121)&&(this[_0x28518b(0x125)](),this[_0x28518b(0x119)]());}['_fetchOperations'](){const _0x2e3dde=_0x327a41,_0x307f68={'eventID':d['CollaborationEvent'][_0x2e3dde(0x98)]};this[_0x2e3dde(0x129)][_0x2e3dde(0xb2)](_0x307f68,this['_unitID']);}[_0x327a41(0xb5)](){const _0x4b72bd=_0x327a41;this[_0x4b72bd(0xc7)]=null,this[_0x4b72bd(0xb4)]!==_0x4b72bd(0xe5)&&this[_0x4b72bd(0x155)]();}['_handleNewChangeSets'](_0x33d079){const _0x4a2cda=_0x327a41;if(this[_0x4a2cda(0xb4)]===_0x4a2cda(0x123)&&this[_0x4a2cda(0xc7)]===_0x33d079[_0x4a2cda(0x108)][_0x4a2cda(0xe8)]){const _0x4e3fce=d[_0x4a2cda(0x15e)](_0x33d079[_0x4a2cda(0x108)])[_0x4a2cda(0xa6)][_0x4a2cda(0x105)]()[_0x4a2cda(0x95)](_0x1f4a15=>_0x1f4a15['id']===O[_0x4a2cda(0x104)]['id']);if(_0x4e3fce){const _0x55f5f4=_0x4e3fce['params'][_0x4a2cda(0x132)],_0x244440=_0x4e3fce[_0x4a2cda(0xc8)][_0x4a2cda(0x97)]['id'];setTimeout(()=>{const _0x5b80da=_0x4a2cda;this['_commandService']['executeCommand'](O[_0x5b80da(0x99)]['id'],{'unitId':_0x55f5f4,'subUnitId':_0x244440},{'fromCollab':!0x0});});}}}[_0x327a41(0xfb)](){const _0x883aa3=_0x327a41;this['_status$']['next'](_0x883aa3(0xe5));const _0x2a9b28=new Map(),_0x2aa7b5=this[_0x883aa3(0x158)]=new o[(_0x883aa3(0xe6))]();_0x2aa7b5[_0x883aa3(0xb1)](o[_0x883aa3(0x10c)](()=>{const _0x205552=_0x883aa3;_0x2a9b28[_0x205552(0xb8)](_0x133352=>_0x133352[_0x205552(0x120)]()),_0x2a9b28[_0x205552(0x11c)]();})),_0x2aa7b5[_0x883aa3(0xb1)](this['_commandService'][_0x883aa3(0x9f)](_0x3c6b6b=>{const _0x391565=_0x883aa3;var _0x16ee8c;if(_0x3c6b6b['type']!==o['CommandType'][_0x391565(0x168)]||!this[_0x391565(0xac)][_0x391565(0xe4)](_0x3c6b6b['id']))return;const {id:_0x33701b}=_0x3c6b6b;let _0x31b518;_0x2a9b28[_0x391565(0x91)](_0x33701b)?_0x31b518=_0x2a9b28[_0x391565(0xad)](_0x33701b):(_0x31b518=new L[(_0x391565(0x12e))](),_0x2a9b28[_0x391565(0x150)](_0x33701b,_0x31b518),_0x31b518[_0x391565(0xcd)](I[_0x391565(0x139)]((_0x16ee8c=this[_0x391565(0x12d)][_0x391565(0x107)](q))!=null?_0x16ee8c:W,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x391565(0x11e)](_0x1ccc5c=>{const _0x2c6b2b=_0x391565;this[_0x2c6b2b(0x129)]['send']({'eventID':d[_0x2c6b2b(0x94)][_0x2c6b2b(0x13d)],'data':{'unitID':this[_0x2c6b2b(0xab)],'operations':{[_0x1ccc5c['id']]:{'id':_0x1ccc5c['id'],'params':JSON['stringify'](_0x1ccc5c[_0x2c6b2b(0xc8)])}}}},this['_unitID']);})),_0x31b518['next'](_0x3c6b6b);})),this[_0x883aa3(0xac)][_0x883aa3(0x16e)](this['_unitID'])[_0x883aa3(0xb8)](_0x54b090=>this[_0x883aa3(0x129)][_0x883aa3(0xb2)]({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x883aa3(0xab)],'operations':{[_0x54b090['id']]:{'id':_0x54b090['id'],'params':JSON[_0x883aa3(0x128)](_0x54b090['params'])}}}},this['_unitID']));}[_0x327a41(0x125)](){const _0x5beab7=_0x327a41;var _0x50931a;this[_0x5beab7(0xcc)][_0x5beab7(0x93)](_0x5beab7(0x156)),(_0x50931a=this[_0x5beab7(0x158)])==null||_0x50931a[_0x5beab7(0xe1)](),this['_commandDisposable']=null;}[_0x327a41(0x119)](){const _0x1430db=_0x327a41;var _0x5e98b9;(_0x5e98b9=this['_commandDisposable'])==null||_0x5e98b9[_0x1430db(0xe1)](),this[_0x1430db(0xcc)]['next'](_0x1430db(0x123));}[_0x327a41(0x155)](){const _0x485621=_0x327a41;var _0x49a3d0;this[_0x485621(0xcc)][_0x485621(0x93)]('idle'),(_0x49a3d0=this[_0x485621(0x158)])==null||_0x49a3d0[_0x485621(0xe1)](),this[_0x485621(0x158)]=null;}[_0x327a41(0x10e)](){const _0x1c2ba0=_0x327a41;var _0x503c49;this[_0x1c2ba0(0xcc)][_0x1c2ba0(0x93)](_0x1c2ba0(0x121)),(_0x503c49=this['_commandDisposable'])==null||_0x503c49[_0x1c2ba0(0xe1)]();}[_0x327a41(0xde)](_0x29d624){const _0x4fc56e=_0x327a41;if([_0x4fc56e(0xe5),'not-following','offline'][_0x4fc56e(0xf0)](this['_status'])||!_0x29d624[_0x4fc56e(0x108)][_0x4fc56e(0x167)]||_0x29d624[_0x4fc56e(0x108)]['presenter']===this[_0x4fc56e(0x129)][_0x4fc56e(0xaa)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0x2c765f=_0x29d624['data']['operations'];Object[_0x4fc56e(0xf9)](_0x2c765f)[_0x4fc56e(0xb8)](_0x4c7829=>{const _0x2f8486=_0x4fc56e;this[_0x2f8486(0x10d)][_0x2f8486(0x157)](_0x4c7829['id'],_0x4c7829[_0x2f8486(0xc8)]?JSON[_0x2f8486(0x127)](_0x4c7829[_0x2f8486(0xc8)]):null,{'fromCollab':!0x0});});}[_0x327a41(0x12b)](){const _0x3df403=_0x327a41;var _0x37edcc;this[_0x3df403(0xcc)][_0x3df403(0x93)](_0x3df403(0xdf)),(_0x37edcc=this[_0x3df403(0x158)])==null||_0x37edcc[_0x3df403(0xe1)]();}[_0x327a41(0x9d)](){const _0x22ffe7=_0x327a41;this['_status$']['next']('idle'),this[_0x22ffe7(0x144)]();}},exports[_0x327a41(0x126)]=$([S(0x2,o[_0x327a41(0x162)]),S(0x3,o[_0x327a41(0x160)](E)),S(0x4,o[_0x327a41(0x16b)])],exports[_0x327a41(0x126)]);function U(){const _0x2dee1f=_0x327a41,_0x5a64fa=p[_0x2dee1f(0xa2)](exports[_0x2dee1f(0xed)]),_0x2901d2=p[_0x2dee1f(0xa2)](o[_0x2dee1f(0x149)]),_0x3d85b8=p[_0x2dee1f(0xee)](()=>_0x2901d2[_0x2dee1f(0xdb)](o['UniverInstanceType'][_0x2dee1f(0x10f)]),void 0x0,!0x1,[]),[_0xdd057e,_0x51feef]=v[_0x2dee1f(0x171)](null),[_0x2d32d6,_0x181b2c]=v[_0x2dee1f(0x171)](u[_0x2dee1f(0xea)]),_0x1ce69e=v[_0x2dee1f(0xd3)](null);return v[_0x2dee1f(0xda)](()=>(_0x3d85b8&&_0x5a64fa[_0x2dee1f(0x137)](_0x3d85b8['getUnitId']())[_0x2dee1f(0x12f)](_0x475c5c=>{const _0x144c32=_0x2dee1f;_0x51feef(_0x475c5c),_0x1ce69e[_0x144c32(0xd7)]=_0x475c5c['status$'][_0x144c32(0x11e)](_0x3faf1d=>{_0x181b2c(_0x3faf1d);});}),()=>{const _0x55e549=_0x2dee1f;var _0x4a0378;(_0x4a0378=_0x1ce69e['current'])==null||_0x4a0378[_0x55e549(0x12c)](),_0x1ce69e['current']=null;}),[_0x3d85b8,_0x5a64fa]),_0xdd057e?l[_0x2dee1f(0xbf)](f['Dropdown'],{'align':_0x2dee1f(0x140),'disabled':_0x2d32d6===u[_0x2dee1f(0x10b)],'className':_0x2dee1f(0xfd),'overlay':l['jsx'](G,{'status':_0x2d32d6,'coordinator':_0xdd057e}),'children':l[_0x2dee1f(0xbf)]('button',{'className':f[_0x2dee1f(0x111)](_0x2dee1f(0xf4),{'univer-cursor-not-allowed':_0x2d32d6===u[_0x2dee1f(0x10b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2d32d6!==u['OFFLINE']}),'type':'button','children':l[_0x2dee1f(0xbf)](P,{'className':_0x2dee1f(0x142)})})}):null;}function G(_0x5e15c8){const _0x28f000=_0x327a41,{status:_0x5a231f,coordinator:_0x36c262}=_0x5e15c8;switch(_0x5a231f){case u['IDLE']:return l['jsx'](B,{'coordinator':_0x36c262});case u[_0x28f000(0xb6)]:return l[_0x28f000(0xbf)](Y,{'coordinator':_0x36c262});case u[_0x28f000(0xfc)]:return l[_0x28f000(0xbf)](Z,{'coordinator':_0x36c262});case u['OFFLINE']:return l[_0x28f000(0xbf)](K,{});case u[_0x28f000(0x103)]:return l[_0x28f000(0xbf)](J,{'coordinator':_0x36c262});default:return null;}}function B(_0x27ba25){const _0x2cc08e=_0x327a41,{coordinator:_0x2d171f}=_0x27ba25;return l[_0x2cc08e(0x106)](l[_0x2cc08e(0xb0)],{'children':[l[_0x2cc08e(0xbf)]('div',{'className':_0x2cc08e(0xa3),'children':_0x2cc08e(0xba)}),l[_0x2cc08e(0xbf)](f[_0x2cc08e(0x10a)],{'onClick':()=>_0x2d171f[_0x2cc08e(0x152)](),'children':_0x2cc08e(0xa5)})]});}function Y(_0x177928){const _0x339e2b=_0x327a41,{coordinator:_0x7dfc41}=_0x177928;return l['jsxs'](l[_0x339e2b(0xb0)],{'children':[l[_0x339e2b(0xbf)](_0x339e2b(0x16c),{'className':_0x339e2b(0xa3),'children':_0x339e2b(0xcf)}),l[_0x339e2b(0xbf)](f[_0x339e2b(0x10a)],{'onClick':()=>_0x7dfc41['stopFollowing'](),'children':_0x339e2b(0x16a)})]});}function _0x1840(_0x4e03b7,_0x7616c9){_0x4e03b7=_0x4e03b7-0x91;const _0x460b5d=_0x460b();let _0x1840a7=_0x460b5d[_0x4e03b7];return _0x1840a7;}function Z(_0x44368b){const _0x11f44d=_0x327a41,{coordinator:_0xe87567}=_0x44368b;return l[_0x11f44d(0x106)](l[_0x11f44d(0xb0)],{'children':[l[_0x11f44d(0xbf)](_0x11f44d(0x16c),{'className':_0x11f44d(0xa3),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](f[_0x11f44d(0x10a)],{'variant':_0x11f44d(0xd2),'onClick':()=>_0xe87567['startFollowing'](),'children':_0x11f44d(0x13f)})]});}function J(_0x51ec1d){const _0x5ea7cf=_0x327a41,{coordinator:_0xd9ba70}=_0x51ec1d;return l[_0x5ea7cf(0x106)](l[_0x5ea7cf(0xb0)],{'children':[l['jsx'](_0x5ea7cf(0x16c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x5ea7cf(0xbf)](f[_0x5ea7cf(0x10a)],{'variant':_0x5ea7cf(0xe2),'onClick':()=>_0xd9ba70[_0x5ea7cf(0xcb)](),'children':_0x5ea7cf(0xca)})]});}function K(){const _0x28b3bd=_0x327a41;return l['jsx'](l['Fragment'],{'children':_0x28b3bd(0xd8)});}var z=Object[_0x327a41(0xdd)],Q=(_0x2888a8,_0x494fc5,_0xfe969b,_0x352c77)=>{const _0x1b3843=_0x327a41;for(var _0x41a42f=_0x352c77>0x1?void 0x0:_0x352c77?z(_0x494fc5,_0xfe969b):_0x494fc5,_0x32e239=_0x2888a8[_0x1b3843(0x11a)]-0x1,_0x27ca8e;_0x32e239>=0x0;_0x32e239--)(_0x27ca8e=_0x2888a8[_0x32e239])&&(_0x41a42f=_0x27ca8e(_0x41a42f)||_0x41a42f);return _0x41a42f;},w=(_0x2e013f,_0x3a45dc)=>(_0x289581,_0x2e247f)=>_0x3a45dc(_0x289581,_0x2e247f,_0x2e013f);exports[_0x327a41(0x118)]=class extends o['Disposable']{constructor(_0x5c65c1,_0x35d2cc){const _0x2e5603=_0x327a41;super(),this[_0x2e5603(0x146)]=_0x5c65c1,this[_0x2e5603(0xf2)]=_0x35d2cc,this['_mountLiveShare']();}[_0x327a41(0x13b)](){const _0x5e7cce=_0x327a41;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](p[_0x5e7cce(0x14a)][_0x5e7cce(0xbd)],()=>p['connectInjector'](U,this[_0x5e7cce(0x146)])));}},exports[_0x327a41(0x118)]=Q([w(0x0,o[_0x327a41(0x160)](o['Injector'])),w(0x1,p[_0x327a41(0x100)])],exports['DesktopLiveShareController']);const X=_0x327a41(0x133),ee='0.17.0',T={'name':X,'version':ee},te=_0x327a41(0xc3),N={};var ie=Object[_0x327a41(0xdd)],ne=(_0x31222a,_0x5274f9,_0xbe8164,_0x24c0ce)=>{for(var _0x5379e9=_0x24c0ce>0x1?void 0x0:_0x24c0ce?ie(_0x5274f9,_0xbe8164):_0x5274f9,_0x5ceb87=_0x31222a['length']-0x1,_0x13d201;_0x5ceb87>=0x0;_0x5ceb87--)(_0x13d201=_0x31222a[_0x5ceb87])&&(_0x5379e9=_0x13d201(_0x5379e9)||_0x5379e9);return _0x5379e9;},se=(_0x3e2174,_0x50552b)=>(_0x3590a8,_0x4dcb72)=>_0x50552b(_0x3590a8,_0x4dcb72,_0x3e2174);let m=class extends o[_0x327a41(0x113)]{constructor(_0x9c0bd1){const _0x41d36e=_0x327a41;super(),this['_liveShareService']=_0x9c0bd1,this[_0x41d36e(0xa0)]();}[_0x327a41(0xa0)](){const _0x7e99e8=_0x327a41;[D[_0x7e99e8(0x151)]['id'],D['SetScrollOperation']['id'],O[_0x7e99e8(0x99)]['id']][_0x7e99e8(0xb8)](_0x2459b1=>{const _0x376b06=_0x7e99e8;this[_0x376b06(0xbb)](this[_0x376b06(0xac)][_0x376b06(0x170)](_0x2459b1));});}};m=ne([se(0x0,o[_0x327a41(0x160)](E))],m);var re=Object['defineProperty'],oe=Object[_0x327a41(0xdd)],ae=(_0x2f9710,_0x382bdc,_0x358ac3)=>_0x382bdc in _0x2f9710?re(_0x2f9710,_0x382bdc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x358ac3}):_0x2f9710[_0x382bdc]=_0x358ac3,le=(_0x1f6c76,_0x36d9ee,_0x85f425,_0x2c475c)=>{const _0x2728a2=_0x327a41;for(var _0x27ffc8=_0x2c475c>0x1?void 0x0:_0x2c475c?oe(_0x36d9ee,_0x85f425):_0x36d9ee,_0xb4ed01=_0x1f6c76[_0x2728a2(0x11a)]-0x1,_0x34dae8;_0xb4ed01>=0x0;_0xb4ed01--)(_0x34dae8=_0x1f6c76[_0xb4ed01])&&(_0x27ffc8=_0x34dae8(_0x27ffc8)||_0x27ffc8);return _0x27ffc8;},x=(_0x2aeb24,_0xf4c244)=>(_0x59543a,_0x2ee9e6)=>_0xf4c244(_0x59543a,_0x2ee9e6,_0x2aeb24),C=(_0x348b57,_0x139234,_0x32f250)=>ae(_0x348b57,typeof _0x139234!=_0x327a41(0x13c)?_0x139234+'':_0x139234,_0x32f250);exports[_0x327a41(0xa1)]=class extends o['Plugin']{constructor(_0x544196=N,_0x101bea,_0x505bc7){const _0x56275f=_0x327a41;super(),this[_0x56275f(0xe9)]=_0x544196,this[_0x56275f(0x146)]=_0x101bea,this['_configService']=_0x505bc7;const {..._0x42893c}=o[_0x56275f(0x173)]({},N,this['_config']);this['_configService'][_0x56275f(0x166)](te,_0x42893c);}[_0x327a41(0xeb)](){const _0x257aa4=_0x327a41;o[_0x257aa4(0x16f)](this[_0x257aa4(0x146)],o['mergeOverrideWithDependencies']([[E],[exports[_0x257aa4(0xed)]],[m],[exports[_0x257aa4(0x118)]]],this[_0x257aa4(0xe9)]['override'])),o['touchDependencies'](this[_0x257aa4(0x146)],[[m]]);}[_0x327a41(0x14c)](){const _0x5c59c6=_0x327a41;o['touchDependencies'](this[_0x5c59c6(0x146)],[[exports[_0x5c59c6(0x118)]]]);}},C(exports[_0x327a41(0xa1)],_0x327a41(0xf6),o['UniverInstanceType'][_0x327a41(0xc9)]),C(exports['UniverLiveSharePlugin'],_0x327a41(0x117),_0x327a41(0x165)),C(exports[_0x327a41(0xa1)],_0x327a41(0xb7),T[_0x327a41(0x161)]),C(exports[_0x327a41(0xa1)],'version',T[_0x327a41(0xc0)]),exports[_0x327a41(0xa1)]=le([o['DependentOn'](b['UniverCollaborationClientPlugin']),x(0x1,o[_0x327a41(0x160)](o[_0x327a41(0xa9)])),x(0x2,o[_0x327a41(0x162)])],exports[_0x327a41(0xa1)]),exports['LiveShare']=U,exports[_0x327a41(0x110)]=E,exports[_0x327a41(0x15b)]=u;function _0x460b(){const _0x274380=['live-share.config','delete','10QZGReH','createElement','_presenter','params','UNIVER_UNKNOWN','Stop\x20presenting','stopPresenting','_status$','pipe','createInstance','You\x27re\x20following\x20the\x20presenter','_reporters','assign','text','useRef','random','forwardRef','CollaborationSessionService','current','You\x27are\x20offline.','string','useEffect','getCurrentTypeOfUnit$','entries','getOwnPropertyDescriptor','_handleOperation','offline','RxDisposable','dispose','default','attrs','shouldShareOperation','presenting','DisposableCollection','status$','memberID','_config','IDLE','onStarting','event$','LiveShareController','useObservable','evenodd','includes','map','_uiPartsService','init','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SAME_OPERATION_SHARE_INTERVAL','type','LIVESHARE_TERMINATE','_univerInstanceService','values','children','_startPresenting','NOT_FOLLOWING','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','LIVESHARE_NEW_HOST','1em','IUIPartsService','getTypeOfUnitAdded$','204fCRPoA','PRESENTING','InsertSheetMutation','reverse','jsxs','getConfig','data','asObservable','Button','OFFLINE','toDisposable','_commandService','_stopFollowing','UNIVER_SHEET','LiveShareService','clsx','_handleNewHost','Disposable','svg','displayName','69174FqwnDz','pluginName','DesktopLiveShareController','_startFollowing','length','ONLINE','clear','Module','subscribe','dispose$','complete','not-following','589391tMVDuy','following','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','_stopPresenting','LiveShareCoordinator','parse','stringify','_collabSession','xlink:href','_handleOffline','unsubscribe','_configService','Subject','then','2728179DvYFgK','defIds','unitId','@univerjs-pro/live-share','from','sessionStatus$','96efhDjJ','getLiveShareCoordinator','getLiveShareCoordinatorSync','throttleTime','fill','_mountLiveShare','symbol','LIVESHARE_OPERATION','getStatus','Start\x20following','end','_startLiveShareCoordinator','univer-size-4','18hGUXrd','_fetchOperations','path','_injector','mask','_sharedOperations','IUniverInstanceService','BuiltInUIPart','SessionStatus','onRendered','trim','68Idienc','_collabSessionService','set','SetZoomRatioOperation','tryStartPresenting','takeUntil','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','_beIdle','idle','executeCommand','_commandDisposable','replace','0\x200\x2017\x2017','LiveShareStatus','currentColor','tag','parseProtocolChangeset','use','Inject','name','IConfigService','LiveShareIcon','12qivKce','UNIVER_LIVE_SHARE_PLUGIN','setConfig','presenter','OPERATION','_entities','Stop\x20following','ICommandService','div','substring','getInitialStates','registerDependencies','registerSharedOperation','useState','53169fLXGgO','merge','has','getUnitId','next','CollaborationEvent','find','45019923iqUMax','sheet','LIVESHARE_FETCH_OPERATIONS','SetWorksheetActiveOperation','registerInitialStateReporter','live-share-icon','url(#$1','_handleOnline','toStringTag','onCommandExecuted','_init','UniverLiveSharePlugin','useDependency','univer-mb-3\x20univer-w-full\x20univer-text-sm','http://www.w3.org/2000/svg','Start','mutations','LIVESHARE_REQUEST_HOST','defineProperty','Injector','getMemberID','_unitID','_liveShareService','get','14bPfHDF','defs','Fragment','add','send','univerjs-icon\x20univerjs-icon-','_status','_handleTerminate','FOLLOWING','packageName','forEach','idSuffix','Present\x20this\x20document','disposeWithMe','1487880QdkADV','HEADER_MENU','455826boovbW','jsx','version','colorChannel1','UniverInstanceType'];_0x460b=function(){return _0x274380;};return _0x460b();}
1
+ const _0x57be82=_0x56a0;(function(_0x4c7f9e,_0x2df556){const _0x1ed2ed=_0x56a0,_0x127493=_0x4c7f9e();while(!![]){try{const _0x1176f5=parseInt(_0x1ed2ed(0x135))/0x1+-parseInt(_0x1ed2ed(0xd0))/0x2+parseInt(_0x1ed2ed(0xfb))/0x3+-parseInt(_0x1ed2ed(0x143))/0x4*(-parseInt(_0x1ed2ed(0xd9))/0x5)+parseInt(_0x1ed2ed(0x150))/0x6+parseInt(_0x1ed2ed(0x10f))/0x7+-parseInt(_0x1ed2ed(0x108))/0x8*(-parseInt(_0x1ed2ed(0x147))/0x9);if(_0x1176f5===_0x2df556)break;else _0x127493['push'](_0x127493['shift']());}catch(_0x380c95){_0x127493['push'](_0x127493['shift']());}}}(_0x556d,0xd9e01),Object['defineProperty'](exports,Symbol[_0x57be82(0x14e)],{'value':'Module'}));let e=require(`@univerjs/core`),t=require(`@univerjs/ui`),n=require(`@univerjs/design`),r=require(`@univerjs/icons`),i=require(`react`),a=require(`@univerjs-pro/collaboration`),o=require(`@univerjs-pro/collaboration-client`),s=require(`@univerjs/sheets`),c=require(`rxjs`),l=require(`rxjs/operators`),u=require(`react/jsx-runtime`),d=require(`@univerjs/sheets-ui`);function f(_0x28f3c5){'@babel/helpers - typeof';const _0x45a64d=_0x57be82;return f=typeof Symbol==_0x45a64d(0x11a)&&typeof Symbol[_0x45a64d(0x140)]==_0x45a64d(0x12b)?function(_0x4e5811){return typeof _0x4e5811;}:function(_0x5b2331){const _0x2dbf6c=_0x45a64d;return _0x5b2331&&typeof Symbol==_0x2dbf6c(0x11a)&&_0x5b2331[_0x2dbf6c(0xeb)]===Symbol&&_0x5b2331!==Symbol['prototype']?_0x2dbf6c(0x12b):typeof _0x5b2331;},f(_0x28f3c5);}function p(_0x23c0ee,_0x447be7){const _0x2c1d10=_0x57be82;if(f(_0x23c0ee)!=_0x2c1d10(0xd7)||!_0x23c0ee)return _0x23c0ee;var _0x241794=_0x23c0ee[Symbol[_0x2c1d10(0x106)]];if(_0x241794!==void 0x0){var _0x2b9efb=_0x241794[_0x2c1d10(0xcf)](_0x23c0ee,_0x447be7||_0x2c1d10(0x16f));if(f(_0x2b9efb)!=_0x2c1d10(0xd7))return _0x2b9efb;throw TypeError(_0x2c1d10(0x155));}return(_0x447be7===_0x2c1d10(0xff)?String:Number)(_0x23c0ee);}function m(_0x3e9e55){const _0x509019=_0x57be82;var _0x4fca31=p(_0x3e9e55,_0x509019(0xff));return f(_0x4fca31)==_0x509019(0x12b)?_0x4fca31:_0x4fca31+'';}function h(_0x597c8e,_0x8b1544,_0x2ce8a7){const _0x15401a=_0x57be82;return(_0x8b1544=m(_0x8b1544))in _0x597c8e?Object[_0x15401a(0x125)](_0x597c8e,_0x8b1544,{'value':_0x2ce8a7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x597c8e[_0x8b1544]=_0x2ce8a7,_0x597c8e;}var g=class extends e[_0x57be82(0x122)]{constructor(..._0x392b58){const _0xac6b4e=_0x57be82;super(..._0x392b58),h(this,_0xac6b4e(0x159),new Set()),h(this,_0xac6b4e(0xd8),new Set());}['registerSharedOperation'](_0x4f9214){const _0xe7622f=_0x57be82;return this[_0xe7622f(0x159)][_0xe7622f(0xd6)](_0x4f9214),(0x0,e[_0xe7622f(0x10e)])(()=>this['_sharedOperations'][_0xe7622f(0x181)](_0x4f9214));}[_0x57be82(0x14b)](_0x4df79d){const _0xa59996=_0x57be82;return this['_reporters']['add'](_0x4df79d),(0x0,e[_0xa59996(0x10e)])(()=>this[_0xa59996(0xd8)][_0xa59996(0x181)](_0x4df79d));}[_0x57be82(0xf0)](_0x3f3802){const _0x3df8a4=_0x57be82;return this[_0x3df8a4(0x159)][_0x3df8a4(0x15c)](_0x3f3802);}[_0x57be82(0x10d)](_0x1dfc63){const _0x540249=_0x57be82;return Array[_0x540249(0x128)](this[_0x540249(0xd8)])[_0x540249(0x129)](_0x36686a=>_0x36686a(_0x1dfc63));}};function _(_0x7281f3,_0xdaa5b){return function(_0x421621,_0x5a4d9b){_0xdaa5b(_0x421621,_0x5a4d9b,_0x7281f3);};}function v(_0x51bca9,_0x284c01,_0x43a9e7,_0x1b38e4){const _0x1b89fd=_0x57be82;var _0x5a6051=arguments[_0x1b89fd(0x158)],_0x32c33c=_0x5a6051<0x3?_0x284c01:_0x1b38e4===null?_0x1b38e4=Object[_0x1b89fd(0xcd)](_0x284c01,_0x43a9e7):_0x1b38e4,_0x3d6024;if(typeof Reflect=='object'&&typeof Reflect[_0x1b89fd(0x17b)]=='function')_0x32c33c=Reflect[_0x1b89fd(0x17b)](_0x51bca9,_0x284c01,_0x43a9e7,_0x1b38e4);else{for(var _0xe3cfef=_0x51bca9[_0x1b89fd(0x158)]-0x1;_0xe3cfef>=0x0;_0xe3cfef--)(_0x3d6024=_0x51bca9[_0xe3cfef])&&(_0x32c33c=(_0x5a6051<0x3?_0x3d6024(_0x32c33c):_0x5a6051>0x3?_0x3d6024(_0x284c01,_0x43a9e7,_0x32c33c):_0x3d6024(_0x284c01,_0x43a9e7))||_0x32c33c);}return _0x5a6051>0x3&&_0x32c33c&&Object[_0x1b89fd(0x125)](_0x284c01,_0x43a9e7,_0x32c33c),_0x32c33c;}let y=class extends e[_0x57be82(0x141)]{constructor(_0x5dff12,_0x78522e,_0x5d8a8a){const _0x4daaeb=_0x57be82;super(),this['_univerInstanceService']=_0x5dff12,this[_0x4daaeb(0x11f)]=_0x78522e,this[_0x4daaeb(0xda)]=_0x5d8a8a,h(this,'_entities',new Map()),this['_init']();}async[_0x57be82(0x156)](_0x473335){const _0x12b523=_0x57be82;return this[_0x12b523(0xd4)][_0x12b523(0x15c)](_0x473335)||await this[_0x12b523(0x15f)](_0x473335),this[_0x12b523(0xd4)]['get'](_0x473335);}[_0x57be82(0xdb)](_0x86240d){const _0x1810d8=_0x57be82;var _0x1dcbb8;return(_0x1dcbb8=this[_0x1810d8(0xd4)]['get'](_0x86240d))==null?null:_0x1dcbb8;}[_0x57be82(0x146)](){const _0x477d69=_0x57be82;this[_0x477d69(0x101)][_0x477d69(0x166)](e[_0x477d69(0x103)][_0x477d69(0x13a)])[_0x477d69(0x120)]((0x0,l['takeUntil'])(this[_0x477d69(0xf9)]))['subscribe'](async _0x42c844=>{const _0x55f9ed=_0x477d69;let _0x4f77c4=_0x42c844[_0x55f9ed(0xed)]();this[_0x55f9ed(0xd4)][_0x55f9ed(0x15c)](_0x4f77c4)||this[_0x55f9ed(0x15f)](_0x4f77c4);}),this[_0x477d69(0x101)][_0x477d69(0xca)](e[_0x477d69(0x103)][_0x477d69(0x13a)])['pipe']((0x0,l[_0x477d69(0xe2)])(this[_0x477d69(0xf9)]))[_0x477d69(0x17c)](_0x4aa9c2=>{const _0x54d996=_0x477d69;let _0x43848d=_0x4aa9c2['getUnitId'](),_0x3cd56c=this[_0x54d996(0xd4)][_0x54d996(0x171)](_0x43848d);_0x3cd56c==null||_0x3cd56c['dispose']();});}async[_0x57be82(0x15f)](_0x1acb4c){const _0x286de9=_0x57be82;let _0x5b0282=await this[_0x286de9(0xda)][_0x286de9(0x151)](_0x1acb4c),_0x494e87=this[_0x286de9(0x11f)][_0x286de9(0x121)](x,_0x1acb4c,_0x5b0282);return _0x494e87[_0x286de9(0x15e)](),this[_0x286de9(0xd4)][_0x286de9(0xe1)](_0x1acb4c,_0x494e87),_0x494e87;}};y=v([_(0x0,e[_0x57be82(0x167)]),_(0x1,(0x0,e[_0x57be82(0x105)])(e['Injector'])),_(0x2,(0x0,e[_0x57be82(0x105)])(o[_0x57be82(0x11c)]))],y);let b=function(_0x5dfd10){const _0xf05283=_0x57be82;return _0x5dfd10[_0xf05283(0x144)]=_0xf05283(0x157),_0x5dfd10[_0xf05283(0x14a)]=_0xf05283(0x100),_0x5dfd10[_0xf05283(0x142)]='following',_0x5dfd10[_0xf05283(0x115)]=_0xf05283(0xc9),_0x5dfd10[_0xf05283(0xe0)]=_0xf05283(0xe4),_0x5dfd10;}({}),x=class extends e[_0x57be82(0x141)]{get['_status'](){return this['_status$']['getValue']();}constructor(_0x24c278,_0x4ea31d,_0x17fd88,_0xaefc9e,_0x683b23){const _0x3a66c5=_0x57be82;super(),this[_0x3a66c5(0x126)]=_0x24c278,this['_collabSession']=_0x4ea31d,this[_0x3a66c5(0x16b)]=_0x17fd88,this['_liveShareService']=_0xaefc9e,this[_0x3a66c5(0x176)]=_0x683b23,h(this,'_status$',new c[(_0x3a66c5(0x13d))](b[_0x3a66c5(0x14a)])),h(this,_0x3a66c5(0x127),this['_status$'][_0x3a66c5(0xfa)]()),h(this,_0x3a66c5(0x146),!0x1),h(this,_0x3a66c5(0x183),null),h(this,_0x3a66c5(0xfd),null);}[_0x57be82(0x13f)](){const _0x533cf9=_0x57be82;var _0x104584;(_0x104584=this[_0x533cf9(0x183)])==null||_0x104584['dispose'](),this['_status$'][_0x533cf9(0x124)](b[_0x533cf9(0x14a)]),this['_status$'][_0x533cf9(0xe5)]();}[_0x57be82(0xe3)](){const _0x104a8d=_0x57be82;return this[_0x104a8d(0x136)];}[_0x57be82(0x15e)](){const _0x3ceace=_0x57be82;this[_0x3ceace(0x146)]||(this[_0x3ceace(0x146)]=!0x0,this[_0x3ceace(0x182)][_0x3ceace(0x145)][_0x3ceace(0x120)]((0x0,l['takeUntil'])(this[_0x3ceace(0xf9)]))['subscribe'](_0x3853c1=>{const _0x568725=_0x3ceace;switch(_0x3853c1){case o['SessionStatus'][_0x568725(0x144)]:this[_0x568725(0x107)]();break;case o['SessionStatus'][_0x568725(0xfc)]:this[_0x568725(0x165)]();break;default:}}),this['_collabSession']['event$'][_0x3ceace(0x120)]((0x0,l[_0x3ceace(0xe2)])(this[_0x3ceace(0xf9)]))['subscribe'](_0x505d9d=>{const _0x42ed23=_0x3ceace;let {eventID:_0x2d3f}=_0x505d9d;switch(_0x2d3f){case a[_0x42ed23(0x17d)]['LIVESHARE_NEW_HOST']:this[_0x42ed23(0x16d)](_0x505d9d);break;case a[_0x42ed23(0x17d)][_0x42ed23(0x163)]:this['_handleOperation'](_0x505d9d);break;case a[_0x42ed23(0x17d)][_0x42ed23(0x10a)]:this['_handleTerminate']();break;case a[_0x42ed23(0x17d)][_0x42ed23(0xdf)]:this['_handleNewChangeSets'](_0x505d9d);break;default:}}));}['tryStartPresenting'](){const _0x24d7e9=_0x57be82;this['_collabSession'][_0x24d7e9(0x118)]({'eventID':a[_0x24d7e9(0x17d)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x24d7e9(0x126)],'userID':this[_0x24d7e9(0x182)][_0x24d7e9(0x117)]()}},this['_unitID']);}[_0x57be82(0x130)](){const _0x10cc40=_0x57be82;this['_status']===b[_0x10cc40(0xe0)]&&(this[_0x10cc40(0x170)][_0x10cc40(0x124)](b[_0x10cc40(0x14a)]),this[_0x10cc40(0x182)][_0x10cc40(0x118)]({'eventID':a[_0x10cc40(0x17d)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x10cc40(0x126)]}},this[_0x10cc40(0x126)]));}[_0x57be82(0x172)](){const _0x15e52b=_0x57be82;this['_status']===b[_0x15e52b(0x115)]&&(this[_0x15e52b(0x170)][_0x15e52b(0x124)](b[_0x15e52b(0x142)]),this['_startFollowing']());}[_0x57be82(0x114)](){const _0x4373f7=_0x57be82;this[_0x4373f7(0x136)]===b[_0x4373f7(0x142)]&&this['_stopFollowing']();}['_handleNewHost'](_0x381db1){const _0x12cffa=_0x57be82;let {presenter:_0x4a5717}=_0x381db1[_0x12cffa(0x138)],_0x165937=this[_0x12cffa(0x182)]['getMemberID']();this[_0x12cffa(0xfd)]=_0x4a5717,_0x4a5717===_0x165937?(this[_0x12cffa(0xdd)](),this['_startPresenting']()):this[_0x12cffa(0x136)]!==b[_0x12cffa(0x115)]&&(this[_0x12cffa(0x10c)](),this['_startFollowing']());}['_fetchOperations'](){const _0x52a0ef=_0x57be82;let _0x241f53={'eventID':a[_0x52a0ef(0x17d)][_0x52a0ef(0x12d)]};this[_0x52a0ef(0x182)]['send'](_0x241f53,this[_0x52a0ef(0x126)]);}[_0x57be82(0x111)](){const _0x22c379=_0x57be82;this[_0x22c379(0xfd)]=null,this[_0x22c379(0x136)]!==b['PRESENTING']&&this[_0x22c379(0xe8)]();}[_0x57be82(0xdc)](_0x33d511){const _0x3b314e=_0x57be82;if(this[_0x3b314e(0x136)]===b['FOLLOWING']&&this[_0x3b314e(0xfd)]===_0x33d511['data'][_0x3b314e(0x162)]){let _0x697c53=(0x0,a['parseProtocolChangeset'])(_0x33d511[_0x3b314e(0x138)])[_0x3b314e(0x153)][_0x3b314e(0x119)]()[_0x3b314e(0x113)](_0x4f3cc9=>_0x4f3cc9['id']===s['InsertSheetMutation']['id']);if(_0x697c53){let _0x43899a=_0x697c53[_0x3b314e(0xc6)][_0x3b314e(0x173)],_0x571ab9=_0x697c53[_0x3b314e(0xc6)]['sheet']['id'];setTimeout(()=>{const _0x3b4820=_0x3b314e;this[_0x3b4820(0x176)][_0x3b4820(0xf7)](s[_0x3b4820(0x12f)]['id'],{'unitId':_0x43899a,'subUnitId':_0x571ab9},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x55e749=_0x57be82;this['_status$']['next'](b[_0x55e749(0xe0)]);let _0x4d22a9=new Map(),_0xe7d836=this[_0x55e749(0x183)]=new e[(_0x55e749(0x12e))]();_0xe7d836[_0x55e749(0xd6)]((0x0,e[_0x55e749(0x10e)])(()=>{const _0x3cfd8b=_0x55e749;_0x4d22a9[_0x3cfd8b(0x149)](_0x3c48f6=>_0x3c48f6[_0x3cfd8b(0xe5)]()),_0x4d22a9[_0x3cfd8b(0xcc)]();})),_0xe7d836[_0x55e749(0xd6)](this[_0x55e749(0x176)]['onCommandExecuted'](_0x43bc1c=>{const _0x238f41=_0x55e749;if(_0x43bc1c[_0x238f41(0x123)]!==e[_0x238f41(0x13e)]['OPERATION']||!this[_0x238f41(0x177)][_0x238f41(0xf0)](_0x43bc1c['id']))return;let {id:_0x48bebf}=_0x43bc1c,_0x4dfb0a;if(_0x4d22a9[_0x238f41(0x15c)](_0x48bebf))_0x4dfb0a=_0x4d22a9['get'](_0x48bebf);else{var _0x2eeb4b;_0x4dfb0a=new c[(_0x238f41(0x137))](),_0x4d22a9[_0x238f41(0xe1)](_0x48bebf,_0x4dfb0a),_0x4dfb0a[_0x238f41(0x120)]((0x0,l['throttleTime'])((_0x2eeb4b=this[_0x238f41(0x16b)]['getConfig'](_0x238f41(0x148)))==null?0xc8:_0x2eeb4b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x238f41(0x17c)](_0x4ebd3e=>{const _0x2669f5=_0x238f41;this[_0x2669f5(0x182)]['send']({'eventID':a['CollaborationEvent'][_0x2669f5(0x163)],'data':{'unitID':this['_unitID'],'operations':{[_0x4ebd3e['id']]:{'id':_0x4ebd3e['id'],'params':JSON[_0x2669f5(0x164)](_0x4ebd3e[_0x2669f5(0xc6)])}}}},this[_0x2669f5(0x126)]);});}_0x4dfb0a[_0x238f41(0x124)](_0x43bc1c);})),this['_liveShareService'][_0x55e749(0x10d)](this[_0x55e749(0x126)])['forEach'](_0x1656da=>this[_0x55e749(0x182)][_0x55e749(0x118)]({'eventID':a[_0x55e749(0x17d)][_0x55e749(0x163)],'data':{'unitID':this['_unitID'],'operations':{[_0x1656da['id']]:{'id':_0x1656da['id'],'params':JSON[_0x55e749(0x164)](_0x1656da['params'])}}}},this[_0x55e749(0x126)]));}[_0x57be82(0x10c)](){const _0x30cf9d=_0x57be82;var _0x4e4806;this[_0x30cf9d(0x170)][_0x30cf9d(0x124)](b[_0x30cf9d(0x14a)]),(_0x4e4806=this[_0x30cf9d(0x183)])==null||_0x4e4806[_0x30cf9d(0x13f)](),this[_0x30cf9d(0x183)]=null;}[_0x57be82(0x16c)](){const _0x4eb0fc=_0x57be82;var _0x445aeb;(_0x445aeb=this[_0x4eb0fc(0x183)])==null||_0x445aeb[_0x4eb0fc(0x13f)](),this[_0x4eb0fc(0x170)]['next'](b[_0x4eb0fc(0x142)]);}[_0x57be82(0xe8)](){const _0x3df83e=_0x57be82;var _0x11d142;this[_0x3df83e(0x170)][_0x3df83e(0x124)](b[_0x3df83e(0x14a)]),(_0x11d142=this['_commandDisposable'])==null||_0x11d142['dispose'](),this[_0x3df83e(0x183)]=null;}[_0x57be82(0xdd)](){const _0x1ea025=_0x57be82;var _0x42b763;this[_0x1ea025(0x170)][_0x1ea025(0x124)](b['NOT_FOLLOWING']),(_0x42b763=this[_0x1ea025(0x183)])==null||_0x42b763[_0x1ea025(0x13f)]();}[_0x57be82(0x112)](_0x4eea2f){const _0x43088a=_0x57be82;if([b['PRESENTING'],b[_0x43088a(0x115)],b[_0x43088a(0x144)]][_0x43088a(0xe6)](this[_0x43088a(0x136)])||!_0x4eea2f[_0x43088a(0x138)]['presenter']||_0x4eea2f['data'][_0x43088a(0xef)]===this['_collabSession'][_0x43088a(0x117)]())return;this[_0x43088a(0x136)]===b[_0x43088a(0x14a)]&&this['_startFollowing']();let _0xb11d33=_0x4eea2f[_0x43088a(0x138)]['operations'];Object['values'](_0xb11d33)['forEach'](_0x22a116=>{const _0x53eed6=_0x43088a;this[_0x53eed6(0x176)][_0x53eed6(0xf7)](_0x22a116['id'],_0x22a116['params']?JSON[_0x53eed6(0xc8)](_0x22a116[_0x53eed6(0xc6)]):null,{'fromCollab':!0x0});});}[_0x57be82(0x107)](){const _0x5d5f63=_0x57be82;var _0x35e3c6;this[_0x5d5f63(0x170)]['next'](b[_0x5d5f63(0x144)]),(_0x35e3c6=this[_0x5d5f63(0x183)])==null||_0x35e3c6[_0x5d5f63(0x13f)]();}[_0x57be82(0x165)](){const _0x33f4a3=_0x57be82;this[_0x33f4a3(0x170)][_0x33f4a3(0x124)](b[_0x33f4a3(0x14a)]),this[_0x33f4a3(0xce)]();}};x=v([_(0x2,e[_0x57be82(0xe9)]),_(0x3,(0x0,e['Inject'])(g)),_(0x4,e['ICommandService'])],x);function S(){const _0x6c2e2c=_0x57be82;let _0x3e2480=(0x0,t[_0x6c2e2c(0xd1)])(y),_0x178897=(0x0,t['useDependency'])(e['IUniverInstanceService']),_0x2c0726=(0x0,t['useObservable'])(()=>_0x178897[_0x6c2e2c(0x17a)](e[_0x6c2e2c(0x103)][_0x6c2e2c(0x13a)]),void 0x0,!0x1,[]),[_0x8c2516,_0x4b676b]=(0x0,i['useState'])(null),[_0x23fb23,_0x29e355]=(0x0,i[_0x6c2e2c(0xf1)])(b[_0x6c2e2c(0x14a)]),_0x241fe6=(0x0,i[_0x6c2e2c(0x168)])(null);return(0x0,i[_0x6c2e2c(0x17e)])(()=>(_0x2c0726&&_0x3e2480[_0x6c2e2c(0x156)](_0x2c0726[_0x6c2e2c(0xed)]())[_0x6c2e2c(0xcb)](_0x2311fc=>{const _0xb475c9=_0x6c2e2c;_0x4b676b(_0x2311fc),_0x241fe6[_0xb475c9(0x179)]=_0x2311fc[_0xb475c9(0x127)][_0xb475c9(0x17c)](_0x459a90=>{_0x29e355(_0x459a90);});}),()=>{const _0x2d85fe=_0x6c2e2c;var _0x2612a9;(_0x2612a9=_0x241fe6['current'])==null||_0x2612a9[_0x2d85fe(0xc4)](),_0x241fe6[_0x2d85fe(0x179)]=null;}),[_0x2c0726,_0x3e2480]),_0x8c2516?(0x0,u[_0x6c2e2c(0x161)])(n[_0x6c2e2c(0xc5)],{'align':_0x6c2e2c(0x11b),'disabled':_0x23fb23===b[_0x6c2e2c(0x144)],'className':_0x6c2e2c(0x132),'overlay':(0x0,u[_0x6c2e2c(0x161)])(C,{'status':_0x23fb23,'coordinator':_0x8c2516}),'children':(0x0,u[_0x6c2e2c(0x161)])(_0x6c2e2c(0x180),{'className':(0x0,n[_0x6c2e2c(0x15a)])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x23fb23===b[_0x6c2e2c(0x144)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x23fb23!==b[_0x6c2e2c(0x144)]}),'type':'button','children':(0x0,u[_0x6c2e2c(0x161)])(r[_0x6c2e2c(0x160)],{'className':_0x6c2e2c(0x11e)})})}):null;}function C(_0x42fdee){const _0x527c07=_0x57be82;let {status:_0x28f3b4,coordinator:_0x2ec964}=_0x42fdee;switch(_0x28f3b4){case b[_0x527c07(0x14a)]:return(0x0,u[_0x527c07(0x161)])(w,{'coordinator':_0x2ec964});case b[_0x527c07(0x142)]:return(0x0,u[_0x527c07(0x161)])(T,{'coordinator':_0x2ec964});case b['NOT_FOLLOWING']:return(0x0,u[_0x527c07(0x161)])(E,{'coordinator':_0x2ec964});case b[_0x527c07(0x144)]:return(0x0,u[_0x527c07(0x161)])(O,{});case b[_0x527c07(0xe0)]:return(0x0,u[_0x527c07(0x161)])(D,{'coordinator':_0x2ec964});default:return null;}}function w(_0x1775a2){const _0x36aeae=_0x57be82;let {coordinator:_0x2a6b0e}=_0x1775a2;return(0x0,u['jsxs'])(u[_0x36aeae(0xd3)],{'children':[(0x0,u[_0x36aeae(0x161)])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x36aeae(0xc7)}),(0x0,u[_0x36aeae(0x161)])(n['Button'],{'onClick':()=>_0x2a6b0e[_0x36aeae(0x116)](),'children':'Start'})]});}function _0x556d(){const _0x276368=['status$','from','map','registerComponent','symbol','_config','LIVESHARE_FETCH_OPERATIONS','DisposableCollection','SetWorksheetActiveOperation','stopPresenting','0.18.0','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-white\x20dark:!univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','connectInjector','_mountLiveShare','487484pNBteD','_status','Subject','data','UniverCollaborationClientPlugin','UNIVER_SHEET','univer-mb-3\x20univer-w-full\x20univer-text-sm','pluginName','BehaviorSubject','CommandType','dispose','iterator','RxDisposable','FOLLOWING','22284DTXoDb','OFFLINE','sessionStatus$','_init','897525rxpwGo','SAME_OPERATION_SHARE_INTERVAL','forEach','IDLE','registerInitialStateReporter','You\x27re\x20presenting\x20the\x20document','registerSharedOperation','toStringTag','SetScrollOperation','738366WaFsNA','requireSession','LiveShare','mutations','DesktopLiveShareController','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getLiveShareCoordinator','offline','length','_sharedOperations','clsx','UNIVER_LIVE_SHARE_PLUGIN','has','mergeOverrideWithDependencies','init','_startLiveShareCoordinator','LiveShareIcon','jsx','memberID','LIVESHARE_OPERATION','stringify','_handleOnline','getTypeOfUnitAdded$','IUniverInstanceService','useRef','DependentOn','You\x27are\x20offline.','_configService','_startFollowing','_handleNewHost','packageName','default','_status$','get','startFollowing','unitId','registerDependencies','You\x27re\x20following\x20the\x20presenter','_commandService','_liveShareService','div','current','getCurrentTypeOfUnit$','decorate','subscribe','CollaborationEvent','useEffect','Injector','button','delete','_collabSession','_commandDisposable','LiveShareCoordinator','unsubscribe','Dropdown','params','Present\x20this\x20document','parse','not-following','getTypeOfUnitDisposed$','then','clear','getOwnPropertyDescriptor','_fetchOperations','call','3227280EnIvdq','useDependency','LiveShareService','Fragment','_entities','SetZoomRatioOperation','add','object','_reporters','105giZoUg','_collabSessionService','getLiveShareCoordinatorSync','_handleNewChangeSets','_stopFollowing','version','NEW_CHANGESETS','PRESENTING','set','takeUntil','getStatus','presenting','complete','includes','HEADER_MENU','_beIdle','IConfigService','text','constructor','override','getUnitId','disposeWithMe','presenter','shouldShareOperation','useState','Button','LiveShareStatus','merge','UniverLiveSharePlugin','Stop\x20presenting','executeCommand','live-share.config','dispose$','asObservable','2498796wxTWaN','ONLINE','_presenter','IUIPartsService','string','idle','_univerInstanceService','@univerjs-pro/live-share','UniverInstanceType','jsxs','Inject','toPrimitive','_handleOffline','40yZyISj','_uiPartsService','LIVESHARE_TERMINATE','UNIVER_UNKNOWN','_stopPresenting','getInitialStates','toDisposable','3128748RzlfdP','BuiltInUIPart','_handleTerminate','_handleOperation','find','stopFollowing','NOT_FOLLOWING','tryStartPresenting','getMemberID','send','reverse','function','end','CollaborationSessionService','onStarting','univer-size-4','_injector','pipe','createInstance','Disposable','type','next','defineProperty','_unitID'];_0x556d=function(){return _0x276368;};return _0x556d();}function T(_0x18cb7c){const _0x2663ad=_0x57be82;let {coordinator:_0x3a8628}=_0x18cb7c;return(0x0,u['jsxs'])(u['Fragment'],{'children':[(0x0,u[_0x2663ad(0x161)])(_0x2663ad(0x178),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2663ad(0x175)}),(0x0,u[_0x2663ad(0x161)])(n[_0x2663ad(0xf2)],{'onClick':()=>_0x3a8628['stopFollowing'](),'children':'Stop\x20following'})]});}function E(_0x308831){const _0x4c4934=_0x57be82;let {coordinator:_0x45992b}=_0x308831;return(0x0,u[_0x4c4934(0x104)])(u[_0x4c4934(0xd3)],{'children':[(0x0,u['jsx'])(_0x4c4934(0x178),{'className':_0x4c4934(0x13b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,u[_0x4c4934(0x161)])(n[_0x4c4934(0xf2)],{'variant':_0x4c4934(0xea),'onClick':()=>_0x45992b[_0x4c4934(0x172)](),'children':'Start\x20following'})]});}function D(_0x31e7a4){const _0x522fff=_0x57be82;let {coordinator:_0x5710de}=_0x31e7a4;return(0x0,u['jsxs'])(u[_0x522fff(0xd3)],{'children':[(0x0,u[_0x522fff(0x161)])(_0x522fff(0x178),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x522fff(0x14c)}),(0x0,u[_0x522fff(0x161)])(n[_0x522fff(0xf2)],{'variant':_0x522fff(0x16f),'onClick':()=>_0x5710de['stopPresenting'](),'children':_0x522fff(0xf6)})]});}function O(){const _0x235a1d=_0x57be82;return(0x0,u['jsx'])(u[_0x235a1d(0xd3)],{'children':_0x235a1d(0x16a)});}let k=class extends e[_0x57be82(0x122)]{constructor(_0x3f91d2,_0x56243c){const _0x503a42=_0x57be82;super(),this[_0x503a42(0x11f)]=_0x3f91d2,this[_0x503a42(0x109)]=_0x56243c,this[_0x503a42(0x134)]();}[_0x57be82(0x134)](){const _0x1409f2=_0x57be82;this[_0x1409f2(0xee)](this[_0x1409f2(0x109)][_0x1409f2(0x12a)](t[_0x1409f2(0x110)][_0x1409f2(0xe7)],()=>(0x0,t[_0x1409f2(0x133)])(S,this[_0x1409f2(0x11f)])));}};k=v([_(0x0,(0x0,e[_0x57be82(0x105)])(e[_0x57be82(0x17f)])),_(0x1,t[_0x57be82(0xfe)])],k);var A=_0x57be82(0x102),j=_0x57be82(0x131);const M=_0x57be82(0xf8);Symbol(M);const N={};let P=class extends e[_0x57be82(0x122)]{constructor(_0x58e4f9){const _0x5f2c87=_0x57be82;super(),this['_liveShareService']=_0x58e4f9,this[_0x5f2c87(0x146)]();}[_0x57be82(0x146)](){const _0x2bf41c=_0x57be82;[d[_0x2bf41c(0xd5)]['id'],d[_0x2bf41c(0x14f)]['id'],s[_0x2bf41c(0x12f)]['id']][_0x2bf41c(0x149)](_0xc7ec53=>{const _0x3a65d0=_0x2bf41c;this[_0x3a65d0(0xee)](this[_0x3a65d0(0x177)][_0x3a65d0(0x14d)](_0xc7ec53));});}};P=v([_(0x0,(0x0,e[_0x57be82(0x105)])(g))],P);function _0x56a0(_0x3c0b7e,_0x2bd3ac){_0x3c0b7e=_0x3c0b7e-0xc3;const _0x556d3e=_0x556d();let _0x56a08c=_0x556d3e[_0x3c0b7e];return _0x56a08c;}let F=class extends e['Plugin']{constructor(_0x1de3b2=N,_0x2c5438,_0x49a038){const _0x34c21a=_0x57be82;super(),this[_0x34c21a(0x12c)]=_0x1de3b2,this['_injector']=_0x2c5438,this[_0x34c21a(0x16b)]=_0x49a038;let {..._0x4de9f9}=(0x0,e[_0x34c21a(0xf4)])({},N,this[_0x34c21a(0x12c)]);this[_0x34c21a(0x16b)]['setConfig'](M,_0x4de9f9);}[_0x57be82(0x11d)](){const _0x2e52b7=_0x57be82;(0x0,e[_0x2e52b7(0x174)])(this[_0x2e52b7(0x11f)],(0x0,e[_0x2e52b7(0x15d)])([[g],[y],[P],[k]],this['_config'][_0x2e52b7(0xec)])),(0x0,e['touchDependencies'])(this[_0x2e52b7(0x11f)],[[P]]);}['onRendered'](){const _0x19fb8e=_0x57be82;(0x0,e['touchDependencies'])(this[_0x19fb8e(0x11f)],[[k]]);}};h(F,_0x57be82(0x123),e['UniverInstanceType'][_0x57be82(0x10b)]),h(F,_0x57be82(0x13c),_0x57be82(0x15b)),h(F,_0x57be82(0x16e),A),h(F,_0x57be82(0xde),j),F=v([(0x0,e[_0x57be82(0x169)])(o[_0x57be82(0x139)]),_(0x1,(0x0,e[_0x57be82(0x105)])(e['Injector'])),_(0x2,e['IConfigService'])],F),Object[_0x57be82(0x125)](exports,_0x57be82(0x154),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x57be82(0x152)]=S,Object[_0x57be82(0x125)](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return y;}}),Object[_0x57be82(0x125)](exports,_0x57be82(0xc3),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x57be82(0xd2)]=g,exports[_0x57be82(0xf3)]=b,Object[_0x57be82(0x125)](exports,_0x57be82(0xf5),{'enumerable':!0x0,'get':function(){return F;}});
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x5aaba5=_0x11e1;(function(_0x15805a,_0x3a2fd2){const _0x57dc53=_0x11e1,_0x40c434=_0x15805a();while(!![]){try{const _0x5e0e16=parseInt(_0x57dc53(0x6e))/0x1+parseInt(_0x57dc53(0x7b))/0x2*(parseInt(_0x57dc53(0x79))/0x3)+-parseInt(_0x57dc53(0x78))/0x4+parseInt(_0x57dc53(0x77))/0x5*(parseInt(_0x57dc53(0x72))/0x6)+parseInt(_0x57dc53(0x82))/0x7+-parseInt(_0x57dc53(0x83))/0x8+parseInt(_0x57dc53(0x67))/0x9*(-parseInt(_0x57dc53(0x6f))/0xa);if(_0x5e0e16===_0x3a2fd2)break;else _0x40c434['push'](_0x40c434['shift']());}catch(_0x1811b6){_0x40c434['push'](_0x40c434['shift']());}}}(_0x1073,0x9f20e));var l=Object[_0x5aaba5(0x80)],w=(_0x5b2100,_0x5738f0,_0x50fccd)=>_0x5738f0 in _0x5b2100?l(_0x5b2100,_0x5738f0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50fccd}):_0x5b2100[_0x5738f0]=_0x50fccd,v=(_0x3f1c3f,_0x570807,_0x27ca90)=>w(_0x3f1c3f,typeof _0x570807!=_0x5aaba5(0x74)?_0x570807+'':_0x570807,_0x27ca90);import{LiveShareController as _0x4101c0,LiveShareStatus as _0x463cf2}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x4c3631,UniverInstanceType as _0x40b138}from'@univerjs/core';import{FUniver as _0x15dc42,FEnum as _0x3b6292}from'@univerjs/core/facade';function _0x11e1(_0xfa6d81,_0x13a1a1){_0xfa6d81=_0xfa6d81-0x65;const _0x107312=_0x1073();let _0x11e152=_0x107312[_0xfa6d81];return _0x11e152;}class g extends _0x15dc42{constructor(){const _0x8ab330=_0x5aaba5;super(...arguments),v(this,_0x8ab330(0x70));}[_0x5aaba5(0x76)](_0x419d33){this['_liveShareController']=_0x419d33['get'](_0x4101c0);}[_0x5aaba5(0x6a)](){const _0x5f428a=_0x5aaba5;var _0x5d096b;const _0x517366=this[_0x5f428a(0x81)][_0x5f428a(0x7d)](_0x4c3631)['getCurrentUnitOfType'](_0x40b138[_0x5f428a(0x66)]);if(!_0x517366)throw new Error('No\x20active\x20workbook\x20found.');const _0x4e9738=_0x517366['getUnitId'](),_0x3f9b03=this[_0x5f428a(0x70)][_0x5f428a(0x71)](_0x4e9738);return(_0x5d096b=_0x3f9b03==null?void 0x0:_0x3f9b03['getStatus']())!=null?_0x5d096b:_0x463cf2[_0x5f428a(0x75)];}[_0x5aaba5(0x6d)](){const _0x5a41f0=_0x5aaba5,_0x26711f=this['_injector'][_0x5a41f0(0x7d)](_0x4c3631)['getCurrentUnitOfType'](_0x40b138[_0x5a41f0(0x66)]);if(!_0x26711f)throw new Error(_0x5a41f0(0x68));const _0x563e7a=_0x26711f[_0x5a41f0(0x73)](),_0xdebc9d=this['_liveShareController'][_0x5a41f0(0x71)](_0x563e7a);if(!_0xdebc9d)throw new Error(_0x5a41f0(0x7e));_0xdebc9d['startFollowing']();}[_0x5aaba5(0x7f)](){const _0x53fe39=_0x5aaba5,_0x59e4ca=this[_0x53fe39(0x81)][_0x53fe39(0x7d)](_0x4c3631)['getCurrentUnitOfType'](_0x40b138[_0x53fe39(0x66)]);if(!_0x59e4ca)throw new Error(_0x53fe39(0x68));const _0x309124=_0x59e4ca[_0x53fe39(0x73)](),_0x3f9641=this['_liveShareController'][_0x53fe39(0x71)](_0x309124);if(!_0x3f9641)throw new Error(_0x53fe39(0x7e));_0x3f9641[_0x53fe39(0x7f)]();}[_0x5aaba5(0x6b)](){const _0x36315a=_0x5aaba5,_0x5f323c=this[_0x36315a(0x81)][_0x36315a(0x7d)](_0x4c3631)[_0x36315a(0x69)](_0x40b138[_0x36315a(0x66)]);if(!_0x5f323c)throw new Error(_0x36315a(0x68));const _0x218970=_0x5f323c[_0x36315a(0x73)](),_0x184fbb=this[_0x36315a(0x70)]['getLiveShareCoordinatorSync'](_0x218970);if(!_0x184fbb)throw new Error(_0x36315a(0x7e));_0x184fbb[_0x36315a(0x65)]();}[_0x5aaba5(0x7c)](){const _0x5a5005=_0x5aaba5,_0x3d00e4=this[_0x5a5005(0x81)][_0x5a5005(0x7d)](_0x4c3631)[_0x5a5005(0x69)](_0x40b138[_0x5a5005(0x66)]);if(!_0x3d00e4)throw new Error(_0x5a5005(0x68));const _0x12704b=_0x3d00e4[_0x5a5005(0x73)](),_0x4e1554=this[_0x5a5005(0x70)][_0x5a5005(0x71)](_0x12704b);if(!_0x4e1554)throw new Error(_0x5a5005(0x7e));_0x4e1554['stopPresenting']();}}_0x15dc42[_0x5aaba5(0x7a)](g);class f extends _0x3b6292{get[_0x5aaba5(0x6c)](){return _0x463cf2;}}function _0x1073(){const _0x378a25=['_liveShareController','getLiveShareCoordinatorSync','12siWhER','getUnitId','symbol','IDLE','_initialize','1061915RYbhTJ','1986288bjsEVG','406857KZlBjM','extend','16hKnBgo','stopPresenting','get','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopFollowing','defineProperty','_injector','6463926BrYzbG','7946016KNoPSB','tryStartPresenting','UNIVER_SHEET','18ISIPPV','No\x20active\x20workbook\x20found.','getCurrentUnitOfType','getLiveShareStatus','startPresenting','LiveShareStatusEnum','startFollowing','1236434hRvKRx','7639780WnMYhR'];_0x1073=function(){return _0x378a25;};return _0x1073();}_0x3b6292[_0x5aaba5(0x7a)](f);
1
+ const _0x44158b=_0x3c36;(function(_0x63ccab,_0x4322bf){const _0x5a7554=_0x3c36,_0x17a52f=_0x63ccab();while(!![]){try{const _0x2a14a8=-parseInt(_0x5a7554(0x141))/0x1+parseInt(_0x5a7554(0x146))/0x2+-parseInt(_0x5a7554(0x132))/0x3*(-parseInt(_0x5a7554(0x147))/0x4)+-parseInt(_0x5a7554(0x129))/0x5*(parseInt(_0x5a7554(0x138))/0x6)+parseInt(_0x5a7554(0x13f))/0x7*(-parseInt(_0x5a7554(0x12b))/0x8)+-parseInt(_0x5a7554(0x145))/0x9+parseInt(_0x5a7554(0x12c))/0xa*(parseInt(_0x5a7554(0x148))/0xb);if(_0x2a14a8===_0x4322bf)break;else _0x17a52f['push'](_0x17a52f['shift']());}catch(_0x30613f){_0x17a52f['push'](_0x17a52f['shift']());}}}(_0x4558,0xda8fd));import{LiveShareController as _0x25079d,LiveShareStatus as _0x28692b}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x1b09ac,UniverInstanceType as _0xbc6d5b}from'@univerjs/core';import{FEnum as _0x4463a8,FUniver as _0x50a04a}from'@univerjs/core/facade';function o(_0x54cc69){'@babel/helpers - typeof';const _0x56d6fd=_0x3c36;return o=typeof Symbol==_0x56d6fd(0x13a)&&typeof Symbol[_0x56d6fd(0x131)]=='symbol'?function(_0x1664cf){return typeof _0x1664cf;}:function(_0x47ac38){const _0x305a18=_0x56d6fd;return _0x47ac38&&typeof Symbol==_0x305a18(0x13a)&&_0x47ac38['constructor']===Symbol&&_0x47ac38!==Symbol[_0x305a18(0x130)]?_0x305a18(0x137):typeof _0x47ac38;},o(_0x54cc69);}function s(_0x3df2ce,_0x62faa1){const _0x1e3a96=_0x3c36;if(o(_0x3df2ce)!='object'||!_0x3df2ce)return _0x3df2ce;var _0x4e47e1=_0x3df2ce[Symbol[_0x1e3a96(0x12a)]];if(_0x4e47e1!==void 0x0){var _0x6577c=_0x4e47e1['call'](_0x3df2ce,_0x62faa1||'default');if(o(_0x6577c)!='object')return _0x6577c;throw TypeError(_0x1e3a96(0x13c));}return(_0x62faa1==='string'?String:Number)(_0x3df2ce);}function c(_0x3efa4e){const _0xaa5b56=_0x3c36;var _0x55f31b=s(_0x3efa4e,_0xaa5b56(0x135));return o(_0x55f31b)==_0xaa5b56(0x137)?_0x55f31b:_0x55f31b+'';}function l(_0xbe7cfd,_0x460717,_0x187ada){const _0x5d54d6=_0x3c36;return(_0x460717=c(_0x460717))in _0xbe7cfd?Object[_0x5d54d6(0x13d)](_0xbe7cfd,_0x460717,{'value':_0x187ada,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xbe7cfd[_0x460717]=_0x187ada,_0xbe7cfd;}var u=class extends _0x50a04a{constructor(..._0x2efe95){const _0x2ed626=_0x3c36;super(..._0x2efe95),l(this,_0x2ed626(0x14d),void 0x0);}[_0x44158b(0x144)](_0x5ea3a4){const _0x325b78=_0x44158b;this['_liveShareController']=_0x5ea3a4[_0x325b78(0x136)](_0x25079d);}[_0x44158b(0x134)](){const _0x51596e=_0x44158b;var _0x51dcae;let _0x3247b1=this[_0x51596e(0x12e)][_0x51596e(0x136)](_0x1b09ac)[_0x51596e(0x12f)](_0xbc6d5b[_0x51596e(0x143)]);if(!_0x3247b1)throw Error(_0x51596e(0x13b));let _0x543804=_0x3247b1[_0x51596e(0x139)](),_0x337c9a=this[_0x51596e(0x14d)][_0x51596e(0x140)](_0x543804);return(_0x51dcae=_0x337c9a==null?void 0x0:_0x337c9a[_0x51596e(0x13e)]())==null?_0x28692b[_0x51596e(0x14c)]:_0x51dcae;}[_0x44158b(0x12d)](){const _0x2abad0=_0x44158b;let _0x1c996b=this[_0x2abad0(0x12e)][_0x2abad0(0x136)](_0x1b09ac)['getCurrentUnitOfType'](_0xbc6d5b[_0x2abad0(0x143)]);if(!_0x1c996b)throw Error(_0x2abad0(0x13b));let _0x44e215=_0x1c996b['getUnitId'](),_0x22eb7a=this[_0x2abad0(0x14d)][_0x2abad0(0x140)](_0x44e215);if(!_0x22eb7a)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x22eb7a[_0x2abad0(0x12d)]();}['stopFollowing'](){const _0x326135=_0x44158b;let _0x27a120=this['_injector'][_0x326135(0x136)](_0x1b09ac)[_0x326135(0x12f)](_0xbc6d5b[_0x326135(0x143)]);if(!_0x27a120)throw Error(_0x326135(0x13b));let _0x26ea80=_0x27a120[_0x326135(0x139)](),_0x188bd7=this[_0x326135(0x14d)][_0x326135(0x140)](_0x26ea80);if(!_0x188bd7)throw Error(_0x326135(0x149));_0x188bd7[_0x326135(0x142)]();}['startPresenting'](){const _0x5014ba=_0x44158b;let _0x568141=this['_injector'][_0x5014ba(0x136)](_0x1b09ac)[_0x5014ba(0x12f)](_0xbc6d5b['UNIVER_SHEET']);if(!_0x568141)throw Error(_0x5014ba(0x13b));let _0x45f9c1=_0x568141['getUnitId'](),_0x36f844=this[_0x5014ba(0x14d)]['getLiveShareCoordinatorSync'](_0x45f9c1);if(!_0x36f844)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x36f844[_0x5014ba(0x14e)]();}[_0x44158b(0x14a)](){const _0x11ab80=_0x44158b;let _0x325ab3=this[_0x11ab80(0x12e)][_0x11ab80(0x136)](_0x1b09ac)[_0x11ab80(0x12f)](_0xbc6d5b[_0x11ab80(0x143)]);if(!_0x325ab3)throw Error(_0x11ab80(0x13b));let _0x221d67=_0x325ab3[_0x11ab80(0x139)](),_0x219297=this['_liveShareController'][_0x11ab80(0x140)](_0x221d67);if(!_0x219297)throw Error(_0x11ab80(0x149));_0x219297[_0x11ab80(0x14a)]();}};_0x50a04a[_0x44158b(0x14b)](u);function _0x4558(){const _0x51f193=['getLiveShareCoordinatorSync','1562559ntpetW','stopFollowing','UNIVER_SHEET','_initialize','15645249bxVRDK','1721902vMaOnt','16dDJAXB','55YBNFBI','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','extend','IDLE','_liveShareController','tryStartPresenting','385jtlUWS','toPrimitive','3405704FOPYjZ','7856950jwPJgk','startFollowing','_injector','getCurrentUnitOfType','prototype','iterator','908931WIqSLZ','LiveShareStatusEnum','getLiveShareStatus','string','get','symbol','7974YOAsug','getUnitId','function','No\x20active\x20workbook\x20found.','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','defineProperty','getStatus','28dkMydE'];_0x4558=function(){return _0x51f193;};return _0x4558();}function _0x3c36(_0x58f824,_0x592433){_0x58f824=_0x58f824-0x129;const _0x455891=_0x4558();let _0x3c364c=_0x455891[_0x58f824];return _0x3c364c;}var d=class extends _0x4463a8{get[_0x44158b(0x133)](){return _0x28692b;}};_0x4463a8[_0x44158b(0x14b)](d);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4d6d62=_0xa948;(function(_0x5363a2,_0x244f3a){const _0x51ccf9=_0xa948,_0x28c602=_0x5363a2();while(!![]){try{const _0x335db0=parseInt(_0x51ccf9(0x143))/0x1*(parseInt(_0x51ccf9(0x16f))/0x2)+-parseInt(_0x51ccf9(0x1e2))/0x3+-parseInt(_0x51ccf9(0x1be))/0x4+parseInt(_0x51ccf9(0x144))/0x5*(parseInt(_0x51ccf9(0x13a))/0x6)+-parseInt(_0x51ccf9(0x1a5))/0x7+parseInt(_0x51ccf9(0x1de))/0x8+parseInt(_0x51ccf9(0x1e3))/0x9;if(_0x335db0===_0x244f3a)break;else _0x28c602['push'](_0x28c602['shift']());}catch(_0x2fee8d){_0x28c602['push'](_0x28c602['shift']());}}}(_0xf474,0xcb402));var K=Object[_0x4d6d62(0x14e)],q=(_0x3d5420,_0x327387,_0x324a93)=>_0x327387 in _0x3d5420?K(_0x3d5420,_0x327387,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x324a93}):_0x3d5420[_0x327387]=_0x324a93,u=(_0x3c5382,_0x5acf43,_0x15a42e)=>q(_0x3c5382,typeof _0x5acf43!='symbol'?_0x5acf43+'':_0x5acf43,_0x15a42e);import{Disposable as _0x323dd8,toDisposable as _0xa8d7d4,Inject as _0x51d972,Injector as _0xcf8b4b,RxDisposable as _0x5887f9,UniverInstanceType as _0x3230f4,DisposableCollection as _0x535b9d,CommandType as _0x237676,IUniverInstanceService as _0x181778,IConfigService as _0x1db153,ICommandService as _0x27b1d3,DependentOn as _0x290c90,Plugin as _0x3b3755,merge as _0x2b1cea,registerDependencies as _0x11f1e4,mergeOverrideWithDependencies as _0x54ad4b,touchDependencies as _0x2c8ee3}from'@univerjs/core';import{useDependency as _0x58ad3e,useObservable as _0x21f95e,BuiltInUIPart as _0x16d518,connectInjector as _0xa38e19,IUIPartsService as _0x4b4e35}from'@univerjs/ui';import{jsx as _0x375672,jsxs as _0x3671e9,Fragment as _0xb86804}from'react/jsx-runtime';import{Dropdown as _0x22b2fe,clsx as _0x5ce4bb,Button as _0x491c82}from'@univerjs/design';import{useRef as _0x31a51e,createElement as _0x585d5f,forwardRef as _0x5ba13f,useState as _0x50d273,useEffect as _0x637d7a}from'react';import{CollaborationEvent as _0x1c46df,parseProtocolChangeset as _0x53ebe4}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5d4a23,SessionStatus as _0x2fbc42,UniverCollaborationClientPlugin as _0x49f19d}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xae9bf6,SetWorksheetActiveOperation as _0x2461ad}from'@univerjs/sheets';import{BehaviorSubject as _0x59ad45,Subject as _0x21afba}from'rxjs';import{takeUntil as _0x3c7564,throttleTime as _0x3d9c65}from'rxjs/operators';import{SetZoomRatioOperation as _0x114d12,SetScrollOperation as _0x9a2160}from'@univerjs/sheets-ui';function W({ref:_0x48f7cb,..._0x3d665b}){const _0x463001=_0x4d6d62,{icon:_0x5d94ee,id:_0x21daf0,className:_0x451cf9,extend:_0x5d0922,..._0x38ea43}=_0x3d665b,_0x42270f=(_0x463001(0x1b6)+_0x21daf0+'\x20'+(_0x451cf9||''))[_0x463001(0x147)](),_0x532d61=_0x31a51e('_'+we());return G(_0x5d94ee,''+_0x21daf0,{'defIds':_0x5d94ee[_0x463001(0x1df)],'idSuffix':_0x532d61[_0x463001(0x186)]},{'ref':_0x48f7cb,'className':_0x42270f,..._0x38ea43},_0x5d0922);}function G(_0x193c04,_0x3f91c0,_0x5baa52,_0x4adc32,_0x3f9cc9){const _0x413ed0=_0x4d6d62;return _0x585d5f(_0x193c04[_0x413ed0(0x193)],{'key':_0x3f91c0,...Ee(_0x193c04,_0x5baa52,_0x3f9cc9),..._0x4adc32},(Oe(_0x193c04,_0x5baa52)[_0x413ed0(0x1ca)]||[])[_0x413ed0(0x19b)]((_0x4910fb,_0x16b700)=>G(_0x4910fb,_0x3f91c0+'-'+_0x193c04[_0x413ed0(0x193)]+'-'+_0x16b700,_0x5baa52,void 0x0,_0x3f9cc9)));}function Ee(_0x583c55,_0x5d01d4,_0x366463){const _0x540984=_0x4d6d62,_0x440da9={..._0x583c55[_0x540984(0x187)]};_0x366463!=null&&_0x366463[_0x540984(0x1c9)]&&_0x440da9[_0x540984(0x1d8)]===_0x540984(0x1c9)&&(_0x440da9[_0x540984(0x1d8)]=_0x366463[_0x540984(0x1c9)]),_0x583c55[_0x540984(0x193)]===_0x540984(0x182)&&_0x440da9['id']&&(_0x440da9['id']=_0x440da9['id']+_0x5d01d4[_0x540984(0x177)]),Object['entries'](_0x440da9)[_0x540984(0x13d)](([_0x392a22,_0x41395d])=>{const _0x160c05=_0x540984;_0x392a22==='mask'&&typeof _0x41395d==_0x160c05(0x135)&&(_0x440da9[_0x392a22]=_0x41395d[_0x160c05(0x167)](/url\(#(.*)\)/,_0x160c05(0x1d7)+_0x5d01d4[_0x160c05(0x177)]+')'));});const {defIds:_0x5ea405}=_0x5d01d4;return!_0x5ea405||_0x5ea405['length']===0x0||(_0x583c55[_0x540984(0x193)]===_0x540984(0x18e)&&_0x440da9[_0x540984(0x1c1)]&&(_0x440da9[_0x540984(0x1c1)]=_0x440da9[_0x540984(0x1c1)]+_0x5d01d4['idSuffix']),Object[_0x540984(0x16e)](_0x440da9)[_0x540984(0x13d)](([_0x41e109,_0x57cdf8])=>{const _0x13a39b=_0x540984;typeof _0x57cdf8==_0x13a39b(0x135)&&(_0x440da9[_0x41e109]=_0x57cdf8[_0x13a39b(0x167)](/url\(#(.*)\)/,_0x13a39b(0x1d7)+_0x5d01d4[_0x13a39b(0x177)]+')'));})),_0x440da9;}function Oe(_0x9ed9f6,_0x154e67){const _0xf8687=_0x4d6d62;var _0x438ad3;const {defIds:_0x5d57a4}=_0x154e67;return!_0x5d57a4||_0x5d57a4[_0xf8687(0x19a)]===0x0?_0x9ed9f6:_0x9ed9f6[_0xf8687(0x193)]==='defs'&&((_0x438ad3=_0x9ed9f6[_0xf8687(0x1ca)])!=null&&_0x438ad3['length'])?{..._0x9ed9f6,'children':_0x9ed9f6['children']['map'](_0x506c9f=>typeof _0x506c9f[_0xf8687(0x187)]['id']==_0xf8687(0x135)&&_0x5d57a4&&_0x5d57a4['includes'](_0x506c9f[_0xf8687(0x187)]['id'])?{..._0x506c9f,'attrs':{..._0x506c9f[_0xf8687(0x187)],'id':_0x506c9f[_0xf8687(0x187)]['id']+_0x154e67[_0xf8687(0x177)]}}:_0x506c9f)}:_0x9ed9f6;}function we(){const _0x37b0f2=_0x4d6d62;return Math['random']()[_0x37b0f2(0x1ba)](0x24)[_0x37b0f2(0x15b)](0x2,0x8);}W[_0x4d6d62(0x152)]=_0x4d6d62(0x13c);const Ne={'tag':_0x4d6d62(0x15e),'attrs':{'xmlns':_0x4d6d62(0x1e1),'fill':_0x4d6d62(0x19c),'viewBox':_0x4d6d62(0x149),'width':_0x4d6d62(0x136),'height':'1em'},'children':[{'tag':_0x4d6d62(0x153),'attrs':{'fill':_0x4d6d62(0x1db),'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':_0x4d6d62(0x153),'attrs':{'fill':_0x4d6d62(0x1db),'d':_0x4d6d62(0x17d),'fillRule':_0x4d6d62(0x19f),'clipRule':'evenodd'}}]},Y=_0x5ba13f(function(_0x355295,_0x1cd8de){const _0x31487e=_0x4d6d62;return _0x585d5f(W,Object[_0x31487e(0x1cd)]({},_0x355295,{'id':_0x31487e(0x185),'ref':_0x1cd8de,'icon':Ne}));});Y[_0x4d6d62(0x152)]=_0x4d6d62(0x17b);class R extends _0x323dd8{constructor(){const _0x1ee40e=_0x4d6d62;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x1ee40e(0x194),new Set());}[_0x4d6d62(0x1c8)](_0x327016){const _0x54f926=_0x4d6d62;return this[_0x54f926(0x176)]['add'](_0x327016),_0xa8d7d4(()=>this[_0x54f926(0x176)][_0x54f926(0x184)](_0x327016));}['registerInitialStateReporter'](_0x243199){const _0x3c95dc=_0x4d6d62;return this['_reporters'][_0x3c95dc(0x1c3)](_0x243199),_0xa8d7d4(()=>this[_0x3c95dc(0x194)][_0x3c95dc(0x184)](_0x243199));}['shouldShareOperation'](_0x64e66a){const _0x1d4be6=_0x4d6d62;return this[_0x1d4be6(0x176)][_0x1d4be6(0x1c6)](_0x64e66a);}[_0x4d6d62(0x1da)](_0x377235){const _0x2d0950=_0x4d6d62;return Array[_0x2d0950(0x1a9)](this['_reporters'])[_0x2d0950(0x19b)](_0x6a6b4d=>_0x6a6b4d(_0x377235));}}var Ce=Object['getOwnPropertyDescriptor'],B=(_0x584ab8,_0x118b31,_0x103978,_0x149c43)=>{const _0x16ad56=_0x4d6d62;for(var _0x4cc434=_0x149c43>0x1?void 0x0:_0x149c43?Ce(_0x118b31,_0x103978):_0x118b31,_0x53d49e=_0x584ab8[_0x16ad56(0x19a)]-0x1,_0x35c765;_0x53d49e>=0x0;_0x53d49e--)(_0x35c765=_0x584ab8[_0x53d49e])&&(_0x4cc434=_0x35c765(_0x4cc434)||_0x4cc434);return _0x4cc434;},_=(_0x593f98,_0x4432b9)=>(_0x401731,_0x1df4ce)=>_0x4432b9(_0x401731,_0x1df4ce,_0x593f98);function _0xa948(_0x313343,_0x4fa916){_0x313343=_0x313343-0x135;const _0xf474a0=_0xf474();let _0xa94884=_0xf474a0[_0x313343];return _0xa94884;}let m=class extends _0x5887f9{constructor(_0x2714c9,_0x351b74,_0x37c4ce){const _0x568e4d=_0x4d6d62;super(),u(this,_0x568e4d(0x1a0),new Map()),(this[_0x568e4d(0x159)]=_0x2714c9,this[_0x568e4d(0x17f)]=_0x351b74,this[_0x568e4d(0x1bd)]=_0x37c4ce,this['_init']());}async['getLiveShareCoordinator'](_0x26a1c0){const _0x746a7e=_0x4d6d62;return this[_0x746a7e(0x1a0)][_0x746a7e(0x1c6)](_0x26a1c0)||await this[_0x746a7e(0x157)](_0x26a1c0),this[_0x746a7e(0x1a0)][_0x746a7e(0x169)](_0x26a1c0);}['getLiveShareCoordinatorSync'](_0x4f7125){const _0x2a0a93=_0x4d6d62;var _0x1173e9;return(_0x1173e9=this[_0x2a0a93(0x1a0)][_0x2a0a93(0x169)](_0x4f7125))!=null?_0x1173e9:null;}[_0x4d6d62(0x137)](){const _0x3aae69=_0x4d6d62;this[_0x3aae69(0x159)]['getTypeOfUnitAdded$'](_0x3230f4[_0x3aae69(0x1ad)])[_0x3aae69(0x178)](_0x3c7564(this['dispose$']))[_0x3aae69(0x1bf)](async _0x1be165=>{const _0x520fd3=_0x3aae69,_0x9663f3=_0x1be165['getUnitId']();this[_0x520fd3(0x1a0)][_0x520fd3(0x1c6)](_0x9663f3)||this[_0x520fd3(0x157)](_0x9663f3);}),this[_0x3aae69(0x159)][_0x3aae69(0x1d5)](_0x3230f4[_0x3aae69(0x1ad)])['pipe'](_0x3c7564(this[_0x3aae69(0x13e)]))['subscribe'](_0x5d9e82=>{const _0x1adb1f=_0x3aae69,_0x21668a=_0x5d9e82[_0x1adb1f(0x13b)](),_0x11a7c6=this[_0x1adb1f(0x1a0)][_0x1adb1f(0x169)](_0x21668a);_0x11a7c6==null||_0x11a7c6[_0x1adb1f(0x1c7)]();});}async['_startLiveShareCoordinator'](_0x1a81a4){const _0x233370=_0x4d6d62,_0xea2d2e=await this[_0x233370(0x1bd)][_0x233370(0x151)](_0x1a81a4),_0x59e85c=this[_0x233370(0x17f)][_0x233370(0x192)](C,_0x1a81a4,_0xea2d2e);return _0x59e85c['init'](),this[_0x233370(0x1a0)][_0x233370(0x195)](_0x1a81a4,_0x59e85c),_0x59e85c;}};m=B([_(0x0,_0x181778),_(0x1,_0x51d972(_0xcf8b4b)),_(0x2,_0x51d972(_0x5d4a23))],m);var c=(_0xe472ec=>(_0xe472ec[_0x4d6d62(0x174)]=_0x4d6d62(0x140),_0xe472ec['IDLE']='idle',_0xe472ec[_0x4d6d62(0x1dd)]='following',_0xe472ec[_0x4d6d62(0x196)]=_0x4d6d62(0x190),_0xe472ec[_0x4d6d62(0x158)]=_0x4d6d62(0x1d1),_0xe472ec))(c||{});const De='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;function _0xf474(){const _0x26341f=['_startFollowing','FOLLOWING','4799352rKUtbc','defIds','asObservable','http://www.w3.org/2000/svg','1798437hcnhVz','6559641LifFAj','string','1em','_init','_commandService','send','42138FuTmFz','getUnitId','UniverIcon','forEach','dispose$','div','offline','tryStartPresenting','stringify','57431fMclkr','595CigHnA','_status$','following','trim','Present\x20this\x20document','0\x200\x2017\x2017','registerComponent','pluginName','getLiveShareCoordinator','sessionStatus$','defineProperty','UNIVER_UNKNOWN','version','requireSession','displayName','path','LIVESHARE_TERMINATE','LIVESHARE_OPERATION','_collabSession','_startLiveShareCoordinator','PRESENTING','_univerInstanceService','reverse','substring','live-share.config','_configService','svg','univer-mb-3\x20univer-w-full\x20univer-text-sm','init','IDLE','You\x27re\x20not\x20following\x20the\x20presenter','presenter','then','disposeWithMe','You\x27are\x20offline.','replace','shouldShareOperation','get','ONLINE','name','UNIVER_LIVE_SHARE_PLUGIN','_beIdle','entries','14VixfrW','You\x27re\x20following\x20the\x20presenter','_mountLiveShare','getCurrentTypeOfUnit$','getOwnPropertyDescriptor','OFFLINE','_handleNewHost','_sharedOperations','idSuffix','pipe','_commandDisposable','Start','LiveShareIcon','OPERATION','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','values','_injector','_handleTerminate','_config','mask','sheet','delete','live-share-icon','current','attrs','idle','find','stopPresenting','You\x27re\x20presenting\x20the\x20document','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','onStarting','use','@univerjs-pro/live-share','not-following','getMemberID','createInstance','tag','_reporters','set','NOT_FOLLOWING','type','_liveShareService','setConfig','length','map','none','executeCommand','HEADER_MENU','evenodd','_entities','complete','end','packageName','_stopFollowing','4078872BEyboA','text','LIVESHARE_NEW_HOST','univer-size-4','from','_handleNewChangeSets','_presenter','_unitID','UNIVER_SHEET','0.17.0','Stop\x20presenting','status$','event$','params','NEW_CHANGESETS','operations','override','univerjs-icon\x20univerjs-icon-','_stopPresenting','_handleOffline','next','toString','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','_collabSessionService','2207332DSjwFh','subscribe','symbol','xlink:href','default','add','_handleOnline','clear','has','dispose','registerSharedOperation','colorChannel1','children','onRendered','unsubscribe','assign','LIVESHARE_FETCH_OPERATIONS','data','_status','presenting','LIVESHARE_REQUEST_HOST','_handleOperation','startFollowing','getTypeOfUnitDisposed$','stopFollowing','url(#$1','fill','button','getInitialStates','currentColor'];_0xf474=function(){return _0x26341f;};return _0xf474();}let C=class extends _0x5887f9{constructor(_0x123129,_0x3cc1ee,_0x1679d4,_0x3efdaf,_0xec115d){const _0x5c2a8c=_0x4d6d62;super(),u(this,'_status$',new _0x59ad45('idle')),u(this,_0x5c2a8c(0x1b0),this[_0x5c2a8c(0x145)][_0x5c2a8c(0x1e0)]()),u(this,_0x5c2a8c(0x137),!0x1),u(this,_0x5c2a8c(0x179),null),u(this,_0x5c2a8c(0x1ab),null),(this['_unitID']=_0x123129,this[_0x5c2a8c(0x156)]=_0x3cc1ee,this[_0x5c2a8c(0x15d)]=_0x1679d4,this[_0x5c2a8c(0x198)]=_0x3efdaf,this[_0x5c2a8c(0x138)]=_0xec115d);}get[_0x4d6d62(0x1d0)](){const _0x380cf1=_0x4d6d62;return this['_status$'][_0x380cf1(0x1bb)]();}[_0x4d6d62(0x1c7)](){const _0x4e74d7=_0x4d6d62;var _0x4ffd53;(_0x4ffd53=this[_0x4e74d7(0x179)])==null||_0x4ffd53['dispose'](),this[_0x4e74d7(0x145)]['next'](_0x4e74d7(0x188)),this[_0x4e74d7(0x145)][_0x4e74d7(0x1a1)]();}['getStatus'](){return this['_status'];}[_0x4d6d62(0x160)](){const _0x3e5fe1=_0x4d6d62;this[_0x3e5fe1(0x137)]||(this[_0x3e5fe1(0x137)]=!0x0,this[_0x3e5fe1(0x156)][_0x3e5fe1(0x14d)][_0x3e5fe1(0x178)](_0x3c7564(this[_0x3e5fe1(0x13e)]))[_0x3e5fe1(0x1bf)](_0x1f9ab3=>{const _0x1dd3af=_0x3e5fe1;switch(_0x1f9ab3){case _0x2fbc42[_0x1dd3af(0x174)]:this['_handleOffline']();break;case _0x2fbc42[_0x1dd3af(0x16a)]:this[_0x1dd3af(0x1c4)]();break;}}),this[_0x3e5fe1(0x156)][_0x3e5fe1(0x1b1)][_0x3e5fe1(0x178)](_0x3c7564(this[_0x3e5fe1(0x13e)]))['subscribe'](_0xff89ec=>{const _0x2a6995=_0x3e5fe1,{eventID:_0x357551}=_0xff89ec;switch(_0x357551){case _0x1c46df[_0x2a6995(0x1a7)]:this[_0x2a6995(0x175)](_0xff89ec);break;case _0x1c46df[_0x2a6995(0x155)]:this[_0x2a6995(0x1d3)](_0xff89ec);break;case _0x1c46df[_0x2a6995(0x154)]:this[_0x2a6995(0x180)]();break;case _0x1c46df[_0x2a6995(0x1b3)]:this['_handleNewChangeSets'](_0xff89ec);break;}}));}[_0x4d6d62(0x141)](){const _0x1d0002=_0x4d6d62;this['_collabSession'][_0x1d0002(0x139)]({'eventID':_0x1c46df[_0x1d0002(0x1d2)],'data':{'unitID':this[_0x1d0002(0x1ac)],'userID':this['_collabSession'][_0x1d0002(0x191)]()}},this['_unitID']);}[_0x4d6d62(0x18a)](){const _0x402df4=_0x4d6d62;this[_0x402df4(0x1d0)]===_0x402df4(0x1d1)&&(this[_0x402df4(0x145)][_0x402df4(0x1b9)](_0x402df4(0x188)),this[_0x402df4(0x156)][_0x402df4(0x139)]({'eventID':_0x1c46df['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x402df4(0x1ac)]));}[_0x4d6d62(0x1d4)](){const _0x25da23=_0x4d6d62;this['_status']===_0x25da23(0x190)&&(this[_0x25da23(0x145)][_0x25da23(0x1b9)](_0x25da23(0x146)),this[_0x25da23(0x1dc)]());}[_0x4d6d62(0x1d6)](){const _0x3e789d=_0x4d6d62;this[_0x3e789d(0x1d0)]===_0x3e789d(0x146)&&this[_0x3e789d(0x1a4)]();}[_0x4d6d62(0x175)](_0x4ee544){const _0x2e58d2=_0x4d6d62,{presenter:_0x3e3436}=_0x4ee544[_0x2e58d2(0x1cf)],_0x1d1527=this[_0x2e58d2(0x156)][_0x2e58d2(0x191)]();this['_presenter']=_0x3e3436,_0x3e3436===_0x1d1527?(this[_0x2e58d2(0x1a4)](),this['_startPresenting']()):this[_0x2e58d2(0x1d0)]!==_0x2e58d2(0x190)&&(this[_0x2e58d2(0x1b7)](),this[_0x2e58d2(0x1dc)]());}['_fetchOperations'](){const _0x247f5b=_0x4d6d62,_0x3f4c0f={'eventID':_0x1c46df[_0x247f5b(0x1ce)]};this[_0x247f5b(0x156)][_0x247f5b(0x139)](_0x3f4c0f,this[_0x247f5b(0x1ac)]);}[_0x4d6d62(0x180)](){const _0x225564=_0x4d6d62;this[_0x225564(0x1ab)]=null,this[_0x225564(0x1d0)]!==_0x225564(0x1d1)&&this[_0x225564(0x16d)]();}[_0x4d6d62(0x1aa)](_0x57b912){const _0xb578d5=_0x4d6d62;if(this[_0xb578d5(0x1d0)]===_0xb578d5(0x146)&&this[_0xb578d5(0x1ab)]===_0x57b912['data']['memberID']){const _0x13e38a=_0x53ebe4(_0x57b912[_0xb578d5(0x1cf)])['mutations'][_0xb578d5(0x15a)]()[_0xb578d5(0x189)](_0x3e8c9a=>_0x3e8c9a['id']===_0xae9bf6['id']);if(_0x13e38a){const _0x597746=_0x13e38a[_0xb578d5(0x1b2)]['unitId'],_0xc37f95=_0x13e38a[_0xb578d5(0x1b2)][_0xb578d5(0x183)]['id'];setTimeout(()=>{const _0x41afb2=_0xb578d5;this[_0x41afb2(0x138)][_0x41afb2(0x19d)](_0x2461ad['id'],{'unitId':_0x597746,'subUnitId':_0xc37f95},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x243045=_0x4d6d62;this[_0x243045(0x145)][_0x243045(0x1b9)](_0x243045(0x1d1));const _0x2699af=new Map(),_0x3ef63a=this[_0x243045(0x179)]=new _0x535b9d();_0x3ef63a['add'](_0xa8d7d4(()=>{const _0x22f9bd=_0x243045;_0x2699af[_0x22f9bd(0x13d)](_0x3878f8=>_0x3878f8[_0x22f9bd(0x1a1)]()),_0x2699af[_0x22f9bd(0x1c5)]();})),_0x3ef63a[_0x243045(0x1c3)](this[_0x243045(0x138)]['onCommandExecuted'](_0x1ca2f1=>{const _0xa64f87=_0x243045;var _0x2fc702;if(_0x1ca2f1['type']!==_0x237676[_0xa64f87(0x17c)]||!this[_0xa64f87(0x198)][_0xa64f87(0x168)](_0x1ca2f1['id']))return;const {id:_0x279cac}=_0x1ca2f1;let _0x4ce199;_0x2699af[_0xa64f87(0x1c6)](_0x279cac)?_0x4ce199=_0x2699af['get'](_0x279cac):(_0x4ce199=new _0x21afba(),_0x2699af[_0xa64f87(0x195)](_0x279cac,_0x4ce199),_0x4ce199[_0xa64f87(0x178)](_0x3d9c65((_0x2fc702=this[_0xa64f87(0x15d)]['getConfig'](De))!=null?_0x2fc702:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2f94ef=>{const _0x261e9a=_0xa64f87;this[_0x261e9a(0x156)]['send']({'eventID':_0x1c46df[_0x261e9a(0x155)],'data':{'unitID':this['_unitID'],'operations':{[_0x2f94ef['id']]:{'id':_0x2f94ef['id'],'params':JSON[_0x261e9a(0x142)](_0x2f94ef[_0x261e9a(0x1b2)])}}}},this[_0x261e9a(0x1ac)]);})),_0x4ce199[_0xa64f87(0x1b9)](_0x1ca2f1);})),this[_0x243045(0x198)][_0x243045(0x1da)](this[_0x243045(0x1ac)])['forEach'](_0x3dfe42=>this[_0x243045(0x156)][_0x243045(0x139)]({'eventID':_0x1c46df['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x243045(0x1ac)],'operations':{[_0x3dfe42['id']]:{'id':_0x3dfe42['id'],'params':JSON[_0x243045(0x142)](_0x3dfe42[_0x243045(0x1b2)])}}}},this[_0x243045(0x1ac)]));}[_0x4d6d62(0x1b7)](){const _0x1bff52=_0x4d6d62;var _0x1a2c6e;this[_0x1bff52(0x145)]['next'](_0x1bff52(0x188)),(_0x1a2c6e=this['_commandDisposable'])==null||_0x1a2c6e[_0x1bff52(0x1c7)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x177b25=_0x4d6d62;var _0x2fea24;(_0x2fea24=this[_0x177b25(0x179)])==null||_0x2fea24['dispose'](),this['_status$'][_0x177b25(0x1b9)](_0x177b25(0x146));}[_0x4d6d62(0x16d)](){const _0x26dd68=_0x4d6d62;var _0x1d8caa;this[_0x26dd68(0x145)][_0x26dd68(0x1b9)]('idle'),(_0x1d8caa=this['_commandDisposable'])==null||_0x1d8caa[_0x26dd68(0x1c7)](),this[_0x26dd68(0x179)]=null;}[_0x4d6d62(0x1a4)](){const _0x54c544=_0x4d6d62;var _0x500076;this[_0x54c544(0x145)][_0x54c544(0x1b9)](_0x54c544(0x190)),(_0x500076=this[_0x54c544(0x179)])==null||_0x500076[_0x54c544(0x1c7)]();}['_handleOperation'](_0x10ddc2){const _0x558d84=_0x4d6d62;if(['presenting','not-following',_0x558d84(0x140)]['includes'](this[_0x558d84(0x1d0)])||!_0x10ddc2[_0x558d84(0x1cf)][_0x558d84(0x163)]||_0x10ddc2[_0x558d84(0x1cf)]['presenter']===this[_0x558d84(0x156)][_0x558d84(0x191)]())return;this[_0x558d84(0x1d0)]===_0x558d84(0x188)&&this['_startFollowing']();const _0x5ddb0=_0x10ddc2['data'][_0x558d84(0x1b4)];Object[_0x558d84(0x17e)](_0x5ddb0)[_0x558d84(0x13d)](_0x426586=>{const _0x5ea096=_0x558d84;this[_0x5ea096(0x138)][_0x5ea096(0x19d)](_0x426586['id'],_0x426586[_0x5ea096(0x1b2)]?JSON['parse'](_0x426586['params']):null,{'fromCollab':!0x0});});}[_0x4d6d62(0x1b8)](){const _0xd1c7ba=_0x4d6d62;var _0x2c58f2;this[_0xd1c7ba(0x145)]['next'](_0xd1c7ba(0x140)),(_0x2c58f2=this['_commandDisposable'])==null||_0x2c58f2[_0xd1c7ba(0x1c7)]();}[_0x4d6d62(0x1c4)](){const _0x2bbace=_0x4d6d62;this[_0x2bbace(0x145)][_0x2bbace(0x1b9)](_0x2bbace(0x188)),this['_fetchOperations']();}};C=B([_(0x2,_0x1db153),_(0x3,_0x51d972(R)),_(0x4,_0x27b1d3)],C);function Re(){const _0x520630=_0x4d6d62,_0x334731=_0x58ad3e(m),_0x525aee=_0x58ad3e(_0x181778),_0x416ea6=_0x21f95e(()=>_0x525aee[_0x520630(0x172)](_0x3230f4[_0x520630(0x1ad)]),void 0x0,!0x1,[]),[_0x2a69cd,_0x17b330]=_0x50d273(null),[_0xde1cfc,_0x3f7955]=_0x50d273(c['IDLE']),_0xf87a92=_0x31a51e(null);return _0x637d7a(()=>(_0x416ea6&&_0x334731[_0x520630(0x14c)](_0x416ea6['getUnitId']())[_0x520630(0x164)](_0x1fe415=>{const _0x4a9ece=_0x520630;_0x17b330(_0x1fe415),_0xf87a92[_0x4a9ece(0x186)]=_0x1fe415['status$'][_0x4a9ece(0x1bf)](_0x109993=>{_0x3f7955(_0x109993);});}),()=>{const _0x5b0f84=_0x520630;var _0x1e48a6;(_0x1e48a6=_0xf87a92[_0x5b0f84(0x186)])==null||_0x1e48a6[_0x5b0f84(0x1cc)](),_0xf87a92[_0x5b0f84(0x186)]=null;}),[_0x416ea6,_0x334731]),_0x2a69cd?_0x375672(_0x22b2fe,{'align':_0x520630(0x1a2),'disabled':_0xde1cfc===c[_0x520630(0x174)],'className':_0x520630(0x1bc),'overlay':_0x375672($e,{'status':_0xde1cfc,'coordinator':_0x2a69cd}),'children':_0x375672(_0x520630(0x1d9),{'className':_0x5ce4bb(_0x520630(0x18c),{'univer-cursor-not-allowed':_0xde1cfc===c[_0x520630(0x174)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xde1cfc!==c[_0x520630(0x174)]}),'type':_0x520630(0x1d9),'children':_0x375672(Y,{'className':_0x520630(0x1a8)})})}):null;}function $e(_0x2304a2){const _0x4f6485=_0x4d6d62,{status:_0x39d10f,coordinator:_0x38f39c}=_0x2304a2;switch(_0x39d10f){case c[_0x4f6485(0x161)]:return _0x375672(xe,{'coordinator':_0x38f39c});case c[_0x4f6485(0x1dd)]:return _0x375672(Pe,{'coordinator':_0x38f39c});case c[_0x4f6485(0x196)]:return _0x375672(Ae,{'coordinator':_0x38f39c});case c[_0x4f6485(0x174)]:return _0x375672(Fe,{});case c[_0x4f6485(0x158)]:return _0x375672(Te,{'coordinator':_0x38f39c});default:return null;}}function xe(_0x1c714c){const _0x16717e=_0x4d6d62,{coordinator:_0x4bef95}=_0x1c714c;return _0x3671e9(_0xb86804,{'children':[_0x375672(_0x16717e(0x13f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x16717e(0x148)}),_0x375672(_0x491c82,{'onClick':()=>_0x4bef95['tryStartPresenting'](),'children':_0x16717e(0x17a)})]});}function Pe(_0x2a388b){const _0x2a25ad=_0x4d6d62,{coordinator:_0x1b2399}=_0x2a388b;return _0x3671e9(_0xb86804,{'children':[_0x375672(_0x2a25ad(0x13f),{'className':_0x2a25ad(0x15f),'children':_0x2a25ad(0x170)}),_0x375672(_0x491c82,{'onClick':()=>_0x1b2399[_0x2a25ad(0x1d6)](),'children':'Stop\x20following'})]});}function Ae(_0x44d9fc){const _0x58f4f7=_0x4d6d62,{coordinator:_0x1693f4}=_0x44d9fc;return _0x3671e9(_0xb86804,{'children':[_0x375672(_0x58f4f7(0x13f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x58f4f7(0x162)}),_0x375672(_0x491c82,{'variant':_0x58f4f7(0x1a6),'onClick':()=>_0x1693f4[_0x58f4f7(0x1d4)](),'children':'Start\x20following'})]});}function Te(_0x4391b9){const _0x2e3dcd=_0x4d6d62,{coordinator:_0x1fe486}=_0x4391b9;return _0x3671e9(_0xb86804,{'children':[_0x375672(_0x2e3dcd(0x13f),{'className':_0x2e3dcd(0x15f),'children':_0x2e3dcd(0x18b)}),_0x375672(_0x491c82,{'variant':_0x2e3dcd(0x1c2),'onClick':()=>_0x1fe486[_0x2e3dcd(0x18a)](),'children':_0x2e3dcd(0x1af)})]});}function Fe(){const _0x361225=_0x4d6d62;return _0x375672(_0xb86804,{'children':_0x361225(0x166)});}var He=Object[_0x4d6d62(0x173)],ye=(_0x3661d9,_0x53e687,_0x245a71,_0x385f63)=>{const _0x55b8ae=_0x4d6d62;for(var _0x126e5f=_0x385f63>0x1?void 0x0:_0x385f63?He(_0x53e687,_0x245a71):_0x53e687,_0xf09475=_0x3661d9[_0x55b8ae(0x19a)]-0x1,_0x1951cb;_0xf09475>=0x0;_0xf09475--)(_0x1951cb=_0x3661d9[_0xf09475])&&(_0x126e5f=_0x1951cb(_0x126e5f)||_0x126e5f);return _0x126e5f;},T=(_0x3e415e,_0xd0c700)=>(_0x14d9ff,_0x4aafce)=>_0xd0c700(_0x14d9ff,_0x4aafce,_0x3e415e);let I=class extends _0x323dd8{constructor(_0x1d738c,_0x58580d){const _0x55c031=_0x4d6d62;super(),this[_0x55c031(0x17f)]=_0x1d738c,this['_uiPartsService']=_0x58580d,this[_0x55c031(0x171)]();}['_mountLiveShare'](){const _0x5e84b1=_0x4d6d62;this[_0x5e84b1(0x165)](this['_uiPartsService'][_0x5e84b1(0x14a)](_0x16d518[_0x5e84b1(0x19e)],()=>_0xa38e19(Re,this['_injector'])));}};I=ye([T(0x0,_0x51d972(_0xcf8b4b)),T(0x1,_0x4b4e35)],I);const je=_0x4d6d62(0x18f),Ue=_0x4d6d62(0x1ae),Z={'name':je,'version':Ue},Ve=_0x4d6d62(0x15c),F={};var Me=Object['getOwnPropertyDescriptor'],ke=(_0x19ffb5,_0x968131,_0x4dd32c,_0x468c6e)=>{const _0x5b22b3=_0x4d6d62;for(var _0x425cb4=_0x468c6e>0x1?void 0x0:_0x468c6e?Me(_0x968131,_0x4dd32c):_0x968131,_0x32afa1=_0x19ffb5[_0x5b22b3(0x19a)]-0x1,_0x1f9f4e;_0x32afa1>=0x0;_0x32afa1--)(_0x1f9f4e=_0x19ffb5[_0x32afa1])&&(_0x425cb4=_0x1f9f4e(_0x425cb4)||_0x425cb4);return _0x425cb4;},We=(_0x7e3dfb,_0x3869e9)=>(_0x2df141,_0x1484ed)=>_0x3869e9(_0x2df141,_0x1484ed,_0x7e3dfb);let b=class extends _0x323dd8{constructor(_0x3588c6){const _0x49b977=_0x4d6d62;super(),this[_0x49b977(0x198)]=_0x3588c6,this[_0x49b977(0x137)]();}[_0x4d6d62(0x137)](){const _0xb673ae=_0x4d6d62;[_0x114d12['id'],_0x9a2160['id'],_0x2461ad['id']][_0xb673ae(0x13d)](_0x2d8cf2=>{const _0x300342=_0xb673ae;this[_0x300342(0x165)](this[_0x300342(0x198)][_0x300342(0x1c8)](_0x2d8cf2));});}};b=ke([We(0x0,_0x51d972(R))],b);var Ge=Object[_0x4d6d62(0x14e)],Ye=Object[_0x4d6d62(0x173)],Be=(_0x1fabeb,_0xbc79b6,_0x4bedd9)=>_0xbc79b6 in _0x1fabeb?Ge(_0x1fabeb,_0xbc79b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4bedd9}):_0x1fabeb[_0xbc79b6]=_0x4bedd9,Ze=(_0x3e3477,_0x3b860b,_0x2dfdb2,_0x2fba49)=>{const _0x31550e=_0x4d6d62;for(var _0x2a1ae4=_0x2fba49>0x1?void 0x0:_0x2fba49?Ye(_0x3b860b,_0x2dfdb2):_0x3b860b,_0xbd1e60=_0x3e3477[_0x31550e(0x19a)]-0x1,_0x5748c3;_0xbd1e60>=0x0;_0xbd1e60--)(_0x5748c3=_0x3e3477[_0xbd1e60])&&(_0x2a1ae4=_0x5748c3(_0x2a1ae4)||_0x2a1ae4);return _0x2a1ae4;},H=(_0x499128,_0x34b2c3)=>(_0x43ba05,_0x6cbb07)=>_0x34b2c3(_0x43ba05,_0x6cbb07,_0x499128),w=(_0x53b633,_0x447008,_0x118e09)=>Be(_0x53b633,typeof _0x447008!=_0x4d6d62(0x1c0)?_0x447008+'':_0x447008,_0x118e09);let f=class extends _0x3b3755{constructor(_0x38a314=F,_0x5a4d8d,_0x3b2cf8){const _0x3b7561=_0x4d6d62;super(),this[_0x3b7561(0x181)]=_0x38a314,this[_0x3b7561(0x17f)]=_0x5a4d8d,this['_configService']=_0x3b2cf8;const {..._0x209073}=_0x2b1cea({},F,this[_0x3b7561(0x181)]);this[_0x3b7561(0x15d)][_0x3b7561(0x199)](Ve,_0x209073);}[_0x4d6d62(0x18d)](){const _0x1106bb=_0x4d6d62;_0x11f1e4(this[_0x1106bb(0x17f)],_0x54ad4b([[R],[m],[b],[I]],this[_0x1106bb(0x181)][_0x1106bb(0x1b5)])),_0x2c8ee3(this[_0x1106bb(0x17f)],[[b]]);}[_0x4d6d62(0x1cb)](){const _0x23a65d=_0x4d6d62;_0x2c8ee3(this[_0x23a65d(0x17f)],[[I]]);}};w(f,_0x4d6d62(0x197),_0x3230f4[_0x4d6d62(0x14f)]),w(f,_0x4d6d62(0x14b),_0x4d6d62(0x16c)),w(f,_0x4d6d62(0x1a3),Z[_0x4d6d62(0x16b)]),w(f,_0x4d6d62(0x150),Z['version']),f=Ze([_0x290c90(_0x49f19d),H(0x1,_0x51d972(_0xcf8b4b)),H(0x2,_0x1db153)],f);export{I as DesktopLiveShareController,Re as LiveShare,m as LiveShareController,C as LiveShareCoordinator,R as LiveShareService,c as LiveShareStatus,f as UniverLiveSharePlugin};
1
+ const _0x2c4769=_0x3add;(function(_0x2f1c88,_0x2085a3){const _0x4dcdaa=_0x3add,_0x4bf412=_0x2f1c88();while(!![]){try{const _0x428c6d=-parseInt(_0x4dcdaa(0xcf))/0x1+-parseInt(_0x4dcdaa(0x157))/0x2+-parseInt(_0x4dcdaa(0xf5))/0x3+parseInt(_0x4dcdaa(0xf0))/0x4+-parseInt(_0x4dcdaa(0x11f))/0x5+parseInt(_0x4dcdaa(0xda))/0x6+-parseInt(_0x4dcdaa(0x125))/0x7*(-parseInt(_0x4dcdaa(0x152))/0x8);if(_0x428c6d===_0x2085a3)break;else _0x4bf412['push'](_0x4bf412['shift']());}catch(_0x5e4a33){_0x4bf412['push'](_0x4bf412['shift']());}}}(_0x15ef,0x7d007));import{CommandType as _0x3a5405,DependentOn as _0x9d4cf9,Disposable as _0x57dd0e,DisposableCollection as _0x215aed,ICommandService as _0x3dd35d,IConfigService as _0x43996c,IUniverInstanceService as _0x261092,Inject as _0x1b48b6,Injector as _0x4a9c22,Plugin as _0x7c0ac5,RxDisposable as _0x4f9eac,UniverInstanceType as _0x53d6b7,merge as _0x5e13f2,mergeOverrideWithDependencies as _0x4086ed,registerDependencies as _0x1da1fe,toDisposable as _0x82c7a0,touchDependencies as _0x24fee3}from'@univerjs/core';import{BuiltInUIPart as _0x4d8caf,IUIPartsService as _0xaf3c68,connectInjector as _0x56b9bf,useDependency as _0x8412e9,useObservable as _0x13c779}from'@univerjs/ui';import{Button as _0x355ab6,Dropdown as _0x4a9e75,clsx as _0x119bed}from'@univerjs/design';import{LiveShareIcon as _0x437ba5}from'@univerjs/icons';import{useEffect as _0x55c713,useRef as _0x5be6eb,useState as _0x2e17cb}from'react';import{CollaborationEvent as _0x462cc9,parseProtocolChangeset as _0x2f20c3}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2c4c0e,SessionStatus as _0x40f15e,UniverCollaborationClientPlugin as _0x5e2ff9}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4a64ee,SetWorksheetActiveOperation as _0x45b627}from'@univerjs/sheets';import{BehaviorSubject as _0x1a7f50,Subject as _0x2bf7d2}from'rxjs';import{takeUntil as _0x262fde,throttleTime as _0x263058}from'rxjs/operators';import{Fragment as _0xdcd6d,jsx as _0x26cb86,jsxs as _0x5e7cba}from'react/jsx-runtime';import{SetScrollOperation as _0x6ac03b,SetZoomRatioOperation as _0x5e8bdc}from'@univerjs/sheets-ui';function _0x3add(_0x156e72,_0x216d77){_0x156e72=_0x156e72-0xca;const _0x15ef68=_0x15ef();let _0x3addd6=_0x15ef68[_0x156e72];return _0x3addd6;}function L(_0x1d8ca2){'@babel/helpers - typeof';const _0xbdc3df=_0x3add;return L=typeof Symbol==_0xbdc3df(0xd5)&&typeof Symbol[_0xbdc3df(0x138)]==_0xbdc3df(0xeb)?function(_0x11ba94){return typeof _0x11ba94;}:function(_0x178707){const _0x3c0681=_0xbdc3df;return _0x178707&&typeof Symbol==_0x3c0681(0xd5)&&_0x178707[_0x3c0681(0x114)]===Symbol&&_0x178707!==Symbol[_0x3c0681(0x130)]?_0x3c0681(0xeb):typeof _0x178707;},L(_0x1d8ca2);}function R(_0x23cd9d,_0x1577de){const _0x171d36=_0x3add;if(L(_0x23cd9d)!='object'||!_0x23cd9d)return _0x23cd9d;var _0x19153a=_0x23cd9d[Symbol[_0x171d36(0xd1)]];if(_0x19153a!==void 0x0){var _0x2af5e2=_0x19153a[_0x171d36(0x141)](_0x23cd9d,_0x1577de||_0x171d36(0x126));if(L(_0x2af5e2)!='object')return _0x2af5e2;throw TypeError(_0x171d36(0xf9));}return(_0x1577de==='string'?String:Number)(_0x23cd9d);}function z(_0x31d045){const _0x5e32c7=_0x3add;var _0x50c9db=R(_0x31d045,'string');return L(_0x50c9db)==_0x5e32c7(0xeb)?_0x50c9db:_0x50c9db+'';}function B(_0x54df49,_0x50b565,_0x47c829){return(_0x50b565=z(_0x50b565))in _0x54df49?Object['defineProperty'](_0x54df49,_0x50b565,{'value':_0x47c829,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54df49[_0x50b565]=_0x47c829,_0x54df49;}var V=class extends _0x57dd0e{constructor(..._0xa3ff56){const _0x23846f=_0x3add;super(..._0xa3ff56),B(this,_0x23846f(0xec),new Set()),B(this,_0x23846f(0x158),new Set());}[_0x2c4769(0x142)](_0x2f9e81){const _0xa5da3a=_0x2c4769;return this[_0xa5da3a(0xec)][_0xa5da3a(0x110)](_0x2f9e81),_0x82c7a0(()=>this[_0xa5da3a(0xec)][_0xa5da3a(0xdb)](_0x2f9e81));}[_0x2c4769(0x100)](_0x1348c9){const _0x59a5a6=_0x2c4769;return this[_0x59a5a6(0x158)][_0x59a5a6(0x110)](_0x1348c9),_0x82c7a0(()=>this[_0x59a5a6(0x158)][_0x59a5a6(0xdb)](_0x1348c9));}[_0x2c4769(0x11c)](_0x5c2981){return this['_sharedOperations']['has'](_0x5c2981);}[_0x2c4769(0x154)](_0x4ee77d){const _0x878199=_0x2c4769;return Array[_0x878199(0x14b)](this['_reporters'])[_0x878199(0x101)](_0x199c30=>_0x199c30(_0x4ee77d));}};function H(_0x3e43a0,_0x1d6a1b){return function(_0x1c4ccd,_0x1eb820){_0x1d6a1b(_0x1c4ccd,_0x1eb820,_0x3e43a0);};}function U(_0x3fce25,_0x251467,_0x6c893,_0x478764){const _0x7d70e1=_0x2c4769;var _0x2c45b5=arguments['length'],_0x553a33=_0x2c45b5<0x3?_0x251467:_0x478764===null?_0x478764=Object['getOwnPropertyDescriptor'](_0x251467,_0x6c893):_0x478764,_0x395e6d;if(typeof Reflect==_0x7d70e1(0xd3)&&typeof Reflect[_0x7d70e1(0xe2)]==_0x7d70e1(0xd5))_0x553a33=Reflect[_0x7d70e1(0xe2)](_0x3fce25,_0x251467,_0x6c893,_0x478764);else{for(var _0x1d9283=_0x3fce25[_0x7d70e1(0x13d)]-0x1;_0x1d9283>=0x0;_0x1d9283--)(_0x395e6d=_0x3fce25[_0x1d9283])&&(_0x553a33=(_0x2c45b5<0x3?_0x395e6d(_0x553a33):_0x2c45b5>0x3?_0x395e6d(_0x251467,_0x6c893,_0x553a33):_0x395e6d(_0x251467,_0x6c893))||_0x553a33);}return _0x2c45b5>0x3&&_0x553a33&&Object['defineProperty'](_0x251467,_0x6c893,_0x553a33),_0x553a33;}let W=class extends _0x4f9eac{constructor(_0x53537b,_0x5186f9,_0x4dc751){const _0x557ae7=_0x2c4769;super(),this['_univerInstanceService']=_0x53537b,this[_0x557ae7(0x12a)]=_0x5186f9,this[_0x557ae7(0x12f)]=_0x4dc751,B(this,'_entities',new Map()),this[_0x557ae7(0xd2)]();}async[_0x2c4769(0xf6)](_0x3eafe7){const _0x167351=_0x2c4769;return this[_0x167351(0x14f)][_0x167351(0xf3)](_0x3eafe7)||await this[_0x167351(0x102)](_0x3eafe7),this[_0x167351(0x14f)][_0x167351(0x14d)](_0x3eafe7);}[_0x2c4769(0x106)](_0x60202){const _0x1b3e1c=_0x2c4769;var _0x354715;return(_0x354715=this[_0x1b3e1c(0x14f)][_0x1b3e1c(0x14d)](_0x60202))==null?null:_0x354715;}[_0x2c4769(0xd2)](){const _0x48d6e2=_0x2c4769;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x53d6b7['UNIVER_SHEET'])[_0x48d6e2(0xe8)](_0x262fde(this['dispose$']))[_0x48d6e2(0x120)](async _0x52f577=>{const _0xc9ca3b=_0x48d6e2;let _0x1f2167=_0x52f577[_0xc9ca3b(0xfb)]();this[_0xc9ca3b(0x14f)][_0xc9ca3b(0xf3)](_0x1f2167)||this[_0xc9ca3b(0x102)](_0x1f2167);}),this['_univerInstanceService'][_0x48d6e2(0x10d)](_0x53d6b7['UNIVER_SHEET'])['pipe'](_0x262fde(this[_0x48d6e2(0x147)]))[_0x48d6e2(0x120)](_0x14f36c=>{const _0x22b881=_0x48d6e2;let _0x502c2f=_0x14f36c[_0x22b881(0xfb)](),_0x3cdb5f=this[_0x22b881(0x14f)][_0x22b881(0x14d)](_0x502c2f);_0x3cdb5f==null||_0x3cdb5f[_0x22b881(0x122)]();});}async[_0x2c4769(0x102)](_0x28055d){const _0x237953=_0x2c4769;let _0x4c916d=await this[_0x237953(0x12f)][_0x237953(0x132)](_0x28055d),_0x2b25f5=this[_0x237953(0x12a)]['createInstance'](K,_0x28055d,_0x4c916d);return _0x2b25f5[_0x237953(0xce)](),this[_0x237953(0x14f)]['set'](_0x28055d,_0x2b25f5),_0x2b25f5;}};W=U([H(0x0,_0x261092),H(0x1,_0x1b48b6(_0x4a9c22)),H(0x2,_0x1b48b6(_0x2c4c0e))],W);let G=function(_0x3f24b2){const _0x543a38=_0x2c4769;return _0x3f24b2[_0x543a38(0xf1)]='offline',_0x3f24b2[_0x543a38(0xfd)]=_0x543a38(0xca),_0x3f24b2[_0x543a38(0x118)]='following',_0x3f24b2[_0x543a38(0x140)]='not-following',_0x3f24b2[_0x543a38(0xf4)]='presenting',_0x3f24b2;}({}),K=class extends _0x4f9eac{get['_status'](){const _0x4147bc=_0x2c4769;return this[_0x4147bc(0x12d)]['getValue']();}constructor(_0x501ffe,_0x22ebbe,_0xa6b7c7,_0x3f70cf,_0x304fce){const _0x8dc47c=_0x2c4769;super(),this[_0x8dc47c(0xff)]=_0x501ffe,this[_0x8dc47c(0x11b)]=_0x22ebbe,this['_configService']=_0xa6b7c7,this[_0x8dc47c(0x104)]=_0x3f70cf,this['_commandService']=_0x304fce,B(this,_0x8dc47c(0x12d),new _0x1a7f50(G['IDLE'])),B(this,_0x8dc47c(0xfa),this[_0x8dc47c(0x12d)][_0x8dc47c(0x14c)]()),B(this,_0x8dc47c(0xd2),!0x1),B(this,_0x8dc47c(0x135),null),B(this,_0x8dc47c(0xd9),null);}[_0x2c4769(0x122)](){const _0x4b54cc=_0x2c4769;var _0x5afa1e;(_0x5afa1e=this['_commandDisposable'])==null||_0x5afa1e[_0x4b54cc(0x122)](),this[_0x4b54cc(0x12d)][_0x4b54cc(0x109)](G[_0x4b54cc(0xfd)]),this['_status$'][_0x4b54cc(0x117)]();}[_0x2c4769(0x146)](){const _0x1e26db=_0x2c4769;return this[_0x1e26db(0xe9)];}['init'](){const _0xb45e5f=_0x2c4769;this['_init']||(this[_0xb45e5f(0xd2)]=!0x0,this[_0xb45e5f(0x11b)][_0xb45e5f(0x151)][_0xb45e5f(0xe8)](_0x262fde(this[_0xb45e5f(0x147)]))[_0xb45e5f(0x120)](_0x1c88b8=>{const _0x494596=_0xb45e5f;switch(_0x1c88b8){case _0x40f15e[_0x494596(0xf1)]:this['_handleOffline']();break;case _0x40f15e[_0x494596(0xdd)]:this[_0x494596(0xe1)]();break;default:}}),this[_0xb45e5f(0x11b)]['event$']['pipe'](_0x262fde(this[_0xb45e5f(0x147)]))['subscribe'](_0x4d1c43=>{const _0x40cdb1=_0xb45e5f;let {eventID:_0x29d2cd}=_0x4d1c43;switch(_0x29d2cd){case _0x462cc9[_0x40cdb1(0x150)]:this['_handleNewHost'](_0x4d1c43);break;case _0x462cc9['LIVESHARE_OPERATION']:this[_0x40cdb1(0x13f)](_0x4d1c43);break;case _0x462cc9['LIVESHARE_TERMINATE']:this[_0x40cdb1(0xfc)]();break;case _0x462cc9[_0x40cdb1(0xf7)]:this[_0x40cdb1(0xde)](_0x4d1c43);break;default:}}));}[_0x2c4769(0xdf)](){const _0x4035f7=_0x2c4769;this[_0x4035f7(0x11b)][_0x4035f7(0x123)]({'eventID':_0x462cc9[_0x4035f7(0x155)],'data':{'unitID':this[_0x4035f7(0xff)],'userID':this['_collabSession'][_0x4035f7(0x103)]()}},this['_unitID']);}[_0x2c4769(0xd6)](){const _0x35be4e=_0x2c4769;this[_0x35be4e(0xe9)]===G['PRESENTING']&&(this['_status$']['next'](G[_0x35be4e(0xfd)]),this[_0x35be4e(0x11b)][_0x35be4e(0x123)]({'eventID':_0x462cc9[_0x35be4e(0x156)],'data':{'unitID':this[_0x35be4e(0xff)]}},this['_unitID']));}['startFollowing'](){const _0x57c09f=_0x2c4769;this['_status']===G[_0x57c09f(0x140)]&&(this[_0x57c09f(0x12d)][_0x57c09f(0x109)](G['FOLLOWING']),this[_0x57c09f(0xd0)]());}[_0x2c4769(0x134)](){const _0x223035=_0x2c4769;this['_status']===G['FOLLOWING']&&this[_0x223035(0x116)]();}[_0x2c4769(0xe7)](_0x1ee1d2){const _0x54af32=_0x2c4769;let {presenter:_0x457299}=_0x1ee1d2[_0x54af32(0x13e)],_0x3cd228=this['_collabSession'][_0x54af32(0x103)]();this['_presenter']=_0x457299,_0x457299===_0x3cd228?(this[_0x54af32(0x116)](),this[_0x54af32(0xe4)]()):this[_0x54af32(0xe9)]!==G[_0x54af32(0x140)]&&(this['_stopPresenting'](),this[_0x54af32(0xd0)]());}[_0x2c4769(0x144)](){const _0x596673=_0x2c4769;let _0x472fdf={'eventID':_0x462cc9[_0x596673(0x12e)]};this[_0x596673(0x11b)][_0x596673(0x123)](_0x472fdf,this[_0x596673(0xff)]);}[_0x2c4769(0xfc)](){const _0x58b339=_0x2c4769;this[_0x58b339(0xd9)]=null,this[_0x58b339(0xe9)]!==G[_0x58b339(0xf4)]&&this[_0x58b339(0xd8)]();}['_handleNewChangeSets'](_0x9ec336){const _0x19e3d8=_0x2c4769;if(this[_0x19e3d8(0xe9)]===G[_0x19e3d8(0x118)]&&this['_presenter']===_0x9ec336[_0x19e3d8(0x13e)][_0x19e3d8(0x13c)]){let _0x25a3aa=_0x2f20c3(_0x9ec336[_0x19e3d8(0x13e)])['mutations']['reverse']()[_0x19e3d8(0x10b)](_0x40640a=>_0x40640a['id']===_0x4a64ee['id']);if(_0x25a3aa){let _0xb99389=_0x25a3aa[_0x19e3d8(0x139)][_0x19e3d8(0xcb)],_0x22e7b3=_0x25a3aa[_0x19e3d8(0x139)]['sheet']['id'];setTimeout(()=>{const _0x81f1d4=_0x19e3d8;this[_0x81f1d4(0x14a)][_0x81f1d4(0x113)](_0x45b627['id'],{'unitId':_0xb99389,'subUnitId':_0x22e7b3},{'fromCollab':!0x0});});}}}[_0x2c4769(0xe4)](){const _0x5820b3=_0x2c4769;this[_0x5820b3(0x12d)][_0x5820b3(0x109)](G[_0x5820b3(0xf4)]);let _0x4f416b=new Map(),_0x13fea7=this['_commandDisposable']=new _0x215aed();_0x13fea7['add'](_0x82c7a0(()=>{const _0x5d20e8=_0x5820b3;_0x4f416b[_0x5d20e8(0x131)](_0x135fa6=>_0x135fa6[_0x5d20e8(0x117)]()),_0x4f416b[_0x5d20e8(0x136)]();})),_0x13fea7[_0x5820b3(0x110)](this['_commandService']['onCommandExecuted'](_0x4b0f72=>{const _0x5362e0=_0x5820b3;if(_0x4b0f72[_0x5362e0(0x11a)]!==_0x3a5405[_0x5362e0(0x10c)]||!this[_0x5362e0(0x104)][_0x5362e0(0x11c)](_0x4b0f72['id']))return;let {id:_0xb0ffcc}=_0x4b0f72,_0x35f406;if(_0x4f416b[_0x5362e0(0xf3)](_0xb0ffcc))_0x35f406=_0x4f416b[_0x5362e0(0x14d)](_0xb0ffcc);else{var _0x4365e9;_0x35f406=new _0x2bf7d2(),_0x4f416b[_0x5362e0(0x108)](_0xb0ffcc,_0x35f406),_0x35f406[_0x5362e0(0xe8)](_0x263058((_0x4365e9=this['_configService'][_0x5362e0(0xcc)](_0x5362e0(0x13a)))==null?0xc8:_0x4365e9,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5362e0(0x120)](_0x10696f=>{const _0x296ed7=_0x5362e0;this[_0x296ed7(0x11b)]['send']({'eventID':_0x462cc9[_0x296ed7(0x11d)],'data':{'unitID':this[_0x296ed7(0xff)],'operations':{[_0x10696f['id']]:{'id':_0x10696f['id'],'params':JSON[_0x296ed7(0x107)](_0x10696f['params'])}}}},this['_unitID']);});}_0x35f406['next'](_0x4b0f72);})),this[_0x5820b3(0x104)][_0x5820b3(0x154)](this[_0x5820b3(0xff)])['forEach'](_0x1e40dc=>this[_0x5820b3(0x11b)]['send']({'eventID':_0x462cc9[_0x5820b3(0x11d)],'data':{'unitID':this[_0x5820b3(0xff)],'operations':{[_0x1e40dc['id']]:{'id':_0x1e40dc['id'],'params':JSON[_0x5820b3(0x107)](_0x1e40dc[_0x5820b3(0x139)])}}}},this[_0x5820b3(0xff)]));}[_0x2c4769(0x129)](){const _0x3c8a17=_0x2c4769;var _0x4100e9;this[_0x3c8a17(0x12d)][_0x3c8a17(0x109)](G[_0x3c8a17(0xfd)]),(_0x4100e9=this['_commandDisposable'])==null||_0x4100e9[_0x3c8a17(0x122)](),this[_0x3c8a17(0x135)]=null;}[_0x2c4769(0xd0)](){const _0x2d4d18=_0x2c4769;var _0x5febb5;(_0x5febb5=this[_0x2d4d18(0x135)])==null||_0x5febb5['dispose'](),this[_0x2d4d18(0x12d)][_0x2d4d18(0x109)](G['FOLLOWING']);}[_0x2c4769(0xd8)](){const _0x4dd045=_0x2c4769;var _0x42e353;this['_status$'][_0x4dd045(0x109)](G[_0x4dd045(0xfd)]),(_0x42e353=this[_0x4dd045(0x135)])==null||_0x42e353['dispose'](),this[_0x4dd045(0x135)]=null;}['_stopFollowing'](){const _0x3e85ca=_0x2c4769;var _0x22ea39;this['_status$']['next'](G[_0x3e85ca(0x140)]),(_0x22ea39=this[_0x3e85ca(0x135)])==null||_0x22ea39['dispose']();}[_0x2c4769(0x13f)](_0x52159f){const _0x3ee169=_0x2c4769;if([G[_0x3ee169(0xf4)],G['NOT_FOLLOWING'],G[_0x3ee169(0xf1)]]['includes'](this[_0x3ee169(0xe9)])||!_0x52159f[_0x3ee169(0x13e)]['presenter']||_0x52159f[_0x3ee169(0x13e)]['presenter']===this[_0x3ee169(0x11b)]['getMemberID']())return;this[_0x3ee169(0xe9)]===G[_0x3ee169(0xfd)]&&this[_0x3ee169(0xd0)]();let _0x422f3a=_0x52159f[_0x3ee169(0x13e)][_0x3ee169(0x127)];Object[_0x3ee169(0xed)](_0x422f3a)[_0x3ee169(0x131)](_0x2339ea=>{const _0x63c459=_0x3ee169;this['_commandService']['executeCommand'](_0x2339ea['id'],_0x2339ea[_0x63c459(0x139)]?JSON[_0x63c459(0x12b)](_0x2339ea[_0x63c459(0x139)]):null,{'fromCollab':!0x0});});}[_0x2c4769(0x11e)](){const _0x183b25=_0x2c4769;var _0x107672;this['_status$'][_0x183b25(0x109)](G[_0x183b25(0xf1)]),(_0x107672=this[_0x183b25(0x135)])==null||_0x107672[_0x183b25(0x122)]();}['_handleOnline'](){const _0x36376b=_0x2c4769;this[_0x36376b(0x12d)]['next'](G[_0x36376b(0xfd)]),this[_0x36376b(0x144)]();}};K=U([H(0x2,_0x43996c),H(0x3,_0x1b48b6(V)),H(0x4,_0x3dd35d)],K);function q(){const _0x3038b4=_0x2c4769;let _0x295c57=_0x8412e9(W),_0x447bdb=_0x8412e9(_0x261092),_0x38dafd=_0x13c779(()=>_0x447bdb[_0x3038b4(0x112)](_0x53d6b7[_0x3038b4(0x10f)]),void 0x0,!0x1,[]),[_0xd7cf52,_0x27c733]=_0x2e17cb(null),[_0x2e28c9,_0x5ea467]=_0x2e17cb(G[_0x3038b4(0xfd)]),_0x36280f=_0x5be6eb(null);return _0x55c713(()=>(_0x38dafd&&_0x295c57[_0x3038b4(0xf6)](_0x38dafd['getUnitId']())[_0x3038b4(0x13b)](_0x42eca2=>{const _0x4270e4=_0x3038b4;_0x27c733(_0x42eca2),_0x36280f[_0x4270e4(0x115)]=_0x42eca2[_0x4270e4(0xfa)]['subscribe'](_0x2b6053=>{_0x5ea467(_0x2b6053);});}),()=>{const _0x4bff15=_0x3038b4;var _0x40f670;(_0x40f670=_0x36280f[_0x4bff15(0x115)])==null||_0x40f670[_0x4bff15(0xd4)](),_0x36280f[_0x4bff15(0x115)]=null;}),[_0x38dafd,_0x295c57]),_0xd7cf52?_0x26cb86(_0x4a9e75,{'align':_0x3038b4(0xd7),'disabled':_0x2e28c9===G[_0x3038b4(0xf1)],'className':_0x3038b4(0xee),'overlay':_0x26cb86(ce,{'status':_0x2e28c9,'coordinator':_0xd7cf52}),'children':_0x26cb86(_0x3038b4(0xe6),{'className':_0x119bed('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2e28c9===G[_0x3038b4(0xf1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2e28c9!==G[_0x3038b4(0xf1)]}),'type':'button','children':_0x26cb86(_0x437ba5,{'className':'univer-size-4'})})}):null;}function ce(_0x111ecf){const _0x24dc35=_0x2c4769;let {status:_0x3332bd,coordinator:_0x4bfce0}=_0x111ecf;switch(_0x3332bd){case G[_0x24dc35(0xfd)]:return _0x26cb86(le,{'coordinator':_0x4bfce0});case G['FOLLOWING']:return _0x26cb86(ue,{'coordinator':_0x4bfce0});case G['NOT_FOLLOWING']:return _0x26cb86(de,{'coordinator':_0x4bfce0});case G[_0x24dc35(0xf1)]:return _0x26cb86(fe,{});case G[_0x24dc35(0xf4)]:return _0x26cb86(J,{'coordinator':_0x4bfce0});default:return null;}}function le(_0x3888a6){const _0x4d1925=_0x2c4769;let {coordinator:_0x521bb6}=_0x3888a6;return _0x5e7cba(_0xdcd6d,{'children':[_0x26cb86(_0x4d1925(0x153),{'className':_0x4d1925(0x10a),'children':_0x4d1925(0x10e)}),_0x26cb86(_0x355ab6,{'onClick':()=>_0x521bb6['tryStartPresenting'](),'children':_0x4d1925(0xf8)})]});}function ue(_0x462f26){const _0x28f13f=_0x2c4769;let {coordinator:_0x151114}=_0x462f26;return _0x5e7cba(_0xdcd6d,{'children':[_0x26cb86(_0x28f13f(0x153),{'className':_0x28f13f(0x10a),'children':_0x28f13f(0x111)}),_0x26cb86(_0x355ab6,{'onClick':()=>_0x151114['stopFollowing'](),'children':_0x28f13f(0x145)})]});}function de(_0x1d02b6){const _0x2ec771=_0x2c4769;let {coordinator:_0x5f4dd8}=_0x1d02b6;return _0x5e7cba(_0xdcd6d,{'children':[_0x26cb86(_0x2ec771(0x153),{'className':_0x2ec771(0x10a),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x26cb86(_0x355ab6,{'variant':_0x2ec771(0x124),'onClick':()=>_0x5f4dd8[_0x2ec771(0x119)](),'children':_0x2ec771(0xcd)})]});}function J(_0x1db2e8){const _0x4b4e99=_0x2c4769;let {coordinator:_0x1ea2bd}=_0x1db2e8;return _0x5e7cba(_0xdcd6d,{'children':[_0x26cb86(_0x4b4e99(0x153),{'className':_0x4b4e99(0x10a),'children':_0x4b4e99(0x12c)}),_0x26cb86(_0x355ab6,{'variant':'default','onClick':()=>_0x1ea2bd['stopPresenting'](),'children':_0x4b4e99(0x148)})]});}function _0x15ef(){const _0x284071=['tryStartPresenting','pluginName','_handleOnline','decorate','onStarting','_startPresenting','registerComponent','button','_handleNewHost','pipe','_status','onRendered','symbol','_sharedOperations','values','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-white\x20dark:!univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageName','2558780HxpNXB','OFFLINE','_config','has','PRESENTING','521457mQWcwd','getLiveShareCoordinator','NEW_CHANGESETS','Start','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','status$','getUnitId','_handleTerminate','IDLE','override','_unitID','registerInitialStateReporter','map','_startLiveShareCoordinator','getMemberID','_liveShareService','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinatorSync','stringify','set','next','univer-mb-3\x20univer-w-full\x20univer-text-sm','find','OPERATION','getTypeOfUnitDisposed$','Present\x20this\x20document','UNIVER_SHEET','add','You\x27re\x20following\x20the\x20presenter','getCurrentTypeOfUnit$','executeCommand','constructor','current','_stopFollowing','complete','FOLLOWING','startFollowing','type','_collabSession','shouldShareOperation','LIVESHARE_OPERATION','_handleOffline','2275680dQOtqM','subscribe','UNIVER_UNKNOWN','dispose','send','text','7PJuHbk','default','operations','You\x27are\x20offline.','_stopPresenting','_injector','parse','You\x27re\x20presenting\x20the\x20document','_status$','LIVESHARE_FETCH_OPERATIONS','_collabSessionService','prototype','forEach','requireSession','_configService','stopFollowing','_commandDisposable','clear','_mountLiveShare','iterator','params','SAME_OPERATION_SHARE_INTERVAL','then','memberID','length','data','_handleOperation','NOT_FOLLOWING','call','registerSharedOperation','_uiPartsService','_fetchOperations','Stop\x20following','getStatus','dispose$','Stop\x20presenting','disposeWithMe','_commandService','from','asObservable','get','setConfig','_entities','LIVESHARE_NEW_HOST','sessionStatus$','7495952MiYIvu','div','getInitialStates','LIVESHARE_REQUEST_HOST','LIVESHARE_TERMINATE','1087024IPRNpj','_reporters','idle','unitId','getConfig','Start\x20following','init','691159aEcZeH','_startFollowing','toPrimitive','_init','object','unsubscribe','function','stopPresenting','end','_beIdle','_presenter','4793664LfoXSA','delete','@univerjs-pro/live-share','ONLINE','_handleNewChangeSets'];_0x15ef=function(){return _0x284071;};return _0x15ef();}function fe(){const _0x111203=_0x2c4769;return _0x26cb86(_0xdcd6d,{'children':_0x111203(0x128)});}let Y=class extends _0x57dd0e{constructor(_0x4c1c84,_0x6d7ebf){const _0x5d3777=_0x2c4769;super(),this['_injector']=_0x4c1c84,this[_0x5d3777(0x143)]=_0x6d7ebf,this[_0x5d3777(0x137)]();}[_0x2c4769(0x137)](){const _0x539821=_0x2c4769;this[_0x539821(0x149)](this[_0x539821(0x143)][_0x539821(0xe5)](_0x4d8caf['HEADER_MENU'],()=>_0x56b9bf(q,this[_0x539821(0x12a)])));}};Y=U([H(0x0,_0x1b48b6(_0x4a9c22)),H(0x1,_0xaf3c68)],Y);var pe=_0x2c4769(0xdc),me='0.18.0';const X='live-share.config';Symbol(X);const Z={};let Q=class extends _0x57dd0e{constructor(_0x25608f){const _0x53f85d=_0x2c4769;super(),this[_0x53f85d(0x104)]=_0x25608f,this[_0x53f85d(0xd2)]();}[_0x2c4769(0xd2)](){[_0x5e8bdc['id'],_0x6ac03b['id'],_0x45b627['id']]['forEach'](_0x46e66d=>{const _0x26132f=_0x3add;this[_0x26132f(0x149)](this[_0x26132f(0x104)]['registerSharedOperation'](_0x46e66d));});}};Q=U([H(0x0,_0x1b48b6(V))],Q);let $=class extends _0x7c0ac5{constructor(_0x55c6e2=Z,_0x2caa4d,_0xfe55d4){const _0x5895a1=_0x2c4769;super(),this[_0x5895a1(0xf2)]=_0x55c6e2,this[_0x5895a1(0x12a)]=_0x2caa4d,this[_0x5895a1(0x133)]=_0xfe55d4;let {..._0x391311}=_0x5e13f2({},Z,this[_0x5895a1(0xf2)]);this[_0x5895a1(0x133)][_0x5895a1(0x14e)](X,_0x391311);}[_0x2c4769(0xe3)](){const _0x2585a8=_0x2c4769;_0x1da1fe(this[_0x2585a8(0x12a)],_0x4086ed([[V],[W],[Q],[Y]],this[_0x2585a8(0xf2)][_0x2585a8(0xfe)])),_0x24fee3(this[_0x2585a8(0x12a)],[[Q]]);}[_0x2c4769(0xea)](){const _0x1e320c=_0x2c4769;_0x24fee3(this[_0x1e320c(0x12a)],[[Y]]);}};B($,_0x2c4769(0x11a),_0x53d6b7[_0x2c4769(0x121)]),B($,_0x2c4769(0xe0),_0x2c4769(0x105)),B($,_0x2c4769(0xef),pe),B($,'version',me),$=U([_0x9d4cf9(_0x5e2ff9),H(0x1,_0x1b48b6(_0x4a9c22)),H(0x2,_0x43996c)],$);export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x5aaba5=_0x11e1;(function(_0x15805a,_0x3a2fd2){const _0x57dc53=_0x11e1,_0x40c434=_0x15805a();while(!![]){try{const _0x5e0e16=parseInt(_0x57dc53(0x6e))/0x1+parseInt(_0x57dc53(0x7b))/0x2*(parseInt(_0x57dc53(0x79))/0x3)+-parseInt(_0x57dc53(0x78))/0x4+parseInt(_0x57dc53(0x77))/0x5*(parseInt(_0x57dc53(0x72))/0x6)+parseInt(_0x57dc53(0x82))/0x7+-parseInt(_0x57dc53(0x83))/0x8+parseInt(_0x57dc53(0x67))/0x9*(-parseInt(_0x57dc53(0x6f))/0xa);if(_0x5e0e16===_0x3a2fd2)break;else _0x40c434['push'](_0x40c434['shift']());}catch(_0x1811b6){_0x40c434['push'](_0x40c434['shift']());}}}(_0x1073,0x9f20e));var l=Object[_0x5aaba5(0x80)],w=(_0x5b2100,_0x5738f0,_0x50fccd)=>_0x5738f0 in _0x5b2100?l(_0x5b2100,_0x5738f0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50fccd}):_0x5b2100[_0x5738f0]=_0x50fccd,v=(_0x3f1c3f,_0x570807,_0x27ca90)=>w(_0x3f1c3f,typeof _0x570807!=_0x5aaba5(0x74)?_0x570807+'':_0x570807,_0x27ca90);import{LiveShareController as _0x4101c0,LiveShareStatus as _0x463cf2}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x4c3631,UniverInstanceType as _0x40b138}from'@univerjs/core';import{FUniver as _0x15dc42,FEnum as _0x3b6292}from'@univerjs/core/facade';function _0x11e1(_0xfa6d81,_0x13a1a1){_0xfa6d81=_0xfa6d81-0x65;const _0x107312=_0x1073();let _0x11e152=_0x107312[_0xfa6d81];return _0x11e152;}class g extends _0x15dc42{constructor(){const _0x8ab330=_0x5aaba5;super(...arguments),v(this,_0x8ab330(0x70));}[_0x5aaba5(0x76)](_0x419d33){this['_liveShareController']=_0x419d33['get'](_0x4101c0);}[_0x5aaba5(0x6a)](){const _0x5f428a=_0x5aaba5;var _0x5d096b;const _0x517366=this[_0x5f428a(0x81)][_0x5f428a(0x7d)](_0x4c3631)['getCurrentUnitOfType'](_0x40b138[_0x5f428a(0x66)]);if(!_0x517366)throw new Error('No\x20active\x20workbook\x20found.');const _0x4e9738=_0x517366['getUnitId'](),_0x3f9b03=this[_0x5f428a(0x70)][_0x5f428a(0x71)](_0x4e9738);return(_0x5d096b=_0x3f9b03==null?void 0x0:_0x3f9b03['getStatus']())!=null?_0x5d096b:_0x463cf2[_0x5f428a(0x75)];}[_0x5aaba5(0x6d)](){const _0x5a41f0=_0x5aaba5,_0x26711f=this['_injector'][_0x5a41f0(0x7d)](_0x4c3631)['getCurrentUnitOfType'](_0x40b138[_0x5a41f0(0x66)]);if(!_0x26711f)throw new Error(_0x5a41f0(0x68));const _0x563e7a=_0x26711f[_0x5a41f0(0x73)](),_0xdebc9d=this['_liveShareController'][_0x5a41f0(0x71)](_0x563e7a);if(!_0xdebc9d)throw new Error(_0x5a41f0(0x7e));_0xdebc9d['startFollowing']();}[_0x5aaba5(0x7f)](){const _0x53fe39=_0x5aaba5,_0x59e4ca=this[_0x53fe39(0x81)][_0x53fe39(0x7d)](_0x4c3631)['getCurrentUnitOfType'](_0x40b138[_0x53fe39(0x66)]);if(!_0x59e4ca)throw new Error(_0x53fe39(0x68));const _0x309124=_0x59e4ca[_0x53fe39(0x73)](),_0x3f9641=this['_liveShareController'][_0x53fe39(0x71)](_0x309124);if(!_0x3f9641)throw new Error(_0x53fe39(0x7e));_0x3f9641[_0x53fe39(0x7f)]();}[_0x5aaba5(0x6b)](){const _0x36315a=_0x5aaba5,_0x5f323c=this[_0x36315a(0x81)][_0x36315a(0x7d)](_0x4c3631)[_0x36315a(0x69)](_0x40b138[_0x36315a(0x66)]);if(!_0x5f323c)throw new Error(_0x36315a(0x68));const _0x218970=_0x5f323c[_0x36315a(0x73)](),_0x184fbb=this[_0x36315a(0x70)]['getLiveShareCoordinatorSync'](_0x218970);if(!_0x184fbb)throw new Error(_0x36315a(0x7e));_0x184fbb[_0x36315a(0x65)]();}[_0x5aaba5(0x7c)](){const _0x5a5005=_0x5aaba5,_0x3d00e4=this[_0x5a5005(0x81)][_0x5a5005(0x7d)](_0x4c3631)[_0x5a5005(0x69)](_0x40b138[_0x5a5005(0x66)]);if(!_0x3d00e4)throw new Error(_0x5a5005(0x68));const _0x12704b=_0x3d00e4[_0x5a5005(0x73)](),_0x4e1554=this[_0x5a5005(0x70)][_0x5a5005(0x71)](_0x12704b);if(!_0x4e1554)throw new Error(_0x5a5005(0x7e));_0x4e1554['stopPresenting']();}}_0x15dc42[_0x5aaba5(0x7a)](g);class f extends _0x3b6292{get[_0x5aaba5(0x6c)](){return _0x463cf2;}}function _0x1073(){const _0x378a25=['_liveShareController','getLiveShareCoordinatorSync','12siWhER','getUnitId','symbol','IDLE','_initialize','1061915RYbhTJ','1986288bjsEVG','406857KZlBjM','extend','16hKnBgo','stopPresenting','get','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopFollowing','defineProperty','_injector','6463926BrYzbG','7946016KNoPSB','tryStartPresenting','UNIVER_SHEET','18ISIPPV','No\x20active\x20workbook\x20found.','getCurrentUnitOfType','getLiveShareStatus','startPresenting','LiveShareStatusEnum','startFollowing','1236434hRvKRx','7639780WnMYhR'];_0x1073=function(){return _0x378a25;};return _0x1073();}_0x3b6292[_0x5aaba5(0x7a)](f);
1
+ const _0x44158b=_0x3c36;(function(_0x63ccab,_0x4322bf){const _0x5a7554=_0x3c36,_0x17a52f=_0x63ccab();while(!![]){try{const _0x2a14a8=-parseInt(_0x5a7554(0x141))/0x1+parseInt(_0x5a7554(0x146))/0x2+-parseInt(_0x5a7554(0x132))/0x3*(-parseInt(_0x5a7554(0x147))/0x4)+-parseInt(_0x5a7554(0x129))/0x5*(parseInt(_0x5a7554(0x138))/0x6)+parseInt(_0x5a7554(0x13f))/0x7*(-parseInt(_0x5a7554(0x12b))/0x8)+-parseInt(_0x5a7554(0x145))/0x9+parseInt(_0x5a7554(0x12c))/0xa*(parseInt(_0x5a7554(0x148))/0xb);if(_0x2a14a8===_0x4322bf)break;else _0x17a52f['push'](_0x17a52f['shift']());}catch(_0x30613f){_0x17a52f['push'](_0x17a52f['shift']());}}}(_0x4558,0xda8fd));import{LiveShareController as _0x25079d,LiveShareStatus as _0x28692b}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x1b09ac,UniverInstanceType as _0xbc6d5b}from'@univerjs/core';import{FEnum as _0x4463a8,FUniver as _0x50a04a}from'@univerjs/core/facade';function o(_0x54cc69){'@babel/helpers - typeof';const _0x56d6fd=_0x3c36;return o=typeof Symbol==_0x56d6fd(0x13a)&&typeof Symbol[_0x56d6fd(0x131)]=='symbol'?function(_0x1664cf){return typeof _0x1664cf;}:function(_0x47ac38){const _0x305a18=_0x56d6fd;return _0x47ac38&&typeof Symbol==_0x305a18(0x13a)&&_0x47ac38['constructor']===Symbol&&_0x47ac38!==Symbol[_0x305a18(0x130)]?_0x305a18(0x137):typeof _0x47ac38;},o(_0x54cc69);}function s(_0x3df2ce,_0x62faa1){const _0x1e3a96=_0x3c36;if(o(_0x3df2ce)!='object'||!_0x3df2ce)return _0x3df2ce;var _0x4e47e1=_0x3df2ce[Symbol[_0x1e3a96(0x12a)]];if(_0x4e47e1!==void 0x0){var _0x6577c=_0x4e47e1['call'](_0x3df2ce,_0x62faa1||'default');if(o(_0x6577c)!='object')return _0x6577c;throw TypeError(_0x1e3a96(0x13c));}return(_0x62faa1==='string'?String:Number)(_0x3df2ce);}function c(_0x3efa4e){const _0xaa5b56=_0x3c36;var _0x55f31b=s(_0x3efa4e,_0xaa5b56(0x135));return o(_0x55f31b)==_0xaa5b56(0x137)?_0x55f31b:_0x55f31b+'';}function l(_0xbe7cfd,_0x460717,_0x187ada){const _0x5d54d6=_0x3c36;return(_0x460717=c(_0x460717))in _0xbe7cfd?Object[_0x5d54d6(0x13d)](_0xbe7cfd,_0x460717,{'value':_0x187ada,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xbe7cfd[_0x460717]=_0x187ada,_0xbe7cfd;}var u=class extends _0x50a04a{constructor(..._0x2efe95){const _0x2ed626=_0x3c36;super(..._0x2efe95),l(this,_0x2ed626(0x14d),void 0x0);}[_0x44158b(0x144)](_0x5ea3a4){const _0x325b78=_0x44158b;this['_liveShareController']=_0x5ea3a4[_0x325b78(0x136)](_0x25079d);}[_0x44158b(0x134)](){const _0x51596e=_0x44158b;var _0x51dcae;let _0x3247b1=this[_0x51596e(0x12e)][_0x51596e(0x136)](_0x1b09ac)[_0x51596e(0x12f)](_0xbc6d5b[_0x51596e(0x143)]);if(!_0x3247b1)throw Error(_0x51596e(0x13b));let _0x543804=_0x3247b1[_0x51596e(0x139)](),_0x337c9a=this[_0x51596e(0x14d)][_0x51596e(0x140)](_0x543804);return(_0x51dcae=_0x337c9a==null?void 0x0:_0x337c9a[_0x51596e(0x13e)]())==null?_0x28692b[_0x51596e(0x14c)]:_0x51dcae;}[_0x44158b(0x12d)](){const _0x2abad0=_0x44158b;let _0x1c996b=this[_0x2abad0(0x12e)][_0x2abad0(0x136)](_0x1b09ac)['getCurrentUnitOfType'](_0xbc6d5b[_0x2abad0(0x143)]);if(!_0x1c996b)throw Error(_0x2abad0(0x13b));let _0x44e215=_0x1c996b['getUnitId'](),_0x22eb7a=this[_0x2abad0(0x14d)][_0x2abad0(0x140)](_0x44e215);if(!_0x22eb7a)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x22eb7a[_0x2abad0(0x12d)]();}['stopFollowing'](){const _0x326135=_0x44158b;let _0x27a120=this['_injector'][_0x326135(0x136)](_0x1b09ac)[_0x326135(0x12f)](_0xbc6d5b[_0x326135(0x143)]);if(!_0x27a120)throw Error(_0x326135(0x13b));let _0x26ea80=_0x27a120[_0x326135(0x139)](),_0x188bd7=this[_0x326135(0x14d)][_0x326135(0x140)](_0x26ea80);if(!_0x188bd7)throw Error(_0x326135(0x149));_0x188bd7[_0x326135(0x142)]();}['startPresenting'](){const _0x5014ba=_0x44158b;let _0x568141=this['_injector'][_0x5014ba(0x136)](_0x1b09ac)[_0x5014ba(0x12f)](_0xbc6d5b['UNIVER_SHEET']);if(!_0x568141)throw Error(_0x5014ba(0x13b));let _0x45f9c1=_0x568141['getUnitId'](),_0x36f844=this[_0x5014ba(0x14d)]['getLiveShareCoordinatorSync'](_0x45f9c1);if(!_0x36f844)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x36f844[_0x5014ba(0x14e)]();}[_0x44158b(0x14a)](){const _0x11ab80=_0x44158b;let _0x325ab3=this[_0x11ab80(0x12e)][_0x11ab80(0x136)](_0x1b09ac)[_0x11ab80(0x12f)](_0xbc6d5b[_0x11ab80(0x143)]);if(!_0x325ab3)throw Error(_0x11ab80(0x13b));let _0x221d67=_0x325ab3[_0x11ab80(0x139)](),_0x219297=this['_liveShareController'][_0x11ab80(0x140)](_0x221d67);if(!_0x219297)throw Error(_0x11ab80(0x149));_0x219297[_0x11ab80(0x14a)]();}};_0x50a04a[_0x44158b(0x14b)](u);function _0x4558(){const _0x51f193=['getLiveShareCoordinatorSync','1562559ntpetW','stopFollowing','UNIVER_SHEET','_initialize','15645249bxVRDK','1721902vMaOnt','16dDJAXB','55YBNFBI','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','extend','IDLE','_liveShareController','tryStartPresenting','385jtlUWS','toPrimitive','3405704FOPYjZ','7856950jwPJgk','startFollowing','_injector','getCurrentUnitOfType','prototype','iterator','908931WIqSLZ','LiveShareStatusEnum','getLiveShareStatus','string','get','symbol','7974YOAsug','getUnitId','function','No\x20active\x20workbook\x20found.','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','defineProperty','getStatus','28dkMydE'];_0x4558=function(){return _0x51f193;};return _0x4558();}function _0x3c36(_0x58f824,_0x592433){_0x58f824=_0x58f824-0x129;const _0x455891=_0x4558();let _0x3c364c=_0x455891[_0x58f824];return _0x3c364c;}var d=class extends _0x4463a8{get[_0x44158b(0x133)](){return _0x28692b;}};_0x4463a8[_0x44158b(0x14b)](d);export{};
package/lib/index.css CHANGED
@@ -1 +1,80 @@
1
- .univer-mb-3{margin-bottom:.75rem}.univer-box-border{box-sizing:border-box}.univer-size-4{width:1rem;height:1rem}.univer-w-full{width:100%}.univer-min-w-60{min-width:15rem}.univer-cursor-not-allowed{cursor:not-allowed}.univer-cursor-pointer{cursor:pointer}.univer-border-none{border-style:none}.univer-bg-gray-400{background-color:var(--univer-gray-400)}.univer-bg-gray-900{background-color:var(--univer-gray-900)}.univer-px-4{padding-left:1rem;padding-right:1rem}.univer-py-3{padding-top:.75rem;padding-bottom:.75rem}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-gray-900{color:var(--univer-gray-900)}.univer-outline-none{outline:2px solid transparent;outline-offset:2px}.hover\:univer-bg-gray-400:hover{background-color:var(--univer-gray-400)}.dark\:\!univer-bg-white:where(.univer-dark,.univer-dark *){background-color:var(--univer-white)!important}.dark\:\!univer-text-white:where(.univer-dark,.univer-dark *){color:var(--univer-white)!important}
1
+ .univer-mb-3 {
2
+ margin-bottom: .75rem;
3
+ }
4
+
5
+ .univer-box-border {
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ .univer-size-4 {
10
+ width: 1rem;
11
+ height: 1rem;
12
+ }
13
+
14
+ .univer-w-full {
15
+ width: 100%;
16
+ }
17
+
18
+ .univer-min-w-60 {
19
+ min-width: 15rem;
20
+ }
21
+
22
+ .univer-cursor-not-allowed {
23
+ cursor: not-allowed;
24
+ }
25
+
26
+ .univer-cursor-pointer {
27
+ cursor: pointer;
28
+ }
29
+
30
+ .univer-border-none {
31
+ border-style: none;
32
+ }
33
+
34
+ .univer-bg-gray-400 {
35
+ background-color: var(--univer-gray-400);
36
+ }
37
+
38
+ .univer-bg-gray-900 {
39
+ background-color: var(--univer-gray-900);
40
+ }
41
+
42
+ .univer-px-4 {
43
+ padding-left: 1rem;
44
+ padding-right: 1rem;
45
+ }
46
+
47
+ .univer-py-3 {
48
+ padding-top: .75rem;
49
+ padding-bottom: .75rem;
50
+ }
51
+
52
+ .univer-text-sm {
53
+ font-size: .875rem;
54
+ line-height: 1.25rem;
55
+ }
56
+
57
+ .univer-text-gray-600 {
58
+ color: var(--univer-gray-600);
59
+ }
60
+
61
+ .univer-text-gray-900 {
62
+ color: var(--univer-gray-900);
63
+ }
64
+
65
+ .univer-outline-none {
66
+ outline-offset: 2px;
67
+ outline: 2px solid #0000;
68
+ }
69
+
70
+ .hover\:univer-bg-gray-400:hover {
71
+ background-color: var(--univer-gray-400);
72
+ }
73
+
74
+ .dark\:\!univer-bg-white:where(.univer-dark, .univer-dark *) {
75
+ background-color: var(--univer-white) !important;
76
+ }
77
+
78
+ .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
79
+ color: var(--univer-white) !important;
80
+ }
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4d6d62=_0xa948;(function(_0x5363a2,_0x244f3a){const _0x51ccf9=_0xa948,_0x28c602=_0x5363a2();while(!![]){try{const _0x335db0=parseInt(_0x51ccf9(0x143))/0x1*(parseInt(_0x51ccf9(0x16f))/0x2)+-parseInt(_0x51ccf9(0x1e2))/0x3+-parseInt(_0x51ccf9(0x1be))/0x4+parseInt(_0x51ccf9(0x144))/0x5*(parseInt(_0x51ccf9(0x13a))/0x6)+-parseInt(_0x51ccf9(0x1a5))/0x7+parseInt(_0x51ccf9(0x1de))/0x8+parseInt(_0x51ccf9(0x1e3))/0x9;if(_0x335db0===_0x244f3a)break;else _0x28c602['push'](_0x28c602['shift']());}catch(_0x2fee8d){_0x28c602['push'](_0x28c602['shift']());}}}(_0xf474,0xcb402));var K=Object[_0x4d6d62(0x14e)],q=(_0x3d5420,_0x327387,_0x324a93)=>_0x327387 in _0x3d5420?K(_0x3d5420,_0x327387,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x324a93}):_0x3d5420[_0x327387]=_0x324a93,u=(_0x3c5382,_0x5acf43,_0x15a42e)=>q(_0x3c5382,typeof _0x5acf43!='symbol'?_0x5acf43+'':_0x5acf43,_0x15a42e);import{Disposable as _0x323dd8,toDisposable as _0xa8d7d4,Inject as _0x51d972,Injector as _0xcf8b4b,RxDisposable as _0x5887f9,UniverInstanceType as _0x3230f4,DisposableCollection as _0x535b9d,CommandType as _0x237676,IUniverInstanceService as _0x181778,IConfigService as _0x1db153,ICommandService as _0x27b1d3,DependentOn as _0x290c90,Plugin as _0x3b3755,merge as _0x2b1cea,registerDependencies as _0x11f1e4,mergeOverrideWithDependencies as _0x54ad4b,touchDependencies as _0x2c8ee3}from'@univerjs/core';import{useDependency as _0x58ad3e,useObservable as _0x21f95e,BuiltInUIPart as _0x16d518,connectInjector as _0xa38e19,IUIPartsService as _0x4b4e35}from'@univerjs/ui';import{jsx as _0x375672,jsxs as _0x3671e9,Fragment as _0xb86804}from'react/jsx-runtime';import{Dropdown as _0x22b2fe,clsx as _0x5ce4bb,Button as _0x491c82}from'@univerjs/design';import{useRef as _0x31a51e,createElement as _0x585d5f,forwardRef as _0x5ba13f,useState as _0x50d273,useEffect as _0x637d7a}from'react';import{CollaborationEvent as _0x1c46df,parseProtocolChangeset as _0x53ebe4}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5d4a23,SessionStatus as _0x2fbc42,UniverCollaborationClientPlugin as _0x49f19d}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xae9bf6,SetWorksheetActiveOperation as _0x2461ad}from'@univerjs/sheets';import{BehaviorSubject as _0x59ad45,Subject as _0x21afba}from'rxjs';import{takeUntil as _0x3c7564,throttleTime as _0x3d9c65}from'rxjs/operators';import{SetZoomRatioOperation as _0x114d12,SetScrollOperation as _0x9a2160}from'@univerjs/sheets-ui';function W({ref:_0x48f7cb,..._0x3d665b}){const _0x463001=_0x4d6d62,{icon:_0x5d94ee,id:_0x21daf0,className:_0x451cf9,extend:_0x5d0922,..._0x38ea43}=_0x3d665b,_0x42270f=(_0x463001(0x1b6)+_0x21daf0+'\x20'+(_0x451cf9||''))[_0x463001(0x147)](),_0x532d61=_0x31a51e('_'+we());return G(_0x5d94ee,''+_0x21daf0,{'defIds':_0x5d94ee[_0x463001(0x1df)],'idSuffix':_0x532d61[_0x463001(0x186)]},{'ref':_0x48f7cb,'className':_0x42270f,..._0x38ea43},_0x5d0922);}function G(_0x193c04,_0x3f91c0,_0x5baa52,_0x4adc32,_0x3f9cc9){const _0x413ed0=_0x4d6d62;return _0x585d5f(_0x193c04[_0x413ed0(0x193)],{'key':_0x3f91c0,...Ee(_0x193c04,_0x5baa52,_0x3f9cc9),..._0x4adc32},(Oe(_0x193c04,_0x5baa52)[_0x413ed0(0x1ca)]||[])[_0x413ed0(0x19b)]((_0x4910fb,_0x16b700)=>G(_0x4910fb,_0x3f91c0+'-'+_0x193c04[_0x413ed0(0x193)]+'-'+_0x16b700,_0x5baa52,void 0x0,_0x3f9cc9)));}function Ee(_0x583c55,_0x5d01d4,_0x366463){const _0x540984=_0x4d6d62,_0x440da9={..._0x583c55[_0x540984(0x187)]};_0x366463!=null&&_0x366463[_0x540984(0x1c9)]&&_0x440da9[_0x540984(0x1d8)]===_0x540984(0x1c9)&&(_0x440da9[_0x540984(0x1d8)]=_0x366463[_0x540984(0x1c9)]),_0x583c55[_0x540984(0x193)]===_0x540984(0x182)&&_0x440da9['id']&&(_0x440da9['id']=_0x440da9['id']+_0x5d01d4[_0x540984(0x177)]),Object['entries'](_0x440da9)[_0x540984(0x13d)](([_0x392a22,_0x41395d])=>{const _0x160c05=_0x540984;_0x392a22==='mask'&&typeof _0x41395d==_0x160c05(0x135)&&(_0x440da9[_0x392a22]=_0x41395d[_0x160c05(0x167)](/url\(#(.*)\)/,_0x160c05(0x1d7)+_0x5d01d4[_0x160c05(0x177)]+')'));});const {defIds:_0x5ea405}=_0x5d01d4;return!_0x5ea405||_0x5ea405['length']===0x0||(_0x583c55[_0x540984(0x193)]===_0x540984(0x18e)&&_0x440da9[_0x540984(0x1c1)]&&(_0x440da9[_0x540984(0x1c1)]=_0x440da9[_0x540984(0x1c1)]+_0x5d01d4['idSuffix']),Object[_0x540984(0x16e)](_0x440da9)[_0x540984(0x13d)](([_0x41e109,_0x57cdf8])=>{const _0x13a39b=_0x540984;typeof _0x57cdf8==_0x13a39b(0x135)&&(_0x440da9[_0x41e109]=_0x57cdf8[_0x13a39b(0x167)](/url\(#(.*)\)/,_0x13a39b(0x1d7)+_0x5d01d4[_0x13a39b(0x177)]+')'));})),_0x440da9;}function Oe(_0x9ed9f6,_0x154e67){const _0xf8687=_0x4d6d62;var _0x438ad3;const {defIds:_0x5d57a4}=_0x154e67;return!_0x5d57a4||_0x5d57a4[_0xf8687(0x19a)]===0x0?_0x9ed9f6:_0x9ed9f6[_0xf8687(0x193)]==='defs'&&((_0x438ad3=_0x9ed9f6[_0xf8687(0x1ca)])!=null&&_0x438ad3['length'])?{..._0x9ed9f6,'children':_0x9ed9f6['children']['map'](_0x506c9f=>typeof _0x506c9f[_0xf8687(0x187)]['id']==_0xf8687(0x135)&&_0x5d57a4&&_0x5d57a4['includes'](_0x506c9f[_0xf8687(0x187)]['id'])?{..._0x506c9f,'attrs':{..._0x506c9f[_0xf8687(0x187)],'id':_0x506c9f[_0xf8687(0x187)]['id']+_0x154e67[_0xf8687(0x177)]}}:_0x506c9f)}:_0x9ed9f6;}function we(){const _0x37b0f2=_0x4d6d62;return Math['random']()[_0x37b0f2(0x1ba)](0x24)[_0x37b0f2(0x15b)](0x2,0x8);}W[_0x4d6d62(0x152)]=_0x4d6d62(0x13c);const Ne={'tag':_0x4d6d62(0x15e),'attrs':{'xmlns':_0x4d6d62(0x1e1),'fill':_0x4d6d62(0x19c),'viewBox':_0x4d6d62(0x149),'width':_0x4d6d62(0x136),'height':'1em'},'children':[{'tag':_0x4d6d62(0x153),'attrs':{'fill':_0x4d6d62(0x1db),'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':_0x4d6d62(0x153),'attrs':{'fill':_0x4d6d62(0x1db),'d':_0x4d6d62(0x17d),'fillRule':_0x4d6d62(0x19f),'clipRule':'evenodd'}}]},Y=_0x5ba13f(function(_0x355295,_0x1cd8de){const _0x31487e=_0x4d6d62;return _0x585d5f(W,Object[_0x31487e(0x1cd)]({},_0x355295,{'id':_0x31487e(0x185),'ref':_0x1cd8de,'icon':Ne}));});Y[_0x4d6d62(0x152)]=_0x4d6d62(0x17b);class R extends _0x323dd8{constructor(){const _0x1ee40e=_0x4d6d62;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x1ee40e(0x194),new Set());}[_0x4d6d62(0x1c8)](_0x327016){const _0x54f926=_0x4d6d62;return this[_0x54f926(0x176)]['add'](_0x327016),_0xa8d7d4(()=>this[_0x54f926(0x176)][_0x54f926(0x184)](_0x327016));}['registerInitialStateReporter'](_0x243199){const _0x3c95dc=_0x4d6d62;return this['_reporters'][_0x3c95dc(0x1c3)](_0x243199),_0xa8d7d4(()=>this[_0x3c95dc(0x194)][_0x3c95dc(0x184)](_0x243199));}['shouldShareOperation'](_0x64e66a){const _0x1d4be6=_0x4d6d62;return this[_0x1d4be6(0x176)][_0x1d4be6(0x1c6)](_0x64e66a);}[_0x4d6d62(0x1da)](_0x377235){const _0x2d0950=_0x4d6d62;return Array[_0x2d0950(0x1a9)](this['_reporters'])[_0x2d0950(0x19b)](_0x6a6b4d=>_0x6a6b4d(_0x377235));}}var Ce=Object['getOwnPropertyDescriptor'],B=(_0x584ab8,_0x118b31,_0x103978,_0x149c43)=>{const _0x16ad56=_0x4d6d62;for(var _0x4cc434=_0x149c43>0x1?void 0x0:_0x149c43?Ce(_0x118b31,_0x103978):_0x118b31,_0x53d49e=_0x584ab8[_0x16ad56(0x19a)]-0x1,_0x35c765;_0x53d49e>=0x0;_0x53d49e--)(_0x35c765=_0x584ab8[_0x53d49e])&&(_0x4cc434=_0x35c765(_0x4cc434)||_0x4cc434);return _0x4cc434;},_=(_0x593f98,_0x4432b9)=>(_0x401731,_0x1df4ce)=>_0x4432b9(_0x401731,_0x1df4ce,_0x593f98);function _0xa948(_0x313343,_0x4fa916){_0x313343=_0x313343-0x135;const _0xf474a0=_0xf474();let _0xa94884=_0xf474a0[_0x313343];return _0xa94884;}let m=class extends _0x5887f9{constructor(_0x2714c9,_0x351b74,_0x37c4ce){const _0x568e4d=_0x4d6d62;super(),u(this,_0x568e4d(0x1a0),new Map()),(this[_0x568e4d(0x159)]=_0x2714c9,this[_0x568e4d(0x17f)]=_0x351b74,this[_0x568e4d(0x1bd)]=_0x37c4ce,this['_init']());}async['getLiveShareCoordinator'](_0x26a1c0){const _0x746a7e=_0x4d6d62;return this[_0x746a7e(0x1a0)][_0x746a7e(0x1c6)](_0x26a1c0)||await this[_0x746a7e(0x157)](_0x26a1c0),this[_0x746a7e(0x1a0)][_0x746a7e(0x169)](_0x26a1c0);}['getLiveShareCoordinatorSync'](_0x4f7125){const _0x2a0a93=_0x4d6d62;var _0x1173e9;return(_0x1173e9=this[_0x2a0a93(0x1a0)][_0x2a0a93(0x169)](_0x4f7125))!=null?_0x1173e9:null;}[_0x4d6d62(0x137)](){const _0x3aae69=_0x4d6d62;this[_0x3aae69(0x159)]['getTypeOfUnitAdded$'](_0x3230f4[_0x3aae69(0x1ad)])[_0x3aae69(0x178)](_0x3c7564(this['dispose$']))[_0x3aae69(0x1bf)](async _0x1be165=>{const _0x520fd3=_0x3aae69,_0x9663f3=_0x1be165['getUnitId']();this[_0x520fd3(0x1a0)][_0x520fd3(0x1c6)](_0x9663f3)||this[_0x520fd3(0x157)](_0x9663f3);}),this[_0x3aae69(0x159)][_0x3aae69(0x1d5)](_0x3230f4[_0x3aae69(0x1ad)])['pipe'](_0x3c7564(this[_0x3aae69(0x13e)]))['subscribe'](_0x5d9e82=>{const _0x1adb1f=_0x3aae69,_0x21668a=_0x5d9e82[_0x1adb1f(0x13b)](),_0x11a7c6=this[_0x1adb1f(0x1a0)][_0x1adb1f(0x169)](_0x21668a);_0x11a7c6==null||_0x11a7c6[_0x1adb1f(0x1c7)]();});}async['_startLiveShareCoordinator'](_0x1a81a4){const _0x233370=_0x4d6d62,_0xea2d2e=await this[_0x233370(0x1bd)][_0x233370(0x151)](_0x1a81a4),_0x59e85c=this[_0x233370(0x17f)][_0x233370(0x192)](C,_0x1a81a4,_0xea2d2e);return _0x59e85c['init'](),this[_0x233370(0x1a0)][_0x233370(0x195)](_0x1a81a4,_0x59e85c),_0x59e85c;}};m=B([_(0x0,_0x181778),_(0x1,_0x51d972(_0xcf8b4b)),_(0x2,_0x51d972(_0x5d4a23))],m);var c=(_0xe472ec=>(_0xe472ec[_0x4d6d62(0x174)]=_0x4d6d62(0x140),_0xe472ec['IDLE']='idle',_0xe472ec[_0x4d6d62(0x1dd)]='following',_0xe472ec[_0x4d6d62(0x196)]=_0x4d6d62(0x190),_0xe472ec[_0x4d6d62(0x158)]=_0x4d6d62(0x1d1),_0xe472ec))(c||{});const De='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;function _0xf474(){const _0x26341f=['_startFollowing','FOLLOWING','4799352rKUtbc','defIds','asObservable','http://www.w3.org/2000/svg','1798437hcnhVz','6559641LifFAj','string','1em','_init','_commandService','send','42138FuTmFz','getUnitId','UniverIcon','forEach','dispose$','div','offline','tryStartPresenting','stringify','57431fMclkr','595CigHnA','_status$','following','trim','Present\x20this\x20document','0\x200\x2017\x2017','registerComponent','pluginName','getLiveShareCoordinator','sessionStatus$','defineProperty','UNIVER_UNKNOWN','version','requireSession','displayName','path','LIVESHARE_TERMINATE','LIVESHARE_OPERATION','_collabSession','_startLiveShareCoordinator','PRESENTING','_univerInstanceService','reverse','substring','live-share.config','_configService','svg','univer-mb-3\x20univer-w-full\x20univer-text-sm','init','IDLE','You\x27re\x20not\x20following\x20the\x20presenter','presenter','then','disposeWithMe','You\x27are\x20offline.','replace','shouldShareOperation','get','ONLINE','name','UNIVER_LIVE_SHARE_PLUGIN','_beIdle','entries','14VixfrW','You\x27re\x20following\x20the\x20presenter','_mountLiveShare','getCurrentTypeOfUnit$','getOwnPropertyDescriptor','OFFLINE','_handleNewHost','_sharedOperations','idSuffix','pipe','_commandDisposable','Start','LiveShareIcon','OPERATION','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','values','_injector','_handleTerminate','_config','mask','sheet','delete','live-share-icon','current','attrs','idle','find','stopPresenting','You\x27re\x20presenting\x20the\x20document','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','onStarting','use','@univerjs-pro/live-share','not-following','getMemberID','createInstance','tag','_reporters','set','NOT_FOLLOWING','type','_liveShareService','setConfig','length','map','none','executeCommand','HEADER_MENU','evenodd','_entities','complete','end','packageName','_stopFollowing','4078872BEyboA','text','LIVESHARE_NEW_HOST','univer-size-4','from','_handleNewChangeSets','_presenter','_unitID','UNIVER_SHEET','0.17.0','Stop\x20presenting','status$','event$','params','NEW_CHANGESETS','operations','override','univerjs-icon\x20univerjs-icon-','_stopPresenting','_handleOffline','next','toString','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','_collabSessionService','2207332DSjwFh','subscribe','symbol','xlink:href','default','add','_handleOnline','clear','has','dispose','registerSharedOperation','colorChannel1','children','onRendered','unsubscribe','assign','LIVESHARE_FETCH_OPERATIONS','data','_status','presenting','LIVESHARE_REQUEST_HOST','_handleOperation','startFollowing','getTypeOfUnitDisposed$','stopFollowing','url(#$1','fill','button','getInitialStates','currentColor'];_0xf474=function(){return _0x26341f;};return _0xf474();}let C=class extends _0x5887f9{constructor(_0x123129,_0x3cc1ee,_0x1679d4,_0x3efdaf,_0xec115d){const _0x5c2a8c=_0x4d6d62;super(),u(this,'_status$',new _0x59ad45('idle')),u(this,_0x5c2a8c(0x1b0),this[_0x5c2a8c(0x145)][_0x5c2a8c(0x1e0)]()),u(this,_0x5c2a8c(0x137),!0x1),u(this,_0x5c2a8c(0x179),null),u(this,_0x5c2a8c(0x1ab),null),(this['_unitID']=_0x123129,this[_0x5c2a8c(0x156)]=_0x3cc1ee,this[_0x5c2a8c(0x15d)]=_0x1679d4,this[_0x5c2a8c(0x198)]=_0x3efdaf,this[_0x5c2a8c(0x138)]=_0xec115d);}get[_0x4d6d62(0x1d0)](){const _0x380cf1=_0x4d6d62;return this['_status$'][_0x380cf1(0x1bb)]();}[_0x4d6d62(0x1c7)](){const _0x4e74d7=_0x4d6d62;var _0x4ffd53;(_0x4ffd53=this[_0x4e74d7(0x179)])==null||_0x4ffd53['dispose'](),this[_0x4e74d7(0x145)]['next'](_0x4e74d7(0x188)),this[_0x4e74d7(0x145)][_0x4e74d7(0x1a1)]();}['getStatus'](){return this['_status'];}[_0x4d6d62(0x160)](){const _0x3e5fe1=_0x4d6d62;this[_0x3e5fe1(0x137)]||(this[_0x3e5fe1(0x137)]=!0x0,this[_0x3e5fe1(0x156)][_0x3e5fe1(0x14d)][_0x3e5fe1(0x178)](_0x3c7564(this[_0x3e5fe1(0x13e)]))[_0x3e5fe1(0x1bf)](_0x1f9ab3=>{const _0x1dd3af=_0x3e5fe1;switch(_0x1f9ab3){case _0x2fbc42[_0x1dd3af(0x174)]:this['_handleOffline']();break;case _0x2fbc42[_0x1dd3af(0x16a)]:this[_0x1dd3af(0x1c4)]();break;}}),this[_0x3e5fe1(0x156)][_0x3e5fe1(0x1b1)][_0x3e5fe1(0x178)](_0x3c7564(this[_0x3e5fe1(0x13e)]))['subscribe'](_0xff89ec=>{const _0x2a6995=_0x3e5fe1,{eventID:_0x357551}=_0xff89ec;switch(_0x357551){case _0x1c46df[_0x2a6995(0x1a7)]:this[_0x2a6995(0x175)](_0xff89ec);break;case _0x1c46df[_0x2a6995(0x155)]:this[_0x2a6995(0x1d3)](_0xff89ec);break;case _0x1c46df[_0x2a6995(0x154)]:this[_0x2a6995(0x180)]();break;case _0x1c46df[_0x2a6995(0x1b3)]:this['_handleNewChangeSets'](_0xff89ec);break;}}));}[_0x4d6d62(0x141)](){const _0x1d0002=_0x4d6d62;this['_collabSession'][_0x1d0002(0x139)]({'eventID':_0x1c46df[_0x1d0002(0x1d2)],'data':{'unitID':this[_0x1d0002(0x1ac)],'userID':this['_collabSession'][_0x1d0002(0x191)]()}},this['_unitID']);}[_0x4d6d62(0x18a)](){const _0x402df4=_0x4d6d62;this[_0x402df4(0x1d0)]===_0x402df4(0x1d1)&&(this[_0x402df4(0x145)][_0x402df4(0x1b9)](_0x402df4(0x188)),this[_0x402df4(0x156)][_0x402df4(0x139)]({'eventID':_0x1c46df['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x402df4(0x1ac)]));}[_0x4d6d62(0x1d4)](){const _0x25da23=_0x4d6d62;this['_status']===_0x25da23(0x190)&&(this[_0x25da23(0x145)][_0x25da23(0x1b9)](_0x25da23(0x146)),this[_0x25da23(0x1dc)]());}[_0x4d6d62(0x1d6)](){const _0x3e789d=_0x4d6d62;this[_0x3e789d(0x1d0)]===_0x3e789d(0x146)&&this[_0x3e789d(0x1a4)]();}[_0x4d6d62(0x175)](_0x4ee544){const _0x2e58d2=_0x4d6d62,{presenter:_0x3e3436}=_0x4ee544[_0x2e58d2(0x1cf)],_0x1d1527=this[_0x2e58d2(0x156)][_0x2e58d2(0x191)]();this['_presenter']=_0x3e3436,_0x3e3436===_0x1d1527?(this[_0x2e58d2(0x1a4)](),this['_startPresenting']()):this[_0x2e58d2(0x1d0)]!==_0x2e58d2(0x190)&&(this[_0x2e58d2(0x1b7)](),this[_0x2e58d2(0x1dc)]());}['_fetchOperations'](){const _0x247f5b=_0x4d6d62,_0x3f4c0f={'eventID':_0x1c46df[_0x247f5b(0x1ce)]};this[_0x247f5b(0x156)][_0x247f5b(0x139)](_0x3f4c0f,this[_0x247f5b(0x1ac)]);}[_0x4d6d62(0x180)](){const _0x225564=_0x4d6d62;this[_0x225564(0x1ab)]=null,this[_0x225564(0x1d0)]!==_0x225564(0x1d1)&&this[_0x225564(0x16d)]();}[_0x4d6d62(0x1aa)](_0x57b912){const _0xb578d5=_0x4d6d62;if(this[_0xb578d5(0x1d0)]===_0xb578d5(0x146)&&this[_0xb578d5(0x1ab)]===_0x57b912['data']['memberID']){const _0x13e38a=_0x53ebe4(_0x57b912[_0xb578d5(0x1cf)])['mutations'][_0xb578d5(0x15a)]()[_0xb578d5(0x189)](_0x3e8c9a=>_0x3e8c9a['id']===_0xae9bf6['id']);if(_0x13e38a){const _0x597746=_0x13e38a[_0xb578d5(0x1b2)]['unitId'],_0xc37f95=_0x13e38a[_0xb578d5(0x1b2)][_0xb578d5(0x183)]['id'];setTimeout(()=>{const _0x41afb2=_0xb578d5;this[_0x41afb2(0x138)][_0x41afb2(0x19d)](_0x2461ad['id'],{'unitId':_0x597746,'subUnitId':_0xc37f95},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x243045=_0x4d6d62;this[_0x243045(0x145)][_0x243045(0x1b9)](_0x243045(0x1d1));const _0x2699af=new Map(),_0x3ef63a=this[_0x243045(0x179)]=new _0x535b9d();_0x3ef63a['add'](_0xa8d7d4(()=>{const _0x22f9bd=_0x243045;_0x2699af[_0x22f9bd(0x13d)](_0x3878f8=>_0x3878f8[_0x22f9bd(0x1a1)]()),_0x2699af[_0x22f9bd(0x1c5)]();})),_0x3ef63a[_0x243045(0x1c3)](this[_0x243045(0x138)]['onCommandExecuted'](_0x1ca2f1=>{const _0xa64f87=_0x243045;var _0x2fc702;if(_0x1ca2f1['type']!==_0x237676[_0xa64f87(0x17c)]||!this[_0xa64f87(0x198)][_0xa64f87(0x168)](_0x1ca2f1['id']))return;const {id:_0x279cac}=_0x1ca2f1;let _0x4ce199;_0x2699af[_0xa64f87(0x1c6)](_0x279cac)?_0x4ce199=_0x2699af['get'](_0x279cac):(_0x4ce199=new _0x21afba(),_0x2699af[_0xa64f87(0x195)](_0x279cac,_0x4ce199),_0x4ce199[_0xa64f87(0x178)](_0x3d9c65((_0x2fc702=this[_0xa64f87(0x15d)]['getConfig'](De))!=null?_0x2fc702:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2f94ef=>{const _0x261e9a=_0xa64f87;this[_0x261e9a(0x156)]['send']({'eventID':_0x1c46df[_0x261e9a(0x155)],'data':{'unitID':this['_unitID'],'operations':{[_0x2f94ef['id']]:{'id':_0x2f94ef['id'],'params':JSON[_0x261e9a(0x142)](_0x2f94ef[_0x261e9a(0x1b2)])}}}},this[_0x261e9a(0x1ac)]);})),_0x4ce199[_0xa64f87(0x1b9)](_0x1ca2f1);})),this[_0x243045(0x198)][_0x243045(0x1da)](this[_0x243045(0x1ac)])['forEach'](_0x3dfe42=>this[_0x243045(0x156)][_0x243045(0x139)]({'eventID':_0x1c46df['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x243045(0x1ac)],'operations':{[_0x3dfe42['id']]:{'id':_0x3dfe42['id'],'params':JSON[_0x243045(0x142)](_0x3dfe42[_0x243045(0x1b2)])}}}},this[_0x243045(0x1ac)]));}[_0x4d6d62(0x1b7)](){const _0x1bff52=_0x4d6d62;var _0x1a2c6e;this[_0x1bff52(0x145)]['next'](_0x1bff52(0x188)),(_0x1a2c6e=this['_commandDisposable'])==null||_0x1a2c6e[_0x1bff52(0x1c7)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x177b25=_0x4d6d62;var _0x2fea24;(_0x2fea24=this[_0x177b25(0x179)])==null||_0x2fea24['dispose'](),this['_status$'][_0x177b25(0x1b9)](_0x177b25(0x146));}[_0x4d6d62(0x16d)](){const _0x26dd68=_0x4d6d62;var _0x1d8caa;this[_0x26dd68(0x145)][_0x26dd68(0x1b9)]('idle'),(_0x1d8caa=this['_commandDisposable'])==null||_0x1d8caa[_0x26dd68(0x1c7)](),this[_0x26dd68(0x179)]=null;}[_0x4d6d62(0x1a4)](){const _0x54c544=_0x4d6d62;var _0x500076;this[_0x54c544(0x145)][_0x54c544(0x1b9)](_0x54c544(0x190)),(_0x500076=this[_0x54c544(0x179)])==null||_0x500076[_0x54c544(0x1c7)]();}['_handleOperation'](_0x10ddc2){const _0x558d84=_0x4d6d62;if(['presenting','not-following',_0x558d84(0x140)]['includes'](this[_0x558d84(0x1d0)])||!_0x10ddc2[_0x558d84(0x1cf)][_0x558d84(0x163)]||_0x10ddc2[_0x558d84(0x1cf)]['presenter']===this[_0x558d84(0x156)][_0x558d84(0x191)]())return;this[_0x558d84(0x1d0)]===_0x558d84(0x188)&&this['_startFollowing']();const _0x5ddb0=_0x10ddc2['data'][_0x558d84(0x1b4)];Object[_0x558d84(0x17e)](_0x5ddb0)[_0x558d84(0x13d)](_0x426586=>{const _0x5ea096=_0x558d84;this[_0x5ea096(0x138)][_0x5ea096(0x19d)](_0x426586['id'],_0x426586[_0x5ea096(0x1b2)]?JSON['parse'](_0x426586['params']):null,{'fromCollab':!0x0});});}[_0x4d6d62(0x1b8)](){const _0xd1c7ba=_0x4d6d62;var _0x2c58f2;this[_0xd1c7ba(0x145)]['next'](_0xd1c7ba(0x140)),(_0x2c58f2=this['_commandDisposable'])==null||_0x2c58f2[_0xd1c7ba(0x1c7)]();}[_0x4d6d62(0x1c4)](){const _0x2bbace=_0x4d6d62;this[_0x2bbace(0x145)][_0x2bbace(0x1b9)](_0x2bbace(0x188)),this['_fetchOperations']();}};C=B([_(0x2,_0x1db153),_(0x3,_0x51d972(R)),_(0x4,_0x27b1d3)],C);function Re(){const _0x520630=_0x4d6d62,_0x334731=_0x58ad3e(m),_0x525aee=_0x58ad3e(_0x181778),_0x416ea6=_0x21f95e(()=>_0x525aee[_0x520630(0x172)](_0x3230f4[_0x520630(0x1ad)]),void 0x0,!0x1,[]),[_0x2a69cd,_0x17b330]=_0x50d273(null),[_0xde1cfc,_0x3f7955]=_0x50d273(c['IDLE']),_0xf87a92=_0x31a51e(null);return _0x637d7a(()=>(_0x416ea6&&_0x334731[_0x520630(0x14c)](_0x416ea6['getUnitId']())[_0x520630(0x164)](_0x1fe415=>{const _0x4a9ece=_0x520630;_0x17b330(_0x1fe415),_0xf87a92[_0x4a9ece(0x186)]=_0x1fe415['status$'][_0x4a9ece(0x1bf)](_0x109993=>{_0x3f7955(_0x109993);});}),()=>{const _0x5b0f84=_0x520630;var _0x1e48a6;(_0x1e48a6=_0xf87a92[_0x5b0f84(0x186)])==null||_0x1e48a6[_0x5b0f84(0x1cc)](),_0xf87a92[_0x5b0f84(0x186)]=null;}),[_0x416ea6,_0x334731]),_0x2a69cd?_0x375672(_0x22b2fe,{'align':_0x520630(0x1a2),'disabled':_0xde1cfc===c[_0x520630(0x174)],'className':_0x520630(0x1bc),'overlay':_0x375672($e,{'status':_0xde1cfc,'coordinator':_0x2a69cd}),'children':_0x375672(_0x520630(0x1d9),{'className':_0x5ce4bb(_0x520630(0x18c),{'univer-cursor-not-allowed':_0xde1cfc===c[_0x520630(0x174)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xde1cfc!==c[_0x520630(0x174)]}),'type':_0x520630(0x1d9),'children':_0x375672(Y,{'className':_0x520630(0x1a8)})})}):null;}function $e(_0x2304a2){const _0x4f6485=_0x4d6d62,{status:_0x39d10f,coordinator:_0x38f39c}=_0x2304a2;switch(_0x39d10f){case c[_0x4f6485(0x161)]:return _0x375672(xe,{'coordinator':_0x38f39c});case c[_0x4f6485(0x1dd)]:return _0x375672(Pe,{'coordinator':_0x38f39c});case c[_0x4f6485(0x196)]:return _0x375672(Ae,{'coordinator':_0x38f39c});case c[_0x4f6485(0x174)]:return _0x375672(Fe,{});case c[_0x4f6485(0x158)]:return _0x375672(Te,{'coordinator':_0x38f39c});default:return null;}}function xe(_0x1c714c){const _0x16717e=_0x4d6d62,{coordinator:_0x4bef95}=_0x1c714c;return _0x3671e9(_0xb86804,{'children':[_0x375672(_0x16717e(0x13f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x16717e(0x148)}),_0x375672(_0x491c82,{'onClick':()=>_0x4bef95['tryStartPresenting'](),'children':_0x16717e(0x17a)})]});}function Pe(_0x2a388b){const _0x2a25ad=_0x4d6d62,{coordinator:_0x1b2399}=_0x2a388b;return _0x3671e9(_0xb86804,{'children':[_0x375672(_0x2a25ad(0x13f),{'className':_0x2a25ad(0x15f),'children':_0x2a25ad(0x170)}),_0x375672(_0x491c82,{'onClick':()=>_0x1b2399[_0x2a25ad(0x1d6)](),'children':'Stop\x20following'})]});}function Ae(_0x44d9fc){const _0x58f4f7=_0x4d6d62,{coordinator:_0x1693f4}=_0x44d9fc;return _0x3671e9(_0xb86804,{'children':[_0x375672(_0x58f4f7(0x13f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x58f4f7(0x162)}),_0x375672(_0x491c82,{'variant':_0x58f4f7(0x1a6),'onClick':()=>_0x1693f4[_0x58f4f7(0x1d4)](),'children':'Start\x20following'})]});}function Te(_0x4391b9){const _0x2e3dcd=_0x4d6d62,{coordinator:_0x1fe486}=_0x4391b9;return _0x3671e9(_0xb86804,{'children':[_0x375672(_0x2e3dcd(0x13f),{'className':_0x2e3dcd(0x15f),'children':_0x2e3dcd(0x18b)}),_0x375672(_0x491c82,{'variant':_0x2e3dcd(0x1c2),'onClick':()=>_0x1fe486[_0x2e3dcd(0x18a)](),'children':_0x2e3dcd(0x1af)})]});}function Fe(){const _0x361225=_0x4d6d62;return _0x375672(_0xb86804,{'children':_0x361225(0x166)});}var He=Object[_0x4d6d62(0x173)],ye=(_0x3661d9,_0x53e687,_0x245a71,_0x385f63)=>{const _0x55b8ae=_0x4d6d62;for(var _0x126e5f=_0x385f63>0x1?void 0x0:_0x385f63?He(_0x53e687,_0x245a71):_0x53e687,_0xf09475=_0x3661d9[_0x55b8ae(0x19a)]-0x1,_0x1951cb;_0xf09475>=0x0;_0xf09475--)(_0x1951cb=_0x3661d9[_0xf09475])&&(_0x126e5f=_0x1951cb(_0x126e5f)||_0x126e5f);return _0x126e5f;},T=(_0x3e415e,_0xd0c700)=>(_0x14d9ff,_0x4aafce)=>_0xd0c700(_0x14d9ff,_0x4aafce,_0x3e415e);let I=class extends _0x323dd8{constructor(_0x1d738c,_0x58580d){const _0x55c031=_0x4d6d62;super(),this[_0x55c031(0x17f)]=_0x1d738c,this['_uiPartsService']=_0x58580d,this[_0x55c031(0x171)]();}['_mountLiveShare'](){const _0x5e84b1=_0x4d6d62;this[_0x5e84b1(0x165)](this['_uiPartsService'][_0x5e84b1(0x14a)](_0x16d518[_0x5e84b1(0x19e)],()=>_0xa38e19(Re,this['_injector'])));}};I=ye([T(0x0,_0x51d972(_0xcf8b4b)),T(0x1,_0x4b4e35)],I);const je=_0x4d6d62(0x18f),Ue=_0x4d6d62(0x1ae),Z={'name':je,'version':Ue},Ve=_0x4d6d62(0x15c),F={};var Me=Object['getOwnPropertyDescriptor'],ke=(_0x19ffb5,_0x968131,_0x4dd32c,_0x468c6e)=>{const _0x5b22b3=_0x4d6d62;for(var _0x425cb4=_0x468c6e>0x1?void 0x0:_0x468c6e?Me(_0x968131,_0x4dd32c):_0x968131,_0x32afa1=_0x19ffb5[_0x5b22b3(0x19a)]-0x1,_0x1f9f4e;_0x32afa1>=0x0;_0x32afa1--)(_0x1f9f4e=_0x19ffb5[_0x32afa1])&&(_0x425cb4=_0x1f9f4e(_0x425cb4)||_0x425cb4);return _0x425cb4;},We=(_0x7e3dfb,_0x3869e9)=>(_0x2df141,_0x1484ed)=>_0x3869e9(_0x2df141,_0x1484ed,_0x7e3dfb);let b=class extends _0x323dd8{constructor(_0x3588c6){const _0x49b977=_0x4d6d62;super(),this[_0x49b977(0x198)]=_0x3588c6,this[_0x49b977(0x137)]();}[_0x4d6d62(0x137)](){const _0xb673ae=_0x4d6d62;[_0x114d12['id'],_0x9a2160['id'],_0x2461ad['id']][_0xb673ae(0x13d)](_0x2d8cf2=>{const _0x300342=_0xb673ae;this[_0x300342(0x165)](this[_0x300342(0x198)][_0x300342(0x1c8)](_0x2d8cf2));});}};b=ke([We(0x0,_0x51d972(R))],b);var Ge=Object[_0x4d6d62(0x14e)],Ye=Object[_0x4d6d62(0x173)],Be=(_0x1fabeb,_0xbc79b6,_0x4bedd9)=>_0xbc79b6 in _0x1fabeb?Ge(_0x1fabeb,_0xbc79b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4bedd9}):_0x1fabeb[_0xbc79b6]=_0x4bedd9,Ze=(_0x3e3477,_0x3b860b,_0x2dfdb2,_0x2fba49)=>{const _0x31550e=_0x4d6d62;for(var _0x2a1ae4=_0x2fba49>0x1?void 0x0:_0x2fba49?Ye(_0x3b860b,_0x2dfdb2):_0x3b860b,_0xbd1e60=_0x3e3477[_0x31550e(0x19a)]-0x1,_0x5748c3;_0xbd1e60>=0x0;_0xbd1e60--)(_0x5748c3=_0x3e3477[_0xbd1e60])&&(_0x2a1ae4=_0x5748c3(_0x2a1ae4)||_0x2a1ae4);return _0x2a1ae4;},H=(_0x499128,_0x34b2c3)=>(_0x43ba05,_0x6cbb07)=>_0x34b2c3(_0x43ba05,_0x6cbb07,_0x499128),w=(_0x53b633,_0x447008,_0x118e09)=>Be(_0x53b633,typeof _0x447008!=_0x4d6d62(0x1c0)?_0x447008+'':_0x447008,_0x118e09);let f=class extends _0x3b3755{constructor(_0x38a314=F,_0x5a4d8d,_0x3b2cf8){const _0x3b7561=_0x4d6d62;super(),this[_0x3b7561(0x181)]=_0x38a314,this[_0x3b7561(0x17f)]=_0x5a4d8d,this['_configService']=_0x3b2cf8;const {..._0x209073}=_0x2b1cea({},F,this[_0x3b7561(0x181)]);this[_0x3b7561(0x15d)][_0x3b7561(0x199)](Ve,_0x209073);}[_0x4d6d62(0x18d)](){const _0x1106bb=_0x4d6d62;_0x11f1e4(this[_0x1106bb(0x17f)],_0x54ad4b([[R],[m],[b],[I]],this[_0x1106bb(0x181)][_0x1106bb(0x1b5)])),_0x2c8ee3(this[_0x1106bb(0x17f)],[[b]]);}[_0x4d6d62(0x1cb)](){const _0x23a65d=_0x4d6d62;_0x2c8ee3(this[_0x23a65d(0x17f)],[[I]]);}};w(f,_0x4d6d62(0x197),_0x3230f4[_0x4d6d62(0x14f)]),w(f,_0x4d6d62(0x14b),_0x4d6d62(0x16c)),w(f,_0x4d6d62(0x1a3),Z[_0x4d6d62(0x16b)]),w(f,_0x4d6d62(0x150),Z['version']),f=Ze([_0x290c90(_0x49f19d),H(0x1,_0x51d972(_0xcf8b4b)),H(0x2,_0x1db153)],f);export{I as DesktopLiveShareController,Re as LiveShare,m as LiveShareController,C as LiveShareCoordinator,R as LiveShareService,c as LiveShareStatus,f as UniverLiveSharePlugin};
1
+ const _0x2c4769=_0x3add;(function(_0x2f1c88,_0x2085a3){const _0x4dcdaa=_0x3add,_0x4bf412=_0x2f1c88();while(!![]){try{const _0x428c6d=-parseInt(_0x4dcdaa(0xcf))/0x1+-parseInt(_0x4dcdaa(0x157))/0x2+-parseInt(_0x4dcdaa(0xf5))/0x3+parseInt(_0x4dcdaa(0xf0))/0x4+-parseInt(_0x4dcdaa(0x11f))/0x5+parseInt(_0x4dcdaa(0xda))/0x6+-parseInt(_0x4dcdaa(0x125))/0x7*(-parseInt(_0x4dcdaa(0x152))/0x8);if(_0x428c6d===_0x2085a3)break;else _0x4bf412['push'](_0x4bf412['shift']());}catch(_0x5e4a33){_0x4bf412['push'](_0x4bf412['shift']());}}}(_0x15ef,0x7d007));import{CommandType as _0x3a5405,DependentOn as _0x9d4cf9,Disposable as _0x57dd0e,DisposableCollection as _0x215aed,ICommandService as _0x3dd35d,IConfigService as _0x43996c,IUniverInstanceService as _0x261092,Inject as _0x1b48b6,Injector as _0x4a9c22,Plugin as _0x7c0ac5,RxDisposable as _0x4f9eac,UniverInstanceType as _0x53d6b7,merge as _0x5e13f2,mergeOverrideWithDependencies as _0x4086ed,registerDependencies as _0x1da1fe,toDisposable as _0x82c7a0,touchDependencies as _0x24fee3}from'@univerjs/core';import{BuiltInUIPart as _0x4d8caf,IUIPartsService as _0xaf3c68,connectInjector as _0x56b9bf,useDependency as _0x8412e9,useObservable as _0x13c779}from'@univerjs/ui';import{Button as _0x355ab6,Dropdown as _0x4a9e75,clsx as _0x119bed}from'@univerjs/design';import{LiveShareIcon as _0x437ba5}from'@univerjs/icons';import{useEffect as _0x55c713,useRef as _0x5be6eb,useState as _0x2e17cb}from'react';import{CollaborationEvent as _0x462cc9,parseProtocolChangeset as _0x2f20c3}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2c4c0e,SessionStatus as _0x40f15e,UniverCollaborationClientPlugin as _0x5e2ff9}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4a64ee,SetWorksheetActiveOperation as _0x45b627}from'@univerjs/sheets';import{BehaviorSubject as _0x1a7f50,Subject as _0x2bf7d2}from'rxjs';import{takeUntil as _0x262fde,throttleTime as _0x263058}from'rxjs/operators';import{Fragment as _0xdcd6d,jsx as _0x26cb86,jsxs as _0x5e7cba}from'react/jsx-runtime';import{SetScrollOperation as _0x6ac03b,SetZoomRatioOperation as _0x5e8bdc}from'@univerjs/sheets-ui';function _0x3add(_0x156e72,_0x216d77){_0x156e72=_0x156e72-0xca;const _0x15ef68=_0x15ef();let _0x3addd6=_0x15ef68[_0x156e72];return _0x3addd6;}function L(_0x1d8ca2){'@babel/helpers - typeof';const _0xbdc3df=_0x3add;return L=typeof Symbol==_0xbdc3df(0xd5)&&typeof Symbol[_0xbdc3df(0x138)]==_0xbdc3df(0xeb)?function(_0x11ba94){return typeof _0x11ba94;}:function(_0x178707){const _0x3c0681=_0xbdc3df;return _0x178707&&typeof Symbol==_0x3c0681(0xd5)&&_0x178707[_0x3c0681(0x114)]===Symbol&&_0x178707!==Symbol[_0x3c0681(0x130)]?_0x3c0681(0xeb):typeof _0x178707;},L(_0x1d8ca2);}function R(_0x23cd9d,_0x1577de){const _0x171d36=_0x3add;if(L(_0x23cd9d)!='object'||!_0x23cd9d)return _0x23cd9d;var _0x19153a=_0x23cd9d[Symbol[_0x171d36(0xd1)]];if(_0x19153a!==void 0x0){var _0x2af5e2=_0x19153a[_0x171d36(0x141)](_0x23cd9d,_0x1577de||_0x171d36(0x126));if(L(_0x2af5e2)!='object')return _0x2af5e2;throw TypeError(_0x171d36(0xf9));}return(_0x1577de==='string'?String:Number)(_0x23cd9d);}function z(_0x31d045){const _0x5e32c7=_0x3add;var _0x50c9db=R(_0x31d045,'string');return L(_0x50c9db)==_0x5e32c7(0xeb)?_0x50c9db:_0x50c9db+'';}function B(_0x54df49,_0x50b565,_0x47c829){return(_0x50b565=z(_0x50b565))in _0x54df49?Object['defineProperty'](_0x54df49,_0x50b565,{'value':_0x47c829,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54df49[_0x50b565]=_0x47c829,_0x54df49;}var V=class extends _0x57dd0e{constructor(..._0xa3ff56){const _0x23846f=_0x3add;super(..._0xa3ff56),B(this,_0x23846f(0xec),new Set()),B(this,_0x23846f(0x158),new Set());}[_0x2c4769(0x142)](_0x2f9e81){const _0xa5da3a=_0x2c4769;return this[_0xa5da3a(0xec)][_0xa5da3a(0x110)](_0x2f9e81),_0x82c7a0(()=>this[_0xa5da3a(0xec)][_0xa5da3a(0xdb)](_0x2f9e81));}[_0x2c4769(0x100)](_0x1348c9){const _0x59a5a6=_0x2c4769;return this[_0x59a5a6(0x158)][_0x59a5a6(0x110)](_0x1348c9),_0x82c7a0(()=>this[_0x59a5a6(0x158)][_0x59a5a6(0xdb)](_0x1348c9));}[_0x2c4769(0x11c)](_0x5c2981){return this['_sharedOperations']['has'](_0x5c2981);}[_0x2c4769(0x154)](_0x4ee77d){const _0x878199=_0x2c4769;return Array[_0x878199(0x14b)](this['_reporters'])[_0x878199(0x101)](_0x199c30=>_0x199c30(_0x4ee77d));}};function H(_0x3e43a0,_0x1d6a1b){return function(_0x1c4ccd,_0x1eb820){_0x1d6a1b(_0x1c4ccd,_0x1eb820,_0x3e43a0);};}function U(_0x3fce25,_0x251467,_0x6c893,_0x478764){const _0x7d70e1=_0x2c4769;var _0x2c45b5=arguments['length'],_0x553a33=_0x2c45b5<0x3?_0x251467:_0x478764===null?_0x478764=Object['getOwnPropertyDescriptor'](_0x251467,_0x6c893):_0x478764,_0x395e6d;if(typeof Reflect==_0x7d70e1(0xd3)&&typeof Reflect[_0x7d70e1(0xe2)]==_0x7d70e1(0xd5))_0x553a33=Reflect[_0x7d70e1(0xe2)](_0x3fce25,_0x251467,_0x6c893,_0x478764);else{for(var _0x1d9283=_0x3fce25[_0x7d70e1(0x13d)]-0x1;_0x1d9283>=0x0;_0x1d9283--)(_0x395e6d=_0x3fce25[_0x1d9283])&&(_0x553a33=(_0x2c45b5<0x3?_0x395e6d(_0x553a33):_0x2c45b5>0x3?_0x395e6d(_0x251467,_0x6c893,_0x553a33):_0x395e6d(_0x251467,_0x6c893))||_0x553a33);}return _0x2c45b5>0x3&&_0x553a33&&Object['defineProperty'](_0x251467,_0x6c893,_0x553a33),_0x553a33;}let W=class extends _0x4f9eac{constructor(_0x53537b,_0x5186f9,_0x4dc751){const _0x557ae7=_0x2c4769;super(),this['_univerInstanceService']=_0x53537b,this[_0x557ae7(0x12a)]=_0x5186f9,this[_0x557ae7(0x12f)]=_0x4dc751,B(this,'_entities',new Map()),this[_0x557ae7(0xd2)]();}async[_0x2c4769(0xf6)](_0x3eafe7){const _0x167351=_0x2c4769;return this[_0x167351(0x14f)][_0x167351(0xf3)](_0x3eafe7)||await this[_0x167351(0x102)](_0x3eafe7),this[_0x167351(0x14f)][_0x167351(0x14d)](_0x3eafe7);}[_0x2c4769(0x106)](_0x60202){const _0x1b3e1c=_0x2c4769;var _0x354715;return(_0x354715=this[_0x1b3e1c(0x14f)][_0x1b3e1c(0x14d)](_0x60202))==null?null:_0x354715;}[_0x2c4769(0xd2)](){const _0x48d6e2=_0x2c4769;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x53d6b7['UNIVER_SHEET'])[_0x48d6e2(0xe8)](_0x262fde(this['dispose$']))[_0x48d6e2(0x120)](async _0x52f577=>{const _0xc9ca3b=_0x48d6e2;let _0x1f2167=_0x52f577[_0xc9ca3b(0xfb)]();this[_0xc9ca3b(0x14f)][_0xc9ca3b(0xf3)](_0x1f2167)||this[_0xc9ca3b(0x102)](_0x1f2167);}),this['_univerInstanceService'][_0x48d6e2(0x10d)](_0x53d6b7['UNIVER_SHEET'])['pipe'](_0x262fde(this[_0x48d6e2(0x147)]))[_0x48d6e2(0x120)](_0x14f36c=>{const _0x22b881=_0x48d6e2;let _0x502c2f=_0x14f36c[_0x22b881(0xfb)](),_0x3cdb5f=this[_0x22b881(0x14f)][_0x22b881(0x14d)](_0x502c2f);_0x3cdb5f==null||_0x3cdb5f[_0x22b881(0x122)]();});}async[_0x2c4769(0x102)](_0x28055d){const _0x237953=_0x2c4769;let _0x4c916d=await this[_0x237953(0x12f)][_0x237953(0x132)](_0x28055d),_0x2b25f5=this[_0x237953(0x12a)]['createInstance'](K,_0x28055d,_0x4c916d);return _0x2b25f5[_0x237953(0xce)](),this[_0x237953(0x14f)]['set'](_0x28055d,_0x2b25f5),_0x2b25f5;}};W=U([H(0x0,_0x261092),H(0x1,_0x1b48b6(_0x4a9c22)),H(0x2,_0x1b48b6(_0x2c4c0e))],W);let G=function(_0x3f24b2){const _0x543a38=_0x2c4769;return _0x3f24b2[_0x543a38(0xf1)]='offline',_0x3f24b2[_0x543a38(0xfd)]=_0x543a38(0xca),_0x3f24b2[_0x543a38(0x118)]='following',_0x3f24b2[_0x543a38(0x140)]='not-following',_0x3f24b2[_0x543a38(0xf4)]='presenting',_0x3f24b2;}({}),K=class extends _0x4f9eac{get['_status'](){const _0x4147bc=_0x2c4769;return this[_0x4147bc(0x12d)]['getValue']();}constructor(_0x501ffe,_0x22ebbe,_0xa6b7c7,_0x3f70cf,_0x304fce){const _0x8dc47c=_0x2c4769;super(),this[_0x8dc47c(0xff)]=_0x501ffe,this[_0x8dc47c(0x11b)]=_0x22ebbe,this['_configService']=_0xa6b7c7,this[_0x8dc47c(0x104)]=_0x3f70cf,this['_commandService']=_0x304fce,B(this,_0x8dc47c(0x12d),new _0x1a7f50(G['IDLE'])),B(this,_0x8dc47c(0xfa),this[_0x8dc47c(0x12d)][_0x8dc47c(0x14c)]()),B(this,_0x8dc47c(0xd2),!0x1),B(this,_0x8dc47c(0x135),null),B(this,_0x8dc47c(0xd9),null);}[_0x2c4769(0x122)](){const _0x4b54cc=_0x2c4769;var _0x5afa1e;(_0x5afa1e=this['_commandDisposable'])==null||_0x5afa1e[_0x4b54cc(0x122)](),this[_0x4b54cc(0x12d)][_0x4b54cc(0x109)](G[_0x4b54cc(0xfd)]),this['_status$'][_0x4b54cc(0x117)]();}[_0x2c4769(0x146)](){const _0x1e26db=_0x2c4769;return this[_0x1e26db(0xe9)];}['init'](){const _0xb45e5f=_0x2c4769;this['_init']||(this[_0xb45e5f(0xd2)]=!0x0,this[_0xb45e5f(0x11b)][_0xb45e5f(0x151)][_0xb45e5f(0xe8)](_0x262fde(this[_0xb45e5f(0x147)]))[_0xb45e5f(0x120)](_0x1c88b8=>{const _0x494596=_0xb45e5f;switch(_0x1c88b8){case _0x40f15e[_0x494596(0xf1)]:this['_handleOffline']();break;case _0x40f15e[_0x494596(0xdd)]:this[_0x494596(0xe1)]();break;default:}}),this[_0xb45e5f(0x11b)]['event$']['pipe'](_0x262fde(this[_0xb45e5f(0x147)]))['subscribe'](_0x4d1c43=>{const _0x40cdb1=_0xb45e5f;let {eventID:_0x29d2cd}=_0x4d1c43;switch(_0x29d2cd){case _0x462cc9[_0x40cdb1(0x150)]:this['_handleNewHost'](_0x4d1c43);break;case _0x462cc9['LIVESHARE_OPERATION']:this[_0x40cdb1(0x13f)](_0x4d1c43);break;case _0x462cc9['LIVESHARE_TERMINATE']:this[_0x40cdb1(0xfc)]();break;case _0x462cc9[_0x40cdb1(0xf7)]:this[_0x40cdb1(0xde)](_0x4d1c43);break;default:}}));}[_0x2c4769(0xdf)](){const _0x4035f7=_0x2c4769;this[_0x4035f7(0x11b)][_0x4035f7(0x123)]({'eventID':_0x462cc9[_0x4035f7(0x155)],'data':{'unitID':this[_0x4035f7(0xff)],'userID':this['_collabSession'][_0x4035f7(0x103)]()}},this['_unitID']);}[_0x2c4769(0xd6)](){const _0x35be4e=_0x2c4769;this[_0x35be4e(0xe9)]===G['PRESENTING']&&(this['_status$']['next'](G[_0x35be4e(0xfd)]),this[_0x35be4e(0x11b)][_0x35be4e(0x123)]({'eventID':_0x462cc9[_0x35be4e(0x156)],'data':{'unitID':this[_0x35be4e(0xff)]}},this['_unitID']));}['startFollowing'](){const _0x57c09f=_0x2c4769;this['_status']===G[_0x57c09f(0x140)]&&(this[_0x57c09f(0x12d)][_0x57c09f(0x109)](G['FOLLOWING']),this[_0x57c09f(0xd0)]());}[_0x2c4769(0x134)](){const _0x223035=_0x2c4769;this['_status']===G['FOLLOWING']&&this[_0x223035(0x116)]();}[_0x2c4769(0xe7)](_0x1ee1d2){const _0x54af32=_0x2c4769;let {presenter:_0x457299}=_0x1ee1d2[_0x54af32(0x13e)],_0x3cd228=this['_collabSession'][_0x54af32(0x103)]();this['_presenter']=_0x457299,_0x457299===_0x3cd228?(this[_0x54af32(0x116)](),this[_0x54af32(0xe4)]()):this[_0x54af32(0xe9)]!==G[_0x54af32(0x140)]&&(this['_stopPresenting'](),this[_0x54af32(0xd0)]());}[_0x2c4769(0x144)](){const _0x596673=_0x2c4769;let _0x472fdf={'eventID':_0x462cc9[_0x596673(0x12e)]};this[_0x596673(0x11b)][_0x596673(0x123)](_0x472fdf,this[_0x596673(0xff)]);}[_0x2c4769(0xfc)](){const _0x58b339=_0x2c4769;this[_0x58b339(0xd9)]=null,this[_0x58b339(0xe9)]!==G[_0x58b339(0xf4)]&&this[_0x58b339(0xd8)]();}['_handleNewChangeSets'](_0x9ec336){const _0x19e3d8=_0x2c4769;if(this[_0x19e3d8(0xe9)]===G[_0x19e3d8(0x118)]&&this['_presenter']===_0x9ec336[_0x19e3d8(0x13e)][_0x19e3d8(0x13c)]){let _0x25a3aa=_0x2f20c3(_0x9ec336[_0x19e3d8(0x13e)])['mutations']['reverse']()[_0x19e3d8(0x10b)](_0x40640a=>_0x40640a['id']===_0x4a64ee['id']);if(_0x25a3aa){let _0xb99389=_0x25a3aa[_0x19e3d8(0x139)][_0x19e3d8(0xcb)],_0x22e7b3=_0x25a3aa[_0x19e3d8(0x139)]['sheet']['id'];setTimeout(()=>{const _0x81f1d4=_0x19e3d8;this[_0x81f1d4(0x14a)][_0x81f1d4(0x113)](_0x45b627['id'],{'unitId':_0xb99389,'subUnitId':_0x22e7b3},{'fromCollab':!0x0});});}}}[_0x2c4769(0xe4)](){const _0x5820b3=_0x2c4769;this[_0x5820b3(0x12d)][_0x5820b3(0x109)](G[_0x5820b3(0xf4)]);let _0x4f416b=new Map(),_0x13fea7=this['_commandDisposable']=new _0x215aed();_0x13fea7['add'](_0x82c7a0(()=>{const _0x5d20e8=_0x5820b3;_0x4f416b[_0x5d20e8(0x131)](_0x135fa6=>_0x135fa6[_0x5d20e8(0x117)]()),_0x4f416b[_0x5d20e8(0x136)]();})),_0x13fea7[_0x5820b3(0x110)](this['_commandService']['onCommandExecuted'](_0x4b0f72=>{const _0x5362e0=_0x5820b3;if(_0x4b0f72[_0x5362e0(0x11a)]!==_0x3a5405[_0x5362e0(0x10c)]||!this[_0x5362e0(0x104)][_0x5362e0(0x11c)](_0x4b0f72['id']))return;let {id:_0xb0ffcc}=_0x4b0f72,_0x35f406;if(_0x4f416b[_0x5362e0(0xf3)](_0xb0ffcc))_0x35f406=_0x4f416b[_0x5362e0(0x14d)](_0xb0ffcc);else{var _0x4365e9;_0x35f406=new _0x2bf7d2(),_0x4f416b[_0x5362e0(0x108)](_0xb0ffcc,_0x35f406),_0x35f406[_0x5362e0(0xe8)](_0x263058((_0x4365e9=this['_configService'][_0x5362e0(0xcc)](_0x5362e0(0x13a)))==null?0xc8:_0x4365e9,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5362e0(0x120)](_0x10696f=>{const _0x296ed7=_0x5362e0;this[_0x296ed7(0x11b)]['send']({'eventID':_0x462cc9[_0x296ed7(0x11d)],'data':{'unitID':this[_0x296ed7(0xff)],'operations':{[_0x10696f['id']]:{'id':_0x10696f['id'],'params':JSON[_0x296ed7(0x107)](_0x10696f['params'])}}}},this['_unitID']);});}_0x35f406['next'](_0x4b0f72);})),this[_0x5820b3(0x104)][_0x5820b3(0x154)](this[_0x5820b3(0xff)])['forEach'](_0x1e40dc=>this[_0x5820b3(0x11b)]['send']({'eventID':_0x462cc9[_0x5820b3(0x11d)],'data':{'unitID':this[_0x5820b3(0xff)],'operations':{[_0x1e40dc['id']]:{'id':_0x1e40dc['id'],'params':JSON[_0x5820b3(0x107)](_0x1e40dc[_0x5820b3(0x139)])}}}},this[_0x5820b3(0xff)]));}[_0x2c4769(0x129)](){const _0x3c8a17=_0x2c4769;var _0x4100e9;this[_0x3c8a17(0x12d)][_0x3c8a17(0x109)](G[_0x3c8a17(0xfd)]),(_0x4100e9=this['_commandDisposable'])==null||_0x4100e9[_0x3c8a17(0x122)](),this[_0x3c8a17(0x135)]=null;}[_0x2c4769(0xd0)](){const _0x2d4d18=_0x2c4769;var _0x5febb5;(_0x5febb5=this[_0x2d4d18(0x135)])==null||_0x5febb5['dispose'](),this[_0x2d4d18(0x12d)][_0x2d4d18(0x109)](G['FOLLOWING']);}[_0x2c4769(0xd8)](){const _0x4dd045=_0x2c4769;var _0x42e353;this['_status$'][_0x4dd045(0x109)](G[_0x4dd045(0xfd)]),(_0x42e353=this[_0x4dd045(0x135)])==null||_0x42e353['dispose'](),this[_0x4dd045(0x135)]=null;}['_stopFollowing'](){const _0x3e85ca=_0x2c4769;var _0x22ea39;this['_status$']['next'](G[_0x3e85ca(0x140)]),(_0x22ea39=this[_0x3e85ca(0x135)])==null||_0x22ea39['dispose']();}[_0x2c4769(0x13f)](_0x52159f){const _0x3ee169=_0x2c4769;if([G[_0x3ee169(0xf4)],G['NOT_FOLLOWING'],G[_0x3ee169(0xf1)]]['includes'](this[_0x3ee169(0xe9)])||!_0x52159f[_0x3ee169(0x13e)]['presenter']||_0x52159f[_0x3ee169(0x13e)]['presenter']===this[_0x3ee169(0x11b)]['getMemberID']())return;this[_0x3ee169(0xe9)]===G[_0x3ee169(0xfd)]&&this[_0x3ee169(0xd0)]();let _0x422f3a=_0x52159f[_0x3ee169(0x13e)][_0x3ee169(0x127)];Object[_0x3ee169(0xed)](_0x422f3a)[_0x3ee169(0x131)](_0x2339ea=>{const _0x63c459=_0x3ee169;this['_commandService']['executeCommand'](_0x2339ea['id'],_0x2339ea[_0x63c459(0x139)]?JSON[_0x63c459(0x12b)](_0x2339ea[_0x63c459(0x139)]):null,{'fromCollab':!0x0});});}[_0x2c4769(0x11e)](){const _0x183b25=_0x2c4769;var _0x107672;this['_status$'][_0x183b25(0x109)](G[_0x183b25(0xf1)]),(_0x107672=this[_0x183b25(0x135)])==null||_0x107672[_0x183b25(0x122)]();}['_handleOnline'](){const _0x36376b=_0x2c4769;this[_0x36376b(0x12d)]['next'](G[_0x36376b(0xfd)]),this[_0x36376b(0x144)]();}};K=U([H(0x2,_0x43996c),H(0x3,_0x1b48b6(V)),H(0x4,_0x3dd35d)],K);function q(){const _0x3038b4=_0x2c4769;let _0x295c57=_0x8412e9(W),_0x447bdb=_0x8412e9(_0x261092),_0x38dafd=_0x13c779(()=>_0x447bdb[_0x3038b4(0x112)](_0x53d6b7[_0x3038b4(0x10f)]),void 0x0,!0x1,[]),[_0xd7cf52,_0x27c733]=_0x2e17cb(null),[_0x2e28c9,_0x5ea467]=_0x2e17cb(G[_0x3038b4(0xfd)]),_0x36280f=_0x5be6eb(null);return _0x55c713(()=>(_0x38dafd&&_0x295c57[_0x3038b4(0xf6)](_0x38dafd['getUnitId']())[_0x3038b4(0x13b)](_0x42eca2=>{const _0x4270e4=_0x3038b4;_0x27c733(_0x42eca2),_0x36280f[_0x4270e4(0x115)]=_0x42eca2[_0x4270e4(0xfa)]['subscribe'](_0x2b6053=>{_0x5ea467(_0x2b6053);});}),()=>{const _0x4bff15=_0x3038b4;var _0x40f670;(_0x40f670=_0x36280f[_0x4bff15(0x115)])==null||_0x40f670[_0x4bff15(0xd4)](),_0x36280f[_0x4bff15(0x115)]=null;}),[_0x38dafd,_0x295c57]),_0xd7cf52?_0x26cb86(_0x4a9e75,{'align':_0x3038b4(0xd7),'disabled':_0x2e28c9===G[_0x3038b4(0xf1)],'className':_0x3038b4(0xee),'overlay':_0x26cb86(ce,{'status':_0x2e28c9,'coordinator':_0xd7cf52}),'children':_0x26cb86(_0x3038b4(0xe6),{'className':_0x119bed('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2e28c9===G[_0x3038b4(0xf1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2e28c9!==G[_0x3038b4(0xf1)]}),'type':'button','children':_0x26cb86(_0x437ba5,{'className':'univer-size-4'})})}):null;}function ce(_0x111ecf){const _0x24dc35=_0x2c4769;let {status:_0x3332bd,coordinator:_0x4bfce0}=_0x111ecf;switch(_0x3332bd){case G[_0x24dc35(0xfd)]:return _0x26cb86(le,{'coordinator':_0x4bfce0});case G['FOLLOWING']:return _0x26cb86(ue,{'coordinator':_0x4bfce0});case G['NOT_FOLLOWING']:return _0x26cb86(de,{'coordinator':_0x4bfce0});case G[_0x24dc35(0xf1)]:return _0x26cb86(fe,{});case G[_0x24dc35(0xf4)]:return _0x26cb86(J,{'coordinator':_0x4bfce0});default:return null;}}function le(_0x3888a6){const _0x4d1925=_0x2c4769;let {coordinator:_0x521bb6}=_0x3888a6;return _0x5e7cba(_0xdcd6d,{'children':[_0x26cb86(_0x4d1925(0x153),{'className':_0x4d1925(0x10a),'children':_0x4d1925(0x10e)}),_0x26cb86(_0x355ab6,{'onClick':()=>_0x521bb6['tryStartPresenting'](),'children':_0x4d1925(0xf8)})]});}function ue(_0x462f26){const _0x28f13f=_0x2c4769;let {coordinator:_0x151114}=_0x462f26;return _0x5e7cba(_0xdcd6d,{'children':[_0x26cb86(_0x28f13f(0x153),{'className':_0x28f13f(0x10a),'children':_0x28f13f(0x111)}),_0x26cb86(_0x355ab6,{'onClick':()=>_0x151114['stopFollowing'](),'children':_0x28f13f(0x145)})]});}function de(_0x1d02b6){const _0x2ec771=_0x2c4769;let {coordinator:_0x5f4dd8}=_0x1d02b6;return _0x5e7cba(_0xdcd6d,{'children':[_0x26cb86(_0x2ec771(0x153),{'className':_0x2ec771(0x10a),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x26cb86(_0x355ab6,{'variant':_0x2ec771(0x124),'onClick':()=>_0x5f4dd8[_0x2ec771(0x119)](),'children':_0x2ec771(0xcd)})]});}function J(_0x1db2e8){const _0x4b4e99=_0x2c4769;let {coordinator:_0x1ea2bd}=_0x1db2e8;return _0x5e7cba(_0xdcd6d,{'children':[_0x26cb86(_0x4b4e99(0x153),{'className':_0x4b4e99(0x10a),'children':_0x4b4e99(0x12c)}),_0x26cb86(_0x355ab6,{'variant':'default','onClick':()=>_0x1ea2bd['stopPresenting'](),'children':_0x4b4e99(0x148)})]});}function _0x15ef(){const _0x284071=['tryStartPresenting','pluginName','_handleOnline','decorate','onStarting','_startPresenting','registerComponent','button','_handleNewHost','pipe','_status','onRendered','symbol','_sharedOperations','values','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-white\x20dark:!univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageName','2558780HxpNXB','OFFLINE','_config','has','PRESENTING','521457mQWcwd','getLiveShareCoordinator','NEW_CHANGESETS','Start','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','status$','getUnitId','_handleTerminate','IDLE','override','_unitID','registerInitialStateReporter','map','_startLiveShareCoordinator','getMemberID','_liveShareService','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinatorSync','stringify','set','next','univer-mb-3\x20univer-w-full\x20univer-text-sm','find','OPERATION','getTypeOfUnitDisposed$','Present\x20this\x20document','UNIVER_SHEET','add','You\x27re\x20following\x20the\x20presenter','getCurrentTypeOfUnit$','executeCommand','constructor','current','_stopFollowing','complete','FOLLOWING','startFollowing','type','_collabSession','shouldShareOperation','LIVESHARE_OPERATION','_handleOffline','2275680dQOtqM','subscribe','UNIVER_UNKNOWN','dispose','send','text','7PJuHbk','default','operations','You\x27are\x20offline.','_stopPresenting','_injector','parse','You\x27re\x20presenting\x20the\x20document','_status$','LIVESHARE_FETCH_OPERATIONS','_collabSessionService','prototype','forEach','requireSession','_configService','stopFollowing','_commandDisposable','clear','_mountLiveShare','iterator','params','SAME_OPERATION_SHARE_INTERVAL','then','memberID','length','data','_handleOperation','NOT_FOLLOWING','call','registerSharedOperation','_uiPartsService','_fetchOperations','Stop\x20following','getStatus','dispose$','Stop\x20presenting','disposeWithMe','_commandService','from','asObservable','get','setConfig','_entities','LIVESHARE_NEW_HOST','sessionStatus$','7495952MiYIvu','div','getInitialStates','LIVESHARE_REQUEST_HOST','LIVESHARE_TERMINATE','1087024IPRNpj','_reporters','idle','unitId','getConfig','Start\x20following','init','691159aEcZeH','_startFollowing','toPrimitive','_init','object','unsubscribe','function','stopPresenting','end','_beIdle','_presenter','4793664LfoXSA','delete','@univerjs-pro/live-share','ONLINE','_handleNewChangeSets'];_0x15ef=function(){return _0x284071;};return _0x15ef();}function fe(){const _0x111203=_0x2c4769;return _0x26cb86(_0xdcd6d,{'children':_0x111203(0x128)});}let Y=class extends _0x57dd0e{constructor(_0x4c1c84,_0x6d7ebf){const _0x5d3777=_0x2c4769;super(),this['_injector']=_0x4c1c84,this[_0x5d3777(0x143)]=_0x6d7ebf,this[_0x5d3777(0x137)]();}[_0x2c4769(0x137)](){const _0x539821=_0x2c4769;this[_0x539821(0x149)](this[_0x539821(0x143)][_0x539821(0xe5)](_0x4d8caf['HEADER_MENU'],()=>_0x56b9bf(q,this[_0x539821(0x12a)])));}};Y=U([H(0x0,_0x1b48b6(_0x4a9c22)),H(0x1,_0xaf3c68)],Y);var pe=_0x2c4769(0xdc),me='0.18.0';const X='live-share.config';Symbol(X);const Z={};let Q=class extends _0x57dd0e{constructor(_0x25608f){const _0x53f85d=_0x2c4769;super(),this[_0x53f85d(0x104)]=_0x25608f,this[_0x53f85d(0xd2)]();}[_0x2c4769(0xd2)](){[_0x5e8bdc['id'],_0x6ac03b['id'],_0x45b627['id']]['forEach'](_0x46e66d=>{const _0x26132f=_0x3add;this[_0x26132f(0x149)](this[_0x26132f(0x104)]['registerSharedOperation'](_0x46e66d));});}};Q=U([H(0x0,_0x1b48b6(V))],Q);let $=class extends _0x7c0ac5{constructor(_0x55c6e2=Z,_0x2caa4d,_0xfe55d4){const _0x5895a1=_0x2c4769;super(),this[_0x5895a1(0xf2)]=_0x55c6e2,this[_0x5895a1(0x12a)]=_0x2caa4d,this[_0x5895a1(0x133)]=_0xfe55d4;let {..._0x391311}=_0x5e13f2({},Z,this[_0x5895a1(0xf2)]);this[_0x5895a1(0x133)][_0x5895a1(0x14e)](X,_0x391311);}[_0x2c4769(0xe3)](){const _0x2585a8=_0x2c4769;_0x1da1fe(this[_0x2585a8(0x12a)],_0x4086ed([[V],[W],[Q],[Y]],this[_0x2585a8(0xf2)][_0x2585a8(0xfe)])),_0x24fee3(this[_0x2585a8(0x12a)],[[Q]]);}[_0x2c4769(0xea)](){const _0x1e320c=_0x2c4769;_0x24fee3(this[_0x1e320c(0x12a)],[[Y]]);}};B($,_0x2c4769(0x11a),_0x53d6b7[_0x2c4769(0x121)]),B($,_0x2c4769(0xe0),_0x2c4769(0x105)),B($,_0x2c4769(0xef),pe),B($,'version',me),$=U([_0x9d4cf9(_0x5e2ff9),H(0x1,_0x1b48b6(_0x4a9c22)),H(0x2,_0x43996c)],$);export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
@@ -1,4 +1,4 @@
1
- import { DependencyOverride } from '@univerjs/core';
1
+ import type { DependencyOverride } from '@univerjs/core';
2
2
  export declare const LIVE_SHARE_PLUGIN_CONFIG_KEY = "live-share.config";
3
3
  export declare const configSymbol: unique symbol;
4
4
  export interface IUniverLiveShareConfig {
@@ -1,5 +1,7 @@
1
- import { CollaborationSession, CollaborationSessionService } from '@univerjs-pro/collaboration-client';
2
- import { Nullable, ICommandService, IConfigService, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
1
+ import type { CollaborationSession } from '@univerjs-pro/collaboration-client';
2
+ import type { Nullable } from '@univerjs/core';
3
+ import { CollaborationSessionService } from '@univerjs-pro/collaboration-client';
4
+ import { ICommandService, IConfigService, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
3
5
  import { LiveShareService } from '../../services/live-share.service';
4
6
  /**
5
7
  * This controller manage live share session.
@@ -34,7 +36,7 @@ export declare class LiveShareCoordinator extends RxDisposable {
34
36
  private readonly _liveShareService;
35
37
  private readonly _commandService;
36
38
  private _status$;
37
- status$: import('rxjs').Observable<LiveShareStatus>;
39
+ status$: import("rxjs").Observable<LiveShareStatus>;
38
40
  private get _status();
39
41
  private _init;
40
42
  private _commandDisposable;
@@ -1,4 +1,4 @@
1
- import { Injector } from '@univerjs/core';
1
+ import type { Injector } from '@univerjs/core';
2
2
  import { LiveShareStatus } from '@univerjs-pro/live-share';
3
3
  import { FUniver } from '@univerjs/core/facade';
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { IUniverLiveShareConfig } from './controllers/config.schema';
1
+ import type { IUniverLiveShareConfig } from './controllers/config.schema';
2
2
  import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
3
  export declare class UniverLiveSharePlugin extends Plugin {
4
4
  private readonly _config;
@@ -1,4 +1,5 @@
1
- import { IDisposable, IOperationInfo, Disposable } from '@univerjs/core';
1
+ import type { IDisposable, IOperationInfo } from '@univerjs/core';
2
+ import { Disposable } from '@univerjs/core';
2
3
  export declare class LiveShareService extends Disposable {
3
4
  private readonly _sharedOperations;
4
5
  private readonly _reporters;
@@ -1,4 +1,4 @@
1
- import { Meta } from '@storybook/react';
1
+ import type { Meta } from '@storybook/react';
2
2
  import { LiveShare } from './LiveShare';
3
3
  declare const meta: Meta<typeof LiveShare>;
4
4
  export default meta;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x2b47(_0x7206b0,_0x41a39b){_0x7206b0=_0x7206b0-0x172;const _0x468dd5=_0x468d();let _0x2b4721=_0x468dd5[_0x7206b0];return _0x2b4721;}function _0x468d(){const _0x1eda34=['stopPresenting','UniverProLiveShare','UNIVER_SHEET','UniverInstanceType','156AIxSru','stopFollowing','_injector','getStatus','startPresenting','2610asGDaf','54830HshURs','@univerjs-pro/live-share','getLiveShareCoordinatorSync','160133Aderwa','defineProperty','function','17367XpqCRh','12881iYmULe','_liveShareController','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','5390KzVJbR','2616giOzSy','@univerjs/core/facade','LiveShareStatus','@univerjs/core','getUnitId','getLiveShareStatus','606352afSjZk','LiveShareStatusEnum','234muLqZg','IDLE','startFollowing','get','72VLinEU','LiveShareController','IUniverInstanceService','extend','FEnum','object','No\x20active\x20workbook\x20found.','UniverCoreFacade','getCurrentUnitOfType','FUniver','11619270xzQqFz'];_0x468d=function(){return _0x1eda34;};return _0x468d();}(function(_0xde2aa1,_0x2e7163){const _0x4784d4=_0x2b47,_0x85d9ab=_0xde2aa1();while(!![]){try{const _0x17ec6f=-parseInt(_0x4784d4(0x187))/0x1+parseInt(_0x4784d4(0x18e))/0x2*(parseInt(_0x4784d4(0x197))/0x3)+-parseInt(_0x4784d4(0x17e))/0x4*(-parseInt(_0x4784d4(0x184))/0x5)+parseInt(_0x4784d4(0x183))/0x6*(parseInt(_0x4784d4(0x18a))/0x7)+parseInt(_0x4784d4(0x195))/0x8*(parseInt(_0x4784d4(0x19b))/0x9)+-parseInt(_0x4784d4(0x179))/0xa+parseInt(_0x4784d4(0x18b))/0xb*(-parseInt(_0x4784d4(0x18f))/0xc);if(_0x17ec6f===_0x2e7163)break;else _0x85d9ab['push'](_0x85d9ab['shift']());}catch(_0x133cec){_0x85d9ab['push'](_0x85d9ab['shift']());}}}(_0x468d,0xb6295),function(_0x3c2098,_0x4007be){const _0x4efcca=_0x2b47;typeof exports==_0x4efcca(0x174)&&typeof module<'u'?_0x4007be(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x4efcca(0x189)&&define['amd']?define([_0x4efcca(0x185),_0x4efcca(0x192),_0x4efcca(0x190)],_0x4007be):(_0x3c2098=typeof globalThis<'u'?globalThis:_0x3c2098||self,_0x4007be(_0x3c2098[_0x4efcca(0x17b)],_0x3c2098['UniverCore'],_0x3c2098[_0x4efcca(0x176)]));}(this,function(_0x3570b4,_0x2b81b5,_0x49ad31){'use strict';const _0x354ee1=_0x2b47;var _0x54cf7a=Object[_0x354ee1(0x188)],_0x3b9e78=(_0x96ee96,_0x3c4768,_0x2b8ebb)=>_0x3c4768 in _0x96ee96?_0x54cf7a(_0x96ee96,_0x3c4768,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b8ebb}):_0x96ee96[_0x3c4768]=_0x2b8ebb,_0x4b51b2=(_0x250ccd,_0x49f80e,_0x1fe04f)=>_0x3b9e78(_0x250ccd,typeof _0x49f80e!='symbol'?_0x49f80e+'':_0x49f80e,_0x1fe04f);class _0x3a4337 extends _0x49ad31[_0x354ee1(0x178)]{constructor(){super(...arguments),_0x4b51b2(this,'_liveShareController');}['_initialize'](_0x6d219a){const _0x1c7118=_0x354ee1;this['_liveShareController']=_0x6d219a[_0x1c7118(0x19a)](_0x3570b4[_0x1c7118(0x19c)]);}[_0x354ee1(0x194)](){const _0x5e66e9=_0x354ee1;var _0x47cdbf;const _0x1d2720=this['_injector'][_0x5e66e9(0x19a)](_0x2b81b5[_0x5e66e9(0x19d)])[_0x5e66e9(0x177)](_0x2b81b5[_0x5e66e9(0x17d)]['UNIVER_SHEET']);if(!_0x1d2720)throw new Error(_0x5e66e9(0x175));const _0x4943af=_0x1d2720['getUnitId'](),_0x4bad6c=this[_0x5e66e9(0x18c)][_0x5e66e9(0x186)](_0x4943af);return(_0x47cdbf=_0x4bad6c==null?void 0x0:_0x4bad6c[_0x5e66e9(0x181)]())!=null?_0x47cdbf:_0x3570b4[_0x5e66e9(0x191)][_0x5e66e9(0x198)];}[_0x354ee1(0x199)](){const _0x47cb82=_0x354ee1,_0x537db9=this['_injector'][_0x47cb82(0x19a)](_0x2b81b5['IUniverInstanceService'])[_0x47cb82(0x177)](_0x2b81b5[_0x47cb82(0x17d)][_0x47cb82(0x17c)]);if(!_0x537db9)throw new Error('No\x20active\x20workbook\x20found.');const _0x203b6f=_0x537db9[_0x47cb82(0x193)](),_0x263b7e=this[_0x47cb82(0x18c)][_0x47cb82(0x186)](_0x203b6f);if(!_0x263b7e)throw new Error(_0x47cb82(0x18d));_0x263b7e[_0x47cb82(0x199)]();}['stopFollowing'](){const _0x11fb06=_0x354ee1,_0x50cf0f=this[_0x11fb06(0x180)][_0x11fb06(0x19a)](_0x2b81b5[_0x11fb06(0x19d)])[_0x11fb06(0x177)](_0x2b81b5[_0x11fb06(0x17d)][_0x11fb06(0x17c)]);if(!_0x50cf0f)throw new Error(_0x11fb06(0x175));const _0x36fc03=_0x50cf0f[_0x11fb06(0x193)](),_0x170dbf=this[_0x11fb06(0x18c)][_0x11fb06(0x186)](_0x36fc03);if(!_0x170dbf)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x170dbf[_0x11fb06(0x17f)]();}[_0x354ee1(0x182)](){const _0x3e171b=_0x354ee1,_0x239b6d=this[_0x3e171b(0x180)]['get'](_0x2b81b5['IUniverInstanceService'])[_0x3e171b(0x177)](_0x2b81b5[_0x3e171b(0x17d)][_0x3e171b(0x17c)]);if(!_0x239b6d)throw new Error(_0x3e171b(0x175));const _0x22c6f0=_0x239b6d[_0x3e171b(0x193)](),_0x435757=this[_0x3e171b(0x18c)][_0x3e171b(0x186)](_0x22c6f0);if(!_0x435757)throw new Error(_0x3e171b(0x18d));_0x435757['tryStartPresenting']();}[_0x354ee1(0x17a)](){const _0x5414be=_0x354ee1,_0x3d13f9=this[_0x5414be(0x180)]['get'](_0x2b81b5[_0x5414be(0x19d)])[_0x5414be(0x177)](_0x2b81b5[_0x5414be(0x17d)]['UNIVER_SHEET']);if(!_0x3d13f9)throw new Error(_0x5414be(0x175));const _0x29fbae=_0x3d13f9['getUnitId'](),_0x5573ea=this[_0x5414be(0x18c)][_0x5414be(0x186)](_0x29fbae);if(!_0x5573ea)throw new Error(_0x5414be(0x18d));_0x5573ea['stopPresenting']();}}_0x49ad31[_0x354ee1(0x178)][_0x354ee1(0x172)](_0x3a4337);class _0x54a4e3 extends _0x49ad31[_0x354ee1(0x173)]{get[_0x354ee1(0x196)](){const _0xbdf17d=_0x354ee1;return _0x3570b4[_0xbdf17d(0x191)];}}_0x49ad31[_0x354ee1(0x173)][_0x354ee1(0x172)](_0x54a4e3);}));
1
+ function _0x27f4(_0x10ab2b,_0x35baa9){_0x10ab2b=_0x10ab2b-0x12d;const _0x3fa4e4=_0x3fa4();let _0x27f44e=_0x3fa4e4[_0x10ab2b];return _0x27f44e;}(function(_0x39690a,_0x456a5d){const _0x1d4ddd=_0x27f4,_0x227556=_0x39690a();while(!![]){try{const _0x19acf6=parseInt(_0x1d4ddd(0x152))/0x1*(parseInt(_0x1d4ddd(0x150))/0x2)+-parseInt(_0x1d4ddd(0x160))/0x3*(parseInt(_0x1d4ddd(0x14e))/0x4)+parseInt(_0x1d4ddd(0x141))/0x5*(-parseInt(_0x1d4ddd(0x159))/0x6)+-parseInt(_0x1d4ddd(0x12f))/0x7*(parseInt(_0x1d4ddd(0x146))/0x8)+parseInt(_0x1d4ddd(0x157))/0x9+-parseInt(_0x1d4ddd(0x133))/0xa*(parseInt(_0x1d4ddd(0x15b))/0xb)+parseInt(_0x1d4ddd(0x131))/0xc*(parseInt(_0x1d4ddd(0x15f))/0xd);if(_0x19acf6===_0x456a5d)break;else _0x227556['push'](_0x227556['shift']());}catch(_0x6bb744){_0x227556['push'](_0x227556['shift']());}}}(_0x3fa4,0x4c89f),function(_0xb94e45,_0x1b33ad){const _0x5ab9c5=_0x27f4;typeof exports==_0x5ab9c5(0x13d)&&typeof module<'u'?_0x1b33ad(require(`@univerjs-pro/live-share`),require(`@univerjs/core`),require(`@univerjs/core/facade`)):typeof define=='function'&&define[_0x5ab9c5(0x142)]?define(['@univerjs-pro/live-share',_0x5ab9c5(0x158),_0x5ab9c5(0x147)],_0x1b33ad):(_0xb94e45=typeof globalThis<'u'?globalThis:_0xb94e45||self,_0x1b33ad(_0xb94e45[_0x5ab9c5(0x13e)],_0xb94e45['UniverCore'],_0xb94e45['UniverCoreFacade']));}(this,function(_0x32f09b,_0x19ce55,_0x3c160e){const _0x2ffba0=_0x27f4;function _0x5d41ff(_0x467602){'@babel/helpers - typeof';const _0x52fbff=_0x27f4;return _0x5d41ff=typeof Symbol=='function'&&typeof Symbol[_0x52fbff(0x12d)]==_0x52fbff(0x145)?function(_0x5372b8){return typeof _0x5372b8;}:function(_0x456f82){const _0x3a7d9c=_0x52fbff;return _0x456f82&&typeof Symbol=='function'&&_0x456f82['constructor']===Symbol&&_0x456f82!==Symbol[_0x3a7d9c(0x138)]?_0x3a7d9c(0x145):typeof _0x456f82;},_0x5d41ff(_0x467602);}function _0x1961a6(_0x1206b4,_0x29cd6e){const _0x259d68=_0x27f4;if(_0x5d41ff(_0x1206b4)!='object'||!_0x1206b4)return _0x1206b4;var _0x1a1280=_0x1206b4[Symbol[_0x259d68(0x154)]];if(_0x1a1280!==void 0x0){var _0x1febe6=_0x1a1280[_0x259d68(0x132)](_0x1206b4,_0x29cd6e||_0x259d68(0x13b));if(_0x5d41ff(_0x1febe6)!=_0x259d68(0x13d))return _0x1febe6;throw TypeError(_0x259d68(0x155));}return(_0x29cd6e===_0x259d68(0x15e)?String:Number)(_0x1206b4);}function _0xfe45d9(_0x4a1c1f){const _0x3dedee=_0x27f4;var _0x31ec87=_0x1961a6(_0x4a1c1f,_0x3dedee(0x15e));return _0x5d41ff(_0x31ec87)==_0x3dedee(0x145)?_0x31ec87:_0x31ec87+'';}function _0x792da0(_0x1f2253,_0x3c12d3,_0x55fefc){const _0x4f87f5=_0x27f4;return(_0x3c12d3=_0xfe45d9(_0x3c12d3))in _0x1f2253?Object[_0x4f87f5(0x13f)](_0x1f2253,_0x3c12d3,{'value':_0x55fefc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1f2253[_0x3c12d3]=_0x55fefc,_0x1f2253;}var _0x1f4caa=class extends _0x3c160e[_0x2ffba0(0x12e)]{constructor(..._0xa04648){const _0x55ff1b=_0x2ffba0;super(..._0xa04648),_0x792da0(this,_0x55ff1b(0x15d),void 0x0);}[_0x2ffba0(0x149)](_0x274c6a){const _0xe30b60=_0x2ffba0;this[_0xe30b60(0x15d)]=_0x274c6a['get'](_0x32f09b[_0xe30b60(0x140)]);}[_0x2ffba0(0x14a)](){const _0x26f040=_0x2ffba0;var _0xa29d5d;let _0xff9cec=this[_0x26f040(0x135)]['get'](_0x19ce55[_0x26f040(0x136)])[_0x26f040(0x14c)](_0x19ce55[_0x26f040(0x143)][_0x26f040(0x13a)]);if(!_0xff9cec)throw Error(_0x26f040(0x15a));let _0xfc55db=_0xff9cec['getUnitId'](),_0x27b703=this[_0x26f040(0x15d)][_0x26f040(0x134)](_0xfc55db);return(_0xa29d5d=_0x27b703==null?void 0x0:_0x27b703[_0x26f040(0x156)]())==null?_0x32f09b[_0x26f040(0x139)]['IDLE']:_0xa29d5d;}[_0x2ffba0(0x130)](){const _0x17e850=_0x2ffba0;let _0x1c5860=this[_0x17e850(0x135)][_0x17e850(0x144)](_0x19ce55['IUniverInstanceService'])['getCurrentUnitOfType'](_0x19ce55[_0x17e850(0x143)][_0x17e850(0x13a)]);if(!_0x1c5860)throw Error('No\x20active\x20workbook\x20found.');let _0x32d95e=_0x1c5860['getUnitId'](),_0x2e69bb=this[_0x17e850(0x15d)]['getLiveShareCoordinatorSync'](_0x32d95e);if(!_0x2e69bb)throw Error(_0x17e850(0x153));_0x2e69bb[_0x17e850(0x130)]();}[_0x2ffba0(0x13c)](){const _0x542d9f=_0x2ffba0;let _0x2c015b=this['_injector'][_0x542d9f(0x144)](_0x19ce55[_0x542d9f(0x136)])[_0x542d9f(0x14c)](_0x19ce55['UniverInstanceType'][_0x542d9f(0x13a)]);if(!_0x2c015b)throw Error(_0x542d9f(0x15a));let _0x1d7211=_0x2c015b[_0x542d9f(0x151)](),_0x4c4320=this[_0x542d9f(0x15d)][_0x542d9f(0x134)](_0x1d7211);if(!_0x4c4320)throw Error(_0x542d9f(0x153));_0x4c4320['stopFollowing']();}[_0x2ffba0(0x15c)](){const _0x3cf2d7=_0x2ffba0;let _0x46d7e0=this[_0x3cf2d7(0x135)]['get'](_0x19ce55[_0x3cf2d7(0x136)])[_0x3cf2d7(0x14c)](_0x19ce55[_0x3cf2d7(0x143)][_0x3cf2d7(0x13a)]);if(!_0x46d7e0)throw Error(_0x3cf2d7(0x15a));let _0x343d1a=_0x46d7e0['getUnitId'](),_0x510e10=this[_0x3cf2d7(0x15d)][_0x3cf2d7(0x134)](_0x343d1a);if(!_0x510e10)throw Error(_0x3cf2d7(0x153));_0x510e10[_0x3cf2d7(0x14d)]();}[_0x2ffba0(0x137)](){const _0x1d7c11=_0x2ffba0;let _0x1b19e6=this[_0x1d7c11(0x135)][_0x1d7c11(0x144)](_0x19ce55['IUniverInstanceService'])[_0x1d7c11(0x14c)](_0x19ce55[_0x1d7c11(0x143)][_0x1d7c11(0x13a)]);if(!_0x1b19e6)throw Error(_0x1d7c11(0x15a));let _0x5ac343=_0x1b19e6[_0x1d7c11(0x151)](),_0x5b0c52=this[_0x1d7c11(0x15d)]['getLiveShareCoordinatorSync'](_0x5ac343);if(!_0x5b0c52)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5b0c52['stopPresenting']();}};_0x3c160e[_0x2ffba0(0x12e)][_0x2ffba0(0x14f)](_0x1f4caa);var _0x184795=class extends _0x3c160e[_0x2ffba0(0x148)]{get[_0x2ffba0(0x14b)](){const _0x1b4c0c=_0x2ffba0;return _0x32f09b[_0x1b4c0c(0x139)];}};_0x3c160e[_0x2ffba0(0x148)]['extend'](_0x184795);}));function _0x3fa4(){const _0x377866=['tryStartPresenting','88UGUNGd','extend','24696lAzNxH','getUnitId','27WBKTPJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','toPrimitive','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getStatus','4829301zrfblk','@univerjs/core','1110wvfMFR','No\x20active\x20workbook\x20found.','21769NfiSci','startPresenting','_liveShareController','string','1313HwplMl','20061cgMFts','iterator','FUniver','84QndzBP','startFollowing','44292CvHLaE','call','1780KUIeUm','getLiveShareCoordinatorSync','_injector','IUniverInstanceService','stopPresenting','prototype','LiveShareStatus','UNIVER_SHEET','default','stopFollowing','object','UniverProLiveShare','defineProperty','LiveShareController','2145xyWxqo','amd','UniverInstanceType','get','symbol','233688MzNids','@univerjs/core/facade','FEnum','_initialize','getLiveShareStatus','LiveShareStatusEnum','getCurrentUnitOfType'];_0x3fa4=function(){return _0x377866;};return _0x3fa4();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4f539a,_0x31ad6d){const _0x99ed49=_0x5540,_0x2b3859=_0x4f539a();while(!![]){try{const _0x3a37b8=-parseInt(_0x99ed49(0x20b))/0x1*(parseInt(_0x99ed49(0x19b))/0x2)+parseInt(_0x99ed49(0x16b))/0x3+-parseInt(_0x99ed49(0x23b))/0x4+-parseInt(_0x99ed49(0x149))/0x5+parseInt(_0x99ed49(0x20f))/0x6*(-parseInt(_0x99ed49(0x17e))/0x7)+parseInt(_0x99ed49(0x164))/0x8*(parseInt(_0x99ed49(0x187))/0x9)+parseInt(_0x99ed49(0x1d2))/0xa;if(_0x3a37b8===_0x31ad6d)break;else _0x2b3859['push'](_0x2b3859['shift']());}catch(_0x57af8b){_0x2b3859['push'](_0x2b3859['shift']());}}}(_0x219e,0x281ff),function(_0x4b90a4,_0x58b9d0){const _0x43de7c=_0x5540;typeof exports==_0x43de7c(0x180)&&typeof module<'u'?_0x58b9d0(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x43de7c(0x16c)]?define([_0x43de7c(0x22b),_0x43de7c(0x209),_0x43de7c(0x21b),_0x43de7c(0x159),_0x43de7c(0x1b0),'react',_0x43de7c(0x210),_0x43de7c(0x20a),_0x43de7c(0x202),_0x43de7c(0x19f),_0x43de7c(0x19e),_0x43de7c(0x1ee)],_0x58b9d0):(_0x4b90a4=typeof globalThis<'u'?globalThis:_0x4b90a4||self,_0x58b9d0(_0x4b90a4['UniverProLiveShare']={},_0x4b90a4['UniverCore'],_0x4b90a4[_0x43de7c(0x1b4)],_0x4b90a4[_0x43de7c(0x16f)],_0x4b90a4[_0x43de7c(0x1ec)],_0x4b90a4[_0x43de7c(0x16f)],_0x4b90a4[_0x43de7c(0x1cc)],_0x4b90a4[_0x43de7c(0x15b)],_0x4b90a4[_0x43de7c(0x1da)],_0x4b90a4['rxjs'],_0x4b90a4[_0x43de7c(0x19f)][_0x43de7c(0x1e5)],_0x4b90a4[_0x43de7c(0x14c)]));}(this,function(_0x16e8c4,_0x32c1e6,_0x33658b,_0x162b1a,_0x1e0afd,_0x4c05c7,_0x4e05a1,_0x37f50c,_0xb8284f,_0x4ae3be,_0x647a5c,_0x37638d){'use strict';const _0x10f76b=_0x5540;var _0x2bca3e=Object[_0x10f76b(0x15a)],_0x24d60d=(_0x53d60c,_0x3b8a3f,_0x351885)=>_0x3b8a3f in _0x53d60c?_0x2bca3e(_0x53d60c,_0x3b8a3f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x351885}):_0x53d60c[_0x3b8a3f]=_0x351885,_0x51f1c0=(_0x17746e,_0x3e207d,_0x30e3ee)=>_0x24d60d(_0x17746e,typeof _0x3e207d!='symbol'?_0x3e207d+'':_0x3e207d,_0x30e3ee);function _0x59be89({ref:_0x4d8650,..._0x223598}){const _0x563511=_0x10f76b,{icon:_0x712795,id:_0x4fb5a7,className:_0x100701,extend:_0x52e9ef,..._0x219571}=_0x223598,_0x577200=(_0x563511(0x211)+_0x4fb5a7+'\x20'+(_0x100701||''))[_0x563511(0x1b3)](),_0x486697=_0x4c05c7['useRef']('_'+_0x3d44c4());return _0x59a4d7(_0x712795,''+_0x4fb5a7,{'defIds':_0x712795[_0x563511(0x19d)],'idSuffix':_0x486697[_0x563511(0x1db)]},{'ref':_0x4d8650,'className':_0x577200,..._0x219571},_0x52e9ef);}function _0x59a4d7(_0x23d4b1,_0x2e6703,_0x79766,_0x264df8,_0x5e7de8){const _0x47ad78=_0x10f76b;return _0x4c05c7[_0x47ad78(0x170)](_0x23d4b1[_0x47ad78(0x22e)],{'key':_0x2e6703,..._0x1b5d31(_0x23d4b1,_0x79766,_0x5e7de8),..._0x264df8},(_0x2485c2(_0x23d4b1,_0x79766)[_0x47ad78(0x200)]||[])[_0x47ad78(0x1ce)]((_0x5b9b48,_0x16d2d5)=>_0x59a4d7(_0x5b9b48,_0x2e6703+'-'+_0x23d4b1[_0x47ad78(0x22e)]+'-'+_0x16d2d5,_0x79766,void 0x0,_0x5e7de8)));}function _0x1b5d31(_0x15a3b3,_0x3169d2,_0x29abcc){const _0xa1f498=_0x10f76b,_0x34f339={..._0x15a3b3[_0xa1f498(0x1bd)]};_0x29abcc!=null&&_0x29abcc[_0xa1f498(0x230)]&&_0x34f339[_0xa1f498(0x1df)]===_0xa1f498(0x230)&&(_0x34f339[_0xa1f498(0x1df)]=_0x29abcc[_0xa1f498(0x230)]),_0x15a3b3['tag']==='mask'&&_0x34f339['id']&&(_0x34f339['id']=_0x34f339['id']+_0x3169d2['idSuffix']),Object[_0xa1f498(0x21a)](_0x34f339)['forEach'](([_0x6c5070,_0x4b9e20])=>{const _0x504930=_0xa1f498;_0x6c5070===_0x504930(0x1cf)&&typeof _0x4b9e20==_0x504930(0x220)&&(_0x34f339[_0x6c5070]=_0x4b9e20[_0x504930(0x212)](/url\(#(.*)\)/,_0x504930(0x1fd)+_0x3169d2['idSuffix']+')'));});const {defIds:_0x5040ab}=_0x3169d2;return!_0x5040ab||_0x5040ab[_0xa1f498(0x1c7)]===0x0||(_0x15a3b3[_0xa1f498(0x22e)]===_0xa1f498(0x1a8)&&_0x34f339[_0xa1f498(0x1a0)]&&(_0x34f339['xlink:href']=_0x34f339[_0xa1f498(0x1a0)]+_0x3169d2[_0xa1f498(0x1d5)]),Object[_0xa1f498(0x21a)](_0x34f339)['forEach'](([_0x1e8c18,_0x39e92c])=>{const _0x527514=_0xa1f498;typeof _0x39e92c==_0x527514(0x220)&&(_0x34f339[_0x1e8c18]=_0x39e92c['replace'](/url\(#(.*)\)/,'url(#$1'+_0x3169d2[_0x527514(0x1d5)]+')'));})),_0x34f339;}function _0x2485c2(_0x5bf213,_0x1b5a8e){const _0x3a331b=_0x10f76b;var _0x452589;const {defIds:_0x3cfa96}=_0x1b5a8e;return!_0x3cfa96||_0x3cfa96[_0x3a331b(0x1c7)]===0x0?_0x5bf213:_0x5bf213[_0x3a331b(0x22e)]===_0x3a331b(0x199)&&((_0x452589=_0x5bf213[_0x3a331b(0x200)])!=null&&_0x452589[_0x3a331b(0x1c7)])?{..._0x5bf213,'children':_0x5bf213['children'][_0x3a331b(0x1ce)](_0x381897=>typeof _0x381897[_0x3a331b(0x1bd)]['id']==_0x3a331b(0x220)&&_0x3cfa96&&_0x3cfa96['includes'](_0x381897[_0x3a331b(0x1bd)]['id'])?{..._0x381897,'attrs':{..._0x381897[_0x3a331b(0x1bd)],'id':_0x381897[_0x3a331b(0x1bd)]['id']+_0x1b5a8e[_0x3a331b(0x1d5)]}}:_0x381897)}:_0x5bf213;}function _0x3d44c4(){const _0x571e83=_0x10f76b;return Math[_0x571e83(0x1ed)]()[_0x571e83(0x1ca)](0x24)['substring'](0x2,0x8);}_0x59be89['displayName']=_0x10f76b(0x1fb);const _0x54f78e={'tag':'svg','attrs':{'xmlns':_0x10f76b(0x1fc),'fill':_0x10f76b(0x157),'viewBox':_0x10f76b(0x226),'width':'1em','height':_0x10f76b(0x151)},'children':[{'tag':_0x10f76b(0x214),'attrs':{'fill':_0x10f76b(0x1d7),'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':_0x10f76b(0x214),'attrs':{'fill':_0x10f76b(0x1d7),'d':_0x10f76b(0x208),'fillRule':'evenodd','clipRule':_0x10f76b(0x1b2)}}]},_0x5b453a=_0x4c05c7[_0x10f76b(0x14f)](function(_0x6cfd2d,_0x70cd6a){const _0x37d2f7=_0x10f76b;return _0x4c05c7[_0x37d2f7(0x170)](_0x59be89,Object[_0x37d2f7(0x1d4)]({},_0x6cfd2d,{'id':_0x37d2f7(0x1cd),'ref':_0x70cd6a,'icon':_0x54f78e}));});_0x5b453a[_0x10f76b(0x189)]=_0x10f76b(0x167);class _0x6be13 extends _0x32c1e6[_0x10f76b(0x21d)]{constructor(){const _0x1c0898=_0x10f76b;super(...arguments),_0x51f1c0(this,_0x1c0898(0x155),new Set()),_0x51f1c0(this,_0x1c0898(0x1b8),new Set());}[_0x10f76b(0x213)](_0x3cb140){const _0x2caf9b=_0x10f76b;return this[_0x2caf9b(0x155)][_0x2caf9b(0x1f1)](_0x3cb140),_0x32c1e6[_0x2caf9b(0x1af)](()=>this[_0x2caf9b(0x155)]['delete'](_0x3cb140));}[_0x10f76b(0x20d)](_0x2b9355){const _0x444031=_0x10f76b;return this[_0x444031(0x1b8)]['add'](_0x2b9355),_0x32c1e6[_0x444031(0x1af)](()=>this[_0x444031(0x1b8)][_0x444031(0x16e)](_0x2b9355));}[_0x10f76b(0x183)](_0x3c36be){const _0x1f61c7=_0x10f76b;return this[_0x1f61c7(0x155)][_0x1f61c7(0x218)](_0x3c36be);}[_0x10f76b(0x17b)](_0x595309){return Array['from'](this['_reporters'])['map'](_0x452947=>_0x452947(_0x595309));}}var _0x299313=Object['getOwnPropertyDescriptor'],_0x211db4=(_0x58677e,_0x4d7c31,_0x23f688,_0x365e87)=>{for(var _0x28b5f8=_0x365e87>0x1?void 0x0:_0x365e87?_0x299313(_0x4d7c31,_0x23f688):_0x4d7c31,_0x12e9be=_0x58677e['length']-0x1,_0x303116;_0x12e9be>=0x0;_0x12e9be--)(_0x303116=_0x58677e[_0x12e9be])&&(_0x28b5f8=_0x303116(_0x28b5f8)||_0x28b5f8);return _0x28b5f8;},_0x54338a=(_0x29fa61,_0x5658b3)=>(_0x9b0787,_0xbb2a99)=>_0x5658b3(_0x9b0787,_0xbb2a99,_0x29fa61);_0x16e8c4[_0x10f76b(0x18e)]=class extends _0x32c1e6[_0x10f76b(0x18d)]{constructor(_0x85f8a9,_0x26f036,_0x345956){const _0x246fe2=_0x10f76b;super(),_0x51f1c0(this,_0x246fe2(0x21f),new Map()),(this[_0x246fe2(0x204)]=_0x85f8a9,this[_0x246fe2(0x1ab)]=_0x26f036,this[_0x246fe2(0x14d)]=_0x345956,this['_init']());}async['getLiveShareCoordinator'](_0x4d888b){const _0x24a414=_0x10f76b;return this[_0x24a414(0x21f)][_0x24a414(0x218)](_0x4d888b)||await this[_0x24a414(0x1a5)](_0x4d888b),this[_0x24a414(0x21f)][_0x24a414(0x1be)](_0x4d888b);}[_0x10f76b(0x1ba)](_0x534c00){var _0x1d2898;return(_0x1d2898=this['_entities']['get'](_0x534c00))!=null?_0x1d2898:null;}[_0x10f76b(0x1fe)](){const _0x415230=_0x10f76b;this['_univerInstanceService'][_0x415230(0x228)](_0x32c1e6[_0x415230(0x15d)][_0x415230(0x23f)])[_0x415230(0x1d0)](_0x647a5c['takeUntil'](this[_0x415230(0x154)]))[_0x415230(0x17f)](async _0x1e8b67=>{const _0x28ff6f=_0x415230,_0x27d29b=_0x1e8b67['getUnitId']();this[_0x28ff6f(0x21f)]['has'](_0x27d29b)||this[_0x28ff6f(0x1a5)](_0x27d29b);}),this[_0x415230(0x204)][_0x415230(0x1ae)](_0x32c1e6['UniverInstanceType'][_0x415230(0x23f)])[_0x415230(0x1d0)](_0x647a5c[_0x415230(0x234)](this[_0x415230(0x154)]))[_0x415230(0x17f)](_0x197c1b=>{const _0x5a7b7e=_0x415230,_0x2c9851=_0x197c1b['getUnitId'](),_0x34d51f=this[_0x5a7b7e(0x21f)]['get'](_0x2c9851);_0x34d51f==null||_0x34d51f[_0x5a7b7e(0x1a1)]();});}async[_0x10f76b(0x1a5)](_0x4dc280){const _0x5637d3=_0x10f76b,_0x2365c7=await this[_0x5637d3(0x14d)][_0x5637d3(0x1c8)](_0x4dc280),_0x3d6313=this[_0x5637d3(0x1ab)][_0x5637d3(0x185)](_0x16e8c4[_0x5637d3(0x20c)],_0x4dc280,_0x2365c7);return _0x3d6313[_0x5637d3(0x1b7)](),this[_0x5637d3(0x21f)][_0x5637d3(0x179)](_0x4dc280,_0x3d6313),_0x3d6313;}},_0x16e8c4[_0x10f76b(0x18e)]=_0x211db4([_0x54338a(0x0,_0x32c1e6[_0x10f76b(0x1d9)]),_0x54338a(0x1,_0x32c1e6['Inject'](_0x32c1e6[_0x10f76b(0x221)])),_0x54338a(0x2,_0x32c1e6['Inject'](_0x37f50c[_0x10f76b(0x1e0)]))],_0x16e8c4[_0x10f76b(0x18e)]);var _0x26b222=(_0x55a3fd=>(_0x55a3fd['OFFLINE']=_0x10f76b(0x1a7),_0x55a3fd['IDLE']=_0x10f76b(0x22f),_0x55a3fd[_0x10f76b(0x19a)]='following',_0x55a3fd[_0x10f76b(0x14a)]=_0x10f76b(0x1c9),_0x55a3fd[_0x10f76b(0x1e7)]=_0x10f76b(0x238),_0x55a3fd))(_0x26b222||{});const _0x3cd5fb='SAME_OPERATION_SHARE_INTERVAL',_0x51f909=0xc8;_0x16e8c4[_0x10f76b(0x20c)]=class extends _0x32c1e6['RxDisposable']{constructor(_0x4d55ab,_0x25e00e,_0x2fbd21,_0x35276d,_0x3f3288){const _0x352a4d=_0x10f76b;super(),_0x51f1c0(this,_0x352a4d(0x1dc),new _0x4ae3be[(_0x352a4d(0x18c))]('idle')),_0x51f1c0(this,_0x352a4d(0x175),this[_0x352a4d(0x1dc)][_0x352a4d(0x1a3)]()),_0x51f1c0(this,'_init',!0x1),_0x51f1c0(this,_0x352a4d(0x194),null),_0x51f1c0(this,'_presenter',null),(this[_0x352a4d(0x18b)]=_0x4d55ab,this['_collabSession']=_0x25e00e,this[_0x352a4d(0x1eb)]=_0x2fbd21,this[_0x352a4d(0x1e6)]=_0x35276d,this[_0x352a4d(0x1e9)]=_0x3f3288);}get[_0x10f76b(0x1b5)](){const _0x981dbf=_0x10f76b;return this[_0x981dbf(0x1dc)][_0x981dbf(0x1ff)]();}[_0x10f76b(0x1a1)](){const _0x808661=_0x10f76b;var _0x50189e;(_0x50189e=this[_0x808661(0x194)])==null||_0x50189e[_0x808661(0x1a1)](),this[_0x808661(0x1dc)]['next'](_0x808661(0x22f)),this[_0x808661(0x1dc)][_0x808661(0x191)]();}[_0x10f76b(0x23e)](){const _0x3836a7=_0x10f76b;return this[_0x3836a7(0x1b5)];}[_0x10f76b(0x1b7)](){const _0x3baefa=_0x10f76b;this['_init']||(this[_0x3baefa(0x1fe)]=!0x0,this[_0x3baefa(0x1a9)][_0x3baefa(0x15e)][_0x3baefa(0x1d0)](_0x647a5c[_0x3baefa(0x234)](this['dispose$']))[_0x3baefa(0x17f)](_0x3066ad=>{const _0x36a04d=_0x3baefa;switch(_0x3066ad){case _0x37f50c[_0x36a04d(0x1e1)][_0x36a04d(0x1bb)]:this[_0x36a04d(0x229)]();break;case _0x37f50c[_0x36a04d(0x1e1)][_0x36a04d(0x224)]:this[_0x36a04d(0x14b)]();break;}}),this[_0x3baefa(0x1a9)][_0x3baefa(0x18a)]['pipe'](_0x647a5c[_0x3baefa(0x234)](this['dispose$']))['subscribe'](_0x3bb3fd=>{const _0x13d7b3=_0x3baefa,{eventID:_0x1be7bb}=_0x3bb3fd;switch(_0x1be7bb){case _0x4e05a1[_0x13d7b3(0x21c)][_0x13d7b3(0x1a2)]:this['_handleNewHost'](_0x3bb3fd);break;case _0x4e05a1['CollaborationEvent'][_0x13d7b3(0x1ad)]:this['_handleOperation'](_0x3bb3fd);break;case _0x4e05a1[_0x13d7b3(0x21c)][_0x13d7b3(0x237)]:this[_0x13d7b3(0x206)]();break;case _0x4e05a1[_0x13d7b3(0x21c)][_0x13d7b3(0x1c0)]:this[_0x13d7b3(0x1d1)](_0x3bb3fd);break;}}));}[_0x10f76b(0x232)](){const _0x21d3ac=_0x10f76b;this[_0x21d3ac(0x1a9)]['send']({'eventID':_0x4e05a1[_0x21d3ac(0x21c)][_0x21d3ac(0x1b6)],'data':{'unitID':this['_unitID'],'userID':this[_0x21d3ac(0x1a9)]['getMemberID']()}},this[_0x21d3ac(0x18b)]);}[_0x10f76b(0x1d6)](){const _0x2a2e77=_0x10f76b;this[_0x2a2e77(0x1b5)]===_0x2a2e77(0x238)&&(this[_0x2a2e77(0x1dc)]['next'](_0x2a2e77(0x22f)),this[_0x2a2e77(0x1a9)][_0x2a2e77(0x1b1)]({'eventID':_0x4e05a1['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2a2e77(0x18b)]}},this['_unitID']));}['startFollowing'](){const _0x447a3b=_0x10f76b;this[_0x447a3b(0x1b5)]===_0x447a3b(0x1c9)&&(this['_status$'][_0x447a3b(0x1c5)](_0x447a3b(0x1bf)),this[_0x447a3b(0x196)]());}[_0x10f76b(0x1cb)](){const _0x692e50=_0x10f76b;this['_status']===_0x692e50(0x1bf)&&this['_stopFollowing']();}[_0x10f76b(0x160)](_0x34fbb0){const _0x3f6f5a=_0x10f76b,{presenter:_0x200939}=_0x34fbb0[_0x3f6f5a(0x15f)],_0x57be9a=this['_collabSession']['getMemberID']();this['_presenter']=_0x200939,_0x200939===_0x57be9a?(this[_0x3f6f5a(0x219)](),this[_0x3f6f5a(0x1c6)]()):this[_0x3f6f5a(0x1b5)]!==_0x3f6f5a(0x1c9)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x10f76b(0x197)](){const _0x2a2e17=_0x10f76b,_0x57279d={'eventID':_0x4e05a1[_0x2a2e17(0x21c)][_0x2a2e17(0x201)]};this[_0x2a2e17(0x1a9)][_0x2a2e17(0x1b1)](_0x57279d,this[_0x2a2e17(0x18b)]);}[_0x10f76b(0x206)](){const _0xb955ee=_0x10f76b;this[_0xb955ee(0x18f)]=null,this['_status']!=='presenting'&&this[_0xb955ee(0x174)]();}[_0x10f76b(0x1d1)](_0x343123){const _0x11f180=_0x10f76b;if(this[_0x11f180(0x1b5)]===_0x11f180(0x1bf)&&this[_0x11f180(0x18f)]===_0x343123[_0x11f180(0x15f)][_0x11f180(0x162)]){const _0x3b5d3e=_0x4e05a1['parseProtocolChangeset'](_0x343123[_0x11f180(0x15f)])[_0x11f180(0x17a)][_0x11f180(0x23d)]()[_0x11f180(0x188)](_0x4642db=>_0x4642db['id']===_0xb8284f[_0x11f180(0x1c2)]['id']);if(_0x3b5d3e){const _0x5ceca3=_0x3b5d3e[_0x11f180(0x195)][_0x11f180(0x169)],_0x24a250=_0x3b5d3e[_0x11f180(0x195)][_0x11f180(0x205)]['id'];setTimeout(()=>{const _0x3fafa6=_0x11f180;this[_0x3fafa6(0x1e9)][_0x3fafa6(0x223)](_0xb8284f[_0x3fafa6(0x176)]['id'],{'unitId':_0x5ceca3,'subUnitId':_0x24a250},{'fromCollab':!0x0});});}}}[_0x10f76b(0x1c6)](){const _0x5ccc9b=_0x10f76b;this['_status$'][_0x5ccc9b(0x1c5)](_0x5ccc9b(0x238));const _0x1d2ec8=new Map(),_0x4c6dcf=this[_0x5ccc9b(0x194)]=new _0x32c1e6[(_0x5ccc9b(0x182))]();_0x4c6dcf['add'](_0x32c1e6['toDisposable'](()=>{const _0x589999=_0x5ccc9b;_0x1d2ec8[_0x589999(0x168)](_0xabba8c=>_0xabba8c['complete']()),_0x1d2ec8[_0x589999(0x192)]();})),_0x4c6dcf['add'](this[_0x5ccc9b(0x1e9)][_0x5ccc9b(0x17d)](_0x4cecd8=>{const _0xd281d7=_0x5ccc9b;var _0x3aca2f;if(_0x4cecd8[_0xd281d7(0x1f0)]!==_0x32c1e6[_0xd281d7(0x1e8)][_0xd281d7(0x1de)]||!this['_liveShareService']['shouldShareOperation'](_0x4cecd8['id']))return;const {id:_0x13d875}=_0x4cecd8;let _0x22a8aa;_0x1d2ec8['has'](_0x13d875)?_0x22a8aa=_0x1d2ec8[_0xd281d7(0x1be)](_0x13d875):(_0x22a8aa=new _0x4ae3be['Subject'](),_0x1d2ec8[_0xd281d7(0x179)](_0x13d875,_0x22a8aa),_0x22a8aa[_0xd281d7(0x1d0)](_0x647a5c[_0xd281d7(0x1ef)]((_0x3aca2f=this['_configService']['getConfig'](_0x3cd5fb))!=null?_0x3aca2f:_0x51f909,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x15ff6b=>{const _0x3c306e=_0xd281d7;this[_0x3c306e(0x1a9)][_0x3c306e(0x1b1)]({'eventID':_0x4e05a1[_0x3c306e(0x21c)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3c306e(0x18b)],'operations':{[_0x15ff6b['id']]:{'id':_0x15ff6b['id'],'params':JSON[_0x3c306e(0x1f8)](_0x15ff6b['params'])}}}},this[_0x3c306e(0x18b)]);})),_0x22a8aa['next'](_0x4cecd8);})),this['_liveShareService'][_0x5ccc9b(0x17b)](this[_0x5ccc9b(0x18b)])['forEach'](_0x5e66d2=>this[_0x5ccc9b(0x1a9)][_0x5ccc9b(0x1b1)]({'eventID':_0x4e05a1[_0x5ccc9b(0x21c)][_0x5ccc9b(0x1ad)],'data':{'unitID':this[_0x5ccc9b(0x18b)],'operations':{[_0x5e66d2['id']]:{'id':_0x5e66d2['id'],'params':JSON[_0x5ccc9b(0x1f8)](_0x5e66d2[_0x5ccc9b(0x195)])}}}},this[_0x5ccc9b(0x18b)]));}[_0x10f76b(0x1f4)](){const _0xa3326b=_0x10f76b;var _0x40e731;this[_0xa3326b(0x1dc)][_0xa3326b(0x1c5)](_0xa3326b(0x22f)),(_0x40e731=this['_commandDisposable'])==null||_0x40e731['dispose'](),this[_0xa3326b(0x194)]=null;}[_0x10f76b(0x196)](){const _0x15ed38=_0x10f76b;var _0x48ad77;(_0x48ad77=this['_commandDisposable'])==null||_0x48ad77[_0x15ed38(0x1a1)](),this[_0x15ed38(0x1dc)][_0x15ed38(0x1c5)](_0x15ed38(0x1bf));}[_0x10f76b(0x174)](){const _0x17f19a=_0x10f76b;var _0x24c1a1;this[_0x17f19a(0x1dc)][_0x17f19a(0x1c5)](_0x17f19a(0x22f)),(_0x24c1a1=this[_0x17f19a(0x194)])==null||_0x24c1a1['dispose'](),this[_0x17f19a(0x194)]=null;}[_0x10f76b(0x219)](){const _0x2a4141=_0x10f76b;var _0x32b4fe;this[_0x2a4141(0x1dc)][_0x2a4141(0x1c5)](_0x2a4141(0x1c9)),(_0x32b4fe=this[_0x2a4141(0x194)])==null||_0x32b4fe['dispose']();}['_handleOperation'](_0x25a86b){const _0x22fddd=_0x10f76b;if([_0x22fddd(0x238),_0x22fddd(0x1c9),_0x22fddd(0x1a7)][_0x22fddd(0x1dd)](this[_0x22fddd(0x1b5)])||!_0x25a86b['data'][_0x22fddd(0x1f6)]||_0x25a86b[_0x22fddd(0x15f)]['presenter']===this[_0x22fddd(0x1a9)][_0x22fddd(0x1e2)]())return;this[_0x22fddd(0x1b5)]===_0x22fddd(0x22f)&&this[_0x22fddd(0x196)]();const _0x3191dd=_0x25a86b[_0x22fddd(0x15f)][_0x22fddd(0x193)];Object[_0x22fddd(0x165)](_0x3191dd)['forEach'](_0x1bd100=>{const _0x58f4d7=_0x22fddd;this[_0x58f4d7(0x1e9)][_0x58f4d7(0x223)](_0x1bd100['id'],_0x1bd100[_0x58f4d7(0x195)]?JSON[_0x58f4d7(0x216)](_0x1bd100[_0x58f4d7(0x195)]):null,{'fromCollab':!0x0});});}[_0x10f76b(0x229)](){const _0x57ca6e=_0x10f76b;var _0x379750;this[_0x57ca6e(0x1dc)][_0x57ca6e(0x1c5)](_0x57ca6e(0x1a7)),(_0x379750=this[_0x57ca6e(0x194)])==null||_0x379750['dispose']();}['_handleOnline'](){const _0x2435eb=_0x10f76b;this['_status$'][_0x2435eb(0x1c5)]('idle'),this[_0x2435eb(0x197)]();}},_0x16e8c4[_0x10f76b(0x20c)]=_0x211db4([_0x54338a(0x2,_0x32c1e6[_0x10f76b(0x1f7)]),_0x54338a(0x3,_0x32c1e6[_0x10f76b(0x1c4)](_0x6be13)),_0x54338a(0x4,_0x32c1e6[_0x10f76b(0x186)])],_0x16e8c4[_0x10f76b(0x20c)]);function _0x205faa(){const _0x3d6c2d=_0x10f76b,_0x5b4e6f=_0x33658b['useDependency'](_0x16e8c4['LiveShareController']),_0x4d7ae7=_0x33658b[_0x3d6c2d(0x1ac)](_0x32c1e6[_0x3d6c2d(0x1d9)]),_0xf55392=_0x33658b[_0x3d6c2d(0x1f2)](()=>_0x4d7ae7[_0x3d6c2d(0x1c3)](_0x32c1e6['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x315bd7,_0x3bd3ea]=_0x4c05c7[_0x3d6c2d(0x1d8)](null),[_0x107eb7,_0x2a2442]=_0x4c05c7[_0x3d6c2d(0x1d8)](_0x26b222['IDLE']),_0x261bb2=_0x4c05c7[_0x3d6c2d(0x153)](null);return _0x4c05c7['useEffect'](()=>(_0xf55392&&_0x5b4e6f['getLiveShareCoordinator'](_0xf55392['getUnitId']())['then'](_0x501e2a=>{const _0x1dfcff=_0x3d6c2d;_0x3bd3ea(_0x501e2a),_0x261bb2['current']=_0x501e2a[_0x1dfcff(0x175)]['subscribe'](_0x42015f=>{_0x2a2442(_0x42015f);});}),()=>{var _0x92df92;(_0x92df92=_0x261bb2['current'])==null||_0x92df92['unsubscribe'](),_0x261bb2['current']=null;}),[_0xf55392,_0x5b4e6f]),_0x315bd7?_0x162b1a[_0x3d6c2d(0x198)](_0x1e0afd[_0x3d6c2d(0x16d)],{'align':_0x3d6c2d(0x1e4),'disabled':_0x107eb7===_0x26b222[_0x3d6c2d(0x1bb)],'className':_0x3d6c2d(0x207),'overlay':_0x162b1a[_0x3d6c2d(0x198)](_0x43ba58,{'status':_0x107eb7,'coordinator':_0x315bd7}),'children':_0x162b1a['jsx']('button',{'className':_0x1e0afd['clsx'](_0x3d6c2d(0x158),{'univer-cursor-not-allowed':_0x107eb7===_0x26b222[_0x3d6c2d(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x107eb7!==_0x26b222['OFFLINE']}),'type':'button','children':_0x162b1a['jsx'](_0x5b453a,{'className':_0x3d6c2d(0x235)})})}):null;}function _0x43ba58(_0x28cf9e){const _0x582df9=_0x10f76b,{status:_0x721e93,coordinator:_0x535bc0}=_0x28cf9e;switch(_0x721e93){case _0x26b222[_0x582df9(0x22c)]:return _0x162b1a[_0x582df9(0x198)](_0x4a3e26,{'coordinator':_0x535bc0});case _0x26b222[_0x582df9(0x19a)]:return _0x162b1a[_0x582df9(0x198)](_0x118f12,{'coordinator':_0x535bc0});case _0x26b222['NOT_FOLLOWING']:return _0x162b1a['jsx'](_0x2a1250,{'coordinator':_0x535bc0});case _0x26b222[_0x582df9(0x1bb)]:return _0x162b1a[_0x582df9(0x198)](_0x2f810e,{});case _0x26b222[_0x582df9(0x1e7)]:return _0x162b1a[_0x582df9(0x198)](_0x350d59,{'coordinator':_0x535bc0});default:return null;}}function _0x4a3e26(_0x1b185e){const _0x1b05cf=_0x10f76b,{coordinator:_0x6fe208}=_0x1b185e;return _0x162b1a[_0x1b05cf(0x236)](_0x162b1a[_0x1b05cf(0x23c)],{'children':[_0x162b1a[_0x1b05cf(0x198)](_0x1b05cf(0x215),{'className':_0x1b05cf(0x150),'children':_0x1b05cf(0x14e)}),_0x162b1a[_0x1b05cf(0x198)](_0x1e0afd['Button'],{'onClick':()=>_0x6fe208[_0x1b05cf(0x232)](),'children':_0x1b05cf(0x21e)})]});}function _0x118f12(_0xebce71){const _0x7fdf90=_0x10f76b,{coordinator:_0x51b605}=_0xebce71;return _0x162b1a[_0x7fdf90(0x236)](_0x162b1a['Fragment'],{'children':[_0x162b1a[_0x7fdf90(0x198)](_0x7fdf90(0x215),{'className':_0x7fdf90(0x150),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x162b1a['jsx'](_0x1e0afd[_0x7fdf90(0x227)],{'onClick':()=>_0x51b605[_0x7fdf90(0x1cb)](),'children':_0x7fdf90(0x156)})]});}function _0x2a1250(_0x449a36){const _0x41ab09=_0x10f76b,{coordinator:_0x32f677}=_0x449a36;return _0x162b1a[_0x41ab09(0x236)](_0x162b1a[_0x41ab09(0x23c)],{'children':[_0x162b1a[_0x41ab09(0x198)](_0x41ab09(0x215),{'className':_0x41ab09(0x150),'children':_0x41ab09(0x1ea)}),_0x162b1a[_0x41ab09(0x198)](_0x1e0afd[_0x41ab09(0x227)],{'variant':'text','onClick':()=>_0x32f677[_0x41ab09(0x16a)](),'children':_0x41ab09(0x19c)})]});}function _0x350d59(_0x4a9eef){const _0x5f3d96=_0x10f76b,{coordinator:_0x53cf6d}=_0x4a9eef;return _0x162b1a[_0x5f3d96(0x236)](_0x162b1a[_0x5f3d96(0x23c)],{'children':[_0x162b1a[_0x5f3d96(0x198)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5f3d96(0x163)}),_0x162b1a['jsx'](_0x1e0afd[_0x5f3d96(0x227)],{'variant':_0x5f3d96(0x161),'onClick':()=>_0x53cf6d['stopPresenting'](),'children':_0x5f3d96(0x172)})]});}function _0x2f810e(){const _0x3c51fc=_0x10f76b;return _0x162b1a[_0x3c51fc(0x198)](_0x162b1a['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x28a657=Object[_0x10f76b(0x222)],_0x27f01d=(_0x3cf71,_0x16baa5,_0x3d366b,_0x18bc91)=>{const _0x38ed6b=_0x10f76b;for(var _0x4f05f5=_0x18bc91>0x1?void 0x0:_0x18bc91?_0x28a657(_0x16baa5,_0x3d366b):_0x16baa5,_0x58cce4=_0x3cf71[_0x38ed6b(0x1c7)]-0x1,_0x4d8563;_0x58cce4>=0x0;_0x58cce4--)(_0x4d8563=_0x3cf71[_0x58cce4])&&(_0x4f05f5=_0x4d8563(_0x4f05f5)||_0x4f05f5);return _0x4f05f5;},_0x11f1a4=(_0x4d1410,_0x20d02d)=>(_0x2b5098,_0x25ad3c)=>_0x20d02d(_0x2b5098,_0x25ad3c,_0x4d1410);_0x16e8c4[_0x10f76b(0x1c1)]=class extends _0x32c1e6[_0x10f76b(0x21d)]{constructor(_0x43bf32,_0x4313dd){const _0x41d624=_0x10f76b;super(),this[_0x41d624(0x1ab)]=_0x43bf32,this[_0x41d624(0x239)]=_0x4313dd,this[_0x41d624(0x1d3)]();}[_0x10f76b(0x1d3)](){const _0x37d5cf=_0x10f76b;this[_0x37d5cf(0x184)](this[_0x37d5cf(0x239)]['registerComponent'](_0x33658b[_0x37d5cf(0x1fa)][_0x37d5cf(0x1e3)],()=>_0x33658b[_0x37d5cf(0x166)](_0x205faa,this['_injector'])));}},_0x16e8c4['DesktopLiveShareController']=_0x27f01d([_0x11f1a4(0x0,_0x32c1e6[_0x10f76b(0x1c4)](_0x32c1e6[_0x10f76b(0x221)])),_0x11f1a4(0x1,_0x33658b['IUIPartsService'])],_0x16e8c4[_0x10f76b(0x1c1)]);const _0x185f8f={'name':'@univerjs-pro/live-share','version':_0x10f76b(0x231)},_0x37bf3e=_0x10f76b(0x1f3),_0x427ed3={};var _0x2450e7=Object[_0x10f76b(0x222)],_0xe3a530=(_0x4f04b5,_0x102760,_0x2fa963,_0x2f787c)=>{const _0x2bc558=_0x10f76b;for(var _0x483daa=_0x2f787c>0x1?void 0x0:_0x2f787c?_0x2450e7(_0x102760,_0x2fa963):_0x102760,_0x14ee8f=_0x4f04b5[_0x2bc558(0x1c7)]-0x1,_0x32faf8;_0x14ee8f>=0x0;_0x14ee8f--)(_0x32faf8=_0x4f04b5[_0x14ee8f])&&(_0x483daa=_0x32faf8(_0x483daa)||_0x483daa);return _0x483daa;},_0xe3aeab=(_0x582be0,_0x5e14a4)=>(_0x2c905b,_0x27ae99)=>_0x5e14a4(_0x2c905b,_0x27ae99,_0x582be0);let _0x397073=class extends _0x32c1e6[_0x10f76b(0x21d)]{constructor(_0x109149){const _0x4e6310=_0x10f76b;super(),this[_0x4e6310(0x1e6)]=_0x109149,this[_0x4e6310(0x1fe)]();}[_0x10f76b(0x1fe)](){const _0x2e488d=_0x10f76b;[_0x37638d[_0x2e488d(0x225)]['id'],_0x37638d['SetScrollOperation']['id'],_0xb8284f[_0x2e488d(0x176)]['id']]['forEach'](_0x33f642=>{const _0x122f7c=_0x2e488d;this[_0x122f7c(0x184)](this[_0x122f7c(0x1e6)][_0x122f7c(0x213)](_0x33f642));});}};_0x397073=_0xe3a530([_0xe3aeab(0x0,_0x32c1e6[_0x10f76b(0x1c4)](_0x6be13))],_0x397073);var _0x2518d8=Object[_0x10f76b(0x15a)],_0x4a7479=Object['getOwnPropertyDescriptor'],_0x33a19f=(_0x22c277,_0x3eefd3,_0x2bed9c)=>_0x3eefd3 in _0x22c277?_0x2518d8(_0x22c277,_0x3eefd3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bed9c}):_0x22c277[_0x3eefd3]=_0x2bed9c,_0x541a27=(_0x271344,_0xe1e15,_0x495324,_0xea3c34)=>{for(var _0x5d4a72=_0xea3c34>0x1?void 0x0:_0xea3c34?_0x4a7479(_0xe1e15,_0x495324):_0xe1e15,_0x2d00ed=_0x271344['length']-0x1,_0x449c3f;_0x2d00ed>=0x0;_0x2d00ed--)(_0x449c3f=_0x271344[_0x2d00ed])&&(_0x5d4a72=_0x449c3f(_0x5d4a72)||_0x5d4a72);return _0x5d4a72;},_0x4c2a23=(_0x840f10,_0x2ae038)=>(_0x55288b,_0x2929b3)=>_0x2ae038(_0x55288b,_0x2929b3,_0x840f10),_0x12cfbd=(_0x56d411,_0x4125ab,_0x5868bc)=>_0x33a19f(_0x56d411,typeof _0x4125ab!=_0x10f76b(0x1f9)?_0x4125ab+'':_0x4125ab,_0x5868bc);_0x16e8c4[_0x10f76b(0x217)]=class extends _0x32c1e6[_0x10f76b(0x1b9)]{constructor(_0x5ad5a5=_0x427ed3,_0x92b74a,_0x155bfd){const _0x1428e9=_0x10f76b;super(),this['_config']=_0x5ad5a5,this[_0x1428e9(0x1ab)]=_0x92b74a,this[_0x1428e9(0x1eb)]=_0x155bfd;const {..._0x3cac0d}=_0x32c1e6[_0x1428e9(0x177)]({},_0x427ed3,this[_0x1428e9(0x1bc)]);this[_0x1428e9(0x1eb)][_0x1428e9(0x178)](_0x37bf3e,_0x3cac0d);}[_0x10f76b(0x22a)](){const _0x5dd37f=_0x10f76b;_0x32c1e6[_0x5dd37f(0x1a4)](this[_0x5dd37f(0x1ab)],_0x32c1e6['mergeOverrideWithDependencies']([[_0x6be13],[_0x16e8c4['LiveShareController']],[_0x397073],[_0x16e8c4[_0x5dd37f(0x1c1)]]],this[_0x5dd37f(0x1bc)]['override'])),_0x32c1e6[_0x5dd37f(0x23a)](this[_0x5dd37f(0x1ab)],[[_0x397073]]);}[_0x10f76b(0x1a6)](){const _0x26b0e5=_0x10f76b;_0x32c1e6[_0x26b0e5(0x23a)](this[_0x26b0e5(0x1ab)],[[_0x16e8c4[_0x26b0e5(0x1c1)]]]);}},_0x12cfbd(_0x16e8c4[_0x10f76b(0x217)],'type',_0x32c1e6[_0x10f76b(0x15d)][_0x10f76b(0x15c)]),_0x12cfbd(_0x16e8c4['UniverLiveSharePlugin'],_0x10f76b(0x190),_0x10f76b(0x22d)),_0x12cfbd(_0x16e8c4[_0x10f76b(0x217)],_0x10f76b(0x173),_0x185f8f[_0x10f76b(0x203)]),_0x12cfbd(_0x16e8c4[_0x10f76b(0x217)],'version',_0x185f8f[_0x10f76b(0x233)]),_0x16e8c4['UniverLiveSharePlugin']=_0x541a27([_0x32c1e6[_0x10f76b(0x181)](_0x37f50c[_0x10f76b(0x17c)]),_0x4c2a23(0x1,_0x32c1e6[_0x10f76b(0x1c4)](_0x32c1e6[_0x10f76b(0x221)])),_0x4c2a23(0x2,_0x32c1e6[_0x10f76b(0x1f7)])],_0x16e8c4[_0x10f76b(0x217)]),_0x16e8c4[_0x10f76b(0x1f5)]=_0x205faa,_0x16e8c4[_0x10f76b(0x171)]=_0x6be13,_0x16e8c4[_0x10f76b(0x20e)]=_0x26b222,Object['defineProperty'](_0x16e8c4,Symbol[_0x10f76b(0x152)],{'value':_0x10f76b(0x1aa)});}));function _0x5540(_0x8bf83,_0x1c05e0){_0x8bf83=_0x8bf83-0x149;const _0x219efd=_0x219e();let _0x5540f7=_0x219efd[_0x8bf83];return _0x5540f7;}function _0x219e(){const _0x580fc3=['7ZPXbkM','subscribe','object','DependentOn','DisposableCollection','shouldShareOperation','disposeWithMe','createInstance','ICommandService','7686zbzvVT','find','displayName','event$','_unitID','BehaviorSubject','RxDisposable','LiveShareController','_presenter','pluginName','complete','clear','operations','_commandDisposable','params','_startFollowing','_fetchOperations','jsx','defs','FOLLOWING','64188aQYJgi','Start\x20following','defIds','rxjs/operators','rxjs','xlink:href','dispose','LIVESHARE_NEW_HOST','asObservable','registerDependencies','_startLiveShareCoordinator','onRendered','offline','use','_collabSession','Module','_injector','useDependency','LIVESHARE_OPERATION','getTypeOfUnitDisposed$','toDisposable','@univerjs/design','send','evenodd','trim','UniverUi','_status','LIVESHARE_REQUEST_HOST','init','_reporters','Plugin','getLiveShareCoordinatorSync','OFFLINE','_config','attrs','get','following','NEW_CHANGESETS','DesktopLiveShareController','InsertSheetMutation','getCurrentTypeOfUnit$','Inject','next','_startPresenting','length','requireSession','not-following','toString','stopFollowing','UniverProCollaboration','live-share-icon','map','mask','pipe','_handleNewChangeSets','5353420xaTAeF','_mountLiveShare','assign','idSuffix','stopPresenting','currentColor','useState','IUniverInstanceService','UniverSheets','current','_status$','includes','OPERATION','fill','CollaborationSessionService','SessionStatus','getMemberID','HEADER_MENU','end','operators','_liveShareService','PRESENTING','CommandType','_commandService','You\x27re\x20not\x20following\x20the\x20presenter','_configService','UniverDesign','random','@univerjs/sheets-ui','throttleTime','type','add','useObservable','live-share.config','_stopPresenting','LiveShare','presenter','IConfigService','stringify','symbol','BuiltInUIPart','UniverIcon','http://www.w3.org/2000/svg','url(#$1','_init','getValue','children','LIVESHARE_FETCH_OPERATIONS','@univerjs/sheets','name','_univerInstanceService','sheet','_handleTerminate','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','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','@univerjs/core','@univerjs-pro/collaboration-client','5hQHEVW','LiveShareCoordinator','registerInitialStateReporter','LiveShareStatus','778722KGmMAu','@univerjs-pro/collaboration','univerjs-icon\x20univerjs-icon-','replace','registerSharedOperation','path','div','parse','UniverLiveSharePlugin','has','_stopFollowing','entries','@univerjs/ui','CollaborationEvent','Disposable','Start','_entities','string','Injector','getOwnPropertyDescriptor','executeCommand','ONLINE','SetZoomRatioOperation','0\x200\x2017\x2017','Button','getTypeOfUnitAdded$','_handleOffline','onStarting','exports','IDLE','UNIVER_LIVE_SHARE_PLUGIN','tag','idle','colorChannel1','0.17.0','tryStartPresenting','version','takeUntil','univer-size-4','jsxs','LIVESHARE_TERMINATE','presenting','_uiPartsService','touchDependencies','338476jGHTTC','Fragment','reverse','getStatus','UNIVER_SHEET','1248590sWxhPI','NOT_FOLLOWING','_handleOnline','UniverSheetsUi','_collabSessionService','Present\x20this\x20document','forwardRef','univer-mb-3\x20univer-w-full\x20univer-text-sm','1em','toStringTag','useRef','dispose$','_sharedOperations','Stop\x20following','none','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','react/jsx-runtime','defineProperty','UniverProCollaborationClient','UNIVER_UNKNOWN','UniverInstanceType','sessionStatus$','data','_handleNewHost','default','memberID','You\x27re\x20presenting\x20the\x20document','424FZfQWo','values','connectInjector','LiveShareIcon','forEach','unitId','startFollowing','625023HkbygV','amd','Dropdown','delete','React','createElement','LiveShareService','Stop\x20presenting','packageName','_beIdle','status$','SetWorksheetActiveOperation','merge','setConfig','set','mutations','getInitialStates','UniverCollaborationClientPlugin','onCommandExecuted'];_0x219e=function(){return _0x580fc3;};return _0x219e();}
1
+ function _0x253d(){const _0x224ae9=['InsertSheetMutation','merge','@univerjs-pro/live-share','mergeOverrideWithDependencies','ICommandService','shouldShareOperation','useEffect','UniverSheets','clsx','_collabSession','live-share-icon','_config','_injector','assign','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-white\x20dark:!univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Plugin','throttleTime','reverse','idSuffix','getLiveShareCoordinator','init','complete','0\x200\x2017\x2017','length','path','_handleNewHost','params','React','trim','CollaborationEvent','colorChannel1','pipe','0.18.0','LIVESHARE_OPERATION','PRESENTING','7833539NdakBJ','BehaviorSubject','_mountLiveShare','SetZoomRatioOperation','connectInjector','@univerjs/sheets','503848nMfkRl','next','Fragment','UNIVER_LIVE_SHARE_PLUGIN','_init','_reporters','defIds','delete','HEADER_MENU','packageName','UniverCore','Inject','add','@univerjs/core','BuiltInUIPart','stringify','Subject','Start\x20following','_sharedOperations','includes','120WSypCS','startFollowing','SetScrollOperation','forEach','716mZEZlo','NOT_FOLLOWING','RxDisposable','createInstance','6059096JhELHG','subscribe','_univerInstanceService','prototype','xlink:href','339548nrrrUB','toDisposable','sessionStatus$','sheet','entries','UniverUi','decorate','text','LIVESHARE_TERMINATE','@univerjs/design','UniverProLiveShare','OFFLINE','createElement','useObservable','set','IUniverInstanceService','react/jsx-runtime','Disposable','version','stopPresenting','ONLINE','OPERATION','rxjs/operators','replace','CollaborationSessionService','_liveShareService','registerComponent','setConfig','44184aOAWwq','send','DependentOn','default','type','children','_stopFollowing','button','UniverProCollaborationClient','Button','status$','_status','UniverDesign','Injector','following','http://www.w3.org/2000/svg','asObservable','onCommandExecuted','mutations','getCurrentTypeOfUnit$','string','find','fill','UniverSheetsUi','touchDependencies','94743CJFJIg','current','_handleOperation','map','univer-mb-3\x20univer-w-full\x20univer-text-sm','has','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','320AohSWL','use','dispose$','_commandDisposable','UniverLiveSharePlugin','url(#$1','LIVESHARE_FETCH_OPERATIONS','_collabSessionService','You\x27are\x20offline.','getUnitId','toString','toStringTag','_fetchOperations','univer-size-4','unsubscribe','currentColor','_startPresenting','UniverInstanceType','not-following','constructor','displayName','_handleOnline','toPrimitive','_status$','LiveShareController','pluginName','Stop\x20following','dispose','LiveShareStatus','unitId','requireSession','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','values','forwardRef','@univerjs-pro/collaboration','getStatus','_handleTerminate','You\x27re\x20following\x20the\x20presenter','Module','attrs','FOLLOWING','@univerjs-pro/collaboration-client','disposeWithMe','LiveShareCoordinator','_handleNewChangeSets','registerDependencies','presenter','getMemberID','UNIVER_SHEET','defineProperty','_handleOffline','operators','operations','1em','useDependency','data','_entities','SessionStatus','end','UniverIcon','Present\x20this\x20document','svg','none','LiveShareService','stopFollowing','IConfigService','executeCommand','get','_stopPresenting','You\x27re\x20presenting\x20the\x20document','tag','_unitID','random','2382cNcjsu','_commandService','DisposableCollection','IDLE','symbol','div','jsx','mask','tryStartPresenting','takeUntil','_configService','_startFollowing','live-share.config','_startLiveShareCoordinator','parse','getOwnPropertyDescriptor','rxjs','onRendered','react','object','SetWorksheetActiveOperation','_presenter','function','jsxs','NEW_CHANGESETS','_uiPartsService','evenodd'];_0x253d=function(){return _0x224ae9;};return _0x253d();}function _0x1a80(_0x1eccf6,_0x1436d3){_0x1eccf6=_0x1eccf6-0xd3;const _0x253dbe=_0x253d();let _0x1a806f=_0x253dbe[_0x1eccf6];return _0x1a806f;}(function(_0x1f0929,_0x2666c5){const _0x414fd3=_0x1a80,_0x3f46ad=_0x1f0929();while(!![]){try{const _0x59e40a=parseInt(_0x414fd3(0x180))/0x1+-parseInt(_0x414fd3(0x1a1))/0x2+parseInt(_0x414fd3(0x13c))/0x3*(parseInt(_0x414fd3(0x198))/0x4)+-parseInt(_0x414fd3(0x194))/0x5*(-parseInt(_0x414fd3(0xd3))/0x6)+parseInt(_0x414fd3(0x17a))/0x7+-parseInt(_0x414fd3(0x19c))/0x8+parseInt(_0x414fd3(0xec))/0x9*(-parseInt(_0x414fd3(0xf3))/0xa);if(_0x59e40a===_0x2666c5)break;else _0x3f46ad['push'](_0x3f46ad['shift']());}catch(_0x1bb77d){_0x3f46ad['push'](_0x3f46ad['shift']());}}}(_0x253d,0xa5782),function(_0x1e50ed,_0x4dcc87){const _0x491cd4=_0x1a80;typeof exports=='object'&&typeof module<'u'?_0x4dcc87(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['amd']?define(['exports',_0x491cd4(0x18d),'@univerjs/ui',_0x491cd4(0x1aa),_0x491cd4(0x14e),_0x491cd4(0x115),_0x491cd4(0x11c),_0x491cd4(0x17f),_0x491cd4(0x14c),_0x491cd4(0x1b7),_0x491cd4(0x1b1),'@univerjs/sheets-ui'],_0x4dcc87):(_0x1e50ed=typeof globalThis<'u'?globalThis:_0x1e50ed||self,_0x4dcc87(_0x1e50ed[_0x491cd4(0x1ab)]={},_0x1e50ed[_0x491cd4(0x18a)],_0x1e50ed[_0x491cd4(0x1a6)],_0x1e50ed[_0x491cd4(0xdf)],_0x1e50ed[_0x491cd4(0x172)],_0x1e50ed['UniverProCollaboration'],_0x1e50ed[_0x491cd4(0xdb)],_0x1e50ed[_0x491cd4(0x15e)],_0x1e50ed['rxjs'],_0x1e50ed[_0x491cd4(0x14c)][_0x491cd4(0x126)],_0x1e50ed[_0x491cd4(0x172)],_0x1e50ed[_0x491cd4(0xea)]));}(this,function(_0x5d1679,_0xcda847,_0x5d1c2e,_0x5be239,_0x208f95,_0x1a58ee,_0x58fcf4,_0x4b9761,_0x2f4652,_0x212c65,_0x1e1fb5,_0x4b6373){const _0xa11d48=_0x1a80;Object[_0xa11d48(0x124)](_0x5d1679,Symbol[_0xa11d48(0xfe)],{'value':_0xa11d48(0x119)});function _0x26705d({ref:_0x4abf62,..._0x50b434}){const _0x519110=_0xa11d48;let {icon:_0xd0c7ff,id:_0x56d04d,className:_0xe028f1,extend:_0x133c40,..._0x4c2dcb}=_0x50b434,_0x522a7c=('univerjs-icon\x20univerjs-icon-'+_0x56d04d+'\x20'+(_0xe028f1||''))[_0x519110(0x173)](),_0x4b7e42=(0x0,_0x208f95['useRef'])('_'+_0xec9e60());return _0x9ad5d(_0xd0c7ff,''+_0x56d04d,{'defIds':_0xd0c7ff[_0x519110(0x186)],'idSuffix':_0x4b7e42[_0x519110(0xed)]},{'ref':_0x4abf62,'className':_0x522a7c,..._0x4c2dcb},_0x133c40);}function _0x9ad5d(_0x9d82f2,_0x37147d,_0xcf918d,_0x436096,_0x4d0c9f){const _0x4c2ff1=_0xa11d48;return(0x0,_0x208f95[_0x4c2ff1(0x1ad)])(_0x9d82f2[_0x4c2ff1(0x139)],{'key':_0x37147d,..._0x2ac408(_0x9d82f2,_0xcf918d,_0x4d0c9f),..._0x436096},(_0x3a919e(_0x9d82f2,_0xcf918d)['children']||[])[_0x4c2ff1(0xef)]((_0x222b40,_0x8656e0)=>_0x9ad5d(_0x222b40,_0x37147d+'-'+_0x9d82f2[_0x4c2ff1(0x139)]+'-'+_0x8656e0,_0xcf918d,void 0x0,_0x4d0c9f)));}function _0x2ac408(_0x43b2c9,_0x6af076,_0x982970){const _0x1e5194=_0xa11d48;let _0x2bfd67={..._0x43b2c9[_0x1e5194(0x11a)]};_0x982970!=null&&_0x982970[_0x1e5194(0x175)]&&_0x2bfd67['fill']===_0x1e5194(0x175)&&(_0x2bfd67[_0x1e5194(0xe9)]=_0x982970['colorChannel1']),_0x43b2c9[_0x1e5194(0x139)]==='mask'&&_0x2bfd67['id']&&(_0x2bfd67['id']+=_0x6af076[_0x1e5194(0x169)]),Object[_0x1e5194(0x1a5)](_0x2bfd67)[_0x1e5194(0x197)](([_0x2bb01d,_0x2ecef0])=>{const _0xe8e367=_0x1e5194;_0x2bb01d===_0xe8e367(0x143)&&typeof _0x2ecef0==_0xe8e367(0xe7)&&(_0x2bfd67[_0x2bb01d]=_0x2ecef0[_0xe8e367(0x1b8)](/url\(#(.*)\)/,_0xe8e367(0xf8)+_0x6af076[_0xe8e367(0x169)]+')'));});let {defIds:_0x212622}=_0x6af076;return!_0x212622||_0x212622[_0x1e5194(0x16e)]===0x0?_0x2bfd67:(_0x43b2c9['tag']===_0x1e5194(0xf4)&&_0x2bfd67[_0x1e5194(0x1a0)]&&(_0x2bfd67[_0x1e5194(0x1a0)]+=_0x6af076[_0x1e5194(0x169)]),Object[_0x1e5194(0x1a5)](_0x2bfd67)['forEach'](([_0x272925,_0x533e74])=>{const _0x54d4a8=_0x1e5194;typeof _0x533e74==_0x54d4a8(0xe7)&&(_0x2bfd67[_0x272925]=_0x533e74[_0x54d4a8(0x1b8)](/url\(#(.*)\)/,_0x54d4a8(0xf8)+_0x6af076[_0x54d4a8(0x169)]+')'));}),_0x2bfd67);}function _0x3a919e(_0x513320,_0x168b4f){const _0x3e9a01=_0xa11d48;var _0x3b04ab;let {defIds:_0x53b8df}=_0x168b4f;return!_0x53b8df||_0x53b8df[_0x3e9a01(0x16e)]===0x0?_0x513320:_0x513320[_0x3e9a01(0x139)]==='defs'&&(_0x3b04ab=_0x513320['children'])!=null&&_0x3b04ab['length']?{..._0x513320,'children':_0x513320[_0x3e9a01(0xd8)][_0x3e9a01(0xef)](_0x4ed653=>typeof _0x4ed653[_0x3e9a01(0x11a)]['id']==_0x3e9a01(0xe7)&&_0x53b8df&&_0x53b8df['includes'](_0x4ed653[_0x3e9a01(0x11a)]['id'])?{..._0x4ed653,'attrs':{..._0x4ed653['attrs'],'id':_0x4ed653[_0x3e9a01(0x11a)]['id']+_0x168b4f['idSuffix']}}:_0x4ed653)}:_0x513320;}function _0xec9e60(){const _0x2dc880=_0xa11d48;return Math[_0x2dc880(0x13b)]()[_0x2dc880(0xfd)](0x24)['substring'](0x2,0x8);}_0x26705d['displayName']=_0xa11d48(0x12e);let _0x4fc270={'tag':_0xa11d48(0x130),'attrs':{'xmlns':_0xa11d48(0xe2),'fill':_0xa11d48(0x131),'viewBox':_0xa11d48(0x16d),'width':_0xa11d48(0x128),'height':_0xa11d48(0x128)},'children':[{'tag':_0xa11d48(0x16f),'attrs':{'fill':'currentColor','d':_0xa11d48(0x112)}},{'tag':_0xa11d48(0x16f),'attrs':{'fill':_0xa11d48(0x102),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0xa11d48(0x156)}}]},_0x1b89f5=(0x0,_0x208f95[_0xa11d48(0x114)])(function(_0xb8970a,_0x2827f2){const _0x5410d5=_0xa11d48;return(0x0,_0x208f95[_0x5410d5(0x1ad)])(_0x26705d,Object[_0x5410d5(0x164)]({},_0xb8970a,{'id':_0x5410d5(0x161),'ref':_0x2827f2,'icon':_0x4fc270}));});_0x1b89f5[_0xa11d48(0x107)]='LiveShareIcon';function _0x517eaf(_0x2d1ee7){'@babel/helpers - typeof';const _0x33f705=_0xa11d48;return _0x517eaf=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x33f705(0x140)?function(_0x36189d){return typeof _0x36189d;}:function(_0x1abab1){const _0x1a0645=_0x33f705;return _0x1abab1&&typeof Symbol==_0x1a0645(0x152)&&_0x1abab1[_0x1a0645(0x106)]===Symbol&&_0x1abab1!==Symbol[_0x1a0645(0x19f)]?'symbol':typeof _0x1abab1;},_0x517eaf(_0x2d1ee7);}function _0x4a5029(_0x1aefe7,_0x28a288){const _0x1f2393=_0xa11d48;if(_0x517eaf(_0x1aefe7)!='object'||!_0x1aefe7)return _0x1aefe7;var _0x2d7c37=_0x1aefe7[Symbol[_0x1f2393(0x109)]];if(_0x2d7c37!==void 0x0){var _0x20166c=_0x2d7c37['call'](_0x1aefe7,_0x28a288||_0x1f2393(0xd6));if(_0x517eaf(_0x20166c)!=_0x1f2393(0x14f))return _0x20166c;throw TypeError(_0x1f2393(0xf2));}return(_0x28a288===_0x1f2393(0xe7)?String:Number)(_0x1aefe7);}function _0x1a7174(_0x562871){const _0x1eb8dd=_0xa11d48;var _0x4ecb25=_0x4a5029(_0x562871,_0x1eb8dd(0xe7));return _0x517eaf(_0x4ecb25)==_0x1eb8dd(0x140)?_0x4ecb25:_0x4ecb25+'';}function _0x11665a(_0x106827,_0x577203,_0x19219f){return(_0x577203=_0x1a7174(_0x577203))in _0x106827?Object['defineProperty'](_0x106827,_0x577203,{'value':_0x19219f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x106827[_0x577203]=_0x19219f,_0x106827;}var _0x25a795=class extends _0xcda847['Disposable']{constructor(..._0x2fedb2){const _0x535b11=_0xa11d48;super(..._0x2fedb2),_0x11665a(this,_0x535b11(0x192),new Set()),_0x11665a(this,'_reporters',new Set());}['registerSharedOperation'](_0x261c11){const _0x3eca09=_0xa11d48;return this[_0x3eca09(0x192)][_0x3eca09(0x18c)](_0x261c11),(0x0,_0xcda847[_0x3eca09(0x1a2)])(()=>this['_sharedOperations'][_0x3eca09(0x187)](_0x261c11));}['registerInitialStateReporter'](_0x14470c){const _0xfeaea2=_0xa11d48;return this[_0xfeaea2(0x185)]['add'](_0x14470c),(0x0,_0xcda847[_0xfeaea2(0x1a2)])(()=>this['_reporters'][_0xfeaea2(0x187)](_0x14470c));}['shouldShareOperation'](_0x9a7d9f){const _0x28bcca=_0xa11d48;return this[_0x28bcca(0x192)][_0x28bcca(0xf1)](_0x9a7d9f);}['getInitialStates'](_0xfd88d2){const _0x499479=_0xa11d48;return Array['from'](this[_0x499479(0x185)])['map'](_0x572b1d=>_0x572b1d(_0xfd88d2));}};function _0x44b13d(_0x30e5c9,_0x4178a7){return function(_0x457c6f,_0x488ef3){_0x4178a7(_0x457c6f,_0x488ef3,_0x30e5c9);};}function _0x4f71e7(_0x3c29e9,_0x5dca3d,_0x3370d8,_0x2bdb6d){const _0x253393=_0xa11d48;var _0x50ad3f=arguments[_0x253393(0x16e)],_0x375819=_0x50ad3f<0x3?_0x5dca3d:_0x2bdb6d===null?_0x2bdb6d=Object[_0x253393(0x14b)](_0x5dca3d,_0x3370d8):_0x2bdb6d,_0xbb1c2e;if(typeof Reflect==_0x253393(0x14f)&&typeof Reflect[_0x253393(0x1a7)]==_0x253393(0x152))_0x375819=Reflect['decorate'](_0x3c29e9,_0x5dca3d,_0x3370d8,_0x2bdb6d);else{for(var _0x469f48=_0x3c29e9[_0x253393(0x16e)]-0x1;_0x469f48>=0x0;_0x469f48--)(_0xbb1c2e=_0x3c29e9[_0x469f48])&&(_0x375819=(_0x50ad3f<0x3?_0xbb1c2e(_0x375819):_0x50ad3f>0x3?_0xbb1c2e(_0x5dca3d,_0x3370d8,_0x375819):_0xbb1c2e(_0x5dca3d,_0x3370d8))||_0x375819);}return _0x50ad3f>0x3&&_0x375819&&Object['defineProperty'](_0x5dca3d,_0x3370d8,_0x375819),_0x375819;}let _0x54cbb3=class extends _0xcda847[_0xa11d48(0x19a)]{constructor(_0xdad95,_0x360a86,_0x1258ee){const _0x3173ed=_0xa11d48;super(),this['_univerInstanceService']=_0xdad95,this[_0x3173ed(0x163)]=_0x360a86,this[_0x3173ed(0xfa)]=_0x1258ee,_0x11665a(this,_0x3173ed(0x12b),new Map()),this[_0x3173ed(0x184)]();}async[_0xa11d48(0x16a)](_0x1a1458){const _0x4aeae2=_0xa11d48;return this['_entities'][_0x4aeae2(0xf1)](_0x1a1458)||await this[_0x4aeae2(0x149)](_0x1a1458),this[_0x4aeae2(0x12b)][_0x4aeae2(0x136)](_0x1a1458);}['getLiveShareCoordinatorSync'](_0x332301){var _0x327bc9;return(_0x327bc9=this['_entities']['get'](_0x332301))==null?null:_0x327bc9;}[_0xa11d48(0x184)](){const _0x519def=_0xa11d48;this[_0x519def(0x19e)]['getTypeOfUnitAdded$'](_0xcda847[_0x519def(0x104)]['UNIVER_SHEET'])[_0x519def(0x176)]((0x0,_0x212c65[_0x519def(0x145)])(this['dispose$']))['subscribe'](async _0x3803a9=>{const _0xa240a8=_0x519def;let _0x3c62c6=_0x3803a9[_0xa240a8(0xfc)]();this[_0xa240a8(0x12b)]['has'](_0x3c62c6)||this[_0xa240a8(0x149)](_0x3c62c6);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0xcda847['UniverInstanceType'][_0x519def(0x123)])[_0x519def(0x176)]((0x0,_0x212c65[_0x519def(0x145)])(this['dispose$']))[_0x519def(0x19d)](_0x12390f=>{const _0x2fdccd=_0x519def;let _0x166f95=_0x12390f[_0x2fdccd(0xfc)](),_0x4da940=this['_entities'][_0x2fdccd(0x136)](_0x166f95);_0x4da940==null||_0x4da940[_0x2fdccd(0x10e)]();});}async[_0xa11d48(0x149)](_0x4b233a){const _0x23d47b=_0xa11d48;let _0x288f21=await this[_0x23d47b(0xfa)][_0x23d47b(0x111)](_0x4b233a),_0x32363c=this[_0x23d47b(0x163)][_0x23d47b(0x19b)](_0x54ce84,_0x4b233a,_0x288f21);return _0x32363c[_0x23d47b(0x16b)](),this[_0x23d47b(0x12b)]['set'](_0x4b233a,_0x32363c),_0x32363c;}};_0x54cbb3=_0x4f71e7([_0x44b13d(0x0,_0xcda847[_0xa11d48(0x1b0)]),_0x44b13d(0x1,(0x0,_0xcda847[_0xa11d48(0x18b)])(_0xcda847[_0xa11d48(0xe0)])),_0x44b13d(0x2,(0x0,_0xcda847[_0xa11d48(0x18b)])(_0x58fcf4[_0xa11d48(0x1b9)]))],_0x54cbb3);let _0x3eaf6e=function(_0x36094d){const _0x3b06fa=_0xa11d48;return _0x36094d['OFFLINE']='offline',_0x36094d['IDLE']='idle',_0x36094d[_0x3b06fa(0x11b)]=_0x3b06fa(0xe1),_0x36094d[_0x3b06fa(0x199)]=_0x3b06fa(0x105),_0x36094d['PRESENTING']='presenting',_0x36094d;}({}),_0x54ce84=class extends _0xcda847['RxDisposable']{get[_0xa11d48(0xde)](){return this['_status$']['getValue']();}constructor(_0x5dc218,_0x5a636f,_0x2fabab,_0x40b879,_0xde280c){const _0x42b7bc=_0xa11d48;super(),this['_unitID']=_0x5dc218,this[_0x42b7bc(0x160)]=_0x5a636f,this[_0x42b7bc(0x146)]=_0x2fabab,this[_0x42b7bc(0x1ba)]=_0x40b879,this[_0x42b7bc(0x13d)]=_0xde280c,_0x11665a(this,_0x42b7bc(0x10a),new _0x2f4652[(_0x42b7bc(0x17b))](_0x3eaf6e[_0x42b7bc(0x13f)])),_0x11665a(this,_0x42b7bc(0xdd),this[_0x42b7bc(0x10a)][_0x42b7bc(0xe3)]()),_0x11665a(this,_0x42b7bc(0x184),!0x1),_0x11665a(this,_0x42b7bc(0xf6),null),_0x11665a(this,_0x42b7bc(0x151),null);}[_0xa11d48(0x10e)](){const _0x1b5868=_0xa11d48;var _0x59ccb0;(_0x59ccb0=this[_0x1b5868(0xf6)])==null||_0x59ccb0['dispose'](),this[_0x1b5868(0x10a)][_0x1b5868(0x181)](_0x3eaf6e[_0x1b5868(0x13f)]),this['_status$'][_0x1b5868(0x16c)]();}[_0xa11d48(0x116)](){return this['_status'];}[_0xa11d48(0x16b)](){const _0x88a92d=_0xa11d48;this['_init']||(this['_init']=!0x0,this[_0x88a92d(0x160)][_0x88a92d(0x1a3)][_0x88a92d(0x176)]((0x0,_0x212c65[_0x88a92d(0x145)])(this[_0x88a92d(0xf5)]))['subscribe'](_0x3c0791=>{const _0x3bf197=_0x88a92d;switch(_0x3c0791){case _0x58fcf4[_0x3bf197(0x12c)][_0x3bf197(0x1ac)]:this[_0x3bf197(0x125)]();break;case _0x58fcf4[_0x3bf197(0x12c)][_0x3bf197(0x1b5)]:this['_handleOnline']();break;default:}}),this[_0x88a92d(0x160)]['event$'][_0x88a92d(0x176)]((0x0,_0x212c65['takeUntil'])(this[_0x88a92d(0xf5)]))['subscribe'](_0x3bce60=>{const _0x2d823c=_0x88a92d;let {eventID:_0x33f9c8}=_0x3bce60;switch(_0x33f9c8){case _0x1a58ee[_0x2d823c(0x174)]['LIVESHARE_NEW_HOST']:this[_0x2d823c(0x170)](_0x3bce60);break;case _0x1a58ee['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x2d823c(0xee)](_0x3bce60);break;case _0x1a58ee[_0x2d823c(0x174)][_0x2d823c(0x1a9)]:this[_0x2d823c(0x117)]();break;case _0x1a58ee['CollaborationEvent'][_0x2d823c(0x154)]:this[_0x2d823c(0x11f)](_0x3bce60);break;default:}}));}[_0xa11d48(0x144)](){const _0x4546ae=_0xa11d48;this['_collabSession'][_0x4546ae(0xd4)]({'eventID':_0x1a58ee[_0x4546ae(0x174)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x4546ae(0x160)][_0x4546ae(0x122)]()}},this[_0x4546ae(0x13a)]);}[_0xa11d48(0x1b4)](){const _0xb9b273=_0xa11d48;this[_0xb9b273(0xde)]===_0x3eaf6e[_0xb9b273(0x179)]&&(this[_0xb9b273(0x10a)][_0xb9b273(0x181)](_0x3eaf6e[_0xb9b273(0x13f)]),this[_0xb9b273(0x160)]['send']({'eventID':_0x1a58ee[_0xb9b273(0x174)][_0xb9b273(0x1a9)],'data':{'unitID':this['_unitID']}},this[_0xb9b273(0x13a)]));}['startFollowing'](){const _0x467758=_0xa11d48;this['_status']===_0x3eaf6e[_0x467758(0x199)]&&(this[_0x467758(0x10a)][_0x467758(0x181)](_0x3eaf6e[_0x467758(0x11b)]),this['_startFollowing']());}['stopFollowing'](){const _0x1e8b67=_0xa11d48;this[_0x1e8b67(0xde)]===_0x3eaf6e[_0x1e8b67(0x11b)]&&this[_0x1e8b67(0xd9)]();}['_handleNewHost'](_0x3f9d6f){const _0x1ca8f3=_0xa11d48;let {presenter:_0x416ff5}=_0x3f9d6f[_0x1ca8f3(0x12a)],_0x5f4e60=this[_0x1ca8f3(0x160)][_0x1ca8f3(0x122)]();this[_0x1ca8f3(0x151)]=_0x416ff5,_0x416ff5===_0x5f4e60?(this['_stopFollowing'](),this[_0x1ca8f3(0x103)]()):this[_0x1ca8f3(0xde)]!==_0x3eaf6e[_0x1ca8f3(0x199)]&&(this[_0x1ca8f3(0x137)](),this[_0x1ca8f3(0x147)]());}[_0xa11d48(0xff)](){const _0x2be3b2=_0xa11d48;let _0x56988d={'eventID':_0x1a58ee[_0x2be3b2(0x174)][_0x2be3b2(0xf9)]};this['_collabSession'][_0x2be3b2(0xd4)](_0x56988d,this[_0x2be3b2(0x13a)]);}['_handleTerminate'](){const _0x15f682=_0xa11d48;this[_0x15f682(0x151)]=null,this[_0x15f682(0xde)]!==_0x3eaf6e[_0x15f682(0x179)]&&this['_beIdle']();}[_0xa11d48(0x11f)](_0x165df2){const _0x17349b=_0xa11d48;if(this[_0x17349b(0xde)]===_0x3eaf6e[_0x17349b(0x11b)]&&this['_presenter']===_0x165df2[_0x17349b(0x12a)]['memberID']){let _0x4847f8=(0x0,_0x1a58ee['parseProtocolChangeset'])(_0x165df2['data'])[_0x17349b(0xe5)][_0x17349b(0x168)]()[_0x17349b(0xe8)](_0x4493cf=>_0x4493cf['id']===_0x4b9761[_0x17349b(0x157)]['id']);if(_0x4847f8){let _0x3afc21=_0x4847f8[_0x17349b(0x171)][_0x17349b(0x110)],_0x18744f=_0x4847f8[_0x17349b(0x171)][_0x17349b(0x1a4)]['id'];setTimeout(()=>{const _0x4798ba=_0x17349b;this[_0x4798ba(0x13d)]['executeCommand'](_0x4b9761[_0x4798ba(0x150)]['id'],{'unitId':_0x3afc21,'subUnitId':_0x18744f},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x39420c=_0xa11d48;this[_0x39420c(0x10a)][_0x39420c(0x181)](_0x3eaf6e['PRESENTING']);let _0xc6e3e1=new Map(),_0x52196d=this[_0x39420c(0xf6)]=new _0xcda847[(_0x39420c(0x13e))]();_0x52196d[_0x39420c(0x18c)]((0x0,_0xcda847[_0x39420c(0x1a2)])(()=>{const _0x3b29d1=_0x39420c;_0xc6e3e1[_0x3b29d1(0x197)](_0x3fef28=>_0x3fef28[_0x3b29d1(0x16c)]()),_0xc6e3e1['clear']();})),_0x52196d[_0x39420c(0x18c)](this[_0x39420c(0x13d)][_0x39420c(0xe4)](_0x460214=>{const _0x1f4739=_0x39420c;if(_0x460214[_0x1f4739(0xd7)]!==_0xcda847['CommandType'][_0x1f4739(0x1b6)]||!this[_0x1f4739(0x1ba)][_0x1f4739(0x15c)](_0x460214['id']))return;let {id:_0x38f5d8}=_0x460214,_0x4f6037;if(_0xc6e3e1[_0x1f4739(0xf1)](_0x38f5d8))_0x4f6037=_0xc6e3e1[_0x1f4739(0x136)](_0x38f5d8);else{var _0x3d09e6;_0x4f6037=new _0x2f4652[(_0x1f4739(0x190))](),_0xc6e3e1[_0x1f4739(0x1af)](_0x38f5d8,_0x4f6037),_0x4f6037[_0x1f4739(0x176)]((0x0,_0x212c65[_0x1f4739(0x167)])((_0x3d09e6=this[_0x1f4739(0x146)]['getConfig']('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x3d09e6,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1f4739(0x19d)](_0x43df9e=>{const _0xfb1eba=_0x1f4739;this[_0xfb1eba(0x160)][_0xfb1eba(0xd4)]({'eventID':_0x1a58ee[_0xfb1eba(0x174)][_0xfb1eba(0x178)],'data':{'unitID':this[_0xfb1eba(0x13a)],'operations':{[_0x43df9e['id']]:{'id':_0x43df9e['id'],'params':JSON[_0xfb1eba(0x18f)](_0x43df9e[_0xfb1eba(0x171)])}}}},this[_0xfb1eba(0x13a)]);});}_0x4f6037[_0x1f4739(0x181)](_0x460214);})),this[_0x39420c(0x1ba)]['getInitialStates'](this[_0x39420c(0x13a)])[_0x39420c(0x197)](_0xc27a9=>this[_0x39420c(0x160)][_0x39420c(0xd4)]({'eventID':_0x1a58ee[_0x39420c(0x174)][_0x39420c(0x178)],'data':{'unitID':this[_0x39420c(0x13a)],'operations':{[_0xc27a9['id']]:{'id':_0xc27a9['id'],'params':JSON[_0x39420c(0x18f)](_0xc27a9[_0x39420c(0x171)])}}}},this[_0x39420c(0x13a)]));}[_0xa11d48(0x137)](){const _0x397d6c=_0xa11d48;var _0x1df3f1;this[_0x397d6c(0x10a)][_0x397d6c(0x181)](_0x3eaf6e[_0x397d6c(0x13f)]),(_0x1df3f1=this['_commandDisposable'])==null||_0x1df3f1[_0x397d6c(0x10e)](),this[_0x397d6c(0xf6)]=null;}['_startFollowing'](){const _0x47b1d9=_0xa11d48;var _0xacb621;(_0xacb621=this[_0x47b1d9(0xf6)])==null||_0xacb621[_0x47b1d9(0x10e)](),this[_0x47b1d9(0x10a)]['next'](_0x3eaf6e[_0x47b1d9(0x11b)]);}['_beIdle'](){const _0x21616e=_0xa11d48;var _0x5a2876;this[_0x21616e(0x10a)][_0x21616e(0x181)](_0x3eaf6e[_0x21616e(0x13f)]),(_0x5a2876=this[_0x21616e(0xf6)])==null||_0x5a2876[_0x21616e(0x10e)](),this[_0x21616e(0xf6)]=null;}[_0xa11d48(0xd9)](){const _0x30ac66=_0xa11d48;var _0x20118b;this[_0x30ac66(0x10a)][_0x30ac66(0x181)](_0x3eaf6e[_0x30ac66(0x199)]),(_0x20118b=this['_commandDisposable'])==null||_0x20118b[_0x30ac66(0x10e)]();}['_handleOperation'](_0x13b665){const _0x48a3c4=_0xa11d48;if([_0x3eaf6e['PRESENTING'],_0x3eaf6e[_0x48a3c4(0x199)],_0x3eaf6e[_0x48a3c4(0x1ac)]][_0x48a3c4(0x193)](this[_0x48a3c4(0xde)])||!_0x13b665['data']['presenter']||_0x13b665[_0x48a3c4(0x12a)][_0x48a3c4(0x121)]===this['_collabSession'][_0x48a3c4(0x122)]())return;this['_status']===_0x3eaf6e[_0x48a3c4(0x13f)]&&this[_0x48a3c4(0x147)]();let _0x2115ad=_0x13b665[_0x48a3c4(0x12a)][_0x48a3c4(0x127)];Object[_0x48a3c4(0x113)](_0x2115ad)[_0x48a3c4(0x197)](_0x3dc72b=>{const _0x4cb35a=_0x48a3c4;this[_0x4cb35a(0x13d)][_0x4cb35a(0x135)](_0x3dc72b['id'],_0x3dc72b[_0x4cb35a(0x171)]?JSON[_0x4cb35a(0x14a)](_0x3dc72b[_0x4cb35a(0x171)]):null,{'fromCollab':!0x0});});}[_0xa11d48(0x125)](){const _0x4dd6df=_0xa11d48;var _0xac33a3;this[_0x4dd6df(0x10a)][_0x4dd6df(0x181)](_0x3eaf6e[_0x4dd6df(0x1ac)]),(_0xac33a3=this['_commandDisposable'])==null||_0xac33a3['dispose']();}[_0xa11d48(0x108)](){const _0x1d2ad5=_0xa11d48;this[_0x1d2ad5(0x10a)]['next'](_0x3eaf6e['IDLE']),this[_0x1d2ad5(0xff)]();}};_0x54ce84=_0x4f71e7([_0x44b13d(0x2,_0xcda847[_0xa11d48(0x134)]),_0x44b13d(0x3,(0x0,_0xcda847[_0xa11d48(0x18b)])(_0x25a795)),_0x44b13d(0x4,_0xcda847[_0xa11d48(0x15b)])],_0x54ce84);function _0x57d4dd(){const _0x4780a0=_0xa11d48;let _0x37a07a=(0x0,_0x5d1c2e[_0x4780a0(0x129)])(_0x54cbb3),_0x48ace7=(0x0,_0x5d1c2e[_0x4780a0(0x129)])(_0xcda847[_0x4780a0(0x1b0)]),_0x33471d=(0x0,_0x5d1c2e[_0x4780a0(0x1ae)])(()=>_0x48ace7[_0x4780a0(0xe6)](_0xcda847[_0x4780a0(0x104)][_0x4780a0(0x123)]),void 0x0,!0x1,[]),[_0x46ef16,_0x55073c]=(0x0,_0x208f95['useState'])(null),[_0x2484b6,_0x1735d3]=(0x0,_0x208f95['useState'])(_0x3eaf6e['IDLE']),_0x4b01ad=(0x0,_0x208f95['useRef'])(null);return(0x0,_0x208f95[_0x4780a0(0x15d)])(()=>(_0x33471d&&_0x37a07a[_0x4780a0(0x16a)](_0x33471d['getUnitId']())['then'](_0x2b1b29=>{const _0x42323a=_0x4780a0;_0x55073c(_0x2b1b29),_0x4b01ad[_0x42323a(0xed)]=_0x2b1b29[_0x42323a(0xdd)]['subscribe'](_0x2aaed9=>{_0x1735d3(_0x2aaed9);});}),()=>{const _0x17fc45=_0x4780a0;var _0x1c6500;(_0x1c6500=_0x4b01ad['current'])==null||_0x1c6500[_0x17fc45(0x101)](),_0x4b01ad[_0x17fc45(0xed)]=null;}),[_0x33471d,_0x37a07a]),_0x46ef16?(0x0,_0x1e1fb5[_0x4780a0(0x142)])(_0x5be239['Dropdown'],{'align':_0x4780a0(0x12d),'disabled':_0x2484b6===_0x3eaf6e[_0x4780a0(0x1ac)],'className':_0x4780a0(0x165),'overlay':(0x0,_0x1e1fb5[_0x4780a0(0x142)])(_0x482084,{'status':_0x2484b6,'coordinator':_0x46ef16}),'children':(0x0,_0x1e1fb5[_0x4780a0(0x142)])(_0x4780a0(0xda),{'className':(0x0,_0x5be239[_0x4780a0(0x15f)])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2484b6===_0x3eaf6e[_0x4780a0(0x1ac)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2484b6!==_0x3eaf6e[_0x4780a0(0x1ac)]}),'type':'button','children':(0x0,_0x1e1fb5[_0x4780a0(0x142)])(_0x1b89f5,{'className':_0x4780a0(0x100)})})}):null;}function _0x482084(_0x5bbfc1){const _0x41f289=_0xa11d48;let {status:_0xb982b,coordinator:_0x410a2a}=_0x5bbfc1;switch(_0xb982b){case _0x3eaf6e['IDLE']:return(0x0,_0x1e1fb5[_0x41f289(0x142)])(_0x5108c1,{'coordinator':_0x410a2a});case _0x3eaf6e[_0x41f289(0x11b)]:return(0x0,_0x1e1fb5['jsx'])(_0x13b16d,{'coordinator':_0x410a2a});case _0x3eaf6e[_0x41f289(0x199)]:return(0x0,_0x1e1fb5[_0x41f289(0x142)])(_0xc7d40c,{'coordinator':_0x410a2a});case _0x3eaf6e[_0x41f289(0x1ac)]:return(0x0,_0x1e1fb5[_0x41f289(0x142)])(_0x21e971,{});case _0x3eaf6e[_0x41f289(0x179)]:return(0x0,_0x1e1fb5[_0x41f289(0x142)])(_0x1b66c4,{'coordinator':_0x410a2a});default:return null;}}function _0x5108c1(_0x4adbbc){const _0x28d652=_0xa11d48;let {coordinator:_0x1701b9}=_0x4adbbc;return(0x0,_0x1e1fb5[_0x28d652(0x153)])(_0x1e1fb5[_0x28d652(0x182)],{'children':[(0x0,_0x1e1fb5[_0x28d652(0x142)])(_0x28d652(0x141),{'className':_0x28d652(0xf0),'children':_0x28d652(0x12f)}),(0x0,_0x1e1fb5[_0x28d652(0x142)])(_0x5be239[_0x28d652(0xdc)],{'onClick':()=>_0x1701b9['tryStartPresenting'](),'children':'Start'})]});}function _0x13b16d(_0xe06b09){const _0x4ba252=_0xa11d48;let {coordinator:_0x414afb}=_0xe06b09;return(0x0,_0x1e1fb5[_0x4ba252(0x153)])(_0x1e1fb5[_0x4ba252(0x182)],{'children':[(0x0,_0x1e1fb5[_0x4ba252(0x142)])(_0x4ba252(0x141),{'className':_0x4ba252(0xf0),'children':_0x4ba252(0x118)}),(0x0,_0x1e1fb5[_0x4ba252(0x142)])(_0x5be239[_0x4ba252(0xdc)],{'onClick':()=>_0x414afb[_0x4ba252(0x133)](),'children':_0x4ba252(0x10d)})]});}function _0xc7d40c(_0x31f0b5){const _0x1f93db=_0xa11d48;let {coordinator:_0xea8c36}=_0x31f0b5;return(0x0,_0x1e1fb5[_0x1f93db(0x153)])(_0x1e1fb5[_0x1f93db(0x182)],{'children':[(0x0,_0x1e1fb5[_0x1f93db(0x142)])(_0x1f93db(0x141),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,_0x1e1fb5[_0x1f93db(0x142)])(_0x5be239[_0x1f93db(0xdc)],{'variant':_0x1f93db(0x1a8),'onClick':()=>_0xea8c36[_0x1f93db(0x195)](),'children':_0x1f93db(0x191)})]});}function _0x1b66c4(_0x6f3500){const _0xc98d47=_0xa11d48;let {coordinator:_0x16b312}=_0x6f3500;return(0x0,_0x1e1fb5['jsxs'])(_0x1e1fb5[_0xc98d47(0x182)],{'children':[(0x0,_0x1e1fb5['jsx'])(_0xc98d47(0x141),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc98d47(0x138)}),(0x0,_0x1e1fb5['jsx'])(_0x5be239[_0xc98d47(0xdc)],{'variant':_0xc98d47(0xd6),'onClick':()=>_0x16b312['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x21e971(){const _0x225314=_0xa11d48;return(0x0,_0x1e1fb5[_0x225314(0x142)])(_0x1e1fb5[_0x225314(0x182)],{'children':_0x225314(0xfb)});}let _0x203adb=class extends _0xcda847[_0xa11d48(0x1b2)]{constructor(_0x1f26ca,_0x2b03b2){const _0x1b93bb=_0xa11d48;super(),this[_0x1b93bb(0x163)]=_0x1f26ca,this[_0x1b93bb(0x155)]=_0x2b03b2,this[_0x1b93bb(0x17c)]();}[_0xa11d48(0x17c)](){const _0x21023d=_0xa11d48;this[_0x21023d(0x11d)](this[_0x21023d(0x155)][_0x21023d(0x1bb)](_0x5d1c2e[_0x21023d(0x18e)][_0x21023d(0x188)],()=>(0x0,_0x5d1c2e[_0x21023d(0x17e)])(_0x57d4dd,this['_injector'])));}};_0x203adb=_0x4f71e7([_0x44b13d(0x0,(0x0,_0xcda847['Inject'])(_0xcda847[_0xa11d48(0xe0)])),_0x44b13d(0x1,_0x5d1c2e['IUIPartsService'])],_0x203adb);var _0x538fed=_0xa11d48(0x159),_0x1ff177=_0xa11d48(0x177);let _0xa8f50a=_0xa11d48(0x148);Symbol(_0xa8f50a);let _0x54d1af={},_0x5c9271=class extends _0xcda847[_0xa11d48(0x1b2)]{constructor(_0x322ada){const _0x4ba398=_0xa11d48;super(),this[_0x4ba398(0x1ba)]=_0x322ada,this[_0x4ba398(0x184)]();}[_0xa11d48(0x184)](){const _0xe4c863=_0xa11d48;[_0x4b6373[_0xe4c863(0x17d)]['id'],_0x4b6373[_0xe4c863(0x196)]['id'],_0x4b9761[_0xe4c863(0x150)]['id']][_0xe4c863(0x197)](_0x386c70=>{const _0x501c80=_0xe4c863;this[_0x501c80(0x11d)](this['_liveShareService']['registerSharedOperation'](_0x386c70));});}};_0x5c9271=_0x4f71e7([_0x44b13d(0x0,(0x0,_0xcda847[_0xa11d48(0x18b)])(_0x25a795))],_0x5c9271);let _0x149243=class extends _0xcda847[_0xa11d48(0x166)]{constructor(_0x12c9b0=_0x54d1af,_0x5d17b2,_0xd24b1f){const _0x5ccf15=_0xa11d48;super(),this[_0x5ccf15(0x162)]=_0x12c9b0,this[_0x5ccf15(0x163)]=_0x5d17b2,this[_0x5ccf15(0x146)]=_0xd24b1f;let {..._0x1a46ca}=(0x0,_0xcda847[_0x5ccf15(0x158)])({},_0x54d1af,this[_0x5ccf15(0x162)]);this['_configService'][_0x5ccf15(0x1bc)](_0xa8f50a,_0x1a46ca);}['onStarting'](){const _0x5cdf2a=_0xa11d48;(0x0,_0xcda847[_0x5cdf2a(0x120)])(this[_0x5cdf2a(0x163)],(0x0,_0xcda847[_0x5cdf2a(0x15a)])([[_0x25a795],[_0x54cbb3],[_0x5c9271],[_0x203adb]],this[_0x5cdf2a(0x162)]['override'])),(0x0,_0xcda847['touchDependencies'])(this['_injector'],[[_0x5c9271]]);}[_0xa11d48(0x14d)](){const _0x20a47c=_0xa11d48;(0x0,_0xcda847[_0x20a47c(0xeb)])(this[_0x20a47c(0x163)],[[_0x203adb]]);}};_0x11665a(_0x149243,'type',_0xcda847[_0xa11d48(0x104)]['UNIVER_UNKNOWN']),_0x11665a(_0x149243,_0xa11d48(0x10c),_0xa11d48(0x183)),_0x11665a(_0x149243,_0xa11d48(0x189),_0x538fed),_0x11665a(_0x149243,_0xa11d48(0x1b3),_0x1ff177),_0x149243=_0x4f71e7([(0x0,_0xcda847[_0xa11d48(0xd5)])(_0x58fcf4['UniverCollaborationClientPlugin']),_0x44b13d(0x1,(0x0,_0xcda847[_0xa11d48(0x18b)])(_0xcda847[_0xa11d48(0xe0)])),_0x44b13d(0x2,_0xcda847[_0xa11d48(0x134)])],_0x149243),Object[_0xa11d48(0x124)](_0x5d1679,'DesktopLiveShareController',{'enumerable':!0x0,'get':function(){return _0x203adb;}}),_0x5d1679['LiveShare']=_0x57d4dd,Object['defineProperty'](_0x5d1679,_0xa11d48(0x10b),{'enumerable':!0x0,'get':function(){return _0x54cbb3;}}),Object[_0xa11d48(0x124)](_0x5d1679,_0xa11d48(0x11e),{'enumerable':!0x0,'get':function(){return _0x54ce84;}}),_0x5d1679[_0xa11d48(0x132)]=_0x25a795,_0x5d1679[_0xa11d48(0x10f)]=_0x3eaf6e,Object[_0xa11d48(0x124)](_0x5d1679,_0xa11d48(0xf7),{'enumerable':!0x0,'get':function(){return _0x149243;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,13 +57,13 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.1.1",
60
- "@univerjs-pro/collaboration": "0.17.0",
61
- "@univerjs-pro/collaboration-client": "0.17.0",
62
- "@univerjs/design": "0.17.0",
63
- "@univerjs/core": "0.17.0",
64
- "@univerjs/sheets": "0.17.0",
65
- "@univerjs/ui": "0.17.0",
66
- "@univerjs/sheets-ui": "0.17.0"
60
+ "@univerjs-pro/collaboration": "0.18.0",
61
+ "@univerjs-pro/collaboration-client": "0.18.0",
62
+ "@univerjs/core": "0.18.0",
63
+ "@univerjs/sheets": "0.18.0",
64
+ "@univerjs/sheets-ui": "0.18.0",
65
+ "@univerjs/design": "0.18.0",
66
+ "@univerjs/ui": "0.18.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "postcss": "^8.5.8",
@@ -71,17 +71,18 @@
71
71
  "rxjs": "7.8.2",
72
72
  "tailwindcss": "^3.4.17",
73
73
  "typescript": "^5.9.3",
74
- "vite": "^7.3.1",
75
- "vitest": "^4.0.18",
76
- "@univerjs/protocol": "0.1.48",
77
- "@univerjs-infra/shared": "0.17.0"
74
+ "vitest": "^4.1.0",
75
+ "@univerjs-infra/shared": "0.18.0",
76
+ "@univerjs/protocol": "0.1.48"
78
77
  },
79
78
  "scripts": {
80
79
  "test": "vitest run",
81
80
  "test:watch": "vitest",
82
81
  "coverage": "vitest run --coverage",
83
82
  "typecheck": "tsc --noEmit",
84
- "build": "univer-cli build"
83
+ "build:bundle": "univer-cli build",
84
+ "build:types": "tsc -p tsconfig.node.json",
85
+ "build": "pnpm run build:bundle && pnpm run build:types"
85
86
  },
86
87
  "module": "./lib/es/index.js"
87
88
  }