@univerjs-pro/live-share 0.10.14-nightly.202511080715 → 0.11.0
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';const _0xbb22f7=_0xee47;(function(_0x1e9211,_0x2616f0){const _0x13010b=_0xee47,_0x4bd018=_0x1e9211();while(!![]){try{const _0x2d6d56=parseInt(_0x13010b(0x1be))/0x1+-parseInt(_0x13010b(0x1cb))/0x2+-parseInt(_0x13010b(0x1b9))/0x3*(parseInt(_0x13010b(0x1bf))/0x4)+-parseInt(_0x13010b(0x1ca))/0x5+-parseInt(_0x13010b(0x1c0))/0x6+-parseInt(_0x13010b(0x1ad))/0x7+parseInt(_0x13010b(0x1ab))/0x8*(parseInt(_0x13010b(0x1c6))/0x9);if(_0x2d6d56===_0x2616f0)break;else _0x4bd018['push'](_0x4bd018['shift']());}catch(_0x105b3d){_0x4bd018['push'](_0x4bd018['shift']());}}}(_0x351c,0x6e3ad));function _0xee47(_0x308b4c,_0x3d8af1){const _0x351cb3=_0x351c();return _0xee47=function(_0xee476b,_0x54955b){_0xee476b=_0xee476b-0x1a8;let _0x5b9597=_0x351cb3[_0xee476b];return _0x5b9597;},_0xee47(_0x308b4c,_0x3d8af1);}const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');function _0x351c(){const _0xc242da=['4377696aZOOCY','startColumn','startFollowing','SetScrollOperation','No\x20active\x20workbook\x20found.','_commandService','99783wdFeLH','IDLE','FUniver','stopFollowing','3567735oNehVY','1262678ABSdgb','getStatus','FEnum','LiveShareStatusEnum','LiveShareStatus','startRow','2016AZDKHi','getLiveShareCoordinatorSync','746165pSejZg','PRESENTING','LiveShareController','startPresenting','FRange','extend','get','getActiveWorkbook','getId','_injector','getActiveSheet','_initialize','1435863zZtEYX','getSheetId','SetWorksheetActiveOperation','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','executeCommand','317295eFnaQU','4RbTnBf'];_0x351c=function(){return _0xc242da;};return _0x351c();}class w extends d[_0xbb22f7(0x1b1)]{[_0xbb22f7(0x1b8)](_0x3bc9c2,_0x100ef0,_0x578442,_0xd9b222,_0x5bd58e){const _0x4e790a=_0xbb22f7,_0x3043ee=_0x3bc9c2[_0x4e790a(0x1b3)](n[_0x4e790a(0x1af)]),_0x5d48c1=_0x3bc9c2[_0x4e790a(0x1b3)](g['IRenderManagerService']),_0x6bf3bc=_0x100ef0['getUnitId'](),_0x550fcd=_0x100ef0[_0x4e790a(0x1b7)](),_0x58adc1=_0x3043ee[_0x4e790a(0x1ac)](_0x6bf3bc);(_0x58adc1==null?void 0x0:_0x58adc1[_0x4e790a(0x1cc)]())!==n[_0x4e790a(0x1a9)][_0x4e790a(0x1ae)]||(_0x578442[_0x4e790a(0x1ba)]()!==_0x550fcd[_0x4e790a(0x1ba)]()&&this[_0x4e790a(0x1c5)][_0x4e790a(0x1bd)](u[_0x4e790a(0x1bb)]['id'],{'unitId':_0x6bf3bc,'subUnitId':_0x578442[_0x4e790a(0x1ba)]()}),!_0x5d48c1['getRenderById'](_0x6bf3bc))||_0x5bd58e['syncExecuteCommand'](f[_0x4e790a(0x1c3)]['id'],{'unitId':_0x100ef0['getUnitId'](),'sheetId':_0x578442[_0x4e790a(0x1ba)](),'sheetViewStartRow':_0xd9b222[_0x4e790a(0x1aa)],'sheetViewStartColumn':_0xd9b222[_0x4e790a(0x1c1)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0xbb22f7(0x1b1)][_0xbb22f7(0x1b2)](w);class C extends a[_0xbb22f7(0x1c8)]{['getLiveShareStatus'](){const _0x5068c4=_0xbb22f7;var _0x2c749f,_0x29d06b;const _0x3fc7f8=this[_0x5068c4(0x1b6)][_0x5068c4(0x1b3)](n[_0x5068c4(0x1af)]),_0x290115=(_0x2c749f=this['getActiveWorkbook']())==null?void 0x0:_0x2c749f[_0x5068c4(0x1b5)]();if(!_0x290115)throw new Error(_0x5068c4(0x1c4));const _0x5d16c4=_0x3fc7f8[_0x5068c4(0x1ac)](_0x290115);return(_0x29d06b=_0x5d16c4==null?void 0x0:_0x5d16c4['getStatus']())!=null?_0x29d06b:n[_0x5068c4(0x1a9)][_0x5068c4(0x1c7)];}['startFollowing'](){const _0x2a820f=_0xbb22f7;var _0xa73b4d;const _0x3a2868=this['_injector'][_0x2a820f(0x1b3)](n['LiveShareController']),_0x1a1e30=(_0xa73b4d=this[_0x2a820f(0x1b4)]())==null?void 0x0:_0xa73b4d[_0x2a820f(0x1b5)]();if(!_0x1a1e30)throw new Error(_0x2a820f(0x1c4));const _0xd4dd93=_0x3a2868['getLiveShareCoordinatorSync'](_0x1a1e30);if(!_0xd4dd93)throw new Error(_0x2a820f(0x1bc));_0xd4dd93[_0x2a820f(0x1c2)]();}['stopFollowing'](){const _0x25682d=_0xbb22f7;var _0x2965d9;const _0x53556b=this[_0x25682d(0x1b6)][_0x25682d(0x1b3)](n[_0x25682d(0x1af)]),_0x4dcdc2=(_0x2965d9=this[_0x25682d(0x1b4)]())==null?void 0x0:_0x2965d9[_0x25682d(0x1b5)]();if(!_0x4dcdc2)throw new Error('No\x20active\x20workbook\x20found.');const _0xefd937=_0x53556b[_0x25682d(0x1ac)](_0x4dcdc2);if(!_0xefd937)throw new Error(_0x25682d(0x1bc));_0xefd937[_0x25682d(0x1c9)]();}[_0xbb22f7(0x1b0)](){const _0x14cf1c=_0xbb22f7;var _0x4dcf4c;const _0x3c5457=this[_0x14cf1c(0x1b6)][_0x14cf1c(0x1b3)](n['LiveShareController']),_0x51ff55=(_0x4dcf4c=this[_0x14cf1c(0x1b4)]())==null?void 0x0:_0x4dcf4c[_0x14cf1c(0x1b5)]();if(!_0x51ff55)throw new Error(_0x14cf1c(0x1c4));const _0x520413=_0x3c5457[_0x14cf1c(0x1ac)](_0x51ff55);if(!_0x520413)throw new Error(_0x14cf1c(0x1bc));_0x520413['tryStartPresenting']();}['stopPresenting'](){const _0x29888d=_0xbb22f7;var _0x3d8842;const _0x4fc73d=this[_0x29888d(0x1b6)][_0x29888d(0x1b3)](n[_0x29888d(0x1af)]),_0x336922=(_0x3d8842=this[_0x29888d(0x1b4)]())==null?void 0x0:_0x3d8842[_0x29888d(0x1b5)]();if(!_0x336922)throw new Error(_0x29888d(0x1c4));const _0x2dee32=_0x4fc73d[_0x29888d(0x1ac)](_0x336922);if(!_0x2dee32)throw new Error(_0x29888d(0x1bc));_0x2dee32['stopPresenting']();}}a['FUniver'][_0xbb22f7(0x1b2)](C);class L extends a[_0xbb22f7(0x1cd)]{get[_0xbb22f7(0x1a8)](){const _0x325234=_0xbb22f7;return n[_0x325234(0x1a9)];}}a[_0xbb22f7(0x1cd)][_0xbb22f7(0x1b2)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4fae1d=_0x439a;(function(_0x4f72ec,_0x262431){const _0x13eddc=_0x439a,_0x33e078=_0x4f72ec();while(!![]){try{const _0x442db0=parseInt(_0x13eddc(0x197))/0x1+parseInt(_0x13eddc(0x206))/0x2+-parseInt(_0x13eddc(0x1f4))/0x3+parseInt(_0x13eddc(0x1c5))/0x4+parseInt(_0x13eddc(0x22b))/0x5*(parseInt(_0x13eddc(0x166))/0x6)+-parseInt(_0x13eddc(0x1ef))/0x7*(parseInt(_0x13eddc(0x19c))/0x8)+parseInt(_0x13eddc(0x17a))/0x9;if(_0x442db0===_0x262431)break;else _0x33e078['push'](_0x33e078['shift']());}catch(_0x3a02f3){_0x33e078['push'](_0x33e078['shift']());}}}(_0x2244,0xe1fed));var T=Object[_0x4fae1d(0x16f)],U=(_0x407ec7,_0x35ad5d,_0x4ab2b6)=>_0x35ad5d in _0x407ec7?T(_0x407ec7,_0x35ad5d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ab2b6}):_0x407ec7[_0x35ad5d]=_0x4ab2b6,_=(_0x509134,_0x5f0619,_0xc1d847)=>U(_0x509134,typeof _0x5f0619!=_0x4fae1d(0x1c1)?_0x5f0619+'':_0x5f0619,_0xc1d847);Object[_0x4fae1d(0x16f)](exports,Symbol[_0x4fae1d(0x1c8)],{'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:_0x12eb28,..._0x10fc12}){const _0x236e11=_0x4fae1d,{icon:_0x220f8f,id:_0x3cdf16,className:_0x69d7c8,extend:_0xe56670,..._0x2d3280}=_0x10fc12,_0x4ba7b7=(_0x236e11(0x1bc)+_0x3cdf16+'\x20'+(_0x69d7c8||''))[_0x236e11(0x219)](),_0x40fc16=v['useRef']('_'+H());return j(_0x220f8f,''+_0x3cdf16,{'defIds':_0x220f8f[_0x236e11(0x192)],'idSuffix':_0x40fc16['current']},{'ref':_0x12eb28,'className':_0x4ba7b7,..._0x2d3280},_0xe56670);}function j(_0x4ea341,_0x12678c,_0x2fa94f,_0x2ed096,_0x1205d1){const _0x4fbb76=_0x4fae1d;return v[_0x4fbb76(0x18f)](_0x4ea341[_0x4fbb76(0x1b3)],{'key':_0x12678c,...y(_0x4ea341,_0x2fa94f,_0x1205d1),..._0x2ed096},(F(_0x4ea341,_0x2fa94f)['children']||[])[_0x4fbb76(0x1ca)]((_0x28d3f1,_0x4377dd)=>j(_0x28d3f1,_0x12678c+'-'+_0x4ea341[_0x4fbb76(0x1b3)]+'-'+_0x4377dd,_0x2fa94f,void 0x0,_0x1205d1)));}function y(_0x2aa221,_0x310f75,_0xe7ff32){const _0x1de10d=_0x4fae1d,_0x3176d5={..._0x2aa221[_0x1de10d(0x172)]};_0xe7ff32!=null&&_0xe7ff32[_0x1de10d(0x1d7)]&&_0x3176d5[_0x1de10d(0x20b)]===_0x1de10d(0x1d7)&&(_0x3176d5[_0x1de10d(0x20b)]=_0xe7ff32[_0x1de10d(0x1d7)]),_0x2aa221['tag']===_0x1de10d(0x201)&&_0x3176d5['id']&&(_0x3176d5['id']=_0x3176d5['id']+_0x310f75[_0x1de10d(0x227)]),Object[_0x1de10d(0x199)](_0x3176d5)[_0x1de10d(0x189)](([_0x3ef840,_0x4d3c35])=>{const _0x63353e=_0x1de10d;_0x3ef840===_0x63353e(0x201)&&typeof _0x4d3c35=='string'&&(_0x3176d5[_0x3ef840]=_0x4d3c35[_0x63353e(0x208)](/url\(#(.*)\)/,_0x63353e(0x1b1)+_0x310f75['idSuffix']+')'));});const {defIds:_0x36266e}=_0x310f75;return!_0x36266e||_0x36266e[_0x1de10d(0x170)]===0x0||(_0x2aa221[_0x1de10d(0x1b3)]==='use'&&_0x3176d5['xlink:href']&&(_0x3176d5[_0x1de10d(0x16d)]=_0x3176d5[_0x1de10d(0x16d)]+_0x310f75[_0x1de10d(0x227)]),Object[_0x1de10d(0x199)](_0x3176d5)['forEach'](([_0x5fd082,_0x284b0d])=>{const _0x15c475=_0x1de10d;typeof _0x284b0d==_0x15c475(0x216)&&(_0x3176d5[_0x5fd082]=_0x284b0d[_0x15c475(0x208)](/url\(#(.*)\)/,_0x15c475(0x1b1)+_0x310f75[_0x15c475(0x227)]+')'));})),_0x3176d5;}function F(_0x2c0d80,_0x338a4d){const _0x598c2f=_0x4fae1d;var _0x2e39a5;const {defIds:_0x354ace}=_0x338a4d;return!_0x354ace||_0x354ace[_0x598c2f(0x170)]===0x0?_0x2c0d80:_0x2c0d80[_0x598c2f(0x1b3)]==='defs'&&((_0x2e39a5=_0x2c0d80[_0x598c2f(0x165)])!=null&&_0x2e39a5[_0x598c2f(0x170)])?{..._0x2c0d80,'children':_0x2c0d80[_0x598c2f(0x165)]['map'](_0x50e4b3=>typeof _0x50e4b3[_0x598c2f(0x172)]['id']=='string'&&_0x354ace&&_0x354ace['includes'](_0x50e4b3[_0x598c2f(0x172)]['id'])?{..._0x50e4b3,'attrs':{..._0x50e4b3[_0x598c2f(0x172)],'id':_0x50e4b3[_0x598c2f(0x172)]['id']+_0x338a4d[_0x598c2f(0x227)]}}:_0x50e4b3)}:_0x2c0d80;}function H(){const _0x1226f4=_0x4fae1d;return Math[_0x1226f4(0x19e)]()[_0x1226f4(0x17d)](0x24)[_0x1226f4(0x169)](0x2,0x8);}x[_0x4fae1d(0x1f0)]='UniverIcon';const V={'tag':_0x4fae1d(0x185),'attrs':{'xmlns':_0x4fae1d(0x195),'fill':'none','viewBox':_0x4fae1d(0x1fa),'width':'1em','height':_0x4fae1d(0x228)},'children':[{'tag':_0x4fae1d(0x1a7),'attrs':{'fill':'currentColor','d':_0x4fae1d(0x20a)}},{'tag':_0x4fae1d(0x1a7),'attrs':{'fill':'currentColor','d':_0x4fae1d(0x168),'fillRule':_0x4fae1d(0x175),'clipRule':'evenodd'}}]},R=v[_0x4fae1d(0x21f)](function(_0xe707d,_0x1958da){const _0x9e66b7=_0x4fae1d;return v[_0x9e66b7(0x18f)](x,Object[_0x9e66b7(0x1b6)]({},_0xe707d,{'id':_0x9e66b7(0x1dd),'ref':_0x1958da,'icon':V}));});R[_0x4fae1d(0x1f0)]=_0x4fae1d(0x21b);class E extends o['Disposable']{constructor(){const _0x2c942c=_0x4fae1d;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x2c942c(0x22a),new Set());}[_0x4fae1d(0x17e)](_0xfb94ae){const _0x277662=_0x4fae1d;return this[_0x277662(0x1c0)][_0x277662(0x174)](_0xfb94ae),o[_0x277662(0x1ab)](()=>this['_sharedOperations']['delete'](_0xfb94ae));}[_0x4fae1d(0x1cf)](_0x4bfbb2){const _0x54cf87=_0x4fae1d;return this[_0x54cf87(0x22a)][_0x54cf87(0x174)](_0x4bfbb2),o['toDisposable'](()=>this[_0x54cf87(0x22a)][_0x54cf87(0x1db)](_0x4bfbb2));}[_0x4fae1d(0x1e7)](_0x3df2d6){const _0xa8401f=_0x4fae1d;return this[_0xa8401f(0x1c0)]['has'](_0x3df2d6);}[_0x4fae1d(0x1da)](_0x333546){const _0x1cefc4=_0x4fae1d;return Array[_0x1cefc4(0x173)](this['_reporters'])['map'](_0x4c6df5=>_0x4c6df5(_0x333546));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x5a3439,_0x2c748c,_0x5cd5b2,_0x1abc50)=>{const _0x269656=_0x4fae1d;for(var _0x378a69=_0x1abc50>0x1?void 0x0:_0x1abc50?M(_0x2c748c,_0x5cd5b2):_0x2c748c,_0x13a8d8=_0x5a3439[_0x269656(0x170)]-0x1,_0x1ab315;_0x13a8d8>=0x0;_0x13a8d8--)(_0x1ab315=_0x5a3439[_0x13a8d8])&&(_0x378a69=_0x1ab315(_0x378a69)||_0x378a69);return _0x378a69;},S=(_0x4beca8,_0xa14f3e)=>(_0x4c86cf,_0x4a8957)=>_0xa14f3e(_0x4c86cf,_0x4a8957,_0x4beca8);exports[_0x4fae1d(0x198)]=class extends o[_0x4fae1d(0x1dc)]{constructor(_0x229998,_0x13f9cb,_0x5c72bd){const _0x389580=_0x4fae1d;super(),_(this,_0x389580(0x19f),new Map()),(this['_univerInstanceService']=_0x229998,this[_0x389580(0x1fc)]=_0x13f9cb,this[_0x389580(0x194)]=_0x5c72bd,this[_0x389580(0x1d0)]());}async['getLiveShareCoordinator'](_0x5068fc){const _0x15dd6f=_0x4fae1d;return this['_entities']['has'](_0x5068fc)||await this[_0x15dd6f(0x1cc)](_0x5068fc),this['_entities']['get'](_0x5068fc);}['getLiveShareCoordinatorSync'](_0x340dc6){const _0x546df9=_0x4fae1d;var _0x129767;return(_0x129767=this['_entities'][_0x546df9(0x18c)](_0x340dc6))!=null?_0x129767:null;}[_0x4fae1d(0x1d0)](){const _0x56330b=_0x4fae1d;this[_0x56330b(0x207)][_0x56330b(0x1a3)](o[_0x56330b(0x1a8)][_0x56330b(0x210)])['pipe'](I[_0x56330b(0x1bb)](this[_0x56330b(0x225)]))[_0x56330b(0x16b)](async _0x3e6e26=>{const _0x242a7e=_0x56330b,_0x2e65df=_0x3e6e26[_0x242a7e(0x1be)]();this[_0x242a7e(0x19f)]['has'](_0x2e65df)||this['_startLiveShareCoordinator'](_0x2e65df);}),this[_0x56330b(0x207)][_0x56330b(0x1af)](o[_0x56330b(0x1a8)][_0x56330b(0x210)])[_0x56330b(0x200)](I[_0x56330b(0x1bb)](this['dispose$']))[_0x56330b(0x16b)](_0xfe7609=>{const _0x2a0add=_0x56330b,_0x1a239c=_0xfe7609[_0x2a0add(0x1be)](),_0x13e516=this[_0x2a0add(0x19f)][_0x2a0add(0x18c)](_0x1a239c);_0x13e516==null||_0x13e516[_0x2a0add(0x213)]();});}async[_0x4fae1d(0x1cc)](_0x3c74dd){const _0x4f465f=_0x4fae1d,_0x44e744=await this[_0x4f465f(0x194)][_0x4f465f(0x204)](_0x3c74dd),_0x2c23e0=this['_injector'][_0x4f465f(0x221)](exports['LiveShareCoordinator'],_0x3c74dd,_0x44e744);return _0x2c23e0[_0x4f465f(0x1b0)](),this[_0x4f465f(0x19f)][_0x4f465f(0x20e)](_0x3c74dd,_0x2c23e0),_0x2c23e0;}},exports['LiveShareController']=P([S(0x0,o[_0x4fae1d(0x1bd)]),S(0x1,o[_0x4fae1d(0x18a)](o[_0x4fae1d(0x1c2)])),S(0x2,o[_0x4fae1d(0x18a)](b[_0x4fae1d(0x1df)]))],exports['LiveShareController']);var u=(_0xff8237=>(_0xff8237[_0x4fae1d(0x167)]='offline',_0xff8237[_0x4fae1d(0x179)]=_0x4fae1d(0x1ed),_0xff8237['FOLLOWING']=_0x4fae1d(0x16a),_0xff8237[_0x4fae1d(0x212)]='not-following',_0xff8237[_0x4fae1d(0x22f)]=_0x4fae1d(0x16c),_0xff8237))(u||{});const k=_0x4fae1d(0x22c),q=0xc8;exports[_0x4fae1d(0x230)]=class extends o['RxDisposable']{constructor(_0x2701e3,_0xdc2bcb,_0x5d02c7,_0x2c17d2,_0x243a09){const _0x1a25ee=_0x4fae1d;super(),_(this,_0x1a25ee(0x1a5),new O[(_0x1a25ee(0x1b4))]('idle')),_(this,_0x1a25ee(0x188),this['_status$'][_0x1a25ee(0x187)]()),_(this,_0x1a25ee(0x1d0),!0x1),_(this,_0x1a25ee(0x181),null),_(this,_0x1a25ee(0x1ec),null),(this[_0x1a25ee(0x190)]=_0x2701e3,this['_collabSession']=_0xdc2bcb,this['_configService']=_0x5d02c7,this[_0x1a25ee(0x1f7)]=_0x2c17d2,this[_0x1a25ee(0x1e0)]=_0x243a09);}get['_status'](){const _0x22eaf8=_0x4fae1d;return this[_0x22eaf8(0x1a5)][_0x22eaf8(0x1b5)]();}['dispose'](){const _0x294058=_0x4fae1d;var _0x56ba7c;(_0x56ba7c=this[_0x294058(0x181)])==null||_0x56ba7c[_0x294058(0x213)](),this[_0x294058(0x1a5)][_0x294058(0x1e5)](_0x294058(0x1ed)),this[_0x294058(0x1a5)][_0x294058(0x1e3)]();}[_0x4fae1d(0x1a4)](){return this['_status'];}[_0x4fae1d(0x1b0)](){const _0x581f0b=_0x4fae1d;this[_0x581f0b(0x1d0)]||(this[_0x581f0b(0x1d0)]=!0x0,this[_0x581f0b(0x1f5)]['sessionStatus$']['pipe'](I['takeUntil'](this[_0x581f0b(0x225)]))[_0x581f0b(0x16b)](_0x1d4ee3=>{const _0x1f28bc=_0x581f0b;switch(_0x1d4ee3){case b[_0x1f28bc(0x1ff)][_0x1f28bc(0x167)]:this[_0x1f28bc(0x1e8)]();break;case b[_0x1f28bc(0x1ff)]['ONLINE']:this[_0x1f28bc(0x18e)]();break;}}),this[_0x581f0b(0x1f5)]['event$'][_0x581f0b(0x200)](I[_0x581f0b(0x1bb)](this['dispose$']))[_0x581f0b(0x16b)](_0x36ecb3=>{const _0x40474a=_0x581f0b,{eventID:_0x367ab2}=_0x36ecb3;switch(_0x367ab2){case d[_0x40474a(0x1fb)][_0x40474a(0x22d)]:this[_0x40474a(0x1a2)](_0x36ecb3);break;case d[_0x40474a(0x1fb)][_0x40474a(0x19a)]:this[_0x40474a(0x183)](_0x36ecb3);break;case d[_0x40474a(0x1fb)][_0x40474a(0x1a9)]:this[_0x40474a(0x1d3)]();break;case d[_0x40474a(0x1fb)][_0x40474a(0x19b)]:this['_handleNewChangeSets'](_0x36ecb3);break;}}));}[_0x4fae1d(0x229)](){const _0x1a0473=_0x4fae1d;this[_0x1a0473(0x1f5)]['send']({'eventID':d[_0x1a0473(0x1fb)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1a0473(0x190)],'userID':this[_0x1a0473(0x1f5)]['getMemberID']()}},this[_0x1a0473(0x190)]);}[_0x4fae1d(0x1ad)](){const _0x3e247b=_0x4fae1d;this[_0x3e247b(0x18d)]===_0x3e247b(0x16c)&&(this[_0x3e247b(0x1a5)][_0x3e247b(0x1e5)](_0x3e247b(0x1ed)),this['_collabSession']['send']({'eventID':d['CollaborationEvent'][_0x3e247b(0x1a9)],'data':{'unitID':this[_0x3e247b(0x190)]}},this[_0x3e247b(0x190)]));}['startFollowing'](){const _0x162792=_0x4fae1d;this[_0x162792(0x18d)]==='not-following'&&(this[_0x162792(0x1a5)][_0x162792(0x1e5)](_0x162792(0x16a)),this['_startFollowing']());}[_0x4fae1d(0x1a1)](){const _0x5da19a=_0x4fae1d;this['_status']===_0x5da19a(0x16a)&&this[_0x5da19a(0x1ae)]();}[_0x4fae1d(0x1a2)](_0x26b276){const _0x1931d8=_0x4fae1d,{presenter:_0x4b445b}=_0x26b276[_0x1931d8(0x180)],_0x4e061d=this['_collabSession'][_0x1931d8(0x1d1)]();this['_presenter']=_0x4b445b,_0x4b445b===_0x4e061d?(this['_stopFollowing'](),this[_0x1931d8(0x1fe)]()):this[_0x1931d8(0x18d)]!==_0x1931d8(0x1d8)&&(this[_0x1931d8(0x182)](),this['_startFollowing']());}[_0x4fae1d(0x1d9)](){const _0x429a07=_0x4fae1d,_0x563369={'eventID':d[_0x429a07(0x1fb)][_0x429a07(0x217)]};this['_collabSession'][_0x429a07(0x1b8)](_0x563369,this['_unitID']);}['_handleTerminate'](){const _0x45889f=_0x4fae1d;this[_0x45889f(0x1ec)]=null,this[_0x45889f(0x18d)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x5bc2cd){const _0x38529d=_0x4fae1d;if(this['_status']===_0x38529d(0x16a)&&this[_0x38529d(0x1ec)]===_0x5bc2cd[_0x38529d(0x180)][_0x38529d(0x17c)]){const _0x3b92ca=d[_0x38529d(0x223)](_0x5bc2cd['data'])[_0x38529d(0x20c)]['reverse']()[_0x38529d(0x1b2)](_0x21d9e6=>_0x21d9e6['id']===C['InsertSheetMutation']['id']);if(_0x3b92ca){const _0x22b2b4=_0x3b92ca[_0x38529d(0x1f2)]['unitId'],_0x1bd6a5=_0x3b92ca['params'][_0x38529d(0x1c3)]['id'];setTimeout(()=>{const _0x3963a5=_0x38529d;this['_commandService'][_0x3963a5(0x224)](C[_0x3963a5(0x177)]['id'],{'unitId':_0x22b2b4,'subUnitId':_0x1bd6a5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x23a088=_0x4fae1d;this[_0x23a088(0x1a5)]['next'](_0x23a088(0x16c));const _0x21f212=new Map(),_0x2f230c=this['_commandDisposable']=new o['DisposableCollection']();_0x2f230c['add'](o['toDisposable'](()=>{const _0x45a915=_0x23a088;_0x21f212[_0x45a915(0x189)](_0x188b2c=>_0x188b2c[_0x45a915(0x1e3)]()),_0x21f212[_0x45a915(0x193)]();})),_0x2f230c[_0x23a088(0x174)](this[_0x23a088(0x1e0)]['onCommandExecuted'](_0x52c572=>{const _0x1e9543=_0x23a088;var _0x350abf;if(_0x52c572[_0x1e9543(0x1f1)]!==o[_0x1e9543(0x21a)][_0x1e9543(0x226)]||!this[_0x1e9543(0x1f7)][_0x1e9543(0x1e7)](_0x52c572['id']))return;const {id:_0x9fe8d9}=_0x52c572;let _0x200d48;_0x21f212['has'](_0x9fe8d9)?_0x200d48=_0x21f212['get'](_0x9fe8d9):(_0x200d48=new O['Subject'](),_0x21f212['set'](_0x9fe8d9,_0x200d48),_0x200d48[_0x1e9543(0x200)](I[_0x1e9543(0x1ba)]((_0x350abf=this[_0x1e9543(0x17f)][_0x1e9543(0x1eb)](k))!=null?_0x350abf:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x16fbeb=>{const _0x3d6a55=_0x1e9543;this[_0x3d6a55(0x1f5)][_0x3d6a55(0x1b8)]({'eventID':d[_0x3d6a55(0x1fb)][_0x3d6a55(0x19a)],'data':{'unitID':this['_unitID'],'operations':{[_0x16fbeb['id']]:{'id':_0x16fbeb['id'],'params':JSON['stringify'](_0x16fbeb[_0x3d6a55(0x1f2)])}}}},this['_unitID']);})),_0x200d48[_0x1e9543(0x1e5)](_0x52c572);})),this[_0x23a088(0x1f7)]['getInitialStates'](this[_0x23a088(0x190)])[_0x23a088(0x189)](_0x14f675=>this[_0x23a088(0x1f5)][_0x23a088(0x1b8)]({'eventID':d[_0x23a088(0x1fb)][_0x23a088(0x19a)],'data':{'unitID':this[_0x23a088(0x190)],'operations':{[_0x14f675['id']]:{'id':_0x14f675['id'],'params':JSON[_0x23a088(0x178)](_0x14f675['params'])}}}},this['_unitID']));}[_0x4fae1d(0x182)](){const _0x3ef5a4=_0x4fae1d;var _0x2032ad;this['_status$']['next']('idle'),(_0x2032ad=this[_0x3ef5a4(0x181)])==null||_0x2032ad['dispose'](),this['_commandDisposable']=null;}[_0x4fae1d(0x184)](){const _0xd84e31=_0x4fae1d;var _0x48b29a;(_0x48b29a=this[_0xd84e31(0x181)])==null||_0x48b29a[_0xd84e31(0x213)](),this[_0xd84e31(0x1a5)][_0xd84e31(0x1e5)]('following');}[_0x4fae1d(0x1a0)](){const _0x19bebc=_0x4fae1d;var _0xbb8325;this[_0x19bebc(0x1a5)][_0x19bebc(0x1e5)](_0x19bebc(0x1ed)),(_0xbb8325=this['_commandDisposable'])==null||_0xbb8325[_0x19bebc(0x213)](),this[_0x19bebc(0x181)]=null;}[_0x4fae1d(0x1ae)](){const _0x3f68fd=_0x4fae1d;var _0x3e7869;this['_status$']['next'](_0x3f68fd(0x1d8)),(_0x3e7869=this[_0x3f68fd(0x181)])==null||_0x3e7869[_0x3f68fd(0x213)]();}[_0x4fae1d(0x183)](_0x253bbb){const _0x847be1=_0x4fae1d;if([_0x847be1(0x16c),_0x847be1(0x1d8),_0x847be1(0x18b)][_0x847be1(0x171)](this[_0x847be1(0x18d)])||!_0x253bbb[_0x847be1(0x180)][_0x847be1(0x1d6)]||_0x253bbb[_0x847be1(0x180)][_0x847be1(0x1d6)]===this[_0x847be1(0x1f5)][_0x847be1(0x1d1)]())return;this[_0x847be1(0x18d)]==='idle'&&this[_0x847be1(0x184)]();const _0x5036a1=_0x253bbb['data'][_0x847be1(0x1f6)];Object[_0x847be1(0x16e)](_0x5036a1)[_0x847be1(0x189)](_0x14a066=>{const _0x2420a3=_0x847be1;this['_commandService'][_0x2420a3(0x224)](_0x14a066['id'],_0x14a066[_0x2420a3(0x1f2)]?JSON[_0x2420a3(0x232)](_0x14a066['params']):null,{'fromCollab':!0x0});});}[_0x4fae1d(0x1e8)](){const _0xf780be=_0x4fae1d;var _0x2a90ae;this[_0xf780be(0x1a5)]['next'](_0xf780be(0x18b)),(_0x2a90ae=this['_commandDisposable'])==null||_0x2a90ae[_0xf780be(0x213)]();}[_0x4fae1d(0x18e)](){const _0x2c818c=_0x4fae1d;this['_status$'][_0x2c818c(0x1e5)](_0x2c818c(0x1ed)),this[_0x2c818c(0x1d9)]();}},exports[_0x4fae1d(0x230)]=P([S(0x2,o['IConfigService']),S(0x3,o['Inject'](E)),S(0x4,o[_0x4fae1d(0x1ce)])],exports['LiveShareCoordinator']);function $(){const _0x2772e4=_0x4fae1d,_0x3a4beb=p[_0x2772e4(0x1f3)](exports[_0x2772e4(0x198)]),_0x11c810=p[_0x2772e4(0x1f3)](o[_0x2772e4(0x1bd)]),_0x3ad5f5=p[_0x2772e4(0x231)](()=>_0x11c810[_0x2772e4(0x1d4)](o[_0x2772e4(0x1a8)][_0x2772e4(0x210)]),void 0x0,!0x1,[]),[_0x4e0de0,_0x17f10f]=v[_0x2772e4(0x1d5)](null),[_0x1913a8,_0x2efdfd]=v[_0x2772e4(0x1d5)](u['IDLE']),_0x4c4f7e=v[_0x2772e4(0x176)](null);return v['useEffect'](()=>(_0x3ad5f5&&_0x3a4beb['getLiveShareCoordinator'](_0x3ad5f5[_0x2772e4(0x1be)]())[_0x2772e4(0x1e2)](_0x1ae26d=>{const _0x2dcea5=_0x2772e4;_0x17f10f(_0x1ae26d),_0x4c4f7e[_0x2dcea5(0x1e1)]=_0x1ae26d[_0x2dcea5(0x188)][_0x2dcea5(0x16b)](_0x21159b=>{_0x2efdfd(_0x21159b);});}),()=>{const _0x18d96b=_0x2772e4;var _0x14b5f4;(_0x14b5f4=_0x4c4f7e[_0x18d96b(0x1e1)])==null||_0x14b5f4[_0x18d96b(0x1e9)](),_0x4c4f7e['current']=null;}),[_0x3ad5f5,_0x3a4beb]),_0x4e0de0?l['jsx'](f[_0x2772e4(0x1b7)],{'align':'end','disabled':_0x1913a8===u[_0x2772e4(0x167)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l['jsx'](W,{'status':_0x1913a8,'coordinator':_0x4e0de0}),'children':l['jsx']('button',{'className':f[_0x2772e4(0x1e4)](_0x2772e4(0x1ea),{'univer-cursor-not-allowed':_0x1913a8===u[_0x2772e4(0x167)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1913a8!==u[_0x2772e4(0x167)]}),'type':_0x2772e4(0x1c4),'children':l['jsx'](R,{'className':_0x2772e4(0x1c6)})})}):null;}function W(_0x1ac431){const _0x2af6b5=_0x4fae1d,{status:_0x44520d,coordinator:_0x3ebdb2}=_0x1ac431;switch(_0x44520d){case u[_0x2af6b5(0x179)]:return l[_0x2af6b5(0x214)](G,{'coordinator':_0x3ebdb2});case u[_0x2af6b5(0x1f8)]:return l['jsx'](B,{'coordinator':_0x3ebdb2});case u[_0x2af6b5(0x212)]:return l[_0x2af6b5(0x214)](Y,{'coordinator':_0x3ebdb2});case u['OFFLINE']:return l[_0x2af6b5(0x214)](J,{});case u[_0x2af6b5(0x22f)]:return l[_0x2af6b5(0x214)](Z,{'coordinator':_0x3ebdb2});default:return null;}}function G(_0x1f7c23){const _0x48231f=_0x4fae1d,{coordinator:_0x3cbdf2}=_0x1f7c23;return l['jsxs'](l[_0x48231f(0x1ac)],{'children':[l[_0x48231f(0x214)](_0x48231f(0x203),{'className':_0x48231f(0x205),'children':'Present\x20this\x20document'}),l['jsx'](f['Button'],{'onClick':()=>_0x3cbdf2[_0x48231f(0x229)](),'children':_0x48231f(0x22e)})]});}function B(_0xff3470){const _0x577c00=_0x4fae1d,{coordinator:_0x5002a7}=_0xff3470;return l[_0x577c00(0x19d)](l[_0x577c00(0x1ac)],{'children':[l[_0x577c00(0x214)]('div',{'className':_0x577c00(0x205),'children':_0x577c00(0x1bf)}),l['jsx'](f[_0x577c00(0x1c9)],{'onClick':()=>_0x5002a7['stopFollowing'](),'children':_0x577c00(0x1d2)})]});}function _0x439a(_0x7ccb5a,_0x540a4d){const _0x2244f1=_0x2244();return _0x439a=function(_0x439adc,_0x448d24){_0x439adc=_0x439adc-0x165;let _0x20efd9=_0x2244f1[_0x439adc];return _0x20efd9;},_0x439a(_0x7ccb5a,_0x540a4d);}function Y(_0x229333){const _0x32aee2=_0x4fae1d,{coordinator:_0xafde83}=_0x229333;return l[_0x32aee2(0x19d)](l[_0x32aee2(0x1ac)],{'children':[l[_0x32aee2(0x214)]('div',{'className':_0x32aee2(0x205),'children':_0x32aee2(0x1f9)}),l[_0x32aee2(0x214)](f[_0x32aee2(0x1c9)],{'variant':_0x32aee2(0x211),'onClick':()=>_0xafde83['startFollowing'](),'children':'Start\x20following'})]});}function Z(_0x432c8b){const _0x129330=_0x4fae1d,{coordinator:_0x2ad783}=_0x432c8b;return l[_0x129330(0x19d)](l[_0x129330(0x1ac)],{'children':[l['jsx'](_0x129330(0x203),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x129330(0x214)](f['Button'],{'variant':'default','onClick':()=>_0x2ad783[_0x129330(0x1ad)](),'children':'Stop\x20presenting'})]});}function J(){const _0x4b45e2=_0x4fae1d;return l[_0x4b45e2(0x214)](l[_0x4b45e2(0x1ac)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x4fae1d(0x17b)],z=(_0x2fa8ad,_0x263625,_0x521416,_0x37310c)=>{const _0x45b866=_0x4fae1d;for(var _0x22f7bc=_0x37310c>0x1?void 0x0:_0x37310c?K(_0x263625,_0x521416):_0x263625,_0x2ddbac=_0x2fa8ad[_0x45b866(0x170)]-0x1,_0x4b2cb5;_0x2ddbac>=0x0;_0x2ddbac--)(_0x4b2cb5=_0x2fa8ad[_0x2ddbac])&&(_0x22f7bc=_0x4b2cb5(_0x22f7bc)||_0x22f7bc);return _0x22f7bc;},L=(_0x25764e,_0x4f8e37)=>(_0x5bdeaf,_0x5221f4)=>_0x4f8e37(_0x5bdeaf,_0x5221f4,_0x25764e);exports[_0x4fae1d(0x1fd)]=class extends o[_0x4fae1d(0x202)]{constructor(_0x35ddb1,_0x4e1096){const _0x3d0ea3=_0x4fae1d;super(),this[_0x3d0ea3(0x1fc)]=_0x35ddb1,this[_0x3d0ea3(0x1de)]=_0x4e1096,this['_mountLiveShare']();}[_0x4fae1d(0x21d)](){const _0x28f761=_0x4fae1d;this[_0x28f761(0x1c7)](this[_0x28f761(0x1de)]['registerComponent'](p['BuiltInUIPart'][_0x28f761(0x209)],()=>p[_0x28f761(0x186)]($,this['_injector'])));}},exports['DesktopLiveShareController']=z([L(0x0,o['Inject'](o[_0x4fae1d(0x1c2)])),L(0x1,p[_0x4fae1d(0x196)])],exports[_0x4fae1d(0x1fd)]);const Q=_0x4fae1d(0x20f),w={};var X=Object[_0x4fae1d(0x17b)],ee=(_0x393d76,_0x1f90f2,_0x5de8f9,_0x2b6d22)=>{const _0x3a558d=_0x4fae1d;for(var _0x53825d=_0x2b6d22>0x1?void 0x0:_0x2b6d22?X(_0x1f90f2,_0x5de8f9):_0x1f90f2,_0x6a8a7d=_0x393d76[_0x3a558d(0x170)]-0x1,_0x423b0d;_0x6a8a7d>=0x0;_0x6a8a7d--)(_0x423b0d=_0x393d76[_0x6a8a7d])&&(_0x53825d=_0x423b0d(_0x53825d)||_0x53825d);return _0x53825d;},te=(_0x1a7c35,_0x1139e0)=>(_0x12839e,_0x2bbae2)=>_0x1139e0(_0x12839e,_0x2bbae2,_0x1a7c35);let m=class extends o['Disposable']{constructor(_0xae82f1){const _0x447c83=_0x4fae1d;super(),this['_liveShareService']=_0xae82f1,this[_0x447c83(0x1d0)]();}[_0x4fae1d(0x1d0)](){const _0x24a653=_0x4fae1d;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x24a653(0x177)]['id']]['forEach'](_0x58ef78=>{const _0x3685d7=_0x24a653;this[_0x3685d7(0x1c7)](this[_0x3685d7(0x1f7)][_0x3685d7(0x17e)](_0x58ef78));});}};m=ee([te(0x0,o[_0x4fae1d(0x18a)](E))],m);var ie=Object[_0x4fae1d(0x16f)],se=Object[_0x4fae1d(0x17b)],ne=(_0x1572a7,_0x1c6f69,_0x48cffc)=>_0x1c6f69 in _0x1572a7?ie(_0x1572a7,_0x1c6f69,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48cffc}):_0x1572a7[_0x1c6f69]=_0x48cffc,re=(_0x308dbc,_0x2e092f,_0x1cc72c,_0x15b725)=>{const _0x21b1a3=_0x4fae1d;for(var _0x29e0bb=_0x15b725>0x1?void 0x0:_0x15b725?se(_0x2e092f,_0x1cc72c):_0x2e092f,_0xbb9f10=_0x308dbc[_0x21b1a3(0x170)]-0x1,_0x1837fa;_0xbb9f10>=0x0;_0xbb9f10--)(_0x1837fa=_0x308dbc[_0xbb9f10])&&(_0x29e0bb=_0x1837fa(_0x29e0bb)||_0x29e0bb);return _0x29e0bb;},N=(_0x447597,_0x19827b)=>(_0x57233e,_0x31a157)=>_0x19827b(_0x57233e,_0x31a157,_0x447597),A=(_0x286c82,_0x1eeca2,_0x37ad67)=>ne(_0x286c82,typeof _0x1eeca2!=_0x4fae1d(0x1c1)?_0x1eeca2+'':_0x1eeca2,_0x37ad67);const oe=_0x4fae1d(0x1ee);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0xb9e9f8=w,_0x4f111b,_0x3ae5f2){const _0x40276d=_0x4fae1d;super(),this[_0x40276d(0x218)]=_0xb9e9f8,this[_0x40276d(0x1fc)]=_0x4f111b,this[_0x40276d(0x17f)]=_0x3ae5f2;const {..._0x455b11}=o[_0x40276d(0x1cb)]({},w,this[_0x40276d(0x218)]);this[_0x40276d(0x17f)]['setConfig'](Q,_0x455b11);}['onStarting'](){const _0x448e9a=_0x4fae1d;o[_0x448e9a(0x21e)](this['_injector'],o[_0x448e9a(0x191)]([[E],[exports['LiveShareController']],[m],[exports[_0x448e9a(0x1fd)]]],this[_0x448e9a(0x218)][_0x448e9a(0x21c)])),o[_0x448e9a(0x222)](this[_0x448e9a(0x1fc)],[[m]]);}[_0x4fae1d(0x1a6)](){const _0x22cb50=_0x4fae1d;o[_0x22cb50(0x222)](this[_0x22cb50(0x1fc)],[[exports[_0x22cb50(0x1fd)]]]);}},A(exports['UniverLiveSharePlugin'],_0x4fae1d(0x1f1),o['UniverInstanceType']['UNIVER_UNKNOWN']),A(exports[_0x4fae1d(0x20d)],_0x4fae1d(0x1b9),oe),exports['UniverLiveSharePlugin']=re([o['DependentOn'](b[_0x4fae1d(0x220)]),N(0x1,o['Inject'](o[_0x4fae1d(0x1c2)])),N(0x2,o[_0x4fae1d(0x1aa)])],exports[_0x4fae1d(0x20d)]),exports[_0x4fae1d(0x1cd)]=$,exports[_0x4fae1d(0x215)]=E,exports[_0x4fae1d(0x1e6)]=u;function _0x2244(){const _0x3aaee4=['_fetchOperations','getInitialStates','delete','RxDisposable','live-share-icon','_uiPartsService','CollaborationSessionService','_commandService','current','then','complete','clsx','next','LiveShareStatus','shouldShareOperation','_handleOffline','unsubscribe','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getConfig','_presenter','idle','UNIVER_LIVE_SHARE_PLUGIN','10226517QPQiov','displayName','type','params','useDependency','5415822xzFXuc','_collabSession','operations','_liveShareService','FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','0\x200\x2017\x2017','CollaborationEvent','_injector','DesktopLiveShareController','_startPresenting','SessionStatus','pipe','mask','Disposable','div','requireSession','univer-mb-3\x20univer-w-full\x20univer-text-sm','396692zOiHYR','_univerInstanceService','replace','HEADER_MENU','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','fill','mutations','UniverLiveSharePlugin','set','live-share.config','UNIVER_SHEET','text','NOT_FOLLOWING','dispose','jsx','LiveShareService','string','LIVESHARE_FETCH_OPERATIONS','_config','trim','CommandType','LiveShareIcon','override','_mountLiveShare','registerDependencies','forwardRef','UniverCollaborationClientPlugin','createInstance','touchDependencies','parseProtocolChangeset','executeCommand','dispose$','OPERATION','idSuffix','1em','tryStartPresenting','_reporters','34745zKwSdL','SAME_OPERATION_SHARE_INTERVAL','LIVESHARE_NEW_HOST','Start','PRESENTING','LiveShareCoordinator','useObservable','parse','children','996bMZtlD','OFFLINE','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','substring','following','subscribe','presenting','xlink:href','values','defineProperty','length','includes','attrs','from','add','evenodd','useRef','SetWorksheetActiveOperation','stringify','IDLE','9289656echoaw','getOwnPropertyDescriptor','memberID','toString','registerSharedOperation','_configService','data','_commandDisposable','_stopPresenting','_handleOperation','_startFollowing','svg','connectInjector','asObservable','status$','forEach','Inject','offline','get','_status','_handleOnline','createElement','_unitID','mergeOverrideWithDependencies','defIds','clear','_collabSessionService','http://www.w3.org/2000/svg','IUIPartsService','360015pUqlRw','LiveShareController','entries','LIVESHARE_OPERATION','NEW_CHANGESETS','8tKhLwg','jsxs','random','_entities','_beIdle','stopFollowing','_handleNewHost','getTypeOfUnitAdded$','getStatus','_status$','onRendered','path','UniverInstanceType','LIVESHARE_TERMINATE','IConfigService','toDisposable','Fragment','stopPresenting','_stopFollowing','getTypeOfUnitDisposed$','init','url(#$1','find','tag','BehaviorSubject','getValue','assign','Dropdown','send','pluginName','throttleTime','takeUntil','univerjs-icon\x20univerjs-icon-','IUniverInstanceService','getUnitId','You\x27re\x20following\x20the\x20presenter','_sharedOperations','symbol','Injector','sheet','button','5791212Qwsvti','univer-size-4','disposeWithMe','toStringTag','Button','map','merge','_startLiveShareCoordinator','LiveShare','ICommandService','registerInitialStateReporter','_init','getMemberID','Stop\x20following','_handleTerminate','getCurrentTypeOfUnit$','useState','presenter','colorChannel1','not-following'];_0x2244=function(){return _0x3aaee4;};return _0x2244();}
|
|
1
|
+
'use strict';const _0x122e74=_0x44f0;(function(_0x7ace5,_0x544a33){const _0x10507f=_0x44f0,_0x253df3=_0x7ace5();while(!![]){try{const _0x418cba=parseInt(_0x10507f(0x1ad))/0x1+-parseInt(_0x10507f(0x22e))/0x2+parseInt(_0x10507f(0x18b))/0x3*(parseInt(_0x10507f(0x21c))/0x4)+parseInt(_0x10507f(0x1d9))/0x5+parseInt(_0x10507f(0x1d1))/0x6*(-parseInt(_0x10507f(0x220))/0x7)+-parseInt(_0x10507f(0x1b6))/0x8+-parseInt(_0x10507f(0x1b1))/0x9*(parseInt(_0x10507f(0x1bb))/0xa);if(_0x418cba===_0x544a33)break;else _0x253df3['push'](_0x253df3['shift']());}catch(_0x4c8634){_0x253df3['push'](_0x253df3['shift']());}}}(_0x106e,0xbaa57));var T=Object[_0x122e74(0x231)],U=(_0x5c18df,_0xa66b31,_0x443d8b)=>_0xa66b31 in _0x5c18df?T(_0x5c18df,_0xa66b31,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x443d8b}):_0x5c18df[_0xa66b31]=_0x443d8b,_=(_0x527680,_0x37e46d,_0x3e5f7c)=>U(_0x527680,typeof _0x37e46d!=_0x122e74(0x193)?_0x37e46d+'':_0x37e46d,_0x3e5f7c);Object[_0x122e74(0x231)](exports,Symbol[_0x122e74(0x1eb)],{'value':_0x122e74(0x1d0)});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:_0x5c9efb,..._0x1a14ba}){const _0x4c818=_0x122e74,{icon:_0x5b444c,id:_0x2ee21a,className:_0x1de546,extend:_0x405e43,..._0x11bedd}=_0x1a14ba,_0x2ba731=('univerjs-icon\x20univerjs-icon-'+_0x2ee21a+'\x20'+(_0x1de546||''))[_0x4c818(0x1a5)](),_0x57669f=v[_0x4c818(0x19d)]('_'+H());return j(_0x5b444c,''+_0x2ee21a,{'defIds':_0x5b444c[_0x4c818(0x204)],'idSuffix':_0x57669f[_0x4c818(0x226)]},{'ref':_0x5c9efb,'className':_0x2ba731,..._0x11bedd},_0x405e43);}function j(_0x2adf4d,_0x441ec0,_0xe723c0,_0x357a19,_0x306645){const _0x23a015=_0x122e74;return v[_0x23a015(0x20b)](_0x2adf4d[_0x23a015(0x1e7)],{'key':_0x441ec0,...y(_0x2adf4d,_0xe723c0,_0x306645),..._0x357a19},(F(_0x2adf4d,_0xe723c0)[_0x23a015(0x233)]||[])['map']((_0x59e953,_0x4d4c0d)=>j(_0x59e953,_0x441ec0+'-'+_0x2adf4d[_0x23a015(0x1e7)]+'-'+_0x4d4c0d,_0xe723c0,void 0x0,_0x306645)));}function y(_0x3efc15,_0x74d141,_0x454468){const _0x3813a3=_0x122e74,_0x208f4f={..._0x3efc15[_0x3813a3(0x235)]};_0x454468!=null&&_0x454468[_0x3813a3(0x16e)]&&_0x208f4f['fill']===_0x3813a3(0x16e)&&(_0x208f4f[_0x3813a3(0x198)]=_0x454468[_0x3813a3(0x16e)]),_0x3efc15[_0x3813a3(0x1e7)]===_0x3813a3(0x1b5)&&_0x208f4f['id']&&(_0x208f4f['id']=_0x208f4f['id']+_0x74d141['idSuffix']),Object[_0x3813a3(0x1e3)](_0x208f4f)[_0x3813a3(0x1d3)](([_0x2a395b,_0x435670])=>{const _0x44d61e=_0x3813a3;_0x2a395b===_0x44d61e(0x1b5)&&typeof _0x435670==_0x44d61e(0x213)&&(_0x208f4f[_0x2a395b]=_0x435670[_0x44d61e(0x187)](/url\(#(.*)\)/,_0x44d61e(0x1a8)+_0x74d141[_0x44d61e(0x23f)]+')'));});const {defIds:_0x241c48}=_0x74d141;return!_0x241c48||_0x241c48['length']===0x0||(_0x3efc15[_0x3813a3(0x1e7)]===_0x3813a3(0x1cb)&&_0x208f4f[_0x3813a3(0x20d)]&&(_0x208f4f[_0x3813a3(0x20d)]=_0x208f4f[_0x3813a3(0x20d)]+_0x74d141['idSuffix']),Object[_0x3813a3(0x1e3)](_0x208f4f)[_0x3813a3(0x1d3)](([_0x5d0bbb,_0x24c561])=>{const _0x42b3e3=_0x3813a3;typeof _0x24c561==_0x42b3e3(0x213)&&(_0x208f4f[_0x5d0bbb]=_0x24c561[_0x42b3e3(0x187)](/url\(#(.*)\)/,_0x42b3e3(0x1a8)+_0x74d141['idSuffix']+')'));})),_0x208f4f;}function F(_0xc14d,_0xd3257c){const _0x48ad45=_0x122e74;var _0x21ebdc;const {defIds:_0x4d8c1b}=_0xd3257c;return!_0x4d8c1b||_0x4d8c1b[_0x48ad45(0x1c1)]===0x0?_0xc14d:_0xc14d[_0x48ad45(0x1e7)]===_0x48ad45(0x182)&&((_0x21ebdc=_0xc14d['children'])!=null&&_0x21ebdc[_0x48ad45(0x1c1)])?{..._0xc14d,'children':_0xc14d[_0x48ad45(0x233)][_0x48ad45(0x1ac)](_0xd92622=>typeof _0xd92622[_0x48ad45(0x235)]['id']==_0x48ad45(0x213)&&_0x4d8c1b&&_0x4d8c1b[_0x48ad45(0x19e)](_0xd92622[_0x48ad45(0x235)]['id'])?{..._0xd92622,'attrs':{..._0xd92622['attrs'],'id':_0xd92622[_0x48ad45(0x235)]['id']+_0xd3257c['idSuffix']}}:_0xd92622)}:_0xc14d;}function H(){const _0x4b880a=_0x122e74;return Math['random']()[_0x4b880a(0x199)](0x24)[_0x4b880a(0x23e)](0x2,0x8);}x[_0x122e74(0x1cc)]=_0x122e74(0x1b2);const V={'tag':_0x122e74(0x1e2),'attrs':{'xmlns':_0x122e74(0x1e9),'fill':_0x122e74(0x222),'viewBox':_0x122e74(0x1be),'width':_0x122e74(0x242),'height':_0x122e74(0x242)},'children':[{'tag':_0x122e74(0x21d),'attrs':{'fill':'currentColor','d':_0x122e74(0x1ce)}},{'tag':'path','attrs':{'fill':_0x122e74(0x17f),'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':_0x122e74(0x1cf),'clipRule':'evenodd'}}]},R=v[_0x122e74(0x1fe)](function(_0x24a256,_0x2cdf1e){const _0x2f8c99=_0x122e74;return v['createElement'](x,Object[_0x2f8c99(0x1b7)]({},_0x24a256,{'id':'live-share-icon','ref':_0x2cdf1e,'icon':V}));});R['displayName']=_0x122e74(0x1e6);class E extends o['Disposable']{constructor(){const _0x1d1105=_0x122e74;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x1d1105(0x17d),new Set());}['registerSharedOperation'](_0x26c029){const _0xa41287=_0x122e74;return this[_0xa41287(0x216)]['add'](_0x26c029),o[_0xa41287(0x18e)](()=>this[_0xa41287(0x216)][_0xa41287(0x1f3)](_0x26c029));}[_0x122e74(0x1fd)](_0x5401b7){const _0x31e29c=_0x122e74;return this[_0x31e29c(0x17d)][_0x31e29c(0x240)](_0x5401b7),o[_0x31e29c(0x18e)](()=>this[_0x31e29c(0x17d)][_0x31e29c(0x1f3)](_0x5401b7));}[_0x122e74(0x1ea)](_0x27cdde){return this['_sharedOperations']['has'](_0x27cdde);}[_0x122e74(0x18a)](_0x4fa4a4){const _0x12a179=_0x122e74;return Array['from'](this['_reporters'])[_0x12a179(0x1ac)](_0x3318a0=>_0x3318a0(_0x4fa4a4));}}var M=Object[_0x122e74(0x1df)],P=(_0x25be18,_0x5f28a9,_0x4e7836,_0x38339d)=>{const _0x3ca69e=_0x122e74;for(var _0x2957b3=_0x38339d>0x1?void 0x0:_0x38339d?M(_0x5f28a9,_0x4e7836):_0x5f28a9,_0x1fa5ca=_0x25be18[_0x3ca69e(0x1c1)]-0x1,_0x3bb9d5;_0x1fa5ca>=0x0;_0x1fa5ca--)(_0x3bb9d5=_0x25be18[_0x1fa5ca])&&(_0x2957b3=_0x3bb9d5(_0x2957b3)||_0x2957b3);return _0x2957b3;},S=(_0x2df500,_0x1fc335)=>(_0x5e0d73,_0xdf4ddf)=>_0x1fc335(_0x5e0d73,_0xdf4ddf,_0x2df500);exports['LiveShareController']=class extends o[_0x122e74(0x19f)]{constructor(_0xd23a27,_0x1babee,_0x858d06){const _0x519aa1=_0x122e74;super(),_(this,_0x519aa1(0x17b),new Map()),(this['_univerInstanceService']=_0xd23a27,this['_injector']=_0x1babee,this[_0x519aa1(0x1ab)]=_0x858d06,this[_0x519aa1(0x1dd)]());}async[_0x122e74(0x245)](_0xa0dfac){const _0x265e9a=_0x122e74;return this[_0x265e9a(0x17b)][_0x265e9a(0x20e)](_0xa0dfac)||await this[_0x265e9a(0x17e)](_0xa0dfac),this[_0x265e9a(0x17b)][_0x265e9a(0x179)](_0xa0dfac);}[_0x122e74(0x21a)](_0x180bf4){const _0xea758d=_0x122e74;var _0x29692f;return(_0x29692f=this[_0xea758d(0x17b)][_0xea758d(0x179)](_0x180bf4))!=null?_0x29692f:null;}[_0x122e74(0x1dd)](){const _0x1ee498=_0x122e74;this[_0x1ee498(0x1bd)][_0x1ee498(0x170)](o[_0x1ee498(0x195)][_0x1ee498(0x230)])[_0x1ee498(0x1fa)](I[_0x1ee498(0x21f)](this['dispose$']))[_0x1ee498(0x223)](async _0x324128=>{const _0x1a6c49=_0x1ee498,_0x4ff8e9=_0x324128[_0x1a6c49(0x1e0)]();this['_entities']['has'](_0x4ff8e9)||this[_0x1a6c49(0x17e)](_0x4ff8e9);}),this[_0x1ee498(0x1bd)]['getTypeOfUnitDisposed$'](o[_0x1ee498(0x195)][_0x1ee498(0x230)])[_0x1ee498(0x1fa)](I[_0x1ee498(0x21f)](this[_0x1ee498(0x1da)]))[_0x1ee498(0x223)](_0x2a39e4=>{const _0x176427=_0x1ee498,_0xdd54a1=_0x2a39e4[_0x176427(0x1e0)](),_0x4018c3=this['_entities']['get'](_0xdd54a1);_0x4018c3==null||_0x4018c3[_0x176427(0x1bf)]();});}async[_0x122e74(0x17e)](_0x3cec23){const _0x92a80e=_0x122e74,_0x593c13=await this[_0x92a80e(0x1ab)]['requireSession'](_0x3cec23),_0x498e44=this[_0x92a80e(0x1c2)][_0x92a80e(0x194)](exports[_0x92a80e(0x1c3)],_0x3cec23,_0x593c13);return _0x498e44['init'](),this[_0x92a80e(0x17b)][_0x92a80e(0x1ca)](_0x3cec23,_0x498e44),_0x498e44;}},exports[_0x122e74(0x1fc)]=P([S(0x0,o[_0x122e74(0x212)]),S(0x1,o['Inject'](o[_0x122e74(0x225)])),S(0x2,o['Inject'](b[_0x122e74(0x1a7)]))],exports[_0x122e74(0x1fc)]);var u=(_0xdec4f7=>(_0xdec4f7[_0x122e74(0x196)]=_0x122e74(0x206),_0xdec4f7[_0x122e74(0x224)]='idle',_0xdec4f7[_0x122e74(0x22a)]=_0x122e74(0x1f5),_0xdec4f7[_0x122e74(0x237)]=_0x122e74(0x1af),_0xdec4f7[_0x122e74(0x178)]=_0x122e74(0x192),_0xdec4f7))(u||{});const k=_0x122e74(0x20a),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x122e74(0x19f)]{constructor(_0x4df742,_0x158e05,_0x3a6141,_0x311d96,_0x31393b){const _0x591ed6=_0x122e74;super(),_(this,_0x591ed6(0x23c),new O['BehaviorSubject']('idle')),_(this,'status$',this[_0x591ed6(0x23c)][_0x591ed6(0x1ed)]()),_(this,_0x591ed6(0x1dd),!0x1),_(this,'_commandDisposable',null),_(this,'_presenter',null),(this[_0x591ed6(0x20f)]=_0x4df742,this[_0x591ed6(0x239)]=_0x158e05,this[_0x591ed6(0x1e5)]=_0x3a6141,this['_liveShareService']=_0x311d96,this[_0x591ed6(0x176)]=_0x31393b);}get[_0x122e74(0x183)](){const _0x2c4b58=_0x122e74;return this[_0x2c4b58(0x23c)][_0x2c4b58(0x1e8)]();}[_0x122e74(0x1bf)](){const _0x243b0f=_0x122e74;var _0x1fe336;(_0x1fe336=this[_0x243b0f(0x1dc)])==null||_0x1fe336['dispose'](),this[_0x243b0f(0x23c)][_0x243b0f(0x1e1)](_0x243b0f(0x207)),this[_0x243b0f(0x23c)][_0x243b0f(0x228)]();}[_0x122e74(0x1c4)](){return this['_status'];}['init'](){const _0x93d228=_0x122e74;this[_0x93d228(0x1dd)]||(this[_0x93d228(0x1dd)]=!0x0,this[_0x93d228(0x239)][_0x93d228(0x188)][_0x93d228(0x1fa)](I[_0x93d228(0x21f)](this['dispose$']))[_0x93d228(0x223)](_0x581132=>{const _0xd67479=_0x93d228;switch(_0x581132){case b[_0xd67479(0x22f)][_0xd67479(0x196)]:this[_0xd67479(0x1bc)]();break;case b[_0xd67479(0x22f)][_0xd67479(0x1ee)]:this[_0xd67479(0x19b)]();break;}}),this[_0x93d228(0x239)]['event$']['pipe'](I[_0x93d228(0x21f)](this['dispose$']))[_0x93d228(0x223)](_0x159e7c=>{const _0x1dc04e=_0x93d228,{eventID:_0x24c95b}=_0x159e7c;switch(_0x24c95b){case d['CollaborationEvent'][_0x1dc04e(0x203)]:this[_0x1dc04e(0x1d6)](_0x159e7c);break;case d[_0x1dc04e(0x1a3)][_0x1dc04e(0x23b)]:this[_0x1dc04e(0x177)](_0x159e7c);break;case d['CollaborationEvent'][_0x1dc04e(0x1d4)]:this[_0x1dc04e(0x1ba)]();break;case d[_0x1dc04e(0x1a3)][_0x1dc04e(0x200)]:this[_0x1dc04e(0x19a)](_0x159e7c);break;}}));}[_0x122e74(0x208)](){const _0x277a3e=_0x122e74;this[_0x277a3e(0x239)][_0x277a3e(0x191)]({'eventID':d['CollaborationEvent'][_0x277a3e(0x1ff)],'data':{'unitID':this[_0x277a3e(0x20f)],'userID':this[_0x277a3e(0x239)]['getMemberID']()}},this[_0x277a3e(0x20f)]);}[_0x122e74(0x214)](){const _0x190870=_0x122e74;this[_0x190870(0x183)]==='presenting'&&(this[_0x190870(0x23c)][_0x190870(0x1e1)](_0x190870(0x207)),this[_0x190870(0x239)][_0x190870(0x191)]({'eventID':d[_0x190870(0x1a3)][_0x190870(0x1d4)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){const _0x2ea448=_0x122e74;this[_0x2ea448(0x183)]===_0x2ea448(0x1af)&&(this['_status$'][_0x2ea448(0x1e1)]('following'),this[_0x2ea448(0x185)]());}[_0x122e74(0x1c0)](){const _0x488982=_0x122e74;this[_0x488982(0x183)]==='following'&&this[_0x488982(0x1aa)]();}[_0x122e74(0x1d6)](_0x28c0ca){const _0x35a04f=_0x122e74,{presenter:_0x1ff63c}=_0x28c0ca[_0x35a04f(0x189)],_0x3b8249=this[_0x35a04f(0x239)][_0x35a04f(0x211)]();this[_0x35a04f(0x171)]=_0x1ff63c,_0x1ff63c===_0x3b8249?(this[_0x35a04f(0x1aa)](),this[_0x35a04f(0x1a4)]()):this[_0x35a04f(0x183)]!==_0x35a04f(0x1af)&&(this[_0x35a04f(0x1e4)](),this[_0x35a04f(0x185)]());}[_0x122e74(0x1ec)](){const _0x4c76f4=_0x122e74,_0x18c2ff={'eventID':d[_0x4c76f4(0x1a3)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x4c76f4(0x239)][_0x4c76f4(0x191)](_0x18c2ff,this['_unitID']);}[_0x122e74(0x1ba)](){const _0x3d5139=_0x122e74;this['_presenter']=null,this[_0x3d5139(0x183)]!==_0x3d5139(0x192)&&this[_0x3d5139(0x1a0)]();}[_0x122e74(0x19a)](_0x4a9c1f){const _0x5e95ca=_0x122e74;if(this[_0x5e95ca(0x183)]===_0x5e95ca(0x1f5)&&this[_0x5e95ca(0x171)]===_0x4a9c1f[_0x5e95ca(0x189)]['memberID']){const _0x26be62=d[_0x5e95ca(0x241)](_0x4a9c1f[_0x5e95ca(0x189)])[_0x5e95ca(0x238)]['reverse']()[_0x5e95ca(0x17c)](_0x49348b=>_0x49348b['id']===C[_0x5e95ca(0x246)]['id']);if(_0x26be62){const _0x593e90=_0x26be62['params'][_0x5e95ca(0x1f6)],_0x294cdf=_0x26be62[_0x5e95ca(0x23a)][_0x5e95ca(0x1d2)]['id'];setTimeout(()=>{const _0x1297ea=_0x5e95ca;this[_0x1297ea(0x176)]['executeCommand'](C[_0x1297ea(0x180)]['id'],{'unitId':_0x593e90,'subUnitId':_0x294cdf},{'fromCollab':!0x0});});}}}[_0x122e74(0x1a4)](){const _0x17eb8e=_0x122e74;this[_0x17eb8e(0x23c)][_0x17eb8e(0x1e1)](_0x17eb8e(0x192));const _0x1d319b=new Map(),_0x488d70=this[_0x17eb8e(0x1dc)]=new o[(_0x17eb8e(0x217))]();_0x488d70['add'](o['toDisposable'](()=>{const _0x298eb8=_0x17eb8e;_0x1d319b[_0x298eb8(0x1d3)](_0x45cedb=>_0x45cedb[_0x298eb8(0x228)]()),_0x1d319b[_0x298eb8(0x186)]();})),_0x488d70[_0x17eb8e(0x240)](this['_commandService'][_0x17eb8e(0x236)](_0x208991=>{const _0x2b577c=_0x17eb8e;var _0x147a06;if(_0x208991[_0x2b577c(0x16c)]!==o['CommandType'][_0x2b577c(0x205)]||!this[_0x2b577c(0x1b4)][_0x2b577c(0x1ea)](_0x208991['id']))return;const {id:_0x2adf96}=_0x208991;let _0x16d372;_0x1d319b['has'](_0x2adf96)?_0x16d372=_0x1d319b[_0x2b577c(0x179)](_0x2adf96):(_0x16d372=new O[(_0x2b577c(0x1b0))](),_0x1d319b[_0x2b577c(0x1ca)](_0x2adf96,_0x16d372),_0x16d372['pipe'](I[_0x2b577c(0x1b9)]((_0x147a06=this[_0x2b577c(0x1e5)][_0x2b577c(0x215)](k))!=null?_0x147a06:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2b577c(0x223)](_0x1ea83e=>{const _0x57170e=_0x2b577c;this[_0x57170e(0x239)]['send']({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x57170e(0x20f)],'operations':{[_0x1ea83e['id']]:{'id':_0x1ea83e['id'],'params':JSON['stringify'](_0x1ea83e['params'])}}}},this[_0x57170e(0x20f)]);})),_0x16d372[_0x2b577c(0x1e1)](_0x208991);})),this['_liveShareService'][_0x17eb8e(0x18a)](this[_0x17eb8e(0x20f)])[_0x17eb8e(0x1d3)](_0x351d72=>this['_collabSession'][_0x17eb8e(0x191)]({'eventID':d[_0x17eb8e(0x1a3)][_0x17eb8e(0x23b)],'data':{'unitID':this['_unitID'],'operations':{[_0x351d72['id']]:{'id':_0x351d72['id'],'params':JSON[_0x17eb8e(0x18c)](_0x351d72[_0x17eb8e(0x23a)])}}}},this[_0x17eb8e(0x20f)]));}['_stopPresenting'](){const _0x16d78a=_0x122e74;var _0x2298fe;this['_status$']['next'](_0x16d78a(0x207)),(_0x2298fe=this['_commandDisposable'])==null||_0x2298fe[_0x16d78a(0x1bf)](),this['_commandDisposable']=null;}[_0x122e74(0x185)](){const _0x57cb=_0x122e74;var _0x42f537;(_0x42f537=this[_0x57cb(0x1dc)])==null||_0x42f537['dispose'](),this['_status$'][_0x57cb(0x1e1)](_0x57cb(0x1f5));}[_0x122e74(0x1a0)](){const _0xd73568=_0x122e74;var _0x12833a;this[_0xd73568(0x23c)][_0xd73568(0x1e1)]('idle'),(_0x12833a=this[_0xd73568(0x1dc)])==null||_0x12833a[_0xd73568(0x1bf)](),this[_0xd73568(0x1dc)]=null;}[_0x122e74(0x1aa)](){const _0x15d8a1=_0x122e74;var _0x4333a6;this['_status$'][_0x15d8a1(0x1e1)](_0x15d8a1(0x1af)),(_0x4333a6=this[_0x15d8a1(0x1dc)])==null||_0x4333a6[_0x15d8a1(0x1bf)]();}[_0x122e74(0x177)](_0x3cd43d){const _0x28674e=_0x122e74;if([_0x28674e(0x192),_0x28674e(0x1af),_0x28674e(0x206)]['includes'](this[_0x28674e(0x183)])||!_0x3cd43d[_0x28674e(0x189)]['presenter']||_0x3cd43d[_0x28674e(0x189)][_0x28674e(0x18f)]===this[_0x28674e(0x239)]['getMemberID']())return;this[_0x28674e(0x183)]===_0x28674e(0x207)&&this[_0x28674e(0x185)]();const _0x4a7b80=_0x3cd43d[_0x28674e(0x189)][_0x28674e(0x1f4)];Object[_0x28674e(0x1a1)](_0x4a7b80)[_0x28674e(0x1d3)](_0x4b42b9=>{const _0x46baf1=_0x28674e;this[_0x46baf1(0x176)][_0x46baf1(0x1f2)](_0x4b42b9['id'],_0x4b42b9[_0x46baf1(0x23a)]?JSON[_0x46baf1(0x243)](_0x4b42b9[_0x46baf1(0x23a)]):null,{'fromCollab':!0x0});});}[_0x122e74(0x1bc)](){const _0x53ed8b=_0x122e74;var _0x1d58cd;this['_status$']['next'](_0x53ed8b(0x206)),(_0x1d58cd=this[_0x53ed8b(0x1dc)])==null||_0x1d58cd[_0x53ed8b(0x1bf)]();}[_0x122e74(0x19b)](){const _0x25e4e9=_0x122e74;this[_0x25e4e9(0x23c)][_0x25e4e9(0x1e1)](_0x25e4e9(0x207)),this[_0x25e4e9(0x1ec)]();}},exports[_0x122e74(0x1c3)]=P([S(0x2,o['IConfigService']),S(0x3,o[_0x122e74(0x1c6)](E)),S(0x4,o[_0x122e74(0x1cd)])],exports['LiveShareCoordinator']);function $(){const _0x2677df=_0x122e74,_0x13a57d=p[_0x2677df(0x1d5)](exports['LiveShareController']),_0x278865=p[_0x2677df(0x1d5)](o[_0x2677df(0x212)]),_0x3bc93e=p[_0x2677df(0x20c)](()=>_0x278865[_0x2677df(0x1de)](o[_0x2677df(0x195)][_0x2677df(0x230)]),void 0x0,!0x1,[]),[_0x2b5af9,_0x10f314]=v[_0x2677df(0x22d)](null),[_0x51787a,_0x32744c]=v['useState'](u['IDLE']),_0x27f137=v[_0x2677df(0x19d)](null);return v[_0x2677df(0x190)](()=>(_0x3bc93e&&_0x13a57d['getLiveShareCoordinator'](_0x3bc93e[_0x2677df(0x1e0)]())['then'](_0x116896=>{const _0x13cbb5=_0x2677df;_0x10f314(_0x116896),_0x27f137[_0x13cbb5(0x226)]=_0x116896[_0x13cbb5(0x197)]['subscribe'](_0x1d13c3=>{_0x32744c(_0x1d13c3);});}),()=>{const _0x15af7d=_0x2677df;var _0x41add9;(_0x41add9=_0x27f137[_0x15af7d(0x226)])==null||_0x41add9[_0x15af7d(0x172)](),_0x27f137[_0x15af7d(0x226)]=null;}),[_0x3bc93e,_0x13a57d]),_0x2b5af9?l[_0x2677df(0x22b)](f[_0x2677df(0x16d)],{'align':_0x2677df(0x1a6),'disabled':_0x51787a===u[_0x2677df(0x196)],'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[_0x2677df(0x22b)](W,{'status':_0x51787a,'coordinator':_0x2b5af9}),'children':l['jsx']('button',{'className':f[_0x2677df(0x218)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x51787a===u[_0x2677df(0x196)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51787a!==u[_0x2677df(0x196)]}),'type':_0x2677df(0x227),'children':l[_0x2677df(0x22b)](R,{'className':_0x2677df(0x22c)})})}):null;}function W(_0x48132c){const _0x40eca6=_0x122e74,{status:_0x5e018a,coordinator:_0x2a1b9a}=_0x48132c;switch(_0x5e018a){case u[_0x40eca6(0x224)]:return l[_0x40eca6(0x22b)](G,{'coordinator':_0x2a1b9a});case u[_0x40eca6(0x22a)]:return l['jsx'](B,{'coordinator':_0x2a1b9a});case u[_0x40eca6(0x237)]:return l[_0x40eca6(0x22b)](Y,{'coordinator':_0x2a1b9a});case u[_0x40eca6(0x196)]:return l['jsx'](J,{});case u[_0x40eca6(0x178)]:return l[_0x40eca6(0x22b)](Z,{'coordinator':_0x2a1b9a});default:return null;}}function G(_0x4df2f1){const _0x17fe08=_0x122e74,{coordinator:_0x35d671}=_0x4df2f1;return l['jsxs'](l[_0x17fe08(0x232)],{'children':[l[_0x17fe08(0x22b)](_0x17fe08(0x1c5),{'className':_0x17fe08(0x221),'children':_0x17fe08(0x1c9)}),l[_0x17fe08(0x22b)](f[_0x17fe08(0x1a2)],{'onClick':()=>_0x35d671[_0x17fe08(0x208)](),'children':_0x17fe08(0x1f1)})]});}function B(_0x431a45){const _0x213ce0=_0x122e74,{coordinator:_0x6cb72d}=_0x431a45;return l[_0x213ce0(0x1fb)](l['Fragment'],{'children':[l[_0x213ce0(0x22b)](_0x213ce0(0x1c5),{'className':_0x213ce0(0x221),'children':_0x213ce0(0x1db)}),l[_0x213ce0(0x22b)](f['Button'],{'onClick':()=>_0x6cb72d[_0x213ce0(0x1c0)](),'children':_0x213ce0(0x19c)})]});}function Y(_0x26d9bb){const _0x5759ae=_0x122e74,{coordinator:_0x195fde}=_0x26d9bb;return l['jsxs'](l[_0x5759ae(0x232)],{'children':[l[_0x5759ae(0x22b)](_0x5759ae(0x1c5),{'className':_0x5759ae(0x221),'children':_0x5759ae(0x1f9)}),l[_0x5759ae(0x22b)](f[_0x5759ae(0x1a2)],{'variant':_0x5759ae(0x1d7),'onClick':()=>_0x195fde[_0x5759ae(0x1b8)](),'children':_0x5759ae(0x202)})]});}function Z(_0x19e073){const _0x223dce=_0x122e74,{coordinator:_0x3c65e0}=_0x19e073;return l[_0x223dce(0x1fb)](l[_0x223dce(0x232)],{'children':[l['jsx'](_0x223dce(0x1c5),{'className':_0x223dce(0x221),'children':_0x223dce(0x23d)}),l['jsx'](f[_0x223dce(0x1a2)],{'variant':_0x223dce(0x1c7),'onClick':()=>_0x3c65e0[_0x223dce(0x214)](),'children':_0x223dce(0x1a9)})]});}function J(){const _0x4ee7cc=_0x122e74;return l[_0x4ee7cc(0x22b)](l[_0x4ee7cc(0x232)],{'children':_0x4ee7cc(0x201)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x58c34c,_0x38a7fb,_0x14bf46,_0xd6b8e9)=>{const _0x332141=_0x122e74;for(var _0x5ed52a=_0xd6b8e9>0x1?void 0x0:_0xd6b8e9?K(_0x38a7fb,_0x14bf46):_0x38a7fb,_0x247afd=_0x58c34c[_0x332141(0x1c1)]-0x1,_0x12e00a;_0x247afd>=0x0;_0x247afd--)(_0x12e00a=_0x58c34c[_0x247afd])&&(_0x5ed52a=_0x12e00a(_0x5ed52a)||_0x5ed52a);return _0x5ed52a;},L=(_0x5ee9c1,_0x46ef69)=>(_0x55fe48,_0x3eabce)=>_0x46ef69(_0x55fe48,_0x3eabce,_0x5ee9c1);exports[_0x122e74(0x1c8)]=class extends o['Disposable']{constructor(_0x523004,_0x8b1247){const _0x328550=_0x122e74;super(),this[_0x328550(0x1c2)]=_0x523004,this[_0x328550(0x184)]=_0x8b1247,this[_0x328550(0x16f)]();}[_0x122e74(0x16f)](){const _0xcc8a5=_0x122e74;this['disposeWithMe'](this[_0xcc8a5(0x184)][_0xcc8a5(0x173)](p[_0xcc8a5(0x17a)]['HEADER_MENU'],()=>p[_0xcc8a5(0x16b)]($,this[_0xcc8a5(0x1c2)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x122e74(0x1c6)](o[_0x122e74(0x225)])),L(0x1,p[_0x122e74(0x234)])],exports[_0x122e74(0x1c8)]);const Q=_0x122e74(0x1ef),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x2d6b3f,_0x5bfbbc,_0x27ba95,_0x497141)=>{for(var _0x584dd4=_0x497141>0x1?void 0x0:_0x497141?X(_0x5bfbbc,_0x27ba95):_0x5bfbbc,_0x389158=_0x2d6b3f['length']-0x1,_0x309302;_0x389158>=0x0;_0x389158--)(_0x309302=_0x2d6b3f[_0x389158])&&(_0x584dd4=_0x309302(_0x584dd4)||_0x584dd4);return _0x584dd4;},te=(_0x16ebf3,_0xf40aee)=>(_0x153444,_0x9c616d)=>_0xf40aee(_0x153444,_0x9c616d,_0x16ebf3);let m=class extends o['Disposable']{constructor(_0x4d313f){const _0x241dc8=_0x122e74;super(),this[_0x241dc8(0x1b4)]=_0x4d313f,this[_0x241dc8(0x1dd)]();}[_0x122e74(0x1dd)](){const _0xf0b3d5=_0x122e74;[D[_0xf0b3d5(0x174)]['id'],D[_0xf0b3d5(0x1d8)]['id'],C[_0xf0b3d5(0x180)]['id']][_0xf0b3d5(0x1d3)](_0x2d5859=>{const _0x3e60f2=_0xf0b3d5;this['disposeWithMe'](this[_0x3e60f2(0x1b4)]['registerSharedOperation'](_0x2d5859));});}};m=ee([te(0x0,o[_0x122e74(0x1c6)](E))],m);function _0x44f0(_0x537fa0,_0x266023){const _0x106e4e=_0x106e();return _0x44f0=function(_0x44f027,_0x9c703f){_0x44f027=_0x44f027-0x16b;let _0x56fca9=_0x106e4e[_0x44f027];return _0x56fca9;},_0x44f0(_0x537fa0,_0x266023);}var ie=Object[_0x122e74(0x231)],se=Object[_0x122e74(0x1df)],ne=(_0x575ffd,_0x2ac820,_0x3cfab6)=>_0x2ac820 in _0x575ffd?ie(_0x575ffd,_0x2ac820,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3cfab6}):_0x575ffd[_0x2ac820]=_0x3cfab6,re=(_0xf39fb6,_0x4e38e6,_0x358bf0,_0x4d8b6c)=>{for(var _0x2c2981=_0x4d8b6c>0x1?void 0x0:_0x4d8b6c?se(_0x4e38e6,_0x358bf0):_0x4e38e6,_0x23b680=_0xf39fb6['length']-0x1,_0x1b99dc;_0x23b680>=0x0;_0x23b680--)(_0x1b99dc=_0xf39fb6[_0x23b680])&&(_0x2c2981=_0x1b99dc(_0x2c2981)||_0x2c2981);return _0x2c2981;},N=(_0x17ed1b,_0x4902d3)=>(_0x1a0d9a,_0x195b4b)=>_0x4902d3(_0x1a0d9a,_0x195b4b,_0x17ed1b),A=(_0x41157a,_0x59cef7,_0x39d7a2)=>ne(_0x41157a,typeof _0x59cef7!=_0x122e74(0x193)?_0x59cef7+'':_0x59cef7,_0x39d7a2);const oe=_0x122e74(0x1ae);exports[_0x122e74(0x181)]=class extends o[_0x122e74(0x244)]{constructor(_0x4603b1=w,_0x54a972,_0x206b58){const _0x4b7fe4=_0x122e74;super(),this[_0x4b7fe4(0x1b3)]=_0x4603b1,this[_0x4b7fe4(0x1c2)]=_0x54a972,this['_configService']=_0x206b58;const {..._0x2cf174}=o[_0x4b7fe4(0x219)]({},w,this['_config']);this[_0x4b7fe4(0x1e5)]['setConfig'](Q,_0x2cf174);}[_0x122e74(0x1f8)](){const _0x3c38f5=_0x122e74;o['registerDependencies'](this['_injector'],o[_0x3c38f5(0x21b)]([[E],[exports[_0x3c38f5(0x1fc)]],[m],[exports[_0x3c38f5(0x1c8)]]],this[_0x3c38f5(0x1b3)][_0x3c38f5(0x18d)])),o[_0x3c38f5(0x21e)](this[_0x3c38f5(0x1c2)],[[m]]);}[_0x122e74(0x1f7)](){const _0xbf5f65=_0x122e74;o[_0xbf5f65(0x21e)](this['_injector'],[[exports[_0xbf5f65(0x1c8)]]]);}},A(exports['UniverLiveSharePlugin'],_0x122e74(0x16c),o[_0x122e74(0x195)][_0x122e74(0x209)]),A(exports['UniverLiveSharePlugin'],'pluginName',oe),exports[_0x122e74(0x181)]=re([o['DependentOn'](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x122e74(0x1c6)](o[_0x122e74(0x225)])),N(0x2,o[_0x122e74(0x210)])],exports[_0x122e74(0x181)]),exports[_0x122e74(0x229)]=$,exports[_0x122e74(0x1f0)]=E,exports[_0x122e74(0x175)]=u;function _0x106e(){const _0x5cf31a=['next','svg','entries','_stopPresenting','_configService','LiveShareIcon','tag','getValue','http://www.w3.org/2000/svg','shouldShareOperation','toStringTag','_fetchOperations','asObservable','ONLINE','live-share.config','LiveShareService','Start','executeCommand','delete','operations','following','unitId','onRendered','onStarting','You\x27re\x20not\x20following\x20the\x20presenter','pipe','jsxs','LiveShareController','registerInitialStateReporter','forwardRef','LIVESHARE_REQUEST_HOST','NEW_CHANGESETS','You\x27are\x20offline.','Start\x20following','LIVESHARE_NEW_HOST','defIds','OPERATION','offline','idle','tryStartPresenting','UNIVER_UNKNOWN','SAME_OPERATION_SHARE_INTERVAL','createElement','useObservable','xlink:href','has','_unitID','IConfigService','getMemberID','IUniverInstanceService','string','stopPresenting','getConfig','_sharedOperations','DisposableCollection','clsx','merge','getLiveShareCoordinatorSync','mergeOverrideWithDependencies','8zJbddI','path','touchDependencies','takeUntil','2247385OFPrWp','univer-mb-3\x20univer-w-full\x20univer-text-sm','none','subscribe','IDLE','Injector','current','button','complete','LiveShare','FOLLOWING','jsx','univer-size-4','useState','1323888zUOBRf','SessionStatus','UNIVER_SHEET','defineProperty','Fragment','children','IUIPartsService','attrs','onCommandExecuted','NOT_FOLLOWING','mutations','_collabSession','params','LIVESHARE_OPERATION','_status$','You\x27re\x20presenting\x20the\x20document','substring','idSuffix','add','parseProtocolChangeset','1em','parse','Plugin','getLiveShareCoordinator','InsertSheetMutation','connectInjector','type','Dropdown','colorChannel1','_mountLiveShare','getTypeOfUnitAdded$','_presenter','unsubscribe','registerComponent','SetZoomRatioOperation','LiveShareStatus','_commandService','_handleOperation','PRESENTING','get','BuiltInUIPart','_entities','find','_reporters','_startLiveShareCoordinator','currentColor','SetWorksheetActiveOperation','UniverLiveSharePlugin','defs','_status','_uiPartsService','_startFollowing','clear','replace','sessionStatus$','data','getInitialStates','715881bttYMW','stringify','override','toDisposable','presenter','useEffect','send','presenting','symbol','createInstance','UniverInstanceType','OFFLINE','status$','fill','toString','_handleNewChangeSets','_handleOnline','Stop\x20following','useRef','includes','RxDisposable','_beIdle','values','Button','CollaborationEvent','_startPresenting','trim','end','CollaborationSessionService','url(#$1','Stop\x20presenting','_stopFollowing','_collabSessionService','map','1284212GbMUaG','UNIVER_LIVE_SHARE_PLUGIN','not-following','Subject','36XPjWhN','UniverIcon','_config','_liveShareService','mask','3916312GREjIa','assign','startFollowing','throttleTime','_handleTerminate','1368130rQCVsc','_handleOffline','_univerInstanceService','0\x200\x2017\x2017','dispose','stopFollowing','length','_injector','LiveShareCoordinator','getStatus','div','Inject','default','DesktopLiveShareController','Present\x20this\x20document','set','use','displayName','ICommandService','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','evenodd','Module','6aQFngM','sheet','forEach','LIVESHARE_TERMINATE','useDependency','_handleNewHost','text','SetScrollOperation','5114135hJRFED','dispose$','You\x27re\x20following\x20the\x20presenter','_commandDisposable','_init','getCurrentTypeOfUnit$','getOwnPropertyDescriptor','getUnitId'];_0x106e=function(){return _0x5cf31a;};return _0x106e();}
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1c178b=_0x1be7;(function(_0x9a7de9,_0x4f5431){const _0x5cebfc=_0x1be7,_0x213270=_0x9a7de9();while(!![]){try{const _0x120d18=-parseInt(_0x5cebfc(0x1e6))/0x1*(-parseInt(_0x5cebfc(0x1d5))/0x2)+-parseInt(_0x5cebfc(0x1ea))/0x3+-parseInt(_0x5cebfc(0x1eb))/0x4*(parseInt(_0x5cebfc(0x1e1))/0x5)+parseInt(_0x5cebfc(0x1d3))/0x6*(-parseInt(_0x5cebfc(0x1db))/0x7)+-parseInt(_0x5cebfc(0x1cc))/0x8+-parseInt(_0x5cebfc(0x1ed))/0x9*(parseInt(_0x5cebfc(0x1e2))/0xa)+parseInt(_0x5cebfc(0x1d0))/0xb*(parseInt(_0x5cebfc(0x1e3))/0xc);if(_0x120d18===_0x4f5431)break;else _0x213270['push'](_0x213270['shift']());}catch(_0x2a778e){_0x213270['push'](_0x213270['shift']());}}}(_0x1cf1,0xde180));import{LiveShareController as _0x47a018,LiveShareStatus as _0x3693bf}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x50ef0c}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x1b610e}from'@univerjs/sheets';import{SetScrollOperation as _0x4ca1cb}from'@univerjs/sheets-ui';import{FRange as _0x1e9e1c}from'@univerjs/sheets/facade';import{FUniver as _0x319b88,FEnum as _0x22993b}from'@univerjs/core/facade';class I extends _0x1e9e1c{[_0x1c178b(0x1e7)](_0x5be704,_0x56810c,_0x114525,_0x435153,_0x5d3c60){const _0x4df822=_0x1c178b,_0x3e69ea=_0x5be704['get'](_0x47a018),_0x1dc3ef=_0x5be704['get'](_0x50ef0c),_0x4873a3=_0x56810c[_0x4df822(0x1d1)](),_0xa450e7=_0x56810c[_0x4df822(0x1ec)](),_0x1e2f52=_0x3e69ea[_0x4df822(0x1dd)](_0x4873a3);(_0x1e2f52==null?void 0x0:_0x1e2f52['getStatus']())!==_0x3693bf[_0x4df822(0x1cd)]||(_0x114525[_0x4df822(0x1ce)]()!==_0xa450e7[_0x4df822(0x1ce)]()&&this['_commandService']['executeCommand'](_0x1b610e['id'],{'unitId':_0x4873a3,'subUnitId':_0x114525[_0x4df822(0x1ce)]()}),!_0x1dc3ef['getRenderById'](_0x4873a3))||_0x5d3c60[_0x4df822(0x1d6)](_0x4ca1cb['id'],{'unitId':_0x56810c['getUnitId'](),'sheetId':_0x114525[_0x4df822(0x1ce)](),'sheetViewStartRow':_0x435153[_0x4df822(0x1de)],'sheetViewStartColumn':_0x435153[_0x4df822(0x1e4)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x1cf1(){const _0xa81050=['extend','1405JTWjUt','2690pVPEOS','1080fLfizS','startColumn','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1CaRsJT','_initialize','getActiveWorkbook','getLiveShareStatus','3252183tydlra','19036FhaerX','getActiveSheet','18234shIGFX','No\x20active\x20workbook\x20found.','11731800GfIFWO','PRESENTING','getSheetId','get','524271tJqBkl','getUnitId','getId','633054YGyMDb','startPresenting','2950102wenZUq','syncExecuteCommand','_injector','LiveShareStatusEnum','stopFollowing','stopPresenting','28fXtxMX','startFollowing','getLiveShareCoordinatorSync','startRow','getStatus'];_0x1cf1=function(){return _0xa81050;};return _0x1cf1();}_0x1e9e1c[_0x1c178b(0x1e0)](I);class m extends _0x319b88{[_0x1c178b(0x1e9)](){const _0x4fea01=_0x1c178b;var _0x49b776,_0x390357;const _0x262cc4=this[_0x4fea01(0x1d7)]['get'](_0x47a018),_0x3021f1=(_0x49b776=this['getActiveWorkbook']())==null?void 0x0:_0x49b776['getId']();if(!_0x3021f1)throw new Error(_0x4fea01(0x1cb));const _0xbeba85=_0x262cc4[_0x4fea01(0x1dd)](_0x3021f1);return(_0x390357=_0xbeba85==null?void 0x0:_0xbeba85[_0x4fea01(0x1df)]())!=null?_0x390357:_0x3693bf['IDLE'];}[_0x1c178b(0x1dc)](){const _0x35039a=_0x1c178b;var _0x17a814;const _0xa441a0=this[_0x35039a(0x1d7)][_0x35039a(0x1cf)](_0x47a018),_0x3aca87=(_0x17a814=this[_0x35039a(0x1e8)]())==null?void 0x0:_0x17a814[_0x35039a(0x1d2)]();if(!_0x3aca87)throw new Error(_0x35039a(0x1cb));const _0x489594=_0xa441a0[_0x35039a(0x1dd)](_0x3aca87);if(!_0x489594)throw new Error(_0x35039a(0x1e5));_0x489594['startFollowing']();}[_0x1c178b(0x1d9)](){const _0x52142b=_0x1c178b;var _0x4dd9d8;const _0x33876b=this['_injector'][_0x52142b(0x1cf)](_0x47a018),_0x463b4c=(_0x4dd9d8=this[_0x52142b(0x1e8)]())==null?void 0x0:_0x4dd9d8[_0x52142b(0x1d2)]();if(!_0x463b4c)throw new Error(_0x52142b(0x1cb));const _0x122f86=_0x33876b[_0x52142b(0x1dd)](_0x463b4c);if(!_0x122f86)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x122f86[_0x52142b(0x1d9)]();}[_0x1c178b(0x1d4)](){const _0x48c5b6=_0x1c178b;var _0x3cd489;const _0x4fcd3f=this[_0x48c5b6(0x1d7)][_0x48c5b6(0x1cf)](_0x47a018),_0x242740=(_0x3cd489=this[_0x48c5b6(0x1e8)]())==null?void 0x0:_0x3cd489['getId']();if(!_0x242740)throw new Error('No\x20active\x20workbook\x20found.');const _0x26f04d=_0x4fcd3f[_0x48c5b6(0x1dd)](_0x242740);if(!_0x26f04d)throw new Error(_0x48c5b6(0x1e5));_0x26f04d['tryStartPresenting']();}[_0x1c178b(0x1da)](){const _0x16e598=_0x1c178b;var _0x3ab207;const _0x24a490=this[_0x16e598(0x1d7)][_0x16e598(0x1cf)](_0x47a018),_0xbfe21f=(_0x3ab207=this[_0x16e598(0x1e8)]())==null?void 0x0:_0x3ab207[_0x16e598(0x1d2)]();if(!_0xbfe21f)throw new Error(_0x16e598(0x1cb));const _0x1d4eed=_0x24a490[_0x16e598(0x1dd)](_0xbfe21f);if(!_0x1d4eed)throw new Error(_0x16e598(0x1e5));_0x1d4eed[_0x16e598(0x1da)]();}}_0x319b88[_0x1c178b(0x1e0)](m);class C extends _0x22993b{get[_0x1c178b(0x1d8)](){return _0x3693bf;}}function _0x1be7(_0x448558,_0x4a7bcb){const _0x1cf1f4=_0x1cf1();return _0x1be7=function(_0x1be7cf,_0x1b6765){_0x1be7cf=_0x1be7cf-0x1cb;let _0x56d3c4=_0x1cf1f4[_0x1be7cf];return _0x56d3c4;},_0x1be7(_0x448558,_0x4a7bcb);}_0x22993b[_0x1c178b(0x1e0)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x373afb=_0xfdad;(function(_0x331313,_0x105631){const _0xbae83=_0xfdad,_0x5c5324=_0x331313();while(!![]){try{const _0x4abc6b=parseInt(_0xbae83(0x9a))/0x1+-parseInt(_0xbae83(0xa1))/0x2*(-parseInt(_0xbae83(0xb8))/0x3)+-parseInt(_0xbae83(0xea))/0x4*(parseInt(_0xbae83(0x11f))/0x5)+parseInt(_0xbae83(0x12c))/0x6*(-parseInt(_0xbae83(0x12d))/0x7)+parseInt(_0xbae83(0xec))/0x8+parseInt(_0xbae83(0xf8))/0x9*(-parseInt(_0xbae83(0xf7))/0xa)+-parseInt(_0xbae83(0xbe))/0xb*(parseInt(_0xbae83(0x11c))/0xc);if(_0x4abc6b===_0x105631)break;else _0x5c5324['push'](_0x5c5324['shift']());}catch(_0x779218){_0x5c5324['push'](_0x5c5324['shift']());}}}(_0x2c6a,0xad834));var J=Object[_0x373afb(0xca)],K=(_0x23cba8,_0x2013d3,_0x42f183)=>_0x2013d3 in _0x23cba8?J(_0x23cba8,_0x2013d3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42f183}):_0x23cba8[_0x2013d3]=_0x42f183,u=(_0x1860e1,_0x27c00e,_0x5cf248)=>K(_0x1860e1,typeof _0x27c00e!=_0x373afb(0x119)?_0x27c00e+'':_0x27c00e,_0x5cf248);import{Disposable as _0x2fe247,toDisposable as _0x1ac75e,IUniverInstanceService as _0x34e9fa,Inject as _0x44b869,Injector as _0x9ae918,IConfigService as _0x4f1855,ICommandService as _0x4c5df3,RxDisposable as _0x372ae2,UniverInstanceType as _0x3279a2,DisposableCollection as _0x4e5770,CommandType as _0x3d9b5a,DependentOn as _0xacdf87,Plugin as _0x31b36f,merge as _0x1066e5,registerDependencies as _0x1e94e5,mergeOverrideWithDependencies as _0xef3678,touchDependencies as _0x495760}from'@univerjs/core';import{useDependency as _0x228f76,useObservable as _0x4b62b2,IUIPartsService as _0x19674a,BuiltInUIPart as _0x50235b,connectInjector as _0xd9524e}from'@univerjs/ui';import{jsx as _0x38bc83,jsxs as _0x5c6850,Fragment as _0x3d4178}from'react/jsx-runtime';import{Dropdown as _0x425cde,clsx as _0x1f887d,Button as _0x4c4b88}from'@univerjs/design';import{useRef as _0x4fde8f,createElement as _0x564b18,forwardRef as _0x47812d,useState as _0x348257,useEffect as _0x56a4e1}from'react';function _0xfdad(_0x1fb984,_0xc98ef4){const _0x2c6a67=_0x2c6a();return _0xfdad=function(_0xfdada9,_0x3439d2){_0xfdada9=_0xfdada9-0x8b;let _0x50407c=_0x2c6a67[_0xfdada9];return _0x50407c;},_0xfdad(_0x1fb984,_0xc98ef4);}import{CollaborationEvent as _0x8c2ef9,parseProtocolChangeset as _0x1b1fac}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x386d31,SessionStatus as _0x2b61a0,UniverCollaborationClientPlugin as _0x2b2af9}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3e4c4f,SetWorksheetActiveOperation as _0x573678}from'@univerjs/sheets';import{BehaviorSubject as _0x59b090,Subject as _0x241eea}from'rxjs';import{takeUntil as _0x1ece35,throttleTime as _0x8122a8}from'rxjs/operators';import{SetZoomRatioOperation as _0x134bb0,SetScrollOperation as _0x355a6f}from'@univerjs/sheets-ui';function k({ref:_0x36d23e,..._0x24625c}){const _0x3df57a=_0x373afb,{icon:_0x5b67e1,id:_0x72f218,className:_0x338231,extend:_0x4f1020,..._0x1a6576}=_0x24625c,_0xa1e11c=(_0x3df57a(0x121)+_0x72f218+'\x20'+(_0x338231||''))[_0x3df57a(0xc1)](),_0x35a027=_0x4fde8f('_'+Oe());return G(_0x5b67e1,''+_0x72f218,{'defIds':_0x5b67e1[_0x3df57a(0x124)],'idSuffix':_0x35a027[_0x3df57a(0xef)]},{'ref':_0x36d23e,'className':_0xa1e11c,..._0x1a6576},_0x4f1020);}function G(_0x5245ff,_0x468b5f,_0x1bce61,_0x50066b,_0x8dbfeb){const _0x48cfa7=_0x373afb;return _0x564b18(_0x5245ff[_0x48cfa7(0xfa)],{'key':_0x468b5f,...be(_0x5245ff,_0x1bce61,_0x8dbfeb),..._0x50066b},(Ee(_0x5245ff,_0x1bce61)[_0x48cfa7(0xad)]||[])[_0x48cfa7(0x114)]((_0x2ff82e,_0x408c5f)=>G(_0x2ff82e,_0x468b5f+'-'+_0x5245ff['tag']+'-'+_0x408c5f,_0x1bce61,void 0x0,_0x8dbfeb)));}function be(_0x4dc6cc,_0x473a0d,_0x2d75c5){const _0x1dec6b=_0x373afb,_0x1c7563={..._0x4dc6cc['attrs']};_0x2d75c5!=null&&_0x2d75c5[_0x1dec6b(0x95)]&&_0x1c7563[_0x1dec6b(0x118)]===_0x1dec6b(0x95)&&(_0x1c7563['fill']=_0x2d75c5[_0x1dec6b(0x95)]),_0x4dc6cc[_0x1dec6b(0xfa)]===_0x1dec6b(0xe3)&&_0x1c7563['id']&&(_0x1c7563['id']=_0x1c7563['id']+_0x473a0d[_0x1dec6b(0x113)]),Object[_0x1dec6b(0xf9)](_0x1c7563)[_0x1dec6b(0xa2)](([_0x312f9a,_0x461259])=>{const _0x4d45d2=_0x1dec6b;_0x312f9a===_0x4d45d2(0xe3)&&typeof _0x461259=='string'&&(_0x1c7563[_0x312f9a]=_0x461259['replace'](/url\(#(.*)\)/,_0x4d45d2(0x9e)+_0x473a0d['idSuffix']+')'));});const {defIds:_0x2994f7}=_0x473a0d;return!_0x2994f7||_0x2994f7['length']===0x0||(_0x4dc6cc[_0x1dec6b(0xfa)]==='use'&&_0x1c7563[_0x1dec6b(0xf2)]&&(_0x1c7563[_0x1dec6b(0xf2)]=_0x1c7563[_0x1dec6b(0xf2)]+_0x473a0d[_0x1dec6b(0x113)]),Object[_0x1dec6b(0xf9)](_0x1c7563)[_0x1dec6b(0xa2)](([_0x4fcb71,_0x63504b])=>{const _0x17ed05=_0x1dec6b;typeof _0x63504b==_0x17ed05(0xb9)&&(_0x1c7563[_0x4fcb71]=_0x63504b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x473a0d[_0x17ed05(0x113)]+')'));})),_0x1c7563;}function Ee(_0x2b60a4,_0x3af416){const _0x356020=_0x373afb;var _0x5baccd;const {defIds:_0x41fa5c}=_0x3af416;return!_0x41fa5c||_0x41fa5c[_0x356020(0xa7)]===0x0?_0x2b60a4:_0x2b60a4[_0x356020(0xfa)]===_0x356020(0xc3)&&((_0x5baccd=_0x2b60a4[_0x356020(0xad)])!=null&&_0x5baccd[_0x356020(0xa7)])?{..._0x2b60a4,'children':_0x2b60a4[_0x356020(0xad)][_0x356020(0x114)](_0x24d51b=>typeof _0x24d51b['attrs']['id']==_0x356020(0xb9)&&_0x41fa5c&&_0x41fa5c[_0x356020(0x111)](_0x24d51b[_0x356020(0x100)]['id'])?{..._0x24d51b,'attrs':{..._0x24d51b['attrs'],'id':_0x24d51b[_0x356020(0x100)]['id']+_0x3af416[_0x356020(0x113)]}}:_0x24d51b)}:_0x2b60a4;}function Oe(){const _0x30e88e=_0x373afb;return Math[_0x30e88e(0xd0)]()['toString'](0x24)[_0x30e88e(0x9f)](0x2,0x8);}k[_0x373afb(0xd4)]='UniverIcon';const we={'tag':_0x373afb(0xb3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x373afb(0x10f),'viewBox':_0x373afb(0xaa),'width':_0x373afb(0xe4),'height':_0x373afb(0xe4)},'children':[{'tag':_0x373afb(0x115),'attrs':{'fill':_0x373afb(0x102),'d':_0x373afb(0xab)}},{'tag':_0x373afb(0x115),'attrs':{'fill':_0x373afb(0x102),'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':_0x373afb(0xa0),'clipRule':_0x373afb(0xa0)}}]},W=_0x47812d(function(_0x5325a4,_0x42d077){const _0x16bc43=_0x373afb;return _0x564b18(k,Object[_0x16bc43(0x12e)]({},_0x5325a4,{'id':_0x16bc43(0x8d),'ref':_0x42d077,'icon':we}));});W[_0x373afb(0xd4)]='LiveShareIcon';class L extends _0x2fe247{constructor(){const _0x131bcf=_0x373afb;super(...arguments),u(this,_0x131bcf(0x128),new Set()),u(this,_0x131bcf(0x12a),new Set());}['registerSharedOperation'](_0x1ca56e){const _0xd1e286=_0x373afb;return this[_0xd1e286(0x128)][_0xd1e286(0x11e)](_0x1ca56e),_0x1ac75e(()=>this[_0xd1e286(0x128)]['delete'](_0x1ca56e));}[_0x373afb(0xdb)](_0x2817e1){const _0xfe4ad1=_0x373afb;return this[_0xfe4ad1(0x12a)]['add'](_0x2817e1),_0x1ac75e(()=>this[_0xfe4ad1(0x12a)][_0xfe4ad1(0xfe)](_0x2817e1));}[_0x373afb(0x99)](_0x2dff99){const _0x5864da=_0x373afb;return this[_0x5864da(0x128)][_0x5864da(0xc4)](_0x2dff99);}[_0x373afb(0xac)](_0x2bfd8c){const _0x135b08=_0x373afb;return Array['from'](this[_0x135b08(0x12a)])[_0x135b08(0x114)](_0x15189e=>_0x15189e(_0x2bfd8c));}}var Ne=Object[_0x373afb(0xf5)],Y=(_0x4957b1,_0x28b4b8,_0x50ed55,_0x4253b4)=>{const _0x4518ef=_0x373afb;for(var _0x276a73=_0x4253b4>0x1?void 0x0:_0x4253b4?Ne(_0x28b4b8,_0x50ed55):_0x28b4b8,_0x12c417=_0x4957b1[_0x4518ef(0xa7)]-0x1,_0x1f0ef5;_0x12c417>=0x0;_0x12c417--)(_0x1f0ef5=_0x4957b1[_0x12c417])&&(_0x276a73=_0x1f0ef5(_0x276a73)||_0x276a73);return _0x276a73;},_=(_0x4ac365,_0x3f5a96)=>(_0x559595,_0x36d3c0)=>_0x3f5a96(_0x559595,_0x36d3c0,_0x4ac365);let S=class extends _0x372ae2{constructor(_0xf02443,_0x498446,_0x10a0d8){const _0x1c1a31=_0x373afb;super(),u(this,_0x1c1a31(0xc7),new Map()),(this[_0x1c1a31(0xcc)]=_0xf02443,this['_injector']=_0x498446,this['_collabSessionService']=_0x10a0d8,this[_0x1c1a31(0xf4)]());}async[_0x373afb(0xcb)](_0x1120f6){const _0x593acc=_0x373afb;return this['_entities']['has'](_0x1120f6)||await this[_0x593acc(0x8b)](_0x1120f6),this['_entities'][_0x593acc(0x110)](_0x1120f6);}['getLiveShareCoordinatorSync'](_0x35ca1c){const _0x4901f1=_0x373afb;var _0x41c180;return(_0x41c180=this[_0x4901f1(0xc7)]['get'](_0x35ca1c))!=null?_0x41c180:null;}['_init'](){const _0x436b2e=_0x373afb;this[_0x436b2e(0xcc)][_0x436b2e(0xc8)](_0x3279a2['UNIVER_SHEET'])[_0x436b2e(0x96)](_0x1ece35(this[_0x436b2e(0xc2)]))[_0x436b2e(0xb1)](async _0x1092c6=>{const _0x404ecf=_0x436b2e,_0x520e30=_0x1092c6[_0x404ecf(0xa4)]();this[_0x404ecf(0xc7)][_0x404ecf(0xc4)](_0x520e30)||this['_startLiveShareCoordinator'](_0x520e30);}),this[_0x436b2e(0xcc)][_0x436b2e(0x10d)](_0x3279a2['UNIVER_SHEET'])[_0x436b2e(0x96)](_0x1ece35(this[_0x436b2e(0xc2)]))['subscribe'](_0x442fc3=>{const _0x182aee=_0x436b2e,_0xb90867=_0x442fc3['getUnitId'](),_0x178032=this[_0x182aee(0xc7)][_0x182aee(0x110)](_0xb90867);_0x178032==null||_0x178032[_0x182aee(0xd7)]();});}async['_startLiveShareCoordinator'](_0x5444cb){const _0x404059=_0x373afb,_0x450720=await this['_collabSessionService'][_0x404059(0x92)](_0x5444cb),_0x46ae15=this['_injector'][_0x404059(0xeb)](N,_0x5444cb,_0x450720);return _0x46ae15[_0x404059(0x123)](),this['_entities'][_0x404059(0x116)](_0x5444cb,_0x46ae15),_0x46ae15;}};S=Y([_(0x0,_0x34e9fa),_(0x1,_0x44b869(_0x9ae918)),_(0x2,_0x44b869(_0x386d31))],S);var c=(_0x30a0bd=>(_0x30a0bd[_0x373afb(0x132)]='offline',_0x30a0bd['IDLE']='idle',_0x30a0bd[_0x373afb(0xbf)]=_0x373afb(0x10a),_0x30a0bd['NOT_FOLLOWING']=_0x373afb(0xf0),_0x30a0bd[_0x373afb(0x126)]=_0x373afb(0x12b),_0x30a0bd))(c||{});const Ce=_0x373afb(0xd9),De=0xc8;let N=class extends _0x372ae2{constructor(_0x1e9468,_0xec6728,_0x255ffa,_0x389a45,_0x13be00){const _0x14e226=_0x373afb;super(),u(this,'_status$',new _0x59b090('idle')),u(this,'status$',this[_0x14e226(0x134)][_0x14e226(0x130)]()),u(this,_0x14e226(0xf4),!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this['_unitID']=_0x1e9468,this[_0x14e226(0x107)]=_0xec6728,this[_0x14e226(0x10c)]=_0x255ffa,this[_0x14e226(0xbd)]=_0x389a45,this[_0x14e226(0xa3)]=_0x13be00);}get[_0x373afb(0xdc)](){const _0x5dfdf9=_0x373afb;return this[_0x5dfdf9(0x134)][_0x5dfdf9(0xff)]();}[_0x373afb(0xd7)](){const _0x146ec8=_0x373afb;var _0x722907;(_0x722907=this[_0x146ec8(0xd3)])==null||_0x722907[_0x146ec8(0xd7)](),this[_0x146ec8(0x134)]['next'](_0x146ec8(0x97)),this['_status$'][_0x146ec8(0x11a)]();}['getStatus'](){return this['_status'];}[_0x373afb(0x123)](){const _0x347c15=_0x373afb;this[_0x347c15(0xf4)]||(this[_0x347c15(0xf4)]=!0x0,this[_0x347c15(0x107)][_0x347c15(0x125)]['pipe'](_0x1ece35(this[_0x347c15(0xc2)]))[_0x347c15(0xb1)](_0x531712=>{const _0x18bdb4=_0x347c15;switch(_0x531712){case _0x2b61a0[_0x18bdb4(0x132)]:this[_0x18bdb4(0xf1)]();break;case _0x2b61a0[_0x18bdb4(0xee)]:this[_0x18bdb4(0xc6)]();break;}}),this[_0x347c15(0x107)][_0x347c15(0xe5)][_0x347c15(0x96)](_0x1ece35(this[_0x347c15(0xc2)]))[_0x347c15(0xb1)](_0x731256=>{const _0x59555a=_0x347c15,{eventID:_0x32068e}=_0x731256;switch(_0x32068e){case _0x8c2ef9['LIVESHARE_NEW_HOST']:this[_0x59555a(0x11b)](_0x731256);break;case _0x8c2ef9[_0x59555a(0xb4)]:this[_0x59555a(0xbc)](_0x731256);break;case _0x8c2ef9['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x8c2ef9[_0x59555a(0xdd)]:this[_0x59555a(0xcf)](_0x731256);break;}}));}['tryStartPresenting'](){const _0xf4b852=_0x373afb;this['_collabSession']['send']({'eventID':_0x8c2ef9[_0xf4b852(0xdf)],'data':{'unitID':this[_0xf4b852(0xc9)],'userID':this[_0xf4b852(0x107)][_0xf4b852(0xfc)]()}},this[_0xf4b852(0xc9)]);}[_0x373afb(0xfb)](){const _0x2f74fe=_0x373afb;this[_0x2f74fe(0xdc)]===_0x2f74fe(0x12b)&&(this[_0x2f74fe(0x134)][_0x2f74fe(0xce)](_0x2f74fe(0x97)),this[_0x2f74fe(0x107)][_0x2f74fe(0xcd)]({'eventID':_0x8c2ef9[_0x2f74fe(0xbb)],'data':{'unitID':this[_0x2f74fe(0xc9)]}},this[_0x2f74fe(0xc9)]));}[_0x373afb(0x103)](){const _0x1f0519=_0x373afb;this[_0x1f0519(0xdc)]===_0x1f0519(0xf0)&&(this[_0x1f0519(0x134)][_0x1f0519(0xce)]('following'),this[_0x1f0519(0x9c)]());}[_0x373afb(0x9d)](){const _0x26310d=_0x373afb;this[_0x26310d(0xdc)]===_0x26310d(0x10a)&&this['_stopFollowing']();}['_handleNewHost'](_0x194eaa){const _0x3c21c9=_0x373afb,{presenter:_0x1b032c}=_0x194eaa['data'],_0x90204e=this['_collabSession'][_0x3c21c9(0xfc)]();this[_0x3c21c9(0xd6)]=_0x1b032c,_0x1b032c===_0x90204e?(this[_0x3c21c9(0xae)](),this['_startPresenting']()):this[_0x3c21c9(0xdc)]!==_0x3c21c9(0xf0)&&(this[_0x3c21c9(0xf6)](),this[_0x3c21c9(0x9c)]());}[_0x373afb(0xa6)](){const _0x27a39b=_0x373afb,_0x5b7651={'eventID':_0x8c2ef9['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x27a39b(0xcd)](_0x5b7651,this[_0x27a39b(0xc9)]);}[_0x373afb(0x108)](){const _0x17b0d2=_0x373afb;this[_0x17b0d2(0xd6)]=null,this[_0x17b0d2(0xdc)]!==_0x17b0d2(0x12b)&&this[_0x17b0d2(0xa5)]();}[_0x373afb(0xcf)](_0x49fa0b){const _0x14c015=_0x373afb;if(this[_0x14c015(0xdc)]===_0x14c015(0x10a)&&this[_0x14c015(0xd6)]===_0x49fa0b['data'][_0x14c015(0xde)]){const _0x573164=_0x1b1fac(_0x49fa0b['data'])[_0x14c015(0x94)][_0x14c015(0xe7)]()[_0x14c015(0x9b)](_0x48f604=>_0x48f604['id']===_0x3e4c4f['id']);if(_0x573164){const _0x4240c3=_0x573164[_0x14c015(0x8f)][_0x14c015(0xd2)],_0x42bc0c=_0x573164[_0x14c015(0x8f)][_0x14c015(0x8e)]['id'];setTimeout(()=>{const _0x200fd7=_0x14c015;this[_0x200fd7(0xa3)][_0x200fd7(0x120)](_0x573678['id'],{'unitId':_0x4240c3,'subUnitId':_0x42bc0c},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x599a5d=_0x373afb;this[_0x599a5d(0x134)][_0x599a5d(0xce)](_0x599a5d(0x12b));const _0x32ccb5=new Map(),_0x1b07e1=this['_commandDisposable']=new _0x4e5770();_0x1b07e1[_0x599a5d(0x11e)](_0x1ac75e(()=>{const _0x4a2901=_0x599a5d;_0x32ccb5['forEach'](_0x5b73b2=>_0x5b73b2[_0x4a2901(0x11a)]()),_0x32ccb5[_0x4a2901(0xba)]();})),_0x1b07e1[_0x599a5d(0x11e)](this[_0x599a5d(0xa3)][_0x599a5d(0x117)](_0x172814=>{const _0x4c9d51=_0x599a5d;var _0x2efe0a;if(_0x172814[_0x4c9d51(0x133)]!==_0x3d9b5a[_0x4c9d51(0xc5)]||!this[_0x4c9d51(0xbd)]['shouldShareOperation'](_0x172814['id']))return;const {id:_0xdc67f0}=_0x172814;let _0x15672e;_0x32ccb5[_0x4c9d51(0xc4)](_0xdc67f0)?_0x15672e=_0x32ccb5[_0x4c9d51(0x110)](_0xdc67f0):(_0x15672e=new _0x241eea(),_0x32ccb5[_0x4c9d51(0x116)](_0xdc67f0,_0x15672e),_0x15672e[_0x4c9d51(0x96)](_0x8122a8((_0x2efe0a=this[_0x4c9d51(0x10c)]['getConfig'](Ce))!=null?_0x2efe0a:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4c9d51(0xb1)](_0x290e91=>{const _0x39c90c=_0x4c9d51;this['_collabSession'][_0x39c90c(0xcd)]({'eventID':_0x8c2ef9[_0x39c90c(0xb4)],'data':{'unitID':this[_0x39c90c(0xc9)],'operations':{[_0x290e91['id']]:{'id':_0x290e91['id'],'params':JSON['stringify'](_0x290e91['params'])}}}},this[_0x39c90c(0xc9)]);})),_0x15672e[_0x4c9d51(0xce)](_0x172814);})),this[_0x599a5d(0xbd)][_0x599a5d(0xac)](this[_0x599a5d(0xc9)])[_0x599a5d(0xa2)](_0x169550=>this[_0x599a5d(0x107)][_0x599a5d(0xcd)]({'eventID':_0x8c2ef9[_0x599a5d(0xb4)],'data':{'unitID':this[_0x599a5d(0xc9)],'operations':{[_0x169550['id']]:{'id':_0x169550['id'],'params':JSON[_0x599a5d(0x12f)](_0x169550['params'])}}}},this[_0x599a5d(0xc9)]));}[_0x373afb(0xf6)](){const _0x2fb652=_0x373afb;var _0x56f75a;this[_0x2fb652(0x134)]['next'](_0x2fb652(0x97)),(_0x56f75a=this[_0x2fb652(0xd3)])==null||_0x56f75a['dispose'](),this[_0x2fb652(0xd3)]=null;}[_0x373afb(0x9c)](){const _0x60c111=_0x373afb;var _0x293ce4;(_0x293ce4=this[_0x60c111(0xd3)])==null||_0x293ce4[_0x60c111(0xd7)](),this[_0x60c111(0x134)][_0x60c111(0xce)](_0x60c111(0x10a));}[_0x373afb(0xa5)](){const _0x36d7de=_0x373afb;var _0x19b8cd;this[_0x36d7de(0x134)][_0x36d7de(0xce)](_0x36d7de(0x97)),(_0x19b8cd=this[_0x36d7de(0xd3)])==null||_0x19b8cd[_0x36d7de(0xd7)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x5efc2b=_0x373afb;var _0x1d6a63;this[_0x5efc2b(0x134)][_0x5efc2b(0xce)](_0x5efc2b(0xf0)),(_0x1d6a63=this[_0x5efc2b(0xd3)])==null||_0x1d6a63[_0x5efc2b(0xd7)]();}[_0x373afb(0xbc)](_0xfcce72){const _0x3d3b04=_0x373afb;if([_0x3d3b04(0x12b),_0x3d3b04(0xf0),_0x3d3b04(0xb0)]['includes'](this[_0x3d3b04(0xdc)])||!_0xfcce72[_0x3d3b04(0xfd)][_0x3d3b04(0xa8)]||_0xfcce72[_0x3d3b04(0xfd)][_0x3d3b04(0xa8)]===this[_0x3d3b04(0x107)][_0x3d3b04(0xfc)]())return;this[_0x3d3b04(0xdc)]===_0x3d3b04(0x97)&&this[_0x3d3b04(0x9c)]();const _0x2e7ccd=_0xfcce72['data'][_0x3d3b04(0x109)];Object[_0x3d3b04(0x101)](_0x2e7ccd)[_0x3d3b04(0xa2)](_0x3c0e26=>{const _0x206e60=_0x3d3b04;this['_commandService'][_0x206e60(0x120)](_0x3c0e26['id'],_0x3c0e26['params']?JSON[_0x206e60(0x10b)](_0x3c0e26[_0x206e60(0x8f)]):null,{'fromCollab':!0x0});});}[_0x373afb(0xf1)](){const _0x5981ca=_0x373afb;var _0x195dfc;this[_0x5981ca(0x134)][_0x5981ca(0xce)](_0x5981ca(0xb0)),(_0x195dfc=this['_commandDisposable'])==null||_0x195dfc[_0x5981ca(0xd7)]();}['_handleOnline'](){const _0x2eebe4=_0x373afb;this[_0x2eebe4(0x134)][_0x2eebe4(0xce)](_0x2eebe4(0x97)),this['_fetchOperations']();}};N=Y([_(0x2,_0x4f1855),_(0x3,_0x44b869(L)),_(0x4,_0x4c5df3)],N);function Le(){const _0x790222=_0x373afb,_0x1bbd41=_0x228f76(S),_0x24afe7=_0x228f76(_0x34e9fa),_0x156f85=_0x4b62b2(()=>_0x24afe7[_0x790222(0xda)](_0x3279a2['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x2b6b96,_0x5b2543]=_0x348257(null),[_0x243175,_0x1fda9d]=_0x348257(c[_0x790222(0x91)]),_0x11b665=_0x4fde8f(null);return _0x56a4e1(()=>(_0x156f85&&_0x1bbd41[_0x790222(0xcb)](_0x156f85[_0x790222(0xa4)]())['then'](_0x53eb7f=>{const _0x32d716=_0x790222;_0x5b2543(_0x53eb7f),_0x11b665[_0x32d716(0xef)]=_0x53eb7f[_0x32d716(0xd1)][_0x32d716(0xb1)](_0x16c70c=>{_0x1fda9d(_0x16c70c);});}),()=>{const _0x10411e=_0x790222;var _0x4dc5d5;(_0x4dc5d5=_0x11b665[_0x10411e(0xef)])==null||_0x4dc5d5[_0x10411e(0xa9)](),_0x11b665[_0x10411e(0xef)]=null;}),[_0x156f85,_0x1bbd41]),_0x2b6b96?_0x38bc83(_0x425cde,{'align':_0x790222(0x11d),'disabled':_0x243175===c[_0x790222(0x132)],'className':_0x790222(0xb7),'overlay':_0x38bc83(Re,{'status':_0x243175,'coordinator':_0x2b6b96}),'children':_0x38bc83(_0x790222(0xe1),{'className':_0x1f887d(_0x790222(0x105),{'univer-cursor-not-allowed':_0x243175===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x243175!==c['OFFLINE']}),'type':_0x790222(0xe1),'children':_0x38bc83(W,{'className':_0x790222(0x135)})})}):null;}function Re(_0x4460d2){const _0xdc7a93=_0x373afb,{status:_0x5b2a2c,coordinator:_0x573a23}=_0x4460d2;switch(_0x5b2a2c){case c[_0xdc7a93(0x91)]:return _0x38bc83($e,{'coordinator':_0x573a23});case c['FOLLOWING']:return _0x38bc83(xe,{'coordinator':_0x573a23});case c[_0xdc7a93(0xd8)]:return _0x38bc83(Pe,{'coordinator':_0x573a23});case c[_0xdc7a93(0x132)]:return _0x38bc83(Te,{});case c[_0xdc7a93(0x126)]:return _0x38bc83(Ae,{'coordinator':_0x573a23});default:return null;}}function _0x2c6a(){const _0x37c689=['_config','none','get','includes','You\x27re\x20following\x20the\x20presenter','idSuffix','map','path','set','onCommandExecuted','fill','symbol','complete','_handleNewHost','192EvSVpg','end','add','5VsRZsU','executeCommand','univerjs-icon\x20univerjs-icon-','div','init','defIds','sessionStatus$','PRESENTING','You\x27re\x20not\x20following\x20the\x20presenter','_sharedOperations','pluginName','_reporters','presenting','6nizBbj','385070IDbALI','assign','stringify','asObservable','UNIVER_LIVE_SHARE_PLUGIN','OFFLINE','type','_status$','univer-size-4','_startLiveShareCoordinator','Stop\x20following','live-share-icon','sheet','params','registerComponent','IDLE','requireSession','tryStartPresenting','mutations','colorChannel1','pipe','idle','univer-mb-3\x20univer-w-full\x20univer-text-sm','shouldShareOperation','1180837YeiPDv','find','_startFollowing','stopFollowing','url(#$1','substring','evenodd','44vHQgyf','forEach','_commandService','getUnitId','_beIdle','_fetchOperations','length','presenter','unsubscribe','0\x200\x2017\x2017','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','getInitialStates','children','_stopFollowing','Start','offline','subscribe','disposeWithMe','svg','LIVESHARE_OPERATION','You\x27are\x20offline.','Present\x20this\x20document','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','113493QPGQiJ','string','clear','LIVESHARE_TERMINATE','_handleOperation','_liveShareService','362384HkaKwr','FOLLOWING','onStarting','trim','dispose$','defs','has','OPERATION','_handleOnline','_entities','getTypeOfUnitAdded$','_unitID','defineProperty','getLiveShareCoordinator','_univerInstanceService','send','next','_handleNewChangeSets','random','status$','unitId','_commandDisposable','displayName','UNIVER_UNKNOWN','_presenter','dispose','NOT_FOLLOWING','SAME_OPERATION_SHARE_INTERVAL','getCurrentTypeOfUnit$','registerInitialStateReporter','_status','NEW_CHANGESETS','memberID','LIVESHARE_REQUEST_HOST','_mountLiveShare','button','_injector','mask','1em','event$','Start\x20following','reverse','You\x27re\x20presenting\x20the\x20document','Stop\x20presenting','4882596ZhDnEo','createInstance','11229520wnrKWG','HEADER_MENU','ONLINE','current','not-following','_handleOffline','xlink:href','override','_init','getOwnPropertyDescriptor','_stopPresenting','20cEtFij','4065021sAxeLq','entries','tag','stopPresenting','getMemberID','data','delete','getValue','attrs','values','currentColor','startFollowing','default','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_uiPartsService','_collabSession','_handleTerminate','operations','following','parse','_configService','getTypeOfUnitDisposed$'];_0x2c6a=function(){return _0x37c689;};return _0x2c6a();}function $e(_0x23aefb){const _0xc849a=_0x373afb,{coordinator:_0x1b880d}=_0x23aefb;return _0x5c6850(_0x3d4178,{'children':[_0x38bc83(_0xc849a(0x122),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc849a(0xb6)}),_0x38bc83(_0x4c4b88,{'onClick':()=>_0x1b880d[_0xc849a(0x93)](),'children':_0xc849a(0xaf)})]});}function xe(_0x4ede01){const _0x5a9ef3=_0x373afb,{coordinator:_0x2a3f43}=_0x4ede01;return _0x5c6850(_0x3d4178,{'children':[_0x38bc83('div',{'className':_0x5a9ef3(0x98),'children':_0x5a9ef3(0x112)}),_0x38bc83(_0x4c4b88,{'onClick':()=>_0x2a3f43['stopFollowing'](),'children':_0x5a9ef3(0x8c)})]});}function Pe(_0xb95a9b){const _0x511281=_0x373afb,{coordinator:_0x54610c}=_0xb95a9b;return _0x5c6850(_0x3d4178,{'children':[_0x38bc83(_0x511281(0x122),{'className':_0x511281(0x98),'children':_0x511281(0x127)}),_0x38bc83(_0x4c4b88,{'variant':'text','onClick':()=>_0x54610c[_0x511281(0x103)](),'children':_0x511281(0xe6)})]});}function Ae(_0x21bdad){const _0x4a0dfd=_0x373afb,{coordinator:_0x55938b}=_0x21bdad;return _0x5c6850(_0x3d4178,{'children':[_0x38bc83('div',{'className':_0x4a0dfd(0x98),'children':_0x4a0dfd(0xe8)}),_0x38bc83(_0x4c4b88,{'variant':_0x4a0dfd(0x104),'onClick':()=>_0x55938b[_0x4a0dfd(0xfb)](),'children':_0x4a0dfd(0xe9)})]});}function Te(){const _0x59c8a4=_0x373afb;return _0x38bc83(_0x3d4178,{'children':_0x59c8a4(0xb5)});}var Fe=Object[_0x373afb(0xf5)],He=(_0x5909e2,_0x5a9129,_0x2b798b,_0xc66490)=>{const _0x2b4f85=_0x373afb;for(var _0x45b7db=_0xc66490>0x1?void 0x0:_0xc66490?Fe(_0x5a9129,_0x2b798b):_0x5a9129,_0x3d2216=_0x5909e2[_0x2b4f85(0xa7)]-0x1,_0x53f92f;_0x3d2216>=0x0;_0x3d2216--)(_0x53f92f=_0x5909e2[_0x3d2216])&&(_0x45b7db=_0x53f92f(_0x45b7db)||_0x45b7db);return _0x45b7db;},A=(_0x20702e,_0x52e5a8)=>(_0x599489,_0x30960d)=>_0x52e5a8(_0x599489,_0x30960d,_0x20702e);let m=class extends _0x2fe247{constructor(_0x36bb67,_0xe659a7){const _0x1dd5ee=_0x373afb;super(),this['_injector']=_0x36bb67,this[_0x1dd5ee(0x106)]=_0xe659a7,this[_0x1dd5ee(0xe0)]();}[_0x373afb(0xe0)](){const _0x38bdd0=_0x373afb;this[_0x38bdd0(0xb2)](this['_uiPartsService'][_0x38bdd0(0x90)](_0x50235b[_0x38bdd0(0xed)],()=>_0xd9524e(Le,this[_0x38bdd0(0xe2)])));}};m=He([A(0x0,_0x44b869(_0x9ae918)),A(0x1,_0x19674a)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x5b738b,_0x80071f,_0x24d5ae,_0x34cd1e)=>{for(var _0x419006=_0x34cd1e>0x1?void 0x0:_0x34cd1e?Ue(_0x80071f,_0x24d5ae):_0x80071f,_0x1fc4fe=_0x5b738b['length']-0x1,_0x5dafe4;_0x1fc4fe>=0x0;_0x1fc4fe--)(_0x5dafe4=_0x5b738b[_0x1fc4fe])&&(_0x419006=_0x5dafe4(_0x419006)||_0x419006);return _0x419006;},je=(_0x2eb5ac,_0x2910ce)=>(_0x577196,_0x51e6ea)=>_0x2910ce(_0x577196,_0x51e6ea,_0x2eb5ac);let I=class extends _0x2fe247{constructor(_0x1f9348){const _0x168ee8=_0x373afb;super(),this[_0x168ee8(0xbd)]=_0x1f9348,this[_0x168ee8(0xf4)]();}[_0x373afb(0xf4)](){const _0x172035=_0x373afb;[_0x134bb0['id'],_0x355a6f['id'],_0x573678['id']][_0x172035(0xa2)](_0x29018b=>{const _0xdf18ee=_0x172035;this[_0xdf18ee(0xb2)](this[_0xdf18ee(0xbd)]['registerSharedOperation'](_0x29018b));});}};I=Ve([je(0x0,_0x44b869(L))],I);var Me=Object[_0x373afb(0xca)],ke=Object[_0x373afb(0xf5)],Ge=(_0x2da04f,_0x1716bf,_0x6cc873)=>_0x1716bf in _0x2da04f?Me(_0x2da04f,_0x1716bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6cc873}):_0x2da04f[_0x1716bf]=_0x6cc873,We=(_0xc496a7,_0x1916c8,_0x11f1a5,_0x37c556)=>{const _0x467bb6=_0x373afb;for(var _0x5d3a36=_0x37c556>0x1?void 0x0:_0x37c556?ke(_0x1916c8,_0x11f1a5):_0x1916c8,_0x5071e1=_0xc496a7[_0x467bb6(0xa7)]-0x1,_0x5151eb;_0x5071e1>=0x0;_0x5071e1--)(_0x5151eb=_0xc496a7[_0x5071e1])&&(_0x5d3a36=_0x5151eb(_0x5d3a36)||_0x5d3a36);return _0x5d3a36;},F=(_0x14bed2,_0x14a0d3)=>(_0x2ae82f,_0x431a39)=>_0x14a0d3(_0x2ae82f,_0x431a39,_0x14bed2),B=(_0x380747,_0x924f52,_0x2c1642)=>Ge(_0x380747,typeof _0x924f52!=_0x373afb(0x119)?_0x924f52+'':_0x924f52,_0x2c1642);const Ye=_0x373afb(0x131);let b=class extends _0x31b36f{constructor(_0x1ecf49=T,_0x2ea4bb,_0x4930cd){const _0x30b0bb=_0x373afb;super(),this[_0x30b0bb(0x10e)]=_0x1ecf49,this['_injector']=_0x2ea4bb,this[_0x30b0bb(0x10c)]=_0x4930cd;const {..._0xc518f}=_0x1066e5({},T,this['_config']);this[_0x30b0bb(0x10c)]['setConfig'](ye,_0xc518f);}[_0x373afb(0xc0)](){const _0x587387=_0x373afb;_0x1e94e5(this[_0x587387(0xe2)],_0xef3678([[L],[S],[I],[m]],this[_0x587387(0x10e)][_0x587387(0xf3)])),_0x495760(this[_0x587387(0xe2)],[[I]]);}['onRendered'](){const _0x40efd2=_0x373afb;_0x495760(this[_0x40efd2(0xe2)],[[m]]);}};B(b,'type',_0x3279a2[_0x373afb(0xd5)]),B(b,_0x373afb(0x129),Ye),b=We([_0xacdf87(_0x2b2af9),F(0x1,_0x44b869(_0x9ae918)),F(0x2,_0x4f1855)],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 _0xb97ebd=_0x9b6e;(function(_0x3aebba,_0x2089ac){const _0x824a38=_0x9b6e,_0x160b12=_0x3aebba();while(!![]){try{const _0x502100=parseInt(_0x824a38(0x19c))/0x1+parseInt(_0x824a38(0x143))/0x2*(-parseInt(_0x824a38(0x1a1))/0x3)+parseInt(_0x824a38(0x1b8))/0x4*(parseInt(_0x824a38(0x176))/0x5)+parseInt(_0x824a38(0x145))/0x6*(parseInt(_0x824a38(0x194))/0x7)+-parseInt(_0x824a38(0x17f))/0x8*(parseInt(_0x824a38(0x12e))/0x9)+parseInt(_0x824a38(0x184))/0xa*(parseInt(_0x824a38(0x1ba))/0xb)+-parseInt(_0x824a38(0x174))/0xc*(parseInt(_0x824a38(0x1c1))/0xd);if(_0x502100===_0x2089ac)break;else _0x160b12['push'](_0x160b12['shift']());}catch(_0x42732b){_0x160b12['push'](_0x160b12['shift']());}}}(_0x5a47,0x71b8e));var J=Object[_0xb97ebd(0x1b0)],K=(_0x1dcce9,_0x3ca04b,_0x1caa7a)=>_0x3ca04b in _0x1dcce9?J(_0x1dcce9,_0x3ca04b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1caa7a}):_0x1dcce9[_0x3ca04b]=_0x1caa7a,u=(_0x18f61b,_0xf096fe,_0x26adcb)=>K(_0x18f61b,typeof _0xf096fe!=_0xb97ebd(0x15b)?_0xf096fe+'':_0xf096fe,_0x26adcb);import{Disposable as _0x377436,toDisposable as _0x406d9b,IUniverInstanceService as _0x5ecf6c,Inject as _0x21afd6,Injector as _0xcfdfef,IConfigService as _0x5f372e,ICommandService as _0x190649,RxDisposable as _0x11add2,UniverInstanceType as _0x577e21,DisposableCollection as _0x7bc84b,CommandType as _0x3cef27,DependentOn as _0x362c5b,Plugin as _0x306fe4,merge as _0x1a51a5,registerDependencies as _0x533093,mergeOverrideWithDependencies as _0x47b025,touchDependencies as _0x4a7426}from'@univerjs/core';import{useDependency as _0x1320d6,useObservable as _0x518c90,IUIPartsService as _0x2d5715,BuiltInUIPart as _0x3439ae,connectInjector as _0x24235a}from'@univerjs/ui';import{jsx as _0x580725,jsxs as _0x1abc97,Fragment as _0x2c36f8}from'react/jsx-runtime';import{Dropdown as _0x270a52,clsx as _0xc4ee54,Button as _0x613aad}from'@univerjs/design';function _0x9b6e(_0x120f2b,_0x1942b4){const _0x5a4722=_0x5a47();return _0x9b6e=function(_0x9b6e2f,_0x46a200){_0x9b6e2f=_0x9b6e2f-0x12c;let _0x147712=_0x5a4722[_0x9b6e2f];return _0x147712;},_0x9b6e(_0x120f2b,_0x1942b4);}import{useRef as _0x1062c7,createElement as _0x391261,forwardRef as _0xa6af3f,useState as _0x396812,useEffect as _0x1482f8}from'react';import{CollaborationEvent as _0x16f67c,parseProtocolChangeset as _0x583902}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1fcb99,SessionStatus as _0x52fa7b,UniverCollaborationClientPlugin as _0x11a085}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x258803,SetWorksheetActiveOperation as _0x20c513}from'@univerjs/sheets';import{BehaviorSubject as _0x34692e,Subject as _0x2766e6}from'rxjs';import{takeUntil as _0x1d5b79,throttleTime as _0x1ffa79}from'rxjs/operators';import{SetZoomRatioOperation as _0x1d388b,SetScrollOperation as _0x5ae5dd}from'@univerjs/sheets-ui';function k({ref:_0x238dc1,..._0x4846f8}){const _0x21c4a0=_0xb97ebd,{icon:_0x2a0ef5,id:_0x1d4d6f,className:_0x4518d7,extend:_0x4da51a,..._0x241414}=_0x4846f8,_0x7af0eb=(_0x21c4a0(0x147)+_0x1d4d6f+'\x20'+(_0x4518d7||''))[_0x21c4a0(0x195)](),_0x4050f5=_0x1062c7('_'+Oe());return G(_0x2a0ef5,''+_0x1d4d6f,{'defIds':_0x2a0ef5['defIds'],'idSuffix':_0x4050f5[_0x21c4a0(0x146)]},{'ref':_0x238dc1,'className':_0x7af0eb,..._0x241414},_0x4da51a);}function G(_0x53a55d,_0x5cb432,_0x180dd1,_0x4153dc,_0x4c6cea){const _0x2e49e2=_0xb97ebd;return _0x391261(_0x53a55d['tag'],{'key':_0x5cb432,...be(_0x53a55d,_0x180dd1,_0x4c6cea),..._0x4153dc},(Ee(_0x53a55d,_0x180dd1)[_0x2e49e2(0x14f)]||[])[_0x2e49e2(0x170)]((_0x131181,_0x20aa16)=>G(_0x131181,_0x5cb432+'-'+_0x53a55d['tag']+'-'+_0x20aa16,_0x180dd1,void 0x0,_0x4c6cea)));}function be(_0x59171a,_0x5d8324,_0x5c27e7){const _0x37f93d=_0xb97ebd,_0x439f83={..._0x59171a['attrs']};_0x5c27e7!=null&&_0x5c27e7[_0x37f93d(0x1a2)]&&_0x439f83[_0x37f93d(0x15d)]===_0x37f93d(0x1a2)&&(_0x439f83[_0x37f93d(0x15d)]=_0x5c27e7[_0x37f93d(0x1a2)]),_0x59171a[_0x37f93d(0x1a6)]===_0x37f93d(0x131)&&_0x439f83['id']&&(_0x439f83['id']=_0x439f83['id']+_0x5d8324[_0x37f93d(0x19d)]),Object['entries'](_0x439f83)['forEach'](([_0x3d5796,_0x342693])=>{const _0x3ed0e9=_0x37f93d;_0x3d5796==='mask'&&typeof _0x342693=='string'&&(_0x439f83[_0x3d5796]=_0x342693[_0x3ed0e9(0x135)](/url\(#(.*)\)/,_0x3ed0e9(0x18d)+_0x5d8324[_0x3ed0e9(0x19d)]+')'));});const {defIds:_0x15c13c}=_0x5d8324;return!_0x15c13c||_0x15c13c[_0x37f93d(0x13e)]===0x0||(_0x59171a[_0x37f93d(0x1a6)]==='use'&&_0x439f83[_0x37f93d(0x168)]&&(_0x439f83[_0x37f93d(0x168)]=_0x439f83[_0x37f93d(0x168)]+_0x5d8324[_0x37f93d(0x19d)]),Object[_0x37f93d(0x12c)](_0x439f83)[_0x37f93d(0x156)](([_0xb53333,_0x5bac18])=>{const _0x392f0b=_0x37f93d;typeof _0x5bac18=='string'&&(_0x439f83[_0xb53333]=_0x5bac18[_0x392f0b(0x135)](/url\(#(.*)\)/,_0x392f0b(0x18d)+_0x5d8324[_0x392f0b(0x19d)]+')'));})),_0x439f83;}function Ee(_0x277a4,_0x1e831a){const _0x158661=_0xb97ebd;var _0x15f2f0;const {defIds:_0x4ed713}=_0x1e831a;return!_0x4ed713||_0x4ed713[_0x158661(0x13e)]===0x0?_0x277a4:_0x277a4[_0x158661(0x1a6)]===_0x158661(0x151)&&((_0x15f2f0=_0x277a4['children'])!=null&&_0x15f2f0[_0x158661(0x13e)])?{..._0x277a4,'children':_0x277a4[_0x158661(0x14f)][_0x158661(0x170)](_0x7fe7a0=>typeof _0x7fe7a0[_0x158661(0x1b7)]['id']==_0x158661(0x180)&&_0x4ed713&&_0x4ed713[_0x158661(0x16f)](_0x7fe7a0[_0x158661(0x1b7)]['id'])?{..._0x7fe7a0,'attrs':{..._0x7fe7a0[_0x158661(0x1b7)],'id':_0x7fe7a0['attrs']['id']+_0x1e831a[_0x158661(0x19d)]}}:_0x7fe7a0)}:_0x277a4;}function Oe(){const _0x1fcaea=_0xb97ebd;return Math[_0x1fcaea(0x172)]()['toString'](0x24)[_0x1fcaea(0x160)](0x2,0x8);}k[_0xb97ebd(0x1cf)]=_0xb97ebd(0x13f);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb97ebd(0x1d6),'viewBox':_0xb97ebd(0x162),'width':_0xb97ebd(0x154),'height':_0xb97ebd(0x154)},'children':[{'tag':_0xb97ebd(0x1a4),'attrs':{'fill':_0xb97ebd(0x1d5),'d':_0xb97ebd(0x179)}},{'tag':'path','attrs':{'fill':_0xb97ebd(0x1d5),'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':_0xb97ebd(0x1c6),'clipRule':_0xb97ebd(0x1c6)}}]},W=_0xa6af3f(function(_0x5bfd5a,_0x323284){const _0x754374=_0xb97ebd;return _0x391261(k,Object[_0x754374(0x1ac)]({},_0x5bfd5a,{'id':_0x754374(0x19e),'ref':_0x323284,'icon':we}));});W['displayName']=_0xb97ebd(0x153);class L extends _0x377436{constructor(){const _0x2d54b4=_0xb97ebd;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x2d54b4(0x169),new Set());}[_0xb97ebd(0x19a)](_0x439a83){const _0x11c447=_0xb97ebd;return this[_0x11c447(0x15f)]['add'](_0x439a83),_0x406d9b(()=>this['_sharedOperations'][_0x11c447(0x198)](_0x439a83));}['registerInitialStateReporter'](_0x3df2b2){const _0x1eb404=_0xb97ebd;return this[_0x1eb404(0x169)][_0x1eb404(0x1d4)](_0x3df2b2),_0x406d9b(()=>this[_0x1eb404(0x169)]['delete'](_0x3df2b2));}[_0xb97ebd(0x12f)](_0x1a1d5c){const _0x2b2ada=_0xb97ebd;return this[_0x2b2ada(0x15f)][_0x2b2ada(0x167)](_0x1a1d5c);}[_0xb97ebd(0x192)](_0x5dbb47){const _0x5888d9=_0xb97ebd;return Array['from'](this['_reporters'])[_0x5888d9(0x170)](_0x1c85a1=>_0x1c85a1(_0x5dbb47));}}var Ne=Object[_0xb97ebd(0x1d1)],Y=(_0x3ba1cf,_0xebda5a,_0x59ecf0,_0x36fb23)=>{const _0x266246=_0xb97ebd;for(var _0x380174=_0x36fb23>0x1?void 0x0:_0x36fb23?Ne(_0xebda5a,_0x59ecf0):_0xebda5a,_0x1fbaaf=_0x3ba1cf[_0x266246(0x13e)]-0x1,_0x495fa3;_0x1fbaaf>=0x0;_0x1fbaaf--)(_0x495fa3=_0x3ba1cf[_0x1fbaaf])&&(_0x380174=_0x495fa3(_0x380174)||_0x380174);return _0x380174;},_=(_0x1b8fe4,_0x831463)=>(_0x7fe5a8,_0x23dc84)=>_0x831463(_0x7fe5a8,_0x23dc84,_0x1b8fe4);let S=class extends _0x11add2{constructor(_0x401e43,_0x2409e8,_0x38b388){const _0x301666=_0xb97ebd;super(),u(this,_0x301666(0x1ce),new Map()),(this['_univerInstanceService']=_0x401e43,this[_0x301666(0x177)]=_0x2409e8,this[_0x301666(0x1bf)]=_0x38b388,this[_0x301666(0x1c3)]());}async[_0xb97ebd(0x193)](_0x143124){const _0x3cd7ac=_0xb97ebd;return this['_entities'][_0x3cd7ac(0x167)](_0x143124)||await this[_0x3cd7ac(0x13c)](_0x143124),this[_0x3cd7ac(0x1ce)][_0x3cd7ac(0x1a0)](_0x143124);}[_0xb97ebd(0x191)](_0xbc7c47){const _0x94a260=_0xb97ebd;var _0x116bf6;return(_0x116bf6=this[_0x94a260(0x1ce)][_0x94a260(0x1a0)](_0xbc7c47))!=null?_0x116bf6:null;}['_init'](){const _0x3fddd8=_0xb97ebd;this[_0x3fddd8(0x13a)][_0x3fddd8(0x1c9)](_0x577e21[_0x3fddd8(0x155)])['pipe'](_0x1d5b79(this[_0x3fddd8(0x137)]))[_0x3fddd8(0x1c0)](async _0x3e0775=>{const _0xf78b76=_0x3fddd8,_0x3a8a25=_0x3e0775[_0xf78b76(0x199)]();this[_0xf78b76(0x1ce)][_0xf78b76(0x167)](_0x3a8a25)||this[_0xf78b76(0x13c)](_0x3a8a25);}),this[_0x3fddd8(0x13a)][_0x3fddd8(0x157)](_0x577e21[_0x3fddd8(0x155)])['pipe'](_0x1d5b79(this[_0x3fddd8(0x137)]))[_0x3fddd8(0x1c0)](_0x39179c=>{const _0x4ad9ad=_0x3fddd8,_0x136206=_0x39179c['getUnitId'](),_0x37793b=this[_0x4ad9ad(0x1ce)][_0x4ad9ad(0x1a0)](_0x136206);_0x37793b==null||_0x37793b[_0x4ad9ad(0x1ae)]();});}async['_startLiveShareCoordinator'](_0x2ee769){const _0x12d58f=_0xb97ebd,_0x4b0b15=await this[_0x12d58f(0x1bf)][_0x12d58f(0x148)](_0x2ee769),_0x17676c=this[_0x12d58f(0x177)][_0x12d58f(0x164)](N,_0x2ee769,_0x4b0b15);return _0x17676c[_0x12d58f(0x182)](),this['_entities']['set'](_0x2ee769,_0x17676c),_0x17676c;}};S=Y([_(0x0,_0x5ecf6c),_(0x1,_0x21afd6(_0xcfdfef)),_(0x2,_0x21afd6(_0x1fcb99))],S);var c=(_0x4ddd38=>(_0x4ddd38['OFFLINE']=_0xb97ebd(0x183),_0x4ddd38['IDLE']='idle',_0x4ddd38[_0xb97ebd(0x15a)]=_0xb97ebd(0x1d8),_0x4ddd38['NOT_FOLLOWING']=_0xb97ebd(0x1b6),_0x4ddd38[_0xb97ebd(0x1c7)]=_0xb97ebd(0x1c5),_0x4ddd38))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x11add2{constructor(_0xa04050,_0x28d4db,_0x5e5341,_0x24cf1a,_0xc9a123){const _0x4277e7=_0xb97ebd;super(),u(this,_0x4277e7(0x12d),new _0x34692e(_0x4277e7(0x17a))),u(this,_0x4277e7(0x1b9),this[_0x4277e7(0x12d)][_0x4277e7(0x18f)]()),u(this,'_init',!0x1),u(this,_0x4277e7(0x1d7),null),u(this,_0x4277e7(0x190),null),(this[_0x4277e7(0x1a5)]=_0xa04050,this[_0x4277e7(0x197)]=_0x28d4db,this[_0x4277e7(0x1b5)]=_0x5e5341,this['_liveShareService']=_0x24cf1a,this[_0x4277e7(0x1d3)]=_0xc9a123);}get[_0xb97ebd(0x17e)](){const _0x14b4f4=_0xb97ebd;return this[_0x14b4f4(0x12d)]['getValue']();}['dispose'](){const _0x33f15c=_0xb97ebd;var _0x25e5c7;(_0x25e5c7=this[_0x33f15c(0x1d7)])==null||_0x25e5c7[_0x33f15c(0x1ae)](),this['_status$'][_0x33f15c(0x161)]('idle'),this[_0x33f15c(0x12d)][_0x33f15c(0x141)]();}[_0xb97ebd(0x1c4)](){const _0x5125e4=_0xb97ebd;return this[_0x5125e4(0x17e)];}[_0xb97ebd(0x182)](){const _0x4675fd=_0xb97ebd;this[_0x4675fd(0x1c3)]||(this[_0x4675fd(0x1c3)]=!0x0,this['_collabSession']['sessionStatus$'][_0x4675fd(0x17d)](_0x1d5b79(this['dispose$']))['subscribe'](_0x327610=>{const _0x424d42=_0x4675fd;switch(_0x327610){case _0x52fa7b[_0x424d42(0x16a)]:this[_0x424d42(0x1bc)]();break;case _0x52fa7b[_0x424d42(0x130)]:this[_0x424d42(0x16c)]();break;}}),this[_0x4675fd(0x197)][_0x4675fd(0x1ab)][_0x4675fd(0x17d)](_0x1d5b79(this[_0x4675fd(0x137)]))[_0x4675fd(0x1c0)](_0x57fb75=>{const _0x364de5=_0x4675fd,{eventID:_0x1047c1}=_0x57fb75;switch(_0x1047c1){case _0x16f67c['LIVESHARE_NEW_HOST']:this[_0x364de5(0x132)](_0x57fb75);break;case _0x16f67c[_0x364de5(0x14e)]:this['_handleOperation'](_0x57fb75);break;case _0x16f67c[_0x364de5(0x14a)]:this[_0x364de5(0x14c)]();break;case _0x16f67c['NEW_CHANGESETS']:this[_0x364de5(0x14d)](_0x57fb75);break;}}));}[_0xb97ebd(0x196)](){const _0x57edcd=_0xb97ebd;this[_0x57edcd(0x197)][_0x57edcd(0x1b1)]({'eventID':_0x16f67c[_0x57edcd(0x152)],'data':{'unitID':this[_0x57edcd(0x1a5)],'userID':this['_collabSession'][_0x57edcd(0x16e)]()}},this[_0x57edcd(0x1a5)]);}[_0xb97ebd(0x1be)](){const _0x57c425=_0xb97ebd;this[_0x57c425(0x17e)]==='presenting'&&(this[_0x57c425(0x12d)][_0x57c425(0x161)]('idle'),this[_0x57c425(0x197)][_0x57c425(0x1b1)]({'eventID':_0x16f67c[_0x57c425(0x14a)],'data':{'unitID':this[_0x57c425(0x1a5)]}},this[_0x57c425(0x1a5)]));}[_0xb97ebd(0x17b)](){const _0x1203ac=_0xb97ebd;this['_status']===_0x1203ac(0x1b6)&&(this['_status$']['next'](_0x1203ac(0x1d8)),this[_0x1203ac(0x16b)]());}[_0xb97ebd(0x1ca)](){const _0x12dfbd=_0xb97ebd;this['_status']===_0x12dfbd(0x1d8)&&this[_0x12dfbd(0x175)]();}[_0xb97ebd(0x132)](_0x567d18){const _0x2851ef=_0xb97ebd,{presenter:_0x3fec40}=_0x567d18[_0x2851ef(0x173)],_0xb6af38=this[_0x2851ef(0x197)][_0x2851ef(0x16e)]();this['_presenter']=_0x3fec40,_0x3fec40===_0xb6af38?(this[_0x2851ef(0x175)](),this[_0x2851ef(0x18c)]()):this[_0x2851ef(0x17e)]!==_0x2851ef(0x1b6)&&(this[_0x2851ef(0x19f)](),this['_startFollowing']());}[_0xb97ebd(0x159)](){const _0x3a57cf=_0xb97ebd,_0x4d5c7a={'eventID':_0x16f67c[_0x3a57cf(0x14b)]};this[_0x3a57cf(0x197)][_0x3a57cf(0x1b1)](_0x4d5c7a,this[_0x3a57cf(0x1a5)]);}['_handleTerminate'](){const _0x5be85b=_0xb97ebd;this[_0x5be85b(0x190)]=null,this[_0x5be85b(0x17e)]!==_0x5be85b(0x1c5)&&this[_0x5be85b(0x1cd)]();}['_handleNewChangeSets'](_0xc17d40){const _0x5870ac=_0xb97ebd;if(this[_0x5870ac(0x17e)]==='following'&&this['_presenter']===_0xc17d40[_0x5870ac(0x173)][_0x5870ac(0x18b)]){const _0x37146e=_0x583902(_0xc17d40[_0x5870ac(0x173)])[_0x5870ac(0x166)][_0x5870ac(0x1c2)]()[_0x5870ac(0x178)](_0x10fa4f=>_0x10fa4f['id']===_0x258803['id']);if(_0x37146e){const _0x52cdd2=_0x37146e[_0x5870ac(0x1d0)][_0x5870ac(0x13d)],_0x3348c5=_0x37146e[_0x5870ac(0x1d0)][_0x5870ac(0x1ad)]['id'];setTimeout(()=>{const _0x39aedf=_0x5870ac;this['_commandService'][_0x39aedf(0x187)](_0x20c513['id'],{'unitId':_0x52cdd2,'subUnitId':_0x3348c5},{'fromCollab':!0x0});});}}}[_0xb97ebd(0x18c)](){const _0xd6f309=_0xb97ebd;this[_0xd6f309(0x12d)][_0xd6f309(0x161)](_0xd6f309(0x1c5));const _0x31199b=new Map(),_0x1d4405=this['_commandDisposable']=new _0x7bc84b();_0x1d4405['add'](_0x406d9b(()=>{const _0x403979=_0xd6f309;_0x31199b[_0x403979(0x156)](_0x8acb59=>_0x8acb59['complete']()),_0x31199b[_0x403979(0x142)]();})),_0x1d4405[_0xd6f309(0x1d4)](this[_0xd6f309(0x1d3)][_0xd6f309(0x1b3)](_0x5edd8f=>{const _0x38e5f9=_0xd6f309;var _0x161b35;if(_0x5edd8f[_0x38e5f9(0x134)]!==_0x3cef27[_0x38e5f9(0x1cc)]||!this[_0x38e5f9(0x1c8)][_0x38e5f9(0x12f)](_0x5edd8f['id']))return;const {id:_0x358196}=_0x5edd8f;let _0x26f6c0;_0x31199b[_0x38e5f9(0x167)](_0x358196)?_0x26f6c0=_0x31199b[_0x38e5f9(0x1a0)](_0x358196):(_0x26f6c0=new _0x2766e6(),_0x31199b[_0x38e5f9(0x133)](_0x358196,_0x26f6c0),_0x26f6c0['pipe'](_0x1ffa79((_0x161b35=this[_0x38e5f9(0x1b5)]['getConfig'](Ce))!=null?_0x161b35:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x52d9b4=>{const _0x2abb07=_0x38e5f9;this[_0x2abb07(0x197)][_0x2abb07(0x1b1)]({'eventID':_0x16f67c[_0x2abb07(0x14e)],'data':{'unitID':this[_0x2abb07(0x1a5)],'operations':{[_0x52d9b4['id']]:{'id':_0x52d9b4['id'],'params':JSON[_0x2abb07(0x188)](_0x52d9b4[_0x2abb07(0x1d0)])}}}},this[_0x2abb07(0x1a5)]);})),_0x26f6c0[_0x38e5f9(0x161)](_0x5edd8f);})),this[_0xd6f309(0x1c8)][_0xd6f309(0x192)](this['_unitID'])['forEach'](_0x14e2d9=>this['_collabSession'][_0xd6f309(0x1b1)]({'eventID':_0x16f67c[_0xd6f309(0x14e)],'data':{'unitID':this['_unitID'],'operations':{[_0x14e2d9['id']]:{'id':_0x14e2d9['id'],'params':JSON[_0xd6f309(0x188)](_0x14e2d9[_0xd6f309(0x1d0)])}}}},this['_unitID']));}[_0xb97ebd(0x19f)](){const _0xb703ce=_0xb97ebd;var _0x317ee5;this[_0xb703ce(0x12d)][_0xb703ce(0x161)](_0xb703ce(0x17a)),(_0x317ee5=this[_0xb703ce(0x1d7)])==null||_0x317ee5['dispose'](),this[_0xb703ce(0x1d7)]=null;}['_startFollowing'](){const _0x5ccde5=_0xb97ebd;var _0xa71b36;(_0xa71b36=this[_0x5ccde5(0x1d7)])==null||_0xa71b36['dispose'](),this[_0x5ccde5(0x12d)][_0x5ccde5(0x161)](_0x5ccde5(0x1d8));}[_0xb97ebd(0x1cd)](){const _0x2ebeaa=_0xb97ebd;var _0x10a215;this['_status$'][_0x2ebeaa(0x161)](_0x2ebeaa(0x17a)),(_0x10a215=this['_commandDisposable'])==null||_0x10a215[_0x2ebeaa(0x1ae)](),this[_0x2ebeaa(0x1d7)]=null;}[_0xb97ebd(0x175)](){const _0x1d6877=_0xb97ebd;var _0x140019;this['_status$'][_0x1d6877(0x161)](_0x1d6877(0x1b6)),(_0x140019=this[_0x1d6877(0x1d7)])==null||_0x140019[_0x1d6877(0x1ae)]();}[_0xb97ebd(0x1af)](_0x3c95f8){const _0x18e827=_0xb97ebd;if([_0x18e827(0x1c5),_0x18e827(0x1b6),_0x18e827(0x183)]['includes'](this[_0x18e827(0x17e)])||!_0x3c95f8[_0x18e827(0x173)][_0x18e827(0x165)]||_0x3c95f8[_0x18e827(0x173)]['presenter']===this[_0x18e827(0x197)]['getMemberID']())return;this[_0x18e827(0x17e)]===_0x18e827(0x17a)&&this[_0x18e827(0x16b)]();const _0x13b82d=_0x3c95f8['data'][_0x18e827(0x1a3)];Object['values'](_0x13b82d)[_0x18e827(0x156)](_0x35c3c5=>{const _0x254983=_0x18e827;this[_0x254983(0x1d3)][_0x254983(0x187)](_0x35c3c5['id'],_0x35c3c5['params']?JSON[_0x254983(0x17c)](_0x35c3c5[_0x254983(0x1d0)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x97774e=_0xb97ebd;var _0x1f485f;this[_0x97774e(0x12d)][_0x97774e(0x161)](_0x97774e(0x183)),(_0x1f485f=this[_0x97774e(0x1d7)])==null||_0x1f485f['dispose']();}['_handleOnline'](){const _0x3db83a=_0xb97ebd;this[_0x3db83a(0x12d)][_0x3db83a(0x161)]('idle'),this[_0x3db83a(0x159)]();}};N=Y([_(0x2,_0x5f372e),_(0x3,_0x21afd6(L)),_(0x4,_0x190649)],N);function Le(){const _0x4616a2=_0xb97ebd,_0x29a61d=_0x1320d6(S),_0x1fed18=_0x1320d6(_0x5ecf6c),_0x5a716c=_0x518c90(()=>_0x1fed18[_0x4616a2(0x1cb)](_0x577e21['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x161b0e,_0x574f7e]=_0x396812(null),[_0x4660c1,_0x51d593]=_0x396812(c[_0x4616a2(0x1d9)]),_0x5b21d5=_0x1062c7(null);return _0x1482f8(()=>(_0x5a716c&&_0x29a61d[_0x4616a2(0x193)](_0x5a716c['getUnitId']())[_0x4616a2(0x1bb)](_0x426e7f=>{const _0x108122=_0x4616a2;_0x574f7e(_0x426e7f),_0x5b21d5[_0x108122(0x146)]=_0x426e7f[_0x108122(0x1b9)][_0x108122(0x1c0)](_0x37f5eb=>{_0x51d593(_0x37f5eb);});}),()=>{const _0x4fb283=_0x4616a2;var _0xabdb62;(_0xabdb62=_0x5b21d5['current'])==null||_0xabdb62[_0x4fb283(0x15e)](),_0x5b21d5[_0x4fb283(0x146)]=null;}),[_0x5a716c,_0x29a61d]),_0x161b0e?_0x580725(_0x270a52,{'align':_0x4616a2(0x149),'disabled':_0x4660c1===c[_0x4616a2(0x16a)],'className':_0x4616a2(0x185),'overlay':_0x580725(Re,{'status':_0x4660c1,'coordinator':_0x161b0e}),'children':_0x580725('button',{'className':_0xc4ee54(_0x4616a2(0x1a8),{'univer-cursor-not-allowed':_0x4660c1===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4660c1!==c[_0x4616a2(0x16a)]}),'type':_0x4616a2(0x1b2),'children':_0x580725(W,{'className':_0x4616a2(0x19b)})})}):null;}function Re(_0x7e8eaf){const _0x429441=_0xb97ebd,{status:_0x1c7b2e,coordinator:_0x1723d8}=_0x7e8eaf;switch(_0x1c7b2e){case c['IDLE']:return _0x580725($e,{'coordinator':_0x1723d8});case c[_0x429441(0x15a)]:return _0x580725(xe,{'coordinator':_0x1723d8});case c[_0x429441(0x1a7)]:return _0x580725(Pe,{'coordinator':_0x1723d8});case c['OFFLINE']:return _0x580725(Te,{});case c[_0x429441(0x1c7)]:return _0x580725(Ae,{'coordinator':_0x1723d8});default:return null;}}function $e(_0x144a77){const _0x5d8958=_0xb97ebd,{coordinator:_0x5f271f}=_0x144a77;return _0x1abc97(_0x2c36f8,{'children':[_0x580725(_0x5d8958(0x1d2),{'className':_0x5d8958(0x1a9),'children':_0x5d8958(0x189)}),_0x580725(_0x613aad,{'onClick':()=>_0x5f271f[_0x5d8958(0x196)](),'children':_0x5d8958(0x163)})]});}function xe(_0x24d177){const _0x895592=_0xb97ebd,{coordinator:_0x310348}=_0x24d177;return _0x1abc97(_0x2c36f8,{'children':[_0x580725(_0x895592(0x1d2),{'className':_0x895592(0x1a9),'children':_0x895592(0x181)}),_0x580725(_0x613aad,{'onClick':()=>_0x310348[_0x895592(0x1ca)](),'children':_0x895592(0x15c)})]});}function Pe(_0x3f720e){const _0x10c940=_0xb97ebd,{coordinator:_0x9e8d1}=_0x3f720e;return _0x1abc97(_0x2c36f8,{'children':[_0x580725(_0x10c940(0x1d2),{'className':_0x10c940(0x1a9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x580725(_0x613aad,{'variant':_0x10c940(0x139),'onClick':()=>_0x9e8d1['startFollowing'](),'children':_0x10c940(0x13b)})]});}function Ae(_0x1f18ba){const _0x123e9f=_0xb97ebd,{coordinator:_0x4d87f2}=_0x1f18ba;return _0x1abc97(_0x2c36f8,{'children':[_0x580725(_0x123e9f(0x1d2),{'className':_0x123e9f(0x1a9),'children':_0x123e9f(0x16d)}),_0x580725(_0x613aad,{'variant':_0x123e9f(0x1b4),'onClick':()=>_0x4d87f2[_0x123e9f(0x1be)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x199038=_0xb97ebd;return _0x580725(_0x2c36f8,{'children':_0x199038(0x136)});}var Fe=Object[_0xb97ebd(0x1d1)],He=(_0xb9922a,_0x3b7c00,_0x1862b0,_0x26ecdc)=>{for(var _0x470922=_0x26ecdc>0x1?void 0x0:_0x26ecdc?Fe(_0x3b7c00,_0x1862b0):_0x3b7c00,_0x56b2a1=_0xb9922a['length']-0x1,_0x417346;_0x56b2a1>=0x0;_0x56b2a1--)(_0x417346=_0xb9922a[_0x56b2a1])&&(_0x470922=_0x417346(_0x470922)||_0x470922);return _0x470922;},A=(_0x389f6f,_0x13590a)=>(_0xf11285,_0x2b062e)=>_0x13590a(_0xf11285,_0x2b062e,_0x389f6f);let m=class extends _0x377436{constructor(_0x4ef1f9,_0xdde6ab){const _0x346c12=_0xb97ebd;super(),this[_0x346c12(0x177)]=_0x4ef1f9,this[_0x346c12(0x186)]=_0xdde6ab,this[_0x346c12(0x150)]();}[_0xb97ebd(0x150)](){const _0x54a2de=_0xb97ebd;this[_0x54a2de(0x158)](this[_0x54a2de(0x186)][_0x54a2de(0x1aa)](_0x3439ae['HEADER_MENU'],()=>_0x24235a(Le,this[_0x54a2de(0x177)])));}};m=He([A(0x0,_0x21afd6(_0xcfdfef)),A(0x1,_0x2d5715)],m);const ye=_0xb97ebd(0x1bd),T={};var Ue=Object[_0xb97ebd(0x1d1)],Ve=(_0x4fea7c,_0x3804ca,_0x14cd9a,_0x5392a6)=>{const _0x16a58e=_0xb97ebd;for(var _0x2bd492=_0x5392a6>0x1?void 0x0:_0x5392a6?Ue(_0x3804ca,_0x14cd9a):_0x3804ca,_0x564a45=_0x4fea7c[_0x16a58e(0x13e)]-0x1,_0x459f74;_0x564a45>=0x0;_0x564a45--)(_0x459f74=_0x4fea7c[_0x564a45])&&(_0x2bd492=_0x459f74(_0x2bd492)||_0x2bd492);return _0x2bd492;},je=(_0x2fbc0d,_0x56446b)=>(_0x1a52e8,_0x24da30)=>_0x56446b(_0x1a52e8,_0x24da30,_0x2fbc0d);let I=class extends _0x377436{constructor(_0x1da181){const _0x16f374=_0xb97ebd;super(),this[_0x16f374(0x1c8)]=_0x1da181,this[_0x16f374(0x1c3)]();}[_0xb97ebd(0x1c3)](){[_0x1d388b['id'],_0x5ae5dd['id'],_0x20c513['id']]['forEach'](_0x5031de=>{const _0x23882f=_0x9b6e;this['disposeWithMe'](this[_0x23882f(0x1c8)][_0x23882f(0x19a)](_0x5031de));});}};I=Ve([je(0x0,_0x21afd6(L))],I);var Me=Object['defineProperty'],ke=Object[_0xb97ebd(0x1d1)],Ge=(_0x2c844e,_0x3c1b21,_0x11f24f)=>_0x3c1b21 in _0x2c844e?Me(_0x2c844e,_0x3c1b21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11f24f}):_0x2c844e[_0x3c1b21]=_0x11f24f,We=(_0x1cf6a1,_0x37d751,_0x39b8ad,_0x165be1)=>{for(var _0x7a9cb6=_0x165be1>0x1?void 0x0:_0x165be1?ke(_0x37d751,_0x39b8ad):_0x37d751,_0xba2f44=_0x1cf6a1['length']-0x1,_0x1d3735;_0xba2f44>=0x0;_0xba2f44--)(_0x1d3735=_0x1cf6a1[_0xba2f44])&&(_0x7a9cb6=_0x1d3735(_0x7a9cb6)||_0x7a9cb6);return _0x7a9cb6;},F=(_0x2647c3,_0x3a5df3)=>(_0x598f72,_0x5d6f48)=>_0x3a5df3(_0x598f72,_0x5d6f48,_0x2647c3),B=(_0x32963c,_0x1574cd,_0x4b5623)=>Ge(_0x32963c,typeof _0x1574cd!='symbol'?_0x1574cd+'':_0x1574cd,_0x4b5623);const Ye=_0xb97ebd(0x18a);function _0x5a47(){const _0x47b424=['displayName','params','getOwnPropertyDescriptor','div','_commandService','add','currentColor','none','_commandDisposable','following','IDLE','entries','_status$','887670RrQrHk','shouldShareOperation','ONLINE','mask','_handleNewHost','set','type','replace','You\x27are\x20offline.','dispose$','onStarting','text','_univerInstanceService','Start\x20following','_startLiveShareCoordinator','unitId','length','UniverIcon','onRendered','complete','clear','222GrZTuq','override','848832igNGWH','current','univerjs-icon\x20univerjs-icon-','requireSession','end','LIVESHARE_TERMINATE','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','_handleNewChangeSets','LIVESHARE_OPERATION','children','_mountLiveShare','defs','LIVESHARE_REQUEST_HOST','LiveShareIcon','1em','UNIVER_SHEET','forEach','getTypeOfUnitDisposed$','disposeWithMe','_fetchOperations','FOLLOWING','symbol','Stop\x20following','fill','unsubscribe','_sharedOperations','substring','next','0\x200\x2017\x2017','Start','createInstance','presenter','mutations','has','xlink:href','_reporters','OFFLINE','_startFollowing','_handleOnline','You\x27re\x20presenting\x20the\x20document','getMemberID','includes','map','UNIVER_UNKNOWN','random','data','3372vHaGuI','_stopFollowing','1230rZpCbz','_injector','find','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','idle','startFollowing','parse','pipe','_status','32VQuTWB','string','You\x27re\x20following\x20the\x20presenter','init','offline','10FPltqm','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','_uiPartsService','executeCommand','stringify','Present\x20this\x20document','UNIVER_LIVE_SHARE_PLUGIN','memberID','_startPresenting','url(#$1','_config','asObservable','_presenter','getLiveShareCoordinatorSync','getInitialStates','getLiveShareCoordinator','21gwYUKA','trim','tryStartPresenting','_collabSession','delete','getUnitId','registerSharedOperation','univer-size-4','814517IALzsd','idSuffix','live-share-icon','_stopPresenting','get','19002QcPxCr','colorChannel1','operations','path','_unitID','tag','NOT_FOLLOWING','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerComponent','event$','assign','sheet','dispose','_handleOperation','defineProperty','send','button','onCommandExecuted','default','_configService','not-following','attrs','11008spDGtU','status$','1485110yDBSiE','then','_handleOffline','live-share.config','stopPresenting','_collabSessionService','subscribe','22555KtoOyF','reverse','_init','getStatus','presenting','evenodd','PRESENTING','_liveShareService','getTypeOfUnitAdded$','stopFollowing','getCurrentTypeOfUnit$','OPERATION','_beIdle','_entities'];_0x5a47=function(){return _0x47b424;};return _0x5a47();}let b=class extends _0x306fe4{constructor(_0x103448=T,_0x147663,_0x153121){const _0x1b6785=_0xb97ebd;super(),this[_0x1b6785(0x18e)]=_0x103448,this[_0x1b6785(0x177)]=_0x147663,this[_0x1b6785(0x1b5)]=_0x153121;const {..._0x5d4092}=_0x1a51a5({},T,this[_0x1b6785(0x18e)]);this[_0x1b6785(0x1b5)]['setConfig'](ye,_0x5d4092);}[_0xb97ebd(0x138)](){const _0x3c3eb4=_0xb97ebd;_0x533093(this[_0x3c3eb4(0x177)],_0x47b025([[L],[S],[I],[m]],this['_config'][_0x3c3eb4(0x144)])),_0x4a7426(this[_0x3c3eb4(0x177)],[[I]]);}[_0xb97ebd(0x140)](){_0x4a7426(this['_injector'],[[m]]);}};B(b,_0xb97ebd(0x134),_0x577e21[_0xb97ebd(0x171)]),B(b,'pluginName',Ye),b=We([_0x362c5b(_0x11a085),F(0x1,_0x21afd6(_0xcfdfef)),F(0x2,_0x5f372e)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1c178b=_0x1be7;(function(_0x9a7de9,_0x4f5431){const _0x5cebfc=_0x1be7,_0x213270=_0x9a7de9();while(!![]){try{const _0x120d18=-parseInt(_0x5cebfc(0x1e6))/0x1*(-parseInt(_0x5cebfc(0x1d5))/0x2)+-parseInt(_0x5cebfc(0x1ea))/0x3+-parseInt(_0x5cebfc(0x1eb))/0x4*(parseInt(_0x5cebfc(0x1e1))/0x5)+parseInt(_0x5cebfc(0x1d3))/0x6*(-parseInt(_0x5cebfc(0x1db))/0x7)+-parseInt(_0x5cebfc(0x1cc))/0x8+-parseInt(_0x5cebfc(0x1ed))/0x9*(parseInt(_0x5cebfc(0x1e2))/0xa)+parseInt(_0x5cebfc(0x1d0))/0xb*(parseInt(_0x5cebfc(0x1e3))/0xc);if(_0x120d18===_0x4f5431)break;else _0x213270['push'](_0x213270['shift']());}catch(_0x2a778e){_0x213270['push'](_0x213270['shift']());}}}(_0x1cf1,0xde180));import{LiveShareController as _0x47a018,LiveShareStatus as _0x3693bf}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x50ef0c}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x1b610e}from'@univerjs/sheets';import{SetScrollOperation as _0x4ca1cb}from'@univerjs/sheets-ui';import{FRange as _0x1e9e1c}from'@univerjs/sheets/facade';import{FUniver as _0x319b88,FEnum as _0x22993b}from'@univerjs/core/facade';class I extends _0x1e9e1c{[_0x1c178b(0x1e7)](_0x5be704,_0x56810c,_0x114525,_0x435153,_0x5d3c60){const _0x4df822=_0x1c178b,_0x3e69ea=_0x5be704['get'](_0x47a018),_0x1dc3ef=_0x5be704['get'](_0x50ef0c),_0x4873a3=_0x56810c[_0x4df822(0x1d1)](),_0xa450e7=_0x56810c[_0x4df822(0x1ec)](),_0x1e2f52=_0x3e69ea[_0x4df822(0x1dd)](_0x4873a3);(_0x1e2f52==null?void 0x0:_0x1e2f52['getStatus']())!==_0x3693bf[_0x4df822(0x1cd)]||(_0x114525[_0x4df822(0x1ce)]()!==_0xa450e7[_0x4df822(0x1ce)]()&&this['_commandService']['executeCommand'](_0x1b610e['id'],{'unitId':_0x4873a3,'subUnitId':_0x114525[_0x4df822(0x1ce)]()}),!_0x1dc3ef['getRenderById'](_0x4873a3))||_0x5d3c60[_0x4df822(0x1d6)](_0x4ca1cb['id'],{'unitId':_0x56810c['getUnitId'](),'sheetId':_0x114525[_0x4df822(0x1ce)](),'sheetViewStartRow':_0x435153[_0x4df822(0x1de)],'sheetViewStartColumn':_0x435153[_0x4df822(0x1e4)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x1cf1(){const _0xa81050=['extend','1405JTWjUt','2690pVPEOS','1080fLfizS','startColumn','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1CaRsJT','_initialize','getActiveWorkbook','getLiveShareStatus','3252183tydlra','19036FhaerX','getActiveSheet','18234shIGFX','No\x20active\x20workbook\x20found.','11731800GfIFWO','PRESENTING','getSheetId','get','524271tJqBkl','getUnitId','getId','633054YGyMDb','startPresenting','2950102wenZUq','syncExecuteCommand','_injector','LiveShareStatusEnum','stopFollowing','stopPresenting','28fXtxMX','startFollowing','getLiveShareCoordinatorSync','startRow','getStatus'];_0x1cf1=function(){return _0xa81050;};return _0x1cf1();}_0x1e9e1c[_0x1c178b(0x1e0)](I);class m extends _0x319b88{[_0x1c178b(0x1e9)](){const _0x4fea01=_0x1c178b;var _0x49b776,_0x390357;const _0x262cc4=this[_0x4fea01(0x1d7)]['get'](_0x47a018),_0x3021f1=(_0x49b776=this['getActiveWorkbook']())==null?void 0x0:_0x49b776['getId']();if(!_0x3021f1)throw new Error(_0x4fea01(0x1cb));const _0xbeba85=_0x262cc4[_0x4fea01(0x1dd)](_0x3021f1);return(_0x390357=_0xbeba85==null?void 0x0:_0xbeba85[_0x4fea01(0x1df)]())!=null?_0x390357:_0x3693bf['IDLE'];}[_0x1c178b(0x1dc)](){const _0x35039a=_0x1c178b;var _0x17a814;const _0xa441a0=this[_0x35039a(0x1d7)][_0x35039a(0x1cf)](_0x47a018),_0x3aca87=(_0x17a814=this[_0x35039a(0x1e8)]())==null?void 0x0:_0x17a814[_0x35039a(0x1d2)]();if(!_0x3aca87)throw new Error(_0x35039a(0x1cb));const _0x489594=_0xa441a0[_0x35039a(0x1dd)](_0x3aca87);if(!_0x489594)throw new Error(_0x35039a(0x1e5));_0x489594['startFollowing']();}[_0x1c178b(0x1d9)](){const _0x52142b=_0x1c178b;var _0x4dd9d8;const _0x33876b=this['_injector'][_0x52142b(0x1cf)](_0x47a018),_0x463b4c=(_0x4dd9d8=this[_0x52142b(0x1e8)]())==null?void 0x0:_0x4dd9d8[_0x52142b(0x1d2)]();if(!_0x463b4c)throw new Error(_0x52142b(0x1cb));const _0x122f86=_0x33876b[_0x52142b(0x1dd)](_0x463b4c);if(!_0x122f86)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x122f86[_0x52142b(0x1d9)]();}[_0x1c178b(0x1d4)](){const _0x48c5b6=_0x1c178b;var _0x3cd489;const _0x4fcd3f=this[_0x48c5b6(0x1d7)][_0x48c5b6(0x1cf)](_0x47a018),_0x242740=(_0x3cd489=this[_0x48c5b6(0x1e8)]())==null?void 0x0:_0x3cd489['getId']();if(!_0x242740)throw new Error('No\x20active\x20workbook\x20found.');const _0x26f04d=_0x4fcd3f[_0x48c5b6(0x1dd)](_0x242740);if(!_0x26f04d)throw new Error(_0x48c5b6(0x1e5));_0x26f04d['tryStartPresenting']();}[_0x1c178b(0x1da)](){const _0x16e598=_0x1c178b;var _0x3ab207;const _0x24a490=this[_0x16e598(0x1d7)][_0x16e598(0x1cf)](_0x47a018),_0xbfe21f=(_0x3ab207=this[_0x16e598(0x1e8)]())==null?void 0x0:_0x3ab207[_0x16e598(0x1d2)]();if(!_0xbfe21f)throw new Error(_0x16e598(0x1cb));const _0x1d4eed=_0x24a490[_0x16e598(0x1dd)](_0xbfe21f);if(!_0x1d4eed)throw new Error(_0x16e598(0x1e5));_0x1d4eed[_0x16e598(0x1da)]();}}_0x319b88[_0x1c178b(0x1e0)](m);class C extends _0x22993b{get[_0x1c178b(0x1d8)](){return _0x3693bf;}}function _0x1be7(_0x448558,_0x4a7bcb){const _0x1cf1f4=_0x1cf1();return _0x1be7=function(_0x1be7cf,_0x1b6765){_0x1be7cf=_0x1be7cf-0x1cb;let _0x56d3c4=_0x1cf1f4[_0x1be7cf];return _0x56d3c4;},_0x1be7(_0x448558,_0x4a7bcb);}_0x22993b[_0x1c178b(0x1e0)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x373afb=_0xfdad;(function(_0x331313,_0x105631){const _0xbae83=_0xfdad,_0x5c5324=_0x331313();while(!![]){try{const _0x4abc6b=parseInt(_0xbae83(0x9a))/0x1+-parseInt(_0xbae83(0xa1))/0x2*(-parseInt(_0xbae83(0xb8))/0x3)+-parseInt(_0xbae83(0xea))/0x4*(parseInt(_0xbae83(0x11f))/0x5)+parseInt(_0xbae83(0x12c))/0x6*(-parseInt(_0xbae83(0x12d))/0x7)+parseInt(_0xbae83(0xec))/0x8+parseInt(_0xbae83(0xf8))/0x9*(-parseInt(_0xbae83(0xf7))/0xa)+-parseInt(_0xbae83(0xbe))/0xb*(parseInt(_0xbae83(0x11c))/0xc);if(_0x4abc6b===_0x105631)break;else _0x5c5324['push'](_0x5c5324['shift']());}catch(_0x779218){_0x5c5324['push'](_0x5c5324['shift']());}}}(_0x2c6a,0xad834));var J=Object[_0x373afb(0xca)],K=(_0x23cba8,_0x2013d3,_0x42f183)=>_0x2013d3 in _0x23cba8?J(_0x23cba8,_0x2013d3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42f183}):_0x23cba8[_0x2013d3]=_0x42f183,u=(_0x1860e1,_0x27c00e,_0x5cf248)=>K(_0x1860e1,typeof _0x27c00e!=_0x373afb(0x119)?_0x27c00e+'':_0x27c00e,_0x5cf248);import{Disposable as _0x2fe247,toDisposable as _0x1ac75e,IUniverInstanceService as _0x34e9fa,Inject as _0x44b869,Injector as _0x9ae918,IConfigService as _0x4f1855,ICommandService as _0x4c5df3,RxDisposable as _0x372ae2,UniverInstanceType as _0x3279a2,DisposableCollection as _0x4e5770,CommandType as _0x3d9b5a,DependentOn as _0xacdf87,Plugin as _0x31b36f,merge as _0x1066e5,registerDependencies as _0x1e94e5,mergeOverrideWithDependencies as _0xef3678,touchDependencies as _0x495760}from'@univerjs/core';import{useDependency as _0x228f76,useObservable as _0x4b62b2,IUIPartsService as _0x19674a,BuiltInUIPart as _0x50235b,connectInjector as _0xd9524e}from'@univerjs/ui';import{jsx as _0x38bc83,jsxs as _0x5c6850,Fragment as _0x3d4178}from'react/jsx-runtime';import{Dropdown as _0x425cde,clsx as _0x1f887d,Button as _0x4c4b88}from'@univerjs/design';import{useRef as _0x4fde8f,createElement as _0x564b18,forwardRef as _0x47812d,useState as _0x348257,useEffect as _0x56a4e1}from'react';function _0xfdad(_0x1fb984,_0xc98ef4){const _0x2c6a67=_0x2c6a();return _0xfdad=function(_0xfdada9,_0x3439d2){_0xfdada9=_0xfdada9-0x8b;let _0x50407c=_0x2c6a67[_0xfdada9];return _0x50407c;},_0xfdad(_0x1fb984,_0xc98ef4);}import{CollaborationEvent as _0x8c2ef9,parseProtocolChangeset as _0x1b1fac}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x386d31,SessionStatus as _0x2b61a0,UniverCollaborationClientPlugin as _0x2b2af9}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3e4c4f,SetWorksheetActiveOperation as _0x573678}from'@univerjs/sheets';import{BehaviorSubject as _0x59b090,Subject as _0x241eea}from'rxjs';import{takeUntil as _0x1ece35,throttleTime as _0x8122a8}from'rxjs/operators';import{SetZoomRatioOperation as _0x134bb0,SetScrollOperation as _0x355a6f}from'@univerjs/sheets-ui';function k({ref:_0x36d23e,..._0x24625c}){const _0x3df57a=_0x373afb,{icon:_0x5b67e1,id:_0x72f218,className:_0x338231,extend:_0x4f1020,..._0x1a6576}=_0x24625c,_0xa1e11c=(_0x3df57a(0x121)+_0x72f218+'\x20'+(_0x338231||''))[_0x3df57a(0xc1)](),_0x35a027=_0x4fde8f('_'+Oe());return G(_0x5b67e1,''+_0x72f218,{'defIds':_0x5b67e1[_0x3df57a(0x124)],'idSuffix':_0x35a027[_0x3df57a(0xef)]},{'ref':_0x36d23e,'className':_0xa1e11c,..._0x1a6576},_0x4f1020);}function G(_0x5245ff,_0x468b5f,_0x1bce61,_0x50066b,_0x8dbfeb){const _0x48cfa7=_0x373afb;return _0x564b18(_0x5245ff[_0x48cfa7(0xfa)],{'key':_0x468b5f,...be(_0x5245ff,_0x1bce61,_0x8dbfeb),..._0x50066b},(Ee(_0x5245ff,_0x1bce61)[_0x48cfa7(0xad)]||[])[_0x48cfa7(0x114)]((_0x2ff82e,_0x408c5f)=>G(_0x2ff82e,_0x468b5f+'-'+_0x5245ff['tag']+'-'+_0x408c5f,_0x1bce61,void 0x0,_0x8dbfeb)));}function be(_0x4dc6cc,_0x473a0d,_0x2d75c5){const _0x1dec6b=_0x373afb,_0x1c7563={..._0x4dc6cc['attrs']};_0x2d75c5!=null&&_0x2d75c5[_0x1dec6b(0x95)]&&_0x1c7563[_0x1dec6b(0x118)]===_0x1dec6b(0x95)&&(_0x1c7563['fill']=_0x2d75c5[_0x1dec6b(0x95)]),_0x4dc6cc[_0x1dec6b(0xfa)]===_0x1dec6b(0xe3)&&_0x1c7563['id']&&(_0x1c7563['id']=_0x1c7563['id']+_0x473a0d[_0x1dec6b(0x113)]),Object[_0x1dec6b(0xf9)](_0x1c7563)[_0x1dec6b(0xa2)](([_0x312f9a,_0x461259])=>{const _0x4d45d2=_0x1dec6b;_0x312f9a===_0x4d45d2(0xe3)&&typeof _0x461259=='string'&&(_0x1c7563[_0x312f9a]=_0x461259['replace'](/url\(#(.*)\)/,_0x4d45d2(0x9e)+_0x473a0d['idSuffix']+')'));});const {defIds:_0x2994f7}=_0x473a0d;return!_0x2994f7||_0x2994f7['length']===0x0||(_0x4dc6cc[_0x1dec6b(0xfa)]==='use'&&_0x1c7563[_0x1dec6b(0xf2)]&&(_0x1c7563[_0x1dec6b(0xf2)]=_0x1c7563[_0x1dec6b(0xf2)]+_0x473a0d[_0x1dec6b(0x113)]),Object[_0x1dec6b(0xf9)](_0x1c7563)[_0x1dec6b(0xa2)](([_0x4fcb71,_0x63504b])=>{const _0x17ed05=_0x1dec6b;typeof _0x63504b==_0x17ed05(0xb9)&&(_0x1c7563[_0x4fcb71]=_0x63504b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x473a0d[_0x17ed05(0x113)]+')'));})),_0x1c7563;}function Ee(_0x2b60a4,_0x3af416){const _0x356020=_0x373afb;var _0x5baccd;const {defIds:_0x41fa5c}=_0x3af416;return!_0x41fa5c||_0x41fa5c[_0x356020(0xa7)]===0x0?_0x2b60a4:_0x2b60a4[_0x356020(0xfa)]===_0x356020(0xc3)&&((_0x5baccd=_0x2b60a4[_0x356020(0xad)])!=null&&_0x5baccd[_0x356020(0xa7)])?{..._0x2b60a4,'children':_0x2b60a4[_0x356020(0xad)][_0x356020(0x114)](_0x24d51b=>typeof _0x24d51b['attrs']['id']==_0x356020(0xb9)&&_0x41fa5c&&_0x41fa5c[_0x356020(0x111)](_0x24d51b[_0x356020(0x100)]['id'])?{..._0x24d51b,'attrs':{..._0x24d51b['attrs'],'id':_0x24d51b[_0x356020(0x100)]['id']+_0x3af416[_0x356020(0x113)]}}:_0x24d51b)}:_0x2b60a4;}function Oe(){const _0x30e88e=_0x373afb;return Math[_0x30e88e(0xd0)]()['toString'](0x24)[_0x30e88e(0x9f)](0x2,0x8);}k[_0x373afb(0xd4)]='UniverIcon';const we={'tag':_0x373afb(0xb3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x373afb(0x10f),'viewBox':_0x373afb(0xaa),'width':_0x373afb(0xe4),'height':_0x373afb(0xe4)},'children':[{'tag':_0x373afb(0x115),'attrs':{'fill':_0x373afb(0x102),'d':_0x373afb(0xab)}},{'tag':_0x373afb(0x115),'attrs':{'fill':_0x373afb(0x102),'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':_0x373afb(0xa0),'clipRule':_0x373afb(0xa0)}}]},W=_0x47812d(function(_0x5325a4,_0x42d077){const _0x16bc43=_0x373afb;return _0x564b18(k,Object[_0x16bc43(0x12e)]({},_0x5325a4,{'id':_0x16bc43(0x8d),'ref':_0x42d077,'icon':we}));});W[_0x373afb(0xd4)]='LiveShareIcon';class L extends _0x2fe247{constructor(){const _0x131bcf=_0x373afb;super(...arguments),u(this,_0x131bcf(0x128),new Set()),u(this,_0x131bcf(0x12a),new Set());}['registerSharedOperation'](_0x1ca56e){const _0xd1e286=_0x373afb;return this[_0xd1e286(0x128)][_0xd1e286(0x11e)](_0x1ca56e),_0x1ac75e(()=>this[_0xd1e286(0x128)]['delete'](_0x1ca56e));}[_0x373afb(0xdb)](_0x2817e1){const _0xfe4ad1=_0x373afb;return this[_0xfe4ad1(0x12a)]['add'](_0x2817e1),_0x1ac75e(()=>this[_0xfe4ad1(0x12a)][_0xfe4ad1(0xfe)](_0x2817e1));}[_0x373afb(0x99)](_0x2dff99){const _0x5864da=_0x373afb;return this[_0x5864da(0x128)][_0x5864da(0xc4)](_0x2dff99);}[_0x373afb(0xac)](_0x2bfd8c){const _0x135b08=_0x373afb;return Array['from'](this[_0x135b08(0x12a)])[_0x135b08(0x114)](_0x15189e=>_0x15189e(_0x2bfd8c));}}var Ne=Object[_0x373afb(0xf5)],Y=(_0x4957b1,_0x28b4b8,_0x50ed55,_0x4253b4)=>{const _0x4518ef=_0x373afb;for(var _0x276a73=_0x4253b4>0x1?void 0x0:_0x4253b4?Ne(_0x28b4b8,_0x50ed55):_0x28b4b8,_0x12c417=_0x4957b1[_0x4518ef(0xa7)]-0x1,_0x1f0ef5;_0x12c417>=0x0;_0x12c417--)(_0x1f0ef5=_0x4957b1[_0x12c417])&&(_0x276a73=_0x1f0ef5(_0x276a73)||_0x276a73);return _0x276a73;},_=(_0x4ac365,_0x3f5a96)=>(_0x559595,_0x36d3c0)=>_0x3f5a96(_0x559595,_0x36d3c0,_0x4ac365);let S=class extends _0x372ae2{constructor(_0xf02443,_0x498446,_0x10a0d8){const _0x1c1a31=_0x373afb;super(),u(this,_0x1c1a31(0xc7),new Map()),(this[_0x1c1a31(0xcc)]=_0xf02443,this['_injector']=_0x498446,this['_collabSessionService']=_0x10a0d8,this[_0x1c1a31(0xf4)]());}async[_0x373afb(0xcb)](_0x1120f6){const _0x593acc=_0x373afb;return this['_entities']['has'](_0x1120f6)||await this[_0x593acc(0x8b)](_0x1120f6),this['_entities'][_0x593acc(0x110)](_0x1120f6);}['getLiveShareCoordinatorSync'](_0x35ca1c){const _0x4901f1=_0x373afb;var _0x41c180;return(_0x41c180=this[_0x4901f1(0xc7)]['get'](_0x35ca1c))!=null?_0x41c180:null;}['_init'](){const _0x436b2e=_0x373afb;this[_0x436b2e(0xcc)][_0x436b2e(0xc8)](_0x3279a2['UNIVER_SHEET'])[_0x436b2e(0x96)](_0x1ece35(this[_0x436b2e(0xc2)]))[_0x436b2e(0xb1)](async _0x1092c6=>{const _0x404ecf=_0x436b2e,_0x520e30=_0x1092c6[_0x404ecf(0xa4)]();this[_0x404ecf(0xc7)][_0x404ecf(0xc4)](_0x520e30)||this['_startLiveShareCoordinator'](_0x520e30);}),this[_0x436b2e(0xcc)][_0x436b2e(0x10d)](_0x3279a2['UNIVER_SHEET'])[_0x436b2e(0x96)](_0x1ece35(this[_0x436b2e(0xc2)]))['subscribe'](_0x442fc3=>{const _0x182aee=_0x436b2e,_0xb90867=_0x442fc3['getUnitId'](),_0x178032=this[_0x182aee(0xc7)][_0x182aee(0x110)](_0xb90867);_0x178032==null||_0x178032[_0x182aee(0xd7)]();});}async['_startLiveShareCoordinator'](_0x5444cb){const _0x404059=_0x373afb,_0x450720=await this['_collabSessionService'][_0x404059(0x92)](_0x5444cb),_0x46ae15=this['_injector'][_0x404059(0xeb)](N,_0x5444cb,_0x450720);return _0x46ae15[_0x404059(0x123)](),this['_entities'][_0x404059(0x116)](_0x5444cb,_0x46ae15),_0x46ae15;}};S=Y([_(0x0,_0x34e9fa),_(0x1,_0x44b869(_0x9ae918)),_(0x2,_0x44b869(_0x386d31))],S);var c=(_0x30a0bd=>(_0x30a0bd[_0x373afb(0x132)]='offline',_0x30a0bd['IDLE']='idle',_0x30a0bd[_0x373afb(0xbf)]=_0x373afb(0x10a),_0x30a0bd['NOT_FOLLOWING']=_0x373afb(0xf0),_0x30a0bd[_0x373afb(0x126)]=_0x373afb(0x12b),_0x30a0bd))(c||{});const Ce=_0x373afb(0xd9),De=0xc8;let N=class extends _0x372ae2{constructor(_0x1e9468,_0xec6728,_0x255ffa,_0x389a45,_0x13be00){const _0x14e226=_0x373afb;super(),u(this,'_status$',new _0x59b090('idle')),u(this,'status$',this[_0x14e226(0x134)][_0x14e226(0x130)]()),u(this,_0x14e226(0xf4),!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this['_unitID']=_0x1e9468,this[_0x14e226(0x107)]=_0xec6728,this[_0x14e226(0x10c)]=_0x255ffa,this[_0x14e226(0xbd)]=_0x389a45,this[_0x14e226(0xa3)]=_0x13be00);}get[_0x373afb(0xdc)](){const _0x5dfdf9=_0x373afb;return this[_0x5dfdf9(0x134)][_0x5dfdf9(0xff)]();}[_0x373afb(0xd7)](){const _0x146ec8=_0x373afb;var _0x722907;(_0x722907=this[_0x146ec8(0xd3)])==null||_0x722907[_0x146ec8(0xd7)](),this[_0x146ec8(0x134)]['next'](_0x146ec8(0x97)),this['_status$'][_0x146ec8(0x11a)]();}['getStatus'](){return this['_status'];}[_0x373afb(0x123)](){const _0x347c15=_0x373afb;this[_0x347c15(0xf4)]||(this[_0x347c15(0xf4)]=!0x0,this[_0x347c15(0x107)][_0x347c15(0x125)]['pipe'](_0x1ece35(this[_0x347c15(0xc2)]))[_0x347c15(0xb1)](_0x531712=>{const _0x18bdb4=_0x347c15;switch(_0x531712){case _0x2b61a0[_0x18bdb4(0x132)]:this[_0x18bdb4(0xf1)]();break;case _0x2b61a0[_0x18bdb4(0xee)]:this[_0x18bdb4(0xc6)]();break;}}),this[_0x347c15(0x107)][_0x347c15(0xe5)][_0x347c15(0x96)](_0x1ece35(this[_0x347c15(0xc2)]))[_0x347c15(0xb1)](_0x731256=>{const _0x59555a=_0x347c15,{eventID:_0x32068e}=_0x731256;switch(_0x32068e){case _0x8c2ef9['LIVESHARE_NEW_HOST']:this[_0x59555a(0x11b)](_0x731256);break;case _0x8c2ef9[_0x59555a(0xb4)]:this[_0x59555a(0xbc)](_0x731256);break;case _0x8c2ef9['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x8c2ef9[_0x59555a(0xdd)]:this[_0x59555a(0xcf)](_0x731256);break;}}));}['tryStartPresenting'](){const _0xf4b852=_0x373afb;this['_collabSession']['send']({'eventID':_0x8c2ef9[_0xf4b852(0xdf)],'data':{'unitID':this[_0xf4b852(0xc9)],'userID':this[_0xf4b852(0x107)][_0xf4b852(0xfc)]()}},this[_0xf4b852(0xc9)]);}[_0x373afb(0xfb)](){const _0x2f74fe=_0x373afb;this[_0x2f74fe(0xdc)]===_0x2f74fe(0x12b)&&(this[_0x2f74fe(0x134)][_0x2f74fe(0xce)](_0x2f74fe(0x97)),this[_0x2f74fe(0x107)][_0x2f74fe(0xcd)]({'eventID':_0x8c2ef9[_0x2f74fe(0xbb)],'data':{'unitID':this[_0x2f74fe(0xc9)]}},this[_0x2f74fe(0xc9)]));}[_0x373afb(0x103)](){const _0x1f0519=_0x373afb;this[_0x1f0519(0xdc)]===_0x1f0519(0xf0)&&(this[_0x1f0519(0x134)][_0x1f0519(0xce)]('following'),this[_0x1f0519(0x9c)]());}[_0x373afb(0x9d)](){const _0x26310d=_0x373afb;this[_0x26310d(0xdc)]===_0x26310d(0x10a)&&this['_stopFollowing']();}['_handleNewHost'](_0x194eaa){const _0x3c21c9=_0x373afb,{presenter:_0x1b032c}=_0x194eaa['data'],_0x90204e=this['_collabSession'][_0x3c21c9(0xfc)]();this[_0x3c21c9(0xd6)]=_0x1b032c,_0x1b032c===_0x90204e?(this[_0x3c21c9(0xae)](),this['_startPresenting']()):this[_0x3c21c9(0xdc)]!==_0x3c21c9(0xf0)&&(this[_0x3c21c9(0xf6)](),this[_0x3c21c9(0x9c)]());}[_0x373afb(0xa6)](){const _0x27a39b=_0x373afb,_0x5b7651={'eventID':_0x8c2ef9['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x27a39b(0xcd)](_0x5b7651,this[_0x27a39b(0xc9)]);}[_0x373afb(0x108)](){const _0x17b0d2=_0x373afb;this[_0x17b0d2(0xd6)]=null,this[_0x17b0d2(0xdc)]!==_0x17b0d2(0x12b)&&this[_0x17b0d2(0xa5)]();}[_0x373afb(0xcf)](_0x49fa0b){const _0x14c015=_0x373afb;if(this[_0x14c015(0xdc)]===_0x14c015(0x10a)&&this[_0x14c015(0xd6)]===_0x49fa0b['data'][_0x14c015(0xde)]){const _0x573164=_0x1b1fac(_0x49fa0b['data'])[_0x14c015(0x94)][_0x14c015(0xe7)]()[_0x14c015(0x9b)](_0x48f604=>_0x48f604['id']===_0x3e4c4f['id']);if(_0x573164){const _0x4240c3=_0x573164[_0x14c015(0x8f)][_0x14c015(0xd2)],_0x42bc0c=_0x573164[_0x14c015(0x8f)][_0x14c015(0x8e)]['id'];setTimeout(()=>{const _0x200fd7=_0x14c015;this[_0x200fd7(0xa3)][_0x200fd7(0x120)](_0x573678['id'],{'unitId':_0x4240c3,'subUnitId':_0x42bc0c},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x599a5d=_0x373afb;this[_0x599a5d(0x134)][_0x599a5d(0xce)](_0x599a5d(0x12b));const _0x32ccb5=new Map(),_0x1b07e1=this['_commandDisposable']=new _0x4e5770();_0x1b07e1[_0x599a5d(0x11e)](_0x1ac75e(()=>{const _0x4a2901=_0x599a5d;_0x32ccb5['forEach'](_0x5b73b2=>_0x5b73b2[_0x4a2901(0x11a)]()),_0x32ccb5[_0x4a2901(0xba)]();})),_0x1b07e1[_0x599a5d(0x11e)](this[_0x599a5d(0xa3)][_0x599a5d(0x117)](_0x172814=>{const _0x4c9d51=_0x599a5d;var _0x2efe0a;if(_0x172814[_0x4c9d51(0x133)]!==_0x3d9b5a[_0x4c9d51(0xc5)]||!this[_0x4c9d51(0xbd)]['shouldShareOperation'](_0x172814['id']))return;const {id:_0xdc67f0}=_0x172814;let _0x15672e;_0x32ccb5[_0x4c9d51(0xc4)](_0xdc67f0)?_0x15672e=_0x32ccb5[_0x4c9d51(0x110)](_0xdc67f0):(_0x15672e=new _0x241eea(),_0x32ccb5[_0x4c9d51(0x116)](_0xdc67f0,_0x15672e),_0x15672e[_0x4c9d51(0x96)](_0x8122a8((_0x2efe0a=this[_0x4c9d51(0x10c)]['getConfig'](Ce))!=null?_0x2efe0a:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4c9d51(0xb1)](_0x290e91=>{const _0x39c90c=_0x4c9d51;this['_collabSession'][_0x39c90c(0xcd)]({'eventID':_0x8c2ef9[_0x39c90c(0xb4)],'data':{'unitID':this[_0x39c90c(0xc9)],'operations':{[_0x290e91['id']]:{'id':_0x290e91['id'],'params':JSON['stringify'](_0x290e91['params'])}}}},this[_0x39c90c(0xc9)]);})),_0x15672e[_0x4c9d51(0xce)](_0x172814);})),this[_0x599a5d(0xbd)][_0x599a5d(0xac)](this[_0x599a5d(0xc9)])[_0x599a5d(0xa2)](_0x169550=>this[_0x599a5d(0x107)][_0x599a5d(0xcd)]({'eventID':_0x8c2ef9[_0x599a5d(0xb4)],'data':{'unitID':this[_0x599a5d(0xc9)],'operations':{[_0x169550['id']]:{'id':_0x169550['id'],'params':JSON[_0x599a5d(0x12f)](_0x169550['params'])}}}},this[_0x599a5d(0xc9)]));}[_0x373afb(0xf6)](){const _0x2fb652=_0x373afb;var _0x56f75a;this[_0x2fb652(0x134)]['next'](_0x2fb652(0x97)),(_0x56f75a=this[_0x2fb652(0xd3)])==null||_0x56f75a['dispose'](),this[_0x2fb652(0xd3)]=null;}[_0x373afb(0x9c)](){const _0x60c111=_0x373afb;var _0x293ce4;(_0x293ce4=this[_0x60c111(0xd3)])==null||_0x293ce4[_0x60c111(0xd7)](),this[_0x60c111(0x134)][_0x60c111(0xce)](_0x60c111(0x10a));}[_0x373afb(0xa5)](){const _0x36d7de=_0x373afb;var _0x19b8cd;this[_0x36d7de(0x134)][_0x36d7de(0xce)](_0x36d7de(0x97)),(_0x19b8cd=this[_0x36d7de(0xd3)])==null||_0x19b8cd[_0x36d7de(0xd7)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x5efc2b=_0x373afb;var _0x1d6a63;this[_0x5efc2b(0x134)][_0x5efc2b(0xce)](_0x5efc2b(0xf0)),(_0x1d6a63=this[_0x5efc2b(0xd3)])==null||_0x1d6a63[_0x5efc2b(0xd7)]();}[_0x373afb(0xbc)](_0xfcce72){const _0x3d3b04=_0x373afb;if([_0x3d3b04(0x12b),_0x3d3b04(0xf0),_0x3d3b04(0xb0)]['includes'](this[_0x3d3b04(0xdc)])||!_0xfcce72[_0x3d3b04(0xfd)][_0x3d3b04(0xa8)]||_0xfcce72[_0x3d3b04(0xfd)][_0x3d3b04(0xa8)]===this[_0x3d3b04(0x107)][_0x3d3b04(0xfc)]())return;this[_0x3d3b04(0xdc)]===_0x3d3b04(0x97)&&this[_0x3d3b04(0x9c)]();const _0x2e7ccd=_0xfcce72['data'][_0x3d3b04(0x109)];Object[_0x3d3b04(0x101)](_0x2e7ccd)[_0x3d3b04(0xa2)](_0x3c0e26=>{const _0x206e60=_0x3d3b04;this['_commandService'][_0x206e60(0x120)](_0x3c0e26['id'],_0x3c0e26['params']?JSON[_0x206e60(0x10b)](_0x3c0e26[_0x206e60(0x8f)]):null,{'fromCollab':!0x0});});}[_0x373afb(0xf1)](){const _0x5981ca=_0x373afb;var _0x195dfc;this[_0x5981ca(0x134)][_0x5981ca(0xce)](_0x5981ca(0xb0)),(_0x195dfc=this['_commandDisposable'])==null||_0x195dfc[_0x5981ca(0xd7)]();}['_handleOnline'](){const _0x2eebe4=_0x373afb;this[_0x2eebe4(0x134)][_0x2eebe4(0xce)](_0x2eebe4(0x97)),this['_fetchOperations']();}};N=Y([_(0x2,_0x4f1855),_(0x3,_0x44b869(L)),_(0x4,_0x4c5df3)],N);function Le(){const _0x790222=_0x373afb,_0x1bbd41=_0x228f76(S),_0x24afe7=_0x228f76(_0x34e9fa),_0x156f85=_0x4b62b2(()=>_0x24afe7[_0x790222(0xda)](_0x3279a2['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x2b6b96,_0x5b2543]=_0x348257(null),[_0x243175,_0x1fda9d]=_0x348257(c[_0x790222(0x91)]),_0x11b665=_0x4fde8f(null);return _0x56a4e1(()=>(_0x156f85&&_0x1bbd41[_0x790222(0xcb)](_0x156f85[_0x790222(0xa4)]())['then'](_0x53eb7f=>{const _0x32d716=_0x790222;_0x5b2543(_0x53eb7f),_0x11b665[_0x32d716(0xef)]=_0x53eb7f[_0x32d716(0xd1)][_0x32d716(0xb1)](_0x16c70c=>{_0x1fda9d(_0x16c70c);});}),()=>{const _0x10411e=_0x790222;var _0x4dc5d5;(_0x4dc5d5=_0x11b665[_0x10411e(0xef)])==null||_0x4dc5d5[_0x10411e(0xa9)](),_0x11b665[_0x10411e(0xef)]=null;}),[_0x156f85,_0x1bbd41]),_0x2b6b96?_0x38bc83(_0x425cde,{'align':_0x790222(0x11d),'disabled':_0x243175===c[_0x790222(0x132)],'className':_0x790222(0xb7),'overlay':_0x38bc83(Re,{'status':_0x243175,'coordinator':_0x2b6b96}),'children':_0x38bc83(_0x790222(0xe1),{'className':_0x1f887d(_0x790222(0x105),{'univer-cursor-not-allowed':_0x243175===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x243175!==c['OFFLINE']}),'type':_0x790222(0xe1),'children':_0x38bc83(W,{'className':_0x790222(0x135)})})}):null;}function Re(_0x4460d2){const _0xdc7a93=_0x373afb,{status:_0x5b2a2c,coordinator:_0x573a23}=_0x4460d2;switch(_0x5b2a2c){case c[_0xdc7a93(0x91)]:return _0x38bc83($e,{'coordinator':_0x573a23});case c['FOLLOWING']:return _0x38bc83(xe,{'coordinator':_0x573a23});case c[_0xdc7a93(0xd8)]:return _0x38bc83(Pe,{'coordinator':_0x573a23});case c[_0xdc7a93(0x132)]:return _0x38bc83(Te,{});case c[_0xdc7a93(0x126)]:return _0x38bc83(Ae,{'coordinator':_0x573a23});default:return null;}}function _0x2c6a(){const _0x37c689=['_config','none','get','includes','You\x27re\x20following\x20the\x20presenter','idSuffix','map','path','set','onCommandExecuted','fill','symbol','complete','_handleNewHost','192EvSVpg','end','add','5VsRZsU','executeCommand','univerjs-icon\x20univerjs-icon-','div','init','defIds','sessionStatus$','PRESENTING','You\x27re\x20not\x20following\x20the\x20presenter','_sharedOperations','pluginName','_reporters','presenting','6nizBbj','385070IDbALI','assign','stringify','asObservable','UNIVER_LIVE_SHARE_PLUGIN','OFFLINE','type','_status$','univer-size-4','_startLiveShareCoordinator','Stop\x20following','live-share-icon','sheet','params','registerComponent','IDLE','requireSession','tryStartPresenting','mutations','colorChannel1','pipe','idle','univer-mb-3\x20univer-w-full\x20univer-text-sm','shouldShareOperation','1180837YeiPDv','find','_startFollowing','stopFollowing','url(#$1','substring','evenodd','44vHQgyf','forEach','_commandService','getUnitId','_beIdle','_fetchOperations','length','presenter','unsubscribe','0\x200\x2017\x2017','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','getInitialStates','children','_stopFollowing','Start','offline','subscribe','disposeWithMe','svg','LIVESHARE_OPERATION','You\x27are\x20offline.','Present\x20this\x20document','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','113493QPGQiJ','string','clear','LIVESHARE_TERMINATE','_handleOperation','_liveShareService','362384HkaKwr','FOLLOWING','onStarting','trim','dispose$','defs','has','OPERATION','_handleOnline','_entities','getTypeOfUnitAdded$','_unitID','defineProperty','getLiveShareCoordinator','_univerInstanceService','send','next','_handleNewChangeSets','random','status$','unitId','_commandDisposable','displayName','UNIVER_UNKNOWN','_presenter','dispose','NOT_FOLLOWING','SAME_OPERATION_SHARE_INTERVAL','getCurrentTypeOfUnit$','registerInitialStateReporter','_status','NEW_CHANGESETS','memberID','LIVESHARE_REQUEST_HOST','_mountLiveShare','button','_injector','mask','1em','event$','Start\x20following','reverse','You\x27re\x20presenting\x20the\x20document','Stop\x20presenting','4882596ZhDnEo','createInstance','11229520wnrKWG','HEADER_MENU','ONLINE','current','not-following','_handleOffline','xlink:href','override','_init','getOwnPropertyDescriptor','_stopPresenting','20cEtFij','4065021sAxeLq','entries','tag','stopPresenting','getMemberID','data','delete','getValue','attrs','values','currentColor','startFollowing','default','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_uiPartsService','_collabSession','_handleTerminate','operations','following','parse','_configService','getTypeOfUnitDisposed$'];_0x2c6a=function(){return _0x37c689;};return _0x2c6a();}function $e(_0x23aefb){const _0xc849a=_0x373afb,{coordinator:_0x1b880d}=_0x23aefb;return _0x5c6850(_0x3d4178,{'children':[_0x38bc83(_0xc849a(0x122),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc849a(0xb6)}),_0x38bc83(_0x4c4b88,{'onClick':()=>_0x1b880d[_0xc849a(0x93)](),'children':_0xc849a(0xaf)})]});}function xe(_0x4ede01){const _0x5a9ef3=_0x373afb,{coordinator:_0x2a3f43}=_0x4ede01;return _0x5c6850(_0x3d4178,{'children':[_0x38bc83('div',{'className':_0x5a9ef3(0x98),'children':_0x5a9ef3(0x112)}),_0x38bc83(_0x4c4b88,{'onClick':()=>_0x2a3f43['stopFollowing'](),'children':_0x5a9ef3(0x8c)})]});}function Pe(_0xb95a9b){const _0x511281=_0x373afb,{coordinator:_0x54610c}=_0xb95a9b;return _0x5c6850(_0x3d4178,{'children':[_0x38bc83(_0x511281(0x122),{'className':_0x511281(0x98),'children':_0x511281(0x127)}),_0x38bc83(_0x4c4b88,{'variant':'text','onClick':()=>_0x54610c[_0x511281(0x103)](),'children':_0x511281(0xe6)})]});}function Ae(_0x21bdad){const _0x4a0dfd=_0x373afb,{coordinator:_0x55938b}=_0x21bdad;return _0x5c6850(_0x3d4178,{'children':[_0x38bc83('div',{'className':_0x4a0dfd(0x98),'children':_0x4a0dfd(0xe8)}),_0x38bc83(_0x4c4b88,{'variant':_0x4a0dfd(0x104),'onClick':()=>_0x55938b[_0x4a0dfd(0xfb)](),'children':_0x4a0dfd(0xe9)})]});}function Te(){const _0x59c8a4=_0x373afb;return _0x38bc83(_0x3d4178,{'children':_0x59c8a4(0xb5)});}var Fe=Object[_0x373afb(0xf5)],He=(_0x5909e2,_0x5a9129,_0x2b798b,_0xc66490)=>{const _0x2b4f85=_0x373afb;for(var _0x45b7db=_0xc66490>0x1?void 0x0:_0xc66490?Fe(_0x5a9129,_0x2b798b):_0x5a9129,_0x3d2216=_0x5909e2[_0x2b4f85(0xa7)]-0x1,_0x53f92f;_0x3d2216>=0x0;_0x3d2216--)(_0x53f92f=_0x5909e2[_0x3d2216])&&(_0x45b7db=_0x53f92f(_0x45b7db)||_0x45b7db);return _0x45b7db;},A=(_0x20702e,_0x52e5a8)=>(_0x599489,_0x30960d)=>_0x52e5a8(_0x599489,_0x30960d,_0x20702e);let m=class extends _0x2fe247{constructor(_0x36bb67,_0xe659a7){const _0x1dd5ee=_0x373afb;super(),this['_injector']=_0x36bb67,this[_0x1dd5ee(0x106)]=_0xe659a7,this[_0x1dd5ee(0xe0)]();}[_0x373afb(0xe0)](){const _0x38bdd0=_0x373afb;this[_0x38bdd0(0xb2)](this['_uiPartsService'][_0x38bdd0(0x90)](_0x50235b[_0x38bdd0(0xed)],()=>_0xd9524e(Le,this[_0x38bdd0(0xe2)])));}};m=He([A(0x0,_0x44b869(_0x9ae918)),A(0x1,_0x19674a)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x5b738b,_0x80071f,_0x24d5ae,_0x34cd1e)=>{for(var _0x419006=_0x34cd1e>0x1?void 0x0:_0x34cd1e?Ue(_0x80071f,_0x24d5ae):_0x80071f,_0x1fc4fe=_0x5b738b['length']-0x1,_0x5dafe4;_0x1fc4fe>=0x0;_0x1fc4fe--)(_0x5dafe4=_0x5b738b[_0x1fc4fe])&&(_0x419006=_0x5dafe4(_0x419006)||_0x419006);return _0x419006;},je=(_0x2eb5ac,_0x2910ce)=>(_0x577196,_0x51e6ea)=>_0x2910ce(_0x577196,_0x51e6ea,_0x2eb5ac);let I=class extends _0x2fe247{constructor(_0x1f9348){const _0x168ee8=_0x373afb;super(),this[_0x168ee8(0xbd)]=_0x1f9348,this[_0x168ee8(0xf4)]();}[_0x373afb(0xf4)](){const _0x172035=_0x373afb;[_0x134bb0['id'],_0x355a6f['id'],_0x573678['id']][_0x172035(0xa2)](_0x29018b=>{const _0xdf18ee=_0x172035;this[_0xdf18ee(0xb2)](this[_0xdf18ee(0xbd)]['registerSharedOperation'](_0x29018b));});}};I=Ve([je(0x0,_0x44b869(L))],I);var Me=Object[_0x373afb(0xca)],ke=Object[_0x373afb(0xf5)],Ge=(_0x2da04f,_0x1716bf,_0x6cc873)=>_0x1716bf in _0x2da04f?Me(_0x2da04f,_0x1716bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6cc873}):_0x2da04f[_0x1716bf]=_0x6cc873,We=(_0xc496a7,_0x1916c8,_0x11f1a5,_0x37c556)=>{const _0x467bb6=_0x373afb;for(var _0x5d3a36=_0x37c556>0x1?void 0x0:_0x37c556?ke(_0x1916c8,_0x11f1a5):_0x1916c8,_0x5071e1=_0xc496a7[_0x467bb6(0xa7)]-0x1,_0x5151eb;_0x5071e1>=0x0;_0x5071e1--)(_0x5151eb=_0xc496a7[_0x5071e1])&&(_0x5d3a36=_0x5151eb(_0x5d3a36)||_0x5d3a36);return _0x5d3a36;},F=(_0x14bed2,_0x14a0d3)=>(_0x2ae82f,_0x431a39)=>_0x14a0d3(_0x2ae82f,_0x431a39,_0x14bed2),B=(_0x380747,_0x924f52,_0x2c1642)=>Ge(_0x380747,typeof _0x924f52!=_0x373afb(0x119)?_0x924f52+'':_0x924f52,_0x2c1642);const Ye=_0x373afb(0x131);let b=class extends _0x31b36f{constructor(_0x1ecf49=T,_0x2ea4bb,_0x4930cd){const _0x30b0bb=_0x373afb;super(),this[_0x30b0bb(0x10e)]=_0x1ecf49,this['_injector']=_0x2ea4bb,this[_0x30b0bb(0x10c)]=_0x4930cd;const {..._0xc518f}=_0x1066e5({},T,this['_config']);this[_0x30b0bb(0x10c)]['setConfig'](ye,_0xc518f);}[_0x373afb(0xc0)](){const _0x587387=_0x373afb;_0x1e94e5(this[_0x587387(0xe2)],_0xef3678([[L],[S],[I],[m]],this[_0x587387(0x10e)][_0x587387(0xf3)])),_0x495760(this[_0x587387(0xe2)],[[I]]);}['onRendered'](){const _0x40efd2=_0x373afb;_0x495760(this[_0x40efd2(0xe2)],[[m]]);}};B(b,'type',_0x3279a2[_0x373afb(0xd5)]),B(b,_0x373afb(0x129),Ye),b=We([_0xacdf87(_0x2b2af9),F(0x1,_0x44b869(_0x9ae918)),F(0x2,_0x4f1855)],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 _0xb97ebd=_0x9b6e;(function(_0x3aebba,_0x2089ac){const _0x824a38=_0x9b6e,_0x160b12=_0x3aebba();while(!![]){try{const _0x502100=parseInt(_0x824a38(0x19c))/0x1+parseInt(_0x824a38(0x143))/0x2*(-parseInt(_0x824a38(0x1a1))/0x3)+parseInt(_0x824a38(0x1b8))/0x4*(parseInt(_0x824a38(0x176))/0x5)+parseInt(_0x824a38(0x145))/0x6*(parseInt(_0x824a38(0x194))/0x7)+-parseInt(_0x824a38(0x17f))/0x8*(parseInt(_0x824a38(0x12e))/0x9)+parseInt(_0x824a38(0x184))/0xa*(parseInt(_0x824a38(0x1ba))/0xb)+-parseInt(_0x824a38(0x174))/0xc*(parseInt(_0x824a38(0x1c1))/0xd);if(_0x502100===_0x2089ac)break;else _0x160b12['push'](_0x160b12['shift']());}catch(_0x42732b){_0x160b12['push'](_0x160b12['shift']());}}}(_0x5a47,0x71b8e));var J=Object[_0xb97ebd(0x1b0)],K=(_0x1dcce9,_0x3ca04b,_0x1caa7a)=>_0x3ca04b in _0x1dcce9?J(_0x1dcce9,_0x3ca04b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1caa7a}):_0x1dcce9[_0x3ca04b]=_0x1caa7a,u=(_0x18f61b,_0xf096fe,_0x26adcb)=>K(_0x18f61b,typeof _0xf096fe!=_0xb97ebd(0x15b)?_0xf096fe+'':_0xf096fe,_0x26adcb);import{Disposable as _0x377436,toDisposable as _0x406d9b,IUniverInstanceService as _0x5ecf6c,Inject as _0x21afd6,Injector as _0xcfdfef,IConfigService as _0x5f372e,ICommandService as _0x190649,RxDisposable as _0x11add2,UniverInstanceType as _0x577e21,DisposableCollection as _0x7bc84b,CommandType as _0x3cef27,DependentOn as _0x362c5b,Plugin as _0x306fe4,merge as _0x1a51a5,registerDependencies as _0x533093,mergeOverrideWithDependencies as _0x47b025,touchDependencies as _0x4a7426}from'@univerjs/core';import{useDependency as _0x1320d6,useObservable as _0x518c90,IUIPartsService as _0x2d5715,BuiltInUIPart as _0x3439ae,connectInjector as _0x24235a}from'@univerjs/ui';import{jsx as _0x580725,jsxs as _0x1abc97,Fragment as _0x2c36f8}from'react/jsx-runtime';import{Dropdown as _0x270a52,clsx as _0xc4ee54,Button as _0x613aad}from'@univerjs/design';function _0x9b6e(_0x120f2b,_0x1942b4){const _0x5a4722=_0x5a47();return _0x9b6e=function(_0x9b6e2f,_0x46a200){_0x9b6e2f=_0x9b6e2f-0x12c;let _0x147712=_0x5a4722[_0x9b6e2f];return _0x147712;},_0x9b6e(_0x120f2b,_0x1942b4);}import{useRef as _0x1062c7,createElement as _0x391261,forwardRef as _0xa6af3f,useState as _0x396812,useEffect as _0x1482f8}from'react';import{CollaborationEvent as _0x16f67c,parseProtocolChangeset as _0x583902}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1fcb99,SessionStatus as _0x52fa7b,UniverCollaborationClientPlugin as _0x11a085}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x258803,SetWorksheetActiveOperation as _0x20c513}from'@univerjs/sheets';import{BehaviorSubject as _0x34692e,Subject as _0x2766e6}from'rxjs';import{takeUntil as _0x1d5b79,throttleTime as _0x1ffa79}from'rxjs/operators';import{SetZoomRatioOperation as _0x1d388b,SetScrollOperation as _0x5ae5dd}from'@univerjs/sheets-ui';function k({ref:_0x238dc1,..._0x4846f8}){const _0x21c4a0=_0xb97ebd,{icon:_0x2a0ef5,id:_0x1d4d6f,className:_0x4518d7,extend:_0x4da51a,..._0x241414}=_0x4846f8,_0x7af0eb=(_0x21c4a0(0x147)+_0x1d4d6f+'\x20'+(_0x4518d7||''))[_0x21c4a0(0x195)](),_0x4050f5=_0x1062c7('_'+Oe());return G(_0x2a0ef5,''+_0x1d4d6f,{'defIds':_0x2a0ef5['defIds'],'idSuffix':_0x4050f5[_0x21c4a0(0x146)]},{'ref':_0x238dc1,'className':_0x7af0eb,..._0x241414},_0x4da51a);}function G(_0x53a55d,_0x5cb432,_0x180dd1,_0x4153dc,_0x4c6cea){const _0x2e49e2=_0xb97ebd;return _0x391261(_0x53a55d['tag'],{'key':_0x5cb432,...be(_0x53a55d,_0x180dd1,_0x4c6cea),..._0x4153dc},(Ee(_0x53a55d,_0x180dd1)[_0x2e49e2(0x14f)]||[])[_0x2e49e2(0x170)]((_0x131181,_0x20aa16)=>G(_0x131181,_0x5cb432+'-'+_0x53a55d['tag']+'-'+_0x20aa16,_0x180dd1,void 0x0,_0x4c6cea)));}function be(_0x59171a,_0x5d8324,_0x5c27e7){const _0x37f93d=_0xb97ebd,_0x439f83={..._0x59171a['attrs']};_0x5c27e7!=null&&_0x5c27e7[_0x37f93d(0x1a2)]&&_0x439f83[_0x37f93d(0x15d)]===_0x37f93d(0x1a2)&&(_0x439f83[_0x37f93d(0x15d)]=_0x5c27e7[_0x37f93d(0x1a2)]),_0x59171a[_0x37f93d(0x1a6)]===_0x37f93d(0x131)&&_0x439f83['id']&&(_0x439f83['id']=_0x439f83['id']+_0x5d8324[_0x37f93d(0x19d)]),Object['entries'](_0x439f83)['forEach'](([_0x3d5796,_0x342693])=>{const _0x3ed0e9=_0x37f93d;_0x3d5796==='mask'&&typeof _0x342693=='string'&&(_0x439f83[_0x3d5796]=_0x342693[_0x3ed0e9(0x135)](/url\(#(.*)\)/,_0x3ed0e9(0x18d)+_0x5d8324[_0x3ed0e9(0x19d)]+')'));});const {defIds:_0x15c13c}=_0x5d8324;return!_0x15c13c||_0x15c13c[_0x37f93d(0x13e)]===0x0||(_0x59171a[_0x37f93d(0x1a6)]==='use'&&_0x439f83[_0x37f93d(0x168)]&&(_0x439f83[_0x37f93d(0x168)]=_0x439f83[_0x37f93d(0x168)]+_0x5d8324[_0x37f93d(0x19d)]),Object[_0x37f93d(0x12c)](_0x439f83)[_0x37f93d(0x156)](([_0xb53333,_0x5bac18])=>{const _0x392f0b=_0x37f93d;typeof _0x5bac18=='string'&&(_0x439f83[_0xb53333]=_0x5bac18[_0x392f0b(0x135)](/url\(#(.*)\)/,_0x392f0b(0x18d)+_0x5d8324[_0x392f0b(0x19d)]+')'));})),_0x439f83;}function Ee(_0x277a4,_0x1e831a){const _0x158661=_0xb97ebd;var _0x15f2f0;const {defIds:_0x4ed713}=_0x1e831a;return!_0x4ed713||_0x4ed713[_0x158661(0x13e)]===0x0?_0x277a4:_0x277a4[_0x158661(0x1a6)]===_0x158661(0x151)&&((_0x15f2f0=_0x277a4['children'])!=null&&_0x15f2f0[_0x158661(0x13e)])?{..._0x277a4,'children':_0x277a4[_0x158661(0x14f)][_0x158661(0x170)](_0x7fe7a0=>typeof _0x7fe7a0[_0x158661(0x1b7)]['id']==_0x158661(0x180)&&_0x4ed713&&_0x4ed713[_0x158661(0x16f)](_0x7fe7a0[_0x158661(0x1b7)]['id'])?{..._0x7fe7a0,'attrs':{..._0x7fe7a0[_0x158661(0x1b7)],'id':_0x7fe7a0['attrs']['id']+_0x1e831a[_0x158661(0x19d)]}}:_0x7fe7a0)}:_0x277a4;}function Oe(){const _0x1fcaea=_0xb97ebd;return Math[_0x1fcaea(0x172)]()['toString'](0x24)[_0x1fcaea(0x160)](0x2,0x8);}k[_0xb97ebd(0x1cf)]=_0xb97ebd(0x13f);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb97ebd(0x1d6),'viewBox':_0xb97ebd(0x162),'width':_0xb97ebd(0x154),'height':_0xb97ebd(0x154)},'children':[{'tag':_0xb97ebd(0x1a4),'attrs':{'fill':_0xb97ebd(0x1d5),'d':_0xb97ebd(0x179)}},{'tag':'path','attrs':{'fill':_0xb97ebd(0x1d5),'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':_0xb97ebd(0x1c6),'clipRule':_0xb97ebd(0x1c6)}}]},W=_0xa6af3f(function(_0x5bfd5a,_0x323284){const _0x754374=_0xb97ebd;return _0x391261(k,Object[_0x754374(0x1ac)]({},_0x5bfd5a,{'id':_0x754374(0x19e),'ref':_0x323284,'icon':we}));});W['displayName']=_0xb97ebd(0x153);class L extends _0x377436{constructor(){const _0x2d54b4=_0xb97ebd;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x2d54b4(0x169),new Set());}[_0xb97ebd(0x19a)](_0x439a83){const _0x11c447=_0xb97ebd;return this[_0x11c447(0x15f)]['add'](_0x439a83),_0x406d9b(()=>this['_sharedOperations'][_0x11c447(0x198)](_0x439a83));}['registerInitialStateReporter'](_0x3df2b2){const _0x1eb404=_0xb97ebd;return this[_0x1eb404(0x169)][_0x1eb404(0x1d4)](_0x3df2b2),_0x406d9b(()=>this[_0x1eb404(0x169)]['delete'](_0x3df2b2));}[_0xb97ebd(0x12f)](_0x1a1d5c){const _0x2b2ada=_0xb97ebd;return this[_0x2b2ada(0x15f)][_0x2b2ada(0x167)](_0x1a1d5c);}[_0xb97ebd(0x192)](_0x5dbb47){const _0x5888d9=_0xb97ebd;return Array['from'](this['_reporters'])[_0x5888d9(0x170)](_0x1c85a1=>_0x1c85a1(_0x5dbb47));}}var Ne=Object[_0xb97ebd(0x1d1)],Y=(_0x3ba1cf,_0xebda5a,_0x59ecf0,_0x36fb23)=>{const _0x266246=_0xb97ebd;for(var _0x380174=_0x36fb23>0x1?void 0x0:_0x36fb23?Ne(_0xebda5a,_0x59ecf0):_0xebda5a,_0x1fbaaf=_0x3ba1cf[_0x266246(0x13e)]-0x1,_0x495fa3;_0x1fbaaf>=0x0;_0x1fbaaf--)(_0x495fa3=_0x3ba1cf[_0x1fbaaf])&&(_0x380174=_0x495fa3(_0x380174)||_0x380174);return _0x380174;},_=(_0x1b8fe4,_0x831463)=>(_0x7fe5a8,_0x23dc84)=>_0x831463(_0x7fe5a8,_0x23dc84,_0x1b8fe4);let S=class extends _0x11add2{constructor(_0x401e43,_0x2409e8,_0x38b388){const _0x301666=_0xb97ebd;super(),u(this,_0x301666(0x1ce),new Map()),(this['_univerInstanceService']=_0x401e43,this[_0x301666(0x177)]=_0x2409e8,this[_0x301666(0x1bf)]=_0x38b388,this[_0x301666(0x1c3)]());}async[_0xb97ebd(0x193)](_0x143124){const _0x3cd7ac=_0xb97ebd;return this['_entities'][_0x3cd7ac(0x167)](_0x143124)||await this[_0x3cd7ac(0x13c)](_0x143124),this[_0x3cd7ac(0x1ce)][_0x3cd7ac(0x1a0)](_0x143124);}[_0xb97ebd(0x191)](_0xbc7c47){const _0x94a260=_0xb97ebd;var _0x116bf6;return(_0x116bf6=this[_0x94a260(0x1ce)][_0x94a260(0x1a0)](_0xbc7c47))!=null?_0x116bf6:null;}['_init'](){const _0x3fddd8=_0xb97ebd;this[_0x3fddd8(0x13a)][_0x3fddd8(0x1c9)](_0x577e21[_0x3fddd8(0x155)])['pipe'](_0x1d5b79(this[_0x3fddd8(0x137)]))[_0x3fddd8(0x1c0)](async _0x3e0775=>{const _0xf78b76=_0x3fddd8,_0x3a8a25=_0x3e0775[_0xf78b76(0x199)]();this[_0xf78b76(0x1ce)][_0xf78b76(0x167)](_0x3a8a25)||this[_0xf78b76(0x13c)](_0x3a8a25);}),this[_0x3fddd8(0x13a)][_0x3fddd8(0x157)](_0x577e21[_0x3fddd8(0x155)])['pipe'](_0x1d5b79(this[_0x3fddd8(0x137)]))[_0x3fddd8(0x1c0)](_0x39179c=>{const _0x4ad9ad=_0x3fddd8,_0x136206=_0x39179c['getUnitId'](),_0x37793b=this[_0x4ad9ad(0x1ce)][_0x4ad9ad(0x1a0)](_0x136206);_0x37793b==null||_0x37793b[_0x4ad9ad(0x1ae)]();});}async['_startLiveShareCoordinator'](_0x2ee769){const _0x12d58f=_0xb97ebd,_0x4b0b15=await this[_0x12d58f(0x1bf)][_0x12d58f(0x148)](_0x2ee769),_0x17676c=this[_0x12d58f(0x177)][_0x12d58f(0x164)](N,_0x2ee769,_0x4b0b15);return _0x17676c[_0x12d58f(0x182)](),this['_entities']['set'](_0x2ee769,_0x17676c),_0x17676c;}};S=Y([_(0x0,_0x5ecf6c),_(0x1,_0x21afd6(_0xcfdfef)),_(0x2,_0x21afd6(_0x1fcb99))],S);var c=(_0x4ddd38=>(_0x4ddd38['OFFLINE']=_0xb97ebd(0x183),_0x4ddd38['IDLE']='idle',_0x4ddd38[_0xb97ebd(0x15a)]=_0xb97ebd(0x1d8),_0x4ddd38['NOT_FOLLOWING']=_0xb97ebd(0x1b6),_0x4ddd38[_0xb97ebd(0x1c7)]=_0xb97ebd(0x1c5),_0x4ddd38))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x11add2{constructor(_0xa04050,_0x28d4db,_0x5e5341,_0x24cf1a,_0xc9a123){const _0x4277e7=_0xb97ebd;super(),u(this,_0x4277e7(0x12d),new _0x34692e(_0x4277e7(0x17a))),u(this,_0x4277e7(0x1b9),this[_0x4277e7(0x12d)][_0x4277e7(0x18f)]()),u(this,'_init',!0x1),u(this,_0x4277e7(0x1d7),null),u(this,_0x4277e7(0x190),null),(this[_0x4277e7(0x1a5)]=_0xa04050,this[_0x4277e7(0x197)]=_0x28d4db,this[_0x4277e7(0x1b5)]=_0x5e5341,this['_liveShareService']=_0x24cf1a,this[_0x4277e7(0x1d3)]=_0xc9a123);}get[_0xb97ebd(0x17e)](){const _0x14b4f4=_0xb97ebd;return this[_0x14b4f4(0x12d)]['getValue']();}['dispose'](){const _0x33f15c=_0xb97ebd;var _0x25e5c7;(_0x25e5c7=this[_0x33f15c(0x1d7)])==null||_0x25e5c7[_0x33f15c(0x1ae)](),this['_status$'][_0x33f15c(0x161)]('idle'),this[_0x33f15c(0x12d)][_0x33f15c(0x141)]();}[_0xb97ebd(0x1c4)](){const _0x5125e4=_0xb97ebd;return this[_0x5125e4(0x17e)];}[_0xb97ebd(0x182)](){const _0x4675fd=_0xb97ebd;this[_0x4675fd(0x1c3)]||(this[_0x4675fd(0x1c3)]=!0x0,this['_collabSession']['sessionStatus$'][_0x4675fd(0x17d)](_0x1d5b79(this['dispose$']))['subscribe'](_0x327610=>{const _0x424d42=_0x4675fd;switch(_0x327610){case _0x52fa7b[_0x424d42(0x16a)]:this[_0x424d42(0x1bc)]();break;case _0x52fa7b[_0x424d42(0x130)]:this[_0x424d42(0x16c)]();break;}}),this[_0x4675fd(0x197)][_0x4675fd(0x1ab)][_0x4675fd(0x17d)](_0x1d5b79(this[_0x4675fd(0x137)]))[_0x4675fd(0x1c0)](_0x57fb75=>{const _0x364de5=_0x4675fd,{eventID:_0x1047c1}=_0x57fb75;switch(_0x1047c1){case _0x16f67c['LIVESHARE_NEW_HOST']:this[_0x364de5(0x132)](_0x57fb75);break;case _0x16f67c[_0x364de5(0x14e)]:this['_handleOperation'](_0x57fb75);break;case _0x16f67c[_0x364de5(0x14a)]:this[_0x364de5(0x14c)]();break;case _0x16f67c['NEW_CHANGESETS']:this[_0x364de5(0x14d)](_0x57fb75);break;}}));}[_0xb97ebd(0x196)](){const _0x57edcd=_0xb97ebd;this[_0x57edcd(0x197)][_0x57edcd(0x1b1)]({'eventID':_0x16f67c[_0x57edcd(0x152)],'data':{'unitID':this[_0x57edcd(0x1a5)],'userID':this['_collabSession'][_0x57edcd(0x16e)]()}},this[_0x57edcd(0x1a5)]);}[_0xb97ebd(0x1be)](){const _0x57c425=_0xb97ebd;this[_0x57c425(0x17e)]==='presenting'&&(this[_0x57c425(0x12d)][_0x57c425(0x161)]('idle'),this[_0x57c425(0x197)][_0x57c425(0x1b1)]({'eventID':_0x16f67c[_0x57c425(0x14a)],'data':{'unitID':this[_0x57c425(0x1a5)]}},this[_0x57c425(0x1a5)]));}[_0xb97ebd(0x17b)](){const _0x1203ac=_0xb97ebd;this['_status']===_0x1203ac(0x1b6)&&(this['_status$']['next'](_0x1203ac(0x1d8)),this[_0x1203ac(0x16b)]());}[_0xb97ebd(0x1ca)](){const _0x12dfbd=_0xb97ebd;this['_status']===_0x12dfbd(0x1d8)&&this[_0x12dfbd(0x175)]();}[_0xb97ebd(0x132)](_0x567d18){const _0x2851ef=_0xb97ebd,{presenter:_0x3fec40}=_0x567d18[_0x2851ef(0x173)],_0xb6af38=this[_0x2851ef(0x197)][_0x2851ef(0x16e)]();this['_presenter']=_0x3fec40,_0x3fec40===_0xb6af38?(this[_0x2851ef(0x175)](),this[_0x2851ef(0x18c)]()):this[_0x2851ef(0x17e)]!==_0x2851ef(0x1b6)&&(this[_0x2851ef(0x19f)](),this['_startFollowing']());}[_0xb97ebd(0x159)](){const _0x3a57cf=_0xb97ebd,_0x4d5c7a={'eventID':_0x16f67c[_0x3a57cf(0x14b)]};this[_0x3a57cf(0x197)][_0x3a57cf(0x1b1)](_0x4d5c7a,this[_0x3a57cf(0x1a5)]);}['_handleTerminate'](){const _0x5be85b=_0xb97ebd;this[_0x5be85b(0x190)]=null,this[_0x5be85b(0x17e)]!==_0x5be85b(0x1c5)&&this[_0x5be85b(0x1cd)]();}['_handleNewChangeSets'](_0xc17d40){const _0x5870ac=_0xb97ebd;if(this[_0x5870ac(0x17e)]==='following'&&this['_presenter']===_0xc17d40[_0x5870ac(0x173)][_0x5870ac(0x18b)]){const _0x37146e=_0x583902(_0xc17d40[_0x5870ac(0x173)])[_0x5870ac(0x166)][_0x5870ac(0x1c2)]()[_0x5870ac(0x178)](_0x10fa4f=>_0x10fa4f['id']===_0x258803['id']);if(_0x37146e){const _0x52cdd2=_0x37146e[_0x5870ac(0x1d0)][_0x5870ac(0x13d)],_0x3348c5=_0x37146e[_0x5870ac(0x1d0)][_0x5870ac(0x1ad)]['id'];setTimeout(()=>{const _0x39aedf=_0x5870ac;this['_commandService'][_0x39aedf(0x187)](_0x20c513['id'],{'unitId':_0x52cdd2,'subUnitId':_0x3348c5},{'fromCollab':!0x0});});}}}[_0xb97ebd(0x18c)](){const _0xd6f309=_0xb97ebd;this[_0xd6f309(0x12d)][_0xd6f309(0x161)](_0xd6f309(0x1c5));const _0x31199b=new Map(),_0x1d4405=this['_commandDisposable']=new _0x7bc84b();_0x1d4405['add'](_0x406d9b(()=>{const _0x403979=_0xd6f309;_0x31199b[_0x403979(0x156)](_0x8acb59=>_0x8acb59['complete']()),_0x31199b[_0x403979(0x142)]();})),_0x1d4405[_0xd6f309(0x1d4)](this[_0xd6f309(0x1d3)][_0xd6f309(0x1b3)](_0x5edd8f=>{const _0x38e5f9=_0xd6f309;var _0x161b35;if(_0x5edd8f[_0x38e5f9(0x134)]!==_0x3cef27[_0x38e5f9(0x1cc)]||!this[_0x38e5f9(0x1c8)][_0x38e5f9(0x12f)](_0x5edd8f['id']))return;const {id:_0x358196}=_0x5edd8f;let _0x26f6c0;_0x31199b[_0x38e5f9(0x167)](_0x358196)?_0x26f6c0=_0x31199b[_0x38e5f9(0x1a0)](_0x358196):(_0x26f6c0=new _0x2766e6(),_0x31199b[_0x38e5f9(0x133)](_0x358196,_0x26f6c0),_0x26f6c0['pipe'](_0x1ffa79((_0x161b35=this[_0x38e5f9(0x1b5)]['getConfig'](Ce))!=null?_0x161b35:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x52d9b4=>{const _0x2abb07=_0x38e5f9;this[_0x2abb07(0x197)][_0x2abb07(0x1b1)]({'eventID':_0x16f67c[_0x2abb07(0x14e)],'data':{'unitID':this[_0x2abb07(0x1a5)],'operations':{[_0x52d9b4['id']]:{'id':_0x52d9b4['id'],'params':JSON[_0x2abb07(0x188)](_0x52d9b4[_0x2abb07(0x1d0)])}}}},this[_0x2abb07(0x1a5)]);})),_0x26f6c0[_0x38e5f9(0x161)](_0x5edd8f);})),this[_0xd6f309(0x1c8)][_0xd6f309(0x192)](this['_unitID'])['forEach'](_0x14e2d9=>this['_collabSession'][_0xd6f309(0x1b1)]({'eventID':_0x16f67c[_0xd6f309(0x14e)],'data':{'unitID':this['_unitID'],'operations':{[_0x14e2d9['id']]:{'id':_0x14e2d9['id'],'params':JSON[_0xd6f309(0x188)](_0x14e2d9[_0xd6f309(0x1d0)])}}}},this['_unitID']));}[_0xb97ebd(0x19f)](){const _0xb703ce=_0xb97ebd;var _0x317ee5;this[_0xb703ce(0x12d)][_0xb703ce(0x161)](_0xb703ce(0x17a)),(_0x317ee5=this[_0xb703ce(0x1d7)])==null||_0x317ee5['dispose'](),this[_0xb703ce(0x1d7)]=null;}['_startFollowing'](){const _0x5ccde5=_0xb97ebd;var _0xa71b36;(_0xa71b36=this[_0x5ccde5(0x1d7)])==null||_0xa71b36['dispose'](),this[_0x5ccde5(0x12d)][_0x5ccde5(0x161)](_0x5ccde5(0x1d8));}[_0xb97ebd(0x1cd)](){const _0x2ebeaa=_0xb97ebd;var _0x10a215;this['_status$'][_0x2ebeaa(0x161)](_0x2ebeaa(0x17a)),(_0x10a215=this['_commandDisposable'])==null||_0x10a215[_0x2ebeaa(0x1ae)](),this[_0x2ebeaa(0x1d7)]=null;}[_0xb97ebd(0x175)](){const _0x1d6877=_0xb97ebd;var _0x140019;this['_status$'][_0x1d6877(0x161)](_0x1d6877(0x1b6)),(_0x140019=this[_0x1d6877(0x1d7)])==null||_0x140019[_0x1d6877(0x1ae)]();}[_0xb97ebd(0x1af)](_0x3c95f8){const _0x18e827=_0xb97ebd;if([_0x18e827(0x1c5),_0x18e827(0x1b6),_0x18e827(0x183)]['includes'](this[_0x18e827(0x17e)])||!_0x3c95f8[_0x18e827(0x173)][_0x18e827(0x165)]||_0x3c95f8[_0x18e827(0x173)]['presenter']===this[_0x18e827(0x197)]['getMemberID']())return;this[_0x18e827(0x17e)]===_0x18e827(0x17a)&&this[_0x18e827(0x16b)]();const _0x13b82d=_0x3c95f8['data'][_0x18e827(0x1a3)];Object['values'](_0x13b82d)[_0x18e827(0x156)](_0x35c3c5=>{const _0x254983=_0x18e827;this[_0x254983(0x1d3)][_0x254983(0x187)](_0x35c3c5['id'],_0x35c3c5['params']?JSON[_0x254983(0x17c)](_0x35c3c5[_0x254983(0x1d0)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x97774e=_0xb97ebd;var _0x1f485f;this[_0x97774e(0x12d)][_0x97774e(0x161)](_0x97774e(0x183)),(_0x1f485f=this[_0x97774e(0x1d7)])==null||_0x1f485f['dispose']();}['_handleOnline'](){const _0x3db83a=_0xb97ebd;this[_0x3db83a(0x12d)][_0x3db83a(0x161)]('idle'),this[_0x3db83a(0x159)]();}};N=Y([_(0x2,_0x5f372e),_(0x3,_0x21afd6(L)),_(0x4,_0x190649)],N);function Le(){const _0x4616a2=_0xb97ebd,_0x29a61d=_0x1320d6(S),_0x1fed18=_0x1320d6(_0x5ecf6c),_0x5a716c=_0x518c90(()=>_0x1fed18[_0x4616a2(0x1cb)](_0x577e21['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x161b0e,_0x574f7e]=_0x396812(null),[_0x4660c1,_0x51d593]=_0x396812(c[_0x4616a2(0x1d9)]),_0x5b21d5=_0x1062c7(null);return _0x1482f8(()=>(_0x5a716c&&_0x29a61d[_0x4616a2(0x193)](_0x5a716c['getUnitId']())[_0x4616a2(0x1bb)](_0x426e7f=>{const _0x108122=_0x4616a2;_0x574f7e(_0x426e7f),_0x5b21d5[_0x108122(0x146)]=_0x426e7f[_0x108122(0x1b9)][_0x108122(0x1c0)](_0x37f5eb=>{_0x51d593(_0x37f5eb);});}),()=>{const _0x4fb283=_0x4616a2;var _0xabdb62;(_0xabdb62=_0x5b21d5['current'])==null||_0xabdb62[_0x4fb283(0x15e)](),_0x5b21d5[_0x4fb283(0x146)]=null;}),[_0x5a716c,_0x29a61d]),_0x161b0e?_0x580725(_0x270a52,{'align':_0x4616a2(0x149),'disabled':_0x4660c1===c[_0x4616a2(0x16a)],'className':_0x4616a2(0x185),'overlay':_0x580725(Re,{'status':_0x4660c1,'coordinator':_0x161b0e}),'children':_0x580725('button',{'className':_0xc4ee54(_0x4616a2(0x1a8),{'univer-cursor-not-allowed':_0x4660c1===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4660c1!==c[_0x4616a2(0x16a)]}),'type':_0x4616a2(0x1b2),'children':_0x580725(W,{'className':_0x4616a2(0x19b)})})}):null;}function Re(_0x7e8eaf){const _0x429441=_0xb97ebd,{status:_0x1c7b2e,coordinator:_0x1723d8}=_0x7e8eaf;switch(_0x1c7b2e){case c['IDLE']:return _0x580725($e,{'coordinator':_0x1723d8});case c[_0x429441(0x15a)]:return _0x580725(xe,{'coordinator':_0x1723d8});case c[_0x429441(0x1a7)]:return _0x580725(Pe,{'coordinator':_0x1723d8});case c['OFFLINE']:return _0x580725(Te,{});case c[_0x429441(0x1c7)]:return _0x580725(Ae,{'coordinator':_0x1723d8});default:return null;}}function $e(_0x144a77){const _0x5d8958=_0xb97ebd,{coordinator:_0x5f271f}=_0x144a77;return _0x1abc97(_0x2c36f8,{'children':[_0x580725(_0x5d8958(0x1d2),{'className':_0x5d8958(0x1a9),'children':_0x5d8958(0x189)}),_0x580725(_0x613aad,{'onClick':()=>_0x5f271f[_0x5d8958(0x196)](),'children':_0x5d8958(0x163)})]});}function xe(_0x24d177){const _0x895592=_0xb97ebd,{coordinator:_0x310348}=_0x24d177;return _0x1abc97(_0x2c36f8,{'children':[_0x580725(_0x895592(0x1d2),{'className':_0x895592(0x1a9),'children':_0x895592(0x181)}),_0x580725(_0x613aad,{'onClick':()=>_0x310348[_0x895592(0x1ca)](),'children':_0x895592(0x15c)})]});}function Pe(_0x3f720e){const _0x10c940=_0xb97ebd,{coordinator:_0x9e8d1}=_0x3f720e;return _0x1abc97(_0x2c36f8,{'children':[_0x580725(_0x10c940(0x1d2),{'className':_0x10c940(0x1a9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x580725(_0x613aad,{'variant':_0x10c940(0x139),'onClick':()=>_0x9e8d1['startFollowing'](),'children':_0x10c940(0x13b)})]});}function Ae(_0x1f18ba){const _0x123e9f=_0xb97ebd,{coordinator:_0x4d87f2}=_0x1f18ba;return _0x1abc97(_0x2c36f8,{'children':[_0x580725(_0x123e9f(0x1d2),{'className':_0x123e9f(0x1a9),'children':_0x123e9f(0x16d)}),_0x580725(_0x613aad,{'variant':_0x123e9f(0x1b4),'onClick':()=>_0x4d87f2[_0x123e9f(0x1be)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x199038=_0xb97ebd;return _0x580725(_0x2c36f8,{'children':_0x199038(0x136)});}var Fe=Object[_0xb97ebd(0x1d1)],He=(_0xb9922a,_0x3b7c00,_0x1862b0,_0x26ecdc)=>{for(var _0x470922=_0x26ecdc>0x1?void 0x0:_0x26ecdc?Fe(_0x3b7c00,_0x1862b0):_0x3b7c00,_0x56b2a1=_0xb9922a['length']-0x1,_0x417346;_0x56b2a1>=0x0;_0x56b2a1--)(_0x417346=_0xb9922a[_0x56b2a1])&&(_0x470922=_0x417346(_0x470922)||_0x470922);return _0x470922;},A=(_0x389f6f,_0x13590a)=>(_0xf11285,_0x2b062e)=>_0x13590a(_0xf11285,_0x2b062e,_0x389f6f);let m=class extends _0x377436{constructor(_0x4ef1f9,_0xdde6ab){const _0x346c12=_0xb97ebd;super(),this[_0x346c12(0x177)]=_0x4ef1f9,this[_0x346c12(0x186)]=_0xdde6ab,this[_0x346c12(0x150)]();}[_0xb97ebd(0x150)](){const _0x54a2de=_0xb97ebd;this[_0x54a2de(0x158)](this[_0x54a2de(0x186)][_0x54a2de(0x1aa)](_0x3439ae['HEADER_MENU'],()=>_0x24235a(Le,this[_0x54a2de(0x177)])));}};m=He([A(0x0,_0x21afd6(_0xcfdfef)),A(0x1,_0x2d5715)],m);const ye=_0xb97ebd(0x1bd),T={};var Ue=Object[_0xb97ebd(0x1d1)],Ve=(_0x4fea7c,_0x3804ca,_0x14cd9a,_0x5392a6)=>{const _0x16a58e=_0xb97ebd;for(var _0x2bd492=_0x5392a6>0x1?void 0x0:_0x5392a6?Ue(_0x3804ca,_0x14cd9a):_0x3804ca,_0x564a45=_0x4fea7c[_0x16a58e(0x13e)]-0x1,_0x459f74;_0x564a45>=0x0;_0x564a45--)(_0x459f74=_0x4fea7c[_0x564a45])&&(_0x2bd492=_0x459f74(_0x2bd492)||_0x2bd492);return _0x2bd492;},je=(_0x2fbc0d,_0x56446b)=>(_0x1a52e8,_0x24da30)=>_0x56446b(_0x1a52e8,_0x24da30,_0x2fbc0d);let I=class extends _0x377436{constructor(_0x1da181){const _0x16f374=_0xb97ebd;super(),this[_0x16f374(0x1c8)]=_0x1da181,this[_0x16f374(0x1c3)]();}[_0xb97ebd(0x1c3)](){[_0x1d388b['id'],_0x5ae5dd['id'],_0x20c513['id']]['forEach'](_0x5031de=>{const _0x23882f=_0x9b6e;this['disposeWithMe'](this[_0x23882f(0x1c8)][_0x23882f(0x19a)](_0x5031de));});}};I=Ve([je(0x0,_0x21afd6(L))],I);var Me=Object['defineProperty'],ke=Object[_0xb97ebd(0x1d1)],Ge=(_0x2c844e,_0x3c1b21,_0x11f24f)=>_0x3c1b21 in _0x2c844e?Me(_0x2c844e,_0x3c1b21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11f24f}):_0x2c844e[_0x3c1b21]=_0x11f24f,We=(_0x1cf6a1,_0x37d751,_0x39b8ad,_0x165be1)=>{for(var _0x7a9cb6=_0x165be1>0x1?void 0x0:_0x165be1?ke(_0x37d751,_0x39b8ad):_0x37d751,_0xba2f44=_0x1cf6a1['length']-0x1,_0x1d3735;_0xba2f44>=0x0;_0xba2f44--)(_0x1d3735=_0x1cf6a1[_0xba2f44])&&(_0x7a9cb6=_0x1d3735(_0x7a9cb6)||_0x7a9cb6);return _0x7a9cb6;},F=(_0x2647c3,_0x3a5df3)=>(_0x598f72,_0x5d6f48)=>_0x3a5df3(_0x598f72,_0x5d6f48,_0x2647c3),B=(_0x32963c,_0x1574cd,_0x4b5623)=>Ge(_0x32963c,typeof _0x1574cd!='symbol'?_0x1574cd+'':_0x1574cd,_0x4b5623);const Ye=_0xb97ebd(0x18a);function _0x5a47(){const _0x47b424=['displayName','params','getOwnPropertyDescriptor','div','_commandService','add','currentColor','none','_commandDisposable','following','IDLE','entries','_status$','887670RrQrHk','shouldShareOperation','ONLINE','mask','_handleNewHost','set','type','replace','You\x27are\x20offline.','dispose$','onStarting','text','_univerInstanceService','Start\x20following','_startLiveShareCoordinator','unitId','length','UniverIcon','onRendered','complete','clear','222GrZTuq','override','848832igNGWH','current','univerjs-icon\x20univerjs-icon-','requireSession','end','LIVESHARE_TERMINATE','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','_handleNewChangeSets','LIVESHARE_OPERATION','children','_mountLiveShare','defs','LIVESHARE_REQUEST_HOST','LiveShareIcon','1em','UNIVER_SHEET','forEach','getTypeOfUnitDisposed$','disposeWithMe','_fetchOperations','FOLLOWING','symbol','Stop\x20following','fill','unsubscribe','_sharedOperations','substring','next','0\x200\x2017\x2017','Start','createInstance','presenter','mutations','has','xlink:href','_reporters','OFFLINE','_startFollowing','_handleOnline','You\x27re\x20presenting\x20the\x20document','getMemberID','includes','map','UNIVER_UNKNOWN','random','data','3372vHaGuI','_stopFollowing','1230rZpCbz','_injector','find','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','idle','startFollowing','parse','pipe','_status','32VQuTWB','string','You\x27re\x20following\x20the\x20presenter','init','offline','10FPltqm','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','_uiPartsService','executeCommand','stringify','Present\x20this\x20document','UNIVER_LIVE_SHARE_PLUGIN','memberID','_startPresenting','url(#$1','_config','asObservable','_presenter','getLiveShareCoordinatorSync','getInitialStates','getLiveShareCoordinator','21gwYUKA','trim','tryStartPresenting','_collabSession','delete','getUnitId','registerSharedOperation','univer-size-4','814517IALzsd','idSuffix','live-share-icon','_stopPresenting','get','19002QcPxCr','colorChannel1','operations','path','_unitID','tag','NOT_FOLLOWING','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerComponent','event$','assign','sheet','dispose','_handleOperation','defineProperty','send','button','onCommandExecuted','default','_configService','not-following','attrs','11008spDGtU','status$','1485110yDBSiE','then','_handleOffline','live-share.config','stopPresenting','_collabSessionService','subscribe','22555KtoOyF','reverse','_init','getStatus','presenting','evenodd','PRESENTING','_liveShareService','getTypeOfUnitAdded$','stopFollowing','getCurrentTypeOfUnit$','OPERATION','_beIdle','_entities'];_0x5a47=function(){return _0x47b424;};return _0x5a47();}let b=class extends _0x306fe4{constructor(_0x103448=T,_0x147663,_0x153121){const _0x1b6785=_0xb97ebd;super(),this[_0x1b6785(0x18e)]=_0x103448,this[_0x1b6785(0x177)]=_0x147663,this[_0x1b6785(0x1b5)]=_0x153121;const {..._0x5d4092}=_0x1a51a5({},T,this[_0x1b6785(0x18e)]);this[_0x1b6785(0x1b5)]['setConfig'](ye,_0x5d4092);}[_0xb97ebd(0x138)](){const _0x3c3eb4=_0xb97ebd;_0x533093(this[_0x3c3eb4(0x177)],_0x47b025([[L],[S],[I],[m]],this['_config'][_0x3c3eb4(0x144)])),_0x4a7426(this[_0x3c3eb4(0x177)],[[I]]);}[_0xb97ebd(0x140)](){_0x4a7426(this['_injector'],[[m]]);}};B(b,_0xb97ebd(0x134),_0x577e21[_0xb97ebd(0x171)]),B(b,'pluginName',Ye),b=We([_0x362c5b(_0x11a085),F(0x1,_0x21afd6(_0xcfdfef)),F(0x2,_0x5f372e)],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 _0x46e3(_0x361284,_0xead493){const _0x918a62=_0x918a();return _0x46e3=function(_0x46e32b,_0x1c3163){_0x46e32b=_0x46e32b-0x169;let _0x6ce51f=_0x918a62[_0x46e32b];return _0x6ce51f;},_0x46e3(_0x361284,_0xead493);}(function(_0x4ce843,_0x37ba74){const _0x112e92=_0x46e3,_0x3cbe6a=_0x4ce843();while(!![]){try{const _0x3b3fd2=-parseInt(_0x112e92(0x19c))/0x1*(parseInt(_0x112e92(0x18f))/0x2)+parseInt(_0x112e92(0x17e))/0x3+parseInt(_0x112e92(0x16a))/0x4+parseInt(_0x112e92(0x189))/0x5+-parseInt(_0x112e92(0x191))/0x6+parseInt(_0x112e92(0x17f))/0x7*(-parseInt(_0x112e92(0x18c))/0x8)+parseInt(_0x112e92(0x16d))/0x9;if(_0x3b3fd2===_0x37ba74)break;else _0x3cbe6a['push'](_0x3cbe6a['shift']());}catch(_0x3343a8){_0x3cbe6a['push'](_0x3cbe6a['shift']());}}}(_0x918a,0x9a2c9),function(_0x3e32c0,_0xd6074b){const _0x2a46ba=_0x46e3;typeof exports==_0x2a46ba(0x180)&&typeof module<'u'?_0xd6074b(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==_0x2a46ba(0x18b)&&define['amd']?define([_0x2a46ba(0x17c),_0x2a46ba(0x171),_0x2a46ba(0x197),_0x2a46ba(0x183),_0x2a46ba(0x190),'@univerjs/core/facade'],_0xd6074b):(_0x3e32c0=typeof globalThis<'u'?globalThis:_0x3e32c0||self,_0xd6074b(_0x3e32c0['UniverProLiveShare'],_0x3e32c0[_0x2a46ba(0x188)],_0x3e32c0[_0x2a46ba(0x192)],_0x3e32c0['UniverSheetsUi'],_0x3e32c0[_0x2a46ba(0x169)],_0x3e32c0[_0x2a46ba(0x186)]));}(this,function(_0x480c46,_0x314493,_0x40d60d,_0x236741,_0x813475,_0xd472cd){'use strict';const _0x1b82d9=_0x46e3;class _0x55259b extends _0x813475[_0x1b82d9(0x175)]{[_0x1b82d9(0x18a)](_0xa53200,_0x27cab2,_0x12df71,_0x41a9b7,_0x3af1a1){const _0x4a0f3b=_0x1b82d9,_0x17e5a7=_0xa53200[_0x4a0f3b(0x193)](_0x480c46['LiveShareController']),_0x4bbc69=_0xa53200[_0x4a0f3b(0x193)](_0x314493[_0x4a0f3b(0x17a)]),_0x585df3=_0x27cab2[_0x4a0f3b(0x19d)](),_0x36dbd5=_0x27cab2[_0x4a0f3b(0x177)](),_0x3850a5=_0x17e5a7[_0x4a0f3b(0x17b)](_0x585df3);(_0x3850a5==null?void 0x0:_0x3850a5[_0x4a0f3b(0x178)]())!==_0x480c46[_0x4a0f3b(0x198)][_0x4a0f3b(0x18e)]||(_0x12df71[_0x4a0f3b(0x181)]()!==_0x36dbd5[_0x4a0f3b(0x181)]()&&this[_0x4a0f3b(0x179)]['executeCommand'](_0x40d60d[_0x4a0f3b(0x16e)]['id'],{'unitId':_0x585df3,'subUnitId':_0x12df71['getSheetId']()}),!_0x4bbc69[_0x4a0f3b(0x187)](_0x585df3))||_0x3af1a1[_0x4a0f3b(0x196)](_0x236741[_0x4a0f3b(0x16c)]['id'],{'unitId':_0x27cab2['getUnitId'](),'sheetId':_0x12df71['getSheetId'](),'sheetViewStartRow':_0x41a9b7[_0x4a0f3b(0x16f)],'sheetViewStartColumn':_0x41a9b7[_0x4a0f3b(0x19e)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x813475[_0x1b82d9(0x175)][_0x1b82d9(0x16b)](_0x55259b);class _0x4f7eb7 extends _0xd472cd[_0x1b82d9(0x185)]{[_0x1b82d9(0x172)](){const _0x3ed317=_0x1b82d9;var _0x4a22b2,_0x45f926;const _0x8049f1=this[_0x3ed317(0x173)]['get'](_0x480c46[_0x3ed317(0x176)]),_0x2babdb=(_0x4a22b2=this[_0x3ed317(0x199)]())==null?void 0x0:_0x4a22b2[_0x3ed317(0x194)]();if(!_0x2babdb)throw new Error(_0x3ed317(0x17d));const _0x52e352=_0x8049f1[_0x3ed317(0x17b)](_0x2babdb);return(_0x45f926=_0x52e352==null?void 0x0:_0x52e352[_0x3ed317(0x178)]())!=null?_0x45f926:_0x480c46[_0x3ed317(0x198)][_0x3ed317(0x174)];}[_0x1b82d9(0x170)](){const _0x135346=_0x1b82d9;var _0x38c63d;const _0x580361=this[_0x135346(0x173)][_0x135346(0x193)](_0x480c46[_0x135346(0x176)]),_0x60047a=(_0x38c63d=this[_0x135346(0x199)]())==null?void 0x0:_0x38c63d[_0x135346(0x194)]();if(!_0x60047a)throw new Error(_0x135346(0x17d));const _0x2093dd=_0x580361[_0x135346(0x17b)](_0x60047a);if(!_0x2093dd)throw new Error(_0x135346(0x184));_0x2093dd[_0x135346(0x170)]();}['stopFollowing'](){const _0x59c8f1=_0x1b82d9;var _0x36ffaa;const _0x1e566e=this[_0x59c8f1(0x173)][_0x59c8f1(0x193)](_0x480c46[_0x59c8f1(0x176)]),_0x4f1c89=(_0x36ffaa=this['getActiveWorkbook']())==null?void 0x0:_0x36ffaa['getId']();if(!_0x4f1c89)throw new Error(_0x59c8f1(0x17d));const _0x377a01=_0x1e566e[_0x59c8f1(0x17b)](_0x4f1c89);if(!_0x377a01)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x377a01['stopFollowing']();}[_0x1b82d9(0x182)](){const _0x24c6aa=_0x1b82d9;var _0x1c94c5;const _0x259284=this[_0x24c6aa(0x173)][_0x24c6aa(0x193)](_0x480c46[_0x24c6aa(0x176)]),_0x293a2=(_0x1c94c5=this['getActiveWorkbook']())==null?void 0x0:_0x1c94c5['getId']();if(!_0x293a2)throw new Error(_0x24c6aa(0x17d));const _0x2c51c3=_0x259284['getLiveShareCoordinatorSync'](_0x293a2);if(!_0x2c51c3)throw new Error(_0x24c6aa(0x184));_0x2c51c3[_0x24c6aa(0x19b)]();}[_0x1b82d9(0x18d)](){const _0x29f181=_0x1b82d9;var _0x2d42d7;const _0x3a0556=this[_0x29f181(0x173)][_0x29f181(0x193)](_0x480c46[_0x29f181(0x176)]),_0x2e92f9=(_0x2d42d7=this[_0x29f181(0x199)]())==null?void 0x0:_0x2d42d7[_0x29f181(0x194)]();if(!_0x2e92f9)throw new Error(_0x29f181(0x17d));const _0x1de252=_0x3a0556[_0x29f181(0x17b)](_0x2e92f9);if(!_0x1de252)throw new Error(_0x29f181(0x184));_0x1de252[_0x29f181(0x18d)]();}}_0xd472cd[_0x1b82d9(0x185)][_0x1b82d9(0x16b)](_0x4f7eb7);class _0x20b550 extends _0xd472cd[_0x1b82d9(0x195)]{get[_0x1b82d9(0x19a)](){const _0x356686=_0x1b82d9;return _0x480c46[_0x356686(0x198)];}}_0xd472cd['FEnum']['extend'](_0x20b550);}));function _0x918a(){const _0x4d7b54=['UniverCoreFacade','getRenderById','UniverEngineRender','5499820EaIISp','_initialize','function','6198784mVgyog','stopPresenting','PRESENTING','3492qBEuGd','@univerjs/sheets/facade','4457574XCUOBM','UniverSheets','get','getId','FEnum','syncExecuteCommand','@univerjs/sheets','LiveShareStatus','getActiveWorkbook','LiveShareStatusEnum','tryStartPresenting','609zbZhOH','getUnitId','startColumn','UniverSheetsFacade','4709552MbyRkt','extend','SetScrollOperation','5254533ycNRJP','SetWorksheetActiveOperation','startRow','startFollowing','@univerjs/engine-render','getLiveShareStatus','_injector','IDLE','FRange','LiveShareController','getActiveSheet','getStatus','_commandService','IRenderManagerService','getLiveShareCoordinatorSync','@univerjs-pro/live-share','No\x20active\x20workbook\x20found.','1054197vSIRKM','7RkvSyO','object','getSheetId','startPresenting','@univerjs/sheets-ui','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','FUniver'];_0x918a=function(){return _0x4d7b54;};return _0x918a();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x11c4(){const _0x513a3c=['LIVESHARE_OPERATION','_presenter','set','startFollowing','toStringTag','Dropdown','IDLE','univer-size-4','You\x27are\x20offline.','unsubscribe','_status','init','IConfigService','UniverLiveSharePlugin','getUnitId','UNIVER_UNKNOWN','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','length','has','LIVESHARE_NEW_HOST','override','LiveShare','react','You\x27re\x20following\x20the\x20presenter','_configService','DependentOn','LiveShareStatus','getValue','ICommandService','getInitialStates','data','useState','NOT_FOLLOWING','RxDisposable','LiveShareService','none','BuiltInUIPart','HEADER_MENU','dispose','registerInitialStateReporter','univer-mb-3\x20univer-w-full\x20univer-text-sm','ONLINE','tag','subscribe','presenting','UniverCore','You\x27re\x20not\x20following\x20the\x20presenter','@univerjs/ui','_status$','SessionStatus','tryStartPresenting','LIVESHARE_REQUEST_HOST','object','displayName','NEW_CHANGESETS','touchDependencies','_handleTerminate','_startLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UniverProLiveShare','Injector','FOLLOWING','getStatus','add','_reporters','presenter','@univerjs-pro/collaboration-client','LiveShareIcon','Stop\x20presenting','_handleNewHost','5KMyECp','get','UniverSheetsUi','replace','fill','PRESENTING','registerDependencies','xlink:href','_liveShareService','type','_startFollowing','0\x200\x2017\x2017','getConfig','_collabSession','getTypeOfUnitDisposed$','_collabSessionService','values','asObservable','assign','not-following','univerjs-icon\x20univerjs-icon-','SetScrollOperation','CommandType','includes','Button','UniverProCollaborationClient','Inject','getOwnPropertyDescriptor','parse','delete','_beIdle','Disposable','useEffect','UniverCollaborationClientPlugin','UniverProCollaboration','idSuffix','UniverInstanceType','registerComponent','_unitID','registerSharedOperation','entries','currentColor','UNIVER_LIVE_SHARE_PLUGIN','clsx','_mountLiveShare','CollaborationEvent','offline','clear','following','map','_commandService','requireSession','InsertSheetMutation','live-share.config','from','pluginName','Fragment','_init','_handleOperation','@univerjs/sheets','shouldShareOperation','reverse','getLiveShareCoordinator','818GnzdiK','idle','_stopPresenting','_uiPartsService','280180sGhOBP','OFFLINE','button','memberID','merge','LiveShareCoordinator','use','255GXQhic','_config','_handleNewChangeSets','symbol','mask','url(#$1','end','_injector','UniverIcon','359496EcCJqf','LiveShareController','text','substring','OPERATION','children','@univerjs-pro/collaboration','takeUntil','SetWorksheetActiveOperation','Subject','355950UdqQjF','Start\x20following','SAME_OPERATION_SHARE_INTERVAL','path','1237026WsCTtm','66445DsjNXi','defIds','throttleTime','defs','toDisposable','_sharedOperations','string','_fetchOperations','1115172iCVtpi','setConfig','LIVESHARE_TERMINATE','next','UniverUi','attrs','_handleOnline','_handleOffline','IUIPartsService','event$','http://www.w3.org/2000/svg','getTypeOfUnitAdded$','onStarting','function','_startPresenting','@univerjs/core','getMemberID','createElement','_univerInstanceService','stopPresenting','onCommandExecuted','rxjs','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','stopFollowing','mergeOverrideWithDependencies','_entities','params','1em','exports','live-share-icon','dispose$','DesktopLiveShareController','jsx','useRef','status$','getCurrentTypeOfUnit$','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','connectInjector','defineProperty','current','default','Present\x20this\x20document','complete','pipe','SetZoomRatioOperation','svg','amd','You\x27re\x20presenting\x20the\x20document','_commandDisposable','disposeWithMe','send','colorChannel1','executeCommand','_stopFollowing','forEach','UNIVER_SHEET','jsxs','div'];_0x11c4=function(){return _0x513a3c;};return _0x11c4();}function _0x2243(_0x5cd65c,_0x4a09c2){const _0x11c42b=_0x11c4();return _0x2243=function(_0x2243ec,_0x2f1572){_0x2243ec=_0x2243ec-0x183;let _0x42a1a3=_0x11c42b[_0x2243ec];return _0x42a1a3;},_0x2243(_0x5cd65c,_0x4a09c2);}(function(_0x5ba848,_0x1b6fb9){const _0x10b2ff=_0x2243,_0xc7d896=_0x5ba848();while(!![]){try{const _0x4b108c=-parseInt(_0x10b2ff(0x1bb))/0x1+parseInt(_0x10b2ff(0x198))/0x2*(parseInt(_0x10b2ff(0x1a3))/0x3)+parseInt(_0x10b2ff(0x19c))/0x4*(parseInt(_0x10b2ff(0x243))/0x5)+parseInt(_0x10b2ff(0x1b6))/0x6+parseInt(_0x10b2ff(0x1ba))/0x7+-parseInt(_0x10b2ff(0x1ac))/0x8+-parseInt(_0x10b2ff(0x1c3))/0x9;if(_0x4b108c===_0x1b6fb9)break;else _0xc7d896['push'](_0xc7d896['shift']());}catch(_0x5424ad){_0xc7d896['push'](_0xc7d896['shift']());}}}(_0x11c4,0x19c5b),function(_0x1592a1,_0xc11038){const _0x2105a0=_0x2243;typeof exports==_0x2105a0(0x231)&&typeof module<'u'?_0xc11038(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==_0x2105a0(0x1d0)&&define[_0x2105a0(0x1f1)]?define([_0x2105a0(0x1df),_0x2105a0(0x1d2),_0x2105a0(0x22c),'react/jsx-runtime','@univerjs/design',_0x2105a0(0x213),_0x2105a0(0x1b2),_0x2105a0(0x23f),_0x2105a0(0x194),_0x2105a0(0x1d8),'rxjs/operators','@univerjs/sheets-ui'],_0xc11038):(_0x1592a1=typeof globalThis<'u'?globalThis:_0x1592a1||self,_0xc11038(_0x1592a1[_0x2105a0(0x238)]={},_0x1592a1[_0x2105a0(0x22a)],_0x1592a1[_0x2105a0(0x1c7)],_0x1592a1['React'],_0x1592a1['UniverDesign'],_0x1592a1['React'],_0x1592a1[_0x2105a0(0x265)],_0x1592a1[_0x2105a0(0x25c)],_0x1592a1['UniverSheets'],_0x1592a1[_0x2105a0(0x1d8)],_0x1592a1[_0x2105a0(0x1d8)]['operators'],_0x1592a1[_0x2105a0(0x245)]));}(this,function(_0x4c1693,_0x20c1f7,_0x54245a,_0xc7886b,_0x2ba6f4,_0x5f729d,_0xe29517,_0xe899b4,_0x5b7117,_0x1fb564,_0x149d8b,_0xaa5d52){'use strict';const _0xc4a02e=_0x2243;var _0x3867c0=Object[_0xc4a02e(0x1e9)],_0x1baef1=(_0x53baf6,_0x4bd2e3,_0x53a393)=>_0x4bd2e3 in _0x53baf6?_0x3867c0(_0x53baf6,_0x4bd2e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53a393}):_0x53baf6[_0x4bd2e3]=_0x53a393,_0x586a21=(_0x3a350b,_0xcce5f,_0x247ded)=>_0x1baef1(_0x3a350b,typeof _0xcce5f!=_0xc4a02e(0x1a6)?_0xcce5f+'':_0xcce5f,_0x247ded);function _0x5dc5f6({ref:_0x5af8d7,..._0x37d8f8}){const _0x2b5b7d=_0xc4a02e,{icon:_0x5dcf74,id:_0x28c4bb,className:_0x2d5b37,extend:_0xad065a,..._0x3da77d}=_0x37d8f8,_0xd63b73=(_0x2b5b7d(0x257)+_0x28c4bb+'\x20'+(_0x2d5b37||''))['trim'](),_0x554637=_0x5f729d[_0x2b5b7d(0x1e4)]('_'+_0x31b79d());return _0x2d1bd0(_0x5dcf74,''+_0x28c4bb,{'defIds':_0x5dcf74[_0x2b5b7d(0x1bc)],'idSuffix':_0x554637[_0x2b5b7d(0x1ea)]},{'ref':_0x5af8d7,'className':_0xd63b73,..._0x3da77d},_0xad065a);}function _0x2d1bd0(_0x16156d,_0x35d756,_0x8f9b5c,_0x400592,_0x2a1fed){const _0x534671=_0xc4a02e;return _0x5f729d[_0x534671(0x1d4)](_0x16156d[_0x534671(0x227)],{'key':_0x35d756,..._0x1d6153(_0x16156d,_0x8f9b5c,_0x2a1fed),..._0x400592},(_0xd082ff(_0x16156d,_0x8f9b5c)['children']||[])[_0x534671(0x18a)]((_0x441c05,_0x5c4a26)=>_0x2d1bd0(_0x441c05,_0x35d756+'-'+_0x16156d[_0x534671(0x227)]+'-'+_0x5c4a26,_0x8f9b5c,void 0x0,_0x2a1fed)));}function _0x1d6153(_0x58f868,_0xbe9c5b,_0x469118){const _0x499442=_0xc4a02e,_0x3b9c43={..._0x58f868[_0x499442(0x1c8)]};_0x469118!=null&&_0x469118['colorChannel1']&&_0x3b9c43[_0x499442(0x247)]===_0x499442(0x1f6)&&(_0x3b9c43[_0x499442(0x247)]=_0x469118[_0x499442(0x1f6)]),_0x58f868[_0x499442(0x227)]===_0x499442(0x1a7)&&_0x3b9c43['id']&&(_0x3b9c43['id']=_0x3b9c43['id']+_0xbe9c5b[_0x499442(0x266)]),Object[_0x499442(0x26b)](_0x3b9c43)[_0x499442(0x1f9)](([_0x215302,_0x3023da])=>{const _0x505c97=_0x499442;_0x215302===_0x505c97(0x1a7)&&typeof _0x3023da==_0x505c97(0x1c1)&&(_0x3b9c43[_0x215302]=_0x3023da['replace'](/url\(#(.*)\)/,_0x505c97(0x1a8)+_0xbe9c5b[_0x505c97(0x266)]+')'));});const {defIds:_0x27bfba}=_0xbe9c5b;return!_0x27bfba||_0x27bfba[_0x499442(0x20e)]===0x0||(_0x58f868[_0x499442(0x227)]===_0x499442(0x1a2)&&_0x3b9c43[_0x499442(0x24a)]&&(_0x3b9c43[_0x499442(0x24a)]=_0x3b9c43[_0x499442(0x24a)]+_0xbe9c5b['idSuffix']),Object['entries'](_0x3b9c43)['forEach'](([_0x1af6b0,_0x393913])=>{const _0x4e437a=_0x499442;typeof _0x393913==_0x4e437a(0x1c1)&&(_0x3b9c43[_0x1af6b0]=_0x393913[_0x4e437a(0x246)](/url\(#(.*)\)/,_0x4e437a(0x1a8)+_0xbe9c5b['idSuffix']+')'));})),_0x3b9c43;}function _0xd082ff(_0x180ec2,_0x594634){const _0x2532ea=_0xc4a02e;var _0x3e53d7;const {defIds:_0x194e95}=_0x594634;return!_0x194e95||_0x194e95['length']===0x0?_0x180ec2:_0x180ec2['tag']===_0x2532ea(0x1be)&&((_0x3e53d7=_0x180ec2[_0x2532ea(0x1b1)])!=null&&_0x3e53d7[_0x2532ea(0x20e)])?{..._0x180ec2,'children':_0x180ec2[_0x2532ea(0x1b1)][_0x2532ea(0x18a)](_0x1cbee7=>typeof _0x1cbee7[_0x2532ea(0x1c8)]['id']==_0x2532ea(0x1c1)&&_0x194e95&&_0x194e95[_0x2532ea(0x25a)](_0x1cbee7[_0x2532ea(0x1c8)]['id'])?{..._0x1cbee7,'attrs':{..._0x1cbee7['attrs'],'id':_0x1cbee7['attrs']['id']+_0x594634[_0x2532ea(0x266)]}}:_0x1cbee7)}:_0x180ec2;}function _0x31b79d(){const _0x1d420f=_0xc4a02e;return Math['random']()['toString'](0x24)[_0x1d420f(0x1af)](0x2,0x8);}_0x5dc5f6['displayName']=_0xc4a02e(0x1ab);const _0x512c93={'tag':_0xc4a02e(0x1f0),'attrs':{'xmlns':_0xc4a02e(0x1cd),'fill':_0xc4a02e(0x220),'viewBox':_0xc4a02e(0x24e),'width':'1em','height':_0xc4a02e(0x1de)},'children':[{'tag':_0xc4a02e(0x1b9),'attrs':{'fill':_0xc4a02e(0x26c),'d':_0xc4a02e(0x1d9)}},{'tag':'path','attrs':{'fill':_0xc4a02e(0x26c),'d':_0xc4a02e(0x1e7),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x58e8ce=_0x5f729d['forwardRef'](function(_0x5f441d,_0x3c93c7){const _0x41f766=_0xc4a02e;return _0x5f729d['createElement'](_0x5dc5f6,Object[_0x41f766(0x255)]({},_0x5f441d,{'id':_0x41f766(0x1e0),'ref':_0x3c93c7,'icon':_0x512c93}));});_0x58e8ce[_0xc4a02e(0x232)]=_0xc4a02e(0x240);class _0x1b3fb8 extends _0x20c1f7['Disposable']{constructor(){const _0x438824=_0xc4a02e;super(...arguments),_0x586a21(this,_0x438824(0x1c0),new Set()),_0x586a21(this,_0x438824(0x23d),new Set());}['registerSharedOperation'](_0x4cfd29){const _0x183819=_0xc4a02e;return this[_0x183819(0x1c0)][_0x183819(0x23c)](_0x4cfd29),_0x20c1f7[_0x183819(0x1bf)](()=>this[_0x183819(0x1c0)][_0x183819(0x260)](_0x4cfd29));}[_0xc4a02e(0x224)](_0x45e098){const _0x14c8a3=_0xc4a02e;return this['_reporters']['add'](_0x45e098),_0x20c1f7[_0x14c8a3(0x1bf)](()=>this[_0x14c8a3(0x23d)][_0x14c8a3(0x260)](_0x45e098));}['shouldShareOperation'](_0xbfa2c){const _0x14e750=_0xc4a02e;return this[_0x14e750(0x1c0)]['has'](_0xbfa2c);}[_0xc4a02e(0x21a)](_0x1676d9){const _0x2dc4a8=_0xc4a02e;return Array[_0x2dc4a8(0x18f)](this[_0x2dc4a8(0x23d)])[_0x2dc4a8(0x18a)](_0xaa47fc=>_0xaa47fc(_0x1676d9));}}var _0x5b8d2c=Object[_0xc4a02e(0x25e)],_0x2f758a=(_0x45d182,_0x29016d,_0x58b6b8,_0x58ab03)=>{for(var _0x4f77f6=_0x58ab03>0x1?void 0x0:_0x58ab03?_0x5b8d2c(_0x29016d,_0x58b6b8):_0x29016d,_0x5940c4=_0x45d182['length']-0x1,_0x2097cb;_0x5940c4>=0x0;_0x5940c4--)(_0x2097cb=_0x45d182[_0x5940c4])&&(_0x4f77f6=_0x2097cb(_0x4f77f6)||_0x4f77f6);return _0x4f77f6;},_0x4f1cc4=(_0x308aff,_0x4c1dbe)=>(_0x3cf82a,_0x56eb9c)=>_0x4c1dbe(_0x3cf82a,_0x56eb9c,_0x308aff);_0x4c1693[_0xc4a02e(0x1ad)]=class extends _0x20c1f7[_0xc4a02e(0x21e)]{constructor(_0x2972fc,_0x4b6884,_0xb9c655){const _0x583b9f=_0xc4a02e;super(),_0x586a21(this,_0x583b9f(0x1dc),new Map()),(this[_0x583b9f(0x1d5)]=_0x2972fc,this[_0x583b9f(0x1aa)]=_0x4b6884,this[_0x583b9f(0x252)]=_0xb9c655,this[_0x583b9f(0x192)]());}async['getLiveShareCoordinator'](_0xca8325){const _0x1a23bb=_0xc4a02e;return this[_0x1a23bb(0x1dc)][_0x1a23bb(0x20f)](_0xca8325)||await this[_0x1a23bb(0x236)](_0xca8325),this['_entities'][_0x1a23bb(0x244)](_0xca8325);}['getLiveShareCoordinatorSync'](_0x99a34f){const _0x483452=_0xc4a02e;var _0x430b0b;return(_0x430b0b=this[_0x483452(0x1dc)][_0x483452(0x244)](_0x99a34f))!=null?_0x430b0b:null;}[_0xc4a02e(0x192)](){const _0x3d14fb=_0xc4a02e;this[_0x3d14fb(0x1d5)][_0x3d14fb(0x1ce)](_0x20c1f7[_0x3d14fb(0x267)][_0x3d14fb(0x1fa)])[_0x3d14fb(0x1ee)](_0x149d8b['takeUntil'](this[_0x3d14fb(0x1e1)]))[_0x3d14fb(0x228)](async _0x570d20=>{const _0x2576b5=_0x3d14fb,_0x419b51=_0x570d20[_0x2576b5(0x20b)]();this[_0x2576b5(0x1dc)][_0x2576b5(0x20f)](_0x419b51)||this[_0x2576b5(0x236)](_0x419b51);}),this[_0x3d14fb(0x1d5)][_0x3d14fb(0x251)](_0x20c1f7[_0x3d14fb(0x267)][_0x3d14fb(0x1fa)])[_0x3d14fb(0x1ee)](_0x149d8b['takeUntil'](this[_0x3d14fb(0x1e1)]))['subscribe'](_0xd3f1a8=>{const _0x3b555c=_0x3d14fb,_0x395302=_0xd3f1a8[_0x3b555c(0x20b)](),_0x2d6dcc=this['_entities'][_0x3b555c(0x244)](_0x395302);_0x2d6dcc==null||_0x2d6dcc['dispose']();});}async['_startLiveShareCoordinator'](_0x46aafd){const _0x2c69b5=_0xc4a02e,_0x92a6ec=await this[_0x2c69b5(0x252)][_0x2c69b5(0x18c)](_0x46aafd),_0x5f20f3=this[_0x2c69b5(0x1aa)]['createInstance'](_0x4c1693[_0x2c69b5(0x1a1)],_0x46aafd,_0x92a6ec);return _0x5f20f3[_0x2c69b5(0x208)](),this['_entities'][_0x2c69b5(0x1ff)](_0x46aafd,_0x5f20f3),_0x5f20f3;}},_0x4c1693[_0xc4a02e(0x1ad)]=_0x2f758a([_0x4f1cc4(0x0,_0x20c1f7['IUniverInstanceService']),_0x4f1cc4(0x1,_0x20c1f7['Inject'](_0x20c1f7[_0xc4a02e(0x239)])),_0x4f1cc4(0x2,_0x20c1f7['Inject'](_0xe899b4['CollaborationSessionService']))],_0x4c1693['LiveShareController']);var _0x3426aa=(_0xfa45d8=>(_0xfa45d8['OFFLINE']='offline',_0xfa45d8[_0xc4a02e(0x203)]=_0xc4a02e(0x199),_0xfa45d8[_0xc4a02e(0x23a)]='following',_0xfa45d8[_0xc4a02e(0x21d)]=_0xc4a02e(0x256),_0xfa45d8[_0xc4a02e(0x248)]=_0xc4a02e(0x229),_0xfa45d8))(_0x3426aa||{});const _0x5f260d=_0xc4a02e(0x1b8),_0x4366e9=0xc8;_0x4c1693[_0xc4a02e(0x1a1)]=class extends _0x20c1f7[_0xc4a02e(0x21e)]{constructor(_0x14dde1,_0x719025,_0x1a9557,_0xfe7abb,_0x1cd432){const _0x25b10b=_0xc4a02e;super(),_0x586a21(this,_0x25b10b(0x22d),new _0x1fb564['BehaviorSubject'](_0x25b10b(0x199))),_0x586a21(this,_0x25b10b(0x1e5),this[_0x25b10b(0x22d)][_0x25b10b(0x254)]()),_0x586a21(this,_0x25b10b(0x192),!0x1),_0x586a21(this,'_commandDisposable',null),_0x586a21(this,_0x25b10b(0x1fe),null),(this[_0x25b10b(0x269)]=_0x14dde1,this['_collabSession']=_0x719025,this[_0x25b10b(0x215)]=_0x1a9557,this[_0x25b10b(0x24b)]=_0xfe7abb,this['_commandService']=_0x1cd432);}get[_0xc4a02e(0x207)](){const _0x35e653=_0xc4a02e;return this[_0x35e653(0x22d)][_0x35e653(0x218)]();}['dispose'](){const _0x1b9a2c=_0xc4a02e;var _0x47e553;(_0x47e553=this[_0x1b9a2c(0x1f3)])==null||_0x47e553['dispose'](),this[_0x1b9a2c(0x22d)][_0x1b9a2c(0x1c6)](_0x1b9a2c(0x199)),this[_0x1b9a2c(0x22d)][_0x1b9a2c(0x1ed)]();}[_0xc4a02e(0x23b)](){const _0x124613=_0xc4a02e;return this[_0x124613(0x207)];}['init'](){const _0x529557=_0xc4a02e;this['_init']||(this[_0x529557(0x192)]=!0x0,this[_0x529557(0x250)]['sessionStatus$'][_0x529557(0x1ee)](_0x149d8b[_0x529557(0x1b3)](this[_0x529557(0x1e1)]))[_0x529557(0x228)](_0x2ad7c3=>{const _0x13f59e=_0x529557;switch(_0x2ad7c3){case _0xe899b4[_0x13f59e(0x22e)][_0x13f59e(0x19d)]:this[_0x13f59e(0x1ca)]();break;case _0xe899b4['SessionStatus'][_0x13f59e(0x226)]:this[_0x13f59e(0x1c9)]();break;}}),this[_0x529557(0x250)][_0x529557(0x1cc)][_0x529557(0x1ee)](_0x149d8b[_0x529557(0x1b3)](this[_0x529557(0x1e1)]))['subscribe'](_0x433e65=>{const _0xa09742=_0x529557,{eventID:_0x490f47}=_0x433e65;switch(_0x490f47){case _0xe29517[_0xa09742(0x186)][_0xa09742(0x210)]:this['_handleNewHost'](_0x433e65);break;case _0xe29517['CollaborationEvent'][_0xa09742(0x1fd)]:this[_0xa09742(0x193)](_0x433e65);break;case _0xe29517[_0xa09742(0x186)][_0xa09742(0x1c5)]:this[_0xa09742(0x235)]();break;case _0xe29517[_0xa09742(0x186)][_0xa09742(0x233)]:this[_0xa09742(0x1a5)](_0x433e65);break;}}));}[_0xc4a02e(0x22f)](){const _0x5bab21=_0xc4a02e;this[_0x5bab21(0x250)]['send']({'eventID':_0xe29517[_0x5bab21(0x186)][_0x5bab21(0x230)],'data':{'unitID':this[_0x5bab21(0x269)],'userID':this['_collabSession']['getMemberID']()}},this[_0x5bab21(0x269)]);}[_0xc4a02e(0x1d6)](){const _0x22969d=_0xc4a02e;this[_0x22969d(0x207)]===_0x22969d(0x229)&&(this[_0x22969d(0x22d)][_0x22969d(0x1c6)](_0x22969d(0x199)),this[_0x22969d(0x250)][_0x22969d(0x1f5)]({'eventID':_0xe29517[_0x22969d(0x186)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x22969d(0x269)]}},this[_0x22969d(0x269)]));}[_0xc4a02e(0x200)](){const _0x880fb0=_0xc4a02e;this[_0x880fb0(0x207)]==='not-following'&&(this[_0x880fb0(0x22d)][_0x880fb0(0x1c6)](_0x880fb0(0x189)),this['_startFollowing']());}[_0xc4a02e(0x1da)](){this['_status']==='following'&&this['_stopFollowing']();}[_0xc4a02e(0x242)](_0x55dfcd){const _0x32c656=_0xc4a02e,{presenter:_0x8ffd90}=_0x55dfcd['data'],_0x29edb7=this[_0x32c656(0x250)][_0x32c656(0x1d3)]();this[_0x32c656(0x1fe)]=_0x8ffd90,_0x8ffd90===_0x29edb7?(this[_0x32c656(0x1f8)](),this[_0x32c656(0x1d1)]()):this[_0x32c656(0x207)]!==_0x32c656(0x256)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xc4a02e(0x1c2)](){const _0x32ade0=_0xc4a02e,_0x8206a8={'eventID':_0xe29517[_0x32ade0(0x186)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x32ade0(0x1f5)](_0x8206a8,this[_0x32ade0(0x269)]);}['_handleTerminate'](){const _0xc19d33=_0xc4a02e;this[_0xc19d33(0x1fe)]=null,this[_0xc19d33(0x207)]!==_0xc19d33(0x229)&&this[_0xc19d33(0x261)]();}['_handleNewChangeSets'](_0x85ef16){const _0x3eb736=_0xc4a02e;if(this[_0x3eb736(0x207)]===_0x3eb736(0x189)&&this['_presenter']===_0x85ef16['data'][_0x3eb736(0x19f)]){const _0x570298=_0xe29517['parseProtocolChangeset'](_0x85ef16[_0x3eb736(0x21b)])['mutations'][_0x3eb736(0x196)]()['find'](_0x1683f0=>_0x1683f0['id']===_0x5b7117[_0x3eb736(0x18d)]['id']);if(_0x570298){const _0x31e9b8=_0x570298[_0x3eb736(0x1dd)]['unitId'],_0x41b457=_0x570298['params']['sheet']['id'];setTimeout(()=>{const _0xfbcd4a=_0x3eb736;this[_0xfbcd4a(0x18b)][_0xfbcd4a(0x1f7)](_0x5b7117[_0xfbcd4a(0x1b4)]['id'],{'unitId':_0x31e9b8,'subUnitId':_0x41b457},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x133f3b=_0xc4a02e;this[_0x133f3b(0x22d)][_0x133f3b(0x1c6)]('presenting');const _0x4e91d6=new Map(),_0x2906db=this[_0x133f3b(0x1f3)]=new _0x20c1f7['DisposableCollection']();_0x2906db[_0x133f3b(0x23c)](_0x20c1f7[_0x133f3b(0x1bf)](()=>{const _0x16ba95=_0x133f3b;_0x4e91d6['forEach'](_0x43e371=>_0x43e371[_0x16ba95(0x1ed)]()),_0x4e91d6[_0x16ba95(0x188)]();})),_0x2906db[_0x133f3b(0x23c)](this[_0x133f3b(0x18b)][_0x133f3b(0x1d7)](_0x28388f=>{const _0xb15dfb=_0x133f3b;var _0x1b37df;if(_0x28388f[_0xb15dfb(0x24c)]!==_0x20c1f7[_0xb15dfb(0x259)][_0xb15dfb(0x1b0)]||!this[_0xb15dfb(0x24b)][_0xb15dfb(0x195)](_0x28388f['id']))return;const {id:_0xad5c70}=_0x28388f;let _0x83b44b;_0x4e91d6['has'](_0xad5c70)?_0x83b44b=_0x4e91d6[_0xb15dfb(0x244)](_0xad5c70):(_0x83b44b=new _0x1fb564[(_0xb15dfb(0x1b5))](),_0x4e91d6[_0xb15dfb(0x1ff)](_0xad5c70,_0x83b44b),_0x83b44b['pipe'](_0x149d8b[_0xb15dfb(0x1bd)]((_0x1b37df=this['_configService'][_0xb15dfb(0x24f)](_0x5f260d))!=null?_0x1b37df:_0x4366e9,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5bb23e=>{const _0x445630=_0xb15dfb;this['_collabSession'][_0x445630(0x1f5)]({'eventID':_0xe29517[_0x445630(0x186)][_0x445630(0x1fd)],'data':{'unitID':this[_0x445630(0x269)],'operations':{[_0x5bb23e['id']]:{'id':_0x5bb23e['id'],'params':JSON['stringify'](_0x5bb23e[_0x445630(0x1dd)])}}}},this[_0x445630(0x269)]);})),_0x83b44b['next'](_0x28388f);})),this[_0x133f3b(0x24b)][_0x133f3b(0x21a)](this[_0x133f3b(0x269)])['forEach'](_0x4e89bb=>this[_0x133f3b(0x250)]['send']({'eventID':_0xe29517[_0x133f3b(0x186)][_0x133f3b(0x1fd)],'data':{'unitID':this[_0x133f3b(0x269)],'operations':{[_0x4e89bb['id']]:{'id':_0x4e89bb['id'],'params':JSON['stringify'](_0x4e89bb[_0x133f3b(0x1dd)])}}}},this['_unitID']));}[_0xc4a02e(0x19a)](){const _0x1c866c=_0xc4a02e;var _0xe03ef9;this[_0x1c866c(0x22d)][_0x1c866c(0x1c6)](_0x1c866c(0x199)),(_0xe03ef9=this['_commandDisposable'])==null||_0xe03ef9[_0x1c866c(0x223)](),this[_0x1c866c(0x1f3)]=null;}['_startFollowing'](){const _0x5c1c4c=_0xc4a02e;var _0x4eca16;(_0x4eca16=this[_0x5c1c4c(0x1f3)])==null||_0x4eca16[_0x5c1c4c(0x223)](),this[_0x5c1c4c(0x22d)][_0x5c1c4c(0x1c6)](_0x5c1c4c(0x189));}[_0xc4a02e(0x261)](){const _0x4d1ea2=_0xc4a02e;var _0x3cbbbe;this[_0x4d1ea2(0x22d)][_0x4d1ea2(0x1c6)](_0x4d1ea2(0x199)),(_0x3cbbbe=this[_0x4d1ea2(0x1f3)])==null||_0x3cbbbe[_0x4d1ea2(0x223)](),this[_0x4d1ea2(0x1f3)]=null;}[_0xc4a02e(0x1f8)](){const _0x46e341=_0xc4a02e;var _0x1bb208;this[_0x46e341(0x22d)][_0x46e341(0x1c6)]('not-following'),(_0x1bb208=this[_0x46e341(0x1f3)])==null||_0x1bb208[_0x46e341(0x223)]();}['_handleOperation'](_0x4a2009){const _0x781de1=_0xc4a02e;if([_0x781de1(0x229),_0x781de1(0x256),_0x781de1(0x187)]['includes'](this['_status'])||!_0x4a2009[_0x781de1(0x21b)][_0x781de1(0x23e)]||_0x4a2009[_0x781de1(0x21b)][_0x781de1(0x23e)]===this[_0x781de1(0x250)][_0x781de1(0x1d3)]())return;this['_status']===_0x781de1(0x199)&&this[_0x781de1(0x24d)]();const _0x130aa1=_0x4a2009['data']['operations'];Object[_0x781de1(0x253)](_0x130aa1)[_0x781de1(0x1f9)](_0x125734=>{const _0x13d7c2=_0x781de1;this['_commandService'][_0x13d7c2(0x1f7)](_0x125734['id'],_0x125734[_0x13d7c2(0x1dd)]?JSON[_0x13d7c2(0x25f)](_0x125734[_0x13d7c2(0x1dd)]):null,{'fromCollab':!0x0});});}[_0xc4a02e(0x1ca)](){const _0xfb7248=_0xc4a02e;var _0x5dfd30;this[_0xfb7248(0x22d)]['next'](_0xfb7248(0x187)),(_0x5dfd30=this[_0xfb7248(0x1f3)])==null||_0x5dfd30[_0xfb7248(0x223)]();}[_0xc4a02e(0x1c9)](){const _0x264f96=_0xc4a02e;this['_status$'][_0x264f96(0x1c6)](_0x264f96(0x199)),this[_0x264f96(0x1c2)]();}},_0x4c1693[_0xc4a02e(0x1a1)]=_0x2f758a([_0x4f1cc4(0x2,_0x20c1f7[_0xc4a02e(0x209)]),_0x4f1cc4(0x3,_0x20c1f7[_0xc4a02e(0x25d)](_0x1b3fb8)),_0x4f1cc4(0x4,_0x20c1f7[_0xc4a02e(0x219)])],_0x4c1693[_0xc4a02e(0x1a1)]);function _0x1cad71(){const _0x2f0449=_0xc4a02e,_0x10bbb7=_0x54245a['useDependency'](_0x4c1693[_0x2f0449(0x1ad)]),_0xf4ddf5=_0x54245a['useDependency'](_0x20c1f7['IUniverInstanceService']),_0x3292cc=_0x54245a['useObservable'](()=>_0xf4ddf5[_0x2f0449(0x1e6)](_0x20c1f7[_0x2f0449(0x267)][_0x2f0449(0x1fa)]),void 0x0,!0x1,[]),[_0x18159e,_0x5a052a]=_0x5f729d[_0x2f0449(0x21c)](null),[_0x396bb3,_0x1e780e]=_0x5f729d['useState'](_0x3426aa[_0x2f0449(0x203)]),_0x203112=_0x5f729d['useRef'](null);return _0x5f729d[_0x2f0449(0x263)](()=>(_0x3292cc&&_0x10bbb7[_0x2f0449(0x197)](_0x3292cc[_0x2f0449(0x20b)]())['then'](_0x1d1beb=>{const _0x58cc91=_0x2f0449;_0x5a052a(_0x1d1beb),_0x203112['current']=_0x1d1beb['status$'][_0x58cc91(0x228)](_0x3ee84a=>{_0x1e780e(_0x3ee84a);});}),()=>{const _0x2575df=_0x2f0449;var _0x582281;(_0x582281=_0x203112[_0x2575df(0x1ea)])==null||_0x582281[_0x2575df(0x206)](),_0x203112[_0x2575df(0x1ea)]=null;}),[_0x3292cc,_0x10bbb7]),_0x18159e?_0xc7886b['jsx'](_0x2ba6f4[_0x2f0449(0x202)],{'align':_0x2f0449(0x1a9),'disabled':_0x396bb3===_0x3426aa[_0x2f0449(0x19d)],'className':_0x2f0449(0x20d),'overlay':_0xc7886b[_0x2f0449(0x1e3)](_0x3f18ba,{'status':_0x396bb3,'coordinator':_0x18159e}),'children':_0xc7886b[_0x2f0449(0x1e3)](_0x2f0449(0x19e),{'className':_0x2ba6f4[_0x2f0449(0x184)](_0x2f0449(0x237),{'univer-cursor-not-allowed':_0x396bb3===_0x3426aa[_0x2f0449(0x19d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x396bb3!==_0x3426aa['OFFLINE']}),'type':_0x2f0449(0x19e),'children':_0xc7886b[_0x2f0449(0x1e3)](_0x58e8ce,{'className':_0x2f0449(0x204)})})}):null;}function _0x3f18ba(_0x59b155){const _0xdafced=_0xc4a02e,{status:_0x4e4a1f,coordinator:_0x192710}=_0x59b155;switch(_0x4e4a1f){case _0x3426aa[_0xdafced(0x203)]:return _0xc7886b[_0xdafced(0x1e3)](_0x2b92d8,{'coordinator':_0x192710});case _0x3426aa['FOLLOWING']:return _0xc7886b[_0xdafced(0x1e3)](_0x2b56ad,{'coordinator':_0x192710});case _0x3426aa['NOT_FOLLOWING']:return _0xc7886b[_0xdafced(0x1e3)](_0x214e7f,{'coordinator':_0x192710});case _0x3426aa[_0xdafced(0x19d)]:return _0xc7886b[_0xdafced(0x1e3)](_0x3990cf,{});case _0x3426aa[_0xdafced(0x248)]:return _0xc7886b[_0xdafced(0x1e3)](_0x7bfe81,{'coordinator':_0x192710});default:return null;}}function _0x2b92d8(_0xb0a576){const _0x23c6b5=_0xc4a02e,{coordinator:_0x67c939}=_0xb0a576;return _0xc7886b['jsxs'](_0xc7886b['Fragment'],{'children':[_0xc7886b[_0x23c6b5(0x1e3)]('div',{'className':_0x23c6b5(0x225),'children':_0x23c6b5(0x1ec)}),_0xc7886b[_0x23c6b5(0x1e3)](_0x2ba6f4[_0x23c6b5(0x25b)],{'onClick':()=>_0x67c939[_0x23c6b5(0x22f)](),'children':'Start'})]});}function _0x2b56ad(_0x4a546d){const _0x2406d1=_0xc4a02e,{coordinator:_0x1cf486}=_0x4a546d;return _0xc7886b[_0x2406d1(0x1fb)](_0xc7886b[_0x2406d1(0x191)],{'children':[_0xc7886b['jsx'](_0x2406d1(0x1fc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2406d1(0x214)}),_0xc7886b['jsx'](_0x2ba6f4[_0x2406d1(0x25b)],{'onClick':()=>_0x1cf486[_0x2406d1(0x1da)](),'children':'Stop\x20following'})]});}function _0x214e7f(_0x98c6f2){const _0x37c239=_0xc4a02e,{coordinator:_0xb1c67d}=_0x98c6f2;return _0xc7886b['jsxs'](_0xc7886b[_0x37c239(0x191)],{'children':[_0xc7886b[_0x37c239(0x1e3)]('div',{'className':_0x37c239(0x225),'children':_0x37c239(0x22b)}),_0xc7886b[_0x37c239(0x1e3)](_0x2ba6f4[_0x37c239(0x25b)],{'variant':_0x37c239(0x1ae),'onClick':()=>_0xb1c67d['startFollowing'](),'children':_0x37c239(0x1b7)})]});}function _0x7bfe81(_0x42fda7){const _0x4c6ebd=_0xc4a02e,{coordinator:_0x12ef90}=_0x42fda7;return _0xc7886b[_0x4c6ebd(0x1fb)](_0xc7886b[_0x4c6ebd(0x191)],{'children':[_0xc7886b['jsx'](_0x4c6ebd(0x1fc),{'className':_0x4c6ebd(0x225),'children':_0x4c6ebd(0x1f2)}),_0xc7886b['jsx'](_0x2ba6f4[_0x4c6ebd(0x25b)],{'variant':_0x4c6ebd(0x1eb),'onClick':()=>_0x12ef90[_0x4c6ebd(0x1d6)](),'children':_0x4c6ebd(0x241)})]});}function _0x3990cf(){const _0x40654b=_0xc4a02e;return _0xc7886b[_0x40654b(0x1e3)](_0xc7886b[_0x40654b(0x191)],{'children':_0x40654b(0x205)});}var _0x52595e=Object['getOwnPropertyDescriptor'],_0x1bbafb=(_0x3d97d0,_0x5d3be6,_0x39536a,_0x1d26aa)=>{const _0x59c089=_0xc4a02e;for(var _0x2417c5=_0x1d26aa>0x1?void 0x0:_0x1d26aa?_0x52595e(_0x5d3be6,_0x39536a):_0x5d3be6,_0x5416ba=_0x3d97d0[_0x59c089(0x20e)]-0x1,_0x44ec1d;_0x5416ba>=0x0;_0x5416ba--)(_0x44ec1d=_0x3d97d0[_0x5416ba])&&(_0x2417c5=_0x44ec1d(_0x2417c5)||_0x2417c5);return _0x2417c5;},_0x1c2f4f=(_0x350c43,_0x147b01)=>(_0x38d8e9,_0x25d24f)=>_0x147b01(_0x38d8e9,_0x25d24f,_0x350c43);_0x4c1693[_0xc4a02e(0x1e2)]=class extends _0x20c1f7[_0xc4a02e(0x262)]{constructor(_0x9c4f9a,_0x367ca7){const _0x5c4714=_0xc4a02e;super(),this['_injector']=_0x9c4f9a,this[_0x5c4714(0x19b)]=_0x367ca7,this[_0x5c4714(0x185)]();}[_0xc4a02e(0x185)](){const _0x2aa91a=_0xc4a02e;this[_0x2aa91a(0x1f4)](this[_0x2aa91a(0x19b)][_0x2aa91a(0x268)](_0x54245a[_0x2aa91a(0x221)][_0x2aa91a(0x222)],()=>_0x54245a[_0x2aa91a(0x1e8)](_0x1cad71,this[_0x2aa91a(0x1aa)])));}},_0x4c1693[_0xc4a02e(0x1e2)]=_0x1bbafb([_0x1c2f4f(0x0,_0x20c1f7[_0xc4a02e(0x25d)](_0x20c1f7[_0xc4a02e(0x239)])),_0x1c2f4f(0x1,_0x54245a[_0xc4a02e(0x1cb)])],_0x4c1693[_0xc4a02e(0x1e2)]);const _0x5e9959=_0xc4a02e(0x18e),_0x4b6236={};var _0x5973da=Object[_0xc4a02e(0x25e)],_0x305720=(_0x3b167a,_0x10dbd2,_0x34c4a1,_0x4e0229)=>{const _0x29393b=_0xc4a02e;for(var _0x5e4854=_0x4e0229>0x1?void 0x0:_0x4e0229?_0x5973da(_0x10dbd2,_0x34c4a1):_0x10dbd2,_0x395d90=_0x3b167a[_0x29393b(0x20e)]-0x1,_0x3dac46;_0x395d90>=0x0;_0x395d90--)(_0x3dac46=_0x3b167a[_0x395d90])&&(_0x5e4854=_0x3dac46(_0x5e4854)||_0x5e4854);return _0x5e4854;},_0x4c7eb9=(_0x42cef8,_0x4d1292)=>(_0x401851,_0x1c55a6)=>_0x4d1292(_0x401851,_0x1c55a6,_0x42cef8);let _0x54e732=class extends _0x20c1f7[_0xc4a02e(0x262)]{constructor(_0x35ecef){const _0x5421a7=_0xc4a02e;super(),this[_0x5421a7(0x24b)]=_0x35ecef,this[_0x5421a7(0x192)]();}['_init'](){const _0x4d1914=_0xc4a02e;[_0xaa5d52[_0x4d1914(0x1ef)]['id'],_0xaa5d52[_0x4d1914(0x258)]['id'],_0x5b7117['SetWorksheetActiveOperation']['id']][_0x4d1914(0x1f9)](_0x3dac90=>{const _0x59e849=_0x4d1914;this[_0x59e849(0x1f4)](this['_liveShareService'][_0x59e849(0x26a)](_0x3dac90));});}};_0x54e732=_0x305720([_0x4c7eb9(0x0,_0x20c1f7[_0xc4a02e(0x25d)](_0x1b3fb8))],_0x54e732);var _0x5a2111=Object[_0xc4a02e(0x1e9)],_0x1424e3=Object[_0xc4a02e(0x25e)],_0x4027dc=(_0xb6479a,_0xf7de93,_0x16ba15)=>_0xf7de93 in _0xb6479a?_0x5a2111(_0xb6479a,_0xf7de93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16ba15}):_0xb6479a[_0xf7de93]=_0x16ba15,_0x255636=(_0x38e604,_0x2ad3b5,_0x259bfd,_0x2f5301)=>{const _0x5e17fe=_0xc4a02e;for(var _0x5aca99=_0x2f5301>0x1?void 0x0:_0x2f5301?_0x1424e3(_0x2ad3b5,_0x259bfd):_0x2ad3b5,_0x44cb4e=_0x38e604[_0x5e17fe(0x20e)]-0x1,_0x32c5b6;_0x44cb4e>=0x0;_0x44cb4e--)(_0x32c5b6=_0x38e604[_0x44cb4e])&&(_0x5aca99=_0x32c5b6(_0x5aca99)||_0x5aca99);return _0x5aca99;},_0x5cafc1=(_0x4ef20a,_0x18afe4)=>(_0x4a1d7d,_0xc23e97)=>_0x18afe4(_0x4a1d7d,_0xc23e97,_0x4ef20a),_0x564e34=(_0x2b6fdd,_0x57ea7a,_0x188e12)=>_0x4027dc(_0x2b6fdd,typeof _0x57ea7a!=_0xc4a02e(0x1a6)?_0x57ea7a+'':_0x57ea7a,_0x188e12);const _0x37460b=_0xc4a02e(0x183);_0x4c1693[_0xc4a02e(0x20a)]=class extends _0x20c1f7['Plugin']{constructor(_0x1fbf7f=_0x4b6236,_0x5ca86e,_0x5024f8){const _0x1d4473=_0xc4a02e;super(),this['_config']=_0x1fbf7f,this[_0x1d4473(0x1aa)]=_0x5ca86e,this[_0x1d4473(0x215)]=_0x5024f8;const {..._0x2c4091}=_0x20c1f7[_0x1d4473(0x1a0)]({},_0x4b6236,this[_0x1d4473(0x1a4)]);this[_0x1d4473(0x215)][_0x1d4473(0x1c4)](_0x5e9959,_0x2c4091);}[_0xc4a02e(0x1cf)](){const _0x4a2096=_0xc4a02e;_0x20c1f7[_0x4a2096(0x249)](this[_0x4a2096(0x1aa)],_0x20c1f7[_0x4a2096(0x1db)]([[_0x1b3fb8],[_0x4c1693[_0x4a2096(0x1ad)]],[_0x54e732],[_0x4c1693[_0x4a2096(0x1e2)]]],this[_0x4a2096(0x1a4)][_0x4a2096(0x211)])),_0x20c1f7[_0x4a2096(0x234)](this['_injector'],[[_0x54e732]]);}['onRendered'](){const _0x3b9950=_0xc4a02e;_0x20c1f7[_0x3b9950(0x234)](this[_0x3b9950(0x1aa)],[[_0x4c1693[_0x3b9950(0x1e2)]]]);}},_0x564e34(_0x4c1693[_0xc4a02e(0x20a)],_0xc4a02e(0x24c),_0x20c1f7[_0xc4a02e(0x267)][_0xc4a02e(0x20c)]),_0x564e34(_0x4c1693[_0xc4a02e(0x20a)],_0xc4a02e(0x190),_0x37460b),_0x4c1693['UniverLiveSharePlugin']=_0x255636([_0x20c1f7[_0xc4a02e(0x216)](_0xe899b4[_0xc4a02e(0x264)]),_0x5cafc1(0x1,_0x20c1f7['Inject'](_0x20c1f7[_0xc4a02e(0x239)])),_0x5cafc1(0x2,_0x20c1f7['IConfigService'])],_0x4c1693[_0xc4a02e(0x20a)]),_0x4c1693[_0xc4a02e(0x212)]=_0x1cad71,_0x4c1693[_0xc4a02e(0x21f)]=_0x1b3fb8,_0x4c1693[_0xc4a02e(0x217)]=_0x3426aa,Object[_0xc4a02e(0x1e9)](_0x4c1693,Symbol[_0xc4a02e(0x201)],{'value':'Module'});}));
|
|
1
|
+
function _0x2d37(_0x1ed951,_0x4b682b){const _0x123bcc=_0x123b();return _0x2d37=function(_0x2d37b9,_0x2497ae){_0x2d37b9=_0x2d37b9-0x1dc;let _0x95c3aa=_0x123bcc[_0x2d37b9];return _0x95c3aa;},_0x2d37(_0x1ed951,_0x4b682b);}function _0x123b(){const _0x269515=['parseProtocolChangeset','path','unitId','url(#$1','getInitialStates','rxjs/operators','send','trim','attrs','_unitID','44655215jLZwFy','createInstance','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','operators','You\x27are\x20offline.','use','_stopFollowing','UniverDesign','idSuffix','add','presenting','LIVESHARE_TERMINATE','useState','stopFollowing','Plugin','includes','getCurrentTypeOfUnit$','registerComponent','init','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20not\x20following\x20the\x20presenter','none','onRendered','current','LiveShareIcon','PRESENTING','toStringTag','_handleNewHost','setConfig','toDisposable','displayName','IUniverInstanceService','live-share.config','string','react','univer-size-4','dispose','_handleOffline','_liveShareService','UniverProLiveShare','get','SetWorksheetActiveOperation','@univerjs-pro/collaboration','7858jGKfmw','_univerInstanceService','pipe','_handleNewChangeSets','_reporters','takeUntil','subscribe','DesktopLiveShareController','308arsHTw','forwardRef','operations','univerjs-icon\x20univerjs-icon-','live-share-icon','Module','CollaborationSessionService','126354GRxkNf','div','getLiveShareCoordinatorSync','_entities','http://www.w3.org/2000/svg','colorChannel1','4911669lNTxic','_mountLiveShare','@univerjs/design','ICommandService','merge','delete','assign','Start','xlink:href','registerDependencies','UniverSheetsUi','_configService','UniverInstanceType','UniverProCollaborationClient','LiveShare','rxjs','event$','asObservable','_presenter','SetScrollOperation','3zzGDsS','set','button','mask','_status$','tag','override','LiveShareController','status$','OFFLINE','LiveShareStatus','following','Disposable','Button','evenodd','SAME_OPERATION_SHARE_INTERVAL','12cyRqNz','Injector','NOT_FOLLOWING','_collabSession','disposeWithMe','_startFollowing','executeCommand','Fragment','clear','registerSharedOperation','UniverSheets','0\x200\x2017\x2017','length','requireSession','@univerjs/sheets','amd','IUIPartsService','_handleOperation','useEffect','replace','3476856IXaLnP','LIVESHARE_OPERATION','defs','BuiltInUIPart','_fetchOperations','offline','HEADER_MENU','type','CollaborationEvent','UniverLiveSharePlugin','_sharedOperations','registerInitialStateReporter','SessionStatus','params','_handleTerminate','useRef','LIVESHARE_REQUEST_HOST','end','sheet','stopPresenting','UniverCore','jsxs','@univerjs/sheets-ui','_status','getLiveShareCoordinator','getUnitId','createElement','UniverCollaborationClientPlugin','find','stringify','_commandDisposable','startFollowing','svg','Dropdown','getConfig','_startPresenting','CommandType','onCommandExecuted','useDependency','_injector','has','You\x27re\x20presenting\x20the\x20document','currentColor','9TvMnok','_commandService','entries','LiveShareCoordinator','DisposableCollection','InsertSheetMutation','ONLINE','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','jsx','pluginName','Start\x20following','clsx','defIds','unsubscribe','IDLE','8159304exygrj','_startLiveShareCoordinator','1em','memberID','useObservable','data','connectInjector','exports','getStatus','RxDisposable','tryStartPresenting','_collabSessionService','then','fill','9896620BYmJQW','presenter','FOLLOWING','getMemberID','getValue','substring','forEach','parse','React','idle','not-following','220EzPrTv','children','Subject','_uiPartsService','getOwnPropertyDescriptor','IConfigService','OPERATION','NEW_CHANGESETS','next','mergeOverrideWithDependencies','UNIVER_UNKNOWN','react/jsx-runtime','shouldShareOperation','touchDependencies','defineProperty','getTypeOfUnitDisposed$','dispose$','_handleOnline','_config','symbol','_init','Inject','map','UNIVER_SHEET','values'];_0x123b=function(){return _0x269515;};return _0x123b();}(function(_0x5cad6d,_0x8de8bb){const _0x12b978=_0x2d37,_0x3a6170=_0x5cad6d();while(!![]){try{const _0x372672=parseInt(_0x12b978(0x23a))/0x1*(parseInt(_0x12b978(0x242))/0x2)+-parseInt(_0x12b978(0x263))/0x3*(parseInt(_0x12b978(0x287))/0x4)+parseInt(_0x12b978(0x1ec))/0x5*(-parseInt(_0x12b978(0x249))/0x6)+-parseInt(_0x12b978(0x24f))/0x7+parseInt(_0x12b978(0x2c1))/0x8*(-parseInt(_0x12b978(0x2b2))/0x9)+-parseInt(_0x12b978(0x1e1))/0xa+parseInt(_0x12b978(0x20f))/0xb*(parseInt(_0x12b978(0x273))/0xc);if(_0x372672===_0x8de8bb)break;else _0x3a6170['push'](_0x3a6170['shift']());}catch(_0xe0893d){_0x3a6170['push'](_0x3a6170['shift']());}}}(_0x123b,0xba315),function(_0xc979a,_0x29fea4){const _0x2ea82b=_0x2d37;typeof exports=='object'&&typeof module<'u'?_0x29fea4(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x2ea82b(0x282)]?define([_0x2ea82b(0x2c8),'@univerjs/core','@univerjs/ui',_0x2ea82b(0x1f7),_0x2ea82b(0x251),_0x2ea82b(0x231),_0x2ea82b(0x239),'@univerjs-pro/collaboration-client',_0x2ea82b(0x281),_0x2ea82b(0x25e),_0x2ea82b(0x20a),_0x2ea82b(0x29d)],_0x29fea4):(_0xc979a=typeof globalThis<'u'?globalThis:_0xc979a||self,_0x29fea4(_0xc979a[_0x2ea82b(0x236)]={},_0xc979a[_0x2ea82b(0x29b)],_0xc979a['UniverUi'],_0xc979a[_0x2ea82b(0x1e9)],_0xc979a[_0x2ea82b(0x216)],_0xc979a[_0x2ea82b(0x1e9)],_0xc979a['UniverProCollaboration'],_0xc979a[_0x2ea82b(0x25c)],_0xc979a[_0x2ea82b(0x27d)],_0xc979a['rxjs'],_0xc979a['rxjs'][_0x2ea82b(0x212)],_0xc979a[_0x2ea82b(0x259)]));}(this,function(_0x21866a,_0x3af4dc,_0x46780c,_0x576bb8,_0x37c869,_0x4b8b10,_0x3aa658,_0x2d57ff,_0x20cbe0,_0x571e52,_0x4bad4b,_0xe755ca){'use strict';const _0x5a42db=_0x2d37;var _0x5b9b43=Object[_0x5a42db(0x1fa)],_0x6f2233=(_0x3f7703,_0x4d286a,_0xd3a378)=>_0x4d286a in _0x3f7703?_0x5b9b43(_0x3f7703,_0x4d286a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd3a378}):_0x3f7703[_0x4d286a]=_0xd3a378,_0x407be2=(_0x5af591,_0x39c376,_0x329026)=>_0x6f2233(_0x5af591,typeof _0x39c376!=_0x5a42db(0x1ff)?_0x39c376+'':_0x39c376,_0x329026);function _0x194870({ref:_0x2d47b8,..._0x399363}){const _0x1b5414=_0x5a42db,{icon:_0xd5a7b1,id:_0x3b869a,className:_0x1efaaa,extend:_0x72f8fc,..._0xa3ac11}=_0x399363,_0x50863a=(_0x1b5414(0x245)+_0x3b869a+'\x20'+(_0x1efaaa||''))[_0x1b5414(0x20c)](),_0xe9973a=_0x4b8b10['useRef']('_'+_0x4f58c8());return _0x933340(_0xd5a7b1,''+_0x3b869a,{'defIds':_0xd5a7b1[_0x1b5414(0x2be)],'idSuffix':_0xe9973a[_0x1b5414(0x226)]},{'ref':_0x2d47b8,'className':_0x50863a,..._0xa3ac11},_0x72f8fc);}function _0x933340(_0x407e1d,_0x424a78,_0x38c793,_0x50c7b1,_0xf6ae44){const _0x22690d=_0x5a42db;return _0x4b8b10[_0x22690d(0x2a1)](_0x407e1d['tag'],{'key':_0x424a78,..._0x186ec8(_0x407e1d,_0x38c793,_0xf6ae44),..._0x50c7b1},(_0x4d9a72(_0x407e1d,_0x38c793)[_0x22690d(0x1ed)]||[])['map']((_0x3c9124,_0x3fe968)=>_0x933340(_0x3c9124,_0x424a78+'-'+_0x407e1d[_0x22690d(0x268)]+'-'+_0x3fe968,_0x38c793,void 0x0,_0xf6ae44)));}function _0x186ec8(_0x2f57f0,_0x505b4f,_0x186568){const _0x42d699=_0x5a42db,_0x1e57f1={..._0x2f57f0[_0x42d699(0x20d)]};_0x186568!=null&&_0x186568[_0x42d699(0x24e)]&&_0x1e57f1[_0x42d699(0x1e0)]===_0x42d699(0x24e)&&(_0x1e57f1[_0x42d699(0x1e0)]=_0x186568[_0x42d699(0x24e)]),_0x2f57f0['tag']===_0x42d699(0x266)&&_0x1e57f1['id']&&(_0x1e57f1['id']=_0x1e57f1['id']+_0x505b4f[_0x42d699(0x217)]),Object['entries'](_0x1e57f1)[_0x42d699(0x1e7)](([_0x5053d4,_0xa83021])=>{const _0x5cdf43=_0x42d699;_0x5053d4===_0x5cdf43(0x266)&&typeof _0xa83021==_0x5cdf43(0x230)&&(_0x1e57f1[_0x5053d4]=_0xa83021[_0x5cdf43(0x286)](/url\(#(.*)\)/,_0x5cdf43(0x208)+_0x505b4f[_0x5cdf43(0x217)]+')'));});const {defIds:_0xdb4571}=_0x505b4f;return!_0xdb4571||_0xdb4571[_0x42d699(0x27f)]===0x0||(_0x2f57f0[_0x42d699(0x268)]===_0x42d699(0x214)&&_0x1e57f1['xlink:href']&&(_0x1e57f1['xlink:href']=_0x1e57f1[_0x42d699(0x257)]+_0x505b4f['idSuffix']),Object[_0x42d699(0x2b4)](_0x1e57f1)[_0x42d699(0x1e7)](([_0xfff405,_0x3644c2])=>{const _0x28d824=_0x42d699;typeof _0x3644c2==_0x28d824(0x230)&&(_0x1e57f1[_0xfff405]=_0x3644c2['replace'](/url\(#(.*)\)/,'url(#$1'+_0x505b4f[_0x28d824(0x217)]+')'));})),_0x1e57f1;}function _0x4d9a72(_0x519dfe,_0x2e5693){const _0x157033=_0x5a42db;var _0x247782;const {defIds:_0x3bb5c1}=_0x2e5693;return!_0x3bb5c1||_0x3bb5c1[_0x157033(0x27f)]===0x0?_0x519dfe:_0x519dfe['tag']===_0x157033(0x289)&&((_0x247782=_0x519dfe[_0x157033(0x1ed)])!=null&&_0x247782[_0x157033(0x27f)])?{..._0x519dfe,'children':_0x519dfe[_0x157033(0x1ed)][_0x157033(0x202)](_0x51d2f3=>typeof _0x51d2f3[_0x157033(0x20d)]['id']==_0x157033(0x230)&&_0x3bb5c1&&_0x3bb5c1['includes'](_0x51d2f3[_0x157033(0x20d)]['id'])?{..._0x51d2f3,'attrs':{..._0x51d2f3[_0x157033(0x20d)],'id':_0x51d2f3[_0x157033(0x20d)]['id']+_0x2e5693[_0x157033(0x217)]}}:_0x51d2f3)}:_0x519dfe;}function _0x4f58c8(){const _0x443eca=_0x5a42db;return Math['random']()['toString'](0x24)[_0x443eca(0x1e6)](0x2,0x8);}_0x194870['displayName']='UniverIcon';const _0x3b6341={'tag':_0x5a42db(0x2a7),'attrs':{'xmlns':_0x5a42db(0x24d),'fill':_0x5a42db(0x224),'viewBox':_0x5a42db(0x27e),'width':_0x5a42db(0x2c3),'height':_0x5a42db(0x2c3)},'children':[{'tag':_0x5a42db(0x206),'attrs':{'fill':_0x5a42db(0x2b1),'d':_0x5a42db(0x2b9)}},{'tag':_0x5a42db(0x206),'attrs':{'fill':_0x5a42db(0x2b1),'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':_0x5a42db(0x271),'clipRule':_0x5a42db(0x271)}}]},_0x69a8c2=_0x4b8b10[_0x5a42db(0x243)](function(_0x12657d,_0x539841){const _0x3325a2=_0x5a42db;return _0x4b8b10[_0x3325a2(0x2a1)](_0x194870,Object[_0x3325a2(0x255)]({},_0x12657d,{'id':_0x3325a2(0x246),'ref':_0x539841,'icon':_0x3b6341}));});_0x69a8c2[_0x5a42db(0x22d)]=_0x5a42db(0x227);class _0x118014 extends _0x3af4dc[_0x5a42db(0x26f)]{constructor(){const _0x5610ce=_0x5a42db;super(...arguments),_0x407be2(this,_0x5610ce(0x291),new Set()),_0x407be2(this,_0x5610ce(0x23e),new Set());}['registerSharedOperation'](_0xf2ef45){const _0x3bb6fd=_0x5a42db;return this[_0x3bb6fd(0x291)][_0x3bb6fd(0x218)](_0xf2ef45),_0x3af4dc[_0x3bb6fd(0x22c)](()=>this[_0x3bb6fd(0x291)][_0x3bb6fd(0x254)](_0xf2ef45));}[_0x5a42db(0x292)](_0x264a6a){const _0x58a49c=_0x5a42db;return this[_0x58a49c(0x23e)][_0x58a49c(0x218)](_0x264a6a),_0x3af4dc[_0x58a49c(0x22c)](()=>this[_0x58a49c(0x23e)][_0x58a49c(0x254)](_0x264a6a));}[_0x5a42db(0x1f8)](_0x2df120){const _0x147d1d=_0x5a42db;return this['_sharedOperations'][_0x147d1d(0x2af)](_0x2df120);}[_0x5a42db(0x209)](_0xe8b74f){const _0x3f7df4=_0x5a42db;return Array['from'](this[_0x3f7df4(0x23e)])[_0x3f7df4(0x202)](_0x3033c4=>_0x3033c4(_0xe8b74f));}}var _0x4efa31=Object['getOwnPropertyDescriptor'],_0x3929cc=(_0x1e17b0,_0x413db2,_0x5e08f6,_0x38ecb5)=>{const _0xe58edf=_0x5a42db;for(var _0x548d90=_0x38ecb5>0x1?void 0x0:_0x38ecb5?_0x4efa31(_0x413db2,_0x5e08f6):_0x413db2,_0x5c8c12=_0x1e17b0[_0xe58edf(0x27f)]-0x1,_0x4e5c71;_0x5c8c12>=0x0;_0x5c8c12--)(_0x4e5c71=_0x1e17b0[_0x5c8c12])&&(_0x548d90=_0x4e5c71(_0x548d90)||_0x548d90);return _0x548d90;},_0x51d7dc=(_0xe12a91,_0x117cb0)=>(_0x30be87,_0x213ca3)=>_0x117cb0(_0x30be87,_0x213ca3,_0xe12a91);_0x21866a[_0x5a42db(0x26a)]=class extends _0x3af4dc[_0x5a42db(0x1dc)]{constructor(_0xce33b3,_0x2504db,_0x113a43){const _0xf6c946=_0x5a42db;super(),_0x407be2(this,_0xf6c946(0x24c),new Map()),(this[_0xf6c946(0x23b)]=_0xce33b3,this[_0xf6c946(0x2ae)]=_0x2504db,this[_0xf6c946(0x1de)]=_0x113a43,this[_0xf6c946(0x200)]());}async[_0x5a42db(0x29f)](_0x14985d){const _0x5a839f=_0x5a42db;return this['_entities']['has'](_0x14985d)||await this[_0x5a839f(0x2c2)](_0x14985d),this[_0x5a839f(0x24c)]['get'](_0x14985d);}[_0x5a42db(0x24b)](_0x5ace7e){var _0x5d9140;return(_0x5d9140=this['_entities']['get'](_0x5ace7e))!=null?_0x5d9140:null;}[_0x5a42db(0x200)](){const _0xfa239d=_0x5a42db;this[_0xfa239d(0x23b)]['getTypeOfUnitAdded$'](_0x3af4dc[_0xfa239d(0x25b)]['UNIVER_SHEET'])['pipe'](_0x4bad4b['takeUntil'](this['dispose$']))[_0xfa239d(0x240)](async _0xfdc4bd=>{const _0x255f9e=_0xfa239d,_0x226dbf=_0xfdc4bd[_0x255f9e(0x2a0)]();this[_0x255f9e(0x24c)]['has'](_0x226dbf)||this[_0x255f9e(0x2c2)](_0x226dbf);}),this[_0xfa239d(0x23b)][_0xfa239d(0x1fb)](_0x3af4dc[_0xfa239d(0x25b)][_0xfa239d(0x203)])[_0xfa239d(0x23c)](_0x4bad4b[_0xfa239d(0x23f)](this['dispose$']))['subscribe'](_0x392711=>{const _0x1b211b=_0xfa239d,_0x676c75=_0x392711[_0x1b211b(0x2a0)](),_0x14929c=this[_0x1b211b(0x24c)][_0x1b211b(0x237)](_0x676c75);_0x14929c==null||_0x14929c[_0x1b211b(0x233)]();});}async[_0x5a42db(0x2c2)](_0x5b0f7f){const _0x549060=_0x5a42db,_0x5aaeaa=await this['_collabSessionService'][_0x549060(0x280)](_0x5b0f7f),_0x12a87d=this[_0x549060(0x2ae)][_0x549060(0x210)](_0x21866a[_0x549060(0x2b5)],_0x5b0f7f,_0x5aaeaa);return _0x12a87d[_0x549060(0x221)](),this[_0x549060(0x24c)][_0x549060(0x264)](_0x5b0f7f,_0x12a87d),_0x12a87d;}},_0x21866a[_0x5a42db(0x26a)]=_0x3929cc([_0x51d7dc(0x0,_0x3af4dc[_0x5a42db(0x22e)]),_0x51d7dc(0x1,_0x3af4dc[_0x5a42db(0x201)](_0x3af4dc[_0x5a42db(0x274)])),_0x51d7dc(0x2,_0x3af4dc[_0x5a42db(0x201)](_0x2d57ff[_0x5a42db(0x248)]))],_0x21866a[_0x5a42db(0x26a)]);var _0x1093b3=(_0x12acc4=>(_0x12acc4['OFFLINE']=_0x5a42db(0x28c),_0x12acc4['IDLE']=_0x5a42db(0x1ea),_0x12acc4[_0x5a42db(0x1e3)]=_0x5a42db(0x26e),_0x12acc4[_0x5a42db(0x275)]=_0x5a42db(0x1eb),_0x12acc4['PRESENTING']='presenting',_0x12acc4))(_0x1093b3||{});const _0x1c353e=_0x5a42db(0x272),_0x4ab46e=0xc8;_0x21866a['LiveShareCoordinator']=class extends _0x3af4dc[_0x5a42db(0x1dc)]{constructor(_0x51827d,_0x506291,_0x2c2442,_0x50d3da,_0x3362f9){const _0xd72198=_0x5a42db;super(),_0x407be2(this,_0xd72198(0x267),new _0x571e52['BehaviorSubject'](_0xd72198(0x1ea))),_0x407be2(this,_0xd72198(0x26b),this[_0xd72198(0x267)][_0xd72198(0x260)]()),_0x407be2(this,_0xd72198(0x200),!0x1),_0x407be2(this,_0xd72198(0x2a5),null),_0x407be2(this,_0xd72198(0x261),null),(this[_0xd72198(0x20e)]=_0x51827d,this['_collabSession']=_0x506291,this[_0xd72198(0x25a)]=_0x2c2442,this[_0xd72198(0x235)]=_0x50d3da,this[_0xd72198(0x2b3)]=_0x3362f9);}get[_0x5a42db(0x29e)](){const _0x4e422f=_0x5a42db;return this['_status$'][_0x4e422f(0x1e5)]();}['dispose'](){const _0x51b093=_0x5a42db;var _0x31d5ad;(_0x31d5ad=this['_commandDisposable'])==null||_0x31d5ad[_0x51b093(0x233)](),this['_status$']['next'](_0x51b093(0x1ea)),this[_0x51b093(0x267)]['complete']();}[_0x5a42db(0x2c9)](){const _0x3e43ae=_0x5a42db;return this[_0x3e43ae(0x29e)];}[_0x5a42db(0x221)](){const _0x24a152=_0x5a42db;this[_0x24a152(0x200)]||(this['_init']=!0x0,this[_0x24a152(0x276)]['sessionStatus$'][_0x24a152(0x23c)](_0x4bad4b[_0x24a152(0x23f)](this[_0x24a152(0x1fc)]))[_0x24a152(0x240)](_0x14b274=>{const _0x17c7ea=_0x24a152;switch(_0x14b274){case _0x2d57ff[_0x17c7ea(0x293)][_0x17c7ea(0x26c)]:this['_handleOffline']();break;case _0x2d57ff['SessionStatus'][_0x17c7ea(0x2b8)]:this[_0x17c7ea(0x1fd)]();break;}}),this[_0x24a152(0x276)][_0x24a152(0x25f)][_0x24a152(0x23c)](_0x4bad4b[_0x24a152(0x23f)](this[_0x24a152(0x1fc)]))['subscribe'](_0x198bb8=>{const _0x3ff1e2=_0x24a152,{eventID:_0x1093a4}=_0x198bb8;switch(_0x1093a4){case _0x3aa658[_0x3ff1e2(0x28f)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x198bb8);break;case _0x3aa658['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x3ff1e2(0x284)](_0x198bb8);break;case _0x3aa658[_0x3ff1e2(0x28f)]['LIVESHARE_TERMINATE']:this[_0x3ff1e2(0x295)]();break;case _0x3aa658[_0x3ff1e2(0x28f)][_0x3ff1e2(0x1f3)]:this[_0x3ff1e2(0x23d)](_0x198bb8);break;}}));}[_0x5a42db(0x1dd)](){const _0x333311=_0x5a42db;this[_0x333311(0x276)][_0x333311(0x20b)]({'eventID':_0x3aa658['CollaborationEvent'][_0x333311(0x297)],'data':{'unitID':this[_0x333311(0x20e)],'userID':this[_0x333311(0x276)][_0x333311(0x1e4)]()}},this[_0x333311(0x20e)]);}[_0x5a42db(0x29a)](){const _0x4a7685=_0x5a42db;this[_0x4a7685(0x29e)]===_0x4a7685(0x219)&&(this[_0x4a7685(0x267)][_0x4a7685(0x1f4)](_0x4a7685(0x1ea)),this['_collabSession'][_0x4a7685(0x20b)]({'eventID':_0x3aa658[_0x4a7685(0x28f)][_0x4a7685(0x21a)],'data':{'unitID':this[_0x4a7685(0x20e)]}},this[_0x4a7685(0x20e)]));}['startFollowing'](){const _0x104ceb=_0x5a42db;this[_0x104ceb(0x29e)]===_0x104ceb(0x1eb)&&(this[_0x104ceb(0x267)]['next']('following'),this[_0x104ceb(0x278)]());}[_0x5a42db(0x21c)](){const _0xebb805=_0x5a42db;this[_0xebb805(0x29e)]==='following'&&this[_0xebb805(0x215)]();}[_0x5a42db(0x22a)](_0x13eff9){const _0x4ad956=_0x5a42db,{presenter:_0x4d444e}=_0x13eff9[_0x4ad956(0x2c6)],_0x1d1590=this[_0x4ad956(0x276)][_0x4ad956(0x1e4)]();this[_0x4ad956(0x261)]=_0x4d444e,_0x4d444e===_0x1d1590?(this[_0x4ad956(0x215)](),this['_startPresenting']()):this[_0x4ad956(0x29e)]!=='not-following'&&(this['_stopPresenting'](),this[_0x4ad956(0x278)]());}[_0x5a42db(0x28b)](){const _0x3ba2de=_0x5a42db,_0x2a685d={'eventID':_0x3aa658[_0x3ba2de(0x28f)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x3ba2de(0x276)][_0x3ba2de(0x20b)](_0x2a685d,this[_0x3ba2de(0x20e)]);}['_handleTerminate'](){const _0x3e9aac=_0x5a42db;this[_0x3e9aac(0x261)]=null,this['_status']!==_0x3e9aac(0x219)&&this['_beIdle']();}['_handleNewChangeSets'](_0xcf10df){const _0x3a0494=_0x5a42db;if(this[_0x3a0494(0x29e)]===_0x3a0494(0x26e)&&this[_0x3a0494(0x261)]===_0xcf10df[_0x3a0494(0x2c6)][_0x3a0494(0x2c4)]){const _0xedacda=_0x3aa658[_0x3a0494(0x205)](_0xcf10df[_0x3a0494(0x2c6)])['mutations']['reverse']()[_0x3a0494(0x2a3)](_0x426704=>_0x426704['id']===_0x20cbe0[_0x3a0494(0x2b7)]['id']);if(_0xedacda){const _0x14fe04=_0xedacda[_0x3a0494(0x294)][_0x3a0494(0x207)],_0x3edb55=_0xedacda[_0x3a0494(0x294)][_0x3a0494(0x299)]['id'];setTimeout(()=>{const _0x1b7e0b=_0x3a0494;this[_0x1b7e0b(0x2b3)][_0x1b7e0b(0x279)](_0x20cbe0[_0x1b7e0b(0x238)]['id'],{'unitId':_0x14fe04,'subUnitId':_0x3edb55},{'fromCollab':!0x0});});}}}[_0x5a42db(0x2aa)](){const _0x13adcf=_0x5a42db;this[_0x13adcf(0x267)][_0x13adcf(0x1f4)](_0x13adcf(0x219));const _0x530bcc=new Map(),_0x5e65fd=this[_0x13adcf(0x2a5)]=new _0x3af4dc[(_0x13adcf(0x2b6))]();_0x5e65fd[_0x13adcf(0x218)](_0x3af4dc[_0x13adcf(0x22c)](()=>{const _0x140a95=_0x13adcf;_0x530bcc['forEach'](_0x183b5c=>_0x183b5c['complete']()),_0x530bcc[_0x140a95(0x27b)]();})),_0x5e65fd[_0x13adcf(0x218)](this[_0x13adcf(0x2b3)][_0x13adcf(0x2ac)](_0x3e2cdc=>{const _0x5a6f50=_0x13adcf;var _0x5834de;if(_0x3e2cdc['type']!==_0x3af4dc[_0x5a6f50(0x2ab)][_0x5a6f50(0x1f2)]||!this['_liveShareService'][_0x5a6f50(0x1f8)](_0x3e2cdc['id']))return;const {id:_0x46038a}=_0x3e2cdc;let _0xe044cf;_0x530bcc['has'](_0x46038a)?_0xe044cf=_0x530bcc[_0x5a6f50(0x237)](_0x46038a):(_0xe044cf=new _0x571e52[(_0x5a6f50(0x1ee))](),_0x530bcc[_0x5a6f50(0x264)](_0x46038a,_0xe044cf),_0xe044cf[_0x5a6f50(0x23c)](_0x4bad4b['throttleTime']((_0x5834de=this[_0x5a6f50(0x25a)][_0x5a6f50(0x2a9)](_0x1c353e))!=null?_0x5834de:_0x4ab46e,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x56e0ad=>{const _0xbbf22a=_0x5a6f50;this[_0xbbf22a(0x276)][_0xbbf22a(0x20b)]({'eventID':_0x3aa658[_0xbbf22a(0x28f)][_0xbbf22a(0x288)],'data':{'unitID':this[_0xbbf22a(0x20e)],'operations':{[_0x56e0ad['id']]:{'id':_0x56e0ad['id'],'params':JSON[_0xbbf22a(0x2a4)](_0x56e0ad[_0xbbf22a(0x294)])}}}},this[_0xbbf22a(0x20e)]);})),_0xe044cf[_0x5a6f50(0x1f4)](_0x3e2cdc);})),this['_liveShareService']['getInitialStates'](this[_0x13adcf(0x20e)])[_0x13adcf(0x1e7)](_0x1107c0=>this[_0x13adcf(0x276)][_0x13adcf(0x20b)]({'eventID':_0x3aa658[_0x13adcf(0x28f)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x13adcf(0x20e)],'operations':{[_0x1107c0['id']]:{'id':_0x1107c0['id'],'params':JSON['stringify'](_0x1107c0[_0x13adcf(0x294)])}}}},this[_0x13adcf(0x20e)]));}['_stopPresenting'](){const _0x4fe17e=_0x5a42db;var _0xd61e27;this[_0x4fe17e(0x267)][_0x4fe17e(0x1f4)]('idle'),(_0xd61e27=this['_commandDisposable'])==null||_0xd61e27[_0x4fe17e(0x233)](),this['_commandDisposable']=null;}[_0x5a42db(0x278)](){const _0x11ad14=_0x5a42db;var _0x7657e4;(_0x7657e4=this[_0x11ad14(0x2a5)])==null||_0x7657e4['dispose'](),this[_0x11ad14(0x267)][_0x11ad14(0x1f4)](_0x11ad14(0x26e));}['_beIdle'](){const _0x53b847=_0x5a42db;var _0x1b7594;this[_0x53b847(0x267)]['next']('idle'),(_0x1b7594=this[_0x53b847(0x2a5)])==null||_0x1b7594[_0x53b847(0x233)](),this[_0x53b847(0x2a5)]=null;}[_0x5a42db(0x215)](){const _0x2efa18=_0x5a42db;var _0xabd0cc;this['_status$'][_0x2efa18(0x1f4)](_0x2efa18(0x1eb)),(_0xabd0cc=this[_0x2efa18(0x2a5)])==null||_0xabd0cc[_0x2efa18(0x233)]();}[_0x5a42db(0x284)](_0x1d6ecb){const _0x30ac28=_0x5a42db;if([_0x30ac28(0x219),_0x30ac28(0x1eb),'offline'][_0x30ac28(0x21e)](this['_status'])||!_0x1d6ecb['data'][_0x30ac28(0x1e2)]||_0x1d6ecb[_0x30ac28(0x2c6)][_0x30ac28(0x1e2)]===this[_0x30ac28(0x276)][_0x30ac28(0x1e4)]())return;this['_status']===_0x30ac28(0x1ea)&&this['_startFollowing']();const _0x5dcfac=_0x1d6ecb[_0x30ac28(0x2c6)][_0x30ac28(0x244)];Object[_0x30ac28(0x204)](_0x5dcfac)[_0x30ac28(0x1e7)](_0x589a02=>{const _0x148102=_0x30ac28;this[_0x148102(0x2b3)]['executeCommand'](_0x589a02['id'],_0x589a02[_0x148102(0x294)]?JSON[_0x148102(0x1e8)](_0x589a02[_0x148102(0x294)]):null,{'fromCollab':!0x0});});}[_0x5a42db(0x234)](){const _0x22a9d4=_0x5a42db;var _0x3f408b;this[_0x22a9d4(0x267)]['next']('offline'),(_0x3f408b=this[_0x22a9d4(0x2a5)])==null||_0x3f408b[_0x22a9d4(0x233)]();}[_0x5a42db(0x1fd)](){const _0x4ec3ee=_0x5a42db;this['_status$'][_0x4ec3ee(0x1f4)]('idle'),this['_fetchOperations']();}},_0x21866a[_0x5a42db(0x2b5)]=_0x3929cc([_0x51d7dc(0x2,_0x3af4dc[_0x5a42db(0x1f1)]),_0x51d7dc(0x3,_0x3af4dc[_0x5a42db(0x201)](_0x118014)),_0x51d7dc(0x4,_0x3af4dc[_0x5a42db(0x252)])],_0x21866a[_0x5a42db(0x2b5)]);function _0x85ceaa(){const _0x38b63b=_0x5a42db,_0x403106=_0x46780c['useDependency'](_0x21866a['LiveShareController']),_0xceabd5=_0x46780c[_0x38b63b(0x2ad)](_0x3af4dc[_0x38b63b(0x22e)]),_0x38febe=_0x46780c[_0x38b63b(0x2c5)](()=>_0xceabd5[_0x38b63b(0x21f)](_0x3af4dc[_0x38b63b(0x25b)][_0x38b63b(0x203)]),void 0x0,!0x1,[]),[_0x24856b,_0x492065]=_0x4b8b10[_0x38b63b(0x21b)](null),[_0x54f3bb,_0x1d3d2d]=_0x4b8b10[_0x38b63b(0x21b)](_0x1093b3['IDLE']),_0xa68222=_0x4b8b10[_0x38b63b(0x296)](null);return _0x4b8b10[_0x38b63b(0x285)](()=>(_0x38febe&&_0x403106[_0x38b63b(0x29f)](_0x38febe['getUnitId']())[_0x38b63b(0x1df)](_0xc095e6=>{const _0x37d23a=_0x38b63b;_0x492065(_0xc095e6),_0xa68222[_0x37d23a(0x226)]=_0xc095e6['status$'][_0x37d23a(0x240)](_0x8f25a0=>{_0x1d3d2d(_0x8f25a0);});}),()=>{const _0x3531da=_0x38b63b;var _0x4f4da2;(_0x4f4da2=_0xa68222[_0x3531da(0x226)])==null||_0x4f4da2[_0x3531da(0x2bf)](),_0xa68222[_0x3531da(0x226)]=null;}),[_0x38febe,_0x403106]),_0x24856b?_0x576bb8['jsx'](_0x37c869[_0x38b63b(0x2a8)],{'align':_0x38b63b(0x298),'disabled':_0x54f3bb===_0x1093b3[_0x38b63b(0x26c)],'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':_0x576bb8['jsx'](_0x3c3f14,{'status':_0x54f3bb,'coordinator':_0x24856b}),'children':_0x576bb8[_0x38b63b(0x2ba)](_0x38b63b(0x265),{'className':_0x37c869[_0x38b63b(0x2bd)](_0x38b63b(0x211),{'univer-cursor-not-allowed':_0x54f3bb===_0x1093b3[_0x38b63b(0x26c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x54f3bb!==_0x1093b3[_0x38b63b(0x26c)]}),'type':_0x38b63b(0x265),'children':_0x576bb8['jsx'](_0x69a8c2,{'className':_0x38b63b(0x232)})})}):null;}function _0x3c3f14(_0x2f7c0e){const _0x4e6efd=_0x5a42db,{status:_0x2202d3,coordinator:_0x36fb01}=_0x2f7c0e;switch(_0x2202d3){case _0x1093b3[_0x4e6efd(0x2c0)]:return _0x576bb8['jsx'](_0x37407f,{'coordinator':_0x36fb01});case _0x1093b3['FOLLOWING']:return _0x576bb8[_0x4e6efd(0x2ba)](_0x6b783a,{'coordinator':_0x36fb01});case _0x1093b3[_0x4e6efd(0x275)]:return _0x576bb8[_0x4e6efd(0x2ba)](_0x230c4e,{'coordinator':_0x36fb01});case _0x1093b3[_0x4e6efd(0x26c)]:return _0x576bb8['jsx'](_0x4970b2,{});case _0x1093b3[_0x4e6efd(0x228)]:return _0x576bb8[_0x4e6efd(0x2ba)](_0x5c4329,{'coordinator':_0x36fb01});default:return null;}}function _0x37407f(_0xc4567c){const _0x297024=_0x5a42db,{coordinator:_0x143abf}=_0xc4567c;return _0x576bb8[_0x297024(0x29c)](_0x576bb8['Fragment'],{'children':[_0x576bb8[_0x297024(0x2ba)](_0x297024(0x24a),{'className':_0x297024(0x222),'children':'Present\x20this\x20document'}),_0x576bb8[_0x297024(0x2ba)](_0x37c869['Button'],{'onClick':()=>_0x143abf['tryStartPresenting'](),'children':_0x297024(0x256)})]});}function _0x6b783a(_0xfc528f){const _0x54d319=_0x5a42db,{coordinator:_0x46c0da}=_0xfc528f;return _0x576bb8[_0x54d319(0x29c)](_0x576bb8[_0x54d319(0x27a)],{'children':[_0x576bb8[_0x54d319(0x2ba)](_0x54d319(0x24a),{'className':_0x54d319(0x222),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x576bb8[_0x54d319(0x2ba)](_0x37c869[_0x54d319(0x270)],{'onClick':()=>_0x46c0da[_0x54d319(0x21c)](),'children':'Stop\x20following'})]});}function _0x230c4e(_0x3f1279){const _0x7cde10=_0x5a42db,{coordinator:_0x301761}=_0x3f1279;return _0x576bb8[_0x7cde10(0x29c)](_0x576bb8['Fragment'],{'children':[_0x576bb8[_0x7cde10(0x2ba)](_0x7cde10(0x24a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x7cde10(0x223)}),_0x576bb8[_0x7cde10(0x2ba)](_0x37c869[_0x7cde10(0x270)],{'variant':'text','onClick':()=>_0x301761[_0x7cde10(0x2a6)](),'children':_0x7cde10(0x2bc)})]});}function _0x5c4329(_0x481d92){const _0xf81310=_0x5a42db,{coordinator:_0x20b64b}=_0x481d92;return _0x576bb8['jsxs'](_0x576bb8[_0xf81310(0x27a)],{'children':[_0x576bb8[_0xf81310(0x2ba)](_0xf81310(0x24a),{'className':_0xf81310(0x222),'children':_0xf81310(0x2b0)}),_0x576bb8[_0xf81310(0x2ba)](_0x37c869[_0xf81310(0x270)],{'variant':'default','onClick':()=>_0x20b64b[_0xf81310(0x29a)](),'children':'Stop\x20presenting'})]});}function _0x4970b2(){const _0x245b0a=_0x5a42db;return _0x576bb8['jsx'](_0x576bb8[_0x245b0a(0x27a)],{'children':_0x245b0a(0x213)});}var _0x40ef8a=Object['getOwnPropertyDescriptor'],_0x478757=(_0x4bdfce,_0x1e37a2,_0x88347c,_0xa45bc4)=>{const _0x5ca87e=_0x5a42db;for(var _0x2e805f=_0xa45bc4>0x1?void 0x0:_0xa45bc4?_0x40ef8a(_0x1e37a2,_0x88347c):_0x1e37a2,_0x2fbbf7=_0x4bdfce[_0x5ca87e(0x27f)]-0x1,_0x580a6b;_0x2fbbf7>=0x0;_0x2fbbf7--)(_0x580a6b=_0x4bdfce[_0x2fbbf7])&&(_0x2e805f=_0x580a6b(_0x2e805f)||_0x2e805f);return _0x2e805f;},_0x57a4f5=(_0xe3796b,_0x466711)=>(_0x27c290,_0x21f0c9)=>_0x466711(_0x27c290,_0x21f0c9,_0xe3796b);_0x21866a['DesktopLiveShareController']=class extends _0x3af4dc[_0x5a42db(0x26f)]{constructor(_0x5f3847,_0x113c9e){const _0x4f3255=_0x5a42db;super(),this[_0x4f3255(0x2ae)]=_0x5f3847,this[_0x4f3255(0x1ef)]=_0x113c9e,this[_0x4f3255(0x250)]();}['_mountLiveShare'](){const _0x4f80bf=_0x5a42db;this[_0x4f80bf(0x277)](this['_uiPartsService'][_0x4f80bf(0x220)](_0x46780c[_0x4f80bf(0x28a)][_0x4f80bf(0x28d)],()=>_0x46780c[_0x4f80bf(0x2c7)](_0x85ceaa,this['_injector'])));}},_0x21866a['DesktopLiveShareController']=_0x478757([_0x57a4f5(0x0,_0x3af4dc[_0x5a42db(0x201)](_0x3af4dc[_0x5a42db(0x274)])),_0x57a4f5(0x1,_0x46780c[_0x5a42db(0x283)])],_0x21866a[_0x5a42db(0x241)]);const _0x3cf879=_0x5a42db(0x22f),_0x4bf8ea={};var _0x516a4e=Object[_0x5a42db(0x1f0)],_0x518601=(_0x56ed3d,_0x1b1029,_0x2859ab,_0x407a43)=>{for(var _0xfae7e3=_0x407a43>0x1?void 0x0:_0x407a43?_0x516a4e(_0x1b1029,_0x2859ab):_0x1b1029,_0x77adaf=_0x56ed3d['length']-0x1,_0x31f8e4;_0x77adaf>=0x0;_0x77adaf--)(_0x31f8e4=_0x56ed3d[_0x77adaf])&&(_0xfae7e3=_0x31f8e4(_0xfae7e3)||_0xfae7e3);return _0xfae7e3;},_0x5143ff=(_0x224ea4,_0x21440c)=>(_0x41446b,_0x5c0d00)=>_0x21440c(_0x41446b,_0x5c0d00,_0x224ea4);let _0x5d70f6=class extends _0x3af4dc[_0x5a42db(0x26f)]{constructor(_0x332a18){const _0x508d9d=_0x5a42db;super(),this[_0x508d9d(0x235)]=_0x332a18,this[_0x508d9d(0x200)]();}[_0x5a42db(0x200)](){const _0x424665=_0x5a42db;[_0xe755ca['SetZoomRatioOperation']['id'],_0xe755ca[_0x424665(0x262)]['id'],_0x20cbe0[_0x424665(0x238)]['id']][_0x424665(0x1e7)](_0x30177d=>{const _0x5dd362=_0x424665;this[_0x5dd362(0x277)](this[_0x5dd362(0x235)][_0x5dd362(0x27c)](_0x30177d));});}};_0x5d70f6=_0x518601([_0x5143ff(0x0,_0x3af4dc[_0x5a42db(0x201)](_0x118014))],_0x5d70f6);var _0x536aac=Object[_0x5a42db(0x1fa)],_0x57a9d7=Object[_0x5a42db(0x1f0)],_0x2bd227=(_0x1f6389,_0x48279f,_0x70cb15)=>_0x48279f in _0x1f6389?_0x536aac(_0x1f6389,_0x48279f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x70cb15}):_0x1f6389[_0x48279f]=_0x70cb15,_0x3f1fca=(_0x5eacfe,_0x5c5cb7,_0x3b60bd,_0x3ed06d)=>{const _0x39bc66=_0x5a42db;for(var _0x552937=_0x3ed06d>0x1?void 0x0:_0x3ed06d?_0x57a9d7(_0x5c5cb7,_0x3b60bd):_0x5c5cb7,_0x2de09d=_0x5eacfe[_0x39bc66(0x27f)]-0x1,_0x4342c0;_0x2de09d>=0x0;_0x2de09d--)(_0x4342c0=_0x5eacfe[_0x2de09d])&&(_0x552937=_0x4342c0(_0x552937)||_0x552937);return _0x552937;},_0x187e08=(_0x4740cc,_0x5b6d35)=>(_0x5d3978,_0xda4f89)=>_0x5b6d35(_0x5d3978,_0xda4f89,_0x4740cc),_0x27c338=(_0x4f8053,_0x10b8b2,_0x2ce0cf)=>_0x2bd227(_0x4f8053,typeof _0x10b8b2!=_0x5a42db(0x1ff)?_0x10b8b2+'':_0x10b8b2,_0x2ce0cf);const _0x5a4f5b='UNIVER_LIVE_SHARE_PLUGIN';_0x21866a['UniverLiveSharePlugin']=class extends _0x3af4dc[_0x5a42db(0x21d)]{constructor(_0x3b815d=_0x4bf8ea,_0x2f71e4,_0x2b6dcb){const _0x36ffda=_0x5a42db;super(),this[_0x36ffda(0x1fe)]=_0x3b815d,this[_0x36ffda(0x2ae)]=_0x2f71e4,this[_0x36ffda(0x25a)]=_0x2b6dcb;const {..._0x275518}=_0x3af4dc[_0x36ffda(0x253)]({},_0x4bf8ea,this[_0x36ffda(0x1fe)]);this[_0x36ffda(0x25a)][_0x36ffda(0x22b)](_0x3cf879,_0x275518);}['onStarting'](){const _0x54f88d=_0x5a42db;_0x3af4dc[_0x54f88d(0x258)](this[_0x54f88d(0x2ae)],_0x3af4dc[_0x54f88d(0x1f5)]([[_0x118014],[_0x21866a[_0x54f88d(0x26a)]],[_0x5d70f6],[_0x21866a['DesktopLiveShareController']]],this[_0x54f88d(0x1fe)][_0x54f88d(0x269)])),_0x3af4dc[_0x54f88d(0x1f9)](this['_injector'],[[_0x5d70f6]]);}[_0x5a42db(0x225)](){const _0x32857c=_0x5a42db;_0x3af4dc[_0x32857c(0x1f9)](this[_0x32857c(0x2ae)],[[_0x21866a[_0x32857c(0x241)]]]);}},_0x27c338(_0x21866a[_0x5a42db(0x290)],_0x5a42db(0x28e),_0x3af4dc[_0x5a42db(0x25b)][_0x5a42db(0x1f6)]),_0x27c338(_0x21866a[_0x5a42db(0x290)],_0x5a42db(0x2bb),_0x5a4f5b),_0x21866a['UniverLiveSharePlugin']=_0x3f1fca([_0x3af4dc['DependentOn'](_0x2d57ff[_0x5a42db(0x2a2)]),_0x187e08(0x1,_0x3af4dc[_0x5a42db(0x201)](_0x3af4dc[_0x5a42db(0x274)])),_0x187e08(0x2,_0x3af4dc[_0x5a42db(0x1f1)])],_0x21866a[_0x5a42db(0x290)]),_0x21866a[_0x5a42db(0x25d)]=_0x85ceaa,_0x21866a['LiveShareService']=_0x118014,_0x21866a[_0x5a42db(0x26d)]=_0x1093b3,Object[_0x5a42db(0x1fa)](_0x21866a,Symbol[_0x5a42db(0x229)],{'value':_0x5a42db(0x247)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
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.
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/sheets": "0.
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/sheets-ui": "0.
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration-client": "0.11.0",
|
|
61
|
+
"@univerjs-pro/collaboration": "0.11.0",
|
|
62
|
+
"@univerjs/core": "0.11.0",
|
|
63
|
+
"@univerjs/engine-render": "0.11.0",
|
|
64
|
+
"@univerjs/sheets": "0.11.0",
|
|
65
|
+
"@univerjs/ui": "0.11.0",
|
|
66
|
+
"@univerjs/sheets-ui": "0.11.0",
|
|
67
|
+
"@univerjs/design": "0.11.0"
|
|
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.1.12",
|
|
76
76
|
"vitest": "^3.2.4",
|
|
77
|
-
"@univerjs
|
|
78
|
-
"@univerjs/
|
|
77
|
+
"@univerjs/protocol": "0.1.47",
|
|
78
|
+
"@univerjs-infra/shared": "0.11.0"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|