@univerjs-pro/live-share 0.12.1-nightly.202511221011 → 0.12.2-nightly.202511241159
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 +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x59d2(_0x51cc14,_0x6f7c62){const _0x39dcfd=_0x39dc();return _0x59d2=function(_0x59d204,_0x2fba64){_0x59d204=_0x59d204-0xef;let _0x1cbb9e=_0x39dcfd[_0x59d204];return _0x1cbb9e;},_0x59d2(_0x51cc14,_0x6f7c62);}const _0x564283=_0x59d2;(function(_0x68a6ce,_0x3adb79){const _0x15091b=_0x59d2,_0x2cb8c7=_0x68a6ce();while(!![]){try{const _0x392c0a=parseInt(_0x15091b(0x108))/0x1+-parseInt(_0x15091b(0xf5))/0x2+-parseInt(_0x15091b(0xf0))/0x3*(parseInt(_0x15091b(0xf1))/0x4)+parseInt(_0x15091b(0x113))/0x5+-parseInt(_0x15091b(0x102))/0x6+parseInt(_0x15091b(0xfd))/0x7+parseInt(_0x15091b(0xfc))/0x8;if(_0x392c0a===_0x3adb79)break;else _0x2cb8c7['push'](_0x2cb8c7['shift']());}catch(_0x25c09d){_0x2cb8c7['push'](_0x2cb8c7['shift']());}}}(_0x39dc,0xb9a37));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[_0x564283(0x114)]{['_initialize'](_0x218f8d,_0x199b00,_0x36acb3,_0x3effae,_0x241828){const _0x2b279a=_0x564283,_0x4bc07c=_0x218f8d[_0x2b279a(0xfe)](n[_0x2b279a(0x110)]),_0x426967=_0x218f8d[_0x2b279a(0xfe)](g[_0x2b279a(0x107)]),_0x272103=_0x199b00['getUnitId'](),_0x3005a7=_0x199b00[_0x2b279a(0x10c)](),_0x2f20c2=_0x4bc07c[_0x2b279a(0x104)](_0x272103);(_0x2f20c2==null?void 0x0:_0x2f20c2[_0x2b279a(0x115)]())!==n[_0x2b279a(0xf6)][_0x2b279a(0x112)]||(_0x36acb3['getSheetId']()!==_0x3005a7[_0x2b279a(0x116)]()&&this[_0x2b279a(0xf2)][_0x2b279a(0xfa)](u[_0x2b279a(0x118)]['id'],{'unitId':_0x272103,'subUnitId':_0x36acb3[_0x2b279a(0x116)]()}),!_0x426967[_0x2b279a(0x117)](_0x272103))||_0x241828['syncExecuteCommand'](f[_0x2b279a(0x101)]['id'],{'unitId':_0x199b00[_0x2b279a(0xfb)](),'sheetId':_0x36acb3['getSheetId'](),'sheetViewStartRow':_0x3effae[_0x2b279a(0x103)],'sheetViewStartColumn':_0x3effae[_0x2b279a(0xf7)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x564283(0x114)][_0x564283(0x105)](w);class C extends a[_0x564283(0xf4)]{[_0x564283(0xff)](){const _0x58aae8=_0x564283;var _0x217541,_0x37ee93;const _0x2b10c4=this[_0x58aae8(0xf9)]['get'](n[_0x58aae8(0x110)]),_0x14f521=(_0x217541=this[_0x58aae8(0x10f)]())==null?void 0x0:_0x217541[_0x58aae8(0xef)]();if(!_0x14f521)throw new Error(_0x58aae8(0xf3));const _0x52b7b1=_0x2b10c4[_0x58aae8(0x104)](_0x14f521);return(_0x37ee93=_0x52b7b1==null?void 0x0:_0x52b7b1[_0x58aae8(0x115)]())!=null?_0x37ee93:n['LiveShareStatus'][_0x58aae8(0xf8)];}[_0x564283(0x10e)](){const _0x32d8af=_0x564283;var _0x3b98d4;const _0x22037a=this[_0x32d8af(0xf9)]['get'](n[_0x32d8af(0x110)]),_0x2e28f3=(_0x3b98d4=this[_0x32d8af(0x10f)]())==null?void 0x0:_0x3b98d4[_0x32d8af(0xef)]();if(!_0x2e28f3)throw new Error('No\x20active\x20workbook\x20found.');const _0x3aa055=_0x22037a['getLiveShareCoordinatorSync'](_0x2e28f3);if(!_0x3aa055)throw new Error(_0x32d8af(0x106));_0x3aa055[_0x32d8af(0x10e)]();}[_0x564283(0x10d)](){const _0x1d9b3b=_0x564283;var _0x177cab;const _0x2a0dcb=this['_injector']['get'](n['LiveShareController']),_0x4420fe=(_0x177cab=this[_0x1d9b3b(0x10f)]())==null?void 0x0:_0x177cab[_0x1d9b3b(0xef)]();if(!_0x4420fe)throw new Error('No\x20active\x20workbook\x20found.');const _0x32b032=_0x2a0dcb[_0x1d9b3b(0x104)](_0x4420fe);if(!_0x32b032)throw new Error(_0x1d9b3b(0x106));_0x32b032['stopFollowing']();}[_0x564283(0x10b)](){const _0x3334b9=_0x564283;var _0x3859de;const _0x5b60a8=this['_injector']['get'](n['LiveShareController']),_0x2c53ba=(_0x3859de=this['getActiveWorkbook']())==null?void 0x0:_0x3859de[_0x3334b9(0xef)]();if(!_0x2c53ba)throw new Error(_0x3334b9(0xf3));const _0x397a42=_0x5b60a8[_0x3334b9(0x104)](_0x2c53ba);if(!_0x397a42)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x397a42[_0x3334b9(0x100)]();}[_0x564283(0x109)](){const _0x2e143d=_0x564283;var _0x529d50;const _0x1796e8=this[_0x2e143d(0xf9)][_0x2e143d(0xfe)](n[_0x2e143d(0x110)]),_0xef289b=(_0x529d50=this['getActiveWorkbook']())==null?void 0x0:_0x529d50[_0x2e143d(0xef)]();if(!_0xef289b)throw new Error('No\x20active\x20workbook\x20found.');const _0x26f287=_0x1796e8['getLiveShareCoordinatorSync'](_0xef289b);if(!_0x26f287)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x26f287[_0x2e143d(0x109)]();}}a[_0x564283(0xf4)][_0x564283(0x105)](C);class L extends a[_0x564283(0x111)]{get[_0x564283(0x10a)](){const _0x4db785=_0x564283;return n[_0x4db785(0xf6)];}}function _0x39dc(){const _0x4eeb3f=['_commandService','No\x20active\x20workbook\x20found.','FUniver','43724VwbAdS','LiveShareStatus','startColumn','IDLE','_injector','executeCommand','getUnitId','855680fwsrBm','7193375RYsYWs','get','getLiveShareStatus','tryStartPresenting','SetScrollOperation','2721348gPRbZP','startRow','getLiveShareCoordinatorSync','extend','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','IRenderManagerService','1294151qFSOVW','stopPresenting','LiveShareStatusEnum','startPresenting','getActiveSheet','stopFollowing','startFollowing','getActiveWorkbook','LiveShareController','FEnum','PRESENTING','999120SjaSaX','FRange','getStatus','getSheetId','getRenderById','SetWorksheetActiveOperation','getId','165gEoBAj','101292uTiioo'];_0x39dc=function(){return _0x4eeb3f;};return _0x39dc();}a[_0x564283(0x111)][_0x564283(0x105)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x335e3f=_0x4ce9;(function(_0x1f213b,_0x2f7dc3){const _0x13cd7e=_0x4ce9,_0x3de973=_0x1f213b();while(!![]){try{const _0x719123=-parseInt(_0x13cd7e(0x1a9))/0x1*(-parseInt(_0x13cd7e(0x190))/0x2)+parseInt(_0x13cd7e(0x1b3))/0x3*(-parseInt(_0x13cd7e(0x205))/0x4)+-parseInt(_0x13cd7e(0x1f5))/0x5+parseInt(_0x13cd7e(0x1f8))/0x6+parseInt(_0x13cd7e(0x185))/0x7+parseInt(_0x13cd7e(0x210))/0x8*(parseInt(_0x13cd7e(0x1f6))/0x9)+parseInt(_0x13cd7e(0x239))/0xa;if(_0x719123===_0x2f7dc3)break;else _0x3de973['push'](_0x3de973['shift']());}catch(_0x568a4e){_0x3de973['push'](_0x3de973['shift']());}}}(_0x55fa,0x43071));var T=Object[_0x335e3f(0x24d)],U=(_0x2cd3d3,_0x131624,_0x41c942)=>_0x131624 in _0x2cd3d3?T(_0x2cd3d3,_0x131624,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41c942}):_0x2cd3d3[_0x131624]=_0x41c942,_=(_0x37f5df,_0x4dc7da,_0x550fcb)=>U(_0x37f5df,typeof _0x4dc7da!='symbol'?_0x4dc7da+'':_0x4dc7da,_0x550fcb);Object[_0x335e3f(0x24d)](exports,Symbol[_0x335e3f(0x225)],{'value':_0x335e3f(0x1ca)});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:_0x235b61,..._0xedc5e5}){const _0x4813f1=_0x335e3f,{icon:_0x25aad0,id:_0x52807a,className:_0x5d445,extend:_0x103403,..._0x476106}=_0xedc5e5,_0x13ecf6=(_0x4813f1(0x1b6)+_0x52807a+'\x20'+(_0x5d445||''))['trim'](),_0x381514=v[_0x4813f1(0x1d2)]('_'+H());return j(_0x25aad0,''+_0x52807a,{'defIds':_0x25aad0[_0x4813f1(0x1f9)],'idSuffix':_0x381514[_0x4813f1(0x1fd)]},{'ref':_0x235b61,'className':_0x13ecf6,..._0x476106},_0x103403);}function j(_0x5aeb00,_0x273af2,_0x5edc70,_0x57df21,_0x203064){const _0x478dba=_0x335e3f;return v[_0x478dba(0x207)](_0x5aeb00['tag'],{'key':_0x273af2,...y(_0x5aeb00,_0x5edc70,_0x203064),..._0x57df21},(F(_0x5aeb00,_0x5edc70)[_0x478dba(0x1d4)]||[])[_0x478dba(0x1c7)]((_0x23f294,_0xf03b57)=>j(_0x23f294,_0x273af2+'-'+_0x5aeb00['tag']+'-'+_0xf03b57,_0x5edc70,void 0x0,_0x203064)));}function y(_0x1a3d80,_0x428fb6,_0x4bfffe){const _0x5b3ce9=_0x335e3f,_0x2bd2d2={..._0x1a3d80[_0x5b3ce9(0x23b)]};_0x4bfffe!=null&&_0x4bfffe['colorChannel1']&&_0x2bd2d2[_0x5b3ce9(0x192)]===_0x5b3ce9(0x200)&&(_0x2bd2d2[_0x5b3ce9(0x192)]=_0x4bfffe[_0x5b3ce9(0x200)]),_0x1a3d80[_0x5b3ce9(0x21b)]==='mask'&&_0x2bd2d2['id']&&(_0x2bd2d2['id']=_0x2bd2d2['id']+_0x428fb6[_0x5b3ce9(0x222)]),Object[_0x5b3ce9(0x1eb)](_0x2bd2d2)[_0x5b3ce9(0x1a6)](([_0x4ccbb8,_0x37a7db])=>{const _0x55d601=_0x5b3ce9;_0x4ccbb8===_0x55d601(0x1d3)&&typeof _0x37a7db==_0x55d601(0x1fa)&&(_0x2bd2d2[_0x4ccbb8]=_0x37a7db[_0x55d601(0x209)](/url\(#(.*)\)/,_0x55d601(0x1d8)+_0x428fb6[_0x55d601(0x222)]+')'));});const {defIds:_0x55819d}=_0x428fb6;return!_0x55819d||_0x55819d[_0x5b3ce9(0x238)]===0x0||(_0x1a3d80[_0x5b3ce9(0x21b)]===_0x5b3ce9(0x1e2)&&_0x2bd2d2[_0x5b3ce9(0x1ed)]&&(_0x2bd2d2[_0x5b3ce9(0x1ed)]=_0x2bd2d2[_0x5b3ce9(0x1ed)]+_0x428fb6['idSuffix']),Object[_0x5b3ce9(0x1eb)](_0x2bd2d2)[_0x5b3ce9(0x1a6)](([_0x4cc2a4,_0x3a1206])=>{const _0x1408e6=_0x5b3ce9;typeof _0x3a1206==_0x1408e6(0x1fa)&&(_0x2bd2d2[_0x4cc2a4]=_0x3a1206[_0x1408e6(0x209)](/url\(#(.*)\)/,'url(#$1'+_0x428fb6[_0x1408e6(0x222)]+')'));})),_0x2bd2d2;}function F(_0x5ed592,_0x4e52a6){const _0x3065fa=_0x335e3f;var _0x51209e;const {defIds:_0xe52c6a}=_0x4e52a6;return!_0xe52c6a||_0xe52c6a['length']===0x0?_0x5ed592:_0x5ed592[_0x3065fa(0x21b)]===_0x3065fa(0x1fb)&&((_0x51209e=_0x5ed592[_0x3065fa(0x1d4)])!=null&&_0x51209e[_0x3065fa(0x238)])?{..._0x5ed592,'children':_0x5ed592['children']['map'](_0x531733=>typeof _0x531733[_0x3065fa(0x23b)]['id']==_0x3065fa(0x1fa)&&_0xe52c6a&&_0xe52c6a['includes'](_0x531733[_0x3065fa(0x23b)]['id'])?{..._0x531733,'attrs':{..._0x531733['attrs'],'id':_0x531733[_0x3065fa(0x23b)]['id']+_0x4e52a6[_0x3065fa(0x222)]}}:_0x531733)}:_0x5ed592;}function H(){const _0x4fd351=_0x335e3f;return Math[_0x4fd351(0x202)]()[_0x4fd351(0x198)](0x24)[_0x4fd351(0x1cd)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':_0x335e3f(0x1b0),'attrs':{'xmlns':_0x335e3f(0x1f2),'fill':_0x335e3f(0x218),'viewBox':_0x335e3f(0x237),'width':_0x335e3f(0x1ef),'height':_0x335e3f(0x1ef)},'children':[{'tag':_0x335e3f(0x193),'attrs':{'fill':_0x335e3f(0x219),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x335e3f(0x1a5),'fillRule':_0x335e3f(0x20e),'clipRule':'evenodd'}}]},R=v['forwardRef'](function(_0x4a463e,_0x2f099c){const _0x2d9aec=_0x335e3f;return v[_0x2d9aec(0x207)](x,Object[_0x2d9aec(0x24c)]({},_0x4a463e,{'id':_0x2d9aec(0x1c2),'ref':_0x2f099c,'icon':V}));});R[_0x335e3f(0x1ea)]=_0x335e3f(0x241);class E extends o['Disposable']{constructor(){const _0x343460=_0x335e3f;super(...arguments),_(this,_0x343460(0x1ab),new Set()),_(this,_0x343460(0x20d),new Set());}['registerSharedOperation'](_0x1a9390){const _0x5b1052=_0x335e3f;return this[_0x5b1052(0x1ab)][_0x5b1052(0x1da)](_0x1a9390),o['toDisposable'](()=>this[_0x5b1052(0x1ab)][_0x5b1052(0x206)](_0x1a9390));}[_0x335e3f(0x1be)](_0x4fad4d){const _0x226551=_0x335e3f;return this[_0x226551(0x20d)][_0x226551(0x1da)](_0x4fad4d),o[_0x226551(0x1e7)](()=>this['_reporters'][_0x226551(0x206)](_0x4fad4d));}[_0x335e3f(0x20a)](_0x30dfa2){const _0x7532e1=_0x335e3f;return this[_0x7532e1(0x1ab)][_0x7532e1(0x1aa)](_0x30dfa2);}[_0x335e3f(0x242)](_0x47cdec){const _0x12d038=_0x335e3f;return Array['from'](this[_0x12d038(0x20d)])[_0x12d038(0x1c7)](_0x1d4db6=>_0x1d4db6(_0x47cdec));}}var M=Object[_0x335e3f(0x19c)],P=(_0x35f868,_0x59d011,_0x15a52c,_0x14bdef)=>{const _0x4e351f=_0x335e3f;for(var _0xb43758=_0x14bdef>0x1?void 0x0:_0x14bdef?M(_0x59d011,_0x15a52c):_0x59d011,_0x579d5f=_0x35f868[_0x4e351f(0x238)]-0x1,_0x424a98;_0x579d5f>=0x0;_0x579d5f--)(_0x424a98=_0x35f868[_0x579d5f])&&(_0xb43758=_0x424a98(_0xb43758)||_0xb43758);return _0xb43758;},S=(_0x2073e8,_0x22ebae)=>(_0x2dc02f,_0x1fc569)=>_0x22ebae(_0x2dc02f,_0x1fc569,_0x2073e8);exports[_0x335e3f(0x18c)]=class extends o[_0x335e3f(0x19b)]{constructor(_0xc2d89c,_0x49229c,_0x1b0b51){const _0x11d212=_0x335e3f;super(),_(this,_0x11d212(0x1a4),new Map()),(this[_0x11d212(0x1a0)]=_0xc2d89c,this[_0x11d212(0x1e8)]=_0x49229c,this[_0x11d212(0x23e)]=_0x1b0b51,this[_0x11d212(0x1b4)]());}async[_0x335e3f(0x1f1)](_0x26eb28){const _0x431d5f=_0x335e3f;return this['_entities'][_0x431d5f(0x1aa)](_0x26eb28)||await this[_0x431d5f(0x19a)](_0x26eb28),this[_0x431d5f(0x1a4)][_0x431d5f(0x1bd)](_0x26eb28);}[_0x335e3f(0x1a7)](_0x3224c5){var _0x2c8259;return(_0x2c8259=this['_entities']['get'](_0x3224c5))!=null?_0x2c8259:null;}[_0x335e3f(0x1b4)](){const _0x3ad4f5=_0x335e3f;this[_0x3ad4f5(0x1a0)][_0x3ad4f5(0x196)](o[_0x3ad4f5(0x203)][_0x3ad4f5(0x247)])[_0x3ad4f5(0x201)](I[_0x3ad4f5(0x21f)](this[_0x3ad4f5(0x227)]))['subscribe'](async _0x2f1aee=>{const _0x44a92e=_0x3ad4f5,_0x122aa2=_0x2f1aee['getUnitId']();this[_0x44a92e(0x1a4)]['has'](_0x122aa2)||this[_0x44a92e(0x19a)](_0x122aa2);}),this['_univerInstanceService'][_0x3ad4f5(0x1d9)](o[_0x3ad4f5(0x203)][_0x3ad4f5(0x247)])['pipe'](I[_0x3ad4f5(0x21f)](this[_0x3ad4f5(0x227)]))[_0x3ad4f5(0x23f)](_0x4939c4=>{const _0x253aa5=_0x3ad4f5,_0xd0726d=_0x4939c4[_0x253aa5(0x1d5)](),_0x25f580=this[_0x253aa5(0x1a4)][_0x253aa5(0x1bd)](_0xd0726d);_0x25f580==null||_0x25f580[_0x253aa5(0x204)]();});}async[_0x335e3f(0x19a)](_0x1858e5){const _0x15ed20=_0x335e3f,_0xa54df1=await this[_0x15ed20(0x23e)][_0x15ed20(0x1e5)](_0x1858e5),_0x2ec1b5=this[_0x15ed20(0x1e8)][_0x15ed20(0x214)](exports[_0x15ed20(0x1de)],_0x1858e5,_0xa54df1);return _0x2ec1b5[_0x15ed20(0x1ac)](),this[_0x15ed20(0x1a4)][_0x15ed20(0x195)](_0x1858e5,_0x2ec1b5),_0x2ec1b5;}},exports[_0x335e3f(0x18c)]=P([S(0x0,o[_0x335e3f(0x236)]),S(0x1,o[_0x335e3f(0x1b9)](o[_0x335e3f(0x191)])),S(0x2,o['Inject'](b['CollaborationSessionService']))],exports['LiveShareController']);var u=(_0x4bc884=>(_0x4bc884[_0x335e3f(0x18b)]=_0x335e3f(0x24b),_0x4bc884['IDLE']=_0x335e3f(0x250),_0x4bc884['FOLLOWING']=_0x335e3f(0x1d0),_0x4bc884[_0x335e3f(0x1bc)]=_0x335e3f(0x1ba),_0x4bc884[_0x335e3f(0x18a)]=_0x335e3f(0x1ec),_0x4bc884))(u||{});const k=_0x335e3f(0x1ad),q=0xc8;exports[_0x335e3f(0x1de)]=class extends o['RxDisposable']{constructor(_0xe3ad91,_0x57554e,_0xb923b1,_0xa96d27,_0x5c1134){const _0xe0ece4=_0x335e3f;super(),_(this,'_status$',new O['BehaviorSubject'](_0xe0ece4(0x250))),_(this,_0xe0ece4(0x1cb),this[_0xe0ece4(0x18e)]['asObservable']()),_(this,_0xe0ece4(0x1b4),!0x1),_(this,_0xe0ece4(0x24a),null),_(this,'_presenter',null),(this[_0xe0ece4(0x1d7)]=_0xe3ad91,this[_0xe0ece4(0x1c5)]=_0x57554e,this[_0xe0ece4(0x221)]=_0xb923b1,this[_0xe0ece4(0x1c1)]=_0xa96d27,this[_0xe0ece4(0x213)]=_0x5c1134);}get[_0x335e3f(0x1bf)](){const _0x435b6f=_0x335e3f;return this['_status$'][_0x435b6f(0x1e1)]();}['dispose'](){const _0x364cd1=_0x335e3f;var _0x438aa9;(_0x438aa9=this[_0x364cd1(0x24a)])==null||_0x438aa9[_0x364cd1(0x204)](),this[_0x364cd1(0x18e)][_0x364cd1(0x251)](_0x364cd1(0x250)),this[_0x364cd1(0x18e)][_0x364cd1(0x23c)]();}['getStatus'](){return this['_status'];}[_0x335e3f(0x1ac)](){const _0x4eac70=_0x335e3f;this[_0x4eac70(0x1b4)]||(this[_0x4eac70(0x1b4)]=!0x0,this['_collabSession']['sessionStatus$'][_0x4eac70(0x201)](I[_0x4eac70(0x21f)](this[_0x4eac70(0x227)]))[_0x4eac70(0x23f)](_0x3a07a5=>{const _0x560506=_0x4eac70;switch(_0x3a07a5){case b[_0x560506(0x22f)]['OFFLINE']:this[_0x560506(0x1ae)]();break;case b[_0x560506(0x22f)]['ONLINE']:this[_0x560506(0x1e0)]();break;}}),this[_0x4eac70(0x1c5)][_0x4eac70(0x1f4)][_0x4eac70(0x201)](I[_0x4eac70(0x21f)](this[_0x4eac70(0x227)]))[_0x4eac70(0x23f)](_0x1a0916=>{const _0x14d141=_0x4eac70,{eventID:_0x4094ca}=_0x1a0916;switch(_0x4094ca){case d['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x14d141(0x248)](_0x1a0916);break;case d[_0x14d141(0x20c)][_0x14d141(0x1cc)]:this[_0x14d141(0x233)](_0x1a0916);break;case d[_0x14d141(0x20c)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case d['CollaborationEvent']['NEW_CHANGESETS']:this[_0x14d141(0x1dd)](_0x1a0916);break;}}));}[_0x335e3f(0x1ee)](){const _0x45a843=_0x335e3f;this[_0x45a843(0x1c5)]['send']({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x45a843(0x1d7)],'userID':this[_0x45a843(0x1c5)][_0x45a843(0x1a2)]()}},this[_0x45a843(0x1d7)]);}[_0x335e3f(0x246)](){const _0x5a0e2d=_0x335e3f;this[_0x5a0e2d(0x1bf)]==='presenting'&&(this[_0x5a0e2d(0x18e)][_0x5a0e2d(0x251)](_0x5a0e2d(0x250)),this[_0x5a0e2d(0x1c5)][_0x5a0e2d(0x188)]({'eventID':d[_0x5a0e2d(0x20c)][_0x5a0e2d(0x1f0)],'data':{'unitID':this['_unitID']}},this[_0x5a0e2d(0x1d7)]));}['startFollowing'](){const _0x3877e3=_0x335e3f;this[_0x3877e3(0x1bf)]===_0x3877e3(0x1ba)&&(this['_status$']['next'](_0x3877e3(0x1d0)),this[_0x3877e3(0x215)]());}[_0x335e3f(0x244)](){const _0x394aec=_0x335e3f;this[_0x394aec(0x1bf)]===_0x394aec(0x1d0)&&this[_0x394aec(0x223)]();}[_0x335e3f(0x248)](_0x482973){const _0x1fcab6=_0x335e3f,{presenter:_0xd7bab8}=_0x482973['data'],_0x33c1b1=this[_0x1fcab6(0x1c5)]['getMemberID']();this[_0x1fcab6(0x24e)]=_0xd7bab8,_0xd7bab8===_0x33c1b1?(this[_0x1fcab6(0x223)](),this['_startPresenting']()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x1fcab6(0x215)]());}[_0x335e3f(0x1d1)](){const _0x3a75fb=_0x335e3f,_0x4d48de={'eventID':d[_0x3a75fb(0x20c)][_0x3a75fb(0x186)]};this[_0x3a75fb(0x1c5)]['send'](_0x4d48de,this[_0x3a75fb(0x1d7)]);}['_handleTerminate'](){const _0x812121=_0x335e3f;this[_0x812121(0x24e)]=null,this[_0x812121(0x1bf)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x24b0ba){const _0x5c0e1a=_0x335e3f;if(this[_0x5c0e1a(0x1bf)]==='following'&&this[_0x5c0e1a(0x24e)]===_0x24b0ba['data']['memberID']){const _0x1ddf77=d['parseProtocolChangeset'](_0x24b0ba[_0x5c0e1a(0x1b7)])['mutations']['reverse']()[_0x5c0e1a(0x1c8)](_0x37c75a=>_0x37c75a['id']===C[_0x5c0e1a(0x197)]['id']);if(_0x1ddf77){const _0x2ca69b=_0x1ddf77[_0x5c0e1a(0x21a)][_0x5c0e1a(0x1fe)],_0x489e2a=_0x1ddf77['params'][_0x5c0e1a(0x1b1)]['id'];setTimeout(()=>{const _0x15633a=_0x5c0e1a;this[_0x15633a(0x213)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x2ca69b,'subUnitId':_0x489e2a},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x57086e=_0x335e3f;this[_0x57086e(0x18e)]['next'](_0x57086e(0x1ec));const _0x50711f=new Map(),_0x4ea4c7=this[_0x57086e(0x24a)]=new o[(_0x57086e(0x243))]();_0x4ea4c7[_0x57086e(0x1da)](o[_0x57086e(0x1e7)](()=>{const _0x15605c=_0x57086e;_0x50711f[_0x15605c(0x1a6)](_0x56436b=>_0x56436b['complete']()),_0x50711f['clear']();})),_0x4ea4c7[_0x57086e(0x1da)](this[_0x57086e(0x213)][_0x57086e(0x22a)](_0x3712c6=>{const _0x41ad4c=_0x57086e;var _0x3b04c9;if(_0x3712c6['type']!==o['CommandType'][_0x41ad4c(0x1c3)]||!this[_0x41ad4c(0x1c1)][_0x41ad4c(0x20a)](_0x3712c6['id']))return;const {id:_0x3e3221}=_0x3712c6;let _0x2a6281;_0x50711f[_0x41ad4c(0x1aa)](_0x3e3221)?_0x2a6281=_0x50711f[_0x41ad4c(0x1bd)](_0x3e3221):(_0x2a6281=new O[(_0x41ad4c(0x199))](),_0x50711f[_0x41ad4c(0x195)](_0x3e3221,_0x2a6281),_0x2a6281[_0x41ad4c(0x201)](I['throttleTime']((_0x3b04c9=this[_0x41ad4c(0x221)][_0x41ad4c(0x1f7)](k))!=null?_0x3b04c9:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x41ad4c(0x23f)](_0x333549=>{const _0x66f188=_0x41ad4c;this['_collabSession'][_0x66f188(0x188)]({'eventID':d[_0x66f188(0x20c)][_0x66f188(0x1cc)],'data':{'unitID':this[_0x66f188(0x1d7)],'operations':{[_0x333549['id']]:{'id':_0x333549['id'],'params':JSON[_0x66f188(0x230)](_0x333549[_0x66f188(0x21a)])}}}},this[_0x66f188(0x1d7)]);})),_0x2a6281[_0x41ad4c(0x251)](_0x3712c6);})),this['_liveShareService'][_0x57086e(0x242)](this[_0x57086e(0x1d7)])[_0x57086e(0x1a6)](_0x434d81=>this[_0x57086e(0x1c5)][_0x57086e(0x188)]({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x57086e(0x1d7)],'operations':{[_0x434d81['id']]:{'id':_0x434d81['id'],'params':JSON[_0x57086e(0x230)](_0x434d81[_0x57086e(0x21a)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x2f750e=_0x335e3f;var _0x12341b;this[_0x2f750e(0x18e)][_0x2f750e(0x251)](_0x2f750e(0x250)),(_0x12341b=this[_0x2f750e(0x24a)])==null||_0x12341b[_0x2f750e(0x204)](),this['_commandDisposable']=null;}[_0x335e3f(0x215)](){const _0x15f641=_0x335e3f;var _0x4da1e6;(_0x4da1e6=this[_0x15f641(0x24a)])==null||_0x4da1e6[_0x15f641(0x204)](),this[_0x15f641(0x18e)][_0x15f641(0x251)](_0x15f641(0x1d0));}[_0x335e3f(0x234)](){const _0x57f77a=_0x335e3f;var _0x534cb9;this['_status$']['next'](_0x57f77a(0x250)),(_0x534cb9=this['_commandDisposable'])==null||_0x534cb9[_0x57f77a(0x204)](),this[_0x57f77a(0x24a)]=null;}['_stopFollowing'](){const _0x9b47d1=_0x335e3f;var _0x40739e;this[_0x9b47d1(0x18e)]['next'](_0x9b47d1(0x1ba)),(_0x40739e=this[_0x9b47d1(0x24a)])==null||_0x40739e[_0x9b47d1(0x204)]();}[_0x335e3f(0x233)](_0x53c5ae){const _0x59fcd0=_0x335e3f;if([_0x59fcd0(0x1ec),_0x59fcd0(0x1ba),_0x59fcd0(0x24b)][_0x59fcd0(0x1cf)](this[_0x59fcd0(0x1bf)])||!_0x53c5ae[_0x59fcd0(0x1b7)][_0x59fcd0(0x1c6)]||_0x53c5ae[_0x59fcd0(0x1b7)][_0x59fcd0(0x1c6)]===this[_0x59fcd0(0x1c5)][_0x59fcd0(0x1a2)]())return;this['_status']===_0x59fcd0(0x250)&&this[_0x59fcd0(0x215)]();const _0x3cb6d8=_0x53c5ae[_0x59fcd0(0x1b7)]['operations'];Object[_0x59fcd0(0x1df)](_0x3cb6d8)[_0x59fcd0(0x1a6)](_0x460078=>{const _0x565d19=_0x59fcd0;this['_commandService'][_0x565d19(0x211)](_0x460078['id'],_0x460078[_0x565d19(0x21a)]?JSON['parse'](_0x460078['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2deeaf=_0x335e3f;var _0x1d2678;this['_status$'][_0x2deeaf(0x251)](_0x2deeaf(0x24b)),(_0x1d2678=this[_0x2deeaf(0x24a)])==null||_0x1d2678[_0x2deeaf(0x204)]();}['_handleOnline'](){const _0x45bbb7=_0x335e3f;this['_status$'][_0x45bbb7(0x251)](_0x45bbb7(0x250)),this['_fetchOperations']();}},exports[_0x335e3f(0x1de)]=P([S(0x2,o[_0x335e3f(0x24f)]),S(0x3,o[_0x335e3f(0x1b9)](E)),S(0x4,o[_0x335e3f(0x1af)])],exports[_0x335e3f(0x1de)]);function $(){const _0x465c12=_0x335e3f,_0x58c52e=p[_0x465c12(0x1a8)](exports['LiveShareController']),_0x21e304=p[_0x465c12(0x1a8)](o[_0x465c12(0x236)]),_0x4b3c32=p[_0x465c12(0x1fc)](()=>_0x21e304[_0x465c12(0x19f)](o[_0x465c12(0x203)][_0x465c12(0x247)]),void 0x0,!0x1,[]),[_0x4847f0,_0xfb3b85]=v[_0x465c12(0x1f3)](null),[_0x519532,_0x45ba0f]=v['useState'](u[_0x465c12(0x217)]),_0x522bac=v[_0x465c12(0x1d2)](null);return v[_0x465c12(0x216)](()=>(_0x4b3c32&&_0x58c52e[_0x465c12(0x1f1)](_0x4b3c32[_0x465c12(0x1d5)]())[_0x465c12(0x21e)](_0x2bfbc9=>{const _0x27481a=_0x465c12;_0xfb3b85(_0x2bfbc9),_0x522bac[_0x27481a(0x1fd)]=_0x2bfbc9['status$'][_0x27481a(0x23f)](_0x5a6bcc=>{_0x45ba0f(_0x5a6bcc);});}),()=>{const _0x1f08b1=_0x465c12;var _0xe43714;(_0xe43714=_0x522bac[_0x1f08b1(0x1fd)])==null||_0xe43714[_0x1f08b1(0x232)](),_0x522bac[_0x1f08b1(0x1fd)]=null;}),[_0x4b3c32,_0x58c52e]),_0x4847f0?l[_0x465c12(0x1c4)](f[_0x465c12(0x1c0)],{'align':_0x465c12(0x1b2),'disabled':_0x519532===u[_0x465c12(0x18b)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x465c12(0x1c4)](W,{'status':_0x519532,'coordinator':_0x4847f0}),'children':l[_0x465c12(0x1c4)](_0x465c12(0x245),{'className':f['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x519532===u[_0x465c12(0x18b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x519532!==u[_0x465c12(0x18b)]}),'type':'button','children':l[_0x465c12(0x1c4)](R,{'className':_0x465c12(0x240)})})}):null;}function W(_0x4c50d7){const _0xfdbe9b=_0x335e3f,{status:_0x25dd6f,coordinator:_0x36f486}=_0x4c50d7;switch(_0x25dd6f){case u[_0xfdbe9b(0x217)]:return l[_0xfdbe9b(0x1c4)](G,{'coordinator':_0x36f486});case u[_0xfdbe9b(0x21c)]:return l[_0xfdbe9b(0x1c4)](B,{'coordinator':_0x36f486});case u[_0xfdbe9b(0x1bc)]:return l[_0xfdbe9b(0x1c4)](Y,{'coordinator':_0x36f486});case u[_0xfdbe9b(0x18b)]:return l[_0xfdbe9b(0x1c4)](J,{});case u[_0xfdbe9b(0x18a)]:return l[_0xfdbe9b(0x1c4)](Z,{'coordinator':_0x36f486});default:return null;}}function G(_0x45cb02){const _0x1fee8e=_0x335e3f,{coordinator:_0x42716f}=_0x45cb02;return l[_0x1fee8e(0x1ce)](l[_0x1fee8e(0x189)],{'children':[l[_0x1fee8e(0x1c4)](_0x1fee8e(0x23a),{'className':_0x1fee8e(0x22c),'children':_0x1fee8e(0x231)}),l[_0x1fee8e(0x1c4)](f[_0x1fee8e(0x228)],{'onClick':()=>_0x42716f[_0x1fee8e(0x1ee)](),'children':_0x1fee8e(0x208)})]});}function B(_0x55981c){const _0xd213d9=_0x335e3f,{coordinator:_0x2354ae}=_0x55981c;return l[_0xd213d9(0x1ce)](l[_0xd213d9(0x189)],{'children':[l[_0xd213d9(0x1c4)]('div',{'className':_0xd213d9(0x22c),'children':_0xd213d9(0x235)}),l['jsx'](f[_0xd213d9(0x228)],{'onClick':()=>_0x2354ae[_0xd213d9(0x244)](),'children':_0xd213d9(0x18f)})]});}function Y(_0x3280fd){const _0x546db4=_0x335e3f,{coordinator:_0x3dd81d}=_0x3280fd;return l[_0x546db4(0x1ce)](l[_0x546db4(0x189)],{'children':[l[_0x546db4(0x1c4)](_0x546db4(0x23a),{'className':_0x546db4(0x22c),'children':_0x546db4(0x22e)}),l[_0x546db4(0x1c4)](f[_0x546db4(0x228)],{'variant':_0x546db4(0x20b),'onClick':()=>_0x3dd81d[_0x546db4(0x212)](),'children':_0x546db4(0x1e9)})]});}function Z(_0xf03ade){const _0x2a119e=_0x335e3f,{coordinator:_0x4ef572}=_0xf03ade;return l[_0x2a119e(0x1ce)](l[_0x2a119e(0x189)],{'children':[l[_0x2a119e(0x1c4)]('div',{'className':_0x2a119e(0x22c),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x2a119e(0x1c4)](f[_0x2a119e(0x228)],{'variant':_0x2a119e(0x1b8),'onClick':()=>_0x4ef572['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x55fa(){const _0x195d24=['univer-mb-3\x20univer-w-full\x20univer-text-sm','type','You\x27re\x20not\x20following\x20the\x20presenter','SessionStatus','stringify','Present\x20this\x20document','unsubscribe','_handleOperation','_beIdle','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','0\x200\x2017\x2017','length','1222190NorTIN','div','attrs','complete','Disposable','_collabSessionService','subscribe','univer-size-4','LiveShareIcon','getInitialStates','DisposableCollection','stopFollowing','button','stopPresenting','UNIVER_SHEET','_handleNewHost','HEADER_MENU','_commandDisposable','offline','assign','defineProperty','_presenter','IConfigService','idle','next','UNIVER_LIVE_SHARE_PLUGIN','269871OMyEyY','LIVESHARE_FETCH_OPERATIONS','mergeOverrideWithDependencies','send','Fragment','PRESENTING','OFFLINE','LiveShareController','touchDependencies','_status$','Stop\x20following','2XOaOWc','Injector','fill','path','disposeWithMe','set','getTypeOfUnitAdded$','InsertSheetMutation','toString','Subject','_startLiveShareCoordinator','RxDisposable','getOwnPropertyDescriptor','registerSharedOperation','_config','getCurrentTypeOfUnit$','_univerInstanceService','SetWorksheetActiveOperation','getMemberID','live-share.config','_entities','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','forEach','getLiveShareCoordinatorSync','useDependency','52878RfgYDx','has','_sharedOperations','init','SAME_OPERATION_SHARE_INTERVAL','_handleOffline','ICommandService','svg','sheet','end','3LqTQOt','_init','_uiPartsService','univerjs-icon\x20univerjs-icon-','data','default','Inject','not-following','LiveShareService','NOT_FOLLOWING','get','registerInitialStateReporter','_status','Dropdown','_liveShareService','live-share-icon','OPERATION','jsx','_collabSession','presenter','map','find','_mountLiveShare','Module','status$','LIVESHARE_OPERATION','substring','jsxs','includes','following','_fetchOperations','useRef','mask','children','getUnitId','IUIPartsService','_unitID','url(#$1','getTypeOfUnitDisposed$','add','onRendered','setConfig','_handleNewChangeSets','LiveShareCoordinator','values','_handleOnline','getValue','use','connectInjector','DesktopLiveShareController','requireSession','override','toDisposable','_injector','Start\x20following','displayName','entries','presenting','xlink:href','tryStartPresenting','1em','LIVESHARE_TERMINATE','getLiveShareCoordinator','http://www.w3.org/2000/svg','useState','event$','2585380kokgNa','423QgGqTr','getConfig','1355262tjgijb','defIds','string','defs','useObservable','current','unitId','DependentOn','colorChannel1','pipe','random','UniverInstanceType','dispose','462412YwZBKR','delete','createElement','Start','replace','shouldShareOperation','text','CollaborationEvent','_reporters','evenodd','LiveShareStatus','79608UYDaam','executeCommand','startFollowing','_commandService','createInstance','_startFollowing','useEffect','IDLE','none','currentColor','params','tag','FOLLOWING','registerDependencies','then','takeUntil','UNIVER_UNKNOWN','_configService','idSuffix','_stopFollowing','UniverCollaborationClientPlugin','toStringTag','UniverLiveSharePlugin','dispose$','Button','symbol','onCommandExecuted','merge'];_0x55fa=function(){return _0x195d24;};return _0x55fa();}function J(){const _0x2a8be5=_0x335e3f;return l[_0x2a8be5(0x1c4)](l[_0x2a8be5(0x189)],{'children':'You\x27are\x20offline.'});}var K=Object['getOwnPropertyDescriptor'],z=(_0xbc2349,_0x5cfb31,_0x14845,_0x57fe07)=>{const _0x4db956=_0x335e3f;for(var _0x6b3eca=_0x57fe07>0x1?void 0x0:_0x57fe07?K(_0x5cfb31,_0x14845):_0x5cfb31,_0x4ed0a5=_0xbc2349[_0x4db956(0x238)]-0x1,_0x51d53c;_0x4ed0a5>=0x0;_0x4ed0a5--)(_0x51d53c=_0xbc2349[_0x4ed0a5])&&(_0x6b3eca=_0x51d53c(_0x6b3eca)||_0x6b3eca);return _0x6b3eca;},L=(_0x260c27,_0x561f40)=>(_0x328910,_0x34c874)=>_0x561f40(_0x328910,_0x34c874,_0x260c27);exports[_0x335e3f(0x1e4)]=class extends o['Disposable']{constructor(_0x3aaa2d,_0x7558f0){const _0x2c64a9=_0x335e3f;super(),this[_0x2c64a9(0x1e8)]=_0x3aaa2d,this[_0x2c64a9(0x1b5)]=_0x7558f0,this[_0x2c64a9(0x1c9)]();}[_0x335e3f(0x1c9)](){const _0x3262bc=_0x335e3f;this[_0x3262bc(0x194)](this['_uiPartsService']['registerComponent'](p['BuiltInUIPart'][_0x3262bc(0x249)],()=>p[_0x3262bc(0x1e3)]($,this['_injector'])));}},exports[_0x335e3f(0x1e4)]=z([L(0x0,o[_0x335e3f(0x1b9)](o[_0x335e3f(0x191)])),L(0x1,p[_0x335e3f(0x1d6)])],exports['DesktopLiveShareController']);const Q=_0x335e3f(0x1a3),w={};function _0x4ce9(_0x30666b,_0x4dbdb3){const _0x55fa89=_0x55fa();return _0x4ce9=function(_0x4ce91e,_0x25f808){_0x4ce91e=_0x4ce91e-0x184;let _0x3deaeb=_0x55fa89[_0x4ce91e];return _0x3deaeb;},_0x4ce9(_0x30666b,_0x4dbdb3);}var X=Object[_0x335e3f(0x19c)],ee=(_0x9b829c,_0x211765,_0x2f86a1,_0x35ef56)=>{const _0x2f7c84=_0x335e3f;for(var _0x3880ac=_0x35ef56>0x1?void 0x0:_0x35ef56?X(_0x211765,_0x2f86a1):_0x211765,_0x2bc75a=_0x9b829c[_0x2f7c84(0x238)]-0x1,_0x4ebeb8;_0x2bc75a>=0x0;_0x2bc75a--)(_0x4ebeb8=_0x9b829c[_0x2bc75a])&&(_0x3880ac=_0x4ebeb8(_0x3880ac)||_0x3880ac);return _0x3880ac;},te=(_0x52aaa0,_0x4a3d0d)=>(_0x164af9,_0x587066)=>_0x4a3d0d(_0x164af9,_0x587066,_0x52aaa0);let m=class extends o[_0x335e3f(0x23d)]{constructor(_0x1822b7){const _0x1b9fc6=_0x335e3f;super(),this[_0x1b9fc6(0x1c1)]=_0x1822b7,this[_0x1b9fc6(0x1b4)]();}[_0x335e3f(0x1b4)](){const _0xe5129c=_0x335e3f;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0xe5129c(0x1a1)]['id']][_0xe5129c(0x1a6)](_0x1ec6b2=>{const _0xfcd2b1=_0xe5129c;this[_0xfcd2b1(0x194)](this[_0xfcd2b1(0x1c1)][_0xfcd2b1(0x19d)](_0x1ec6b2));});}};m=ee([te(0x0,o[_0x335e3f(0x1b9)](E))],m);var ie=Object[_0x335e3f(0x24d)],se=Object[_0x335e3f(0x19c)],ne=(_0x15a97b,_0x22879f,_0xe90704)=>_0x22879f in _0x15a97b?ie(_0x15a97b,_0x22879f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe90704}):_0x15a97b[_0x22879f]=_0xe90704,re=(_0x14641e,_0x21ded4,_0x34a455,_0xa2339d)=>{for(var _0x443db5=_0xa2339d>0x1?void 0x0:_0xa2339d?se(_0x21ded4,_0x34a455):_0x21ded4,_0xec3245=_0x14641e['length']-0x1,_0x41ccd3;_0xec3245>=0x0;_0xec3245--)(_0x41ccd3=_0x14641e[_0xec3245])&&(_0x443db5=_0x41ccd3(_0x443db5)||_0x443db5);return _0x443db5;},N=(_0x50944c,_0xf09363)=>(_0x13b97f,_0x487bba)=>_0xf09363(_0x13b97f,_0x487bba,_0x50944c),A=(_0x3db79a,_0x206f12,_0x146558)=>ne(_0x3db79a,typeof _0x206f12!=_0x335e3f(0x229)?_0x206f12+'':_0x206f12,_0x146558);const oe=_0x335e3f(0x184);exports[_0x335e3f(0x226)]=class extends o['Plugin']{constructor(_0x6aea2=w,_0x3c87af,_0x3e8a3d){const _0x33d785=_0x335e3f;super(),this[_0x33d785(0x19e)]=_0x6aea2,this[_0x33d785(0x1e8)]=_0x3c87af,this['_configService']=_0x3e8a3d;const {..._0x4acc32}=o[_0x33d785(0x22b)]({},w,this['_config']);this[_0x33d785(0x221)][_0x33d785(0x1dc)](Q,_0x4acc32);}['onStarting'](){const _0x149383=_0x335e3f;o[_0x149383(0x21d)](this[_0x149383(0x1e8)],o[_0x149383(0x187)]([[E],[exports[_0x149383(0x18c)]],[m],[exports[_0x149383(0x1e4)]]],this['_config'][_0x149383(0x1e6)])),o[_0x149383(0x18d)](this[_0x149383(0x1e8)],[[m]]);}[_0x335e3f(0x1db)](){const _0x4483c0=_0x335e3f;o[_0x4483c0(0x18d)](this[_0x4483c0(0x1e8)],[[exports[_0x4483c0(0x1e4)]]]);}},A(exports['UniverLiveSharePlugin'],_0x335e3f(0x22d),o[_0x335e3f(0x203)][_0x335e3f(0x220)]),A(exports[_0x335e3f(0x226)],'pluginName',oe),exports[_0x335e3f(0x226)]=re([o[_0x335e3f(0x1ff)](b[_0x335e3f(0x224)]),N(0x1,o[_0x335e3f(0x1b9)](o['Injector'])),N(0x2,o['IConfigService'])],exports['UniverLiveSharePlugin']),exports['LiveShare']=$,exports[_0x335e3f(0x1bb)]=E,exports[_0x335e3f(0x20f)]=u;
|
|
1
|
+
'use strict';const _0x5d632=_0x4e15;(function(_0x4a869e,_0x535617){const _0x2a22a=_0x4e15,_0x8c3e32=_0x4a869e();while(!![]){try{const _0x10398b=parseInt(_0x2a22a(0xf2))/0x1+parseInt(_0x2a22a(0x168))/0x2+parseInt(_0x2a22a(0x171))/0x3+parseInt(_0x2a22a(0xd0))/0x4*(-parseInt(_0x2a22a(0x157))/0x5)+-parseInt(_0x2a22a(0x136))/0x6*(-parseInt(_0x2a22a(0x120))/0x7)+-parseInt(_0x2a22a(0x172))/0x8*(-parseInt(_0x2a22a(0xe3))/0x9)+parseInt(_0x2a22a(0x165))/0xa*(-parseInt(_0x2a22a(0x125))/0xb);if(_0x10398b===_0x535617)break;else _0x8c3e32['push'](_0x8c3e32['shift']());}catch(_0xa71c0f){_0x8c3e32['push'](_0x8c3e32['shift']());}}}(_0x6ff1,0x4afc6));function _0x4e15(_0x4e773f,_0x51237d){const _0x6ff168=_0x6ff1();return _0x4e15=function(_0x4e1575,_0x595ab9){_0x4e1575=_0x4e1575-0xad;let _0xf66ef=_0x6ff168[_0x4e1575];return _0xf66ef;},_0x4e15(_0x4e773f,_0x51237d);}function _0x6ff1(){const _0x2b8942=['_handleOnline','dispose','UniverLiveSharePlugin','_startLiveShareCoordinator','createInstance','LiveShare','url(#$1','Stop\x20following','button','assign','UniverIcon','pipe','Button','2069193hhwiSr','NOT_FOLLOWING','presenter','getLiveShareCoordinator','getUnitId','945395rgCpqf','type','operations','throttleTime','_handleOffline','Subject','univer-mb-3\x20univer-w-full\x20univer-text-sm','reverse','useRef','add','jsxs','onStarting','_configService','Fragment','_handleNewChangeSets','data','_presenter','12OcwVre','useObservable','_status','LiveShareCoordinator','UNIVER_LIVE_SHARE_PLUGIN','getOwnPropertyDescriptor','live-share-icon','map','trim','find','getValue','FOLLOWING','_handleNewHost','parse','IConfigService','has','SetWorksheetActiveOperation','LIVESHARE_FETCH_OPERATIONS','xlink:href','LIVESHARE_OPERATION','SessionStatus','_unitID','next','CollaborationEvent','Start','subscribe','_commandService','values','status$','mask','_beIdle','toStringTag','univer-size-4','5VktbEn','requireSession','Inject','_collabSessionService','takeUntil','_injector','onRendered','path','init','LiveShareIcon','_startPresenting','startFollowing','touchDependencies','event$','130VNFEul','RxDisposable','displayName','249280Atwqfv','IDLE','getMemberID','LIVESHARE_REQUEST_HOST','complete','registerSharedOperation','_status$','registerComponent','_collabSession','1569048iwgaAh','944mWIdTB','stopPresenting','following','from','end','UNIVER_SHEET','entries','_fetchOperations','Dropdown','UniverInstanceType','_stopPresenting','_init','setConfig','default','PRESENTING','_handleOperation','attrs','SetScrollOperation','get','Disposable','BehaviorSubject','params','symbol','getInitialStates','Injector','div','getLiveShareCoordinatorSync','memberID','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univerjs-icon\x20univerjs-icon-','tag','toString','colorChannel1','You\x27re\x20following\x20the\x20presenter','disposeWithMe','_reporters','_startFollowing','registerInitialStateReporter','forEach','You\x27are\x20offline.','replace','CommandType','tryStartPresenting','createElement','_mountLiveShare','string','_commandDisposable','evenodd','idSuffix','1956756HnEtjN','send','asObservable','You\x27re\x20not\x20following\x20the\x20presenter','stringify','_liveShareService','1em','defIds','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','getConfig','presenting','_entities','sheet','_config','useState','includes','offline','_handleTerminate','children','26901CkjxEg','DependentOn','getTypeOfUnitDisposed$','length','not-following','onCommandExecuted','useDependency','getStatus','stopFollowing','svg','_univerInstanceService','0\x200\x2017\x2017','NEW_CHANGESETS','shouldShareOperation','set','322060AesqzK','registerDependencies','clsx','jsx','live-share.config','_stopFollowing','parseProtocolChangeset','unsubscribe','UNIVER_UNKNOWN','DesktopLiveShareController','LiveShareStatus','idle','dispose$','IUIPartsService','executeCommand','toDisposable','Present\x20this\x20document','BuiltInUIPart','mergeOverrideWithDependencies','connectInjector','_sharedOperations','fill','substring','defs','current','ICommandService','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','defineProperty','delete','OFFLINE','text','random','LiveShareController'];_0x6ff1=function(){return _0x2b8942;};return _0x6ff1();}var T=Object['defineProperty'],U=(_0x1e3706,_0x4f0f74,_0x41f5ae)=>_0x4f0f74 in _0x1e3706?T(_0x1e3706,_0x4f0f74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41f5ae}):_0x1e3706[_0x4f0f74]=_0x41f5ae,_=(_0xd6e2a5,_0x3b1cce,_0x3011b5)=>U(_0xd6e2a5,typeof _0x3b1cce!=_0x5d632(0xb5)?_0x3b1cce+'':_0x3b1cce,_0x3011b5);Object[_0x5d632(0x10d)](exports,Symbol[_0x5d632(0x155)],{'value':'Module'});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:_0x93a927,..._0x377e2e}){const _0x29433f=_0x5d632,{icon:_0x46fc40,id:_0x7dc6a8,className:_0x4f70fc,extend:_0x42317e,..._0x47c288}=_0x377e2e,_0xd4f847=(_0x29433f(0xbc)+_0x7dc6a8+'\x20'+(_0x4f70fc||''))[_0x29433f(0x13e)](),_0x5565e9=v[_0x29433f(0x12d)]('_'+H());return j(_0x46fc40,''+_0x7dc6a8,{'defIds':_0x46fc40[_0x29433f(0xd7)],'idSuffix':_0x5565e9[_0x29433f(0x10a)]},{'ref':_0x93a927,'className':_0xd4f847,..._0x47c288},_0x42317e);}function j(_0x38330b,_0x1bcd0c,_0x481cd6,_0x220dc5,_0x1f6ee9){const _0x25ea5a=_0x5d632;return v[_0x25ea5a(0xca)](_0x38330b[_0x25ea5a(0xbd)],{'key':_0x1bcd0c,...y(_0x38330b,_0x481cd6,_0x1f6ee9),..._0x220dc5},(F(_0x38330b,_0x481cd6)[_0x25ea5a(0xe2)]||[])[_0x25ea5a(0x13d)]((_0x296504,_0x3bba0c)=>j(_0x296504,_0x1bcd0c+'-'+_0x38330b['tag']+'-'+_0x3bba0c,_0x481cd6,void 0x0,_0x1f6ee9)));}function y(_0x1ba36e,_0x2237fb,_0x517390){const _0x3dad28=_0x5d632,_0x114350={..._0x1ba36e[_0x3dad28(0xaf)]};_0x517390!=null&&_0x517390[_0x3dad28(0xbf)]&&_0x114350['fill']===_0x3dad28(0xbf)&&(_0x114350[_0x3dad28(0x107)]=_0x517390[_0x3dad28(0xbf)]),_0x1ba36e[_0x3dad28(0xbd)]===_0x3dad28(0x153)&&_0x114350['id']&&(_0x114350['id']=_0x114350['id']+_0x2237fb[_0x3dad28(0xcf)]),Object[_0x3dad28(0x178)](_0x114350)[_0x3dad28(0xc5)](([_0x1b6905,_0x465ce1])=>{const _0x21371b=_0x3dad28;_0x1b6905===_0x21371b(0x153)&&typeof _0x465ce1==_0x21371b(0xcc)&&(_0x114350[_0x1b6905]=_0x465ce1[_0x21371b(0xc7)](/url\(#(.*)\)/,_0x21371b(0x119)+_0x2237fb[_0x21371b(0xcf)]+')'));});const {defIds:_0x1df3bb}=_0x2237fb;return!_0x1df3bb||_0x1df3bb[_0x3dad28(0xe6)]===0x0||(_0x1ba36e['tag']==='use'&&_0x114350[_0x3dad28(0x148)]&&(_0x114350[_0x3dad28(0x148)]=_0x114350[_0x3dad28(0x148)]+_0x2237fb['idSuffix']),Object['entries'](_0x114350)[_0x3dad28(0xc5)](([_0x2e61ea,_0x4fa66e])=>{const _0xf4a3d3=_0x3dad28;typeof _0x4fa66e=='string'&&(_0x114350[_0x2e61ea]=_0x4fa66e['replace'](/url\(#(.*)\)/,_0xf4a3d3(0x119)+_0x2237fb[_0xf4a3d3(0xcf)]+')'));})),_0x114350;}function F(_0x4934fa,_0x1ee709){const _0x1147dc=_0x5d632;var _0x486bfd;const {defIds:_0x54e33c}=_0x1ee709;return!_0x54e33c||_0x54e33c['length']===0x0?_0x4934fa:_0x4934fa['tag']===_0x1147dc(0x109)&&((_0x486bfd=_0x4934fa[_0x1147dc(0xe2)])!=null&&_0x486bfd['length'])?{..._0x4934fa,'children':_0x4934fa[_0x1147dc(0xe2)][_0x1147dc(0x13d)](_0x42f3ed=>typeof _0x42f3ed[_0x1147dc(0xaf)]['id']==_0x1147dc(0xcc)&&_0x54e33c&&_0x54e33c[_0x1147dc(0xdf)](_0x42f3ed[_0x1147dc(0xaf)]['id'])?{..._0x42f3ed,'attrs':{..._0x42f3ed[_0x1147dc(0xaf)],'id':_0x42f3ed[_0x1147dc(0xaf)]['id']+_0x1ee709['idSuffix']}}:_0x42f3ed)}:_0x4934fa;}function H(){const _0x3778b9=_0x5d632;return Math[_0x3778b9(0x111)]()[_0x3778b9(0xbe)](0x24)[_0x3778b9(0x108)](0x2,0x8);}x[_0x5d632(0x167)]=_0x5d632(0x11d);const V={'tag':_0x5d632(0xec),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x5d632(0xee),'width':'1em','height':_0x5d632(0xd6)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x5d632(0xd8)}},{'tag':_0x5d632(0x15e),'attrs':{'fill':'currentColor','d':_0x5d632(0x10c),'fillRule':_0x5d632(0xce),'clipRule':_0x5d632(0xce)}}]},R=v['forwardRef'](function(_0x1a62dc,_0xbefea2){const _0x5d2501=_0x5d632;return v[_0x5d2501(0xca)](x,Object[_0x5d2501(0x11c)]({},_0x1a62dc,{'id':_0x5d2501(0x13c),'ref':_0xbefea2,'icon':V}));});R['displayName']=_0x5d632(0x160);class E extends o[_0x5d632(0xb2)]{constructor(){const _0x5ca527=_0x5d632;super(...arguments),_(this,_0x5ca527(0x106),new Set()),_(this,_0x5ca527(0xc2),new Set());}[_0x5d632(0x16d)](_0x24d6ff){const _0x3d5b98=_0x5d632;return this[_0x3d5b98(0x106)][_0x3d5b98(0x12e)](_0x24d6ff),o[_0x3d5b98(0x101)](()=>this[_0x3d5b98(0x106)]['delete'](_0x24d6ff));}[_0x5d632(0xc4)](_0x51763c){const _0x2cde0c=_0x5d632;return this['_reporters'][_0x2cde0c(0x12e)](_0x51763c),o[_0x2cde0c(0x101)](()=>this[_0x2cde0c(0xc2)][_0x2cde0c(0x10e)](_0x51763c));}['shouldShareOperation'](_0x57adc4){const _0x51c196=_0x5d632;return this['_sharedOperations'][_0x51c196(0x145)](_0x57adc4);}[_0x5d632(0xb6)](_0x174198){const _0x3f01d6=_0x5d632;return Array[_0x3f01d6(0x175)](this[_0x3f01d6(0xc2)])[_0x3f01d6(0x13d)](_0x4ef0e6=>_0x4ef0e6(_0x174198));}}var M=Object[_0x5d632(0x13b)],P=(_0x30249f,_0x473e08,_0x44b014,_0x21f790)=>{const _0x290be4=_0x5d632;for(var _0xc8c8f5=_0x21f790>0x1?void 0x0:_0x21f790?M(_0x473e08,_0x44b014):_0x473e08,_0x51e46f=_0x30249f[_0x290be4(0xe6)]-0x1,_0x5d3a91;_0x51e46f>=0x0;_0x51e46f--)(_0x5d3a91=_0x30249f[_0x51e46f])&&(_0xc8c8f5=_0x5d3a91(_0xc8c8f5)||_0xc8c8f5);return _0xc8c8f5;},S=(_0x3f6ee4,_0x108232)=>(_0x3826f7,_0x167552)=>_0x108232(_0x3826f7,_0x167552,_0x3f6ee4);exports[_0x5d632(0x112)]=class extends o[_0x5d632(0x166)]{constructor(_0x57839a,_0x4b6a1a,_0x4ace6a){const _0x1e6b04=_0x5d632;super(),_(this,_0x1e6b04(0xdb),new Map()),(this['_univerInstanceService']=_0x57839a,this[_0x1e6b04(0x15c)]=_0x4b6a1a,this[_0x1e6b04(0x15a)]=_0x4ace6a,this[_0x1e6b04(0x17d)]());}async[_0x5d632(0x123)](_0x5b5d9b){const _0x3a8cfa=_0x5d632;return this[_0x3a8cfa(0xdb)][_0x3a8cfa(0x145)](_0x5b5d9b)||await this[_0x3a8cfa(0x116)](_0x5b5d9b),this[_0x3a8cfa(0xdb)][_0x3a8cfa(0xb1)](_0x5b5d9b);}[_0x5d632(0xb9)](_0x467b02){const _0x5a7bc2=_0x5d632;var _0x1de308;return(_0x1de308=this[_0x5a7bc2(0xdb)]['get'](_0x467b02))!=null?_0x1de308:null;}[_0x5d632(0x17d)](){const _0x3bbf46=_0x5d632;this['_univerInstanceService']['getTypeOfUnitAdded$'](o['UniverInstanceType']['UNIVER_SHEET'])['pipe'](I[_0x3bbf46(0x15b)](this[_0x3bbf46(0xfe)]))[_0x3bbf46(0x14f)](async _0x44f3fc=>{const _0x265860=_0x3bbf46,_0x5847de=_0x44f3fc[_0x265860(0x124)]();this['_entities'][_0x265860(0x145)](_0x5847de)||this[_0x265860(0x116)](_0x5847de);}),this[_0x3bbf46(0xed)][_0x3bbf46(0xe5)](o[_0x3bbf46(0x17b)][_0x3bbf46(0x177)])[_0x3bbf46(0x11e)](I['takeUntil'](this['dispose$']))['subscribe'](_0x501a00=>{const _0x14187c=_0x3bbf46,_0x1cd56c=_0x501a00[_0x14187c(0x124)](),_0xf3773b=this[_0x14187c(0xdb)]['get'](_0x1cd56c);_0xf3773b==null||_0xf3773b['dispose']();});}async[_0x5d632(0x116)](_0xf13fcb){const _0x13b6c8=_0x5d632,_0x4dbf8e=await this[_0x13b6c8(0x15a)][_0x13b6c8(0x158)](_0xf13fcb),_0x1db66e=this[_0x13b6c8(0x15c)][_0x13b6c8(0x117)](exports['LiveShareCoordinator'],_0xf13fcb,_0x4dbf8e);return _0x1db66e['init'](),this[_0x13b6c8(0xdb)]['set'](_0xf13fcb,_0x1db66e),_0x1db66e;}},exports[_0x5d632(0x112)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x5d632(0x159)](o['Injector'])),S(0x2,o[_0x5d632(0x159)](b['CollaborationSessionService']))],exports[_0x5d632(0x112)]);var u=(_0x4103ef=>(_0x4103ef[_0x5d632(0x10f)]=_0x5d632(0xe0),_0x4103ef['IDLE']=_0x5d632(0xfd),_0x4103ef['FOLLOWING']=_0x5d632(0x174),_0x4103ef[_0x5d632(0x121)]=_0x5d632(0xe7),_0x4103ef[_0x5d632(0xad)]=_0x5d632(0xda),_0x4103ef))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x5d632(0x139)]=class extends o['RxDisposable']{constructor(_0x3c180f,_0x3bf817,_0x36b5fe,_0x51d7ed,_0x13ce29){const _0x44d0d6=_0x5d632;super(),_(this,_0x44d0d6(0x16e),new O[(_0x44d0d6(0xb3))]('idle')),_(this,_0x44d0d6(0x152),this['_status$'][_0x44d0d6(0xd2)]()),_(this,_0x44d0d6(0x17d),!0x1),_(this,_0x44d0d6(0xcd),null),_(this,'_presenter',null),(this[_0x44d0d6(0x14b)]=_0x3c180f,this['_collabSession']=_0x3bf817,this[_0x44d0d6(0x131)]=_0x36b5fe,this[_0x44d0d6(0xd5)]=_0x51d7ed,this['_commandService']=_0x13ce29);}get['_status'](){const _0x453cc3=_0x5d632;return this[_0x453cc3(0x16e)][_0x453cc3(0x140)]();}[_0x5d632(0x114)](){const _0x2c5c8f=_0x5d632;var _0x43be1f;(_0x43be1f=this['_commandDisposable'])==null||_0x43be1f[_0x2c5c8f(0x114)](),this[_0x2c5c8f(0x16e)][_0x2c5c8f(0x14c)](_0x2c5c8f(0xfd)),this[_0x2c5c8f(0x16e)]['complete']();}[_0x5d632(0xea)](){const _0x50db5a=_0x5d632;return this[_0x50db5a(0x138)];}[_0x5d632(0x15f)](){const _0x1bece6=_0x5d632;this[_0x1bece6(0x17d)]||(this[_0x1bece6(0x17d)]=!0x0,this[_0x1bece6(0x170)]['sessionStatus$'][_0x1bece6(0x11e)](I[_0x1bece6(0x15b)](this[_0x1bece6(0xfe)]))[_0x1bece6(0x14f)](_0x3d7cdb=>{const _0x344b4b=_0x1bece6;switch(_0x3d7cdb){case b[_0x344b4b(0x14a)]['OFFLINE']:this['_handleOffline']();break;case b['SessionStatus']['ONLINE']:this[_0x344b4b(0x113)]();break;}}),this[_0x1bece6(0x170)][_0x1bece6(0x164)][_0x1bece6(0x11e)](I[_0x1bece6(0x15b)](this[_0x1bece6(0xfe)]))['subscribe'](_0x3bac09=>{const _0x1b956f=_0x1bece6,{eventID:_0x18801d}=_0x3bac09;switch(_0x18801d){case d[_0x1b956f(0x14d)]['LIVESHARE_NEW_HOST']:this[_0x1b956f(0x142)](_0x3bac09);break;case d[_0x1b956f(0x14d)]['LIVESHARE_OPERATION']:this[_0x1b956f(0xae)](_0x3bac09);break;case d['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x1b956f(0xe1)]();break;case d['CollaborationEvent'][_0x1b956f(0xef)]:this[_0x1b956f(0x133)](_0x3bac09);break;}}));}['tryStartPresenting'](){const _0x4f4abf=_0x5d632;this[_0x4f4abf(0x170)][_0x4f4abf(0xd1)]({'eventID':d[_0x4f4abf(0x14d)][_0x4f4abf(0x16b)],'data':{'unitID':this[_0x4f4abf(0x14b)],'userID':this[_0x4f4abf(0x170)][_0x4f4abf(0x16a)]()}},this[_0x4f4abf(0x14b)]);}[_0x5d632(0x173)](){const _0x1c3dbb=_0x5d632;this['_status']==='presenting'&&(this[_0x1c3dbb(0x16e)][_0x1c3dbb(0x14c)](_0x1c3dbb(0xfd)),this[_0x1c3dbb(0x170)]['send']({'eventID':d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1c3dbb(0x14b)]}},this['_unitID']));}[_0x5d632(0x162)](){const _0x21a837=_0x5d632;this[_0x21a837(0x138)]==='not-following'&&(this[_0x21a837(0x16e)][_0x21a837(0x14c)](_0x21a837(0x174)),this[_0x21a837(0xc3)]());}[_0x5d632(0xeb)](){const _0x50fb06=_0x5d632;this[_0x50fb06(0x138)]===_0x50fb06(0x174)&&this[_0x50fb06(0xf7)]();}['_handleNewHost'](_0x19ac48){const _0x110401=_0x5d632,{presenter:_0x264b0a}=_0x19ac48[_0x110401(0x134)],_0x99591b=this[_0x110401(0x170)][_0x110401(0x16a)]();this['_presenter']=_0x264b0a,_0x264b0a===_0x99591b?(this[_0x110401(0xf7)](),this[_0x110401(0x161)]()):this[_0x110401(0x138)]!==_0x110401(0xe7)&&(this[_0x110401(0x17c)](),this['_startFollowing']());}[_0x5d632(0x179)](){const _0x7f7d3b=_0x5d632,_0x589085={'eventID':d['CollaborationEvent'][_0x7f7d3b(0x147)]};this[_0x7f7d3b(0x170)][_0x7f7d3b(0xd1)](_0x589085,this['_unitID']);}[_0x5d632(0xe1)](){const _0x2b3e4b=_0x5d632;this[_0x2b3e4b(0x135)]=null,this['_status']!==_0x2b3e4b(0xda)&&this[_0x2b3e4b(0x154)]();}[_0x5d632(0x133)](_0x1a9746){const _0x160996=_0x5d632;if(this[_0x160996(0x138)]===_0x160996(0x174)&&this[_0x160996(0x135)]===_0x1a9746['data'][_0x160996(0xba)]){const _0xba2d29=d[_0x160996(0xf8)](_0x1a9746[_0x160996(0x134)])['mutations'][_0x160996(0x12c)]()[_0x160996(0x13f)](_0x5d317d=>_0x5d317d['id']===C['InsertSheetMutation']['id']);if(_0xba2d29){const _0x55d91a=_0xba2d29['params']['unitId'],_0x1dc0f9=_0xba2d29[_0x160996(0xb4)][_0x160996(0xdc)]['id'];setTimeout(()=>{const _0x23bca0=_0x160996;this['_commandService'][_0x23bca0(0x100)](C[_0x23bca0(0x146)]['id'],{'unitId':_0x55d91a,'subUnitId':_0x1dc0f9},{'fromCollab':!0x0});});}}}[_0x5d632(0x161)](){const _0x1728a3=_0x5d632;this['_status$']['next'](_0x1728a3(0xda));const _0x23c017=new Map(),_0x5373e2=this['_commandDisposable']=new o['DisposableCollection']();_0x5373e2['add'](o[_0x1728a3(0x101)](()=>{const _0x34dcb6=_0x1728a3;_0x23c017[_0x34dcb6(0xc5)](_0x1a25dd=>_0x1a25dd[_0x34dcb6(0x16c)]()),_0x23c017['clear']();})),_0x5373e2[_0x1728a3(0x12e)](this[_0x1728a3(0x150)][_0x1728a3(0xe8)](_0x30751a=>{const _0x4fb863=_0x1728a3;var _0x452d74;if(_0x30751a[_0x4fb863(0x126)]!==o[_0x4fb863(0xc8)]['OPERATION']||!this[_0x4fb863(0xd5)][_0x4fb863(0xf0)](_0x30751a['id']))return;const {id:_0x410491}=_0x30751a;let _0x2dc8fe;_0x23c017[_0x4fb863(0x145)](_0x410491)?_0x2dc8fe=_0x23c017[_0x4fb863(0xb1)](_0x410491):(_0x2dc8fe=new O[(_0x4fb863(0x12a))](),_0x23c017[_0x4fb863(0xf1)](_0x410491,_0x2dc8fe),_0x2dc8fe['pipe'](I[_0x4fb863(0x128)]((_0x452d74=this[_0x4fb863(0x131)][_0x4fb863(0xd9)](k))!=null?_0x452d74:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4fb863(0x14f)](_0x52f555=>{const _0x487c7f=_0x4fb863;this[_0x487c7f(0x170)]['send']({'eventID':d[_0x487c7f(0x14d)][_0x487c7f(0x149)],'data':{'unitID':this['_unitID'],'operations':{[_0x52f555['id']]:{'id':_0x52f555['id'],'params':JSON['stringify'](_0x52f555[_0x487c7f(0xb4)])}}}},this[_0x487c7f(0x14b)]);})),_0x2dc8fe[_0x4fb863(0x14c)](_0x30751a);})),this[_0x1728a3(0xd5)][_0x1728a3(0xb6)](this[_0x1728a3(0x14b)])['forEach'](_0x20a076=>this[_0x1728a3(0x170)]['send']({'eventID':d['CollaborationEvent'][_0x1728a3(0x149)],'data':{'unitID':this[_0x1728a3(0x14b)],'operations':{[_0x20a076['id']]:{'id':_0x20a076['id'],'params':JSON[_0x1728a3(0xd4)](_0x20a076[_0x1728a3(0xb4)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x20cc7f=_0x5d632;var _0x1f0594;this[_0x20cc7f(0x16e)][_0x20cc7f(0x14c)](_0x20cc7f(0xfd)),(_0x1f0594=this['_commandDisposable'])==null||_0x1f0594[_0x20cc7f(0x114)](),this[_0x20cc7f(0xcd)]=null;}[_0x5d632(0xc3)](){const _0x23a525=_0x5d632;var _0x43b416;(_0x43b416=this[_0x23a525(0xcd)])==null||_0x43b416[_0x23a525(0x114)](),this[_0x23a525(0x16e)][_0x23a525(0x14c)](_0x23a525(0x174));}[_0x5d632(0x154)](){const _0x135b61=_0x5d632;var _0x32aea0;this[_0x135b61(0x16e)][_0x135b61(0x14c)](_0x135b61(0xfd)),(_0x32aea0=this[_0x135b61(0xcd)])==null||_0x32aea0[_0x135b61(0x114)](),this['_commandDisposable']=null;}[_0x5d632(0xf7)](){const _0x4d82a5=_0x5d632;var _0xf6a89a;this[_0x4d82a5(0x16e)][_0x4d82a5(0x14c)](_0x4d82a5(0xe7)),(_0xf6a89a=this[_0x4d82a5(0xcd)])==null||_0xf6a89a[_0x4d82a5(0x114)]();}[_0x5d632(0xae)](_0x250d6d){const _0x4b8d1c=_0x5d632;if([_0x4b8d1c(0xda),_0x4b8d1c(0xe7),'offline']['includes'](this[_0x4b8d1c(0x138)])||!_0x250d6d[_0x4b8d1c(0x134)][_0x4b8d1c(0x122)]||_0x250d6d['data'][_0x4b8d1c(0x122)]===this[_0x4b8d1c(0x170)][_0x4b8d1c(0x16a)]())return;this[_0x4b8d1c(0x138)]===_0x4b8d1c(0xfd)&&this['_startFollowing']();const _0x879635=_0x250d6d['data'][_0x4b8d1c(0x127)];Object[_0x4b8d1c(0x151)](_0x879635)[_0x4b8d1c(0xc5)](_0x69d363=>{const _0x58e828=_0x4b8d1c;this[_0x58e828(0x150)][_0x58e828(0x100)](_0x69d363['id'],_0x69d363['params']?JSON[_0x58e828(0x143)](_0x69d363[_0x58e828(0xb4)]):null,{'fromCollab':!0x0});});}[_0x5d632(0x129)](){const _0x3fe4d0=_0x5d632;var _0x81eb20;this[_0x3fe4d0(0x16e)][_0x3fe4d0(0x14c)](_0x3fe4d0(0xe0)),(_0x81eb20=this[_0x3fe4d0(0xcd)])==null||_0x81eb20['dispose']();}[_0x5d632(0x113)](){const _0x27e717=_0x5d632;this[_0x27e717(0x16e)]['next'](_0x27e717(0xfd)),this[_0x27e717(0x179)]();}},exports[_0x5d632(0x139)]=P([S(0x2,o[_0x5d632(0x144)]),S(0x3,o[_0x5d632(0x159)](E)),S(0x4,o[_0x5d632(0x10b)])],exports[_0x5d632(0x139)]);function $(){const _0x229f9e=_0x5d632,_0xb4c72d=p[_0x229f9e(0xe9)](exports['LiveShareController']),_0x4b973a=p[_0x229f9e(0xe9)](o['IUniverInstanceService']),_0x3a190b=p[_0x229f9e(0x137)](()=>_0x4b973a['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x229f9e(0x177)]),void 0x0,!0x1,[]),[_0x3ba6dc,_0xa67c7]=v[_0x229f9e(0xde)](null),[_0x1d72f1,_0x18a5aa]=v['useState'](u[_0x229f9e(0x169)]),_0x1b008b=v[_0x229f9e(0x12d)](null);return v['useEffect'](()=>(_0x3a190b&&_0xb4c72d[_0x229f9e(0x123)](_0x3a190b[_0x229f9e(0x124)]())['then'](_0x2ab376=>{const _0x2d9fc6=_0x229f9e;_0xa67c7(_0x2ab376),_0x1b008b[_0x2d9fc6(0x10a)]=_0x2ab376[_0x2d9fc6(0x152)][_0x2d9fc6(0x14f)](_0x5a9fd0=>{_0x18a5aa(_0x5a9fd0);});}),()=>{const _0x4a1fad=_0x229f9e;var _0x31bd2e;(_0x31bd2e=_0x1b008b[_0x4a1fad(0x10a)])==null||_0x31bd2e[_0x4a1fad(0xf9)](),_0x1b008b[_0x4a1fad(0x10a)]=null;}),[_0x3a190b,_0xb4c72d]),_0x3ba6dc?l['jsx'](f[_0x229f9e(0x17a)],{'align':_0x229f9e(0x176),'disabled':_0x1d72f1===u[_0x229f9e(0x10f)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x229f9e(0xf5)](W,{'status':_0x1d72f1,'coordinator':_0x3ba6dc}),'children':l[_0x229f9e(0xf5)](_0x229f9e(0x11b),{'className':f[_0x229f9e(0xf4)](_0x229f9e(0xbb),{'univer-cursor-not-allowed':_0x1d72f1===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d72f1!==u[_0x229f9e(0x10f)]}),'type':_0x229f9e(0x11b),'children':l[_0x229f9e(0xf5)](R,{'className':_0x229f9e(0x156)})})}):null;}function W(_0x3c1a15){const _0x83501f=_0x5d632,{status:_0x31bda8,coordinator:_0x459e6e}=_0x3c1a15;switch(_0x31bda8){case u['IDLE']:return l['jsx'](G,{'coordinator':_0x459e6e});case u[_0x83501f(0x141)]:return l[_0x83501f(0xf5)](B,{'coordinator':_0x459e6e});case u[_0x83501f(0x121)]:return l[_0x83501f(0xf5)](Y,{'coordinator':_0x459e6e});case u[_0x83501f(0x10f)]:return l[_0x83501f(0xf5)](J,{});case u[_0x83501f(0xad)]:return l[_0x83501f(0xf5)](Z,{'coordinator':_0x459e6e});default:return null;}}function G(_0x1b1fb9){const _0xc4f930=_0x5d632,{coordinator:_0x285f77}=_0x1b1fb9;return l[_0xc4f930(0x12f)](l[_0xc4f930(0x132)],{'children':[l[_0xc4f930(0xf5)](_0xc4f930(0xb8),{'className':_0xc4f930(0x12b),'children':_0xc4f930(0x102)}),l[_0xc4f930(0xf5)](f[_0xc4f930(0x11f)],{'onClick':()=>_0x285f77[_0xc4f930(0xc9)](),'children':_0xc4f930(0x14e)})]});}function B(_0x58d64a){const _0x39b031=_0x5d632,{coordinator:_0x12a676}=_0x58d64a;return l[_0x39b031(0x12f)](l[_0x39b031(0x132)],{'children':[l[_0x39b031(0xf5)](_0x39b031(0xb8),{'className':_0x39b031(0x12b),'children':_0x39b031(0xc0)}),l[_0x39b031(0xf5)](f['Button'],{'onClick':()=>_0x12a676[_0x39b031(0xeb)](),'children':_0x39b031(0x11a)})]});}function Y(_0x5067fd){const _0x2a1da0=_0x5d632,{coordinator:_0x3052c0}=_0x5067fd;return l[_0x2a1da0(0x12f)](l[_0x2a1da0(0x132)],{'children':[l[_0x2a1da0(0xf5)](_0x2a1da0(0xb8),{'className':_0x2a1da0(0x12b),'children':_0x2a1da0(0xd3)}),l['jsx'](f[_0x2a1da0(0x11f)],{'variant':_0x2a1da0(0x110),'onClick':()=>_0x3052c0[_0x2a1da0(0x162)](),'children':'Start\x20following'})]});}function Z(_0x1814cc){const _0x31ebf5=_0x5d632,{coordinator:_0x47769b}=_0x1814cc;return l['jsxs'](l[_0x31ebf5(0x132)],{'children':[l[_0x31ebf5(0xf5)](_0x31ebf5(0xb8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x31ebf5(0xf5)](f[_0x31ebf5(0x11f)],{'variant':_0x31ebf5(0x17f),'onClick':()=>_0x47769b[_0x31ebf5(0x173)](),'children':'Stop\x20presenting'})]});}function J(){const _0x463afb=_0x5d632;return l[_0x463afb(0xf5)](l['Fragment'],{'children':_0x463afb(0xc6)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x1a1b6a,_0x25da0a,_0x501be6,_0xe71d63)=>{const _0x188506=_0x5d632;for(var _0x575f7b=_0xe71d63>0x1?void 0x0:_0xe71d63?K(_0x25da0a,_0x501be6):_0x25da0a,_0x505683=_0x1a1b6a[_0x188506(0xe6)]-0x1,_0x1564b0;_0x505683>=0x0;_0x505683--)(_0x1564b0=_0x1a1b6a[_0x505683])&&(_0x575f7b=_0x1564b0(_0x575f7b)||_0x575f7b);return _0x575f7b;},L=(_0x22c298,_0x1b853a)=>(_0x4f096e,_0x2439be)=>_0x1b853a(_0x4f096e,_0x2439be,_0x22c298);exports[_0x5d632(0xfb)]=class extends o['Disposable']{constructor(_0x3f7490,_0x3b0b70){const _0x5c6726=_0x5d632;super(),this[_0x5c6726(0x15c)]=_0x3f7490,this['_uiPartsService']=_0x3b0b70,this[_0x5c6726(0xcb)]();}[_0x5d632(0xcb)](){const _0xa1e041=_0x5d632;this[_0xa1e041(0xc1)](this['_uiPartsService'][_0xa1e041(0x16f)](p[_0xa1e041(0x103)]['HEADER_MENU'],()=>p[_0xa1e041(0x105)]($,this[_0xa1e041(0x15c)])));}},exports[_0x5d632(0xfb)]=z([L(0x0,o[_0x5d632(0x159)](o[_0x5d632(0xb7)])),L(0x1,p[_0x5d632(0xff)])],exports['DesktopLiveShareController']);const Q=_0x5d632(0xf6),w={};var X=Object[_0x5d632(0x13b)],ee=(_0x4ec544,_0x1481b4,_0x485301,_0x3dd7f5)=>{const _0x21b0e6=_0x5d632;for(var _0x24734d=_0x3dd7f5>0x1?void 0x0:_0x3dd7f5?X(_0x1481b4,_0x485301):_0x1481b4,_0xa4275e=_0x4ec544[_0x21b0e6(0xe6)]-0x1,_0x3ee98c;_0xa4275e>=0x0;_0xa4275e--)(_0x3ee98c=_0x4ec544[_0xa4275e])&&(_0x24734d=_0x3ee98c(_0x24734d)||_0x24734d);return _0x24734d;},te=(_0x31b0b4,_0x233469)=>(_0x12311e,_0x597c4e)=>_0x233469(_0x12311e,_0x597c4e,_0x31b0b4);let m=class extends o[_0x5d632(0xb2)]{constructor(_0x6641e){const _0x47bbac=_0x5d632;super(),this[_0x47bbac(0xd5)]=_0x6641e,this[_0x47bbac(0x17d)]();}['_init'](){const _0x4f5aaa=_0x5d632;[D['SetZoomRatioOperation']['id'],D[_0x4f5aaa(0xb0)]['id'],C[_0x4f5aaa(0x146)]['id']]['forEach'](_0x3d3664=>{const _0x546bad=_0x4f5aaa;this[_0x546bad(0xc1)](this[_0x546bad(0xd5)]['registerSharedOperation'](_0x3d3664));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object['defineProperty'],se=Object[_0x5d632(0x13b)],ne=(_0x3e7dcd,_0x2449b6,_0x34c3e0)=>_0x2449b6 in _0x3e7dcd?ie(_0x3e7dcd,_0x2449b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34c3e0}):_0x3e7dcd[_0x2449b6]=_0x34c3e0,re=(_0x21e2e2,_0x32575b,_0x458171,_0x1b9cc4)=>{for(var _0x10a078=_0x1b9cc4>0x1?void 0x0:_0x1b9cc4?se(_0x32575b,_0x458171):_0x32575b,_0x1b4a0f=_0x21e2e2['length']-0x1,_0x17943f;_0x1b4a0f>=0x0;_0x1b4a0f--)(_0x17943f=_0x21e2e2[_0x1b4a0f])&&(_0x10a078=_0x17943f(_0x10a078)||_0x10a078);return _0x10a078;},N=(_0xb1b940,_0x4c56a6)=>(_0x470974,_0x579020)=>_0x4c56a6(_0x470974,_0x579020,_0xb1b940),A=(_0x3ff1d5,_0xe96b00,_0x52de01)=>ne(_0x3ff1d5,typeof _0xe96b00!=_0x5d632(0xb5)?_0xe96b00+'':_0xe96b00,_0x52de01);const oe=_0x5d632(0x13a);exports[_0x5d632(0x115)]=class extends o['Plugin']{constructor(_0x48bf62=w,_0x5752d5,_0x40cf58){const _0x304764=_0x5d632;super(),this['_config']=_0x48bf62,this[_0x304764(0x15c)]=_0x5752d5,this[_0x304764(0x131)]=_0x40cf58;const {..._0x31043f}=o['merge']({},w,this[_0x304764(0xdd)]);this[_0x304764(0x131)][_0x304764(0x17e)](Q,_0x31043f);}[_0x5d632(0x130)](){const _0x330775=_0x5d632;o[_0x330775(0xf3)](this[_0x330775(0x15c)],o[_0x330775(0x104)]([[E],[exports[_0x330775(0x112)]],[m],[exports[_0x330775(0xfb)]]],this[_0x330775(0xdd)]['override'])),o[_0x330775(0x163)](this[_0x330775(0x15c)],[[m]]);}[_0x5d632(0x15d)](){const _0x3581b2=_0x5d632;o['touchDependencies'](this['_injector'],[[exports[_0x3581b2(0xfb)]]]);}},A(exports[_0x5d632(0x115)],_0x5d632(0x126),o[_0x5d632(0x17b)][_0x5d632(0xfa)]),A(exports['UniverLiveSharePlugin'],'pluginName',oe),exports[_0x5d632(0x115)]=re([o[_0x5d632(0xe4)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x5d632(0x159)](o[_0x5d632(0xb7)])),N(0x2,o[_0x5d632(0x144)])],exports[_0x5d632(0x115)]),exports[_0x5d632(0x118)]=$,exports['LiveShareService']=E,exports[_0x5d632(0xfc)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1935(){const _0xcea53d=['122650ksaGGY','IDLE','extend','startRow','stopPresenting','5865972ZVZeoT','syncExecuteCommand','_initialize','550990TvKhMr','get','5674016MeKDsv','getStatus','getUnitId','No\x20active\x20workbook\x20found.','getRenderById','5spkAcw','6333aYiRvz','getActiveWorkbook','_injector','startFollowing','getLiveShareStatus','LiveShareStatusEnum','180ZjnRoi','stopFollowing','PRESENTING','startPresenting','2476wGSOHS','7qQORZB','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareCoordinatorSync','getSheetId','getId','2771310shfqXD','42101719uDkbWW','tryStartPresenting','getActiveSheet'];_0x1935=function(){return _0xcea53d;};return _0x1935();}function _0x1721(_0x45a299,_0x5b0191){const _0x1935f6=_0x1935();return _0x1721=function(_0x17216f,_0x1ea74c){_0x17216f=_0x17216f-0x11b;let _0x5eebba=_0x1935f6[_0x17216f];return _0x5eebba;},_0x1721(_0x45a299,_0x5b0191);}const _0x5c16bd=_0x1721;(function(_0x568db8,_0x2c523d){const _0x4375e4=_0x1721,_0x259b77=_0x568db8();while(!![]){try{const _0x54b574=parseInt(_0x4375e4(0x13d))/0x1*(parseInt(_0x4375e4(0x122))/0x2)+-parseInt(_0x4375e4(0x132))/0x3*(parseInt(_0x4375e4(0x13c))/0x4)+parseInt(_0x4375e4(0x131))/0x5*(parseInt(_0x4375e4(0x11e))/0x6)+-parseInt(_0x4375e4(0x127))/0x7+-parseInt(_0x4375e4(0x12c))/0x8+-parseInt(_0x4375e4(0x138))/0x9*(parseInt(_0x4375e4(0x12a))/0xa)+parseInt(_0x4375e4(0x11f))/0xb;if(_0x54b574===_0x2c523d)break;else _0x259b77['push'](_0x259b77['shift']());}catch(_0x316f16){_0x259b77['push'](_0x259b77['shift']());}}}(_0x1935,0xba31c));import{LiveShareController as _0x2ae573,LiveShareStatus as _0x26f58c}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x496899}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x235381}from'@univerjs/sheets';import{SetScrollOperation as _0x26484b}from'@univerjs/sheets-ui';import{FRange as _0x5e08ec}from'@univerjs/sheets/facade';import{FUniver as _0x4b7587,FEnum as _0x22dcce}from'@univerjs/core/facade';class I extends _0x5e08ec{[_0x5c16bd(0x129)](_0x4e55f0,_0x46cf17,_0x38da5c,_0x4508ca,_0x1f83a3){const _0x5c1707=_0x5c16bd,_0x3010c8=_0x4e55f0[_0x5c1707(0x12b)](_0x2ae573),_0x43333b=_0x4e55f0[_0x5c1707(0x12b)](_0x496899),_0x363504=_0x46cf17[_0x5c1707(0x12e)](),_0x209bde=_0x46cf17[_0x5c1707(0x121)](),_0xc979d1=_0x3010c8[_0x5c1707(0x11b)](_0x363504);(_0xc979d1==null?void 0x0:_0xc979d1[_0x5c1707(0x12d)]())!==_0x26f58c[_0x5c1707(0x13a)]||(_0x38da5c[_0x5c1707(0x11c)]()!==_0x209bde['getSheetId']()&&this['_commandService']['executeCommand'](_0x235381['id'],{'unitId':_0x363504,'subUnitId':_0x38da5c[_0x5c1707(0x11c)]()}),!_0x43333b[_0x5c1707(0x130)](_0x363504))||_0x1f83a3[_0x5c1707(0x128)](_0x26484b['id'],{'unitId':_0x46cf17[_0x5c1707(0x12e)](),'sheetId':_0x38da5c[_0x5c1707(0x11c)](),'sheetViewStartRow':_0x4508ca[_0x5c1707(0x125)],'sheetViewStartColumn':_0x4508ca['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5e08ec[_0x5c16bd(0x124)](I);class m extends _0x4b7587{[_0x5c16bd(0x136)](){const _0x1b1cc5=_0x5c16bd;var _0x5127ca,_0x3a0574;const _0x195c05=this['_injector'][_0x1b1cc5(0x12b)](_0x2ae573),_0x422886=(_0x5127ca=this[_0x1b1cc5(0x133)]())==null?void 0x0:_0x5127ca[_0x1b1cc5(0x11d)]();if(!_0x422886)throw new Error('No\x20active\x20workbook\x20found.');const _0x51ec35=_0x195c05[_0x1b1cc5(0x11b)](_0x422886);return(_0x3a0574=_0x51ec35==null?void 0x0:_0x51ec35[_0x1b1cc5(0x12d)]())!=null?_0x3a0574:_0x26f58c[_0x1b1cc5(0x123)];}['startFollowing'](){const _0x5c7880=_0x5c16bd;var _0x1c2a4b;const _0x58403c=this[_0x5c7880(0x134)][_0x5c7880(0x12b)](_0x2ae573),_0x2f1a64=(_0x1c2a4b=this[_0x5c7880(0x133)]())==null?void 0x0:_0x1c2a4b[_0x5c7880(0x11d)]();if(!_0x2f1a64)throw new Error(_0x5c7880(0x12f));const _0x5aac67=_0x58403c['getLiveShareCoordinatorSync'](_0x2f1a64);if(!_0x5aac67)throw new Error(_0x5c7880(0x13e));_0x5aac67[_0x5c7880(0x135)]();}['stopFollowing'](){const _0x3554ab=_0x5c16bd;var _0x1ff5d1;const _0x140b6d=this[_0x3554ab(0x134)][_0x3554ab(0x12b)](_0x2ae573),_0x37e574=(_0x1ff5d1=this[_0x3554ab(0x133)]())==null?void 0x0:_0x1ff5d1[_0x3554ab(0x11d)]();if(!_0x37e574)throw new Error(_0x3554ab(0x12f));const _0x68e6ee=_0x140b6d[_0x3554ab(0x11b)](_0x37e574);if(!_0x68e6ee)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x68e6ee[_0x3554ab(0x139)]();}[_0x5c16bd(0x13b)](){const _0x5ec3ac=_0x5c16bd;var _0x44609a;const _0x480444=this[_0x5ec3ac(0x134)][_0x5ec3ac(0x12b)](_0x2ae573),_0x1df86f=(_0x44609a=this['getActiveWorkbook']())==null?void 0x0:_0x44609a[_0x5ec3ac(0x11d)]();if(!_0x1df86f)throw new Error('No\x20active\x20workbook\x20found.');const _0x4ac779=_0x480444['getLiveShareCoordinatorSync'](_0x1df86f);if(!_0x4ac779)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4ac779[_0x5ec3ac(0x120)]();}['stopPresenting'](){const _0x46a16e=_0x5c16bd;var _0x2c04c8;const _0x22c1c1=this['_injector'][_0x46a16e(0x12b)](_0x2ae573),_0x4e26ec=(_0x2c04c8=this[_0x46a16e(0x133)]())==null?void 0x0:_0x2c04c8[_0x46a16e(0x11d)]();if(!_0x4e26ec)throw new Error(_0x46a16e(0x12f));const _0x4439df=_0x22c1c1[_0x46a16e(0x11b)](_0x4e26ec);if(!_0x4439df)throw new Error(_0x46a16e(0x13e));_0x4439df[_0x46a16e(0x126)]();}}_0x4b7587[_0x5c16bd(0x124)](m);class C extends _0x22dcce{get[_0x5c16bd(0x137)](){return _0x26f58c;}}_0x22dcce[_0x5c16bd(0x124)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x221811=_0x2e9a;(function(_0x153aa2,_0x53c9ad){const _0x469ad4=_0x2e9a,_0x2a42e1=_0x153aa2();while(!![]){try{const _0x5679d9=parseInt(_0x469ad4(0x134))/0x1*(parseInt(_0x469ad4(0x1b4))/0x2)+parseInt(_0x469ad4(0x150))/0x3+-parseInt(_0x469ad4(0x125))/0x4*(-parseInt(_0x469ad4(0x14d))/0x5)+-parseInt(_0x469ad4(0x15f))/0x6+-parseInt(_0x469ad4(0x187))/0x7+-parseInt(_0x469ad4(0x139))/0x8*(-parseInt(_0x469ad4(0x17d))/0x9)+-parseInt(_0x469ad4(0x165))/0xa;if(_0x5679d9===_0x53c9ad)break;else _0x2a42e1['push'](_0x2a42e1['shift']());}catch(_0x47c5ac){_0x2a42e1['push'](_0x2a42e1['shift']());}}}(_0x1745,0x81c6c));var J=Object[_0x221811(0x140)],K=(_0x54f9f1,_0x5442c9,_0x45d33c)=>_0x5442c9 in _0x54f9f1?J(_0x54f9f1,_0x5442c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45d33c}):_0x54f9f1[_0x5442c9]=_0x45d33c,u=(_0x4dda28,_0x35b8c8,_0x28d07c)=>K(_0x4dda28,typeof _0x35b8c8!=_0x221811(0x12b)?_0x35b8c8+'':_0x35b8c8,_0x28d07c);import{Disposable as _0x5584fb,toDisposable as _0x4e21f7,IUniverInstanceService as _0x34a265,Inject as _0x3b972f,Injector as _0x1e206d,IConfigService as _0x3c082e,ICommandService as _0x2a3810,RxDisposable as _0x317033,UniverInstanceType as _0x4fecd8,DisposableCollection as _0x38a87f,CommandType as _0x274666,DependentOn as _0x4ef44e,Plugin as _0x54e800,merge as _0x47f8b3,registerDependencies as _0x38128c,mergeOverrideWithDependencies as _0x28e201,touchDependencies as _0x441580}from'@univerjs/core';import{useDependency as _0x3ba771,useObservable as _0x382b15,IUIPartsService as _0x2df529,BuiltInUIPart as _0x39e9b0,connectInjector as _0x19746f}from'@univerjs/ui';import{jsx as _0x394112,jsxs as _0x35a790,Fragment as _0xf1c7f5}from'react/jsx-runtime';import{Dropdown as _0x195faf,clsx as _0x4a0fdb,Button as _0x4da62a}from'@univerjs/design';import{useRef as _0x3dea31,createElement as _0x5edcfb,forwardRef as _0x5a8e8f,useState as _0x20fc4e,useEffect as _0x300d05}from'react';import{CollaborationEvent as _0x3ec99e,parseProtocolChangeset as _0x40eca1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1839d1,SessionStatus as _0x3fee76,UniverCollaborationClientPlugin as _0x121829}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x52e444,SetWorksheetActiveOperation as _0x222c77}from'@univerjs/sheets';import{BehaviorSubject as _0x9a32b4,Subject as _0x4cfb70}from'rxjs';import{takeUntil as _0x3d7e87,throttleTime as _0x1bd794}from'rxjs/operators';function _0x2e9a(_0x14dfa5,_0x35b766){const _0x174502=_0x1745();return _0x2e9a=function(_0x2e9af7,_0x486621){_0x2e9af7=_0x2e9af7-0x124;let _0x1540c3=_0x174502[_0x2e9af7];return _0x1540c3;},_0x2e9a(_0x14dfa5,_0x35b766);}import{SetZoomRatioOperation as _0x3a61b7,SetScrollOperation as _0x1e8464}from'@univerjs/sheets-ui';function k({ref:_0x197e6c,..._0x5ca943}){const _0x207c92=_0x221811,{icon:_0x2f09c0,id:_0x8b262c,className:_0x17c9c3,extend:_0x24cdfe,..._0x239edd}=_0x5ca943,_0x306934=(_0x207c92(0x1ba)+_0x8b262c+'\x20'+(_0x17c9c3||''))[_0x207c92(0x169)](),_0xecd5c0=_0x3dea31('_'+Oe());return G(_0x2f09c0,''+_0x8b262c,{'defIds':_0x2f09c0['defIds'],'idSuffix':_0xecd5c0[_0x207c92(0x183)]},{'ref':_0x197e6c,'className':_0x306934,..._0x239edd},_0x24cdfe);}function G(_0x31c008,_0x3c106a,_0xedabbb,_0x5d2070,_0x3dd37a){const _0x5a8fc0=_0x221811;return _0x5edcfb(_0x31c008['tag'],{'key':_0x3c106a,...be(_0x31c008,_0xedabbb,_0x3dd37a),..._0x5d2070},(Ee(_0x31c008,_0xedabbb)['children']||[])['map']((_0x477eeb,_0x324de5)=>G(_0x477eeb,_0x3c106a+'-'+_0x31c008[_0x5a8fc0(0x18e)]+'-'+_0x324de5,_0xedabbb,void 0x0,_0x3dd37a)));}function be(_0x3b3564,_0x187141,_0x5bcc20){const _0x3e1c00=_0x221811,_0x3c1373={..._0x3b3564[_0x3e1c00(0x158)]};_0x5bcc20!=null&&_0x5bcc20[_0x3e1c00(0x17c)]&&_0x3c1373[_0x3e1c00(0x172)]==='colorChannel1'&&(_0x3c1373[_0x3e1c00(0x172)]=_0x5bcc20[_0x3e1c00(0x17c)]),_0x3b3564[_0x3e1c00(0x18e)]===_0x3e1c00(0x18f)&&_0x3c1373['id']&&(_0x3c1373['id']=_0x3c1373['id']+_0x187141[_0x3e1c00(0x167)]),Object[_0x3e1c00(0x1ab)](_0x3c1373)[_0x3e1c00(0x13d)](([_0x3c7c5c,_0x1da6a6])=>{const _0x157bf4=_0x3e1c00;_0x3c7c5c===_0x157bf4(0x18f)&&typeof _0x1da6a6==_0x157bf4(0x192)&&(_0x3c1373[_0x3c7c5c]=_0x1da6a6[_0x157bf4(0x19f)](/url\(#(.*)\)/,_0x157bf4(0x166)+_0x187141[_0x157bf4(0x167)]+')'));});const {defIds:_0x22b32f}=_0x187141;return!_0x22b32f||_0x22b32f[_0x3e1c00(0x195)]===0x0||(_0x3b3564[_0x3e1c00(0x18e)]===_0x3e1c00(0x1cc)&&_0x3c1373[_0x3e1c00(0x1b3)]&&(_0x3c1373['xlink:href']=_0x3c1373['xlink:href']+_0x187141[_0x3e1c00(0x167)]),Object[_0x3e1c00(0x1ab)](_0x3c1373)['forEach'](([_0x33755c,_0x2297f2])=>{const _0x545bfe=_0x3e1c00;typeof _0x2297f2==_0x545bfe(0x192)&&(_0x3c1373[_0x33755c]=_0x2297f2[_0x545bfe(0x19f)](/url\(#(.*)\)/,'url(#$1'+_0x187141[_0x545bfe(0x167)]+')'));})),_0x3c1373;}function Ee(_0x5a9411,_0x19eef7){const _0x350b86=_0x221811;var _0xbb3c2e;const {defIds:_0xa3863b}=_0x19eef7;return!_0xa3863b||_0xa3863b[_0x350b86(0x195)]===0x0?_0x5a9411:_0x5a9411[_0x350b86(0x18e)]===_0x350b86(0x149)&&((_0xbb3c2e=_0x5a9411[_0x350b86(0x145)])!=null&&_0xbb3c2e[_0x350b86(0x195)])?{..._0x5a9411,'children':_0x5a9411[_0x350b86(0x145)][_0x350b86(0x141)](_0x8212e7=>typeof _0x8212e7[_0x350b86(0x158)]['id']==_0x350b86(0x192)&&_0xa3863b&&_0xa3863b[_0x350b86(0x136)](_0x8212e7[_0x350b86(0x158)]['id'])?{..._0x8212e7,'attrs':{..._0x8212e7[_0x350b86(0x158)],'id':_0x8212e7[_0x350b86(0x158)]['id']+_0x19eef7[_0x350b86(0x167)]}}:_0x8212e7)}:_0x5a9411;}function Oe(){const _0x3670fe=_0x221811;return Math[_0x3670fe(0x1c6)]()[_0x3670fe(0x142)](0x24)[_0x3670fe(0x144)](0x2,0x8);}k[_0x221811(0x1a5)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x221811(0x184),'fill':_0x221811(0x178),'viewBox':_0x221811(0x1b0),'width':'1em','height':_0x221811(0x12d)},'children':[{'tag':_0x221811(0x153),'attrs':{'fill':_0x221811(0x1ad),'d':_0x221811(0x13c)}},{'tag':_0x221811(0x153),'attrs':{'fill':'currentColor','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':_0x221811(0x1b1),'clipRule':_0x221811(0x1b1)}}]},W=_0x5a8e8f(function(_0x20d022,_0x47731f){const _0x315b76=_0x221811;return _0x5edcfb(k,Object[_0x315b76(0x175)]({},_0x20d022,{'id':'live-share-icon','ref':_0x47731f,'icon':we}));});W[_0x221811(0x1a5)]=_0x221811(0x190);class L extends _0x5584fb{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x221811(0x1bc)](_0x5900df){const _0x5bc97f=_0x221811;return this[_0x5bc97f(0x1c8)]['add'](_0x5900df),_0x4e21f7(()=>this[_0x5bc97f(0x1c8)][_0x5bc97f(0x126)](_0x5900df));}[_0x221811(0x18d)](_0x375172){const _0x88761=_0x221811;return this[_0x88761(0x1b9)][_0x88761(0x1a9)](_0x375172),_0x4e21f7(()=>this[_0x88761(0x1b9)][_0x88761(0x126)](_0x375172));}[_0x221811(0x1a7)](_0x18d878){const _0x53d32f=_0x221811;return this[_0x53d32f(0x1c8)]['has'](_0x18d878);}['getInitialStates'](_0x5d176f){const _0x1eeed2=_0x221811;return Array[_0x1eeed2(0x1ce)](this['_reporters'])['map'](_0x2bb04e=>_0x2bb04e(_0x5d176f));}}var Ne=Object[_0x221811(0x156)],Y=(_0x287803,_0x18bfb1,_0x3a3c64,_0x95786)=>{const _0x9d8303=_0x221811;for(var _0x24231a=_0x95786>0x1?void 0x0:_0x95786?Ne(_0x18bfb1,_0x3a3c64):_0x18bfb1,_0x8d7260=_0x287803[_0x9d8303(0x195)]-0x1,_0x257dee;_0x8d7260>=0x0;_0x8d7260--)(_0x257dee=_0x287803[_0x8d7260])&&(_0x24231a=_0x257dee(_0x24231a)||_0x24231a);return _0x24231a;},_=(_0x42f5a8,_0x5bb8ea)=>(_0x5381dd,_0x3fb270)=>_0x5bb8ea(_0x5381dd,_0x3fb270,_0x42f5a8);let S=class extends _0x317033{constructor(_0x305ccb,_0x243345,_0x2d10b0){const _0x2a2f93=_0x221811;super(),u(this,_0x2a2f93(0x1be),new Map()),(this[_0x2a2f93(0x194)]=_0x305ccb,this['_injector']=_0x243345,this[_0x2a2f93(0x193)]=_0x2d10b0,this[_0x2a2f93(0x14c)]());}async['getLiveShareCoordinator'](_0x4a5180){const _0x43c5d3=_0x221811;return this[_0x43c5d3(0x1be)][_0x43c5d3(0x15e)](_0x4a5180)||await this[_0x43c5d3(0x17b)](_0x4a5180),this[_0x43c5d3(0x1be)][_0x43c5d3(0x1b5)](_0x4a5180);}[_0x221811(0x1a0)](_0x3f9228){const _0xaa81b6=_0x221811;var _0x30c53a;return(_0x30c53a=this[_0xaa81b6(0x1be)][_0xaa81b6(0x1b5)](_0x3f9228))!=null?_0x30c53a:null;}['_init'](){const _0x396051=_0x221811;this['_univerInstanceService'][_0x396051(0x127)](_0x4fecd8[_0x396051(0x1a3)])['pipe'](_0x3d7e87(this[_0x396051(0x146)]))[_0x396051(0x1bf)](async _0x342f0c=>{const _0xd58b8b=_0x396051,_0x412d57=_0x342f0c[_0xd58b8b(0x174)]();this[_0xd58b8b(0x1be)][_0xd58b8b(0x15e)](_0x412d57)||this[_0xd58b8b(0x17b)](_0x412d57);}),this[_0x396051(0x194)]['getTypeOfUnitDisposed$'](_0x4fecd8['UNIVER_SHEET'])[_0x396051(0x16d)](_0x3d7e87(this['dispose$']))[_0x396051(0x1bf)](_0x28aa88=>{const _0x503de2=_0x396051,_0x2aa132=_0x28aa88[_0x503de2(0x174)](),_0x28c133=this['_entities'][_0x503de2(0x1b5)](_0x2aa132);_0x28c133==null||_0x28c133[_0x503de2(0x177)]();});}async[_0x221811(0x17b)](_0x1586f5){const _0x21f7ba=_0x221811,_0xf8791d=await this['_collabSessionService']['requireSession'](_0x1586f5),_0x265bff=this['_injector']['createInstance'](N,_0x1586f5,_0xf8791d);return _0x265bff[_0x21f7ba(0x199)](),this[_0x21f7ba(0x1be)][_0x21f7ba(0x152)](_0x1586f5,_0x265bff),_0x265bff;}};function _0x1745(){const _0x59f379=['asObservable','180940pjanDM','delete','getTypeOfUnitAdded$','OFFLINE','mutations','_handleTerminate','symbol','Start\x20following','1em','startFollowing','unsubscribe','clear','unitId','_commandService','univer-size-4','447734GbjpvL','stringify','includes','_unitID','status$','16XTUvtF','_stopFollowing','live-share.config','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','forEach','_handleOffline','UNIVER_UNKNOWN','defineProperty','map','toString','FOLLOWING','substring','children','dispose$','values','following','defs','stopPresenting','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','_init','105YpEDMh','NEW_CHANGESETS','send','2099199niqjAe','registerComponent','set','path','presenter','presenting','getOwnPropertyDescriptor','_configService','attrs','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','memberID','getLiveShareCoordinator','_config','has','1474626oNDPyu','_liveShareService','parse','offline','disposeWithMe','sessionStatus$','16891970YTWKVJ','url(#$1','idSuffix','sheet','trim','_stopPresenting','getStatus','OPERATION','pipe','button','operations','LIVESHARE_TERMINATE','_commandDisposable','fill','text','getUnitId','assign','ONLINE','dispose','none','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_FETCH_OPERATIONS','_startLiveShareCoordinator','colorChannel1','1110132JRRPZH','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','then','find','data','current','http://www.w3.org/2000/svg','onCommandExecuted','You\x27re\x20not\x20following\x20the\x20presenter','2277100BSyuDF','_status$','getValue','Stop\x20following','next','_fetchOperations','registerInitialStateReporter','tag','mask','LiveShareIcon','_injector','string','_collabSessionService','_univerInstanceService','length','complete','setConfig','getConfig','init','_beIdle','params','_presenter','_status','not-following','replace','getLiveShareCoordinatorSync','IDLE','_startFollowing','UNIVER_SHEET','HEADER_MENU','displayName','pluginName','shouldShareOperation','reverse','add','executeCommand','entries','LIVESHARE_NEW_HOST','currentColor','PRESENTING','_handleOperation','0\x200\x2017\x2017','evenodd','idle','xlink:href','4seKHVT','get','You\x27re\x20following\x20the\x20presenter','onStarting','LIVESHARE_REQUEST_HOST','_reporters','univerjs-icon\x20univerjs-icon-','getMemberID','registerSharedOperation','Present\x20this\x20document','_entities','subscribe','_uiPartsService','_collabSession','_handleOnline','Start','NOT_FOLLOWING','end','random','_handleNewHost','_sharedOperations','_startPresenting','default','div','use','_handleNewChangeSets','from'];_0x1745=function(){return _0x59f379;};return _0x1745();}S=Y([_(0x0,_0x34a265),_(0x1,_0x3b972f(_0x1e206d)),_(0x2,_0x3b972f(_0x1839d1))],S);var c=(_0x4faa0d=>(_0x4faa0d[_0x221811(0x128)]=_0x221811(0x162),_0x4faa0d[_0x221811(0x1a1)]=_0x221811(0x1b2),_0x4faa0d[_0x221811(0x143)]=_0x221811(0x148),_0x4faa0d['NOT_FOLLOWING']=_0x221811(0x19e),_0x4faa0d[_0x221811(0x1ae)]=_0x221811(0x155),_0x4faa0d))(c||{});const Ce=_0x221811(0x159),De=0xc8;let N=class extends _0x317033{constructor(_0x4c19f4,_0x31c774,_0x23e67d,_0x2e7fb6,_0xfd22e8){const _0x146a8e=_0x221811;super(),u(this,_0x146a8e(0x188),new _0x9a32b4('idle')),u(this,'status$',this[_0x146a8e(0x188)][_0x146a8e(0x124)]()),u(this,'_init',!0x1),u(this,_0x146a8e(0x171),null),u(this,'_presenter',null),(this[_0x146a8e(0x137)]=_0x4c19f4,this['_collabSession']=_0x31c774,this[_0x146a8e(0x157)]=_0x23e67d,this[_0x146a8e(0x160)]=_0x2e7fb6,this[_0x146a8e(0x132)]=_0xfd22e8);}get[_0x221811(0x19d)](){const _0x51f3e1=_0x221811;return this['_status$'][_0x51f3e1(0x189)]();}[_0x221811(0x177)](){const _0x22fc4a=_0x221811;var _0x27df7a;(_0x27df7a=this[_0x22fc4a(0x171)])==null||_0x27df7a[_0x22fc4a(0x177)](),this[_0x22fc4a(0x188)][_0x22fc4a(0x18b)](_0x22fc4a(0x1b2)),this[_0x22fc4a(0x188)][_0x22fc4a(0x196)]();}[_0x221811(0x16b)](){const _0x1da97c=_0x221811;return this[_0x1da97c(0x19d)];}['init'](){const _0x5e119f=_0x221811;this[_0x5e119f(0x14c)]||(this[_0x5e119f(0x14c)]=!0x0,this['_collabSession'][_0x5e119f(0x164)][_0x5e119f(0x16d)](_0x3d7e87(this['dispose$']))['subscribe'](_0xc6020a=>{const _0x370db1=_0x5e119f;switch(_0xc6020a){case _0x3fee76[_0x370db1(0x128)]:this[_0x370db1(0x13e)]();break;case _0x3fee76[_0x370db1(0x176)]:this[_0x370db1(0x1c2)]();break;}}),this[_0x5e119f(0x1c1)]['event$'][_0x5e119f(0x16d)](_0x3d7e87(this[_0x5e119f(0x146)]))[_0x5e119f(0x1bf)](_0x240184=>{const _0x1ecede=_0x5e119f,{eventID:_0x5746fc}=_0x240184;switch(_0x5746fc){case _0x3ec99e[_0x1ecede(0x1ac)]:this[_0x1ecede(0x1c7)](_0x240184);break;case _0x3ec99e['LIVESHARE_OPERATION']:this['_handleOperation'](_0x240184);break;case _0x3ec99e[_0x1ecede(0x170)]:this[_0x1ecede(0x12a)]();break;case _0x3ec99e[_0x1ecede(0x14e)]:this[_0x1ecede(0x1cd)](_0x240184);break;}}));}['tryStartPresenting'](){const _0x365163=_0x221811;this[_0x365163(0x1c1)][_0x365163(0x14f)]({'eventID':_0x3ec99e[_0x365163(0x1b8)],'data':{'unitID':this[_0x365163(0x137)],'userID':this[_0x365163(0x1c1)][_0x365163(0x1bb)]()}},this[_0x365163(0x137)]);}[_0x221811(0x14a)](){const _0x186731=_0x221811;this[_0x186731(0x19d)]==='presenting'&&(this[_0x186731(0x188)][_0x186731(0x18b)](_0x186731(0x1b2)),this[_0x186731(0x1c1)][_0x186731(0x14f)]({'eventID':_0x3ec99e[_0x186731(0x170)],'data':{'unitID':this[_0x186731(0x137)]}},this[_0x186731(0x137)]));}[_0x221811(0x12e)](){const _0x59c1c6=_0x221811;this[_0x59c1c6(0x19d)]===_0x59c1c6(0x19e)&&(this['_status$']['next']('following'),this[_0x59c1c6(0x1a2)]());}[_0x221811(0x17f)](){const _0x3c87d7=_0x221811;this[_0x3c87d7(0x19d)]===_0x3c87d7(0x148)&&this[_0x3c87d7(0x13a)]();}[_0x221811(0x1c7)](_0x38774b){const _0x26147e=_0x221811,{presenter:_0x568de2}=_0x38774b[_0x26147e(0x182)],_0x1ee82b=this[_0x26147e(0x1c1)][_0x26147e(0x1bb)]();this[_0x26147e(0x19c)]=_0x568de2,_0x568de2===_0x1ee82b?(this[_0x26147e(0x13a)](),this[_0x26147e(0x1c9)]()):this[_0x26147e(0x19d)]!==_0x26147e(0x19e)&&(this[_0x26147e(0x16a)](),this['_startFollowing']());}[_0x221811(0x18c)](){const _0x26a97f=_0x221811,_0x4371d8={'eventID':_0x3ec99e[_0x26a97f(0x17a)]};this[_0x26a97f(0x1c1)]['send'](_0x4371d8,this[_0x26a97f(0x137)]);}[_0x221811(0x12a)](){const _0x2db4c0=_0x221811;this[_0x2db4c0(0x19c)]=null,this[_0x2db4c0(0x19d)]!==_0x2db4c0(0x155)&&this[_0x2db4c0(0x19a)]();}[_0x221811(0x1cd)](_0xab9e6a){const _0x6f32d8=_0x221811;if(this[_0x6f32d8(0x19d)]===_0x6f32d8(0x148)&&this[_0x6f32d8(0x19c)]===_0xab9e6a[_0x6f32d8(0x182)][_0x6f32d8(0x15b)]){const _0x583621=_0x40eca1(_0xab9e6a[_0x6f32d8(0x182)])[_0x6f32d8(0x129)][_0x6f32d8(0x1a8)]()[_0x6f32d8(0x181)](_0xc28a72=>_0xc28a72['id']===_0x52e444['id']);if(_0x583621){const _0x57156a=_0x583621[_0x6f32d8(0x19b)][_0x6f32d8(0x131)],_0x3ce4c3=_0x583621['params'][_0x6f32d8(0x168)]['id'];setTimeout(()=>{const _0x596f4e=_0x6f32d8;this[_0x596f4e(0x132)][_0x596f4e(0x1aa)](_0x222c77['id'],{'unitId':_0x57156a,'subUnitId':_0x3ce4c3},{'fromCollab':!0x0});});}}}[_0x221811(0x1c9)](){const _0x2db157=_0x221811;this[_0x2db157(0x188)]['next']('presenting');const _0x4200fd=new Map(),_0x48d81f=this['_commandDisposable']=new _0x38a87f();_0x48d81f[_0x2db157(0x1a9)](_0x4e21f7(()=>{const _0x584e59=_0x2db157;_0x4200fd[_0x584e59(0x13d)](_0x17bf45=>_0x17bf45['complete']()),_0x4200fd[_0x584e59(0x130)]();})),_0x48d81f[_0x2db157(0x1a9)](this['_commandService'][_0x2db157(0x185)](_0x3bcb07=>{const _0x52500f=_0x2db157;var _0x48bb29;if(_0x3bcb07['type']!==_0x274666[_0x52500f(0x16c)]||!this[_0x52500f(0x160)][_0x52500f(0x1a7)](_0x3bcb07['id']))return;const {id:_0x52ddee}=_0x3bcb07;let _0x354757;_0x4200fd[_0x52500f(0x15e)](_0x52ddee)?_0x354757=_0x4200fd[_0x52500f(0x1b5)](_0x52ddee):(_0x354757=new _0x4cfb70(),_0x4200fd[_0x52500f(0x152)](_0x52ddee,_0x354757),_0x354757[_0x52500f(0x16d)](_0x1bd794((_0x48bb29=this[_0x52500f(0x157)][_0x52500f(0x198)](Ce))!=null?_0x48bb29:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x52500f(0x1bf)](_0x9f13b9=>{const _0x1e65e7=_0x52500f;this[_0x1e65e7(0x1c1)][_0x1e65e7(0x14f)]({'eventID':_0x3ec99e['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x9f13b9['id']]:{'id':_0x9f13b9['id'],'params':JSON[_0x1e65e7(0x135)](_0x9f13b9['params'])}}}},this[_0x1e65e7(0x137)]);})),_0x354757['next'](_0x3bcb07);})),this[_0x2db157(0x160)]['getInitialStates'](this[_0x2db157(0x137)])['forEach'](_0x492c05=>this[_0x2db157(0x1c1)][_0x2db157(0x14f)]({'eventID':_0x3ec99e['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2db157(0x137)],'operations':{[_0x492c05['id']]:{'id':_0x492c05['id'],'params':JSON[_0x2db157(0x135)](_0x492c05['params'])}}}},this['_unitID']));}[_0x221811(0x16a)](){const _0x58f706=_0x221811;var _0x28dca8;this[_0x58f706(0x188)][_0x58f706(0x18b)](_0x58f706(0x1b2)),(_0x28dca8=this[_0x58f706(0x171)])==null||_0x28dca8[_0x58f706(0x177)](),this[_0x58f706(0x171)]=null;}['_startFollowing'](){const _0x3f181e=_0x221811;var _0x4a3511;(_0x4a3511=this[_0x3f181e(0x171)])==null||_0x4a3511['dispose'](),this[_0x3f181e(0x188)]['next']('following');}['_beIdle'](){const _0x3b987a=_0x221811;var _0x529286;this[_0x3b987a(0x188)][_0x3b987a(0x18b)](_0x3b987a(0x1b2)),(_0x529286=this['_commandDisposable'])==null||_0x529286['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0xa80023=_0x221811;var _0x3265b9;this[_0xa80023(0x188)][_0xa80023(0x18b)](_0xa80023(0x19e)),(_0x3265b9=this[_0xa80023(0x171)])==null||_0x3265b9[_0xa80023(0x177)]();}[_0x221811(0x1af)](_0x2ef283){const _0x4ca27f=_0x221811;if([_0x4ca27f(0x155),_0x4ca27f(0x19e),_0x4ca27f(0x162)][_0x4ca27f(0x136)](this['_status'])||!_0x2ef283[_0x4ca27f(0x182)][_0x4ca27f(0x154)]||_0x2ef283[_0x4ca27f(0x182)][_0x4ca27f(0x154)]===this[_0x4ca27f(0x1c1)][_0x4ca27f(0x1bb)]())return;this[_0x4ca27f(0x19d)]===_0x4ca27f(0x1b2)&&this['_startFollowing']();const _0xaa10b1=_0x2ef283['data'][_0x4ca27f(0x16f)];Object[_0x4ca27f(0x147)](_0xaa10b1)[_0x4ca27f(0x13d)](_0x2d211e=>{const _0x4ba9d0=_0x4ca27f;this[_0x4ba9d0(0x132)][_0x4ba9d0(0x1aa)](_0x2d211e['id'],_0x2d211e['params']?JSON[_0x4ba9d0(0x161)](_0x2d211e[_0x4ba9d0(0x19b)]):null,{'fromCollab':!0x0});});}[_0x221811(0x13e)](){const _0x36d796=_0x221811;var _0x523e3f;this['_status$'][_0x36d796(0x18b)](_0x36d796(0x162)),(_0x523e3f=this[_0x36d796(0x171)])==null||_0x523e3f['dispose']();}[_0x221811(0x1c2)](){const _0x535ff5=_0x221811;this[_0x535ff5(0x188)][_0x535ff5(0x18b)]('idle'),this[_0x535ff5(0x18c)]();}};N=Y([_(0x2,_0x3c082e),_(0x3,_0x3b972f(L)),_(0x4,_0x2a3810)],N);function Le(){const _0x43a402=_0x221811,_0x26e912=_0x3ba771(S),_0x4dce2a=_0x3ba771(_0x34a265),_0x43f15e=_0x382b15(()=>_0x4dce2a['getCurrentTypeOfUnit$'](_0x4fecd8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1a9aed,_0x1d620a]=_0x20fc4e(null),[_0x1d9dc8,_0xf37569]=_0x20fc4e(c[_0x43a402(0x1a1)]),_0x8fea30=_0x3dea31(null);return _0x300d05(()=>(_0x43f15e&&_0x26e912[_0x43a402(0x15c)](_0x43f15e[_0x43a402(0x174)]())[_0x43a402(0x180)](_0x4eba86=>{const _0x50b8d6=_0x43a402;_0x1d620a(_0x4eba86),_0x8fea30[_0x50b8d6(0x183)]=_0x4eba86[_0x50b8d6(0x138)][_0x50b8d6(0x1bf)](_0x434bf9=>{_0xf37569(_0x434bf9);});}),()=>{const _0x358f3e=_0x43a402;var _0x5b15db;(_0x5b15db=_0x8fea30['current'])==null||_0x5b15db[_0x358f3e(0x12f)](),_0x8fea30[_0x358f3e(0x183)]=null;}),[_0x43f15e,_0x26e912]),_0x1a9aed?_0x394112(_0x195faf,{'align':_0x43a402(0x1c5),'disabled':_0x1d9dc8===c[_0x43a402(0x128)],'className':_0x43a402(0x14b),'overlay':_0x394112(Re,{'status':_0x1d9dc8,'coordinator':_0x1a9aed}),'children':_0x394112(_0x43a402(0x16e),{'className':_0x4a0fdb('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1d9dc8===c[_0x43a402(0x128)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d9dc8!==c[_0x43a402(0x128)]}),'type':'button','children':_0x394112(W,{'className':_0x43a402(0x133)})})}):null;}function Re(_0x379975){const _0x501bf6=_0x221811,{status:_0xf6a4ed,coordinator:_0x4f14d6}=_0x379975;switch(_0xf6a4ed){case c[_0x501bf6(0x1a1)]:return _0x394112($e,{'coordinator':_0x4f14d6});case c['FOLLOWING']:return _0x394112(xe,{'coordinator':_0x4f14d6});case c[_0x501bf6(0x1c4)]:return _0x394112(Pe,{'coordinator':_0x4f14d6});case c[_0x501bf6(0x128)]:return _0x394112(Te,{});case c['PRESENTING']:return _0x394112(Ae,{'coordinator':_0x4f14d6});default:return null;}}function $e(_0x575fa9){const _0x11beaa=_0x221811,{coordinator:_0x5b9bcf}=_0x575fa9;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x11beaa(0x1cb),{'className':_0x11beaa(0x17e),'children':_0x11beaa(0x1bd)}),_0x394112(_0x4da62a,{'onClick':()=>_0x5b9bcf['tryStartPresenting'](),'children':_0x11beaa(0x1c3)})]});}function xe(_0x36f248){const _0x28450b=_0x221811,{coordinator:_0xdf4b47}=_0x36f248;return _0x35a790(_0xf1c7f5,{'children':[_0x394112('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28450b(0x1b6)}),_0x394112(_0x4da62a,{'onClick':()=>_0xdf4b47['stopFollowing'](),'children':_0x28450b(0x18a)})]});}function Pe(_0x57f701){const _0x8b5e25=_0x221811,{coordinator:_0x1762af}=_0x57f701;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x8b5e25(0x1cb),{'className':_0x8b5e25(0x17e),'children':_0x8b5e25(0x186)}),_0x394112(_0x4da62a,{'variant':_0x8b5e25(0x173),'onClick':()=>_0x1762af[_0x8b5e25(0x12e)](),'children':_0x8b5e25(0x12c)})]});}function Ae(_0x40a8aa){const _0x294155=_0x221811,{coordinator:_0x3b2972}=_0x40a8aa;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x294155(0x1cb),{'className':_0x294155(0x17e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x394112(_0x4da62a,{'variant':_0x294155(0x1ca),'onClick':()=>_0x3b2972['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){return _0x394112(_0xf1c7f5,{'children':'You\x27are\x20offline.'});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x35fae4,_0x3f93b4,_0x195de5,_0x11e290)=>{for(var _0x4de847=_0x11e290>0x1?void 0x0:_0x11e290?Fe(_0x3f93b4,_0x195de5):_0x3f93b4,_0x74d76b=_0x35fae4['length']-0x1,_0x4838c4;_0x74d76b>=0x0;_0x74d76b--)(_0x4838c4=_0x35fae4[_0x74d76b])&&(_0x4de847=_0x4838c4(_0x4de847)||_0x4de847);return _0x4de847;},A=(_0x52f16e,_0x553295)=>(_0x213c39,_0x1ab16b)=>_0x553295(_0x213c39,_0x1ab16b,_0x52f16e);let m=class extends _0x5584fb{constructor(_0x28f257,_0x4c0e58){const _0x4f80ab=_0x221811;super(),this[_0x4f80ab(0x191)]=_0x28f257,this['_uiPartsService']=_0x4c0e58,this[_0x4f80ab(0x15a)]();}[_0x221811(0x15a)](){const _0x287327=_0x221811;this[_0x287327(0x163)](this[_0x287327(0x1c0)][_0x287327(0x151)](_0x39e9b0[_0x287327(0x1a4)],()=>_0x19746f(Le,this['_injector'])));}};m=He([A(0x0,_0x3b972f(_0x1e206d)),A(0x1,_0x2df529)],m);const ye=_0x221811(0x13b),T={};var Ue=Object[_0x221811(0x156)],Ve=(_0x53c3a8,_0x36fd72,_0x5468a2,_0x34abac)=>{const _0x1fab97=_0x221811;for(var _0x32abaf=_0x34abac>0x1?void 0x0:_0x34abac?Ue(_0x36fd72,_0x5468a2):_0x36fd72,_0x1f375e=_0x53c3a8[_0x1fab97(0x195)]-0x1,_0x360244;_0x1f375e>=0x0;_0x1f375e--)(_0x360244=_0x53c3a8[_0x1f375e])&&(_0x32abaf=_0x360244(_0x32abaf)||_0x32abaf);return _0x32abaf;},je=(_0x45d15b,_0x5c189b)=>(_0x498899,_0x28088e)=>_0x5c189b(_0x498899,_0x28088e,_0x45d15b);let I=class extends _0x5584fb{constructor(_0xa67071){const _0x102e26=_0x221811;super(),this['_liveShareService']=_0xa67071,this[_0x102e26(0x14c)]();}[_0x221811(0x14c)](){[_0x3a61b7['id'],_0x1e8464['id'],_0x222c77['id']]['forEach'](_0x304360=>{const _0x4c14f1=_0x2e9a;this[_0x4c14f1(0x163)](this[_0x4c14f1(0x160)][_0x4c14f1(0x1bc)](_0x304360));});}};I=Ve([je(0x0,_0x3b972f(L))],I);var Me=Object[_0x221811(0x140)],ke=Object[_0x221811(0x156)],Ge=(_0x1699ed,_0x307fac,_0x32daaf)=>_0x307fac in _0x1699ed?Me(_0x1699ed,_0x307fac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32daaf}):_0x1699ed[_0x307fac]=_0x32daaf,We=(_0x544d81,_0x5843cb,_0x32db75,_0x35fed6)=>{const _0x3a252f=_0x221811;for(var _0x1377e5=_0x35fed6>0x1?void 0x0:_0x35fed6?ke(_0x5843cb,_0x32db75):_0x5843cb,_0x44480b=_0x544d81[_0x3a252f(0x195)]-0x1,_0x380dfc;_0x44480b>=0x0;_0x44480b--)(_0x380dfc=_0x544d81[_0x44480b])&&(_0x1377e5=_0x380dfc(_0x1377e5)||_0x1377e5);return _0x1377e5;},F=(_0x2c9782,_0x36fd95)=>(_0x427cb3,_0x344910)=>_0x36fd95(_0x427cb3,_0x344910,_0x2c9782),B=(_0x4bcd0e,_0x295c7f,_0x51efd5)=>Ge(_0x4bcd0e,typeof _0x295c7f!=_0x221811(0x12b)?_0x295c7f+'':_0x295c7f,_0x51efd5);const Ye=_0x221811(0x179);let b=class extends _0x54e800{constructor(_0x4965c7=T,_0x569af8,_0x2f65de){const _0x24a8a9=_0x221811;super(),this['_config']=_0x4965c7,this[_0x24a8a9(0x191)]=_0x569af8,this[_0x24a8a9(0x157)]=_0x2f65de;const {..._0x3d493f}=_0x47f8b3({},T,this[_0x24a8a9(0x15d)]);this['_configService'][_0x24a8a9(0x197)](ye,_0x3d493f);}[_0x221811(0x1b7)](){const _0x5f01fe=_0x221811;_0x38128c(this['_injector'],_0x28e201([[L],[S],[I],[m]],this[_0x5f01fe(0x15d)]['override'])),_0x441580(this[_0x5f01fe(0x191)],[[I]]);}['onRendered'](){const _0x4ac341=_0x221811;_0x441580(this[_0x4ac341(0x191)],[[m]]);}};B(b,'type',_0x4fecd8[_0x221811(0x13f)]),B(b,_0x221811(0x1a6),Ye),b=We([_0x4ef44e(_0x121829),F(0x1,_0x3b972f(_0x1e206d)),F(0x2,_0x3c082e)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x57791f=_0x2c32;(function(_0x54fa82,_0x4973e7){const _0x23c84f=_0x2c32,_0x2e29d1=_0x54fa82();while(!![]){try{const _0x7b1c36=parseInt(_0x23c84f(0x24d))/0x1+parseInt(_0x23c84f(0x1e9))/0x2+-parseInt(_0x23c84f(0x23a))/0x3*(parseInt(_0x23c84f(0x235))/0x4)+-parseInt(_0x23c84f(0x273))/0x5*(parseInt(_0x23c84f(0x261))/0x6)+-parseInt(_0x23c84f(0x269))/0x7*(-parseInt(_0x23c84f(0x1e4))/0x8)+-parseInt(_0x23c84f(0x24a))/0x9+parseInt(_0x23c84f(0x21c))/0xa*(parseInt(_0x23c84f(0x25c))/0xb);if(_0x7b1c36===_0x4973e7)break;else _0x2e29d1['push'](_0x2e29d1['shift']());}catch(_0x2b7a86){_0x2e29d1['push'](_0x2e29d1['shift']());}}}(_0x47de,0xd96a9));var J=Object[_0x57791f(0x24b)],K=(_0x4825a5,_0x589424,_0x1483f6)=>_0x589424 in _0x4825a5?J(_0x4825a5,_0x589424,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1483f6}):_0x4825a5[_0x589424]=_0x1483f6,u=(_0x38b1f2,_0x30a8ff,_0x4903f4)=>K(_0x38b1f2,typeof _0x30a8ff!=_0x57791f(0x24f)?_0x30a8ff+'':_0x30a8ff,_0x4903f4);import{Disposable as _0x586517,toDisposable as _0x2b6ac2,IUniverInstanceService as _0x50f749,Inject as _0x58c47f,Injector as _0x337fab,IConfigService as _0x1a7034,ICommandService as _0x4ad104,RxDisposable as _0xaf6b52,UniverInstanceType as _0x469e4a,DisposableCollection as _0x3803ff,CommandType as _0x3018fa,DependentOn as _0x54389d,Plugin as _0x288486,merge as _0x2293ae,registerDependencies as _0x1849c5,mergeOverrideWithDependencies as _0x40e0b3,touchDependencies as _0x5b1334}from'@univerjs/core';import{useDependency as _0x173f99,useObservable as _0xa17243,IUIPartsService as _0x3ddec6,BuiltInUIPart as _0x4296f0,connectInjector as _0x2e917a}from'@univerjs/ui';import{jsx as _0x47899f,jsxs as _0x585bf4,Fragment as _0x1aad73}from'react/jsx-runtime';import{Dropdown as _0x4832fe,clsx as _0x183b25,Button as _0x16a64c}from'@univerjs/design';import{useRef as _0x1d2dfb,createElement as _0x3b748f,forwardRef as _0x26d85a,useState as _0x4faa64,useEffect as _0x4695ab}from'react';import{CollaborationEvent as _0x56ba98,parseProtocolChangeset as _0x2b0cec}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x208377,SessionStatus as _0x9d842f,UniverCollaborationClientPlugin as _0x28e03d}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3cb9ca,SetWorksheetActiveOperation as _0x2d9b0e}from'@univerjs/sheets';import{BehaviorSubject as _0x27311b,Subject as _0x1fa751}from'rxjs';import{takeUntil as _0x11a52f,throttleTime as _0x412eba}from'rxjs/operators';import{SetZoomRatioOperation as _0x5ce85d,SetScrollOperation as _0x4c3e16}from'@univerjs/sheets-ui';function k({ref:_0x59e281,..._0x1408d3}){const _0x35fcf1=_0x57791f,{icon:_0x28f6ef,id:_0xee3966,className:_0x3a9163,extend:_0x2dd190,..._0x16d565}=_0x1408d3,_0x945a90=('univerjs-icon\x20univerjs-icon-'+_0xee3966+'\x20'+(_0x3a9163||''))['trim'](),_0x37e69c=_0x1d2dfb('_'+Oe());return G(_0x28f6ef,''+_0xee3966,{'defIds':_0x28f6ef[_0x35fcf1(0x259)],'idSuffix':_0x37e69c[_0x35fcf1(0x228)]},{'ref':_0x59e281,'className':_0x945a90,..._0x16d565},_0x2dd190);}function G(_0xcdfd5e,_0x10971e,_0x314010,_0x396d54,_0x5eee10){const _0x2b13a7=_0x57791f;return _0x3b748f(_0xcdfd5e['tag'],{'key':_0x10971e,...be(_0xcdfd5e,_0x314010,_0x5eee10),..._0x396d54},(Ee(_0xcdfd5e,_0x314010)[_0x2b13a7(0x23d)]||[])['map']((_0x4dd1fb,_0x50196a)=>G(_0x4dd1fb,_0x10971e+'-'+_0xcdfd5e[_0x2b13a7(0x200)]+'-'+_0x50196a,_0x314010,void 0x0,_0x5eee10)));}function be(_0x387861,_0x1cfdbe,_0x1d8e1c){const _0x19205f=_0x57791f,_0x2cb95a={..._0x387861[_0x19205f(0x255)]};_0x1d8e1c!=null&&_0x1d8e1c[_0x19205f(0x230)]&&_0x2cb95a[_0x19205f(0x1eb)]===_0x19205f(0x230)&&(_0x2cb95a['fill']=_0x1d8e1c[_0x19205f(0x230)]),_0x387861[_0x19205f(0x200)]===_0x19205f(0x1e5)&&_0x2cb95a['id']&&(_0x2cb95a['id']=_0x2cb95a['id']+_0x1cfdbe['idSuffix']),Object[_0x19205f(0x1f7)](_0x2cb95a)[_0x19205f(0x24e)](([_0xb8308e,_0x10b6ab])=>{const _0x1c32d0=_0x19205f;_0xb8308e===_0x1c32d0(0x1e5)&&typeof _0x10b6ab=='string'&&(_0x2cb95a[_0xb8308e]=_0x10b6ab[_0x1c32d0(0x242)](/url\(#(.*)\)/,_0x1c32d0(0x1d3)+_0x1cfdbe[_0x1c32d0(0x1e2)]+')'));});const {defIds:_0x2a8bfc}=_0x1cfdbe;return!_0x2a8bfc||_0x2a8bfc[_0x19205f(0x1d7)]===0x0||(_0x387861[_0x19205f(0x200)]===_0x19205f(0x1fa)&&_0x2cb95a['xlink:href']&&(_0x2cb95a[_0x19205f(0x210)]=_0x2cb95a[_0x19205f(0x210)]+_0x1cfdbe[_0x19205f(0x1e2)]),Object['entries'](_0x2cb95a)[_0x19205f(0x24e)](([_0x8587fa,_0x56d0e6])=>{const _0x34937e=_0x19205f;typeof _0x56d0e6==_0x34937e(0x1f9)&&(_0x2cb95a[_0x8587fa]=_0x56d0e6[_0x34937e(0x242)](/url\(#(.*)\)/,_0x34937e(0x1d3)+_0x1cfdbe['idSuffix']+')'));})),_0x2cb95a;}function Ee(_0x105694,_0x3a99c0){const _0x3f4690=_0x57791f;var _0x409d84;const {defIds:_0xafe833}=_0x3a99c0;return!_0xafe833||_0xafe833[_0x3f4690(0x1d7)]===0x0?_0x105694:_0x105694['tag']===_0x3f4690(0x1ef)&&((_0x409d84=_0x105694[_0x3f4690(0x23d)])!=null&&_0x409d84['length'])?{..._0x105694,'children':_0x105694[_0x3f4690(0x23d)]['map'](_0x115808=>typeof _0x115808[_0x3f4690(0x255)]['id']==_0x3f4690(0x1f9)&&_0xafe833&&_0xafe833[_0x3f4690(0x21e)](_0x115808[_0x3f4690(0x255)]['id'])?{..._0x115808,'attrs':{..._0x115808['attrs'],'id':_0x115808[_0x3f4690(0x255)]['id']+_0x3a99c0['idSuffix']}}:_0x115808)}:_0x105694;}function Oe(){const _0x4b531c=_0x57791f;return Math[_0x4b531c(0x236)]()['toString'](0x24)[_0x4b531c(0x1ed)](0x2,0x8);}k[_0x57791f(0x224)]=_0x57791f(0x1f8);const we={'tag':_0x57791f(0x20d),'attrs':{'xmlns':_0x57791f(0x1e6),'fill':_0x57791f(0x1fd),'viewBox':_0x57791f(0x22e),'width':'1em','height':_0x57791f(0x249)},'children':[{'tag':'path','attrs':{'fill':_0x57791f(0x247),'d':_0x57791f(0x253)}},{'tag':_0x57791f(0x22d),'attrs':{'fill':'currentColor','d':_0x57791f(0x1f2),'fillRule':_0x57791f(0x260),'clipRule':_0x57791f(0x260)}}]},W=_0x26d85a(function(_0x26ab41,_0x4185bd){const _0x17c253=_0x57791f;return _0x3b748f(k,Object[_0x17c253(0x202)]({},_0x26ab41,{'id':_0x17c253(0x208),'ref':_0x4185bd,'icon':we}));});W['displayName']=_0x57791f(0x22a);class L extends _0x586517{constructor(){const _0x2d4bf6=_0x57791f;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x2d4bf6(0x209),new Set());}['registerSharedOperation'](_0x1b1067){const _0x43a568=_0x57791f;return this[_0x43a568(0x1df)][_0x43a568(0x1dd)](_0x1b1067),_0x2b6ac2(()=>this[_0x43a568(0x1df)][_0x43a568(0x1f4)](_0x1b1067));}[_0x57791f(0x25f)](_0x4d633f){const _0x226e87=_0x57791f;return this[_0x226e87(0x209)][_0x226e87(0x1dd)](_0x4d633f),_0x2b6ac2(()=>this['_reporters'][_0x226e87(0x1f4)](_0x4d633f));}[_0x57791f(0x216)](_0x3487d1){const _0x10a86d=_0x57791f;return this[_0x10a86d(0x1df)]['has'](_0x3487d1);}[_0x57791f(0x1d8)](_0x44d1b4){const _0xa84eab=_0x57791f;return Array['from'](this[_0xa84eab(0x209)])[_0xa84eab(0x1d4)](_0x9fe3ae=>_0x9fe3ae(_0x44d1b4));}}var Ne=Object[_0x57791f(0x1ee)],Y=(_0x501797,_0x580d94,_0x5c5604,_0x4e5ebe)=>{const _0x1ee547=_0x57791f;for(var _0x4b0b6b=_0x4e5ebe>0x1?void 0x0:_0x4e5ebe?Ne(_0x580d94,_0x5c5604):_0x580d94,_0x2c1293=_0x501797[_0x1ee547(0x1d7)]-0x1,_0x2ec4e9;_0x2c1293>=0x0;_0x2c1293--)(_0x2ec4e9=_0x501797[_0x2c1293])&&(_0x4b0b6b=_0x2ec4e9(_0x4b0b6b)||_0x4b0b6b);return _0x4b0b6b;},_=(_0x5859bc,_0x45dc7f)=>(_0xda0ba5,_0x2117ec)=>_0x45dc7f(_0xda0ba5,_0x2117ec,_0x5859bc);let S=class extends _0xaf6b52{constructor(_0x18071a,_0x562bab,_0x2ae5e7){const _0x48af8b=_0x57791f;super(),u(this,_0x48af8b(0x217),new Map()),(this[_0x48af8b(0x250)]=_0x18071a,this['_injector']=_0x562bab,this[_0x48af8b(0x213)]=_0x2ae5e7,this[_0x48af8b(0x1e8)]());}async[_0x57791f(0x1d9)](_0x3397ba){const _0x58e122=_0x57791f;return this[_0x58e122(0x217)][_0x58e122(0x274)](_0x3397ba)||await this[_0x58e122(0x1de)](_0x3397ba),this[_0x58e122(0x217)][_0x58e122(0x203)](_0x3397ba);}['getLiveShareCoordinatorSync'](_0x2c80ef){const _0x55bfad=_0x57791f;var _0x1800c3;return(_0x1800c3=this[_0x55bfad(0x217)][_0x55bfad(0x203)](_0x2c80ef))!=null?_0x1800c3:null;}[_0x57791f(0x1e8)](){const _0x471f78=_0x57791f;this[_0x471f78(0x250)][_0x471f78(0x23e)](_0x469e4a[_0x471f78(0x232)])[_0x471f78(0x1f3)](_0x11a52f(this[_0x471f78(0x20b)]))[_0x471f78(0x245)](async _0x53022b=>{const _0x587980=_0x471f78,_0x31fa8c=_0x53022b[_0x587980(0x244)]();this[_0x587980(0x217)][_0x587980(0x274)](_0x31fa8c)||this['_startLiveShareCoordinator'](_0x31fa8c);}),this[_0x471f78(0x250)][_0x471f78(0x20a)](_0x469e4a[_0x471f78(0x232)])[_0x471f78(0x1f3)](_0x11a52f(this['dispose$']))['subscribe'](_0x2a0573=>{const _0x31f758=_0x471f78,_0x47335f=_0x2a0573['getUnitId'](),_0x5bf655=this[_0x31f758(0x217)]['get'](_0x47335f);_0x5bf655==null||_0x5bf655[_0x31f758(0x25d)]();});}async[_0x57791f(0x1de)](_0x6158e6){const _0x4db9b7=_0x57791f,_0x52a323=await this['_collabSessionService']['requireSession'](_0x6158e6),_0x5d2325=this[_0x4db9b7(0x26b)][_0x4db9b7(0x20c)](N,_0x6158e6,_0x52a323);return _0x5d2325[_0x4db9b7(0x265)](),this[_0x4db9b7(0x217)]['set'](_0x6158e6,_0x5d2325),_0x5d2325;}};S=Y([_(0x0,_0x50f749),_(0x1,_0x58c47f(_0x337fab)),_(0x2,_0x58c47f(_0x208377))],S);var c=(_0x38cf86=>(_0x38cf86[_0x57791f(0x23b)]=_0x57791f(0x1fc),_0x38cf86[_0x57791f(0x1f0)]=_0x57791f(0x264),_0x38cf86[_0x57791f(0x26c)]=_0x57791f(0x227),_0x38cf86[_0x57791f(0x26a)]=_0x57791f(0x229),_0x38cf86['PRESENTING']='presenting',_0x38cf86))(c||{});const Ce=_0x57791f(0x24c),De=0xc8;let N=class extends _0xaf6b52{constructor(_0xb77f01,_0x43248f,_0x226202,_0x29b246,_0x58ba1d){const _0x155ea7=_0x57791f;super(),u(this,'_status$',new _0x27311b(_0x155ea7(0x264))),u(this,'status$',this[_0x155ea7(0x1d5)]['asObservable']()),u(this,_0x155ea7(0x1e8),!0x1),u(this,_0x155ea7(0x215),null),u(this,_0x155ea7(0x21f),null),(this[_0x155ea7(0x205)]=_0xb77f01,this[_0x155ea7(0x271)]=_0x43248f,this[_0x155ea7(0x211)]=_0x226202,this[_0x155ea7(0x251)]=_0x29b246,this['_commandService']=_0x58ba1d);}get[_0x57791f(0x222)](){const _0x500735=_0x57791f;return this[_0x500735(0x1d5)]['getValue']();}['dispose'](){const _0x3b6f09=_0x57791f;var _0x46f65e;(_0x46f65e=this[_0x3b6f09(0x215)])==null||_0x46f65e[_0x3b6f09(0x25d)](),this[_0x3b6f09(0x1d5)][_0x3b6f09(0x263)](_0x3b6f09(0x264)),this['_status$']['complete']();}[_0x57791f(0x272)](){const _0x460aa6=_0x57791f;return this[_0x460aa6(0x222)];}[_0x57791f(0x265)](){const _0x3a7500=_0x57791f;this[_0x3a7500(0x1e8)]||(this[_0x3a7500(0x1e8)]=!0x0,this[_0x3a7500(0x271)][_0x3a7500(0x21a)]['pipe'](_0x11a52f(this[_0x3a7500(0x20b)]))[_0x3a7500(0x245)](_0x4e0107=>{const _0x425eea=_0x3a7500;switch(_0x4e0107){case _0x9d842f[_0x425eea(0x23b)]:this[_0x425eea(0x234)]();break;case _0x9d842f[_0x425eea(0x206)]:this['_handleOnline']();break;}}),this[_0x3a7500(0x271)][_0x3a7500(0x1da)][_0x3a7500(0x1f3)](_0x11a52f(this['dispose$']))[_0x3a7500(0x245)](_0x5e777a=>{const _0x1cb0d7=_0x3a7500,{eventID:_0x4093a2}=_0x5e777a;switch(_0x4093a2){case _0x56ba98[_0x1cb0d7(0x258)]:this[_0x1cb0d7(0x252)](_0x5e777a);break;case _0x56ba98['LIVESHARE_OPERATION']:this[_0x1cb0d7(0x1e3)](_0x5e777a);break;case _0x56ba98[_0x1cb0d7(0x22c)]:this['_handleTerminate']();break;case _0x56ba98[_0x1cb0d7(0x1f5)]:this['_handleNewChangeSets'](_0x5e777a);break;}}));}[_0x57791f(0x201)](){const _0x1bf0b4=_0x57791f;this[_0x1bf0b4(0x271)][_0x1bf0b4(0x1d6)]({'eventID':_0x56ba98['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1bf0b4(0x205)],'userID':this['_collabSession'][_0x1bf0b4(0x262)]()}},this[_0x1bf0b4(0x205)]);}[_0x57791f(0x22b)](){const _0x14a667=_0x57791f;this['_status']===_0x14a667(0x276)&&(this[_0x14a667(0x1d5)]['next'](_0x14a667(0x264)),this['_collabSession'][_0x14a667(0x1d6)]({'eventID':_0x56ba98['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x14a667(0x205)]}},this[_0x14a667(0x205)]));}[_0x57791f(0x248)](){const _0x36c2a0=_0x57791f;this['_status']==='not-following'&&(this[_0x36c2a0(0x1d5)]['next'](_0x36c2a0(0x227)),this[_0x36c2a0(0x214)]());}[_0x57791f(0x25a)](){const _0x2dcd80=_0x57791f;this[_0x2dcd80(0x222)]===_0x2dcd80(0x227)&&this[_0x2dcd80(0x1d2)]();}[_0x57791f(0x252)](_0x260329){const _0x59ca07=_0x57791f,{presenter:_0x17c45d}=_0x260329[_0x59ca07(0x1f6)],_0x3124c9=this[_0x59ca07(0x271)]['getMemberID']();this[_0x59ca07(0x21f)]=_0x17c45d,_0x17c45d===_0x3124c9?(this[_0x59ca07(0x1d2)](),this[_0x59ca07(0x20e)]()):this[_0x59ca07(0x222)]!=='not-following'&&(this[_0x59ca07(0x266)](),this[_0x59ca07(0x214)]());}['_fetchOperations'](){const _0x31b09a=_0x57791f,_0x46c789={'eventID':_0x56ba98['LIVESHARE_FETCH_OPERATIONS']};this[_0x31b09a(0x271)][_0x31b09a(0x1d6)](_0x46c789,this[_0x31b09a(0x205)]);}[_0x57791f(0x1ff)](){const _0x526e9e=_0x57791f;this[_0x526e9e(0x21f)]=null,this['_status']!==_0x526e9e(0x276)&&this[_0x526e9e(0x204)]();}[_0x57791f(0x225)](_0x7f7933){const _0x22493c=_0x57791f;if(this[_0x22493c(0x222)]===_0x22493c(0x227)&&this['_presenter']===_0x7f7933[_0x22493c(0x1f6)][_0x22493c(0x267)]){const _0x4be5be=_0x2b0cec(_0x7f7933['data'])['mutations']['reverse']()['find'](_0x5346ab=>_0x5346ab['id']===_0x3cb9ca['id']);if(_0x4be5be){const _0x500024=_0x4be5be[_0x22493c(0x240)][_0x22493c(0x246)],_0x443ae0=_0x4be5be['params'][_0x22493c(0x21b)]['id'];setTimeout(()=>{const _0xab352c=_0x22493c;this[_0xab352c(0x239)][_0xab352c(0x25b)](_0x2d9b0e['id'],{'unitId':_0x500024,'subUnitId':_0x443ae0},{'fromCollab':!0x0});});}}}[_0x57791f(0x20e)](){const _0x4615e5=_0x57791f;this['_status$']['next'](_0x4615e5(0x276));const _0x532596=new Map(),_0x6c75af=this['_commandDisposable']=new _0x3803ff();_0x6c75af[_0x4615e5(0x1dd)](_0x2b6ac2(()=>{const _0x537c25=_0x4615e5;_0x532596[_0x537c25(0x24e)](_0x2dc73d=>_0x2dc73d[_0x537c25(0x1ec)]()),_0x532596['clear']();})),_0x6c75af['add'](this['_commandService'][_0x4615e5(0x26f)](_0x8dad7e=>{const _0x55e78e=_0x4615e5;var _0x1be19a;if(_0x8dad7e['type']!==_0x3018fa['OPERATION']||!this[_0x55e78e(0x251)][_0x55e78e(0x216)](_0x8dad7e['id']))return;const {id:_0xa0e940}=_0x8dad7e;let _0x2ab0ee;_0x532596[_0x55e78e(0x274)](_0xa0e940)?_0x2ab0ee=_0x532596[_0x55e78e(0x203)](_0xa0e940):(_0x2ab0ee=new _0x1fa751(),_0x532596[_0x55e78e(0x23f)](_0xa0e940,_0x2ab0ee),_0x2ab0ee[_0x55e78e(0x1f3)](_0x412eba((_0x1be19a=this[_0x55e78e(0x211)][_0x55e78e(0x231)](Ce))!=null?_0x1be19a:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x55e78e(0x245)](_0x171e6c=>{const _0x5bfaef=_0x55e78e;this['_collabSession'][_0x5bfaef(0x1d6)]({'eventID':_0x56ba98[_0x5bfaef(0x226)],'data':{'unitID':this[_0x5bfaef(0x205)],'operations':{[_0x171e6c['id']]:{'id':_0x171e6c['id'],'params':JSON[_0x5bfaef(0x241)](_0x171e6c[_0x5bfaef(0x240)])}}}},this['_unitID']);})),_0x2ab0ee[_0x55e78e(0x263)](_0x8dad7e);})),this[_0x4615e5(0x251)][_0x4615e5(0x1d8)](this[_0x4615e5(0x205)])[_0x4615e5(0x24e)](_0x31ec34=>this[_0x4615e5(0x271)]['send']({'eventID':_0x56ba98['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x31ec34['id']]:{'id':_0x31ec34['id'],'params':JSON[_0x4615e5(0x241)](_0x31ec34['params'])}}}},this[_0x4615e5(0x205)]));}[_0x57791f(0x266)](){const _0x382ee7=_0x57791f;var _0xb7c9ca;this['_status$'][_0x382ee7(0x263)](_0x382ee7(0x264)),(_0xb7c9ca=this[_0x382ee7(0x215)])==null||_0xb7c9ca[_0x382ee7(0x25d)](),this[_0x382ee7(0x215)]=null;}[_0x57791f(0x214)](){const _0x1a772e=_0x57791f;var _0x11c4fe;(_0x11c4fe=this[_0x1a772e(0x215)])==null||_0x11c4fe['dispose'](),this[_0x1a772e(0x1d5)][_0x1a772e(0x263)]('following');}[_0x57791f(0x204)](){const _0x2fe777=_0x57791f;var _0x27c535;this['_status$']['next']('idle'),(_0x27c535=this[_0x2fe777(0x215)])==null||_0x27c535[_0x2fe777(0x25d)](),this[_0x2fe777(0x215)]=null;}[_0x57791f(0x1d2)](){const _0x127a30=_0x57791f;var _0x19c61a;this[_0x127a30(0x1d5)][_0x127a30(0x263)](_0x127a30(0x229)),(_0x19c61a=this['_commandDisposable'])==null||_0x19c61a[_0x127a30(0x25d)]();}[_0x57791f(0x1e3)](_0x8d7c5a){const _0x11204e=_0x57791f;if(['presenting',_0x11204e(0x229),_0x11204e(0x1fc)][_0x11204e(0x21e)](this[_0x11204e(0x222)])||!_0x8d7c5a[_0x11204e(0x1f6)]['presenter']||_0x8d7c5a[_0x11204e(0x1f6)]['presenter']===this[_0x11204e(0x271)][_0x11204e(0x262)]())return;this[_0x11204e(0x222)]===_0x11204e(0x264)&&this[_0x11204e(0x214)]();const _0x1da320=_0x8d7c5a[_0x11204e(0x1f6)][_0x11204e(0x1e0)];Object['values'](_0x1da320)[_0x11204e(0x24e)](_0xf184b6=>{const _0x6e66e5=_0x11204e;this[_0x6e66e5(0x239)][_0x6e66e5(0x25b)](_0xf184b6['id'],_0xf184b6[_0x6e66e5(0x240)]?JSON[_0x6e66e5(0x207)](_0xf184b6[_0x6e66e5(0x240)]):null,{'fromCollab':!0x0});});}[_0x57791f(0x234)](){const _0x58f265=_0x57791f;var _0x44ee50;this[_0x58f265(0x1d5)][_0x58f265(0x263)](_0x58f265(0x1fc)),(_0x44ee50=this[_0x58f265(0x215)])==null||_0x44ee50['dispose']();}[_0x57791f(0x1ea)](){const _0x26abbb=_0x57791f;this[_0x26abbb(0x1d5)]['next'](_0x26abbb(0x264)),this['_fetchOperations']();}};N=Y([_(0x2,_0x1a7034),_(0x3,_0x58c47f(L)),_(0x4,_0x4ad104)],N);function Le(){const _0x351e8d=_0x57791f,_0x4a41c9=_0x173f99(S),_0x528556=_0x173f99(_0x50f749),_0x59b61c=_0xa17243(()=>_0x528556[_0x351e8d(0x268)](_0x469e4a[_0x351e8d(0x232)]),void 0x0,!0x1,[]),[_0x55ed1f,_0x110e5a]=_0x4faa64(null),[_0x162232,_0x11f8a1]=_0x4faa64(c['IDLE']),_0x2a11de=_0x1d2dfb(null);return _0x4695ab(()=>(_0x59b61c&&_0x4a41c9['getLiveShareCoordinator'](_0x59b61c[_0x351e8d(0x244)]())[_0x351e8d(0x275)](_0x2b9a46=>{const _0x4fa037=_0x351e8d;_0x110e5a(_0x2b9a46),_0x2a11de[_0x4fa037(0x228)]=_0x2b9a46['status$'][_0x4fa037(0x245)](_0x2a3f3c=>{_0x11f8a1(_0x2a3f3c);});}),()=>{const _0x554cef=_0x351e8d;var _0xda6676;(_0xda6676=_0x2a11de[_0x554cef(0x228)])==null||_0xda6676['unsubscribe'](),_0x2a11de['current']=null;}),[_0x59b61c,_0x4a41c9]),_0x55ed1f?_0x47899f(_0x4832fe,{'align':_0x351e8d(0x238),'disabled':_0x162232===c['OFFLINE'],'className':_0x351e8d(0x254),'overlay':_0x47899f(Re,{'status':_0x162232,'coordinator':_0x55ed1f}),'children':_0x47899f(_0x351e8d(0x219),{'className':_0x183b25('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x162232===c[_0x351e8d(0x23b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x162232!==c['OFFLINE']}),'type':_0x351e8d(0x219),'children':_0x47899f(W,{'className':_0x351e8d(0x256)})})}):null;}function Re(_0x483c74){const _0x123a3b=_0x57791f,{status:_0x36e11f,coordinator:_0x40aa0e}=_0x483c74;switch(_0x36e11f){case c['IDLE']:return _0x47899f($e,{'coordinator':_0x40aa0e});case c[_0x123a3b(0x26c)]:return _0x47899f(xe,{'coordinator':_0x40aa0e});case c['NOT_FOLLOWING']:return _0x47899f(Pe,{'coordinator':_0x40aa0e});case c[_0x123a3b(0x23b)]:return _0x47899f(Te,{});case c[_0x123a3b(0x218)]:return _0x47899f(Ae,{'coordinator':_0x40aa0e});default:return null;}}function $e(_0x2ec0b7){const _0x592010=_0x57791f,{coordinator:_0x56743c}=_0x2ec0b7;return _0x585bf4(_0x1aad73,{'children':[_0x47899f(_0x592010(0x277),{'className':_0x592010(0x26e),'children':_0x592010(0x1e1)}),_0x47899f(_0x16a64c,{'onClick':()=>_0x56743c[_0x592010(0x201)](),'children':'Start'})]});}function xe(_0x1d41fb){const _0x1b673f=_0x57791f,{coordinator:_0x5a53bc}=_0x1d41fb;return _0x585bf4(_0x1aad73,{'children':[_0x47899f(_0x1b673f(0x277),{'className':_0x1b673f(0x26e),'children':_0x1b673f(0x1fe)}),_0x47899f(_0x16a64c,{'onClick':()=>_0x5a53bc['stopFollowing'](),'children':_0x1b673f(0x1e7)})]});}function _0x47de(){const _0x3c95d4=['override','_mountLiveShare','_status','live-share.config','displayName','_handleNewChangeSets','LIVESHARE_OPERATION','following','current','not-following','LiveShareIcon','stopPresenting','LIVESHARE_TERMINATE','path','0\x200\x2017\x2017','Stop\x20presenting','colorChannel1','getConfig','UNIVER_SHEET','disposeWithMe','_handleOffline','4TJLgok','random','registerComponent','end','_commandService','1008753GEvfoZ','OFFLINE','registerSharedOperation','children','getTypeOfUnitAdded$','set','params','stringify','replace','HEADER_MENU','getUnitId','subscribe','unitId','currentColor','startFollowing','1em','11090430IlUFYP','defineProperty','SAME_OPERATION_SHARE_INTERVAL','261441NQGPMk','forEach','symbol','_univerInstanceService','_liveShareService','_handleNewHost','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','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','attrs','univer-size-4','You\x27are\x20offline.','LIVESHARE_NEW_HOST','defIds','stopFollowing','executeCommand','11VJSatq','dispose','UNIVER_UNKNOWN','registerInitialStateReporter','evenodd','12kKvitr','getMemberID','next','idle','init','_stopPresenting','memberID','getCurrentTypeOfUnit$','21161zGZjmg','NOT_FOLLOWING','_injector','FOLLOWING','text','univer-mb-3\x20univer-w-full\x20univer-text-sm','onCommandExecuted','_config','_collabSession','getStatus','515DXQZWA','has','then','presenting','div','_stopFollowing','url(#$1','map','_status$','send','length','getInitialStates','getLiveShareCoordinator','event$','_uiPartsService','onStarting','add','_startLiveShareCoordinator','_sharedOperations','operations','Present\x20this\x20document','idSuffix','_handleOperation','856IFfoTP','mask','http://www.w3.org/2000/svg','Stop\x20following','_init','1813200yMlxFR','_handleOnline','fill','complete','substring','getOwnPropertyDescriptor','defs','IDLE','You\x27re\x20not\x20following\x20the\x20presenter','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','pipe','delete','NEW_CHANGESETS','data','entries','UniverIcon','string','use','You\x27re\x20presenting\x20the\x20document','offline','none','You\x27re\x20following\x20the\x20presenter','_handleTerminate','tag','tryStartPresenting','assign','get','_beIdle','_unitID','ONLINE','parse','live-share-icon','_reporters','getTypeOfUnitDisposed$','dispose$','createInstance','svg','_startPresenting','type','xlink:href','_configService','onRendered','_collabSessionService','_startFollowing','_commandDisposable','shouldShareOperation','_entities','PRESENTING','button','sessionStatus$','sheet','9677620iQvyAZ','UNIVER_LIVE_SHARE_PLUGIN','includes','_presenter'];_0x47de=function(){return _0x3c95d4;};return _0x47de();}function Pe(_0x1a8d45){const _0x2352cf=_0x57791f,{coordinator:_0x5ee68d}=_0x1a8d45;return _0x585bf4(_0x1aad73,{'children':[_0x47899f('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2352cf(0x1f1)}),_0x47899f(_0x16a64c,{'variant':_0x2352cf(0x26d),'onClick':()=>_0x5ee68d['startFollowing'](),'children':'Start\x20following'})]});}function Ae(_0x1cf91f){const _0x17f26e=_0x57791f,{coordinator:_0x24d478}=_0x1cf91f;return _0x585bf4(_0x1aad73,{'children':[_0x47899f(_0x17f26e(0x277),{'className':_0x17f26e(0x26e),'children':_0x17f26e(0x1fb)}),_0x47899f(_0x16a64c,{'variant':'default','onClick':()=>_0x24d478[_0x17f26e(0x22b)](),'children':_0x17f26e(0x22f)})]});}function Te(){const _0x4a2696=_0x57791f;return _0x47899f(_0x1aad73,{'children':_0x4a2696(0x257)});}var Fe=Object[_0x57791f(0x1ee)],He=(_0x4635cd,_0x152307,_0x54cc90,_0x9b6397)=>{for(var _0x165b97=_0x9b6397>0x1?void 0x0:_0x9b6397?Fe(_0x152307,_0x54cc90):_0x152307,_0x246d8c=_0x4635cd['length']-0x1,_0x2cd7bb;_0x246d8c>=0x0;_0x246d8c--)(_0x2cd7bb=_0x4635cd[_0x246d8c])&&(_0x165b97=_0x2cd7bb(_0x165b97)||_0x165b97);return _0x165b97;},A=(_0x5e26b1,_0x32acd7)=>(_0x5d1e97,_0x46f03e)=>_0x32acd7(_0x5d1e97,_0x46f03e,_0x5e26b1);function _0x2c32(_0x5a0cf3,_0x4af835){const _0x47de18=_0x47de();return _0x2c32=function(_0x2c32c3,_0x475c70){_0x2c32c3=_0x2c32c3-0x1d2;let _0x2d8eb4=_0x47de18[_0x2c32c3];return _0x2d8eb4;},_0x2c32(_0x5a0cf3,_0x4af835);}let m=class extends _0x586517{constructor(_0x5bc29f,_0x669945){const _0x492f2f=_0x57791f;super(),this[_0x492f2f(0x26b)]=_0x5bc29f,this[_0x492f2f(0x1db)]=_0x669945,this[_0x492f2f(0x221)]();}[_0x57791f(0x221)](){const _0x1961b3=_0x57791f;this[_0x1961b3(0x233)](this['_uiPartsService'][_0x1961b3(0x237)](_0x4296f0[_0x1961b3(0x243)],()=>_0x2e917a(Le,this[_0x1961b3(0x26b)])));}};m=He([A(0x0,_0x58c47f(_0x337fab)),A(0x1,_0x3ddec6)],m);const ye=_0x57791f(0x223),T={};var Ue=Object[_0x57791f(0x1ee)],Ve=(_0x4c05fd,_0x521b7d,_0x24d422,_0x46ba0d)=>{for(var _0x1082e2=_0x46ba0d>0x1?void 0x0:_0x46ba0d?Ue(_0x521b7d,_0x24d422):_0x521b7d,_0x52066d=_0x4c05fd['length']-0x1,_0x50cd03;_0x52066d>=0x0;_0x52066d--)(_0x50cd03=_0x4c05fd[_0x52066d])&&(_0x1082e2=_0x50cd03(_0x1082e2)||_0x1082e2);return _0x1082e2;},je=(_0x41c6af,_0x58d3f1)=>(_0x264d1b,_0x5b1415)=>_0x58d3f1(_0x264d1b,_0x5b1415,_0x41c6af);let I=class extends _0x586517{constructor(_0x1b6709){const _0x4f5b89=_0x57791f;super(),this[_0x4f5b89(0x251)]=_0x1b6709,this[_0x4f5b89(0x1e8)]();}['_init'](){const _0x37f275=_0x57791f;[_0x5ce85d['id'],_0x4c3e16['id'],_0x2d9b0e['id']][_0x37f275(0x24e)](_0x52bd69=>{const _0x444305=_0x37f275;this['disposeWithMe'](this[_0x444305(0x251)][_0x444305(0x23c)](_0x52bd69));});}};I=Ve([je(0x0,_0x58c47f(L))],I);var Me=Object[_0x57791f(0x24b)],ke=Object[_0x57791f(0x1ee)],Ge=(_0x8be206,_0x43c5eb,_0x4b3116)=>_0x43c5eb in _0x8be206?Me(_0x8be206,_0x43c5eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b3116}):_0x8be206[_0x43c5eb]=_0x4b3116,We=(_0x56d12d,_0x10fa63,_0x1e8bcd,_0xd101f)=>{const _0x24fe95=_0x57791f;for(var _0xc4593f=_0xd101f>0x1?void 0x0:_0xd101f?ke(_0x10fa63,_0x1e8bcd):_0x10fa63,_0x29ad42=_0x56d12d[_0x24fe95(0x1d7)]-0x1,_0x4b0411;_0x29ad42>=0x0;_0x29ad42--)(_0x4b0411=_0x56d12d[_0x29ad42])&&(_0xc4593f=_0x4b0411(_0xc4593f)||_0xc4593f);return _0xc4593f;},F=(_0x52cd2e,_0x205c08)=>(_0x2d47ea,_0xae9b2e)=>_0x205c08(_0x2d47ea,_0xae9b2e,_0x52cd2e),B=(_0x3a9419,_0x45ee8a,_0xe1e9ef)=>Ge(_0x3a9419,typeof _0x45ee8a!=_0x57791f(0x24f)?_0x45ee8a+'':_0x45ee8a,_0xe1e9ef);const Ye=_0x57791f(0x21d);let b=class extends _0x288486{constructor(_0x4e3053=T,_0x1c7d2b,_0x447449){const _0x5b6543=_0x57791f;super(),this[_0x5b6543(0x270)]=_0x4e3053,this[_0x5b6543(0x26b)]=_0x1c7d2b,this[_0x5b6543(0x211)]=_0x447449;const {..._0x2c33b4}=_0x2293ae({},T,this[_0x5b6543(0x270)]);this[_0x5b6543(0x211)]['setConfig'](ye,_0x2c33b4);}[_0x57791f(0x1dc)](){const _0x2ea31a=_0x57791f;_0x1849c5(this['_injector'],_0x40e0b3([[L],[S],[I],[m]],this['_config'][_0x2ea31a(0x220)])),_0x5b1334(this['_injector'],[[I]]);}[_0x57791f(0x212)](){const _0x7498d=_0x57791f;_0x5b1334(this[_0x7498d(0x26b)],[[m]]);}};B(b,_0x57791f(0x20f),_0x469e4a[_0x57791f(0x25e)]),B(b,'pluginName',Ye),b=We([_0x54389d(_0x28e03d),F(0x1,_0x58c47f(_0x337fab)),F(0x2,_0x1a7034)],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
|
+
function _0x1935(){const _0xcea53d=['122650ksaGGY','IDLE','extend','startRow','stopPresenting','5865972ZVZeoT','syncExecuteCommand','_initialize','550990TvKhMr','get','5674016MeKDsv','getStatus','getUnitId','No\x20active\x20workbook\x20found.','getRenderById','5spkAcw','6333aYiRvz','getActiveWorkbook','_injector','startFollowing','getLiveShareStatus','LiveShareStatusEnum','180ZjnRoi','stopFollowing','PRESENTING','startPresenting','2476wGSOHS','7qQORZB','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareCoordinatorSync','getSheetId','getId','2771310shfqXD','42101719uDkbWW','tryStartPresenting','getActiveSheet'];_0x1935=function(){return _0xcea53d;};return _0x1935();}function _0x1721(_0x45a299,_0x5b0191){const _0x1935f6=_0x1935();return _0x1721=function(_0x17216f,_0x1ea74c){_0x17216f=_0x17216f-0x11b;let _0x5eebba=_0x1935f6[_0x17216f];return _0x5eebba;},_0x1721(_0x45a299,_0x5b0191);}const _0x5c16bd=_0x1721;(function(_0x568db8,_0x2c523d){const _0x4375e4=_0x1721,_0x259b77=_0x568db8();while(!![]){try{const _0x54b574=parseInt(_0x4375e4(0x13d))/0x1*(parseInt(_0x4375e4(0x122))/0x2)+-parseInt(_0x4375e4(0x132))/0x3*(parseInt(_0x4375e4(0x13c))/0x4)+parseInt(_0x4375e4(0x131))/0x5*(parseInt(_0x4375e4(0x11e))/0x6)+-parseInt(_0x4375e4(0x127))/0x7+-parseInt(_0x4375e4(0x12c))/0x8+-parseInt(_0x4375e4(0x138))/0x9*(parseInt(_0x4375e4(0x12a))/0xa)+parseInt(_0x4375e4(0x11f))/0xb;if(_0x54b574===_0x2c523d)break;else _0x259b77['push'](_0x259b77['shift']());}catch(_0x316f16){_0x259b77['push'](_0x259b77['shift']());}}}(_0x1935,0xba31c));import{LiveShareController as _0x2ae573,LiveShareStatus as _0x26f58c}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x496899}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x235381}from'@univerjs/sheets';import{SetScrollOperation as _0x26484b}from'@univerjs/sheets-ui';import{FRange as _0x5e08ec}from'@univerjs/sheets/facade';import{FUniver as _0x4b7587,FEnum as _0x22dcce}from'@univerjs/core/facade';class I extends _0x5e08ec{[_0x5c16bd(0x129)](_0x4e55f0,_0x46cf17,_0x38da5c,_0x4508ca,_0x1f83a3){const _0x5c1707=_0x5c16bd,_0x3010c8=_0x4e55f0[_0x5c1707(0x12b)](_0x2ae573),_0x43333b=_0x4e55f0[_0x5c1707(0x12b)](_0x496899),_0x363504=_0x46cf17[_0x5c1707(0x12e)](),_0x209bde=_0x46cf17[_0x5c1707(0x121)](),_0xc979d1=_0x3010c8[_0x5c1707(0x11b)](_0x363504);(_0xc979d1==null?void 0x0:_0xc979d1[_0x5c1707(0x12d)]())!==_0x26f58c[_0x5c1707(0x13a)]||(_0x38da5c[_0x5c1707(0x11c)]()!==_0x209bde['getSheetId']()&&this['_commandService']['executeCommand'](_0x235381['id'],{'unitId':_0x363504,'subUnitId':_0x38da5c[_0x5c1707(0x11c)]()}),!_0x43333b[_0x5c1707(0x130)](_0x363504))||_0x1f83a3[_0x5c1707(0x128)](_0x26484b['id'],{'unitId':_0x46cf17[_0x5c1707(0x12e)](),'sheetId':_0x38da5c[_0x5c1707(0x11c)](),'sheetViewStartRow':_0x4508ca[_0x5c1707(0x125)],'sheetViewStartColumn':_0x4508ca['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5e08ec[_0x5c16bd(0x124)](I);class m extends _0x4b7587{[_0x5c16bd(0x136)](){const _0x1b1cc5=_0x5c16bd;var _0x5127ca,_0x3a0574;const _0x195c05=this['_injector'][_0x1b1cc5(0x12b)](_0x2ae573),_0x422886=(_0x5127ca=this[_0x1b1cc5(0x133)]())==null?void 0x0:_0x5127ca[_0x1b1cc5(0x11d)]();if(!_0x422886)throw new Error('No\x20active\x20workbook\x20found.');const _0x51ec35=_0x195c05[_0x1b1cc5(0x11b)](_0x422886);return(_0x3a0574=_0x51ec35==null?void 0x0:_0x51ec35[_0x1b1cc5(0x12d)]())!=null?_0x3a0574:_0x26f58c[_0x1b1cc5(0x123)];}['startFollowing'](){const _0x5c7880=_0x5c16bd;var _0x1c2a4b;const _0x58403c=this[_0x5c7880(0x134)][_0x5c7880(0x12b)](_0x2ae573),_0x2f1a64=(_0x1c2a4b=this[_0x5c7880(0x133)]())==null?void 0x0:_0x1c2a4b[_0x5c7880(0x11d)]();if(!_0x2f1a64)throw new Error(_0x5c7880(0x12f));const _0x5aac67=_0x58403c['getLiveShareCoordinatorSync'](_0x2f1a64);if(!_0x5aac67)throw new Error(_0x5c7880(0x13e));_0x5aac67[_0x5c7880(0x135)]();}['stopFollowing'](){const _0x3554ab=_0x5c16bd;var _0x1ff5d1;const _0x140b6d=this[_0x3554ab(0x134)][_0x3554ab(0x12b)](_0x2ae573),_0x37e574=(_0x1ff5d1=this[_0x3554ab(0x133)]())==null?void 0x0:_0x1ff5d1[_0x3554ab(0x11d)]();if(!_0x37e574)throw new Error(_0x3554ab(0x12f));const _0x68e6ee=_0x140b6d[_0x3554ab(0x11b)](_0x37e574);if(!_0x68e6ee)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x68e6ee[_0x3554ab(0x139)]();}[_0x5c16bd(0x13b)](){const _0x5ec3ac=_0x5c16bd;var _0x44609a;const _0x480444=this[_0x5ec3ac(0x134)][_0x5ec3ac(0x12b)](_0x2ae573),_0x1df86f=(_0x44609a=this['getActiveWorkbook']())==null?void 0x0:_0x44609a[_0x5ec3ac(0x11d)]();if(!_0x1df86f)throw new Error('No\x20active\x20workbook\x20found.');const _0x4ac779=_0x480444['getLiveShareCoordinatorSync'](_0x1df86f);if(!_0x4ac779)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4ac779[_0x5ec3ac(0x120)]();}['stopPresenting'](){const _0x46a16e=_0x5c16bd;var _0x2c04c8;const _0x22c1c1=this['_injector'][_0x46a16e(0x12b)](_0x2ae573),_0x4e26ec=(_0x2c04c8=this[_0x46a16e(0x133)]())==null?void 0x0:_0x2c04c8[_0x46a16e(0x11d)]();if(!_0x4e26ec)throw new Error(_0x46a16e(0x12f));const _0x4439df=_0x22c1c1[_0x46a16e(0x11b)](_0x4e26ec);if(!_0x4439df)throw new Error(_0x46a16e(0x13e));_0x4439df[_0x46a16e(0x126)]();}}_0x4b7587[_0x5c16bd(0x124)](m);class C extends _0x22dcce{get[_0x5c16bd(0x137)](){return _0x26f58c;}}_0x22dcce[_0x5c16bd(0x124)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x221811=_0x2e9a;(function(_0x153aa2,_0x53c9ad){const _0x469ad4=_0x2e9a,_0x2a42e1=_0x153aa2();while(!![]){try{const _0x5679d9=parseInt(_0x469ad4(0x134))/0x1*(parseInt(_0x469ad4(0x1b4))/0x2)+parseInt(_0x469ad4(0x150))/0x3+-parseInt(_0x469ad4(0x125))/0x4*(-parseInt(_0x469ad4(0x14d))/0x5)+-parseInt(_0x469ad4(0x15f))/0x6+-parseInt(_0x469ad4(0x187))/0x7+-parseInt(_0x469ad4(0x139))/0x8*(-parseInt(_0x469ad4(0x17d))/0x9)+-parseInt(_0x469ad4(0x165))/0xa;if(_0x5679d9===_0x53c9ad)break;else _0x2a42e1['push'](_0x2a42e1['shift']());}catch(_0x47c5ac){_0x2a42e1['push'](_0x2a42e1['shift']());}}}(_0x1745,0x81c6c));var J=Object[_0x221811(0x140)],K=(_0x54f9f1,_0x5442c9,_0x45d33c)=>_0x5442c9 in _0x54f9f1?J(_0x54f9f1,_0x5442c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45d33c}):_0x54f9f1[_0x5442c9]=_0x45d33c,u=(_0x4dda28,_0x35b8c8,_0x28d07c)=>K(_0x4dda28,typeof _0x35b8c8!=_0x221811(0x12b)?_0x35b8c8+'':_0x35b8c8,_0x28d07c);import{Disposable as _0x5584fb,toDisposable as _0x4e21f7,IUniverInstanceService as _0x34a265,Inject as _0x3b972f,Injector as _0x1e206d,IConfigService as _0x3c082e,ICommandService as _0x2a3810,RxDisposable as _0x317033,UniverInstanceType as _0x4fecd8,DisposableCollection as _0x38a87f,CommandType as _0x274666,DependentOn as _0x4ef44e,Plugin as _0x54e800,merge as _0x47f8b3,registerDependencies as _0x38128c,mergeOverrideWithDependencies as _0x28e201,touchDependencies as _0x441580}from'@univerjs/core';import{useDependency as _0x3ba771,useObservable as _0x382b15,IUIPartsService as _0x2df529,BuiltInUIPart as _0x39e9b0,connectInjector as _0x19746f}from'@univerjs/ui';import{jsx as _0x394112,jsxs as _0x35a790,Fragment as _0xf1c7f5}from'react/jsx-runtime';import{Dropdown as _0x195faf,clsx as _0x4a0fdb,Button as _0x4da62a}from'@univerjs/design';import{useRef as _0x3dea31,createElement as _0x5edcfb,forwardRef as _0x5a8e8f,useState as _0x20fc4e,useEffect as _0x300d05}from'react';import{CollaborationEvent as _0x3ec99e,parseProtocolChangeset as _0x40eca1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1839d1,SessionStatus as _0x3fee76,UniverCollaborationClientPlugin as _0x121829}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x52e444,SetWorksheetActiveOperation as _0x222c77}from'@univerjs/sheets';import{BehaviorSubject as _0x9a32b4,Subject as _0x4cfb70}from'rxjs';import{takeUntil as _0x3d7e87,throttleTime as _0x1bd794}from'rxjs/operators';function _0x2e9a(_0x14dfa5,_0x35b766){const _0x174502=_0x1745();return _0x2e9a=function(_0x2e9af7,_0x486621){_0x2e9af7=_0x2e9af7-0x124;let _0x1540c3=_0x174502[_0x2e9af7];return _0x1540c3;},_0x2e9a(_0x14dfa5,_0x35b766);}import{SetZoomRatioOperation as _0x3a61b7,SetScrollOperation as _0x1e8464}from'@univerjs/sheets-ui';function k({ref:_0x197e6c,..._0x5ca943}){const _0x207c92=_0x221811,{icon:_0x2f09c0,id:_0x8b262c,className:_0x17c9c3,extend:_0x24cdfe,..._0x239edd}=_0x5ca943,_0x306934=(_0x207c92(0x1ba)+_0x8b262c+'\x20'+(_0x17c9c3||''))[_0x207c92(0x169)](),_0xecd5c0=_0x3dea31('_'+Oe());return G(_0x2f09c0,''+_0x8b262c,{'defIds':_0x2f09c0['defIds'],'idSuffix':_0xecd5c0[_0x207c92(0x183)]},{'ref':_0x197e6c,'className':_0x306934,..._0x239edd},_0x24cdfe);}function G(_0x31c008,_0x3c106a,_0xedabbb,_0x5d2070,_0x3dd37a){const _0x5a8fc0=_0x221811;return _0x5edcfb(_0x31c008['tag'],{'key':_0x3c106a,...be(_0x31c008,_0xedabbb,_0x3dd37a),..._0x5d2070},(Ee(_0x31c008,_0xedabbb)['children']||[])['map']((_0x477eeb,_0x324de5)=>G(_0x477eeb,_0x3c106a+'-'+_0x31c008[_0x5a8fc0(0x18e)]+'-'+_0x324de5,_0xedabbb,void 0x0,_0x3dd37a)));}function be(_0x3b3564,_0x187141,_0x5bcc20){const _0x3e1c00=_0x221811,_0x3c1373={..._0x3b3564[_0x3e1c00(0x158)]};_0x5bcc20!=null&&_0x5bcc20[_0x3e1c00(0x17c)]&&_0x3c1373[_0x3e1c00(0x172)]==='colorChannel1'&&(_0x3c1373[_0x3e1c00(0x172)]=_0x5bcc20[_0x3e1c00(0x17c)]),_0x3b3564[_0x3e1c00(0x18e)]===_0x3e1c00(0x18f)&&_0x3c1373['id']&&(_0x3c1373['id']=_0x3c1373['id']+_0x187141[_0x3e1c00(0x167)]),Object[_0x3e1c00(0x1ab)](_0x3c1373)[_0x3e1c00(0x13d)](([_0x3c7c5c,_0x1da6a6])=>{const _0x157bf4=_0x3e1c00;_0x3c7c5c===_0x157bf4(0x18f)&&typeof _0x1da6a6==_0x157bf4(0x192)&&(_0x3c1373[_0x3c7c5c]=_0x1da6a6[_0x157bf4(0x19f)](/url\(#(.*)\)/,_0x157bf4(0x166)+_0x187141[_0x157bf4(0x167)]+')'));});const {defIds:_0x22b32f}=_0x187141;return!_0x22b32f||_0x22b32f[_0x3e1c00(0x195)]===0x0||(_0x3b3564[_0x3e1c00(0x18e)]===_0x3e1c00(0x1cc)&&_0x3c1373[_0x3e1c00(0x1b3)]&&(_0x3c1373['xlink:href']=_0x3c1373['xlink:href']+_0x187141[_0x3e1c00(0x167)]),Object[_0x3e1c00(0x1ab)](_0x3c1373)['forEach'](([_0x33755c,_0x2297f2])=>{const _0x545bfe=_0x3e1c00;typeof _0x2297f2==_0x545bfe(0x192)&&(_0x3c1373[_0x33755c]=_0x2297f2[_0x545bfe(0x19f)](/url\(#(.*)\)/,'url(#$1'+_0x187141[_0x545bfe(0x167)]+')'));})),_0x3c1373;}function Ee(_0x5a9411,_0x19eef7){const _0x350b86=_0x221811;var _0xbb3c2e;const {defIds:_0xa3863b}=_0x19eef7;return!_0xa3863b||_0xa3863b[_0x350b86(0x195)]===0x0?_0x5a9411:_0x5a9411[_0x350b86(0x18e)]===_0x350b86(0x149)&&((_0xbb3c2e=_0x5a9411[_0x350b86(0x145)])!=null&&_0xbb3c2e[_0x350b86(0x195)])?{..._0x5a9411,'children':_0x5a9411[_0x350b86(0x145)][_0x350b86(0x141)](_0x8212e7=>typeof _0x8212e7[_0x350b86(0x158)]['id']==_0x350b86(0x192)&&_0xa3863b&&_0xa3863b[_0x350b86(0x136)](_0x8212e7[_0x350b86(0x158)]['id'])?{..._0x8212e7,'attrs':{..._0x8212e7[_0x350b86(0x158)],'id':_0x8212e7[_0x350b86(0x158)]['id']+_0x19eef7[_0x350b86(0x167)]}}:_0x8212e7)}:_0x5a9411;}function Oe(){const _0x3670fe=_0x221811;return Math[_0x3670fe(0x1c6)]()[_0x3670fe(0x142)](0x24)[_0x3670fe(0x144)](0x2,0x8);}k[_0x221811(0x1a5)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x221811(0x184),'fill':_0x221811(0x178),'viewBox':_0x221811(0x1b0),'width':'1em','height':_0x221811(0x12d)},'children':[{'tag':_0x221811(0x153),'attrs':{'fill':_0x221811(0x1ad),'d':_0x221811(0x13c)}},{'tag':_0x221811(0x153),'attrs':{'fill':'currentColor','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':_0x221811(0x1b1),'clipRule':_0x221811(0x1b1)}}]},W=_0x5a8e8f(function(_0x20d022,_0x47731f){const _0x315b76=_0x221811;return _0x5edcfb(k,Object[_0x315b76(0x175)]({},_0x20d022,{'id':'live-share-icon','ref':_0x47731f,'icon':we}));});W[_0x221811(0x1a5)]=_0x221811(0x190);class L extends _0x5584fb{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x221811(0x1bc)](_0x5900df){const _0x5bc97f=_0x221811;return this[_0x5bc97f(0x1c8)]['add'](_0x5900df),_0x4e21f7(()=>this[_0x5bc97f(0x1c8)][_0x5bc97f(0x126)](_0x5900df));}[_0x221811(0x18d)](_0x375172){const _0x88761=_0x221811;return this[_0x88761(0x1b9)][_0x88761(0x1a9)](_0x375172),_0x4e21f7(()=>this[_0x88761(0x1b9)][_0x88761(0x126)](_0x375172));}[_0x221811(0x1a7)](_0x18d878){const _0x53d32f=_0x221811;return this[_0x53d32f(0x1c8)]['has'](_0x18d878);}['getInitialStates'](_0x5d176f){const _0x1eeed2=_0x221811;return Array[_0x1eeed2(0x1ce)](this['_reporters'])['map'](_0x2bb04e=>_0x2bb04e(_0x5d176f));}}var Ne=Object[_0x221811(0x156)],Y=(_0x287803,_0x18bfb1,_0x3a3c64,_0x95786)=>{const _0x9d8303=_0x221811;for(var _0x24231a=_0x95786>0x1?void 0x0:_0x95786?Ne(_0x18bfb1,_0x3a3c64):_0x18bfb1,_0x8d7260=_0x287803[_0x9d8303(0x195)]-0x1,_0x257dee;_0x8d7260>=0x0;_0x8d7260--)(_0x257dee=_0x287803[_0x8d7260])&&(_0x24231a=_0x257dee(_0x24231a)||_0x24231a);return _0x24231a;},_=(_0x42f5a8,_0x5bb8ea)=>(_0x5381dd,_0x3fb270)=>_0x5bb8ea(_0x5381dd,_0x3fb270,_0x42f5a8);let S=class extends _0x317033{constructor(_0x305ccb,_0x243345,_0x2d10b0){const _0x2a2f93=_0x221811;super(),u(this,_0x2a2f93(0x1be),new Map()),(this[_0x2a2f93(0x194)]=_0x305ccb,this['_injector']=_0x243345,this[_0x2a2f93(0x193)]=_0x2d10b0,this[_0x2a2f93(0x14c)]());}async['getLiveShareCoordinator'](_0x4a5180){const _0x43c5d3=_0x221811;return this[_0x43c5d3(0x1be)][_0x43c5d3(0x15e)](_0x4a5180)||await this[_0x43c5d3(0x17b)](_0x4a5180),this[_0x43c5d3(0x1be)][_0x43c5d3(0x1b5)](_0x4a5180);}[_0x221811(0x1a0)](_0x3f9228){const _0xaa81b6=_0x221811;var _0x30c53a;return(_0x30c53a=this[_0xaa81b6(0x1be)][_0xaa81b6(0x1b5)](_0x3f9228))!=null?_0x30c53a:null;}['_init'](){const _0x396051=_0x221811;this['_univerInstanceService'][_0x396051(0x127)](_0x4fecd8[_0x396051(0x1a3)])['pipe'](_0x3d7e87(this[_0x396051(0x146)]))[_0x396051(0x1bf)](async _0x342f0c=>{const _0xd58b8b=_0x396051,_0x412d57=_0x342f0c[_0xd58b8b(0x174)]();this[_0xd58b8b(0x1be)][_0xd58b8b(0x15e)](_0x412d57)||this[_0xd58b8b(0x17b)](_0x412d57);}),this[_0x396051(0x194)]['getTypeOfUnitDisposed$'](_0x4fecd8['UNIVER_SHEET'])[_0x396051(0x16d)](_0x3d7e87(this['dispose$']))[_0x396051(0x1bf)](_0x28aa88=>{const _0x503de2=_0x396051,_0x2aa132=_0x28aa88[_0x503de2(0x174)](),_0x28c133=this['_entities'][_0x503de2(0x1b5)](_0x2aa132);_0x28c133==null||_0x28c133[_0x503de2(0x177)]();});}async[_0x221811(0x17b)](_0x1586f5){const _0x21f7ba=_0x221811,_0xf8791d=await this['_collabSessionService']['requireSession'](_0x1586f5),_0x265bff=this['_injector']['createInstance'](N,_0x1586f5,_0xf8791d);return _0x265bff[_0x21f7ba(0x199)](),this[_0x21f7ba(0x1be)][_0x21f7ba(0x152)](_0x1586f5,_0x265bff),_0x265bff;}};function _0x1745(){const _0x59f379=['asObservable','180940pjanDM','delete','getTypeOfUnitAdded$','OFFLINE','mutations','_handleTerminate','symbol','Start\x20following','1em','startFollowing','unsubscribe','clear','unitId','_commandService','univer-size-4','447734GbjpvL','stringify','includes','_unitID','status$','16XTUvtF','_stopFollowing','live-share.config','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','forEach','_handleOffline','UNIVER_UNKNOWN','defineProperty','map','toString','FOLLOWING','substring','children','dispose$','values','following','defs','stopPresenting','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','_init','105YpEDMh','NEW_CHANGESETS','send','2099199niqjAe','registerComponent','set','path','presenter','presenting','getOwnPropertyDescriptor','_configService','attrs','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','memberID','getLiveShareCoordinator','_config','has','1474626oNDPyu','_liveShareService','parse','offline','disposeWithMe','sessionStatus$','16891970YTWKVJ','url(#$1','idSuffix','sheet','trim','_stopPresenting','getStatus','OPERATION','pipe','button','operations','LIVESHARE_TERMINATE','_commandDisposable','fill','text','getUnitId','assign','ONLINE','dispose','none','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_FETCH_OPERATIONS','_startLiveShareCoordinator','colorChannel1','1110132JRRPZH','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','then','find','data','current','http://www.w3.org/2000/svg','onCommandExecuted','You\x27re\x20not\x20following\x20the\x20presenter','2277100BSyuDF','_status$','getValue','Stop\x20following','next','_fetchOperations','registerInitialStateReporter','tag','mask','LiveShareIcon','_injector','string','_collabSessionService','_univerInstanceService','length','complete','setConfig','getConfig','init','_beIdle','params','_presenter','_status','not-following','replace','getLiveShareCoordinatorSync','IDLE','_startFollowing','UNIVER_SHEET','HEADER_MENU','displayName','pluginName','shouldShareOperation','reverse','add','executeCommand','entries','LIVESHARE_NEW_HOST','currentColor','PRESENTING','_handleOperation','0\x200\x2017\x2017','evenodd','idle','xlink:href','4seKHVT','get','You\x27re\x20following\x20the\x20presenter','onStarting','LIVESHARE_REQUEST_HOST','_reporters','univerjs-icon\x20univerjs-icon-','getMemberID','registerSharedOperation','Present\x20this\x20document','_entities','subscribe','_uiPartsService','_collabSession','_handleOnline','Start','NOT_FOLLOWING','end','random','_handleNewHost','_sharedOperations','_startPresenting','default','div','use','_handleNewChangeSets','from'];_0x1745=function(){return _0x59f379;};return _0x1745();}S=Y([_(0x0,_0x34a265),_(0x1,_0x3b972f(_0x1e206d)),_(0x2,_0x3b972f(_0x1839d1))],S);var c=(_0x4faa0d=>(_0x4faa0d[_0x221811(0x128)]=_0x221811(0x162),_0x4faa0d[_0x221811(0x1a1)]=_0x221811(0x1b2),_0x4faa0d[_0x221811(0x143)]=_0x221811(0x148),_0x4faa0d['NOT_FOLLOWING']=_0x221811(0x19e),_0x4faa0d[_0x221811(0x1ae)]=_0x221811(0x155),_0x4faa0d))(c||{});const Ce=_0x221811(0x159),De=0xc8;let N=class extends _0x317033{constructor(_0x4c19f4,_0x31c774,_0x23e67d,_0x2e7fb6,_0xfd22e8){const _0x146a8e=_0x221811;super(),u(this,_0x146a8e(0x188),new _0x9a32b4('idle')),u(this,'status$',this[_0x146a8e(0x188)][_0x146a8e(0x124)]()),u(this,'_init',!0x1),u(this,_0x146a8e(0x171),null),u(this,'_presenter',null),(this[_0x146a8e(0x137)]=_0x4c19f4,this['_collabSession']=_0x31c774,this[_0x146a8e(0x157)]=_0x23e67d,this[_0x146a8e(0x160)]=_0x2e7fb6,this[_0x146a8e(0x132)]=_0xfd22e8);}get[_0x221811(0x19d)](){const _0x51f3e1=_0x221811;return this['_status$'][_0x51f3e1(0x189)]();}[_0x221811(0x177)](){const _0x22fc4a=_0x221811;var _0x27df7a;(_0x27df7a=this[_0x22fc4a(0x171)])==null||_0x27df7a[_0x22fc4a(0x177)](),this[_0x22fc4a(0x188)][_0x22fc4a(0x18b)](_0x22fc4a(0x1b2)),this[_0x22fc4a(0x188)][_0x22fc4a(0x196)]();}[_0x221811(0x16b)](){const _0x1da97c=_0x221811;return this[_0x1da97c(0x19d)];}['init'](){const _0x5e119f=_0x221811;this[_0x5e119f(0x14c)]||(this[_0x5e119f(0x14c)]=!0x0,this['_collabSession'][_0x5e119f(0x164)][_0x5e119f(0x16d)](_0x3d7e87(this['dispose$']))['subscribe'](_0xc6020a=>{const _0x370db1=_0x5e119f;switch(_0xc6020a){case _0x3fee76[_0x370db1(0x128)]:this[_0x370db1(0x13e)]();break;case _0x3fee76[_0x370db1(0x176)]:this[_0x370db1(0x1c2)]();break;}}),this[_0x5e119f(0x1c1)]['event$'][_0x5e119f(0x16d)](_0x3d7e87(this[_0x5e119f(0x146)]))[_0x5e119f(0x1bf)](_0x240184=>{const _0x1ecede=_0x5e119f,{eventID:_0x5746fc}=_0x240184;switch(_0x5746fc){case _0x3ec99e[_0x1ecede(0x1ac)]:this[_0x1ecede(0x1c7)](_0x240184);break;case _0x3ec99e['LIVESHARE_OPERATION']:this['_handleOperation'](_0x240184);break;case _0x3ec99e[_0x1ecede(0x170)]:this[_0x1ecede(0x12a)]();break;case _0x3ec99e[_0x1ecede(0x14e)]:this[_0x1ecede(0x1cd)](_0x240184);break;}}));}['tryStartPresenting'](){const _0x365163=_0x221811;this[_0x365163(0x1c1)][_0x365163(0x14f)]({'eventID':_0x3ec99e[_0x365163(0x1b8)],'data':{'unitID':this[_0x365163(0x137)],'userID':this[_0x365163(0x1c1)][_0x365163(0x1bb)]()}},this[_0x365163(0x137)]);}[_0x221811(0x14a)](){const _0x186731=_0x221811;this[_0x186731(0x19d)]==='presenting'&&(this[_0x186731(0x188)][_0x186731(0x18b)](_0x186731(0x1b2)),this[_0x186731(0x1c1)][_0x186731(0x14f)]({'eventID':_0x3ec99e[_0x186731(0x170)],'data':{'unitID':this[_0x186731(0x137)]}},this[_0x186731(0x137)]));}[_0x221811(0x12e)](){const _0x59c1c6=_0x221811;this[_0x59c1c6(0x19d)]===_0x59c1c6(0x19e)&&(this['_status$']['next']('following'),this[_0x59c1c6(0x1a2)]());}[_0x221811(0x17f)](){const _0x3c87d7=_0x221811;this[_0x3c87d7(0x19d)]===_0x3c87d7(0x148)&&this[_0x3c87d7(0x13a)]();}[_0x221811(0x1c7)](_0x38774b){const _0x26147e=_0x221811,{presenter:_0x568de2}=_0x38774b[_0x26147e(0x182)],_0x1ee82b=this[_0x26147e(0x1c1)][_0x26147e(0x1bb)]();this[_0x26147e(0x19c)]=_0x568de2,_0x568de2===_0x1ee82b?(this[_0x26147e(0x13a)](),this[_0x26147e(0x1c9)]()):this[_0x26147e(0x19d)]!==_0x26147e(0x19e)&&(this[_0x26147e(0x16a)](),this['_startFollowing']());}[_0x221811(0x18c)](){const _0x26a97f=_0x221811,_0x4371d8={'eventID':_0x3ec99e[_0x26a97f(0x17a)]};this[_0x26a97f(0x1c1)]['send'](_0x4371d8,this[_0x26a97f(0x137)]);}[_0x221811(0x12a)](){const _0x2db4c0=_0x221811;this[_0x2db4c0(0x19c)]=null,this[_0x2db4c0(0x19d)]!==_0x2db4c0(0x155)&&this[_0x2db4c0(0x19a)]();}[_0x221811(0x1cd)](_0xab9e6a){const _0x6f32d8=_0x221811;if(this[_0x6f32d8(0x19d)]===_0x6f32d8(0x148)&&this[_0x6f32d8(0x19c)]===_0xab9e6a[_0x6f32d8(0x182)][_0x6f32d8(0x15b)]){const _0x583621=_0x40eca1(_0xab9e6a[_0x6f32d8(0x182)])[_0x6f32d8(0x129)][_0x6f32d8(0x1a8)]()[_0x6f32d8(0x181)](_0xc28a72=>_0xc28a72['id']===_0x52e444['id']);if(_0x583621){const _0x57156a=_0x583621[_0x6f32d8(0x19b)][_0x6f32d8(0x131)],_0x3ce4c3=_0x583621['params'][_0x6f32d8(0x168)]['id'];setTimeout(()=>{const _0x596f4e=_0x6f32d8;this[_0x596f4e(0x132)][_0x596f4e(0x1aa)](_0x222c77['id'],{'unitId':_0x57156a,'subUnitId':_0x3ce4c3},{'fromCollab':!0x0});});}}}[_0x221811(0x1c9)](){const _0x2db157=_0x221811;this[_0x2db157(0x188)]['next']('presenting');const _0x4200fd=new Map(),_0x48d81f=this['_commandDisposable']=new _0x38a87f();_0x48d81f[_0x2db157(0x1a9)](_0x4e21f7(()=>{const _0x584e59=_0x2db157;_0x4200fd[_0x584e59(0x13d)](_0x17bf45=>_0x17bf45['complete']()),_0x4200fd[_0x584e59(0x130)]();})),_0x48d81f[_0x2db157(0x1a9)](this['_commandService'][_0x2db157(0x185)](_0x3bcb07=>{const _0x52500f=_0x2db157;var _0x48bb29;if(_0x3bcb07['type']!==_0x274666[_0x52500f(0x16c)]||!this[_0x52500f(0x160)][_0x52500f(0x1a7)](_0x3bcb07['id']))return;const {id:_0x52ddee}=_0x3bcb07;let _0x354757;_0x4200fd[_0x52500f(0x15e)](_0x52ddee)?_0x354757=_0x4200fd[_0x52500f(0x1b5)](_0x52ddee):(_0x354757=new _0x4cfb70(),_0x4200fd[_0x52500f(0x152)](_0x52ddee,_0x354757),_0x354757[_0x52500f(0x16d)](_0x1bd794((_0x48bb29=this[_0x52500f(0x157)][_0x52500f(0x198)](Ce))!=null?_0x48bb29:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x52500f(0x1bf)](_0x9f13b9=>{const _0x1e65e7=_0x52500f;this[_0x1e65e7(0x1c1)][_0x1e65e7(0x14f)]({'eventID':_0x3ec99e['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x9f13b9['id']]:{'id':_0x9f13b9['id'],'params':JSON[_0x1e65e7(0x135)](_0x9f13b9['params'])}}}},this[_0x1e65e7(0x137)]);})),_0x354757['next'](_0x3bcb07);})),this[_0x2db157(0x160)]['getInitialStates'](this[_0x2db157(0x137)])['forEach'](_0x492c05=>this[_0x2db157(0x1c1)][_0x2db157(0x14f)]({'eventID':_0x3ec99e['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2db157(0x137)],'operations':{[_0x492c05['id']]:{'id':_0x492c05['id'],'params':JSON[_0x2db157(0x135)](_0x492c05['params'])}}}},this['_unitID']));}[_0x221811(0x16a)](){const _0x58f706=_0x221811;var _0x28dca8;this[_0x58f706(0x188)][_0x58f706(0x18b)](_0x58f706(0x1b2)),(_0x28dca8=this[_0x58f706(0x171)])==null||_0x28dca8[_0x58f706(0x177)](),this[_0x58f706(0x171)]=null;}['_startFollowing'](){const _0x3f181e=_0x221811;var _0x4a3511;(_0x4a3511=this[_0x3f181e(0x171)])==null||_0x4a3511['dispose'](),this[_0x3f181e(0x188)]['next']('following');}['_beIdle'](){const _0x3b987a=_0x221811;var _0x529286;this[_0x3b987a(0x188)][_0x3b987a(0x18b)](_0x3b987a(0x1b2)),(_0x529286=this['_commandDisposable'])==null||_0x529286['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0xa80023=_0x221811;var _0x3265b9;this[_0xa80023(0x188)][_0xa80023(0x18b)](_0xa80023(0x19e)),(_0x3265b9=this[_0xa80023(0x171)])==null||_0x3265b9[_0xa80023(0x177)]();}[_0x221811(0x1af)](_0x2ef283){const _0x4ca27f=_0x221811;if([_0x4ca27f(0x155),_0x4ca27f(0x19e),_0x4ca27f(0x162)][_0x4ca27f(0x136)](this['_status'])||!_0x2ef283[_0x4ca27f(0x182)][_0x4ca27f(0x154)]||_0x2ef283[_0x4ca27f(0x182)][_0x4ca27f(0x154)]===this[_0x4ca27f(0x1c1)][_0x4ca27f(0x1bb)]())return;this[_0x4ca27f(0x19d)]===_0x4ca27f(0x1b2)&&this['_startFollowing']();const _0xaa10b1=_0x2ef283['data'][_0x4ca27f(0x16f)];Object[_0x4ca27f(0x147)](_0xaa10b1)[_0x4ca27f(0x13d)](_0x2d211e=>{const _0x4ba9d0=_0x4ca27f;this[_0x4ba9d0(0x132)][_0x4ba9d0(0x1aa)](_0x2d211e['id'],_0x2d211e['params']?JSON[_0x4ba9d0(0x161)](_0x2d211e[_0x4ba9d0(0x19b)]):null,{'fromCollab':!0x0});});}[_0x221811(0x13e)](){const _0x36d796=_0x221811;var _0x523e3f;this['_status$'][_0x36d796(0x18b)](_0x36d796(0x162)),(_0x523e3f=this[_0x36d796(0x171)])==null||_0x523e3f['dispose']();}[_0x221811(0x1c2)](){const _0x535ff5=_0x221811;this[_0x535ff5(0x188)][_0x535ff5(0x18b)]('idle'),this[_0x535ff5(0x18c)]();}};N=Y([_(0x2,_0x3c082e),_(0x3,_0x3b972f(L)),_(0x4,_0x2a3810)],N);function Le(){const _0x43a402=_0x221811,_0x26e912=_0x3ba771(S),_0x4dce2a=_0x3ba771(_0x34a265),_0x43f15e=_0x382b15(()=>_0x4dce2a['getCurrentTypeOfUnit$'](_0x4fecd8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1a9aed,_0x1d620a]=_0x20fc4e(null),[_0x1d9dc8,_0xf37569]=_0x20fc4e(c[_0x43a402(0x1a1)]),_0x8fea30=_0x3dea31(null);return _0x300d05(()=>(_0x43f15e&&_0x26e912[_0x43a402(0x15c)](_0x43f15e[_0x43a402(0x174)]())[_0x43a402(0x180)](_0x4eba86=>{const _0x50b8d6=_0x43a402;_0x1d620a(_0x4eba86),_0x8fea30[_0x50b8d6(0x183)]=_0x4eba86[_0x50b8d6(0x138)][_0x50b8d6(0x1bf)](_0x434bf9=>{_0xf37569(_0x434bf9);});}),()=>{const _0x358f3e=_0x43a402;var _0x5b15db;(_0x5b15db=_0x8fea30['current'])==null||_0x5b15db[_0x358f3e(0x12f)](),_0x8fea30[_0x358f3e(0x183)]=null;}),[_0x43f15e,_0x26e912]),_0x1a9aed?_0x394112(_0x195faf,{'align':_0x43a402(0x1c5),'disabled':_0x1d9dc8===c[_0x43a402(0x128)],'className':_0x43a402(0x14b),'overlay':_0x394112(Re,{'status':_0x1d9dc8,'coordinator':_0x1a9aed}),'children':_0x394112(_0x43a402(0x16e),{'className':_0x4a0fdb('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1d9dc8===c[_0x43a402(0x128)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d9dc8!==c[_0x43a402(0x128)]}),'type':'button','children':_0x394112(W,{'className':_0x43a402(0x133)})})}):null;}function Re(_0x379975){const _0x501bf6=_0x221811,{status:_0xf6a4ed,coordinator:_0x4f14d6}=_0x379975;switch(_0xf6a4ed){case c[_0x501bf6(0x1a1)]:return _0x394112($e,{'coordinator':_0x4f14d6});case c['FOLLOWING']:return _0x394112(xe,{'coordinator':_0x4f14d6});case c[_0x501bf6(0x1c4)]:return _0x394112(Pe,{'coordinator':_0x4f14d6});case c[_0x501bf6(0x128)]:return _0x394112(Te,{});case c['PRESENTING']:return _0x394112(Ae,{'coordinator':_0x4f14d6});default:return null;}}function $e(_0x575fa9){const _0x11beaa=_0x221811,{coordinator:_0x5b9bcf}=_0x575fa9;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x11beaa(0x1cb),{'className':_0x11beaa(0x17e),'children':_0x11beaa(0x1bd)}),_0x394112(_0x4da62a,{'onClick':()=>_0x5b9bcf['tryStartPresenting'](),'children':_0x11beaa(0x1c3)})]});}function xe(_0x36f248){const _0x28450b=_0x221811,{coordinator:_0xdf4b47}=_0x36f248;return _0x35a790(_0xf1c7f5,{'children':[_0x394112('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28450b(0x1b6)}),_0x394112(_0x4da62a,{'onClick':()=>_0xdf4b47['stopFollowing'](),'children':_0x28450b(0x18a)})]});}function Pe(_0x57f701){const _0x8b5e25=_0x221811,{coordinator:_0x1762af}=_0x57f701;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x8b5e25(0x1cb),{'className':_0x8b5e25(0x17e),'children':_0x8b5e25(0x186)}),_0x394112(_0x4da62a,{'variant':_0x8b5e25(0x173),'onClick':()=>_0x1762af[_0x8b5e25(0x12e)](),'children':_0x8b5e25(0x12c)})]});}function Ae(_0x40a8aa){const _0x294155=_0x221811,{coordinator:_0x3b2972}=_0x40a8aa;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x294155(0x1cb),{'className':_0x294155(0x17e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x394112(_0x4da62a,{'variant':_0x294155(0x1ca),'onClick':()=>_0x3b2972['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){return _0x394112(_0xf1c7f5,{'children':'You\x27are\x20offline.'});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x35fae4,_0x3f93b4,_0x195de5,_0x11e290)=>{for(var _0x4de847=_0x11e290>0x1?void 0x0:_0x11e290?Fe(_0x3f93b4,_0x195de5):_0x3f93b4,_0x74d76b=_0x35fae4['length']-0x1,_0x4838c4;_0x74d76b>=0x0;_0x74d76b--)(_0x4838c4=_0x35fae4[_0x74d76b])&&(_0x4de847=_0x4838c4(_0x4de847)||_0x4de847);return _0x4de847;},A=(_0x52f16e,_0x553295)=>(_0x213c39,_0x1ab16b)=>_0x553295(_0x213c39,_0x1ab16b,_0x52f16e);let m=class extends _0x5584fb{constructor(_0x28f257,_0x4c0e58){const _0x4f80ab=_0x221811;super(),this[_0x4f80ab(0x191)]=_0x28f257,this['_uiPartsService']=_0x4c0e58,this[_0x4f80ab(0x15a)]();}[_0x221811(0x15a)](){const _0x287327=_0x221811;this[_0x287327(0x163)](this[_0x287327(0x1c0)][_0x287327(0x151)](_0x39e9b0[_0x287327(0x1a4)],()=>_0x19746f(Le,this['_injector'])));}};m=He([A(0x0,_0x3b972f(_0x1e206d)),A(0x1,_0x2df529)],m);const ye=_0x221811(0x13b),T={};var Ue=Object[_0x221811(0x156)],Ve=(_0x53c3a8,_0x36fd72,_0x5468a2,_0x34abac)=>{const _0x1fab97=_0x221811;for(var _0x32abaf=_0x34abac>0x1?void 0x0:_0x34abac?Ue(_0x36fd72,_0x5468a2):_0x36fd72,_0x1f375e=_0x53c3a8[_0x1fab97(0x195)]-0x1,_0x360244;_0x1f375e>=0x0;_0x1f375e--)(_0x360244=_0x53c3a8[_0x1f375e])&&(_0x32abaf=_0x360244(_0x32abaf)||_0x32abaf);return _0x32abaf;},je=(_0x45d15b,_0x5c189b)=>(_0x498899,_0x28088e)=>_0x5c189b(_0x498899,_0x28088e,_0x45d15b);let I=class extends _0x5584fb{constructor(_0xa67071){const _0x102e26=_0x221811;super(),this['_liveShareService']=_0xa67071,this[_0x102e26(0x14c)]();}[_0x221811(0x14c)](){[_0x3a61b7['id'],_0x1e8464['id'],_0x222c77['id']]['forEach'](_0x304360=>{const _0x4c14f1=_0x2e9a;this[_0x4c14f1(0x163)](this[_0x4c14f1(0x160)][_0x4c14f1(0x1bc)](_0x304360));});}};I=Ve([je(0x0,_0x3b972f(L))],I);var Me=Object[_0x221811(0x140)],ke=Object[_0x221811(0x156)],Ge=(_0x1699ed,_0x307fac,_0x32daaf)=>_0x307fac in _0x1699ed?Me(_0x1699ed,_0x307fac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32daaf}):_0x1699ed[_0x307fac]=_0x32daaf,We=(_0x544d81,_0x5843cb,_0x32db75,_0x35fed6)=>{const _0x3a252f=_0x221811;for(var _0x1377e5=_0x35fed6>0x1?void 0x0:_0x35fed6?ke(_0x5843cb,_0x32db75):_0x5843cb,_0x44480b=_0x544d81[_0x3a252f(0x195)]-0x1,_0x380dfc;_0x44480b>=0x0;_0x44480b--)(_0x380dfc=_0x544d81[_0x44480b])&&(_0x1377e5=_0x380dfc(_0x1377e5)||_0x1377e5);return _0x1377e5;},F=(_0x2c9782,_0x36fd95)=>(_0x427cb3,_0x344910)=>_0x36fd95(_0x427cb3,_0x344910,_0x2c9782),B=(_0x4bcd0e,_0x295c7f,_0x51efd5)=>Ge(_0x4bcd0e,typeof _0x295c7f!=_0x221811(0x12b)?_0x295c7f+'':_0x295c7f,_0x51efd5);const Ye=_0x221811(0x179);let b=class extends _0x54e800{constructor(_0x4965c7=T,_0x569af8,_0x2f65de){const _0x24a8a9=_0x221811;super(),this['_config']=_0x4965c7,this[_0x24a8a9(0x191)]=_0x569af8,this[_0x24a8a9(0x157)]=_0x2f65de;const {..._0x3d493f}=_0x47f8b3({},T,this[_0x24a8a9(0x15d)]);this['_configService'][_0x24a8a9(0x197)](ye,_0x3d493f);}[_0x221811(0x1b7)](){const _0x5f01fe=_0x221811;_0x38128c(this['_injector'],_0x28e201([[L],[S],[I],[m]],this[_0x5f01fe(0x15d)]['override'])),_0x441580(this[_0x5f01fe(0x191)],[[I]]);}['onRendered'](){const _0x4ac341=_0x221811;_0x441580(this[_0x4ac341(0x191)],[[m]]);}};B(b,'type',_0x4fecd8[_0x221811(0x13f)]),B(b,_0x221811(0x1a6),Ye),b=We([_0x4ef44e(_0x121829),F(0x1,_0x3b972f(_0x1e206d)),F(0x2,_0x3c082e)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x57791f=_0x2c32;(function(_0x54fa82,_0x4973e7){const _0x23c84f=_0x2c32,_0x2e29d1=_0x54fa82();while(!![]){try{const _0x7b1c36=parseInt(_0x23c84f(0x24d))/0x1+parseInt(_0x23c84f(0x1e9))/0x2+-parseInt(_0x23c84f(0x23a))/0x3*(parseInt(_0x23c84f(0x235))/0x4)+-parseInt(_0x23c84f(0x273))/0x5*(parseInt(_0x23c84f(0x261))/0x6)+-parseInt(_0x23c84f(0x269))/0x7*(-parseInt(_0x23c84f(0x1e4))/0x8)+-parseInt(_0x23c84f(0x24a))/0x9+parseInt(_0x23c84f(0x21c))/0xa*(parseInt(_0x23c84f(0x25c))/0xb);if(_0x7b1c36===_0x4973e7)break;else _0x2e29d1['push'](_0x2e29d1['shift']());}catch(_0x2b7a86){_0x2e29d1['push'](_0x2e29d1['shift']());}}}(_0x47de,0xd96a9));var J=Object[_0x57791f(0x24b)],K=(_0x4825a5,_0x589424,_0x1483f6)=>_0x589424 in _0x4825a5?J(_0x4825a5,_0x589424,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1483f6}):_0x4825a5[_0x589424]=_0x1483f6,u=(_0x38b1f2,_0x30a8ff,_0x4903f4)=>K(_0x38b1f2,typeof _0x30a8ff!=_0x57791f(0x24f)?_0x30a8ff+'':_0x30a8ff,_0x4903f4);import{Disposable as _0x586517,toDisposable as _0x2b6ac2,IUniverInstanceService as _0x50f749,Inject as _0x58c47f,Injector as _0x337fab,IConfigService as _0x1a7034,ICommandService as _0x4ad104,RxDisposable as _0xaf6b52,UniverInstanceType as _0x469e4a,DisposableCollection as _0x3803ff,CommandType as _0x3018fa,DependentOn as _0x54389d,Plugin as _0x288486,merge as _0x2293ae,registerDependencies as _0x1849c5,mergeOverrideWithDependencies as _0x40e0b3,touchDependencies as _0x5b1334}from'@univerjs/core';import{useDependency as _0x173f99,useObservable as _0xa17243,IUIPartsService as _0x3ddec6,BuiltInUIPart as _0x4296f0,connectInjector as _0x2e917a}from'@univerjs/ui';import{jsx as _0x47899f,jsxs as _0x585bf4,Fragment as _0x1aad73}from'react/jsx-runtime';import{Dropdown as _0x4832fe,clsx as _0x183b25,Button as _0x16a64c}from'@univerjs/design';import{useRef as _0x1d2dfb,createElement as _0x3b748f,forwardRef as _0x26d85a,useState as _0x4faa64,useEffect as _0x4695ab}from'react';import{CollaborationEvent as _0x56ba98,parseProtocolChangeset as _0x2b0cec}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x208377,SessionStatus as _0x9d842f,UniverCollaborationClientPlugin as _0x28e03d}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3cb9ca,SetWorksheetActiveOperation as _0x2d9b0e}from'@univerjs/sheets';import{BehaviorSubject as _0x27311b,Subject as _0x1fa751}from'rxjs';import{takeUntil as _0x11a52f,throttleTime as _0x412eba}from'rxjs/operators';import{SetZoomRatioOperation as _0x5ce85d,SetScrollOperation as _0x4c3e16}from'@univerjs/sheets-ui';function k({ref:_0x59e281,..._0x1408d3}){const _0x35fcf1=_0x57791f,{icon:_0x28f6ef,id:_0xee3966,className:_0x3a9163,extend:_0x2dd190,..._0x16d565}=_0x1408d3,_0x945a90=('univerjs-icon\x20univerjs-icon-'+_0xee3966+'\x20'+(_0x3a9163||''))['trim'](),_0x37e69c=_0x1d2dfb('_'+Oe());return G(_0x28f6ef,''+_0xee3966,{'defIds':_0x28f6ef[_0x35fcf1(0x259)],'idSuffix':_0x37e69c[_0x35fcf1(0x228)]},{'ref':_0x59e281,'className':_0x945a90,..._0x16d565},_0x2dd190);}function G(_0xcdfd5e,_0x10971e,_0x314010,_0x396d54,_0x5eee10){const _0x2b13a7=_0x57791f;return _0x3b748f(_0xcdfd5e['tag'],{'key':_0x10971e,...be(_0xcdfd5e,_0x314010,_0x5eee10),..._0x396d54},(Ee(_0xcdfd5e,_0x314010)[_0x2b13a7(0x23d)]||[])['map']((_0x4dd1fb,_0x50196a)=>G(_0x4dd1fb,_0x10971e+'-'+_0xcdfd5e[_0x2b13a7(0x200)]+'-'+_0x50196a,_0x314010,void 0x0,_0x5eee10)));}function be(_0x387861,_0x1cfdbe,_0x1d8e1c){const _0x19205f=_0x57791f,_0x2cb95a={..._0x387861[_0x19205f(0x255)]};_0x1d8e1c!=null&&_0x1d8e1c[_0x19205f(0x230)]&&_0x2cb95a[_0x19205f(0x1eb)]===_0x19205f(0x230)&&(_0x2cb95a['fill']=_0x1d8e1c[_0x19205f(0x230)]),_0x387861[_0x19205f(0x200)]===_0x19205f(0x1e5)&&_0x2cb95a['id']&&(_0x2cb95a['id']=_0x2cb95a['id']+_0x1cfdbe['idSuffix']),Object[_0x19205f(0x1f7)](_0x2cb95a)[_0x19205f(0x24e)](([_0xb8308e,_0x10b6ab])=>{const _0x1c32d0=_0x19205f;_0xb8308e===_0x1c32d0(0x1e5)&&typeof _0x10b6ab=='string'&&(_0x2cb95a[_0xb8308e]=_0x10b6ab[_0x1c32d0(0x242)](/url\(#(.*)\)/,_0x1c32d0(0x1d3)+_0x1cfdbe[_0x1c32d0(0x1e2)]+')'));});const {defIds:_0x2a8bfc}=_0x1cfdbe;return!_0x2a8bfc||_0x2a8bfc[_0x19205f(0x1d7)]===0x0||(_0x387861[_0x19205f(0x200)]===_0x19205f(0x1fa)&&_0x2cb95a['xlink:href']&&(_0x2cb95a[_0x19205f(0x210)]=_0x2cb95a[_0x19205f(0x210)]+_0x1cfdbe[_0x19205f(0x1e2)]),Object['entries'](_0x2cb95a)[_0x19205f(0x24e)](([_0x8587fa,_0x56d0e6])=>{const _0x34937e=_0x19205f;typeof _0x56d0e6==_0x34937e(0x1f9)&&(_0x2cb95a[_0x8587fa]=_0x56d0e6[_0x34937e(0x242)](/url\(#(.*)\)/,_0x34937e(0x1d3)+_0x1cfdbe['idSuffix']+')'));})),_0x2cb95a;}function Ee(_0x105694,_0x3a99c0){const _0x3f4690=_0x57791f;var _0x409d84;const {defIds:_0xafe833}=_0x3a99c0;return!_0xafe833||_0xafe833[_0x3f4690(0x1d7)]===0x0?_0x105694:_0x105694['tag']===_0x3f4690(0x1ef)&&((_0x409d84=_0x105694[_0x3f4690(0x23d)])!=null&&_0x409d84['length'])?{..._0x105694,'children':_0x105694[_0x3f4690(0x23d)]['map'](_0x115808=>typeof _0x115808[_0x3f4690(0x255)]['id']==_0x3f4690(0x1f9)&&_0xafe833&&_0xafe833[_0x3f4690(0x21e)](_0x115808[_0x3f4690(0x255)]['id'])?{..._0x115808,'attrs':{..._0x115808['attrs'],'id':_0x115808[_0x3f4690(0x255)]['id']+_0x3a99c0['idSuffix']}}:_0x115808)}:_0x105694;}function Oe(){const _0x4b531c=_0x57791f;return Math[_0x4b531c(0x236)]()['toString'](0x24)[_0x4b531c(0x1ed)](0x2,0x8);}k[_0x57791f(0x224)]=_0x57791f(0x1f8);const we={'tag':_0x57791f(0x20d),'attrs':{'xmlns':_0x57791f(0x1e6),'fill':_0x57791f(0x1fd),'viewBox':_0x57791f(0x22e),'width':'1em','height':_0x57791f(0x249)},'children':[{'tag':'path','attrs':{'fill':_0x57791f(0x247),'d':_0x57791f(0x253)}},{'tag':_0x57791f(0x22d),'attrs':{'fill':'currentColor','d':_0x57791f(0x1f2),'fillRule':_0x57791f(0x260),'clipRule':_0x57791f(0x260)}}]},W=_0x26d85a(function(_0x26ab41,_0x4185bd){const _0x17c253=_0x57791f;return _0x3b748f(k,Object[_0x17c253(0x202)]({},_0x26ab41,{'id':_0x17c253(0x208),'ref':_0x4185bd,'icon':we}));});W['displayName']=_0x57791f(0x22a);class L extends _0x586517{constructor(){const _0x2d4bf6=_0x57791f;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x2d4bf6(0x209),new Set());}['registerSharedOperation'](_0x1b1067){const _0x43a568=_0x57791f;return this[_0x43a568(0x1df)][_0x43a568(0x1dd)](_0x1b1067),_0x2b6ac2(()=>this[_0x43a568(0x1df)][_0x43a568(0x1f4)](_0x1b1067));}[_0x57791f(0x25f)](_0x4d633f){const _0x226e87=_0x57791f;return this[_0x226e87(0x209)][_0x226e87(0x1dd)](_0x4d633f),_0x2b6ac2(()=>this['_reporters'][_0x226e87(0x1f4)](_0x4d633f));}[_0x57791f(0x216)](_0x3487d1){const _0x10a86d=_0x57791f;return this[_0x10a86d(0x1df)]['has'](_0x3487d1);}[_0x57791f(0x1d8)](_0x44d1b4){const _0xa84eab=_0x57791f;return Array['from'](this[_0xa84eab(0x209)])[_0xa84eab(0x1d4)](_0x9fe3ae=>_0x9fe3ae(_0x44d1b4));}}var Ne=Object[_0x57791f(0x1ee)],Y=(_0x501797,_0x580d94,_0x5c5604,_0x4e5ebe)=>{const _0x1ee547=_0x57791f;for(var _0x4b0b6b=_0x4e5ebe>0x1?void 0x0:_0x4e5ebe?Ne(_0x580d94,_0x5c5604):_0x580d94,_0x2c1293=_0x501797[_0x1ee547(0x1d7)]-0x1,_0x2ec4e9;_0x2c1293>=0x0;_0x2c1293--)(_0x2ec4e9=_0x501797[_0x2c1293])&&(_0x4b0b6b=_0x2ec4e9(_0x4b0b6b)||_0x4b0b6b);return _0x4b0b6b;},_=(_0x5859bc,_0x45dc7f)=>(_0xda0ba5,_0x2117ec)=>_0x45dc7f(_0xda0ba5,_0x2117ec,_0x5859bc);let S=class extends _0xaf6b52{constructor(_0x18071a,_0x562bab,_0x2ae5e7){const _0x48af8b=_0x57791f;super(),u(this,_0x48af8b(0x217),new Map()),(this[_0x48af8b(0x250)]=_0x18071a,this['_injector']=_0x562bab,this[_0x48af8b(0x213)]=_0x2ae5e7,this[_0x48af8b(0x1e8)]());}async[_0x57791f(0x1d9)](_0x3397ba){const _0x58e122=_0x57791f;return this[_0x58e122(0x217)][_0x58e122(0x274)](_0x3397ba)||await this[_0x58e122(0x1de)](_0x3397ba),this[_0x58e122(0x217)][_0x58e122(0x203)](_0x3397ba);}['getLiveShareCoordinatorSync'](_0x2c80ef){const _0x55bfad=_0x57791f;var _0x1800c3;return(_0x1800c3=this[_0x55bfad(0x217)][_0x55bfad(0x203)](_0x2c80ef))!=null?_0x1800c3:null;}[_0x57791f(0x1e8)](){const _0x471f78=_0x57791f;this[_0x471f78(0x250)][_0x471f78(0x23e)](_0x469e4a[_0x471f78(0x232)])[_0x471f78(0x1f3)](_0x11a52f(this[_0x471f78(0x20b)]))[_0x471f78(0x245)](async _0x53022b=>{const _0x587980=_0x471f78,_0x31fa8c=_0x53022b[_0x587980(0x244)]();this[_0x587980(0x217)][_0x587980(0x274)](_0x31fa8c)||this['_startLiveShareCoordinator'](_0x31fa8c);}),this[_0x471f78(0x250)][_0x471f78(0x20a)](_0x469e4a[_0x471f78(0x232)])[_0x471f78(0x1f3)](_0x11a52f(this['dispose$']))['subscribe'](_0x2a0573=>{const _0x31f758=_0x471f78,_0x47335f=_0x2a0573['getUnitId'](),_0x5bf655=this[_0x31f758(0x217)]['get'](_0x47335f);_0x5bf655==null||_0x5bf655[_0x31f758(0x25d)]();});}async[_0x57791f(0x1de)](_0x6158e6){const _0x4db9b7=_0x57791f,_0x52a323=await this['_collabSessionService']['requireSession'](_0x6158e6),_0x5d2325=this[_0x4db9b7(0x26b)][_0x4db9b7(0x20c)](N,_0x6158e6,_0x52a323);return _0x5d2325[_0x4db9b7(0x265)](),this[_0x4db9b7(0x217)]['set'](_0x6158e6,_0x5d2325),_0x5d2325;}};S=Y([_(0x0,_0x50f749),_(0x1,_0x58c47f(_0x337fab)),_(0x2,_0x58c47f(_0x208377))],S);var c=(_0x38cf86=>(_0x38cf86[_0x57791f(0x23b)]=_0x57791f(0x1fc),_0x38cf86[_0x57791f(0x1f0)]=_0x57791f(0x264),_0x38cf86[_0x57791f(0x26c)]=_0x57791f(0x227),_0x38cf86[_0x57791f(0x26a)]=_0x57791f(0x229),_0x38cf86['PRESENTING']='presenting',_0x38cf86))(c||{});const Ce=_0x57791f(0x24c),De=0xc8;let N=class extends _0xaf6b52{constructor(_0xb77f01,_0x43248f,_0x226202,_0x29b246,_0x58ba1d){const _0x155ea7=_0x57791f;super(),u(this,'_status$',new _0x27311b(_0x155ea7(0x264))),u(this,'status$',this[_0x155ea7(0x1d5)]['asObservable']()),u(this,_0x155ea7(0x1e8),!0x1),u(this,_0x155ea7(0x215),null),u(this,_0x155ea7(0x21f),null),(this[_0x155ea7(0x205)]=_0xb77f01,this[_0x155ea7(0x271)]=_0x43248f,this[_0x155ea7(0x211)]=_0x226202,this[_0x155ea7(0x251)]=_0x29b246,this['_commandService']=_0x58ba1d);}get[_0x57791f(0x222)](){const _0x500735=_0x57791f;return this[_0x500735(0x1d5)]['getValue']();}['dispose'](){const _0x3b6f09=_0x57791f;var _0x46f65e;(_0x46f65e=this[_0x3b6f09(0x215)])==null||_0x46f65e[_0x3b6f09(0x25d)](),this[_0x3b6f09(0x1d5)][_0x3b6f09(0x263)](_0x3b6f09(0x264)),this['_status$']['complete']();}[_0x57791f(0x272)](){const _0x460aa6=_0x57791f;return this[_0x460aa6(0x222)];}[_0x57791f(0x265)](){const _0x3a7500=_0x57791f;this[_0x3a7500(0x1e8)]||(this[_0x3a7500(0x1e8)]=!0x0,this[_0x3a7500(0x271)][_0x3a7500(0x21a)]['pipe'](_0x11a52f(this[_0x3a7500(0x20b)]))[_0x3a7500(0x245)](_0x4e0107=>{const _0x425eea=_0x3a7500;switch(_0x4e0107){case _0x9d842f[_0x425eea(0x23b)]:this[_0x425eea(0x234)]();break;case _0x9d842f[_0x425eea(0x206)]:this['_handleOnline']();break;}}),this[_0x3a7500(0x271)][_0x3a7500(0x1da)][_0x3a7500(0x1f3)](_0x11a52f(this['dispose$']))[_0x3a7500(0x245)](_0x5e777a=>{const _0x1cb0d7=_0x3a7500,{eventID:_0x4093a2}=_0x5e777a;switch(_0x4093a2){case _0x56ba98[_0x1cb0d7(0x258)]:this[_0x1cb0d7(0x252)](_0x5e777a);break;case _0x56ba98['LIVESHARE_OPERATION']:this[_0x1cb0d7(0x1e3)](_0x5e777a);break;case _0x56ba98[_0x1cb0d7(0x22c)]:this['_handleTerminate']();break;case _0x56ba98[_0x1cb0d7(0x1f5)]:this['_handleNewChangeSets'](_0x5e777a);break;}}));}[_0x57791f(0x201)](){const _0x1bf0b4=_0x57791f;this[_0x1bf0b4(0x271)][_0x1bf0b4(0x1d6)]({'eventID':_0x56ba98['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1bf0b4(0x205)],'userID':this['_collabSession'][_0x1bf0b4(0x262)]()}},this[_0x1bf0b4(0x205)]);}[_0x57791f(0x22b)](){const _0x14a667=_0x57791f;this['_status']===_0x14a667(0x276)&&(this[_0x14a667(0x1d5)]['next'](_0x14a667(0x264)),this['_collabSession'][_0x14a667(0x1d6)]({'eventID':_0x56ba98['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x14a667(0x205)]}},this[_0x14a667(0x205)]));}[_0x57791f(0x248)](){const _0x36c2a0=_0x57791f;this['_status']==='not-following'&&(this[_0x36c2a0(0x1d5)]['next'](_0x36c2a0(0x227)),this[_0x36c2a0(0x214)]());}[_0x57791f(0x25a)](){const _0x2dcd80=_0x57791f;this[_0x2dcd80(0x222)]===_0x2dcd80(0x227)&&this[_0x2dcd80(0x1d2)]();}[_0x57791f(0x252)](_0x260329){const _0x59ca07=_0x57791f,{presenter:_0x17c45d}=_0x260329[_0x59ca07(0x1f6)],_0x3124c9=this[_0x59ca07(0x271)]['getMemberID']();this[_0x59ca07(0x21f)]=_0x17c45d,_0x17c45d===_0x3124c9?(this[_0x59ca07(0x1d2)](),this[_0x59ca07(0x20e)]()):this[_0x59ca07(0x222)]!=='not-following'&&(this[_0x59ca07(0x266)](),this[_0x59ca07(0x214)]());}['_fetchOperations'](){const _0x31b09a=_0x57791f,_0x46c789={'eventID':_0x56ba98['LIVESHARE_FETCH_OPERATIONS']};this[_0x31b09a(0x271)][_0x31b09a(0x1d6)](_0x46c789,this[_0x31b09a(0x205)]);}[_0x57791f(0x1ff)](){const _0x526e9e=_0x57791f;this[_0x526e9e(0x21f)]=null,this['_status']!==_0x526e9e(0x276)&&this[_0x526e9e(0x204)]();}[_0x57791f(0x225)](_0x7f7933){const _0x22493c=_0x57791f;if(this[_0x22493c(0x222)]===_0x22493c(0x227)&&this['_presenter']===_0x7f7933[_0x22493c(0x1f6)][_0x22493c(0x267)]){const _0x4be5be=_0x2b0cec(_0x7f7933['data'])['mutations']['reverse']()['find'](_0x5346ab=>_0x5346ab['id']===_0x3cb9ca['id']);if(_0x4be5be){const _0x500024=_0x4be5be[_0x22493c(0x240)][_0x22493c(0x246)],_0x443ae0=_0x4be5be['params'][_0x22493c(0x21b)]['id'];setTimeout(()=>{const _0xab352c=_0x22493c;this[_0xab352c(0x239)][_0xab352c(0x25b)](_0x2d9b0e['id'],{'unitId':_0x500024,'subUnitId':_0x443ae0},{'fromCollab':!0x0});});}}}[_0x57791f(0x20e)](){const _0x4615e5=_0x57791f;this['_status$']['next'](_0x4615e5(0x276));const _0x532596=new Map(),_0x6c75af=this['_commandDisposable']=new _0x3803ff();_0x6c75af[_0x4615e5(0x1dd)](_0x2b6ac2(()=>{const _0x537c25=_0x4615e5;_0x532596[_0x537c25(0x24e)](_0x2dc73d=>_0x2dc73d[_0x537c25(0x1ec)]()),_0x532596['clear']();})),_0x6c75af['add'](this['_commandService'][_0x4615e5(0x26f)](_0x8dad7e=>{const _0x55e78e=_0x4615e5;var _0x1be19a;if(_0x8dad7e['type']!==_0x3018fa['OPERATION']||!this[_0x55e78e(0x251)][_0x55e78e(0x216)](_0x8dad7e['id']))return;const {id:_0xa0e940}=_0x8dad7e;let _0x2ab0ee;_0x532596[_0x55e78e(0x274)](_0xa0e940)?_0x2ab0ee=_0x532596[_0x55e78e(0x203)](_0xa0e940):(_0x2ab0ee=new _0x1fa751(),_0x532596[_0x55e78e(0x23f)](_0xa0e940,_0x2ab0ee),_0x2ab0ee[_0x55e78e(0x1f3)](_0x412eba((_0x1be19a=this[_0x55e78e(0x211)][_0x55e78e(0x231)](Ce))!=null?_0x1be19a:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x55e78e(0x245)](_0x171e6c=>{const _0x5bfaef=_0x55e78e;this['_collabSession'][_0x5bfaef(0x1d6)]({'eventID':_0x56ba98[_0x5bfaef(0x226)],'data':{'unitID':this[_0x5bfaef(0x205)],'operations':{[_0x171e6c['id']]:{'id':_0x171e6c['id'],'params':JSON[_0x5bfaef(0x241)](_0x171e6c[_0x5bfaef(0x240)])}}}},this['_unitID']);})),_0x2ab0ee[_0x55e78e(0x263)](_0x8dad7e);})),this[_0x4615e5(0x251)][_0x4615e5(0x1d8)](this[_0x4615e5(0x205)])[_0x4615e5(0x24e)](_0x31ec34=>this[_0x4615e5(0x271)]['send']({'eventID':_0x56ba98['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x31ec34['id']]:{'id':_0x31ec34['id'],'params':JSON[_0x4615e5(0x241)](_0x31ec34['params'])}}}},this[_0x4615e5(0x205)]));}[_0x57791f(0x266)](){const _0x382ee7=_0x57791f;var _0xb7c9ca;this['_status$'][_0x382ee7(0x263)](_0x382ee7(0x264)),(_0xb7c9ca=this[_0x382ee7(0x215)])==null||_0xb7c9ca[_0x382ee7(0x25d)](),this[_0x382ee7(0x215)]=null;}[_0x57791f(0x214)](){const _0x1a772e=_0x57791f;var _0x11c4fe;(_0x11c4fe=this[_0x1a772e(0x215)])==null||_0x11c4fe['dispose'](),this[_0x1a772e(0x1d5)][_0x1a772e(0x263)]('following');}[_0x57791f(0x204)](){const _0x2fe777=_0x57791f;var _0x27c535;this['_status$']['next']('idle'),(_0x27c535=this[_0x2fe777(0x215)])==null||_0x27c535[_0x2fe777(0x25d)](),this[_0x2fe777(0x215)]=null;}[_0x57791f(0x1d2)](){const _0x127a30=_0x57791f;var _0x19c61a;this[_0x127a30(0x1d5)][_0x127a30(0x263)](_0x127a30(0x229)),(_0x19c61a=this['_commandDisposable'])==null||_0x19c61a[_0x127a30(0x25d)]();}[_0x57791f(0x1e3)](_0x8d7c5a){const _0x11204e=_0x57791f;if(['presenting',_0x11204e(0x229),_0x11204e(0x1fc)][_0x11204e(0x21e)](this[_0x11204e(0x222)])||!_0x8d7c5a[_0x11204e(0x1f6)]['presenter']||_0x8d7c5a[_0x11204e(0x1f6)]['presenter']===this[_0x11204e(0x271)][_0x11204e(0x262)]())return;this[_0x11204e(0x222)]===_0x11204e(0x264)&&this[_0x11204e(0x214)]();const _0x1da320=_0x8d7c5a[_0x11204e(0x1f6)][_0x11204e(0x1e0)];Object['values'](_0x1da320)[_0x11204e(0x24e)](_0xf184b6=>{const _0x6e66e5=_0x11204e;this[_0x6e66e5(0x239)][_0x6e66e5(0x25b)](_0xf184b6['id'],_0xf184b6[_0x6e66e5(0x240)]?JSON[_0x6e66e5(0x207)](_0xf184b6[_0x6e66e5(0x240)]):null,{'fromCollab':!0x0});});}[_0x57791f(0x234)](){const _0x58f265=_0x57791f;var _0x44ee50;this[_0x58f265(0x1d5)][_0x58f265(0x263)](_0x58f265(0x1fc)),(_0x44ee50=this[_0x58f265(0x215)])==null||_0x44ee50['dispose']();}[_0x57791f(0x1ea)](){const _0x26abbb=_0x57791f;this[_0x26abbb(0x1d5)]['next'](_0x26abbb(0x264)),this['_fetchOperations']();}};N=Y([_(0x2,_0x1a7034),_(0x3,_0x58c47f(L)),_(0x4,_0x4ad104)],N);function Le(){const _0x351e8d=_0x57791f,_0x4a41c9=_0x173f99(S),_0x528556=_0x173f99(_0x50f749),_0x59b61c=_0xa17243(()=>_0x528556[_0x351e8d(0x268)](_0x469e4a[_0x351e8d(0x232)]),void 0x0,!0x1,[]),[_0x55ed1f,_0x110e5a]=_0x4faa64(null),[_0x162232,_0x11f8a1]=_0x4faa64(c['IDLE']),_0x2a11de=_0x1d2dfb(null);return _0x4695ab(()=>(_0x59b61c&&_0x4a41c9['getLiveShareCoordinator'](_0x59b61c[_0x351e8d(0x244)]())[_0x351e8d(0x275)](_0x2b9a46=>{const _0x4fa037=_0x351e8d;_0x110e5a(_0x2b9a46),_0x2a11de[_0x4fa037(0x228)]=_0x2b9a46['status$'][_0x4fa037(0x245)](_0x2a3f3c=>{_0x11f8a1(_0x2a3f3c);});}),()=>{const _0x554cef=_0x351e8d;var _0xda6676;(_0xda6676=_0x2a11de[_0x554cef(0x228)])==null||_0xda6676['unsubscribe'](),_0x2a11de['current']=null;}),[_0x59b61c,_0x4a41c9]),_0x55ed1f?_0x47899f(_0x4832fe,{'align':_0x351e8d(0x238),'disabled':_0x162232===c['OFFLINE'],'className':_0x351e8d(0x254),'overlay':_0x47899f(Re,{'status':_0x162232,'coordinator':_0x55ed1f}),'children':_0x47899f(_0x351e8d(0x219),{'className':_0x183b25('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x162232===c[_0x351e8d(0x23b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x162232!==c['OFFLINE']}),'type':_0x351e8d(0x219),'children':_0x47899f(W,{'className':_0x351e8d(0x256)})})}):null;}function Re(_0x483c74){const _0x123a3b=_0x57791f,{status:_0x36e11f,coordinator:_0x40aa0e}=_0x483c74;switch(_0x36e11f){case c['IDLE']:return _0x47899f($e,{'coordinator':_0x40aa0e});case c[_0x123a3b(0x26c)]:return _0x47899f(xe,{'coordinator':_0x40aa0e});case c['NOT_FOLLOWING']:return _0x47899f(Pe,{'coordinator':_0x40aa0e});case c[_0x123a3b(0x23b)]:return _0x47899f(Te,{});case c[_0x123a3b(0x218)]:return _0x47899f(Ae,{'coordinator':_0x40aa0e});default:return null;}}function $e(_0x2ec0b7){const _0x592010=_0x57791f,{coordinator:_0x56743c}=_0x2ec0b7;return _0x585bf4(_0x1aad73,{'children':[_0x47899f(_0x592010(0x277),{'className':_0x592010(0x26e),'children':_0x592010(0x1e1)}),_0x47899f(_0x16a64c,{'onClick':()=>_0x56743c[_0x592010(0x201)](),'children':'Start'})]});}function xe(_0x1d41fb){const _0x1b673f=_0x57791f,{coordinator:_0x5a53bc}=_0x1d41fb;return _0x585bf4(_0x1aad73,{'children':[_0x47899f(_0x1b673f(0x277),{'className':_0x1b673f(0x26e),'children':_0x1b673f(0x1fe)}),_0x47899f(_0x16a64c,{'onClick':()=>_0x5a53bc['stopFollowing'](),'children':_0x1b673f(0x1e7)})]});}function _0x47de(){const _0x3c95d4=['override','_mountLiveShare','_status','live-share.config','displayName','_handleNewChangeSets','LIVESHARE_OPERATION','following','current','not-following','LiveShareIcon','stopPresenting','LIVESHARE_TERMINATE','path','0\x200\x2017\x2017','Stop\x20presenting','colorChannel1','getConfig','UNIVER_SHEET','disposeWithMe','_handleOffline','4TJLgok','random','registerComponent','end','_commandService','1008753GEvfoZ','OFFLINE','registerSharedOperation','children','getTypeOfUnitAdded$','set','params','stringify','replace','HEADER_MENU','getUnitId','subscribe','unitId','currentColor','startFollowing','1em','11090430IlUFYP','defineProperty','SAME_OPERATION_SHARE_INTERVAL','261441NQGPMk','forEach','symbol','_univerInstanceService','_liveShareService','_handleNewHost','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','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','attrs','univer-size-4','You\x27are\x20offline.','LIVESHARE_NEW_HOST','defIds','stopFollowing','executeCommand','11VJSatq','dispose','UNIVER_UNKNOWN','registerInitialStateReporter','evenodd','12kKvitr','getMemberID','next','idle','init','_stopPresenting','memberID','getCurrentTypeOfUnit$','21161zGZjmg','NOT_FOLLOWING','_injector','FOLLOWING','text','univer-mb-3\x20univer-w-full\x20univer-text-sm','onCommandExecuted','_config','_collabSession','getStatus','515DXQZWA','has','then','presenting','div','_stopFollowing','url(#$1','map','_status$','send','length','getInitialStates','getLiveShareCoordinator','event$','_uiPartsService','onStarting','add','_startLiveShareCoordinator','_sharedOperations','operations','Present\x20this\x20document','idSuffix','_handleOperation','856IFfoTP','mask','http://www.w3.org/2000/svg','Stop\x20following','_init','1813200yMlxFR','_handleOnline','fill','complete','substring','getOwnPropertyDescriptor','defs','IDLE','You\x27re\x20not\x20following\x20the\x20presenter','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','pipe','delete','NEW_CHANGESETS','data','entries','UniverIcon','string','use','You\x27re\x20presenting\x20the\x20document','offline','none','You\x27re\x20following\x20the\x20presenter','_handleTerminate','tag','tryStartPresenting','assign','get','_beIdle','_unitID','ONLINE','parse','live-share-icon','_reporters','getTypeOfUnitDisposed$','dispose$','createInstance','svg','_startPresenting','type','xlink:href','_configService','onRendered','_collabSessionService','_startFollowing','_commandDisposable','shouldShareOperation','_entities','PRESENTING','button','sessionStatus$','sheet','9677620iQvyAZ','UNIVER_LIVE_SHARE_PLUGIN','includes','_presenter'];_0x47de=function(){return _0x3c95d4;};return _0x47de();}function Pe(_0x1a8d45){const _0x2352cf=_0x57791f,{coordinator:_0x5ee68d}=_0x1a8d45;return _0x585bf4(_0x1aad73,{'children':[_0x47899f('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2352cf(0x1f1)}),_0x47899f(_0x16a64c,{'variant':_0x2352cf(0x26d),'onClick':()=>_0x5ee68d['startFollowing'](),'children':'Start\x20following'})]});}function Ae(_0x1cf91f){const _0x17f26e=_0x57791f,{coordinator:_0x24d478}=_0x1cf91f;return _0x585bf4(_0x1aad73,{'children':[_0x47899f(_0x17f26e(0x277),{'className':_0x17f26e(0x26e),'children':_0x17f26e(0x1fb)}),_0x47899f(_0x16a64c,{'variant':'default','onClick':()=>_0x24d478[_0x17f26e(0x22b)](),'children':_0x17f26e(0x22f)})]});}function Te(){const _0x4a2696=_0x57791f;return _0x47899f(_0x1aad73,{'children':_0x4a2696(0x257)});}var Fe=Object[_0x57791f(0x1ee)],He=(_0x4635cd,_0x152307,_0x54cc90,_0x9b6397)=>{for(var _0x165b97=_0x9b6397>0x1?void 0x0:_0x9b6397?Fe(_0x152307,_0x54cc90):_0x152307,_0x246d8c=_0x4635cd['length']-0x1,_0x2cd7bb;_0x246d8c>=0x0;_0x246d8c--)(_0x2cd7bb=_0x4635cd[_0x246d8c])&&(_0x165b97=_0x2cd7bb(_0x165b97)||_0x165b97);return _0x165b97;},A=(_0x5e26b1,_0x32acd7)=>(_0x5d1e97,_0x46f03e)=>_0x32acd7(_0x5d1e97,_0x46f03e,_0x5e26b1);function _0x2c32(_0x5a0cf3,_0x4af835){const _0x47de18=_0x47de();return _0x2c32=function(_0x2c32c3,_0x475c70){_0x2c32c3=_0x2c32c3-0x1d2;let _0x2d8eb4=_0x47de18[_0x2c32c3];return _0x2d8eb4;},_0x2c32(_0x5a0cf3,_0x4af835);}let m=class extends _0x586517{constructor(_0x5bc29f,_0x669945){const _0x492f2f=_0x57791f;super(),this[_0x492f2f(0x26b)]=_0x5bc29f,this[_0x492f2f(0x1db)]=_0x669945,this[_0x492f2f(0x221)]();}[_0x57791f(0x221)](){const _0x1961b3=_0x57791f;this[_0x1961b3(0x233)](this['_uiPartsService'][_0x1961b3(0x237)](_0x4296f0[_0x1961b3(0x243)],()=>_0x2e917a(Le,this[_0x1961b3(0x26b)])));}};m=He([A(0x0,_0x58c47f(_0x337fab)),A(0x1,_0x3ddec6)],m);const ye=_0x57791f(0x223),T={};var Ue=Object[_0x57791f(0x1ee)],Ve=(_0x4c05fd,_0x521b7d,_0x24d422,_0x46ba0d)=>{for(var _0x1082e2=_0x46ba0d>0x1?void 0x0:_0x46ba0d?Ue(_0x521b7d,_0x24d422):_0x521b7d,_0x52066d=_0x4c05fd['length']-0x1,_0x50cd03;_0x52066d>=0x0;_0x52066d--)(_0x50cd03=_0x4c05fd[_0x52066d])&&(_0x1082e2=_0x50cd03(_0x1082e2)||_0x1082e2);return _0x1082e2;},je=(_0x41c6af,_0x58d3f1)=>(_0x264d1b,_0x5b1415)=>_0x58d3f1(_0x264d1b,_0x5b1415,_0x41c6af);let I=class extends _0x586517{constructor(_0x1b6709){const _0x4f5b89=_0x57791f;super(),this[_0x4f5b89(0x251)]=_0x1b6709,this[_0x4f5b89(0x1e8)]();}['_init'](){const _0x37f275=_0x57791f;[_0x5ce85d['id'],_0x4c3e16['id'],_0x2d9b0e['id']][_0x37f275(0x24e)](_0x52bd69=>{const _0x444305=_0x37f275;this['disposeWithMe'](this[_0x444305(0x251)][_0x444305(0x23c)](_0x52bd69));});}};I=Ve([je(0x0,_0x58c47f(L))],I);var Me=Object[_0x57791f(0x24b)],ke=Object[_0x57791f(0x1ee)],Ge=(_0x8be206,_0x43c5eb,_0x4b3116)=>_0x43c5eb in _0x8be206?Me(_0x8be206,_0x43c5eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b3116}):_0x8be206[_0x43c5eb]=_0x4b3116,We=(_0x56d12d,_0x10fa63,_0x1e8bcd,_0xd101f)=>{const _0x24fe95=_0x57791f;for(var _0xc4593f=_0xd101f>0x1?void 0x0:_0xd101f?ke(_0x10fa63,_0x1e8bcd):_0x10fa63,_0x29ad42=_0x56d12d[_0x24fe95(0x1d7)]-0x1,_0x4b0411;_0x29ad42>=0x0;_0x29ad42--)(_0x4b0411=_0x56d12d[_0x29ad42])&&(_0xc4593f=_0x4b0411(_0xc4593f)||_0xc4593f);return _0xc4593f;},F=(_0x52cd2e,_0x205c08)=>(_0x2d47ea,_0xae9b2e)=>_0x205c08(_0x2d47ea,_0xae9b2e,_0x52cd2e),B=(_0x3a9419,_0x45ee8a,_0xe1e9ef)=>Ge(_0x3a9419,typeof _0x45ee8a!=_0x57791f(0x24f)?_0x45ee8a+'':_0x45ee8a,_0xe1e9ef);const Ye=_0x57791f(0x21d);let b=class extends _0x288486{constructor(_0x4e3053=T,_0x1c7d2b,_0x447449){const _0x5b6543=_0x57791f;super(),this[_0x5b6543(0x270)]=_0x4e3053,this[_0x5b6543(0x26b)]=_0x1c7d2b,this[_0x5b6543(0x211)]=_0x447449;const {..._0x2c33b4}=_0x2293ae({},T,this[_0x5b6543(0x270)]);this[_0x5b6543(0x211)]['setConfig'](ye,_0x2c33b4);}[_0x57791f(0x1dc)](){const _0x2ea31a=_0x57791f;_0x1849c5(this['_injector'],_0x40e0b3([[L],[S],[I],[m]],this['_config'][_0x2ea31a(0x220)])),_0x5b1334(this['_injector'],[[I]]);}[_0x57791f(0x212)](){const _0x7498d=_0x57791f;_0x5b1334(this[_0x7498d(0x26b)],[[m]]);}};B(b,_0x57791f(0x20f),_0x469e4a[_0x57791f(0x25e)]),B(b,'pluginName',Ye),b=We([_0x54389d(_0x28e03d),F(0x1,_0x58c47f(_0x337fab)),F(0x2,_0x1a7034)],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 _0x4eae(_0x1c5da6,_0x4166b2){const _0x817c12=_0x817c();return _0x4eae=function(_0x4eaef9,_0x41b1e0){_0x4eaef9=_0x4eaef9-0x17d;let _0xa41cc=_0x817c12[_0x4eaef9];return _0xa41cc;},_0x4eae(_0x1c5da6,_0x4166b2);}function _0x817c(){const _0x2f9c12=['IRenderManagerService','262670FQiZLH','PRESENTING','_commandService','UniverSheetsUi','getStatus','10528FtEeYu','stopPresenting','@univerjs/sheets/facade','No\x20active\x20workbook\x20found.','getSheetId','getId','@univerjs/sheets-ui','UniverCoreFacade','getActiveWorkbook','@univerjs-pro/live-share','132cpkOto','function','91243XkTeFd','startColumn','LiveShareStatus','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverSheetsFacade','SetWorksheetActiveOperation','amd','LiveShareController','@univerjs/engine-render','FEnum','getUnitId','SetScrollOperation','stopFollowing','extend','object','LiveShareStatusEnum','_injector','13730RHkPQa','6197724XmOcvG','4OxBtxn','@univerjs/sheets','get','9180uylidH','110ZNdhXc','syncExecuteCommand','@univerjs/core/facade','987BrTXYG','startRow','getRenderById','8UvsxnQ','UniverSheets','FUniver','startFollowing','694341VlTmuT'];_0x817c=function(){return _0x2f9c12;};return _0x817c();}(function(_0x2c7550,_0x3f83db){const _0x28bfb6=_0x4eae,_0x550757=_0x2c7550();while(!![]){try{const _0x445416=parseInt(_0x28bfb6(0x19e))/0x1*(parseInt(_0x28bfb6(0x187))/0x2)+-parseInt(_0x28bfb6(0x18b))/0x3*(-parseInt(_0x28bfb6(0x17d))/0x4)+-parseInt(_0x28bfb6(0x1b0))/0x5*(-parseInt(_0x28bfb6(0x19c))/0x6)+parseInt(_0x28bfb6(0x184))/0x7*(-parseInt(_0x28bfb6(0x192))/0x8)+-parseInt(_0x28bfb6(0x180))/0x9+parseInt(_0x28bfb6(0x18d))/0xa*(parseInt(_0x28bfb6(0x181))/0xb)+-parseInt(_0x28bfb6(0x1b1))/0xc;if(_0x445416===_0x3f83db)break;else _0x550757['push'](_0x550757['shift']());}catch(_0x45dfde){_0x550757['push'](_0x550757['shift']());}}}(_0x817c,0x34d80),function(_0x4dcb62,_0x7f7588){const _0x28d92e=_0x4eae;typeof exports==_0x28d92e(0x1ad)&&typeof module<'u'?_0x7f7588(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==_0x28d92e(0x19d)&&define[_0x28d92e(0x1a5)]?define([_0x28d92e(0x19b),_0x28d92e(0x1a7),_0x28d92e(0x17e),_0x28d92e(0x198),_0x28d92e(0x194),_0x28d92e(0x183)],_0x7f7588):(_0x4dcb62=typeof globalThis<'u'?globalThis:_0x4dcb62||self,_0x7f7588(_0x4dcb62['UniverProLiveShare'],_0x4dcb62['UniverEngineRender'],_0x4dcb62[_0x28d92e(0x188)],_0x4dcb62[_0x28d92e(0x190)],_0x4dcb62[_0x28d92e(0x1a3)],_0x4dcb62[_0x28d92e(0x199)]));}(this,function(_0x4bd3fd,_0x17ee85,_0xb8eded,_0x1a544c,_0x3b2f09,_0xedf5a2){'use strict';const _0x40d0ad=_0x4eae;class _0x245ef4 extends _0x3b2f09['FRange']{['_initialize'](_0xf02509,_0x1ca1e1,_0xc0855a,_0x2babc2,_0x4fde15){const _0x5357ab=_0x4eae,_0x13222b=_0xf02509['get'](_0x4bd3fd['LiveShareController']),_0x1a8bdb=_0xf02509[_0x5357ab(0x17f)](_0x17ee85[_0x5357ab(0x18c)]),_0x8b9d70=_0x1ca1e1[_0x5357ab(0x1a9)](),_0x2a2c44=_0x1ca1e1['getActiveSheet'](),_0x30745b=_0x13222b[_0x5357ab(0x1a1)](_0x8b9d70);(_0x30745b==null?void 0x0:_0x30745b[_0x5357ab(0x191)]())!==_0x4bd3fd[_0x5357ab(0x1a0)][_0x5357ab(0x18e)]||(_0xc0855a[_0x5357ab(0x196)]()!==_0x2a2c44[_0x5357ab(0x196)]()&&this[_0x5357ab(0x18f)]['executeCommand'](_0xb8eded[_0x5357ab(0x1a4)]['id'],{'unitId':_0x8b9d70,'subUnitId':_0xc0855a[_0x5357ab(0x196)]()}),!_0x1a8bdb[_0x5357ab(0x186)](_0x8b9d70))||_0x4fde15[_0x5357ab(0x182)](_0x1a544c[_0x5357ab(0x1aa)]['id'],{'unitId':_0x1ca1e1[_0x5357ab(0x1a9)](),'sheetId':_0xc0855a['getSheetId'](),'sheetViewStartRow':_0x2babc2[_0x5357ab(0x185)],'sheetViewStartColumn':_0x2babc2[_0x5357ab(0x19f)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3b2f09['FRange'][_0x40d0ad(0x1ac)](_0x245ef4);class _0x14388f extends _0xedf5a2['FUniver']{['getLiveShareStatus'](){const _0xf5a2bf=_0x40d0ad;var _0x471d60,_0x3bb5cd;const _0x5bbcae=this['_injector'][_0xf5a2bf(0x17f)](_0x4bd3fd[_0xf5a2bf(0x1a6)]),_0x4aa38d=(_0x471d60=this[_0xf5a2bf(0x19a)]())==null?void 0x0:_0x471d60['getId']();if(!_0x4aa38d)throw new Error(_0xf5a2bf(0x195));const _0x19dc0f=_0x5bbcae[_0xf5a2bf(0x1a1)](_0x4aa38d);return(_0x3bb5cd=_0x19dc0f==null?void 0x0:_0x19dc0f[_0xf5a2bf(0x191)]())!=null?_0x3bb5cd:_0x4bd3fd[_0xf5a2bf(0x1a0)]['IDLE'];}[_0x40d0ad(0x18a)](){const _0x26f942=_0x40d0ad;var _0x58ba6a;const _0x4adb2a=this[_0x26f942(0x1af)]['get'](_0x4bd3fd[_0x26f942(0x1a6)]),_0x5b42c9=(_0x58ba6a=this[_0x26f942(0x19a)]())==null?void 0x0:_0x58ba6a[_0x26f942(0x197)]();if(!_0x5b42c9)throw new Error(_0x26f942(0x195));const _0x42dffc=_0x4adb2a[_0x26f942(0x1a1)](_0x5b42c9);if(!_0x42dffc)throw new Error(_0x26f942(0x1a2));_0x42dffc[_0x26f942(0x18a)]();}[_0x40d0ad(0x1ab)](){const _0x4cd5d4=_0x40d0ad;var _0x5a9e05;const _0x368115=this[_0x4cd5d4(0x1af)][_0x4cd5d4(0x17f)](_0x4bd3fd[_0x4cd5d4(0x1a6)]),_0x4facee=(_0x5a9e05=this[_0x4cd5d4(0x19a)]())==null?void 0x0:_0x5a9e05['getId']();if(!_0x4facee)throw new Error(_0x4cd5d4(0x195));const _0x75c755=_0x368115[_0x4cd5d4(0x1a1)](_0x4facee);if(!_0x75c755)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x75c755[_0x4cd5d4(0x1ab)]();}['startPresenting'](){const _0xf5b5a4=_0x40d0ad;var _0x2c7ec7;const _0x4bb0bb=this[_0xf5b5a4(0x1af)][_0xf5b5a4(0x17f)](_0x4bd3fd[_0xf5b5a4(0x1a6)]),_0x270fcb=(_0x2c7ec7=this[_0xf5b5a4(0x19a)]())==null?void 0x0:_0x2c7ec7[_0xf5b5a4(0x197)]();if(!_0x270fcb)throw new Error(_0xf5b5a4(0x195));const _0x14e3c6=_0x4bb0bb[_0xf5b5a4(0x1a1)](_0x270fcb);if(!_0x14e3c6)throw new Error(_0xf5b5a4(0x1a2));_0x14e3c6['tryStartPresenting']();}['stopPresenting'](){const _0x4c56a5=_0x40d0ad;var _0x19a766;const _0x17802d=this[_0x4c56a5(0x1af)][_0x4c56a5(0x17f)](_0x4bd3fd[_0x4c56a5(0x1a6)]),_0x4527ed=(_0x19a766=this[_0x4c56a5(0x19a)]())==null?void 0x0:_0x19a766['getId']();if(!_0x4527ed)throw new Error('No\x20active\x20workbook\x20found.');const _0x226f9c=_0x17802d[_0x4c56a5(0x1a1)](_0x4527ed);if(!_0x226f9c)throw new Error(_0x4c56a5(0x1a2));_0x226f9c[_0x4c56a5(0x193)]();}}_0xedf5a2[_0x40d0ad(0x189)][_0x40d0ad(0x1ac)](_0x14388f);class _0xa00edd extends _0xedf5a2['FEnum']{get[_0x40d0ad(0x1ae)](){const _0x4360dd=_0x40d0ad;return _0x4bd3fd[_0x4360dd(0x1a0)];}}_0xedf5a2[_0x40d0ad(0x1a8)]['extend'](_0xa00edd);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5b39(){const _0x40d6f2=['LiveShareService','LiveShareIcon','_startFollowing','replace','colorChannel1','react','useRef','You\x27re\x20following\x20the\x20presenter','8904550wxNCjn','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','toStringTag','idSuffix','_handleOnline','DisposableCollection','includes','onStarting','_collabSessionService','useState','getInitialStates','SetWorksheetActiveOperation','mutations','connectInjector','_init','svg','path','data','Button','fill','get','_handleTerminate','attrs','presenting','current','CommandType','getTypeOfUnitAdded$','0\x200\x2017\x2017','add','UniverProCollaborationClient','_mountLiveShare','UniverInstanceType','getStatus','OFFLINE','toDisposable','_injector','LiveShareStatus','end','getOwnPropertyDescriptor','SessionStatus','_unitID','ONLINE','SetZoomRatioOperation','mask','Injector','send','IUniverInstanceService','react/jsx-runtime','2472348qUqGDB','Inject','getMemberID','Disposable','type','@univerjs/ui','symbol','univer-mb-3\x20univer-w-full\x20univer-text-sm','rxjs/operators','length','offline','Dropdown','_uiPartsService','CollaborationSessionService','presenter','@univerjs-pro/collaboration','defs','tryStartPresenting','UniverCollaborationClientPlugin','Present\x20this\x20document','_handleNewHost','2594320rzfeww','createElement','_entities','subscribe','Start','Stop\x20following','init','disposeWithMe','shouldShareOperation','requireSession','_fetchOperations','jsxs','forwardRef','pluginName','_handleNewChangeSets','tag','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','text','startFollowing','unsubscribe','LIVESHARE_FETCH_OPERATIONS','dispose','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','LiveShareCoordinator','You\x27re\x20presenting\x20the\x20document','_startLiveShareCoordinator','@univerjs-pro/collaboration-client','forEach','children','LIVESHARE_OPERATION','dispose$','UniverUi','executeCommand','stopPresenting','map','complete','sessionStatus$','function','_commandDisposable','_status','React','4lOuQTe','string','not-following','following','idle','You\x27re\x20not\x20following\x20the\x20presenter','LiveShareController','UNIVER_SHEET','948846zlupfN','exports','InsertSheetMutation','parseProtocolChangeset','_collabSession','getTypeOfUnitDisposed$','UniverLiveSharePlugin','@univerjs/design','http://www.w3.org/2000/svg','live-share-icon','jsx','stopFollowing','PRESENTING','BehaviorSubject','_commandService','params','CollaborationEvent','_presenter','getValue','setConfig','You\x27are\x20offline.','has','LIVESHARE_TERMINATE','NOT_FOLLOWING','takeUntil','use','getLiveShareCoordinator','_handleOffline','univer-size-4','2260384oNVuAW','IConfigService','useObservable','RxDisposable','operations','FOLLOWING','_reporters','live-share.config','_liveShareService','displayName','stringify','_univerInstanceService','entries','touchDependencies','currentColor','set','1em','SetScrollOperation','defineProperty','21ASoUSy','@univerjs/sheets','DesktopLiveShareController','ICommandService','then','unitId','OPERATION','IDLE','getUnitId','amd','_startPresenting','SAME_OPERATION_SHARE_INTERVAL','UNIVER_UNKNOWN','_beIdle','pipe','Start\x20following','status$','UniverProCollaboration','UniverSheetsUi','BuiltInUIPart','_config','_status$','sheet','_handleOperation','rxjs','_sharedOperations','_stopFollowing','event$','onRendered','UNIVER_LIVE_SHARE_PLUGIN','useDependency','delete','onCommandExecuted','trim','@univerjs/sheets-ui','HEADER_MENU','next','div','UniverSheets','find','object','defIds','operators','Fragment','LIVESHARE_NEW_HOST','Plugin','7722702aMYpSI','DependentOn','reverse','_configService','IUIPartsService','registerComponent','@univerjs/core','UniverIcon','UniverDesign','1747631eFyxKL','button','_stopPresenting','registerSharedOperation','NEW_CHANGESETS'];_0x5b39=function(){return _0x40d6f2;};return _0x5b39();}function _0x1903(_0x3732c3,_0x6aeb50){const _0x5b395d=_0x5b39();return _0x1903=function(_0x1903bd,_0x544756){_0x1903bd=_0x1903bd-0x6a;let _0x13767f=_0x5b395d[_0x1903bd];return _0x13767f;},_0x1903(_0x3732c3,_0x6aeb50);}(function(_0x1bfe47,_0x4ffefb){const _0x394fab=_0x1903,_0x1ff624=_0x1bfe47();while(!![]){try{const _0x3f1d4f=parseInt(_0x394fab(0x9c))/0x1+-parseInt(_0x394fab(0x117))/0x2*(parseInt(_0x394fab(0x11f))/0x3)+-parseInt(_0x394fab(0x13c))/0x4+parseInt(_0x394fab(0xa9))/0x5+parseInt(_0x394fab(0xd9))/0x6+-parseInt(_0x394fab(0x14f))/0x7*(parseInt(_0x394fab(0xee))/0x8)+-parseInt(_0x394fab(0x93))/0x9;if(_0x3f1d4f===_0x4ffefb)break;else _0x1ff624['push'](_0x1ff624['shift']());}catch(_0x29873c){_0x1ff624['push'](_0x1ff624['shift']());}}}(_0x5b39,0xdea77),function(_0x3288f9,_0x2737c8){const _0x94c6c3=_0x1903;typeof exports==_0x94c6c3(0x8d)&&typeof module<'u'?_0x2737c8(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==_0x94c6c3(0x113)&&define[_0x94c6c3(0x6e)]?define([_0x94c6c3(0x120),_0x94c6c3(0x99),_0x94c6c3(0xde),_0x94c6c3(0xd8),_0x94c6c3(0x126),_0x94c6c3(0xa6),_0x94c6c3(0xe8),_0x94c6c3(0x108),_0x94c6c3(0x150),'rxjs',_0x94c6c3(0xe1),_0x94c6c3(0x87)],_0x2737c8):(_0x3288f9=typeof globalThis<'u'?globalThis:_0x3288f9||self,_0x2737c8(_0x3288f9['UniverProLiveShare']={},_0x3288f9['UniverCore'],_0x3288f9[_0x94c6c3(0x10d)],_0x3288f9[_0x94c6c3(0x116)],_0x3288f9[_0x94c6c3(0x9b)],_0x3288f9['React'],_0x3288f9[_0x94c6c3(0x76)],_0x3288f9[_0x94c6c3(0xc6)],_0x3288f9[_0x94c6c3(0x8b)],_0x3288f9[_0x94c6c3(0x7d)],_0x3288f9['rxjs'][_0x94c6c3(0x8f)],_0x3288f9[_0x94c6c3(0x77)]));}(this,function(_0x262252,_0x3cb17c,_0x404ca8,_0x265310,_0x51144a,_0x4a444c,_0x17a8ce,_0x3c93ca,_0x4db795,_0x2edef2,_0x18ed04,_0x1ac73e){'use strict';const _0x5f25e0=_0x1903;var _0x545e73=Object['defineProperty'],_0x24ccef=(_0x2776c4,_0x474e49,_0x2d95e9)=>_0x474e49 in _0x2776c4?_0x545e73(_0x2776c4,_0x474e49,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d95e9}):_0x2776c4[_0x474e49]=_0x2d95e9,_0x529b2e=(_0x33313b,_0x277aec,_0x767cf)=>_0x24ccef(_0x33313b,typeof _0x277aec!=_0x5f25e0(0xdf)?_0x277aec+'':_0x277aec,_0x767cf);function _0x2ffd11({ref:_0x2daaf6,..._0x2cdbf8}){const _0x350f1e=_0x5f25e0,{icon:_0x598827,id:_0x4bfd75,className:_0x4cbaa6,extend:_0x36e689,..._0x3d3ea1}=_0x2cdbf8,_0x4426eb=('univerjs-icon\x20univerjs-icon-'+_0x4bfd75+'\x20'+(_0x4cbaa6||''))[_0x350f1e(0x86)](),_0x1c2336=_0x4a444c['useRef']('_'+_0x3dcca3());return _0x253cfc(_0x598827,''+_0x4bfd75,{'defIds':_0x598827[_0x350f1e(0x8e)],'idSuffix':_0x1c2336['current']},{'ref':_0x2daaf6,'className':_0x4426eb,..._0x3d3ea1},_0x36e689);}function _0x253cfc(_0x451c54,_0x5576b8,_0x3923d0,_0x58b52e,_0x2ff4d0){const _0x1ce6aa=_0x5f25e0;return _0x4a444c[_0x1ce6aa(0xef)](_0x451c54[_0x1ce6aa(0xfd)],{'key':_0x5576b8,..._0x4fac99(_0x451c54,_0x3923d0,_0x2ff4d0),..._0x58b52e},(_0x3cf7fe(_0x451c54,_0x3923d0)[_0x1ce6aa(0x10a)]||[])[_0x1ce6aa(0x110)]((_0x5dab10,_0x2f74ba)=>_0x253cfc(_0x5dab10,_0x5576b8+'-'+_0x451c54[_0x1ce6aa(0xfd)]+'-'+_0x2f74ba,_0x3923d0,void 0x0,_0x2ff4d0)));}function _0x4fac99(_0x48f7a3,_0x4aadde,_0x6a4935){const _0x1c33a1=_0x5f25e0,_0x21a9a0={..._0x48f7a3[_0x1c33a1(0xbf)]};_0x6a4935!=null&&_0x6a4935[_0x1c33a1(0xa5)]&&_0x21a9a0[_0x1c33a1(0xbc)]===_0x1c33a1(0xa5)&&(_0x21a9a0[_0x1c33a1(0xbc)]=_0x6a4935[_0x1c33a1(0xa5)]),_0x48f7a3[_0x1c33a1(0xfd)]==='mask'&&_0x21a9a0['id']&&(_0x21a9a0['id']=_0x21a9a0['id']+_0x4aadde[_0x1c33a1(0xac)]),Object[_0x1c33a1(0x148)](_0x21a9a0)['forEach'](([_0x102c7f,_0x581c4f])=>{const _0x3a1cf9=_0x1c33a1;_0x102c7f===_0x3a1cf9(0xd4)&&typeof _0x581c4f=='string'&&(_0x21a9a0[_0x102c7f]=_0x581c4f[_0x3a1cf9(0xa4)](/url\(#(.*)\)/,'url(#$1'+_0x4aadde['idSuffix']+')'));});const {defIds:_0x2dfdc5}=_0x4aadde;return!_0x2dfdc5||_0x2dfdc5[_0x1c33a1(0xe2)]===0x0||(_0x48f7a3['tag']===_0x1c33a1(0x138)&&_0x21a9a0['xlink:href']&&(_0x21a9a0['xlink:href']=_0x21a9a0['xlink:href']+_0x4aadde[_0x1c33a1(0xac)]),Object[_0x1c33a1(0x148)](_0x21a9a0)[_0x1c33a1(0x109)](([_0x383783,_0x246af6])=>{const _0x6be342=_0x1c33a1;typeof _0x246af6=='string'&&(_0x21a9a0[_0x383783]=_0x246af6[_0x6be342(0xa4)](/url\(#(.*)\)/,'url(#$1'+_0x4aadde[_0x6be342(0xac)]+')'));})),_0x21a9a0;}function _0x3cf7fe(_0xa485e5,_0x2b0768){const _0x3ecfe2=_0x5f25e0;var _0x2d73ed;const {defIds:_0x331629}=_0x2b0768;return!_0x331629||_0x331629[_0x3ecfe2(0xe2)]===0x0?_0xa485e5:_0xa485e5[_0x3ecfe2(0xfd)]===_0x3ecfe2(0xe9)&&((_0x2d73ed=_0xa485e5[_0x3ecfe2(0x10a)])!=null&&_0x2d73ed['length'])?{..._0xa485e5,'children':_0xa485e5[_0x3ecfe2(0x10a)]['map'](_0xeb0ddf=>typeof _0xeb0ddf[_0x3ecfe2(0xbf)]['id']==_0x3ecfe2(0x118)&&_0x331629&&_0x331629[_0x3ecfe2(0xaf)](_0xeb0ddf[_0x3ecfe2(0xbf)]['id'])?{..._0xeb0ddf,'attrs':{..._0xeb0ddf[_0x3ecfe2(0xbf)],'id':_0xeb0ddf[_0x3ecfe2(0xbf)]['id']+_0x2b0768[_0x3ecfe2(0xac)]}}:_0xeb0ddf)}:_0xa485e5;}function _0x3dcca3(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x2ffd11[_0x5f25e0(0x145)]=_0x5f25e0(0x9a);const _0x25d6e4={'tag':_0x5f25e0(0xb8),'attrs':{'xmlns':_0x5f25e0(0x127),'fill':'none','viewBox':_0x5f25e0(0xc4),'width':_0x5f25e0(0x14c),'height':_0x5f25e0(0x14c)},'children':[{'tag':_0x5f25e0(0xb9),'attrs':{'fill':_0x5f25e0(0x14a),'d':_0x5f25e0(0xfe)}},{'tag':_0x5f25e0(0xb9),'attrs':{'fill':_0x5f25e0(0x14a),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':'evenodd'}}]},_0x591cf0=_0x4a444c[_0x5f25e0(0xfa)](function(_0x5e2075,_0x1bba69){const _0x269b51=_0x5f25e0;return _0x4a444c[_0x269b51(0xef)](_0x2ffd11,Object['assign']({},_0x5e2075,{'id':_0x269b51(0x128),'ref':_0x1bba69,'icon':_0x25d6e4}));});_0x591cf0[_0x5f25e0(0x145)]=_0x5f25e0(0xa2);class _0x426902 extends _0x3cb17c[_0x5f25e0(0xdc)]{constructor(){const _0x4546bb=_0x5f25e0;super(...arguments),_0x529b2e(this,'_sharedOperations',new Set()),_0x529b2e(this,_0x4546bb(0x142),new Set());}[_0x5f25e0(0x9f)](_0x2f1357){const _0x5d98a6=_0x5f25e0;return this[_0x5d98a6(0x7e)]['add'](_0x2f1357),_0x3cb17c[_0x5d98a6(0xcb)](()=>this[_0x5d98a6(0x7e)]['delete'](_0x2f1357));}['registerInitialStateReporter'](_0x3a605c){const _0x267f30=_0x5f25e0;return this[_0x267f30(0x142)][_0x267f30(0xc5)](_0x3a605c),_0x3cb17c[_0x267f30(0xcb)](()=>this['_reporters'][_0x267f30(0x84)](_0x3a605c));}[_0x5f25e0(0xf6)](_0x191b41){const _0x3a0218=_0x5f25e0;return this[_0x3a0218(0x7e)][_0x3a0218(0x134)](_0x191b41);}[_0x5f25e0(0xb3)](_0x5c6cbb){const _0x3ffecf=_0x5f25e0;return Array['from'](this[_0x3ffecf(0x142)])['map'](_0x245b55=>_0x245b55(_0x5c6cbb));}}var _0x1111f0=Object[_0x5f25e0(0xcf)],_0x275c2f=(_0x171ca5,_0x640c3a,_0x2f95f9,_0x4250a2)=>{const _0x41ce81=_0x5f25e0;for(var _0x290d6c=_0x4250a2>0x1?void 0x0:_0x4250a2?_0x1111f0(_0x640c3a,_0x2f95f9):_0x640c3a,_0x5ea9a0=_0x171ca5[_0x41ce81(0xe2)]-0x1,_0x1a84d3;_0x5ea9a0>=0x0;_0x5ea9a0--)(_0x1a84d3=_0x171ca5[_0x5ea9a0])&&(_0x290d6c=_0x1a84d3(_0x290d6c)||_0x290d6c);return _0x290d6c;},_0x9efa8f=(_0x54b3f7,_0x39d04f)=>(_0x5844e7,_0x2cc05e)=>_0x39d04f(_0x5844e7,_0x2cc05e,_0x54b3f7);_0x262252[_0x5f25e0(0x11d)]=class extends _0x3cb17c[_0x5f25e0(0x13f)]{constructor(_0x43c909,_0x565fa3,_0x1010ce){const _0x469fa8=_0x5f25e0;super(),_0x529b2e(this,_0x469fa8(0xf0),new Map()),(this[_0x469fa8(0x147)]=_0x43c909,this[_0x469fa8(0xcc)]=_0x565fa3,this[_0x469fa8(0xb1)]=_0x1010ce,this[_0x469fa8(0xb7)]());}async[_0x5f25e0(0x139)](_0x3f7c31){const _0x21ba7f=_0x5f25e0;return this[_0x21ba7f(0xf0)][_0x21ba7f(0x134)](_0x3f7c31)||await this[_0x21ba7f(0x107)](_0x3f7c31),this[_0x21ba7f(0xf0)]['get'](_0x3f7c31);}['getLiveShareCoordinatorSync'](_0x1fd24a){const _0x459b4c=_0x5f25e0;var _0x1614c1;return(_0x1614c1=this['_entities'][_0x459b4c(0xbd)](_0x1fd24a))!=null?_0x1614c1:null;}[_0x5f25e0(0xb7)](){const _0x1496bb=_0x5f25e0;this[_0x1496bb(0x147)][_0x1496bb(0xc3)](_0x3cb17c['UniverInstanceType'][_0x1496bb(0x11e)])[_0x1496bb(0x73)](_0x18ed04['takeUntil'](this[_0x1496bb(0x10c)]))[_0x1496bb(0xf1)](async _0x55605e=>{const _0x57950f=_0x1496bb,_0x4cd952=_0x55605e['getUnitId']();this[_0x57950f(0xf0)]['has'](_0x4cd952)||this[_0x57950f(0x107)](_0x4cd952);}),this['_univerInstanceService'][_0x1496bb(0x124)](_0x3cb17c[_0x1496bb(0xc8)][_0x1496bb(0x11e)])[_0x1496bb(0x73)](_0x18ed04[_0x1496bb(0x137)](this[_0x1496bb(0x10c)]))[_0x1496bb(0xf1)](_0x778022=>{const _0x4fedb5=_0x1496bb,_0xcbe6d1=_0x778022[_0x4fedb5(0x6d)](),_0x1e917e=this[_0x4fedb5(0xf0)][_0x4fedb5(0xbd)](_0xcbe6d1);_0x1e917e==null||_0x1e917e[_0x4fedb5(0x103)]();});}async[_0x5f25e0(0x107)](_0x3daba9){const _0x2b27da=_0x5f25e0,_0xd0fb72=await this['_collabSessionService'][_0x2b27da(0xf7)](_0x3daba9),_0x1d6e64=this[_0x2b27da(0xcc)]['createInstance'](_0x262252['LiveShareCoordinator'],_0x3daba9,_0xd0fb72);return _0x1d6e64['init'](),this[_0x2b27da(0xf0)]['set'](_0x3daba9,_0x1d6e64),_0x1d6e64;}},_0x262252['LiveShareController']=_0x275c2f([_0x9efa8f(0x0,_0x3cb17c[_0x5f25e0(0xd7)]),_0x9efa8f(0x1,_0x3cb17c[_0x5f25e0(0xda)](_0x3cb17c['Injector'])),_0x9efa8f(0x2,_0x3cb17c[_0x5f25e0(0xda)](_0x3c93ca[_0x5f25e0(0xe6)]))],_0x262252['LiveShareController']);var _0x1e5c53=(_0x2444fb=>(_0x2444fb[_0x5f25e0(0xca)]=_0x5f25e0(0xe3),_0x2444fb['IDLE']=_0x5f25e0(0x11b),_0x2444fb[_0x5f25e0(0x141)]=_0x5f25e0(0x11a),_0x2444fb[_0x5f25e0(0x136)]=_0x5f25e0(0x119),_0x2444fb[_0x5f25e0(0x12b)]=_0x5f25e0(0xc0),_0x2444fb))(_0x1e5c53||{});const _0xc62f15=_0x5f25e0(0x70),_0x456c9f=0xc8;_0x262252[_0x5f25e0(0x105)]=class extends _0x3cb17c[_0x5f25e0(0x13f)]{constructor(_0x55506b,_0x19f8cd,_0x5c1604,_0x48d011,_0x223789){const _0x3f1421=_0x5f25e0;super(),_0x529b2e(this,_0x3f1421(0x7a),new _0x2edef2[(_0x3f1421(0x12c))](_0x3f1421(0x11b))),_0x529b2e(this,_0x3f1421(0x75),this[_0x3f1421(0x7a)]['asObservable']()),_0x529b2e(this,_0x3f1421(0xb7),!0x1),_0x529b2e(this,_0x3f1421(0x114),null),_0x529b2e(this,_0x3f1421(0x130),null),(this[_0x3f1421(0xd1)]=_0x55506b,this['_collabSession']=_0x19f8cd,this[_0x3f1421(0x96)]=_0x5c1604,this['_liveShareService']=_0x48d011,this[_0x3f1421(0x12d)]=_0x223789);}get[_0x5f25e0(0x115)](){const _0x51f5ca=_0x5f25e0;return this[_0x51f5ca(0x7a)][_0x51f5ca(0x131)]();}[_0x5f25e0(0x103)](){const _0xef862=_0x5f25e0;var _0x561980;(_0x561980=this[_0xef862(0x114)])==null||_0x561980[_0xef862(0x103)](),this[_0xef862(0x7a)][_0xef862(0x89)](_0xef862(0x11b)),this[_0xef862(0x7a)][_0xef862(0x111)]();}[_0x5f25e0(0xc9)](){const _0x25c014=_0x5f25e0;return this[_0x25c014(0x115)];}[_0x5f25e0(0xf4)](){const _0x2fa4b3=_0x5f25e0;this['_init']||(this[_0x2fa4b3(0xb7)]=!0x0,this[_0x2fa4b3(0x123)][_0x2fa4b3(0x112)][_0x2fa4b3(0x73)](_0x18ed04[_0x2fa4b3(0x137)](this[_0x2fa4b3(0x10c)]))['subscribe'](_0x21f16c=>{const _0x496b86=_0x2fa4b3;switch(_0x21f16c){case _0x3c93ca[_0x496b86(0xd0)][_0x496b86(0xca)]:this[_0x496b86(0x13a)]();break;case _0x3c93ca[_0x496b86(0xd0)][_0x496b86(0xd2)]:this[_0x496b86(0xad)]();break;}}),this[_0x2fa4b3(0x123)][_0x2fa4b3(0x80)][_0x2fa4b3(0x73)](_0x18ed04['takeUntil'](this[_0x2fa4b3(0x10c)]))[_0x2fa4b3(0xf1)](_0x527858=>{const _0x40a1a0=_0x2fa4b3,{eventID:_0x4ed0dd}=_0x527858;switch(_0x4ed0dd){case _0x17a8ce[_0x40a1a0(0x12f)][_0x40a1a0(0x91)]:this['_handleNewHost'](_0x527858);break;case _0x17a8ce[_0x40a1a0(0x12f)][_0x40a1a0(0x10b)]:this[_0x40a1a0(0x7c)](_0x527858);break;case _0x17a8ce['CollaborationEvent'][_0x40a1a0(0x135)]:this['_handleTerminate']();break;case _0x17a8ce[_0x40a1a0(0x12f)][_0x40a1a0(0xa0)]:this[_0x40a1a0(0xfc)](_0x527858);break;}}));}[_0x5f25e0(0xea)](){const _0x12e5ca=_0x5f25e0;this[_0x12e5ca(0x123)]['send']({'eventID':_0x17a8ce[_0x12e5ca(0x12f)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x12e5ca(0x123)][_0x12e5ca(0xdb)]()}},this[_0x12e5ca(0xd1)]);}[_0x5f25e0(0x10f)](){const _0x177e4c=_0x5f25e0;this[_0x177e4c(0x115)]==='presenting'&&(this[_0x177e4c(0x7a)][_0x177e4c(0x89)](_0x177e4c(0x11b)),this[_0x177e4c(0x123)][_0x177e4c(0xd6)]({'eventID':_0x17a8ce[_0x177e4c(0x12f)][_0x177e4c(0x135)],'data':{'unitID':this[_0x177e4c(0xd1)]}},this[_0x177e4c(0xd1)]));}[_0x5f25e0(0x100)](){const _0x41e81d=_0x5f25e0;this[_0x41e81d(0x115)]===_0x41e81d(0x119)&&(this[_0x41e81d(0x7a)]['next'](_0x41e81d(0x11a)),this[_0x41e81d(0xa3)]());}[_0x5f25e0(0x12a)](){const _0x47e287=_0x5f25e0;this[_0x47e287(0x115)]===_0x47e287(0x11a)&&this[_0x47e287(0x7f)]();}[_0x5f25e0(0xed)](_0x337006){const _0x1e9671=_0x5f25e0,{presenter:_0x39358b}=_0x337006[_0x1e9671(0xba)],_0x272292=this[_0x1e9671(0x123)][_0x1e9671(0xdb)]();this[_0x1e9671(0x130)]=_0x39358b,_0x39358b===_0x272292?(this[_0x1e9671(0x7f)](),this[_0x1e9671(0x6f)]()):this[_0x1e9671(0x115)]!==_0x1e9671(0x119)&&(this[_0x1e9671(0x9e)](),this[_0x1e9671(0xa3)]());}[_0x5f25e0(0xf8)](){const _0x5a465a=_0x5f25e0,_0x427cba={'eventID':_0x17a8ce[_0x5a465a(0x12f)][_0x5a465a(0x102)]};this[_0x5a465a(0x123)]['send'](_0x427cba,this[_0x5a465a(0xd1)]);}[_0x5f25e0(0xbe)](){const _0x1868ff=_0x5f25e0;this[_0x1868ff(0x130)]=null,this['_status']!=='presenting'&&this[_0x1868ff(0x72)]();}[_0x5f25e0(0xfc)](_0x2be0f3){const _0xf6c492=_0x5f25e0;if(this[_0xf6c492(0x115)]===_0xf6c492(0x11a)&&this[_0xf6c492(0x130)]===_0x2be0f3[_0xf6c492(0xba)]['memberID']){const _0xbf2447=_0x17a8ce[_0xf6c492(0x122)](_0x2be0f3['data'])[_0xf6c492(0xb5)][_0xf6c492(0x95)]()[_0xf6c492(0x8c)](_0x508463=>_0x508463['id']===_0x4db795[_0xf6c492(0x121)]['id']);if(_0xbf2447){const _0x599f70=_0xbf2447[_0xf6c492(0x12e)][_0xf6c492(0x6a)],_0x1727fc=_0xbf2447[_0xf6c492(0x12e)][_0xf6c492(0x7b)]['id'];setTimeout(()=>{const _0x4264a6=_0xf6c492;this[_0x4264a6(0x12d)][_0x4264a6(0x10e)](_0x4db795[_0x4264a6(0xb4)]['id'],{'unitId':_0x599f70,'subUnitId':_0x1727fc},{'fromCollab':!0x0});});}}}[_0x5f25e0(0x6f)](){const _0x126113=_0x5f25e0;this[_0x126113(0x7a)][_0x126113(0x89)](_0x126113(0xc0));const _0x58285c=new Map(),_0x33925f=this['_commandDisposable']=new _0x3cb17c[(_0x126113(0xae))]();_0x33925f['add'](_0x3cb17c['toDisposable'](()=>{const _0x20e771=_0x126113;_0x58285c[_0x20e771(0x109)](_0x3700ad=>_0x3700ad['complete']()),_0x58285c['clear']();})),_0x33925f[_0x126113(0xc5)](this[_0x126113(0x12d)][_0x126113(0x85)](_0x41e6c3=>{const _0x1408c2=_0x126113;var _0x2aee3e;if(_0x41e6c3[_0x1408c2(0xdd)]!==_0x3cb17c[_0x1408c2(0xc2)][_0x1408c2(0x6b)]||!this['_liveShareService'][_0x1408c2(0xf6)](_0x41e6c3['id']))return;const {id:_0x5d7b81}=_0x41e6c3;let _0x5de883;_0x58285c[_0x1408c2(0x134)](_0x5d7b81)?_0x5de883=_0x58285c['get'](_0x5d7b81):(_0x5de883=new _0x2edef2['Subject'](),_0x58285c[_0x1408c2(0x14b)](_0x5d7b81,_0x5de883),_0x5de883['pipe'](_0x18ed04['throttleTime']((_0x2aee3e=this[_0x1408c2(0x96)]['getConfig'](_0xc62f15))!=null?_0x2aee3e:_0x456c9f,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1408c2(0xf1)](_0x22e384=>{const _0x34936b=_0x1408c2;this[_0x34936b(0x123)][_0x34936b(0xd6)]({'eventID':_0x17a8ce[_0x34936b(0x12f)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x34936b(0xd1)],'operations':{[_0x22e384['id']]:{'id':_0x22e384['id'],'params':JSON[_0x34936b(0x146)](_0x22e384[_0x34936b(0x12e)])}}}},this[_0x34936b(0xd1)]);})),_0x5de883[_0x1408c2(0x89)](_0x41e6c3);})),this['_liveShareService'][_0x126113(0xb3)](this[_0x126113(0xd1)])[_0x126113(0x109)](_0x5de72d=>this[_0x126113(0x123)][_0x126113(0xd6)]({'eventID':_0x17a8ce[_0x126113(0x12f)][_0x126113(0x10b)],'data':{'unitID':this[_0x126113(0xd1)],'operations':{[_0x5de72d['id']]:{'id':_0x5de72d['id'],'params':JSON[_0x126113(0x146)](_0x5de72d[_0x126113(0x12e)])}}}},this[_0x126113(0xd1)]));}[_0x5f25e0(0x9e)](){const _0x1348f3=_0x5f25e0;var _0x24f639;this[_0x1348f3(0x7a)][_0x1348f3(0x89)]('idle'),(_0x24f639=this[_0x1348f3(0x114)])==null||_0x24f639[_0x1348f3(0x103)](),this['_commandDisposable']=null;}[_0x5f25e0(0xa3)](){const _0x15f697=_0x5f25e0;var _0x9627c7;(_0x9627c7=this['_commandDisposable'])==null||_0x9627c7[_0x15f697(0x103)](),this[_0x15f697(0x7a)][_0x15f697(0x89)](_0x15f697(0x11a));}[_0x5f25e0(0x72)](){const _0x26f735=_0x5f25e0;var _0x460f6d;this[_0x26f735(0x7a)][_0x26f735(0x89)](_0x26f735(0x11b)),(_0x460f6d=this[_0x26f735(0x114)])==null||_0x460f6d[_0x26f735(0x103)](),this[_0x26f735(0x114)]=null;}['_stopFollowing'](){const _0x3703e5=_0x5f25e0;var _0x156119;this[_0x3703e5(0x7a)][_0x3703e5(0x89)](_0x3703e5(0x119)),(_0x156119=this['_commandDisposable'])==null||_0x156119['dispose']();}[_0x5f25e0(0x7c)](_0x7b4a3){const _0x8c7db6=_0x5f25e0;if(['presenting',_0x8c7db6(0x119),_0x8c7db6(0xe3)][_0x8c7db6(0xaf)](this['_status'])||!_0x7b4a3[_0x8c7db6(0xba)][_0x8c7db6(0xe7)]||_0x7b4a3[_0x8c7db6(0xba)][_0x8c7db6(0xe7)]===this[_0x8c7db6(0x123)]['getMemberID']())return;this[_0x8c7db6(0x115)]===_0x8c7db6(0x11b)&&this[_0x8c7db6(0xa3)]();const _0x4c6c3b=_0x7b4a3[_0x8c7db6(0xba)][_0x8c7db6(0x140)];Object['values'](_0x4c6c3b)[_0x8c7db6(0x109)](_0x5f1862=>{const _0x314a8b=_0x8c7db6;this[_0x314a8b(0x12d)][_0x314a8b(0x10e)](_0x5f1862['id'],_0x5f1862['params']?JSON['parse'](_0x5f1862['params']):null,{'fromCollab':!0x0});});}[_0x5f25e0(0x13a)](){const _0xef360b=_0x5f25e0;var _0x4d843c;this[_0xef360b(0x7a)][_0xef360b(0x89)](_0xef360b(0xe3)),(_0x4d843c=this['_commandDisposable'])==null||_0x4d843c['dispose']();}[_0x5f25e0(0xad)](){const _0x516b71=_0x5f25e0;this[_0x516b71(0x7a)][_0x516b71(0x89)](_0x516b71(0x11b)),this[_0x516b71(0xf8)]();}},_0x262252[_0x5f25e0(0x105)]=_0x275c2f([_0x9efa8f(0x2,_0x3cb17c[_0x5f25e0(0x13d)]),_0x9efa8f(0x3,_0x3cb17c[_0x5f25e0(0xda)](_0x426902)),_0x9efa8f(0x4,_0x3cb17c[_0x5f25e0(0x152)])],_0x262252['LiveShareCoordinator']);function _0x1daf63(){const _0x429b1b=_0x5f25e0,_0x213fb6=_0x404ca8['useDependency'](_0x262252[_0x429b1b(0x11d)]),_0x182c27=_0x404ca8[_0x429b1b(0x83)](_0x3cb17c[_0x429b1b(0xd7)]),_0x5acdf2=_0x404ca8[_0x429b1b(0x13e)](()=>_0x182c27['getCurrentTypeOfUnit$'](_0x3cb17c['UniverInstanceType'][_0x429b1b(0x11e)]),void 0x0,!0x1,[]),[_0x5de0d8,_0x266787]=_0x4a444c['useState'](null),[_0x550941,_0x2688cd]=_0x4a444c[_0x429b1b(0xb2)](_0x1e5c53[_0x429b1b(0x6c)]),_0x3de193=_0x4a444c[_0x429b1b(0xa7)](null);return _0x4a444c['useEffect'](()=>(_0x5acdf2&&_0x213fb6[_0x429b1b(0x139)](_0x5acdf2[_0x429b1b(0x6d)]())[_0x429b1b(0x153)](_0xa5b34a=>{const _0x2dc0eb=_0x429b1b;_0x266787(_0xa5b34a),_0x3de193[_0x2dc0eb(0xc1)]=_0xa5b34a[_0x2dc0eb(0x75)][_0x2dc0eb(0xf1)](_0x2c3f19=>{_0x2688cd(_0x2c3f19);});}),()=>{const _0x3409d4=_0x429b1b;var _0x3ca729;(_0x3ca729=_0x3de193[_0x3409d4(0xc1)])==null||_0x3ca729[_0x3409d4(0x101)](),_0x3de193[_0x3409d4(0xc1)]=null;}),[_0x5acdf2,_0x213fb6]),_0x5de0d8?_0x265310[_0x429b1b(0x129)](_0x51144a[_0x429b1b(0xe4)],{'align':_0x429b1b(0xce),'disabled':_0x550941===_0x1e5c53[_0x429b1b(0xca)],'className':_0x429b1b(0x104),'overlay':_0x265310[_0x429b1b(0x129)](_0x5e6777,{'status':_0x550941,'coordinator':_0x5de0d8}),'children':_0x265310[_0x429b1b(0x129)](_0x429b1b(0x9d),{'className':_0x51144a['clsx'](_0x429b1b(0xaa),{'univer-cursor-not-allowed':_0x550941===_0x1e5c53['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x550941!==_0x1e5c53[_0x429b1b(0xca)]}),'type':_0x429b1b(0x9d),'children':_0x265310[_0x429b1b(0x129)](_0x591cf0,{'className':_0x429b1b(0x13b)})})}):null;}function _0x5e6777(_0x3ca68a){const _0x325272=_0x5f25e0,{status:_0x2ddd4d,coordinator:_0x27e98b}=_0x3ca68a;switch(_0x2ddd4d){case _0x1e5c53[_0x325272(0x6c)]:return _0x265310[_0x325272(0x129)](_0x1a1731,{'coordinator':_0x27e98b});case _0x1e5c53['FOLLOWING']:return _0x265310['jsx'](_0x26406b,{'coordinator':_0x27e98b});case _0x1e5c53[_0x325272(0x136)]:return _0x265310[_0x325272(0x129)](_0x3bfb4f,{'coordinator':_0x27e98b});case _0x1e5c53[_0x325272(0xca)]:return _0x265310[_0x325272(0x129)](_0x3910b6,{});case _0x1e5c53[_0x325272(0x12b)]:return _0x265310[_0x325272(0x129)](_0x54d058,{'coordinator':_0x27e98b});default:return null;}}function _0x1a1731(_0x54d829){const _0x385a75=_0x5f25e0,{coordinator:_0x285988}=_0x54d829;return _0x265310[_0x385a75(0xf9)](_0x265310[_0x385a75(0x90)],{'children':[_0x265310[_0x385a75(0x129)](_0x385a75(0x8a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x385a75(0xec)}),_0x265310['jsx'](_0x51144a[_0x385a75(0xbb)],{'onClick':()=>_0x285988[_0x385a75(0xea)](),'children':_0x385a75(0xf2)})]});}function _0x26406b(_0x3f7e05){const _0x3dcf56=_0x5f25e0,{coordinator:_0x34cba1}=_0x3f7e05;return _0x265310['jsxs'](_0x265310[_0x3dcf56(0x90)],{'children':[_0x265310['jsx'](_0x3dcf56(0x8a),{'className':_0x3dcf56(0xe0),'children':_0x3dcf56(0xa8)}),_0x265310[_0x3dcf56(0x129)](_0x51144a['Button'],{'onClick':()=>_0x34cba1[_0x3dcf56(0x12a)](),'children':_0x3dcf56(0xf3)})]});}function _0x3bfb4f(_0x38e23d){const _0x39c2d9=_0x5f25e0,{coordinator:_0x47f112}=_0x38e23d;return _0x265310[_0x39c2d9(0xf9)](_0x265310[_0x39c2d9(0x90)],{'children':[_0x265310[_0x39c2d9(0x129)](_0x39c2d9(0x8a),{'className':_0x39c2d9(0xe0),'children':_0x39c2d9(0x11c)}),_0x265310['jsx'](_0x51144a[_0x39c2d9(0xbb)],{'variant':_0x39c2d9(0xff),'onClick':()=>_0x47f112['startFollowing'](),'children':_0x39c2d9(0x74)})]});}function _0x54d058(_0x48bda2){const _0x6a85d0=_0x5f25e0,{coordinator:_0x543e8f}=_0x48bda2;return _0x265310[_0x6a85d0(0xf9)](_0x265310[_0x6a85d0(0x90)],{'children':[_0x265310[_0x6a85d0(0x129)](_0x6a85d0(0x8a),{'className':_0x6a85d0(0xe0),'children':_0x6a85d0(0x106)}),_0x265310[_0x6a85d0(0x129)](_0x51144a[_0x6a85d0(0xbb)],{'variant':'default','onClick':()=>_0x543e8f[_0x6a85d0(0x10f)](),'children':'Stop\x20presenting'})]});}function _0x3910b6(){const _0x25e6d2=_0x5f25e0;return _0x265310[_0x25e6d2(0x129)](_0x265310['Fragment'],{'children':_0x25e6d2(0x133)});}var _0x120e70=Object['getOwnPropertyDescriptor'],_0x9aa85b=(_0x46492f,_0x529344,_0x4cd9bd,_0x5b7794)=>{const _0x23f408=_0x5f25e0;for(var _0xdc3a3d=_0x5b7794>0x1?void 0x0:_0x5b7794?_0x120e70(_0x529344,_0x4cd9bd):_0x529344,_0x3ab85b=_0x46492f[_0x23f408(0xe2)]-0x1,_0x4e291d;_0x3ab85b>=0x0;_0x3ab85b--)(_0x4e291d=_0x46492f[_0x3ab85b])&&(_0xdc3a3d=_0x4e291d(_0xdc3a3d)||_0xdc3a3d);return _0xdc3a3d;},_0x50d925=(_0x1436b2,_0x351f72)=>(_0x2acb6b,_0x18251d)=>_0x351f72(_0x2acb6b,_0x18251d,_0x1436b2);_0x262252[_0x5f25e0(0x151)]=class extends _0x3cb17c[_0x5f25e0(0xdc)]{constructor(_0x41ba22,_0x1b703f){const _0x4c132a=_0x5f25e0;super(),this[_0x4c132a(0xcc)]=_0x41ba22,this[_0x4c132a(0xe5)]=_0x1b703f,this[_0x4c132a(0xc7)]();}[_0x5f25e0(0xc7)](){const _0x432ad0=_0x5f25e0;this[_0x432ad0(0xf5)](this[_0x432ad0(0xe5)][_0x432ad0(0x98)](_0x404ca8[_0x432ad0(0x78)][_0x432ad0(0x88)],()=>_0x404ca8[_0x432ad0(0xb6)](_0x1daf63,this[_0x432ad0(0xcc)])));}},_0x262252[_0x5f25e0(0x151)]=_0x9aa85b([_0x50d925(0x0,_0x3cb17c[_0x5f25e0(0xda)](_0x3cb17c[_0x5f25e0(0xd5)])),_0x50d925(0x1,_0x404ca8[_0x5f25e0(0x97)])],_0x262252[_0x5f25e0(0x151)]);const _0xafc072=_0x5f25e0(0x143),_0x4a3916={};var _0x129a62=Object[_0x5f25e0(0xcf)],_0x3820f5=(_0x1fdaf5,_0x35be0f,_0x587556,_0x2f35d2)=>{const _0x177eaf=_0x5f25e0;for(var _0x2e2116=_0x2f35d2>0x1?void 0x0:_0x2f35d2?_0x129a62(_0x35be0f,_0x587556):_0x35be0f,_0x3e90c3=_0x1fdaf5[_0x177eaf(0xe2)]-0x1,_0x4192d7;_0x3e90c3>=0x0;_0x3e90c3--)(_0x4192d7=_0x1fdaf5[_0x3e90c3])&&(_0x2e2116=_0x4192d7(_0x2e2116)||_0x2e2116);return _0x2e2116;},_0xd61be5=(_0x359691,_0x1dad63)=>(_0x23b2dd,_0x3df272)=>_0x1dad63(_0x23b2dd,_0x3df272,_0x359691);let _0x4d17a9=class extends _0x3cb17c['Disposable']{constructor(_0x8e7a53){const _0x31f3d3=_0x5f25e0;super(),this[_0x31f3d3(0x144)]=_0x8e7a53,this['_init']();}[_0x5f25e0(0xb7)](){const _0x3b361a=_0x5f25e0;[_0x1ac73e[_0x3b361a(0xd3)]['id'],_0x1ac73e[_0x3b361a(0x14d)]['id'],_0x4db795[_0x3b361a(0xb4)]['id']]['forEach'](_0xb5e7b=>{const _0xe183c=_0x3b361a;this[_0xe183c(0xf5)](this[_0xe183c(0x144)][_0xe183c(0x9f)](_0xb5e7b));});}};_0x4d17a9=_0x3820f5([_0xd61be5(0x0,_0x3cb17c[_0x5f25e0(0xda)](_0x426902))],_0x4d17a9);var _0x50f651=Object[_0x5f25e0(0x14e)],_0x214261=Object[_0x5f25e0(0xcf)],_0x4eba48=(_0x3fb559,_0x260fe7,_0x3810d9)=>_0x260fe7 in _0x3fb559?_0x50f651(_0x3fb559,_0x260fe7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3810d9}):_0x3fb559[_0x260fe7]=_0x3810d9,_0x352d85=(_0x28f9ea,_0x2719eb,_0x47b9fb,_0x30447f)=>{for(var _0x1125e8=_0x30447f>0x1?void 0x0:_0x30447f?_0x214261(_0x2719eb,_0x47b9fb):_0x2719eb,_0x416dc2=_0x28f9ea['length']-0x1,_0x39b494;_0x416dc2>=0x0;_0x416dc2--)(_0x39b494=_0x28f9ea[_0x416dc2])&&(_0x1125e8=_0x39b494(_0x1125e8)||_0x1125e8);return _0x1125e8;},_0x128a8b=(_0xe2a19c,_0x187cf7)=>(_0x455e98,_0x486dc0)=>_0x187cf7(_0x455e98,_0x486dc0,_0xe2a19c),_0x45d1f5=(_0x2a1145,_0x5f58e7,_0x1835c1)=>_0x4eba48(_0x2a1145,typeof _0x5f58e7!='symbol'?_0x5f58e7+'':_0x5f58e7,_0x1835c1);const _0x194a68=_0x5f25e0(0x82);_0x262252[_0x5f25e0(0x125)]=class extends _0x3cb17c[_0x5f25e0(0x92)]{constructor(_0x46f331=_0x4a3916,_0x235aeb,_0x322cfa){const _0x3dec22=_0x5f25e0;super(),this[_0x3dec22(0x79)]=_0x46f331,this['_injector']=_0x235aeb,this[_0x3dec22(0x96)]=_0x322cfa;const {..._0x489405}=_0x3cb17c['merge']({},_0x4a3916,this['_config']);this['_configService'][_0x3dec22(0x132)](_0xafc072,_0x489405);}[_0x5f25e0(0xb0)](){const _0x3035d8=_0x5f25e0;_0x3cb17c['registerDependencies'](this['_injector'],_0x3cb17c['mergeOverrideWithDependencies']([[_0x426902],[_0x262252[_0x3035d8(0x11d)]],[_0x4d17a9],[_0x262252[_0x3035d8(0x151)]]],this[_0x3035d8(0x79)]['override'])),_0x3cb17c[_0x3035d8(0x149)](this['_injector'],[[_0x4d17a9]]);}[_0x5f25e0(0x81)](){const _0x590da9=_0x5f25e0;_0x3cb17c[_0x590da9(0x149)](this[_0x590da9(0xcc)],[[_0x262252[_0x590da9(0x151)]]]);}},_0x45d1f5(_0x262252['UniverLiveSharePlugin'],_0x5f25e0(0xdd),_0x3cb17c[_0x5f25e0(0xc8)][_0x5f25e0(0x71)]),_0x45d1f5(_0x262252[_0x5f25e0(0x125)],_0x5f25e0(0xfb),_0x194a68),_0x262252['UniverLiveSharePlugin']=_0x352d85([_0x3cb17c[_0x5f25e0(0x94)](_0x3c93ca[_0x5f25e0(0xeb)]),_0x128a8b(0x1,_0x3cb17c[_0x5f25e0(0xda)](_0x3cb17c[_0x5f25e0(0xd5)])),_0x128a8b(0x2,_0x3cb17c[_0x5f25e0(0x13d)])],_0x262252[_0x5f25e0(0x125)]),_0x262252['LiveShare']=_0x1daf63,_0x262252[_0x5f25e0(0xa1)]=_0x426902,_0x262252[_0x5f25e0(0xcd)]=_0x1e5c53,Object[_0x5f25e0(0x14e)](_0x262252,Symbol[_0x5f25e0(0xab)],{'value':'Module'});}));
|
|
1
|
+
function _0x214c(_0x40d0d9,_0x16ef76){const _0x45630f=_0x4563();return _0x214c=function(_0x214c46,_0x5b7d0f){_0x214c46=_0x214c46-0x156;let _0x2ab39c=_0x45630f[_0x214c46];return _0x2ab39c;},_0x214c(_0x40d0d9,_0x16ef76);}function _0x4563(){const _0x1c375e=['SetWorksheetActiveOperation','use','UniverProCollaboration','path','RxDisposable','getCurrentTypeOfUnit$','includes','getConfig','LIVESHARE_FETCH_OPERATIONS','offline','url(#$1','getInitialStates','LiveShare','_init','_beIdle','clear','length','forwardRef','getTypeOfUnitAdded$','map','React','_startFollowing','UniverInstanceType','OFFLINE','getLiveShareCoordinatorSync','get','onRendered','setConfig','presenter','getStatus','_mountLiveShare','getMemberID','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','parse','_handleOperation','_fetchOperations','takeUntil','_liveShareService','registerDependencies','useDependency','_stopFollowing','FOLLOWING','registerSharedOperation','unsubscribe','tryStartPresenting','useEffect','OPERATION','text','defIds','none','values','UniverLiveSharePlugin','SetScrollOperation','_injector','button','@univerjs/ui','ICommandService','react','Disposable','_univerInstanceService','displayName','add','useState','PRESENTING','override','rxjs/operators','UniverSheetsUi','reverse','_reporters','CollaborationEvent','xlink:href','memberID','div','evenodd','Injector','UniverProCollaborationClient','_handleOnline','LIVESHARE_REQUEST_HOST','stringify','UniverCollaborationClientPlugin','UniverUi','startFollowing','asObservable','6HwBtnb','IUniverInstanceService','InsertSheetMutation','init','_status','_handleTerminate','executeCommand','function','Plugin','Start\x20following','next','DependentOn','shouldShareOperation','connectInjector','1em','not-following','_uiPartsService','Button','UNIVER_UNKNOWN','complete','symbol','touchDependencies','_collabSessionService','_collabSession','has','_configService','_presenter','assign','@univerjs/sheets','object','defineProperty','_commandService','Subject','@univerjs/core','react/jsx-runtime','876435FPMOeg','_status$','toString','stopPresenting','entries','substring','colorChannel1','stopFollowing','LIVESHARE_OPERATION','LiveShareIcon','UniverIcon','tag','send','@univerjs/design','useRef','UniverProLiveShare','end','dispose$','SAME_OPERATION_SHARE_INTERVAL','4EayoTn','http://www.w3.org/2000/svg','exports','_handleNewChangeSets','_handleOffline','toDisposable','6770979SMoplC','352358WBcIkb','_entities','trim','_handleNewHost','operations','@univerjs/sheets-ui','useObservable','jsxs','mutations','univerjs-icon\x20univerjs-icon-','2015944tqVCBE','DisposableCollection','then','unitId','dispose','currentColor','replace','subscribe','onCommandExecuted','_unitID','default','_commandDisposable','string','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','pluginName','1285755TqINRz','Module','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Present\x20this\x20document','random','following','presenting','_config','CommandType','attrs','_startLiveShareCoordinator','LiveShareCoordinator','getUnitId','disposeWithMe','svg','onStarting','IDLE','toStringTag','NOT_FOLLOWING','idSuffix','You\x27re\x20not\x20following\x20the\x20presenter','status$','Inject','univer-mb-3\x20univer-w-full\x20univer-text-sm','children','jsx','params','current','LIVESHARE_TERMINATE','mergeOverrideWithDependencies','HEADER_MENU','UniverDesign','IConfigService','type','clsx','Fragment','LiveShareStatus','getOwnPropertyDescriptor','You\x27are\x20offline.','set','Dropdown','data','throttleTime','registerInitialStateReporter','createElement','fill','10peiWCg','getLiveShareCoordinator','mask','_sharedOperations','DesktopLiveShareController','LIVESHARE_NEW_HOST','getTypeOfUnitDisposed$','forEach','LiveShareController','rxjs','LiveShareService','UNIVER_SHEET','414820xRpHDo','412587YOmpIh','createInstance','from','pipe','_startPresenting','idle'];_0x4563=function(){return _0x1c375e;};return _0x4563();}(function(_0x1a6a84,_0x4880b6){const _0x146052=_0x214c,_0x28b73d=_0x1a6a84();while(!![]){try{const _0x4d2283=-parseInt(_0x146052(0x1e1))/0x1+parseInt(_0x146052(0x234))/0x2+-parseInt(_0x146052(0x1c7))/0x3*(parseInt(_0x146052(0x1da))/0x4)+parseInt(_0x146052(0x1fa))/0x5*(parseInt(_0x146052(0x1a4))/0x6)+-parseInt(_0x146052(0x235))/0x7+-parseInt(_0x146052(0x1eb))/0x8+parseInt(_0x146052(0x1e0))/0x9*(parseInt(_0x146052(0x228))/0xa);if(_0x4d2283===_0x4880b6)break;else _0x28b73d['push'](_0x28b73d['shift']());}catch(_0x5c7a52){_0x28b73d['push'](_0x28b73d['shift']());}}}(_0x4563,0x3fd4f),function(_0x1d0958,_0x2b7693){const _0x144fe7=_0x214c;typeof exports==_0x144fe7(0x1c1)&&typeof module<'u'?_0x2b7693(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==_0x144fe7(0x1ab)&&define['amd']?define([_0x144fe7(0x1dc),_0x144fe7(0x1c5),_0x144fe7(0x188),_0x144fe7(0x1c6),_0x144fe7(0x1d4),_0x144fe7(0x18a),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client',_0x144fe7(0x1c0),'rxjs',_0x144fe7(0x192),_0x144fe7(0x1e6)],_0x2b7693):(_0x1d0958=typeof globalThis<'u'?globalThis:_0x1d0958||self,_0x2b7693(_0x1d0958[_0x144fe7(0x1d6)]={},_0x1d0958['UniverCore'],_0x1d0958[_0x144fe7(0x1a1)],_0x1d0958[_0x144fe7(0x165)],_0x1d0958[_0x144fe7(0x219)],_0x1d0958[_0x144fe7(0x165)],_0x1d0958[_0x144fe7(0x23d)],_0x1d0958[_0x144fe7(0x19c)],_0x1d0958['UniverSheets'],_0x1d0958['rxjs'],_0x1d0958[_0x144fe7(0x231)]['operators'],_0x1d0958[_0x144fe7(0x193)]));}(this,function(_0x2193f3,_0x43826d,_0x37dc43,_0x427a34,_0x2b0952,_0x4c2b51,_0x3ae46a,_0x4a4464,_0x240fa8,_0x267f4c,_0x2d5259,_0x5e9d1b){'use strict';const _0x2bc437=_0x214c;var _0x104be3=Object[_0x2bc437(0x1c2)],_0x4f37bd=(_0x367ec9,_0x5478a1,_0x5d09d3)=>_0x5478a1 in _0x367ec9?_0x104be3(_0x367ec9,_0x5478a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d09d3}):_0x367ec9[_0x5478a1]=_0x5d09d3,_0x4cd0f7=(_0x144730,_0x4e2f8b,_0x5a4f0b)=>_0x4f37bd(_0x144730,typeof _0x4e2f8b!=_0x2bc437(0x1b8)?_0x4e2f8b+'':_0x4e2f8b,_0x5a4f0b);function _0x5dcb45({ref:_0x51f027,..._0x4192e6}){const _0x27ec0b=_0x2bc437,{icon:_0x4342cb,id:_0x47e8e5,className:_0x23a409,extend:_0x32dded,..._0x15d58c}=_0x4192e6,_0x57ab9=(_0x27ec0b(0x1ea)+_0x47e8e5+'\x20'+(_0x23a409||''))[_0x27ec0b(0x1e3)](),_0x5f39f2=_0x4c2b51[_0x27ec0b(0x1d5)]('_'+_0x1c0ffc());return _0xac9475(_0x4342cb,''+_0x47e8e5,{'defIds':_0x4342cb[_0x27ec0b(0x181)],'idSuffix':_0x5f39f2[_0x27ec0b(0x215)]},{'ref':_0x51f027,'className':_0x57ab9,..._0x15d58c},_0x32dded);}function _0xac9475(_0x2cc2df,_0x4a6bb7,_0x59bc78,_0x3f6497,_0x4d521f){const _0x28bb2a=_0x2bc437;return _0x4c2b51[_0x28bb2a(0x226)](_0x2cc2df[_0x28bb2a(0x1d2)],{'key':_0x4a6bb7,..._0x2005bb(_0x2cc2df,_0x59bc78,_0x4d521f),..._0x3f6497},(_0x3ae1cf(_0x2cc2df,_0x59bc78)[_0x28bb2a(0x212)]||[])[_0x28bb2a(0x164)]((_0x40c62b,_0x221e30)=>_0xac9475(_0x40c62b,_0x4a6bb7+'-'+_0x2cc2df['tag']+'-'+_0x221e30,_0x59bc78,void 0x0,_0x4d521f)));}function _0x2005bb(_0x553dee,_0x3ae4db,_0x42915f){const _0x3919a4=_0x2bc437,_0xf9879e={..._0x553dee['attrs']};_0x42915f!=null&&_0x42915f['colorChannel1']&&_0xf9879e[_0x3919a4(0x227)]===_0x3919a4(0x1cd)&&(_0xf9879e[_0x3919a4(0x227)]=_0x42915f[_0x3919a4(0x1cd)]),_0x553dee['tag']===_0x3919a4(0x22a)&&_0xf9879e['id']&&(_0xf9879e['id']=_0xf9879e['id']+_0x3ae4db[_0x3919a4(0x20d)]),Object[_0x3919a4(0x1cb)](_0xf9879e)['forEach'](([_0x373101,_0x4ab454])=>{const _0x15cb81=_0x3919a4;_0x373101===_0x15cb81(0x22a)&&typeof _0x4ab454==_0x15cb81(0x1f7)&&(_0xf9879e[_0x373101]=_0x4ab454[_0x15cb81(0x1f1)](/url\(#(.*)\)/,_0x15cb81(0x15b)+_0x3ae4db[_0x15cb81(0x20d)]+')'));});const {defIds:_0x33d1f9}=_0x3ae4db;return!_0x33d1f9||_0x33d1f9['length']===0x0||(_0x553dee[_0x3919a4(0x1d2)]===_0x3919a4(0x23c)&&_0xf9879e[_0x3919a4(0x197)]&&(_0xf9879e[_0x3919a4(0x197)]=_0xf9879e[_0x3919a4(0x197)]+_0x3ae4db[_0x3919a4(0x20d)]),Object[_0x3919a4(0x1cb)](_0xf9879e)[_0x3919a4(0x22f)](([_0x2a86cf,_0x5168b6])=>{const _0x1b883e=_0x3919a4;typeof _0x5168b6==_0x1b883e(0x1f7)&&(_0xf9879e[_0x2a86cf]=_0x5168b6['replace'](/url\(#(.*)\)/,_0x1b883e(0x15b)+_0x3ae4db[_0x1b883e(0x20d)]+')'));})),_0xf9879e;}function _0x3ae1cf(_0x362901,_0x1124a9){const _0x50e6f9=_0x2bc437;var _0x3e204b;const {defIds:_0x145018}=_0x1124a9;return!_0x145018||_0x145018['length']===0x0?_0x362901:_0x362901['tag']==='defs'&&((_0x3e204b=_0x362901['children'])!=null&&_0x3e204b[_0x50e6f9(0x161)])?{..._0x362901,'children':_0x362901['children'][_0x50e6f9(0x164)](_0x21bda4=>typeof _0x21bda4['attrs']['id']==_0x50e6f9(0x1f7)&&_0x145018&&_0x145018[_0x50e6f9(0x157)](_0x21bda4[_0x50e6f9(0x203)]['id'])?{..._0x21bda4,'attrs':{..._0x21bda4[_0x50e6f9(0x203)],'id':_0x21bda4['attrs']['id']+_0x1124a9['idSuffix']}}:_0x21bda4)}:_0x362901;}function _0x1c0ffc(){const _0x3a9988=_0x2bc437;return Math[_0x3a9988(0x1fe)]()[_0x3a9988(0x1c9)](0x24)[_0x3a9988(0x1cc)](0x2,0x8);}_0x5dcb45[_0x2bc437(0x18d)]=_0x2bc437(0x1d1);const _0x3ab132={'tag':_0x2bc437(0x208),'attrs':{'xmlns':_0x2bc437(0x1db),'fill':_0x2bc437(0x182),'viewBox':'0\x200\x2017\x2017','width':_0x2bc437(0x1b2),'height':_0x2bc437(0x1b2)},'children':[{'tag':_0x2bc437(0x23e),'attrs':{'fill':_0x2bc437(0x1f0),'d':_0x2bc437(0x1f8)}},{'tag':_0x2bc437(0x23e),'attrs':{'fill':_0x2bc437(0x1f0),'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':_0x2bc437(0x19a),'clipRule':_0x2bc437(0x19a)}}]},_0x24186c=_0x4c2b51[_0x2bc437(0x162)](function(_0x5c263a,_0x45e1ee){const _0x407af1=_0x2bc437;return _0x4c2b51['createElement'](_0x5dcb45,Object[_0x407af1(0x1bf)]({},_0x5c263a,{'id':'live-share-icon','ref':_0x45e1ee,'icon':_0x3ab132}));});_0x24186c['displayName']=_0x2bc437(0x1d0);class _0x3e8160 extends _0x43826d[_0x2bc437(0x18b)]{constructor(){const _0x322331=_0x2bc437;super(...arguments),_0x4cd0f7(this,_0x322331(0x22b),new Set()),_0x4cd0f7(this,_0x322331(0x195),new Set());}[_0x2bc437(0x17b)](_0x5ed18d){const _0x4687dc=_0x2bc437;return this['_sharedOperations'][_0x4687dc(0x18e)](_0x5ed18d),_0x43826d[_0x4687dc(0x1df)](()=>this[_0x4687dc(0x22b)]['delete'](_0x5ed18d));}[_0x2bc437(0x225)](_0x433275){const _0x4e6075=_0x2bc437;return this[_0x4e6075(0x195)][_0x4e6075(0x18e)](_0x433275),_0x43826d[_0x4e6075(0x1df)](()=>this['_reporters']['delete'](_0x433275));}[_0x2bc437(0x1b0)](_0x15339c){const _0x234097=_0x2bc437;return this[_0x234097(0x22b)][_0x234097(0x1bc)](_0x15339c);}[_0x2bc437(0x15c)](_0x1f0f07){const _0x2280c0=_0x2bc437;return Array[_0x2280c0(0x237)](this[_0x2280c0(0x195)])[_0x2280c0(0x164)](_0xbcece2=>_0xbcece2(_0x1f0f07));}}var _0x57386e=Object[_0x2bc437(0x21f)],_0x3cdba2=(_0x1d6ac9,_0x2d2816,_0x4d33b5,_0x3cc649)=>{const _0x595215=_0x2bc437;for(var _0x39ef3f=_0x3cc649>0x1?void 0x0:_0x3cc649?_0x57386e(_0x2d2816,_0x4d33b5):_0x2d2816,_0x13f3b8=_0x1d6ac9[_0x595215(0x161)]-0x1,_0x3623b0;_0x13f3b8>=0x0;_0x13f3b8--)(_0x3623b0=_0x1d6ac9[_0x13f3b8])&&(_0x39ef3f=_0x3623b0(_0x39ef3f)||_0x39ef3f);return _0x39ef3f;},_0x23ac5c=(_0x3098ca,_0x21b548)=>(_0x5554ae,_0x192e6c)=>_0x21b548(_0x5554ae,_0x192e6c,_0x3098ca);_0x2193f3[_0x2bc437(0x230)]=class extends _0x43826d[_0x2bc437(0x23f)]{constructor(_0x47def1,_0x2c0ae8,_0x592106){const _0x4952ed=_0x2bc437;super(),_0x4cd0f7(this,_0x4952ed(0x1e2),new Map()),(this[_0x4952ed(0x18c)]=_0x47def1,this[_0x4952ed(0x186)]=_0x2c0ae8,this['_collabSessionService']=_0x592106,this[_0x4952ed(0x15e)]());}async[_0x2bc437(0x229)](_0x10909f){const _0x379ea7=_0x2bc437;return this[_0x379ea7(0x1e2)]['has'](_0x10909f)||await this['_startLiveShareCoordinator'](_0x10909f),this['_entities']['get'](_0x10909f);}[_0x2bc437(0x169)](_0x94799){const _0x4455c1=_0x2bc437;var _0x21e9d2;return(_0x21e9d2=this[_0x4455c1(0x1e2)][_0x4455c1(0x16a)](_0x94799))!=null?_0x21e9d2:null;}[_0x2bc437(0x15e)](){const _0x35dc81=_0x2bc437;this[_0x35dc81(0x18c)][_0x35dc81(0x163)](_0x43826d[_0x35dc81(0x167)][_0x35dc81(0x233)])['pipe'](_0x2d5259[_0x35dc81(0x175)](this['dispose$']))['subscribe'](async _0x62b105=>{const _0x53e960=_0x35dc81,_0x390006=_0x62b105[_0x53e960(0x206)]();this[_0x53e960(0x1e2)][_0x53e960(0x1bc)](_0x390006)||this[_0x53e960(0x204)](_0x390006);}),this[_0x35dc81(0x18c)][_0x35dc81(0x22e)](_0x43826d[_0x35dc81(0x167)][_0x35dc81(0x233)])[_0x35dc81(0x238)](_0x2d5259[_0x35dc81(0x175)](this[_0x35dc81(0x1d8)]))[_0x35dc81(0x1f2)](_0x41de83=>{const _0x58b726=_0x35dc81,_0xa8267d=_0x41de83[_0x58b726(0x206)](),_0x524fc3=this[_0x58b726(0x1e2)][_0x58b726(0x16a)](_0xa8267d);_0x524fc3==null||_0x524fc3[_0x58b726(0x1ef)]();});}async[_0x2bc437(0x204)](_0x1c36cc){const _0x32e3dc=_0x2bc437,_0x6aab72=await this[_0x32e3dc(0x1ba)]['requireSession'](_0x1c36cc),_0x56c7ff=this[_0x32e3dc(0x186)][_0x32e3dc(0x236)](_0x2193f3['LiveShareCoordinator'],_0x1c36cc,_0x6aab72);return _0x56c7ff[_0x32e3dc(0x1a7)](),this[_0x32e3dc(0x1e2)][_0x32e3dc(0x221)](_0x1c36cc,_0x56c7ff),_0x56c7ff;}},_0x2193f3['LiveShareController']=_0x3cdba2([_0x23ac5c(0x0,_0x43826d[_0x2bc437(0x1a5)]),_0x23ac5c(0x1,_0x43826d[_0x2bc437(0x210)](_0x43826d[_0x2bc437(0x19b)])),_0x23ac5c(0x2,_0x43826d[_0x2bc437(0x210)](_0x4a4464['CollaborationSessionService']))],_0x2193f3['LiveShareController']);var _0x532c80=(_0x31222a=>(_0x31222a['OFFLINE']=_0x2bc437(0x15a),_0x31222a[_0x2bc437(0x20a)]=_0x2bc437(0x23a),_0x31222a[_0x2bc437(0x17a)]=_0x2bc437(0x1ff),_0x31222a[_0x2bc437(0x20c)]='not-following',_0x31222a[_0x2bc437(0x190)]=_0x2bc437(0x200),_0x31222a))(_0x532c80||{});const _0x2ff1fa=_0x2bc437(0x1d9),_0x224d19=0xc8;_0x2193f3['LiveShareCoordinator']=class extends _0x43826d[_0x2bc437(0x23f)]{constructor(_0x5c9ffc,_0x2a9e1f,_0xe17f27,_0x370bee,_0x426c9e){const _0x249ab1=_0x2bc437;super(),_0x4cd0f7(this,_0x249ab1(0x1c8),new _0x267f4c['BehaviorSubject']('idle')),_0x4cd0f7(this,_0x249ab1(0x20f),this['_status$'][_0x249ab1(0x1a3)]()),_0x4cd0f7(this,_0x249ab1(0x15e),!0x1),_0x4cd0f7(this,_0x249ab1(0x1f6),null),_0x4cd0f7(this,_0x249ab1(0x1be),null),(this['_unitID']=_0x5c9ffc,this['_collabSession']=_0x2a9e1f,this[_0x249ab1(0x1bd)]=_0xe17f27,this['_liveShareService']=_0x370bee,this[_0x249ab1(0x1c3)]=_0x426c9e);}get[_0x2bc437(0x1a8)](){return this['_status$']['getValue']();}[_0x2bc437(0x1ef)](){const _0x2bc1f1=_0x2bc437;var _0x505a85;(_0x505a85=this['_commandDisposable'])==null||_0x505a85[_0x2bc1f1(0x1ef)](),this[_0x2bc1f1(0x1c8)]['next'](_0x2bc1f1(0x23a)),this[_0x2bc1f1(0x1c8)][_0x2bc1f1(0x1b7)]();}[_0x2bc437(0x16e)](){const _0x3e5680=_0x2bc437;return this[_0x3e5680(0x1a8)];}[_0x2bc437(0x1a7)](){const _0x5323de=_0x2bc437;this[_0x5323de(0x15e)]||(this[_0x5323de(0x15e)]=!0x0,this[_0x5323de(0x1bb)]['sessionStatus$'][_0x5323de(0x238)](_0x2d5259[_0x5323de(0x175)](this['dispose$']))[_0x5323de(0x1f2)](_0x346bcd=>{const _0x2209e1=_0x5323de;switch(_0x346bcd){case _0x4a4464['SessionStatus']['OFFLINE']:this[_0x2209e1(0x1de)]();break;case _0x4a4464['SessionStatus']['ONLINE']:this[_0x2209e1(0x19d)]();break;}}),this[_0x5323de(0x1bb)]['event$']['pipe'](_0x2d5259[_0x5323de(0x175)](this[_0x5323de(0x1d8)]))['subscribe'](_0x1c7faf=>{const _0x4b7e96=_0x5323de,{eventID:_0xf598a3}=_0x1c7faf;switch(_0xf598a3){case _0x3ae46a[_0x4b7e96(0x196)][_0x4b7e96(0x22d)]:this['_handleNewHost'](_0x1c7faf);break;case _0x3ae46a['CollaborationEvent'][_0x4b7e96(0x1cf)]:this[_0x4b7e96(0x173)](_0x1c7faf);break;case _0x3ae46a[_0x4b7e96(0x196)][_0x4b7e96(0x216)]:this[_0x4b7e96(0x1a9)]();break;case _0x3ae46a['CollaborationEvent']['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x1c7faf);break;}}));}[_0x2bc437(0x17d)](){const _0xd91047=_0x2bc437;this[_0xd91047(0x1bb)][_0xd91047(0x1d3)]({'eventID':_0x3ae46a[_0xd91047(0x196)][_0xd91047(0x19e)],'data':{'unitID':this[_0xd91047(0x1f4)],'userID':this[_0xd91047(0x1bb)][_0xd91047(0x170)]()}},this[_0xd91047(0x1f4)]);}[_0x2bc437(0x1ca)](){const _0x5804b4=_0x2bc437;this[_0x5804b4(0x1a8)]===_0x5804b4(0x200)&&(this[_0x5804b4(0x1c8)][_0x5804b4(0x1ae)](_0x5804b4(0x23a)),this['_collabSession'][_0x5804b4(0x1d3)]({'eventID':_0x3ae46a[_0x5804b4(0x196)][_0x5804b4(0x216)],'data':{'unitID':this[_0x5804b4(0x1f4)]}},this[_0x5804b4(0x1f4)]));}[_0x2bc437(0x1a2)](){const _0x2ea726=_0x2bc437;this[_0x2ea726(0x1a8)]===_0x2ea726(0x1b3)&&(this[_0x2ea726(0x1c8)]['next'](_0x2ea726(0x1ff)),this['_startFollowing']());}['stopFollowing'](){const _0x377450=_0x2bc437;this[_0x377450(0x1a8)]===_0x377450(0x1ff)&&this['_stopFollowing']();}[_0x2bc437(0x1e4)](_0x5a6861){const _0x143644=_0x2bc437,{presenter:_0x37fe9e}=_0x5a6861[_0x143644(0x223)],_0x97b15=this['_collabSession'][_0x143644(0x170)]();this[_0x143644(0x1be)]=_0x37fe9e,_0x37fe9e===_0x97b15?(this[_0x143644(0x179)](),this['_startPresenting']()):this[_0x143644(0x1a8)]!==_0x143644(0x1b3)&&(this['_stopPresenting'](),this[_0x143644(0x166)]());}[_0x2bc437(0x174)](){const _0x38117c=_0x2bc437,_0x4589a4={'eventID':_0x3ae46a[_0x38117c(0x196)][_0x38117c(0x159)]};this[_0x38117c(0x1bb)][_0x38117c(0x1d3)](_0x4589a4,this[_0x38117c(0x1f4)]);}[_0x2bc437(0x1a9)](){const _0x352ccd=_0x2bc437;this[_0x352ccd(0x1be)]=null,this['_status']!==_0x352ccd(0x200)&&this[_0x352ccd(0x15f)]();}[_0x2bc437(0x1dd)](_0x3676c6){const _0x139aa2=_0x2bc437;if(this[_0x139aa2(0x1a8)]===_0x139aa2(0x1ff)&&this[_0x139aa2(0x1be)]===_0x3676c6['data'][_0x139aa2(0x198)]){const _0xc66a0a=_0x3ae46a['parseProtocolChangeset'](_0x3676c6[_0x139aa2(0x223)])[_0x139aa2(0x1e9)][_0x139aa2(0x194)]()['find'](_0x233686=>_0x233686['id']===_0x240fa8[_0x139aa2(0x1a6)]['id']);if(_0xc66a0a){const _0xd3eefa=_0xc66a0a[_0x139aa2(0x214)][_0x139aa2(0x1ee)],_0x1d9a23=_0xc66a0a[_0x139aa2(0x214)]['sheet']['id'];setTimeout(()=>{const _0x1a124b=_0x139aa2;this[_0x1a124b(0x1c3)][_0x1a124b(0x1aa)](_0x240fa8[_0x1a124b(0x23b)]['id'],{'unitId':_0xd3eefa,'subUnitId':_0x1d9a23},{'fromCollab':!0x0});});}}}[_0x2bc437(0x239)](){const _0x48df09=_0x2bc437;this[_0x48df09(0x1c8)][_0x48df09(0x1ae)](_0x48df09(0x200));const _0x2aaf75=new Map(),_0x360582=this[_0x48df09(0x1f6)]=new _0x43826d[(_0x48df09(0x1ec))]();_0x360582[_0x48df09(0x18e)](_0x43826d['toDisposable'](()=>{const _0x39b706=_0x48df09;_0x2aaf75[_0x39b706(0x22f)](_0x2d8ba8=>_0x2d8ba8[_0x39b706(0x1b7)]()),_0x2aaf75[_0x39b706(0x160)]();})),_0x360582[_0x48df09(0x18e)](this[_0x48df09(0x1c3)][_0x48df09(0x1f3)](_0x5dcc39=>{const _0x3cc3bb=_0x48df09;var _0xa1bbdc;if(_0x5dcc39[_0x3cc3bb(0x21b)]!==_0x43826d[_0x3cc3bb(0x202)][_0x3cc3bb(0x17f)]||!this['_liveShareService'][_0x3cc3bb(0x1b0)](_0x5dcc39['id']))return;const {id:_0x47eb21}=_0x5dcc39;let _0x1070ef;_0x2aaf75['has'](_0x47eb21)?_0x1070ef=_0x2aaf75[_0x3cc3bb(0x16a)](_0x47eb21):(_0x1070ef=new _0x267f4c[(_0x3cc3bb(0x1c4))](),_0x2aaf75['set'](_0x47eb21,_0x1070ef),_0x1070ef['pipe'](_0x2d5259[_0x3cc3bb(0x224)]((_0xa1bbdc=this[_0x3cc3bb(0x1bd)][_0x3cc3bb(0x158)](_0x2ff1fa))!=null?_0xa1bbdc:_0x224d19,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3288cb=>{const _0x28c0da=_0x3cc3bb;this[_0x28c0da(0x1bb)][_0x28c0da(0x1d3)]({'eventID':_0x3ae46a[_0x28c0da(0x196)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x28c0da(0x1f4)],'operations':{[_0x3288cb['id']]:{'id':_0x3288cb['id'],'params':JSON[_0x28c0da(0x19f)](_0x3288cb[_0x28c0da(0x214)])}}}},this[_0x28c0da(0x1f4)]);})),_0x1070ef[_0x3cc3bb(0x1ae)](_0x5dcc39);})),this[_0x48df09(0x176)][_0x48df09(0x15c)](this['_unitID'])[_0x48df09(0x22f)](_0x36ae0a=>this['_collabSession'][_0x48df09(0x1d3)]({'eventID':_0x3ae46a[_0x48df09(0x196)][_0x48df09(0x1cf)],'data':{'unitID':this[_0x48df09(0x1f4)],'operations':{[_0x36ae0a['id']]:{'id':_0x36ae0a['id'],'params':JSON[_0x48df09(0x19f)](_0x36ae0a[_0x48df09(0x214)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x22289e=_0x2bc437;var _0x2891c2;this['_status$'][_0x22289e(0x1ae)](_0x22289e(0x23a)),(_0x2891c2=this[_0x22289e(0x1f6)])==null||_0x2891c2['dispose'](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x683517=_0x2bc437;var _0x30e9a0;(_0x30e9a0=this['_commandDisposable'])==null||_0x30e9a0[_0x683517(0x1ef)](),this['_status$'][_0x683517(0x1ae)](_0x683517(0x1ff));}[_0x2bc437(0x15f)](){const _0x55d391=_0x2bc437;var _0x187a77;this[_0x55d391(0x1c8)][_0x55d391(0x1ae)](_0x55d391(0x23a)),(_0x187a77=this['_commandDisposable'])==null||_0x187a77[_0x55d391(0x1ef)](),this['_commandDisposable']=null;}[_0x2bc437(0x179)](){const _0x1cb363=_0x2bc437;var _0x770e97;this[_0x1cb363(0x1c8)]['next'](_0x1cb363(0x1b3)),(_0x770e97=this['_commandDisposable'])==null||_0x770e97[_0x1cb363(0x1ef)]();}[_0x2bc437(0x173)](_0x5aa5a8){const _0x295415=_0x2bc437;if(['presenting',_0x295415(0x1b3),_0x295415(0x15a)][_0x295415(0x157)](this[_0x295415(0x1a8)])||!_0x5aa5a8[_0x295415(0x223)]['presenter']||_0x5aa5a8[_0x295415(0x223)][_0x295415(0x16d)]===this[_0x295415(0x1bb)][_0x295415(0x170)]())return;this[_0x295415(0x1a8)]===_0x295415(0x23a)&&this[_0x295415(0x166)]();const _0x55c789=_0x5aa5a8[_0x295415(0x223)][_0x295415(0x1e5)];Object[_0x295415(0x183)](_0x55c789)[_0x295415(0x22f)](_0x52f4be=>{const _0x196fdd=_0x295415;this[_0x196fdd(0x1c3)][_0x196fdd(0x1aa)](_0x52f4be['id'],_0x52f4be['params']?JSON[_0x196fdd(0x172)](_0x52f4be[_0x196fdd(0x214)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0xfd64b9=_0x2bc437;var _0x5bb555;this[_0xfd64b9(0x1c8)]['next'](_0xfd64b9(0x15a)),(_0x5bb555=this[_0xfd64b9(0x1f6)])==null||_0x5bb555[_0xfd64b9(0x1ef)]();}[_0x2bc437(0x19d)](){const _0x4ba4fd=_0x2bc437;this[_0x4ba4fd(0x1c8)][_0x4ba4fd(0x1ae)](_0x4ba4fd(0x23a)),this['_fetchOperations']();}},_0x2193f3['LiveShareCoordinator']=_0x3cdba2([_0x23ac5c(0x2,_0x43826d[_0x2bc437(0x21a)]),_0x23ac5c(0x3,_0x43826d[_0x2bc437(0x210)](_0x3e8160)),_0x23ac5c(0x4,_0x43826d[_0x2bc437(0x189)])],_0x2193f3[_0x2bc437(0x205)]);function _0x39b0f6(){const _0x53c9e8=_0x2bc437,_0x5ec72d=_0x37dc43['useDependency'](_0x2193f3[_0x53c9e8(0x230)]),_0x469994=_0x37dc43[_0x53c9e8(0x178)](_0x43826d[_0x53c9e8(0x1a5)]),_0x4e5415=_0x37dc43[_0x53c9e8(0x1e7)](()=>_0x469994[_0x53c9e8(0x156)](_0x43826d[_0x53c9e8(0x167)][_0x53c9e8(0x233)]),void 0x0,!0x1,[]),[_0x5de623,_0x1dee9f]=_0x4c2b51['useState'](null),[_0x5a05a0,_0x199da2]=_0x4c2b51[_0x53c9e8(0x18f)](_0x532c80[_0x53c9e8(0x20a)]),_0xe62e3e=_0x4c2b51[_0x53c9e8(0x1d5)](null);return _0x4c2b51[_0x53c9e8(0x17e)](()=>(_0x4e5415&&_0x5ec72d[_0x53c9e8(0x229)](_0x4e5415[_0x53c9e8(0x206)]())[_0x53c9e8(0x1ed)](_0x286de2=>{const _0xdacdd9=_0x53c9e8;_0x1dee9f(_0x286de2),_0xe62e3e[_0xdacdd9(0x215)]=_0x286de2[_0xdacdd9(0x20f)]['subscribe'](_0x27a32a=>{_0x199da2(_0x27a32a);});}),()=>{const _0x3de0a6=_0x53c9e8;var _0x14de6e;(_0x14de6e=_0xe62e3e[_0x3de0a6(0x215)])==null||_0x14de6e[_0x3de0a6(0x17c)](),_0xe62e3e['current']=null;}),[_0x4e5415,_0x5ec72d]),_0x5de623?_0x427a34[_0x53c9e8(0x213)](_0x2b0952[_0x53c9e8(0x222)],{'align':_0x53c9e8(0x1d7),'disabled':_0x5a05a0===_0x532c80[_0x53c9e8(0x168)],'className':_0x53c9e8(0x171),'overlay':_0x427a34[_0x53c9e8(0x213)](_0x291657,{'status':_0x5a05a0,'coordinator':_0x5de623}),'children':_0x427a34[_0x53c9e8(0x213)](_0x53c9e8(0x187),{'className':_0x2b0952[_0x53c9e8(0x21c)](_0x53c9e8(0x1fc),{'univer-cursor-not-allowed':_0x5a05a0===_0x532c80[_0x53c9e8(0x168)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5a05a0!==_0x532c80['OFFLINE']}),'type':_0x53c9e8(0x187),'children':_0x427a34[_0x53c9e8(0x213)](_0x24186c,{'className':'univer-size-4'})})}):null;}function _0x291657(_0xaeb580){const _0x2995ce=_0x2bc437,{status:_0x48bdfa,coordinator:_0x1d98f7}=_0xaeb580;switch(_0x48bdfa){case _0x532c80[_0x2995ce(0x20a)]:return _0x427a34['jsx'](_0x22a3a8,{'coordinator':_0x1d98f7});case _0x532c80[_0x2995ce(0x17a)]:return _0x427a34[_0x2995ce(0x213)](_0x37b79c,{'coordinator':_0x1d98f7});case _0x532c80[_0x2995ce(0x20c)]:return _0x427a34[_0x2995ce(0x213)](_0x3cc8e6,{'coordinator':_0x1d98f7});case _0x532c80['OFFLINE']:return _0x427a34[_0x2995ce(0x213)](_0xee4f8,{});case _0x532c80[_0x2995ce(0x190)]:return _0x427a34[_0x2995ce(0x213)](_0x356156,{'coordinator':_0x1d98f7});default:return null;}}function _0x22a3a8(_0x24cd1a){const _0x49ab45=_0x2bc437,{coordinator:_0x3283aa}=_0x24cd1a;return _0x427a34[_0x49ab45(0x1e8)](_0x427a34[_0x49ab45(0x21d)],{'children':[_0x427a34[_0x49ab45(0x213)](_0x49ab45(0x199),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x49ab45(0x1fd)}),_0x427a34[_0x49ab45(0x213)](_0x2b0952['Button'],{'onClick':()=>_0x3283aa[_0x49ab45(0x17d)](),'children':'Start'})]});}function _0x37b79c(_0x57bb7c){const _0x33dda7=_0x2bc437,{coordinator:_0x4a5d3f}=_0x57bb7c;return _0x427a34[_0x33dda7(0x1e8)](_0x427a34['Fragment'],{'children':[_0x427a34['jsx']('div',{'className':_0x33dda7(0x211),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x427a34[_0x33dda7(0x213)](_0x2b0952[_0x33dda7(0x1b5)],{'onClick':()=>_0x4a5d3f[_0x33dda7(0x1ce)](),'children':'Stop\x20following'})]});}function _0x3cc8e6(_0x2c2d0d){const _0x662bc4=_0x2bc437,{coordinator:_0xaf197b}=_0x2c2d0d;return _0x427a34[_0x662bc4(0x1e8)](_0x427a34[_0x662bc4(0x21d)],{'children':[_0x427a34[_0x662bc4(0x213)](_0x662bc4(0x199),{'className':_0x662bc4(0x211),'children':_0x662bc4(0x20e)}),_0x427a34[_0x662bc4(0x213)](_0x2b0952['Button'],{'variant':_0x662bc4(0x180),'onClick':()=>_0xaf197b[_0x662bc4(0x1a2)](),'children':_0x662bc4(0x1ad)})]});}function _0x356156(_0xd884e7){const _0x164b3b=_0x2bc437,{coordinator:_0x7d1ddf}=_0xd884e7;return _0x427a34[_0x164b3b(0x1e8)](_0x427a34[_0x164b3b(0x21d)],{'children':[_0x427a34[_0x164b3b(0x213)](_0x164b3b(0x199),{'className':_0x164b3b(0x211),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x427a34[_0x164b3b(0x213)](_0x2b0952['Button'],{'variant':_0x164b3b(0x1f5),'onClick':()=>_0x7d1ddf[_0x164b3b(0x1ca)](),'children':'Stop\x20presenting'})]});}function _0xee4f8(){const _0x29f98a=_0x2bc437;return _0x427a34[_0x29f98a(0x213)](_0x427a34[_0x29f98a(0x21d)],{'children':_0x29f98a(0x220)});}var _0x128aaf=Object['getOwnPropertyDescriptor'],_0x519d0c=(_0x23f9bb,_0x28d077,_0x314f34,_0x519939)=>{for(var _0x3e785b=_0x519939>0x1?void 0x0:_0x519939?_0x128aaf(_0x28d077,_0x314f34):_0x28d077,_0x4d9302=_0x23f9bb['length']-0x1,_0x28506d;_0x4d9302>=0x0;_0x4d9302--)(_0x28506d=_0x23f9bb[_0x4d9302])&&(_0x3e785b=_0x28506d(_0x3e785b)||_0x3e785b);return _0x3e785b;},_0xc5d368=(_0x3f66fa,_0xcea4a9)=>(_0x5f2620,_0x3b839e)=>_0xcea4a9(_0x5f2620,_0x3b839e,_0x3f66fa);_0x2193f3['DesktopLiveShareController']=class extends _0x43826d['Disposable']{constructor(_0x1b800c,_0x3d1202){const _0x4dcee6=_0x2bc437;super(),this[_0x4dcee6(0x186)]=_0x1b800c,this[_0x4dcee6(0x1b4)]=_0x3d1202,this[_0x4dcee6(0x16f)]();}[_0x2bc437(0x16f)](){const _0x2c9ebd=_0x2bc437;this[_0x2c9ebd(0x207)](this[_0x2c9ebd(0x1b4)]['registerComponent'](_0x37dc43['BuiltInUIPart'][_0x2c9ebd(0x218)],()=>_0x37dc43[_0x2c9ebd(0x1b1)](_0x39b0f6,this[_0x2c9ebd(0x186)])));}},_0x2193f3[_0x2bc437(0x22c)]=_0x519d0c([_0xc5d368(0x0,_0x43826d[_0x2bc437(0x210)](_0x43826d[_0x2bc437(0x19b)])),_0xc5d368(0x1,_0x37dc43['IUIPartsService'])],_0x2193f3[_0x2bc437(0x22c)]);const _0x5afe11='live-share.config',_0x4e584c={};var _0x4f4543=Object['getOwnPropertyDescriptor'],_0xfb3a51=(_0x231e99,_0x4f3a66,_0x22f783,_0x1e08ce)=>{for(var _0x4657cf=_0x1e08ce>0x1?void 0x0:_0x1e08ce?_0x4f4543(_0x4f3a66,_0x22f783):_0x4f3a66,_0x386056=_0x231e99['length']-0x1,_0x147b80;_0x386056>=0x0;_0x386056--)(_0x147b80=_0x231e99[_0x386056])&&(_0x4657cf=_0x147b80(_0x4657cf)||_0x4657cf);return _0x4657cf;},_0xeda233=(_0x448738,_0x4b9ba2)=>(_0x220b03,_0x101c9b)=>_0x4b9ba2(_0x220b03,_0x101c9b,_0x448738);let _0xee46ee=class extends _0x43826d['Disposable']{constructor(_0x3b8b02){const _0x5ddde1=_0x2bc437;super(),this[_0x5ddde1(0x176)]=_0x3b8b02,this[_0x5ddde1(0x15e)]();}[_0x2bc437(0x15e)](){const _0x39953e=_0x2bc437;[_0x5e9d1b['SetZoomRatioOperation']['id'],_0x5e9d1b[_0x39953e(0x185)]['id'],_0x240fa8[_0x39953e(0x23b)]['id']][_0x39953e(0x22f)](_0xf41f2a=>{const _0x1f35e2=_0x39953e;this[_0x1f35e2(0x207)](this['_liveShareService'][_0x1f35e2(0x17b)](_0xf41f2a));});}};_0xee46ee=_0xfb3a51([_0xeda233(0x0,_0x43826d[_0x2bc437(0x210)](_0x3e8160))],_0xee46ee);var _0x68697b=Object[_0x2bc437(0x1c2)],_0x5030a7=Object[_0x2bc437(0x21f)],_0x1422e8=(_0x497b79,_0x1ae711,_0x49b8a3)=>_0x1ae711 in _0x497b79?_0x68697b(_0x497b79,_0x1ae711,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49b8a3}):_0x497b79[_0x1ae711]=_0x49b8a3,_0x14c7de=(_0x1c0665,_0x4b5360,_0x194c65,_0xefb5c7)=>{const _0x180af3=_0x2bc437;for(var _0x33263c=_0xefb5c7>0x1?void 0x0:_0xefb5c7?_0x5030a7(_0x4b5360,_0x194c65):_0x4b5360,_0x43f417=_0x1c0665[_0x180af3(0x161)]-0x1,_0x4d53c0;_0x43f417>=0x0;_0x43f417--)(_0x4d53c0=_0x1c0665[_0x43f417])&&(_0x33263c=_0x4d53c0(_0x33263c)||_0x33263c);return _0x33263c;},_0x27c264=(_0x257ba8,_0x152035)=>(_0x47b9c9,_0x3f221b)=>_0x152035(_0x47b9c9,_0x3f221b,_0x257ba8),_0x116903=(_0x543854,_0x5009d9,_0x3f288f)=>_0x1422e8(_0x543854,typeof _0x5009d9!=_0x2bc437(0x1b8)?_0x5009d9+'':_0x5009d9,_0x3f288f);const _0x5de808='UNIVER_LIVE_SHARE_PLUGIN';_0x2193f3['UniverLiveSharePlugin']=class extends _0x43826d[_0x2bc437(0x1ac)]{constructor(_0x130749=_0x4e584c,_0x4cd1e9,_0x200227){const _0x3b07fc=_0x2bc437;super(),this[_0x3b07fc(0x201)]=_0x130749,this[_0x3b07fc(0x186)]=_0x4cd1e9,this[_0x3b07fc(0x1bd)]=_0x200227;const {..._0x66db4b}=_0x43826d['merge']({},_0x4e584c,this['_config']);this[_0x3b07fc(0x1bd)][_0x3b07fc(0x16c)](_0x5afe11,_0x66db4b);}[_0x2bc437(0x209)](){const _0x2e80ae=_0x2bc437;_0x43826d[_0x2e80ae(0x177)](this[_0x2e80ae(0x186)],_0x43826d[_0x2e80ae(0x217)]([[_0x3e8160],[_0x2193f3[_0x2e80ae(0x230)]],[_0xee46ee],[_0x2193f3[_0x2e80ae(0x22c)]]],this[_0x2e80ae(0x201)][_0x2e80ae(0x191)])),_0x43826d[_0x2e80ae(0x1b9)](this[_0x2e80ae(0x186)],[[_0xee46ee]]);}[_0x2bc437(0x16b)](){const _0xd63e93=_0x2bc437;_0x43826d[_0xd63e93(0x1b9)](this[_0xd63e93(0x186)],[[_0x2193f3[_0xd63e93(0x22c)]]]);}},_0x116903(_0x2193f3[_0x2bc437(0x184)],'type',_0x43826d[_0x2bc437(0x167)][_0x2bc437(0x1b6)]),_0x116903(_0x2193f3[_0x2bc437(0x184)],_0x2bc437(0x1f9),_0x5de808),_0x2193f3[_0x2bc437(0x184)]=_0x14c7de([_0x43826d[_0x2bc437(0x1af)](_0x4a4464[_0x2bc437(0x1a0)]),_0x27c264(0x1,_0x43826d[_0x2bc437(0x210)](_0x43826d[_0x2bc437(0x19b)])),_0x27c264(0x2,_0x43826d[_0x2bc437(0x21a)])],_0x2193f3[_0x2bc437(0x184)]),_0x2193f3[_0x2bc437(0x15d)]=_0x39b0f6,_0x2193f3[_0x2bc437(0x232)]=_0x3e8160,_0x2193f3[_0x2bc437(0x21e)]=_0x532c80,Object[_0x2bc437(0x1c2)](_0x2193f3,Symbol[_0x2bc437(0x20b)],{'value':_0x2bc437(0x1fb)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2-nightly.202511241159",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.12.
|
|
61
|
-
"@univerjs
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/engine-render": "0.12.
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/ui": "0.12.
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.2-nightly.202511241159",
|
|
61
|
+
"@univerjs/core": "0.12.2-nightly.202511241159",
|
|
62
|
+
"@univerjs/design": "0.12.2-nightly.202511241159",
|
|
63
|
+
"@univerjs/sheets": "0.12.2-nightly.202511241159",
|
|
64
|
+
"@univerjs/engine-render": "0.12.2-nightly.202511241159",
|
|
65
|
+
"@univerjs/ui": "0.12.2-nightly.202511241159",
|
|
66
|
+
"@univerjs-pro/collaboration-client": "0.12.2-nightly.202511241159",
|
|
67
|
+
"@univerjs/sheets-ui": "0.12.2-nightly.202511241159"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.2.2",
|
|
76
76
|
"vitest": "^3.2.4",
|
|
77
|
-
"@univerjs/
|
|
78
|
-
"@univerjs
|
|
77
|
+
"@univerjs-infra/shared": "0.12.2",
|
|
78
|
+
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|