@univerjs-pro/live-share 0.12.4-insiders.20251211-c28f914 → 0.12.4-insiders.20251212-6c41730

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 _0x1a73b3=_0x39a5;(function(_0x5baca1,_0x4633bf){const _0x7cf5a9=_0x39a5,_0x31d99a=_0x5baca1();while(!![]){try{const _0x235df4=-parseInt(_0x7cf5a9(0x189))/0x1*(-parseInt(_0x7cf5a9(0x181))/0x2)+parseInt(_0x7cf5a9(0x184))/0x3*(parseInt(_0x7cf5a9(0x197))/0x4)+parseInt(_0x7cf5a9(0x18f))/0x5*(parseInt(_0x7cf5a9(0x1a8))/0x6)+parseInt(_0x7cf5a9(0x195))/0x7*(-parseInt(_0x7cf5a9(0x18a))/0x8)+-parseInt(_0x7cf5a9(0x19a))/0x9*(-parseInt(_0x7cf5a9(0x185))/0xa)+parseInt(_0x7cf5a9(0x19f))/0xb*(parseInt(_0x7cf5a9(0x183))/0xc)+parseInt(_0x7cf5a9(0x1a4))/0xd*(-parseInt(_0x7cf5a9(0x1a5))/0xe);if(_0x235df4===_0x4633bf)break;else _0x31d99a['push'](_0x31d99a['shift']());}catch(_0x3a4958){_0x31d99a['push'](_0x31d99a['shift']());}}}(_0x5d7b,0xe2b31));function _0x39a5(_0x5d118b,_0x4074ba){_0x5d118b=_0x5d118b-0x17e;const _0x5d7b7d=_0x5d7b();let _0x39a5d7=_0x5d7b7d[_0x5d118b];return _0x39a5d7;}const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d[_0x1a73b3(0x188)]{[_0x1a73b3(0x182)](_0x529fa3,_0x3471f1,_0x573c54,_0x56b6de,_0x1b7928){const _0x9d49bf=_0x1a73b3,_0x516e82=_0x529fa3[_0x9d49bf(0x180)](n['LiveShareController']),_0x183def=_0x529fa3[_0x9d49bf(0x180)](g[_0x9d49bf(0x1a9)]),_0x99172c=_0x3471f1[_0x9d49bf(0x19b)](),_0x3b4479=_0x3471f1[_0x9d49bf(0x19e)](),_0x4e4253=_0x516e82[_0x9d49bf(0x192)](_0x99172c);(_0x4e4253==null?void 0x0:_0x4e4253[_0x9d49bf(0x1aa)]())!==n[_0x9d49bf(0x17e)][_0x9d49bf(0x17f)]||(_0x573c54[_0x9d49bf(0x1a6)]()!==_0x3b4479[_0x9d49bf(0x1a6)]()&&this[_0x9d49bf(0x18c)][_0x9d49bf(0x186)](u[_0x9d49bf(0x193)]['id'],{'unitId':_0x99172c,'subUnitId':_0x573c54[_0x9d49bf(0x1a6)]()}),!_0x183def[_0x9d49bf(0x199)](_0x99172c))||_0x1b7928['syncExecuteCommand'](f[_0x9d49bf(0x18b)]['id'],{'unitId':_0x3471f1[_0x9d49bf(0x19b)](),'sheetId':_0x573c54[_0x9d49bf(0x1a6)](),'sheetViewStartRow':_0x56b6de[_0x9d49bf(0x1ab)],'sheetViewStartColumn':_0x56b6de[_0x9d49bf(0x1a1)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x5d7b(){const _0x4af0c7=['executeCommand','getId','FRange','5495VjxgAj','64PKmTMt','SetScrollOperation','_commandService','stopFollowing','FEnum','65KsHqWQ','No\x20active\x20workbook\x20found.','extend','getLiveShareCoordinatorSync','SetWorksheetActiveOperation','startFollowing','177401ZqOyGK','getActiveWorkbook','12fiTNvj','_injector','getRenderById','131139XlxjWj','getUnitId','getLiveShareStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getActiveSheet','808137vCkAUL','FUniver','startColumn','tryStartPresenting','LiveShareController','598533RhQGsV','462xrvPzO','getSheetId','stopPresenting','193554pdsFQF','IRenderManagerService','getStatus','startRow','startPresenting','LiveShareStatus','PRESENTING','get','68rYYKTC','_initialize','60gOjjyX','467733MJFbtu','830BzzfzW'];_0x5d7b=function(){return _0x4af0c7;};return _0x5d7b();}d[_0x1a73b3(0x188)][_0x1a73b3(0x191)](w);class C extends a[_0x1a73b3(0x1a0)]{[_0x1a73b3(0x19c)](){const _0x4f0b72=_0x1a73b3;var _0xb8c31e,_0x435c25;const _0x3ce10f=this[_0x4f0b72(0x198)][_0x4f0b72(0x180)](n[_0x4f0b72(0x1a3)]),_0x565dfe=(_0xb8c31e=this[_0x4f0b72(0x196)]())==null?void 0x0:_0xb8c31e['getId']();if(!_0x565dfe)throw new Error(_0x4f0b72(0x190));const _0x22c0e6=_0x3ce10f[_0x4f0b72(0x192)](_0x565dfe);return(_0x435c25=_0x22c0e6==null?void 0x0:_0x22c0e6['getStatus']())!=null?_0x435c25:n['LiveShareStatus']['IDLE'];}[_0x1a73b3(0x194)](){const _0x4c3981=_0x1a73b3;var _0x3c4d0b;const _0x1555f1=this[_0x4c3981(0x198)]['get'](n[_0x4c3981(0x1a3)]),_0x28ecb4=(_0x3c4d0b=this['getActiveWorkbook']())==null?void 0x0:_0x3c4d0b[_0x4c3981(0x187)]();if(!_0x28ecb4)throw new Error(_0x4c3981(0x190));const _0x358e44=_0x1555f1[_0x4c3981(0x192)](_0x28ecb4);if(!_0x358e44)throw new Error(_0x4c3981(0x19d));_0x358e44['startFollowing']();}[_0x1a73b3(0x18d)](){const _0x4d8bd0=_0x1a73b3;var _0xbb3b8c;const _0x520eb5=this['_injector']['get'](n[_0x4d8bd0(0x1a3)]),_0x5f1216=(_0xbb3b8c=this[_0x4d8bd0(0x196)]())==null?void 0x0:_0xbb3b8c['getId']();if(!_0x5f1216)throw new Error(_0x4d8bd0(0x190));const _0x3483da=_0x520eb5[_0x4d8bd0(0x192)](_0x5f1216);if(!_0x3483da)throw new Error(_0x4d8bd0(0x19d));_0x3483da[_0x4d8bd0(0x18d)]();}[_0x1a73b3(0x1ac)](){const _0x23b2be=_0x1a73b3;var _0x339d8b;const _0x1dfc84=this[_0x23b2be(0x198)][_0x23b2be(0x180)](n[_0x23b2be(0x1a3)]),_0x1e622b=(_0x339d8b=this[_0x23b2be(0x196)]())==null?void 0x0:_0x339d8b['getId']();if(!_0x1e622b)throw new Error('No\x20active\x20workbook\x20found.');const _0x10d58f=_0x1dfc84[_0x23b2be(0x192)](_0x1e622b);if(!_0x10d58f)throw new Error(_0x23b2be(0x19d));_0x10d58f[_0x23b2be(0x1a2)]();}['stopPresenting'](){const _0x289898=_0x1a73b3;var _0x10f0c0;const _0xbc328d=this[_0x289898(0x198)]['get'](n[_0x289898(0x1a3)]),_0x35c556=(_0x10f0c0=this[_0x289898(0x196)]())==null?void 0x0:_0x10f0c0[_0x289898(0x187)]();if(!_0x35c556)throw new Error(_0x289898(0x190));const _0x247fe6=_0xbc328d[_0x289898(0x192)](_0x35c556);if(!_0x247fe6)throw new Error(_0x289898(0x19d));_0x247fe6[_0x289898(0x1a7)]();}}a[_0x1a73b3(0x1a0)][_0x1a73b3(0x191)](C);class L extends a[_0x1a73b3(0x18e)]{get['LiveShareStatusEnum'](){const _0x183d8f=_0x1a73b3;return n[_0x183d8f(0x17e)];}}a[_0x1a73b3(0x18e)]['extend'](L);
1
+ 'use strict';const _0x40ddeb=_0x2616;(function(_0x265ab4,_0x12cba2){const _0x44121a=_0x2616,_0x2b921f=_0x265ab4();while(!![]){try{const _0x13a5cd=parseInt(_0x44121a(0x10d))/0x1*(-parseInt(_0x44121a(0x108))/0x2)+-parseInt(_0x44121a(0x10e))/0x3+-parseInt(_0x44121a(0x10b))/0x4*(-parseInt(_0x44121a(0x100))/0x5)+-parseInt(_0x44121a(0x101))/0x6+-parseInt(_0x44121a(0x121))/0x7+parseInt(_0x44121a(0x115))/0x8*(-parseInt(_0x44121a(0x116))/0x9)+parseInt(_0x44121a(0x103))/0xa;if(_0x13a5cd===_0x12cba2)break;else _0x2b921f['push'](_0x2b921f['shift']());}catch(_0xadd0c2){_0x2b921f['push'](_0x2b921f['shift']());}}}(_0x4735,0xe95ef));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d[_0x40ddeb(0x118)]{[_0x40ddeb(0x110)](_0x105d06,_0x387ebe,_0x5819d4,_0xdbd2bc,_0x4fab26){const _0x4afdd5=_0x40ddeb,_0x58beb7=_0x105d06['get'](n[_0x4afdd5(0xfc)]),_0x2d6b02=_0x105d06[_0x4afdd5(0x112)](g[_0x4afdd5(0x11d)]),_0x157510=_0x387ebe[_0x4afdd5(0xfd)](),_0xc0258c=_0x387ebe[_0x4afdd5(0x107)](),_0x1e3de6=_0x58beb7['getLiveShareCoordinatorSync'](_0x157510);(_0x1e3de6==null?void 0x0:_0x1e3de6[_0x4afdd5(0x11e)]())!==n[_0x4afdd5(0x10f)][_0x4afdd5(0x102)]||(_0x5819d4[_0x4afdd5(0x123)]()!==_0xc0258c[_0x4afdd5(0x123)]()&&this['_commandService'][_0x4afdd5(0x122)](u[_0x4afdd5(0x111)]['id'],{'unitId':_0x157510,'subUnitId':_0x5819d4['getSheetId']()}),!_0x2d6b02[_0x4afdd5(0x11f)](_0x157510))||_0x4fab26[_0x4afdd5(0x114)](f[_0x4afdd5(0x119)]['id'],{'unitId':_0x387ebe[_0x4afdd5(0xfd)](),'sheetId':_0x5819d4['getSheetId'](),'sheetViewStartRow':_0xdbd2bc[_0x4afdd5(0x10c)],'sheetViewStartColumn':_0xdbd2bc['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x40ddeb(0x118)]['extend'](w);class C extends a['FUniver']{['getLiveShareStatus'](){const _0x206625=_0x40ddeb;var _0x56115e,_0x4316df;const _0x306046=this[_0x206625(0x106)][_0x206625(0x112)](n[_0x206625(0xfc)]),_0x340c81=(_0x56115e=this[_0x206625(0x10a)]())==null?void 0x0:_0x56115e[_0x206625(0x117)]();if(!_0x340c81)throw new Error('No\x20active\x20workbook\x20found.');const _0xfbe09d=_0x306046[_0x206625(0x120)](_0x340c81);return(_0x4316df=_0xfbe09d==null?void 0x0:_0xfbe09d[_0x206625(0x11e)]())!=null?_0x4316df:n['LiveShareStatus']['IDLE'];}[_0x40ddeb(0x113)](){const _0x591c2d=_0x40ddeb;var _0x451cc3;const _0x1ea9f2=this[_0x591c2d(0x106)][_0x591c2d(0x112)](n['LiveShareController']),_0x1c3cf9=(_0x451cc3=this['getActiveWorkbook']())==null?void 0x0:_0x451cc3[_0x591c2d(0x117)]();if(!_0x1c3cf9)throw new Error(_0x591c2d(0xfe));const _0x43dad2=_0x1ea9f2[_0x591c2d(0x120)](_0x1c3cf9);if(!_0x43dad2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x43dad2['startFollowing']();}[_0x40ddeb(0x105)](){const _0x28b1c2=_0x40ddeb;var _0x317f29;const _0x328f0e=this[_0x28b1c2(0x106)][_0x28b1c2(0x112)](n[_0x28b1c2(0xfc)]),_0x4e8d82=(_0x317f29=this[_0x28b1c2(0x10a)]())==null?void 0x0:_0x317f29[_0x28b1c2(0x117)]();if(!_0x4e8d82)throw new Error(_0x28b1c2(0xfe));const _0x49ce3f=_0x328f0e[_0x28b1c2(0x120)](_0x4e8d82);if(!_0x49ce3f)throw new Error(_0x28b1c2(0x11c));_0x49ce3f[_0x28b1c2(0x105)]();}[_0x40ddeb(0xff)](){const _0x7b9a77=_0x40ddeb;var _0x764aa9;const _0x2a1cd2=this[_0x7b9a77(0x106)][_0x7b9a77(0x112)](n[_0x7b9a77(0xfc)]),_0x44ca37=(_0x764aa9=this['getActiveWorkbook']())==null?void 0x0:_0x764aa9['getId']();if(!_0x44ca37)throw new Error('No\x20active\x20workbook\x20found.');const _0xce42e9=_0x2a1cd2[_0x7b9a77(0x120)](_0x44ca37);if(!_0xce42e9)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xce42e9['tryStartPresenting']();}['stopPresenting'](){const _0x3e615a=_0x40ddeb;var _0x54522c;const _0x4bcab8=this[_0x3e615a(0x106)][_0x3e615a(0x112)](n['LiveShareController']),_0x58de11=(_0x54522c=this['getActiveWorkbook']())==null?void 0x0:_0x54522c[_0x3e615a(0x117)]();if(!_0x58de11)throw new Error(_0x3e615a(0xfe));const _0x720901=_0x4bcab8['getLiveShareCoordinatorSync'](_0x58de11);if(!_0x720901)throw new Error(_0x3e615a(0x11c));_0x720901[_0x3e615a(0x11a)]();}}function _0x4735(){const _0x1e7c4c=['stopFollowing','_injector','getActiveSheet','2390cweGOG','FUniver','getActiveWorkbook','4008828UHjmYq','startRow','989fQHAln','590274ySTNTZ','LiveShareStatus','_initialize','SetWorksheetActiveOperation','get','startFollowing','syncExecuteCommand','1016NxMvCh','127035FyhmeO','getId','FRange','SetScrollOperation','stopPresenting','LiveShareStatusEnum','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','IRenderManagerService','getStatus','getRenderById','getLiveShareCoordinatorSync','5784205EpSYRm','executeCommand','getSheetId','extend','LiveShareController','getUnitId','No\x20active\x20workbook\x20found.','startPresenting','5jNtQzr','8428818VlsNar','PRESENTING','53560160iHucMF','FEnum'];_0x4735=function(){return _0x1e7c4c;};return _0x4735();}a[_0x40ddeb(0x109)][_0x40ddeb(0xfb)](C);class L extends a[_0x40ddeb(0x104)]{get[_0x40ddeb(0x11b)](){return n['LiveShareStatus'];}}function _0x2616(_0x4244f0,_0x4d7301){_0x4244f0=_0x4244f0-0xfb;const _0x473571=_0x4735();let _0x26160c=_0x473571[_0x4244f0];return _0x26160c;}a[_0x40ddeb(0x104)]['extend'](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1789ed=_0x5a94;(function(_0x17133c,_0x1eb6d6){const _0x1672fc=_0x5a94,_0xbf9a90=_0x17133c();while(!![]){try{const _0x56799f=-parseInt(_0x1672fc(0x193))/0x1+parseInt(_0x1672fc(0x223))/0x2*(parseInt(_0x1672fc(0x214))/0x3)+parseInt(_0x1672fc(0x237))/0x4+-parseInt(_0x1672fc(0x1b8))/0x5*(-parseInt(_0x1672fc(0x1b3))/0x6)+parseInt(_0x1672fc(0x171))/0x7*(-parseInt(_0x1672fc(0x178))/0x8)+parseInt(_0x1672fc(0x1d9))/0x9+-parseInt(_0x1672fc(0x1aa))/0xa;if(_0x56799f===_0x1eb6d6)break;else _0xbf9a90['push'](_0xbf9a90['shift']());}catch(_0xb675c6){_0xbf9a90['push'](_0xbf9a90['shift']());}}}(_0x2aa3,0x8e4ce));var T=Object['defineProperty'],U=(_0x297f51,_0x191dac,_0x3af6dc)=>_0x191dac in _0x297f51?T(_0x297f51,_0x191dac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3af6dc}):_0x297f51[_0x191dac]=_0x3af6dc,_=(_0x3d6c86,_0xbd9d86,_0x33ecc1)=>U(_0x3d6c86,typeof _0xbd9d86!=_0x1789ed(0x202)?_0xbd9d86+'':_0xbd9d86,_0x33ecc1);Object[_0x1789ed(0x1c3)](exports,Symbol[_0x1789ed(0x215)],{'value':_0x1789ed(0x201)});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:_0xf54630,..._0x28cd1f}){const _0x132acc=_0x1789ed,{icon:_0x231459,id:_0x671e15,className:_0x4e92ae,extend:_0x12a2a1,..._0x1e4d38}=_0x28cd1f,_0x270f34=('univerjs-icon\x20univerjs-icon-'+_0x671e15+'\x20'+(_0x4e92ae||''))[_0x132acc(0x19e)](),_0x4634b3=v['useRef']('_'+H());return j(_0x231459,''+_0x671e15,{'defIds':_0x231459['defIds'],'idSuffix':_0x4634b3[_0x132acc(0x1fb)]},{'ref':_0xf54630,'className':_0x270f34,..._0x1e4d38},_0x12a2a1);}function j(_0x169835,_0x2f8c2f,_0x4632e6,_0x525b33,_0x2bde91){const _0x569448=_0x1789ed;return v['createElement'](_0x169835[_0x569448(0x18e)],{'key':_0x2f8c2f,...y(_0x169835,_0x4632e6,_0x2bde91),..._0x525b33},(F(_0x169835,_0x4632e6)[_0x569448(0x177)]||[])[_0x569448(0x1bf)]((_0x4a3059,_0xc6046a)=>j(_0x4a3059,_0x2f8c2f+'-'+_0x169835[_0x569448(0x18e)]+'-'+_0xc6046a,_0x4632e6,void 0x0,_0x2bde91)));}function y(_0x44535a,_0xb4b199,_0x1590bd){const _0x34c935=_0x1789ed,_0x267d07={..._0x44535a['attrs']};_0x1590bd!=null&&_0x1590bd[_0x34c935(0x190)]&&_0x267d07['fill']===_0x34c935(0x190)&&(_0x267d07[_0x34c935(0x21d)]=_0x1590bd['colorChannel1']),_0x44535a[_0x34c935(0x18e)]===_0x34c935(0x176)&&_0x267d07['id']&&(_0x267d07['id']=_0x267d07['id']+_0xb4b199[_0x34c935(0x1d3)]),Object['entries'](_0x267d07)['forEach'](([_0x1c0fd6,_0x46c6a5])=>{const _0x25116c=_0x34c935;_0x1c0fd6===_0x25116c(0x176)&&typeof _0x46c6a5==_0x25116c(0x1fe)&&(_0x267d07[_0x1c0fd6]=_0x46c6a5[_0x25116c(0x235)](/url\(#(.*)\)/,'url(#$1'+_0xb4b199[_0x25116c(0x1d3)]+')'));});const {defIds:_0x957e70}=_0xb4b199;return!_0x957e70||_0x957e70[_0x34c935(0x1df)]===0x0||(_0x44535a[_0x34c935(0x18e)]===_0x34c935(0x218)&&_0x267d07[_0x34c935(0x236)]&&(_0x267d07[_0x34c935(0x236)]=_0x267d07[_0x34c935(0x236)]+_0xb4b199[_0x34c935(0x1d3)]),Object[_0x34c935(0x16c)](_0x267d07)[_0x34c935(0x1de)](([_0x44c382,_0x305e8c])=>{const _0x50986d=_0x34c935;typeof _0x305e8c=='string'&&(_0x267d07[_0x44c382]=_0x305e8c[_0x50986d(0x235)](/url\(#(.*)\)/,_0x50986d(0x1f4)+_0xb4b199[_0x50986d(0x1d3)]+')'));})),_0x267d07;}function F(_0xd01cdd,_0x206a61){const _0x310d6a=_0x1789ed;var _0x3bc1f2;const {defIds:_0x1e104e}=_0x206a61;return!_0x1e104e||_0x1e104e['length']===0x0?_0xd01cdd:_0xd01cdd[_0x310d6a(0x18e)]==='defs'&&((_0x3bc1f2=_0xd01cdd['children'])!=null&&_0x3bc1f2[_0x310d6a(0x1df)])?{..._0xd01cdd,'children':_0xd01cdd[_0x310d6a(0x177)][_0x310d6a(0x1bf)](_0x9f87ef=>typeof _0x9f87ef[_0x310d6a(0x1e9)]['id']=='string'&&_0x1e104e&&_0x1e104e['includes'](_0x9f87ef[_0x310d6a(0x1e9)]['id'])?{..._0x9f87ef,'attrs':{..._0x9f87ef['attrs'],'id':_0x9f87ef[_0x310d6a(0x1e9)]['id']+_0x206a61[_0x310d6a(0x1d3)]}}:_0x9f87ef)}:_0xd01cdd;}function H(){const _0x571615=_0x1789ed;return Math[_0x571615(0x1c1)]()['toString'](0x24)[_0x571615(0x20b)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':_0x1789ed(0x1f8),'attrs':{'xmlns':_0x1789ed(0x209),'fill':_0x1789ed(0x238),'viewBox':'0\x200\x2017\x2017','width':_0x1789ed(0x1f7),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x1789ed(0x184),'d':_0x1789ed(0x1f1)}},{'tag':_0x1789ed(0x234),'attrs':{'fill':_0x1789ed(0x184),'d':_0x1789ed(0x1e0),'fillRule':'evenodd','clipRule':_0x1789ed(0x1cd)}}]},R=v['forwardRef'](function(_0x15b901,_0x4c073a){const _0x133c57=_0x1789ed;return v['createElement'](x,Object[_0x133c57(0x208)]({},_0x15b901,{'id':_0x133c57(0x19d),'ref':_0x4c073a,'icon':V}));});R[_0x1789ed(0x1af)]=_0x1789ed(0x22e);class E extends o[_0x1789ed(0x1db)]{constructor(){const _0x43ff24=_0x1789ed;super(...arguments),_(this,_0x43ff24(0x1b0),new Set()),_(this,'_reporters',new Set());}[_0x1789ed(0x16f)](_0x2cb3dc){const _0x28d4d9=_0x1789ed;return this[_0x28d4d9(0x1b0)][_0x28d4d9(0x16d)](_0x2cb3dc),o['toDisposable'](()=>this[_0x28d4d9(0x1b0)][_0x28d4d9(0x1c8)](_0x2cb3dc));}['registerInitialStateReporter'](_0x54c827){const _0x2e5337=_0x1789ed;return this['_reporters']['add'](_0x54c827),o[_0x2e5337(0x182)](()=>this[_0x2e5337(0x22c)]['delete'](_0x54c827));}['shouldShareOperation'](_0x15e2dc){const _0x104eae=_0x1789ed;return this[_0x104eae(0x1b0)][_0x104eae(0x1f9)](_0x15e2dc);}[_0x1789ed(0x18a)](_0x160e87){const _0x511d05=_0x1789ed;return Array[_0x511d05(0x196)](this['_reporters'])[_0x511d05(0x1bf)](_0x2fb5dd=>_0x2fb5dd(_0x160e87));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x12049c,_0x3e6f57,_0x5c7cae,_0x4fe722)=>{const _0x3def05=_0x1789ed;for(var _0x1cf3f0=_0x4fe722>0x1?void 0x0:_0x4fe722?M(_0x3e6f57,_0x5c7cae):_0x3e6f57,_0x2d2974=_0x12049c[_0x3def05(0x1df)]-0x1,_0x2160ba;_0x2d2974>=0x0;_0x2d2974--)(_0x2160ba=_0x12049c[_0x2d2974])&&(_0x1cf3f0=_0x2160ba(_0x1cf3f0)||_0x1cf3f0);return _0x1cf3f0;},S=(_0x3c758d,_0x3ede5)=>(_0x5080fc,_0x2d04c0)=>_0x3ede5(_0x5080fc,_0x2d04c0,_0x3c758d);exports[_0x1789ed(0x195)]=class extends o[_0x1789ed(0x17a)]{constructor(_0xf8c687,_0x1f9cb4,_0x4c954f){const _0x4aeb54=_0x1789ed;super(),_(this,_0x4aeb54(0x186),new Map()),(this['_univerInstanceService']=_0xf8c687,this[_0x4aeb54(0x23a)]=_0x1f9cb4,this[_0x4aeb54(0x213)]=_0x4c954f,this[_0x4aeb54(0x1e7)]());}async[_0x1789ed(0x228)](_0x5b570c){const _0x29ccf1=_0x1789ed;return this[_0x29ccf1(0x186)]['has'](_0x5b570c)||await this[_0x29ccf1(0x174)](_0x5b570c),this['_entities']['get'](_0x5b570c);}[_0x1789ed(0x1dd)](_0x8048de){const _0x51ed92=_0x1789ed;var _0x4b467b;return(_0x4b467b=this[_0x51ed92(0x186)][_0x51ed92(0x1c2)](_0x8048de))!=null?_0x4b467b:null;}[_0x1789ed(0x1e7)](){const _0x3e0bcc=_0x1789ed;this[_0x3e0bcc(0x222)][_0x3e0bcc(0x21f)](o['UniverInstanceType'][_0x3e0bcc(0x20c)])[_0x3e0bcc(0x210)](I[_0x3e0bcc(0x192)](this[_0x3e0bcc(0x1a7)]))['subscribe'](async _0x4ea3c0=>{const _0xfd0e=_0x3e0bcc,_0x135ae1=_0x4ea3c0[_0xfd0e(0x205)]();this[_0xfd0e(0x186)]['has'](_0x135ae1)||this[_0xfd0e(0x174)](_0x135ae1);}),this[_0x3e0bcc(0x222)]['getTypeOfUnitDisposed$'](o[_0x3e0bcc(0x217)][_0x3e0bcc(0x20c)])['pipe'](I[_0x3e0bcc(0x192)](this[_0x3e0bcc(0x1a7)]))[_0x3e0bcc(0x1d8)](_0x121b97=>{const _0x389ca9=_0x3e0bcc,_0x4fac97=_0x121b97[_0x389ca9(0x205)](),_0x52f48f=this[_0x389ca9(0x186)][_0x389ca9(0x1c2)](_0x4fac97);_0x52f48f==null||_0x52f48f[_0x389ca9(0x20e)]();});}async[_0x1789ed(0x174)](_0x5a61db){const _0x4028e7=_0x1789ed,_0x1d2f1c=await this[_0x4028e7(0x213)]['requireSession'](_0x5a61db),_0x5b6787=this['_injector']['createInstance'](exports['LiveShareCoordinator'],_0x5a61db,_0x1d2f1c);return _0x5b6787[_0x4028e7(0x1c9)](),this[_0x4028e7(0x186)][_0x4028e7(0x18f)](_0x5a61db,_0x5b6787),_0x5b6787;}},exports[_0x1789ed(0x195)]=P([S(0x0,o[_0x1789ed(0x1eb)]),S(0x1,o[_0x1789ed(0x1e1)](o[_0x1789ed(0x18b)])),S(0x2,o['Inject'](b[_0x1789ed(0x19b)]))],exports[_0x1789ed(0x195)]);var u=(_0x56a3c4=>(_0x56a3c4['OFFLINE']='offline',_0x56a3c4['IDLE']='idle',_0x56a3c4[_0x1789ed(0x17d)]=_0x1789ed(0x233),_0x56a3c4[_0x1789ed(0x170)]=_0x1789ed(0x191),_0x56a3c4[_0x1789ed(0x1da)]=_0x1789ed(0x179),_0x56a3c4))(u||{});const k=_0x1789ed(0x1e5),q=0xc8;exports[_0x1789ed(0x199)]=class extends o[_0x1789ed(0x17a)]{constructor(_0x47ff23,_0x2e08ef,_0x2747ad,_0xaba262,_0x4f2c3f){const _0x49e41b=_0x1789ed;super(),_(this,_0x49e41b(0x22d),new O[(_0x49e41b(0x224))]('idle')),_(this,_0x49e41b(0x17f),this[_0x49e41b(0x22d)][_0x49e41b(0x1bb)]()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,_0x49e41b(0x187),null),(this[_0x49e41b(0x1d2)]=_0x47ff23,this['_collabSession']=_0x2e08ef,this[_0x49e41b(0x220)]=_0x2747ad,this[_0x49e41b(0x1e8)]=_0xaba262,this['_commandService']=_0x4f2c3f);}get[_0x1789ed(0x203)](){const _0x1bee99=_0x1789ed;return this[_0x1bee99(0x22d)]['getValue']();}[_0x1789ed(0x20e)](){const _0x1c590a=_0x1789ed;var _0x1b26d3;(_0x1b26d3=this['_commandDisposable'])==null||_0x1b26d3['dispose'](),this[_0x1c590a(0x22d)][_0x1c590a(0x216)](_0x1c590a(0x1a8)),this['_status$']['complete']();}['getStatus'](){const _0x20acb8=_0x1789ed;return this[_0x20acb8(0x203)];}[_0x1789ed(0x1c9)](){const _0x2683d7=_0x1789ed;this[_0x2683d7(0x1e7)]||(this[_0x2683d7(0x1e7)]=!0x0,this[_0x2683d7(0x1a3)][_0x2683d7(0x1c6)][_0x2683d7(0x210)](I['takeUntil'](this['dispose$']))[_0x2683d7(0x1d8)](_0x284f79=>{const _0x51316a=_0x2683d7;switch(_0x284f79){case b['SessionStatus'][_0x51316a(0x183)]:this[_0x51316a(0x1b5)]();break;case b['SessionStatus']['ONLINE']:this[_0x51316a(0x200)]();break;}}),this[_0x2683d7(0x1a3)][_0x2683d7(0x225)][_0x2683d7(0x210)](I[_0x2683d7(0x192)](this[_0x2683d7(0x1a7)]))[_0x2683d7(0x1d8)](_0x19e514=>{const _0x1cdcac=_0x2683d7,{eventID:_0x381b29}=_0x19e514;switch(_0x381b29){case d[_0x1cdcac(0x21e)][_0x1cdcac(0x21a)]:this[_0x1cdcac(0x16b)](_0x19e514);break;case d[_0x1cdcac(0x21e)]['LIVESHARE_OPERATION']:this[_0x1cdcac(0x1a1)](_0x19e514);break;case d[_0x1cdcac(0x21e)][_0x1cdcac(0x1c7)]:this[_0x1cdcac(0x231)]();break;case d[_0x1cdcac(0x21e)][_0x1cdcac(0x1b6)]:this[_0x1cdcac(0x20d)](_0x19e514);break;}}));}[_0x1789ed(0x1b9)](){const _0x51020d=_0x1789ed;this[_0x51020d(0x1a3)][_0x51020d(0x229)]({'eventID':d[_0x51020d(0x21e)][_0x51020d(0x19a)],'data':{'unitID':this[_0x51020d(0x1d2)],'userID':this['_collabSession'][_0x51020d(0x173)]()}},this[_0x51020d(0x1d2)]);}[_0x1789ed(0x212)](){const _0xc2c9cc=_0x1789ed;this[_0xc2c9cc(0x203)]===_0xc2c9cc(0x179)&&(this[_0xc2c9cc(0x22d)][_0xc2c9cc(0x216)](_0xc2c9cc(0x1a8)),this['_collabSession']['send']({'eventID':d[_0xc2c9cc(0x21e)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0xc2c9cc(0x1d2)]}},this[_0xc2c9cc(0x1d2)]));}[_0x1789ed(0x21c)](){const _0x5d28b7=_0x1789ed;this[_0x5d28b7(0x203)]==='not-following'&&(this['_status$'][_0x5d28b7(0x216)](_0x5d28b7(0x233)),this[_0x5d28b7(0x1b7)]());}[_0x1789ed(0x189)](){const _0x36a5d4=_0x1789ed;this[_0x36a5d4(0x203)]===_0x36a5d4(0x233)&&this['_stopFollowing']();}[_0x1789ed(0x16b)](_0xf0f28b){const _0x26675b=_0x1789ed,{presenter:_0x25a1f8}=_0xf0f28b[_0x26675b(0x20f)],_0x20ac72=this[_0x26675b(0x1a3)][_0x26675b(0x173)]();this[_0x26675b(0x187)]=_0x25a1f8,_0x25a1f8===_0x20ac72?(this[_0x26675b(0x204)](),this[_0x26675b(0x188)]()):this['_status']!==_0x26675b(0x191)&&(this[_0x26675b(0x1b4)](),this[_0x26675b(0x1b7)]());}[_0x1789ed(0x239)](){const _0x7422b1=_0x1789ed,_0x3b9bce={'eventID':d[_0x7422b1(0x21e)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x7422b1(0x229)](_0x3b9bce,this[_0x7422b1(0x1d2)]);}[_0x1789ed(0x231)](){const _0x4df01f=_0x1789ed;this[_0x4df01f(0x187)]=null,this['_status']!=='presenting'&&this[_0x4df01f(0x17e)]();}['_handleNewChangeSets'](_0x142fcc){const _0x105279=_0x1789ed;if(this[_0x105279(0x203)]===_0x105279(0x233)&&this[_0x105279(0x187)]===_0x142fcc[_0x105279(0x20f)][_0x105279(0x1be)]){const _0x432775=d[_0x105279(0x1ff)](_0x142fcc['data'])[_0x105279(0x181)][_0x105279(0x194)]()[_0x105279(0x1d1)](_0x37bb35=>_0x37bb35['id']===C[_0x105279(0x18d)]['id']);if(_0x432775){const _0x254faf=_0x432775['params'][_0x105279(0x1f6)],_0x345fb2=_0x432775[_0x105279(0x1a5)][_0x105279(0x1d5)]['id'];setTimeout(()=>{const _0x32f93e=_0x105279;this['_commandService'][_0x32f93e(0x17b)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x254faf,'subUnitId':_0x345fb2},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2769dc=_0x1789ed;this[_0x2769dc(0x22d)][_0x2769dc(0x216)](_0x2769dc(0x179));const _0x22e484=new Map(),_0x386f8d=this[_0x2769dc(0x1b2)]=new o[(_0x2769dc(0x22f))]();_0x386f8d[_0x2769dc(0x16d)](o[_0x2769dc(0x182)](()=>{const _0x18aa71=_0x2769dc;_0x22e484[_0x18aa71(0x1de)](_0x11a89f=>_0x11a89f[_0x18aa71(0x1f0)]()),_0x22e484[_0x18aa71(0x20a)]();})),_0x386f8d[_0x2769dc(0x16d)](this['_commandService']['onCommandExecuted'](_0xc71c95=>{const _0x4b841a=_0x2769dc;var _0x10f51a;if(_0xc71c95['type']!==o[_0x4b841a(0x230)][_0x4b841a(0x16e)]||!this[_0x4b841a(0x1e8)]['shouldShareOperation'](_0xc71c95['id']))return;const {id:_0x27a782}=_0xc71c95;let _0x10b69c;_0x22e484['has'](_0x27a782)?_0x10b69c=_0x22e484[_0x4b841a(0x1c2)](_0x27a782):(_0x10b69c=new O[(_0x4b841a(0x1fd))](),_0x22e484[_0x4b841a(0x18f)](_0x27a782,_0x10b69c),_0x10b69c['pipe'](I['throttleTime']((_0x10f51a=this[_0x4b841a(0x220)][_0x4b841a(0x1ee)](k))!=null?_0x10f51a:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5a4c81=>{const _0x40e618=_0x4b841a;this['_collabSession']['send']({'eventID':d[_0x40e618(0x21e)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x40e618(0x1d2)],'operations':{[_0x5a4c81['id']]:{'id':_0x5a4c81['id'],'params':JSON[_0x40e618(0x1fa)](_0x5a4c81['params'])}}}},this[_0x40e618(0x1d2)]);})),_0x10b69c[_0x4b841a(0x216)](_0xc71c95);})),this[_0x2769dc(0x1e8)][_0x2769dc(0x18a)](this[_0x2769dc(0x1d2)])[_0x2769dc(0x1de)](_0x4b21b7=>this[_0x2769dc(0x1a3)][_0x2769dc(0x229)]({'eventID':d[_0x2769dc(0x21e)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4b21b7['id']]:{'id':_0x4b21b7['id'],'params':JSON['stringify'](_0x4b21b7[_0x2769dc(0x1a5)])}}}},this[_0x2769dc(0x1d2)]));}['_stopPresenting'](){const _0x6a8a15=_0x1789ed;var _0x596c88;this[_0x6a8a15(0x22d)]['next']('idle'),(_0x596c88=this[_0x6a8a15(0x1b2)])==null||_0x596c88[_0x6a8a15(0x20e)](),this[_0x6a8a15(0x1b2)]=null;}[_0x1789ed(0x1b7)](){const _0x23ee02=_0x1789ed;var _0x2b24d5;(_0x2b24d5=this[_0x23ee02(0x1b2)])==null||_0x2b24d5[_0x23ee02(0x20e)](),this[_0x23ee02(0x22d)][_0x23ee02(0x216)]('following');}[_0x1789ed(0x17e)](){const _0x17a371=_0x1789ed;var _0x5f1b0b;this['_status$'][_0x17a371(0x216)]('idle'),(_0x5f1b0b=this[_0x17a371(0x1b2)])==null||_0x5f1b0b[_0x17a371(0x20e)](),this[_0x17a371(0x1b2)]=null;}['_stopFollowing'](){const _0xe2911c=_0x1789ed;var _0x2c1ee4;this[_0xe2911c(0x22d)][_0xe2911c(0x216)](_0xe2911c(0x191)),(_0x2c1ee4=this['_commandDisposable'])==null||_0x2c1ee4[_0xe2911c(0x20e)]();}[_0x1789ed(0x1a1)](_0x3abe8d){const _0x1a0bba=_0x1789ed;if([_0x1a0bba(0x179),'not-following',_0x1a0bba(0x1d0)]['includes'](this[_0x1a0bba(0x203)])||!_0x3abe8d['data'][_0x1a0bba(0x197)]||_0x3abe8d[_0x1a0bba(0x20f)][_0x1a0bba(0x197)]===this[_0x1a0bba(0x1a3)][_0x1a0bba(0x173)]())return;this[_0x1a0bba(0x203)]===_0x1a0bba(0x1a8)&&this['_startFollowing']();const _0x45d751=_0x3abe8d[_0x1a0bba(0x20f)][_0x1a0bba(0x1ab)];Object['values'](_0x45d751)[_0x1a0bba(0x1de)](_0x37366f=>{const _0x125926=_0x1a0bba;this[_0x125926(0x175)][_0x125926(0x17b)](_0x37366f['id'],_0x37366f['params']?JSON[_0x125926(0x198)](_0x37366f[_0x125926(0x1a5)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0xed205b=_0x1789ed;var _0x208730;this['_status$'][_0xed205b(0x216)](_0xed205b(0x1d0)),(_0x208730=this[_0xed205b(0x1b2)])==null||_0x208730[_0xed205b(0x20e)]();}[_0x1789ed(0x200)](){const _0x332ab6=_0x1789ed;this[_0x332ab6(0x22d)]['next'](_0x332ab6(0x1a8)),this[_0x332ab6(0x239)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x1789ed(0x1a0)]),S(0x3,o[_0x1789ed(0x1e1)](E)),S(0x4,o[_0x1789ed(0x232)])],exports[_0x1789ed(0x199)]);function $(){const _0x499120=_0x1789ed,_0x18228e=p[_0x499120(0x1a9)](exports['LiveShareController']),_0x467c52=p[_0x499120(0x1a9)](o[_0x499120(0x1eb)]),_0x30d335=p[_0x499120(0x1ea)](()=>_0x467c52[_0x499120(0x1e2)](o['UniverInstanceType'][_0x499120(0x20c)]),void 0x0,!0x1,[]),[_0x569cdd,_0x26405b]=v['useState'](null),[_0x416066,_0x4aeca7]=v[_0x499120(0x1ad)](u[_0x499120(0x1a2)]),_0x4889a1=v[_0x499120(0x18c)](null);return v[_0x499120(0x1c0)](()=>(_0x30d335&&_0x18228e[_0x499120(0x228)](_0x30d335['getUnitId']())[_0x499120(0x1ca)](_0x207c21=>{const _0x15edd2=_0x499120;_0x26405b(_0x207c21),_0x4889a1['current']=_0x207c21['status$'][_0x15edd2(0x1d8)](_0x3aa8a8=>{_0x4aeca7(_0x3aa8a8);});}),()=>{const _0x26f6e8=_0x499120;var _0x657dab;(_0x657dab=_0x4889a1['current'])==null||_0x657dab[_0x26f6e8(0x180)](),_0x4889a1['current']=null;}),[_0x30d335,_0x18228e]),_0x569cdd?l[_0x499120(0x1cc)](f[_0x499120(0x1ba)],{'align':'end','disabled':_0x416066===u[_0x499120(0x183)],'className':_0x499120(0x1ec),'overlay':l[_0x499120(0x1cc)](W,{'status':_0x416066,'coordinator':_0x569cdd}),'children':l[_0x499120(0x1cc)]('button',{'className':f[_0x499120(0x1a6)](_0x499120(0x1c4),{'univer-cursor-not-allowed':_0x416066===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x416066!==u[_0x499120(0x183)]}),'type':'button','children':l['jsx'](R,{'className':_0x499120(0x1b1)})})}):null;}function W(_0x25c47c){const _0x53d174=_0x1789ed,{status:_0x1427ec,coordinator:_0x2aa91e}=_0x25c47c;switch(_0x1427ec){case u['IDLE']:return l['jsx'](G,{'coordinator':_0x2aa91e});case u['FOLLOWING']:return l[_0x53d174(0x1cc)](B,{'coordinator':_0x2aa91e});case u[_0x53d174(0x170)]:return l[_0x53d174(0x1cc)](Y,{'coordinator':_0x2aa91e});case u[_0x53d174(0x183)]:return l[_0x53d174(0x1cc)](J,{});case u[_0x53d174(0x1da)]:return l[_0x53d174(0x1cc)](Z,{'coordinator':_0x2aa91e});default:return null;}}function G(_0x285d6b){const _0x142da3=_0x1789ed,{coordinator:_0x163681}=_0x285d6b;return l[_0x142da3(0x1f3)](l['Fragment'],{'children':[l[_0x142da3(0x1cc)]('div',{'className':_0x142da3(0x1cb),'children':_0x142da3(0x207)}),l['jsx'](f[_0x142da3(0x17c)],{'onClick':()=>_0x163681['tryStartPresenting'](),'children':'Start'})]});}function B(_0x42f240){const _0x4aa3f2=_0x1789ed,{coordinator:_0x59f58e}=_0x42f240;return l['jsxs'](l[_0x4aa3f2(0x1dc)],{'children':[l[_0x4aa3f2(0x1cc)](_0x4aa3f2(0x22b),{'className':_0x4aa3f2(0x1cb),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x4aa3f2(0x1cc)](f['Button'],{'onClick':()=>_0x59f58e['stopFollowing'](),'children':_0x4aa3f2(0x221)})]});}function _0x5a94(_0x353be0,_0x3f5971){_0x353be0=_0x353be0-0x16b;const _0x2aa3e8=_0x2aa3();let _0x5a94a0=_0x2aa3e8[_0x353be0];return _0x5a94a0;}function Y(_0x3c4d8b){const _0x638a4b=_0x1789ed,{coordinator:_0x5226a8}=_0x3c4d8b;return l[_0x638a4b(0x1f3)](l[_0x638a4b(0x1dc)],{'children':[l[_0x638a4b(0x1cc)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x638a4b(0x1d4)}),l[_0x638a4b(0x1cc)](f[_0x638a4b(0x17c)],{'variant':_0x638a4b(0x1ed),'onClick':()=>_0x5226a8['startFollowing'](),'children':'Start\x20following'})]});}function Z(_0x10334a){const _0x456a8a=_0x1789ed,{coordinator:_0x2d6408}=_0x10334a;return l[_0x456a8a(0x1f3)](l[_0x456a8a(0x1dc)],{'children':[l[_0x456a8a(0x1cc)](_0x456a8a(0x22b),{'className':_0x456a8a(0x1cb),'children':_0x456a8a(0x1d7)}),l[_0x456a8a(0x1cc)](f['Button'],{'variant':'default','onClick':()=>_0x2d6408['stopPresenting'](),'children':'Stop\x20presenting'})]});}function J(){const _0x173426=_0x1789ed;return l['jsx'](l[_0x173426(0x1dc)],{'children':_0x173426(0x19f)});}var K=Object[_0x1789ed(0x1d6)],z=(_0x4a60a5,_0x581962,_0x3dee05,_0x3d4831)=>{const _0x4c7539=_0x1789ed;for(var _0x2e8986=_0x3d4831>0x1?void 0x0:_0x3d4831?K(_0x581962,_0x3dee05):_0x581962,_0x3c8e5d=_0x4a60a5[_0x4c7539(0x1df)]-0x1,_0x3fdeac;_0x3c8e5d>=0x0;_0x3c8e5d--)(_0x3fdeac=_0x4a60a5[_0x3c8e5d])&&(_0x2e8986=_0x3fdeac(_0x2e8986)||_0x2e8986);return _0x2e8986;},L=(_0x479973,_0x1122e3)=>(_0x12136d,_0x180fce)=>_0x1122e3(_0x12136d,_0x180fce,_0x479973);exports[_0x1789ed(0x1e6)]=class extends o[_0x1789ed(0x1db)]{constructor(_0x128601,_0x5b4d30){const _0x366726=_0x1789ed;super(),this[_0x366726(0x23a)]=_0x128601,this['_uiPartsService']=_0x5b4d30,this[_0x366726(0x1fc)]();}[_0x1789ed(0x1fc)](){const _0x45c5ed=_0x1789ed;this[_0x45c5ed(0x1ef)](this[_0x45c5ed(0x1e4)][_0x45c5ed(0x211)](p[_0x45c5ed(0x1bc)][_0x45c5ed(0x1e3)],()=>p['connectInjector']($,this[_0x45c5ed(0x23a)])));}},exports[_0x1789ed(0x1e6)]=z([L(0x0,o[_0x1789ed(0x1e1)](o['Injector'])),L(0x1,p['IUIPartsService'])],exports[_0x1789ed(0x1e6)]);const Q=_0x1789ed(0x219),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0xcd453e,_0x437fc8,_0x3172f6,_0x5ab377)=>{const _0x4cff2d=_0x1789ed;for(var _0x4c9062=_0x5ab377>0x1?void 0x0:_0x5ab377?X(_0x437fc8,_0x3172f6):_0x437fc8,_0x3c4a98=_0xcd453e[_0x4cff2d(0x1df)]-0x1,_0x225a53;_0x3c4a98>=0x0;_0x3c4a98--)(_0x225a53=_0xcd453e[_0x3c4a98])&&(_0x4c9062=_0x225a53(_0x4c9062)||_0x4c9062);return _0x4c9062;},te=(_0x3c45cc,_0x36f8c5)=>(_0x4b913c,_0x48be44)=>_0x36f8c5(_0x4b913c,_0x48be44,_0x3c45cc);let m=class extends o['Disposable']{constructor(_0x4c0b0d){const _0xf40496=_0x1789ed;super(),this['_liveShareService']=_0x4c0b0d,this[_0xf40496(0x1e7)]();}[_0x1789ed(0x1e7)](){const _0x12dc0b=_0x1789ed;[D[_0x12dc0b(0x22a)]['id'],D[_0x12dc0b(0x1f5)]['id'],C['SetWorksheetActiveOperation']['id']][_0x12dc0b(0x1de)](_0x59270f=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x59270f));});}};m=ee([te(0x0,o[_0x1789ed(0x1e1)](E))],m);var ie=Object[_0x1789ed(0x1c3)],se=Object[_0x1789ed(0x1d6)],ne=(_0x21a0d2,_0x243f2d,_0x54ae32)=>_0x243f2d in _0x21a0d2?ie(_0x21a0d2,_0x243f2d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54ae32}):_0x21a0d2[_0x243f2d]=_0x54ae32,re=(_0x33f35f,_0x184836,_0x315ad8,_0xe0724a)=>{const _0x9d436=_0x1789ed;for(var _0x52dc75=_0xe0724a>0x1?void 0x0:_0xe0724a?se(_0x184836,_0x315ad8):_0x184836,_0x220a12=_0x33f35f[_0x9d436(0x1df)]-0x1,_0xad4ade;_0x220a12>=0x0;_0x220a12--)(_0xad4ade=_0x33f35f[_0x220a12])&&(_0x52dc75=_0xad4ade(_0x52dc75)||_0x52dc75);return _0x52dc75;},N=(_0x3a8c44,_0x5a3194)=>(_0x53f60d,_0x584e89)=>_0x5a3194(_0x53f60d,_0x584e89,_0x3a8c44),A=(_0x2f7f5f,_0x480e4e,_0x241e39)=>ne(_0x2f7f5f,typeof _0x480e4e!=_0x1789ed(0x202)?_0x480e4e+'':_0x480e4e,_0x241e39);const oe=_0x1789ed(0x206);function _0x2aa3(){const _0x317ecd=['SetScrollOperation','unitId','1em','svg','has','stringify','current','_mountLiveShare','Subject','string','parseProtocolChangeset','_handleOnline','Module','symbol','_status','_stopFollowing','getUnitId','UNIVER_LIVE_SHARE_PLUGIN','Present\x20this\x20document','assign','http://www.w3.org/2000/svg','clear','substring','UNIVER_SHEET','_handleNewChangeSets','dispose','data','pipe','registerComponent','stopPresenting','_collabSessionService','147EwzHTt','toStringTag','next','UniverInstanceType','use','live-share.config','LIVESHARE_NEW_HOST','UniverLiveSharePlugin','startFollowing','fill','CollaborationEvent','getTypeOfUnitAdded$','_configService','Stop\x20following','_univerInstanceService','38642CjJQqq','BehaviorSubject','event$','UniverCollaborationClientPlugin','setConfig','getLiveShareCoordinator','send','SetZoomRatioOperation','div','_reporters','_status$','LiveShareIcon','DisposableCollection','CommandType','_handleTerminate','ICommandService','following','path','replace','xlink:href','2367760DOuTys','none','_fetchOperations','_injector','_handleNewHost','entries','add','OPERATION','registerSharedOperation','NOT_FOLLOWING','8043oVaIIA','LiveShareService','getMemberID','_startLiveShareCoordinator','_commandService','mask','children','456FQvBJc','presenting','RxDisposable','executeCommand','Button','FOLLOWING','_beIdle','status$','unsubscribe','mutations','toDisposable','OFFLINE','currentColor','merge','_entities','_presenter','_startPresenting','stopFollowing','getInitialStates','Injector','useRef','InsertSheetMutation','tag','set','colorChannel1','not-following','takeUntil','967532vuyKOw','reverse','LiveShareController','from','presenter','parse','LiveShareCoordinator','LIVESHARE_REQUEST_HOST','CollaborationSessionService','onRendered','live-share-icon','trim','You\x27are\x20offline.','IConfigService','_handleOperation','IDLE','_collabSession','_config','params','clsx','dispose$','idle','useDependency','16378730jzjOrB','operations','type','useState','DependentOn','displayName','_sharedOperations','univer-size-4','_commandDisposable','18wCJMSs','_stopPresenting','_handleOffline','NEW_CHANGESETS','_startFollowing','956135NpcLxm','tryStartPresenting','Dropdown','asObservable','BuiltInUIPart','mergeOverrideWithDependencies','memberID','map','useEffect','random','get','defineProperty','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','onStarting','sessionStatus$','LIVESHARE_TERMINATE','delete','init','then','univer-mb-3\x20univer-w-full\x20univer-text-sm','jsx','evenodd','LiveShareStatus','override','offline','find','_unitID','idSuffix','You\x27re\x20not\x20following\x20the\x20presenter','sheet','getOwnPropertyDescriptor','You\x27re\x20presenting\x20the\x20document','subscribe','10272690ikglkl','PRESENTING','Disposable','Fragment','getLiveShareCoordinatorSync','forEach','length','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','Inject','getCurrentTypeOfUnit$','HEADER_MENU','_uiPartsService','SAME_OPERATION_SHARE_INTERVAL','DesktopLiveShareController','_init','_liveShareService','attrs','useObservable','IUniverInstanceService','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','text','getConfig','disposeWithMe','complete','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','touchDependencies','jsxs','url(#$1'];_0x2aa3=function(){return _0x317ecd;};return _0x2aa3();}exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0xb59ff2=w,_0x3bd49b,_0x5503ae){const _0x22295f=_0x1789ed;super(),this[_0x22295f(0x1a4)]=_0xb59ff2,this['_injector']=_0x3bd49b,this[_0x22295f(0x220)]=_0x5503ae;const {..._0x1cbf6a}=o[_0x22295f(0x185)]({},w,this[_0x22295f(0x1a4)]);this[_0x22295f(0x220)][_0x22295f(0x227)](Q,_0x1cbf6a);}[_0x1789ed(0x1c5)](){const _0x1a7b10=_0x1789ed;o['registerDependencies'](this['_injector'],o[_0x1a7b10(0x1bd)]([[E],[exports['LiveShareController']],[m],[exports[_0x1a7b10(0x1e6)]]],this[_0x1a7b10(0x1a4)][_0x1a7b10(0x1cf)])),o[_0x1a7b10(0x1f2)](this['_injector'],[[m]]);}[_0x1789ed(0x19c)](){const _0x21bf6c=_0x1789ed;o[_0x21bf6c(0x1f2)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x1789ed(0x21b)],_0x1789ed(0x1ac),o[_0x1789ed(0x217)]['UNIVER_UNKNOWN']),A(exports[_0x1789ed(0x21b)],'pluginName',oe),exports[_0x1789ed(0x21b)]=re([o[_0x1789ed(0x1ae)](b[_0x1789ed(0x226)]),N(0x1,o[_0x1789ed(0x1e1)](o['Injector'])),N(0x2,o[_0x1789ed(0x1a0)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=$,exports[_0x1789ed(0x172)]=E,exports[_0x1789ed(0x1ce)]=u;
1
+ 'use strict';const _0x491241=_0x375b;(function(_0x2a88bf,_0x5a7da9){const _0xc5e574=_0x375b,_0x3cd0a8=_0x2a88bf();while(!![]){try{const _0x5bbb1b=-parseInt(_0xc5e574(0xfc))/0x1+parseInt(_0xc5e574(0x1ba))/0x2+parseInt(_0xc5e574(0x180))/0x3*(parseInt(_0xc5e574(0xf0))/0x4)+-parseInt(_0xc5e574(0xfe))/0x5*(-parseInt(_0xc5e574(0x1b3))/0x6)+-parseInt(_0xc5e574(0x1bf))/0x7+parseInt(_0xc5e574(0x131))/0x8+-parseInt(_0xc5e574(0x18b))/0x9*(parseInt(_0xc5e574(0x107))/0xa);if(_0x5bbb1b===_0x5a7da9)break;else _0x3cd0a8['push'](_0x3cd0a8['shift']());}catch(_0x4b1c78){_0x3cd0a8['push'](_0x3cd0a8['shift']());}}}(_0x12b1,0xca6f5));function _0x375b(_0x110c92,_0x4948d0){_0x110c92=_0x110c92-0xec;const _0x12b1ba=_0x12b1();let _0x375b3a=_0x12b1ba[_0x110c92];return _0x375b3a;}var T=Object[_0x491241(0x119)],U=(_0x38c696,_0x46e76f,_0x28c4d4)=>_0x46e76f in _0x38c696?T(_0x38c696,_0x46e76f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28c4d4}):_0x38c696[_0x46e76f]=_0x28c4d4,_=(_0x302cd4,_0x3f1c86,_0x183987)=>U(_0x302cd4,typeof _0x3f1c86!=_0x491241(0x1aa)?_0x3f1c86+'':_0x3f1c86,_0x183987);Object[_0x491241(0x119)](exports,Symbol[_0x491241(0x116)],{'value':_0x491241(0x138)});function _0x12b1(){const _0x602ace=['xlink:href','LiveShareStatus','SetScrollOperation','random','type','toStringTag','add','_stopFollowing','defineProperty','_handleNewHost','_unitID','dispose$','_collabSession','colorChannel1','getTypeOfUnitAdded$','find','connectInjector','stringify','clsx','disposeWithMe','none','_configService','DependentOn','OPERATION','_startPresenting','univer-size-4','LIVESHARE_TERMINATE','Present\x20this\x20document','http://www.w3.org/2000/svg','LIVESHARE_OPERATION','touchDependencies','Button','3855008upJCzr','throttleTime','unsubscribe','defs','PRESENTING','map','NOT_FOLLOWING','Module','values','next','data','replace','path','getMemberID','subscribe','_commandService','forwardRef','_mountLiveShare','_startFollowing','use','startFollowing','useEffect','univerjs-icon\x20univerjs-icon-','registerSharedOperation','_handleOperation','_presenter','Dropdown','has','SessionStatus','useRef','mergeOverrideWithDependencies','tryStartPresenting','LiveShare','url(#$1','getTypeOfUnitDisposed$','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','_handleOnline','_handleNewChangeSets','_startLiveShareCoordinator','UniverIcon','1em','getStatus','tag','You\x27re\x20following\x20the\x20presenter','BuiltInUIPart','OFFLINE','length','ONLINE','Inject','_commandDisposable','0\x200\x2017\x2017','CommandType','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','pluginName','univer-mb-3\x20univer-w-full\x20univer-text-sm','text','assign','entries','reverse','_uiPartsService','forEach','current','You\x27are\x20offline.','live-share.config','complete','DesktopLiveShareController','RxDisposable','displayName','set','_status$','IConfigService','getLiveShareCoordinator','_stopPresenting','UniverCollaborationClientPlugin','getOwnPropertyDescriptor','getConfig','dispose','div','onCommandExecuted','6yhWULC','setConfig','_handleTerminate','_injector','_sharedOperations','Start\x20following','Plugin','_handleOffline','delete','trim','get','13950333RWnFWq','shouldShareOperation','from','live-share-icon','Injector','takeUntil','jsxs','stopPresenting','_config','pipe','LiveShareController','button','end','string','CollaborationSessionService','SetWorksheetActiveOperation','LIVESHARE_REQUEST_HOST','then','onStarting','UniverLiveSharePlugin','mask','IUniverInstanceService','createElement','_status','_entities','SetZoomRatioOperation','parseProtocolChangeset','getUnitId','not-following','operations','asObservable','symbol','FOLLOWING','_fetchOperations','send','merge','status$','attrs','CollaborationEvent','useDependency','2365206FFTYdT','Fragment','toString','currentColor','default','substring','sessionStatus$','3294588rIKPxf','offline','getInitialStates','InsertSheetMutation','UNIVER_UNKNOWN','8646477pABnMn','IDLE','presenting','_reporters','init','_beIdle','_univerInstanceService','LiveShareService','event$','clear','674644prrxdh','LIVESHARE_NEW_HOST','getValue','_collabSessionService','idSuffix','useState','idle','LiveShareCoordinator','fill','toDisposable','LIVESHARE_FETCH_OPERATIONS','requireSession','34674ZaLpIo','UniverInstanceType','15dvqXun','UNIVER_SHEET','stopFollowing','jsx','includes','getCurrentTypeOfUnit$','_liveShareService','following','evenodd','10hoiCWt','Disposable','executeCommand','children','_init','params','memberID','UNIVER_LIVE_SHARE_PLUGIN','registerComponent','Stop\x20presenting'];_0x12b1=function(){return _0x602ace;};return _0x12b1();}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:_0x582bbe,..._0x5d9e55}){const _0x242929=_0x491241,{icon:_0x5b2bd7,id:_0x1db815,className:_0x5c3a82,extend:_0x3e15af,..._0x508339}=_0x5d9e55,_0x3a6645=(_0x242929(0x147)+_0x1db815+'\x20'+(_0x5c3a82||''))[_0x242929(0x189)](),_0x3ae6f0=v[_0x242929(0x14e)]('_'+H());return j(_0x5b2bd7,''+_0x1db815,{'defIds':_0x5b2bd7['defIds'],'idSuffix':_0x3ae6f0[_0x242929(0x16e)]},{'ref':_0x582bbe,'className':_0x3a6645,..._0x508339},_0x3e15af);}function j(_0x2b81f2,_0x27224b,_0x110f89,_0x3485b9,_0x457bba){const _0x43057c=_0x491241;return v['createElement'](_0x2b81f2[_0x43057c(0x15b)],{'key':_0x27224b,...y(_0x2b81f2,_0x110f89,_0x457bba),..._0x3485b9},(F(_0x2b81f2,_0x110f89)[_0x43057c(0x10a)]||[])['map']((_0x2c634b,_0x4aeabd)=>j(_0x2c634b,_0x27224b+'-'+_0x2b81f2[_0x43057c(0x15b)]+'-'+_0x4aeabd,_0x110f89,void 0x0,_0x457bba)));}function y(_0x51689f,_0x4d5e6a,_0xc46e92){const _0x2dba90=_0x491241,_0x1d7dfd={..._0x51689f[_0x2dba90(0x1b0)]};_0xc46e92!=null&&_0xc46e92[_0x2dba90(0x11e)]&&_0x1d7dfd[_0x2dba90(0xf8)]===_0x2dba90(0x11e)&&(_0x1d7dfd[_0x2dba90(0xf8)]=_0xc46e92[_0x2dba90(0x11e)]),_0x51689f[_0x2dba90(0x15b)]===_0x2dba90(0x19f)&&_0x1d7dfd['id']&&(_0x1d7dfd['id']=_0x1d7dfd['id']+_0x4d5e6a['idSuffix']),Object['entries'](_0x1d7dfd)[_0x2dba90(0x16d)](([_0x4aeeea,_0x5ecc06])=>{const _0x3f5970=_0x2dba90;_0x4aeeea===_0x3f5970(0x19f)&&typeof _0x5ecc06==_0x3f5970(0x198)&&(_0x1d7dfd[_0x4aeeea]=_0x5ecc06[_0x3f5970(0x13c)](/url\(#(.*)\)/,_0x3f5970(0x152)+_0x4d5e6a[_0x3f5970(0xf4)]+')'));});const {defIds:_0x526487}=_0x4d5e6a;return!_0x526487||_0x526487[_0x2dba90(0x15f)]===0x0||(_0x51689f['tag']===_0x2dba90(0x144)&&_0x1d7dfd['xlink:href']&&(_0x1d7dfd[_0x2dba90(0x111)]=_0x1d7dfd[_0x2dba90(0x111)]+_0x4d5e6a[_0x2dba90(0xf4)]),Object[_0x2dba90(0x16a)](_0x1d7dfd)[_0x2dba90(0x16d)](([_0x2a8748,_0x18d0e6])=>{const _0x56ae57=_0x2dba90;typeof _0x18d0e6==_0x56ae57(0x198)&&(_0x1d7dfd[_0x2a8748]=_0x18d0e6['replace'](/url\(#(.*)\)/,_0x56ae57(0x152)+_0x4d5e6a[_0x56ae57(0xf4)]+')'));})),_0x1d7dfd;}function F(_0x5c8d21,_0x22d454){const _0x4b75b8=_0x491241;var _0x187d80;const {defIds:_0x1275bf}=_0x22d454;return!_0x1275bf||_0x1275bf[_0x4b75b8(0x15f)]===0x0?_0x5c8d21:_0x5c8d21[_0x4b75b8(0x15b)]===_0x4b75b8(0x134)&&((_0x187d80=_0x5c8d21[_0x4b75b8(0x10a)])!=null&&_0x187d80[_0x4b75b8(0x15f)])?{..._0x5c8d21,'children':_0x5c8d21[_0x4b75b8(0x10a)]['map'](_0x1bc47d=>typeof _0x1bc47d['attrs']['id']==_0x4b75b8(0x198)&&_0x1275bf&&_0x1275bf[_0x4b75b8(0x102)](_0x1bc47d[_0x4b75b8(0x1b0)]['id'])?{..._0x1bc47d,'attrs':{..._0x1bc47d['attrs'],'id':_0x1bc47d['attrs']['id']+_0x22d454[_0x4b75b8(0xf4)]}}:_0x1bc47d)}:_0x5c8d21;}function H(){const _0x141628=_0x491241;return Math[_0x141628(0x114)]()[_0x141628(0x1b5)](0x24)[_0x141628(0x1b8)](0x2,0x8);}x['displayName']=_0x491241(0x158);const V={'tag':'svg','attrs':{'xmlns':_0x491241(0x12d),'fill':_0x491241(0x125),'viewBox':_0x491241(0x163),'width':_0x491241(0x159),'height':_0x491241(0x159)},'children':[{'tag':_0x491241(0x13d),'attrs':{'fill':_0x491241(0x1b6),'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':'path','attrs':{'fill':_0x491241(0x1b6),'d':_0x491241(0x165),'fillRule':_0x491241(0x106),'clipRule':_0x491241(0x106)}}]},R=v[_0x491241(0x141)](function(_0x167ba3,_0x1fe800){const _0xdd6944=_0x491241;return v[_0xdd6944(0x1a1)](x,Object[_0xdd6944(0x169)]({},_0x167ba3,{'id':_0xdd6944(0x18e),'ref':_0x1fe800,'icon':V}));});R[_0x491241(0x174)]='LiveShareIcon';class E extends o[_0x491241(0x108)]{constructor(){const _0xdb0e6a=_0x491241;super(...arguments),_(this,_0xdb0e6a(0x184),new Set()),_(this,_0xdb0e6a(0x1c2),new Set());}[_0x491241(0x148)](_0x448211){const _0x2648e5=_0x491241;return this['_sharedOperations'][_0x2648e5(0x117)](_0x448211),o['toDisposable'](()=>this['_sharedOperations'][_0x2648e5(0x188)](_0x448211));}['registerInitialStateReporter'](_0x891940){const _0x1de418=_0x491241;return this[_0x1de418(0x1c2)][_0x1de418(0x117)](_0x891940),o['toDisposable'](()=>this[_0x1de418(0x1c2)][_0x1de418(0x188)](_0x891940));}[_0x491241(0x18c)](_0x48f145){const _0x513521=_0x491241;return this[_0x513521(0x184)][_0x513521(0x14c)](_0x48f145);}[_0x491241(0x1bc)](_0xcd9b23){const _0x28d653=_0x491241;return Array[_0x28d653(0x18d)](this['_reporters'])[_0x28d653(0x136)](_0x2122c2=>_0x2122c2(_0xcd9b23));}}var M=Object[_0x491241(0x17b)],P=(_0x6584a2,_0x147c0f,_0x4bc407,_0xdcfb7)=>{const _0x23a922=_0x491241;for(var _0x52cbde=_0xdcfb7>0x1?void 0x0:_0xdcfb7?M(_0x147c0f,_0x4bc407):_0x147c0f,_0x490702=_0x6584a2[_0x23a922(0x15f)]-0x1,_0x43bba0;_0x490702>=0x0;_0x490702--)(_0x43bba0=_0x6584a2[_0x490702])&&(_0x52cbde=_0x43bba0(_0x52cbde)||_0x52cbde);return _0x52cbde;},S=(_0x3263e2,_0x2c1044)=>(_0x44e2aa,_0x130b64)=>_0x2c1044(_0x44e2aa,_0x130b64,_0x3263e2);exports[_0x491241(0x195)]=class extends o[_0x491241(0x173)]{constructor(_0x37c1e9,_0x105773,_0x25f508){const _0x5811dc=_0x491241;super(),_(this,_0x5811dc(0x1a3),new Map()),(this['_univerInstanceService']=_0x37c1e9,this['_injector']=_0x105773,this['_collabSessionService']=_0x25f508,this[_0x5811dc(0x10b)]());}async[_0x491241(0x178)](_0x5cba46){const _0x2cbe7c=_0x491241;return this[_0x2cbe7c(0x1a3)]['has'](_0x5cba46)||await this[_0x2cbe7c(0x157)](_0x5cba46),this[_0x2cbe7c(0x1a3)][_0x2cbe7c(0x18a)](_0x5cba46);}['getLiveShareCoordinatorSync'](_0x32ae41){const _0x23629d=_0x491241;var _0x3764e6;return(_0x3764e6=this[_0x23629d(0x1a3)][_0x23629d(0x18a)](_0x32ae41))!=null?_0x3764e6:null;}[_0x491241(0x10b)](){const _0x2570a5=_0x491241;this[_0x2570a5(0xec)][_0x2570a5(0x11f)](o[_0x2570a5(0xfd)][_0x2570a5(0xff)])[_0x2570a5(0x194)](I[_0x2570a5(0x190)](this[_0x2570a5(0x11c)]))[_0x2570a5(0x13f)](async _0x1ff6dd=>{const _0x21b096=_0x2570a5,_0x2bc9a2=_0x1ff6dd[_0x21b096(0x1a6)]();this['_entities'][_0x21b096(0x14c)](_0x2bc9a2)||this[_0x21b096(0x157)](_0x2bc9a2);}),this[_0x2570a5(0xec)][_0x2570a5(0x153)](o[_0x2570a5(0xfd)]['UNIVER_SHEET'])[_0x2570a5(0x194)](I['takeUntil'](this[_0x2570a5(0x11c)]))[_0x2570a5(0x13f)](_0x9843d9=>{const _0x4e02b1=_0x2570a5,_0x1b9ce9=_0x9843d9[_0x4e02b1(0x1a6)](),_0x4653f2=this[_0x4e02b1(0x1a3)]['get'](_0x1b9ce9);_0x4653f2==null||_0x4653f2['dispose']();});}async[_0x491241(0x157)](_0x38cee2){const _0x5f18a0=_0x491241,_0x27a165=await this[_0x5f18a0(0xf3)][_0x5f18a0(0xfb)](_0x38cee2),_0x43d202=this['_injector']['createInstance'](exports[_0x5f18a0(0xf7)],_0x38cee2,_0x27a165);return _0x43d202['init'](),this[_0x5f18a0(0x1a3)][_0x5f18a0(0x175)](_0x38cee2,_0x43d202),_0x43d202;}},exports[_0x491241(0x195)]=P([S(0x0,o[_0x491241(0x1a0)]),S(0x1,o[_0x491241(0x161)](o[_0x491241(0x18f)])),S(0x2,o[_0x491241(0x161)](b[_0x491241(0x199)]))],exports[_0x491241(0x195)]);var u=(_0x12fb20=>(_0x12fb20[_0x491241(0x15e)]=_0x491241(0x1bb),_0x12fb20[_0x491241(0x1c0)]='idle',_0x12fb20[_0x491241(0x1ab)]=_0x491241(0x105),_0x12fb20['NOT_FOLLOWING']='not-following',_0x12fb20['PRESENTING']=_0x491241(0x1c1),_0x12fb20))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x491241(0xf7)]=class extends o[_0x491241(0x173)]{constructor(_0x118dd4,_0x1671f4,_0x2bea8d,_0xdf3ba0,_0x3b8568){const _0x5d78fa=_0x491241;super(),_(this,_0x5d78fa(0x176),new O['BehaviorSubject']('idle')),_(this,_0x5d78fa(0x1af),this[_0x5d78fa(0x176)][_0x5d78fa(0x1a9)]()),_(this,_0x5d78fa(0x10b),!0x1),_(this,_0x5d78fa(0x162),null),_(this,'_presenter',null),(this[_0x5d78fa(0x11b)]=_0x118dd4,this[_0x5d78fa(0x11d)]=_0x1671f4,this[_0x5d78fa(0x126)]=_0x2bea8d,this['_liveShareService']=_0xdf3ba0,this[_0x5d78fa(0x140)]=_0x3b8568);}get[_0x491241(0x1a2)](){const _0x32fca7=_0x491241;return this[_0x32fca7(0x176)][_0x32fca7(0xf2)]();}[_0x491241(0x17d)](){const _0x248a15=_0x491241;var _0x39796a;(_0x39796a=this[_0x248a15(0x162)])==null||_0x39796a[_0x248a15(0x17d)](),this[_0x248a15(0x176)]['next'](_0x248a15(0xf6)),this[_0x248a15(0x176)][_0x248a15(0x171)]();}[_0x491241(0x15a)](){const _0xcec845=_0x491241;return this[_0xcec845(0x1a2)];}[_0x491241(0x1c3)](){const _0x585264=_0x491241;this[_0x585264(0x10b)]||(this[_0x585264(0x10b)]=!0x0,this[_0x585264(0x11d)][_0x585264(0x1b9)][_0x585264(0x194)](I[_0x585264(0x190)](this['dispose$']))['subscribe'](_0x16ca21=>{const _0x350ef0=_0x585264;switch(_0x16ca21){case b[_0x350ef0(0x14d)][_0x350ef0(0x15e)]:this[_0x350ef0(0x187)]();break;case b[_0x350ef0(0x14d)][_0x350ef0(0x160)]:this[_0x350ef0(0x155)]();break;}}),this[_0x585264(0x11d)][_0x585264(0xee)][_0x585264(0x194)](I['takeUntil'](this[_0x585264(0x11c)]))[_0x585264(0x13f)](_0x3acd5c=>{const _0x31b4f7=_0x585264,{eventID:_0x37a4cd}=_0x3acd5c;switch(_0x37a4cd){case d[_0x31b4f7(0x1b1)][_0x31b4f7(0xf1)]:this['_handleNewHost'](_0x3acd5c);break;case d['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x31b4f7(0x149)](_0x3acd5c);break;case d[_0x31b4f7(0x1b1)][_0x31b4f7(0x12b)]:this['_handleTerminate']();break;case d[_0x31b4f7(0x1b1)]['NEW_CHANGESETS']:this[_0x31b4f7(0x156)](_0x3acd5c);break;}}));}[_0x491241(0x150)](){const _0x1cdd4f=_0x491241;this[_0x1cdd4f(0x11d)]['send']({'eventID':d[_0x1cdd4f(0x1b1)][_0x1cdd4f(0x19b)],'data':{'unitID':this[_0x1cdd4f(0x11b)],'userID':this[_0x1cdd4f(0x11d)][_0x1cdd4f(0x13e)]()}},this['_unitID']);}['stopPresenting'](){const _0x2c5f4f=_0x491241;this[_0x2c5f4f(0x1a2)]===_0x2c5f4f(0x1c1)&&(this[_0x2c5f4f(0x176)][_0x2c5f4f(0x13a)](_0x2c5f4f(0xf6)),this['_collabSession'][_0x2c5f4f(0x1ad)]({'eventID':d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x2c5f4f(0x11b)]));}[_0x491241(0x145)](){const _0x5ac49e=_0x491241;this[_0x5ac49e(0x1a2)]==='not-following'&&(this[_0x5ac49e(0x176)][_0x5ac49e(0x13a)](_0x5ac49e(0x105)),this[_0x5ac49e(0x143)]());}[_0x491241(0x100)](){const _0x2d36e4=_0x491241;this[_0x2d36e4(0x1a2)]==='following'&&this[_0x2d36e4(0x118)]();}[_0x491241(0x11a)](_0x4703d5){const _0x5dc462=_0x491241,{presenter:_0x41a68f}=_0x4703d5['data'],_0x32aa80=this[_0x5dc462(0x11d)][_0x5dc462(0x13e)]();this['_presenter']=_0x41a68f,_0x41a68f===_0x32aa80?(this[_0x5dc462(0x118)](),this['_startPresenting']()):this[_0x5dc462(0x1a2)]!==_0x5dc462(0x1a7)&&(this[_0x5dc462(0x179)](),this[_0x5dc462(0x143)]());}[_0x491241(0x1ac)](){const _0x29e8c3=_0x491241,_0x396c1c={'eventID':d[_0x29e8c3(0x1b1)][_0x29e8c3(0xfa)]};this[_0x29e8c3(0x11d)][_0x29e8c3(0x1ad)](_0x396c1c,this[_0x29e8c3(0x11b)]);}[_0x491241(0x182)](){const _0x129efc=_0x491241;this[_0x129efc(0x14a)]=null,this['_status']!==_0x129efc(0x1c1)&&this[_0x129efc(0x1c4)]();}[_0x491241(0x156)](_0x548fdd){const _0x2c607a=_0x491241;if(this[_0x2c607a(0x1a2)]===_0x2c607a(0x105)&&this[_0x2c607a(0x14a)]===_0x548fdd['data'][_0x2c607a(0x10d)]){const _0x398480=d[_0x2c607a(0x1a5)](_0x548fdd['data'])['mutations'][_0x2c607a(0x16b)]()[_0x2c607a(0x120)](_0x2b4367=>_0x2b4367['id']===C[_0x2c607a(0x1bd)]['id']);if(_0x398480){const _0x35304d=_0x398480[_0x2c607a(0x10c)]['unitId'],_0x5e2fdc=_0x398480[_0x2c607a(0x10c)]['sheet']['id'];setTimeout(()=>{const _0x1477bd=_0x2c607a;this[_0x1477bd(0x140)][_0x1477bd(0x109)](C[_0x1477bd(0x19a)]['id'],{'unitId':_0x35304d,'subUnitId':_0x5e2fdc},{'fromCollab':!0x0});});}}}[_0x491241(0x129)](){const _0xd02c88=_0x491241;this['_status$'][_0xd02c88(0x13a)](_0xd02c88(0x1c1));const _0x105f6b=new Map(),_0x25cf84=this['_commandDisposable']=new o['DisposableCollection']();_0x25cf84[_0xd02c88(0x117)](o[_0xd02c88(0xf9)](()=>{const _0x50b2b8=_0xd02c88;_0x105f6b[_0x50b2b8(0x16d)](_0x46ced2=>_0x46ced2[_0x50b2b8(0x171)]()),_0x105f6b[_0x50b2b8(0xef)]();})),_0x25cf84['add'](this[_0xd02c88(0x140)][_0xd02c88(0x17f)](_0x248ac2=>{const _0x18ef29=_0xd02c88;var _0x52df79;if(_0x248ac2[_0x18ef29(0x115)]!==o[_0x18ef29(0x164)][_0x18ef29(0x128)]||!this[_0x18ef29(0x104)]['shouldShareOperation'](_0x248ac2['id']))return;const {id:_0x3a16ee}=_0x248ac2;let _0x40f42b;_0x105f6b[_0x18ef29(0x14c)](_0x3a16ee)?_0x40f42b=_0x105f6b[_0x18ef29(0x18a)](_0x3a16ee):(_0x40f42b=new O['Subject'](),_0x105f6b[_0x18ef29(0x175)](_0x3a16ee,_0x40f42b),_0x40f42b['pipe'](I[_0x18ef29(0x132)]((_0x52df79=this[_0x18ef29(0x126)][_0x18ef29(0x17c)](k))!=null?_0x52df79:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x18ef29(0x13f)](_0x141134=>{const _0x4d33e7=_0x18ef29;this['_collabSession'][_0x4d33e7(0x1ad)]({'eventID':d[_0x4d33e7(0x1b1)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4d33e7(0x11b)],'operations':{[_0x141134['id']]:{'id':_0x141134['id'],'params':JSON[_0x4d33e7(0x122)](_0x141134[_0x4d33e7(0x10c)])}}}},this[_0x4d33e7(0x11b)]);})),_0x40f42b[_0x18ef29(0x13a)](_0x248ac2);})),this[_0xd02c88(0x104)]['getInitialStates'](this[_0xd02c88(0x11b)])[_0xd02c88(0x16d)](_0x1afea7=>this['_collabSession'][_0xd02c88(0x1ad)]({'eventID':d['CollaborationEvent'][_0xd02c88(0x12e)],'data':{'unitID':this['_unitID'],'operations':{[_0x1afea7['id']]:{'id':_0x1afea7['id'],'params':JSON[_0xd02c88(0x122)](_0x1afea7['params'])}}}},this[_0xd02c88(0x11b)]));}['_stopPresenting'](){const _0x5556f2=_0x491241;var _0x1a0b9d;this[_0x5556f2(0x176)][_0x5556f2(0x13a)](_0x5556f2(0xf6)),(_0x1a0b9d=this['_commandDisposable'])==null||_0x1a0b9d['dispose'](),this[_0x5556f2(0x162)]=null;}[_0x491241(0x143)](){const _0x4884c7=_0x491241;var _0x3f6987;(_0x3f6987=this[_0x4884c7(0x162)])==null||_0x3f6987[_0x4884c7(0x17d)](),this[_0x4884c7(0x176)][_0x4884c7(0x13a)](_0x4884c7(0x105));}[_0x491241(0x1c4)](){const _0x9ba780=_0x491241;var _0x184afa;this['_status$'][_0x9ba780(0x13a)](_0x9ba780(0xf6)),(_0x184afa=this[_0x9ba780(0x162)])==null||_0x184afa[_0x9ba780(0x17d)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x4df61a=_0x491241;var _0x3b7e84;this[_0x4df61a(0x176)][_0x4df61a(0x13a)](_0x4df61a(0x1a7)),(_0x3b7e84=this[_0x4df61a(0x162)])==null||_0x3b7e84[_0x4df61a(0x17d)]();}[_0x491241(0x149)](_0x14d251){const _0xd99dc6=_0x491241;if([_0xd99dc6(0x1c1),'not-following','offline']['includes'](this[_0xd99dc6(0x1a2)])||!_0x14d251[_0xd99dc6(0x13b)]['presenter']||_0x14d251[_0xd99dc6(0x13b)]['presenter']===this[_0xd99dc6(0x11d)][_0xd99dc6(0x13e)]())return;this[_0xd99dc6(0x1a2)]===_0xd99dc6(0xf6)&&this[_0xd99dc6(0x143)]();const _0x439c7e=_0x14d251[_0xd99dc6(0x13b)][_0xd99dc6(0x1a8)];Object[_0xd99dc6(0x139)](_0x439c7e)[_0xd99dc6(0x16d)](_0x52d866=>{const _0x533622=_0xd99dc6;this[_0x533622(0x140)]['executeCommand'](_0x52d866['id'],_0x52d866[_0x533622(0x10c)]?JSON['parse'](_0x52d866[_0x533622(0x10c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2b553a=_0x491241;var _0x5c5ad5;this[_0x2b553a(0x176)][_0x2b553a(0x13a)](_0x2b553a(0x1bb)),(_0x5c5ad5=this[_0x2b553a(0x162)])==null||_0x5c5ad5['dispose']();}['_handleOnline'](){const _0x44104d=_0x491241;this[_0x44104d(0x176)][_0x44104d(0x13a)](_0x44104d(0xf6)),this[_0x44104d(0x1ac)]();}},exports[_0x491241(0xf7)]=P([S(0x2,o[_0x491241(0x177)]),S(0x3,o[_0x491241(0x161)](E)),S(0x4,o['ICommandService'])],exports[_0x491241(0xf7)]);function $(){const _0x4da248=_0x491241,_0x125f95=p[_0x4da248(0x1b2)](exports['LiveShareController']),_0x4b66bf=p[_0x4da248(0x1b2)](o['IUniverInstanceService']),_0x10da6b=p['useObservable'](()=>_0x4b66bf[_0x4da248(0x103)](o[_0x4da248(0xfd)][_0x4da248(0xff)]),void 0x0,!0x1,[]),[_0x5bc573,_0x30a0e2]=v['useState'](null),[_0xef7db8,_0x194a4e]=v[_0x4da248(0xf5)](u[_0x4da248(0x1c0)]),_0x394ee0=v['useRef'](null);return v[_0x4da248(0x146)](()=>(_0x10da6b&&_0x125f95[_0x4da248(0x178)](_0x10da6b[_0x4da248(0x1a6)]())[_0x4da248(0x19c)](_0x4fe7bb=>{const _0x730310=_0x4da248;_0x30a0e2(_0x4fe7bb),_0x394ee0[_0x730310(0x16e)]=_0x4fe7bb[_0x730310(0x1af)][_0x730310(0x13f)](_0x24c121=>{_0x194a4e(_0x24c121);});}),()=>{const _0x36105b=_0x4da248;var _0x3cbefd;(_0x3cbefd=_0x394ee0[_0x36105b(0x16e)])==null||_0x3cbefd[_0x36105b(0x133)](),_0x394ee0[_0x36105b(0x16e)]=null;}),[_0x10da6b,_0x125f95]),_0x5bc573?l['jsx'](f[_0x4da248(0x14b)],{'align':_0x4da248(0x197),'disabled':_0xef7db8===u[_0x4da248(0x15e)],'className':_0x4da248(0x154),'overlay':l[_0x4da248(0x101)](W,{'status':_0xef7db8,'coordinator':_0x5bc573}),'children':l[_0x4da248(0x101)]('button',{'className':f[_0x4da248(0x123)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xef7db8===u[_0x4da248(0x15e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xef7db8!==u['OFFLINE']}),'type':_0x4da248(0x196),'children':l[_0x4da248(0x101)](R,{'className':_0x4da248(0x12a)})})}):null;}function W(_0xd23a75){const _0x396f1d=_0x491241,{status:_0x528a60,coordinator:_0x1865ac}=_0xd23a75;switch(_0x528a60){case u[_0x396f1d(0x1c0)]:return l[_0x396f1d(0x101)](G,{'coordinator':_0x1865ac});case u['FOLLOWING']:return l[_0x396f1d(0x101)](B,{'coordinator':_0x1865ac});case u[_0x396f1d(0x137)]:return l[_0x396f1d(0x101)](Y,{'coordinator':_0x1865ac});case u[_0x396f1d(0x15e)]:return l[_0x396f1d(0x101)](J,{});case u[_0x396f1d(0x135)]:return l['jsx'](Z,{'coordinator':_0x1865ac});default:return null;}}function G(_0x35a981){const _0x40b4af=_0x491241,{coordinator:_0x395cbe}=_0x35a981;return l[_0x40b4af(0x191)](l[_0x40b4af(0x1b4)],{'children':[l['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x40b4af(0x12c)}),l[_0x40b4af(0x101)](f['Button'],{'onClick':()=>_0x395cbe[_0x40b4af(0x150)](),'children':'Start'})]});}function B(_0x15b1cb){const _0x1221bf=_0x491241,{coordinator:_0x6ff6db}=_0x15b1cb;return l[_0x1221bf(0x191)](l[_0x1221bf(0x1b4)],{'children':[l[_0x1221bf(0x101)](_0x1221bf(0x17e),{'className':_0x1221bf(0x167),'children':_0x1221bf(0x15c)}),l[_0x1221bf(0x101)](f['Button'],{'onClick':()=>_0x6ff6db['stopFollowing'](),'children':'Stop\x20following'})]});}function Y(_0x118922){const _0x1b06f2=_0x491241,{coordinator:_0x2c9991}=_0x118922;return l[_0x1b06f2(0x191)](l[_0x1b06f2(0x1b4)],{'children':[l[_0x1b06f2(0x101)](_0x1b06f2(0x17e),{'className':_0x1b06f2(0x167),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x1b06f2(0x101)](f[_0x1b06f2(0x130)],{'variant':_0x1b06f2(0x168),'onClick':()=>_0x2c9991[_0x1b06f2(0x145)](),'children':_0x1b06f2(0x185)})]});}function Z(_0x18cf3c){const _0x40eda5=_0x491241,{coordinator:_0x14ee19}=_0x18cf3c;return l[_0x40eda5(0x191)](l['Fragment'],{'children':[l['jsx'](_0x40eda5(0x17e),{'className':_0x40eda5(0x167),'children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](f[_0x40eda5(0x130)],{'variant':_0x40eda5(0x1b7),'onClick':()=>_0x14ee19[_0x40eda5(0x192)](),'children':_0x40eda5(0x110)})]});}function J(){const _0x574d6f=_0x491241;return l[_0x574d6f(0x101)](l['Fragment'],{'children':_0x574d6f(0x16f)});}var K=Object[_0x491241(0x17b)],z=(_0x594353,_0x587ee7,_0x19322e,_0x1f78a2)=>{const _0x350eca=_0x491241;for(var _0x2b6db4=_0x1f78a2>0x1?void 0x0:_0x1f78a2?K(_0x587ee7,_0x19322e):_0x587ee7,_0x889ca0=_0x594353[_0x350eca(0x15f)]-0x1,_0x212501;_0x889ca0>=0x0;_0x889ca0--)(_0x212501=_0x594353[_0x889ca0])&&(_0x2b6db4=_0x212501(_0x2b6db4)||_0x2b6db4);return _0x2b6db4;},L=(_0x5ee7c6,_0x2cd824)=>(_0x1d8241,_0x22d1cb)=>_0x2cd824(_0x1d8241,_0x22d1cb,_0x5ee7c6);exports[_0x491241(0x172)]=class extends o[_0x491241(0x108)]{constructor(_0x267a34,_0x4ac2e0){const _0x12488f=_0x491241;super(),this[_0x12488f(0x183)]=_0x267a34,this[_0x12488f(0x16c)]=_0x4ac2e0,this[_0x12488f(0x142)]();}['_mountLiveShare'](){const _0x3db294=_0x491241;this[_0x3db294(0x124)](this[_0x3db294(0x16c)][_0x3db294(0x10f)](p[_0x3db294(0x15d)]['HEADER_MENU'],()=>p[_0x3db294(0x121)]($,this[_0x3db294(0x183)])));}},exports[_0x491241(0x172)]=z([L(0x0,o[_0x491241(0x161)](o[_0x491241(0x18f)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);const Q=_0x491241(0x170),w={};var X=Object[_0x491241(0x17b)],ee=(_0x3ababd,_0x26c21d,_0x48627d,_0x476f21)=>{const _0x11d9bb=_0x491241;for(var _0x521296=_0x476f21>0x1?void 0x0:_0x476f21?X(_0x26c21d,_0x48627d):_0x26c21d,_0x283c59=_0x3ababd[_0x11d9bb(0x15f)]-0x1,_0x398fc8;_0x283c59>=0x0;_0x283c59--)(_0x398fc8=_0x3ababd[_0x283c59])&&(_0x521296=_0x398fc8(_0x521296)||_0x521296);return _0x521296;},te=(_0x316920,_0x39f74f)=>(_0x1d67e7,_0x439a80)=>_0x39f74f(_0x1d67e7,_0x439a80,_0x316920);let m=class extends o['Disposable']{constructor(_0x45c883){super(),this['_liveShareService']=_0x45c883,this['_init']();}[_0x491241(0x10b)](){const _0x368081=_0x491241;[D[_0x368081(0x1a4)]['id'],D[_0x368081(0x113)]['id'],C['SetWorksheetActiveOperation']['id']][_0x368081(0x16d)](_0x8f78fe=>{const _0x2cc087=_0x368081;this['disposeWithMe'](this['_liveShareService'][_0x2cc087(0x148)](_0x8f78fe));});}};m=ee([te(0x0,o[_0x491241(0x161)](E))],m);var ie=Object[_0x491241(0x119)],se=Object[_0x491241(0x17b)],ne=(_0x213bb5,_0x4db0f0,_0x188eb1)=>_0x4db0f0 in _0x213bb5?ie(_0x213bb5,_0x4db0f0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x188eb1}):_0x213bb5[_0x4db0f0]=_0x188eb1,re=(_0x4432ee,_0x511135,_0x38e34d,_0x463d4b)=>{for(var _0x3f3c07=_0x463d4b>0x1?void 0x0:_0x463d4b?se(_0x511135,_0x38e34d):_0x511135,_0x3514cc=_0x4432ee['length']-0x1,_0x4e95a7;_0x3514cc>=0x0;_0x3514cc--)(_0x4e95a7=_0x4432ee[_0x3514cc])&&(_0x3f3c07=_0x4e95a7(_0x3f3c07)||_0x3f3c07);return _0x3f3c07;},N=(_0x5abd3f,_0x4d8018)=>(_0x113790,_0x7fb04c)=>_0x4d8018(_0x113790,_0x7fb04c,_0x5abd3f),A=(_0x4e58ff,_0x1fa244,_0x5a4edb)=>ne(_0x4e58ff,typeof _0x1fa244!=_0x491241(0x1aa)?_0x1fa244+'':_0x1fa244,_0x5a4edb);const oe=_0x491241(0x10e);exports[_0x491241(0x19e)]=class extends o[_0x491241(0x186)]{constructor(_0x84f871=w,_0x4d537e,_0xbd2691){const _0x3d735a=_0x491241;super(),this[_0x3d735a(0x193)]=_0x84f871,this['_injector']=_0x4d537e,this[_0x3d735a(0x126)]=_0xbd2691;const {..._0x828894}=o[_0x3d735a(0x1ae)]({},w,this[_0x3d735a(0x193)]);this[_0x3d735a(0x126)][_0x3d735a(0x181)](Q,_0x828894);}[_0x491241(0x19d)](){const _0x596dd3=_0x491241;o['registerDependencies'](this[_0x596dd3(0x183)],o[_0x596dd3(0x14f)]([[E],[exports[_0x596dd3(0x195)]],[m],[exports[_0x596dd3(0x172)]]],this['_config']['override'])),o[_0x596dd3(0x12f)](this['_injector'],[[m]]);}['onRendered'](){const _0x33c92a=_0x491241;o[_0x33c92a(0x12f)](this[_0x33c92a(0x183)],[[exports[_0x33c92a(0x172)]]]);}},A(exports[_0x491241(0x19e)],'type',o['UniverInstanceType'][_0x491241(0x1be)]),A(exports[_0x491241(0x19e)],_0x491241(0x166),oe),exports[_0x491241(0x19e)]=re([o[_0x491241(0x127)](b[_0x491241(0x17a)]),N(0x1,o[_0x491241(0x161)](o[_0x491241(0x18f)])),N(0x2,o[_0x491241(0x177)])],exports[_0x491241(0x19e)]),exports[_0x491241(0x151)]=$,exports[_0x491241(0xed)]=E,exports[_0x491241(0x112)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x352c44=_0x2e94;(function(_0xeea58e,_0x1e5708){const _0x3d7754=_0x2e94,_0x2f21fa=_0xeea58e();while(!![]){try{const _0x37f4bc=-parseInt(_0x3d7754(0xf0))/0x1*(parseInt(_0x3d7754(0xdc))/0x2)+parseInt(_0x3d7754(0xee))/0x3+parseInt(_0x3d7754(0xe7))/0x4*(parseInt(_0x3d7754(0xd4))/0x5)+-parseInt(_0x3d7754(0xd5))/0x6+parseInt(_0x3d7754(0xf2))/0x7+-parseInt(_0x3d7754(0xf4))/0x8+parseInt(_0x3d7754(0xe0))/0x9;if(_0x37f4bc===_0x1e5708)break;else _0x2f21fa['push'](_0x2f21fa['shift']());}catch(_0x4d781d){_0x2f21fa['push'](_0x2f21fa['shift']());}}}(_0x466f,0xea880));import{LiveShareController as _0x10a042,LiveShareStatus as _0x145361}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2ad8b3}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x1ae3d5}from'@univerjs/sheets';import{SetScrollOperation as _0x4c78b8}from'@univerjs/sheets-ui';import{FRange as _0xfe9845}from'@univerjs/sheets/facade';import{FUniver as _0x2c0cbf,FEnum as _0x57ddce}from'@univerjs/core/facade';function _0x466f(){const _0x486f77=['syncExecuteCommand','executeCommand','getSheetId','getRenderById','2013656kmHItX','getLiveShareCoordinatorSync','getId','PRESENTING','stopFollowing','startFollowing','LiveShareStatusEnum','3915897wMEsAc','_initialize','54419QrkmFl','No\x20active\x20workbook\x20found.','3466057ipmcuK','_commandService','14445608IJpWWn','IDLE','10wtgeZW','9244110MIcitJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','stopPresenting','getActiveWorkbook','get','getActiveSheet','58rGLmsA','getUnitId','startColumn','extend','27701091tnLvLl','startPresenting','_injector'];_0x466f=function(){return _0x486f77;};return _0x466f();}function _0x2e94(_0x18ce63,_0x523b77){_0x18ce63=_0x18ce63-0xd4;const _0x466f1d=_0x466f();let _0x2e9439=_0x466f1d[_0x18ce63];return _0x2e9439;}class I extends _0xfe9845{[_0x352c44(0xef)](_0x42352f,_0x423796,_0x2c9a24,_0xeffee5,_0x44897a){const _0x4806d=_0x352c44,_0x3c6826=_0x42352f[_0x4806d(0xda)](_0x10a042),_0x33f22f=_0x42352f[_0x4806d(0xda)](_0x2ad8b3),_0x2c2329=_0x423796[_0x4806d(0xdd)](),_0x4e3ba8=_0x423796[_0x4806d(0xdb)](),_0x264362=_0x3c6826['getLiveShareCoordinatorSync'](_0x2c2329);(_0x264362==null?void 0x0:_0x264362[_0x4806d(0xd7)]())!==_0x145361[_0x4806d(0xea)]||(_0x2c9a24['getSheetId']()!==_0x4e3ba8['getSheetId']()&&this[_0x4806d(0xf3)][_0x4806d(0xe4)](_0x1ae3d5['id'],{'unitId':_0x2c2329,'subUnitId':_0x2c9a24[_0x4806d(0xe5)]()}),!_0x33f22f[_0x4806d(0xe6)](_0x2c2329))||_0x44897a[_0x4806d(0xe3)](_0x4c78b8['id'],{'unitId':_0x423796[_0x4806d(0xdd)](),'sheetId':_0x2c9a24['getSheetId'](),'sheetViewStartRow':_0xeffee5['startRow'],'sheetViewStartColumn':_0xeffee5[_0x4806d(0xde)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xfe9845[_0x352c44(0xdf)](I);class m extends _0x2c0cbf{['getLiveShareStatus'](){const _0xfd37f8=_0x352c44;var _0x5ee508,_0x2c27ef;const _0x3bf8ee=this[_0xfd37f8(0xe2)]['get'](_0x10a042),_0x3dcd68=(_0x5ee508=this[_0xfd37f8(0xd9)]())==null?void 0x0:_0x5ee508[_0xfd37f8(0xe9)]();if(!_0x3dcd68)throw new Error(_0xfd37f8(0xf1));const _0x583e99=_0x3bf8ee[_0xfd37f8(0xe8)](_0x3dcd68);return(_0x2c27ef=_0x583e99==null?void 0x0:_0x583e99[_0xfd37f8(0xd7)]())!=null?_0x2c27ef:_0x145361[_0xfd37f8(0xf5)];}[_0x352c44(0xec)](){const _0x27e81e=_0x352c44;var _0x2823d5;const _0x201f8e=this['_injector'][_0x27e81e(0xda)](_0x10a042),_0x2a8a0b=(_0x2823d5=this[_0x27e81e(0xd9)]())==null?void 0x0:_0x2823d5[_0x27e81e(0xe9)]();if(!_0x2a8a0b)throw new Error(_0x27e81e(0xf1));const _0x4ad8fa=_0x201f8e[_0x27e81e(0xe8)](_0x2a8a0b);if(!_0x4ad8fa)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4ad8fa[_0x27e81e(0xec)]();}[_0x352c44(0xeb)](){const _0x25c6bc=_0x352c44;var _0x6741d1;const _0xb9578a=this['_injector'][_0x25c6bc(0xda)](_0x10a042),_0x318beb=(_0x6741d1=this[_0x25c6bc(0xd9)]())==null?void 0x0:_0x6741d1['getId']();if(!_0x318beb)throw new Error('No\x20active\x20workbook\x20found.');const _0x45f11a=_0xb9578a[_0x25c6bc(0xe8)](_0x318beb);if(!_0x45f11a)throw new Error(_0x25c6bc(0xd6));_0x45f11a[_0x25c6bc(0xeb)]();}[_0x352c44(0xe1)](){const _0xad5d18=_0x352c44;var _0x328887;const _0x3d2b19=this[_0xad5d18(0xe2)][_0xad5d18(0xda)](_0x10a042),_0x53350f=(_0x328887=this[_0xad5d18(0xd9)]())==null?void 0x0:_0x328887['getId']();if(!_0x53350f)throw new Error(_0xad5d18(0xf1));const _0x24b6e0=_0x3d2b19['getLiveShareCoordinatorSync'](_0x53350f);if(!_0x24b6e0)throw new Error(_0xad5d18(0xd6));_0x24b6e0['tryStartPresenting']();}[_0x352c44(0xd8)](){const _0x58da10=_0x352c44;var _0x4ef740;const _0x214e47=this[_0x58da10(0xe2)]['get'](_0x10a042),_0x3d19d0=(_0x4ef740=this['getActiveWorkbook']())==null?void 0x0:_0x4ef740[_0x58da10(0xe9)]();if(!_0x3d19d0)throw new Error(_0x58da10(0xf1));const _0x520760=_0x214e47[_0x58da10(0xe8)](_0x3d19d0);if(!_0x520760)throw new Error(_0x58da10(0xd6));_0x520760[_0x58da10(0xd8)]();}}_0x2c0cbf['extend'](m);class C extends _0x57ddce{get[_0x352c44(0xed)](){return _0x145361;}}_0x57ddce[_0x352c44(0xdf)](C);
1
+ const _0x2a8c09=_0x32e7;(function(_0x3460aa,_0xf26c3){const _0x3288af=_0x32e7,_0x41f6ad=_0x3460aa();while(!![]){try{const _0x2b5a4f=-parseInt(_0x3288af(0x7f))/0x1*(parseInt(_0x3288af(0x75))/0x2)+-parseInt(_0x3288af(0x86))/0x3*(parseInt(_0x3288af(0x73))/0x4)+parseInt(_0x3288af(0x7a))/0x5*(parseInt(_0x3288af(0x8d))/0x6)+-parseInt(_0x3288af(0x81))/0x7+-parseInt(_0x3288af(0x71))/0x8+-parseInt(_0x3288af(0x8e))/0x9+-parseInt(_0x3288af(0x7c))/0xa*(-parseInt(_0x3288af(0x85))/0xb);if(_0x2b5a4f===_0xf26c3)break;else _0x41f6ad['push'](_0x41f6ad['shift']());}catch(_0x10aff4){_0x41f6ad['push'](_0x41f6ad['shift']());}}}(_0x26a5,0x230d2));import{LiveShareController as _0x14a70b,LiveShareStatus as _0x1428be}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xce11c8}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4aa18d}from'@univerjs/sheets';import{SetScrollOperation as _0x559e3d}from'@univerjs/sheets-ui';import{FRange as _0x35a4e6}from'@univerjs/sheets/facade';import{FUniver as _0x2e541a,FEnum as _0x336ab1}from'@univerjs/core/facade';class I extends _0x35a4e6{[_0x2a8c09(0x82)](_0xb5b6aa,_0x9b43eb,_0x29dece,_0x30fedd,_0x201ae2){const _0x1a76c2=_0x2a8c09,_0x3b2b51=_0xb5b6aa[_0x1a76c2(0x80)](_0x14a70b),_0x426642=_0xb5b6aa[_0x1a76c2(0x80)](_0xce11c8),_0x34589c=_0x9b43eb[_0x1a76c2(0x84)](),_0x535701=_0x9b43eb['getActiveSheet'](),_0x6ff2c1=_0x3b2b51['getLiveShareCoordinatorSync'](_0x34589c);(_0x6ff2c1==null?void 0x0:_0x6ff2c1['getStatus']())!==_0x1428be[_0x1a76c2(0x90)]||(_0x29dece['getSheetId']()!==_0x535701[_0x1a76c2(0x72)]()&&this['_commandService']['executeCommand'](_0x4aa18d['id'],{'unitId':_0x34589c,'subUnitId':_0x29dece[_0x1a76c2(0x72)]()}),!_0x426642[_0x1a76c2(0x74)](_0x34589c))||_0x201ae2[_0x1a76c2(0x8c)](_0x559e3d['id'],{'unitId':_0x9b43eb[_0x1a76c2(0x84)](),'sheetId':_0x29dece['getSheetId'](),'sheetViewStartRow':_0x30fedd['startRow'],'sheetViewStartColumn':_0x30fedd[_0x1a76c2(0x78)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x35a4e6[_0x2a8c09(0x7d)](I);function _0x32e7(_0x3e7324,_0x2dffa4){_0x3e7324=_0x3e7324-0x6f;const _0x26a55d=_0x26a5();let _0x32e799=_0x26a55d[_0x3e7324];return _0x32e799;}class m extends _0x2e541a{[_0x2a8c09(0x83)](){const _0x4bae81=_0x2a8c09;var _0x561e72,_0x5dbbbc;const _0xa36ea0=this[_0x4bae81(0x76)]['get'](_0x14a70b),_0x59d589=(_0x561e72=this[_0x4bae81(0x87)]())==null?void 0x0:_0x561e72[_0x4bae81(0x70)]();if(!_0x59d589)throw new Error(_0x4bae81(0x8a));const _0x6b6544=_0xa36ea0[_0x4bae81(0x79)](_0x59d589);return(_0x5dbbbc=_0x6b6544==null?void 0x0:_0x6b6544[_0x4bae81(0x8f)]())!=null?_0x5dbbbc:_0x1428be['IDLE'];}[_0x2a8c09(0x6f)](){const _0x3ab86e=_0x2a8c09;var _0x176503;const _0x51178a=this[_0x3ab86e(0x76)][_0x3ab86e(0x80)](_0x14a70b),_0x5699d9=(_0x176503=this[_0x3ab86e(0x87)]())==null?void 0x0:_0x176503[_0x3ab86e(0x70)]();if(!_0x5699d9)throw new Error('No\x20active\x20workbook\x20found.');const _0xf2736f=_0x51178a[_0x3ab86e(0x79)](_0x5699d9);if(!_0xf2736f)throw new Error(_0x3ab86e(0x77));_0xf2736f[_0x3ab86e(0x6f)]();}[_0x2a8c09(0x88)](){const _0x1c5236=_0x2a8c09;var _0x14acc0;const _0x376977=this[_0x1c5236(0x76)]['get'](_0x14a70b),_0x4a57ee=(_0x14acc0=this['getActiveWorkbook']())==null?void 0x0:_0x14acc0[_0x1c5236(0x70)]();if(!_0x4a57ee)throw new Error(_0x1c5236(0x8a));const _0x357673=_0x376977[_0x1c5236(0x79)](_0x4a57ee);if(!_0x357673)throw new Error(_0x1c5236(0x77));_0x357673[_0x1c5236(0x88)]();}[_0x2a8c09(0x8b)](){const _0x1f72fa=_0x2a8c09;var _0x53199e;const _0x2e35ac=this[_0x1f72fa(0x76)][_0x1f72fa(0x80)](_0x14a70b),_0x3cc0ba=(_0x53199e=this[_0x1f72fa(0x87)]())==null?void 0x0:_0x53199e[_0x1f72fa(0x70)]();if(!_0x3cc0ba)throw new Error(_0x1f72fa(0x8a));const _0xb8d64=_0x2e35ac['getLiveShareCoordinatorSync'](_0x3cc0ba);if(!_0xb8d64)throw new Error(_0x1f72fa(0x77));_0xb8d64[_0x1f72fa(0x7e)]();}['stopPresenting'](){const _0xf19fa4=_0x2a8c09;var _0x3a39eb;const _0x100e08=this[_0xf19fa4(0x76)]['get'](_0x14a70b),_0x5a4407=(_0x3a39eb=this[_0xf19fa4(0x87)]())==null?void 0x0:_0x3a39eb[_0xf19fa4(0x70)]();if(!_0x5a4407)throw new Error(_0xf19fa4(0x8a));const _0x388d5e=_0x100e08[_0xf19fa4(0x79)](_0x5a4407);if(!_0x388d5e)throw new Error(_0xf19fa4(0x77));_0x388d5e[_0xf19fa4(0x89)]();}}_0x2e541a[_0x2a8c09(0x7d)](m);function _0x26a5(){const _0xa8bdca=['syncExecuteCommand','85056wlsqHL','1869885vHftYD','getStatus','PRESENTING','startFollowing','getId','1714192TRJIOV','getSheetId','4GsEthZ','getRenderById','2JYOPpb','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startColumn','getLiveShareCoordinatorSync','70KDTtXn','LiveShareStatusEnum','220420AFnxOc','extend','tryStartPresenting','238421QwbOYQ','get','949676XVJpvL','_initialize','getLiveShareStatus','getUnitId','462BnWIjK','553590hdipJP','getActiveWorkbook','stopFollowing','stopPresenting','No\x20active\x20workbook\x20found.','startPresenting'];_0x26a5=function(){return _0xa8bdca;};return _0x26a5();}class C extends _0x336ab1{get[_0x2a8c09(0x7b)](){return _0x1428be;}}_0x336ab1['extend'](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3460c1=_0x4557;(function(_0x5e91aa,_0x551fe5){const _0xc8edc0=_0x4557,_0x46e6de=_0x5e91aa();while(!![]){try{const _0x806443=-parseInt(_0xc8edc0(0x150))/0x1*(parseInt(_0xc8edc0(0xdc))/0x2)+-parseInt(_0xc8edc0(0xd6))/0x3+parseInt(_0xc8edc0(0x13f))/0x4+parseInt(_0xc8edc0(0x15c))/0x5*(-parseInt(_0xc8edc0(0x15e))/0x6)+parseInt(_0xc8edc0(0xf8))/0x7*(parseInt(_0xc8edc0(0x100))/0x8)+-parseInt(_0xc8edc0(0x119))/0x9+parseInt(_0xc8edc0(0x104))/0xa*(parseInt(_0xc8edc0(0xda))/0xb);if(_0x806443===_0x551fe5)break;else _0x46e6de['push'](_0x46e6de['shift']());}catch(_0x527f52){_0x46e6de['push'](_0x46e6de['shift']());}}}(_0x2e26,0x4b0b4));var J=Object[_0x3460c1(0x126)],K=(_0xee29c6,_0x1c2b47,_0x49608d)=>_0x1c2b47 in _0xee29c6?J(_0xee29c6,_0x1c2b47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49608d}):_0xee29c6[_0x1c2b47]=_0x49608d,u=(_0x3e01fd,_0x32c32d,_0x4ce276)=>K(_0x3e01fd,typeof _0x32c32d!=_0x3460c1(0xf4)?_0x32c32d+'':_0x32c32d,_0x4ce276);import{Disposable as _0xc5e0a9,toDisposable as _0x87ebf2,IUniverInstanceService as _0xa87a14,Inject as _0x3bcdba,Injector as _0x19e107,IConfigService as _0x29db0f,ICommandService as _0x565687,RxDisposable as _0x591da1,UniverInstanceType as _0x3cb45b,DisposableCollection as _0x81324e,CommandType as _0x5504a2,DependentOn as _0x1ebbc3,Plugin as _0x16f213,merge as _0x125a7c,registerDependencies as _0x41bf15,mergeOverrideWithDependencies as _0x1cc35b,touchDependencies as _0x15308f}from'@univerjs/core';import{useDependency as _0x2b3e7d,useObservable as _0x27fd11,IUIPartsService as _0x42e77f,BuiltInUIPart as _0x5b833c,connectInjector as _0x87cd1f}from'@univerjs/ui';import{jsx as _0x9b8f83,jsxs as _0x3911e5,Fragment as _0x51b535}from'react/jsx-runtime';import{Dropdown as _0x320cc1,clsx as _0x889c00,Button as _0x25f1f0}from'@univerjs/design';import{useRef as _0x198b9b,createElement as _0x496fa8,forwardRef as _0x1d4949,useState as _0x51630b,useEffect as _0x112452}from'react';import{CollaborationEvent as _0x1bd605,parseProtocolChangeset as _0x52281c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x419de7,SessionStatus as _0x472715,UniverCollaborationClientPlugin as _0x82618b}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x90e1c7,SetWorksheetActiveOperation as _0x4608bd}from'@univerjs/sheets';import{BehaviorSubject as _0x54131c,Subject as _0x1d9924}from'rxjs';import{takeUntil as _0x1cfb04,throttleTime as _0x387acb}from'rxjs/operators';import{SetZoomRatioOperation as _0x4fb690,SetScrollOperation as _0x5633c5}from'@univerjs/sheets-ui';function k({ref:_0x26a054,..._0x5508a8}){const _0x151f62=_0x3460c1,{icon:_0x399b7f,id:_0x6c9fe5,className:_0x5c55ac,extend:_0x4505a3,..._0x440c88}=_0x5508a8,_0x5af4eb=('univerjs-icon\x20univerjs-icon-'+_0x6c9fe5+'\x20'+(_0x5c55ac||''))['trim'](),_0x47c2e5=_0x198b9b('_'+Oe());return G(_0x399b7f,''+_0x6c9fe5,{'defIds':_0x399b7f['defIds'],'idSuffix':_0x47c2e5[_0x151f62(0xd3)]},{'ref':_0x26a054,'className':_0x5af4eb,..._0x440c88},_0x4505a3);}function G(_0x37cf3b,_0x5f31e4,_0x2ecc13,_0x9b24bc,_0x54e131){const _0x482e13=_0x3460c1;return _0x496fa8(_0x37cf3b['tag'],{'key':_0x5f31e4,...be(_0x37cf3b,_0x2ecc13,_0x54e131),..._0x9b24bc},(Ee(_0x37cf3b,_0x2ecc13)[_0x482e13(0x11f)]||[])[_0x482e13(0x13e)]((_0x22d74d,_0x2b0a24)=>G(_0x22d74d,_0x5f31e4+'-'+_0x37cf3b[_0x482e13(0x111)]+'-'+_0x2b0a24,_0x2ecc13,void 0x0,_0x54e131)));}function be(_0x226ed1,_0x4bfac6,_0x5760a2){const _0x187901=_0x3460c1,_0x51172a={..._0x226ed1[_0x187901(0x145)]};_0x5760a2!=null&&_0x5760a2[_0x187901(0x12e)]&&_0x51172a[_0x187901(0x14e)]===_0x187901(0x12e)&&(_0x51172a['fill']=_0x5760a2[_0x187901(0x12e)]),_0x226ed1[_0x187901(0x111)]===_0x187901(0x10c)&&_0x51172a['id']&&(_0x51172a['id']=_0x51172a['id']+_0x4bfac6[_0x187901(0xfc)]),Object[_0x187901(0x15a)](_0x51172a)[_0x187901(0x11d)](([_0x52dc91,_0x2c29ad])=>{const _0x5806ec=_0x187901;_0x52dc91==='mask'&&typeof _0x2c29ad==_0x5806ec(0x161)&&(_0x51172a[_0x52dc91]=_0x2c29ad['replace'](/url\(#(.*)\)/,_0x5806ec(0x116)+_0x4bfac6[_0x5806ec(0xfc)]+')'));});const {defIds:_0x2d7710}=_0x4bfac6;return!_0x2d7710||_0x2d7710['length']===0x0||(_0x226ed1['tag']===_0x187901(0x154)&&_0x51172a['xlink:href']&&(_0x51172a['xlink:href']=_0x51172a['xlink:href']+_0x4bfac6[_0x187901(0xfc)]),Object[_0x187901(0x15a)](_0x51172a)[_0x187901(0x11d)](([_0x18a762,_0x37b00d])=>{const _0x534e15=_0x187901;typeof _0x37b00d==_0x534e15(0x161)&&(_0x51172a[_0x18a762]=_0x37b00d[_0x534e15(0x11e)](/url\(#(.*)\)/,_0x534e15(0x116)+_0x4bfac6['idSuffix']+')'));})),_0x51172a;}function Ee(_0x43f4ae,_0x4b935d){const _0x3ba781=_0x3460c1;var _0x474e3d;const {defIds:_0xa41c91}=_0x4b935d;return!_0xa41c91||_0xa41c91[_0x3ba781(0xe6)]===0x0?_0x43f4ae:_0x43f4ae[_0x3ba781(0x111)]===_0x3ba781(0x139)&&((_0x474e3d=_0x43f4ae[_0x3ba781(0x11f)])!=null&&_0x474e3d[_0x3ba781(0xe6)])?{..._0x43f4ae,'children':_0x43f4ae[_0x3ba781(0x11f)]['map'](_0x22572c=>typeof _0x22572c[_0x3ba781(0x145)]['id']==_0x3ba781(0x161)&&_0xa41c91&&_0xa41c91['includes'](_0x22572c[_0x3ba781(0x145)]['id'])?{..._0x22572c,'attrs':{..._0x22572c['attrs'],'id':_0x22572c[_0x3ba781(0x145)]['id']+_0x4b935d['idSuffix']}}:_0x22572c)}:_0x43f4ae;}function Oe(){const _0x571914=_0x3460c1;return Math[_0x571914(0x110)]()[_0x571914(0x16c)](0x24)[_0x571914(0x12a)](0x2,0x8);}k[_0x3460c1(0xd2)]=_0x3460c1(0x14b);const we={'tag':_0x3460c1(0xe8),'attrs':{'xmlns':_0x3460c1(0x156),'fill':_0x3460c1(0x118),'viewBox':_0x3460c1(0xdf),'width':'1em','height':_0x3460c1(0x12c)},'children':[{'tag':'path','attrs':{'fill':'currentColor','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':_0x3460c1(0xe4),'attrs':{'fill':_0x3460c1(0x157),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x3460c1(0x11b)}}]},W=_0x1d4949(function(_0x1e7683,_0x9a32e2){const _0x448ee4=_0x3460c1;return _0x496fa8(k,Object[_0x448ee4(0x128)]({},_0x1e7683,{'id':_0x448ee4(0x141),'ref':_0x9a32e2,'icon':we}));});W['displayName']='LiveShareIcon';class L extends _0xc5e0a9{constructor(){const _0x4eec30=_0x3460c1;super(...arguments),u(this,_0x4eec30(0xe0),new Set()),u(this,_0x4eec30(0x131),new Set());}[_0x3460c1(0xec)](_0xce0c2b){const _0x27c1c2=_0x3460c1;return this['_sharedOperations'][_0x27c1c2(0x149)](_0xce0c2b),_0x87ebf2(()=>this['_sharedOperations'][_0x27c1c2(0xd0)](_0xce0c2b));}['registerInitialStateReporter'](_0x5486f1){const _0x134273=_0x3460c1;return this['_reporters'][_0x134273(0x149)](_0x5486f1),_0x87ebf2(()=>this[_0x134273(0x131)][_0x134273(0xd0)](_0x5486f1));}[_0x3460c1(0x153)](_0x382e39){const _0x4900b3=_0x3460c1;return this[_0x4900b3(0xe0)]['has'](_0x382e39);}['getInitialStates'](_0x2277c7){const _0x56ffca=_0x3460c1;return Array[_0x56ffca(0x102)](this['_reporters'])[_0x56ffca(0x13e)](_0xee86d4=>_0xee86d4(_0x2277c7));}}var Ne=Object[_0x3460c1(0x163)],Y=(_0x3ad7f6,_0xb6cc1e,_0x210af2,_0x30d218)=>{const _0x57a988=_0x3460c1;for(var _0x4e546e=_0x30d218>0x1?void 0x0:_0x30d218?Ne(_0xb6cc1e,_0x210af2):_0xb6cc1e,_0x5c3e02=_0x3ad7f6[_0x57a988(0xe6)]-0x1,_0x44c03a;_0x5c3e02>=0x0;_0x5c3e02--)(_0x44c03a=_0x3ad7f6[_0x5c3e02])&&(_0x4e546e=_0x44c03a(_0x4e546e)||_0x4e546e);return _0x4e546e;},_=(_0x1de16c,_0x3cb4b0)=>(_0x2c8718,_0x19ca88)=>_0x3cb4b0(_0x2c8718,_0x19ca88,_0x1de16c);let S=class extends _0x591da1{constructor(_0x53d9f1,_0xe2dd4c,_0x15c992){const _0x410d85=_0x3460c1;super(),u(this,'_entities',new Map()),(this[_0x410d85(0x144)]=_0x53d9f1,this['_injector']=_0xe2dd4c,this['_collabSessionService']=_0x15c992,this['_init']());}async[_0x3460c1(0x117)](_0x49cd36){const _0x21f2d2=_0x3460c1;return this[_0x21f2d2(0x115)]['has'](_0x49cd36)||await this[_0x21f2d2(0xf9)](_0x49cd36),this['_entities'][_0x21f2d2(0x138)](_0x49cd36);}['getLiveShareCoordinatorSync'](_0x3b6bf2){const _0xb68733=_0x3460c1;var _0x131cbc;return(_0x131cbc=this[_0xb68733(0x115)][_0xb68733(0x138)](_0x3b6bf2))!=null?_0x131cbc:null;}[_0x3460c1(0xf5)](){const _0x280766=_0x3460c1;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3cb45b[_0x280766(0x12f)])['pipe'](_0x1cfb04(this[_0x280766(0xea)]))['subscribe'](async _0x239aaf=>{const _0x3e300a=_0x280766,_0x1c4969=_0x239aaf[_0x3e300a(0xed)]();this[_0x3e300a(0x115)]['has'](_0x1c4969)||this['_startLiveShareCoordinator'](_0x1c4969);}),this[_0x280766(0x144)][_0x280766(0x10b)](_0x3cb45b[_0x280766(0x12f)])[_0x280766(0x11c)](_0x1cfb04(this[_0x280766(0xea)]))['subscribe'](_0x1cb7c5=>{const _0x48a1db=_0x280766,_0x2a0b5e=_0x1cb7c5[_0x48a1db(0xed)](),_0x12175d=this['_entities'][_0x48a1db(0x138)](_0x2a0b5e);_0x12175d==null||_0x12175d['dispose']();});}async[_0x3460c1(0xf9)](_0x30b34c){const _0x26092a=_0x3460c1,_0x13bd2c=await this[_0x26092a(0x10f)]['requireSession'](_0x30b34c),_0xbe848e=this['_injector'][_0x26092a(0x134)](N,_0x30b34c,_0x13bd2c);return _0xbe848e[_0x26092a(0x124)](),this['_entities'][_0x26092a(0x108)](_0x30b34c,_0xbe848e),_0xbe848e;}};function _0x4557(_0x319d5b,_0x466118){_0x319d5b=_0x319d5b-0xd0;const _0x2e2603=_0x2e26();let _0x4557b6=_0x2e2603[_0x319d5b];return _0x4557b6;}S=Y([_(0x0,_0xa87a14),_(0x1,_0x3bcdba(_0x19e107)),_(0x2,_0x3bcdba(_0x419de7))],S);var c=(_0x249ad8=>(_0x249ad8['OFFLINE']=_0x3460c1(0xdd),_0x249ad8[_0x3460c1(0x14a)]=_0x3460c1(0xe3),_0x249ad8[_0x3460c1(0x160)]=_0x3460c1(0x147),_0x249ad8[_0x3460c1(0x114)]=_0x3460c1(0x165),_0x249ad8[_0x3460c1(0x13c)]='presenting',_0x249ad8))(c||{});const Ce=_0x3460c1(0x148),De=0xc8;function _0x2e26(){const _0x5e967a=['dispose','event$','data','sessionStatus$','_commandService','_collabSession','symbol','_init','find','live-share.config','7VkPebU','_startLiveShareCoordinator','stopFollowing','Present\x20this\x20document','idSuffix','send','onCommandExecuted','default','4482536RTdaRF','next','from','_handleOnline','40eyXOLS','Start','params','_startPresenting','set','parse','_status$','getTypeOfUnitDisposed$','mask','includes','unitId','_collabSessionService','random','tag','Start\x20following','_handleNewChangeSets','NOT_FOLLOWING','_entities','url(#$1','getLiveShareCoordinator','none','4234896shwwpu','type','evenodd','pipe','forEach','replace','children','div','button','override','getValue','init','HEADER_MENU','defineProperty','getInitialStates','assign','has','substring','OFFLINE','1em','_fetchOperations','colorChannel1','UNIVER_SHEET','_handleOperation','_reporters','LIVESHARE_TERMINATE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','createInstance','stringify','unsubscribe','onRendered','get','defs','_injector','getCurrentTypeOfUnit$','PRESENTING','tryStartPresenting','map','863220xHXkSL','subscribe','live-share-icon','_handleTerminate','_handleOffline','_univerInstanceService','attrs','clear','following','SAME_OPERATION_SHARE_INTERVAL','add','IDLE','UniverIcon','startFollowing','univer-size-4','fill','univer-mb-3\x20univer-w-full\x20univer-text-sm','23gaMkjK','LIVESHARE_FETCH_OPERATIONS','presenter','shouldShareOperation','use','_handleNewHost','http://www.w3.org/2000/svg','currentColor','disposeWithMe','memberID','entries','You\x27re\x20not\x20following\x20the\x20presenter','250YiFNYI','pluginName','38166BGNHdq','_unitID','FOLLOWING','string','ONLINE','getOwnPropertyDescriptor','_commandDisposable','not-following','presenting','status$','mutations','sheet','_startFollowing','getMemberID','toString','stopPresenting','then','_mountLiveShare','_liveShareService','delete','You\x27are\x20offline.','displayName','current','onStarting','_beIdle','527169AxmxmC','_status','text','_stopFollowing','1951246VrGJSu','executeCommand','18606rZGRuB','offline','You\x27re\x20following\x20the\x20presenter','0\x200\x2017\x2017','_sharedOperations','_config','registerComponent','idle','path','_configService','length','_presenter','svg','LIVESHARE_REQUEST_HOST','dispose$','setConfig','registerSharedOperation','getUnitId'];_0x2e26=function(){return _0x5e967a;};return _0x2e26();}let N=class extends _0x591da1{constructor(_0x11b18b,_0x477f19,_0x257db7,_0xbbf2d2,_0x4bee3b){const _0x3ef8b0=_0x3460c1;super(),u(this,_0x3ef8b0(0x10a),new _0x54131c(_0x3ef8b0(0xe3))),u(this,_0x3ef8b0(0x167),this[_0x3ef8b0(0x10a)]['asObservable']()),u(this,'_init',!0x1),u(this,_0x3ef8b0(0x164),null),u(this,_0x3ef8b0(0xe7),null),(this[_0x3ef8b0(0x15f)]=_0x11b18b,this['_collabSession']=_0x477f19,this[_0x3ef8b0(0xe5)]=_0x257db7,this['_liveShareService']=_0xbbf2d2,this[_0x3ef8b0(0xf2)]=_0x4bee3b);}get[_0x3460c1(0xd7)](){const _0x5d3644=_0x3460c1;return this[_0x5d3644(0x10a)][_0x5d3644(0x123)]();}[_0x3460c1(0xee)](){const _0x54914b=_0x3460c1;var _0x371575;(_0x371575=this[_0x54914b(0x164)])==null||_0x371575[_0x54914b(0xee)](),this[_0x54914b(0x10a)][_0x54914b(0x101)](_0x54914b(0xe3)),this[_0x54914b(0x10a)]['complete']();}['getStatus'](){const _0x3507c4=_0x3460c1;return this[_0x3507c4(0xd7)];}[_0x3460c1(0x124)](){const _0x5a40dd=_0x3460c1;this[_0x5a40dd(0xf5)]||(this[_0x5a40dd(0xf5)]=!0x0,this['_collabSession'][_0x5a40dd(0xf1)]['pipe'](_0x1cfb04(this[_0x5a40dd(0xea)]))[_0x5a40dd(0x140)](_0x279107=>{const _0x3ab0fd=_0x5a40dd;switch(_0x279107){case _0x472715[_0x3ab0fd(0x12b)]:this['_handleOffline']();break;case _0x472715[_0x3ab0fd(0x162)]:this[_0x3ab0fd(0x103)]();break;}}),this[_0x5a40dd(0xf3)][_0x5a40dd(0xef)]['pipe'](_0x1cfb04(this[_0x5a40dd(0xea)]))[_0x5a40dd(0x140)](_0x674d7d=>{const _0x500399=_0x5a40dd,{eventID:_0x406dc9}=_0x674d7d;switch(_0x406dc9){case _0x1bd605['LIVESHARE_NEW_HOST']:this[_0x500399(0x155)](_0x674d7d);break;case _0x1bd605['LIVESHARE_OPERATION']:this[_0x500399(0x130)](_0x674d7d);break;case _0x1bd605[_0x500399(0x132)]:this['_handleTerminate']();break;case _0x1bd605['NEW_CHANGESETS']:this[_0x500399(0x113)](_0x674d7d);break;}}));}[_0x3460c1(0x13d)](){const _0x4507dc=_0x3460c1;this[_0x4507dc(0xf3)]['send']({'eventID':_0x1bd605[_0x4507dc(0xe9)],'data':{'unitID':this[_0x4507dc(0x15f)],'userID':this[_0x4507dc(0xf3)][_0x4507dc(0x16b)]()}},this[_0x4507dc(0x15f)]);}[_0x3460c1(0x16d)](){const _0x4520c4=_0x3460c1;this[_0x4520c4(0xd7)]===_0x4520c4(0x166)&&(this[_0x4520c4(0x10a)][_0x4520c4(0x101)](_0x4520c4(0xe3)),this[_0x4520c4(0xf3)][_0x4520c4(0xfd)]({'eventID':_0x1bd605[_0x4520c4(0x132)],'data':{'unitID':this[_0x4520c4(0x15f)]}},this[_0x4520c4(0x15f)]));}[_0x3460c1(0x14c)](){const _0x558865=_0x3460c1;this[_0x558865(0xd7)]===_0x558865(0x165)&&(this['_status$'][_0x558865(0x101)](_0x558865(0x147)),this['_startFollowing']());}['stopFollowing'](){const _0x32da72=_0x3460c1;this[_0x32da72(0xd7)]===_0x32da72(0x147)&&this[_0x32da72(0xd9)]();}[_0x3460c1(0x155)](_0x5ef90d){const _0x2da164=_0x3460c1,{presenter:_0x288bbb}=_0x5ef90d[_0x2da164(0xf0)],_0x2f32d6=this[_0x2da164(0xf3)][_0x2da164(0x16b)]();this[_0x2da164(0xe7)]=_0x288bbb,_0x288bbb===_0x2f32d6?(this[_0x2da164(0xd9)](),this[_0x2da164(0x107)]()):this['_status']!==_0x2da164(0x165)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3460c1(0x12d)](){const _0x5294cf=_0x3460c1,_0x14a72c={'eventID':_0x1bd605[_0x5294cf(0x151)]};this[_0x5294cf(0xf3)][_0x5294cf(0xfd)](_0x14a72c,this['_unitID']);}[_0x3460c1(0x142)](){const _0x38d416=_0x3460c1;this[_0x38d416(0xe7)]=null,this[_0x38d416(0xd7)]!==_0x38d416(0x166)&&this[_0x38d416(0xd5)]();}[_0x3460c1(0x113)](_0x585489){const _0x503f5c=_0x3460c1;if(this['_status']==='following'&&this[_0x503f5c(0xe7)]===_0x585489[_0x503f5c(0xf0)][_0x503f5c(0x159)]){const _0x16ef39=_0x52281c(_0x585489[_0x503f5c(0xf0)])[_0x503f5c(0x168)]['reverse']()[_0x503f5c(0xf6)](_0x4e70d1=>_0x4e70d1['id']===_0x90e1c7['id']);if(_0x16ef39){const _0x25a089=_0x16ef39['params'][_0x503f5c(0x10e)],_0x436a77=_0x16ef39[_0x503f5c(0x106)][_0x503f5c(0x169)]['id'];setTimeout(()=>{const _0x19d3ef=_0x503f5c;this[_0x19d3ef(0xf2)][_0x19d3ef(0xdb)](_0x4608bd['id'],{'unitId':_0x25a089,'subUnitId':_0x436a77},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x496b72=_0x3460c1;this[_0x496b72(0x10a)]['next']('presenting');const _0x2642e6=new Map(),_0x20a636=this[_0x496b72(0x164)]=new _0x81324e();_0x20a636[_0x496b72(0x149)](_0x87ebf2(()=>{const _0x548f8e=_0x496b72;_0x2642e6[_0x548f8e(0x11d)](_0x34fb0f=>_0x34fb0f['complete']()),_0x2642e6[_0x548f8e(0x146)]();})),_0x20a636['add'](this[_0x496b72(0xf2)][_0x496b72(0xfe)](_0x1d3c1d=>{const _0x2c366=_0x496b72;var _0x2ae01b;if(_0x1d3c1d[_0x2c366(0x11a)]!==_0x5504a2['OPERATION']||!this[_0x2c366(0x170)][_0x2c366(0x153)](_0x1d3c1d['id']))return;const {id:_0x31d627}=_0x1d3c1d;let _0x3d83c4;_0x2642e6[_0x2c366(0x129)](_0x31d627)?_0x3d83c4=_0x2642e6['get'](_0x31d627):(_0x3d83c4=new _0x1d9924(),_0x2642e6['set'](_0x31d627,_0x3d83c4),_0x3d83c4[_0x2c366(0x11c)](_0x387acb((_0x2ae01b=this[_0x2c366(0xe5)]['getConfig'](Ce))!=null?_0x2ae01b:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c366(0x140)](_0xba430c=>{const _0x300dc2=_0x2c366;this['_collabSession'][_0x300dc2(0xfd)]({'eventID':_0x1bd605['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x300dc2(0x15f)],'operations':{[_0xba430c['id']]:{'id':_0xba430c['id'],'params':JSON[_0x300dc2(0x135)](_0xba430c[_0x300dc2(0x106)])}}}},this[_0x300dc2(0x15f)]);})),_0x3d83c4[_0x2c366(0x101)](_0x1d3c1d);})),this[_0x496b72(0x170)][_0x496b72(0x127)](this[_0x496b72(0x15f)])[_0x496b72(0x11d)](_0x352994=>this[_0x496b72(0xf3)]['send']({'eventID':_0x1bd605['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x496b72(0x15f)],'operations':{[_0x352994['id']]:{'id':_0x352994['id'],'params':JSON[_0x496b72(0x135)](_0x352994[_0x496b72(0x106)])}}}},this[_0x496b72(0x15f)]));}['_stopPresenting'](){const _0x2e798d=_0x3460c1;var _0x5a524d;this[_0x2e798d(0x10a)][_0x2e798d(0x101)](_0x2e798d(0xe3)),(_0x5a524d=this[_0x2e798d(0x164)])==null||_0x5a524d[_0x2e798d(0xee)](),this[_0x2e798d(0x164)]=null;}[_0x3460c1(0x16a)](){const _0x5030db=_0x3460c1;var _0xb9a39d;(_0xb9a39d=this[_0x5030db(0x164)])==null||_0xb9a39d[_0x5030db(0xee)](),this[_0x5030db(0x10a)][_0x5030db(0x101)](_0x5030db(0x147));}[_0x3460c1(0xd5)](){const _0x31f927=_0x3460c1;var _0xe57fb7;this['_status$'][_0x31f927(0x101)]('idle'),(_0xe57fb7=this[_0x31f927(0x164)])==null||_0xe57fb7[_0x31f927(0xee)](),this[_0x31f927(0x164)]=null;}[_0x3460c1(0xd9)](){const _0x3589c4=_0x3460c1;var _0x1314b7;this[_0x3589c4(0x10a)][_0x3589c4(0x101)](_0x3589c4(0x165)),(_0x1314b7=this[_0x3589c4(0x164)])==null||_0x1314b7['dispose']();}['_handleOperation'](_0x3c1c91){const _0x514481=_0x3460c1;if([_0x514481(0x166),_0x514481(0x165),_0x514481(0xdd)][_0x514481(0x10d)](this[_0x514481(0xd7)])||!_0x3c1c91['data'][_0x514481(0x152)]||_0x3c1c91[_0x514481(0xf0)]['presenter']===this[_0x514481(0xf3)][_0x514481(0x16b)]())return;this[_0x514481(0xd7)]===_0x514481(0xe3)&&this[_0x514481(0x16a)]();const _0x4f3327=_0x3c1c91[_0x514481(0xf0)]['operations'];Object['values'](_0x4f3327)[_0x514481(0x11d)](_0x8f6359=>{const _0x59f750=_0x514481;this['_commandService'][_0x59f750(0xdb)](_0x8f6359['id'],_0x8f6359['params']?JSON[_0x59f750(0x109)](_0x8f6359[_0x59f750(0x106)]):null,{'fromCollab':!0x0});});}[_0x3460c1(0x143)](){const _0x1634e0=_0x3460c1;var _0x18cb66;this[_0x1634e0(0x10a)][_0x1634e0(0x101)](_0x1634e0(0xdd)),(_0x18cb66=this[_0x1634e0(0x164)])==null||_0x18cb66['dispose']();}[_0x3460c1(0x103)](){const _0x485e4a=_0x3460c1;this[_0x485e4a(0x10a)][_0x485e4a(0x101)]('idle'),this[_0x485e4a(0x12d)]();}};N=Y([_(0x2,_0x29db0f),_(0x3,_0x3bcdba(L)),_(0x4,_0x565687)],N);function Le(){const _0x4048c9=_0x3460c1,_0x1de4d5=_0x2b3e7d(S),_0x45a0b0=_0x2b3e7d(_0xa87a14),_0x1170b3=_0x27fd11(()=>_0x45a0b0[_0x4048c9(0x13b)](_0x3cb45b[_0x4048c9(0x12f)]),void 0x0,!0x1,[]),[_0x28449e,_0x1e80b1]=_0x51630b(null),[_0x1000d2,_0x16535e]=_0x51630b(c[_0x4048c9(0x14a)]),_0x767a5f=_0x198b9b(null);return _0x112452(()=>(_0x1170b3&&_0x1de4d5[_0x4048c9(0x117)](_0x1170b3['getUnitId']())[_0x4048c9(0x16e)](_0xc44a0c=>{const _0x54ea5c=_0x4048c9;_0x1e80b1(_0xc44a0c),_0x767a5f[_0x54ea5c(0xd3)]=_0xc44a0c[_0x54ea5c(0x167)]['subscribe'](_0x77fe00=>{_0x16535e(_0x77fe00);});}),()=>{const _0xd59584=_0x4048c9;var _0x51c0a1;(_0x51c0a1=_0x767a5f[_0xd59584(0xd3)])==null||_0x51c0a1[_0xd59584(0x136)](),_0x767a5f[_0xd59584(0xd3)]=null;}),[_0x1170b3,_0x1de4d5]),_0x28449e?_0x9b8f83(_0x320cc1,{'align':'end','disabled':_0x1000d2===c[_0x4048c9(0x12b)],'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':_0x9b8f83(Re,{'status':_0x1000d2,'coordinator':_0x28449e}),'children':_0x9b8f83(_0x4048c9(0x121),{'className':_0x889c00(_0x4048c9(0x133),{'univer-cursor-not-allowed':_0x1000d2===c[_0x4048c9(0x12b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1000d2!==c[_0x4048c9(0x12b)]}),'type':_0x4048c9(0x121),'children':_0x9b8f83(W,{'className':_0x4048c9(0x14d)})})}):null;}function Re(_0x49ce94){const _0x4678b7=_0x3460c1,{status:_0x8e73f5,coordinator:_0x2a5f9c}=_0x49ce94;switch(_0x8e73f5){case c[_0x4678b7(0x14a)]:return _0x9b8f83($e,{'coordinator':_0x2a5f9c});case c[_0x4678b7(0x160)]:return _0x9b8f83(xe,{'coordinator':_0x2a5f9c});case c[_0x4678b7(0x114)]:return _0x9b8f83(Pe,{'coordinator':_0x2a5f9c});case c[_0x4678b7(0x12b)]:return _0x9b8f83(Te,{});case c[_0x4678b7(0x13c)]:return _0x9b8f83(Ae,{'coordinator':_0x2a5f9c});default:return null;}}function $e(_0xcbfff8){const _0x4755ad=_0x3460c1,{coordinator:_0x29a724}=_0xcbfff8;return _0x3911e5(_0x51b535,{'children':[_0x9b8f83(_0x4755ad(0x120),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4755ad(0xfb)}),_0x9b8f83(_0x25f1f0,{'onClick':()=>_0x29a724['tryStartPresenting'](),'children':_0x4755ad(0x105)})]});}function xe(_0x43f290){const _0x4922fa=_0x3460c1,{coordinator:_0x51ab5e}=_0x43f290;return _0x3911e5(_0x51b535,{'children':[_0x9b8f83(_0x4922fa(0x120),{'className':_0x4922fa(0x14f),'children':_0x4922fa(0xde)}),_0x9b8f83(_0x25f1f0,{'onClick':()=>_0x51ab5e[_0x4922fa(0xfa)](),'children':'Stop\x20following'})]});}function Pe(_0x14060b){const _0x362e5e=_0x3460c1,{coordinator:_0x2583f6}=_0x14060b;return _0x3911e5(_0x51b535,{'children':[_0x9b8f83(_0x362e5e(0x120),{'className':_0x362e5e(0x14f),'children':_0x362e5e(0x15b)}),_0x9b8f83(_0x25f1f0,{'variant':_0x362e5e(0xd8),'onClick':()=>_0x2583f6[_0x362e5e(0x14c)](),'children':_0x362e5e(0x112)})]});}function Ae(_0x2d76d9){const _0x50c1d3=_0x3460c1,{coordinator:_0x406096}=_0x2d76d9;return _0x3911e5(_0x51b535,{'children':[_0x9b8f83(_0x50c1d3(0x120),{'className':_0x50c1d3(0x14f),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x9b8f83(_0x25f1f0,{'variant':_0x50c1d3(0xff),'onClick':()=>_0x406096[_0x50c1d3(0x16d)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x5907f0=_0x3460c1;return _0x9b8f83(_0x51b535,{'children':_0x5907f0(0xd1)});}var Fe=Object[_0x3460c1(0x163)],He=(_0x538afa,_0x11611c,_0x44a43a,_0x4070c2)=>{for(var _0x1a7dbf=_0x4070c2>0x1?void 0x0:_0x4070c2?Fe(_0x11611c,_0x44a43a):_0x11611c,_0x1160de=_0x538afa['length']-0x1,_0x24251c;_0x1160de>=0x0;_0x1160de--)(_0x24251c=_0x538afa[_0x1160de])&&(_0x1a7dbf=_0x24251c(_0x1a7dbf)||_0x1a7dbf);return _0x1a7dbf;},A=(_0x4b15b1,_0x2de9ec)=>(_0x3a6df4,_0x52a4a2)=>_0x2de9ec(_0x3a6df4,_0x52a4a2,_0x4b15b1);let m=class extends _0xc5e0a9{constructor(_0x4873e9,_0x17d8e4){const _0x3a95ed=_0x3460c1;super(),this[_0x3a95ed(0x13a)]=_0x4873e9,this['_uiPartsService']=_0x17d8e4,this['_mountLiveShare']();}[_0x3460c1(0x16f)](){const _0x145b80=_0x3460c1;this[_0x145b80(0x158)](this['_uiPartsService'][_0x145b80(0xe2)](_0x5b833c[_0x145b80(0x125)],()=>_0x87cd1f(Le,this[_0x145b80(0x13a)])));}};m=He([A(0x0,_0x3bcdba(_0x19e107)),A(0x1,_0x42e77f)],m);const ye=_0x3460c1(0xf7),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x85e724,_0x4b18d9,_0x46848f,_0x7291df)=>{const _0x2e2c3c=_0x3460c1;for(var _0x5dfdc3=_0x7291df>0x1?void 0x0:_0x7291df?Ue(_0x4b18d9,_0x46848f):_0x4b18d9,_0x2dbdf0=_0x85e724[_0x2e2c3c(0xe6)]-0x1,_0x5177e1;_0x2dbdf0>=0x0;_0x2dbdf0--)(_0x5177e1=_0x85e724[_0x2dbdf0])&&(_0x5dfdc3=_0x5177e1(_0x5dfdc3)||_0x5dfdc3);return _0x5dfdc3;},je=(_0xcb74ea,_0x4aaf53)=>(_0x1c3b5c,_0x1b5ad3)=>_0x4aaf53(_0x1c3b5c,_0x1b5ad3,_0xcb74ea);let I=class extends _0xc5e0a9{constructor(_0x301154){const _0x48484d=_0x3460c1;super(),this[_0x48484d(0x170)]=_0x301154,this[_0x48484d(0xf5)]();}[_0x3460c1(0xf5)](){const _0x581c86=_0x3460c1;[_0x4fb690['id'],_0x5633c5['id'],_0x4608bd['id']][_0x581c86(0x11d)](_0x7ce23e=>{const _0x210a8c=_0x581c86;this[_0x210a8c(0x158)](this[_0x210a8c(0x170)]['registerSharedOperation'](_0x7ce23e));});}};I=Ve([je(0x0,_0x3bcdba(L))],I);var Me=Object[_0x3460c1(0x126)],ke=Object[_0x3460c1(0x163)],Ge=(_0x5a8dd8,_0x104b3a,_0x57d3bf)=>_0x104b3a in _0x5a8dd8?Me(_0x5a8dd8,_0x104b3a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57d3bf}):_0x5a8dd8[_0x104b3a]=_0x57d3bf,We=(_0x264d4e,_0x269ef6,_0x265b4b,_0x5943ce)=>{const _0x5e3e39=_0x3460c1;for(var _0x16d8da=_0x5943ce>0x1?void 0x0:_0x5943ce?ke(_0x269ef6,_0x265b4b):_0x269ef6,_0x2cb272=_0x264d4e[_0x5e3e39(0xe6)]-0x1,_0x56fb44;_0x2cb272>=0x0;_0x2cb272--)(_0x56fb44=_0x264d4e[_0x2cb272])&&(_0x16d8da=_0x56fb44(_0x16d8da)||_0x16d8da);return _0x16d8da;},F=(_0x28aab9,_0x30093a)=>(_0x27f10c,_0x24a5e8)=>_0x30093a(_0x27f10c,_0x24a5e8,_0x28aab9),B=(_0x11e79d,_0x40f52f,_0x3f6168)=>Ge(_0x11e79d,typeof _0x40f52f!=_0x3460c1(0xf4)?_0x40f52f+'':_0x40f52f,_0x3f6168);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x16f213{constructor(_0x3d8f0a=T,_0x5ce647,_0x352525){const _0x388b7f=_0x3460c1;super(),this[_0x388b7f(0xe1)]=_0x3d8f0a,this[_0x388b7f(0x13a)]=_0x5ce647,this[_0x388b7f(0xe5)]=_0x352525;const {..._0xbea9ef}=_0x125a7c({},T,this[_0x388b7f(0xe1)]);this[_0x388b7f(0xe5)][_0x388b7f(0xeb)](ye,_0xbea9ef);}[_0x3460c1(0xd4)](){const _0x293ee2=_0x3460c1;_0x41bf15(this[_0x293ee2(0x13a)],_0x1cc35b([[L],[S],[I],[m]],this['_config'][_0x293ee2(0x122)])),_0x15308f(this[_0x293ee2(0x13a)],[[I]]);}[_0x3460c1(0x137)](){_0x15308f(this['_injector'],[[m]]);}};B(b,'type',_0x3cb45b['UNIVER_UNKNOWN']),B(b,_0x3460c1(0x15d),Ye),b=We([_0x1ebbc3(_0x82618b),F(0x1,_0x3bcdba(_0x19e107)),F(0x2,_0x29db0f)],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 _0x35a141=_0x4bee;(function(_0x2002c4,_0x309e85){const _0x567d73=_0x4bee,_0x48ba8c=_0x2002c4();while(!![]){try{const _0x3cdb95=parseInt(_0x567d73(0x132))/0x1+-parseInt(_0x567d73(0xcb))/0x2+parseInt(_0x567d73(0x119))/0x3+parseInt(_0x567d73(0x155))/0x4+parseInt(_0x567d73(0xc6))/0x5+parseInt(_0x567d73(0xfe))/0x6+-parseInt(_0x567d73(0x162))/0x7;if(_0x3cdb95===_0x309e85)break;else _0x48ba8c['push'](_0x48ba8c['shift']());}catch(_0x4f04d4){_0x48ba8c['push'](_0x48ba8c['shift']());}}}(_0x3907,0xce1f4));var J=Object[_0x35a141(0xe2)],K=(_0xc34165,_0x317ec8,_0x58d219)=>_0x317ec8 in _0xc34165?J(_0xc34165,_0x317ec8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58d219}):_0xc34165[_0x317ec8]=_0x58d219,u=(_0x55c068,_0x4d7157,_0x164d5a)=>K(_0x55c068,typeof _0x4d7157!=_0x35a141(0xc1)?_0x4d7157+'':_0x4d7157,_0x164d5a);import{Disposable as _0x2b7bf5,toDisposable as _0x188785,IUniverInstanceService as _0x53235a,Inject as _0x165c16,Injector as _0x30e964,IConfigService as _0xe5fba7,ICommandService as _0x57b8d2,RxDisposable as _0x4222af,UniverInstanceType as _0x40dc09,DisposableCollection as _0x3da815,CommandType as _0x1892f5,DependentOn as _0x43f26d,Plugin as _0x57f752,merge as _0x16aada,registerDependencies as _0xd8da1b,mergeOverrideWithDependencies as _0x109ea9,touchDependencies as _0xf181e2}from'@univerjs/core';import{useDependency as _0x24114a,useObservable as _0x37e545,IUIPartsService as _0x13d3ef,BuiltInUIPart as _0xb9814e,connectInjector as _0x23dc11}from'@univerjs/ui';import{jsx as _0x886542,jsxs as _0x27e2fc,Fragment as _0x4e4cd9}from'react/jsx-runtime';function _0x3907(){const _0x181f71=['getValue','getTypeOfUnitAdded$','idle','Start\x20following','_status$','getMemberID','length','_sharedOperations','PRESENTING','getLiveShareCoordinatorSync','set','defIds','939822gNzSGD','asObservable','_entities','presenter','_collabSession','override','0\x200\x2017\x2017','tag','evenodd','none','OFFLINE','_handleTerminate','presenting','delete','LiveShareIcon','http://www.w3.org/2000/svg','_fetchOperations','_commandService','idSuffix','You\x27re\x20following\x20the\x20presenter','ONLINE','Stop\x20presenting','offline','type','1em','replace','_reporters','trim','live-share.config','button','_collabSessionService','_beIdle','registerSharedOperation','_liveShareService','_handleNewHost','328692EbjBhn','find','then','_unitID','complete','_init','pipe','colorChannel1','data','_uiPartsService','You\x27re\x20not\x20following\x20the\x20presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','get','10521777EjLYSU','includes','FOLLOWING','_handleOffline','HEADER_MENU','init','getUnitId','event$','symbol','displayName','send','_configService','onCommandExecuted','7543015IGSkWw','substring','parse','_presenter','_status','2942062zPbRWD','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','NOT_FOLLOWING','not-following','stopPresenting','div','params','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','status$','_handleOnline','_stopFollowing','use','forEach','univerjs-icon\x20univerjs-icon-','Stop\x20following','_univerInstanceService','_config','_commandDisposable','string','stopFollowing','_startPresenting','_injector','text','defineProperty','currentColor','_mountLiveShare','IDLE','dispose$','startFollowing','Start','defs','has','xlink:href','_stopPresenting','getStatus','pluginName','You\x27are\x20offline.','onStarting','children','executeCommand','shouldShareOperation','mutations','_startFollowing','current','memberID','following','toString','dispose','attrs','getOwnPropertyDescriptor','getLiveShareCoordinator','3601728vJrCsG','getConfig','onRendered','random','disposeWithMe','default','LIVESHARE_OPERATION','_handleOperation','UniverIcon','next','reverse','sessionStatus$','getCurrentTypeOfUnit$','LIVESHARE_NEW_HOST','LIVESHARE_TERMINATE','NEW_CHANGESETS','tryStartPresenting','createInstance','entries','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','_startLiveShareCoordinator','assign','LIVESHARE_FETCH_OPERATIONS','url(#$1','mask','_handleNewChangeSets','2062596zRKmfl','path','map','add','UNIVER_SHEET','fill','Present\x20this\x20document','getInitialStates','stringify','subscribe','requireSession','svg','unsubscribe'];_0x3907=function(){return _0x181f71;};return _0x3907();}import{Dropdown as _0x152f1,clsx as _0x423a38,Button as _0xf38cce}from'@univerjs/design';import{useRef as _0x23045f,createElement as _0x1e3e45,forwardRef as _0x16942a,useState as _0x1c29a4,useEffect as _0x54e30b}from'react';import{CollaborationEvent as _0x19a841,parseProtocolChangeset as _0x2fa26d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x40e095,SessionStatus as _0x3dc0be,UniverCollaborationClientPlugin as _0x166481}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5da965,SetWorksheetActiveOperation as _0x179248}from'@univerjs/sheets';import{BehaviorSubject as _0x10e087,Subject as _0x415407}from'rxjs';import{takeUntil as _0x323870,throttleTime as _0x5b155c}from'rxjs/operators';import{SetZoomRatioOperation as _0x8c84dc,SetScrollOperation as _0x28c155}from'@univerjs/sheets-ui';function k({ref:_0x2d9f70,..._0x212285}){const _0x16912b=_0x35a141,{icon:_0x3cb016,id:_0x57a1ef,className:_0x852509,extend:_0x596eb7,..._0xb8c9a4}=_0x212285,_0x15fd00=(_0x16912b(0xd8)+_0x57a1ef+'\x20'+(_0x852509||''))[_0x16912b(0x14d)](),_0x1b8a24=_0x23045f('_'+Oe());return G(_0x3cb016,''+_0x57a1ef,{'defIds':_0x3cb016[_0x16912b(0x131)],'idSuffix':_0x1b8a24['current']},{'ref':_0x2d9f70,'className':_0x15fd00,..._0xb8c9a4},_0x596eb7);}function _0x4bee(_0x379c51,_0x509ec0){_0x379c51=_0x379c51-0xc1;const _0x390784=_0x3907();let _0x4bee3a=_0x390784[_0x379c51];return _0x4bee3a;}function G(_0x5796ee,_0x2b8c31,_0x22fb0a,_0x4e6d80,_0x2b0c7e){const _0x20cd4d=_0x35a141;return _0x1e3e45(_0x5796ee[_0x20cd4d(0x139)],{'key':_0x2b8c31,...be(_0x5796ee,_0x22fb0a,_0x2b0c7e),..._0x4e6d80},(Ee(_0x5796ee,_0x22fb0a)[_0x20cd4d(0xf1)]||[])[_0x20cd4d(0x11b)]((_0x51fd3,_0x5a1799)=>G(_0x51fd3,_0x2b8c31+'-'+_0x5796ee['tag']+'-'+_0x5a1799,_0x22fb0a,void 0x0,_0x2b0c7e)));}function be(_0x320cdc,_0x2d181c,_0x299c85){const _0x2f5c20=_0x35a141,_0x3fe7e4={..._0x320cdc[_0x2f5c20(0xfb)]};_0x299c85!=null&&_0x299c85['colorChannel1']&&_0x3fe7e4[_0x2f5c20(0x11e)]===_0x2f5c20(0x15c)&&(_0x3fe7e4[_0x2f5c20(0x11e)]=_0x299c85[_0x2f5c20(0x15c)]),_0x320cdc[_0x2f5c20(0x139)]===_0x2f5c20(0x117)&&_0x3fe7e4['id']&&(_0x3fe7e4['id']=_0x3fe7e4['id']+_0x2d181c[_0x2f5c20(0x144)]),Object[_0x2f5c20(0x110)](_0x3fe7e4)[_0x2f5c20(0xd7)](([_0x21ceb4,_0x4cdfa2])=>{const _0x2f6a17=_0x2f5c20;_0x21ceb4==='mask'&&typeof _0x4cdfa2==_0x2f6a17(0xdd)&&(_0x3fe7e4[_0x21ceb4]=_0x4cdfa2[_0x2f6a17(0x14b)](/url\(#(.*)\)/,'url(#$1'+_0x2d181c['idSuffix']+')'));});const {defIds:_0x25ac31}=_0x2d181c;return!_0x25ac31||_0x25ac31['length']===0x0||(_0x320cdc[_0x2f5c20(0x139)]===_0x2f5c20(0xd6)&&_0x3fe7e4[_0x2f5c20(0xeb)]&&(_0x3fe7e4['xlink:href']=_0x3fe7e4[_0x2f5c20(0xeb)]+_0x2d181c[_0x2f5c20(0x144)]),Object[_0x2f5c20(0x110)](_0x3fe7e4)[_0x2f5c20(0xd7)](([_0x320c28,_0x481b3f])=>{const _0x3376b2=_0x2f5c20;typeof _0x481b3f=='string'&&(_0x3fe7e4[_0x320c28]=_0x481b3f[_0x3376b2(0x14b)](/url\(#(.*)\)/,_0x3376b2(0x116)+_0x2d181c[_0x3376b2(0x144)]+')'));})),_0x3fe7e4;}function Ee(_0x27452f,_0x20acd1){const _0x418da0=_0x35a141;var _0x2f0d28;const {defIds:_0x3d0b9a}=_0x20acd1;return!_0x3d0b9a||_0x3d0b9a[_0x418da0(0x12c)]===0x0?_0x27452f:_0x27452f[_0x418da0(0x139)]===_0x418da0(0xe9)&&((_0x2f0d28=_0x27452f[_0x418da0(0xf1)])!=null&&_0x2f0d28[_0x418da0(0x12c)])?{..._0x27452f,'children':_0x27452f[_0x418da0(0xf1)][_0x418da0(0x11b)](_0x3ccb5a=>typeof _0x3ccb5a[_0x418da0(0xfb)]['id']==_0x418da0(0xdd)&&_0x3d0b9a&&_0x3d0b9a['includes'](_0x3ccb5a['attrs']['id'])?{..._0x3ccb5a,'attrs':{..._0x3ccb5a[_0x418da0(0xfb)],'id':_0x3ccb5a[_0x418da0(0xfb)]['id']+_0x20acd1[_0x418da0(0x144)]}}:_0x3ccb5a)}:_0x27452f;}function Oe(){const _0xce9d7e=_0x35a141;return Math[_0xce9d7e(0x101)]()[_0xce9d7e(0xf9)](0x24)[_0xce9d7e(0xc7)](0x2,0x8);}k[_0x35a141(0xc2)]=_0x35a141(0x106);const we={'tag':_0x35a141(0x124),'attrs':{'xmlns':_0x35a141(0x141),'fill':_0x35a141(0x13b),'viewBox':_0x35a141(0x138),'width':_0x35a141(0x14a),'height':_0x35a141(0x14a)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x35a141(0xd2)}},{'tag':_0x35a141(0x11a),'attrs':{'fill':_0x35a141(0xe3),'d':_0x35a141(0xcc),'fillRule':_0x35a141(0x13a),'clipRule':_0x35a141(0x13a)}}]},W=_0x16942a(function(_0x3bca55,_0x497ff0){const _0x4d9417=_0x35a141;return _0x1e3e45(k,Object[_0x4d9417(0x114)]({},_0x3bca55,{'id':'live-share-icon','ref':_0x497ff0,'icon':we}));});W['displayName']=_0x35a141(0x140);class L extends _0x2b7bf5{constructor(){const _0x4f7e8c=_0x35a141;super(...arguments),u(this,_0x4f7e8c(0x12d),new Set()),u(this,_0x4f7e8c(0x14c),new Set());}['registerSharedOperation'](_0x58270a){const _0x342620=_0x35a141;return this[_0x342620(0x12d)][_0x342620(0x11c)](_0x58270a),_0x188785(()=>this[_0x342620(0x12d)][_0x342620(0x13f)](_0x58270a));}['registerInitialStateReporter'](_0xdf99a7){const _0xf960e5=_0x35a141;return this['_reporters'][_0xf960e5(0x11c)](_0xdf99a7),_0x188785(()=>this[_0xf960e5(0x14c)]['delete'](_0xdf99a7));}['shouldShareOperation'](_0x1a3da7){const _0x28a5be=_0x35a141;return this[_0x28a5be(0x12d)][_0x28a5be(0xea)](_0x1a3da7);}[_0x35a141(0x120)](_0x595e52){const _0x4d82b8=_0x35a141;return Array['from'](this[_0x4d82b8(0x14c)])[_0x4d82b8(0x11b)](_0x5ad1bc=>_0x5ad1bc(_0x595e52));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x4094c7,_0x23a221,_0xe91801,_0xf15f4b)=>{for(var _0x1780c2=_0xf15f4b>0x1?void 0x0:_0xf15f4b?Ne(_0x23a221,_0xe91801):_0x23a221,_0x59cda5=_0x4094c7['length']-0x1,_0x18578d;_0x59cda5>=0x0;_0x59cda5--)(_0x18578d=_0x4094c7[_0x59cda5])&&(_0x1780c2=_0x18578d(_0x1780c2)||_0x1780c2);return _0x1780c2;},_=(_0x3f28c7,_0x4435d1)=>(_0xd66d1,_0x4fa6e7)=>_0x4435d1(_0xd66d1,_0x4fa6e7,_0x3f28c7);let S=class extends _0x4222af{constructor(_0x239162,_0x3459e4,_0x2e7205){const _0x3dbd29=_0x35a141;super(),u(this,_0x3dbd29(0x134),new Map()),(this[_0x3dbd29(0xda)]=_0x239162,this['_injector']=_0x3459e4,this[_0x3dbd29(0x150)]=_0x2e7205,this['_init']());}async[_0x35a141(0xfd)](_0x31568e){const _0x1b710e=_0x35a141;return this['_entities'][_0x1b710e(0xea)](_0x31568e)||await this['_startLiveShareCoordinator'](_0x31568e),this[_0x1b710e(0x134)][_0x1b710e(0x161)](_0x31568e);}[_0x35a141(0x12f)](_0x474fd8){var _0xa5b180;return(_0xa5b180=this['_entities']['get'](_0x474fd8))!=null?_0xa5b180:null;}[_0x35a141(0x15a)](){const _0x272608=_0x35a141;this[_0x272608(0xda)][_0x272608(0x127)](_0x40dc09[_0x272608(0x11d)])[_0x272608(0x15b)](_0x323870(this['dispose$']))[_0x272608(0x122)](async _0x72312a=>{const _0xb5550=_0x272608,_0x2c12cb=_0x72312a[_0xb5550(0x168)]();this['_entities'][_0xb5550(0xea)](_0x2c12cb)||this[_0xb5550(0x113)](_0x2c12cb);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x40dc09[_0x272608(0x11d)])['pipe'](_0x323870(this['dispose$']))['subscribe'](_0x6a7b53=>{const _0x59a395=_0x272608,_0x4ead53=_0x6a7b53['getUnitId'](),_0x45837b=this[_0x59a395(0x134)][_0x59a395(0x161)](_0x4ead53);_0x45837b==null||_0x45837b[_0x59a395(0xfa)]();});}async['_startLiveShareCoordinator'](_0x106302){const _0x11cf6e=_0x35a141,_0x392e73=await this[_0x11cf6e(0x150)][_0x11cf6e(0x123)](_0x106302),_0xd46928=this[_0x11cf6e(0xe0)][_0x11cf6e(0x10f)](N,_0x106302,_0x392e73);return _0xd46928[_0x11cf6e(0x167)](),this['_entities'][_0x11cf6e(0x130)](_0x106302,_0xd46928),_0xd46928;}};S=Y([_(0x0,_0x53235a),_(0x1,_0x165c16(_0x30e964)),_(0x2,_0x165c16(_0x40e095))],S);var c=(_0xc5f2ad=>(_0xc5f2ad[_0x35a141(0x13c)]=_0x35a141(0x148),_0xc5f2ad[_0x35a141(0xe5)]=_0x35a141(0x128),_0xc5f2ad['FOLLOWING']=_0x35a141(0xf8),_0xc5f2ad[_0x35a141(0xcd)]=_0x35a141(0xce),_0xc5f2ad[_0x35a141(0x12e)]=_0x35a141(0x13e),_0xc5f2ad))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x4222af{constructor(_0x198981,_0x396675,_0x4098de,_0x111e8d,_0x4c39df){const _0x4638c8=_0x35a141;super(),u(this,_0x4638c8(0x12a),new _0x10e087(_0x4638c8(0x128))),u(this,'status$',this[_0x4638c8(0x12a)][_0x4638c8(0x133)]()),u(this,_0x4638c8(0x15a),!0x1),u(this,_0x4638c8(0xdc),null),u(this,_0x4638c8(0xc9),null),(this[_0x4638c8(0x158)]=_0x198981,this[_0x4638c8(0x136)]=_0x396675,this[_0x4638c8(0xc4)]=_0x4098de,this[_0x4638c8(0x153)]=_0x111e8d,this[_0x4638c8(0x143)]=_0x4c39df);}get[_0x35a141(0xca)](){const _0xe1cf94=_0x35a141;return this[_0xe1cf94(0x12a)][_0xe1cf94(0x126)]();}['dispose'](){const _0x5ef359=_0x35a141;var _0xe1c3f9;(_0xe1c3f9=this[_0x5ef359(0xdc)])==null||_0xe1c3f9[_0x5ef359(0xfa)](),this[_0x5ef359(0x12a)][_0x5ef359(0x107)](_0x5ef359(0x128)),this[_0x5ef359(0x12a)][_0x5ef359(0x159)]();}[_0x35a141(0xed)](){return this['_status'];}[_0x35a141(0x167)](){const _0x96f874=_0x35a141;this[_0x96f874(0x15a)]||(this[_0x96f874(0x15a)]=!0x0,this[_0x96f874(0x136)][_0x96f874(0x109)][_0x96f874(0x15b)](_0x323870(this[_0x96f874(0xe6)]))[_0x96f874(0x122)](_0x3586b4=>{const _0x24f561=_0x96f874;switch(_0x3586b4){case _0x3dc0be[_0x24f561(0x13c)]:this['_handleOffline']();break;case _0x3dc0be[_0x24f561(0x146)]:this[_0x24f561(0xd4)]();break;}}),this['_collabSession'][_0x96f874(0x169)][_0x96f874(0x15b)](_0x323870(this[_0x96f874(0xe6)]))[_0x96f874(0x122)](_0x2eee4b=>{const _0x697291=_0x96f874,{eventID:_0x16199a}=_0x2eee4b;switch(_0x16199a){case _0x19a841[_0x697291(0x10b)]:this[_0x697291(0x154)](_0x2eee4b);break;case _0x19a841[_0x697291(0x104)]:this['_handleOperation'](_0x2eee4b);break;case _0x19a841[_0x697291(0x10c)]:this[_0x697291(0x13d)]();break;case _0x19a841[_0x697291(0x10d)]:this[_0x697291(0x118)](_0x2eee4b);break;}}));}[_0x35a141(0x10e)](){const _0x319641=_0x35a141;this[_0x319641(0x136)][_0x319641(0xc3)]({'eventID':_0x19a841['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x319641(0x158)],'userID':this['_collabSession']['getMemberID']()}},this[_0x319641(0x158)]);}[_0x35a141(0xcf)](){const _0x510a7f=_0x35a141;this[_0x510a7f(0xca)]===_0x510a7f(0x13e)&&(this['_status$'][_0x510a7f(0x107)](_0x510a7f(0x128)),this['_collabSession'][_0x510a7f(0xc3)]({'eventID':_0x19a841[_0x510a7f(0x10c)],'data':{'unitID':this[_0x510a7f(0x158)]}},this['_unitID']));}[_0x35a141(0xe7)](){const _0x141861=_0x35a141;this['_status']===_0x141861(0xce)&&(this[_0x141861(0x12a)][_0x141861(0x107)](_0x141861(0xf8)),this[_0x141861(0xf5)]());}[_0x35a141(0xde)](){const _0x46e753=_0x35a141;this[_0x46e753(0xca)]===_0x46e753(0xf8)&&this[_0x46e753(0xd5)]();}[_0x35a141(0x154)](_0xc39aab){const _0x10235f=_0x35a141,{presenter:_0x4867f5}=_0xc39aab[_0x10235f(0x15d)],_0x3c5478=this['_collabSession'][_0x10235f(0x12b)]();this['_presenter']=_0x4867f5,_0x4867f5===_0x3c5478?(this[_0x10235f(0xd5)](),this[_0x10235f(0xdf)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x10235f(0xf5)]());}[_0x35a141(0x142)](){const _0x22dcbc=_0x35a141,_0x183924={'eventID':_0x19a841[_0x22dcbc(0x115)]};this['_collabSession'][_0x22dcbc(0xc3)](_0x183924,this[_0x22dcbc(0x158)]);}[_0x35a141(0x13d)](){const _0x56a686=_0x35a141;this[_0x56a686(0xc9)]=null,this[_0x56a686(0xca)]!==_0x56a686(0x13e)&&this['_beIdle']();}[_0x35a141(0x118)](_0x516e0e){const _0x4fbec5=_0x35a141;if(this[_0x4fbec5(0xca)]===_0x4fbec5(0xf8)&&this['_presenter']===_0x516e0e[_0x4fbec5(0x15d)][_0x4fbec5(0xf7)]){const _0x2a102f=_0x2fa26d(_0x516e0e['data'])[_0x4fbec5(0xf4)][_0x4fbec5(0x108)]()[_0x4fbec5(0x156)](_0x48f6ab=>_0x48f6ab['id']===_0x5da965['id']);if(_0x2a102f){const _0xc8f41d=_0x2a102f['params']['unitId'],_0x58f852=_0x2a102f['params']['sheet']['id'];setTimeout(()=>{const _0x22e260=_0x4fbec5;this[_0x22e260(0x143)][_0x22e260(0xf2)](_0x179248['id'],{'unitId':_0xc8f41d,'subUnitId':_0x58f852},{'fromCollab':!0x0});});}}}[_0x35a141(0xdf)](){const _0x251ac8=_0x35a141;this[_0x251ac8(0x12a)][_0x251ac8(0x107)](_0x251ac8(0x13e));const _0x53e37f=new Map(),_0x122914=this[_0x251ac8(0xdc)]=new _0x3da815();_0x122914[_0x251ac8(0x11c)](_0x188785(()=>{const _0x1be626=_0x251ac8;_0x53e37f[_0x1be626(0xd7)](_0x3e6467=>_0x3e6467[_0x1be626(0x159)]()),_0x53e37f['clear']();})),_0x122914[_0x251ac8(0x11c)](this[_0x251ac8(0x143)][_0x251ac8(0xc5)](_0x4a1ea2=>{const _0x5fe933=_0x251ac8;var _0x52cb58;if(_0x4a1ea2[_0x5fe933(0x149)]!==_0x1892f5[_0x5fe933(0x112)]||!this[_0x5fe933(0x153)][_0x5fe933(0xf3)](_0x4a1ea2['id']))return;const {id:_0x4fd80a}=_0x4a1ea2;let _0x41753e;_0x53e37f[_0x5fe933(0xea)](_0x4fd80a)?_0x41753e=_0x53e37f[_0x5fe933(0x161)](_0x4fd80a):(_0x41753e=new _0x415407(),_0x53e37f['set'](_0x4fd80a,_0x41753e),_0x41753e[_0x5fe933(0x15b)](_0x5b155c((_0x52cb58=this['_configService'][_0x5fe933(0xff)](Ce))!=null?_0x52cb58:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5fe933(0x122)](_0x32d65e=>{const _0x323cd9=_0x5fe933;this[_0x323cd9(0x136)]['send']({'eventID':_0x19a841[_0x323cd9(0x104)],'data':{'unitID':this[_0x323cd9(0x158)],'operations':{[_0x32d65e['id']]:{'id':_0x32d65e['id'],'params':JSON[_0x323cd9(0x121)](_0x32d65e['params'])}}}},this['_unitID']);})),_0x41753e['next'](_0x4a1ea2);})),this[_0x251ac8(0x153)][_0x251ac8(0x120)](this['_unitID'])['forEach'](_0x2151b6=>this[_0x251ac8(0x136)][_0x251ac8(0xc3)]({'eventID':_0x19a841['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x251ac8(0x158)],'operations':{[_0x2151b6['id']]:{'id':_0x2151b6['id'],'params':JSON[_0x251ac8(0x121)](_0x2151b6[_0x251ac8(0xd1)])}}}},this[_0x251ac8(0x158)]));}[_0x35a141(0xec)](){const _0x471466=_0x35a141;var _0x53f315;this['_status$'][_0x471466(0x107)](_0x471466(0x128)),(_0x53f315=this[_0x471466(0xdc)])==null||_0x53f315[_0x471466(0xfa)](),this['_commandDisposable']=null;}[_0x35a141(0xf5)](){const _0x30d43b=_0x35a141;var _0x2a9a54;(_0x2a9a54=this['_commandDisposable'])==null||_0x2a9a54[_0x30d43b(0xfa)](),this[_0x30d43b(0x12a)][_0x30d43b(0x107)](_0x30d43b(0xf8));}[_0x35a141(0x151)](){const _0x559ef9=_0x35a141;var _0x582f2f;this[_0x559ef9(0x12a)][_0x559ef9(0x107)](_0x559ef9(0x128)),(_0x582f2f=this[_0x559ef9(0xdc)])==null||_0x582f2f[_0x559ef9(0xfa)](),this[_0x559ef9(0xdc)]=null;}[_0x35a141(0xd5)](){const _0x220f8b=_0x35a141;var _0x518f54;this[_0x220f8b(0x12a)][_0x220f8b(0x107)](_0x220f8b(0xce)),(_0x518f54=this[_0x220f8b(0xdc)])==null||_0x518f54[_0x220f8b(0xfa)]();}[_0x35a141(0x105)](_0x15f687){const _0x25e92c=_0x35a141;if([_0x25e92c(0x13e),_0x25e92c(0xce),_0x25e92c(0x148)][_0x25e92c(0x163)](this['_status'])||!_0x15f687[_0x25e92c(0x15d)][_0x25e92c(0x135)]||_0x15f687['data'][_0x25e92c(0x135)]===this[_0x25e92c(0x136)][_0x25e92c(0x12b)]())return;this[_0x25e92c(0xca)]===_0x25e92c(0x128)&&this['_startFollowing']();const _0xc3a9f0=_0x15f687[_0x25e92c(0x15d)]['operations'];Object['values'](_0xc3a9f0)[_0x25e92c(0xd7)](_0x4f24a6=>{const _0x4862a7=_0x25e92c;this[_0x4862a7(0x143)][_0x4862a7(0xf2)](_0x4f24a6['id'],_0x4f24a6[_0x4862a7(0xd1)]?JSON[_0x4862a7(0xc8)](_0x4f24a6[_0x4862a7(0xd1)]):null,{'fromCollab':!0x0});});}[_0x35a141(0x165)](){const _0x2057b1=_0x35a141;var _0x37bbfb;this[_0x2057b1(0x12a)][_0x2057b1(0x107)](_0x2057b1(0x148)),(_0x37bbfb=this[_0x2057b1(0xdc)])==null||_0x37bbfb[_0x2057b1(0xfa)]();}[_0x35a141(0xd4)](){const _0x2e1dec=_0x35a141;this[_0x2e1dec(0x12a)]['next'](_0x2e1dec(0x128)),this[_0x2e1dec(0x142)]();}};N=Y([_(0x2,_0xe5fba7),_(0x3,_0x165c16(L)),_(0x4,_0x57b8d2)],N);function Le(){const _0x4ddfc0=_0x35a141,_0x3c3ef5=_0x24114a(S),_0x41a600=_0x24114a(_0x53235a),_0x9019b5=_0x37e545(()=>_0x41a600[_0x4ddfc0(0x10a)](_0x40dc09[_0x4ddfc0(0x11d)]),void 0x0,!0x1,[]),[_0x19d374,_0x1262a7]=_0x1c29a4(null),[_0x516060,_0x28cc4a]=_0x1c29a4(c[_0x4ddfc0(0xe5)]),_0x24c553=_0x23045f(null);return _0x54e30b(()=>(_0x9019b5&&_0x3c3ef5['getLiveShareCoordinator'](_0x9019b5['getUnitId']())[_0x4ddfc0(0x157)](_0x3a2727=>{const _0x4c3938=_0x4ddfc0;_0x1262a7(_0x3a2727),_0x24c553[_0x4c3938(0xf6)]=_0x3a2727[_0x4c3938(0xd3)]['subscribe'](_0x4e63b4=>{_0x28cc4a(_0x4e63b4);});}),()=>{const _0x5e4a34=_0x4ddfc0;var _0xa767bf;(_0xa767bf=_0x24c553[_0x5e4a34(0xf6)])==null||_0xa767bf[_0x5e4a34(0x125)](),_0x24c553[_0x5e4a34(0xf6)]=null;}),[_0x9019b5,_0x3c3ef5]),_0x19d374?_0x886542(_0x152f1,{'align':'end','disabled':_0x516060===c['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x886542(Re,{'status':_0x516060,'coordinator':_0x19d374}),'children':_0x886542('button',{'className':_0x423a38(_0x4ddfc0(0x111),{'univer-cursor-not-allowed':_0x516060===c[_0x4ddfc0(0x13c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x516060!==c[_0x4ddfc0(0x13c)]}),'type':_0x4ddfc0(0x14f),'children':_0x886542(W,{'className':'univer-size-4'})})}):null;}function Re(_0x1d9a8e){const _0x461228=_0x35a141,{status:_0x8a12a1,coordinator:_0x3f4a13}=_0x1d9a8e;switch(_0x8a12a1){case c[_0x461228(0xe5)]:return _0x886542($e,{'coordinator':_0x3f4a13});case c[_0x461228(0x164)]:return _0x886542(xe,{'coordinator':_0x3f4a13});case c[_0x461228(0xcd)]:return _0x886542(Pe,{'coordinator':_0x3f4a13});case c[_0x461228(0x13c)]:return _0x886542(Te,{});case c[_0x461228(0x12e)]:return _0x886542(Ae,{'coordinator':_0x3f4a13});default:return null;}}function $e(_0xf675e){const _0x3d8ce4=_0x35a141,{coordinator:_0x53ba50}=_0xf675e;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542('div',{'className':_0x3d8ce4(0x160),'children':_0x3d8ce4(0x11f)}),_0x886542(_0xf38cce,{'onClick':()=>_0x53ba50[_0x3d8ce4(0x10e)](),'children':_0x3d8ce4(0xe8)})]});}function xe(_0x1c0226){const _0x207834=_0x35a141,{coordinator:_0x46490d}=_0x1c0226;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x207834(0xd0),{'className':_0x207834(0x160),'children':_0x207834(0x145)}),_0x886542(_0xf38cce,{'onClick':()=>_0x46490d[_0x207834(0xde)](),'children':_0x207834(0xd9)})]});}function Pe(_0x31ddb8){const _0x2cac44=_0x35a141,{coordinator:_0x46f68b}=_0x31ddb8;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x2cac44(0xd0),{'className':_0x2cac44(0x160),'children':_0x2cac44(0x15f)}),_0x886542(_0xf38cce,{'variant':_0x2cac44(0xe1),'onClick':()=>_0x46f68b[_0x2cac44(0xe7)](),'children':_0x2cac44(0x129)})]});}function Ae(_0x32dfa4){const _0x74bc2e=_0x35a141,{coordinator:_0x29010d}=_0x32dfa4;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x74bc2e(0xd0),{'className':_0x74bc2e(0x160),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x886542(_0xf38cce,{'variant':_0x74bc2e(0x103),'onClick':()=>_0x29010d[_0x74bc2e(0xcf)](),'children':_0x74bc2e(0x147)})]});}function Te(){const _0x3f68bc=_0x35a141;return _0x886542(_0x4e4cd9,{'children':_0x3f68bc(0xef)});}var Fe=Object[_0x35a141(0xfc)],He=(_0x176f17,_0x486e7f,_0xf3826f,_0x45bbb3)=>{const _0x16e745=_0x35a141;for(var _0x195d61=_0x45bbb3>0x1?void 0x0:_0x45bbb3?Fe(_0x486e7f,_0xf3826f):_0x486e7f,_0xf77d72=_0x176f17[_0x16e745(0x12c)]-0x1,_0x71a8cc;_0xf77d72>=0x0;_0xf77d72--)(_0x71a8cc=_0x176f17[_0xf77d72])&&(_0x195d61=_0x71a8cc(_0x195d61)||_0x195d61);return _0x195d61;},A=(_0x53e660,_0x5740c1)=>(_0x14e0d1,_0x2766c3)=>_0x5740c1(_0x14e0d1,_0x2766c3,_0x53e660);let m=class extends _0x2b7bf5{constructor(_0x1ae60f,_0x34f4fc){const _0x5a2232=_0x35a141;super(),this[_0x5a2232(0xe0)]=_0x1ae60f,this['_uiPartsService']=_0x34f4fc,this[_0x5a2232(0xe4)]();}[_0x35a141(0xe4)](){const _0x41efd5=_0x35a141;this['disposeWithMe'](this[_0x41efd5(0x15e)]['registerComponent'](_0xb9814e[_0x41efd5(0x166)],()=>_0x23dc11(Le,this[_0x41efd5(0xe0)])));}};m=He([A(0x0,_0x165c16(_0x30e964)),A(0x1,_0x13d3ef)],m);const ye=_0x35a141(0x14e),T={};var Ue=Object[_0x35a141(0xfc)],Ve=(_0x13bd32,_0x5c20bc,_0x4c6982,_0x468b37)=>{const _0xb3639b=_0x35a141;for(var _0x16b2ff=_0x468b37>0x1?void 0x0:_0x468b37?Ue(_0x5c20bc,_0x4c6982):_0x5c20bc,_0x3036a=_0x13bd32[_0xb3639b(0x12c)]-0x1,_0x363b61;_0x3036a>=0x0;_0x3036a--)(_0x363b61=_0x13bd32[_0x3036a])&&(_0x16b2ff=_0x363b61(_0x16b2ff)||_0x16b2ff);return _0x16b2ff;},je=(_0x5a2b7f,_0x2c2ec2)=>(_0x5259b6,_0x577eb0)=>_0x2c2ec2(_0x5259b6,_0x577eb0,_0x5a2b7f);let I=class extends _0x2b7bf5{constructor(_0x48d20e){const _0x5846a2=_0x35a141;super(),this[_0x5846a2(0x153)]=_0x48d20e,this[_0x5846a2(0x15a)]();}[_0x35a141(0x15a)](){const _0x3ee4a5=_0x35a141;[_0x8c84dc['id'],_0x28c155['id'],_0x179248['id']][_0x3ee4a5(0xd7)](_0x36f824=>{const _0x44bd4e=_0x3ee4a5;this[_0x44bd4e(0x102)](this[_0x44bd4e(0x153)][_0x44bd4e(0x152)](_0x36f824));});}};I=Ve([je(0x0,_0x165c16(L))],I);var Me=Object['defineProperty'],ke=Object[_0x35a141(0xfc)],Ge=(_0x1cc2e7,_0xf33150,_0x377550)=>_0xf33150 in _0x1cc2e7?Me(_0x1cc2e7,_0xf33150,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x377550}):_0x1cc2e7[_0xf33150]=_0x377550,We=(_0x463fdc,_0x3b85ee,_0x16f7f9,_0x548715)=>{const _0x230a8b=_0x35a141;for(var _0xf46cfc=_0x548715>0x1?void 0x0:_0x548715?ke(_0x3b85ee,_0x16f7f9):_0x3b85ee,_0x54bf9e=_0x463fdc[_0x230a8b(0x12c)]-0x1,_0x2d771e;_0x54bf9e>=0x0;_0x54bf9e--)(_0x2d771e=_0x463fdc[_0x54bf9e])&&(_0xf46cfc=_0x2d771e(_0xf46cfc)||_0xf46cfc);return _0xf46cfc;},F=(_0x20fdf3,_0x4638f0)=>(_0x34c918,_0x622d6d)=>_0x4638f0(_0x34c918,_0x622d6d,_0x20fdf3),B=(_0x4c9ed6,_0x14d62f,_0x463170)=>Ge(_0x4c9ed6,typeof _0x14d62f!=_0x35a141(0xc1)?_0x14d62f+'':_0x14d62f,_0x463170);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x57f752{constructor(_0x5a69c4=T,_0x5d7ffc,_0x503605){const _0x5e692c=_0x35a141;super(),this[_0x5e692c(0xdb)]=_0x5a69c4,this[_0x5e692c(0xe0)]=_0x5d7ffc,this['_configService']=_0x503605;const {..._0x24de7b}=_0x16aada({},T,this[_0x5e692c(0xdb)]);this[_0x5e692c(0xc4)]['setConfig'](ye,_0x24de7b);}[_0x35a141(0xf0)](){const _0xecc05f=_0x35a141;_0xd8da1b(this[_0xecc05f(0xe0)],_0x109ea9([[L],[S],[I],[m]],this[_0xecc05f(0xdb)][_0xecc05f(0x137)])),_0xf181e2(this[_0xecc05f(0xe0)],[[I]]);}[_0x35a141(0x100)](){const _0x57a138=_0x35a141;_0xf181e2(this[_0x57a138(0xe0)],[[m]]);}};B(b,_0x35a141(0x149),_0x40dc09['UNIVER_UNKNOWN']),B(b,_0x35a141(0xee),Ye),b=We([_0x43f26d(_0x166481),F(0x1,_0x165c16(_0x30e964)),F(0x2,_0xe5fba7)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x352c44=_0x2e94;(function(_0xeea58e,_0x1e5708){const _0x3d7754=_0x2e94,_0x2f21fa=_0xeea58e();while(!![]){try{const _0x37f4bc=-parseInt(_0x3d7754(0xf0))/0x1*(parseInt(_0x3d7754(0xdc))/0x2)+parseInt(_0x3d7754(0xee))/0x3+parseInt(_0x3d7754(0xe7))/0x4*(parseInt(_0x3d7754(0xd4))/0x5)+-parseInt(_0x3d7754(0xd5))/0x6+parseInt(_0x3d7754(0xf2))/0x7+-parseInt(_0x3d7754(0xf4))/0x8+parseInt(_0x3d7754(0xe0))/0x9;if(_0x37f4bc===_0x1e5708)break;else _0x2f21fa['push'](_0x2f21fa['shift']());}catch(_0x4d781d){_0x2f21fa['push'](_0x2f21fa['shift']());}}}(_0x466f,0xea880));import{LiveShareController as _0x10a042,LiveShareStatus as _0x145361}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2ad8b3}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x1ae3d5}from'@univerjs/sheets';import{SetScrollOperation as _0x4c78b8}from'@univerjs/sheets-ui';import{FRange as _0xfe9845}from'@univerjs/sheets/facade';import{FUniver as _0x2c0cbf,FEnum as _0x57ddce}from'@univerjs/core/facade';function _0x466f(){const _0x486f77=['syncExecuteCommand','executeCommand','getSheetId','getRenderById','2013656kmHItX','getLiveShareCoordinatorSync','getId','PRESENTING','stopFollowing','startFollowing','LiveShareStatusEnum','3915897wMEsAc','_initialize','54419QrkmFl','No\x20active\x20workbook\x20found.','3466057ipmcuK','_commandService','14445608IJpWWn','IDLE','10wtgeZW','9244110MIcitJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','stopPresenting','getActiveWorkbook','get','getActiveSheet','58rGLmsA','getUnitId','startColumn','extend','27701091tnLvLl','startPresenting','_injector'];_0x466f=function(){return _0x486f77;};return _0x466f();}function _0x2e94(_0x18ce63,_0x523b77){_0x18ce63=_0x18ce63-0xd4;const _0x466f1d=_0x466f();let _0x2e9439=_0x466f1d[_0x18ce63];return _0x2e9439;}class I extends _0xfe9845{[_0x352c44(0xef)](_0x42352f,_0x423796,_0x2c9a24,_0xeffee5,_0x44897a){const _0x4806d=_0x352c44,_0x3c6826=_0x42352f[_0x4806d(0xda)](_0x10a042),_0x33f22f=_0x42352f[_0x4806d(0xda)](_0x2ad8b3),_0x2c2329=_0x423796[_0x4806d(0xdd)](),_0x4e3ba8=_0x423796[_0x4806d(0xdb)](),_0x264362=_0x3c6826['getLiveShareCoordinatorSync'](_0x2c2329);(_0x264362==null?void 0x0:_0x264362[_0x4806d(0xd7)]())!==_0x145361[_0x4806d(0xea)]||(_0x2c9a24['getSheetId']()!==_0x4e3ba8['getSheetId']()&&this[_0x4806d(0xf3)][_0x4806d(0xe4)](_0x1ae3d5['id'],{'unitId':_0x2c2329,'subUnitId':_0x2c9a24[_0x4806d(0xe5)]()}),!_0x33f22f[_0x4806d(0xe6)](_0x2c2329))||_0x44897a[_0x4806d(0xe3)](_0x4c78b8['id'],{'unitId':_0x423796[_0x4806d(0xdd)](),'sheetId':_0x2c9a24['getSheetId'](),'sheetViewStartRow':_0xeffee5['startRow'],'sheetViewStartColumn':_0xeffee5[_0x4806d(0xde)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xfe9845[_0x352c44(0xdf)](I);class m extends _0x2c0cbf{['getLiveShareStatus'](){const _0xfd37f8=_0x352c44;var _0x5ee508,_0x2c27ef;const _0x3bf8ee=this[_0xfd37f8(0xe2)]['get'](_0x10a042),_0x3dcd68=(_0x5ee508=this[_0xfd37f8(0xd9)]())==null?void 0x0:_0x5ee508[_0xfd37f8(0xe9)]();if(!_0x3dcd68)throw new Error(_0xfd37f8(0xf1));const _0x583e99=_0x3bf8ee[_0xfd37f8(0xe8)](_0x3dcd68);return(_0x2c27ef=_0x583e99==null?void 0x0:_0x583e99[_0xfd37f8(0xd7)]())!=null?_0x2c27ef:_0x145361[_0xfd37f8(0xf5)];}[_0x352c44(0xec)](){const _0x27e81e=_0x352c44;var _0x2823d5;const _0x201f8e=this['_injector'][_0x27e81e(0xda)](_0x10a042),_0x2a8a0b=(_0x2823d5=this[_0x27e81e(0xd9)]())==null?void 0x0:_0x2823d5[_0x27e81e(0xe9)]();if(!_0x2a8a0b)throw new Error(_0x27e81e(0xf1));const _0x4ad8fa=_0x201f8e[_0x27e81e(0xe8)](_0x2a8a0b);if(!_0x4ad8fa)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4ad8fa[_0x27e81e(0xec)]();}[_0x352c44(0xeb)](){const _0x25c6bc=_0x352c44;var _0x6741d1;const _0xb9578a=this['_injector'][_0x25c6bc(0xda)](_0x10a042),_0x318beb=(_0x6741d1=this[_0x25c6bc(0xd9)]())==null?void 0x0:_0x6741d1['getId']();if(!_0x318beb)throw new Error('No\x20active\x20workbook\x20found.');const _0x45f11a=_0xb9578a[_0x25c6bc(0xe8)](_0x318beb);if(!_0x45f11a)throw new Error(_0x25c6bc(0xd6));_0x45f11a[_0x25c6bc(0xeb)]();}[_0x352c44(0xe1)](){const _0xad5d18=_0x352c44;var _0x328887;const _0x3d2b19=this[_0xad5d18(0xe2)][_0xad5d18(0xda)](_0x10a042),_0x53350f=(_0x328887=this[_0xad5d18(0xd9)]())==null?void 0x0:_0x328887['getId']();if(!_0x53350f)throw new Error(_0xad5d18(0xf1));const _0x24b6e0=_0x3d2b19['getLiveShareCoordinatorSync'](_0x53350f);if(!_0x24b6e0)throw new Error(_0xad5d18(0xd6));_0x24b6e0['tryStartPresenting']();}[_0x352c44(0xd8)](){const _0x58da10=_0x352c44;var _0x4ef740;const _0x214e47=this[_0x58da10(0xe2)]['get'](_0x10a042),_0x3d19d0=(_0x4ef740=this['getActiveWorkbook']())==null?void 0x0:_0x4ef740[_0x58da10(0xe9)]();if(!_0x3d19d0)throw new Error(_0x58da10(0xf1));const _0x520760=_0x214e47[_0x58da10(0xe8)](_0x3d19d0);if(!_0x520760)throw new Error(_0x58da10(0xd6));_0x520760[_0x58da10(0xd8)]();}}_0x2c0cbf['extend'](m);class C extends _0x57ddce{get[_0x352c44(0xed)](){return _0x145361;}}_0x57ddce[_0x352c44(0xdf)](C);
1
+ const _0x2a8c09=_0x32e7;(function(_0x3460aa,_0xf26c3){const _0x3288af=_0x32e7,_0x41f6ad=_0x3460aa();while(!![]){try{const _0x2b5a4f=-parseInt(_0x3288af(0x7f))/0x1*(parseInt(_0x3288af(0x75))/0x2)+-parseInt(_0x3288af(0x86))/0x3*(parseInt(_0x3288af(0x73))/0x4)+parseInt(_0x3288af(0x7a))/0x5*(parseInt(_0x3288af(0x8d))/0x6)+-parseInt(_0x3288af(0x81))/0x7+-parseInt(_0x3288af(0x71))/0x8+-parseInt(_0x3288af(0x8e))/0x9+-parseInt(_0x3288af(0x7c))/0xa*(-parseInt(_0x3288af(0x85))/0xb);if(_0x2b5a4f===_0xf26c3)break;else _0x41f6ad['push'](_0x41f6ad['shift']());}catch(_0x10aff4){_0x41f6ad['push'](_0x41f6ad['shift']());}}}(_0x26a5,0x230d2));import{LiveShareController as _0x14a70b,LiveShareStatus as _0x1428be}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xce11c8}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4aa18d}from'@univerjs/sheets';import{SetScrollOperation as _0x559e3d}from'@univerjs/sheets-ui';import{FRange as _0x35a4e6}from'@univerjs/sheets/facade';import{FUniver as _0x2e541a,FEnum as _0x336ab1}from'@univerjs/core/facade';class I extends _0x35a4e6{[_0x2a8c09(0x82)](_0xb5b6aa,_0x9b43eb,_0x29dece,_0x30fedd,_0x201ae2){const _0x1a76c2=_0x2a8c09,_0x3b2b51=_0xb5b6aa[_0x1a76c2(0x80)](_0x14a70b),_0x426642=_0xb5b6aa[_0x1a76c2(0x80)](_0xce11c8),_0x34589c=_0x9b43eb[_0x1a76c2(0x84)](),_0x535701=_0x9b43eb['getActiveSheet'](),_0x6ff2c1=_0x3b2b51['getLiveShareCoordinatorSync'](_0x34589c);(_0x6ff2c1==null?void 0x0:_0x6ff2c1['getStatus']())!==_0x1428be[_0x1a76c2(0x90)]||(_0x29dece['getSheetId']()!==_0x535701[_0x1a76c2(0x72)]()&&this['_commandService']['executeCommand'](_0x4aa18d['id'],{'unitId':_0x34589c,'subUnitId':_0x29dece[_0x1a76c2(0x72)]()}),!_0x426642[_0x1a76c2(0x74)](_0x34589c))||_0x201ae2[_0x1a76c2(0x8c)](_0x559e3d['id'],{'unitId':_0x9b43eb[_0x1a76c2(0x84)](),'sheetId':_0x29dece['getSheetId'](),'sheetViewStartRow':_0x30fedd['startRow'],'sheetViewStartColumn':_0x30fedd[_0x1a76c2(0x78)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x35a4e6[_0x2a8c09(0x7d)](I);function _0x32e7(_0x3e7324,_0x2dffa4){_0x3e7324=_0x3e7324-0x6f;const _0x26a55d=_0x26a5();let _0x32e799=_0x26a55d[_0x3e7324];return _0x32e799;}class m extends _0x2e541a{[_0x2a8c09(0x83)](){const _0x4bae81=_0x2a8c09;var _0x561e72,_0x5dbbbc;const _0xa36ea0=this[_0x4bae81(0x76)]['get'](_0x14a70b),_0x59d589=(_0x561e72=this[_0x4bae81(0x87)]())==null?void 0x0:_0x561e72[_0x4bae81(0x70)]();if(!_0x59d589)throw new Error(_0x4bae81(0x8a));const _0x6b6544=_0xa36ea0[_0x4bae81(0x79)](_0x59d589);return(_0x5dbbbc=_0x6b6544==null?void 0x0:_0x6b6544[_0x4bae81(0x8f)]())!=null?_0x5dbbbc:_0x1428be['IDLE'];}[_0x2a8c09(0x6f)](){const _0x3ab86e=_0x2a8c09;var _0x176503;const _0x51178a=this[_0x3ab86e(0x76)][_0x3ab86e(0x80)](_0x14a70b),_0x5699d9=(_0x176503=this[_0x3ab86e(0x87)]())==null?void 0x0:_0x176503[_0x3ab86e(0x70)]();if(!_0x5699d9)throw new Error('No\x20active\x20workbook\x20found.');const _0xf2736f=_0x51178a[_0x3ab86e(0x79)](_0x5699d9);if(!_0xf2736f)throw new Error(_0x3ab86e(0x77));_0xf2736f[_0x3ab86e(0x6f)]();}[_0x2a8c09(0x88)](){const _0x1c5236=_0x2a8c09;var _0x14acc0;const _0x376977=this[_0x1c5236(0x76)]['get'](_0x14a70b),_0x4a57ee=(_0x14acc0=this['getActiveWorkbook']())==null?void 0x0:_0x14acc0[_0x1c5236(0x70)]();if(!_0x4a57ee)throw new Error(_0x1c5236(0x8a));const _0x357673=_0x376977[_0x1c5236(0x79)](_0x4a57ee);if(!_0x357673)throw new Error(_0x1c5236(0x77));_0x357673[_0x1c5236(0x88)]();}[_0x2a8c09(0x8b)](){const _0x1f72fa=_0x2a8c09;var _0x53199e;const _0x2e35ac=this[_0x1f72fa(0x76)][_0x1f72fa(0x80)](_0x14a70b),_0x3cc0ba=(_0x53199e=this[_0x1f72fa(0x87)]())==null?void 0x0:_0x53199e[_0x1f72fa(0x70)]();if(!_0x3cc0ba)throw new Error(_0x1f72fa(0x8a));const _0xb8d64=_0x2e35ac['getLiveShareCoordinatorSync'](_0x3cc0ba);if(!_0xb8d64)throw new Error(_0x1f72fa(0x77));_0xb8d64[_0x1f72fa(0x7e)]();}['stopPresenting'](){const _0xf19fa4=_0x2a8c09;var _0x3a39eb;const _0x100e08=this[_0xf19fa4(0x76)]['get'](_0x14a70b),_0x5a4407=(_0x3a39eb=this[_0xf19fa4(0x87)]())==null?void 0x0:_0x3a39eb[_0xf19fa4(0x70)]();if(!_0x5a4407)throw new Error(_0xf19fa4(0x8a));const _0x388d5e=_0x100e08[_0xf19fa4(0x79)](_0x5a4407);if(!_0x388d5e)throw new Error(_0xf19fa4(0x77));_0x388d5e[_0xf19fa4(0x89)]();}}_0x2e541a[_0x2a8c09(0x7d)](m);function _0x26a5(){const _0xa8bdca=['syncExecuteCommand','85056wlsqHL','1869885vHftYD','getStatus','PRESENTING','startFollowing','getId','1714192TRJIOV','getSheetId','4GsEthZ','getRenderById','2JYOPpb','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startColumn','getLiveShareCoordinatorSync','70KDTtXn','LiveShareStatusEnum','220420AFnxOc','extend','tryStartPresenting','238421QwbOYQ','get','949676XVJpvL','_initialize','getLiveShareStatus','getUnitId','462BnWIjK','553590hdipJP','getActiveWorkbook','stopFollowing','stopPresenting','No\x20active\x20workbook\x20found.','startPresenting'];_0x26a5=function(){return _0xa8bdca;};return _0x26a5();}class C extends _0x336ab1{get[_0x2a8c09(0x7b)](){return _0x1428be;}}_0x336ab1['extend'](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3460c1=_0x4557;(function(_0x5e91aa,_0x551fe5){const _0xc8edc0=_0x4557,_0x46e6de=_0x5e91aa();while(!![]){try{const _0x806443=-parseInt(_0xc8edc0(0x150))/0x1*(parseInt(_0xc8edc0(0xdc))/0x2)+-parseInt(_0xc8edc0(0xd6))/0x3+parseInt(_0xc8edc0(0x13f))/0x4+parseInt(_0xc8edc0(0x15c))/0x5*(-parseInt(_0xc8edc0(0x15e))/0x6)+parseInt(_0xc8edc0(0xf8))/0x7*(parseInt(_0xc8edc0(0x100))/0x8)+-parseInt(_0xc8edc0(0x119))/0x9+parseInt(_0xc8edc0(0x104))/0xa*(parseInt(_0xc8edc0(0xda))/0xb);if(_0x806443===_0x551fe5)break;else _0x46e6de['push'](_0x46e6de['shift']());}catch(_0x527f52){_0x46e6de['push'](_0x46e6de['shift']());}}}(_0x2e26,0x4b0b4));var J=Object[_0x3460c1(0x126)],K=(_0xee29c6,_0x1c2b47,_0x49608d)=>_0x1c2b47 in _0xee29c6?J(_0xee29c6,_0x1c2b47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49608d}):_0xee29c6[_0x1c2b47]=_0x49608d,u=(_0x3e01fd,_0x32c32d,_0x4ce276)=>K(_0x3e01fd,typeof _0x32c32d!=_0x3460c1(0xf4)?_0x32c32d+'':_0x32c32d,_0x4ce276);import{Disposable as _0xc5e0a9,toDisposable as _0x87ebf2,IUniverInstanceService as _0xa87a14,Inject as _0x3bcdba,Injector as _0x19e107,IConfigService as _0x29db0f,ICommandService as _0x565687,RxDisposable as _0x591da1,UniverInstanceType as _0x3cb45b,DisposableCollection as _0x81324e,CommandType as _0x5504a2,DependentOn as _0x1ebbc3,Plugin as _0x16f213,merge as _0x125a7c,registerDependencies as _0x41bf15,mergeOverrideWithDependencies as _0x1cc35b,touchDependencies as _0x15308f}from'@univerjs/core';import{useDependency as _0x2b3e7d,useObservable as _0x27fd11,IUIPartsService as _0x42e77f,BuiltInUIPart as _0x5b833c,connectInjector as _0x87cd1f}from'@univerjs/ui';import{jsx as _0x9b8f83,jsxs as _0x3911e5,Fragment as _0x51b535}from'react/jsx-runtime';import{Dropdown as _0x320cc1,clsx as _0x889c00,Button as _0x25f1f0}from'@univerjs/design';import{useRef as _0x198b9b,createElement as _0x496fa8,forwardRef as _0x1d4949,useState as _0x51630b,useEffect as _0x112452}from'react';import{CollaborationEvent as _0x1bd605,parseProtocolChangeset as _0x52281c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x419de7,SessionStatus as _0x472715,UniverCollaborationClientPlugin as _0x82618b}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x90e1c7,SetWorksheetActiveOperation as _0x4608bd}from'@univerjs/sheets';import{BehaviorSubject as _0x54131c,Subject as _0x1d9924}from'rxjs';import{takeUntil as _0x1cfb04,throttleTime as _0x387acb}from'rxjs/operators';import{SetZoomRatioOperation as _0x4fb690,SetScrollOperation as _0x5633c5}from'@univerjs/sheets-ui';function k({ref:_0x26a054,..._0x5508a8}){const _0x151f62=_0x3460c1,{icon:_0x399b7f,id:_0x6c9fe5,className:_0x5c55ac,extend:_0x4505a3,..._0x440c88}=_0x5508a8,_0x5af4eb=('univerjs-icon\x20univerjs-icon-'+_0x6c9fe5+'\x20'+(_0x5c55ac||''))['trim'](),_0x47c2e5=_0x198b9b('_'+Oe());return G(_0x399b7f,''+_0x6c9fe5,{'defIds':_0x399b7f['defIds'],'idSuffix':_0x47c2e5[_0x151f62(0xd3)]},{'ref':_0x26a054,'className':_0x5af4eb,..._0x440c88},_0x4505a3);}function G(_0x37cf3b,_0x5f31e4,_0x2ecc13,_0x9b24bc,_0x54e131){const _0x482e13=_0x3460c1;return _0x496fa8(_0x37cf3b['tag'],{'key':_0x5f31e4,...be(_0x37cf3b,_0x2ecc13,_0x54e131),..._0x9b24bc},(Ee(_0x37cf3b,_0x2ecc13)[_0x482e13(0x11f)]||[])[_0x482e13(0x13e)]((_0x22d74d,_0x2b0a24)=>G(_0x22d74d,_0x5f31e4+'-'+_0x37cf3b[_0x482e13(0x111)]+'-'+_0x2b0a24,_0x2ecc13,void 0x0,_0x54e131)));}function be(_0x226ed1,_0x4bfac6,_0x5760a2){const _0x187901=_0x3460c1,_0x51172a={..._0x226ed1[_0x187901(0x145)]};_0x5760a2!=null&&_0x5760a2[_0x187901(0x12e)]&&_0x51172a[_0x187901(0x14e)]===_0x187901(0x12e)&&(_0x51172a['fill']=_0x5760a2[_0x187901(0x12e)]),_0x226ed1[_0x187901(0x111)]===_0x187901(0x10c)&&_0x51172a['id']&&(_0x51172a['id']=_0x51172a['id']+_0x4bfac6[_0x187901(0xfc)]),Object[_0x187901(0x15a)](_0x51172a)[_0x187901(0x11d)](([_0x52dc91,_0x2c29ad])=>{const _0x5806ec=_0x187901;_0x52dc91==='mask'&&typeof _0x2c29ad==_0x5806ec(0x161)&&(_0x51172a[_0x52dc91]=_0x2c29ad['replace'](/url\(#(.*)\)/,_0x5806ec(0x116)+_0x4bfac6[_0x5806ec(0xfc)]+')'));});const {defIds:_0x2d7710}=_0x4bfac6;return!_0x2d7710||_0x2d7710['length']===0x0||(_0x226ed1['tag']===_0x187901(0x154)&&_0x51172a['xlink:href']&&(_0x51172a['xlink:href']=_0x51172a['xlink:href']+_0x4bfac6[_0x187901(0xfc)]),Object[_0x187901(0x15a)](_0x51172a)[_0x187901(0x11d)](([_0x18a762,_0x37b00d])=>{const _0x534e15=_0x187901;typeof _0x37b00d==_0x534e15(0x161)&&(_0x51172a[_0x18a762]=_0x37b00d[_0x534e15(0x11e)](/url\(#(.*)\)/,_0x534e15(0x116)+_0x4bfac6['idSuffix']+')'));})),_0x51172a;}function Ee(_0x43f4ae,_0x4b935d){const _0x3ba781=_0x3460c1;var _0x474e3d;const {defIds:_0xa41c91}=_0x4b935d;return!_0xa41c91||_0xa41c91[_0x3ba781(0xe6)]===0x0?_0x43f4ae:_0x43f4ae[_0x3ba781(0x111)]===_0x3ba781(0x139)&&((_0x474e3d=_0x43f4ae[_0x3ba781(0x11f)])!=null&&_0x474e3d[_0x3ba781(0xe6)])?{..._0x43f4ae,'children':_0x43f4ae[_0x3ba781(0x11f)]['map'](_0x22572c=>typeof _0x22572c[_0x3ba781(0x145)]['id']==_0x3ba781(0x161)&&_0xa41c91&&_0xa41c91['includes'](_0x22572c[_0x3ba781(0x145)]['id'])?{..._0x22572c,'attrs':{..._0x22572c['attrs'],'id':_0x22572c[_0x3ba781(0x145)]['id']+_0x4b935d['idSuffix']}}:_0x22572c)}:_0x43f4ae;}function Oe(){const _0x571914=_0x3460c1;return Math[_0x571914(0x110)]()[_0x571914(0x16c)](0x24)[_0x571914(0x12a)](0x2,0x8);}k[_0x3460c1(0xd2)]=_0x3460c1(0x14b);const we={'tag':_0x3460c1(0xe8),'attrs':{'xmlns':_0x3460c1(0x156),'fill':_0x3460c1(0x118),'viewBox':_0x3460c1(0xdf),'width':'1em','height':_0x3460c1(0x12c)},'children':[{'tag':'path','attrs':{'fill':'currentColor','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':_0x3460c1(0xe4),'attrs':{'fill':_0x3460c1(0x157),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x3460c1(0x11b)}}]},W=_0x1d4949(function(_0x1e7683,_0x9a32e2){const _0x448ee4=_0x3460c1;return _0x496fa8(k,Object[_0x448ee4(0x128)]({},_0x1e7683,{'id':_0x448ee4(0x141),'ref':_0x9a32e2,'icon':we}));});W['displayName']='LiveShareIcon';class L extends _0xc5e0a9{constructor(){const _0x4eec30=_0x3460c1;super(...arguments),u(this,_0x4eec30(0xe0),new Set()),u(this,_0x4eec30(0x131),new Set());}[_0x3460c1(0xec)](_0xce0c2b){const _0x27c1c2=_0x3460c1;return this['_sharedOperations'][_0x27c1c2(0x149)](_0xce0c2b),_0x87ebf2(()=>this['_sharedOperations'][_0x27c1c2(0xd0)](_0xce0c2b));}['registerInitialStateReporter'](_0x5486f1){const _0x134273=_0x3460c1;return this['_reporters'][_0x134273(0x149)](_0x5486f1),_0x87ebf2(()=>this[_0x134273(0x131)][_0x134273(0xd0)](_0x5486f1));}[_0x3460c1(0x153)](_0x382e39){const _0x4900b3=_0x3460c1;return this[_0x4900b3(0xe0)]['has'](_0x382e39);}['getInitialStates'](_0x2277c7){const _0x56ffca=_0x3460c1;return Array[_0x56ffca(0x102)](this['_reporters'])[_0x56ffca(0x13e)](_0xee86d4=>_0xee86d4(_0x2277c7));}}var Ne=Object[_0x3460c1(0x163)],Y=(_0x3ad7f6,_0xb6cc1e,_0x210af2,_0x30d218)=>{const _0x57a988=_0x3460c1;for(var _0x4e546e=_0x30d218>0x1?void 0x0:_0x30d218?Ne(_0xb6cc1e,_0x210af2):_0xb6cc1e,_0x5c3e02=_0x3ad7f6[_0x57a988(0xe6)]-0x1,_0x44c03a;_0x5c3e02>=0x0;_0x5c3e02--)(_0x44c03a=_0x3ad7f6[_0x5c3e02])&&(_0x4e546e=_0x44c03a(_0x4e546e)||_0x4e546e);return _0x4e546e;},_=(_0x1de16c,_0x3cb4b0)=>(_0x2c8718,_0x19ca88)=>_0x3cb4b0(_0x2c8718,_0x19ca88,_0x1de16c);let S=class extends _0x591da1{constructor(_0x53d9f1,_0xe2dd4c,_0x15c992){const _0x410d85=_0x3460c1;super(),u(this,'_entities',new Map()),(this[_0x410d85(0x144)]=_0x53d9f1,this['_injector']=_0xe2dd4c,this['_collabSessionService']=_0x15c992,this['_init']());}async[_0x3460c1(0x117)](_0x49cd36){const _0x21f2d2=_0x3460c1;return this[_0x21f2d2(0x115)]['has'](_0x49cd36)||await this[_0x21f2d2(0xf9)](_0x49cd36),this['_entities'][_0x21f2d2(0x138)](_0x49cd36);}['getLiveShareCoordinatorSync'](_0x3b6bf2){const _0xb68733=_0x3460c1;var _0x131cbc;return(_0x131cbc=this[_0xb68733(0x115)][_0xb68733(0x138)](_0x3b6bf2))!=null?_0x131cbc:null;}[_0x3460c1(0xf5)](){const _0x280766=_0x3460c1;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3cb45b[_0x280766(0x12f)])['pipe'](_0x1cfb04(this[_0x280766(0xea)]))['subscribe'](async _0x239aaf=>{const _0x3e300a=_0x280766,_0x1c4969=_0x239aaf[_0x3e300a(0xed)]();this[_0x3e300a(0x115)]['has'](_0x1c4969)||this['_startLiveShareCoordinator'](_0x1c4969);}),this[_0x280766(0x144)][_0x280766(0x10b)](_0x3cb45b[_0x280766(0x12f)])[_0x280766(0x11c)](_0x1cfb04(this[_0x280766(0xea)]))['subscribe'](_0x1cb7c5=>{const _0x48a1db=_0x280766,_0x2a0b5e=_0x1cb7c5[_0x48a1db(0xed)](),_0x12175d=this['_entities'][_0x48a1db(0x138)](_0x2a0b5e);_0x12175d==null||_0x12175d['dispose']();});}async[_0x3460c1(0xf9)](_0x30b34c){const _0x26092a=_0x3460c1,_0x13bd2c=await this[_0x26092a(0x10f)]['requireSession'](_0x30b34c),_0xbe848e=this['_injector'][_0x26092a(0x134)](N,_0x30b34c,_0x13bd2c);return _0xbe848e[_0x26092a(0x124)](),this['_entities'][_0x26092a(0x108)](_0x30b34c,_0xbe848e),_0xbe848e;}};function _0x4557(_0x319d5b,_0x466118){_0x319d5b=_0x319d5b-0xd0;const _0x2e2603=_0x2e26();let _0x4557b6=_0x2e2603[_0x319d5b];return _0x4557b6;}S=Y([_(0x0,_0xa87a14),_(0x1,_0x3bcdba(_0x19e107)),_(0x2,_0x3bcdba(_0x419de7))],S);var c=(_0x249ad8=>(_0x249ad8['OFFLINE']=_0x3460c1(0xdd),_0x249ad8[_0x3460c1(0x14a)]=_0x3460c1(0xe3),_0x249ad8[_0x3460c1(0x160)]=_0x3460c1(0x147),_0x249ad8[_0x3460c1(0x114)]=_0x3460c1(0x165),_0x249ad8[_0x3460c1(0x13c)]='presenting',_0x249ad8))(c||{});const Ce=_0x3460c1(0x148),De=0xc8;function _0x2e26(){const _0x5e967a=['dispose','event$','data','sessionStatus$','_commandService','_collabSession','symbol','_init','find','live-share.config','7VkPebU','_startLiveShareCoordinator','stopFollowing','Present\x20this\x20document','idSuffix','send','onCommandExecuted','default','4482536RTdaRF','next','from','_handleOnline','40eyXOLS','Start','params','_startPresenting','set','parse','_status$','getTypeOfUnitDisposed$','mask','includes','unitId','_collabSessionService','random','tag','Start\x20following','_handleNewChangeSets','NOT_FOLLOWING','_entities','url(#$1','getLiveShareCoordinator','none','4234896shwwpu','type','evenodd','pipe','forEach','replace','children','div','button','override','getValue','init','HEADER_MENU','defineProperty','getInitialStates','assign','has','substring','OFFLINE','1em','_fetchOperations','colorChannel1','UNIVER_SHEET','_handleOperation','_reporters','LIVESHARE_TERMINATE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','createInstance','stringify','unsubscribe','onRendered','get','defs','_injector','getCurrentTypeOfUnit$','PRESENTING','tryStartPresenting','map','863220xHXkSL','subscribe','live-share-icon','_handleTerminate','_handleOffline','_univerInstanceService','attrs','clear','following','SAME_OPERATION_SHARE_INTERVAL','add','IDLE','UniverIcon','startFollowing','univer-size-4','fill','univer-mb-3\x20univer-w-full\x20univer-text-sm','23gaMkjK','LIVESHARE_FETCH_OPERATIONS','presenter','shouldShareOperation','use','_handleNewHost','http://www.w3.org/2000/svg','currentColor','disposeWithMe','memberID','entries','You\x27re\x20not\x20following\x20the\x20presenter','250YiFNYI','pluginName','38166BGNHdq','_unitID','FOLLOWING','string','ONLINE','getOwnPropertyDescriptor','_commandDisposable','not-following','presenting','status$','mutations','sheet','_startFollowing','getMemberID','toString','stopPresenting','then','_mountLiveShare','_liveShareService','delete','You\x27are\x20offline.','displayName','current','onStarting','_beIdle','527169AxmxmC','_status','text','_stopFollowing','1951246VrGJSu','executeCommand','18606rZGRuB','offline','You\x27re\x20following\x20the\x20presenter','0\x200\x2017\x2017','_sharedOperations','_config','registerComponent','idle','path','_configService','length','_presenter','svg','LIVESHARE_REQUEST_HOST','dispose$','setConfig','registerSharedOperation','getUnitId'];_0x2e26=function(){return _0x5e967a;};return _0x2e26();}let N=class extends _0x591da1{constructor(_0x11b18b,_0x477f19,_0x257db7,_0xbbf2d2,_0x4bee3b){const _0x3ef8b0=_0x3460c1;super(),u(this,_0x3ef8b0(0x10a),new _0x54131c(_0x3ef8b0(0xe3))),u(this,_0x3ef8b0(0x167),this[_0x3ef8b0(0x10a)]['asObservable']()),u(this,'_init',!0x1),u(this,_0x3ef8b0(0x164),null),u(this,_0x3ef8b0(0xe7),null),(this[_0x3ef8b0(0x15f)]=_0x11b18b,this['_collabSession']=_0x477f19,this[_0x3ef8b0(0xe5)]=_0x257db7,this['_liveShareService']=_0xbbf2d2,this[_0x3ef8b0(0xf2)]=_0x4bee3b);}get[_0x3460c1(0xd7)](){const _0x5d3644=_0x3460c1;return this[_0x5d3644(0x10a)][_0x5d3644(0x123)]();}[_0x3460c1(0xee)](){const _0x54914b=_0x3460c1;var _0x371575;(_0x371575=this[_0x54914b(0x164)])==null||_0x371575[_0x54914b(0xee)](),this[_0x54914b(0x10a)][_0x54914b(0x101)](_0x54914b(0xe3)),this[_0x54914b(0x10a)]['complete']();}['getStatus'](){const _0x3507c4=_0x3460c1;return this[_0x3507c4(0xd7)];}[_0x3460c1(0x124)](){const _0x5a40dd=_0x3460c1;this[_0x5a40dd(0xf5)]||(this[_0x5a40dd(0xf5)]=!0x0,this['_collabSession'][_0x5a40dd(0xf1)]['pipe'](_0x1cfb04(this[_0x5a40dd(0xea)]))[_0x5a40dd(0x140)](_0x279107=>{const _0x3ab0fd=_0x5a40dd;switch(_0x279107){case _0x472715[_0x3ab0fd(0x12b)]:this['_handleOffline']();break;case _0x472715[_0x3ab0fd(0x162)]:this[_0x3ab0fd(0x103)]();break;}}),this[_0x5a40dd(0xf3)][_0x5a40dd(0xef)]['pipe'](_0x1cfb04(this[_0x5a40dd(0xea)]))[_0x5a40dd(0x140)](_0x674d7d=>{const _0x500399=_0x5a40dd,{eventID:_0x406dc9}=_0x674d7d;switch(_0x406dc9){case _0x1bd605['LIVESHARE_NEW_HOST']:this[_0x500399(0x155)](_0x674d7d);break;case _0x1bd605['LIVESHARE_OPERATION']:this[_0x500399(0x130)](_0x674d7d);break;case _0x1bd605[_0x500399(0x132)]:this['_handleTerminate']();break;case _0x1bd605['NEW_CHANGESETS']:this[_0x500399(0x113)](_0x674d7d);break;}}));}[_0x3460c1(0x13d)](){const _0x4507dc=_0x3460c1;this[_0x4507dc(0xf3)]['send']({'eventID':_0x1bd605[_0x4507dc(0xe9)],'data':{'unitID':this[_0x4507dc(0x15f)],'userID':this[_0x4507dc(0xf3)][_0x4507dc(0x16b)]()}},this[_0x4507dc(0x15f)]);}[_0x3460c1(0x16d)](){const _0x4520c4=_0x3460c1;this[_0x4520c4(0xd7)]===_0x4520c4(0x166)&&(this[_0x4520c4(0x10a)][_0x4520c4(0x101)](_0x4520c4(0xe3)),this[_0x4520c4(0xf3)][_0x4520c4(0xfd)]({'eventID':_0x1bd605[_0x4520c4(0x132)],'data':{'unitID':this[_0x4520c4(0x15f)]}},this[_0x4520c4(0x15f)]));}[_0x3460c1(0x14c)](){const _0x558865=_0x3460c1;this[_0x558865(0xd7)]===_0x558865(0x165)&&(this['_status$'][_0x558865(0x101)](_0x558865(0x147)),this['_startFollowing']());}['stopFollowing'](){const _0x32da72=_0x3460c1;this[_0x32da72(0xd7)]===_0x32da72(0x147)&&this[_0x32da72(0xd9)]();}[_0x3460c1(0x155)](_0x5ef90d){const _0x2da164=_0x3460c1,{presenter:_0x288bbb}=_0x5ef90d[_0x2da164(0xf0)],_0x2f32d6=this[_0x2da164(0xf3)][_0x2da164(0x16b)]();this[_0x2da164(0xe7)]=_0x288bbb,_0x288bbb===_0x2f32d6?(this[_0x2da164(0xd9)](),this[_0x2da164(0x107)]()):this['_status']!==_0x2da164(0x165)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3460c1(0x12d)](){const _0x5294cf=_0x3460c1,_0x14a72c={'eventID':_0x1bd605[_0x5294cf(0x151)]};this[_0x5294cf(0xf3)][_0x5294cf(0xfd)](_0x14a72c,this['_unitID']);}[_0x3460c1(0x142)](){const _0x38d416=_0x3460c1;this[_0x38d416(0xe7)]=null,this[_0x38d416(0xd7)]!==_0x38d416(0x166)&&this[_0x38d416(0xd5)]();}[_0x3460c1(0x113)](_0x585489){const _0x503f5c=_0x3460c1;if(this['_status']==='following'&&this[_0x503f5c(0xe7)]===_0x585489[_0x503f5c(0xf0)][_0x503f5c(0x159)]){const _0x16ef39=_0x52281c(_0x585489[_0x503f5c(0xf0)])[_0x503f5c(0x168)]['reverse']()[_0x503f5c(0xf6)](_0x4e70d1=>_0x4e70d1['id']===_0x90e1c7['id']);if(_0x16ef39){const _0x25a089=_0x16ef39['params'][_0x503f5c(0x10e)],_0x436a77=_0x16ef39[_0x503f5c(0x106)][_0x503f5c(0x169)]['id'];setTimeout(()=>{const _0x19d3ef=_0x503f5c;this[_0x19d3ef(0xf2)][_0x19d3ef(0xdb)](_0x4608bd['id'],{'unitId':_0x25a089,'subUnitId':_0x436a77},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x496b72=_0x3460c1;this[_0x496b72(0x10a)]['next']('presenting');const _0x2642e6=new Map(),_0x20a636=this[_0x496b72(0x164)]=new _0x81324e();_0x20a636[_0x496b72(0x149)](_0x87ebf2(()=>{const _0x548f8e=_0x496b72;_0x2642e6[_0x548f8e(0x11d)](_0x34fb0f=>_0x34fb0f['complete']()),_0x2642e6[_0x548f8e(0x146)]();})),_0x20a636['add'](this[_0x496b72(0xf2)][_0x496b72(0xfe)](_0x1d3c1d=>{const _0x2c366=_0x496b72;var _0x2ae01b;if(_0x1d3c1d[_0x2c366(0x11a)]!==_0x5504a2['OPERATION']||!this[_0x2c366(0x170)][_0x2c366(0x153)](_0x1d3c1d['id']))return;const {id:_0x31d627}=_0x1d3c1d;let _0x3d83c4;_0x2642e6[_0x2c366(0x129)](_0x31d627)?_0x3d83c4=_0x2642e6['get'](_0x31d627):(_0x3d83c4=new _0x1d9924(),_0x2642e6['set'](_0x31d627,_0x3d83c4),_0x3d83c4[_0x2c366(0x11c)](_0x387acb((_0x2ae01b=this[_0x2c366(0xe5)]['getConfig'](Ce))!=null?_0x2ae01b:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c366(0x140)](_0xba430c=>{const _0x300dc2=_0x2c366;this['_collabSession'][_0x300dc2(0xfd)]({'eventID':_0x1bd605['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x300dc2(0x15f)],'operations':{[_0xba430c['id']]:{'id':_0xba430c['id'],'params':JSON[_0x300dc2(0x135)](_0xba430c[_0x300dc2(0x106)])}}}},this[_0x300dc2(0x15f)]);})),_0x3d83c4[_0x2c366(0x101)](_0x1d3c1d);})),this[_0x496b72(0x170)][_0x496b72(0x127)](this[_0x496b72(0x15f)])[_0x496b72(0x11d)](_0x352994=>this[_0x496b72(0xf3)]['send']({'eventID':_0x1bd605['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x496b72(0x15f)],'operations':{[_0x352994['id']]:{'id':_0x352994['id'],'params':JSON[_0x496b72(0x135)](_0x352994[_0x496b72(0x106)])}}}},this[_0x496b72(0x15f)]));}['_stopPresenting'](){const _0x2e798d=_0x3460c1;var _0x5a524d;this[_0x2e798d(0x10a)][_0x2e798d(0x101)](_0x2e798d(0xe3)),(_0x5a524d=this[_0x2e798d(0x164)])==null||_0x5a524d[_0x2e798d(0xee)](),this[_0x2e798d(0x164)]=null;}[_0x3460c1(0x16a)](){const _0x5030db=_0x3460c1;var _0xb9a39d;(_0xb9a39d=this[_0x5030db(0x164)])==null||_0xb9a39d[_0x5030db(0xee)](),this[_0x5030db(0x10a)][_0x5030db(0x101)](_0x5030db(0x147));}[_0x3460c1(0xd5)](){const _0x31f927=_0x3460c1;var _0xe57fb7;this['_status$'][_0x31f927(0x101)]('idle'),(_0xe57fb7=this[_0x31f927(0x164)])==null||_0xe57fb7[_0x31f927(0xee)](),this[_0x31f927(0x164)]=null;}[_0x3460c1(0xd9)](){const _0x3589c4=_0x3460c1;var _0x1314b7;this[_0x3589c4(0x10a)][_0x3589c4(0x101)](_0x3589c4(0x165)),(_0x1314b7=this[_0x3589c4(0x164)])==null||_0x1314b7['dispose']();}['_handleOperation'](_0x3c1c91){const _0x514481=_0x3460c1;if([_0x514481(0x166),_0x514481(0x165),_0x514481(0xdd)][_0x514481(0x10d)](this[_0x514481(0xd7)])||!_0x3c1c91['data'][_0x514481(0x152)]||_0x3c1c91[_0x514481(0xf0)]['presenter']===this[_0x514481(0xf3)][_0x514481(0x16b)]())return;this[_0x514481(0xd7)]===_0x514481(0xe3)&&this[_0x514481(0x16a)]();const _0x4f3327=_0x3c1c91[_0x514481(0xf0)]['operations'];Object['values'](_0x4f3327)[_0x514481(0x11d)](_0x8f6359=>{const _0x59f750=_0x514481;this['_commandService'][_0x59f750(0xdb)](_0x8f6359['id'],_0x8f6359['params']?JSON[_0x59f750(0x109)](_0x8f6359[_0x59f750(0x106)]):null,{'fromCollab':!0x0});});}[_0x3460c1(0x143)](){const _0x1634e0=_0x3460c1;var _0x18cb66;this[_0x1634e0(0x10a)][_0x1634e0(0x101)](_0x1634e0(0xdd)),(_0x18cb66=this[_0x1634e0(0x164)])==null||_0x18cb66['dispose']();}[_0x3460c1(0x103)](){const _0x485e4a=_0x3460c1;this[_0x485e4a(0x10a)][_0x485e4a(0x101)]('idle'),this[_0x485e4a(0x12d)]();}};N=Y([_(0x2,_0x29db0f),_(0x3,_0x3bcdba(L)),_(0x4,_0x565687)],N);function Le(){const _0x4048c9=_0x3460c1,_0x1de4d5=_0x2b3e7d(S),_0x45a0b0=_0x2b3e7d(_0xa87a14),_0x1170b3=_0x27fd11(()=>_0x45a0b0[_0x4048c9(0x13b)](_0x3cb45b[_0x4048c9(0x12f)]),void 0x0,!0x1,[]),[_0x28449e,_0x1e80b1]=_0x51630b(null),[_0x1000d2,_0x16535e]=_0x51630b(c[_0x4048c9(0x14a)]),_0x767a5f=_0x198b9b(null);return _0x112452(()=>(_0x1170b3&&_0x1de4d5[_0x4048c9(0x117)](_0x1170b3['getUnitId']())[_0x4048c9(0x16e)](_0xc44a0c=>{const _0x54ea5c=_0x4048c9;_0x1e80b1(_0xc44a0c),_0x767a5f[_0x54ea5c(0xd3)]=_0xc44a0c[_0x54ea5c(0x167)]['subscribe'](_0x77fe00=>{_0x16535e(_0x77fe00);});}),()=>{const _0xd59584=_0x4048c9;var _0x51c0a1;(_0x51c0a1=_0x767a5f[_0xd59584(0xd3)])==null||_0x51c0a1[_0xd59584(0x136)](),_0x767a5f[_0xd59584(0xd3)]=null;}),[_0x1170b3,_0x1de4d5]),_0x28449e?_0x9b8f83(_0x320cc1,{'align':'end','disabled':_0x1000d2===c[_0x4048c9(0x12b)],'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':_0x9b8f83(Re,{'status':_0x1000d2,'coordinator':_0x28449e}),'children':_0x9b8f83(_0x4048c9(0x121),{'className':_0x889c00(_0x4048c9(0x133),{'univer-cursor-not-allowed':_0x1000d2===c[_0x4048c9(0x12b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1000d2!==c[_0x4048c9(0x12b)]}),'type':_0x4048c9(0x121),'children':_0x9b8f83(W,{'className':_0x4048c9(0x14d)})})}):null;}function Re(_0x49ce94){const _0x4678b7=_0x3460c1,{status:_0x8e73f5,coordinator:_0x2a5f9c}=_0x49ce94;switch(_0x8e73f5){case c[_0x4678b7(0x14a)]:return _0x9b8f83($e,{'coordinator':_0x2a5f9c});case c[_0x4678b7(0x160)]:return _0x9b8f83(xe,{'coordinator':_0x2a5f9c});case c[_0x4678b7(0x114)]:return _0x9b8f83(Pe,{'coordinator':_0x2a5f9c});case c[_0x4678b7(0x12b)]:return _0x9b8f83(Te,{});case c[_0x4678b7(0x13c)]:return _0x9b8f83(Ae,{'coordinator':_0x2a5f9c});default:return null;}}function $e(_0xcbfff8){const _0x4755ad=_0x3460c1,{coordinator:_0x29a724}=_0xcbfff8;return _0x3911e5(_0x51b535,{'children':[_0x9b8f83(_0x4755ad(0x120),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4755ad(0xfb)}),_0x9b8f83(_0x25f1f0,{'onClick':()=>_0x29a724['tryStartPresenting'](),'children':_0x4755ad(0x105)})]});}function xe(_0x43f290){const _0x4922fa=_0x3460c1,{coordinator:_0x51ab5e}=_0x43f290;return _0x3911e5(_0x51b535,{'children':[_0x9b8f83(_0x4922fa(0x120),{'className':_0x4922fa(0x14f),'children':_0x4922fa(0xde)}),_0x9b8f83(_0x25f1f0,{'onClick':()=>_0x51ab5e[_0x4922fa(0xfa)](),'children':'Stop\x20following'})]});}function Pe(_0x14060b){const _0x362e5e=_0x3460c1,{coordinator:_0x2583f6}=_0x14060b;return _0x3911e5(_0x51b535,{'children':[_0x9b8f83(_0x362e5e(0x120),{'className':_0x362e5e(0x14f),'children':_0x362e5e(0x15b)}),_0x9b8f83(_0x25f1f0,{'variant':_0x362e5e(0xd8),'onClick':()=>_0x2583f6[_0x362e5e(0x14c)](),'children':_0x362e5e(0x112)})]});}function Ae(_0x2d76d9){const _0x50c1d3=_0x3460c1,{coordinator:_0x406096}=_0x2d76d9;return _0x3911e5(_0x51b535,{'children':[_0x9b8f83(_0x50c1d3(0x120),{'className':_0x50c1d3(0x14f),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x9b8f83(_0x25f1f0,{'variant':_0x50c1d3(0xff),'onClick':()=>_0x406096[_0x50c1d3(0x16d)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x5907f0=_0x3460c1;return _0x9b8f83(_0x51b535,{'children':_0x5907f0(0xd1)});}var Fe=Object[_0x3460c1(0x163)],He=(_0x538afa,_0x11611c,_0x44a43a,_0x4070c2)=>{for(var _0x1a7dbf=_0x4070c2>0x1?void 0x0:_0x4070c2?Fe(_0x11611c,_0x44a43a):_0x11611c,_0x1160de=_0x538afa['length']-0x1,_0x24251c;_0x1160de>=0x0;_0x1160de--)(_0x24251c=_0x538afa[_0x1160de])&&(_0x1a7dbf=_0x24251c(_0x1a7dbf)||_0x1a7dbf);return _0x1a7dbf;},A=(_0x4b15b1,_0x2de9ec)=>(_0x3a6df4,_0x52a4a2)=>_0x2de9ec(_0x3a6df4,_0x52a4a2,_0x4b15b1);let m=class extends _0xc5e0a9{constructor(_0x4873e9,_0x17d8e4){const _0x3a95ed=_0x3460c1;super(),this[_0x3a95ed(0x13a)]=_0x4873e9,this['_uiPartsService']=_0x17d8e4,this['_mountLiveShare']();}[_0x3460c1(0x16f)](){const _0x145b80=_0x3460c1;this[_0x145b80(0x158)](this['_uiPartsService'][_0x145b80(0xe2)](_0x5b833c[_0x145b80(0x125)],()=>_0x87cd1f(Le,this[_0x145b80(0x13a)])));}};m=He([A(0x0,_0x3bcdba(_0x19e107)),A(0x1,_0x42e77f)],m);const ye=_0x3460c1(0xf7),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x85e724,_0x4b18d9,_0x46848f,_0x7291df)=>{const _0x2e2c3c=_0x3460c1;for(var _0x5dfdc3=_0x7291df>0x1?void 0x0:_0x7291df?Ue(_0x4b18d9,_0x46848f):_0x4b18d9,_0x2dbdf0=_0x85e724[_0x2e2c3c(0xe6)]-0x1,_0x5177e1;_0x2dbdf0>=0x0;_0x2dbdf0--)(_0x5177e1=_0x85e724[_0x2dbdf0])&&(_0x5dfdc3=_0x5177e1(_0x5dfdc3)||_0x5dfdc3);return _0x5dfdc3;},je=(_0xcb74ea,_0x4aaf53)=>(_0x1c3b5c,_0x1b5ad3)=>_0x4aaf53(_0x1c3b5c,_0x1b5ad3,_0xcb74ea);let I=class extends _0xc5e0a9{constructor(_0x301154){const _0x48484d=_0x3460c1;super(),this[_0x48484d(0x170)]=_0x301154,this[_0x48484d(0xf5)]();}[_0x3460c1(0xf5)](){const _0x581c86=_0x3460c1;[_0x4fb690['id'],_0x5633c5['id'],_0x4608bd['id']][_0x581c86(0x11d)](_0x7ce23e=>{const _0x210a8c=_0x581c86;this[_0x210a8c(0x158)](this[_0x210a8c(0x170)]['registerSharedOperation'](_0x7ce23e));});}};I=Ve([je(0x0,_0x3bcdba(L))],I);var Me=Object[_0x3460c1(0x126)],ke=Object[_0x3460c1(0x163)],Ge=(_0x5a8dd8,_0x104b3a,_0x57d3bf)=>_0x104b3a in _0x5a8dd8?Me(_0x5a8dd8,_0x104b3a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57d3bf}):_0x5a8dd8[_0x104b3a]=_0x57d3bf,We=(_0x264d4e,_0x269ef6,_0x265b4b,_0x5943ce)=>{const _0x5e3e39=_0x3460c1;for(var _0x16d8da=_0x5943ce>0x1?void 0x0:_0x5943ce?ke(_0x269ef6,_0x265b4b):_0x269ef6,_0x2cb272=_0x264d4e[_0x5e3e39(0xe6)]-0x1,_0x56fb44;_0x2cb272>=0x0;_0x2cb272--)(_0x56fb44=_0x264d4e[_0x2cb272])&&(_0x16d8da=_0x56fb44(_0x16d8da)||_0x16d8da);return _0x16d8da;},F=(_0x28aab9,_0x30093a)=>(_0x27f10c,_0x24a5e8)=>_0x30093a(_0x27f10c,_0x24a5e8,_0x28aab9),B=(_0x11e79d,_0x40f52f,_0x3f6168)=>Ge(_0x11e79d,typeof _0x40f52f!=_0x3460c1(0xf4)?_0x40f52f+'':_0x40f52f,_0x3f6168);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x16f213{constructor(_0x3d8f0a=T,_0x5ce647,_0x352525){const _0x388b7f=_0x3460c1;super(),this[_0x388b7f(0xe1)]=_0x3d8f0a,this[_0x388b7f(0x13a)]=_0x5ce647,this[_0x388b7f(0xe5)]=_0x352525;const {..._0xbea9ef}=_0x125a7c({},T,this[_0x388b7f(0xe1)]);this[_0x388b7f(0xe5)][_0x388b7f(0xeb)](ye,_0xbea9ef);}[_0x3460c1(0xd4)](){const _0x293ee2=_0x3460c1;_0x41bf15(this[_0x293ee2(0x13a)],_0x1cc35b([[L],[S],[I],[m]],this['_config'][_0x293ee2(0x122)])),_0x15308f(this[_0x293ee2(0x13a)],[[I]]);}[_0x3460c1(0x137)](){_0x15308f(this['_injector'],[[m]]);}};B(b,'type',_0x3cb45b['UNIVER_UNKNOWN']),B(b,_0x3460c1(0x15d),Ye),b=We([_0x1ebbc3(_0x82618b),F(0x1,_0x3bcdba(_0x19e107)),F(0x2,_0x29db0f)],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 _0x35a141=_0x4bee;(function(_0x2002c4,_0x309e85){const _0x567d73=_0x4bee,_0x48ba8c=_0x2002c4();while(!![]){try{const _0x3cdb95=parseInt(_0x567d73(0x132))/0x1+-parseInt(_0x567d73(0xcb))/0x2+parseInt(_0x567d73(0x119))/0x3+parseInt(_0x567d73(0x155))/0x4+parseInt(_0x567d73(0xc6))/0x5+parseInt(_0x567d73(0xfe))/0x6+-parseInt(_0x567d73(0x162))/0x7;if(_0x3cdb95===_0x309e85)break;else _0x48ba8c['push'](_0x48ba8c['shift']());}catch(_0x4f04d4){_0x48ba8c['push'](_0x48ba8c['shift']());}}}(_0x3907,0xce1f4));var J=Object[_0x35a141(0xe2)],K=(_0xc34165,_0x317ec8,_0x58d219)=>_0x317ec8 in _0xc34165?J(_0xc34165,_0x317ec8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58d219}):_0xc34165[_0x317ec8]=_0x58d219,u=(_0x55c068,_0x4d7157,_0x164d5a)=>K(_0x55c068,typeof _0x4d7157!=_0x35a141(0xc1)?_0x4d7157+'':_0x4d7157,_0x164d5a);import{Disposable as _0x2b7bf5,toDisposable as _0x188785,IUniverInstanceService as _0x53235a,Inject as _0x165c16,Injector as _0x30e964,IConfigService as _0xe5fba7,ICommandService as _0x57b8d2,RxDisposable as _0x4222af,UniverInstanceType as _0x40dc09,DisposableCollection as _0x3da815,CommandType as _0x1892f5,DependentOn as _0x43f26d,Plugin as _0x57f752,merge as _0x16aada,registerDependencies as _0xd8da1b,mergeOverrideWithDependencies as _0x109ea9,touchDependencies as _0xf181e2}from'@univerjs/core';import{useDependency as _0x24114a,useObservable as _0x37e545,IUIPartsService as _0x13d3ef,BuiltInUIPart as _0xb9814e,connectInjector as _0x23dc11}from'@univerjs/ui';import{jsx as _0x886542,jsxs as _0x27e2fc,Fragment as _0x4e4cd9}from'react/jsx-runtime';function _0x3907(){const _0x181f71=['getValue','getTypeOfUnitAdded$','idle','Start\x20following','_status$','getMemberID','length','_sharedOperations','PRESENTING','getLiveShareCoordinatorSync','set','defIds','939822gNzSGD','asObservable','_entities','presenter','_collabSession','override','0\x200\x2017\x2017','tag','evenodd','none','OFFLINE','_handleTerminate','presenting','delete','LiveShareIcon','http://www.w3.org/2000/svg','_fetchOperations','_commandService','idSuffix','You\x27re\x20following\x20the\x20presenter','ONLINE','Stop\x20presenting','offline','type','1em','replace','_reporters','trim','live-share.config','button','_collabSessionService','_beIdle','registerSharedOperation','_liveShareService','_handleNewHost','328692EbjBhn','find','then','_unitID','complete','_init','pipe','colorChannel1','data','_uiPartsService','You\x27re\x20not\x20following\x20the\x20presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','get','10521777EjLYSU','includes','FOLLOWING','_handleOffline','HEADER_MENU','init','getUnitId','event$','symbol','displayName','send','_configService','onCommandExecuted','7543015IGSkWw','substring','parse','_presenter','_status','2942062zPbRWD','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','NOT_FOLLOWING','not-following','stopPresenting','div','params','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','status$','_handleOnline','_stopFollowing','use','forEach','univerjs-icon\x20univerjs-icon-','Stop\x20following','_univerInstanceService','_config','_commandDisposable','string','stopFollowing','_startPresenting','_injector','text','defineProperty','currentColor','_mountLiveShare','IDLE','dispose$','startFollowing','Start','defs','has','xlink:href','_stopPresenting','getStatus','pluginName','You\x27are\x20offline.','onStarting','children','executeCommand','shouldShareOperation','mutations','_startFollowing','current','memberID','following','toString','dispose','attrs','getOwnPropertyDescriptor','getLiveShareCoordinator','3601728vJrCsG','getConfig','onRendered','random','disposeWithMe','default','LIVESHARE_OPERATION','_handleOperation','UniverIcon','next','reverse','sessionStatus$','getCurrentTypeOfUnit$','LIVESHARE_NEW_HOST','LIVESHARE_TERMINATE','NEW_CHANGESETS','tryStartPresenting','createInstance','entries','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','_startLiveShareCoordinator','assign','LIVESHARE_FETCH_OPERATIONS','url(#$1','mask','_handleNewChangeSets','2062596zRKmfl','path','map','add','UNIVER_SHEET','fill','Present\x20this\x20document','getInitialStates','stringify','subscribe','requireSession','svg','unsubscribe'];_0x3907=function(){return _0x181f71;};return _0x3907();}import{Dropdown as _0x152f1,clsx as _0x423a38,Button as _0xf38cce}from'@univerjs/design';import{useRef as _0x23045f,createElement as _0x1e3e45,forwardRef as _0x16942a,useState as _0x1c29a4,useEffect as _0x54e30b}from'react';import{CollaborationEvent as _0x19a841,parseProtocolChangeset as _0x2fa26d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x40e095,SessionStatus as _0x3dc0be,UniverCollaborationClientPlugin as _0x166481}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5da965,SetWorksheetActiveOperation as _0x179248}from'@univerjs/sheets';import{BehaviorSubject as _0x10e087,Subject as _0x415407}from'rxjs';import{takeUntil as _0x323870,throttleTime as _0x5b155c}from'rxjs/operators';import{SetZoomRatioOperation as _0x8c84dc,SetScrollOperation as _0x28c155}from'@univerjs/sheets-ui';function k({ref:_0x2d9f70,..._0x212285}){const _0x16912b=_0x35a141,{icon:_0x3cb016,id:_0x57a1ef,className:_0x852509,extend:_0x596eb7,..._0xb8c9a4}=_0x212285,_0x15fd00=(_0x16912b(0xd8)+_0x57a1ef+'\x20'+(_0x852509||''))[_0x16912b(0x14d)](),_0x1b8a24=_0x23045f('_'+Oe());return G(_0x3cb016,''+_0x57a1ef,{'defIds':_0x3cb016[_0x16912b(0x131)],'idSuffix':_0x1b8a24['current']},{'ref':_0x2d9f70,'className':_0x15fd00,..._0xb8c9a4},_0x596eb7);}function _0x4bee(_0x379c51,_0x509ec0){_0x379c51=_0x379c51-0xc1;const _0x390784=_0x3907();let _0x4bee3a=_0x390784[_0x379c51];return _0x4bee3a;}function G(_0x5796ee,_0x2b8c31,_0x22fb0a,_0x4e6d80,_0x2b0c7e){const _0x20cd4d=_0x35a141;return _0x1e3e45(_0x5796ee[_0x20cd4d(0x139)],{'key':_0x2b8c31,...be(_0x5796ee,_0x22fb0a,_0x2b0c7e),..._0x4e6d80},(Ee(_0x5796ee,_0x22fb0a)[_0x20cd4d(0xf1)]||[])[_0x20cd4d(0x11b)]((_0x51fd3,_0x5a1799)=>G(_0x51fd3,_0x2b8c31+'-'+_0x5796ee['tag']+'-'+_0x5a1799,_0x22fb0a,void 0x0,_0x2b0c7e)));}function be(_0x320cdc,_0x2d181c,_0x299c85){const _0x2f5c20=_0x35a141,_0x3fe7e4={..._0x320cdc[_0x2f5c20(0xfb)]};_0x299c85!=null&&_0x299c85['colorChannel1']&&_0x3fe7e4[_0x2f5c20(0x11e)]===_0x2f5c20(0x15c)&&(_0x3fe7e4[_0x2f5c20(0x11e)]=_0x299c85[_0x2f5c20(0x15c)]),_0x320cdc[_0x2f5c20(0x139)]===_0x2f5c20(0x117)&&_0x3fe7e4['id']&&(_0x3fe7e4['id']=_0x3fe7e4['id']+_0x2d181c[_0x2f5c20(0x144)]),Object[_0x2f5c20(0x110)](_0x3fe7e4)[_0x2f5c20(0xd7)](([_0x21ceb4,_0x4cdfa2])=>{const _0x2f6a17=_0x2f5c20;_0x21ceb4==='mask'&&typeof _0x4cdfa2==_0x2f6a17(0xdd)&&(_0x3fe7e4[_0x21ceb4]=_0x4cdfa2[_0x2f6a17(0x14b)](/url\(#(.*)\)/,'url(#$1'+_0x2d181c['idSuffix']+')'));});const {defIds:_0x25ac31}=_0x2d181c;return!_0x25ac31||_0x25ac31['length']===0x0||(_0x320cdc[_0x2f5c20(0x139)]===_0x2f5c20(0xd6)&&_0x3fe7e4[_0x2f5c20(0xeb)]&&(_0x3fe7e4['xlink:href']=_0x3fe7e4[_0x2f5c20(0xeb)]+_0x2d181c[_0x2f5c20(0x144)]),Object[_0x2f5c20(0x110)](_0x3fe7e4)[_0x2f5c20(0xd7)](([_0x320c28,_0x481b3f])=>{const _0x3376b2=_0x2f5c20;typeof _0x481b3f=='string'&&(_0x3fe7e4[_0x320c28]=_0x481b3f[_0x3376b2(0x14b)](/url\(#(.*)\)/,_0x3376b2(0x116)+_0x2d181c[_0x3376b2(0x144)]+')'));})),_0x3fe7e4;}function Ee(_0x27452f,_0x20acd1){const _0x418da0=_0x35a141;var _0x2f0d28;const {defIds:_0x3d0b9a}=_0x20acd1;return!_0x3d0b9a||_0x3d0b9a[_0x418da0(0x12c)]===0x0?_0x27452f:_0x27452f[_0x418da0(0x139)]===_0x418da0(0xe9)&&((_0x2f0d28=_0x27452f[_0x418da0(0xf1)])!=null&&_0x2f0d28[_0x418da0(0x12c)])?{..._0x27452f,'children':_0x27452f[_0x418da0(0xf1)][_0x418da0(0x11b)](_0x3ccb5a=>typeof _0x3ccb5a[_0x418da0(0xfb)]['id']==_0x418da0(0xdd)&&_0x3d0b9a&&_0x3d0b9a['includes'](_0x3ccb5a['attrs']['id'])?{..._0x3ccb5a,'attrs':{..._0x3ccb5a[_0x418da0(0xfb)],'id':_0x3ccb5a[_0x418da0(0xfb)]['id']+_0x20acd1[_0x418da0(0x144)]}}:_0x3ccb5a)}:_0x27452f;}function Oe(){const _0xce9d7e=_0x35a141;return Math[_0xce9d7e(0x101)]()[_0xce9d7e(0xf9)](0x24)[_0xce9d7e(0xc7)](0x2,0x8);}k[_0x35a141(0xc2)]=_0x35a141(0x106);const we={'tag':_0x35a141(0x124),'attrs':{'xmlns':_0x35a141(0x141),'fill':_0x35a141(0x13b),'viewBox':_0x35a141(0x138),'width':_0x35a141(0x14a),'height':_0x35a141(0x14a)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x35a141(0xd2)}},{'tag':_0x35a141(0x11a),'attrs':{'fill':_0x35a141(0xe3),'d':_0x35a141(0xcc),'fillRule':_0x35a141(0x13a),'clipRule':_0x35a141(0x13a)}}]},W=_0x16942a(function(_0x3bca55,_0x497ff0){const _0x4d9417=_0x35a141;return _0x1e3e45(k,Object[_0x4d9417(0x114)]({},_0x3bca55,{'id':'live-share-icon','ref':_0x497ff0,'icon':we}));});W['displayName']=_0x35a141(0x140);class L extends _0x2b7bf5{constructor(){const _0x4f7e8c=_0x35a141;super(...arguments),u(this,_0x4f7e8c(0x12d),new Set()),u(this,_0x4f7e8c(0x14c),new Set());}['registerSharedOperation'](_0x58270a){const _0x342620=_0x35a141;return this[_0x342620(0x12d)][_0x342620(0x11c)](_0x58270a),_0x188785(()=>this[_0x342620(0x12d)][_0x342620(0x13f)](_0x58270a));}['registerInitialStateReporter'](_0xdf99a7){const _0xf960e5=_0x35a141;return this['_reporters'][_0xf960e5(0x11c)](_0xdf99a7),_0x188785(()=>this[_0xf960e5(0x14c)]['delete'](_0xdf99a7));}['shouldShareOperation'](_0x1a3da7){const _0x28a5be=_0x35a141;return this[_0x28a5be(0x12d)][_0x28a5be(0xea)](_0x1a3da7);}[_0x35a141(0x120)](_0x595e52){const _0x4d82b8=_0x35a141;return Array['from'](this[_0x4d82b8(0x14c)])[_0x4d82b8(0x11b)](_0x5ad1bc=>_0x5ad1bc(_0x595e52));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x4094c7,_0x23a221,_0xe91801,_0xf15f4b)=>{for(var _0x1780c2=_0xf15f4b>0x1?void 0x0:_0xf15f4b?Ne(_0x23a221,_0xe91801):_0x23a221,_0x59cda5=_0x4094c7['length']-0x1,_0x18578d;_0x59cda5>=0x0;_0x59cda5--)(_0x18578d=_0x4094c7[_0x59cda5])&&(_0x1780c2=_0x18578d(_0x1780c2)||_0x1780c2);return _0x1780c2;},_=(_0x3f28c7,_0x4435d1)=>(_0xd66d1,_0x4fa6e7)=>_0x4435d1(_0xd66d1,_0x4fa6e7,_0x3f28c7);let S=class extends _0x4222af{constructor(_0x239162,_0x3459e4,_0x2e7205){const _0x3dbd29=_0x35a141;super(),u(this,_0x3dbd29(0x134),new Map()),(this[_0x3dbd29(0xda)]=_0x239162,this['_injector']=_0x3459e4,this[_0x3dbd29(0x150)]=_0x2e7205,this['_init']());}async[_0x35a141(0xfd)](_0x31568e){const _0x1b710e=_0x35a141;return this['_entities'][_0x1b710e(0xea)](_0x31568e)||await this['_startLiveShareCoordinator'](_0x31568e),this[_0x1b710e(0x134)][_0x1b710e(0x161)](_0x31568e);}[_0x35a141(0x12f)](_0x474fd8){var _0xa5b180;return(_0xa5b180=this['_entities']['get'](_0x474fd8))!=null?_0xa5b180:null;}[_0x35a141(0x15a)](){const _0x272608=_0x35a141;this[_0x272608(0xda)][_0x272608(0x127)](_0x40dc09[_0x272608(0x11d)])[_0x272608(0x15b)](_0x323870(this['dispose$']))[_0x272608(0x122)](async _0x72312a=>{const _0xb5550=_0x272608,_0x2c12cb=_0x72312a[_0xb5550(0x168)]();this['_entities'][_0xb5550(0xea)](_0x2c12cb)||this[_0xb5550(0x113)](_0x2c12cb);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x40dc09[_0x272608(0x11d)])['pipe'](_0x323870(this['dispose$']))['subscribe'](_0x6a7b53=>{const _0x59a395=_0x272608,_0x4ead53=_0x6a7b53['getUnitId'](),_0x45837b=this[_0x59a395(0x134)][_0x59a395(0x161)](_0x4ead53);_0x45837b==null||_0x45837b[_0x59a395(0xfa)]();});}async['_startLiveShareCoordinator'](_0x106302){const _0x11cf6e=_0x35a141,_0x392e73=await this[_0x11cf6e(0x150)][_0x11cf6e(0x123)](_0x106302),_0xd46928=this[_0x11cf6e(0xe0)][_0x11cf6e(0x10f)](N,_0x106302,_0x392e73);return _0xd46928[_0x11cf6e(0x167)](),this['_entities'][_0x11cf6e(0x130)](_0x106302,_0xd46928),_0xd46928;}};S=Y([_(0x0,_0x53235a),_(0x1,_0x165c16(_0x30e964)),_(0x2,_0x165c16(_0x40e095))],S);var c=(_0xc5f2ad=>(_0xc5f2ad[_0x35a141(0x13c)]=_0x35a141(0x148),_0xc5f2ad[_0x35a141(0xe5)]=_0x35a141(0x128),_0xc5f2ad['FOLLOWING']=_0x35a141(0xf8),_0xc5f2ad[_0x35a141(0xcd)]=_0x35a141(0xce),_0xc5f2ad[_0x35a141(0x12e)]=_0x35a141(0x13e),_0xc5f2ad))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x4222af{constructor(_0x198981,_0x396675,_0x4098de,_0x111e8d,_0x4c39df){const _0x4638c8=_0x35a141;super(),u(this,_0x4638c8(0x12a),new _0x10e087(_0x4638c8(0x128))),u(this,'status$',this[_0x4638c8(0x12a)][_0x4638c8(0x133)]()),u(this,_0x4638c8(0x15a),!0x1),u(this,_0x4638c8(0xdc),null),u(this,_0x4638c8(0xc9),null),(this[_0x4638c8(0x158)]=_0x198981,this[_0x4638c8(0x136)]=_0x396675,this[_0x4638c8(0xc4)]=_0x4098de,this[_0x4638c8(0x153)]=_0x111e8d,this[_0x4638c8(0x143)]=_0x4c39df);}get[_0x35a141(0xca)](){const _0xe1cf94=_0x35a141;return this[_0xe1cf94(0x12a)][_0xe1cf94(0x126)]();}['dispose'](){const _0x5ef359=_0x35a141;var _0xe1c3f9;(_0xe1c3f9=this[_0x5ef359(0xdc)])==null||_0xe1c3f9[_0x5ef359(0xfa)](),this[_0x5ef359(0x12a)][_0x5ef359(0x107)](_0x5ef359(0x128)),this[_0x5ef359(0x12a)][_0x5ef359(0x159)]();}[_0x35a141(0xed)](){return this['_status'];}[_0x35a141(0x167)](){const _0x96f874=_0x35a141;this[_0x96f874(0x15a)]||(this[_0x96f874(0x15a)]=!0x0,this[_0x96f874(0x136)][_0x96f874(0x109)][_0x96f874(0x15b)](_0x323870(this[_0x96f874(0xe6)]))[_0x96f874(0x122)](_0x3586b4=>{const _0x24f561=_0x96f874;switch(_0x3586b4){case _0x3dc0be[_0x24f561(0x13c)]:this['_handleOffline']();break;case _0x3dc0be[_0x24f561(0x146)]:this[_0x24f561(0xd4)]();break;}}),this['_collabSession'][_0x96f874(0x169)][_0x96f874(0x15b)](_0x323870(this[_0x96f874(0xe6)]))[_0x96f874(0x122)](_0x2eee4b=>{const _0x697291=_0x96f874,{eventID:_0x16199a}=_0x2eee4b;switch(_0x16199a){case _0x19a841[_0x697291(0x10b)]:this[_0x697291(0x154)](_0x2eee4b);break;case _0x19a841[_0x697291(0x104)]:this['_handleOperation'](_0x2eee4b);break;case _0x19a841[_0x697291(0x10c)]:this[_0x697291(0x13d)]();break;case _0x19a841[_0x697291(0x10d)]:this[_0x697291(0x118)](_0x2eee4b);break;}}));}[_0x35a141(0x10e)](){const _0x319641=_0x35a141;this[_0x319641(0x136)][_0x319641(0xc3)]({'eventID':_0x19a841['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x319641(0x158)],'userID':this['_collabSession']['getMemberID']()}},this[_0x319641(0x158)]);}[_0x35a141(0xcf)](){const _0x510a7f=_0x35a141;this[_0x510a7f(0xca)]===_0x510a7f(0x13e)&&(this['_status$'][_0x510a7f(0x107)](_0x510a7f(0x128)),this['_collabSession'][_0x510a7f(0xc3)]({'eventID':_0x19a841[_0x510a7f(0x10c)],'data':{'unitID':this[_0x510a7f(0x158)]}},this['_unitID']));}[_0x35a141(0xe7)](){const _0x141861=_0x35a141;this['_status']===_0x141861(0xce)&&(this[_0x141861(0x12a)][_0x141861(0x107)](_0x141861(0xf8)),this[_0x141861(0xf5)]());}[_0x35a141(0xde)](){const _0x46e753=_0x35a141;this[_0x46e753(0xca)]===_0x46e753(0xf8)&&this[_0x46e753(0xd5)]();}[_0x35a141(0x154)](_0xc39aab){const _0x10235f=_0x35a141,{presenter:_0x4867f5}=_0xc39aab[_0x10235f(0x15d)],_0x3c5478=this['_collabSession'][_0x10235f(0x12b)]();this['_presenter']=_0x4867f5,_0x4867f5===_0x3c5478?(this[_0x10235f(0xd5)](),this[_0x10235f(0xdf)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x10235f(0xf5)]());}[_0x35a141(0x142)](){const _0x22dcbc=_0x35a141,_0x183924={'eventID':_0x19a841[_0x22dcbc(0x115)]};this['_collabSession'][_0x22dcbc(0xc3)](_0x183924,this[_0x22dcbc(0x158)]);}[_0x35a141(0x13d)](){const _0x56a686=_0x35a141;this[_0x56a686(0xc9)]=null,this[_0x56a686(0xca)]!==_0x56a686(0x13e)&&this['_beIdle']();}[_0x35a141(0x118)](_0x516e0e){const _0x4fbec5=_0x35a141;if(this[_0x4fbec5(0xca)]===_0x4fbec5(0xf8)&&this['_presenter']===_0x516e0e[_0x4fbec5(0x15d)][_0x4fbec5(0xf7)]){const _0x2a102f=_0x2fa26d(_0x516e0e['data'])[_0x4fbec5(0xf4)][_0x4fbec5(0x108)]()[_0x4fbec5(0x156)](_0x48f6ab=>_0x48f6ab['id']===_0x5da965['id']);if(_0x2a102f){const _0xc8f41d=_0x2a102f['params']['unitId'],_0x58f852=_0x2a102f['params']['sheet']['id'];setTimeout(()=>{const _0x22e260=_0x4fbec5;this[_0x22e260(0x143)][_0x22e260(0xf2)](_0x179248['id'],{'unitId':_0xc8f41d,'subUnitId':_0x58f852},{'fromCollab':!0x0});});}}}[_0x35a141(0xdf)](){const _0x251ac8=_0x35a141;this[_0x251ac8(0x12a)][_0x251ac8(0x107)](_0x251ac8(0x13e));const _0x53e37f=new Map(),_0x122914=this[_0x251ac8(0xdc)]=new _0x3da815();_0x122914[_0x251ac8(0x11c)](_0x188785(()=>{const _0x1be626=_0x251ac8;_0x53e37f[_0x1be626(0xd7)](_0x3e6467=>_0x3e6467[_0x1be626(0x159)]()),_0x53e37f['clear']();})),_0x122914[_0x251ac8(0x11c)](this[_0x251ac8(0x143)][_0x251ac8(0xc5)](_0x4a1ea2=>{const _0x5fe933=_0x251ac8;var _0x52cb58;if(_0x4a1ea2[_0x5fe933(0x149)]!==_0x1892f5[_0x5fe933(0x112)]||!this[_0x5fe933(0x153)][_0x5fe933(0xf3)](_0x4a1ea2['id']))return;const {id:_0x4fd80a}=_0x4a1ea2;let _0x41753e;_0x53e37f[_0x5fe933(0xea)](_0x4fd80a)?_0x41753e=_0x53e37f[_0x5fe933(0x161)](_0x4fd80a):(_0x41753e=new _0x415407(),_0x53e37f['set'](_0x4fd80a,_0x41753e),_0x41753e[_0x5fe933(0x15b)](_0x5b155c((_0x52cb58=this['_configService'][_0x5fe933(0xff)](Ce))!=null?_0x52cb58:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5fe933(0x122)](_0x32d65e=>{const _0x323cd9=_0x5fe933;this[_0x323cd9(0x136)]['send']({'eventID':_0x19a841[_0x323cd9(0x104)],'data':{'unitID':this[_0x323cd9(0x158)],'operations':{[_0x32d65e['id']]:{'id':_0x32d65e['id'],'params':JSON[_0x323cd9(0x121)](_0x32d65e['params'])}}}},this['_unitID']);})),_0x41753e['next'](_0x4a1ea2);})),this[_0x251ac8(0x153)][_0x251ac8(0x120)](this['_unitID'])['forEach'](_0x2151b6=>this[_0x251ac8(0x136)][_0x251ac8(0xc3)]({'eventID':_0x19a841['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x251ac8(0x158)],'operations':{[_0x2151b6['id']]:{'id':_0x2151b6['id'],'params':JSON[_0x251ac8(0x121)](_0x2151b6[_0x251ac8(0xd1)])}}}},this[_0x251ac8(0x158)]));}[_0x35a141(0xec)](){const _0x471466=_0x35a141;var _0x53f315;this['_status$'][_0x471466(0x107)](_0x471466(0x128)),(_0x53f315=this[_0x471466(0xdc)])==null||_0x53f315[_0x471466(0xfa)](),this['_commandDisposable']=null;}[_0x35a141(0xf5)](){const _0x30d43b=_0x35a141;var _0x2a9a54;(_0x2a9a54=this['_commandDisposable'])==null||_0x2a9a54[_0x30d43b(0xfa)](),this[_0x30d43b(0x12a)][_0x30d43b(0x107)](_0x30d43b(0xf8));}[_0x35a141(0x151)](){const _0x559ef9=_0x35a141;var _0x582f2f;this[_0x559ef9(0x12a)][_0x559ef9(0x107)](_0x559ef9(0x128)),(_0x582f2f=this[_0x559ef9(0xdc)])==null||_0x582f2f[_0x559ef9(0xfa)](),this[_0x559ef9(0xdc)]=null;}[_0x35a141(0xd5)](){const _0x220f8b=_0x35a141;var _0x518f54;this[_0x220f8b(0x12a)][_0x220f8b(0x107)](_0x220f8b(0xce)),(_0x518f54=this[_0x220f8b(0xdc)])==null||_0x518f54[_0x220f8b(0xfa)]();}[_0x35a141(0x105)](_0x15f687){const _0x25e92c=_0x35a141;if([_0x25e92c(0x13e),_0x25e92c(0xce),_0x25e92c(0x148)][_0x25e92c(0x163)](this['_status'])||!_0x15f687[_0x25e92c(0x15d)][_0x25e92c(0x135)]||_0x15f687['data'][_0x25e92c(0x135)]===this[_0x25e92c(0x136)][_0x25e92c(0x12b)]())return;this[_0x25e92c(0xca)]===_0x25e92c(0x128)&&this['_startFollowing']();const _0xc3a9f0=_0x15f687[_0x25e92c(0x15d)]['operations'];Object['values'](_0xc3a9f0)[_0x25e92c(0xd7)](_0x4f24a6=>{const _0x4862a7=_0x25e92c;this[_0x4862a7(0x143)][_0x4862a7(0xf2)](_0x4f24a6['id'],_0x4f24a6[_0x4862a7(0xd1)]?JSON[_0x4862a7(0xc8)](_0x4f24a6[_0x4862a7(0xd1)]):null,{'fromCollab':!0x0});});}[_0x35a141(0x165)](){const _0x2057b1=_0x35a141;var _0x37bbfb;this[_0x2057b1(0x12a)][_0x2057b1(0x107)](_0x2057b1(0x148)),(_0x37bbfb=this[_0x2057b1(0xdc)])==null||_0x37bbfb[_0x2057b1(0xfa)]();}[_0x35a141(0xd4)](){const _0x2e1dec=_0x35a141;this[_0x2e1dec(0x12a)]['next'](_0x2e1dec(0x128)),this[_0x2e1dec(0x142)]();}};N=Y([_(0x2,_0xe5fba7),_(0x3,_0x165c16(L)),_(0x4,_0x57b8d2)],N);function Le(){const _0x4ddfc0=_0x35a141,_0x3c3ef5=_0x24114a(S),_0x41a600=_0x24114a(_0x53235a),_0x9019b5=_0x37e545(()=>_0x41a600[_0x4ddfc0(0x10a)](_0x40dc09[_0x4ddfc0(0x11d)]),void 0x0,!0x1,[]),[_0x19d374,_0x1262a7]=_0x1c29a4(null),[_0x516060,_0x28cc4a]=_0x1c29a4(c[_0x4ddfc0(0xe5)]),_0x24c553=_0x23045f(null);return _0x54e30b(()=>(_0x9019b5&&_0x3c3ef5['getLiveShareCoordinator'](_0x9019b5['getUnitId']())[_0x4ddfc0(0x157)](_0x3a2727=>{const _0x4c3938=_0x4ddfc0;_0x1262a7(_0x3a2727),_0x24c553[_0x4c3938(0xf6)]=_0x3a2727[_0x4c3938(0xd3)]['subscribe'](_0x4e63b4=>{_0x28cc4a(_0x4e63b4);});}),()=>{const _0x5e4a34=_0x4ddfc0;var _0xa767bf;(_0xa767bf=_0x24c553[_0x5e4a34(0xf6)])==null||_0xa767bf[_0x5e4a34(0x125)](),_0x24c553[_0x5e4a34(0xf6)]=null;}),[_0x9019b5,_0x3c3ef5]),_0x19d374?_0x886542(_0x152f1,{'align':'end','disabled':_0x516060===c['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x886542(Re,{'status':_0x516060,'coordinator':_0x19d374}),'children':_0x886542('button',{'className':_0x423a38(_0x4ddfc0(0x111),{'univer-cursor-not-allowed':_0x516060===c[_0x4ddfc0(0x13c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x516060!==c[_0x4ddfc0(0x13c)]}),'type':_0x4ddfc0(0x14f),'children':_0x886542(W,{'className':'univer-size-4'})})}):null;}function Re(_0x1d9a8e){const _0x461228=_0x35a141,{status:_0x8a12a1,coordinator:_0x3f4a13}=_0x1d9a8e;switch(_0x8a12a1){case c[_0x461228(0xe5)]:return _0x886542($e,{'coordinator':_0x3f4a13});case c[_0x461228(0x164)]:return _0x886542(xe,{'coordinator':_0x3f4a13});case c[_0x461228(0xcd)]:return _0x886542(Pe,{'coordinator':_0x3f4a13});case c[_0x461228(0x13c)]:return _0x886542(Te,{});case c[_0x461228(0x12e)]:return _0x886542(Ae,{'coordinator':_0x3f4a13});default:return null;}}function $e(_0xf675e){const _0x3d8ce4=_0x35a141,{coordinator:_0x53ba50}=_0xf675e;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542('div',{'className':_0x3d8ce4(0x160),'children':_0x3d8ce4(0x11f)}),_0x886542(_0xf38cce,{'onClick':()=>_0x53ba50[_0x3d8ce4(0x10e)](),'children':_0x3d8ce4(0xe8)})]});}function xe(_0x1c0226){const _0x207834=_0x35a141,{coordinator:_0x46490d}=_0x1c0226;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x207834(0xd0),{'className':_0x207834(0x160),'children':_0x207834(0x145)}),_0x886542(_0xf38cce,{'onClick':()=>_0x46490d[_0x207834(0xde)](),'children':_0x207834(0xd9)})]});}function Pe(_0x31ddb8){const _0x2cac44=_0x35a141,{coordinator:_0x46f68b}=_0x31ddb8;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x2cac44(0xd0),{'className':_0x2cac44(0x160),'children':_0x2cac44(0x15f)}),_0x886542(_0xf38cce,{'variant':_0x2cac44(0xe1),'onClick':()=>_0x46f68b[_0x2cac44(0xe7)](),'children':_0x2cac44(0x129)})]});}function Ae(_0x32dfa4){const _0x74bc2e=_0x35a141,{coordinator:_0x29010d}=_0x32dfa4;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x74bc2e(0xd0),{'className':_0x74bc2e(0x160),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x886542(_0xf38cce,{'variant':_0x74bc2e(0x103),'onClick':()=>_0x29010d[_0x74bc2e(0xcf)](),'children':_0x74bc2e(0x147)})]});}function Te(){const _0x3f68bc=_0x35a141;return _0x886542(_0x4e4cd9,{'children':_0x3f68bc(0xef)});}var Fe=Object[_0x35a141(0xfc)],He=(_0x176f17,_0x486e7f,_0xf3826f,_0x45bbb3)=>{const _0x16e745=_0x35a141;for(var _0x195d61=_0x45bbb3>0x1?void 0x0:_0x45bbb3?Fe(_0x486e7f,_0xf3826f):_0x486e7f,_0xf77d72=_0x176f17[_0x16e745(0x12c)]-0x1,_0x71a8cc;_0xf77d72>=0x0;_0xf77d72--)(_0x71a8cc=_0x176f17[_0xf77d72])&&(_0x195d61=_0x71a8cc(_0x195d61)||_0x195d61);return _0x195d61;},A=(_0x53e660,_0x5740c1)=>(_0x14e0d1,_0x2766c3)=>_0x5740c1(_0x14e0d1,_0x2766c3,_0x53e660);let m=class extends _0x2b7bf5{constructor(_0x1ae60f,_0x34f4fc){const _0x5a2232=_0x35a141;super(),this[_0x5a2232(0xe0)]=_0x1ae60f,this['_uiPartsService']=_0x34f4fc,this[_0x5a2232(0xe4)]();}[_0x35a141(0xe4)](){const _0x41efd5=_0x35a141;this['disposeWithMe'](this[_0x41efd5(0x15e)]['registerComponent'](_0xb9814e[_0x41efd5(0x166)],()=>_0x23dc11(Le,this[_0x41efd5(0xe0)])));}};m=He([A(0x0,_0x165c16(_0x30e964)),A(0x1,_0x13d3ef)],m);const ye=_0x35a141(0x14e),T={};var Ue=Object[_0x35a141(0xfc)],Ve=(_0x13bd32,_0x5c20bc,_0x4c6982,_0x468b37)=>{const _0xb3639b=_0x35a141;for(var _0x16b2ff=_0x468b37>0x1?void 0x0:_0x468b37?Ue(_0x5c20bc,_0x4c6982):_0x5c20bc,_0x3036a=_0x13bd32[_0xb3639b(0x12c)]-0x1,_0x363b61;_0x3036a>=0x0;_0x3036a--)(_0x363b61=_0x13bd32[_0x3036a])&&(_0x16b2ff=_0x363b61(_0x16b2ff)||_0x16b2ff);return _0x16b2ff;},je=(_0x5a2b7f,_0x2c2ec2)=>(_0x5259b6,_0x577eb0)=>_0x2c2ec2(_0x5259b6,_0x577eb0,_0x5a2b7f);let I=class extends _0x2b7bf5{constructor(_0x48d20e){const _0x5846a2=_0x35a141;super(),this[_0x5846a2(0x153)]=_0x48d20e,this[_0x5846a2(0x15a)]();}[_0x35a141(0x15a)](){const _0x3ee4a5=_0x35a141;[_0x8c84dc['id'],_0x28c155['id'],_0x179248['id']][_0x3ee4a5(0xd7)](_0x36f824=>{const _0x44bd4e=_0x3ee4a5;this[_0x44bd4e(0x102)](this[_0x44bd4e(0x153)][_0x44bd4e(0x152)](_0x36f824));});}};I=Ve([je(0x0,_0x165c16(L))],I);var Me=Object['defineProperty'],ke=Object[_0x35a141(0xfc)],Ge=(_0x1cc2e7,_0xf33150,_0x377550)=>_0xf33150 in _0x1cc2e7?Me(_0x1cc2e7,_0xf33150,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x377550}):_0x1cc2e7[_0xf33150]=_0x377550,We=(_0x463fdc,_0x3b85ee,_0x16f7f9,_0x548715)=>{const _0x230a8b=_0x35a141;for(var _0xf46cfc=_0x548715>0x1?void 0x0:_0x548715?ke(_0x3b85ee,_0x16f7f9):_0x3b85ee,_0x54bf9e=_0x463fdc[_0x230a8b(0x12c)]-0x1,_0x2d771e;_0x54bf9e>=0x0;_0x54bf9e--)(_0x2d771e=_0x463fdc[_0x54bf9e])&&(_0xf46cfc=_0x2d771e(_0xf46cfc)||_0xf46cfc);return _0xf46cfc;},F=(_0x20fdf3,_0x4638f0)=>(_0x34c918,_0x622d6d)=>_0x4638f0(_0x34c918,_0x622d6d,_0x20fdf3),B=(_0x4c9ed6,_0x14d62f,_0x463170)=>Ge(_0x4c9ed6,typeof _0x14d62f!=_0x35a141(0xc1)?_0x14d62f+'':_0x14d62f,_0x463170);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x57f752{constructor(_0x5a69c4=T,_0x5d7ffc,_0x503605){const _0x5e692c=_0x35a141;super(),this[_0x5e692c(0xdb)]=_0x5a69c4,this[_0x5e692c(0xe0)]=_0x5d7ffc,this['_configService']=_0x503605;const {..._0x24de7b}=_0x16aada({},T,this[_0x5e692c(0xdb)]);this[_0x5e692c(0xc4)]['setConfig'](ye,_0x24de7b);}[_0x35a141(0xf0)](){const _0xecc05f=_0x35a141;_0xd8da1b(this[_0xecc05f(0xe0)],_0x109ea9([[L],[S],[I],[m]],this[_0xecc05f(0xdb)][_0xecc05f(0x137)])),_0xf181e2(this[_0xecc05f(0xe0)],[[I]]);}[_0x35a141(0x100)](){const _0x57a138=_0x35a141;_0xf181e2(this[_0x57a138(0xe0)],[[m]]);}};B(b,_0x35a141(0x149),_0x40dc09['UNIVER_UNKNOWN']),B(b,_0x35a141(0xee),Ye),b=We([_0x43f26d(_0x166481),F(0x1,_0x165c16(_0x30e964)),F(0x2,_0xe5fba7)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x59ac35,_0x193d18){const _0x539b41=_0x1a38,_0x36a813=_0x59ac35();while(!![]){try{const _0x1bd542=parseInt(_0x539b41(0x1e0))/0x1+-parseInt(_0x539b41(0x1dc))/0x2*(-parseInt(_0x539b41(0x1c5))/0x3)+-parseInt(_0x539b41(0x1f4))/0x4*(-parseInt(_0x539b41(0x1f0))/0x5)+-parseInt(_0x539b41(0x1cf))/0x6+parseInt(_0x539b41(0x1ec))/0x7*(-parseInt(_0x539b41(0x1ee))/0x8)+-parseInt(_0x539b41(0x1c9))/0x9*(parseInt(_0x539b41(0x1de))/0xa)+parseInt(_0x539b41(0x1c4))/0xb;if(_0x1bd542===_0x193d18)break;else _0x36a813['push'](_0x36a813['shift']());}catch(_0x2e197c){_0x36a813['push'](_0x36a813['shift']());}}}(_0x4b61,0x833fb),function(_0xf4b990,_0x39181d){const _0x3f8c24=_0x1a38;typeof exports==_0x3f8c24(0x1f6)&&typeof module<'u'?_0x39181d(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x3f8c24(0x1d4)&&define[_0x3f8c24(0x1ed)]?define([_0x3f8c24(0x1f5),_0x3f8c24(0x1d5),_0x3f8c24(0x1cd),_0x3f8c24(0x1e6),'@univerjs/sheets/facade',_0x3f8c24(0x1d2)],_0x39181d):(_0xf4b990=typeof globalThis<'u'?globalThis:_0xf4b990||self,_0x39181d(_0xf4b990[_0x3f8c24(0x1cc)],_0xf4b990['UniverEngineRender'],_0xf4b990[_0x3f8c24(0x1e3)],_0xf4b990['UniverSheetsUi'],_0xf4b990['UniverSheetsFacade'],_0xf4b990[_0x3f8c24(0x1e1)]));}(this,function(_0x4e59df,_0x3cd12b,_0x2447d8,_0x4a8982,_0x4cb350,_0x1239e7){'use strict';const _0x14e708=_0x1a38;class _0x2f67f2 extends _0x4cb350[_0x14e708(0x1cb)]{[_0x14e708(0x1c6)](_0x12290a,_0x46865e,_0x52881a,_0x48bdd6,_0x5cddeb){const _0x151b06=_0x14e708,_0x10901b=_0x12290a['get'](_0x4e59df[_0x151b06(0x1c8)]),_0x1dc24a=_0x12290a[_0x151b06(0x1df)](_0x3cd12b[_0x151b06(0x1f2)]),_0x3620d4=_0x46865e[_0x151b06(0x1e9)](),_0x55c0a8=_0x46865e['getActiveSheet'](),_0x1941e7=_0x10901b[_0x151b06(0x1ce)](_0x3620d4);(_0x1941e7==null?void 0x0:_0x1941e7[_0x151b06(0x1d8)]())!==_0x4e59df[_0x151b06(0x1db)]['PRESENTING']||(_0x52881a[_0x151b06(0x1d3)]()!==_0x55c0a8[_0x151b06(0x1d3)]()&&this[_0x151b06(0x1dd)][_0x151b06(0x1e7)](_0x2447d8[_0x151b06(0x1d1)]['id'],{'unitId':_0x3620d4,'subUnitId':_0x52881a[_0x151b06(0x1d3)]()}),!_0x1dc24a[_0x151b06(0x1c3)](_0x3620d4))||_0x5cddeb[_0x151b06(0x1d9)](_0x4a8982['SetScrollOperation']['id'],{'unitId':_0x46865e[_0x151b06(0x1e9)](),'sheetId':_0x52881a[_0x151b06(0x1d3)](),'sheetViewStartRow':_0x48bdd6[_0x151b06(0x1e8)],'sheetViewStartColumn':_0x48bdd6['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4cb350[_0x14e708(0x1cb)][_0x14e708(0x1ca)](_0x2f67f2);class _0x314cc7 extends _0x1239e7[_0x14e708(0x1f3)]{[_0x14e708(0x1c7)](){const _0x75fb75=_0x14e708;var _0x296d9c,_0x142d74;const _0x289f19=this[_0x75fb75(0x1f1)]['get'](_0x4e59df['LiveShareController']),_0x1e0278=(_0x296d9c=this[_0x75fb75(0x1e4)]())==null?void 0x0:_0x296d9c[_0x75fb75(0x1d6)]();if(!_0x1e0278)throw new Error('No\x20active\x20workbook\x20found.');const _0x46b35b=_0x289f19[_0x75fb75(0x1ce)](_0x1e0278);return(_0x142d74=_0x46b35b==null?void 0x0:_0x46b35b[_0x75fb75(0x1d8)]())!=null?_0x142d74:_0x4e59df[_0x75fb75(0x1db)][_0x75fb75(0x1e5)];}[_0x14e708(0x1ea)](){const _0x566be9=_0x14e708;var _0x2f9e9a;const _0x1fa64f=this[_0x566be9(0x1f1)]['get'](_0x4e59df[_0x566be9(0x1c8)]),_0x259926=(_0x2f9e9a=this['getActiveWorkbook']())==null?void 0x0:_0x2f9e9a['getId']();if(!_0x259926)throw new Error('No\x20active\x20workbook\x20found.');const _0xdc3b16=_0x1fa64f[_0x566be9(0x1ce)](_0x259926);if(!_0xdc3b16)throw new Error(_0x566be9(0x1f7));_0xdc3b16[_0x566be9(0x1ea)]();}[_0x14e708(0x1d7)](){const _0x590909=_0x14e708;var _0x32f3bc;const _0x42dfb6=this[_0x590909(0x1f1)]['get'](_0x4e59df[_0x590909(0x1c8)]),_0x57ee9d=(_0x32f3bc=this['getActiveWorkbook']())==null?void 0x0:_0x32f3bc['getId']();if(!_0x57ee9d)throw new Error(_0x590909(0x1eb));const _0x5839b4=_0x42dfb6[_0x590909(0x1ce)](_0x57ee9d);if(!_0x5839b4)throw new Error(_0x590909(0x1f7));_0x5839b4[_0x590909(0x1d7)]();}['startPresenting'](){const _0x5c05eb=_0x14e708;var _0x4a2687;const _0x5e3524=this[_0x5c05eb(0x1f1)]['get'](_0x4e59df[_0x5c05eb(0x1c8)]),_0x8a8638=(_0x4a2687=this[_0x5c05eb(0x1e4)]())==null?void 0x0:_0x4a2687[_0x5c05eb(0x1d6)]();if(!_0x8a8638)throw new Error('No\x20active\x20workbook\x20found.');const _0x437d08=_0x5e3524['getLiveShareCoordinatorSync'](_0x8a8638);if(!_0x437d08)throw new Error(_0x5c05eb(0x1f7));_0x437d08[_0x5c05eb(0x1d0)]();}[_0x14e708(0x1e2)](){const _0x546016=_0x14e708;var _0x54a325;const _0x280cab=this[_0x546016(0x1f1)][_0x546016(0x1df)](_0x4e59df[_0x546016(0x1c8)]),_0x1040ca=(_0x54a325=this[_0x546016(0x1e4)]())==null?void 0x0:_0x54a325[_0x546016(0x1d6)]();if(!_0x1040ca)throw new Error(_0x546016(0x1eb));const _0x267c67=_0x280cab['getLiveShareCoordinatorSync'](_0x1040ca);if(!_0x267c67)throw new Error(_0x546016(0x1f7));_0x267c67['stopPresenting']();}}_0x1239e7['FUniver'][_0x14e708(0x1ca)](_0x314cc7);class _0x12b96b extends _0x1239e7[_0x14e708(0x1ef)]{get[_0x14e708(0x1da)](){return _0x4e59df['LiveShareStatus'];}}_0x1239e7[_0x14e708(0x1ef)][_0x14e708(0x1ca)](_0x12b96b);}));function _0x1a38(_0x2c11c2,_0x44df6f){_0x2c11c2=_0x2c11c2-0x1c3;const _0x4b6191=_0x4b61();let _0x1a386f=_0x4b6191[_0x2c11c2];return _0x1a386f;}function _0x4b61(){const _0x129e9c=['function','@univerjs/engine-render','getId','stopFollowing','getStatus','syncExecuteCommand','LiveShareStatusEnum','LiveShareStatus','8TTrRoD','_commandService','23340oTodCC','get','1037251SJWrrJ','UniverCoreFacade','stopPresenting','UniverSheets','getActiveWorkbook','IDLE','@univerjs/sheets-ui','executeCommand','startRow','getUnitId','startFollowing','No\x20active\x20workbook\x20found.','91IIhaUt','amd','420568KfrdXn','FEnum','1060FFanls','_injector','IRenderManagerService','FUniver','14732sQwzwu','@univerjs-pro/live-share','object','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getRenderById','7425484rXkyzc','360576XvaZEs','_initialize','getLiveShareStatus','LiveShareController','3006tgZzca','extend','FRange','UniverProLiveShare','@univerjs/sheets','getLiveShareCoordinatorSync','5839710cBbDib','tryStartPresenting','SetWorksheetActiveOperation','@univerjs/core/facade','getSheetId'];_0x4b61=function(){return _0x129e9c;};return _0x4b61();}
1
+ function _0x5a87(_0x2f8fed,_0x56bbd7){_0x2f8fed=_0x2f8fed-0xe0;const _0x1c8efb=_0x1c8e();let _0x5a877e=_0x1c8efb[_0x2f8fed];return _0x5a877e;}(function(_0x2edfaf,_0x40a817){const _0x43a38c=_0x5a87,_0x45bb70=_0x2edfaf();while(!![]){try{const _0x250254=-parseInt(_0x43a38c(0xfc))/0x1+-parseInt(_0x43a38c(0x107))/0x2+-parseInt(_0x43a38c(0xf2))/0x3+parseInt(_0x43a38c(0xf1))/0x4*(-parseInt(_0x43a38c(0xef))/0x5)+parseInt(_0x43a38c(0xf6))/0x6*(parseInt(_0x43a38c(0xed))/0x7)+parseInt(_0x43a38c(0xfb))/0x8*(parseInt(_0x43a38c(0xe5))/0x9)+parseInt(_0x43a38c(0x103))/0xa*(parseInt(_0x43a38c(0xf5))/0xb);if(_0x250254===_0x40a817)break;else _0x45bb70['push'](_0x45bb70['shift']());}catch(_0x1ca1a0){_0x45bb70['push'](_0x45bb70['shift']());}}}(_0x1c8e,0x7927f),function(_0x4d80d5,_0x4f8384){const _0x2b9965=_0x5a87;typeof exports==_0x2b9965(0xfe)&&typeof module<'u'?_0x4f8384(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x2b9965(0xe7)]?define([_0x2b9965(0xea),'@univerjs/engine-render',_0x2b9965(0x102),_0x2b9965(0xec),_0x2b9965(0x115),_0x2b9965(0xe2)],_0x4f8384):(_0x4d80d5=typeof globalThis<'u'?globalThis:_0x4d80d5||self,_0x4f8384(_0x4d80d5[_0x2b9965(0xe8)],_0x4d80d5[_0x2b9965(0xe9)],_0x4d80d5['UniverSheets'],_0x4d80d5['UniverSheetsUi'],_0x4d80d5[_0x2b9965(0x10c)],_0x4d80d5[_0x2b9965(0x110)]));}(this,function(_0x547bd2,_0x4c0eb9,_0x34ac57,_0x34a9c8,_0x25493e,_0x408f87){'use strict';const _0x445309=_0x5a87;class _0x3d844d extends _0x25493e[_0x445309(0xff)]{[_0x445309(0xf4)](_0x5daac4,_0x287827,_0x14473a,_0x20a40b,_0x1345d6){const _0xf82343=_0x445309,_0x197a21=_0x5daac4['get'](_0x547bd2[_0xf82343(0xeb)]),_0x21cd6b=_0x5daac4[_0xf82343(0xe6)](_0x4c0eb9[_0xf82343(0x10e)]),_0x1ea4ea=_0x287827[_0xf82343(0x106)](),_0x10d124=_0x287827['getActiveSheet'](),_0x252d92=_0x197a21[_0xf82343(0x101)](_0x1ea4ea);(_0x252d92==null?void 0x0:_0x252d92[_0xf82343(0xe4)]())!==_0x547bd2[_0xf82343(0xee)][_0xf82343(0x104)]||(_0x14473a[_0xf82343(0x10d)]()!==_0x10d124[_0xf82343(0x10d)]()&&this[_0xf82343(0x109)][_0xf82343(0x116)](_0x34ac57[_0xf82343(0x10a)]['id'],{'unitId':_0x1ea4ea,'subUnitId':_0x14473a[_0xf82343(0x10d)]()}),!_0x21cd6b[_0xf82343(0xf0)](_0x1ea4ea))||_0x1345d6[_0xf82343(0xe1)](_0x34a9c8['SetScrollOperation']['id'],{'unitId':_0x287827['getUnitId'](),'sheetId':_0x14473a['getSheetId'](),'sheetViewStartRow':_0x20a40b[_0xf82343(0x114)],'sheetViewStartColumn':_0x20a40b[_0xf82343(0xf9)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x25493e['FRange'][_0x445309(0x112)](_0x3d844d);class _0x356cd2 extends _0x408f87[_0x445309(0x105)]{['getLiveShareStatus'](){const _0x531e4a=_0x445309;var _0x122290,_0x1fe4c1;const _0x17eec3=this[_0x531e4a(0x100)]['get'](_0x547bd2[_0x531e4a(0xeb)]),_0x219c3b=(_0x122290=this[_0x531e4a(0xf3)]())==null?void 0x0:_0x122290[_0x531e4a(0x111)]();if(!_0x219c3b)throw new Error(_0x531e4a(0x10b));const _0x1736df=_0x17eec3[_0x531e4a(0x101)](_0x219c3b);return(_0x1fe4c1=_0x1736df==null?void 0x0:_0x1736df[_0x531e4a(0xe4)]())!=null?_0x1fe4c1:_0x547bd2['LiveShareStatus'][_0x531e4a(0x113)];}[_0x445309(0x108)](){const _0x77c6e0=_0x445309;var _0x42eac7;const _0x3c3782=this[_0x77c6e0(0x100)]['get'](_0x547bd2['LiveShareController']),_0x116b29=(_0x42eac7=this['getActiveWorkbook']())==null?void 0x0:_0x42eac7['getId']();if(!_0x116b29)throw new Error(_0x77c6e0(0x10b));const _0xbedf10=_0x3c3782[_0x77c6e0(0x101)](_0x116b29);if(!_0xbedf10)throw new Error(_0x77c6e0(0xfa));_0xbedf10[_0x77c6e0(0x108)]();}[_0x445309(0xf8)](){const _0x38c99d=_0x445309;var _0x3ac81c;const _0x2a15f0=this[_0x38c99d(0x100)][_0x38c99d(0xe6)](_0x547bd2[_0x38c99d(0xeb)]),_0x29dd02=(_0x3ac81c=this[_0x38c99d(0xf3)]())==null?void 0x0:_0x3ac81c[_0x38c99d(0x111)]();if(!_0x29dd02)throw new Error(_0x38c99d(0x10b));const _0x19c467=_0x2a15f0['getLiveShareCoordinatorSync'](_0x29dd02);if(!_0x19c467)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x19c467[_0x38c99d(0xf8)]();}[_0x445309(0x10f)](){const _0x34f1a0=_0x445309;var _0x30da6f;const _0x1d1903=this[_0x34f1a0(0x100)][_0x34f1a0(0xe6)](_0x547bd2[_0x34f1a0(0xeb)]),_0x2c906e=(_0x30da6f=this[_0x34f1a0(0xf3)]())==null?void 0x0:_0x30da6f[_0x34f1a0(0x111)]();if(!_0x2c906e)throw new Error(_0x34f1a0(0x10b));const _0x1b9002=_0x1d1903[_0x34f1a0(0x101)](_0x2c906e);if(!_0x1b9002)throw new Error(_0x34f1a0(0xfa));_0x1b9002[_0x34f1a0(0xe3)]();}[_0x445309(0xe0)](){const _0x2e5262=_0x445309;var _0x1d9b2e;const _0x25b601=this[_0x2e5262(0x100)][_0x2e5262(0xe6)](_0x547bd2[_0x2e5262(0xeb)]),_0x4afd8a=(_0x1d9b2e=this['getActiveWorkbook']())==null?void 0x0:_0x1d9b2e['getId']();if(!_0x4afd8a)throw new Error(_0x2e5262(0x10b));const _0x11ca7e=_0x25b601[_0x2e5262(0x101)](_0x4afd8a);if(!_0x11ca7e)throw new Error(_0x2e5262(0xfa));_0x11ca7e[_0x2e5262(0xe0)]();}}_0x408f87[_0x445309(0x105)][_0x445309(0x112)](_0x356cd2);class _0x2dd2d6 extends _0x408f87[_0x445309(0xfd)]{get[_0x445309(0xf7)](){const _0x11cdf4=_0x445309;return _0x547bd2[_0x11cdf4(0xee)];}}_0x408f87[_0x445309(0xfd)][_0x445309(0x112)](_0x2dd2d6);}));function _0x1c8e(){const _0x2bd184=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','8cOYyMO','655117esTxnL','FEnum','object','FRange','_injector','getLiveShareCoordinatorSync','@univerjs/sheets','20zVIFpH','PRESENTING','FUniver','getUnitId','469512uVjYJD','startFollowing','_commandService','SetWorksheetActiveOperation','No\x20active\x20workbook\x20found.','UniverSheetsFacade','getSheetId','IRenderManagerService','startPresenting','UniverCoreFacade','getId','extend','IDLE','startRow','@univerjs/sheets/facade','executeCommand','stopPresenting','syncExecuteCommand','@univerjs/core/facade','tryStartPresenting','getStatus','3610269nIXQII','get','amd','UniverProLiveShare','UniverEngineRender','@univerjs-pro/live-share','LiveShareController','@univerjs/sheets-ui','7hCKovr','LiveShareStatus','841495JIwrnn','getRenderById','8DwprKc','299553dlKHwG','getActiveWorkbook','_initialize','2572141IFPYsF','5722644kRRuOw','LiveShareStatusEnum','stopFollowing','startColumn'];_0x1c8e=function(){return _0x2bd184;};return _0x1c8e();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4722(_0xa27757,_0x4025b4){_0xa27757=_0xa27757-0xac;const _0x1c77e5=_0x1c77();let _0x472281=_0x1c77e5[_0xa27757];return _0x472281;}(function(_0x585eeb,_0x2507cc){const _0x41d347=_0x4722,_0x248676=_0x585eeb();while(!![]){try{const _0x4dc5de=parseInt(_0x41d347(0x138))/0x1*(-parseInt(_0x41d347(0x109))/0x2)+parseInt(_0x41d347(0x17c))/0x3+parseInt(_0x41d347(0xb8))/0x4+parseInt(_0x41d347(0x11a))/0x5*(-parseInt(_0x41d347(0xfa))/0x6)+-parseInt(_0x41d347(0x186))/0x7*(-parseInt(_0x41d347(0xe9))/0x8)+parseInt(_0x41d347(0x178))/0x9*(-parseInt(_0x41d347(0xc1))/0xa)+-parseInt(_0x41d347(0x146))/0xb*(-parseInt(_0x41d347(0x128))/0xc);if(_0x4dc5de===_0x2507cc)break;else _0x248676['push'](_0x248676['shift']());}catch(_0x3d5fab){_0x248676['push'](_0x248676['shift']());}}}(_0x1c77,0x7fb0c),function(_0x56d792,_0x1d6aa5){const _0x5048b8=_0x4722;typeof exports==_0x5048b8(0x171)&&typeof module<'u'?_0x1d6aa5(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[_0x5048b8(0x189)]?define([_0x5048b8(0xe6),_0x5048b8(0x191),_0x5048b8(0x139),_0x5048b8(0x183),_0x5048b8(0x145),_0x5048b8(0x152),_0x5048b8(0xcc),_0x5048b8(0x144),'@univerjs/sheets',_0x5048b8(0x16b),_0x5048b8(0xb1),'@univerjs/sheets-ui'],_0x1d6aa5):(_0x56d792=typeof globalThis<'u'?globalThis:_0x56d792||self,_0x1d6aa5(_0x56d792[_0x5048b8(0x143)]={},_0x56d792['UniverCore'],_0x56d792[_0x5048b8(0x137)],_0x56d792[_0x5048b8(0x153)],_0x56d792['UniverDesign'],_0x56d792[_0x5048b8(0x153)],_0x56d792[_0x5048b8(0x17e)],_0x56d792['UniverProCollaborationClient'],_0x56d792['UniverSheets'],_0x56d792[_0x5048b8(0x16b)],_0x56d792[_0x5048b8(0x16b)][_0x5048b8(0x147)],_0x56d792[_0x5048b8(0x129)]));}(this,function(_0x5c670c,_0x28cd17,_0x34f791,_0x454e0b,_0x573b10,_0x1d34a9,_0x139ad0,_0x1f93cf,_0x2c6fb4,_0x565fda,_0x43d446,_0x4d26ff){'use strict';const _0x28afe1=_0x4722;var _0x166d0a=Object['defineProperty'],_0x333076=(_0x1671b4,_0x537b54,_0x37a661)=>_0x537b54 in _0x1671b4?_0x166d0a(_0x1671b4,_0x537b54,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37a661}):_0x1671b4[_0x537b54]=_0x37a661,_0x486061=(_0x2f0974,_0x2c4a6a,_0x2e37e8)=>_0x333076(_0x2f0974,typeof _0x2c4a6a!=_0x28afe1(0x151)?_0x2c4a6a+'':_0x2c4a6a,_0x2e37e8);function _0x365e6e({ref:_0x185037,..._0x4624df}){const _0x329919=_0x28afe1,{icon:_0x290dce,id:_0x5b0bb7,className:_0x1efb0d,extend:_0x54568a,..._0x35b692}=_0x4624df,_0x195d3a=('univerjs-icon\x20univerjs-icon-'+_0x5b0bb7+'\x20'+(_0x1efb0d||''))[_0x329919(0x169)](),_0x4588f6=_0x1d34a9['useRef']('_'+_0x3a4de0());return _0x2bae16(_0x290dce,''+_0x5b0bb7,{'defIds':_0x290dce[_0x329919(0x13d)],'idSuffix':_0x4588f6[_0x329919(0xdd)]},{'ref':_0x185037,'className':_0x195d3a,..._0x35b692},_0x54568a);}function _0x2bae16(_0x11f39e,_0x38c4da,_0x2f54c1,_0x4da880,_0x247009){const _0xc11945=_0x28afe1;return _0x1d34a9[_0xc11945(0x18c)](_0x11f39e[_0xc11945(0xb6)],{'key':_0x38c4da,..._0x5b6624(_0x11f39e,_0x2f54c1,_0x247009),..._0x4da880},(_0x1326fb(_0x11f39e,_0x2f54c1)[_0xc11945(0x142)]||[])['map']((_0x43457a,_0x490039)=>_0x2bae16(_0x43457a,_0x38c4da+'-'+_0x11f39e[_0xc11945(0xb6)]+'-'+_0x490039,_0x2f54c1,void 0x0,_0x247009)));}function _0x5b6624(_0x24a42d,_0x5a4e21,_0x1f4835){const _0x3dc6e5=_0x28afe1,_0xc83911={..._0x24a42d[_0x3dc6e5(0x10a)]};_0x1f4835!=null&&_0x1f4835[_0x3dc6e5(0x177)]&&_0xc83911[_0x3dc6e5(0x135)]===_0x3dc6e5(0x177)&&(_0xc83911[_0x3dc6e5(0x135)]=_0x1f4835[_0x3dc6e5(0x177)]),_0x24a42d['tag']===_0x3dc6e5(0x14d)&&_0xc83911['id']&&(_0xc83911['id']=_0xc83911['id']+_0x5a4e21[_0x3dc6e5(0x179)]),Object[_0x3dc6e5(0xb7)](_0xc83911)[_0x3dc6e5(0xdc)](([_0xfdc89e,_0x5341b2])=>{const _0x2c6f31=_0x3dc6e5;_0xfdc89e===_0x2c6f31(0x14d)&&typeof _0x5341b2==_0x2c6f31(0x18e)&&(_0xc83911[_0xfdc89e]=_0x5341b2[_0x2c6f31(0xe7)](/url\(#(.*)\)/,_0x2c6f31(0x160)+_0x5a4e21['idSuffix']+')'));});const {defIds:_0x590b3a}=_0x5a4e21;return!_0x590b3a||_0x590b3a[_0x3dc6e5(0xf3)]===0x0||(_0x24a42d[_0x3dc6e5(0xb6)]==='use'&&_0xc83911['xlink:href']&&(_0xc83911['xlink:href']=_0xc83911[_0x3dc6e5(0xfb)]+_0x5a4e21[_0x3dc6e5(0x179)]),Object['entries'](_0xc83911)[_0x3dc6e5(0xdc)](([_0x259147,_0x5f57a5])=>{const _0x3d9e06=_0x3dc6e5;typeof _0x5f57a5==_0x3d9e06(0x18e)&&(_0xc83911[_0x259147]=_0x5f57a5[_0x3d9e06(0xe7)](/url\(#(.*)\)/,_0x3d9e06(0x160)+_0x5a4e21[_0x3d9e06(0x179)]+')'));})),_0xc83911;}function _0x1326fb(_0x2d7fa4,_0x1621f5){const _0x226772=_0x28afe1;var _0x1a35fd;const {defIds:_0x114810}=_0x1621f5;return!_0x114810||_0x114810['length']===0x0?_0x2d7fa4:_0x2d7fa4['tag']===_0x226772(0x168)&&((_0x1a35fd=_0x2d7fa4[_0x226772(0x142)])!=null&&_0x1a35fd[_0x226772(0xf3)])?{..._0x2d7fa4,'children':_0x2d7fa4[_0x226772(0x142)]['map'](_0x37c8cf=>typeof _0x37c8cf[_0x226772(0x10a)]['id']==_0x226772(0x18e)&&_0x114810&&_0x114810[_0x226772(0xc0)](_0x37c8cf[_0x226772(0x10a)]['id'])?{..._0x37c8cf,'attrs':{..._0x37c8cf[_0x226772(0x10a)],'id':_0x37c8cf[_0x226772(0x10a)]['id']+_0x1621f5[_0x226772(0x179)]}}:_0x37c8cf)}:_0x2d7fa4;}function _0x3a4de0(){const _0x243d36=_0x28afe1;return Math[_0x243d36(0xcd)]()['toString'](0x24)[_0x243d36(0x141)](0x2,0x8);}_0x365e6e['displayName']='UniverIcon';const _0x239ca7={'tag':'svg','attrs':{'xmlns':_0x28afe1(0x102),'fill':'none','viewBox':_0x28afe1(0xe2),'width':_0x28afe1(0x16d),'height':'1em'},'children':[{'tag':_0x28afe1(0xf6),'attrs':{'fill':_0x28afe1(0xea),'d':_0x28afe1(0x118)}},{'tag':_0x28afe1(0xf6),'attrs':{'fill':_0x28afe1(0xea),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x28afe1(0x132),'clipRule':'evenodd'}}]},_0xc68c30=_0x1d34a9[_0x28afe1(0xdf)](function(_0x3d6c9b,_0x4c18f0){const _0x35d57f=_0x28afe1;return _0x1d34a9[_0x35d57f(0x18c)](_0x365e6e,Object['assign']({},_0x3d6c9b,{'id':'live-share-icon','ref':_0x4c18f0,'icon':_0x239ca7}));});_0xc68c30['displayName']=_0x28afe1(0x136);class _0x16b4e6 extends _0x28cd17[_0x28afe1(0x122)]{constructor(){const _0x2d52ae=_0x28afe1;super(...arguments),_0x486061(this,_0x2d52ae(0xec),new Set()),_0x486061(this,_0x2d52ae(0x162),new Set());}[_0x28afe1(0x170)](_0x59a2ce){const _0x22bfe6=_0x28afe1;return this[_0x22bfe6(0xec)][_0x22bfe6(0xf5)](_0x59a2ce),_0x28cd17['toDisposable'](()=>this[_0x22bfe6(0xec)]['delete'](_0x59a2ce));}[_0x28afe1(0x115)](_0x5b9ae8){const _0x44735e=_0x28afe1;return this[_0x44735e(0x162)][_0x44735e(0xf5)](_0x5b9ae8),_0x28cd17[_0x44735e(0x175)](()=>this[_0x44735e(0x162)][_0x44735e(0x120)](_0x5b9ae8));}[_0x28afe1(0x15d)](_0x55b4a9){const _0x4ddeec=_0x28afe1;return this[_0x4ddeec(0xec)][_0x4ddeec(0x14e)](_0x55b4a9);}[_0x28afe1(0x18f)](_0x3ddbd1){const _0x1a361a=_0x28afe1;return Array[_0x1a361a(0xb2)](this[_0x1a361a(0x162)])[_0x1a361a(0x16e)](_0xe1bf82=>_0xe1bf82(_0x3ddbd1));}}var _0xbb86c9=Object['getOwnPropertyDescriptor'],_0x1ba6b5=(_0x2f1ffe,_0x5be0f9,_0x3dad15,_0x56ffe3)=>{const _0x805362=_0x28afe1;for(var _0xc5a90=_0x56ffe3>0x1?void 0x0:_0x56ffe3?_0xbb86c9(_0x5be0f9,_0x3dad15):_0x5be0f9,_0x2e0ead=_0x2f1ffe[_0x805362(0xf3)]-0x1,_0x34f2fa;_0x2e0ead>=0x0;_0x2e0ead--)(_0x34f2fa=_0x2f1ffe[_0x2e0ead])&&(_0xc5a90=_0x34f2fa(_0xc5a90)||_0xc5a90);return _0xc5a90;},_0x480b5b=(_0x538bf1,_0x20ac4d)=>(_0x57ba8b,_0x1cbc76)=>_0x20ac4d(_0x57ba8b,_0x1cbc76,_0x538bf1);_0x5c670c[_0x28afe1(0x11f)]=class extends _0x28cd17[_0x28afe1(0x188)]{constructor(_0x5802ee,_0x41a5c8,_0x5a477f){const _0x4d7b91=_0x28afe1;super(),_0x486061(this,'_entities',new Map()),(this[_0x4d7b91(0x14b)]=_0x5802ee,this['_injector']=_0x41a5c8,this[_0x4d7b91(0x149)]=_0x5a477f,this[_0x4d7b91(0xe4)]());}async[_0x28afe1(0x15a)](_0x351e70){const _0x30db84=_0x28afe1;return this['_entities']['has'](_0x351e70)||await this['_startLiveShareCoordinator'](_0x351e70),this[_0x30db84(0xe8)][_0x30db84(0xde)](_0x351e70);}['getLiveShareCoordinatorSync'](_0x444b5c){const _0x21148b=_0x28afe1;var _0xd3a965;return(_0xd3a965=this['_entities'][_0x21148b(0xde)](_0x444b5c))!=null?_0xd3a965:null;}['_init'](){const _0x542527=_0x28afe1;this[_0x542527(0x14b)][_0x542527(0x14c)](_0x28cd17[_0x542527(0xca)][_0x542527(0x104)])['pipe'](_0x43d446['takeUntil'](this[_0x542527(0xda)]))[_0x542527(0x121)](async _0x192bdf=>{const _0x84d15a=_0x542527,_0x5ad033=_0x192bdf[_0x84d15a(0xbe)]();this['_entities'][_0x84d15a(0x14e)](_0x5ad033)||this[_0x84d15a(0x172)](_0x5ad033);}),this['_univerInstanceService'][_0x542527(0x140)](_0x28cd17[_0x542527(0xca)]['UNIVER_SHEET'])['pipe'](_0x43d446[_0x542527(0xd4)](this['dispose$']))[_0x542527(0x121)](_0x153fde=>{const _0x116b08=_0x542527,_0x9b7a02=_0x153fde[_0x116b08(0xbe)](),_0x3eaa6f=this[_0x116b08(0xe8)][_0x116b08(0xde)](_0x9b7a02);_0x3eaa6f==null||_0x3eaa6f[_0x116b08(0x12d)]();});}async[_0x28afe1(0x172)](_0x6c96ba){const _0x1d18a9=_0x28afe1,_0x50425c=await this['_collabSessionService'][_0x1d18a9(0x13f)](_0x6c96ba),_0x4be5c0=this[_0x1d18a9(0x13b)]['createInstance'](_0x5c670c[_0x1d18a9(0x156)],_0x6c96ba,_0x50425c);return _0x4be5c0[_0x1d18a9(0x18a)](),this[_0x1d18a9(0xe8)][_0x1d18a9(0xcf)](_0x6c96ba,_0x4be5c0),_0x4be5c0;}},_0x5c670c[_0x28afe1(0x11f)]=_0x1ba6b5([_0x480b5b(0x0,_0x28cd17['IUniverInstanceService']),_0x480b5b(0x1,_0x28cd17[_0x28afe1(0x10d)](_0x28cd17['Injector'])),_0x480b5b(0x2,_0x28cd17[_0x28afe1(0x10d)](_0x1f93cf[_0x28afe1(0x13c)]))],_0x5c670c[_0x28afe1(0x11f)]);var _0x1c6cec=(_0x9e36ab=>(_0x9e36ab[_0x28afe1(0xf8)]=_0x28afe1(0xaf),_0x9e36ab[_0x28afe1(0xd3)]=_0x28afe1(0xd9),_0x9e36ab[_0x28afe1(0xce)]=_0x28afe1(0xe1),_0x9e36ab['NOT_FOLLOWING']='not-following',_0x9e36ab[_0x28afe1(0x14a)]=_0x28afe1(0xee),_0x9e36ab))(_0x1c6cec||{});const _0x1c389d=_0x28afe1(0x106),_0x25d6c9=0xc8;_0x5c670c[_0x28afe1(0x156)]=class extends _0x28cd17[_0x28afe1(0x188)]{constructor(_0x3242d2,_0x3be370,_0x5bc493,_0x47fe15,_0x4cb150){const _0x1ccc92=_0x28afe1;super(),_0x486061(this,_0x1ccc92(0x150),new _0x565fda['BehaviorSubject'](_0x1ccc92(0xd9))),_0x486061(this,_0x1ccc92(0x190),this[_0x1ccc92(0x150)][_0x1ccc92(0x134)]()),_0x486061(this,_0x1ccc92(0xe4),!0x1),_0x486061(this,_0x1ccc92(0x12e),null),_0x486061(this,_0x1ccc92(0xc9),null),(this['_unitID']=_0x3242d2,this[_0x1ccc92(0xb4)]=_0x3be370,this[_0x1ccc92(0xd8)]=_0x5bc493,this[_0x1ccc92(0x114)]=_0x47fe15,this[_0x1ccc92(0x12f)]=_0x4cb150);}get['_status'](){const _0x1eebd3=_0x28afe1;return this[_0x1eebd3(0x150)]['getValue']();}[_0x28afe1(0x12d)](){const _0x3043a0=_0x28afe1;var _0xc63c0e;(_0xc63c0e=this[_0x3043a0(0x12e)])==null||_0xc63c0e[_0x3043a0(0x12d)](),this[_0x3043a0(0x150)][_0x3043a0(0x173)](_0x3043a0(0xd9)),this[_0x3043a0(0x150)]['complete']();}[_0x28afe1(0xe5)](){const _0x2fbfb3=_0x28afe1;return this[_0x2fbfb3(0xbd)];}[_0x28afe1(0x18a)](){const _0x5d733f=_0x28afe1;this[_0x5d733f(0xe4)]||(this[_0x5d733f(0xe4)]=!0x0,this['_collabSession'][_0x5d733f(0x103)]['pipe'](_0x43d446['takeUntil'](this[_0x5d733f(0xda)]))[_0x5d733f(0x121)](_0x15e05d=>{const _0xcfe2d7=_0x5d733f;switch(_0x15e05d){case _0x1f93cf[_0xcfe2d7(0x18d)][_0xcfe2d7(0xf8)]:this[_0xcfe2d7(0xae)]();break;case _0x1f93cf[_0xcfe2d7(0x18d)][_0xcfe2d7(0xfe)]:this[_0xcfe2d7(0xb5)]();break;}}),this[_0x5d733f(0xb4)][_0x5d733f(0x10f)]['pipe'](_0x43d446[_0x5d733f(0xd4)](this[_0x5d733f(0xda)]))[_0x5d733f(0x121)](_0x218b3e=>{const _0xe4c085=_0x5d733f,{eventID:_0x443a56}=_0x218b3e;switch(_0x443a56){case _0x139ad0[_0xe4c085(0x15c)][_0xe4c085(0x148)]:this[_0xe4c085(0x126)](_0x218b3e);break;case _0x139ad0['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0xe4c085(0x163)](_0x218b3e);break;case _0x139ad0[_0xe4c085(0x15c)][_0xe4c085(0xf0)]:this[_0xe4c085(0x131)]();break;case _0x139ad0[_0xe4c085(0x15c)][_0xe4c085(0xc3)]:this['_handleNewChangeSets'](_0x218b3e);break;}}));}['tryStartPresenting'](){const _0x13a4de=_0x28afe1;this['_collabSession'][_0x13a4de(0xc5)]({'eventID':_0x139ad0[_0x13a4de(0x15c)][_0x13a4de(0x180)],'data':{'unitID':this[_0x13a4de(0xeb)],'userID':this['_collabSession'][_0x13a4de(0x112)]()}},this[_0x13a4de(0xeb)]);}[_0x28afe1(0x155)](){const _0x34e562=_0x28afe1;this[_0x34e562(0xbd)]===_0x34e562(0xee)&&(this['_status$'][_0x34e562(0x173)](_0x34e562(0xd9)),this[_0x34e562(0xb4)][_0x34e562(0xc5)]({'eventID':_0x139ad0[_0x34e562(0x15c)][_0x34e562(0xf0)],'data':{'unitID':this[_0x34e562(0xeb)]}},this[_0x34e562(0xeb)]));}[_0x28afe1(0xf2)](){const _0x27aa9e=_0x28afe1;this[_0x27aa9e(0xbd)]===_0x27aa9e(0xc2)&&(this[_0x27aa9e(0x150)][_0x27aa9e(0x173)](_0x27aa9e(0xe1)),this[_0x27aa9e(0x17d)]());}[_0x28afe1(0xf4)](){const _0x3d9204=_0x28afe1;this[_0x3d9204(0xbd)]==='following'&&this['_stopFollowing']();}[_0x28afe1(0x126)](_0x2ec35a){const _0x2f306b=_0x28afe1,{presenter:_0x36e14f}=_0x2ec35a[_0x2f306b(0x12b)],_0x38a7c9=this['_collabSession'][_0x2f306b(0x112)]();this[_0x2f306b(0xc9)]=_0x36e14f,_0x36e14f===_0x38a7c9?(this[_0x2f306b(0xc8)](),this['_startPresenting']()):this[_0x2f306b(0xbd)]!==_0x2f306b(0xc2)&&(this['_stopPresenting'](),this[_0x2f306b(0x17d)]());}[_0x28afe1(0x16a)](){const _0x872b5=_0x28afe1,_0x301de4={'eventID':_0x139ad0[_0x872b5(0x15c)][_0x872b5(0x176)]};this[_0x872b5(0xb4)][_0x872b5(0xc5)](_0x301de4,this['_unitID']);}[_0x28afe1(0x131)](){const _0x3f0871=_0x28afe1;this[_0x3f0871(0xc9)]=null,this[_0x3f0871(0xbd)]!==_0x3f0871(0xee)&&this[_0x3f0871(0xe0)]();}['_handleNewChangeSets'](_0x12d8b9){const _0x67620b=_0x28afe1;if(this[_0x67620b(0xbd)]==='following'&&this[_0x67620b(0xc9)]===_0x12d8b9['data']['memberID']){const _0x592a94=_0x139ad0['parseProtocolChangeset'](_0x12d8b9[_0x67620b(0x12b)])[_0x67620b(0xb3)][_0x67620b(0x133)]()['find'](_0x52cdf1=>_0x52cdf1['id']===_0x2c6fb4[_0x67620b(0x11d)]['id']);if(_0x592a94){const _0x5d60ae=_0x592a94[_0x67620b(0xd6)][_0x67620b(0xed)],_0x5aede7=_0x592a94['params'][_0x67620b(0x159)]['id'];setTimeout(()=>{const _0x5d06ab=_0x67620b;this[_0x5d06ab(0x12f)][_0x5d06ab(0x16f)](_0x2c6fb4[_0x5d06ab(0x185)]['id'],{'unitId':_0x5d60ae,'subUnitId':_0x5aede7},{'fromCollab':!0x0});});}}}[_0x28afe1(0xfc)](){const _0x682f50=_0x28afe1;this['_status$'][_0x682f50(0x173)]('presenting');const _0x238d6e=new Map(),_0x4cfd52=this[_0x682f50(0x12e)]=new _0x28cd17[(_0x682f50(0xf9))]();_0x4cfd52[_0x682f50(0xf5)](_0x28cd17[_0x682f50(0x175)](()=>{const _0x11544b=_0x682f50;_0x238d6e[_0x11544b(0xdc)](_0x465b79=>_0x465b79[_0x11544b(0xc7)]()),_0x238d6e[_0x11544b(0x158)]();})),_0x4cfd52[_0x682f50(0xf5)](this[_0x682f50(0x12f)]['onCommandExecuted'](_0x452b82=>{const _0x4cc680=_0x682f50;var _0x5aee9f;if(_0x452b82[_0x4cc680(0x107)]!==_0x28cd17[_0x4cc680(0x182)][_0x4cc680(0x13a)]||!this[_0x4cc680(0x114)][_0x4cc680(0x15d)](_0x452b82['id']))return;const {id:_0x3621d5}=_0x452b82;let _0x19f8fb;_0x238d6e[_0x4cc680(0x14e)](_0x3621d5)?_0x19f8fb=_0x238d6e[_0x4cc680(0xde)](_0x3621d5):(_0x19f8fb=new _0x565fda[(_0x4cc680(0xbb))](),_0x238d6e['set'](_0x3621d5,_0x19f8fb),_0x19f8fb['pipe'](_0x43d446['throttleTime']((_0x5aee9f=this['_configService'][_0x4cc680(0x154)](_0x1c389d))!=null?_0x5aee9f:_0x25d6c9,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4cc680(0x121)](_0x5754eb=>{const _0x11de8e=_0x4cc680;this[_0x11de8e(0xb4)]['send']({'eventID':_0x139ad0[_0x11de8e(0x15c)][_0x11de8e(0x110)],'data':{'unitID':this[_0x11de8e(0xeb)],'operations':{[_0x5754eb['id']]:{'id':_0x5754eb['id'],'params':JSON[_0x11de8e(0x10b)](_0x5754eb[_0x11de8e(0xd6)])}}}},this[_0x11de8e(0xeb)]);})),_0x19f8fb[_0x4cc680(0x173)](_0x452b82);})),this[_0x682f50(0x114)][_0x682f50(0x18f)](this[_0x682f50(0xeb)])[_0x682f50(0xdc)](_0x4327b0=>this[_0x682f50(0xb4)][_0x682f50(0xc5)]({'eventID':_0x139ad0[_0x682f50(0x15c)][_0x682f50(0x110)],'data':{'unitID':this[_0x682f50(0xeb)],'operations':{[_0x4327b0['id']]:{'id':_0x4327b0['id'],'params':JSON['stringify'](_0x4327b0['params'])}}}},this['_unitID']));}['_stopPresenting'](){const _0x1f19de=_0x28afe1;var _0x4221e2;this[_0x1f19de(0x150)][_0x1f19de(0x173)](_0x1f19de(0xd9)),(_0x4221e2=this[_0x1f19de(0x12e)])==null||_0x4221e2[_0x1f19de(0x12d)](),this[_0x1f19de(0x12e)]=null;}['_startFollowing'](){const _0x501033=_0x28afe1;var _0x6438a;(_0x6438a=this[_0x501033(0x12e)])==null||_0x6438a['dispose'](),this[_0x501033(0x150)][_0x501033(0x173)](_0x501033(0xe1));}[_0x28afe1(0xe0)](){const _0x4c7650=_0x28afe1;var _0x3033d1;this['_status$'][_0x4c7650(0x173)](_0x4c7650(0xd9)),(_0x3033d1=this[_0x4c7650(0x12e)])==null||_0x3033d1[_0x4c7650(0x12d)](),this['_commandDisposable']=null;}[_0x28afe1(0xc8)](){const _0x54d74b=_0x28afe1;var _0xa636ae;this[_0x54d74b(0x150)][_0x54d74b(0x173)]('not-following'),(_0xa636ae=this[_0x54d74b(0x12e)])==null||_0xa636ae[_0x54d74b(0x12d)]();}[_0x28afe1(0x163)](_0x35c233){const _0x39692b=_0x28afe1;if([_0x39692b(0xee),_0x39692b(0xc2),_0x39692b(0xaf)][_0x39692b(0xc0)](this['_status'])||!_0x35c233[_0x39692b(0x12b)][_0x39692b(0x166)]||_0x35c233['data'][_0x39692b(0x166)]===this[_0x39692b(0xb4)][_0x39692b(0x112)]())return;this[_0x39692b(0xbd)]===_0x39692b(0xd9)&&this[_0x39692b(0x17d)]();const _0x3cc429=_0x35c233['data'][_0x39692b(0xba)];Object[_0x39692b(0x117)](_0x3cc429)[_0x39692b(0xdc)](_0x56886e=>{const _0x422394=_0x39692b;this['_commandService'][_0x422394(0x16f)](_0x56886e['id'],_0x56886e[_0x422394(0xd6)]?JSON['parse'](_0x56886e[_0x422394(0xd6)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x261c0f=_0x28afe1;var _0x3f3c35;this[_0x261c0f(0x150)][_0x261c0f(0x173)](_0x261c0f(0xaf)),(_0x3f3c35=this[_0x261c0f(0x12e)])==null||_0x3f3c35[_0x261c0f(0x12d)]();}[_0x28afe1(0xb5)](){const _0x4c3708=_0x28afe1;this['_status$'][_0x4c3708(0x173)]('idle'),this[_0x4c3708(0x16a)]();}},_0x5c670c[_0x28afe1(0x156)]=_0x1ba6b5([_0x480b5b(0x2,_0x28cd17[_0x28afe1(0x15f)]),_0x480b5b(0x3,_0x28cd17[_0x28afe1(0x10d)](_0x16b4e6)),_0x480b5b(0x4,_0x28cd17['ICommandService'])],_0x5c670c['LiveShareCoordinator']);function _0x342369(){const _0x2e5558=_0x28afe1,_0x5a0b7c=_0x34f791[_0x2e5558(0x127)](_0x5c670c[_0x2e5558(0x11f)]),_0x2a0340=_0x34f791[_0x2e5558(0x127)](_0x28cd17[_0x2e5558(0xd0)]),_0x32632a=_0x34f791[_0x2e5558(0x101)](()=>_0x2a0340[_0x2e5558(0x11c)](_0x28cd17[_0x2e5558(0xca)][_0x2e5558(0x104)]),void 0x0,!0x1,[]),[_0x444fd0,_0x8075e5]=_0x1d34a9[_0x2e5558(0x18b)](null),[_0x31777e,_0x364b5f]=_0x1d34a9[_0x2e5558(0x18b)](_0x1c6cec[_0x2e5558(0xd3)]),_0x4f3708=_0x1d34a9[_0x2e5558(0x108)](null);return _0x1d34a9[_0x2e5558(0xef)](()=>(_0x32632a&&_0x5a0b7c[_0x2e5558(0x15a)](_0x32632a[_0x2e5558(0xbe)]())[_0x2e5558(0xcb)](_0x251976=>{const _0x541d35=_0x2e5558;_0x8075e5(_0x251976),_0x4f3708['current']=_0x251976[_0x541d35(0x190)]['subscribe'](_0xc43385=>{_0x364b5f(_0xc43385);});}),()=>{const _0x50c1fd=_0x2e5558;var _0x8ad15d;(_0x8ad15d=_0x4f3708['current'])==null||_0x8ad15d['unsubscribe'](),_0x4f3708[_0x50c1fd(0xdd)]=null;}),[_0x32632a,_0x5a0b7c]),_0x444fd0?_0x454e0b[_0x2e5558(0x181)](_0x573b10[_0x2e5558(0xdb)],{'align':'end','disabled':_0x31777e===_0x1c6cec[_0x2e5558(0xf8)],'className':_0x2e5558(0x192),'overlay':_0x454e0b[_0x2e5558(0x181)](_0x3e6b19,{'status':_0x31777e,'coordinator':_0x444fd0}),'children':_0x454e0b[_0x2e5558(0x181)]('button',{'className':_0x573b10['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x31777e===_0x1c6cec[_0x2e5558(0xf8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x31777e!==_0x1c6cec['OFFLINE']}),'type':'button','children':_0x454e0b[_0x2e5558(0x181)](_0xc68c30,{'className':_0x2e5558(0xbc)})})}):null;}function _0x3e6b19(_0x59623a){const _0x4112f3=_0x28afe1,{status:_0x3faf1c,coordinator:_0x59bc95}=_0x59623a;switch(_0x3faf1c){case _0x1c6cec[_0x4112f3(0xd3)]:return _0x454e0b[_0x4112f3(0x181)](_0xa8bfb8,{'coordinator':_0x59bc95});case _0x1c6cec[_0x4112f3(0xce)]:return _0x454e0b[_0x4112f3(0x181)](_0x2d9547,{'coordinator':_0x59bc95});case _0x1c6cec[_0x4112f3(0x13e)]:return _0x454e0b[_0x4112f3(0x181)](_0x5b9fe3,{'coordinator':_0x59bc95});case _0x1c6cec[_0x4112f3(0xf8)]:return _0x454e0b[_0x4112f3(0x181)](_0x277ad4,{});case _0x1c6cec[_0x4112f3(0x14a)]:return _0x454e0b[_0x4112f3(0x181)](_0x5abcd1,{'coordinator':_0x59bc95});default:return null;}}function _0xa8bfb8(_0x76d436){const _0x491753=_0x28afe1,{coordinator:_0x41c2b3}=_0x76d436;return _0x454e0b[_0x491753(0xf1)](_0x454e0b[_0x491753(0x119)],{'children':[_0x454e0b[_0x491753(0x181)](_0x491753(0x15e),{'className':_0x491753(0xc4),'children':_0x491753(0xd7)}),_0x454e0b[_0x491753(0x181)](_0x573b10[_0x491753(0x105)],{'onClick':()=>_0x41c2b3[_0x491753(0x130)](),'children':_0x491753(0x12a)})]});}function _0x2d9547(_0x433cea){const _0x1ed643=_0x28afe1,{coordinator:_0x9c7085}=_0x433cea;return _0x454e0b[_0x1ed643(0xf1)](_0x454e0b['Fragment'],{'children':[_0x454e0b[_0x1ed643(0x181)]('div',{'className':_0x1ed643(0xc4),'children':_0x1ed643(0x11b)}),_0x454e0b[_0x1ed643(0x181)](_0x573b10[_0x1ed643(0x105)],{'onClick':()=>_0x9c7085[_0x1ed643(0xf4)](),'children':_0x1ed643(0x100)})]});}function _0x5b9fe3(_0x15ea5c){const _0x206692=_0x28afe1,{coordinator:_0x1fa302}=_0x15ea5c;return _0x454e0b['jsxs'](_0x454e0b[_0x206692(0x119)],{'children':[_0x454e0b[_0x206692(0x181)](_0x206692(0x15e),{'className':_0x206692(0xc4),'children':_0x206692(0x123)}),_0x454e0b['jsx'](_0x573b10[_0x206692(0x105)],{'variant':'text','onClick':()=>_0x1fa302[_0x206692(0xf2)](),'children':'Start\x20following'})]});}function _0x5abcd1(_0x4851ff){const _0x2c5df8=_0x28afe1,{coordinator:_0x170d79}=_0x4851ff;return _0x454e0b[_0x2c5df8(0xf1)](_0x454e0b[_0x2c5df8(0x119)],{'children':[_0x454e0b[_0x2c5df8(0x181)](_0x2c5df8(0x15e),{'className':_0x2c5df8(0xc4),'children':_0x2c5df8(0xd5)}),_0x454e0b[_0x2c5df8(0x181)](_0x573b10['Button'],{'variant':_0x2c5df8(0x11e),'onClick':()=>_0x170d79['stopPresenting'](),'children':_0x2c5df8(0xf7)})]});}function _0x277ad4(){const _0x14273c=_0x28afe1;return _0x454e0b[_0x14273c(0x181)](_0x454e0b[_0x14273c(0x119)],{'children':_0x14273c(0xbf)});}var _0x755f75=Object[_0x28afe1(0xff)],_0x1c0018=(_0x12a859,_0x437d61,_0x16fcaf,_0xa98845)=>{const _0x7cd331=_0x28afe1;for(var _0x229787=_0xa98845>0x1?void 0x0:_0xa98845?_0x755f75(_0x437d61,_0x16fcaf):_0x437d61,_0x19fc67=_0x12a859[_0x7cd331(0xf3)]-0x1,_0x4372cd;_0x19fc67>=0x0;_0x19fc67--)(_0x4372cd=_0x12a859[_0x19fc67])&&(_0x229787=_0x4372cd(_0x229787)||_0x229787);return _0x229787;},_0x4c4b2c=(_0x359bb1,_0x389df3)=>(_0x45b329,_0xd1ecf3)=>_0x389df3(_0x45b329,_0xd1ecf3,_0x359bb1);_0x5c670c[_0x28afe1(0x157)]=class extends _0x28cd17[_0x28afe1(0x122)]{constructor(_0x50c426,_0x1b895e){super(),this['_injector']=_0x50c426,this['_uiPartsService']=_0x1b895e,this['_mountLiveShare']();}[_0x28afe1(0xe3)](){const _0x182409=_0x28afe1;this['disposeWithMe'](this[_0x182409(0x187)][_0x182409(0x17f)](_0x34f791[_0x182409(0x165)][_0x182409(0x111)],()=>_0x34f791[_0x182409(0xad)](_0x342369,this[_0x182409(0x13b)])));}},_0x5c670c['DesktopLiveShareController']=_0x1c0018([_0x4c4b2c(0x0,_0x28cd17[_0x28afe1(0x10d)](_0x28cd17[_0x28afe1(0x14f)])),_0x4c4b2c(0x1,_0x34f791[_0x28afe1(0x116)])],_0x5c670c['DesktopLiveShareController']);const _0x295a5b='live-share.config',_0xd61226={};var _0xeeacd8=Object[_0x28afe1(0xff)],_0x2b5898=(_0x2e8175,_0x36520f,_0x436e51,_0x419090)=>{for(var _0x3d8f9d=_0x419090>0x1?void 0x0:_0x419090?_0xeeacd8(_0x36520f,_0x436e51):_0x36520f,_0x345f76=_0x2e8175['length']-0x1,_0x531bd1;_0x345f76>=0x0;_0x345f76--)(_0x531bd1=_0x2e8175[_0x345f76])&&(_0x3d8f9d=_0x531bd1(_0x3d8f9d)||_0x3d8f9d);return _0x3d8f9d;},_0x17711d=(_0x3a0fd3,_0x2a1855)=>(_0x5ac9b0,_0x4b1e5e)=>_0x2a1855(_0x5ac9b0,_0x4b1e5e,_0x3a0fd3);let _0x57eecd=class extends _0x28cd17['Disposable']{constructor(_0x112311){const _0x24998e=_0x28afe1;super(),this[_0x24998e(0x114)]=_0x112311,this[_0x24998e(0xe4)]();}[_0x28afe1(0xe4)](){const _0x5b736a=_0x28afe1;[_0x4d26ff['SetZoomRatioOperation']['id'],_0x4d26ff[_0x5b736a(0xb0)]['id'],_0x2c6fb4[_0x5b736a(0x185)]['id']][_0x5b736a(0xdc)](_0x361d92=>{const _0x5f4cd1=_0x5b736a;this[_0x5f4cd1(0xd1)](this['_liveShareService'][_0x5f4cd1(0x170)](_0x361d92));});}};_0x57eecd=_0x2b5898([_0x17711d(0x0,_0x28cd17[_0x28afe1(0x10d)](_0x16b4e6))],_0x57eecd);var _0x3a8abd=Object[_0x28afe1(0x161)],_0x5b584a=Object['getOwnPropertyDescriptor'],_0x44aa28=(_0x34a68b,_0x874a8d,_0x50287a)=>_0x874a8d in _0x34a68b?_0x3a8abd(_0x34a68b,_0x874a8d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50287a}):_0x34a68b[_0x874a8d]=_0x50287a,_0x25b9b0=(_0x44b369,_0x4b7e05,_0x48c7af,_0x2c6a7c)=>{const _0x26e3ce=_0x28afe1;for(var _0x8b52f7=_0x2c6a7c>0x1?void 0x0:_0x2c6a7c?_0x5b584a(_0x4b7e05,_0x48c7af):_0x4b7e05,_0x5803e2=_0x44b369[_0x26e3ce(0xf3)]-0x1,_0xd95f42;_0x5803e2>=0x0;_0x5803e2--)(_0xd95f42=_0x44b369[_0x5803e2])&&(_0x8b52f7=_0xd95f42(_0x8b52f7)||_0x8b52f7);return _0x8b52f7;},_0x1e1123=(_0x6a104c,_0x39df4f)=>(_0x57daab,_0x5c0fdb)=>_0x39df4f(_0x57daab,_0x5c0fdb,_0x6a104c),_0x22ff85=(_0x36a4f0,_0x1b0857,_0x2ae415)=>_0x44aa28(_0x36a4f0,typeof _0x1b0857!='symbol'?_0x1b0857+'':_0x1b0857,_0x2ae415);const _0x4587a2=_0x28afe1(0xb9);_0x5c670c[_0x28afe1(0x124)]=class extends _0x28cd17[_0x28afe1(0x17a)]{constructor(_0x3de0b8=_0xd61226,_0x35e3f3,_0x625c4e){const _0x1e03d0=_0x28afe1;super(),this[_0x1e03d0(0x12c)]=_0x3de0b8,this[_0x1e03d0(0x13b)]=_0x35e3f3,this[_0x1e03d0(0xd8)]=_0x625c4e;const {..._0x3db2fe}=_0x28cd17[_0x1e03d0(0xfd)]({},_0xd61226,this['_config']);this[_0x1e03d0(0xd8)][_0x1e03d0(0x10e)](_0x295a5b,_0x3db2fe);}[_0x28afe1(0x164)](){const _0x58bd4e=_0x28afe1;_0x28cd17[_0x58bd4e(0x184)](this[_0x58bd4e(0x13b)],_0x28cd17[_0x58bd4e(0x10c)]([[_0x16b4e6],[_0x5c670c[_0x58bd4e(0x11f)]],[_0x57eecd],[_0x5c670c[_0x58bd4e(0x157)]]],this[_0x58bd4e(0x12c)][_0x58bd4e(0x16c)])),_0x28cd17['touchDependencies'](this[_0x58bd4e(0x13b)],[[_0x57eecd]]);}[_0x28afe1(0xac)](){const _0x36d71d=_0x28afe1;_0x28cd17[_0x36d71d(0x15b)](this[_0x36d71d(0x13b)],[[_0x5c670c['DesktopLiveShareController']]]);}},_0x22ff85(_0x5c670c[_0x28afe1(0x124)],_0x28afe1(0x107),_0x28cd17[_0x28afe1(0xca)][_0x28afe1(0xd2)]),_0x22ff85(_0x5c670c['UniverLiveSharePlugin'],_0x28afe1(0xc6),_0x4587a2),_0x5c670c[_0x28afe1(0x124)]=_0x25b9b0([_0x28cd17['DependentOn'](_0x1f93cf[_0x28afe1(0x167)]),_0x1e1123(0x1,_0x28cd17[_0x28afe1(0x10d)](_0x28cd17[_0x28afe1(0x14f)])),_0x1e1123(0x2,_0x28cd17[_0x28afe1(0x15f)])],_0x5c670c[_0x28afe1(0x124)]),_0x5c670c[_0x28afe1(0x113)]=_0x342369,_0x5c670c[_0x28afe1(0x125)]=_0x16b4e6,_0x5c670c[_0x28afe1(0x174)]=_0x1c6cec,Object[_0x28afe1(0x161)](_0x5c670c,Symbol[_0x28afe1(0x17b)],{'value':'Module'});}));function _0x1c77(){const _0x3777d2=['getInitialStates','status$','@univerjs/core','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','onRendered','connectInjector','_handleOffline','offline','SetScrollOperation','rxjs/operators','from','mutations','_collabSession','_handleOnline','tag','entries','3523660apBDft','UNIVER_LIVE_SHARE_PLUGIN','operations','Subject','univer-size-4','_status','getUnitId','You\x27are\x20offline.','includes','3973460uUBKlr','not-following','NEW_CHANGESETS','univer-mb-3\x20univer-w-full\x20univer-text-sm','send','pluginName','complete','_stopFollowing','_presenter','UniverInstanceType','then','@univerjs-pro/collaboration','random','FOLLOWING','set','IUniverInstanceService','disposeWithMe','UNIVER_UNKNOWN','IDLE','takeUntil','You\x27re\x20presenting\x20the\x20document','params','Present\x20this\x20document','_configService','idle','dispose$','Dropdown','forEach','current','get','forwardRef','_beIdle','following','0\x200\x2017\x2017','_mountLiveShare','_init','getStatus','exports','replace','_entities','1111976gmPTDC','currentColor','_unitID','_sharedOperations','unitId','presenting','useEffect','LIVESHARE_TERMINATE','jsxs','startFollowing','length','stopFollowing','add','path','Stop\x20presenting','OFFLINE','DisposableCollection','6EphJie','xlink:href','_startPresenting','merge','ONLINE','getOwnPropertyDescriptor','Stop\x20following','useObservable','http://www.w3.org/2000/svg','sessionStatus$','UNIVER_SHEET','Button','SAME_OPERATION_SHARE_INTERVAL','type','useRef','64630VDAVja','attrs','stringify','mergeOverrideWithDependencies','Inject','setConfig','event$','LIVESHARE_OPERATION','HEADER_MENU','getMemberID','LiveShare','_liveShareService','registerInitialStateReporter','IUIPartsService','values','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','Fragment','1148185EvznPF','You\x27re\x20following\x20the\x20presenter','getCurrentTypeOfUnit$','InsertSheetMutation','default','LiveShareController','delete','subscribe','Disposable','You\x27re\x20not\x20following\x20the\x20presenter','UniverLiveSharePlugin','LiveShareService','_handleNewHost','useDependency','24qPUNxA','UniverSheetsUi','Start','data','_config','dispose','_commandDisposable','_commandService','tryStartPresenting','_handleTerminate','evenodd','reverse','asObservable','fill','LiveShareIcon','UniverUi','30aisoSD','@univerjs/ui','OPERATION','_injector','CollaborationSessionService','defIds','NOT_FOLLOWING','requireSession','getTypeOfUnitDisposed$','substring','children','UniverProLiveShare','@univerjs-pro/collaboration-client','@univerjs/design','3808651UmhbHo','operators','LIVESHARE_NEW_HOST','_collabSessionService','PRESENTING','_univerInstanceService','getTypeOfUnitAdded$','mask','has','Injector','_status$','symbol','react','React','getConfig','stopPresenting','LiveShareCoordinator','DesktopLiveShareController','clear','sheet','getLiveShareCoordinator','touchDependencies','CollaborationEvent','shouldShareOperation','div','IConfigService','url(#$1','defineProperty','_reporters','_handleOperation','onStarting','BuiltInUIPart','presenter','UniverCollaborationClientPlugin','defs','trim','_fetchOperations','rxjs','override','1em','map','executeCommand','registerSharedOperation','object','_startLiveShareCoordinator','next','LiveShareStatus','toDisposable','LIVESHARE_FETCH_OPERATIONS','colorChannel1','18Ooqrks','idSuffix','Plugin','toStringTag','2413215nGcPsl','_startFollowing','UniverProCollaboration','registerComponent','LIVESHARE_REQUEST_HOST','jsx','CommandType','react/jsx-runtime','registerDependencies','SetWorksheetActiveOperation','7MFtOvt','_uiPartsService','RxDisposable','amd','init','useState','createElement','SessionStatus','string'];_0x1c77=function(){return _0x3777d2;};return _0x1c77();}
1
+ function _0x23e6(_0x5cb0e4,_0x1d39a1){_0x5cb0e4=_0x5cb0e4-0xf8;const _0x21ce91=_0x21ce();let _0x23e611=_0x21ce91[_0x5cb0e4];return _0x23e611;}(function(_0x356d37,_0x509e8b){const _0x4d8cbe=_0x23e6,_0x2feb3e=_0x356d37();while(!![]){try{const _0x4f7c60=-parseInt(_0x4d8cbe(0x17b))/0x1*(-parseInt(_0x4d8cbe(0x149))/0x2)+parseInt(_0x4d8cbe(0x160))/0x3+-parseInt(_0x4d8cbe(0x19a))/0x4*(-parseInt(_0x4d8cbe(0x147))/0x5)+parseInt(_0x4d8cbe(0x129))/0x6*(-parseInt(_0x4d8cbe(0x1d2))/0x7)+-parseInt(_0x4d8cbe(0x14e))/0x8+-parseInt(_0x4d8cbe(0x18e))/0x9+parseInt(_0x4d8cbe(0x198))/0xa;if(_0x4f7c60===_0x509e8b)break;else _0x2feb3e['push'](_0x2feb3e['shift']());}catch(_0x1cf802){_0x2feb3e['push'](_0x2feb3e['shift']());}}}(_0x21ce,0x7d01c),function(_0x429a9b,_0x56793d){const _0x3bb9c2=_0x23e6;typeof exports=='object'&&typeof module<'u'?_0x56793d(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==_0x3bb9c2(0x110)&&define[_0x3bb9c2(0x199)]?define([_0x3bb9c2(0x166),_0x3bb9c2(0x19f),_0x3bb9c2(0x133),_0x3bb9c2(0x1de),_0x3bb9c2(0x16f),_0x3bb9c2(0x117),_0x3bb9c2(0x17f),_0x3bb9c2(0x1db),_0x3bb9c2(0x178),'rxjs',_0x3bb9c2(0x10f),_0x3bb9c2(0x15a)],_0x56793d):(_0x429a9b=typeof globalThis<'u'?globalThis:_0x429a9b||self,_0x56793d(_0x429a9b[_0x3bb9c2(0x18f)]={},_0x429a9b[_0x3bb9c2(0x17c)],_0x429a9b['UniverUi'],_0x429a9b[_0x3bb9c2(0x1d4)],_0x429a9b[_0x3bb9c2(0x134)],_0x429a9b[_0x3bb9c2(0x1d4)],_0x429a9b[_0x3bb9c2(0x1cf)],_0x429a9b['UniverProCollaborationClient'],_0x429a9b[_0x3bb9c2(0x1cb)],_0x429a9b['rxjs'],_0x429a9b['rxjs']['operators'],_0x429a9b[_0x3bb9c2(0x11f)]));}(this,function(_0x2624a2,_0x1ecc93,_0x20bfb3,_0x49ef39,_0x4e9136,_0x3dc61e,_0x2145d1,_0x30d3fc,_0x402b6a,_0x30a3d1,_0x302b58,_0x527f2d){'use strict';const _0x1d3409=_0x23e6;var _0x2899c0=Object[_0x1d3409(0x1bf)],_0x5a4486=(_0x465a80,_0x4cfac4,_0x1d3a6d)=>_0x4cfac4 in _0x465a80?_0x2899c0(_0x465a80,_0x4cfac4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d3a6d}):_0x465a80[_0x4cfac4]=_0x1d3a6d,_0x107e1d=(_0x1b4e20,_0x139cda,_0x5ec2ab)=>_0x5a4486(_0x1b4e20,typeof _0x139cda!='symbol'?_0x139cda+'':_0x139cda,_0x5ec2ab);function _0x522857({ref:_0x426394,..._0x29f94d}){const _0x313e62=_0x1d3409,{icon:_0x108ee4,id:_0x1d5004,className:_0x37c5ba,extend:_0x1dda5a,..._0x2a958a}=_0x29f94d,_0x4ad367=(_0x313e62(0x1ab)+_0x1d5004+'\x20'+(_0x37c5ba||''))[_0x313e62(0x1a3)](),_0x50f2fd=_0x3dc61e[_0x313e62(0x19e)]('_'+_0x151b9c());return _0x16ea03(_0x108ee4,''+_0x1d5004,{'defIds':_0x108ee4[_0x313e62(0x1da)],'idSuffix':_0x50f2fd[_0x313e62(0x111)]},{'ref':_0x426394,'className':_0x4ad367,..._0x2a958a},_0x1dda5a);}function _0x16ea03(_0x7cfbf0,_0xe3b55b,_0x837c87,_0x2b119d,_0xf9fc9f){const _0x638c26=_0x1d3409;return _0x3dc61e[_0x638c26(0x189)](_0x7cfbf0[_0x638c26(0x16b)],{'key':_0xe3b55b,..._0x11575f(_0x7cfbf0,_0x837c87,_0xf9fc9f),..._0x2b119d},(_0x560615(_0x7cfbf0,_0x837c87)[_0x638c26(0x195)]||[])[_0x638c26(0x102)]((_0x3f4b90,_0x32204f)=>_0x16ea03(_0x3f4b90,_0xe3b55b+'-'+_0x7cfbf0[_0x638c26(0x16b)]+'-'+_0x32204f,_0x837c87,void 0x0,_0xf9fc9f)));}function _0x11575f(_0x1517bd,_0xcedd3d,_0x56ff64){const _0x281c36=_0x1d3409,_0x1bd5da={..._0x1517bd['attrs']};_0x56ff64!=null&&_0x56ff64[_0x281c36(0x11c)]&&_0x1bd5da['fill']==='colorChannel1'&&(_0x1bd5da['fill']=_0x56ff64[_0x281c36(0x11c)]),_0x1517bd[_0x281c36(0x16b)]===_0x281c36(0x12a)&&_0x1bd5da['id']&&(_0x1bd5da['id']=_0x1bd5da['id']+_0xcedd3d[_0x281c36(0x114)]),Object['entries'](_0x1bd5da)[_0x281c36(0x157)](([_0x1ef6d4,_0x475f19])=>{const _0x36f9af=_0x281c36;_0x1ef6d4==='mask'&&typeof _0x475f19==_0x36f9af(0x171)&&(_0x1bd5da[_0x1ef6d4]=_0x475f19[_0x36f9af(0x1a7)](/url\(#(.*)\)/,'url(#$1'+_0xcedd3d[_0x36f9af(0x114)]+')'));});const {defIds:_0x518c48}=_0xcedd3d;return!_0x518c48||_0x518c48[_0x281c36(0x163)]===0x0||(_0x1517bd[_0x281c36(0x16b)]===_0x281c36(0x16c)&&_0x1bd5da[_0x281c36(0xfa)]&&(_0x1bd5da[_0x281c36(0xfa)]=_0x1bd5da['xlink:href']+_0xcedd3d[_0x281c36(0x114)]),Object[_0x281c36(0x1c0)](_0x1bd5da)['forEach'](([_0x381c04,_0x359ac9])=>{const _0x35a43c=_0x281c36;typeof _0x359ac9==_0x35a43c(0x171)&&(_0x1bd5da[_0x381c04]=_0x359ac9[_0x35a43c(0x1a7)](/url\(#(.*)\)/,'url(#$1'+_0xcedd3d['idSuffix']+')'));})),_0x1bd5da;}function _0x560615(_0x2be612,_0x14e0da){const _0x4feff9=_0x1d3409;var _0x58e33;const {defIds:_0x16928e}=_0x14e0da;return!_0x16928e||_0x16928e[_0x4feff9(0x163)]===0x0?_0x2be612:_0x2be612['tag']===_0x4feff9(0x136)&&((_0x58e33=_0x2be612[_0x4feff9(0x195)])!=null&&_0x58e33['length'])?{..._0x2be612,'children':_0x2be612['children'][_0x4feff9(0x102)](_0x3b073c=>typeof _0x3b073c[_0x4feff9(0x12f)]['id']=='string'&&_0x16928e&&_0x16928e[_0x4feff9(0x165)](_0x3b073c[_0x4feff9(0x12f)]['id'])?{..._0x3b073c,'attrs':{..._0x3b073c[_0x4feff9(0x12f)],'id':_0x3b073c[_0x4feff9(0x12f)]['id']+_0x14e0da['idSuffix']}}:_0x3b073c)}:_0x2be612;}function _0x151b9c(){const _0x39f0c3=_0x1d3409;return Math[_0x39f0c3(0x143)]()[_0x39f0c3(0x170)](0x24)[_0x39f0c3(0x174)](0x2,0x8);}_0x522857[_0x1d3409(0x164)]='UniverIcon';const _0x596020={'tag':_0x1d3409(0x159),'attrs':{'xmlns':_0x1d3409(0x10b),'fill':_0x1d3409(0x187),'viewBox':_0x1d3409(0xfe),'width':_0x1d3409(0x131),'height':_0x1d3409(0x131)},'children':[{'tag':_0x1d3409(0x112),'attrs':{'fill':_0x1d3409(0x1a9),'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':_0x1d3409(0x112),'attrs':{'fill':'currentColor','d':_0x1d3409(0x1e0),'fillRule':_0x1d3409(0x1b6),'clipRule':_0x1d3409(0x1b6)}}]},_0x438601=_0x3dc61e['forwardRef'](function(_0x304379,_0x314d0c){const _0x59a675=_0x1d3409;return _0x3dc61e['createElement'](_0x522857,Object[_0x59a675(0x141)]({},_0x304379,{'id':'live-share-icon','ref':_0x314d0c,'icon':_0x596020}));});_0x438601[_0x1d3409(0x164)]=_0x1d3409(0x142);class _0x5e12fa extends _0x1ecc93[_0x1d3409(0x175)]{constructor(){const _0x52595c=_0x1d3409;super(...arguments),_0x107e1d(this,_0x52595c(0x137),new Set()),_0x107e1d(this,_0x52595c(0x14c),new Set());}[_0x1d3409(0x193)](_0x3ea4a3){const _0x30b41f=_0x1d3409;return this[_0x30b41f(0x137)][_0x30b41f(0x16e)](_0x3ea4a3),_0x1ecc93[_0x30b41f(0x169)](()=>this[_0x30b41f(0x137)][_0x30b41f(0x18d)](_0x3ea4a3));}[_0x1d3409(0x1c7)](_0x59e1ab){const _0x2462f7=_0x1d3409;return this['_reporters'][_0x2462f7(0x16e)](_0x59e1ab),_0x1ecc93[_0x2462f7(0x169)](()=>this[_0x2462f7(0x14c)]['delete'](_0x59e1ab));}['shouldShareOperation'](_0x28cefd){const _0x3e8e5d=_0x1d3409;return this['_sharedOperations'][_0x3e8e5d(0x158)](_0x28cefd);}[_0x1d3409(0x1c3)](_0x478388){const _0x41cb55=_0x1d3409;return Array['from'](this[_0x41cb55(0x14c)])[_0x41cb55(0x102)](_0x44c77b=>_0x44c77b(_0x478388));}}var _0xc98453=Object[_0x1d3409(0x1d0)],_0x55b41d=(_0x11b0b8,_0x1ace49,_0x171475,_0x1b843b)=>{const _0x340317=_0x1d3409;for(var _0x2bb8db=_0x1b843b>0x1?void 0x0:_0x1b843b?_0xc98453(_0x1ace49,_0x171475):_0x1ace49,_0x3acba2=_0x11b0b8[_0x340317(0x163)]-0x1,_0x42454f;_0x3acba2>=0x0;_0x3acba2--)(_0x42454f=_0x11b0b8[_0x3acba2])&&(_0x2bb8db=_0x42454f(_0x2bb8db)||_0x2bb8db);return _0x2bb8db;},_0x5a5b9f=(_0x1a7723,_0x3769d6)=>(_0x50305d,_0x4e2678)=>_0x3769d6(_0x50305d,_0x4e2678,_0x1a7723);_0x2624a2[_0x1d3409(0x190)]=class extends _0x1ecc93[_0x1d3409(0x13e)]{constructor(_0x4d9818,_0x4e1314,_0xc2f561){const _0x17a769=_0x1d3409;super(),_0x107e1d(this,_0x17a769(0x10a),new Map()),(this['_univerInstanceService']=_0x4d9818,this[_0x17a769(0x144)]=_0x4e1314,this['_collabSessionService']=_0xc2f561,this[_0x17a769(0x12b)]());}async[_0x1d3409(0xff)](_0x5c9096){const _0x304783=_0x1d3409;return this[_0x304783(0x10a)][_0x304783(0x158)](_0x5c9096)||await this['_startLiveShareCoordinator'](_0x5c9096),this['_entities'][_0x304783(0x122)](_0x5c9096);}[_0x1d3409(0x150)](_0x252d61){const _0x201980=_0x1d3409;var _0x2a5d12;return(_0x2a5d12=this['_entities'][_0x201980(0x122)](_0x252d61))!=null?_0x2a5d12:null;}['_init'](){const _0x55d0ff=_0x1d3409;this[_0x55d0ff(0x100)][_0x55d0ff(0x1a5)](_0x1ecc93[_0x55d0ff(0x11a)][_0x55d0ff(0x15d)])[_0x55d0ff(0x115)](_0x302b58[_0x55d0ff(0x108)](this[_0x55d0ff(0x14a)]))[_0x55d0ff(0x1d7)](async _0x4a7f0e=>{const _0xfe3ccc=_0x55d0ff,_0x41d0f2=_0x4a7f0e[_0xfe3ccc(0x1d6)]();this[_0xfe3ccc(0x10a)]['has'](_0x41d0f2)||this['_startLiveShareCoordinator'](_0x41d0f2);}),this[_0x55d0ff(0x100)][_0x55d0ff(0x1af)](_0x1ecc93[_0x55d0ff(0x11a)][_0x55d0ff(0x15d)])[_0x55d0ff(0x115)](_0x302b58[_0x55d0ff(0x108)](this['dispose$']))['subscribe'](_0x34f3f1=>{const _0x2f0e20=_0x55d0ff,_0x3c79f3=_0x34f3f1[_0x2f0e20(0x1d6)](),_0x1d1668=this['_entities'][_0x2f0e20(0x122)](_0x3c79f3);_0x1d1668==null||_0x1d1668[_0x2f0e20(0x172)]();});}async[_0x1d3409(0x116)](_0x40990f){const _0xab68b6=_0x1d3409,_0x57d0a4=await this['_collabSessionService'][_0xab68b6(0x19c)](_0x40990f),_0x508588=this[_0xab68b6(0x144)][_0xab68b6(0x176)](_0x2624a2[_0xab68b6(0x106)],_0x40990f,_0x57d0a4);return _0x508588[_0xab68b6(0x12c)](),this[_0xab68b6(0x10a)][_0xab68b6(0x1a4)](_0x40990f,_0x508588),_0x508588;}},_0x2624a2['LiveShareController']=_0x55b41d([_0x5a5b9f(0x0,_0x1ecc93[_0x1d3409(0x14f)]),_0x5a5b9f(0x1,_0x1ecc93[_0x1d3409(0x11d)](_0x1ecc93[_0x1d3409(0x1d8)])),_0x5a5b9f(0x2,_0x1ecc93[_0x1d3409(0x11d)](_0x30d3fc['CollaborationSessionService']))],_0x2624a2[_0x1d3409(0x190)]);var _0x4d3fc0=(_0x3a13ed=>(_0x3a13ed[_0x1d3409(0x1ca)]='offline',_0x3a13ed[_0x1d3409(0x1d5)]=_0x1d3409(0x125),_0x3a13ed[_0x1d3409(0x101)]=_0x1d3409(0x15b),_0x3a13ed[_0x1d3409(0x1c2)]=_0x1d3409(0x104),_0x3a13ed[_0x1d3409(0x140)]='presenting',_0x3a13ed))(_0x4d3fc0||{});const _0xabffb9=_0x1d3409(0x13b),_0x227cf7=0xc8;_0x2624a2[_0x1d3409(0x106)]=class extends _0x1ecc93[_0x1d3409(0x13e)]{constructor(_0x30b331,_0x4f47c6,_0x44efc3,_0x1f33a9,_0x4a424e){const _0x54ed34=_0x1d3409;super(),_0x107e1d(this,'_status$',new _0x30a3d1[(_0x54ed34(0x13c))](_0x54ed34(0x125))),_0x107e1d(this,'status$',this[_0x54ed34(0x12d)][_0x54ed34(0x1e1)]()),_0x107e1d(this,'_init',!0x1),_0x107e1d(this,_0x54ed34(0x186),null),_0x107e1d(this,_0x54ed34(0x1b8),null),(this[_0x54ed34(0x138)]=_0x30b331,this['_collabSession']=_0x4f47c6,this['_configService']=_0x44efc3,this['_liveShareService']=_0x1f33a9,this[_0x54ed34(0x161)]=_0x4a424e);}get[_0x1d3409(0x1c5)](){const _0x515d07=_0x1d3409;return this[_0x515d07(0x12d)][_0x515d07(0x151)]();}[_0x1d3409(0x172)](){const _0x445ff8=_0x1d3409;var _0x6abc77;(_0x6abc77=this[_0x445ff8(0x186)])==null||_0x6abc77[_0x445ff8(0x172)](),this['_status$'][_0x445ff8(0x124)](_0x445ff8(0x125)),this[_0x445ff8(0x12d)][_0x445ff8(0x17a)]();}['getStatus'](){const _0x497e6f=_0x1d3409;return this[_0x497e6f(0x1c5)];}[_0x1d3409(0x12c)](){const _0x5782d5=_0x1d3409;this['_init']||(this['_init']=!0x0,this[_0x5782d5(0x152)][_0x5782d5(0x183)][_0x5782d5(0x115)](_0x302b58[_0x5782d5(0x108)](this[_0x5782d5(0x14a)]))[_0x5782d5(0x1d7)](_0x465505=>{const _0x2434ac=_0x5782d5;switch(_0x465505){case _0x30d3fc[_0x2434ac(0x1ac)][_0x2434ac(0x1ca)]:this[_0x2434ac(0x148)]();break;case _0x30d3fc[_0x2434ac(0x1ac)]['ONLINE']:this[_0x2434ac(0x1cc)]();break;}}),this[_0x5782d5(0x152)]['event$'][_0x5782d5(0x115)](_0x302b58[_0x5782d5(0x108)](this['dispose$']))[_0x5782d5(0x1d7)](_0x1bfe51=>{const _0x2a8bb5=_0x5782d5,{eventID:_0x490024}=_0x1bfe51;switch(_0x490024){case _0x2145d1[_0x2a8bb5(0x1c6)][_0x2a8bb5(0x17e)]:this['_handleNewHost'](_0x1bfe51);break;case _0x2145d1[_0x2a8bb5(0x1c6)][_0x2a8bb5(0x12e)]:this[_0x2a8bb5(0x194)](_0x1bfe51);break;case _0x2145d1[_0x2a8bb5(0x1c6)][_0x2a8bb5(0x113)]:this[_0x2a8bb5(0x1a1)]();break;case _0x2145d1[_0x2a8bb5(0x1c6)][_0x2a8bb5(0x1aa)]:this[_0x2a8bb5(0x18b)](_0x1bfe51);break;}}));}['tryStartPresenting'](){const _0x41c036=_0x1d3409;this['_collabSession'][_0x41c036(0x14b)]({'eventID':_0x2145d1[_0x41c036(0x1c6)][_0x41c036(0x121)],'data':{'unitID':this[_0x41c036(0x138)],'userID':this['_collabSession']['getMemberID']()}},this['_unitID']);}[_0x1d3409(0x18a)](){const _0x19c740=_0x1d3409;this[_0x19c740(0x1c5)]===_0x19c740(0x1bc)&&(this[_0x19c740(0x12d)]['next']('idle'),this[_0x19c740(0x152)][_0x19c740(0x14b)]({'eventID':_0x2145d1[_0x19c740(0x1c6)][_0x19c740(0x113)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){const _0x312eb9=_0x1d3409;this[_0x312eb9(0x1c5)]===_0x312eb9(0x104)&&(this[_0x312eb9(0x12d)]['next']('following'),this[_0x312eb9(0x128)]());}[_0x1d3409(0x1b0)](){const _0x33058a=_0x1d3409;this['_status']===_0x33058a(0x15b)&&this['_stopFollowing']();}[_0x1d3409(0x1b7)](_0x198beb){const _0x675384=_0x1d3409,{presenter:_0x2fdf3a}=_0x198beb[_0x675384(0x146)],_0x1047c4=this[_0x675384(0x152)][_0x675384(0x192)]();this[_0x675384(0x1b8)]=_0x2fdf3a,_0x2fdf3a===_0x1047c4?(this[_0x675384(0x120)](),this[_0x675384(0x1b2)]()):this[_0x675384(0x1c5)]!==_0x675384(0x104)&&(this[_0x675384(0x1a2)](),this[_0x675384(0x128)]());}[_0x1d3409(0x1d9)](){const _0x5afe0b=_0x1d3409,_0x1f99c1={'eventID':_0x2145d1[_0x5afe0b(0x1c6)][_0x5afe0b(0x1dd)]};this[_0x5afe0b(0x152)][_0x5afe0b(0x14b)](_0x1f99c1,this[_0x5afe0b(0x138)]);}[_0x1d3409(0x1a1)](){const _0x62a035=_0x1d3409;this['_presenter']=null,this[_0x62a035(0x1c5)]!==_0x62a035(0x1bc)&&this[_0x62a035(0x127)]();}[_0x1d3409(0x18b)](_0x570dac){const _0x2f14f5=_0x1d3409;if(this['_status']===_0x2f14f5(0x15b)&&this[_0x2f14f5(0x1b8)]===_0x570dac[_0x2f14f5(0x146)][_0x2f14f5(0x1c4)]){const _0xa1b7e2=_0x2145d1[_0x2f14f5(0x132)](_0x570dac[_0x2f14f5(0x146)])[_0x2f14f5(0x145)][_0x2f14f5(0x1e2)]()[_0x2f14f5(0x103)](_0x4f9e7d=>_0x4f9e7d['id']===_0x402b6a['InsertSheetMutation']['id']);if(_0xa1b7e2){const _0x546090=_0xa1b7e2[_0x2f14f5(0x180)]['unitId'],_0x25d6e2=_0xa1b7e2[_0x2f14f5(0x180)][_0x2f14f5(0x10e)]['id'];setTimeout(()=>{const _0x4faeff=_0x2f14f5;this[_0x4faeff(0x161)][_0x4faeff(0x1a8)](_0x402b6a[_0x4faeff(0x1bb)]['id'],{'unitId':_0x546090,'subUnitId':_0x25d6e2},{'fromCollab':!0x0});});}}}[_0x1d3409(0x1b2)](){const _0x872011=_0x1d3409;this['_status$'][_0x872011(0x124)](_0x872011(0x1bc));const _0x5a9fc7=new Map(),_0xf5b545=this[_0x872011(0x186)]=new _0x1ecc93[(_0x872011(0xfb))]();_0xf5b545[_0x872011(0x16e)](_0x1ecc93[_0x872011(0x169)](()=>{const _0x48f700=_0x872011;_0x5a9fc7[_0x48f700(0x157)](_0x3c1eea=>_0x3c1eea['complete']()),_0x5a9fc7[_0x48f700(0x10d)]();})),_0xf5b545[_0x872011(0x16e)](this[_0x872011(0x161)]['onCommandExecuted'](_0x7bb323=>{const _0x4fb4e4=_0x872011;var _0x14d3ae;if(_0x7bb323[_0x4fb4e4(0x155)]!==_0x1ecc93[_0x4fb4e4(0x19d)][_0x4fb4e4(0xfc)]||!this[_0x4fb4e4(0x181)][_0x4fb4e4(0x1b3)](_0x7bb323['id']))return;const {id:_0x1e2432}=_0x7bb323;let _0x46a4d8;_0x5a9fc7[_0x4fb4e4(0x158)](_0x1e2432)?_0x46a4d8=_0x5a9fc7['get'](_0x1e2432):(_0x46a4d8=new _0x30a3d1[(_0x4fb4e4(0x11b))](),_0x5a9fc7[_0x4fb4e4(0x1a4)](_0x1e2432,_0x46a4d8),_0x46a4d8[_0x4fb4e4(0x115)](_0x302b58[_0x4fb4e4(0x1ae)]((_0x14d3ae=this[_0x4fb4e4(0x139)][_0x4fb4e4(0x19b)](_0xabffb9))!=null?_0x14d3ae:_0x227cf7,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4fb4e4(0x1d7)](_0x542f74=>{const _0x4753ed=_0x4fb4e4;this['_collabSession'][_0x4753ed(0x14b)]({'eventID':_0x2145d1[_0x4753ed(0x1c6)][_0x4753ed(0x12e)],'data':{'unitID':this['_unitID'],'operations':{[_0x542f74['id']]:{'id':_0x542f74['id'],'params':JSON[_0x4753ed(0x1b4)](_0x542f74['params'])}}}},this[_0x4753ed(0x138)]);})),_0x46a4d8['next'](_0x7bb323);})),this[_0x872011(0x181)]['getInitialStates'](this['_unitID'])[_0x872011(0x157)](_0x849ac9=>this[_0x872011(0x152)][_0x872011(0x14b)]({'eventID':_0x2145d1['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x849ac9['id']]:{'id':_0x849ac9['id'],'params':JSON[_0x872011(0x1b4)](_0x849ac9[_0x872011(0x180)])}}}},this[_0x872011(0x138)]));}[_0x1d3409(0x1a2)](){const _0x2f2cf7=_0x1d3409;var _0x5b8c50;this['_status$'][_0x2f2cf7(0x124)](_0x2f2cf7(0x125)),(_0x5b8c50=this[_0x2f2cf7(0x186)])==null||_0x5b8c50[_0x2f2cf7(0x172)](),this[_0x2f2cf7(0x186)]=null;}[_0x1d3409(0x128)](){const _0x2d22e0=_0x1d3409;var _0x1fa7a0;(_0x1fa7a0=this[_0x2d22e0(0x186)])==null||_0x1fa7a0[_0x2d22e0(0x172)](),this['_status$'][_0x2d22e0(0x124)](_0x2d22e0(0x15b));}[_0x1d3409(0x127)](){const _0x56596e=_0x1d3409;var _0x142d97;this[_0x56596e(0x12d)]['next'](_0x56596e(0x125)),(_0x142d97=this[_0x56596e(0x186)])==null||_0x142d97['dispose'](),this[_0x56596e(0x186)]=null;}[_0x1d3409(0x120)](){const _0x586795=_0x1d3409;var _0x30fb45;this[_0x586795(0x12d)][_0x586795(0x124)]('not-following'),(_0x30fb45=this[_0x586795(0x186)])==null||_0x30fb45[_0x586795(0x172)]();}[_0x1d3409(0x194)](_0x4f54e0){const _0x2b5c8a=_0x1d3409;if([_0x2b5c8a(0x1bc),_0x2b5c8a(0x104),_0x2b5c8a(0x17d)][_0x2b5c8a(0x165)](this[_0x2b5c8a(0x1c5)])||!_0x4f54e0[_0x2b5c8a(0x146)][_0x2b5c8a(0x1a0)]||_0x4f54e0[_0x2b5c8a(0x146)][_0x2b5c8a(0x1a0)]===this['_collabSession'][_0x2b5c8a(0x192)]())return;this[_0x2b5c8a(0x1c5)]==='idle'&&this[_0x2b5c8a(0x128)]();const _0x32acf7=_0x4f54e0['data'][_0x2b5c8a(0x1ba)];Object[_0x2b5c8a(0x1d1)](_0x32acf7)[_0x2b5c8a(0x157)](_0x1276ce=>{const _0x411899=_0x2b5c8a;this['_commandService'][_0x411899(0x1a8)](_0x1276ce['id'],_0x1276ce['params']?JSON['parse'](_0x1276ce['params']):null,{'fromCollab':!0x0});});}[_0x1d3409(0x148)](){const _0x4ea12f=_0x1d3409;var _0x220da0;this['_status$']['next'](_0x4ea12f(0x17d)),(_0x220da0=this[_0x4ea12f(0x186)])==null||_0x220da0[_0x4ea12f(0x172)]();}[_0x1d3409(0x1cc)](){const _0x3ff9c2=_0x1d3409;this[_0x3ff9c2(0x12d)][_0x3ff9c2(0x124)](_0x3ff9c2(0x125)),this[_0x3ff9c2(0x1d9)]();}},_0x2624a2[_0x1d3409(0x106)]=_0x55b41d([_0x5a5b9f(0x2,_0x1ecc93[_0x1d3409(0x1ce)]),_0x5a5b9f(0x3,_0x1ecc93[_0x1d3409(0x11d)](_0x5e12fa)),_0x5a5b9f(0x4,_0x1ecc93[_0x1d3409(0x123)])],_0x2624a2[_0x1d3409(0x106)]);function _0x628078(){const _0x1d2d11=_0x1d3409,_0x4dcbb9=_0x20bfb3[_0x1d2d11(0x1df)](_0x2624a2[_0x1d2d11(0x190)]),_0x44b680=_0x20bfb3[_0x1d2d11(0x1df)](_0x1ecc93[_0x1d2d11(0x14f)]),_0x146694=_0x20bfb3[_0x1d2d11(0x188)](()=>_0x44b680[_0x1d2d11(0x197)](_0x1ecc93[_0x1d2d11(0x11a)][_0x1d2d11(0x15d)]),void 0x0,!0x1,[]),[_0x36bbac,_0xe11841]=_0x3dc61e[_0x1d2d11(0x15c)](null),[_0x5b4d04,_0x466f78]=_0x3dc61e[_0x1d2d11(0x15c)](_0x4d3fc0[_0x1d2d11(0x1d5)]),_0x56f18e=_0x3dc61e[_0x1d2d11(0x19e)](null);return _0x3dc61e[_0x1d2d11(0xfd)](()=>(_0x146694&&_0x4dcbb9[_0x1d2d11(0xff)](_0x146694[_0x1d2d11(0x1d6)]())[_0x1d2d11(0x1ad)](_0x599fde=>{const _0x439041=_0x1d2d11;_0xe11841(_0x599fde),_0x56f18e[_0x439041(0x111)]=_0x599fde[_0x439041(0x1c8)]['subscribe'](_0xbcadcc=>{_0x466f78(_0xbcadcc);});}),()=>{const _0x34f495=_0x1d2d11;var _0x2275a3;(_0x2275a3=_0x56f18e[_0x34f495(0x111)])==null||_0x2275a3[_0x34f495(0x14d)](),_0x56f18e[_0x34f495(0x111)]=null;}),[_0x146694,_0x4dcbb9]),_0x36bbac?_0x49ef39[_0x1d2d11(0x10c)](_0x4e9136[_0x1d2d11(0x11e)],{'align':_0x1d2d11(0x107),'disabled':_0x5b4d04===_0x4d3fc0['OFFLINE'],'className':_0x1d2d11(0x13a),'overlay':_0x49ef39[_0x1d2d11(0x10c)](_0x13352d,{'status':_0x5b4d04,'coordinator':_0x36bbac}),'children':_0x49ef39[_0x1d2d11(0x10c)]('button',{'className':_0x4e9136['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5b4d04===_0x4d3fc0[_0x1d2d11(0x1ca)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5b4d04!==_0x4d3fc0['OFFLINE']}),'type':'button','children':_0x49ef39[_0x1d2d11(0x10c)](_0x438601,{'className':_0x1d2d11(0x1b5)})})}):null;}function _0x13352d(_0x134623){const _0x5d4c91=_0x1d3409,{status:_0x37b0e5,coordinator:_0xeff7c4}=_0x134623;switch(_0x37b0e5){case _0x4d3fc0[_0x5d4c91(0x1d5)]:return _0x49ef39[_0x5d4c91(0x10c)](_0x5eddbd,{'coordinator':_0xeff7c4});case _0x4d3fc0[_0x5d4c91(0x101)]:return _0x49ef39[_0x5d4c91(0x10c)](_0x280652,{'coordinator':_0xeff7c4});case _0x4d3fc0[_0x5d4c91(0x1c2)]:return _0x49ef39['jsx'](_0x16aec7,{'coordinator':_0xeff7c4});case _0x4d3fc0[_0x5d4c91(0x1ca)]:return _0x49ef39[_0x5d4c91(0x10c)](_0x12a948,{});case _0x4d3fc0[_0x5d4c91(0x140)]:return _0x49ef39[_0x5d4c91(0x10c)](_0x55d24d,{'coordinator':_0xeff7c4});default:return null;}}function _0x5eddbd(_0x3a8e6e){const _0x481ba2=_0x1d3409,{coordinator:_0x290970}=_0x3a8e6e;return _0x49ef39[_0x481ba2(0x130)](_0x49ef39[_0x481ba2(0x1c1)],{'children':[_0x49ef39['jsx'](_0x481ba2(0x119),{'className':_0x481ba2(0x177),'children':_0x481ba2(0x156)}),_0x49ef39[_0x481ba2(0x10c)](_0x4e9136['Button'],{'onClick':()=>_0x290970['tryStartPresenting'](),'children':_0x481ba2(0x185)})]});}function _0x280652(_0x52df6a){const _0x216316=_0x1d3409,{coordinator:_0x4f43b4}=_0x52df6a;return _0x49ef39['jsxs'](_0x49ef39['Fragment'],{'children':[_0x49ef39['jsx'](_0x216316(0x119),{'className':_0x216316(0x177),'children':_0x216316(0x1dc)}),_0x49ef39['jsx'](_0x4e9136[_0x216316(0x1b9)],{'onClick':()=>_0x4f43b4['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x16aec7(_0x2104f7){const _0xaf8a82=_0x1d3409,{coordinator:_0x49406d}=_0x2104f7;return _0x49ef39[_0xaf8a82(0x130)](_0x49ef39[_0xaf8a82(0x1c1)],{'children':[_0x49ef39[_0xaf8a82(0x10c)](_0xaf8a82(0x119),{'className':_0xaf8a82(0x177),'children':_0xaf8a82(0x1c9)}),_0x49ef39[_0xaf8a82(0x10c)](_0x4e9136['Button'],{'variant':_0xaf8a82(0x135),'onClick':()=>_0x49406d['startFollowing'](),'children':_0xaf8a82(0x118)})]});}function _0x55d24d(_0xdb8d4d){const _0x382602=_0x1d3409,{coordinator:_0x30de2b}=_0xdb8d4d;return _0x49ef39[_0x382602(0x130)](_0x49ef39[_0x382602(0x1c1)],{'children':[_0x49ef39[_0x382602(0x10c)]('div',{'className':_0x382602(0x177),'children':_0x382602(0x13d)}),_0x49ef39[_0x382602(0x10c)](_0x4e9136[_0x382602(0x1b9)],{'variant':_0x382602(0x154),'onClick':()=>_0x30de2b[_0x382602(0x18a)](),'children':_0x382602(0x15e)})]});}function _0x12a948(){const _0x3b226d=_0x1d3409;return _0x49ef39[_0x3b226d(0x10c)](_0x49ef39[_0x3b226d(0x1c1)],{'children':_0x3b226d(0x1d3)});}var _0x3a337f=Object[_0x1d3409(0x1d0)],_0x5d82df=(_0x48d26a,_0x2e3932,_0x520a4d,_0x27c851)=>{const _0x192801=_0x1d3409;for(var _0x352af7=_0x27c851>0x1?void 0x0:_0x27c851?_0x3a337f(_0x2e3932,_0x520a4d):_0x2e3932,_0x43ff48=_0x48d26a[_0x192801(0x163)]-0x1,_0x37c1d4;_0x43ff48>=0x0;_0x43ff48--)(_0x37c1d4=_0x48d26a[_0x43ff48])&&(_0x352af7=_0x37c1d4(_0x352af7)||_0x352af7);return _0x352af7;},_0x2accc7=(_0x145147,_0x5de823)=>(_0xe46112,_0x512d88)=>_0x5de823(_0xe46112,_0x512d88,_0x145147);_0x2624a2['DesktopLiveShareController']=class extends _0x1ecc93[_0x1d3409(0x175)]{constructor(_0x1b4905,_0x147e54){const _0x4549c8=_0x1d3409;super(),this['_injector']=_0x1b4905,this[_0x4549c8(0x168)]=_0x147e54,this['_mountLiveShare']();}[_0x1d3409(0x1be)](){const _0x4b81f3=_0x1d3409;this[_0x4b81f3(0x1a6)](this[_0x4b81f3(0x168)][_0x4b81f3(0x1bd)](_0x20bfb3[_0x4b81f3(0x18c)][_0x4b81f3(0xf8)],()=>_0x20bfb3[_0x4b81f3(0x16d)](_0x628078,this[_0x4b81f3(0x144)])));}},_0x2624a2[_0x1d3409(0xf9)]=_0x5d82df([_0x2accc7(0x0,_0x1ecc93[_0x1d3409(0x11d)](_0x1ecc93['Injector'])),_0x2accc7(0x1,_0x20bfb3['IUIPartsService'])],_0x2624a2['DesktopLiveShareController']);const _0x4fb311=_0x1d3409(0x184),_0xa9cf={};var _0x43cff3=Object[_0x1d3409(0x1d0)],_0x139930=(_0x1a1171,_0x56ba76,_0x9f2402,_0x6104c0)=>{const _0x245bc4=_0x1d3409;for(var _0x2657d2=_0x6104c0>0x1?void 0x0:_0x6104c0?_0x43cff3(_0x56ba76,_0x9f2402):_0x56ba76,_0x28f5ce=_0x1a1171[_0x245bc4(0x163)]-0x1,_0xc59214;_0x28f5ce>=0x0;_0x28f5ce--)(_0xc59214=_0x1a1171[_0x28f5ce])&&(_0x2657d2=_0xc59214(_0x2657d2)||_0x2657d2);return _0x2657d2;},_0x46e057=(_0x488441,_0x28ba62)=>(_0xc749a3,_0x4f3fd1)=>_0x28ba62(_0xc749a3,_0x4f3fd1,_0x488441);let _0x241993=class extends _0x1ecc93[_0x1d3409(0x175)]{constructor(_0x51b5b7){const _0x308093=_0x1d3409;super(),this[_0x308093(0x181)]=_0x51b5b7,this['_init']();}[_0x1d3409(0x12b)](){const _0x3ea86b=_0x1d3409;[_0x527f2d[_0x3ea86b(0x13f)]['id'],_0x527f2d['SetScrollOperation']['id'],_0x402b6a[_0x3ea86b(0x1bb)]['id']][_0x3ea86b(0x157)](_0x5c2759=>{const _0x1941e8=_0x3ea86b;this[_0x1941e8(0x1a6)](this['_liveShareService'][_0x1941e8(0x193)](_0x5c2759));});}};_0x241993=_0x139930([_0x46e057(0x0,_0x1ecc93['Inject'](_0x5e12fa))],_0x241993);var _0x24c73b=Object[_0x1d3409(0x1bf)],_0x53a497=Object[_0x1d3409(0x1d0)],_0x34bd03=(_0x181a87,_0x5c4ef0,_0x828d05)=>_0x5c4ef0 in _0x181a87?_0x24c73b(_0x181a87,_0x5c4ef0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x828d05}):_0x181a87[_0x5c4ef0]=_0x828d05,_0x462782=(_0x5838a5,_0x45ee66,_0x5d615f,_0x2202cb)=>{for(var _0x1926b1=_0x2202cb>0x1?void 0x0:_0x2202cb?_0x53a497(_0x45ee66,_0x5d615f):_0x45ee66,_0x4aeb26=_0x5838a5['length']-0x1,_0x63440c;_0x4aeb26>=0x0;_0x4aeb26--)(_0x63440c=_0x5838a5[_0x4aeb26])&&(_0x1926b1=_0x63440c(_0x1926b1)||_0x1926b1);return _0x1926b1;},_0x17c188=(_0x350976,_0x5a2bc9)=>(_0x462163,_0x839ec6)=>_0x5a2bc9(_0x462163,_0x839ec6,_0x350976),_0x1824c0=(_0x2cbe96,_0x5e7244,_0x1e21dd)=>_0x34bd03(_0x2cbe96,typeof _0x5e7244!='symbol'?_0x5e7244+'':_0x5e7244,_0x1e21dd);const _0x1bb8ad='UNIVER_LIVE_SHARE_PLUGIN';_0x2624a2[_0x1d3409(0x105)]=class extends _0x1ecc93[_0x1d3409(0x16a)]{constructor(_0x183b15=_0xa9cf,_0x108d16,_0x25dcf7){const _0x3e1092=_0x1d3409;super(),this['_config']=_0x183b15,this[_0x3e1092(0x144)]=_0x108d16,this[_0x3e1092(0x139)]=_0x25dcf7;const {..._0x2568f4}=_0x1ecc93[_0x3e1092(0x15f)]({},_0xa9cf,this['_config']);this[_0x3e1092(0x139)][_0x3e1092(0x1cd)](_0x4fb311,_0x2568f4);}[_0x1d3409(0x179)](){const _0x1dc069=_0x1d3409;_0x1ecc93[_0x1dc069(0x162)](this['_injector'],_0x1ecc93['mergeOverrideWithDependencies']([[_0x5e12fa],[_0x2624a2[_0x1dc069(0x190)]],[_0x241993],[_0x2624a2[_0x1dc069(0xf9)]]],this[_0x1dc069(0x153)]['override'])),_0x1ecc93[_0x1dc069(0x1b1)](this[_0x1dc069(0x144)],[[_0x241993]]);}['onRendered'](){const _0x2a3b1c=_0x1d3409;_0x1ecc93['touchDependencies'](this['_injector'],[[_0x2624a2[_0x2a3b1c(0xf9)]]]);}},_0x1824c0(_0x2624a2[_0x1d3409(0x105)],_0x1d3409(0x155),_0x1ecc93[_0x1d3409(0x11a)]['UNIVER_UNKNOWN']),_0x1824c0(_0x2624a2[_0x1d3409(0x105)],_0x1d3409(0x126),_0x1bb8ad),_0x2624a2['UniverLiveSharePlugin']=_0x462782([_0x1ecc93[_0x1d3409(0x182)](_0x30d3fc[_0x1d3409(0x109)]),_0x17c188(0x1,_0x1ecc93[_0x1d3409(0x11d)](_0x1ecc93[_0x1d3409(0x1d8)])),_0x17c188(0x2,_0x1ecc93[_0x1d3409(0x1ce)])],_0x2624a2[_0x1d3409(0x105)]),_0x2624a2[_0x1d3409(0x196)]=_0x628078,_0x2624a2[_0x1d3409(0x167)]=_0x5e12fa,_0x2624a2[_0x1d3409(0x191)]=_0x4d3fc0,Object['defineProperty'](_0x2624a2,Symbol[_0x1d3409(0x173)],{'value':'Module'});}));function _0x21ce(){const _0x242d9d=['default','type','Present\x20this\x20document','forEach','has','svg','@univerjs/sheets-ui','following','useState','UNIVER_SHEET','Stop\x20presenting','merge','917040hwuUMh','_commandService','registerDependencies','length','displayName','includes','exports','LiveShareService','_uiPartsService','toDisposable','Plugin','tag','use','connectInjector','add','@univerjs/design','toString','string','dispose','toStringTag','substring','Disposable','createInstance','univer-mb-3\x20univer-w-full\x20univer-text-sm','@univerjs/sheets','onStarting','complete','794788YcBWvE','UniverCore','offline','LIVESHARE_NEW_HOST','@univerjs-pro/collaboration','params','_liveShareService','DependentOn','sessionStatus$','live-share.config','Start','_commandDisposable','none','useObservable','createElement','stopPresenting','_handleNewChangeSets','BuiltInUIPart','delete','8105364IgUduh','UniverProLiveShare','LiveShareController','LiveShareStatus','getMemberID','registerSharedOperation','_handleOperation','children','LiveShare','getCurrentTypeOfUnit$','5764160eEEBxE','amd','4OUtVNw','getConfig','requireSession','CommandType','useRef','@univerjs/core','presenter','_handleTerminate','_stopPresenting','trim','set','getTypeOfUnitAdded$','disposeWithMe','replace','executeCommand','currentColor','NEW_CHANGESETS','univerjs-icon\x20univerjs-icon-','SessionStatus','then','throttleTime','getTypeOfUnitDisposed$','stopFollowing','touchDependencies','_startPresenting','shouldShareOperation','stringify','univer-size-4','evenodd','_handleNewHost','_presenter','Button','operations','SetWorksheetActiveOperation','presenting','registerComponent','_mountLiveShare','defineProperty','entries','Fragment','NOT_FOLLOWING','getInitialStates','memberID','_status','CollaborationEvent','registerInitialStateReporter','status$','You\x27re\x20not\x20following\x20the\x20presenter','OFFLINE','UniverSheets','_handleOnline','setConfig','IConfigService','UniverProCollaboration','getOwnPropertyDescriptor','values','62363tmIExG','You\x27are\x20offline.','React','IDLE','getUnitId','subscribe','Injector','_fetchOperations','defIds','@univerjs-pro/collaboration-client','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','react/jsx-runtime','useDependency','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','asObservable','reverse','HEADER_MENU','DesktopLiveShareController','xlink:href','DisposableCollection','OPERATION','useEffect','0\x200\x2017\x2017','getLiveShareCoordinator','_univerInstanceService','FOLLOWING','map','find','not-following','UniverLiveSharePlugin','LiveShareCoordinator','end','takeUntil','UniverCollaborationClientPlugin','_entities','http://www.w3.org/2000/svg','jsx','clear','sheet','rxjs/operators','function','current','path','LIVESHARE_TERMINATE','idSuffix','pipe','_startLiveShareCoordinator','react','Start\x20following','div','UniverInstanceType','Subject','colorChannel1','Inject','Dropdown','UniverSheetsUi','_stopFollowing','LIVESHARE_REQUEST_HOST','get','ICommandService','next','idle','pluginName','_beIdle','_startFollowing','318xwgorf','mask','_init','init','_status$','LIVESHARE_OPERATION','attrs','jsxs','1em','parseProtocolChangeset','@univerjs/ui','UniverDesign','text','defs','_sharedOperations','_unitID','_configService','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','SAME_OPERATION_SHARE_INTERVAL','BehaviorSubject','You\x27re\x20presenting\x20the\x20document','RxDisposable','SetZoomRatioOperation','PRESENTING','assign','LiveShareIcon','random','_injector','mutations','data','2813240xCCnfk','_handleOffline','2qQFMHO','dispose$','send','_reporters','unsubscribe','2837848qjypsC','IUniverInstanceService','getLiveShareCoordinatorSync','getValue','_collabSession','_config'];_0x21ce=function(){return _0x242d9d;};return _0x21ce();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.12.4-insiders.20251211-c28f914",
3
+ "version": "0.12.4-insiders.20251212-6c41730",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,14 +57,14 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.0.2",
60
- "@univerjs-pro/collaboration": "0.12.4-insiders.20251211-c28f914",
61
- "@univerjs-pro/collaboration-client": "0.12.4-insiders.20251211-c28f914",
62
- "@univerjs/core": "0.12.4-insiders.20251211-c28f914",
63
- "@univerjs/design": "0.12.4-insiders.20251211-c28f914",
64
- "@univerjs/sheets": "0.12.4-insiders.20251211-c28f914",
65
- "@univerjs/sheets-ui": "0.12.4-insiders.20251211-c28f914",
66
- "@univerjs/ui": "0.12.4-insiders.20251211-c28f914",
67
- "@univerjs/engine-render": "0.12.4-insiders.20251211-c28f914"
60
+ "@univerjs-pro/collaboration": "0.12.4-insiders.20251212-6c41730",
61
+ "@univerjs-pro/collaboration-client": "0.12.4-insiders.20251212-6c41730",
62
+ "@univerjs/core": "0.12.4-insiders.20251212-6c41730",
63
+ "@univerjs/design": "0.12.4-insiders.20251212-6c41730",
64
+ "@univerjs/sheets-ui": "0.12.4-insiders.20251212-6c41730",
65
+ "@univerjs/engine-render": "0.12.4-insiders.20251212-6c41730",
66
+ "@univerjs/ui": "0.12.4-insiders.20251212-6c41730",
67
+ "@univerjs/sheets": "0.12.4-insiders.20251212-6c41730"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -72,7 +72,7 @@
72
72
  "rxjs": "7.8.2",
73
73
  "tailwindcss": "^3.4.17",
74
74
  "typescript": "^5.9.3",
75
- "vite": "^7.2.6",
75
+ "vite": "^7.2.7",
76
76
  "vitest": "^4.0.15",
77
77
  "@univerjs-infra/shared": "0.12.4",
78
78
  "@univerjs/protocol": "0.1.47"