@univerjs-pro/live-share 0.10.14-nightly.202511070628 → 0.10.14-nightly.202511070640
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 _0x3af981=_0x36ac;(function(_0x38bc0a,_0x2e0da5){const _0x1a7255=_0x36ac,_0x497540=_0x38bc0a();while(!![]){try{const _0x331d04=-parseInt(_0x1a7255(0x100))/0x1+parseInt(_0x1a7255(0x111))/0x2+-parseInt(_0x1a7255(0xf9))/0x3*(parseInt(_0x1a7255(0xfb))/0x4)+parseInt(_0x1a7255(0x11a))/0x5+parseInt(_0x1a7255(0x10f))/0x6+-parseInt(_0x1a7255(0xf8))/0x7*(-parseInt(_0x1a7255(0x115))/0x8)+parseInt(_0x1a7255(0xfc))/0x9*(-parseInt(_0x1a7255(0xff))/0xa);if(_0x331d04===_0x2e0da5)break;else _0x497540['push'](_0x497540['shift']());}catch(_0x9e8f9a){_0x497540['push'](_0x497540['shift']());}}}(_0x41c6,0x28aca));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d[_0x3af981(0x109)]{[_0x3af981(0xfa)](_0xf62b43,_0x1db1a1,_0x405f71,_0x57f9c5,_0x20461a){const _0x38b2a9=_0x3af981,_0x4c537e=_0xf62b43['get'](n[_0x38b2a9(0x10e)]),_0x4f9783=_0xf62b43[_0x38b2a9(0x114)](g[_0x38b2a9(0x117)]),_0x501349=_0x1db1a1['getUnitId'](),_0x4535f6=_0x1db1a1[_0x38b2a9(0x102)](),_0x2b0da4=_0x4c537e[_0x38b2a9(0x118)](_0x501349);(_0x2b0da4==null?void 0x0:_0x2b0da4[_0x38b2a9(0x11c)]())!==n[_0x38b2a9(0x113)][_0x38b2a9(0xfd)]||(_0x405f71[_0x38b2a9(0x119)]()!==_0x4535f6[_0x38b2a9(0x119)]()&&this['_commandService']['executeCommand'](u[_0x38b2a9(0x10a)]['id'],{'unitId':_0x501349,'subUnitId':_0x405f71['getSheetId']()}),!_0x4f9783['getRenderById'](_0x501349))||_0x20461a[_0x38b2a9(0x105)](f[_0x38b2a9(0x11d)]['id'],{'unitId':_0x1db1a1[_0x38b2a9(0xf7)](),'sheetId':_0x405f71[_0x38b2a9(0x119)](),'sheetViewStartRow':_0x57f9c5['startRow'],'sheetViewStartColumn':_0x57f9c5[_0x38b2a9(0x104)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x41c6(){const _0x59a87b=['SetScrollOperation','startFollowing','getUnitId','1204bDnITE','178701dxPCjs','_initialize','20xLmgfk','1501965QPgVoM','PRESENTING','getActiveWorkbook','20kRwjJk','292478FdioAF','getLiveShareStatus','getActiveSheet','getId','startColumn','syncExecuteCommand','_injector','FEnum','FUniver','FRange','SetWorksheetActiveOperation','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','IDLE','tryStartPresenting','LiveShareController','1965582hMTgnO','No\x20active\x20workbook\x20found.','569902aVQpci','startPresenting','LiveShareStatus','get','13336auGTaF','extend','IRenderManagerService','getLiveShareCoordinatorSync','getSheetId','957065OOOoGF','stopPresenting','getStatus'];_0x41c6=function(){return _0x59a87b;};return _0x41c6();}d[_0x3af981(0x109)][_0x3af981(0x116)](w);class C extends a[_0x3af981(0x108)]{[_0x3af981(0x101)](){const _0x1f9396=_0x3af981;var _0x4459ee,_0x59a16f;const _0x252188=this[_0x1f9396(0x106)][_0x1f9396(0x114)](n[_0x1f9396(0x10e)]),_0x34a9f2=(_0x4459ee=this[_0x1f9396(0xfe)]())==null?void 0x0:_0x4459ee[_0x1f9396(0x103)]();if(!_0x34a9f2)throw new Error(_0x1f9396(0x110));const _0xccb601=_0x252188['getLiveShareCoordinatorSync'](_0x34a9f2);return(_0x59a16f=_0xccb601==null?void 0x0:_0xccb601['getStatus']())!=null?_0x59a16f:n[_0x1f9396(0x113)][_0x1f9396(0x10c)];}[_0x3af981(0x11e)](){const _0x640d70=_0x3af981;var _0x406058;const _0x4c1d77=this[_0x640d70(0x106)]['get'](n[_0x640d70(0x10e)]),_0x1a6209=(_0x406058=this[_0x640d70(0xfe)]())==null?void 0x0:_0x406058[_0x640d70(0x103)]();if(!_0x1a6209)throw new Error('No\x20active\x20workbook\x20found.');const _0x2aad93=_0x4c1d77['getLiveShareCoordinatorSync'](_0x1a6209);if(!_0x2aad93)throw new Error(_0x640d70(0x10b));_0x2aad93[_0x640d70(0x11e)]();}['stopFollowing'](){const _0x5d21ca=_0x3af981;var _0xe303e8;const _0x341d37=this[_0x5d21ca(0x106)]['get'](n[_0x5d21ca(0x10e)]),_0x1ede47=(_0xe303e8=this[_0x5d21ca(0xfe)]())==null?void 0x0:_0xe303e8[_0x5d21ca(0x103)]();if(!_0x1ede47)throw new Error(_0x5d21ca(0x110));const _0x4107b6=_0x341d37[_0x5d21ca(0x118)](_0x1ede47);if(!_0x4107b6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4107b6['stopFollowing']();}[_0x3af981(0x112)](){const _0x12425d=_0x3af981;var _0x36e21b;const _0x290ac1=this[_0x12425d(0x106)][_0x12425d(0x114)](n['LiveShareController']),_0x228d23=(_0x36e21b=this['getActiveWorkbook']())==null?void 0x0:_0x36e21b[_0x12425d(0x103)]();if(!_0x228d23)throw new Error(_0x12425d(0x110));const _0x3dad6e=_0x290ac1['getLiveShareCoordinatorSync'](_0x228d23);if(!_0x3dad6e)throw new Error(_0x12425d(0x10b));_0x3dad6e[_0x12425d(0x10d)]();}['stopPresenting'](){const _0x297b24=_0x3af981;var _0x2e67fb;const _0xbe0057=this['_injector'][_0x297b24(0x114)](n[_0x297b24(0x10e)]),_0x429943=(_0x2e67fb=this[_0x297b24(0xfe)]())==null?void 0x0:_0x2e67fb[_0x297b24(0x103)]();if(!_0x429943)throw new Error(_0x297b24(0x110));const _0x1e1cd3=_0xbe0057[_0x297b24(0x118)](_0x429943);if(!_0x1e1cd3)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1e1cd3[_0x297b24(0x11b)]();}}a['FUniver'][_0x3af981(0x116)](C);function _0x36ac(_0x4a1b04,_0x2e168f){const _0x41c6a2=_0x41c6();return _0x36ac=function(_0x36acea,_0x32466){_0x36acea=_0x36acea-0xf7;let _0x2de146=_0x41c6a2[_0x36acea];return _0x2de146;},_0x36ac(_0x4a1b04,_0x2e168f);}class L extends a[_0x3af981(0x107)]{get['LiveShareStatusEnum'](){const _0x755421=_0x3af981;return n[_0x755421(0x113)];}}a[_0x3af981(0x107)][_0x3af981(0x116)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x26865f=_0xe914;(function(_0x3151df,_0x2b354f){const _0x57ae4a=_0xe914,_0x47eb96=_0x3151df();while(!![]){try{const _0x567e4b=parseInt(_0x57ae4a(0x206))/0x1+parseInt(_0x57ae4a(0x1fa))/0x2+-parseInt(_0x57ae4a(0x2c3))/0x3*(parseInt(_0x57ae4a(0x25e))/0x4)+parseInt(_0x57ae4a(0x215))/0x5+-parseInt(_0x57ae4a(0x2b9))/0x6*(parseInt(_0x57ae4a(0x261))/0x7)+-parseInt(_0x57ae4a(0x28d))/0x8+parseInt(_0x57ae4a(0x213))/0x9;if(_0x567e4b===_0x2b354f)break;else _0x47eb96['push'](_0x47eb96['shift']());}catch(_0x3d4784){_0x47eb96['push'](_0x47eb96['shift']());}}}(_0x219c,0x8cf09));var T=Object[_0x26865f(0x26e)],U=(_0x141daa,_0x87b48,_0x4a42b8)=>_0x87b48 in _0x141daa?T(_0x141daa,_0x87b48,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a42b8}):_0x141daa[_0x87b48]=_0x4a42b8,_=(_0x5d0de6,_0x39dd6d,_0x6ec0c0)=>U(_0x5d0de6,typeof _0x39dd6d!='symbol'?_0x39dd6d+'':_0x39dd6d,_0x6ec0c0);Object['defineProperty'](exports,Symbol[_0x26865f(0x210)],{'value':_0x26865f(0x2a1)});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:_0x9e999b,..._0x3639e7}){const _0x2ca7dc=_0x26865f,{icon:_0x4bd0a4,id:_0x575cd1,className:_0x915878,extend:_0x597404,..._0x19e1e6}=_0x3639e7,_0x3386ad=(_0x2ca7dc(0x20d)+_0x575cd1+'\x20'+(_0x915878||''))[_0x2ca7dc(0x26d)](),_0x1aea62=v[_0x2ca7dc(0x231)]('_'+H());return j(_0x4bd0a4,''+_0x575cd1,{'defIds':_0x4bd0a4[_0x2ca7dc(0x255)],'idSuffix':_0x1aea62[_0x2ca7dc(0x246)]},{'ref':_0x9e999b,'className':_0x3386ad,..._0x19e1e6},_0x597404);}function j(_0x25d736,_0xe52003,_0x9070b0,_0x1eaf92,_0x2158d5){const _0x347b5c=_0x26865f;return v[_0x347b5c(0x2a6)](_0x25d736[_0x347b5c(0x2cb)],{'key':_0xe52003,...y(_0x25d736,_0x9070b0,_0x2158d5),..._0x1eaf92},(F(_0x25d736,_0x9070b0)[_0x347b5c(0x21e)]||[])[_0x347b5c(0x256)]((_0x49f73c,_0x1c3eec)=>j(_0x49f73c,_0xe52003+'-'+_0x25d736[_0x347b5c(0x2cb)]+'-'+_0x1c3eec,_0x9070b0,void 0x0,_0x2158d5)));}function y(_0x24c3f8,_0x4aff97,_0x140348){const _0xf86f0d=_0x26865f,_0x209dd6={..._0x24c3f8['attrs']};_0x140348!=null&&_0x140348[_0xf86f0d(0x2b3)]&&_0x209dd6['fill']===_0xf86f0d(0x2b3)&&(_0x209dd6['fill']=_0x140348[_0xf86f0d(0x2b3)]),_0x24c3f8['tag']===_0xf86f0d(0x242)&&_0x209dd6['id']&&(_0x209dd6['id']=_0x209dd6['id']+_0x4aff97['idSuffix']),Object['entries'](_0x209dd6)[_0xf86f0d(0x23e)](([_0x3d1e6b,_0x277202])=>{const _0x13a605=_0xf86f0d;_0x3d1e6b===_0x13a605(0x242)&&typeof _0x277202==_0x13a605(0x278)&&(_0x209dd6[_0x3d1e6b]=_0x277202['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4aff97['idSuffix']+')'));});const {defIds:_0x47db57}=_0x4aff97;return!_0x47db57||_0x47db57[_0xf86f0d(0x201)]===0x0||(_0x24c3f8['tag']===_0xf86f0d(0x262)&&_0x209dd6[_0xf86f0d(0x294)]&&(_0x209dd6[_0xf86f0d(0x294)]=_0x209dd6[_0xf86f0d(0x294)]+_0x4aff97[_0xf86f0d(0x2af)]),Object[_0xf86f0d(0x292)](_0x209dd6)['forEach'](([_0x4c650f,_0x250515])=>{const _0x4fc398=_0xf86f0d;typeof _0x250515=='string'&&(_0x209dd6[_0x4c650f]=_0x250515['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4aff97[_0x4fc398(0x2af)]+')'));})),_0x209dd6;}function F(_0x201b19,_0x1fcc05){const _0x544a1e=_0x26865f;var _0x532cc2;const {defIds:_0x1ae6fa}=_0x1fcc05;return!_0x1ae6fa||_0x1ae6fa[_0x544a1e(0x201)]===0x0?_0x201b19:_0x201b19[_0x544a1e(0x2cb)]==='defs'&&((_0x532cc2=_0x201b19[_0x544a1e(0x21e)])!=null&&_0x532cc2[_0x544a1e(0x201)])?{..._0x201b19,'children':_0x201b19['children']['map'](_0x56117e=>typeof _0x56117e[_0x544a1e(0x1f8)]['id']=='string'&&_0x1ae6fa&&_0x1ae6fa[_0x544a1e(0x299)](_0x56117e[_0x544a1e(0x1f8)]['id'])?{..._0x56117e,'attrs':{..._0x56117e['attrs'],'id':_0x56117e[_0x544a1e(0x1f8)]['id']+_0x1fcc05[_0x544a1e(0x2af)]}}:_0x56117e)}:_0x201b19;}function H(){const _0x1f41e6=_0x26865f;return Math['random']()[_0x1f41e6(0x2b4)](0x24)[_0x1f41e6(0x263)](0x2,0x8);}x[_0x26865f(0x272)]=_0x26865f(0x236);const V={'tag':_0x26865f(0x233),'attrs':{'xmlns':_0x26865f(0x208),'fill':_0x26865f(0x254),'viewBox':_0x26865f(0x243),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x26865f(0x2c6),'d':_0x26865f(0x2b1)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x26865f(0x2ae),'fillRule':_0x26865f(0x24e),'clipRule':_0x26865f(0x24e)}}]},R=v[_0x26865f(0x221)](function(_0xb78bb6,_0x55f270){const _0x44aa33=_0x26865f;return v['createElement'](x,Object[_0x44aa33(0x291)]({},_0xb78bb6,{'id':_0x44aa33(0x28f),'ref':_0x55f270,'icon':V}));});R[_0x26865f(0x272)]=_0x26865f(0x288);class E extends o[_0x26865f(0x248)]{constructor(){const _0x3fb831=_0x26865f;super(...arguments),_(this,_0x3fb831(0x2c0),new Set()),_(this,_0x3fb831(0x269),new Set());}[_0x26865f(0x2be)](_0x1f9243){const _0x179719=_0x26865f;return this['_sharedOperations'][_0x179719(0x28b)](_0x1f9243),o[_0x179719(0x220)](()=>this[_0x179719(0x2c0)][_0x179719(0x2a8)](_0x1f9243));}[_0x26865f(0x20f)](_0x233a0f){const _0x2458cf=_0x26865f;return this[_0x2458cf(0x269)][_0x2458cf(0x28b)](_0x233a0f),o['toDisposable'](()=>this['_reporters']['delete'](_0x233a0f));}[_0x26865f(0x1f7)](_0x23f260){const _0x510799=_0x26865f;return this[_0x510799(0x2c0)][_0x510799(0x20c)](_0x23f260);}[_0x26865f(0x265)](_0x2dd8b2){const _0x58ee88=_0x26865f;return Array[_0x58ee88(0x216)](this[_0x58ee88(0x269)])['map'](_0x455482=>_0x455482(_0x2dd8b2));}}var M=Object[_0x26865f(0x2a0)],P=(_0x224b00,_0x3e4cb6,_0x50f3a8,_0x5cb48c)=>{const _0x2946bb=_0x26865f;for(var _0x549584=_0x5cb48c>0x1?void 0x0:_0x5cb48c?M(_0x3e4cb6,_0x50f3a8):_0x3e4cb6,_0x28ba16=_0x224b00[_0x2946bb(0x201)]-0x1,_0x5e2c8d;_0x28ba16>=0x0;_0x28ba16--)(_0x5e2c8d=_0x224b00[_0x28ba16])&&(_0x549584=_0x5e2c8d(_0x549584)||_0x549584);return _0x549584;},S=(_0x5b8e07,_0xe032d3)=>(_0x392a31,_0x41b73a)=>_0xe032d3(_0x392a31,_0x41b73a,_0x5b8e07);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x14e46a,_0x218bfd,_0x3e82ab){const _0x8628e5=_0x26865f;super(),_(this,'_entities',new Map()),(this[_0x8628e5(0x211)]=_0x14e46a,this[_0x8628e5(0x1f9)]=_0x218bfd,this[_0x8628e5(0x280)]=_0x3e82ab,this[_0x8628e5(0x29e)]());}async[_0x26865f(0x253)](_0xb0ca08){const _0x36f6f5=_0x26865f;return this[_0x36f6f5(0x23a)][_0x36f6f5(0x20c)](_0xb0ca08)||await this[_0x36f6f5(0x277)](_0xb0ca08),this[_0x36f6f5(0x23a)][_0x36f6f5(0x289)](_0xb0ca08);}[_0x26865f(0x20e)](_0x15ed3b){const _0x25e7aa=_0x26865f;var _0x106beb;return(_0x106beb=this['_entities'][_0x25e7aa(0x289)](_0x15ed3b))!=null?_0x106beb:null;}[_0x26865f(0x29e)](){const _0x28ad90=_0x26865f;this[_0x28ad90(0x211)][_0x28ad90(0x2bc)](o['UniverInstanceType'][_0x28ad90(0x230)])[_0x28ad90(0x237)](I['takeUntil'](this[_0x28ad90(0x222)]))[_0x28ad90(0x219)](async _0x1cbe7a=>{const _0x1c4181=_0x28ad90,_0x4b17dc=_0x1cbe7a[_0x1c4181(0x245)]();this[_0x1c4181(0x23a)]['has'](_0x4b17dc)||this[_0x1c4181(0x277)](_0x4b17dc);}),this[_0x28ad90(0x211)]['getTypeOfUnitDisposed$'](o[_0x28ad90(0x27a)][_0x28ad90(0x230)])[_0x28ad90(0x237)](I[_0x28ad90(0x23d)](this[_0x28ad90(0x222)]))[_0x28ad90(0x219)](_0x157fb9=>{const _0x1a8cc9=_0x28ad90,_0x5abaf6=_0x157fb9[_0x1a8cc9(0x245)](),_0x2d636d=this[_0x1a8cc9(0x23a)][_0x1a8cc9(0x289)](_0x5abaf6);_0x2d636d==null||_0x2d636d[_0x1a8cc9(0x29b)]();});}async[_0x26865f(0x277)](_0x4d8c18){const _0x417be5=_0x26865f,_0x757775=await this[_0x417be5(0x280)]['requireSession'](_0x4d8c18),_0x3a57bc=this[_0x417be5(0x1f9)][_0x417be5(0x226)](exports[_0x417be5(0x285)],_0x4d8c18,_0x757775);return _0x3a57bc[_0x417be5(0x1f6)](),this['_entities']['set'](_0x4d8c18,_0x3a57bc),_0x3a57bc;}},exports[_0x26865f(0x29f)]=P([S(0x0,o[_0x26865f(0x225)]),S(0x1,o['Inject'](o[_0x26865f(0x27b)])),S(0x2,o[_0x26865f(0x27e)](b[_0x26865f(0x22a)]))],exports[_0x26865f(0x29f)]);var u=(_0x406071=>(_0x406071[_0x26865f(0x279)]=_0x26865f(0x235),_0x406071['IDLE']=_0x26865f(0x274),_0x406071[_0x26865f(0x23b)]=_0x26865f(0x24d),_0x406071[_0x26865f(0x258)]=_0x26865f(0x234),_0x406071[_0x26865f(0x284)]=_0x26865f(0x22d),_0x406071))(u||{});const k=_0x26865f(0x1fb),q=0xc8;exports[_0x26865f(0x285)]=class extends o['RxDisposable']{constructor(_0x3233e2,_0x54146c,_0x5a5dc0,_0x183810,_0x4abd46){const _0x217551=_0x26865f;super(),_(this,_0x217551(0x205),new O['BehaviorSubject']('idle')),_(this,'status$',this['_status$'][_0x217551(0x268)]()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,_0x217551(0x24f),null),(this['_unitID']=_0x3233e2,this[_0x217551(0x29c)]=_0x54146c,this[_0x217551(0x271)]=_0x5a5dc0,this[_0x217551(0x26b)]=_0x183810,this[_0x217551(0x22b)]=_0x4abd46);}get['_status'](){return this['_status$']['getValue']();}[_0x26865f(0x29b)](){const _0xe66c9c=_0x26865f;var _0x4cf463;(_0x4cf463=this[_0xe66c9c(0x27d)])==null||_0x4cf463[_0xe66c9c(0x29b)](),this[_0xe66c9c(0x205)]['next']('idle'),this[_0xe66c9c(0x205)][_0xe66c9c(0x2c4)]();}[_0x26865f(0x266)](){const _0x255f45=_0x26865f;return this[_0x255f45(0x252)];}['init'](){const _0x50617e=_0x26865f;this[_0x50617e(0x29e)]||(this[_0x50617e(0x29e)]=!0x0,this[_0x50617e(0x29c)][_0x50617e(0x22c)][_0x50617e(0x237)](I['takeUntil'](this[_0x50617e(0x222)]))[_0x50617e(0x219)](_0x5725fb=>{const _0xf86a77=_0x50617e;switch(_0x5725fb){case b[_0xf86a77(0x267)][_0xf86a77(0x279)]:this['_handleOffline']();break;case b[_0xf86a77(0x267)][_0xf86a77(0x251)]:this[_0xf86a77(0x28c)]();break;}}),this[_0x50617e(0x29c)]['event$'][_0x50617e(0x237)](I[_0x50617e(0x23d)](this['dispose$']))[_0x50617e(0x219)](_0x2784eb=>{const _0x22b0e5=_0x50617e,{eventID:_0x335353}=_0x2784eb;switch(_0x335353){case d['CollaborationEvent'][_0x22b0e5(0x200)]:this['_handleNewHost'](_0x2784eb);break;case d['CollaborationEvent'][_0x22b0e5(0x29a)]:this[_0x22b0e5(0x2a3)](_0x2784eb);break;case d[_0x22b0e5(0x1f4)][_0x22b0e5(0x25d)]:this[_0x22b0e5(0x240)]();break;case d[_0x22b0e5(0x1f4)][_0x22b0e5(0x257)]:this[_0x22b0e5(0x275)](_0x2784eb);break;}}));}[_0x26865f(0x2b2)](){const _0x22a1d7=_0x26865f;this[_0x22a1d7(0x29c)][_0x22a1d7(0x2a7)]({'eventID':d['CollaborationEvent'][_0x22a1d7(0x25a)],'data':{'unitID':this[_0x22a1d7(0x223)],'userID':this['_collabSession']['getMemberID']()}},this[_0x22a1d7(0x223)]);}[_0x26865f(0x276)](){const _0x43266a=_0x26865f;this[_0x43266a(0x252)]===_0x43266a(0x22d)&&(this[_0x43266a(0x205)][_0x43266a(0x212)](_0x43266a(0x274)),this[_0x43266a(0x29c)][_0x43266a(0x2a7)]({'eventID':d[_0x43266a(0x1f4)][_0x43266a(0x25d)],'data':{'unitID':this[_0x43266a(0x223)]}},this[_0x43266a(0x223)]));}[_0x26865f(0x281)](){const _0x46a8b3=_0x26865f;this[_0x46a8b3(0x252)]==='not-following'&&(this[_0x46a8b3(0x205)]['next'](_0x46a8b3(0x24d)),this[_0x46a8b3(0x295)]());}[_0x26865f(0x24a)](){const _0x4445d4=_0x26865f;this[_0x4445d4(0x252)]===_0x4445d4(0x24d)&&this[_0x4445d4(0x290)]();}['_handleNewHost'](_0x3d4d52){const _0x50f51c=_0x26865f,{presenter:_0x57b93e}=_0x3d4d52[_0x50f51c(0x1f5)],_0x573a12=this[_0x50f51c(0x29c)][_0x50f51c(0x214)]();this['_presenter']=_0x57b93e,_0x57b93e===_0x573a12?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x50f51c(0x234)&&(this[_0x50f51c(0x2a5)](),this[_0x50f51c(0x295)]());}[_0x26865f(0x2c5)](){const _0x2f377c=_0x26865f,_0x2e2d3c={'eventID':d[_0x2f377c(0x1f4)][_0x2f377c(0x227)]};this[_0x2f377c(0x29c)][_0x2f377c(0x2a7)](_0x2e2d3c,this['_unitID']);}[_0x26865f(0x240)](){const _0xd59b52=_0x26865f;this[_0xd59b52(0x24f)]=null,this[_0xd59b52(0x252)]!=='presenting'&&this[_0xd59b52(0x286)]();}[_0x26865f(0x275)](_0x51cb19){const _0x563600=_0x26865f;if(this[_0x563600(0x252)]===_0x563600(0x24d)&&this['_presenter']===_0x51cb19[_0x563600(0x1f5)][_0x563600(0x24c)]){const _0x1bb70c=d[_0x563600(0x239)](_0x51cb19[_0x563600(0x1f5)])[_0x563600(0x217)][_0x563600(0x204)]()['find'](_0x44d143=>_0x44d143['id']===C[_0x563600(0x224)]['id']);if(_0x1bb70c){const _0x53e468=_0x1bb70c[_0x563600(0x24b)][_0x563600(0x27c)],_0x5e3a21=_0x1bb70c['params'][_0x563600(0x2bf)]['id'];setTimeout(()=>{const _0x17fae8=_0x563600;this['_commandService'][_0x17fae8(0x2ad)](C[_0x17fae8(0x2b6)]['id'],{'unitId':_0x53e468,'subUnitId':_0x5e3a21},{'fromCollab':!0x0});});}}}[_0x26865f(0x22e)](){const _0x92c04b=_0x26865f;this['_status$'][_0x92c04b(0x212)]('presenting');const _0x1d28a2=new Map(),_0x32ad26=this[_0x92c04b(0x27d)]=new o['DisposableCollection']();_0x32ad26[_0x92c04b(0x28b)](o[_0x92c04b(0x220)](()=>{const _0x140886=_0x92c04b;_0x1d28a2['forEach'](_0x39518f=>_0x39518f[_0x140886(0x2c4)]()),_0x1d28a2[_0x140886(0x250)]();})),_0x32ad26[_0x92c04b(0x28b)](this[_0x92c04b(0x22b)][_0x92c04b(0x293)](_0x5edbd0=>{const _0x51b77b=_0x92c04b;var _0x51695d;if(_0x5edbd0['type']!==o[_0x51b77b(0x20a)][_0x51b77b(0x244)]||!this[_0x51b77b(0x26b)]['shouldShareOperation'](_0x5edbd0['id']))return;const {id:_0x4a5707}=_0x5edbd0;let _0x111167;_0x1d28a2[_0x51b77b(0x20c)](_0x4a5707)?_0x111167=_0x1d28a2[_0x51b77b(0x289)](_0x4a5707):(_0x111167=new O[(_0x51b77b(0x2b7))](),_0x1d28a2[_0x51b77b(0x282)](_0x4a5707,_0x111167),_0x111167[_0x51b77b(0x237)](I[_0x51b77b(0x28a)]((_0x51695d=this[_0x51b77b(0x271)][_0x51b77b(0x207)](k))!=null?_0x51695d:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x51b77b(0x219)](_0x276f11=>{const _0x4f04b0=_0x51b77b;this[_0x4f04b0(0x29c)][_0x4f04b0(0x2a7)]({'eventID':d[_0x4f04b0(0x1f4)][_0x4f04b0(0x29a)],'data':{'unitID':this['_unitID'],'operations':{[_0x276f11['id']]:{'id':_0x276f11['id'],'params':JSON[_0x4f04b0(0x2a9)](_0x276f11[_0x4f04b0(0x24b)])}}}},this[_0x4f04b0(0x223)]);})),_0x111167[_0x51b77b(0x212)](_0x5edbd0);})),this[_0x92c04b(0x26b)][_0x92c04b(0x265)](this['_unitID'])['forEach'](_0x3e3214=>this[_0x92c04b(0x29c)][_0x92c04b(0x2a7)]({'eventID':d[_0x92c04b(0x1f4)][_0x92c04b(0x29a)],'data':{'unitID':this['_unitID'],'operations':{[_0x3e3214['id']]:{'id':_0x3e3214['id'],'params':JSON[_0x92c04b(0x2a9)](_0x3e3214[_0x92c04b(0x24b)])}}}},this[_0x92c04b(0x223)]));}[_0x26865f(0x2a5)](){const _0xea10df=_0x26865f;var _0x5e6514;this[_0xea10df(0x205)][_0xea10df(0x212)](_0xea10df(0x274)),(_0x5e6514=this[_0xea10df(0x27d)])==null||_0x5e6514[_0xea10df(0x29b)](),this[_0xea10df(0x27d)]=null;}[_0x26865f(0x295)](){const _0x2a292e=_0x26865f;var _0x2fa8c2;(_0x2fa8c2=this[_0x2a292e(0x27d)])==null||_0x2fa8c2['dispose'](),this[_0x2a292e(0x205)][_0x2a292e(0x212)](_0x2a292e(0x24d));}[_0x26865f(0x286)](){const _0x4cfed9=_0x26865f;var _0x4c9aef;this[_0x4cfed9(0x205)][_0x4cfed9(0x212)](_0x4cfed9(0x274)),(_0x4c9aef=this[_0x4cfed9(0x27d)])==null||_0x4c9aef[_0x4cfed9(0x29b)](),this[_0x4cfed9(0x27d)]=null;}[_0x26865f(0x290)](){const _0x3878f4=_0x26865f;var _0x373836;this['_status$'][_0x3878f4(0x212)](_0x3878f4(0x234)),(_0x373836=this[_0x3878f4(0x27d)])==null||_0x373836[_0x3878f4(0x29b)]();}['_handleOperation'](_0x3e6029){const _0x4b7872=_0x26865f;if([_0x4b7872(0x22d),_0x4b7872(0x234),'offline']['includes'](this[_0x4b7872(0x252)])||!_0x3e6029[_0x4b7872(0x1f5)][_0x4b7872(0x232)]||_0x3e6029[_0x4b7872(0x1f5)]['presenter']===this[_0x4b7872(0x29c)][_0x4b7872(0x214)]())return;this[_0x4b7872(0x252)]===_0x4b7872(0x274)&&this[_0x4b7872(0x295)]();const _0x408dcb=_0x3e6029[_0x4b7872(0x1f5)]['operations'];Object[_0x4b7872(0x229)](_0x408dcb)[_0x4b7872(0x23e)](_0x36f467=>{const _0x4a156b=_0x4b7872;this[_0x4a156b(0x22b)][_0x4a156b(0x2ad)](_0x36f467['id'],_0x36f467[_0x4a156b(0x24b)]?JSON['parse'](_0x36f467[_0x4a156b(0x24b)]):null,{'fromCollab':!0x0});});}[_0x26865f(0x20b)](){const _0x11f217=_0x26865f;var _0x442390;this[_0x11f217(0x205)][_0x11f217(0x212)](_0x11f217(0x235)),(_0x442390=this['_commandDisposable'])==null||_0x442390['dispose']();}[_0x26865f(0x28c)](){const _0x4194c1=_0x26865f;this[_0x4194c1(0x205)][_0x4194c1(0x212)](_0x4194c1(0x274)),this[_0x4194c1(0x2c5)]();}},exports[_0x26865f(0x285)]=P([S(0x2,o[_0x26865f(0x1fe)]),S(0x3,o['Inject'](E)),S(0x4,o[_0x26865f(0x2c1)])],exports['LiveShareCoordinator']);function $(){const _0x4c060e=_0x26865f,_0x7bfd86=p[_0x4c060e(0x247)](exports[_0x4c060e(0x29f)]),_0xdfb4b9=p[_0x4c060e(0x247)](o[_0x4c060e(0x225)]),_0x5e6cac=p[_0x4c060e(0x2a2)](()=>_0xdfb4b9[_0x4c060e(0x21a)](o[_0x4c060e(0x27a)][_0x4c060e(0x230)]),void 0x0,!0x1,[]),[_0x491f97,_0x28fb2b]=v[_0x4c060e(0x23f)](null),[_0x4577db,_0x29fba6]=v[_0x4c060e(0x23f)](u[_0x4c060e(0x218)]),_0x10f3e4=v[_0x4c060e(0x231)](null);return v[_0x4c060e(0x297)](()=>(_0x5e6cac&&_0x7bfd86[_0x4c060e(0x253)](_0x5e6cac[_0x4c060e(0x245)]())[_0x4c060e(0x2ca)](_0x24134e=>{const _0x8f3e79=_0x4c060e;_0x28fb2b(_0x24134e),_0x10f3e4[_0x8f3e79(0x246)]=_0x24134e['status$'][_0x8f3e79(0x219)](_0x32cbe5=>{_0x29fba6(_0x32cbe5);});}),()=>{const _0x58bc23=_0x4c060e;var _0x3e4690;(_0x3e4690=_0x10f3e4[_0x58bc23(0x246)])==null||_0x3e4690[_0x58bc23(0x2b5)](),_0x10f3e4[_0x58bc23(0x246)]=null;}),[_0x5e6cac,_0x7bfd86]),_0x491f97?l[_0x4c060e(0x27f)](f[_0x4c060e(0x2a4)],{'align':_0x4c060e(0x25c),'disabled':_0x4577db===u['OFFLINE'],'className':_0x4c060e(0x26f),'overlay':l[_0x4c060e(0x27f)](W,{'status':_0x4577db,'coordinator':_0x491f97}),'children':l[_0x4c060e(0x27f)]('button',{'className':f[_0x4c060e(0x270)](_0x4c060e(0x2b0),{'univer-cursor-not-allowed':_0x4577db===u[_0x4c060e(0x279)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4577db!==u[_0x4c060e(0x279)]}),'type':_0x4c060e(0x259),'children':l['jsx'](R,{'className':'univer-size-4'})})}):null;}function W(_0x3e32ec){const _0x386da4=_0x26865f,{status:_0x5e0742,coordinator:_0x47d25d}=_0x3e32ec;switch(_0x5e0742){case u[_0x386da4(0x218)]:return l[_0x386da4(0x27f)](G,{'coordinator':_0x47d25d});case u['FOLLOWING']:return l['jsx'](B,{'coordinator':_0x47d25d});case u[_0x386da4(0x258)]:return l[_0x386da4(0x27f)](Y,{'coordinator':_0x47d25d});case u[_0x386da4(0x279)]:return l['jsx'](J,{});case u[_0x386da4(0x284)]:return l[_0x386da4(0x27f)](Z,{'coordinator':_0x47d25d});default:return null;}}function G(_0x32b0e8){const _0x58e7df=_0x26865f,{coordinator:_0x4ae032}=_0x32b0e8;return l[_0x58e7df(0x1ff)](l[_0x58e7df(0x202)],{'children':[l[_0x58e7df(0x27f)](_0x58e7df(0x25f),{'className':_0x58e7df(0x2b8),'children':'Present\x20this\x20document'}),l[_0x58e7df(0x27f)](f[_0x58e7df(0x249)],{'onClick':()=>_0x4ae032[_0x58e7df(0x2b2)](),'children':_0x58e7df(0x283)})]});}function B(_0x526253){const _0x178abf=_0x26865f,{coordinator:_0x47a2ef}=_0x526253;return l['jsxs'](l['Fragment'],{'children':[l['jsx'](_0x178abf(0x25f),{'className':_0x178abf(0x2b8),'children':_0x178abf(0x1fc)}),l[_0x178abf(0x27f)](f[_0x178abf(0x249)],{'onClick':()=>_0x47a2ef[_0x178abf(0x24a)](),'children':_0x178abf(0x296)})]});}function _0x219c(){const _0x5cc0d5=['Plugin','parseProtocolChangeset','_entities','FOLLOWING','LiveShareStatus','takeUntil','forEach','useState','_handleTerminate','LiveShareService','mask','0\x200\x2017\x2017','OPERATION','getUnitId','current','useDependency','Disposable','Button','stopFollowing','params','memberID','following','evenodd','_presenter','clear','ONLINE','_status','getLiveShareCoordinator','none','defIds','map','NEW_CHANGESETS','NOT_FOLLOWING','button','LIVESHARE_REQUEST_HOST','symbol','end','LIVESHARE_TERMINATE','908kyeKpm','div','Stop\x20presenting','101353pbdAdG','use','substring','registerDependencies','getInitialStates','getStatus','SessionStatus','asObservable','_reporters','BuiltInUIPart','_liveShareService','LiveShare','trim','defineProperty','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','clsx','_configService','displayName','mergeOverrideWithDependencies','idle','_handleNewChangeSets','stopPresenting','_startLiveShareCoordinator','string','OFFLINE','UniverInstanceType','Injector','unitId','_commandDisposable','Inject','jsx','_collabSessionService','startFollowing','set','Start','PRESENTING','LiveShareCoordinator','_beIdle','DesktopLiveShareController','LiveShareIcon','get','throttleTime','add','_handleOnline','2665448yjDjXg','You\x27re\x20presenting\x20the\x20document','live-share-icon','_stopFollowing','assign','entries','onCommandExecuted','xlink:href','_startFollowing','Stop\x20following','useEffect','UNIVER_UNKNOWN','includes','LIVESHARE_OPERATION','dispose','_collabSession','UniverCollaborationClientPlugin','_init','LiveShareController','getOwnPropertyDescriptor','Module','useObservable','_handleOperation','Dropdown','_stopPresenting','createElement','send','delete','stringify','UNIVER_LIVE_SHARE_PLUGIN','override','registerComponent','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','idSuffix','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','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','tryStartPresenting','colorChannel1','toString','unsubscribe','SetWorksheetActiveOperation','Subject','univer-mb-3\x20univer-w-full\x20univer-text-sm','300QPyxLo','_mountLiveShare','SetZoomRatioOperation','getTypeOfUnitAdded$','Start\x20following','registerSharedOperation','sheet','_sharedOperations','ICommandService','DependentOn','2778YclobD','complete','_fetchOperations','currentColor','merge','live-share.config','type','then','tag','CollaborationEvent','data','init','shouldShareOperation','attrs','_injector','132010CyOisx','SAME_OPERATION_SHARE_INTERVAL','You\x27re\x20following\x20the\x20presenter','disposeWithMe','IConfigService','jsxs','LIVESHARE_NEW_HOST','length','Fragment','setConfig','reverse','_status$','709363fKBMvM','getConfig','http://www.w3.org/2000/svg','_uiPartsService','CommandType','_handleOffline','has','univerjs-icon\x20univerjs-icon-','getLiveShareCoordinatorSync','registerInitialStateReporter','toStringTag','_univerInstanceService','next','4721445ImabEX','getMemberID','2723245WfkddA','from','mutations','IDLE','subscribe','getCurrentTypeOfUnit$','HEADER_MENU','text','touchDependencies','children','UniverLiveSharePlugin','toDisposable','forwardRef','dispose$','_unitID','InsertSheetMutation','IUniverInstanceService','createInstance','LIVESHARE_FETCH_OPERATIONS','IUIPartsService','values','CollaborationSessionService','_commandService','sessionStatus$','presenting','_startPresenting','default','UNIVER_SHEET','useRef','presenter','svg','not-following','offline','UniverIcon','pipe'];_0x219c=function(){return _0x5cc0d5;};return _0x219c();}function Y(_0xa3a2d3){const _0x112618=_0x26865f,{coordinator:_0x43d8ea}=_0xa3a2d3;return l[_0x112618(0x1ff)](l[_0x112618(0x202)],{'children':[l['jsx'](_0x112618(0x25f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x112618(0x27f)](f['Button'],{'variant':_0x112618(0x21c),'onClick':()=>_0x43d8ea['startFollowing'](),'children':_0x112618(0x2bd)})]});}function Z(_0x4ad347){const _0x27dd07=_0x26865f,{coordinator:_0x40110b}=_0x4ad347;return l['jsxs'](l[_0x27dd07(0x202)],{'children':[l['jsx'](_0x27dd07(0x25f),{'className':_0x27dd07(0x2b8),'children':_0x27dd07(0x28e)}),l[_0x27dd07(0x27f)](f[_0x27dd07(0x249)],{'variant':_0x27dd07(0x22f),'onClick':()=>_0x40110b[_0x27dd07(0x276)](),'children':_0x27dd07(0x260)})]});}function J(){const _0x40ffa9=_0x26865f;return l[_0x40ffa9(0x27f)](l[_0x40ffa9(0x202)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x26865f(0x2a0)],z=(_0x32109a,_0x767fa5,_0x3c2ceb,_0x227524)=>{const _0x39a3f6=_0x26865f;for(var _0x35095b=_0x227524>0x1?void 0x0:_0x227524?K(_0x767fa5,_0x3c2ceb):_0x767fa5,_0x16a775=_0x32109a[_0x39a3f6(0x201)]-0x1,_0x803390;_0x16a775>=0x0;_0x16a775--)(_0x803390=_0x32109a[_0x16a775])&&(_0x35095b=_0x803390(_0x35095b)||_0x35095b);return _0x35095b;},L=(_0xa0c927,_0x2c0831)=>(_0x4a1787,_0x120588)=>_0x2c0831(_0x4a1787,_0x120588,_0xa0c927);exports[_0x26865f(0x287)]=class extends o[_0x26865f(0x248)]{constructor(_0x3830ad,_0x2eba2c){const _0x394539=_0x26865f;super(),this[_0x394539(0x1f9)]=_0x3830ad,this['_uiPartsService']=_0x2eba2c,this[_0x394539(0x2ba)]();}[_0x26865f(0x2ba)](){const _0x384af7=_0x26865f;this[_0x384af7(0x1fd)](this[_0x384af7(0x209)][_0x384af7(0x2ac)](p[_0x384af7(0x26a)][_0x384af7(0x21b)],()=>p['connectInjector']($,this[_0x384af7(0x1f9)])));}},exports[_0x26865f(0x287)]=z([L(0x0,o['Inject'](o[_0x26865f(0x27b)])),L(0x1,p[_0x26865f(0x228)])],exports['DesktopLiveShareController']);function _0xe914(_0x45f99,_0x165200){const _0x219c92=_0x219c();return _0xe914=function(_0xe914a1,_0x3bbf7e){_0xe914a1=_0xe914a1-0x1f4;let _0x4916a2=_0x219c92[_0xe914a1];return _0x4916a2;},_0xe914(_0x45f99,_0x165200);}const Q=_0x26865f(0x2c8),w={};var X=Object[_0x26865f(0x2a0)],ee=(_0x3801bc,_0x3c3cd4,_0x23329e,_0x536f5d)=>{const _0x5f477a=_0x26865f;for(var _0x27e289=_0x536f5d>0x1?void 0x0:_0x536f5d?X(_0x3c3cd4,_0x23329e):_0x3c3cd4,_0x15ad9e=_0x3801bc[_0x5f477a(0x201)]-0x1,_0x4aa1e1;_0x15ad9e>=0x0;_0x15ad9e--)(_0x4aa1e1=_0x3801bc[_0x15ad9e])&&(_0x27e289=_0x4aa1e1(_0x27e289)||_0x27e289);return _0x27e289;},te=(_0x29072c,_0x576c32)=>(_0xc690a3,_0xf5a0aa)=>_0x576c32(_0xc690a3,_0xf5a0aa,_0x29072c);let m=class extends o[_0x26865f(0x248)]{constructor(_0x203679){const _0x4131ec=_0x26865f;super(),this[_0x4131ec(0x26b)]=_0x203679,this[_0x4131ec(0x29e)]();}[_0x26865f(0x29e)](){const _0x341065=_0x26865f;[D[_0x341065(0x2bb)]['id'],D['SetScrollOperation']['id'],C[_0x341065(0x2b6)]['id']][_0x341065(0x23e)](_0x1a8eb8=>{const _0x38cbd2=_0x341065;this[_0x38cbd2(0x1fd)](this[_0x38cbd2(0x26b)]['registerSharedOperation'](_0x1a8eb8));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object['defineProperty'],se=Object[_0x26865f(0x2a0)],ne=(_0x109dcc,_0x446ac0,_0x21e5fc)=>_0x446ac0 in _0x109dcc?ie(_0x109dcc,_0x446ac0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21e5fc}):_0x109dcc[_0x446ac0]=_0x21e5fc,re=(_0x3fe749,_0xe0814c,_0x343f3a,_0x4414ca)=>{const _0x6708e5=_0x26865f;for(var _0x439b0a=_0x4414ca>0x1?void 0x0:_0x4414ca?se(_0xe0814c,_0x343f3a):_0xe0814c,_0x2780a2=_0x3fe749[_0x6708e5(0x201)]-0x1,_0x1e094c;_0x2780a2>=0x0;_0x2780a2--)(_0x1e094c=_0x3fe749[_0x2780a2])&&(_0x439b0a=_0x1e094c(_0x439b0a)||_0x439b0a);return _0x439b0a;},N=(_0x4fcf7d,_0x4e7354)=>(_0x3a5364,_0x307524)=>_0x4e7354(_0x3a5364,_0x307524,_0x4fcf7d),A=(_0x36e6c1,_0x5999e9,_0x1a0c8a)=>ne(_0x36e6c1,typeof _0x5999e9!=_0x26865f(0x25b)?_0x5999e9+'':_0x5999e9,_0x1a0c8a);const oe=_0x26865f(0x2aa);exports[_0x26865f(0x21f)]=class extends o[_0x26865f(0x238)]{constructor(_0x5325be=w,_0x1720fc,_0x33df2d){const _0x50f7d5=_0x26865f;super(),this['_config']=_0x5325be,this[_0x50f7d5(0x1f9)]=_0x1720fc,this[_0x50f7d5(0x271)]=_0x33df2d;const {..._0x51af43}=o[_0x50f7d5(0x2c7)]({},w,this['_config']);this['_configService'][_0x50f7d5(0x203)](Q,_0x51af43);}['onStarting'](){const _0x116108=_0x26865f;o[_0x116108(0x264)](this[_0x116108(0x1f9)],o[_0x116108(0x273)]([[E],[exports[_0x116108(0x29f)]],[m],[exports[_0x116108(0x287)]]],this['_config'][_0x116108(0x2ab)])),o[_0x116108(0x21d)](this[_0x116108(0x1f9)],[[m]]);}['onRendered'](){const _0xcd9efa=_0x26865f;o['touchDependencies'](this[_0xcd9efa(0x1f9)],[[exports[_0xcd9efa(0x287)]]]);}},A(exports[_0x26865f(0x21f)],_0x26865f(0x2c9),o[_0x26865f(0x27a)][_0x26865f(0x298)]),A(exports[_0x26865f(0x21f)],'pluginName',oe),exports[_0x26865f(0x21f)]=re([o[_0x26865f(0x2c2)](b[_0x26865f(0x29d)]),N(0x1,o[_0x26865f(0x27e)](o['Injector'])),N(0x2,o[_0x26865f(0x1fe)])],exports[_0x26865f(0x21f)]),exports[_0x26865f(0x26c)]=$,exports[_0x26865f(0x241)]=E,exports[_0x26865f(0x23c)]=u;
|
|
1
|
+
'use strict';const _0x44c76a=_0x377e;(function(_0x11082c,_0xb465ce){const _0x5723b1=_0x377e,_0x3ed9f2=_0x11082c();while(!![]){try{const _0x295705=-parseInt(_0x5723b1(0x206))/0x1*(-parseInt(_0x5723b1(0x271))/0x2)+parseInt(_0x5723b1(0x225))/0x3*(-parseInt(_0x5723b1(0x25a))/0x4)+-parseInt(_0x5723b1(0x219))/0x5*(-parseInt(_0x5723b1(0x237))/0x6)+-parseInt(_0x5723b1(0x1bc))/0x7*(parseInt(_0x5723b1(0x211))/0x8)+parseInt(_0x5723b1(0x200))/0x9*(-parseInt(_0x5723b1(0x1f6))/0xa)+-parseInt(_0x5723b1(0x247))/0xb+parseInt(_0x5723b1(0x1dd))/0xc;if(_0x295705===_0xb465ce)break;else _0x3ed9f2['push'](_0x3ed9f2['shift']());}catch(_0x258b51){_0x3ed9f2['push'](_0x3ed9f2['shift']());}}}(_0x3fff,0xcd1a5));var T=Object[_0x44c76a(0x1d7)],U=(_0x39edab,_0x2ff17e,_0x3e4506)=>_0x2ff17e in _0x39edab?T(_0x39edab,_0x2ff17e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e4506}):_0x39edab[_0x2ff17e]=_0x3e4506,_=(_0x5030ab,_0x548359,_0x3ffb29)=>U(_0x5030ab,typeof _0x548359!='symbol'?_0x548359+'':_0x548359,_0x3ffb29);function _0x377e(_0x432048,_0x401416){const _0x3fffe1=_0x3fff();return _0x377e=function(_0x377e11,_0xb20b19){_0x377e11=_0x377e11-0x1a1;let _0x57162d=_0x3fffe1[_0x377e11];return _0x57162d;},_0x377e(_0x432048,_0x401416);}Object['defineProperty'](exports,Symbol[_0x44c76a(0x1f9)],{'value':_0x44c76a(0x26f)});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:_0x48f1f4,..._0x297a52}){const _0x19608a=_0x44c76a,{icon:_0x4b68f8,id:_0x4cb8f8,className:_0x42e8c0,extend:_0x5e0efc,..._0x20b97e}=_0x297a52,_0xaca0d2=(_0x19608a(0x1d1)+_0x4cb8f8+'\x20'+(_0x42e8c0||''))[_0x19608a(0x1f4)](),_0x2c0ff8=v[_0x19608a(0x23d)]('_'+H());return j(_0x4b68f8,''+_0x4cb8f8,{'defIds':_0x4b68f8[_0x19608a(0x25f)],'idSuffix':_0x2c0ff8[_0x19608a(0x240)]},{'ref':_0x48f1f4,'className':_0xaca0d2,..._0x20b97e},_0x5e0efc);}function j(_0x47bdd4,_0x5be2ae,_0x6d8ca,_0x3852eb,_0x19d006){const _0x12fa43=_0x44c76a;return v[_0x12fa43(0x256)](_0x47bdd4[_0x12fa43(0x1e4)],{'key':_0x5be2ae,...y(_0x47bdd4,_0x6d8ca,_0x19d006),..._0x3852eb},(F(_0x47bdd4,_0x6d8ca)[_0x12fa43(0x1ae)]||[])[_0x12fa43(0x244)]((_0x1250ef,_0x2cccde)=>j(_0x1250ef,_0x5be2ae+'-'+_0x47bdd4[_0x12fa43(0x1e4)]+'-'+_0x2cccde,_0x6d8ca,void 0x0,_0x19d006)));}function y(_0xb66a80,_0x4c325c,_0x6a3c57){const _0x5e2208=_0x44c76a,_0x42102b={..._0xb66a80[_0x5e2208(0x208)]};_0x6a3c57!=null&&_0x6a3c57[_0x5e2208(0x26c)]&&_0x42102b[_0x5e2208(0x1b8)]==='colorChannel1'&&(_0x42102b[_0x5e2208(0x1b8)]=_0x6a3c57[_0x5e2208(0x26c)]),_0xb66a80[_0x5e2208(0x1e4)]===_0x5e2208(0x1eb)&&_0x42102b['id']&&(_0x42102b['id']=_0x42102b['id']+_0x4c325c[_0x5e2208(0x1d2)]),Object[_0x5e2208(0x25b)](_0x42102b)[_0x5e2208(0x231)](([_0x49d6c6,_0x4a8fa9])=>{const _0x4817df=_0x5e2208;_0x49d6c6==='mask'&&typeof _0x4a8fa9=='string'&&(_0x42102b[_0x49d6c6]=_0x4a8fa9[_0x4817df(0x1f5)](/url\(#(.*)\)/,_0x4817df(0x24e)+_0x4c325c[_0x4817df(0x1d2)]+')'));});const {defIds:_0x51f725}=_0x4c325c;return!_0x51f725||_0x51f725['length']===0x0||(_0xb66a80['tag']===_0x5e2208(0x1cd)&&_0x42102b['xlink:href']&&(_0x42102b['xlink:href']=_0x42102b['xlink:href']+_0x4c325c[_0x5e2208(0x1d2)]),Object[_0x5e2208(0x25b)](_0x42102b)[_0x5e2208(0x231)](([_0x5d2e1c,_0x26dcb4])=>{const _0x1bf6a6=_0x5e2208;typeof _0x26dcb4==_0x1bf6a6(0x1c3)&&(_0x42102b[_0x5d2e1c]=_0x26dcb4[_0x1bf6a6(0x1f5)](/url\(#(.*)\)/,_0x1bf6a6(0x24e)+_0x4c325c[_0x1bf6a6(0x1d2)]+')'));})),_0x42102b;}function F(_0x17a86b,_0x30ced8){const _0x13bc5c=_0x44c76a;var _0x135de0;const {defIds:_0x5552af}=_0x30ced8;return!_0x5552af||_0x5552af[_0x13bc5c(0x279)]===0x0?_0x17a86b:_0x17a86b['tag']===_0x13bc5c(0x234)&&((_0x135de0=_0x17a86b[_0x13bc5c(0x1ae)])!=null&&_0x135de0['length'])?{..._0x17a86b,'children':_0x17a86b[_0x13bc5c(0x1ae)][_0x13bc5c(0x244)](_0x4e3043=>typeof _0x4e3043['attrs']['id']==_0x13bc5c(0x1c3)&&_0x5552af&&_0x5552af['includes'](_0x4e3043['attrs']['id'])?{..._0x4e3043,'attrs':{..._0x4e3043[_0x13bc5c(0x208)],'id':_0x4e3043[_0x13bc5c(0x208)]['id']+_0x30ced8[_0x13bc5c(0x1d2)]}}:_0x4e3043)}:_0x17a86b;}function H(){const _0x1bbfc2=_0x44c76a;return Math[_0x1bbfc2(0x222)]()['toString'](0x24)[_0x1bbfc2(0x24d)](0x2,0x8);}x['displayName']=_0x44c76a(0x1f0);const V={'tag':_0x44c76a(0x270),'attrs':{'xmlns':_0x44c76a(0x229),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x44c76a(0x232),'height':_0x44c76a(0x232)},'children':[{'tag':_0x44c76a(0x1a6),'attrs':{'fill':_0x44c76a(0x22d),'d':_0x44c76a(0x236)}},{'tag':_0x44c76a(0x1a6),'attrs':{'fill':_0x44c76a(0x22d),'d':_0x44c76a(0x1d8),'fillRule':'evenodd','clipRule':_0x44c76a(0x1a8)}}]},R=v['forwardRef'](function(_0x553b9d,_0x225510){const _0x42a5e9=_0x44c76a;return v[_0x42a5e9(0x256)](x,Object[_0x42a5e9(0x216)]({},_0x553b9d,{'id':_0x42a5e9(0x21f),'ref':_0x225510,'icon':V}));});R[_0x44c76a(0x1a2)]=_0x44c76a(0x227);class E extends o[_0x44c76a(0x1ea)]{constructor(){const _0x2b8249=_0x44c76a;super(...arguments),_(this,_0x2b8249(0x27d),new Set()),_(this,'_reporters',new Set());}[_0x44c76a(0x1cc)](_0x4e10a8){const _0x33c74e=_0x44c76a;return this['_sharedOperations'][_0x33c74e(0x276)](_0x4e10a8),o['toDisposable'](()=>this['_sharedOperations']['delete'](_0x4e10a8));}[_0x44c76a(0x1c2)](_0x126142){const _0x4cb822=_0x44c76a;return this[_0x4cb822(0x205)]['add'](_0x126142),o['toDisposable'](()=>this[_0x4cb822(0x205)][_0x4cb822(0x1ce)](_0x126142));}[_0x44c76a(0x20a)](_0x3897a9){const _0x57f390=_0x44c76a;return this[_0x57f390(0x27d)][_0x57f390(0x1e0)](_0x3897a9);}[_0x44c76a(0x1b6)](_0xe12633){const _0x4f374d=_0x44c76a;return Array[_0x4f374d(0x21e)](this['_reporters'])[_0x4f374d(0x244)](_0x44e674=>_0x44e674(_0xe12633));}}var M=Object[_0x44c76a(0x22c)],P=(_0x21fd5d,_0x2f9d95,_0x4ba791,_0x47d5e6)=>{for(var _0x35ee67=_0x47d5e6>0x1?void 0x0:_0x47d5e6?M(_0x2f9d95,_0x4ba791):_0x2f9d95,_0xc3b0f0=_0x21fd5d['length']-0x1,_0x47b0e4;_0xc3b0f0>=0x0;_0xc3b0f0--)(_0x47b0e4=_0x21fd5d[_0xc3b0f0])&&(_0x35ee67=_0x47b0e4(_0x35ee67)||_0x35ee67);return _0x35ee67;},S=(_0x563601,_0x5c1937)=>(_0x56741a,_0x55989e)=>_0x5c1937(_0x56741a,_0x55989e,_0x563601);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x47486d,_0x374af4,_0x40a76f){const _0x583376=_0x44c76a;super(),_(this,_0x583376(0x1e7),new Map()),(this[_0x583376(0x233)]=_0x47486d,this[_0x583376(0x261)]=_0x374af4,this[_0x583376(0x1d3)]=_0x40a76f,this[_0x583376(0x1ee)]());}async[_0x44c76a(0x22e)](_0x541d8b){const _0xe8a0b=_0x44c76a;return this[_0xe8a0b(0x1e7)][_0xe8a0b(0x1e0)](_0x541d8b)||await this[_0xe8a0b(0x220)](_0x541d8b),this[_0xe8a0b(0x1e7)][_0xe8a0b(0x1b7)](_0x541d8b);}[_0x44c76a(0x226)](_0x5ec61f){const _0x2cbf1c=_0x44c76a;var _0x4a78a4;return(_0x4a78a4=this[_0x2cbf1c(0x1e7)][_0x2cbf1c(0x1b7)](_0x5ec61f))!=null?_0x4a78a4:null;}[_0x44c76a(0x1ee)](){const _0x1b0271=_0x44c76a;this[_0x1b0271(0x233)][_0x1b0271(0x258)](o[_0x1b0271(0x267)]['UNIVER_SHEET'])['pipe'](I[_0x1b0271(0x1c4)](this[_0x1b0271(0x1be)]))['subscribe'](async _0x50fbfb=>{const _0x559f8e=_0x1b0271,_0x3507d3=_0x50fbfb['getUnitId']();this[_0x559f8e(0x1e7)]['has'](_0x3507d3)||this[_0x559f8e(0x220)](_0x3507d3);}),this[_0x1b0271(0x233)][_0x1b0271(0x245)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x1b0271(0x262)](I[_0x1b0271(0x1c4)](this[_0x1b0271(0x1be)]))[_0x1b0271(0x27c)](_0x4165c9=>{const _0x1eecbf=_0x1b0271,_0x878224=_0x4165c9[_0x1eecbf(0x24c)](),_0x3a817d=this[_0x1eecbf(0x1e7)]['get'](_0x878224);_0x3a817d==null||_0x3a817d[_0x1eecbf(0x1ad)]();});}async['_startLiveShareCoordinator'](_0x174b39){const _0x1d7342=_0x44c76a,_0x2cb3c6=await this['_collabSessionService'][_0x1d7342(0x1b5)](_0x174b39),_0x5d1c6c=this['_injector'][_0x1d7342(0x210)](exports['LiveShareCoordinator'],_0x174b39,_0x2cb3c6);return _0x5d1c6c[_0x1d7342(0x1da)](),this['_entities'][_0x1d7342(0x1c9)](_0x174b39,_0x5d1c6c),_0x5d1c6c;}},exports[_0x44c76a(0x1b4)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x44c76a(0x1bf)](o[_0x44c76a(0x230)])),S(0x2,o[_0x44c76a(0x1bf)](b[_0x44c76a(0x1fa)]))],exports['LiveShareController']);var u=(_0x12ef8b=>(_0x12ef8b[_0x44c76a(0x257)]=_0x44c76a(0x265),_0x12ef8b[_0x44c76a(0x1de)]='idle',_0x12ef8b['FOLLOWING']=_0x44c76a(0x239),_0x12ef8b[_0x44c76a(0x25d)]=_0x44c76a(0x1c7),_0x12ef8b[_0x44c76a(0x224)]=_0x44c76a(0x1ec),_0x12ef8b))(u||{});const k=_0x44c76a(0x26b),q=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x2d69bf,_0x24449a,_0x2479c4,_0x5b6816,_0x38d49c){const _0x45564a=_0x44c76a;super(),_(this,_0x45564a(0x1e5),new O[(_0x45564a(0x243))](_0x45564a(0x254))),_(this,_0x45564a(0x1a7),this['_status$']['asObservable']()),_(this,_0x45564a(0x1ee),!0x1),_(this,'_commandDisposable',null),_(this,_0x45564a(0x253),null),(this[_0x45564a(0x1d4)]=_0x2d69bf,this['_collabSession']=_0x24449a,this[_0x45564a(0x1dc)]=_0x2479c4,this['_liveShareService']=_0x5b6816,this[_0x45564a(0x23e)]=_0x38d49c);}get[_0x44c76a(0x248)](){const _0x332377=_0x44c76a;return this[_0x332377(0x1e5)][_0x332377(0x1a9)]();}[_0x44c76a(0x1ad)](){const _0x36f952=_0x44c76a;var _0x1d5a0e;(_0x1d5a0e=this[_0x36f952(0x221)])==null||_0x1d5a0e[_0x36f952(0x1ad)](),this['_status$'][_0x36f952(0x23b)](_0x36f952(0x254)),this[_0x36f952(0x1e5)]['complete']();}[_0x44c76a(0x215)](){const _0x40044b=_0x44c76a;return this[_0x40044b(0x248)];}[_0x44c76a(0x1da)](){const _0x449c1e=_0x44c76a;this[_0x449c1e(0x1ee)]||(this[_0x449c1e(0x1ee)]=!0x0,this[_0x449c1e(0x1e9)][_0x449c1e(0x1f7)]['pipe'](I[_0x449c1e(0x1c4)](this['dispose$']))[_0x449c1e(0x27c)](_0x238902=>{const _0x706cff=_0x449c1e;switch(_0x238902){case b[_0x706cff(0x203)][_0x706cff(0x257)]:this[_0x706cff(0x1d5)]();break;case b[_0x706cff(0x203)][_0x706cff(0x25e)]:this[_0x706cff(0x264)]();break;}}),this[_0x449c1e(0x1e9)][_0x449c1e(0x281)][_0x449c1e(0x262)](I[_0x449c1e(0x1c4)](this[_0x449c1e(0x1be)]))[_0x449c1e(0x27c)](_0x104660=>{const _0x11e06c=_0x449c1e,{eventID:_0x4eb876}=_0x104660;switch(_0x4eb876){case d[_0x11e06c(0x213)][_0x11e06c(0x27b)]:this['_handleNewHost'](_0x104660);break;case d[_0x11e06c(0x213)][_0x11e06c(0x242)]:this[_0x11e06c(0x21c)](_0x104660);break;case d[_0x11e06c(0x213)][_0x11e06c(0x20b)]:this[_0x11e06c(0x26a)]();break;case d[_0x11e06c(0x213)][_0x11e06c(0x1d9)]:this[_0x11e06c(0x263)](_0x104660);break;}}));}[_0x44c76a(0x272)](){const _0x5aa812=_0x44c76a;this['_collabSession']['send']({'eventID':d[_0x5aa812(0x213)][_0x5aa812(0x1b2)],'data':{'unitID':this[_0x5aa812(0x1d4)],'userID':this['_collabSession'][_0x5aa812(0x214)]()}},this[_0x5aa812(0x1d4)]);}['stopPresenting'](){const _0x38ba33=_0x44c76a;this['_status']===_0x38ba33(0x1ec)&&(this[_0x38ba33(0x1e5)][_0x38ba33(0x23b)](_0x38ba33(0x254)),this[_0x38ba33(0x1e9)]['send']({'eventID':d[_0x38ba33(0x213)][_0x38ba33(0x20b)],'data':{'unitID':this[_0x38ba33(0x1d4)]}},this['_unitID']));}['startFollowing'](){const _0x43dd7d=_0x44c76a;this[_0x43dd7d(0x248)]===_0x43dd7d(0x1c7)&&(this[_0x43dd7d(0x1e5)][_0x43dd7d(0x23b)]('following'),this[_0x43dd7d(0x1db)]());}[_0x44c76a(0x20f)](){const _0x56e2e4=_0x44c76a;this['_status']==='following'&&this[_0x56e2e4(0x1c1)]();}[_0x44c76a(0x269)](_0x12437d){const _0x3de644=_0x44c76a,{presenter:_0x2ccf7e}=_0x12437d['data'],_0xffa653=this[_0x3de644(0x1e9)][_0x3de644(0x214)]();this[_0x3de644(0x253)]=_0x2ccf7e,_0x2ccf7e===_0xffa653?(this[_0x3de644(0x1c1)](),this[_0x3de644(0x1c0)]()):this[_0x3de644(0x248)]!==_0x3de644(0x1c7)&&(this[_0x3de644(0x235)](),this[_0x3de644(0x1db)]());}[_0x44c76a(0x259)](){const _0x4f00be=_0x44c76a,_0x5d8e2a={'eventID':d['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x4f00be(0x1e9)][_0x4f00be(0x21a)](_0x5d8e2a,this['_unitID']);}[_0x44c76a(0x26a)](){this['_presenter']=null,this['_status']!=='presenting'&&this['_beIdle']();}[_0x44c76a(0x263)](_0x4966fd){const _0x2d9263=_0x44c76a;if(this[_0x2d9263(0x248)]==='following'&&this['_presenter']===_0x4966fd['data'][_0x2d9263(0x25c)]){const _0x270b17=d[_0x2d9263(0x241)](_0x4966fd[_0x2d9263(0x260)])[_0x2d9263(0x251)][_0x2d9263(0x1a3)]()[_0x2d9263(0x1b0)](_0x25a213=>_0x25a213['id']===C['InsertSheetMutation']['id']);if(_0x270b17){const _0x5364be=_0x270b17[_0x2d9263(0x1cb)][_0x2d9263(0x278)],_0x3e67f4=_0x270b17[_0x2d9263(0x1cb)][_0x2d9263(0x1fb)]['id'];setTimeout(()=>{const _0x2fbabf=_0x2d9263;this[_0x2fbabf(0x23e)]['executeCommand'](C[_0x2fbabf(0x23a)]['id'],{'unitId':_0x5364be,'subUnitId':_0x3e67f4},{'fromCollab':!0x0});});}}}[_0x44c76a(0x1c0)](){const _0x155f18=_0x44c76a;this[_0x155f18(0x1e5)][_0x155f18(0x23b)]('presenting');const _0xd28ec=new Map(),_0x5d6a79=this[_0x155f18(0x221)]=new o[(_0x155f18(0x1df))]();_0x5d6a79['add'](o[_0x155f18(0x252)](()=>{const _0x28ae13=_0x155f18;_0xd28ec[_0x28ae13(0x231)](_0x141754=>_0x141754['complete']()),_0xd28ec['clear']();})),_0x5d6a79['add'](this[_0x155f18(0x23e)][_0x155f18(0x20c)](_0x187612=>{const _0x145e31=_0x155f18;var _0x85bdc8;if(_0x187612['type']!==o[_0x145e31(0x1a5)][_0x145e31(0x23c)]||!this['_liveShareService'][_0x145e31(0x20a)](_0x187612['id']))return;const {id:_0x389fe3}=_0x187612;let _0x4bc0ee;_0xd28ec[_0x145e31(0x1e0)](_0x389fe3)?_0x4bc0ee=_0xd28ec[_0x145e31(0x1b7)](_0x389fe3):(_0x4bc0ee=new O[(_0x145e31(0x274))](),_0xd28ec[_0x145e31(0x1c9)](_0x389fe3,_0x4bc0ee),_0x4bc0ee[_0x145e31(0x262)](I[_0x145e31(0x1cf)]((_0x85bdc8=this[_0x145e31(0x1dc)][_0x145e31(0x1b3)](k))!=null?_0x85bdc8:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x145e31(0x27c)](_0x2049e2=>{const _0x4d6733=_0x145e31;this[_0x4d6733(0x1e9)]['send']({'eventID':d['CollaborationEvent'][_0x4d6733(0x242)],'data':{'unitID':this[_0x4d6733(0x1d4)],'operations':{[_0x2049e2['id']]:{'id':_0x2049e2['id'],'params':JSON['stringify'](_0x2049e2['params'])}}}},this[_0x4d6733(0x1d4)]);})),_0x4bc0ee[_0x145e31(0x23b)](_0x187612);})),this[_0x155f18(0x24a)][_0x155f18(0x1b6)](this[_0x155f18(0x1d4)])[_0x155f18(0x231)](_0x16e7cc=>this[_0x155f18(0x1e9)][_0x155f18(0x21a)]({'eventID':d['CollaborationEvent'][_0x155f18(0x242)],'data':{'unitID':this[_0x155f18(0x1d4)],'operations':{[_0x16e7cc['id']]:{'id':_0x16e7cc['id'],'params':JSON[_0x155f18(0x1e1)](_0x16e7cc[_0x155f18(0x1cb)])}}}},this[_0x155f18(0x1d4)]));}[_0x44c76a(0x235)](){const _0x5ec2d0=_0x44c76a;var _0x309539;this['_status$'][_0x5ec2d0(0x23b)](_0x5ec2d0(0x254)),(_0x309539=this[_0x5ec2d0(0x221)])==null||_0x309539[_0x5ec2d0(0x1ad)](),this[_0x5ec2d0(0x221)]=null;}['_startFollowing'](){const _0x3bc975=_0x44c76a;var _0x97d1de;(_0x97d1de=this[_0x3bc975(0x221)])==null||_0x97d1de[_0x3bc975(0x1ad)](),this[_0x3bc975(0x1e5)]['next'](_0x3bc975(0x239));}[_0x44c76a(0x266)](){const _0x4ae35e=_0x44c76a;var _0x1988f6;this['_status$'][_0x4ae35e(0x23b)](_0x4ae35e(0x254)),(_0x1988f6=this[_0x4ae35e(0x221)])==null||_0x1988f6[_0x4ae35e(0x1ad)](),this['_commandDisposable']=null;}[_0x44c76a(0x1c1)](){const _0x3cbcab=_0x44c76a;var _0x2f4ac9;this['_status$'][_0x3cbcab(0x23b)](_0x3cbcab(0x1c7)),(_0x2f4ac9=this[_0x3cbcab(0x221)])==null||_0x2f4ac9[_0x3cbcab(0x1ad)]();}[_0x44c76a(0x21c)](_0x42b6c7){const _0x43628c=_0x44c76a;if([_0x43628c(0x1ec),'not-following',_0x43628c(0x265)][_0x43628c(0x249)](this[_0x43628c(0x248)])||!_0x42b6c7['data'][_0x43628c(0x228)]||_0x42b6c7[_0x43628c(0x260)][_0x43628c(0x228)]===this['_collabSession'][_0x43628c(0x214)]())return;this['_status']===_0x43628c(0x254)&&this[_0x43628c(0x1db)]();const _0x2699c0=_0x42b6c7[_0x43628c(0x260)]['operations'];Object['values'](_0x2699c0)[_0x43628c(0x231)](_0x21ec93=>{const _0x5fcded=_0x43628c;this['_commandService'][_0x5fcded(0x238)](_0x21ec93['id'],_0x21ec93[_0x5fcded(0x1cb)]?JSON[_0x5fcded(0x1bb)](_0x21ec93[_0x5fcded(0x1cb)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x211dd9=_0x44c76a;var _0x265704;this['_status$']['next']('offline'),(_0x265704=this[_0x211dd9(0x221)])==null||_0x265704['dispose']();}['_handleOnline'](){const _0x1e3878=_0x44c76a;this[_0x1e3878(0x1e5)][_0x1e3878(0x23b)](_0x1e3878(0x254)),this[_0x1e3878(0x259)]();}},exports[_0x44c76a(0x1a1)]=P([S(0x2,o[_0x44c76a(0x1ba)]),S(0x3,o[_0x44c76a(0x1bf)](E)),S(0x4,o[_0x44c76a(0x1a4)])],exports['LiveShareCoordinator']);function $(){const _0x3046f4=_0x44c76a,_0x1bdac0=p[_0x3046f4(0x20d)](exports[_0x3046f4(0x1b4)]),_0x3b60cd=p[_0x3046f4(0x20d)](o[_0x3046f4(0x1e2)]),_0x5db833=p[_0x3046f4(0x22b)](()=>_0x3b60cd[_0x3046f4(0x1f3)](o[_0x3046f4(0x267)][_0x3046f4(0x209)]),void 0x0,!0x1,[]),[_0x5b532c,_0x142783]=v[_0x3046f4(0x273)](null),[_0x32cf1e,_0x4c2a59]=v[_0x3046f4(0x273)](u[_0x3046f4(0x1de)]),_0x88e350=v['useRef'](null);return v[_0x3046f4(0x1b1)](()=>(_0x5db833&&_0x1bdac0[_0x3046f4(0x22e)](_0x5db833[_0x3046f4(0x24c)]())[_0x3046f4(0x277)](_0x3c8bea=>{const _0x3b9024=_0x3046f4;_0x142783(_0x3c8bea),_0x88e350['current']=_0x3c8bea['status$'][_0x3b9024(0x27c)](_0x31350c=>{_0x4c2a59(_0x31350c);});}),()=>{const _0x549ea5=_0x3046f4;var _0x5c4a67;(_0x5c4a67=_0x88e350[_0x549ea5(0x240)])==null||_0x5c4a67[_0x549ea5(0x27a)](),_0x88e350[_0x549ea5(0x240)]=null;}),[_0x5db833,_0x1bdac0]),_0x5b532c?l[_0x3046f4(0x1ac)](f['Dropdown'],{'align':_0x3046f4(0x27f),'disabled':_0x32cf1e===u[_0x3046f4(0x257)],'className':_0x3046f4(0x1aa),'overlay':l['jsx'](W,{'status':_0x32cf1e,'coordinator':_0x5b532c}),'children':l[_0x3046f4(0x1ac)](_0x3046f4(0x1e8),{'className':f[_0x3046f4(0x202)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x32cf1e===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x32cf1e!==u[_0x3046f4(0x257)]}),'type':'button','children':l[_0x3046f4(0x1ac)](R,{'className':_0x3046f4(0x1c6)})})}):null;}function W(_0x43c6b4){const _0x243cd4=_0x44c76a,{status:_0x591e66,coordinator:_0x349d96}=_0x43c6b4;switch(_0x591e66){case u[_0x243cd4(0x1de)]:return l['jsx'](G,{'coordinator':_0x349d96});case u[_0x243cd4(0x1d6)]:return l['jsx'](B,{'coordinator':_0x349d96});case u[_0x243cd4(0x25d)]:return l[_0x243cd4(0x1ac)](Y,{'coordinator':_0x349d96});case u['OFFLINE']:return l['jsx'](J,{});case u['PRESENTING']:return l[_0x243cd4(0x1ac)](Z,{'coordinator':_0x349d96});default:return null;}}function G(_0x59554d){const _0x1e67f1=_0x44c76a,{coordinator:_0x2882b0}=_0x59554d;return l[_0x1e67f1(0x1e6)](l[_0x1e67f1(0x246)],{'children':[l[_0x1e67f1(0x1ac)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1e67f1(0x22f)}),l[_0x1e67f1(0x1ac)](f[_0x1e67f1(0x201)],{'onClick':()=>_0x2882b0[_0x1e67f1(0x272)](),'children':_0x1e67f1(0x1ab)})]});}function B(_0x30db79){const _0x4d1a5e=_0x44c76a,{coordinator:_0x3b4d5e}=_0x30db79;return l[_0x4d1a5e(0x1e6)](l[_0x4d1a5e(0x246)],{'children':[l[_0x4d1a5e(0x1ac)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4d1a5e(0x1ed)}),l[_0x4d1a5e(0x1ac)](f[_0x4d1a5e(0x201)],{'onClick':()=>_0x3b4d5e['stopFollowing'](),'children':_0x4d1a5e(0x23f)})]});}function _0x3fff(){const _0x3374d7=['entries','memberID','NOT_FOLLOWING','ONLINE','defIds','data','_injector','pipe','_handleNewChangeSets','_handleOnline','offline','_beIdle','UniverInstanceType','Stop\x20presenting','_handleNewHost','_handleTerminate','SAME_OPERATION_SHARE_INTERVAL','colorChannel1','DesktopLiveShareController','LiveShareService','Module','svg','2bJCbpy','tryStartPresenting','useState','Subject','registerDependencies','add','then','unitId','length','unsubscribe','LIVESHARE_NEW_HOST','subscribe','_sharedOperations','live-share.config','end','You\x27are\x20offline.','event$','LiveShareCoordinator','displayName','reverse','ICommandService','CommandType','path','status$','evenodd','getValue','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','Start','jsx','dispose','children','stopPresenting','find','useEffect','LIVESHARE_REQUEST_HOST','getConfig','LiveShareController','requireSession','getInitialStates','get','fill','HEADER_MENU','IConfigService','parse','7hYWEju','mergeOverrideWithDependencies','dispose$','Inject','_startPresenting','_stopFollowing','registerInitialStateReporter','string','takeUntil','DependentOn','univer-size-4','not-following','touchDependencies','set','UniverLiveSharePlugin','params','registerSharedOperation','use','delete','throttleTime','BuiltInUIPart','univerjs-icon\x20univerjs-icon-','idSuffix','_collabSessionService','_unitID','_handleOffline','FOLLOWING','defineProperty','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','NEW_CHANGESETS','init','_startFollowing','_configService','11978568GcuRfv','IDLE','DisposableCollection','has','stringify','IUniverInstanceService','type','tag','_status$','jsxs','_entities','button','_collabSession','Disposable','mask','presenting','You\x27re\x20following\x20the\x20presenter','_init','merge','UniverIcon','LiveShareStatus','startFollowing','getCurrentTypeOfUnit$','trim','replace','1400jRSXCM','sessionStatus$','Start\x20following','toStringTag','CollaborationSessionService','sheet','text','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShare','_mountLiveShare','45wkZgNF','Button','clsx','SessionStatus','UNIVER_UNKNOWN','_reporters','1059263lRrufB','connectInjector','attrs','UNIVER_SHEET','shouldShareOperation','LIVESHARE_TERMINATE','onCommandExecuted','useDependency','registerComponent','stopFollowing','createInstance','2882144JvEFrc','default','CollaborationEvent','getMemberID','getStatus','assign','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20presenting\x20the\x20document','125iTvlLS','send','div','_handleOperation','disposeWithMe','from','live-share-icon','_startLiveShareCoordinator','_commandDisposable','random','IUIPartsService','PRESENTING','8031uuiwNp','getLiveShareCoordinatorSync','LiveShareIcon','presenter','http://www.w3.org/2000/svg','onRendered','useObservable','getOwnPropertyDescriptor','currentColor','getLiveShareCoordinator','Present\x20this\x20document','Injector','forEach','1em','_univerInstanceService','defs','_stopPresenting','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','221574cbOSvS','executeCommand','following','SetWorksheetActiveOperation','next','OPERATION','useRef','_commandService','Stop\x20following','current','parseProtocolChangeset','LIVESHARE_OPERATION','BehaviorSubject','map','getTypeOfUnitDisposed$','Fragment','5235274gJAwss','_status','includes','_liveShareService','Plugin','getUnitId','substring','url(#$1','SetZoomRatioOperation','_uiPartsService','mutations','toDisposable','_presenter','idle','_config','createElement','OFFLINE','getTypeOfUnitAdded$','_fetchOperations','1948vhxJPc'];_0x3fff=function(){return _0x3374d7;};return _0x3fff();}function Y(_0x1998ce){const _0x25d2ce=_0x44c76a,{coordinator:_0x559ea8}=_0x1998ce;return l['jsxs'](l[_0x25d2ce(0x246)],{'children':[l[_0x25d2ce(0x1ac)]('div',{'className':_0x25d2ce(0x1fd),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x25d2ce(0x1ac)](f['Button'],{'variant':_0x25d2ce(0x1fc),'onClick':()=>_0x559ea8[_0x25d2ce(0x1f2)](),'children':_0x25d2ce(0x1f8)})]});}function Z(_0x29dfee){const _0x3653dc=_0x44c76a,{coordinator:_0x5d884e}=_0x29dfee;return l[_0x3653dc(0x1e6)](l[_0x3653dc(0x246)],{'children':[l[_0x3653dc(0x1ac)](_0x3653dc(0x21b),{'className':_0x3653dc(0x1fd),'children':_0x3653dc(0x218)}),l[_0x3653dc(0x1ac)](f['Button'],{'variant':_0x3653dc(0x212),'onClick':()=>_0x5d884e[_0x3653dc(0x1af)](),'children':_0x3653dc(0x268)})]});}function J(){const _0x4414c0=_0x44c76a;return l['jsx'](l[_0x4414c0(0x246)],{'children':_0x4414c0(0x280)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x46c12a,_0x24b602,_0x3e3c02,_0x21c59a)=>{const _0x242bfb=_0x44c76a;for(var _0xcb3306=_0x21c59a>0x1?void 0x0:_0x21c59a?K(_0x24b602,_0x3e3c02):_0x24b602,_0x5af0dd=_0x46c12a[_0x242bfb(0x279)]-0x1,_0x19a450;_0x5af0dd>=0x0;_0x5af0dd--)(_0x19a450=_0x46c12a[_0x5af0dd])&&(_0xcb3306=_0x19a450(_0xcb3306)||_0xcb3306);return _0xcb3306;},L=(_0x3365b6,_0x3d4756)=>(_0x1ac740,_0x35a023)=>_0x3d4756(_0x1ac740,_0x35a023,_0x3365b6);exports['DesktopLiveShareController']=class extends o[_0x44c76a(0x1ea)]{constructor(_0x1a7953,_0x119d77){const _0x10cfd0=_0x44c76a;super(),this[_0x10cfd0(0x261)]=_0x1a7953,this[_0x10cfd0(0x250)]=_0x119d77,this[_0x10cfd0(0x1ff)]();}[_0x44c76a(0x1ff)](){const _0x27ce36=_0x44c76a;this['disposeWithMe'](this[_0x27ce36(0x250)][_0x27ce36(0x20e)](p[_0x27ce36(0x1d0)][_0x27ce36(0x1b9)],()=>p[_0x27ce36(0x207)]($,this[_0x27ce36(0x261)])));}},exports[_0x44c76a(0x26d)]=z([L(0x0,o['Inject'](o['Injector'])),L(0x1,p[_0x44c76a(0x223)])],exports['DesktopLiveShareController']);const Q=_0x44c76a(0x27e),w={};var X=Object[_0x44c76a(0x22c)],ee=(_0x44d4d2,_0x1144f6,_0x2b7d71,_0xaa773c)=>{const _0x32bc56=_0x44c76a;for(var _0x46afe9=_0xaa773c>0x1?void 0x0:_0xaa773c?X(_0x1144f6,_0x2b7d71):_0x1144f6,_0x4b0b50=_0x44d4d2[_0x32bc56(0x279)]-0x1,_0x25f736;_0x4b0b50>=0x0;_0x4b0b50--)(_0x25f736=_0x44d4d2[_0x4b0b50])&&(_0x46afe9=_0x25f736(_0x46afe9)||_0x46afe9);return _0x46afe9;},te=(_0x7baa21,_0x332316)=>(_0xc2d3b1,_0x5178fa)=>_0x332316(_0xc2d3b1,_0x5178fa,_0x7baa21);let m=class extends o[_0x44c76a(0x1ea)]{constructor(_0x398609){const _0x13782c=_0x44c76a;super(),this[_0x13782c(0x24a)]=_0x398609,this[_0x13782c(0x1ee)]();}[_0x44c76a(0x1ee)](){const _0x4db048=_0x44c76a;[D[_0x4db048(0x24f)]['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x3e87ca=>{const _0x3bb4d0=_0x4db048;this[_0x3bb4d0(0x21d)](this[_0x3bb4d0(0x24a)][_0x3bb4d0(0x1cc)](_0x3e87ca));});}};m=ee([te(0x0,o[_0x44c76a(0x1bf)](E))],m);var ie=Object['defineProperty'],se=Object[_0x44c76a(0x22c)],ne=(_0x2081ac,_0x870c65,_0x268289)=>_0x870c65 in _0x2081ac?ie(_0x2081ac,_0x870c65,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x268289}):_0x2081ac[_0x870c65]=_0x268289,re=(_0x23a57b,_0x4fc01d,_0x50909c,_0xa532dc)=>{for(var _0x226128=_0xa532dc>0x1?void 0x0:_0xa532dc?se(_0x4fc01d,_0x50909c):_0x4fc01d,_0x2b9e23=_0x23a57b['length']-0x1,_0x5bf415;_0x2b9e23>=0x0;_0x2b9e23--)(_0x5bf415=_0x23a57b[_0x2b9e23])&&(_0x226128=_0x5bf415(_0x226128)||_0x226128);return _0x226128;},N=(_0x2baaf4,_0x11dc02)=>(_0xfdd26a,_0x3df26)=>_0x11dc02(_0xfdd26a,_0x3df26,_0x2baaf4),A=(_0x1f0324,_0x1c9e7d,_0x21d136)=>ne(_0x1f0324,typeof _0x1c9e7d!='symbol'?_0x1c9e7d+'':_0x1c9e7d,_0x21d136);const oe=_0x44c76a(0x217);exports[_0x44c76a(0x1ca)]=class extends o[_0x44c76a(0x24b)]{constructor(_0x4176a6=w,_0x3dc883,_0x2906ed){const _0x2d78db=_0x44c76a;super(),this['_config']=_0x4176a6,this[_0x2d78db(0x261)]=_0x3dc883,this[_0x2d78db(0x1dc)]=_0x2906ed;const {..._0x3718da}=o[_0x2d78db(0x1ef)]({},w,this[_0x2d78db(0x255)]);this[_0x2d78db(0x1dc)]['setConfig'](Q,_0x3718da);}['onStarting'](){const _0x2916cf=_0x44c76a;o[_0x2916cf(0x275)](this[_0x2916cf(0x261)],o[_0x2916cf(0x1bd)]([[E],[exports[_0x2916cf(0x1b4)]],[m],[exports['DesktopLiveShareController']]],this['_config']['override'])),o[_0x2916cf(0x1c8)](this[_0x2916cf(0x261)],[[m]]);}[_0x44c76a(0x22a)](){const _0x24345a=_0x44c76a;o[_0x24345a(0x1c8)](this[_0x24345a(0x261)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x44c76a(0x1ca)],_0x44c76a(0x1e3),o[_0x44c76a(0x267)][_0x44c76a(0x204)]),A(exports['UniverLiveSharePlugin'],'pluginName',oe),exports['UniverLiveSharePlugin']=re([o[_0x44c76a(0x1c5)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x44c76a(0x1bf)](o['Injector'])),N(0x2,o[_0x44c76a(0x1ba)])],exports[_0x44c76a(0x1ca)]),exports[_0x44c76a(0x1fe)]=$,exports[_0x44c76a(0x26e)]=E,exports[_0x44c76a(0x1f1)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5a1b65=_0x2017;function _0x2017(_0x442882,_0x4074a1){const _0x469bc4=_0x469b();return _0x2017=function(_0x20176d,_0xcf740a){_0x20176d=_0x20176d-0x113;let _0x51540f=_0x469bc4[_0x20176d];return _0x51540f;},_0x2017(_0x442882,_0x4074a1);}(function(_0x1eca5b,_0x5e11b6){const _0x58a6fb=_0x2017,_0x3d25d6=_0x1eca5b();while(!![]){try{const _0x7e574c=parseInt(_0x58a6fb(0x126))/0x1+parseInt(_0x58a6fb(0x12f))/0x2*(parseInt(_0x58a6fb(0x135))/0x3)+parseInt(_0x58a6fb(0x129))/0x4+parseInt(_0x58a6fb(0x131))/0x5*(parseInt(_0x58a6fb(0x114))/0x6)+parseInt(_0x58a6fb(0x12b))/0x7*(parseInt(_0x58a6fb(0x136))/0x8)+parseInt(_0x58a6fb(0x120))/0x9*(-parseInt(_0x58a6fb(0x124))/0xa)+-parseInt(_0x58a6fb(0x11c))/0xb;if(_0x7e574c===_0x5e11b6)break;else _0x3d25d6['push'](_0x3d25d6['shift']());}catch(_0x1bd49f){_0x3d25d6['push'](_0x3d25d6['shift']());}}}(_0x469b,0xbe0f5));import{LiveShareController as _0x15d6f5,LiveShareStatus as _0x30510a}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x3702dd}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x1ee97d}from'@univerjs/sheets';import{SetScrollOperation as _0x199c7b}from'@univerjs/sheets-ui';import{FRange as _0xdfd2b6}from'@univerjs/sheets/facade';import{FUniver as _0x4a1faf,FEnum as _0x231f6e}from'@univerjs/core/facade';class I extends _0xdfd2b6{[_0x5a1b65(0x11a)](_0x23e585,_0xc3699a,_0x4d59e0,_0x5a25db,_0x2caa20){const _0x5883d0=_0x5a1b65,_0xaa44dd=_0x23e585[_0x5883d0(0x119)](_0x15d6f5),_0x4f5616=_0x23e585['get'](_0x3702dd),_0x5767b0=_0xc3699a[_0x5883d0(0x123)](),_0x447c2b=_0xc3699a[_0x5883d0(0x12e)](),_0x9834a8=_0xaa44dd[_0x5883d0(0x130)](_0x5767b0);(_0x9834a8==null?void 0x0:_0x9834a8[_0x5883d0(0x11d)]())!==_0x30510a[_0x5883d0(0x117)]||(_0x4d59e0['getSheetId']()!==_0x447c2b[_0x5883d0(0x125)]()&&this[_0x5883d0(0x132)][_0x5883d0(0x116)](_0x1ee97d['id'],{'unitId':_0x5767b0,'subUnitId':_0x4d59e0['getSheetId']()}),!_0x4f5616[_0x5883d0(0x115)](_0x5767b0))||_0x2caa20['syncExecuteCommand'](_0x199c7b['id'],{'unitId':_0xc3699a[_0x5883d0(0x123)](),'sheetId':_0x4d59e0['getSheetId'](),'sheetViewStartRow':_0x5a25db[_0x5883d0(0x134)],'sheetViewStartColumn':_0x5a25db[_0x5883d0(0x122)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x469b(){const _0x38d8e5=['33561858XjNOUz','getStatus','IDLE','stopFollowing','117mRCMTm','startFollowing','startColumn','getUnitId','79190nfvwfL','getSheetId','877325MKBYKm','_injector','stopPresenting','2158436aLgRFg','getActiveWorkbook','17549JfIPGG','tryStartPresenting','No\x20active\x20workbook\x20found.','getActiveSheet','513178ajUnQo','getLiveShareCoordinatorSync','5690KveYMt','_commandService','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startRow','15ONXGaF','952unxEeZ','getId','4926zkyEUq','getRenderById','executeCommand','PRESENTING','extend','get','_initialize','getLiveShareStatus'];_0x469b=function(){return _0x38d8e5;};return _0x469b();}_0xdfd2b6['extend'](I);class m extends _0x4a1faf{[_0x5a1b65(0x11b)](){const _0xf54010=_0x5a1b65;var _0x15767f,_0x564680;const _0x4c2d7a=this['_injector']['get'](_0x15d6f5),_0x2d23c5=(_0x15767f=this[_0xf54010(0x12a)]())==null?void 0x0:_0x15767f['getId']();if(!_0x2d23c5)throw new Error(_0xf54010(0x12d));const _0x56c2d7=_0x4c2d7a[_0xf54010(0x130)](_0x2d23c5);return(_0x564680=_0x56c2d7==null?void 0x0:_0x56c2d7[_0xf54010(0x11d)]())!=null?_0x564680:_0x30510a[_0xf54010(0x11e)];}[_0x5a1b65(0x121)](){const _0x56d0bc=_0x5a1b65;var _0x52e81f;const _0x5b3fd3=this[_0x56d0bc(0x127)][_0x56d0bc(0x119)](_0x15d6f5),_0x720e04=(_0x52e81f=this[_0x56d0bc(0x12a)]())==null?void 0x0:_0x52e81f['getId']();if(!_0x720e04)throw new Error(_0x56d0bc(0x12d));const _0x5db1c4=_0x5b3fd3['getLiveShareCoordinatorSync'](_0x720e04);if(!_0x5db1c4)throw new Error(_0x56d0bc(0x133));_0x5db1c4['startFollowing']();}[_0x5a1b65(0x11f)](){const _0x5661cc=_0x5a1b65;var _0x1f11e6;const _0x57915a=this[_0x5661cc(0x127)][_0x5661cc(0x119)](_0x15d6f5),_0x48ce6f=(_0x1f11e6=this[_0x5661cc(0x12a)]())==null?void 0x0:_0x1f11e6[_0x5661cc(0x113)]();if(!_0x48ce6f)throw new Error('No\x20active\x20workbook\x20found.');const _0x4cfe8=_0x57915a['getLiveShareCoordinatorSync'](_0x48ce6f);if(!_0x4cfe8)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4cfe8[_0x5661cc(0x11f)]();}['startPresenting'](){const _0x2a098b=_0x5a1b65;var _0x1fdae1;const _0x502bc0=this[_0x2a098b(0x127)][_0x2a098b(0x119)](_0x15d6f5),_0xf8b10c=(_0x1fdae1=this[_0x2a098b(0x12a)]())==null?void 0x0:_0x1fdae1['getId']();if(!_0xf8b10c)throw new Error(_0x2a098b(0x12d));const _0x19aaf3=_0x502bc0[_0x2a098b(0x130)](_0xf8b10c);if(!_0x19aaf3)throw new Error(_0x2a098b(0x133));_0x19aaf3[_0x2a098b(0x12c)]();}[_0x5a1b65(0x128)](){const _0x5df700=_0x5a1b65;var _0x217373;const _0x542dee=this[_0x5df700(0x127)][_0x5df700(0x119)](_0x15d6f5),_0x3952a5=(_0x217373=this[_0x5df700(0x12a)]())==null?void 0x0:_0x217373[_0x5df700(0x113)]();if(!_0x3952a5)throw new Error(_0x5df700(0x12d));const _0x1fe338=_0x542dee['getLiveShareCoordinatorSync'](_0x3952a5);if(!_0x1fe338)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1fe338[_0x5df700(0x128)]();}}_0x4a1faf['extend'](m);class C extends _0x231f6e{get['LiveShareStatusEnum'](){return _0x30510a;}}_0x231f6e[_0x5a1b65(0x118)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3f8b8a=_0x5e6b;(function(_0x1b2469,_0x5d2d34){const _0x45631d=_0x5e6b,_0x4d58cd=_0x1b2469();while(!![]){try{const _0x15f162=parseInt(_0x45631d(0x139))/0x1+-parseInt(_0x45631d(0x12c))/0x2*(parseInt(_0x45631d(0x1b4))/0x3)+-parseInt(_0x45631d(0x1a3))/0x4+parseInt(_0x45631d(0x18f))/0x5+-parseInt(_0x45631d(0x122))/0x6+-parseInt(_0x45631d(0x1a4))/0x7*(-parseInt(_0x45631d(0x11c))/0x8)+parseInt(_0x45631d(0x191))/0x9*(-parseInt(_0x45631d(0x14f))/0xa);if(_0x15f162===_0x5d2d34)break;else _0x4d58cd['push'](_0x4d58cd['shift']());}catch(_0x570847){_0x4d58cd['push'](_0x4d58cd['shift']());}}}(_0x5073,0xab4ed));function _0x5073(){const _0x79eb11=['stopPresenting','_commandDisposable','getStatus','text','_univerInstanceService','registerInitialStateReporter','div','asObservable','_collabSession','513796BAxTUj','8281679nNlQRM','following','_reporters','reverse','LIVESHARE_REQUEST_HOST','_entities','tryStartPresenting','univer-size-4','add','registerComponent','colorChannel1','shouldShareOperation','LiveShareIcon','OFFLINE','random','has','617649PHsLbu','requireSession','_stopFollowing','setConfig','FOLLOWING','entries','_sharedOperations','LIVESHARE_TERMINATE','override','tag','not-following','status$','_status$','from','live-share-icon','8sAeACW','_presenter','Stop\x20presenting','includes','evenodd','defineProperty','2057844RdYmHJ','_startFollowing','_handleTerminate','UniverIcon','getInitialStates','onCommandExecuted','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','PRESENTING','set','presenter','2kQrUno','svg','IDLE','_config','onRendered','NOT_FOLLOWING','dispose','values','mask','unitId','length','sheet','You\x27re\x20following\x20the\x20presenter','342755jKOFdz','_init','getOwnPropertyDescriptor','idSuffix','LIVESHARE_NEW_HOST','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','operations','_startPresenting','Start\x20following','LIVESHARE_OPERATION','clear','unsubscribe','mutations','data','send','_unitID','toString','init','delete','_handleOnline','children','11265690ygLByx','_handleNewHost','forEach','end','default','SAME_OPERATION_SHARE_INTERVAL','defIds','getLiveShareCoordinator','_configService','_uiPartsService','complete','next','presenting','current','get','NEW_CHANGESETS','xlink:href','then','event$','_handleNewChangeSets','none','string','_stopPresenting','replace','_handleOffline','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','subscribe','stringify','_beIdle','getTypeOfUnitAdded$','_liveShareService','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','path','_startLiveShareCoordinator','getUnitId','attrs','map','use','getTypeOfUnitDisposed$','_commandService','Stop\x20following','_fetchOperations','substring','createInstance','offline','_status','HEADER_MENU','OPERATION','UNIVER_SHEET','executeCommand','trim','dispose$','sessionStatus$','displayName','0\x200\x2017\x2017','params','disposeWithMe','find','getConfig','You\x27are\x20offline.','UNIVER_LIVE_SHARE_PLUGIN','http://www.w3.org/2000/svg','You\x27re\x20presenting\x20the\x20document','4898500YXyOHH','getMemberID','9gCBIUi','button','pipe','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','_injector','onStarting','symbol','1em','idle'];_0x5073=function(){return _0x79eb11;};return _0x5073();}var J=Object['defineProperty'],K=(_0xc48790,_0xc9d9c5,_0x1af2a5)=>_0xc9d9c5 in _0xc48790?J(_0xc48790,_0xc9d9c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1af2a5}):_0xc48790[_0xc9d9c5]=_0x1af2a5,u=(_0x17643a,_0x5f06e7,_0x5dc08d)=>K(_0x17643a,typeof _0x5f06e7!=_0x3f8b8a(0x197)?_0x5f06e7+'':_0x5f06e7,_0x5dc08d);import{Disposable as _0x159720,toDisposable as _0x51d4c6,IUniverInstanceService as _0x399285,Inject as _0x5559c6,Injector as _0x195227,IConfigService as _0x5c28f1,ICommandService as _0x754535,RxDisposable as _0x16a1ae,UniverInstanceType as _0x3fe8fe,DisposableCollection as _0x434384,CommandType as _0x1fb413,DependentOn as _0x3f7112,Plugin as _0x25bb0a,merge as _0x39e1c5,registerDependencies as _0x46d24c,mergeOverrideWithDependencies as _0x7a71b0,touchDependencies as _0x4d514b}from'@univerjs/core';import{useDependency as _0x437252,useObservable as _0x420d0b,IUIPartsService as _0x32b863,BuiltInUIPart as _0x4dcc23,connectInjector as _0x54592c}from'@univerjs/ui';import{jsx as _0x2a725f,jsxs as _0x4db2bd,Fragment as _0x32f569}from'react/jsx-runtime';import{Dropdown as _0x1c024f,clsx as _0x1e4748,Button as _0x3efa6c}from'@univerjs/design';import{useRef as _0x5bdf40,createElement as _0x433fb7,forwardRef as _0x51a912,useState as _0x41412a,useEffect as _0x710f1d}from'react';import{CollaborationEvent as _0x1bfde3,parseProtocolChangeset as _0xe1444c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x76787b,SessionStatus as _0x1d2e0c,UniverCollaborationClientPlugin as _0x52b6d2}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x54e6ad,SetWorksheetActiveOperation as _0x7f48eb}from'@univerjs/sheets';import{BehaviorSubject as _0x4603a5,Subject as _0x26df35}from'rxjs';import{takeUntil as _0x75a298,throttleTime as _0x2bfc6b}from'rxjs/operators';function _0x5e6b(_0x3d7f4c,_0x14cb74){const _0x5073f8=_0x5073();return _0x5e6b=function(_0x5e6b89,_0x5e37e4){_0x5e6b89=_0x5e6b89-0x118;let _0x4ba283=_0x5073f8[_0x5e6b89];return _0x4ba283;},_0x5e6b(_0x3d7f4c,_0x14cb74);}import{SetZoomRatioOperation as _0x23298b,SetScrollOperation as _0x5acac7}from'@univerjs/sheets-ui';function k({ref:_0xe3c7c0,..._0x142e4a}){const _0x2ca499=_0x3f8b8a,{icon:_0x1d8f59,id:_0xd0ff5d,className:_0x232dc0,extend:_0x1f2413,..._0x500a00}=_0x142e4a,_0x5e65aa=('univerjs-icon\x20univerjs-icon-'+_0xd0ff5d+'\x20'+(_0x232dc0||''))[_0x2ca499(0x182)](),_0x333265=_0x5bdf40('_'+Oe());return G(_0x1d8f59,''+_0xd0ff5d,{'defIds':_0x1d8f59[_0x2ca499(0x155)],'idSuffix':_0x333265[_0x2ca499(0x15c)]},{'ref':_0xe3c7c0,'className':_0x5e65aa,..._0x500a00},_0x1f2413);}function G(_0xd39f0a,_0x3163ad,_0x493cb7,_0x3f26f8,_0x24388e){const _0x54d6d4=_0x3f8b8a;return _0x433fb7(_0xd39f0a[_0x54d6d4(0x1bd)],{'key':_0x3163ad,...be(_0xd39f0a,_0x493cb7,_0x24388e),..._0x3f26f8},(Ee(_0xd39f0a,_0x493cb7)[_0x54d6d4(0x14e)]||[])[_0x54d6d4(0x174)]((_0x3a0e71,_0x31f09c)=>G(_0x3a0e71,_0x3163ad+'-'+_0xd39f0a[_0x54d6d4(0x1bd)]+'-'+_0x31f09c,_0x493cb7,void 0x0,_0x24388e)));}function be(_0x42773d,_0x42881d,_0x4648ef){const _0x3ced73=_0x3f8b8a,_0x369ee7={..._0x42773d[_0x3ced73(0x173)]};_0x4648ef!=null&&_0x4648ef[_0x3ced73(0x1ae)]&&_0x369ee7['fill']===_0x3ced73(0x1ae)&&(_0x369ee7['fill']=_0x4648ef['colorChannel1']),_0x42773d['tag']===_0x3ced73(0x134)&&_0x369ee7['id']&&(_0x369ee7['id']=_0x369ee7['id']+_0x42881d[_0x3ced73(0x13c)]),Object['entries'](_0x369ee7)[_0x3ced73(0x151)](([_0x587907,_0x119040])=>{const _0x2cde33=_0x3ced73;_0x587907===_0x2cde33(0x134)&&typeof _0x119040==_0x2cde33(0x164)&&(_0x369ee7[_0x587907]=_0x119040['replace'](/url\(#(.*)\)/,'url(#$1'+_0x42881d[_0x2cde33(0x13c)]+')'));});const {defIds:_0x3dc9f2}=_0x42881d;return!_0x3dc9f2||_0x3dc9f2[_0x3ced73(0x136)]===0x0||(_0x42773d[_0x3ced73(0x1bd)]===_0x3ced73(0x175)&&_0x369ee7[_0x3ced73(0x15f)]&&(_0x369ee7[_0x3ced73(0x15f)]=_0x369ee7['xlink:href']+_0x42881d[_0x3ced73(0x13c)]),Object[_0x3ced73(0x1b9)](_0x369ee7)[_0x3ced73(0x151)](([_0x3c8fab,_0xb5ee25])=>{const _0x36a25a=_0x3ced73;typeof _0xb5ee25==_0x36a25a(0x164)&&(_0x369ee7[_0x3c8fab]=_0xb5ee25[_0x36a25a(0x166)](/url\(#(.*)\)/,'url(#$1'+_0x42881d[_0x36a25a(0x13c)]+')'));})),_0x369ee7;}function Ee(_0x1f5ccf,_0x5577bc){const _0x3b2b48=_0x3f8b8a;var _0x38bd2c;const {defIds:_0x4ae1fb}=_0x5577bc;return!_0x4ae1fb||_0x4ae1fb[_0x3b2b48(0x136)]===0x0?_0x1f5ccf:_0x1f5ccf[_0x3b2b48(0x1bd)]==='defs'&&((_0x38bd2c=_0x1f5ccf[_0x3b2b48(0x14e)])!=null&&_0x38bd2c['length'])?{..._0x1f5ccf,'children':_0x1f5ccf[_0x3b2b48(0x14e)][_0x3b2b48(0x174)](_0x3a763a=>typeof _0x3a763a[_0x3b2b48(0x173)]['id']=='string'&&_0x4ae1fb&&_0x4ae1fb[_0x3b2b48(0x11f)](_0x3a763a[_0x3b2b48(0x173)]['id'])?{..._0x3a763a,'attrs':{..._0x3a763a['attrs'],'id':_0x3a763a[_0x3b2b48(0x173)]['id']+_0x5577bc[_0x3b2b48(0x13c)]}}:_0x3a763a)}:_0x1f5ccf;}function Oe(){const _0x32d4f2=_0x3f8b8a;return Math[_0x32d4f2(0x1b2)]()[_0x32d4f2(0x14a)](0x24)[_0x32d4f2(0x17a)](0x2,0x8);}k[_0x3f8b8a(0x185)]=_0x3f8b8a(0x125);const we={'tag':_0x3f8b8a(0x12d),'attrs':{'xmlns':_0x3f8b8a(0x18d),'fill':_0x3f8b8a(0x163),'viewBox':_0x3f8b8a(0x186),'width':_0x3f8b8a(0x198),'height':_0x3f8b8a(0x198)},'children':[{'tag':_0x3f8b8a(0x170),'attrs':{'fill':'currentColor','d':_0x3f8b8a(0x194)}},{'tag':_0x3f8b8a(0x170),'attrs':{'fill':'currentColor','d':_0x3f8b8a(0x128),'fillRule':_0x3f8b8a(0x120),'clipRule':_0x3f8b8a(0x120)}}]},W=_0x51a912(function(_0x4760e6,_0x12fa81){const _0x8323b6=_0x3f8b8a;return _0x433fb7(k,Object[_0x8323b6(0x16e)]({},_0x4760e6,{'id':_0x8323b6(0x11b),'ref':_0x12fa81,'icon':we}));});W['displayName']=_0x3f8b8a(0x1b0);class L extends _0x159720{constructor(){const _0x57e4be=_0x3f8b8a;super(...arguments),u(this,_0x57e4be(0x1ba),new Set()),u(this,'_reporters',new Set());}[_0x3f8b8a(0x13e)](_0x4acac7){const _0x7a7ffb=_0x3f8b8a;return this[_0x7a7ffb(0x1ba)][_0x7a7ffb(0x1ac)](_0x4acac7),_0x51d4c6(()=>this[_0x7a7ffb(0x1ba)][_0x7a7ffb(0x14c)](_0x4acac7));}[_0x3f8b8a(0x19f)](_0x217eeb){const _0x15bb0d=_0x3f8b8a;return this['_reporters'][_0x15bb0d(0x1ac)](_0x217eeb),_0x51d4c6(()=>this[_0x15bb0d(0x1a6)][_0x15bb0d(0x14c)](_0x217eeb));}[_0x3f8b8a(0x1af)](_0x5f0c1e){const _0x21b2f8=_0x3f8b8a;return this['_sharedOperations'][_0x21b2f8(0x1b3)](_0x5f0c1e);}[_0x3f8b8a(0x126)](_0x28f42f){const _0x583ead=_0x3f8b8a;return Array[_0x583ead(0x11a)](this[_0x583ead(0x1a6)])[_0x583ead(0x174)](_0x47d80d=>_0x47d80d(_0x28f42f));}}var Ne=Object[_0x3f8b8a(0x13b)],Y=(_0x22d92a,_0x5baaf6,_0x1c120e,_0x2dbae1)=>{const _0x142a4a=_0x3f8b8a;for(var _0x4143e4=_0x2dbae1>0x1?void 0x0:_0x2dbae1?Ne(_0x5baaf6,_0x1c120e):_0x5baaf6,_0xd30129=_0x22d92a[_0x142a4a(0x136)]-0x1,_0x285747;_0xd30129>=0x0;_0xd30129--)(_0x285747=_0x22d92a[_0xd30129])&&(_0x4143e4=_0x285747(_0x4143e4)||_0x4143e4);return _0x4143e4;},_=(_0x1b8bf3,_0x3c5791)=>(_0x33fb27,_0x509447)=>_0x3c5791(_0x33fb27,_0x509447,_0x1b8bf3);let S=class extends _0x16a1ae{constructor(_0x3d2124,_0x1caff3,_0x177195){const _0xea2054=_0x3f8b8a;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3d2124,this[_0xea2054(0x195)]=_0x1caff3,this['_collabSessionService']=_0x177195,this[_0xea2054(0x13a)]());}async[_0x3f8b8a(0x156)](_0x18173e){const _0x39d342=_0x3f8b8a;return this[_0x39d342(0x1a9)][_0x39d342(0x1b3)](_0x18173e)||await this['_startLiveShareCoordinator'](_0x18173e),this[_0x39d342(0x1a9)][_0x39d342(0x15d)](_0x18173e);}['getLiveShareCoordinatorSync'](_0x51a436){const _0x560500=_0x3f8b8a;var _0x1eb23d;return(_0x1eb23d=this[_0x560500(0x1a9)][_0x560500(0x15d)](_0x51a436))!=null?_0x1eb23d:null;}['_init'](){const _0x5f5519=_0x3f8b8a;this['_univerInstanceService'][_0x5f5519(0x16c)](_0x3fe8fe[_0x5f5519(0x180)])[_0x5f5519(0x193)](_0x75a298(this[_0x5f5519(0x183)]))[_0x5f5519(0x169)](async _0x5e9eee=>{const _0x5be08c=_0x5f5519,_0x1061f6=_0x5e9eee['getUnitId']();this['_entities']['has'](_0x1061f6)||this[_0x5be08c(0x171)](_0x1061f6);}),this[_0x5f5519(0x19e)][_0x5f5519(0x176)](_0x3fe8fe[_0x5f5519(0x180)])[_0x5f5519(0x193)](_0x75a298(this[_0x5f5519(0x183)]))[_0x5f5519(0x169)](_0x1c9bc8=>{const _0x2bbaf6=_0x5f5519,_0x47d72a=_0x1c9bc8[_0x2bbaf6(0x172)](),_0x1a583=this['_entities'][_0x2bbaf6(0x15d)](_0x47d72a);_0x1a583==null||_0x1a583[_0x2bbaf6(0x132)]();});}async[_0x3f8b8a(0x171)](_0x2bfa87){const _0x447c7d=_0x3f8b8a,_0x50e532=await this['_collabSessionService'][_0x447c7d(0x1b5)](_0x2bfa87),_0x5f59f8=this['_injector'][_0x447c7d(0x17b)](N,_0x2bfa87,_0x50e532);return _0x5f59f8[_0x447c7d(0x14b)](),this[_0x447c7d(0x1a9)][_0x447c7d(0x12a)](_0x2bfa87,_0x5f59f8),_0x5f59f8;}};S=Y([_(0x0,_0x399285),_(0x1,_0x5559c6(_0x195227)),_(0x2,_0x5559c6(_0x76787b))],S);var c=(_0x574527=>(_0x574527['OFFLINE']='offline',_0x574527['IDLE']='idle',_0x574527['FOLLOWING']='following',_0x574527[_0x3f8b8a(0x131)]='not-following',_0x574527[_0x3f8b8a(0x129)]=_0x3f8b8a(0x15b),_0x574527))(c||{});const Ce=_0x3f8b8a(0x154),De=0xc8;let N=class extends _0x16a1ae{constructor(_0x4276f7,_0x346f6b,_0x2b6c92,_0x142612,_0xb2a889){const _0x39a6e7=_0x3f8b8a;super(),u(this,_0x39a6e7(0x119),new _0x4603a5(_0x39a6e7(0x199))),u(this,_0x39a6e7(0x118),this['_status$'][_0x39a6e7(0x1a1)]()),u(this,'_init',!0x1),u(this,_0x39a6e7(0x19b),null),u(this,_0x39a6e7(0x11d),null),(this[_0x39a6e7(0x149)]=_0x4276f7,this[_0x39a6e7(0x1a2)]=_0x346f6b,this['_configService']=_0x2b6c92,this[_0x39a6e7(0x16d)]=_0x142612,this['_commandService']=_0xb2a889);}get[_0x3f8b8a(0x17d)](){const _0x5034b4=_0x3f8b8a;return this[_0x5034b4(0x119)]['getValue']();}[_0x3f8b8a(0x132)](){const _0x3a92df=_0x3f8b8a;var _0x1e7b70;(_0x1e7b70=this[_0x3a92df(0x19b)])==null||_0x1e7b70[_0x3a92df(0x132)](),this[_0x3a92df(0x119)][_0x3a92df(0x15a)](_0x3a92df(0x199)),this[_0x3a92df(0x119)][_0x3a92df(0x159)]();}[_0x3f8b8a(0x19c)](){const _0x243205=_0x3f8b8a;return this[_0x243205(0x17d)];}[_0x3f8b8a(0x14b)](){const _0x4d9eac=_0x3f8b8a;this[_0x4d9eac(0x13a)]||(this['_init']=!0x0,this[_0x4d9eac(0x1a2)][_0x4d9eac(0x184)][_0x4d9eac(0x193)](_0x75a298(this[_0x4d9eac(0x183)]))[_0x4d9eac(0x169)](_0xed7b20=>{const _0x5c912b=_0x4d9eac;switch(_0xed7b20){case _0x1d2e0c['OFFLINE']:this[_0x5c912b(0x167)]();break;case _0x1d2e0c['ONLINE']:this[_0x5c912b(0x14d)]();break;}}),this['_collabSession'][_0x4d9eac(0x161)][_0x4d9eac(0x193)](_0x75a298(this['dispose$']))['subscribe'](_0x28f52f=>{const _0x28a030=_0x4d9eac,{eventID:_0x18df19}=_0x28f52f;switch(_0x18df19){case _0x1bfde3[_0x28a030(0x13d)]:this[_0x28a030(0x150)](_0x28f52f);break;case _0x1bfde3[_0x28a030(0x143)]:this['_handleOperation'](_0x28f52f);break;case _0x1bfde3[_0x28a030(0x1bb)]:this[_0x28a030(0x124)]();break;case _0x1bfde3[_0x28a030(0x15e)]:this[_0x28a030(0x162)](_0x28f52f);break;}}));}[_0x3f8b8a(0x1aa)](){const _0x24894a=_0x3f8b8a;this[_0x24894a(0x1a2)][_0x24894a(0x148)]({'eventID':_0x1bfde3[_0x24894a(0x1a8)],'data':{'unitID':this['_unitID'],'userID':this[_0x24894a(0x1a2)][_0x24894a(0x190)]()}},this[_0x24894a(0x149)]);}[_0x3f8b8a(0x19a)](){const _0x3c56f2=_0x3f8b8a;this[_0x3c56f2(0x17d)]==='presenting'&&(this[_0x3c56f2(0x119)]['next']('idle'),this[_0x3c56f2(0x1a2)][_0x3c56f2(0x148)]({'eventID':_0x1bfde3[_0x3c56f2(0x1bb)],'data':{'unitID':this[_0x3c56f2(0x149)]}},this[_0x3c56f2(0x149)]));}['startFollowing'](){const _0x5343ed=_0x3f8b8a;this['_status']===_0x5343ed(0x1be)&&(this['_status$']['next'](_0x5343ed(0x1a5)),this[_0x5343ed(0x123)]());}['stopFollowing'](){const _0x37e4e2=_0x3f8b8a;this[_0x37e4e2(0x17d)]==='following'&&this[_0x37e4e2(0x1b6)]();}[_0x3f8b8a(0x150)](_0x58be5a){const _0x48d6f1=_0x3f8b8a,{presenter:_0x35aeae}=_0x58be5a[_0x48d6f1(0x147)],_0x42f624=this['_collabSession'][_0x48d6f1(0x190)]();this[_0x48d6f1(0x11d)]=_0x35aeae,_0x35aeae===_0x42f624?(this[_0x48d6f1(0x1b6)](),this[_0x48d6f1(0x141)]()):this[_0x48d6f1(0x17d)]!==_0x48d6f1(0x1be)&&(this[_0x48d6f1(0x165)](),this['_startFollowing']());}[_0x3f8b8a(0x179)](){const _0x6c3b87=_0x3f8b8a,_0x56ed86={'eventID':_0x1bfde3['LIVESHARE_FETCH_OPERATIONS']};this[_0x6c3b87(0x1a2)][_0x6c3b87(0x148)](_0x56ed86,this[_0x6c3b87(0x149)]);}[_0x3f8b8a(0x124)](){const _0x2cab7b=_0x3f8b8a;this['_presenter']=null,this[_0x2cab7b(0x17d)]!=='presenting'&&this[_0x2cab7b(0x16b)]();}[_0x3f8b8a(0x162)](_0x321f12){const _0xdd36ca=_0x3f8b8a;if(this[_0xdd36ca(0x17d)]===_0xdd36ca(0x1a5)&&this[_0xdd36ca(0x11d)]===_0x321f12['data']['memberID']){const _0x2956d7=_0xe1444c(_0x321f12[_0xdd36ca(0x147)])[_0xdd36ca(0x146)][_0xdd36ca(0x1a7)]()[_0xdd36ca(0x189)](_0x4e9636=>_0x4e9636['id']===_0x54e6ad['id']);if(_0x2956d7){const _0x132c1e=_0x2956d7[_0xdd36ca(0x187)][_0xdd36ca(0x135)],_0x52ac32=_0x2956d7[_0xdd36ca(0x187)][_0xdd36ca(0x137)]['id'];setTimeout(()=>{const _0x5a91e8=_0xdd36ca;this[_0x5a91e8(0x177)][_0x5a91e8(0x181)](_0x7f48eb['id'],{'unitId':_0x132c1e,'subUnitId':_0x52ac32},{'fromCollab':!0x0});});}}}[_0x3f8b8a(0x141)](){const _0x570568=_0x3f8b8a;this[_0x570568(0x119)][_0x570568(0x15a)](_0x570568(0x15b));const _0x48df98=new Map(),_0x805d37=this[_0x570568(0x19b)]=new _0x434384();_0x805d37[_0x570568(0x1ac)](_0x51d4c6(()=>{const _0x4fab03=_0x570568;_0x48df98[_0x4fab03(0x151)](_0x1a3792=>_0x1a3792[_0x4fab03(0x159)]()),_0x48df98[_0x4fab03(0x144)]();})),_0x805d37[_0x570568(0x1ac)](this[_0x570568(0x177)][_0x570568(0x127)](_0x1ffa50=>{const _0x541913=_0x570568;var _0x380ba2;if(_0x1ffa50['type']!==_0x1fb413[_0x541913(0x17f)]||!this['_liveShareService'][_0x541913(0x1af)](_0x1ffa50['id']))return;const {id:_0x2d2022}=_0x1ffa50;let _0x4641a2;_0x48df98['has'](_0x2d2022)?_0x4641a2=_0x48df98[_0x541913(0x15d)](_0x2d2022):(_0x4641a2=new _0x26df35(),_0x48df98[_0x541913(0x12a)](_0x2d2022,_0x4641a2),_0x4641a2[_0x541913(0x193)](_0x2bfc6b((_0x380ba2=this[_0x541913(0x157)][_0x541913(0x18a)](Ce))!=null?_0x380ba2:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x541913(0x169)](_0x53e5b3=>{const _0xbd360a=_0x541913;this[_0xbd360a(0x1a2)]['send']({'eventID':_0x1bfde3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xbd360a(0x149)],'operations':{[_0x53e5b3['id']]:{'id':_0x53e5b3['id'],'params':JSON[_0xbd360a(0x16a)](_0x53e5b3[_0xbd360a(0x187)])}}}},this[_0xbd360a(0x149)]);})),_0x4641a2[_0x541913(0x15a)](_0x1ffa50);})),this[_0x570568(0x16d)][_0x570568(0x126)](this[_0x570568(0x149)])[_0x570568(0x151)](_0x32739c=>this[_0x570568(0x1a2)][_0x570568(0x148)]({'eventID':_0x1bfde3[_0x570568(0x143)],'data':{'unitID':this[_0x570568(0x149)],'operations':{[_0x32739c['id']]:{'id':_0x32739c['id'],'params':JSON[_0x570568(0x16a)](_0x32739c[_0x570568(0x187)])}}}},this['_unitID']));}[_0x3f8b8a(0x165)](){const _0x4fcc9d=_0x3f8b8a;var _0x2c9889;this['_status$'][_0x4fcc9d(0x15a)]('idle'),(_0x2c9889=this['_commandDisposable'])==null||_0x2c9889[_0x4fcc9d(0x132)](),this['_commandDisposable']=null;}[_0x3f8b8a(0x123)](){const _0x191871=_0x3f8b8a;var _0x55d507;(_0x55d507=this['_commandDisposable'])==null||_0x55d507[_0x191871(0x132)](),this[_0x191871(0x119)][_0x191871(0x15a)](_0x191871(0x1a5));}[_0x3f8b8a(0x16b)](){const _0x56a8fd=_0x3f8b8a;var _0x2f872b;this['_status$'][_0x56a8fd(0x15a)](_0x56a8fd(0x199)),(_0x2f872b=this[_0x56a8fd(0x19b)])==null||_0x2f872b['dispose'](),this['_commandDisposable']=null;}[_0x3f8b8a(0x1b6)](){const _0x59d686=_0x3f8b8a;var _0xee0c7e;this['_status$'][_0x59d686(0x15a)](_0x59d686(0x1be)),(_0xee0c7e=this[_0x59d686(0x19b)])==null||_0xee0c7e[_0x59d686(0x132)]();}['_handleOperation'](_0x1fe05f){const _0x5a8b7d=_0x3f8b8a;if([_0x5a8b7d(0x15b),_0x5a8b7d(0x1be),_0x5a8b7d(0x17c)][_0x5a8b7d(0x11f)](this[_0x5a8b7d(0x17d)])||!_0x1fe05f[_0x5a8b7d(0x147)][_0x5a8b7d(0x12b)]||_0x1fe05f['data'][_0x5a8b7d(0x12b)]===this[_0x5a8b7d(0x1a2)][_0x5a8b7d(0x190)]())return;this[_0x5a8b7d(0x17d)]==='idle'&&this[_0x5a8b7d(0x123)]();const _0x3b278=_0x1fe05f[_0x5a8b7d(0x147)][_0x5a8b7d(0x140)];Object[_0x5a8b7d(0x133)](_0x3b278)[_0x5a8b7d(0x151)](_0x1abcbe=>{const _0x14c655=_0x5a8b7d;this[_0x14c655(0x177)][_0x14c655(0x181)](_0x1abcbe['id'],_0x1abcbe[_0x14c655(0x187)]?JSON['parse'](_0x1abcbe[_0x14c655(0x187)]):null,{'fromCollab':!0x0});});}[_0x3f8b8a(0x167)](){const _0x47bc6e=_0x3f8b8a;var _0x13b4d8;this[_0x47bc6e(0x119)][_0x47bc6e(0x15a)](_0x47bc6e(0x17c)),(_0x13b4d8=this['_commandDisposable'])==null||_0x13b4d8[_0x47bc6e(0x132)]();}[_0x3f8b8a(0x14d)](){const _0x29a970=_0x3f8b8a;this[_0x29a970(0x119)]['next']('idle'),this[_0x29a970(0x179)]();}};N=Y([_(0x2,_0x5c28f1),_(0x3,_0x5559c6(L)),_(0x4,_0x754535)],N);function Le(){const _0x22584c=_0x3f8b8a,_0x5158de=_0x437252(S),_0x22ff73=_0x437252(_0x399285),_0x4fe169=_0x420d0b(()=>_0x22ff73['getCurrentTypeOfUnit$'](_0x3fe8fe['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x13918f,_0x5a27e4]=_0x41412a(null),[_0xe69d7a,_0x8f994d]=_0x41412a(c[_0x22584c(0x12e)]),_0x397bf8=_0x5bdf40(null);return _0x710f1d(()=>(_0x4fe169&&_0x5158de[_0x22584c(0x156)](_0x4fe169[_0x22584c(0x172)]())[_0x22584c(0x160)](_0x487b0c=>{const _0x3bc4df=_0x22584c;_0x5a27e4(_0x487b0c),_0x397bf8[_0x3bc4df(0x15c)]=_0x487b0c[_0x3bc4df(0x118)][_0x3bc4df(0x169)](_0x258b5b=>{_0x8f994d(_0x258b5b);});}),()=>{const _0x438cb8=_0x22584c;var _0x1f1064;(_0x1f1064=_0x397bf8[_0x438cb8(0x15c)])==null||_0x1f1064[_0x438cb8(0x145)](),_0x397bf8['current']=null;}),[_0x4fe169,_0x5158de]),_0x13918f?_0x2a725f(_0x1c024f,{'align':_0x22584c(0x152),'disabled':_0xe69d7a===c[_0x22584c(0x1b1)],'className':_0x22584c(0x168),'overlay':_0x2a725f(Re,{'status':_0xe69d7a,'coordinator':_0x13918f}),'children':_0x2a725f(_0x22584c(0x192),{'className':_0x1e4748(_0x22584c(0x16f),{'univer-cursor-not-allowed':_0xe69d7a===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xe69d7a!==c[_0x22584c(0x1b1)]}),'type':_0x22584c(0x192),'children':_0x2a725f(W,{'className':_0x22584c(0x1ab)})})}):null;}function Re(_0x338ffb){const _0x3dd1f6=_0x3f8b8a,{status:_0x55981b,coordinator:_0x2d4cf8}=_0x338ffb;switch(_0x55981b){case c['IDLE']:return _0x2a725f($e,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x1b8)]:return _0x2a725f(xe,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x131)]:return _0x2a725f(Pe,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x1b1)]:return _0x2a725f(Te,{});case c['PRESENTING']:return _0x2a725f(Ae,{'coordinator':_0x2d4cf8});default:return null;}}function $e(_0xe2c10a){const _0x42d232=_0x3f8b8a,{coordinator:_0x5432b0}=_0xe2c10a;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f('div',{'className':_0x42d232(0x13f),'children':'Present\x20this\x20document'}),_0x2a725f(_0x3efa6c,{'onClick':()=>_0x5432b0[_0x42d232(0x1aa)](),'children':'Start'})]});}function xe(_0x46d1b7){const _0x3fade4=_0x3f8b8a,{coordinator:_0x3870d3}=_0x46d1b7;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x3fade4(0x1a0),{'className':_0x3fade4(0x13f),'children':_0x3fade4(0x138)}),_0x2a725f(_0x3efa6c,{'onClick':()=>_0x3870d3['stopFollowing'](),'children':_0x3fade4(0x178)})]});}function Pe(_0x2ad8a6){const _0x1507c4=_0x3f8b8a,{coordinator:_0x15114f}=_0x2ad8a6;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x1507c4(0x1a0),{'className':_0x1507c4(0x13f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2a725f(_0x3efa6c,{'variant':_0x1507c4(0x19d),'onClick':()=>_0x15114f['startFollowing'](),'children':_0x1507c4(0x142)})]});}function Ae(_0x4d9d45){const _0x3b0c48=_0x3f8b8a,{coordinator:_0x6739dd}=_0x4d9d45;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x3b0c48(0x1a0),{'className':_0x3b0c48(0x13f),'children':_0x3b0c48(0x18e)}),_0x2a725f(_0x3efa6c,{'variant':_0x3b0c48(0x153),'onClick':()=>_0x6739dd[_0x3b0c48(0x19a)](),'children':_0x3b0c48(0x11e)})]});}function Te(){const _0x5ab2e9=_0x3f8b8a;return _0x2a725f(_0x32f569,{'children':_0x5ab2e9(0x18b)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x692b81,_0x2bd650,_0x55ecc7,_0x573e73)=>{for(var _0x265abf=_0x573e73>0x1?void 0x0:_0x573e73?Fe(_0x2bd650,_0x55ecc7):_0x2bd650,_0x9a9881=_0x692b81['length']-0x1,_0xe49475;_0x9a9881>=0x0;_0x9a9881--)(_0xe49475=_0x692b81[_0x9a9881])&&(_0x265abf=_0xe49475(_0x265abf)||_0x265abf);return _0x265abf;},A=(_0x3e8478,_0x1dc1e1)=>(_0x1d6c49,_0x43136c)=>_0x1dc1e1(_0x1d6c49,_0x43136c,_0x3e8478);let m=class extends _0x159720{constructor(_0x3b5d43,_0x5c3466){const _0x3f13f9=_0x3f8b8a;super(),this[_0x3f13f9(0x195)]=_0x3b5d43,this[_0x3f13f9(0x158)]=_0x5c3466,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x9ce3e3=_0x3f8b8a;this[_0x9ce3e3(0x188)](this[_0x9ce3e3(0x158)][_0x9ce3e3(0x1ad)](_0x4dcc23[_0x9ce3e3(0x17e)],()=>_0x54592c(Le,this[_0x9ce3e3(0x195)])));}};m=He([A(0x0,_0x5559c6(_0x195227)),A(0x1,_0x32b863)],m);const ye='live-share.config',T={};var Ue=Object[_0x3f8b8a(0x13b)],Ve=(_0x57f1cb,_0x1bff20,_0x2e21ac,_0x510d99)=>{const _0x1fc779=_0x3f8b8a;for(var _0x39b7f2=_0x510d99>0x1?void 0x0:_0x510d99?Ue(_0x1bff20,_0x2e21ac):_0x1bff20,_0x16b7ff=_0x57f1cb[_0x1fc779(0x136)]-0x1,_0x49eb70;_0x16b7ff>=0x0;_0x16b7ff--)(_0x49eb70=_0x57f1cb[_0x16b7ff])&&(_0x39b7f2=_0x49eb70(_0x39b7f2)||_0x39b7f2);return _0x39b7f2;},je=(_0xa2122c,_0x9f8f62)=>(_0x508fa7,_0x2b1df8)=>_0x9f8f62(_0x508fa7,_0x2b1df8,_0xa2122c);let I=class extends _0x159720{constructor(_0xcc460c){const _0x27f7e3=_0x3f8b8a;super(),this['_liveShareService']=_0xcc460c,this[_0x27f7e3(0x13a)]();}[_0x3f8b8a(0x13a)](){const _0x73d333=_0x3f8b8a;[_0x23298b['id'],_0x5acac7['id'],_0x7f48eb['id']][_0x73d333(0x151)](_0x475cc7=>{const _0x89d838=_0x73d333;this['disposeWithMe'](this[_0x89d838(0x16d)][_0x89d838(0x13e)](_0x475cc7));});}};I=Ve([je(0x0,_0x5559c6(L))],I);var Me=Object[_0x3f8b8a(0x121)],ke=Object[_0x3f8b8a(0x13b)],Ge=(_0x2116fc,_0xb34a52,_0x3b2d2a)=>_0xb34a52 in _0x2116fc?Me(_0x2116fc,_0xb34a52,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b2d2a}):_0x2116fc[_0xb34a52]=_0x3b2d2a,We=(_0x17513b,_0xfb1c9a,_0x4b4434,_0x41a9a5)=>{const _0x4fb515=_0x3f8b8a;for(var _0xefc1c8=_0x41a9a5>0x1?void 0x0:_0x41a9a5?ke(_0xfb1c9a,_0x4b4434):_0xfb1c9a,_0x158699=_0x17513b[_0x4fb515(0x136)]-0x1,_0x21492d;_0x158699>=0x0;_0x158699--)(_0x21492d=_0x17513b[_0x158699])&&(_0xefc1c8=_0x21492d(_0xefc1c8)||_0xefc1c8);return _0xefc1c8;},F=(_0x1e2c9c,_0x11c040)=>(_0x294155,_0x9fd399)=>_0x11c040(_0x294155,_0x9fd399,_0x1e2c9c),B=(_0x59a4a2,_0x4ef318,_0x35ae5e)=>Ge(_0x59a4a2,typeof _0x4ef318!='symbol'?_0x4ef318+'':_0x4ef318,_0x35ae5e);const Ye=_0x3f8b8a(0x18c);let b=class extends _0x25bb0a{constructor(_0x459cf0=T,_0x37b1e9,_0x52a233){const _0x556311=_0x3f8b8a;super(),this[_0x556311(0x12f)]=_0x459cf0,this[_0x556311(0x195)]=_0x37b1e9,this[_0x556311(0x157)]=_0x52a233;const {..._0x520479}=_0x39e1c5({},T,this[_0x556311(0x12f)]);this[_0x556311(0x157)][_0x556311(0x1b7)](ye,_0x520479);}[_0x3f8b8a(0x196)](){const _0x4767d2=_0x3f8b8a;_0x46d24c(this['_injector'],_0x7a71b0([[L],[S],[I],[m]],this[_0x4767d2(0x12f)][_0x4767d2(0x1bc)])),_0x4d514b(this['_injector'],[[I]]);}[_0x3f8b8a(0x130)](){const _0x30604d=_0x3f8b8a;_0x4d514b(this[_0x30604d(0x195)],[[m]]);}};B(b,'type',_0x3fe8fe['UNIVER_UNKNOWN']),B(b,'pluginName',Ye),b=We([_0x3f7112(_0x52b6d2),F(0x1,_0x5559c6(_0x195227)),F(0x2,_0x5c28f1)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
function _0x3482(_0x5a399,_0x453cb5){const _0x33189a=_0x3318();return _0x3482=function(_0x3482b3,_0x26b02a){_0x3482b3=_0x3482b3-0x1dc;let _0x132b6c=_0x33189a[_0x3482b3];return _0x132b6c;},_0x3482(_0x5a399,_0x453cb5);}const _0x25ee2b=_0x3482;(function(_0x354478,_0x12db55){const _0x2168d5=_0x3482,_0x46b94e=_0x354478();while(!![]){try{const _0x565bcf=parseInt(_0x2168d5(0x1ee))/0x1*(-parseInt(_0x2168d5(0x263))/0x2)+parseInt(_0x2168d5(0x266))/0x3*(-parseInt(_0x2168d5(0x21e))/0x4)+parseInt(_0x2168d5(0x257))/0x5+-parseInt(_0x2168d5(0x202))/0x6+parseInt(_0x2168d5(0x1f9))/0x7+-parseInt(_0x2168d5(0x248))/0x8*(parseInt(_0x2168d5(0x209))/0x9)+parseInt(_0x2168d5(0x26c))/0xa;if(_0x565bcf===_0x12db55)break;else _0x46b94e['push'](_0x46b94e['shift']());}catch(_0x18b024){_0x46b94e['push'](_0x46b94e['shift']());}}}(_0x3318,0xb5ecf));var J=Object[_0x25ee2b(0x243)],K=(_0x510492,_0x1f3d86,_0x2497f1)=>_0x1f3d86 in _0x510492?J(_0x510492,_0x1f3d86,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2497f1}):_0x510492[_0x1f3d86]=_0x2497f1,u=(_0xe5eb6d,_0x347bcd,_0x4870e3)=>K(_0xe5eb6d,typeof _0x347bcd!=_0x25ee2b(0x219)?_0x347bcd+'':_0x347bcd,_0x4870e3);function _0x3318(){const _0x479033=['url(#$1','idle','_startPresenting','find','stopPresenting','disposeWithMe','1437547bZmhtX','shouldShareOperation','ONLINE','http://www.w3.org/2000/svg','getLiveShareCoordinator','trim','includes','set','_sharedOperations','getOwnPropertyDescriptor','parse','7006104tvmsUt','LIVESHARE_OPERATION','displayName','_injector','fill','_commandDisposable','Start\x20following','_stopPresenting','pipe','5552412NNrBXY','_handleNewChangeSets','getValue','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','createInstance','_univerInstanceService','You\x27are\x20offline.','533412CDDCok','idSuffix','_configService','HEADER_MENU','_reporters','startFollowing','_liveShareService','pluginName','_beIdle','FOLLOWING','getCurrentTypeOfUnit$','not-following','current','getTypeOfUnitAdded$','registerInitialStateReporter','init','symbol','_fetchOperations','delete','1em','executeCommand','1745188gsfpnF','clear','UNIVER_SHEET','_handleOffline','UniverIcon','button','xlink:href','text','override','univerjs-icon\x20univerjs-icon-','registerComponent','following','_status','_startFollowing','PRESENTING','stringify','div','_handleNewHost','getStatus','_entities','_collabSessionService','reverse','dispose$','onStarting','colorChannel1','_init','toString','_presenter','entries','_handleOperation','has','forEach','_stopFollowing','Start','Stop\x20following','_status$','tryStartPresenting','defineProperty','from','tag','Stop\x20presenting','complete','144sehzeA','LiveShareIcon','event$','requireSession','get','getMemberID','offline','subscribe','onRendered','sessionStatus$','getUnitId','attrs','children','send','You\x27re\x20presenting\x20the\x20document','5159920YkxSvJ','data','status$','presenting','map','LIVESHARE_TERMINATE','then','univer-size-4','_mountLiveShare','_unitID','univer-mb-3\x20univer-w-full\x20univer-text-sm','UNIVER_UNKNOWN','2IoxlhZ','LIVESHARE_REQUEST_HOST','end','3sHjtVt','path','values','unitId','sheet','evenodd','25783810OQViQe','presenter','add','_uiPartsService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SAME_OPERATION_SHARE_INTERVAL','substring','OFFLINE','use','NOT_FOLLOWING','mask','_startLiveShareCoordinator','memberID','_handleOnline','string','OPERATION','unsubscribe','next','stopFollowing','asObservable','svg','Present\x20this\x20document','length','type','params','operations','dispose','currentColor','_handleTerminate','NEW_CHANGESETS','default','getInitialStates','_commandService','_config','_collabSession'];_0x3318=function(){return _0x479033;};return _0x3318();}import{Disposable as _0x536fe5,toDisposable as _0x3791d0,IUniverInstanceService as _0x321915,Inject as _0x5df2f1,Injector as _0x2773ce,IConfigService as _0x289228,ICommandService as _0x4719b3,RxDisposable as _0x57de3b,UniverInstanceType as _0x550b95,DisposableCollection as _0x3feb8d,CommandType as _0x463f33,DependentOn as _0x2b6788,Plugin as _0x4155e9,merge as _0x12cf70,registerDependencies as _0x70c5c8,mergeOverrideWithDependencies as _0x4949c7,touchDependencies as _0x4dbc52}from'@univerjs/core';import{useDependency as _0x342b78,useObservable as _0x1df29a,IUIPartsService as _0xaa2672,BuiltInUIPart as _0x48a98c,connectInjector as _0x21b5cb}from'@univerjs/ui';import{jsx as _0x26e6ab,jsxs as _0x198524,Fragment as _0x518b0d}from'react/jsx-runtime';import{Dropdown as _0x529267,clsx as _0x57a711,Button as _0x23fd45}from'@univerjs/design';import{useRef as _0x43d6ea,createElement as _0x350afd,forwardRef as _0x39b81e,useState as _0x1591a3,useEffect as _0x5d5703}from'react';import{CollaborationEvent as _0x1e8c77,parseProtocolChangeset as _0x1b8fde}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x7119a7,SessionStatus as _0xe29edb,UniverCollaborationClientPlugin as _0x318246}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xf9e31d,SetWorksheetActiveOperation as _0x10e90c}from'@univerjs/sheets';import{BehaviorSubject as _0x6a94b9,Subject as _0x3a69f0}from'rxjs';import{takeUntil as _0x4bc654,throttleTime as _0x4427dc}from'rxjs/operators';import{SetZoomRatioOperation as _0x170f2f,SetScrollOperation as _0xc75d5e}from'@univerjs/sheets-ui';function k({ref:_0x5d97cb,..._0x3f71cb}){const _0x3f5d6e=_0x25ee2b,{icon:_0x5866cd,id:_0x36dd4f,className:_0x4fa107,extend:_0x2456d7,..._0x4e3c3a}=_0x3f71cb,_0x25334c=(_0x3f5d6e(0x227)+_0x36dd4f+'\x20'+(_0x4fa107||''))[_0x3f5d6e(0x1f3)](),_0xc780ed=_0x43d6ea('_'+Oe());return G(_0x5866cd,''+_0x36dd4f,{'defIds':_0x5866cd['defIds'],'idSuffix':_0xc780ed[_0x3f5d6e(0x215)]},{'ref':_0x5d97cb,'className':_0x25334c,..._0x4e3c3a},_0x2456d7);}function G(_0x3c57f0,_0x6ffbab,_0x82c7e8,_0x454aa9,_0x11bcab){const _0x433012=_0x25ee2b;return _0x350afd(_0x3c57f0[_0x433012(0x245)],{'key':_0x6ffbab,...be(_0x3c57f0,_0x82c7e8,_0x11bcab),..._0x454aa9},(Ee(_0x3c57f0,_0x82c7e8)[_0x433012(0x254)]||[])['map']((_0x1d9e28,_0x5a8dd0)=>G(_0x1d9e28,_0x6ffbab+'-'+_0x3c57f0['tag']+'-'+_0x5a8dd0,_0x82c7e8,void 0x0,_0x11bcab)));}function be(_0x5bfd07,_0x16c8ee,_0x526cb2){const _0x40369f=_0x25ee2b,_0x539313={..._0x5bfd07[_0x40369f(0x253)]};_0x526cb2!=null&&_0x526cb2[_0x40369f(0x236)]&&_0x539313[_0x40369f(0x1fd)]==='colorChannel1'&&(_0x539313[_0x40369f(0x1fd)]=_0x526cb2[_0x40369f(0x236)]),_0x5bfd07[_0x40369f(0x245)]===_0x40369f(0x276)&&_0x539313['id']&&(_0x539313['id']=_0x539313['id']+_0x16c8ee[_0x40369f(0x20a)]),Object['entries'](_0x539313)['forEach'](([_0x446a2f,_0x2d2470])=>{const _0x12cf09=_0x40369f;_0x446a2f===_0x12cf09(0x276)&&typeof _0x2d2470==_0x12cf09(0x27a)&&(_0x539313[_0x446a2f]=_0x2d2470['replace'](/url\(#(.*)\)/,_0x12cf09(0x1e8)+_0x16c8ee[_0x12cf09(0x20a)]+')'));});const {defIds:_0x215a09}=_0x16c8ee;return!_0x215a09||_0x215a09[_0x40369f(0x282)]===0x0||(_0x5bfd07[_0x40369f(0x245)]===_0x40369f(0x274)&&_0x539313[_0x40369f(0x224)]&&(_0x539313[_0x40369f(0x224)]=_0x539313['xlink:href']+_0x16c8ee[_0x40369f(0x20a)]),Object[_0x40369f(0x23a)](_0x539313)[_0x40369f(0x23d)](([_0x5e70c9,_0x2cd61e])=>{const _0x9206e0=_0x40369f;typeof _0x2cd61e==_0x9206e0(0x27a)&&(_0x539313[_0x5e70c9]=_0x2cd61e['replace'](/url\(#(.*)\)/,_0x9206e0(0x1e8)+_0x16c8ee['idSuffix']+')'));})),_0x539313;}function Ee(_0x2374e7,_0x5dfe8a){const _0x460d18=_0x25ee2b;var _0x486852;const {defIds:_0x409ea7}=_0x5dfe8a;return!_0x409ea7||_0x409ea7[_0x460d18(0x282)]===0x0?_0x2374e7:_0x2374e7[_0x460d18(0x245)]==='defs'&&((_0x486852=_0x2374e7[_0x460d18(0x254)])!=null&&_0x486852[_0x460d18(0x282)])?{..._0x2374e7,'children':_0x2374e7[_0x460d18(0x254)][_0x460d18(0x25b)](_0x4f4fe0=>typeof _0x4f4fe0[_0x460d18(0x253)]['id']==_0x460d18(0x27a)&&_0x409ea7&&_0x409ea7[_0x460d18(0x1f4)](_0x4f4fe0[_0x460d18(0x253)]['id'])?{..._0x4f4fe0,'attrs':{..._0x4f4fe0[_0x460d18(0x253)],'id':_0x4f4fe0[_0x460d18(0x253)]['id']+_0x5dfe8a[_0x460d18(0x20a)]}}:_0x4f4fe0)}:_0x2374e7;}function Oe(){const _0x3afdb9=_0x25ee2b;return Math['random']()[_0x3afdb9(0x238)](0x24)[_0x3afdb9(0x272)](0x2,0x8);}k['displayName']=_0x25ee2b(0x222);const we={'tag':_0x25ee2b(0x280),'attrs':{'xmlns':_0x25ee2b(0x1f1),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x25ee2b(0x21c),'height':_0x25ee2b(0x21c)},'children':[{'tag':_0x25ee2b(0x267),'attrs':{'fill':_0x25ee2b(0x1e0),'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':_0x25ee2b(0x267),'attrs':{'fill':_0x25ee2b(0x1e0),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x25ee2b(0x26b),'clipRule':_0x25ee2b(0x26b)}}]},W=_0x39b81e(function(_0xaa45de,_0x29d9be){return _0x350afd(k,Object['assign']({},_0xaa45de,{'id':'live-share-icon','ref':_0x29d9be,'icon':we}));});W[_0x25ee2b(0x1fb)]=_0x25ee2b(0x249);class L extends _0x536fe5{constructor(){const _0x449475=_0x25ee2b;super(...arguments),u(this,_0x449475(0x1f6),new Set()),u(this,_0x449475(0x20d),new Set());}['registerSharedOperation'](_0x459cf3){const _0x1246a7=_0x25ee2b;return this[_0x1246a7(0x1f6)][_0x1246a7(0x26e)](_0x459cf3),_0x3791d0(()=>this[_0x1246a7(0x1f6)][_0x1246a7(0x21b)](_0x459cf3));}[_0x25ee2b(0x217)](_0x5a1af5){const _0xdba816=_0x25ee2b;return this[_0xdba816(0x20d)][_0xdba816(0x26e)](_0x5a1af5),_0x3791d0(()=>this[_0xdba816(0x20d)][_0xdba816(0x21b)](_0x5a1af5));}[_0x25ee2b(0x1ef)](_0x399e9f){const _0x4ef55e=_0x25ee2b;return this['_sharedOperations'][_0x4ef55e(0x23c)](_0x399e9f);}[_0x25ee2b(0x1e4)](_0x56102d){const _0x3877f2=_0x25ee2b;return Array[_0x3877f2(0x244)](this[_0x3877f2(0x20d)])[_0x3877f2(0x25b)](_0x3ddab5=>_0x3ddab5(_0x56102d));}}var Ne=Object[_0x25ee2b(0x1f7)],Y=(_0x25a209,_0x868f91,_0x3c9657,_0x37bba0)=>{const _0x345783=_0x25ee2b;for(var _0x143c41=_0x37bba0>0x1?void 0x0:_0x37bba0?Ne(_0x868f91,_0x3c9657):_0x868f91,_0x4f483d=_0x25a209[_0x345783(0x282)]-0x1,_0xb2d609;_0x4f483d>=0x0;_0x4f483d--)(_0xb2d609=_0x25a209[_0x4f483d])&&(_0x143c41=_0xb2d609(_0x143c41)||_0x143c41);return _0x143c41;},_=(_0x265ea9,_0x2a9cfd)=>(_0x225637,_0x32b365)=>_0x2a9cfd(_0x225637,_0x32b365,_0x265ea9);let S=class extends _0x57de3b{constructor(_0x112f63,_0x477400,_0x525d85){const _0x196676=_0x25ee2b;super(),u(this,_0x196676(0x231),new Map()),(this[_0x196676(0x207)]=_0x112f63,this['_injector']=_0x477400,this[_0x196676(0x232)]=_0x525d85,this[_0x196676(0x237)]());}async[_0x25ee2b(0x1f2)](_0x183430){const _0x119dfd=_0x25ee2b;return this[_0x119dfd(0x231)][_0x119dfd(0x23c)](_0x183430)||await this['_startLiveShareCoordinator'](_0x183430),this['_entities'][_0x119dfd(0x24c)](_0x183430);}['getLiveShareCoordinatorSync'](_0x17b983){const _0x51bf67=_0x25ee2b;var _0x27db4e;return(_0x27db4e=this['_entities'][_0x51bf67(0x24c)](_0x17b983))!=null?_0x27db4e:null;}[_0x25ee2b(0x237)](){const _0x16ee00=_0x25ee2b;this[_0x16ee00(0x207)][_0x16ee00(0x216)](_0x550b95[_0x16ee00(0x220)])[_0x16ee00(0x201)](_0x4bc654(this[_0x16ee00(0x234)]))[_0x16ee00(0x24f)](async _0x11bfb3=>{const _0x5b97de=_0x16ee00,_0x135873=_0x11bfb3[_0x5b97de(0x252)]();this[_0x5b97de(0x231)][_0x5b97de(0x23c)](_0x135873)||this['_startLiveShareCoordinator'](_0x135873);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x550b95[_0x16ee00(0x220)])[_0x16ee00(0x201)](_0x4bc654(this['dispose$']))[_0x16ee00(0x24f)](_0x507166=>{const _0x4d1466=_0x16ee00,_0x30767f=_0x507166[_0x4d1466(0x252)](),_0x4375ba=this[_0x4d1466(0x231)][_0x4d1466(0x24c)](_0x30767f);_0x4375ba==null||_0x4375ba[_0x4d1466(0x1df)]();});}async[_0x25ee2b(0x277)](_0x1bf4c8){const _0x3030b3=_0x25ee2b,_0x3246ac=await this[_0x3030b3(0x232)][_0x3030b3(0x24b)](_0x1bf4c8),_0x42af57=this[_0x3030b3(0x1fc)][_0x3030b3(0x206)](N,_0x1bf4c8,_0x3246ac);return _0x42af57[_0x3030b3(0x218)](),this['_entities'][_0x3030b3(0x1f5)](_0x1bf4c8,_0x42af57),_0x42af57;}};S=Y([_(0x0,_0x321915),_(0x1,_0x5df2f1(_0x2773ce)),_(0x2,_0x5df2f1(_0x7119a7))],S);var c=(_0x39b654=>(_0x39b654[_0x25ee2b(0x273)]=_0x25ee2b(0x24e),_0x39b654['IDLE']=_0x25ee2b(0x1e9),_0x39b654[_0x25ee2b(0x212)]='following',_0x39b654[_0x25ee2b(0x275)]='not-following',_0x39b654[_0x25ee2b(0x22c)]=_0x25ee2b(0x25a),_0x39b654))(c||{});const Ce=_0x25ee2b(0x271),De=0xc8;let N=class extends _0x57de3b{constructor(_0x1487c5,_0x4820de,_0x1f0c41,_0xeca8d4,_0x23f29a){const _0x5acdd5=_0x25ee2b;super(),u(this,_0x5acdd5(0x241),new _0x6a94b9('idle')),u(this,'status$',this[_0x5acdd5(0x241)][_0x5acdd5(0x27f)]()),u(this,_0x5acdd5(0x237),!0x1),u(this,_0x5acdd5(0x1fe),null),u(this,_0x5acdd5(0x239),null),(this[_0x5acdd5(0x260)]=_0x1487c5,this['_collabSession']=_0x4820de,this['_configService']=_0x1f0c41,this[_0x5acdd5(0x20f)]=_0xeca8d4,this[_0x5acdd5(0x1e5)]=_0x23f29a);}get[_0x25ee2b(0x22a)](){const _0x1a0ed4=_0x25ee2b;return this[_0x1a0ed4(0x241)][_0x1a0ed4(0x204)]();}['dispose'](){const _0x227d30=_0x25ee2b;var _0x33b4b8;(_0x33b4b8=this['_commandDisposable'])==null||_0x33b4b8['dispose'](),this['_status$'][_0x227d30(0x27d)](_0x227d30(0x1e9)),this[_0x227d30(0x241)][_0x227d30(0x247)]();}[_0x25ee2b(0x230)](){return this['_status'];}[_0x25ee2b(0x218)](){const _0x20159f=_0x25ee2b;this[_0x20159f(0x237)]||(this[_0x20159f(0x237)]=!0x0,this[_0x20159f(0x1e7)][_0x20159f(0x251)][_0x20159f(0x201)](_0x4bc654(this['dispose$']))[_0x20159f(0x24f)](_0x143a01=>{const _0x574d78=_0x20159f;switch(_0x143a01){case _0xe29edb[_0x574d78(0x273)]:this['_handleOffline']();break;case _0xe29edb[_0x574d78(0x1f0)]:this[_0x574d78(0x279)]();break;}}),this[_0x20159f(0x1e7)][_0x20159f(0x24a)][_0x20159f(0x201)](_0x4bc654(this[_0x20159f(0x234)]))[_0x20159f(0x24f)](_0x379e83=>{const _0x3162c2=_0x20159f,{eventID:_0x4fd48e}=_0x379e83;switch(_0x4fd48e){case _0x1e8c77['LIVESHARE_NEW_HOST']:this[_0x3162c2(0x22f)](_0x379e83);break;case _0x1e8c77[_0x3162c2(0x1fa)]:this[_0x3162c2(0x23b)](_0x379e83);break;case _0x1e8c77[_0x3162c2(0x25c)]:this[_0x3162c2(0x1e1)]();break;case _0x1e8c77[_0x3162c2(0x1e2)]:this[_0x3162c2(0x203)](_0x379e83);break;}}));}[_0x25ee2b(0x242)](){const _0xbf9ef7=_0x25ee2b;this[_0xbf9ef7(0x1e7)]['send']({'eventID':_0x1e8c77[_0xbf9ef7(0x264)],'data':{'unitID':this[_0xbf9ef7(0x260)],'userID':this[_0xbf9ef7(0x1e7)][_0xbf9ef7(0x24d)]()}},this[_0xbf9ef7(0x260)]);}[_0x25ee2b(0x1ec)](){const _0x5e7e2a=_0x25ee2b;this[_0x5e7e2a(0x22a)]===_0x5e7e2a(0x25a)&&(this[_0x5e7e2a(0x241)][_0x5e7e2a(0x27d)](_0x5e7e2a(0x1e9)),this[_0x5e7e2a(0x1e7)][_0x5e7e2a(0x255)]({'eventID':_0x1e8c77[_0x5e7e2a(0x25c)],'data':{'unitID':this[_0x5e7e2a(0x260)]}},this[_0x5e7e2a(0x260)]));}['startFollowing'](){const _0x3266c3=_0x25ee2b;this[_0x3266c3(0x22a)]===_0x3266c3(0x214)&&(this[_0x3266c3(0x241)]['next'](_0x3266c3(0x229)),this['_startFollowing']());}[_0x25ee2b(0x27e)](){const _0x174239=_0x25ee2b;this[_0x174239(0x22a)]===_0x174239(0x229)&&this[_0x174239(0x23e)]();}['_handleNewHost'](_0x291737){const _0x686279=_0x25ee2b,{presenter:_0x368e54}=_0x291737[_0x686279(0x258)],_0x873dc9=this[_0x686279(0x1e7)]['getMemberID']();this['_presenter']=_0x368e54,_0x368e54===_0x873dc9?(this[_0x686279(0x23e)](),this[_0x686279(0x1ea)]()):this[_0x686279(0x22a)]!==_0x686279(0x214)&&(this[_0x686279(0x200)](),this[_0x686279(0x22b)]());}['_fetchOperations'](){const _0x1203d9=_0x25ee2b,_0x789159={'eventID':_0x1e8c77['LIVESHARE_FETCH_OPERATIONS']};this[_0x1203d9(0x1e7)][_0x1203d9(0x255)](_0x789159,this[_0x1203d9(0x260)]);}[_0x25ee2b(0x1e1)](){const _0x1b704b=_0x25ee2b;this[_0x1b704b(0x239)]=null,this[_0x1b704b(0x22a)]!==_0x1b704b(0x25a)&&this[_0x1b704b(0x211)]();}[_0x25ee2b(0x203)](_0x54a134){const _0x5edd0c=_0x25ee2b;if(this[_0x5edd0c(0x22a)]===_0x5edd0c(0x229)&&this[_0x5edd0c(0x239)]===_0x54a134[_0x5edd0c(0x258)][_0x5edd0c(0x278)]){const _0x5af89a=_0x1b8fde(_0x54a134[_0x5edd0c(0x258)])['mutations'][_0x5edd0c(0x233)]()[_0x5edd0c(0x1eb)](_0x21c6c0=>_0x21c6c0['id']===_0xf9e31d['id']);if(_0x5af89a){const _0x3680f1=_0x5af89a[_0x5edd0c(0x1dd)][_0x5edd0c(0x269)],_0x449956=_0x5af89a[_0x5edd0c(0x1dd)][_0x5edd0c(0x26a)]['id'];setTimeout(()=>{const _0x1b2e4c=_0x5edd0c;this[_0x1b2e4c(0x1e5)][_0x1b2e4c(0x21d)](_0x10e90c['id'],{'unitId':_0x3680f1,'subUnitId':_0x449956},{'fromCollab':!0x0});});}}}[_0x25ee2b(0x1ea)](){const _0x58a802=_0x25ee2b;this[_0x58a802(0x241)]['next'](_0x58a802(0x25a));const _0x4f04da=new Map(),_0x5a6c70=this[_0x58a802(0x1fe)]=new _0x3feb8d();_0x5a6c70[_0x58a802(0x26e)](_0x3791d0(()=>{const _0x25f11b=_0x58a802;_0x4f04da[_0x25f11b(0x23d)](_0x4a6055=>_0x4a6055[_0x25f11b(0x247)]()),_0x4f04da[_0x25f11b(0x21f)]();})),_0x5a6c70['add'](this['_commandService']['onCommandExecuted'](_0x21a68c=>{const _0x3325f2=_0x58a802;var _0x2f9c0e;if(_0x21a68c[_0x3325f2(0x1dc)]!==_0x463f33[_0x3325f2(0x27b)]||!this[_0x3325f2(0x20f)][_0x3325f2(0x1ef)](_0x21a68c['id']))return;const {id:_0x345ab1}=_0x21a68c;let _0x2b95b9;_0x4f04da['has'](_0x345ab1)?_0x2b95b9=_0x4f04da[_0x3325f2(0x24c)](_0x345ab1):(_0x2b95b9=new _0x3a69f0(),_0x4f04da[_0x3325f2(0x1f5)](_0x345ab1,_0x2b95b9),_0x2b95b9['pipe'](_0x4427dc((_0x2f9c0e=this[_0x3325f2(0x20b)]['getConfig'](Ce))!=null?_0x2f9c0e:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4a7ab4=>{const _0x4767b4=_0x3325f2;this[_0x4767b4(0x1e7)][_0x4767b4(0x255)]({'eventID':_0x1e8c77[_0x4767b4(0x1fa)],'data':{'unitID':this['_unitID'],'operations':{[_0x4a7ab4['id']]:{'id':_0x4a7ab4['id'],'params':JSON[_0x4767b4(0x22d)](_0x4a7ab4[_0x4767b4(0x1dd)])}}}},this[_0x4767b4(0x260)]);})),_0x2b95b9[_0x3325f2(0x27d)](_0x21a68c);})),this[_0x58a802(0x20f)][_0x58a802(0x1e4)](this[_0x58a802(0x260)])['forEach'](_0x52efee=>this[_0x58a802(0x1e7)]['send']({'eventID':_0x1e8c77[_0x58a802(0x1fa)],'data':{'unitID':this[_0x58a802(0x260)],'operations':{[_0x52efee['id']]:{'id':_0x52efee['id'],'params':JSON['stringify'](_0x52efee[_0x58a802(0x1dd)])}}}},this['_unitID']));}[_0x25ee2b(0x200)](){const _0x45c5c5=_0x25ee2b;var _0x26b715;this[_0x45c5c5(0x241)][_0x45c5c5(0x27d)](_0x45c5c5(0x1e9)),(_0x26b715=this[_0x45c5c5(0x1fe)])==null||_0x26b715[_0x45c5c5(0x1df)](),this[_0x45c5c5(0x1fe)]=null;}['_startFollowing'](){const _0x1ebc2d=_0x25ee2b;var _0x5a5309;(_0x5a5309=this[_0x1ebc2d(0x1fe)])==null||_0x5a5309[_0x1ebc2d(0x1df)](),this[_0x1ebc2d(0x241)][_0x1ebc2d(0x27d)](_0x1ebc2d(0x229));}['_beIdle'](){const _0x446edc=_0x25ee2b;var _0x5b798d;this[_0x446edc(0x241)][_0x446edc(0x27d)](_0x446edc(0x1e9)),(_0x5b798d=this['_commandDisposable'])==null||_0x5b798d[_0x446edc(0x1df)](),this[_0x446edc(0x1fe)]=null;}[_0x25ee2b(0x23e)](){const _0x36f832=_0x25ee2b;var _0x49ba80;this[_0x36f832(0x241)]['next']('not-following'),(_0x49ba80=this['_commandDisposable'])==null||_0x49ba80[_0x36f832(0x1df)]();}[_0x25ee2b(0x23b)](_0x38b346){const _0xff54c6=_0x25ee2b;if([_0xff54c6(0x25a),_0xff54c6(0x214),_0xff54c6(0x24e)][_0xff54c6(0x1f4)](this[_0xff54c6(0x22a)])||!_0x38b346['data'][_0xff54c6(0x26d)]||_0x38b346['data']['presenter']===this['_collabSession'][_0xff54c6(0x24d)]())return;this[_0xff54c6(0x22a)]===_0xff54c6(0x1e9)&&this[_0xff54c6(0x22b)]();const _0x535403=_0x38b346[_0xff54c6(0x258)][_0xff54c6(0x1de)];Object[_0xff54c6(0x268)](_0x535403)['forEach'](_0x3422cd=>{const _0x8d71cc=_0xff54c6;this[_0x8d71cc(0x1e5)][_0x8d71cc(0x21d)](_0x3422cd['id'],_0x3422cd[_0x8d71cc(0x1dd)]?JSON[_0x8d71cc(0x1f8)](_0x3422cd[_0x8d71cc(0x1dd)]):null,{'fromCollab':!0x0});});}[_0x25ee2b(0x221)](){const _0x1fbd48=_0x25ee2b;var _0x4ece1d;this[_0x1fbd48(0x241)][_0x1fbd48(0x27d)](_0x1fbd48(0x24e)),(_0x4ece1d=this[_0x1fbd48(0x1fe)])==null||_0x4ece1d['dispose']();}[_0x25ee2b(0x279)](){const _0x1ecae0=_0x25ee2b;this[_0x1ecae0(0x241)][_0x1ecae0(0x27d)](_0x1ecae0(0x1e9)),this[_0x1ecae0(0x21a)]();}};N=Y([_(0x2,_0x289228),_(0x3,_0x5df2f1(L)),_(0x4,_0x4719b3)],N);function Le(){const _0x54a579=_0x25ee2b,_0xa855d1=_0x342b78(S),_0x206ccc=_0x342b78(_0x321915),_0xeb011d=_0x1df29a(()=>_0x206ccc[_0x54a579(0x213)](_0x550b95[_0x54a579(0x220)]),void 0x0,!0x1,[]),[_0x4dfef9,_0x4b6f1e]=_0x1591a3(null),[_0x95edf4,_0x371dcd]=_0x1591a3(c['IDLE']),_0x52a2fe=_0x43d6ea(null);return _0x5d5703(()=>(_0xeb011d&&_0xa855d1[_0x54a579(0x1f2)](_0xeb011d[_0x54a579(0x252)]())[_0x54a579(0x25d)](_0x52fcdd=>{const _0x42c154=_0x54a579;_0x4b6f1e(_0x52fcdd),_0x52a2fe[_0x42c154(0x215)]=_0x52fcdd[_0x42c154(0x259)]['subscribe'](_0x4f3e93=>{_0x371dcd(_0x4f3e93);});}),()=>{const _0x296cd0=_0x54a579;var _0x18d4a8;(_0x18d4a8=_0x52a2fe['current'])==null||_0x18d4a8[_0x296cd0(0x27c)](),_0x52a2fe['current']=null;}),[_0xeb011d,_0xa855d1]),_0x4dfef9?_0x26e6ab(_0x529267,{'align':_0x54a579(0x265),'disabled':_0x95edf4===c[_0x54a579(0x273)],'className':_0x54a579(0x205),'overlay':_0x26e6ab(Re,{'status':_0x95edf4,'coordinator':_0x4dfef9}),'children':_0x26e6ab(_0x54a579(0x223),{'className':_0x57a711(_0x54a579(0x270),{'univer-cursor-not-allowed':_0x95edf4===c[_0x54a579(0x273)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x95edf4!==c[_0x54a579(0x273)]}),'type':'button','children':_0x26e6ab(W,{'className':_0x54a579(0x25e)})})}):null;}function Re(_0x4916ca){const _0x5c53a=_0x25ee2b,{status:_0x1fb38d,coordinator:_0x3bcb41}=_0x4916ca;switch(_0x1fb38d){case c['IDLE']:return _0x26e6ab($e,{'coordinator':_0x3bcb41});case c[_0x5c53a(0x212)]:return _0x26e6ab(xe,{'coordinator':_0x3bcb41});case c[_0x5c53a(0x275)]:return _0x26e6ab(Pe,{'coordinator':_0x3bcb41});case c[_0x5c53a(0x273)]:return _0x26e6ab(Te,{});case c[_0x5c53a(0x22c)]:return _0x26e6ab(Ae,{'coordinator':_0x3bcb41});default:return null;}}function $e(_0x2fefea){const _0xb64479=_0x25ee2b,{coordinator:_0x3e360d}=_0x2fefea;return _0x198524(_0x518b0d,{'children':[_0x26e6ab(_0xb64479(0x22e),{'className':_0xb64479(0x261),'children':_0xb64479(0x281)}),_0x26e6ab(_0x23fd45,{'onClick':()=>_0x3e360d[_0xb64479(0x242)](),'children':_0xb64479(0x23f)})]});}function xe(_0x126de7){const _0x2d2149=_0x25ee2b,{coordinator:_0x37c5f5}=_0x126de7;return _0x198524(_0x518b0d,{'children':[_0x26e6ab(_0x2d2149(0x22e),{'className':_0x2d2149(0x261),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x26e6ab(_0x23fd45,{'onClick':()=>_0x37c5f5[_0x2d2149(0x27e)](),'children':_0x2d2149(0x240)})]});}function Pe(_0x4c90cd){const _0x134e1a=_0x25ee2b,{coordinator:_0x40d0c0}=_0x4c90cd;return _0x198524(_0x518b0d,{'children':[_0x26e6ab('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x26e6ab(_0x23fd45,{'variant':_0x134e1a(0x225),'onClick':()=>_0x40d0c0[_0x134e1a(0x20e)](),'children':_0x134e1a(0x1ff)})]});}function Ae(_0x59841f){const _0x1f4f08=_0x25ee2b,{coordinator:_0x233bdb}=_0x59841f;return _0x198524(_0x518b0d,{'children':[_0x26e6ab(_0x1f4f08(0x22e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1f4f08(0x256)}),_0x26e6ab(_0x23fd45,{'variant':_0x1f4f08(0x1e3),'onClick':()=>_0x233bdb[_0x1f4f08(0x1ec)](),'children':_0x1f4f08(0x246)})]});}function Te(){const _0x3d2e59=_0x25ee2b;return _0x26e6ab(_0x518b0d,{'children':_0x3d2e59(0x208)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x3fc747,_0x4c20b4,_0x481ef8,_0x4e3c33)=>{const _0xd44746=_0x25ee2b;for(var _0x463da0=_0x4e3c33>0x1?void 0x0:_0x4e3c33?Fe(_0x4c20b4,_0x481ef8):_0x4c20b4,_0x3a0bc2=_0x3fc747[_0xd44746(0x282)]-0x1,_0x5bcd56;_0x3a0bc2>=0x0;_0x3a0bc2--)(_0x5bcd56=_0x3fc747[_0x3a0bc2])&&(_0x463da0=_0x5bcd56(_0x463da0)||_0x463da0);return _0x463da0;},A=(_0x14789f,_0x3b3505)=>(_0x32307a,_0x44e4d1)=>_0x3b3505(_0x32307a,_0x44e4d1,_0x14789f);let m=class extends _0x536fe5{constructor(_0x97cadf,_0x531e22){const _0x59ce35=_0x25ee2b;super(),this[_0x59ce35(0x1fc)]=_0x97cadf,this['_uiPartsService']=_0x531e22,this[_0x59ce35(0x25f)]();}[_0x25ee2b(0x25f)](){const _0x25cc81=_0x25ee2b;this[_0x25cc81(0x1ed)](this[_0x25cc81(0x26f)][_0x25cc81(0x228)](_0x48a98c[_0x25cc81(0x20c)],()=>_0x21b5cb(Le,this[_0x25cc81(0x1fc)])));}};m=He([A(0x0,_0x5df2f1(_0x2773ce)),A(0x1,_0xaa2672)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0xd39551,_0x36bf07,_0x41d170,_0x5dda06)=>{const _0x2a0775=_0x25ee2b;for(var _0x12285e=_0x5dda06>0x1?void 0x0:_0x5dda06?Ue(_0x36bf07,_0x41d170):_0x36bf07,_0x17d3d5=_0xd39551[_0x2a0775(0x282)]-0x1,_0x5030bc;_0x17d3d5>=0x0;_0x17d3d5--)(_0x5030bc=_0xd39551[_0x17d3d5])&&(_0x12285e=_0x5030bc(_0x12285e)||_0x12285e);return _0x12285e;},je=(_0x354c66,_0x17ddc8)=>(_0x27969a,_0x5a0a48)=>_0x17ddc8(_0x27969a,_0x5a0a48,_0x354c66);let I=class extends _0x536fe5{constructor(_0x3870ee){const _0x5eb47a=_0x25ee2b;super(),this[_0x5eb47a(0x20f)]=_0x3870ee,this[_0x5eb47a(0x237)]();}['_init'](){const _0x5ce72f=_0x25ee2b;[_0x170f2f['id'],_0xc75d5e['id'],_0x10e90c['id']][_0x5ce72f(0x23d)](_0x1f5145=>{const _0x2c7a78=_0x5ce72f;this[_0x2c7a78(0x1ed)](this[_0x2c7a78(0x20f)]['registerSharedOperation'](_0x1f5145));});}};I=Ve([je(0x0,_0x5df2f1(L))],I);var Me=Object[_0x25ee2b(0x243)],ke=Object[_0x25ee2b(0x1f7)],Ge=(_0x1a8fbb,_0x5dafc9,_0x5bea9f)=>_0x5dafc9 in _0x1a8fbb?Me(_0x1a8fbb,_0x5dafc9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bea9f}):_0x1a8fbb[_0x5dafc9]=_0x5bea9f,We=(_0x23cda6,_0x4182a2,_0x53f377,_0x299d12)=>{for(var _0x17e5fc=_0x299d12>0x1?void 0x0:_0x299d12?ke(_0x4182a2,_0x53f377):_0x4182a2,_0x4e19e3=_0x23cda6['length']-0x1,_0x43ae9f;_0x4e19e3>=0x0;_0x4e19e3--)(_0x43ae9f=_0x23cda6[_0x4e19e3])&&(_0x17e5fc=_0x43ae9f(_0x17e5fc)||_0x17e5fc);return _0x17e5fc;},F=(_0x3f4518,_0x25e5d5)=>(_0x3732eb,_0x431efa)=>_0x25e5d5(_0x3732eb,_0x431efa,_0x3f4518),B=(_0x5ad5b2,_0x10073b,_0x3efbaf)=>Ge(_0x5ad5b2,typeof _0x10073b!=_0x25ee2b(0x219)?_0x10073b+'':_0x10073b,_0x3efbaf);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x4155e9{constructor(_0x1bb2e4=T,_0x51466b,_0x2c3bb7){const _0x4847fd=_0x25ee2b;super(),this['_config']=_0x1bb2e4,this[_0x4847fd(0x1fc)]=_0x51466b,this['_configService']=_0x2c3bb7;const {..._0x2f5043}=_0x12cf70({},T,this[_0x4847fd(0x1e6)]);this['_configService']['setConfig'](ye,_0x2f5043);}[_0x25ee2b(0x235)](){const _0x372512=_0x25ee2b;_0x70c5c8(this[_0x372512(0x1fc)],_0x4949c7([[L],[S],[I],[m]],this[_0x372512(0x1e6)][_0x372512(0x226)])),_0x4dbc52(this[_0x372512(0x1fc)],[[I]]);}[_0x25ee2b(0x250)](){const _0x410537=_0x25ee2b;_0x4dbc52(this[_0x410537(0x1fc)],[[m]]);}};B(b,'type',_0x550b95[_0x25ee2b(0x262)]),B(b,_0x25ee2b(0x210),Ye),b=We([_0x2b6788(_0x318246),F(0x1,_0x5df2f1(_0x2773ce)),F(0x2,_0x289228)],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 _0x5a1b65=_0x2017;function _0x2017(_0x442882,_0x4074a1){const _0x469bc4=_0x469b();return _0x2017=function(_0x20176d,_0xcf740a){_0x20176d=_0x20176d-0x113;let _0x51540f=_0x469bc4[_0x20176d];return _0x51540f;},_0x2017(_0x442882,_0x4074a1);}(function(_0x1eca5b,_0x5e11b6){const _0x58a6fb=_0x2017,_0x3d25d6=_0x1eca5b();while(!![]){try{const _0x7e574c=parseInt(_0x58a6fb(0x126))/0x1+parseInt(_0x58a6fb(0x12f))/0x2*(parseInt(_0x58a6fb(0x135))/0x3)+parseInt(_0x58a6fb(0x129))/0x4+parseInt(_0x58a6fb(0x131))/0x5*(parseInt(_0x58a6fb(0x114))/0x6)+parseInt(_0x58a6fb(0x12b))/0x7*(parseInt(_0x58a6fb(0x136))/0x8)+parseInt(_0x58a6fb(0x120))/0x9*(-parseInt(_0x58a6fb(0x124))/0xa)+-parseInt(_0x58a6fb(0x11c))/0xb;if(_0x7e574c===_0x5e11b6)break;else _0x3d25d6['push'](_0x3d25d6['shift']());}catch(_0x1bd49f){_0x3d25d6['push'](_0x3d25d6['shift']());}}}(_0x469b,0xbe0f5));import{LiveShareController as _0x15d6f5,LiveShareStatus as _0x30510a}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x3702dd}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x1ee97d}from'@univerjs/sheets';import{SetScrollOperation as _0x199c7b}from'@univerjs/sheets-ui';import{FRange as _0xdfd2b6}from'@univerjs/sheets/facade';import{FUniver as _0x4a1faf,FEnum as _0x231f6e}from'@univerjs/core/facade';class I extends _0xdfd2b6{[_0x5a1b65(0x11a)](_0x23e585,_0xc3699a,_0x4d59e0,_0x5a25db,_0x2caa20){const _0x5883d0=_0x5a1b65,_0xaa44dd=_0x23e585[_0x5883d0(0x119)](_0x15d6f5),_0x4f5616=_0x23e585['get'](_0x3702dd),_0x5767b0=_0xc3699a[_0x5883d0(0x123)](),_0x447c2b=_0xc3699a[_0x5883d0(0x12e)](),_0x9834a8=_0xaa44dd[_0x5883d0(0x130)](_0x5767b0);(_0x9834a8==null?void 0x0:_0x9834a8[_0x5883d0(0x11d)]())!==_0x30510a[_0x5883d0(0x117)]||(_0x4d59e0['getSheetId']()!==_0x447c2b[_0x5883d0(0x125)]()&&this[_0x5883d0(0x132)][_0x5883d0(0x116)](_0x1ee97d['id'],{'unitId':_0x5767b0,'subUnitId':_0x4d59e0['getSheetId']()}),!_0x4f5616[_0x5883d0(0x115)](_0x5767b0))||_0x2caa20['syncExecuteCommand'](_0x199c7b['id'],{'unitId':_0xc3699a[_0x5883d0(0x123)](),'sheetId':_0x4d59e0['getSheetId'](),'sheetViewStartRow':_0x5a25db[_0x5883d0(0x134)],'sheetViewStartColumn':_0x5a25db[_0x5883d0(0x122)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x469b(){const _0x38d8e5=['33561858XjNOUz','getStatus','IDLE','stopFollowing','117mRCMTm','startFollowing','startColumn','getUnitId','79190nfvwfL','getSheetId','877325MKBYKm','_injector','stopPresenting','2158436aLgRFg','getActiveWorkbook','17549JfIPGG','tryStartPresenting','No\x20active\x20workbook\x20found.','getActiveSheet','513178ajUnQo','getLiveShareCoordinatorSync','5690KveYMt','_commandService','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startRow','15ONXGaF','952unxEeZ','getId','4926zkyEUq','getRenderById','executeCommand','PRESENTING','extend','get','_initialize','getLiveShareStatus'];_0x469b=function(){return _0x38d8e5;};return _0x469b();}_0xdfd2b6['extend'](I);class m extends _0x4a1faf{[_0x5a1b65(0x11b)](){const _0xf54010=_0x5a1b65;var _0x15767f,_0x564680;const _0x4c2d7a=this['_injector']['get'](_0x15d6f5),_0x2d23c5=(_0x15767f=this[_0xf54010(0x12a)]())==null?void 0x0:_0x15767f['getId']();if(!_0x2d23c5)throw new Error(_0xf54010(0x12d));const _0x56c2d7=_0x4c2d7a[_0xf54010(0x130)](_0x2d23c5);return(_0x564680=_0x56c2d7==null?void 0x0:_0x56c2d7[_0xf54010(0x11d)]())!=null?_0x564680:_0x30510a[_0xf54010(0x11e)];}[_0x5a1b65(0x121)](){const _0x56d0bc=_0x5a1b65;var _0x52e81f;const _0x5b3fd3=this[_0x56d0bc(0x127)][_0x56d0bc(0x119)](_0x15d6f5),_0x720e04=(_0x52e81f=this[_0x56d0bc(0x12a)]())==null?void 0x0:_0x52e81f['getId']();if(!_0x720e04)throw new Error(_0x56d0bc(0x12d));const _0x5db1c4=_0x5b3fd3['getLiveShareCoordinatorSync'](_0x720e04);if(!_0x5db1c4)throw new Error(_0x56d0bc(0x133));_0x5db1c4['startFollowing']();}[_0x5a1b65(0x11f)](){const _0x5661cc=_0x5a1b65;var _0x1f11e6;const _0x57915a=this[_0x5661cc(0x127)][_0x5661cc(0x119)](_0x15d6f5),_0x48ce6f=(_0x1f11e6=this[_0x5661cc(0x12a)]())==null?void 0x0:_0x1f11e6[_0x5661cc(0x113)]();if(!_0x48ce6f)throw new Error('No\x20active\x20workbook\x20found.');const _0x4cfe8=_0x57915a['getLiveShareCoordinatorSync'](_0x48ce6f);if(!_0x4cfe8)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4cfe8[_0x5661cc(0x11f)]();}['startPresenting'](){const _0x2a098b=_0x5a1b65;var _0x1fdae1;const _0x502bc0=this[_0x2a098b(0x127)][_0x2a098b(0x119)](_0x15d6f5),_0xf8b10c=(_0x1fdae1=this[_0x2a098b(0x12a)]())==null?void 0x0:_0x1fdae1['getId']();if(!_0xf8b10c)throw new Error(_0x2a098b(0x12d));const _0x19aaf3=_0x502bc0[_0x2a098b(0x130)](_0xf8b10c);if(!_0x19aaf3)throw new Error(_0x2a098b(0x133));_0x19aaf3[_0x2a098b(0x12c)]();}[_0x5a1b65(0x128)](){const _0x5df700=_0x5a1b65;var _0x217373;const _0x542dee=this[_0x5df700(0x127)][_0x5df700(0x119)](_0x15d6f5),_0x3952a5=(_0x217373=this[_0x5df700(0x12a)]())==null?void 0x0:_0x217373[_0x5df700(0x113)]();if(!_0x3952a5)throw new Error(_0x5df700(0x12d));const _0x1fe338=_0x542dee['getLiveShareCoordinatorSync'](_0x3952a5);if(!_0x1fe338)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1fe338[_0x5df700(0x128)]();}}_0x4a1faf['extend'](m);class C extends _0x231f6e{get['LiveShareStatusEnum'](){return _0x30510a;}}_0x231f6e[_0x5a1b65(0x118)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3f8b8a=_0x5e6b;(function(_0x1b2469,_0x5d2d34){const _0x45631d=_0x5e6b,_0x4d58cd=_0x1b2469();while(!![]){try{const _0x15f162=parseInt(_0x45631d(0x139))/0x1+-parseInt(_0x45631d(0x12c))/0x2*(parseInt(_0x45631d(0x1b4))/0x3)+-parseInt(_0x45631d(0x1a3))/0x4+parseInt(_0x45631d(0x18f))/0x5+-parseInt(_0x45631d(0x122))/0x6+-parseInt(_0x45631d(0x1a4))/0x7*(-parseInt(_0x45631d(0x11c))/0x8)+parseInt(_0x45631d(0x191))/0x9*(-parseInt(_0x45631d(0x14f))/0xa);if(_0x15f162===_0x5d2d34)break;else _0x4d58cd['push'](_0x4d58cd['shift']());}catch(_0x570847){_0x4d58cd['push'](_0x4d58cd['shift']());}}}(_0x5073,0xab4ed));function _0x5073(){const _0x79eb11=['stopPresenting','_commandDisposable','getStatus','text','_univerInstanceService','registerInitialStateReporter','div','asObservable','_collabSession','513796BAxTUj','8281679nNlQRM','following','_reporters','reverse','LIVESHARE_REQUEST_HOST','_entities','tryStartPresenting','univer-size-4','add','registerComponent','colorChannel1','shouldShareOperation','LiveShareIcon','OFFLINE','random','has','617649PHsLbu','requireSession','_stopFollowing','setConfig','FOLLOWING','entries','_sharedOperations','LIVESHARE_TERMINATE','override','tag','not-following','status$','_status$','from','live-share-icon','8sAeACW','_presenter','Stop\x20presenting','includes','evenodd','defineProperty','2057844RdYmHJ','_startFollowing','_handleTerminate','UniverIcon','getInitialStates','onCommandExecuted','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','PRESENTING','set','presenter','2kQrUno','svg','IDLE','_config','onRendered','NOT_FOLLOWING','dispose','values','mask','unitId','length','sheet','You\x27re\x20following\x20the\x20presenter','342755jKOFdz','_init','getOwnPropertyDescriptor','idSuffix','LIVESHARE_NEW_HOST','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','operations','_startPresenting','Start\x20following','LIVESHARE_OPERATION','clear','unsubscribe','mutations','data','send','_unitID','toString','init','delete','_handleOnline','children','11265690ygLByx','_handleNewHost','forEach','end','default','SAME_OPERATION_SHARE_INTERVAL','defIds','getLiveShareCoordinator','_configService','_uiPartsService','complete','next','presenting','current','get','NEW_CHANGESETS','xlink:href','then','event$','_handleNewChangeSets','none','string','_stopPresenting','replace','_handleOffline','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','subscribe','stringify','_beIdle','getTypeOfUnitAdded$','_liveShareService','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','path','_startLiveShareCoordinator','getUnitId','attrs','map','use','getTypeOfUnitDisposed$','_commandService','Stop\x20following','_fetchOperations','substring','createInstance','offline','_status','HEADER_MENU','OPERATION','UNIVER_SHEET','executeCommand','trim','dispose$','sessionStatus$','displayName','0\x200\x2017\x2017','params','disposeWithMe','find','getConfig','You\x27are\x20offline.','UNIVER_LIVE_SHARE_PLUGIN','http://www.w3.org/2000/svg','You\x27re\x20presenting\x20the\x20document','4898500YXyOHH','getMemberID','9gCBIUi','button','pipe','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','_injector','onStarting','symbol','1em','idle'];_0x5073=function(){return _0x79eb11;};return _0x5073();}var J=Object['defineProperty'],K=(_0xc48790,_0xc9d9c5,_0x1af2a5)=>_0xc9d9c5 in _0xc48790?J(_0xc48790,_0xc9d9c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1af2a5}):_0xc48790[_0xc9d9c5]=_0x1af2a5,u=(_0x17643a,_0x5f06e7,_0x5dc08d)=>K(_0x17643a,typeof _0x5f06e7!=_0x3f8b8a(0x197)?_0x5f06e7+'':_0x5f06e7,_0x5dc08d);import{Disposable as _0x159720,toDisposable as _0x51d4c6,IUniverInstanceService as _0x399285,Inject as _0x5559c6,Injector as _0x195227,IConfigService as _0x5c28f1,ICommandService as _0x754535,RxDisposable as _0x16a1ae,UniverInstanceType as _0x3fe8fe,DisposableCollection as _0x434384,CommandType as _0x1fb413,DependentOn as _0x3f7112,Plugin as _0x25bb0a,merge as _0x39e1c5,registerDependencies as _0x46d24c,mergeOverrideWithDependencies as _0x7a71b0,touchDependencies as _0x4d514b}from'@univerjs/core';import{useDependency as _0x437252,useObservable as _0x420d0b,IUIPartsService as _0x32b863,BuiltInUIPart as _0x4dcc23,connectInjector as _0x54592c}from'@univerjs/ui';import{jsx as _0x2a725f,jsxs as _0x4db2bd,Fragment as _0x32f569}from'react/jsx-runtime';import{Dropdown as _0x1c024f,clsx as _0x1e4748,Button as _0x3efa6c}from'@univerjs/design';import{useRef as _0x5bdf40,createElement as _0x433fb7,forwardRef as _0x51a912,useState as _0x41412a,useEffect as _0x710f1d}from'react';import{CollaborationEvent as _0x1bfde3,parseProtocolChangeset as _0xe1444c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x76787b,SessionStatus as _0x1d2e0c,UniverCollaborationClientPlugin as _0x52b6d2}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x54e6ad,SetWorksheetActiveOperation as _0x7f48eb}from'@univerjs/sheets';import{BehaviorSubject as _0x4603a5,Subject as _0x26df35}from'rxjs';import{takeUntil as _0x75a298,throttleTime as _0x2bfc6b}from'rxjs/operators';function _0x5e6b(_0x3d7f4c,_0x14cb74){const _0x5073f8=_0x5073();return _0x5e6b=function(_0x5e6b89,_0x5e37e4){_0x5e6b89=_0x5e6b89-0x118;let _0x4ba283=_0x5073f8[_0x5e6b89];return _0x4ba283;},_0x5e6b(_0x3d7f4c,_0x14cb74);}import{SetZoomRatioOperation as _0x23298b,SetScrollOperation as _0x5acac7}from'@univerjs/sheets-ui';function k({ref:_0xe3c7c0,..._0x142e4a}){const _0x2ca499=_0x3f8b8a,{icon:_0x1d8f59,id:_0xd0ff5d,className:_0x232dc0,extend:_0x1f2413,..._0x500a00}=_0x142e4a,_0x5e65aa=('univerjs-icon\x20univerjs-icon-'+_0xd0ff5d+'\x20'+(_0x232dc0||''))[_0x2ca499(0x182)](),_0x333265=_0x5bdf40('_'+Oe());return G(_0x1d8f59,''+_0xd0ff5d,{'defIds':_0x1d8f59[_0x2ca499(0x155)],'idSuffix':_0x333265[_0x2ca499(0x15c)]},{'ref':_0xe3c7c0,'className':_0x5e65aa,..._0x500a00},_0x1f2413);}function G(_0xd39f0a,_0x3163ad,_0x493cb7,_0x3f26f8,_0x24388e){const _0x54d6d4=_0x3f8b8a;return _0x433fb7(_0xd39f0a[_0x54d6d4(0x1bd)],{'key':_0x3163ad,...be(_0xd39f0a,_0x493cb7,_0x24388e),..._0x3f26f8},(Ee(_0xd39f0a,_0x493cb7)[_0x54d6d4(0x14e)]||[])[_0x54d6d4(0x174)]((_0x3a0e71,_0x31f09c)=>G(_0x3a0e71,_0x3163ad+'-'+_0xd39f0a[_0x54d6d4(0x1bd)]+'-'+_0x31f09c,_0x493cb7,void 0x0,_0x24388e)));}function be(_0x42773d,_0x42881d,_0x4648ef){const _0x3ced73=_0x3f8b8a,_0x369ee7={..._0x42773d[_0x3ced73(0x173)]};_0x4648ef!=null&&_0x4648ef[_0x3ced73(0x1ae)]&&_0x369ee7['fill']===_0x3ced73(0x1ae)&&(_0x369ee7['fill']=_0x4648ef['colorChannel1']),_0x42773d['tag']===_0x3ced73(0x134)&&_0x369ee7['id']&&(_0x369ee7['id']=_0x369ee7['id']+_0x42881d[_0x3ced73(0x13c)]),Object['entries'](_0x369ee7)[_0x3ced73(0x151)](([_0x587907,_0x119040])=>{const _0x2cde33=_0x3ced73;_0x587907===_0x2cde33(0x134)&&typeof _0x119040==_0x2cde33(0x164)&&(_0x369ee7[_0x587907]=_0x119040['replace'](/url\(#(.*)\)/,'url(#$1'+_0x42881d[_0x2cde33(0x13c)]+')'));});const {defIds:_0x3dc9f2}=_0x42881d;return!_0x3dc9f2||_0x3dc9f2[_0x3ced73(0x136)]===0x0||(_0x42773d[_0x3ced73(0x1bd)]===_0x3ced73(0x175)&&_0x369ee7[_0x3ced73(0x15f)]&&(_0x369ee7[_0x3ced73(0x15f)]=_0x369ee7['xlink:href']+_0x42881d[_0x3ced73(0x13c)]),Object[_0x3ced73(0x1b9)](_0x369ee7)[_0x3ced73(0x151)](([_0x3c8fab,_0xb5ee25])=>{const _0x36a25a=_0x3ced73;typeof _0xb5ee25==_0x36a25a(0x164)&&(_0x369ee7[_0x3c8fab]=_0xb5ee25[_0x36a25a(0x166)](/url\(#(.*)\)/,'url(#$1'+_0x42881d[_0x36a25a(0x13c)]+')'));})),_0x369ee7;}function Ee(_0x1f5ccf,_0x5577bc){const _0x3b2b48=_0x3f8b8a;var _0x38bd2c;const {defIds:_0x4ae1fb}=_0x5577bc;return!_0x4ae1fb||_0x4ae1fb[_0x3b2b48(0x136)]===0x0?_0x1f5ccf:_0x1f5ccf[_0x3b2b48(0x1bd)]==='defs'&&((_0x38bd2c=_0x1f5ccf[_0x3b2b48(0x14e)])!=null&&_0x38bd2c['length'])?{..._0x1f5ccf,'children':_0x1f5ccf[_0x3b2b48(0x14e)][_0x3b2b48(0x174)](_0x3a763a=>typeof _0x3a763a[_0x3b2b48(0x173)]['id']=='string'&&_0x4ae1fb&&_0x4ae1fb[_0x3b2b48(0x11f)](_0x3a763a[_0x3b2b48(0x173)]['id'])?{..._0x3a763a,'attrs':{..._0x3a763a['attrs'],'id':_0x3a763a[_0x3b2b48(0x173)]['id']+_0x5577bc[_0x3b2b48(0x13c)]}}:_0x3a763a)}:_0x1f5ccf;}function Oe(){const _0x32d4f2=_0x3f8b8a;return Math[_0x32d4f2(0x1b2)]()[_0x32d4f2(0x14a)](0x24)[_0x32d4f2(0x17a)](0x2,0x8);}k[_0x3f8b8a(0x185)]=_0x3f8b8a(0x125);const we={'tag':_0x3f8b8a(0x12d),'attrs':{'xmlns':_0x3f8b8a(0x18d),'fill':_0x3f8b8a(0x163),'viewBox':_0x3f8b8a(0x186),'width':_0x3f8b8a(0x198),'height':_0x3f8b8a(0x198)},'children':[{'tag':_0x3f8b8a(0x170),'attrs':{'fill':'currentColor','d':_0x3f8b8a(0x194)}},{'tag':_0x3f8b8a(0x170),'attrs':{'fill':'currentColor','d':_0x3f8b8a(0x128),'fillRule':_0x3f8b8a(0x120),'clipRule':_0x3f8b8a(0x120)}}]},W=_0x51a912(function(_0x4760e6,_0x12fa81){const _0x8323b6=_0x3f8b8a;return _0x433fb7(k,Object[_0x8323b6(0x16e)]({},_0x4760e6,{'id':_0x8323b6(0x11b),'ref':_0x12fa81,'icon':we}));});W['displayName']=_0x3f8b8a(0x1b0);class L extends _0x159720{constructor(){const _0x57e4be=_0x3f8b8a;super(...arguments),u(this,_0x57e4be(0x1ba),new Set()),u(this,'_reporters',new Set());}[_0x3f8b8a(0x13e)](_0x4acac7){const _0x7a7ffb=_0x3f8b8a;return this[_0x7a7ffb(0x1ba)][_0x7a7ffb(0x1ac)](_0x4acac7),_0x51d4c6(()=>this[_0x7a7ffb(0x1ba)][_0x7a7ffb(0x14c)](_0x4acac7));}[_0x3f8b8a(0x19f)](_0x217eeb){const _0x15bb0d=_0x3f8b8a;return this['_reporters'][_0x15bb0d(0x1ac)](_0x217eeb),_0x51d4c6(()=>this[_0x15bb0d(0x1a6)][_0x15bb0d(0x14c)](_0x217eeb));}[_0x3f8b8a(0x1af)](_0x5f0c1e){const _0x21b2f8=_0x3f8b8a;return this['_sharedOperations'][_0x21b2f8(0x1b3)](_0x5f0c1e);}[_0x3f8b8a(0x126)](_0x28f42f){const _0x583ead=_0x3f8b8a;return Array[_0x583ead(0x11a)](this[_0x583ead(0x1a6)])[_0x583ead(0x174)](_0x47d80d=>_0x47d80d(_0x28f42f));}}var Ne=Object[_0x3f8b8a(0x13b)],Y=(_0x22d92a,_0x5baaf6,_0x1c120e,_0x2dbae1)=>{const _0x142a4a=_0x3f8b8a;for(var _0x4143e4=_0x2dbae1>0x1?void 0x0:_0x2dbae1?Ne(_0x5baaf6,_0x1c120e):_0x5baaf6,_0xd30129=_0x22d92a[_0x142a4a(0x136)]-0x1,_0x285747;_0xd30129>=0x0;_0xd30129--)(_0x285747=_0x22d92a[_0xd30129])&&(_0x4143e4=_0x285747(_0x4143e4)||_0x4143e4);return _0x4143e4;},_=(_0x1b8bf3,_0x3c5791)=>(_0x33fb27,_0x509447)=>_0x3c5791(_0x33fb27,_0x509447,_0x1b8bf3);let S=class extends _0x16a1ae{constructor(_0x3d2124,_0x1caff3,_0x177195){const _0xea2054=_0x3f8b8a;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3d2124,this[_0xea2054(0x195)]=_0x1caff3,this['_collabSessionService']=_0x177195,this[_0xea2054(0x13a)]());}async[_0x3f8b8a(0x156)](_0x18173e){const _0x39d342=_0x3f8b8a;return this[_0x39d342(0x1a9)][_0x39d342(0x1b3)](_0x18173e)||await this['_startLiveShareCoordinator'](_0x18173e),this[_0x39d342(0x1a9)][_0x39d342(0x15d)](_0x18173e);}['getLiveShareCoordinatorSync'](_0x51a436){const _0x560500=_0x3f8b8a;var _0x1eb23d;return(_0x1eb23d=this[_0x560500(0x1a9)][_0x560500(0x15d)](_0x51a436))!=null?_0x1eb23d:null;}['_init'](){const _0x5f5519=_0x3f8b8a;this['_univerInstanceService'][_0x5f5519(0x16c)](_0x3fe8fe[_0x5f5519(0x180)])[_0x5f5519(0x193)](_0x75a298(this[_0x5f5519(0x183)]))[_0x5f5519(0x169)](async _0x5e9eee=>{const _0x5be08c=_0x5f5519,_0x1061f6=_0x5e9eee['getUnitId']();this['_entities']['has'](_0x1061f6)||this[_0x5be08c(0x171)](_0x1061f6);}),this[_0x5f5519(0x19e)][_0x5f5519(0x176)](_0x3fe8fe[_0x5f5519(0x180)])[_0x5f5519(0x193)](_0x75a298(this[_0x5f5519(0x183)]))[_0x5f5519(0x169)](_0x1c9bc8=>{const _0x2bbaf6=_0x5f5519,_0x47d72a=_0x1c9bc8[_0x2bbaf6(0x172)](),_0x1a583=this['_entities'][_0x2bbaf6(0x15d)](_0x47d72a);_0x1a583==null||_0x1a583[_0x2bbaf6(0x132)]();});}async[_0x3f8b8a(0x171)](_0x2bfa87){const _0x447c7d=_0x3f8b8a,_0x50e532=await this['_collabSessionService'][_0x447c7d(0x1b5)](_0x2bfa87),_0x5f59f8=this['_injector'][_0x447c7d(0x17b)](N,_0x2bfa87,_0x50e532);return _0x5f59f8[_0x447c7d(0x14b)](),this[_0x447c7d(0x1a9)][_0x447c7d(0x12a)](_0x2bfa87,_0x5f59f8),_0x5f59f8;}};S=Y([_(0x0,_0x399285),_(0x1,_0x5559c6(_0x195227)),_(0x2,_0x5559c6(_0x76787b))],S);var c=(_0x574527=>(_0x574527['OFFLINE']='offline',_0x574527['IDLE']='idle',_0x574527['FOLLOWING']='following',_0x574527[_0x3f8b8a(0x131)]='not-following',_0x574527[_0x3f8b8a(0x129)]=_0x3f8b8a(0x15b),_0x574527))(c||{});const Ce=_0x3f8b8a(0x154),De=0xc8;let N=class extends _0x16a1ae{constructor(_0x4276f7,_0x346f6b,_0x2b6c92,_0x142612,_0xb2a889){const _0x39a6e7=_0x3f8b8a;super(),u(this,_0x39a6e7(0x119),new _0x4603a5(_0x39a6e7(0x199))),u(this,_0x39a6e7(0x118),this['_status$'][_0x39a6e7(0x1a1)]()),u(this,'_init',!0x1),u(this,_0x39a6e7(0x19b),null),u(this,_0x39a6e7(0x11d),null),(this[_0x39a6e7(0x149)]=_0x4276f7,this[_0x39a6e7(0x1a2)]=_0x346f6b,this['_configService']=_0x2b6c92,this[_0x39a6e7(0x16d)]=_0x142612,this['_commandService']=_0xb2a889);}get[_0x3f8b8a(0x17d)](){const _0x5034b4=_0x3f8b8a;return this[_0x5034b4(0x119)]['getValue']();}[_0x3f8b8a(0x132)](){const _0x3a92df=_0x3f8b8a;var _0x1e7b70;(_0x1e7b70=this[_0x3a92df(0x19b)])==null||_0x1e7b70[_0x3a92df(0x132)](),this[_0x3a92df(0x119)][_0x3a92df(0x15a)](_0x3a92df(0x199)),this[_0x3a92df(0x119)][_0x3a92df(0x159)]();}[_0x3f8b8a(0x19c)](){const _0x243205=_0x3f8b8a;return this[_0x243205(0x17d)];}[_0x3f8b8a(0x14b)](){const _0x4d9eac=_0x3f8b8a;this[_0x4d9eac(0x13a)]||(this['_init']=!0x0,this[_0x4d9eac(0x1a2)][_0x4d9eac(0x184)][_0x4d9eac(0x193)](_0x75a298(this[_0x4d9eac(0x183)]))[_0x4d9eac(0x169)](_0xed7b20=>{const _0x5c912b=_0x4d9eac;switch(_0xed7b20){case _0x1d2e0c['OFFLINE']:this[_0x5c912b(0x167)]();break;case _0x1d2e0c['ONLINE']:this[_0x5c912b(0x14d)]();break;}}),this['_collabSession'][_0x4d9eac(0x161)][_0x4d9eac(0x193)](_0x75a298(this['dispose$']))['subscribe'](_0x28f52f=>{const _0x28a030=_0x4d9eac,{eventID:_0x18df19}=_0x28f52f;switch(_0x18df19){case _0x1bfde3[_0x28a030(0x13d)]:this[_0x28a030(0x150)](_0x28f52f);break;case _0x1bfde3[_0x28a030(0x143)]:this['_handleOperation'](_0x28f52f);break;case _0x1bfde3[_0x28a030(0x1bb)]:this[_0x28a030(0x124)]();break;case _0x1bfde3[_0x28a030(0x15e)]:this[_0x28a030(0x162)](_0x28f52f);break;}}));}[_0x3f8b8a(0x1aa)](){const _0x24894a=_0x3f8b8a;this[_0x24894a(0x1a2)][_0x24894a(0x148)]({'eventID':_0x1bfde3[_0x24894a(0x1a8)],'data':{'unitID':this['_unitID'],'userID':this[_0x24894a(0x1a2)][_0x24894a(0x190)]()}},this[_0x24894a(0x149)]);}[_0x3f8b8a(0x19a)](){const _0x3c56f2=_0x3f8b8a;this[_0x3c56f2(0x17d)]==='presenting'&&(this[_0x3c56f2(0x119)]['next']('idle'),this[_0x3c56f2(0x1a2)][_0x3c56f2(0x148)]({'eventID':_0x1bfde3[_0x3c56f2(0x1bb)],'data':{'unitID':this[_0x3c56f2(0x149)]}},this[_0x3c56f2(0x149)]));}['startFollowing'](){const _0x5343ed=_0x3f8b8a;this['_status']===_0x5343ed(0x1be)&&(this['_status$']['next'](_0x5343ed(0x1a5)),this[_0x5343ed(0x123)]());}['stopFollowing'](){const _0x37e4e2=_0x3f8b8a;this[_0x37e4e2(0x17d)]==='following'&&this[_0x37e4e2(0x1b6)]();}[_0x3f8b8a(0x150)](_0x58be5a){const _0x48d6f1=_0x3f8b8a,{presenter:_0x35aeae}=_0x58be5a[_0x48d6f1(0x147)],_0x42f624=this['_collabSession'][_0x48d6f1(0x190)]();this[_0x48d6f1(0x11d)]=_0x35aeae,_0x35aeae===_0x42f624?(this[_0x48d6f1(0x1b6)](),this[_0x48d6f1(0x141)]()):this[_0x48d6f1(0x17d)]!==_0x48d6f1(0x1be)&&(this[_0x48d6f1(0x165)](),this['_startFollowing']());}[_0x3f8b8a(0x179)](){const _0x6c3b87=_0x3f8b8a,_0x56ed86={'eventID':_0x1bfde3['LIVESHARE_FETCH_OPERATIONS']};this[_0x6c3b87(0x1a2)][_0x6c3b87(0x148)](_0x56ed86,this[_0x6c3b87(0x149)]);}[_0x3f8b8a(0x124)](){const _0x2cab7b=_0x3f8b8a;this['_presenter']=null,this[_0x2cab7b(0x17d)]!=='presenting'&&this[_0x2cab7b(0x16b)]();}[_0x3f8b8a(0x162)](_0x321f12){const _0xdd36ca=_0x3f8b8a;if(this[_0xdd36ca(0x17d)]===_0xdd36ca(0x1a5)&&this[_0xdd36ca(0x11d)]===_0x321f12['data']['memberID']){const _0x2956d7=_0xe1444c(_0x321f12[_0xdd36ca(0x147)])[_0xdd36ca(0x146)][_0xdd36ca(0x1a7)]()[_0xdd36ca(0x189)](_0x4e9636=>_0x4e9636['id']===_0x54e6ad['id']);if(_0x2956d7){const _0x132c1e=_0x2956d7[_0xdd36ca(0x187)][_0xdd36ca(0x135)],_0x52ac32=_0x2956d7[_0xdd36ca(0x187)][_0xdd36ca(0x137)]['id'];setTimeout(()=>{const _0x5a91e8=_0xdd36ca;this[_0x5a91e8(0x177)][_0x5a91e8(0x181)](_0x7f48eb['id'],{'unitId':_0x132c1e,'subUnitId':_0x52ac32},{'fromCollab':!0x0});});}}}[_0x3f8b8a(0x141)](){const _0x570568=_0x3f8b8a;this[_0x570568(0x119)][_0x570568(0x15a)](_0x570568(0x15b));const _0x48df98=new Map(),_0x805d37=this[_0x570568(0x19b)]=new _0x434384();_0x805d37[_0x570568(0x1ac)](_0x51d4c6(()=>{const _0x4fab03=_0x570568;_0x48df98[_0x4fab03(0x151)](_0x1a3792=>_0x1a3792[_0x4fab03(0x159)]()),_0x48df98[_0x4fab03(0x144)]();})),_0x805d37[_0x570568(0x1ac)](this[_0x570568(0x177)][_0x570568(0x127)](_0x1ffa50=>{const _0x541913=_0x570568;var _0x380ba2;if(_0x1ffa50['type']!==_0x1fb413[_0x541913(0x17f)]||!this['_liveShareService'][_0x541913(0x1af)](_0x1ffa50['id']))return;const {id:_0x2d2022}=_0x1ffa50;let _0x4641a2;_0x48df98['has'](_0x2d2022)?_0x4641a2=_0x48df98[_0x541913(0x15d)](_0x2d2022):(_0x4641a2=new _0x26df35(),_0x48df98[_0x541913(0x12a)](_0x2d2022,_0x4641a2),_0x4641a2[_0x541913(0x193)](_0x2bfc6b((_0x380ba2=this[_0x541913(0x157)][_0x541913(0x18a)](Ce))!=null?_0x380ba2:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x541913(0x169)](_0x53e5b3=>{const _0xbd360a=_0x541913;this[_0xbd360a(0x1a2)]['send']({'eventID':_0x1bfde3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xbd360a(0x149)],'operations':{[_0x53e5b3['id']]:{'id':_0x53e5b3['id'],'params':JSON[_0xbd360a(0x16a)](_0x53e5b3[_0xbd360a(0x187)])}}}},this[_0xbd360a(0x149)]);})),_0x4641a2[_0x541913(0x15a)](_0x1ffa50);})),this[_0x570568(0x16d)][_0x570568(0x126)](this[_0x570568(0x149)])[_0x570568(0x151)](_0x32739c=>this[_0x570568(0x1a2)][_0x570568(0x148)]({'eventID':_0x1bfde3[_0x570568(0x143)],'data':{'unitID':this[_0x570568(0x149)],'operations':{[_0x32739c['id']]:{'id':_0x32739c['id'],'params':JSON[_0x570568(0x16a)](_0x32739c[_0x570568(0x187)])}}}},this['_unitID']));}[_0x3f8b8a(0x165)](){const _0x4fcc9d=_0x3f8b8a;var _0x2c9889;this['_status$'][_0x4fcc9d(0x15a)]('idle'),(_0x2c9889=this['_commandDisposable'])==null||_0x2c9889[_0x4fcc9d(0x132)](),this['_commandDisposable']=null;}[_0x3f8b8a(0x123)](){const _0x191871=_0x3f8b8a;var _0x55d507;(_0x55d507=this['_commandDisposable'])==null||_0x55d507[_0x191871(0x132)](),this[_0x191871(0x119)][_0x191871(0x15a)](_0x191871(0x1a5));}[_0x3f8b8a(0x16b)](){const _0x56a8fd=_0x3f8b8a;var _0x2f872b;this['_status$'][_0x56a8fd(0x15a)](_0x56a8fd(0x199)),(_0x2f872b=this[_0x56a8fd(0x19b)])==null||_0x2f872b['dispose'](),this['_commandDisposable']=null;}[_0x3f8b8a(0x1b6)](){const _0x59d686=_0x3f8b8a;var _0xee0c7e;this['_status$'][_0x59d686(0x15a)](_0x59d686(0x1be)),(_0xee0c7e=this[_0x59d686(0x19b)])==null||_0xee0c7e[_0x59d686(0x132)]();}['_handleOperation'](_0x1fe05f){const _0x5a8b7d=_0x3f8b8a;if([_0x5a8b7d(0x15b),_0x5a8b7d(0x1be),_0x5a8b7d(0x17c)][_0x5a8b7d(0x11f)](this[_0x5a8b7d(0x17d)])||!_0x1fe05f[_0x5a8b7d(0x147)][_0x5a8b7d(0x12b)]||_0x1fe05f['data'][_0x5a8b7d(0x12b)]===this[_0x5a8b7d(0x1a2)][_0x5a8b7d(0x190)]())return;this[_0x5a8b7d(0x17d)]==='idle'&&this[_0x5a8b7d(0x123)]();const _0x3b278=_0x1fe05f[_0x5a8b7d(0x147)][_0x5a8b7d(0x140)];Object[_0x5a8b7d(0x133)](_0x3b278)[_0x5a8b7d(0x151)](_0x1abcbe=>{const _0x14c655=_0x5a8b7d;this[_0x14c655(0x177)][_0x14c655(0x181)](_0x1abcbe['id'],_0x1abcbe[_0x14c655(0x187)]?JSON['parse'](_0x1abcbe[_0x14c655(0x187)]):null,{'fromCollab':!0x0});});}[_0x3f8b8a(0x167)](){const _0x47bc6e=_0x3f8b8a;var _0x13b4d8;this[_0x47bc6e(0x119)][_0x47bc6e(0x15a)](_0x47bc6e(0x17c)),(_0x13b4d8=this['_commandDisposable'])==null||_0x13b4d8[_0x47bc6e(0x132)]();}[_0x3f8b8a(0x14d)](){const _0x29a970=_0x3f8b8a;this[_0x29a970(0x119)]['next']('idle'),this[_0x29a970(0x179)]();}};N=Y([_(0x2,_0x5c28f1),_(0x3,_0x5559c6(L)),_(0x4,_0x754535)],N);function Le(){const _0x22584c=_0x3f8b8a,_0x5158de=_0x437252(S),_0x22ff73=_0x437252(_0x399285),_0x4fe169=_0x420d0b(()=>_0x22ff73['getCurrentTypeOfUnit$'](_0x3fe8fe['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x13918f,_0x5a27e4]=_0x41412a(null),[_0xe69d7a,_0x8f994d]=_0x41412a(c[_0x22584c(0x12e)]),_0x397bf8=_0x5bdf40(null);return _0x710f1d(()=>(_0x4fe169&&_0x5158de[_0x22584c(0x156)](_0x4fe169[_0x22584c(0x172)]())[_0x22584c(0x160)](_0x487b0c=>{const _0x3bc4df=_0x22584c;_0x5a27e4(_0x487b0c),_0x397bf8[_0x3bc4df(0x15c)]=_0x487b0c[_0x3bc4df(0x118)][_0x3bc4df(0x169)](_0x258b5b=>{_0x8f994d(_0x258b5b);});}),()=>{const _0x438cb8=_0x22584c;var _0x1f1064;(_0x1f1064=_0x397bf8[_0x438cb8(0x15c)])==null||_0x1f1064[_0x438cb8(0x145)](),_0x397bf8['current']=null;}),[_0x4fe169,_0x5158de]),_0x13918f?_0x2a725f(_0x1c024f,{'align':_0x22584c(0x152),'disabled':_0xe69d7a===c[_0x22584c(0x1b1)],'className':_0x22584c(0x168),'overlay':_0x2a725f(Re,{'status':_0xe69d7a,'coordinator':_0x13918f}),'children':_0x2a725f(_0x22584c(0x192),{'className':_0x1e4748(_0x22584c(0x16f),{'univer-cursor-not-allowed':_0xe69d7a===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xe69d7a!==c[_0x22584c(0x1b1)]}),'type':_0x22584c(0x192),'children':_0x2a725f(W,{'className':_0x22584c(0x1ab)})})}):null;}function Re(_0x338ffb){const _0x3dd1f6=_0x3f8b8a,{status:_0x55981b,coordinator:_0x2d4cf8}=_0x338ffb;switch(_0x55981b){case c['IDLE']:return _0x2a725f($e,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x1b8)]:return _0x2a725f(xe,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x131)]:return _0x2a725f(Pe,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x1b1)]:return _0x2a725f(Te,{});case c['PRESENTING']:return _0x2a725f(Ae,{'coordinator':_0x2d4cf8});default:return null;}}function $e(_0xe2c10a){const _0x42d232=_0x3f8b8a,{coordinator:_0x5432b0}=_0xe2c10a;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f('div',{'className':_0x42d232(0x13f),'children':'Present\x20this\x20document'}),_0x2a725f(_0x3efa6c,{'onClick':()=>_0x5432b0[_0x42d232(0x1aa)](),'children':'Start'})]});}function xe(_0x46d1b7){const _0x3fade4=_0x3f8b8a,{coordinator:_0x3870d3}=_0x46d1b7;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x3fade4(0x1a0),{'className':_0x3fade4(0x13f),'children':_0x3fade4(0x138)}),_0x2a725f(_0x3efa6c,{'onClick':()=>_0x3870d3['stopFollowing'](),'children':_0x3fade4(0x178)})]});}function Pe(_0x2ad8a6){const _0x1507c4=_0x3f8b8a,{coordinator:_0x15114f}=_0x2ad8a6;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x1507c4(0x1a0),{'className':_0x1507c4(0x13f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2a725f(_0x3efa6c,{'variant':_0x1507c4(0x19d),'onClick':()=>_0x15114f['startFollowing'](),'children':_0x1507c4(0x142)})]});}function Ae(_0x4d9d45){const _0x3b0c48=_0x3f8b8a,{coordinator:_0x6739dd}=_0x4d9d45;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x3b0c48(0x1a0),{'className':_0x3b0c48(0x13f),'children':_0x3b0c48(0x18e)}),_0x2a725f(_0x3efa6c,{'variant':_0x3b0c48(0x153),'onClick':()=>_0x6739dd[_0x3b0c48(0x19a)](),'children':_0x3b0c48(0x11e)})]});}function Te(){const _0x5ab2e9=_0x3f8b8a;return _0x2a725f(_0x32f569,{'children':_0x5ab2e9(0x18b)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x692b81,_0x2bd650,_0x55ecc7,_0x573e73)=>{for(var _0x265abf=_0x573e73>0x1?void 0x0:_0x573e73?Fe(_0x2bd650,_0x55ecc7):_0x2bd650,_0x9a9881=_0x692b81['length']-0x1,_0xe49475;_0x9a9881>=0x0;_0x9a9881--)(_0xe49475=_0x692b81[_0x9a9881])&&(_0x265abf=_0xe49475(_0x265abf)||_0x265abf);return _0x265abf;},A=(_0x3e8478,_0x1dc1e1)=>(_0x1d6c49,_0x43136c)=>_0x1dc1e1(_0x1d6c49,_0x43136c,_0x3e8478);let m=class extends _0x159720{constructor(_0x3b5d43,_0x5c3466){const _0x3f13f9=_0x3f8b8a;super(),this[_0x3f13f9(0x195)]=_0x3b5d43,this[_0x3f13f9(0x158)]=_0x5c3466,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x9ce3e3=_0x3f8b8a;this[_0x9ce3e3(0x188)](this[_0x9ce3e3(0x158)][_0x9ce3e3(0x1ad)](_0x4dcc23[_0x9ce3e3(0x17e)],()=>_0x54592c(Le,this[_0x9ce3e3(0x195)])));}};m=He([A(0x0,_0x5559c6(_0x195227)),A(0x1,_0x32b863)],m);const ye='live-share.config',T={};var Ue=Object[_0x3f8b8a(0x13b)],Ve=(_0x57f1cb,_0x1bff20,_0x2e21ac,_0x510d99)=>{const _0x1fc779=_0x3f8b8a;for(var _0x39b7f2=_0x510d99>0x1?void 0x0:_0x510d99?Ue(_0x1bff20,_0x2e21ac):_0x1bff20,_0x16b7ff=_0x57f1cb[_0x1fc779(0x136)]-0x1,_0x49eb70;_0x16b7ff>=0x0;_0x16b7ff--)(_0x49eb70=_0x57f1cb[_0x16b7ff])&&(_0x39b7f2=_0x49eb70(_0x39b7f2)||_0x39b7f2);return _0x39b7f2;},je=(_0xa2122c,_0x9f8f62)=>(_0x508fa7,_0x2b1df8)=>_0x9f8f62(_0x508fa7,_0x2b1df8,_0xa2122c);let I=class extends _0x159720{constructor(_0xcc460c){const _0x27f7e3=_0x3f8b8a;super(),this['_liveShareService']=_0xcc460c,this[_0x27f7e3(0x13a)]();}[_0x3f8b8a(0x13a)](){const _0x73d333=_0x3f8b8a;[_0x23298b['id'],_0x5acac7['id'],_0x7f48eb['id']][_0x73d333(0x151)](_0x475cc7=>{const _0x89d838=_0x73d333;this['disposeWithMe'](this[_0x89d838(0x16d)][_0x89d838(0x13e)](_0x475cc7));});}};I=Ve([je(0x0,_0x5559c6(L))],I);var Me=Object[_0x3f8b8a(0x121)],ke=Object[_0x3f8b8a(0x13b)],Ge=(_0x2116fc,_0xb34a52,_0x3b2d2a)=>_0xb34a52 in _0x2116fc?Me(_0x2116fc,_0xb34a52,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b2d2a}):_0x2116fc[_0xb34a52]=_0x3b2d2a,We=(_0x17513b,_0xfb1c9a,_0x4b4434,_0x41a9a5)=>{const _0x4fb515=_0x3f8b8a;for(var _0xefc1c8=_0x41a9a5>0x1?void 0x0:_0x41a9a5?ke(_0xfb1c9a,_0x4b4434):_0xfb1c9a,_0x158699=_0x17513b[_0x4fb515(0x136)]-0x1,_0x21492d;_0x158699>=0x0;_0x158699--)(_0x21492d=_0x17513b[_0x158699])&&(_0xefc1c8=_0x21492d(_0xefc1c8)||_0xefc1c8);return _0xefc1c8;},F=(_0x1e2c9c,_0x11c040)=>(_0x294155,_0x9fd399)=>_0x11c040(_0x294155,_0x9fd399,_0x1e2c9c),B=(_0x59a4a2,_0x4ef318,_0x35ae5e)=>Ge(_0x59a4a2,typeof _0x4ef318!='symbol'?_0x4ef318+'':_0x4ef318,_0x35ae5e);const Ye=_0x3f8b8a(0x18c);let b=class extends _0x25bb0a{constructor(_0x459cf0=T,_0x37b1e9,_0x52a233){const _0x556311=_0x3f8b8a;super(),this[_0x556311(0x12f)]=_0x459cf0,this[_0x556311(0x195)]=_0x37b1e9,this[_0x556311(0x157)]=_0x52a233;const {..._0x520479}=_0x39e1c5({},T,this[_0x556311(0x12f)]);this[_0x556311(0x157)][_0x556311(0x1b7)](ye,_0x520479);}[_0x3f8b8a(0x196)](){const _0x4767d2=_0x3f8b8a;_0x46d24c(this['_injector'],_0x7a71b0([[L],[S],[I],[m]],this[_0x4767d2(0x12f)][_0x4767d2(0x1bc)])),_0x4d514b(this['_injector'],[[I]]);}[_0x3f8b8a(0x130)](){const _0x30604d=_0x3f8b8a;_0x4d514b(this[_0x30604d(0x195)],[[m]]);}};B(b,'type',_0x3fe8fe['UNIVER_UNKNOWN']),B(b,'pluginName',Ye),b=We([_0x3f7112(_0x52b6d2),F(0x1,_0x5559c6(_0x195227)),F(0x2,_0x5c28f1)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
function _0x3482(_0x5a399,_0x453cb5){const _0x33189a=_0x3318();return _0x3482=function(_0x3482b3,_0x26b02a){_0x3482b3=_0x3482b3-0x1dc;let _0x132b6c=_0x33189a[_0x3482b3];return _0x132b6c;},_0x3482(_0x5a399,_0x453cb5);}const _0x25ee2b=_0x3482;(function(_0x354478,_0x12db55){const _0x2168d5=_0x3482,_0x46b94e=_0x354478();while(!![]){try{const _0x565bcf=parseInt(_0x2168d5(0x1ee))/0x1*(-parseInt(_0x2168d5(0x263))/0x2)+parseInt(_0x2168d5(0x266))/0x3*(-parseInt(_0x2168d5(0x21e))/0x4)+parseInt(_0x2168d5(0x257))/0x5+-parseInt(_0x2168d5(0x202))/0x6+parseInt(_0x2168d5(0x1f9))/0x7+-parseInt(_0x2168d5(0x248))/0x8*(parseInt(_0x2168d5(0x209))/0x9)+parseInt(_0x2168d5(0x26c))/0xa;if(_0x565bcf===_0x12db55)break;else _0x46b94e['push'](_0x46b94e['shift']());}catch(_0x18b024){_0x46b94e['push'](_0x46b94e['shift']());}}}(_0x3318,0xb5ecf));var J=Object[_0x25ee2b(0x243)],K=(_0x510492,_0x1f3d86,_0x2497f1)=>_0x1f3d86 in _0x510492?J(_0x510492,_0x1f3d86,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2497f1}):_0x510492[_0x1f3d86]=_0x2497f1,u=(_0xe5eb6d,_0x347bcd,_0x4870e3)=>K(_0xe5eb6d,typeof _0x347bcd!=_0x25ee2b(0x219)?_0x347bcd+'':_0x347bcd,_0x4870e3);function _0x3318(){const _0x479033=['url(#$1','idle','_startPresenting','find','stopPresenting','disposeWithMe','1437547bZmhtX','shouldShareOperation','ONLINE','http://www.w3.org/2000/svg','getLiveShareCoordinator','trim','includes','set','_sharedOperations','getOwnPropertyDescriptor','parse','7006104tvmsUt','LIVESHARE_OPERATION','displayName','_injector','fill','_commandDisposable','Start\x20following','_stopPresenting','pipe','5552412NNrBXY','_handleNewChangeSets','getValue','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','createInstance','_univerInstanceService','You\x27are\x20offline.','533412CDDCok','idSuffix','_configService','HEADER_MENU','_reporters','startFollowing','_liveShareService','pluginName','_beIdle','FOLLOWING','getCurrentTypeOfUnit$','not-following','current','getTypeOfUnitAdded$','registerInitialStateReporter','init','symbol','_fetchOperations','delete','1em','executeCommand','1745188gsfpnF','clear','UNIVER_SHEET','_handleOffline','UniverIcon','button','xlink:href','text','override','univerjs-icon\x20univerjs-icon-','registerComponent','following','_status','_startFollowing','PRESENTING','stringify','div','_handleNewHost','getStatus','_entities','_collabSessionService','reverse','dispose$','onStarting','colorChannel1','_init','toString','_presenter','entries','_handleOperation','has','forEach','_stopFollowing','Start','Stop\x20following','_status$','tryStartPresenting','defineProperty','from','tag','Stop\x20presenting','complete','144sehzeA','LiveShareIcon','event$','requireSession','get','getMemberID','offline','subscribe','onRendered','sessionStatus$','getUnitId','attrs','children','send','You\x27re\x20presenting\x20the\x20document','5159920YkxSvJ','data','status$','presenting','map','LIVESHARE_TERMINATE','then','univer-size-4','_mountLiveShare','_unitID','univer-mb-3\x20univer-w-full\x20univer-text-sm','UNIVER_UNKNOWN','2IoxlhZ','LIVESHARE_REQUEST_HOST','end','3sHjtVt','path','values','unitId','sheet','evenodd','25783810OQViQe','presenter','add','_uiPartsService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SAME_OPERATION_SHARE_INTERVAL','substring','OFFLINE','use','NOT_FOLLOWING','mask','_startLiveShareCoordinator','memberID','_handleOnline','string','OPERATION','unsubscribe','next','stopFollowing','asObservable','svg','Present\x20this\x20document','length','type','params','operations','dispose','currentColor','_handleTerminate','NEW_CHANGESETS','default','getInitialStates','_commandService','_config','_collabSession'];_0x3318=function(){return _0x479033;};return _0x3318();}import{Disposable as _0x536fe5,toDisposable as _0x3791d0,IUniverInstanceService as _0x321915,Inject as _0x5df2f1,Injector as _0x2773ce,IConfigService as _0x289228,ICommandService as _0x4719b3,RxDisposable as _0x57de3b,UniverInstanceType as _0x550b95,DisposableCollection as _0x3feb8d,CommandType as _0x463f33,DependentOn as _0x2b6788,Plugin as _0x4155e9,merge as _0x12cf70,registerDependencies as _0x70c5c8,mergeOverrideWithDependencies as _0x4949c7,touchDependencies as _0x4dbc52}from'@univerjs/core';import{useDependency as _0x342b78,useObservable as _0x1df29a,IUIPartsService as _0xaa2672,BuiltInUIPart as _0x48a98c,connectInjector as _0x21b5cb}from'@univerjs/ui';import{jsx as _0x26e6ab,jsxs as _0x198524,Fragment as _0x518b0d}from'react/jsx-runtime';import{Dropdown as _0x529267,clsx as _0x57a711,Button as _0x23fd45}from'@univerjs/design';import{useRef as _0x43d6ea,createElement as _0x350afd,forwardRef as _0x39b81e,useState as _0x1591a3,useEffect as _0x5d5703}from'react';import{CollaborationEvent as _0x1e8c77,parseProtocolChangeset as _0x1b8fde}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x7119a7,SessionStatus as _0xe29edb,UniverCollaborationClientPlugin as _0x318246}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xf9e31d,SetWorksheetActiveOperation as _0x10e90c}from'@univerjs/sheets';import{BehaviorSubject as _0x6a94b9,Subject as _0x3a69f0}from'rxjs';import{takeUntil as _0x4bc654,throttleTime as _0x4427dc}from'rxjs/operators';import{SetZoomRatioOperation as _0x170f2f,SetScrollOperation as _0xc75d5e}from'@univerjs/sheets-ui';function k({ref:_0x5d97cb,..._0x3f71cb}){const _0x3f5d6e=_0x25ee2b,{icon:_0x5866cd,id:_0x36dd4f,className:_0x4fa107,extend:_0x2456d7,..._0x4e3c3a}=_0x3f71cb,_0x25334c=(_0x3f5d6e(0x227)+_0x36dd4f+'\x20'+(_0x4fa107||''))[_0x3f5d6e(0x1f3)](),_0xc780ed=_0x43d6ea('_'+Oe());return G(_0x5866cd,''+_0x36dd4f,{'defIds':_0x5866cd['defIds'],'idSuffix':_0xc780ed[_0x3f5d6e(0x215)]},{'ref':_0x5d97cb,'className':_0x25334c,..._0x4e3c3a},_0x2456d7);}function G(_0x3c57f0,_0x6ffbab,_0x82c7e8,_0x454aa9,_0x11bcab){const _0x433012=_0x25ee2b;return _0x350afd(_0x3c57f0[_0x433012(0x245)],{'key':_0x6ffbab,...be(_0x3c57f0,_0x82c7e8,_0x11bcab),..._0x454aa9},(Ee(_0x3c57f0,_0x82c7e8)[_0x433012(0x254)]||[])['map']((_0x1d9e28,_0x5a8dd0)=>G(_0x1d9e28,_0x6ffbab+'-'+_0x3c57f0['tag']+'-'+_0x5a8dd0,_0x82c7e8,void 0x0,_0x11bcab)));}function be(_0x5bfd07,_0x16c8ee,_0x526cb2){const _0x40369f=_0x25ee2b,_0x539313={..._0x5bfd07[_0x40369f(0x253)]};_0x526cb2!=null&&_0x526cb2[_0x40369f(0x236)]&&_0x539313[_0x40369f(0x1fd)]==='colorChannel1'&&(_0x539313[_0x40369f(0x1fd)]=_0x526cb2[_0x40369f(0x236)]),_0x5bfd07[_0x40369f(0x245)]===_0x40369f(0x276)&&_0x539313['id']&&(_0x539313['id']=_0x539313['id']+_0x16c8ee[_0x40369f(0x20a)]),Object['entries'](_0x539313)['forEach'](([_0x446a2f,_0x2d2470])=>{const _0x12cf09=_0x40369f;_0x446a2f===_0x12cf09(0x276)&&typeof _0x2d2470==_0x12cf09(0x27a)&&(_0x539313[_0x446a2f]=_0x2d2470['replace'](/url\(#(.*)\)/,_0x12cf09(0x1e8)+_0x16c8ee[_0x12cf09(0x20a)]+')'));});const {defIds:_0x215a09}=_0x16c8ee;return!_0x215a09||_0x215a09[_0x40369f(0x282)]===0x0||(_0x5bfd07[_0x40369f(0x245)]===_0x40369f(0x274)&&_0x539313[_0x40369f(0x224)]&&(_0x539313[_0x40369f(0x224)]=_0x539313['xlink:href']+_0x16c8ee[_0x40369f(0x20a)]),Object[_0x40369f(0x23a)](_0x539313)[_0x40369f(0x23d)](([_0x5e70c9,_0x2cd61e])=>{const _0x9206e0=_0x40369f;typeof _0x2cd61e==_0x9206e0(0x27a)&&(_0x539313[_0x5e70c9]=_0x2cd61e['replace'](/url\(#(.*)\)/,_0x9206e0(0x1e8)+_0x16c8ee['idSuffix']+')'));})),_0x539313;}function Ee(_0x2374e7,_0x5dfe8a){const _0x460d18=_0x25ee2b;var _0x486852;const {defIds:_0x409ea7}=_0x5dfe8a;return!_0x409ea7||_0x409ea7[_0x460d18(0x282)]===0x0?_0x2374e7:_0x2374e7[_0x460d18(0x245)]==='defs'&&((_0x486852=_0x2374e7[_0x460d18(0x254)])!=null&&_0x486852[_0x460d18(0x282)])?{..._0x2374e7,'children':_0x2374e7[_0x460d18(0x254)][_0x460d18(0x25b)](_0x4f4fe0=>typeof _0x4f4fe0[_0x460d18(0x253)]['id']==_0x460d18(0x27a)&&_0x409ea7&&_0x409ea7[_0x460d18(0x1f4)](_0x4f4fe0[_0x460d18(0x253)]['id'])?{..._0x4f4fe0,'attrs':{..._0x4f4fe0[_0x460d18(0x253)],'id':_0x4f4fe0[_0x460d18(0x253)]['id']+_0x5dfe8a[_0x460d18(0x20a)]}}:_0x4f4fe0)}:_0x2374e7;}function Oe(){const _0x3afdb9=_0x25ee2b;return Math['random']()[_0x3afdb9(0x238)](0x24)[_0x3afdb9(0x272)](0x2,0x8);}k['displayName']=_0x25ee2b(0x222);const we={'tag':_0x25ee2b(0x280),'attrs':{'xmlns':_0x25ee2b(0x1f1),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x25ee2b(0x21c),'height':_0x25ee2b(0x21c)},'children':[{'tag':_0x25ee2b(0x267),'attrs':{'fill':_0x25ee2b(0x1e0),'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':_0x25ee2b(0x267),'attrs':{'fill':_0x25ee2b(0x1e0),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x25ee2b(0x26b),'clipRule':_0x25ee2b(0x26b)}}]},W=_0x39b81e(function(_0xaa45de,_0x29d9be){return _0x350afd(k,Object['assign']({},_0xaa45de,{'id':'live-share-icon','ref':_0x29d9be,'icon':we}));});W[_0x25ee2b(0x1fb)]=_0x25ee2b(0x249);class L extends _0x536fe5{constructor(){const _0x449475=_0x25ee2b;super(...arguments),u(this,_0x449475(0x1f6),new Set()),u(this,_0x449475(0x20d),new Set());}['registerSharedOperation'](_0x459cf3){const _0x1246a7=_0x25ee2b;return this[_0x1246a7(0x1f6)][_0x1246a7(0x26e)](_0x459cf3),_0x3791d0(()=>this[_0x1246a7(0x1f6)][_0x1246a7(0x21b)](_0x459cf3));}[_0x25ee2b(0x217)](_0x5a1af5){const _0xdba816=_0x25ee2b;return this[_0xdba816(0x20d)][_0xdba816(0x26e)](_0x5a1af5),_0x3791d0(()=>this[_0xdba816(0x20d)][_0xdba816(0x21b)](_0x5a1af5));}[_0x25ee2b(0x1ef)](_0x399e9f){const _0x4ef55e=_0x25ee2b;return this['_sharedOperations'][_0x4ef55e(0x23c)](_0x399e9f);}[_0x25ee2b(0x1e4)](_0x56102d){const _0x3877f2=_0x25ee2b;return Array[_0x3877f2(0x244)](this[_0x3877f2(0x20d)])[_0x3877f2(0x25b)](_0x3ddab5=>_0x3ddab5(_0x56102d));}}var Ne=Object[_0x25ee2b(0x1f7)],Y=(_0x25a209,_0x868f91,_0x3c9657,_0x37bba0)=>{const _0x345783=_0x25ee2b;for(var _0x143c41=_0x37bba0>0x1?void 0x0:_0x37bba0?Ne(_0x868f91,_0x3c9657):_0x868f91,_0x4f483d=_0x25a209[_0x345783(0x282)]-0x1,_0xb2d609;_0x4f483d>=0x0;_0x4f483d--)(_0xb2d609=_0x25a209[_0x4f483d])&&(_0x143c41=_0xb2d609(_0x143c41)||_0x143c41);return _0x143c41;},_=(_0x265ea9,_0x2a9cfd)=>(_0x225637,_0x32b365)=>_0x2a9cfd(_0x225637,_0x32b365,_0x265ea9);let S=class extends _0x57de3b{constructor(_0x112f63,_0x477400,_0x525d85){const _0x196676=_0x25ee2b;super(),u(this,_0x196676(0x231),new Map()),(this[_0x196676(0x207)]=_0x112f63,this['_injector']=_0x477400,this[_0x196676(0x232)]=_0x525d85,this[_0x196676(0x237)]());}async[_0x25ee2b(0x1f2)](_0x183430){const _0x119dfd=_0x25ee2b;return this[_0x119dfd(0x231)][_0x119dfd(0x23c)](_0x183430)||await this['_startLiveShareCoordinator'](_0x183430),this['_entities'][_0x119dfd(0x24c)](_0x183430);}['getLiveShareCoordinatorSync'](_0x17b983){const _0x51bf67=_0x25ee2b;var _0x27db4e;return(_0x27db4e=this['_entities'][_0x51bf67(0x24c)](_0x17b983))!=null?_0x27db4e:null;}[_0x25ee2b(0x237)](){const _0x16ee00=_0x25ee2b;this[_0x16ee00(0x207)][_0x16ee00(0x216)](_0x550b95[_0x16ee00(0x220)])[_0x16ee00(0x201)](_0x4bc654(this[_0x16ee00(0x234)]))[_0x16ee00(0x24f)](async _0x11bfb3=>{const _0x5b97de=_0x16ee00,_0x135873=_0x11bfb3[_0x5b97de(0x252)]();this[_0x5b97de(0x231)][_0x5b97de(0x23c)](_0x135873)||this['_startLiveShareCoordinator'](_0x135873);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x550b95[_0x16ee00(0x220)])[_0x16ee00(0x201)](_0x4bc654(this['dispose$']))[_0x16ee00(0x24f)](_0x507166=>{const _0x4d1466=_0x16ee00,_0x30767f=_0x507166[_0x4d1466(0x252)](),_0x4375ba=this[_0x4d1466(0x231)][_0x4d1466(0x24c)](_0x30767f);_0x4375ba==null||_0x4375ba[_0x4d1466(0x1df)]();});}async[_0x25ee2b(0x277)](_0x1bf4c8){const _0x3030b3=_0x25ee2b,_0x3246ac=await this[_0x3030b3(0x232)][_0x3030b3(0x24b)](_0x1bf4c8),_0x42af57=this[_0x3030b3(0x1fc)][_0x3030b3(0x206)](N,_0x1bf4c8,_0x3246ac);return _0x42af57[_0x3030b3(0x218)](),this['_entities'][_0x3030b3(0x1f5)](_0x1bf4c8,_0x42af57),_0x42af57;}};S=Y([_(0x0,_0x321915),_(0x1,_0x5df2f1(_0x2773ce)),_(0x2,_0x5df2f1(_0x7119a7))],S);var c=(_0x39b654=>(_0x39b654[_0x25ee2b(0x273)]=_0x25ee2b(0x24e),_0x39b654['IDLE']=_0x25ee2b(0x1e9),_0x39b654[_0x25ee2b(0x212)]='following',_0x39b654[_0x25ee2b(0x275)]='not-following',_0x39b654[_0x25ee2b(0x22c)]=_0x25ee2b(0x25a),_0x39b654))(c||{});const Ce=_0x25ee2b(0x271),De=0xc8;let N=class extends _0x57de3b{constructor(_0x1487c5,_0x4820de,_0x1f0c41,_0xeca8d4,_0x23f29a){const _0x5acdd5=_0x25ee2b;super(),u(this,_0x5acdd5(0x241),new _0x6a94b9('idle')),u(this,'status$',this[_0x5acdd5(0x241)][_0x5acdd5(0x27f)]()),u(this,_0x5acdd5(0x237),!0x1),u(this,_0x5acdd5(0x1fe),null),u(this,_0x5acdd5(0x239),null),(this[_0x5acdd5(0x260)]=_0x1487c5,this['_collabSession']=_0x4820de,this['_configService']=_0x1f0c41,this[_0x5acdd5(0x20f)]=_0xeca8d4,this[_0x5acdd5(0x1e5)]=_0x23f29a);}get[_0x25ee2b(0x22a)](){const _0x1a0ed4=_0x25ee2b;return this[_0x1a0ed4(0x241)][_0x1a0ed4(0x204)]();}['dispose'](){const _0x227d30=_0x25ee2b;var _0x33b4b8;(_0x33b4b8=this['_commandDisposable'])==null||_0x33b4b8['dispose'](),this['_status$'][_0x227d30(0x27d)](_0x227d30(0x1e9)),this[_0x227d30(0x241)][_0x227d30(0x247)]();}[_0x25ee2b(0x230)](){return this['_status'];}[_0x25ee2b(0x218)](){const _0x20159f=_0x25ee2b;this[_0x20159f(0x237)]||(this[_0x20159f(0x237)]=!0x0,this[_0x20159f(0x1e7)][_0x20159f(0x251)][_0x20159f(0x201)](_0x4bc654(this['dispose$']))[_0x20159f(0x24f)](_0x143a01=>{const _0x574d78=_0x20159f;switch(_0x143a01){case _0xe29edb[_0x574d78(0x273)]:this['_handleOffline']();break;case _0xe29edb[_0x574d78(0x1f0)]:this[_0x574d78(0x279)]();break;}}),this[_0x20159f(0x1e7)][_0x20159f(0x24a)][_0x20159f(0x201)](_0x4bc654(this[_0x20159f(0x234)]))[_0x20159f(0x24f)](_0x379e83=>{const _0x3162c2=_0x20159f,{eventID:_0x4fd48e}=_0x379e83;switch(_0x4fd48e){case _0x1e8c77['LIVESHARE_NEW_HOST']:this[_0x3162c2(0x22f)](_0x379e83);break;case _0x1e8c77[_0x3162c2(0x1fa)]:this[_0x3162c2(0x23b)](_0x379e83);break;case _0x1e8c77[_0x3162c2(0x25c)]:this[_0x3162c2(0x1e1)]();break;case _0x1e8c77[_0x3162c2(0x1e2)]:this[_0x3162c2(0x203)](_0x379e83);break;}}));}[_0x25ee2b(0x242)](){const _0xbf9ef7=_0x25ee2b;this[_0xbf9ef7(0x1e7)]['send']({'eventID':_0x1e8c77[_0xbf9ef7(0x264)],'data':{'unitID':this[_0xbf9ef7(0x260)],'userID':this[_0xbf9ef7(0x1e7)][_0xbf9ef7(0x24d)]()}},this[_0xbf9ef7(0x260)]);}[_0x25ee2b(0x1ec)](){const _0x5e7e2a=_0x25ee2b;this[_0x5e7e2a(0x22a)]===_0x5e7e2a(0x25a)&&(this[_0x5e7e2a(0x241)][_0x5e7e2a(0x27d)](_0x5e7e2a(0x1e9)),this[_0x5e7e2a(0x1e7)][_0x5e7e2a(0x255)]({'eventID':_0x1e8c77[_0x5e7e2a(0x25c)],'data':{'unitID':this[_0x5e7e2a(0x260)]}},this[_0x5e7e2a(0x260)]));}['startFollowing'](){const _0x3266c3=_0x25ee2b;this[_0x3266c3(0x22a)]===_0x3266c3(0x214)&&(this[_0x3266c3(0x241)]['next'](_0x3266c3(0x229)),this['_startFollowing']());}[_0x25ee2b(0x27e)](){const _0x174239=_0x25ee2b;this[_0x174239(0x22a)]===_0x174239(0x229)&&this[_0x174239(0x23e)]();}['_handleNewHost'](_0x291737){const _0x686279=_0x25ee2b,{presenter:_0x368e54}=_0x291737[_0x686279(0x258)],_0x873dc9=this[_0x686279(0x1e7)]['getMemberID']();this['_presenter']=_0x368e54,_0x368e54===_0x873dc9?(this[_0x686279(0x23e)](),this[_0x686279(0x1ea)]()):this[_0x686279(0x22a)]!==_0x686279(0x214)&&(this[_0x686279(0x200)](),this[_0x686279(0x22b)]());}['_fetchOperations'](){const _0x1203d9=_0x25ee2b,_0x789159={'eventID':_0x1e8c77['LIVESHARE_FETCH_OPERATIONS']};this[_0x1203d9(0x1e7)][_0x1203d9(0x255)](_0x789159,this[_0x1203d9(0x260)]);}[_0x25ee2b(0x1e1)](){const _0x1b704b=_0x25ee2b;this[_0x1b704b(0x239)]=null,this[_0x1b704b(0x22a)]!==_0x1b704b(0x25a)&&this[_0x1b704b(0x211)]();}[_0x25ee2b(0x203)](_0x54a134){const _0x5edd0c=_0x25ee2b;if(this[_0x5edd0c(0x22a)]===_0x5edd0c(0x229)&&this[_0x5edd0c(0x239)]===_0x54a134[_0x5edd0c(0x258)][_0x5edd0c(0x278)]){const _0x5af89a=_0x1b8fde(_0x54a134[_0x5edd0c(0x258)])['mutations'][_0x5edd0c(0x233)]()[_0x5edd0c(0x1eb)](_0x21c6c0=>_0x21c6c0['id']===_0xf9e31d['id']);if(_0x5af89a){const _0x3680f1=_0x5af89a[_0x5edd0c(0x1dd)][_0x5edd0c(0x269)],_0x449956=_0x5af89a[_0x5edd0c(0x1dd)][_0x5edd0c(0x26a)]['id'];setTimeout(()=>{const _0x1b2e4c=_0x5edd0c;this[_0x1b2e4c(0x1e5)][_0x1b2e4c(0x21d)](_0x10e90c['id'],{'unitId':_0x3680f1,'subUnitId':_0x449956},{'fromCollab':!0x0});});}}}[_0x25ee2b(0x1ea)](){const _0x58a802=_0x25ee2b;this[_0x58a802(0x241)]['next'](_0x58a802(0x25a));const _0x4f04da=new Map(),_0x5a6c70=this[_0x58a802(0x1fe)]=new _0x3feb8d();_0x5a6c70[_0x58a802(0x26e)](_0x3791d0(()=>{const _0x25f11b=_0x58a802;_0x4f04da[_0x25f11b(0x23d)](_0x4a6055=>_0x4a6055[_0x25f11b(0x247)]()),_0x4f04da[_0x25f11b(0x21f)]();})),_0x5a6c70['add'](this['_commandService']['onCommandExecuted'](_0x21a68c=>{const _0x3325f2=_0x58a802;var _0x2f9c0e;if(_0x21a68c[_0x3325f2(0x1dc)]!==_0x463f33[_0x3325f2(0x27b)]||!this[_0x3325f2(0x20f)][_0x3325f2(0x1ef)](_0x21a68c['id']))return;const {id:_0x345ab1}=_0x21a68c;let _0x2b95b9;_0x4f04da['has'](_0x345ab1)?_0x2b95b9=_0x4f04da[_0x3325f2(0x24c)](_0x345ab1):(_0x2b95b9=new _0x3a69f0(),_0x4f04da[_0x3325f2(0x1f5)](_0x345ab1,_0x2b95b9),_0x2b95b9['pipe'](_0x4427dc((_0x2f9c0e=this[_0x3325f2(0x20b)]['getConfig'](Ce))!=null?_0x2f9c0e:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4a7ab4=>{const _0x4767b4=_0x3325f2;this[_0x4767b4(0x1e7)][_0x4767b4(0x255)]({'eventID':_0x1e8c77[_0x4767b4(0x1fa)],'data':{'unitID':this['_unitID'],'operations':{[_0x4a7ab4['id']]:{'id':_0x4a7ab4['id'],'params':JSON[_0x4767b4(0x22d)](_0x4a7ab4[_0x4767b4(0x1dd)])}}}},this[_0x4767b4(0x260)]);})),_0x2b95b9[_0x3325f2(0x27d)](_0x21a68c);})),this[_0x58a802(0x20f)][_0x58a802(0x1e4)](this[_0x58a802(0x260)])['forEach'](_0x52efee=>this[_0x58a802(0x1e7)]['send']({'eventID':_0x1e8c77[_0x58a802(0x1fa)],'data':{'unitID':this[_0x58a802(0x260)],'operations':{[_0x52efee['id']]:{'id':_0x52efee['id'],'params':JSON['stringify'](_0x52efee[_0x58a802(0x1dd)])}}}},this['_unitID']));}[_0x25ee2b(0x200)](){const _0x45c5c5=_0x25ee2b;var _0x26b715;this[_0x45c5c5(0x241)][_0x45c5c5(0x27d)](_0x45c5c5(0x1e9)),(_0x26b715=this[_0x45c5c5(0x1fe)])==null||_0x26b715[_0x45c5c5(0x1df)](),this[_0x45c5c5(0x1fe)]=null;}['_startFollowing'](){const _0x1ebc2d=_0x25ee2b;var _0x5a5309;(_0x5a5309=this[_0x1ebc2d(0x1fe)])==null||_0x5a5309[_0x1ebc2d(0x1df)](),this[_0x1ebc2d(0x241)][_0x1ebc2d(0x27d)](_0x1ebc2d(0x229));}['_beIdle'](){const _0x446edc=_0x25ee2b;var _0x5b798d;this[_0x446edc(0x241)][_0x446edc(0x27d)](_0x446edc(0x1e9)),(_0x5b798d=this['_commandDisposable'])==null||_0x5b798d[_0x446edc(0x1df)](),this[_0x446edc(0x1fe)]=null;}[_0x25ee2b(0x23e)](){const _0x36f832=_0x25ee2b;var _0x49ba80;this[_0x36f832(0x241)]['next']('not-following'),(_0x49ba80=this['_commandDisposable'])==null||_0x49ba80[_0x36f832(0x1df)]();}[_0x25ee2b(0x23b)](_0x38b346){const _0xff54c6=_0x25ee2b;if([_0xff54c6(0x25a),_0xff54c6(0x214),_0xff54c6(0x24e)][_0xff54c6(0x1f4)](this[_0xff54c6(0x22a)])||!_0x38b346['data'][_0xff54c6(0x26d)]||_0x38b346['data']['presenter']===this['_collabSession'][_0xff54c6(0x24d)]())return;this[_0xff54c6(0x22a)]===_0xff54c6(0x1e9)&&this[_0xff54c6(0x22b)]();const _0x535403=_0x38b346[_0xff54c6(0x258)][_0xff54c6(0x1de)];Object[_0xff54c6(0x268)](_0x535403)['forEach'](_0x3422cd=>{const _0x8d71cc=_0xff54c6;this[_0x8d71cc(0x1e5)][_0x8d71cc(0x21d)](_0x3422cd['id'],_0x3422cd[_0x8d71cc(0x1dd)]?JSON[_0x8d71cc(0x1f8)](_0x3422cd[_0x8d71cc(0x1dd)]):null,{'fromCollab':!0x0});});}[_0x25ee2b(0x221)](){const _0x1fbd48=_0x25ee2b;var _0x4ece1d;this[_0x1fbd48(0x241)][_0x1fbd48(0x27d)](_0x1fbd48(0x24e)),(_0x4ece1d=this[_0x1fbd48(0x1fe)])==null||_0x4ece1d['dispose']();}[_0x25ee2b(0x279)](){const _0x1ecae0=_0x25ee2b;this[_0x1ecae0(0x241)][_0x1ecae0(0x27d)](_0x1ecae0(0x1e9)),this[_0x1ecae0(0x21a)]();}};N=Y([_(0x2,_0x289228),_(0x3,_0x5df2f1(L)),_(0x4,_0x4719b3)],N);function Le(){const _0x54a579=_0x25ee2b,_0xa855d1=_0x342b78(S),_0x206ccc=_0x342b78(_0x321915),_0xeb011d=_0x1df29a(()=>_0x206ccc[_0x54a579(0x213)](_0x550b95[_0x54a579(0x220)]),void 0x0,!0x1,[]),[_0x4dfef9,_0x4b6f1e]=_0x1591a3(null),[_0x95edf4,_0x371dcd]=_0x1591a3(c['IDLE']),_0x52a2fe=_0x43d6ea(null);return _0x5d5703(()=>(_0xeb011d&&_0xa855d1[_0x54a579(0x1f2)](_0xeb011d[_0x54a579(0x252)]())[_0x54a579(0x25d)](_0x52fcdd=>{const _0x42c154=_0x54a579;_0x4b6f1e(_0x52fcdd),_0x52a2fe[_0x42c154(0x215)]=_0x52fcdd[_0x42c154(0x259)]['subscribe'](_0x4f3e93=>{_0x371dcd(_0x4f3e93);});}),()=>{const _0x296cd0=_0x54a579;var _0x18d4a8;(_0x18d4a8=_0x52a2fe['current'])==null||_0x18d4a8[_0x296cd0(0x27c)](),_0x52a2fe['current']=null;}),[_0xeb011d,_0xa855d1]),_0x4dfef9?_0x26e6ab(_0x529267,{'align':_0x54a579(0x265),'disabled':_0x95edf4===c[_0x54a579(0x273)],'className':_0x54a579(0x205),'overlay':_0x26e6ab(Re,{'status':_0x95edf4,'coordinator':_0x4dfef9}),'children':_0x26e6ab(_0x54a579(0x223),{'className':_0x57a711(_0x54a579(0x270),{'univer-cursor-not-allowed':_0x95edf4===c[_0x54a579(0x273)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x95edf4!==c[_0x54a579(0x273)]}),'type':'button','children':_0x26e6ab(W,{'className':_0x54a579(0x25e)})})}):null;}function Re(_0x4916ca){const _0x5c53a=_0x25ee2b,{status:_0x1fb38d,coordinator:_0x3bcb41}=_0x4916ca;switch(_0x1fb38d){case c['IDLE']:return _0x26e6ab($e,{'coordinator':_0x3bcb41});case c[_0x5c53a(0x212)]:return _0x26e6ab(xe,{'coordinator':_0x3bcb41});case c[_0x5c53a(0x275)]:return _0x26e6ab(Pe,{'coordinator':_0x3bcb41});case c[_0x5c53a(0x273)]:return _0x26e6ab(Te,{});case c[_0x5c53a(0x22c)]:return _0x26e6ab(Ae,{'coordinator':_0x3bcb41});default:return null;}}function $e(_0x2fefea){const _0xb64479=_0x25ee2b,{coordinator:_0x3e360d}=_0x2fefea;return _0x198524(_0x518b0d,{'children':[_0x26e6ab(_0xb64479(0x22e),{'className':_0xb64479(0x261),'children':_0xb64479(0x281)}),_0x26e6ab(_0x23fd45,{'onClick':()=>_0x3e360d[_0xb64479(0x242)](),'children':_0xb64479(0x23f)})]});}function xe(_0x126de7){const _0x2d2149=_0x25ee2b,{coordinator:_0x37c5f5}=_0x126de7;return _0x198524(_0x518b0d,{'children':[_0x26e6ab(_0x2d2149(0x22e),{'className':_0x2d2149(0x261),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x26e6ab(_0x23fd45,{'onClick':()=>_0x37c5f5[_0x2d2149(0x27e)](),'children':_0x2d2149(0x240)})]});}function Pe(_0x4c90cd){const _0x134e1a=_0x25ee2b,{coordinator:_0x40d0c0}=_0x4c90cd;return _0x198524(_0x518b0d,{'children':[_0x26e6ab('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x26e6ab(_0x23fd45,{'variant':_0x134e1a(0x225),'onClick':()=>_0x40d0c0[_0x134e1a(0x20e)](),'children':_0x134e1a(0x1ff)})]});}function Ae(_0x59841f){const _0x1f4f08=_0x25ee2b,{coordinator:_0x233bdb}=_0x59841f;return _0x198524(_0x518b0d,{'children':[_0x26e6ab(_0x1f4f08(0x22e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1f4f08(0x256)}),_0x26e6ab(_0x23fd45,{'variant':_0x1f4f08(0x1e3),'onClick':()=>_0x233bdb[_0x1f4f08(0x1ec)](),'children':_0x1f4f08(0x246)})]});}function Te(){const _0x3d2e59=_0x25ee2b;return _0x26e6ab(_0x518b0d,{'children':_0x3d2e59(0x208)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x3fc747,_0x4c20b4,_0x481ef8,_0x4e3c33)=>{const _0xd44746=_0x25ee2b;for(var _0x463da0=_0x4e3c33>0x1?void 0x0:_0x4e3c33?Fe(_0x4c20b4,_0x481ef8):_0x4c20b4,_0x3a0bc2=_0x3fc747[_0xd44746(0x282)]-0x1,_0x5bcd56;_0x3a0bc2>=0x0;_0x3a0bc2--)(_0x5bcd56=_0x3fc747[_0x3a0bc2])&&(_0x463da0=_0x5bcd56(_0x463da0)||_0x463da0);return _0x463da0;},A=(_0x14789f,_0x3b3505)=>(_0x32307a,_0x44e4d1)=>_0x3b3505(_0x32307a,_0x44e4d1,_0x14789f);let m=class extends _0x536fe5{constructor(_0x97cadf,_0x531e22){const _0x59ce35=_0x25ee2b;super(),this[_0x59ce35(0x1fc)]=_0x97cadf,this['_uiPartsService']=_0x531e22,this[_0x59ce35(0x25f)]();}[_0x25ee2b(0x25f)](){const _0x25cc81=_0x25ee2b;this[_0x25cc81(0x1ed)](this[_0x25cc81(0x26f)][_0x25cc81(0x228)](_0x48a98c[_0x25cc81(0x20c)],()=>_0x21b5cb(Le,this[_0x25cc81(0x1fc)])));}};m=He([A(0x0,_0x5df2f1(_0x2773ce)),A(0x1,_0xaa2672)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0xd39551,_0x36bf07,_0x41d170,_0x5dda06)=>{const _0x2a0775=_0x25ee2b;for(var _0x12285e=_0x5dda06>0x1?void 0x0:_0x5dda06?Ue(_0x36bf07,_0x41d170):_0x36bf07,_0x17d3d5=_0xd39551[_0x2a0775(0x282)]-0x1,_0x5030bc;_0x17d3d5>=0x0;_0x17d3d5--)(_0x5030bc=_0xd39551[_0x17d3d5])&&(_0x12285e=_0x5030bc(_0x12285e)||_0x12285e);return _0x12285e;},je=(_0x354c66,_0x17ddc8)=>(_0x27969a,_0x5a0a48)=>_0x17ddc8(_0x27969a,_0x5a0a48,_0x354c66);let I=class extends _0x536fe5{constructor(_0x3870ee){const _0x5eb47a=_0x25ee2b;super(),this[_0x5eb47a(0x20f)]=_0x3870ee,this[_0x5eb47a(0x237)]();}['_init'](){const _0x5ce72f=_0x25ee2b;[_0x170f2f['id'],_0xc75d5e['id'],_0x10e90c['id']][_0x5ce72f(0x23d)](_0x1f5145=>{const _0x2c7a78=_0x5ce72f;this[_0x2c7a78(0x1ed)](this[_0x2c7a78(0x20f)]['registerSharedOperation'](_0x1f5145));});}};I=Ve([je(0x0,_0x5df2f1(L))],I);var Me=Object[_0x25ee2b(0x243)],ke=Object[_0x25ee2b(0x1f7)],Ge=(_0x1a8fbb,_0x5dafc9,_0x5bea9f)=>_0x5dafc9 in _0x1a8fbb?Me(_0x1a8fbb,_0x5dafc9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bea9f}):_0x1a8fbb[_0x5dafc9]=_0x5bea9f,We=(_0x23cda6,_0x4182a2,_0x53f377,_0x299d12)=>{for(var _0x17e5fc=_0x299d12>0x1?void 0x0:_0x299d12?ke(_0x4182a2,_0x53f377):_0x4182a2,_0x4e19e3=_0x23cda6['length']-0x1,_0x43ae9f;_0x4e19e3>=0x0;_0x4e19e3--)(_0x43ae9f=_0x23cda6[_0x4e19e3])&&(_0x17e5fc=_0x43ae9f(_0x17e5fc)||_0x17e5fc);return _0x17e5fc;},F=(_0x3f4518,_0x25e5d5)=>(_0x3732eb,_0x431efa)=>_0x25e5d5(_0x3732eb,_0x431efa,_0x3f4518),B=(_0x5ad5b2,_0x10073b,_0x3efbaf)=>Ge(_0x5ad5b2,typeof _0x10073b!=_0x25ee2b(0x219)?_0x10073b+'':_0x10073b,_0x3efbaf);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x4155e9{constructor(_0x1bb2e4=T,_0x51466b,_0x2c3bb7){const _0x4847fd=_0x25ee2b;super(),this['_config']=_0x1bb2e4,this[_0x4847fd(0x1fc)]=_0x51466b,this['_configService']=_0x2c3bb7;const {..._0x2f5043}=_0x12cf70({},T,this[_0x4847fd(0x1e6)]);this['_configService']['setConfig'](ye,_0x2f5043);}[_0x25ee2b(0x235)](){const _0x372512=_0x25ee2b;_0x70c5c8(this[_0x372512(0x1fc)],_0x4949c7([[L],[S],[I],[m]],this[_0x372512(0x1e6)][_0x372512(0x226)])),_0x4dbc52(this[_0x372512(0x1fc)],[[I]]);}[_0x25ee2b(0x250)](){const _0x410537=_0x25ee2b;_0x4dbc52(this[_0x410537(0x1fc)],[[m]]);}};B(b,'type',_0x550b95[_0x25ee2b(0x262)]),B(b,_0x25ee2b(0x210),Ye),b=We([_0x2b6788(_0x318246),F(0x1,_0x5df2f1(_0x2773ce)),F(0x2,_0x289228)],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 _0x3ab1(_0x5e0c55,_0x5aaafc){const _0x4e7138=_0x4e71();return _0x3ab1=function(_0x3ab1df,_0x2989cc){_0x3ab1df=_0x3ab1df-0x159;let _0x360a7a=_0x4e7138[_0x3ab1df];return _0x360a7a;},_0x3ab1(_0x5e0c55,_0x5aaafc);}(function(_0x5b4c11,_0x477dca){const _0x58e583=_0x3ab1,_0x1efd2d=_0x5b4c11();while(!![]){try{const _0x27eb02=-parseInt(_0x58e583(0x163))/0x1+parseInt(_0x58e583(0x172))/0x2+parseInt(_0x58e583(0x16f))/0x3+-parseInt(_0x58e583(0x182))/0x4+-parseInt(_0x58e583(0x174))/0x5+parseInt(_0x58e583(0x16b))/0x6*(parseInt(_0x58e583(0x16c))/0x7)+parseInt(_0x58e583(0x165))/0x8*(-parseInt(_0x58e583(0x16e))/0x9);if(_0x27eb02===_0x477dca)break;else _0x1efd2d['push'](_0x1efd2d['shift']());}catch(_0x2361ea){_0x1efd2d['push'](_0x1efd2d['shift']());}}}(_0x4e71,0x8b0eb),function(_0x20d938,_0x424138){const _0x3aa023=_0x3ab1;typeof exports==_0x3aa023(0x15c)&&typeof module<'u'?_0x424138(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==_0x3aa023(0x186)&&define[_0x3aa023(0x183)]?define(['@univerjs-pro/live-share',_0x3aa023(0x188),'@univerjs/sheets','@univerjs/sheets-ui',_0x3aa023(0x178),'@univerjs/core/facade'],_0x424138):(_0x20d938=typeof globalThis<'u'?globalThis:_0x20d938||self,_0x424138(_0x20d938[_0x3aa023(0x169)],_0x20d938[_0x3aa023(0x17c)],_0x20d938[_0x3aa023(0x162)],_0x20d938[_0x3aa023(0x171)],_0x20d938[_0x3aa023(0x168)],_0x20d938[_0x3aa023(0x179)]));}(this,function(_0x294bad,_0x18b152,_0x364b4c,_0x57b4f5,_0x1d8ca2,_0x3d9329){'use strict';const _0x3165b6=_0x3ab1;class _0x10024d extends _0x1d8ca2[_0x3165b6(0x187)]{['_initialize'](_0x289de4,_0x58f9b6,_0x5e9546,_0x2c158e,_0xe553a6){const _0x416431=_0x3165b6,_0xe82f7a=_0x289de4['get'](_0x294bad['LiveShareController']),_0x1f50c8=_0x289de4['get'](_0x18b152[_0x416431(0x16d)]),_0x297bd5=_0x58f9b6[_0x416431(0x17b)](),_0x49772d=_0x58f9b6['getActiveSheet'](),_0x3e9c97=_0xe82f7a[_0x416431(0x180)](_0x297bd5);(_0x3e9c97==null?void 0x0:_0x3e9c97[_0x416431(0x161)]())!==_0x294bad[_0x416431(0x176)][_0x416431(0x18a)]||(_0x5e9546['getSheetId']()!==_0x49772d['getSheetId']()&&this[_0x416431(0x15f)][_0x416431(0x173)](_0x364b4c[_0x416431(0x170)]['id'],{'unitId':_0x297bd5,'subUnitId':_0x5e9546[_0x416431(0x185)]()}),!_0x1f50c8[_0x416431(0x189)](_0x297bd5))||_0xe553a6[_0x416431(0x17f)](_0x57b4f5['SetScrollOperation']['id'],{'unitId':_0x58f9b6[_0x416431(0x17b)](),'sheetId':_0x5e9546['getSheetId'](),'sheetViewStartRow':_0x2c158e['startRow'],'sheetViewStartColumn':_0x2c158e['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x1d8ca2[_0x3165b6(0x187)][_0x3165b6(0x181)](_0x10024d);class _0x1a95c7 extends _0x3d9329[_0x3165b6(0x17e)]{['getLiveShareStatus'](){const _0x3d3f73=_0x3165b6;var _0x2ddb1d,_0x189031;const _0x1a9399=this[_0x3d3f73(0x17d)][_0x3d3f73(0x167)](_0x294bad['LiveShareController']),_0x50aafd=(_0x2ddb1d=this['getActiveWorkbook']())==null?void 0x0:_0x2ddb1d[_0x3d3f73(0x15d)]();if(!_0x50aafd)throw new Error(_0x3d3f73(0x15e));const _0x32cec2=_0x1a9399[_0x3d3f73(0x180)](_0x50aafd);return(_0x189031=_0x32cec2==null?void 0x0:_0x32cec2[_0x3d3f73(0x161)]())!=null?_0x189031:_0x294bad[_0x3d3f73(0x176)][_0x3d3f73(0x164)];}['startFollowing'](){const _0x177533=_0x3165b6;var _0x12f1b9;const _0x2df197=this[_0x177533(0x17d)][_0x177533(0x167)](_0x294bad[_0x177533(0x184)]),_0x2ac1b8=(_0x12f1b9=this[_0x177533(0x160)]())==null?void 0x0:_0x12f1b9[_0x177533(0x15d)]();if(!_0x2ac1b8)throw new Error(_0x177533(0x15e));const _0x3f0684=_0x2df197[_0x177533(0x180)](_0x2ac1b8);if(!_0x3f0684)throw new Error(_0x177533(0x16a));_0x3f0684[_0x177533(0x166)]();}[_0x3165b6(0x17a)](){const _0x146874=_0x3165b6;var _0x4e90cf;const _0x2b987b=this['_injector'][_0x146874(0x167)](_0x294bad['LiveShareController']),_0x1037a9=(_0x4e90cf=this['getActiveWorkbook']())==null?void 0x0:_0x4e90cf[_0x146874(0x15d)]();if(!_0x1037a9)throw new Error(_0x146874(0x15e));const _0xb93a9f=_0x2b987b['getLiveShareCoordinatorSync'](_0x1037a9);if(!_0xb93a9f)throw new Error(_0x146874(0x16a));_0xb93a9f['stopFollowing']();}[_0x3165b6(0x159)](){const _0x8148b6=_0x3165b6;var _0x205a02;const _0x40a645=this[_0x8148b6(0x17d)][_0x8148b6(0x167)](_0x294bad[_0x8148b6(0x184)]),_0x34034d=(_0x205a02=this[_0x8148b6(0x160)]())==null?void 0x0:_0x205a02[_0x8148b6(0x15d)]();if(!_0x34034d)throw new Error(_0x8148b6(0x15e));const _0x2c0ee6=_0x40a645[_0x8148b6(0x180)](_0x34034d);if(!_0x2c0ee6)throw new Error(_0x8148b6(0x16a));_0x2c0ee6[_0x8148b6(0x15a)]();}[_0x3165b6(0x15b)](){const _0x5c1dc7=_0x3165b6;var _0x393652;const _0x477dc5=this[_0x5c1dc7(0x17d)][_0x5c1dc7(0x167)](_0x294bad[_0x5c1dc7(0x184)]),_0xfe6cc0=(_0x393652=this[_0x5c1dc7(0x160)]())==null?void 0x0:_0x393652['getId']();if(!_0xfe6cc0)throw new Error('No\x20active\x20workbook\x20found.');const _0x12e923=_0x477dc5[_0x5c1dc7(0x180)](_0xfe6cc0);if(!_0x12e923)throw new Error(_0x5c1dc7(0x16a));_0x12e923[_0x5c1dc7(0x15b)]();}}_0x3d9329['FUniver'][_0x3165b6(0x181)](_0x1a95c7);class _0x529698 extends _0x3d9329[_0x3165b6(0x177)]{get[_0x3165b6(0x175)](){return _0x294bad['LiveShareStatus'];}}_0x3d9329['FEnum'][_0x3165b6(0x181)](_0x529698);}));function _0x4e71(){const _0xe4daa1=['1277615aHAOTx','LiveShareStatusEnum','LiveShareStatus','FEnum','@univerjs/sheets/facade','UniverCoreFacade','stopFollowing','getUnitId','UniverEngineRender','_injector','FUniver','syncExecuteCommand','getLiveShareCoordinatorSync','extend','599320pBMROy','amd','LiveShareController','getSheetId','function','FRange','@univerjs/engine-render','getRenderById','PRESENTING','startPresenting','tryStartPresenting','stopPresenting','object','getId','No\x20active\x20workbook\x20found.','_commandService','getActiveWorkbook','getStatus','UniverSheets','841412mgDEgO','IDLE','30120vowjBl','startFollowing','get','UniverSheetsFacade','UniverProLiveShare','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','6VIEUlR','2584239wmoXFf','IRenderManagerService','882VrHQJt','2285427SmcYpR','SetWorksheetActiveOperation','UniverSheetsUi','2108656dNcbDn','executeCommand'];_0x4e71=function(){return _0xe4daa1;};return _0x4e71();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xb962bd,_0x2bd50){const _0x267d88=_0x4583,_0x374add=_0xb962bd();while(!![]){try{const _0x33a28c=parseInt(_0x267d88(0x23f))/0x1+parseInt(_0x267d88(0x296))/0x2*(parseInt(_0x267d88(0x268))/0x3)+-parseInt(_0x267d88(0x2c6))/0x4*(-parseInt(_0x267d88(0x24e))/0x5)+-parseInt(_0x267d88(0x2d2))/0x6+parseInt(_0x267d88(0x2c5))/0x7+-parseInt(_0x267d88(0x1f5))/0x8*(parseInt(_0x267d88(0x1fa))/0x9)+-parseInt(_0x267d88(0x2ad))/0xa;if(_0x33a28c===_0x2bd50)break;else _0x374add['push'](_0x374add['shift']());}catch(_0x29fbfd){_0x374add['push'](_0x374add['shift']());}}}(_0x5426,0xa79a9),function(_0x3dd0fb,_0x5391d3){const _0x419c02=_0x4583;typeof exports=='object'&&typeof module<'u'?_0x5391d3(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x419c02(0x22c)]?define([_0x419c02(0x237),_0x419c02(0x257),_0x419c02(0x2c7),_0x419c02(0x2c3),_0x419c02(0x29d),_0x419c02(0x232),_0x419c02(0x23b),_0x419c02(0x210),_0x419c02(0x1ff),'rxjs',_0x419c02(0x2cb),'@univerjs/sheets-ui'],_0x5391d3):(_0x3dd0fb=typeof globalThis<'u'?globalThis:_0x3dd0fb||self,_0x5391d3(_0x3dd0fb[_0x419c02(0x267)]={},_0x3dd0fb['UniverCore'],_0x3dd0fb[_0x419c02(0x2ba)],_0x3dd0fb[_0x419c02(0x27d)],_0x3dd0fb[_0x419c02(0x266)],_0x3dd0fb[_0x419c02(0x27d)],_0x3dd0fb[_0x419c02(0x20a)],_0x3dd0fb['UniverProCollaborationClient'],_0x3dd0fb[_0x419c02(0x22d)],_0x3dd0fb['rxjs'],_0x3dd0fb[_0x419c02(0x1fe)][_0x419c02(0x27f)],_0x3dd0fb[_0x419c02(0x23d)]));}(this,function(_0xb8f135,_0x160934,_0x1db1d5,_0x16f4e3,_0x53eb07,_0x51b41c,_0x23295e,_0x17209d,_0x6fcf9a,_0x11d600,_0x5d062d,_0x2529b4){'use strict';const _0x167efe=_0x4583;var _0x38eb10=Object[_0x167efe(0x2a8)],_0xbee59=(_0x25ffc9,_0x49153a,_0x216c88)=>_0x49153a in _0x25ffc9?_0x38eb10(_0x25ffc9,_0x49153a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x216c88}):_0x25ffc9[_0x49153a]=_0x216c88,_0x36bceb=(_0x4499f5,_0x54616a,_0x3c51a5)=>_0xbee59(_0x4499f5,typeof _0x54616a!=_0x167efe(0x263)?_0x54616a+'':_0x54616a,_0x3c51a5);function _0x5bc8ca({ref:_0x54fe36,..._0xde7c0c}){const _0x30443d=_0x167efe,{icon:_0x2cb312,id:_0x52451e,className:_0x3f5079,extend:_0x542210,..._0x123b8d}=_0xde7c0c,_0x58cde5=(_0x30443d(0x279)+_0x52451e+'\x20'+(_0x3f5079||''))[_0x30443d(0x208)](),_0x3dbf07=_0x51b41c[_0x30443d(0x1f7)]('_'+_0xc6ff26());return _0x9058a(_0x2cb312,''+_0x52451e,{'defIds':_0x2cb312[_0x30443d(0x22a)],'idSuffix':_0x3dbf07[_0x30443d(0x218)]},{'ref':_0x54fe36,'className':_0x58cde5,..._0x123b8d},_0x542210);}function _0x9058a(_0x3f51b0,_0x2b1dd7,_0x2aab57,_0x12d2b3,_0x9fbb3e){const _0x5c98c6=_0x167efe;return _0x51b41c[_0x5c98c6(0x2b0)](_0x3f51b0[_0x5c98c6(0x26a)],{'key':_0x2b1dd7,..._0x3e99ff(_0x3f51b0,_0x2aab57,_0x9fbb3e),..._0x12d2b3},(_0x575433(_0x3f51b0,_0x2aab57)[_0x5c98c6(0x247)]||[])[_0x5c98c6(0x2b1)]((_0x3dc36e,_0x5dc31f)=>_0x9058a(_0x3dc36e,_0x2b1dd7+'-'+_0x3f51b0[_0x5c98c6(0x26a)]+'-'+_0x5dc31f,_0x2aab57,void 0x0,_0x9fbb3e)));}function _0x3e99ff(_0x174b89,_0x2a1909,_0x15029f){const _0x3410d3=_0x167efe,_0x1a50c6={..._0x174b89['attrs']};_0x15029f!=null&&_0x15029f[_0x3410d3(0x292)]&&_0x1a50c6[_0x3410d3(0x2a4)]===_0x3410d3(0x292)&&(_0x1a50c6[_0x3410d3(0x2a4)]=_0x15029f[_0x3410d3(0x292)]),_0x174b89[_0x3410d3(0x26a)]===_0x3410d3(0x25b)&&_0x1a50c6['id']&&(_0x1a50c6['id']=_0x1a50c6['id']+_0x2a1909[_0x3410d3(0x229)]),Object['entries'](_0x1a50c6)[_0x3410d3(0x228)](([_0x479c72,_0xc74336])=>{const _0x30a152=_0x3410d3;_0x479c72===_0x30a152(0x25b)&&typeof _0xc74336=='string'&&(_0x1a50c6[_0x479c72]=_0xc74336[_0x30a152(0x24a)](/url\(#(.*)\)/,_0x30a152(0x278)+_0x2a1909['idSuffix']+')'));});const {defIds:_0x5bf202}=_0x2a1909;return!_0x5bf202||_0x5bf202['length']===0x0||(_0x174b89[_0x3410d3(0x26a)]===_0x3410d3(0x220)&&_0x1a50c6[_0x3410d3(0x222)]&&(_0x1a50c6[_0x3410d3(0x222)]=_0x1a50c6['xlink:href']+_0x2a1909[_0x3410d3(0x229)]),Object['entries'](_0x1a50c6)['forEach'](([_0x41afde,_0x43f0bf])=>{const _0x587e26=_0x3410d3;typeof _0x43f0bf==_0x587e26(0x2a9)&&(_0x1a50c6[_0x41afde]=_0x43f0bf[_0x587e26(0x24a)](/url\(#(.*)\)/,_0x587e26(0x278)+_0x2a1909[_0x587e26(0x229)]+')'));})),_0x1a50c6;}function _0x575433(_0x3efdd4,_0x271ab6){const _0x2f9f52=_0x167efe;var _0x37ab15;const {defIds:_0x40b30c}=_0x271ab6;return!_0x40b30c||_0x40b30c['length']===0x0?_0x3efdd4:_0x3efdd4[_0x2f9f52(0x26a)]===_0x2f9f52(0x2c4)&&((_0x37ab15=_0x3efdd4[_0x2f9f52(0x247)])!=null&&_0x37ab15[_0x2f9f52(0x260)])?{..._0x3efdd4,'children':_0x3efdd4['children'][_0x2f9f52(0x2b1)](_0x233b6a=>typeof _0x233b6a[_0x2f9f52(0x216)]['id']==_0x2f9f52(0x2a9)&&_0x40b30c&&_0x40b30c[_0x2f9f52(0x27a)](_0x233b6a['attrs']['id'])?{..._0x233b6a,'attrs':{..._0x233b6a['attrs'],'id':_0x233b6a[_0x2f9f52(0x216)]['id']+_0x271ab6[_0x2f9f52(0x229)]}}:_0x233b6a)}:_0x3efdd4;}function _0xc6ff26(){const _0x1405ca=_0x167efe;return Math[_0x1405ca(0x285)]()['toString'](0x24)[_0x1405ca(0x25c)](0x2,0x8);}_0x5bc8ca[_0x167efe(0x250)]='UniverIcon';const _0x4627e1={'tag':_0x167efe(0x274),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x167efe(0x2cc),'height':_0x167efe(0x2cc)},'children':[{'tag':_0x167efe(0x259),'attrs':{'fill':'currentColor','d':_0x167efe(0x2c1)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x167efe(0x217),'fillRule':_0x167efe(0x20d),'clipRule':_0x167efe(0x20d)}}]},_0x5385f1=_0x51b41c[_0x167efe(0x25f)](function(_0x5b5364,_0x1b3b5e){const _0x31c419=_0x167efe;return _0x51b41c['createElement'](_0x5bc8ca,Object[_0x31c419(0x25e)]({},_0x5b5364,{'id':'live-share-icon','ref':_0x1b3b5e,'icon':_0x4627e1}));});_0x5385f1[_0x167efe(0x250)]='LiveShareIcon';class _0x5a3069 extends _0x160934[_0x167efe(0x2d1)]{constructor(){const _0x58fcb7=_0x167efe;super(...arguments),_0x36bceb(this,_0x58fcb7(0x224),new Set()),_0x36bceb(this,_0x58fcb7(0x29e),new Set());}[_0x167efe(0x24b)](_0x496656){const _0x865f5=_0x167efe;return this[_0x865f5(0x224)][_0x865f5(0x280)](_0x496656),_0x160934[_0x865f5(0x2b5)](()=>this[_0x865f5(0x224)]['delete'](_0x496656));}[_0x167efe(0x214)](_0x4f9f36){const _0x46662e=_0x167efe;return this[_0x46662e(0x29e)][_0x46662e(0x280)](_0x4f9f36),_0x160934[_0x46662e(0x2b5)](()=>this[_0x46662e(0x29e)][_0x46662e(0x240)](_0x4f9f36));}[_0x167efe(0x24f)](_0x18c5b5){const _0x2b14a6=_0x167efe;return this[_0x2b14a6(0x224)]['has'](_0x18c5b5);}[_0x167efe(0x239)](_0x4d2bc8){const _0x4ff14d=_0x167efe;return Array[_0x4ff14d(0x28e)](this[_0x4ff14d(0x29e)])['map'](_0x493796=>_0x493796(_0x4d2bc8));}}var _0x33d1c2=Object[_0x167efe(0x1f3)],_0x32b130=(_0x399381,_0x16d8b6,_0x1f2b91,_0x2639f8)=>{const _0x418e21=_0x167efe;for(var _0x11c5ff=_0x2639f8>0x1?void 0x0:_0x2639f8?_0x33d1c2(_0x16d8b6,_0x1f2b91):_0x16d8b6,_0x1ce22a=_0x399381[_0x418e21(0x260)]-0x1,_0xe595c6;_0x1ce22a>=0x0;_0x1ce22a--)(_0xe595c6=_0x399381[_0x1ce22a])&&(_0x11c5ff=_0xe595c6(_0x11c5ff)||_0x11c5ff);return _0x11c5ff;},_0x264cc7=(_0x289bd3,_0x8d2bfa)=>(_0x3e23bd,_0x5dc105)=>_0x8d2bfa(_0x3e23bd,_0x5dc105,_0x289bd3);_0xb8f135['LiveShareController']=class extends _0x160934[_0x167efe(0x221)]{constructor(_0x31fd3c,_0x4eac40,_0xe5363f){const _0x2e2faa=_0x167efe;super(),_0x36bceb(this,_0x2e2faa(0x21a),new Map()),(this[_0x2e2faa(0x204)]=_0x31fd3c,this[_0x2e2faa(0x245)]=_0x4eac40,this['_collabSessionService']=_0xe5363f,this[_0x2e2faa(0x23a)]());}async['getLiveShareCoordinator'](_0x397127){const _0x37598c=_0x167efe;return this['_entities'][_0x37598c(0x244)](_0x397127)||await this[_0x37598c(0x21f)](_0x397127),this[_0x37598c(0x21a)][_0x37598c(0x284)](_0x397127);}['getLiveShareCoordinatorSync'](_0x165ba2){const _0x2febb0=_0x167efe;var _0x2a6058;return(_0x2a6058=this['_entities'][_0x2febb0(0x284)](_0x165ba2))!=null?_0x2a6058:null;}[_0x167efe(0x23a)](){const _0x2ef2bf=_0x167efe;this['_univerInstanceService'][_0x2ef2bf(0x251)](_0x160934[_0x2ef2bf(0x2ca)][_0x2ef2bf(0x2d0)])['pipe'](_0x5d062d[_0x2ef2bf(0x28a)](this[_0x2ef2bf(0x242)]))[_0x2ef2bf(0x283)](async _0x5097a2=>{const _0x19dfae=_0x2ef2bf,_0x2afc9a=_0x5097a2[_0x19dfae(0x1f0)]();this[_0x19dfae(0x21a)][_0x19dfae(0x244)](_0x2afc9a)||this[_0x19dfae(0x21f)](_0x2afc9a);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x160934[_0x2ef2bf(0x2ca)][_0x2ef2bf(0x2d0)])[_0x2ef2bf(0x23c)](_0x5d062d[_0x2ef2bf(0x28a)](this[_0x2ef2bf(0x242)]))['subscribe'](_0x5bf540=>{const _0x3738fa=_0x2ef2bf,_0x5d37ae=_0x5bf540[_0x3738fa(0x1f0)](),_0x49db55=this['_entities']['get'](_0x5d37ae);_0x49db55==null||_0x49db55[_0x3738fa(0x2d5)]();});}async['_startLiveShareCoordinator'](_0x131648){const _0x551f99=_0x167efe,_0x34f004=await this[_0x551f99(0x281)][_0x551f99(0x230)](_0x131648),_0x4d548d=this[_0x551f99(0x245)]['createInstance'](_0xb8f135['LiveShareCoordinator'],_0x131648,_0x34f004);return _0x4d548d['init'](),this[_0x551f99(0x21a)]['set'](_0x131648,_0x4d548d),_0x4d548d;}},_0xb8f135[_0x167efe(0x276)]=_0x32b130([_0x264cc7(0x0,_0x160934['IUniverInstanceService']),_0x264cc7(0x1,_0x160934['Inject'](_0x160934[_0x167efe(0x22b)])),_0x264cc7(0x2,_0x160934[_0x167efe(0x2bc)](_0x17209d[_0x167efe(0x288)]))],_0xb8f135['LiveShareController']);var _0x8a846a=(_0x262732=>(_0x262732['OFFLINE']='offline',_0x262732['IDLE']=_0x167efe(0x231),_0x262732[_0x167efe(0x252)]=_0x167efe(0x1fd),_0x262732['NOT_FOLLOWING']='not-following',_0x262732['PRESENTING']=_0x167efe(0x2be),_0x262732))(_0x8a846a||{});const _0x4155ca=_0x167efe(0x209),_0x29fce0=0xc8;_0xb8f135[_0x167efe(0x2cf)]=class extends _0x160934[_0x167efe(0x221)]{constructor(_0x2e5a39,_0x333ced,_0xffef99,_0x55bfdb,_0x595233){const _0x1d1da3=_0x167efe;super(),_0x36bceb(this,_0x1d1da3(0x2c2),new _0x11d600[(_0x1d1da3(0x26f))](_0x1d1da3(0x231))),_0x36bceb(this,'status$',this['_status$'][_0x1d1da3(0x286)]()),_0x36bceb(this,'_init',!0x1),_0x36bceb(this,_0x1d1da3(0x2a3),null),_0x36bceb(this,_0x1d1da3(0x21c),null),(this[_0x1d1da3(0x226)]=_0x2e5a39,this['_collabSession']=_0x333ced,this['_configService']=_0xffef99,this[_0x1d1da3(0x1fb)]=_0x55bfdb,this[_0x1d1da3(0x2a5)]=_0x595233);}get[_0x167efe(0x241)](){const _0x26e129=_0x167efe;return this[_0x26e129(0x2c2)]['getValue']();}[_0x167efe(0x2d5)](){const _0x44c404=_0x167efe;var _0x1a5cb7;(_0x1a5cb7=this[_0x44c404(0x2a3)])==null||_0x1a5cb7['dispose'](),this[_0x44c404(0x2c2)][_0x44c404(0x2b4)](_0x44c404(0x231)),this[_0x44c404(0x2c2)][_0x44c404(0x2bd)]();}[_0x167efe(0x271)](){return this['_status'];}[_0x167efe(0x236)](){const _0x275967=_0x167efe;this[_0x275967(0x23a)]||(this[_0x275967(0x23a)]=!0x0,this['_collabSession'][_0x275967(0x287)]['pipe'](_0x5d062d['takeUntil'](this[_0x275967(0x242)]))['subscribe'](_0xf5629a=>{const _0x10cf23=_0x275967;switch(_0xf5629a){case _0x17209d[_0x10cf23(0x299)][_0x10cf23(0x255)]:this['_handleOffline']();break;case _0x17209d[_0x10cf23(0x299)]['ONLINE']:this[_0x10cf23(0x26e)]();break;}}),this[_0x275967(0x227)][_0x275967(0x20f)]['pipe'](_0x5d062d[_0x275967(0x28a)](this[_0x275967(0x242)]))[_0x275967(0x283)](_0x3df570=>{const _0x3d52b3=_0x275967,{eventID:_0xed4322}=_0x3df570;switch(_0xed4322){case _0x23295e[_0x3d52b3(0x243)][_0x3d52b3(0x246)]:this['_handleNewHost'](_0x3df570);break;case _0x23295e[_0x3d52b3(0x243)][_0x3d52b3(0x2b3)]:this[_0x3d52b3(0x23e)](_0x3df570);break;case _0x23295e[_0x3d52b3(0x243)][_0x3d52b3(0x277)]:this[_0x3d52b3(0x253)]();break;case _0x23295e['CollaborationEvent'][_0x3d52b3(0x2a0)]:this[_0x3d52b3(0x27c)](_0x3df570);break;}}));}[_0x167efe(0x2a2)](){const _0x344dfd=_0x167efe;this[_0x344dfd(0x227)][_0x344dfd(0x24c)]({'eventID':_0x23295e['CollaborationEvent'][_0x344dfd(0x28b)],'data':{'unitID':this['_unitID'],'userID':this[_0x344dfd(0x227)][_0x344dfd(0x26c)]()}},this[_0x344dfd(0x226)]);}[_0x167efe(0x20e)](){const _0x3b871c=_0x167efe;this['_status']===_0x3b871c(0x2be)&&(this[_0x3b871c(0x2c2)][_0x3b871c(0x2b4)](_0x3b871c(0x231)),this['_collabSession'][_0x3b871c(0x24c)]({'eventID':_0x23295e[_0x3b871c(0x243)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3b871c(0x226)]}},this[_0x3b871c(0x226)]));}[_0x167efe(0x2b7)](){const _0x5b8dc4=_0x167efe;this[_0x5b8dc4(0x241)]===_0x5b8dc4(0x29a)&&(this['_status$']['next'](_0x5b8dc4(0x1fd)),this[_0x5b8dc4(0x26b)]());}['stopFollowing'](){const _0x48879d=_0x167efe;this['_status']===_0x48879d(0x1fd)&&this[_0x48879d(0x26d)]();}[_0x167efe(0x261)](_0x2e822e){const _0x57a5a4=_0x167efe,{presenter:_0x5d4c92}=_0x2e822e[_0x57a5a4(0x264)],_0x13bdc3=this[_0x57a5a4(0x227)][_0x57a5a4(0x26c)]();this[_0x57a5a4(0x21c)]=_0x5d4c92,_0x5d4c92===_0x13bdc3?(this[_0x57a5a4(0x26d)](),this[_0x57a5a4(0x21b)]()):this[_0x57a5a4(0x241)]!=='not-following'&&(this[_0x57a5a4(0x28f)](),this[_0x57a5a4(0x26b)]());}[_0x167efe(0x21d)](){const _0x416fcd=_0x167efe,_0x186806={'eventID':_0x23295e[_0x416fcd(0x243)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x416fcd(0x227)][_0x416fcd(0x24c)](_0x186806,this['_unitID']);}[_0x167efe(0x253)](){const _0x341cf2=_0x167efe;this[_0x341cf2(0x21c)]=null,this['_status']!=='presenting'&&this[_0x341cf2(0x2b2)]();}['_handleNewChangeSets'](_0x2e4c21){const _0x374135=_0x167efe;if(this[_0x374135(0x241)]===_0x374135(0x1fd)&&this['_presenter']===_0x2e4c21[_0x374135(0x264)]['memberID']){const _0x4b9fe2=_0x23295e[_0x374135(0x206)](_0x2e4c21[_0x374135(0x264)])[_0x374135(0x2d4)][_0x374135(0x297)]()[_0x374135(0x235)](_0x3d639e=>_0x3d639e['id']===_0x6fcf9a[_0x374135(0x273)]['id']);if(_0x4b9fe2){const _0x5e13ec=_0x4b9fe2[_0x374135(0x223)][_0x374135(0x233)],_0x419173=_0x4b9fe2['params']['sheet']['id'];setTimeout(()=>{const _0x52eb01=_0x374135;this['_commandService'][_0x52eb01(0x213)](_0x6fcf9a[_0x52eb01(0x201)]['id'],{'unitId':_0x5e13ec,'subUnitId':_0x419173},{'fromCollab':!0x0});});}}}[_0x167efe(0x21b)](){const _0x53bd17=_0x167efe;this[_0x53bd17(0x2c2)]['next'](_0x53bd17(0x2be));const _0x44ba89=new Map(),_0x1f028e=this[_0x53bd17(0x2a3)]=new _0x160934['DisposableCollection']();_0x1f028e[_0x53bd17(0x280)](_0x160934[_0x53bd17(0x2b5)](()=>{const _0x3860cc=_0x53bd17;_0x44ba89[_0x3860cc(0x228)](_0x2383bb=>_0x2383bb['complete']()),_0x44ba89[_0x3860cc(0x293)]();})),_0x1f028e[_0x53bd17(0x280)](this[_0x53bd17(0x2a5)][_0x53bd17(0x27b)](_0x389de2=>{const _0x3e2a99=_0x53bd17;var _0x59374b;if(_0x389de2[_0x3e2a99(0x22e)]!==_0x160934[_0x3e2a99(0x265)][_0x3e2a99(0x2b6)]||!this[_0x3e2a99(0x1fb)][_0x3e2a99(0x24f)](_0x389de2['id']))return;const {id:_0x4c02e0}=_0x389de2;let _0x4b8d61;_0x44ba89['has'](_0x4c02e0)?_0x4b8d61=_0x44ba89['get'](_0x4c02e0):(_0x4b8d61=new _0x11d600['Subject'](),_0x44ba89[_0x3e2a99(0x2c8)](_0x4c02e0,_0x4b8d61),_0x4b8d61[_0x3e2a99(0x23c)](_0x5d062d['throttleTime']((_0x59374b=this['_configService'][_0x3e2a99(0x2a7)](_0x4155ca))!=null?_0x59374b:_0x29fce0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3e2a99(0x283)](_0x118191=>{const _0x5ee2dd=_0x3e2a99;this['_collabSession']['send']({'eventID':_0x23295e[_0x5ee2dd(0x243)][_0x5ee2dd(0x2b3)],'data':{'unitID':this[_0x5ee2dd(0x226)],'operations':{[_0x118191['id']]:{'id':_0x118191['id'],'params':JSON[_0x5ee2dd(0x290)](_0x118191['params'])}}}},this['_unitID']);})),_0x4b8d61['next'](_0x389de2);})),this[_0x53bd17(0x1fb)][_0x53bd17(0x239)](this[_0x53bd17(0x226)])['forEach'](_0x511b5c=>this[_0x53bd17(0x227)][_0x53bd17(0x24c)]({'eventID':_0x23295e[_0x53bd17(0x243)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x53bd17(0x226)],'operations':{[_0x511b5c['id']]:{'id':_0x511b5c['id'],'params':JSON['stringify'](_0x511b5c[_0x53bd17(0x223)])}}}},this[_0x53bd17(0x226)]));}[_0x167efe(0x28f)](){const _0x2c5090=_0x167efe;var _0x22acc7;this[_0x2c5090(0x2c2)][_0x2c5090(0x2b4)]('idle'),(_0x22acc7=this[_0x2c5090(0x2a3)])==null||_0x22acc7[_0x2c5090(0x2d5)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x49bbdb=_0x167efe;var _0x2358c9;(_0x2358c9=this[_0x49bbdb(0x2a3)])==null||_0x2358c9[_0x49bbdb(0x2d5)](),this[_0x49bbdb(0x2c2)][_0x49bbdb(0x2b4)](_0x49bbdb(0x1fd));}['_beIdle'](){const _0x5e876d=_0x167efe;var _0x1378c2;this[_0x5e876d(0x2c2)][_0x5e876d(0x2b4)](_0x5e876d(0x231)),(_0x1378c2=this[_0x5e876d(0x2a3)])==null||_0x1378c2[_0x5e876d(0x2d5)](),this[_0x5e876d(0x2a3)]=null;}['_stopFollowing'](){const _0x5ba998=_0x167efe;var _0xac61f9;this[_0x5ba998(0x2c2)]['next']('not-following'),(_0xac61f9=this[_0x5ba998(0x2a3)])==null||_0xac61f9[_0x5ba998(0x2d5)]();}['_handleOperation'](_0x24a510){const _0x297d41=_0x167efe;if(['presenting','not-following','offline'][_0x297d41(0x27a)](this[_0x297d41(0x241)])||!_0x24a510['data'][_0x297d41(0x200)]||_0x24a510['data'][_0x297d41(0x200)]===this['_collabSession'][_0x297d41(0x26c)]())return;this[_0x297d41(0x241)]===_0x297d41(0x231)&&this[_0x297d41(0x26b)]();const _0x55aadb=_0x24a510['data'][_0x297d41(0x2ce)];Object[_0x297d41(0x248)](_0x55aadb)[_0x297d41(0x228)](_0x3e255d=>{const _0x5cb9b1=_0x297d41;this[_0x5cb9b1(0x2a5)][_0x5cb9b1(0x213)](_0x3e255d['id'],_0x3e255d['params']?JSON[_0x5cb9b1(0x29f)](_0x3e255d[_0x5cb9b1(0x223)]):null,{'fromCollab':!0x0});});}[_0x167efe(0x1f6)](){const _0x3f7e21=_0x167efe;var _0x1e27d4;this[_0x3f7e21(0x2c2)][_0x3f7e21(0x2b4)](_0x3f7e21(0x2d6)),(_0x1e27d4=this['_commandDisposable'])==null||_0x1e27d4[_0x3f7e21(0x2d5)]();}[_0x167efe(0x26e)](){const _0x46fe8e=_0x167efe;this[_0x46fe8e(0x2c2)][_0x46fe8e(0x2b4)](_0x46fe8e(0x231)),this['_fetchOperations']();}},_0xb8f135[_0x167efe(0x2cf)]=_0x32b130([_0x264cc7(0x2,_0x160934['IConfigService']),_0x264cc7(0x3,_0x160934['Inject'](_0x5a3069)),_0x264cc7(0x4,_0x160934['ICommandService'])],_0xb8f135[_0x167efe(0x2cf)]);function _0x31beac(){const _0x7c69f=_0x167efe,_0x43952a=_0x1db1d5['useDependency'](_0xb8f135[_0x7c69f(0x276)]),_0x1b4231=_0x1db1d5[_0x7c69f(0x2b9)](_0x160934[_0x7c69f(0x2ae)]),_0x385cf3=_0x1db1d5[_0x7c69f(0x2d3)](()=>_0x1b4231[_0x7c69f(0x2ab)](_0x160934[_0x7c69f(0x2ca)][_0x7c69f(0x2d0)]),void 0x0,!0x1,[]),[_0x22ee11,_0x1317d6]=_0x51b41c[_0x7c69f(0x269)](null),[_0x459acd,_0x54322b]=_0x51b41c['useState'](_0x8a846a[_0x7c69f(0x21e)]),_0x2ac77c=_0x51b41c[_0x7c69f(0x1f7)](null);return _0x51b41c[_0x7c69f(0x29c)](()=>(_0x385cf3&&_0x43952a[_0x7c69f(0x203)](_0x385cf3[_0x7c69f(0x1f0)]())['then'](_0x463989=>{const _0x244db4=_0x7c69f;_0x1317d6(_0x463989),_0x2ac77c['current']=_0x463989[_0x244db4(0x272)][_0x244db4(0x283)](_0x3943aa=>{_0x54322b(_0x3943aa);});}),()=>{const _0xda1f85=_0x7c69f;var _0x3d344a;(_0x3d344a=_0x2ac77c[_0xda1f85(0x218)])==null||_0x3d344a[_0xda1f85(0x2af)](),_0x2ac77c[_0xda1f85(0x218)]=null;}),[_0x385cf3,_0x43952a]),_0x22ee11?_0x16f4e3[_0x7c69f(0x291)](_0x53eb07[_0x7c69f(0x28c)],{'align':_0x7c69f(0x282),'disabled':_0x459acd===_0x8a846a['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x16f4e3[_0x7c69f(0x291)](_0x5af33c,{'status':_0x459acd,'coordinator':_0x22ee11}),'children':_0x16f4e3[_0x7c69f(0x291)](_0x7c69f(0x225),{'className':_0x53eb07[_0x7c69f(0x20b)](_0x7c69f(0x256),{'univer-cursor-not-allowed':_0x459acd===_0x8a846a['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x459acd!==_0x8a846a[_0x7c69f(0x255)]}),'type':'button','children':_0x16f4e3[_0x7c69f(0x291)](_0x5385f1,{'className':_0x7c69f(0x22f)})})}):null;}function _0x5af33c(_0x3923f1){const _0x327f61=_0x167efe,{status:_0x3c60c3,coordinator:_0x18321f}=_0x3923f1;switch(_0x3c60c3){case _0x8a846a[_0x327f61(0x21e)]:return _0x16f4e3[_0x327f61(0x291)](_0x291051,{'coordinator':_0x18321f});case _0x8a846a['FOLLOWING']:return _0x16f4e3[_0x327f61(0x291)](_0x42dd99,{'coordinator':_0x18321f});case _0x8a846a[_0x327f61(0x27e)]:return _0x16f4e3[_0x327f61(0x291)](_0x2f9f,{'coordinator':_0x18321f});case _0x8a846a['OFFLINE']:return _0x16f4e3[_0x327f61(0x291)](_0x23a3cf,{});case _0x8a846a[_0x327f61(0x270)]:return _0x16f4e3[_0x327f61(0x291)](_0xea9e2e,{'coordinator':_0x18321f});default:return null;}}function _0x291051(_0x5097fe){const _0x51df3=_0x167efe,{coordinator:_0xaeb3f7}=_0x5097fe;return _0x16f4e3[_0x51df3(0x294)](_0x16f4e3['Fragment'],{'children':[_0x16f4e3[_0x51df3(0x291)](_0x51df3(0x2c0),{'className':_0x51df3(0x254),'children':'Present\x20this\x20document'}),_0x16f4e3[_0x51df3(0x291)](_0x53eb07['Button'],{'onClick':()=>_0xaeb3f7[_0x51df3(0x2a2)](),'children':_0x51df3(0x1f4)})]});}function _0x42dd99(_0x39aac2){const _0x3c6dc9=_0x167efe,{coordinator:_0x5dc0a8}=_0x39aac2;return _0x16f4e3[_0x3c6dc9(0x294)](_0x16f4e3['Fragment'],{'children':[_0x16f4e3[_0x3c6dc9(0x291)](_0x3c6dc9(0x2c0),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3c6dc9(0x25a)}),_0x16f4e3['jsx'](_0x53eb07[_0x3c6dc9(0x1f1)],{'onClick':()=>_0x5dc0a8[_0x3c6dc9(0x234)](),'children':_0x3c6dc9(0x205)})]});}function _0x2f9f(_0x161e4d){const _0x5b0eff=_0x167efe,{coordinator:_0x5f4886}=_0x161e4d;return _0x16f4e3['jsxs'](_0x16f4e3[_0x5b0eff(0x249)],{'children':[_0x16f4e3[_0x5b0eff(0x291)](_0x5b0eff(0x2c0),{'className':_0x5b0eff(0x254),'children':_0x5b0eff(0x295)}),_0x16f4e3[_0x5b0eff(0x291)](_0x53eb07[_0x5b0eff(0x1f1)],{'variant':_0x5b0eff(0x2bf),'onClick':()=>_0x5f4886['startFollowing'](),'children':_0x5b0eff(0x2ac)})]});}function _0xea9e2e(_0x599914){const _0x5debc5=_0x167efe,{coordinator:_0x5d5518}=_0x599914;return _0x16f4e3[_0x5debc5(0x294)](_0x16f4e3['Fragment'],{'children':[_0x16f4e3[_0x5debc5(0x291)](_0x5debc5(0x2c0),{'className':_0x5debc5(0x254),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x16f4e3[_0x5debc5(0x291)](_0x53eb07['Button'],{'variant':_0x5debc5(0x1f2),'onClick':()=>_0x5d5518['stopPresenting'](),'children':_0x5debc5(0x211)})]});}function _0x23a3cf(){const _0x5dd457=_0x167efe;return _0x16f4e3['jsx'](_0x16f4e3[_0x5dd457(0x249)],{'children':_0x5dd457(0x2bb)});}var _0x420f23=Object[_0x167efe(0x1f3)],_0x52eee8=(_0x70cd3d,_0x253b2e,_0x49af52,_0x2f9b2c)=>{const _0x2df6fb=_0x167efe;for(var _0x480319=_0x2f9b2c>0x1?void 0x0:_0x2f9b2c?_0x420f23(_0x253b2e,_0x49af52):_0x253b2e,_0x24fbc6=_0x70cd3d[_0x2df6fb(0x260)]-0x1,_0x4e001f;_0x24fbc6>=0x0;_0x24fbc6--)(_0x4e001f=_0x70cd3d[_0x24fbc6])&&(_0x480319=_0x4e001f(_0x480319)||_0x480319);return _0x480319;},_0x30b8be=(_0x3eccb5,_0x5e66d6)=>(_0x3f6fe1,_0x37ff8d)=>_0x5e66d6(_0x3f6fe1,_0x37ff8d,_0x3eccb5);_0xb8f135[_0x167efe(0x20c)]=class extends _0x160934[_0x167efe(0x2d1)]{constructor(_0x695ed3,_0xf8f4f6){const _0x3dc177=_0x167efe;super(),this['_injector']=_0x695ed3,this[_0x3dc177(0x238)]=_0xf8f4f6,this[_0x3dc177(0x2a6)]();}[_0x167efe(0x2a6)](){const _0x47e70b=_0x167efe;this['disposeWithMe'](this['_uiPartsService'][_0x47e70b(0x29b)](_0x1db1d5['BuiltInUIPart'][_0x47e70b(0x2aa)],()=>_0x1db1d5['connectInjector'](_0x31beac,this[_0x47e70b(0x245)])));}},_0xb8f135['DesktopLiveShareController']=_0x52eee8([_0x30b8be(0x0,_0x160934[_0x167efe(0x2bc)](_0x160934[_0x167efe(0x22b)])),_0x30b8be(0x1,_0x1db1d5[_0x167efe(0x219)])],_0xb8f135['DesktopLiveShareController']);const _0x836660=_0x167efe(0x298),_0x3c6417={};var _0x23b8c8=Object[_0x167efe(0x1f3)],_0x325f6f=(_0x21ec12,_0x3cd9ad,_0x370485,_0x653b27)=>{for(var _0x52b32c=_0x653b27>0x1?void 0x0:_0x653b27?_0x23b8c8(_0x3cd9ad,_0x370485):_0x3cd9ad,_0xb02856=_0x21ec12['length']-0x1,_0x229f06;_0xb02856>=0x0;_0xb02856--)(_0x229f06=_0x21ec12[_0xb02856])&&(_0x52b32c=_0x229f06(_0x52b32c)||_0x52b32c);return _0x52b32c;},_0x569c6a=(_0x5600e8,_0x13b2e8)=>(_0x4d43ed,_0x1779f8)=>_0x13b2e8(_0x4d43ed,_0x1779f8,_0x5600e8);let _0x29cb6a=class extends _0x160934[_0x167efe(0x2d1)]{constructor(_0x1fab8c){const _0x2b98ba=_0x167efe;super(),this[_0x2b98ba(0x1fb)]=_0x1fab8c,this['_init']();}[_0x167efe(0x23a)](){const _0x49ebb6=_0x167efe;[_0x2529b4['SetZoomRatioOperation']['id'],_0x2529b4[_0x49ebb6(0x2a1)]['id'],_0x6fcf9a['SetWorksheetActiveOperation']['id']][_0x49ebb6(0x228)](_0x5d1268=>{const _0x3676ff=_0x49ebb6;this[_0x3676ff(0x1fc)](this[_0x3676ff(0x1fb)][_0x3676ff(0x24b)](_0x5d1268));});}};_0x29cb6a=_0x325f6f([_0x569c6a(0x0,_0x160934[_0x167efe(0x2bc)](_0x5a3069))],_0x29cb6a);var _0x2116f4=Object[_0x167efe(0x2a8)],_0x24f582=Object['getOwnPropertyDescriptor'],_0x35a8f9=(_0x553e2b,_0x52845a,_0x3917b3)=>_0x52845a in _0x553e2b?_0x2116f4(_0x553e2b,_0x52845a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3917b3}):_0x553e2b[_0x52845a]=_0x3917b3,_0x23c2bd=(_0x151341,_0x3b9d2a,_0x541232,_0x2cd5a2)=>{const _0x27aae2=_0x167efe;for(var _0x1d3976=_0x2cd5a2>0x1?void 0x0:_0x2cd5a2?_0x24f582(_0x3b9d2a,_0x541232):_0x3b9d2a,_0x118c58=_0x151341[_0x27aae2(0x260)]-0x1,_0x3ec432;_0x118c58>=0x0;_0x118c58--)(_0x3ec432=_0x151341[_0x118c58])&&(_0x1d3976=_0x3ec432(_0x1d3976)||_0x1d3976);return _0x1d3976;},_0xf61b43=(_0x1f9dd6,_0xfef178)=>(_0x351beb,_0x3803de)=>_0xfef178(_0x351beb,_0x3803de,_0x1f9dd6),_0x5a9825=(_0x27a73e,_0x3fa977,_0x848c9e)=>_0x35a8f9(_0x27a73e,typeof _0x3fa977!='symbol'?_0x3fa977+'':_0x3fa977,_0x848c9e);const _0x1dcfe3=_0x167efe(0x262);_0xb8f135[_0x167efe(0x1f9)]=class extends _0x160934[_0x167efe(0x275)]{constructor(_0x9aa14b=_0x3c6417,_0x4972ab,_0x2014b3){const _0x3d1ec4=_0x167efe;super(),this[_0x3d1ec4(0x1f8)]=_0x9aa14b,this['_injector']=_0x4972ab,this[_0x3d1ec4(0x207)]=_0x2014b3;const {..._0x31b561}=_0x160934[_0x3d1ec4(0x25d)]({},_0x3c6417,this['_config']);this[_0x3d1ec4(0x207)][_0x3d1ec4(0x24d)](_0x836660,_0x31b561);}[_0x167efe(0x289)](){const _0x47d2f5=_0x167efe;_0x160934['registerDependencies'](this[_0x47d2f5(0x245)],_0x160934['mergeOverrideWithDependencies']([[_0x5a3069],[_0xb8f135[_0x47d2f5(0x276)]],[_0x29cb6a],[_0xb8f135['DesktopLiveShareController']]],this[_0x47d2f5(0x1f8)][_0x47d2f5(0x2c9)])),_0x160934[_0x47d2f5(0x258)](this[_0x47d2f5(0x245)],[[_0x29cb6a]]);}[_0x167efe(0x215)](){const _0x4fc708=_0x167efe;_0x160934[_0x4fc708(0x258)](this[_0x4fc708(0x245)],[[_0xb8f135[_0x4fc708(0x20c)]]]);}},_0x5a9825(_0xb8f135['UniverLiveSharePlugin'],_0x167efe(0x22e),_0x160934[_0x167efe(0x2ca)][_0x167efe(0x28d)]),_0x5a9825(_0xb8f135['UniverLiveSharePlugin'],'pluginName',_0x1dcfe3),_0xb8f135[_0x167efe(0x1f9)]=_0x23c2bd([_0x160934['DependentOn'](_0x17209d[_0x167efe(0x2cd)]),_0xf61b43(0x1,_0x160934[_0x167efe(0x2bc)](_0x160934[_0x167efe(0x22b)])),_0xf61b43(0x2,_0x160934['IConfigService'])],_0xb8f135[_0x167efe(0x1f9)]),_0xb8f135[_0x167efe(0x212)]=_0x31beac,_0xb8f135['LiveShareService']=_0x5a3069,_0xb8f135[_0x167efe(0x2b8)]=_0x8a846a,Object[_0x167efe(0x2a8)](_0xb8f135,Symbol['toStringTag'],{'value':_0x167efe(0x202)});}));function _0x4583(_0x345c9f,_0x5c1b19){const _0x54266c=_0x5426();return _0x4583=function(_0x45837a,_0x502d1c){_0x45837a=_0x45837a-0x1f0;let _0x56ea5a=_0x54266c[_0x45837a];return _0x56ea5a;},_0x4583(_0x345c9f,_0x5c1b19);}function _0x5426(){const _0xc6257f=['_entities','_startPresenting','_presenter','_fetchOperations','IDLE','_startLiveShareCoordinator','use','RxDisposable','xlink:href','params','_sharedOperations','button','_unitID','_collabSession','forEach','idSuffix','defIds','Injector','amd','UniverSheets','type','univer-size-4','requireSession','idle','react','unitId','stopFollowing','find','init','exports','_uiPartsService','getInitialStates','_init','@univerjs-pro/collaboration','pipe','UniverSheetsUi','_handleOperation','763072IoIQMC','delete','_status','dispose$','CollaborationEvent','has','_injector','LIVESHARE_NEW_HOST','children','values','Fragment','replace','registerSharedOperation','send','setConfig','229205WgyzrJ','shouldShareOperation','displayName','getTypeOfUnitAdded$','FOLLOWING','_handleTerminate','univer-mb-3\x20univer-w-full\x20univer-text-sm','OFFLINE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','@univerjs/core','touchDependencies','path','You\x27re\x20following\x20the\x20presenter','mask','substring','merge','assign','forwardRef','length','_handleNewHost','UNIVER_LIVE_SHARE_PLUGIN','symbol','data','CommandType','UniverDesign','UniverProLiveShare','40722vFyDta','useState','tag','_startFollowing','getMemberID','_stopFollowing','_handleOnline','BehaviorSubject','PRESENTING','getStatus','status$','InsertSheetMutation','svg','Plugin','LiveShareController','LIVESHARE_TERMINATE','url(#$1','univerjs-icon\x20univerjs-icon-','includes','onCommandExecuted','_handleNewChangeSets','React','NOT_FOLLOWING','operators','add','_collabSessionService','end','subscribe','get','random','asObservable','sessionStatus$','CollaborationSessionService','onStarting','takeUntil','LIVESHARE_REQUEST_HOST','Dropdown','UNIVER_UNKNOWN','from','_stopPresenting','stringify','jsx','colorChannel1','clear','jsxs','You\x27re\x20not\x20following\x20the\x20presenter','122nDBREY','reverse','live-share.config','SessionStatus','not-following','registerComponent','useEffect','@univerjs/design','_reporters','parse','NEW_CHANGESETS','SetScrollOperation','tryStartPresenting','_commandDisposable','fill','_commandService','_mountLiveShare','getConfig','defineProperty','string','HEADER_MENU','getCurrentTypeOfUnit$','Start\x20following','3647480faTvRA','IUniverInstanceService','unsubscribe','createElement','map','_beIdle','LIVESHARE_OPERATION','next','toDisposable','OPERATION','startFollowing','LiveShareStatus','useDependency','UniverUi','You\x27are\x20offline.','Inject','complete','presenting','text','div','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_status$','react/jsx-runtime','defs','4902212nqxPqs','4vpxFsd','@univerjs/ui','set','override','UniverInstanceType','rxjs/operators','1em','UniverCollaborationClientPlugin','operations','LiveShareCoordinator','UNIVER_SHEET','Disposable','5528256Yssmmt','useObservable','mutations','dispose','offline','getUnitId','Button','default','getOwnPropertyDescriptor','Start','486152FTBPpH','_handleOffline','useRef','_config','UniverLiveSharePlugin','54tEAFBh','_liveShareService','disposeWithMe','following','rxjs','@univerjs/sheets','presenter','SetWorksheetActiveOperation','Module','getLiveShareCoordinator','_univerInstanceService','Stop\x20following','parseProtocolChangeset','_configService','trim','SAME_OPERATION_SHARE_INTERVAL','UniverProCollaboration','clsx','DesktopLiveShareController','evenodd','stopPresenting','event$','@univerjs-pro/collaboration-client','Stop\x20presenting','LiveShare','executeCommand','registerInitialStateReporter','onRendered','attrs','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','IUIPartsService'];_0x5426=function(){return _0xc6257f;};return _0x5426();}
|
|
1
|
+
(function(_0x2327ce,_0x44ad43){const _0x216bc5=_0x2dad,_0x3613b6=_0x2327ce();while(!![]){try{const _0x5ad001=parseInt(_0x216bc5(0xb7))/0x1*(-parseInt(_0x216bc5(0x130))/0x2)+-parseInt(_0x216bc5(0x144))/0x3*(parseInt(_0x216bc5(0xb6))/0x4)+-parseInt(_0x216bc5(0x103))/0x5+parseInt(_0x216bc5(0xdd))/0x6+-parseInt(_0x216bc5(0xb5))/0x7*(-parseInt(_0x216bc5(0x12b))/0x8)+parseInt(_0x216bc5(0x14e))/0x9+-parseInt(_0x216bc5(0x105))/0xa;if(_0x5ad001===_0x44ad43)break;else _0x3613b6['push'](_0x3613b6['shift']());}catch(_0x2dbcfe){_0x3613b6['push'](_0x3613b6['shift']());}}}(_0x5656,0x53a4f),function(_0x455248,_0x306329){const _0x48d969=_0x2dad;typeof exports==_0x48d969(0xf6)&&typeof module<'u'?_0x306329(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==_0x48d969(0x95)&&define['amd']?define(['exports',_0x48d969(0x96),'@univerjs/ui','react/jsx-runtime',_0x48d969(0x120),_0x48d969(0xb9),'@univerjs-pro/collaboration',_0x48d969(0x12d),_0x48d969(0x13a),_0x48d969(0x121),_0x48d969(0x10c),'@univerjs/sheets-ui'],_0x306329):(_0x455248=typeof globalThis<'u'?globalThis:_0x455248||self,_0x306329(_0x455248[_0x48d969(0x110)]={},_0x455248[_0x48d969(0xed)],_0x455248[_0x48d969(0xc5)],_0x455248[_0x48d969(0xeb)],_0x455248[_0x48d969(0x115)],_0x455248[_0x48d969(0xeb)],_0x455248[_0x48d969(0x93)],_0x455248[_0x48d969(0x8d)],_0x455248[_0x48d969(0x82)],_0x455248[_0x48d969(0x121)],_0x455248['rxjs'][_0x48d969(0xec)],_0x455248[_0x48d969(0x135)]));}(this,function(_0xa82969,_0x471260,_0x17fe0e,_0x5c9582,_0x25eccf,_0x55d151,_0x13266d,_0xa8945f,_0x184adf,_0x5ea4fc,_0x5490e0,_0x553bfb){'use strict';const _0x57b540=_0x2dad;var _0x305b4c=Object['defineProperty'],_0xd1a594=(_0x54a464,_0x195423,_0x2a8a4e)=>_0x195423 in _0x54a464?_0x305b4c(_0x54a464,_0x195423,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a8a4e}):_0x54a464[_0x195423]=_0x2a8a4e,_0x4d133d=(_0x3bbde2,_0x54bbb9,_0x2554d6)=>_0xd1a594(_0x3bbde2,typeof _0x54bbb9!=_0x57b540(0x125)?_0x54bbb9+'':_0x54bbb9,_0x2554d6);function _0x57b138({ref:_0xc5e897,..._0x527623}){const _0x1140c3=_0x57b540,{icon:_0x288de1,id:_0x3a704a,className:_0x3b4160,extend:_0x4ec1e8,..._0x435fec}=_0x527623,_0x2d56ba=(_0x1140c3(0x129)+_0x3a704a+'\x20'+(_0x3b4160||''))['trim'](),_0x599cde=_0x55d151['useRef']('_'+_0x46873b());return _0x251bef(_0x288de1,''+_0x3a704a,{'defIds':_0x288de1['defIds'],'idSuffix':_0x599cde[_0x1140c3(0x116)]},{'ref':_0xc5e897,'className':_0x2d56ba,..._0x435fec},_0x4ec1e8);}function _0x251bef(_0xc4df5a,_0x3f8a39,_0x40fca2,_0x28495c,_0x53ffd6){const _0x233c63=_0x57b540;return _0x55d151[_0x233c63(0x92)](_0xc4df5a[_0x233c63(0x101)],{'key':_0x3f8a39,..._0x4c1445(_0xc4df5a,_0x40fca2,_0x53ffd6),..._0x28495c},(_0x34d7ca(_0xc4df5a,_0x40fca2)[_0x233c63(0xf9)]||[])[_0x233c63(0x14a)]((_0x99a82,_0x4fe207)=>_0x251bef(_0x99a82,_0x3f8a39+'-'+_0xc4df5a[_0x233c63(0x101)]+'-'+_0x4fe207,_0x40fca2,void 0x0,_0x53ffd6)));}function _0x4c1445(_0x3cf8ea,_0x25ad50,_0x47c69e){const _0x32aed7=_0x57b540,_0x19f8db={..._0x3cf8ea[_0x32aed7(0xff)]};_0x47c69e!=null&&_0x47c69e['colorChannel1']&&_0x19f8db[_0x32aed7(0x14c)]==='colorChannel1'&&(_0x19f8db[_0x32aed7(0x14c)]=_0x47c69e[_0x32aed7(0xdf)]),_0x3cf8ea[_0x32aed7(0x101)]===_0x32aed7(0x9e)&&_0x19f8db['id']&&(_0x19f8db['id']=_0x19f8db['id']+_0x25ad50['idSuffix']),Object[_0x32aed7(0xa3)](_0x19f8db)[_0x32aed7(0xd4)](([_0x5874ec,_0x3e001f])=>{const _0x5e4832=_0x32aed7;_0x5874ec===_0x5e4832(0x9e)&&typeof _0x3e001f==_0x5e4832(0x11a)&&(_0x19f8db[_0x5874ec]=_0x3e001f['replace'](/url\(#(.*)\)/,_0x5e4832(0xaa)+_0x25ad50['idSuffix']+')'));});const {defIds:_0x229a05}=_0x25ad50;return!_0x229a05||_0x229a05[_0x32aed7(0xe0)]===0x0||(_0x3cf8ea[_0x32aed7(0x101)]===_0x32aed7(0x152)&&_0x19f8db[_0x32aed7(0x99)]&&(_0x19f8db['xlink:href']=_0x19f8db[_0x32aed7(0x99)]+_0x25ad50[_0x32aed7(0x136)]),Object[_0x32aed7(0xa3)](_0x19f8db)['forEach'](([_0x597d92,_0x6c14de])=>{const _0x12a03a=_0x32aed7;typeof _0x6c14de==_0x12a03a(0x11a)&&(_0x19f8db[_0x597d92]=_0x6c14de[_0x12a03a(0xdc)](/url\(#(.*)\)/,_0x12a03a(0xaa)+_0x25ad50['idSuffix']+')'));})),_0x19f8db;}function _0x34d7ca(_0x40a9c8,_0x35166a){const _0xe6ffc1=_0x57b540;var _0x176314;const {defIds:_0x49bbf1}=_0x35166a;return!_0x49bbf1||_0x49bbf1[_0xe6ffc1(0xe0)]===0x0?_0x40a9c8:_0x40a9c8[_0xe6ffc1(0x101)]===_0xe6ffc1(0xe1)&&((_0x176314=_0x40a9c8[_0xe6ffc1(0xf9)])!=null&&_0x176314[_0xe6ffc1(0xe0)])?{..._0x40a9c8,'children':_0x40a9c8[_0xe6ffc1(0xf9)][_0xe6ffc1(0x14a)](_0x3c65d4=>typeof _0x3c65d4[_0xe6ffc1(0xff)]['id']==_0xe6ffc1(0x11a)&&_0x49bbf1&&_0x49bbf1['includes'](_0x3c65d4[_0xe6ffc1(0xff)]['id'])?{..._0x3c65d4,'attrs':{..._0x3c65d4[_0xe6ffc1(0xff)],'id':_0x3c65d4[_0xe6ffc1(0xff)]['id']+_0x35166a[_0xe6ffc1(0x136)]}}:_0x3c65d4)}:_0x40a9c8;}function _0x46873b(){const _0x5430f7=_0x57b540;return Math['random']()[_0x5430f7(0xca)](0x24)[_0x5430f7(0xd1)](0x2,0x8);}_0x57b138[_0x57b540(0xb0)]='UniverIcon';const _0xbab056={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x57b540(0x8e),'height':_0x57b540(0x8e)},'children':[{'tag':_0x57b540(0x77),'attrs':{'fill':_0x57b540(0xe8),'d':_0x57b540(0x7c)}},{'tag':_0x57b540(0x77),'attrs':{'fill':_0x57b540(0xe8),'d':_0x57b540(0xa6),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x10e6e1=_0x55d151[_0x57b540(0xa4)](function(_0x16f43d,_0x22f1fd){const _0x50f834=_0x57b540;return _0x55d151[_0x50f834(0x92)](_0x57b138,Object[_0x50f834(0x10f)]({},_0x16f43d,{'id':_0x50f834(0x142),'ref':_0x22f1fd,'icon':_0xbab056}));});_0x10e6e1[_0x57b540(0xb0)]=_0x57b540(0xc8);class _0x2afda7 extends _0x471260[_0x57b540(0x104)]{constructor(){const _0x1582d0=_0x57b540;super(...arguments),_0x4d133d(this,'_sharedOperations',new Set()),_0x4d133d(this,_0x1582d0(0x102),new Set());}[_0x57b540(0x145)](_0x1a5925){const _0x2eb361=_0x57b540;return this[_0x2eb361(0xbf)][_0x2eb361(0x7d)](_0x1a5925),_0x471260['toDisposable'](()=>this[_0x2eb361(0xbf)][_0x2eb361(0x139)](_0x1a5925));}[_0x57b540(0xe4)](_0x4cb07e){const _0x1917fd=_0x57b540;return this[_0x1917fd(0x102)][_0x1917fd(0x7d)](_0x4cb07e),_0x471260['toDisposable'](()=>this[_0x1917fd(0x102)][_0x1917fd(0x139)](_0x4cb07e));}[_0x57b540(0xf2)](_0x167e15){const _0x140d96=_0x57b540;return this[_0x140d96(0xbf)][_0x140d96(0xa0)](_0x167e15);}[_0x57b540(0x117)](_0x49a257){const _0x2365de=_0x57b540;return Array[_0x2365de(0x141)](this[_0x2365de(0x102)])['map'](_0x4cded7=>_0x4cded7(_0x49a257));}}var _0x996e39=Object[_0x57b540(0xc4)],_0x4eed9c=(_0x48bc7d,_0xf57b4f,_0x1c9471,_0x5766cd)=>{for(var _0xf9e386=_0x5766cd>0x1?void 0x0:_0x5766cd?_0x996e39(_0xf57b4f,_0x1c9471):_0xf57b4f,_0x2f1130=_0x48bc7d['length']-0x1,_0x40eb50;_0x2f1130>=0x0;_0x2f1130--)(_0x40eb50=_0x48bc7d[_0x2f1130])&&(_0xf9e386=_0x40eb50(_0xf9e386)||_0xf9e386);return _0xf9e386;},_0x5be819=(_0xb2aec1,_0x527ae5)=>(_0x2490f1,_0x1e6af5)=>_0x527ae5(_0x2490f1,_0x1e6af5,_0xb2aec1);_0xa82969[_0x57b540(0xc2)]=class extends _0x471260[_0x57b540(0x134)]{constructor(_0x4c12ed,_0x384e89,_0x553371){const _0x5846e9=_0x57b540;super(),_0x4d133d(this,_0x5846e9(0x86),new Map()),(this[_0x5846e9(0xe2)]=_0x4c12ed,this['_injector']=_0x384e89,this[_0x5846e9(0x7e)]=_0x553371,this[_0x5846e9(0x13d)]());}async[_0x57b540(0xae)](_0x54bafb){const _0x1e1c3f=_0x57b540;return this[_0x1e1c3f(0x86)][_0x1e1c3f(0xa0)](_0x54bafb)||await this[_0x1e1c3f(0xee)](_0x54bafb),this['_entities'][_0x1e1c3f(0x8f)](_0x54bafb);}['getLiveShareCoordinatorSync'](_0x121a33){const _0x4f7f83=_0x57b540;var _0x111544;return(_0x111544=this[_0x4f7f83(0x86)]['get'](_0x121a33))!=null?_0x111544:null;}[_0x57b540(0x13d)](){const _0x2043c1=_0x57b540;this[_0x2043c1(0xe2)][_0x2043c1(0xfd)](_0x471260['UniverInstanceType'][_0x2043c1(0xbc)])[_0x2043c1(0xf8)](_0x5490e0[_0x2043c1(0x126)](this[_0x2043c1(0xd6)]))['subscribe'](async _0x2816f7=>{const _0x236406=_0x2043c1,_0x1d519e=_0x2816f7['getUnitId']();this[_0x236406(0x86)][_0x236406(0xa0)](_0x1d519e)||this[_0x236406(0xee)](_0x1d519e);}),this[_0x2043c1(0xe2)][_0x2043c1(0xf3)](_0x471260[_0x2043c1(0x8c)][_0x2043c1(0xbc)])[_0x2043c1(0xf8)](_0x5490e0[_0x2043c1(0x126)](this[_0x2043c1(0xd6)]))[_0x2043c1(0x9c)](_0x1b797a=>{const _0x4906c4=_0x2043c1,_0x1e82fd=_0x1b797a[_0x4906c4(0xd9)](),_0x54f2e3=this[_0x4906c4(0x86)][_0x4906c4(0x8f)](_0x1e82fd);_0x54f2e3==null||_0x54f2e3[_0x4906c4(0x89)]();});}async[_0x57b540(0xee)](_0x56fa52){const _0x585095=_0x57b540,_0x43608a=await this[_0x585095(0x7e)][_0x585095(0x147)](_0x56fa52),_0x39f273=this[_0x585095(0x80)][_0x585095(0x124)](_0xa82969[_0x585095(0x143)],_0x56fa52,_0x43608a);return _0x39f273[_0x585095(0xdb)](),this[_0x585095(0x86)][_0x585095(0xda)](_0x56fa52,_0x39f273),_0x39f273;}},_0xa82969[_0x57b540(0xc2)]=_0x4eed9c([_0x5be819(0x0,_0x471260['IUniverInstanceService']),_0x5be819(0x1,_0x471260['Inject'](_0x471260[_0x57b540(0xf5)])),_0x5be819(0x2,_0x471260[_0x57b540(0xa5)](_0xa8945f[_0x57b540(0xf7)]))],_0xa82969['LiveShareController']);var _0x3a00b7=(_0x40a537=>(_0x40a537[_0x57b540(0xc6)]=_0x57b540(0x11c),_0x40a537[_0x57b540(0xa2)]=_0x57b540(0xc7),_0x40a537['FOLLOWING']=_0x57b540(0x12e),_0x40a537[_0x57b540(0x79)]='not-following',_0x40a537[_0x57b540(0xd7)]=_0x57b540(0xa8),_0x40a537))(_0x3a00b7||{});const _0x42d2ec=_0x57b540(0x7a),_0x5e8f0e=0xc8;_0xa82969[_0x57b540(0x143)]=class extends _0x471260[_0x57b540(0x134)]{constructor(_0x42f602,_0x55da63,_0x4d599d,_0x4b095e,_0x20e2bc){const _0x19a29b=_0x57b540;super(),_0x4d133d(this,'_status$',new _0x5ea4fc[(_0x19a29b(0x85))]('idle')),_0x4d133d(this,_0x19a29b(0x140),this[_0x19a29b(0x123)]['asObservable']()),_0x4d133d(this,'_init',!0x1),_0x4d133d(this,_0x19a29b(0xea),null),_0x4d133d(this,'_presenter',null),(this[_0x19a29b(0x9a)]=_0x42f602,this[_0x19a29b(0xe7)]=_0x55da63,this[_0x19a29b(0x137)]=_0x4d599d,this[_0x19a29b(0xde)]=_0x4b095e,this[_0x19a29b(0xa7)]=_0x20e2bc);}get[_0x57b540(0x11e)](){return this['_status$']['getValue']();}[_0x57b540(0x89)](){const _0x431f71=_0x57b540;var _0x32c369;(_0x32c369=this[_0x431f71(0xea)])==null||_0x32c369[_0x431f71(0x89)](),this[_0x431f71(0x123)][_0x431f71(0x127)](_0x431f71(0xc7)),this['_status$'][_0x431f71(0xb1)]();}[_0x57b540(0x8b)](){return this['_status'];}[_0x57b540(0xdb)](){const _0x9354d0=_0x57b540;this[_0x9354d0(0x13d)]||(this[_0x9354d0(0x13d)]=!0x0,this[_0x9354d0(0xe7)][_0x9354d0(0xcf)][_0x9354d0(0xf8)](_0x5490e0['takeUntil'](this[_0x9354d0(0xd6)]))['subscribe'](_0x179558=>{const _0x34f1a1=_0x9354d0;switch(_0x179558){case _0xa8945f['SessionStatus'][_0x34f1a1(0xc6)]:this[_0x34f1a1(0xe6)]();break;case _0xa8945f[_0x34f1a1(0x11f)][_0x34f1a1(0x128)]:this[_0x34f1a1(0xf4)]();break;}}),this['_collabSession'][_0x9354d0(0xf0)][_0x9354d0(0xf8)](_0x5490e0[_0x9354d0(0x126)](this[_0x9354d0(0xd6)]))[_0x9354d0(0x9c)](_0x4aabc6=>{const _0x320746=_0x9354d0,{eventID:_0x8ef63f}=_0x4aabc6;switch(_0x8ef63f){case _0x13266d[_0x320746(0xd5)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4aabc6);break;case _0x13266d['CollaborationEvent'][_0x320746(0x13f)]:this['_handleOperation'](_0x4aabc6);break;case _0x13266d['CollaborationEvent'][_0x320746(0x10b)]:this['_handleTerminate']();break;case _0x13266d[_0x320746(0xd5)][_0x320746(0x149)]:this[_0x320746(0xa1)](_0x4aabc6);break;}}));}[_0x57b540(0x131)](){const _0x264d88=_0x57b540;this[_0x264d88(0xe7)]['send']({'eventID':_0x13266d[_0x264d88(0xd5)][_0x264d88(0x88)],'data':{'unitID':this['_unitID'],'userID':this[_0x264d88(0xe7)][_0x264d88(0xb2)]()}},this[_0x264d88(0x9a)]);}[_0x57b540(0x12c)](){const _0x361f37=_0x57b540;this[_0x361f37(0x11e)]===_0x361f37(0xa8)&&(this['_status$'][_0x361f37(0x127)](_0x361f37(0xc7)),this[_0x361f37(0xe7)][_0x361f37(0x118)]({'eventID':_0x13266d[_0x361f37(0xd5)][_0x361f37(0x10b)],'data':{'unitID':this[_0x361f37(0x9a)]}},this[_0x361f37(0x9a)]));}[_0x57b540(0xd2)](){const _0x40de29=_0x57b540;this['_status']===_0x40de29(0xc0)&&(this[_0x40de29(0x123)][_0x40de29(0x127)](_0x40de29(0x12e)),this[_0x40de29(0x81)]());}['stopFollowing'](){const _0x54f616=_0x57b540;this['_status']===_0x54f616(0x12e)&&this[_0x54f616(0x11b)]();}['_handleNewHost'](_0x243ee7){const _0x149369=_0x57b540,{presenter:_0x377163}=_0x243ee7['data'],_0x251466=this[_0x149369(0xe7)][_0x149369(0xb2)]();this[_0x149369(0xa9)]=_0x377163,_0x377163===_0x251466?(this[_0x149369(0x11b)](),this[_0x149369(0x83)]()):this[_0x149369(0x11e)]!=='not-following'&&(this[_0x149369(0x9f)](),this['_startFollowing']());}[_0x57b540(0xe5)](){const _0xa92e50=_0x57b540,_0x29a68e={'eventID':_0x13266d['CollaborationEvent'][_0xa92e50(0x7f)]};this[_0xa92e50(0xe7)][_0xa92e50(0x118)](_0x29a68e,this[_0xa92e50(0x9a)]);}[_0x57b540(0xb4)](){const _0x220e8f=_0x57b540;this[_0x220e8f(0xa9)]=null,this[_0x220e8f(0x11e)]!==_0x220e8f(0xa8)&&this[_0x220e8f(0xd3)]();}[_0x57b540(0xa1)](_0x11026b){const _0x3536fc=_0x57b540;if(this[_0x3536fc(0x11e)]===_0x3536fc(0x12e)&&this['_presenter']===_0x11026b[_0x3536fc(0x12a)][_0x3536fc(0x14f)]){const _0x17c1c3=_0x13266d[_0x3536fc(0x109)](_0x11026b[_0x3536fc(0x12a)])['mutations']['reverse']()['find'](_0x4bc834=>_0x4bc834['id']===_0x184adf['InsertSheetMutation']['id']);if(_0x17c1c3){const _0x55d352=_0x17c1c3[_0x3536fc(0x76)][_0x3536fc(0xfe)],_0x20cc6a=_0x17c1c3[_0x3536fc(0x76)][_0x3536fc(0x8a)]['id'];setTimeout(()=>{const _0x554bd9=_0x3536fc;this[_0x554bd9(0xa7)]['executeCommand'](_0x184adf['SetWorksheetActiveOperation']['id'],{'unitId':_0x55d352,'subUnitId':_0x20cc6a},{'fromCollab':!0x0});});}}}[_0x57b540(0x83)](){const _0x45bf7c=_0x57b540;this[_0x45bf7c(0x123)][_0x45bf7c(0x127)](_0x45bf7c(0xa8));const _0x2badd0=new Map(),_0x21f483=this[_0x45bf7c(0xea)]=new _0x471260[(_0x45bf7c(0x119))]();_0x21f483['add'](_0x471260[_0x45bf7c(0xbb)](()=>{const _0x4ed7a5=_0x45bf7c;_0x2badd0[_0x4ed7a5(0xd4)](_0xa8cf04=>_0xa8cf04[_0x4ed7a5(0xb1)]()),_0x2badd0[_0x4ed7a5(0x114)]();})),_0x21f483[_0x45bf7c(0x7d)](this[_0x45bf7c(0xa7)]['onCommandExecuted'](_0x49ba39=>{const _0x544bdb=_0x45bf7c;var _0x15239a;if(_0x49ba39['type']!==_0x471260['CommandType'][_0x544bdb(0xb3)]||!this[_0x544bdb(0xde)][_0x544bdb(0xf2)](_0x49ba39['id']))return;const {id:_0x50a8fc}=_0x49ba39;let _0x5c3820;_0x2badd0['has'](_0x50a8fc)?_0x5c3820=_0x2badd0[_0x544bdb(0x8f)](_0x50a8fc):(_0x5c3820=new _0x5ea4fc[(_0x544bdb(0x106))](),_0x2badd0[_0x544bdb(0xda)](_0x50a8fc,_0x5c3820),_0x5c3820[_0x544bdb(0xf8)](_0x5490e0[_0x544bdb(0x111)]((_0x15239a=this[_0x544bdb(0x137)]['getConfig'](_0x42d2ec))!=null?_0x15239a:_0x5e8f0e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x544bdb(0x9c)](_0x5b0475=>{const _0x442696=_0x544bdb;this['_collabSession'][_0x442696(0x118)]({'eventID':_0x13266d['CollaborationEvent'][_0x442696(0x13f)],'data':{'unitID':this[_0x442696(0x9a)],'operations':{[_0x5b0475['id']]:{'id':_0x5b0475['id'],'params':JSON['stringify'](_0x5b0475[_0x442696(0x76)])}}}},this[_0x442696(0x9a)]);})),_0x5c3820[_0x544bdb(0x127)](_0x49ba39);})),this[_0x45bf7c(0xde)][_0x45bf7c(0x117)](this['_unitID'])[_0x45bf7c(0xd4)](_0x12cb4a=>this[_0x45bf7c(0xe7)][_0x45bf7c(0x118)]({'eventID':_0x13266d[_0x45bf7c(0xd5)][_0x45bf7c(0x13f)],'data':{'unitID':this[_0x45bf7c(0x9a)],'operations':{[_0x12cb4a['id']]:{'id':_0x12cb4a['id'],'params':JSON['stringify'](_0x12cb4a['params'])}}}},this[_0x45bf7c(0x9a)]));}[_0x57b540(0x9f)](){const _0x58e99e=_0x57b540;var _0x53cefc;this[_0x58e99e(0x123)]['next']('idle'),(_0x53cefc=this[_0x58e99e(0xea)])==null||_0x53cefc[_0x58e99e(0x89)](),this[_0x58e99e(0xea)]=null;}[_0x57b540(0x81)](){const _0xd70749=_0x57b540;var _0x1e0c0f;(_0x1e0c0f=this['_commandDisposable'])==null||_0x1e0c0f['dispose'](),this[_0xd70749(0x123)]['next']('following');}[_0x57b540(0xd3)](){const _0x344ff1=_0x57b540;var _0x1a12f5;this[_0x344ff1(0x123)][_0x344ff1(0x127)](_0x344ff1(0xc7)),(_0x1a12f5=this['_commandDisposable'])==null||_0x1a12f5[_0x344ff1(0x89)](),this[_0x344ff1(0xea)]=null;}[_0x57b540(0x11b)](){const _0xd3aebc=_0x57b540;var _0x1eba7a;this[_0xd3aebc(0x123)][_0xd3aebc(0x127)]('not-following'),(_0x1eba7a=this[_0xd3aebc(0xea)])==null||_0x1eba7a[_0xd3aebc(0x89)]();}['_handleOperation'](_0x1e226b){const _0x2e15e0=_0x57b540;if(['presenting',_0x2e15e0(0xc0),_0x2e15e0(0x11c)][_0x2e15e0(0xce)](this[_0x2e15e0(0x11e)])||!_0x1e226b[_0x2e15e0(0x12a)][_0x2e15e0(0xfc)]||_0x1e226b[_0x2e15e0(0x12a)][_0x2e15e0(0xfc)]===this[_0x2e15e0(0xe7)][_0x2e15e0(0xb2)]())return;this[_0x2e15e0(0x11e)]===_0x2e15e0(0xc7)&&this['_startFollowing']();const _0x32afd9=_0x1e226b[_0x2e15e0(0x12a)]['operations'];Object['values'](_0x32afd9)[_0x2e15e0(0xd4)](_0x1a5611=>{const _0x1dd9e7=_0x2e15e0;this['_commandService'][_0x1dd9e7(0xb8)](_0x1a5611['id'],_0x1a5611['params']?JSON[_0x1dd9e7(0x11d)](_0x1a5611[_0x1dd9e7(0x76)]):null,{'fromCollab':!0x0});});}[_0x57b540(0xe6)](){const _0x30da74=_0x57b540;var _0x71e20b;this[_0x30da74(0x123)][_0x30da74(0x127)]('offline'),(_0x71e20b=this[_0x30da74(0xea)])==null||_0x71e20b[_0x30da74(0x89)]();}['_handleOnline'](){const _0x5bb96b=_0x57b540;this[_0x5bb96b(0x123)][_0x5bb96b(0x127)](_0x5bb96b(0xc7)),this[_0x5bb96b(0xe5)]();}},_0xa82969[_0x57b540(0x143)]=_0x4eed9c([_0x5be819(0x2,_0x471260['IConfigService']),_0x5be819(0x3,_0x471260['Inject'](_0x2afda7)),_0x5be819(0x4,_0x471260['ICommandService'])],_0xa82969['LiveShareCoordinator']);function _0x184d91(){const _0x128779=_0x57b540,_0x331b19=_0x17fe0e[_0x128779(0xe9)](_0xa82969[_0x128779(0xc2)]),_0x538433=_0x17fe0e[_0x128779(0xe9)](_0x471260[_0x128779(0x10d)]),_0x239d75=_0x17fe0e['useObservable'](()=>_0x538433[_0x128779(0x107)](_0x471260[_0x128779(0x8c)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3fb265,_0x3cf63e]=_0x55d151[_0x128779(0x84)](null),[_0x3bbdca,_0x4e6394]=_0x55d151[_0x128779(0x84)](_0x3a00b7[_0x128779(0xa2)]),_0x3ba8b4=_0x55d151[_0x128779(0xd0)](null);return _0x55d151[_0x128779(0xcc)](()=>(_0x239d75&&_0x331b19['getLiveShareCoordinator'](_0x239d75[_0x128779(0xd9)]())['then'](_0x3c9745=>{const _0x38b14b=_0x128779;_0x3cf63e(_0x3c9745),_0x3ba8b4[_0x38b14b(0x116)]=_0x3c9745[_0x38b14b(0x140)][_0x38b14b(0x9c)](_0x3008e3=>{_0x4e6394(_0x3008e3);});}),()=>{const _0xcc9f60=_0x128779;var _0x3f0404;(_0x3f0404=_0x3ba8b4[_0xcc9f60(0x116)])==null||_0x3f0404['unsubscribe'](),_0x3ba8b4[_0xcc9f60(0x116)]=null;}),[_0x239d75,_0x331b19]),_0x3fb265?_0x5c9582['jsx'](_0x25eccf['Dropdown'],{'align':'end','disabled':_0x3bbdca===_0x3a00b7[_0x128779(0xc6)],'className':_0x128779(0x14b),'overlay':_0x5c9582[_0x128779(0x10e)](_0x18779d,{'status':_0x3bbdca,'coordinator':_0x3fb265}),'children':_0x5c9582[_0x128779(0x10e)](_0x128779(0xaf),{'className':_0x25eccf['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3bbdca===_0x3a00b7[_0x128779(0xc6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3bbdca!==_0x3a00b7['OFFLINE']}),'type':_0x128779(0xaf),'children':_0x5c9582[_0x128779(0x10e)](_0x10e6e1,{'className':_0x128779(0x90)})})}):null;}function _0x18779d(_0x525a31){const _0x19d3fe=_0x57b540,{status:_0x36bb85,coordinator:_0x48210a}=_0x525a31;switch(_0x36bb85){case _0x3a00b7[_0x19d3fe(0xa2)]:return _0x5c9582[_0x19d3fe(0x10e)](_0x2c7c39,{'coordinator':_0x48210a});case _0x3a00b7[_0x19d3fe(0xbd)]:return _0x5c9582[_0x19d3fe(0x10e)](_0x17e154,{'coordinator':_0x48210a});case _0x3a00b7[_0x19d3fe(0x79)]:return _0x5c9582['jsx'](_0x38fe6c,{'coordinator':_0x48210a});case _0x3a00b7[_0x19d3fe(0xc6)]:return _0x5c9582[_0x19d3fe(0x10e)](_0x56c851,{});case _0x3a00b7[_0x19d3fe(0xd7)]:return _0x5c9582['jsx'](_0xcc5f6d,{'coordinator':_0x48210a});default:return null;}}function _0x2c7c39(_0xdcdbc2){const _0x29e803=_0x57b540,{coordinator:_0x57b933}=_0xdcdbc2;return _0x5c9582['jsxs'](_0x5c9582[_0x29e803(0xc3)],{'children':[_0x5c9582[_0x29e803(0x10e)](_0x29e803(0x108),{'className':_0x29e803(0x94),'children':_0x29e803(0x7b)}),_0x5c9582[_0x29e803(0x10e)](_0x25eccf[_0x29e803(0xe3)],{'onClick':()=>_0x57b933[_0x29e803(0x131)](),'children':_0x29e803(0x122)})]});}function _0x17e154(_0x160e8a){const _0x2185b1=_0x57b540,{coordinator:_0x1c5f7f}=_0x160e8a;return _0x5c9582['jsxs'](_0x5c9582[_0x2185b1(0xc3)],{'children':[_0x5c9582[_0x2185b1(0x10e)](_0x2185b1(0x108),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x5c9582[_0x2185b1(0x10e)](_0x25eccf[_0x2185b1(0xe3)],{'onClick':()=>_0x1c5f7f[_0x2185b1(0x78)](),'children':_0x2185b1(0xac)})]});}function _0x38fe6c(_0x41dbd9){const _0x481521=_0x57b540,{coordinator:_0x4c4466}=_0x41dbd9;return _0x5c9582[_0x481521(0xef)](_0x5c9582[_0x481521(0xc3)],{'children':[_0x5c9582['jsx'](_0x481521(0x108),{'className':_0x481521(0x94),'children':_0x481521(0x97)}),_0x5c9582['jsx'](_0x25eccf[_0x481521(0xe3)],{'variant':_0x481521(0x10a),'onClick':()=>_0x4c4466[_0x481521(0xd2)](),'children':_0x481521(0xf1)})]});}function _0xcc5f6d(_0x3d141c){const _0x1e19ef=_0x57b540,{coordinator:_0x5a0919}=_0x3d141c;return _0x5c9582[_0x1e19ef(0xef)](_0x5c9582['Fragment'],{'children':[_0x5c9582['jsx'](_0x1e19ef(0x108),{'className':_0x1e19ef(0x94),'children':_0x1e19ef(0x151)}),_0x5c9582[_0x1e19ef(0x10e)](_0x25eccf['Button'],{'variant':_0x1e19ef(0x98),'onClick':()=>_0x5a0919['stopPresenting'](),'children':_0x1e19ef(0xc1)})]});}function _0x56c851(){const _0x2b0a94=_0x57b540;return _0x5c9582[_0x2b0a94(0x10e)](_0x5c9582[_0x2b0a94(0xc3)],{'children':_0x2b0a94(0x13b)});}var _0x3c4a95=Object[_0x57b540(0xc4)],_0x5d3d48=(_0x17cfb7,_0x5bfd58,_0x4de284,_0x483372)=>{const _0x202eec=_0x57b540;for(var _0x50cadc=_0x483372>0x1?void 0x0:_0x483372?_0x3c4a95(_0x5bfd58,_0x4de284):_0x5bfd58,_0x5eb31e=_0x17cfb7[_0x202eec(0xe0)]-0x1,_0x4b24d7;_0x5eb31e>=0x0;_0x5eb31e--)(_0x4b24d7=_0x17cfb7[_0x5eb31e])&&(_0x50cadc=_0x4b24d7(_0x50cadc)||_0x50cadc);return _0x50cadc;},_0x27f8f6=(_0x5ddad0,_0x3b7dbe)=>(_0xf4e1f3,_0x4bc17d)=>_0x3b7dbe(_0xf4e1f3,_0x4bc17d,_0x5ddad0);_0xa82969['DesktopLiveShareController']=class extends _0x471260[_0x57b540(0x104)]{constructor(_0x5d3760,_0x733404){const _0x263cd2=_0x57b540;super(),this[_0x263cd2(0x80)]=_0x5d3760,this[_0x263cd2(0x133)]=_0x733404,this[_0x263cd2(0x13c)]();}['_mountLiveShare'](){const _0x430877=_0x57b540;this['disposeWithMe'](this[_0x430877(0x133)][_0x430877(0xbe)](_0x17fe0e['BuiltInUIPart'][_0x430877(0xad)],()=>_0x17fe0e[_0x430877(0x148)](_0x184d91,this[_0x430877(0x80)])));}},_0xa82969['DesktopLiveShareController']=_0x5d3d48([_0x27f8f6(0x0,_0x471260[_0x57b540(0xa5)](_0x471260[_0x57b540(0xf5)])),_0x27f8f6(0x1,_0x17fe0e['IUIPartsService'])],_0xa82969[_0x57b540(0x87)]);const _0x5b2939=_0x57b540(0xcd),_0x40ee10={};var _0x56b3fc=Object[_0x57b540(0xc4)],_0x2cfb8f=(_0x14d961,_0x597a5b,_0x4a6ec6,_0x20175e)=>{const _0x356767=_0x57b540;for(var _0x4683d6=_0x20175e>0x1?void 0x0:_0x20175e?_0x56b3fc(_0x597a5b,_0x4a6ec6):_0x597a5b,_0x4e4eeb=_0x14d961[_0x356767(0xe0)]-0x1,_0x4318f1;_0x4e4eeb>=0x0;_0x4e4eeb--)(_0x4318f1=_0x14d961[_0x4e4eeb])&&(_0x4683d6=_0x4318f1(_0x4683d6)||_0x4683d6);return _0x4683d6;},_0x1ae1d9=(_0x486d42,_0x3931bf)=>(_0x3cc906,_0xd34f11)=>_0x3931bf(_0x3cc906,_0xd34f11,_0x486d42);let _0x20fb38=class extends _0x471260[_0x57b540(0x104)]{constructor(_0x1789e1){const _0x5fb372=_0x57b540;super(),this[_0x5fb372(0xde)]=_0x1789e1,this[_0x5fb372(0x13d)]();}[_0x57b540(0x13d)](){const _0x4222d2=_0x57b540;[_0x553bfb[_0x4222d2(0x138)]['id'],_0x553bfb['SetScrollOperation']['id'],_0x184adf['SetWorksheetActiveOperation']['id']]['forEach'](_0x286fd6=>{const _0x386667=_0x4222d2;this[_0x386667(0x12f)](this[_0x386667(0xde)][_0x386667(0x145)](_0x286fd6));});}};_0x20fb38=_0x2cfb8f([_0x1ae1d9(0x0,_0x471260[_0x57b540(0xa5)](_0x2afda7))],_0x20fb38);var _0x4cee03=Object[_0x57b540(0xc9)],_0x1d84a2=Object[_0x57b540(0xc4)],_0x22edbb=(_0x100df7,_0x5685f6,_0x18971f)=>_0x5685f6 in _0x100df7?_0x4cee03(_0x100df7,_0x5685f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18971f}):_0x100df7[_0x5685f6]=_0x18971f,_0x4a6690=(_0x1dee32,_0x1293f8,_0x5527df,_0x390a5b)=>{const _0x4284dc=_0x57b540;for(var _0x115db5=_0x390a5b>0x1?void 0x0:_0x390a5b?_0x1d84a2(_0x1293f8,_0x5527df):_0x1293f8,_0x3de3b8=_0x1dee32[_0x4284dc(0xe0)]-0x1,_0xe119ae;_0x3de3b8>=0x0;_0x3de3b8--)(_0xe119ae=_0x1dee32[_0x3de3b8])&&(_0x115db5=_0xe119ae(_0x115db5)||_0x115db5);return _0x115db5;},_0x17a3a5=(_0x14a6a2,_0x49fb55)=>(_0x5fb119,_0x1781f5)=>_0x49fb55(_0x5fb119,_0x1781f5,_0x14a6a2),_0x11dac0=(_0x5363ac,_0x3753a,_0x2ba09e)=>_0x22edbb(_0x5363ac,typeof _0x3753a!='symbol'?_0x3753a+'':_0x3753a,_0x2ba09e);const _0x31e059=_0x57b540(0x100);_0xa82969['UniverLiveSharePlugin']=class extends _0x471260['Plugin']{constructor(_0x19eef=_0x40ee10,_0x472f78,_0x3d52f7){const _0x29d649=_0x57b540;super(),this[_0x29d649(0x14d)]=_0x19eef,this[_0x29d649(0x80)]=_0x472f78,this[_0x29d649(0x137)]=_0x3d52f7;const {..._0x2f9623}=_0x471260[_0x29d649(0x112)]({},_0x40ee10,this['_config']);this[_0x29d649(0x137)]['setConfig'](_0x5b2939,_0x2f9623);}[_0x57b540(0xd8)](){const _0x4d2b7c=_0x57b540;_0x471260[_0x4d2b7c(0x132)](this[_0x4d2b7c(0x80)],_0x471260[_0x4d2b7c(0x153)]([[_0x2afda7],[_0xa82969[_0x4d2b7c(0xc2)]],[_0x20fb38],[_0xa82969[_0x4d2b7c(0x87)]]],this[_0x4d2b7c(0x14d)][_0x4d2b7c(0xfb)])),_0x471260[_0x4d2b7c(0xab)](this[_0x4d2b7c(0x80)],[[_0x20fb38]]);}[_0x57b540(0x13e)](){const _0x2845de=_0x57b540;_0x471260[_0x2845de(0xab)](this[_0x2845de(0x80)],[[_0xa82969[_0x2845de(0x87)]]]);}},_0x11dac0(_0xa82969[_0x57b540(0x146)],_0x57b540(0x9d),_0x471260[_0x57b540(0x8c)][_0x57b540(0x113)]),_0x11dac0(_0xa82969[_0x57b540(0x146)],'pluginName',_0x31e059),_0xa82969[_0x57b540(0x146)]=_0x4a6690([_0x471260[_0x57b540(0xba)](_0xa8945f[_0x57b540(0x9b)]),_0x17a3a5(0x1,_0x471260['Inject'](_0x471260[_0x57b540(0xf5)])),_0x17a3a5(0x2,_0x471260[_0x57b540(0x150)])],_0xa82969[_0x57b540(0x146)]),_0xa82969[_0x57b540(0xfa)]=_0x184d91,_0xa82969['LiveShareService']=_0x2afda7,_0xa82969[_0x57b540(0xcb)]=_0x3a00b7,Object['defineProperty'](_0xa82969,Symbol['toStringTag'],{'value':_0x57b540(0x91)});}));function _0x2dad(_0x21a7d4,_0x457f63){const _0x5656d3=_0x5656();return _0x2dad=function(_0x2dadf8,_0x3713ae){_0x2dadf8=_0x2dadf8-0x76;let _0x5dc753=_0x5656d3[_0x2dadf8];return _0x5dc753;},_0x2dad(_0x21a7d4,_0x457f63);}function _0x5656(){const _0x49fbaf=['onStarting','getUnitId','set','init','replace','4062552YvtUIk','_liveShareService','colorChannel1','length','defs','_univerInstanceService','Button','registerInitialStateReporter','_fetchOperations','_handleOffline','_collabSession','currentColor','useDependency','_commandDisposable','React','operators','UniverCore','_startLiveShareCoordinator','jsxs','event$','Start\x20following','shouldShareOperation','getTypeOfUnitDisposed$','_handleOnline','Injector','object','CollaborationSessionService','pipe','children','LiveShare','override','presenter','getTypeOfUnitAdded$','unitId','attrs','UNIVER_LIVE_SHARE_PLUGIN','tag','_reporters','2473195hUipLO','Disposable','1228900UcQgdq','Subject','getCurrentTypeOfUnit$','div','parseProtocolChangeset','text','LIVESHARE_TERMINATE','rxjs/operators','IUniverInstanceService','jsx','assign','UniverProLiveShare','throttleTime','merge','UNIVER_UNKNOWN','clear','UniverDesign','current','getInitialStates','send','DisposableCollection','string','_stopFollowing','offline','parse','_status','SessionStatus','@univerjs/design','rxjs','Start','_status$','createInstance','symbol','takeUntil','next','ONLINE','univerjs-icon\x20univerjs-icon-','data','175760BEupsu','stopPresenting','@univerjs-pro/collaboration-client','following','disposeWithMe','4glgunQ','tryStartPresenting','registerDependencies','_uiPartsService','RxDisposable','UniverSheetsUi','idSuffix','_configService','SetZoomRatioOperation','delete','@univerjs/sheets','You\x27are\x20offline.','_mountLiveShare','_init','onRendered','LIVESHARE_OPERATION','status$','from','live-share-icon','LiveShareCoordinator','174aqAVqy','registerSharedOperation','UniverLiveSharePlugin','requireSession','connectInjector','NEW_CHANGESETS','map','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','fill','_config','235602eiGVMD','memberID','IConfigService','You\x27re\x20presenting\x20the\x20document','use','mergeOverrideWithDependencies','params','path','stopFollowing','NOT_FOLLOWING','SAME_OPERATION_SHARE_INTERVAL','Present\x20this\x20document','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','add','_collabSessionService','LIVESHARE_FETCH_OPERATIONS','_injector','_startFollowing','UniverSheets','_startPresenting','useState','BehaviorSubject','_entities','DesktopLiveShareController','LIVESHARE_REQUEST_HOST','dispose','sheet','getStatus','UniverInstanceType','UniverProCollaborationClient','1em','get','univer-size-4','Module','createElement','UniverProCollaboration','univer-mb-3\x20univer-w-full\x20univer-text-sm','function','@univerjs/core','You\x27re\x20not\x20following\x20the\x20presenter','default','xlink:href','_unitID','UniverCollaborationClientPlugin','subscribe','type','mask','_stopPresenting','has','_handleNewChangeSets','IDLE','entries','forwardRef','Inject','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','_commandService','presenting','_presenter','url(#$1','touchDependencies','Stop\x20following','HEADER_MENU','getLiveShareCoordinator','button','displayName','complete','getMemberID','OPERATION','_handleTerminate','133qoaiZK','4468oEcAkM','47889rYSUBI','executeCommand','react','DependentOn','toDisposable','UNIVER_SHEET','FOLLOWING','registerComponent','_sharedOperations','not-following','Stop\x20presenting','LiveShareController','Fragment','getOwnPropertyDescriptor','UniverUi','OFFLINE','idle','LiveShareIcon','defineProperty','toString','LiveShareStatus','useEffect','live-share.config','includes','sessionStatus$','useRef','substring','startFollowing','_beIdle','forEach','CollaborationEvent','dispose$','PRESENTING'];_0x5656=function(){return _0x49fbaf;};return _0x5656();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.14-nightly.
|
|
3
|
+
"version": "0.10.14-nightly.202511070640",
|
|
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/
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets-ui": "0.10.14-nightly.
|
|
66
|
-
"@univerjs/ui": "0.10.14-nightly.
|
|
67
|
-
"@univerjs
|
|
60
|
+
"@univerjs-pro/collaboration": "0.10.14-nightly.202511070640",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.10.14-nightly.202511070640",
|
|
62
|
+
"@univerjs/core": "0.10.14-nightly.202511070640",
|
|
63
|
+
"@univerjs/design": "0.10.14-nightly.202511070640",
|
|
64
|
+
"@univerjs/engine-render": "0.10.14-nightly.202511070640",
|
|
65
|
+
"@univerjs/sheets-ui": "0.10.14-nightly.202511070640",
|
|
66
|
+
"@univerjs/ui": "0.10.14-nightly.202511070640",
|
|
67
|
+
"@univerjs/sheets": "0.10.14-nightly.202511070640"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|