@univerjs-pro/live-share 0.12.4-experimental.20251210-29c379a → 0.12.4-experimental.20251211-e01e32a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x5af41d=_0x1be7;(function(_0x221e07,_0x208f9e){const _0x51291f=_0x1be7,_0x592638=_0x221e07();while(!![]){try{const _0x2bebe0=-parseInt(_0x51291f(0x18a))/0x1*(-parseInt(_0x51291f(0x1a3))/0x2)+-parseInt(_0x51291f(0x1a0))/0x3+parseInt(_0x51291f(0x195))/0x4+-parseInt(_0x51291f(0x18c))/0x5*(-parseInt(_0x51291f(0x193))/0x6)+parseInt(_0x51291f(0x190))/0x7+parseInt(_0x51291f(0x18f))/0x8*(-parseInt(_0x51291f(0x1a1))/0x9)+-parseInt(_0x51291f(0x187))/0xa*(parseInt(_0x51291f(0x1a8))/0xb);if(_0x2bebe0===_0x208f9e)break;else _0x592638['push'](_0x592638['shift']());}catch(_0x171f0c){_0x592638['push'](_0x592638['shift']());}}}(_0x4519,0x94441));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d['FRange']{[_0x5af41d(0x19f)](_0x123830,_0x23528c,_0x5bea2a,_0x228f97,_0x2df09a){const _0x44f4a0=_0x5af41d,_0x6fce60=_0x123830[_0x44f4a0(0x192)](n['LiveShareController']),_0x9c626e=_0x123830[_0x44f4a0(0x192)](g['IRenderManagerService']),_0x7bcb09=_0x23528c[_0x44f4a0(0x1a7)](),_0x300f1f=_0x23528c[_0x44f4a0(0x18b)](),_0xcb0ac2=_0x6fce60[_0x44f4a0(0x19e)](_0x7bcb09);(_0xcb0ac2==null?void 0x0:_0xcb0ac2[_0x44f4a0(0x196)]())!==n[_0x44f4a0(0x1aa)][_0x44f4a0(0x191)]||(_0x5bea2a[_0x44f4a0(0x19d)]()!==_0x300f1f['getSheetId']()&&this['_commandService'][_0x44f4a0(0x194)](u[_0x44f4a0(0x186)]['id'],{'unitId':_0x7bcb09,'subUnitId':_0x5bea2a[_0x44f4a0(0x19d)]()}),!_0x9c626e[_0x44f4a0(0x184)](_0x7bcb09))||_0x2df09a[_0x44f4a0(0x19b)](f['SetScrollOperation']['id'],{'unitId':_0x23528c[_0x44f4a0(0x1a7)](),'sheetId':_0x5bea2a[_0x44f4a0(0x19d)](),'sheetViewStartRow':_0x228f97[_0x44f4a0(0x188)],'sheetViewStartColumn':_0x228f97['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x1be7(_0x5c3e52,_0x2db6db){_0x5c3e52=_0x5c3e52-0x184;const _0x451950=_0x4519();let _0x1be7da=_0x451950[_0x5c3e52];return _0x1be7da;}d[_0x5af41d(0x19a)][_0x5af41d(0x198)](w);class C extends a[_0x5af41d(0x19c)]{['getLiveShareStatus'](){const _0x53bd03=_0x5af41d;var _0x1cd582,_0x5ce83a;const _0x9f2a71=this[_0x53bd03(0x1a6)]['get'](n[_0x53bd03(0x18d)]),_0x1d51dd=(_0x1cd582=this[_0x53bd03(0x197)]())==null?void 0x0:_0x1cd582[_0x53bd03(0x185)]();if(!_0x1d51dd)throw new Error('No\x20active\x20workbook\x20found.');const _0x42d7c3=_0x9f2a71[_0x53bd03(0x19e)](_0x1d51dd);return(_0x5ce83a=_0x42d7c3==null?void 0x0:_0x42d7c3[_0x53bd03(0x196)]())!=null?_0x5ce83a:n[_0x53bd03(0x1aa)]['IDLE'];}[_0x5af41d(0x1a5)](){const _0x2cef1f=_0x5af41d;var _0x264fe7;const _0x139470=this['_injector'][_0x2cef1f(0x192)](n[_0x2cef1f(0x18d)]),_0x536939=(_0x264fe7=this[_0x2cef1f(0x197)]())==null?void 0x0:_0x264fe7['getId']();if(!_0x536939)throw new Error('No\x20active\x20workbook\x20found.');const _0x46923b=_0x139470[_0x2cef1f(0x19e)](_0x536939);if(!_0x46923b)throw new Error(_0x2cef1f(0x1a9));_0x46923b['startFollowing']();}[_0x5af41d(0x1a2)](){const _0x161c1d=_0x5af41d;var _0x30129d;const _0x1230dc=this[_0x161c1d(0x1a6)]['get'](n[_0x161c1d(0x18d)]),_0x412015=(_0x30129d=this[_0x161c1d(0x197)]())==null?void 0x0:_0x30129d[_0x161c1d(0x185)]();if(!_0x412015)throw new Error(_0x161c1d(0x199));const _0x58554b=_0x1230dc[_0x161c1d(0x19e)](_0x412015);if(!_0x58554b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x58554b['stopFollowing']();}['startPresenting'](){const _0x1ad49b=_0x5af41d;var _0x2d1631;const _0x3c04c5=this['_injector'][_0x1ad49b(0x192)](n[_0x1ad49b(0x18d)]),_0x32c5db=(_0x2d1631=this[_0x1ad49b(0x197)]())==null?void 0x0:_0x2d1631[_0x1ad49b(0x185)]();if(!_0x32c5db)throw new Error(_0x1ad49b(0x199));const _0x2e6503=_0x3c04c5[_0x1ad49b(0x19e)](_0x32c5db);if(!_0x2e6503)throw new Error(_0x1ad49b(0x1a9));_0x2e6503[_0x1ad49b(0x189)]();}[_0x5af41d(0x18e)](){const _0x3a794a=_0x5af41d;var _0x24b213;const _0x3887e6=this['_injector']['get'](n[_0x3a794a(0x18d)]),_0x1400e7=(_0x24b213=this[_0x3a794a(0x197)]())==null?void 0x0:_0x24b213[_0x3a794a(0x185)]();if(!_0x1400e7)throw new Error('No\x20active\x20workbook\x20found.');const _0x405201=_0x3887e6[_0x3a794a(0x19e)](_0x1400e7);if(!_0x405201)throw new Error(_0x3a794a(0x1a9));_0x405201['stopPresenting']();}}a[_0x5af41d(0x19c)]['extend'](C);function _0x4519(){const _0x56e3ad=['getStatus','getActiveWorkbook','extend','No\x20active\x20workbook\x20found.','FRange','syncExecuteCommand','FUniver','getSheetId','getLiveShareCoordinatorSync','_initialize','799710QcbvRF','268119DnrRKd','stopFollowing','2JHpMpl','LiveShareStatusEnum','startFollowing','_injector','getUnitId','62392FPTWtB','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','LiveShareStatus','FEnum','getRenderById','getId','SetWorksheetActiveOperation','2130qsGBKq','startRow','tryStartPresenting','1175918YsTTIP','getActiveSheet','30IKjEpZ','LiveShareController','stopPresenting','152DmQgYq','4372305lDfDbr','PRESENTING','get','268182tZrmtR','executeCommand','2317268FwloIo'];_0x4519=function(){return _0x56e3ad;};return _0x4519();}class L extends a[_0x5af41d(0x1ab)]{get[_0x5af41d(0x1a4)](){const _0x51ab9a=_0x5af41d;return n[_0x51ab9a(0x1aa)];}}a['FEnum'][_0x5af41d(0x198)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x480436=_0x4c99;(function(_0x3ba62,_0x1705fc){const _0x51b51a=_0x4c99,_0x5b78ed=_0x3ba62();while(!![]){try{const _0x40eda3=-parseInt(_0x51b51a(0x25d))/0x1*(-parseInt(_0x51b51a(0x2b1))/0x2)+parseInt(_0x51b51a(0x28f))/0x3*(parseInt(_0x51b51a(0x1ed))/0x4)+-parseInt(_0x51b51a(0x213))/0x5*(-parseInt(_0x51b51a(0x2a5))/0x6)+-parseInt(_0x51b51a(0x234))/0x7+parseInt(_0x51b51a(0x20e))/0x8*(-parseInt(_0x51b51a(0x271))/0x9)+-parseInt(_0x51b51a(0x203))/0xa*(parseInt(_0x51b51a(0x211))/0xb)+parseInt(_0x51b51a(0x240))/0xc;if(_0x40eda3===_0x1705fc)break;else _0x5b78ed['push'](_0x5b78ed['shift']());}catch(_0x346aa2){_0x5b78ed['push'](_0x5b78ed['shift']());}}}(_0x2906,0xaf586));var T=Object['defineProperty'],U=(_0x366e1a,_0x4233b3,_0x311380)=>_0x4233b3 in _0x366e1a?T(_0x366e1a,_0x4233b3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x311380}):_0x366e1a[_0x4233b3]=_0x311380,_=(_0x5a3323,_0x3ed348,_0x3bcde7)=>U(_0x5a3323,typeof _0x3ed348!='symbol'?_0x3ed348+'':_0x3ed348,_0x3bcde7);Object[_0x480436(0x216)](exports,Symbol['toStringTag'],{'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:_0x4609d9,..._0x2d055e}){const _0x3dd1ca=_0x480436,{icon:_0x35eab3,id:_0x5468ea,className:_0x38c087,extend:_0x10d6fd,..._0x4feef7}=_0x2d055e,_0x425a2b=(_0x3dd1ca(0x235)+_0x5468ea+'\x20'+(_0x38c087||''))[_0x3dd1ca(0x290)](),_0x168204=v[_0x3dd1ca(0x20c)]('_'+H());return j(_0x35eab3,''+_0x5468ea,{'defIds':_0x35eab3['defIds'],'idSuffix':_0x168204['current']},{'ref':_0x4609d9,'className':_0x425a2b,..._0x4feef7},_0x10d6fd);}function j(_0x114611,_0x5bf324,_0x28f602,_0x1d9e6a,_0x2e5242){const _0x5770b4=_0x480436;return v['createElement'](_0x114611['tag'],{'key':_0x5bf324,...y(_0x114611,_0x28f602,_0x2e5242),..._0x1d9e6a},(F(_0x114611,_0x28f602)[_0x5770b4(0x28a)]||[])['map']((_0x5de92f,_0x26b37e)=>j(_0x5de92f,_0x5bf324+'-'+_0x114611[_0x5770b4(0x229)]+'-'+_0x26b37e,_0x28f602,void 0x0,_0x2e5242)));}function y(_0x4da06c,_0x44f9b6,_0x292774){const _0x855dd7=_0x480436,_0x101a66={..._0x4da06c[_0x855dd7(0x22d)]};_0x292774!=null&&_0x292774[_0x855dd7(0x1f1)]&&_0x101a66[_0x855dd7(0x20d)]===_0x855dd7(0x1f1)&&(_0x101a66[_0x855dd7(0x20d)]=_0x292774['colorChannel1']),_0x4da06c[_0x855dd7(0x229)]===_0x855dd7(0x264)&&_0x101a66['id']&&(_0x101a66['id']=_0x101a66['id']+_0x44f9b6[_0x855dd7(0x1fe)]),Object['entries'](_0x101a66)[_0x855dd7(0x23d)](([_0x373fc5,_0x3d8ee1])=>{const _0x235128=_0x855dd7;_0x373fc5===_0x235128(0x264)&&typeof _0x3d8ee1==_0x235128(0x242)&&(_0x101a66[_0x373fc5]=_0x3d8ee1[_0x235128(0x228)](/url\(#(.*)\)/,_0x235128(0x1ec)+_0x44f9b6[_0x235128(0x1fe)]+')'));});const {defIds:_0x35506b}=_0x44f9b6;return!_0x35506b||_0x35506b['length']===0x0||(_0x4da06c['tag']==='use'&&_0x101a66[_0x855dd7(0x267)]&&(_0x101a66[_0x855dd7(0x267)]=_0x101a66[_0x855dd7(0x267)]+_0x44f9b6[_0x855dd7(0x1fe)]),Object[_0x855dd7(0x28c)](_0x101a66)[_0x855dd7(0x23d)](([_0x5f2418,_0x5de26a])=>{const _0x38d267=_0x855dd7;typeof _0x5de26a==_0x38d267(0x242)&&(_0x101a66[_0x5f2418]=_0x5de26a[_0x38d267(0x228)](/url\(#(.*)\)/,'url(#$1'+_0x44f9b6[_0x38d267(0x1fe)]+')'));})),_0x101a66;}function F(_0x28b192,_0x5ad15f){const _0x53a7f8=_0x480436;var _0x2ee943;const {defIds:_0x58bf3f}=_0x5ad15f;return!_0x58bf3f||_0x58bf3f['length']===0x0?_0x28b192:_0x28b192[_0x53a7f8(0x229)]===_0x53a7f8(0x258)&&((_0x2ee943=_0x28b192['children'])!=null&&_0x2ee943[_0x53a7f8(0x21b)])?{..._0x28b192,'children':_0x28b192[_0x53a7f8(0x28a)][_0x53a7f8(0x238)](_0x5b878c=>typeof _0x5b878c[_0x53a7f8(0x22d)]['id']==_0x53a7f8(0x242)&&_0x58bf3f&&_0x58bf3f[_0x53a7f8(0x1f4)](_0x5b878c[_0x53a7f8(0x22d)]['id'])?{..._0x5b878c,'attrs':{..._0x5b878c['attrs'],'id':_0x5b878c[_0x53a7f8(0x22d)]['id']+_0x5ad15f[_0x53a7f8(0x1fe)]}}:_0x5b878c)}:_0x28b192;}function H(){const _0x1d71ed=_0x480436;return Math[_0x1d71ed(0x269)]()[_0x1d71ed(0x25e)](0x24)['substring'](0x2,0x8);}x[_0x480436(0x1ef)]=_0x480436(0x2b3);const V={'tag':_0x480436(0x2ac),'attrs':{'xmlns':_0x480436(0x24c),'fill':_0x480436(0x270),'viewBox':_0x480436(0x21d),'width':_0x480436(0x20f),'height':_0x480436(0x20f)},'children':[{'tag':_0x480436(0x29b),'attrs':{'fill':_0x480436(0x296),'d':_0x480436(0x2ab)}},{'tag':'path','attrs':{'fill':_0x480436(0x296),'d':_0x480436(0x24f),'fillRule':_0x480436(0x1ff),'clipRule':_0x480436(0x1ff)}}]},R=v['forwardRef'](function(_0x9b7189,_0x2ef559){const _0x298f5a=_0x480436;return v[_0x298f5a(0x2b8)](x,Object[_0x298f5a(0x252)]({},_0x9b7189,{'id':_0x298f5a(0x1fb),'ref':_0x2ef559,'icon':V}));});R[_0x480436(0x1ef)]=_0x480436(0x2b5);class E extends o[_0x480436(0x230)]{constructor(){const _0x51c5a2=_0x480436;super(...arguments),_(this,_0x51c5a2(0x1fc),new Set()),_(this,_0x51c5a2(0x2bd),new Set());}[_0x480436(0x282)](_0xee8744){const _0x4d4a55=_0x480436;return this[_0x4d4a55(0x1fc)][_0x4d4a55(0x26f)](_0xee8744),o['toDisposable'](()=>this[_0x4d4a55(0x1fc)][_0x4d4a55(0x255)](_0xee8744));}[_0x480436(0x23c)](_0x49e5dd){const _0x49984c=_0x480436;return this[_0x49984c(0x2bd)][_0x49984c(0x26f)](_0x49e5dd),o['toDisposable'](()=>this['_reporters'][_0x49984c(0x255)](_0x49e5dd));}[_0x480436(0x28b)](_0x174917){const _0x392ac1=_0x480436;return this[_0x392ac1(0x1fc)]['has'](_0x174917);}['getInitialStates'](_0x64f60d){const _0x4a15c5=_0x480436;return Array[_0x4a15c5(0x263)](this[_0x4a15c5(0x2bd)])[_0x4a15c5(0x238)](_0x4515b3=>_0x4515b3(_0x64f60d));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x189c14,_0x4a3027,_0x5c5c0f,_0x272a4f)=>{const _0x39e9b7=_0x480436;for(var _0x382e84=_0x272a4f>0x1?void 0x0:_0x272a4f?M(_0x4a3027,_0x5c5c0f):_0x4a3027,_0x4b56ff=_0x189c14[_0x39e9b7(0x21b)]-0x1,_0x5e0539;_0x4b56ff>=0x0;_0x4b56ff--)(_0x5e0539=_0x189c14[_0x4b56ff])&&(_0x382e84=_0x5e0539(_0x382e84)||_0x382e84);return _0x382e84;},S=(_0x49a39f,_0x2c48a2)=>(_0x1c0dc5,_0x25bbd5)=>_0x2c48a2(_0x1c0dc5,_0x25bbd5,_0x49a39f);exports[_0x480436(0x29a)]=class extends o['RxDisposable']{constructor(_0x1e2823,_0x1b2dfb,_0x155775){const _0xc523fe=_0x480436;super(),_(this,_0xc523fe(0x2b6),new Map()),(this[_0xc523fe(0x22f)]=_0x1e2823,this['_injector']=_0x1b2dfb,this[_0xc523fe(0x1f6)]=_0x155775,this[_0xc523fe(0x285)]());}async[_0x480436(0x253)](_0x2c5336){const _0x192fbd=_0x480436;return this['_entities'][_0x192fbd(0x25b)](_0x2c5336)||await this[_0x192fbd(0x23e)](_0x2c5336),this[_0x192fbd(0x2b6)][_0x192fbd(0x210)](_0x2c5336);}['getLiveShareCoordinatorSync'](_0x1aac15){const _0x46c9b5=_0x480436;var _0x3c828f;return(_0x3c828f=this[_0x46c9b5(0x2b6)][_0x46c9b5(0x210)](_0x1aac15))!=null?_0x3c828f:null;}['_init'](){const _0x1fffcb=_0x480436;this[_0x1fffcb(0x22f)]['getTypeOfUnitAdded$'](o[_0x1fffcb(0x208)][_0x1fffcb(0x221)])[_0x1fffcb(0x2a4)](I[_0x1fffcb(0x27b)](this['dispose$']))['subscribe'](async _0x2b4484=>{const _0x5d4966=_0x1fffcb,_0x339906=_0x2b4484['getUnitId']();this[_0x5d4966(0x2b6)][_0x5d4966(0x25b)](_0x339906)||this[_0x5d4966(0x23e)](_0x339906);}),this[_0x1fffcb(0x22f)][_0x1fffcb(0x2b2)](o[_0x1fffcb(0x208)][_0x1fffcb(0x221)])[_0x1fffcb(0x2a4)](I[_0x1fffcb(0x27b)](this[_0x1fffcb(0x1e6)]))[_0x1fffcb(0x27e)](_0x393840=>{const _0x5dadcc=_0x1fffcb,_0x99dd0=_0x393840['getUnitId'](),_0x54eb2e=this[_0x5dadcc(0x2b6)]['get'](_0x99dd0);_0x54eb2e==null||_0x54eb2e[_0x5dadcc(0x273)]();});}async['_startLiveShareCoordinator'](_0x192be4){const _0x18219c=_0x480436,_0x5cc0c8=await this[_0x18219c(0x1f6)][_0x18219c(0x2bc)](_0x192be4),_0x19877f=this['_injector'][_0x18219c(0x243)](exports[_0x18219c(0x219)],_0x192be4,_0x5cc0c8);return _0x19877f['init'](),this[_0x18219c(0x2b6)]['set'](_0x192be4,_0x19877f),_0x19877f;}},exports[_0x480436(0x29a)]=P([S(0x0,o[_0x480436(0x21a)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o['Inject'](b[_0x480436(0x2b9)]))],exports[_0x480436(0x29a)]);var u=(_0x5f55aa=>(_0x5f55aa[_0x480436(0x287)]=_0x480436(0x24a),_0x5f55aa[_0x480436(0x29f)]='idle',_0x5f55aa[_0x480436(0x297)]='following',_0x5f55aa['NOT_FOLLOWING']='not-following',_0x5f55aa['PRESENTING']=_0x480436(0x278),_0x5f55aa))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x480436(0x219)]=class extends o[_0x480436(0x277)]{constructor(_0x3d77c7,_0x1bfcd6,_0x16174e,_0x551b33,_0x224a52){const _0xf3507e=_0x480436;super(),_(this,_0xf3507e(0x239),new O[(_0xf3507e(0x2a0))](_0xf3507e(0x1f5))),_(this,_0xf3507e(0x27c),this[_0xf3507e(0x239)][_0xf3507e(0x2b4)]()),_(this,'_init',!0x1),_(this,_0xf3507e(0x2aa),null),_(this,_0xf3507e(0x27f),null),(this[_0xf3507e(0x28e)]=_0x3d77c7,this[_0xf3507e(0x2bb)]=_0x1bfcd6,this[_0xf3507e(0x2ba)]=_0x16174e,this['_liveShareService']=_0x551b33,this['_commandService']=_0x224a52);}get[_0x480436(0x29d)](){const _0x5414a2=_0x480436;return this['_status$'][_0x5414a2(0x206)]();}[_0x480436(0x273)](){const _0x500e97=_0x480436;var _0x38eb2c;(_0x38eb2c=this[_0x500e97(0x2aa)])==null||_0x38eb2c[_0x500e97(0x273)](),this['_status$'][_0x500e97(0x217)]('idle'),this['_status$']['complete']();}['getStatus'](){const _0x1433e6=_0x480436;return this[_0x1433e6(0x29d)];}['init'](){const _0xb290c7=_0x480436;this[_0xb290c7(0x285)]||(this[_0xb290c7(0x285)]=!0x0,this[_0xb290c7(0x2bb)][_0xb290c7(0x1f3)][_0xb290c7(0x2a4)](I['takeUntil'](this[_0xb290c7(0x1e6)]))[_0xb290c7(0x27e)](_0x55525b=>{const _0x8a639b=_0xb290c7;switch(_0x55525b){case b[_0x8a639b(0x247)][_0x8a639b(0x287)]:this[_0x8a639b(0x28d)]();break;case b[_0x8a639b(0x247)]['ONLINE']:this[_0x8a639b(0x22e)]();break;}}),this[_0xb290c7(0x2bb)][_0xb290c7(0x222)]['pipe'](I[_0xb290c7(0x27b)](this[_0xb290c7(0x1e6)]))[_0xb290c7(0x27e)](_0x261ebc=>{const _0x175891=_0xb290c7,{eventID:_0x17dc23}=_0x261ebc;switch(_0x17dc23){case d['CollaborationEvent'][_0x175891(0x245)]:this[_0x175891(0x20b)](_0x261ebc);break;case d['CollaborationEvent'][_0x175891(0x21f)]:this['_handleOperation'](_0x261ebc);break;case d['CollaborationEvent'][_0x175891(0x200)]:this[_0x175891(0x232)]();break;case d['CollaborationEvent'][_0x175891(0x1f9)]:this[_0x175891(0x288)](_0x261ebc);break;}}));}[_0x480436(0x283)](){const _0x2be376=_0x480436;this[_0x2be376(0x2bb)][_0x2be376(0x260)]({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x2be376(0x28e)],'userID':this[_0x2be376(0x2bb)][_0x2be376(0x261)]()}},this['_unitID']);}[_0x480436(0x227)](){const _0x37a0f3=_0x480436;this[_0x37a0f3(0x29d)]==='presenting'&&(this[_0x37a0f3(0x239)]['next'](_0x37a0f3(0x1f5)),this[_0x37a0f3(0x2bb)][_0x37a0f3(0x260)]({'eventID':d[_0x37a0f3(0x246)][_0x37a0f3(0x200)],'data':{'unitID':this['_unitID']}},this[_0x37a0f3(0x28e)]));}['startFollowing'](){const _0x227fa0=_0x480436;this[_0x227fa0(0x29d)]===_0x227fa0(0x233)&&(this[_0x227fa0(0x239)]['next']('following'),this[_0x227fa0(0x26b)]());}[_0x480436(0x268)](){const _0xaa0cd2=_0x480436;this[_0xaa0cd2(0x29d)]===_0xaa0cd2(0x2ad)&&this[_0xaa0cd2(0x27d)]();}['_handleNewHost'](_0x2961ed){const _0x26be98=_0x480436,{presenter:_0x4ad6ee}=_0x2961ed['data'],_0x485dc8=this[_0x26be98(0x2bb)]['getMemberID']();this[_0x26be98(0x27f)]=_0x4ad6ee,_0x4ad6ee===_0x485dc8?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x26be98(0x29d)]!=='not-following'&&(this[_0x26be98(0x201)](),this[_0x26be98(0x26b)]());}[_0x480436(0x1f0)](){const _0x518748=_0x480436,_0x429c6c={'eventID':d[_0x518748(0x246)][_0x518748(0x2af)]};this[_0x518748(0x2bb)]['send'](_0x429c6c,this['_unitID']);}[_0x480436(0x232)](){const _0x3e31f2=_0x480436;this[_0x3e31f2(0x27f)]=null,this['_status']!==_0x3e31f2(0x278)&&this[_0x3e31f2(0x212)]();}[_0x480436(0x288)](_0x29b603){const _0x3301e2=_0x480436;if(this[_0x3301e2(0x29d)]===_0x3301e2(0x2ad)&&this['_presenter']===_0x29b603[_0x3301e2(0x29c)][_0x3301e2(0x248)]){const _0xc07d77=d[_0x3301e2(0x251)](_0x29b603[_0x3301e2(0x29c)])['mutations'][_0x3301e2(0x256)]()[_0x3301e2(0x224)](_0x506ac4=>_0x506ac4['id']===C[_0x3301e2(0x207)]['id']);if(_0xc07d77){const _0x1e8270=_0xc07d77[_0x3301e2(0x249)][_0x3301e2(0x1f7)],_0xe193ef=_0xc07d77['params'][_0x3301e2(0x2a6)]['id'];setTimeout(()=>{const _0xb8c779=_0x3301e2;this[_0xb8c779(0x294)][_0xb8c779(0x281)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x1e8270,'subUnitId':_0xe193ef},{'fromCollab':!0x0});});}}}[_0x480436(0x24e)](){const _0x8cd83b=_0x480436;this[_0x8cd83b(0x239)][_0x8cd83b(0x217)]('presenting');const _0x52073f=new Map(),_0x3b1938=this['_commandDisposable']=new o[(_0x8cd83b(0x209))]();_0x3b1938['add'](o[_0x8cd83b(0x2b0)](()=>{const _0x5876d4=_0x8cd83b;_0x52073f[_0x5876d4(0x23d)](_0x1862f9=>_0x1862f9[_0x5876d4(0x291)]()),_0x52073f[_0x5876d4(0x231)]();})),_0x3b1938['add'](this[_0x8cd83b(0x294)][_0x8cd83b(0x25a)](_0x130d8c=>{const _0xc0ebd0=_0x8cd83b;var _0x2f46a8;if(_0x130d8c[_0xc0ebd0(0x279)]!==o[_0xc0ebd0(0x280)][_0xc0ebd0(0x236)]||!this[_0xc0ebd0(0x244)][_0xc0ebd0(0x28b)](_0x130d8c['id']))return;const {id:_0x336354}=_0x130d8c;let _0x353401;_0x52073f[_0xc0ebd0(0x25b)](_0x336354)?_0x353401=_0x52073f[_0xc0ebd0(0x210)](_0x336354):(_0x353401=new O['Subject'](),_0x52073f[_0xc0ebd0(0x1f2)](_0x336354,_0x353401),_0x353401['pipe'](I[_0xc0ebd0(0x22c)]((_0x2f46a8=this[_0xc0ebd0(0x2ba)]['getConfig'](k))!=null?_0x2f46a8:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xc0ebd0(0x27e)](_0x4551fc=>{const _0x150a0d=_0xc0ebd0;this[_0x150a0d(0x2bb)][_0x150a0d(0x260)]({'eventID':d[_0x150a0d(0x246)][_0x150a0d(0x21f)],'data':{'unitID':this[_0x150a0d(0x28e)],'operations':{[_0x4551fc['id']]:{'id':_0x4551fc['id'],'params':JSON[_0x150a0d(0x23f)](_0x4551fc[_0x150a0d(0x249)])}}}},this[_0x150a0d(0x28e)]);})),_0x353401[_0xc0ebd0(0x217)](_0x130d8c);})),this[_0x8cd83b(0x244)][_0x8cd83b(0x276)](this[_0x8cd83b(0x28e)])[_0x8cd83b(0x23d)](_0xf586a3=>this[_0x8cd83b(0x2bb)][_0x8cd83b(0x260)]({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x8cd83b(0x28e)],'operations':{[_0xf586a3['id']]:{'id':_0xf586a3['id'],'params':JSON[_0x8cd83b(0x23f)](_0xf586a3[_0x8cd83b(0x249)])}}}},this[_0x8cd83b(0x28e)]));}[_0x480436(0x201)](){const _0x582bab=_0x480436;var _0xe8c3d;this[_0x582bab(0x239)]['next'](_0x582bab(0x1f5)),(_0xe8c3d=this[_0x582bab(0x2aa)])==null||_0xe8c3d['dispose'](),this[_0x582bab(0x2aa)]=null;}[_0x480436(0x26b)](){const _0x124149=_0x480436;var _0x10445f;(_0x10445f=this[_0x124149(0x2aa)])==null||_0x10445f[_0x124149(0x273)](),this['_status$'][_0x124149(0x217)](_0x124149(0x2ad));}[_0x480436(0x212)](){const _0x168baf=_0x480436;var _0xf50e0;this[_0x168baf(0x239)][_0x168baf(0x217)](_0x168baf(0x1f5)),(_0xf50e0=this[_0x168baf(0x2aa)])==null||_0xf50e0[_0x168baf(0x273)](),this[_0x168baf(0x2aa)]=null;}[_0x480436(0x27d)](){const _0x2289a1=_0x480436;var _0x1e1f38;this[_0x2289a1(0x239)][_0x2289a1(0x217)](_0x2289a1(0x233)),(_0x1e1f38=this['_commandDisposable'])==null||_0x1e1f38['dispose']();}[_0x480436(0x289)](_0x4315f5){const _0x489004=_0x480436;if([_0x489004(0x278),_0x489004(0x233),_0x489004(0x24a)][_0x489004(0x1f4)](this['_status'])||!_0x4315f5[_0x489004(0x29c)]['presenter']||_0x4315f5[_0x489004(0x29c)][_0x489004(0x20a)]===this[_0x489004(0x2bb)][_0x489004(0x261)]())return;this[_0x489004(0x29d)]==='idle'&&this[_0x489004(0x26b)]();const _0x1c33e1=_0x4315f5[_0x489004(0x29c)][_0x489004(0x205)];Object[_0x489004(0x1eb)](_0x1c33e1)[_0x489004(0x23d)](_0x701b52=>{const _0x5a75e3=_0x489004;this[_0x5a75e3(0x294)][_0x5a75e3(0x281)](_0x701b52['id'],_0x701b52[_0x5a75e3(0x249)]?JSON[_0x5a75e3(0x214)](_0x701b52[_0x5a75e3(0x249)]):null,{'fromCollab':!0x0});});}[_0x480436(0x28d)](){const _0x4ca5b5=_0x480436;var _0x54f6c9;this['_status$'][_0x4ca5b5(0x217)](_0x4ca5b5(0x24a)),(_0x54f6c9=this['_commandDisposable'])==null||_0x54f6c9[_0x4ca5b5(0x273)]();}['_handleOnline'](){const _0x292f9c=_0x480436;this[_0x292f9c(0x239)][_0x292f9c(0x217)]('idle'),this[_0x292f9c(0x1f0)]();}},exports[_0x480436(0x219)]=P([S(0x2,o['IConfigService']),S(0x3,o[_0x480436(0x215)](E)),S(0x4,o[_0x480436(0x1fa)])],exports[_0x480436(0x219)]);function $(){const _0x431cb8=_0x480436,_0x2aeca1=p[_0x431cb8(0x24d)](exports[_0x431cb8(0x29a)]),_0x22eb6c=p['useDependency'](o[_0x431cb8(0x21a)]),_0x165721=p[_0x431cb8(0x226)](()=>_0x22eb6c[_0x431cb8(0x22b)](o[_0x431cb8(0x208)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4f3578,_0x43cb86]=v[_0x431cb8(0x1fd)](null),[_0xbe52f7,_0x216e29]=v[_0x431cb8(0x1fd)](u['IDLE']),_0x5cb6eb=v[_0x431cb8(0x20c)](null);return v['useEffect'](()=>(_0x165721&&_0x2aeca1[_0x431cb8(0x253)](_0x165721[_0x431cb8(0x25f)]())[_0x431cb8(0x286)](_0x50df66=>{const _0x2e2793=_0x431cb8;_0x43cb86(_0x50df66),_0x5cb6eb['current']=_0x50df66['status$'][_0x2e2793(0x27e)](_0x58de62=>{_0x216e29(_0x58de62);});}),()=>{const _0x1e1bb9=_0x431cb8;var _0x9b3964;(_0x9b3964=_0x5cb6eb[_0x1e1bb9(0x21c)])==null||_0x9b3964[_0x1e1bb9(0x275)](),_0x5cb6eb[_0x1e1bb9(0x21c)]=null;}),[_0x165721,_0x2aeca1]),_0x4f3578?l['jsx'](f[_0x431cb8(0x1ea)],{'align':_0x431cb8(0x259),'disabled':_0xbe52f7===u[_0x431cb8(0x287)],'className':_0x431cb8(0x295),'overlay':l[_0x431cb8(0x254)](W,{'status':_0xbe52f7,'coordinator':_0x4f3578}),'children':l[_0x431cb8(0x254)](_0x431cb8(0x265),{'className':f[_0x431cb8(0x1e7)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xbe52f7===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xbe52f7!==u['OFFLINE']}),'type':_0x431cb8(0x265),'children':l[_0x431cb8(0x254)](R,{'className':'univer-size-4'})})}):null;}function W(_0x407a63){const _0x593b57=_0x480436,{status:_0x163b5d,coordinator:_0x5eb326}=_0x407a63;switch(_0x163b5d){case u[_0x593b57(0x29f)]:return l[_0x593b57(0x254)](G,{'coordinator':_0x5eb326});case u[_0x593b57(0x297)]:return l[_0x593b57(0x254)](B,{'coordinator':_0x5eb326});case u['NOT_FOLLOWING']:return l[_0x593b57(0x254)](Y,{'coordinator':_0x5eb326});case u[_0x593b57(0x287)]:return l[_0x593b57(0x254)](J,{});case u[_0x593b57(0x2a8)]:return l[_0x593b57(0x254)](Z,{'coordinator':_0x5eb326});default:return null;}}function G(_0xc4586e){const _0x4ebfe3=_0x480436,{coordinator:_0x38c7c7}=_0xc4586e;return l[_0x4ebfe3(0x274)](l[_0x4ebfe3(0x1ee)],{'children':[l['jsx'](_0x4ebfe3(0x21e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4ebfe3(0x299)}),l[_0x4ebfe3(0x254)](f[_0x4ebfe3(0x26e)],{'onClick':()=>_0x38c7c7[_0x4ebfe3(0x283)](),'children':'Start'})]});}function _0x4c99(_0x368068,_0x29a3bf){_0x368068=_0x368068-0x1e6;const _0x2906b7=_0x2906();let _0x4c993a=_0x2906b7[_0x368068];return _0x4c993a;}function _0x2906(){const _0x471e2f=['executeCommand','registerSharedOperation','tryStartPresenting','SetScrollOperation','_init','then','OFFLINE','_handleNewChangeSets','_handleOperation','children','shouldShareOperation','entries','_handleOffline','_unitID','15TOEUzJ','trim','complete','Injector','IUIPartsService','_commandService','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','currentColor','FOLLOWING','pluginName','Present\x20this\x20document','LiveShareController','path','data','_status','merge','IDLE','BehaviorSubject','registerComponent','override','connectInjector','pipe','160032gRmaWp','sheet','You\x27re\x20following\x20the\x20presenter','PRESENTING','Stop\x20presenting','_commandDisposable','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','svg','following','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_FETCH_OPERATIONS','toDisposable','274308easLZv','getTypeOfUnitDisposed$','UniverIcon','asObservable','LiveShareIcon','_entities','default','createElement','CollaborationSessionService','_configService','_collabSession','requireSession','_reporters','dispose$','clsx','UniverCollaborationClientPlugin','onStarting','Dropdown','values','url(#$1','833396fLjXDs','Fragment','displayName','_fetchOperations','colorChannel1','set','sessionStatus$','includes','idle','_collabSessionService','unitId','LiveShare','NEW_CHANGESETS','ICommandService','live-share-icon','_sharedOperations','useState','idSuffix','evenodd','LIVESHARE_TERMINATE','_stopPresenting','text','40aUGNZl','Start\x20following','operations','getValue','InsertSheetMutation','UniverInstanceType','DisposableCollection','presenter','_handleNewHost','useRef','fill','112LniyJj','1em','get','3114221xkkHVg','_beIdle','65kwUsWF','parse','Inject','defineProperty','next','UniverLiveSharePlugin','LiveShareCoordinator','IUniverInstanceService','length','current','0\x200\x2017\x2017','div','LIVESHARE_OPERATION','DependentOn','UNIVER_SHEET','event$','DesktopLiveShareController','find','You\x27re\x20not\x20following\x20the\x20presenter','useObservable','stopPresenting','replace','tag','_mountLiveShare','getCurrentTypeOfUnit$','throttleTime','attrs','_handleOnline','_univerInstanceService','Disposable','clear','_handleTerminate','not-following','8175643MrFVIy','univerjs-icon\x20univerjs-icon-','OPERATION','symbol','map','_status$','Stop\x20following','onRendered','registerInitialStateReporter','forEach','_startLiveShareCoordinator','stringify','20270856GCCALK','touchDependencies','string','createInstance','_liveShareService','LIVESHARE_NEW_HOST','CollaborationEvent','SessionStatus','memberID','params','offline','registerDependencies','http://www.w3.org/2000/svg','useDependency','_startPresenting','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','univer-mb-3\x20univer-w-full\x20univer-text-sm','parseProtocolChangeset','assign','getLiveShareCoordinator','jsx','delete','reverse','UNIVER_UNKNOWN','defs','end','onCommandExecuted','has','_injector','1rMGWih','toString','getUnitId','send','getMemberID','BuiltInUIPart','from','mask','button','_uiPartsService','xlink:href','stopFollowing','random','getOwnPropertyDescriptor','_startFollowing','LiveShareService','_config','Button','add','none','126171LIOUXy','Plugin','dispose','jsxs','unsubscribe','getInitialStates','RxDisposable','presenting','type','disposeWithMe','takeUntil','status$','_stopFollowing','subscribe','_presenter','CommandType'];_0x2906=function(){return _0x471e2f;};return _0x2906();}function B(_0x19a128){const _0x26326a=_0x480436,{coordinator:_0x9bf3c}=_0x19a128;return l[_0x26326a(0x274)](l['Fragment'],{'children':[l[_0x26326a(0x254)](_0x26326a(0x21e),{'className':_0x26326a(0x250),'children':_0x26326a(0x2a7)}),l[_0x26326a(0x254)](f[_0x26326a(0x26e)],{'onClick':()=>_0x9bf3c['stopFollowing'](),'children':_0x26326a(0x23a)})]});}function Y(_0x406cba){const _0x41a206=_0x480436,{coordinator:_0x97b4b6}=_0x406cba;return l[_0x41a206(0x274)](l[_0x41a206(0x1ee)],{'children':[l[_0x41a206(0x254)](_0x41a206(0x21e),{'className':_0x41a206(0x250),'children':_0x41a206(0x225)}),l[_0x41a206(0x254)](f[_0x41a206(0x26e)],{'variant':_0x41a206(0x202),'onClick':()=>_0x97b4b6['startFollowing'](),'children':_0x41a206(0x204)})]});}function Z(_0x34c575){const _0x3ce4cf=_0x480436,{coordinator:_0x46608d}=_0x34c575;return l['jsxs'](l[_0x3ce4cf(0x1ee)],{'children':[l['jsx'](_0x3ce4cf(0x21e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x3ce4cf(0x254)](f[_0x3ce4cf(0x26e)],{'variant':_0x3ce4cf(0x2b7),'onClick':()=>_0x46608d[_0x3ce4cf(0x227)](),'children':_0x3ce4cf(0x2a9)})]});}function J(){const _0x229a2c=_0x480436;return l[_0x229a2c(0x254)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var K=Object['getOwnPropertyDescriptor'],z=(_0x29fefc,_0x1eb802,_0x1d01c2,_0x2e3be4)=>{for(var _0x5dbde6=_0x2e3be4>0x1?void 0x0:_0x2e3be4?K(_0x1eb802,_0x1d01c2):_0x1eb802,_0x2522a2=_0x29fefc['length']-0x1,_0x43e08a;_0x2522a2>=0x0;_0x2522a2--)(_0x43e08a=_0x29fefc[_0x2522a2])&&(_0x5dbde6=_0x43e08a(_0x5dbde6)||_0x5dbde6);return _0x5dbde6;},L=(_0x565759,_0x512a0a)=>(_0x37bd0a,_0x57a810)=>_0x512a0a(_0x37bd0a,_0x57a810,_0x565759);exports[_0x480436(0x223)]=class extends o[_0x480436(0x230)]{constructor(_0x3d4a95,_0x433670){const _0x22ad4b=_0x480436;super(),this['_injector']=_0x3d4a95,this[_0x22ad4b(0x266)]=_0x433670,this[_0x22ad4b(0x22a)]();}[_0x480436(0x22a)](){const _0xab8a97=_0x480436;this[_0xab8a97(0x27a)](this[_0xab8a97(0x266)][_0xab8a97(0x2a1)](p[_0xab8a97(0x262)]['HEADER_MENU'],()=>p[_0xab8a97(0x2a3)]($,this['_injector'])));}},exports[_0x480436(0x223)]=z([L(0x0,o[_0x480436(0x215)](o[_0x480436(0x292)])),L(0x1,p[_0x480436(0x293)])],exports[_0x480436(0x223)]);const Q='live-share.config',w={};var X=Object[_0x480436(0x26a)],ee=(_0x5d0bcf,_0x5286e2,_0x3961c0,_0x245ac5)=>{for(var _0x36925b=_0x245ac5>0x1?void 0x0:_0x245ac5?X(_0x5286e2,_0x3961c0):_0x5286e2,_0x10a55c=_0x5d0bcf['length']-0x1,_0xf86b44;_0x10a55c>=0x0;_0x10a55c--)(_0xf86b44=_0x5d0bcf[_0x10a55c])&&(_0x36925b=_0xf86b44(_0x36925b)||_0x36925b);return _0x36925b;},te=(_0x5a4366,_0x3fc47b)=>(_0x2cc020,_0x53f254)=>_0x3fc47b(_0x2cc020,_0x53f254,_0x5a4366);let m=class extends o[_0x480436(0x230)]{constructor(_0x18e85e){const _0x1584ea=_0x480436;super(),this[_0x1584ea(0x244)]=_0x18e85e,this[_0x1584ea(0x285)]();}[_0x480436(0x285)](){const _0x1773d9=_0x480436;[D['SetZoomRatioOperation']['id'],D[_0x1773d9(0x284)]['id'],C['SetWorksheetActiveOperation']['id']][_0x1773d9(0x23d)](_0x3fcc1a=>{const _0x56046b=_0x1773d9;this['disposeWithMe'](this[_0x56046b(0x244)][_0x56046b(0x282)](_0x3fcc1a));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x480436(0x216)],se=Object['getOwnPropertyDescriptor'],ne=(_0x5ab78a,_0x3f8bbb,_0x344637)=>_0x3f8bbb in _0x5ab78a?ie(_0x5ab78a,_0x3f8bbb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x344637}):_0x5ab78a[_0x3f8bbb]=_0x344637,re=(_0xe350a2,_0x1ae402,_0x3cdaf5,_0x2b5a30)=>{const _0x4d3860=_0x480436;for(var _0x16d680=_0x2b5a30>0x1?void 0x0:_0x2b5a30?se(_0x1ae402,_0x3cdaf5):_0x1ae402,_0x6f9a02=_0xe350a2[_0x4d3860(0x21b)]-0x1,_0x1e37f1;_0x6f9a02>=0x0;_0x6f9a02--)(_0x1e37f1=_0xe350a2[_0x6f9a02])&&(_0x16d680=_0x1e37f1(_0x16d680)||_0x16d680);return _0x16d680;},N=(_0x727859,_0x49e53e)=>(_0x193b21,_0xa866ce)=>_0x49e53e(_0x193b21,_0xa866ce,_0x727859),A=(_0x55051d,_0x2c9690,_0x38da53)=>ne(_0x55051d,typeof _0x2c9690!=_0x480436(0x237)?_0x2c9690+'':_0x2c9690,_0x38da53);const oe=_0x480436(0x2ae);exports[_0x480436(0x218)]=class extends o[_0x480436(0x272)]{constructor(_0x40e758=w,_0x1bf925,_0x1021d9){const _0x119619=_0x480436;super(),this[_0x119619(0x26d)]=_0x40e758,this[_0x119619(0x25c)]=_0x1bf925,this[_0x119619(0x2ba)]=_0x1021d9;const {..._0x1842ad}=o[_0x119619(0x29e)]({},w,this[_0x119619(0x26d)]);this[_0x119619(0x2ba)]['setConfig'](Q,_0x1842ad);}[_0x480436(0x1e9)](){const _0x26eebb=_0x480436;o[_0x26eebb(0x24b)](this[_0x26eebb(0x25c)],o['mergeOverrideWithDependencies']([[E],[exports[_0x26eebb(0x29a)]],[m],[exports[_0x26eebb(0x223)]]],this[_0x26eebb(0x26d)][_0x26eebb(0x2a2)])),o[_0x26eebb(0x241)](this[_0x26eebb(0x25c)],[[m]]);}[_0x480436(0x23b)](){const _0x9599c3=_0x480436;o[_0x9599c3(0x241)](this[_0x9599c3(0x25c)],[[exports[_0x9599c3(0x223)]]]);}},A(exports['UniverLiveSharePlugin'],_0x480436(0x279),o[_0x480436(0x208)][_0x480436(0x257)]),A(exports[_0x480436(0x218)],_0x480436(0x298),oe),exports[_0x480436(0x218)]=re([o[_0x480436(0x220)](b[_0x480436(0x1e8)]),N(0x1,o[_0x480436(0x215)](o[_0x480436(0x292)])),N(0x2,o['IConfigService'])],exports[_0x480436(0x218)]),exports[_0x480436(0x1f8)]=$,exports[_0x480436(0x26c)]=E,exports['LiveShareStatus']=u;
|
|
1
|
+
'use strict';const _0x353631=_0x17bb;(function(_0xcb1a05,_0x114571){const _0x11e12b=_0x17bb,_0x3e5b1d=_0xcb1a05();while(!![]){try{const _0x579904=-parseInt(_0x11e12b(0x1b3))/0x1+parseInt(_0x11e12b(0x19a))/0x2+parseInt(_0x11e12b(0x1a1))/0x3+parseInt(_0x11e12b(0x1bc))/0x4+parseInt(_0x11e12b(0x1d2))/0x5*(parseInt(_0x11e12b(0x20e))/0x6)+parseInt(_0x11e12b(0x1c3))/0x7*(parseInt(_0x11e12b(0x1d4))/0x8)+-parseInt(_0x11e12b(0x22c))/0x9;if(_0x579904===_0x114571)break;else _0x3e5b1d['push'](_0x3e5b1d['shift']());}catch(_0x41e0e5){_0x3e5b1d['push'](_0x3e5b1d['shift']());}}}(_0x4892,0x30433));var T=Object['defineProperty'],U=(_0x384721,_0x4668c5,_0x212c47)=>_0x4668c5 in _0x384721?T(_0x384721,_0x4668c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x212c47}):_0x384721[_0x4668c5]=_0x212c47,_=(_0x2d569c,_0x2fe151,_0x27c554)=>U(_0x2d569c,typeof _0x2fe151!=_0x353631(0x17d)?_0x2fe151+'':_0x2fe151,_0x27c554);Object[_0x353631(0x1e6)](exports,Symbol[_0x353631(0x1d1)],{'value':_0x353631(0x178)});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:_0x2385e4,..._0x5965d7}){const _0x3410ef=_0x353631,{icon:_0x4e793f,id:_0x5343ad,className:_0x16c03c,extend:_0x4a632b,..._0x577b38}=_0x5965d7,_0x16b9ef=(_0x3410ef(0x18d)+_0x5343ad+'\x20'+(_0x16c03c||''))['trim'](),_0x89108a=v[_0x3410ef(0x241)]('_'+H());return j(_0x4e793f,''+_0x5343ad,{'defIds':_0x4e793f[_0x3410ef(0x221)],'idSuffix':_0x89108a['current']},{'ref':_0x2385e4,'className':_0x16b9ef,..._0x577b38},_0x4a632b);}function j(_0x533325,_0x168c31,_0x12fcb3,_0x4fcb4e,_0x2f76f5){const _0x420bd1=_0x353631;return v['createElement'](_0x533325['tag'],{'key':_0x168c31,...y(_0x533325,_0x12fcb3,_0x2f76f5),..._0x4fcb4e},(F(_0x533325,_0x12fcb3)['children']||[])[_0x420bd1(0x19e)]((_0x1b4567,_0xc0dc65)=>j(_0x1b4567,_0x168c31+'-'+_0x533325[_0x420bd1(0x202)]+'-'+_0xc0dc65,_0x12fcb3,void 0x0,_0x2f76f5)));}function y(_0x1dff1a,_0x183bf7,_0x9b7636){const _0x3cd145=_0x353631,_0x5c723e={..._0x1dff1a[_0x3cd145(0x1fb)]};_0x9b7636!=null&&_0x9b7636[_0x3cd145(0x1a5)]&&_0x5c723e[_0x3cd145(0x18b)]==='colorChannel1'&&(_0x5c723e[_0x3cd145(0x18b)]=_0x9b7636[_0x3cd145(0x1a5)]),_0x1dff1a[_0x3cd145(0x202)]==='mask'&&_0x5c723e['id']&&(_0x5c723e['id']=_0x5c723e['id']+_0x183bf7['idSuffix']),Object['entries'](_0x5c723e)['forEach'](([_0x2bd675,_0x162042])=>{const _0x26a4c4=_0x3cd145;_0x2bd675===_0x26a4c4(0x229)&&typeof _0x162042==_0x26a4c4(0x1f8)&&(_0x5c723e[_0x2bd675]=_0x162042[_0x26a4c4(0x1a4)](/url\(#(.*)\)/,'url(#$1'+_0x183bf7[_0x26a4c4(0x222)]+')'));});const {defIds:_0x7dd6d9}=_0x183bf7;return!_0x7dd6d9||_0x7dd6d9[_0x3cd145(0x1b5)]===0x0||(_0x1dff1a['tag']===_0x3cd145(0x1ff)&&_0x5c723e['xlink:href']&&(_0x5c723e[_0x3cd145(0x183)]=_0x5c723e[_0x3cd145(0x183)]+_0x183bf7['idSuffix']),Object[_0x3cd145(0x188)](_0x5c723e)[_0x3cd145(0x1fa)](([_0x4770dd,_0x4a2958])=>{const _0x492f8c=_0x3cd145;typeof _0x4a2958=='string'&&(_0x5c723e[_0x4770dd]=_0x4a2958[_0x492f8c(0x1a4)](/url\(#(.*)\)/,_0x492f8c(0x189)+_0x183bf7[_0x492f8c(0x222)]+')'));})),_0x5c723e;}function F(_0x2f4ff3,_0x1cc2a8){const _0x582701=_0x353631;var _0x38f0e8;const {defIds:_0x58991a}=_0x1cc2a8;return!_0x58991a||_0x58991a[_0x582701(0x1b5)]===0x0?_0x2f4ff3:_0x2f4ff3['tag']===_0x582701(0x1e3)&&((_0x38f0e8=_0x2f4ff3[_0x582701(0x19f)])!=null&&_0x38f0e8[_0x582701(0x1b5)])?{..._0x2f4ff3,'children':_0x2f4ff3[_0x582701(0x19f)][_0x582701(0x19e)](_0x3eae6c=>typeof _0x3eae6c[_0x582701(0x1fb)]['id']==_0x582701(0x1f8)&&_0x58991a&&_0x58991a[_0x582701(0x203)](_0x3eae6c[_0x582701(0x1fb)]['id'])?{..._0x3eae6c,'attrs':{..._0x3eae6c[_0x582701(0x1fb)],'id':_0x3eae6c[_0x582701(0x1fb)]['id']+_0x1cc2a8[_0x582701(0x222)]}}:_0x3eae6c)}:_0x2f4ff3;}function H(){const _0x3787bf=_0x353631;return Math[_0x3787bf(0x1cc)]()[_0x3787bf(0x1ef)](0x24)['substring'](0x2,0x8);}x['displayName']=_0x353631(0x1dd);function _0x4892(){const _0x12fa0d=['univerjs-icon\x20univerjs-icon-','LIVESHARE_NEW_HOST','sheet','You\x27re\x20presenting\x20the\x20document','stringify','startFollowing','Dropdown','find','forwardRef','UniverCollaborationClientPlugin','pipe','_presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','615410AytvGN','BuiltInUIPart','OFFLINE','createInstance','map','children','useState','187932IMhvxe','throttleTime','NEW_CHANGESETS','replace','colorChannel1','_fetchOperations','You\x27re\x20not\x20following\x20the\x20presenter','Fragment','init','_startFollowing','UniverInstanceType','_handleNewHost','IUniverInstanceService','memberID','univer-size-4','SetScrollOperation','text','_handleOffline','85181mrRznH','complete','length','PRESENTING','Injector','get','_handleTerminate','path','values','1410608dsQiAO','HEADER_MENU','next','then','_status','setConfig','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','353087DpEQwc','event$','BehaviorSubject','div','Plugin','InsertSheetMutation','reverse','NOT_FOLLOWING','_handleNewChangeSets','random','jsxs','DesktopLiveShareController','_handleOperation','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','toStringTag','5YzoaGG','_commandService','8XzMxHU','_startLiveShareCoordinator','You\x27are\x20offline.','LIVESHARE_REQUEST_HOST','tryStartPresenting','_reporters','idle','has','svg','UniverIcon','SetWorksheetActiveOperation','Present\x20this\x20document','executeCommand','getOwnPropertyDescriptor','registerComponent','defs','SAME_OPERATION_SHARE_INTERVAL','stopFollowing','defineProperty','add','Stop\x20presenting','FOLLOWING','onStarting','0\x200\x2017\x2017','set','getCurrentTypeOfUnit$','_mountLiveShare','toString','UNIVER_UNKNOWN','IConfigService','LiveShare','IUIPartsService','getUnitId','unitId','LiveShareController','merge','string','assign','forEach','attrs','evenodd','asObservable','_startPresenting','use','operations','1em','tag','includes','disposeWithMe','getInitialStates','LIVESHARE_FETCH_OPERATIONS','registerSharedOperation','offline','getTypeOfUnitAdded$','Inject','Start\x20following','IDLE','clear','385578wduQli','_config','univer-mb-3\x20univer-w-full\x20univer-text-sm','takeUntil','getTypeOfUnitDisposed$','LIVESHARE_TERMINATE','presenter','_configService','_univerInstanceService','ICommandService','LIVESHARE_OPERATION','_commandDisposable','mutations','_stopFollowing','_handleOnline','LiveShareCoordinator','Button','presenting','DisposableCollection','defIds','idSuffix','toDisposable','http://www.w3.org/2000/svg','override','jsx','params','send','mask','_collabSession','shouldShareOperation','4993569vTKSBi','button','following','_liveShareService','_entities','CollaborationEvent','getConfig','Disposable','createElement','clsx','data','getMemberID','pluginName','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','subscribe','_sharedOperations','delete','status$','not-following','_unitID','_uiPartsService','useRef','LiveShareService','current','getValue','live-share-icon','getLiveShareCoordinatorSync','stopPresenting','_status$','connectInjector','_init','CollaborationSessionService','end','useEffect','onCommandExecuted','You\x27re\x20following\x20the\x20presenter','_injector','Module','type','_beIdle','unsubscribe','dispose','symbol','default','parse','UniverLiveSharePlugin','OPERATION','SessionStatus','xlink:href','getStatus','dispose$','touchDependencies','UNIVER_SHEET','entries','url(#$1','_stopPresenting','fill','SetZoomRatioOperation'];_0x4892=function(){return _0x12fa0d;};return _0x4892();}const V={'tag':_0x353631(0x1dc),'attrs':{'xmlns':_0x353631(0x224),'fill':'none','viewBox':_0x353631(0x1eb),'width':'1em','height':_0x353631(0x201)},'children':[{'tag':_0x353631(0x1ba),'attrs':{'fill':'currentColor','d':_0x353631(0x239)}},{'tag':_0x353631(0x1ba),'attrs':{'fill':'currentColor','d':_0x353631(0x1c2),'fillRule':_0x353631(0x1fc),'clipRule':_0x353631(0x1fc)}}]},R=v[_0x353631(0x195)](function(_0x1370cb,_0x5ec8c6){const _0x3543e8=_0x353631;return v[_0x3543e8(0x234)](x,Object[_0x3543e8(0x1f9)]({},_0x1370cb,{'id':_0x3543e8(0x245),'ref':_0x5ec8c6,'icon':V}));});R['displayName']='LiveShareIcon';class E extends o[_0x353631(0x233)]{constructor(){const _0x282ff6=_0x353631;super(...arguments),_(this,_0x282ff6(0x23b),new Set()),_(this,_0x282ff6(0x1d9),new Set());}[_0x353631(0x207)](_0x46df0e){const _0x5884f3=_0x353631;return this[_0x5884f3(0x23b)][_0x5884f3(0x1e7)](_0x46df0e),o[_0x5884f3(0x223)](()=>this[_0x5884f3(0x23b)]['delete'](_0x46df0e));}['registerInitialStateReporter'](_0x28b4d2){const _0x1d740a=_0x353631;return this[_0x1d740a(0x1d9)]['add'](_0x28b4d2),o['toDisposable'](()=>this[_0x1d740a(0x1d9)][_0x1d740a(0x23c)](_0x28b4d2));}[_0x353631(0x22b)](_0x4f1fdc){const _0x487d80=_0x353631;return this[_0x487d80(0x23b)][_0x487d80(0x1db)](_0x4f1fdc);}[_0x353631(0x205)](_0x202e8a){const _0x294c94=_0x353631;return Array['from'](this['_reporters'])[_0x294c94(0x19e)](_0x170f0f=>_0x170f0f(_0x202e8a));}}var M=Object[_0x353631(0x1e1)],P=(_0x324d16,_0x30c119,_0x1ca045,_0x317aa9)=>{const _0x4ca2fc=_0x353631;for(var _0x2df5d7=_0x317aa9>0x1?void 0x0:_0x317aa9?M(_0x30c119,_0x1ca045):_0x30c119,_0x5138ef=_0x324d16[_0x4ca2fc(0x1b5)]-0x1,_0x44991e;_0x5138ef>=0x0;_0x5138ef--)(_0x44991e=_0x324d16[_0x5138ef])&&(_0x2df5d7=_0x44991e(_0x2df5d7)||_0x2df5d7);return _0x2df5d7;},S=(_0x50d5d8,_0x1ac20f)=>(_0x126373,_0x5db17b)=>_0x1ac20f(_0x126373,_0x5db17b,_0x50d5d8);exports[_0x353631(0x1f6)]=class extends o['RxDisposable']{constructor(_0x2212db,_0x346914,_0x476e0e){const _0x2a1d16=_0x353631;super(),_(this,_0x2a1d16(0x230),new Map()),(this[_0x2a1d16(0x216)]=_0x2212db,this[_0x2a1d16(0x177)]=_0x346914,this['_collabSessionService']=_0x476e0e,this[_0x2a1d16(0x171)]());}async['getLiveShareCoordinator'](_0x3c9668){const _0x2cacb4=_0x353631;return this[_0x2cacb4(0x230)][_0x2cacb4(0x1db)](_0x3c9668)||await this[_0x2cacb4(0x1d5)](_0x3c9668),this[_0x2cacb4(0x230)][_0x2cacb4(0x1b8)](_0x3c9668);}[_0x353631(0x246)](_0x264510){const _0x5c99a2=_0x353631;var _0x53aad9;return(_0x53aad9=this[_0x5c99a2(0x230)]['get'](_0x264510))!=null?_0x53aad9:null;}[_0x353631(0x171)](){const _0x86ca67=_0x353631;this[_0x86ca67(0x216)][_0x86ca67(0x209)](o['UniverInstanceType'][_0x86ca67(0x187)])[_0x86ca67(0x197)](I[_0x86ca67(0x211)](this[_0x86ca67(0x185)]))[_0x86ca67(0x23a)](async _0x2822a0=>{const _0x44d260=_0x86ca67,_0x1207b6=_0x2822a0['getUnitId']();this['_entities'][_0x44d260(0x1db)](_0x1207b6)||this['_startLiveShareCoordinator'](_0x1207b6);}),this['_univerInstanceService'][_0x86ca67(0x212)](o['UniverInstanceType'][_0x86ca67(0x187)])['pipe'](I[_0x86ca67(0x211)](this[_0x86ca67(0x185)]))[_0x86ca67(0x23a)](_0x53252e=>{const _0x58ba47=_0x86ca67,_0x1f442b=_0x53252e[_0x58ba47(0x1f4)](),_0x370fee=this[_0x58ba47(0x230)]['get'](_0x1f442b);_0x370fee==null||_0x370fee[_0x58ba47(0x17c)]();});}async[_0x353631(0x1d5)](_0x523ff5){const _0x211280=_0x353631,_0x48e0fc=await this['_collabSessionService']['requireSession'](_0x523ff5),_0x3f9234=this['_injector'][_0x211280(0x19d)](exports[_0x211280(0x21d)],_0x523ff5,_0x48e0fc);return _0x3f9234[_0x211280(0x1a9)](),this[_0x211280(0x230)][_0x211280(0x1ec)](_0x523ff5,_0x3f9234),_0x3f9234;}},exports[_0x353631(0x1f6)]=P([S(0x0,o[_0x353631(0x1ad)]),S(0x1,o[_0x353631(0x20a)](o[_0x353631(0x1b7)])),S(0x2,o[_0x353631(0x20a)](b[_0x353631(0x172)]))],exports[_0x353631(0x1f6)]);var u=(_0x17bacc=>(_0x17bacc[_0x353631(0x19c)]=_0x353631(0x208),_0x17bacc[_0x353631(0x20c)]=_0x353631(0x1da),_0x17bacc[_0x353631(0x1e9)]=_0x353631(0x22e),_0x17bacc['NOT_FOLLOWING']=_0x353631(0x23e),_0x17bacc[_0x353631(0x1b6)]=_0x353631(0x21f),_0x17bacc))(u||{});const k=_0x353631(0x1e4),q=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x18d269,_0x28499a,_0xac5d69,_0x2ce6c3,_0x41623b){const _0x20d039=_0x353631;super(),_(this,'_status$',new O[(_0x20d039(0x1c5))](_0x20d039(0x1da))),_(this,_0x20d039(0x23d),this['_status$'][_0x20d039(0x1fd)]()),_(this,_0x20d039(0x171),!0x1),_(this,_0x20d039(0x219),null),_(this,_0x20d039(0x198),null),(this[_0x20d039(0x23f)]=_0x18d269,this[_0x20d039(0x22a)]=_0x28499a,this[_0x20d039(0x215)]=_0xac5d69,this[_0x20d039(0x22f)]=_0x2ce6c3,this[_0x20d039(0x1d3)]=_0x41623b);}get['_status'](){const _0x5552f2=_0x353631;return this[_0x5552f2(0x16f)][_0x5552f2(0x244)]();}['dispose'](){const _0x4ad963=_0x353631;var _0x4134ad;(_0x4134ad=this[_0x4ad963(0x219)])==null||_0x4134ad[_0x4ad963(0x17c)](),this[_0x4ad963(0x16f)][_0x4ad963(0x1be)](_0x4ad963(0x1da)),this[_0x4ad963(0x16f)]['complete']();}[_0x353631(0x184)](){const _0x54c769=_0x353631;return this[_0x54c769(0x1c0)];}['init'](){const _0x3f37a1=_0x353631;this[_0x3f37a1(0x171)]||(this['_init']=!0x0,this[_0x3f37a1(0x22a)]['sessionStatus$']['pipe'](I[_0x3f37a1(0x211)](this[_0x3f37a1(0x185)]))[_0x3f37a1(0x23a)](_0x2defb5=>{const _0x1b62e9=_0x3f37a1;switch(_0x2defb5){case b[_0x1b62e9(0x182)][_0x1b62e9(0x19c)]:this[_0x1b62e9(0x1b2)]();break;case b[_0x1b62e9(0x182)]['ONLINE']:this[_0x1b62e9(0x21c)]();break;}}),this[_0x3f37a1(0x22a)][_0x3f37a1(0x1c4)][_0x3f37a1(0x197)](I['takeUntil'](this[_0x3f37a1(0x185)]))['subscribe'](_0x1b131d=>{const _0xb288c8=_0x3f37a1,{eventID:_0x2331c0}=_0x1b131d;switch(_0x2331c0){case d[_0xb288c8(0x231)][_0xb288c8(0x18e)]:this[_0xb288c8(0x1ac)](_0x1b131d);break;case d[_0xb288c8(0x231)][_0xb288c8(0x218)]:this[_0xb288c8(0x1cf)](_0x1b131d);break;case d[_0xb288c8(0x231)][_0xb288c8(0x213)]:this['_handleTerminate']();break;case d[_0xb288c8(0x231)][_0xb288c8(0x1a3)]:this[_0xb288c8(0x1cb)](_0x1b131d);break;}}));}[_0x353631(0x1d8)](){const _0x202691=_0x353631;this['_collabSession'][_0x202691(0x228)]({'eventID':d[_0x202691(0x231)][_0x202691(0x1d7)],'data':{'unitID':this[_0x202691(0x23f)],'userID':this[_0x202691(0x22a)][_0x202691(0x237)]()}},this['_unitID']);}['stopPresenting'](){const _0x4feaf2=_0x353631;this['_status']===_0x4feaf2(0x21f)&&(this[_0x4feaf2(0x16f)][_0x4feaf2(0x1be)](_0x4feaf2(0x1da)),this[_0x4feaf2(0x22a)]['send']({'eventID':d[_0x4feaf2(0x231)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4feaf2(0x23f)]}},this[_0x4feaf2(0x23f)]));}['startFollowing'](){const _0x5b9014=_0x353631;this[_0x5b9014(0x1c0)]===_0x5b9014(0x23e)&&(this[_0x5b9014(0x16f)][_0x5b9014(0x1be)](_0x5b9014(0x22e)),this['_startFollowing']());}['stopFollowing'](){const _0x43e242=_0x353631;this['_status']===_0x43e242(0x22e)&&this[_0x43e242(0x21b)]();}[_0x353631(0x1ac)](_0x390393){const _0x5f7da1=_0x353631,{presenter:_0x57447c}=_0x390393[_0x5f7da1(0x236)],_0x3e973e=this[_0x5f7da1(0x22a)][_0x5f7da1(0x237)]();this[_0x5f7da1(0x198)]=_0x57447c,_0x57447c===_0x3e973e?(this[_0x5f7da1(0x21b)](),this[_0x5f7da1(0x1fe)]()):this[_0x5f7da1(0x1c0)]!==_0x5f7da1(0x23e)&&(this[_0x5f7da1(0x18a)](),this[_0x5f7da1(0x1aa)]());}['_fetchOperations'](){const _0x5a2a45=_0x353631,_0x4aaee8={'eventID':d[_0x5a2a45(0x231)][_0x5a2a45(0x206)]};this[_0x5a2a45(0x22a)][_0x5a2a45(0x228)](_0x4aaee8,this[_0x5a2a45(0x23f)]);}[_0x353631(0x1b9)](){const _0x31dccc=_0x353631;this[_0x31dccc(0x198)]=null,this[_0x31dccc(0x1c0)]!=='presenting'&&this[_0x31dccc(0x17a)]();}[_0x353631(0x1cb)](_0x10d7ca){const _0x3b5271=_0x353631;if(this[_0x3b5271(0x1c0)]===_0x3b5271(0x22e)&&this[_0x3b5271(0x198)]===_0x10d7ca[_0x3b5271(0x236)][_0x3b5271(0x1ae)]){const _0xc2a321=d['parseProtocolChangeset'](_0x10d7ca[_0x3b5271(0x236)])[_0x3b5271(0x21a)][_0x3b5271(0x1c9)]()[_0x3b5271(0x194)](_0x11e052=>_0x11e052['id']===C[_0x3b5271(0x1c8)]['id']);if(_0xc2a321){const _0x21e0b0=_0xc2a321[_0x3b5271(0x227)][_0x3b5271(0x1f5)],_0x34fc74=_0xc2a321[_0x3b5271(0x227)][_0x3b5271(0x18f)]['id'];setTimeout(()=>{const _0x551dbe=_0x3b5271;this[_0x551dbe(0x1d3)][_0x551dbe(0x1e0)](C[_0x551dbe(0x1de)]['id'],{'unitId':_0x21e0b0,'subUnitId':_0x34fc74},{'fromCollab':!0x0});});}}}[_0x353631(0x1fe)](){const _0x321099=_0x353631;this[_0x321099(0x16f)][_0x321099(0x1be)]('presenting');const _0x419927=new Map(),_0x6a1b92=this[_0x321099(0x219)]=new o[(_0x321099(0x220))]();_0x6a1b92['add'](o[_0x321099(0x223)](()=>{const _0x333816=_0x321099;_0x419927[_0x333816(0x1fa)](_0x2e4fee=>_0x2e4fee[_0x333816(0x1b4)]()),_0x419927[_0x333816(0x20d)]();})),_0x6a1b92[_0x321099(0x1e7)](this['_commandService'][_0x321099(0x175)](_0x18e5bc=>{const _0x2f5355=_0x321099;var _0x42d3e1;if(_0x18e5bc[_0x2f5355(0x179)]!==o['CommandType'][_0x2f5355(0x181)]||!this[_0x2f5355(0x22f)][_0x2f5355(0x22b)](_0x18e5bc['id']))return;const {id:_0x28004d}=_0x18e5bc;let _0x41a943;_0x419927[_0x2f5355(0x1db)](_0x28004d)?_0x41a943=_0x419927[_0x2f5355(0x1b8)](_0x28004d):(_0x41a943=new O['Subject'](),_0x419927[_0x2f5355(0x1ec)](_0x28004d,_0x41a943),_0x41a943['pipe'](I[_0x2f5355(0x1a2)]((_0x42d3e1=this[_0x2f5355(0x215)][_0x2f5355(0x232)](k))!=null?_0x42d3e1:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2f5355(0x23a)](_0x38854d=>{const _0x1ef010=_0x2f5355;this[_0x1ef010(0x22a)][_0x1ef010(0x228)]({'eventID':d[_0x1ef010(0x231)][_0x1ef010(0x218)],'data':{'unitID':this[_0x1ef010(0x23f)],'operations':{[_0x38854d['id']]:{'id':_0x38854d['id'],'params':JSON[_0x1ef010(0x191)](_0x38854d[_0x1ef010(0x227)])}}}},this[_0x1ef010(0x23f)]);})),_0x41a943[_0x2f5355(0x1be)](_0x18e5bc);})),this[_0x321099(0x22f)][_0x321099(0x205)](this[_0x321099(0x23f)])['forEach'](_0x32c76f=>this[_0x321099(0x22a)][_0x321099(0x228)]({'eventID':d[_0x321099(0x231)][_0x321099(0x218)],'data':{'unitID':this[_0x321099(0x23f)],'operations':{[_0x32c76f['id']]:{'id':_0x32c76f['id'],'params':JSON[_0x321099(0x191)](_0x32c76f['params'])}}}},this['_unitID']));}[_0x353631(0x18a)](){const _0xd9efa6=_0x353631;var _0x3a8fce;this[_0xd9efa6(0x16f)][_0xd9efa6(0x1be)](_0xd9efa6(0x1da)),(_0x3a8fce=this['_commandDisposable'])==null||_0x3a8fce[_0xd9efa6(0x17c)](),this[_0xd9efa6(0x219)]=null;}['_startFollowing'](){const _0x3399c4=_0x353631;var _0x4e032f;(_0x4e032f=this['_commandDisposable'])==null||_0x4e032f[_0x3399c4(0x17c)](),this['_status$']['next'](_0x3399c4(0x22e));}[_0x353631(0x17a)](){const _0x30e810=_0x353631;var _0x4f2a73;this['_status$']['next'](_0x30e810(0x1da)),(_0x4f2a73=this[_0x30e810(0x219)])==null||_0x4f2a73['dispose'](),this[_0x30e810(0x219)]=null;}[_0x353631(0x21b)](){const _0x39f518=_0x353631;var _0x13b7e7;this[_0x39f518(0x16f)]['next'](_0x39f518(0x23e)),(_0x13b7e7=this[_0x39f518(0x219)])==null||_0x13b7e7[_0x39f518(0x17c)]();}[_0x353631(0x1cf)](_0x4b7494){const _0x17b1f3=_0x353631;if([_0x17b1f3(0x21f),'not-following',_0x17b1f3(0x208)][_0x17b1f3(0x203)](this[_0x17b1f3(0x1c0)])||!_0x4b7494['data'][_0x17b1f3(0x214)]||_0x4b7494[_0x17b1f3(0x236)][_0x17b1f3(0x214)]===this[_0x17b1f3(0x22a)][_0x17b1f3(0x237)]())return;this[_0x17b1f3(0x1c0)]==='idle'&&this[_0x17b1f3(0x1aa)]();const _0x4cce5f=_0x4b7494[_0x17b1f3(0x236)][_0x17b1f3(0x200)];Object[_0x17b1f3(0x1bb)](_0x4cce5f)[_0x17b1f3(0x1fa)](_0x34f331=>{const _0x373e81=_0x17b1f3;this['_commandService'][_0x373e81(0x1e0)](_0x34f331['id'],_0x34f331['params']?JSON[_0x373e81(0x17f)](_0x34f331['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x390117=_0x353631;var _0x4b48dd;this['_status$'][_0x390117(0x1be)]('offline'),(_0x4b48dd=this[_0x390117(0x219)])==null||_0x4b48dd[_0x390117(0x17c)]();}[_0x353631(0x21c)](){const _0x142d04=_0x353631;this[_0x142d04(0x16f)][_0x142d04(0x1be)]('idle'),this[_0x142d04(0x1a6)]();}},exports['LiveShareCoordinator']=P([S(0x2,o['IConfigService']),S(0x3,o[_0x353631(0x20a)](E)),S(0x4,o[_0x353631(0x217)])],exports[_0x353631(0x21d)]);function $(){const _0x496441=_0x353631,_0x13250f=p['useDependency'](exports['LiveShareController']),_0x338a94=p['useDependency'](o[_0x496441(0x1ad)]),_0x1a6f47=p['useObservable'](()=>_0x338a94[_0x496441(0x1ed)](o[_0x496441(0x1ab)][_0x496441(0x187)]),void 0x0,!0x1,[]),[_0x43cc3a,_0x244744]=v[_0x496441(0x1a0)](null),[_0x555eba,_0x412172]=v[_0x496441(0x1a0)](u['IDLE']),_0x26172e=v[_0x496441(0x241)](null);return v[_0x496441(0x174)](()=>(_0x1a6f47&&_0x13250f['getLiveShareCoordinator'](_0x1a6f47[_0x496441(0x1f4)]())[_0x496441(0x1bf)](_0x201fef=>{const _0x78747d=_0x496441;_0x244744(_0x201fef),_0x26172e[_0x78747d(0x243)]=_0x201fef[_0x78747d(0x23d)][_0x78747d(0x23a)](_0x54563f=>{_0x412172(_0x54563f);});}),()=>{const _0x41258a=_0x496441;var _0x4c44b4;(_0x4c44b4=_0x26172e[_0x41258a(0x243)])==null||_0x4c44b4[_0x41258a(0x17b)](),_0x26172e['current']=null;}),[_0x1a6f47,_0x13250f]),_0x43cc3a?l[_0x496441(0x226)](f[_0x496441(0x193)],{'align':_0x496441(0x173),'disabled':_0x555eba===u[_0x496441(0x19c)],'className':_0x496441(0x1d0),'overlay':l[_0x496441(0x226)](W,{'status':_0x555eba,'coordinator':_0x43cc3a}),'children':l[_0x496441(0x226)](_0x496441(0x22d),{'className':f[_0x496441(0x235)](_0x496441(0x199),{'univer-cursor-not-allowed':_0x555eba===u[_0x496441(0x19c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x555eba!==u[_0x496441(0x19c)]}),'type':'button','children':l['jsx'](R,{'className':_0x496441(0x1af)})})}):null;}function _0x17bb(_0x257712,_0x3e5de8){_0x257712=_0x257712-0x16f;const _0x489237=_0x4892();let _0x17bb0c=_0x489237[_0x257712];return _0x17bb0c;}function W(_0x447ccc){const _0x146874=_0x353631,{status:_0x416224,coordinator:_0x47fedc}=_0x447ccc;switch(_0x416224){case u[_0x146874(0x20c)]:return l[_0x146874(0x226)](G,{'coordinator':_0x47fedc});case u[_0x146874(0x1e9)]:return l[_0x146874(0x226)](B,{'coordinator':_0x47fedc});case u[_0x146874(0x1ca)]:return l[_0x146874(0x226)](Y,{'coordinator':_0x47fedc});case u[_0x146874(0x19c)]:return l[_0x146874(0x226)](J,{});case u[_0x146874(0x1b6)]:return l[_0x146874(0x226)](Z,{'coordinator':_0x47fedc});default:return null;}}function G(_0x391792){const _0x1faff6=_0x353631,{coordinator:_0x1e3e3a}=_0x391792;return l[_0x1faff6(0x1cd)](l[_0x1faff6(0x1a8)],{'children':[l[_0x1faff6(0x226)]('div',{'className':_0x1faff6(0x210),'children':_0x1faff6(0x1df)}),l[_0x1faff6(0x226)](f[_0x1faff6(0x21e)],{'onClick':()=>_0x1e3e3a[_0x1faff6(0x1d8)](),'children':'Start'})]});}function B(_0x24d494){const _0x911dec=_0x353631,{coordinator:_0x30daaa}=_0x24d494;return l[_0x911dec(0x1cd)](l[_0x911dec(0x1a8)],{'children':[l[_0x911dec(0x226)](_0x911dec(0x1c6),{'className':_0x911dec(0x210),'children':_0x911dec(0x176)}),l[_0x911dec(0x226)](f[_0x911dec(0x21e)],{'onClick':()=>_0x30daaa[_0x911dec(0x1e5)](),'children':'Stop\x20following'})]});}function Y(_0x4f6e95){const _0x14c01e=_0x353631,{coordinator:_0x12b3b5}=_0x4f6e95;return l[_0x14c01e(0x1cd)](l[_0x14c01e(0x1a8)],{'children':[l[_0x14c01e(0x226)](_0x14c01e(0x1c6),{'className':_0x14c01e(0x210),'children':_0x14c01e(0x1a7)}),l[_0x14c01e(0x226)](f[_0x14c01e(0x21e)],{'variant':_0x14c01e(0x1b1),'onClick':()=>_0x12b3b5[_0x14c01e(0x192)](),'children':_0x14c01e(0x20b)})]});}function Z(_0x34db22){const _0x42d6e9=_0x353631,{coordinator:_0x2d2473}=_0x34db22;return l[_0x42d6e9(0x1cd)](l['Fragment'],{'children':[l[_0x42d6e9(0x226)](_0x42d6e9(0x1c6),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x42d6e9(0x190)}),l[_0x42d6e9(0x226)](f[_0x42d6e9(0x21e)],{'variant':_0x42d6e9(0x17e),'onClick':()=>_0x2d2473[_0x42d6e9(0x247)](),'children':_0x42d6e9(0x1e8)})]});}function J(){const _0x3e2b80=_0x353631;return l['jsx'](l[_0x3e2b80(0x1a8)],{'children':_0x3e2b80(0x1d6)});}var K=Object[_0x353631(0x1e1)],z=(_0x480631,_0x159c47,_0x137477,_0x4d1cb0)=>{const _0x2b2bcb=_0x353631;for(var _0x3f922e=_0x4d1cb0>0x1?void 0x0:_0x4d1cb0?K(_0x159c47,_0x137477):_0x159c47,_0x2c1ac9=_0x480631[_0x2b2bcb(0x1b5)]-0x1,_0x206aa7;_0x2c1ac9>=0x0;_0x2c1ac9--)(_0x206aa7=_0x480631[_0x2c1ac9])&&(_0x3f922e=_0x206aa7(_0x3f922e)||_0x3f922e);return _0x3f922e;},L=(_0x54daaf,_0x307c81)=>(_0x550381,_0x29f486)=>_0x307c81(_0x550381,_0x29f486,_0x54daaf);exports['DesktopLiveShareController']=class extends o[_0x353631(0x233)]{constructor(_0x21ea14,_0x3c551a){const _0x26c5d0=_0x353631;super(),this[_0x26c5d0(0x177)]=_0x21ea14,this[_0x26c5d0(0x240)]=_0x3c551a,this[_0x26c5d0(0x1ee)]();}[_0x353631(0x1ee)](){const _0x5018af=_0x353631;this[_0x5018af(0x204)](this[_0x5018af(0x240)][_0x5018af(0x1e2)](p[_0x5018af(0x19b)][_0x5018af(0x1bd)],()=>p[_0x5018af(0x170)]($,this['_injector'])));}},exports['DesktopLiveShareController']=z([L(0x0,o['Inject'](o[_0x353631(0x1b7)])),L(0x1,p[_0x353631(0x1f3)])],exports[_0x353631(0x1ce)]);const Q='live-share.config',w={};var X=Object[_0x353631(0x1e1)],ee=(_0x1e8347,_0x19bb0b,_0x54866e,_0x45db90)=>{const _0x3bad49=_0x353631;for(var _0xaf65a7=_0x45db90>0x1?void 0x0:_0x45db90?X(_0x19bb0b,_0x54866e):_0x19bb0b,_0x4985c8=_0x1e8347[_0x3bad49(0x1b5)]-0x1,_0x205db4;_0x4985c8>=0x0;_0x4985c8--)(_0x205db4=_0x1e8347[_0x4985c8])&&(_0xaf65a7=_0x205db4(_0xaf65a7)||_0xaf65a7);return _0xaf65a7;},te=(_0x2f636a,_0x539b5f)=>(_0x5eeba2,_0x2c16ca)=>_0x539b5f(_0x5eeba2,_0x2c16ca,_0x2f636a);let m=class extends o[_0x353631(0x233)]{constructor(_0x23c959){const _0x24d45d=_0x353631;super(),this[_0x24d45d(0x22f)]=_0x23c959,this[_0x24d45d(0x171)]();}['_init'](){const _0x1a21d0=_0x353631;[D[_0x1a21d0(0x18c)]['id'],D[_0x1a21d0(0x1b0)]['id'],C['SetWorksheetActiveOperation']['id']][_0x1a21d0(0x1fa)](_0x43e0e4=>{const _0x45887d=_0x1a21d0;this['disposeWithMe'](this[_0x45887d(0x22f)][_0x45887d(0x207)](_0x43e0e4));});}};m=ee([te(0x0,o[_0x353631(0x20a)](E))],m);var ie=Object[_0x353631(0x1e6)],se=Object[_0x353631(0x1e1)],ne=(_0x3f9c10,_0x1028e4,_0x555328)=>_0x1028e4 in _0x3f9c10?ie(_0x3f9c10,_0x1028e4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x555328}):_0x3f9c10[_0x1028e4]=_0x555328,re=(_0x1c7e95,_0x4843bd,_0x3f545a,_0x55d08e)=>{const _0x4dd4e9=_0x353631;for(var _0x28081c=_0x55d08e>0x1?void 0x0:_0x55d08e?se(_0x4843bd,_0x3f545a):_0x4843bd,_0x190671=_0x1c7e95[_0x4dd4e9(0x1b5)]-0x1,_0x3ef495;_0x190671>=0x0;_0x190671--)(_0x3ef495=_0x1c7e95[_0x190671])&&(_0x28081c=_0x3ef495(_0x28081c)||_0x28081c);return _0x28081c;},N=(_0x4b9ba7,_0x3b0df6)=>(_0x2719ae,_0x166b48)=>_0x3b0df6(_0x2719ae,_0x166b48,_0x4b9ba7),A=(_0x4bae38,_0x437002,_0x17b580)=>ne(_0x4bae38,typeof _0x437002!=_0x353631(0x17d)?_0x437002+'':_0x437002,_0x17b580);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x353631(0x180)]=class extends o[_0x353631(0x1c7)]{constructor(_0x54fb27=w,_0x3ab541,_0xd30164){const _0x414852=_0x353631;super(),this[_0x414852(0x20f)]=_0x54fb27,this[_0x414852(0x177)]=_0x3ab541,this[_0x414852(0x215)]=_0xd30164;const {..._0x41982e}=o[_0x414852(0x1f7)]({},w,this[_0x414852(0x20f)]);this[_0x414852(0x215)][_0x414852(0x1c1)](Q,_0x41982e);}[_0x353631(0x1ea)](){const _0x87bf0b=_0x353631;o['registerDependencies'](this[_0x87bf0b(0x177)],o['mergeOverrideWithDependencies']([[E],[exports[_0x87bf0b(0x1f6)]],[m],[exports[_0x87bf0b(0x1ce)]]],this[_0x87bf0b(0x20f)][_0x87bf0b(0x225)])),o[_0x87bf0b(0x186)](this[_0x87bf0b(0x177)],[[m]]);}['onRendered'](){const _0x237d8e=_0x353631;o[_0x237d8e(0x186)](this[_0x237d8e(0x177)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x353631(0x180)],'type',o[_0x353631(0x1ab)][_0x353631(0x1f0)]),A(exports['UniverLiveSharePlugin'],_0x353631(0x238),oe),exports[_0x353631(0x180)]=re([o['DependentOn'](b[_0x353631(0x196)]),N(0x1,o[_0x353631(0x20a)](o[_0x353631(0x1b7)])),N(0x2,o[_0x353631(0x1f1)])],exports[_0x353631(0x180)]),exports[_0x353631(0x1f2)]=$,exports[_0x353631(0x242)]=E,exports['LiveShareStatus']=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4ada31=_0x1219;function _0x3afc(){const _0x483592=['getStatus','get','startPresenting','1145000FdJQlw','LiveShareStatusEnum','stopFollowing','getLiveShareStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_initialize','getSheetId','No\x20active\x20workbook\x20found.','4576275ABURbr','19410GxqhJh','14JzoeHx','_commandService','syncExecuteCommand','stopPresenting','2279872vveFER','671821lmxWsk','getUnitId','1002395CZlJVt','startFollowing','PRESENTING','getLiveShareCoordinatorSync','_injector','getActiveWorkbook','98VqQqLm','extend','tryStartPresenting','startColumn','706542IGKvsz','executeCommand','getId','startRow'];_0x3afc=function(){return _0x483592;};return _0x3afc();}(function(_0x6c95ab,_0x4f4094){const _0x1194df=_0x1219,_0x1bc25e=_0x6c95ab();while(!![]){try{const _0x3b47e2=parseInt(_0x1194df(0xc2))/0x1+parseInt(_0x1194df(0xca))/0x2*(-parseInt(_0x1194df(0xbc))/0x3)+-parseInt(_0x1194df(0xc1))/0x4+-parseInt(_0x1194df(0xc4))/0x5+parseInt(_0x1194df(0xce))/0x6*(parseInt(_0x1194df(0xbd))/0x7)+parseInt(_0x1194df(0xb3))/0x8+parseInt(_0x1194df(0xbb))/0x9;if(_0x3b47e2===_0x4f4094)break;else _0x1bc25e['push'](_0x1bc25e['shift']());}catch(_0x215e84){_0x1bc25e['push'](_0x1bc25e['shift']());}}}(_0x3afc,0x731a2));import{LiveShareController as _0x28eab8,LiveShareStatus as _0x5d26a9}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xfa36a4}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x1a6f79}from'@univerjs/sheets';import{SetScrollOperation as _0x4139fc}from'@univerjs/sheets-ui';import{FRange as _0xb85eba}from'@univerjs/sheets/facade';import{FUniver as _0x43c273,FEnum as _0x56543f}from'@univerjs/core/facade';class I extends _0xb85eba{[_0x4ada31(0xb8)](_0x344dde,_0x4ba0f0,_0x4624d4,_0x42401f,_0x58ffd6){const _0x189953=_0x4ada31,_0x289030=_0x344dde['get'](_0x28eab8),_0x1c5c58=_0x344dde[_0x189953(0xd3)](_0xfa36a4),_0x55d793=_0x4ba0f0[_0x189953(0xc3)](),_0x26f3b8=_0x4ba0f0['getActiveSheet'](),_0x229e7c=_0x289030['getLiveShareCoordinatorSync'](_0x55d793);(_0x229e7c==null?void 0x0:_0x229e7c[_0x189953(0xd2)]())!==_0x5d26a9[_0x189953(0xc6)]||(_0x4624d4[_0x189953(0xb9)]()!==_0x26f3b8['getSheetId']()&&this[_0x189953(0xbe)][_0x189953(0xcf)](_0x1a6f79['id'],{'unitId':_0x55d793,'subUnitId':_0x4624d4['getSheetId']()}),!_0x1c5c58['getRenderById'](_0x55d793))||_0x58ffd6[_0x189953(0xbf)](_0x4139fc['id'],{'unitId':_0x4ba0f0[_0x189953(0xc3)](),'sheetId':_0x4624d4[_0x189953(0xb9)](),'sheetViewStartRow':_0x42401f[_0x189953(0xd1)],'sheetViewStartColumn':_0x42401f[_0x189953(0xcd)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xb85eba[_0x4ada31(0xcb)](I);class m extends _0x43c273{[_0x4ada31(0xb6)](){const _0x5227b9=_0x4ada31;var _0x2627be,_0x4771f7;const _0x40e0df=this[_0x5227b9(0xc8)][_0x5227b9(0xd3)](_0x28eab8),_0xe3d4b2=(_0x2627be=this[_0x5227b9(0xc9)]())==null?void 0x0:_0x2627be[_0x5227b9(0xd0)]();if(!_0xe3d4b2)throw new Error(_0x5227b9(0xba));const _0x3cd012=_0x40e0df[_0x5227b9(0xc7)](_0xe3d4b2);return(_0x4771f7=_0x3cd012==null?void 0x0:_0x3cd012['getStatus']())!=null?_0x4771f7:_0x5d26a9['IDLE'];}[_0x4ada31(0xc5)](){const _0x4d7b5d=_0x4ada31;var _0x24a30d;const _0xc5c761=this[_0x4d7b5d(0xc8)][_0x4d7b5d(0xd3)](_0x28eab8),_0xb64ee3=(_0x24a30d=this['getActiveWorkbook']())==null?void 0x0:_0x24a30d[_0x4d7b5d(0xd0)]();if(!_0xb64ee3)throw new Error(_0x4d7b5d(0xba));const _0x315ef5=_0xc5c761[_0x4d7b5d(0xc7)](_0xb64ee3);if(!_0x315ef5)throw new Error(_0x4d7b5d(0xb7));_0x315ef5[_0x4d7b5d(0xc5)]();}[_0x4ada31(0xb5)](){const _0x4142c5=_0x4ada31;var _0x22f89e;const _0x3a3b54=this[_0x4142c5(0xc8)][_0x4142c5(0xd3)](_0x28eab8),_0x127155=(_0x22f89e=this[_0x4142c5(0xc9)]())==null?void 0x0:_0x22f89e[_0x4142c5(0xd0)]();if(!_0x127155)throw new Error(_0x4142c5(0xba));const _0x13216e=_0x3a3b54[_0x4142c5(0xc7)](_0x127155);if(!_0x13216e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x13216e[_0x4142c5(0xb5)]();}[_0x4ada31(0xb2)](){const _0x5879ed=_0x4ada31;var _0x36539c;const _0x27a92b=this[_0x5879ed(0xc8)][_0x5879ed(0xd3)](_0x28eab8),_0x3c6687=(_0x36539c=this[_0x5879ed(0xc9)]())==null?void 0x0:_0x36539c[_0x5879ed(0xd0)]();if(!_0x3c6687)throw new Error('No\x20active\x20workbook\x20found.');const _0x2a5553=_0x27a92b[_0x5879ed(0xc7)](_0x3c6687);if(!_0x2a5553)throw new Error(_0x5879ed(0xb7));_0x2a5553[_0x5879ed(0xcc)]();}[_0x4ada31(0xc0)](){const _0x2dc898=_0x4ada31;var _0x11e9e4;const _0x537a5c=this[_0x2dc898(0xc8)][_0x2dc898(0xd3)](_0x28eab8),_0x3dac93=(_0x11e9e4=this[_0x2dc898(0xc9)]())==null?void 0x0:_0x11e9e4[_0x2dc898(0xd0)]();if(!_0x3dac93)throw new Error('No\x20active\x20workbook\x20found.');const _0x1f8029=_0x537a5c[_0x2dc898(0xc7)](_0x3dac93);if(!_0x1f8029)throw new Error(_0x2dc898(0xb7));_0x1f8029[_0x2dc898(0xc0)]();}}function _0x1219(_0x57f8eb,_0x41a48d){_0x57f8eb=_0x57f8eb-0xb2;const _0x3afcc4=_0x3afc();let _0x121979=_0x3afcc4[_0x57f8eb];return _0x121979;}_0x43c273[_0x4ada31(0xcb)](m);class C extends _0x56543f{get[_0x4ada31(0xb4)](){return _0x5d26a9;}}_0x56543f[_0x4ada31(0xcb)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5c891b=_0x3f41;(function(_0x5d1051,_0xfe1fe5){const _0x1c0d34=_0x3f41,_0x307f7c=_0x5d1051();while(!![]){try{const _0x1f14fa=parseInt(_0x1c0d34(0x16d))/0x1+parseInt(_0x1c0d34(0x132))/0x2*(-parseInt(_0x1c0d34(0x16b))/0x3)+parseInt(_0x1c0d34(0x125))/0x4+parseInt(_0x1c0d34(0x11b))/0x5*(parseInt(_0x1c0d34(0xe0))/0x6)+parseInt(_0x1c0d34(0xe7))/0x7*(-parseInt(_0x1c0d34(0x11f))/0x8)+parseInt(_0x1c0d34(0xed))/0x9+-parseInt(_0x1c0d34(0xe3))/0xa;if(_0x1f14fa===_0xfe1fe5)break;else _0x307f7c['push'](_0x307f7c['shift']());}catch(_0x1259e6){_0x307f7c['push'](_0x307f7c['shift']());}}}(_0x13cf,0xc9c7a));var J=Object[_0x5c891b(0x11c)],K=(_0x3d3763,_0x361fb1,_0x386156)=>_0x361fb1 in _0x3d3763?J(_0x3d3763,_0x361fb1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x386156}):_0x3d3763[_0x361fb1]=_0x386156,u=(_0x3be939,_0x82528e,_0x2ae74c)=>K(_0x3be939,typeof _0x82528e!=_0x5c891b(0x149)?_0x82528e+'':_0x82528e,_0x2ae74c);import{Disposable as _0x431729,toDisposable as _0x2a75a6,IUniverInstanceService as _0xb62e9f,Inject as _0x5c0b1a,Injector as _0x122406,IConfigService as _0x3ef321,ICommandService as _0x113a75,RxDisposable as _0x2994f4,UniverInstanceType as _0x4e9761,DisposableCollection as _0x35b926,CommandType as _0x419595,DependentOn as _0x42d09e,Plugin as _0x3414a0,merge as _0x13e6df,registerDependencies as _0x12f174,mergeOverrideWithDependencies as _0x3ea2c1,touchDependencies as _0x299450}from'@univerjs/core';import{useDependency as _0x59cba9,useObservable as _0x172d74,IUIPartsService as _0x150b13,BuiltInUIPart as _0x348417,connectInjector as _0x6df76e}from'@univerjs/ui';import{jsx as _0x22293e,jsxs as _0xc16c99,Fragment as _0x4ad7d5}from'react/jsx-runtime';import{Dropdown as _0x55a60a,clsx as _0x391744,Button as _0x5aedf4}from'@univerjs/design';import{useRef as _0x567279,createElement as _0x21df1f,forwardRef as _0x2542a7,useState as _0x8acbe5,useEffect as _0xb9123a}from'react';import{CollaborationEvent as _0x5b0c32,parseProtocolChangeset as _0x37c054}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1ee3d1,SessionStatus as _0x4b1079,UniverCollaborationClientPlugin as _0x5c81aa}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x36d1bf,SetWorksheetActiveOperation as _0x5564c8}from'@univerjs/sheets';import{BehaviorSubject as _0x5f2c0e,Subject as _0x4d0e55}from'rxjs';import{takeUntil as _0x2a74ec,throttleTime as _0x3d3727}from'rxjs/operators';function _0x3f41(_0x379308,_0x52df29){_0x379308=_0x379308-0xda;const _0x13cf10=_0x13cf();let _0x3f41af=_0x13cf10[_0x379308];return _0x3f41af;}import{SetZoomRatioOperation as _0x10142f,SetScrollOperation as _0x57bc22}from'@univerjs/sheets-ui';function k({ref:_0x8b6fec,..._0x5a2708}){const _0x79a618=_0x5c891b,{icon:_0x10bfca,id:_0xd3c020,className:_0x219571,extend:_0x1eb486,..._0x30e0fb}=_0x5a2708,_0x45676b=('univerjs-icon\x20univerjs-icon-'+_0xd3c020+'\x20'+(_0x219571||''))[_0x79a618(0x147)](),_0x4aab8e=_0x567279('_'+Oe());return G(_0x10bfca,''+_0xd3c020,{'defIds':_0x10bfca['defIds'],'idSuffix':_0x4aab8e[_0x79a618(0xf5)]},{'ref':_0x8b6fec,'className':_0x45676b,..._0x30e0fb},_0x1eb486);}function G(_0x5e72b2,_0x3a6d66,_0xe48b7f,_0x2c8be3,_0x36a5c3){const _0xc17b58=_0x5c891b;return _0x21df1f(_0x5e72b2[_0xc17b58(0x179)],{'key':_0x3a6d66,...be(_0x5e72b2,_0xe48b7f,_0x36a5c3),..._0x2c8be3},(Ee(_0x5e72b2,_0xe48b7f)[_0xc17b58(0x102)]||[])['map']((_0x11d941,_0x31303a)=>G(_0x11d941,_0x3a6d66+'-'+_0x5e72b2[_0xc17b58(0x179)]+'-'+_0x31303a,_0xe48b7f,void 0x0,_0x36a5c3)));}function be(_0x3025f5,_0x256acf,_0x4810c5){const _0x4d9352=_0x5c891b,_0x23a1da={..._0x3025f5[_0x4d9352(0x148)]};_0x4810c5!=null&&_0x4810c5['colorChannel1']&&_0x23a1da[_0x4d9352(0x154)]==='colorChannel1'&&(_0x23a1da[_0x4d9352(0x154)]=_0x4810c5['colorChannel1']),_0x3025f5[_0x4d9352(0x179)]===_0x4d9352(0xeb)&&_0x23a1da['id']&&(_0x23a1da['id']=_0x23a1da['id']+_0x256acf[_0x4d9352(0x14d)]),Object[_0x4d9352(0xf2)](_0x23a1da)[_0x4d9352(0x128)](([_0xc2c9b7,_0x26bd69])=>{const _0x3f7b6f=_0x4d9352;_0xc2c9b7===_0x3f7b6f(0xeb)&&typeof _0x26bd69=='string'&&(_0x23a1da[_0xc2c9b7]=_0x26bd69['replace'](/url\(#(.*)\)/,_0x3f7b6f(0xf1)+_0x256acf['idSuffix']+')'));});const {defIds:_0x8ee528}=_0x256acf;return!_0x8ee528||_0x8ee528['length']===0x0||(_0x3025f5[_0x4d9352(0x179)]==='use'&&_0x23a1da[_0x4d9352(0x12d)]&&(_0x23a1da[_0x4d9352(0x12d)]=_0x23a1da[_0x4d9352(0x12d)]+_0x256acf[_0x4d9352(0x14d)]),Object['entries'](_0x23a1da)[_0x4d9352(0x128)](([_0x321e28,_0x8e1dc3])=>{const _0x279893=_0x4d9352;typeof _0x8e1dc3==_0x279893(0x126)&&(_0x23a1da[_0x321e28]=_0x8e1dc3['replace'](/url\(#(.*)\)/,_0x279893(0xf1)+_0x256acf[_0x279893(0x14d)]+')'));})),_0x23a1da;}function Ee(_0x157426,_0x4cd462){const _0x820846=_0x5c891b;var _0xabca4d;const {defIds:_0x5c5024}=_0x4cd462;return!_0x5c5024||_0x5c5024[_0x820846(0x11e)]===0x0?_0x157426:_0x157426[_0x820846(0x179)]===_0x820846(0x150)&&((_0xabca4d=_0x157426['children'])!=null&&_0xabca4d[_0x820846(0x11e)])?{..._0x157426,'children':_0x157426['children'][_0x820846(0x171)](_0x24d80a=>typeof _0x24d80a[_0x820846(0x148)]['id']==_0x820846(0x126)&&_0x5c5024&&_0x5c5024[_0x820846(0x15d)](_0x24d80a['attrs']['id'])?{..._0x24d80a,'attrs':{..._0x24d80a[_0x820846(0x148)],'id':_0x24d80a[_0x820846(0x148)]['id']+_0x4cd462[_0x820846(0x14d)]}}:_0x24d80a)}:_0x157426;}function Oe(){const _0x3b67fd=_0x5c891b;return Math[_0x3b67fd(0x114)]()[_0x3b67fd(0x10c)](0x24)[_0x3b67fd(0xdf)](0x2,0x8);}k[_0x5c891b(0x12e)]=_0x5c891b(0xec);const we={'tag':'svg','attrs':{'xmlns':_0x5c891b(0x152),'fill':'none','viewBox':_0x5c891b(0x120),'width':_0x5c891b(0x134),'height':_0x5c891b(0x134)},'children':[{'tag':'path','attrs':{'fill':_0x5c891b(0xde),'d':_0x5c891b(0xee)}},{'tag':'path','attrs':{'fill':_0x5c891b(0xde),'d':_0x5c891b(0x17c),'fillRule':_0x5c891b(0x109),'clipRule':_0x5c891b(0x109)}}]},W=_0x2542a7(function(_0x38b9c4,_0x1007a9){const _0x55d74b=_0x5c891b;return _0x21df1f(k,Object[_0x55d74b(0x14f)]({},_0x38b9c4,{'id':_0x55d74b(0x121),'ref':_0x1007a9,'icon':we}));});W[_0x5c891b(0x12e)]=_0x5c891b(0x116);class L extends _0x431729{constructor(){const _0x4ac952=_0x5c891b;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x4ac952(0xf6),new Set());}['registerSharedOperation'](_0x20ac42){const _0x5c9715=_0x5c891b;return this[_0x5c9715(0x13c)][_0x5c9715(0x139)](_0x20ac42),_0x2a75a6(()=>this[_0x5c9715(0x13c)][_0x5c9715(0x135)](_0x20ac42));}[_0x5c891b(0x168)](_0x3fc39d){const _0x4383f1=_0x5c891b;return this[_0x4383f1(0xf6)][_0x4383f1(0x139)](_0x3fc39d),_0x2a75a6(()=>this[_0x4383f1(0xf6)]['delete'](_0x3fc39d));}['shouldShareOperation'](_0x49df9e){const _0x32be29=_0x5c891b;return this[_0x32be29(0x13c)][_0x32be29(0x166)](_0x49df9e);}['getInitialStates'](_0x3f85d0){const _0x1ff91f=_0x5c891b;return Array[_0x1ff91f(0x129)](this[_0x1ff91f(0xf6)])['map'](_0x25030f=>_0x25030f(_0x3f85d0));}}var Ne=Object[_0x5c891b(0x12a)],Y=(_0x364232,_0x59ffda,_0x4bc055,_0x1453d8)=>{const _0x396d74=_0x5c891b;for(var _0x4f0f3b=_0x1453d8>0x1?void 0x0:_0x1453d8?Ne(_0x59ffda,_0x4bc055):_0x59ffda,_0x371ee7=_0x364232[_0x396d74(0x11e)]-0x1,_0x26a79e;_0x371ee7>=0x0;_0x371ee7--)(_0x26a79e=_0x364232[_0x371ee7])&&(_0x4f0f3b=_0x26a79e(_0x4f0f3b)||_0x4f0f3b);return _0x4f0f3b;},_=(_0x3eec54,_0x2989b4)=>(_0x36ecad,_0x2d3a49)=>_0x2989b4(_0x36ecad,_0x2d3a49,_0x3eec54);let S=class extends _0x2994f4{constructor(_0x10ecb8,_0x274e6b,_0x7e5ae4){const _0x1de7a9=_0x5c891b;super(),u(this,_0x1de7a9(0x16e),new Map()),(this['_univerInstanceService']=_0x10ecb8,this[_0x1de7a9(0x15f)]=_0x274e6b,this[_0x1de7a9(0x10b)]=_0x7e5ae4,this[_0x1de7a9(0x142)]());}async['getLiveShareCoordinator'](_0x50c6ea){const _0x2f5d15=_0x5c891b;return this[_0x2f5d15(0x16e)][_0x2f5d15(0x166)](_0x50c6ea)||await this[_0x2f5d15(0xff)](_0x50c6ea),this[_0x2f5d15(0x16e)]['get'](_0x50c6ea);}[_0x5c891b(0x118)](_0x48b606){const _0x57ef09=_0x5c891b;var _0x38d21e;return(_0x38d21e=this[_0x57ef09(0x16e)][_0x57ef09(0xda)](_0x48b606))!=null?_0x38d21e:null;}[_0x5c891b(0x142)](){const _0x225e30=_0x5c891b;this['_univerInstanceService'][_0x225e30(0xe9)](_0x4e9761[_0x225e30(0xdb)])['pipe'](_0x2a74ec(this[_0x225e30(0x119)]))['subscribe'](async _0x4abc25=>{const _0x52a674=_0x225e30,_0x44d1de=_0x4abc25[_0x52a674(0x155)]();this[_0x52a674(0x16e)][_0x52a674(0x166)](_0x44d1de)||this['_startLiveShareCoordinator'](_0x44d1de);}),this[_0x225e30(0x173)][_0x225e30(0x146)](_0x4e9761[_0x225e30(0xdb)])['pipe'](_0x2a74ec(this[_0x225e30(0x119)]))['subscribe'](_0xdb90e7=>{const _0x5d5158=_0x225e30,_0x1991ba=_0xdb90e7[_0x5d5158(0x155)](),_0x3d1f6b=this[_0x5d5158(0x16e)][_0x5d5158(0xda)](_0x1991ba);_0x3d1f6b==null||_0x3d1f6b[_0x5d5158(0x15c)]();});}async['_startLiveShareCoordinator'](_0x550255){const _0x3ca347=_0x5c891b,_0x3e6164=await this['_collabSessionService'][_0x3ca347(0x10a)](_0x550255),_0x428235=this[_0x3ca347(0x15f)][_0x3ca347(0x156)](N,_0x550255,_0x3e6164);return _0x428235[_0x3ca347(0x11d)](),this['_entities'][_0x3ca347(0x13e)](_0x550255,_0x428235),_0x428235;}};S=Y([_(0x0,_0xb62e9f),_(0x1,_0x5c0b1a(_0x122406)),_(0x2,_0x5c0b1a(_0x1ee3d1))],S);var c=(_0x3621f8=>(_0x3621f8['OFFLINE']=_0x5c891b(0x14a),_0x3621f8[_0x5c891b(0x127)]=_0x5c891b(0x158),_0x3621f8[_0x5c891b(0x122)]=_0x5c891b(0x160),_0x3621f8[_0x5c891b(0x13f)]=_0x5c891b(0x111),_0x3621f8[_0x5c891b(0x13a)]=_0x5c891b(0xe8),_0x3621f8))(c||{});const Ce=_0x5c891b(0x107),De=0xc8;let N=class extends _0x2994f4{constructor(_0x145cd3,_0x59756e,_0x1daa51,_0xcd7384,_0x19eb6e){const _0x56fde6=_0x5c891b;super(),u(this,_0x56fde6(0xe5),new _0x5f2c0e(_0x56fde6(0x158))),u(this,_0x56fde6(0x174),this[_0x56fde6(0xe5)][_0x56fde6(0x104)]()),u(this,_0x56fde6(0x142),!0x1),u(this,'_commandDisposable',null),u(this,_0x56fde6(0x145),null),(this[_0x56fde6(0x16f)]=_0x145cd3,this[_0x56fde6(0x117)]=_0x59756e,this[_0x56fde6(0x14b)]=_0x1daa51,this[_0x56fde6(0x143)]=_0xcd7384,this[_0x56fde6(0x11a)]=_0x19eb6e);}get[_0x5c891b(0x101)](){const _0x3f6c9d=_0x5c891b;return this[_0x3f6c9d(0xe5)][_0x3f6c9d(0x15e)]();}[_0x5c891b(0x15c)](){const _0x35cd45=_0x5c891b;var _0x2c8268;(_0x2c8268=this['_commandDisposable'])==null||_0x2c8268[_0x35cd45(0x15c)](),this[_0x35cd45(0xe5)][_0x35cd45(0xf3)]('idle'),this[_0x35cd45(0xe5)][_0x35cd45(0xfe)]();}[_0x5c891b(0x10d)](){return this['_status'];}[_0x5c891b(0x11d)](){const _0x48eb97=_0x5c891b;this[_0x48eb97(0x142)]||(this[_0x48eb97(0x142)]=!0x0,this['_collabSession']['sessionStatus$'][_0x48eb97(0x167)](_0x2a74ec(this[_0x48eb97(0x119)]))[_0x48eb97(0x140)](_0x356bdd=>{const _0x459eb7=_0x48eb97;switch(_0x356bdd){case _0x4b1079[_0x459eb7(0x165)]:this['_handleOffline']();break;case _0x4b1079[_0x459eb7(0x133)]:this['_handleOnline']();break;}}),this[_0x48eb97(0x117)]['event$']['pipe'](_0x2a74ec(this[_0x48eb97(0x119)]))[_0x48eb97(0x140)](_0x3163d5=>{const _0x9b9a40=_0x48eb97,{eventID:_0x29ffc5}=_0x3163d5;switch(_0x29ffc5){case _0x5b0c32[_0x9b9a40(0x151)]:this[_0x9b9a40(0x10e)](_0x3163d5);break;case _0x5b0c32[_0x9b9a40(0x175)]:this['_handleOperation'](_0x3163d5);break;case _0x5b0c32[_0x9b9a40(0xea)]:this[_0x9b9a40(0xfb)]();break;case _0x5b0c32['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3163d5);break;}}));}['tryStartPresenting'](){const _0x115a56=_0x5c891b;this[_0x115a56(0x117)][_0x115a56(0xfc)]({'eventID':_0x5b0c32[_0x115a56(0xdc)],'data':{'unitID':this['_unitID'],'userID':this[_0x115a56(0x117)][_0x115a56(0x13b)]()}},this[_0x115a56(0x16f)]);}[_0x5c891b(0x16a)](){const _0x3a4e92=_0x5c891b;this[_0x3a4e92(0x101)]===_0x3a4e92(0xe8)&&(this[_0x3a4e92(0xe5)][_0x3a4e92(0xf3)]('idle'),this[_0x3a4e92(0x117)][_0x3a4e92(0xfc)]({'eventID':_0x5b0c32['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3a4e92(0x16f)]}},this[_0x3a4e92(0x16f)]));}[_0x5c891b(0xe1)](){const _0xae92a2=_0x5c891b;this[_0xae92a2(0x101)]===_0xae92a2(0x111)&&(this[_0xae92a2(0xe5)][_0xae92a2(0xf3)](_0xae92a2(0x160)),this[_0xae92a2(0x12c)]());}['stopFollowing'](){const _0x2d5d90=_0x5c891b;this['_status']===_0x2d5d90(0x160)&&this[_0x2d5d90(0xe4)]();}[_0x5c891b(0x10e)](_0x433812){const _0x17e494=_0x5c891b,{presenter:_0x40ddbf}=_0x433812[_0x17e494(0x17d)],_0x242d4a=this[_0x17e494(0x117)][_0x17e494(0x13b)]();this[_0x17e494(0x145)]=_0x40ddbf,_0x40ddbf===_0x242d4a?(this[_0x17e494(0xe4)](),this[_0x17e494(0x153)]()):this[_0x17e494(0x101)]!==_0x17e494(0x111)&&(this['_stopPresenting'](),this[_0x17e494(0x12c)]());}[_0x5c891b(0x12b)](){const _0x5a4cd1=_0x5c891b,_0x18ffe8={'eventID':_0x5b0c32['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x5a4cd1(0xfc)](_0x18ffe8,this[_0x5a4cd1(0x16f)]);}[_0x5c891b(0xfb)](){const _0xe4fbcc=_0x5c891b;this[_0xe4fbcc(0x145)]=null,this[_0xe4fbcc(0x101)]!=='presenting'&&this[_0xe4fbcc(0xf4)]();}[_0x5c891b(0xfd)](_0x38a7fc){const _0xcb3dce=_0x5c891b;if(this[_0xcb3dce(0x101)]===_0xcb3dce(0x160)&&this[_0xcb3dce(0x145)]===_0x38a7fc['data'][_0xcb3dce(0x115)]){const _0x35ce9f=_0x37c054(_0x38a7fc[_0xcb3dce(0x17d)])[_0xcb3dce(0x15a)]['reverse']()['find'](_0x53fda1=>_0x53fda1['id']===_0x36d1bf['id']);if(_0x35ce9f){const _0x2b5f3b=_0x35ce9f[_0xcb3dce(0x16c)][_0xcb3dce(0x162)],_0x4213be=_0x35ce9f[_0xcb3dce(0x16c)][_0xcb3dce(0x124)]['id'];setTimeout(()=>{const _0xf3faf9=_0xcb3dce;this['_commandService'][_0xf3faf9(0x161)](_0x5564c8['id'],{'unitId':_0x2b5f3b,'subUnitId':_0x4213be},{'fromCollab':!0x0});});}}}[_0x5c891b(0x153)](){const _0x392112=_0x5c891b;this[_0x392112(0xe5)]['next'](_0x392112(0xe8));const _0x76b929=new Map(),_0x207b17=this[_0x392112(0xf9)]=new _0x35b926();_0x207b17[_0x392112(0x139)](_0x2a75a6(()=>{const _0x425e0f=_0x392112;_0x76b929[_0x425e0f(0x128)](_0x47a59a=>_0x47a59a['complete']()),_0x76b929[_0x425e0f(0x17b)]();})),_0x207b17[_0x392112(0x139)](this[_0x392112(0x11a)][_0x392112(0x14c)](_0x35a3c8=>{const _0x4b7eee=_0x392112;var _0x1de7b7;if(_0x35a3c8[_0x4b7eee(0x163)]!==_0x419595[_0x4b7eee(0x178)]||!this[_0x4b7eee(0x143)]['shouldShareOperation'](_0x35a3c8['id']))return;const {id:_0x252f25}=_0x35a3c8;let _0x2fc419;_0x76b929[_0x4b7eee(0x166)](_0x252f25)?_0x2fc419=_0x76b929[_0x4b7eee(0xda)](_0x252f25):(_0x2fc419=new _0x4d0e55(),_0x76b929[_0x4b7eee(0x13e)](_0x252f25,_0x2fc419),_0x2fc419[_0x4b7eee(0x167)](_0x3d3727((_0x1de7b7=this['_configService'][_0x4b7eee(0x15b)](Ce))!=null?_0x1de7b7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b7eee(0x140)](_0x35a763=>{const _0x2a9baa=_0x4b7eee;this[_0x2a9baa(0x117)][_0x2a9baa(0xfc)]({'eventID':_0x5b0c32[_0x2a9baa(0x175)],'data':{'unitID':this[_0x2a9baa(0x16f)],'operations':{[_0x35a763['id']]:{'id':_0x35a763['id'],'params':JSON[_0x2a9baa(0x137)](_0x35a763['params'])}}}},this['_unitID']);})),_0x2fc419['next'](_0x35a3c8);})),this[_0x392112(0x143)][_0x392112(0x103)](this['_unitID'])['forEach'](_0x151742=>this[_0x392112(0x117)][_0x392112(0xfc)]({'eventID':_0x5b0c32[_0x392112(0x175)],'data':{'unitID':this['_unitID'],'operations':{[_0x151742['id']]:{'id':_0x151742['id'],'params':JSON[_0x392112(0x137)](_0x151742['params'])}}}},this[_0x392112(0x16f)]));}[_0x5c891b(0x172)](){const _0x399bee=_0x5c891b;var _0x278625;this[_0x399bee(0xe5)][_0x399bee(0xf3)](_0x399bee(0x158)),(_0x278625=this[_0x399bee(0xf9)])==null||_0x278625[_0x399bee(0x15c)](),this[_0x399bee(0xf9)]=null;}[_0x5c891b(0x12c)](){const _0xd0efcb=_0x5c891b;var _0x512c79;(_0x512c79=this[_0xd0efcb(0xf9)])==null||_0x512c79['dispose'](),this[_0xd0efcb(0xe5)][_0xd0efcb(0xf3)](_0xd0efcb(0x160));}[_0x5c891b(0xf4)](){const _0x3b9709=_0x5c891b;var _0xe1931b;this[_0x3b9709(0xe5)][_0x3b9709(0xf3)](_0x3b9709(0x158)),(_0xe1931b=this[_0x3b9709(0xf9)])==null||_0xe1931b[_0x3b9709(0x15c)](),this['_commandDisposable']=null;}[_0x5c891b(0xe4)](){const _0x2b35fc=_0x5c891b;var _0x88a924;this[_0x2b35fc(0xe5)][_0x2b35fc(0xf3)]('not-following'),(_0x88a924=this[_0x2b35fc(0xf9)])==null||_0x88a924[_0x2b35fc(0x15c)]();}[_0x5c891b(0xf7)](_0x537ffc){const _0x5a41e4=_0x5c891b;if(['presenting','not-following','offline'][_0x5a41e4(0x15d)](this[_0x5a41e4(0x101)])||!_0x537ffc[_0x5a41e4(0x17d)]['presenter']||_0x537ffc[_0x5a41e4(0x17d)][_0x5a41e4(0x157)]===this[_0x5a41e4(0x117)][_0x5a41e4(0x13b)]())return;this[_0x5a41e4(0x101)]===_0x5a41e4(0x158)&&this[_0x5a41e4(0x12c)]();const _0x358c8d=_0x537ffc[_0x5a41e4(0x17d)]['operations'];Object[_0x5a41e4(0xef)](_0x358c8d)['forEach'](_0x4b87d3=>{const _0x546da0=_0x5a41e4;this[_0x546da0(0x11a)][_0x546da0(0x161)](_0x4b87d3['id'],_0x4b87d3['params']?JSON[_0x546da0(0x164)](_0x4b87d3[_0x546da0(0x16c)]):null,{'fromCollab':!0x0});});}[_0x5c891b(0x112)](){const _0x7712fe=_0x5c891b;var _0x5e6997;this['_status$'][_0x7712fe(0xf3)](_0x7712fe(0x14a)),(_0x5e6997=this['_commandDisposable'])==null||_0x5e6997[_0x7712fe(0x15c)]();}[_0x5c891b(0x110)](){const _0x24ed7c=_0x5c891b;this[_0x24ed7c(0xe5)][_0x24ed7c(0xf3)]('idle'),this[_0x24ed7c(0x12b)]();}};N=Y([_(0x2,_0x3ef321),_(0x3,_0x5c0b1a(L)),_(0x4,_0x113a75)],N);function Le(){const _0x2e8662=_0x5c891b,_0x46846f=_0x59cba9(S),_0x29bfb9=_0x59cba9(_0xb62e9f),_0xb80694=_0x172d74(()=>_0x29bfb9[_0x2e8662(0x130)](_0x4e9761[_0x2e8662(0xdb)]),void 0x0,!0x1,[]),[_0x107360,_0x17d935]=_0x8acbe5(null),[_0x11ea72,_0x5b4511]=_0x8acbe5(c[_0x2e8662(0x127)]),_0x57db96=_0x567279(null);return _0xb9123a(()=>(_0xb80694&&_0x46846f[_0x2e8662(0x159)](_0xb80694[_0x2e8662(0x155)]())[_0x2e8662(0x144)](_0x27adf9=>{const _0x25b66e=_0x2e8662;_0x17d935(_0x27adf9),_0x57db96[_0x25b66e(0xf5)]=_0x27adf9[_0x25b66e(0x174)][_0x25b66e(0x140)](_0x299c41=>{_0x5b4511(_0x299c41);});}),()=>{const _0x370c58=_0x2e8662;var _0x41841c;(_0x41841c=_0x57db96[_0x370c58(0xf5)])==null||_0x41841c[_0x370c58(0x136)](),_0x57db96['current']=null;}),[_0xb80694,_0x46846f]),_0x107360?_0x22293e(_0x55a60a,{'align':'end','disabled':_0x11ea72===c[_0x2e8662(0x165)],'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':_0x22293e(Re,{'status':_0x11ea72,'coordinator':_0x107360}),'children':_0x22293e(_0x2e8662(0x12f),{'className':_0x391744(_0x2e8662(0x177),{'univer-cursor-not-allowed':_0x11ea72===c[_0x2e8662(0x165)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11ea72!==c['OFFLINE']}),'type':_0x2e8662(0x12f),'children':_0x22293e(W,{'className':'univer-size-4'})})}):null;}function Re(_0xebe6b7){const _0x59a0ca=_0x5c891b,{status:_0x4adc9d,coordinator:_0x30e75e}=_0xebe6b7;switch(_0x4adc9d){case c['IDLE']:return _0x22293e($e,{'coordinator':_0x30e75e});case c[_0x59a0ca(0x122)]:return _0x22293e(xe,{'coordinator':_0x30e75e});case c['NOT_FOLLOWING']:return _0x22293e(Pe,{'coordinator':_0x30e75e});case c['OFFLINE']:return _0x22293e(Te,{});case c['PRESENTING']:return _0x22293e(Ae,{'coordinator':_0x30e75e});default:return null;}}function $e(_0x2c1586){const _0x311269=_0x5c891b,{coordinator:_0x326fa0}=_0x2c1586;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e(_0x311269(0x108),{'className':_0x311269(0xe6),'children':_0x311269(0x138)}),_0x22293e(_0x5aedf4,{'onClick':()=>_0x326fa0['tryStartPresenting'](),'children':_0x311269(0x13d)})]});}function xe(_0x2b5d49){const _0x397ca3=_0x5c891b,{coordinator:_0x3eaa1b}=_0x2b5d49;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e(_0x397ca3(0x108),{'className':_0x397ca3(0xe6),'children':_0x397ca3(0x123)}),_0x22293e(_0x5aedf4,{'onClick':()=>_0x3eaa1b['stopFollowing'](),'children':_0x397ca3(0x170)})]});}function Pe(_0x6ace70){const _0x2b278a=_0x5c891b,{coordinator:_0x5aeaf1}=_0x6ace70;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e('div',{'className':_0x2b278a(0xe6),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x22293e(_0x5aedf4,{'variant':_0x2b278a(0x100),'onClick':()=>_0x5aeaf1[_0x2b278a(0xe1)](),'children':_0x2b278a(0x141)})]});}function Ae(_0x3c7a47){const _0x2aabc7=_0x5c891b,{coordinator:_0x393d4d}=_0x3c7a47;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x22293e(_0x5aedf4,{'variant':_0x2aabc7(0xf0),'onClick':()=>_0x393d4d[_0x2aabc7(0x16a)](),'children':_0x2aabc7(0x17a)})]});}function Te(){return _0x22293e(_0x4ad7d5,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x5c891b(0x12a)],He=(_0xe70890,_0x1b3670,_0x59da49,_0x179e3e)=>{for(var _0x240718=_0x179e3e>0x1?void 0x0:_0x179e3e?Fe(_0x1b3670,_0x59da49):_0x1b3670,_0x7cdc85=_0xe70890['length']-0x1,_0x2723ac;_0x7cdc85>=0x0;_0x7cdc85--)(_0x2723ac=_0xe70890[_0x7cdc85])&&(_0x240718=_0x2723ac(_0x240718)||_0x240718);return _0x240718;},A=(_0x38e13f,_0x3bff8e)=>(_0x2e8fc0,_0x53adac)=>_0x3bff8e(_0x2e8fc0,_0x53adac,_0x38e13f);let m=class extends _0x431729{constructor(_0xd2e111,_0x308dba){const _0x4e99bd=_0x5c891b;super(),this[_0x4e99bd(0x15f)]=_0xd2e111,this[_0x4e99bd(0x176)]=_0x308dba,this[_0x4e99bd(0x131)]();}[_0x5c891b(0x131)](){const _0x2574bc=_0x5c891b;this[_0x2574bc(0xe2)](this['_uiPartsService']['registerComponent'](_0x348417[_0x2574bc(0x10f)],()=>_0x6df76e(Le,this[_0x2574bc(0x15f)])));}};m=He([A(0x0,_0x5c0b1a(_0x122406)),A(0x1,_0x150b13)],m);const ye=_0x5c891b(0x169),T={};var Ue=Object[_0x5c891b(0x12a)],Ve=(_0xc6d32e,_0x4f3166,_0x433df3,_0x349a72)=>{const _0x1c69eb=_0x5c891b;for(var _0x4fbdc7=_0x349a72>0x1?void 0x0:_0x349a72?Ue(_0x4f3166,_0x433df3):_0x4f3166,_0x1781d9=_0xc6d32e[_0x1c69eb(0x11e)]-0x1,_0x1c4824;_0x1781d9>=0x0;_0x1781d9--)(_0x1c4824=_0xc6d32e[_0x1781d9])&&(_0x4fbdc7=_0x1c4824(_0x4fbdc7)||_0x4fbdc7);return _0x4fbdc7;},je=(_0x529ed1,_0x185e52)=>(_0x46e878,_0x32c45e)=>_0x185e52(_0x46e878,_0x32c45e,_0x529ed1);function _0x13cf(){const _0x481ce6=['LIVESHARE_NEW_HOST','http://www.w3.org/2000/svg','_startPresenting','fill','getUnitId','createInstance','presenter','idle','getLiveShareCoordinator','mutations','getConfig','dispose','includes','getValue','_injector','following','executeCommand','unitId','type','parse','OFFLINE','has','pipe','registerInitialStateReporter','live-share.config','stopPresenting','722994BLrhHq','params','1523720ADbKLF','_entities','_unitID','Stop\x20following','map','_stopPresenting','_univerInstanceService','status$','LIVESHARE_OPERATION','_uiPartsService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','tag','Stop\x20presenting','clear','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','data','get','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','onRendered','currentColor','substring','5046CHcPnD','startFollowing','disposeWithMe','16412740CkJGqN','_stopFollowing','_status$','univer-mb-3\x20univer-w-full\x20univer-text-sm','2831227ugnzHi','presenting','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','mask','UniverIcon','4965129REChjX','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','values','default','url(#$1','entries','next','_beIdle','current','_reporters','_handleOperation','UNIVER_UNKNOWN','_commandDisposable','_config','_handleTerminate','send','_handleNewChangeSets','complete','_startLiveShareCoordinator','text','_status','children','getInitialStates','asObservable','pluginName','override','SAME_OPERATION_SHARE_INTERVAL','div','evenodd','requireSession','_collabSessionService','toString','getStatus','_handleNewHost','HEADER_MENU','_handleOnline','not-following','_handleOffline','registerSharedOperation','random','memberID','LiveShareIcon','_collabSession','getLiveShareCoordinatorSync','dispose$','_commandService','4985NQHVnM','defineProperty','init','length','16iaKIew','0\x200\x2017\x2017','live-share-icon','FOLLOWING','You\x27re\x20following\x20the\x20presenter','sheet','4343208HekjOn','string','IDLE','forEach','from','getOwnPropertyDescriptor','_fetchOperations','_startFollowing','xlink:href','displayName','button','getCurrentTypeOfUnit$','_mountLiveShare','6NMAWMA','ONLINE','1em','delete','unsubscribe','stringify','Present\x20this\x20document','add','PRESENTING','getMemberID','_sharedOperations','Start','set','NOT_FOLLOWING','subscribe','Start\x20following','_init','_liveShareService','then','_presenter','getTypeOfUnitDisposed$','trim','attrs','symbol','offline','_configService','onCommandExecuted','idSuffix','UNIVER_LIVE_SHARE_PLUGIN','assign','defs'];_0x13cf=function(){return _0x481ce6;};return _0x13cf();}let I=class extends _0x431729{constructor(_0xbe3fa){const _0x3c9f89=_0x5c891b;super(),this[_0x3c9f89(0x143)]=_0xbe3fa,this[_0x3c9f89(0x142)]();}['_init'](){[_0x10142f['id'],_0x57bc22['id'],_0x5564c8['id']]['forEach'](_0x3ce2d9=>{const _0x1b1c6f=_0x3f41;this[_0x1b1c6f(0xe2)](this['_liveShareService'][_0x1b1c6f(0x113)](_0x3ce2d9));});}};I=Ve([je(0x0,_0x5c0b1a(L))],I);var Me=Object[_0x5c891b(0x11c)],ke=Object[_0x5c891b(0x12a)],Ge=(_0x5d2e44,_0x275dde,_0x2f2818)=>_0x275dde in _0x5d2e44?Me(_0x5d2e44,_0x275dde,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f2818}):_0x5d2e44[_0x275dde]=_0x2f2818,We=(_0x2dfcb7,_0x454f5a,_0x2e9536,_0x3d1ffe)=>{const _0x2b6635=_0x5c891b;for(var _0x35aaa5=_0x3d1ffe>0x1?void 0x0:_0x3d1ffe?ke(_0x454f5a,_0x2e9536):_0x454f5a,_0x1f534c=_0x2dfcb7[_0x2b6635(0x11e)]-0x1,_0x49886c;_0x1f534c>=0x0;_0x1f534c--)(_0x49886c=_0x2dfcb7[_0x1f534c])&&(_0x35aaa5=_0x49886c(_0x35aaa5)||_0x35aaa5);return _0x35aaa5;},F=(_0x3c9d73,_0x483a82)=>(_0x2ff063,_0x1d551f)=>_0x483a82(_0x2ff063,_0x1d551f,_0x3c9d73),B=(_0x85ab9b,_0x27f8db,_0x157175)=>Ge(_0x85ab9b,typeof _0x27f8db!='symbol'?_0x27f8db+'':_0x27f8db,_0x157175);const Ye=_0x5c891b(0x14e);let b=class extends _0x3414a0{constructor(_0x4ee1fe=T,_0x3869cf,_0x1432a1){const _0x1f5ce2=_0x5c891b;super(),this[_0x1f5ce2(0xfa)]=_0x4ee1fe,this['_injector']=_0x3869cf,this[_0x1f5ce2(0x14b)]=_0x1432a1;const {..._0x2fd983}=_0x13e6df({},T,this[_0x1f5ce2(0xfa)]);this['_configService']['setConfig'](ye,_0x2fd983);}['onStarting'](){const _0x4b77d5=_0x5c891b;_0x12f174(this[_0x4b77d5(0x15f)],_0x3ea2c1([[L],[S],[I],[m]],this[_0x4b77d5(0xfa)][_0x4b77d5(0x106)])),_0x299450(this[_0x4b77d5(0x15f)],[[I]]);}[_0x5c891b(0xdd)](){const _0x58e9f7=_0x5c891b;_0x299450(this[_0x58e9f7(0x15f)],[[m]]);}};B(b,_0x5c891b(0x163),_0x4e9761[_0x5c891b(0xf8)]),B(b,_0x5c891b(0x105),Ye),b=We([_0x42d09e(_0x5c81aa),F(0x1,_0x5c0b1a(_0x122406)),F(0x2,_0x3ef321)],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 _0xce0c4e=_0x53c8;(function(_0xe945e9,_0x5846b5){const _0x1571b1=_0x53c8,_0x4b6916=_0xe945e9();while(!![]){try{const _0x3c7bcf=parseInt(_0x1571b1(0x21e))/0x1*(parseInt(_0x1571b1(0x25a))/0x2)+-parseInt(_0x1571b1(0x26d))/0x3*(-parseInt(_0x1571b1(0x236))/0x4)+-parseInt(_0x1571b1(0x220))/0x5*(-parseInt(_0x1571b1(0x213))/0x6)+parseInt(_0x1571b1(0x277))/0x7*(parseInt(_0x1571b1(0x271))/0x8)+-parseInt(_0x1571b1(0x23e))/0x9+parseInt(_0x1571b1(0x1fc))/0xa*(-parseInt(_0x1571b1(0x24e))/0xb)+parseInt(_0x1571b1(0x232))/0xc*(parseInt(_0x1571b1(0x210))/0xd);if(_0x3c7bcf===_0x5846b5)break;else _0x4b6916['push'](_0x4b6916['shift']());}catch(_0xc22004){_0x4b6916['push'](_0x4b6916['shift']());}}}(_0x1f69,0x48e76));var J=Object[_0xce0c4e(0x293)],K=(_0x40f9bc,_0x48cba5,_0x199f22)=>_0x48cba5 in _0x40f9bc?J(_0x40f9bc,_0x48cba5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x199f22}):_0x40f9bc[_0x48cba5]=_0x199f22,u=(_0x6a6a02,_0x14be30,_0x325189)=>K(_0x6a6a02,typeof _0x14be30!=_0xce0c4e(0x21c)?_0x14be30+'':_0x14be30,_0x325189);import{Disposable as _0x391c50,toDisposable as _0x5ec987,IUniverInstanceService as _0x5d85e7,Inject as _0x2de6b4,Injector as _0x173c5e,IConfigService as _0x34266a,ICommandService as _0x492717,RxDisposable as _0x40c917,UniverInstanceType as _0x324c39,DisposableCollection as _0x321e9e,CommandType as _0x7e8bcb,DependentOn as _0x390b52,Plugin as _0x3d5c76,merge as _0x1325bb,registerDependencies as _0x256053,mergeOverrideWithDependencies as _0x4c1cfa,touchDependencies as _0x39d7eb}from'@univerjs/core';import{useDependency as _0x14182f,useObservable as _0x55b771,IUIPartsService as _0x48a06c,BuiltInUIPart as _0x7e38cc,connectInjector as _0x593ae2}from'@univerjs/ui';import{jsx as _0x481bab,jsxs as _0x3e4308,Fragment as _0x2de7e1}from'react/jsx-runtime';import{Dropdown as _0x42bb87,clsx as _0xfbc3dd,Button as _0x273271}from'@univerjs/design';import{useRef as _0x102f92,createElement as _0x8d6eeb,forwardRef as _0x435347,useState as _0x2b36ac,useEffect as _0xcd52bb}from'react';import{CollaborationEvent as _0x1dbbdf,parseProtocolChangeset as _0x212e49}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5f546f,SessionStatus as _0x4ce167,UniverCollaborationClientPlugin as _0x11e9df}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3128b0,SetWorksheetActiveOperation as _0x31ae4e}from'@univerjs/sheets';import{BehaviorSubject as _0x1067bc,Subject as _0x23ea99}from'rxjs';import{takeUntil as _0x35683e,throttleTime as _0x3198dc}from'rxjs/operators';import{SetZoomRatioOperation as _0x8a3ff8,SetScrollOperation as _0x3dbd75}from'@univerjs/sheets-ui';function k({ref:_0x436ded,..._0x52490d}){const _0x208345=_0xce0c4e,{icon:_0x1e4f7b,id:_0x5ae976,className:_0x54e6ec,extend:_0x3562b3,..._0x41f5c2}=_0x52490d,_0x57da8b=(_0x208345(0x212)+_0x5ae976+'\x20'+(_0x54e6ec||''))['trim'](),_0x21ebea=_0x102f92('_'+Oe());return G(_0x1e4f7b,''+_0x5ae976,{'defIds':_0x1e4f7b[_0x208345(0x1f1)],'idSuffix':_0x21ebea[_0x208345(0x258)]},{'ref':_0x436ded,'className':_0x57da8b,..._0x41f5c2},_0x3562b3);}function G(_0x43b6b6,_0x1b7e63,_0x1e6617,_0x197ffe,_0x3360e4){const _0x4b6cfb=_0xce0c4e;return _0x8d6eeb(_0x43b6b6[_0x4b6cfb(0x233)],{'key':_0x1b7e63,...be(_0x43b6b6,_0x1e6617,_0x3360e4),..._0x197ffe},(Ee(_0x43b6b6,_0x1e6617)['children']||[])[_0x4b6cfb(0x269)]((_0x53d93b,_0x1c370b)=>G(_0x53d93b,_0x1b7e63+'-'+_0x43b6b6[_0x4b6cfb(0x233)]+'-'+_0x1c370b,_0x1e6617,void 0x0,_0x3360e4)));}function be(_0x4f1854,_0x589f60,_0x301dbe){const _0x5ae272=_0xce0c4e,_0x595744={..._0x4f1854[_0x5ae272(0x203)]};_0x301dbe!=null&&_0x301dbe[_0x5ae272(0x1f5)]&&_0x595744[_0x5ae272(0x1f7)]==='colorChannel1'&&(_0x595744[_0x5ae272(0x1f7)]=_0x301dbe[_0x5ae272(0x1f5)]),_0x4f1854[_0x5ae272(0x233)]==='mask'&&_0x595744['id']&&(_0x595744['id']=_0x595744['id']+_0x589f60[_0x5ae272(0x245)]),Object['entries'](_0x595744)[_0x5ae272(0x25f)](([_0xaee3b6,_0x48844f])=>{const _0x2287d3=_0x5ae272;_0xaee3b6===_0x2287d3(0x20f)&&typeof _0x48844f==_0x2287d3(0x211)&&(_0x595744[_0xaee3b6]=_0x48844f['replace'](/url\(#(.*)\)/,_0x2287d3(0x26b)+_0x589f60[_0x2287d3(0x245)]+')'));});const {defIds:_0x20aad5}=_0x589f60;return!_0x20aad5||_0x20aad5[_0x5ae272(0x22f)]===0x0||(_0x4f1854[_0x5ae272(0x233)]==='use'&&_0x595744[_0x5ae272(0x1f6)]&&(_0x595744[_0x5ae272(0x1f6)]=_0x595744[_0x5ae272(0x1f6)]+_0x589f60[_0x5ae272(0x245)]),Object[_0x5ae272(0x27f)](_0x595744)[_0x5ae272(0x25f)](([_0x4feddd,_0x40d1fa])=>{const _0x1f2e2f=_0x5ae272;typeof _0x40d1fa==_0x1f2e2f(0x211)&&(_0x595744[_0x4feddd]=_0x40d1fa['replace'](/url\(#(.*)\)/,_0x1f2e2f(0x26b)+_0x589f60[_0x1f2e2f(0x245)]+')'));})),_0x595744;}function Ee(_0x51048f,_0x5ea9a5){const _0x46795e=_0xce0c4e;var _0x169604;const {defIds:_0x5e82aa}=_0x5ea9a5;return!_0x5e82aa||_0x5e82aa[_0x46795e(0x22f)]===0x0?_0x51048f:_0x51048f[_0x46795e(0x233)]===_0x46795e(0x267)&&((_0x169604=_0x51048f[_0x46795e(0x256)])!=null&&_0x169604[_0x46795e(0x22f)])?{..._0x51048f,'children':_0x51048f[_0x46795e(0x256)]['map'](_0x425a7f=>typeof _0x425a7f[_0x46795e(0x203)]['id']==_0x46795e(0x211)&&_0x5e82aa&&_0x5e82aa[_0x46795e(0x286)](_0x425a7f[_0x46795e(0x203)]['id'])?{..._0x425a7f,'attrs':{..._0x425a7f[_0x46795e(0x203)],'id':_0x425a7f[_0x46795e(0x203)]['id']+_0x5ea9a5[_0x46795e(0x245)]}}:_0x425a7f)}:_0x51048f;}function Oe(){const _0x2bca86=_0xce0c4e;return Math[_0x2bca86(0x26a)]()[_0x2bca86(0x1f4)](0x24)[_0x2bca86(0x26e)](0x2,0x8);}k['displayName']=_0xce0c4e(0x1fd);const we={'tag':_0xce0c4e(0x290),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xce0c4e(0x239),'width':_0xce0c4e(0x281),'height':_0xce0c4e(0x281)},'children':[{'tag':_0xce0c4e(0x216),'attrs':{'fill':'currentColor','d':_0xce0c4e(0x205)}},{'tag':_0xce0c4e(0x216),'attrs':{'fill':_0xce0c4e(0x24f),'d':_0xce0c4e(0x280),'fillRule':_0xce0c4e(0x289),'clipRule':_0xce0c4e(0x289)}}]},W=_0x435347(function(_0x5b9697,_0x2d0f81){const _0x54a022=_0xce0c4e;return _0x8d6eeb(k,Object[_0x54a022(0x215)]({},_0x5b9697,{'id':_0x54a022(0x1fe),'ref':_0x2d0f81,'icon':we}));});W[_0xce0c4e(0x21b)]=_0xce0c4e(0x247);class L extends _0x391c50{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0xce0c4e(0x217)](_0x35addc){const _0x44ba50=_0xce0c4e;return this[_0x44ba50(0x27e)][_0x44ba50(0x285)](_0x35addc),_0x5ec987(()=>this[_0x44ba50(0x27e)][_0x44ba50(0x20b)](_0x35addc));}['registerInitialStateReporter'](_0x3f82e2){const _0x2b95e1=_0xce0c4e;return this['_reporters'][_0x2b95e1(0x285)](_0x3f82e2),_0x5ec987(()=>this['_reporters'][_0x2b95e1(0x20b)](_0x3f82e2));}['shouldShareOperation'](_0x1ca1d6){const _0x3ec09f=_0xce0c4e;return this[_0x3ec09f(0x27e)]['has'](_0x1ca1d6);}[_0xce0c4e(0x259)](_0x49e45e){const _0x333491=_0xce0c4e;return Array['from'](this[_0x333491(0x266)])[_0x333491(0x269)](_0x293b6d=>_0x293b6d(_0x49e45e));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x22614b,_0x29a179,_0x5f4f45,_0x5031aa)=>{const _0x4f68b0=_0xce0c4e;for(var _0x2cb755=_0x5031aa>0x1?void 0x0:_0x5031aa?Ne(_0x29a179,_0x5f4f45):_0x29a179,_0xfe0e80=_0x22614b[_0x4f68b0(0x22f)]-0x1,_0x40abe9;_0xfe0e80>=0x0;_0xfe0e80--)(_0x40abe9=_0x22614b[_0xfe0e80])&&(_0x2cb755=_0x40abe9(_0x2cb755)||_0x2cb755);return _0x2cb755;},_=(_0x25297a,_0x53b15f)=>(_0x43aafc,_0x8f1802)=>_0x53b15f(_0x43aafc,_0x8f1802,_0x25297a);let S=class extends _0x40c917{constructor(_0x1e6ffa,_0x4898d9,_0x478819){const _0x46b185=_0xce0c4e;super(),u(this,'_entities',new Map()),(this[_0x46b185(0x22b)]=_0x1e6ffa,this[_0x46b185(0x265)]=_0x4898d9,this[_0x46b185(0x25b)]=_0x478819,this[_0x46b185(0x251)]());}async[_0xce0c4e(0x248)](_0x5ecb6e){const _0x4609f8=_0xce0c4e;return this[_0x4609f8(0x252)][_0x4609f8(0x25c)](_0x5ecb6e)||await this[_0x4609f8(0x20c)](_0x5ecb6e),this['_entities']['get'](_0x5ecb6e);}[_0xce0c4e(0x26f)](_0x3a924c){const _0x379183=_0xce0c4e;var _0xe039cb;return(_0xe039cb=this['_entities'][_0x379183(0x229)](_0x3a924c))!=null?_0xe039cb:null;}[_0xce0c4e(0x251)](){const _0x4e9e79=_0xce0c4e;this[_0x4e9e79(0x22b)][_0x4e9e79(0x292)](_0x324c39[_0x4e9e79(0x282)])[_0x4e9e79(0x231)](_0x35683e(this['dispose$']))[_0x4e9e79(0x257)](async _0x41b75f=>{const _0x44c076=_0x4e9e79,_0x46fd50=_0x41b75f[_0x44c076(0x28f)]();this['_entities'][_0x44c076(0x25c)](_0x46fd50)||this['_startLiveShareCoordinator'](_0x46fd50);}),this['_univerInstanceService'][_0x4e9e79(0x1fa)](_0x324c39[_0x4e9e79(0x282)])[_0x4e9e79(0x231)](_0x35683e(this['dispose$']))[_0x4e9e79(0x257)](_0x1e5e41=>{const _0x3d2d42=_0x4e9e79,_0x35d6b9=_0x1e5e41['getUnitId'](),_0x288be8=this[_0x3d2d42(0x252)][_0x3d2d42(0x229)](_0x35d6b9);_0x288be8==null||_0x288be8[_0x3d2d42(0x264)]();});}async[_0xce0c4e(0x20c)](_0x3fafbb){const _0x49a410=_0xce0c4e,_0x1b9cfa=await this[_0x49a410(0x25b)][_0x49a410(0x204)](_0x3fafbb),_0xa9cfe5=this['_injector']['createInstance'](N,_0x3fafbb,_0x1b9cfa);return _0xa9cfe5[_0x49a410(0x22e)](),this[_0x49a410(0x252)][_0x49a410(0x237)](_0x3fafbb,_0xa9cfe5),_0xa9cfe5;}};S=Y([_(0x0,_0x5d85e7),_(0x1,_0x2de6b4(_0x173c5e)),_(0x2,_0x2de6b4(_0x5f546f))],S);var c=(_0x4db93e=>(_0x4db93e[_0xce0c4e(0x24b)]=_0xce0c4e(0x27a),_0x4db93e[_0xce0c4e(0x1fb)]='idle',_0x4db93e[_0xce0c4e(0x243)]=_0xce0c4e(0x206),_0x4db93e[_0xce0c4e(0x28a)]=_0xce0c4e(0x270),_0x4db93e[_0xce0c4e(0x287)]=_0xce0c4e(0x223),_0x4db93e))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x40c917{constructor(_0x2a6d5a,_0x562900,_0x3b1705,_0x52bdd,_0x3eb702){const _0x257eb4=_0xce0c4e;super(),u(this,'_status$',new _0x1067bc(_0x257eb4(0x255))),u(this,_0x257eb4(0x221),this[_0x257eb4(0x214)][_0x257eb4(0x284)]()),u(this,_0x257eb4(0x251),!0x1),u(this,_0x257eb4(0x228),null),u(this,_0x257eb4(0x1f8),null),(this[_0x257eb4(0x1f9)]=_0x2a6d5a,this[_0x257eb4(0x21a)]=_0x562900,this[_0x257eb4(0x294)]=_0x3b1705,this[_0x257eb4(0x240)]=_0x52bdd,this[_0x257eb4(0x296)]=_0x3eb702);}get[_0xce0c4e(0x235)](){const _0x4f205e=_0xce0c4e;return this[_0x4f205e(0x214)]['getValue']();}[_0xce0c4e(0x264)](){const _0x990a07=_0xce0c4e;var _0x342f14;(_0x342f14=this[_0x990a07(0x228)])==null||_0x342f14['dispose'](),this[_0x990a07(0x214)][_0x990a07(0x253)]('idle'),this[_0x990a07(0x214)][_0x990a07(0x207)]();}[_0xce0c4e(0x23f)](){return this['_status'];}[_0xce0c4e(0x22e)](){const _0x2ce3c1=_0xce0c4e;this[_0x2ce3c1(0x251)]||(this[_0x2ce3c1(0x251)]=!0x0,this[_0x2ce3c1(0x21a)][_0x2ce3c1(0x27c)][_0x2ce3c1(0x231)](_0x35683e(this[_0x2ce3c1(0x26c)]))['subscribe'](_0xa9bbbc=>{const _0x1b3b2c=_0x2ce3c1;switch(_0xa9bbbc){case _0x4ce167['OFFLINE']:this[_0x1b3b2c(0x263)]();break;case _0x4ce167['ONLINE']:this['_handleOnline']();break;}}),this['_collabSession'][_0x2ce3c1(0x1ef)][_0x2ce3c1(0x231)](_0x35683e(this['dispose$']))[_0x2ce3c1(0x257)](_0x2625d5=>{const _0x6926e0=_0x2ce3c1,{eventID:_0x12bc56}=_0x2625d5;switch(_0x12bc56){case _0x1dbbdf[_0x6926e0(0x241)]:this[_0x6926e0(0x24d)](_0x2625d5);break;case _0x1dbbdf['LIVESHARE_OPERATION']:this['_handleOperation'](_0x2625d5);break;case _0x1dbbdf['LIVESHARE_TERMINATE']:this[_0x6926e0(0x28d)]();break;case _0x1dbbdf[_0x6926e0(0x1f2)]:this[_0x6926e0(0x1f0)](_0x2625d5);break;}}));}[_0xce0c4e(0x262)](){const _0x4c045a=_0xce0c4e;this[_0x4c045a(0x21a)]['send']({'eventID':_0x1dbbdf[_0x4c045a(0x298)],'data':{'unitID':this[_0x4c045a(0x1f9)],'userID':this[_0x4c045a(0x21a)][_0x4c045a(0x227)]()}},this[_0x4c045a(0x1f9)]);}[_0xce0c4e(0x200)](){const _0xeeff73=_0xce0c4e;this['_status']===_0xeeff73(0x223)&&(this[_0xeeff73(0x214)]['next'](_0xeeff73(0x255)),this[_0xeeff73(0x21a)][_0xeeff73(0x219)]({'eventID':_0x1dbbdf[_0xeeff73(0x254)],'data':{'unitID':this['_unitID']}},this[_0xeeff73(0x1f9)]));}[_0xce0c4e(0x249)](){const _0x3b3f07=_0xce0c4e;this[_0x3b3f07(0x235)]===_0x3b3f07(0x270)&&(this['_status$'][_0x3b3f07(0x253)](_0x3b3f07(0x206)),this[_0x3b3f07(0x250)]());}[_0xce0c4e(0x1ee)](){const _0x421191=_0xce0c4e;this[_0x421191(0x235)]==='following'&&this[_0x421191(0x230)]();}[_0xce0c4e(0x24d)](_0x5950f4){const _0x44a3c5=_0xce0c4e,{presenter:_0x4e893b}=_0x5950f4[_0x44a3c5(0x28b)],_0x37a714=this['_collabSession'][_0x44a3c5(0x227)]();this[_0x44a3c5(0x1f8)]=_0x4e893b,_0x4e893b===_0x37a714?(this[_0x44a3c5(0x230)](),this[_0x44a3c5(0x299)]()):this[_0x44a3c5(0x235)]!=='not-following'&&(this[_0x44a3c5(0x225)](),this[_0x44a3c5(0x250)]());}[_0xce0c4e(0x275)](){const _0x462170=_0xce0c4e,_0x348a09={'eventID':_0x1dbbdf[_0x462170(0x260)]};this[_0x462170(0x21a)][_0x462170(0x219)](_0x348a09,this[_0x462170(0x1f9)]);}[_0xce0c4e(0x28d)](){const _0x11eb75=_0xce0c4e;this['_presenter']=null,this[_0x11eb75(0x235)]!=='presenting'&&this[_0x11eb75(0x22c)]();}[_0xce0c4e(0x1f0)](_0x184626){const _0x500f31=_0xce0c4e;if(this[_0x500f31(0x235)]===_0x500f31(0x206)&&this[_0x500f31(0x1f8)]===_0x184626[_0x500f31(0x28b)][_0x500f31(0x27b)]){const _0x341823=_0x212e49(_0x184626[_0x500f31(0x28b)])[_0x500f31(0x28e)][_0x500f31(0x224)]()[_0x500f31(0x201)](_0x54bf4b=>_0x54bf4b['id']===_0x3128b0['id']);if(_0x341823){const _0x2961a7=_0x341823[_0x500f31(0x24c)][_0x500f31(0x222)],_0x403445=_0x341823['params'][_0x500f31(0x242)]['id'];setTimeout(()=>{const _0x5f21d2=_0x500f31;this[_0x5f21d2(0x296)][_0x5f21d2(0x283)](_0x31ae4e['id'],{'unitId':_0x2961a7,'subUnitId':_0x403445},{'fromCollab':!0x0});});}}}[_0xce0c4e(0x299)](){const _0x4fc005=_0xce0c4e;this[_0x4fc005(0x214)][_0x4fc005(0x253)](_0x4fc005(0x223));const _0x17c6bf=new Map(),_0x4218a5=this[_0x4fc005(0x228)]=new _0x321e9e();_0x4218a5[_0x4fc005(0x285)](_0x5ec987(()=>{const _0x736a9c=_0x4fc005;_0x17c6bf[_0x736a9c(0x25f)](_0x50e675=>_0x50e675['complete']()),_0x17c6bf[_0x736a9c(0x218)]();})),_0x4218a5[_0x4fc005(0x285)](this['_commandService'][_0x4fc005(0x22d)](_0x1247f5=>{const _0x3521e5=_0x4fc005;var _0x8188a2;if(_0x1247f5[_0x3521e5(0x202)]!==_0x7e8bcb[_0x3521e5(0x23d)]||!this[_0x3521e5(0x240)][_0x3521e5(0x276)](_0x1247f5['id']))return;const {id:_0x21d929}=_0x1247f5;let _0x54547c;_0x17c6bf['has'](_0x21d929)?_0x54547c=_0x17c6bf['get'](_0x21d929):(_0x54547c=new _0x23ea99(),_0x17c6bf['set'](_0x21d929,_0x54547c),_0x54547c[_0x3521e5(0x231)](_0x3198dc((_0x8188a2=this['_configService']['getConfig'](Ce))!=null?_0x8188a2:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3521e5(0x257)](_0x1bb3ad=>{const _0x16196a=_0x3521e5;this['_collabSession'][_0x16196a(0x219)]({'eventID':_0x1dbbdf[_0x16196a(0x25e)],'data':{'unitID':this[_0x16196a(0x1f9)],'operations':{[_0x1bb3ad['id']]:{'id':_0x1bb3ad['id'],'params':JSON['stringify'](_0x1bb3ad['params'])}}}},this[_0x16196a(0x1f9)]);})),_0x54547c[_0x3521e5(0x253)](_0x1247f5);})),this['_liveShareService'][_0x4fc005(0x259)](this[_0x4fc005(0x1f9)])['forEach'](_0x1a5477=>this[_0x4fc005(0x21a)][_0x4fc005(0x219)]({'eventID':_0x1dbbdf[_0x4fc005(0x25e)],'data':{'unitID':this[_0x4fc005(0x1f9)],'operations':{[_0x1a5477['id']]:{'id':_0x1a5477['id'],'params':JSON[_0x4fc005(0x234)](_0x1a5477[_0x4fc005(0x24c)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x4ca804=_0xce0c4e;var _0x3aa452;this[_0x4ca804(0x214)]['next']('idle'),(_0x3aa452=this[_0x4ca804(0x228)])==null||_0x3aa452[_0x4ca804(0x264)](),this[_0x4ca804(0x228)]=null;}[_0xce0c4e(0x250)](){const _0x256c91=_0xce0c4e;var _0x168045;(_0x168045=this[_0x256c91(0x228)])==null||_0x168045[_0x256c91(0x264)](),this[_0x256c91(0x214)][_0x256c91(0x253)](_0x256c91(0x206));}[_0xce0c4e(0x22c)](){const _0x55dd65=_0xce0c4e;var _0x1e7fd1;this[_0x55dd65(0x214)][_0x55dd65(0x253)](_0x55dd65(0x255)),(_0x1e7fd1=this[_0x55dd65(0x228)])==null||_0x1e7fd1[_0x55dd65(0x264)](),this[_0x55dd65(0x228)]=null;}[_0xce0c4e(0x230)](){const _0x4b08d4=_0xce0c4e;var _0x10ed26;this[_0x4b08d4(0x214)][_0x4b08d4(0x253)](_0x4b08d4(0x270)),(_0x10ed26=this[_0x4b08d4(0x228)])==null||_0x10ed26[_0x4b08d4(0x264)]();}[_0xce0c4e(0x25d)](_0x487a88){const _0x56b99e=_0xce0c4e;if([_0x56b99e(0x223),'not-following',_0x56b99e(0x27a)][_0x56b99e(0x286)](this[_0x56b99e(0x235)])||!_0x487a88[_0x56b99e(0x28b)][_0x56b99e(0x1f3)]||_0x487a88['data'][_0x56b99e(0x1f3)]===this[_0x56b99e(0x21a)][_0x56b99e(0x227)]())return;this[_0x56b99e(0x235)]===_0x56b99e(0x255)&&this[_0x56b99e(0x250)]();const _0x38b0ce=_0x487a88[_0x56b99e(0x28b)][_0x56b99e(0x261)];Object['values'](_0x38b0ce)[_0x56b99e(0x25f)](_0x9d02a2=>{const _0x32716d=_0x56b99e;this[_0x32716d(0x296)][_0x32716d(0x283)](_0x9d02a2['id'],_0x9d02a2[_0x32716d(0x24c)]?JSON[_0x32716d(0x27d)](_0x9d02a2[_0x32716d(0x24c)]):null,{'fromCollab':!0x0});});}[_0xce0c4e(0x263)](){const _0x31741e=_0xce0c4e;var _0x366ca6;this[_0x31741e(0x214)][_0x31741e(0x253)]('offline'),(_0x366ca6=this[_0x31741e(0x228)])==null||_0x366ca6[_0x31741e(0x264)]();}[_0xce0c4e(0x208)](){const _0x141ef4=_0xce0c4e;this[_0x141ef4(0x214)][_0x141ef4(0x253)](_0x141ef4(0x255)),this[_0x141ef4(0x275)]();}};N=Y([_(0x2,_0x34266a),_(0x3,_0x2de6b4(L)),_(0x4,_0x492717)],N);function _0x53c8(_0x1b914a,_0x237a83){_0x1b914a=_0x1b914a-0x1ee;const _0x1f6949=_0x1f69();let _0x53c8fe=_0x1f6949[_0x1b914a];return _0x53c8fe;}function _0x1f69(){const _0x3e2fd0=['stopPresenting','find','type','attrs','requireSession','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','following','complete','_handleOnline','registerComponent','Stop\x20following','delete','_startLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','You\x27re\x20not\x20following\x20the\x20presenter','mask','5044cFXqSi','string','univerjs-icon\x20univerjs-icon-','24qiAloX','_status$','assign','path','registerSharedOperation','clear','send','_collabSession','displayName','symbol','You\x27are\x20offline.','249127FSwmiI','HEADER_MENU','735015lRlZAb','status$','unitId','presenting','reverse','_stopPresenting','univer-size-4','getMemberID','_commandDisposable','get','Stop\x20presenting','_univerInstanceService','_beIdle','onCommandExecuted','init','length','_stopFollowing','pipe','2148aVGnRU','tag','stringify','_status','104172JvKqKv','set','div','0\x200\x2017\x2017','univer-mb-3\x20univer-w-full\x20univer-text-sm','unsubscribe','_uiPartsService','OPERATION','1966878BDeLDF','getStatus','_liveShareService','LIVESHARE_NEW_HOST','sheet','FOLLOWING','button','idSuffix','_mountLiveShare','LiveShareIcon','getLiveShareCoordinator','startFollowing','You\x27re\x20following\x20the\x20presenter','OFFLINE','params','_handleNewHost','11pGiyQv','currentColor','_startFollowing','_init','_entities','next','LIVESHARE_TERMINATE','idle','children','subscribe','current','getInitialStates','2DyIpIt','_collabSessionService','has','_handleOperation','LIVESHARE_OPERATION','forEach','LIVESHARE_FETCH_OPERATIONS','operations','tryStartPresenting','_handleOffline','dispose','_injector','_reporters','defs','live-share.config','map','random','url(#$1','dispose$','3yeAAqR','substring','getLiveShareCoordinatorSync','not-following','4808EMpFng','onRendered','pluginName','text','_fetchOperations','shouldShareOperation','917OFHyuO','_config','end','offline','memberID','sessionStatus$','parse','_sharedOperations','entries','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','1em','UNIVER_SHEET','executeCommand','asObservable','add','includes','PRESENTING','Start','evenodd','NOT_FOLLOWING','data','onStarting','_handleTerminate','mutations','getUnitId','svg','Start\x20following','getTypeOfUnitAdded$','defineProperty','_configService','getOwnPropertyDescriptor','_commandService','UNIVER_UNKNOWN','LIVESHARE_REQUEST_HOST','_startPresenting','stopFollowing','event$','_handleNewChangeSets','defIds','NEW_CHANGESETS','presenter','toString','colorChannel1','xlink:href','fill','_presenter','_unitID','getTypeOfUnitDisposed$','IDLE','4942090qJtcCB','UniverIcon','live-share-icon','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'];_0x1f69=function(){return _0x3e2fd0;};return _0x1f69();}function Le(){const _0x834dbc=_0xce0c4e,_0x4851cc=_0x14182f(S),_0x242046=_0x14182f(_0x5d85e7),_0x366b30=_0x55b771(()=>_0x242046['getCurrentTypeOfUnit$'](_0x324c39[_0x834dbc(0x282)]),void 0x0,!0x1,[]),[_0x358073,_0x5e9410]=_0x2b36ac(null),[_0x93b40e,_0x1d3a15]=_0x2b36ac(c['IDLE']),_0x273b6a=_0x102f92(null);return _0xcd52bb(()=>(_0x366b30&&_0x4851cc[_0x834dbc(0x248)](_0x366b30[_0x834dbc(0x28f)]())['then'](_0x5a6acf=>{const _0x3f1d68=_0x834dbc;_0x5e9410(_0x5a6acf),_0x273b6a[_0x3f1d68(0x258)]=_0x5a6acf['status$']['subscribe'](_0x2e3505=>{_0x1d3a15(_0x2e3505);});}),()=>{const _0x5aa97b=_0x834dbc;var _0x1a4438;(_0x1a4438=_0x273b6a[_0x5aa97b(0x258)])==null||_0x1a4438[_0x5aa97b(0x23b)](),_0x273b6a[_0x5aa97b(0x258)]=null;}),[_0x366b30,_0x4851cc]),_0x358073?_0x481bab(_0x42bb87,{'align':_0x834dbc(0x279),'disabled':_0x93b40e===c[_0x834dbc(0x24b)],'className':_0x834dbc(0x1ff),'overlay':_0x481bab(Re,{'status':_0x93b40e,'coordinator':_0x358073}),'children':_0x481bab(_0x834dbc(0x244),{'className':_0xfbc3dd(_0x834dbc(0x20d),{'univer-cursor-not-allowed':_0x93b40e===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x93b40e!==c[_0x834dbc(0x24b)]}),'type':_0x834dbc(0x244),'children':_0x481bab(W,{'className':_0x834dbc(0x226)})})}):null;}function Re(_0x5b806d){const _0x45e4fa=_0xce0c4e,{status:_0x9c7ef7,coordinator:_0x12245e}=_0x5b806d;switch(_0x9c7ef7){case c[_0x45e4fa(0x1fb)]:return _0x481bab($e,{'coordinator':_0x12245e});case c['FOLLOWING']:return _0x481bab(xe,{'coordinator':_0x12245e});case c[_0x45e4fa(0x28a)]:return _0x481bab(Pe,{'coordinator':_0x12245e});case c[_0x45e4fa(0x24b)]:return _0x481bab(Te,{});case c[_0x45e4fa(0x287)]:return _0x481bab(Ae,{'coordinator':_0x12245e});default:return null;}}function $e(_0x203d2b){const _0x21cbd6=_0xce0c4e,{coordinator:_0x322113}=_0x203d2b;return _0x3e4308(_0x2de7e1,{'children':[_0x481bab(_0x21cbd6(0x238),{'className':_0x21cbd6(0x23a),'children':'Present\x20this\x20document'}),_0x481bab(_0x273271,{'onClick':()=>_0x322113[_0x21cbd6(0x262)](),'children':_0x21cbd6(0x288)})]});}function xe(_0x466ff9){const _0x295820=_0xce0c4e,{coordinator:_0x32e1f8}=_0x466ff9;return _0x3e4308(_0x2de7e1,{'children':[_0x481bab(_0x295820(0x238),{'className':_0x295820(0x23a),'children':_0x295820(0x24a)}),_0x481bab(_0x273271,{'onClick':()=>_0x32e1f8[_0x295820(0x1ee)](),'children':_0x295820(0x20a)})]});}function Pe(_0x1b18cd){const _0x46bf32=_0xce0c4e,{coordinator:_0x37026b}=_0x1b18cd;return _0x3e4308(_0x2de7e1,{'children':[_0x481bab(_0x46bf32(0x238),{'className':_0x46bf32(0x23a),'children':_0x46bf32(0x20e)}),_0x481bab(_0x273271,{'variant':_0x46bf32(0x274),'onClick':()=>_0x37026b['startFollowing'](),'children':_0x46bf32(0x291)})]});}function Ae(_0x15b1e1){const _0x1ed5d0=_0xce0c4e,{coordinator:_0x552ad5}=_0x15b1e1;return _0x3e4308(_0x2de7e1,{'children':[_0x481bab(_0x1ed5d0(0x238),{'className':_0x1ed5d0(0x23a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x481bab(_0x273271,{'variant':'default','onClick':()=>_0x552ad5['stopPresenting'](),'children':_0x1ed5d0(0x22a)})]});}function Te(){const _0x23b940=_0xce0c4e;return _0x481bab(_0x2de7e1,{'children':_0x23b940(0x21d)});}var Fe=Object[_0xce0c4e(0x295)],He=(_0x61172e,_0x50f50d,_0x280557,_0x4f6339)=>{const _0x2fa336=_0xce0c4e;for(var _0x36443e=_0x4f6339>0x1?void 0x0:_0x4f6339?Fe(_0x50f50d,_0x280557):_0x50f50d,_0x3e6806=_0x61172e[_0x2fa336(0x22f)]-0x1,_0x12431d;_0x3e6806>=0x0;_0x3e6806--)(_0x12431d=_0x61172e[_0x3e6806])&&(_0x36443e=_0x12431d(_0x36443e)||_0x36443e);return _0x36443e;},A=(_0x2a0954,_0xe7d020)=>(_0x489cc4,_0x1db3bc)=>_0xe7d020(_0x489cc4,_0x1db3bc,_0x2a0954);let m=class extends _0x391c50{constructor(_0x6cdbcf,_0x312696){const _0x2736fb=_0xce0c4e;super(),this[_0x2736fb(0x265)]=_0x6cdbcf,this[_0x2736fb(0x23c)]=_0x312696,this[_0x2736fb(0x246)]();}['_mountLiveShare'](){const _0x3a3d28=_0xce0c4e;this['disposeWithMe'](this['_uiPartsService'][_0x3a3d28(0x209)](_0x7e38cc[_0x3a3d28(0x21f)],()=>_0x593ae2(Le,this[_0x3a3d28(0x265)])));}};m=He([A(0x0,_0x2de6b4(_0x173c5e)),A(0x1,_0x48a06c)],m);const ye=_0xce0c4e(0x268),T={};var Ue=Object[_0xce0c4e(0x295)],Ve=(_0x22e121,_0x2e3983,_0x4cf945,_0x3c4826)=>{const _0x4496fe=_0xce0c4e;for(var _0x15f34f=_0x3c4826>0x1?void 0x0:_0x3c4826?Ue(_0x2e3983,_0x4cf945):_0x2e3983,_0x2c5cf0=_0x22e121[_0x4496fe(0x22f)]-0x1,_0x814af5;_0x2c5cf0>=0x0;_0x2c5cf0--)(_0x814af5=_0x22e121[_0x2c5cf0])&&(_0x15f34f=_0x814af5(_0x15f34f)||_0x15f34f);return _0x15f34f;},je=(_0x50476d,_0x3a6e75)=>(_0xbe1020,_0x4055fd)=>_0x3a6e75(_0xbe1020,_0x4055fd,_0x50476d);let I=class extends _0x391c50{constructor(_0x338895){const _0x5d6169=_0xce0c4e;super(),this[_0x5d6169(0x240)]=_0x338895,this[_0x5d6169(0x251)]();}[_0xce0c4e(0x251)](){[_0x8a3ff8['id'],_0x3dbd75['id'],_0x31ae4e['id']]['forEach'](_0x8e7b5c=>{const _0x33631d=_0x53c8;this['disposeWithMe'](this[_0x33631d(0x240)]['registerSharedOperation'](_0x8e7b5c));});}};I=Ve([je(0x0,_0x2de6b4(L))],I);var Me=Object[_0xce0c4e(0x293)],ke=Object[_0xce0c4e(0x295)],Ge=(_0x142d9a,_0x1d3bee,_0x517a2d)=>_0x1d3bee in _0x142d9a?Me(_0x142d9a,_0x1d3bee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x517a2d}):_0x142d9a[_0x1d3bee]=_0x517a2d,We=(_0x5d5d52,_0x48919b,_0x49dab9,_0x380cc0)=>{for(var _0x5defb0=_0x380cc0>0x1?void 0x0:_0x380cc0?ke(_0x48919b,_0x49dab9):_0x48919b,_0x9ed4bd=_0x5d5d52['length']-0x1,_0x382a61;_0x9ed4bd>=0x0;_0x9ed4bd--)(_0x382a61=_0x5d5d52[_0x9ed4bd])&&(_0x5defb0=_0x382a61(_0x5defb0)||_0x5defb0);return _0x5defb0;},F=(_0x156e0a,_0x3e960a)=>(_0x136a24,_0xe9c535)=>_0x3e960a(_0x136a24,_0xe9c535,_0x156e0a),B=(_0xf181c4,_0x661305,_0x1ffb38)=>Ge(_0xf181c4,typeof _0x661305!=_0xce0c4e(0x21c)?_0x661305+'':_0x661305,_0x1ffb38);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x3d5c76{constructor(_0x1c0333=T,_0x379dbb,_0x18b17d){const _0x450ba2=_0xce0c4e;super(),this[_0x450ba2(0x278)]=_0x1c0333,this[_0x450ba2(0x265)]=_0x379dbb,this['_configService']=_0x18b17d;const {..._0x52f487}=_0x1325bb({},T,this[_0x450ba2(0x278)]);this[_0x450ba2(0x294)]['setConfig'](ye,_0x52f487);}[_0xce0c4e(0x28c)](){const _0x155fae=_0xce0c4e;_0x256053(this['_injector'],_0x4c1cfa([[L],[S],[I],[m]],this['_config']['override'])),_0x39d7eb(this[_0x155fae(0x265)],[[I]]);}[_0xce0c4e(0x272)](){const _0x3c2c9a=_0xce0c4e;_0x39d7eb(this[_0x3c2c9a(0x265)],[[m]]);}};B(b,_0xce0c4e(0x202),_0x324c39[_0xce0c4e(0x297)]),B(b,_0xce0c4e(0x273),Ye),b=We([_0x390b52(_0x11e9df),F(0x1,_0x2de6b4(_0x173c5e)),F(0x2,_0x34266a)],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 _0x4ada31=_0x1219;function _0x3afc(){const _0x483592=['getStatus','get','startPresenting','1145000FdJQlw','LiveShareStatusEnum','stopFollowing','getLiveShareStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_initialize','getSheetId','No\x20active\x20workbook\x20found.','4576275ABURbr','19410GxqhJh','14JzoeHx','_commandService','syncExecuteCommand','stopPresenting','2279872vveFER','671821lmxWsk','getUnitId','1002395CZlJVt','startFollowing','PRESENTING','getLiveShareCoordinatorSync','_injector','getActiveWorkbook','98VqQqLm','extend','tryStartPresenting','startColumn','706542IGKvsz','executeCommand','getId','startRow'];_0x3afc=function(){return _0x483592;};return _0x3afc();}(function(_0x6c95ab,_0x4f4094){const _0x1194df=_0x1219,_0x1bc25e=_0x6c95ab();while(!![]){try{const _0x3b47e2=parseInt(_0x1194df(0xc2))/0x1+parseInt(_0x1194df(0xca))/0x2*(-parseInt(_0x1194df(0xbc))/0x3)+-parseInt(_0x1194df(0xc1))/0x4+-parseInt(_0x1194df(0xc4))/0x5+parseInt(_0x1194df(0xce))/0x6*(parseInt(_0x1194df(0xbd))/0x7)+parseInt(_0x1194df(0xb3))/0x8+parseInt(_0x1194df(0xbb))/0x9;if(_0x3b47e2===_0x4f4094)break;else _0x1bc25e['push'](_0x1bc25e['shift']());}catch(_0x215e84){_0x1bc25e['push'](_0x1bc25e['shift']());}}}(_0x3afc,0x731a2));import{LiveShareController as _0x28eab8,LiveShareStatus as _0x5d26a9}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xfa36a4}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x1a6f79}from'@univerjs/sheets';import{SetScrollOperation as _0x4139fc}from'@univerjs/sheets-ui';import{FRange as _0xb85eba}from'@univerjs/sheets/facade';import{FUniver as _0x43c273,FEnum as _0x56543f}from'@univerjs/core/facade';class I extends _0xb85eba{[_0x4ada31(0xb8)](_0x344dde,_0x4ba0f0,_0x4624d4,_0x42401f,_0x58ffd6){const _0x189953=_0x4ada31,_0x289030=_0x344dde['get'](_0x28eab8),_0x1c5c58=_0x344dde[_0x189953(0xd3)](_0xfa36a4),_0x55d793=_0x4ba0f0[_0x189953(0xc3)](),_0x26f3b8=_0x4ba0f0['getActiveSheet'](),_0x229e7c=_0x289030['getLiveShareCoordinatorSync'](_0x55d793);(_0x229e7c==null?void 0x0:_0x229e7c[_0x189953(0xd2)]())!==_0x5d26a9[_0x189953(0xc6)]||(_0x4624d4[_0x189953(0xb9)]()!==_0x26f3b8['getSheetId']()&&this[_0x189953(0xbe)][_0x189953(0xcf)](_0x1a6f79['id'],{'unitId':_0x55d793,'subUnitId':_0x4624d4['getSheetId']()}),!_0x1c5c58['getRenderById'](_0x55d793))||_0x58ffd6[_0x189953(0xbf)](_0x4139fc['id'],{'unitId':_0x4ba0f0[_0x189953(0xc3)](),'sheetId':_0x4624d4[_0x189953(0xb9)](),'sheetViewStartRow':_0x42401f[_0x189953(0xd1)],'sheetViewStartColumn':_0x42401f[_0x189953(0xcd)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xb85eba[_0x4ada31(0xcb)](I);class m extends _0x43c273{[_0x4ada31(0xb6)](){const _0x5227b9=_0x4ada31;var _0x2627be,_0x4771f7;const _0x40e0df=this[_0x5227b9(0xc8)][_0x5227b9(0xd3)](_0x28eab8),_0xe3d4b2=(_0x2627be=this[_0x5227b9(0xc9)]())==null?void 0x0:_0x2627be[_0x5227b9(0xd0)]();if(!_0xe3d4b2)throw new Error(_0x5227b9(0xba));const _0x3cd012=_0x40e0df[_0x5227b9(0xc7)](_0xe3d4b2);return(_0x4771f7=_0x3cd012==null?void 0x0:_0x3cd012['getStatus']())!=null?_0x4771f7:_0x5d26a9['IDLE'];}[_0x4ada31(0xc5)](){const _0x4d7b5d=_0x4ada31;var _0x24a30d;const _0xc5c761=this[_0x4d7b5d(0xc8)][_0x4d7b5d(0xd3)](_0x28eab8),_0xb64ee3=(_0x24a30d=this['getActiveWorkbook']())==null?void 0x0:_0x24a30d[_0x4d7b5d(0xd0)]();if(!_0xb64ee3)throw new Error(_0x4d7b5d(0xba));const _0x315ef5=_0xc5c761[_0x4d7b5d(0xc7)](_0xb64ee3);if(!_0x315ef5)throw new Error(_0x4d7b5d(0xb7));_0x315ef5[_0x4d7b5d(0xc5)]();}[_0x4ada31(0xb5)](){const _0x4142c5=_0x4ada31;var _0x22f89e;const _0x3a3b54=this[_0x4142c5(0xc8)][_0x4142c5(0xd3)](_0x28eab8),_0x127155=(_0x22f89e=this[_0x4142c5(0xc9)]())==null?void 0x0:_0x22f89e[_0x4142c5(0xd0)]();if(!_0x127155)throw new Error(_0x4142c5(0xba));const _0x13216e=_0x3a3b54[_0x4142c5(0xc7)](_0x127155);if(!_0x13216e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x13216e[_0x4142c5(0xb5)]();}[_0x4ada31(0xb2)](){const _0x5879ed=_0x4ada31;var _0x36539c;const _0x27a92b=this[_0x5879ed(0xc8)][_0x5879ed(0xd3)](_0x28eab8),_0x3c6687=(_0x36539c=this[_0x5879ed(0xc9)]())==null?void 0x0:_0x36539c[_0x5879ed(0xd0)]();if(!_0x3c6687)throw new Error('No\x20active\x20workbook\x20found.');const _0x2a5553=_0x27a92b[_0x5879ed(0xc7)](_0x3c6687);if(!_0x2a5553)throw new Error(_0x5879ed(0xb7));_0x2a5553[_0x5879ed(0xcc)]();}[_0x4ada31(0xc0)](){const _0x2dc898=_0x4ada31;var _0x11e9e4;const _0x537a5c=this[_0x2dc898(0xc8)][_0x2dc898(0xd3)](_0x28eab8),_0x3dac93=(_0x11e9e4=this[_0x2dc898(0xc9)]())==null?void 0x0:_0x11e9e4[_0x2dc898(0xd0)]();if(!_0x3dac93)throw new Error('No\x20active\x20workbook\x20found.');const _0x1f8029=_0x537a5c[_0x2dc898(0xc7)](_0x3dac93);if(!_0x1f8029)throw new Error(_0x2dc898(0xb7));_0x1f8029[_0x2dc898(0xc0)]();}}function _0x1219(_0x57f8eb,_0x41a48d){_0x57f8eb=_0x57f8eb-0xb2;const _0x3afcc4=_0x3afc();let _0x121979=_0x3afcc4[_0x57f8eb];return _0x121979;}_0x43c273[_0x4ada31(0xcb)](m);class C extends _0x56543f{get[_0x4ada31(0xb4)](){return _0x5d26a9;}}_0x56543f[_0x4ada31(0xcb)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5c891b=_0x3f41;(function(_0x5d1051,_0xfe1fe5){const _0x1c0d34=_0x3f41,_0x307f7c=_0x5d1051();while(!![]){try{const _0x1f14fa=parseInt(_0x1c0d34(0x16d))/0x1+parseInt(_0x1c0d34(0x132))/0x2*(-parseInt(_0x1c0d34(0x16b))/0x3)+parseInt(_0x1c0d34(0x125))/0x4+parseInt(_0x1c0d34(0x11b))/0x5*(parseInt(_0x1c0d34(0xe0))/0x6)+parseInt(_0x1c0d34(0xe7))/0x7*(-parseInt(_0x1c0d34(0x11f))/0x8)+parseInt(_0x1c0d34(0xed))/0x9+-parseInt(_0x1c0d34(0xe3))/0xa;if(_0x1f14fa===_0xfe1fe5)break;else _0x307f7c['push'](_0x307f7c['shift']());}catch(_0x1259e6){_0x307f7c['push'](_0x307f7c['shift']());}}}(_0x13cf,0xc9c7a));var J=Object[_0x5c891b(0x11c)],K=(_0x3d3763,_0x361fb1,_0x386156)=>_0x361fb1 in _0x3d3763?J(_0x3d3763,_0x361fb1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x386156}):_0x3d3763[_0x361fb1]=_0x386156,u=(_0x3be939,_0x82528e,_0x2ae74c)=>K(_0x3be939,typeof _0x82528e!=_0x5c891b(0x149)?_0x82528e+'':_0x82528e,_0x2ae74c);import{Disposable as _0x431729,toDisposable as _0x2a75a6,IUniverInstanceService as _0xb62e9f,Inject as _0x5c0b1a,Injector as _0x122406,IConfigService as _0x3ef321,ICommandService as _0x113a75,RxDisposable as _0x2994f4,UniverInstanceType as _0x4e9761,DisposableCollection as _0x35b926,CommandType as _0x419595,DependentOn as _0x42d09e,Plugin as _0x3414a0,merge as _0x13e6df,registerDependencies as _0x12f174,mergeOverrideWithDependencies as _0x3ea2c1,touchDependencies as _0x299450}from'@univerjs/core';import{useDependency as _0x59cba9,useObservable as _0x172d74,IUIPartsService as _0x150b13,BuiltInUIPart as _0x348417,connectInjector as _0x6df76e}from'@univerjs/ui';import{jsx as _0x22293e,jsxs as _0xc16c99,Fragment as _0x4ad7d5}from'react/jsx-runtime';import{Dropdown as _0x55a60a,clsx as _0x391744,Button as _0x5aedf4}from'@univerjs/design';import{useRef as _0x567279,createElement as _0x21df1f,forwardRef as _0x2542a7,useState as _0x8acbe5,useEffect as _0xb9123a}from'react';import{CollaborationEvent as _0x5b0c32,parseProtocolChangeset as _0x37c054}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1ee3d1,SessionStatus as _0x4b1079,UniverCollaborationClientPlugin as _0x5c81aa}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x36d1bf,SetWorksheetActiveOperation as _0x5564c8}from'@univerjs/sheets';import{BehaviorSubject as _0x5f2c0e,Subject as _0x4d0e55}from'rxjs';import{takeUntil as _0x2a74ec,throttleTime as _0x3d3727}from'rxjs/operators';function _0x3f41(_0x379308,_0x52df29){_0x379308=_0x379308-0xda;const _0x13cf10=_0x13cf();let _0x3f41af=_0x13cf10[_0x379308];return _0x3f41af;}import{SetZoomRatioOperation as _0x10142f,SetScrollOperation as _0x57bc22}from'@univerjs/sheets-ui';function k({ref:_0x8b6fec,..._0x5a2708}){const _0x79a618=_0x5c891b,{icon:_0x10bfca,id:_0xd3c020,className:_0x219571,extend:_0x1eb486,..._0x30e0fb}=_0x5a2708,_0x45676b=('univerjs-icon\x20univerjs-icon-'+_0xd3c020+'\x20'+(_0x219571||''))[_0x79a618(0x147)](),_0x4aab8e=_0x567279('_'+Oe());return G(_0x10bfca,''+_0xd3c020,{'defIds':_0x10bfca['defIds'],'idSuffix':_0x4aab8e[_0x79a618(0xf5)]},{'ref':_0x8b6fec,'className':_0x45676b,..._0x30e0fb},_0x1eb486);}function G(_0x5e72b2,_0x3a6d66,_0xe48b7f,_0x2c8be3,_0x36a5c3){const _0xc17b58=_0x5c891b;return _0x21df1f(_0x5e72b2[_0xc17b58(0x179)],{'key':_0x3a6d66,...be(_0x5e72b2,_0xe48b7f,_0x36a5c3),..._0x2c8be3},(Ee(_0x5e72b2,_0xe48b7f)[_0xc17b58(0x102)]||[])['map']((_0x11d941,_0x31303a)=>G(_0x11d941,_0x3a6d66+'-'+_0x5e72b2[_0xc17b58(0x179)]+'-'+_0x31303a,_0xe48b7f,void 0x0,_0x36a5c3)));}function be(_0x3025f5,_0x256acf,_0x4810c5){const _0x4d9352=_0x5c891b,_0x23a1da={..._0x3025f5[_0x4d9352(0x148)]};_0x4810c5!=null&&_0x4810c5['colorChannel1']&&_0x23a1da[_0x4d9352(0x154)]==='colorChannel1'&&(_0x23a1da[_0x4d9352(0x154)]=_0x4810c5['colorChannel1']),_0x3025f5[_0x4d9352(0x179)]===_0x4d9352(0xeb)&&_0x23a1da['id']&&(_0x23a1da['id']=_0x23a1da['id']+_0x256acf[_0x4d9352(0x14d)]),Object[_0x4d9352(0xf2)](_0x23a1da)[_0x4d9352(0x128)](([_0xc2c9b7,_0x26bd69])=>{const _0x3f7b6f=_0x4d9352;_0xc2c9b7===_0x3f7b6f(0xeb)&&typeof _0x26bd69=='string'&&(_0x23a1da[_0xc2c9b7]=_0x26bd69['replace'](/url\(#(.*)\)/,_0x3f7b6f(0xf1)+_0x256acf['idSuffix']+')'));});const {defIds:_0x8ee528}=_0x256acf;return!_0x8ee528||_0x8ee528['length']===0x0||(_0x3025f5[_0x4d9352(0x179)]==='use'&&_0x23a1da[_0x4d9352(0x12d)]&&(_0x23a1da[_0x4d9352(0x12d)]=_0x23a1da[_0x4d9352(0x12d)]+_0x256acf[_0x4d9352(0x14d)]),Object['entries'](_0x23a1da)[_0x4d9352(0x128)](([_0x321e28,_0x8e1dc3])=>{const _0x279893=_0x4d9352;typeof _0x8e1dc3==_0x279893(0x126)&&(_0x23a1da[_0x321e28]=_0x8e1dc3['replace'](/url\(#(.*)\)/,_0x279893(0xf1)+_0x256acf[_0x279893(0x14d)]+')'));})),_0x23a1da;}function Ee(_0x157426,_0x4cd462){const _0x820846=_0x5c891b;var _0xabca4d;const {defIds:_0x5c5024}=_0x4cd462;return!_0x5c5024||_0x5c5024[_0x820846(0x11e)]===0x0?_0x157426:_0x157426[_0x820846(0x179)]===_0x820846(0x150)&&((_0xabca4d=_0x157426['children'])!=null&&_0xabca4d[_0x820846(0x11e)])?{..._0x157426,'children':_0x157426['children'][_0x820846(0x171)](_0x24d80a=>typeof _0x24d80a[_0x820846(0x148)]['id']==_0x820846(0x126)&&_0x5c5024&&_0x5c5024[_0x820846(0x15d)](_0x24d80a['attrs']['id'])?{..._0x24d80a,'attrs':{..._0x24d80a[_0x820846(0x148)],'id':_0x24d80a[_0x820846(0x148)]['id']+_0x4cd462[_0x820846(0x14d)]}}:_0x24d80a)}:_0x157426;}function Oe(){const _0x3b67fd=_0x5c891b;return Math[_0x3b67fd(0x114)]()[_0x3b67fd(0x10c)](0x24)[_0x3b67fd(0xdf)](0x2,0x8);}k[_0x5c891b(0x12e)]=_0x5c891b(0xec);const we={'tag':'svg','attrs':{'xmlns':_0x5c891b(0x152),'fill':'none','viewBox':_0x5c891b(0x120),'width':_0x5c891b(0x134),'height':_0x5c891b(0x134)},'children':[{'tag':'path','attrs':{'fill':_0x5c891b(0xde),'d':_0x5c891b(0xee)}},{'tag':'path','attrs':{'fill':_0x5c891b(0xde),'d':_0x5c891b(0x17c),'fillRule':_0x5c891b(0x109),'clipRule':_0x5c891b(0x109)}}]},W=_0x2542a7(function(_0x38b9c4,_0x1007a9){const _0x55d74b=_0x5c891b;return _0x21df1f(k,Object[_0x55d74b(0x14f)]({},_0x38b9c4,{'id':_0x55d74b(0x121),'ref':_0x1007a9,'icon':we}));});W[_0x5c891b(0x12e)]=_0x5c891b(0x116);class L extends _0x431729{constructor(){const _0x4ac952=_0x5c891b;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x4ac952(0xf6),new Set());}['registerSharedOperation'](_0x20ac42){const _0x5c9715=_0x5c891b;return this[_0x5c9715(0x13c)][_0x5c9715(0x139)](_0x20ac42),_0x2a75a6(()=>this[_0x5c9715(0x13c)][_0x5c9715(0x135)](_0x20ac42));}[_0x5c891b(0x168)](_0x3fc39d){const _0x4383f1=_0x5c891b;return this[_0x4383f1(0xf6)][_0x4383f1(0x139)](_0x3fc39d),_0x2a75a6(()=>this[_0x4383f1(0xf6)]['delete'](_0x3fc39d));}['shouldShareOperation'](_0x49df9e){const _0x32be29=_0x5c891b;return this[_0x32be29(0x13c)][_0x32be29(0x166)](_0x49df9e);}['getInitialStates'](_0x3f85d0){const _0x1ff91f=_0x5c891b;return Array[_0x1ff91f(0x129)](this[_0x1ff91f(0xf6)])['map'](_0x25030f=>_0x25030f(_0x3f85d0));}}var Ne=Object[_0x5c891b(0x12a)],Y=(_0x364232,_0x59ffda,_0x4bc055,_0x1453d8)=>{const _0x396d74=_0x5c891b;for(var _0x4f0f3b=_0x1453d8>0x1?void 0x0:_0x1453d8?Ne(_0x59ffda,_0x4bc055):_0x59ffda,_0x371ee7=_0x364232[_0x396d74(0x11e)]-0x1,_0x26a79e;_0x371ee7>=0x0;_0x371ee7--)(_0x26a79e=_0x364232[_0x371ee7])&&(_0x4f0f3b=_0x26a79e(_0x4f0f3b)||_0x4f0f3b);return _0x4f0f3b;},_=(_0x3eec54,_0x2989b4)=>(_0x36ecad,_0x2d3a49)=>_0x2989b4(_0x36ecad,_0x2d3a49,_0x3eec54);let S=class extends _0x2994f4{constructor(_0x10ecb8,_0x274e6b,_0x7e5ae4){const _0x1de7a9=_0x5c891b;super(),u(this,_0x1de7a9(0x16e),new Map()),(this['_univerInstanceService']=_0x10ecb8,this[_0x1de7a9(0x15f)]=_0x274e6b,this[_0x1de7a9(0x10b)]=_0x7e5ae4,this[_0x1de7a9(0x142)]());}async['getLiveShareCoordinator'](_0x50c6ea){const _0x2f5d15=_0x5c891b;return this[_0x2f5d15(0x16e)][_0x2f5d15(0x166)](_0x50c6ea)||await this[_0x2f5d15(0xff)](_0x50c6ea),this[_0x2f5d15(0x16e)]['get'](_0x50c6ea);}[_0x5c891b(0x118)](_0x48b606){const _0x57ef09=_0x5c891b;var _0x38d21e;return(_0x38d21e=this[_0x57ef09(0x16e)][_0x57ef09(0xda)](_0x48b606))!=null?_0x38d21e:null;}[_0x5c891b(0x142)](){const _0x225e30=_0x5c891b;this['_univerInstanceService'][_0x225e30(0xe9)](_0x4e9761[_0x225e30(0xdb)])['pipe'](_0x2a74ec(this[_0x225e30(0x119)]))['subscribe'](async _0x4abc25=>{const _0x52a674=_0x225e30,_0x44d1de=_0x4abc25[_0x52a674(0x155)]();this[_0x52a674(0x16e)][_0x52a674(0x166)](_0x44d1de)||this['_startLiveShareCoordinator'](_0x44d1de);}),this[_0x225e30(0x173)][_0x225e30(0x146)](_0x4e9761[_0x225e30(0xdb)])['pipe'](_0x2a74ec(this[_0x225e30(0x119)]))['subscribe'](_0xdb90e7=>{const _0x5d5158=_0x225e30,_0x1991ba=_0xdb90e7[_0x5d5158(0x155)](),_0x3d1f6b=this[_0x5d5158(0x16e)][_0x5d5158(0xda)](_0x1991ba);_0x3d1f6b==null||_0x3d1f6b[_0x5d5158(0x15c)]();});}async['_startLiveShareCoordinator'](_0x550255){const _0x3ca347=_0x5c891b,_0x3e6164=await this['_collabSessionService'][_0x3ca347(0x10a)](_0x550255),_0x428235=this[_0x3ca347(0x15f)][_0x3ca347(0x156)](N,_0x550255,_0x3e6164);return _0x428235[_0x3ca347(0x11d)](),this['_entities'][_0x3ca347(0x13e)](_0x550255,_0x428235),_0x428235;}};S=Y([_(0x0,_0xb62e9f),_(0x1,_0x5c0b1a(_0x122406)),_(0x2,_0x5c0b1a(_0x1ee3d1))],S);var c=(_0x3621f8=>(_0x3621f8['OFFLINE']=_0x5c891b(0x14a),_0x3621f8[_0x5c891b(0x127)]=_0x5c891b(0x158),_0x3621f8[_0x5c891b(0x122)]=_0x5c891b(0x160),_0x3621f8[_0x5c891b(0x13f)]=_0x5c891b(0x111),_0x3621f8[_0x5c891b(0x13a)]=_0x5c891b(0xe8),_0x3621f8))(c||{});const Ce=_0x5c891b(0x107),De=0xc8;let N=class extends _0x2994f4{constructor(_0x145cd3,_0x59756e,_0x1daa51,_0xcd7384,_0x19eb6e){const _0x56fde6=_0x5c891b;super(),u(this,_0x56fde6(0xe5),new _0x5f2c0e(_0x56fde6(0x158))),u(this,_0x56fde6(0x174),this[_0x56fde6(0xe5)][_0x56fde6(0x104)]()),u(this,_0x56fde6(0x142),!0x1),u(this,'_commandDisposable',null),u(this,_0x56fde6(0x145),null),(this[_0x56fde6(0x16f)]=_0x145cd3,this[_0x56fde6(0x117)]=_0x59756e,this[_0x56fde6(0x14b)]=_0x1daa51,this[_0x56fde6(0x143)]=_0xcd7384,this[_0x56fde6(0x11a)]=_0x19eb6e);}get[_0x5c891b(0x101)](){const _0x3f6c9d=_0x5c891b;return this[_0x3f6c9d(0xe5)][_0x3f6c9d(0x15e)]();}[_0x5c891b(0x15c)](){const _0x35cd45=_0x5c891b;var _0x2c8268;(_0x2c8268=this['_commandDisposable'])==null||_0x2c8268[_0x35cd45(0x15c)](),this[_0x35cd45(0xe5)][_0x35cd45(0xf3)]('idle'),this[_0x35cd45(0xe5)][_0x35cd45(0xfe)]();}[_0x5c891b(0x10d)](){return this['_status'];}[_0x5c891b(0x11d)](){const _0x48eb97=_0x5c891b;this[_0x48eb97(0x142)]||(this[_0x48eb97(0x142)]=!0x0,this['_collabSession']['sessionStatus$'][_0x48eb97(0x167)](_0x2a74ec(this[_0x48eb97(0x119)]))[_0x48eb97(0x140)](_0x356bdd=>{const _0x459eb7=_0x48eb97;switch(_0x356bdd){case _0x4b1079[_0x459eb7(0x165)]:this['_handleOffline']();break;case _0x4b1079[_0x459eb7(0x133)]:this['_handleOnline']();break;}}),this[_0x48eb97(0x117)]['event$']['pipe'](_0x2a74ec(this[_0x48eb97(0x119)]))[_0x48eb97(0x140)](_0x3163d5=>{const _0x9b9a40=_0x48eb97,{eventID:_0x29ffc5}=_0x3163d5;switch(_0x29ffc5){case _0x5b0c32[_0x9b9a40(0x151)]:this[_0x9b9a40(0x10e)](_0x3163d5);break;case _0x5b0c32[_0x9b9a40(0x175)]:this['_handleOperation'](_0x3163d5);break;case _0x5b0c32[_0x9b9a40(0xea)]:this[_0x9b9a40(0xfb)]();break;case _0x5b0c32['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3163d5);break;}}));}['tryStartPresenting'](){const _0x115a56=_0x5c891b;this[_0x115a56(0x117)][_0x115a56(0xfc)]({'eventID':_0x5b0c32[_0x115a56(0xdc)],'data':{'unitID':this['_unitID'],'userID':this[_0x115a56(0x117)][_0x115a56(0x13b)]()}},this[_0x115a56(0x16f)]);}[_0x5c891b(0x16a)](){const _0x3a4e92=_0x5c891b;this[_0x3a4e92(0x101)]===_0x3a4e92(0xe8)&&(this[_0x3a4e92(0xe5)][_0x3a4e92(0xf3)]('idle'),this[_0x3a4e92(0x117)][_0x3a4e92(0xfc)]({'eventID':_0x5b0c32['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3a4e92(0x16f)]}},this[_0x3a4e92(0x16f)]));}[_0x5c891b(0xe1)](){const _0xae92a2=_0x5c891b;this[_0xae92a2(0x101)]===_0xae92a2(0x111)&&(this[_0xae92a2(0xe5)][_0xae92a2(0xf3)](_0xae92a2(0x160)),this[_0xae92a2(0x12c)]());}['stopFollowing'](){const _0x2d5d90=_0x5c891b;this['_status']===_0x2d5d90(0x160)&&this[_0x2d5d90(0xe4)]();}[_0x5c891b(0x10e)](_0x433812){const _0x17e494=_0x5c891b,{presenter:_0x40ddbf}=_0x433812[_0x17e494(0x17d)],_0x242d4a=this[_0x17e494(0x117)][_0x17e494(0x13b)]();this[_0x17e494(0x145)]=_0x40ddbf,_0x40ddbf===_0x242d4a?(this[_0x17e494(0xe4)](),this[_0x17e494(0x153)]()):this[_0x17e494(0x101)]!==_0x17e494(0x111)&&(this['_stopPresenting'](),this[_0x17e494(0x12c)]());}[_0x5c891b(0x12b)](){const _0x5a4cd1=_0x5c891b,_0x18ffe8={'eventID':_0x5b0c32['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x5a4cd1(0xfc)](_0x18ffe8,this[_0x5a4cd1(0x16f)]);}[_0x5c891b(0xfb)](){const _0xe4fbcc=_0x5c891b;this[_0xe4fbcc(0x145)]=null,this[_0xe4fbcc(0x101)]!=='presenting'&&this[_0xe4fbcc(0xf4)]();}[_0x5c891b(0xfd)](_0x38a7fc){const _0xcb3dce=_0x5c891b;if(this[_0xcb3dce(0x101)]===_0xcb3dce(0x160)&&this[_0xcb3dce(0x145)]===_0x38a7fc['data'][_0xcb3dce(0x115)]){const _0x35ce9f=_0x37c054(_0x38a7fc[_0xcb3dce(0x17d)])[_0xcb3dce(0x15a)]['reverse']()['find'](_0x53fda1=>_0x53fda1['id']===_0x36d1bf['id']);if(_0x35ce9f){const _0x2b5f3b=_0x35ce9f[_0xcb3dce(0x16c)][_0xcb3dce(0x162)],_0x4213be=_0x35ce9f[_0xcb3dce(0x16c)][_0xcb3dce(0x124)]['id'];setTimeout(()=>{const _0xf3faf9=_0xcb3dce;this['_commandService'][_0xf3faf9(0x161)](_0x5564c8['id'],{'unitId':_0x2b5f3b,'subUnitId':_0x4213be},{'fromCollab':!0x0});});}}}[_0x5c891b(0x153)](){const _0x392112=_0x5c891b;this[_0x392112(0xe5)]['next'](_0x392112(0xe8));const _0x76b929=new Map(),_0x207b17=this[_0x392112(0xf9)]=new _0x35b926();_0x207b17[_0x392112(0x139)](_0x2a75a6(()=>{const _0x425e0f=_0x392112;_0x76b929[_0x425e0f(0x128)](_0x47a59a=>_0x47a59a['complete']()),_0x76b929[_0x425e0f(0x17b)]();})),_0x207b17[_0x392112(0x139)](this[_0x392112(0x11a)][_0x392112(0x14c)](_0x35a3c8=>{const _0x4b7eee=_0x392112;var _0x1de7b7;if(_0x35a3c8[_0x4b7eee(0x163)]!==_0x419595[_0x4b7eee(0x178)]||!this[_0x4b7eee(0x143)]['shouldShareOperation'](_0x35a3c8['id']))return;const {id:_0x252f25}=_0x35a3c8;let _0x2fc419;_0x76b929[_0x4b7eee(0x166)](_0x252f25)?_0x2fc419=_0x76b929[_0x4b7eee(0xda)](_0x252f25):(_0x2fc419=new _0x4d0e55(),_0x76b929[_0x4b7eee(0x13e)](_0x252f25,_0x2fc419),_0x2fc419[_0x4b7eee(0x167)](_0x3d3727((_0x1de7b7=this['_configService'][_0x4b7eee(0x15b)](Ce))!=null?_0x1de7b7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b7eee(0x140)](_0x35a763=>{const _0x2a9baa=_0x4b7eee;this[_0x2a9baa(0x117)][_0x2a9baa(0xfc)]({'eventID':_0x5b0c32[_0x2a9baa(0x175)],'data':{'unitID':this[_0x2a9baa(0x16f)],'operations':{[_0x35a763['id']]:{'id':_0x35a763['id'],'params':JSON[_0x2a9baa(0x137)](_0x35a763['params'])}}}},this['_unitID']);})),_0x2fc419['next'](_0x35a3c8);})),this[_0x392112(0x143)][_0x392112(0x103)](this['_unitID'])['forEach'](_0x151742=>this[_0x392112(0x117)][_0x392112(0xfc)]({'eventID':_0x5b0c32[_0x392112(0x175)],'data':{'unitID':this['_unitID'],'operations':{[_0x151742['id']]:{'id':_0x151742['id'],'params':JSON[_0x392112(0x137)](_0x151742['params'])}}}},this[_0x392112(0x16f)]));}[_0x5c891b(0x172)](){const _0x399bee=_0x5c891b;var _0x278625;this[_0x399bee(0xe5)][_0x399bee(0xf3)](_0x399bee(0x158)),(_0x278625=this[_0x399bee(0xf9)])==null||_0x278625[_0x399bee(0x15c)](),this[_0x399bee(0xf9)]=null;}[_0x5c891b(0x12c)](){const _0xd0efcb=_0x5c891b;var _0x512c79;(_0x512c79=this[_0xd0efcb(0xf9)])==null||_0x512c79['dispose'](),this[_0xd0efcb(0xe5)][_0xd0efcb(0xf3)](_0xd0efcb(0x160));}[_0x5c891b(0xf4)](){const _0x3b9709=_0x5c891b;var _0xe1931b;this[_0x3b9709(0xe5)][_0x3b9709(0xf3)](_0x3b9709(0x158)),(_0xe1931b=this[_0x3b9709(0xf9)])==null||_0xe1931b[_0x3b9709(0x15c)](),this['_commandDisposable']=null;}[_0x5c891b(0xe4)](){const _0x2b35fc=_0x5c891b;var _0x88a924;this[_0x2b35fc(0xe5)][_0x2b35fc(0xf3)]('not-following'),(_0x88a924=this[_0x2b35fc(0xf9)])==null||_0x88a924[_0x2b35fc(0x15c)]();}[_0x5c891b(0xf7)](_0x537ffc){const _0x5a41e4=_0x5c891b;if(['presenting','not-following','offline'][_0x5a41e4(0x15d)](this[_0x5a41e4(0x101)])||!_0x537ffc[_0x5a41e4(0x17d)]['presenter']||_0x537ffc[_0x5a41e4(0x17d)][_0x5a41e4(0x157)]===this[_0x5a41e4(0x117)][_0x5a41e4(0x13b)]())return;this[_0x5a41e4(0x101)]===_0x5a41e4(0x158)&&this[_0x5a41e4(0x12c)]();const _0x358c8d=_0x537ffc[_0x5a41e4(0x17d)]['operations'];Object[_0x5a41e4(0xef)](_0x358c8d)['forEach'](_0x4b87d3=>{const _0x546da0=_0x5a41e4;this[_0x546da0(0x11a)][_0x546da0(0x161)](_0x4b87d3['id'],_0x4b87d3['params']?JSON[_0x546da0(0x164)](_0x4b87d3[_0x546da0(0x16c)]):null,{'fromCollab':!0x0});});}[_0x5c891b(0x112)](){const _0x7712fe=_0x5c891b;var _0x5e6997;this['_status$'][_0x7712fe(0xf3)](_0x7712fe(0x14a)),(_0x5e6997=this['_commandDisposable'])==null||_0x5e6997[_0x7712fe(0x15c)]();}[_0x5c891b(0x110)](){const _0x24ed7c=_0x5c891b;this[_0x24ed7c(0xe5)][_0x24ed7c(0xf3)]('idle'),this[_0x24ed7c(0x12b)]();}};N=Y([_(0x2,_0x3ef321),_(0x3,_0x5c0b1a(L)),_(0x4,_0x113a75)],N);function Le(){const _0x2e8662=_0x5c891b,_0x46846f=_0x59cba9(S),_0x29bfb9=_0x59cba9(_0xb62e9f),_0xb80694=_0x172d74(()=>_0x29bfb9[_0x2e8662(0x130)](_0x4e9761[_0x2e8662(0xdb)]),void 0x0,!0x1,[]),[_0x107360,_0x17d935]=_0x8acbe5(null),[_0x11ea72,_0x5b4511]=_0x8acbe5(c[_0x2e8662(0x127)]),_0x57db96=_0x567279(null);return _0xb9123a(()=>(_0xb80694&&_0x46846f[_0x2e8662(0x159)](_0xb80694[_0x2e8662(0x155)]())[_0x2e8662(0x144)](_0x27adf9=>{const _0x25b66e=_0x2e8662;_0x17d935(_0x27adf9),_0x57db96[_0x25b66e(0xf5)]=_0x27adf9[_0x25b66e(0x174)][_0x25b66e(0x140)](_0x299c41=>{_0x5b4511(_0x299c41);});}),()=>{const _0x370c58=_0x2e8662;var _0x41841c;(_0x41841c=_0x57db96[_0x370c58(0xf5)])==null||_0x41841c[_0x370c58(0x136)](),_0x57db96['current']=null;}),[_0xb80694,_0x46846f]),_0x107360?_0x22293e(_0x55a60a,{'align':'end','disabled':_0x11ea72===c[_0x2e8662(0x165)],'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':_0x22293e(Re,{'status':_0x11ea72,'coordinator':_0x107360}),'children':_0x22293e(_0x2e8662(0x12f),{'className':_0x391744(_0x2e8662(0x177),{'univer-cursor-not-allowed':_0x11ea72===c[_0x2e8662(0x165)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11ea72!==c['OFFLINE']}),'type':_0x2e8662(0x12f),'children':_0x22293e(W,{'className':'univer-size-4'})})}):null;}function Re(_0xebe6b7){const _0x59a0ca=_0x5c891b,{status:_0x4adc9d,coordinator:_0x30e75e}=_0xebe6b7;switch(_0x4adc9d){case c['IDLE']:return _0x22293e($e,{'coordinator':_0x30e75e});case c[_0x59a0ca(0x122)]:return _0x22293e(xe,{'coordinator':_0x30e75e});case c['NOT_FOLLOWING']:return _0x22293e(Pe,{'coordinator':_0x30e75e});case c['OFFLINE']:return _0x22293e(Te,{});case c['PRESENTING']:return _0x22293e(Ae,{'coordinator':_0x30e75e});default:return null;}}function $e(_0x2c1586){const _0x311269=_0x5c891b,{coordinator:_0x326fa0}=_0x2c1586;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e(_0x311269(0x108),{'className':_0x311269(0xe6),'children':_0x311269(0x138)}),_0x22293e(_0x5aedf4,{'onClick':()=>_0x326fa0['tryStartPresenting'](),'children':_0x311269(0x13d)})]});}function xe(_0x2b5d49){const _0x397ca3=_0x5c891b,{coordinator:_0x3eaa1b}=_0x2b5d49;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e(_0x397ca3(0x108),{'className':_0x397ca3(0xe6),'children':_0x397ca3(0x123)}),_0x22293e(_0x5aedf4,{'onClick':()=>_0x3eaa1b['stopFollowing'](),'children':_0x397ca3(0x170)})]});}function Pe(_0x6ace70){const _0x2b278a=_0x5c891b,{coordinator:_0x5aeaf1}=_0x6ace70;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e('div',{'className':_0x2b278a(0xe6),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x22293e(_0x5aedf4,{'variant':_0x2b278a(0x100),'onClick':()=>_0x5aeaf1[_0x2b278a(0xe1)](),'children':_0x2b278a(0x141)})]});}function Ae(_0x3c7a47){const _0x2aabc7=_0x5c891b,{coordinator:_0x393d4d}=_0x3c7a47;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x22293e(_0x5aedf4,{'variant':_0x2aabc7(0xf0),'onClick':()=>_0x393d4d[_0x2aabc7(0x16a)](),'children':_0x2aabc7(0x17a)})]});}function Te(){return _0x22293e(_0x4ad7d5,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x5c891b(0x12a)],He=(_0xe70890,_0x1b3670,_0x59da49,_0x179e3e)=>{for(var _0x240718=_0x179e3e>0x1?void 0x0:_0x179e3e?Fe(_0x1b3670,_0x59da49):_0x1b3670,_0x7cdc85=_0xe70890['length']-0x1,_0x2723ac;_0x7cdc85>=0x0;_0x7cdc85--)(_0x2723ac=_0xe70890[_0x7cdc85])&&(_0x240718=_0x2723ac(_0x240718)||_0x240718);return _0x240718;},A=(_0x38e13f,_0x3bff8e)=>(_0x2e8fc0,_0x53adac)=>_0x3bff8e(_0x2e8fc0,_0x53adac,_0x38e13f);let m=class extends _0x431729{constructor(_0xd2e111,_0x308dba){const _0x4e99bd=_0x5c891b;super(),this[_0x4e99bd(0x15f)]=_0xd2e111,this[_0x4e99bd(0x176)]=_0x308dba,this[_0x4e99bd(0x131)]();}[_0x5c891b(0x131)](){const _0x2574bc=_0x5c891b;this[_0x2574bc(0xe2)](this['_uiPartsService']['registerComponent'](_0x348417[_0x2574bc(0x10f)],()=>_0x6df76e(Le,this[_0x2574bc(0x15f)])));}};m=He([A(0x0,_0x5c0b1a(_0x122406)),A(0x1,_0x150b13)],m);const ye=_0x5c891b(0x169),T={};var Ue=Object[_0x5c891b(0x12a)],Ve=(_0xc6d32e,_0x4f3166,_0x433df3,_0x349a72)=>{const _0x1c69eb=_0x5c891b;for(var _0x4fbdc7=_0x349a72>0x1?void 0x0:_0x349a72?Ue(_0x4f3166,_0x433df3):_0x4f3166,_0x1781d9=_0xc6d32e[_0x1c69eb(0x11e)]-0x1,_0x1c4824;_0x1781d9>=0x0;_0x1781d9--)(_0x1c4824=_0xc6d32e[_0x1781d9])&&(_0x4fbdc7=_0x1c4824(_0x4fbdc7)||_0x4fbdc7);return _0x4fbdc7;},je=(_0x529ed1,_0x185e52)=>(_0x46e878,_0x32c45e)=>_0x185e52(_0x46e878,_0x32c45e,_0x529ed1);function _0x13cf(){const _0x481ce6=['LIVESHARE_NEW_HOST','http://www.w3.org/2000/svg','_startPresenting','fill','getUnitId','createInstance','presenter','idle','getLiveShareCoordinator','mutations','getConfig','dispose','includes','getValue','_injector','following','executeCommand','unitId','type','parse','OFFLINE','has','pipe','registerInitialStateReporter','live-share.config','stopPresenting','722994BLrhHq','params','1523720ADbKLF','_entities','_unitID','Stop\x20following','map','_stopPresenting','_univerInstanceService','status$','LIVESHARE_OPERATION','_uiPartsService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','tag','Stop\x20presenting','clear','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','data','get','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','onRendered','currentColor','substring','5046CHcPnD','startFollowing','disposeWithMe','16412740CkJGqN','_stopFollowing','_status$','univer-mb-3\x20univer-w-full\x20univer-text-sm','2831227ugnzHi','presenting','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','mask','UniverIcon','4965129REChjX','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','values','default','url(#$1','entries','next','_beIdle','current','_reporters','_handleOperation','UNIVER_UNKNOWN','_commandDisposable','_config','_handleTerminate','send','_handleNewChangeSets','complete','_startLiveShareCoordinator','text','_status','children','getInitialStates','asObservable','pluginName','override','SAME_OPERATION_SHARE_INTERVAL','div','evenodd','requireSession','_collabSessionService','toString','getStatus','_handleNewHost','HEADER_MENU','_handleOnline','not-following','_handleOffline','registerSharedOperation','random','memberID','LiveShareIcon','_collabSession','getLiveShareCoordinatorSync','dispose$','_commandService','4985NQHVnM','defineProperty','init','length','16iaKIew','0\x200\x2017\x2017','live-share-icon','FOLLOWING','You\x27re\x20following\x20the\x20presenter','sheet','4343208HekjOn','string','IDLE','forEach','from','getOwnPropertyDescriptor','_fetchOperations','_startFollowing','xlink:href','displayName','button','getCurrentTypeOfUnit$','_mountLiveShare','6NMAWMA','ONLINE','1em','delete','unsubscribe','stringify','Present\x20this\x20document','add','PRESENTING','getMemberID','_sharedOperations','Start','set','NOT_FOLLOWING','subscribe','Start\x20following','_init','_liveShareService','then','_presenter','getTypeOfUnitDisposed$','trim','attrs','symbol','offline','_configService','onCommandExecuted','idSuffix','UNIVER_LIVE_SHARE_PLUGIN','assign','defs'];_0x13cf=function(){return _0x481ce6;};return _0x13cf();}let I=class extends _0x431729{constructor(_0xbe3fa){const _0x3c9f89=_0x5c891b;super(),this[_0x3c9f89(0x143)]=_0xbe3fa,this[_0x3c9f89(0x142)]();}['_init'](){[_0x10142f['id'],_0x57bc22['id'],_0x5564c8['id']]['forEach'](_0x3ce2d9=>{const _0x1b1c6f=_0x3f41;this[_0x1b1c6f(0xe2)](this['_liveShareService'][_0x1b1c6f(0x113)](_0x3ce2d9));});}};I=Ve([je(0x0,_0x5c0b1a(L))],I);var Me=Object[_0x5c891b(0x11c)],ke=Object[_0x5c891b(0x12a)],Ge=(_0x5d2e44,_0x275dde,_0x2f2818)=>_0x275dde in _0x5d2e44?Me(_0x5d2e44,_0x275dde,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f2818}):_0x5d2e44[_0x275dde]=_0x2f2818,We=(_0x2dfcb7,_0x454f5a,_0x2e9536,_0x3d1ffe)=>{const _0x2b6635=_0x5c891b;for(var _0x35aaa5=_0x3d1ffe>0x1?void 0x0:_0x3d1ffe?ke(_0x454f5a,_0x2e9536):_0x454f5a,_0x1f534c=_0x2dfcb7[_0x2b6635(0x11e)]-0x1,_0x49886c;_0x1f534c>=0x0;_0x1f534c--)(_0x49886c=_0x2dfcb7[_0x1f534c])&&(_0x35aaa5=_0x49886c(_0x35aaa5)||_0x35aaa5);return _0x35aaa5;},F=(_0x3c9d73,_0x483a82)=>(_0x2ff063,_0x1d551f)=>_0x483a82(_0x2ff063,_0x1d551f,_0x3c9d73),B=(_0x85ab9b,_0x27f8db,_0x157175)=>Ge(_0x85ab9b,typeof _0x27f8db!='symbol'?_0x27f8db+'':_0x27f8db,_0x157175);const Ye=_0x5c891b(0x14e);let b=class extends _0x3414a0{constructor(_0x4ee1fe=T,_0x3869cf,_0x1432a1){const _0x1f5ce2=_0x5c891b;super(),this[_0x1f5ce2(0xfa)]=_0x4ee1fe,this['_injector']=_0x3869cf,this[_0x1f5ce2(0x14b)]=_0x1432a1;const {..._0x2fd983}=_0x13e6df({},T,this[_0x1f5ce2(0xfa)]);this['_configService']['setConfig'](ye,_0x2fd983);}['onStarting'](){const _0x4b77d5=_0x5c891b;_0x12f174(this[_0x4b77d5(0x15f)],_0x3ea2c1([[L],[S],[I],[m]],this[_0x4b77d5(0xfa)][_0x4b77d5(0x106)])),_0x299450(this[_0x4b77d5(0x15f)],[[I]]);}[_0x5c891b(0xdd)](){const _0x58e9f7=_0x5c891b;_0x299450(this[_0x58e9f7(0x15f)],[[m]]);}};B(b,_0x5c891b(0x163),_0x4e9761[_0x5c891b(0xf8)]),B(b,_0x5c891b(0x105),Ye),b=We([_0x42d09e(_0x5c81aa),F(0x1,_0x5c0b1a(_0x122406)),F(0x2,_0x3ef321)],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 _0xce0c4e=_0x53c8;(function(_0xe945e9,_0x5846b5){const _0x1571b1=_0x53c8,_0x4b6916=_0xe945e9();while(!![]){try{const _0x3c7bcf=parseInt(_0x1571b1(0x21e))/0x1*(parseInt(_0x1571b1(0x25a))/0x2)+-parseInt(_0x1571b1(0x26d))/0x3*(-parseInt(_0x1571b1(0x236))/0x4)+-parseInt(_0x1571b1(0x220))/0x5*(-parseInt(_0x1571b1(0x213))/0x6)+parseInt(_0x1571b1(0x277))/0x7*(parseInt(_0x1571b1(0x271))/0x8)+-parseInt(_0x1571b1(0x23e))/0x9+parseInt(_0x1571b1(0x1fc))/0xa*(-parseInt(_0x1571b1(0x24e))/0xb)+parseInt(_0x1571b1(0x232))/0xc*(parseInt(_0x1571b1(0x210))/0xd);if(_0x3c7bcf===_0x5846b5)break;else _0x4b6916['push'](_0x4b6916['shift']());}catch(_0xc22004){_0x4b6916['push'](_0x4b6916['shift']());}}}(_0x1f69,0x48e76));var J=Object[_0xce0c4e(0x293)],K=(_0x40f9bc,_0x48cba5,_0x199f22)=>_0x48cba5 in _0x40f9bc?J(_0x40f9bc,_0x48cba5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x199f22}):_0x40f9bc[_0x48cba5]=_0x199f22,u=(_0x6a6a02,_0x14be30,_0x325189)=>K(_0x6a6a02,typeof _0x14be30!=_0xce0c4e(0x21c)?_0x14be30+'':_0x14be30,_0x325189);import{Disposable as _0x391c50,toDisposable as _0x5ec987,IUniverInstanceService as _0x5d85e7,Inject as _0x2de6b4,Injector as _0x173c5e,IConfigService as _0x34266a,ICommandService as _0x492717,RxDisposable as _0x40c917,UniverInstanceType as _0x324c39,DisposableCollection as _0x321e9e,CommandType as _0x7e8bcb,DependentOn as _0x390b52,Plugin as _0x3d5c76,merge as _0x1325bb,registerDependencies as _0x256053,mergeOverrideWithDependencies as _0x4c1cfa,touchDependencies as _0x39d7eb}from'@univerjs/core';import{useDependency as _0x14182f,useObservable as _0x55b771,IUIPartsService as _0x48a06c,BuiltInUIPart as _0x7e38cc,connectInjector as _0x593ae2}from'@univerjs/ui';import{jsx as _0x481bab,jsxs as _0x3e4308,Fragment as _0x2de7e1}from'react/jsx-runtime';import{Dropdown as _0x42bb87,clsx as _0xfbc3dd,Button as _0x273271}from'@univerjs/design';import{useRef as _0x102f92,createElement as _0x8d6eeb,forwardRef as _0x435347,useState as _0x2b36ac,useEffect as _0xcd52bb}from'react';import{CollaborationEvent as _0x1dbbdf,parseProtocolChangeset as _0x212e49}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5f546f,SessionStatus as _0x4ce167,UniverCollaborationClientPlugin as _0x11e9df}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3128b0,SetWorksheetActiveOperation as _0x31ae4e}from'@univerjs/sheets';import{BehaviorSubject as _0x1067bc,Subject as _0x23ea99}from'rxjs';import{takeUntil as _0x35683e,throttleTime as _0x3198dc}from'rxjs/operators';import{SetZoomRatioOperation as _0x8a3ff8,SetScrollOperation as _0x3dbd75}from'@univerjs/sheets-ui';function k({ref:_0x436ded,..._0x52490d}){const _0x208345=_0xce0c4e,{icon:_0x1e4f7b,id:_0x5ae976,className:_0x54e6ec,extend:_0x3562b3,..._0x41f5c2}=_0x52490d,_0x57da8b=(_0x208345(0x212)+_0x5ae976+'\x20'+(_0x54e6ec||''))['trim'](),_0x21ebea=_0x102f92('_'+Oe());return G(_0x1e4f7b,''+_0x5ae976,{'defIds':_0x1e4f7b[_0x208345(0x1f1)],'idSuffix':_0x21ebea[_0x208345(0x258)]},{'ref':_0x436ded,'className':_0x57da8b,..._0x41f5c2},_0x3562b3);}function G(_0x43b6b6,_0x1b7e63,_0x1e6617,_0x197ffe,_0x3360e4){const _0x4b6cfb=_0xce0c4e;return _0x8d6eeb(_0x43b6b6[_0x4b6cfb(0x233)],{'key':_0x1b7e63,...be(_0x43b6b6,_0x1e6617,_0x3360e4),..._0x197ffe},(Ee(_0x43b6b6,_0x1e6617)['children']||[])[_0x4b6cfb(0x269)]((_0x53d93b,_0x1c370b)=>G(_0x53d93b,_0x1b7e63+'-'+_0x43b6b6[_0x4b6cfb(0x233)]+'-'+_0x1c370b,_0x1e6617,void 0x0,_0x3360e4)));}function be(_0x4f1854,_0x589f60,_0x301dbe){const _0x5ae272=_0xce0c4e,_0x595744={..._0x4f1854[_0x5ae272(0x203)]};_0x301dbe!=null&&_0x301dbe[_0x5ae272(0x1f5)]&&_0x595744[_0x5ae272(0x1f7)]==='colorChannel1'&&(_0x595744[_0x5ae272(0x1f7)]=_0x301dbe[_0x5ae272(0x1f5)]),_0x4f1854[_0x5ae272(0x233)]==='mask'&&_0x595744['id']&&(_0x595744['id']=_0x595744['id']+_0x589f60[_0x5ae272(0x245)]),Object['entries'](_0x595744)[_0x5ae272(0x25f)](([_0xaee3b6,_0x48844f])=>{const _0x2287d3=_0x5ae272;_0xaee3b6===_0x2287d3(0x20f)&&typeof _0x48844f==_0x2287d3(0x211)&&(_0x595744[_0xaee3b6]=_0x48844f['replace'](/url\(#(.*)\)/,_0x2287d3(0x26b)+_0x589f60[_0x2287d3(0x245)]+')'));});const {defIds:_0x20aad5}=_0x589f60;return!_0x20aad5||_0x20aad5[_0x5ae272(0x22f)]===0x0||(_0x4f1854[_0x5ae272(0x233)]==='use'&&_0x595744[_0x5ae272(0x1f6)]&&(_0x595744[_0x5ae272(0x1f6)]=_0x595744[_0x5ae272(0x1f6)]+_0x589f60[_0x5ae272(0x245)]),Object[_0x5ae272(0x27f)](_0x595744)[_0x5ae272(0x25f)](([_0x4feddd,_0x40d1fa])=>{const _0x1f2e2f=_0x5ae272;typeof _0x40d1fa==_0x1f2e2f(0x211)&&(_0x595744[_0x4feddd]=_0x40d1fa['replace'](/url\(#(.*)\)/,_0x1f2e2f(0x26b)+_0x589f60[_0x1f2e2f(0x245)]+')'));})),_0x595744;}function Ee(_0x51048f,_0x5ea9a5){const _0x46795e=_0xce0c4e;var _0x169604;const {defIds:_0x5e82aa}=_0x5ea9a5;return!_0x5e82aa||_0x5e82aa[_0x46795e(0x22f)]===0x0?_0x51048f:_0x51048f[_0x46795e(0x233)]===_0x46795e(0x267)&&((_0x169604=_0x51048f[_0x46795e(0x256)])!=null&&_0x169604[_0x46795e(0x22f)])?{..._0x51048f,'children':_0x51048f[_0x46795e(0x256)]['map'](_0x425a7f=>typeof _0x425a7f[_0x46795e(0x203)]['id']==_0x46795e(0x211)&&_0x5e82aa&&_0x5e82aa[_0x46795e(0x286)](_0x425a7f[_0x46795e(0x203)]['id'])?{..._0x425a7f,'attrs':{..._0x425a7f[_0x46795e(0x203)],'id':_0x425a7f[_0x46795e(0x203)]['id']+_0x5ea9a5[_0x46795e(0x245)]}}:_0x425a7f)}:_0x51048f;}function Oe(){const _0x2bca86=_0xce0c4e;return Math[_0x2bca86(0x26a)]()[_0x2bca86(0x1f4)](0x24)[_0x2bca86(0x26e)](0x2,0x8);}k['displayName']=_0xce0c4e(0x1fd);const we={'tag':_0xce0c4e(0x290),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xce0c4e(0x239),'width':_0xce0c4e(0x281),'height':_0xce0c4e(0x281)},'children':[{'tag':_0xce0c4e(0x216),'attrs':{'fill':'currentColor','d':_0xce0c4e(0x205)}},{'tag':_0xce0c4e(0x216),'attrs':{'fill':_0xce0c4e(0x24f),'d':_0xce0c4e(0x280),'fillRule':_0xce0c4e(0x289),'clipRule':_0xce0c4e(0x289)}}]},W=_0x435347(function(_0x5b9697,_0x2d0f81){const _0x54a022=_0xce0c4e;return _0x8d6eeb(k,Object[_0x54a022(0x215)]({},_0x5b9697,{'id':_0x54a022(0x1fe),'ref':_0x2d0f81,'icon':we}));});W[_0xce0c4e(0x21b)]=_0xce0c4e(0x247);class L extends _0x391c50{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0xce0c4e(0x217)](_0x35addc){const _0x44ba50=_0xce0c4e;return this[_0x44ba50(0x27e)][_0x44ba50(0x285)](_0x35addc),_0x5ec987(()=>this[_0x44ba50(0x27e)][_0x44ba50(0x20b)](_0x35addc));}['registerInitialStateReporter'](_0x3f82e2){const _0x2b95e1=_0xce0c4e;return this['_reporters'][_0x2b95e1(0x285)](_0x3f82e2),_0x5ec987(()=>this['_reporters'][_0x2b95e1(0x20b)](_0x3f82e2));}['shouldShareOperation'](_0x1ca1d6){const _0x3ec09f=_0xce0c4e;return this[_0x3ec09f(0x27e)]['has'](_0x1ca1d6);}[_0xce0c4e(0x259)](_0x49e45e){const _0x333491=_0xce0c4e;return Array['from'](this[_0x333491(0x266)])[_0x333491(0x269)](_0x293b6d=>_0x293b6d(_0x49e45e));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x22614b,_0x29a179,_0x5f4f45,_0x5031aa)=>{const _0x4f68b0=_0xce0c4e;for(var _0x2cb755=_0x5031aa>0x1?void 0x0:_0x5031aa?Ne(_0x29a179,_0x5f4f45):_0x29a179,_0xfe0e80=_0x22614b[_0x4f68b0(0x22f)]-0x1,_0x40abe9;_0xfe0e80>=0x0;_0xfe0e80--)(_0x40abe9=_0x22614b[_0xfe0e80])&&(_0x2cb755=_0x40abe9(_0x2cb755)||_0x2cb755);return _0x2cb755;},_=(_0x25297a,_0x53b15f)=>(_0x43aafc,_0x8f1802)=>_0x53b15f(_0x43aafc,_0x8f1802,_0x25297a);let S=class extends _0x40c917{constructor(_0x1e6ffa,_0x4898d9,_0x478819){const _0x46b185=_0xce0c4e;super(),u(this,'_entities',new Map()),(this[_0x46b185(0x22b)]=_0x1e6ffa,this[_0x46b185(0x265)]=_0x4898d9,this[_0x46b185(0x25b)]=_0x478819,this[_0x46b185(0x251)]());}async[_0xce0c4e(0x248)](_0x5ecb6e){const _0x4609f8=_0xce0c4e;return this[_0x4609f8(0x252)][_0x4609f8(0x25c)](_0x5ecb6e)||await this[_0x4609f8(0x20c)](_0x5ecb6e),this['_entities']['get'](_0x5ecb6e);}[_0xce0c4e(0x26f)](_0x3a924c){const _0x379183=_0xce0c4e;var _0xe039cb;return(_0xe039cb=this['_entities'][_0x379183(0x229)](_0x3a924c))!=null?_0xe039cb:null;}[_0xce0c4e(0x251)](){const _0x4e9e79=_0xce0c4e;this[_0x4e9e79(0x22b)][_0x4e9e79(0x292)](_0x324c39[_0x4e9e79(0x282)])[_0x4e9e79(0x231)](_0x35683e(this['dispose$']))[_0x4e9e79(0x257)](async _0x41b75f=>{const _0x44c076=_0x4e9e79,_0x46fd50=_0x41b75f[_0x44c076(0x28f)]();this['_entities'][_0x44c076(0x25c)](_0x46fd50)||this['_startLiveShareCoordinator'](_0x46fd50);}),this['_univerInstanceService'][_0x4e9e79(0x1fa)](_0x324c39[_0x4e9e79(0x282)])[_0x4e9e79(0x231)](_0x35683e(this['dispose$']))[_0x4e9e79(0x257)](_0x1e5e41=>{const _0x3d2d42=_0x4e9e79,_0x35d6b9=_0x1e5e41['getUnitId'](),_0x288be8=this[_0x3d2d42(0x252)][_0x3d2d42(0x229)](_0x35d6b9);_0x288be8==null||_0x288be8[_0x3d2d42(0x264)]();});}async[_0xce0c4e(0x20c)](_0x3fafbb){const _0x49a410=_0xce0c4e,_0x1b9cfa=await this[_0x49a410(0x25b)][_0x49a410(0x204)](_0x3fafbb),_0xa9cfe5=this['_injector']['createInstance'](N,_0x3fafbb,_0x1b9cfa);return _0xa9cfe5[_0x49a410(0x22e)](),this[_0x49a410(0x252)][_0x49a410(0x237)](_0x3fafbb,_0xa9cfe5),_0xa9cfe5;}};S=Y([_(0x0,_0x5d85e7),_(0x1,_0x2de6b4(_0x173c5e)),_(0x2,_0x2de6b4(_0x5f546f))],S);var c=(_0x4db93e=>(_0x4db93e[_0xce0c4e(0x24b)]=_0xce0c4e(0x27a),_0x4db93e[_0xce0c4e(0x1fb)]='idle',_0x4db93e[_0xce0c4e(0x243)]=_0xce0c4e(0x206),_0x4db93e[_0xce0c4e(0x28a)]=_0xce0c4e(0x270),_0x4db93e[_0xce0c4e(0x287)]=_0xce0c4e(0x223),_0x4db93e))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x40c917{constructor(_0x2a6d5a,_0x562900,_0x3b1705,_0x52bdd,_0x3eb702){const _0x257eb4=_0xce0c4e;super(),u(this,'_status$',new _0x1067bc(_0x257eb4(0x255))),u(this,_0x257eb4(0x221),this[_0x257eb4(0x214)][_0x257eb4(0x284)]()),u(this,_0x257eb4(0x251),!0x1),u(this,_0x257eb4(0x228),null),u(this,_0x257eb4(0x1f8),null),(this[_0x257eb4(0x1f9)]=_0x2a6d5a,this[_0x257eb4(0x21a)]=_0x562900,this[_0x257eb4(0x294)]=_0x3b1705,this[_0x257eb4(0x240)]=_0x52bdd,this[_0x257eb4(0x296)]=_0x3eb702);}get[_0xce0c4e(0x235)](){const _0x4f205e=_0xce0c4e;return this[_0x4f205e(0x214)]['getValue']();}[_0xce0c4e(0x264)](){const _0x990a07=_0xce0c4e;var _0x342f14;(_0x342f14=this[_0x990a07(0x228)])==null||_0x342f14['dispose'](),this[_0x990a07(0x214)][_0x990a07(0x253)]('idle'),this[_0x990a07(0x214)][_0x990a07(0x207)]();}[_0xce0c4e(0x23f)](){return this['_status'];}[_0xce0c4e(0x22e)](){const _0x2ce3c1=_0xce0c4e;this[_0x2ce3c1(0x251)]||(this[_0x2ce3c1(0x251)]=!0x0,this[_0x2ce3c1(0x21a)][_0x2ce3c1(0x27c)][_0x2ce3c1(0x231)](_0x35683e(this[_0x2ce3c1(0x26c)]))['subscribe'](_0xa9bbbc=>{const _0x1b3b2c=_0x2ce3c1;switch(_0xa9bbbc){case _0x4ce167['OFFLINE']:this[_0x1b3b2c(0x263)]();break;case _0x4ce167['ONLINE']:this['_handleOnline']();break;}}),this['_collabSession'][_0x2ce3c1(0x1ef)][_0x2ce3c1(0x231)](_0x35683e(this['dispose$']))[_0x2ce3c1(0x257)](_0x2625d5=>{const _0x6926e0=_0x2ce3c1,{eventID:_0x12bc56}=_0x2625d5;switch(_0x12bc56){case _0x1dbbdf[_0x6926e0(0x241)]:this[_0x6926e0(0x24d)](_0x2625d5);break;case _0x1dbbdf['LIVESHARE_OPERATION']:this['_handleOperation'](_0x2625d5);break;case _0x1dbbdf['LIVESHARE_TERMINATE']:this[_0x6926e0(0x28d)]();break;case _0x1dbbdf[_0x6926e0(0x1f2)]:this[_0x6926e0(0x1f0)](_0x2625d5);break;}}));}[_0xce0c4e(0x262)](){const _0x4c045a=_0xce0c4e;this[_0x4c045a(0x21a)]['send']({'eventID':_0x1dbbdf[_0x4c045a(0x298)],'data':{'unitID':this[_0x4c045a(0x1f9)],'userID':this[_0x4c045a(0x21a)][_0x4c045a(0x227)]()}},this[_0x4c045a(0x1f9)]);}[_0xce0c4e(0x200)](){const _0xeeff73=_0xce0c4e;this['_status']===_0xeeff73(0x223)&&(this[_0xeeff73(0x214)]['next'](_0xeeff73(0x255)),this[_0xeeff73(0x21a)][_0xeeff73(0x219)]({'eventID':_0x1dbbdf[_0xeeff73(0x254)],'data':{'unitID':this['_unitID']}},this[_0xeeff73(0x1f9)]));}[_0xce0c4e(0x249)](){const _0x3b3f07=_0xce0c4e;this[_0x3b3f07(0x235)]===_0x3b3f07(0x270)&&(this['_status$'][_0x3b3f07(0x253)](_0x3b3f07(0x206)),this[_0x3b3f07(0x250)]());}[_0xce0c4e(0x1ee)](){const _0x421191=_0xce0c4e;this[_0x421191(0x235)]==='following'&&this[_0x421191(0x230)]();}[_0xce0c4e(0x24d)](_0x5950f4){const _0x44a3c5=_0xce0c4e,{presenter:_0x4e893b}=_0x5950f4[_0x44a3c5(0x28b)],_0x37a714=this['_collabSession'][_0x44a3c5(0x227)]();this[_0x44a3c5(0x1f8)]=_0x4e893b,_0x4e893b===_0x37a714?(this[_0x44a3c5(0x230)](),this[_0x44a3c5(0x299)]()):this[_0x44a3c5(0x235)]!=='not-following'&&(this[_0x44a3c5(0x225)](),this[_0x44a3c5(0x250)]());}[_0xce0c4e(0x275)](){const _0x462170=_0xce0c4e,_0x348a09={'eventID':_0x1dbbdf[_0x462170(0x260)]};this[_0x462170(0x21a)][_0x462170(0x219)](_0x348a09,this[_0x462170(0x1f9)]);}[_0xce0c4e(0x28d)](){const _0x11eb75=_0xce0c4e;this['_presenter']=null,this[_0x11eb75(0x235)]!=='presenting'&&this[_0x11eb75(0x22c)]();}[_0xce0c4e(0x1f0)](_0x184626){const _0x500f31=_0xce0c4e;if(this[_0x500f31(0x235)]===_0x500f31(0x206)&&this[_0x500f31(0x1f8)]===_0x184626[_0x500f31(0x28b)][_0x500f31(0x27b)]){const _0x341823=_0x212e49(_0x184626[_0x500f31(0x28b)])[_0x500f31(0x28e)][_0x500f31(0x224)]()[_0x500f31(0x201)](_0x54bf4b=>_0x54bf4b['id']===_0x3128b0['id']);if(_0x341823){const _0x2961a7=_0x341823[_0x500f31(0x24c)][_0x500f31(0x222)],_0x403445=_0x341823['params'][_0x500f31(0x242)]['id'];setTimeout(()=>{const _0x5f21d2=_0x500f31;this[_0x5f21d2(0x296)][_0x5f21d2(0x283)](_0x31ae4e['id'],{'unitId':_0x2961a7,'subUnitId':_0x403445},{'fromCollab':!0x0});});}}}[_0xce0c4e(0x299)](){const _0x4fc005=_0xce0c4e;this[_0x4fc005(0x214)][_0x4fc005(0x253)](_0x4fc005(0x223));const _0x17c6bf=new Map(),_0x4218a5=this[_0x4fc005(0x228)]=new _0x321e9e();_0x4218a5[_0x4fc005(0x285)](_0x5ec987(()=>{const _0x736a9c=_0x4fc005;_0x17c6bf[_0x736a9c(0x25f)](_0x50e675=>_0x50e675['complete']()),_0x17c6bf[_0x736a9c(0x218)]();})),_0x4218a5[_0x4fc005(0x285)](this['_commandService'][_0x4fc005(0x22d)](_0x1247f5=>{const _0x3521e5=_0x4fc005;var _0x8188a2;if(_0x1247f5[_0x3521e5(0x202)]!==_0x7e8bcb[_0x3521e5(0x23d)]||!this[_0x3521e5(0x240)][_0x3521e5(0x276)](_0x1247f5['id']))return;const {id:_0x21d929}=_0x1247f5;let _0x54547c;_0x17c6bf['has'](_0x21d929)?_0x54547c=_0x17c6bf['get'](_0x21d929):(_0x54547c=new _0x23ea99(),_0x17c6bf['set'](_0x21d929,_0x54547c),_0x54547c[_0x3521e5(0x231)](_0x3198dc((_0x8188a2=this['_configService']['getConfig'](Ce))!=null?_0x8188a2:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3521e5(0x257)](_0x1bb3ad=>{const _0x16196a=_0x3521e5;this['_collabSession'][_0x16196a(0x219)]({'eventID':_0x1dbbdf[_0x16196a(0x25e)],'data':{'unitID':this[_0x16196a(0x1f9)],'operations':{[_0x1bb3ad['id']]:{'id':_0x1bb3ad['id'],'params':JSON['stringify'](_0x1bb3ad['params'])}}}},this[_0x16196a(0x1f9)]);})),_0x54547c[_0x3521e5(0x253)](_0x1247f5);})),this['_liveShareService'][_0x4fc005(0x259)](this[_0x4fc005(0x1f9)])['forEach'](_0x1a5477=>this[_0x4fc005(0x21a)][_0x4fc005(0x219)]({'eventID':_0x1dbbdf[_0x4fc005(0x25e)],'data':{'unitID':this[_0x4fc005(0x1f9)],'operations':{[_0x1a5477['id']]:{'id':_0x1a5477['id'],'params':JSON[_0x4fc005(0x234)](_0x1a5477[_0x4fc005(0x24c)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x4ca804=_0xce0c4e;var _0x3aa452;this[_0x4ca804(0x214)]['next']('idle'),(_0x3aa452=this[_0x4ca804(0x228)])==null||_0x3aa452[_0x4ca804(0x264)](),this[_0x4ca804(0x228)]=null;}[_0xce0c4e(0x250)](){const _0x256c91=_0xce0c4e;var _0x168045;(_0x168045=this[_0x256c91(0x228)])==null||_0x168045[_0x256c91(0x264)](),this[_0x256c91(0x214)][_0x256c91(0x253)](_0x256c91(0x206));}[_0xce0c4e(0x22c)](){const _0x55dd65=_0xce0c4e;var _0x1e7fd1;this[_0x55dd65(0x214)][_0x55dd65(0x253)](_0x55dd65(0x255)),(_0x1e7fd1=this[_0x55dd65(0x228)])==null||_0x1e7fd1[_0x55dd65(0x264)](),this[_0x55dd65(0x228)]=null;}[_0xce0c4e(0x230)](){const _0x4b08d4=_0xce0c4e;var _0x10ed26;this[_0x4b08d4(0x214)][_0x4b08d4(0x253)](_0x4b08d4(0x270)),(_0x10ed26=this[_0x4b08d4(0x228)])==null||_0x10ed26[_0x4b08d4(0x264)]();}[_0xce0c4e(0x25d)](_0x487a88){const _0x56b99e=_0xce0c4e;if([_0x56b99e(0x223),'not-following',_0x56b99e(0x27a)][_0x56b99e(0x286)](this[_0x56b99e(0x235)])||!_0x487a88[_0x56b99e(0x28b)][_0x56b99e(0x1f3)]||_0x487a88['data'][_0x56b99e(0x1f3)]===this[_0x56b99e(0x21a)][_0x56b99e(0x227)]())return;this[_0x56b99e(0x235)]===_0x56b99e(0x255)&&this[_0x56b99e(0x250)]();const _0x38b0ce=_0x487a88[_0x56b99e(0x28b)][_0x56b99e(0x261)];Object['values'](_0x38b0ce)[_0x56b99e(0x25f)](_0x9d02a2=>{const _0x32716d=_0x56b99e;this[_0x32716d(0x296)][_0x32716d(0x283)](_0x9d02a2['id'],_0x9d02a2[_0x32716d(0x24c)]?JSON[_0x32716d(0x27d)](_0x9d02a2[_0x32716d(0x24c)]):null,{'fromCollab':!0x0});});}[_0xce0c4e(0x263)](){const _0x31741e=_0xce0c4e;var _0x366ca6;this[_0x31741e(0x214)][_0x31741e(0x253)]('offline'),(_0x366ca6=this[_0x31741e(0x228)])==null||_0x366ca6[_0x31741e(0x264)]();}[_0xce0c4e(0x208)](){const _0x141ef4=_0xce0c4e;this[_0x141ef4(0x214)][_0x141ef4(0x253)](_0x141ef4(0x255)),this[_0x141ef4(0x275)]();}};N=Y([_(0x2,_0x34266a),_(0x3,_0x2de6b4(L)),_(0x4,_0x492717)],N);function _0x53c8(_0x1b914a,_0x237a83){_0x1b914a=_0x1b914a-0x1ee;const _0x1f6949=_0x1f69();let _0x53c8fe=_0x1f6949[_0x1b914a];return _0x53c8fe;}function _0x1f69(){const _0x3e2fd0=['stopPresenting','find','type','attrs','requireSession','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','following','complete','_handleOnline','registerComponent','Stop\x20following','delete','_startLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','You\x27re\x20not\x20following\x20the\x20presenter','mask','5044cFXqSi','string','univerjs-icon\x20univerjs-icon-','24qiAloX','_status$','assign','path','registerSharedOperation','clear','send','_collabSession','displayName','symbol','You\x27are\x20offline.','249127FSwmiI','HEADER_MENU','735015lRlZAb','status$','unitId','presenting','reverse','_stopPresenting','univer-size-4','getMemberID','_commandDisposable','get','Stop\x20presenting','_univerInstanceService','_beIdle','onCommandExecuted','init','length','_stopFollowing','pipe','2148aVGnRU','tag','stringify','_status','104172JvKqKv','set','div','0\x200\x2017\x2017','univer-mb-3\x20univer-w-full\x20univer-text-sm','unsubscribe','_uiPartsService','OPERATION','1966878BDeLDF','getStatus','_liveShareService','LIVESHARE_NEW_HOST','sheet','FOLLOWING','button','idSuffix','_mountLiveShare','LiveShareIcon','getLiveShareCoordinator','startFollowing','You\x27re\x20following\x20the\x20presenter','OFFLINE','params','_handleNewHost','11pGiyQv','currentColor','_startFollowing','_init','_entities','next','LIVESHARE_TERMINATE','idle','children','subscribe','current','getInitialStates','2DyIpIt','_collabSessionService','has','_handleOperation','LIVESHARE_OPERATION','forEach','LIVESHARE_FETCH_OPERATIONS','operations','tryStartPresenting','_handleOffline','dispose','_injector','_reporters','defs','live-share.config','map','random','url(#$1','dispose$','3yeAAqR','substring','getLiveShareCoordinatorSync','not-following','4808EMpFng','onRendered','pluginName','text','_fetchOperations','shouldShareOperation','917OFHyuO','_config','end','offline','memberID','sessionStatus$','parse','_sharedOperations','entries','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','1em','UNIVER_SHEET','executeCommand','asObservable','add','includes','PRESENTING','Start','evenodd','NOT_FOLLOWING','data','onStarting','_handleTerminate','mutations','getUnitId','svg','Start\x20following','getTypeOfUnitAdded$','defineProperty','_configService','getOwnPropertyDescriptor','_commandService','UNIVER_UNKNOWN','LIVESHARE_REQUEST_HOST','_startPresenting','stopFollowing','event$','_handleNewChangeSets','defIds','NEW_CHANGESETS','presenter','toString','colorChannel1','xlink:href','fill','_presenter','_unitID','getTypeOfUnitDisposed$','IDLE','4942090qJtcCB','UniverIcon','live-share-icon','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'];_0x1f69=function(){return _0x3e2fd0;};return _0x1f69();}function Le(){const _0x834dbc=_0xce0c4e,_0x4851cc=_0x14182f(S),_0x242046=_0x14182f(_0x5d85e7),_0x366b30=_0x55b771(()=>_0x242046['getCurrentTypeOfUnit$'](_0x324c39[_0x834dbc(0x282)]),void 0x0,!0x1,[]),[_0x358073,_0x5e9410]=_0x2b36ac(null),[_0x93b40e,_0x1d3a15]=_0x2b36ac(c['IDLE']),_0x273b6a=_0x102f92(null);return _0xcd52bb(()=>(_0x366b30&&_0x4851cc[_0x834dbc(0x248)](_0x366b30[_0x834dbc(0x28f)]())['then'](_0x5a6acf=>{const _0x3f1d68=_0x834dbc;_0x5e9410(_0x5a6acf),_0x273b6a[_0x3f1d68(0x258)]=_0x5a6acf['status$']['subscribe'](_0x2e3505=>{_0x1d3a15(_0x2e3505);});}),()=>{const _0x5aa97b=_0x834dbc;var _0x1a4438;(_0x1a4438=_0x273b6a[_0x5aa97b(0x258)])==null||_0x1a4438[_0x5aa97b(0x23b)](),_0x273b6a[_0x5aa97b(0x258)]=null;}),[_0x366b30,_0x4851cc]),_0x358073?_0x481bab(_0x42bb87,{'align':_0x834dbc(0x279),'disabled':_0x93b40e===c[_0x834dbc(0x24b)],'className':_0x834dbc(0x1ff),'overlay':_0x481bab(Re,{'status':_0x93b40e,'coordinator':_0x358073}),'children':_0x481bab(_0x834dbc(0x244),{'className':_0xfbc3dd(_0x834dbc(0x20d),{'univer-cursor-not-allowed':_0x93b40e===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x93b40e!==c[_0x834dbc(0x24b)]}),'type':_0x834dbc(0x244),'children':_0x481bab(W,{'className':_0x834dbc(0x226)})})}):null;}function Re(_0x5b806d){const _0x45e4fa=_0xce0c4e,{status:_0x9c7ef7,coordinator:_0x12245e}=_0x5b806d;switch(_0x9c7ef7){case c[_0x45e4fa(0x1fb)]:return _0x481bab($e,{'coordinator':_0x12245e});case c['FOLLOWING']:return _0x481bab(xe,{'coordinator':_0x12245e});case c[_0x45e4fa(0x28a)]:return _0x481bab(Pe,{'coordinator':_0x12245e});case c[_0x45e4fa(0x24b)]:return _0x481bab(Te,{});case c[_0x45e4fa(0x287)]:return _0x481bab(Ae,{'coordinator':_0x12245e});default:return null;}}function $e(_0x203d2b){const _0x21cbd6=_0xce0c4e,{coordinator:_0x322113}=_0x203d2b;return _0x3e4308(_0x2de7e1,{'children':[_0x481bab(_0x21cbd6(0x238),{'className':_0x21cbd6(0x23a),'children':'Present\x20this\x20document'}),_0x481bab(_0x273271,{'onClick':()=>_0x322113[_0x21cbd6(0x262)](),'children':_0x21cbd6(0x288)})]});}function xe(_0x466ff9){const _0x295820=_0xce0c4e,{coordinator:_0x32e1f8}=_0x466ff9;return _0x3e4308(_0x2de7e1,{'children':[_0x481bab(_0x295820(0x238),{'className':_0x295820(0x23a),'children':_0x295820(0x24a)}),_0x481bab(_0x273271,{'onClick':()=>_0x32e1f8[_0x295820(0x1ee)](),'children':_0x295820(0x20a)})]});}function Pe(_0x1b18cd){const _0x46bf32=_0xce0c4e,{coordinator:_0x37026b}=_0x1b18cd;return _0x3e4308(_0x2de7e1,{'children':[_0x481bab(_0x46bf32(0x238),{'className':_0x46bf32(0x23a),'children':_0x46bf32(0x20e)}),_0x481bab(_0x273271,{'variant':_0x46bf32(0x274),'onClick':()=>_0x37026b['startFollowing'](),'children':_0x46bf32(0x291)})]});}function Ae(_0x15b1e1){const _0x1ed5d0=_0xce0c4e,{coordinator:_0x552ad5}=_0x15b1e1;return _0x3e4308(_0x2de7e1,{'children':[_0x481bab(_0x1ed5d0(0x238),{'className':_0x1ed5d0(0x23a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x481bab(_0x273271,{'variant':'default','onClick':()=>_0x552ad5['stopPresenting'](),'children':_0x1ed5d0(0x22a)})]});}function Te(){const _0x23b940=_0xce0c4e;return _0x481bab(_0x2de7e1,{'children':_0x23b940(0x21d)});}var Fe=Object[_0xce0c4e(0x295)],He=(_0x61172e,_0x50f50d,_0x280557,_0x4f6339)=>{const _0x2fa336=_0xce0c4e;for(var _0x36443e=_0x4f6339>0x1?void 0x0:_0x4f6339?Fe(_0x50f50d,_0x280557):_0x50f50d,_0x3e6806=_0x61172e[_0x2fa336(0x22f)]-0x1,_0x12431d;_0x3e6806>=0x0;_0x3e6806--)(_0x12431d=_0x61172e[_0x3e6806])&&(_0x36443e=_0x12431d(_0x36443e)||_0x36443e);return _0x36443e;},A=(_0x2a0954,_0xe7d020)=>(_0x489cc4,_0x1db3bc)=>_0xe7d020(_0x489cc4,_0x1db3bc,_0x2a0954);let m=class extends _0x391c50{constructor(_0x6cdbcf,_0x312696){const _0x2736fb=_0xce0c4e;super(),this[_0x2736fb(0x265)]=_0x6cdbcf,this[_0x2736fb(0x23c)]=_0x312696,this[_0x2736fb(0x246)]();}['_mountLiveShare'](){const _0x3a3d28=_0xce0c4e;this['disposeWithMe'](this['_uiPartsService'][_0x3a3d28(0x209)](_0x7e38cc[_0x3a3d28(0x21f)],()=>_0x593ae2(Le,this[_0x3a3d28(0x265)])));}};m=He([A(0x0,_0x2de6b4(_0x173c5e)),A(0x1,_0x48a06c)],m);const ye=_0xce0c4e(0x268),T={};var Ue=Object[_0xce0c4e(0x295)],Ve=(_0x22e121,_0x2e3983,_0x4cf945,_0x3c4826)=>{const _0x4496fe=_0xce0c4e;for(var _0x15f34f=_0x3c4826>0x1?void 0x0:_0x3c4826?Ue(_0x2e3983,_0x4cf945):_0x2e3983,_0x2c5cf0=_0x22e121[_0x4496fe(0x22f)]-0x1,_0x814af5;_0x2c5cf0>=0x0;_0x2c5cf0--)(_0x814af5=_0x22e121[_0x2c5cf0])&&(_0x15f34f=_0x814af5(_0x15f34f)||_0x15f34f);return _0x15f34f;},je=(_0x50476d,_0x3a6e75)=>(_0xbe1020,_0x4055fd)=>_0x3a6e75(_0xbe1020,_0x4055fd,_0x50476d);let I=class extends _0x391c50{constructor(_0x338895){const _0x5d6169=_0xce0c4e;super(),this[_0x5d6169(0x240)]=_0x338895,this[_0x5d6169(0x251)]();}[_0xce0c4e(0x251)](){[_0x8a3ff8['id'],_0x3dbd75['id'],_0x31ae4e['id']]['forEach'](_0x8e7b5c=>{const _0x33631d=_0x53c8;this['disposeWithMe'](this[_0x33631d(0x240)]['registerSharedOperation'](_0x8e7b5c));});}};I=Ve([je(0x0,_0x2de6b4(L))],I);var Me=Object[_0xce0c4e(0x293)],ke=Object[_0xce0c4e(0x295)],Ge=(_0x142d9a,_0x1d3bee,_0x517a2d)=>_0x1d3bee in _0x142d9a?Me(_0x142d9a,_0x1d3bee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x517a2d}):_0x142d9a[_0x1d3bee]=_0x517a2d,We=(_0x5d5d52,_0x48919b,_0x49dab9,_0x380cc0)=>{for(var _0x5defb0=_0x380cc0>0x1?void 0x0:_0x380cc0?ke(_0x48919b,_0x49dab9):_0x48919b,_0x9ed4bd=_0x5d5d52['length']-0x1,_0x382a61;_0x9ed4bd>=0x0;_0x9ed4bd--)(_0x382a61=_0x5d5d52[_0x9ed4bd])&&(_0x5defb0=_0x382a61(_0x5defb0)||_0x5defb0);return _0x5defb0;},F=(_0x156e0a,_0x3e960a)=>(_0x136a24,_0xe9c535)=>_0x3e960a(_0x136a24,_0xe9c535,_0x156e0a),B=(_0xf181c4,_0x661305,_0x1ffb38)=>Ge(_0xf181c4,typeof _0x661305!=_0xce0c4e(0x21c)?_0x661305+'':_0x661305,_0x1ffb38);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x3d5c76{constructor(_0x1c0333=T,_0x379dbb,_0x18b17d){const _0x450ba2=_0xce0c4e;super(),this[_0x450ba2(0x278)]=_0x1c0333,this[_0x450ba2(0x265)]=_0x379dbb,this['_configService']=_0x18b17d;const {..._0x52f487}=_0x1325bb({},T,this[_0x450ba2(0x278)]);this[_0x450ba2(0x294)]['setConfig'](ye,_0x52f487);}[_0xce0c4e(0x28c)](){const _0x155fae=_0xce0c4e;_0x256053(this['_injector'],_0x4c1cfa([[L],[S],[I],[m]],this['_config']['override'])),_0x39d7eb(this[_0x155fae(0x265)],[[I]]);}[_0xce0c4e(0x272)](){const _0x3c2c9a=_0xce0c4e;_0x39d7eb(this[_0x3c2c9a(0x265)],[[m]]);}};B(b,_0xce0c4e(0x202),_0x324c39[_0xce0c4e(0x297)]),B(b,_0xce0c4e(0x273),Ye),b=We([_0x390b52(_0x11e9df),F(0x1,_0x2de6b4(_0x173c5e)),F(0x2,_0x34266a)],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 _0x1503(_0xb9ef89,_0x13e57e){_0xb9ef89=_0xb9ef89-0x88;const _0x355994=_0x3559();let _0x150352=_0x355994[_0xb9ef89];return _0x150352;}function _0x3559(){const _0x13876e=['187683alTkfD','LiveShareController','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','5076239Ymtavj','@univerjs/sheets/facade','getSheetId','PRESENTING','554464dJVCIO','3244740jAuguM','6AXHVpO','startColumn','syncExecuteCommand','startFollowing','UniverSheetsFacade','LiveShareStatusEnum','@univerjs/core/facade','_commandService','_initialize','get','getLiveShareCoordinatorSync','24sfjJcM','@univerjs-pro/live-share','SetScrollOperation','getStatus','UniverSheets','startPresenting','object','UniverSheetsUi','tryStartPresenting','8781RxAgGG','amd','UniverEngineRender','FEnum','FUniver','getRenderById','FRange','executeCommand','2144110MeAeAw','IRenderManagerService','LiveShareStatus','SetWorksheetActiveOperation','getUnitId','stopFollowing','No\x20active\x20workbook\x20found.','getActiveWorkbook','8533467PAbvpw','@univerjs/sheets','UniverCoreFacade','extend','function','_injector','startRow'];_0x3559=function(){return _0x13876e;};return _0x3559();}(function(_0x541c79,_0x44a3b7){const _0x1c4d31=_0x1503,_0x246024=_0x541c79();while(!![]){try{const _0x29184e=-parseInt(_0x1c4d31(0x8a))/0x1*(parseInt(_0x1c4d31(0x94))/0x2)+parseInt(_0x1c4d31(0xa8))/0x3+-parseInt(_0x1c4d31(0x92))/0x4+-parseInt(_0x1c4d31(0xb0))/0x5+-parseInt(_0x1c4d31(0x93))/0x6+-parseInt(_0x1c4d31(0x8e))/0x7+-parseInt(_0x1c4d31(0x9f))/0x8*(-parseInt(_0x1c4d31(0xb8))/0x9);if(_0x29184e===_0x44a3b7)break;else _0x246024['push'](_0x246024['shift']());}catch(_0x420c70){_0x246024['push'](_0x246024['shift']());}}}(_0x3559,0x6e192),function(_0x1c7813,_0x4f6571){const _0x10dfe9=_0x1503;typeof exports==_0x10dfe9(0xa5)&&typeof module<'u'?_0x4f6571(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==_0x10dfe9(0xbc)&&define[_0x10dfe9(0xa9)]?define([_0x10dfe9(0xa0),'@univerjs/engine-render',_0x10dfe9(0xb9),'@univerjs/sheets-ui',_0x10dfe9(0x8f),_0x10dfe9(0x9a)],_0x4f6571):(_0x1c7813=typeof globalThis<'u'?globalThis:_0x1c7813||self,_0x4f6571(_0x1c7813['UniverProLiveShare'],_0x1c7813[_0x10dfe9(0xaa)],_0x1c7813[_0x10dfe9(0xa3)],_0x1c7813[_0x10dfe9(0xa6)],_0x1c7813[_0x10dfe9(0x98)],_0x1c7813[_0x10dfe9(0xba)]));}(this,function(_0x13b967,_0x509067,_0x5e3ae4,_0x416f13,_0x207da9,_0x9bea9c){'use strict';const _0x1bb263=_0x1503;class _0x36842e extends _0x207da9[_0x1bb263(0xae)]{[_0x1bb263(0x9c)](_0x3e7a40,_0x37a4bf,_0x2270fd,_0x1d5535,_0x1fa2f5){const _0x1156e2=_0x1bb263,_0x574f35=_0x3e7a40[_0x1156e2(0x9d)](_0x13b967[_0x1156e2(0x8b)]),_0x4d599f=_0x3e7a40[_0x1156e2(0x9d)](_0x509067[_0x1156e2(0xb1)]),_0xcb19d9=_0x37a4bf[_0x1156e2(0xb4)](),_0x174ba2=_0x37a4bf['getActiveSheet'](),_0x533e54=_0x574f35[_0x1156e2(0x9e)](_0xcb19d9);(_0x533e54==null?void 0x0:_0x533e54[_0x1156e2(0xa2)]())!==_0x13b967[_0x1156e2(0xb2)][_0x1156e2(0x91)]||(_0x2270fd[_0x1156e2(0x90)]()!==_0x174ba2[_0x1156e2(0x90)]()&&this[_0x1156e2(0x9b)][_0x1156e2(0xaf)](_0x5e3ae4[_0x1156e2(0xb3)]['id'],{'unitId':_0xcb19d9,'subUnitId':_0x2270fd[_0x1156e2(0x90)]()}),!_0x4d599f[_0x1156e2(0xad)](_0xcb19d9))||_0x1fa2f5[_0x1156e2(0x96)](_0x416f13[_0x1156e2(0xa1)]['id'],{'unitId':_0x37a4bf[_0x1156e2(0xb4)](),'sheetId':_0x2270fd[_0x1156e2(0x90)](),'sheetViewStartRow':_0x1d5535[_0x1156e2(0x89)],'sheetViewStartColumn':_0x1d5535[_0x1156e2(0x95)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x207da9['FRange'][_0x1bb263(0xbb)](_0x36842e);class _0x2b9aa8 extends _0x9bea9c['FUniver']{['getLiveShareStatus'](){const _0x305cfe=_0x1bb263;var _0x6d9522,_0x2b258d;const _0x5f24ff=this['_injector'][_0x305cfe(0x9d)](_0x13b967[_0x305cfe(0x8b)]),_0x5c9965=(_0x6d9522=this[_0x305cfe(0xb7)]())==null?void 0x0:_0x6d9522['getId']();if(!_0x5c9965)throw new Error(_0x305cfe(0xb6));const _0x35e144=_0x5f24ff[_0x305cfe(0x9e)](_0x5c9965);return(_0x2b258d=_0x35e144==null?void 0x0:_0x35e144['getStatus']())!=null?_0x2b258d:_0x13b967[_0x305cfe(0xb2)]['IDLE'];}['startFollowing'](){const _0x18394e=_0x1bb263;var _0x3f2840;const _0x4ca6a3=this[_0x18394e(0x88)]['get'](_0x13b967[_0x18394e(0x8b)]),_0x169363=(_0x3f2840=this['getActiveWorkbook']())==null?void 0x0:_0x3f2840['getId']();if(!_0x169363)throw new Error(_0x18394e(0xb6));const _0x5219b2=_0x4ca6a3['getLiveShareCoordinatorSync'](_0x169363);if(!_0x5219b2)throw new Error(_0x18394e(0x8d));_0x5219b2[_0x18394e(0x97)]();}[_0x1bb263(0xb5)](){const _0x292b43=_0x1bb263;var _0x26f22a;const _0x2ddb38=this[_0x292b43(0x88)][_0x292b43(0x9d)](_0x13b967[_0x292b43(0x8b)]),_0x4da76e=(_0x26f22a=this['getActiveWorkbook']())==null?void 0x0:_0x26f22a['getId']();if(!_0x4da76e)throw new Error('No\x20active\x20workbook\x20found.');const _0x4c3db8=_0x2ddb38[_0x292b43(0x9e)](_0x4da76e);if(!_0x4c3db8)throw new Error(_0x292b43(0x8d));_0x4c3db8[_0x292b43(0xb5)]();}[_0x1bb263(0xa4)](){const _0x529b70=_0x1bb263;var _0x2a5e56;const _0x1ac740=this['_injector'][_0x529b70(0x9d)](_0x13b967[_0x529b70(0x8b)]),_0x560134=(_0x2a5e56=this['getActiveWorkbook']())==null?void 0x0:_0x2a5e56['getId']();if(!_0x560134)throw new Error('No\x20active\x20workbook\x20found.');const _0x4160d5=_0x1ac740['getLiveShareCoordinatorSync'](_0x560134);if(!_0x4160d5)throw new Error(_0x529b70(0x8d));_0x4160d5[_0x529b70(0xa7)]();}[_0x1bb263(0x8c)](){const _0x2b2a91=_0x1bb263;var _0x263387;const _0x292ab4=this[_0x2b2a91(0x88)][_0x2b2a91(0x9d)](_0x13b967[_0x2b2a91(0x8b)]),_0x272efb=(_0x263387=this[_0x2b2a91(0xb7)]())==null?void 0x0:_0x263387['getId']();if(!_0x272efb)throw new Error('No\x20active\x20workbook\x20found.');const _0x401914=_0x292ab4[_0x2b2a91(0x9e)](_0x272efb);if(!_0x401914)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x401914['stopPresenting']();}}_0x9bea9c[_0x1bb263(0xac)]['extend'](_0x2b9aa8);class _0x2b8f9a extends _0x9bea9c[_0x1bb263(0xab)]{get[_0x1bb263(0x99)](){return _0x13b967['LiveShareStatus'];}}_0x9bea9c[_0x1bb263(0xab)][_0x1bb263(0xbb)](_0x2b8f9a);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x24c2(_0xff1e91,_0x2dbe21){_0xff1e91=_0xff1e91-0x75;const _0xe5a62b=_0xe5a6();let _0x24c2d7=_0xe5a62b[_0xff1e91];return _0x24c2d7;}(function(_0x1df038,_0x1441f4){const _0x5a2158=_0x24c2,_0x1c4ad7=_0x1df038();while(!![]){try{const _0x38b80b=-parseInt(_0x5a2158(0x87))/0x1*(-parseInt(_0x5a2158(0xa5))/0x2)+parseInt(_0x5a2158(0x141))/0x3*(-parseInt(_0x5a2158(0xbe))/0x4)+-parseInt(_0x5a2158(0x160))/0x5+parseInt(_0x5a2158(0x93))/0x6*(parseInt(_0x5a2158(0x14c))/0x7)+-parseInt(_0x5a2158(0x99))/0x8*(parseInt(_0x5a2158(0x13c))/0x9)+-parseInt(_0x5a2158(0xe3))/0xa+parseInt(_0x5a2158(0xb4))/0xb;if(_0x38b80b===_0x1441f4)break;else _0x1c4ad7['push'](_0x1c4ad7['shift']());}catch(_0xfc58a0){_0x1c4ad7['push'](_0x1c4ad7['shift']());}}}(_0xe5a6,0x30ebf),function(_0x5a0afb,_0x414369){const _0x219e91=_0x24c2;typeof exports==_0x219e91(0xf6)&&typeof module<'u'?_0x414369(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==_0x219e91(0xdc)&&define[_0x219e91(0x111)]?define([_0x219e91(0x118),_0x219e91(0x162),_0x219e91(0xa8),_0x219e91(0x15d),_0x219e91(0x121),_0x219e91(0x116),_0x219e91(0x8d),_0x219e91(0x131),'@univerjs/sheets',_0x219e91(0xc2),_0x219e91(0xeb),_0x219e91(0x140)],_0x414369):(_0x5a0afb=typeof globalThis<'u'?globalThis:_0x5a0afb||self,_0x414369(_0x5a0afb[_0x219e91(0x78)]={},_0x5a0afb[_0x219e91(0x11f)],_0x5a0afb[_0x219e91(0x132)],_0x5a0afb[_0x219e91(0x7a)],_0x5a0afb[_0x219e91(0xf7)],_0x5a0afb['React'],_0x5a0afb[_0x219e91(0xd1)],_0x5a0afb[_0x219e91(0x158)],_0x5a0afb[_0x219e91(0xd8)],_0x5a0afb[_0x219e91(0xc2)],_0x5a0afb[_0x219e91(0xc2)][_0x219e91(0x8a)],_0x5a0afb[_0x219e91(0x137)]));}(this,function(_0x3d5254,_0x1383de,_0x47bd3b,_0x561cf3,_0x47ac77,_0xeb3c95,_0x332357,_0x435296,_0x504be1,_0x1520bf,_0x4263b7,_0x256bc6){'use strict';const _0x10fbf1=_0x24c2;var _0x3c369a=Object[_0x10fbf1(0x85)],_0x17473d=(_0x3d4628,_0x4dbc57,_0x53382c)=>_0x4dbc57 in _0x3d4628?_0x3c369a(_0x3d4628,_0x4dbc57,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53382c}):_0x3d4628[_0x4dbc57]=_0x53382c,_0x6b6d25=(_0x2ca5e3,_0x3db082,_0xe3e363)=>_0x17473d(_0x2ca5e3,typeof _0x3db082!=_0x10fbf1(0x105)?_0x3db082+'':_0x3db082,_0xe3e363);function _0x455f6b({ref:_0x1eef72,..._0x4cae7e}){const _0x765ec2=_0x10fbf1,{icon:_0x2be092,id:_0x3f18c2,className:_0x1f2328,extend:_0x56ecbe,..._0x457111}=_0x4cae7e,_0x26cc07=('univerjs-icon\x20univerjs-icon-'+_0x3f18c2+'\x20'+(_0x1f2328||''))['trim'](),_0x52259b=_0xeb3c95[_0x765ec2(0x11d)]('_'+_0x26db05());return _0x371763(_0x2be092,''+_0x3f18c2,{'defIds':_0x2be092[_0x765ec2(0x81)],'idSuffix':_0x52259b[_0x765ec2(0xe4)]},{'ref':_0x1eef72,'className':_0x26cc07,..._0x457111},_0x56ecbe);}function _0x371763(_0x3529fd,_0x4cbf33,_0x51982b,_0x21e744,_0x12ca7e){const _0x16081d=_0x10fbf1;return _0xeb3c95[_0x16081d(0x9d)](_0x3529fd['tag'],{'key':_0x4cbf33,..._0x20e07d(_0x3529fd,_0x51982b,_0x12ca7e),..._0x21e744},(_0x483ff5(_0x3529fd,_0x51982b)[_0x16081d(0xf5)]||[])['map']((_0x254227,_0x472efa)=>_0x371763(_0x254227,_0x4cbf33+'-'+_0x3529fd[_0x16081d(0x129)]+'-'+_0x472efa,_0x51982b,void 0x0,_0x12ca7e)));}function _0x20e07d(_0x4909bc,_0x48c10e,_0x15592c){const _0x344875=_0x10fbf1,_0x30fdde={..._0x4909bc['attrs']};_0x15592c!=null&&_0x15592c[_0x344875(0x125)]&&_0x30fdde[_0x344875(0x112)]==='colorChannel1'&&(_0x30fdde[_0x344875(0x112)]=_0x15592c[_0x344875(0x125)]),_0x4909bc[_0x344875(0x129)]===_0x344875(0x126)&&_0x30fdde['id']&&(_0x30fdde['id']=_0x30fdde['id']+_0x48c10e[_0x344875(0xf4)]),Object[_0x344875(0x9b)](_0x30fdde)[_0x344875(0x90)](([_0x406fc5,_0xc9f6c6])=>{const _0x55147d=_0x344875;_0x406fc5===_0x55147d(0x126)&&typeof _0xc9f6c6==_0x55147d(0xe1)&&(_0x30fdde[_0x406fc5]=_0xc9f6c6[_0x55147d(0x103)](/url\(#(.*)\)/,_0x55147d(0x152)+_0x48c10e['idSuffix']+')'));});const {defIds:_0x31941c}=_0x48c10e;return!_0x31941c||_0x31941c[_0x344875(0x143)]===0x0||(_0x4909bc['tag']==='use'&&_0x30fdde[_0x344875(0x80)]&&(_0x30fdde[_0x344875(0x80)]=_0x30fdde[_0x344875(0x80)]+_0x48c10e[_0x344875(0xf4)]),Object['entries'](_0x30fdde)[_0x344875(0x90)](([_0x4d2320,_0xcceb91])=>{const _0x5b312d=_0x344875;typeof _0xcceb91==_0x5b312d(0xe1)&&(_0x30fdde[_0x4d2320]=_0xcceb91[_0x5b312d(0x103)](/url\(#(.*)\)/,_0x5b312d(0x152)+_0x48c10e[_0x5b312d(0xf4)]+')'));})),_0x30fdde;}function _0x483ff5(_0x396101,_0x254fe7){const _0x4703e1=_0x10fbf1;var _0x5b4bd8;const {defIds:_0x366c9f}=_0x254fe7;return!_0x366c9f||_0x366c9f[_0x4703e1(0x143)]===0x0?_0x396101:_0x396101['tag']===_0x4703e1(0x130)&&((_0x5b4bd8=_0x396101[_0x4703e1(0xf5)])!=null&&_0x5b4bd8[_0x4703e1(0x143)])?{..._0x396101,'children':_0x396101[_0x4703e1(0xf5)]['map'](_0xc3efcf=>typeof _0xc3efcf[_0x4703e1(0x96)]['id']==_0x4703e1(0xe1)&&_0x366c9f&&_0x366c9f[_0x4703e1(0x146)](_0xc3efcf[_0x4703e1(0x96)]['id'])?{..._0xc3efcf,'attrs':{..._0xc3efcf['attrs'],'id':_0xc3efcf[_0x4703e1(0x96)]['id']+_0x254fe7['idSuffix']}}:_0xc3efcf)}:_0x396101;}function _0x26db05(){const _0xd53aec=_0x10fbf1;return Math[_0xd53aec(0x9a)]()[_0xd53aec(0x14d)](0x24)[_0xd53aec(0x9e)](0x2,0x8);}_0x455f6b[_0x10fbf1(0xd7)]=_0x10fbf1(0x10a);const _0x2a3266={'tag':_0x10fbf1(0x79),'attrs':{'xmlns':_0x10fbf1(0x7f),'fill':_0x10fbf1(0xe9),'viewBox':_0x10fbf1(0xba),'width':'1em','height':_0x10fbf1(0xce)},'children':[{'tag':_0x10fbf1(0x11c),'attrs':{'fill':_0x10fbf1(0xc9),'d':_0x10fbf1(0xc5)}},{'tag':_0x10fbf1(0x11c),'attrs':{'fill':_0x10fbf1(0xc9),'d':_0x10fbf1(0x88),'fillRule':_0x10fbf1(0xbc),'clipRule':_0x10fbf1(0xbc)}}]},_0x2ad1f1=_0xeb3c95[_0x10fbf1(0x100)](function(_0x128338,_0x36543a){const _0x2f34be=_0x10fbf1;return _0xeb3c95[_0x2f34be(0x9d)](_0x455f6b,Object[_0x2f34be(0x13b)]({},_0x128338,{'id':'live-share-icon','ref':_0x36543a,'icon':_0x2a3266}));});_0x2ad1f1[_0x10fbf1(0xd7)]=_0x10fbf1(0xd6);class _0x37da54 extends _0x1383de[_0x10fbf1(0x104)]{constructor(){const _0x32d5d7=_0x10fbf1;super(...arguments),_0x6b6d25(this,_0x32d5d7(0x8b),new Set()),_0x6b6d25(this,'_reporters',new Set());}['registerSharedOperation'](_0x4bac15){const _0xb409bb=_0x10fbf1;return this[_0xb409bb(0x8b)][_0xb409bb(0x163)](_0x4bac15),_0x1383de['toDisposable'](()=>this[_0xb409bb(0x8b)][_0xb409bb(0x7d)](_0x4bac15));}['registerInitialStateReporter'](_0x3e1a81){const _0x3d73e7=_0x10fbf1;return this[_0x3d73e7(0xdd)][_0x3d73e7(0x163)](_0x3e1a81),_0x1383de[_0x3d73e7(0x12c)](()=>this[_0x3d73e7(0xdd)][_0x3d73e7(0x7d)](_0x3e1a81));}[_0x10fbf1(0xfd)](_0x36e9fe){const _0x535a6a=_0x10fbf1;return this[_0x535a6a(0x8b)][_0x535a6a(0xa3)](_0x36e9fe);}[_0x10fbf1(0x156)](_0xeb5b77){const _0x27438c=_0x10fbf1;return Array['from'](this[_0x27438c(0xdd)])[_0x27438c(0xe7)](_0x491077=>_0x491077(_0xeb5b77));}}var _0x47f808=Object['getOwnPropertyDescriptor'],_0xccc100=(_0x5c1b24,_0xff65ac,_0x15593b,_0x43352d)=>{const _0x4a8063=_0x10fbf1;for(var _0x2b88c7=_0x43352d>0x1?void 0x0:_0x43352d?_0x47f808(_0xff65ac,_0x15593b):_0xff65ac,_0x21841f=_0x5c1b24[_0x4a8063(0x143)]-0x1,_0x190616;_0x21841f>=0x0;_0x21841f--)(_0x190616=_0x5c1b24[_0x21841f])&&(_0x2b88c7=_0x190616(_0x2b88c7)||_0x2b88c7);return _0x2b88c7;},_0x338e90=(_0x1acd69,_0x39f337)=>(_0xcfd42b,_0x299478)=>_0x39f337(_0xcfd42b,_0x299478,_0x1acd69);_0x3d5254[_0x10fbf1(0x84)]=class extends _0x1383de[_0x10fbf1(0x13f)]{constructor(_0xe6694f,_0x430605,_0x8df159){const _0x3558f0=_0x10fbf1;super(),_0x6b6d25(this,'_entities',new Map()),(this['_univerInstanceService']=_0xe6694f,this['_injector']=_0x430605,this[_0x3558f0(0xc3)]=_0x8df159,this[_0x3558f0(0x12b)]());}async[_0x10fbf1(0x12d)](_0x15729f){const _0x2171fc=_0x10fbf1;return this[_0x2171fc(0x110)][_0x2171fc(0xa3)](_0x15729f)||await this[_0x2171fc(0x13a)](_0x15729f),this[_0x2171fc(0x110)][_0x2171fc(0x133)](_0x15729f);}['getLiveShareCoordinatorSync'](_0x361963){const _0x206a11=_0x10fbf1;var _0x3f2d1e;return(_0x3f2d1e=this[_0x206a11(0x110)]['get'](_0x361963))!=null?_0x3f2d1e:null;}[_0x10fbf1(0x12b)](){const _0x56849e=_0x10fbf1;this[_0x56849e(0x75)][_0x56849e(0x108)](_0x1383de['UniverInstanceType'][_0x56849e(0xd3)])[_0x56849e(0xb9)](_0x4263b7[_0x56849e(0xb7)](this[_0x56849e(0x15c)]))['subscribe'](async _0x29539d=>{const _0x669f41=_0x56849e,_0xdc2b3c=_0x29539d['getUnitId']();this[_0x669f41(0x110)][_0x669f41(0xa3)](_0xdc2b3c)||this['_startLiveShareCoordinator'](_0xdc2b3c);}),this[_0x56849e(0x75)]['getTypeOfUnitDisposed$'](_0x1383de['UniverInstanceType'][_0x56849e(0xd3)])[_0x56849e(0xb9)](_0x4263b7[_0x56849e(0xb7)](this[_0x56849e(0x15c)]))['subscribe'](_0x4d1ba6=>{const _0x498ec9=_0x56849e,_0x1048d8=_0x4d1ba6[_0x498ec9(0xa2)](),_0x3deede=this[_0x498ec9(0x110)][_0x498ec9(0x133)](_0x1048d8);_0x3deede==null||_0x3deede[_0x498ec9(0xaa)]();});}async[_0x10fbf1(0x13a)](_0x379446){const _0x3aab8f=_0x10fbf1,_0x596ccf=await this[_0x3aab8f(0xc3)][_0x3aab8f(0xbd)](_0x379446),_0x1b4598=this[_0x3aab8f(0xf3)][_0x3aab8f(0xb5)](_0x3d5254[_0x3aab8f(0xfc)],_0x379446,_0x596ccf);return _0x1b4598[_0x3aab8f(0x136)](),this['_entities'][_0x3aab8f(0x10d)](_0x379446,_0x1b4598),_0x1b4598;}},_0x3d5254[_0x10fbf1(0x84)]=_0xccc100([_0x338e90(0x0,_0x1383de['IUniverInstanceService']),_0x338e90(0x1,_0x1383de[_0x10fbf1(0x82)](_0x1383de[_0x10fbf1(0xda)])),_0x338e90(0x2,_0x1383de[_0x10fbf1(0x82)](_0x435296['CollaborationSessionService']))],_0x3d5254[_0x10fbf1(0x84)]);var _0x4e654a=(_0x260ba0=>(_0x260ba0['OFFLINE']=_0x10fbf1(0x101),_0x260ba0['IDLE']=_0x10fbf1(0xa7),_0x260ba0['FOLLOWING']=_0x10fbf1(0x120),_0x260ba0[_0x10fbf1(0x12f)]=_0x10fbf1(0x11b),_0x260ba0['PRESENTING']='presenting',_0x260ba0))(_0x4e654a||{});const _0xfe396a=_0x10fbf1(0x149),_0xc048b4=0xc8;_0x3d5254[_0x10fbf1(0xfc)]=class extends _0x1383de[_0x10fbf1(0x13f)]{constructor(_0x2c29a8,_0xf6461c,_0x27cba0,_0x185de9,_0x13dbd9){const _0x371803=_0x10fbf1;super(),_0x6b6d25(this,_0x371803(0x145),new _0x1520bf[(_0x371803(0x154))](_0x371803(0xa7))),_0x6b6d25(this,'status$',this[_0x371803(0x145)][_0x371803(0xa6)]()),_0x6b6d25(this,_0x371803(0x12b),!0x1),_0x6b6d25(this,_0x371803(0xab),null),_0x6b6d25(this,_0x371803(0x8f),null),(this[_0x371803(0x94)]=_0x2c29a8,this[_0x371803(0x14a)]=_0xf6461c,this['_configService']=_0x27cba0,this[_0x371803(0xe2)]=_0x185de9,this[_0x371803(0xb1)]=_0x13dbd9);}get[_0x10fbf1(0x7b)](){const _0x114d5b=_0x10fbf1;return this[_0x114d5b(0x145)][_0x114d5b(0x83)]();}[_0x10fbf1(0xaa)](){const _0x5ebace=_0x10fbf1;var _0x2331ec;(_0x2331ec=this['_commandDisposable'])==null||_0x2331ec[_0x5ebace(0xaa)](),this[_0x5ebace(0x145)][_0x5ebace(0x128)](_0x5ebace(0xa7)),this[_0x5ebace(0x145)][_0x5ebace(0xd5)]();}[_0x10fbf1(0xea)](){return this['_status'];}[_0x10fbf1(0x136)](){const _0x10ab22=_0x10fbf1;this[_0x10ab22(0x12b)]||(this['_init']=!0x0,this['_collabSession'][_0x10ab22(0xbb)][_0x10ab22(0xb9)](_0x4263b7[_0x10ab22(0xb7)](this[_0x10ab22(0x15c)]))['subscribe'](_0x2bf4a2=>{const _0x5326e1=_0x10ab22;switch(_0x2bf4a2){case _0x435296[_0x5326e1(0x155)][_0x5326e1(0x76)]:this[_0x5326e1(0xc7)]();break;case _0x435296[_0x5326e1(0x155)]['ONLINE']:this[_0x5326e1(0x119)]();break;}}),this[_0x10ab22(0x14a)][_0x10ab22(0x151)]['pipe'](_0x4263b7[_0x10ab22(0xb7)](this[_0x10ab22(0x15c)]))['subscribe'](_0xc57a24=>{const _0x561188=_0x10ab22,{eventID:_0xf31e45}=_0xc57a24;switch(_0xf31e45){case _0x332357[_0x561188(0xd0)][_0x561188(0xa1)]:this['_handleNewHost'](_0xc57a24);break;case _0x332357['CollaborationEvent'][_0x561188(0x122)]:this[_0x561188(0x107)](_0xc57a24);break;case _0x332357['CollaborationEvent'][_0x561188(0x92)]:this[_0x561188(0x9f)]();break;case _0x332357[_0x561188(0xd0)]['NEW_CHANGESETS']:this[_0x561188(0x14f)](_0xc57a24);break;}}));}[_0x10fbf1(0x7c)](){const _0x5a7fbb=_0x10fbf1;this[_0x5a7fbb(0x14a)]['send']({'eventID':_0x332357[_0x5a7fbb(0xd0)][_0x5a7fbb(0x138)],'data':{'unitID':this[_0x5a7fbb(0x94)],'userID':this[_0x5a7fbb(0x14a)][_0x5a7fbb(0x157)]()}},this[_0x5a7fbb(0x94)]);}[_0x10fbf1(0xd2)](){const _0x5a23d7=_0x10fbf1;this['_status']===_0x5a23d7(0x115)&&(this[_0x5a23d7(0x145)][_0x5a23d7(0x128)](_0x5a23d7(0xa7)),this[_0x5a23d7(0x14a)][_0x5a23d7(0xae)]({'eventID':_0x332357[_0x5a23d7(0xd0)][_0x5a23d7(0x92)],'data':{'unitID':this[_0x5a23d7(0x94)]}},this[_0x5a23d7(0x94)]));}['startFollowing'](){const _0x4d27f7=_0x10fbf1;this[_0x4d27f7(0x7b)]===_0x4d27f7(0x11b)&&(this[_0x4d27f7(0x145)][_0x4d27f7(0x128)]('following'),this[_0x4d27f7(0x15f)]());}['stopFollowing'](){const _0x3ac408=_0x10fbf1;this[_0x3ac408(0x7b)]==='following'&&this[_0x3ac408(0x123)]();}[_0x10fbf1(0xbf)](_0x36b0b2){const _0x14d97d=_0x10fbf1,{presenter:_0x3fad88}=_0x36b0b2[_0x14d97d(0x11e)],_0x3b0229=this[_0x14d97d(0x14a)][_0x14d97d(0x157)]();this['_presenter']=_0x3fad88,_0x3fad88===_0x3b0229?(this[_0x14d97d(0x123)](),this['_startPresenting']()):this[_0x14d97d(0x7b)]!=='not-following'&&(this[_0x14d97d(0x12a)](),this[_0x14d97d(0x15f)]());}[_0x10fbf1(0xaf)](){const _0xd3d68d=_0x10fbf1,_0x44a6fc={'eventID':_0x332357[_0xd3d68d(0xd0)][_0xd3d68d(0x91)]};this[_0xd3d68d(0x14a)][_0xd3d68d(0xae)](_0x44a6fc,this[_0xd3d68d(0x94)]);}[_0x10fbf1(0x9f)](){const _0x117e33=_0x10fbf1;this[_0x117e33(0x8f)]=null,this['_status']!==_0x117e33(0x115)&&this[_0x117e33(0xc0)]();}['_handleNewChangeSets'](_0x16f481){const _0x128ce4=_0x10fbf1;if(this[_0x128ce4(0x7b)]===_0x128ce4(0x120)&&this['_presenter']===_0x16f481['data'][_0x128ce4(0xdf)]){const _0x3773f1=_0x332357[_0x128ce4(0x135)](_0x16f481[_0x128ce4(0x11e)])[_0x128ce4(0xfb)][_0x128ce4(0x144)]()[_0x128ce4(0x12e)](_0x1268d7=>_0x1268d7['id']===_0x504be1['InsertSheetMutation']['id']);if(_0x3773f1){const _0x4ee5d7=_0x3773f1[_0x128ce4(0x13e)]['unitId'],_0x1e74cd=_0x3773f1[_0x128ce4(0x13e)]['sheet']['id'];setTimeout(()=>{const _0x2c0a2d=_0x128ce4;this[_0x2c0a2d(0xb1)][_0x2c0a2d(0xe8)](_0x504be1[_0x2c0a2d(0x13d)]['id'],{'unitId':_0x4ee5d7,'subUnitId':_0x1e74cd},{'fromCollab':!0x0});});}}}[_0x10fbf1(0xb8)](){const _0x29341d=_0x10fbf1;this[_0x29341d(0x145)][_0x29341d(0x128)]('presenting');const _0x28a418=new Map(),_0x30142d=this[_0x29341d(0xab)]=new _0x1383de[(_0x29341d(0xa0))]();_0x30142d['add'](_0x1383de['toDisposable'](()=>{const _0x2b05fa=_0x29341d;_0x28a418[_0x2b05fa(0x90)](_0x6a5a5a=>_0x6a5a5a[_0x2b05fa(0xd5)]()),_0x28a418[_0x2b05fa(0xac)]();})),_0x30142d[_0x29341d(0x163)](this[_0x29341d(0xb1)]['onCommandExecuted'](_0x1b05c6=>{const _0x4a3bf8=_0x29341d;var _0x24e682;if(_0x1b05c6[_0x4a3bf8(0xee)]!==_0x1383de[_0x4a3bf8(0x147)]['OPERATION']||!this['_liveShareService'][_0x4a3bf8(0xfd)](_0x1b05c6['id']))return;const {id:_0x1f62c6}=_0x1b05c6;let _0x33ada1;_0x28a418[_0x4a3bf8(0xa3)](_0x1f62c6)?_0x33ada1=_0x28a418['get'](_0x1f62c6):(_0x33ada1=new _0x1520bf[(_0x4a3bf8(0x161))](),_0x28a418[_0x4a3bf8(0x10d)](_0x1f62c6,_0x33ada1),_0x33ada1[_0x4a3bf8(0xb9)](_0x4263b7['throttleTime']((_0x24e682=this[_0x4a3bf8(0xf1)][_0x4a3bf8(0x89)](_0xfe396a))!=null?_0x24e682:_0xc048b4,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x286a8b=>{const _0x5d5314=_0x4a3bf8;this[_0x5d5314(0x14a)][_0x5d5314(0xae)]({'eventID':_0x332357[_0x5d5314(0xd0)][_0x5d5314(0x122)],'data':{'unitID':this['_unitID'],'operations':{[_0x286a8b['id']]:{'id':_0x286a8b['id'],'params':JSON[_0x5d5314(0x106)](_0x286a8b['params'])}}}},this[_0x5d5314(0x94)]);})),_0x33ada1[_0x4a3bf8(0x128)](_0x1b05c6);})),this[_0x29341d(0xe2)]['getInitialStates'](this[_0x29341d(0x94)])[_0x29341d(0x90)](_0x407d6b=>this[_0x29341d(0x14a)][_0x29341d(0xae)]({'eventID':_0x332357[_0x29341d(0xd0)][_0x29341d(0x122)],'data':{'unitID':this[_0x29341d(0x94)],'operations':{[_0x407d6b['id']]:{'id':_0x407d6b['id'],'params':JSON[_0x29341d(0x106)](_0x407d6b[_0x29341d(0x13e)])}}}},this[_0x29341d(0x94)]));}[_0x10fbf1(0x12a)](){const _0x54d788=_0x10fbf1;var _0x5eaa7c;this[_0x54d788(0x145)]['next'](_0x54d788(0xa7)),(_0x5eaa7c=this[_0x54d788(0xab)])==null||_0x5eaa7c[_0x54d788(0xaa)](),this[_0x54d788(0xab)]=null;}[_0x10fbf1(0x15f)](){const _0xb59898=_0x10fbf1;var _0x26edb2;(_0x26edb2=this['_commandDisposable'])==null||_0x26edb2[_0xb59898(0xaa)](),this[_0xb59898(0x145)][_0xb59898(0x128)](_0xb59898(0x120));}[_0x10fbf1(0xc0)](){const _0x1bbf6e=_0x10fbf1;var _0x5d706f;this['_status$']['next'](_0x1bbf6e(0xa7)),(_0x5d706f=this['_commandDisposable'])==null||_0x5d706f[_0x1bbf6e(0xaa)](),this[_0x1bbf6e(0xab)]=null;}[_0x10fbf1(0x123)](){const _0x3ef57b=_0x10fbf1;var _0xbe5bdc;this['_status$']['next'](_0x3ef57b(0x11b)),(_0xbe5bdc=this['_commandDisposable'])==null||_0xbe5bdc[_0x3ef57b(0xaa)]();}['_handleOperation'](_0x556878){const _0x55f743=_0x10fbf1;if([_0x55f743(0x115),'not-following',_0x55f743(0x101)]['includes'](this[_0x55f743(0x7b)])||!_0x556878[_0x55f743(0x11e)][_0x55f743(0xca)]||_0x556878['data'][_0x55f743(0xca)]===this[_0x55f743(0x14a)]['getMemberID']())return;this[_0x55f743(0x7b)]===_0x55f743(0xa7)&&this[_0x55f743(0x15f)]();const _0x56fd5d=_0x556878['data'][_0x55f743(0x15b)];Object[_0x55f743(0x95)](_0x56fd5d)['forEach'](_0x51e1ed=>{const _0x13e501=_0x55f743;this[_0x13e501(0xb1)]['executeCommand'](_0x51e1ed['id'],_0x51e1ed[_0x13e501(0x13e)]?JSON[_0x13e501(0xef)](_0x51e1ed[_0x13e501(0x13e)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2a73b1=_0x10fbf1;var _0x5970b6;this[_0x2a73b1(0x145)]['next']('offline'),(_0x5970b6=this[_0x2a73b1(0xab)])==null||_0x5970b6[_0x2a73b1(0xaa)]();}[_0x10fbf1(0x119)](){this['_status$']['next']('idle'),this['_fetchOperations']();}},_0x3d5254[_0x10fbf1(0xfc)]=_0xccc100([_0x338e90(0x2,_0x1383de['IConfigService']),_0x338e90(0x3,_0x1383de[_0x10fbf1(0x82)](_0x37da54)),_0x338e90(0x4,_0x1383de['ICommandService'])],_0x3d5254[_0x10fbf1(0xfc)]);function _0x6a3888(){const _0x3971cb=_0x10fbf1,_0x3f34e1=_0x47bd3b[_0x3971cb(0x114)](_0x3d5254[_0x3971cb(0x84)]),_0x11d539=_0x47bd3b[_0x3971cb(0x114)](_0x1383de[_0x3971cb(0x9c)]),_0x5d47ca=_0x47bd3b[_0x3971cb(0xe6)](()=>_0x11d539[_0x3971cb(0x11a)](_0x1383de['UniverInstanceType'][_0x3971cb(0xd3)]),void 0x0,!0x1,[]),[_0x17078b,_0x9f9d75]=_0xeb3c95['useState'](null),[_0x11568e,_0x33a63a]=_0xeb3c95[_0x3971cb(0x109)](_0x4e654a[_0x3971cb(0xcd)]),_0xb35f19=_0xeb3c95[_0x3971cb(0x11d)](null);return _0xeb3c95[_0x3971cb(0xa4)](()=>(_0x5d47ca&&_0x3f34e1[_0x3971cb(0x12d)](_0x5d47ca[_0x3971cb(0xa2)]())[_0x3971cb(0x10b)](_0xe88a01=>{const _0x559fc8=_0x3971cb;_0x9f9d75(_0xe88a01),_0xb35f19[_0x559fc8(0xe4)]=_0xe88a01['status$'][_0x559fc8(0xf8)](_0x53e9a1=>{_0x33a63a(_0x53e9a1);});}),()=>{const _0x370d0c=_0x3971cb;var _0x7bde8e;(_0x7bde8e=_0xb35f19[_0x370d0c(0xe4)])==null||_0x7bde8e[_0x370d0c(0x153)](),_0xb35f19[_0x370d0c(0xe4)]=null;}),[_0x5d47ca,_0x3f34e1]),_0x17078b?_0x561cf3['jsx'](_0x47ac77[_0x3971cb(0xec)],{'align':_0x3971cb(0xc1),'disabled':_0x11568e===_0x4e654a[_0x3971cb(0x76)],'className':_0x3971cb(0x139),'overlay':_0x561cf3['jsx'](_0x1c3ed5,{'status':_0x11568e,'coordinator':_0x17078b}),'children':_0x561cf3[_0x3971cb(0x127)](_0x3971cb(0xdb),{'className':_0x47ac77[_0x3971cb(0xff)](_0x3971cb(0xd9),{'univer-cursor-not-allowed':_0x11568e===_0x4e654a[_0x3971cb(0x76)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11568e!==_0x4e654a[_0x3971cb(0x76)]}),'type':_0x3971cb(0xdb),'children':_0x561cf3[_0x3971cb(0x127)](_0x2ad1f1,{'className':_0x3971cb(0x124)})})}):null;}function _0x1c3ed5(_0x384fa2){const _0x38db66=_0x10fbf1,{status:_0x571363,coordinator:_0x324110}=_0x384fa2;switch(_0x571363){case _0x4e654a[_0x38db66(0xcd)]:return _0x561cf3[_0x38db66(0x127)](_0x4e09ec,{'coordinator':_0x324110});case _0x4e654a[_0x38db66(0x14e)]:return _0x561cf3['jsx'](_0xd1b2fd,{'coordinator':_0x324110});case _0x4e654a[_0x38db66(0x12f)]:return _0x561cf3[_0x38db66(0x127)](_0x157a33,{'coordinator':_0x324110});case _0x4e654a[_0x38db66(0x76)]:return _0x561cf3[_0x38db66(0x127)](_0x288bdb,{});case _0x4e654a[_0x38db66(0xc8)]:return _0x561cf3[_0x38db66(0x127)](_0x129eee,{'coordinator':_0x324110});default:return null;}}function _0x4e09ec(_0x121565){const _0x66e1b7=_0x10fbf1,{coordinator:_0x4dea3d}=_0x121565;return _0x561cf3[_0x66e1b7(0xf0)](_0x561cf3[_0x66e1b7(0xcc)],{'children':[_0x561cf3[_0x66e1b7(0x127)]('div',{'className':_0x66e1b7(0x15e),'children':_0x66e1b7(0xfe)}),_0x561cf3[_0x66e1b7(0x127)](_0x47ac77[_0x66e1b7(0x159)],{'onClick':()=>_0x4dea3d[_0x66e1b7(0x7c)](),'children':_0x66e1b7(0xed)})]});}function _0xd1b2fd(_0x389539){const _0x28a682=_0x10fbf1,{coordinator:_0x2266da}=_0x389539;return _0x561cf3[_0x28a682(0xf0)](_0x561cf3['Fragment'],{'children':[_0x561cf3[_0x28a682(0x127)](_0x28a682(0x148),{'className':_0x28a682(0x15e),'children':_0x28a682(0x86)}),_0x561cf3[_0x28a682(0x127)](_0x47ac77[_0x28a682(0x159)],{'onClick':()=>_0x2266da[_0x28a682(0x8e)](),'children':_0x28a682(0xe0)})]});}function _0x157a33(_0x10be12){const _0x5b58a1=_0x10fbf1,{coordinator:_0x2260c2}=_0x10be12;return _0x561cf3[_0x5b58a1(0xf0)](_0x561cf3[_0x5b58a1(0xcc)],{'children':[_0x561cf3[_0x5b58a1(0x127)](_0x5b58a1(0x148),{'className':_0x5b58a1(0x15e),'children':_0x5b58a1(0xde)}),_0x561cf3['jsx'](_0x47ac77[_0x5b58a1(0x159)],{'variant':'text','onClick':()=>_0x2260c2[_0x5b58a1(0x102)](),'children':_0x5b58a1(0xf2)})]});}function _0x129eee(_0x43ee50){const _0xe48db6=_0x10fbf1,{coordinator:_0x8812a7}=_0x43ee50;return _0x561cf3['jsxs'](_0x561cf3[_0xe48db6(0xcc)],{'children':[_0x561cf3['jsx']('div',{'className':_0xe48db6(0x15e),'children':_0xe48db6(0xcb)}),_0x561cf3['jsx'](_0x47ac77[_0xe48db6(0x159)],{'variant':_0xe48db6(0x164),'onClick':()=>_0x8812a7[_0xe48db6(0xd2)](),'children':_0xe48db6(0x8c)})]});}function _0x288bdb(){const _0x48d0cb=_0x10fbf1;return _0x561cf3['jsx'](_0x561cf3[_0x48d0cb(0xcc)],{'children':_0x48d0cb(0x134)});}var _0x263357=Object['getOwnPropertyDescriptor'],_0x42b12b=(_0xa0f798,_0x36b549,_0x54b497,_0x137d58)=>{const _0x4e83a0=_0x10fbf1;for(var _0x504a48=_0x137d58>0x1?void 0x0:_0x137d58?_0x263357(_0x36b549,_0x54b497):_0x36b549,_0x47bff6=_0xa0f798[_0x4e83a0(0x143)]-0x1,_0x36c24e;_0x47bff6>=0x0;_0x47bff6--)(_0x36c24e=_0xa0f798[_0x47bff6])&&(_0x504a48=_0x36c24e(_0x504a48)||_0x504a48);return _0x504a48;},_0x4a4cea=(_0xbd7568,_0x2ddc60)=>(_0x3731e0,_0x312d33)=>_0x2ddc60(_0x3731e0,_0x312d33,_0xbd7568);_0x3d5254['DesktopLiveShareController']=class extends _0x1383de[_0x10fbf1(0x104)]{constructor(_0x1fef07,_0x53e8af){const _0x3c3d1f=_0x10fbf1;super(),this[_0x3c3d1f(0xf3)]=_0x1fef07,this[_0x3c3d1f(0xb3)]=_0x53e8af,this[_0x3c3d1f(0xd4)]();}['_mountLiveShare'](){const _0x560b77=_0x10fbf1;this['disposeWithMe'](this[_0x560b77(0xb3)][_0x560b77(0xb2)](_0x47bd3b[_0x560b77(0xb0)]['HEADER_MENU'],()=>_0x47bd3b[_0x560b77(0x117)](_0x6a3888,this[_0x560b77(0xf3)])));}},_0x3d5254[_0x10fbf1(0xad)]=_0x42b12b([_0x4a4cea(0x0,_0x1383de[_0x10fbf1(0x82)](_0x1383de[_0x10fbf1(0xda)])),_0x4a4cea(0x1,_0x47bd3b[_0x10fbf1(0x10f)])],_0x3d5254[_0x10fbf1(0xad)]);const _0xc3ce09=_0x10fbf1(0x10c),_0xaad317={};var _0x4f2e8d=Object[_0x10fbf1(0xc6)],_0x174a59=(_0x5d3281,_0x5c2a6e,_0x592081,_0x1ea5c0)=>{for(var _0x37850d=_0x1ea5c0>0x1?void 0x0:_0x1ea5c0?_0x4f2e8d(_0x5c2a6e,_0x592081):_0x5c2a6e,_0x57cb5b=_0x5d3281['length']-0x1,_0x3371da;_0x57cb5b>=0x0;_0x57cb5b--)(_0x3371da=_0x5d3281[_0x57cb5b])&&(_0x37850d=_0x3371da(_0x37850d)||_0x37850d);return _0x37850d;},_0x27dbee=(_0x475cd4,_0x55cb05)=>(_0x3fc119,_0x507a09)=>_0x55cb05(_0x3fc119,_0x507a09,_0x475cd4);let _0x131f24=class extends _0x1383de[_0x10fbf1(0x104)]{constructor(_0x442e8c){const _0x4cfab9=_0x10fbf1;super(),this[_0x4cfab9(0xe2)]=_0x442e8c,this[_0x4cfab9(0x12b)]();}['_init'](){const _0x4f043a=_0x10fbf1;[_0x256bc6['SetZoomRatioOperation']['id'],_0x256bc6[_0x4f043a(0x77)]['id'],_0x504be1[_0x4f043a(0x13d)]['id']][_0x4f043a(0x90)](_0x5d25ca=>{const _0xdb5534=_0x4f043a;this[_0xdb5534(0xc4)](this[_0xdb5534(0xe2)][_0xdb5534(0xb6)](_0x5d25ca));});}};_0x131f24=_0x174a59([_0x27dbee(0x0,_0x1383de[_0x10fbf1(0x82)](_0x37da54))],_0x131f24);var _0x403cb2=Object[_0x10fbf1(0x85)],_0x557c18=Object['getOwnPropertyDescriptor'],_0x14edd4=(_0x24ee40,_0x1eee8b,_0x23d19d)=>_0x1eee8b in _0x24ee40?_0x403cb2(_0x24ee40,_0x1eee8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23d19d}):_0x24ee40[_0x1eee8b]=_0x23d19d,_0x14153d=(_0x57334e,_0x12f2a0,_0x23ab9d,_0x2c8a43)=>{for(var _0xb036f5=_0x2c8a43>0x1?void 0x0:_0x2c8a43?_0x557c18(_0x12f2a0,_0x23ab9d):_0x12f2a0,_0x3f716a=_0x57334e['length']-0x1,_0x370d3e;_0x3f716a>=0x0;_0x3f716a--)(_0x370d3e=_0x57334e[_0x3f716a])&&(_0xb036f5=_0x370d3e(_0xb036f5)||_0xb036f5);return _0xb036f5;},_0x422854=(_0x5f5b0f,_0x38983a)=>(_0x105904,_0x5413e5)=>_0x38983a(_0x105904,_0x5413e5,_0x5f5b0f),_0x5d00d3=(_0x30736d,_0xbf716a,_0x47b962)=>_0x14edd4(_0x30736d,typeof _0xbf716a!=_0x10fbf1(0x105)?_0xbf716a+'':_0xbf716a,_0x47b962);const _0xc63d4e=_0x10fbf1(0xf9);_0x3d5254[_0x10fbf1(0x150)]=class extends _0x1383de['Plugin']{constructor(_0x26091b=_0xaad317,_0x2aae26,_0x4ee9a8){const _0x560ab9=_0x10fbf1;super(),this['_config']=_0x26091b,this[_0x560ab9(0xf3)]=_0x2aae26,this[_0x560ab9(0xf1)]=_0x4ee9a8;const {..._0xd75433}=_0x1383de[_0x560ab9(0x113)]({},_0xaad317,this[_0x560ab9(0xe5)]);this[_0x560ab9(0xf1)][_0x560ab9(0xfa)](_0xc3ce09,_0xd75433);}[_0x10fbf1(0x10e)](){const _0x4491=_0x10fbf1;_0x1383de['registerDependencies'](this['_injector'],_0x1383de[_0x4491(0x15a)]([[_0x37da54],[_0x3d5254['LiveShareController']],[_0x131f24],[_0x3d5254['DesktopLiveShareController']]],this[_0x4491(0xe5)]['override'])),_0x1383de[_0x4491(0x98)](this[_0x4491(0xf3)],[[_0x131f24]]);}['onRendered'](){const _0x580f8b=_0x10fbf1;_0x1383de['touchDependencies'](this[_0x580f8b(0xf3)],[[_0x3d5254[_0x580f8b(0xad)]]]);}},_0x5d00d3(_0x3d5254[_0x10fbf1(0x150)],_0x10fbf1(0xee),_0x1383de[_0x10fbf1(0xa9)][_0x10fbf1(0x7e)]),_0x5d00d3(_0x3d5254['UniverLiveSharePlugin'],'pluginName',_0xc63d4e),_0x3d5254['UniverLiveSharePlugin']=_0x14153d([_0x1383de['DependentOn'](_0x435296['UniverCollaborationClientPlugin']),_0x422854(0x1,_0x1383de[_0x10fbf1(0x82)](_0x1383de[_0x10fbf1(0xda)])),_0x422854(0x2,_0x1383de[_0x10fbf1(0x142)])],_0x3d5254[_0x10fbf1(0x150)]),_0x3d5254[_0x10fbf1(0x14b)]=_0x6a3888,_0x3d5254[_0x10fbf1(0x97)]=_0x37da54,_0x3d5254['LiveShareStatus']=_0x4e654a,Object[_0x10fbf1(0x85)](_0x3d5254,Symbol[_0x10fbf1(0xcf)],{'value':'Module'});}));function _0xe5a6(){const _0x2f85ac=['_config','useObservable','map','executeCommand','none','getStatus','rxjs/operators','Dropdown','Start','type','parse','jsxs','_configService','Start\x20following','_injector','idSuffix','children','object','UniverDesign','subscribe','UNIVER_LIVE_SHARE_PLUGIN','setConfig','mutations','LiveShareCoordinator','shouldShareOperation','Present\x20this\x20document','clsx','forwardRef','offline','startFollowing','replace','Disposable','symbol','stringify','_handleOperation','getTypeOfUnitAdded$','useState','UniverIcon','then','live-share.config','set','onStarting','IUIPartsService','_entities','amd','fill','merge','useDependency','presenting','react','connectInjector','exports','_handleOnline','getCurrentTypeOfUnit$','not-following','path','useRef','data','UniverCore','following','@univerjs/design','LIVESHARE_OPERATION','_stopFollowing','univer-size-4','colorChannel1','mask','jsx','next','tag','_stopPresenting','_init','toDisposable','getLiveShareCoordinator','find','NOT_FOLLOWING','defs','@univerjs-pro/collaboration-client','UniverUi','get','You\x27are\x20offline.','parseProtocolChangeset','init','UniverSheetsUi','LIVESHARE_REQUEST_HOST','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','_startLiveShareCoordinator','assign','99BtUDvH','SetWorksheetActiveOperation','params','RxDisposable','@univerjs/sheets-ui','30azyaxO','IConfigService','length','reverse','_status$','includes','CommandType','div','SAME_OPERATION_SHARE_INTERVAL','_collabSession','LiveShare','21OZAsUy','toString','FOLLOWING','_handleNewChangeSets','UniverLiveSharePlugin','event$','url(#$1','unsubscribe','BehaviorSubject','SessionStatus','getInitialStates','getMemberID','UniverProCollaborationClient','Button','mergeOverrideWithDependencies','operations','dispose$','react/jsx-runtime','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startFollowing','657975LYrvpg','Subject','@univerjs/core','add','default','_univerInstanceService','OFFLINE','SetScrollOperation','UniverProLiveShare','svg','React','_status','tryStartPresenting','delete','UNIVER_UNKNOWN','http://www.w3.org/2000/svg','xlink:href','defIds','Inject','getValue','LiveShareController','defineProperty','You\x27re\x20following\x20the\x20presenter','1EmDFFA','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','getConfig','operators','_sharedOperations','Stop\x20presenting','@univerjs-pro/collaboration','stopFollowing','_presenter','forEach','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_TERMINATE','48570ojrGjz','_unitID','values','attrs','LiveShareService','touchDependencies','219160hrOBms','random','entries','IUniverInstanceService','createElement','substring','_handleTerminate','DisposableCollection','LIVESHARE_NEW_HOST','getUnitId','has','useEffect','87730ADQPNX','asObservable','idle','@univerjs/ui','UniverInstanceType','dispose','_commandDisposable','clear','DesktopLiveShareController','send','_fetchOperations','BuiltInUIPart','_commandService','registerComponent','_uiPartsService','9429156SIJoFH','createInstance','registerSharedOperation','takeUntil','_startPresenting','pipe','0\x200\x2017\x2017','sessionStatus$','evenodd','requireSession','72272widTdw','_handleNewHost','_beIdle','end','rxjs','_collabSessionService','disposeWithMe','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','getOwnPropertyDescriptor','_handleOffline','PRESENTING','currentColor','presenter','You\x27re\x20presenting\x20the\x20document','Fragment','IDLE','1em','toStringTag','CollaborationEvent','UniverProCollaboration','stopPresenting','UNIVER_SHEET','_mountLiveShare','complete','LiveShareIcon','displayName','UniverSheets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Injector','button','function','_reporters','You\x27re\x20not\x20following\x20the\x20presenter','memberID','Stop\x20following','string','_liveShareService','1113430FQIxXc','current'];_0xe5a6=function(){return _0x2f85ac;};return _0xe5a6();}
|
|
1
|
+
function _0x1f1b(){const _0x3ea9eb=['currentColor','CollaborationEvent','complete','ICommandService','clear','getMemberID','615040SbQTVW','clsx','useRef','_init','LiveShareController','next','registerSharedOperation','Button','subscribe','PRESENTING','rxjs','amd','IConfigService','react','_entities','NEW_CHANGESETS','2abluJu','UNIVER_UNKNOWN','startFollowing','children','get','override','LIVESHARE_OPERATION','toDisposable','1641384aNtNYy','_startLiveShareCoordinator','substring','SetZoomRatioOperation','defineProperty','defs','createElement','CollaborationSessionService','unitId','executeCommand','object','_fetchOperations','getOwnPropertyDescriptor','registerDependencies','presenting','dispose$','Module','forwardRef','merge','391518uUqNZu','74915xxkutk','_commandService','mutations','Injector','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','current','_commandDisposable','attrs','_uiPartsService','_handleOnline','ONLINE','_stopPresenting','type','LIVESHARE_NEW_HOST','trim','init','UniverUi','_presenter','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','_unitID','tryStartPresenting','send','has','BehaviorSubject','button','_sharedOperations','SAME_OPERATION_SHARE_INTERVAL','Subject','_reporters','random','_beIdle','@univerjs/design','add','Inject','getConfig','LIVESHARE_REQUEST_HOST','SetScrollOperation','44851PtqTBk','getCurrentTypeOfUnit$','live-share.config','_liveShareService','0\x200\x2017\x2017','disposeWithMe','120jAlrpA','params','@univerjs-pro/collaboration','pluginName','UNIVER_LIVE_SHARE_PLUGIN','data','length','RxDisposable','OFFLINE','dispose','Plugin','SessionStatus','mergeOverrideWithDependencies','SetWorksheetActiveOperation','@univerjs-pro/collaboration-client','IUniverInstanceService','status$','colorChannel1','getInitialStates','unsubscribe','IUIPartsService','_handleOperation','replace','not-following','Present\x20this\x20document','setConfig','connectInjector','stopFollowing','BuiltInUIPart','_handleNewChangeSets','offline','values','memberID','_handleOffline','_univerInstanceService','sheet','Disposable','_config','default','@univerjs/sheets-ui','_stopFollowing','string','xlink:href','jsx','UniverDesign','function','IDLE','entries','_collabSession','div','_configService','tag','UniverProCollaboration','mask','useEffect','presenter','idSuffix','1em','UniverInstanceType','UniverLiveSharePlugin','jsxs','displayName','LIVESHARE_TERMINATE','_handleNewHost','throttleTime','useDependency','NOT_FOLLOWING','univerjs-icon\x20univerjs-icon-','_collabSessionService','You\x27are\x20offline.','UniverSheets','_startFollowing','LIVESHARE_FETCH_OPERATIONS','Start','getStatus','none','http://www.w3.org/2000/svg','map','takeUntil','live-share-icon','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_status','toString','LiveShareCoordinator','UniverIcon','path','LiveShareStatus','set','@univerjs/core','getLiveShareCoordinator','Fragment','from','find','touchDependencies','_mountLiveShare','shouldShareOperation','OPERATION','stringify','includes','evenodd','defIds','UNIVER_SHEET','event$','105YxWEJr','FOLLOWING','url(#$1','following','sessionStatus$','getLiveShareCoordinatorSync','registerInitialStateReporter','Dropdown','UniverProCollaborationClient','symbol','_status$','onRendered','UniverCollaborationClientPlugin','delete','fill','getUnitId','requireSession','idle','forEach','101376ToqWEa','react/jsx-runtime','Stop\x20presenting','useState','end','stopPresenting','univer-size-4','getTypeOfUnitAdded$','operations','DesktopLiveShareController','rxjs/operators','2405976KiDGzD','pipe','_injector','getTypeOfUnitDisposed$','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleTerminate','parse'];_0x1f1b=function(){return _0x3ea9eb;};return _0x1f1b();}function _0x59c0(_0x5838ab,_0x552b87){_0x5838ab=_0x5838ab-0x177;const _0x1f1ba7=_0x1f1b();let _0x59c0f4=_0x1f1ba7[_0x5838ab];return _0x59c0f4;}(function(_0x3ed9d5,_0x379d24){const _0x21ef92=_0x59c0,_0x518997=_0x3ed9d5();while(!![]){try{const _0x1aae25=parseInt(_0x21ef92(0x1e5))/0x1*(parseInt(_0x21ef92(0x1a3))/0x2)+parseInt(_0x21ef92(0x186))/0x3+-parseInt(_0x21ef92(0x1eb))/0x4*(parseInt(_0x21ef92(0x1bf))/0x5)+-parseInt(_0x21ef92(0x17b))/0x6*(parseInt(_0x21ef92(0x252))/0x7)+parseInt(_0x21ef92(0x1ab))/0x8+parseInt(_0x21ef92(0x1be))/0x9+parseInt(_0x21ef92(0x193))/0xa;if(_0x1aae25===_0x379d24)break;else _0x518997['push'](_0x518997['shift']());}catch(_0x279bce){_0x518997['push'](_0x518997['shift']());}}}(_0x1f1b,0x6edcc),function(_0x1e84a9,_0x1d21d1){const _0x2922b5=_0x59c0;typeof exports==_0x2922b5(0x1b5)&&typeof module<'u'?_0x1d21d1(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==_0x2922b5(0x218)&&define[_0x2922b5(0x19e)]?define(['exports',_0x2922b5(0x243),'@univerjs/ui',_0x2922b5(0x17c),_0x2922b5(0x1df),_0x2922b5(0x1a0),_0x2922b5(0x1ed),_0x2922b5(0x1f9),'@univerjs/sheets','rxjs',_0x2922b5(0x185),_0x2922b5(0x212)],_0x1d21d1):(_0x1e84a9=typeof globalThis<'u'?globalThis:_0x1e84a9||self,_0x1d21d1(_0x1e84a9['UniverProLiveShare']={},_0x1e84a9['UniverCore'],_0x1e84a9[_0x2922b5(0x1d0)],_0x1e84a9['React'],_0x1e84a9[_0x2922b5(0x217)],_0x1e84a9['React'],_0x1e84a9[_0x2922b5(0x21f)],_0x1e84a9[_0x2922b5(0x25a)],_0x1e84a9[_0x2922b5(0x231)],_0x1e84a9['rxjs'],_0x1e84a9[_0x2922b5(0x19d)]['operators'],_0x1e84a9['UniverSheetsUi']));}(this,function(_0x3f8dd7,_0x5de346,_0xbe2261,_0x3f7f80,_0x467f51,_0x56f208,_0x23135f,_0x9963ee,_0x224e4b,_0x2feeac,_0x10b0ec,_0x17684d){'use strict';const _0x3f4303=_0x59c0;var _0x235610=Object[_0x3f4303(0x1af)],_0x3adf7c=(_0x707d67,_0x476bbc,_0x3af2a2)=>_0x476bbc in _0x707d67?_0x235610(_0x707d67,_0x476bbc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3af2a2}):_0x707d67[_0x476bbc]=_0x3af2a2,_0x267f59=(_0x485e13,_0x2699f3,_0x4b4b2c)=>_0x3adf7c(_0x485e13,typeof _0x2699f3!=_0x3f4303(0x25b)?_0x2699f3+'':_0x2699f3,_0x4b4b2c);function _0x2bb265({ref:_0x5dd360,..._0x1d3bba}){const _0x44450f=_0x3f4303,{icon:_0x6ffec8,id:_0x464444,className:_0x2b5319,extend:_0x3ea3c0,..._0x48f605}=_0x1d3bba,_0x4c4ae6=(_0x44450f(0x22e)+_0x464444+'\x20'+(_0x2b5319||''))[_0x44450f(0x1ce)](),_0x292230=_0x56f208[_0x44450f(0x195)]('_'+_0x52bedf());return _0x5bdb7c(_0x6ffec8,''+_0x464444,{'defIds':_0x6ffec8[_0x44450f(0x24f)],'idSuffix':_0x292230[_0x44450f(0x1c5)]},{'ref':_0x5dd360,'className':_0x4c4ae6,..._0x48f605},_0x3ea3c0);}function _0x5bdb7c(_0x3cf796,_0x1a7f17,_0x1074e7,_0x4b3076,_0x156dda){const _0x1398ba=_0x3f4303;return _0x56f208[_0x1398ba(0x1b1)](_0x3cf796[_0x1398ba(0x21e)],{'key':_0x1a7f17,..._0x5b37e7(_0x3cf796,_0x1074e7,_0x156dda),..._0x4b3076},(_0x5af350(_0x3cf796,_0x1074e7)[_0x1398ba(0x1a6)]||[])['map']((_0x492f04,_0x4f5a89)=>_0x5bdb7c(_0x492f04,_0x1a7f17+'-'+_0x3cf796[_0x1398ba(0x21e)]+'-'+_0x4f5a89,_0x1074e7,void 0x0,_0x156dda)));}function _0x5b37e7(_0x112d6c,_0x296487,_0x5889da){const _0x1dda17=_0x3f4303,_0x13e531={..._0x112d6c[_0x1dda17(0x1c7)]};_0x5889da!=null&&_0x5889da[_0x1dda17(0x1fc)]&&_0x13e531[_0x1dda17(0x260)]==='colorChannel1'&&(_0x13e531[_0x1dda17(0x260)]=_0x5889da['colorChannel1']),_0x112d6c[_0x1dda17(0x21e)]===_0x1dda17(0x220)&&_0x13e531['id']&&(_0x13e531['id']=_0x13e531['id']+_0x296487['idSuffix']),Object['entries'](_0x13e531)[_0x1dda17(0x17a)](([_0x581763,_0x41fd74])=>{const _0xf11d08=_0x1dda17;_0x581763===_0xf11d08(0x220)&&typeof _0x41fd74=='string'&&(_0x13e531[_0x581763]=_0x41fd74['replace'](/url\(#(.*)\)/,_0xf11d08(0x254)+_0x296487[_0xf11d08(0x223)]+')'));});const {defIds:_0x3f9ec4}=_0x296487;return!_0x3f9ec4||_0x3f9ec4[_0x1dda17(0x1f1)]===0x0||(_0x112d6c[_0x1dda17(0x21e)]==='use'&&_0x13e531[_0x1dda17(0x215)]&&(_0x13e531['xlink:href']=_0x13e531['xlink:href']+_0x296487['idSuffix']),Object[_0x1dda17(0x21a)](_0x13e531)[_0x1dda17(0x17a)](([_0x31d5e2,_0x596293])=>{const _0x2659ff=_0x1dda17;typeof _0x596293==_0x2659ff(0x214)&&(_0x13e531[_0x31d5e2]=_0x596293[_0x2659ff(0x201)](/url\(#(.*)\)/,_0x2659ff(0x254)+_0x296487['idSuffix']+')'));})),_0x13e531;}function _0x5af350(_0x41ef2e,_0x259943){const _0x4efaad=_0x3f4303;var _0x4e8873;const {defIds:_0x3b6fea}=_0x259943;return!_0x3b6fea||_0x3b6fea['length']===0x0?_0x41ef2e:_0x41ef2e[_0x4efaad(0x21e)]===_0x4efaad(0x1b0)&&((_0x4e8873=_0x41ef2e[_0x4efaad(0x1a6)])!=null&&_0x4e8873[_0x4efaad(0x1f1)])?{..._0x41ef2e,'children':_0x41ef2e['children']['map'](_0x2ae1cb=>typeof _0x2ae1cb['attrs']['id']==_0x4efaad(0x214)&&_0x3b6fea&&_0x3b6fea[_0x4efaad(0x24d)](_0x2ae1cb[_0x4efaad(0x1c7)]['id'])?{..._0x2ae1cb,'attrs':{..._0x2ae1cb['attrs'],'id':_0x2ae1cb[_0x4efaad(0x1c7)]['id']+_0x259943[_0x4efaad(0x223)]}}:_0x2ae1cb)}:_0x41ef2e;}function _0x52bedf(){const _0xae57e7=_0x3f4303;return Math[_0xae57e7(0x1dd)]()[_0xae57e7(0x23d)](0x24)[_0xae57e7(0x1ad)](0x2,0x8);}_0x2bb265[_0x3f4303(0x228)]=_0x3f4303(0x23f);const _0x5cdc3c={'tag':'svg','attrs':{'xmlns':_0x3f4303(0x237),'fill':_0x3f4303(0x236),'viewBox':_0x3f4303(0x1e9),'width':_0x3f4303(0x224),'height':_0x3f4303(0x224)},'children':[{'tag':_0x3f4303(0x240),'attrs':{'fill':_0x3f4303(0x18d),'d':_0x3f4303(0x1c3)}},{'tag':_0x3f4303(0x240),'attrs':{'fill':_0x3f4303(0x18d),'d':_0x3f4303(0x1d2),'fillRule':'evenodd','clipRule':_0x3f4303(0x24e)}}]},_0x39d085=_0x56f208[_0x3f4303(0x1bc)](function(_0x508a09,_0x3b54d2){const _0x2c799e=_0x3f4303;return _0x56f208[_0x2c799e(0x1b1)](_0x2bb265,Object['assign']({},_0x508a09,{'id':_0x2c799e(0x23a),'ref':_0x3b54d2,'icon':_0x5cdc3c}));});_0x39d085[_0x3f4303(0x228)]='LiveShareIcon';class _0x43e8b2 extends _0x5de346[_0x3f4303(0x20f)]{constructor(){const _0x258716=_0x3f4303;super(...arguments),_0x267f59(this,_0x258716(0x1d9),new Set()),_0x267f59(this,_0x258716(0x1dc),new Set());}[_0x3f4303(0x199)](_0x5008e2){const _0x4abf70=_0x3f4303;return this[_0x4abf70(0x1d9)][_0x4abf70(0x1e0)](_0x5008e2),_0x5de346[_0x4abf70(0x1aa)](()=>this['_sharedOperations'][_0x4abf70(0x25f)](_0x5008e2));}[_0x3f4303(0x258)](_0x37bd8b){const _0x459c26=_0x3f4303;return this['_reporters'][_0x459c26(0x1e0)](_0x37bd8b),_0x5de346[_0x459c26(0x1aa)](()=>this[_0x459c26(0x1dc)]['delete'](_0x37bd8b));}[_0x3f4303(0x24a)](_0x5bf8ff){const _0x4b2628=_0x3f4303;return this[_0x4b2628(0x1d9)][_0x4b2628(0x1d6)](_0x5bf8ff);}[_0x3f4303(0x1fd)](_0x8c9f08){const _0x20ce65=_0x3f4303;return Array[_0x20ce65(0x246)](this['_reporters'])[_0x20ce65(0x238)](_0x26455b=>_0x26455b(_0x8c9f08));}}var _0x28b623=Object[_0x3f4303(0x1b7)],_0x39e6df=(_0x4d6338,_0x5d5fb0,_0x5b5573,_0x588972)=>{const _0x53ee65=_0x3f4303;for(var _0xfc7fb3=_0x588972>0x1?void 0x0:_0x588972?_0x28b623(_0x5d5fb0,_0x5b5573):_0x5d5fb0,_0x59c9dd=_0x4d6338[_0x53ee65(0x1f1)]-0x1,_0x4e51e5;_0x59c9dd>=0x0;_0x59c9dd--)(_0x4e51e5=_0x4d6338[_0x59c9dd])&&(_0xfc7fb3=_0x4e51e5(_0xfc7fb3)||_0xfc7fb3);return _0xfc7fb3;},_0x350ce=(_0x206985,_0x3cc43c)=>(_0x504cd9,_0x3156a9)=>_0x3cc43c(_0x504cd9,_0x3156a9,_0x206985);_0x3f8dd7[_0x3f4303(0x197)]=class extends _0x5de346[_0x3f4303(0x1f2)]{constructor(_0x1a2a68,_0x217f25,_0xe79c05){const _0x59a3ef=_0x3f4303;super(),_0x267f59(this,_0x59a3ef(0x1a1),new Map()),(this[_0x59a3ef(0x20d)]=_0x1a2a68,this[_0x59a3ef(0x188)]=_0x217f25,this['_collabSessionService']=_0xe79c05,this[_0x59a3ef(0x196)]());}async[_0x3f4303(0x244)](_0x4777d3){const _0x4ff69c=_0x3f4303;return this[_0x4ff69c(0x1a1)][_0x4ff69c(0x1d6)](_0x4777d3)||await this['_startLiveShareCoordinator'](_0x4777d3),this[_0x4ff69c(0x1a1)][_0x4ff69c(0x1a7)](_0x4777d3);}[_0x3f4303(0x257)](_0x901d48){const _0x29378f=_0x3f4303;var _0x46ecdb;return(_0x46ecdb=this[_0x29378f(0x1a1)][_0x29378f(0x1a7)](_0x901d48))!=null?_0x46ecdb:null;}[_0x3f4303(0x196)](){const _0x1aa3a3=_0x3f4303;this[_0x1aa3a3(0x20d)][_0x1aa3a3(0x182)](_0x5de346[_0x1aa3a3(0x225)][_0x1aa3a3(0x250)])[_0x1aa3a3(0x187)](_0x10b0ec[_0x1aa3a3(0x239)](this['dispose$']))[_0x1aa3a3(0x19b)](async _0x1c4462=>{const _0x32858d=_0x1aa3a3,_0x4fe4b9=_0x1c4462[_0x32858d(0x177)]();this['_entities'][_0x32858d(0x1d6)](_0x4fe4b9)||this['_startLiveShareCoordinator'](_0x4fe4b9);}),this['_univerInstanceService'][_0x1aa3a3(0x189)](_0x5de346[_0x1aa3a3(0x225)][_0x1aa3a3(0x250)])[_0x1aa3a3(0x187)](_0x10b0ec[_0x1aa3a3(0x239)](this[_0x1aa3a3(0x1ba)]))['subscribe'](_0x4d33c5=>{const _0x23247c=_0x1aa3a3,_0x33a073=_0x4d33c5[_0x23247c(0x177)](),_0x3f2477=this[_0x23247c(0x1a1)][_0x23247c(0x1a7)](_0x33a073);_0x3f2477==null||_0x3f2477['dispose']();});}async[_0x3f4303(0x1ac)](_0x248998){const _0x329497=_0x3f4303,_0x556757=await this[_0x329497(0x22f)][_0x329497(0x178)](_0x248998),_0x51e701=this[_0x329497(0x188)]['createInstance'](_0x3f8dd7['LiveShareCoordinator'],_0x248998,_0x556757);return _0x51e701['init'](),this[_0x329497(0x1a1)][_0x329497(0x242)](_0x248998,_0x51e701),_0x51e701;}},_0x3f8dd7[_0x3f4303(0x197)]=_0x39e6df([_0x350ce(0x0,_0x5de346[_0x3f4303(0x1fa)]),_0x350ce(0x1,_0x5de346[_0x3f4303(0x1e1)](_0x5de346['Injector'])),_0x350ce(0x2,_0x5de346[_0x3f4303(0x1e1)](_0x9963ee[_0x3f4303(0x1b2)]))],_0x3f8dd7[_0x3f4303(0x197)]);var _0x24db46=(_0x12d578=>(_0x12d578[_0x3f4303(0x1f3)]=_0x3f4303(0x209),_0x12d578[_0x3f4303(0x219)]=_0x3f4303(0x179),_0x12d578['FOLLOWING']=_0x3f4303(0x255),_0x12d578[_0x3f4303(0x22d)]=_0x3f4303(0x202),_0x12d578[_0x3f4303(0x19c)]=_0x3f4303(0x1b9),_0x12d578))(_0x24db46||{});const _0x302ce9=_0x3f4303(0x1da),_0x3b589e=0xc8;_0x3f8dd7[_0x3f4303(0x23e)]=class extends _0x5de346[_0x3f4303(0x1f2)]{constructor(_0x6f88f9,_0x20210b,_0x28a52b,_0x422c0b,_0x36184b){const _0x37585c=_0x3f4303;super(),_0x267f59(this,_0x37585c(0x25c),new _0x2feeac[(_0x37585c(0x1d7))](_0x37585c(0x179))),_0x267f59(this,_0x37585c(0x1fb),this[_0x37585c(0x25c)]['asObservable']()),_0x267f59(this,_0x37585c(0x196),!0x1),_0x267f59(this,'_commandDisposable',null),_0x267f59(this,'_presenter',null),(this['_unitID']=_0x6f88f9,this[_0x37585c(0x21b)]=_0x20210b,this['_configService']=_0x28a52b,this['_liveShareService']=_0x422c0b,this['_commandService']=_0x36184b);}get[_0x3f4303(0x23c)](){const _0x4e5395=_0x3f4303;return this[_0x4e5395(0x25c)]['getValue']();}[_0x3f4303(0x1f4)](){const _0x4f8334=_0x3f4303;var _0x30b8c3;(_0x30b8c3=this['_commandDisposable'])==null||_0x30b8c3[_0x4f8334(0x1f4)](),this[_0x4f8334(0x25c)][_0x4f8334(0x198)](_0x4f8334(0x179)),this[_0x4f8334(0x25c)][_0x4f8334(0x18f)]();}[_0x3f4303(0x235)](){const _0x358763=_0x3f4303;return this[_0x358763(0x23c)];}[_0x3f4303(0x1cf)](){const _0x4e5ffb=_0x3f4303;this[_0x4e5ffb(0x196)]||(this[_0x4e5ffb(0x196)]=!0x0,this[_0x4e5ffb(0x21b)][_0x4e5ffb(0x256)][_0x4e5ffb(0x187)](_0x10b0ec[_0x4e5ffb(0x239)](this['dispose$']))[_0x4e5ffb(0x19b)](_0x4d57e3=>{const _0x4d6c94=_0x4e5ffb;switch(_0x4d57e3){case _0x9963ee['SessionStatus'][_0x4d6c94(0x1f3)]:this[_0x4d6c94(0x20c)]();break;case _0x9963ee[_0x4d6c94(0x1f6)][_0x4d6c94(0x1ca)]:this[_0x4d6c94(0x1c9)]();break;}}),this[_0x4e5ffb(0x21b)][_0x4e5ffb(0x251)][_0x4e5ffb(0x187)](_0x10b0ec[_0x4e5ffb(0x239)](this[_0x4e5ffb(0x1ba)]))['subscribe'](_0x4a366e=>{const _0x43b011=_0x4e5ffb,{eventID:_0x417bac}=_0x4a366e;switch(_0x417bac){case _0x23135f[_0x43b011(0x18e)][_0x43b011(0x1cd)]:this['_handleNewHost'](_0x4a366e);break;case _0x23135f[_0x43b011(0x18e)][_0x43b011(0x1a9)]:this[_0x43b011(0x200)](_0x4a366e);break;case _0x23135f[_0x43b011(0x18e)][_0x43b011(0x229)]:this[_0x43b011(0x18b)]();break;case _0x23135f[_0x43b011(0x18e)][_0x43b011(0x1a2)]:this[_0x43b011(0x208)](_0x4a366e);break;}}));}['tryStartPresenting'](){const _0x4cdfad=_0x3f4303;this[_0x4cdfad(0x21b)][_0x4cdfad(0x1d5)]({'eventID':_0x23135f['CollaborationEvent'][_0x4cdfad(0x1e3)],'data':{'unitID':this[_0x4cdfad(0x1d3)],'userID':this[_0x4cdfad(0x21b)][_0x4cdfad(0x192)]()}},this[_0x4cdfad(0x1d3)]);}[_0x3f4303(0x180)](){const _0x388091=_0x3f4303;this[_0x388091(0x23c)]===_0x388091(0x1b9)&&(this[_0x388091(0x25c)][_0x388091(0x198)](_0x388091(0x179)),this[_0x388091(0x21b)][_0x388091(0x1d5)]({'eventID':_0x23135f[_0x388091(0x18e)][_0x388091(0x229)],'data':{'unitID':this['_unitID']}},this[_0x388091(0x1d3)]));}[_0x3f4303(0x1a5)](){const _0x12f9a6=_0x3f4303;this[_0x12f9a6(0x23c)]===_0x12f9a6(0x202)&&(this[_0x12f9a6(0x25c)][_0x12f9a6(0x198)](_0x12f9a6(0x255)),this[_0x12f9a6(0x232)]());}['stopFollowing'](){const _0x1e301a=_0x3f4303;this[_0x1e301a(0x23c)]===_0x1e301a(0x255)&&this[_0x1e301a(0x213)]();}[_0x3f4303(0x22a)](_0x4d208e){const _0x40d6e0=_0x3f4303,{presenter:_0x102e2d}=_0x4d208e[_0x40d6e0(0x1f0)],_0x2a8775=this[_0x40d6e0(0x21b)][_0x40d6e0(0x192)]();this[_0x40d6e0(0x1d1)]=_0x102e2d,_0x102e2d===_0x2a8775?(this[_0x40d6e0(0x213)](),this['_startPresenting']()):this['_status']!==_0x40d6e0(0x202)&&(this[_0x40d6e0(0x1cb)](),this[_0x40d6e0(0x232)]());}[_0x3f4303(0x1b6)](){const _0x335034=_0x3f4303,_0x367b29={'eventID':_0x23135f[_0x335034(0x18e)][_0x335034(0x233)]};this[_0x335034(0x21b)][_0x335034(0x1d5)](_0x367b29,this['_unitID']);}[_0x3f4303(0x18b)](){const _0x4723b7=_0x3f4303;this[_0x4723b7(0x1d1)]=null,this['_status']!==_0x4723b7(0x1b9)&&this[_0x4723b7(0x1de)]();}[_0x3f4303(0x208)](_0x264e5c){const _0x21a053=_0x3f4303;if(this[_0x21a053(0x23c)]===_0x21a053(0x255)&&this[_0x21a053(0x1d1)]===_0x264e5c['data'][_0x21a053(0x20b)]){const _0x46cd3e=_0x23135f['parseProtocolChangeset'](_0x264e5c[_0x21a053(0x1f0)])[_0x21a053(0x1c1)]['reverse']()[_0x21a053(0x247)](_0x28e944=>_0x28e944['id']===_0x224e4b['InsertSheetMutation']['id']);if(_0x46cd3e){const _0x435069=_0x46cd3e[_0x21a053(0x1ec)][_0x21a053(0x1b3)],_0x397c95=_0x46cd3e[_0x21a053(0x1ec)][_0x21a053(0x20e)]['id'];setTimeout(()=>{const _0xaf18e1=_0x21a053;this[_0xaf18e1(0x1c0)]['executeCommand'](_0x224e4b['SetWorksheetActiveOperation']['id'],{'unitId':_0x435069,'subUnitId':_0x397c95},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x389adb=_0x3f4303;this['_status$'][_0x389adb(0x198)](_0x389adb(0x1b9));const _0x52495d=new Map(),_0x256121=this[_0x389adb(0x1c6)]=new _0x5de346['DisposableCollection']();_0x256121[_0x389adb(0x1e0)](_0x5de346['toDisposable'](()=>{const _0x270912=_0x389adb;_0x52495d[_0x270912(0x17a)](_0x4b8f87=>_0x4b8f87[_0x270912(0x18f)]()),_0x52495d[_0x270912(0x191)]();})),_0x256121[_0x389adb(0x1e0)](this[_0x389adb(0x1c0)]['onCommandExecuted'](_0x208704=>{const _0x160183=_0x389adb;var _0x578915;if(_0x208704[_0x160183(0x1cc)]!==_0x5de346['CommandType'][_0x160183(0x24b)]||!this[_0x160183(0x1e8)][_0x160183(0x24a)](_0x208704['id']))return;const {id:_0x4248b7}=_0x208704;let _0x61c2b;_0x52495d[_0x160183(0x1d6)](_0x4248b7)?_0x61c2b=_0x52495d[_0x160183(0x1a7)](_0x4248b7):(_0x61c2b=new _0x2feeac[(_0x160183(0x1db))](),_0x52495d[_0x160183(0x242)](_0x4248b7,_0x61c2b),_0x61c2b[_0x160183(0x187)](_0x10b0ec[_0x160183(0x22b)]((_0x578915=this['_configService'][_0x160183(0x1e2)](_0x302ce9))!=null?_0x578915:_0x3b589e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x160183(0x19b)](_0x103762=>{const _0x59b137=_0x160183;this['_collabSession'][_0x59b137(0x1d5)]({'eventID':_0x23135f[_0x59b137(0x18e)][_0x59b137(0x1a9)],'data':{'unitID':this[_0x59b137(0x1d3)],'operations':{[_0x103762['id']]:{'id':_0x103762['id'],'params':JSON[_0x59b137(0x24c)](_0x103762[_0x59b137(0x1ec)])}}}},this[_0x59b137(0x1d3)]);})),_0x61c2b[_0x160183(0x198)](_0x208704);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x389adb(0x17a)](_0x5c28d4=>this[_0x389adb(0x21b)][_0x389adb(0x1d5)]({'eventID':_0x23135f[_0x389adb(0x18e)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x389adb(0x1d3)],'operations':{[_0x5c28d4['id']]:{'id':_0x5c28d4['id'],'params':JSON['stringify'](_0x5c28d4[_0x389adb(0x1ec)])}}}},this['_unitID']));}[_0x3f4303(0x1cb)](){const _0x2d8ae8=_0x3f4303;var _0x13349e;this[_0x2d8ae8(0x25c)]['next'](_0x2d8ae8(0x179)),(_0x13349e=this[_0x2d8ae8(0x1c6)])==null||_0x13349e[_0x2d8ae8(0x1f4)](),this[_0x2d8ae8(0x1c6)]=null;}[_0x3f4303(0x232)](){const _0x1cca07=_0x3f4303;var _0x5d706c;(_0x5d706c=this[_0x1cca07(0x1c6)])==null||_0x5d706c[_0x1cca07(0x1f4)](),this[_0x1cca07(0x25c)][_0x1cca07(0x198)](_0x1cca07(0x255));}['_beIdle'](){const _0x3d148c=_0x3f4303;var _0x736443;this[_0x3d148c(0x25c)][_0x3d148c(0x198)](_0x3d148c(0x179)),(_0x736443=this[_0x3d148c(0x1c6)])==null||_0x736443[_0x3d148c(0x1f4)](),this[_0x3d148c(0x1c6)]=null;}[_0x3f4303(0x213)](){const _0x5f5bb0=_0x3f4303;var _0x5b2ae1;this[_0x5f5bb0(0x25c)]['next'](_0x5f5bb0(0x202)),(_0x5b2ae1=this[_0x5f5bb0(0x1c6)])==null||_0x5b2ae1['dispose']();}[_0x3f4303(0x200)](_0x477102){const _0x579ada=_0x3f4303;if([_0x579ada(0x1b9),_0x579ada(0x202),'offline']['includes'](this['_status'])||!_0x477102[_0x579ada(0x1f0)][_0x579ada(0x222)]||_0x477102[_0x579ada(0x1f0)]['presenter']===this[_0x579ada(0x21b)][_0x579ada(0x192)]())return;this[_0x579ada(0x23c)]==='idle'&&this[_0x579ada(0x232)]();const _0x112d6a=_0x477102['data'][_0x579ada(0x183)];Object[_0x579ada(0x20a)](_0x112d6a)[_0x579ada(0x17a)](_0x4dd16b=>{const _0x317f8b=_0x579ada;this['_commandService'][_0x317f8b(0x1b4)](_0x4dd16b['id'],_0x4dd16b[_0x317f8b(0x1ec)]?JSON[_0x317f8b(0x18c)](_0x4dd16b['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x1ee2e0=_0x3f4303;var _0x33d54d;this['_status$']['next']('offline'),(_0x33d54d=this[_0x1ee2e0(0x1c6)])==null||_0x33d54d[_0x1ee2e0(0x1f4)]();}['_handleOnline'](){const _0x4b5832=_0x3f4303;this[_0x4b5832(0x25c)][_0x4b5832(0x198)](_0x4b5832(0x179)),this[_0x4b5832(0x1b6)]();}},_0x3f8dd7['LiveShareCoordinator']=_0x39e6df([_0x350ce(0x2,_0x5de346[_0x3f4303(0x19f)]),_0x350ce(0x3,_0x5de346[_0x3f4303(0x1e1)](_0x43e8b2)),_0x350ce(0x4,_0x5de346[_0x3f4303(0x190)])],_0x3f8dd7[_0x3f4303(0x23e)]);function _0x2a2c96(){const _0x304df6=_0x3f4303,_0x34950c=_0xbe2261[_0x304df6(0x22c)](_0x3f8dd7['LiveShareController']),_0x208a4f=_0xbe2261[_0x304df6(0x22c)](_0x5de346[_0x304df6(0x1fa)]),_0xfc84ca=_0xbe2261['useObservable'](()=>_0x208a4f[_0x304df6(0x1e6)](_0x5de346[_0x304df6(0x225)][_0x304df6(0x250)]),void 0x0,!0x1,[]),[_0x556de0,_0x234593]=_0x56f208['useState'](null),[_0x42b71b,_0x21af2d]=_0x56f208[_0x304df6(0x17e)](_0x24db46[_0x304df6(0x219)]),_0x51050c=_0x56f208[_0x304df6(0x195)](null);return _0x56f208[_0x304df6(0x221)](()=>(_0xfc84ca&&_0x34950c[_0x304df6(0x244)](_0xfc84ca[_0x304df6(0x177)]())['then'](_0x442218=>{const _0x54e05b=_0x304df6;_0x234593(_0x442218),_0x51050c[_0x54e05b(0x1c5)]=_0x442218['status$']['subscribe'](_0x455630=>{_0x21af2d(_0x455630);});}),()=>{const _0x42d764=_0x304df6;var _0x2af371;(_0x2af371=_0x51050c['current'])==null||_0x2af371[_0x42d764(0x1fe)](),_0x51050c[_0x42d764(0x1c5)]=null;}),[_0xfc84ca,_0x34950c]),_0x556de0?_0x3f7f80[_0x304df6(0x216)](_0x467f51[_0x304df6(0x259)],{'align':_0x304df6(0x17f),'disabled':_0x42b71b===_0x24db46[_0x304df6(0x1f3)],'className':_0x304df6(0x1c4),'overlay':_0x3f7f80[_0x304df6(0x216)](_0x44477f,{'status':_0x42b71b,'coordinator':_0x556de0}),'children':_0x3f7f80['jsx'](_0x304df6(0x1d8),{'className':_0x467f51[_0x304df6(0x194)](_0x304df6(0x23b),{'univer-cursor-not-allowed':_0x42b71b===_0x24db46[_0x304df6(0x1f3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x42b71b!==_0x24db46[_0x304df6(0x1f3)]}),'type':_0x304df6(0x1d8),'children':_0x3f7f80[_0x304df6(0x216)](_0x39d085,{'className':_0x304df6(0x181)})})}):null;}function _0x44477f(_0x54b0de){const _0x12fdbf=_0x3f4303,{status:_0x2d9470,coordinator:_0x5d3b4a}=_0x54b0de;switch(_0x2d9470){case _0x24db46[_0x12fdbf(0x219)]:return _0x3f7f80['jsx'](_0x1da275,{'coordinator':_0x5d3b4a});case _0x24db46[_0x12fdbf(0x253)]:return _0x3f7f80[_0x12fdbf(0x216)](_0x58802b,{'coordinator':_0x5d3b4a});case _0x24db46[_0x12fdbf(0x22d)]:return _0x3f7f80[_0x12fdbf(0x216)](_0xfaa881,{'coordinator':_0x5d3b4a});case _0x24db46['OFFLINE']:return _0x3f7f80['jsx'](_0x10b327,{});case _0x24db46[_0x12fdbf(0x19c)]:return _0x3f7f80[_0x12fdbf(0x216)](_0x255283,{'coordinator':_0x5d3b4a});default:return null;}}function _0x1da275(_0x5d95bf){const _0x4f2e30=_0x3f4303,{coordinator:_0x2ff481}=_0x5d95bf;return _0x3f7f80[_0x4f2e30(0x227)](_0x3f7f80[_0x4f2e30(0x245)],{'children':[_0x3f7f80[_0x4f2e30(0x216)](_0x4f2e30(0x21c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4f2e30(0x203)}),_0x3f7f80[_0x4f2e30(0x216)](_0x467f51[_0x4f2e30(0x19a)],{'onClick':()=>_0x2ff481[_0x4f2e30(0x1d4)](),'children':_0x4f2e30(0x234)})]});}function _0x58802b(_0x22dc8e){const _0x4730ef=_0x3f4303,{coordinator:_0x38a83f}=_0x22dc8e;return _0x3f7f80[_0x4730ef(0x227)](_0x3f7f80[_0x4730ef(0x245)],{'children':[_0x3f7f80['jsx'](_0x4730ef(0x21c),{'className':_0x4730ef(0x18a),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x3f7f80[_0x4730ef(0x216)](_0x467f51[_0x4730ef(0x19a)],{'onClick':()=>_0x38a83f[_0x4730ef(0x206)](),'children':'Stop\x20following'})]});}function _0xfaa881(_0x4b29a2){const _0x892d41=_0x3f4303,{coordinator:_0x43302d}=_0x4b29a2;return _0x3f7f80[_0x892d41(0x227)](_0x3f7f80[_0x892d41(0x245)],{'children':[_0x3f7f80[_0x892d41(0x216)](_0x892d41(0x21c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3f7f80['jsx'](_0x467f51[_0x892d41(0x19a)],{'variant':'text','onClick':()=>_0x43302d['startFollowing'](),'children':'Start\x20following'})]});}function _0x255283(_0x254491){const _0x11cc1f=_0x3f4303,{coordinator:_0x3c4f54}=_0x254491;return _0x3f7f80[_0x11cc1f(0x227)](_0x3f7f80[_0x11cc1f(0x245)],{'children':[_0x3f7f80[_0x11cc1f(0x216)](_0x11cc1f(0x21c),{'className':_0x11cc1f(0x18a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x3f7f80[_0x11cc1f(0x216)](_0x467f51[_0x11cc1f(0x19a)],{'variant':_0x11cc1f(0x211),'onClick':()=>_0x3c4f54[_0x11cc1f(0x180)](),'children':_0x11cc1f(0x17d)})]});}function _0x10b327(){const _0x4133e5=_0x3f4303;return _0x3f7f80[_0x4133e5(0x216)](_0x3f7f80[_0x4133e5(0x245)],{'children':_0x4133e5(0x230)});}var _0x10ff0f=Object[_0x3f4303(0x1b7)],_0x5244af=(_0x3c755b,_0x363e74,_0x8e1e06,_0x309115)=>{for(var _0xf49dee=_0x309115>0x1?void 0x0:_0x309115?_0x10ff0f(_0x363e74,_0x8e1e06):_0x363e74,_0x434a23=_0x3c755b['length']-0x1,_0x15cb85;_0x434a23>=0x0;_0x434a23--)(_0x15cb85=_0x3c755b[_0x434a23])&&(_0xf49dee=_0x15cb85(_0xf49dee)||_0xf49dee);return _0xf49dee;},_0x3b87ec=(_0x28ca9a,_0x2d21bb)=>(_0x40f1b4,_0x25bb8e)=>_0x2d21bb(_0x40f1b4,_0x25bb8e,_0x28ca9a);_0x3f8dd7[_0x3f4303(0x184)]=class extends _0x5de346[_0x3f4303(0x20f)]{constructor(_0x25dd94,_0x5823db){const _0x2818d2=_0x3f4303;super(),this[_0x2818d2(0x188)]=_0x25dd94,this['_uiPartsService']=_0x5823db,this[_0x2818d2(0x249)]();}[_0x3f4303(0x249)](){const _0x32146c=_0x3f4303;this[_0x32146c(0x1ea)](this[_0x32146c(0x1c8)]['registerComponent'](_0xbe2261[_0x32146c(0x207)]['HEADER_MENU'],()=>_0xbe2261[_0x32146c(0x205)](_0x2a2c96,this['_injector'])));}},_0x3f8dd7[_0x3f4303(0x184)]=_0x5244af([_0x3b87ec(0x0,_0x5de346[_0x3f4303(0x1e1)](_0x5de346[_0x3f4303(0x1c2)])),_0x3b87ec(0x1,_0xbe2261[_0x3f4303(0x1ff)])],_0x3f8dd7['DesktopLiveShareController']);const _0x194ddf=_0x3f4303(0x1e7),_0xac0da3={};var _0x4b507f=Object['getOwnPropertyDescriptor'],_0x5e9702=(_0x586511,_0x130437,_0x17be1c,_0x8bc752)=>{const _0x360a36=_0x3f4303;for(var _0x4dabe7=_0x8bc752>0x1?void 0x0:_0x8bc752?_0x4b507f(_0x130437,_0x17be1c):_0x130437,_0x5db9b3=_0x586511[_0x360a36(0x1f1)]-0x1,_0x3200d6;_0x5db9b3>=0x0;_0x5db9b3--)(_0x3200d6=_0x586511[_0x5db9b3])&&(_0x4dabe7=_0x3200d6(_0x4dabe7)||_0x4dabe7);return _0x4dabe7;},_0xb7bf7c=(_0x3127a1,_0x76eb9f)=>(_0x371ba5,_0x410ea8)=>_0x76eb9f(_0x371ba5,_0x410ea8,_0x3127a1);let _0x278664=class extends _0x5de346[_0x3f4303(0x20f)]{constructor(_0x33036b){const _0x2cbba5=_0x3f4303;super(),this[_0x2cbba5(0x1e8)]=_0x33036b,this[_0x2cbba5(0x196)]();}[_0x3f4303(0x196)](){const _0x12cd71=_0x3f4303;[_0x17684d[_0x12cd71(0x1ae)]['id'],_0x17684d[_0x12cd71(0x1e4)]['id'],_0x224e4b[_0x12cd71(0x1f8)]['id']][_0x12cd71(0x17a)](_0x43edb8=>{const _0x47df84=_0x12cd71;this[_0x47df84(0x1ea)](this[_0x47df84(0x1e8)][_0x47df84(0x199)](_0x43edb8));});}};_0x278664=_0x5e9702([_0xb7bf7c(0x0,_0x5de346[_0x3f4303(0x1e1)](_0x43e8b2))],_0x278664);var _0x3a8d55=Object[_0x3f4303(0x1af)],_0x4b4aa7=Object[_0x3f4303(0x1b7)],_0x98e340=(_0x4d6d63,_0x2e7469,_0xa42616)=>_0x2e7469 in _0x4d6d63?_0x3a8d55(_0x4d6d63,_0x2e7469,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa42616}):_0x4d6d63[_0x2e7469]=_0xa42616,_0x12e2b4=(_0x29b03c,_0x11c14b,_0x324bfa,_0x58afa9)=>{const _0x34839a=_0x3f4303;for(var _0x3b0ab1=_0x58afa9>0x1?void 0x0:_0x58afa9?_0x4b4aa7(_0x11c14b,_0x324bfa):_0x11c14b,_0x2c10ac=_0x29b03c[_0x34839a(0x1f1)]-0x1,_0x62953;_0x2c10ac>=0x0;_0x2c10ac--)(_0x62953=_0x29b03c[_0x2c10ac])&&(_0x3b0ab1=_0x62953(_0x3b0ab1)||_0x3b0ab1);return _0x3b0ab1;},_0x3e8d8a=(_0x3a38a5,_0x31734e)=>(_0x1d1330,_0x554f5d)=>_0x31734e(_0x1d1330,_0x554f5d,_0x3a38a5),_0x1f456a=(_0x7a145,_0x197c73,_0x3e6ae7)=>_0x98e340(_0x7a145,typeof _0x197c73!=_0x3f4303(0x25b)?_0x197c73+'':_0x197c73,_0x3e6ae7);const _0x13ef6c=_0x3f4303(0x1ef);_0x3f8dd7[_0x3f4303(0x226)]=class extends _0x5de346[_0x3f4303(0x1f5)]{constructor(_0x4219d1=_0xac0da3,_0x4f2ed5,_0x47fff6){const _0x14baa7=_0x3f4303;super(),this[_0x14baa7(0x210)]=_0x4219d1,this[_0x14baa7(0x188)]=_0x4f2ed5,this[_0x14baa7(0x21d)]=_0x47fff6;const {..._0x35bfa5}=_0x5de346[_0x14baa7(0x1bd)]({},_0xac0da3,this[_0x14baa7(0x210)]);this['_configService'][_0x14baa7(0x204)](_0x194ddf,_0x35bfa5);}['onStarting'](){const _0x46fae9=_0x3f4303;_0x5de346[_0x46fae9(0x1b8)](this[_0x46fae9(0x188)],_0x5de346[_0x46fae9(0x1f7)]([[_0x43e8b2],[_0x3f8dd7[_0x46fae9(0x197)]],[_0x278664],[_0x3f8dd7[_0x46fae9(0x184)]]],this[_0x46fae9(0x210)][_0x46fae9(0x1a8)])),_0x5de346['touchDependencies'](this[_0x46fae9(0x188)],[[_0x278664]]);}[_0x3f4303(0x25d)](){const _0xb9a5be=_0x3f4303;_0x5de346[_0xb9a5be(0x248)](this[_0xb9a5be(0x188)],[[_0x3f8dd7[_0xb9a5be(0x184)]]]);}},_0x1f456a(_0x3f8dd7[_0x3f4303(0x226)],_0x3f4303(0x1cc),_0x5de346[_0x3f4303(0x225)][_0x3f4303(0x1a4)]),_0x1f456a(_0x3f8dd7[_0x3f4303(0x226)],_0x3f4303(0x1ee),_0x13ef6c),_0x3f8dd7['UniverLiveSharePlugin']=_0x12e2b4([_0x5de346['DependentOn'](_0x9963ee[_0x3f4303(0x25e)]),_0x3e8d8a(0x1,_0x5de346[_0x3f4303(0x1e1)](_0x5de346['Injector'])),_0x3e8d8a(0x2,_0x5de346[_0x3f4303(0x19f)])],_0x3f8dd7['UniverLiveSharePlugin']),_0x3f8dd7['LiveShare']=_0x2a2c96,_0x3f8dd7['LiveShareService']=_0x43e8b2,_0x3f8dd7[_0x3f4303(0x241)]=_0x24db46,Object[_0x3f4303(0x1af)](_0x3f8dd7,Symbol['toStringTag'],{'value':_0x3f4303(0x1bb)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.4-experimental.
|
|
3
|
+
"version": "0.12.4-experimental.20251211-e01e32a",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.12.4-experimental.
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/ui": "0.12.4-experimental.
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.4-experimental.20251211-e01e32a",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.4-experimental.20251211-e01e32a",
|
|
62
|
+
"@univerjs/design": "0.12.4-experimental.20251211-e01e32a",
|
|
63
|
+
"@univerjs/engine-render": "0.12.4-experimental.20251211-e01e32a",
|
|
64
|
+
"@univerjs/sheets": "0.12.4-experimental.20251211-e01e32a",
|
|
65
|
+
"@univerjs/sheets-ui": "0.12.4-experimental.20251211-e01e32a",
|
|
66
|
+
"@univerjs/ui": "0.12.4-experimental.20251211-e01e32a",
|
|
67
|
+
"@univerjs/core": "0.12.4-experimental.20251211-e01e32a"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|