@univerjs-pro/live-share 0.13.0-insiders.20251215-64041bb → 0.13.0-insiders.20251218-2062647
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 +9 -9
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x42524b=_0x48a7;(function(_0x49ec0d,_0xb28101){const _0x251198=_0x48a7,_0x2fc93c=_0x49ec0d();while(!![]){try{const _0x24343b=parseInt(_0x251198(0x1c1))/0x1+-parseInt(_0x251198(0x1af))/0x2+-parseInt(_0x251198(0x1b5))/0x3+-parseInt(_0x251198(0x1c8))/0x4+parseInt(_0x251198(0x1ab))/0x5+-parseInt(_0x251198(0x1b9))/0x6+parseInt(_0x251198(0x1be))/0x7;if(_0x24343b===_0xb28101)break;else _0x2fc93c['push'](_0x2fc93c['shift']());}catch(_0x30146e){_0x2fc93c['push'](_0x2fc93c['shift']());}}}(_0x7657,0xdb28c));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');function _0x48a7(_0x1dbd4d,_0xfe7242){_0x1dbd4d=_0x1dbd4d-0x1aa;const _0x76579f=_0x7657();let _0x48a7d4=_0x76579f[_0x1dbd4d];return _0x48a7d4;}class w extends d['FRange']{[_0x42524b(0x1ca)](_0x15c1a2,_0x2688b1,_0x47ea04,_0x517675,_0x3bf302){const _0x15b76b=_0x42524b,_0xf78be=_0x15c1a2[_0x15b76b(0x1c2)](n[_0x15b76b(0x1c4)]),_0x448897=_0x15c1a2[_0x15b76b(0x1c2)](g['IRenderManagerService']),_0x3b759e=_0x2688b1['getUnitId'](),_0x104e3c=_0x2688b1['getActiveSheet'](),_0x263ad1=_0xf78be[_0x15b76b(0x1bb)](_0x3b759e);(_0x263ad1==null?void 0x0:_0x263ad1[_0x15b76b(0x1b3)]())!==n['LiveShareStatus']['PRESENTING']||(_0x47ea04[_0x15b76b(0x1cb)]()!==_0x104e3c[_0x15b76b(0x1cb)]()&&this[_0x15b76b(0x1c9)]['executeCommand'](u[_0x15b76b(0x1b8)]['id'],{'unitId':_0x3b759e,'subUnitId':_0x47ea04[_0x15b76b(0x1cb)]()}),!_0x448897['getRenderById'](_0x3b759e))||_0x3bf302[_0x15b76b(0x1c5)](f[_0x15b76b(0x1bc)]['id'],{'unitId':_0x2688b1[_0x15b76b(0x1c0)](),'sheetId':_0x47ea04[_0x15b76b(0x1cb)](),'sheetViewStartRow':_0x517675['startRow'],'sheetViewStartColumn':_0x517675['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x42524b(0x1bf)]['extend'](w);class C extends a[_0x42524b(0x1c3)]{[_0x42524b(0x1ae)](){const _0x375ee8=_0x42524b;var _0x33ed5b,_0x33295b;const _0x53579a=this['_injector']['get'](n[_0x375ee8(0x1c4)]),_0x4d60d9=(_0x33ed5b=this[_0x375ee8(0x1aa)]())==null?void 0x0:_0x33ed5b[_0x375ee8(0x1ac)]();if(!_0x4d60d9)throw new Error(_0x375ee8(0x1ad));const _0x4dcb34=_0x53579a['getLiveShareCoordinatorSync'](_0x4d60d9);return(_0x33295b=_0x4dcb34==null?void 0x0:_0x4dcb34[_0x375ee8(0x1b3)]())!=null?_0x33295b:n['LiveShareStatus']['IDLE'];}[_0x42524b(0x1c6)](){const _0x2829cf=_0x42524b;var _0x38c0ef;const _0x243f9b=this[_0x2829cf(0x1b4)][_0x2829cf(0x1c2)](n[_0x2829cf(0x1c4)]),_0x2a04e4=(_0x38c0ef=this['getActiveWorkbook']())==null?void 0x0:_0x38c0ef[_0x2829cf(0x1ac)]();if(!_0x2a04e4)throw new Error(_0x2829cf(0x1ad));const _0x52ed25=_0x243f9b[_0x2829cf(0x1bb)](_0x2a04e4);if(!_0x52ed25)throw new Error(_0x2829cf(0x1b0));_0x52ed25[_0x2829cf(0x1c6)]();}[_0x42524b(0x1bd)](){const _0x2fae0f=_0x42524b;var _0x46ba7a;const _0x56f394=this[_0x2fae0f(0x1b4)][_0x2fae0f(0x1c2)](n[_0x2fae0f(0x1c4)]),_0x53350b=(_0x46ba7a=this[_0x2fae0f(0x1aa)]())==null?void 0x0:_0x46ba7a[_0x2fae0f(0x1ac)]();if(!_0x53350b)throw new Error(_0x2fae0f(0x1ad));const _0x44019c=_0x56f394[_0x2fae0f(0x1bb)](_0x53350b);if(!_0x44019c)throw new Error(_0x2fae0f(0x1b0));_0x44019c[_0x2fae0f(0x1bd)]();}[_0x42524b(0x1b7)](){const _0x17bf94=_0x42524b;var _0x1f82d6;const _0x48689f=this[_0x17bf94(0x1b4)][_0x17bf94(0x1c2)](n['LiveShareController']),_0x4a2c7b=(_0x1f82d6=this[_0x17bf94(0x1aa)]())==null?void 0x0:_0x1f82d6[_0x17bf94(0x1ac)]();if(!_0x4a2c7b)throw new Error('No\x20active\x20workbook\x20found.');const _0x201cd0=_0x48689f[_0x17bf94(0x1bb)](_0x4a2c7b);if(!_0x201cd0)throw new Error(_0x17bf94(0x1b0));_0x201cd0[_0x17bf94(0x1b6)]();}[_0x42524b(0x1ba)](){const _0x3433bb=_0x42524b;var _0xb34256;const _0x400f71=this[_0x3433bb(0x1b4)][_0x3433bb(0x1c2)](n[_0x3433bb(0x1c4)]),_0x446ba1=(_0xb34256=this[_0x3433bb(0x1aa)]())==null?void 0x0:_0xb34256[_0x3433bb(0x1ac)]();if(!_0x446ba1)throw new Error(_0x3433bb(0x1ad));const _0x2a4e53=_0x400f71[_0x3433bb(0x1bb)](_0x446ba1);if(!_0x2a4e53)throw new Error(_0x3433bb(0x1b0));_0x2a4e53[_0x3433bb(0x1ba)]();}}a[_0x42524b(0x1c3)][_0x42524b(0x1b2)](C);class L extends a[_0x42524b(0x1b1)]{get['LiveShareStatusEnum'](){const _0x2e6415=_0x42524b;return n[_0x2e6415(0x1c7)];}}function _0x7657(){const _0x45cb47=['FUniver','LiveShareController','syncExecuteCommand','startFollowing','LiveShareStatus','5542632mJImAR','_commandService','_initialize','getSheetId','getActiveWorkbook','5069735DiuBzX','getId','No\x20active\x20workbook\x20found.','getLiveShareStatus','2993828qBemNW','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','FEnum','extend','getStatus','_injector','2299536oymtSD','tryStartPresenting','startPresenting','SetWorksheetActiveOperation','230550KcKBkM','stopPresenting','getLiveShareCoordinatorSync','SetScrollOperation','stopFollowing','24719520SXBelf','FRange','getUnitId','39878WyAPtQ','get'];_0x7657=function(){return _0x45cb47;};return _0x7657();}a[_0x42524b(0x1b1)]['extend'](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x146de2=_0x4aaf;function _0x4aaf(_0x5d3476,_0x35ad77){_0x5d3476=_0x5d3476-0x6d;const _0x5376c2=_0x5376();let _0x4aafa9=_0x5376c2[_0x5d3476];return _0x4aafa9;}(function(_0x31fb83,_0x5ee9f6){const _0x483a53=_0x4aaf,_0x52e21d=_0x31fb83();while(!![]){try{const _0x521076=parseInt(_0x483a53(0x121))/0x1*(parseInt(_0x483a53(0x11e))/0x2)+parseInt(_0x483a53(0xd4))/0x3+parseInt(_0x483a53(0x10e))/0x4*(parseInt(_0x483a53(0x10d))/0x5)+-parseInt(_0x483a53(0xcd))/0x6*(-parseInt(_0x483a53(0x73))/0x7)+-parseInt(_0x483a53(0x6d))/0x8+-parseInt(_0x483a53(0xcf))/0x9*(parseInt(_0x483a53(0x8d))/0xa)+-parseInt(_0x483a53(0x127))/0xb;if(_0x521076===_0x5ee9f6)break;else _0x52e21d['push'](_0x52e21d['shift']());}catch(_0x55e1ce){_0x52e21d['push'](_0x52e21d['shift']());}}}(_0x5376,0xf105c));var T=Object[_0x146de2(0x76)],U=(_0x52f6e9,_0x366f85,_0x284485)=>_0x366f85 in _0x52f6e9?T(_0x52f6e9,_0x366f85,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x284485}):_0x52f6e9[_0x366f85]=_0x284485,_=(_0x384ddf,_0x531e8b,_0x181d5f)=>U(_0x384ddf,typeof _0x531e8b!=_0x146de2(0xe0)?_0x531e8b+'':_0x531e8b,_0x181d5f);Object[_0x146de2(0x76)](exports,Symbol[_0x146de2(0xd3)],{'value':_0x146de2(0x104)});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:_0x34e755,..._0x4da669}){const _0x42ccd7=_0x146de2,{icon:_0x5d7d04,id:_0x467310,className:_0x35eba6,extend:_0xc968c0,..._0x220fa5}=_0x4da669,_0x146e81=(_0x42ccd7(0xc7)+_0x467310+'\x20'+(_0x35eba6||''))[_0x42ccd7(0x7d)](),_0x5e3b60=v[_0x42ccd7(0x75)]('_'+H());return j(_0x5d7d04,''+_0x467310,{'defIds':_0x5d7d04[_0x42ccd7(0xb4)],'idSuffix':_0x5e3b60[_0x42ccd7(0x106)]},{'ref':_0x34e755,'className':_0x146e81,..._0x220fa5},_0xc968c0);}function j(_0x224df1,_0x3a3aeb,_0x38e188,_0xebc979,_0x4a8308){const _0x1396c1=_0x146de2;return v['createElement'](_0x224df1[_0x1396c1(0x9a)],{'key':_0x3a3aeb,...y(_0x224df1,_0x38e188,_0x4a8308),..._0xebc979},(F(_0x224df1,_0x38e188)['children']||[])[_0x1396c1(0x117)]((_0x148bb8,_0x2fa454)=>j(_0x148bb8,_0x3a3aeb+'-'+_0x224df1[_0x1396c1(0x9a)]+'-'+_0x2fa454,_0x38e188,void 0x0,_0x4a8308)));}function y(_0x13a6de,_0x4ba84d,_0x390193){const _0x5648fa=_0x146de2,_0x1d8893={..._0x13a6de['attrs']};_0x390193!=null&&_0x390193[_0x5648fa(0xae)]&&_0x1d8893['fill']===_0x5648fa(0xae)&&(_0x1d8893[_0x5648fa(0xc8)]=_0x390193[_0x5648fa(0xae)]),_0x13a6de[_0x5648fa(0x9a)]===_0x5648fa(0xde)&&_0x1d8893['id']&&(_0x1d8893['id']=_0x1d8893['id']+_0x4ba84d['idSuffix']),Object[_0x5648fa(0x90)](_0x1d8893)['forEach'](([_0x45ab0c,_0x2fa0c1])=>{const _0x11b120=_0x5648fa;_0x45ab0c===_0x11b120(0xde)&&typeof _0x2fa0c1==_0x11b120(0xda)&&(_0x1d8893[_0x45ab0c]=_0x2fa0c1['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4ba84d[_0x11b120(0x11d)]+')'));});const {defIds:_0x2401f8}=_0x4ba84d;return!_0x2401f8||_0x2401f8['length']===0x0||(_0x13a6de['tag']==='use'&&_0x1d8893[_0x5648fa(0x8b)]&&(_0x1d8893[_0x5648fa(0x8b)]=_0x1d8893[_0x5648fa(0x8b)]+_0x4ba84d[_0x5648fa(0x11d)]),Object[_0x5648fa(0x90)](_0x1d8893)[_0x5648fa(0xab)](([_0xa60488,_0x4c1517])=>{const _0x338c65=_0x5648fa;typeof _0x4c1517==_0x338c65(0xda)&&(_0x1d8893[_0xa60488]=_0x4c1517[_0x338c65(0x102)](/url\(#(.*)\)/,'url(#$1'+_0x4ba84d[_0x338c65(0x11d)]+')'));})),_0x1d8893;}function F(_0x481f07,_0x2edea9){const _0x1c1367=_0x146de2;var _0x19b682;const {defIds:_0x1df126}=_0x2edea9;return!_0x1df126||_0x1df126['length']===0x0?_0x481f07:_0x481f07[_0x1c1367(0x9a)]===_0x1c1367(0x11a)&&((_0x19b682=_0x481f07[_0x1c1367(0xc9)])!=null&&_0x19b682[_0x1c1367(0x126)])?{..._0x481f07,'children':_0x481f07[_0x1c1367(0xc9)]['map'](_0x47eedc=>typeof _0x47eedc[_0x1c1367(0x112)]['id']==_0x1c1367(0xda)&&_0x1df126&&_0x1df126['includes'](_0x47eedc[_0x1c1367(0x112)]['id'])?{..._0x47eedc,'attrs':{..._0x47eedc[_0x1c1367(0x112)],'id':_0x47eedc['attrs']['id']+_0x2edea9[_0x1c1367(0x11d)]}}:_0x47eedc)}:_0x481f07;}function H(){const _0x37667a=_0x146de2;return Math['random']()[_0x37667a(0x8e)](0x24)['substring'](0x2,0x8);}x[_0x146de2(0x13a)]=_0x146de2(0x12e);const V={'tag':_0x146de2(0xa2),'attrs':{'xmlns':_0x146de2(0xe3),'fill':_0x146de2(0xc3),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x146de2(0xa7)},'children':[{'tag':_0x146de2(0x91),'attrs':{'fill':_0x146de2(0xb0),'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':_0x146de2(0x91),'attrs':{'fill':_0x146de2(0xb0),'d':_0x146de2(0xfe),'fillRule':_0x146de2(0x87),'clipRule':'evenodd'}}]},R=v[_0x146de2(0xb3)](function(_0xf86e26,_0x301570){const _0x1c8c8b=_0x146de2;return v[_0x1c8c8b(0x8a)](x,Object[_0x1c8c8b(0x80)]({},_0xf86e26,{'id':_0x1c8c8b(0x110),'ref':_0x301570,'icon':V}));});R['displayName']=_0x146de2(0x123);class E extends o[_0x146de2(0x12b)]{constructor(){super(...arguments),_(this,'_sharedOperations',new Set()),_(this,'_reporters',new Set());}[_0x146de2(0xff)](_0x4c5e77){const _0x26941b=_0x146de2;return this[_0x26941b(0xc2)]['add'](_0x4c5e77),o[_0x26941b(0x122)](()=>this[_0x26941b(0xc2)][_0x26941b(0x13b)](_0x4c5e77));}[_0x146de2(0xb6)](_0x3979f0){const _0x2aa6b7=_0x146de2;return this[_0x2aa6b7(0x9f)][_0x2aa6b7(0xd9)](_0x3979f0),o[_0x2aa6b7(0x122)](()=>this[_0x2aa6b7(0x9f)]['delete'](_0x3979f0));}[_0x146de2(0xb5)](_0x34032f){const _0x2f89f2=_0x146de2;return this[_0x2f89f2(0xc2)][_0x2f89f2(0x11b)](_0x34032f);}[_0x146de2(0x138)](_0x5de52c){const _0x44299e=_0x146de2;return Array[_0x44299e(0x81)](this[_0x44299e(0x9f)])[_0x44299e(0x117)](_0x2ba9d8=>_0x2ba9d8(_0x5de52c));}}var M=Object[_0x146de2(0xe8)],P=(_0x149566,_0x36095f,_0x1958f3,_0x41b6ce)=>{const _0x9b4230=_0x146de2;for(var _0xa44610=_0x41b6ce>0x1?void 0x0:_0x41b6ce?M(_0x36095f,_0x1958f3):_0x36095f,_0x12cdce=_0x149566[_0x9b4230(0x126)]-0x1,_0x4ae8ec;_0x12cdce>=0x0;_0x12cdce--)(_0x4ae8ec=_0x149566[_0x12cdce])&&(_0xa44610=_0x4ae8ec(_0xa44610)||_0xa44610);return _0xa44610;},S=(_0x39ee51,_0x141642)=>(_0x4b3549,_0x5be8a4)=>_0x141642(_0x4b3549,_0x5be8a4,_0x39ee51);exports[_0x146de2(0xbb)]=class extends o[_0x146de2(0x9b)]{constructor(_0xfee62,_0x456659,_0x28e7e3){const _0x2c1a11=_0x146de2;super(),_(this,'_entities',new Map()),(this[_0x2c1a11(0x9c)]=_0xfee62,this[_0x2c1a11(0xd2)]=_0x456659,this[_0x2c1a11(0x7c)]=_0x28e7e3,this[_0x2c1a11(0x140)]());}async[_0x146de2(0xea)](_0x2f7b55){const _0x3e906c=_0x146de2;return this[_0x3e906c(0x11f)][_0x3e906c(0x11b)](_0x2f7b55)||await this[_0x3e906c(0xef)](_0x2f7b55),this[_0x3e906c(0x11f)][_0x3e906c(0xf0)](_0x2f7b55);}[_0x146de2(0xdb)](_0x2495a5){const _0x40a25f=_0x146de2;var _0x1ba0ed;return(_0x1ba0ed=this[_0x40a25f(0x11f)][_0x40a25f(0xf0)](_0x2495a5))!=null?_0x1ba0ed:null;}[_0x146de2(0x140)](){const _0xdf7677=_0x146de2;this[_0xdf7677(0x9c)][_0xdf7677(0x96)](o['UniverInstanceType'][_0xdf7677(0xaf)])[_0xdf7677(0x136)](I[_0xdf7677(0x101)](this[_0xdf7677(0xa8)]))[_0xdf7677(0x84)](async _0x54f63a=>{const _0x240fdd=_0xdf7677,_0xe9ee3d=_0x54f63a[_0x240fdd(0xec)]();this['_entities'][_0x240fdd(0x11b)](_0xe9ee3d)||this['_startLiveShareCoordinator'](_0xe9ee3d);}),this[_0xdf7677(0x9c)][_0xdf7677(0xad)](o[_0xdf7677(0xbf)][_0xdf7677(0xaf)])[_0xdf7677(0x136)](I[_0xdf7677(0x101)](this[_0xdf7677(0xa8)]))['subscribe'](_0x30e12f=>{const _0x55211a=_0xdf7677,_0x5ac1b5=_0x30e12f[_0x55211a(0xec)](),_0x25190a=this[_0x55211a(0x11f)][_0x55211a(0xf0)](_0x5ac1b5);_0x25190a==null||_0x25190a[_0x55211a(0xf2)]();});}async['_startLiveShareCoordinator'](_0x2bb766){const _0x663060=_0x146de2,_0xb3aeb7=await this[_0x663060(0x7c)][_0x663060(0x7b)](_0x2bb766),_0x5dd7dd=this['_injector'][_0x663060(0xfb)](exports[_0x663060(0x6e)],_0x2bb766,_0xb3aeb7);return _0x5dd7dd[_0x663060(0x141)](),this[_0x663060(0x11f)]['set'](_0x2bb766,_0x5dd7dd),_0x5dd7dd;}},exports[_0x146de2(0xbb)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x146de2(0xb2)](o[_0x146de2(0x137)])),S(0x2,o[_0x146de2(0xb2)](b['CollaborationSessionService']))],exports[_0x146de2(0xbb)]);var u=(_0x470af8=>(_0x470af8[_0x146de2(0x9d)]=_0x146de2(0xac),_0x470af8[_0x146de2(0x114)]=_0x146de2(0x10a),_0x470af8[_0x146de2(0x134)]=_0x146de2(0x135),_0x470af8['NOT_FOLLOWING']='not-following',_0x470af8[_0x146de2(0x111)]=_0x146de2(0xe1),_0x470af8))(u||{});const k=_0x146de2(0x11c),q=0xc8;exports[_0x146de2(0x6e)]=class extends o['RxDisposable']{constructor(_0x27171c,_0x1ad537,_0x461872,_0x21587c,_0x263f73){const _0x44b0af=_0x146de2;super(),_(this,_0x44b0af(0xcb),new O[(_0x44b0af(0x131))](_0x44b0af(0x10a))),_(this,'status$',this[_0x44b0af(0xcb)][_0x44b0af(0xf6)]()),_(this,_0x44b0af(0x140),!0x1),_(this,_0x44b0af(0x77),null),_(this,_0x44b0af(0x88),null),(this['_unitID']=_0x27171c,this[_0x44b0af(0x85)]=_0x1ad537,this[_0x44b0af(0xbc)]=_0x461872,this[_0x44b0af(0x103)]=_0x21587c,this[_0x44b0af(0x12c)]=_0x263f73);}get[_0x146de2(0xc1)](){const _0x4207a7=_0x146de2;return this[_0x4207a7(0xcb)][_0x4207a7(0xf4)]();}[_0x146de2(0xf2)](){const _0x3f8d61=_0x146de2;var _0x46eaff;(_0x46eaff=this[_0x3f8d61(0x77)])==null||_0x46eaff[_0x3f8d61(0xf2)](),this[_0x3f8d61(0xcb)][_0x3f8d61(0xba)](_0x3f8d61(0x10a)),this[_0x3f8d61(0xcb)]['complete']();}[_0x146de2(0xb8)](){const _0x2b9cfe=_0x146de2;return this[_0x2b9cfe(0xc1)];}[_0x146de2(0x141)](){const _0x5442c0=_0x146de2;this['_init']||(this[_0x5442c0(0x140)]=!0x0,this[_0x5442c0(0x85)][_0x5442c0(0xc5)][_0x5442c0(0x136)](I['takeUntil'](this[_0x5442c0(0xa8)]))[_0x5442c0(0x84)](_0x3c7a4a=>{const _0x177dd7=_0x5442c0;switch(_0x3c7a4a){case b[_0x177dd7(0xcc)][_0x177dd7(0x9d)]:this[_0x177dd7(0xc4)]();break;case b[_0x177dd7(0xcc)]['ONLINE']:this['_handleOnline']();break;}}),this[_0x5442c0(0x85)][_0x5442c0(0x72)]['pipe'](I[_0x5442c0(0x101)](this[_0x5442c0(0xa8)]))[_0x5442c0(0x84)](_0x5e0864=>{const _0x52d413=_0x5442c0,{eventID:_0x2d1a95}=_0x5e0864;switch(_0x2d1a95){case d[_0x52d413(0xf1)][_0x52d413(0xa1)]:this['_handleNewHost'](_0x5e0864);break;case d['CollaborationEvent'][_0x52d413(0xe7)]:this[_0x52d413(0xe6)](_0x5e0864);break;case d['CollaborationEvent'][_0x52d413(0xd8)]:this[_0x52d413(0xa5)]();break;case d['CollaborationEvent']['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x5e0864);break;}}));}['tryStartPresenting'](){const _0x47e2f1=_0x146de2;this[_0x47e2f1(0x85)]['send']({'eventID':d[_0x47e2f1(0xf1)][_0x47e2f1(0x105)],'data':{'unitID':this[_0x47e2f1(0xe5)],'userID':this['_collabSession'][_0x47e2f1(0xca)]()}},this[_0x47e2f1(0xe5)]);}[_0x146de2(0x97)](){const _0x1ec38e=_0x146de2;this[_0x1ec38e(0xc1)]===_0x1ec38e(0xe1)&&(this['_status$'][_0x1ec38e(0xba)](_0x1ec38e(0x10a)),this['_collabSession'][_0x1ec38e(0x94)]({'eventID':d[_0x1ec38e(0xf1)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1ec38e(0xe5)]}},this['_unitID']));}[_0x146de2(0x71)](){const _0x758bcf=_0x146de2;this[_0x758bcf(0xc1)]==='not-following'&&(this['_status$'][_0x758bcf(0xba)](_0x758bcf(0x135)),this['_startFollowing']());}['stopFollowing'](){const _0x44bd2c=_0x146de2;this[_0x44bd2c(0xc1)]===_0x44bd2c(0x135)&&this['_stopFollowing']();}[_0x146de2(0x120)](_0xce91d0){const _0xb4f4c=_0x146de2,{presenter:_0x213d4c}=_0xce91d0[_0xb4f4c(0xd5)],_0xd8c79=this['_collabSession'][_0xb4f4c(0xca)]();this[_0xb4f4c(0x88)]=_0x213d4c,_0x213d4c===_0xd8c79?(this[_0xb4f4c(0x83)](),this['_startPresenting']()):this[_0xb4f4c(0xc1)]!==_0xb4f4c(0xee)&&(this[_0xb4f4c(0xa6)](),this['_startFollowing']());}[_0x146de2(0xce)](){const _0xa47f58=_0x146de2,_0x12cd2a={'eventID':d[_0xa47f58(0xf1)][_0xa47f58(0x78)]};this[_0xa47f58(0x85)][_0xa47f58(0x94)](_0x12cd2a,this[_0xa47f58(0xe5)]);}[_0x146de2(0xa5)](){const _0x27cb39=_0x146de2;this[_0x27cb39(0x88)]=null,this['_status']!==_0x27cb39(0xe1)&&this[_0x27cb39(0x99)]();}[_0x146de2(0xe9)](_0x5514dd){const _0x3540c4=_0x146de2;if(this[_0x3540c4(0xc1)]===_0x3540c4(0x135)&&this[_0x3540c4(0x88)]===_0x5514dd[_0x3540c4(0xd5)][_0x3540c4(0xeb)]){const _0x51ebfa=d[_0x3540c4(0x74)](_0x5514dd[_0x3540c4(0xd5)])[_0x3540c4(0x8f)][_0x3540c4(0x7e)]()['find'](_0x2a622b=>_0x2a622b['id']===C[_0x3540c4(0x13d)]['id']);if(_0x51ebfa){const _0x512690=_0x51ebfa[_0x3540c4(0x100)][_0x3540c4(0x128)],_0x4ded6d=_0x51ebfa[_0x3540c4(0x100)][_0x3540c4(0x86)]['id'];setTimeout(()=>{const _0x4f162c=_0x3540c4;this[_0x4f162c(0x12c)][_0x4f162c(0xfd)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x512690,'subUnitId':_0x4ded6d},{'fromCollab':!0x0});});}}}[_0x146de2(0xc0)](){const _0x18232c=_0x146de2;this[_0x18232c(0xcb)]['next']('presenting');const _0x45e1a4=new Map(),_0x407a7e=this[_0x18232c(0x77)]=new o[(_0x18232c(0xbe))]();_0x407a7e['add'](o['toDisposable'](()=>{const _0x3e8369=_0x18232c;_0x45e1a4[_0x3e8369(0xab)](_0xcdca93=>_0xcdca93[_0x3e8369(0x139)]()),_0x45e1a4['clear']();})),_0x407a7e[_0x18232c(0xd9)](this[_0x18232c(0x12c)][_0x18232c(0xdd)](_0x3949eb=>{const _0x3cb5f5=_0x18232c;var _0x547d7e;if(_0x3949eb[_0x3cb5f5(0x118)]!==o['CommandType']['OPERATION']||!this[_0x3cb5f5(0x103)][_0x3cb5f5(0xb5)](_0x3949eb['id']))return;const {id:_0x59c107}=_0x3949eb;let _0x34c747;_0x45e1a4['has'](_0x59c107)?_0x34c747=_0x45e1a4[_0x3cb5f5(0xf0)](_0x59c107):(_0x34c747=new O[(_0x3cb5f5(0xbd))](),_0x45e1a4[_0x3cb5f5(0x82)](_0x59c107,_0x34c747),_0x34c747['pipe'](I['throttleTime']((_0x547d7e=this['_configService'][_0x3cb5f5(0x130)](k))!=null?_0x547d7e:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3cb5f5(0x84)](_0x341bac=>{const _0x4a40b1=_0x3cb5f5;this[_0x4a40b1(0x85)][_0x4a40b1(0x94)]({'eventID':d['CollaborationEvent'][_0x4a40b1(0xe7)],'data':{'unitID':this[_0x4a40b1(0xe5)],'operations':{[_0x341bac['id']]:{'id':_0x341bac['id'],'params':JSON[_0x4a40b1(0xa9)](_0x341bac[_0x4a40b1(0x100)])}}}},this['_unitID']);})),_0x34c747[_0x3cb5f5(0xba)](_0x3949eb);})),this[_0x18232c(0x103)]['getInitialStates'](this[_0x18232c(0xe5)])[_0x18232c(0xab)](_0x111f8b=>this[_0x18232c(0x85)][_0x18232c(0x94)]({'eventID':d[_0x18232c(0xf1)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x111f8b['id']]:{'id':_0x111f8b['id'],'params':JSON['stringify'](_0x111f8b[_0x18232c(0x100)])}}}},this[_0x18232c(0xe5)]));}['_stopPresenting'](){const _0x32b682=_0x146de2;var _0x5644ab;this[_0x32b682(0xcb)][_0x32b682(0xba)](_0x32b682(0x10a)),(_0x5644ab=this['_commandDisposable'])==null||_0x5644ab[_0x32b682(0xf2)](),this[_0x32b682(0x77)]=null;}[_0x146de2(0x116)](){const _0x453827=_0x146de2;var _0x255b63;(_0x255b63=this['_commandDisposable'])==null||_0x255b63[_0x453827(0xf2)](),this[_0x453827(0xcb)]['next'](_0x453827(0x135));}['_beIdle'](){const _0x4902d6=_0x146de2;var _0x378a39;this[_0x4902d6(0xcb)][_0x4902d6(0xba)]('idle'),(_0x378a39=this['_commandDisposable'])==null||_0x378a39[_0x4902d6(0xf2)](),this[_0x4902d6(0x77)]=null;}[_0x146de2(0x83)](){const _0x146463=_0x146de2;var _0x36da4e;this[_0x146463(0xcb)][_0x146463(0xba)](_0x146463(0xee)),(_0x36da4e=this[_0x146463(0x77)])==null||_0x36da4e[_0x146463(0xf2)]();}[_0x146de2(0xe6)](_0x4fe118){const _0x29f772=_0x146de2;if([_0x29f772(0xe1),'not-following',_0x29f772(0xac)][_0x29f772(0xdf)](this[_0x29f772(0xc1)])||!_0x4fe118[_0x29f772(0xd5)][_0x29f772(0xe4)]||_0x4fe118['data'][_0x29f772(0xe4)]===this[_0x29f772(0x85)]['getMemberID']())return;this[_0x29f772(0xc1)]==='idle'&&this[_0x29f772(0x116)]();const _0x2ff25e=_0x4fe118[_0x29f772(0xd5)][_0x29f772(0xb1)];Object['values'](_0x2ff25e)[_0x29f772(0xab)](_0x9c1c4d=>{const _0x1c35c0=_0x29f772;this[_0x1c35c0(0x12c)][_0x1c35c0(0xfd)](_0x9c1c4d['id'],_0x9c1c4d[_0x1c35c0(0x100)]?JSON[_0x1c35c0(0x9e)](_0x9c1c4d[_0x1c35c0(0x100)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x48ccf9=_0x146de2;var _0x1718d9;this[_0x48ccf9(0xcb)]['next'](_0x48ccf9(0xac)),(_0x1718d9=this['_commandDisposable'])==null||_0x1718d9['dispose']();}[_0x146de2(0x12a)](){const _0x3fb297=_0x146de2;this[_0x3fb297(0xcb)][_0x3fb297(0xba)](_0x3fb297(0x10a)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=P([S(0x2,o['IConfigService']),S(0x3,o[_0x146de2(0xb2)](E)),S(0x4,o[_0x146de2(0x13e)])],exports[_0x146de2(0x6e)]);function $(){const _0x3bda8f=_0x146de2,_0x2f0e65=p[_0x3bda8f(0xf7)](exports['LiveShareController']),_0x4a1a15=p['useDependency'](o[_0x3bda8f(0xd6)]),_0x5a257c=p[_0x3bda8f(0xd7)](()=>_0x4a1a15['getCurrentTypeOfUnit$'](o[_0x3bda8f(0xbf)][_0x3bda8f(0xaf)]),void 0x0,!0x1,[]),[_0x1dd321,_0x1bc584]=v['useState'](null),[_0x18db90,_0x4e04bd]=v[_0x3bda8f(0xd0)](u[_0x3bda8f(0x114)]),_0x4ca4be=v[_0x3bda8f(0x75)](null);return v[_0x3bda8f(0x142)](()=>(_0x5a257c&&_0x2f0e65[_0x3bda8f(0xea)](_0x5a257c[_0x3bda8f(0xec)]())['then'](_0xfdd285=>{const _0xec746c=_0x3bda8f;_0x1bc584(_0xfdd285),_0x4ca4be['current']=_0xfdd285[_0xec746c(0xa0)]['subscribe'](_0x283e26=>{_0x4e04bd(_0x283e26);});}),()=>{const _0x54e46d=_0x3bda8f;var _0x19ef0c;(_0x19ef0c=_0x4ca4be[_0x54e46d(0x106)])==null||_0x19ef0c[_0x54e46d(0xd1)](),_0x4ca4be['current']=null;}),[_0x5a257c,_0x2f0e65]),_0x1dd321?l[_0x3bda8f(0x98)](f['Dropdown'],{'align':'end','disabled':_0x18db90===u[_0x3bda8f(0x9d)],'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':l['jsx'](W,{'status':_0x18db90,'coordinator':_0x1dd321}),'children':l['jsx'](_0x3bda8f(0xf5),{'className':f[_0x3bda8f(0x6f)](_0x3bda8f(0xfc),{'univer-cursor-not-allowed':_0x18db90===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x18db90!==u[_0x3bda8f(0x9d)]}),'type':'button','children':l[_0x3bda8f(0x98)](R,{'className':_0x3bda8f(0x7a)})})}):null;}function W(_0x460dae){const _0xaabf42=_0x146de2,{status:_0x301960,coordinator:_0x5c5714}=_0x460dae;switch(_0x301960){case u[_0xaabf42(0x114)]:return l[_0xaabf42(0x98)](G,{'coordinator':_0x5c5714});case u[_0xaabf42(0x134)]:return l[_0xaabf42(0x98)](B,{'coordinator':_0x5c5714});case u['NOT_FOLLOWING']:return l[_0xaabf42(0x98)](Y,{'coordinator':_0x5c5714});case u[_0xaabf42(0x9d)]:return l[_0xaabf42(0x98)](J,{});case u[_0xaabf42(0x111)]:return l[_0xaabf42(0x98)](Z,{'coordinator':_0x5c5714});default:return null;}}function G(_0x3cf337){const _0x2e0aba=_0x146de2,{coordinator:_0x3d9ec6}=_0x3cf337;return l[_0x2e0aba(0x125)](l[_0x2e0aba(0x132)],{'children':[l[_0x2e0aba(0x98)](_0x2e0aba(0xa4),{'className':_0x2e0aba(0x12f),'children':'Present\x20this\x20document'}),l[_0x2e0aba(0x98)](f[_0x2e0aba(0xf9)],{'onClick':()=>_0x3d9ec6[_0x2e0aba(0xb7)](),'children':_0x2e0aba(0x109)})]});}function B(_0x45ec86){const _0x33980c=_0x146de2,{coordinator:_0x589665}=_0x45ec86;return l[_0x33980c(0x125)](l['Fragment'],{'children':[l[_0x33980c(0x98)]('div',{'className':_0x33980c(0x12f),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](f[_0x33980c(0xf9)],{'onClick':()=>_0x589665['stopFollowing'](),'children':_0x33980c(0xb9)})]});}function Y(_0x4153b4){const _0x492fa3=_0x146de2,{coordinator:_0x71ec41}=_0x4153b4;return l[_0x492fa3(0x125)](l[_0x492fa3(0x132)],{'children':[l[_0x492fa3(0x98)](_0x492fa3(0xa4),{'className':_0x492fa3(0x12f),'children':_0x492fa3(0xc6)}),l['jsx'](f[_0x492fa3(0xf9)],{'variant':'text','onClick':()=>_0x71ec41[_0x492fa3(0x71)](),'children':_0x492fa3(0x13f)})]});}function Z(_0x2061f7){const _0x38486e=_0x146de2,{coordinator:_0x5ebfc3}=_0x2061f7;return l[_0x38486e(0x125)](l[_0x38486e(0x132)],{'children':[l[_0x38486e(0x98)]('div',{'className':_0x38486e(0x12f),'children':_0x38486e(0x133)}),l[_0x38486e(0x98)](f[_0x38486e(0xf9)],{'variant':_0x38486e(0x113),'onClick':()=>_0x5ebfc3[_0x38486e(0x97)](),'children':_0x38486e(0xaa)})]});}function J(){const _0x3f5bff=_0x146de2;return l[_0x3f5bff(0x98)](l[_0x3f5bff(0x132)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x146de2(0xe8)],z=(_0x127cdb,_0x45ffaa,_0x19c527,_0xf723df)=>{for(var _0x5780c5=_0xf723df>0x1?void 0x0:_0xf723df?K(_0x45ffaa,_0x19c527):_0x45ffaa,_0x5baa74=_0x127cdb['length']-0x1,_0x235dc6;_0x5baa74>=0x0;_0x5baa74--)(_0x235dc6=_0x127cdb[_0x5baa74])&&(_0x5780c5=_0x235dc6(_0x5780c5)||_0x5780c5);return _0x5780c5;},L=(_0xf1afd0,_0x36f6de)=>(_0x2c0e1a,_0x11f536)=>_0x36f6de(_0x2c0e1a,_0x11f536,_0xf1afd0);exports['DesktopLiveShareController']=class extends o[_0x146de2(0x12b)]{constructor(_0x91b287,_0x4a54df){const _0x552749=_0x146de2;super(),this[_0x552749(0xd2)]=_0x91b287,this['_uiPartsService']=_0x4a54df,this[_0x552749(0xdc)]();}['_mountLiveShare'](){const _0x381622=_0x146de2;this[_0x381622(0x70)](this[_0x381622(0xf3)][_0x381622(0x10f)](p[_0x381622(0x79)][_0x381622(0x92)],()=>p[_0x381622(0x13c)]($,this[_0x381622(0xd2)])));}},exports[_0x146de2(0xf8)]=z([L(0x0,o[_0x146de2(0xb2)](o[_0x146de2(0x137)])),L(0x1,p[_0x146de2(0xe2)])],exports[_0x146de2(0xf8)]);const Q='live-share.config',w={};var X=Object[_0x146de2(0xe8)],ee=(_0x3512d6,_0x3b1654,_0x8ebb0a,_0x15a270)=>{for(var _0x5bc4e7=_0x15a270>0x1?void 0x0:_0x15a270?X(_0x3b1654,_0x8ebb0a):_0x3b1654,_0xf1d583=_0x3512d6['length']-0x1,_0x37e892;_0xf1d583>=0x0;_0xf1d583--)(_0x37e892=_0x3512d6[_0xf1d583])&&(_0x5bc4e7=_0x37e892(_0x5bc4e7)||_0x5bc4e7);return _0x5bc4e7;},te=(_0x8afd3a,_0x4002c5)=>(_0x12a391,_0x123a25)=>_0x4002c5(_0x12a391,_0x123a25,_0x8afd3a);let m=class extends o[_0x146de2(0x12b)]{constructor(_0x348c07){const _0x4c2bfd=_0x146de2;super(),this[_0x4c2bfd(0x103)]=_0x348c07,this['_init']();}[_0x146de2(0x140)](){const _0x503166=_0x146de2;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x503166(0x7f)]['id']]['forEach'](_0x59a074=>{const _0x18d7dd=_0x503166;this[_0x18d7dd(0x70)](this[_0x18d7dd(0x103)]['registerSharedOperation'](_0x59a074));});}};function _0x5376(){const _0x28c44f=['string','getLiveShareCoordinatorSync','_mountLiveShare','onCommandExecuted','mask','includes','symbol','presenting','IUIPartsService','http://www.w3.org/2000/svg','presenter','_unitID','_handleOperation','LIVESHARE_OPERATION','getOwnPropertyDescriptor','_handleNewChangeSets','getLiveShareCoordinator','memberID','getUnitId','setConfig','not-following','_startLiveShareCoordinator','get','CollaborationEvent','dispose','_uiPartsService','getValue','button','asObservable','useDependency','DesktopLiveShareController','Button','UniverLiveSharePlugin','createInstance','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','executeCommand','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','registerSharedOperation','params','takeUntil','replace','_liveShareService','Module','LIVESHARE_REQUEST_HOST','current','registerDependencies','merge','Start','idle','UNIVER_UNKNOWN','UNIVER_LIVE_SHARE_PLUGIN','3481080OxVIKV','4WvXHnr','registerComponent','live-share-icon','PRESENTING','attrs','default','IDLE','UniverCollaborationClientPlugin','_startFollowing','map','type','IConfigService','defs','has','SAME_OPERATION_SHARE_INTERVAL','idSuffix','1063690DSeeJo','_entities','_handleNewHost','3blLIDq','toDisposable','LiveShareIcon','onStarting','jsxs','length','12107744lhwAhf','unitId','touchDependencies','_handleOnline','Disposable','_commandService','_config','UniverIcon','univer-mb-3\x20univer-w-full\x20univer-text-sm','getConfig','BehaviorSubject','Fragment','You\x27re\x20presenting\x20the\x20document','FOLLOWING','following','pipe','Injector','getInitialStates','complete','displayName','delete','connectInjector','InsertSheetMutation','ICommandService','Start\x20following','_init','init','useEffect','4728576jKvxOv','LiveShareCoordinator','clsx','disposeWithMe','startFollowing','event$','56YIxIsS','parseProtocolChangeset','useRef','defineProperty','_commandDisposable','LIVESHARE_FETCH_OPERATIONS','BuiltInUIPart','univer-size-4','requireSession','_collabSessionService','trim','reverse','SetWorksheetActiveOperation','assign','from','set','_stopFollowing','subscribe','_collabSession','sheet','evenodd','_presenter','onRendered','createElement','xlink:href','override','14527010Ssiree','toString','mutations','entries','path','HEADER_MENU','mergeOverrideWithDependencies','send','DependentOn','getTypeOfUnitAdded$','stopPresenting','jsx','_beIdle','tag','RxDisposable','_univerInstanceService','OFFLINE','parse','_reporters','status$','LIVESHARE_NEW_HOST','svg','LiveShareStatus','div','_handleTerminate','_stopPresenting','1em','dispose$','stringify','Stop\x20presenting','forEach','offline','getTypeOfUnitDisposed$','colorChannel1','UNIVER_SHEET','currentColor','operations','Inject','forwardRef','defIds','shouldShareOperation','registerInitialStateReporter','tryStartPresenting','getStatus','Stop\x20following','next','LiveShareController','_configService','Subject','DisposableCollection','UniverInstanceType','_startPresenting','_status','_sharedOperations','none','_handleOffline','sessionStatus$','You\x27re\x20not\x20following\x20the\x20presenter','univerjs-icon\x20univerjs-icon-','fill','children','getMemberID','_status$','SessionStatus','1370934ToPsLk','_fetchOperations','9PGNzOH','useState','unsubscribe','_injector','toStringTag','36126MnJYzn','data','IUniverInstanceService','useObservable','LIVESHARE_TERMINATE','add'];_0x5376=function(){return _0x28c44f;};return _0x5376();}m=ee([te(0x0,o[_0x146de2(0xb2)](E))],m);var ie=Object[_0x146de2(0x76)],se=Object[_0x146de2(0xe8)],ne=(_0x317205,_0x535483,_0x1b93c9)=>_0x535483 in _0x317205?ie(_0x317205,_0x535483,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b93c9}):_0x317205[_0x535483]=_0x1b93c9,re=(_0x39be84,_0x410db4,_0x4c4e74,_0x4f96d5)=>{for(var _0x17383c=_0x4f96d5>0x1?void 0x0:_0x4f96d5?se(_0x410db4,_0x4c4e74):_0x410db4,_0x31e2e4=_0x39be84['length']-0x1,_0x5e63cf;_0x31e2e4>=0x0;_0x31e2e4--)(_0x5e63cf=_0x39be84[_0x31e2e4])&&(_0x17383c=_0x5e63cf(_0x17383c)||_0x17383c);return _0x17383c;},N=(_0x3e86ad,_0x4e4683)=>(_0x31bf60,_0x835dd4)=>_0x4e4683(_0x31bf60,_0x835dd4,_0x3e86ad),A=(_0x25f980,_0x14bf26,_0x514f04)=>ne(_0x25f980,typeof _0x14bf26!=_0x146de2(0xe0)?_0x14bf26+'':_0x14bf26,_0x514f04);const oe=_0x146de2(0x10c);exports[_0x146de2(0xfa)]=class extends o['Plugin']{constructor(_0x3c3f12=w,_0x52e1ce,_0x2c8805){const _0x102121=_0x146de2;super(),this[_0x102121(0x12d)]=_0x3c3f12,this[_0x102121(0xd2)]=_0x52e1ce,this[_0x102121(0xbc)]=_0x2c8805;const {..._0x5dd218}=o[_0x102121(0x108)]({},w,this[_0x102121(0x12d)]);this[_0x102121(0xbc)][_0x102121(0xed)](Q,_0x5dd218);}[_0x146de2(0x124)](){const _0x36c6bf=_0x146de2;o[_0x36c6bf(0x107)](this[_0x36c6bf(0xd2)],o[_0x36c6bf(0x93)]([[E],[exports['LiveShareController']],[m],[exports[_0x36c6bf(0xf8)]]],this['_config'][_0x36c6bf(0x8c)])),o[_0x36c6bf(0x129)](this[_0x36c6bf(0xd2)],[[m]]);}[_0x146de2(0x89)](){const _0x43bfbb=_0x146de2;o[_0x43bfbb(0x129)](this[_0x43bfbb(0xd2)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x146de2(0xfa)],_0x146de2(0x118),o['UniverInstanceType'][_0x146de2(0x10b)]),A(exports[_0x146de2(0xfa)],'pluginName',oe),exports[_0x146de2(0xfa)]=re([o[_0x146de2(0x95)](b[_0x146de2(0x115)]),N(0x1,o[_0x146de2(0xb2)](o['Injector'])),N(0x2,o[_0x146de2(0x119)])],exports[_0x146de2(0xfa)]),exports['LiveShare']=$,exports['LiveShareService']=E,exports[_0x146de2(0xa3)]=u;
|
|
1
|
+
'use strict';const _0x53d800=_0x1ed1;(function(_0x4b3ac7,_0x26894c){const _0x437a78=_0x1ed1,_0x4d1610=_0x4b3ac7();while(!![]){try{const _0x243759=parseInt(_0x437a78(0xc1))/0x1+parseInt(_0x437a78(0x136))/0x2*(-parseInt(_0x437a78(0x167))/0x3)+-parseInt(_0x437a78(0x17d))/0x4*(parseInt(_0x437a78(0xdf))/0x5)+-parseInt(_0x437a78(0x165))/0x6+parseInt(_0x437a78(0x11f))/0x7+parseInt(_0x437a78(0x13a))/0x8*(-parseInt(_0x437a78(0xd9))/0x9)+parseInt(_0x437a78(0xef))/0xa*(parseInt(_0x437a78(0x16c))/0xb);if(_0x243759===_0x26894c)break;else _0x4d1610['push'](_0x4d1610['shift']());}catch(_0x4491ae){_0x4d1610['push'](_0x4d1610['shift']());}}}(_0x149e,0x79814));var T=Object[_0x53d800(0x115)],U=(_0x5a5819,_0x2d26a8,_0x308be8)=>_0x2d26a8 in _0x5a5819?T(_0x5a5819,_0x2d26a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x308be8}):_0x5a5819[_0x2d26a8]=_0x308be8,_=(_0x181179,_0x5b0744,_0x1416b0)=>U(_0x181179,typeof _0x5b0744!=_0x53d800(0xd4)?_0x5b0744+'':_0x5b0744,_0x1416b0);Object['defineProperty'](exports,Symbol[_0x53d800(0x117)],{'value':_0x53d800(0x13f)});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:_0x4e3a97,..._0xab5389}){const _0x320cd6=_0x53d800,{icon:_0x4152c5,id:_0x2f1996,className:_0x410df5,extend:_0x42ce78,..._0x11d15d}=_0xab5389,_0x41ceac=(_0x320cd6(0xb7)+_0x2f1996+'\x20'+(_0x410df5||''))['trim'](),_0x57f510=v[_0x320cd6(0x155)]('_'+H());return j(_0x4152c5,''+_0x2f1996,{'defIds':_0x4152c5[_0x320cd6(0xea)],'idSuffix':_0x57f510[_0x320cd6(0x149)]},{'ref':_0x4e3a97,'className':_0x41ceac,..._0x11d15d},_0x42ce78);}function j(_0x210e46,_0x3ef6c1,_0x446ce9,_0x45a350,_0x10c722){const _0x80b22a=_0x53d800;return v[_0x80b22a(0xce)](_0x210e46[_0x80b22a(0x143)],{'key':_0x3ef6c1,...y(_0x210e46,_0x446ce9,_0x10c722),..._0x45a350},(F(_0x210e46,_0x446ce9)['children']||[])[_0x80b22a(0x173)]((_0x4d1a97,_0x3947ab)=>j(_0x4d1a97,_0x3ef6c1+'-'+_0x210e46['tag']+'-'+_0x3947ab,_0x446ce9,void 0x0,_0x10c722)));}function y(_0x48436b,_0x3e3ea7,_0x26695e){const _0x2ac555=_0x53d800,_0x24ebd9={..._0x48436b['attrs']};_0x26695e!=null&&_0x26695e[_0x2ac555(0xe2)]&&_0x24ebd9[_0x2ac555(0x16f)]===_0x2ac555(0xe2)&&(_0x24ebd9[_0x2ac555(0x16f)]=_0x26695e[_0x2ac555(0xe2)]),_0x48436b['tag']===_0x2ac555(0x113)&&_0x24ebd9['id']&&(_0x24ebd9['id']=_0x24ebd9['id']+_0x3e3ea7['idSuffix']),Object[_0x2ac555(0x100)](_0x24ebd9)[_0x2ac555(0xee)](([_0x3fa298,_0x3ed6d4])=>{const _0x218b07=_0x2ac555;_0x3fa298===_0x218b07(0x113)&&typeof _0x3ed6d4==_0x218b07(0xf0)&&(_0x24ebd9[_0x3fa298]=_0x3ed6d4[_0x218b07(0x171)](/url\(#(.*)\)/,'url(#$1'+_0x3e3ea7['idSuffix']+')'));});const {defIds:_0x5d5015}=_0x3e3ea7;return!_0x5d5015||_0x5d5015['length']===0x0||(_0x48436b[_0x2ac555(0x143)]===_0x2ac555(0xe6)&&_0x24ebd9[_0x2ac555(0x141)]&&(_0x24ebd9[_0x2ac555(0x141)]=_0x24ebd9[_0x2ac555(0x141)]+_0x3e3ea7[_0x2ac555(0xbf)]),Object[_0x2ac555(0x100)](_0x24ebd9)[_0x2ac555(0xee)](([_0x238eef,_0x436b0c])=>{const _0x558a97=_0x2ac555;typeof _0x436b0c==_0x558a97(0xf0)&&(_0x24ebd9[_0x238eef]=_0x436b0c[_0x558a97(0x171)](/url\(#(.*)\)/,'url(#$1'+_0x3e3ea7[_0x558a97(0xbf)]+')'));})),_0x24ebd9;}function F(_0x4cabc7,_0x2a6120){const _0x2bd424=_0x53d800;var _0x246f31;const {defIds:_0x2c4865}=_0x2a6120;return!_0x2c4865||_0x2c4865[_0x2bd424(0x151)]===0x0?_0x4cabc7:_0x4cabc7['tag']==='defs'&&((_0x246f31=_0x4cabc7['children'])!=null&&_0x246f31[_0x2bd424(0x151)])?{..._0x4cabc7,'children':_0x4cabc7[_0x2bd424(0xf2)]['map'](_0xcf0f0e=>typeof _0xcf0f0e[_0x2bd424(0x104)]['id']=='string'&&_0x2c4865&&_0x2c4865[_0x2bd424(0x114)](_0xcf0f0e[_0x2bd424(0x104)]['id'])?{..._0xcf0f0e,'attrs':{..._0xcf0f0e[_0x2bd424(0x104)],'id':_0xcf0f0e[_0x2bd424(0x104)]['id']+_0x2a6120['idSuffix']}}:_0xcf0f0e)}:_0x4cabc7;}function _0x1ed1(_0x4a433d,_0x3623b6){_0x4a433d=_0x4a433d-0xaa;const _0x149e75=_0x149e();let _0x1ed1bc=_0x149e75[_0x4a433d];return _0x1ed1bc;}function H(){const _0xa5f5fe=_0x53d800;return Math['random']()['toString'](0x24)[_0xa5f5fe(0xba)](0x2,0x8);}function _0x149e(){const _0x445442=['idSuffix','LiveShareService','393688OeoOZJ','_handleOnline','displayName','sheet','status$','svg','dispose$','send','Inject','unitId','delete','_handleOffline','find','createElement','unsubscribe','registerInitialStateReporter','pluginName','OFFLINE','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','symbol','DisposableCollection','getUnitId','none','LIVESHARE_FETCH_OPERATIONS','45kSuhXY','shouldShareOperation','_status$','then','live-share.config','parseProtocolChangeset','15LkJhSW','DesktopLiveShareController','CollaborationEvent','colorChannel1','UNIVER_LIVE_SHARE_PLUGIN','reverse','clsx','use','UniverLiveSharePlugin','_collabSession','SessionStatus','defIds','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','following','event$','forEach','15524090GEyMsU','string','getStatus','children','You\x27re\x20presenting\x20the\x20document','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','CollaborationSessionService','set','forwardRef','evenodd','LiveShareCoordinator','IConfigService','_handleNewHost','LiveShare','currentColor','_startLiveShareCoordinator','LIVESHARE_NEW_HOST','entries','setConfig','presenter','dispose','attrs','LIVESHARE_OPERATION','executeCommand','toDisposable','_sharedOperations','getValue','_stopPresenting','useState','_liveShareService','clear','_unitID','presenting','createInstance','onCommandExecuted','_commandDisposable','mask','includes','defineProperty','FOLLOWING','toStringTag','ONLINE','_univerInstanceService','LiveShareIcon','registerDependencies','jsx','Stop\x20following','InsertSheetMutation','6649972AXSuEb','not-following','_stopFollowing','_reporters','getLiveShareCoordinator','IDLE','_init','UniverIcon','You\x27re\x20not\x20following\x20the\x20presenter','complete','LiveShareStatus','0\x200\x2017\x2017','_presenter','from','useDependency','getInitialStates','useObservable','Plugin','has','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','UniverInstanceType','_injector','getConfig','6BuTxbu','next','_handleNewChangeSets','requireSession','373096PWoNuW','SAME_OPERATION_SHARE_INTERVAL','_commandService','registerSharedOperation','getOwnPropertyDescriptor','Module','takeUntil','xlink:href','UNIVER_SHEET','tag','startFollowing','_collabSessionService','DependentOn','univer-size-4','offline','current','Disposable','_uiPartsService','PRESENTING','RxDisposable','http://www.w3.org/2000/svg','_beIdle','registerComponent','length','_fetchOperations','UniverCollaborationClientPlugin','onStarting','useRef','OPERATION','IUIPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareController','stopFollowing','disposeWithMe','button','params','_mountLiveShare','jsxs','path','pipe','stopPresenting','useEffect','_configService','5966430xYGZQc','BuiltInUIPart','990543aAWkvP','Dropdown','type','add','CommandType','11StwxqX','sessionStatus$','_handleTerminate','fill','getTypeOfUnitDisposed$','replace','tryStartPresenting','map','end','_startPresenting','UNIVER_UNKNOWN','asObservable','NEW_CHANGESETS','div','_config','throttleTime','subscribe','240368PUhUeq','_startFollowing','connectInjector','Button','IUniverInstanceService','HEADER_MENU','stringify','Fragment','get','1em','Injector','data','LIVESHARE_TERMINATE','parse','getMemberID','Subject','univerjs-icon\x20univerjs-icon-','LIVESHARE_REQUEST_HOST','_entities','substring','idle','_status','onRendered','override'];_0x149e=function(){return _0x445442;};return _0x149e();}x['displayName']=_0x53d800(0x126);const V={'tag':_0x53d800(0xc6),'attrs':{'xmlns':_0x53d800(0x14e),'fill':_0x53d800(0xd7),'viewBox':_0x53d800(0x12a),'width':'1em','height':_0x53d800(0xb0)},'children':[{'tag':_0x53d800(0x160),'attrs':{'fill':_0x53d800(0xfd),'d':_0x53d800(0xd3)}},{'tag':_0x53d800(0x160),'attrs':{'fill':'currentColor','d':_0x53d800(0x132),'fillRule':_0x53d800(0xf8),'clipRule':_0x53d800(0xf8)}}]},R=v[_0x53d800(0xf7)](function(_0x465246,_0x4d2cf3){const _0x24ecc3=_0x53d800;return v[_0x24ecc3(0xce)](x,Object['assign']({},_0x465246,{'id':'live-share-icon','ref':_0x4d2cf3,'icon':V}));});R[_0x53d800(0xc3)]=_0x53d800(0x11a);class E extends o[_0x53d800(0x14a)]{constructor(){const _0x4a280a=_0x53d800;super(...arguments),_(this,_0x4a280a(0x108),new Set()),_(this,_0x4a280a(0x122),new Set());}[_0x53d800(0x13d)](_0x575f57){const _0x3deb30=_0x53d800;return this[_0x3deb30(0x108)][_0x3deb30(0x16a)](_0x575f57),o['toDisposable'](()=>this[_0x3deb30(0x108)][_0x3deb30(0xcb)](_0x575f57));}[_0x53d800(0xd0)](_0x37cd95){const _0x4a42f2=_0x53d800;return this[_0x4a42f2(0x122)]['add'](_0x37cd95),o['toDisposable'](()=>this[_0x4a42f2(0x122)][_0x4a42f2(0xcb)](_0x37cd95));}[_0x53d800(0xda)](_0x21f4bb){const _0x5a51eb=_0x53d800;return this[_0x5a51eb(0x108)][_0x5a51eb(0x131)](_0x21f4bb);}[_0x53d800(0x12e)](_0x290206){const _0x3e1aca=_0x53d800;return Array[_0x3e1aca(0x12c)](this['_reporters'])[_0x3e1aca(0x173)](_0x441d81=>_0x441d81(_0x290206));}}var M=Object[_0x53d800(0x13e)],P=(_0x35998b,_0x57326d,_0x2a9de9,_0x103fbb)=>{const _0x257d2d=_0x53d800;for(var _0x51245b=_0x103fbb>0x1?void 0x0:_0x103fbb?M(_0x57326d,_0x2a9de9):_0x57326d,_0x50d714=_0x35998b[_0x257d2d(0x151)]-0x1,_0x1fbef5;_0x50d714>=0x0;_0x50d714--)(_0x1fbef5=_0x35998b[_0x50d714])&&(_0x51245b=_0x1fbef5(_0x51245b)||_0x51245b);return _0x51245b;},S=(_0x341870,_0x276fe3)=>(_0x11777c,_0x6ffe90)=>_0x276fe3(_0x11777c,_0x6ffe90,_0x341870);exports[_0x53d800(0x159)]=class extends o['RxDisposable']{constructor(_0xd651ec,_0x19811b,_0x4b32a7){const _0x1e7d1b=_0x53d800;super(),_(this,_0x1e7d1b(0xb9),new Map()),(this[_0x1e7d1b(0x119)]=_0xd651ec,this[_0x1e7d1b(0x134)]=_0x19811b,this[_0x1e7d1b(0x145)]=_0x4b32a7,this[_0x1e7d1b(0x125)]());}async['getLiveShareCoordinator'](_0x29b94f){const _0x2f32eb=_0x53d800;return this[_0x2f32eb(0xb9)][_0x2f32eb(0x131)](_0x29b94f)||await this[_0x2f32eb(0xfe)](_0x29b94f),this['_entities'][_0x2f32eb(0xaf)](_0x29b94f);}['getLiveShareCoordinatorSync'](_0x49793d){const _0x21f71c=_0x53d800;var _0x109f0a;return(_0x109f0a=this[_0x21f71c(0xb9)][_0x21f71c(0xaf)](_0x49793d))!=null?_0x109f0a:null;}[_0x53d800(0x125)](){const _0x464095=_0x53d800;this[_0x464095(0x119)]['getTypeOfUnitAdded$'](o['UniverInstanceType'][_0x464095(0x142)])[_0x464095(0x161)](I[_0x464095(0x140)](this[_0x464095(0xc7)]))[_0x464095(0x17c)](async _0x55c71f=>{const _0xeb16d=_0x464095,_0x35730a=_0x55c71f[_0xeb16d(0xd6)]();this[_0xeb16d(0xb9)][_0xeb16d(0x131)](_0x35730a)||this[_0xeb16d(0xfe)](_0x35730a);}),this[_0x464095(0x119)][_0x464095(0x170)](o[_0x464095(0x133)][_0x464095(0x142)])[_0x464095(0x161)](I['takeUntil'](this[_0x464095(0xc7)]))[_0x464095(0x17c)](_0x29a788=>{const _0x3fdce4=_0x464095,_0x532a1b=_0x29a788[_0x3fdce4(0xd6)](),_0x263db7=this[_0x3fdce4(0xb9)][_0x3fdce4(0xaf)](_0x532a1b);_0x263db7==null||_0x263db7['dispose']();});}async[_0x53d800(0xfe)](_0x5032bc){const _0x7bf5fb=_0x53d800,_0x1b7965=await this['_collabSessionService'][_0x7bf5fb(0x139)](_0x5032bc),_0x5efbba=this[_0x7bf5fb(0x134)][_0x7bf5fb(0x110)](exports[_0x7bf5fb(0xf9)],_0x5032bc,_0x1b7965);return _0x5efbba['init'](),this[_0x7bf5fb(0xb9)]['set'](_0x5032bc,_0x5efbba),_0x5efbba;}},exports['LiveShareController']=P([S(0x0,o[_0x53d800(0xab)]),S(0x1,o[_0x53d800(0xc9)](o[_0x53d800(0xb1)])),S(0x2,o[_0x53d800(0xc9)](b[_0x53d800(0xf5)]))],exports[_0x53d800(0x159)]);var u=(_0x35bad1=>(_0x35bad1[_0x53d800(0xd2)]='offline',_0x35bad1[_0x53d800(0x124)]='idle',_0x35bad1[_0x53d800(0x116)]='following',_0x35bad1['NOT_FOLLOWING']=_0x53d800(0x120),_0x35bad1['PRESENTING']=_0x53d800(0x10f),_0x35bad1))(u||{});const k=_0x53d800(0x13b),q=0xc8;exports[_0x53d800(0xf9)]=class extends o[_0x53d800(0x14d)]{constructor(_0x2e5643,_0x39ecd7,_0x21c875,_0x30888d,_0x252b9a){const _0x1a4bcf=_0x53d800;super(),_(this,'_status$',new O['BehaviorSubject'](_0x1a4bcf(0xbb))),_(this,'status$',this[_0x1a4bcf(0xdb)][_0x1a4bcf(0x177)]()),_(this,_0x1a4bcf(0x125),!0x1),_(this,'_commandDisposable',null),_(this,_0x1a4bcf(0x12b),null),(this['_unitID']=_0x2e5643,this[_0x1a4bcf(0xe8)]=_0x39ecd7,this[_0x1a4bcf(0x164)]=_0x21c875,this[_0x1a4bcf(0x10c)]=_0x30888d,this['_commandService']=_0x252b9a);}get[_0x53d800(0xbc)](){const _0x1b19c7=_0x53d800;return this['_status$'][_0x1b19c7(0x109)]();}[_0x53d800(0x103)](){const _0x2d20f4=_0x53d800;var _0x4f843b;(_0x4f843b=this['_commandDisposable'])==null||_0x4f843b[_0x2d20f4(0x103)](),this['_status$']['next']('idle'),this[_0x2d20f4(0xdb)][_0x2d20f4(0x128)]();}[_0x53d800(0xf1)](){return this['_status'];}['init'](){const _0x3be1b5=_0x53d800;this[_0x3be1b5(0x125)]||(this[_0x3be1b5(0x125)]=!0x0,this[_0x3be1b5(0xe8)][_0x3be1b5(0x16d)]['pipe'](I['takeUntil'](this['dispose$']))[_0x3be1b5(0x17c)](_0x5ca2b4=>{const _0xe9fbe=_0x3be1b5;switch(_0x5ca2b4){case b[_0xe9fbe(0xe9)][_0xe9fbe(0xd2)]:this['_handleOffline']();break;case b[_0xe9fbe(0xe9)][_0xe9fbe(0x118)]:this['_handleOnline']();break;}}),this[_0x3be1b5(0xe8)][_0x3be1b5(0xed)][_0x3be1b5(0x161)](I['takeUntil'](this[_0x3be1b5(0xc7)]))[_0x3be1b5(0x17c)](_0x657e21=>{const _0x301312=_0x3be1b5,{eventID:_0x28f76a}=_0x657e21;switch(_0x28f76a){case d[_0x301312(0xe1)][_0x301312(0xff)]:this[_0x301312(0xfb)](_0x657e21);break;case d[_0x301312(0xe1)][_0x301312(0x105)]:this['_handleOperation'](_0x657e21);break;case d[_0x301312(0xe1)][_0x301312(0xb3)]:this['_handleTerminate']();break;case d[_0x301312(0xe1)][_0x301312(0x178)]:this[_0x301312(0x138)](_0x657e21);break;}}));}[_0x53d800(0x172)](){const _0x12aaf3=_0x53d800;this[_0x12aaf3(0xe8)][_0x12aaf3(0xc8)]({'eventID':d[_0x12aaf3(0xe1)][_0x12aaf3(0xb8)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x12aaf3(0xb5)]()}},this['_unitID']);}['stopPresenting'](){const _0x3076cd=_0x53d800;this[_0x3076cd(0xbc)]===_0x3076cd(0x10f)&&(this['_status$'][_0x3076cd(0x137)](_0x3076cd(0xbb)),this[_0x3076cd(0xe8)][_0x3076cd(0xc8)]({'eventID':d[_0x3076cd(0xe1)][_0x3076cd(0xb3)],'data':{'unitID':this[_0x3076cd(0x10e)]}},this[_0x3076cd(0x10e)]));}['startFollowing'](){const _0x190ce7=_0x53d800;this['_status']===_0x190ce7(0x120)&&(this[_0x190ce7(0xdb)][_0x190ce7(0x137)](_0x190ce7(0xec)),this[_0x190ce7(0x17e)]());}[_0x53d800(0x15a)](){const _0x45e318=_0x53d800;this['_status']===_0x45e318(0xec)&&this[_0x45e318(0x121)]();}[_0x53d800(0xfb)](_0x26bb11){const _0x135aa1=_0x53d800,{presenter:_0x5f01a0}=_0x26bb11[_0x135aa1(0xb2)],_0x2f5c46=this[_0x135aa1(0xe8)][_0x135aa1(0xb5)]();this['_presenter']=_0x5f01a0,_0x5f01a0===_0x2f5c46?(this['_stopFollowing'](),this[_0x135aa1(0x175)]()):this[_0x135aa1(0xbc)]!==_0x135aa1(0x120)&&(this['_stopPresenting'](),this[_0x135aa1(0x17e)]());}[_0x53d800(0x152)](){const _0x55abb5=_0x53d800,_0x25180a={'eventID':d[_0x55abb5(0xe1)][_0x55abb5(0xd8)]};this['_collabSession'][_0x55abb5(0xc8)](_0x25180a,this['_unitID']);}[_0x53d800(0x16e)](){const _0x964ff7=_0x53d800;this['_presenter']=null,this[_0x964ff7(0xbc)]!==_0x964ff7(0x10f)&&this['_beIdle']();}['_handleNewChangeSets'](_0x87fca4){const _0x43478d=_0x53d800;if(this[_0x43478d(0xbc)]===_0x43478d(0xec)&&this['_presenter']===_0x87fca4[_0x43478d(0xb2)]['memberID']){const _0x919fb=d[_0x43478d(0xde)](_0x87fca4[_0x43478d(0xb2)])['mutations'][_0x43478d(0xe4)]()[_0x43478d(0xcd)](_0x3efdcb=>_0x3efdcb['id']===C[_0x43478d(0x11e)]['id']);if(_0x919fb){const _0x5657cc=_0x919fb[_0x43478d(0x15d)][_0x43478d(0xca)],_0x4c59ca=_0x919fb[_0x43478d(0x15d)][_0x43478d(0xc4)]['id'];setTimeout(()=>{const _0x23d4a3=_0x43478d;this[_0x23d4a3(0x13c)][_0x23d4a3(0x106)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x5657cc,'subUnitId':_0x4c59ca},{'fromCollab':!0x0});});}}}[_0x53d800(0x175)](){const _0x1f2962=_0x53d800;this[_0x1f2962(0xdb)][_0x1f2962(0x137)]('presenting');const _0x33edbc=new Map(),_0x46e4a1=this['_commandDisposable']=new o[(_0x1f2962(0xd5))]();_0x46e4a1[_0x1f2962(0x16a)](o[_0x1f2962(0x107)](()=>{const _0x5cac43=_0x1f2962;_0x33edbc[_0x5cac43(0xee)](_0x5798bb=>_0x5798bb[_0x5cac43(0x128)]()),_0x33edbc[_0x5cac43(0x10d)]();})),_0x46e4a1['add'](this[_0x1f2962(0x13c)][_0x1f2962(0x111)](_0x121cca=>{const _0x5e0f88=_0x1f2962;var _0x470805;if(_0x121cca[_0x5e0f88(0x169)]!==o[_0x5e0f88(0x16b)][_0x5e0f88(0x156)]||!this['_liveShareService'][_0x5e0f88(0xda)](_0x121cca['id']))return;const {id:_0x1d6e6e}=_0x121cca;let _0x1cf9e3;_0x33edbc[_0x5e0f88(0x131)](_0x1d6e6e)?_0x1cf9e3=_0x33edbc['get'](_0x1d6e6e):(_0x1cf9e3=new O[(_0x5e0f88(0xb6))](),_0x33edbc[_0x5e0f88(0xf6)](_0x1d6e6e,_0x1cf9e3),_0x1cf9e3['pipe'](I[_0x5e0f88(0x17b)]((_0x470805=this[_0x5e0f88(0x164)][_0x5e0f88(0x135)](k))!=null?_0x470805:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5e0f88(0x17c)](_0x5c206f=>{const _0x208594=_0x5e0f88;this['_collabSession'][_0x208594(0xc8)]({'eventID':d[_0x208594(0xe1)][_0x208594(0x105)],'data':{'unitID':this[_0x208594(0x10e)],'operations':{[_0x5c206f['id']]:{'id':_0x5c206f['id'],'params':JSON[_0x208594(0xad)](_0x5c206f[_0x208594(0x15d)])}}}},this['_unitID']);})),_0x1cf9e3['next'](_0x121cca);})),this[_0x1f2962(0x10c)]['getInitialStates'](this[_0x1f2962(0x10e)])[_0x1f2962(0xee)](_0x3f7f10=>this[_0x1f2962(0xe8)][_0x1f2962(0xc8)]({'eventID':d[_0x1f2962(0xe1)][_0x1f2962(0x105)],'data':{'unitID':this['_unitID'],'operations':{[_0x3f7f10['id']]:{'id':_0x3f7f10['id'],'params':JSON[_0x1f2962(0xad)](_0x3f7f10[_0x1f2962(0x15d)])}}}},this['_unitID']));}[_0x53d800(0x10a)](){const _0x5ea517=_0x53d800;var _0x5562f1;this[_0x5ea517(0xdb)][_0x5ea517(0x137)](_0x5ea517(0xbb)),(_0x5562f1=this[_0x5ea517(0x112)])==null||_0x5562f1[_0x5ea517(0x103)](),this['_commandDisposable']=null;}[_0x53d800(0x17e)](){const _0xaec8eb=_0x53d800;var _0x273af2;(_0x273af2=this[_0xaec8eb(0x112)])==null||_0x273af2[_0xaec8eb(0x103)](),this[_0xaec8eb(0xdb)]['next'](_0xaec8eb(0xec));}[_0x53d800(0x14f)](){const _0xdd5660=_0x53d800;var _0x4b56c5;this[_0xdd5660(0xdb)]['next'](_0xdd5660(0xbb)),(_0x4b56c5=this[_0xdd5660(0x112)])==null||_0x4b56c5[_0xdd5660(0x103)](),this['_commandDisposable']=null;}[_0x53d800(0x121)](){const _0x1a30e6=_0x53d800;var _0x19aeb9;this['_status$'][_0x1a30e6(0x137)](_0x1a30e6(0x120)),(_0x19aeb9=this[_0x1a30e6(0x112)])==null||_0x19aeb9['dispose']();}['_handleOperation'](_0x18ffc9){const _0x177719=_0x53d800;if([_0x177719(0x10f),'not-following',_0x177719(0x148)][_0x177719(0x114)](this['_status'])||!_0x18ffc9[_0x177719(0xb2)][_0x177719(0x102)]||_0x18ffc9[_0x177719(0xb2)][_0x177719(0x102)]===this[_0x177719(0xe8)]['getMemberID']())return;this['_status']===_0x177719(0xbb)&&this['_startFollowing']();const _0x2bb335=_0x18ffc9['data']['operations'];Object['values'](_0x2bb335)[_0x177719(0xee)](_0x151c2c=>{const _0x3f858=_0x177719;this[_0x3f858(0x13c)][_0x3f858(0x106)](_0x151c2c['id'],_0x151c2c[_0x3f858(0x15d)]?JSON[_0x3f858(0xb4)](_0x151c2c[_0x3f858(0x15d)]):null,{'fromCollab':!0x0});});}[_0x53d800(0xcc)](){const _0x574d22=_0x53d800;var _0x2b28c8;this['_status$'][_0x574d22(0x137)]('offline'),(_0x2b28c8=this[_0x574d22(0x112)])==null||_0x2b28c8[_0x574d22(0x103)]();}[_0x53d800(0xc2)](){const _0x58c7cc=_0x53d800;this[_0x58c7cc(0xdb)]['next']('idle'),this[_0x58c7cc(0x152)]();}},exports['LiveShareCoordinator']=P([S(0x2,o['IConfigService']),S(0x3,o[_0x53d800(0xc9)](E)),S(0x4,o['ICommandService'])],exports[_0x53d800(0xf9)]);function $(){const _0x2d6354=_0x53d800,_0x266fad=p[_0x2d6354(0x12d)](exports[_0x2d6354(0x159)]),_0x11abec=p[_0x2d6354(0x12d)](o[_0x2d6354(0xab)]),_0x2fcbe2=p[_0x2d6354(0x12f)](()=>_0x11abec['getCurrentTypeOfUnit$'](o[_0x2d6354(0x133)][_0x2d6354(0x142)]),void 0x0,!0x1,[]),[_0x51e734,_0x383cf1]=v[_0x2d6354(0x10b)](null),[_0x41986b,_0x4e22dc]=v['useState'](u[_0x2d6354(0x124)]),_0x4ee0df=v['useRef'](null);return v[_0x2d6354(0x163)](()=>(_0x2fcbe2&&_0x266fad[_0x2d6354(0x123)](_0x2fcbe2[_0x2d6354(0xd6)]())[_0x2d6354(0xdc)](_0x23253f=>{const _0x1e21f0=_0x2d6354;_0x383cf1(_0x23253f),_0x4ee0df[_0x1e21f0(0x149)]=_0x23253f[_0x1e21f0(0xc5)][_0x1e21f0(0x17c)](_0x2197b9=>{_0x4e22dc(_0x2197b9);});}),()=>{const _0x170163=_0x2d6354;var _0x56b6d8;(_0x56b6d8=_0x4ee0df[_0x170163(0x149)])==null||_0x56b6d8[_0x170163(0xcf)](),_0x4ee0df['current']=null;}),[_0x2fcbe2,_0x266fad]),_0x51e734?l[_0x2d6354(0x11c)](f[_0x2d6354(0x168)],{'align':_0x2d6354(0x174),'disabled':_0x41986b===u['OFFLINE'],'className':_0x2d6354(0xeb),'overlay':l[_0x2d6354(0x11c)](W,{'status':_0x41986b,'coordinator':_0x51e734}),'children':l[_0x2d6354(0x11c)](_0x2d6354(0x15c),{'className':f[_0x2d6354(0xe5)](_0x2d6354(0xf4),{'univer-cursor-not-allowed':_0x41986b===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x41986b!==u[_0x2d6354(0xd2)]}),'type':_0x2d6354(0x15c),'children':l[_0x2d6354(0x11c)](R,{'className':_0x2d6354(0x147)})})}):null;}function W(_0x4878d8){const _0x111648=_0x53d800,{status:_0x8bfba3,coordinator:_0x4750f7}=_0x4878d8;switch(_0x8bfba3){case u['IDLE']:return l[_0x111648(0x11c)](G,{'coordinator':_0x4750f7});case u[_0x111648(0x116)]:return l[_0x111648(0x11c)](B,{'coordinator':_0x4750f7});case u['NOT_FOLLOWING']:return l[_0x111648(0x11c)](Y,{'coordinator':_0x4750f7});case u['OFFLINE']:return l['jsx'](J,{});case u[_0x111648(0x14c)]:return l[_0x111648(0x11c)](Z,{'coordinator':_0x4750f7});default:return null;}}function G(_0x477312){const _0x9d4442=_0x53d800,{coordinator:_0x14467b}=_0x477312;return l['jsxs'](l['Fragment'],{'children':[l[_0x9d4442(0x11c)]('div',{'className':_0x9d4442(0x158),'children':'Present\x20this\x20document'}),l[_0x9d4442(0x11c)](f[_0x9d4442(0xaa)],{'onClick':()=>_0x14467b[_0x9d4442(0x172)](),'children':'Start'})]});}function B(_0x38c420){const _0x114eb8=_0x53d800,{coordinator:_0x5bd7ba}=_0x38c420;return l[_0x114eb8(0x15f)](l[_0x114eb8(0xae)],{'children':[l['jsx'](_0x114eb8(0x179),{'className':_0x114eb8(0x158),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x114eb8(0x11c)](f[_0x114eb8(0xaa)],{'onClick':()=>_0x5bd7ba['stopFollowing'](),'children':_0x114eb8(0x11d)})]});}function Y(_0x22f918){const _0x5dba0b=_0x53d800,{coordinator:_0xa09aae}=_0x22f918;return l['jsxs'](l['Fragment'],{'children':[l[_0x5dba0b(0x11c)](_0x5dba0b(0x179),{'className':_0x5dba0b(0x158),'children':_0x5dba0b(0x127)}),l[_0x5dba0b(0x11c)](f['Button'],{'variant':'text','onClick':()=>_0xa09aae[_0x5dba0b(0x144)](),'children':'Start\x20following'})]});}function Z(_0x20a04d){const _0x43ebe7=_0x53d800,{coordinator:_0x1a20dc}=_0x20a04d;return l['jsxs'](l[_0x43ebe7(0xae)],{'children':[l[_0x43ebe7(0x11c)](_0x43ebe7(0x179),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x43ebe7(0xf3)}),l[_0x43ebe7(0x11c)](f[_0x43ebe7(0xaa)],{'variant':'default','onClick':()=>_0x1a20dc[_0x43ebe7(0x162)](),'children':'Stop\x20presenting'})]});}function J(){const _0x32bb4e=_0x53d800;return l['jsx'](l[_0x32bb4e(0xae)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x53d800(0x13e)],z=(_0xed61c3,_0x50f675,_0x46422b,_0x4b1622)=>{const _0x4fa45a=_0x53d800;for(var _0x44ff7a=_0x4b1622>0x1?void 0x0:_0x4b1622?K(_0x50f675,_0x46422b):_0x50f675,_0x546e7e=_0xed61c3[_0x4fa45a(0x151)]-0x1,_0x3e4033;_0x546e7e>=0x0;_0x546e7e--)(_0x3e4033=_0xed61c3[_0x546e7e])&&(_0x44ff7a=_0x3e4033(_0x44ff7a)||_0x44ff7a);return _0x44ff7a;},L=(_0x215ce9,_0x1841e4)=>(_0x463021,_0x4a174e)=>_0x1841e4(_0x463021,_0x4a174e,_0x215ce9);exports['DesktopLiveShareController']=class extends o[_0x53d800(0x14a)]{constructor(_0x35eb73,_0x15efdc){const _0x142003=_0x53d800;super(),this[_0x142003(0x134)]=_0x35eb73,this['_uiPartsService']=_0x15efdc,this[_0x142003(0x15e)]();}[_0x53d800(0x15e)](){const _0x2cd32a=_0x53d800;this[_0x2cd32a(0x15b)](this[_0x2cd32a(0x14b)][_0x2cd32a(0x150)](p[_0x2cd32a(0x166)][_0x2cd32a(0xac)],()=>p[_0x2cd32a(0x17f)]($,this[_0x2cd32a(0x134)])));}},exports[_0x53d800(0xe0)]=z([L(0x0,o[_0x53d800(0xc9)](o[_0x53d800(0xb1)])),L(0x1,p[_0x53d800(0x157)])],exports[_0x53d800(0xe0)]);const Q=_0x53d800(0xdd),w={};var X=Object[_0x53d800(0x13e)],ee=(_0x3460d2,_0x1bad2f,_0x126d75,_0x2a25b5)=>{const _0xd3d99a=_0x53d800;for(var _0x26fe63=_0x2a25b5>0x1?void 0x0:_0x2a25b5?X(_0x1bad2f,_0x126d75):_0x1bad2f,_0x11627b=_0x3460d2[_0xd3d99a(0x151)]-0x1,_0x206296;_0x11627b>=0x0;_0x11627b--)(_0x206296=_0x3460d2[_0x11627b])&&(_0x26fe63=_0x206296(_0x26fe63)||_0x26fe63);return _0x26fe63;},te=(_0x4ed0c6,_0x10668c)=>(_0x37ac08,_0x4e2073)=>_0x10668c(_0x37ac08,_0x4e2073,_0x4ed0c6);let m=class extends o[_0x53d800(0x14a)]{constructor(_0x418e6a){const _0x1df2db=_0x53d800;super(),this[_0x1df2db(0x10c)]=_0x418e6a,this[_0x1df2db(0x125)]();}[_0x53d800(0x125)](){const _0x2d5463=_0x53d800;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x2d5463(0xee)](_0x1be9ed=>{const _0x23dc29=_0x2d5463;this['disposeWithMe'](this['_liveShareService'][_0x23dc29(0x13d)](_0x1be9ed));});}};m=ee([te(0x0,o[_0x53d800(0xc9)](E))],m);var ie=Object['defineProperty'],se=Object[_0x53d800(0x13e)],ne=(_0x1d6dd1,_0x44b953,_0x5521ed)=>_0x44b953 in _0x1d6dd1?ie(_0x1d6dd1,_0x44b953,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5521ed}):_0x1d6dd1[_0x44b953]=_0x5521ed,re=(_0x15cd97,_0x4a73de,_0x4e6871,_0x1ee201)=>{for(var _0x35c6c8=_0x1ee201>0x1?void 0x0:_0x1ee201?se(_0x4a73de,_0x4e6871):_0x4a73de,_0x2cac12=_0x15cd97['length']-0x1,_0xbb60e9;_0x2cac12>=0x0;_0x2cac12--)(_0xbb60e9=_0x15cd97[_0x2cac12])&&(_0x35c6c8=_0xbb60e9(_0x35c6c8)||_0x35c6c8);return _0x35c6c8;},N=(_0x35f3be,_0x46a5b4)=>(_0x4e6d96,_0x45f216)=>_0x46a5b4(_0x4e6d96,_0x45f216,_0x35f3be),A=(_0x3ae76f,_0x2ff204,_0x74e9ae)=>ne(_0x3ae76f,typeof _0x2ff204!=_0x53d800(0xd4)?_0x2ff204+'':_0x2ff204,_0x74e9ae);const oe=_0x53d800(0xe3);exports[_0x53d800(0xe7)]=class extends o[_0x53d800(0x130)]{constructor(_0x35697f=w,_0x834be9,_0x364e88){const _0x1342d0=_0x53d800;super(),this[_0x1342d0(0x17a)]=_0x35697f,this[_0x1342d0(0x134)]=_0x834be9,this[_0x1342d0(0x164)]=_0x364e88;const {..._0x42f1c1}=o['merge']({},w,this[_0x1342d0(0x17a)]);this[_0x1342d0(0x164)][_0x1342d0(0x101)](Q,_0x42f1c1);}[_0x53d800(0x154)](){const _0x2ba5e9=_0x53d800;o[_0x2ba5e9(0x11b)](this[_0x2ba5e9(0x134)],o['mergeOverrideWithDependencies']([[E],[exports[_0x2ba5e9(0x159)]],[m],[exports[_0x2ba5e9(0xe0)]]],this[_0x2ba5e9(0x17a)][_0x2ba5e9(0xbe)])),o['touchDependencies'](this['_injector'],[[m]]);}[_0x53d800(0xbd)](){const _0x5c60d0=_0x53d800;o['touchDependencies'](this['_injector'],[[exports[_0x5c60d0(0xe0)]]]);}},A(exports[_0x53d800(0xe7)],'type',o['UniverInstanceType'][_0x53d800(0x176)]),A(exports[_0x53d800(0xe7)],_0x53d800(0xd1),oe),exports[_0x53d800(0xe7)]=re([o[_0x53d800(0x146)](b[_0x53d800(0x153)]),N(0x1,o[_0x53d800(0xc9)](o[_0x53d800(0xb1)])),N(0x2,o[_0x53d800(0xfa)])],exports[_0x53d800(0xe7)]),exports[_0x53d800(0xfc)]=$,exports[_0x53d800(0xc0)]=E,exports[_0x53d800(0x129)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x12a9bf=_0x2f2a;function _0x3dd5(){const _0x5f2880=['_initialize','2201724BYnWWM','startRow','get','getStatus','getLiveShareStatus','extend','2543090LXTrhI','stopFollowing','366163pcgVYB','No\x20active\x20workbook\x20found.','executeCommand','_injector','491330cNTyJw','getId','startFollowing','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2560104wIqQbo','getRenderById','LiveShareStatusEnum','getSheetId','startColumn','28DkheHX','getActiveSheet','syncExecuteCommand','3512079JFmqBs','tryStartPresenting','PRESENTING','stopPresenting','6920072IuRoQi','getLiveShareCoordinatorSync','9rkKoYx','getActiveWorkbook'];_0x3dd5=function(){return _0x5f2880;};return _0x3dd5();}(function(_0x272cd0,_0x1c629f){const _0x4b7043=_0x2f2a,_0x18bd25=_0x272cd0();while(!![]){try{const _0x50793a=-parseInt(_0x4b7043(0xed))/0x1+-parseInt(_0x4b7043(0xeb))/0x2+parseInt(_0x4b7043(0xdc))/0x3+parseInt(_0x4b7043(0xd9))/0x4*(parseInt(_0x4b7043(0xf1))/0x5)+-parseInt(_0x4b7043(0xd4))/0x6+parseInt(_0x4b7043(0xe5))/0x7+parseInt(_0x4b7043(0xe0))/0x8*(parseInt(_0x4b7043(0xe2))/0x9);if(_0x50793a===_0x1c629f)break;else _0x18bd25['push'](_0x18bd25['shift']());}catch(_0xb0d4b1){_0x18bd25['push'](_0x18bd25['shift']());}}}(_0x3dd5,0xedb88));import{LiveShareController as _0x2bb13b,LiveShareStatus as _0x1eceb5}from'@univerjs-pro/live-share';function _0x2f2a(_0x32c563,_0x250495){_0x32c563=_0x32c563-0xd0;const _0x3dd501=_0x3dd5();let _0x2f2ae5=_0x3dd501[_0x32c563];return _0x2f2ae5;}import{IRenderManagerService as _0x34741e}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x215939}from'@univerjs/sheets';import{SetScrollOperation as _0x575f44}from'@univerjs/sheets-ui';import{FRange as _0x98a522}from'@univerjs/sheets/facade';import{FUniver as _0x51b101,FEnum as _0x2ea423}from'@univerjs/core/facade';class I extends _0x98a522{[_0x12a9bf(0xe4)](_0x4e0c6a,_0x5cde2e,_0x2cdcd6,_0xb5d296,_0x3f0dc7){const _0x121f53=_0x12a9bf,_0x36e2bd=_0x4e0c6a[_0x121f53(0xe7)](_0x2bb13b),_0x53a775=_0x4e0c6a['get'](_0x34741e),_0x54f443=_0x5cde2e[_0x121f53(0xd2)](),_0x2b23fd=_0x5cde2e[_0x121f53(0xda)](),_0x28fee0=_0x36e2bd['getLiveShareCoordinatorSync'](_0x54f443);(_0x28fee0==null?void 0x0:_0x28fee0[_0x121f53(0xe8)]())!==_0x1eceb5[_0x121f53(0xde)]||(_0x2cdcd6[_0x121f53(0xd7)]()!==_0x2b23fd[_0x121f53(0xd7)]()&&this['_commandService'][_0x121f53(0xef)](_0x215939['id'],{'unitId':_0x54f443,'subUnitId':_0x2cdcd6[_0x121f53(0xd7)]()}),!_0x53a775[_0x121f53(0xd5)](_0x54f443))||_0x3f0dc7[_0x121f53(0xdb)](_0x575f44['id'],{'unitId':_0x5cde2e[_0x121f53(0xd2)](),'sheetId':_0x2cdcd6[_0x121f53(0xd7)](),'sheetViewStartRow':_0xb5d296[_0x121f53(0xe6)],'sheetViewStartColumn':_0xb5d296[_0x121f53(0xd8)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x98a522[_0x12a9bf(0xea)](I);class m extends _0x51b101{[_0x12a9bf(0xe9)](){const _0x163e4d=_0x12a9bf;var _0x160be8,_0x4e420e;const _0x416d77=this[_0x163e4d(0xf0)][_0x163e4d(0xe7)](_0x2bb13b),_0x31d42f=(_0x160be8=this[_0x163e4d(0xe3)]())==null?void 0x0:_0x160be8['getId']();if(!_0x31d42f)throw new Error(_0x163e4d(0xee));const _0x101af4=_0x416d77[_0x163e4d(0xe1)](_0x31d42f);return(_0x4e420e=_0x101af4==null?void 0x0:_0x101af4['getStatus']())!=null?_0x4e420e:_0x1eceb5['IDLE'];}['startFollowing'](){const _0x54276f=_0x12a9bf;var _0x35da66;const _0x3264ff=this['_injector']['get'](_0x2bb13b),_0x3ee98b=(_0x35da66=this[_0x54276f(0xe3)]())==null?void 0x0:_0x35da66[_0x54276f(0xd0)]();if(!_0x3ee98b)throw new Error(_0x54276f(0xee));const _0x40a926=_0x3264ff[_0x54276f(0xe1)](_0x3ee98b);if(!_0x40a926)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x40a926[_0x54276f(0xd1)]();}[_0x12a9bf(0xec)](){const _0x42e207=_0x12a9bf;var _0x16cea2;const _0x51c5d9=this[_0x42e207(0xf0)][_0x42e207(0xe7)](_0x2bb13b),_0xcd30ab=(_0x16cea2=this['getActiveWorkbook']())==null?void 0x0:_0x16cea2['getId']();if(!_0xcd30ab)throw new Error(_0x42e207(0xee));const _0x5eb6b1=_0x51c5d9[_0x42e207(0xe1)](_0xcd30ab);if(!_0x5eb6b1)throw new Error(_0x42e207(0xd3));_0x5eb6b1[_0x42e207(0xec)]();}['startPresenting'](){const _0x52af06=_0x12a9bf;var _0x1e9d07;const _0x10f880=this[_0x52af06(0xf0)][_0x52af06(0xe7)](_0x2bb13b),_0x3b871b=(_0x1e9d07=this[_0x52af06(0xe3)]())==null?void 0x0:_0x1e9d07['getId']();if(!_0x3b871b)throw new Error(_0x52af06(0xee));const _0x11d6ef=_0x10f880[_0x52af06(0xe1)](_0x3b871b);if(!_0x11d6ef)throw new Error(_0x52af06(0xd3));_0x11d6ef[_0x52af06(0xdd)]();}[_0x12a9bf(0xdf)](){const _0x389b59=_0x12a9bf;var _0x2b5157;const _0x46170b=this[_0x389b59(0xf0)][_0x389b59(0xe7)](_0x2bb13b),_0x51bdd8=(_0x2b5157=this['getActiveWorkbook']())==null?void 0x0:_0x2b5157[_0x389b59(0xd0)]();if(!_0x51bdd8)throw new Error('No\x20active\x20workbook\x20found.');const _0x6d3f28=_0x46170b['getLiveShareCoordinatorSync'](_0x51bdd8);if(!_0x6d3f28)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x6d3f28[_0x389b59(0xdf)]();}}_0x51b101[_0x12a9bf(0xea)](m);class C extends _0x2ea423{get[_0x12a9bf(0xd6)](){return _0x1eceb5;}}_0x2ea423[_0x12a9bf(0xea)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x94c2f4=_0x21c3;function _0x21c3(_0x446bb3,_0x18f90f){_0x446bb3=_0x446bb3-0x1d0;const _0x519940=_0x5199();let _0x21c38f=_0x519940[_0x446bb3];return _0x21c38f;}(function(_0x4c86f3,_0x134e2f){const _0x38792d=_0x21c3,_0x180f4e=_0x4c86f3();while(!![]){try{const _0x518ddf=-parseInt(_0x38792d(0x222))/0x1+parseInt(_0x38792d(0x247))/0x2+-parseInt(_0x38792d(0x21a))/0x3+-parseInt(_0x38792d(0x252))/0x4*(-parseInt(_0x38792d(0x24e))/0x5)+-parseInt(_0x38792d(0x237))/0x6*(-parseInt(_0x38792d(0x1fa))/0x7)+-parseInt(_0x38792d(0x206))/0x8+parseInt(_0x38792d(0x1f9))/0x9*(parseInt(_0x38792d(0x1d4))/0xa);if(_0x518ddf===_0x134e2f)break;else _0x180f4e['push'](_0x180f4e['shift']());}catch(_0x39cf1a){_0x180f4e['push'](_0x180f4e['shift']());}}}(_0x5199,0xdf6f1));var J=Object[_0x94c2f4(0x250)],K=(_0x37670d,_0x4433f6,_0x29d063)=>_0x4433f6 in _0x37670d?J(_0x37670d,_0x4433f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29d063}):_0x37670d[_0x4433f6]=_0x29d063,u=(_0x548a32,_0x5e598a,_0xf6d060)=>K(_0x548a32,typeof _0x5e598a!=_0x94c2f4(0x279)?_0x5e598a+'':_0x5e598a,_0xf6d060);import{Disposable as _0x237410,toDisposable as _0x479776,IUniverInstanceService as _0x131adf,Inject as _0x39e2ff,Injector as _0x1af462,IConfigService as _0x1163db,ICommandService as _0x3fe997,RxDisposable as _0x3c244d,UniverInstanceType as _0x1edb56,DisposableCollection as _0x56d0d3,CommandType as _0x11ab87,DependentOn as _0x298814,Plugin as _0x1f099d,merge as _0x38fee5,registerDependencies as _0x20cdf0,mergeOverrideWithDependencies as _0x1c6eec,touchDependencies as _0x5e0f2d}from'@univerjs/core';import{useDependency as _0x1a3369,useObservable as _0x43c83b,IUIPartsService as _0x189af9,BuiltInUIPart as _0x54c386,connectInjector as _0x40daf7}from'@univerjs/ui';import{jsx as _0x3b2e8c,jsxs as _0x5a8b02,Fragment as _0x34fda9}from'react/jsx-runtime';import{Dropdown as _0x580ca5,clsx as _0x38bcb7,Button as _0x4bf6a0}from'@univerjs/design';import{useRef as _0x5302de,createElement as _0x4c6606,forwardRef as _0x13d357,useState as _0x24f563,useEffect as _0x1d9b38}from'react';import{CollaborationEvent as _0x117a17,parseProtocolChangeset as _0x1a1c61}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x12178f,SessionStatus as _0x2ec079,UniverCollaborationClientPlugin as _0x4883e2}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x109733,SetWorksheetActiveOperation as _0x45b437}from'@univerjs/sheets';import{BehaviorSubject as _0x5ee00e,Subject as _0x13c737}from'rxjs';import{takeUntil as _0x2cd887,throttleTime as _0x3e7564}from'rxjs/operators';import{SetZoomRatioOperation as _0x33d3cc,SetScrollOperation as _0x1ac8e2}from'@univerjs/sheets-ui';function k({ref:_0xb065e,..._0x3a7358}){const _0x361340=_0x94c2f4,{icon:_0x54010d,id:_0x1cfe5c,className:_0x190099,extend:_0x57bce0,..._0x488160}=_0x3a7358,_0x2d8fc4=(_0x361340(0x24a)+_0x1cfe5c+'\x20'+(_0x190099||''))[_0x361340(0x244)](),_0x37b877=_0x5302de('_'+Oe());return G(_0x54010d,''+_0x1cfe5c,{'defIds':_0x54010d[_0x361340(0x1d3)],'idSuffix':_0x37b877[_0x361340(0x26e)]},{'ref':_0xb065e,'className':_0x2d8fc4,..._0x488160},_0x57bce0);}function G(_0x240805,_0x41f09f,_0x555cdc,_0x1cc80c,_0x1bfed9){const _0x28632a=_0x94c2f4;return _0x4c6606(_0x240805[_0x28632a(0x269)],{'key':_0x41f09f,...be(_0x240805,_0x555cdc,_0x1bfed9),..._0x1cc80c},(Ee(_0x240805,_0x555cdc)[_0x28632a(0x20d)]||[])[_0x28632a(0x270)]((_0x1bddaa,_0x1f5413)=>G(_0x1bddaa,_0x41f09f+'-'+_0x240805['tag']+'-'+_0x1f5413,_0x555cdc,void 0x0,_0x1bfed9)));}function be(_0x320310,_0x2e634b,_0x158a5f){const _0x5cf614=_0x94c2f4,_0x1a26f2={..._0x320310['attrs']};_0x158a5f!=null&&_0x158a5f[_0x5cf614(0x227)]&&_0x1a26f2[_0x5cf614(0x239)]===_0x5cf614(0x227)&&(_0x1a26f2['fill']=_0x158a5f[_0x5cf614(0x227)]),_0x320310[_0x5cf614(0x269)]===_0x5cf614(0x208)&&_0x1a26f2['id']&&(_0x1a26f2['id']=_0x1a26f2['id']+_0x2e634b[_0x5cf614(0x260)]),Object['entries'](_0x1a26f2)[_0x5cf614(0x233)](([_0x55f103,_0x18e607])=>{const _0xe5660b=_0x5cf614;_0x55f103===_0xe5660b(0x208)&&typeof _0x18e607==_0xe5660b(0x1d8)&&(_0x1a26f2[_0x55f103]=_0x18e607[_0xe5660b(0x266)](/url\(#(.*)\)/,'url(#$1'+_0x2e634b['idSuffix']+')'));});const {defIds:_0x6c0053}=_0x2e634b;return!_0x6c0053||_0x6c0053['length']===0x0||(_0x320310[_0x5cf614(0x269)]===_0x5cf614(0x224)&&_0x1a26f2[_0x5cf614(0x238)]&&(_0x1a26f2[_0x5cf614(0x238)]=_0x1a26f2[_0x5cf614(0x238)]+_0x2e634b[_0x5cf614(0x260)]),Object[_0x5cf614(0x229)](_0x1a26f2)[_0x5cf614(0x233)](([_0x38bb32,_0x575f36])=>{const _0x106096=_0x5cf614;typeof _0x575f36==_0x106096(0x1d8)&&(_0x1a26f2[_0x38bb32]=_0x575f36[_0x106096(0x266)](/url\(#(.*)\)/,'url(#$1'+_0x2e634b[_0x106096(0x260)]+')'));})),_0x1a26f2;}function Ee(_0x41659d,_0x1cb916){const _0x2cab9c=_0x94c2f4;var _0x4249a2;const {defIds:_0x4e6d2b}=_0x1cb916;return!_0x4e6d2b||_0x4e6d2b['length']===0x0?_0x41659d:_0x41659d[_0x2cab9c(0x269)]===_0x2cab9c(0x22c)&&((_0x4249a2=_0x41659d[_0x2cab9c(0x20d)])!=null&&_0x4249a2[_0x2cab9c(0x234)])?{..._0x41659d,'children':_0x41659d[_0x2cab9c(0x20d)][_0x2cab9c(0x270)](_0x46dd25=>typeof _0x46dd25['attrs']['id']==_0x2cab9c(0x1d8)&&_0x4e6d2b&&_0x4e6d2b[_0x2cab9c(0x25f)](_0x46dd25[_0x2cab9c(0x20b)]['id'])?{..._0x46dd25,'attrs':{..._0x46dd25[_0x2cab9c(0x20b)],'id':_0x46dd25[_0x2cab9c(0x20b)]['id']+_0x1cb916[_0x2cab9c(0x260)]}}:_0x46dd25)}:_0x41659d;}function Oe(){const _0x4f1be8=_0x94c2f4;return Math[_0x4f1be8(0x255)]()[_0x4f1be8(0x219)](0x24)[_0x4f1be8(0x1e5)](0x2,0x8);}k[_0x94c2f4(0x241)]=_0x94c2f4(0x212);const we={'tag':_0x94c2f4(0x25c),'attrs':{'xmlns':_0x94c2f4(0x263),'fill':_0x94c2f4(0x1d1),'viewBox':_0x94c2f4(0x267),'width':_0x94c2f4(0x277),'height':_0x94c2f4(0x277)},'children':[{'tag':_0x94c2f4(0x25d),'attrs':{'fill':_0x94c2f4(0x258),'d':_0x94c2f4(0x235)}},{'tag':_0x94c2f4(0x25d),'attrs':{'fill':_0x94c2f4(0x258),'d':_0x94c2f4(0x26d),'fillRule':_0x94c2f4(0x236),'clipRule':_0x94c2f4(0x236)}}]},W=_0x13d357(function(_0x3fe056,_0x2cc369){const _0x3f646b=_0x94c2f4;return _0x4c6606(k,Object[_0x3f646b(0x1d5)]({},_0x3fe056,{'id':_0x3f646b(0x1fb),'ref':_0x2cc369,'icon':we}));});W[_0x94c2f4(0x241)]='LiveShareIcon';class L extends _0x237410{constructor(){const _0x5a0ee4=_0x94c2f4;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x5a0ee4(0x27b),new Set());}[_0x94c2f4(0x25a)](_0x1dec7d){const _0x4b7c09=_0x94c2f4;return this[_0x4b7c09(0x1ee)][_0x4b7c09(0x26f)](_0x1dec7d),_0x479776(()=>this[_0x4b7c09(0x1ee)][_0x4b7c09(0x25b)](_0x1dec7d));}[_0x94c2f4(0x25e)](_0xc19384){const _0x1e5cd8=_0x94c2f4;return this['_reporters']['add'](_0xc19384),_0x479776(()=>this['_reporters'][_0x1e5cd8(0x25b)](_0xc19384));}['shouldShareOperation'](_0x356b1e){const _0x3460c6=_0x94c2f4;return this[_0x3460c6(0x1ee)]['has'](_0x356b1e);}[_0x94c2f4(0x231)](_0x5d3542){const _0x4197ef=_0x94c2f4;return Array[_0x4197ef(0x1fe)](this[_0x4197ef(0x27b)])[_0x4197ef(0x270)](_0x3f3ad7=>_0x3f3ad7(_0x5d3542));}}var Ne=Object[_0x94c2f4(0x1e3)],Y=(_0x24e75c,_0x508cc0,_0x3de33b,_0x4de27e)=>{const _0x5a3bd5=_0x94c2f4;for(var _0x4fe054=_0x4de27e>0x1?void 0x0:_0x4de27e?Ne(_0x508cc0,_0x3de33b):_0x508cc0,_0x233d13=_0x24e75c[_0x5a3bd5(0x234)]-0x1,_0x9dc5a5;_0x233d13>=0x0;_0x233d13--)(_0x9dc5a5=_0x24e75c[_0x233d13])&&(_0x4fe054=_0x9dc5a5(_0x4fe054)||_0x4fe054);return _0x4fe054;},_=(_0x5ba021,_0x2dc522)=>(_0x103223,_0x4a42bd)=>_0x2dc522(_0x103223,_0x4a42bd,_0x5ba021);let S=class extends _0x3c244d{constructor(_0x11278b,_0x50b451,_0x33cd12){const _0x58aa65=_0x94c2f4;super(),u(this,_0x58aa65(0x272),new Map()),(this[_0x58aa65(0x245)]=_0x11278b,this['_injector']=_0x50b451,this[_0x58aa65(0x1da)]=_0x33cd12,this[_0x58aa65(0x1d2)]());}async[_0x94c2f4(0x274)](_0x30146d){const _0x6d15e1=_0x94c2f4;return this[_0x6d15e1(0x272)]['has'](_0x30146d)||await this[_0x6d15e1(0x23d)](_0x30146d),this['_entities'][_0x6d15e1(0x205)](_0x30146d);}[_0x94c2f4(0x228)](_0x4c17df){var _0x2e4ab1;return(_0x2e4ab1=this['_entities']['get'](_0x4c17df))!=null?_0x2e4ab1:null;}[_0x94c2f4(0x1d2)](){const _0x435494=_0x94c2f4;this['_univerInstanceService'][_0x435494(0x211)](_0x1edb56[_0x435494(0x275)])[_0x435494(0x246)](_0x2cd887(this[_0x435494(0x1fd)]))[_0x435494(0x202)](async _0xe3d952=>{const _0x288c8e=_0x435494,_0x3a31c9=_0xe3d952['getUnitId']();this['_entities']['has'](_0x3a31c9)||this[_0x288c8e(0x23d)](_0x3a31c9);}),this[_0x435494(0x245)][_0x435494(0x1e1)](_0x1edb56[_0x435494(0x275)])['pipe'](_0x2cd887(this[_0x435494(0x1fd)]))[_0x435494(0x202)](_0x45f7ac=>{const _0x59258f=_0x435494,_0x2aeb58=_0x45f7ac[_0x59258f(0x1f2)](),_0x4bb934=this[_0x59258f(0x272)]['get'](_0x2aeb58);_0x4bb934==null||_0x4bb934[_0x59258f(0x1f3)]();});}async['_startLiveShareCoordinator'](_0x488194){const _0x33a5b0=_0x94c2f4,_0x5d3691=await this['_collabSessionService'][_0x33a5b0(0x1f8)](_0x488194),_0x1de098=this[_0x33a5b0(0x204)][_0x33a5b0(0x1eb)](N,_0x488194,_0x5d3691);return _0x1de098[_0x33a5b0(0x225)](),this[_0x33a5b0(0x272)][_0x33a5b0(0x217)](_0x488194,_0x1de098),_0x1de098;}};S=Y([_(0x0,_0x131adf),_(0x1,_0x39e2ff(_0x1af462)),_(0x2,_0x39e2ff(_0x12178f))],S);var c=(_0x221161=>(_0x221161[_0x94c2f4(0x22a)]=_0x94c2f4(0x207),_0x221161['IDLE']=_0x94c2f4(0x1de),_0x221161['FOLLOWING']=_0x94c2f4(0x24b),_0x221161['NOT_FOLLOWING']='not-following',_0x221161['PRESENTING']=_0x94c2f4(0x209),_0x221161))(c||{});const Ce=_0x94c2f4(0x23b),De=0xc8;let N=class extends _0x3c244d{constructor(_0x3c6de8,_0x1e0d6a,_0x48a41f,_0x4d0548,_0x303acf){const _0x2a724f=_0x94c2f4;super(),u(this,'_status$',new _0x5ee00e(_0x2a724f(0x1de))),u(this,_0x2a724f(0x218),this[_0x2a724f(0x1f1)][_0x2a724f(0x223)]()),u(this,_0x2a724f(0x1d2),!0x1),u(this,_0x2a724f(0x1e7),null),u(this,'_presenter',null),(this['_unitID']=_0x3c6de8,this[_0x2a724f(0x20f)]=_0x1e0d6a,this[_0x2a724f(0x1d0)]=_0x48a41f,this[_0x2a724f(0x226)]=_0x4d0548,this[_0x2a724f(0x1fc)]=_0x303acf);}get[_0x94c2f4(0x21e)](){const _0x10c3e8=_0x94c2f4;return this[_0x10c3e8(0x1f1)][_0x10c3e8(0x278)]();}[_0x94c2f4(0x1f3)](){const _0x5ee6ab=_0x94c2f4;var _0x439748;(_0x439748=this[_0x5ee6ab(0x1e7)])==null||_0x439748[_0x5ee6ab(0x1f3)](),this[_0x5ee6ab(0x1f1)]['next'](_0x5ee6ab(0x1de)),this[_0x5ee6ab(0x1f1)][_0x5ee6ab(0x1f6)]();}[_0x94c2f4(0x230)](){return this['_status'];}['init'](){const _0x14d99f=_0x94c2f4;this[_0x14d99f(0x1d2)]||(this['_init']=!0x0,this[_0x14d99f(0x20f)][_0x14d99f(0x210)][_0x14d99f(0x246)](_0x2cd887(this[_0x14d99f(0x1fd)]))[_0x14d99f(0x202)](_0x41ffd8=>{const _0x5407dd=_0x14d99f;switch(_0x41ffd8){case _0x2ec079[_0x5407dd(0x22a)]:this[_0x5407dd(0x1dd)]();break;case _0x2ec079['ONLINE']:this[_0x5407dd(0x1f0)]();break;}}),this[_0x14d99f(0x20f)]['event$']['pipe'](_0x2cd887(this[_0x14d99f(0x1fd)]))[_0x14d99f(0x202)](_0x511b8f=>{const _0x2fbae5=_0x14d99f,{eventID:_0x43efde}=_0x511b8f;switch(_0x43efde){case _0x117a17['LIVESHARE_NEW_HOST']:this[_0x2fbae5(0x1e0)](_0x511b8f);break;case _0x117a17[_0x2fbae5(0x22b)]:this[_0x2fbae5(0x1db)](_0x511b8f);break;case _0x117a17[_0x2fbae5(0x201)]:this['_handleTerminate']();break;case _0x117a17['NEW_CHANGESETS']:this[_0x2fbae5(0x21d)](_0x511b8f);break;}}));}[_0x94c2f4(0x1ff)](){const _0x3ed1ef=_0x94c2f4;this[_0x3ed1ef(0x20f)][_0x3ed1ef(0x1e6)]({'eventID':_0x117a17['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3ed1ef(0x1d7)],'userID':this[_0x3ed1ef(0x20f)][_0x3ed1ef(0x256)]()}},this[_0x3ed1ef(0x1d7)]);}['stopPresenting'](){const _0x3e21c3=_0x94c2f4;this['_status']==='presenting'&&(this[_0x3e21c3(0x1f1)]['next'](_0x3e21c3(0x1de)),this['_collabSession'][_0x3e21c3(0x1e6)]({'eventID':_0x117a17['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x3e21c3(0x1d7)]));}[_0x94c2f4(0x1ef)](){const _0x1b7ca6=_0x94c2f4;this[_0x1b7ca6(0x21e)]===_0x1b7ca6(0x26b)&&(this[_0x1b7ca6(0x1f1)]['next'](_0x1b7ca6(0x24b)),this[_0x1b7ca6(0x216)]());}[_0x94c2f4(0x220)](){const _0x2ad836=_0x94c2f4;this[_0x2ad836(0x21e)]===_0x2ad836(0x24b)&&this[_0x2ad836(0x214)]();}[_0x94c2f4(0x1e0)](_0x3366e7){const _0x15fd2c=_0x94c2f4,{presenter:_0x3fa34a}=_0x3366e7[_0x15fd2c(0x215)],_0x3d7902=this[_0x15fd2c(0x20f)]['getMemberID']();this[_0x15fd2c(0x22f)]=_0x3fa34a,_0x3fa34a===_0x3d7902?(this[_0x15fd2c(0x214)](),this['_startPresenting']()):this[_0x15fd2c(0x21e)]!=='not-following'&&(this['_stopPresenting'](),this[_0x15fd2c(0x216)]());}[_0x94c2f4(0x21c)](){const _0x39d8a9=_0x94c2f4,_0x92349={'eventID':_0x117a17[_0x39d8a9(0x253)]};this['_collabSession']['send'](_0x92349,this['_unitID']);}[_0x94c2f4(0x254)](){const _0x3fc57f=_0x94c2f4;this[_0x3fc57f(0x22f)]=null,this[_0x3fc57f(0x21e)]!=='presenting'&&this[_0x3fc57f(0x249)]();}[_0x94c2f4(0x21d)](_0x4b135a){const _0x5e05f9=_0x94c2f4;if(this[_0x5e05f9(0x21e)]==='following'&&this[_0x5e05f9(0x22f)]===_0x4b135a[_0x5e05f9(0x215)][_0x5e05f9(0x23c)]){const _0x59abe1=_0x1a1c61(_0x4b135a[_0x5e05f9(0x215)])['mutations']['reverse']()[_0x5e05f9(0x1f4)](_0x2e3f06=>_0x2e3f06['id']===_0x109733['id']);if(_0x59abe1){const _0x3b2243=_0x59abe1[_0x5e05f9(0x26a)][_0x5e05f9(0x22d)],_0xfa0724=_0x59abe1[_0x5e05f9(0x26a)][_0x5e05f9(0x259)]['id'];setTimeout(()=>{const _0x2eaf2e=_0x5e05f9;this[_0x2eaf2e(0x1fc)][_0x2eaf2e(0x273)](_0x45b437['id'],{'unitId':_0x3b2243,'subUnitId':_0xfa0724},{'fromCollab':!0x0});});}}}[_0x94c2f4(0x21b)](){const _0x5c5dbd=_0x94c2f4;this[_0x5c5dbd(0x1f1)][_0x5c5dbd(0x1f7)]('presenting');const _0x3eb12d=new Map(),_0x54656=this[_0x5c5dbd(0x1e7)]=new _0x56d0d3();_0x54656[_0x5c5dbd(0x26f)](_0x479776(()=>{const _0xd23b2d=_0x5c5dbd;_0x3eb12d['forEach'](_0x4b4532=>_0x4b4532[_0xd23b2d(0x1f6)]()),_0x3eb12d[_0xd23b2d(0x264)]();})),_0x54656['add'](this[_0x5c5dbd(0x1fc)][_0x5c5dbd(0x257)](_0x516c6c=>{const _0x12b720=_0x5c5dbd;var _0x160f74;if(_0x516c6c[_0x12b720(0x23f)]!==_0x11ab87[_0x12b720(0x22e)]||!this['_liveShareService'][_0x12b720(0x1ea)](_0x516c6c['id']))return;const {id:_0x2e50cc}=_0x516c6c;let _0x42f196;_0x3eb12d[_0x12b720(0x242)](_0x2e50cc)?_0x42f196=_0x3eb12d[_0x12b720(0x205)](_0x2e50cc):(_0x42f196=new _0x13c737(),_0x3eb12d[_0x12b720(0x217)](_0x2e50cc,_0x42f196),_0x42f196[_0x12b720(0x246)](_0x3e7564((_0x160f74=this[_0x12b720(0x1d0)]['getConfig'](Ce))!=null?_0x160f74:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x12b720(0x202)](_0x22c8db=>{const _0x4d1d81=_0x12b720;this[_0x4d1d81(0x20f)][_0x4d1d81(0x1e6)]({'eventID':_0x117a17['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x22c8db['id']]:{'id':_0x22c8db['id'],'params':JSON[_0x4d1d81(0x251)](_0x22c8db[_0x4d1d81(0x26a)])}}}},this[_0x4d1d81(0x1d7)]);})),_0x42f196[_0x12b720(0x1f7)](_0x516c6c);})),this[_0x5c5dbd(0x226)][_0x5c5dbd(0x231)](this[_0x5c5dbd(0x1d7)])[_0x5c5dbd(0x233)](_0x21d879=>this['_collabSession'][_0x5c5dbd(0x1e6)]({'eventID':_0x117a17[_0x5c5dbd(0x22b)],'data':{'unitID':this[_0x5c5dbd(0x1d7)],'operations':{[_0x21d879['id']]:{'id':_0x21d879['id'],'params':JSON[_0x5c5dbd(0x251)](_0x21d879[_0x5c5dbd(0x26a)])}}}},this[_0x5c5dbd(0x1d7)]));}['_stopPresenting'](){const _0x2a0dcb=_0x94c2f4;var _0x2c3d1a;this[_0x2a0dcb(0x1f1)][_0x2a0dcb(0x1f7)](_0x2a0dcb(0x1de)),(_0x2c3d1a=this['_commandDisposable'])==null||_0x2c3d1a[_0x2a0dcb(0x1f3)](),this[_0x2a0dcb(0x1e7)]=null;}['_startFollowing'](){const _0x130462=_0x94c2f4;var _0x54879a;(_0x54879a=this['_commandDisposable'])==null||_0x54879a['dispose'](),this['_status$'][_0x130462(0x1f7)](_0x130462(0x24b));}[_0x94c2f4(0x249)](){const _0x5e30bf=_0x94c2f4;var _0x21248e;this['_status$'][_0x5e30bf(0x1f7)](_0x5e30bf(0x1de)),(_0x21248e=this[_0x5e30bf(0x1e7)])==null||_0x21248e[_0x5e30bf(0x1f3)](),this['_commandDisposable']=null;}[_0x94c2f4(0x214)](){const _0x5a4a24=_0x94c2f4;var _0x134633;this['_status$'][_0x5a4a24(0x1f7)](_0x5a4a24(0x26b)),(_0x134633=this[_0x5a4a24(0x1e7)])==null||_0x134633['dispose']();}[_0x94c2f4(0x1db)](_0x2358d9){const _0x4d8d5d=_0x94c2f4;if(['presenting',_0x4d8d5d(0x26b),_0x4d8d5d(0x207)]['includes'](this[_0x4d8d5d(0x21e)])||!_0x2358d9[_0x4d8d5d(0x215)]['presenter']||_0x2358d9[_0x4d8d5d(0x215)]['presenter']===this[_0x4d8d5d(0x20f)]['getMemberID']())return;this[_0x4d8d5d(0x21e)]===_0x4d8d5d(0x1de)&&this[_0x4d8d5d(0x216)]();const _0x53124e=_0x2358d9[_0x4d8d5d(0x215)][_0x4d8d5d(0x1e9)];Object[_0x4d8d5d(0x1d6)](_0x53124e)['forEach'](_0x39f73c=>{const _0x55a1dc=_0x4d8d5d;this[_0x55a1dc(0x1fc)][_0x55a1dc(0x273)](_0x39f73c['id'],_0x39f73c[_0x55a1dc(0x26a)]?JSON[_0x55a1dc(0x20c)](_0x39f73c['params']):null,{'fromCollab':!0x0});});}[_0x94c2f4(0x1dd)](){const _0x4e765c=_0x94c2f4;var _0x304165;this[_0x4e765c(0x1f1)][_0x4e765c(0x1f7)](_0x4e765c(0x207)),(_0x304165=this['_commandDisposable'])==null||_0x304165[_0x4e765c(0x1f3)]();}[_0x94c2f4(0x1f0)](){const _0x14dc6a=_0x94c2f4;this['_status$']['next'](_0x14dc6a(0x1de)),this['_fetchOperations']();}};N=Y([_(0x2,_0x1163db),_(0x3,_0x39e2ff(L)),_(0x4,_0x3fe997)],N);function _0x5199(){const _0x1a36fe=['_startPresenting','_fetchOperations','_handleNewChangeSets','_status','then','stopFollowing','live-share.config','919047HgGWSl','asObservable','use','init','_liveShareService','colorChannel1','getLiveShareCoordinatorSync','entries','OFFLINE','LIVESHARE_OPERATION','defs','unitId','OPERATION','_presenter','getStatus','getInitialStates','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','forEach','length','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','evenodd','636PCVUKY','xlink:href','fill','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SAME_OPERATION_SHARE_INTERVAL','memberID','_startLiveShareCoordinator','Stop\x20following','type','UNIVER_UNKNOWN','displayName','has','_mountLiveShare','trim','_univerInstanceService','pipe','709408UIgFwJ','NOT_FOLLOWING','_beIdle','univerjs-icon\x20univerjs-icon-','following','unsubscribe','PRESENTING','200yEcOGr','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','stringify','25888YOuzwn','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','random','getMemberID','onCommandExecuted','currentColor','sheet','registerSharedOperation','delete','svg','path','registerInitialStateReporter','includes','idSuffix','Present\x20this\x20document','onStarting','http://www.w3.org/2000/svg','clear','IDLE','replace','0\x200\x2017\x2017','You\x27re\x20not\x20following\x20the\x20presenter','tag','params','not-following','end','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','current','add','map','HEADER_MENU','_entities','executeCommand','getLiveShareCoordinator','UNIVER_SHEET','setConfig','1em','getValue','symbol','UNIVER_LIVE_SHARE_PLUGIN','_reporters','getCurrentTypeOfUnit$','_configService','none','_init','defIds','8190LUoSJV','assign','values','_unitID','string','pluginName','_collabSessionService','_handleOperation','_config','_handleOffline','idle','div','_handleNewHost','getTypeOfUnitDisposed$','Start','getOwnPropertyDescriptor','You\x27re\x20following\x20the\x20presenter','substring','send','_commandDisposable','_uiPartsService','operations','shouldShareOperation','createInstance','button','onRendered','_sharedOperations','startFollowing','_handleOnline','_status$','getUnitId','dispose','find','Start\x20following','complete','next','requireSession','11079GKKPzB','53473HiYgsm','live-share-icon','_commandService','dispose$','from','tryStartPresenting','override','LIVESHARE_TERMINATE','subscribe','univer-size-4','_injector','get','4224688NAsBSz','offline','mask','presenting','disposeWithMe','attrs','parse','children','registerComponent','_collabSession','sessionStatus$','getTypeOfUnitAdded$','UniverIcon','FOLLOWING','_stopFollowing','data','_startFollowing','set','status$','toString','207567JEysXj'];_0x5199=function(){return _0x1a36fe;};return _0x5199();}function Le(){const _0x351e49=_0x94c2f4,_0x36c017=_0x1a3369(S),_0x12c744=_0x1a3369(_0x131adf),_0x5280d1=_0x43c83b(()=>_0x12c744[_0x351e49(0x27c)](_0x1edb56[_0x351e49(0x275)]),void 0x0,!0x1,[]),[_0x45eb19,_0xb80a]=_0x24f563(null),[_0x47808b,_0x235c0a]=_0x24f563(c[_0x351e49(0x265)]),_0x5714da=_0x5302de(null);return _0x1d9b38(()=>(_0x5280d1&&_0x36c017[_0x351e49(0x274)](_0x5280d1['getUnitId']())[_0x351e49(0x21f)](_0x338243=>{const _0x133b34=_0x351e49;_0xb80a(_0x338243),_0x5714da[_0x133b34(0x26e)]=_0x338243['status$'][_0x133b34(0x202)](_0x4152a6=>{_0x235c0a(_0x4152a6);});}),()=>{const _0x1e5e92=_0x351e49;var _0x317318;(_0x317318=_0x5714da[_0x1e5e92(0x26e)])==null||_0x317318[_0x1e5e92(0x24c)](),_0x5714da[_0x1e5e92(0x26e)]=null;}),[_0x5280d1,_0x36c017]),_0x45eb19?_0x3b2e8c(_0x580ca5,{'align':_0x351e49(0x26c),'disabled':_0x47808b===c[_0x351e49(0x22a)],'className':_0x351e49(0x232),'overlay':_0x3b2e8c(Re,{'status':_0x47808b,'coordinator':_0x45eb19}),'children':_0x3b2e8c(_0x351e49(0x1ec),{'className':_0x38bcb7(_0x351e49(0x23a),{'univer-cursor-not-allowed':_0x47808b===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47808b!==c[_0x351e49(0x22a)]}),'type':_0x351e49(0x1ec),'children':_0x3b2e8c(W,{'className':_0x351e49(0x203)})})}):null;}function Re(_0x9e5441){const _0xee2a99=_0x94c2f4,{status:_0x2032fd,coordinator:_0x2a92e9}=_0x9e5441;switch(_0x2032fd){case c[_0xee2a99(0x265)]:return _0x3b2e8c($e,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x213)]:return _0x3b2e8c(xe,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x248)]:return _0x3b2e8c(Pe,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x22a)]:return _0x3b2e8c(Te,{});case c[_0xee2a99(0x24d)]:return _0x3b2e8c(Ae,{'coordinator':_0x2a92e9});default:return null;}}function $e(_0x36800c){const _0x58d5c6=_0x94c2f4,{coordinator:_0x86e0a8}=_0x36800c;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c('div',{'className':_0x58d5c6(0x24f),'children':_0x58d5c6(0x261)}),_0x3b2e8c(_0x4bf6a0,{'onClick':()=>_0x86e0a8[_0x58d5c6(0x1ff)](),'children':_0x58d5c6(0x1e2)})]});}function xe(_0x41074d){const _0x3878ce=_0x94c2f4,{coordinator:_0x519a31}=_0x41074d;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x3878ce(0x1df),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3878ce(0x1e4)}),_0x3b2e8c(_0x4bf6a0,{'onClick':()=>_0x519a31[_0x3878ce(0x220)](),'children':_0x3878ce(0x23e)})]});}function Pe(_0x4209f1){const _0x48fc4a=_0x94c2f4,{coordinator:_0x21a2b7}=_0x4209f1;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x48fc4a(0x1df),{'className':_0x48fc4a(0x24f),'children':_0x48fc4a(0x268)}),_0x3b2e8c(_0x4bf6a0,{'variant':'text','onClick':()=>_0x21a2b7[_0x48fc4a(0x1ef)](),'children':_0x48fc4a(0x1f5)})]});}function Ae(_0x50433d){const _0x13d664=_0x94c2f4,{coordinator:_0x2de63b}=_0x50433d;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x13d664(0x1df),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x3b2e8c(_0x4bf6a0,{'variant':'default','onClick':()=>_0x2de63b['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){return _0x3b2e8c(_0x34fda9,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x94c2f4(0x1e3)],He=(_0x4ee589,_0x41e877,_0x5d2bc7,_0x1ec7e2)=>{for(var _0xf6315a=_0x1ec7e2>0x1?void 0x0:_0x1ec7e2?Fe(_0x41e877,_0x5d2bc7):_0x41e877,_0x357fa3=_0x4ee589['length']-0x1,_0x50ca30;_0x357fa3>=0x0;_0x357fa3--)(_0x50ca30=_0x4ee589[_0x357fa3])&&(_0xf6315a=_0x50ca30(_0xf6315a)||_0xf6315a);return _0xf6315a;},A=(_0x54abe0,_0x111759)=>(_0x10a906,_0xfe785d)=>_0x111759(_0x10a906,_0xfe785d,_0x54abe0);let m=class extends _0x237410{constructor(_0x35f642,_0x326940){const _0x433d42=_0x94c2f4;super(),this[_0x433d42(0x204)]=_0x35f642,this['_uiPartsService']=_0x326940,this['_mountLiveShare']();}[_0x94c2f4(0x243)](){const _0x46b4b5=_0x94c2f4;this[_0x46b4b5(0x20a)](this[_0x46b4b5(0x1e8)][_0x46b4b5(0x20e)](_0x54c386[_0x46b4b5(0x271)],()=>_0x40daf7(Le,this[_0x46b4b5(0x204)])));}};m=He([A(0x0,_0x39e2ff(_0x1af462)),A(0x1,_0x189af9)],m);const ye=_0x94c2f4(0x221),T={};var Ue=Object[_0x94c2f4(0x1e3)],Ve=(_0x4b6f53,_0x3ef43d,_0x15c32b,_0x590121)=>{for(var _0x173e04=_0x590121>0x1?void 0x0:_0x590121?Ue(_0x3ef43d,_0x15c32b):_0x3ef43d,_0x300e9=_0x4b6f53['length']-0x1,_0x20d0df;_0x300e9>=0x0;_0x300e9--)(_0x20d0df=_0x4b6f53[_0x300e9])&&(_0x173e04=_0x20d0df(_0x173e04)||_0x173e04);return _0x173e04;},je=(_0x1dce1c,_0x18628f)=>(_0x4bf7ce,_0x54c527)=>_0x18628f(_0x4bf7ce,_0x54c527,_0x1dce1c);let I=class extends _0x237410{constructor(_0x48fd1b){const _0x517999=_0x94c2f4;super(),this[_0x517999(0x226)]=_0x48fd1b,this['_init']();}['_init'](){const _0x1d05b8=_0x94c2f4;[_0x33d3cc['id'],_0x1ac8e2['id'],_0x45b437['id']][_0x1d05b8(0x233)](_0x2aa60b=>{const _0x3851a6=_0x1d05b8;this[_0x3851a6(0x20a)](this[_0x3851a6(0x226)][_0x3851a6(0x25a)](_0x2aa60b));});}};I=Ve([je(0x0,_0x39e2ff(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x25b41c,_0xc9ab13,_0x373b7a)=>_0xc9ab13 in _0x25b41c?Me(_0x25b41c,_0xc9ab13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x373b7a}):_0x25b41c[_0xc9ab13]=_0x373b7a,We=(_0x448b4b,_0x18ed3d,_0x381973,_0x421da2)=>{const _0x4317f8=_0x94c2f4;for(var _0x39ec83=_0x421da2>0x1?void 0x0:_0x421da2?ke(_0x18ed3d,_0x381973):_0x18ed3d,_0xefb135=_0x448b4b[_0x4317f8(0x234)]-0x1,_0x27f4d5;_0xefb135>=0x0;_0xefb135--)(_0x27f4d5=_0x448b4b[_0xefb135])&&(_0x39ec83=_0x27f4d5(_0x39ec83)||_0x39ec83);return _0x39ec83;},F=(_0x25f3bc,_0x4a93e5)=>(_0x311f14,_0x1147ea)=>_0x4a93e5(_0x311f14,_0x1147ea,_0x25f3bc),B=(_0x24ac65,_0x1c5268,_0x2aba29)=>Ge(_0x24ac65,typeof _0x1c5268!=_0x94c2f4(0x279)?_0x1c5268+'':_0x1c5268,_0x2aba29);const Ye=_0x94c2f4(0x27a);let b=class extends _0x1f099d{constructor(_0x152420=T,_0x59ea89,_0x51de){const _0x2d3149=_0x94c2f4;super(),this[_0x2d3149(0x1dc)]=_0x152420,this[_0x2d3149(0x204)]=_0x59ea89,this[_0x2d3149(0x1d0)]=_0x51de;const {..._0x3f9fb8}=_0x38fee5({},T,this['_config']);this['_configService'][_0x2d3149(0x276)](ye,_0x3f9fb8);}[_0x94c2f4(0x262)](){const _0x172bdc=_0x94c2f4;_0x20cdf0(this[_0x172bdc(0x204)],_0x1c6eec([[L],[S],[I],[m]],this[_0x172bdc(0x1dc)][_0x172bdc(0x200)])),_0x5e0f2d(this['_injector'],[[I]]);}[_0x94c2f4(0x1ed)](){_0x5e0f2d(this['_injector'],[[m]]);}};B(b,_0x94c2f4(0x23f),_0x1edb56[_0x94c2f4(0x240)]),B(b,_0x94c2f4(0x1d9),Ye),b=We([_0x298814(_0x4883e2),F(0x1,_0x39e2ff(_0x1af462)),F(0x2,_0x1163db)],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 _0x457e80=_0x2812;(function(_0x2c63ea,_0x62541b){const _0x21b1b7=_0x2812,_0x59ae53=_0x2c63ea();while(!![]){try{const _0x5dfd38=parseInt(_0x21b1b7(0x12c))/0x1*(-parseInt(_0x21b1b7(0x14f))/0x2)+-parseInt(_0x21b1b7(0x1c3))/0x3*(parseInt(_0x21b1b7(0x1bf))/0x4)+parseInt(_0x21b1b7(0x147))/0x5*(parseInt(_0x21b1b7(0x177))/0x6)+parseInt(_0x21b1b7(0x12a))/0x7+parseInt(_0x21b1b7(0x158))/0x8+-parseInt(_0x21b1b7(0x1b1))/0x9+parseInt(_0x21b1b7(0x1b9))/0xa;if(_0x5dfd38===_0x62541b)break;else _0x59ae53['push'](_0x59ae53['shift']());}catch(_0x17e0da){_0x59ae53['push'](_0x59ae53['shift']());}}}(_0x4fed,0x5dcb0));var J=Object[_0x457e80(0x196)],K=(_0x4bbf97,_0x2dbdb7,_0x53c3db)=>_0x2dbdb7 in _0x4bbf97?J(_0x4bbf97,_0x2dbdb7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53c3db}):_0x4bbf97[_0x2dbdb7]=_0x53c3db,u=(_0x2ac2e6,_0x10b15a,_0x2b9414)=>K(_0x2ac2e6,typeof _0x10b15a!=_0x457e80(0x12e)?_0x10b15a+'':_0x10b15a,_0x2b9414);import{Disposable as _0x1dbba8,toDisposable as _0x2b7383,IUniverInstanceService as _0x409e69,Inject as _0x2cb216,Injector as _0x1ed2ca,IConfigService as _0x33b07b,ICommandService as _0x1849e6,RxDisposable as _0x123426,UniverInstanceType as _0x49fe72,DisposableCollection as _0x452cb9,CommandType as _0x16215c,DependentOn as _0x26a88b,Plugin as _0x36cb3f,merge as _0x3205c5,registerDependencies as _0x531e72,mergeOverrideWithDependencies as _0x5d731b,touchDependencies as _0x230ca3}from'@univerjs/core';import{useDependency as _0x10658c,useObservable as _0x464b8d,IUIPartsService as _0x5cd8c2,BuiltInUIPart as _0x57f012,connectInjector as _0x3cfc29}from'@univerjs/ui';function _0x4fed(){const _0x41e0a3=['send','Start\x20following','attrs','registerSharedOperation','clear','div','mask','then','string','executeCommand','Stop\x20following','delete','type','_fetchOperations','idle','includes','LIVESHARE_TERMINATE','_mountLiveShare','_presenter','currentColor','_handleNewChangeSets','ONLINE','IDLE','end','LIVESHARE_REQUEST_HOST','6tWaOfg','has','_configService','dispose','evenodd','registerComponent','xlink:href','_entities','createInstance','UNIVER_LIVE_SHARE_PLUGIN','pluginName','live-share.config','pipe','_injector','_status$','requireSession','override','assign','values','getUnitId','operations','tryStartPresenting','_collabSession','unitId','_liveShareService','_commandDisposable','tag','next','OFFLINE','following','length','defineProperty','Present\x20this\x20document','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','toString','UNIVER_UNKNOWN','_startPresenting','stopPresenting','_handleOperation','forEach','sheet','univerjs-icon\x20univerjs-icon-','get','button','UniverIcon','_startFollowing','colorChannel1','OPERATION','dispose$','SAME_OPERATION_SHARE_INTERVAL','_sharedOperations','replace','presenter','url(#$1','data','default','_handleOffline','getLiveShareCoordinator','3261258eTdobT','event$','You\x27re\x20presenting\x20the\x20document','LiveShareIcon','univer-size-4','_status','FOLLOWING','_uiPartsService','317930XQyvAs','getOwnPropertyDescriptor','You\x27are\x20offline.','parse','0\x200\x2017\x2017','http://www.w3.org/2000/svg','1004tWAbaf','LIVESHARE_FETCH_OPERATIONS','children','asObservable','3867aFzMeo','memberID','sessionStatus$','_reporters','status$','_unitID','use','5126814ZaiiOU','onCommandExecuted','7606AeYrnj','params','symbol','_univerInstanceService','current','stopFollowing','startFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','disposeWithMe','complete','defs','add','_handleTerminate','shouldShareOperation','getMemberID','map','path','_config','_commandService','_stopFollowing','unsubscribe','_handleOnline','init','reverse','random','getLiveShareCoordinatorSync','defIds','3056245ynkjcx','entries','LIVESHARE_OPERATION','_init','_stopPresenting','presenting','not-following','displayName','118CUvrQb','UNIVER_SHEET','getInitialStates','idSuffix','onRendered','set','_handleNewHost','fill','PRESENTING','1147096VvkULi','Start','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','_collabSessionService','_startLiveShareCoordinator','subscribe'];_0x4fed=function(){return _0x41e0a3;};return _0x4fed();}import{jsx as _0x20f1bf,jsxs as _0x7c6f4a,Fragment as _0x4ea446}from'react/jsx-runtime';import{Dropdown as _0x453919,clsx as _0x40f0b2,Button as _0x588942}from'@univerjs/design';import{useRef as _0x1cdb79,createElement as _0x1a7b27,forwardRef as _0x15364b,useState as _0x408c56,useEffect as _0x14ee1d}from'react';import{CollaborationEvent as _0x40f9b1,parseProtocolChangeset as _0x55d15c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x379963,SessionStatus as _0x3602b9,UniverCollaborationClientPlugin as _0x4cf46e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x17b5b6,SetWorksheetActiveOperation as _0x5d7627}from'@univerjs/sheets';import{BehaviorSubject as _0x2d4397,Subject as _0x45a108}from'rxjs';import{takeUntil as _0x1446cd,throttleTime as _0x36d9d3}from'rxjs/operators';import{SetZoomRatioOperation as _0x592b93,SetScrollOperation as _0x593fcd}from'@univerjs/sheets-ui';function k({ref:_0x11d235,..._0x5e4dcb}){const _0x5b6dd3=_0x457e80,{icon:_0x48ac9e,id:_0x5f2dae,className:_0x460634,extend:_0x4d0ee7,..._0x338891}=_0x5e4dcb,_0x59f2a5=(_0x5b6dd3(0x1a0)+_0x5f2dae+'\x20'+(_0x460634||''))['trim'](),_0x5d8957=_0x1cdb79('_'+Oe());return G(_0x48ac9e,''+_0x5f2dae,{'defIds':_0x48ac9e[_0x5b6dd3(0x146)],'idSuffix':_0x5d8957[_0x5b6dd3(0x130)]},{'ref':_0x11d235,'className':_0x59f2a5,..._0x338891},_0x4d0ee7);}function G(_0x23b7a8,_0x730401,_0x34c77a,_0x30b007,_0x292573){const _0x2a6d4f=_0x457e80;return _0x1a7b27(_0x23b7a8[_0x2a6d4f(0x191)],{'key':_0x730401,...be(_0x23b7a8,_0x34c77a,_0x292573),..._0x30b007},(Ee(_0x23b7a8,_0x34c77a)[_0x2a6d4f(0x1c1)]||[])[_0x2a6d4f(0x13b)]((_0x1ecb25,_0x1874ba)=>G(_0x1ecb25,_0x730401+'-'+_0x23b7a8['tag']+'-'+_0x1874ba,_0x34c77a,void 0x0,_0x292573)));}function be(_0x3a45cb,_0x3365b1,_0x3369d8){const _0x410a69=_0x457e80,_0x3bf41e={..._0x3a45cb[_0x410a69(0x160)]};_0x3369d8!=null&&_0x3369d8[_0x410a69(0x1a5)]&&_0x3bf41e[_0x410a69(0x156)]==='colorChannel1'&&(_0x3bf41e['fill']=_0x3369d8[_0x410a69(0x1a5)]),_0x3a45cb[_0x410a69(0x191)]===_0x410a69(0x164)&&_0x3bf41e['id']&&(_0x3bf41e['id']=_0x3bf41e['id']+_0x3365b1[_0x410a69(0x152)]),Object[_0x410a69(0x148)](_0x3bf41e)[_0x410a69(0x19e)](([_0xa65e1c,_0x2ea8d8])=>{const _0x37d730=_0x410a69;_0xa65e1c===_0x37d730(0x164)&&typeof _0x2ea8d8==_0x37d730(0x166)&&(_0x3bf41e[_0xa65e1c]=_0x2ea8d8[_0x37d730(0x1aa)](/url\(#(.*)\)/,_0x37d730(0x1ac)+_0x3365b1['idSuffix']+')'));});const {defIds:_0x4782f6}=_0x3365b1;return!_0x4782f6||_0x4782f6[_0x410a69(0x195)]===0x0||(_0x3a45cb[_0x410a69(0x191)]===_0x410a69(0x129)&&_0x3bf41e[_0x410a69(0x17d)]&&(_0x3bf41e[_0x410a69(0x17d)]=_0x3bf41e['xlink:href']+_0x3365b1[_0x410a69(0x152)]),Object[_0x410a69(0x148)](_0x3bf41e)[_0x410a69(0x19e)](([_0x1dc1c9,_0x1b4aa4])=>{const _0x5916e1=_0x410a69;typeof _0x1b4aa4==_0x5916e1(0x166)&&(_0x3bf41e[_0x1dc1c9]=_0x1b4aa4['replace'](/url\(#(.*)\)/,'url(#$1'+_0x3365b1['idSuffix']+')'));})),_0x3bf41e;}function Ee(_0x3363d9,_0x14428d){const _0x4c3def=_0x457e80;var _0x2d784e;const {defIds:_0x422d84}=_0x14428d;return!_0x422d84||_0x422d84[_0x4c3def(0x195)]===0x0?_0x3363d9:_0x3363d9[_0x4c3def(0x191)]===_0x4c3def(0x136)&&((_0x2d784e=_0x3363d9[_0x4c3def(0x1c1)])!=null&&_0x2d784e[_0x4c3def(0x195)])?{..._0x3363d9,'children':_0x3363d9[_0x4c3def(0x1c1)][_0x4c3def(0x13b)](_0x46d4d6=>typeof _0x46d4d6[_0x4c3def(0x160)]['id']=='string'&&_0x422d84&&_0x422d84[_0x4c3def(0x16d)](_0x46d4d6[_0x4c3def(0x160)]['id'])?{..._0x46d4d6,'attrs':{..._0x46d4d6['attrs'],'id':_0x46d4d6[_0x4c3def(0x160)]['id']+_0x14428d[_0x4c3def(0x152)]}}:_0x46d4d6)}:_0x3363d9;}function Oe(){const _0x27b388=_0x457e80;return Math[_0x27b388(0x144)]()[_0x27b388(0x199)](0x24)['substring'](0x2,0x8);}k[_0x457e80(0x14e)]=_0x457e80(0x1a3);const we={'tag':'svg','attrs':{'xmlns':_0x457e80(0x1be),'fill':'none','viewBox':_0x457e80(0x1bd),'width':'1em','height':'1em'},'children':[{'tag':_0x457e80(0x13c),'attrs':{'fill':_0x457e80(0x171),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x457e80(0x171),'d':_0x457e80(0x15a),'fillRule':_0x457e80(0x17b),'clipRule':_0x457e80(0x17b)}}]},W=_0x15364b(function(_0x4aef97,_0x1428d6){const _0x57f284=_0x457e80;return _0x1a7b27(k,Object[_0x57f284(0x188)]({},_0x4aef97,{'id':'live-share-icon','ref':_0x1428d6,'icon':we}));});W[_0x457e80(0x14e)]=_0x457e80(0x1b4);class L extends _0x1dbba8{constructor(){const _0x81ba0f=_0x457e80;super(...arguments),u(this,_0x81ba0f(0x1a9),new Set()),u(this,_0x81ba0f(0x126),new Set());}[_0x457e80(0x161)](_0x3a580f){const _0x7c62e3=_0x457e80;return this['_sharedOperations'][_0x7c62e3(0x137)](_0x3a580f),_0x2b7383(()=>this[_0x7c62e3(0x1a9)][_0x7c62e3(0x169)](_0x3a580f));}['registerInitialStateReporter'](_0x33d605){const _0xe7c985=_0x457e80;return this[_0xe7c985(0x126)][_0xe7c985(0x137)](_0x33d605),_0x2b7383(()=>this[_0xe7c985(0x126)][_0xe7c985(0x169)](_0x33d605));}[_0x457e80(0x139)](_0x4f07cf){const _0x5bf4fa=_0x457e80;return this[_0x5bf4fa(0x1a9)][_0x5bf4fa(0x178)](_0x4f07cf);}[_0x457e80(0x151)](_0x10fe1b){const _0x54fa1c=_0x457e80;return Array['from'](this[_0x54fa1c(0x126)])[_0x54fa1c(0x13b)](_0x29ba04=>_0x29ba04(_0x10fe1b));}}var Ne=Object[_0x457e80(0x1ba)],Y=(_0x4df76c,_0x49e790,_0x31d5bf,_0x4e94dd)=>{for(var _0x555ea4=_0x4e94dd>0x1?void 0x0:_0x4e94dd?Ne(_0x49e790,_0x31d5bf):_0x49e790,_0x2c0c87=_0x4df76c['length']-0x1,_0x169401;_0x2c0c87>=0x0;_0x2c0c87--)(_0x169401=_0x4df76c[_0x2c0c87])&&(_0x555ea4=_0x169401(_0x555ea4)||_0x555ea4);return _0x555ea4;},_=(_0x34426f,_0x3a6871)=>(_0x216ecf,_0x1dd872)=>_0x3a6871(_0x216ecf,_0x1dd872,_0x34426f);let S=class extends _0x123426{constructor(_0x5d080b,_0xe865da,_0x5b2303){const _0x3e47cc=_0x457e80;super(),u(this,'_entities',new Map()),(this[_0x3e47cc(0x12f)]=_0x5d080b,this['_injector']=_0xe865da,this['_collabSessionService']=_0x5b2303,this[_0x3e47cc(0x14a)]());}async[_0x457e80(0x1b0)](_0x3331f9){const _0x33f4e0=_0x457e80;return this[_0x33f4e0(0x17e)][_0x33f4e0(0x178)](_0x3331f9)||await this[_0x33f4e0(0x15c)](_0x3331f9),this[_0x33f4e0(0x17e)][_0x33f4e0(0x1a1)](_0x3331f9);}[_0x457e80(0x145)](_0x44173e){const _0x487ce2=_0x457e80;var _0x553328;return(_0x553328=this[_0x487ce2(0x17e)]['get'](_0x44173e))!=null?_0x553328:null;}[_0x457e80(0x14a)](){const _0x253937=_0x457e80;this[_0x253937(0x12f)]['getTypeOfUnitAdded$'](_0x49fe72[_0x253937(0x150)])[_0x253937(0x183)](_0x1446cd(this[_0x253937(0x1a7)]))['subscribe'](async _0xacd81e=>{const _0xbcc795=_0x253937,_0x2f7b99=_0xacd81e[_0xbcc795(0x18a)]();this[_0xbcc795(0x17e)][_0xbcc795(0x178)](_0x2f7b99)||this['_startLiveShareCoordinator'](_0x2f7b99);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x49fe72['UNIVER_SHEET'])[_0x253937(0x183)](_0x1446cd(this[_0x253937(0x1a7)]))['subscribe'](_0x5111fe=>{const _0x4b2891=_0x253937,_0xea04c2=_0x5111fe[_0x4b2891(0x18a)](),_0x1286e9=this['_entities'][_0x4b2891(0x1a1)](_0xea04c2);_0x1286e9==null||_0x1286e9[_0x4b2891(0x17a)]();});}async[_0x457e80(0x15c)](_0x16fa01){const _0x4f530f=_0x457e80,_0x459156=await this[_0x4f530f(0x15b)][_0x4f530f(0x186)](_0x16fa01),_0x294852=this[_0x4f530f(0x184)][_0x4f530f(0x17f)](N,_0x16fa01,_0x459156);return _0x294852[_0x4f530f(0x142)](),this[_0x4f530f(0x17e)]['set'](_0x16fa01,_0x294852),_0x294852;}};S=Y([_(0x0,_0x409e69),_(0x1,_0x2cb216(_0x1ed2ca)),_(0x2,_0x2cb216(_0x379963))],S);var c=(_0x4a21b9=>(_0x4a21b9['OFFLINE']='offline',_0x4a21b9['IDLE']=_0x457e80(0x16c),_0x4a21b9[_0x457e80(0x1b7)]=_0x457e80(0x194),_0x4a21b9['NOT_FOLLOWING']='not-following',_0x4a21b9[_0x457e80(0x157)]=_0x457e80(0x14c),_0x4a21b9))(c||{});const Ce=_0x457e80(0x1a8),De=0xc8;let N=class extends _0x123426{constructor(_0x2811d3,_0x47b018,_0x2cf313,_0x34d67a,_0x2b5476){const _0x306d49=_0x457e80;super(),u(this,'_status$',new _0x2d4397(_0x306d49(0x16c))),u(this,_0x306d49(0x127),this[_0x306d49(0x185)][_0x306d49(0x1c2)]()),u(this,_0x306d49(0x14a),!0x1),u(this,_0x306d49(0x190),null),u(this,_0x306d49(0x170),null),(this[_0x306d49(0x128)]=_0x2811d3,this[_0x306d49(0x18d)]=_0x47b018,this[_0x306d49(0x179)]=_0x2cf313,this[_0x306d49(0x18f)]=_0x34d67a,this['_commandService']=_0x2b5476);}get[_0x457e80(0x1b6)](){return this['_status$']['getValue']();}[_0x457e80(0x17a)](){const _0x215005=_0x457e80;var _0xfa1b51;(_0xfa1b51=this['_commandDisposable'])==null||_0xfa1b51[_0x215005(0x17a)](),this[_0x215005(0x185)]['next'](_0x215005(0x16c)),this[_0x215005(0x185)][_0x215005(0x135)]();}['getStatus'](){const _0x3ade07=_0x457e80;return this[_0x3ade07(0x1b6)];}['init'](){const _0x45cc04=_0x457e80;this[_0x45cc04(0x14a)]||(this[_0x45cc04(0x14a)]=!0x0,this[_0x45cc04(0x18d)][_0x45cc04(0x125)][_0x45cc04(0x183)](_0x1446cd(this[_0x45cc04(0x1a7)]))['subscribe'](_0x2247ee=>{const _0x34a297=_0x45cc04;switch(_0x2247ee){case _0x3602b9[_0x34a297(0x193)]:this[_0x34a297(0x1af)]();break;case _0x3602b9[_0x34a297(0x173)]:this[_0x34a297(0x141)]();break;}}),this[_0x45cc04(0x18d)][_0x45cc04(0x1b2)][_0x45cc04(0x183)](_0x1446cd(this['dispose$']))[_0x45cc04(0x15d)](_0x1161b3=>{const _0x4291c1=_0x45cc04,{eventID:_0x50fd1e}=_0x1161b3;switch(_0x50fd1e){case _0x40f9b1['LIVESHARE_NEW_HOST']:this[_0x4291c1(0x155)](_0x1161b3);break;case _0x40f9b1[_0x4291c1(0x149)]:this[_0x4291c1(0x19d)](_0x1161b3);break;case _0x40f9b1[_0x4291c1(0x16e)]:this[_0x4291c1(0x138)]();break;case _0x40f9b1['NEW_CHANGESETS']:this[_0x4291c1(0x172)](_0x1161b3);break;}}));}[_0x457e80(0x18c)](){const _0x31dc7f=_0x457e80;this['_collabSession'][_0x31dc7f(0x15e)]({'eventID':_0x40f9b1[_0x31dc7f(0x176)],'data':{'unitID':this[_0x31dc7f(0x128)],'userID':this['_collabSession'][_0x31dc7f(0x13a)]()}},this[_0x31dc7f(0x128)]);}[_0x457e80(0x19c)](){const _0x5addb4=_0x457e80;this['_status']==='presenting'&&(this['_status$'][_0x5addb4(0x192)](_0x5addb4(0x16c)),this[_0x5addb4(0x18d)]['send']({'eventID':_0x40f9b1[_0x5addb4(0x16e)],'data':{'unitID':this[_0x5addb4(0x128)]}},this[_0x5addb4(0x128)]));}[_0x457e80(0x132)](){const _0x578c75=_0x457e80;this[_0x578c75(0x1b6)]===_0x578c75(0x14d)&&(this['_status$']['next'](_0x578c75(0x194)),this[_0x578c75(0x1a4)]());}[_0x457e80(0x131)](){const _0x3d5bc0=_0x457e80;this[_0x3d5bc0(0x1b6)]==='following'&&this[_0x3d5bc0(0x13f)]();}[_0x457e80(0x155)](_0x29bea4){const _0x3a4ff9=_0x457e80,{presenter:_0x10be51}=_0x29bea4[_0x3a4ff9(0x1ad)],_0x2a8737=this[_0x3a4ff9(0x18d)]['getMemberID']();this[_0x3a4ff9(0x170)]=_0x10be51,_0x10be51===_0x2a8737?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x3a4ff9(0x14d)&&(this[_0x3a4ff9(0x14b)](),this['_startFollowing']());}[_0x457e80(0x16b)](){const _0x309c15=_0x457e80,_0x29d7b2={'eventID':_0x40f9b1[_0x309c15(0x1c0)]};this[_0x309c15(0x18d)][_0x309c15(0x15e)](_0x29d7b2,this['_unitID']);}[_0x457e80(0x138)](){const _0x57c423=_0x457e80;this[_0x57c423(0x170)]=null,this[_0x57c423(0x1b6)]!==_0x57c423(0x14c)&&this['_beIdle']();}[_0x457e80(0x172)](_0x492282){const _0x23fa2b=_0x457e80;if(this[_0x23fa2b(0x1b6)]===_0x23fa2b(0x194)&&this[_0x23fa2b(0x170)]===_0x492282['data'][_0x23fa2b(0x124)]){const _0x11f75c=_0x55d15c(_0x492282['data'])['mutations'][_0x23fa2b(0x143)]()['find'](_0xc5df71=>_0xc5df71['id']===_0x17b5b6['id']);if(_0x11f75c){const _0x44fc3c=_0x11f75c[_0x23fa2b(0x12d)][_0x23fa2b(0x18e)],_0xa94a49=_0x11f75c['params'][_0x23fa2b(0x19f)]['id'];setTimeout(()=>{const _0x1e6f39=_0x23fa2b;this[_0x1e6f39(0x13e)][_0x1e6f39(0x167)](_0x5d7627['id'],{'unitId':_0x44fc3c,'subUnitId':_0xa94a49},{'fromCollab':!0x0});});}}}[_0x457e80(0x19b)](){const _0x5d160d=_0x457e80;this[_0x5d160d(0x185)][_0x5d160d(0x192)]('presenting');const _0x489eb8=new Map(),_0x485d88=this[_0x5d160d(0x190)]=new _0x452cb9();_0x485d88[_0x5d160d(0x137)](_0x2b7383(()=>{const _0x114852=_0x5d160d;_0x489eb8[_0x114852(0x19e)](_0x336bff=>_0x336bff[_0x114852(0x135)]()),_0x489eb8[_0x114852(0x162)]();})),_0x485d88['add'](this[_0x5d160d(0x13e)][_0x5d160d(0x12b)](_0x3ed3bf=>{const _0x102fb3=_0x5d160d;var _0x4382f3;if(_0x3ed3bf['type']!==_0x16215c[_0x102fb3(0x1a6)]||!this[_0x102fb3(0x18f)][_0x102fb3(0x139)](_0x3ed3bf['id']))return;const {id:_0x57bdf0}=_0x3ed3bf;let _0xbdfd93;_0x489eb8['has'](_0x57bdf0)?_0xbdfd93=_0x489eb8[_0x102fb3(0x1a1)](_0x57bdf0):(_0xbdfd93=new _0x45a108(),_0x489eb8[_0x102fb3(0x154)](_0x57bdf0,_0xbdfd93),_0xbdfd93['pipe'](_0x36d9d3((_0x4382f3=this[_0x102fb3(0x179)]['getConfig'](Ce))!=null?_0x4382f3:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x102fb3(0x15d)](_0xabba34=>{const _0x28447a=_0x102fb3;this['_collabSession']['send']({'eventID':_0x40f9b1[_0x28447a(0x149)],'data':{'unitID':this[_0x28447a(0x128)],'operations':{[_0xabba34['id']]:{'id':_0xabba34['id'],'params':JSON['stringify'](_0xabba34[_0x28447a(0x12d)])}}}},this[_0x28447a(0x128)]);})),_0xbdfd93[_0x102fb3(0x192)](_0x3ed3bf);})),this[_0x5d160d(0x18f)][_0x5d160d(0x151)](this[_0x5d160d(0x128)])[_0x5d160d(0x19e)](_0x18b1e7=>this[_0x5d160d(0x18d)][_0x5d160d(0x15e)]({'eventID':_0x40f9b1[_0x5d160d(0x149)],'data':{'unitID':this['_unitID'],'operations':{[_0x18b1e7['id']]:{'id':_0x18b1e7['id'],'params':JSON['stringify'](_0x18b1e7[_0x5d160d(0x12d)])}}}},this[_0x5d160d(0x128)]));}[_0x457e80(0x14b)](){const _0x151cc9=_0x457e80;var _0x2ecc0c;this[_0x151cc9(0x185)][_0x151cc9(0x192)](_0x151cc9(0x16c)),(_0x2ecc0c=this[_0x151cc9(0x190)])==null||_0x2ecc0c[_0x151cc9(0x17a)](),this[_0x151cc9(0x190)]=null;}[_0x457e80(0x1a4)](){const _0x386a14=_0x457e80;var _0x739216;(_0x739216=this[_0x386a14(0x190)])==null||_0x739216[_0x386a14(0x17a)](),this[_0x386a14(0x185)]['next'](_0x386a14(0x194));}['_beIdle'](){const _0x12fb00=_0x457e80;var _0x1da624;this[_0x12fb00(0x185)][_0x12fb00(0x192)]('idle'),(_0x1da624=this[_0x12fb00(0x190)])==null||_0x1da624[_0x12fb00(0x17a)](),this[_0x12fb00(0x190)]=null;}['_stopFollowing'](){const _0x52c12e=_0x457e80;var _0x335060;this['_status$'][_0x52c12e(0x192)](_0x52c12e(0x14d)),(_0x335060=this[_0x52c12e(0x190)])==null||_0x335060[_0x52c12e(0x17a)]();}['_handleOperation'](_0x3edf9e){const _0x371b5f=_0x457e80;if(['presenting',_0x371b5f(0x14d),'offline'][_0x371b5f(0x16d)](this['_status'])||!_0x3edf9e[_0x371b5f(0x1ad)][_0x371b5f(0x1ab)]||_0x3edf9e['data'][_0x371b5f(0x1ab)]===this[_0x371b5f(0x18d)][_0x371b5f(0x13a)]())return;this[_0x371b5f(0x1b6)]==='idle'&&this['_startFollowing']();const _0x414c88=_0x3edf9e[_0x371b5f(0x1ad)][_0x371b5f(0x18b)];Object[_0x371b5f(0x189)](_0x414c88)[_0x371b5f(0x19e)](_0x365b98=>{const _0x26a95b=_0x371b5f;this[_0x26a95b(0x13e)][_0x26a95b(0x167)](_0x365b98['id'],_0x365b98[_0x26a95b(0x12d)]?JSON[_0x26a95b(0x1bc)](_0x365b98['params']):null,{'fromCollab':!0x0});});}[_0x457e80(0x1af)](){const _0x146ac7=_0x457e80;var _0x23cf12;this[_0x146ac7(0x185)][_0x146ac7(0x192)]('offline'),(_0x23cf12=this[_0x146ac7(0x190)])==null||_0x23cf12['dispose']();}[_0x457e80(0x141)](){const _0x356063=_0x457e80;this[_0x356063(0x185)]['next'](_0x356063(0x16c)),this[_0x356063(0x16b)]();}};function _0x2812(_0x5b61e4,_0x52a625){_0x5b61e4=_0x5b61e4-0x124;const _0x4fed2f=_0x4fed();let _0x281277=_0x4fed2f[_0x5b61e4];return _0x281277;}N=Y([_(0x2,_0x33b07b),_(0x3,_0x2cb216(L)),_(0x4,_0x1849e6)],N);function Le(){const _0x169dcc=_0x457e80,_0x276fc6=_0x10658c(S),_0x55660b=_0x10658c(_0x409e69),_0x43ac06=_0x464b8d(()=>_0x55660b['getCurrentTypeOfUnit$'](_0x49fe72[_0x169dcc(0x150)]),void 0x0,!0x1,[]),[_0x4b9bda,_0x455b1f]=_0x408c56(null),[_0xbd5ed6,_0x23eff9]=_0x408c56(c[_0x169dcc(0x174)]),_0x311c4c=_0x1cdb79(null);return _0x14ee1d(()=>(_0x43ac06&&_0x276fc6[_0x169dcc(0x1b0)](_0x43ac06[_0x169dcc(0x18a)]())[_0x169dcc(0x165)](_0x476acd=>{const _0x2d4ee6=_0x169dcc;_0x455b1f(_0x476acd),_0x311c4c[_0x2d4ee6(0x130)]=_0x476acd[_0x2d4ee6(0x127)][_0x2d4ee6(0x15d)](_0x315042=>{_0x23eff9(_0x315042);});}),()=>{const _0x5a344f=_0x169dcc;var _0x445c01;(_0x445c01=_0x311c4c[_0x5a344f(0x130)])==null||_0x445c01[_0x5a344f(0x140)](),_0x311c4c['current']=null;}),[_0x43ac06,_0x276fc6]),_0x4b9bda?_0x20f1bf(_0x453919,{'align':_0x169dcc(0x175),'disabled':_0xbd5ed6===c[_0x169dcc(0x193)],'className':_0x169dcc(0x198),'overlay':_0x20f1bf(Re,{'status':_0xbd5ed6,'coordinator':_0x4b9bda}),'children':_0x20f1bf('button',{'className':_0x40f0b2('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xbd5ed6===c[_0x169dcc(0x193)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xbd5ed6!==c[_0x169dcc(0x193)]}),'type':_0x169dcc(0x1a2),'children':_0x20f1bf(W,{'className':_0x169dcc(0x1b5)})})}):null;}function Re(_0x90ce32){const _0x37b8e3=_0x457e80,{status:_0x1f8983,coordinator:_0x2bc9f9}=_0x90ce32;switch(_0x1f8983){case c[_0x37b8e3(0x174)]:return _0x20f1bf($e,{'coordinator':_0x2bc9f9});case c[_0x37b8e3(0x1b7)]:return _0x20f1bf(xe,{'coordinator':_0x2bc9f9});case c['NOT_FOLLOWING']:return _0x20f1bf(Pe,{'coordinator':_0x2bc9f9});case c[_0x37b8e3(0x193)]:return _0x20f1bf(Te,{});case c['PRESENTING']:return _0x20f1bf(Ae,{'coordinator':_0x2bc9f9});default:return null;}}function $e(_0x1e099c){const _0x82d8c5=_0x457e80,{coordinator:_0x1d52d3}=_0x1e099c;return _0x7c6f4a(_0x4ea446,{'children':[_0x20f1bf(_0x82d8c5(0x163),{'className':_0x82d8c5(0x133),'children':_0x82d8c5(0x197)}),_0x20f1bf(_0x588942,{'onClick':()=>_0x1d52d3['tryStartPresenting'](),'children':_0x82d8c5(0x159)})]});}function xe(_0x56576c){const _0x3dcf61=_0x457e80,{coordinator:_0x3a4b3f}=_0x56576c;return _0x7c6f4a(_0x4ea446,{'children':[_0x20f1bf(_0x3dcf61(0x163),{'className':_0x3dcf61(0x133),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x20f1bf(_0x588942,{'onClick':()=>_0x3a4b3f[_0x3dcf61(0x131)](),'children':_0x3dcf61(0x168)})]});}function Pe(_0x53fc7d){const _0x2ab574=_0x457e80,{coordinator:_0x481262}=_0x53fc7d;return _0x7c6f4a(_0x4ea446,{'children':[_0x20f1bf(_0x2ab574(0x163),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x20f1bf(_0x588942,{'variant':'text','onClick':()=>_0x481262['startFollowing'](),'children':_0x2ab574(0x15f)})]});}function Ae(_0x8d314c){const _0x5e1447=_0x457e80,{coordinator:_0x31cad4}=_0x8d314c;return _0x7c6f4a(_0x4ea446,{'children':[_0x20f1bf(_0x5e1447(0x163),{'className':_0x5e1447(0x133),'children':_0x5e1447(0x1b3)}),_0x20f1bf(_0x588942,{'variant':_0x5e1447(0x1ae),'onClick':()=>_0x31cad4[_0x5e1447(0x19c)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x4d1053=_0x457e80;return _0x20f1bf(_0x4ea446,{'children':_0x4d1053(0x1bb)});}var Fe=Object[_0x457e80(0x1ba)],He=(_0x3c79b8,_0x5bc4c7,_0x26f9be,_0x47cac2)=>{const _0x254bbd=_0x457e80;for(var _0x2698cb=_0x47cac2>0x1?void 0x0:_0x47cac2?Fe(_0x5bc4c7,_0x26f9be):_0x5bc4c7,_0x7e204=_0x3c79b8[_0x254bbd(0x195)]-0x1,_0x9d5e49;_0x7e204>=0x0;_0x7e204--)(_0x9d5e49=_0x3c79b8[_0x7e204])&&(_0x2698cb=_0x9d5e49(_0x2698cb)||_0x2698cb);return _0x2698cb;},A=(_0x17e6c7,_0x5beab7)=>(_0x5b61d3,_0x23efac)=>_0x5beab7(_0x5b61d3,_0x23efac,_0x17e6c7);let m=class extends _0x1dbba8{constructor(_0x4bf02c,_0x1c3892){const _0x32ff85=_0x457e80;super(),this[_0x32ff85(0x184)]=_0x4bf02c,this[_0x32ff85(0x1b8)]=_0x1c3892,this['_mountLiveShare']();}[_0x457e80(0x16f)](){const _0x26f0c7=_0x457e80;this[_0x26f0c7(0x134)](this[_0x26f0c7(0x1b8)][_0x26f0c7(0x17c)](_0x57f012['HEADER_MENU'],()=>_0x3cfc29(Le,this[_0x26f0c7(0x184)])));}};m=He([A(0x0,_0x2cb216(_0x1ed2ca)),A(0x1,_0x5cd8c2)],m);const ye=_0x457e80(0x182),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x22d05f,_0x320e47,_0x46a071,_0x276b61)=>{const _0x30290e=_0x457e80;for(var _0xe0bb6b=_0x276b61>0x1?void 0x0:_0x276b61?Ue(_0x320e47,_0x46a071):_0x320e47,_0x59f01b=_0x22d05f[_0x30290e(0x195)]-0x1,_0x44621a;_0x59f01b>=0x0;_0x59f01b--)(_0x44621a=_0x22d05f[_0x59f01b])&&(_0xe0bb6b=_0x44621a(_0xe0bb6b)||_0xe0bb6b);return _0xe0bb6b;},je=(_0x3ee1a6,_0x3bb214)=>(_0x4b8a39,_0x4c77bb)=>_0x3bb214(_0x4b8a39,_0x4c77bb,_0x3ee1a6);let I=class extends _0x1dbba8{constructor(_0x23f1dc){const _0x693e7b=_0x457e80;super(),this[_0x693e7b(0x18f)]=_0x23f1dc,this[_0x693e7b(0x14a)]();}[_0x457e80(0x14a)](){const _0xa4d33=_0x457e80;[_0x592b93['id'],_0x593fcd['id'],_0x5d7627['id']][_0xa4d33(0x19e)](_0x1351b7=>{const _0x3f2d76=_0xa4d33;this[_0x3f2d76(0x134)](this[_0x3f2d76(0x18f)][_0x3f2d76(0x161)](_0x1351b7));});}};I=Ve([je(0x0,_0x2cb216(L))],I);var Me=Object['defineProperty'],ke=Object[_0x457e80(0x1ba)],Ge=(_0x4ad364,_0x1235fa,_0x1f0753)=>_0x1235fa in _0x4ad364?Me(_0x4ad364,_0x1235fa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f0753}):_0x4ad364[_0x1235fa]=_0x1f0753,We=(_0x57d8ca,_0x15e738,_0x40559a,_0x48317c)=>{const _0x6af07f=_0x457e80;for(var _0x342a08=_0x48317c>0x1?void 0x0:_0x48317c?ke(_0x15e738,_0x40559a):_0x15e738,_0xb880df=_0x57d8ca[_0x6af07f(0x195)]-0x1,_0x2cd3ea;_0xb880df>=0x0;_0xb880df--)(_0x2cd3ea=_0x57d8ca[_0xb880df])&&(_0x342a08=_0x2cd3ea(_0x342a08)||_0x342a08);return _0x342a08;},F=(_0x21cded,_0x19966a)=>(_0xbe5631,_0x28ac02)=>_0x19966a(_0xbe5631,_0x28ac02,_0x21cded),B=(_0x3aa81a,_0x57997c,_0x250b1e)=>Ge(_0x3aa81a,typeof _0x57997c!='symbol'?_0x57997c+'':_0x57997c,_0x250b1e);const Ye=_0x457e80(0x180);let b=class extends _0x36cb3f{constructor(_0x314415=T,_0x536963,_0xb37936){const _0x4414a5=_0x457e80;super(),this['_config']=_0x314415,this[_0x4414a5(0x184)]=_0x536963,this[_0x4414a5(0x179)]=_0xb37936;const {..._0x24d08d}=_0x3205c5({},T,this[_0x4414a5(0x13d)]);this[_0x4414a5(0x179)]['setConfig'](ye,_0x24d08d);}['onStarting'](){const _0x47826f=_0x457e80;_0x531e72(this[_0x47826f(0x184)],_0x5d731b([[L],[S],[I],[m]],this[_0x47826f(0x13d)][_0x47826f(0x187)])),_0x230ca3(this[_0x47826f(0x184)],[[I]]);}[_0x457e80(0x153)](){const _0x54b688=_0x457e80;_0x230ca3(this[_0x54b688(0x184)],[[m]]);}};B(b,_0x457e80(0x16a),_0x49fe72[_0x457e80(0x19a)]),B(b,_0x457e80(0x181),Ye),b=We([_0x26a88b(_0x4cf46e),F(0x1,_0x2cb216(_0x1ed2ca)),F(0x2,_0x33b07b)],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 _0x12a9bf=_0x2f2a;function _0x3dd5(){const _0x5f2880=['_initialize','2201724BYnWWM','startRow','get','getStatus','getLiveShareStatus','extend','2543090LXTrhI','stopFollowing','366163pcgVYB','No\x20active\x20workbook\x20found.','executeCommand','_injector','491330cNTyJw','getId','startFollowing','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2560104wIqQbo','getRenderById','LiveShareStatusEnum','getSheetId','startColumn','28DkheHX','getActiveSheet','syncExecuteCommand','3512079JFmqBs','tryStartPresenting','PRESENTING','stopPresenting','6920072IuRoQi','getLiveShareCoordinatorSync','9rkKoYx','getActiveWorkbook'];_0x3dd5=function(){return _0x5f2880;};return _0x3dd5();}(function(_0x272cd0,_0x1c629f){const _0x4b7043=_0x2f2a,_0x18bd25=_0x272cd0();while(!![]){try{const _0x50793a=-parseInt(_0x4b7043(0xed))/0x1+-parseInt(_0x4b7043(0xeb))/0x2+parseInt(_0x4b7043(0xdc))/0x3+parseInt(_0x4b7043(0xd9))/0x4*(parseInt(_0x4b7043(0xf1))/0x5)+-parseInt(_0x4b7043(0xd4))/0x6+parseInt(_0x4b7043(0xe5))/0x7+parseInt(_0x4b7043(0xe0))/0x8*(parseInt(_0x4b7043(0xe2))/0x9);if(_0x50793a===_0x1c629f)break;else _0x18bd25['push'](_0x18bd25['shift']());}catch(_0xb0d4b1){_0x18bd25['push'](_0x18bd25['shift']());}}}(_0x3dd5,0xedb88));import{LiveShareController as _0x2bb13b,LiveShareStatus as _0x1eceb5}from'@univerjs-pro/live-share';function _0x2f2a(_0x32c563,_0x250495){_0x32c563=_0x32c563-0xd0;const _0x3dd501=_0x3dd5();let _0x2f2ae5=_0x3dd501[_0x32c563];return _0x2f2ae5;}import{IRenderManagerService as _0x34741e}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x215939}from'@univerjs/sheets';import{SetScrollOperation as _0x575f44}from'@univerjs/sheets-ui';import{FRange as _0x98a522}from'@univerjs/sheets/facade';import{FUniver as _0x51b101,FEnum as _0x2ea423}from'@univerjs/core/facade';class I extends _0x98a522{[_0x12a9bf(0xe4)](_0x4e0c6a,_0x5cde2e,_0x2cdcd6,_0xb5d296,_0x3f0dc7){const _0x121f53=_0x12a9bf,_0x36e2bd=_0x4e0c6a[_0x121f53(0xe7)](_0x2bb13b),_0x53a775=_0x4e0c6a['get'](_0x34741e),_0x54f443=_0x5cde2e[_0x121f53(0xd2)](),_0x2b23fd=_0x5cde2e[_0x121f53(0xda)](),_0x28fee0=_0x36e2bd['getLiveShareCoordinatorSync'](_0x54f443);(_0x28fee0==null?void 0x0:_0x28fee0[_0x121f53(0xe8)]())!==_0x1eceb5[_0x121f53(0xde)]||(_0x2cdcd6[_0x121f53(0xd7)]()!==_0x2b23fd[_0x121f53(0xd7)]()&&this['_commandService'][_0x121f53(0xef)](_0x215939['id'],{'unitId':_0x54f443,'subUnitId':_0x2cdcd6[_0x121f53(0xd7)]()}),!_0x53a775[_0x121f53(0xd5)](_0x54f443))||_0x3f0dc7[_0x121f53(0xdb)](_0x575f44['id'],{'unitId':_0x5cde2e[_0x121f53(0xd2)](),'sheetId':_0x2cdcd6[_0x121f53(0xd7)](),'sheetViewStartRow':_0xb5d296[_0x121f53(0xe6)],'sheetViewStartColumn':_0xb5d296[_0x121f53(0xd8)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x98a522[_0x12a9bf(0xea)](I);class m extends _0x51b101{[_0x12a9bf(0xe9)](){const _0x163e4d=_0x12a9bf;var _0x160be8,_0x4e420e;const _0x416d77=this[_0x163e4d(0xf0)][_0x163e4d(0xe7)](_0x2bb13b),_0x31d42f=(_0x160be8=this[_0x163e4d(0xe3)]())==null?void 0x0:_0x160be8['getId']();if(!_0x31d42f)throw new Error(_0x163e4d(0xee));const _0x101af4=_0x416d77[_0x163e4d(0xe1)](_0x31d42f);return(_0x4e420e=_0x101af4==null?void 0x0:_0x101af4['getStatus']())!=null?_0x4e420e:_0x1eceb5['IDLE'];}['startFollowing'](){const _0x54276f=_0x12a9bf;var _0x35da66;const _0x3264ff=this['_injector']['get'](_0x2bb13b),_0x3ee98b=(_0x35da66=this[_0x54276f(0xe3)]())==null?void 0x0:_0x35da66[_0x54276f(0xd0)]();if(!_0x3ee98b)throw new Error(_0x54276f(0xee));const _0x40a926=_0x3264ff[_0x54276f(0xe1)](_0x3ee98b);if(!_0x40a926)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x40a926[_0x54276f(0xd1)]();}[_0x12a9bf(0xec)](){const _0x42e207=_0x12a9bf;var _0x16cea2;const _0x51c5d9=this[_0x42e207(0xf0)][_0x42e207(0xe7)](_0x2bb13b),_0xcd30ab=(_0x16cea2=this['getActiveWorkbook']())==null?void 0x0:_0x16cea2['getId']();if(!_0xcd30ab)throw new Error(_0x42e207(0xee));const _0x5eb6b1=_0x51c5d9[_0x42e207(0xe1)](_0xcd30ab);if(!_0x5eb6b1)throw new Error(_0x42e207(0xd3));_0x5eb6b1[_0x42e207(0xec)]();}['startPresenting'](){const _0x52af06=_0x12a9bf;var _0x1e9d07;const _0x10f880=this[_0x52af06(0xf0)][_0x52af06(0xe7)](_0x2bb13b),_0x3b871b=(_0x1e9d07=this[_0x52af06(0xe3)]())==null?void 0x0:_0x1e9d07['getId']();if(!_0x3b871b)throw new Error(_0x52af06(0xee));const _0x11d6ef=_0x10f880[_0x52af06(0xe1)](_0x3b871b);if(!_0x11d6ef)throw new Error(_0x52af06(0xd3));_0x11d6ef[_0x52af06(0xdd)]();}[_0x12a9bf(0xdf)](){const _0x389b59=_0x12a9bf;var _0x2b5157;const _0x46170b=this[_0x389b59(0xf0)][_0x389b59(0xe7)](_0x2bb13b),_0x51bdd8=(_0x2b5157=this['getActiveWorkbook']())==null?void 0x0:_0x2b5157[_0x389b59(0xd0)]();if(!_0x51bdd8)throw new Error('No\x20active\x20workbook\x20found.');const _0x6d3f28=_0x46170b['getLiveShareCoordinatorSync'](_0x51bdd8);if(!_0x6d3f28)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x6d3f28[_0x389b59(0xdf)]();}}_0x51b101[_0x12a9bf(0xea)](m);class C extends _0x2ea423{get[_0x12a9bf(0xd6)](){return _0x1eceb5;}}_0x2ea423[_0x12a9bf(0xea)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x94c2f4=_0x21c3;function _0x21c3(_0x446bb3,_0x18f90f){_0x446bb3=_0x446bb3-0x1d0;const _0x519940=_0x5199();let _0x21c38f=_0x519940[_0x446bb3];return _0x21c38f;}(function(_0x4c86f3,_0x134e2f){const _0x38792d=_0x21c3,_0x180f4e=_0x4c86f3();while(!![]){try{const _0x518ddf=-parseInt(_0x38792d(0x222))/0x1+parseInt(_0x38792d(0x247))/0x2+-parseInt(_0x38792d(0x21a))/0x3+-parseInt(_0x38792d(0x252))/0x4*(-parseInt(_0x38792d(0x24e))/0x5)+-parseInt(_0x38792d(0x237))/0x6*(-parseInt(_0x38792d(0x1fa))/0x7)+-parseInt(_0x38792d(0x206))/0x8+parseInt(_0x38792d(0x1f9))/0x9*(parseInt(_0x38792d(0x1d4))/0xa);if(_0x518ddf===_0x134e2f)break;else _0x180f4e['push'](_0x180f4e['shift']());}catch(_0x39cf1a){_0x180f4e['push'](_0x180f4e['shift']());}}}(_0x5199,0xdf6f1));var J=Object[_0x94c2f4(0x250)],K=(_0x37670d,_0x4433f6,_0x29d063)=>_0x4433f6 in _0x37670d?J(_0x37670d,_0x4433f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29d063}):_0x37670d[_0x4433f6]=_0x29d063,u=(_0x548a32,_0x5e598a,_0xf6d060)=>K(_0x548a32,typeof _0x5e598a!=_0x94c2f4(0x279)?_0x5e598a+'':_0x5e598a,_0xf6d060);import{Disposable as _0x237410,toDisposable as _0x479776,IUniverInstanceService as _0x131adf,Inject as _0x39e2ff,Injector as _0x1af462,IConfigService as _0x1163db,ICommandService as _0x3fe997,RxDisposable as _0x3c244d,UniverInstanceType as _0x1edb56,DisposableCollection as _0x56d0d3,CommandType as _0x11ab87,DependentOn as _0x298814,Plugin as _0x1f099d,merge as _0x38fee5,registerDependencies as _0x20cdf0,mergeOverrideWithDependencies as _0x1c6eec,touchDependencies as _0x5e0f2d}from'@univerjs/core';import{useDependency as _0x1a3369,useObservable as _0x43c83b,IUIPartsService as _0x189af9,BuiltInUIPart as _0x54c386,connectInjector as _0x40daf7}from'@univerjs/ui';import{jsx as _0x3b2e8c,jsxs as _0x5a8b02,Fragment as _0x34fda9}from'react/jsx-runtime';import{Dropdown as _0x580ca5,clsx as _0x38bcb7,Button as _0x4bf6a0}from'@univerjs/design';import{useRef as _0x5302de,createElement as _0x4c6606,forwardRef as _0x13d357,useState as _0x24f563,useEffect as _0x1d9b38}from'react';import{CollaborationEvent as _0x117a17,parseProtocolChangeset as _0x1a1c61}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x12178f,SessionStatus as _0x2ec079,UniverCollaborationClientPlugin as _0x4883e2}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x109733,SetWorksheetActiveOperation as _0x45b437}from'@univerjs/sheets';import{BehaviorSubject as _0x5ee00e,Subject as _0x13c737}from'rxjs';import{takeUntil as _0x2cd887,throttleTime as _0x3e7564}from'rxjs/operators';import{SetZoomRatioOperation as _0x33d3cc,SetScrollOperation as _0x1ac8e2}from'@univerjs/sheets-ui';function k({ref:_0xb065e,..._0x3a7358}){const _0x361340=_0x94c2f4,{icon:_0x54010d,id:_0x1cfe5c,className:_0x190099,extend:_0x57bce0,..._0x488160}=_0x3a7358,_0x2d8fc4=(_0x361340(0x24a)+_0x1cfe5c+'\x20'+(_0x190099||''))[_0x361340(0x244)](),_0x37b877=_0x5302de('_'+Oe());return G(_0x54010d,''+_0x1cfe5c,{'defIds':_0x54010d[_0x361340(0x1d3)],'idSuffix':_0x37b877[_0x361340(0x26e)]},{'ref':_0xb065e,'className':_0x2d8fc4,..._0x488160},_0x57bce0);}function G(_0x240805,_0x41f09f,_0x555cdc,_0x1cc80c,_0x1bfed9){const _0x28632a=_0x94c2f4;return _0x4c6606(_0x240805[_0x28632a(0x269)],{'key':_0x41f09f,...be(_0x240805,_0x555cdc,_0x1bfed9),..._0x1cc80c},(Ee(_0x240805,_0x555cdc)[_0x28632a(0x20d)]||[])[_0x28632a(0x270)]((_0x1bddaa,_0x1f5413)=>G(_0x1bddaa,_0x41f09f+'-'+_0x240805['tag']+'-'+_0x1f5413,_0x555cdc,void 0x0,_0x1bfed9)));}function be(_0x320310,_0x2e634b,_0x158a5f){const _0x5cf614=_0x94c2f4,_0x1a26f2={..._0x320310['attrs']};_0x158a5f!=null&&_0x158a5f[_0x5cf614(0x227)]&&_0x1a26f2[_0x5cf614(0x239)]===_0x5cf614(0x227)&&(_0x1a26f2['fill']=_0x158a5f[_0x5cf614(0x227)]),_0x320310[_0x5cf614(0x269)]===_0x5cf614(0x208)&&_0x1a26f2['id']&&(_0x1a26f2['id']=_0x1a26f2['id']+_0x2e634b[_0x5cf614(0x260)]),Object['entries'](_0x1a26f2)[_0x5cf614(0x233)](([_0x55f103,_0x18e607])=>{const _0xe5660b=_0x5cf614;_0x55f103===_0xe5660b(0x208)&&typeof _0x18e607==_0xe5660b(0x1d8)&&(_0x1a26f2[_0x55f103]=_0x18e607[_0xe5660b(0x266)](/url\(#(.*)\)/,'url(#$1'+_0x2e634b['idSuffix']+')'));});const {defIds:_0x6c0053}=_0x2e634b;return!_0x6c0053||_0x6c0053['length']===0x0||(_0x320310[_0x5cf614(0x269)]===_0x5cf614(0x224)&&_0x1a26f2[_0x5cf614(0x238)]&&(_0x1a26f2[_0x5cf614(0x238)]=_0x1a26f2[_0x5cf614(0x238)]+_0x2e634b[_0x5cf614(0x260)]),Object[_0x5cf614(0x229)](_0x1a26f2)[_0x5cf614(0x233)](([_0x38bb32,_0x575f36])=>{const _0x106096=_0x5cf614;typeof _0x575f36==_0x106096(0x1d8)&&(_0x1a26f2[_0x38bb32]=_0x575f36[_0x106096(0x266)](/url\(#(.*)\)/,'url(#$1'+_0x2e634b[_0x106096(0x260)]+')'));})),_0x1a26f2;}function Ee(_0x41659d,_0x1cb916){const _0x2cab9c=_0x94c2f4;var _0x4249a2;const {defIds:_0x4e6d2b}=_0x1cb916;return!_0x4e6d2b||_0x4e6d2b['length']===0x0?_0x41659d:_0x41659d[_0x2cab9c(0x269)]===_0x2cab9c(0x22c)&&((_0x4249a2=_0x41659d[_0x2cab9c(0x20d)])!=null&&_0x4249a2[_0x2cab9c(0x234)])?{..._0x41659d,'children':_0x41659d[_0x2cab9c(0x20d)][_0x2cab9c(0x270)](_0x46dd25=>typeof _0x46dd25['attrs']['id']==_0x2cab9c(0x1d8)&&_0x4e6d2b&&_0x4e6d2b[_0x2cab9c(0x25f)](_0x46dd25[_0x2cab9c(0x20b)]['id'])?{..._0x46dd25,'attrs':{..._0x46dd25[_0x2cab9c(0x20b)],'id':_0x46dd25[_0x2cab9c(0x20b)]['id']+_0x1cb916[_0x2cab9c(0x260)]}}:_0x46dd25)}:_0x41659d;}function Oe(){const _0x4f1be8=_0x94c2f4;return Math[_0x4f1be8(0x255)]()[_0x4f1be8(0x219)](0x24)[_0x4f1be8(0x1e5)](0x2,0x8);}k[_0x94c2f4(0x241)]=_0x94c2f4(0x212);const we={'tag':_0x94c2f4(0x25c),'attrs':{'xmlns':_0x94c2f4(0x263),'fill':_0x94c2f4(0x1d1),'viewBox':_0x94c2f4(0x267),'width':_0x94c2f4(0x277),'height':_0x94c2f4(0x277)},'children':[{'tag':_0x94c2f4(0x25d),'attrs':{'fill':_0x94c2f4(0x258),'d':_0x94c2f4(0x235)}},{'tag':_0x94c2f4(0x25d),'attrs':{'fill':_0x94c2f4(0x258),'d':_0x94c2f4(0x26d),'fillRule':_0x94c2f4(0x236),'clipRule':_0x94c2f4(0x236)}}]},W=_0x13d357(function(_0x3fe056,_0x2cc369){const _0x3f646b=_0x94c2f4;return _0x4c6606(k,Object[_0x3f646b(0x1d5)]({},_0x3fe056,{'id':_0x3f646b(0x1fb),'ref':_0x2cc369,'icon':we}));});W[_0x94c2f4(0x241)]='LiveShareIcon';class L extends _0x237410{constructor(){const _0x5a0ee4=_0x94c2f4;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x5a0ee4(0x27b),new Set());}[_0x94c2f4(0x25a)](_0x1dec7d){const _0x4b7c09=_0x94c2f4;return this[_0x4b7c09(0x1ee)][_0x4b7c09(0x26f)](_0x1dec7d),_0x479776(()=>this[_0x4b7c09(0x1ee)][_0x4b7c09(0x25b)](_0x1dec7d));}[_0x94c2f4(0x25e)](_0xc19384){const _0x1e5cd8=_0x94c2f4;return this['_reporters']['add'](_0xc19384),_0x479776(()=>this['_reporters'][_0x1e5cd8(0x25b)](_0xc19384));}['shouldShareOperation'](_0x356b1e){const _0x3460c6=_0x94c2f4;return this[_0x3460c6(0x1ee)]['has'](_0x356b1e);}[_0x94c2f4(0x231)](_0x5d3542){const _0x4197ef=_0x94c2f4;return Array[_0x4197ef(0x1fe)](this[_0x4197ef(0x27b)])[_0x4197ef(0x270)](_0x3f3ad7=>_0x3f3ad7(_0x5d3542));}}var Ne=Object[_0x94c2f4(0x1e3)],Y=(_0x24e75c,_0x508cc0,_0x3de33b,_0x4de27e)=>{const _0x5a3bd5=_0x94c2f4;for(var _0x4fe054=_0x4de27e>0x1?void 0x0:_0x4de27e?Ne(_0x508cc0,_0x3de33b):_0x508cc0,_0x233d13=_0x24e75c[_0x5a3bd5(0x234)]-0x1,_0x9dc5a5;_0x233d13>=0x0;_0x233d13--)(_0x9dc5a5=_0x24e75c[_0x233d13])&&(_0x4fe054=_0x9dc5a5(_0x4fe054)||_0x4fe054);return _0x4fe054;},_=(_0x5ba021,_0x2dc522)=>(_0x103223,_0x4a42bd)=>_0x2dc522(_0x103223,_0x4a42bd,_0x5ba021);let S=class extends _0x3c244d{constructor(_0x11278b,_0x50b451,_0x33cd12){const _0x58aa65=_0x94c2f4;super(),u(this,_0x58aa65(0x272),new Map()),(this[_0x58aa65(0x245)]=_0x11278b,this['_injector']=_0x50b451,this[_0x58aa65(0x1da)]=_0x33cd12,this[_0x58aa65(0x1d2)]());}async[_0x94c2f4(0x274)](_0x30146d){const _0x6d15e1=_0x94c2f4;return this[_0x6d15e1(0x272)]['has'](_0x30146d)||await this[_0x6d15e1(0x23d)](_0x30146d),this['_entities'][_0x6d15e1(0x205)](_0x30146d);}[_0x94c2f4(0x228)](_0x4c17df){var _0x2e4ab1;return(_0x2e4ab1=this['_entities']['get'](_0x4c17df))!=null?_0x2e4ab1:null;}[_0x94c2f4(0x1d2)](){const _0x435494=_0x94c2f4;this['_univerInstanceService'][_0x435494(0x211)](_0x1edb56[_0x435494(0x275)])[_0x435494(0x246)](_0x2cd887(this[_0x435494(0x1fd)]))[_0x435494(0x202)](async _0xe3d952=>{const _0x288c8e=_0x435494,_0x3a31c9=_0xe3d952['getUnitId']();this['_entities']['has'](_0x3a31c9)||this[_0x288c8e(0x23d)](_0x3a31c9);}),this[_0x435494(0x245)][_0x435494(0x1e1)](_0x1edb56[_0x435494(0x275)])['pipe'](_0x2cd887(this[_0x435494(0x1fd)]))[_0x435494(0x202)](_0x45f7ac=>{const _0x59258f=_0x435494,_0x2aeb58=_0x45f7ac[_0x59258f(0x1f2)](),_0x4bb934=this[_0x59258f(0x272)]['get'](_0x2aeb58);_0x4bb934==null||_0x4bb934[_0x59258f(0x1f3)]();});}async['_startLiveShareCoordinator'](_0x488194){const _0x33a5b0=_0x94c2f4,_0x5d3691=await this['_collabSessionService'][_0x33a5b0(0x1f8)](_0x488194),_0x1de098=this[_0x33a5b0(0x204)][_0x33a5b0(0x1eb)](N,_0x488194,_0x5d3691);return _0x1de098[_0x33a5b0(0x225)](),this[_0x33a5b0(0x272)][_0x33a5b0(0x217)](_0x488194,_0x1de098),_0x1de098;}};S=Y([_(0x0,_0x131adf),_(0x1,_0x39e2ff(_0x1af462)),_(0x2,_0x39e2ff(_0x12178f))],S);var c=(_0x221161=>(_0x221161[_0x94c2f4(0x22a)]=_0x94c2f4(0x207),_0x221161['IDLE']=_0x94c2f4(0x1de),_0x221161['FOLLOWING']=_0x94c2f4(0x24b),_0x221161['NOT_FOLLOWING']='not-following',_0x221161['PRESENTING']=_0x94c2f4(0x209),_0x221161))(c||{});const Ce=_0x94c2f4(0x23b),De=0xc8;let N=class extends _0x3c244d{constructor(_0x3c6de8,_0x1e0d6a,_0x48a41f,_0x4d0548,_0x303acf){const _0x2a724f=_0x94c2f4;super(),u(this,'_status$',new _0x5ee00e(_0x2a724f(0x1de))),u(this,_0x2a724f(0x218),this[_0x2a724f(0x1f1)][_0x2a724f(0x223)]()),u(this,_0x2a724f(0x1d2),!0x1),u(this,_0x2a724f(0x1e7),null),u(this,'_presenter',null),(this['_unitID']=_0x3c6de8,this[_0x2a724f(0x20f)]=_0x1e0d6a,this[_0x2a724f(0x1d0)]=_0x48a41f,this[_0x2a724f(0x226)]=_0x4d0548,this[_0x2a724f(0x1fc)]=_0x303acf);}get[_0x94c2f4(0x21e)](){const _0x10c3e8=_0x94c2f4;return this[_0x10c3e8(0x1f1)][_0x10c3e8(0x278)]();}[_0x94c2f4(0x1f3)](){const _0x5ee6ab=_0x94c2f4;var _0x439748;(_0x439748=this[_0x5ee6ab(0x1e7)])==null||_0x439748[_0x5ee6ab(0x1f3)](),this[_0x5ee6ab(0x1f1)]['next'](_0x5ee6ab(0x1de)),this[_0x5ee6ab(0x1f1)][_0x5ee6ab(0x1f6)]();}[_0x94c2f4(0x230)](){return this['_status'];}['init'](){const _0x14d99f=_0x94c2f4;this[_0x14d99f(0x1d2)]||(this['_init']=!0x0,this[_0x14d99f(0x20f)][_0x14d99f(0x210)][_0x14d99f(0x246)](_0x2cd887(this[_0x14d99f(0x1fd)]))[_0x14d99f(0x202)](_0x41ffd8=>{const _0x5407dd=_0x14d99f;switch(_0x41ffd8){case _0x2ec079[_0x5407dd(0x22a)]:this[_0x5407dd(0x1dd)]();break;case _0x2ec079['ONLINE']:this[_0x5407dd(0x1f0)]();break;}}),this[_0x14d99f(0x20f)]['event$']['pipe'](_0x2cd887(this[_0x14d99f(0x1fd)]))[_0x14d99f(0x202)](_0x511b8f=>{const _0x2fbae5=_0x14d99f,{eventID:_0x43efde}=_0x511b8f;switch(_0x43efde){case _0x117a17['LIVESHARE_NEW_HOST']:this[_0x2fbae5(0x1e0)](_0x511b8f);break;case _0x117a17[_0x2fbae5(0x22b)]:this[_0x2fbae5(0x1db)](_0x511b8f);break;case _0x117a17[_0x2fbae5(0x201)]:this['_handleTerminate']();break;case _0x117a17['NEW_CHANGESETS']:this[_0x2fbae5(0x21d)](_0x511b8f);break;}}));}[_0x94c2f4(0x1ff)](){const _0x3ed1ef=_0x94c2f4;this[_0x3ed1ef(0x20f)][_0x3ed1ef(0x1e6)]({'eventID':_0x117a17['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3ed1ef(0x1d7)],'userID':this[_0x3ed1ef(0x20f)][_0x3ed1ef(0x256)]()}},this[_0x3ed1ef(0x1d7)]);}['stopPresenting'](){const _0x3e21c3=_0x94c2f4;this['_status']==='presenting'&&(this[_0x3e21c3(0x1f1)]['next'](_0x3e21c3(0x1de)),this['_collabSession'][_0x3e21c3(0x1e6)]({'eventID':_0x117a17['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x3e21c3(0x1d7)]));}[_0x94c2f4(0x1ef)](){const _0x1b7ca6=_0x94c2f4;this[_0x1b7ca6(0x21e)]===_0x1b7ca6(0x26b)&&(this[_0x1b7ca6(0x1f1)]['next'](_0x1b7ca6(0x24b)),this[_0x1b7ca6(0x216)]());}[_0x94c2f4(0x220)](){const _0x2ad836=_0x94c2f4;this[_0x2ad836(0x21e)]===_0x2ad836(0x24b)&&this[_0x2ad836(0x214)]();}[_0x94c2f4(0x1e0)](_0x3366e7){const _0x15fd2c=_0x94c2f4,{presenter:_0x3fa34a}=_0x3366e7[_0x15fd2c(0x215)],_0x3d7902=this[_0x15fd2c(0x20f)]['getMemberID']();this[_0x15fd2c(0x22f)]=_0x3fa34a,_0x3fa34a===_0x3d7902?(this[_0x15fd2c(0x214)](),this['_startPresenting']()):this[_0x15fd2c(0x21e)]!=='not-following'&&(this['_stopPresenting'](),this[_0x15fd2c(0x216)]());}[_0x94c2f4(0x21c)](){const _0x39d8a9=_0x94c2f4,_0x92349={'eventID':_0x117a17[_0x39d8a9(0x253)]};this['_collabSession']['send'](_0x92349,this['_unitID']);}[_0x94c2f4(0x254)](){const _0x3fc57f=_0x94c2f4;this[_0x3fc57f(0x22f)]=null,this[_0x3fc57f(0x21e)]!=='presenting'&&this[_0x3fc57f(0x249)]();}[_0x94c2f4(0x21d)](_0x4b135a){const _0x5e05f9=_0x94c2f4;if(this[_0x5e05f9(0x21e)]==='following'&&this[_0x5e05f9(0x22f)]===_0x4b135a[_0x5e05f9(0x215)][_0x5e05f9(0x23c)]){const _0x59abe1=_0x1a1c61(_0x4b135a[_0x5e05f9(0x215)])['mutations']['reverse']()[_0x5e05f9(0x1f4)](_0x2e3f06=>_0x2e3f06['id']===_0x109733['id']);if(_0x59abe1){const _0x3b2243=_0x59abe1[_0x5e05f9(0x26a)][_0x5e05f9(0x22d)],_0xfa0724=_0x59abe1[_0x5e05f9(0x26a)][_0x5e05f9(0x259)]['id'];setTimeout(()=>{const _0x2eaf2e=_0x5e05f9;this[_0x2eaf2e(0x1fc)][_0x2eaf2e(0x273)](_0x45b437['id'],{'unitId':_0x3b2243,'subUnitId':_0xfa0724},{'fromCollab':!0x0});});}}}[_0x94c2f4(0x21b)](){const _0x5c5dbd=_0x94c2f4;this[_0x5c5dbd(0x1f1)][_0x5c5dbd(0x1f7)]('presenting');const _0x3eb12d=new Map(),_0x54656=this[_0x5c5dbd(0x1e7)]=new _0x56d0d3();_0x54656[_0x5c5dbd(0x26f)](_0x479776(()=>{const _0xd23b2d=_0x5c5dbd;_0x3eb12d['forEach'](_0x4b4532=>_0x4b4532[_0xd23b2d(0x1f6)]()),_0x3eb12d[_0xd23b2d(0x264)]();})),_0x54656['add'](this[_0x5c5dbd(0x1fc)][_0x5c5dbd(0x257)](_0x516c6c=>{const _0x12b720=_0x5c5dbd;var _0x160f74;if(_0x516c6c[_0x12b720(0x23f)]!==_0x11ab87[_0x12b720(0x22e)]||!this['_liveShareService'][_0x12b720(0x1ea)](_0x516c6c['id']))return;const {id:_0x2e50cc}=_0x516c6c;let _0x42f196;_0x3eb12d[_0x12b720(0x242)](_0x2e50cc)?_0x42f196=_0x3eb12d[_0x12b720(0x205)](_0x2e50cc):(_0x42f196=new _0x13c737(),_0x3eb12d[_0x12b720(0x217)](_0x2e50cc,_0x42f196),_0x42f196[_0x12b720(0x246)](_0x3e7564((_0x160f74=this[_0x12b720(0x1d0)]['getConfig'](Ce))!=null?_0x160f74:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x12b720(0x202)](_0x22c8db=>{const _0x4d1d81=_0x12b720;this[_0x4d1d81(0x20f)][_0x4d1d81(0x1e6)]({'eventID':_0x117a17['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x22c8db['id']]:{'id':_0x22c8db['id'],'params':JSON[_0x4d1d81(0x251)](_0x22c8db[_0x4d1d81(0x26a)])}}}},this[_0x4d1d81(0x1d7)]);})),_0x42f196[_0x12b720(0x1f7)](_0x516c6c);})),this[_0x5c5dbd(0x226)][_0x5c5dbd(0x231)](this[_0x5c5dbd(0x1d7)])[_0x5c5dbd(0x233)](_0x21d879=>this['_collabSession'][_0x5c5dbd(0x1e6)]({'eventID':_0x117a17[_0x5c5dbd(0x22b)],'data':{'unitID':this[_0x5c5dbd(0x1d7)],'operations':{[_0x21d879['id']]:{'id':_0x21d879['id'],'params':JSON[_0x5c5dbd(0x251)](_0x21d879[_0x5c5dbd(0x26a)])}}}},this[_0x5c5dbd(0x1d7)]));}['_stopPresenting'](){const _0x2a0dcb=_0x94c2f4;var _0x2c3d1a;this[_0x2a0dcb(0x1f1)][_0x2a0dcb(0x1f7)](_0x2a0dcb(0x1de)),(_0x2c3d1a=this['_commandDisposable'])==null||_0x2c3d1a[_0x2a0dcb(0x1f3)](),this[_0x2a0dcb(0x1e7)]=null;}['_startFollowing'](){const _0x130462=_0x94c2f4;var _0x54879a;(_0x54879a=this['_commandDisposable'])==null||_0x54879a['dispose'](),this['_status$'][_0x130462(0x1f7)](_0x130462(0x24b));}[_0x94c2f4(0x249)](){const _0x5e30bf=_0x94c2f4;var _0x21248e;this['_status$'][_0x5e30bf(0x1f7)](_0x5e30bf(0x1de)),(_0x21248e=this[_0x5e30bf(0x1e7)])==null||_0x21248e[_0x5e30bf(0x1f3)](),this['_commandDisposable']=null;}[_0x94c2f4(0x214)](){const _0x5a4a24=_0x94c2f4;var _0x134633;this['_status$'][_0x5a4a24(0x1f7)](_0x5a4a24(0x26b)),(_0x134633=this[_0x5a4a24(0x1e7)])==null||_0x134633['dispose']();}[_0x94c2f4(0x1db)](_0x2358d9){const _0x4d8d5d=_0x94c2f4;if(['presenting',_0x4d8d5d(0x26b),_0x4d8d5d(0x207)]['includes'](this[_0x4d8d5d(0x21e)])||!_0x2358d9[_0x4d8d5d(0x215)]['presenter']||_0x2358d9[_0x4d8d5d(0x215)]['presenter']===this[_0x4d8d5d(0x20f)]['getMemberID']())return;this[_0x4d8d5d(0x21e)]===_0x4d8d5d(0x1de)&&this[_0x4d8d5d(0x216)]();const _0x53124e=_0x2358d9[_0x4d8d5d(0x215)][_0x4d8d5d(0x1e9)];Object[_0x4d8d5d(0x1d6)](_0x53124e)['forEach'](_0x39f73c=>{const _0x55a1dc=_0x4d8d5d;this[_0x55a1dc(0x1fc)][_0x55a1dc(0x273)](_0x39f73c['id'],_0x39f73c[_0x55a1dc(0x26a)]?JSON[_0x55a1dc(0x20c)](_0x39f73c['params']):null,{'fromCollab':!0x0});});}[_0x94c2f4(0x1dd)](){const _0x4e765c=_0x94c2f4;var _0x304165;this[_0x4e765c(0x1f1)][_0x4e765c(0x1f7)](_0x4e765c(0x207)),(_0x304165=this['_commandDisposable'])==null||_0x304165[_0x4e765c(0x1f3)]();}[_0x94c2f4(0x1f0)](){const _0x14dc6a=_0x94c2f4;this['_status$']['next'](_0x14dc6a(0x1de)),this['_fetchOperations']();}};N=Y([_(0x2,_0x1163db),_(0x3,_0x39e2ff(L)),_(0x4,_0x3fe997)],N);function _0x5199(){const _0x1a36fe=['_startPresenting','_fetchOperations','_handleNewChangeSets','_status','then','stopFollowing','live-share.config','919047HgGWSl','asObservable','use','init','_liveShareService','colorChannel1','getLiveShareCoordinatorSync','entries','OFFLINE','LIVESHARE_OPERATION','defs','unitId','OPERATION','_presenter','getStatus','getInitialStates','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','forEach','length','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','evenodd','636PCVUKY','xlink:href','fill','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SAME_OPERATION_SHARE_INTERVAL','memberID','_startLiveShareCoordinator','Stop\x20following','type','UNIVER_UNKNOWN','displayName','has','_mountLiveShare','trim','_univerInstanceService','pipe','709408UIgFwJ','NOT_FOLLOWING','_beIdle','univerjs-icon\x20univerjs-icon-','following','unsubscribe','PRESENTING','200yEcOGr','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','stringify','25888YOuzwn','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','random','getMemberID','onCommandExecuted','currentColor','sheet','registerSharedOperation','delete','svg','path','registerInitialStateReporter','includes','idSuffix','Present\x20this\x20document','onStarting','http://www.w3.org/2000/svg','clear','IDLE','replace','0\x200\x2017\x2017','You\x27re\x20not\x20following\x20the\x20presenter','tag','params','not-following','end','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','current','add','map','HEADER_MENU','_entities','executeCommand','getLiveShareCoordinator','UNIVER_SHEET','setConfig','1em','getValue','symbol','UNIVER_LIVE_SHARE_PLUGIN','_reporters','getCurrentTypeOfUnit$','_configService','none','_init','defIds','8190LUoSJV','assign','values','_unitID','string','pluginName','_collabSessionService','_handleOperation','_config','_handleOffline','idle','div','_handleNewHost','getTypeOfUnitDisposed$','Start','getOwnPropertyDescriptor','You\x27re\x20following\x20the\x20presenter','substring','send','_commandDisposable','_uiPartsService','operations','shouldShareOperation','createInstance','button','onRendered','_sharedOperations','startFollowing','_handleOnline','_status$','getUnitId','dispose','find','Start\x20following','complete','next','requireSession','11079GKKPzB','53473HiYgsm','live-share-icon','_commandService','dispose$','from','tryStartPresenting','override','LIVESHARE_TERMINATE','subscribe','univer-size-4','_injector','get','4224688NAsBSz','offline','mask','presenting','disposeWithMe','attrs','parse','children','registerComponent','_collabSession','sessionStatus$','getTypeOfUnitAdded$','UniverIcon','FOLLOWING','_stopFollowing','data','_startFollowing','set','status$','toString','207567JEysXj'];_0x5199=function(){return _0x1a36fe;};return _0x5199();}function Le(){const _0x351e49=_0x94c2f4,_0x36c017=_0x1a3369(S),_0x12c744=_0x1a3369(_0x131adf),_0x5280d1=_0x43c83b(()=>_0x12c744[_0x351e49(0x27c)](_0x1edb56[_0x351e49(0x275)]),void 0x0,!0x1,[]),[_0x45eb19,_0xb80a]=_0x24f563(null),[_0x47808b,_0x235c0a]=_0x24f563(c[_0x351e49(0x265)]),_0x5714da=_0x5302de(null);return _0x1d9b38(()=>(_0x5280d1&&_0x36c017[_0x351e49(0x274)](_0x5280d1['getUnitId']())[_0x351e49(0x21f)](_0x338243=>{const _0x133b34=_0x351e49;_0xb80a(_0x338243),_0x5714da[_0x133b34(0x26e)]=_0x338243['status$'][_0x133b34(0x202)](_0x4152a6=>{_0x235c0a(_0x4152a6);});}),()=>{const _0x1e5e92=_0x351e49;var _0x317318;(_0x317318=_0x5714da[_0x1e5e92(0x26e)])==null||_0x317318[_0x1e5e92(0x24c)](),_0x5714da[_0x1e5e92(0x26e)]=null;}),[_0x5280d1,_0x36c017]),_0x45eb19?_0x3b2e8c(_0x580ca5,{'align':_0x351e49(0x26c),'disabled':_0x47808b===c[_0x351e49(0x22a)],'className':_0x351e49(0x232),'overlay':_0x3b2e8c(Re,{'status':_0x47808b,'coordinator':_0x45eb19}),'children':_0x3b2e8c(_0x351e49(0x1ec),{'className':_0x38bcb7(_0x351e49(0x23a),{'univer-cursor-not-allowed':_0x47808b===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47808b!==c[_0x351e49(0x22a)]}),'type':_0x351e49(0x1ec),'children':_0x3b2e8c(W,{'className':_0x351e49(0x203)})})}):null;}function Re(_0x9e5441){const _0xee2a99=_0x94c2f4,{status:_0x2032fd,coordinator:_0x2a92e9}=_0x9e5441;switch(_0x2032fd){case c[_0xee2a99(0x265)]:return _0x3b2e8c($e,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x213)]:return _0x3b2e8c(xe,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x248)]:return _0x3b2e8c(Pe,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x22a)]:return _0x3b2e8c(Te,{});case c[_0xee2a99(0x24d)]:return _0x3b2e8c(Ae,{'coordinator':_0x2a92e9});default:return null;}}function $e(_0x36800c){const _0x58d5c6=_0x94c2f4,{coordinator:_0x86e0a8}=_0x36800c;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c('div',{'className':_0x58d5c6(0x24f),'children':_0x58d5c6(0x261)}),_0x3b2e8c(_0x4bf6a0,{'onClick':()=>_0x86e0a8[_0x58d5c6(0x1ff)](),'children':_0x58d5c6(0x1e2)})]});}function xe(_0x41074d){const _0x3878ce=_0x94c2f4,{coordinator:_0x519a31}=_0x41074d;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x3878ce(0x1df),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3878ce(0x1e4)}),_0x3b2e8c(_0x4bf6a0,{'onClick':()=>_0x519a31[_0x3878ce(0x220)](),'children':_0x3878ce(0x23e)})]});}function Pe(_0x4209f1){const _0x48fc4a=_0x94c2f4,{coordinator:_0x21a2b7}=_0x4209f1;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x48fc4a(0x1df),{'className':_0x48fc4a(0x24f),'children':_0x48fc4a(0x268)}),_0x3b2e8c(_0x4bf6a0,{'variant':'text','onClick':()=>_0x21a2b7[_0x48fc4a(0x1ef)](),'children':_0x48fc4a(0x1f5)})]});}function Ae(_0x50433d){const _0x13d664=_0x94c2f4,{coordinator:_0x2de63b}=_0x50433d;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x13d664(0x1df),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x3b2e8c(_0x4bf6a0,{'variant':'default','onClick':()=>_0x2de63b['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){return _0x3b2e8c(_0x34fda9,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x94c2f4(0x1e3)],He=(_0x4ee589,_0x41e877,_0x5d2bc7,_0x1ec7e2)=>{for(var _0xf6315a=_0x1ec7e2>0x1?void 0x0:_0x1ec7e2?Fe(_0x41e877,_0x5d2bc7):_0x41e877,_0x357fa3=_0x4ee589['length']-0x1,_0x50ca30;_0x357fa3>=0x0;_0x357fa3--)(_0x50ca30=_0x4ee589[_0x357fa3])&&(_0xf6315a=_0x50ca30(_0xf6315a)||_0xf6315a);return _0xf6315a;},A=(_0x54abe0,_0x111759)=>(_0x10a906,_0xfe785d)=>_0x111759(_0x10a906,_0xfe785d,_0x54abe0);let m=class extends _0x237410{constructor(_0x35f642,_0x326940){const _0x433d42=_0x94c2f4;super(),this[_0x433d42(0x204)]=_0x35f642,this['_uiPartsService']=_0x326940,this['_mountLiveShare']();}[_0x94c2f4(0x243)](){const _0x46b4b5=_0x94c2f4;this[_0x46b4b5(0x20a)](this[_0x46b4b5(0x1e8)][_0x46b4b5(0x20e)](_0x54c386[_0x46b4b5(0x271)],()=>_0x40daf7(Le,this[_0x46b4b5(0x204)])));}};m=He([A(0x0,_0x39e2ff(_0x1af462)),A(0x1,_0x189af9)],m);const ye=_0x94c2f4(0x221),T={};var Ue=Object[_0x94c2f4(0x1e3)],Ve=(_0x4b6f53,_0x3ef43d,_0x15c32b,_0x590121)=>{for(var _0x173e04=_0x590121>0x1?void 0x0:_0x590121?Ue(_0x3ef43d,_0x15c32b):_0x3ef43d,_0x300e9=_0x4b6f53['length']-0x1,_0x20d0df;_0x300e9>=0x0;_0x300e9--)(_0x20d0df=_0x4b6f53[_0x300e9])&&(_0x173e04=_0x20d0df(_0x173e04)||_0x173e04);return _0x173e04;},je=(_0x1dce1c,_0x18628f)=>(_0x4bf7ce,_0x54c527)=>_0x18628f(_0x4bf7ce,_0x54c527,_0x1dce1c);let I=class extends _0x237410{constructor(_0x48fd1b){const _0x517999=_0x94c2f4;super(),this[_0x517999(0x226)]=_0x48fd1b,this['_init']();}['_init'](){const _0x1d05b8=_0x94c2f4;[_0x33d3cc['id'],_0x1ac8e2['id'],_0x45b437['id']][_0x1d05b8(0x233)](_0x2aa60b=>{const _0x3851a6=_0x1d05b8;this[_0x3851a6(0x20a)](this[_0x3851a6(0x226)][_0x3851a6(0x25a)](_0x2aa60b));});}};I=Ve([je(0x0,_0x39e2ff(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x25b41c,_0xc9ab13,_0x373b7a)=>_0xc9ab13 in _0x25b41c?Me(_0x25b41c,_0xc9ab13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x373b7a}):_0x25b41c[_0xc9ab13]=_0x373b7a,We=(_0x448b4b,_0x18ed3d,_0x381973,_0x421da2)=>{const _0x4317f8=_0x94c2f4;for(var _0x39ec83=_0x421da2>0x1?void 0x0:_0x421da2?ke(_0x18ed3d,_0x381973):_0x18ed3d,_0xefb135=_0x448b4b[_0x4317f8(0x234)]-0x1,_0x27f4d5;_0xefb135>=0x0;_0xefb135--)(_0x27f4d5=_0x448b4b[_0xefb135])&&(_0x39ec83=_0x27f4d5(_0x39ec83)||_0x39ec83);return _0x39ec83;},F=(_0x25f3bc,_0x4a93e5)=>(_0x311f14,_0x1147ea)=>_0x4a93e5(_0x311f14,_0x1147ea,_0x25f3bc),B=(_0x24ac65,_0x1c5268,_0x2aba29)=>Ge(_0x24ac65,typeof _0x1c5268!=_0x94c2f4(0x279)?_0x1c5268+'':_0x1c5268,_0x2aba29);const Ye=_0x94c2f4(0x27a);let b=class extends _0x1f099d{constructor(_0x152420=T,_0x59ea89,_0x51de){const _0x2d3149=_0x94c2f4;super(),this[_0x2d3149(0x1dc)]=_0x152420,this[_0x2d3149(0x204)]=_0x59ea89,this[_0x2d3149(0x1d0)]=_0x51de;const {..._0x3f9fb8}=_0x38fee5({},T,this['_config']);this['_configService'][_0x2d3149(0x276)](ye,_0x3f9fb8);}[_0x94c2f4(0x262)](){const _0x172bdc=_0x94c2f4;_0x20cdf0(this[_0x172bdc(0x204)],_0x1c6eec([[L],[S],[I],[m]],this[_0x172bdc(0x1dc)][_0x172bdc(0x200)])),_0x5e0f2d(this['_injector'],[[I]]);}[_0x94c2f4(0x1ed)](){_0x5e0f2d(this['_injector'],[[m]]);}};B(b,_0x94c2f4(0x23f),_0x1edb56[_0x94c2f4(0x240)]),B(b,_0x94c2f4(0x1d9),Ye),b=We([_0x298814(_0x4883e2),F(0x1,_0x39e2ff(_0x1af462)),F(0x2,_0x1163db)],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 _0x457e80=_0x2812;(function(_0x2c63ea,_0x62541b){const _0x21b1b7=_0x2812,_0x59ae53=_0x2c63ea();while(!![]){try{const _0x5dfd38=parseInt(_0x21b1b7(0x12c))/0x1*(-parseInt(_0x21b1b7(0x14f))/0x2)+-parseInt(_0x21b1b7(0x1c3))/0x3*(parseInt(_0x21b1b7(0x1bf))/0x4)+parseInt(_0x21b1b7(0x147))/0x5*(parseInt(_0x21b1b7(0x177))/0x6)+parseInt(_0x21b1b7(0x12a))/0x7+parseInt(_0x21b1b7(0x158))/0x8+-parseInt(_0x21b1b7(0x1b1))/0x9+parseInt(_0x21b1b7(0x1b9))/0xa;if(_0x5dfd38===_0x62541b)break;else _0x59ae53['push'](_0x59ae53['shift']());}catch(_0x17e0da){_0x59ae53['push'](_0x59ae53['shift']());}}}(_0x4fed,0x5dcb0));var J=Object[_0x457e80(0x196)],K=(_0x4bbf97,_0x2dbdb7,_0x53c3db)=>_0x2dbdb7 in _0x4bbf97?J(_0x4bbf97,_0x2dbdb7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53c3db}):_0x4bbf97[_0x2dbdb7]=_0x53c3db,u=(_0x2ac2e6,_0x10b15a,_0x2b9414)=>K(_0x2ac2e6,typeof _0x10b15a!=_0x457e80(0x12e)?_0x10b15a+'':_0x10b15a,_0x2b9414);import{Disposable as _0x1dbba8,toDisposable as _0x2b7383,IUniverInstanceService as _0x409e69,Inject as _0x2cb216,Injector as _0x1ed2ca,IConfigService as _0x33b07b,ICommandService as _0x1849e6,RxDisposable as _0x123426,UniverInstanceType as _0x49fe72,DisposableCollection as _0x452cb9,CommandType as _0x16215c,DependentOn as _0x26a88b,Plugin as _0x36cb3f,merge as _0x3205c5,registerDependencies as _0x531e72,mergeOverrideWithDependencies as _0x5d731b,touchDependencies as _0x230ca3}from'@univerjs/core';import{useDependency as _0x10658c,useObservable as _0x464b8d,IUIPartsService as _0x5cd8c2,BuiltInUIPart as _0x57f012,connectInjector as _0x3cfc29}from'@univerjs/ui';function _0x4fed(){const _0x41e0a3=['send','Start\x20following','attrs','registerSharedOperation','clear','div','mask','then','string','executeCommand','Stop\x20following','delete','type','_fetchOperations','idle','includes','LIVESHARE_TERMINATE','_mountLiveShare','_presenter','currentColor','_handleNewChangeSets','ONLINE','IDLE','end','LIVESHARE_REQUEST_HOST','6tWaOfg','has','_configService','dispose','evenodd','registerComponent','xlink:href','_entities','createInstance','UNIVER_LIVE_SHARE_PLUGIN','pluginName','live-share.config','pipe','_injector','_status$','requireSession','override','assign','values','getUnitId','operations','tryStartPresenting','_collabSession','unitId','_liveShareService','_commandDisposable','tag','next','OFFLINE','following','length','defineProperty','Present\x20this\x20document','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','toString','UNIVER_UNKNOWN','_startPresenting','stopPresenting','_handleOperation','forEach','sheet','univerjs-icon\x20univerjs-icon-','get','button','UniverIcon','_startFollowing','colorChannel1','OPERATION','dispose$','SAME_OPERATION_SHARE_INTERVAL','_sharedOperations','replace','presenter','url(#$1','data','default','_handleOffline','getLiveShareCoordinator','3261258eTdobT','event$','You\x27re\x20presenting\x20the\x20document','LiveShareIcon','univer-size-4','_status','FOLLOWING','_uiPartsService','317930XQyvAs','getOwnPropertyDescriptor','You\x27are\x20offline.','parse','0\x200\x2017\x2017','http://www.w3.org/2000/svg','1004tWAbaf','LIVESHARE_FETCH_OPERATIONS','children','asObservable','3867aFzMeo','memberID','sessionStatus$','_reporters','status$','_unitID','use','5126814ZaiiOU','onCommandExecuted','7606AeYrnj','params','symbol','_univerInstanceService','current','stopFollowing','startFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','disposeWithMe','complete','defs','add','_handleTerminate','shouldShareOperation','getMemberID','map','path','_config','_commandService','_stopFollowing','unsubscribe','_handleOnline','init','reverse','random','getLiveShareCoordinatorSync','defIds','3056245ynkjcx','entries','LIVESHARE_OPERATION','_init','_stopPresenting','presenting','not-following','displayName','118CUvrQb','UNIVER_SHEET','getInitialStates','idSuffix','onRendered','set','_handleNewHost','fill','PRESENTING','1147096VvkULi','Start','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','_collabSessionService','_startLiveShareCoordinator','subscribe'];_0x4fed=function(){return _0x41e0a3;};return _0x4fed();}import{jsx as _0x20f1bf,jsxs as _0x7c6f4a,Fragment as _0x4ea446}from'react/jsx-runtime';import{Dropdown as _0x453919,clsx as _0x40f0b2,Button as _0x588942}from'@univerjs/design';import{useRef as _0x1cdb79,createElement as _0x1a7b27,forwardRef as _0x15364b,useState as _0x408c56,useEffect as _0x14ee1d}from'react';import{CollaborationEvent as _0x40f9b1,parseProtocolChangeset as _0x55d15c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x379963,SessionStatus as _0x3602b9,UniverCollaborationClientPlugin as _0x4cf46e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x17b5b6,SetWorksheetActiveOperation as _0x5d7627}from'@univerjs/sheets';import{BehaviorSubject as _0x2d4397,Subject as _0x45a108}from'rxjs';import{takeUntil as _0x1446cd,throttleTime as _0x36d9d3}from'rxjs/operators';import{SetZoomRatioOperation as _0x592b93,SetScrollOperation as _0x593fcd}from'@univerjs/sheets-ui';function k({ref:_0x11d235,..._0x5e4dcb}){const _0x5b6dd3=_0x457e80,{icon:_0x48ac9e,id:_0x5f2dae,className:_0x460634,extend:_0x4d0ee7,..._0x338891}=_0x5e4dcb,_0x59f2a5=(_0x5b6dd3(0x1a0)+_0x5f2dae+'\x20'+(_0x460634||''))['trim'](),_0x5d8957=_0x1cdb79('_'+Oe());return G(_0x48ac9e,''+_0x5f2dae,{'defIds':_0x48ac9e[_0x5b6dd3(0x146)],'idSuffix':_0x5d8957[_0x5b6dd3(0x130)]},{'ref':_0x11d235,'className':_0x59f2a5,..._0x338891},_0x4d0ee7);}function G(_0x23b7a8,_0x730401,_0x34c77a,_0x30b007,_0x292573){const _0x2a6d4f=_0x457e80;return _0x1a7b27(_0x23b7a8[_0x2a6d4f(0x191)],{'key':_0x730401,...be(_0x23b7a8,_0x34c77a,_0x292573),..._0x30b007},(Ee(_0x23b7a8,_0x34c77a)[_0x2a6d4f(0x1c1)]||[])[_0x2a6d4f(0x13b)]((_0x1ecb25,_0x1874ba)=>G(_0x1ecb25,_0x730401+'-'+_0x23b7a8['tag']+'-'+_0x1874ba,_0x34c77a,void 0x0,_0x292573)));}function be(_0x3a45cb,_0x3365b1,_0x3369d8){const _0x410a69=_0x457e80,_0x3bf41e={..._0x3a45cb[_0x410a69(0x160)]};_0x3369d8!=null&&_0x3369d8[_0x410a69(0x1a5)]&&_0x3bf41e[_0x410a69(0x156)]==='colorChannel1'&&(_0x3bf41e['fill']=_0x3369d8[_0x410a69(0x1a5)]),_0x3a45cb[_0x410a69(0x191)]===_0x410a69(0x164)&&_0x3bf41e['id']&&(_0x3bf41e['id']=_0x3bf41e['id']+_0x3365b1[_0x410a69(0x152)]),Object[_0x410a69(0x148)](_0x3bf41e)[_0x410a69(0x19e)](([_0xa65e1c,_0x2ea8d8])=>{const _0x37d730=_0x410a69;_0xa65e1c===_0x37d730(0x164)&&typeof _0x2ea8d8==_0x37d730(0x166)&&(_0x3bf41e[_0xa65e1c]=_0x2ea8d8[_0x37d730(0x1aa)](/url\(#(.*)\)/,_0x37d730(0x1ac)+_0x3365b1['idSuffix']+')'));});const {defIds:_0x4782f6}=_0x3365b1;return!_0x4782f6||_0x4782f6[_0x410a69(0x195)]===0x0||(_0x3a45cb[_0x410a69(0x191)]===_0x410a69(0x129)&&_0x3bf41e[_0x410a69(0x17d)]&&(_0x3bf41e[_0x410a69(0x17d)]=_0x3bf41e['xlink:href']+_0x3365b1[_0x410a69(0x152)]),Object[_0x410a69(0x148)](_0x3bf41e)[_0x410a69(0x19e)](([_0x1dc1c9,_0x1b4aa4])=>{const _0x5916e1=_0x410a69;typeof _0x1b4aa4==_0x5916e1(0x166)&&(_0x3bf41e[_0x1dc1c9]=_0x1b4aa4['replace'](/url\(#(.*)\)/,'url(#$1'+_0x3365b1['idSuffix']+')'));})),_0x3bf41e;}function Ee(_0x3363d9,_0x14428d){const _0x4c3def=_0x457e80;var _0x2d784e;const {defIds:_0x422d84}=_0x14428d;return!_0x422d84||_0x422d84[_0x4c3def(0x195)]===0x0?_0x3363d9:_0x3363d9[_0x4c3def(0x191)]===_0x4c3def(0x136)&&((_0x2d784e=_0x3363d9[_0x4c3def(0x1c1)])!=null&&_0x2d784e[_0x4c3def(0x195)])?{..._0x3363d9,'children':_0x3363d9[_0x4c3def(0x1c1)][_0x4c3def(0x13b)](_0x46d4d6=>typeof _0x46d4d6[_0x4c3def(0x160)]['id']=='string'&&_0x422d84&&_0x422d84[_0x4c3def(0x16d)](_0x46d4d6[_0x4c3def(0x160)]['id'])?{..._0x46d4d6,'attrs':{..._0x46d4d6['attrs'],'id':_0x46d4d6[_0x4c3def(0x160)]['id']+_0x14428d[_0x4c3def(0x152)]}}:_0x46d4d6)}:_0x3363d9;}function Oe(){const _0x27b388=_0x457e80;return Math[_0x27b388(0x144)]()[_0x27b388(0x199)](0x24)['substring'](0x2,0x8);}k[_0x457e80(0x14e)]=_0x457e80(0x1a3);const we={'tag':'svg','attrs':{'xmlns':_0x457e80(0x1be),'fill':'none','viewBox':_0x457e80(0x1bd),'width':'1em','height':'1em'},'children':[{'tag':_0x457e80(0x13c),'attrs':{'fill':_0x457e80(0x171),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x457e80(0x171),'d':_0x457e80(0x15a),'fillRule':_0x457e80(0x17b),'clipRule':_0x457e80(0x17b)}}]},W=_0x15364b(function(_0x4aef97,_0x1428d6){const _0x57f284=_0x457e80;return _0x1a7b27(k,Object[_0x57f284(0x188)]({},_0x4aef97,{'id':'live-share-icon','ref':_0x1428d6,'icon':we}));});W[_0x457e80(0x14e)]=_0x457e80(0x1b4);class L extends _0x1dbba8{constructor(){const _0x81ba0f=_0x457e80;super(...arguments),u(this,_0x81ba0f(0x1a9),new Set()),u(this,_0x81ba0f(0x126),new Set());}[_0x457e80(0x161)](_0x3a580f){const _0x7c62e3=_0x457e80;return this['_sharedOperations'][_0x7c62e3(0x137)](_0x3a580f),_0x2b7383(()=>this[_0x7c62e3(0x1a9)][_0x7c62e3(0x169)](_0x3a580f));}['registerInitialStateReporter'](_0x33d605){const _0xe7c985=_0x457e80;return this[_0xe7c985(0x126)][_0xe7c985(0x137)](_0x33d605),_0x2b7383(()=>this[_0xe7c985(0x126)][_0xe7c985(0x169)](_0x33d605));}[_0x457e80(0x139)](_0x4f07cf){const _0x5bf4fa=_0x457e80;return this[_0x5bf4fa(0x1a9)][_0x5bf4fa(0x178)](_0x4f07cf);}[_0x457e80(0x151)](_0x10fe1b){const _0x54fa1c=_0x457e80;return Array['from'](this[_0x54fa1c(0x126)])[_0x54fa1c(0x13b)](_0x29ba04=>_0x29ba04(_0x10fe1b));}}var Ne=Object[_0x457e80(0x1ba)],Y=(_0x4df76c,_0x49e790,_0x31d5bf,_0x4e94dd)=>{for(var _0x555ea4=_0x4e94dd>0x1?void 0x0:_0x4e94dd?Ne(_0x49e790,_0x31d5bf):_0x49e790,_0x2c0c87=_0x4df76c['length']-0x1,_0x169401;_0x2c0c87>=0x0;_0x2c0c87--)(_0x169401=_0x4df76c[_0x2c0c87])&&(_0x555ea4=_0x169401(_0x555ea4)||_0x555ea4);return _0x555ea4;},_=(_0x34426f,_0x3a6871)=>(_0x216ecf,_0x1dd872)=>_0x3a6871(_0x216ecf,_0x1dd872,_0x34426f);let S=class extends _0x123426{constructor(_0x5d080b,_0xe865da,_0x5b2303){const _0x3e47cc=_0x457e80;super(),u(this,'_entities',new Map()),(this[_0x3e47cc(0x12f)]=_0x5d080b,this['_injector']=_0xe865da,this['_collabSessionService']=_0x5b2303,this[_0x3e47cc(0x14a)]());}async[_0x457e80(0x1b0)](_0x3331f9){const _0x33f4e0=_0x457e80;return this[_0x33f4e0(0x17e)][_0x33f4e0(0x178)](_0x3331f9)||await this[_0x33f4e0(0x15c)](_0x3331f9),this[_0x33f4e0(0x17e)][_0x33f4e0(0x1a1)](_0x3331f9);}[_0x457e80(0x145)](_0x44173e){const _0x487ce2=_0x457e80;var _0x553328;return(_0x553328=this[_0x487ce2(0x17e)]['get'](_0x44173e))!=null?_0x553328:null;}[_0x457e80(0x14a)](){const _0x253937=_0x457e80;this[_0x253937(0x12f)]['getTypeOfUnitAdded$'](_0x49fe72[_0x253937(0x150)])[_0x253937(0x183)](_0x1446cd(this[_0x253937(0x1a7)]))['subscribe'](async _0xacd81e=>{const _0xbcc795=_0x253937,_0x2f7b99=_0xacd81e[_0xbcc795(0x18a)]();this[_0xbcc795(0x17e)][_0xbcc795(0x178)](_0x2f7b99)||this['_startLiveShareCoordinator'](_0x2f7b99);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x49fe72['UNIVER_SHEET'])[_0x253937(0x183)](_0x1446cd(this[_0x253937(0x1a7)]))['subscribe'](_0x5111fe=>{const _0x4b2891=_0x253937,_0xea04c2=_0x5111fe[_0x4b2891(0x18a)](),_0x1286e9=this['_entities'][_0x4b2891(0x1a1)](_0xea04c2);_0x1286e9==null||_0x1286e9[_0x4b2891(0x17a)]();});}async[_0x457e80(0x15c)](_0x16fa01){const _0x4f530f=_0x457e80,_0x459156=await this[_0x4f530f(0x15b)][_0x4f530f(0x186)](_0x16fa01),_0x294852=this[_0x4f530f(0x184)][_0x4f530f(0x17f)](N,_0x16fa01,_0x459156);return _0x294852[_0x4f530f(0x142)](),this[_0x4f530f(0x17e)]['set'](_0x16fa01,_0x294852),_0x294852;}};S=Y([_(0x0,_0x409e69),_(0x1,_0x2cb216(_0x1ed2ca)),_(0x2,_0x2cb216(_0x379963))],S);var c=(_0x4a21b9=>(_0x4a21b9['OFFLINE']='offline',_0x4a21b9['IDLE']=_0x457e80(0x16c),_0x4a21b9[_0x457e80(0x1b7)]=_0x457e80(0x194),_0x4a21b9['NOT_FOLLOWING']='not-following',_0x4a21b9[_0x457e80(0x157)]=_0x457e80(0x14c),_0x4a21b9))(c||{});const Ce=_0x457e80(0x1a8),De=0xc8;let N=class extends _0x123426{constructor(_0x2811d3,_0x47b018,_0x2cf313,_0x34d67a,_0x2b5476){const _0x306d49=_0x457e80;super(),u(this,'_status$',new _0x2d4397(_0x306d49(0x16c))),u(this,_0x306d49(0x127),this[_0x306d49(0x185)][_0x306d49(0x1c2)]()),u(this,_0x306d49(0x14a),!0x1),u(this,_0x306d49(0x190),null),u(this,_0x306d49(0x170),null),(this[_0x306d49(0x128)]=_0x2811d3,this[_0x306d49(0x18d)]=_0x47b018,this[_0x306d49(0x179)]=_0x2cf313,this[_0x306d49(0x18f)]=_0x34d67a,this['_commandService']=_0x2b5476);}get[_0x457e80(0x1b6)](){return this['_status$']['getValue']();}[_0x457e80(0x17a)](){const _0x215005=_0x457e80;var _0xfa1b51;(_0xfa1b51=this['_commandDisposable'])==null||_0xfa1b51[_0x215005(0x17a)](),this[_0x215005(0x185)]['next'](_0x215005(0x16c)),this[_0x215005(0x185)][_0x215005(0x135)]();}['getStatus'](){const _0x3ade07=_0x457e80;return this[_0x3ade07(0x1b6)];}['init'](){const _0x45cc04=_0x457e80;this[_0x45cc04(0x14a)]||(this[_0x45cc04(0x14a)]=!0x0,this[_0x45cc04(0x18d)][_0x45cc04(0x125)][_0x45cc04(0x183)](_0x1446cd(this[_0x45cc04(0x1a7)]))['subscribe'](_0x2247ee=>{const _0x34a297=_0x45cc04;switch(_0x2247ee){case _0x3602b9[_0x34a297(0x193)]:this[_0x34a297(0x1af)]();break;case _0x3602b9[_0x34a297(0x173)]:this[_0x34a297(0x141)]();break;}}),this[_0x45cc04(0x18d)][_0x45cc04(0x1b2)][_0x45cc04(0x183)](_0x1446cd(this['dispose$']))[_0x45cc04(0x15d)](_0x1161b3=>{const _0x4291c1=_0x45cc04,{eventID:_0x50fd1e}=_0x1161b3;switch(_0x50fd1e){case _0x40f9b1['LIVESHARE_NEW_HOST']:this[_0x4291c1(0x155)](_0x1161b3);break;case _0x40f9b1[_0x4291c1(0x149)]:this[_0x4291c1(0x19d)](_0x1161b3);break;case _0x40f9b1[_0x4291c1(0x16e)]:this[_0x4291c1(0x138)]();break;case _0x40f9b1['NEW_CHANGESETS']:this[_0x4291c1(0x172)](_0x1161b3);break;}}));}[_0x457e80(0x18c)](){const _0x31dc7f=_0x457e80;this['_collabSession'][_0x31dc7f(0x15e)]({'eventID':_0x40f9b1[_0x31dc7f(0x176)],'data':{'unitID':this[_0x31dc7f(0x128)],'userID':this['_collabSession'][_0x31dc7f(0x13a)]()}},this[_0x31dc7f(0x128)]);}[_0x457e80(0x19c)](){const _0x5addb4=_0x457e80;this['_status']==='presenting'&&(this['_status$'][_0x5addb4(0x192)](_0x5addb4(0x16c)),this[_0x5addb4(0x18d)]['send']({'eventID':_0x40f9b1[_0x5addb4(0x16e)],'data':{'unitID':this[_0x5addb4(0x128)]}},this[_0x5addb4(0x128)]));}[_0x457e80(0x132)](){const _0x578c75=_0x457e80;this[_0x578c75(0x1b6)]===_0x578c75(0x14d)&&(this['_status$']['next'](_0x578c75(0x194)),this[_0x578c75(0x1a4)]());}[_0x457e80(0x131)](){const _0x3d5bc0=_0x457e80;this[_0x3d5bc0(0x1b6)]==='following'&&this[_0x3d5bc0(0x13f)]();}[_0x457e80(0x155)](_0x29bea4){const _0x3a4ff9=_0x457e80,{presenter:_0x10be51}=_0x29bea4[_0x3a4ff9(0x1ad)],_0x2a8737=this[_0x3a4ff9(0x18d)]['getMemberID']();this[_0x3a4ff9(0x170)]=_0x10be51,_0x10be51===_0x2a8737?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x3a4ff9(0x14d)&&(this[_0x3a4ff9(0x14b)](),this['_startFollowing']());}[_0x457e80(0x16b)](){const _0x309c15=_0x457e80,_0x29d7b2={'eventID':_0x40f9b1[_0x309c15(0x1c0)]};this[_0x309c15(0x18d)][_0x309c15(0x15e)](_0x29d7b2,this['_unitID']);}[_0x457e80(0x138)](){const _0x57c423=_0x457e80;this[_0x57c423(0x170)]=null,this[_0x57c423(0x1b6)]!==_0x57c423(0x14c)&&this['_beIdle']();}[_0x457e80(0x172)](_0x492282){const _0x23fa2b=_0x457e80;if(this[_0x23fa2b(0x1b6)]===_0x23fa2b(0x194)&&this[_0x23fa2b(0x170)]===_0x492282['data'][_0x23fa2b(0x124)]){const _0x11f75c=_0x55d15c(_0x492282['data'])['mutations'][_0x23fa2b(0x143)]()['find'](_0xc5df71=>_0xc5df71['id']===_0x17b5b6['id']);if(_0x11f75c){const _0x44fc3c=_0x11f75c[_0x23fa2b(0x12d)][_0x23fa2b(0x18e)],_0xa94a49=_0x11f75c['params'][_0x23fa2b(0x19f)]['id'];setTimeout(()=>{const _0x1e6f39=_0x23fa2b;this[_0x1e6f39(0x13e)][_0x1e6f39(0x167)](_0x5d7627['id'],{'unitId':_0x44fc3c,'subUnitId':_0xa94a49},{'fromCollab':!0x0});});}}}[_0x457e80(0x19b)](){const _0x5d160d=_0x457e80;this[_0x5d160d(0x185)][_0x5d160d(0x192)]('presenting');const _0x489eb8=new Map(),_0x485d88=this[_0x5d160d(0x190)]=new _0x452cb9();_0x485d88[_0x5d160d(0x137)](_0x2b7383(()=>{const _0x114852=_0x5d160d;_0x489eb8[_0x114852(0x19e)](_0x336bff=>_0x336bff[_0x114852(0x135)]()),_0x489eb8[_0x114852(0x162)]();})),_0x485d88['add'](this[_0x5d160d(0x13e)][_0x5d160d(0x12b)](_0x3ed3bf=>{const _0x102fb3=_0x5d160d;var _0x4382f3;if(_0x3ed3bf['type']!==_0x16215c[_0x102fb3(0x1a6)]||!this[_0x102fb3(0x18f)][_0x102fb3(0x139)](_0x3ed3bf['id']))return;const {id:_0x57bdf0}=_0x3ed3bf;let _0xbdfd93;_0x489eb8['has'](_0x57bdf0)?_0xbdfd93=_0x489eb8[_0x102fb3(0x1a1)](_0x57bdf0):(_0xbdfd93=new _0x45a108(),_0x489eb8[_0x102fb3(0x154)](_0x57bdf0,_0xbdfd93),_0xbdfd93['pipe'](_0x36d9d3((_0x4382f3=this[_0x102fb3(0x179)]['getConfig'](Ce))!=null?_0x4382f3:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x102fb3(0x15d)](_0xabba34=>{const _0x28447a=_0x102fb3;this['_collabSession']['send']({'eventID':_0x40f9b1[_0x28447a(0x149)],'data':{'unitID':this[_0x28447a(0x128)],'operations':{[_0xabba34['id']]:{'id':_0xabba34['id'],'params':JSON['stringify'](_0xabba34[_0x28447a(0x12d)])}}}},this[_0x28447a(0x128)]);})),_0xbdfd93[_0x102fb3(0x192)](_0x3ed3bf);})),this[_0x5d160d(0x18f)][_0x5d160d(0x151)](this[_0x5d160d(0x128)])[_0x5d160d(0x19e)](_0x18b1e7=>this[_0x5d160d(0x18d)][_0x5d160d(0x15e)]({'eventID':_0x40f9b1[_0x5d160d(0x149)],'data':{'unitID':this['_unitID'],'operations':{[_0x18b1e7['id']]:{'id':_0x18b1e7['id'],'params':JSON['stringify'](_0x18b1e7[_0x5d160d(0x12d)])}}}},this[_0x5d160d(0x128)]));}[_0x457e80(0x14b)](){const _0x151cc9=_0x457e80;var _0x2ecc0c;this[_0x151cc9(0x185)][_0x151cc9(0x192)](_0x151cc9(0x16c)),(_0x2ecc0c=this[_0x151cc9(0x190)])==null||_0x2ecc0c[_0x151cc9(0x17a)](),this[_0x151cc9(0x190)]=null;}[_0x457e80(0x1a4)](){const _0x386a14=_0x457e80;var _0x739216;(_0x739216=this[_0x386a14(0x190)])==null||_0x739216[_0x386a14(0x17a)](),this[_0x386a14(0x185)]['next'](_0x386a14(0x194));}['_beIdle'](){const _0x12fb00=_0x457e80;var _0x1da624;this[_0x12fb00(0x185)][_0x12fb00(0x192)]('idle'),(_0x1da624=this[_0x12fb00(0x190)])==null||_0x1da624[_0x12fb00(0x17a)](),this[_0x12fb00(0x190)]=null;}['_stopFollowing'](){const _0x52c12e=_0x457e80;var _0x335060;this['_status$'][_0x52c12e(0x192)](_0x52c12e(0x14d)),(_0x335060=this[_0x52c12e(0x190)])==null||_0x335060[_0x52c12e(0x17a)]();}['_handleOperation'](_0x3edf9e){const _0x371b5f=_0x457e80;if(['presenting',_0x371b5f(0x14d),'offline'][_0x371b5f(0x16d)](this['_status'])||!_0x3edf9e[_0x371b5f(0x1ad)][_0x371b5f(0x1ab)]||_0x3edf9e['data'][_0x371b5f(0x1ab)]===this[_0x371b5f(0x18d)][_0x371b5f(0x13a)]())return;this[_0x371b5f(0x1b6)]==='idle'&&this['_startFollowing']();const _0x414c88=_0x3edf9e[_0x371b5f(0x1ad)][_0x371b5f(0x18b)];Object[_0x371b5f(0x189)](_0x414c88)[_0x371b5f(0x19e)](_0x365b98=>{const _0x26a95b=_0x371b5f;this[_0x26a95b(0x13e)][_0x26a95b(0x167)](_0x365b98['id'],_0x365b98[_0x26a95b(0x12d)]?JSON[_0x26a95b(0x1bc)](_0x365b98['params']):null,{'fromCollab':!0x0});});}[_0x457e80(0x1af)](){const _0x146ac7=_0x457e80;var _0x23cf12;this[_0x146ac7(0x185)][_0x146ac7(0x192)]('offline'),(_0x23cf12=this[_0x146ac7(0x190)])==null||_0x23cf12['dispose']();}[_0x457e80(0x141)](){const _0x356063=_0x457e80;this[_0x356063(0x185)]['next'](_0x356063(0x16c)),this[_0x356063(0x16b)]();}};function _0x2812(_0x5b61e4,_0x52a625){_0x5b61e4=_0x5b61e4-0x124;const _0x4fed2f=_0x4fed();let _0x281277=_0x4fed2f[_0x5b61e4];return _0x281277;}N=Y([_(0x2,_0x33b07b),_(0x3,_0x2cb216(L)),_(0x4,_0x1849e6)],N);function Le(){const _0x169dcc=_0x457e80,_0x276fc6=_0x10658c(S),_0x55660b=_0x10658c(_0x409e69),_0x43ac06=_0x464b8d(()=>_0x55660b['getCurrentTypeOfUnit$'](_0x49fe72[_0x169dcc(0x150)]),void 0x0,!0x1,[]),[_0x4b9bda,_0x455b1f]=_0x408c56(null),[_0xbd5ed6,_0x23eff9]=_0x408c56(c[_0x169dcc(0x174)]),_0x311c4c=_0x1cdb79(null);return _0x14ee1d(()=>(_0x43ac06&&_0x276fc6[_0x169dcc(0x1b0)](_0x43ac06[_0x169dcc(0x18a)]())[_0x169dcc(0x165)](_0x476acd=>{const _0x2d4ee6=_0x169dcc;_0x455b1f(_0x476acd),_0x311c4c[_0x2d4ee6(0x130)]=_0x476acd[_0x2d4ee6(0x127)][_0x2d4ee6(0x15d)](_0x315042=>{_0x23eff9(_0x315042);});}),()=>{const _0x5a344f=_0x169dcc;var _0x445c01;(_0x445c01=_0x311c4c[_0x5a344f(0x130)])==null||_0x445c01[_0x5a344f(0x140)](),_0x311c4c['current']=null;}),[_0x43ac06,_0x276fc6]),_0x4b9bda?_0x20f1bf(_0x453919,{'align':_0x169dcc(0x175),'disabled':_0xbd5ed6===c[_0x169dcc(0x193)],'className':_0x169dcc(0x198),'overlay':_0x20f1bf(Re,{'status':_0xbd5ed6,'coordinator':_0x4b9bda}),'children':_0x20f1bf('button',{'className':_0x40f0b2('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xbd5ed6===c[_0x169dcc(0x193)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xbd5ed6!==c[_0x169dcc(0x193)]}),'type':_0x169dcc(0x1a2),'children':_0x20f1bf(W,{'className':_0x169dcc(0x1b5)})})}):null;}function Re(_0x90ce32){const _0x37b8e3=_0x457e80,{status:_0x1f8983,coordinator:_0x2bc9f9}=_0x90ce32;switch(_0x1f8983){case c[_0x37b8e3(0x174)]:return _0x20f1bf($e,{'coordinator':_0x2bc9f9});case c[_0x37b8e3(0x1b7)]:return _0x20f1bf(xe,{'coordinator':_0x2bc9f9});case c['NOT_FOLLOWING']:return _0x20f1bf(Pe,{'coordinator':_0x2bc9f9});case c[_0x37b8e3(0x193)]:return _0x20f1bf(Te,{});case c['PRESENTING']:return _0x20f1bf(Ae,{'coordinator':_0x2bc9f9});default:return null;}}function $e(_0x1e099c){const _0x82d8c5=_0x457e80,{coordinator:_0x1d52d3}=_0x1e099c;return _0x7c6f4a(_0x4ea446,{'children':[_0x20f1bf(_0x82d8c5(0x163),{'className':_0x82d8c5(0x133),'children':_0x82d8c5(0x197)}),_0x20f1bf(_0x588942,{'onClick':()=>_0x1d52d3['tryStartPresenting'](),'children':_0x82d8c5(0x159)})]});}function xe(_0x56576c){const _0x3dcf61=_0x457e80,{coordinator:_0x3a4b3f}=_0x56576c;return _0x7c6f4a(_0x4ea446,{'children':[_0x20f1bf(_0x3dcf61(0x163),{'className':_0x3dcf61(0x133),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x20f1bf(_0x588942,{'onClick':()=>_0x3a4b3f[_0x3dcf61(0x131)](),'children':_0x3dcf61(0x168)})]});}function Pe(_0x53fc7d){const _0x2ab574=_0x457e80,{coordinator:_0x481262}=_0x53fc7d;return _0x7c6f4a(_0x4ea446,{'children':[_0x20f1bf(_0x2ab574(0x163),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x20f1bf(_0x588942,{'variant':'text','onClick':()=>_0x481262['startFollowing'](),'children':_0x2ab574(0x15f)})]});}function Ae(_0x8d314c){const _0x5e1447=_0x457e80,{coordinator:_0x31cad4}=_0x8d314c;return _0x7c6f4a(_0x4ea446,{'children':[_0x20f1bf(_0x5e1447(0x163),{'className':_0x5e1447(0x133),'children':_0x5e1447(0x1b3)}),_0x20f1bf(_0x588942,{'variant':_0x5e1447(0x1ae),'onClick':()=>_0x31cad4[_0x5e1447(0x19c)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x4d1053=_0x457e80;return _0x20f1bf(_0x4ea446,{'children':_0x4d1053(0x1bb)});}var Fe=Object[_0x457e80(0x1ba)],He=(_0x3c79b8,_0x5bc4c7,_0x26f9be,_0x47cac2)=>{const _0x254bbd=_0x457e80;for(var _0x2698cb=_0x47cac2>0x1?void 0x0:_0x47cac2?Fe(_0x5bc4c7,_0x26f9be):_0x5bc4c7,_0x7e204=_0x3c79b8[_0x254bbd(0x195)]-0x1,_0x9d5e49;_0x7e204>=0x0;_0x7e204--)(_0x9d5e49=_0x3c79b8[_0x7e204])&&(_0x2698cb=_0x9d5e49(_0x2698cb)||_0x2698cb);return _0x2698cb;},A=(_0x17e6c7,_0x5beab7)=>(_0x5b61d3,_0x23efac)=>_0x5beab7(_0x5b61d3,_0x23efac,_0x17e6c7);let m=class extends _0x1dbba8{constructor(_0x4bf02c,_0x1c3892){const _0x32ff85=_0x457e80;super(),this[_0x32ff85(0x184)]=_0x4bf02c,this[_0x32ff85(0x1b8)]=_0x1c3892,this['_mountLiveShare']();}[_0x457e80(0x16f)](){const _0x26f0c7=_0x457e80;this[_0x26f0c7(0x134)](this[_0x26f0c7(0x1b8)][_0x26f0c7(0x17c)](_0x57f012['HEADER_MENU'],()=>_0x3cfc29(Le,this[_0x26f0c7(0x184)])));}};m=He([A(0x0,_0x2cb216(_0x1ed2ca)),A(0x1,_0x5cd8c2)],m);const ye=_0x457e80(0x182),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x22d05f,_0x320e47,_0x46a071,_0x276b61)=>{const _0x30290e=_0x457e80;for(var _0xe0bb6b=_0x276b61>0x1?void 0x0:_0x276b61?Ue(_0x320e47,_0x46a071):_0x320e47,_0x59f01b=_0x22d05f[_0x30290e(0x195)]-0x1,_0x44621a;_0x59f01b>=0x0;_0x59f01b--)(_0x44621a=_0x22d05f[_0x59f01b])&&(_0xe0bb6b=_0x44621a(_0xe0bb6b)||_0xe0bb6b);return _0xe0bb6b;},je=(_0x3ee1a6,_0x3bb214)=>(_0x4b8a39,_0x4c77bb)=>_0x3bb214(_0x4b8a39,_0x4c77bb,_0x3ee1a6);let I=class extends _0x1dbba8{constructor(_0x23f1dc){const _0x693e7b=_0x457e80;super(),this[_0x693e7b(0x18f)]=_0x23f1dc,this[_0x693e7b(0x14a)]();}[_0x457e80(0x14a)](){const _0xa4d33=_0x457e80;[_0x592b93['id'],_0x593fcd['id'],_0x5d7627['id']][_0xa4d33(0x19e)](_0x1351b7=>{const _0x3f2d76=_0xa4d33;this[_0x3f2d76(0x134)](this[_0x3f2d76(0x18f)][_0x3f2d76(0x161)](_0x1351b7));});}};I=Ve([je(0x0,_0x2cb216(L))],I);var Me=Object['defineProperty'],ke=Object[_0x457e80(0x1ba)],Ge=(_0x4ad364,_0x1235fa,_0x1f0753)=>_0x1235fa in _0x4ad364?Me(_0x4ad364,_0x1235fa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f0753}):_0x4ad364[_0x1235fa]=_0x1f0753,We=(_0x57d8ca,_0x15e738,_0x40559a,_0x48317c)=>{const _0x6af07f=_0x457e80;for(var _0x342a08=_0x48317c>0x1?void 0x0:_0x48317c?ke(_0x15e738,_0x40559a):_0x15e738,_0xb880df=_0x57d8ca[_0x6af07f(0x195)]-0x1,_0x2cd3ea;_0xb880df>=0x0;_0xb880df--)(_0x2cd3ea=_0x57d8ca[_0xb880df])&&(_0x342a08=_0x2cd3ea(_0x342a08)||_0x342a08);return _0x342a08;},F=(_0x21cded,_0x19966a)=>(_0xbe5631,_0x28ac02)=>_0x19966a(_0xbe5631,_0x28ac02,_0x21cded),B=(_0x3aa81a,_0x57997c,_0x250b1e)=>Ge(_0x3aa81a,typeof _0x57997c!='symbol'?_0x57997c+'':_0x57997c,_0x250b1e);const Ye=_0x457e80(0x180);let b=class extends _0x36cb3f{constructor(_0x314415=T,_0x536963,_0xb37936){const _0x4414a5=_0x457e80;super(),this['_config']=_0x314415,this[_0x4414a5(0x184)]=_0x536963,this[_0x4414a5(0x179)]=_0xb37936;const {..._0x24d08d}=_0x3205c5({},T,this[_0x4414a5(0x13d)]);this[_0x4414a5(0x179)]['setConfig'](ye,_0x24d08d);}['onStarting'](){const _0x47826f=_0x457e80;_0x531e72(this[_0x47826f(0x184)],_0x5d731b([[L],[S],[I],[m]],this[_0x47826f(0x13d)][_0x47826f(0x187)])),_0x230ca3(this[_0x47826f(0x184)],[[I]]);}[_0x457e80(0x153)](){const _0x54b688=_0x457e80;_0x230ca3(this[_0x54b688(0x184)],[[m]]);}};B(b,_0x457e80(0x16a),_0x49fe72[_0x457e80(0x19a)]),B(b,_0x457e80(0x181),Ye),b=We([_0x26a88b(_0x4cf46e),F(0x1,_0x2cb216(_0x1ed2ca)),F(0x2,_0x33b07b)],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 _0x3ba8(_0x5a359a,_0x2c42e6){_0x5a359a=_0x5a359a-0xb7;const _0xf85d07=_0xf85d();let _0x3ba86d=_0xf85d07[_0x5a359a];return _0x3ba86d;}function _0xf85d(){const _0x2cdef7=['getStatus','LiveShareStatus','636696aSzbvI','syncExecuteCommand','stopPresenting','UniverProLiveShare','LiveShareController','startFollowing','getId','getLiveShareStatus','function','amd','UniverEngineRender','131406HkJOUN','_commandService','@univerjs-pro/live-share','127221zYToTT','UniverSheetsUi','@univerjs/sheets','tryStartPresenting','executeCommand','No\x20active\x20workbook\x20found.','PRESENTING','getUnitId','getActiveWorkbook','FEnum','startColumn','SetWorksheetActiveOperation','LiveShareStatusEnum','getLiveShareCoordinatorSync','SetScrollOperation','get','IDLE','UniverCoreFacade','stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','14DetoOH','1866414vkUnlS','FRange','_injector','@univerjs/core/facade','_initialize','extend','@univerjs/sheets/facade','24DTmjsR','5902533BpPuAb','getActiveSheet','653816gpUSSd','UniverSheetsFacade','FUniver','840575CHNGaK'];_0xf85d=function(){return _0x2cdef7;};return _0xf85d();}(function(_0x8ea8ac,_0x23b623){const _0x495822=_0x3ba8,_0x643dd1=_0x8ea8ac();while(!![]){try{const _0x2882a3=parseInt(_0x495822(0xe7))/0x1+parseInt(_0x495822(0xd9))/0x2+-parseInt(_0x495822(0xe4))/0x3*(parseInt(_0x495822(0xd0))/0x4)+-parseInt(_0x495822(0xd6))/0x5+-parseInt(_0x495822(0xc9))/0x6+-parseInt(_0x495822(0xc8))/0x7*(parseInt(_0x495822(0xd3))/0x8)+parseInt(_0x495822(0xd1))/0x9;if(_0x2882a3===_0x23b623)break;else _0x643dd1['push'](_0x643dd1['shift']());}catch(_0x392d1e){_0x643dd1['push'](_0x643dd1['shift']());}}}(_0xf85d,0x2fd74),function(_0x4070e4,_0x348a6a){const _0x2363fd=_0x3ba8;typeof exports=='object'&&typeof module<'u'?_0x348a6a(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==_0x2363fd(0xe1)&&define[_0x2363fd(0xe2)]?define([_0x2363fd(0xe6),'@univerjs/engine-render',_0x2363fd(0xe9),'@univerjs/sheets-ui',_0x2363fd(0xcf),_0x2363fd(0xcc)],_0x348a6a):(_0x4070e4=typeof globalThis<'u'?globalThis:_0x4070e4||self,_0x348a6a(_0x4070e4[_0x2363fd(0xdc)],_0x4070e4[_0x2363fd(0xe3)],_0x4070e4['UniverSheets'],_0x4070e4[_0x2363fd(0xe8)],_0x4070e4[_0x2363fd(0xd4)],_0x4070e4[_0x2363fd(0xc5)]));}(this,function(_0x4c3103,_0x2fa345,_0x29be9a,_0x492d85,_0x544a1f,_0x5767c0){'use strict';const _0x1047fa=_0x3ba8;class _0x207f29 extends _0x544a1f[_0x1047fa(0xca)]{[_0x1047fa(0xcd)](_0x19e604,_0x5f1dec,_0x2b55be,_0x568b8e,_0x4ab4e5){const _0x1930c3=_0x1047fa,_0x2d958f=_0x19e604[_0x1930c3(0xc3)](_0x4c3103['LiveShareController']),_0x2fb01e=_0x19e604[_0x1930c3(0xc3)](_0x2fa345['IRenderManagerService']),_0x5813a2=_0x5f1dec[_0x1930c3(0xbb)](),_0x3a5d20=_0x5f1dec[_0x1930c3(0xd2)](),_0x5311e6=_0x2d958f['getLiveShareCoordinatorSync'](_0x5813a2);(_0x5311e6==null?void 0x0:_0x5311e6[_0x1930c3(0xd7)]())!==_0x4c3103['LiveShareStatus'][_0x1930c3(0xba)]||(_0x2b55be['getSheetId']()!==_0x3a5d20['getSheetId']()&&this[_0x1930c3(0xe5)][_0x1930c3(0xb8)](_0x29be9a[_0x1930c3(0xbf)]['id'],{'unitId':_0x5813a2,'subUnitId':_0x2b55be['getSheetId']()}),!_0x2fb01e['getRenderById'](_0x5813a2))||_0x4ab4e5[_0x1930c3(0xda)](_0x492d85[_0x1930c3(0xc2)]['id'],{'unitId':_0x5f1dec[_0x1930c3(0xbb)](),'sheetId':_0x2b55be['getSheetId'](),'sheetViewStartRow':_0x568b8e['startRow'],'sheetViewStartColumn':_0x568b8e[_0x1930c3(0xbe)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x544a1f['FRange']['extend'](_0x207f29);class _0x505abd extends _0x5767c0[_0x1047fa(0xd5)]{[_0x1047fa(0xe0)](){const _0x3db65d=_0x1047fa;var _0x2d467d,_0xa3e048;const _0x131fee=this[_0x3db65d(0xcb)][_0x3db65d(0xc3)](_0x4c3103[_0x3db65d(0xdd)]),_0x5cb109=(_0x2d467d=this[_0x3db65d(0xbc)]())==null?void 0x0:_0x2d467d['getId']();if(!_0x5cb109)throw new Error(_0x3db65d(0xb9));const _0x41b053=_0x131fee[_0x3db65d(0xc1)](_0x5cb109);return(_0xa3e048=_0x41b053==null?void 0x0:_0x41b053[_0x3db65d(0xd7)]())!=null?_0xa3e048:_0x4c3103[_0x3db65d(0xd8)][_0x3db65d(0xc4)];}[_0x1047fa(0xde)](){const _0x480b5d=_0x1047fa;var _0x572978;const _0x15ab02=this[_0x480b5d(0xcb)][_0x480b5d(0xc3)](_0x4c3103['LiveShareController']),_0x42d644=(_0x572978=this['getActiveWorkbook']())==null?void 0x0:_0x572978['getId']();if(!_0x42d644)throw new Error(_0x480b5d(0xb9));const _0x5a833d=_0x15ab02[_0x480b5d(0xc1)](_0x42d644);if(!_0x5a833d)throw new Error(_0x480b5d(0xc7));_0x5a833d[_0x480b5d(0xde)]();}[_0x1047fa(0xc6)](){const _0x5d675e=_0x1047fa;var _0x41a5b5;const _0x433348=this[_0x5d675e(0xcb)][_0x5d675e(0xc3)](_0x4c3103[_0x5d675e(0xdd)]),_0x5a59e3=(_0x41a5b5=this['getActiveWorkbook']())==null?void 0x0:_0x41a5b5[_0x5d675e(0xdf)]();if(!_0x5a59e3)throw new Error('No\x20active\x20workbook\x20found.');const _0x4970fd=_0x433348[_0x5d675e(0xc1)](_0x5a59e3);if(!_0x4970fd)throw new Error(_0x5d675e(0xc7));_0x4970fd[_0x5d675e(0xc6)]();}['startPresenting'](){const _0x5718fc=_0x1047fa;var _0x36392f;const _0x5d89c4=this[_0x5718fc(0xcb)][_0x5718fc(0xc3)](_0x4c3103[_0x5718fc(0xdd)]),_0x53035f=(_0x36392f=this['getActiveWorkbook']())==null?void 0x0:_0x36392f[_0x5718fc(0xdf)]();if(!_0x53035f)throw new Error(_0x5718fc(0xb9));const _0x1b3656=_0x5d89c4['getLiveShareCoordinatorSync'](_0x53035f);if(!_0x1b3656)throw new Error(_0x5718fc(0xc7));_0x1b3656[_0x5718fc(0xb7)]();}['stopPresenting'](){const _0x6758ff=_0x1047fa;var _0x3f66af;const _0x568139=this[_0x6758ff(0xcb)][_0x6758ff(0xc3)](_0x4c3103[_0x6758ff(0xdd)]),_0x210e42=(_0x3f66af=this[_0x6758ff(0xbc)]())==null?void 0x0:_0x3f66af['getId']();if(!_0x210e42)throw new Error(_0x6758ff(0xb9));const _0x4fc267=_0x568139['getLiveShareCoordinatorSync'](_0x210e42);if(!_0x4fc267)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4fc267[_0x6758ff(0xdb)]();}}_0x5767c0[_0x1047fa(0xd5)][_0x1047fa(0xce)](_0x505abd);class _0x2a8290 extends _0x5767c0[_0x1047fa(0xbd)]{get[_0x1047fa(0xc0)](){return _0x4c3103['LiveShareStatus'];}}_0x5767c0[_0x1047fa(0xbd)][_0x1047fa(0xce)](_0x2a8290);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4c6b(){const _0x15262d=['useRef','14471960pWOQQn','end','init','UNIVER_SHEET','set','button','Plugin','attrs','UniverCollaborationClientPlugin','mask','_startLiveShareCoordinator','IUIPartsService','904LHVbtM','_sharedOperations','Button','defineProperty','ICommandService','_stopFollowing','override','object','jsxs','function','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','trim','_entities','entries','0\x200\x2017\x2017','univer-mb-3\x20univer-w-full\x20univer-text-sm','unsubscribe','add','startFollowing','UniverSheets','delete','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','CollaborationEvent','string','exports','forEach','12579glIYwz','following','_collabSession','_handleOffline','IDLE','length','_beIdle','1em','LiveShareController','live-share-icon','NOT_FOLLOWING','DisposableCollection','offline','_init','path','_config','dispose','type','data','@univerjs/sheets-ui','OPERATION','default','BehaviorSubject','defIds','getTypeOfUnitAdded$','UNIVER_LIVE_SHARE_PLUGIN','none','_liveShareService','UniverIcon','unitId','next','_presenter','1131270qvTfNo','operations','reverse','PRESENTING','Injector','complete','stopFollowing','use','245hyXokz','event$','SAME_OPERATION_SHARE_INTERVAL','presenting','_handleTerminate','includes','then','BuiltInUIPart','LIVESHARE_TERMINATE','jsx','idle','tag','subscribe','_status$','getConfig','toString','univerjs-icon\x20univerjs-icon-','symbol','throttleTime','34LZVaVm','pluginName','SetWorksheetActiveOperation','6094818CaxbLd','@univerjs/ui','createElement','React','fill','_stopPresenting','div','createInstance','currentColor','_reporters','LiveShareService','_startPresenting','Stop\x20following','onCommandExecuted','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','executeCommand','_collabSessionService','@univerjs-pro/collaboration','disposeWithMe','useDependency','FOLLOWING','LiveShareCoordinator','ONLINE','IUniverInstanceService','_startFollowing','SetZoomRatioOperation','LiveShareStatus','parse','Start\x20following','IConfigService','touchDependencies','SessionStatus','getUnitId','svg','getCurrentTypeOfUnit$','_univerInstanceService','requireSession','defs','133674wYmWju','registerInitialStateReporter','OFFLINE','RxDisposable','xlink:href','connectInjector','UniverLiveSharePlugin','useState','send','_unitID','useEffect','SetScrollOperation','assign','replace','mutations','has','params','@univerjs/design','Inject','getValue','@univerjs/sheets','_commandDisposable','stopPresenting','onStarting','asObservable','evenodd','Dropdown','displayName','Stop\x20presenting','current','_handleOnline','status$','stringify','find','takeUntil','getLiveShareCoordinator','_configService','parseProtocolChangeset','UniverUi','dispose$','registerSharedOperation','UniverDesign','rxjs','useObservable','getTypeOfUnitDisposed$','children','getLiveShareCoordinatorSync','30312TcZFPz','amd','DesktopLiveShareController','forwardRef','memberID','mergeOverrideWithDependencies','idSuffix','InsertSheetMutation','Subject','not-following','getOwnPropertyDescriptor','_handleNewChangeSets','presenter','LIVESHARE_NEW_HOST','_status','pipe','clsx','text','You\x27re\x20not\x20following\x20the\x20presenter','registerDependencies','merge','_commandService','UniverCore','LIVESHARE_OPERATION','live-share.config','_injector','Present\x20this\x20document','CommandType','colorChannel1','5366700NireLU','substring','UniverSheetsUi','22zWHyPe','UniverInstanceType','tryStartPresenting','toDisposable','NEW_CHANGESETS','_uiPartsService','HEADER_MENU','map','Fragment','univer-size-4','Disposable'];_0x4c6b=function(){return _0x15262d;};return _0x4c6b();}function _0x586c(_0x5691b3,_0x4f558c){_0x5691b3=_0x5691b3-0x19d;const _0x4c6bd4=_0x4c6b();let _0x586cac=_0x4c6bd4[_0x5691b3];return _0x586cac;}(function(_0x475143,_0x33b237){const _0x2c4435=_0x586c,_0x282416=_0x475143();while(!![]){try{const _0x2d7f0d=-parseInt(_0x2c4435(0x25d))/0x1+-parseInt(_0x2c4435(0x278))/0x2*(parseInt(_0x2c4435(0x1bc))/0x3)+parseInt(_0x2c4435(0x1eb))/0x4*(parseInt(_0x2c4435(0x265))/0x5)+-parseInt(_0x2c4435(0x27b))/0x6+-parseInt(_0x2c4435(0x23d))/0x7*(parseInt(_0x2c4435(0x223))/0x8)+parseInt(_0x2c4435(0x208))/0x9+-parseInt(_0x2c4435(0x217))/0xa*(-parseInt(_0x2c4435(0x20b))/0xb);if(_0x2d7f0d===_0x33b237)break;else _0x282416['push'](_0x282416['shift']());}catch(_0x58f1c0){_0x282416['push'](_0x282416['shift']());}}}(_0x4c6b,0xb82da),function(_0x3654e5,_0xba6531){const _0x44eafc=_0x586c;typeof exports==_0x44eafc(0x22a)&&typeof module<'u'?_0xba6531(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==_0x44eafc(0x22c)&&define[_0x44eafc(0x1ec)]?define([_0x44eafc(0x23b),'@univerjs/core',_0x44eafc(0x27c),'react/jsx-runtime',_0x44eafc(0x1cd),'react',_0x44eafc(0x1a7),'@univerjs-pro/collaboration-client',_0x44eafc(0x1d0),_0x44eafc(0x1e6),'rxjs/operators',_0x44eafc(0x250)],_0xba6531):(_0x3654e5=typeof globalThis<'u'?globalThis:_0x3654e5||self,_0xba6531(_0x3654e5['UniverProLiveShare']={},_0x3654e5[_0x44eafc(0x201)],_0x3654e5[_0x44eafc(0x1e2)],_0x3654e5[_0x44eafc(0x27e)],_0x3654e5[_0x44eafc(0x1e5)],_0x3654e5['React'],_0x3654e5['UniverProCollaboration'],_0x3654e5['UniverProCollaborationClient'],_0x3654e5[_0x44eafc(0x236)],_0x3654e5[_0x44eafc(0x1e6)],_0x3654e5['rxjs']['operators'],_0x3654e5[_0x44eafc(0x20a)]));}(this,function(_0x531713,_0x578637,_0x51c68d,_0x4e8258,_0x80076a,_0x1b3469,_0x17874a,_0x42171a,_0x2275db,_0x48b2dd,_0x2cdb56,_0x138877){'use strict';const _0x31a07c=_0x586c;var _0x239b00=Object[_0x31a07c(0x226)],_0x3d93b0=(_0xecdc66,_0x4d9352,_0x3ec629)=>_0x4d9352 in _0xecdc66?_0x239b00(_0xecdc66,_0x4d9352,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ec629}):_0xecdc66[_0x4d9352]=_0x3ec629,_0xe30dc1=(_0x216b71,_0x6eb35d,_0x57015a)=>_0x3d93b0(_0x216b71,typeof _0x6eb35d!=_0x31a07c(0x276)?_0x6eb35d+'':_0x6eb35d,_0x57015a);function _0x63995d({ref:_0x5a59aa,..._0xd678de}){const _0x43a19b=_0x31a07c,{icon:_0xe237ef,id:_0xb28f4a,className:_0x505128,extend:_0x402d11,..._0x1b6fbe}=_0xd678de,_0x4ac154=(_0x43a19b(0x275)+_0xb28f4a+'\x20'+(_0x505128||''))[_0x43a19b(0x22e)](),_0x5466dd=_0x1b3469[_0x43a19b(0x216)]('_'+_0x147831());return _0x41ee75(_0xe237ef,''+_0xb28f4a,{'defIds':_0xe237ef[_0x43a19b(0x254)],'idSuffix':_0x5466dd['current']},{'ref':_0x5a59aa,'className':_0x4ac154,..._0x1b6fbe},_0x402d11);}function _0x41ee75(_0x12767d,_0x1e40e5,_0x307267,_0x5a3788,_0x27a926){const _0x17b04a=_0x31a07c;return _0x1b3469[_0x17b04a(0x27d)](_0x12767d['tag'],{'key':_0x1e40e5,..._0xda2bc8(_0x12767d,_0x307267,_0x27a926),..._0x5a3788},(_0x50ffdc(_0x12767d,_0x307267)['children']||[])['map']((_0x304b13,_0x1fe029)=>_0x41ee75(_0x304b13,_0x1e40e5+'-'+_0x12767d[_0x17b04a(0x270)]+'-'+_0x1fe029,_0x307267,void 0x0,_0x27a926)));}function _0xda2bc8(_0x3e14ea,_0x51ebed,_0x2e8c45){const _0xe5cc0c=_0x31a07c,_0x2fe97a={..._0x3e14ea[_0xe5cc0c(0x21e)]};_0x2e8c45!=null&&_0x2e8c45[_0xe5cc0c(0x207)]&&_0x2fe97a[_0xe5cc0c(0x27f)]===_0xe5cc0c(0x207)&&(_0x2fe97a[_0xe5cc0c(0x27f)]=_0x2e8c45[_0xe5cc0c(0x207)]),_0x3e14ea['tag']===_0xe5cc0c(0x220)&&_0x2fe97a['id']&&(_0x2fe97a['id']=_0x2fe97a['id']+_0x51ebed[_0xe5cc0c(0x1f1)]),Object['entries'](_0x2fe97a)[_0xe5cc0c(0x23c)](([_0x23fa01,_0x3c6181])=>{const _0x1c10c4=_0xe5cc0c;_0x23fa01===_0x1c10c4(0x220)&&typeof _0x3c6181==_0x1c10c4(0x23a)&&(_0x2fe97a[_0x23fa01]=_0x3c6181[_0x1c10c4(0x1c9)](/url\(#(.*)\)/,'url(#$1'+_0x51ebed[_0x1c10c4(0x1f1)]+')'));});const {defIds:_0x5195db}=_0x51ebed;return!_0x5195db||_0x5195db[_0xe5cc0c(0x242)]===0x0||(_0x3e14ea[_0xe5cc0c(0x270)]===_0xe5cc0c(0x264)&&_0x2fe97a['xlink:href']&&(_0x2fe97a[_0xe5cc0c(0x1c0)]=_0x2fe97a[_0xe5cc0c(0x1c0)]+_0x51ebed[_0xe5cc0c(0x1f1)]),Object[_0xe5cc0c(0x230)](_0x2fe97a)[_0xe5cc0c(0x23c)](([_0xf8b671,_0x1b4b61])=>{const _0x447dc3=_0xe5cc0c;typeof _0x1b4b61==_0x447dc3(0x23a)&&(_0x2fe97a[_0xf8b671]=_0x1b4b61[_0x447dc3(0x1c9)](/url\(#(.*)\)/,'url(#$1'+_0x51ebed[_0x447dc3(0x1f1)]+')'));})),_0x2fe97a;}function _0x50ffdc(_0x468a73,_0x2ae4b7){const _0xcd819c=_0x31a07c;var _0x128da0;const {defIds:_0x144871}=_0x2ae4b7;return!_0x144871||_0x144871[_0xcd819c(0x242)]===0x0?_0x468a73:_0x468a73[_0xcd819c(0x270)]===_0xcd819c(0x1bb)&&((_0x128da0=_0x468a73[_0xcd819c(0x1e9)])!=null&&_0x128da0[_0xcd819c(0x242)])?{..._0x468a73,'children':_0x468a73[_0xcd819c(0x1e9)]['map'](_0x14470c=>typeof _0x14470c['attrs']['id']==_0xcd819c(0x23a)&&_0x144871&&_0x144871[_0xcd819c(0x26a)](_0x14470c[_0xcd819c(0x21e)]['id'])?{..._0x14470c,'attrs':{..._0x14470c['attrs'],'id':_0x14470c[_0xcd819c(0x21e)]['id']+_0x2ae4b7['idSuffix']}}:_0x14470c)}:_0x468a73;}function _0x147831(){const _0x17c662=_0x31a07c;return Math['random']()[_0x17c662(0x274)](0x24)[_0x17c662(0x209)](0x2,0x8);}_0x63995d[_0x31a07c(0x1d7)]=_0x31a07c(0x259);const _0x2b8dca={'tag':_0x31a07c(0x1b7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x31a07c(0x257),'viewBox':_0x31a07c(0x231),'width':_0x31a07c(0x244),'height':'1em'},'children':[{'tag':_0x31a07c(0x24b),'attrs':{'fill':_0x31a07c(0x19e),'d':_0x31a07c(0x238)}},{'tag':_0x31a07c(0x24b),'attrs':{'fill':_0x31a07c(0x19e),'d':_0x31a07c(0x22d),'fillRule':_0x31a07c(0x1d5),'clipRule':_0x31a07c(0x1d5)}}]},_0x1c04bc=_0x1b3469[_0x31a07c(0x1ee)](function(_0x2fa48c,_0x43e478){const _0x15676b=_0x31a07c;return _0x1b3469['createElement'](_0x63995d,Object[_0x15676b(0x1c8)]({},_0x2fa48c,{'id':_0x15676b(0x246),'ref':_0x43e478,'icon':_0x2b8dca}));});_0x1c04bc[_0x31a07c(0x1d7)]='LiveShareIcon';class _0x4c4275 extends _0x578637[_0x31a07c(0x215)]{constructor(){const _0x58d420=_0x31a07c;super(...arguments),_0xe30dc1(this,'_sharedOperations',new Set()),_0xe30dc1(this,_0x58d420(0x19f),new Set());}[_0x31a07c(0x1e4)](_0x5234ba){const _0x14c4d0=_0x31a07c;return this[_0x14c4d0(0x224)][_0x14c4d0(0x234)](_0x5234ba),_0x578637[_0x14c4d0(0x20e)](()=>this[_0x14c4d0(0x224)][_0x14c4d0(0x237)](_0x5234ba));}[_0x31a07c(0x1bd)](_0x28024f){const _0xc8213d=_0x31a07c;return this[_0xc8213d(0x19f)][_0xc8213d(0x234)](_0x28024f),_0x578637[_0xc8213d(0x20e)](()=>this[_0xc8213d(0x19f)][_0xc8213d(0x237)](_0x28024f));}['shouldShareOperation'](_0x1697ef){const _0x2e535b=_0x31a07c;return this[_0x2e535b(0x224)]['has'](_0x1697ef);}['getInitialStates'](_0x1491f5){const _0x2a03a6=_0x31a07c;return Array['from'](this['_reporters'])[_0x2a03a6(0x212)](_0x4f6601=>_0x4f6601(_0x1491f5));}}var _0x13e93e=Object[_0x31a07c(0x1f5)],_0x2a654c=(_0x170577,_0x550328,_0x50a447,_0x1bd166)=>{const _0x356040=_0x31a07c;for(var _0x4bd265=_0x1bd166>0x1?void 0x0:_0x1bd166?_0x13e93e(_0x550328,_0x50a447):_0x550328,_0x21128a=_0x170577[_0x356040(0x242)]-0x1,_0x5644a7;_0x21128a>=0x0;_0x21128a--)(_0x5644a7=_0x170577[_0x21128a])&&(_0x4bd265=_0x5644a7(_0x4bd265)||_0x4bd265);return _0x4bd265;},_0x32ef52=(_0x458f3d,_0x268f93)=>(_0x30ba42,_0x519089)=>_0x268f93(_0x30ba42,_0x519089,_0x458f3d);_0x531713['LiveShareController']=class extends _0x578637[_0x31a07c(0x1bf)]{constructor(_0x1ffd76,_0xad80f2,_0x3f3ae7){const _0x2ac298=_0x31a07c;super(),_0xe30dc1(this,_0x2ac298(0x22f),new Map()),(this[_0x2ac298(0x1b9)]=_0x1ffd76,this[_0x2ac298(0x204)]=_0xad80f2,this[_0x2ac298(0x1a6)]=_0x3f3ae7,this[_0x2ac298(0x24a)]());}async['getLiveShareCoordinator'](_0x38f9a0){const _0x53f0dc=_0x31a07c;return this[_0x53f0dc(0x22f)][_0x53f0dc(0x1cb)](_0x38f9a0)||await this[_0x53f0dc(0x221)](_0x38f9a0),this[_0x53f0dc(0x22f)]['get'](_0x38f9a0);}[_0x31a07c(0x1ea)](_0x3a9df4){const _0x4b4304=_0x31a07c;var _0x53cca1;return(_0x53cca1=this[_0x4b4304(0x22f)]['get'](_0x3a9df4))!=null?_0x53cca1:null;}[_0x31a07c(0x24a)](){const _0x448d97=_0x31a07c;this[_0x448d97(0x1b9)][_0x448d97(0x255)](_0x578637[_0x448d97(0x20c)]['UNIVER_SHEET'])[_0x448d97(0x1fa)](_0x2cdb56[_0x448d97(0x1de)](this[_0x448d97(0x1e3)]))[_0x448d97(0x271)](async _0x54721e=>{const _0x2265bf=_0x448d97,_0x1dbcbb=_0x54721e[_0x2265bf(0x1b6)]();this[_0x2265bf(0x22f)][_0x2265bf(0x1cb)](_0x1dbcbb)||this[_0x2265bf(0x221)](_0x1dbcbb);}),this[_0x448d97(0x1b9)][_0x448d97(0x1e8)](_0x578637[_0x448d97(0x20c)][_0x448d97(0x21a)])[_0x448d97(0x1fa)](_0x2cdb56[_0x448d97(0x1de)](this[_0x448d97(0x1e3)]))[_0x448d97(0x271)](_0x2a7e90=>{const _0x36b115=_0x448d97,_0x4d0f1e=_0x2a7e90['getUnitId'](),_0x15d506=this[_0x36b115(0x22f)]['get'](_0x4d0f1e);_0x15d506==null||_0x15d506[_0x36b115(0x24d)]();});}async[_0x31a07c(0x221)](_0x420058){const _0x37bd0d=_0x31a07c,_0x4be8b6=await this['_collabSessionService'][_0x37bd0d(0x1ba)](_0x420058),_0x24bd08=this['_injector'][_0x37bd0d(0x19d)](_0x531713['LiveShareCoordinator'],_0x420058,_0x4be8b6);return _0x24bd08[_0x37bd0d(0x219)](),this['_entities'][_0x37bd0d(0x21b)](_0x420058,_0x24bd08),_0x24bd08;}},_0x531713[_0x31a07c(0x245)]=_0x2a654c([_0x32ef52(0x0,_0x578637[_0x31a07c(0x1ad)]),_0x32ef52(0x1,_0x578637[_0x31a07c(0x1ce)](_0x578637[_0x31a07c(0x261)])),_0x32ef52(0x2,_0x578637[_0x31a07c(0x1ce)](_0x42171a['CollaborationSessionService']))],_0x531713[_0x31a07c(0x245)]);var _0x1e02cf=(_0x35005c=>(_0x35005c[_0x31a07c(0x1be)]=_0x31a07c(0x249),_0x35005c[_0x31a07c(0x241)]='idle',_0x35005c['FOLLOWING']=_0x31a07c(0x23e),_0x35005c[_0x31a07c(0x247)]=_0x31a07c(0x1f4),_0x35005c[_0x31a07c(0x260)]=_0x31a07c(0x268),_0x35005c))(_0x1e02cf||{});const _0x596c2f=_0x31a07c(0x267),_0x5da53b=0xc8;_0x531713['LiveShareCoordinator']=class extends _0x578637[_0x31a07c(0x1bf)]{constructor(_0x21f770,_0x26d646,_0x2ad1ab,_0x17dd20,_0x24f631){const _0x579c06=_0x31a07c;super(),_0xe30dc1(this,_0x579c06(0x272),new _0x48b2dd[(_0x579c06(0x253))](_0x579c06(0x26f))),_0xe30dc1(this,_0x579c06(0x1db),this['_status$'][_0x579c06(0x1d4)]()),_0xe30dc1(this,'_init',!0x1),_0xe30dc1(this,_0x579c06(0x1d1),null),_0xe30dc1(this,_0x579c06(0x25c),null),(this[_0x579c06(0x1c5)]=_0x21f770,this[_0x579c06(0x23f)]=_0x26d646,this[_0x579c06(0x1e0)]=_0x2ad1ab,this['_liveShareService']=_0x17dd20,this[_0x579c06(0x200)]=_0x24f631);}get[_0x31a07c(0x1f9)](){const _0x5578a8=_0x31a07c;return this[_0x5578a8(0x272)][_0x5578a8(0x1cf)]();}[_0x31a07c(0x24d)](){const _0x2cf0b2=_0x31a07c;var _0x430de5;(_0x430de5=this[_0x2cf0b2(0x1d1)])==null||_0x430de5[_0x2cf0b2(0x24d)](),this[_0x2cf0b2(0x272)][_0x2cf0b2(0x25b)](_0x2cf0b2(0x26f)),this[_0x2cf0b2(0x272)]['complete']();}['getStatus'](){const _0xbd33b4=_0x31a07c;return this[_0xbd33b4(0x1f9)];}[_0x31a07c(0x219)](){const _0x3b67f9=_0x31a07c;this[_0x3b67f9(0x24a)]||(this[_0x3b67f9(0x24a)]=!0x0,this['_collabSession']['sessionStatus$'][_0x3b67f9(0x1fa)](_0x2cdb56[_0x3b67f9(0x1de)](this[_0x3b67f9(0x1e3)]))[_0x3b67f9(0x271)](_0x227e40=>{const _0x53c311=_0x3b67f9;switch(_0x227e40){case _0x42171a[_0x53c311(0x1b5)][_0x53c311(0x1be)]:this['_handleOffline']();break;case _0x42171a[_0x53c311(0x1b5)][_0x53c311(0x1ac)]:this[_0x53c311(0x1da)]();break;}}),this[_0x3b67f9(0x23f)][_0x3b67f9(0x266)][_0x3b67f9(0x1fa)](_0x2cdb56[_0x3b67f9(0x1de)](this[_0x3b67f9(0x1e3)]))[_0x3b67f9(0x271)](_0xc7f616=>{const _0x536da6=_0x3b67f9,{eventID:_0x500312}=_0xc7f616;switch(_0x500312){case _0x17874a['CollaborationEvent'][_0x536da6(0x1f8)]:this['_handleNewHost'](_0xc7f616);break;case _0x17874a[_0x536da6(0x239)][_0x536da6(0x202)]:this['_handleOperation'](_0xc7f616);break;case _0x17874a[_0x536da6(0x239)]['LIVESHARE_TERMINATE']:this[_0x536da6(0x269)]();break;case _0x17874a[_0x536da6(0x239)][_0x536da6(0x20f)]:this[_0x536da6(0x1f6)](_0xc7f616);break;}}));}[_0x31a07c(0x20d)](){const _0x24044d=_0x31a07c;this[_0x24044d(0x23f)][_0x24044d(0x1c4)]({'eventID':_0x17874a[_0x24044d(0x239)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x24044d(0x1c5)],'userID':this['_collabSession']['getMemberID']()}},this[_0x24044d(0x1c5)]);}['stopPresenting'](){const _0x146290=_0x31a07c;this[_0x146290(0x1f9)]===_0x146290(0x268)&&(this['_status$']['next']('idle'),this[_0x146290(0x23f)][_0x146290(0x1c4)]({'eventID':_0x17874a[_0x146290(0x239)][_0x146290(0x26d)],'data':{'unitID':this['_unitID']}},this[_0x146290(0x1c5)]));}['startFollowing'](){const _0x24afa2=_0x31a07c;this[_0x24afa2(0x1f9)]==='not-following'&&(this[_0x24afa2(0x272)][_0x24afa2(0x25b)]('following'),this['_startFollowing']());}[_0x31a07c(0x263)](){const _0x388622=_0x31a07c;this[_0x388622(0x1f9)]==='following'&&this[_0x388622(0x228)]();}['_handleNewHost'](_0x2944f1){const _0x52188f=_0x31a07c,{presenter:_0x29f878}=_0x2944f1['data'],_0x1122b1=this[_0x52188f(0x23f)]['getMemberID']();this[_0x52188f(0x25c)]=_0x29f878,_0x29f878===_0x1122b1?(this[_0x52188f(0x228)](),this[_0x52188f(0x1a1)]()):this['_status']!=='not-following'&&(this[_0x52188f(0x280)](),this['_startFollowing']());}['_fetchOperations'](){const _0x4faae9=_0x31a07c,_0x454581={'eventID':_0x17874a['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x4faae9(0x23f)][_0x4faae9(0x1c4)](_0x454581,this[_0x4faae9(0x1c5)]);}['_handleTerminate'](){const _0x412dfa=_0x31a07c;this[_0x412dfa(0x25c)]=null,this[_0x412dfa(0x1f9)]!=='presenting'&&this[_0x412dfa(0x243)]();}[_0x31a07c(0x1f6)](_0x3a293f){const _0x3aa969=_0x31a07c;if(this[_0x3aa969(0x1f9)]===_0x3aa969(0x23e)&&this[_0x3aa969(0x25c)]===_0x3a293f[_0x3aa969(0x24f)][_0x3aa969(0x1ef)]){const _0x5f04d5=_0x17874a[_0x3aa969(0x1e1)](_0x3a293f[_0x3aa969(0x24f)])[_0x3aa969(0x1ca)][_0x3aa969(0x25f)]()[_0x3aa969(0x1dd)](_0x183a84=>_0x183a84['id']===_0x2275db[_0x3aa969(0x1f2)]['id']);if(_0x5f04d5){const _0x27817d=_0x5f04d5[_0x3aa969(0x1cc)][_0x3aa969(0x25a)],_0x10939f=_0x5f04d5[_0x3aa969(0x1cc)]['sheet']['id'];setTimeout(()=>{const _0x567f7c=_0x3aa969;this[_0x567f7c(0x200)]['executeCommand'](_0x2275db[_0x567f7c(0x27a)]['id'],{'unitId':_0x27817d,'subUnitId':_0x10939f},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x3130c2=_0x31a07c;this[_0x3130c2(0x272)]['next']('presenting');const _0x385e79=new Map(),_0x2adfcf=this[_0x3130c2(0x1d1)]=new _0x578637[(_0x3130c2(0x248))]();_0x2adfcf[_0x3130c2(0x234)](_0x578637[_0x3130c2(0x20e)](()=>{const _0x5f25d7=_0x3130c2;_0x385e79[_0x5f25d7(0x23c)](_0x5c3845=>_0x5c3845[_0x5f25d7(0x262)]()),_0x385e79['clear']();})),_0x2adfcf['add'](this[_0x3130c2(0x200)][_0x3130c2(0x1a3)](_0x1cbf4b=>{const _0x402daa=_0x3130c2;var _0x1fecac;if(_0x1cbf4b['type']!==_0x578637[_0x402daa(0x206)][_0x402daa(0x251)]||!this['_liveShareService']['shouldShareOperation'](_0x1cbf4b['id']))return;const {id:_0x371921}=_0x1cbf4b;let _0x5475d9;_0x385e79[_0x402daa(0x1cb)](_0x371921)?_0x5475d9=_0x385e79['get'](_0x371921):(_0x5475d9=new _0x48b2dd[(_0x402daa(0x1f3))](),_0x385e79[_0x402daa(0x21b)](_0x371921,_0x5475d9),_0x5475d9[_0x402daa(0x1fa)](_0x2cdb56[_0x402daa(0x277)]((_0x1fecac=this[_0x402daa(0x1e0)][_0x402daa(0x273)](_0x596c2f))!=null?_0x1fecac:_0x5da53b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x402daa(0x271)](_0x5c00b2=>{const _0x15e3a2=_0x402daa;this[_0x15e3a2(0x23f)][_0x15e3a2(0x1c4)]({'eventID':_0x17874a['CollaborationEvent'][_0x15e3a2(0x202)],'data':{'unitID':this[_0x15e3a2(0x1c5)],'operations':{[_0x5c00b2['id']]:{'id':_0x5c00b2['id'],'params':JSON[_0x15e3a2(0x1dc)](_0x5c00b2[_0x15e3a2(0x1cc)])}}}},this[_0x15e3a2(0x1c5)]);})),_0x5475d9[_0x402daa(0x25b)](_0x1cbf4b);})),this[_0x3130c2(0x258)]['getInitialStates'](this['_unitID'])[_0x3130c2(0x23c)](_0xdaf073=>this[_0x3130c2(0x23f)]['send']({'eventID':_0x17874a[_0x3130c2(0x239)][_0x3130c2(0x202)],'data':{'unitID':this[_0x3130c2(0x1c5)],'operations':{[_0xdaf073['id']]:{'id':_0xdaf073['id'],'params':JSON[_0x3130c2(0x1dc)](_0xdaf073['params'])}}}},this[_0x3130c2(0x1c5)]));}['_stopPresenting'](){const _0x33783a=_0x31a07c;var _0x43105e;this[_0x33783a(0x272)]['next'](_0x33783a(0x26f)),(_0x43105e=this[_0x33783a(0x1d1)])==null||_0x43105e[_0x33783a(0x24d)](),this[_0x33783a(0x1d1)]=null;}[_0x31a07c(0x1ae)](){const _0x5ee576=_0x31a07c;var _0x5a28ff;(_0x5a28ff=this[_0x5ee576(0x1d1)])==null||_0x5a28ff['dispose'](),this['_status$'][_0x5ee576(0x25b)]('following');}[_0x31a07c(0x243)](){const _0x535cb1=_0x31a07c;var _0x3d47ae;this['_status$'][_0x535cb1(0x25b)](_0x535cb1(0x26f)),(_0x3d47ae=this[_0x535cb1(0x1d1)])==null||_0x3d47ae[_0x535cb1(0x24d)](),this[_0x535cb1(0x1d1)]=null;}[_0x31a07c(0x228)](){const _0x57ab65=_0x31a07c;var _0x48cbad;this[_0x57ab65(0x272)][_0x57ab65(0x25b)](_0x57ab65(0x1f4)),(_0x48cbad=this[_0x57ab65(0x1d1)])==null||_0x48cbad['dispose']();}['_handleOperation'](_0x53f76b){const _0x47509d=_0x31a07c;if([_0x47509d(0x268),'not-following',_0x47509d(0x249)]['includes'](this['_status'])||!_0x53f76b[_0x47509d(0x24f)][_0x47509d(0x1f7)]||_0x53f76b['data'][_0x47509d(0x1f7)]===this['_collabSession']['getMemberID']())return;this[_0x47509d(0x1f9)]===_0x47509d(0x26f)&&this[_0x47509d(0x1ae)]();const _0x335332=_0x53f76b[_0x47509d(0x24f)][_0x47509d(0x25e)];Object['values'](_0x335332)[_0x47509d(0x23c)](_0xfc564e=>{const _0x47afdc=_0x47509d;this[_0x47afdc(0x200)][_0x47afdc(0x1a5)](_0xfc564e['id'],_0xfc564e['params']?JSON[_0x47afdc(0x1b1)](_0xfc564e['params']):null,{'fromCollab':!0x0});});}[_0x31a07c(0x240)](){const _0x424e46=_0x31a07c;var _0x2ac0c4;this[_0x424e46(0x272)][_0x424e46(0x25b)](_0x424e46(0x249)),(_0x2ac0c4=this['_commandDisposable'])==null||_0x2ac0c4[_0x424e46(0x24d)]();}[_0x31a07c(0x1da)](){const _0x4bc064=_0x31a07c;this[_0x4bc064(0x272)][_0x4bc064(0x25b)](_0x4bc064(0x26f)),this['_fetchOperations']();}},_0x531713[_0x31a07c(0x1ab)]=_0x2a654c([_0x32ef52(0x2,_0x578637['IConfigService']),_0x32ef52(0x3,_0x578637[_0x31a07c(0x1ce)](_0x4c4275)),_0x32ef52(0x4,_0x578637[_0x31a07c(0x227)])],_0x531713[_0x31a07c(0x1ab)]);function _0x23ae1e(){const _0x2def26=_0x31a07c,_0x343790=_0x51c68d[_0x2def26(0x1a9)](_0x531713[_0x2def26(0x245)]),_0x465cef=_0x51c68d['useDependency'](_0x578637['IUniverInstanceService']),_0x1cecfb=_0x51c68d[_0x2def26(0x1e7)](()=>_0x465cef[_0x2def26(0x1b8)](_0x578637[_0x2def26(0x20c)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1b5911,_0x47e5eb]=_0x1b3469[_0x2def26(0x1c3)](null),[_0x5378bc,_0x494c7c]=_0x1b3469[_0x2def26(0x1c3)](_0x1e02cf[_0x2def26(0x241)]),_0x7bcc9c=_0x1b3469[_0x2def26(0x216)](null);return _0x1b3469[_0x2def26(0x1c6)](()=>(_0x1cecfb&&_0x343790[_0x2def26(0x1df)](_0x1cecfb['getUnitId']())[_0x2def26(0x26b)](_0x23dea6=>{const _0x2c42d3=_0x2def26;_0x47e5eb(_0x23dea6),_0x7bcc9c['current']=_0x23dea6[_0x2c42d3(0x1db)]['subscribe'](_0x3ef664=>{_0x494c7c(_0x3ef664);});}),()=>{const _0x42f3b9=_0x2def26;var _0x354a45;(_0x354a45=_0x7bcc9c[_0x42f3b9(0x1d9)])==null||_0x354a45[_0x42f3b9(0x233)](),_0x7bcc9c[_0x42f3b9(0x1d9)]=null;}),[_0x1cecfb,_0x343790]),_0x1b5911?_0x4e8258[_0x2def26(0x26e)](_0x80076a[_0x2def26(0x1d6)],{'align':_0x2def26(0x218),'disabled':_0x5378bc===_0x1e02cf['OFFLINE'],'className':_0x2def26(0x1a4),'overlay':_0x4e8258['jsx'](_0x525160,{'status':_0x5378bc,'coordinator':_0x1b5911}),'children':_0x4e8258['jsx'](_0x2def26(0x21c),{'className':_0x80076a[_0x2def26(0x1fb)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5378bc===_0x1e02cf['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5378bc!==_0x1e02cf['OFFLINE']}),'type':_0x2def26(0x21c),'children':_0x4e8258[_0x2def26(0x26e)](_0x1c04bc,{'className':_0x2def26(0x214)})})}):null;}function _0x525160(_0x1232c2){const _0x4249f8=_0x31a07c,{status:_0x2a938c,coordinator:_0x35803c}=_0x1232c2;switch(_0x2a938c){case _0x1e02cf[_0x4249f8(0x241)]:return _0x4e8258['jsx'](_0x18bc71,{'coordinator':_0x35803c});case _0x1e02cf[_0x4249f8(0x1aa)]:return _0x4e8258[_0x4249f8(0x26e)](_0x3bff13,{'coordinator':_0x35803c});case _0x1e02cf[_0x4249f8(0x247)]:return _0x4e8258[_0x4249f8(0x26e)](_0x556ba1,{'coordinator':_0x35803c});case _0x1e02cf['OFFLINE']:return _0x4e8258[_0x4249f8(0x26e)](_0x4f7a0e,{});case _0x1e02cf[_0x4249f8(0x260)]:return _0x4e8258[_0x4249f8(0x26e)](_0xd0567b,{'coordinator':_0x35803c});default:return null;}}function _0x18bc71(_0x39c7d8){const _0x45ffba=_0x31a07c,{coordinator:_0x5d561e}=_0x39c7d8;return _0x4e8258[_0x45ffba(0x22b)](_0x4e8258['Fragment'],{'children':[_0x4e8258[_0x45ffba(0x26e)](_0x45ffba(0x281),{'className':_0x45ffba(0x232),'children':_0x45ffba(0x205)}),_0x4e8258[_0x45ffba(0x26e)](_0x80076a['Button'],{'onClick':()=>_0x5d561e[_0x45ffba(0x20d)](),'children':'Start'})]});}function _0x3bff13(_0x455600){const _0x1b4f0e=_0x31a07c,{coordinator:_0x104661}=_0x455600;return _0x4e8258[_0x1b4f0e(0x22b)](_0x4e8258[_0x1b4f0e(0x213)],{'children':[_0x4e8258[_0x1b4f0e(0x26e)](_0x1b4f0e(0x281),{'className':_0x1b4f0e(0x232),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4e8258['jsx'](_0x80076a['Button'],{'onClick':()=>_0x104661['stopFollowing'](),'children':_0x1b4f0e(0x1a2)})]});}function _0x556ba1(_0x42bb87){const _0x2eb437=_0x31a07c,{coordinator:_0x392a2f}=_0x42bb87;return _0x4e8258['jsxs'](_0x4e8258[_0x2eb437(0x213)],{'children':[_0x4e8258[_0x2eb437(0x26e)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2eb437(0x1fd)}),_0x4e8258[_0x2eb437(0x26e)](_0x80076a[_0x2eb437(0x225)],{'variant':_0x2eb437(0x1fc),'onClick':()=>_0x392a2f[_0x2eb437(0x235)](),'children':_0x2eb437(0x1b2)})]});}function _0xd0567b(_0x55c784){const _0x21ff6c=_0x31a07c,{coordinator:_0x17f0a9}=_0x55c784;return _0x4e8258[_0x21ff6c(0x22b)](_0x4e8258[_0x21ff6c(0x213)],{'children':[_0x4e8258[_0x21ff6c(0x26e)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x4e8258['jsx'](_0x80076a[_0x21ff6c(0x225)],{'variant':_0x21ff6c(0x252),'onClick':()=>_0x17f0a9[_0x21ff6c(0x1d2)](),'children':_0x21ff6c(0x1d8)})]});}function _0x4f7a0e(){return _0x4e8258['jsx'](_0x4e8258['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x35702c=Object[_0x31a07c(0x1f5)],_0x3868da=(_0x26bb61,_0xa8f487,_0x262cec,_0x3ad869)=>{for(var _0x166799=_0x3ad869>0x1?void 0x0:_0x3ad869?_0x35702c(_0xa8f487,_0x262cec):_0xa8f487,_0x123391=_0x26bb61['length']-0x1,_0x5bb076;_0x123391>=0x0;_0x123391--)(_0x5bb076=_0x26bb61[_0x123391])&&(_0x166799=_0x5bb076(_0x166799)||_0x166799);return _0x166799;},_0xe0125b=(_0xc64cf3,_0x3b2e88)=>(_0x4d0d8c,_0x23cc7f)=>_0x3b2e88(_0x4d0d8c,_0x23cc7f,_0xc64cf3);_0x531713[_0x31a07c(0x1ed)]=class extends _0x578637[_0x31a07c(0x215)]{constructor(_0x1407c2,_0x378076){const _0x5c1af9=_0x31a07c;super(),this[_0x5c1af9(0x204)]=_0x1407c2,this[_0x5c1af9(0x210)]=_0x378076,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x28349f=_0x31a07c;this[_0x28349f(0x1a8)](this[_0x28349f(0x210)]['registerComponent'](_0x51c68d[_0x28349f(0x26c)][_0x28349f(0x211)],()=>_0x51c68d[_0x28349f(0x1c1)](_0x23ae1e,this[_0x28349f(0x204)])));}},_0x531713['DesktopLiveShareController']=_0x3868da([_0xe0125b(0x0,_0x578637[_0x31a07c(0x1ce)](_0x578637[_0x31a07c(0x261)])),_0xe0125b(0x1,_0x51c68d[_0x31a07c(0x222)])],_0x531713['DesktopLiveShareController']);const _0x32124f=_0x31a07c(0x203),_0x449df5={};var _0x15f6d1=Object[_0x31a07c(0x1f5)],_0x1858bd=(_0x21aece,_0x4146e0,_0x1b0134,_0x4dcf0c)=>{const _0x196756=_0x31a07c;for(var _0x5e0202=_0x4dcf0c>0x1?void 0x0:_0x4dcf0c?_0x15f6d1(_0x4146e0,_0x1b0134):_0x4146e0,_0x3f4dce=_0x21aece[_0x196756(0x242)]-0x1,_0x541ab7;_0x3f4dce>=0x0;_0x3f4dce--)(_0x541ab7=_0x21aece[_0x3f4dce])&&(_0x5e0202=_0x541ab7(_0x5e0202)||_0x5e0202);return _0x5e0202;},_0x57e262=(_0x239586,_0x533975)=>(_0x49124c,_0x3152f3)=>_0x533975(_0x49124c,_0x3152f3,_0x239586);let _0x15480d=class extends _0x578637[_0x31a07c(0x215)]{constructor(_0x7d97df){const _0x168e72=_0x31a07c;super(),this[_0x168e72(0x258)]=_0x7d97df,this[_0x168e72(0x24a)]();}[_0x31a07c(0x24a)](){const _0x137731=_0x31a07c;[_0x138877[_0x137731(0x1af)]['id'],_0x138877[_0x137731(0x1c7)]['id'],_0x2275db['SetWorksheetActiveOperation']['id']][_0x137731(0x23c)](_0xe0f71c=>{const _0x2c9ce8=_0x137731;this[_0x2c9ce8(0x1a8)](this['_liveShareService']['registerSharedOperation'](_0xe0f71c));});}};_0x15480d=_0x1858bd([_0x57e262(0x0,_0x578637[_0x31a07c(0x1ce)](_0x4c4275))],_0x15480d);var _0x2036ad=Object['defineProperty'],_0x400a47=Object[_0x31a07c(0x1f5)],_0x53ddd7=(_0x50d92c,_0x41e594,_0x1382db)=>_0x41e594 in _0x50d92c?_0x2036ad(_0x50d92c,_0x41e594,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1382db}):_0x50d92c[_0x41e594]=_0x1382db,_0x519659=(_0xe7c0cb,_0x125df9,_0x2fc33f,_0x4d6744)=>{for(var _0x30965f=_0x4d6744>0x1?void 0x0:_0x4d6744?_0x400a47(_0x125df9,_0x2fc33f):_0x125df9,_0x11f8e6=_0xe7c0cb['length']-0x1,_0x2715ab;_0x11f8e6>=0x0;_0x11f8e6--)(_0x2715ab=_0xe7c0cb[_0x11f8e6])&&(_0x30965f=_0x2715ab(_0x30965f)||_0x30965f);return _0x30965f;},_0x25fad5=(_0x3346b6,_0x119e67)=>(_0x38bd4d,_0x3ebf27)=>_0x119e67(_0x38bd4d,_0x3ebf27,_0x3346b6),_0x307965=(_0x4f8639,_0x199fa3,_0x194f83)=>_0x53ddd7(_0x4f8639,typeof _0x199fa3!=_0x31a07c(0x276)?_0x199fa3+'':_0x199fa3,_0x194f83);const _0x39951e=_0x31a07c(0x256);_0x531713['UniverLiveSharePlugin']=class extends _0x578637[_0x31a07c(0x21d)]{constructor(_0x3d597f=_0x449df5,_0x36d1a2,_0x13f3df){const _0x4544a7=_0x31a07c;super(),this[_0x4544a7(0x24c)]=_0x3d597f,this[_0x4544a7(0x204)]=_0x36d1a2,this['_configService']=_0x13f3df;const {..._0x2d9800}=_0x578637[_0x4544a7(0x1ff)]({},_0x449df5,this[_0x4544a7(0x24c)]);this[_0x4544a7(0x1e0)]['setConfig'](_0x32124f,_0x2d9800);}[_0x31a07c(0x1d3)](){const _0x7eaa68=_0x31a07c;_0x578637[_0x7eaa68(0x1fe)](this[_0x7eaa68(0x204)],_0x578637[_0x7eaa68(0x1f0)]([[_0x4c4275],[_0x531713[_0x7eaa68(0x245)]],[_0x15480d],[_0x531713[_0x7eaa68(0x1ed)]]],this['_config'][_0x7eaa68(0x229)])),_0x578637[_0x7eaa68(0x1b4)](this['_injector'],[[_0x15480d]]);}['onRendered'](){const _0x2c21bc=_0x31a07c;_0x578637[_0x2c21bc(0x1b4)](this['_injector'],[[_0x531713[_0x2c21bc(0x1ed)]]]);}},_0x307965(_0x531713[_0x31a07c(0x1c2)],_0x31a07c(0x24e),_0x578637[_0x31a07c(0x20c)]['UNIVER_UNKNOWN']),_0x307965(_0x531713[_0x31a07c(0x1c2)],_0x31a07c(0x279),_0x39951e),_0x531713[_0x31a07c(0x1c2)]=_0x519659([_0x578637['DependentOn'](_0x42171a[_0x31a07c(0x21f)]),_0x25fad5(0x1,_0x578637[_0x31a07c(0x1ce)](_0x578637[_0x31a07c(0x261)])),_0x25fad5(0x2,_0x578637[_0x31a07c(0x1b3)])],_0x531713[_0x31a07c(0x1c2)]),_0x531713['LiveShare']=_0x23ae1e,_0x531713[_0x31a07c(0x1a0)]=_0x4c4275,_0x531713[_0x31a07c(0x1b0)]=_0x1e02cf,Object['defineProperty'](_0x531713,Symbol['toStringTag'],{'value':'Module'});}));
|
|
1
|
+
function _0x14e5(_0x1be68d,_0x3a12b0){_0x1be68d=_0x1be68d-0x83;const _0x2c2f2b=_0x2c2f();let _0x14e57a=_0x2c2f2b[_0x1be68d];return _0x14e57a;}(function(_0x486d35,_0x12ef3a){const _0x2bf71b=_0x14e5,_0x149e6c=_0x486d35();while(!![]){try{const _0x5591f0=-parseInt(_0x2bf71b(0x92))/0x1*(-parseInt(_0x2bf71b(0xb9))/0x2)+parseInt(_0x2bf71b(0x160))/0x3+-parseInt(_0x2bf71b(0x140))/0x4+-parseInt(_0x2bf71b(0x15e))/0x5*(-parseInt(_0x2bf71b(0x136))/0x6)+-parseInt(_0x2bf71b(0x159))/0x7*(parseInt(_0x2bf71b(0x9d))/0x8)+-parseInt(_0x2bf71b(0x132))/0x9+parseInt(_0x2bf71b(0xc4))/0xa;if(_0x5591f0===_0x12ef3a)break;else _0x149e6c['push'](_0x149e6c['shift']());}catch(_0x18281d){_0x149e6c['push'](_0x149e6c['shift']());}}}(_0x2c2f,0xd6678),function(_0x5775f4,_0x1ff39f){const _0xd4a7eb=_0x14e5;typeof exports==_0xd4a7eb(0x127)&&typeof module<'u'?_0x1ff39f(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==_0xd4a7eb(0xd6)&&define[_0xd4a7eb(0x163)]?define([_0xd4a7eb(0xde),_0xd4a7eb(0xca),_0xd4a7eb(0x9a),'react/jsx-runtime',_0xd4a7eb(0xce),'react',_0xd4a7eb(0x83),'@univerjs-pro/collaboration-client',_0xd4a7eb(0x12c),_0xd4a7eb(0x8e),_0xd4a7eb(0x15f),'@univerjs/sheets-ui'],_0x1ff39f):(_0x5775f4=typeof globalThis<'u'?globalThis:_0x5775f4||self,_0x1ff39f(_0x5775f4[_0xd4a7eb(0x152)]={},_0x5775f4[_0xd4a7eb(0xae)],_0x5775f4[_0xd4a7eb(0x158)],_0x5775f4[_0xd4a7eb(0xa7)],_0x5775f4[_0xd4a7eb(0x10d)],_0x5775f4['React'],_0x5775f4[_0xd4a7eb(0xaa)],_0x5775f4[_0xd4a7eb(0xcd)],_0x5775f4['UniverSheets'],_0x5775f4[_0xd4a7eb(0x8e)],_0x5775f4[_0xd4a7eb(0x8e)][_0xd4a7eb(0xb6)],_0x5775f4[_0xd4a7eb(0xf3)]));}(this,function(_0xaa855f,_0x31596f,_0x190706,_0x441506,_0x45a328,_0x5d948a,_0x14f43,_0x478ddb,_0x1f2f51,_0x3114d2,_0x44ee62,_0x3ec2d6){'use strict';const _0x1e6e09=_0x14e5;var _0xf7430d=Object['defineProperty'],_0x4436d2=(_0x9e308c,_0x23a047,_0x41b1f1)=>_0x23a047 in _0x9e308c?_0xf7430d(_0x9e308c,_0x23a047,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41b1f1}):_0x9e308c[_0x23a047]=_0x41b1f1,_0x2ac35f=(_0x44da4d,_0x2eaa58,_0x4af4d3)=>_0x4436d2(_0x44da4d,typeof _0x2eaa58!=_0x1e6e09(0x126)?_0x2eaa58+'':_0x2eaa58,_0x4af4d3);function _0x31e126({ref:_0x50b125,..._0x31eb82}){const _0x2820fe=_0x1e6e09,{icon:_0x15b556,id:_0x12893b,className:_0x24c020,extend:_0xf290bf,..._0x47e4bc}=_0x31eb82,_0x33fb47=(_0x2820fe(0xa9)+_0x12893b+'\x20'+(_0x24c020||''))[_0x2820fe(0xfa)](),_0x5b2d73=_0x5d948a['useRef']('_'+_0x345cb6());return _0x2ff279(_0x15b556,''+_0x12893b,{'defIds':_0x15b556[_0x2820fe(0x15c)],'idSuffix':_0x5b2d73[_0x2820fe(0xfe)]},{'ref':_0x50b125,'className':_0x33fb47,..._0x47e4bc},_0xf290bf);}function _0x2ff279(_0x2e405f,_0x5c6190,_0x2df72f,_0x58935c,_0x547441){const _0xc00296=_0x1e6e09;return _0x5d948a[_0xc00296(0x13a)](_0x2e405f[_0xc00296(0x96)],{'key':_0x5c6190,..._0xd37b74(_0x2e405f,_0x2df72f,_0x547441),..._0x58935c},(_0x319daf(_0x2e405f,_0x2df72f)[_0xc00296(0x84)]||[])[_0xc00296(0xa6)]((_0x3c27b1,_0x3b2093)=>_0x2ff279(_0x3c27b1,_0x5c6190+'-'+_0x2e405f[_0xc00296(0x96)]+'-'+_0x3b2093,_0x2df72f,void 0x0,_0x547441)));}function _0xd37b74(_0x4af4b7,_0x1aac5e,_0x50ab61){const _0x40b5c8=_0x1e6e09,_0x7875b={..._0x4af4b7[_0x40b5c8(0x13f)]};_0x50ab61!=null&&_0x50ab61[_0x40b5c8(0x12f)]&&_0x7875b[_0x40b5c8(0x110)]===_0x40b5c8(0x12f)&&(_0x7875b[_0x40b5c8(0x110)]=_0x50ab61['colorChannel1']),_0x4af4b7['tag']==='mask'&&_0x7875b['id']&&(_0x7875b['id']=_0x7875b['id']+_0x1aac5e[_0x40b5c8(0x97)]),Object[_0x40b5c8(0x138)](_0x7875b)[_0x40b5c8(0x14f)](([_0x3407bd,_0x340b7d])=>{const _0x39a677=_0x40b5c8;_0x3407bd==='mask'&&typeof _0x340b7d==_0x39a677(0xea)&&(_0x7875b[_0x3407bd]=_0x340b7d['replace'](/url\(#(.*)\)/,_0x39a677(0xd1)+_0x1aac5e[_0x39a677(0x97)]+')'));});const {defIds:_0x15706d}=_0x1aac5e;return!_0x15706d||_0x15706d[_0x40b5c8(0xad)]===0x0||(_0x4af4b7[_0x40b5c8(0x96)]===_0x40b5c8(0xac)&&_0x7875b[_0x40b5c8(0xe1)]&&(_0x7875b[_0x40b5c8(0xe1)]=_0x7875b[_0x40b5c8(0xe1)]+_0x1aac5e[_0x40b5c8(0x97)]),Object[_0x40b5c8(0x138)](_0x7875b)['forEach'](([_0x2c3d9b,_0x1d2659])=>{const _0x6fd595=_0x40b5c8;typeof _0x1d2659=='string'&&(_0x7875b[_0x2c3d9b]=_0x1d2659[_0x6fd595(0x125)](/url\(#(.*)\)/,_0x6fd595(0xd1)+_0x1aac5e[_0x6fd595(0x97)]+')'));})),_0x7875b;}function _0x319daf(_0x570f7e,_0x3e93a7){const _0x5c4d68=_0x1e6e09;var _0x434367;const {defIds:_0x22fbfc}=_0x3e93a7;return!_0x22fbfc||_0x22fbfc['length']===0x0?_0x570f7e:_0x570f7e['tag']===_0x5c4d68(0x117)&&((_0x434367=_0x570f7e[_0x5c4d68(0x84)])!=null&&_0x434367[_0x5c4d68(0xad)])?{..._0x570f7e,'children':_0x570f7e[_0x5c4d68(0x84)]['map'](_0x82be87=>typeof _0x82be87[_0x5c4d68(0x13f)]['id']==_0x5c4d68(0xea)&&_0x22fbfc&&_0x22fbfc[_0x5c4d68(0x8d)](_0x82be87[_0x5c4d68(0x13f)]['id'])?{..._0x82be87,'attrs':{..._0x82be87['attrs'],'id':_0x82be87[_0x5c4d68(0x13f)]['id']+_0x3e93a7[_0x5c4d68(0x97)]}}:_0x82be87)}:_0x570f7e;}function _0x345cb6(){const _0x42e272=_0x1e6e09;return Math[_0x42e272(0xa0)]()[_0x42e272(0x10b)](0x24)['substring'](0x2,0x8);}_0x31e126[_0x1e6e09(0x11f)]=_0x1e6e09(0xed);const _0x4e5985={'tag':_0x1e6e09(0x142),'attrs':{'xmlns':_0x1e6e09(0xe8),'fill':_0x1e6e09(0x147),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x1e6e09(0x124),'attrs':{'fill':_0x1e6e09(0xb0),'d':_0x1e6e09(0x109)}},{'tag':_0x1e6e09(0x124),'attrs':{'fill':'currentColor','d':_0x1e6e09(0x11d),'fillRule':_0x1e6e09(0xcb),'clipRule':_0x1e6e09(0xcb)}}]},_0x460c01=_0x5d948a[_0x1e6e09(0xb3)](function(_0x3b90f5,_0x40490f){const _0x98fe4d=_0x1e6e09;return _0x5d948a[_0x98fe4d(0x13a)](_0x31e126,Object['assign']({},_0x3b90f5,{'id':'live-share-icon','ref':_0x40490f,'icon':_0x4e5985}));});_0x460c01[_0x1e6e09(0x11f)]=_0x1e6e09(0x113);class _0x3230ab extends _0x31596f['Disposable']{constructor(){const _0xaf3e78=_0x1e6e09;super(...arguments),_0x2ac35f(this,_0xaf3e78(0xc5),new Set()),_0x2ac35f(this,_0xaf3e78(0x145),new Set());}[_0x1e6e09(0xbd)](_0x52271b){const _0x8f635e=_0x1e6e09;return this['_sharedOperations']['add'](_0x52271b),_0x31596f[_0x8f635e(0x128)](()=>this[_0x8f635e(0xc5)]['delete'](_0x52271b));}[_0x1e6e09(0xdd)](_0x507b8b){const _0x16cd24=_0x1e6e09;return this[_0x16cd24(0x145)][_0x16cd24(0xd0)](_0x507b8b),_0x31596f['toDisposable'](()=>this['_reporters'][_0x16cd24(0x15b)](_0x507b8b));}['shouldShareOperation'](_0x207c13){const _0x4f778a=_0x1e6e09;return this[_0x4f778a(0xc5)][_0x4f778a(0x9b)](_0x207c13);}[_0x1e6e09(0xa3)](_0x3c3699){const _0x5ffe2a=_0x1e6e09;return Array[_0x5ffe2a(0xbf)](this[_0x5ffe2a(0x145)])['map'](_0x2b4241=>_0x2b4241(_0x3c3699));}}var _0x2043ed=Object[_0x1e6e09(0xaf)],_0x4653dc=(_0x5809c5,_0x4b6cba,_0x5ed0cb,_0x17ee5a)=>{const _0x37daad=_0x1e6e09;for(var _0x329b14=_0x17ee5a>0x1?void 0x0:_0x17ee5a?_0x2043ed(_0x4b6cba,_0x5ed0cb):_0x4b6cba,_0x5e9f06=_0x5809c5[_0x37daad(0xad)]-0x1,_0x407d6c;_0x5e9f06>=0x0;_0x5e9f06--)(_0x407d6c=_0x5809c5[_0x5e9f06])&&(_0x329b14=_0x407d6c(_0x329b14)||_0x329b14);return _0x329b14;},_0x18a4a5=(_0x4a1608,_0x2a8aac)=>(_0x201fc5,_0x57f780)=>_0x2a8aac(_0x201fc5,_0x57f780,_0x4a1608);_0xaa855f[_0x1e6e09(0xc6)]=class extends _0x31596f['RxDisposable']{constructor(_0x53525c,_0x3ef091,_0x563c3f){const _0x3048bd=_0x1e6e09;super(),_0x2ac35f(this,_0x3048bd(0xd3),new Map()),(this[_0x3048bd(0x123)]=_0x53525c,this['_injector']=_0x3ef091,this[_0x3048bd(0x89)]=_0x563c3f,this[_0x3048bd(0xf2)]());}async['getLiveShareCoordinator'](_0x29d11a){const _0x123072=_0x1e6e09;return this[_0x123072(0xd3)]['has'](_0x29d11a)||await this[_0x123072(0x8b)](_0x29d11a),this['_entities'][_0x123072(0x12b)](_0x29d11a);}[_0x1e6e09(0xbb)](_0x117c53){const _0x47391c=_0x1e6e09;var _0x14726d;return(_0x14726d=this[_0x47391c(0xd3)]['get'](_0x117c53))!=null?_0x14726d:null;}[_0x1e6e09(0xf2)](){const _0x4d700f=_0x1e6e09;this['_univerInstanceService'][_0x4d700f(0x87)](_0x31596f[_0x4d700f(0xcf)]['UNIVER_SHEET'])['pipe'](_0x44ee62[_0x4d700f(0x139)](this[_0x4d700f(0xec)]))[_0x4d700f(0x107)](async _0x32dd13=>{const _0x2c0a31=_0x4d700f,_0x4d38e7=_0x32dd13[_0x2c0a31(0x135)]();this[_0x2c0a31(0xd3)][_0x2c0a31(0x9b)](_0x4d38e7)||this[_0x2c0a31(0x8b)](_0x4d38e7);}),this['_univerInstanceService'][_0x4d700f(0x150)](_0x31596f[_0x4d700f(0xcf)][_0x4d700f(0x15a)])[_0x4d700f(0x86)](_0x44ee62['takeUntil'](this[_0x4d700f(0xec)]))[_0x4d700f(0x107)](_0x50d0c1=>{const _0x23d552=_0x4d700f,_0x5445fc=_0x50d0c1['getUnitId'](),_0x43bb67=this[_0x23d552(0xd3)][_0x23d552(0x12b)](_0x5445fc);_0x43bb67==null||_0x43bb67['dispose']();});}async[_0x1e6e09(0x8b)](_0x300a0a){const _0x15f11b=_0x1e6e09,_0x4a8d46=await this[_0x15f11b(0x89)]['requireSession'](_0x300a0a),_0x2a7693=this[_0x15f11b(0xd7)][_0x15f11b(0x102)](_0xaa855f[_0x15f11b(0xeb)],_0x300a0a,_0x4a8d46);return _0x2a7693[_0x15f11b(0x101)](),this['_entities'][_0x15f11b(0xc1)](_0x300a0a,_0x2a7693),_0x2a7693;}},_0xaa855f['LiveShareController']=_0x4653dc([_0x18a4a5(0x0,_0x31596f[_0x1e6e09(0x12a)]),_0x18a4a5(0x1,_0x31596f[_0x1e6e09(0xbe)](_0x31596f['Injector'])),_0x18a4a5(0x2,_0x31596f['Inject'](_0x478ddb[_0x1e6e09(0xa4)]))],_0xaa855f[_0x1e6e09(0xc6)]);var _0xdda2d4=(_0x3a978b=>(_0x3a978b[_0x1e6e09(0x100)]=_0x1e6e09(0x11b),_0x3a978b[_0x1e6e09(0xa8)]=_0x1e6e09(0xf8),_0x3a978b[_0x1e6e09(0x114)]=_0x1e6e09(0x105),_0x3a978b[_0x1e6e09(0x11a)]='not-following',_0x3a978b['PRESENTING']=_0x1e6e09(0xe9),_0x3a978b))(_0xdda2d4||{});const _0x12f3aa=_0x1e6e09(0x130),_0xe51124=0xc8;_0xaa855f['LiveShareCoordinator']=class extends _0x31596f[_0x1e6e09(0x8f)]{constructor(_0x4df589,_0x59f436,_0x58c508,_0x5021e5,_0x37df80){const _0xa20c6c=_0x1e6e09;super(),_0x2ac35f(this,'_status$',new _0x3114d2['BehaviorSubject']('idle')),_0x2ac35f(this,'status$',this['_status$'][_0xa20c6c(0xd2)]()),_0x2ac35f(this,_0xa20c6c(0xf2),!0x1),_0x2ac35f(this,_0xa20c6c(0x104),null),_0x2ac35f(this,_0xa20c6c(0xe7),null),(this[_0xa20c6c(0x133)]=_0x4df589,this[_0xa20c6c(0x90)]=_0x59f436,this[_0xa20c6c(0xab)]=_0x58c508,this[_0xa20c6c(0xb1)]=_0x5021e5,this[_0xa20c6c(0x141)]=_0x37df80);}get['_status'](){return this['_status$']['getValue']();}[_0x1e6e09(0x134)](){const _0x1f1be9=_0x1e6e09;var _0x18c99b;(_0x18c99b=this[_0x1f1be9(0x104)])==null||_0x18c99b[_0x1f1be9(0x134)](),this[_0x1f1be9(0x98)][_0x1f1be9(0xb7)](_0x1f1be9(0xf8)),this[_0x1f1be9(0x98)][_0x1f1be9(0x12e)]();}[_0x1e6e09(0xf0)](){const _0x23c343=_0x1e6e09;return this[_0x23c343(0x13d)];}[_0x1e6e09(0x101)](){const _0x690b24=_0x1e6e09;this[_0x690b24(0xf2)]||(this[_0x690b24(0xf2)]=!0x0,this[_0x690b24(0x90)][_0x690b24(0xd5)]['pipe'](_0x44ee62[_0x690b24(0x139)](this['dispose$']))[_0x690b24(0x107)](_0x13f1f6=>{const _0x4ef24f=_0x690b24;switch(_0x13f1f6){case _0x478ddb[_0x4ef24f(0x14c)][_0x4ef24f(0x100)]:this['_handleOffline']();break;case _0x478ddb['SessionStatus'][_0x4ef24f(0xc7)]:this[_0x4ef24f(0x121)]();break;}}),this[_0x690b24(0x90)][_0x690b24(0x161)][_0x690b24(0x86)](_0x44ee62[_0x690b24(0x139)](this['dispose$']))[_0x690b24(0x107)](_0x341a7e=>{const _0x43bf62=_0x690b24,{eventID:_0x3d837f}=_0x341a7e;switch(_0x3d837f){case _0x14f43['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x43bf62(0x8a)](_0x341a7e);break;case _0x14f43[_0x43bf62(0x14e)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x341a7e);break;case _0x14f43[_0x43bf62(0x14e)][_0x43bf62(0xc8)]:this[_0x43bf62(0x13b)]();break;case _0x14f43[_0x43bf62(0x14e)]['NEW_CHANGESETS']:this[_0x43bf62(0x108)](_0x341a7e);break;}}));}[_0x1e6e09(0xf6)](){const _0x4710ee=_0x1e6e09;this[_0x4710ee(0x90)][_0x4710ee(0xc3)]({'eventID':_0x14f43['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4710ee(0x133)],'userID':this[_0x4710ee(0x90)][_0x4710ee(0x10c)]()}},this[_0x4710ee(0x133)]);}['stopPresenting'](){const _0x1867af=_0x1e6e09;this['_status']===_0x1867af(0xe9)&&(this['_status$'][_0x1867af(0xb7)](_0x1867af(0xf8)),this['_collabSession'][_0x1867af(0xc3)]({'eventID':_0x14f43[_0x1867af(0x14e)][_0x1867af(0xc8)],'data':{'unitID':this[_0x1867af(0x133)]}},this[_0x1867af(0x133)]));}[_0x1e6e09(0x156)](){const _0x2ee9e2=_0x1e6e09;this['_status']===_0x2ee9e2(0xe6)&&(this['_status$']['next'](_0x2ee9e2(0x105)),this['_startFollowing']());}[_0x1e6e09(0xe4)](){const _0x463fad=_0x1e6e09;this[_0x463fad(0x13d)]===_0x463fad(0x105)&&this[_0x463fad(0x154)]();}['_handleNewHost'](_0x1c5044){const _0x8dd41b=_0x1e6e09,{presenter:_0x5bc2be}=_0x1c5044[_0x8dd41b(0x131)],_0x214bf9=this['_collabSession']['getMemberID']();this['_presenter']=_0x5bc2be,_0x5bc2be===_0x214bf9?(this[_0x8dd41b(0x154)](),this[_0x8dd41b(0xff)]()):this[_0x8dd41b(0x13d)]!==_0x8dd41b(0xe6)&&(this[_0x8dd41b(0x120)](),this[_0x8dd41b(0x144)]());}[_0x1e6e09(0xa1)](){const _0x982f3d=_0x1e6e09,_0x96e692={'eventID':_0x14f43[_0x982f3d(0x14e)][_0x982f3d(0xbc)]};this[_0x982f3d(0x90)][_0x982f3d(0xc3)](_0x96e692,this[_0x982f3d(0x133)]);}['_handleTerminate'](){const _0x1dda6e=_0x1e6e09;this[_0x1dda6e(0xe7)]=null,this['_status']!==_0x1dda6e(0xe9)&&this['_beIdle']();}[_0x1e6e09(0x108)](_0x14702b){const _0x6ce2ac=_0x1e6e09;if(this[_0x6ce2ac(0x13d)]===_0x6ce2ac(0x105)&&this['_presenter']===_0x14702b[_0x6ce2ac(0x131)]['memberID']){const _0x4b40f9=_0x14f43[_0x6ce2ac(0x146)](_0x14702b['data'])[_0x6ce2ac(0x99)][_0x6ce2ac(0x106)]()['find'](_0x3ddecc=>_0x3ddecc['id']===_0x1f2f51[_0x6ce2ac(0xf7)]['id']);if(_0x4b40f9){const _0x477aa3=_0x4b40f9['params']['unitId'],_0x196012=_0x4b40f9[_0x6ce2ac(0x112)][_0x6ce2ac(0xb4)]['id'];setTimeout(()=>{const _0x4d4c85=_0x6ce2ac;this[_0x4d4c85(0x141)]['executeCommand'](_0x1f2f51['SetWorksheetActiveOperation']['id'],{'unitId':_0x477aa3,'subUnitId':_0x196012},{'fromCollab':!0x0});});}}}[_0x1e6e09(0xff)](){const _0x15bd9b=_0x1e6e09;this[_0x15bd9b(0x98)][_0x15bd9b(0xb7)](_0x15bd9b(0xe9));const _0x1c1175=new Map(),_0x9ebdee=this[_0x15bd9b(0x104)]=new _0x31596f['DisposableCollection']();_0x9ebdee['add'](_0x31596f[_0x15bd9b(0x128)](()=>{const _0x263325=_0x15bd9b;_0x1c1175['forEach'](_0x1cb831=>_0x1cb831[_0x263325(0x12e)]()),_0x1c1175[_0x263325(0xc0)]();})),_0x9ebdee[_0x15bd9b(0xd0)](this[_0x15bd9b(0x141)][_0x15bd9b(0xdc)](_0x474270=>{const _0x298d0c=_0x15bd9b;var _0x4e2070;if(_0x474270[_0x298d0c(0x91)]!==_0x31596f[_0x298d0c(0x11c)][_0x298d0c(0x13e)]||!this[_0x298d0c(0xb1)]['shouldShareOperation'](_0x474270['id']))return;const {id:_0x7c3a1b}=_0x474270;let _0x252fff;_0x1c1175[_0x298d0c(0x9b)](_0x7c3a1b)?_0x252fff=_0x1c1175[_0x298d0c(0x12b)](_0x7c3a1b):(_0x252fff=new _0x3114d2[(_0x298d0c(0xb5))](),_0x1c1175[_0x298d0c(0xc1)](_0x7c3a1b,_0x252fff),_0x252fff[_0x298d0c(0x86)](_0x44ee62[_0x298d0c(0xba)]((_0x4e2070=this['_configService']['getConfig'](_0x12f3aa))!=null?_0x4e2070:_0xe51124,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x298d0c(0x107)](_0x22e910=>{const _0x5cbfe6=_0x298d0c;this[_0x5cbfe6(0x90)]['send']({'eventID':_0x14f43['CollaborationEvent'][_0x5cbfe6(0xd8)],'data':{'unitID':this['_unitID'],'operations':{[_0x22e910['id']]:{'id':_0x22e910['id'],'params':JSON[_0x5cbfe6(0xda)](_0x22e910[_0x5cbfe6(0x112)])}}}},this[_0x5cbfe6(0x133)]);})),_0x252fff[_0x298d0c(0xb7)](_0x474270);})),this[_0x15bd9b(0xb1)]['getInitialStates'](this[_0x15bd9b(0x133)])[_0x15bd9b(0x14f)](_0x42b323=>this[_0x15bd9b(0x90)][_0x15bd9b(0xc3)]({'eventID':_0x14f43['CollaborationEvent'][_0x15bd9b(0xd8)],'data':{'unitID':this[_0x15bd9b(0x133)],'operations':{[_0x42b323['id']]:{'id':_0x42b323['id'],'params':JSON[_0x15bd9b(0xda)](_0x42b323[_0x15bd9b(0x112)])}}}},this[_0x15bd9b(0x133)]));}[_0x1e6e09(0x120)](){const _0x4338ac=_0x1e6e09;var _0x1cfd36;this[_0x4338ac(0x98)][_0x4338ac(0xb7)]('idle'),(_0x1cfd36=this[_0x4338ac(0x104)])==null||_0x1cfd36['dispose'](),this[_0x4338ac(0x104)]=null;}['_startFollowing'](){const _0x40e000=_0x1e6e09;var _0x3b69f8;(_0x3b69f8=this['_commandDisposable'])==null||_0x3b69f8[_0x40e000(0x134)](),this[_0x40e000(0x98)][_0x40e000(0xb7)](_0x40e000(0x105));}['_beIdle'](){const _0x370530=_0x1e6e09;var _0x4b06c1;this[_0x370530(0x98)][_0x370530(0xb7)](_0x370530(0xf8)),(_0x4b06c1=this[_0x370530(0x104)])==null||_0x4b06c1[_0x370530(0x134)](),this['_commandDisposable']=null;}[_0x1e6e09(0x154)](){const _0x1b7d27=_0x1e6e09;var _0x44fbdf;this[_0x1b7d27(0x98)][_0x1b7d27(0xb7)](_0x1b7d27(0xe6)),(_0x44fbdf=this[_0x1b7d27(0x104)])==null||_0x44fbdf[_0x1b7d27(0x134)]();}[_0x1e6e09(0xee)](_0x4f0b21){const _0x5e7473=_0x1e6e09;if([_0x5e7473(0xe9),_0x5e7473(0xe6),_0x5e7473(0x11b)][_0x5e7473(0x8d)](this[_0x5e7473(0x13d)])||!_0x4f0b21[_0x5e7473(0x131)][_0x5e7473(0xe2)]||_0x4f0b21['data'][_0x5e7473(0xe2)]===this[_0x5e7473(0x90)]['getMemberID']())return;this['_status']===_0x5e7473(0xf8)&&this[_0x5e7473(0x144)]();const _0x2e4360=_0x4f0b21[_0x5e7473(0x131)][_0x5e7473(0x153)];Object[_0x5e7473(0x15d)](_0x2e4360)[_0x5e7473(0x14f)](_0x183a29=>{const _0xdbc42c=_0x5e7473;this[_0xdbc42c(0x141)]['executeCommand'](_0x183a29['id'],_0x183a29[_0xdbc42c(0x112)]?JSON['parse'](_0x183a29[_0xdbc42c(0x112)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0xc799d6=_0x1e6e09;var _0x44f048;this[_0xc799d6(0x98)][_0xc799d6(0xb7)]('offline'),(_0x44f048=this['_commandDisposable'])==null||_0x44f048[_0xc799d6(0x134)]();}[_0x1e6e09(0x121)](){const _0x377e68=_0x1e6e09;this['_status$'][_0x377e68(0xb7)](_0x377e68(0xf8)),this[_0x377e68(0xa1)]();}},_0xaa855f['LiveShareCoordinator']=_0x4653dc([_0x18a4a5(0x2,_0x31596f['IConfigService']),_0x18a4a5(0x3,_0x31596f[_0x1e6e09(0xbe)](_0x3230ab)),_0x18a4a5(0x4,_0x31596f['ICommandService'])],_0xaa855f[_0x1e6e09(0xeb)]);function _0x108e79(){const _0x20533e=_0x1e6e09,_0x5b5a34=_0x190706[_0x20533e(0xb2)](_0xaa855f[_0x20533e(0xc6)]),_0x6dce5b=_0x190706[_0x20533e(0xb2)](_0x31596f[_0x20533e(0x12a)]),_0x309b4a=_0x190706[_0x20533e(0x11e)](()=>_0x6dce5b[_0x20533e(0xe5)](_0x31596f[_0x20533e(0xcf)][_0x20533e(0x15a)]),void 0x0,!0x1,[]),[_0x4eb1d1,_0xf5b3db]=_0x5d948a[_0x20533e(0xf5)](null),[_0x430b06,_0x3b8d4e]=_0x5d948a['useState'](_0xdda2d4['IDLE']),_0x15e254=_0x5d948a[_0x20533e(0xdb)](null);return _0x5d948a['useEffect'](()=>(_0x309b4a&&_0x5b5a34['getLiveShareCoordinator'](_0x309b4a[_0x20533e(0x135)]())[_0x20533e(0x13c)](_0x5db5aa=>{_0xf5b3db(_0x5db5aa),_0x15e254['current']=_0x5db5aa['status$']['subscribe'](_0x51ba1a=>{_0x3b8d4e(_0x51ba1a);});}),()=>{const _0x4dbc02=_0x20533e;var _0x8c9744;(_0x8c9744=_0x15e254['current'])==null||_0x8c9744[_0x4dbc02(0xe3)](),_0x15e254['current']=null;}),[_0x309b4a,_0x5b5a34]),_0x4eb1d1?_0x441506[_0x20533e(0xf1)](_0x45a328[_0x20533e(0xc2)],{'align':'end','disabled':_0x430b06===_0xdda2d4['OFFLINE'],'className':_0x20533e(0x143),'overlay':_0x441506['jsx'](_0x3a996c,{'status':_0x430b06,'coordinator':_0x4eb1d1}),'children':_0x441506[_0x20533e(0xf1)](_0x20533e(0xf4),{'className':_0x45a328[_0x20533e(0xe0)](_0x20533e(0x88),{'univer-cursor-not-allowed':_0x430b06===_0xdda2d4[_0x20533e(0x100)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x430b06!==_0xdda2d4[_0x20533e(0x100)]}),'type':_0x20533e(0xf4),'children':_0x441506[_0x20533e(0xf1)](_0x460c01,{'className':_0x20533e(0x9c)})})}):null;}function _0x3a996c(_0x5db9d8){const _0x2fcfa7=_0x1e6e09,{status:_0x27faa4,coordinator:_0x10d828}=_0x5db9d8;switch(_0x27faa4){case _0xdda2d4[_0x2fcfa7(0xa8)]:return _0x441506[_0x2fcfa7(0xf1)](_0x3d79e8,{'coordinator':_0x10d828});case _0xdda2d4['FOLLOWING']:return _0x441506[_0x2fcfa7(0xf1)](_0x1eda7a,{'coordinator':_0x10d828});case _0xdda2d4['NOT_FOLLOWING']:return _0x441506[_0x2fcfa7(0xf1)](_0x54301c,{'coordinator':_0x10d828});case _0xdda2d4[_0x2fcfa7(0x100)]:return _0x441506[_0x2fcfa7(0xf1)](_0x4f51d5,{});case _0xdda2d4[_0x2fcfa7(0x9f)]:return _0x441506[_0x2fcfa7(0xf1)](_0x1aac89,{'coordinator':_0x10d828});default:return null;}}function _0x3d79e8(_0x12116a){const _0x2cdc0a=_0x1e6e09,{coordinator:_0x1c868c}=_0x12116a;return _0x441506[_0x2cdc0a(0xb8)](_0x441506['Fragment'],{'children':[_0x441506['jsx'](_0x2cdc0a(0xf9),{'className':_0x2cdc0a(0x149),'children':_0x2cdc0a(0x148)}),_0x441506[_0x2cdc0a(0xf1)](_0x45a328[_0x2cdc0a(0xfb)],{'onClick':()=>_0x1c868c[_0x2cdc0a(0xf6)](),'children':'Start'})]});}function _0x1eda7a(_0x1948da){const _0x11f579=_0x1e6e09,{coordinator:_0x3e393b}=_0x1948da;return _0x441506[_0x11f579(0xb8)](_0x441506[_0x11f579(0x137)],{'children':[_0x441506['jsx'](_0x11f579(0xf9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x11f579(0x95)}),_0x441506[_0x11f579(0xf1)](_0x45a328[_0x11f579(0xfb)],{'onClick':()=>_0x3e393b[_0x11f579(0xe4)](),'children':_0x11f579(0x14b)})]});}function _0x54301c(_0x228525){const _0x3568c6=_0x1e6e09,{coordinator:_0x580526}=_0x228525;return _0x441506[_0x3568c6(0xb8)](_0x441506['Fragment'],{'children':[_0x441506[_0x3568c6(0xf1)](_0x3568c6(0xf9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3568c6(0x8c)}),_0x441506[_0x3568c6(0xf1)](_0x45a328[_0x3568c6(0xfb)],{'variant':_0x3568c6(0x14d),'onClick':()=>_0x580526[_0x3568c6(0x156)](),'children':_0x3568c6(0x10a)})]});}function _0x1aac89(_0x5da429){const _0x47c6b6=_0x1e6e09,{coordinator:_0x405af8}=_0x5da429;return _0x441506['jsxs'](_0x441506['Fragment'],{'children':[_0x441506[_0x47c6b6(0xf1)](_0x47c6b6(0xf9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x47c6b6(0x118)}),_0x441506[_0x47c6b6(0xf1)](_0x45a328[_0x47c6b6(0xfb)],{'variant':_0x47c6b6(0x157),'onClick':()=>_0x405af8['stopPresenting'](),'children':_0x47c6b6(0xd9)})]});}function _0x4f51d5(){const _0xa4555a=_0x1e6e09;return _0x441506[_0xa4555a(0xf1)](_0x441506[_0xa4555a(0x137)],{'children':_0xa4555a(0x94)});}var _0x589705=Object['getOwnPropertyDescriptor'],_0xbc4111=(_0x58cade,_0x13b282,_0x368d86,_0x8bba4e)=>{const _0x16c9c5=_0x1e6e09;for(var _0x928fcd=_0x8bba4e>0x1?void 0x0:_0x8bba4e?_0x589705(_0x13b282,_0x368d86):_0x13b282,_0x3b66b7=_0x58cade[_0x16c9c5(0xad)]-0x1,_0x10b96a;_0x3b66b7>=0x0;_0x3b66b7--)(_0x10b96a=_0x58cade[_0x3b66b7])&&(_0x928fcd=_0x10b96a(_0x928fcd)||_0x928fcd);return _0x928fcd;},_0x28c010=(_0x50cc6d,_0x405c9b)=>(_0x1708c6,_0x32f342)=>_0x405c9b(_0x1708c6,_0x32f342,_0x50cc6d);_0xaa855f[_0x1e6e09(0x151)]=class extends _0x31596f['Disposable']{constructor(_0x2a85e5,_0x1a4b60){const _0x206e3a=_0x1e6e09;super(),this[_0x206e3a(0xd7)]=_0x2a85e5,this[_0x206e3a(0x103)]=_0x1a4b60,this[_0x206e3a(0xdf)]();}[_0x1e6e09(0xdf)](){const _0x456483=_0x1e6e09;this[_0x456483(0x155)](this['_uiPartsService'][_0x456483(0xef)](_0x190706['BuiltInUIPart']['HEADER_MENU'],()=>_0x190706['connectInjector'](_0x108e79,this[_0x456483(0xd7)])));}},_0xaa855f['DesktopLiveShareController']=_0xbc4111([_0x28c010(0x0,_0x31596f[_0x1e6e09(0xbe)](_0x31596f[_0x1e6e09(0xfc)])),_0x28c010(0x1,_0x190706[_0x1e6e09(0x119)])],_0xaa855f['DesktopLiveShareController']);const _0x473afb=_0x1e6e09(0xfd),_0x319bf8={};var _0x23a1f8=Object['getOwnPropertyDescriptor'],_0x4d650b=(_0x1a97e0,_0xd1ea1b,_0x37d524,_0x48b9f5)=>{const _0x350eea=_0x1e6e09;for(var _0x4e48f9=_0x48b9f5>0x1?void 0x0:_0x48b9f5?_0x23a1f8(_0xd1ea1b,_0x37d524):_0xd1ea1b,_0x33a824=_0x1a97e0[_0x350eea(0xad)]-0x1,_0x1c98e1;_0x33a824>=0x0;_0x33a824--)(_0x1c98e1=_0x1a97e0[_0x33a824])&&(_0x4e48f9=_0x1c98e1(_0x4e48f9)||_0x4e48f9);return _0x4e48f9;},_0x30488a=(_0x354435,_0x471cf2)=>(_0x2cd102,_0x3cac87)=>_0x471cf2(_0x2cd102,_0x3cac87,_0x354435);let _0x5d442e=class extends _0x31596f[_0x1e6e09(0xc9)]{constructor(_0xdfc1a9){const _0x353752=_0x1e6e09;super(),this['_liveShareService']=_0xdfc1a9,this[_0x353752(0xf2)]();}['_init'](){const _0xfe2f71=_0x1e6e09;[_0x3ec2d6['SetZoomRatioOperation']['id'],_0x3ec2d6[_0xfe2f71(0x122)]['id'],_0x1f2f51['SetWorksheetActiveOperation']['id']]['forEach'](_0x1e5869=>{const _0x40ec37=_0xfe2f71;this[_0x40ec37(0x155)](this['_liveShareService'][_0x40ec37(0xbd)](_0x1e5869));});}};_0x5d442e=_0x4d650b([_0x30488a(0x0,_0x31596f['Inject'](_0x3230ab))],_0x5d442e);var _0x3c3a34=Object['defineProperty'],_0x597340=Object[_0x1e6e09(0xaf)],_0x47aec0=(_0x3956ea,_0x47ef1a,_0x338ea3)=>_0x47ef1a in _0x3956ea?_0x3c3a34(_0x3956ea,_0x47ef1a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x338ea3}):_0x3956ea[_0x47ef1a]=_0x338ea3,_0x2de01a=(_0x32aa00,_0x34a382,_0x371f1d,_0x347025)=>{const _0x14b72a=_0x1e6e09;for(var _0x170cdf=_0x347025>0x1?void 0x0:_0x347025?_0x597340(_0x34a382,_0x371f1d):_0x34a382,_0xc10a4c=_0x32aa00[_0x14b72a(0xad)]-0x1,_0x46cfa8;_0xc10a4c>=0x0;_0xc10a4c--)(_0x46cfa8=_0x32aa00[_0xc10a4c])&&(_0x170cdf=_0x46cfa8(_0x170cdf)||_0x170cdf);return _0x170cdf;},_0x4b8151=(_0x34ba16,_0x2d1ab7)=>(_0x1d35a2,_0x560cb4)=>_0x2d1ab7(_0x1d35a2,_0x560cb4,_0x34ba16),_0x198097=(_0xd7b4f6,_0x179260,_0x67c804)=>_0x47aec0(_0xd7b4f6,typeof _0x179260!=_0x1e6e09(0x126)?_0x179260+'':_0x179260,_0x67c804);const _0x5bdd6c=_0x1e6e09(0x14a);_0xaa855f['UniverLiveSharePlugin']=class extends _0x31596f['Plugin']{constructor(_0x532d6a=_0x319bf8,_0x31865a,_0x43f47c){const _0x8dade1=_0x1e6e09;super(),this[_0x8dade1(0x115)]=_0x532d6a,this[_0x8dade1(0xd7)]=_0x31865a,this['_configService']=_0x43f47c;const {..._0x2e366d}=_0x31596f[_0x8dade1(0x162)]({},_0x319bf8,this[_0x8dade1(0x115)]);this[_0x8dade1(0xab)][_0x8dade1(0x10f)](_0x473afb,_0x2e366d);}['onStarting'](){const _0x10f897=_0x1e6e09;_0x31596f[_0x10f897(0xcc)](this['_injector'],_0x31596f[_0x10f897(0xa5)]([[_0x3230ab],[_0xaa855f[_0x10f897(0xc6)]],[_0x5d442e],[_0xaa855f['DesktopLiveShareController']]],this[_0x10f897(0x115)][_0x10f897(0x129)])),_0x31596f[_0x10f897(0x10e)](this[_0x10f897(0xd7)],[[_0x5d442e]]);}[_0x1e6e09(0x9e)](){const _0x393442=_0x1e6e09;_0x31596f[_0x393442(0x10e)](this['_injector'],[[_0xaa855f['DesktopLiveShareController']]]);}},_0x198097(_0xaa855f[_0x1e6e09(0x111)],_0x1e6e09(0x91),_0x31596f[_0x1e6e09(0xcf)][_0x1e6e09(0x85)]),_0x198097(_0xaa855f['UniverLiveSharePlugin'],'pluginName',_0x5bdd6c),_0xaa855f[_0x1e6e09(0x111)]=_0x2de01a([_0x31596f[_0x1e6e09(0x93)](_0x478ddb['UniverCollaborationClientPlugin']),_0x4b8151(0x1,_0x31596f[_0x1e6e09(0xbe)](_0x31596f[_0x1e6e09(0xfc)])),_0x4b8151(0x2,_0x31596f[_0x1e6e09(0xd4)])],_0xaa855f[_0x1e6e09(0x111)]),_0xaa855f['LiveShare']=_0x108e79,_0xaa855f[_0x1e6e09(0x12d)]=_0x3230ab,_0xaa855f['LiveShareStatus']=_0xdda2d4,Object[_0x1e6e09(0xa2)](_0xaa855f,Symbol[_0x1e6e09(0x116)],{'value':'Module'});}));function _0x2c2f(){const _0x22c2e1=['takeUntil','createElement','_handleTerminate','then','_status','OPERATION','attrs','6178948TniGlm','_commandService','svg','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','_startFollowing','_reporters','parseProtocolChangeset','none','Present\x20this\x20document','univer-mb-3\x20univer-w-full\x20univer-text-sm','UNIVER_LIVE_SHARE_PLUGIN','Stop\x20following','SessionStatus','text','CollaborationEvent','forEach','getTypeOfUnitDisposed$','DesktopLiveShareController','UniverProLiveShare','operations','_stopFollowing','disposeWithMe','startFollowing','default','UniverUi','35YUlTZu','UNIVER_SHEET','delete','defIds','values','10775nuCdZz','rxjs/operators','1302135SgCfnO','event$','merge','amd','@univerjs-pro/collaboration','children','UNIVER_UNKNOWN','pipe','getTypeOfUnitAdded$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_collabSessionService','_handleNewHost','_startLiveShareCoordinator','You\x27re\x20not\x20following\x20the\x20presenter','includes','rxjs','RxDisposable','_collabSession','type','1RKnWoJ','DependentOn','You\x27are\x20offline.','You\x27re\x20following\x20the\x20presenter','tag','idSuffix','_status$','mutations','@univerjs/ui','has','univer-size-4','2607240aTHeiP','onRendered','PRESENTING','random','_fetchOperations','defineProperty','getInitialStates','CollaborationSessionService','mergeOverrideWithDependencies','map','React','IDLE','univerjs-icon\x20univerjs-icon-','UniverProCollaboration','_configService','use','length','UniverCore','getOwnPropertyDescriptor','currentColor','_liveShareService','useDependency','forwardRef','sheet','Subject','operators','next','jsxs','91446ziBqyU','throttleTime','getLiveShareCoordinatorSync','LIVESHARE_FETCH_OPERATIONS','registerSharedOperation','Inject','from','clear','set','Dropdown','send','46079690GQauUx','_sharedOperations','LiveShareController','ONLINE','LIVESHARE_TERMINATE','Disposable','@univerjs/core','evenodd','registerDependencies','UniverProCollaborationClient','@univerjs/design','UniverInstanceType','add','url(#$1','asObservable','_entities','IConfigService','sessionStatus$','function','_injector','LIVESHARE_OPERATION','Stop\x20presenting','stringify','useRef','onCommandExecuted','registerInitialStateReporter','exports','_mountLiveShare','clsx','xlink:href','presenter','unsubscribe','stopFollowing','getCurrentTypeOfUnit$','not-following','_presenter','http://www.w3.org/2000/svg','presenting','string','LiveShareCoordinator','dispose$','UniverIcon','_handleOperation','registerComponent','getStatus','jsx','_init','UniverSheetsUi','button','useState','tryStartPresenting','InsertSheetMutation','idle','div','trim','Button','Injector','live-share.config','current','_startPresenting','OFFLINE','init','createInstance','_uiPartsService','_commandDisposable','following','reverse','subscribe','_handleNewChangeSets','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','Start\x20following','toString','getMemberID','UniverDesign','touchDependencies','setConfig','fill','UniverLiveSharePlugin','params','LiveShareIcon','FOLLOWING','_config','toStringTag','defs','You\x27re\x20presenting\x20the\x20document','IUIPartsService','NOT_FOLLOWING','offline','CommandType','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','useObservable','displayName','_stopPresenting','_handleOnline','SetScrollOperation','_univerInstanceService','path','replace','symbol','object','toDisposable','override','IUniverInstanceService','get','@univerjs/sheets','LiveShareService','complete','colorChannel1','SAME_OPERATION_SHARE_INTERVAL','data','12672810NgYCfH','_unitID','dispose','getUnitId','1038rGGzwf','Fragment','entries'];_0x2c2f=function(){return _0x22c2e1;};return _0x2c2f();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.13.0-insiders.
|
|
3
|
+
"version": "0.13.0-insiders.20251218-2062647",
|
|
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.13.0-insiders.
|
|
61
|
-
"@univerjs/core": "0.13.0-insiders.
|
|
62
|
-
"@univerjs-pro/collaboration-client": "0.13.0-insiders.
|
|
63
|
-
"@univerjs/design": "0.13.0-insiders.
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/sheets": "0.13.0-insiders.
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.13.0-insiders.20251218-2062647",
|
|
61
|
+
"@univerjs/core": "0.13.0-insiders.20251218-2062647",
|
|
62
|
+
"@univerjs-pro/collaboration-client": "0.13.0-insiders.20251218-2062647",
|
|
63
|
+
"@univerjs/design": "0.13.0-insiders.20251218-2062647",
|
|
64
|
+
"@univerjs/sheets": "0.13.0-insiders.20251218-2062647",
|
|
65
|
+
"@univerjs/ui": "0.13.0-insiders.20251218-2062647",
|
|
66
|
+
"@univerjs/sheets-ui": "0.13.0-insiders.20251218-2062647",
|
|
67
|
+
"@univerjs/engine-render": "0.13.0-insiders.20251218-2062647"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|