@univerjs-pro/live-share 0.12.4-insiders.20251211-c28f914 → 0.12.4-insiders.20251213-692494c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +12 -12
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x340d(){const _0x47c1be=['getActiveSheet','startFollowing','_initialize','193490uIDUPm','5361456GYSCxM','get','_injector','6nhjvhI','44WuzSnC','22zkpDXF','getUnitId','getActiveWorkbook','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','3440448lTnzHb','startRow','stopFollowing','SetWorksheetActiveOperation','getSheetId','getLiveShareStatus','getId','PRESENTING','FUniver','extend','44210NpQiDx','getRenderById','LiveShareStatus','351GexBnW','LiveShareStatusEnum','28rCEWFZ','FRange','49611wKLlhI','IRenderManagerService','stopPresenting','2548735GtjXbL','syncExecuteCommand','No\x20active\x20workbook\x20found.','startPresenting','306660zQhvbz','SetScrollOperation','LiveShareController','getLiveShareCoordinatorSync','FEnum'];_0x340d=function(){return _0x47c1be;};return _0x340d();}const _0x34929c=_0x4e3f;(function(_0x1eaa6e,_0x57b15b){const _0x1b8387=_0x4e3f,_0x456ee6=_0x1eaa6e();while(!![]){try{const _0x4adcb9=-parseInt(_0x1b8387(0x156))/0x1*(-parseInt(_0x1b8387(0x154))/0x2)+parseInt(_0x1b8387(0x133))/0x3+-parseInt(_0x1b8387(0x140))/0x4*(parseInt(_0x1b8387(0x13b))/0x5)+-parseInt(_0x1b8387(0x13f))/0x6*(-parseInt(_0x1b8387(0x159))/0x7)+parseInt(_0x1b8387(0x145))/0x8+parseInt(_0x1b8387(0x152))/0x9*(parseInt(_0x1b8387(0x14f))/0xa)+parseInt(_0x1b8387(0x141))/0xb*(-parseInt(_0x1b8387(0x13c))/0xc);if(_0x4adcb9===_0x57b15b)break;else _0x456ee6['push'](_0x456ee6['shift']());}catch(_0x8d02ad){_0x456ee6['push'](_0x456ee6['shift']());}}}(_0x340d,0x6c6c4));function _0x4e3f(_0x599efc,_0x28afcb){_0x599efc=_0x599efc-0x130;const _0x340d6b=_0x340d();let _0x4e3f85=_0x340d6b[_0x599efc];return _0x4e3f85;}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[_0x34929c(0x155)]{[_0x34929c(0x13a)](_0x1843c6,_0xd54eab,_0x20c7f8,_0x84402f,_0x1118ea){const _0xed1413=_0x34929c,_0xbb07d5=_0x1843c6[_0xed1413(0x13d)](n['LiveShareController']),_0x44b2ec=_0x1843c6[_0xed1413(0x13d)](g[_0xed1413(0x157)]),_0xf397a8=_0xd54eab['getUnitId'](),_0x3797b0=_0xd54eab[_0xed1413(0x138)](),_0x2ed76e=_0xbb07d5['getLiveShareCoordinatorSync'](_0xf397a8);(_0x2ed76e==null?void 0x0:_0x2ed76e['getStatus']())!==n['LiveShareStatus'][_0xed1413(0x14c)]||(_0x20c7f8[_0xed1413(0x149)]()!==_0x3797b0[_0xed1413(0x149)]()&&this['_commandService']['executeCommand'](u[_0xed1413(0x148)]['id'],{'unitId':_0xf397a8,'subUnitId':_0x20c7f8[_0xed1413(0x149)]()}),!_0x44b2ec[_0xed1413(0x150)](_0xf397a8))||_0x1118ea[_0xed1413(0x130)](f[_0xed1413(0x134)]['id'],{'unitId':_0xd54eab[_0xed1413(0x142)](),'sheetId':_0x20c7f8[_0xed1413(0x149)](),'sheetViewStartRow':_0x84402f[_0xed1413(0x146)],'sheetViewStartColumn':_0x84402f['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x34929c(0x155)][_0x34929c(0x14e)](w);class C extends a[_0x34929c(0x14d)]{[_0x34929c(0x14a)](){const _0x2c9cca=_0x34929c;var _0x25c8de,_0x5f2cb1;const _0x5770d8=this[_0x2c9cca(0x13e)][_0x2c9cca(0x13d)](n[_0x2c9cca(0x135)]),_0xfcc3e6=(_0x25c8de=this[_0x2c9cca(0x143)]())==null?void 0x0:_0x25c8de['getId']();if(!_0xfcc3e6)throw new Error(_0x2c9cca(0x131));const _0x2b9655=_0x5770d8[_0x2c9cca(0x136)](_0xfcc3e6);return(_0x5f2cb1=_0x2b9655==null?void 0x0:_0x2b9655['getStatus']())!=null?_0x5f2cb1:n[_0x2c9cca(0x151)]['IDLE'];}['startFollowing'](){const _0x3529db=_0x34929c;var _0x3f3db9;const _0x1acd18=this['_injector'][_0x3529db(0x13d)](n[_0x3529db(0x135)]),_0x2fe7d9=(_0x3f3db9=this[_0x3529db(0x143)]())==null?void 0x0:_0x3f3db9[_0x3529db(0x14b)]();if(!_0x2fe7d9)throw new Error('No\x20active\x20workbook\x20found.');const _0x7e3d63=_0x1acd18[_0x3529db(0x136)](_0x2fe7d9);if(!_0x7e3d63)throw new Error(_0x3529db(0x144));_0x7e3d63[_0x3529db(0x139)]();}[_0x34929c(0x147)](){const _0x5edded=_0x34929c;var _0x35499c;const _0xcc5c79=this[_0x5edded(0x13e)][_0x5edded(0x13d)](n[_0x5edded(0x135)]),_0x564369=(_0x35499c=this[_0x5edded(0x143)]())==null?void 0x0:_0x35499c['getId']();if(!_0x564369)throw new Error(_0x5edded(0x131));const _0x530057=_0xcc5c79['getLiveShareCoordinatorSync'](_0x564369);if(!_0x530057)throw new Error(_0x5edded(0x144));_0x530057[_0x5edded(0x147)]();}[_0x34929c(0x132)](){const _0x450cf4=_0x34929c;var _0x618c04;const _0x10b0f0=this[_0x450cf4(0x13e)][_0x450cf4(0x13d)](n[_0x450cf4(0x135)]),_0x337cb3=(_0x618c04=this[_0x450cf4(0x143)]())==null?void 0x0:_0x618c04[_0x450cf4(0x14b)]();if(!_0x337cb3)throw new Error(_0x450cf4(0x131));const _0x3a4500=_0x10b0f0[_0x450cf4(0x136)](_0x337cb3);if(!_0x3a4500)throw new Error(_0x450cf4(0x144));_0x3a4500['tryStartPresenting']();}[_0x34929c(0x158)](){const _0x2dc8e3=_0x34929c;var _0x40b40a;const _0x43b2f5=this[_0x2dc8e3(0x13e)]['get'](n['LiveShareController']),_0x5bfd41=(_0x40b40a=this['getActiveWorkbook']())==null?void 0x0:_0x40b40a[_0x2dc8e3(0x14b)]();if(!_0x5bfd41)throw new Error(_0x2dc8e3(0x131));const _0x20fac7=_0x43b2f5['getLiveShareCoordinatorSync'](_0x5bfd41);if(!_0x20fac7)throw new Error(_0x2dc8e3(0x144));_0x20fac7[_0x2dc8e3(0x158)]();}}a[_0x34929c(0x14d)][_0x34929c(0x14e)](C);class L extends a['FEnum']{get[_0x34929c(0x153)](){return n['LiveShareStatus'];}}a[_0x34929c(0x137)][_0x34929c(0x14e)](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 _0x12f82e=_0x4641;(function(_0x250969,_0x1fcaf8){const _0x3501fc=_0x4641,_0x21bbaa=_0x250969();while(!![]){try{const _0x5ad3f3=parseInt(_0x3501fc(0x18f))/0x1+parseInt(_0x3501fc(0x1c1))/0x2+-parseInt(_0x3501fc(0x1e1))/0x3*(-parseInt(_0x3501fc(0x13d))/0x4)+parseInt(_0x3501fc(0x1d6))/0x5*(-parseInt(_0x3501fc(0x1fa))/0x6)+parseInt(_0x3501fc(0x1dc))/0x7+parseInt(_0x3501fc(0x1af))/0x8+parseInt(_0x3501fc(0x178))/0x9*(-parseInt(_0x3501fc(0x181))/0xa);if(_0x5ad3f3===_0x1fcaf8)break;else _0x21bbaa['push'](_0x21bbaa['shift']());}catch(_0x2fa9b4){_0x21bbaa['push'](_0x21bbaa['shift']());}}}(_0x4c94,0x675a1));var T=Object[_0x12f82e(0x20c)],U=(_0x1c4539,_0x132659,_0x582e24)=>_0x132659 in _0x1c4539?T(_0x1c4539,_0x132659,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x582e24}):_0x1c4539[_0x132659]=_0x582e24,_=(_0xcb41cf,_0x183bb6,_0x319afd)=>U(_0xcb41cf,typeof _0x183bb6!=_0x12f82e(0x154)?_0x183bb6+'':_0x183bb6,_0x319afd);Object['defineProperty'](exports,Symbol[_0x12f82e(0x1a9)],{'value':_0x12f82e(0x1cf)});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:_0x1c643c,..._0xfabc16}){const _0x5b193a=_0x12f82e,{icon:_0x157980,id:_0x42bbf8,className:_0x453be5,extend:_0x3367a7,..._0x38eb7c}=_0xfabc16,_0x5429e2=(_0x5b193a(0x19b)+_0x42bbf8+'\x20'+(_0x453be5||''))['trim'](),_0x5232e1=v[_0x5b193a(0x185)]('_'+H());return j(_0x157980,''+_0x42bbf8,{'defIds':_0x157980['defIds'],'idSuffix':_0x5232e1[_0x5b193a(0x14a)]},{'ref':_0x1c643c,'className':_0x5429e2,..._0x38eb7c},_0x3367a7);}function _0x4c94(){const _0x230e95=['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','_handleNewChangeSets','useDependency','_mountLiveShare','_reporters','clear','getStatus','live-share.config','throttleTime','useState','tag','SetWorksheetActiveOperation','getLiveShareCoordinatorSync','_startPresenting','getLiveShareCoordinator','14130819cLkgpb','mutations','random','init','_collabSessionService','data','none','InsertSheetMutation','LIVESHARE_TERMINATE','10ujuuuJ','add','offline','Dropdown','useRef','DesktopLiveShareController','memberID','getOwnPropertyDescriptor','string','getCurrentTypeOfUnit$','next','SessionStatus','unsubscribe','_injector','579728QxNAaA','jsxs','UniverInstanceType','useEffect','map','Start','_liveShareService','length','attrs','Injector','You\x27re\x20following\x20the\x20presenter','PRESENTING','univerjs-icon\x20univerjs-icon-','BuiltInUIPart','_sharedOperations','getInitialStates','_init','subscribe','getConfig','SetZoomRatioOperation','params','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','then','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','use','createInstance','toStringTag','_entities','stringify','children','_beIdle','_handleOffline','4292360eQtEGG','sheet','send','toString','_fetchOperations','evenodd','Fragment','_uiPartsService','_handleOperation','SetScrollOperation','LIVESHARE_OPERATION','DisposableCollection','url(#$1','requireSession','registerSharedOperation','_univerInstanceService','forwardRef','svg','84340FjCsPD','_commandService','event$','getTypeOfUnitAdded$','idSuffix','takeUntil','type','You\x27are\x20offline.','You\x27re\x20presenting\x20the\x20document','Start\x20following','UNIVER_SHEET','1em','ONLINE','Button','Module','_unitID','find','tryStartPresenting','button','colorChannel1','startFollowing','10555IJloqX','pipe','clsx','LIVESHARE_NEW_HOST','_status','_stopPresenting','5600028FQRkmq','disposeWithMe','complete','IUIPartsService','CollaborationEvent','180CYTFNw','registerDependencies','onCommandExecuted','_stopFollowing','_startFollowing','merge','LiveShareIcon','connectInjector','LiveShare','jsx','Disposable','entries','replace','presenter','div','not-following','mergeOverrideWithDependencies','UNIVER_LIVE_SHARE_PLUGIN','HEADER_MENU','idle','parse','Stop\x20following','fill','LiveShareCoordinator','has','822WReSwW','createElement','_handleOnline','executeCommand','path','UniverIcon','parseProtocolChangeset','univer-mb-3\x20univer-w-full\x20univer-text-sm','shouldShareOperation','override','UNIVER_UNKNOWN','_configService','set','getValue','IConfigService','operations','_handleTerminate','UniverCollaborationClientPlugin','defineProperty','touchDependencies','RxDisposable','Plugin','21612jlbQZT','_handleNewHost','UniverLiveSharePlugin','Stop\x20presenting','_status$','setConfig','presenting','getMemberID','displayName','stopFollowing','getUnitId','onStarting','_presenter','current','xlink:href','dispose','end','defs','IDLE','OFFLINE','0\x200\x2017\x2017','_commandDisposable','includes','symbol','_collabSession','NEW_CHANGESETS','sessionStatus$','following','_startLiveShareCoordinator','toDisposable','dispose$','LiveShareService','substring','get','_config','You\x27re\x20not\x20following\x20the\x20presenter','NOT_FOLLOWING','asObservable','stopPresenting','from','mask','LiveShareController','forEach'];_0x4c94=function(){return _0x230e95;};return _0x4c94();}function j(_0x978f76,_0x2fc1ca,_0xd4bc70,_0x15a75b,_0x1de0e4){const _0x4fc54b=_0x12f82e;return v[_0x4fc54b(0x1fb)](_0x978f76[_0x4fc54b(0x173)],{'key':_0x2fc1ca,...y(_0x978f76,_0xd4bc70,_0x1de0e4),..._0x15a75b},(F(_0x978f76,_0xd4bc70)[_0x4fc54b(0x1ac)]||[])[_0x4fc54b(0x193)]((_0x54f9dc,_0x58e83b)=>j(_0x54f9dc,_0x2fc1ca+'-'+_0x978f76[_0x4fc54b(0x173)]+'-'+_0x58e83b,_0xd4bc70,void 0x0,_0x1de0e4)));}function y(_0x34beae,_0x75ab2c,_0x4e85d7){const _0xf4ecce=_0x12f82e,_0x28bf95={..._0x34beae[_0xf4ecce(0x197)]};_0x4e85d7!=null&&_0x4e85d7[_0xf4ecce(0x1d4)]&&_0x28bf95['fill']===_0xf4ecce(0x1d4)&&(_0x28bf95[_0xf4ecce(0x1f7)]=_0x4e85d7['colorChannel1']),_0x34beae[_0xf4ecce(0x173)]===_0xf4ecce(0x165)&&_0x28bf95['id']&&(_0x28bf95['id']=_0x28bf95['id']+_0x75ab2c['idSuffix']),Object[_0xf4ecce(0x1ec)](_0x28bf95)[_0xf4ecce(0x167)](([_0x1fac4c,_0x32ba95])=>{const _0x431908=_0xf4ecce;_0x1fac4c===_0x431908(0x165)&&typeof _0x32ba95==_0x431908(0x189)&&(_0x28bf95[_0x1fac4c]=_0x32ba95[_0x431908(0x1ed)](/url\(#(.*)\)/,_0x431908(0x1bb)+_0x75ab2c[_0x431908(0x1c5)]+')'));});const {defIds:_0x43e5d7}=_0x75ab2c;return!_0x43e5d7||_0x43e5d7[_0xf4ecce(0x196)]===0x0||(_0x34beae[_0xf4ecce(0x173)]===_0xf4ecce(0x1a7)&&_0x28bf95[_0xf4ecce(0x14b)]&&(_0x28bf95['xlink:href']=_0x28bf95[_0xf4ecce(0x14b)]+_0x75ab2c[_0xf4ecce(0x1c5)]),Object[_0xf4ecce(0x1ec)](_0x28bf95)[_0xf4ecce(0x167)](([_0x1e0964,_0x2bf303])=>{const _0x4b1f01=_0xf4ecce;typeof _0x2bf303=='string'&&(_0x28bf95[_0x1e0964]=_0x2bf303[_0x4b1f01(0x1ed)](/url\(#(.*)\)/,_0x4b1f01(0x1bb)+_0x75ab2c[_0x4b1f01(0x1c5)]+')'));})),_0x28bf95;}function F(_0x3e5622,_0x131d0e){const _0x4390ec=_0x12f82e;var _0x4179f7;const {defIds:_0x3d7c52}=_0x131d0e;return!_0x3d7c52||_0x3d7c52[_0x4390ec(0x196)]===0x0?_0x3e5622:_0x3e5622[_0x4390ec(0x173)]===_0x4390ec(0x14e)&&((_0x4179f7=_0x3e5622['children'])!=null&&_0x4179f7[_0x4390ec(0x196)])?{..._0x3e5622,'children':_0x3e5622[_0x4390ec(0x1ac)][_0x4390ec(0x193)](_0x35b678=>typeof _0x35b678[_0x4390ec(0x197)]['id']==_0x4390ec(0x189)&&_0x3d7c52&&_0x3d7c52[_0x4390ec(0x153)](_0x35b678[_0x4390ec(0x197)]['id'])?{..._0x35b678,'attrs':{..._0x35b678[_0x4390ec(0x197)],'id':_0x35b678[_0x4390ec(0x197)]['id']+_0x131d0e[_0x4390ec(0x1c5)]}}:_0x35b678)}:_0x3e5622;}function _0x4641(_0x28bb5f,_0x5d2836){_0x28bb5f=_0x28bb5f-0x13c;const _0x4c9455=_0x4c94();let _0x4641bf=_0x4c9455[_0x28bb5f];return _0x4641bf;}function H(){const _0x3ea414=_0x12f82e;return Math[_0x3ea414(0x17a)]()[_0x3ea414(0x1b2)](0x24)[_0x3ea414(0x15d)](0x2,0x8);}x[_0x12f82e(0x145)]=_0x12f82e(0x1ff);const V={'tag':_0x12f82e(0x1c0),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x12f82e(0x17e),'viewBox':_0x12f82e(0x151),'width':_0x12f82e(0x1cc),'height':_0x12f82e(0x1cc)},'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':_0x12f82e(0x1fe),'attrs':{'fill':'currentColor','d':_0x12f82e(0x168),'fillRule':'evenodd','clipRule':_0x12f82e(0x1b4)}}]},R=v[_0x12f82e(0x1bf)](function(_0xff8aef,_0x956d36){const _0x10fc6a=_0x12f82e;return v[_0x10fc6a(0x1fb)](x,Object['assign']({},_0xff8aef,{'id':'live-share-icon','ref':_0x956d36,'icon':V}));});R[_0x12f82e(0x145)]=_0x12f82e(0x1e7);class E extends o['Disposable']{constructor(){super(...arguments),_(this,'_sharedOperations',new Set()),_(this,'_reporters',new Set());}['registerSharedOperation'](_0x17886d){const _0x2b3dde=_0x12f82e;return this[_0x2b3dde(0x19d)][_0x2b3dde(0x182)](_0x17886d),o[_0x2b3dde(0x15a)](()=>this['_sharedOperations']['delete'](_0x17886d));}['registerInitialStateReporter'](_0x22a121){const _0x5e0cf8=_0x12f82e;return this['_reporters'][_0x5e0cf8(0x182)](_0x22a121),o[_0x5e0cf8(0x15a)](()=>this[_0x5e0cf8(0x16d)]['delete'](_0x22a121));}[_0x12f82e(0x202)](_0x4e1fdf){const _0x548879=_0x12f82e;return this[_0x548879(0x19d)]['has'](_0x4e1fdf);}[_0x12f82e(0x19e)](_0x2db929){const _0x26d75d=_0x12f82e;return Array[_0x26d75d(0x164)](this['_reporters'])[_0x26d75d(0x193)](_0x2f69f9=>_0x2f69f9(_0x2db929));}}var M=Object[_0x12f82e(0x188)],P=(_0x14da8d,_0x32b72d,_0x947996,_0x16cdf7)=>{const _0x135f38=_0x12f82e;for(var _0x5f5d5f=_0x16cdf7>0x1?void 0x0:_0x16cdf7?M(_0x32b72d,_0x947996):_0x32b72d,_0x4a5f02=_0x14da8d[_0x135f38(0x196)]-0x1,_0x37dc03;_0x4a5f02>=0x0;_0x4a5f02--)(_0x37dc03=_0x14da8d[_0x4a5f02])&&(_0x5f5d5f=_0x37dc03(_0x5f5d5f)||_0x5f5d5f);return _0x5f5d5f;},S=(_0x430b9c,_0xa4eb5f)=>(_0x517220,_0x158184)=>_0xa4eb5f(_0x517220,_0x158184,_0x430b9c);exports[_0x12f82e(0x166)]=class extends o[_0x12f82e(0x20e)]{constructor(_0x1a6ad7,_0xb570f4,_0x521385){const _0x2a1720=_0x12f82e;super(),_(this,_0x2a1720(0x1aa),new Map()),(this[_0x2a1720(0x1be)]=_0x1a6ad7,this['_injector']=_0xb570f4,this['_collabSessionService']=_0x521385,this[_0x2a1720(0x19f)]());}async['getLiveShareCoordinator'](_0x264f8d){const _0x387f42=_0x12f82e;return this[_0x387f42(0x1aa)][_0x387f42(0x1f9)](_0x264f8d)||await this[_0x387f42(0x159)](_0x264f8d),this[_0x387f42(0x1aa)][_0x387f42(0x15e)](_0x264f8d);}[_0x12f82e(0x175)](_0x3b7290){const _0x81b120=_0x12f82e;var _0x44237e;return(_0x44237e=this[_0x81b120(0x1aa)][_0x81b120(0x15e)](_0x3b7290))!=null?_0x44237e:null;}[_0x12f82e(0x19f)](){const _0x16dfac=_0x12f82e;this['_univerInstanceService'][_0x16dfac(0x1c4)](o[_0x16dfac(0x191)]['UNIVER_SHEET'])[_0x16dfac(0x1d7)](I['takeUntil'](this[_0x16dfac(0x15b)]))[_0x16dfac(0x1a0)](async _0x1c64ee=>{const _0x24c6b5=_0x16dfac,_0x36641e=_0x1c64ee[_0x24c6b5(0x147)]();this[_0x24c6b5(0x1aa)]['has'](_0x36641e)||this[_0x24c6b5(0x159)](_0x36641e);}),this[_0x16dfac(0x1be)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x16dfac(0x1cb)])['pipe'](I[_0x16dfac(0x1c6)](this['dispose$']))[_0x16dfac(0x1a0)](_0x142594=>{const _0x1a728b=_0x16dfac,_0x333a26=_0x142594[_0x1a728b(0x147)](),_0x9b445a=this[_0x1a728b(0x1aa)][_0x1a728b(0x15e)](_0x333a26);_0x9b445a==null||_0x9b445a[_0x1a728b(0x14c)]();});}async[_0x12f82e(0x159)](_0x1046ae){const _0x12f9b1=_0x12f82e,_0x4bb107=await this[_0x12f9b1(0x17c)][_0x12f9b1(0x1bc)](_0x1046ae),_0x1d31a2=this[_0x12f9b1(0x18e)][_0x12f9b1(0x1a8)](exports[_0x12f9b1(0x1f8)],_0x1046ae,_0x4bb107);return _0x1d31a2[_0x12f9b1(0x17b)](),this['_entities'][_0x12f9b1(0x206)](_0x1046ae,_0x1d31a2),_0x1d31a2;}},exports[_0x12f82e(0x166)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x12f82e(0x169)](o[_0x12f82e(0x198)])),S(0x2,o['Inject'](b['CollaborationSessionService']))],exports['LiveShareController']);var u=(_0x9e342b=>(_0x9e342b[_0x12f82e(0x150)]='offline',_0x9e342b['IDLE']='idle',_0x9e342b['FOLLOWING']=_0x12f82e(0x158),_0x9e342b[_0x12f82e(0x161)]=_0x12f82e(0x1f0),_0x9e342b[_0x12f82e(0x19a)]=_0x12f82e(0x143),_0x9e342b))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x12f82e(0x20e)]{constructor(_0x155913,_0x1e87b6,_0x2cc75f,_0x4887ce,_0x54bf30){const _0x3d8215=_0x12f82e;super(),_(this,_0x3d8215(0x141),new O['BehaviorSubject']('idle')),_(this,'status$',this[_0x3d8215(0x141)][_0x3d8215(0x162)]()),_(this,_0x3d8215(0x19f),!0x1),_(this,'_commandDisposable',null),_(this,_0x3d8215(0x149),null),(this[_0x3d8215(0x1d0)]=_0x155913,this[_0x3d8215(0x155)]=_0x1e87b6,this[_0x3d8215(0x205)]=_0x2cc75f,this[_0x3d8215(0x195)]=_0x4887ce,this[_0x3d8215(0x1c2)]=_0x54bf30);}get[_0x12f82e(0x1da)](){const _0x5d5ab5=_0x12f82e;return this[_0x5d5ab5(0x141)][_0x5d5ab5(0x207)]();}[_0x12f82e(0x14c)](){const _0x21ced9=_0x12f82e;var _0x2dbdbc;(_0x2dbdbc=this[_0x21ced9(0x152)])==null||_0x2dbdbc[_0x21ced9(0x14c)](),this[_0x21ced9(0x141)][_0x21ced9(0x18b)](_0x21ced9(0x1f4)),this[_0x21ced9(0x141)][_0x21ced9(0x1de)]();}[_0x12f82e(0x16f)](){const _0xb03cc0=_0x12f82e;return this[_0xb03cc0(0x1da)];}['init'](){const _0x13e9f7=_0x12f82e;this[_0x13e9f7(0x19f)]||(this[_0x13e9f7(0x19f)]=!0x0,this['_collabSession'][_0x13e9f7(0x157)][_0x13e9f7(0x1d7)](I[_0x13e9f7(0x1c6)](this[_0x13e9f7(0x15b)]))[_0x13e9f7(0x1a0)](_0x5d24eb=>{const _0x4cd108=_0x13e9f7;switch(_0x5d24eb){case b[_0x4cd108(0x18c)][_0x4cd108(0x150)]:this['_handleOffline']();break;case b[_0x4cd108(0x18c)][_0x4cd108(0x1cd)]:this[_0x4cd108(0x1fc)]();break;}}),this[_0x13e9f7(0x155)][_0x13e9f7(0x1c3)][_0x13e9f7(0x1d7)](I[_0x13e9f7(0x1c6)](this[_0x13e9f7(0x15b)]))[_0x13e9f7(0x1a0)](_0x2ef593=>{const _0x204f72=_0x13e9f7,{eventID:_0x4820ad}=_0x2ef593;switch(_0x4820ad){case d[_0x204f72(0x1e0)][_0x204f72(0x1d9)]:this[_0x204f72(0x13e)](_0x2ef593);break;case d[_0x204f72(0x1e0)][_0x204f72(0x1b9)]:this[_0x204f72(0x1b7)](_0x2ef593);break;case d['CollaborationEvent'][_0x204f72(0x180)]:this[_0x204f72(0x20a)]();break;case d[_0x204f72(0x1e0)][_0x204f72(0x156)]:this[_0x204f72(0x16a)](_0x2ef593);break;}}));}[_0x12f82e(0x1d2)](){const _0xbbb99d=_0x12f82e;this['_collabSession'][_0xbbb99d(0x1b1)]({'eventID':d[_0xbbb99d(0x1e0)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xbbb99d(0x1d0)],'userID':this[_0xbbb99d(0x155)][_0xbbb99d(0x144)]()}},this['_unitID']);}[_0x12f82e(0x163)](){const _0x376e6f=_0x12f82e;this['_status']===_0x376e6f(0x143)&&(this[_0x376e6f(0x141)]['next']('idle'),this[_0x376e6f(0x155)][_0x376e6f(0x1b1)]({'eventID':d[_0x376e6f(0x1e0)][_0x376e6f(0x180)],'data':{'unitID':this[_0x376e6f(0x1d0)]}},this[_0x376e6f(0x1d0)]));}[_0x12f82e(0x1d5)](){const _0x3b14ab=_0x12f82e;this[_0x3b14ab(0x1da)]==='not-following'&&(this['_status$'][_0x3b14ab(0x18b)](_0x3b14ab(0x158)),this[_0x3b14ab(0x1e5)]());}[_0x12f82e(0x146)](){const _0x23c08d=_0x12f82e;this['_status']===_0x23c08d(0x158)&&this[_0x23c08d(0x1e4)]();}['_handleNewHost'](_0x4bf94d){const _0x2142cc=_0x12f82e,{presenter:_0x141e63}=_0x4bf94d[_0x2142cc(0x17d)],_0x4fb545=this['_collabSession'][_0x2142cc(0x144)]();this[_0x2142cc(0x149)]=_0x141e63,_0x141e63===_0x4fb545?(this[_0x2142cc(0x1e4)](),this['_startPresenting']()):this[_0x2142cc(0x1da)]!=='not-following'&&(this[_0x2142cc(0x1db)](),this[_0x2142cc(0x1e5)]());}[_0x12f82e(0x1b3)](){const _0x338c50=_0x12f82e,_0x235716={'eventID':d[_0x338c50(0x1e0)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x338c50(0x155)][_0x338c50(0x1b1)](_0x235716,this[_0x338c50(0x1d0)]);}[_0x12f82e(0x20a)](){const _0x44f304=_0x12f82e;this[_0x44f304(0x149)]=null,this[_0x44f304(0x1da)]!==_0x44f304(0x143)&&this['_beIdle']();}[_0x12f82e(0x16a)](_0x5f52f4){const _0x1be33e=_0x12f82e;if(this[_0x1be33e(0x1da)]===_0x1be33e(0x158)&&this['_presenter']===_0x5f52f4[_0x1be33e(0x17d)][_0x1be33e(0x187)]){const _0x548072=d[_0x1be33e(0x200)](_0x5f52f4[_0x1be33e(0x17d)])[_0x1be33e(0x179)]['reverse']()[_0x1be33e(0x1d1)](_0x4472a4=>_0x4472a4['id']===C[_0x1be33e(0x17f)]['id']);if(_0x548072){const _0x346ea4=_0x548072[_0x1be33e(0x1a3)]['unitId'],_0x1fdd91=_0x548072['params'][_0x1be33e(0x1b0)]['id'];setTimeout(()=>{const _0x38ca75=_0x1be33e;this['_commandService'][_0x38ca75(0x1fd)](C[_0x38ca75(0x174)]['id'],{'unitId':_0x346ea4,'subUnitId':_0x1fdd91},{'fromCollab':!0x0});});}}}[_0x12f82e(0x176)](){const _0x15b8d9=_0x12f82e;this[_0x15b8d9(0x141)][_0x15b8d9(0x18b)](_0x15b8d9(0x143));const _0x4a13df=new Map(),_0x5651ac=this['_commandDisposable']=new o[(_0x15b8d9(0x1ba))]();_0x5651ac[_0x15b8d9(0x182)](o['toDisposable'](()=>{const _0x62ecac=_0x15b8d9;_0x4a13df[_0x62ecac(0x167)](_0x4df896=>_0x4df896[_0x62ecac(0x1de)]()),_0x4a13df[_0x62ecac(0x16e)]();})),_0x5651ac[_0x15b8d9(0x182)](this[_0x15b8d9(0x1c2)][_0x15b8d9(0x1e3)](_0x43c342=>{const _0x1fb2d8=_0x15b8d9;var _0x1a820a;if(_0x43c342[_0x1fb2d8(0x1c7)]!==o['CommandType']['OPERATION']||!this[_0x1fb2d8(0x195)][_0x1fb2d8(0x202)](_0x43c342['id']))return;const {id:_0x32f700}=_0x43c342;let _0x55cb47;_0x4a13df[_0x1fb2d8(0x1f9)](_0x32f700)?_0x55cb47=_0x4a13df[_0x1fb2d8(0x15e)](_0x32f700):(_0x55cb47=new O['Subject'](),_0x4a13df[_0x1fb2d8(0x206)](_0x32f700,_0x55cb47),_0x55cb47[_0x1fb2d8(0x1d7)](I[_0x1fb2d8(0x171)]((_0x1a820a=this[_0x1fb2d8(0x205)][_0x1fb2d8(0x1a1)](k))!=null?_0x1a820a:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x46fc65=>{const _0x4005d9=_0x1fb2d8;this[_0x4005d9(0x155)]['send']({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4005d9(0x1d0)],'operations':{[_0x46fc65['id']]:{'id':_0x46fc65['id'],'params':JSON[_0x4005d9(0x1ab)](_0x46fc65[_0x4005d9(0x1a3)])}}}},this[_0x4005d9(0x1d0)]);})),_0x55cb47[_0x1fb2d8(0x18b)](_0x43c342);})),this[_0x15b8d9(0x195)][_0x15b8d9(0x19e)](this[_0x15b8d9(0x1d0)])[_0x15b8d9(0x167)](_0x8a33fe=>this[_0x15b8d9(0x155)]['send']({'eventID':d[_0x15b8d9(0x1e0)][_0x15b8d9(0x1b9)],'data':{'unitID':this[_0x15b8d9(0x1d0)],'operations':{[_0x8a33fe['id']]:{'id':_0x8a33fe['id'],'params':JSON['stringify'](_0x8a33fe[_0x15b8d9(0x1a3)])}}}},this[_0x15b8d9(0x1d0)]));}[_0x12f82e(0x1db)](){const _0x3b5ba5=_0x12f82e;var _0x26ef56;this[_0x3b5ba5(0x141)][_0x3b5ba5(0x18b)](_0x3b5ba5(0x1f4)),(_0x26ef56=this[_0x3b5ba5(0x152)])==null||_0x26ef56['dispose'](),this[_0x3b5ba5(0x152)]=null;}[_0x12f82e(0x1e5)](){const _0x41919e=_0x12f82e;var _0x1af539;(_0x1af539=this['_commandDisposable'])==null||_0x1af539[_0x41919e(0x14c)](),this[_0x41919e(0x141)]['next']('following');}[_0x12f82e(0x1ad)](){const _0x4ce764=_0x12f82e;var _0x39efe9;this[_0x4ce764(0x141)][_0x4ce764(0x18b)](_0x4ce764(0x1f4)),(_0x39efe9=this['_commandDisposable'])==null||_0x39efe9[_0x4ce764(0x14c)](),this['_commandDisposable']=null;}[_0x12f82e(0x1e4)](){const _0x433c4c=_0x12f82e;var _0x131823;this[_0x433c4c(0x141)]['next'](_0x433c4c(0x1f0)),(_0x131823=this[_0x433c4c(0x152)])==null||_0x131823[_0x433c4c(0x14c)]();}[_0x12f82e(0x1b7)](_0x395760){const _0x4d81fa=_0x12f82e;if(['presenting','not-following',_0x4d81fa(0x183)][_0x4d81fa(0x153)](this[_0x4d81fa(0x1da)])||!_0x395760[_0x4d81fa(0x17d)]['presenter']||_0x395760[_0x4d81fa(0x17d)][_0x4d81fa(0x1ee)]===this[_0x4d81fa(0x155)]['getMemberID']())return;this[_0x4d81fa(0x1da)]==='idle'&&this[_0x4d81fa(0x1e5)]();const _0x2b2aca=_0x395760[_0x4d81fa(0x17d)][_0x4d81fa(0x209)];Object['values'](_0x2b2aca)[_0x4d81fa(0x167)](_0x532b03=>{const _0x51adf3=_0x4d81fa;this[_0x51adf3(0x1c2)]['executeCommand'](_0x532b03['id'],_0x532b03[_0x51adf3(0x1a3)]?JSON[_0x51adf3(0x1f5)](_0x532b03['params']):null,{'fromCollab':!0x0});});}[_0x12f82e(0x1ae)](){const _0x559e3c=_0x12f82e;var _0x5733a2;this[_0x559e3c(0x141)][_0x559e3c(0x18b)](_0x559e3c(0x183)),(_0x5733a2=this[_0x559e3c(0x152)])==null||_0x5733a2[_0x559e3c(0x14c)]();}['_handleOnline'](){const _0x25a6f0=_0x12f82e;this[_0x25a6f0(0x141)][_0x25a6f0(0x18b)](_0x25a6f0(0x1f4)),this[_0x25a6f0(0x1b3)]();}},exports[_0x12f82e(0x1f8)]=P([S(0x2,o[_0x12f82e(0x208)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports[_0x12f82e(0x1f8)]);function $(){const _0x31535f=_0x12f82e,_0x2f5efa=p[_0x31535f(0x16b)](exports['LiveShareController']),_0x4c4ed6=p['useDependency'](o['IUniverInstanceService']),_0x1acdcf=p['useObservable'](()=>_0x4c4ed6[_0x31535f(0x18a)](o[_0x31535f(0x191)][_0x31535f(0x1cb)]),void 0x0,!0x1,[]),[_0x2f26b7,_0x584960]=v[_0x31535f(0x172)](null),[_0x27a7ae,_0x550c50]=v['useState'](u[_0x31535f(0x14f)]),_0x2ad5b9=v['useRef'](null);return v[_0x31535f(0x192)](()=>(_0x1acdcf&&_0x2f5efa[_0x31535f(0x177)](_0x1acdcf[_0x31535f(0x147)]())[_0x31535f(0x1a5)](_0x11fb8e=>{const _0x593d8d=_0x31535f;_0x584960(_0x11fb8e),_0x2ad5b9[_0x593d8d(0x14a)]=_0x11fb8e['status$']['subscribe'](_0x4a9e62=>{_0x550c50(_0x4a9e62);});}),()=>{const _0x12ce0c=_0x31535f;var _0x413077;(_0x413077=_0x2ad5b9[_0x12ce0c(0x14a)])==null||_0x413077[_0x12ce0c(0x18d)](),_0x2ad5b9[_0x12ce0c(0x14a)]=null;}),[_0x1acdcf,_0x2f5efa]),_0x2f26b7?l['jsx'](f[_0x31535f(0x184)],{'align':_0x31535f(0x14d),'disabled':_0x27a7ae===u[_0x31535f(0x150)],'className':_0x31535f(0x1a4),'overlay':l['jsx'](W,{'status':_0x27a7ae,'coordinator':_0x2f26b7}),'children':l[_0x31535f(0x1ea)]('button',{'className':f[_0x31535f(0x1d8)](_0x31535f(0x1a6),{'univer-cursor-not-allowed':_0x27a7ae===u[_0x31535f(0x150)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x27a7ae!==u[_0x31535f(0x150)]}),'type':_0x31535f(0x1d3),'children':l[_0x31535f(0x1ea)](R,{'className':'univer-size-4'})})}):null;}function W(_0x436e05){const _0x2048dd=_0x12f82e,{status:_0x3081f9,coordinator:_0xb0b951}=_0x436e05;switch(_0x3081f9){case u[_0x2048dd(0x14f)]:return l[_0x2048dd(0x1ea)](G,{'coordinator':_0xb0b951});case u['FOLLOWING']:return l[_0x2048dd(0x1ea)](B,{'coordinator':_0xb0b951});case u[_0x2048dd(0x161)]:return l[_0x2048dd(0x1ea)](Y,{'coordinator':_0xb0b951});case u['OFFLINE']:return l[_0x2048dd(0x1ea)](J,{});case u[_0x2048dd(0x19a)]:return l['jsx'](Z,{'coordinator':_0xb0b951});default:return null;}}function G(_0x3971f8){const _0x5aec32=_0x12f82e,{coordinator:_0x51c1c2}=_0x3971f8;return l[_0x5aec32(0x190)](l[_0x5aec32(0x1b5)],{'children':[l['jsx'](_0x5aec32(0x1ef),{'className':_0x5aec32(0x201),'children':'Present\x20this\x20document'}),l[_0x5aec32(0x1ea)](f[_0x5aec32(0x1ce)],{'onClick':()=>_0x51c1c2[_0x5aec32(0x1d2)](),'children':_0x5aec32(0x194)})]});}function B(_0x1112a4){const _0x3c7bc4=_0x12f82e,{coordinator:_0x5de80}=_0x1112a4;return l['jsxs'](l['Fragment'],{'children':[l[_0x3c7bc4(0x1ea)]('div',{'className':_0x3c7bc4(0x201),'children':_0x3c7bc4(0x199)}),l[_0x3c7bc4(0x1ea)](f[_0x3c7bc4(0x1ce)],{'onClick':()=>_0x5de80[_0x3c7bc4(0x146)](),'children':_0x3c7bc4(0x1f6)})]});}function Y(_0x4da901){const _0x43e432=_0x12f82e,{coordinator:_0x3e39ab}=_0x4da901;return l[_0x43e432(0x190)](l[_0x43e432(0x1b5)],{'children':[l[_0x43e432(0x1ea)](_0x43e432(0x1ef),{'className':_0x43e432(0x201),'children':_0x43e432(0x160)}),l['jsx'](f[_0x43e432(0x1ce)],{'variant':'text','onClick':()=>_0x3e39ab[_0x43e432(0x1d5)](),'children':_0x43e432(0x1ca)})]});}function Z(_0x4b31fd){const _0x2d35f9=_0x12f82e,{coordinator:_0x2bdfcc}=_0x4b31fd;return l['jsxs'](l['Fragment'],{'children':[l['jsx']('div',{'className':_0x2d35f9(0x201),'children':_0x2d35f9(0x1c9)}),l['jsx'](f['Button'],{'variant':'default','onClick':()=>_0x2bdfcc[_0x2d35f9(0x163)](),'children':_0x2d35f9(0x140)})]});}function J(){const _0x1038f2=_0x12f82e;return l[_0x1038f2(0x1ea)](l[_0x1038f2(0x1b5)],{'children':_0x1038f2(0x1c8)});}var K=Object[_0x12f82e(0x188)],z=(_0x2d47c2,_0x4c8d57,_0x1aeb6f,_0x3a2d0c)=>{const _0x4128f3=_0x12f82e;for(var _0x56ca41=_0x3a2d0c>0x1?void 0x0:_0x3a2d0c?K(_0x4c8d57,_0x1aeb6f):_0x4c8d57,_0x1547ba=_0x2d47c2[_0x4128f3(0x196)]-0x1,_0x5c2d26;_0x1547ba>=0x0;_0x1547ba--)(_0x5c2d26=_0x2d47c2[_0x1547ba])&&(_0x56ca41=_0x5c2d26(_0x56ca41)||_0x56ca41);return _0x56ca41;},L=(_0xd78a76,_0x15b83b)=>(_0x4b8f2a,_0x328071)=>_0x15b83b(_0x4b8f2a,_0x328071,_0xd78a76);exports[_0x12f82e(0x186)]=class extends o[_0x12f82e(0x1eb)]{constructor(_0x3dc07e,_0x401b0c){const _0x272655=_0x12f82e;super(),this['_injector']=_0x3dc07e,this[_0x272655(0x1b6)]=_0x401b0c,this[_0x272655(0x16c)]();}[_0x12f82e(0x16c)](){const _0x472668=_0x12f82e;this[_0x472668(0x1dd)](this[_0x472668(0x1b6)]['registerComponent'](p[_0x472668(0x19c)][_0x472668(0x1f3)],()=>p[_0x472668(0x1e8)]($,this[_0x472668(0x18e)])));}},exports[_0x12f82e(0x186)]=z([L(0x0,o[_0x12f82e(0x169)](o[_0x12f82e(0x198)])),L(0x1,p[_0x12f82e(0x1df)])],exports[_0x12f82e(0x186)]);const Q=_0x12f82e(0x170),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0xd7cb92,_0x2680b8,_0x232125,_0x53daad)=>{const _0x5bba22=_0x12f82e;for(var _0x2e0da3=_0x53daad>0x1?void 0x0:_0x53daad?X(_0x2680b8,_0x232125):_0x2680b8,_0x33d36a=_0xd7cb92[_0x5bba22(0x196)]-0x1,_0x2be649;_0x33d36a>=0x0;_0x33d36a--)(_0x2be649=_0xd7cb92[_0x33d36a])&&(_0x2e0da3=_0x2be649(_0x2e0da3)||_0x2e0da3);return _0x2e0da3;},te=(_0x307ead,_0x5283a9)=>(_0x54df7c,_0x526b2f)=>_0x5283a9(_0x54df7c,_0x526b2f,_0x307ead);let m=class extends o[_0x12f82e(0x1eb)]{constructor(_0x57a1ec){const _0x3f2e7c=_0x12f82e;super(),this[_0x3f2e7c(0x195)]=_0x57a1ec,this[_0x3f2e7c(0x19f)]();}['_init'](){const _0x54e40d=_0x12f82e;[D[_0x54e40d(0x1a2)]['id'],D[_0x54e40d(0x1b8)]['id'],C[_0x54e40d(0x174)]['id']][_0x54e40d(0x167)](_0x3d5e3b=>{const _0x554950=_0x54e40d;this[_0x554950(0x1dd)](this[_0x554950(0x195)][_0x554950(0x1bd)](_0x3d5e3b));});}};m=ee([te(0x0,o[_0x12f82e(0x169)](E))],m);var ie=Object[_0x12f82e(0x20c)],se=Object[_0x12f82e(0x188)],ne=(_0x2f10fc,_0x27c368,_0x3e6147)=>_0x27c368 in _0x2f10fc?ie(_0x2f10fc,_0x27c368,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e6147}):_0x2f10fc[_0x27c368]=_0x3e6147,re=(_0x3c3bc3,_0x50dba5,_0x1a9f1d,_0x42ead9)=>{const _0x1e93df=_0x12f82e;for(var _0x27bc6=_0x42ead9>0x1?void 0x0:_0x42ead9?se(_0x50dba5,_0x1a9f1d):_0x50dba5,_0x581e27=_0x3c3bc3[_0x1e93df(0x196)]-0x1,_0x2f73d4;_0x581e27>=0x0;_0x581e27--)(_0x2f73d4=_0x3c3bc3[_0x581e27])&&(_0x27bc6=_0x2f73d4(_0x27bc6)||_0x27bc6);return _0x27bc6;},N=(_0x2611d9,_0x3ee6ed)=>(_0x46ac15,_0x23ce83)=>_0x3ee6ed(_0x46ac15,_0x23ce83,_0x2611d9),A=(_0x36639a,_0x33cf4d,_0x11e8e7)=>ne(_0x36639a,typeof _0x33cf4d!=_0x12f82e(0x154)?_0x33cf4d+'':_0x33cf4d,_0x11e8e7);const oe=_0x12f82e(0x1f2);exports[_0x12f82e(0x13f)]=class extends o[_0x12f82e(0x13c)]{constructor(_0x33449e=w,_0x19a831,_0x410b5b){const _0x2222e4=_0x12f82e;super(),this[_0x2222e4(0x15f)]=_0x33449e,this[_0x2222e4(0x18e)]=_0x19a831,this[_0x2222e4(0x205)]=_0x410b5b;const {..._0x47a14c}=o[_0x2222e4(0x1e6)]({},w,this[_0x2222e4(0x15f)]);this[_0x2222e4(0x205)][_0x2222e4(0x142)](Q,_0x47a14c);}[_0x12f82e(0x148)](){const _0x1437ba=_0x12f82e;o[_0x1437ba(0x1e2)](this['_injector'],o[_0x1437ba(0x1f1)]([[E],[exports[_0x1437ba(0x166)]],[m],[exports[_0x1437ba(0x186)]]],this[_0x1437ba(0x15f)][_0x1437ba(0x203)])),o['touchDependencies'](this[_0x1437ba(0x18e)],[[m]]);}['onRendered'](){const _0x48f0bd=_0x12f82e;o[_0x48f0bd(0x20d)](this['_injector'],[[exports[_0x48f0bd(0x186)]]]);}},A(exports[_0x12f82e(0x13f)],'type',o[_0x12f82e(0x191)][_0x12f82e(0x204)]),A(exports['UniverLiveSharePlugin'],'pluginName',oe),exports[_0x12f82e(0x13f)]=re([o['DependentOn'](b[_0x12f82e(0x20b)]),N(0x1,o[_0x12f82e(0x169)](o[_0x12f82e(0x198)])),N(0x2,o['IConfigService'])],exports[_0x12f82e(0x13f)]),exports[_0x12f82e(0x1e9)]=$,exports[_0x12f82e(0x15c)]=E,exports['LiveShareStatus']=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x558774=_0x4ed5;(function(_0x1b1696,_0x333ae4){const _0x376567=_0x4ed5,_0x55c329=_0x1b1696();while(!![]){try{const _0x5902e4=-parseInt(_0x376567(0x130))/0x1+-parseInt(_0x376567(0x12d))/0x2*(-parseInt(_0x376567(0x135))/0x3)+-parseInt(_0x376567(0x131))/0x4+parseInt(_0x376567(0x11c))/0x5+-parseInt(_0x376567(0x138))/0x6*(-parseInt(_0x376567(0x123))/0x7)+-parseInt(_0x376567(0x134))/0x8*(-parseInt(_0x376567(0x11f))/0x9)+parseInt(_0x376567(0x127))/0xa;if(_0x5902e4===_0x333ae4)break;else _0x55c329['push'](_0x55c329['shift']());}catch(_0x249a4d){_0x55c329['push'](_0x55c329['shift']());}}}(_0x3f1e,0xe2d5f));function _0x4ed5(_0x3bed8d,_0x41cc61){_0x3bed8d=_0x3bed8d-0x119;const _0x3f1eae=_0x3f1e();let _0x4ed518=_0x3f1eae[_0x3bed8d];return _0x4ed518;}import{LiveShareController as _0x706cbc,LiveShareStatus as _0x1f386b}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x560fed}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xadfe7e}from'@univerjs/sheets';import{SetScrollOperation as _0x455144}from'@univerjs/sheets-ui';import{FRange as _0x223b0a}from'@univerjs/sheets/facade';import{FUniver as _0x554deb,FEnum as _0x220dfa}from'@univerjs/core/facade';class I extends _0x223b0a{['_initialize'](_0xbc4cb0,_0x3a9d6b,_0x1be57c,_0x307268,_0xf03a1b){const _0x1f88e5=_0x4ed5,_0x5995b6=_0xbc4cb0[_0x1f88e5(0x11a)](_0x706cbc),_0x5b06f0=_0xbc4cb0[_0x1f88e5(0x11a)](_0x560fed),_0x47fba3=_0x3a9d6b['getUnitId'](),_0x3b820a=_0x3a9d6b[_0x1f88e5(0x11d)](),_0x55b194=_0x5995b6['getLiveShareCoordinatorSync'](_0x47fba3);(_0x55b194==null?void 0x0:_0x55b194['getStatus']())!==_0x1f386b[_0x1f88e5(0x139)]||(_0x1be57c[_0x1f88e5(0x137)]()!==_0x3b820a['getSheetId']()&&this[_0x1f88e5(0x12b)][_0x1f88e5(0x13a)](_0xadfe7e['id'],{'unitId':_0x47fba3,'subUnitId':_0x1be57c[_0x1f88e5(0x137)]()}),!_0x5b06f0[_0x1f88e5(0x121)](_0x47fba3))||_0xf03a1b[_0x1f88e5(0x11e)](_0x455144['id'],{'unitId':_0x3a9d6b[_0x1f88e5(0x124)](),'sheetId':_0x1be57c[_0x1f88e5(0x137)](),'sheetViewStartRow':_0x307268[_0x1f88e5(0x129)],'sheetViewStartColumn':_0x307268[_0x1f88e5(0x11b)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x223b0a['extend'](I);class m extends _0x554deb{['getLiveShareStatus'](){const _0x41ea92=_0x4ed5;var _0x787a74,_0x4815ef;const _0x3b1688=this[_0x41ea92(0x13b)][_0x41ea92(0x11a)](_0x706cbc),_0x385229=(_0x787a74=this['getActiveWorkbook']())==null?void 0x0:_0x787a74['getId']();if(!_0x385229)throw new Error(_0x41ea92(0x12f));const _0x57b783=_0x3b1688[_0x41ea92(0x128)](_0x385229);return(_0x4815ef=_0x57b783==null?void 0x0:_0x57b783[_0x41ea92(0x136)]())!=null?_0x4815ef:_0x1f386b[_0x41ea92(0x120)];}[_0x558774(0x122)](){const _0x5acae0=_0x558774;var _0x30b452;const _0x56e363=this[_0x5acae0(0x13b)][_0x5acae0(0x11a)](_0x706cbc),_0x61f98e=(_0x30b452=this[_0x5acae0(0x132)]())==null?void 0x0:_0x30b452[_0x5acae0(0x133)]();if(!_0x61f98e)throw new Error(_0x5acae0(0x12f));const _0x39a64b=_0x56e363['getLiveShareCoordinatorSync'](_0x61f98e);if(!_0x39a64b)throw new Error(_0x5acae0(0x12a));_0x39a64b['startFollowing']();}[_0x558774(0x126)](){const _0x5d7112=_0x558774;var _0x1c293d;const _0x3a7381=this[_0x5d7112(0x13b)]['get'](_0x706cbc),_0x46c08a=(_0x1c293d=this[_0x5d7112(0x132)]())==null?void 0x0:_0x1c293d[_0x5d7112(0x133)]();if(!_0x46c08a)throw new Error('No\x20active\x20workbook\x20found.');const _0x4b65e9=_0x3a7381[_0x5d7112(0x128)](_0x46c08a);if(!_0x4b65e9)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4b65e9[_0x5d7112(0x126)]();}[_0x558774(0x12e)](){const _0x10e387=_0x558774;var _0x97a9bf;const _0x2f517e=this[_0x10e387(0x13b)][_0x10e387(0x11a)](_0x706cbc),_0x391e2c=(_0x97a9bf=this[_0x10e387(0x132)]())==null?void 0x0:_0x97a9bf['getId']();if(!_0x391e2c)throw new Error(_0x10e387(0x12f));const _0x311fe2=_0x2f517e[_0x10e387(0x128)](_0x391e2c);if(!_0x311fe2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x311fe2['tryStartPresenting']();}[_0x558774(0x119)](){const _0x10cbcf=_0x558774;var _0xbe0776;const _0x2a000a=this[_0x10cbcf(0x13b)][_0x10cbcf(0x11a)](_0x706cbc),_0x5dd0f8=(_0xbe0776=this[_0x10cbcf(0x132)]())==null?void 0x0:_0xbe0776[_0x10cbcf(0x133)]();if(!_0x5dd0f8)throw new Error(_0x10cbcf(0x12f));const _0x404381=_0x2a000a[_0x10cbcf(0x128)](_0x5dd0f8);if(!_0x404381)throw new Error(_0x10cbcf(0x12a));_0x404381[_0x10cbcf(0x119)]();}}_0x554deb[_0x558774(0x12c)](m);function _0x3f1e(){const _0x3851ec=['PRESENTING','executeCommand','_injector','stopPresenting','get','startColumn','7696885WxekRx','getActiveSheet','syncExecuteCommand','225DkzKsC','IDLE','getRenderById','startFollowing','59885XShwBl','getUnitId','LiveShareStatusEnum','stopFollowing','8905060JMVakH','getLiveShareCoordinatorSync','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_commandService','extend','63744fvqYsa','startPresenting','No\x20active\x20workbook\x20found.','892270ylUeOq','6239960QoLJTC','getActiveWorkbook','getId','271144flcHhf','9nPVPZR','getStatus','getSheetId','6EVLvcK'];_0x3f1e=function(){return _0x3851ec;};return _0x3f1e();}class C extends _0x220dfa{get[_0x558774(0x125)](){return _0x1f386b;}}_0x220dfa[_0x558774(0x12c)](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 _0x105b4f=_0x2cf0;(function(_0x42ec40,_0x164217){const _0x31c271=_0x2cf0,_0x2798aa=_0x42ec40();while(!![]){try{const _0x4fd234=parseInt(_0x31c271(0x1c0))/0x1+-parseInt(_0x31c271(0x21e))/0x2+parseInt(_0x31c271(0x1a3))/0x3*(parseInt(_0x31c271(0x1c3))/0x4)+parseInt(_0x31c271(0x1cd))/0x5*(-parseInt(_0x31c271(0x1a8))/0x6)+-parseInt(_0x31c271(0x238))/0x7*(parseInt(_0x31c271(0x1f3))/0x8)+parseInt(_0x31c271(0x1fe))/0x9+-parseInt(_0x31c271(0x1ec))/0xa*(-parseInt(_0x31c271(0x236))/0xb);if(_0x4fd234===_0x164217)break;else _0x2798aa['push'](_0x2798aa['shift']());}catch(_0x57a09e){_0x2798aa['push'](_0x2798aa['shift']());}}}(_0x4bc3,0xcade1));var J=Object[_0x105b4f(0x1b0)],K=(_0x14a8e0,_0x590774,_0x36d8b0)=>_0x590774 in _0x14a8e0?J(_0x14a8e0,_0x590774,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36d8b0}):_0x14a8e0[_0x590774]=_0x36d8b0,u=(_0x15841b,_0xf8d9e0,_0x22c4e5)=>K(_0x15841b,typeof _0xf8d9e0!=_0x105b4f(0x208)?_0xf8d9e0+'':_0xf8d9e0,_0x22c4e5);import{Disposable as _0x19c5fe,toDisposable as _0x2f41f0,IUniverInstanceService as _0x49d2d0,Inject as _0xb4de5c,Injector as _0x39091f,IConfigService as _0x162c40,ICommandService as _0x3e5399,RxDisposable as _0x34eb50,UniverInstanceType as _0x122c76,DisposableCollection as _0x1ca7f7,CommandType as _0x2379b5,DependentOn as _0x2510ce,Plugin as _0x1ec157,merge as _0x2a4c60,registerDependencies as _0x47fa09,mergeOverrideWithDependencies as _0x37eaec,touchDependencies as _0x2a81f9}from'@univerjs/core';import{useDependency as _0x3284dd,useObservable as _0x36dee3,IUIPartsService as _0x1cb32c,BuiltInUIPart as _0x2d952e,connectInjector as _0x5cc7c1}from'@univerjs/ui';import{jsx as _0x46e223,jsxs as _0x539ff2,Fragment as _0x46e9aa}from'react/jsx-runtime';import{Dropdown as _0x26b96d,clsx as _0x3c8e64,Button as _0x21597a}from'@univerjs/design';import{useRef as _0xf38a0d,createElement as _0x2c90b5,forwardRef as _0x4e5534,useState as _0x4e7da4,useEffect as _0x5d80fb}from'react';import{CollaborationEvent as _0x564ee3,parseProtocolChangeset as _0x40078c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xa11808,SessionStatus as _0x155833,UniverCollaborationClientPlugin as _0x16c8c0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xd8595d,SetWorksheetActiveOperation as _0x2e64c1}from'@univerjs/sheets';import{BehaviorSubject as _0x2fdabf,Subject as _0x415a69}from'rxjs';import{takeUntil as _0x56a21e,throttleTime as _0x2c6eb0}from'rxjs/operators';import{SetZoomRatioOperation as _0xba6ce1,SetScrollOperation as _0x105dbb}from'@univerjs/sheets-ui';function k({ref:_0x19be25,..._0x3012e5}){const _0x3b9e35=_0x105b4f,{icon:_0x17a20b,id:_0x550ba1,className:_0x7bb1a8,extend:_0x1882b2,..._0x27c232}=_0x3012e5,_0x1c5a00=('univerjs-icon\x20univerjs-icon-'+_0x550ba1+'\x20'+(_0x7bb1a8||''))['trim'](),_0x1c2479=_0xf38a0d('_'+Oe());return G(_0x17a20b,''+_0x550ba1,{'defIds':_0x17a20b[_0x3b9e35(0x21a)],'idSuffix':_0x1c2479['current']},{'ref':_0x19be25,'className':_0x1c5a00,..._0x27c232},_0x1882b2);}function G(_0x21c71b,_0x3db89a,_0x46eea3,_0xd75d4d,_0x3dbb56){const _0x16fb68=_0x105b4f;return _0x2c90b5(_0x21c71b['tag'],{'key':_0x3db89a,...be(_0x21c71b,_0x46eea3,_0x3dbb56),..._0xd75d4d},(Ee(_0x21c71b,_0x46eea3)[_0x16fb68(0x220)]||[])[_0x16fb68(0x20c)]((_0x52c4db,_0xf6c6bc)=>G(_0x52c4db,_0x3db89a+'-'+_0x21c71b[_0x16fb68(0x214)]+'-'+_0xf6c6bc,_0x46eea3,void 0x0,_0x3dbb56)));}function be(_0x4835e8,_0x49aeef,_0x341a92){const _0x230566=_0x105b4f,_0xc3ac35={..._0x4835e8[_0x230566(0x200)]};_0x341a92!=null&&_0x341a92[_0x230566(0x1de)]&&_0xc3ac35[_0x230566(0x1f8)]===_0x230566(0x1de)&&(_0xc3ac35[_0x230566(0x1f8)]=_0x341a92[_0x230566(0x1de)]),_0x4835e8[_0x230566(0x214)]===_0x230566(0x1b4)&&_0xc3ac35['id']&&(_0xc3ac35['id']=_0xc3ac35['id']+_0x49aeef[_0x230566(0x22c)]),Object[_0x230566(0x21c)](_0xc3ac35)[_0x230566(0x22b)](([_0x5889e0,_0x26227b])=>{const _0xed9923=_0x230566;_0x5889e0===_0xed9923(0x1b4)&&typeof _0x26227b==_0xed9923(0x1d5)&&(_0xc3ac35[_0x5889e0]=_0x26227b[_0xed9923(0x22d)](/url\(#(.*)\)/,_0xed9923(0x1af)+_0x49aeef[_0xed9923(0x22c)]+')'));});const {defIds:_0x5adcf5}=_0x49aeef;return!_0x5adcf5||_0x5adcf5[_0x230566(0x1c4)]===0x0||(_0x4835e8[_0x230566(0x214)]===_0x230566(0x1e3)&&_0xc3ac35[_0x230566(0x231)]&&(_0xc3ac35['xlink:href']=_0xc3ac35[_0x230566(0x231)]+_0x49aeef['idSuffix']),Object[_0x230566(0x21c)](_0xc3ac35)[_0x230566(0x22b)](([_0xde30ef,_0x589144])=>{const _0xb27482=_0x230566;typeof _0x589144==_0xb27482(0x1d5)&&(_0xc3ac35[_0xde30ef]=_0x589144[_0xb27482(0x22d)](/url\(#(.*)\)/,'url(#$1'+_0x49aeef[_0xb27482(0x22c)]+')'));})),_0xc3ac35;}function Ee(_0x37eaba,_0x32f198){const _0x2e155c=_0x105b4f;var _0x234cb;const {defIds:_0x475cfd}=_0x32f198;return!_0x475cfd||_0x475cfd[_0x2e155c(0x1c4)]===0x0?_0x37eaba:_0x37eaba[_0x2e155c(0x214)]===_0x2e155c(0x1f4)&&((_0x234cb=_0x37eaba[_0x2e155c(0x220)])!=null&&_0x234cb[_0x2e155c(0x1c4)])?{..._0x37eaba,'children':_0x37eaba[_0x2e155c(0x220)]['map'](_0x1bcca1=>typeof _0x1bcca1[_0x2e155c(0x200)]['id']==_0x2e155c(0x1d5)&&_0x475cfd&&_0x475cfd['includes'](_0x1bcca1['attrs']['id'])?{..._0x1bcca1,'attrs':{..._0x1bcca1[_0x2e155c(0x200)],'id':_0x1bcca1[_0x2e155c(0x200)]['id']+_0x32f198[_0x2e155c(0x22c)]}}:_0x1bcca1)}:_0x37eaba;}function Oe(){const _0x3fbdf7=_0x105b4f;return Math['random']()[_0x3fbdf7(0x22f)](0x24)[_0x3fbdf7(0x195)](0x2,0x8);}k[_0x105b4f(0x19a)]=_0x105b4f(0x1bd);const we={'tag':_0x105b4f(0x223),'attrs':{'xmlns':_0x105b4f(0x1c2),'fill':_0x105b4f(0x216),'viewBox':_0x105b4f(0x1eb),'width':_0x105b4f(0x1ad),'height':_0x105b4f(0x1ad)},'children':[{'tag':_0x105b4f(0x1a1),'attrs':{'fill':_0x105b4f(0x229),'d':_0x105b4f(0x1b3)}},{'tag':'path','attrs':{'fill':_0x105b4f(0x229),'d':_0x105b4f(0x1e4),'fillRule':_0x105b4f(0x1f7),'clipRule':_0x105b4f(0x1f7)}}]},W=_0x4e5534(function(_0x1d92a2,_0x15aa4d){const _0x1c883a=_0x105b4f;return _0x2c90b5(k,Object[_0x1c883a(0x1fd)]({},_0x1d92a2,{'id':_0x1c883a(0x1b1),'ref':_0x15aa4d,'icon':we}));});W[_0x105b4f(0x19a)]=_0x105b4f(0x1d8);class L extends _0x19c5fe{constructor(){const _0x112e80=_0x105b4f;super(...arguments),u(this,_0x112e80(0x1d6),new Set()),u(this,'_reporters',new Set());}[_0x105b4f(0x215)](_0x835e58){const _0x4477b4=_0x105b4f;return this[_0x4477b4(0x1d6)][_0x4477b4(0x1fa)](_0x835e58),_0x2f41f0(()=>this['_sharedOperations']['delete'](_0x835e58));}[_0x105b4f(0x1e5)](_0x4a3df0){const _0x1d81b4=_0x105b4f;return this[_0x1d81b4(0x1c5)][_0x1d81b4(0x1fa)](_0x4a3df0),_0x2f41f0(()=>this[_0x1d81b4(0x1c5)][_0x1d81b4(0x23d)](_0x4a3df0));}[_0x105b4f(0x235)](_0x38ea69){const _0x1430d9=_0x105b4f;return this[_0x1430d9(0x1d6)]['has'](_0x38ea69);}[_0x105b4f(0x21f)](_0x4c130e){const _0x827315=_0x105b4f;return Array['from'](this[_0x827315(0x1c5)])['map'](_0x320bfe=>_0x320bfe(_0x4c130e));}}var Ne=Object[_0x105b4f(0x19c)],Y=(_0x18595c,_0x5c0b4a,_0x50b15e,_0xc7cae9)=>{const _0x2d14e4=_0x105b4f;for(var _0x3799f8=_0xc7cae9>0x1?void 0x0:_0xc7cae9?Ne(_0x5c0b4a,_0x50b15e):_0x5c0b4a,_0x3dcda3=_0x18595c[_0x2d14e4(0x1c4)]-0x1,_0x4db411;_0x3dcda3>=0x0;_0x3dcda3--)(_0x4db411=_0x18595c[_0x3dcda3])&&(_0x3799f8=_0x4db411(_0x3799f8)||_0x3799f8);return _0x3799f8;},_=(_0x27f62d,_0x278db7)=>(_0x4b1b12,_0x54d1cb)=>_0x278db7(_0x4b1b12,_0x54d1cb,_0x27f62d);let S=class extends _0x34eb50{constructor(_0xb583bf,_0x4480d9,_0x327328){const _0x3a4e0c=_0x105b4f;super(),u(this,_0x3a4e0c(0x226),new Map()),(this['_univerInstanceService']=_0xb583bf,this[_0x3a4e0c(0x1aa)]=_0x4480d9,this[_0x3a4e0c(0x19b)]=_0x327328,this['_init']());}async['getLiveShareCoordinator'](_0x162e45){const _0x1297d7=_0x105b4f;return this[_0x1297d7(0x226)]['has'](_0x162e45)||await this[_0x1297d7(0x22a)](_0x162e45),this[_0x1297d7(0x226)][_0x1297d7(0x228)](_0x162e45);}['getLiveShareCoordinatorSync'](_0x5be43b){const _0x27a61c=_0x105b4f;var _0x28abce;return(_0x28abce=this[_0x27a61c(0x226)][_0x27a61c(0x228)](_0x5be43b))!=null?_0x28abce:null;}[_0x105b4f(0x1ba)](){const _0x55a1dd=_0x105b4f;this['_univerInstanceService'][_0x55a1dd(0x1c1)](_0x122c76[_0x55a1dd(0x203)])[_0x55a1dd(0x1bf)](_0x56a21e(this[_0x55a1dd(0x222)]))[_0x55a1dd(0x221)](async _0x40c9ee=>{const _0x4e61a1=_0x55a1dd,_0x22b9bf=_0x40c9ee[_0x4e61a1(0x23b)]();this['_entities'][_0x4e61a1(0x1d0)](_0x22b9bf)||this[_0x4e61a1(0x22a)](_0x22b9bf);}),this[_0x55a1dd(0x1c7)][_0x55a1dd(0x237)](_0x122c76[_0x55a1dd(0x203)])['pipe'](_0x56a21e(this['dispose$']))[_0x55a1dd(0x221)](_0x1904f2=>{const _0x27a46e=_0x55a1dd,_0xb6d5ff=_0x1904f2[_0x27a46e(0x23b)](),_0x3825a4=this[_0x27a46e(0x226)][_0x27a46e(0x228)](_0xb6d5ff);_0x3825a4==null||_0x3825a4['dispose']();});}async[_0x105b4f(0x22a)](_0x2efe1d){const _0xae3cb7=_0x105b4f,_0x5aeec5=await this['_collabSessionService']['requireSession'](_0x2efe1d),_0x4486d8=this[_0xae3cb7(0x1aa)][_0xae3cb7(0x1ea)](N,_0x2efe1d,_0x5aeec5);return _0x4486d8[_0xae3cb7(0x1cf)](),this[_0xae3cb7(0x226)][_0xae3cb7(0x239)](_0x2efe1d,_0x4486d8),_0x4486d8;}};S=Y([_(0x0,_0x49d2d0),_(0x1,_0xb4de5c(_0x39091f)),_(0x2,_0xb4de5c(_0xa11808))],S);var c=(_0x2ca91a=>(_0x2ca91a[_0x105b4f(0x1ab)]=_0x105b4f(0x1a7),_0x2ca91a[_0x105b4f(0x1a4)]=_0x105b4f(0x1d2),_0x2ca91a[_0x105b4f(0x1dc)]=_0x105b4f(0x194),_0x2ca91a[_0x105b4f(0x1b9)]=_0x105b4f(0x232),_0x2ca91a['PRESENTING']=_0x105b4f(0x192),_0x2ca91a))(c||{});const Ce=_0x105b4f(0x1dd),De=0xc8;let N=class extends _0x34eb50{constructor(_0x185fa4,_0x8785a7,_0x31829b,_0x56baef,_0xf9d038){const _0x2b68a5=_0x105b4f;super(),u(this,_0x2b68a5(0x198),new _0x2fdabf(_0x2b68a5(0x1d2))),u(this,_0x2b68a5(0x211),this[_0x2b68a5(0x198)][_0x2b68a5(0x19e)]()),u(this,'_init',!0x1),u(this,_0x2b68a5(0x227),null),u(this,_0x2b68a5(0x1c8),null),(this[_0x2b68a5(0x202)]=_0x185fa4,this[_0x2b68a5(0x1ef)]=_0x8785a7,this[_0x2b68a5(0x1d9)]=_0x31829b,this[_0x2b68a5(0x212)]=_0x56baef,this['_commandService']=_0xf9d038);}get[_0x105b4f(0x199)](){const _0x28c3c4=_0x105b4f;return this[_0x28c3c4(0x198)][_0x28c3c4(0x1b8)]();}[_0x105b4f(0x1b6)](){const _0x546d94=_0x105b4f;var _0x4b7cc3;(_0x4b7cc3=this[_0x546d94(0x227)])==null||_0x4b7cc3[_0x546d94(0x1b6)](),this[_0x546d94(0x198)][_0x546d94(0x1df)](_0x546d94(0x1d2)),this[_0x546d94(0x198)][_0x546d94(0x1e1)]();}[_0x105b4f(0x197)](){const _0x3f46ba=_0x105b4f;return this[_0x3f46ba(0x199)];}[_0x105b4f(0x1cf)](){const _0x28fbd3=_0x105b4f;this[_0x28fbd3(0x1ba)]||(this['_init']=!0x0,this[_0x28fbd3(0x1ef)]['sessionStatus$'][_0x28fbd3(0x1bf)](_0x56a21e(this[_0x28fbd3(0x222)]))[_0x28fbd3(0x221)](_0x45450e=>{const _0x41d137=_0x28fbd3;switch(_0x45450e){case _0x155833[_0x41d137(0x1ab)]:this[_0x41d137(0x224)]();break;case _0x155833[_0x41d137(0x205)]:this[_0x41d137(0x1a2)]();break;}}),this[_0x28fbd3(0x1ef)][_0x28fbd3(0x206)][_0x28fbd3(0x1bf)](_0x56a21e(this[_0x28fbd3(0x222)]))[_0x28fbd3(0x221)](_0x21501b=>{const _0x40db3e=_0x28fbd3,{eventID:_0x4a89a2}=_0x21501b;switch(_0x4a89a2){case _0x564ee3[_0x40db3e(0x1bc)]:this['_handleNewHost'](_0x21501b);break;case _0x564ee3[_0x40db3e(0x19d)]:this['_handleOperation'](_0x21501b);break;case _0x564ee3[_0x40db3e(0x1e0)]:this[_0x40db3e(0x1e9)]();break;case _0x564ee3[_0x40db3e(0x21b)]:this[_0x40db3e(0x21d)](_0x21501b);break;}}));}[_0x105b4f(0x193)](){const _0x1757f5=_0x105b4f;this[_0x1757f5(0x1ef)][_0x1757f5(0x1bb)]({'eventID':_0x564ee3[_0x1757f5(0x210)],'data':{'unitID':this[_0x1757f5(0x202)],'userID':this[_0x1757f5(0x1ef)][_0x1757f5(0x1e7)]()}},this[_0x1757f5(0x202)]);}[_0x105b4f(0x1ca)](){const _0x358fbe=_0x105b4f;this[_0x358fbe(0x199)]===_0x358fbe(0x192)&&(this[_0x358fbe(0x198)][_0x358fbe(0x1df)](_0x358fbe(0x1d2)),this[_0x358fbe(0x1ef)][_0x358fbe(0x1bb)]({'eventID':_0x564ee3[_0x358fbe(0x1e0)],'data':{'unitID':this[_0x358fbe(0x202)]}},this[_0x358fbe(0x202)]));}[_0x105b4f(0x217)](){const _0x4c5053=_0x105b4f;this[_0x4c5053(0x199)]==='not-following'&&(this['_status$'][_0x4c5053(0x1df)](_0x4c5053(0x194)),this[_0x4c5053(0x1ac)]());}[_0x105b4f(0x233)](){const _0x207bb2=_0x105b4f;this[_0x207bb2(0x199)]==='following'&&this[_0x207bb2(0x1db)]();}[_0x105b4f(0x1f2)](_0x258b83){const _0x3cc256=_0x105b4f,{presenter:_0x7afcbf}=_0x258b83[_0x3cc256(0x1a9)],_0x2efc6d=this['_collabSession'][_0x3cc256(0x1e7)]();this[_0x3cc256(0x1c8)]=_0x7afcbf,_0x7afcbf===_0x2efc6d?(this['_stopFollowing'](),this[_0x3cc256(0x1e6)]()):this[_0x3cc256(0x199)]!==_0x3cc256(0x232)&&(this[_0x3cc256(0x1f5)](),this[_0x3cc256(0x1ac)]());}[_0x105b4f(0x196)](){const _0x47edfb=_0x105b4f,_0x136365={'eventID':_0x564ee3[_0x47edfb(0x1be)]};this['_collabSession'][_0x47edfb(0x1bb)](_0x136365,this[_0x47edfb(0x202)]);}['_handleTerminate'](){const _0x2f3a3b=_0x105b4f;this[_0x2f3a3b(0x1c8)]=null,this[_0x2f3a3b(0x199)]!==_0x2f3a3b(0x192)&&this[_0x2f3a3b(0x1cc)]();}[_0x105b4f(0x21d)](_0x250de6){const _0x5a0456=_0x105b4f;if(this[_0x5a0456(0x199)]==='following'&&this['_presenter']===_0x250de6[_0x5a0456(0x1a9)][_0x5a0456(0x1f0)]){const _0xc47a3c=_0x40078c(_0x250de6[_0x5a0456(0x1a9)])[_0x5a0456(0x1ee)][_0x5a0456(0x207)]()['find'](_0x2167f0=>_0x2167f0['id']===_0xd8595d['id']);if(_0xc47a3c){const _0x87f447=_0xc47a3c[_0x5a0456(0x218)][_0x5a0456(0x1fc)],_0xe57cf7=_0xc47a3c[_0x5a0456(0x218)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x2e64c1['id'],{'unitId':_0x87f447,'subUnitId':_0xe57cf7},{'fromCollab':!0x0});});}}}[_0x105b4f(0x1e6)](){const _0x39afc7=_0x105b4f;this['_status$']['next'](_0x39afc7(0x192));const _0x35359e=new Map(),_0x298573=this[_0x39afc7(0x227)]=new _0x1ca7f7();_0x298573['add'](_0x2f41f0(()=>{const _0x3ff51f=_0x39afc7;_0x35359e['forEach'](_0x205651=>_0x205651[_0x3ff51f(0x1e1)]()),_0x35359e[_0x3ff51f(0x213)]();})),_0x298573[_0x39afc7(0x1fa)](this[_0x39afc7(0x1ce)][_0x39afc7(0x230)](_0x564bf6=>{const _0x4b54e6=_0x39afc7;var _0x5c1107;if(_0x564bf6[_0x4b54e6(0x23a)]!==_0x2379b5['OPERATION']||!this['_liveShareService'][_0x4b54e6(0x235)](_0x564bf6['id']))return;const {id:_0x563181}=_0x564bf6;let _0x37d666;_0x35359e['has'](_0x563181)?_0x37d666=_0x35359e[_0x4b54e6(0x228)](_0x563181):(_0x37d666=new _0x415a69(),_0x35359e['set'](_0x563181,_0x37d666),_0x37d666[_0x4b54e6(0x1bf)](_0x2c6eb0((_0x5c1107=this[_0x4b54e6(0x1d9)][_0x4b54e6(0x1c6)](Ce))!=null?_0x5c1107:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4bf215=>{const _0x2185e4=_0x4b54e6;this[_0x2185e4(0x1ef)][_0x2185e4(0x1bb)]({'eventID':_0x564ee3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2185e4(0x202)],'operations':{[_0x4bf215['id']]:{'id':_0x4bf215['id'],'params':JSON[_0x2185e4(0x20b)](_0x4bf215['params'])}}}},this[_0x2185e4(0x202)]);})),_0x37d666[_0x4b54e6(0x1df)](_0x564bf6);})),this['_liveShareService'][_0x39afc7(0x21f)](this[_0x39afc7(0x202)])[_0x39afc7(0x22b)](_0x32ed6a=>this[_0x39afc7(0x1ef)]['send']({'eventID':_0x564ee3[_0x39afc7(0x19d)],'data':{'unitID':this[_0x39afc7(0x202)],'operations':{[_0x32ed6a['id']]:{'id':_0x32ed6a['id'],'params':JSON[_0x39afc7(0x20b)](_0x32ed6a['params'])}}}},this[_0x39afc7(0x202)]));}[_0x105b4f(0x1f5)](){const _0x56783e=_0x105b4f;var _0x509977;this['_status$'][_0x56783e(0x1df)](_0x56783e(0x1d2)),(_0x509977=this[_0x56783e(0x227)])==null||_0x509977[_0x56783e(0x1b6)](),this[_0x56783e(0x227)]=null;}[_0x105b4f(0x1ac)](){const _0x435280=_0x105b4f;var _0x991dee;(_0x991dee=this[_0x435280(0x227)])==null||_0x991dee['dispose'](),this[_0x435280(0x198)]['next']('following');}['_beIdle'](){const _0x1845e5=_0x105b4f;var _0x67b2a6;this[_0x1845e5(0x198)][_0x1845e5(0x1df)](_0x1845e5(0x1d2)),(_0x67b2a6=this[_0x1845e5(0x227)])==null||_0x67b2a6[_0x1845e5(0x1b6)](),this[_0x1845e5(0x227)]=null;}[_0x105b4f(0x1db)](){const _0x239549=_0x105b4f;var _0x4103a3;this[_0x239549(0x198)][_0x239549(0x1df)](_0x239549(0x232)),(_0x4103a3=this[_0x239549(0x227)])==null||_0x4103a3[_0x239549(0x1b6)]();}[_0x105b4f(0x1b5)](_0x3a49cb){const _0x3cac2b=_0x105b4f;if([_0x3cac2b(0x192),_0x3cac2b(0x232),_0x3cac2b(0x1a7)][_0x3cac2b(0x1d4)](this[_0x3cac2b(0x199)])||!_0x3a49cb[_0x3cac2b(0x1a9)]['presenter']||_0x3a49cb['data']['presenter']===this[_0x3cac2b(0x1ef)][_0x3cac2b(0x1e7)]())return;this[_0x3cac2b(0x199)]==='idle'&&this['_startFollowing']();const _0x2e60c5=_0x3a49cb[_0x3cac2b(0x1a9)]['operations'];Object['values'](_0x2e60c5)[_0x3cac2b(0x22b)](_0x111f87=>{const _0xfa675f=_0x3cac2b;this[_0xfa675f(0x1ce)][_0xfa675f(0x1cb)](_0x111f87['id'],_0x111f87[_0xfa675f(0x218)]?JSON[_0xfa675f(0x1ae)](_0x111f87[_0xfa675f(0x218)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x902da0=_0x105b4f;var _0x37cdf6;this[_0x902da0(0x198)][_0x902da0(0x1df)](_0x902da0(0x1a7)),(_0x37cdf6=this[_0x902da0(0x227)])==null||_0x37cdf6[_0x902da0(0x1b6)]();}[_0x105b4f(0x1a2)](){const _0x48ac69=_0x105b4f;this[_0x48ac69(0x198)][_0x48ac69(0x1df)]('idle'),this[_0x48ac69(0x196)]();}};N=Y([_(0x2,_0x162c40),_(0x3,_0xb4de5c(L)),_(0x4,_0x3e5399)],N);function Le(){const _0x38392e=_0x105b4f,_0xeda6f3=_0x3284dd(S),_0x2ca413=_0x3284dd(_0x49d2d0),_0x148d05=_0x36dee3(()=>_0x2ca413[_0x38392e(0x1da)](_0x122c76['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4d6f57,_0x21cce1]=_0x4e7da4(null),[_0x1220af,_0x1146e6]=_0x4e7da4(c[_0x38392e(0x1a4)]),_0x263fba=_0xf38a0d(null);return _0x5d80fb(()=>(_0x148d05&&_0xeda6f3[_0x38392e(0x1d7)](_0x148d05[_0x38392e(0x23b)]())[_0x38392e(0x1b2)](_0x1a2f64=>{const _0x3cef76=_0x38392e;_0x21cce1(_0x1a2f64),_0x263fba['current']=_0x1a2f64[_0x3cef76(0x211)][_0x3cef76(0x221)](_0x32f005=>{_0x1146e6(_0x32f005);});}),()=>{const _0x3bde3d=_0x38392e;var _0x4e97ea;(_0x4e97ea=_0x263fba[_0x3bde3d(0x1f6)])==null||_0x4e97ea[_0x3bde3d(0x20f)](),_0x263fba['current']=null;}),[_0x148d05,_0xeda6f3]),_0x4d6f57?_0x46e223(_0x26b96d,{'align':_0x38392e(0x204),'disabled':_0x1220af===c[_0x38392e(0x1ab)],'className':_0x38392e(0x1b7),'overlay':_0x46e223(Re,{'status':_0x1220af,'coordinator':_0x4d6f57}),'children':_0x46e223(_0x38392e(0x1a5),{'className':_0x3c8e64('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1220af===c[_0x38392e(0x1ab)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1220af!==c[_0x38392e(0x1ab)]}),'type':'button','children':_0x46e223(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2f9b59){const _0x1f8106=_0x105b4f,{status:_0xa7e895,coordinator:_0x371e7a}=_0x2f9b59;switch(_0xa7e895){case c[_0x1f8106(0x1a4)]:return _0x46e223($e,{'coordinator':_0x371e7a});case c[_0x1f8106(0x1dc)]:return _0x46e223(xe,{'coordinator':_0x371e7a});case c['NOT_FOLLOWING']:return _0x46e223(Pe,{'coordinator':_0x371e7a});case c['OFFLINE']:return _0x46e223(Te,{});case c[_0x1f8106(0x1e2)]:return _0x46e223(Ae,{'coordinator':_0x371e7a});default:return null;}}function $e(_0xc6d450){const _0x4e0a36=_0x105b4f,{coordinator:_0x3df512}=_0xc6d450;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223('div',{'className':_0x4e0a36(0x201),'children':_0x4e0a36(0x1a6)}),_0x46e223(_0x21597a,{'onClick':()=>_0x3df512[_0x4e0a36(0x193)](),'children':_0x4e0a36(0x225)})]});}function xe(_0x5739f4){const _0x1ab26f=_0x105b4f,{coordinator:_0x5f3e05}=_0x5739f4;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0x1ab26f(0x234),{'className':_0x1ab26f(0x201),'children':_0x1ab26f(0x1a0)}),_0x46e223(_0x21597a,{'onClick':()=>_0x5f3e05[_0x1ab26f(0x233)](),'children':_0x1ab26f(0x23c)})]});}function Pe(_0x1ea74d){const _0xc46fc2=_0x105b4f,{coordinator:_0x52d7ce}=_0x1ea74d;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0xc46fc2(0x234),{'className':_0xc46fc2(0x201),'children':_0xc46fc2(0x1c9)}),_0x46e223(_0x21597a,{'variant':'text','onClick':()=>_0x52d7ce[_0xc46fc2(0x217)](),'children':_0xc46fc2(0x20a)})]});}function _0x4bc3(){const _0x365bfb=['You\x27re\x20following\x20the\x20presenter','path','_handleOnline','1215cccCXK','IDLE','button','Present\x20this\x20document','offline','6GJLmww','data','_injector','OFFLINE','_startFollowing','1em','parse','url(#$1','defineProperty','live-share-icon','then','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','mask','_handleOperation','dispose','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','getValue','NOT_FOLLOWING','_init','send','LIVESHARE_NEW_HOST','UniverIcon','LIVESHARE_FETCH_OPERATIONS','pipe','1066867ONVETv','getTypeOfUnitAdded$','http://www.w3.org/2000/svg','4688hbUvvx','length','_reporters','getConfig','_univerInstanceService','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','stopPresenting','executeCommand','_beIdle','2944430gFiIVp','_commandService','init','has','live-share.config','idle','default','includes','string','_sharedOperations','getLiveShareCoordinator','LiveShareIcon','_configService','getCurrentTypeOfUnit$','_stopFollowing','FOLLOWING','SAME_OPERATION_SHARE_INTERVAL','colorChannel1','next','LIVESHARE_TERMINATE','complete','PRESENTING','use','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','registerInitialStateReporter','_startPresenting','getMemberID','UNIVER_LIVE_SHARE_PLUGIN','_handleTerminate','createInstance','0\x200\x2017\x2017','4291060ietMZS','registerComponent','mutations','_collabSession','memberID','onStarting','_handleNewHost','5987768EuxmaE','defs','_stopPresenting','current','evenodd','fill','You\x27re\x20presenting\x20the\x20document','add','_uiPartsService','unitId','assign','1848528fHxHbJ','onRendered','attrs','univer-mb-3\x20univer-w-full\x20univer-text-sm','_unitID','UNIVER_SHEET','end','ONLINE','event$','reverse','symbol','override','Start\x20following','stringify','map','_config','setConfig','unsubscribe','LIVESHARE_REQUEST_HOST','status$','_liveShareService','clear','tag','registerSharedOperation','none','startFollowing','params','pluginName','defIds','NEW_CHANGESETS','entries','_handleNewChangeSets','1731870ffdTaq','getInitialStates','children','subscribe','dispose$','svg','_handleOffline','Start','_entities','_commandDisposable','get','currentColor','_startLiveShareCoordinator','forEach','idSuffix','replace','_mountLiveShare','toString','onCommandExecuted','xlink:href','not-following','stopFollowing','div','shouldShareOperation','33VnLGcf','getTypeOfUnitDisposed$','7dnmgxV','set','type','getUnitId','Stop\x20following','delete','presenting','tryStartPresenting','following','substring','_fetchOperations','getStatus','_status$','_status','displayName','_collabSessionService','getOwnPropertyDescriptor','LIVESHARE_OPERATION','asObservable','disposeWithMe'];_0x4bc3=function(){return _0x365bfb;};return _0x4bc3();}function Ae(_0x4ec58f){const _0xcd0b7c=_0x105b4f,{coordinator:_0x185c56}=_0x4ec58f;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0xcd0b7c(0x234),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xcd0b7c(0x1f9)}),_0x46e223(_0x21597a,{'variant':_0xcd0b7c(0x1d3),'onClick':()=>_0x185c56[_0xcd0b7c(0x1ca)](),'children':'Stop\x20presenting'})]});}function Te(){return _0x46e223(_0x46e9aa,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x105b4f(0x19c)],He=(_0x255dcd,_0x1a5c41,_0x49d45d,_0x786092)=>{for(var _0x525b14=_0x786092>0x1?void 0x0:_0x786092?Fe(_0x1a5c41,_0x49d45d):_0x1a5c41,_0xd22516=_0x255dcd['length']-0x1,_0x97ffff;_0xd22516>=0x0;_0xd22516--)(_0x97ffff=_0x255dcd[_0xd22516])&&(_0x525b14=_0x97ffff(_0x525b14)||_0x525b14);return _0x525b14;},A=(_0x12b793,_0x47751e)=>(_0x79e905,_0xf24172)=>_0x47751e(_0x79e905,_0xf24172,_0x12b793);let m=class extends _0x19c5fe{constructor(_0xd63cca,_0x3488ea){const _0x2758c8=_0x105b4f;super(),this['_injector']=_0xd63cca,this[_0x2758c8(0x1fb)]=_0x3488ea,this[_0x2758c8(0x22e)]();}[_0x105b4f(0x22e)](){const _0x257e9b=_0x105b4f;this[_0x257e9b(0x19f)](this[_0x257e9b(0x1fb)][_0x257e9b(0x1ed)](_0x2d952e['HEADER_MENU'],()=>_0x5cc7c1(Le,this[_0x257e9b(0x1aa)])));}};m=He([A(0x0,_0xb4de5c(_0x39091f)),A(0x1,_0x1cb32c)],m);const ye=_0x105b4f(0x1d1),T={};var Ue=Object[_0x105b4f(0x19c)],Ve=(_0x353cd4,_0x541fb5,_0x4dbd46,_0x2fff44)=>{const _0x585f2b=_0x105b4f;for(var _0x36e467=_0x2fff44>0x1?void 0x0:_0x2fff44?Ue(_0x541fb5,_0x4dbd46):_0x541fb5,_0x5db4eb=_0x353cd4[_0x585f2b(0x1c4)]-0x1,_0x555916;_0x5db4eb>=0x0;_0x5db4eb--)(_0x555916=_0x353cd4[_0x5db4eb])&&(_0x36e467=_0x555916(_0x36e467)||_0x36e467);return _0x36e467;},je=(_0x86080f,_0x697570)=>(_0x1dd81d,_0x276284)=>_0x697570(_0x1dd81d,_0x276284,_0x86080f);let I=class extends _0x19c5fe{constructor(_0x420fed){const _0x545cda=_0x105b4f;super(),this[_0x545cda(0x212)]=_0x420fed,this[_0x545cda(0x1ba)]();}['_init'](){[_0xba6ce1['id'],_0x105dbb['id'],_0x2e64c1['id']]['forEach'](_0x43d7ad=>{const _0x439df9=_0x2cf0;this['disposeWithMe'](this[_0x439df9(0x212)][_0x439df9(0x215)](_0x43d7ad));});}};I=Ve([je(0x0,_0xb4de5c(L))],I);function _0x2cf0(_0xc200c0,_0x258a0d){_0xc200c0=_0xc200c0-0x192;const _0x4bc32d=_0x4bc3();let _0x2cf084=_0x4bc32d[_0xc200c0];return _0x2cf084;}var Me=Object[_0x105b4f(0x1b0)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x547a47,_0x4d3bcb,_0xd46219)=>_0x4d3bcb in _0x547a47?Me(_0x547a47,_0x4d3bcb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd46219}):_0x547a47[_0x4d3bcb]=_0xd46219,We=(_0x47fd44,_0x58f49e,_0x5e44c1,_0xffcf3a)=>{const _0x3f7eec=_0x105b4f;for(var _0x199bea=_0xffcf3a>0x1?void 0x0:_0xffcf3a?ke(_0x58f49e,_0x5e44c1):_0x58f49e,_0x51af3e=_0x47fd44[_0x3f7eec(0x1c4)]-0x1,_0x3f9398;_0x51af3e>=0x0;_0x51af3e--)(_0x3f9398=_0x47fd44[_0x51af3e])&&(_0x199bea=_0x3f9398(_0x199bea)||_0x199bea);return _0x199bea;},F=(_0x5891e1,_0x324080)=>(_0x36dbcd,_0x5073de)=>_0x324080(_0x36dbcd,_0x5073de,_0x5891e1),B=(_0x165e69,_0x37f9aa,_0xf3451d)=>Ge(_0x165e69,typeof _0x37f9aa!=_0x105b4f(0x208)?_0x37f9aa+'':_0x37f9aa,_0xf3451d);const Ye=_0x105b4f(0x1e8);let b=class extends _0x1ec157{constructor(_0x1de8fd=T,_0x198cd6,_0x12f543){const _0x5d285c=_0x105b4f;super(),this['_config']=_0x1de8fd,this[_0x5d285c(0x1aa)]=_0x198cd6,this[_0x5d285c(0x1d9)]=_0x12f543;const {..._0x11363f}=_0x2a4c60({},T,this['_config']);this[_0x5d285c(0x1d9)][_0x5d285c(0x20e)](ye,_0x11363f);}[_0x105b4f(0x1f1)](){const _0x4a008a=_0x105b4f;_0x47fa09(this[_0x4a008a(0x1aa)],_0x37eaec([[L],[S],[I],[m]],this[_0x4a008a(0x20d)][_0x4a008a(0x209)])),_0x2a81f9(this['_injector'],[[I]]);}[_0x105b4f(0x1ff)](){_0x2a81f9(this['_injector'],[[m]]);}};B(b,_0x105b4f(0x23a),_0x122c76['UNIVER_UNKNOWN']),B(b,_0x105b4f(0x219),Ye),b=We([_0x2510ce(_0x16c8c0),F(0x1,_0xb4de5c(_0x39091f)),F(0x2,_0x162c40)],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
|
|
1
|
+
const _0x558774=_0x4ed5;(function(_0x1b1696,_0x333ae4){const _0x376567=_0x4ed5,_0x55c329=_0x1b1696();while(!![]){try{const _0x5902e4=-parseInt(_0x376567(0x130))/0x1+-parseInt(_0x376567(0x12d))/0x2*(-parseInt(_0x376567(0x135))/0x3)+-parseInt(_0x376567(0x131))/0x4+parseInt(_0x376567(0x11c))/0x5+-parseInt(_0x376567(0x138))/0x6*(-parseInt(_0x376567(0x123))/0x7)+-parseInt(_0x376567(0x134))/0x8*(-parseInt(_0x376567(0x11f))/0x9)+parseInt(_0x376567(0x127))/0xa;if(_0x5902e4===_0x333ae4)break;else _0x55c329['push'](_0x55c329['shift']());}catch(_0x249a4d){_0x55c329['push'](_0x55c329['shift']());}}}(_0x3f1e,0xe2d5f));function _0x4ed5(_0x3bed8d,_0x41cc61){_0x3bed8d=_0x3bed8d-0x119;const _0x3f1eae=_0x3f1e();let _0x4ed518=_0x3f1eae[_0x3bed8d];return _0x4ed518;}import{LiveShareController as _0x706cbc,LiveShareStatus as _0x1f386b}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x560fed}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xadfe7e}from'@univerjs/sheets';import{SetScrollOperation as _0x455144}from'@univerjs/sheets-ui';import{FRange as _0x223b0a}from'@univerjs/sheets/facade';import{FUniver as _0x554deb,FEnum as _0x220dfa}from'@univerjs/core/facade';class I extends _0x223b0a{['_initialize'](_0xbc4cb0,_0x3a9d6b,_0x1be57c,_0x307268,_0xf03a1b){const _0x1f88e5=_0x4ed5,_0x5995b6=_0xbc4cb0[_0x1f88e5(0x11a)](_0x706cbc),_0x5b06f0=_0xbc4cb0[_0x1f88e5(0x11a)](_0x560fed),_0x47fba3=_0x3a9d6b['getUnitId'](),_0x3b820a=_0x3a9d6b[_0x1f88e5(0x11d)](),_0x55b194=_0x5995b6['getLiveShareCoordinatorSync'](_0x47fba3);(_0x55b194==null?void 0x0:_0x55b194['getStatus']())!==_0x1f386b[_0x1f88e5(0x139)]||(_0x1be57c[_0x1f88e5(0x137)]()!==_0x3b820a['getSheetId']()&&this[_0x1f88e5(0x12b)][_0x1f88e5(0x13a)](_0xadfe7e['id'],{'unitId':_0x47fba3,'subUnitId':_0x1be57c[_0x1f88e5(0x137)]()}),!_0x5b06f0[_0x1f88e5(0x121)](_0x47fba3))||_0xf03a1b[_0x1f88e5(0x11e)](_0x455144['id'],{'unitId':_0x3a9d6b[_0x1f88e5(0x124)](),'sheetId':_0x1be57c[_0x1f88e5(0x137)](),'sheetViewStartRow':_0x307268[_0x1f88e5(0x129)],'sheetViewStartColumn':_0x307268[_0x1f88e5(0x11b)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x223b0a['extend'](I);class m extends _0x554deb{['getLiveShareStatus'](){const _0x41ea92=_0x4ed5;var _0x787a74,_0x4815ef;const _0x3b1688=this[_0x41ea92(0x13b)][_0x41ea92(0x11a)](_0x706cbc),_0x385229=(_0x787a74=this['getActiveWorkbook']())==null?void 0x0:_0x787a74['getId']();if(!_0x385229)throw new Error(_0x41ea92(0x12f));const _0x57b783=_0x3b1688[_0x41ea92(0x128)](_0x385229);return(_0x4815ef=_0x57b783==null?void 0x0:_0x57b783[_0x41ea92(0x136)]())!=null?_0x4815ef:_0x1f386b[_0x41ea92(0x120)];}[_0x558774(0x122)](){const _0x5acae0=_0x558774;var _0x30b452;const _0x56e363=this[_0x5acae0(0x13b)][_0x5acae0(0x11a)](_0x706cbc),_0x61f98e=(_0x30b452=this[_0x5acae0(0x132)]())==null?void 0x0:_0x30b452[_0x5acae0(0x133)]();if(!_0x61f98e)throw new Error(_0x5acae0(0x12f));const _0x39a64b=_0x56e363['getLiveShareCoordinatorSync'](_0x61f98e);if(!_0x39a64b)throw new Error(_0x5acae0(0x12a));_0x39a64b['startFollowing']();}[_0x558774(0x126)](){const _0x5d7112=_0x558774;var _0x1c293d;const _0x3a7381=this[_0x5d7112(0x13b)]['get'](_0x706cbc),_0x46c08a=(_0x1c293d=this[_0x5d7112(0x132)]())==null?void 0x0:_0x1c293d[_0x5d7112(0x133)]();if(!_0x46c08a)throw new Error('No\x20active\x20workbook\x20found.');const _0x4b65e9=_0x3a7381[_0x5d7112(0x128)](_0x46c08a);if(!_0x4b65e9)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4b65e9[_0x5d7112(0x126)]();}[_0x558774(0x12e)](){const _0x10e387=_0x558774;var _0x97a9bf;const _0x2f517e=this[_0x10e387(0x13b)][_0x10e387(0x11a)](_0x706cbc),_0x391e2c=(_0x97a9bf=this[_0x10e387(0x132)]())==null?void 0x0:_0x97a9bf['getId']();if(!_0x391e2c)throw new Error(_0x10e387(0x12f));const _0x311fe2=_0x2f517e[_0x10e387(0x128)](_0x391e2c);if(!_0x311fe2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x311fe2['tryStartPresenting']();}[_0x558774(0x119)](){const _0x10cbcf=_0x558774;var _0xbe0776;const _0x2a000a=this[_0x10cbcf(0x13b)][_0x10cbcf(0x11a)](_0x706cbc),_0x5dd0f8=(_0xbe0776=this[_0x10cbcf(0x132)]())==null?void 0x0:_0xbe0776[_0x10cbcf(0x133)]();if(!_0x5dd0f8)throw new Error(_0x10cbcf(0x12f));const _0x404381=_0x2a000a[_0x10cbcf(0x128)](_0x5dd0f8);if(!_0x404381)throw new Error(_0x10cbcf(0x12a));_0x404381[_0x10cbcf(0x119)]();}}_0x554deb[_0x558774(0x12c)](m);function _0x3f1e(){const _0x3851ec=['PRESENTING','executeCommand','_injector','stopPresenting','get','startColumn','7696885WxekRx','getActiveSheet','syncExecuteCommand','225DkzKsC','IDLE','getRenderById','startFollowing','59885XShwBl','getUnitId','LiveShareStatusEnum','stopFollowing','8905060JMVakH','getLiveShareCoordinatorSync','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_commandService','extend','63744fvqYsa','startPresenting','No\x20active\x20workbook\x20found.','892270ylUeOq','6239960QoLJTC','getActiveWorkbook','getId','271144flcHhf','9nPVPZR','getStatus','getSheetId','6EVLvcK'];_0x3f1e=function(){return _0x3851ec;};return _0x3f1e();}class C extends _0x220dfa{get[_0x558774(0x125)](){return _0x1f386b;}}_0x220dfa[_0x558774(0x12c)](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 _0x105b4f=_0x2cf0;(function(_0x42ec40,_0x164217){const _0x31c271=_0x2cf0,_0x2798aa=_0x42ec40();while(!![]){try{const _0x4fd234=parseInt(_0x31c271(0x1c0))/0x1+-parseInt(_0x31c271(0x21e))/0x2+parseInt(_0x31c271(0x1a3))/0x3*(parseInt(_0x31c271(0x1c3))/0x4)+parseInt(_0x31c271(0x1cd))/0x5*(-parseInt(_0x31c271(0x1a8))/0x6)+-parseInt(_0x31c271(0x238))/0x7*(parseInt(_0x31c271(0x1f3))/0x8)+parseInt(_0x31c271(0x1fe))/0x9+-parseInt(_0x31c271(0x1ec))/0xa*(-parseInt(_0x31c271(0x236))/0xb);if(_0x4fd234===_0x164217)break;else _0x2798aa['push'](_0x2798aa['shift']());}catch(_0x57a09e){_0x2798aa['push'](_0x2798aa['shift']());}}}(_0x4bc3,0xcade1));var J=Object[_0x105b4f(0x1b0)],K=(_0x14a8e0,_0x590774,_0x36d8b0)=>_0x590774 in _0x14a8e0?J(_0x14a8e0,_0x590774,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36d8b0}):_0x14a8e0[_0x590774]=_0x36d8b0,u=(_0x15841b,_0xf8d9e0,_0x22c4e5)=>K(_0x15841b,typeof _0xf8d9e0!=_0x105b4f(0x208)?_0xf8d9e0+'':_0xf8d9e0,_0x22c4e5);import{Disposable as _0x19c5fe,toDisposable as _0x2f41f0,IUniverInstanceService as _0x49d2d0,Inject as _0xb4de5c,Injector as _0x39091f,IConfigService as _0x162c40,ICommandService as _0x3e5399,RxDisposable as _0x34eb50,UniverInstanceType as _0x122c76,DisposableCollection as _0x1ca7f7,CommandType as _0x2379b5,DependentOn as _0x2510ce,Plugin as _0x1ec157,merge as _0x2a4c60,registerDependencies as _0x47fa09,mergeOverrideWithDependencies as _0x37eaec,touchDependencies as _0x2a81f9}from'@univerjs/core';import{useDependency as _0x3284dd,useObservable as _0x36dee3,IUIPartsService as _0x1cb32c,BuiltInUIPart as _0x2d952e,connectInjector as _0x5cc7c1}from'@univerjs/ui';import{jsx as _0x46e223,jsxs as _0x539ff2,Fragment as _0x46e9aa}from'react/jsx-runtime';import{Dropdown as _0x26b96d,clsx as _0x3c8e64,Button as _0x21597a}from'@univerjs/design';import{useRef as _0xf38a0d,createElement as _0x2c90b5,forwardRef as _0x4e5534,useState as _0x4e7da4,useEffect as _0x5d80fb}from'react';import{CollaborationEvent as _0x564ee3,parseProtocolChangeset as _0x40078c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xa11808,SessionStatus as _0x155833,UniverCollaborationClientPlugin as _0x16c8c0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xd8595d,SetWorksheetActiveOperation as _0x2e64c1}from'@univerjs/sheets';import{BehaviorSubject as _0x2fdabf,Subject as _0x415a69}from'rxjs';import{takeUntil as _0x56a21e,throttleTime as _0x2c6eb0}from'rxjs/operators';import{SetZoomRatioOperation as _0xba6ce1,SetScrollOperation as _0x105dbb}from'@univerjs/sheets-ui';function k({ref:_0x19be25,..._0x3012e5}){const _0x3b9e35=_0x105b4f,{icon:_0x17a20b,id:_0x550ba1,className:_0x7bb1a8,extend:_0x1882b2,..._0x27c232}=_0x3012e5,_0x1c5a00=('univerjs-icon\x20univerjs-icon-'+_0x550ba1+'\x20'+(_0x7bb1a8||''))['trim'](),_0x1c2479=_0xf38a0d('_'+Oe());return G(_0x17a20b,''+_0x550ba1,{'defIds':_0x17a20b[_0x3b9e35(0x21a)],'idSuffix':_0x1c2479['current']},{'ref':_0x19be25,'className':_0x1c5a00,..._0x27c232},_0x1882b2);}function G(_0x21c71b,_0x3db89a,_0x46eea3,_0xd75d4d,_0x3dbb56){const _0x16fb68=_0x105b4f;return _0x2c90b5(_0x21c71b['tag'],{'key':_0x3db89a,...be(_0x21c71b,_0x46eea3,_0x3dbb56),..._0xd75d4d},(Ee(_0x21c71b,_0x46eea3)[_0x16fb68(0x220)]||[])[_0x16fb68(0x20c)]((_0x52c4db,_0xf6c6bc)=>G(_0x52c4db,_0x3db89a+'-'+_0x21c71b[_0x16fb68(0x214)]+'-'+_0xf6c6bc,_0x46eea3,void 0x0,_0x3dbb56)));}function be(_0x4835e8,_0x49aeef,_0x341a92){const _0x230566=_0x105b4f,_0xc3ac35={..._0x4835e8[_0x230566(0x200)]};_0x341a92!=null&&_0x341a92[_0x230566(0x1de)]&&_0xc3ac35[_0x230566(0x1f8)]===_0x230566(0x1de)&&(_0xc3ac35[_0x230566(0x1f8)]=_0x341a92[_0x230566(0x1de)]),_0x4835e8[_0x230566(0x214)]===_0x230566(0x1b4)&&_0xc3ac35['id']&&(_0xc3ac35['id']=_0xc3ac35['id']+_0x49aeef[_0x230566(0x22c)]),Object[_0x230566(0x21c)](_0xc3ac35)[_0x230566(0x22b)](([_0x5889e0,_0x26227b])=>{const _0xed9923=_0x230566;_0x5889e0===_0xed9923(0x1b4)&&typeof _0x26227b==_0xed9923(0x1d5)&&(_0xc3ac35[_0x5889e0]=_0x26227b[_0xed9923(0x22d)](/url\(#(.*)\)/,_0xed9923(0x1af)+_0x49aeef[_0xed9923(0x22c)]+')'));});const {defIds:_0x5adcf5}=_0x49aeef;return!_0x5adcf5||_0x5adcf5[_0x230566(0x1c4)]===0x0||(_0x4835e8[_0x230566(0x214)]===_0x230566(0x1e3)&&_0xc3ac35[_0x230566(0x231)]&&(_0xc3ac35['xlink:href']=_0xc3ac35[_0x230566(0x231)]+_0x49aeef['idSuffix']),Object[_0x230566(0x21c)](_0xc3ac35)[_0x230566(0x22b)](([_0xde30ef,_0x589144])=>{const _0xb27482=_0x230566;typeof _0x589144==_0xb27482(0x1d5)&&(_0xc3ac35[_0xde30ef]=_0x589144[_0xb27482(0x22d)](/url\(#(.*)\)/,'url(#$1'+_0x49aeef[_0xb27482(0x22c)]+')'));})),_0xc3ac35;}function Ee(_0x37eaba,_0x32f198){const _0x2e155c=_0x105b4f;var _0x234cb;const {defIds:_0x475cfd}=_0x32f198;return!_0x475cfd||_0x475cfd[_0x2e155c(0x1c4)]===0x0?_0x37eaba:_0x37eaba[_0x2e155c(0x214)]===_0x2e155c(0x1f4)&&((_0x234cb=_0x37eaba[_0x2e155c(0x220)])!=null&&_0x234cb[_0x2e155c(0x1c4)])?{..._0x37eaba,'children':_0x37eaba[_0x2e155c(0x220)]['map'](_0x1bcca1=>typeof _0x1bcca1[_0x2e155c(0x200)]['id']==_0x2e155c(0x1d5)&&_0x475cfd&&_0x475cfd['includes'](_0x1bcca1['attrs']['id'])?{..._0x1bcca1,'attrs':{..._0x1bcca1[_0x2e155c(0x200)],'id':_0x1bcca1[_0x2e155c(0x200)]['id']+_0x32f198[_0x2e155c(0x22c)]}}:_0x1bcca1)}:_0x37eaba;}function Oe(){const _0x3fbdf7=_0x105b4f;return Math['random']()[_0x3fbdf7(0x22f)](0x24)[_0x3fbdf7(0x195)](0x2,0x8);}k[_0x105b4f(0x19a)]=_0x105b4f(0x1bd);const we={'tag':_0x105b4f(0x223),'attrs':{'xmlns':_0x105b4f(0x1c2),'fill':_0x105b4f(0x216),'viewBox':_0x105b4f(0x1eb),'width':_0x105b4f(0x1ad),'height':_0x105b4f(0x1ad)},'children':[{'tag':_0x105b4f(0x1a1),'attrs':{'fill':_0x105b4f(0x229),'d':_0x105b4f(0x1b3)}},{'tag':'path','attrs':{'fill':_0x105b4f(0x229),'d':_0x105b4f(0x1e4),'fillRule':_0x105b4f(0x1f7),'clipRule':_0x105b4f(0x1f7)}}]},W=_0x4e5534(function(_0x1d92a2,_0x15aa4d){const _0x1c883a=_0x105b4f;return _0x2c90b5(k,Object[_0x1c883a(0x1fd)]({},_0x1d92a2,{'id':_0x1c883a(0x1b1),'ref':_0x15aa4d,'icon':we}));});W[_0x105b4f(0x19a)]=_0x105b4f(0x1d8);class L extends _0x19c5fe{constructor(){const _0x112e80=_0x105b4f;super(...arguments),u(this,_0x112e80(0x1d6),new Set()),u(this,'_reporters',new Set());}[_0x105b4f(0x215)](_0x835e58){const _0x4477b4=_0x105b4f;return this[_0x4477b4(0x1d6)][_0x4477b4(0x1fa)](_0x835e58),_0x2f41f0(()=>this['_sharedOperations']['delete'](_0x835e58));}[_0x105b4f(0x1e5)](_0x4a3df0){const _0x1d81b4=_0x105b4f;return this[_0x1d81b4(0x1c5)][_0x1d81b4(0x1fa)](_0x4a3df0),_0x2f41f0(()=>this[_0x1d81b4(0x1c5)][_0x1d81b4(0x23d)](_0x4a3df0));}[_0x105b4f(0x235)](_0x38ea69){const _0x1430d9=_0x105b4f;return this[_0x1430d9(0x1d6)]['has'](_0x38ea69);}[_0x105b4f(0x21f)](_0x4c130e){const _0x827315=_0x105b4f;return Array['from'](this[_0x827315(0x1c5)])['map'](_0x320bfe=>_0x320bfe(_0x4c130e));}}var Ne=Object[_0x105b4f(0x19c)],Y=(_0x18595c,_0x5c0b4a,_0x50b15e,_0xc7cae9)=>{const _0x2d14e4=_0x105b4f;for(var _0x3799f8=_0xc7cae9>0x1?void 0x0:_0xc7cae9?Ne(_0x5c0b4a,_0x50b15e):_0x5c0b4a,_0x3dcda3=_0x18595c[_0x2d14e4(0x1c4)]-0x1,_0x4db411;_0x3dcda3>=0x0;_0x3dcda3--)(_0x4db411=_0x18595c[_0x3dcda3])&&(_0x3799f8=_0x4db411(_0x3799f8)||_0x3799f8);return _0x3799f8;},_=(_0x27f62d,_0x278db7)=>(_0x4b1b12,_0x54d1cb)=>_0x278db7(_0x4b1b12,_0x54d1cb,_0x27f62d);let S=class extends _0x34eb50{constructor(_0xb583bf,_0x4480d9,_0x327328){const _0x3a4e0c=_0x105b4f;super(),u(this,_0x3a4e0c(0x226),new Map()),(this['_univerInstanceService']=_0xb583bf,this[_0x3a4e0c(0x1aa)]=_0x4480d9,this[_0x3a4e0c(0x19b)]=_0x327328,this['_init']());}async['getLiveShareCoordinator'](_0x162e45){const _0x1297d7=_0x105b4f;return this[_0x1297d7(0x226)]['has'](_0x162e45)||await this[_0x1297d7(0x22a)](_0x162e45),this[_0x1297d7(0x226)][_0x1297d7(0x228)](_0x162e45);}['getLiveShareCoordinatorSync'](_0x5be43b){const _0x27a61c=_0x105b4f;var _0x28abce;return(_0x28abce=this[_0x27a61c(0x226)][_0x27a61c(0x228)](_0x5be43b))!=null?_0x28abce:null;}[_0x105b4f(0x1ba)](){const _0x55a1dd=_0x105b4f;this['_univerInstanceService'][_0x55a1dd(0x1c1)](_0x122c76[_0x55a1dd(0x203)])[_0x55a1dd(0x1bf)](_0x56a21e(this[_0x55a1dd(0x222)]))[_0x55a1dd(0x221)](async _0x40c9ee=>{const _0x4e61a1=_0x55a1dd,_0x22b9bf=_0x40c9ee[_0x4e61a1(0x23b)]();this['_entities'][_0x4e61a1(0x1d0)](_0x22b9bf)||this[_0x4e61a1(0x22a)](_0x22b9bf);}),this[_0x55a1dd(0x1c7)][_0x55a1dd(0x237)](_0x122c76[_0x55a1dd(0x203)])['pipe'](_0x56a21e(this['dispose$']))[_0x55a1dd(0x221)](_0x1904f2=>{const _0x27a46e=_0x55a1dd,_0xb6d5ff=_0x1904f2[_0x27a46e(0x23b)](),_0x3825a4=this[_0x27a46e(0x226)][_0x27a46e(0x228)](_0xb6d5ff);_0x3825a4==null||_0x3825a4['dispose']();});}async[_0x105b4f(0x22a)](_0x2efe1d){const _0xae3cb7=_0x105b4f,_0x5aeec5=await this['_collabSessionService']['requireSession'](_0x2efe1d),_0x4486d8=this[_0xae3cb7(0x1aa)][_0xae3cb7(0x1ea)](N,_0x2efe1d,_0x5aeec5);return _0x4486d8[_0xae3cb7(0x1cf)](),this[_0xae3cb7(0x226)][_0xae3cb7(0x239)](_0x2efe1d,_0x4486d8),_0x4486d8;}};S=Y([_(0x0,_0x49d2d0),_(0x1,_0xb4de5c(_0x39091f)),_(0x2,_0xb4de5c(_0xa11808))],S);var c=(_0x2ca91a=>(_0x2ca91a[_0x105b4f(0x1ab)]=_0x105b4f(0x1a7),_0x2ca91a[_0x105b4f(0x1a4)]=_0x105b4f(0x1d2),_0x2ca91a[_0x105b4f(0x1dc)]=_0x105b4f(0x194),_0x2ca91a[_0x105b4f(0x1b9)]=_0x105b4f(0x232),_0x2ca91a['PRESENTING']=_0x105b4f(0x192),_0x2ca91a))(c||{});const Ce=_0x105b4f(0x1dd),De=0xc8;let N=class extends _0x34eb50{constructor(_0x185fa4,_0x8785a7,_0x31829b,_0x56baef,_0xf9d038){const _0x2b68a5=_0x105b4f;super(),u(this,_0x2b68a5(0x198),new _0x2fdabf(_0x2b68a5(0x1d2))),u(this,_0x2b68a5(0x211),this[_0x2b68a5(0x198)][_0x2b68a5(0x19e)]()),u(this,'_init',!0x1),u(this,_0x2b68a5(0x227),null),u(this,_0x2b68a5(0x1c8),null),(this[_0x2b68a5(0x202)]=_0x185fa4,this[_0x2b68a5(0x1ef)]=_0x8785a7,this[_0x2b68a5(0x1d9)]=_0x31829b,this[_0x2b68a5(0x212)]=_0x56baef,this['_commandService']=_0xf9d038);}get[_0x105b4f(0x199)](){const _0x28c3c4=_0x105b4f;return this[_0x28c3c4(0x198)][_0x28c3c4(0x1b8)]();}[_0x105b4f(0x1b6)](){const _0x546d94=_0x105b4f;var _0x4b7cc3;(_0x4b7cc3=this[_0x546d94(0x227)])==null||_0x4b7cc3[_0x546d94(0x1b6)](),this[_0x546d94(0x198)][_0x546d94(0x1df)](_0x546d94(0x1d2)),this[_0x546d94(0x198)][_0x546d94(0x1e1)]();}[_0x105b4f(0x197)](){const _0x3f46ba=_0x105b4f;return this[_0x3f46ba(0x199)];}[_0x105b4f(0x1cf)](){const _0x28fbd3=_0x105b4f;this[_0x28fbd3(0x1ba)]||(this['_init']=!0x0,this[_0x28fbd3(0x1ef)]['sessionStatus$'][_0x28fbd3(0x1bf)](_0x56a21e(this[_0x28fbd3(0x222)]))[_0x28fbd3(0x221)](_0x45450e=>{const _0x41d137=_0x28fbd3;switch(_0x45450e){case _0x155833[_0x41d137(0x1ab)]:this[_0x41d137(0x224)]();break;case _0x155833[_0x41d137(0x205)]:this[_0x41d137(0x1a2)]();break;}}),this[_0x28fbd3(0x1ef)][_0x28fbd3(0x206)][_0x28fbd3(0x1bf)](_0x56a21e(this[_0x28fbd3(0x222)]))[_0x28fbd3(0x221)](_0x21501b=>{const _0x40db3e=_0x28fbd3,{eventID:_0x4a89a2}=_0x21501b;switch(_0x4a89a2){case _0x564ee3[_0x40db3e(0x1bc)]:this['_handleNewHost'](_0x21501b);break;case _0x564ee3[_0x40db3e(0x19d)]:this['_handleOperation'](_0x21501b);break;case _0x564ee3[_0x40db3e(0x1e0)]:this[_0x40db3e(0x1e9)]();break;case _0x564ee3[_0x40db3e(0x21b)]:this[_0x40db3e(0x21d)](_0x21501b);break;}}));}[_0x105b4f(0x193)](){const _0x1757f5=_0x105b4f;this[_0x1757f5(0x1ef)][_0x1757f5(0x1bb)]({'eventID':_0x564ee3[_0x1757f5(0x210)],'data':{'unitID':this[_0x1757f5(0x202)],'userID':this[_0x1757f5(0x1ef)][_0x1757f5(0x1e7)]()}},this[_0x1757f5(0x202)]);}[_0x105b4f(0x1ca)](){const _0x358fbe=_0x105b4f;this[_0x358fbe(0x199)]===_0x358fbe(0x192)&&(this[_0x358fbe(0x198)][_0x358fbe(0x1df)](_0x358fbe(0x1d2)),this[_0x358fbe(0x1ef)][_0x358fbe(0x1bb)]({'eventID':_0x564ee3[_0x358fbe(0x1e0)],'data':{'unitID':this[_0x358fbe(0x202)]}},this[_0x358fbe(0x202)]));}[_0x105b4f(0x217)](){const _0x4c5053=_0x105b4f;this[_0x4c5053(0x199)]==='not-following'&&(this['_status$'][_0x4c5053(0x1df)](_0x4c5053(0x194)),this[_0x4c5053(0x1ac)]());}[_0x105b4f(0x233)](){const _0x207bb2=_0x105b4f;this[_0x207bb2(0x199)]==='following'&&this[_0x207bb2(0x1db)]();}[_0x105b4f(0x1f2)](_0x258b83){const _0x3cc256=_0x105b4f,{presenter:_0x7afcbf}=_0x258b83[_0x3cc256(0x1a9)],_0x2efc6d=this['_collabSession'][_0x3cc256(0x1e7)]();this[_0x3cc256(0x1c8)]=_0x7afcbf,_0x7afcbf===_0x2efc6d?(this['_stopFollowing'](),this[_0x3cc256(0x1e6)]()):this[_0x3cc256(0x199)]!==_0x3cc256(0x232)&&(this[_0x3cc256(0x1f5)](),this[_0x3cc256(0x1ac)]());}[_0x105b4f(0x196)](){const _0x47edfb=_0x105b4f,_0x136365={'eventID':_0x564ee3[_0x47edfb(0x1be)]};this['_collabSession'][_0x47edfb(0x1bb)](_0x136365,this[_0x47edfb(0x202)]);}['_handleTerminate'](){const _0x2f3a3b=_0x105b4f;this[_0x2f3a3b(0x1c8)]=null,this[_0x2f3a3b(0x199)]!==_0x2f3a3b(0x192)&&this[_0x2f3a3b(0x1cc)]();}[_0x105b4f(0x21d)](_0x250de6){const _0x5a0456=_0x105b4f;if(this[_0x5a0456(0x199)]==='following'&&this['_presenter']===_0x250de6[_0x5a0456(0x1a9)][_0x5a0456(0x1f0)]){const _0xc47a3c=_0x40078c(_0x250de6[_0x5a0456(0x1a9)])[_0x5a0456(0x1ee)][_0x5a0456(0x207)]()['find'](_0x2167f0=>_0x2167f0['id']===_0xd8595d['id']);if(_0xc47a3c){const _0x87f447=_0xc47a3c[_0x5a0456(0x218)][_0x5a0456(0x1fc)],_0xe57cf7=_0xc47a3c[_0x5a0456(0x218)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x2e64c1['id'],{'unitId':_0x87f447,'subUnitId':_0xe57cf7},{'fromCollab':!0x0});});}}}[_0x105b4f(0x1e6)](){const _0x39afc7=_0x105b4f;this['_status$']['next'](_0x39afc7(0x192));const _0x35359e=new Map(),_0x298573=this[_0x39afc7(0x227)]=new _0x1ca7f7();_0x298573['add'](_0x2f41f0(()=>{const _0x3ff51f=_0x39afc7;_0x35359e['forEach'](_0x205651=>_0x205651[_0x3ff51f(0x1e1)]()),_0x35359e[_0x3ff51f(0x213)]();})),_0x298573[_0x39afc7(0x1fa)](this[_0x39afc7(0x1ce)][_0x39afc7(0x230)](_0x564bf6=>{const _0x4b54e6=_0x39afc7;var _0x5c1107;if(_0x564bf6[_0x4b54e6(0x23a)]!==_0x2379b5['OPERATION']||!this['_liveShareService'][_0x4b54e6(0x235)](_0x564bf6['id']))return;const {id:_0x563181}=_0x564bf6;let _0x37d666;_0x35359e['has'](_0x563181)?_0x37d666=_0x35359e[_0x4b54e6(0x228)](_0x563181):(_0x37d666=new _0x415a69(),_0x35359e['set'](_0x563181,_0x37d666),_0x37d666[_0x4b54e6(0x1bf)](_0x2c6eb0((_0x5c1107=this[_0x4b54e6(0x1d9)][_0x4b54e6(0x1c6)](Ce))!=null?_0x5c1107:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4bf215=>{const _0x2185e4=_0x4b54e6;this[_0x2185e4(0x1ef)][_0x2185e4(0x1bb)]({'eventID':_0x564ee3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2185e4(0x202)],'operations':{[_0x4bf215['id']]:{'id':_0x4bf215['id'],'params':JSON[_0x2185e4(0x20b)](_0x4bf215['params'])}}}},this[_0x2185e4(0x202)]);})),_0x37d666[_0x4b54e6(0x1df)](_0x564bf6);})),this['_liveShareService'][_0x39afc7(0x21f)](this[_0x39afc7(0x202)])[_0x39afc7(0x22b)](_0x32ed6a=>this[_0x39afc7(0x1ef)]['send']({'eventID':_0x564ee3[_0x39afc7(0x19d)],'data':{'unitID':this[_0x39afc7(0x202)],'operations':{[_0x32ed6a['id']]:{'id':_0x32ed6a['id'],'params':JSON[_0x39afc7(0x20b)](_0x32ed6a['params'])}}}},this[_0x39afc7(0x202)]));}[_0x105b4f(0x1f5)](){const _0x56783e=_0x105b4f;var _0x509977;this['_status$'][_0x56783e(0x1df)](_0x56783e(0x1d2)),(_0x509977=this[_0x56783e(0x227)])==null||_0x509977[_0x56783e(0x1b6)](),this[_0x56783e(0x227)]=null;}[_0x105b4f(0x1ac)](){const _0x435280=_0x105b4f;var _0x991dee;(_0x991dee=this[_0x435280(0x227)])==null||_0x991dee['dispose'](),this[_0x435280(0x198)]['next']('following');}['_beIdle'](){const _0x1845e5=_0x105b4f;var _0x67b2a6;this[_0x1845e5(0x198)][_0x1845e5(0x1df)](_0x1845e5(0x1d2)),(_0x67b2a6=this[_0x1845e5(0x227)])==null||_0x67b2a6[_0x1845e5(0x1b6)](),this[_0x1845e5(0x227)]=null;}[_0x105b4f(0x1db)](){const _0x239549=_0x105b4f;var _0x4103a3;this[_0x239549(0x198)][_0x239549(0x1df)](_0x239549(0x232)),(_0x4103a3=this[_0x239549(0x227)])==null||_0x4103a3[_0x239549(0x1b6)]();}[_0x105b4f(0x1b5)](_0x3a49cb){const _0x3cac2b=_0x105b4f;if([_0x3cac2b(0x192),_0x3cac2b(0x232),_0x3cac2b(0x1a7)][_0x3cac2b(0x1d4)](this[_0x3cac2b(0x199)])||!_0x3a49cb[_0x3cac2b(0x1a9)]['presenter']||_0x3a49cb['data']['presenter']===this[_0x3cac2b(0x1ef)][_0x3cac2b(0x1e7)]())return;this[_0x3cac2b(0x199)]==='idle'&&this['_startFollowing']();const _0x2e60c5=_0x3a49cb[_0x3cac2b(0x1a9)]['operations'];Object['values'](_0x2e60c5)[_0x3cac2b(0x22b)](_0x111f87=>{const _0xfa675f=_0x3cac2b;this[_0xfa675f(0x1ce)][_0xfa675f(0x1cb)](_0x111f87['id'],_0x111f87[_0xfa675f(0x218)]?JSON[_0xfa675f(0x1ae)](_0x111f87[_0xfa675f(0x218)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x902da0=_0x105b4f;var _0x37cdf6;this[_0x902da0(0x198)][_0x902da0(0x1df)](_0x902da0(0x1a7)),(_0x37cdf6=this[_0x902da0(0x227)])==null||_0x37cdf6[_0x902da0(0x1b6)]();}[_0x105b4f(0x1a2)](){const _0x48ac69=_0x105b4f;this[_0x48ac69(0x198)][_0x48ac69(0x1df)]('idle'),this[_0x48ac69(0x196)]();}};N=Y([_(0x2,_0x162c40),_(0x3,_0xb4de5c(L)),_(0x4,_0x3e5399)],N);function Le(){const _0x38392e=_0x105b4f,_0xeda6f3=_0x3284dd(S),_0x2ca413=_0x3284dd(_0x49d2d0),_0x148d05=_0x36dee3(()=>_0x2ca413[_0x38392e(0x1da)](_0x122c76['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4d6f57,_0x21cce1]=_0x4e7da4(null),[_0x1220af,_0x1146e6]=_0x4e7da4(c[_0x38392e(0x1a4)]),_0x263fba=_0xf38a0d(null);return _0x5d80fb(()=>(_0x148d05&&_0xeda6f3[_0x38392e(0x1d7)](_0x148d05[_0x38392e(0x23b)]())[_0x38392e(0x1b2)](_0x1a2f64=>{const _0x3cef76=_0x38392e;_0x21cce1(_0x1a2f64),_0x263fba['current']=_0x1a2f64[_0x3cef76(0x211)][_0x3cef76(0x221)](_0x32f005=>{_0x1146e6(_0x32f005);});}),()=>{const _0x3bde3d=_0x38392e;var _0x4e97ea;(_0x4e97ea=_0x263fba[_0x3bde3d(0x1f6)])==null||_0x4e97ea[_0x3bde3d(0x20f)](),_0x263fba['current']=null;}),[_0x148d05,_0xeda6f3]),_0x4d6f57?_0x46e223(_0x26b96d,{'align':_0x38392e(0x204),'disabled':_0x1220af===c[_0x38392e(0x1ab)],'className':_0x38392e(0x1b7),'overlay':_0x46e223(Re,{'status':_0x1220af,'coordinator':_0x4d6f57}),'children':_0x46e223(_0x38392e(0x1a5),{'className':_0x3c8e64('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1220af===c[_0x38392e(0x1ab)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1220af!==c[_0x38392e(0x1ab)]}),'type':'button','children':_0x46e223(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2f9b59){const _0x1f8106=_0x105b4f,{status:_0xa7e895,coordinator:_0x371e7a}=_0x2f9b59;switch(_0xa7e895){case c[_0x1f8106(0x1a4)]:return _0x46e223($e,{'coordinator':_0x371e7a});case c[_0x1f8106(0x1dc)]:return _0x46e223(xe,{'coordinator':_0x371e7a});case c['NOT_FOLLOWING']:return _0x46e223(Pe,{'coordinator':_0x371e7a});case c['OFFLINE']:return _0x46e223(Te,{});case c[_0x1f8106(0x1e2)]:return _0x46e223(Ae,{'coordinator':_0x371e7a});default:return null;}}function $e(_0xc6d450){const _0x4e0a36=_0x105b4f,{coordinator:_0x3df512}=_0xc6d450;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223('div',{'className':_0x4e0a36(0x201),'children':_0x4e0a36(0x1a6)}),_0x46e223(_0x21597a,{'onClick':()=>_0x3df512[_0x4e0a36(0x193)](),'children':_0x4e0a36(0x225)})]});}function xe(_0x5739f4){const _0x1ab26f=_0x105b4f,{coordinator:_0x5f3e05}=_0x5739f4;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0x1ab26f(0x234),{'className':_0x1ab26f(0x201),'children':_0x1ab26f(0x1a0)}),_0x46e223(_0x21597a,{'onClick':()=>_0x5f3e05[_0x1ab26f(0x233)](),'children':_0x1ab26f(0x23c)})]});}function Pe(_0x1ea74d){const _0xc46fc2=_0x105b4f,{coordinator:_0x52d7ce}=_0x1ea74d;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0xc46fc2(0x234),{'className':_0xc46fc2(0x201),'children':_0xc46fc2(0x1c9)}),_0x46e223(_0x21597a,{'variant':'text','onClick':()=>_0x52d7ce[_0xc46fc2(0x217)](),'children':_0xc46fc2(0x20a)})]});}function _0x4bc3(){const _0x365bfb=['You\x27re\x20following\x20the\x20presenter','path','_handleOnline','1215cccCXK','IDLE','button','Present\x20this\x20document','offline','6GJLmww','data','_injector','OFFLINE','_startFollowing','1em','parse','url(#$1','defineProperty','live-share-icon','then','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','mask','_handleOperation','dispose','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','getValue','NOT_FOLLOWING','_init','send','LIVESHARE_NEW_HOST','UniverIcon','LIVESHARE_FETCH_OPERATIONS','pipe','1066867ONVETv','getTypeOfUnitAdded$','http://www.w3.org/2000/svg','4688hbUvvx','length','_reporters','getConfig','_univerInstanceService','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','stopPresenting','executeCommand','_beIdle','2944430gFiIVp','_commandService','init','has','live-share.config','idle','default','includes','string','_sharedOperations','getLiveShareCoordinator','LiveShareIcon','_configService','getCurrentTypeOfUnit$','_stopFollowing','FOLLOWING','SAME_OPERATION_SHARE_INTERVAL','colorChannel1','next','LIVESHARE_TERMINATE','complete','PRESENTING','use','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','registerInitialStateReporter','_startPresenting','getMemberID','UNIVER_LIVE_SHARE_PLUGIN','_handleTerminate','createInstance','0\x200\x2017\x2017','4291060ietMZS','registerComponent','mutations','_collabSession','memberID','onStarting','_handleNewHost','5987768EuxmaE','defs','_stopPresenting','current','evenodd','fill','You\x27re\x20presenting\x20the\x20document','add','_uiPartsService','unitId','assign','1848528fHxHbJ','onRendered','attrs','univer-mb-3\x20univer-w-full\x20univer-text-sm','_unitID','UNIVER_SHEET','end','ONLINE','event$','reverse','symbol','override','Start\x20following','stringify','map','_config','setConfig','unsubscribe','LIVESHARE_REQUEST_HOST','status$','_liveShareService','clear','tag','registerSharedOperation','none','startFollowing','params','pluginName','defIds','NEW_CHANGESETS','entries','_handleNewChangeSets','1731870ffdTaq','getInitialStates','children','subscribe','dispose$','svg','_handleOffline','Start','_entities','_commandDisposable','get','currentColor','_startLiveShareCoordinator','forEach','idSuffix','replace','_mountLiveShare','toString','onCommandExecuted','xlink:href','not-following','stopFollowing','div','shouldShareOperation','33VnLGcf','getTypeOfUnitDisposed$','7dnmgxV','set','type','getUnitId','Stop\x20following','delete','presenting','tryStartPresenting','following','substring','_fetchOperations','getStatus','_status$','_status','displayName','_collabSessionService','getOwnPropertyDescriptor','LIVESHARE_OPERATION','asObservable','disposeWithMe'];_0x4bc3=function(){return _0x365bfb;};return _0x4bc3();}function Ae(_0x4ec58f){const _0xcd0b7c=_0x105b4f,{coordinator:_0x185c56}=_0x4ec58f;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0xcd0b7c(0x234),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xcd0b7c(0x1f9)}),_0x46e223(_0x21597a,{'variant':_0xcd0b7c(0x1d3),'onClick':()=>_0x185c56[_0xcd0b7c(0x1ca)](),'children':'Stop\x20presenting'})]});}function Te(){return _0x46e223(_0x46e9aa,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x105b4f(0x19c)],He=(_0x255dcd,_0x1a5c41,_0x49d45d,_0x786092)=>{for(var _0x525b14=_0x786092>0x1?void 0x0:_0x786092?Fe(_0x1a5c41,_0x49d45d):_0x1a5c41,_0xd22516=_0x255dcd['length']-0x1,_0x97ffff;_0xd22516>=0x0;_0xd22516--)(_0x97ffff=_0x255dcd[_0xd22516])&&(_0x525b14=_0x97ffff(_0x525b14)||_0x525b14);return _0x525b14;},A=(_0x12b793,_0x47751e)=>(_0x79e905,_0xf24172)=>_0x47751e(_0x79e905,_0xf24172,_0x12b793);let m=class extends _0x19c5fe{constructor(_0xd63cca,_0x3488ea){const _0x2758c8=_0x105b4f;super(),this['_injector']=_0xd63cca,this[_0x2758c8(0x1fb)]=_0x3488ea,this[_0x2758c8(0x22e)]();}[_0x105b4f(0x22e)](){const _0x257e9b=_0x105b4f;this[_0x257e9b(0x19f)](this[_0x257e9b(0x1fb)][_0x257e9b(0x1ed)](_0x2d952e['HEADER_MENU'],()=>_0x5cc7c1(Le,this[_0x257e9b(0x1aa)])));}};m=He([A(0x0,_0xb4de5c(_0x39091f)),A(0x1,_0x1cb32c)],m);const ye=_0x105b4f(0x1d1),T={};var Ue=Object[_0x105b4f(0x19c)],Ve=(_0x353cd4,_0x541fb5,_0x4dbd46,_0x2fff44)=>{const _0x585f2b=_0x105b4f;for(var _0x36e467=_0x2fff44>0x1?void 0x0:_0x2fff44?Ue(_0x541fb5,_0x4dbd46):_0x541fb5,_0x5db4eb=_0x353cd4[_0x585f2b(0x1c4)]-0x1,_0x555916;_0x5db4eb>=0x0;_0x5db4eb--)(_0x555916=_0x353cd4[_0x5db4eb])&&(_0x36e467=_0x555916(_0x36e467)||_0x36e467);return _0x36e467;},je=(_0x86080f,_0x697570)=>(_0x1dd81d,_0x276284)=>_0x697570(_0x1dd81d,_0x276284,_0x86080f);let I=class extends _0x19c5fe{constructor(_0x420fed){const _0x545cda=_0x105b4f;super(),this[_0x545cda(0x212)]=_0x420fed,this[_0x545cda(0x1ba)]();}['_init'](){[_0xba6ce1['id'],_0x105dbb['id'],_0x2e64c1['id']]['forEach'](_0x43d7ad=>{const _0x439df9=_0x2cf0;this['disposeWithMe'](this[_0x439df9(0x212)][_0x439df9(0x215)](_0x43d7ad));});}};I=Ve([je(0x0,_0xb4de5c(L))],I);function _0x2cf0(_0xc200c0,_0x258a0d){_0xc200c0=_0xc200c0-0x192;const _0x4bc32d=_0x4bc3();let _0x2cf084=_0x4bc32d[_0xc200c0];return _0x2cf084;}var Me=Object[_0x105b4f(0x1b0)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x547a47,_0x4d3bcb,_0xd46219)=>_0x4d3bcb in _0x547a47?Me(_0x547a47,_0x4d3bcb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd46219}):_0x547a47[_0x4d3bcb]=_0xd46219,We=(_0x47fd44,_0x58f49e,_0x5e44c1,_0xffcf3a)=>{const _0x3f7eec=_0x105b4f;for(var _0x199bea=_0xffcf3a>0x1?void 0x0:_0xffcf3a?ke(_0x58f49e,_0x5e44c1):_0x58f49e,_0x51af3e=_0x47fd44[_0x3f7eec(0x1c4)]-0x1,_0x3f9398;_0x51af3e>=0x0;_0x51af3e--)(_0x3f9398=_0x47fd44[_0x51af3e])&&(_0x199bea=_0x3f9398(_0x199bea)||_0x199bea);return _0x199bea;},F=(_0x5891e1,_0x324080)=>(_0x36dbcd,_0x5073de)=>_0x324080(_0x36dbcd,_0x5073de,_0x5891e1),B=(_0x165e69,_0x37f9aa,_0xf3451d)=>Ge(_0x165e69,typeof _0x37f9aa!=_0x105b4f(0x208)?_0x37f9aa+'':_0x37f9aa,_0xf3451d);const Ye=_0x105b4f(0x1e8);let b=class extends _0x1ec157{constructor(_0x1de8fd=T,_0x198cd6,_0x12f543){const _0x5d285c=_0x105b4f;super(),this['_config']=_0x1de8fd,this[_0x5d285c(0x1aa)]=_0x198cd6,this[_0x5d285c(0x1d9)]=_0x12f543;const {..._0x11363f}=_0x2a4c60({},T,this['_config']);this[_0x5d285c(0x1d9)][_0x5d285c(0x20e)](ye,_0x11363f);}[_0x105b4f(0x1f1)](){const _0x4a008a=_0x105b4f;_0x47fa09(this[_0x4a008a(0x1aa)],_0x37eaec([[L],[S],[I],[m]],this[_0x4a008a(0x20d)][_0x4a008a(0x209)])),_0x2a81f9(this['_injector'],[[I]]);}[_0x105b4f(0x1ff)](){_0x2a81f9(this['_injector'],[[m]]);}};B(b,_0x105b4f(0x23a),_0x122c76['UNIVER_UNKNOWN']),B(b,_0x105b4f(0x219),Ye),b=We([_0x2510ce(_0x16c8c0),F(0x1,_0xb4de5c(_0x39091f)),F(0x2,_0x162c40)],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(
|
|
1
|
+
(function(_0x5ef4cc,_0x5228b2){const _0x32202a=_0x12fa,_0xfc85ed=_0x5ef4cc();while(!![]){try{const _0x33961c=parseInt(_0x32202a(0xf9))/0x1*(-parseInt(_0x32202a(0x104))/0x2)+parseInt(_0x32202a(0x103))/0x3*(parseInt(_0x32202a(0x100))/0x4)+parseInt(_0x32202a(0xf8))/0x5+parseInt(_0x32202a(0xe2))/0x6*(parseInt(_0x32202a(0xfa))/0x7)+parseInt(_0x32202a(0xe3))/0x8+parseInt(_0x32202a(0xe0))/0x9*(parseInt(_0x32202a(0xf0))/0xa)+-parseInt(_0x32202a(0xfb))/0xb;if(_0x33961c===_0x5228b2)break;else _0xfc85ed['push'](_0xfc85ed['shift']());}catch(_0x37ad6f){_0xfc85ed['push'](_0xfc85ed['shift']());}}}(_0x3ae0,0x80d61),function(_0x455933,_0x1ca851){const _0x6953ca=_0x12fa;typeof exports==_0x6953ca(0xd5)&&typeof module<'u'?_0x1ca851(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==_0x6953ca(0xe8)&&define[_0x6953ca(0x105)]?define([_0x6953ca(0xd6),'@univerjs/engine-render','@univerjs/sheets',_0x6953ca(0xfe),_0x6953ca(0xd3),_0x6953ca(0xf6)],_0x1ca851):(_0x455933=typeof globalThis<'u'?globalThis:_0x455933||self,_0x1ca851(_0x455933[_0x6953ca(0x102)],_0x455933[_0x6953ca(0xda)],_0x455933[_0x6953ca(0xea)],_0x455933[_0x6953ca(0xe4)],_0x455933[_0x6953ca(0xff)],_0x455933[_0x6953ca(0xee)]));}(this,function(_0x80fff,_0x521c2e,_0x53f828,_0x41f39b,_0x23e4ea,_0x2eb9a3){'use strict';const _0x43e474=_0x12fa;class _0xa1278c extends _0x23e4ea[_0x43e474(0xec)]{['_initialize'](_0x59b316,_0x59eac3,_0x5f9ba2,_0xbf73b3,_0x399b15){const _0x4f866c=_0x43e474,_0x295448=_0x59b316[_0x4f866c(0xfd)](_0x80fff[_0x4f866c(0xef)]),_0x5517d6=_0x59b316[_0x4f866c(0xfd)](_0x521c2e[_0x4f866c(0xd8)]),_0x30d05f=_0x59eac3[_0x4f866c(0xd9)](),_0x532de3=_0x59eac3[_0x4f866c(0xf4)](),_0x2da3a3=_0x295448[_0x4f866c(0xd7)](_0x30d05f);(_0x2da3a3==null?void 0x0:_0x2da3a3[_0x4f866c(0xf3)]())!==_0x80fff[_0x4f866c(0xd4)][_0x4f866c(0x101)]||(_0x5f9ba2[_0x4f866c(0xdb)]()!==_0x532de3['getSheetId']()&&this[_0x4f866c(0xf5)][_0x4f866c(0x106)](_0x53f828[_0x4f866c(0xf1)]['id'],{'unitId':_0x30d05f,'subUnitId':_0x5f9ba2[_0x4f866c(0xdb)]()}),!_0x5517d6[_0x4f866c(0x107)](_0x30d05f))||_0x399b15['syncExecuteCommand'](_0x41f39b[_0x4f866c(0xe6)]['id'],{'unitId':_0x59eac3[_0x4f866c(0xd9)](),'sheetId':_0x5f9ba2[_0x4f866c(0xdb)](),'sheetViewStartRow':_0xbf73b3['startRow'],'sheetViewStartColumn':_0xbf73b3[_0x4f866c(0xe5)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x23e4ea[_0x43e474(0xec)]['extend'](_0xa1278c);class _0x286397 extends _0x2eb9a3['FUniver']{[_0x43e474(0xf2)](){const _0x27f0d8=_0x43e474;var _0x2ad2b8,_0x38a126;const _0x538308=this[_0x27f0d8(0xe1)]['get'](_0x80fff['LiveShareController']),_0x59dc33=(_0x2ad2b8=this['getActiveWorkbook']())==null?void 0x0:_0x2ad2b8[_0x27f0d8(0xfc)]();if(!_0x59dc33)throw new Error(_0x27f0d8(0xe9));const _0x1b5b54=_0x538308[_0x27f0d8(0xd7)](_0x59dc33);return(_0x38a126=_0x1b5b54==null?void 0x0:_0x1b5b54[_0x27f0d8(0xf3)]())!=null?_0x38a126:_0x80fff['LiveShareStatus'][_0x27f0d8(0xed)];}[_0x43e474(0xdf)](){const _0x22c600=_0x43e474;var _0x4be665;const _0x1ef968=this['_injector'][_0x22c600(0xfd)](_0x80fff['LiveShareController']),_0x1c7cdf=(_0x4be665=this[_0x22c600(0xeb)]())==null?void 0x0:_0x4be665[_0x22c600(0xfc)]();if(!_0x1c7cdf)throw new Error('No\x20active\x20workbook\x20found.');const _0x2f8f44=_0x1ef968[_0x22c600(0xd7)](_0x1c7cdf);if(!_0x2f8f44)throw new Error(_0x22c600(0xe7));_0x2f8f44[_0x22c600(0xdf)]();}[_0x43e474(0x108)](){const _0x4264b3=_0x43e474;var _0x48b1aa;const _0x5ec506=this[_0x4264b3(0xe1)][_0x4264b3(0xfd)](_0x80fff['LiveShareController']),_0x369471=(_0x48b1aa=this[_0x4264b3(0xeb)]())==null?void 0x0:_0x48b1aa['getId']();if(!_0x369471)throw new Error(_0x4264b3(0xe9));const _0x222045=_0x5ec506[_0x4264b3(0xd7)](_0x369471);if(!_0x222045)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x222045[_0x4264b3(0x108)]();}['startPresenting'](){const _0x28e7c6=_0x43e474;var _0x46a378;const _0x52080b=this[_0x28e7c6(0xe1)]['get'](_0x80fff[_0x28e7c6(0xef)]),_0x3598f1=(_0x46a378=this[_0x28e7c6(0xeb)]())==null?void 0x0:_0x46a378['getId']();if(!_0x3598f1)throw new Error(_0x28e7c6(0xe9));const _0x4a86bd=_0x52080b['getLiveShareCoordinatorSync'](_0x3598f1);if(!_0x4a86bd)throw new Error(_0x28e7c6(0xe7));_0x4a86bd[_0x28e7c6(0xdd)]();}['stopPresenting'](){const _0x59178b=_0x43e474;var _0x4e41dd;const _0x604ad8=this['_injector'][_0x59178b(0xfd)](_0x80fff[_0x59178b(0xef)]),_0x1c7171=(_0x4e41dd=this[_0x59178b(0xeb)]())==null?void 0x0:_0x4e41dd[_0x59178b(0xfc)]();if(!_0x1c7171)throw new Error(_0x59178b(0xe9));const _0x235aca=_0x604ad8[_0x59178b(0xd7)](_0x1c7171);if(!_0x235aca)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x235aca[_0x59178b(0xdc)]();}}_0x2eb9a3['FUniver']['extend'](_0x286397);class _0x3403f9 extends _0x2eb9a3[_0x43e474(0xde)]{get[_0x43e474(0xf7)](){const _0x4db5ce=_0x43e474;return _0x80fff[_0x4db5ce(0xd4)];}}_0x2eb9a3[_0x43e474(0xde)]['extend'](_0x3403f9);}));function _0x12fa(_0x379f86,_0x6fc317){_0x379f86=_0x379f86-0xd3;const _0x3ae02f=_0x3ae0();let _0x12fa3=_0x3ae02f[_0x379f86];return _0x12fa3;}function _0x3ae0(){const _0x216360=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','function','No\x20active\x20workbook\x20found.','UniverSheets','getActiveWorkbook','FRange','IDLE','UniverCoreFacade','LiveShareController','1500Xplwrm','SetWorksheetActiveOperation','getLiveShareStatus','getStatus','getActiveSheet','_commandService','@univerjs/core/facade','LiveShareStatusEnum','2675575hLnfae','13xUqzCO','14XbnPsW','10535690zQLLFE','getId','get','@univerjs/sheets-ui','UniverSheetsFacade','2340808CvuMdy','PRESENTING','UniverProLiveShare','3LbXAgg','136438vglnQc','amd','executeCommand','getRenderById','stopFollowing','@univerjs/sheets/facade','LiveShareStatus','object','@univerjs-pro/live-share','getLiveShareCoordinatorSync','IRenderManagerService','getUnitId','UniverEngineRender','getSheetId','stopPresenting','tryStartPresenting','FEnum','startFollowing','18774DnuFXB','_injector','2299356IdkHid','1381448xOeVfH','UniverSheetsUi','startColumn','SetScrollOperation'];_0x3ae0=function(){return _0x216360;};return _0x3ae0();}
|
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 _0x8f7c(){const _0x1f8015=['UniverSheetsUi','sessionStatus$','IUIPartsService','data','dispose$','registerSharedOperation','rxjs','mutations','Dropdown','then','NEW_CHANGESETS','createInstance','jsx','_handleNewChangeSets','_handleTerminate','CollaborationEvent','stopPresenting','_stopPresenting','LiveShareController','evenodd','presenting','Disposable','LiveShareService','UniverProLiveShare','LIVESHARE_TERMINATE','startFollowing','CommandType','pipe','substring','LiveShare','3bluRvT','NOT_FOLLOWING','LiveShareCoordinator','reverse','live-share.config','getInitialStates','tag','registerInitialStateReporter','LIVESHARE_NEW_HOST','_stopFollowing','Button','_handleOperation','Start','react/jsx-runtime','send','Start\x20following','UniverProCollaboration','end','CollaborationSessionService','@univerjs/ui','following','_startLiveShareCoordinator','UNIVER_UNKNOWN','mask','requireSession','getConfig','defIds','_presenter','exports','_status$','useObservable','getLiveShareCoordinatorSync','InsertSheetMutation','OPERATION','UniverCollaborationClientPlugin','toStringTag','SAME_OPERATION_SHARE_INTERVAL','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UniverProCollaborationClient','type','default','_beIdle','takeUntil','onCommandExecuted','@univerjs-pro/collaboration-client','merge','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','You\x27re\x20presenting\x20the\x20document','includes','UNIVER_LIVE_SHARE_PLUGIN','Inject','univer-size-4','path','has','Stop\x20presenting','IDLE','_startFollowing','replace','next','complete','_uiPartsService','_mountLiveShare','entries','unitId','_status','_configService','attrs','throttleTime','xlink:href','from','RxDisposable','clear','LIVESHARE_FETCH_OPERATIONS','_liveShareService','_injector','not-following','Fragment','stringify','function','_handleNewHost','disposeWithMe','get','React','operators','presenter','You\x27re\x20not\x20following\x20the\x20presenter','map','Plugin','_collabSessionService','defs','_fetchOperations','forwardRef','random','PRESENTING','dispose','FOLLOWING','executeCommand','IConfigService','getOwnPropertyDescriptor','text','_handleOffline','getCurrentTypeOfUnit$','1879192ZdeCUJ','30XQHZAP','set','none','idle','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','shouldShareOperation','toDisposable','length','_config','status$','getMemberID','@univerjs/core','305374VQFyfj','mergeOverrideWithDependencies','current','react','@univerjs-pro/collaboration','Injector','memberID','HEADER_MENU','UniverSheets','params','UniverLiveSharePlugin','369960VQxtfO','_reporters','_commandDisposable','getTypeOfUnitAdded$','Present\x20this\x20document','You\x27are\x20offline.','@univerjs/design','delete','offline','jsxs','BuiltInUIPart','stopFollowing','UniverDesign','getLiveShareCoordinator','1236048Qfejwy','touchDependencies','createElement','trim','use','object','symbol','override','string','1em','registerDependencies','getUnitId','DesktopLiveShareController','forEach','connectInjector','pluginName','rxjs/operators','getTypeOfUnitDisposed$','SessionStatus','useDependency','useRef','_handleOnline','_sharedOperations','320904zkRWUV','init','useState','BehaviorSubject','_init','svg','div','LiveShareStatus','Stop\x20following','@univerjs/sheets','defineProperty','968700nVIkRB','idSuffix','add','UniverInstanceType','getStatus','currentColor','UniverIcon','UNIVER_SHEET','ICommandService','_commandService','parse','operations','LiveShareIcon','_entities','_unitID','colorChannel1','_univerInstanceService','subscribe','tryStartPresenting','OFFLINE','live-share-icon','toString','displayName','0\x200\x2017\x2017','SetWorksheetActiveOperation','506556advuNT','find','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','_collabSession','clsx','children','fill','SetScrollOperation'];_0x8f7c=function(){return _0x1f8015;};return _0x8f7c();}function _0x3e36(_0x22d6bd,_0x35e45e){_0x22d6bd=_0x22d6bd-0x11e;const _0x8f7c2f=_0x8f7c();let _0x3e3653=_0x8f7c2f[_0x22d6bd];return _0x3e3653;}(function(_0x4ab8de,_0x3460de){const _0x4d8687=_0x3e36,_0x3ab222=_0x4ab8de();while(!![]){try{const _0x45e64b=-parseInt(_0x4d8687(0x1cc))/0x1*(-parseInt(_0x4d8687(0x152))/0x2)+-parseInt(_0x4d8687(0x1a6))/0x3+parseInt(_0x4d8687(0x18d))/0x4+parseInt(_0x4d8687(0x15d))/0x5*(-parseInt(_0x4d8687(0x145))/0x6)+parseInt(_0x4d8687(0x144))/0x7+-parseInt(_0x4d8687(0x16b))/0x8+-parseInt(_0x4d8687(0x182))/0x9;if(_0x45e64b===_0x3460de)break;else _0x3ab222['push'](_0x3ab222['shift']());}catch(_0xb4ef46){_0x3ab222['push'](_0x3ab222['shift']());}}}(_0x8f7c,0x3a866),function(_0x3abc90,_0x3df5cf){const _0xf7dcd=_0x3e36;typeof exports==_0xf7dcd(0x170)&&typeof module<'u'?_0x3df5cf(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==_0xf7dcd(0x12c)&&define['amd']?define([_0xf7dcd(0x1e8),_0xf7dcd(0x151),_0xf7dcd(0x1df),_0xf7dcd(0x1d9),_0xf7dcd(0x163),_0xf7dcd(0x155),_0xf7dcd(0x156),_0xf7dcd(0x1f8),_0xf7dcd(0x18b),_0xf7dcd(0x1b4),_0xf7dcd(0x17b),'@univerjs/sheets-ui'],_0x3df5cf):(_0x3abc90=typeof globalThis<'u'?globalThis:_0x3abc90||self,_0x3df5cf(_0x3abc90[_0xf7dcd(0x1c5)]={},_0x3abc90['UniverCore'],_0x3abc90['UniverUi'],_0x3abc90[_0xf7dcd(0x130)],_0x3abc90[_0xf7dcd(0x169)],_0x3abc90[_0xf7dcd(0x130)],_0x3abc90[_0xf7dcd(0x1dc)],_0x3abc90[_0xf7dcd(0x1f2)],_0x3abc90[_0xf7dcd(0x15a)],_0x3abc90[_0xf7dcd(0x1b4)],_0x3abc90['rxjs'][_0xf7dcd(0x131)],_0x3abc90[_0xf7dcd(0x1ae)]));}(this,function(_0x1c5f91,_0x342837,_0x20cf75,_0x5d3518,_0x19382c,_0x2af741,_0x2fb4e6,_0x4b3acb,_0x22bb53,_0x5d360a,_0x392387,_0x51dae5){'use strict';const _0x7360d4=_0x3e36;var _0x2e2910=Object['defineProperty'],_0x530287=(_0x1465c3,_0x1f4c9d,_0x368241)=>_0x1f4c9d in _0x1465c3?_0x2e2910(_0x1465c3,_0x1f4c9d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x368241}):_0x1465c3[_0x1f4c9d]=_0x368241,_0x408b92=(_0x1557fc,_0x3f4af7,_0x41d953)=>_0x530287(_0x1557fc,typeof _0x3f4af7!='symbol'?_0x3f4af7+'':_0x3f4af7,_0x41d953);function _0x46471f({ref:_0xd58555,..._0x47544e}){const _0x5d7a11=_0x3e36,{icon:_0x1dbc6f,id:_0x4c3045,className:_0x16d3ec,extend:_0x44b08f,..._0x4d2a53}=_0x47544e,_0x14a4cb=('univerjs-icon\x20univerjs-icon-'+_0x4c3045+'\x20'+(_0x16d3ec||''))[_0x5d7a11(0x16e)](),_0x3318dc=_0x2af741[_0x5d7a11(0x17f)]('_'+_0x202d02());return _0x4f21bf(_0x1dbc6f,''+_0x4c3045,{'defIds':_0x1dbc6f[_0x5d7a11(0x1e6)],'idSuffix':_0x3318dc[_0x5d7a11(0x154)]},{'ref':_0xd58555,'className':_0x14a4cb,..._0x4d2a53},_0x44b08f);}function _0x4f21bf(_0x106b65,_0x584ee7,_0x42c4f7,_0x18292f,_0x32c563){const _0x5d76fe=_0x3e36;return _0x2af741[_0x5d76fe(0x16d)](_0x106b65[_0x5d76fe(0x1d2)],{'key':_0x584ee7,..._0x552b13(_0x106b65,_0x42c4f7,_0x32c563),..._0x18292f},(_0x1ceb3b(_0x106b65,_0x42c4f7)[_0x5d76fe(0x1ab)]||[])[_0x5d76fe(0x134)]((_0x38744b,_0x7bbab8)=>_0x4f21bf(_0x38744b,_0x584ee7+'-'+_0x106b65[_0x5d76fe(0x1d2)]+'-'+_0x7bbab8,_0x42c4f7,void 0x0,_0x32c563)));}function _0x552b13(_0x7de52a,_0x1e969c,_0x35910c){const _0xcb2ca8=_0x3e36,_0x8ada6={..._0x7de52a[_0xcb2ca8(0x120)]};_0x35910c!=null&&_0x35910c[_0xcb2ca8(0x19c)]&&_0x8ada6[_0xcb2ca8(0x1ac)]===_0xcb2ca8(0x19c)&&(_0x8ada6[_0xcb2ca8(0x1ac)]=_0x35910c[_0xcb2ca8(0x19c)]),_0x7de52a[_0xcb2ca8(0x1d2)]===_0xcb2ca8(0x1e3)&&_0x8ada6['id']&&(_0x8ada6['id']=_0x8ada6['id']+_0x1e969c[_0xcb2ca8(0x18e)]),Object[_0xcb2ca8(0x20a)](_0x8ada6)[_0xcb2ca8(0x178)](([_0x20f153,_0x5431c5])=>{const _0x5e2ffc=_0xcb2ca8;_0x20f153===_0x5e2ffc(0x1e3)&&typeof _0x5431c5=='string'&&(_0x8ada6[_0x20f153]=_0x5431c5[_0x5e2ffc(0x205)](/url\(#(.*)\)/,'url(#$1'+_0x1e969c[_0x5e2ffc(0x18e)]+')'));});const {defIds:_0x15b5de}=_0x1e969c;return!_0x15b5de||_0x15b5de[_0xcb2ca8(0x14d)]===0x0||(_0x7de52a[_0xcb2ca8(0x1d2)]===_0xcb2ca8(0x16f)&&_0x8ada6[_0xcb2ca8(0x122)]&&(_0x8ada6[_0xcb2ca8(0x122)]=_0x8ada6['xlink:href']+_0x1e969c['idSuffix']),Object[_0xcb2ca8(0x20a)](_0x8ada6)[_0xcb2ca8(0x178)](([_0x2dd5c8,_0x4f3b2b])=>{const _0xec82fd=_0xcb2ca8;typeof _0x4f3b2b==_0xec82fd(0x173)&&(_0x8ada6[_0x2dd5c8]=_0x4f3b2b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x1e969c[_0xec82fd(0x18e)]+')'));})),_0x8ada6;}function _0x1ceb3b(_0x327cf2,_0x4c415a){const _0x121b0c=_0x3e36;var _0x428d20;const {defIds:_0x15e44f}=_0x4c415a;return!_0x15e44f||_0x15e44f[_0x121b0c(0x14d)]===0x0?_0x327cf2:_0x327cf2[_0x121b0c(0x1d2)]===_0x121b0c(0x137)&&((_0x428d20=_0x327cf2[_0x121b0c(0x1ab)])!=null&&_0x428d20[_0x121b0c(0x14d)])?{..._0x327cf2,'children':_0x327cf2['children'][_0x121b0c(0x134)](_0x3a7401=>typeof _0x3a7401[_0x121b0c(0x120)]['id']==_0x121b0c(0x173)&&_0x15e44f&&_0x15e44f['includes'](_0x3a7401[_0x121b0c(0x120)]['id'])?{..._0x3a7401,'attrs':{..._0x3a7401[_0x121b0c(0x120)],'id':_0x3a7401['attrs']['id']+_0x4c415a['idSuffix']}}:_0x3a7401)}:_0x327cf2;}function _0x202d02(){const _0x24fdb5=_0x3e36;return Math[_0x24fdb5(0x13a)]()[_0x24fdb5(0x1a2)](0x24)[_0x24fdb5(0x1ca)](0x2,0x8);}_0x46471f[_0x7360d4(0x1a3)]=_0x7360d4(0x193);const _0x164371={'tag':_0x7360d4(0x187),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x7360d4(0x147),'viewBox':_0x7360d4(0x1a4),'width':_0x7360d4(0x174),'height':_0x7360d4(0x174)},'children':[{'tag':_0x7360d4(0x200),'attrs':{'fill':_0x7360d4(0x192),'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':_0x7360d4(0x200),'attrs':{'fill':_0x7360d4(0x192),'d':_0x7360d4(0x1fa),'fillRule':_0x7360d4(0x1c1),'clipRule':_0x7360d4(0x1c1)}}]},_0x342eb9=_0x2af741[_0x7360d4(0x139)](function(_0x281935,_0x515bc8){const _0x395ddb=_0x7360d4;return _0x2af741[_0x395ddb(0x16d)](_0x46471f,Object['assign']({},_0x281935,{'id':_0x395ddb(0x1a1),'ref':_0x515bc8,'icon':_0x164371}));});_0x342eb9['displayName']=_0x7360d4(0x199);class _0x16957c extends _0x342837[_0x7360d4(0x1c3)]{constructor(){const _0x5df372=_0x7360d4;super(...arguments),_0x408b92(this,_0x5df372(0x181),new Set()),_0x408b92(this,_0x5df372(0x15e),new Set());}['registerSharedOperation'](_0x78c52b){const _0x58e555=_0x7360d4;return this['_sharedOperations'][_0x58e555(0x18f)](_0x78c52b),_0x342837[_0x58e555(0x14c)](()=>this['_sharedOperations'][_0x58e555(0x164)](_0x78c52b));}[_0x7360d4(0x1d3)](_0x3451b6){const _0x18b97d=_0x7360d4;return this['_reporters'][_0x18b97d(0x18f)](_0x3451b6),_0x342837[_0x18b97d(0x14c)](()=>this[_0x18b97d(0x15e)]['delete'](_0x3451b6));}[_0x7360d4(0x14b)](_0x46b391){const _0x36779d=_0x7360d4;return this['_sharedOperations'][_0x36779d(0x201)](_0x46b391);}[_0x7360d4(0x1d1)](_0x4585f4){const _0x68eaa2=_0x7360d4;return Array[_0x68eaa2(0x123)](this[_0x68eaa2(0x15e)])[_0x68eaa2(0x134)](_0x3f9410=>_0x3f9410(_0x4585f4));}}var _0x27689d=Object[_0x7360d4(0x140)],_0x5cb2ff=(_0xd444a5,_0x131b0e,_0x16ee90,_0x5b7807)=>{for(var _0x3c8b64=_0x5b7807>0x1?void 0x0:_0x5b7807?_0x27689d(_0x131b0e,_0x16ee90):_0x131b0e,_0x3629dd=_0xd444a5['length']-0x1,_0x265f1f;_0x3629dd>=0x0;_0x3629dd--)(_0x265f1f=_0xd444a5[_0x3629dd])&&(_0x3c8b64=_0x265f1f(_0x3c8b64)||_0x3c8b64);return _0x3c8b64;},_0x58bb4e=(_0x40d00c,_0x2c088f)=>(_0x3a63c4,_0x4cc526)=>_0x2c088f(_0x3a63c4,_0x4cc526,_0x40d00c);_0x1c5f91[_0x7360d4(0x1c0)]=class extends _0x342837[_0x7360d4(0x124)]{constructor(_0x49c171,_0x42f35e,_0x4bf9f8){const _0x4a1465=_0x7360d4;super(),_0x408b92(this,'_entities',new Map()),(this[_0x4a1465(0x19d)]=_0x49c171,this[_0x4a1465(0x128)]=_0x42f35e,this[_0x4a1465(0x136)]=_0x4bf9f8,this['_init']());}async[_0x7360d4(0x16a)](_0x22d998){const _0x5d8e39=_0x7360d4;return this[_0x5d8e39(0x19a)][_0x5d8e39(0x201)](_0x22d998)||await this[_0x5d8e39(0x1e1)](_0x22d998),this[_0x5d8e39(0x19a)][_0x5d8e39(0x12f)](_0x22d998);}[_0x7360d4(0x1eb)](_0x33c1b2){const _0x4670a1=_0x7360d4;var _0x147593;return(_0x147593=this['_entities'][_0x4670a1(0x12f)](_0x33c1b2))!=null?_0x147593:null;}[_0x7360d4(0x186)](){const _0x268e1b=_0x7360d4;this[_0x268e1b(0x19d)][_0x268e1b(0x160)](_0x342837[_0x268e1b(0x190)][_0x268e1b(0x194)])[_0x268e1b(0x1c9)](_0x392387[_0x268e1b(0x1f6)](this['dispose$']))[_0x268e1b(0x19e)](async _0x6d3cb6=>{const _0x561d47=_0x268e1b,_0x39cef5=_0x6d3cb6[_0x561d47(0x176)]();this[_0x561d47(0x19a)]['has'](_0x39cef5)||this[_0x561d47(0x1e1)](_0x39cef5);}),this[_0x268e1b(0x19d)][_0x268e1b(0x17c)](_0x342837[_0x268e1b(0x190)]['UNIVER_SHEET'])[_0x268e1b(0x1c9)](_0x392387[_0x268e1b(0x1f6)](this[_0x268e1b(0x1b2)]))[_0x268e1b(0x19e)](_0x4289dc=>{const _0xf113e4=_0x268e1b,_0x47b295=_0x4289dc['getUnitId'](),_0x5c3b24=this[_0xf113e4(0x19a)][_0xf113e4(0x12f)](_0x47b295);_0x5c3b24==null||_0x5c3b24['dispose']();});}async[_0x7360d4(0x1e1)](_0x34ed81){const _0x3e1ab3=_0x7360d4,_0x4b2b0a=await this[_0x3e1ab3(0x136)][_0x3e1ab3(0x1e4)](_0x34ed81),_0x215a47=this[_0x3e1ab3(0x128)][_0x3e1ab3(0x1b9)](_0x1c5f91[_0x3e1ab3(0x1ce)],_0x34ed81,_0x4b2b0a);return _0x215a47['init'](),this['_entities']['set'](_0x34ed81,_0x215a47),_0x215a47;}},_0x1c5f91[_0x7360d4(0x1c0)]=_0x5cb2ff([_0x58bb4e(0x0,_0x342837['IUniverInstanceService']),_0x58bb4e(0x1,_0x342837[_0x7360d4(0x1fe)](_0x342837['Injector'])),_0x58bb4e(0x2,_0x342837[_0x7360d4(0x1fe)](_0x4b3acb[_0x7360d4(0x1de)]))],_0x1c5f91[_0x7360d4(0x1c0)]);var _0x1aabba=(_0x10c688=>(_0x10c688[_0x7360d4(0x1a0)]=_0x7360d4(0x165),_0x10c688[_0x7360d4(0x203)]=_0x7360d4(0x148),_0x10c688['FOLLOWING']='following',_0x10c688[_0x7360d4(0x1cd)]=_0x7360d4(0x129),_0x10c688['PRESENTING']='presenting',_0x10c688))(_0x1aabba||{});const _0x383b2a=_0x7360d4(0x1f0),_0x460867=0xc8;_0x1c5f91['LiveShareCoordinator']=class extends _0x342837['RxDisposable']{constructor(_0x1172f0,_0x2e1f9e,_0xe4e0c0,_0x1cf4d6,_0x5d7b05){const _0x4e2739=_0x7360d4;super(),_0x408b92(this,_0x4e2739(0x1e9),new _0x5d360a[(_0x4e2739(0x185))]('idle')),_0x408b92(this,_0x4e2739(0x14f),this['_status$']['asObservable']()),_0x408b92(this,_0x4e2739(0x186),!0x1),_0x408b92(this,'_commandDisposable',null),_0x408b92(this,_0x4e2739(0x1e7),null),(this[_0x4e2739(0x19b)]=_0x1172f0,this[_0x4e2739(0x1a9)]=_0x2e1f9e,this[_0x4e2739(0x11f)]=_0xe4e0c0,this[_0x4e2739(0x127)]=_0x1cf4d6,this[_0x4e2739(0x196)]=_0x5d7b05);}get['_status'](){const _0xc2994a=_0x7360d4;return this[_0xc2994a(0x1e9)]['getValue']();}[_0x7360d4(0x13c)](){const _0x1b7585=_0x7360d4;var _0x187e45;(_0x187e45=this[_0x1b7585(0x15f)])==null||_0x187e45['dispose'](),this[_0x1b7585(0x1e9)][_0x1b7585(0x206)]('idle'),this[_0x1b7585(0x1e9)][_0x1b7585(0x207)]();}[_0x7360d4(0x191)](){const _0x419cc1=_0x7360d4;return this[_0x419cc1(0x11e)];}[_0x7360d4(0x183)](){const _0xfdb6ca=_0x7360d4;this[_0xfdb6ca(0x186)]||(this['_init']=!0x0,this[_0xfdb6ca(0x1a9)][_0xfdb6ca(0x1af)][_0xfdb6ca(0x1c9)](_0x392387[_0xfdb6ca(0x1f6)](this['dispose$']))['subscribe'](_0x3f4f0c=>{const _0xc566c0=_0xfdb6ca;switch(_0x3f4f0c){case _0x4b3acb[_0xc566c0(0x17d)][_0xc566c0(0x1a0)]:this[_0xc566c0(0x142)]();break;case _0x4b3acb[_0xc566c0(0x17d)]['ONLINE']:this[_0xc566c0(0x180)]();break;}}),this[_0xfdb6ca(0x1a9)]['event$'][_0xfdb6ca(0x1c9)](_0x392387[_0xfdb6ca(0x1f6)](this[_0xfdb6ca(0x1b2)]))[_0xfdb6ca(0x19e)](_0xbf902d=>{const _0x502acd=_0xfdb6ca,{eventID:_0x43d417}=_0xbf902d;switch(_0x43d417){case _0x2fb4e6[_0x502acd(0x1bd)][_0x502acd(0x1d4)]:this[_0x502acd(0x12d)](_0xbf902d);break;case _0x2fb4e6[_0x502acd(0x1bd)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0xbf902d);break;case _0x2fb4e6[_0x502acd(0x1bd)]['LIVESHARE_TERMINATE']:this[_0x502acd(0x1bc)]();break;case _0x2fb4e6[_0x502acd(0x1bd)][_0x502acd(0x1b8)]:this[_0x502acd(0x1bb)](_0xbf902d);break;}}));}[_0x7360d4(0x19f)](){const _0x53652f=_0x7360d4;this[_0x53652f(0x1a9)][_0x53652f(0x1da)]({'eventID':_0x2fb4e6[_0x53652f(0x1bd)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x53652f(0x19b)],'userID':this[_0x53652f(0x1a9)][_0x53652f(0x150)]()}},this[_0x53652f(0x19b)]);}[_0x7360d4(0x1be)](){const _0x3175c0=_0x7360d4;this['_status']===_0x3175c0(0x1c2)&&(this[_0x3175c0(0x1e9)][_0x3175c0(0x206)](_0x3175c0(0x148)),this[_0x3175c0(0x1a9)][_0x3175c0(0x1da)]({'eventID':_0x2fb4e6[_0x3175c0(0x1bd)][_0x3175c0(0x1c6)],'data':{'unitID':this[_0x3175c0(0x19b)]}},this[_0x3175c0(0x19b)]));}[_0x7360d4(0x1c7)](){const _0xc13be2=_0x7360d4;this[_0xc13be2(0x11e)]===_0xc13be2(0x129)&&(this[_0xc13be2(0x1e9)][_0xc13be2(0x206)](_0xc13be2(0x1e0)),this[_0xc13be2(0x204)]());}[_0x7360d4(0x168)](){const _0x35ca0c=_0x7360d4;this[_0x35ca0c(0x11e)]===_0x35ca0c(0x1e0)&&this['_stopFollowing']();}[_0x7360d4(0x12d)](_0x313768){const _0x172bd5=_0x7360d4,{presenter:_0x5a709d}=_0x313768[_0x172bd5(0x1b1)],_0x4678e0=this['_collabSession'][_0x172bd5(0x150)]();this[_0x172bd5(0x1e7)]=_0x5a709d,_0x5a709d===_0x4678e0?(this[_0x172bd5(0x1d5)](),this[_0x172bd5(0x14a)]()):this[_0x172bd5(0x11e)]!=='not-following'&&(this[_0x172bd5(0x1bf)](),this['_startFollowing']());}[_0x7360d4(0x138)](){const _0x1a435f=_0x7360d4,_0x411b65={'eventID':_0x2fb4e6['CollaborationEvent'][_0x1a435f(0x126)]};this['_collabSession'][_0x1a435f(0x1da)](_0x411b65,this[_0x1a435f(0x19b)]);}[_0x7360d4(0x1bc)](){const _0x13c559=_0x7360d4;this[_0x13c559(0x1e7)]=null,this[_0x13c559(0x11e)]!==_0x13c559(0x1c2)&&this[_0x13c559(0x1f5)]();}[_0x7360d4(0x1bb)](_0xefc4a5){const _0x4a8a56=_0x7360d4;if(this['_status']==='following'&&this[_0x4a8a56(0x1e7)]===_0xefc4a5[_0x4a8a56(0x1b1)][_0x4a8a56(0x158)]){const _0x14aa64=_0x2fb4e6['parseProtocolChangeset'](_0xefc4a5[_0x4a8a56(0x1b1)])[_0x4a8a56(0x1b5)][_0x4a8a56(0x1cf)]()[_0x4a8a56(0x1a7)](_0x253fbc=>_0x253fbc['id']===_0x22bb53[_0x4a8a56(0x1ec)]['id']);if(_0x14aa64){const _0x567441=_0x14aa64[_0x4a8a56(0x15b)][_0x4a8a56(0x20b)],_0x26b94d=_0x14aa64['params']['sheet']['id'];setTimeout(()=>{const _0x3019ae=_0x4a8a56;this[_0x3019ae(0x196)][_0x3019ae(0x13e)](_0x22bb53[_0x3019ae(0x1a5)]['id'],{'unitId':_0x567441,'subUnitId':_0x26b94d},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x5ed318=_0x7360d4;this[_0x5ed318(0x1e9)][_0x5ed318(0x206)](_0x5ed318(0x1c2));const _0xe6516=new Map(),_0x2b463d=this['_commandDisposable']=new _0x342837['DisposableCollection']();_0x2b463d['add'](_0x342837[_0x5ed318(0x14c)](()=>{const _0x3988ee=_0x5ed318;_0xe6516[_0x3988ee(0x178)](_0x3caa4c=>_0x3caa4c['complete']()),_0xe6516[_0x3988ee(0x125)]();})),_0x2b463d[_0x5ed318(0x18f)](this['_commandService'][_0x5ed318(0x1f7)](_0x378f2d=>{const _0x3eea8e=_0x5ed318;var _0x5a4c6d;if(_0x378f2d[_0x3eea8e(0x1f3)]!==_0x342837[_0x3eea8e(0x1c8)][_0x3eea8e(0x1ed)]||!this[_0x3eea8e(0x127)][_0x3eea8e(0x14b)](_0x378f2d['id']))return;const {id:_0x8b8179}=_0x378f2d;let _0x13d4ae;_0xe6516[_0x3eea8e(0x201)](_0x8b8179)?_0x13d4ae=_0xe6516[_0x3eea8e(0x12f)](_0x8b8179):(_0x13d4ae=new _0x5d360a['Subject'](),_0xe6516[_0x3eea8e(0x146)](_0x8b8179,_0x13d4ae),_0x13d4ae['pipe'](_0x392387[_0x3eea8e(0x121)]((_0x5a4c6d=this[_0x3eea8e(0x11f)][_0x3eea8e(0x1e5)](_0x383b2a))!=null?_0x5a4c6d:_0x460867,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3eea8e(0x19e)](_0xe247d7=>{const _0x38c256=_0x3eea8e;this[_0x38c256(0x1a9)][_0x38c256(0x1da)]({'eventID':_0x2fb4e6[_0x38c256(0x1bd)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x38c256(0x19b)],'operations':{[_0xe247d7['id']]:{'id':_0xe247d7['id'],'params':JSON[_0x38c256(0x12b)](_0xe247d7[_0x38c256(0x15b)])}}}},this[_0x38c256(0x19b)]);})),_0x13d4ae[_0x3eea8e(0x206)](_0x378f2d);})),this[_0x5ed318(0x127)]['getInitialStates'](this[_0x5ed318(0x19b)])[_0x5ed318(0x178)](_0x3c10d3=>this[_0x5ed318(0x1a9)][_0x5ed318(0x1da)]({'eventID':_0x2fb4e6['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5ed318(0x19b)],'operations':{[_0x3c10d3['id']]:{'id':_0x3c10d3['id'],'params':JSON[_0x5ed318(0x12b)](_0x3c10d3[_0x5ed318(0x15b)])}}}},this[_0x5ed318(0x19b)]));}[_0x7360d4(0x1bf)](){const _0xd09dce=_0x7360d4;var _0x3f9f1d;this[_0xd09dce(0x1e9)][_0xd09dce(0x206)](_0xd09dce(0x148)),(_0x3f9f1d=this[_0xd09dce(0x15f)])==null||_0x3f9f1d[_0xd09dce(0x13c)](),this['_commandDisposable']=null;}[_0x7360d4(0x204)](){const _0x4f6042=_0x7360d4;var _0x5f482b;(_0x5f482b=this[_0x4f6042(0x15f)])==null||_0x5f482b['dispose'](),this[_0x4f6042(0x1e9)][_0x4f6042(0x206)](_0x4f6042(0x1e0));}[_0x7360d4(0x1f5)](){const _0x4d724e=_0x7360d4;var _0x36f552;this[_0x4d724e(0x1e9)]['next'](_0x4d724e(0x148)),(_0x36f552=this['_commandDisposable'])==null||_0x36f552[_0x4d724e(0x13c)](),this[_0x4d724e(0x15f)]=null;}[_0x7360d4(0x1d5)](){const _0x33f316=_0x7360d4;var _0x32f0c4;this[_0x33f316(0x1e9)][_0x33f316(0x206)]('not-following'),(_0x32f0c4=this[_0x33f316(0x15f)])==null||_0x32f0c4[_0x33f316(0x13c)]();}[_0x7360d4(0x1d7)](_0x2f7dfa){const _0x51065b=_0x7360d4;if([_0x51065b(0x1c2),_0x51065b(0x129),_0x51065b(0x165)][_0x51065b(0x1fc)](this['_status'])||!_0x2f7dfa['data'][_0x51065b(0x132)]||_0x2f7dfa['data']['presenter']===this[_0x51065b(0x1a9)]['getMemberID']())return;this[_0x51065b(0x11e)]===_0x51065b(0x148)&&this[_0x51065b(0x204)]();const _0x3b24db=_0x2f7dfa[_0x51065b(0x1b1)][_0x51065b(0x198)];Object['values'](_0x3b24db)[_0x51065b(0x178)](_0x52c6f0=>{const _0x193ee1=_0x51065b;this[_0x193ee1(0x196)][_0x193ee1(0x13e)](_0x52c6f0['id'],_0x52c6f0['params']?JSON[_0x193ee1(0x197)](_0x52c6f0[_0x193ee1(0x15b)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x577cb2=_0x7360d4;var _0x211f75;this[_0x577cb2(0x1e9)][_0x577cb2(0x206)](_0x577cb2(0x165)),(_0x211f75=this[_0x577cb2(0x15f)])==null||_0x211f75['dispose']();}[_0x7360d4(0x180)](){const _0x4dc37b=_0x7360d4;this[_0x4dc37b(0x1e9)][_0x4dc37b(0x206)]('idle'),this[_0x4dc37b(0x138)]();}},_0x1c5f91['LiveShareCoordinator']=_0x5cb2ff([_0x58bb4e(0x2,_0x342837[_0x7360d4(0x13f)]),_0x58bb4e(0x3,_0x342837[_0x7360d4(0x1fe)](_0x16957c)),_0x58bb4e(0x4,_0x342837[_0x7360d4(0x195)])],_0x1c5f91['LiveShareCoordinator']);function _0x245629(){const _0x58a902=_0x7360d4,_0x4c828a=_0x20cf75[_0x58a902(0x17e)](_0x1c5f91['LiveShareController']),_0xc9d43f=_0x20cf75[_0x58a902(0x17e)](_0x342837['IUniverInstanceService']),_0x7d41da=_0x20cf75[_0x58a902(0x1ea)](()=>_0xc9d43f[_0x58a902(0x143)](_0x342837[_0x58a902(0x190)][_0x58a902(0x194)]),void 0x0,!0x1,[]),[_0x1be1b1,_0x2d6654]=_0x2af741[_0x58a902(0x184)](null),[_0x7fe31b,_0x3fe9f3]=_0x2af741[_0x58a902(0x184)](_0x1aabba[_0x58a902(0x203)]),_0x394adb=_0x2af741[_0x58a902(0x17f)](null);return _0x2af741['useEffect'](()=>(_0x7d41da&&_0x4c828a[_0x58a902(0x16a)](_0x7d41da[_0x58a902(0x176)]())[_0x58a902(0x1b7)](_0x29e3d7=>{const _0x4be241=_0x58a902;_0x2d6654(_0x29e3d7),_0x394adb[_0x4be241(0x154)]=_0x29e3d7['status$']['subscribe'](_0xdd020=>{_0x3fe9f3(_0xdd020);});}),()=>{const _0x5e89ad=_0x58a902;var _0x14048e;(_0x14048e=_0x394adb[_0x5e89ad(0x154)])==null||_0x14048e['unsubscribe'](),_0x394adb[_0x5e89ad(0x154)]=null;}),[_0x7d41da,_0x4c828a]),_0x1be1b1?_0x5d3518[_0x58a902(0x1ba)](_0x19382c[_0x58a902(0x1b6)],{'align':_0x58a902(0x1dd),'disabled':_0x7fe31b===_0x1aabba[_0x58a902(0x1a0)],'className':_0x58a902(0x1a8),'overlay':_0x5d3518[_0x58a902(0x1ba)](_0xe21a01,{'status':_0x7fe31b,'coordinator':_0x1be1b1}),'children':_0x5d3518[_0x58a902(0x1ba)]('button',{'className':_0x19382c[_0x58a902(0x1aa)](_0x58a902(0x1f1),{'univer-cursor-not-allowed':_0x7fe31b===_0x1aabba['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x7fe31b!==_0x1aabba[_0x58a902(0x1a0)]}),'type':'button','children':_0x5d3518[_0x58a902(0x1ba)](_0x342eb9,{'className':_0x58a902(0x1ff)})})}):null;}function _0xe21a01(_0x44a76f){const _0x7169b5=_0x7360d4,{status:_0x340aa1,coordinator:_0x48cb5b}=_0x44a76f;switch(_0x340aa1){case _0x1aabba[_0x7169b5(0x203)]:return _0x5d3518[_0x7169b5(0x1ba)](_0x3b695d,{'coordinator':_0x48cb5b});case _0x1aabba[_0x7169b5(0x13d)]:return _0x5d3518[_0x7169b5(0x1ba)](_0x3b871b,{'coordinator':_0x48cb5b});case _0x1aabba[_0x7169b5(0x1cd)]:return _0x5d3518[_0x7169b5(0x1ba)](_0x107415,{'coordinator':_0x48cb5b});case _0x1aabba[_0x7169b5(0x1a0)]:return _0x5d3518[_0x7169b5(0x1ba)](_0x31f1fa,{});case _0x1aabba[_0x7169b5(0x13b)]:return _0x5d3518['jsx'](_0x3218bd,{'coordinator':_0x48cb5b});default:return null;}}function _0x3b695d(_0x42efa2){const _0x5498d2=_0x7360d4,{coordinator:_0x265161}=_0x42efa2;return _0x5d3518[_0x5498d2(0x166)](_0x5d3518[_0x5498d2(0x12a)],{'children':[_0x5d3518[_0x5498d2(0x1ba)](_0x5498d2(0x188),{'className':_0x5498d2(0x149),'children':_0x5498d2(0x161)}),_0x5d3518[_0x5498d2(0x1ba)](_0x19382c[_0x5498d2(0x1d6)],{'onClick':()=>_0x265161[_0x5498d2(0x19f)](),'children':_0x5498d2(0x1d8)})]});}function _0x3b871b(_0x18c67d){const _0x182919=_0x7360d4,{coordinator:_0x55972c}=_0x18c67d;return _0x5d3518[_0x182919(0x166)](_0x5d3518[_0x182919(0x12a)],{'children':[_0x5d3518[_0x182919(0x1ba)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x5d3518[_0x182919(0x1ba)](_0x19382c['Button'],{'onClick':()=>_0x55972c[_0x182919(0x168)](),'children':_0x182919(0x18a)})]});}function _0x107415(_0x12c7d0){const _0x1f3ea3=_0x7360d4,{coordinator:_0x4a479b}=_0x12c7d0;return _0x5d3518[_0x1f3ea3(0x166)](_0x5d3518['Fragment'],{'children':[_0x5d3518['jsx'](_0x1f3ea3(0x188),{'className':_0x1f3ea3(0x149),'children':_0x1f3ea3(0x133)}),_0x5d3518['jsx'](_0x19382c[_0x1f3ea3(0x1d6)],{'variant':_0x1f3ea3(0x141),'onClick':()=>_0x4a479b[_0x1f3ea3(0x1c7)](),'children':_0x1f3ea3(0x1db)})]});}function _0x3218bd(_0x51e777){const _0x506f50=_0x7360d4,{coordinator:_0x30ba29}=_0x51e777;return _0x5d3518['jsxs'](_0x5d3518[_0x506f50(0x12a)],{'children':[_0x5d3518[_0x506f50(0x1ba)](_0x506f50(0x188),{'className':_0x506f50(0x149),'children':_0x506f50(0x1fb)}),_0x5d3518[_0x506f50(0x1ba)](_0x19382c[_0x506f50(0x1d6)],{'variant':_0x506f50(0x1f4),'onClick':()=>_0x30ba29[_0x506f50(0x1be)](),'children':_0x506f50(0x202)})]});}function _0x31f1fa(){const _0x55acb2=_0x7360d4;return _0x5d3518[_0x55acb2(0x1ba)](_0x5d3518[_0x55acb2(0x12a)],{'children':_0x55acb2(0x162)});}var _0x1e559a=Object[_0x7360d4(0x140)],_0x268bf6=(_0x95e674,_0x5f1d04,_0x17ca30,_0x232611)=>{const _0x12b519=_0x7360d4;for(var _0x1fc10f=_0x232611>0x1?void 0x0:_0x232611?_0x1e559a(_0x5f1d04,_0x17ca30):_0x5f1d04,_0x2aa0e8=_0x95e674[_0x12b519(0x14d)]-0x1,_0x376fb1;_0x2aa0e8>=0x0;_0x2aa0e8--)(_0x376fb1=_0x95e674[_0x2aa0e8])&&(_0x1fc10f=_0x376fb1(_0x1fc10f)||_0x1fc10f);return _0x1fc10f;},_0x186dc6=(_0xa80f06,_0x17b0c4)=>(_0x567a16,_0x5a4e2a)=>_0x17b0c4(_0x567a16,_0x5a4e2a,_0xa80f06);_0x1c5f91[_0x7360d4(0x177)]=class extends _0x342837[_0x7360d4(0x1c3)]{constructor(_0x4c2d86,_0x16a9a0){const _0x1ab2c5=_0x7360d4;super(),this[_0x1ab2c5(0x128)]=_0x4c2d86,this[_0x1ab2c5(0x208)]=_0x16a9a0,this[_0x1ab2c5(0x209)]();}['_mountLiveShare'](){const _0x312966=_0x7360d4;this[_0x312966(0x12e)](this[_0x312966(0x208)]['registerComponent'](_0x20cf75[_0x312966(0x167)][_0x312966(0x159)],()=>_0x20cf75[_0x312966(0x179)](_0x245629,this[_0x312966(0x128)])));}},_0x1c5f91[_0x7360d4(0x177)]=_0x268bf6([_0x186dc6(0x0,_0x342837['Inject'](_0x342837['Injector'])),_0x186dc6(0x1,_0x20cf75[_0x7360d4(0x1b0)])],_0x1c5f91['DesktopLiveShareController']);const _0x273c6a=_0x7360d4(0x1d0),_0x371327={};var _0x2058a4=Object[_0x7360d4(0x140)],_0x1238be=(_0x1be501,_0x9124de,_0x41b7e1,_0x3b9ed0)=>{for(var _0x125c1e=_0x3b9ed0>0x1?void 0x0:_0x3b9ed0?_0x2058a4(_0x9124de,_0x41b7e1):_0x9124de,_0x5fbf03=_0x1be501['length']-0x1,_0x45aa3d;_0x5fbf03>=0x0;_0x5fbf03--)(_0x45aa3d=_0x1be501[_0x5fbf03])&&(_0x125c1e=_0x45aa3d(_0x125c1e)||_0x125c1e);return _0x125c1e;},_0x284e46=(_0x219df5,_0xae8d1f)=>(_0x58d9ee,_0x42d115)=>_0xae8d1f(_0x58d9ee,_0x42d115,_0x219df5);let _0x2fcbb6=class extends _0x342837[_0x7360d4(0x1c3)]{constructor(_0x535405){const _0x830a94=_0x7360d4;super(),this[_0x830a94(0x127)]=_0x535405,this[_0x830a94(0x186)]();}['_init'](){const _0xb52c97=_0x7360d4;[_0x51dae5['SetZoomRatioOperation']['id'],_0x51dae5[_0xb52c97(0x1ad)]['id'],_0x22bb53[_0xb52c97(0x1a5)]['id']][_0xb52c97(0x178)](_0x20c02b=>{const _0x190382=_0xb52c97;this[_0x190382(0x12e)](this['_liveShareService'][_0x190382(0x1b3)](_0x20c02b));});}};_0x2fcbb6=_0x1238be([_0x284e46(0x0,_0x342837[_0x7360d4(0x1fe)](_0x16957c))],_0x2fcbb6);var _0x49b202=Object[_0x7360d4(0x18c)],_0x1281a5=Object[_0x7360d4(0x140)],_0x5eb755=(_0x20d4b0,_0x358fa2,_0x5bfdfe)=>_0x358fa2 in _0x20d4b0?_0x49b202(_0x20d4b0,_0x358fa2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bfdfe}):_0x20d4b0[_0x358fa2]=_0x5bfdfe,_0x1ff269=(_0x3bad10,_0x11faa4,_0x511b3a,_0x26e6ad)=>{for(var _0x298545=_0x26e6ad>0x1?void 0x0:_0x26e6ad?_0x1281a5(_0x11faa4,_0x511b3a):_0x11faa4,_0x2873da=_0x3bad10['length']-0x1,_0x1e25f5;_0x2873da>=0x0;_0x2873da--)(_0x1e25f5=_0x3bad10[_0x2873da])&&(_0x298545=_0x1e25f5(_0x298545)||_0x298545);return _0x298545;},_0x4afb6f=(_0xc79ea5,_0x455356)=>(_0x564f04,_0x1c40cf)=>_0x455356(_0x564f04,_0x1c40cf,_0xc79ea5),_0xf45197=(_0xb1a850,_0x20387c,_0x33cd70)=>_0x5eb755(_0xb1a850,typeof _0x20387c!=_0x7360d4(0x171)?_0x20387c+'':_0x20387c,_0x33cd70);const _0x5ac992=_0x7360d4(0x1fd);_0x1c5f91[_0x7360d4(0x15c)]=class extends _0x342837[_0x7360d4(0x135)]{constructor(_0x2f9a19=_0x371327,_0x37d1a4,_0x470589){const _0xb665d4=_0x7360d4;super(),this[_0xb665d4(0x14e)]=_0x2f9a19,this['_injector']=_0x37d1a4,this[_0xb665d4(0x11f)]=_0x470589;const {..._0x49e5fc}=_0x342837[_0xb665d4(0x1f9)]({},_0x371327,this[_0xb665d4(0x14e)]);this[_0xb665d4(0x11f)]['setConfig'](_0x273c6a,_0x49e5fc);}['onStarting'](){const _0x31f021=_0x7360d4;_0x342837[_0x31f021(0x175)](this[_0x31f021(0x128)],_0x342837[_0x31f021(0x153)]([[_0x16957c],[_0x1c5f91[_0x31f021(0x1c0)]],[_0x2fcbb6],[_0x1c5f91['DesktopLiveShareController']]],this[_0x31f021(0x14e)][_0x31f021(0x172)])),_0x342837['touchDependencies'](this[_0x31f021(0x128)],[[_0x2fcbb6]]);}['onRendered'](){const _0x132b49=_0x7360d4;_0x342837[_0x132b49(0x16c)](this['_injector'],[[_0x1c5f91[_0x132b49(0x177)]]]);}},_0xf45197(_0x1c5f91[_0x7360d4(0x15c)],'type',_0x342837['UniverInstanceType'][_0x7360d4(0x1e2)]),_0xf45197(_0x1c5f91[_0x7360d4(0x15c)],_0x7360d4(0x17a),_0x5ac992),_0x1c5f91['UniverLiveSharePlugin']=_0x1ff269([_0x342837['DependentOn'](_0x4b3acb[_0x7360d4(0x1ee)]),_0x4afb6f(0x1,_0x342837[_0x7360d4(0x1fe)](_0x342837[_0x7360d4(0x157)])),_0x4afb6f(0x2,_0x342837[_0x7360d4(0x13f)])],_0x1c5f91[_0x7360d4(0x15c)]),_0x1c5f91[_0x7360d4(0x1cb)]=_0x245629,_0x1c5f91[_0x7360d4(0x1c4)]=_0x16957c,_0x1c5f91[_0x7360d4(0x189)]=_0x1aabba,Object[_0x7360d4(0x18c)](_0x1c5f91,Symbol[_0x7360d4(0x1ef)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.4-insiders.
|
|
3
|
+
"version": "0.12.4-insiders.20251213-692494c",
|
|
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.
|
|
61
|
-
"@univerjs-pro/collaboration-client": "0.12.4-insiders.
|
|
62
|
-
"@univerjs/core": "0.12.4-insiders.
|
|
63
|
-
"@univerjs/design": "0.12.4-insiders.
|
|
64
|
-
"@univerjs/sheets": "0.12.4-insiders.
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/engine-render": "0.12.4-insiders.
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.4-insiders.20251213-692494c",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.4-insiders.20251213-692494c",
|
|
62
|
+
"@univerjs/core": "0.12.4-insiders.20251213-692494c",
|
|
63
|
+
"@univerjs/design": "0.12.4-insiders.20251213-692494c",
|
|
64
|
+
"@univerjs/sheets-ui": "0.12.4-insiders.20251213-692494c",
|
|
65
|
+
"@univerjs/ui": "0.12.4-insiders.20251213-692494c",
|
|
66
|
+
"@univerjs/sheets": "0.12.4-insiders.20251213-692494c",
|
|
67
|
+
"@univerjs/engine-render": "0.12.4-insiders.20251213-692494c"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"rxjs": "7.8.2",
|
|
73
73
|
"tailwindcss": "^3.4.17",
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
|
-
"vite": "^7.2.
|
|
75
|
+
"vite": "^7.2.7",
|
|
76
76
|
"vitest": "^4.0.15",
|
|
77
|
-
"@univerjs
|
|
78
|
-
"@univerjs/
|
|
77
|
+
"@univerjs/protocol": "0.1.47",
|
|
78
|
+
"@univerjs-infra/shared": "0.12.4"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|