@univerjs-pro/live-share 0.16.1 → 0.17.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 _0x5b7617=_0x26e4;function _0x26e4(_0x4d35f8,_0x12d70b){_0x4d35f8=_0x4d35f8-0x1d3;const _0x294969=_0x2949();let _0x26e4f8=_0x294969[_0x4d35f8];return _0x26e4f8;}(function(_0x19b405,_0x11bbbb){const _0x172d19=_0x26e4,_0x1a248a=_0x19b405();while(!![]){try{const _0x39e8be=parseInt(_0x172d19(0x1de))/0x1*(-parseInt(_0x172d19(0x1dc))/0x2)+parseInt(_0x172d19(0x1e9))/0x3*(-parseInt(_0x172d19(0x1da))/0x4)+-parseInt(_0x172d19(0x1e0))/0x5+parseInt(_0x172d19(0x1e1))/0x6+-parseInt(_0x172d19(0x1ea))/0x7+parseInt(_0x172d19(0x1d9))/0x8*(-parseInt(_0x172d19(0x1ec))/0x9)+parseInt(_0x172d19(0x1d3))/0xa;if(_0x39e8be===_0x11bbbb)break;else _0x1a248a['push'](_0x1a248a['shift']());}catch(_0x287931){_0x1a248a['push'](_0x1a248a['shift']());}}}(_0x2949,0xed190));var h=Object[_0x5b7617(0x1e5)],u=(_0x3596a4,_0x301355,_0x43ef6f)=>_0x301355 in _0x3596a4?h(_0x3596a4,_0x301355,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43ef6f}):_0x3596a4[_0x301355]=_0x43ef6f,S=(_0x4a1833,_0x17a074,_0x5a604c)=>u(_0x4a1833,typeof _0x17a074!=_0x5b7617(0x1d8)?_0x17a074+'':_0x17a074,_0x5a604c);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');function _0x2949(){const _0x413430=['LiveShareController','3NEkgBG','5171061BWaeDg','getStatus','7839QsaHTx','get','UNIVER_SHEET','LiveShareStatusEnum','No\x20active\x20workbook\x20found.','startPresenting','_liveShareController','FUniver','FEnum','stopPresenting','UniverInstanceType','stopFollowing','60369320Fgrzan','getCurrentUnitOfType','getLiveShareCoordinatorSync','startFollowing','tryStartPresenting','symbol','13560PDalQc','2944248qlomWr','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','954076nQdPmi','IUniverInstanceService','4EkkNCZ','getUnitId','6570520XmxZkr','6645636YXuujw','_initialize','_injector','extend','defineProperty','LiveShareStatus','IDLE'];_0x2949=function(){return _0x413430;};return _0x2949();}class I extends c[_0x5b7617(0x1f3)]{constructor(){const _0x5f48ea=_0x5b7617;super(...arguments),S(this,_0x5f48ea(0x1f2));}[_0x5b7617(0x1e2)](_0x29d681){const _0x371c91=_0x5b7617;this[_0x371c91(0x1f2)]=_0x29d681['get'](s[_0x371c91(0x1e8)]);}['getLiveShareStatus'](){const _0x466399=_0x5b7617;var _0x48038a;const _0x3dc2db=this[_0x466399(0x1e3)][_0x466399(0x1ed)](n[_0x466399(0x1dd)])['getCurrentUnitOfType'](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x3dc2db)throw new Error('No\x20active\x20workbook\x20found.');const _0x1fb115=_0x3dc2db[_0x466399(0x1df)](),_0x5222e3=this[_0x466399(0x1f2)][_0x466399(0x1d5)](_0x1fb115);return(_0x48038a=_0x5222e3==null?void 0x0:_0x5222e3[_0x466399(0x1eb)]())!=null?_0x48038a:s[_0x466399(0x1e6)][_0x466399(0x1e7)];}[_0x5b7617(0x1d6)](){const _0x18d677=_0x5b7617,_0x40ccef=this['_injector'][_0x18d677(0x1ed)](n[_0x18d677(0x1dd)])[_0x18d677(0x1d4)](n[_0x18d677(0x1f6)][_0x18d677(0x1ee)]);if(!_0x40ccef)throw new Error(_0x18d677(0x1f0));const _0x5dcf0a=_0x40ccef[_0x18d677(0x1df)](),_0x3b88eb=this[_0x18d677(0x1f2)]['getLiveShareCoordinatorSync'](_0x5dcf0a);if(!_0x3b88eb)throw new Error(_0x18d677(0x1db));_0x3b88eb[_0x18d677(0x1d6)]();}[_0x5b7617(0x1f7)](){const _0x156753=_0x5b7617,_0x4bfb6d=this[_0x156753(0x1e3)]['get'](n['IUniverInstanceService'])['getCurrentUnitOfType'](n[_0x156753(0x1f6)]['UNIVER_SHEET']);if(!_0x4bfb6d)throw new Error(_0x156753(0x1f0));const _0x454483=_0x4bfb6d[_0x156753(0x1df)](),_0x9060ae=this['_liveShareController'][_0x156753(0x1d5)](_0x454483);if(!_0x9060ae)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x9060ae['stopFollowing']();}[_0x5b7617(0x1f1)](){const _0x351608=_0x5b7617,_0x278e6a=this[_0x351608(0x1e3)][_0x351608(0x1ed)](n[_0x351608(0x1dd)])[_0x351608(0x1d4)](n[_0x351608(0x1f6)]['UNIVER_SHEET']);if(!_0x278e6a)throw new Error(_0x351608(0x1f0));const _0x4a4202=_0x278e6a[_0x351608(0x1df)](),_0x43e11c=this[_0x351608(0x1f2)][_0x351608(0x1d5)](_0x4a4202);if(!_0x43e11c)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x43e11c[_0x351608(0x1d7)]();}['stopPresenting'](){const _0x4fe85b=_0x5b7617,_0x4eea09=this[_0x4fe85b(0x1e3)][_0x4fe85b(0x1ed)](n['IUniverInstanceService'])[_0x4fe85b(0x1d4)](n[_0x4fe85b(0x1f6)][_0x4fe85b(0x1ee)]);if(!_0x4eea09)throw new Error(_0x4fe85b(0x1f0));const _0x5e373d=_0x4eea09[_0x4fe85b(0x1df)](),_0x1f76b4=this[_0x4fe85b(0x1f2)][_0x4fe85b(0x1d5)](_0x5e373d);if(!_0x1f76b4)throw new Error(_0x4fe85b(0x1db));_0x1f76b4[_0x4fe85b(0x1f5)]();}}c[_0x5b7617(0x1f3)][_0x5b7617(0x1e4)](I);class l extends c[_0x5b7617(0x1f4)]{get[_0x5b7617(0x1ef)](){const _0x5a1330=_0x5b7617;return s[_0x5a1330(0x1e6)];}}c[_0x5b7617(0x1f4)][_0x5b7617(0x1e4)](l);
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);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x391e2f=_0x11c4;(function(_0x2f75d4,_0x6878b9){const _0x275d62=_0x11c4,_0x3f72be=_0x2f75d4();while(!![]){try{const _0x2d35e9=parseInt(_0x275d62(0x22d))/0x1*(parseInt(_0x275d62(0x1b6))/0x2)+-parseInt(_0x275d62(0x237))/0x3*(-parseInt(_0x275d62(0x19b))/0x4)+parseInt(_0x275d62(0x1da))/0x5*(parseInt(_0x275d62(0x203))/0x6)+-parseInt(_0x275d62(0x1fb))/0x7+parseInt(_0x275d62(0x186))/0x8*(parseInt(_0x275d62(0x184))/0x9)+-parseInt(_0x275d62(0x1ec))/0xa+parseInt(_0x275d62(0x1b9))/0xb*(-parseInt(_0x275d62(0x1db))/0xc);if(_0x2d35e9===_0x6878b9)break;else _0x3f72be['push'](_0x3f72be['shift']());}catch(_0x2f0b99){_0x3f72be['push'](_0x3f72be['shift']());}}}(_0x40ca,0x2b064));var T=Object[_0x391e2f(0x1c5)],U=(_0x21d130,_0x29da5f,_0xf30c5)=>_0x29da5f in _0x21d130?T(_0x21d130,_0x29da5f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf30c5}):_0x21d130[_0x29da5f]=_0xf30c5,_=(_0x2830d6,_0x586475,_0x32d0ce)=>U(_0x2830d6,typeof _0x586475!='symbol'?_0x586475+'':_0x586475,_0x32d0ce);Object[_0x391e2f(0x1c5)](exports,Symbol[_0x391e2f(0x1cf)],{'value':_0x391e2f(0x222)});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'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x4848e1,..._0x1cca5c}){const _0x49678f=_0x391e2f,{icon:_0x4b2f77,id:_0x509e5e,className:_0xfdf8b8,extend:_0x30294b,..._0x3ce6fd}=_0x1cca5c,_0x4cfa02=(_0x49678f(0x169)+_0x509e5e+'\x20'+(_0xfdf8b8||''))[_0x49678f(0x167)](),_0x12ca6f=v['useRef']('_'+H());return j(_0x4b2f77,''+_0x509e5e,{'defIds':_0x4b2f77[_0x49678f(0x17a)],'idSuffix':_0x12ca6f[_0x49678f(0x229)]},{'ref':_0x4848e1,'className':_0x4cfa02,..._0x3ce6fd},_0x30294b);}function j(_0x5bc828,_0x3d8a8c,_0xc9a6be,_0x10bf64,_0x44d3c7){const _0x4eb857=_0x391e2f;return v['createElement'](_0x5bc828[_0x4eb857(0x236)],{'key':_0x3d8a8c,...y(_0x5bc828,_0xc9a6be,_0x44d3c7),..._0x10bf64},(F(_0x5bc828,_0xc9a6be)['children']||[])[_0x4eb857(0x171)]((_0x360c3d,_0x26dae9)=>j(_0x360c3d,_0x3d8a8c+'-'+_0x5bc828['tag']+'-'+_0x26dae9,_0xc9a6be,void 0x0,_0x44d3c7)));}function y(_0x232b64,_0x344de7,_0x3d55ee){const _0x1b6a56=_0x391e2f,_0xe720f0={..._0x232b64[_0x1b6a56(0x161)]};_0x3d55ee!=null&&_0x3d55ee[_0x1b6a56(0x212)]&&_0xe720f0[_0x1b6a56(0x1fd)]==='colorChannel1'&&(_0xe720f0[_0x1b6a56(0x1fd)]=_0x3d55ee[_0x1b6a56(0x212)]),_0x232b64['tag']===_0x1b6a56(0x1aa)&&_0xe720f0['id']&&(_0xe720f0['id']=_0xe720f0['id']+_0x344de7[_0x1b6a56(0x1c4)]),Object[_0x1b6a56(0x20b)](_0xe720f0)[_0x1b6a56(0x1eb)](([_0x1157aa,_0x3be7dd])=>{const _0x5352aa=_0x1b6a56;_0x1157aa==='mask'&&typeof _0x3be7dd==_0x5352aa(0x20d)&&(_0xe720f0[_0x1157aa]=_0x3be7dd[_0x5352aa(0x221)](/url\(#(.*)\)/,'url(#$1'+_0x344de7['idSuffix']+')'));});const {defIds:_0x7972cf}=_0x344de7;return!_0x7972cf||_0x7972cf['length']===0x0||(_0x232b64[_0x1b6a56(0x236)]===_0x1b6a56(0x18d)&&_0xe720f0['xlink:href']&&(_0xe720f0[_0x1b6a56(0x215)]=_0xe720f0[_0x1b6a56(0x215)]+_0x344de7[_0x1b6a56(0x1c4)]),Object['entries'](_0xe720f0)[_0x1b6a56(0x1eb)](([_0x1f5c40,_0x404f55])=>{const _0x3af807=_0x1b6a56;typeof _0x404f55=='string'&&(_0xe720f0[_0x1f5c40]=_0x404f55[_0x3af807(0x221)](/url\(#(.*)\)/,_0x3af807(0x1fc)+_0x344de7[_0x3af807(0x1c4)]+')'));})),_0xe720f0;}function F(_0x5eb9bc,_0x175d78){const _0x3f454f=_0x391e2f;var _0x559090;const {defIds:_0x3be92e}=_0x175d78;return!_0x3be92e||_0x3be92e[_0x3f454f(0x22a)]===0x0?_0x5eb9bc:_0x5eb9bc[_0x3f454f(0x236)]===_0x3f454f(0x1c7)&&((_0x559090=_0x5eb9bc[_0x3f454f(0x1ae)])!=null&&_0x559090[_0x3f454f(0x22a)])?{..._0x5eb9bc,'children':_0x5eb9bc['children'][_0x3f454f(0x171)](_0x27ac06=>typeof _0x27ac06[_0x3f454f(0x161)]['id']==_0x3f454f(0x20d)&&_0x3be92e&&_0x3be92e[_0x3f454f(0x1a5)](_0x27ac06[_0x3f454f(0x161)]['id'])?{..._0x27ac06,'attrs':{..._0x27ac06[_0x3f454f(0x161)],'id':_0x27ac06[_0x3f454f(0x161)]['id']+_0x175d78[_0x3f454f(0x1c4)]}}:_0x27ac06)}:_0x5eb9bc;}function H(){const _0x5b8ddc=_0x391e2f;return Math[_0x5b8ddc(0x22b)]()['toString'](0x24)[_0x5b8ddc(0x21a)](0x2,0x8);}x[_0x391e2f(0x219)]=_0x391e2f(0x1c3);const V={'tag':'svg','attrs':{'xmlns':_0x391e2f(0x1ea),'fill':_0x391e2f(0x224),'viewBox':'0\x200\x2017\x2017','width':_0x391e2f(0x1d1),'height':_0x391e2f(0x1d1)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x391e2f(0x16a)}},{'tag':_0x391e2f(0x1d2),'attrs':{'fill':_0x391e2f(0x218),'d':_0x391e2f(0x1b3),'fillRule':_0x391e2f(0x1c0),'clipRule':_0x391e2f(0x1c0)}}]},R=v['forwardRef'](function(_0x2ad740,_0x6dd58d){const _0x978795=_0x391e2f;return v[_0x978795(0x1b8)](x,Object[_0x978795(0x1c2)]({},_0x2ad740,{'id':_0x978795(0x1a7),'ref':_0x6dd58d,'icon':V}));});R[_0x391e2f(0x219)]=_0x391e2f(0x1e2);class E extends o[_0x391e2f(0x1a0)]{constructor(){const _0x5f3ab2=_0x391e2f;super(...arguments),_(this,_0x5f3ab2(0x21c),new Set()),_(this,_0x5f3ab2(0x226),new Set());}['registerSharedOperation'](_0x30b771){const _0x15a840=_0x391e2f;return this[_0x15a840(0x21c)][_0x15a840(0x1f3)](_0x30b771),o[_0x15a840(0x1de)](()=>this['_sharedOperations'][_0x15a840(0x1d4)](_0x30b771));}[_0x391e2f(0x19d)](_0x27b836){const _0x32dbb4=_0x391e2f;return this[_0x32dbb4(0x226)][_0x32dbb4(0x1f3)](_0x27b836),o['toDisposable'](()=>this[_0x32dbb4(0x226)][_0x32dbb4(0x1d4)](_0x27b836));}[_0x391e2f(0x170)](_0x7b6ab0){const _0x113f23=_0x391e2f;return this[_0x113f23(0x21c)]['has'](_0x7b6ab0);}[_0x391e2f(0x1ab)](_0x427123){const _0x44355b=_0x391e2f;return Array[_0x44355b(0x197)](this[_0x44355b(0x226)])[_0x44355b(0x171)](_0x77c9d3=>_0x77c9d3(_0x427123));}}var M=Object[_0x391e2f(0x23a)],P=(_0x2ea23f,_0x484f6d,_0x379bbb,_0x22d905)=>{const _0x5c0fa4=_0x391e2f;for(var _0x22f8ce=_0x22d905>0x1?void 0x0:_0x22d905?M(_0x484f6d,_0x379bbb):_0x484f6d,_0x2f7901=_0x2ea23f[_0x5c0fa4(0x22a)]-0x1,_0x1f6693;_0x2f7901>=0x0;_0x2f7901--)(_0x1f6693=_0x2ea23f[_0x2f7901])&&(_0x22f8ce=_0x1f6693(_0x22f8ce)||_0x22f8ce);return _0x22f8ce;},S=(_0x39b57a,_0x2e7152)=>(_0x6d86ce,_0x1d8c44)=>_0x2e7152(_0x6d86ce,_0x1d8c44,_0x39b57a);exports[_0x391e2f(0x1cc)]=class extends o[_0x391e2f(0x23b)]{constructor(_0x115a37,_0x4b2411,_0x43aed3){const _0x268a3d=_0x391e2f;super(),_(this,_0x268a3d(0x1d9),new Map()),(this[_0x268a3d(0x176)]=_0x115a37,this[_0x268a3d(0x202)]=_0x4b2411,this[_0x268a3d(0x15e)]=_0x43aed3,this[_0x268a3d(0x174)]());}async[_0x391e2f(0x23d)](_0x227c14){const _0x2eea9a=_0x391e2f;return this['_entities']['has'](_0x227c14)||await this[_0x2eea9a(0x162)](_0x227c14),this[_0x2eea9a(0x1d9)][_0x2eea9a(0x205)](_0x227c14);}[_0x391e2f(0x18b)](_0x39020c){const _0xef772b=_0x391e2f;var _0x4278ef;return(_0x4278ef=this[_0xef772b(0x1d9)][_0xef772b(0x205)](_0x39020c))!=null?_0x4278ef:null;}[_0x391e2f(0x174)](){const _0x4502a0=_0x391e2f;this[_0x4502a0(0x176)][_0x4502a0(0x217)](o[_0x4502a0(0x233)][_0x4502a0(0x228)])[_0x4502a0(0x23c)](I[_0x4502a0(0x201)](this['dispose$']))['subscribe'](async _0x218e1e=>{const _0x4caf38=_0x4502a0,_0x4ec1c3=_0x218e1e['getUnitId']();this['_entities'][_0x4caf38(0x18c)](_0x4ec1c3)||this[_0x4caf38(0x162)](_0x4ec1c3);}),this['_univerInstanceService'][_0x4502a0(0x177)](o[_0x4502a0(0x233)][_0x4502a0(0x228)])[_0x4502a0(0x23c)](I['takeUntil'](this[_0x4502a0(0x1d0)]))['subscribe'](_0x341bf4=>{const _0x1c7ec5=_0x4502a0,_0x7d7a76=_0x341bf4['getUnitId'](),_0x418a88=this[_0x1c7ec5(0x1d9)][_0x1c7ec5(0x205)](_0x7d7a76);_0x418a88==null||_0x418a88[_0x1c7ec5(0x216)]();});}async[_0x391e2f(0x162)](_0x5edbf0){const _0x3a71e3=_0x391e2f,_0x5901b0=await this['_collabSessionService'][_0x3a71e3(0x19e)](_0x5edbf0),_0x4de060=this[_0x3a71e3(0x202)][_0x3a71e3(0x1e6)](exports[_0x3a71e3(0x1e3)],_0x5edbf0,_0x5901b0);return _0x4de060['init'](),this[_0x3a71e3(0x1d9)][_0x3a71e3(0x160)](_0x5edbf0,_0x4de060),_0x4de060;}},exports[_0x391e2f(0x1cc)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x391e2f(0x1c1)](o[_0x391e2f(0x1bb)])),S(0x2,o[_0x391e2f(0x1c1)](b[_0x391e2f(0x16d)]))],exports[_0x391e2f(0x1cc)]);var u=(_0x4fd48a=>(_0x4fd48a[_0x391e2f(0x238)]='offline',_0x4fd48a[_0x391e2f(0x21e)]=_0x391e2f(0x1a2),_0x4fd48a['FOLLOWING']=_0x391e2f(0x16e),_0x4fd48a[_0x391e2f(0x193)]=_0x391e2f(0x1a8),_0x4fd48a['PRESENTING']='presenting',_0x4fd48a))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x391e2f(0x1e3)]=class extends o[_0x391e2f(0x23b)]{constructor(_0xca29bf,_0x63af86,_0x4a3530,_0x670472,_0x5e8b14){const _0x201341=_0x391e2f;super(),_(this,_0x201341(0x168),new O[(_0x201341(0x1ff))](_0x201341(0x1a2))),_(this,_0x201341(0x188),this['_status$'][_0x201341(0x1ed)]()),_(this,_0x201341(0x174),!0x1),_(this,_0x201341(0x1b2),null),_(this,_0x201341(0x1f7),null),(this['_unitID']=_0xca29bf,this['_collabSession']=_0x63af86,this[_0x201341(0x1dd)]=_0x4a3530,this[_0x201341(0x165)]=_0x670472,this['_commandService']=_0x5e8b14);}get['_status'](){const _0x293e39=_0x391e2f;return this[_0x293e39(0x168)][_0x293e39(0x1ef)]();}[_0x391e2f(0x216)](){const _0x43ebf9=_0x391e2f;var _0x4b50b6;(_0x4b50b6=this[_0x43ebf9(0x1b2)])==null||_0x4b50b6[_0x43ebf9(0x216)](),this[_0x43ebf9(0x168)]['next'](_0x43ebf9(0x1a2)),this[_0x43ebf9(0x168)]['complete']();}[_0x391e2f(0x19a)](){const _0x806dab=_0x391e2f;return this[_0x806dab(0x163)];}[_0x391e2f(0x17d)](){const _0x35d832=_0x391e2f;this['_init']||(this[_0x35d832(0x174)]=!0x0,this[_0x35d832(0x182)][_0x35d832(0x239)]['pipe'](I['takeUntil'](this['dispose$']))[_0x35d832(0x1b7)](_0x5b26ab=>{const _0x9b9f43=_0x35d832;switch(_0x5b26ab){case b[_0x9b9f43(0x1ee)]['OFFLINE']:this[_0x9b9f43(0x210)]();break;case b[_0x9b9f43(0x1ee)][_0x9b9f43(0x1cd)]:this[_0x9b9f43(0x1df)]();break;}}),this[_0x35d832(0x182)]['event$'][_0x35d832(0x23c)](I[_0x35d832(0x201)](this['dispose$']))[_0x35d832(0x1b7)](_0x417296=>{const _0x251cab=_0x35d832,{eventID:_0x5dbd84}=_0x417296;switch(_0x5dbd84){case d[_0x251cab(0x1b0)][_0x251cab(0x213)]:this[_0x251cab(0x1be)](_0x417296);break;case d[_0x251cab(0x1b0)][_0x251cab(0x196)]:this[_0x251cab(0x1f8)](_0x417296);break;case d[_0x251cab(0x1b0)][_0x251cab(0x1ba)]:this['_handleTerminate']();break;case d[_0x251cab(0x1b0)][_0x251cab(0x16f)]:this['_handleNewChangeSets'](_0x417296);break;}}));}[_0x391e2f(0x181)](){const _0x228340=_0x391e2f;this[_0x228340(0x182)][_0x228340(0x190)]({'eventID':d[_0x228340(0x1b0)][_0x228340(0x1d6)],'data':{'unitID':this[_0x228340(0x208)],'userID':this[_0x228340(0x182)][_0x228340(0x187)]()}},this['_unitID']);}['stopPresenting'](){const _0x50ee32=_0x391e2f;this[_0x50ee32(0x163)]===_0x50ee32(0x1a6)&&(this[_0x50ee32(0x168)][_0x50ee32(0x194)](_0x50ee32(0x1a2)),this[_0x50ee32(0x182)][_0x50ee32(0x190)]({'eventID':d[_0x50ee32(0x1b0)][_0x50ee32(0x1ba)],'data':{'unitID':this[_0x50ee32(0x208)]}},this[_0x50ee32(0x208)]));}[_0x391e2f(0x21f)](){const _0xab5ed6=_0x391e2f;this[_0xab5ed6(0x163)]==='not-following'&&(this[_0xab5ed6(0x168)]['next'](_0xab5ed6(0x16e)),this[_0xab5ed6(0x189)]());}['stopFollowing'](){const _0x477e2a=_0x391e2f;this[_0x477e2a(0x163)]===_0x477e2a(0x16e)&&this[_0x477e2a(0x191)]();}['_handleNewHost'](_0x5a5870){const _0xd5fc5e=_0x391e2f,{presenter:_0x55377a}=_0x5a5870['data'],_0x51524a=this[_0xd5fc5e(0x182)][_0xd5fc5e(0x187)]();this[_0xd5fc5e(0x1f7)]=_0x55377a,_0x55377a===_0x51524a?(this[_0xd5fc5e(0x191)](),this[_0xd5fc5e(0x1a1)]()):this[_0xd5fc5e(0x163)]!=='not-following'&&(this[_0xd5fc5e(0x180)](),this[_0xd5fc5e(0x189)]());}['_fetchOperations'](){const _0x31de84=_0x391e2f,_0x16c60f={'eventID':d[_0x31de84(0x1b0)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x31de84(0x182)][_0x31de84(0x190)](_0x16c60f,this[_0x31de84(0x208)]);}['_handleTerminate'](){const _0x5bb6dc=_0x391e2f;this['_presenter']=null,this[_0x5bb6dc(0x163)]!==_0x5bb6dc(0x1a6)&&this['_beIdle']();}[_0x391e2f(0x1f9)](_0x392a30){const _0x3f62e5=_0x391e2f;if(this[_0x3f62e5(0x163)]===_0x3f62e5(0x16e)&&this[_0x3f62e5(0x1f7)]===_0x392a30[_0x3f62e5(0x17c)][_0x3f62e5(0x1d7)]){const _0x538fd6=d[_0x3f62e5(0x166)](_0x392a30['data'])[_0x3f62e5(0x1c8)]['reverse']()[_0x3f62e5(0x1fa)](_0x3122a6=>_0x3122a6['id']===C[_0x3f62e5(0x1ca)]['id']);if(_0x538fd6){const _0x26cc3f=_0x538fd6['params'][_0x3f62e5(0x185)],_0x21ac3f=_0x538fd6[_0x3f62e5(0x223)][_0x3f62e5(0x178)]['id'];setTimeout(()=>{const _0x4237af=_0x3f62e5;this[_0x4237af(0x23e)][_0x4237af(0x1e4)](C[_0x4237af(0x225)]['id'],{'unitId':_0x26cc3f,'subUnitId':_0x21ac3f},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x58530e=_0x391e2f;this['_status$'][_0x58530e(0x194)]('presenting');const _0x243789=new Map(),_0x77962e=this[_0x58530e(0x1b2)]=new o['DisposableCollection']();_0x77962e[_0x58530e(0x1f3)](o[_0x58530e(0x1de)](()=>{const _0x187a64=_0x58530e;_0x243789[_0x187a64(0x1eb)](_0x4d5106=>_0x4d5106[_0x187a64(0x1f4)]()),_0x243789[_0x187a64(0x220)]();})),_0x77962e['add'](this['_commandService']['onCommandExecuted'](_0x541a91=>{const _0x23a3e2=_0x58530e;var _0x2e627d;if(_0x541a91[_0x23a3e2(0x195)]!==o[_0x23a3e2(0x231)][_0x23a3e2(0x1f1)]||!this[_0x23a3e2(0x165)][_0x23a3e2(0x170)](_0x541a91['id']))return;const {id:_0x139200}=_0x541a91;let _0x5dcb5e;_0x243789['has'](_0x139200)?_0x5dcb5e=_0x243789['get'](_0x139200):(_0x5dcb5e=new O[(_0x23a3e2(0x22c))](),_0x243789[_0x23a3e2(0x160)](_0x139200,_0x5dcb5e),_0x5dcb5e['pipe'](I[_0x23a3e2(0x1b4)]((_0x2e627d=this['_configService'][_0x23a3e2(0x22f)](k))!=null?_0x2e627d:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x23a3e2(0x1b7)](_0x3a08dd=>{const _0x4acadc=_0x23a3e2;this[_0x4acadc(0x182)]['send']({'eventID':d['CollaborationEvent'][_0x4acadc(0x196)],'data':{'unitID':this[_0x4acadc(0x208)],'operations':{[_0x3a08dd['id']]:{'id':_0x3a08dd['id'],'params':JSON[_0x4acadc(0x211)](_0x3a08dd[_0x4acadc(0x223)])}}}},this[_0x4acadc(0x208)]);})),_0x5dcb5e[_0x23a3e2(0x194)](_0x541a91);})),this[_0x58530e(0x165)][_0x58530e(0x1ab)](this[_0x58530e(0x208)])['forEach'](_0x53331c=>this[_0x58530e(0x182)][_0x58530e(0x190)]({'eventID':d[_0x58530e(0x1b0)][_0x58530e(0x196)],'data':{'unitID':this[_0x58530e(0x208)],'operations':{[_0x53331c['id']]:{'id':_0x53331c['id'],'params':JSON[_0x58530e(0x211)](_0x53331c[_0x58530e(0x223)])}}}},this[_0x58530e(0x208)]));}[_0x391e2f(0x180)](){const _0x1a29bb=_0x391e2f;var _0x3ce555;this[_0x1a29bb(0x168)][_0x1a29bb(0x194)]('idle'),(_0x3ce555=this[_0x1a29bb(0x1b2)])==null||_0x3ce555['dispose'](),this[_0x1a29bb(0x1b2)]=null;}[_0x391e2f(0x189)](){const _0x25dd55=_0x391e2f;var _0x32541e;(_0x32541e=this['_commandDisposable'])==null||_0x32541e[_0x25dd55(0x216)](),this[_0x25dd55(0x168)][_0x25dd55(0x194)](_0x25dd55(0x16e));}[_0x391e2f(0x207)](){const _0x34f3b0=_0x391e2f;var _0xf7cfc1;this[_0x34f3b0(0x168)][_0x34f3b0(0x194)](_0x34f3b0(0x1a2)),(_0xf7cfc1=this['_commandDisposable'])==null||_0xf7cfc1[_0x34f3b0(0x216)](),this[_0x34f3b0(0x1b2)]=null;}[_0x391e2f(0x191)](){const _0x79b2bd=_0x391e2f;var _0x59996f;this['_status$'][_0x79b2bd(0x194)](_0x79b2bd(0x1a8)),(_0x59996f=this[_0x79b2bd(0x1b2)])==null||_0x59996f[_0x79b2bd(0x216)]();}['_handleOperation'](_0xf3845a){const _0x5e191b=_0x391e2f;if([_0x5e191b(0x1a6),_0x5e191b(0x1a8),_0x5e191b(0x214)][_0x5e191b(0x1a5)](this[_0x5e191b(0x163)])||!_0xf3845a[_0x5e191b(0x17c)][_0x5e191b(0x1f5)]||_0xf3845a['data']['presenter']===this[_0x5e191b(0x182)]['getMemberID']())return;this[_0x5e191b(0x163)]===_0x5e191b(0x1a2)&&this[_0x5e191b(0x189)]();const _0x5e0a47=_0xf3845a['data'][_0x5e191b(0x17b)];Object[_0x5e191b(0x230)](_0x5e0a47)[_0x5e191b(0x1eb)](_0x43524d=>{const _0x35b282=_0x5e191b;this[_0x35b282(0x23e)][_0x35b282(0x1e4)](_0x43524d['id'],_0x43524d[_0x35b282(0x223)]?JSON[_0x35b282(0x21b)](_0x43524d[_0x35b282(0x223)]):null,{'fromCollab':!0x0});});}[_0x391e2f(0x210)](){const _0x3eb596=_0x391e2f;var _0x5af6c6;this[_0x3eb596(0x168)]['next'](_0x3eb596(0x214)),(_0x5af6c6=this[_0x3eb596(0x1b2)])==null||_0x5af6c6[_0x3eb596(0x216)]();}[_0x391e2f(0x1df)](){const _0xfb4826=_0x391e2f;this[_0xfb4826(0x168)]['next'](_0xfb4826(0x1a2)),this[_0xfb4826(0x17f)]();}},exports[_0x391e2f(0x1e3)]=P([S(0x2,o['IConfigService']),S(0x3,o[_0x391e2f(0x1c1)](E)),S(0x4,o[_0x391e2f(0x192)])],exports[_0x391e2f(0x1e3)]);function $(){const _0x422c5a=_0x391e2f,_0x9e98c=p['useDependency'](exports['LiveShareController']),_0x27b713=p[_0x422c5a(0x1e1)](o[_0x422c5a(0x1ad)]),_0x5201c0=p[_0x422c5a(0x175)](()=>_0x27b713[_0x422c5a(0x17e)](o[_0x422c5a(0x233)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3c5118,_0x1d0b53]=v[_0x422c5a(0x1bf)](null),[_0x511e27,_0xeef1dc]=v['useState'](u[_0x422c5a(0x21e)]),_0x426de4=v[_0x422c5a(0x1d5)](null);return v['useEffect'](()=>(_0x5201c0&&_0x9e98c['getLiveShareCoordinator'](_0x5201c0[_0x422c5a(0x198)]())[_0x422c5a(0x204)](_0x59dc4f=>{const _0x11b7b8=_0x422c5a;_0x1d0b53(_0x59dc4f),_0x426de4['current']=_0x59dc4f[_0x11b7b8(0x188)]['subscribe'](_0x22640a=>{_0xeef1dc(_0x22640a);});}),()=>{const _0x5091d2=_0x422c5a;var _0x5a9763;(_0x5a9763=_0x426de4['current'])==null||_0x5a9763[_0x5091d2(0x234)](),_0x426de4['current']=null;}),[_0x5201c0,_0x9e98c]),_0x3c5118?l[_0x422c5a(0x1af)](f[_0x422c5a(0x1e0)],{'align':_0x422c5a(0x1f6),'disabled':_0x511e27===u[_0x422c5a(0x238)],'className':_0x422c5a(0x19c),'overlay':l[_0x422c5a(0x1af)](W,{'status':_0x511e27,'coordinator':_0x3c5118}),'children':l[_0x422c5a(0x1af)](_0x422c5a(0x206),{'className':f['clsx'](_0x422c5a(0x172),{'univer-cursor-not-allowed':_0x511e27===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x511e27!==u[_0x422c5a(0x238)]}),'type':'button','children':l[_0x422c5a(0x1af)](R,{'className':'univer-size-4'})})}):null;}function W(_0x368a39){const _0x4b02b8=_0x391e2f,{status:_0x1da33,coordinator:_0x1cb29b}=_0x368a39;switch(_0x1da33){case u['IDLE']:return l[_0x4b02b8(0x1af)](G,{'coordinator':_0x1cb29b});case u[_0x4b02b8(0x164)]:return l[_0x4b02b8(0x1af)](B,{'coordinator':_0x1cb29b});case u[_0x4b02b8(0x193)]:return l[_0x4b02b8(0x1af)](Y,{'coordinator':_0x1cb29b});case u[_0x4b02b8(0x238)]:return l['jsx'](J,{});case u[_0x4b02b8(0x1f2)]:return l[_0x4b02b8(0x1af)](Z,{'coordinator':_0x1cb29b});default:return null;}}function G(_0x477fab){const _0x323b63=_0x391e2f,{coordinator:_0x3d2b04}=_0x477fab;return l['jsxs'](l[_0x323b63(0x18a)],{'children':[l[_0x323b63(0x1af)]('div',{'className':_0x323b63(0x1dc),'children':_0x323b63(0x1bd)}),l[_0x323b63(0x1af)](f[_0x323b63(0x1b1)],{'onClick':()=>_0x3d2b04[_0x323b63(0x181)](),'children':'Start'})]});}function B(_0xcf253f){const _0x396d28=_0x391e2f,{coordinator:_0x5a4a35}=_0xcf253f;return l[_0x396d28(0x1c9)](l[_0x396d28(0x18a)],{'children':[l[_0x396d28(0x1af)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x396d28(0x18e)}),l[_0x396d28(0x1af)](f[_0x396d28(0x1b1)],{'onClick':()=>_0x5a4a35['stopFollowing'](),'children':_0x396d28(0x1e5)})]});}function Y(_0x3c5382){const _0x42c857=_0x391e2f,{coordinator:_0x449809}=_0x3c5382;return l['jsxs'](l[_0x42c857(0x18a)],{'children':[l['jsx'](_0x42c857(0x235),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x42c857(0x16c)}),l[_0x42c857(0x1af)](f['Button'],{'variant':_0x42c857(0x199),'onClick':()=>_0x449809['startFollowing'](),'children':_0x42c857(0x1bc)})]});}function Z(_0x577143){const _0x24ae97=_0x391e2f,{coordinator:_0x2c9804}=_0x577143;return l[_0x24ae97(0x1c9)](l[_0x24ae97(0x18a)],{'children':[l[_0x24ae97(0x1af)](_0x24ae97(0x235),{'className':_0x24ae97(0x1dc),'children':_0x24ae97(0x1e7)}),l[_0x24ae97(0x1af)](f[_0x24ae97(0x1b1)],{'variant':'default','onClick':()=>_0x2c9804[_0x24ae97(0x200)](),'children':_0x24ae97(0x1c6)})]});}function J(){const _0x1ff830=_0x391e2f;return l[_0x1ff830(0x1af)](l['Fragment'],{'children':_0x1ff830(0x179)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x13c448,_0x16c0db,_0x4ea4dd,_0x22440b)=>{for(var _0x3d7656=_0x22440b>0x1?void 0x0:_0x22440b?K(_0x16c0db,_0x4ea4dd):_0x16c0db,_0x121bef=_0x13c448['length']-0x1,_0x270746;_0x121bef>=0x0;_0x121bef--)(_0x270746=_0x13c448[_0x121bef])&&(_0x3d7656=_0x270746(_0x3d7656)||_0x3d7656);return _0x3d7656;},L=(_0x343fcf,_0x453083)=>(_0x470441,_0x5245e6)=>_0x453083(_0x470441,_0x5245e6,_0x343fcf);exports[_0x391e2f(0x1a4)]=class extends o[_0x391e2f(0x1a0)]{constructor(_0x2bdc3b,_0x1e3f97){const _0x11b2ee=_0x391e2f;super(),this['_injector']=_0x2bdc3b,this['_uiPartsService']=_0x1e3f97,this[_0x11b2ee(0x209)]();}[_0x391e2f(0x209)](){const _0x2e2da6=_0x391e2f;this[_0x2e2da6(0x1b5)](this[_0x2e2da6(0x232)][_0x2e2da6(0x1d3)](p[_0x2e2da6(0x173)][_0x2e2da6(0x19f)],()=>p[_0x2e2da6(0x1f0)]($,this['_injector'])));}},exports[_0x391e2f(0x1a4)]=z([L(0x0,o['Inject'](o[_0x391e2f(0x1bb)])),L(0x1,p['IUIPartsService'])],exports[_0x391e2f(0x1a4)]);function _0x40ca(){const _0x5e80cf=['unsubscribe','div','tag','12CRyuYg','OFFLINE','sessionStatus$','getOwnPropertyDescriptor','RxDisposable','pipe','getLiveShareCoordinator','_commandService','_collabSessionService','UNIVER_LIVE_SHARE_PLUGIN','set','attrs','_startLiveShareCoordinator','_status','FOLLOWING','_liveShareService','parseProtocolChangeset','trim','_status$','univerjs-icon\x20univerjs-icon-','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','SetScrollOperation','You\x27re\x20not\x20following\x20the\x20presenter','CollaborationSessionService','following','NEW_CHANGESETS','shouldShareOperation','map','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','BuiltInUIPart','_init','useObservable','_univerInstanceService','getTypeOfUnitDisposed$','sheet','You\x27are\x20offline.','defIds','operations','data','init','getCurrentTypeOfUnit$','_fetchOperations','_stopPresenting','tryStartPresenting','_collabSession','live-share.config','9846HnrLlp','unitId','928fgkZpp','getMemberID','status$','_startFollowing','Fragment','getLiveShareCoordinatorSync','has','use','You\x27re\x20following\x20the\x20presenter','symbol','send','_stopFollowing','ICommandService','NOT_FOLLOWING','next','type','LIVESHARE_OPERATION','from','getUnitId','text','getStatus','132092nvXDGP','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','registerInitialStateReporter','requireSession','HEADER_MENU','Disposable','_startPresenting','idle','merge','DesktopLiveShareController','includes','presenting','live-share-icon','not-following','mergeOverrideWithDependencies','mask','getInitialStates','SetZoomRatioOperation','IUniverInstanceService','children','jsx','CollaborationEvent','Button','_commandDisposable','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','throttleTime','disposeWithMe','170ShrQKs','subscribe','createElement','2083147dypveO','LIVESHARE_TERMINATE','Injector','Start\x20following','Present\x20this\x20document','_handleNewHost','useState','evenodd','Inject','assign','UniverIcon','idSuffix','defineProperty','Stop\x20presenting','defs','mutations','jsxs','InsertSheetMutation','UniverLiveSharePlugin','LiveShareController','ONLINE','onStarting','toStringTag','dispose$','1em','path','registerComponent','delete','useRef','LIVESHARE_REQUEST_HOST','memberID','touchDependencies','_entities','150ezgViB','12lCZZij','univer-mb-3\x20univer-w-full\x20univer-text-sm','_configService','toDisposable','_handleOnline','Dropdown','useDependency','LiveShareIcon','LiveShareCoordinator','executeCommand','Stop\x20following','createInstance','You\x27re\x20presenting\x20the\x20document','override','IConfigService','http://www.w3.org/2000/svg','forEach','1478400aHwueD','asObservable','SessionStatus','getValue','connectInjector','OPERATION','PRESENTING','add','complete','presenter','end','_presenter','_handleOperation','_handleNewChangeSets','find','963242AnNzTm','url(#$1','fill','setConfig','BehaviorSubject','stopPresenting','takeUntil','_injector','9306DfCfZY','then','get','button','_beIdle','_unitID','_mountLiveShare','pluginName','entries','UNIVER_UNKNOWN','string','Plugin','onRendered','_handleOffline','stringify','colorChannel1','LIVESHARE_NEW_HOST','offline','xlink:href','dispose','getTypeOfUnitAdded$','currentColor','displayName','substring','parse','_sharedOperations','UniverCollaborationClientPlugin','IDLE','startFollowing','clear','replace','Module','params','none','SetWorksheetActiveOperation','_reporters','_config','UNIVER_SHEET','current','length','random','Subject','4065HbCrRC','LiveShare','getConfig','values','CommandType','_uiPartsService','UniverInstanceType'];_0x40ca=function(){return _0x5e80cf;};return _0x40ca();}const Q=_0x391e2f(0x183),w={};var X=Object[_0x391e2f(0x23a)],ee=(_0x616786,_0x4e64c0,_0x2ab577,_0x547959)=>{for(var _0x23ff70=_0x547959>0x1?void 0x0:_0x547959?X(_0x4e64c0,_0x2ab577):_0x4e64c0,_0x2e719e=_0x616786['length']-0x1,_0x201caf;_0x2e719e>=0x0;_0x2e719e--)(_0x201caf=_0x616786[_0x2e719e])&&(_0x23ff70=_0x201caf(_0x23ff70)||_0x23ff70);return _0x23ff70;},te=(_0x52cd75,_0x2ec3c7)=>(_0x299a20,_0x4c59f9)=>_0x2ec3c7(_0x299a20,_0x4c59f9,_0x52cd75);function _0x11c4(_0x2186d1,_0x5bae98){_0x2186d1=_0x2186d1-0x15e;const _0x40ca65=_0x40ca();let _0x11c43b=_0x40ca65[_0x2186d1];return _0x11c43b;}let m=class extends o[_0x391e2f(0x1a0)]{constructor(_0x64bf0a){const _0x47ce21=_0x391e2f;super(),this[_0x47ce21(0x165)]=_0x64bf0a,this['_init']();}[_0x391e2f(0x174)](){const _0x7cc0e9=_0x391e2f;[D[_0x7cc0e9(0x1ac)]['id'],D[_0x7cc0e9(0x16b)]['id'],C[_0x7cc0e9(0x225)]['id']][_0x7cc0e9(0x1eb)](_0x5194e2=>{const _0x1aba26=_0x7cc0e9;this[_0x1aba26(0x1b5)](this[_0x1aba26(0x165)]['registerSharedOperation'](_0x5194e2));});}};m=ee([te(0x0,o[_0x391e2f(0x1c1)](E))],m);var ie=Object[_0x391e2f(0x1c5)],se=Object[_0x391e2f(0x23a)],ne=(_0x1fa42a,_0x2fe900,_0x163400)=>_0x2fe900 in _0x1fa42a?ie(_0x1fa42a,_0x2fe900,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x163400}):_0x1fa42a[_0x2fe900]=_0x163400,re=(_0x4e0ffd,_0x13906d,_0xe13c88,_0x40cc12)=>{const _0x218da2=_0x391e2f;for(var _0x300716=_0x40cc12>0x1?void 0x0:_0x40cc12?se(_0x13906d,_0xe13c88):_0x13906d,_0x3c2153=_0x4e0ffd[_0x218da2(0x22a)]-0x1,_0x35f1f1;_0x3c2153>=0x0;_0x3c2153--)(_0x35f1f1=_0x4e0ffd[_0x3c2153])&&(_0x300716=_0x35f1f1(_0x300716)||_0x300716);return _0x300716;},N=(_0x61a2dc,_0x4028c9)=>(_0x198cbe,_0x11340e)=>_0x4028c9(_0x198cbe,_0x11340e,_0x61a2dc),A=(_0x328320,_0x40f259,_0xd212f7)=>ne(_0x328320,typeof _0x40f259!=_0x391e2f(0x18f)?_0x40f259+'':_0x40f259,_0xd212f7);const oe=_0x391e2f(0x15f);exports[_0x391e2f(0x1cb)]=class extends o[_0x391e2f(0x20e)]{constructor(_0x562a94=w,_0x147b29,_0x5b1b5a){const _0x47b0e5=_0x391e2f;super(),this[_0x47b0e5(0x227)]=_0x562a94,this[_0x47b0e5(0x202)]=_0x147b29,this['_configService']=_0x5b1b5a;const {..._0x5c1f71}=o[_0x47b0e5(0x1a3)]({},w,this[_0x47b0e5(0x227)]);this[_0x47b0e5(0x1dd)][_0x47b0e5(0x1fe)](Q,_0x5c1f71);}[_0x391e2f(0x1ce)](){const _0x59a1a0=_0x391e2f;o['registerDependencies'](this[_0x59a1a0(0x202)],o[_0x59a1a0(0x1a9)]([[E],[exports[_0x59a1a0(0x1cc)]],[m],[exports[_0x59a1a0(0x1a4)]]],this[_0x59a1a0(0x227)][_0x59a1a0(0x1e8)])),o[_0x59a1a0(0x1d8)](this[_0x59a1a0(0x202)],[[m]]);}[_0x391e2f(0x20f)](){const _0x4095e2=_0x391e2f;o['touchDependencies'](this[_0x4095e2(0x202)],[[exports[_0x4095e2(0x1a4)]]]);}},A(exports[_0x391e2f(0x1cb)],_0x391e2f(0x195),o[_0x391e2f(0x233)][_0x391e2f(0x20c)]),A(exports['UniverLiveSharePlugin'],_0x391e2f(0x20a),oe),exports[_0x391e2f(0x1cb)]=re([o['DependentOn'](b[_0x391e2f(0x21d)]),N(0x1,o['Inject'](o[_0x391e2f(0x1bb)])),N(0x2,o[_0x391e2f(0x1e9)])],exports[_0x391e2f(0x1cb)]),exports[_0x391e2f(0x22e)]=$,exports['LiveShareService']=E,exports['LiveShareStatus']=u;
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();}
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0xf0c268=_0x3d3f;(function(_0x46d303,_0x1d0a1d){const _0xbdf7cd=_0x3d3f,_0x3a8402=_0x46d303();while(!![]){try{const _0x38a504=parseInt(_0xbdf7cd(0x141))/0x1*(parseInt(_0xbdf7cd(0x13d))/0x2)+-parseInt(_0xbdf7cd(0x12a))/0x3+parseInt(_0xbdf7cd(0x137))/0x4+parseInt(_0xbdf7cd(0x13a))/0x5*(parseInt(_0xbdf7cd(0x133))/0x6)+-parseInt(_0xbdf7cd(0x131))/0x7*(-parseInt(_0xbdf7cd(0x134))/0x8)+-parseInt(_0xbdf7cd(0x146))/0x9*(-parseInt(_0xbdf7cd(0x13b))/0xa)+-parseInt(_0xbdf7cd(0x13c))/0xb;if(_0x38a504===_0x1d0a1d)break;else _0x3a8402['push'](_0x3a8402['shift']());}catch(_0x4d809d){_0x3a8402['push'](_0x3a8402['shift']());}}}(_0x1aea,0x82d01));var l=Object[_0xf0c268(0x12e)],w=(_0xf92bb9,_0x487c97,_0x3591fc)=>_0x487c97 in _0xf92bb9?l(_0xf92bb9,_0x487c97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3591fc}):_0xf92bb9[_0x487c97]=_0x3591fc,v=(_0xccafc3,_0xa88d61,_0x42ed66)=>w(_0xccafc3,typeof _0xa88d61!='symbol'?_0xa88d61+'':_0xa88d61,_0x42ed66);import{LiveShareController as _0x2f1eee,LiveShareStatus as _0xf0edf1}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x3a818b,UniverInstanceType as _0xb9f39e}from'@univerjs/core';import{FUniver as _0x1baacb,FEnum as _0x4a0172}from'@univerjs/core/facade';class g extends _0x1baacb{constructor(){const _0x32934c=_0xf0c268;super(...arguments),v(this,_0x32934c(0x143));}[_0xf0c268(0x145)](_0x20830e){const _0x36f891=_0xf0c268;this[_0x36f891(0x143)]=_0x20830e[_0x36f891(0x129)](_0x2f1eee);}[_0xf0c268(0x136)](){const _0x3f68d9=_0xf0c268;var _0x5f5d6a;const _0x5d1b30=this[_0x3f68d9(0x138)][_0x3f68d9(0x129)](_0x3a818b)[_0x3f68d9(0x130)](_0xb9f39e['UNIVER_SHEET']);if(!_0x5d1b30)throw new Error(_0x3f68d9(0x12b));const _0x1a9e44=_0x5d1b30['getUnitId'](),_0x378218=this[_0x3f68d9(0x143)]['getLiveShareCoordinatorSync'](_0x1a9e44);return(_0x5f5d6a=_0x378218==null?void 0x0:_0x378218['getStatus']())!=null?_0x5f5d6a:_0xf0edf1['IDLE'];}[_0xf0c268(0x144)](){const _0x2f36c5=_0xf0c268,_0x15609d=this[_0x2f36c5(0x138)][_0x2f36c5(0x129)](_0x3a818b)[_0x2f36c5(0x130)](_0xb9f39e[_0x2f36c5(0x13e)]);if(!_0x15609d)throw new Error(_0x2f36c5(0x12b));const _0x29c1db=_0x15609d[_0x2f36c5(0x12d)](),_0x4485c6=this[_0x2f36c5(0x143)][_0x2f36c5(0x142)](_0x29c1db);if(!_0x4485c6)throw new Error(_0x2f36c5(0x12c));_0x4485c6[_0x2f36c5(0x144)]();}['stopFollowing'](){const _0x470a99=_0xf0c268,_0x3ab606=this[_0x470a99(0x138)][_0x470a99(0x129)](_0x3a818b)[_0x470a99(0x130)](_0xb9f39e[_0x470a99(0x13e)]);if(!_0x3ab606)throw new Error(_0x470a99(0x12b));const _0x22d364=_0x3ab606[_0x470a99(0x12d)](),_0x55b70b=this['_liveShareController'][_0x470a99(0x142)](_0x22d364);if(!_0x55b70b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x55b70b[_0x470a99(0x135)]();}[_0xf0c268(0x132)](){const _0x367712=_0xf0c268,_0x10f30c=this[_0x367712(0x138)]['get'](_0x3a818b)[_0x367712(0x130)](_0xb9f39e[_0x367712(0x13e)]);if(!_0x10f30c)throw new Error('No\x20active\x20workbook\x20found.');const _0x3ac138=_0x10f30c[_0x367712(0x12d)](),_0x110cb5=this[_0x367712(0x143)]['getLiveShareCoordinatorSync'](_0x3ac138);if(!_0x110cb5)throw new Error(_0x367712(0x12c));_0x110cb5[_0x367712(0x12f)]();}['stopPresenting'](){const _0x1d686e=_0xf0c268,_0x167196=this[_0x1d686e(0x138)][_0x1d686e(0x129)](_0x3a818b)[_0x1d686e(0x130)](_0xb9f39e[_0x1d686e(0x13e)]);if(!_0x167196)throw new Error('No\x20active\x20workbook\x20found.');const _0x4c1654=_0x167196[_0x1d686e(0x12d)](),_0xa5974a=this['_liveShareController'][_0x1d686e(0x142)](_0x4c1654);if(!_0xa5974a)throw new Error(_0x1d686e(0x12c));_0xa5974a[_0x1d686e(0x140)]();}}function _0x3d3f(_0x3f3b91,_0x590b54){_0x3f3b91=_0x3f3b91-0x129;const _0x1aeac8=_0x1aea();let _0x3d3f20=_0x1aeac8[_0x3f3b91];return _0x3d3f20;}_0x1baacb[_0xf0c268(0x13f)](g);function _0x1aea(){const _0x289f86=['87460KRyXLG','UNIVER_SHEET','extend','stopPresenting','20orBfXH','getLiveShareCoordinatorSync','_liveShareController','startFollowing','_initialize','8328141ogriEY','get','405267CKyCqE','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getUnitId','defineProperty','tryStartPresenting','getCurrentUnitOfType','11361OnNrjV','startPresenting','12JjFTeC','592QwTGEL','stopFollowing','getLiveShareStatus','3407320hShdeT','_injector','LiveShareStatusEnum','2065475ExIMBA','10CQtSRc','32198903MTyfER'];_0x1aea=function(){return _0x289f86;};return _0x1aea();}class f extends _0x4a0172{get[_0xf0c268(0x139)](){return _0xf0edf1;}}_0x4a0172['extend'](f);
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);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x58be21=_0xaac7;(function(_0x2f2700,_0x568d5d){const _0x5f16ec=_0xaac7,_0x3b026e=_0x2f2700();while(!![]){try{const _0x5f265c=parseInt(_0x5f16ec(0x15d))/0x1*(-parseInt(_0x5f16ec(0x1b8))/0x2)+-parseInt(_0x5f16ec(0x1ac))/0x3+parseInt(_0x5f16ec(0x1e2))/0x4+-parseInt(_0x5f16ec(0x1b3))/0x5+-parseInt(_0x5f16ec(0x198))/0x6*(parseInt(_0x5f16ec(0x153))/0x7)+-parseInt(_0x5f16ec(0x1d7))/0x8*(parseInt(_0x5f16ec(0x169))/0x9)+parseInt(_0x5f16ec(0x1e5))/0xa*(parseInt(_0x5f16ec(0x1d8))/0xb);if(_0x5f265c===_0x568d5d)break;else _0x3b026e['push'](_0x3b026e['shift']());}catch(_0x458e94){_0x3b026e['push'](_0x3b026e['shift']());}}}(_0x2306,0x3c7bc));var J=Object[_0x58be21(0x155)],K=(_0x1920f7,_0x2809bc,_0x236793)=>_0x2809bc in _0x1920f7?J(_0x1920f7,_0x2809bc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x236793}):_0x1920f7[_0x2809bc]=_0x236793,u=(_0x4cacab,_0x2b6593,_0x583c30)=>K(_0x4cacab,typeof _0x2b6593!=_0x58be21(0x1a0)?_0x2b6593+'':_0x2b6593,_0x583c30);import{Disposable as _0x547c04,toDisposable as _0x590fc1,Inject as _0x18c588,Injector as _0x3b9bd8,RxDisposable as _0x42deb7,UniverInstanceType as _0x509fea,DisposableCollection as _0x4ff43e,CommandType as _0x9accce,IUniverInstanceService as _0x36a4cd,IConfigService as _0x3e291d,ICommandService as _0x532c3a,DependentOn as _0x523668,Plugin as _0x2006da,merge as _0x5d8dd9,registerDependencies as _0x2d528c,mergeOverrideWithDependencies as _0x447eb4,touchDependencies as _0x10a22a}from'@univerjs/core';import{useDependency as _0x4e9683,useObservable as _0x244005,BuiltInUIPart as _0x3290a0,connectInjector as _0x260eda,IUIPartsService as _0x35a79c}from'@univerjs/ui';import{jsx as _0x1ab26e,jsxs as _0x21b027,Fragment as _0x13995b}from'react/jsx-runtime';import{Dropdown as _0x2dbba2,clsx as _0x2c54d3,Button as _0x380710}from'@univerjs/design';import{useRef as _0x55dbd9,createElement as _0x33cec9,forwardRef as _0x463c3d,useState as _0x113df0,useEffect as _0x5cde6f}from'react';import{CollaborationEvent as _0x38bd9d,parseProtocolChangeset as _0x2e8d75}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x400127,SessionStatus as _0x44c041,UniverCollaborationClientPlugin as _0x31fc54}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4e391f,SetWorksheetActiveOperation as _0xa47d15}from'@univerjs/sheets';import{BehaviorSubject as _0x454a39,Subject as _0x207475}from'rxjs';import{takeUntil as _0x20d7f9,throttleTime as _0x4d919c}from'rxjs/operators';import{SetZoomRatioOperation as _0x1d5e61,SetScrollOperation as _0x3b9e17}from'@univerjs/sheets-ui';function k({ref:_0x3935e9,..._0x470905}){const _0x1a3225=_0x58be21,{icon:_0x348689,id:_0x1f5f0d,className:_0x20d50a,extend:_0x32da29,..._0x1fff24}=_0x470905,_0x493e98=('univerjs-icon\x20univerjs-icon-'+_0x1f5f0d+'\x20'+(_0x20d50a||''))[_0x1a3225(0x1dc)](),_0x2761d0=_0x55dbd9('_'+Oe());return G(_0x348689,''+_0x1f5f0d,{'defIds':_0x348689[_0x1a3225(0x1de)],'idSuffix':_0x2761d0[_0x1a3225(0x184)]},{'ref':_0x3935e9,'className':_0x493e98,..._0x1fff24},_0x32da29);}function G(_0xfc34d5,_0x189a90,_0xd8a4ae,_0x2ce4e0,_0x39d43c){const _0x31f884=_0x58be21;return _0x33cec9(_0xfc34d5['tag'],{'key':_0x189a90,...be(_0xfc34d5,_0xd8a4ae,_0x39d43c),..._0x2ce4e0},(Ee(_0xfc34d5,_0xd8a4ae)[_0x31f884(0x1f2)]||[])['map']((_0xd9cc97,_0x15f1e7)=>G(_0xd9cc97,_0x189a90+'-'+_0xfc34d5[_0x31f884(0x1e3)]+'-'+_0x15f1e7,_0xd8a4ae,void 0x0,_0x39d43c)));}function _0xaac7(_0x461b57,_0x27e777){_0x461b57=_0x461b57-0x14f;const _0x230691=_0x2306();let _0xaac768=_0x230691[_0x461b57];return _0xaac768;}function be(_0x4e6185,_0x46e2e6,_0x343c87){const _0x21d200=_0x58be21,_0x3f3900={..._0x4e6185[_0x21d200(0x1da)]};_0x343c87!=null&&_0x343c87[_0x21d200(0x1ad)]&&_0x3f3900['fill']===_0x21d200(0x1ad)&&(_0x3f3900['fill']=_0x343c87[_0x21d200(0x1ad)]),_0x4e6185[_0x21d200(0x1e3)]===_0x21d200(0x1ec)&&_0x3f3900['id']&&(_0x3f3900['id']=_0x3f3900['id']+_0x46e2e6[_0x21d200(0x17f)]),Object['entries'](_0x3f3900)[_0x21d200(0x1ca)](([_0x55ae9a,_0x28c415])=>{const _0x2bada1=_0x21d200;_0x55ae9a===_0x2bada1(0x1ec)&&typeof _0x28c415==_0x2bada1(0x1cd)&&(_0x3f3900[_0x55ae9a]=_0x28c415['replace'](/url\(#(.*)\)/,'url(#$1'+_0x46e2e6['idSuffix']+')'));});const {defIds:_0x2a9882}=_0x46e2e6;return!_0x2a9882||_0x2a9882['length']===0x0||(_0x4e6185[_0x21d200(0x1e3)]===_0x21d200(0x173)&&_0x3f3900[_0x21d200(0x1ce)]&&(_0x3f3900[_0x21d200(0x1ce)]=_0x3f3900[_0x21d200(0x1ce)]+_0x46e2e6[_0x21d200(0x17f)]),Object[_0x21d200(0x15e)](_0x3f3900)[_0x21d200(0x1ca)](([_0x5e36fa,_0x491aaf])=>{const _0x176ff4=_0x21d200;typeof _0x491aaf==_0x176ff4(0x1cd)&&(_0x3f3900[_0x5e36fa]=_0x491aaf['replace'](/url\(#(.*)\)/,'url(#$1'+_0x46e2e6['idSuffix']+')'));})),_0x3f3900;}function Ee(_0x509c65,_0x107cdf){const _0x2c86a6=_0x58be21;var _0x53f76d;const {defIds:_0x54c0a8}=_0x107cdf;return!_0x54c0a8||_0x54c0a8[_0x2c86a6(0x1b5)]===0x0?_0x509c65:_0x509c65[_0x2c86a6(0x1e3)]===_0x2c86a6(0x1c7)&&((_0x53f76d=_0x509c65[_0x2c86a6(0x1f2)])!=null&&_0x53f76d[_0x2c86a6(0x1b5)])?{..._0x509c65,'children':_0x509c65['children']['map'](_0x1e50cd=>typeof _0x1e50cd[_0x2c86a6(0x1da)]['id']==_0x2c86a6(0x1cd)&&_0x54c0a8&&_0x54c0a8[_0x2c86a6(0x17d)](_0x1e50cd[_0x2c86a6(0x1da)]['id'])?{..._0x1e50cd,'attrs':{..._0x1e50cd[_0x2c86a6(0x1da)],'id':_0x1e50cd[_0x2c86a6(0x1da)]['id']+_0x107cdf[_0x2c86a6(0x17f)]}}:_0x1e50cd)}:_0x509c65;}function Oe(){const _0x35957b=_0x58be21;return Math[_0x35957b(0x186)]()[_0x35957b(0x1d1)](0x24)[_0x35957b(0x1fb)](0x2,0x8);}k['displayName']=_0x58be21(0x1a5);const we={'tag':_0x58be21(0x1e7),'attrs':{'xmlns':_0x58be21(0x1af),'fill':_0x58be21(0x181),'viewBox':_0x58be21(0x19b),'width':_0x58be21(0x1e1),'height':_0x58be21(0x1e1)},'children':[{'tag':_0x58be21(0x1f4),'attrs':{'fill':_0x58be21(0x1c5),'d':_0x58be21(0x174)}},{'tag':_0x58be21(0x1f4),'attrs':{'fill':_0x58be21(0x1c5),'d':_0x58be21(0x1c8),'fillRule':'evenodd','clipRule':'evenodd'}}]},W=_0x463c3d(function(_0x27318e,_0x2bac17){const _0x237136=_0x58be21;return _0x33cec9(k,Object[_0x237136(0x194)]({},_0x27318e,{'id':_0x237136(0x1ed),'ref':_0x2bac17,'icon':we}));});W['displayName']=_0x58be21(0x1a8);class L extends _0x547c04{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x58be21(0x1b9)](_0x16e3b4){const _0x3cb6d1=_0x58be21;return this['_sharedOperations'][_0x3cb6d1(0x1f8)](_0x16e3b4),_0x590fc1(()=>this[_0x3cb6d1(0x165)][_0x3cb6d1(0x158)](_0x16e3b4));}['registerInitialStateReporter'](_0x2fb14f){const _0x46e70c=_0x58be21;return this[_0x46e70c(0x182)][_0x46e70c(0x1f8)](_0x2fb14f),_0x590fc1(()=>this[_0x46e70c(0x182)][_0x46e70c(0x158)](_0x2fb14f));}[_0x58be21(0x19e)](_0x13fef3){const _0x5ccaf7=_0x58be21;return this[_0x5ccaf7(0x165)][_0x5ccaf7(0x191)](_0x13fef3);}[_0x58be21(0x1e8)](_0x556d59){const _0x14283c=_0x58be21;return Array[_0x14283c(0x1a7)](this[_0x14283c(0x182)])[_0x14283c(0x183)](_0x33636a=>_0x33636a(_0x556d59));}}var Ne=Object[_0x58be21(0x1d2)],Y=(_0x24ee50,_0x36b5a9,_0x21a2b3,_0x152bb9)=>{for(var _0x542bfc=_0x152bb9>0x1?void 0x0:_0x152bb9?Ne(_0x36b5a9,_0x21a2b3):_0x36b5a9,_0x4f8ae6=_0x24ee50['length']-0x1,_0x189c00;_0x4f8ae6>=0x0;_0x4f8ae6--)(_0x189c00=_0x24ee50[_0x4f8ae6])&&(_0x542bfc=_0x189c00(_0x542bfc)||_0x542bfc);return _0x542bfc;},_=(_0x30c595,_0xf067cd)=>(_0x4839d4,_0x158bff)=>_0xf067cd(_0x4839d4,_0x158bff,_0x30c595);let S=class extends _0x42deb7{constructor(_0x336ba6,_0x31c4c6,_0x3372b0){const _0x37b61c=_0x58be21;super(),u(this,_0x37b61c(0x1f1),new Map()),(this[_0x37b61c(0x15b)]=_0x336ba6,this[_0x37b61c(0x1a2)]=_0x31c4c6,this[_0x37b61c(0x1e6)]=_0x3372b0,this[_0x37b61c(0x1b7)]());}async[_0x58be21(0x1f6)](_0x9bf26c){const _0x50f6d4=_0x58be21;return this['_entities']['has'](_0x9bf26c)||await this[_0x50f6d4(0x1d9)](_0x9bf26c),this[_0x50f6d4(0x1f1)][_0x50f6d4(0x185)](_0x9bf26c);}[_0x58be21(0x1a1)](_0x12361c){const _0x5692b8=_0x58be21;var _0x2c8c3e;return(_0x2c8c3e=this[_0x5692b8(0x1f1)][_0x5692b8(0x185)](_0x12361c))!=null?_0x2c8c3e:null;}[_0x58be21(0x1b7)](){const _0x4c92e6=_0x58be21;this[_0x4c92e6(0x15b)]['getTypeOfUnitAdded$'](_0x509fea[_0x4c92e6(0x1bf)])[_0x4c92e6(0x160)](_0x20d7f9(this[_0x4c92e6(0x196)]))[_0x4c92e6(0x1e9)](async _0xf06ef5=>{const _0x3538f6=_0x4c92e6,_0x43b2ab=_0xf06ef5[_0x3538f6(0x1d5)]();this[_0x3538f6(0x1f1)][_0x3538f6(0x191)](_0x43b2ab)||this[_0x3538f6(0x1d9)](_0x43b2ab);}),this[_0x4c92e6(0x15b)][_0x4c92e6(0x1f0)](_0x509fea['UNIVER_SHEET'])[_0x4c92e6(0x160)](_0x20d7f9(this['dispose$']))['subscribe'](_0x223db8=>{const _0x40e3a1=_0x4c92e6,_0x447ef4=_0x223db8[_0x40e3a1(0x1d5)](),_0x23ac25=this[_0x40e3a1(0x1f1)][_0x40e3a1(0x185)](_0x447ef4);_0x23ac25==null||_0x23ac25['dispose']();});}async[_0x58be21(0x1d9)](_0x15c841){const _0x1823fa=_0x58be21,_0x12093b=await this[_0x1823fa(0x1e6)][_0x1823fa(0x1b2)](_0x15c841),_0x1453c9=this[_0x1823fa(0x1a2)][_0x1823fa(0x1cf)](N,_0x15c841,_0x12093b);return _0x1453c9[_0x1823fa(0x1c2)](),this['_entities']['set'](_0x15c841,_0x1453c9),_0x1453c9;}};S=Y([_(0x0,_0x36a4cd),_(0x1,_0x18c588(_0x3b9bd8)),_(0x2,_0x18c588(_0x400127))],S);var c=(_0x316506=>(_0x316506['OFFLINE']='offline',_0x316506[_0x58be21(0x1c0)]='idle',_0x316506[_0x58be21(0x1d4)]=_0x58be21(0x179),_0x316506['NOT_FOLLOWING']=_0x58be21(0x19c),_0x316506['PRESENTING']=_0x58be21(0x197),_0x316506))(c||{});const Ce=_0x58be21(0x17c),De=0xc8;let N=class extends _0x42deb7{constructor(_0x33d7be,_0x4bd656,_0x4dd956,_0x41f4c6,_0x4d9efe){const _0x5af76b=_0x58be21;super(),u(this,_0x5af76b(0x190),new _0x454a39(_0x5af76b(0x1a9))),u(this,_0x5af76b(0x1c6),this[_0x5af76b(0x190)][_0x5af76b(0x1a3)]()),u(this,'_init',!0x1),u(this,_0x5af76b(0x1bd),null),u(this,'_presenter',null),(this['_unitID']=_0x33d7be,this[_0x5af76b(0x177)]=_0x4bd656,this[_0x5af76b(0x1be)]=_0x4dd956,this[_0x5af76b(0x1f9)]=_0x41f4c6,this[_0x5af76b(0x19d)]=_0x4d9efe);}get['_status'](){const _0xc4addf=_0x58be21;return this[_0xc4addf(0x190)][_0xc4addf(0x1a6)]();}[_0x58be21(0x178)](){const _0x9cf060=_0x58be21;var _0x39bd09;(_0x39bd09=this[_0x9cf060(0x1bd)])==null||_0x39bd09[_0x9cf060(0x178)](),this['_status$'][_0x9cf060(0x1d0)](_0x9cf060(0x1a9)),this[_0x9cf060(0x190)]['complete']();}[_0x58be21(0x1b6)](){const _0x44ff67=_0x58be21;return this[_0x44ff67(0x1c1)];}['init'](){const _0x938c1d=_0x58be21;this[_0x938c1d(0x1b7)]||(this[_0x938c1d(0x1b7)]=!0x0,this[_0x938c1d(0x177)]['sessionStatus$'][_0x938c1d(0x160)](_0x20d7f9(this[_0x938c1d(0x196)]))[_0x938c1d(0x1e9)](_0x3cd0d7=>{const _0x164f6a=_0x938c1d;switch(_0x3cd0d7){case _0x44c041[_0x164f6a(0x1e4)]:this[_0x164f6a(0x171)]();break;case _0x44c041[_0x164f6a(0x154)]:this[_0x164f6a(0x162)]();break;}}),this[_0x938c1d(0x177)][_0x938c1d(0x172)][_0x938c1d(0x160)](_0x20d7f9(this[_0x938c1d(0x196)]))[_0x938c1d(0x1e9)](_0x413ca8=>{const _0x17d641=_0x938c1d,{eventID:_0x3b51ad}=_0x413ca8;switch(_0x3b51ad){case _0x38bd9d[_0x17d641(0x189)]:this[_0x17d641(0x18b)](_0x413ca8);break;case _0x38bd9d[_0x17d641(0x163)]:this['_handleOperation'](_0x413ca8);break;case _0x38bd9d['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x38bd9d[_0x17d641(0x14f)]:this['_handleNewChangeSets'](_0x413ca8);break;}}));}[_0x58be21(0x168)](){const _0x229155=_0x58be21;this[_0x229155(0x177)][_0x229155(0x18c)]({'eventID':_0x38bd9d[_0x229155(0x16f)],'data':{'unitID':this[_0x229155(0x1d3)],'userID':this[_0x229155(0x177)]['getMemberID']()}},this[_0x229155(0x1d3)]);}[_0x58be21(0x18a)](){const _0x42c270=_0x58be21;this[_0x42c270(0x1c1)]===_0x42c270(0x197)&&(this['_status$'][_0x42c270(0x1d0)](_0x42c270(0x1a9)),this['_collabSession'][_0x42c270(0x18c)]({'eventID':_0x38bd9d[_0x42c270(0x175)],'data':{'unitID':this['_unitID']}},this[_0x42c270(0x1d3)]));}['startFollowing'](){const _0x57e2b6=_0x58be21;this['_status']===_0x57e2b6(0x19c)&&(this[_0x57e2b6(0x190)][_0x57e2b6(0x1d0)](_0x57e2b6(0x179)),this[_0x57e2b6(0x161)]());}[_0x58be21(0x16a)](){const _0x4b889c=_0x58be21;this[_0x4b889c(0x1c1)]===_0x4b889c(0x179)&&this[_0x4b889c(0x1ba)]();}[_0x58be21(0x18b)](_0x2b875d){const _0x5207a5=_0x58be21,{presenter:_0x5db7f3}=_0x2b875d[_0x5207a5(0x16c)],_0x689d45=this[_0x5207a5(0x177)]['getMemberID']();this[_0x5207a5(0x1c3)]=_0x5db7f3,_0x5db7f3===_0x689d45?(this['_stopFollowing'](),this[_0x5207a5(0x187)]()):this[_0x5207a5(0x1c1)]!==_0x5207a5(0x19c)&&(this[_0x5207a5(0x1cb)](),this[_0x5207a5(0x161)]());}[_0x58be21(0x1cc)](){const _0x1e496a=_0x58be21,_0x58e253={'eventID':_0x38bd9d[_0x1e496a(0x1ee)]};this[_0x1e496a(0x177)]['send'](_0x58e253,this['_unitID']);}[_0x58be21(0x1df)](){const _0x25cae7=_0x58be21;this[_0x25cae7(0x1c3)]=null,this[_0x25cae7(0x1c1)]!==_0x25cae7(0x197)&&this[_0x25cae7(0x1ab)]();}[_0x58be21(0x18f)](_0x755cc5){const _0x4e150d=_0x58be21;if(this[_0x4e150d(0x1c1)]===_0x4e150d(0x179)&&this[_0x4e150d(0x1c3)]===_0x755cc5[_0x4e150d(0x16c)][_0x4e150d(0x188)]){const _0x351478=_0x2e8d75(_0x755cc5['data'])['mutations'][_0x4e150d(0x19f)]()[_0x4e150d(0x1ae)](_0x548e33=>_0x548e33['id']===_0x4e391f['id']);if(_0x351478){const _0x2c19f1=_0x351478[_0x4e150d(0x1db)][_0x4e150d(0x195)],_0x300148=_0x351478[_0x4e150d(0x1db)][_0x4e150d(0x192)]['id'];setTimeout(()=>{const _0x5d920c=_0x4e150d;this[_0x5d920c(0x19d)][_0x5d920c(0x156)](_0xa47d15['id'],{'unitId':_0x2c19f1,'subUnitId':_0x300148},{'fromCollab':!0x0});});}}}[_0x58be21(0x187)](){const _0x5cef56=_0x58be21;this[_0x5cef56(0x190)][_0x5cef56(0x1d0)]('presenting');const _0x110727=new Map(),_0x864e4=this[_0x5cef56(0x1bd)]=new _0x4ff43e();_0x864e4[_0x5cef56(0x1f8)](_0x590fc1(()=>{const _0x22ae66=_0x5cef56;_0x110727[_0x22ae66(0x1ca)](_0x34772c=>_0x34772c['complete']()),_0x110727[_0x22ae66(0x1bc)]();})),_0x864e4['add'](this[_0x5cef56(0x19d)][_0x5cef56(0x1d6)](_0x46a4b5=>{const _0x3c4a3b=_0x5cef56;var _0x34ca34;if(_0x46a4b5['type']!==_0x9accce[_0x3c4a3b(0x1fa)]||!this[_0x3c4a3b(0x1f9)][_0x3c4a3b(0x19e)](_0x46a4b5['id']))return;const {id:_0x2dea53}=_0x46a4b5;let _0x125a78;_0x110727[_0x3c4a3b(0x191)](_0x2dea53)?_0x125a78=_0x110727[_0x3c4a3b(0x185)](_0x2dea53):(_0x125a78=new _0x207475(),_0x110727[_0x3c4a3b(0x1f5)](_0x2dea53,_0x125a78),_0x125a78[_0x3c4a3b(0x160)](_0x4d919c((_0x34ca34=this[_0x3c4a3b(0x1be)][_0x3c4a3b(0x1e0)](Ce))!=null?_0x34ca34:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3c4a3b(0x1e9)](_0x3aaf5b=>{const _0x952dd0=_0x3c4a3b;this[_0x952dd0(0x177)][_0x952dd0(0x18c)]({'eventID':_0x38bd9d[_0x952dd0(0x163)],'data':{'unitID':this[_0x952dd0(0x1d3)],'operations':{[_0x3aaf5b['id']]:{'id':_0x3aaf5b['id'],'params':JSON['stringify'](_0x3aaf5b[_0x952dd0(0x1db)])}}}},this['_unitID']);})),_0x125a78['next'](_0x46a4b5);})),this[_0x5cef56(0x1f9)][_0x5cef56(0x1e8)](this[_0x5cef56(0x1d3)])[_0x5cef56(0x1ca)](_0x200044=>this[_0x5cef56(0x177)][_0x5cef56(0x18c)]({'eventID':_0x38bd9d[_0x5cef56(0x163)],'data':{'unitID':this[_0x5cef56(0x1d3)],'operations':{[_0x200044['id']]:{'id':_0x200044['id'],'params':JSON[_0x5cef56(0x1f7)](_0x200044[_0x5cef56(0x1db)])}}}},this['_unitID']));}[_0x58be21(0x1cb)](){const _0x30bca6=_0x58be21;var _0x8202d6;this[_0x30bca6(0x190)][_0x30bca6(0x1d0)](_0x30bca6(0x1a9)),(_0x8202d6=this[_0x30bca6(0x1bd)])==null||_0x8202d6[_0x30bca6(0x178)](),this[_0x30bca6(0x1bd)]=null;}[_0x58be21(0x161)](){const _0x34042b=_0x58be21;var _0x29c62f;(_0x29c62f=this[_0x34042b(0x1bd)])==null||_0x29c62f[_0x34042b(0x178)](),this['_status$'][_0x34042b(0x1d0)]('following');}[_0x58be21(0x1ab)](){const _0x2b6325=_0x58be21;var _0x2d5deb;this[_0x2b6325(0x190)]['next'](_0x2b6325(0x1a9)),(_0x2d5deb=this[_0x2b6325(0x1bd)])==null||_0x2d5deb['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x9ee783=_0x58be21;var _0x32f8fa;this[_0x9ee783(0x190)][_0x9ee783(0x1d0)](_0x9ee783(0x19c)),(_0x32f8fa=this['_commandDisposable'])==null||_0x32f8fa[_0x9ee783(0x178)]();}[_0x58be21(0x199)](_0x1336b0){const _0x3d0d04=_0x58be21;if([_0x3d0d04(0x197),_0x3d0d04(0x19c),_0x3d0d04(0x1eb)][_0x3d0d04(0x17d)](this[_0x3d0d04(0x1c1)])||!_0x1336b0[_0x3d0d04(0x16c)][_0x3d0d04(0x16d)]||_0x1336b0[_0x3d0d04(0x16c)][_0x3d0d04(0x16d)]===this['_collabSession'][_0x3d0d04(0x15f)]())return;this[_0x3d0d04(0x1c1)]===_0x3d0d04(0x1a9)&&this[_0x3d0d04(0x161)]();const _0x4a8f03=_0x1336b0[_0x3d0d04(0x16c)]['operations'];Object['values'](_0x4a8f03)['forEach'](_0x33f46e=>{const _0x2673de=_0x3d0d04;this[_0x2673de(0x19d)][_0x2673de(0x156)](_0x33f46e['id'],_0x33f46e[_0x2673de(0x1db)]?JSON[_0x2673de(0x180)](_0x33f46e[_0x2673de(0x1db)]):null,{'fromCollab':!0x0});});}[_0x58be21(0x171)](){const _0x3716d6=_0x58be21;var _0x5e0857;this[_0x3716d6(0x190)][_0x3716d6(0x1d0)]('offline'),(_0x5e0857=this[_0x3716d6(0x1bd)])==null||_0x5e0857[_0x3716d6(0x178)]();}[_0x58be21(0x162)](){const _0x2ee202=_0x58be21;this['_status$'][_0x2ee202(0x1d0)](_0x2ee202(0x1a9)),this[_0x2ee202(0x1cc)]();}};N=Y([_(0x2,_0x3e291d),_(0x3,_0x18c588(L)),_(0x4,_0x532c3a)],N);function Le(){const _0x6e8f76=_0x58be21,_0xdf9fed=_0x4e9683(S),_0x34d628=_0x4e9683(_0x36a4cd),_0x15e335=_0x244005(()=>_0x34d628['getCurrentTypeOfUnit$'](_0x509fea[_0x6e8f76(0x1bf)]),void 0x0,!0x1,[]),[_0x11ed75,_0x161cf6]=_0x113df0(null),[_0x174253,_0x54116b]=_0x113df0(c[_0x6e8f76(0x1c0)]),_0x3b293e=_0x55dbd9(null);return _0x5cde6f(()=>(_0x15e335&&_0xdf9fed[_0x6e8f76(0x1f6)](_0x15e335[_0x6e8f76(0x1d5)]())[_0x6e8f76(0x164)](_0x49be4e=>{const _0x32b466=_0x6e8f76;_0x161cf6(_0x49be4e),_0x3b293e[_0x32b466(0x184)]=_0x49be4e[_0x32b466(0x1c6)][_0x32b466(0x1e9)](_0x4b6216=>{_0x54116b(_0x4b6216);});}),()=>{const _0x2f8ada=_0x6e8f76;var _0x3560e7;(_0x3560e7=_0x3b293e[_0x2f8ada(0x184)])==null||_0x3560e7[_0x2f8ada(0x157)](),_0x3b293e[_0x2f8ada(0x184)]=null;}),[_0x15e335,_0xdf9fed]),_0x11ed75?_0x1ab26e(_0x2dbba2,{'align':'end','disabled':_0x174253===c[_0x6e8f76(0x1e4)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x1ab26e(Re,{'status':_0x174253,'coordinator':_0x11ed75}),'children':_0x1ab26e(_0x6e8f76(0x159),{'className':_0x2c54d3(_0x6e8f76(0x1dd),{'univer-cursor-not-allowed':_0x174253===c[_0x6e8f76(0x1e4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x174253!==c[_0x6e8f76(0x1e4)]}),'type':_0x6e8f76(0x159),'children':_0x1ab26e(W,{'className':'univer-size-4'})})}):null;}function Re(_0x379685){const _0x340e13=_0x58be21,{status:_0x3f426b,coordinator:_0x2454f8}=_0x379685;switch(_0x3f426b){case c[_0x340e13(0x1c0)]:return _0x1ab26e($e,{'coordinator':_0x2454f8});case c[_0x340e13(0x1d4)]:return _0x1ab26e(xe,{'coordinator':_0x2454f8});case c[_0x340e13(0x151)]:return _0x1ab26e(Pe,{'coordinator':_0x2454f8});case c['OFFLINE']:return _0x1ab26e(Te,{});case c[_0x340e13(0x17e)]:return _0x1ab26e(Ae,{'coordinator':_0x2454f8});default:return null;}}function $e(_0x23e936){const _0x39f462=_0x58be21,{coordinator:_0x526b8a}=_0x23e936;return _0x21b027(_0x13995b,{'children':[_0x1ab26e(_0x39f462(0x193),{'className':_0x39f462(0x17b),'children':_0x39f462(0x176)}),_0x1ab26e(_0x380710,{'onClick':()=>_0x526b8a[_0x39f462(0x168)](),'children':_0x39f462(0x170)})]});}function xe(_0x4731bb){const _0x4e8536=_0x58be21,{coordinator:_0x41302b}=_0x4731bb;return _0x21b027(_0x13995b,{'children':[_0x1ab26e(_0x4e8536(0x193),{'className':_0x4e8536(0x17b),'children':_0x4e8536(0x1b4)}),_0x1ab26e(_0x380710,{'onClick':()=>_0x41302b['stopFollowing'](),'children':_0x4e8536(0x16e)})]});}function Pe(_0x41fb48){const _0x3d99fc=_0x58be21,{coordinator:_0x197e17}=_0x41fb48;return _0x21b027(_0x13995b,{'children':[_0x1ab26e(_0x3d99fc(0x193),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1ab26e(_0x380710,{'variant':_0x3d99fc(0x1aa),'onClick':()=>_0x197e17[_0x3d99fc(0x16b)](),'children':_0x3d99fc(0x18d)})]});}function Ae(_0x1bfa8a){const _0x4c733c=_0x58be21,{coordinator:_0x1ba2d0}=_0x1bfa8a;return _0x21b027(_0x13995b,{'children':[_0x1ab26e(_0x4c733c(0x193),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4c733c(0x166)}),_0x1ab26e(_0x380710,{'variant':_0x4c733c(0x17a),'onClick':()=>_0x1ba2d0[_0x4c733c(0x18a)](),'children':_0x4c733c(0x1b1)})]});}function Te(){const _0x9ccbd6=_0x58be21;return _0x1ab26e(_0x13995b,{'children':_0x9ccbd6(0x15c)});}var Fe=Object[_0x58be21(0x1d2)],He=(_0x4ec54a,_0x1aa59d,_0x5c9ae4,_0x478b46)=>{const _0x4d8a7b=_0x58be21;for(var _0x1c832a=_0x478b46>0x1?void 0x0:_0x478b46?Fe(_0x1aa59d,_0x5c9ae4):_0x1aa59d,_0x3c32be=_0x4ec54a[_0x4d8a7b(0x1b5)]-0x1,_0x5b1f8b;_0x3c32be>=0x0;_0x3c32be--)(_0x5b1f8b=_0x4ec54a[_0x3c32be])&&(_0x1c832a=_0x5b1f8b(_0x1c832a)||_0x1c832a);return _0x1c832a;},A=(_0x438ef3,_0xa434f9)=>(_0x5b73cb,_0x1ada39)=>_0xa434f9(_0x5b73cb,_0x1ada39,_0x438ef3);let m=class extends _0x547c04{constructor(_0x29de5a,_0x3f7caf){const _0xfa37ee=_0x58be21;super(),this['_injector']=_0x29de5a,this[_0xfa37ee(0x19a)]=_0x3f7caf,this[_0xfa37ee(0x1ea)]();}[_0x58be21(0x1ea)](){const _0x2f4ee9=_0x58be21;this[_0x2f4ee9(0x167)](this[_0x2f4ee9(0x19a)][_0x2f4ee9(0x18e)](_0x3290a0[_0x2f4ee9(0x1ef)],()=>_0x260eda(Le,this[_0x2f4ee9(0x1a2)])));}};m=He([A(0x0,_0x18c588(_0x3b9bd8)),A(0x1,_0x35a79c)],m);const ye=_0x58be21(0x15a),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x29dfb3,_0x192cac,_0x5e0e41,_0x3b4e0c)=>{const _0x7d7afd=_0x58be21;for(var _0xf733c4=_0x3b4e0c>0x1?void 0x0:_0x3b4e0c?Ue(_0x192cac,_0x5e0e41):_0x192cac,_0x2346f1=_0x29dfb3[_0x7d7afd(0x1b5)]-0x1,_0x5c728b;_0x2346f1>=0x0;_0x2346f1--)(_0x5c728b=_0x29dfb3[_0x2346f1])&&(_0xf733c4=_0x5c728b(_0xf733c4)||_0xf733c4);return _0xf733c4;},je=(_0x2b01b9,_0x9666e0)=>(_0x2ee68c,_0x284bb2)=>_0x9666e0(_0x2ee68c,_0x284bb2,_0x2b01b9);let I=class extends _0x547c04{constructor(_0x47fd2b){const _0x5e42ee=_0x58be21;super(),this[_0x5e42ee(0x1f9)]=_0x47fd2b,this[_0x5e42ee(0x1b7)]();}[_0x58be21(0x1b7)](){const _0x11297e=_0x58be21;[_0x1d5e61['id'],_0x3b9e17['id'],_0xa47d15['id']][_0x11297e(0x1ca)](_0x134d82=>{const _0x16c6a0=_0x11297e;this['disposeWithMe'](this[_0x16c6a0(0x1f9)][_0x16c6a0(0x1b9)](_0x134d82));});}};I=Ve([je(0x0,_0x18c588(L))],I);function _0x2306(){const _0x51f625=['requireSession','834145HfMaOX','You\x27re\x20following\x20the\x20presenter','length','getStatus','_init','183342bsReZN','registerSharedOperation','_stopFollowing','onStarting','clear','_commandDisposable','_configService','UNIVER_SHEET','IDLE','_status','init','_presenter','onRendered','currentColor','status$','defs','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','setConfig','forEach','_stopPresenting','_fetchOperations','string','xlink:href','createInstance','next','toString','getOwnPropertyDescriptor','_unitID','FOLLOWING','getUnitId','onCommandExecuted','226976nIyajQ','6967477XgqbKw','_startLiveShareCoordinator','attrs','params','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','defIds','_handleTerminate','getConfig','1em','13512dpZWOX','tag','OFFLINE','20qlhoGt','_collabSessionService','svg','getInitialStates','subscribe','_mountLiveShare','offline','mask','live-share-icon','LIVESHARE_FETCH_OPERATIONS','HEADER_MENU','getTypeOfUnitDisposed$','_entities','children','override','path','set','getLiveShareCoordinator','stringify','add','_liveShareService','OPERATION','substring','NEW_CHANGESETS','UNIVER_LIVE_SHARE_PLUGIN','NOT_FOLLOWING','type','1499134YTNZAB','ONLINE','defineProperty','executeCommand','unsubscribe','delete','button','live-share.config','_univerInstanceService','You\x27are\x20offline.','1sWaAHA','entries','getMemberID','pipe','_startFollowing','_handleOnline','LIVESHARE_OPERATION','then','_sharedOperations','You\x27re\x20presenting\x20the\x20document','disposeWithMe','tryStartPresenting','36wcfPnK','stopFollowing','startFollowing','data','presenter','Stop\x20following','LIVESHARE_REQUEST_HOST','Start','_handleOffline','event$','use','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','LIVESHARE_TERMINATE','Present\x20this\x20document','_collabSession','dispose','following','default','univer-mb-3\x20univer-w-full\x20univer-text-sm','SAME_OPERATION_SHARE_INTERVAL','includes','PRESENTING','idSuffix','parse','none','_reporters','map','current','get','random','_startPresenting','memberID','LIVESHARE_NEW_HOST','stopPresenting','_handleNewHost','send','Start\x20following','registerComponent','_handleNewChangeSets','_status$','has','sheet','div','assign','unitId','dispose$','presenting','12NYuzix','_handleOperation','_uiPartsService','0\x200\x2017\x2017','not-following','_commandService','shouldShareOperation','reverse','symbol','getLiveShareCoordinatorSync','_injector','asObservable','UNIVER_UNKNOWN','UniverIcon','getValue','from','LiveShareIcon','idle','text','_beIdle','666420mCKaAs','colorChannel1','find','http://www.w3.org/2000/svg','_config','Stop\x20presenting'];_0x2306=function(){return _0x51f625;};return _0x2306();}var Me=Object[_0x58be21(0x155)],ke=Object[_0x58be21(0x1d2)],Ge=(_0x250725,_0x385734,_0xbe8c76)=>_0x385734 in _0x250725?Me(_0x250725,_0x385734,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbe8c76}):_0x250725[_0x385734]=_0xbe8c76,We=(_0x466264,_0x556e4c,_0x3ae1c7,_0xf7c6c4)=>{const _0x4ee645=_0x58be21;for(var _0x4ee4e3=_0xf7c6c4>0x1?void 0x0:_0xf7c6c4?ke(_0x556e4c,_0x3ae1c7):_0x556e4c,_0x3fd3d4=_0x466264[_0x4ee645(0x1b5)]-0x1,_0x1935c5;_0x3fd3d4>=0x0;_0x3fd3d4--)(_0x1935c5=_0x466264[_0x3fd3d4])&&(_0x4ee4e3=_0x1935c5(_0x4ee4e3)||_0x4ee4e3);return _0x4ee4e3;},F=(_0xfbea65,_0xc7c761)=>(_0x46875a,_0x399167)=>_0xc7c761(_0x46875a,_0x399167,_0xfbea65),B=(_0x467e22,_0x2b7147,_0x32af21)=>Ge(_0x467e22,typeof _0x2b7147!=_0x58be21(0x1a0)?_0x2b7147+'':_0x2b7147,_0x32af21);const Ye=_0x58be21(0x150);let b=class extends _0x2006da{constructor(_0x4e81d2=T,_0x473467,_0x5d16f6){const _0x24a1e3=_0x58be21;super(),this[_0x24a1e3(0x1b0)]=_0x4e81d2,this[_0x24a1e3(0x1a2)]=_0x473467,this[_0x24a1e3(0x1be)]=_0x5d16f6;const {..._0x5aad84}=_0x5d8dd9({},T,this['_config']);this[_0x24a1e3(0x1be)][_0x24a1e3(0x1c9)](ye,_0x5aad84);}[_0x58be21(0x1bb)](){const _0x4c97e2=_0x58be21;_0x2d528c(this['_injector'],_0x447eb4([[L],[S],[I],[m]],this[_0x4c97e2(0x1b0)][_0x4c97e2(0x1f3)])),_0x10a22a(this[_0x4c97e2(0x1a2)],[[I]]);}[_0x58be21(0x1c4)](){const _0x559a02=_0x58be21;_0x10a22a(this[_0x559a02(0x1a2)],[[m]]);}};B(b,_0x58be21(0x152),_0x509fea[_0x58be21(0x1a4)]),B(b,'pluginName',Ye),b=We([_0x523668(_0x31fc54),F(0x1,_0x18c588(_0x3b9bd8)),F(0x2,_0x3e291d)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
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};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0xf0c268=_0x3d3f;(function(_0x46d303,_0x1d0a1d){const _0xbdf7cd=_0x3d3f,_0x3a8402=_0x46d303();while(!![]){try{const _0x38a504=parseInt(_0xbdf7cd(0x141))/0x1*(parseInt(_0xbdf7cd(0x13d))/0x2)+-parseInt(_0xbdf7cd(0x12a))/0x3+parseInt(_0xbdf7cd(0x137))/0x4+parseInt(_0xbdf7cd(0x13a))/0x5*(parseInt(_0xbdf7cd(0x133))/0x6)+-parseInt(_0xbdf7cd(0x131))/0x7*(-parseInt(_0xbdf7cd(0x134))/0x8)+-parseInt(_0xbdf7cd(0x146))/0x9*(-parseInt(_0xbdf7cd(0x13b))/0xa)+-parseInt(_0xbdf7cd(0x13c))/0xb;if(_0x38a504===_0x1d0a1d)break;else _0x3a8402['push'](_0x3a8402['shift']());}catch(_0x4d809d){_0x3a8402['push'](_0x3a8402['shift']());}}}(_0x1aea,0x82d01));var l=Object[_0xf0c268(0x12e)],w=(_0xf92bb9,_0x487c97,_0x3591fc)=>_0x487c97 in _0xf92bb9?l(_0xf92bb9,_0x487c97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3591fc}):_0xf92bb9[_0x487c97]=_0x3591fc,v=(_0xccafc3,_0xa88d61,_0x42ed66)=>w(_0xccafc3,typeof _0xa88d61!='symbol'?_0xa88d61+'':_0xa88d61,_0x42ed66);import{LiveShareController as _0x2f1eee,LiveShareStatus as _0xf0edf1}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x3a818b,UniverInstanceType as _0xb9f39e}from'@univerjs/core';import{FUniver as _0x1baacb,FEnum as _0x4a0172}from'@univerjs/core/facade';class g extends _0x1baacb{constructor(){const _0x32934c=_0xf0c268;super(...arguments),v(this,_0x32934c(0x143));}[_0xf0c268(0x145)](_0x20830e){const _0x36f891=_0xf0c268;this[_0x36f891(0x143)]=_0x20830e[_0x36f891(0x129)](_0x2f1eee);}[_0xf0c268(0x136)](){const _0x3f68d9=_0xf0c268;var _0x5f5d6a;const _0x5d1b30=this[_0x3f68d9(0x138)][_0x3f68d9(0x129)](_0x3a818b)[_0x3f68d9(0x130)](_0xb9f39e['UNIVER_SHEET']);if(!_0x5d1b30)throw new Error(_0x3f68d9(0x12b));const _0x1a9e44=_0x5d1b30['getUnitId'](),_0x378218=this[_0x3f68d9(0x143)]['getLiveShareCoordinatorSync'](_0x1a9e44);return(_0x5f5d6a=_0x378218==null?void 0x0:_0x378218['getStatus']())!=null?_0x5f5d6a:_0xf0edf1['IDLE'];}[_0xf0c268(0x144)](){const _0x2f36c5=_0xf0c268,_0x15609d=this[_0x2f36c5(0x138)][_0x2f36c5(0x129)](_0x3a818b)[_0x2f36c5(0x130)](_0xb9f39e[_0x2f36c5(0x13e)]);if(!_0x15609d)throw new Error(_0x2f36c5(0x12b));const _0x29c1db=_0x15609d[_0x2f36c5(0x12d)](),_0x4485c6=this[_0x2f36c5(0x143)][_0x2f36c5(0x142)](_0x29c1db);if(!_0x4485c6)throw new Error(_0x2f36c5(0x12c));_0x4485c6[_0x2f36c5(0x144)]();}['stopFollowing'](){const _0x470a99=_0xf0c268,_0x3ab606=this[_0x470a99(0x138)][_0x470a99(0x129)](_0x3a818b)[_0x470a99(0x130)](_0xb9f39e[_0x470a99(0x13e)]);if(!_0x3ab606)throw new Error(_0x470a99(0x12b));const _0x22d364=_0x3ab606[_0x470a99(0x12d)](),_0x55b70b=this['_liveShareController'][_0x470a99(0x142)](_0x22d364);if(!_0x55b70b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x55b70b[_0x470a99(0x135)]();}[_0xf0c268(0x132)](){const _0x367712=_0xf0c268,_0x10f30c=this[_0x367712(0x138)]['get'](_0x3a818b)[_0x367712(0x130)](_0xb9f39e[_0x367712(0x13e)]);if(!_0x10f30c)throw new Error('No\x20active\x20workbook\x20found.');const _0x3ac138=_0x10f30c[_0x367712(0x12d)](),_0x110cb5=this[_0x367712(0x143)]['getLiveShareCoordinatorSync'](_0x3ac138);if(!_0x110cb5)throw new Error(_0x367712(0x12c));_0x110cb5[_0x367712(0x12f)]();}['stopPresenting'](){const _0x1d686e=_0xf0c268,_0x167196=this[_0x1d686e(0x138)][_0x1d686e(0x129)](_0x3a818b)[_0x1d686e(0x130)](_0xb9f39e[_0x1d686e(0x13e)]);if(!_0x167196)throw new Error('No\x20active\x20workbook\x20found.');const _0x4c1654=_0x167196[_0x1d686e(0x12d)](),_0xa5974a=this['_liveShareController'][_0x1d686e(0x142)](_0x4c1654);if(!_0xa5974a)throw new Error(_0x1d686e(0x12c));_0xa5974a[_0x1d686e(0x140)]();}}function _0x3d3f(_0x3f3b91,_0x590b54){_0x3f3b91=_0x3f3b91-0x129;const _0x1aeac8=_0x1aea();let _0x3d3f20=_0x1aeac8[_0x3f3b91];return _0x3d3f20;}_0x1baacb[_0xf0c268(0x13f)](g);function _0x1aea(){const _0x289f86=['87460KRyXLG','UNIVER_SHEET','extend','stopPresenting','20orBfXH','getLiveShareCoordinatorSync','_liveShareController','startFollowing','_initialize','8328141ogriEY','get','405267CKyCqE','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getUnitId','defineProperty','tryStartPresenting','getCurrentUnitOfType','11361OnNrjV','startPresenting','12JjFTeC','592QwTGEL','stopFollowing','getLiveShareStatus','3407320hShdeT','_injector','LiveShareStatusEnum','2065475ExIMBA','10CQtSRc','32198903MTyfER'];_0x1aea=function(){return _0x289f86;};return _0x1aea();}class f extends _0x4a0172{get[_0xf0c268(0x139)](){return _0xf0edf1;}}_0x4a0172['extend'](f);
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);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x58be21=_0xaac7;(function(_0x2f2700,_0x568d5d){const _0x5f16ec=_0xaac7,_0x3b026e=_0x2f2700();while(!![]){try{const _0x5f265c=parseInt(_0x5f16ec(0x15d))/0x1*(-parseInt(_0x5f16ec(0x1b8))/0x2)+-parseInt(_0x5f16ec(0x1ac))/0x3+parseInt(_0x5f16ec(0x1e2))/0x4+-parseInt(_0x5f16ec(0x1b3))/0x5+-parseInt(_0x5f16ec(0x198))/0x6*(parseInt(_0x5f16ec(0x153))/0x7)+-parseInt(_0x5f16ec(0x1d7))/0x8*(parseInt(_0x5f16ec(0x169))/0x9)+parseInt(_0x5f16ec(0x1e5))/0xa*(parseInt(_0x5f16ec(0x1d8))/0xb);if(_0x5f265c===_0x568d5d)break;else _0x3b026e['push'](_0x3b026e['shift']());}catch(_0x458e94){_0x3b026e['push'](_0x3b026e['shift']());}}}(_0x2306,0x3c7bc));var J=Object[_0x58be21(0x155)],K=(_0x1920f7,_0x2809bc,_0x236793)=>_0x2809bc in _0x1920f7?J(_0x1920f7,_0x2809bc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x236793}):_0x1920f7[_0x2809bc]=_0x236793,u=(_0x4cacab,_0x2b6593,_0x583c30)=>K(_0x4cacab,typeof _0x2b6593!=_0x58be21(0x1a0)?_0x2b6593+'':_0x2b6593,_0x583c30);import{Disposable as _0x547c04,toDisposable as _0x590fc1,Inject as _0x18c588,Injector as _0x3b9bd8,RxDisposable as _0x42deb7,UniverInstanceType as _0x509fea,DisposableCollection as _0x4ff43e,CommandType as _0x9accce,IUniverInstanceService as _0x36a4cd,IConfigService as _0x3e291d,ICommandService as _0x532c3a,DependentOn as _0x523668,Plugin as _0x2006da,merge as _0x5d8dd9,registerDependencies as _0x2d528c,mergeOverrideWithDependencies as _0x447eb4,touchDependencies as _0x10a22a}from'@univerjs/core';import{useDependency as _0x4e9683,useObservable as _0x244005,BuiltInUIPart as _0x3290a0,connectInjector as _0x260eda,IUIPartsService as _0x35a79c}from'@univerjs/ui';import{jsx as _0x1ab26e,jsxs as _0x21b027,Fragment as _0x13995b}from'react/jsx-runtime';import{Dropdown as _0x2dbba2,clsx as _0x2c54d3,Button as _0x380710}from'@univerjs/design';import{useRef as _0x55dbd9,createElement as _0x33cec9,forwardRef as _0x463c3d,useState as _0x113df0,useEffect as _0x5cde6f}from'react';import{CollaborationEvent as _0x38bd9d,parseProtocolChangeset as _0x2e8d75}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x400127,SessionStatus as _0x44c041,UniverCollaborationClientPlugin as _0x31fc54}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4e391f,SetWorksheetActiveOperation as _0xa47d15}from'@univerjs/sheets';import{BehaviorSubject as _0x454a39,Subject as _0x207475}from'rxjs';import{takeUntil as _0x20d7f9,throttleTime as _0x4d919c}from'rxjs/operators';import{SetZoomRatioOperation as _0x1d5e61,SetScrollOperation as _0x3b9e17}from'@univerjs/sheets-ui';function k({ref:_0x3935e9,..._0x470905}){const _0x1a3225=_0x58be21,{icon:_0x348689,id:_0x1f5f0d,className:_0x20d50a,extend:_0x32da29,..._0x1fff24}=_0x470905,_0x493e98=('univerjs-icon\x20univerjs-icon-'+_0x1f5f0d+'\x20'+(_0x20d50a||''))[_0x1a3225(0x1dc)](),_0x2761d0=_0x55dbd9('_'+Oe());return G(_0x348689,''+_0x1f5f0d,{'defIds':_0x348689[_0x1a3225(0x1de)],'idSuffix':_0x2761d0[_0x1a3225(0x184)]},{'ref':_0x3935e9,'className':_0x493e98,..._0x1fff24},_0x32da29);}function G(_0xfc34d5,_0x189a90,_0xd8a4ae,_0x2ce4e0,_0x39d43c){const _0x31f884=_0x58be21;return _0x33cec9(_0xfc34d5['tag'],{'key':_0x189a90,...be(_0xfc34d5,_0xd8a4ae,_0x39d43c),..._0x2ce4e0},(Ee(_0xfc34d5,_0xd8a4ae)[_0x31f884(0x1f2)]||[])['map']((_0xd9cc97,_0x15f1e7)=>G(_0xd9cc97,_0x189a90+'-'+_0xfc34d5[_0x31f884(0x1e3)]+'-'+_0x15f1e7,_0xd8a4ae,void 0x0,_0x39d43c)));}function _0xaac7(_0x461b57,_0x27e777){_0x461b57=_0x461b57-0x14f;const _0x230691=_0x2306();let _0xaac768=_0x230691[_0x461b57];return _0xaac768;}function be(_0x4e6185,_0x46e2e6,_0x343c87){const _0x21d200=_0x58be21,_0x3f3900={..._0x4e6185[_0x21d200(0x1da)]};_0x343c87!=null&&_0x343c87[_0x21d200(0x1ad)]&&_0x3f3900['fill']===_0x21d200(0x1ad)&&(_0x3f3900['fill']=_0x343c87[_0x21d200(0x1ad)]),_0x4e6185[_0x21d200(0x1e3)]===_0x21d200(0x1ec)&&_0x3f3900['id']&&(_0x3f3900['id']=_0x3f3900['id']+_0x46e2e6[_0x21d200(0x17f)]),Object['entries'](_0x3f3900)[_0x21d200(0x1ca)](([_0x55ae9a,_0x28c415])=>{const _0x2bada1=_0x21d200;_0x55ae9a===_0x2bada1(0x1ec)&&typeof _0x28c415==_0x2bada1(0x1cd)&&(_0x3f3900[_0x55ae9a]=_0x28c415['replace'](/url\(#(.*)\)/,'url(#$1'+_0x46e2e6['idSuffix']+')'));});const {defIds:_0x2a9882}=_0x46e2e6;return!_0x2a9882||_0x2a9882['length']===0x0||(_0x4e6185[_0x21d200(0x1e3)]===_0x21d200(0x173)&&_0x3f3900[_0x21d200(0x1ce)]&&(_0x3f3900[_0x21d200(0x1ce)]=_0x3f3900[_0x21d200(0x1ce)]+_0x46e2e6[_0x21d200(0x17f)]),Object[_0x21d200(0x15e)](_0x3f3900)[_0x21d200(0x1ca)](([_0x5e36fa,_0x491aaf])=>{const _0x176ff4=_0x21d200;typeof _0x491aaf==_0x176ff4(0x1cd)&&(_0x3f3900[_0x5e36fa]=_0x491aaf['replace'](/url\(#(.*)\)/,'url(#$1'+_0x46e2e6['idSuffix']+')'));})),_0x3f3900;}function Ee(_0x509c65,_0x107cdf){const _0x2c86a6=_0x58be21;var _0x53f76d;const {defIds:_0x54c0a8}=_0x107cdf;return!_0x54c0a8||_0x54c0a8[_0x2c86a6(0x1b5)]===0x0?_0x509c65:_0x509c65[_0x2c86a6(0x1e3)]===_0x2c86a6(0x1c7)&&((_0x53f76d=_0x509c65[_0x2c86a6(0x1f2)])!=null&&_0x53f76d[_0x2c86a6(0x1b5)])?{..._0x509c65,'children':_0x509c65['children']['map'](_0x1e50cd=>typeof _0x1e50cd[_0x2c86a6(0x1da)]['id']==_0x2c86a6(0x1cd)&&_0x54c0a8&&_0x54c0a8[_0x2c86a6(0x17d)](_0x1e50cd[_0x2c86a6(0x1da)]['id'])?{..._0x1e50cd,'attrs':{..._0x1e50cd[_0x2c86a6(0x1da)],'id':_0x1e50cd[_0x2c86a6(0x1da)]['id']+_0x107cdf[_0x2c86a6(0x17f)]}}:_0x1e50cd)}:_0x509c65;}function Oe(){const _0x35957b=_0x58be21;return Math[_0x35957b(0x186)]()[_0x35957b(0x1d1)](0x24)[_0x35957b(0x1fb)](0x2,0x8);}k['displayName']=_0x58be21(0x1a5);const we={'tag':_0x58be21(0x1e7),'attrs':{'xmlns':_0x58be21(0x1af),'fill':_0x58be21(0x181),'viewBox':_0x58be21(0x19b),'width':_0x58be21(0x1e1),'height':_0x58be21(0x1e1)},'children':[{'tag':_0x58be21(0x1f4),'attrs':{'fill':_0x58be21(0x1c5),'d':_0x58be21(0x174)}},{'tag':_0x58be21(0x1f4),'attrs':{'fill':_0x58be21(0x1c5),'d':_0x58be21(0x1c8),'fillRule':'evenodd','clipRule':'evenodd'}}]},W=_0x463c3d(function(_0x27318e,_0x2bac17){const _0x237136=_0x58be21;return _0x33cec9(k,Object[_0x237136(0x194)]({},_0x27318e,{'id':_0x237136(0x1ed),'ref':_0x2bac17,'icon':we}));});W['displayName']=_0x58be21(0x1a8);class L extends _0x547c04{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x58be21(0x1b9)](_0x16e3b4){const _0x3cb6d1=_0x58be21;return this['_sharedOperations'][_0x3cb6d1(0x1f8)](_0x16e3b4),_0x590fc1(()=>this[_0x3cb6d1(0x165)][_0x3cb6d1(0x158)](_0x16e3b4));}['registerInitialStateReporter'](_0x2fb14f){const _0x46e70c=_0x58be21;return this[_0x46e70c(0x182)][_0x46e70c(0x1f8)](_0x2fb14f),_0x590fc1(()=>this[_0x46e70c(0x182)][_0x46e70c(0x158)](_0x2fb14f));}[_0x58be21(0x19e)](_0x13fef3){const _0x5ccaf7=_0x58be21;return this[_0x5ccaf7(0x165)][_0x5ccaf7(0x191)](_0x13fef3);}[_0x58be21(0x1e8)](_0x556d59){const _0x14283c=_0x58be21;return Array[_0x14283c(0x1a7)](this[_0x14283c(0x182)])[_0x14283c(0x183)](_0x33636a=>_0x33636a(_0x556d59));}}var Ne=Object[_0x58be21(0x1d2)],Y=(_0x24ee50,_0x36b5a9,_0x21a2b3,_0x152bb9)=>{for(var _0x542bfc=_0x152bb9>0x1?void 0x0:_0x152bb9?Ne(_0x36b5a9,_0x21a2b3):_0x36b5a9,_0x4f8ae6=_0x24ee50['length']-0x1,_0x189c00;_0x4f8ae6>=0x0;_0x4f8ae6--)(_0x189c00=_0x24ee50[_0x4f8ae6])&&(_0x542bfc=_0x189c00(_0x542bfc)||_0x542bfc);return _0x542bfc;},_=(_0x30c595,_0xf067cd)=>(_0x4839d4,_0x158bff)=>_0xf067cd(_0x4839d4,_0x158bff,_0x30c595);let S=class extends _0x42deb7{constructor(_0x336ba6,_0x31c4c6,_0x3372b0){const _0x37b61c=_0x58be21;super(),u(this,_0x37b61c(0x1f1),new Map()),(this[_0x37b61c(0x15b)]=_0x336ba6,this[_0x37b61c(0x1a2)]=_0x31c4c6,this[_0x37b61c(0x1e6)]=_0x3372b0,this[_0x37b61c(0x1b7)]());}async[_0x58be21(0x1f6)](_0x9bf26c){const _0x50f6d4=_0x58be21;return this['_entities']['has'](_0x9bf26c)||await this[_0x50f6d4(0x1d9)](_0x9bf26c),this[_0x50f6d4(0x1f1)][_0x50f6d4(0x185)](_0x9bf26c);}[_0x58be21(0x1a1)](_0x12361c){const _0x5692b8=_0x58be21;var _0x2c8c3e;return(_0x2c8c3e=this[_0x5692b8(0x1f1)][_0x5692b8(0x185)](_0x12361c))!=null?_0x2c8c3e:null;}[_0x58be21(0x1b7)](){const _0x4c92e6=_0x58be21;this[_0x4c92e6(0x15b)]['getTypeOfUnitAdded$'](_0x509fea[_0x4c92e6(0x1bf)])[_0x4c92e6(0x160)](_0x20d7f9(this[_0x4c92e6(0x196)]))[_0x4c92e6(0x1e9)](async _0xf06ef5=>{const _0x3538f6=_0x4c92e6,_0x43b2ab=_0xf06ef5[_0x3538f6(0x1d5)]();this[_0x3538f6(0x1f1)][_0x3538f6(0x191)](_0x43b2ab)||this[_0x3538f6(0x1d9)](_0x43b2ab);}),this[_0x4c92e6(0x15b)][_0x4c92e6(0x1f0)](_0x509fea['UNIVER_SHEET'])[_0x4c92e6(0x160)](_0x20d7f9(this['dispose$']))['subscribe'](_0x223db8=>{const _0x40e3a1=_0x4c92e6,_0x447ef4=_0x223db8[_0x40e3a1(0x1d5)](),_0x23ac25=this[_0x40e3a1(0x1f1)][_0x40e3a1(0x185)](_0x447ef4);_0x23ac25==null||_0x23ac25['dispose']();});}async[_0x58be21(0x1d9)](_0x15c841){const _0x1823fa=_0x58be21,_0x12093b=await this[_0x1823fa(0x1e6)][_0x1823fa(0x1b2)](_0x15c841),_0x1453c9=this[_0x1823fa(0x1a2)][_0x1823fa(0x1cf)](N,_0x15c841,_0x12093b);return _0x1453c9[_0x1823fa(0x1c2)](),this['_entities']['set'](_0x15c841,_0x1453c9),_0x1453c9;}};S=Y([_(0x0,_0x36a4cd),_(0x1,_0x18c588(_0x3b9bd8)),_(0x2,_0x18c588(_0x400127))],S);var c=(_0x316506=>(_0x316506['OFFLINE']='offline',_0x316506[_0x58be21(0x1c0)]='idle',_0x316506[_0x58be21(0x1d4)]=_0x58be21(0x179),_0x316506['NOT_FOLLOWING']=_0x58be21(0x19c),_0x316506['PRESENTING']=_0x58be21(0x197),_0x316506))(c||{});const Ce=_0x58be21(0x17c),De=0xc8;let N=class extends _0x42deb7{constructor(_0x33d7be,_0x4bd656,_0x4dd956,_0x41f4c6,_0x4d9efe){const _0x5af76b=_0x58be21;super(),u(this,_0x5af76b(0x190),new _0x454a39(_0x5af76b(0x1a9))),u(this,_0x5af76b(0x1c6),this[_0x5af76b(0x190)][_0x5af76b(0x1a3)]()),u(this,'_init',!0x1),u(this,_0x5af76b(0x1bd),null),u(this,'_presenter',null),(this['_unitID']=_0x33d7be,this[_0x5af76b(0x177)]=_0x4bd656,this[_0x5af76b(0x1be)]=_0x4dd956,this[_0x5af76b(0x1f9)]=_0x41f4c6,this[_0x5af76b(0x19d)]=_0x4d9efe);}get['_status'](){const _0xc4addf=_0x58be21;return this[_0xc4addf(0x190)][_0xc4addf(0x1a6)]();}[_0x58be21(0x178)](){const _0x9cf060=_0x58be21;var _0x39bd09;(_0x39bd09=this[_0x9cf060(0x1bd)])==null||_0x39bd09[_0x9cf060(0x178)](),this['_status$'][_0x9cf060(0x1d0)](_0x9cf060(0x1a9)),this[_0x9cf060(0x190)]['complete']();}[_0x58be21(0x1b6)](){const _0x44ff67=_0x58be21;return this[_0x44ff67(0x1c1)];}['init'](){const _0x938c1d=_0x58be21;this[_0x938c1d(0x1b7)]||(this[_0x938c1d(0x1b7)]=!0x0,this[_0x938c1d(0x177)]['sessionStatus$'][_0x938c1d(0x160)](_0x20d7f9(this[_0x938c1d(0x196)]))[_0x938c1d(0x1e9)](_0x3cd0d7=>{const _0x164f6a=_0x938c1d;switch(_0x3cd0d7){case _0x44c041[_0x164f6a(0x1e4)]:this[_0x164f6a(0x171)]();break;case _0x44c041[_0x164f6a(0x154)]:this[_0x164f6a(0x162)]();break;}}),this[_0x938c1d(0x177)][_0x938c1d(0x172)][_0x938c1d(0x160)](_0x20d7f9(this[_0x938c1d(0x196)]))[_0x938c1d(0x1e9)](_0x413ca8=>{const _0x17d641=_0x938c1d,{eventID:_0x3b51ad}=_0x413ca8;switch(_0x3b51ad){case _0x38bd9d[_0x17d641(0x189)]:this[_0x17d641(0x18b)](_0x413ca8);break;case _0x38bd9d[_0x17d641(0x163)]:this['_handleOperation'](_0x413ca8);break;case _0x38bd9d['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x38bd9d[_0x17d641(0x14f)]:this['_handleNewChangeSets'](_0x413ca8);break;}}));}[_0x58be21(0x168)](){const _0x229155=_0x58be21;this[_0x229155(0x177)][_0x229155(0x18c)]({'eventID':_0x38bd9d[_0x229155(0x16f)],'data':{'unitID':this[_0x229155(0x1d3)],'userID':this[_0x229155(0x177)]['getMemberID']()}},this[_0x229155(0x1d3)]);}[_0x58be21(0x18a)](){const _0x42c270=_0x58be21;this[_0x42c270(0x1c1)]===_0x42c270(0x197)&&(this['_status$'][_0x42c270(0x1d0)](_0x42c270(0x1a9)),this['_collabSession'][_0x42c270(0x18c)]({'eventID':_0x38bd9d[_0x42c270(0x175)],'data':{'unitID':this['_unitID']}},this[_0x42c270(0x1d3)]));}['startFollowing'](){const _0x57e2b6=_0x58be21;this['_status']===_0x57e2b6(0x19c)&&(this[_0x57e2b6(0x190)][_0x57e2b6(0x1d0)](_0x57e2b6(0x179)),this[_0x57e2b6(0x161)]());}[_0x58be21(0x16a)](){const _0x4b889c=_0x58be21;this[_0x4b889c(0x1c1)]===_0x4b889c(0x179)&&this[_0x4b889c(0x1ba)]();}[_0x58be21(0x18b)](_0x2b875d){const _0x5207a5=_0x58be21,{presenter:_0x5db7f3}=_0x2b875d[_0x5207a5(0x16c)],_0x689d45=this[_0x5207a5(0x177)]['getMemberID']();this[_0x5207a5(0x1c3)]=_0x5db7f3,_0x5db7f3===_0x689d45?(this['_stopFollowing'](),this[_0x5207a5(0x187)]()):this[_0x5207a5(0x1c1)]!==_0x5207a5(0x19c)&&(this[_0x5207a5(0x1cb)](),this[_0x5207a5(0x161)]());}[_0x58be21(0x1cc)](){const _0x1e496a=_0x58be21,_0x58e253={'eventID':_0x38bd9d[_0x1e496a(0x1ee)]};this[_0x1e496a(0x177)]['send'](_0x58e253,this['_unitID']);}[_0x58be21(0x1df)](){const _0x25cae7=_0x58be21;this[_0x25cae7(0x1c3)]=null,this[_0x25cae7(0x1c1)]!==_0x25cae7(0x197)&&this[_0x25cae7(0x1ab)]();}[_0x58be21(0x18f)](_0x755cc5){const _0x4e150d=_0x58be21;if(this[_0x4e150d(0x1c1)]===_0x4e150d(0x179)&&this[_0x4e150d(0x1c3)]===_0x755cc5[_0x4e150d(0x16c)][_0x4e150d(0x188)]){const _0x351478=_0x2e8d75(_0x755cc5['data'])['mutations'][_0x4e150d(0x19f)]()[_0x4e150d(0x1ae)](_0x548e33=>_0x548e33['id']===_0x4e391f['id']);if(_0x351478){const _0x2c19f1=_0x351478[_0x4e150d(0x1db)][_0x4e150d(0x195)],_0x300148=_0x351478[_0x4e150d(0x1db)][_0x4e150d(0x192)]['id'];setTimeout(()=>{const _0x5d920c=_0x4e150d;this[_0x5d920c(0x19d)][_0x5d920c(0x156)](_0xa47d15['id'],{'unitId':_0x2c19f1,'subUnitId':_0x300148},{'fromCollab':!0x0});});}}}[_0x58be21(0x187)](){const _0x5cef56=_0x58be21;this[_0x5cef56(0x190)][_0x5cef56(0x1d0)]('presenting');const _0x110727=new Map(),_0x864e4=this[_0x5cef56(0x1bd)]=new _0x4ff43e();_0x864e4[_0x5cef56(0x1f8)](_0x590fc1(()=>{const _0x22ae66=_0x5cef56;_0x110727[_0x22ae66(0x1ca)](_0x34772c=>_0x34772c['complete']()),_0x110727[_0x22ae66(0x1bc)]();})),_0x864e4['add'](this[_0x5cef56(0x19d)][_0x5cef56(0x1d6)](_0x46a4b5=>{const _0x3c4a3b=_0x5cef56;var _0x34ca34;if(_0x46a4b5['type']!==_0x9accce[_0x3c4a3b(0x1fa)]||!this[_0x3c4a3b(0x1f9)][_0x3c4a3b(0x19e)](_0x46a4b5['id']))return;const {id:_0x2dea53}=_0x46a4b5;let _0x125a78;_0x110727[_0x3c4a3b(0x191)](_0x2dea53)?_0x125a78=_0x110727[_0x3c4a3b(0x185)](_0x2dea53):(_0x125a78=new _0x207475(),_0x110727[_0x3c4a3b(0x1f5)](_0x2dea53,_0x125a78),_0x125a78[_0x3c4a3b(0x160)](_0x4d919c((_0x34ca34=this[_0x3c4a3b(0x1be)][_0x3c4a3b(0x1e0)](Ce))!=null?_0x34ca34:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3c4a3b(0x1e9)](_0x3aaf5b=>{const _0x952dd0=_0x3c4a3b;this[_0x952dd0(0x177)][_0x952dd0(0x18c)]({'eventID':_0x38bd9d[_0x952dd0(0x163)],'data':{'unitID':this[_0x952dd0(0x1d3)],'operations':{[_0x3aaf5b['id']]:{'id':_0x3aaf5b['id'],'params':JSON['stringify'](_0x3aaf5b[_0x952dd0(0x1db)])}}}},this['_unitID']);})),_0x125a78['next'](_0x46a4b5);})),this[_0x5cef56(0x1f9)][_0x5cef56(0x1e8)](this[_0x5cef56(0x1d3)])[_0x5cef56(0x1ca)](_0x200044=>this[_0x5cef56(0x177)][_0x5cef56(0x18c)]({'eventID':_0x38bd9d[_0x5cef56(0x163)],'data':{'unitID':this[_0x5cef56(0x1d3)],'operations':{[_0x200044['id']]:{'id':_0x200044['id'],'params':JSON[_0x5cef56(0x1f7)](_0x200044[_0x5cef56(0x1db)])}}}},this['_unitID']));}[_0x58be21(0x1cb)](){const _0x30bca6=_0x58be21;var _0x8202d6;this[_0x30bca6(0x190)][_0x30bca6(0x1d0)](_0x30bca6(0x1a9)),(_0x8202d6=this[_0x30bca6(0x1bd)])==null||_0x8202d6[_0x30bca6(0x178)](),this[_0x30bca6(0x1bd)]=null;}[_0x58be21(0x161)](){const _0x34042b=_0x58be21;var _0x29c62f;(_0x29c62f=this[_0x34042b(0x1bd)])==null||_0x29c62f[_0x34042b(0x178)](),this['_status$'][_0x34042b(0x1d0)]('following');}[_0x58be21(0x1ab)](){const _0x2b6325=_0x58be21;var _0x2d5deb;this[_0x2b6325(0x190)]['next'](_0x2b6325(0x1a9)),(_0x2d5deb=this[_0x2b6325(0x1bd)])==null||_0x2d5deb['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x9ee783=_0x58be21;var _0x32f8fa;this[_0x9ee783(0x190)][_0x9ee783(0x1d0)](_0x9ee783(0x19c)),(_0x32f8fa=this['_commandDisposable'])==null||_0x32f8fa[_0x9ee783(0x178)]();}[_0x58be21(0x199)](_0x1336b0){const _0x3d0d04=_0x58be21;if([_0x3d0d04(0x197),_0x3d0d04(0x19c),_0x3d0d04(0x1eb)][_0x3d0d04(0x17d)](this[_0x3d0d04(0x1c1)])||!_0x1336b0[_0x3d0d04(0x16c)][_0x3d0d04(0x16d)]||_0x1336b0[_0x3d0d04(0x16c)][_0x3d0d04(0x16d)]===this['_collabSession'][_0x3d0d04(0x15f)]())return;this[_0x3d0d04(0x1c1)]===_0x3d0d04(0x1a9)&&this[_0x3d0d04(0x161)]();const _0x4a8f03=_0x1336b0[_0x3d0d04(0x16c)]['operations'];Object['values'](_0x4a8f03)['forEach'](_0x33f46e=>{const _0x2673de=_0x3d0d04;this[_0x2673de(0x19d)][_0x2673de(0x156)](_0x33f46e['id'],_0x33f46e[_0x2673de(0x1db)]?JSON[_0x2673de(0x180)](_0x33f46e[_0x2673de(0x1db)]):null,{'fromCollab':!0x0});});}[_0x58be21(0x171)](){const _0x3716d6=_0x58be21;var _0x5e0857;this[_0x3716d6(0x190)][_0x3716d6(0x1d0)]('offline'),(_0x5e0857=this[_0x3716d6(0x1bd)])==null||_0x5e0857[_0x3716d6(0x178)]();}[_0x58be21(0x162)](){const _0x2ee202=_0x58be21;this['_status$'][_0x2ee202(0x1d0)](_0x2ee202(0x1a9)),this[_0x2ee202(0x1cc)]();}};N=Y([_(0x2,_0x3e291d),_(0x3,_0x18c588(L)),_(0x4,_0x532c3a)],N);function Le(){const _0x6e8f76=_0x58be21,_0xdf9fed=_0x4e9683(S),_0x34d628=_0x4e9683(_0x36a4cd),_0x15e335=_0x244005(()=>_0x34d628['getCurrentTypeOfUnit$'](_0x509fea[_0x6e8f76(0x1bf)]),void 0x0,!0x1,[]),[_0x11ed75,_0x161cf6]=_0x113df0(null),[_0x174253,_0x54116b]=_0x113df0(c[_0x6e8f76(0x1c0)]),_0x3b293e=_0x55dbd9(null);return _0x5cde6f(()=>(_0x15e335&&_0xdf9fed[_0x6e8f76(0x1f6)](_0x15e335[_0x6e8f76(0x1d5)]())[_0x6e8f76(0x164)](_0x49be4e=>{const _0x32b466=_0x6e8f76;_0x161cf6(_0x49be4e),_0x3b293e[_0x32b466(0x184)]=_0x49be4e[_0x32b466(0x1c6)][_0x32b466(0x1e9)](_0x4b6216=>{_0x54116b(_0x4b6216);});}),()=>{const _0x2f8ada=_0x6e8f76;var _0x3560e7;(_0x3560e7=_0x3b293e[_0x2f8ada(0x184)])==null||_0x3560e7[_0x2f8ada(0x157)](),_0x3b293e[_0x2f8ada(0x184)]=null;}),[_0x15e335,_0xdf9fed]),_0x11ed75?_0x1ab26e(_0x2dbba2,{'align':'end','disabled':_0x174253===c[_0x6e8f76(0x1e4)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x1ab26e(Re,{'status':_0x174253,'coordinator':_0x11ed75}),'children':_0x1ab26e(_0x6e8f76(0x159),{'className':_0x2c54d3(_0x6e8f76(0x1dd),{'univer-cursor-not-allowed':_0x174253===c[_0x6e8f76(0x1e4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x174253!==c[_0x6e8f76(0x1e4)]}),'type':_0x6e8f76(0x159),'children':_0x1ab26e(W,{'className':'univer-size-4'})})}):null;}function Re(_0x379685){const _0x340e13=_0x58be21,{status:_0x3f426b,coordinator:_0x2454f8}=_0x379685;switch(_0x3f426b){case c[_0x340e13(0x1c0)]:return _0x1ab26e($e,{'coordinator':_0x2454f8});case c[_0x340e13(0x1d4)]:return _0x1ab26e(xe,{'coordinator':_0x2454f8});case c[_0x340e13(0x151)]:return _0x1ab26e(Pe,{'coordinator':_0x2454f8});case c['OFFLINE']:return _0x1ab26e(Te,{});case c[_0x340e13(0x17e)]:return _0x1ab26e(Ae,{'coordinator':_0x2454f8});default:return null;}}function $e(_0x23e936){const _0x39f462=_0x58be21,{coordinator:_0x526b8a}=_0x23e936;return _0x21b027(_0x13995b,{'children':[_0x1ab26e(_0x39f462(0x193),{'className':_0x39f462(0x17b),'children':_0x39f462(0x176)}),_0x1ab26e(_0x380710,{'onClick':()=>_0x526b8a[_0x39f462(0x168)](),'children':_0x39f462(0x170)})]});}function xe(_0x4731bb){const _0x4e8536=_0x58be21,{coordinator:_0x41302b}=_0x4731bb;return _0x21b027(_0x13995b,{'children':[_0x1ab26e(_0x4e8536(0x193),{'className':_0x4e8536(0x17b),'children':_0x4e8536(0x1b4)}),_0x1ab26e(_0x380710,{'onClick':()=>_0x41302b['stopFollowing'](),'children':_0x4e8536(0x16e)})]});}function Pe(_0x41fb48){const _0x3d99fc=_0x58be21,{coordinator:_0x197e17}=_0x41fb48;return _0x21b027(_0x13995b,{'children':[_0x1ab26e(_0x3d99fc(0x193),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1ab26e(_0x380710,{'variant':_0x3d99fc(0x1aa),'onClick':()=>_0x197e17[_0x3d99fc(0x16b)](),'children':_0x3d99fc(0x18d)})]});}function Ae(_0x1bfa8a){const _0x4c733c=_0x58be21,{coordinator:_0x1ba2d0}=_0x1bfa8a;return _0x21b027(_0x13995b,{'children':[_0x1ab26e(_0x4c733c(0x193),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4c733c(0x166)}),_0x1ab26e(_0x380710,{'variant':_0x4c733c(0x17a),'onClick':()=>_0x1ba2d0[_0x4c733c(0x18a)](),'children':_0x4c733c(0x1b1)})]});}function Te(){const _0x9ccbd6=_0x58be21;return _0x1ab26e(_0x13995b,{'children':_0x9ccbd6(0x15c)});}var Fe=Object[_0x58be21(0x1d2)],He=(_0x4ec54a,_0x1aa59d,_0x5c9ae4,_0x478b46)=>{const _0x4d8a7b=_0x58be21;for(var _0x1c832a=_0x478b46>0x1?void 0x0:_0x478b46?Fe(_0x1aa59d,_0x5c9ae4):_0x1aa59d,_0x3c32be=_0x4ec54a[_0x4d8a7b(0x1b5)]-0x1,_0x5b1f8b;_0x3c32be>=0x0;_0x3c32be--)(_0x5b1f8b=_0x4ec54a[_0x3c32be])&&(_0x1c832a=_0x5b1f8b(_0x1c832a)||_0x1c832a);return _0x1c832a;},A=(_0x438ef3,_0xa434f9)=>(_0x5b73cb,_0x1ada39)=>_0xa434f9(_0x5b73cb,_0x1ada39,_0x438ef3);let m=class extends _0x547c04{constructor(_0x29de5a,_0x3f7caf){const _0xfa37ee=_0x58be21;super(),this['_injector']=_0x29de5a,this[_0xfa37ee(0x19a)]=_0x3f7caf,this[_0xfa37ee(0x1ea)]();}[_0x58be21(0x1ea)](){const _0x2f4ee9=_0x58be21;this[_0x2f4ee9(0x167)](this[_0x2f4ee9(0x19a)][_0x2f4ee9(0x18e)](_0x3290a0[_0x2f4ee9(0x1ef)],()=>_0x260eda(Le,this[_0x2f4ee9(0x1a2)])));}};m=He([A(0x0,_0x18c588(_0x3b9bd8)),A(0x1,_0x35a79c)],m);const ye=_0x58be21(0x15a),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x29dfb3,_0x192cac,_0x5e0e41,_0x3b4e0c)=>{const _0x7d7afd=_0x58be21;for(var _0xf733c4=_0x3b4e0c>0x1?void 0x0:_0x3b4e0c?Ue(_0x192cac,_0x5e0e41):_0x192cac,_0x2346f1=_0x29dfb3[_0x7d7afd(0x1b5)]-0x1,_0x5c728b;_0x2346f1>=0x0;_0x2346f1--)(_0x5c728b=_0x29dfb3[_0x2346f1])&&(_0xf733c4=_0x5c728b(_0xf733c4)||_0xf733c4);return _0xf733c4;},je=(_0x2b01b9,_0x9666e0)=>(_0x2ee68c,_0x284bb2)=>_0x9666e0(_0x2ee68c,_0x284bb2,_0x2b01b9);let I=class extends _0x547c04{constructor(_0x47fd2b){const _0x5e42ee=_0x58be21;super(),this[_0x5e42ee(0x1f9)]=_0x47fd2b,this[_0x5e42ee(0x1b7)]();}[_0x58be21(0x1b7)](){const _0x11297e=_0x58be21;[_0x1d5e61['id'],_0x3b9e17['id'],_0xa47d15['id']][_0x11297e(0x1ca)](_0x134d82=>{const _0x16c6a0=_0x11297e;this['disposeWithMe'](this[_0x16c6a0(0x1f9)][_0x16c6a0(0x1b9)](_0x134d82));});}};I=Ve([je(0x0,_0x18c588(L))],I);function _0x2306(){const _0x51f625=['requireSession','834145HfMaOX','You\x27re\x20following\x20the\x20presenter','length','getStatus','_init','183342bsReZN','registerSharedOperation','_stopFollowing','onStarting','clear','_commandDisposable','_configService','UNIVER_SHEET','IDLE','_status','init','_presenter','onRendered','currentColor','status$','defs','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','setConfig','forEach','_stopPresenting','_fetchOperations','string','xlink:href','createInstance','next','toString','getOwnPropertyDescriptor','_unitID','FOLLOWING','getUnitId','onCommandExecuted','226976nIyajQ','6967477XgqbKw','_startLiveShareCoordinator','attrs','params','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','defIds','_handleTerminate','getConfig','1em','13512dpZWOX','tag','OFFLINE','20qlhoGt','_collabSessionService','svg','getInitialStates','subscribe','_mountLiveShare','offline','mask','live-share-icon','LIVESHARE_FETCH_OPERATIONS','HEADER_MENU','getTypeOfUnitDisposed$','_entities','children','override','path','set','getLiveShareCoordinator','stringify','add','_liveShareService','OPERATION','substring','NEW_CHANGESETS','UNIVER_LIVE_SHARE_PLUGIN','NOT_FOLLOWING','type','1499134YTNZAB','ONLINE','defineProperty','executeCommand','unsubscribe','delete','button','live-share.config','_univerInstanceService','You\x27are\x20offline.','1sWaAHA','entries','getMemberID','pipe','_startFollowing','_handleOnline','LIVESHARE_OPERATION','then','_sharedOperations','You\x27re\x20presenting\x20the\x20document','disposeWithMe','tryStartPresenting','36wcfPnK','stopFollowing','startFollowing','data','presenter','Stop\x20following','LIVESHARE_REQUEST_HOST','Start','_handleOffline','event$','use','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','LIVESHARE_TERMINATE','Present\x20this\x20document','_collabSession','dispose','following','default','univer-mb-3\x20univer-w-full\x20univer-text-sm','SAME_OPERATION_SHARE_INTERVAL','includes','PRESENTING','idSuffix','parse','none','_reporters','map','current','get','random','_startPresenting','memberID','LIVESHARE_NEW_HOST','stopPresenting','_handleNewHost','send','Start\x20following','registerComponent','_handleNewChangeSets','_status$','has','sheet','div','assign','unitId','dispose$','presenting','12NYuzix','_handleOperation','_uiPartsService','0\x200\x2017\x2017','not-following','_commandService','shouldShareOperation','reverse','symbol','getLiveShareCoordinatorSync','_injector','asObservable','UNIVER_UNKNOWN','UniverIcon','getValue','from','LiveShareIcon','idle','text','_beIdle','666420mCKaAs','colorChannel1','find','http://www.w3.org/2000/svg','_config','Stop\x20presenting'];_0x2306=function(){return _0x51f625;};return _0x2306();}var Me=Object[_0x58be21(0x155)],ke=Object[_0x58be21(0x1d2)],Ge=(_0x250725,_0x385734,_0xbe8c76)=>_0x385734 in _0x250725?Me(_0x250725,_0x385734,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbe8c76}):_0x250725[_0x385734]=_0xbe8c76,We=(_0x466264,_0x556e4c,_0x3ae1c7,_0xf7c6c4)=>{const _0x4ee645=_0x58be21;for(var _0x4ee4e3=_0xf7c6c4>0x1?void 0x0:_0xf7c6c4?ke(_0x556e4c,_0x3ae1c7):_0x556e4c,_0x3fd3d4=_0x466264[_0x4ee645(0x1b5)]-0x1,_0x1935c5;_0x3fd3d4>=0x0;_0x3fd3d4--)(_0x1935c5=_0x466264[_0x3fd3d4])&&(_0x4ee4e3=_0x1935c5(_0x4ee4e3)||_0x4ee4e3);return _0x4ee4e3;},F=(_0xfbea65,_0xc7c761)=>(_0x46875a,_0x399167)=>_0xc7c761(_0x46875a,_0x399167,_0xfbea65),B=(_0x467e22,_0x2b7147,_0x32af21)=>Ge(_0x467e22,typeof _0x2b7147!=_0x58be21(0x1a0)?_0x2b7147+'':_0x2b7147,_0x32af21);const Ye=_0x58be21(0x150);let b=class extends _0x2006da{constructor(_0x4e81d2=T,_0x473467,_0x5d16f6){const _0x24a1e3=_0x58be21;super(),this[_0x24a1e3(0x1b0)]=_0x4e81d2,this[_0x24a1e3(0x1a2)]=_0x473467,this[_0x24a1e3(0x1be)]=_0x5d16f6;const {..._0x5aad84}=_0x5d8dd9({},T,this['_config']);this[_0x24a1e3(0x1be)][_0x24a1e3(0x1c9)](ye,_0x5aad84);}[_0x58be21(0x1bb)](){const _0x4c97e2=_0x58be21;_0x2d528c(this['_injector'],_0x447eb4([[L],[S],[I],[m]],this[_0x4c97e2(0x1b0)][_0x4c97e2(0x1f3)])),_0x10a22a(this[_0x4c97e2(0x1a2)],[[I]]);}[_0x58be21(0x1c4)](){const _0x559a02=_0x58be21;_0x10a22a(this[_0x559a02(0x1a2)],[[m]]);}};B(b,_0x58be21(0x152),_0x509fea[_0x58be21(0x1a4)]),B(b,'pluginName',Ye),b=We([_0x523668(_0x31fc54),F(0x1,_0x18c588(_0x3b9bd8)),F(0x2,_0x3e291d)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
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};
@@ -6,6 +6,8 @@ export declare class UniverLiveSharePlugin extends Plugin {
6
6
  private readonly _configService;
7
7
  static type: UniverInstanceType;
8
8
  static pluginName: string;
9
+ static packageName: string;
10
+ static version: string;
9
11
  constructor(_config: IUniverLiveShareConfig | undefined, _injector: Injector, _configService: IConfigService);
10
12
  onStarting(): void;
11
13
  onRendered(): void;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x5c5f(_0x44f27c,_0x4393c3){_0x44f27c=_0x44f27c-0x1ec;const _0x103d8c=_0x103d();let _0x5c5f49=_0x103d8c[_0x44f27c];return _0x5c5f49;}(function(_0x37a198,_0x531409){const _0x5279f7=_0x5c5f,_0x5e455e=_0x37a198();while(!![]){try{const _0x8900cb=parseInt(_0x5279f7(0x1f6))/0x1+parseInt(_0x5279f7(0x20f))/0x2*(-parseInt(_0x5279f7(0x1f2))/0x3)+-parseInt(_0x5279f7(0x203))/0x4*(parseInt(_0x5279f7(0x1f0))/0x5)+parseInt(_0x5279f7(0x1fa))/0x6*(parseInt(_0x5279f7(0x206))/0x7)+-parseInt(_0x5279f7(0x205))/0x8+-parseInt(_0x5279f7(0x1fc))/0x9*(-parseInt(_0x5279f7(0x1f3))/0xa)+parseInt(_0x5279f7(0x202))/0xb*(parseInt(_0x5279f7(0x20e))/0xc);if(_0x8900cb===_0x531409)break;else _0x5e455e['push'](_0x5e455e['shift']());}catch(_0x29ba24){_0x5e455e['push'](_0x5e455e['shift']());}}}(_0x103d,0xc9f5b),function(_0x138ea6,_0x45ded5){const _0x5bd65d=_0x5c5f;typeof exports==_0x5bd65d(0x204)&&typeof module<'u'?_0x45ded5(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x5bd65d(0x208)&&define[_0x5bd65d(0x1f7)]?define([_0x5bd65d(0x20d),_0x5bd65d(0x1fe),'@univerjs/core/facade'],_0x45ded5):(_0x138ea6=typeof globalThis<'u'?globalThis:_0x138ea6||self,_0x45ded5(_0x138ea6[_0x5bd65d(0x212)],_0x138ea6['UniverCore'],_0x138ea6[_0x5bd65d(0x20c)]));}(this,function(_0x2e7298,_0x159446,_0x287012){'use strict';const _0x46c45d=_0x5c5f;var _0x3890fd=Object[_0x46c45d(0x207)],_0x34c0d4=(_0x137e91,_0x42e31a,_0x3ef683)=>_0x42e31a in _0x137e91?_0x3890fd(_0x137e91,_0x42e31a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ef683}):_0x137e91[_0x42e31a]=_0x3ef683,_0x5ea4eb=(_0x3773ea,_0x45e129,_0x3b3326)=>_0x34c0d4(_0x3773ea,typeof _0x45e129!='symbol'?_0x45e129+'':_0x45e129,_0x3b3326);class _0x2406f8 extends _0x287012[_0x46c45d(0x1ef)]{constructor(){super(...arguments),_0x5ea4eb(this,'_liveShareController');}['_initialize'](_0x57a021){const _0x319a3e=_0x46c45d;this[_0x319a3e(0x216)]=_0x57a021['get'](_0x2e7298['LiveShareController']);}[_0x46c45d(0x1ff)](){const _0x26d3e4=_0x46c45d;var _0x3df807;const _0x4c75f7=this[_0x26d3e4(0x1fb)][_0x26d3e4(0x1ec)](_0x159446[_0x26d3e4(0x200)])[_0x26d3e4(0x20b)](_0x159446[_0x26d3e4(0x201)][_0x26d3e4(0x215)]);if(!_0x4c75f7)throw new Error(_0x26d3e4(0x1ee));const _0x2d93b8=_0x4c75f7['getUnitId'](),_0x2dfe0d=this[_0x26d3e4(0x216)][_0x26d3e4(0x214)](_0x2d93b8);return(_0x3df807=_0x2dfe0d==null?void 0x0:_0x2dfe0d[_0x26d3e4(0x20a)]())!=null?_0x3df807:_0x2e7298[_0x26d3e4(0x1f8)][_0x26d3e4(0x1f1)];}[_0x46c45d(0x1f5)](){const _0x2332a0=_0x46c45d,_0x27078d=this[_0x2332a0(0x1fb)]['get'](_0x159446[_0x2332a0(0x200)])[_0x2332a0(0x20b)](_0x159446[_0x2332a0(0x201)][_0x2332a0(0x215)]);if(!_0x27078d)throw new Error(_0x2332a0(0x1ee));const _0x3dff38=_0x27078d[_0x2332a0(0x1f4)](),_0x1fa106=this[_0x2332a0(0x216)][_0x2332a0(0x214)](_0x3dff38);if(!_0x1fa106)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1fa106[_0x2332a0(0x1f5)]();}[_0x46c45d(0x1ed)](){const _0x3eb39f=_0x46c45d,_0x3df49b=this[_0x3eb39f(0x1fb)][_0x3eb39f(0x1ec)](_0x159446['IUniverInstanceService'])[_0x3eb39f(0x20b)](_0x159446['UniverInstanceType'][_0x3eb39f(0x215)]);if(!_0x3df49b)throw new Error(_0x3eb39f(0x1ee));const _0x32f909=_0x3df49b[_0x3eb39f(0x1f4)](),_0x2c065d=this[_0x3eb39f(0x216)][_0x3eb39f(0x214)](_0x32f909);if(!_0x2c065d)throw new Error(_0x3eb39f(0x210));_0x2c065d['stopFollowing']();}[_0x46c45d(0x213)](){const _0x3c7eba=_0x46c45d,_0x2c63cc=this[_0x3c7eba(0x1fb)][_0x3c7eba(0x1ec)](_0x159446[_0x3c7eba(0x200)])[_0x3c7eba(0x20b)](_0x159446[_0x3c7eba(0x201)]['UNIVER_SHEET']);if(!_0x2c63cc)throw new Error(_0x3c7eba(0x1ee));const _0x1f7c3f=_0x2c63cc[_0x3c7eba(0x1f4)](),_0x8eab8a=this[_0x3c7eba(0x216)][_0x3c7eba(0x214)](_0x1f7c3f);if(!_0x8eab8a)throw new Error(_0x3c7eba(0x210));_0x8eab8a[_0x3c7eba(0x211)]();}['stopPresenting'](){const _0x4bf67f=_0x46c45d,_0x496447=this[_0x4bf67f(0x1fb)][_0x4bf67f(0x1ec)](_0x159446[_0x4bf67f(0x200)])[_0x4bf67f(0x20b)](_0x159446[_0x4bf67f(0x201)]['UNIVER_SHEET']);if(!_0x496447)throw new Error(_0x4bf67f(0x1ee));const _0x271e5d=_0x496447[_0x4bf67f(0x1f4)](),_0x3c98e8=this['_liveShareController'][_0x4bf67f(0x214)](_0x271e5d);if(!_0x3c98e8)throw new Error(_0x4bf67f(0x210));_0x3c98e8[_0x4bf67f(0x209)]();}}_0x287012[_0x46c45d(0x1ef)][_0x46c45d(0x1fd)](_0x2406f8);class _0xa4ebb3 extends _0x287012['FEnum']{get[_0x46c45d(0x1f9)](){const _0x163e61=_0x46c45d;return _0x2e7298[_0x163e61(0x1f8)];}}_0x287012['FEnum'][_0x46c45d(0x1fd)](_0xa4ebb3);}));function _0x103d(){const _0x25fc2e=['getLiveShareCoordinatorSync','UNIVER_SHEET','_liveShareController','get','stopFollowing','No\x20active\x20workbook\x20found.','FUniver','15435OYwRfw','IDLE','10308IjheSL','10pxEiiQ','getUnitId','startFollowing','297606GyFfOG','amd','LiveShareStatus','LiveShareStatusEnum','62148ijPHik','_injector','706050fiKVpl','extend','@univerjs/core','getLiveShareStatus','IUniverInstanceService','UniverInstanceType','19800zJghzn','1796HLEOxa','object','12214528xFrstq','917GFMwKg','defineProperty','function','stopPresenting','getStatus','getCurrentUnitOfType','UniverCoreFacade','@univerjs-pro/live-share','22956SMjMTV','836NEzlSO','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','tryStartPresenting','UniverProLiveShare','startPresenting'];_0x103d=function(){return _0x25fc2e;};return _0x103d();}
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);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x427f(){const _0x402156=['getInitialStates','171859TssEsY','shouldShareOperation','random','createElement','HEADER_MENU','find','PRESENTING','Plugin','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','_handleNewChangeSets','next','2152098jzdiTc','use','complete','clsx','16xGjPaU','_collabSession','onStarting','univer-mb-3\x20univer-w-full\x20univer-text-sm','sessionStatus$','idSuffix','set','memberID','mask','mergeOverrideWithDependencies','substring','SetWorksheetActiveOperation','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','getCurrentTypeOfUnit$','has','end','_handleTerminate','assign','IUniverInstanceService','forEach','SetScrollOperation','UNIVER_UNKNOWN','OPERATION','UniverInstanceType','rxjs/operators','_uiPartsService','LiveShareController','NOT_FOLLOWING','asObservable','defIds','presenting','requireSession','LIVESHARE_NEW_HOST','BehaviorSubject','entries','@univerjs/sheets','tryStartPresenting','SessionStatus','http://www.w3.org/2000/svg','UniverProLiveShare','LIVESHARE_TERMINATE','exports','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinator','tag','Present\x20this\x20document','82yUhPWb','colorChannel1','getStatus','status$','getUnitId','string','OFFLINE','defs','Inject','FOLLOWING','_configService','_presenter','21537yIdWBS','CollaborationEvent','trim','_status','params','_entities','1436184KORIfP','Fragment','You\x27re\x20presenting\x20the\x20document','DisposableCollection','sheet','children','Subject','_init','UniverProCollaboration','offline','DependentOn','svg','object','1em','_beIdle','UniverIcon','init','_config','rxjs','forwardRef','_handleOffline','univer-size-4','connectInjector','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','Disposable','get','button','useDependency','_handleOperation','LiveShareCoordinator','live-share.config','jsxs','toDisposable','react','pipe','onRendered','You\x27re\x20not\x20following\x20the\x20presenter','event$','presenter','0\x200\x2017\x2017','IConfigService','div','jsx','dispose$','_mountLiveShare','idle','InsertSheetMutation','_liveShareService','UniverUi','Dropdown','_startLiveShareCoordinator','UNIVER_SHEET','amd','UniverSheetsUi','operations','registerInitialStateReporter','_univerInstanceService','values','ONLINE','_stopFollowing','RxDisposable','14154650waoOUA','add','@univerjs/design','merge','CommandType','UniverSheets','stopFollowing','registerComponent','univerjs-icon\x20univerjs-icon-','symbol','touchDependencies','current','defineProperty','onCommandExecuted','UniverLiveSharePlugin','LiveShare','registerDependencies','_collabSessionService','useState','UniverDesign','path','registerSharedOperation','getMemberID','then','UniverProCollaborationClient','Start\x20following','unsubscribe','text','_reporters','_injector','_stopPresenting','executeCommand','takeUntil','_unitID','includes','toString','UniverCollaborationClientPlugin','Stop\x20presenting','_fetchOperations','stringify','unitId','_sharedOperations','pluginName','fill','toStringTag','_handleOnline','_startPresenting','getLiveShareCoordinatorSync','useEffect','attrs','currentColor','url(#$1','LiveShareStatus','replace','parse','IDLE','21147aKIeEU','subscribe','data','type','@univerjs-pro/collaboration','evenodd','1000ceABDN','dispose','LIVESHARE_OPERATION','_status$','following','disposeWithMe','displayName','_startFollowing','throttleTime','stopPresenting','not-following','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','@univerjs/ui','send','createInstance','CollaborationSessionService','Button','getTypeOfUnitAdded$','_commandService','UniverCore','DesktopLiveShareController','getOwnPropertyDescriptor','length','You\x27re\x20following\x20the\x20presenter','map','_commandDisposable','_handleNewHost','181010gpShEb','reverse','SetZoomRatioOperation','xlink:href'];_0x427f=function(){return _0x402156;};return _0x427f();}function _0x472b(_0x31af83,_0x328f95){_0x31af83=_0x31af83-0xf4;const _0x427f68=_0x427f();let _0x472b45=_0x427f68[_0x31af83];return _0x472b45;}(function(_0x530783,_0x4fb72f){const _0x16978f=_0x472b,_0x442304=_0x530783();while(!![]){try{const _0x5eb7cb=-parseInt(_0x16978f(0x1c9))/0x1+parseInt(_0x16978f(0x11c))/0x2*(-parseInt(_0x16978f(0x128))/0x3)+parseInt(_0x16978f(0x1d8))/0x4*(parseInt(_0x16978f(0x1c4))/0x5)+-parseInt(_0x16978f(0x12e))/0x6+-parseInt(_0x16978f(0x1a3))/0x7*(parseInt(_0x16978f(0x1a9))/0x8)+-parseInt(_0x16978f(0x1d4))/0x9+parseInt(_0x16978f(0x16b))/0xa;if(_0x5eb7cb===_0x4fb72f)break;else _0x442304['push'](_0x442304['shift']());}catch(_0x2fa7ac){_0x442304['push'](_0x442304['shift']());}}}(_0x427f,0x3a18c),function(_0x35b737,_0x1119ce){const _0x3710ec=_0x472b;typeof exports==_0x3710ec(0x13a)&&typeof module<'u'?_0x1119ce(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[_0x3710ec(0x162)]?define([_0x3710ec(0x117),'@univerjs/core',_0x3710ec(0x1b5),'react/jsx-runtime',_0x3710ec(0x16d),_0x3710ec(0x14f),_0x3710ec(0x1a7),'@univerjs-pro/collaboration-client',_0x3710ec(0x111),_0x3710ec(0x140),_0x3710ec(0x106),'@univerjs/sheets-ui'],_0x1119ce):(_0x35b737=typeof globalThis<'u'?globalThis:_0x35b737||self,_0x1119ce(_0x35b737[_0x3710ec(0x115)]={},_0x35b737[_0x3710ec(0x1bc)],_0x35b737[_0x3710ec(0x15e)],_0x35b737['React'],_0x35b737[_0x3710ec(0x17e)],_0x35b737['React'],_0x35b737[_0x3710ec(0x136)],_0x35b737[_0x3710ec(0x183)],_0x35b737[_0x3710ec(0x170)],_0x35b737[_0x3710ec(0x140)],_0x35b737[_0x3710ec(0x140)]['operators'],_0x35b737[_0x3710ec(0x163)]));}(this,function(_0x3a76e2,_0x236774,_0x2c8dd9,_0x2be8ca,_0x5a8125,_0xef9dde,_0x1390ae,_0x172967,_0x35849c,_0x6c1aef,_0x51626c,_0x2d195e){'use strict';const _0x581f0c=_0x472b;var _0xdcdca=Object[_0x581f0c(0x177)],_0x15bd91=(_0x260d0c,_0x45da44,_0x394e8e)=>_0x45da44 in _0x260d0c?_0xdcdca(_0x260d0c,_0x45da44,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x394e8e}):_0x260d0c[_0x45da44]=_0x394e8e,_0x486a28=(_0x4650d6,_0xa075f2,_0x440953)=>_0x15bd91(_0x4650d6,typeof _0xa075f2!=_0x581f0c(0x174)?_0xa075f2+'':_0xa075f2,_0x440953);function _0x273c79({ref:_0x133e18,..._0x287133}){const _0x418f54=_0x581f0c,{icon:_0x43fc1b,id:_0x590591,className:_0x4f8d7d,extend:_0x5594e3,..._0x38138f}=_0x287133,_0x55ffd9=(_0x418f54(0x173)+_0x590591+'\x20'+(_0x4f8d7d||''))[_0x418f54(0x12a)](),_0x68ea39=_0xef9dde['useRef']('_'+_0x376c6c());return _0x192ec5(_0x43fc1b,''+_0x590591,{'defIds':_0x43fc1b[_0x418f54(0x10b)],'idSuffix':_0x68ea39[_0x418f54(0x176)]},{'ref':_0x133e18,'className':_0x55ffd9,..._0x38138f},_0x5594e3);}function _0x192ec5(_0x15cb12,_0x222128,_0x8ea4ba,_0x202d44,_0x325c26){const _0x44f25d=_0x581f0c;return _0xef9dde[_0x44f25d(0x1cc)](_0x15cb12['tag'],{'key':_0x222128,..._0x2f2a29(_0x15cb12,_0x8ea4ba,_0x325c26),..._0x202d44},(_0x521410(_0x15cb12,_0x8ea4ba)[_0x44f25d(0x133)]||[])['map']((_0x53e284,_0x2a1cd5)=>_0x192ec5(_0x53e284,_0x222128+'-'+_0x15cb12[_0x44f25d(0x11a)]+'-'+_0x2a1cd5,_0x8ea4ba,void 0x0,_0x325c26)));}function _0x2f2a29(_0x53cd87,_0x5ab7d3,_0x3308ef){const _0x39c3b1=_0x581f0c,_0x4d7446={..._0x53cd87[_0x39c3b1(0x19c)]};_0x3308ef!=null&&_0x3308ef['colorChannel1']&&_0x4d7446[_0x39c3b1(0x196)]===_0x39c3b1(0x11d)&&(_0x4d7446[_0x39c3b1(0x196)]=_0x3308ef[_0x39c3b1(0x11d)]),_0x53cd87['tag']===_0x39c3b1(0xf6)&&_0x4d7446['id']&&(_0x4d7446['id']=_0x4d7446['id']+_0x5ab7d3[_0x39c3b1(0x1dd)]),Object[_0x39c3b1(0x110)](_0x4d7446)[_0x39c3b1(0x101)](([_0x4cf079,_0x2c2a5f])=>{const _0x4724e2=_0x39c3b1;_0x4cf079===_0x4724e2(0xf6)&&typeof _0x2c2a5f=='string'&&(_0x4d7446[_0x4cf079]=_0x2c2a5f[_0x4724e2(0x1a0)](/url\(#(.*)\)/,_0x4724e2(0x19e)+_0x5ab7d3['idSuffix']+')'));});const {defIds:_0x2fa30b}=_0x5ab7d3;return!_0x2fa30b||_0x2fa30b['length']===0x0||(_0x53cd87['tag']===_0x39c3b1(0x1d5)&&_0x4d7446[_0x39c3b1(0x1c7)]&&(_0x4d7446['xlink:href']=_0x4d7446[_0x39c3b1(0x1c7)]+_0x5ab7d3[_0x39c3b1(0x1dd)]),Object[_0x39c3b1(0x110)](_0x4d7446)[_0x39c3b1(0x101)](([_0x5e1176,_0x4b15e2])=>{const _0x357a47=_0x39c3b1;typeof _0x4b15e2=='string'&&(_0x4d7446[_0x5e1176]=_0x4b15e2[_0x357a47(0x1a0)](/url\(#(.*)\)/,_0x357a47(0x19e)+_0x5ab7d3['idSuffix']+')'));})),_0x4d7446;}function _0x521410(_0x2aedd7,_0x26bb4a){const _0x442110=_0x581f0c;var _0x4faa3d;const {defIds:_0x2367d4}=_0x26bb4a;return!_0x2367d4||_0x2367d4[_0x442110(0x1bf)]===0x0?_0x2aedd7:_0x2aedd7[_0x442110(0x11a)]===_0x442110(0x123)&&((_0x4faa3d=_0x2aedd7['children'])!=null&&_0x4faa3d['length'])?{..._0x2aedd7,'children':_0x2aedd7['children'][_0x442110(0x1c1)](_0x3c05a9=>typeof _0x3c05a9[_0x442110(0x19c)]['id']==_0x442110(0x121)&&_0x2367d4&&_0x2367d4[_0x442110(0x18d)](_0x3c05a9['attrs']['id'])?{..._0x3c05a9,'attrs':{..._0x3c05a9[_0x442110(0x19c)],'id':_0x3c05a9[_0x442110(0x19c)]['id']+_0x26bb4a[_0x442110(0x1dd)]}}:_0x3c05a9)}:_0x2aedd7;}function _0x376c6c(){const _0xa3eda=_0x581f0c;return Math[_0xa3eda(0x1cb)]()[_0xa3eda(0x18e)](0x24)[_0xa3eda(0xf8)](0x2,0x8);}_0x273c79[_0x581f0c(0x1af)]=_0x581f0c(0x13d);const _0xb067d3={'tag':_0x581f0c(0x139),'attrs':{'xmlns':_0x581f0c(0x114),'fill':'none','viewBox':_0x581f0c(0x155),'width':_0x581f0c(0x13b),'height':_0x581f0c(0x13b)},'children':[{'tag':_0x581f0c(0x17f),'attrs':{'fill':_0x581f0c(0x19d),'d':_0x581f0c(0x1d1)}},{'tag':_0x581f0c(0x17f),'attrs':{'fill':_0x581f0c(0x19d),'d':_0x581f0c(0x145),'fillRule':_0x581f0c(0x1a8),'clipRule':_0x581f0c(0x1a8)}}]},_0x31dea7=_0xef9dde[_0x581f0c(0x141)](function(_0x4c8438,_0x2c7ad1){const _0x239991=_0x581f0c;return _0xef9dde[_0x239991(0x1cc)](_0x273c79,Object[_0x239991(0xff)]({},_0x4c8438,{'id':'live-share-icon','ref':_0x2c7ad1,'icon':_0xb067d3}));});_0x31dea7[_0x581f0c(0x1af)]='LiveShareIcon';class _0x4f28ce extends _0x236774[_0x581f0c(0x146)]{constructor(){const _0x2b1d71=_0x581f0c;super(...arguments),_0x486a28(this,_0x2b1d71(0x194),new Set()),_0x486a28(this,_0x2b1d71(0x187),new Set());}[_0x581f0c(0x180)](_0x47ca40){const _0x24ddd6=_0x581f0c;return this[_0x24ddd6(0x194)][_0x24ddd6(0x16c)](_0x47ca40),_0x236774[_0x24ddd6(0x14e)](()=>this[_0x24ddd6(0x194)]['delete'](_0x47ca40));}[_0x581f0c(0x165)](_0x2809ec){const _0xcc069=_0x581f0c;return this[_0xcc069(0x187)]['add'](_0x2809ec),_0x236774['toDisposable'](()=>this['_reporters']['delete'](_0x2809ec));}[_0x581f0c(0x1ca)](_0xa0303e){const _0x21bf5a=_0x581f0c;return this[_0x21bf5a(0x194)][_0x21bf5a(0xfc)](_0xa0303e);}[_0x581f0c(0x1c8)](_0x53aaaa){return Array['from'](this['_reporters'])['map'](_0x4fb599=>_0x4fb599(_0x53aaaa));}}var _0x16e20a=Object[_0x581f0c(0x1be)],_0x1ced8c=(_0x2c1c75,_0x5e15e3,_0x5e4512,_0x3747d6)=>{const _0x38ae07=_0x581f0c;for(var _0x4c7612=_0x3747d6>0x1?void 0x0:_0x3747d6?_0x16e20a(_0x5e15e3,_0x5e4512):_0x5e15e3,_0x190049=_0x2c1c75[_0x38ae07(0x1bf)]-0x1,_0x3ceead;_0x190049>=0x0;_0x190049--)(_0x3ceead=_0x2c1c75[_0x190049])&&(_0x4c7612=_0x3ceead(_0x4c7612)||_0x4c7612);return _0x4c7612;},_0x1c48a0=(_0x4ca6e9,_0x2c4737)=>(_0x1b1576,_0x2dc74a)=>_0x2c4737(_0x1b1576,_0x2dc74a,_0x4ca6e9);_0x3a76e2[_0x581f0c(0x108)]=class extends _0x236774[_0x581f0c(0x16a)]{constructor(_0x188911,_0x565d84,_0xce5256){const _0x37ae0d=_0x581f0c;super(),_0x486a28(this,_0x37ae0d(0x12d),new Map()),(this['_univerInstanceService']=_0x188911,this[_0x37ae0d(0x188)]=_0x565d84,this[_0x37ae0d(0x17c)]=_0xce5256,this[_0x37ae0d(0x135)]());}async[_0x581f0c(0x119)](_0x4c025c){const _0x4c4b58=_0x581f0c;return this[_0x4c4b58(0x12d)]['has'](_0x4c025c)||await this[_0x4c4b58(0x160)](_0x4c025c),this[_0x4c4b58(0x12d)][_0x4c4b58(0x147)](_0x4c025c);}[_0x581f0c(0x19a)](_0x4613ff){const _0x24cc29=_0x581f0c;var _0x402c38;return(_0x402c38=this[_0x24cc29(0x12d)][_0x24cc29(0x147)](_0x4613ff))!=null?_0x402c38:null;}[_0x581f0c(0x135)](){const _0x35eda3=_0x581f0c;this[_0x35eda3(0x166)][_0x35eda3(0x1ba)](_0x236774['UniverInstanceType'][_0x35eda3(0x161)])[_0x35eda3(0x150)](_0x51626c[_0x35eda3(0x18b)](this[_0x35eda3(0x159)]))['subscribe'](async _0x365010=>{const _0x537394=_0x35eda3,_0x4e5551=_0x365010[_0x537394(0x120)]();this[_0x537394(0x12d)][_0x537394(0xfc)](_0x4e5551)||this['_startLiveShareCoordinator'](_0x4e5551);}),this[_0x35eda3(0x166)]['getTypeOfUnitDisposed$'](_0x236774[_0x35eda3(0x105)][_0x35eda3(0x161)])[_0x35eda3(0x150)](_0x51626c['takeUntil'](this['dispose$']))[_0x35eda3(0x1a4)](_0x557e1b=>{const _0x3cd9e0=_0x35eda3,_0x22b2d4=_0x557e1b[_0x3cd9e0(0x120)](),_0x7d0ae=this[_0x3cd9e0(0x12d)][_0x3cd9e0(0x147)](_0x22b2d4);_0x7d0ae==null||_0x7d0ae[_0x3cd9e0(0x1aa)]();});}async['_startLiveShareCoordinator'](_0x504d40){const _0x519acf=_0x581f0c,_0x392655=await this[_0x519acf(0x17c)][_0x519acf(0x10d)](_0x504d40),_0x5cc3f1=this[_0x519acf(0x188)][_0x519acf(0x1b7)](_0x3a76e2[_0x519acf(0x14b)],_0x504d40,_0x392655);return _0x5cc3f1[_0x519acf(0x13e)](),this['_entities'][_0x519acf(0xf4)](_0x504d40,_0x5cc3f1),_0x5cc3f1;}},_0x3a76e2['LiveShareController']=_0x1ced8c([_0x1c48a0(0x0,_0x236774[_0x581f0c(0x100)]),_0x1c48a0(0x1,_0x236774[_0x581f0c(0x124)](_0x236774['Injector'])),_0x1c48a0(0x2,_0x236774['Inject'](_0x172967[_0x581f0c(0x1b8)]))],_0x3a76e2[_0x581f0c(0x108)]);var _0x39bb62=(_0x3839d2=>(_0x3839d2[_0x581f0c(0x122)]=_0x581f0c(0x137),_0x3839d2['IDLE']=_0x581f0c(0x15b),_0x3839d2[_0x581f0c(0x125)]=_0x581f0c(0x1ad),_0x3839d2[_0x581f0c(0x109)]='not-following',_0x3839d2[_0x581f0c(0x1cf)]=_0x581f0c(0x10c),_0x3839d2))(_0x39bb62||{});const _0x3bc5be='SAME_OPERATION_SHARE_INTERVAL',_0x4aa07d=0xc8;_0x3a76e2['LiveShareCoordinator']=class extends _0x236774[_0x581f0c(0x16a)]{constructor(_0x117f68,_0x283488,_0x273abe,_0x50ef4a,_0x48dac4){const _0x31043f=_0x581f0c;super(),_0x486a28(this,_0x31043f(0x1ac),new _0x6c1aef[(_0x31043f(0x10f))](_0x31043f(0x15b))),_0x486a28(this,_0x31043f(0x11f),this['_status$'][_0x31043f(0x10a)]()),_0x486a28(this,_0x31043f(0x135),!0x1),_0x486a28(this,_0x31043f(0x1c2),null),_0x486a28(this,'_presenter',null),(this[_0x31043f(0x18c)]=_0x117f68,this[_0x31043f(0x1d9)]=_0x283488,this[_0x31043f(0x126)]=_0x273abe,this['_liveShareService']=_0x50ef4a,this[_0x31043f(0x1bb)]=_0x48dac4);}get[_0x581f0c(0x12b)](){const _0x527e44=_0x581f0c;return this[_0x527e44(0x1ac)]['getValue']();}[_0x581f0c(0x1aa)](){const _0x1260b0=_0x581f0c;var _0xb22b42;(_0xb22b42=this[_0x1260b0(0x1c2)])==null||_0xb22b42['dispose'](),this[_0x1260b0(0x1ac)][_0x1260b0(0x1d3)](_0x1260b0(0x15b)),this[_0x1260b0(0x1ac)]['complete']();}[_0x581f0c(0x11e)](){const _0x351171=_0x581f0c;return this[_0x351171(0x12b)];}[_0x581f0c(0x13e)](){const _0x45e23c=_0x581f0c;this[_0x45e23c(0x135)]||(this[_0x45e23c(0x135)]=!0x0,this[_0x45e23c(0x1d9)][_0x45e23c(0x1dc)][_0x45e23c(0x150)](_0x51626c[_0x45e23c(0x18b)](this[_0x45e23c(0x159)]))[_0x45e23c(0x1a4)](_0x44a07b=>{const _0x109b28=_0x45e23c;switch(_0x44a07b){case _0x172967[_0x109b28(0x113)][_0x109b28(0x122)]:this['_handleOffline']();break;case _0x172967[_0x109b28(0x113)][_0x109b28(0x168)]:this[_0x109b28(0x198)]();break;}}),this['_collabSession'][_0x45e23c(0x153)][_0x45e23c(0x150)](_0x51626c[_0x45e23c(0x18b)](this[_0x45e23c(0x159)]))['subscribe'](_0xd0146c=>{const _0xc430b0=_0x45e23c,{eventID:_0x23aa39}=_0xd0146c;switch(_0x23aa39){case _0x1390ae[_0xc430b0(0x129)][_0xc430b0(0x10e)]:this[_0xc430b0(0x1c3)](_0xd0146c);break;case _0x1390ae[_0xc430b0(0x129)]['LIVESHARE_OPERATION']:this[_0xc430b0(0x14a)](_0xd0146c);break;case _0x1390ae[_0xc430b0(0x129)][_0xc430b0(0x116)]:this['_handleTerminate']();break;case _0x1390ae[_0xc430b0(0x129)]['NEW_CHANGESETS']:this[_0xc430b0(0x1d2)](_0xd0146c);break;}}));}[_0x581f0c(0x112)](){const _0x49a58c=_0x581f0c;this[_0x49a58c(0x1d9)][_0x49a58c(0x1b6)]({'eventID':_0x1390ae[_0x49a58c(0x129)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x49a58c(0x18c)],'userID':this[_0x49a58c(0x1d9)][_0x49a58c(0x181)]()}},this[_0x49a58c(0x18c)]);}[_0x581f0c(0x1b2)](){const _0x2cdf33=_0x581f0c;this[_0x2cdf33(0x12b)]==='presenting'&&(this[_0x2cdf33(0x1ac)][_0x2cdf33(0x1d3)](_0x2cdf33(0x15b)),this['_collabSession'][_0x2cdf33(0x1b6)]({'eventID':_0x1390ae[_0x2cdf33(0x129)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2cdf33(0x18c)]}},this[_0x2cdf33(0x18c)]));}['startFollowing'](){const _0x4aa66c=_0x581f0c;this[_0x4aa66c(0x12b)]===_0x4aa66c(0x1b3)&&(this['_status$'][_0x4aa66c(0x1d3)]('following'),this[_0x4aa66c(0x1b0)]());}[_0x581f0c(0x171)](){const _0xb268ee=_0x581f0c;this[_0xb268ee(0x12b)]==='following'&&this[_0xb268ee(0x169)]();}[_0x581f0c(0x1c3)](_0x3448f9){const _0x31c994=_0x581f0c,{presenter:_0x163fe4}=_0x3448f9[_0x31c994(0x1a5)],_0x3b3d75=this[_0x31c994(0x1d9)][_0x31c994(0x181)]();this['_presenter']=_0x163fe4,_0x163fe4===_0x3b3d75?(this[_0x31c994(0x169)](),this[_0x31c994(0x199)]()):this[_0x31c994(0x12b)]!==_0x31c994(0x1b3)&&(this[_0x31c994(0x189)](),this[_0x31c994(0x1b0)]());}['_fetchOperations'](){const _0x163e26=_0x581f0c,_0x51e10a={'eventID':_0x1390ae[_0x163e26(0x129)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x163e26(0x1b6)](_0x51e10a,this[_0x163e26(0x18c)]);}[_0x581f0c(0xfe)](){const _0x501f26=_0x581f0c;this[_0x501f26(0x127)]=null,this['_status']!==_0x501f26(0x10c)&&this['_beIdle']();}['_handleNewChangeSets'](_0x5b01af){const _0xb5d752=_0x581f0c;if(this[_0xb5d752(0x12b)]===_0xb5d752(0x1ad)&&this[_0xb5d752(0x127)]===_0x5b01af[_0xb5d752(0x1a5)][_0xb5d752(0xf5)]){const _0x10b6f1=_0x1390ae['parseProtocolChangeset'](_0x5b01af[_0xb5d752(0x1a5)])['mutations'][_0xb5d752(0x1c5)]()[_0xb5d752(0x1ce)](_0x42449c=>_0x42449c['id']===_0x35849c[_0xb5d752(0x15c)]['id']);if(_0x10b6f1){const _0x53845f=_0x10b6f1[_0xb5d752(0x12c)][_0xb5d752(0x193)],_0x20a87b=_0x10b6f1[_0xb5d752(0x12c)][_0xb5d752(0x132)]['id'];setTimeout(()=>{const _0x50089a=_0xb5d752;this['_commandService']['executeCommand'](_0x35849c[_0x50089a(0xf9)]['id'],{'unitId':_0x53845f,'subUnitId':_0x20a87b},{'fromCollab':!0x0});});}}}[_0x581f0c(0x199)](){const _0x3df0ef=_0x581f0c;this[_0x3df0ef(0x1ac)][_0x3df0ef(0x1d3)](_0x3df0ef(0x10c));const _0xbf8016=new Map(),_0x5f28b4=this[_0x3df0ef(0x1c2)]=new _0x236774[(_0x3df0ef(0x131))]();_0x5f28b4[_0x3df0ef(0x16c)](_0x236774[_0x3df0ef(0x14e)](()=>{const _0x629ccf=_0x3df0ef;_0xbf8016[_0x629ccf(0x101)](_0x511919=>_0x511919[_0x629ccf(0x1d6)]()),_0xbf8016['clear']();})),_0x5f28b4[_0x3df0ef(0x16c)](this['_commandService'][_0x3df0ef(0x178)](_0x4160bd=>{const _0x553859=_0x3df0ef;var _0x39f327;if(_0x4160bd['type']!==_0x236774[_0x553859(0x16f)][_0x553859(0x104)]||!this[_0x553859(0x15d)][_0x553859(0x1ca)](_0x4160bd['id']))return;const {id:_0x327da1}=_0x4160bd;let _0x1408d5;_0xbf8016[_0x553859(0xfc)](_0x327da1)?_0x1408d5=_0xbf8016['get'](_0x327da1):(_0x1408d5=new _0x6c1aef[(_0x553859(0x134))](),_0xbf8016[_0x553859(0xf4)](_0x327da1,_0x1408d5),_0x1408d5['pipe'](_0x51626c[_0x553859(0x1b1)]((_0x39f327=this[_0x553859(0x126)]['getConfig'](_0x3bc5be))!=null?_0x39f327:_0x4aa07d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x553859(0x1a4)](_0x235dca=>{const _0xbeb5fd=_0x553859;this[_0xbeb5fd(0x1d9)][_0xbeb5fd(0x1b6)]({'eventID':_0x1390ae[_0xbeb5fd(0x129)][_0xbeb5fd(0x1ab)],'data':{'unitID':this[_0xbeb5fd(0x18c)],'operations':{[_0x235dca['id']]:{'id':_0x235dca['id'],'params':JSON[_0xbeb5fd(0x192)](_0x235dca[_0xbeb5fd(0x12c)])}}}},this['_unitID']);})),_0x1408d5[_0x553859(0x1d3)](_0x4160bd);})),this[_0x3df0ef(0x15d)][_0x3df0ef(0x1c8)](this['_unitID'])['forEach'](_0x4b7671=>this[_0x3df0ef(0x1d9)][_0x3df0ef(0x1b6)]({'eventID':_0x1390ae[_0x3df0ef(0x129)][_0x3df0ef(0x1ab)],'data':{'unitID':this[_0x3df0ef(0x18c)],'operations':{[_0x4b7671['id']]:{'id':_0x4b7671['id'],'params':JSON[_0x3df0ef(0x192)](_0x4b7671[_0x3df0ef(0x12c)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x5782a4=_0x581f0c;var _0xddc1b2;this[_0x5782a4(0x1ac)][_0x5782a4(0x1d3)]('idle'),(_0xddc1b2=this[_0x5782a4(0x1c2)])==null||_0xddc1b2['dispose'](),this[_0x5782a4(0x1c2)]=null;}['_startFollowing'](){const _0x193dec=_0x581f0c;var _0x434a2e;(_0x434a2e=this[_0x193dec(0x1c2)])==null||_0x434a2e[_0x193dec(0x1aa)](),this[_0x193dec(0x1ac)][_0x193dec(0x1d3)](_0x193dec(0x1ad));}[_0x581f0c(0x13c)](){const _0x34d931=_0x581f0c;var _0x4e7f7f;this[_0x34d931(0x1ac)][_0x34d931(0x1d3)](_0x34d931(0x15b)),(_0x4e7f7f=this[_0x34d931(0x1c2)])==null||_0x4e7f7f[_0x34d931(0x1aa)](),this[_0x34d931(0x1c2)]=null;}['_stopFollowing'](){const _0x559d5d=_0x581f0c;var _0x314526;this[_0x559d5d(0x1ac)][_0x559d5d(0x1d3)](_0x559d5d(0x1b3)),(_0x314526=this[_0x559d5d(0x1c2)])==null||_0x314526[_0x559d5d(0x1aa)]();}[_0x581f0c(0x14a)](_0x3a2c23){const _0x385c86=_0x581f0c;if([_0x385c86(0x10c),'not-following',_0x385c86(0x137)][_0x385c86(0x18d)](this[_0x385c86(0x12b)])||!_0x3a2c23['data'][_0x385c86(0x154)]||_0x3a2c23[_0x385c86(0x1a5)][_0x385c86(0x154)]===this[_0x385c86(0x1d9)][_0x385c86(0x181)]())return;this[_0x385c86(0x12b)]===_0x385c86(0x15b)&&this[_0x385c86(0x1b0)]();const _0x381f48=_0x3a2c23[_0x385c86(0x1a5)][_0x385c86(0x164)];Object[_0x385c86(0x167)](_0x381f48)[_0x385c86(0x101)](_0x15527a=>{const _0x3f615f=_0x385c86;this[_0x3f615f(0x1bb)][_0x3f615f(0x18a)](_0x15527a['id'],_0x15527a['params']?JSON[_0x3f615f(0x1a1)](_0x15527a['params']):null,{'fromCollab':!0x0});});}[_0x581f0c(0x142)](){const _0xe8c4b6=_0x581f0c;var _0x4e6ca0;this[_0xe8c4b6(0x1ac)][_0xe8c4b6(0x1d3)](_0xe8c4b6(0x137)),(_0x4e6ca0=this[_0xe8c4b6(0x1c2)])==null||_0x4e6ca0['dispose']();}[_0x581f0c(0x198)](){const _0x84d9bb=_0x581f0c;this['_status$'][_0x84d9bb(0x1d3)](_0x84d9bb(0x15b)),this[_0x84d9bb(0x191)]();}},_0x3a76e2[_0x581f0c(0x14b)]=_0x1ced8c([_0x1c48a0(0x2,_0x236774[_0x581f0c(0x156)]),_0x1c48a0(0x3,_0x236774['Inject'](_0x4f28ce)),_0x1c48a0(0x4,_0x236774['ICommandService'])],_0x3a76e2[_0x581f0c(0x14b)]);function _0x124edd(){const _0x4e0085=_0x581f0c,_0x35f72c=_0x2c8dd9['useDependency'](_0x3a76e2[_0x4e0085(0x108)]),_0x187bc9=_0x2c8dd9[_0x4e0085(0x149)](_0x236774[_0x4e0085(0x100)]),_0x967f4b=_0x2c8dd9['useObservable'](()=>_0x187bc9[_0x4e0085(0xfb)](_0x236774['UniverInstanceType'][_0x4e0085(0x161)]),void 0x0,!0x1,[]),[_0x3246ea,_0x4610cc]=_0xef9dde[_0x4e0085(0x17d)](null),[_0x3d8040,_0x237a21]=_0xef9dde['useState'](_0x39bb62[_0x4e0085(0x1a2)]),_0x414174=_0xef9dde['useRef'](null);return _0xef9dde[_0x4e0085(0x19b)](()=>(_0x967f4b&&_0x35f72c[_0x4e0085(0x119)](_0x967f4b['getUnitId']())[_0x4e0085(0x182)](_0x218842=>{const _0x2c947b=_0x4e0085;_0x4610cc(_0x218842),_0x414174[_0x2c947b(0x176)]=_0x218842[_0x2c947b(0x11f)][_0x2c947b(0x1a4)](_0x632418=>{_0x237a21(_0x632418);});}),()=>{const _0x55fba8=_0x4e0085;var _0x1b5ac9;(_0x1b5ac9=_0x414174['current'])==null||_0x1b5ac9[_0x55fba8(0x185)](),_0x414174[_0x55fba8(0x176)]=null;}),[_0x967f4b,_0x35f72c]),_0x3246ea?_0x2be8ca[_0x4e0085(0x158)](_0x5a8125[_0x4e0085(0x15f)],{'align':_0x4e0085(0xfd),'disabled':_0x3d8040===_0x39bb62[_0x4e0085(0x122)],'className':_0x4e0085(0xfa),'overlay':_0x2be8ca[_0x4e0085(0x158)](_0xc21b9d,{'status':_0x3d8040,'coordinator':_0x3246ea}),'children':_0x2be8ca[_0x4e0085(0x158)](_0x4e0085(0x148),{'className':_0x5a8125[_0x4e0085(0x1d7)](_0x4e0085(0x1b4),{'univer-cursor-not-allowed':_0x3d8040===_0x39bb62[_0x4e0085(0x122)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3d8040!==_0x39bb62[_0x4e0085(0x122)]}),'type':_0x4e0085(0x148),'children':_0x2be8ca[_0x4e0085(0x158)](_0x31dea7,{'className':_0x4e0085(0x143)})})}):null;}function _0xc21b9d(_0x13a783){const _0x237f83=_0x581f0c,{status:_0x43c144,coordinator:_0x3aa21d}=_0x13a783;switch(_0x43c144){case _0x39bb62[_0x237f83(0x1a2)]:return _0x2be8ca[_0x237f83(0x158)](_0x394e57,{'coordinator':_0x3aa21d});case _0x39bb62[_0x237f83(0x125)]:return _0x2be8ca[_0x237f83(0x158)](_0x596072,{'coordinator':_0x3aa21d});case _0x39bb62[_0x237f83(0x109)]:return _0x2be8ca[_0x237f83(0x158)](_0x391b35,{'coordinator':_0x3aa21d});case _0x39bb62[_0x237f83(0x122)]:return _0x2be8ca[_0x237f83(0x158)](_0x33dd8e,{});case _0x39bb62[_0x237f83(0x1cf)]:return _0x2be8ca[_0x237f83(0x158)](_0x319f1d,{'coordinator':_0x3aa21d});default:return null;}}function _0x394e57(_0x314f6c){const _0x321b5f=_0x581f0c,{coordinator:_0x175f71}=_0x314f6c;return _0x2be8ca[_0x321b5f(0x14d)](_0x2be8ca[_0x321b5f(0x12f)],{'children':[_0x2be8ca[_0x321b5f(0x158)](_0x321b5f(0x157),{'className':_0x321b5f(0x1db),'children':_0x321b5f(0x11b)}),_0x2be8ca['jsx'](_0x5a8125['Button'],{'onClick':()=>_0x175f71[_0x321b5f(0x112)](),'children':'Start'})]});}function _0x596072(_0x2e88f9){const _0x491789=_0x581f0c,{coordinator:_0x235e99}=_0x2e88f9;return _0x2be8ca[_0x491789(0x14d)](_0x2be8ca[_0x491789(0x12f)],{'children':[_0x2be8ca[_0x491789(0x158)](_0x491789(0x157),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x491789(0x1c0)}),_0x2be8ca[_0x491789(0x158)](_0x5a8125[_0x491789(0x1b9)],{'onClick':()=>_0x235e99[_0x491789(0x171)](),'children':'Stop\x20following'})]});}function _0x391b35(_0x558ecb){const _0x191140=_0x581f0c,{coordinator:_0x4afeeb}=_0x558ecb;return _0x2be8ca[_0x191140(0x14d)](_0x2be8ca['Fragment'],{'children':[_0x2be8ca['jsx'](_0x191140(0x157),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x191140(0x152)}),_0x2be8ca['jsx'](_0x5a8125[_0x191140(0x1b9)],{'variant':_0x191140(0x186),'onClick':()=>_0x4afeeb['startFollowing'](),'children':_0x191140(0x184)})]});}function _0x319f1d(_0x5c844c){const _0xf09df4=_0x581f0c,{coordinator:_0x1bc6a8}=_0x5c844c;return _0x2be8ca['jsxs'](_0x2be8ca['Fragment'],{'children':[_0x2be8ca['jsx'](_0xf09df4(0x157),{'className':_0xf09df4(0x1db),'children':_0xf09df4(0x130)}),_0x2be8ca['jsx'](_0x5a8125[_0xf09df4(0x1b9)],{'variant':'default','onClick':()=>_0x1bc6a8[_0xf09df4(0x1b2)](),'children':_0xf09df4(0x190)})]});}function _0x33dd8e(){const _0x719b66=_0x581f0c;return _0x2be8ca[_0x719b66(0x158)](_0x2be8ca['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x33753e=Object['getOwnPropertyDescriptor'],_0x386b5b=(_0x259c11,_0xb9382d,_0x4bfd3a,_0x2bd582)=>{for(var _0x2503e5=_0x2bd582>0x1?void 0x0:_0x2bd582?_0x33753e(_0xb9382d,_0x4bfd3a):_0xb9382d,_0x4861b7=_0x259c11['length']-0x1,_0x4b4193;_0x4861b7>=0x0;_0x4861b7--)(_0x4b4193=_0x259c11[_0x4861b7])&&(_0x2503e5=_0x4b4193(_0x2503e5)||_0x2503e5);return _0x2503e5;},_0x280e3a=(_0x95ec21,_0x523949)=>(_0x3e58d4,_0x16b19c)=>_0x523949(_0x3e58d4,_0x16b19c,_0x95ec21);_0x3a76e2[_0x581f0c(0x1bd)]=class extends _0x236774[_0x581f0c(0x146)]{constructor(_0x493a38,_0x2940af){const _0x5073e7=_0x581f0c;super(),this[_0x5073e7(0x188)]=_0x493a38,this[_0x5073e7(0x107)]=_0x2940af,this[_0x5073e7(0x15a)]();}['_mountLiveShare'](){const _0x283d11=_0x581f0c;this[_0x283d11(0x1ae)](this[_0x283d11(0x107)][_0x283d11(0x172)](_0x2c8dd9['BuiltInUIPart'][_0x283d11(0x1cd)],()=>_0x2c8dd9[_0x283d11(0x144)](_0x124edd,this[_0x283d11(0x188)])));}},_0x3a76e2[_0x581f0c(0x1bd)]=_0x386b5b([_0x280e3a(0x0,_0x236774['Inject'](_0x236774['Injector'])),_0x280e3a(0x1,_0x2c8dd9['IUIPartsService'])],_0x3a76e2['DesktopLiveShareController']);const _0x5d96b9=_0x581f0c(0x14c),_0x518282={};var _0x5df39a=Object[_0x581f0c(0x1be)],_0x2aafd3=(_0x24e4b5,_0x3d3c9d,_0x1d13e8,_0x160665)=>{const _0x2bf6d7=_0x581f0c;for(var _0x5d1b63=_0x160665>0x1?void 0x0:_0x160665?_0x5df39a(_0x3d3c9d,_0x1d13e8):_0x3d3c9d,_0x21fd82=_0x24e4b5[_0x2bf6d7(0x1bf)]-0x1,_0x387e0b;_0x21fd82>=0x0;_0x21fd82--)(_0x387e0b=_0x24e4b5[_0x21fd82])&&(_0x5d1b63=_0x387e0b(_0x5d1b63)||_0x5d1b63);return _0x5d1b63;},_0x16cdfd=(_0xdbbae8,_0x17d69c)=>(_0x405ce3,_0x5158a7)=>_0x17d69c(_0x405ce3,_0x5158a7,_0xdbbae8);let _0x4b713a=class extends _0x236774[_0x581f0c(0x146)]{constructor(_0x41c284){const _0x2cc4cb=_0x581f0c;super(),this[_0x2cc4cb(0x15d)]=_0x41c284,this[_0x2cc4cb(0x135)]();}[_0x581f0c(0x135)](){const _0x1619bb=_0x581f0c;[_0x2d195e[_0x1619bb(0x1c6)]['id'],_0x2d195e[_0x1619bb(0x102)]['id'],_0x35849c[_0x1619bb(0xf9)]['id']]['forEach'](_0x302777=>{const _0x3862e2=_0x1619bb;this[_0x3862e2(0x1ae)](this['_liveShareService'][_0x3862e2(0x180)](_0x302777));});}};_0x4b713a=_0x2aafd3([_0x16cdfd(0x0,_0x236774[_0x581f0c(0x124)](_0x4f28ce))],_0x4b713a);var _0x320559=Object[_0x581f0c(0x177)],_0x44f016=Object[_0x581f0c(0x1be)],_0x9368b0=(_0x332c8f,_0x59e757,_0x2f6748)=>_0x59e757 in _0x332c8f?_0x320559(_0x332c8f,_0x59e757,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f6748}):_0x332c8f[_0x59e757]=_0x2f6748,_0x3ed954=(_0x4a04ef,_0x2f3803,_0x32fff0,_0x72e457)=>{const _0x5d2d3c=_0x581f0c;for(var _0x328f0c=_0x72e457>0x1?void 0x0:_0x72e457?_0x44f016(_0x2f3803,_0x32fff0):_0x2f3803,_0x8004d6=_0x4a04ef[_0x5d2d3c(0x1bf)]-0x1,_0x5fb60f;_0x8004d6>=0x0;_0x8004d6--)(_0x5fb60f=_0x4a04ef[_0x8004d6])&&(_0x328f0c=_0x5fb60f(_0x328f0c)||_0x328f0c);return _0x328f0c;},_0x56674d=(_0x3bfd51,_0x4f9182)=>(_0x130181,_0x5b0e53)=>_0x4f9182(_0x130181,_0x5b0e53,_0x3bfd51),_0x12db3d=(_0x158e34,_0x246c6a,_0x433d59)=>_0x9368b0(_0x158e34,typeof _0x246c6a!=_0x581f0c(0x174)?_0x246c6a+'':_0x246c6a,_0x433d59);const _0x4d24f6=_0x581f0c(0x118);_0x3a76e2[_0x581f0c(0x179)]=class extends _0x236774[_0x581f0c(0x1d0)]{constructor(_0x354d88=_0x518282,_0x531bef,_0x3ca641){const _0x5611ce=_0x581f0c;super(),this['_config']=_0x354d88,this[_0x5611ce(0x188)]=_0x531bef,this[_0x5611ce(0x126)]=_0x3ca641;const {..._0x26b94c}=_0x236774[_0x5611ce(0x16e)]({},_0x518282,this['_config']);this[_0x5611ce(0x126)]['setConfig'](_0x5d96b9,_0x26b94c);}[_0x581f0c(0x1da)](){const _0x3964fd=_0x581f0c;_0x236774[_0x3964fd(0x17b)](this['_injector'],_0x236774[_0x3964fd(0xf7)]([[_0x4f28ce],[_0x3a76e2[_0x3964fd(0x108)]],[_0x4b713a],[_0x3a76e2['DesktopLiveShareController']]],this[_0x3964fd(0x13f)]['override'])),_0x236774[_0x3964fd(0x175)](this[_0x3964fd(0x188)],[[_0x4b713a]]);}[_0x581f0c(0x151)](){const _0x9228b1=_0x581f0c;_0x236774[_0x9228b1(0x175)](this[_0x9228b1(0x188)],[[_0x3a76e2[_0x9228b1(0x1bd)]]]);}},_0x12db3d(_0x3a76e2['UniverLiveSharePlugin'],_0x581f0c(0x1a6),_0x236774[_0x581f0c(0x105)][_0x581f0c(0x103)]),_0x12db3d(_0x3a76e2[_0x581f0c(0x179)],_0x581f0c(0x195),_0x4d24f6),_0x3a76e2[_0x581f0c(0x179)]=_0x3ed954([_0x236774[_0x581f0c(0x138)](_0x172967[_0x581f0c(0x18f)]),_0x56674d(0x1,_0x236774['Inject'](_0x236774['Injector'])),_0x56674d(0x2,_0x236774['IConfigService'])],_0x3a76e2[_0x581f0c(0x179)]),_0x3a76e2[_0x581f0c(0x17a)]=_0x124edd,_0x3a76e2['LiveShareService']=_0x4f28ce,_0x3a76e2[_0x581f0c(0x19f)]=_0x39bb62,Object[_0x581f0c(0x177)](_0x3a76e2,Symbol[_0x581f0c(0x197)],{'value':'Module'});}));
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();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.16.1",
3
+ "version": "0.17.0",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,16 +57,16 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.1.1",
60
- "@univerjs-pro/collaboration": "0.16.1",
61
- "@univerjs/core": "0.16.1",
62
- "@univerjs-pro/collaboration-client": "0.16.1",
63
- "@univerjs/design": "0.16.1",
64
- "@univerjs/sheets": "0.16.1",
65
- "@univerjs/sheets-ui": "0.16.1",
66
- "@univerjs/ui": "0.16.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"
67
67
  },
68
68
  "devDependencies": {
69
- "postcss": "^8.5.6",
69
+ "postcss": "^8.5.8",
70
70
  "react": "18.3.1",
71
71
  "rxjs": "7.8.2",
72
72
  "tailwindcss": "^3.4.17",
@@ -74,7 +74,7 @@
74
74
  "vite": "^7.3.1",
75
75
  "vitest": "^4.0.18",
76
76
  "@univerjs/protocol": "0.1.48",
77
- "@univerjs-infra/shared": "0.16.1"
77
+ "@univerjs-infra/shared": "0.17.0"
78
78
  },
79
79
  "scripts": {
80
80
  "test": "vitest run",