@univerjs-pro/live-share 0.12.4-experimental.20251210-d708bff → 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';const
|
|
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 _0xcdd8a2=_0x247a;(function(_0x5ea1d5,_0x1f9fd6){const _0x1f804a=_0x247a,_0x3bb8e7=_0x5ea1d5();while(!![]){try{const _0x400fa3=-parseInt(_0x1f804a(0x248))/0x1*(-parseInt(_0x1f804a(0x19e))/0x2)+-parseInt(_0x1f804a(0x1e0))/0x3+parseInt(_0x1f804a(0x1e4))/0x4*(-parseInt(_0x1f804a(0x230))/0x5)+parseInt(_0x1f804a(0x1ed))/0x6+parseInt(_0x1f804a(0x1e3))/0x7*(parseInt(_0x1f804a(0x243))/0x8)+parseInt(_0x1f804a(0x1a9))/0x9+parseInt(_0x1f804a(0x182))/0xa;if(_0x400fa3===_0x1f9fd6)break;else _0x3bb8e7['push'](_0x3bb8e7['shift']());}catch(_0x3a4a57){_0x3bb8e7['push'](_0x3bb8e7['shift']());}}}(_0x10bb,0x22634));var T=Object[_0xcdd8a2(0x18c)],U=(_0xe6c5a8,_0x1ed970,_0x275f17)=>_0x1ed970 in _0xe6c5a8?T(_0xe6c5a8,_0x1ed970,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x275f17}):_0xe6c5a8[_0x1ed970]=_0x275f17,_=(_0x23a2b9,_0x2dfc89,_0x29141)=>U(_0x23a2b9,typeof _0x2dfc89!=_0xcdd8a2(0x200)?_0x2dfc89+'':_0x2dfc89,_0x29141);Object['defineProperty'](exports,Symbol[_0xcdd8a2(0x1fb)],{'value':_0xcdd8a2(0x1be)});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:_0x53dcdc,..._0x515846}){const _0x215431=_0xcdd8a2,{icon:_0x584cec,id:_0x4e67e2,className:_0x28f6f6,extend:_0x4b10dd,..._0x3bd2bf}=_0x515846,_0x31ab57=('univerjs-icon\x20univerjs-icon-'+_0x4e67e2+'\x20'+(_0x28f6f6||''))[_0x215431(0x228)](),_0x4373e2=v[_0x215431(0x1b2)]('_'+H());return j(_0x584cec,''+_0x4e67e2,{'defIds':_0x584cec[_0x215431(0x1ef)],'idSuffix':_0x4373e2[_0x215431(0x1ae)]},{'ref':_0x53dcdc,'className':_0x31ab57,..._0x3bd2bf},_0x4b10dd);}function j(_0x107e1a,_0x3eb67e,_0x47ec49,_0x1373fc,_0x555fcc){const _0x421a8c=_0xcdd8a2;return v[_0x421a8c(0x1d8)](_0x107e1a[_0x421a8c(0x1fd)],{'key':_0x3eb67e,...y(_0x107e1a,_0x47ec49,_0x555fcc),..._0x1373fc},(F(_0x107e1a,_0x47ec49)[_0x421a8c(0x1ba)]||[])[_0x421a8c(0x193)]((_0x31f4a6,_0x5a8b5f)=>j(_0x31f4a6,_0x3eb67e+'-'+_0x107e1a[_0x421a8c(0x1fd)]+'-'+_0x5a8b5f,_0x47ec49,void 0x0,_0x555fcc)));}function y(_0x357b12,_0x465567,_0x541af7){const _0x24bc55=_0xcdd8a2,_0x560390={..._0x357b12[_0x24bc55(0x1a8)]};_0x541af7!=null&&_0x541af7[_0x24bc55(0x185)]&&_0x560390[_0x24bc55(0x1d2)]==='colorChannel1'&&(_0x560390[_0x24bc55(0x1d2)]=_0x541af7[_0x24bc55(0x185)]),_0x357b12['tag']===_0x24bc55(0x1bb)&&_0x560390['id']&&(_0x560390['id']=_0x560390['id']+_0x465567[_0x24bc55(0x18f)]),Object[_0x24bc55(0x1ec)](_0x560390)[_0x24bc55(0x212)](([_0x2786ee,_0x3f30a2])=>{const _0x3f6fad=_0x24bc55;_0x2786ee===_0x3f6fad(0x1bb)&&typeof _0x3f30a2==_0x3f6fad(0x1b7)&&(_0x560390[_0x2786ee]=_0x3f30a2['replace'](/url\(#(.*)\)/,'url(#$1'+_0x465567['idSuffix']+')'));});const {defIds:_0x36f2d3}=_0x465567;return!_0x36f2d3||_0x36f2d3[_0x24bc55(0x231)]===0x0||(_0x357b12['tag']===_0x24bc55(0x197)&&_0x560390[_0x24bc55(0x17a)]&&(_0x560390[_0x24bc55(0x17a)]=_0x560390[_0x24bc55(0x17a)]+_0x465567[_0x24bc55(0x18f)]),Object[_0x24bc55(0x1ec)](_0x560390)['forEach'](([_0x4030ba,_0x47db79])=>{const _0x573457=_0x24bc55;typeof _0x47db79==_0x573457(0x1b7)&&(_0x560390[_0x4030ba]=_0x47db79[_0x573457(0x219)](/url\(#(.*)\)/,'url(#$1'+_0x465567[_0x573457(0x18f)]+')'));})),_0x560390;}function F(_0x41bb6e,_0x2f12b8){const _0x4cda9e=_0xcdd8a2;var _0x495719;const {defIds:_0x37ec4c}=_0x2f12b8;return!_0x37ec4c||_0x37ec4c[_0x4cda9e(0x231)]===0x0?_0x41bb6e:_0x41bb6e[_0x4cda9e(0x1fd)]===_0x4cda9e(0x23f)&&((_0x495719=_0x41bb6e[_0x4cda9e(0x1ba)])!=null&&_0x495719[_0x4cda9e(0x231)])?{..._0x41bb6e,'children':_0x41bb6e['children'][_0x4cda9e(0x193)](_0x44a7a3=>typeof _0x44a7a3[_0x4cda9e(0x1a8)]['id']==_0x4cda9e(0x1b7)&&_0x37ec4c&&_0x37ec4c[_0x4cda9e(0x232)](_0x44a7a3['attrs']['id'])?{..._0x44a7a3,'attrs':{..._0x44a7a3[_0x4cda9e(0x1a8)],'id':_0x44a7a3[_0x4cda9e(0x1a8)]['id']+_0x2f12b8[_0x4cda9e(0x18f)]}}:_0x44a7a3)}:_0x41bb6e;}function H(){const _0x3b505f=_0xcdd8a2;return Math[_0x3b505f(0x1ff)]()[_0x3b505f(0x21e)](0x24)[_0x3b505f(0x23e)](0x2,0x8);}x[_0xcdd8a2(0x1fa)]=_0xcdd8a2(0x20f);const V={'tag':_0xcdd8a2(0x22b),'attrs':{'xmlns':_0xcdd8a2(0x190),'fill':'none','viewBox':_0xcdd8a2(0x1db),'width':'1em','height':_0xcdd8a2(0x1b4)},'children':[{'tag':_0xcdd8a2(0x1a6),'attrs':{'fill':'currentColor','d':_0xcdd8a2(0x1d9)}},{'tag':_0xcdd8a2(0x1a6),'attrs':{'fill':_0xcdd8a2(0x1a2),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0xcdd8a2(0x1a3),'clipRule':'evenodd'}}]},R=v[_0xcdd8a2(0x1f1)](function(_0x2a9354,_0x57b30c){const _0x84ae0d=_0xcdd8a2;return v[_0x84ae0d(0x1d8)](x,Object[_0x84ae0d(0x22c)]({},_0x2a9354,{'id':'live-share-icon','ref':_0x57b30c,'icon':V}));});R[_0xcdd8a2(0x1fa)]=_0xcdd8a2(0x21b);class E extends o[_0xcdd8a2(0x1ce)]{constructor(){const _0x47fec5=_0xcdd8a2;super(...arguments),_(this,_0x47fec5(0x196),new Set()),_(this,_0x47fec5(0x1b3),new Set());}['registerSharedOperation'](_0x3208f5){const _0x31ea1e=_0xcdd8a2;return this[_0x31ea1e(0x196)]['add'](_0x3208f5),o[_0x31ea1e(0x239)](()=>this['_sharedOperations']['delete'](_0x3208f5));}[_0xcdd8a2(0x1f3)](_0x342a4a){const _0x3b234c=_0xcdd8a2;return this[_0x3b234c(0x1b3)][_0x3b234c(0x23c)](_0x342a4a),o[_0x3b234c(0x239)](()=>this[_0x3b234c(0x1b3)][_0x3b234c(0x180)](_0x342a4a));}[_0xcdd8a2(0x1fc)](_0x59aac0){const _0x137809=_0xcdd8a2;return this['_sharedOperations'][_0x137809(0x233)](_0x59aac0);}[_0xcdd8a2(0x1f0)](_0x35c34d){const _0x403f17=_0xcdd8a2;return Array[_0x403f17(0x217)](this[_0x403f17(0x1b3)])['map'](_0x562be2=>_0x562be2(_0x35c34d));}}var M=Object[_0xcdd8a2(0x17c)],P=(_0x2a7ee3,_0x537412,_0x3c9a4d,_0x14cc6f)=>{const _0x19cefd=_0xcdd8a2;for(var _0x4961b3=_0x14cc6f>0x1?void 0x0:_0x14cc6f?M(_0x537412,_0x3c9a4d):_0x537412,_0x5ef4dc=_0x2a7ee3[_0x19cefd(0x231)]-0x1,_0x12a7fc;_0x5ef4dc>=0x0;_0x5ef4dc--)(_0x12a7fc=_0x2a7ee3[_0x5ef4dc])&&(_0x4961b3=_0x12a7fc(_0x4961b3)||_0x4961b3);return _0x4961b3;},S=(_0x52a1bf,_0x3ca314)=>(_0x4accb8,_0x543c64)=>_0x3ca314(_0x4accb8,_0x543c64,_0x52a1bf);exports[_0xcdd8a2(0x245)]=class extends o[_0xcdd8a2(0x1aa)]{constructor(_0x4e7ac7,_0x4ae347,_0x623e32){const _0x3558b7=_0xcdd8a2;super(),_(this,_0x3558b7(0x23d),new Map()),(this[_0x3558b7(0x207)]=_0x4e7ac7,this[_0x3558b7(0x1e2)]=_0x4ae347,this[_0x3558b7(0x216)]=_0x623e32,this['_init']());}async[_0xcdd8a2(0x17d)](_0xbc8110){const _0x31d992=_0xcdd8a2;return this[_0x31d992(0x23d)][_0x31d992(0x233)](_0xbc8110)||await this[_0x31d992(0x241)](_0xbc8110),this[_0x31d992(0x23d)]['get'](_0xbc8110);}[_0xcdd8a2(0x19c)](_0x4313b9){const _0x3299f9=_0xcdd8a2;var _0x3c3629;return(_0x3c3629=this[_0x3299f9(0x23d)][_0x3299f9(0x19f)](_0x4313b9))!=null?_0x3c3629:null;}[_0xcdd8a2(0x227)](){const _0x3bf809=_0xcdd8a2;this[_0x3bf809(0x207)]['getTypeOfUnitAdded$'](o[_0x3bf809(0x1a1)]['UNIVER_SHEET'])[_0x3bf809(0x208)](I[_0x3bf809(0x179)](this[_0x3bf809(0x205)]))['subscribe'](async _0x7b0aea=>{const _0x5d0087=_0x3bf809,_0x1c63e3=_0x7b0aea['getUnitId']();this[_0x5d0087(0x23d)][_0x5d0087(0x233)](_0x1c63e3)||this[_0x5d0087(0x241)](_0x1c63e3);}),this[_0x3bf809(0x207)][_0x3bf809(0x215)](o[_0x3bf809(0x1a1)][_0x3bf809(0x242)])[_0x3bf809(0x208)](I[_0x3bf809(0x179)](this[_0x3bf809(0x205)]))[_0x3bf809(0x240)](_0x23098c=>{const _0x5276dc=_0x3bf809,_0x25fa55=_0x23098c[_0x5276dc(0x1f7)](),_0x556ef0=this[_0x5276dc(0x23d)][_0x5276dc(0x19f)](_0x25fa55);_0x556ef0==null||_0x556ef0['dispose']();});}async[_0xcdd8a2(0x241)](_0x4c4d58){const _0x38e9f5=_0xcdd8a2,_0x246ad6=await this[_0x38e9f5(0x216)]['requireSession'](_0x4c4d58),_0x596623=this[_0x38e9f5(0x1e2)][_0x38e9f5(0x1e7)](exports[_0x38e9f5(0x20b)],_0x4c4d58,_0x246ad6);return _0x596623[_0x38e9f5(0x1b5)](),this['_entities'][_0x38e9f5(0x213)](_0x4c4d58,_0x596623),_0x596623;}},exports[_0xcdd8a2(0x245)]=P([S(0x0,o[_0xcdd8a2(0x18b)]),S(0x1,o[_0xcdd8a2(0x1c8)](o[_0xcdd8a2(0x1c5)])),S(0x2,o[_0xcdd8a2(0x1c8)](b[_0xcdd8a2(0x1a4)]))],exports[_0xcdd8a2(0x245)]);var u=(_0x29e93d=>(_0x29e93d['OFFLINE']=_0xcdd8a2(0x187),_0x29e93d['IDLE']=_0xcdd8a2(0x1c0),_0x29e93d[_0xcdd8a2(0x203)]='following',_0x29e93d['NOT_FOLLOWING']=_0xcdd8a2(0x210),_0x29e93d[_0xcdd8a2(0x1f6)]=_0xcdd8a2(0x188),_0x29e93d))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0xcdd8a2(0x20b)]=class extends o[_0xcdd8a2(0x1aa)]{constructor(_0x4b09f1,_0x1bedba,_0x219ece,_0x19f0b1,_0x2bbb84){const _0x790f96=_0xcdd8a2;super(),_(this,_0x790f96(0x238),new O[(_0x790f96(0x1ad))](_0x790f96(0x1c0))),_(this,_0x790f96(0x237),this['_status$'][_0x790f96(0x246)]()),_(this,_0x790f96(0x227),!0x1),_(this,_0x790f96(0x1bd),null),_(this,_0x790f96(0x22f),null),(this[_0x790f96(0x1ee)]=_0x4b09f1,this[_0x790f96(0x176)]=_0x1bedba,this[_0x790f96(0x1e6)]=_0x219ece,this['_liveShareService']=_0x19f0b1,this[_0x790f96(0x214)]=_0x2bbb84);}get[_0xcdd8a2(0x221)](){const _0x53ca4e=_0xcdd8a2;return this[_0x53ca4e(0x238)]['getValue']();}[_0xcdd8a2(0x1eb)](){const _0x2305ba=_0xcdd8a2;var _0x271ec4;(_0x271ec4=this['_commandDisposable'])==null||_0x271ec4[_0x2305ba(0x1eb)](),this[_0x2305ba(0x238)][_0x2305ba(0x22d)]('idle'),this[_0x2305ba(0x238)][_0x2305ba(0x206)]();}[_0xcdd8a2(0x1c6)](){const _0x453e4a=_0xcdd8a2;return this[_0x453e4a(0x221)];}[_0xcdd8a2(0x1b5)](){const _0x2805f0=_0xcdd8a2;this[_0x2805f0(0x227)]||(this[_0x2805f0(0x227)]=!0x0,this['_collabSession'][_0x2805f0(0x21c)][_0x2805f0(0x208)](I[_0x2805f0(0x179)](this[_0x2805f0(0x205)]))[_0x2805f0(0x240)](_0x709679=>{const _0x286e38=_0x2805f0;switch(_0x709679){case b[_0x286e38(0x20e)]['OFFLINE']:this[_0x286e38(0x175)]();break;case b[_0x286e38(0x20e)]['ONLINE']:this[_0x286e38(0x1e9)]();break;}}),this['_collabSession'][_0x2805f0(0x229)][_0x2805f0(0x208)](I[_0x2805f0(0x179)](this['dispose$']))[_0x2805f0(0x240)](_0x191481=>{const _0x1e589f=_0x2805f0,{eventID:_0x51aa9c}=_0x191481;switch(_0x51aa9c){case d['CollaborationEvent'][_0x1e589f(0x23a)]:this[_0x1e589f(0x199)](_0x191481);break;case d[_0x1e589f(0x1a7)][_0x1e589f(0x1f2)]:this[_0x1e589f(0x204)](_0x191481);break;case d['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x1e589f(0x225)]();break;case d[_0x1e589f(0x1a7)]['NEW_CHANGESETS']:this[_0x1e589f(0x18a)](_0x191481);break;}}));}[_0xcdd8a2(0x1c1)](){const _0x349814=_0xcdd8a2;this[_0x349814(0x176)][_0x349814(0x192)]({'eventID':d[_0x349814(0x1a7)][_0x349814(0x224)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x313393=_0xcdd8a2;this[_0x313393(0x221)]==='presenting'&&(this['_status$'][_0x313393(0x22d)](_0x313393(0x1c0)),this[_0x313393(0x176)][_0x313393(0x192)]({'eventID':d[_0x313393(0x1a7)][_0x313393(0x183)],'data':{'unitID':this['_unitID']}},this[_0x313393(0x1ee)]));}[_0xcdd8a2(0x1df)](){const _0x367438=_0xcdd8a2;this['_status']===_0x367438(0x210)&&(this[_0x367438(0x238)]['next'](_0x367438(0x20a)),this['_startFollowing']());}[_0xcdd8a2(0x1e8)](){const _0x2e7a51=_0xcdd8a2;this[_0x2e7a51(0x221)]===_0x2e7a51(0x20a)&&this[_0x2e7a51(0x1b9)]();}[_0xcdd8a2(0x199)](_0x496cbb){const _0x4b0d55=_0xcdd8a2,{presenter:_0x4c42bf}=_0x496cbb['data'],_0x4cafab=this['_collabSession'][_0x4b0d55(0x20c)]();this[_0x4b0d55(0x22f)]=_0x4c42bf,_0x4c42bf===_0x4cafab?(this[_0x4b0d55(0x1b9)](),this['_startPresenting']()):this[_0x4b0d55(0x221)]!==_0x4b0d55(0x210)&&(this[_0x4b0d55(0x1b1)](),this[_0x4b0d55(0x1c7)]());}[_0xcdd8a2(0x21a)](){const _0x201074=_0xcdd8a2,_0x3b62b9={'eventID':d[_0x201074(0x1a7)][_0x201074(0x198)]};this['_collabSession']['send'](_0x3b62b9,this['_unitID']);}[_0xcdd8a2(0x225)](){const _0x4f8620=_0xcdd8a2;this['_presenter']=null,this[_0x4f8620(0x221)]!==_0x4f8620(0x188)&&this[_0x4f8620(0x24c)]();}['_handleNewChangeSets'](_0x11c288){const _0x1bd34c=_0xcdd8a2;if(this[_0x1bd34c(0x221)]===_0x1bd34c(0x20a)&&this[_0x1bd34c(0x22f)]===_0x11c288[_0x1bd34c(0x19d)][_0x1bd34c(0x1d7)]){const _0x40b5cf=d[_0x1bd34c(0x195)](_0x11c288[_0x1bd34c(0x19d)])[_0x1bd34c(0x223)][_0x1bd34c(0x1d4)]()[_0x1bd34c(0x194)](_0x4982d1=>_0x4982d1['id']===C[_0x1bd34c(0x1e5)]['id']);if(_0x40b5cf){const _0x174d55=_0x40b5cf[_0x1bd34c(0x1b6)][_0x1bd34c(0x1bc)],_0x3c91f5=_0x40b5cf[_0x1bd34c(0x1b6)]['sheet']['id'];setTimeout(()=>{const _0x2b06a7=_0x1bd34c;this[_0x2b06a7(0x214)][_0x2b06a7(0x191)](C[_0x2b06a7(0x17b)]['id'],{'unitId':_0x174d55,'subUnitId':_0x3c91f5},{'fromCollab':!0x0});});}}}[_0xcdd8a2(0x19a)](){const _0x26097c=_0xcdd8a2;this[_0x26097c(0x238)][_0x26097c(0x22d)](_0x26097c(0x188));const _0xf3c9bb=new Map(),_0x5334c6=this[_0x26097c(0x1bd)]=new o['DisposableCollection']();_0x5334c6[_0x26097c(0x23c)](o[_0x26097c(0x239)](()=>{const _0x462b94=_0x26097c;_0xf3c9bb['forEach'](_0x1c93ca=>_0x1c93ca['complete']()),_0xf3c9bb[_0x462b94(0x1dd)]();})),_0x5334c6[_0x26097c(0x23c)](this['_commandService'][_0x26097c(0x218)](_0x3ac568=>{const _0x434714=_0x26097c;var _0x3f9b05;if(_0x3ac568[_0x434714(0x17f)]!==o['CommandType'][_0x434714(0x202)]||!this[_0x434714(0x236)]['shouldShareOperation'](_0x3ac568['id']))return;const {id:_0x40ef9b}=_0x3ac568;let _0xf365b5;_0xf3c9bb['has'](_0x40ef9b)?_0xf365b5=_0xf3c9bb[_0x434714(0x19f)](_0x40ef9b):(_0xf365b5=new O[(_0x434714(0x201))](),_0xf3c9bb[_0x434714(0x213)](_0x40ef9b,_0xf365b5),_0xf365b5[_0x434714(0x208)](I[_0x434714(0x24e)]((_0x3f9b05=this[_0x434714(0x1e6)]['getConfig'](k))!=null?_0x3f9b05:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x33ec6b=>{const _0x45b3f9=_0x434714;this['_collabSession']['send']({'eventID':d[_0x45b3f9(0x1a7)][_0x45b3f9(0x1f2)],'data':{'unitID':this[_0x45b3f9(0x1ee)],'operations':{[_0x33ec6b['id']]:{'id':_0x33ec6b['id'],'params':JSON[_0x45b3f9(0x1c2)](_0x33ec6b[_0x45b3f9(0x1b6)])}}}},this['_unitID']);})),_0xf365b5[_0x434714(0x22d)](_0x3ac568);})),this[_0x26097c(0x236)][_0x26097c(0x1f0)](this[_0x26097c(0x1ee)])['forEach'](_0x33d259=>this[_0x26097c(0x176)]['send']({'eventID':d[_0x26097c(0x1a7)][_0x26097c(0x1f2)],'data':{'unitID':this[_0x26097c(0x1ee)],'operations':{[_0x33d259['id']]:{'id':_0x33d259['id'],'params':JSON[_0x26097c(0x1c2)](_0x33d259[_0x26097c(0x1b6)])}}}},this[_0x26097c(0x1ee)]));}[_0xcdd8a2(0x1b1)](){const _0x12f673=_0xcdd8a2;var _0x3d7caa;this[_0x12f673(0x238)][_0x12f673(0x22d)](_0x12f673(0x1c0)),(_0x3d7caa=this['_commandDisposable'])==null||_0x3d7caa[_0x12f673(0x1eb)](),this['_commandDisposable']=null;}[_0xcdd8a2(0x1c7)](){const _0x5f4473=_0xcdd8a2;var _0x3882d7;(_0x3882d7=this[_0x5f4473(0x1bd)])==null||_0x3882d7[_0x5f4473(0x1eb)](),this['_status$'][_0x5f4473(0x22d)]('following');}[_0xcdd8a2(0x24c)](){const _0x39c24c=_0xcdd8a2;var _0x5cb60b;this[_0x39c24c(0x238)]['next'](_0x39c24c(0x1c0)),(_0x5cb60b=this['_commandDisposable'])==null||_0x5cb60b[_0x39c24c(0x1eb)](),this['_commandDisposable']=null;}[_0xcdd8a2(0x1b9)](){const _0x1b70fd=_0xcdd8a2;var _0x3abc2c;this[_0x1b70fd(0x238)][_0x1b70fd(0x22d)]('not-following'),(_0x3abc2c=this[_0x1b70fd(0x1bd)])==null||_0x3abc2c['dispose']();}['_handleOperation'](_0x36cb84){const _0x2a8764=_0xcdd8a2;if([_0x2a8764(0x188),_0x2a8764(0x210),_0x2a8764(0x187)]['includes'](this[_0x2a8764(0x221)])||!_0x36cb84['data'][_0x2a8764(0x247)]||_0x36cb84[_0x2a8764(0x19d)][_0x2a8764(0x247)]===this[_0x2a8764(0x176)][_0x2a8764(0x20c)]())return;this[_0x2a8764(0x221)]===_0x2a8764(0x1c0)&&this['_startFollowing']();const _0x2c3793=_0x36cb84[_0x2a8764(0x19d)]['operations'];Object[_0x2a8764(0x1a0)](_0x2c3793)[_0x2a8764(0x212)](_0x2be51c=>{const _0x53e01=_0x2a8764;this[_0x53e01(0x214)][_0x53e01(0x191)](_0x2be51c['id'],_0x2be51c[_0x53e01(0x1b6)]?JSON[_0x53e01(0x23b)](_0x2be51c[_0x53e01(0x1b6)]):null,{'fromCollab':!0x0});});}[_0xcdd8a2(0x175)](){const _0x5cd9cb=_0xcdd8a2;var _0x34f9b6;this[_0x5cd9cb(0x238)]['next'](_0x5cd9cb(0x187)),(_0x34f9b6=this[_0x5cd9cb(0x1bd)])==null||_0x34f9b6[_0x5cd9cb(0x1eb)]();}[_0xcdd8a2(0x1e9)](){const _0x2f3706=_0xcdd8a2;this[_0x2f3706(0x238)][_0x2f3706(0x22d)](_0x2f3706(0x1c0)),this[_0x2f3706(0x21a)]();}},exports[_0xcdd8a2(0x20b)]=P([S(0x2,o[_0xcdd8a2(0x1f9)]),S(0x3,o[_0xcdd8a2(0x1c8)](E)),S(0x4,o[_0xcdd8a2(0x249)])],exports['LiveShareCoordinator']);function $(){const _0x9c893b=_0xcdd8a2,_0x2de4d2=p[_0x9c893b(0x222)](exports['LiveShareController']),_0x159d34=p[_0x9c893b(0x222)](o[_0x9c893b(0x18b)]),_0x409099=p[_0x9c893b(0x1f5)](()=>_0x159d34[_0x9c893b(0x1c9)](o['UniverInstanceType'][_0x9c893b(0x242)]),void 0x0,!0x1,[]),[_0xcd012d,_0x1df929]=v[_0x9c893b(0x19b)](null),[_0x1b1b25,_0x3f00fa]=v[_0x9c893b(0x19b)](u['IDLE']),_0x2a95bb=v['useRef'](null);return v[_0x9c893b(0x1fe)](()=>(_0x409099&&_0x2de4d2[_0x9c893b(0x17d)](_0x409099[_0x9c893b(0x1f7)]())['then'](_0x4d2896=>{const _0x17348c=_0x9c893b;_0x1df929(_0x4d2896),_0x2a95bb[_0x17348c(0x1ae)]=_0x4d2896['status$']['subscribe'](_0x3091e9=>{_0x3f00fa(_0x3091e9);});}),()=>{const _0x4218c2=_0x9c893b;var _0x4ea2ce;(_0x4ea2ce=_0x2a95bb[_0x4218c2(0x1ae)])==null||_0x4ea2ce['unsubscribe'](),_0x2a95bb[_0x4218c2(0x1ae)]=null;}),[_0x409099,_0x2de4d2]),_0xcd012d?l[_0x9c893b(0x1bf)](f[_0x9c893b(0x1dc)],{'align':_0x9c893b(0x21d),'disabled':_0x1b1b25===u[_0x9c893b(0x1c3)],'className':_0x9c893b(0x17e),'overlay':l['jsx'](W,{'status':_0x1b1b25,'coordinator':_0xcd012d}),'children':l['jsx']('button',{'className':f['clsx'](_0x9c893b(0x1cf),{'univer-cursor-not-allowed':_0x1b1b25===u[_0x9c893b(0x1c3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1b1b25!==u[_0x9c893b(0x1c3)]}),'type':_0x9c893b(0x1ca),'children':l[_0x9c893b(0x1bf)](R,{'className':_0x9c893b(0x21f)})})}):null;}function W(_0x26d05d){const _0x520b4a=_0xcdd8a2,{status:_0x3f03a7,coordinator:_0x469855}=_0x26d05d;switch(_0x3f03a7){case u[_0x520b4a(0x178)]:return l[_0x520b4a(0x1bf)](G,{'coordinator':_0x469855});case u['FOLLOWING']:return l['jsx'](B,{'coordinator':_0x469855});case u[_0x520b4a(0x177)]:return l['jsx'](Y,{'coordinator':_0x469855});case u[_0x520b4a(0x1c3)]:return l[_0x520b4a(0x1bf)](J,{});case u[_0x520b4a(0x1f6)]:return l[_0x520b4a(0x1bf)](Z,{'coordinator':_0x469855});default:return null;}}function G(_0x362a07){const _0x39948f=_0xcdd8a2,{coordinator:_0x1247e}=_0x362a07;return l[_0x39948f(0x18d)](l['Fragment'],{'children':[l['jsx'](_0x39948f(0x1b8),{'className':_0x39948f(0x1c4),'children':'Present\x20this\x20document'}),l['jsx'](f[_0x39948f(0x1d0)],{'onClick':()=>_0x1247e['tryStartPresenting'](),'children':_0x39948f(0x244)})]});}function _0x247a(_0x1da54b,_0x390ce4){_0x1da54b=_0x1da54b-0x175;const _0x10bbcf=_0x10bb();let _0x247a1f=_0x10bbcf[_0x1da54b];return _0x247a1f;}function _0x10bb(){const _0x48ffa4=['defineProperty','jsxs','You\x27re\x20presenting\x20the\x20document','idSuffix','http://www.w3.org/2000/svg','executeCommand','send','map','find','parseProtocolChangeset','_sharedOperations','use','LIVESHARE_FETCH_OPERATIONS','_handleNewHost','_startPresenting','useState','getLiveShareCoordinatorSync','data','1424mHwNUd','get','values','UniverInstanceType','currentColor','evenodd','CollaborationSessionService','UNIVER_UNKNOWN','path','CollaborationEvent','attrs','114687SZAoGv','RxDisposable','Stop\x20following','_uiPartsService','BehaviorSubject','current','_config','pluginName','_stopPresenting','useRef','_reporters','1em','init','params','string','div','_stopFollowing','children','mask','unitId','_commandDisposable','Module','jsx','idle','tryStartPresenting','stringify','OFFLINE','univer-mb-3\x20univer-w-full\x20univer-text-sm','Injector','getStatus','_startFollowing','Inject','getCurrentTypeOfUnit$','button','BuiltInUIPart','override','IUIPartsService','Disposable','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Button','connectInjector','fill','DesktopLiveShareController','reverse','HEADER_MENU','disposeWithMe','memberID','createElement','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','UniverCollaborationClientPlugin','0\x200\x2017\x2017','Dropdown','clear','Start\x20following','startFollowing','429402VrPBiv','onRendered','_injector','1414UWAATi','4GNvuSl','InsertSheetMutation','_configService','createInstance','stopFollowing','_handleOnline','LiveShare','dispose','entries','360600atMUcl','_unitID','defIds','getInitialStates','forwardRef','LIVESHARE_OPERATION','registerInitialStateReporter','registerSharedOperation','useObservable','PRESENTING','getUnitId','merge','IConfigService','displayName','toStringTag','shouldShareOperation','tag','useEffect','random','symbol','Subject','OPERATION','FOLLOWING','_handleOperation','dispose$','complete','_univerInstanceService','pipe','touchDependencies','following','LiveShareCoordinator','getMemberID','_mountLiveShare','SessionStatus','UniverIcon','not-following','registerComponent','forEach','set','_commandService','getTypeOfUnitDisposed$','_collabSessionService','from','onCommandExecuted','replace','_fetchOperations','LiveShareIcon','sessionStatus$','end','toString','univer-size-4','UniverLiveSharePlugin','_status','useDependency','mutations','LIVESHARE_REQUEST_HOST','_handleTerminate','mergeOverrideWithDependencies','_init','trim','event$','You\x27re\x20not\x20following\x20the\x20presenter','svg','assign','next','Fragment','_presenter','828205IZveJU','length','includes','has','UNIVER_LIVE_SHARE_PLUGIN','default','_liveShareService','status$','_status$','toDisposable','LIVESHARE_NEW_HOST','parse','add','_entities','substring','defs','subscribe','_startLiveShareCoordinator','UNIVER_SHEET','3832jaUbik','Start','LiveShareController','asObservable','presenter','338obyhas','ICommandService','setConfig','You\x27re\x20following\x20the\x20presenter','_beIdle','DependentOn','throttleTime','_handleOffline','_collabSession','NOT_FOLLOWING','IDLE','takeUntil','xlink:href','SetWorksheetActiveOperation','getOwnPropertyDescriptor','getLiveShareCoordinator','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','type','delete','Plugin','393700GmzJRT','LIVESHARE_TERMINATE','registerDependencies','colorChannel1','LiveShareService','offline','presenting','SetZoomRatioOperation','_handleNewChangeSets','IUniverInstanceService'];_0x10bb=function(){return _0x48ffa4;};return _0x10bb();}function B(_0x9802bb){const _0x396968=_0xcdd8a2,{coordinator:_0x1d857d}=_0x9802bb;return l['jsxs'](l[_0x396968(0x22e)],{'children':[l['jsx'](_0x396968(0x1b8),{'className':_0x396968(0x1c4),'children':_0x396968(0x24b)}),l[_0x396968(0x1bf)](f['Button'],{'onClick':()=>_0x1d857d[_0x396968(0x1e8)](),'children':_0x396968(0x1ab)})]});}function Y(_0x3d8d1f){const _0x593a09=_0xcdd8a2,{coordinator:_0x1cf094}=_0x3d8d1f;return l['jsxs'](l[_0x593a09(0x22e)],{'children':[l[_0x593a09(0x1bf)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x593a09(0x22a)}),l[_0x593a09(0x1bf)](f[_0x593a09(0x1d0)],{'variant':'text','onClick':()=>_0x1cf094[_0x593a09(0x1df)](),'children':_0x593a09(0x1de)})]});}function Z(_0x4e4a70){const _0x4867a7=_0xcdd8a2,{coordinator:_0x13621a}=_0x4e4a70;return l['jsxs'](l[_0x4867a7(0x22e)],{'children':[l[_0x4867a7(0x1bf)](_0x4867a7(0x1b8),{'className':_0x4867a7(0x1c4),'children':_0x4867a7(0x18e)}),l[_0x4867a7(0x1bf)](f[_0x4867a7(0x1d0)],{'variant':_0x4867a7(0x235),'onClick':()=>_0x13621a['stopPresenting'](),'children':'Stop\x20presenting'})]});}function J(){const _0x4f376b=_0xcdd8a2;return l[_0x4f376b(0x1bf)](l[_0x4f376b(0x22e)],{'children':'You\x27are\x20offline.'});}var K=Object[_0xcdd8a2(0x17c)],z=(_0x48da8f,_0x4944d9,_0x2af6a2,_0x17efd6)=>{const _0x3bb2e2=_0xcdd8a2;for(var _0x10a9e7=_0x17efd6>0x1?void 0x0:_0x17efd6?K(_0x4944d9,_0x2af6a2):_0x4944d9,_0x12b581=_0x48da8f[_0x3bb2e2(0x231)]-0x1,_0x52152a;_0x12b581>=0x0;_0x12b581--)(_0x52152a=_0x48da8f[_0x12b581])&&(_0x10a9e7=_0x52152a(_0x10a9e7)||_0x10a9e7);return _0x10a9e7;},L=(_0x4d4274,_0xa4f9b2)=>(_0xf95da2,_0x5d2684)=>_0xa4f9b2(_0xf95da2,_0x5d2684,_0x4d4274);exports[_0xcdd8a2(0x1d3)]=class extends o[_0xcdd8a2(0x1ce)]{constructor(_0x2ed776,_0x5d211f){const _0x4cf390=_0xcdd8a2;super(),this[_0x4cf390(0x1e2)]=_0x2ed776,this[_0x4cf390(0x1ac)]=_0x5d211f,this[_0x4cf390(0x20d)]();}[_0xcdd8a2(0x20d)](){const _0x572833=_0xcdd8a2;this[_0x572833(0x1d6)](this[_0x572833(0x1ac)][_0x572833(0x211)](p[_0x572833(0x1cb)][_0x572833(0x1d5)],()=>p[_0x572833(0x1d1)]($,this[_0x572833(0x1e2)])));}},exports[_0xcdd8a2(0x1d3)]=z([L(0x0,o[_0xcdd8a2(0x1c8)](o[_0xcdd8a2(0x1c5)])),L(0x1,p[_0xcdd8a2(0x1cd)])],exports['DesktopLiveShareController']);const Q='live-share.config',w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x4f32c2,_0x44b434,_0x4e8a6d,_0x5d8b01)=>{const _0x4725f7=_0xcdd8a2;for(var _0x5191b5=_0x5d8b01>0x1?void 0x0:_0x5d8b01?X(_0x44b434,_0x4e8a6d):_0x44b434,_0x27bc2c=_0x4f32c2[_0x4725f7(0x231)]-0x1,_0x980afd;_0x27bc2c>=0x0;_0x27bc2c--)(_0x980afd=_0x4f32c2[_0x27bc2c])&&(_0x5191b5=_0x980afd(_0x5191b5)||_0x5191b5);return _0x5191b5;},te=(_0x76b548,_0x4afe5c)=>(_0x308fa3,_0x560b76)=>_0x4afe5c(_0x308fa3,_0x560b76,_0x76b548);let m=class extends o[_0xcdd8a2(0x1ce)]{constructor(_0x2a359d){const _0xeba375=_0xcdd8a2;super(),this[_0xeba375(0x236)]=_0x2a359d,this['_init']();}['_init'](){const _0x57a7c1=_0xcdd8a2;[D[_0x57a7c1(0x189)]['id'],D['SetScrollOperation']['id'],C[_0x57a7c1(0x17b)]['id']][_0x57a7c1(0x212)](_0x159fbb=>{const _0x3a6019=_0x57a7c1;this['disposeWithMe'](this[_0x3a6019(0x236)][_0x3a6019(0x1f4)](_0x159fbb));});}};m=ee([te(0x0,o[_0xcdd8a2(0x1c8)](E))],m);var ie=Object[_0xcdd8a2(0x18c)],se=Object[_0xcdd8a2(0x17c)],ne=(_0x56fe7f,_0x58a06e,_0x1d5f5d)=>_0x58a06e in _0x56fe7f?ie(_0x56fe7f,_0x58a06e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d5f5d}):_0x56fe7f[_0x58a06e]=_0x1d5f5d,re=(_0x3ab5c4,_0x41ef58,_0x35b8e5,_0x39c52f)=>{for(var _0x5a86ce=_0x39c52f>0x1?void 0x0:_0x39c52f?se(_0x41ef58,_0x35b8e5):_0x41ef58,_0x14dc44=_0x3ab5c4['length']-0x1,_0x4bbced;_0x14dc44>=0x0;_0x14dc44--)(_0x4bbced=_0x3ab5c4[_0x14dc44])&&(_0x5a86ce=_0x4bbced(_0x5a86ce)||_0x5a86ce);return _0x5a86ce;},N=(_0x161715,_0x1715a3)=>(_0x2a9893,_0x4997b8)=>_0x1715a3(_0x2a9893,_0x4997b8,_0x161715),A=(_0x36a0be,_0x40dbd0,_0x22c838)=>ne(_0x36a0be,typeof _0x40dbd0!='symbol'?_0x40dbd0+'':_0x40dbd0,_0x22c838);const oe=_0xcdd8a2(0x234);exports['UniverLiveSharePlugin']=class extends o[_0xcdd8a2(0x181)]{constructor(_0x4c9ff8=w,_0x367f4b,_0x17e011){const _0x3fbe4d=_0xcdd8a2;super(),this[_0x3fbe4d(0x1af)]=_0x4c9ff8,this[_0x3fbe4d(0x1e2)]=_0x367f4b,this[_0x3fbe4d(0x1e6)]=_0x17e011;const {..._0x3125c9}=o[_0x3fbe4d(0x1f8)]({},w,this[_0x3fbe4d(0x1af)]);this[_0x3fbe4d(0x1e6)][_0x3fbe4d(0x24a)](Q,_0x3125c9);}['onStarting'](){const _0x172014=_0xcdd8a2;o[_0x172014(0x184)](this[_0x172014(0x1e2)],o[_0x172014(0x226)]([[E],[exports['LiveShareController']],[m],[exports[_0x172014(0x1d3)]]],this[_0x172014(0x1af)][_0x172014(0x1cc)])),o['touchDependencies'](this[_0x172014(0x1e2)],[[m]]);}[_0xcdd8a2(0x1e1)](){const _0x513faa=_0xcdd8a2;o[_0x513faa(0x209)](this[_0x513faa(0x1e2)],[[exports[_0x513faa(0x1d3)]]]);}},A(exports[_0xcdd8a2(0x220)],'type',o[_0xcdd8a2(0x1a1)][_0xcdd8a2(0x1a5)]),A(exports[_0xcdd8a2(0x220)],_0xcdd8a2(0x1b0),oe),exports[_0xcdd8a2(0x220)]=re([o[_0xcdd8a2(0x24d)](b[_0xcdd8a2(0x1da)]),N(0x1,o[_0xcdd8a2(0x1c8)](o[_0xcdd8a2(0x1c5)])),N(0x2,o[_0xcdd8a2(0x1f9)])],exports[_0xcdd8a2(0x220)]),exports[_0xcdd8a2(0x1ea)]=$,exports[_0xcdd8a2(0x186)]=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
|
-
function
|
|
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 _0x258e06=_0x4c24;(function(_0x56ccd9,_0x4350db){const _0x25e6aa=_0x4c24,_0x271de4=_0x56ccd9();while(!![]){try{const _0x9219a1=-parseInt(_0x25e6aa(0x17c))/0x1+-parseInt(_0x25e6aa(0x15e))/0x2*(-parseInt(_0x25e6aa(0x1af))/0x3)+parseInt(_0x25e6aa(0x1a3))/0x4+parseInt(_0x25e6aa(0x1a7))/0x5+-parseInt(_0x25e6aa(0x11b))/0x6*(-parseInt(_0x25e6aa(0x1a6))/0x7)+parseInt(_0x25e6aa(0x122))/0x8*(-parseInt(_0x25e6aa(0x1a8))/0x9)+parseInt(_0x25e6aa(0x16e))/0xa;if(_0x9219a1===_0x4350db)break;else _0x271de4['push'](_0x271de4['shift']());}catch(_0x4cc069){_0x271de4['push'](_0x271de4['shift']());}}}(_0x3818,0xd6fbe));var J=Object[_0x258e06(0x1bf)],K=(_0xc91e88,_0x3e4973,_0x18c7aa)=>_0x3e4973 in _0xc91e88?J(_0xc91e88,_0x3e4973,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18c7aa}):_0xc91e88[_0x3e4973]=_0x18c7aa,u=(_0x3e5c39,_0x14aad4,_0x5269c2)=>K(_0x3e5c39,typeof _0x14aad4!=_0x258e06(0x12d)?_0x14aad4+'':_0x14aad4,_0x5269c2);import{Disposable as _0x324efe,toDisposable as _0x3a3481,IUniverInstanceService as _0x4da99a,Inject as _0x78ae44,Injector as _0x2d4c16,IConfigService as _0x5aa847,ICommandService as _0x4f1d1d,RxDisposable as _0x391391,UniverInstanceType as _0x35559f,DisposableCollection as _0x4d8c75,CommandType as _0x14d400,DependentOn as _0x42a005,Plugin as _0x3ffe0c,merge as _0x1fe50c,registerDependencies as _0x2fbe26,mergeOverrideWithDependencies as _0x23ef20,touchDependencies as _0x3e4dcd}from'@univerjs/core';import{useDependency as _0x37223d,useObservable as _0x5b2abe,IUIPartsService as _0x156e10,BuiltInUIPart as _0x28e9dd,connectInjector as _0x1af1ba}from'@univerjs/ui';import{jsx as _0x4ed4a5,jsxs as _0x3a3244,Fragment as _0x18389c}from'react/jsx-runtime';import{Dropdown as _0x35fe18,clsx as _0x5580d9,Button as _0x476c51}from'@univerjs/design';import{useRef as _0x2baf0a,createElement as _0x21c1d5,forwardRef as _0x4ad21f,useState as _0x4104d8,useEffect as _0x3cf0aa}from'react';import{CollaborationEvent as _0x479a15,parseProtocolChangeset as _0x278421}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x359579,SessionStatus as _0x256689,UniverCollaborationClientPlugin as _0x285791}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x34e958,SetWorksheetActiveOperation as _0x2b85d9}from'@univerjs/sheets';import{BehaviorSubject as _0x388f3e,Subject as _0x2c03bf}from'rxjs';import{takeUntil as _0x30a49e,throttleTime as _0x2b3990}from'rxjs/operators';import{SetZoomRatioOperation as _0x18b166,SetScrollOperation as _0x3e75bb}from'@univerjs/sheets-ui';function k({ref:_0x194218,..._0xbab5ab}){const _0x2b4f5e=_0x258e06,{icon:_0x3549d4,id:_0x5f28d1,className:_0x28db96,extend:_0x14eea9,..._0x2f71b9}=_0xbab5ab,_0x5a69ad=(_0x2b4f5e(0x189)+_0x5f28d1+'\x20'+(_0x28db96||''))['trim'](),_0x269383=_0x2baf0a('_'+Oe());return G(_0x3549d4,''+_0x5f28d1,{'defIds':_0x3549d4[_0x2b4f5e(0x19c)],'idSuffix':_0x269383[_0x2b4f5e(0x11c)]},{'ref':_0x194218,'className':_0x5a69ad,..._0x2f71b9},_0x14eea9);}function G(_0x118c4b,_0x2ff79e,_0x89e27,_0x4070fb,_0x24b5b0){const _0x134d41=_0x258e06;return _0x21c1d5(_0x118c4b['tag'],{'key':_0x2ff79e,...be(_0x118c4b,_0x89e27,_0x24b5b0),..._0x4070fb},(Ee(_0x118c4b,_0x89e27)[_0x134d41(0x14e)]||[])[_0x134d41(0x179)]((_0x4b3224,_0x219f4c)=>G(_0x4b3224,_0x2ff79e+'-'+_0x118c4b[_0x134d41(0x131)]+'-'+_0x219f4c,_0x89e27,void 0x0,_0x24b5b0)));}function be(_0x35238c,_0x6d2cd5,_0x116d26){const _0x176feb=_0x258e06,_0xa91998={..._0x35238c['attrs']};_0x116d26!=null&&_0x116d26['colorChannel1']&&_0xa91998[_0x176feb(0x18e)]===_0x176feb(0x18d)&&(_0xa91998[_0x176feb(0x18e)]=_0x116d26[_0x176feb(0x18d)]),_0x35238c['tag']==='mask'&&_0xa91998['id']&&(_0xa91998['id']=_0xa91998['id']+_0x6d2cd5[_0x176feb(0x126)]),Object[_0x176feb(0x135)](_0xa91998)[_0x176feb(0x155)](([_0x252b4c,_0x49c58a])=>{const _0x5e4949=_0x176feb;_0x252b4c==='mask'&&typeof _0x49c58a==_0x5e4949(0x12c)&&(_0xa91998[_0x252b4c]=_0x49c58a['replace'](/url\(#(.*)\)/,_0x5e4949(0x1ae)+_0x6d2cd5[_0x5e4949(0x126)]+')'));});const {defIds:_0x1a4097}=_0x6d2cd5;return!_0x1a4097||_0x1a4097['length']===0x0||(_0x35238c['tag']==='use'&&_0xa91998[_0x176feb(0x17d)]&&(_0xa91998['xlink:href']=_0xa91998[_0x176feb(0x17d)]+_0x6d2cd5['idSuffix']),Object[_0x176feb(0x135)](_0xa91998)[_0x176feb(0x155)](([_0x31f0aa,_0x418dc5])=>{const _0x4dd701=_0x176feb;typeof _0x418dc5=='string'&&(_0xa91998[_0x31f0aa]=_0x418dc5[_0x4dd701(0x183)](/url\(#(.*)\)/,_0x4dd701(0x1ae)+_0x6d2cd5['idSuffix']+')'));})),_0xa91998;}function Ee(_0x1913ff,_0x45d6ef){const _0xad8579=_0x258e06;var _0x47afbb;const {defIds:_0x40a61e}=_0x45d6ef;return!_0x40a61e||_0x40a61e['length']===0x0?_0x1913ff:_0x1913ff['tag']===_0xad8579(0x168)&&((_0x47afbb=_0x1913ff[_0xad8579(0x14e)])!=null&&_0x47afbb[_0xad8579(0x125)])?{..._0x1913ff,'children':_0x1913ff[_0xad8579(0x14e)]['map'](_0x1948a9=>typeof _0x1948a9[_0xad8579(0x147)]['id']=='string'&&_0x40a61e&&_0x40a61e[_0xad8579(0x1b4)](_0x1948a9[_0xad8579(0x147)]['id'])?{..._0x1948a9,'attrs':{..._0x1948a9['attrs'],'id':_0x1948a9[_0xad8579(0x147)]['id']+_0x45d6ef[_0xad8579(0x126)]}}:_0x1948a9)}:_0x1913ff;}function Oe(){const _0x3c6430=_0x258e06;return Math[_0x3c6430(0x1bd)]()[_0x3c6430(0x146)](0x24)[_0x3c6430(0x1be)](0x2,0x8);}k[_0x258e06(0x11a)]=_0x258e06(0x16b);const we={'tag':_0x258e06(0x1b5),'attrs':{'xmlns':_0x258e06(0x1ba),'fill':_0x258e06(0x17f),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x258e06(0x12f)},'children':[{'tag':'path','attrs':{'fill':_0x258e06(0x159),'d':_0x258e06(0x193)}},{'tag':_0x258e06(0x156),'attrs':{'fill':_0x258e06(0x159),'d':_0x258e06(0x14f),'fillRule':_0x258e06(0x1b8),'clipRule':_0x258e06(0x1b8)}}]},W=_0x4ad21f(function(_0x457ca2,_0x3d420c){const _0x293334=_0x258e06;return _0x21c1d5(k,Object[_0x293334(0x188)]({},_0x457ca2,{'id':_0x293334(0x1b2),'ref':_0x3d420c,'icon':we}));});W[_0x258e06(0x11a)]=_0x258e06(0x15f);class L extends _0x324efe{constructor(){const _0x36f6aa=_0x258e06;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x36f6aa(0x178),new Set());}['registerSharedOperation'](_0x506fde){const _0x1271ad=_0x258e06;return this[_0x1271ad(0x163)][_0x1271ad(0x182)](_0x506fde),_0x3a3481(()=>this[_0x1271ad(0x163)][_0x1271ad(0x15a)](_0x506fde));}['registerInitialStateReporter'](_0x250f62){const _0x27e833=_0x258e06;return this[_0x27e833(0x178)]['add'](_0x250f62),_0x3a3481(()=>this[_0x27e833(0x178)][_0x27e833(0x15a)](_0x250f62));}[_0x258e06(0x162)](_0x328b9e){const _0x4bbde7=_0x258e06;return this[_0x4bbde7(0x163)][_0x4bbde7(0x185)](_0x328b9e);}['getInitialStates'](_0x378ecb){const _0x8da5ff=_0x258e06;return Array[_0x8da5ff(0x148)](this['_reporters'])[_0x8da5ff(0x179)](_0x2dedc6=>_0x2dedc6(_0x378ecb));}}var Ne=Object[_0x258e06(0x13c)],Y=(_0x11b179,_0x235a01,_0x579745,_0x28082c)=>{for(var _0x46d98a=_0x28082c>0x1?void 0x0:_0x28082c?Ne(_0x235a01,_0x579745):_0x235a01,_0x304e2e=_0x11b179['length']-0x1,_0x722cfc;_0x304e2e>=0x0;_0x304e2e--)(_0x722cfc=_0x11b179[_0x304e2e])&&(_0x46d98a=_0x722cfc(_0x46d98a)||_0x46d98a);return _0x46d98a;},_=(_0x30ec16,_0x151809)=>(_0x35a5d3,_0x3da833)=>_0x151809(_0x35a5d3,_0x3da833,_0x30ec16);let S=class extends _0x391391{constructor(_0x591373,_0x1dd949,_0x53f9ae){const _0x305932=_0x258e06;super(),u(this,_0x305932(0x167),new Map()),(this[_0x305932(0x1a1)]=_0x591373,this['_injector']=_0x1dd949,this['_collabSessionService']=_0x53f9ae,this[_0x305932(0x13f)]());}async['getLiveShareCoordinator'](_0x3fdbc6){const _0x4eae70=_0x258e06;return this[_0x4eae70(0x167)]['has'](_0x3fdbc6)||await this['_startLiveShareCoordinator'](_0x3fdbc6),this['_entities'][_0x4eae70(0x18b)](_0x3fdbc6);}[_0x258e06(0x190)](_0x39d865){const _0x45f4cd=_0x258e06;var _0x389a92;return(_0x389a92=this[_0x45f4cd(0x167)][_0x45f4cd(0x18b)](_0x39d865))!=null?_0x389a92:null;}[_0x258e06(0x13f)](){const _0x3e59d2=_0x258e06;this[_0x3e59d2(0x1a1)][_0x3e59d2(0x11f)](_0x35559f[_0x3e59d2(0x120)])[_0x3e59d2(0x19f)](_0x30a49e(this[_0x3e59d2(0x1a9)]))['subscribe'](async _0x139e7f=>{const _0x3fc23c=_0x3e59d2,_0x5db3c9=_0x139e7f[_0x3fc23c(0x181)]();this[_0x3fc23c(0x167)][_0x3fc23c(0x185)](_0x5db3c9)||this['_startLiveShareCoordinator'](_0x5db3c9);}),this[_0x3e59d2(0x1a1)][_0x3e59d2(0x1a4)](_0x35559f[_0x3e59d2(0x120)])[_0x3e59d2(0x19f)](_0x30a49e(this[_0x3e59d2(0x1a9)]))['subscribe'](_0x2b0194=>{const _0x35ab1f=_0x3e59d2,_0x1aa086=_0x2b0194[_0x35ab1f(0x181)](),_0xe01af9=this[_0x35ab1f(0x167)][_0x35ab1f(0x18b)](_0x1aa086);_0xe01af9==null||_0xe01af9[_0x35ab1f(0x138)]();});}async['_startLiveShareCoordinator'](_0x4de79d){const _0x4c2287=_0x258e06,_0x20d921=await this[_0x4c2287(0x164)][_0x4c2287(0x14c)](_0x4de79d),_0x2885fe=this[_0x4c2287(0x19a)][_0x4c2287(0x195)](N,_0x4de79d,_0x20d921);return _0x2885fe['init'](),this[_0x4c2287(0x167)][_0x4c2287(0x11d)](_0x4de79d,_0x2885fe),_0x2885fe;}};S=Y([_(0x0,_0x4da99a),_(0x1,_0x78ae44(_0x2d4c16)),_(0x2,_0x78ae44(_0x359579))],S);var c=(_0x247749=>(_0x247749['OFFLINE']='offline',_0x247749[_0x258e06(0x118)]=_0x258e06(0x14b),_0x247749[_0x258e06(0x17a)]=_0x258e06(0x1a5),_0x247749[_0x258e06(0x1c1)]='not-following',_0x247749[_0x258e06(0x129)]='presenting',_0x247749))(c||{});function _0x3818(){const _0x27a5df=['_univerInstanceService','default','2823368CAqyld','getTypeOfUnitDisposed$','following','618422zHIsnP','8352335wJFcxz','324aYsDYR','dispose$','data','_stopPresenting','_handleOperation','getLiveShareCoordinator','url(#$1','283818lOtlXK','sheet','_fetchOperations','live-share-icon','registerSharedOperation','includes','svg','_configService','stringify','evenodd','text','http://www.w3.org/2000/svg','unitId','onStarting','random','substring','defineProperty','event$','NOT_FOLLOWING','_stopFollowing','pluginName','IDLE','NEW_CHANGESETS','displayName','30RwFeiS','current','set','init','getTypeOfUnitAdded$','UNIVER_SHEET','LIVESHARE_FETCH_OPERATIONS','234696RwjcNt','Start','_handleNewHost','length','idSuffix','_handleOnline','_liveShareService','PRESENTING','Present\x20this\x20document','_handleNewChangeSets','string','symbol','tryStartPresenting','1em','operations','tag','_commandDisposable','_status','mutations','entries','stopFollowing','parse','dispose','univer-size-4','sessionStatus$','next','getOwnPropertyDescriptor','_beIdle','_presenter','_init','_uiPartsService','You\x27are\x20offline.','Stop\x20presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','LIVESHARE_REQUEST_HOST','toString','attrs','from','_config','reverse','idle','requireSession','presenting','children','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','_status$','stopPresenting','OFFLINE','Stop\x20following','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','forEach','path','LIVESHARE_TERMINATE','_unitID','currentColor','delete','You\x27re\x20presenting\x20the\x20document','_startFollowing','send','14oRwXzb','LiveShareIcon','_commandService','getMemberID','shouldShareOperation','_sharedOperations','_collabSessionService','offline','status$','_entities','defs','override','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','You\x27re\x20following\x20the\x20presenter','_handleTerminate','1203280uVNcPa','setConfig','onCommandExecuted','unsubscribe','UNIVER_UNKNOWN','LIVESHARE_OPERATION','subscribe','getInitialStates','_mountLiveShare','registerComponent','_reporters','map','FOLLOWING','button','1663903WpOAKe','xlink:href','find','none','UNIVER_LIVE_SHARE_PLUGIN','getUnitId','add','replace','not-following','has','getConfig','presenter','assign','univerjs-icon\x20univerjs-icon-','complete','get','params','colorChannel1','fill','startFollowing','getLiveShareCoordinatorSync','disposeWithMe','Start\x20following','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','createInstance','div','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','type','_handleOffline','_injector','then','defIds','You\x27re\x20not\x20following\x20the\x20presenter','_collabSession','pipe','_startPresenting'];_0x3818=function(){return _0x27a5df;};return _0x3818();}function _0x4c24(_0xded936,_0x3e6056){_0xded936=_0xded936-0x116;const _0x381899=_0x3818();let _0x4c2442=_0x381899[_0xded936];return _0x4c2442;}const Ce=_0x258e06(0x16a),De=0xc8;let N=class extends _0x391391{constructor(_0x19d682,_0x4f8d4c,_0x962a59,_0x24d6a4,_0x4806f7){const _0x480b38=_0x258e06;super(),u(this,'_status$',new _0x388f3e(_0x480b38(0x14b))),u(this,_0x480b38(0x166),this[_0x480b38(0x150)]['asObservable']()),u(this,_0x480b38(0x13f),!0x1),u(this,_0x480b38(0x132),null),u(this,_0x480b38(0x13e),null),(this[_0x480b38(0x158)]=_0x19d682,this[_0x480b38(0x19e)]=_0x4f8d4c,this[_0x480b38(0x1b6)]=_0x962a59,this['_liveShareService']=_0x24d6a4,this[_0x480b38(0x160)]=_0x4806f7);}get['_status'](){const _0x302f2a=_0x258e06;return this[_0x302f2a(0x150)][_0x302f2a(0x144)]();}[_0x258e06(0x138)](){const _0x574c3c=_0x258e06;var _0x4d31e9;(_0x4d31e9=this[_0x574c3c(0x132)])==null||_0x4d31e9[_0x574c3c(0x138)](),this['_status$']['next'](_0x574c3c(0x14b)),this[_0x574c3c(0x150)][_0x574c3c(0x18a)]();}['getStatus'](){const _0x25df1b=_0x258e06;return this[_0x25df1b(0x133)];}[_0x258e06(0x11e)](){const _0x3cb334=_0x258e06;this[_0x3cb334(0x13f)]||(this[_0x3cb334(0x13f)]=!0x0,this[_0x3cb334(0x19e)][_0x3cb334(0x13a)][_0x3cb334(0x19f)](_0x30a49e(this[_0x3cb334(0x1a9)]))['subscribe'](_0x966ab2=>{const _0x2d9ac5=_0x3cb334;switch(_0x966ab2){case _0x256689['OFFLINE']:this[_0x2d9ac5(0x199)]();break;case _0x256689['ONLINE']:this[_0x2d9ac5(0x127)]();break;}}),this[_0x3cb334(0x19e)][_0x3cb334(0x1c0)][_0x3cb334(0x19f)](_0x30a49e(this['dispose$']))['subscribe'](_0x1aac34=>{const _0x561cbf=_0x3cb334,{eventID:_0x30b0f9}=_0x1aac34;switch(_0x30b0f9){case _0x479a15['LIVESHARE_NEW_HOST']:this[_0x561cbf(0x124)](_0x1aac34);break;case _0x479a15[_0x561cbf(0x173)]:this[_0x561cbf(0x1ac)](_0x1aac34);break;case _0x479a15[_0x561cbf(0x157)]:this[_0x561cbf(0x16d)]();break;case _0x479a15[_0x561cbf(0x119)]:this[_0x561cbf(0x12b)](_0x1aac34);break;}}));}[_0x258e06(0x12e)](){const _0x590cf2=_0x258e06;this[_0x590cf2(0x19e)][_0x590cf2(0x15d)]({'eventID':_0x479a15[_0x590cf2(0x145)],'data':{'unitID':this[_0x590cf2(0x158)],'userID':this[_0x590cf2(0x19e)][_0x590cf2(0x161)]()}},this[_0x590cf2(0x158)]);}[_0x258e06(0x151)](){const _0x45d9a0=_0x258e06;this[_0x45d9a0(0x133)]===_0x45d9a0(0x14d)&&(this[_0x45d9a0(0x150)][_0x45d9a0(0x13b)](_0x45d9a0(0x14b)),this[_0x45d9a0(0x19e)][_0x45d9a0(0x15d)]({'eventID':_0x479a15['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x45d9a0(0x158)]}},this[_0x45d9a0(0x158)]));}[_0x258e06(0x18f)](){const _0x2c2b92=_0x258e06;this[_0x2c2b92(0x133)]===_0x2c2b92(0x184)&&(this['_status$'][_0x2c2b92(0x13b)](_0x2c2b92(0x1a5)),this['_startFollowing']());}['stopFollowing'](){const _0x42a137=_0x258e06;this[_0x42a137(0x133)]===_0x42a137(0x1a5)&&this[_0x42a137(0x116)]();}[_0x258e06(0x124)](_0x44c2d8){const _0x3e768a=_0x258e06,{presenter:_0x48113b}=_0x44c2d8[_0x3e768a(0x1aa)],_0x263f97=this[_0x3e768a(0x19e)][_0x3e768a(0x161)]();this['_presenter']=_0x48113b,_0x48113b===_0x263f97?(this[_0x3e768a(0x116)](),this[_0x3e768a(0x1a0)]()):this[_0x3e768a(0x133)]!==_0x3e768a(0x184)&&(this[_0x3e768a(0x1ab)](),this['_startFollowing']());}['_fetchOperations'](){const _0x33dca4=_0x258e06,_0x53b06b={'eventID':_0x479a15[_0x33dca4(0x121)]};this[_0x33dca4(0x19e)][_0x33dca4(0x15d)](_0x53b06b,this[_0x33dca4(0x158)]);}['_handleTerminate'](){const _0x247c50=_0x258e06;this[_0x247c50(0x13e)]=null,this[_0x247c50(0x133)]!==_0x247c50(0x14d)&&this[_0x247c50(0x13d)]();}['_handleNewChangeSets'](_0x5e6e11){const _0x5e359c=_0x258e06;if(this[_0x5e359c(0x133)]===_0x5e359c(0x1a5)&&this[_0x5e359c(0x13e)]===_0x5e6e11['data']['memberID']){const _0x1eb865=_0x278421(_0x5e6e11['data'])[_0x5e359c(0x134)][_0x5e359c(0x14a)]()[_0x5e359c(0x17e)](_0x34a45a=>_0x34a45a['id']===_0x34e958['id']);if(_0x1eb865){const _0xf90fc=_0x1eb865[_0x5e359c(0x18c)][_0x5e359c(0x1bb)],_0x2dc432=_0x1eb865['params'][_0x5e359c(0x1b0)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x2b85d9['id'],{'unitId':_0xf90fc,'subUnitId':_0x2dc432},{'fromCollab':!0x0});});}}}[_0x258e06(0x1a0)](){const _0x21fe20=_0x258e06;this[_0x21fe20(0x150)][_0x21fe20(0x13b)](_0x21fe20(0x14d));const _0x1c6c0e=new Map(),_0x3d4be3=this[_0x21fe20(0x132)]=new _0x4d8c75();_0x3d4be3[_0x21fe20(0x182)](_0x3a3481(()=>{const _0x17fac7=_0x21fe20;_0x1c6c0e[_0x17fac7(0x155)](_0x24693d=>_0x24693d[_0x17fac7(0x18a)]()),_0x1c6c0e['clear']();})),_0x3d4be3[_0x21fe20(0x182)](this[_0x21fe20(0x160)][_0x21fe20(0x170)](_0x58b1f2=>{const _0xfe3f6d=_0x21fe20;var _0xc3c074;if(_0x58b1f2[_0xfe3f6d(0x198)]!==_0x14d400['OPERATION']||!this['_liveShareService'][_0xfe3f6d(0x162)](_0x58b1f2['id']))return;const {id:_0x7517de}=_0x58b1f2;let _0x405b5f;_0x1c6c0e[_0xfe3f6d(0x185)](_0x7517de)?_0x405b5f=_0x1c6c0e[_0xfe3f6d(0x18b)](_0x7517de):(_0x405b5f=new _0x2c03bf(),_0x1c6c0e[_0xfe3f6d(0x11d)](_0x7517de,_0x405b5f),_0x405b5f[_0xfe3f6d(0x19f)](_0x2b3990((_0xc3c074=this['_configService'][_0xfe3f6d(0x186)](Ce))!=null?_0xc3c074:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xfe3f6d(0x174)](_0x3835e6=>{const _0x1b0c84=_0xfe3f6d;this['_collabSession'][_0x1b0c84(0x15d)]({'eventID':_0x479a15[_0x1b0c84(0x173)],'data':{'unitID':this['_unitID'],'operations':{[_0x3835e6['id']]:{'id':_0x3835e6['id'],'params':JSON['stringify'](_0x3835e6['params'])}}}},this['_unitID']);})),_0x405b5f[_0xfe3f6d(0x13b)](_0x58b1f2);})),this[_0x21fe20(0x128)][_0x21fe20(0x175)](this[_0x21fe20(0x158)])[_0x21fe20(0x155)](_0x4ec61e=>this[_0x21fe20(0x19e)][_0x21fe20(0x15d)]({'eventID':_0x479a15[_0x21fe20(0x173)],'data':{'unitID':this['_unitID'],'operations':{[_0x4ec61e['id']]:{'id':_0x4ec61e['id'],'params':JSON[_0x21fe20(0x1b7)](_0x4ec61e['params'])}}}},this[_0x21fe20(0x158)]));}[_0x258e06(0x1ab)](){const _0x1ab4f2=_0x258e06;var _0xc8df19;this[_0x1ab4f2(0x150)][_0x1ab4f2(0x13b)](_0x1ab4f2(0x14b)),(_0xc8df19=this['_commandDisposable'])==null||_0xc8df19[_0x1ab4f2(0x138)](),this[_0x1ab4f2(0x132)]=null;}[_0x258e06(0x15c)](){const _0x1bdb8e=_0x258e06;var _0x11b3db;(_0x11b3db=this[_0x1bdb8e(0x132)])==null||_0x11b3db[_0x1bdb8e(0x138)](),this[_0x1bdb8e(0x150)]['next'](_0x1bdb8e(0x1a5));}[_0x258e06(0x13d)](){const _0x393895=_0x258e06;var _0x186282;this[_0x393895(0x150)][_0x393895(0x13b)]('idle'),(_0x186282=this[_0x393895(0x132)])==null||_0x186282[_0x393895(0x138)](),this['_commandDisposable']=null;}[_0x258e06(0x116)](){const _0x1e43df=_0x258e06;var _0x53dd80;this[_0x1e43df(0x150)][_0x1e43df(0x13b)](_0x1e43df(0x184)),(_0x53dd80=this[_0x1e43df(0x132)])==null||_0x53dd80[_0x1e43df(0x138)]();}[_0x258e06(0x1ac)](_0x38d883){const _0x17aba9=_0x258e06;if([_0x17aba9(0x14d),_0x17aba9(0x184),_0x17aba9(0x165)][_0x17aba9(0x1b4)](this[_0x17aba9(0x133)])||!_0x38d883['data'][_0x17aba9(0x187)]||_0x38d883[_0x17aba9(0x1aa)][_0x17aba9(0x187)]===this['_collabSession'][_0x17aba9(0x161)]())return;this[_0x17aba9(0x133)]===_0x17aba9(0x14b)&&this[_0x17aba9(0x15c)]();const _0x4a9ba6=_0x38d883[_0x17aba9(0x1aa)][_0x17aba9(0x130)];Object[_0x17aba9(0x194)](_0x4a9ba6)['forEach'](_0x3010cb=>{const _0xa39adf=_0x17aba9;this['_commandService']['executeCommand'](_0x3010cb['id'],_0x3010cb[_0xa39adf(0x18c)]?JSON[_0xa39adf(0x137)](_0x3010cb[_0xa39adf(0x18c)]):null,{'fromCollab':!0x0});});}[_0x258e06(0x199)](){const _0x5840c2=_0x258e06;var _0x3f9aa2;this[_0x5840c2(0x150)][_0x5840c2(0x13b)]('offline'),(_0x3f9aa2=this['_commandDisposable'])==null||_0x3f9aa2[_0x5840c2(0x138)]();}[_0x258e06(0x127)](){const _0x144381=_0x258e06;this[_0x144381(0x150)][_0x144381(0x13b)](_0x144381(0x14b)),this[_0x144381(0x1b1)]();}};N=Y([_(0x2,_0x5aa847),_(0x3,_0x78ae44(L)),_(0x4,_0x4f1d1d)],N);function Le(){const _0x244db9=_0x258e06,_0x4dbb9b=_0x37223d(S),_0x4dbb9e=_0x37223d(_0x4da99a),_0x2c20dc=_0x5b2abe(()=>_0x4dbb9e['getCurrentTypeOfUnit$'](_0x35559f[_0x244db9(0x120)]),void 0x0,!0x1,[]),[_0x38a103,_0x1e71d1]=_0x4104d8(null),[_0x568087,_0x59bcb3]=_0x4104d8(c[_0x244db9(0x118)]),_0x1ed7e9=_0x2baf0a(null);return _0x3cf0aa(()=>(_0x2c20dc&&_0x4dbb9b[_0x244db9(0x1ad)](_0x2c20dc['getUnitId']())[_0x244db9(0x19b)](_0x86b729=>{const _0x26b7a1=_0x244db9;_0x1e71d1(_0x86b729),_0x1ed7e9[_0x26b7a1(0x11c)]=_0x86b729['status$'][_0x26b7a1(0x174)](_0x424f76=>{_0x59bcb3(_0x424f76);});}),()=>{const _0x54e7dd=_0x244db9;var _0xdf335b;(_0xdf335b=_0x1ed7e9[_0x54e7dd(0x11c)])==null||_0xdf335b[_0x54e7dd(0x171)](),_0x1ed7e9[_0x54e7dd(0x11c)]=null;}),[_0x2c20dc,_0x4dbb9b]),_0x38a103?_0x4ed4a5(_0x35fe18,{'align':'end','disabled':_0x568087===c[_0x244db9(0x152)],'className':_0x244db9(0x197),'overlay':_0x4ed4a5(Re,{'status':_0x568087,'coordinator':_0x38a103}),'children':_0x4ed4a5(_0x244db9(0x17b),{'className':_0x5580d9(_0x244db9(0x154),{'univer-cursor-not-allowed':_0x568087===c[_0x244db9(0x152)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x568087!==c[_0x244db9(0x152)]}),'type':_0x244db9(0x17b),'children':_0x4ed4a5(W,{'className':_0x244db9(0x139)})})}):null;}function Re(_0x3cbef7){const _0x5fccac=_0x258e06,{status:_0x5a50f1,coordinator:_0x155c72}=_0x3cbef7;switch(_0x5a50f1){case c[_0x5fccac(0x118)]:return _0x4ed4a5($e,{'coordinator':_0x155c72});case c[_0x5fccac(0x17a)]:return _0x4ed4a5(xe,{'coordinator':_0x155c72});case c[_0x5fccac(0x1c1)]:return _0x4ed4a5(Pe,{'coordinator':_0x155c72});case c['OFFLINE']:return _0x4ed4a5(Te,{});case c[_0x5fccac(0x129)]:return _0x4ed4a5(Ae,{'coordinator':_0x155c72});default:return null;}}function $e(_0x191a72){const _0x3a0e02=_0x258e06,{coordinator:_0x4870cf}=_0x191a72;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5('div',{'className':_0x3a0e02(0x143),'children':_0x3a0e02(0x12a)}),_0x4ed4a5(_0x476c51,{'onClick':()=>_0x4870cf[_0x3a0e02(0x12e)](),'children':_0x3a0e02(0x123)})]});}function xe(_0x1163a7){const _0x2fbea5=_0x258e06,{coordinator:_0x54337d}=_0x1163a7;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5(_0x2fbea5(0x196),{'className':_0x2fbea5(0x143),'children':_0x2fbea5(0x16c)}),_0x4ed4a5(_0x476c51,{'onClick':()=>_0x54337d[_0x2fbea5(0x136)](),'children':_0x2fbea5(0x153)})]});}function Pe(_0x5f3b86){const _0x424596=_0x258e06,{coordinator:_0x2d277c}=_0x5f3b86;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5('div',{'className':_0x424596(0x143),'children':_0x424596(0x19d)}),_0x4ed4a5(_0x476c51,{'variant':_0x424596(0x1b9),'onClick':()=>_0x2d277c[_0x424596(0x18f)](),'children':_0x424596(0x192)})]});}function Ae(_0x2c9171){const _0x1c77c3=_0x258e06,{coordinator:_0x172f3a}=_0x2c9171;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5(_0x1c77c3(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1c77c3(0x15b)}),_0x4ed4a5(_0x476c51,{'variant':_0x1c77c3(0x1a2),'onClick':()=>_0x172f3a[_0x1c77c3(0x151)](),'children':_0x1c77c3(0x142)})]});}function Te(){const _0x32c34a=_0x258e06;return _0x4ed4a5(_0x18389c,{'children':_0x32c34a(0x141)});}var Fe=Object[_0x258e06(0x13c)],He=(_0x4bb4e6,_0x1e6350,_0x49bdb0,_0x5cd775)=>{for(var _0x4a7a59=_0x5cd775>0x1?void 0x0:_0x5cd775?Fe(_0x1e6350,_0x49bdb0):_0x1e6350,_0x549473=_0x4bb4e6['length']-0x1,_0x386e74;_0x549473>=0x0;_0x549473--)(_0x386e74=_0x4bb4e6[_0x549473])&&(_0x4a7a59=_0x386e74(_0x4a7a59)||_0x4a7a59);return _0x4a7a59;},A=(_0x46c54f,_0x3f7928)=>(_0x39a916,_0x44a92f)=>_0x3f7928(_0x39a916,_0x44a92f,_0x46c54f);let m=class extends _0x324efe{constructor(_0x4337ee,_0x25cfc8){const _0x14c837=_0x258e06;super(),this[_0x14c837(0x19a)]=_0x4337ee,this['_uiPartsService']=_0x25cfc8,this[_0x14c837(0x176)]();}['_mountLiveShare'](){const _0x4e1fed=_0x258e06;this[_0x4e1fed(0x191)](this[_0x4e1fed(0x140)][_0x4e1fed(0x177)](_0x28e9dd['HEADER_MENU'],()=>_0x1af1ba(Le,this[_0x4e1fed(0x19a)])));}};m=He([A(0x0,_0x78ae44(_0x2d4c16)),A(0x1,_0x156e10)],m);const ye='live-share.config',T={};var Ue=Object[_0x258e06(0x13c)],Ve=(_0x4eb4d5,_0x20d7b4,_0x1e97d4,_0x519589)=>{const _0x25aab6=_0x258e06;for(var _0xb77ca4=_0x519589>0x1?void 0x0:_0x519589?Ue(_0x20d7b4,_0x1e97d4):_0x20d7b4,_0x5e0473=_0x4eb4d5[_0x25aab6(0x125)]-0x1,_0x47aa4d;_0x5e0473>=0x0;_0x5e0473--)(_0x47aa4d=_0x4eb4d5[_0x5e0473])&&(_0xb77ca4=_0x47aa4d(_0xb77ca4)||_0xb77ca4);return _0xb77ca4;},je=(_0x46d100,_0x7266b1)=>(_0x2d2ab9,_0x51a24f)=>_0x7266b1(_0x2d2ab9,_0x51a24f,_0x46d100);let I=class extends _0x324efe{constructor(_0x5bfcc1){const _0xd97d64=_0x258e06;super(),this[_0xd97d64(0x128)]=_0x5bfcc1,this[_0xd97d64(0x13f)]();}[_0x258e06(0x13f)](){const _0x35b1fd=_0x258e06;[_0x18b166['id'],_0x3e75bb['id'],_0x2b85d9['id']][_0x35b1fd(0x155)](_0xde58c9=>{const _0x28dd78=_0x35b1fd;this[_0x28dd78(0x191)](this[_0x28dd78(0x128)][_0x28dd78(0x1b3)](_0xde58c9));});}};I=Ve([je(0x0,_0x78ae44(L))],I);var Me=Object[_0x258e06(0x1bf)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x41311e,_0x44da24,_0x568e56)=>_0x44da24 in _0x41311e?Me(_0x41311e,_0x44da24,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x568e56}):_0x41311e[_0x44da24]=_0x568e56,We=(_0x516bc3,_0x1efc64,_0x37be38,_0x3b3e61)=>{const _0x2e90a7=_0x258e06;for(var _0x256abc=_0x3b3e61>0x1?void 0x0:_0x3b3e61?ke(_0x1efc64,_0x37be38):_0x1efc64,_0x3a05e3=_0x516bc3[_0x2e90a7(0x125)]-0x1,_0x3e5ef9;_0x3a05e3>=0x0;_0x3a05e3--)(_0x3e5ef9=_0x516bc3[_0x3a05e3])&&(_0x256abc=_0x3e5ef9(_0x256abc)||_0x256abc);return _0x256abc;},F=(_0x3abf12,_0x293639)=>(_0x51ec38,_0xd30722)=>_0x293639(_0x51ec38,_0xd30722,_0x3abf12),B=(_0x446a75,_0x392a5a,_0x40b314)=>Ge(_0x446a75,typeof _0x392a5a!=_0x258e06(0x12d)?_0x392a5a+'':_0x392a5a,_0x40b314);const Ye=_0x258e06(0x180);let b=class extends _0x3ffe0c{constructor(_0x4e9c1d=T,_0x19abc6,_0x254dee){const _0x8b8188=_0x258e06;super(),this['_config']=_0x4e9c1d,this[_0x8b8188(0x19a)]=_0x19abc6,this[_0x8b8188(0x1b6)]=_0x254dee;const {..._0x5a654}=_0x1fe50c({},T,this[_0x8b8188(0x149)]);this['_configService'][_0x8b8188(0x16f)](ye,_0x5a654);}[_0x258e06(0x1bc)](){const _0xc28f58=_0x258e06;_0x2fbe26(this[_0xc28f58(0x19a)],_0x23ef20([[L],[S],[I],[m]],this[_0xc28f58(0x149)][_0xc28f58(0x169)])),_0x3e4dcd(this[_0xc28f58(0x19a)],[[I]]);}['onRendered'](){const _0x5da499=_0x258e06;_0x3e4dcd(this[_0x5da499(0x19a)],[[m]]);}};B(b,_0x258e06(0x198),_0x35559f[_0x258e06(0x172)]),B(b,_0x258e06(0x117),Ye),b=We([_0x42a005(_0x285791),F(0x1,_0x78ae44(_0x2d4c16)),F(0x2,_0x5aa847)],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
|
-
function
|
|
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 _0x258e06=_0x4c24;(function(_0x56ccd9,_0x4350db){const _0x25e6aa=_0x4c24,_0x271de4=_0x56ccd9();while(!![]){try{const _0x9219a1=-parseInt(_0x25e6aa(0x17c))/0x1+-parseInt(_0x25e6aa(0x15e))/0x2*(-parseInt(_0x25e6aa(0x1af))/0x3)+parseInt(_0x25e6aa(0x1a3))/0x4+parseInt(_0x25e6aa(0x1a7))/0x5+-parseInt(_0x25e6aa(0x11b))/0x6*(-parseInt(_0x25e6aa(0x1a6))/0x7)+parseInt(_0x25e6aa(0x122))/0x8*(-parseInt(_0x25e6aa(0x1a8))/0x9)+parseInt(_0x25e6aa(0x16e))/0xa;if(_0x9219a1===_0x4350db)break;else _0x271de4['push'](_0x271de4['shift']());}catch(_0x4cc069){_0x271de4['push'](_0x271de4['shift']());}}}(_0x3818,0xd6fbe));var J=Object[_0x258e06(0x1bf)],K=(_0xc91e88,_0x3e4973,_0x18c7aa)=>_0x3e4973 in _0xc91e88?J(_0xc91e88,_0x3e4973,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18c7aa}):_0xc91e88[_0x3e4973]=_0x18c7aa,u=(_0x3e5c39,_0x14aad4,_0x5269c2)=>K(_0x3e5c39,typeof _0x14aad4!=_0x258e06(0x12d)?_0x14aad4+'':_0x14aad4,_0x5269c2);import{Disposable as _0x324efe,toDisposable as _0x3a3481,IUniverInstanceService as _0x4da99a,Inject as _0x78ae44,Injector as _0x2d4c16,IConfigService as _0x5aa847,ICommandService as _0x4f1d1d,RxDisposable as _0x391391,UniverInstanceType as _0x35559f,DisposableCollection as _0x4d8c75,CommandType as _0x14d400,DependentOn as _0x42a005,Plugin as _0x3ffe0c,merge as _0x1fe50c,registerDependencies as _0x2fbe26,mergeOverrideWithDependencies as _0x23ef20,touchDependencies as _0x3e4dcd}from'@univerjs/core';import{useDependency as _0x37223d,useObservable as _0x5b2abe,IUIPartsService as _0x156e10,BuiltInUIPart as _0x28e9dd,connectInjector as _0x1af1ba}from'@univerjs/ui';import{jsx as _0x4ed4a5,jsxs as _0x3a3244,Fragment as _0x18389c}from'react/jsx-runtime';import{Dropdown as _0x35fe18,clsx as _0x5580d9,Button as _0x476c51}from'@univerjs/design';import{useRef as _0x2baf0a,createElement as _0x21c1d5,forwardRef as _0x4ad21f,useState as _0x4104d8,useEffect as _0x3cf0aa}from'react';import{CollaborationEvent as _0x479a15,parseProtocolChangeset as _0x278421}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x359579,SessionStatus as _0x256689,UniverCollaborationClientPlugin as _0x285791}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x34e958,SetWorksheetActiveOperation as _0x2b85d9}from'@univerjs/sheets';import{BehaviorSubject as _0x388f3e,Subject as _0x2c03bf}from'rxjs';import{takeUntil as _0x30a49e,throttleTime as _0x2b3990}from'rxjs/operators';import{SetZoomRatioOperation as _0x18b166,SetScrollOperation as _0x3e75bb}from'@univerjs/sheets-ui';function k({ref:_0x194218,..._0xbab5ab}){const _0x2b4f5e=_0x258e06,{icon:_0x3549d4,id:_0x5f28d1,className:_0x28db96,extend:_0x14eea9,..._0x2f71b9}=_0xbab5ab,_0x5a69ad=(_0x2b4f5e(0x189)+_0x5f28d1+'\x20'+(_0x28db96||''))['trim'](),_0x269383=_0x2baf0a('_'+Oe());return G(_0x3549d4,''+_0x5f28d1,{'defIds':_0x3549d4[_0x2b4f5e(0x19c)],'idSuffix':_0x269383[_0x2b4f5e(0x11c)]},{'ref':_0x194218,'className':_0x5a69ad,..._0x2f71b9},_0x14eea9);}function G(_0x118c4b,_0x2ff79e,_0x89e27,_0x4070fb,_0x24b5b0){const _0x134d41=_0x258e06;return _0x21c1d5(_0x118c4b['tag'],{'key':_0x2ff79e,...be(_0x118c4b,_0x89e27,_0x24b5b0),..._0x4070fb},(Ee(_0x118c4b,_0x89e27)[_0x134d41(0x14e)]||[])[_0x134d41(0x179)]((_0x4b3224,_0x219f4c)=>G(_0x4b3224,_0x2ff79e+'-'+_0x118c4b[_0x134d41(0x131)]+'-'+_0x219f4c,_0x89e27,void 0x0,_0x24b5b0)));}function be(_0x35238c,_0x6d2cd5,_0x116d26){const _0x176feb=_0x258e06,_0xa91998={..._0x35238c['attrs']};_0x116d26!=null&&_0x116d26['colorChannel1']&&_0xa91998[_0x176feb(0x18e)]===_0x176feb(0x18d)&&(_0xa91998[_0x176feb(0x18e)]=_0x116d26[_0x176feb(0x18d)]),_0x35238c['tag']==='mask'&&_0xa91998['id']&&(_0xa91998['id']=_0xa91998['id']+_0x6d2cd5[_0x176feb(0x126)]),Object[_0x176feb(0x135)](_0xa91998)[_0x176feb(0x155)](([_0x252b4c,_0x49c58a])=>{const _0x5e4949=_0x176feb;_0x252b4c==='mask'&&typeof _0x49c58a==_0x5e4949(0x12c)&&(_0xa91998[_0x252b4c]=_0x49c58a['replace'](/url\(#(.*)\)/,_0x5e4949(0x1ae)+_0x6d2cd5[_0x5e4949(0x126)]+')'));});const {defIds:_0x1a4097}=_0x6d2cd5;return!_0x1a4097||_0x1a4097['length']===0x0||(_0x35238c['tag']==='use'&&_0xa91998[_0x176feb(0x17d)]&&(_0xa91998['xlink:href']=_0xa91998[_0x176feb(0x17d)]+_0x6d2cd5['idSuffix']),Object[_0x176feb(0x135)](_0xa91998)[_0x176feb(0x155)](([_0x31f0aa,_0x418dc5])=>{const _0x4dd701=_0x176feb;typeof _0x418dc5=='string'&&(_0xa91998[_0x31f0aa]=_0x418dc5[_0x4dd701(0x183)](/url\(#(.*)\)/,_0x4dd701(0x1ae)+_0x6d2cd5['idSuffix']+')'));})),_0xa91998;}function Ee(_0x1913ff,_0x45d6ef){const _0xad8579=_0x258e06;var _0x47afbb;const {defIds:_0x40a61e}=_0x45d6ef;return!_0x40a61e||_0x40a61e['length']===0x0?_0x1913ff:_0x1913ff['tag']===_0xad8579(0x168)&&((_0x47afbb=_0x1913ff[_0xad8579(0x14e)])!=null&&_0x47afbb[_0xad8579(0x125)])?{..._0x1913ff,'children':_0x1913ff[_0xad8579(0x14e)]['map'](_0x1948a9=>typeof _0x1948a9[_0xad8579(0x147)]['id']=='string'&&_0x40a61e&&_0x40a61e[_0xad8579(0x1b4)](_0x1948a9[_0xad8579(0x147)]['id'])?{..._0x1948a9,'attrs':{..._0x1948a9['attrs'],'id':_0x1948a9[_0xad8579(0x147)]['id']+_0x45d6ef[_0xad8579(0x126)]}}:_0x1948a9)}:_0x1913ff;}function Oe(){const _0x3c6430=_0x258e06;return Math[_0x3c6430(0x1bd)]()[_0x3c6430(0x146)](0x24)[_0x3c6430(0x1be)](0x2,0x8);}k[_0x258e06(0x11a)]=_0x258e06(0x16b);const we={'tag':_0x258e06(0x1b5),'attrs':{'xmlns':_0x258e06(0x1ba),'fill':_0x258e06(0x17f),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x258e06(0x12f)},'children':[{'tag':'path','attrs':{'fill':_0x258e06(0x159),'d':_0x258e06(0x193)}},{'tag':_0x258e06(0x156),'attrs':{'fill':_0x258e06(0x159),'d':_0x258e06(0x14f),'fillRule':_0x258e06(0x1b8),'clipRule':_0x258e06(0x1b8)}}]},W=_0x4ad21f(function(_0x457ca2,_0x3d420c){const _0x293334=_0x258e06;return _0x21c1d5(k,Object[_0x293334(0x188)]({},_0x457ca2,{'id':_0x293334(0x1b2),'ref':_0x3d420c,'icon':we}));});W[_0x258e06(0x11a)]=_0x258e06(0x15f);class L extends _0x324efe{constructor(){const _0x36f6aa=_0x258e06;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x36f6aa(0x178),new Set());}['registerSharedOperation'](_0x506fde){const _0x1271ad=_0x258e06;return this[_0x1271ad(0x163)][_0x1271ad(0x182)](_0x506fde),_0x3a3481(()=>this[_0x1271ad(0x163)][_0x1271ad(0x15a)](_0x506fde));}['registerInitialStateReporter'](_0x250f62){const _0x27e833=_0x258e06;return this[_0x27e833(0x178)]['add'](_0x250f62),_0x3a3481(()=>this[_0x27e833(0x178)][_0x27e833(0x15a)](_0x250f62));}[_0x258e06(0x162)](_0x328b9e){const _0x4bbde7=_0x258e06;return this[_0x4bbde7(0x163)][_0x4bbde7(0x185)](_0x328b9e);}['getInitialStates'](_0x378ecb){const _0x8da5ff=_0x258e06;return Array[_0x8da5ff(0x148)](this['_reporters'])[_0x8da5ff(0x179)](_0x2dedc6=>_0x2dedc6(_0x378ecb));}}var Ne=Object[_0x258e06(0x13c)],Y=(_0x11b179,_0x235a01,_0x579745,_0x28082c)=>{for(var _0x46d98a=_0x28082c>0x1?void 0x0:_0x28082c?Ne(_0x235a01,_0x579745):_0x235a01,_0x304e2e=_0x11b179['length']-0x1,_0x722cfc;_0x304e2e>=0x0;_0x304e2e--)(_0x722cfc=_0x11b179[_0x304e2e])&&(_0x46d98a=_0x722cfc(_0x46d98a)||_0x46d98a);return _0x46d98a;},_=(_0x30ec16,_0x151809)=>(_0x35a5d3,_0x3da833)=>_0x151809(_0x35a5d3,_0x3da833,_0x30ec16);let S=class extends _0x391391{constructor(_0x591373,_0x1dd949,_0x53f9ae){const _0x305932=_0x258e06;super(),u(this,_0x305932(0x167),new Map()),(this[_0x305932(0x1a1)]=_0x591373,this['_injector']=_0x1dd949,this['_collabSessionService']=_0x53f9ae,this[_0x305932(0x13f)]());}async['getLiveShareCoordinator'](_0x3fdbc6){const _0x4eae70=_0x258e06;return this[_0x4eae70(0x167)]['has'](_0x3fdbc6)||await this['_startLiveShareCoordinator'](_0x3fdbc6),this['_entities'][_0x4eae70(0x18b)](_0x3fdbc6);}[_0x258e06(0x190)](_0x39d865){const _0x45f4cd=_0x258e06;var _0x389a92;return(_0x389a92=this[_0x45f4cd(0x167)][_0x45f4cd(0x18b)](_0x39d865))!=null?_0x389a92:null;}[_0x258e06(0x13f)](){const _0x3e59d2=_0x258e06;this[_0x3e59d2(0x1a1)][_0x3e59d2(0x11f)](_0x35559f[_0x3e59d2(0x120)])[_0x3e59d2(0x19f)](_0x30a49e(this[_0x3e59d2(0x1a9)]))['subscribe'](async _0x139e7f=>{const _0x3fc23c=_0x3e59d2,_0x5db3c9=_0x139e7f[_0x3fc23c(0x181)]();this[_0x3fc23c(0x167)][_0x3fc23c(0x185)](_0x5db3c9)||this['_startLiveShareCoordinator'](_0x5db3c9);}),this[_0x3e59d2(0x1a1)][_0x3e59d2(0x1a4)](_0x35559f[_0x3e59d2(0x120)])[_0x3e59d2(0x19f)](_0x30a49e(this[_0x3e59d2(0x1a9)]))['subscribe'](_0x2b0194=>{const _0x35ab1f=_0x3e59d2,_0x1aa086=_0x2b0194[_0x35ab1f(0x181)](),_0xe01af9=this[_0x35ab1f(0x167)][_0x35ab1f(0x18b)](_0x1aa086);_0xe01af9==null||_0xe01af9[_0x35ab1f(0x138)]();});}async['_startLiveShareCoordinator'](_0x4de79d){const _0x4c2287=_0x258e06,_0x20d921=await this[_0x4c2287(0x164)][_0x4c2287(0x14c)](_0x4de79d),_0x2885fe=this[_0x4c2287(0x19a)][_0x4c2287(0x195)](N,_0x4de79d,_0x20d921);return _0x2885fe['init'](),this[_0x4c2287(0x167)][_0x4c2287(0x11d)](_0x4de79d,_0x2885fe),_0x2885fe;}};S=Y([_(0x0,_0x4da99a),_(0x1,_0x78ae44(_0x2d4c16)),_(0x2,_0x78ae44(_0x359579))],S);var c=(_0x247749=>(_0x247749['OFFLINE']='offline',_0x247749[_0x258e06(0x118)]=_0x258e06(0x14b),_0x247749[_0x258e06(0x17a)]=_0x258e06(0x1a5),_0x247749[_0x258e06(0x1c1)]='not-following',_0x247749[_0x258e06(0x129)]='presenting',_0x247749))(c||{});function _0x3818(){const _0x27a5df=['_univerInstanceService','default','2823368CAqyld','getTypeOfUnitDisposed$','following','618422zHIsnP','8352335wJFcxz','324aYsDYR','dispose$','data','_stopPresenting','_handleOperation','getLiveShareCoordinator','url(#$1','283818lOtlXK','sheet','_fetchOperations','live-share-icon','registerSharedOperation','includes','svg','_configService','stringify','evenodd','text','http://www.w3.org/2000/svg','unitId','onStarting','random','substring','defineProperty','event$','NOT_FOLLOWING','_stopFollowing','pluginName','IDLE','NEW_CHANGESETS','displayName','30RwFeiS','current','set','init','getTypeOfUnitAdded$','UNIVER_SHEET','LIVESHARE_FETCH_OPERATIONS','234696RwjcNt','Start','_handleNewHost','length','idSuffix','_handleOnline','_liveShareService','PRESENTING','Present\x20this\x20document','_handleNewChangeSets','string','symbol','tryStartPresenting','1em','operations','tag','_commandDisposable','_status','mutations','entries','stopFollowing','parse','dispose','univer-size-4','sessionStatus$','next','getOwnPropertyDescriptor','_beIdle','_presenter','_init','_uiPartsService','You\x27are\x20offline.','Stop\x20presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','LIVESHARE_REQUEST_HOST','toString','attrs','from','_config','reverse','idle','requireSession','presenting','children','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','_status$','stopPresenting','OFFLINE','Stop\x20following','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','forEach','path','LIVESHARE_TERMINATE','_unitID','currentColor','delete','You\x27re\x20presenting\x20the\x20document','_startFollowing','send','14oRwXzb','LiveShareIcon','_commandService','getMemberID','shouldShareOperation','_sharedOperations','_collabSessionService','offline','status$','_entities','defs','override','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','You\x27re\x20following\x20the\x20presenter','_handleTerminate','1203280uVNcPa','setConfig','onCommandExecuted','unsubscribe','UNIVER_UNKNOWN','LIVESHARE_OPERATION','subscribe','getInitialStates','_mountLiveShare','registerComponent','_reporters','map','FOLLOWING','button','1663903WpOAKe','xlink:href','find','none','UNIVER_LIVE_SHARE_PLUGIN','getUnitId','add','replace','not-following','has','getConfig','presenter','assign','univerjs-icon\x20univerjs-icon-','complete','get','params','colorChannel1','fill','startFollowing','getLiveShareCoordinatorSync','disposeWithMe','Start\x20following','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','createInstance','div','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','type','_handleOffline','_injector','then','defIds','You\x27re\x20not\x20following\x20the\x20presenter','_collabSession','pipe','_startPresenting'];_0x3818=function(){return _0x27a5df;};return _0x3818();}function _0x4c24(_0xded936,_0x3e6056){_0xded936=_0xded936-0x116;const _0x381899=_0x3818();let _0x4c2442=_0x381899[_0xded936];return _0x4c2442;}const Ce=_0x258e06(0x16a),De=0xc8;let N=class extends _0x391391{constructor(_0x19d682,_0x4f8d4c,_0x962a59,_0x24d6a4,_0x4806f7){const _0x480b38=_0x258e06;super(),u(this,'_status$',new _0x388f3e(_0x480b38(0x14b))),u(this,_0x480b38(0x166),this[_0x480b38(0x150)]['asObservable']()),u(this,_0x480b38(0x13f),!0x1),u(this,_0x480b38(0x132),null),u(this,_0x480b38(0x13e),null),(this[_0x480b38(0x158)]=_0x19d682,this[_0x480b38(0x19e)]=_0x4f8d4c,this[_0x480b38(0x1b6)]=_0x962a59,this['_liveShareService']=_0x24d6a4,this[_0x480b38(0x160)]=_0x4806f7);}get['_status'](){const _0x302f2a=_0x258e06;return this[_0x302f2a(0x150)][_0x302f2a(0x144)]();}[_0x258e06(0x138)](){const _0x574c3c=_0x258e06;var _0x4d31e9;(_0x4d31e9=this[_0x574c3c(0x132)])==null||_0x4d31e9[_0x574c3c(0x138)](),this['_status$']['next'](_0x574c3c(0x14b)),this[_0x574c3c(0x150)][_0x574c3c(0x18a)]();}['getStatus'](){const _0x25df1b=_0x258e06;return this[_0x25df1b(0x133)];}[_0x258e06(0x11e)](){const _0x3cb334=_0x258e06;this[_0x3cb334(0x13f)]||(this[_0x3cb334(0x13f)]=!0x0,this[_0x3cb334(0x19e)][_0x3cb334(0x13a)][_0x3cb334(0x19f)](_0x30a49e(this[_0x3cb334(0x1a9)]))['subscribe'](_0x966ab2=>{const _0x2d9ac5=_0x3cb334;switch(_0x966ab2){case _0x256689['OFFLINE']:this[_0x2d9ac5(0x199)]();break;case _0x256689['ONLINE']:this[_0x2d9ac5(0x127)]();break;}}),this[_0x3cb334(0x19e)][_0x3cb334(0x1c0)][_0x3cb334(0x19f)](_0x30a49e(this['dispose$']))['subscribe'](_0x1aac34=>{const _0x561cbf=_0x3cb334,{eventID:_0x30b0f9}=_0x1aac34;switch(_0x30b0f9){case _0x479a15['LIVESHARE_NEW_HOST']:this[_0x561cbf(0x124)](_0x1aac34);break;case _0x479a15[_0x561cbf(0x173)]:this[_0x561cbf(0x1ac)](_0x1aac34);break;case _0x479a15[_0x561cbf(0x157)]:this[_0x561cbf(0x16d)]();break;case _0x479a15[_0x561cbf(0x119)]:this[_0x561cbf(0x12b)](_0x1aac34);break;}}));}[_0x258e06(0x12e)](){const _0x590cf2=_0x258e06;this[_0x590cf2(0x19e)][_0x590cf2(0x15d)]({'eventID':_0x479a15[_0x590cf2(0x145)],'data':{'unitID':this[_0x590cf2(0x158)],'userID':this[_0x590cf2(0x19e)][_0x590cf2(0x161)]()}},this[_0x590cf2(0x158)]);}[_0x258e06(0x151)](){const _0x45d9a0=_0x258e06;this[_0x45d9a0(0x133)]===_0x45d9a0(0x14d)&&(this[_0x45d9a0(0x150)][_0x45d9a0(0x13b)](_0x45d9a0(0x14b)),this[_0x45d9a0(0x19e)][_0x45d9a0(0x15d)]({'eventID':_0x479a15['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x45d9a0(0x158)]}},this[_0x45d9a0(0x158)]));}[_0x258e06(0x18f)](){const _0x2c2b92=_0x258e06;this[_0x2c2b92(0x133)]===_0x2c2b92(0x184)&&(this['_status$'][_0x2c2b92(0x13b)](_0x2c2b92(0x1a5)),this['_startFollowing']());}['stopFollowing'](){const _0x42a137=_0x258e06;this[_0x42a137(0x133)]===_0x42a137(0x1a5)&&this[_0x42a137(0x116)]();}[_0x258e06(0x124)](_0x44c2d8){const _0x3e768a=_0x258e06,{presenter:_0x48113b}=_0x44c2d8[_0x3e768a(0x1aa)],_0x263f97=this[_0x3e768a(0x19e)][_0x3e768a(0x161)]();this['_presenter']=_0x48113b,_0x48113b===_0x263f97?(this[_0x3e768a(0x116)](),this[_0x3e768a(0x1a0)]()):this[_0x3e768a(0x133)]!==_0x3e768a(0x184)&&(this[_0x3e768a(0x1ab)](),this['_startFollowing']());}['_fetchOperations'](){const _0x33dca4=_0x258e06,_0x53b06b={'eventID':_0x479a15[_0x33dca4(0x121)]};this[_0x33dca4(0x19e)][_0x33dca4(0x15d)](_0x53b06b,this[_0x33dca4(0x158)]);}['_handleTerminate'](){const _0x247c50=_0x258e06;this[_0x247c50(0x13e)]=null,this[_0x247c50(0x133)]!==_0x247c50(0x14d)&&this[_0x247c50(0x13d)]();}['_handleNewChangeSets'](_0x5e6e11){const _0x5e359c=_0x258e06;if(this[_0x5e359c(0x133)]===_0x5e359c(0x1a5)&&this[_0x5e359c(0x13e)]===_0x5e6e11['data']['memberID']){const _0x1eb865=_0x278421(_0x5e6e11['data'])[_0x5e359c(0x134)][_0x5e359c(0x14a)]()[_0x5e359c(0x17e)](_0x34a45a=>_0x34a45a['id']===_0x34e958['id']);if(_0x1eb865){const _0xf90fc=_0x1eb865[_0x5e359c(0x18c)][_0x5e359c(0x1bb)],_0x2dc432=_0x1eb865['params'][_0x5e359c(0x1b0)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x2b85d9['id'],{'unitId':_0xf90fc,'subUnitId':_0x2dc432},{'fromCollab':!0x0});});}}}[_0x258e06(0x1a0)](){const _0x21fe20=_0x258e06;this[_0x21fe20(0x150)][_0x21fe20(0x13b)](_0x21fe20(0x14d));const _0x1c6c0e=new Map(),_0x3d4be3=this[_0x21fe20(0x132)]=new _0x4d8c75();_0x3d4be3[_0x21fe20(0x182)](_0x3a3481(()=>{const _0x17fac7=_0x21fe20;_0x1c6c0e[_0x17fac7(0x155)](_0x24693d=>_0x24693d[_0x17fac7(0x18a)]()),_0x1c6c0e['clear']();})),_0x3d4be3[_0x21fe20(0x182)](this[_0x21fe20(0x160)][_0x21fe20(0x170)](_0x58b1f2=>{const _0xfe3f6d=_0x21fe20;var _0xc3c074;if(_0x58b1f2[_0xfe3f6d(0x198)]!==_0x14d400['OPERATION']||!this['_liveShareService'][_0xfe3f6d(0x162)](_0x58b1f2['id']))return;const {id:_0x7517de}=_0x58b1f2;let _0x405b5f;_0x1c6c0e[_0xfe3f6d(0x185)](_0x7517de)?_0x405b5f=_0x1c6c0e[_0xfe3f6d(0x18b)](_0x7517de):(_0x405b5f=new _0x2c03bf(),_0x1c6c0e[_0xfe3f6d(0x11d)](_0x7517de,_0x405b5f),_0x405b5f[_0xfe3f6d(0x19f)](_0x2b3990((_0xc3c074=this['_configService'][_0xfe3f6d(0x186)](Ce))!=null?_0xc3c074:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xfe3f6d(0x174)](_0x3835e6=>{const _0x1b0c84=_0xfe3f6d;this['_collabSession'][_0x1b0c84(0x15d)]({'eventID':_0x479a15[_0x1b0c84(0x173)],'data':{'unitID':this['_unitID'],'operations':{[_0x3835e6['id']]:{'id':_0x3835e6['id'],'params':JSON['stringify'](_0x3835e6['params'])}}}},this['_unitID']);})),_0x405b5f[_0xfe3f6d(0x13b)](_0x58b1f2);})),this[_0x21fe20(0x128)][_0x21fe20(0x175)](this[_0x21fe20(0x158)])[_0x21fe20(0x155)](_0x4ec61e=>this[_0x21fe20(0x19e)][_0x21fe20(0x15d)]({'eventID':_0x479a15[_0x21fe20(0x173)],'data':{'unitID':this['_unitID'],'operations':{[_0x4ec61e['id']]:{'id':_0x4ec61e['id'],'params':JSON[_0x21fe20(0x1b7)](_0x4ec61e['params'])}}}},this[_0x21fe20(0x158)]));}[_0x258e06(0x1ab)](){const _0x1ab4f2=_0x258e06;var _0xc8df19;this[_0x1ab4f2(0x150)][_0x1ab4f2(0x13b)](_0x1ab4f2(0x14b)),(_0xc8df19=this['_commandDisposable'])==null||_0xc8df19[_0x1ab4f2(0x138)](),this[_0x1ab4f2(0x132)]=null;}[_0x258e06(0x15c)](){const _0x1bdb8e=_0x258e06;var _0x11b3db;(_0x11b3db=this[_0x1bdb8e(0x132)])==null||_0x11b3db[_0x1bdb8e(0x138)](),this[_0x1bdb8e(0x150)]['next'](_0x1bdb8e(0x1a5));}[_0x258e06(0x13d)](){const _0x393895=_0x258e06;var _0x186282;this[_0x393895(0x150)][_0x393895(0x13b)]('idle'),(_0x186282=this[_0x393895(0x132)])==null||_0x186282[_0x393895(0x138)](),this['_commandDisposable']=null;}[_0x258e06(0x116)](){const _0x1e43df=_0x258e06;var _0x53dd80;this[_0x1e43df(0x150)][_0x1e43df(0x13b)](_0x1e43df(0x184)),(_0x53dd80=this[_0x1e43df(0x132)])==null||_0x53dd80[_0x1e43df(0x138)]();}[_0x258e06(0x1ac)](_0x38d883){const _0x17aba9=_0x258e06;if([_0x17aba9(0x14d),_0x17aba9(0x184),_0x17aba9(0x165)][_0x17aba9(0x1b4)](this[_0x17aba9(0x133)])||!_0x38d883['data'][_0x17aba9(0x187)]||_0x38d883[_0x17aba9(0x1aa)][_0x17aba9(0x187)]===this['_collabSession'][_0x17aba9(0x161)]())return;this[_0x17aba9(0x133)]===_0x17aba9(0x14b)&&this[_0x17aba9(0x15c)]();const _0x4a9ba6=_0x38d883[_0x17aba9(0x1aa)][_0x17aba9(0x130)];Object[_0x17aba9(0x194)](_0x4a9ba6)['forEach'](_0x3010cb=>{const _0xa39adf=_0x17aba9;this['_commandService']['executeCommand'](_0x3010cb['id'],_0x3010cb[_0xa39adf(0x18c)]?JSON[_0xa39adf(0x137)](_0x3010cb[_0xa39adf(0x18c)]):null,{'fromCollab':!0x0});});}[_0x258e06(0x199)](){const _0x5840c2=_0x258e06;var _0x3f9aa2;this[_0x5840c2(0x150)][_0x5840c2(0x13b)]('offline'),(_0x3f9aa2=this['_commandDisposable'])==null||_0x3f9aa2[_0x5840c2(0x138)]();}[_0x258e06(0x127)](){const _0x144381=_0x258e06;this[_0x144381(0x150)][_0x144381(0x13b)](_0x144381(0x14b)),this[_0x144381(0x1b1)]();}};N=Y([_(0x2,_0x5aa847),_(0x3,_0x78ae44(L)),_(0x4,_0x4f1d1d)],N);function Le(){const _0x244db9=_0x258e06,_0x4dbb9b=_0x37223d(S),_0x4dbb9e=_0x37223d(_0x4da99a),_0x2c20dc=_0x5b2abe(()=>_0x4dbb9e['getCurrentTypeOfUnit$'](_0x35559f[_0x244db9(0x120)]),void 0x0,!0x1,[]),[_0x38a103,_0x1e71d1]=_0x4104d8(null),[_0x568087,_0x59bcb3]=_0x4104d8(c[_0x244db9(0x118)]),_0x1ed7e9=_0x2baf0a(null);return _0x3cf0aa(()=>(_0x2c20dc&&_0x4dbb9b[_0x244db9(0x1ad)](_0x2c20dc['getUnitId']())[_0x244db9(0x19b)](_0x86b729=>{const _0x26b7a1=_0x244db9;_0x1e71d1(_0x86b729),_0x1ed7e9[_0x26b7a1(0x11c)]=_0x86b729['status$'][_0x26b7a1(0x174)](_0x424f76=>{_0x59bcb3(_0x424f76);});}),()=>{const _0x54e7dd=_0x244db9;var _0xdf335b;(_0xdf335b=_0x1ed7e9[_0x54e7dd(0x11c)])==null||_0xdf335b[_0x54e7dd(0x171)](),_0x1ed7e9[_0x54e7dd(0x11c)]=null;}),[_0x2c20dc,_0x4dbb9b]),_0x38a103?_0x4ed4a5(_0x35fe18,{'align':'end','disabled':_0x568087===c[_0x244db9(0x152)],'className':_0x244db9(0x197),'overlay':_0x4ed4a5(Re,{'status':_0x568087,'coordinator':_0x38a103}),'children':_0x4ed4a5(_0x244db9(0x17b),{'className':_0x5580d9(_0x244db9(0x154),{'univer-cursor-not-allowed':_0x568087===c[_0x244db9(0x152)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x568087!==c[_0x244db9(0x152)]}),'type':_0x244db9(0x17b),'children':_0x4ed4a5(W,{'className':_0x244db9(0x139)})})}):null;}function Re(_0x3cbef7){const _0x5fccac=_0x258e06,{status:_0x5a50f1,coordinator:_0x155c72}=_0x3cbef7;switch(_0x5a50f1){case c[_0x5fccac(0x118)]:return _0x4ed4a5($e,{'coordinator':_0x155c72});case c[_0x5fccac(0x17a)]:return _0x4ed4a5(xe,{'coordinator':_0x155c72});case c[_0x5fccac(0x1c1)]:return _0x4ed4a5(Pe,{'coordinator':_0x155c72});case c['OFFLINE']:return _0x4ed4a5(Te,{});case c[_0x5fccac(0x129)]:return _0x4ed4a5(Ae,{'coordinator':_0x155c72});default:return null;}}function $e(_0x191a72){const _0x3a0e02=_0x258e06,{coordinator:_0x4870cf}=_0x191a72;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5('div',{'className':_0x3a0e02(0x143),'children':_0x3a0e02(0x12a)}),_0x4ed4a5(_0x476c51,{'onClick':()=>_0x4870cf[_0x3a0e02(0x12e)](),'children':_0x3a0e02(0x123)})]});}function xe(_0x1163a7){const _0x2fbea5=_0x258e06,{coordinator:_0x54337d}=_0x1163a7;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5(_0x2fbea5(0x196),{'className':_0x2fbea5(0x143),'children':_0x2fbea5(0x16c)}),_0x4ed4a5(_0x476c51,{'onClick':()=>_0x54337d[_0x2fbea5(0x136)](),'children':_0x2fbea5(0x153)})]});}function Pe(_0x5f3b86){const _0x424596=_0x258e06,{coordinator:_0x2d277c}=_0x5f3b86;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5('div',{'className':_0x424596(0x143),'children':_0x424596(0x19d)}),_0x4ed4a5(_0x476c51,{'variant':_0x424596(0x1b9),'onClick':()=>_0x2d277c[_0x424596(0x18f)](),'children':_0x424596(0x192)})]});}function Ae(_0x2c9171){const _0x1c77c3=_0x258e06,{coordinator:_0x172f3a}=_0x2c9171;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5(_0x1c77c3(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1c77c3(0x15b)}),_0x4ed4a5(_0x476c51,{'variant':_0x1c77c3(0x1a2),'onClick':()=>_0x172f3a[_0x1c77c3(0x151)](),'children':_0x1c77c3(0x142)})]});}function Te(){const _0x32c34a=_0x258e06;return _0x4ed4a5(_0x18389c,{'children':_0x32c34a(0x141)});}var Fe=Object[_0x258e06(0x13c)],He=(_0x4bb4e6,_0x1e6350,_0x49bdb0,_0x5cd775)=>{for(var _0x4a7a59=_0x5cd775>0x1?void 0x0:_0x5cd775?Fe(_0x1e6350,_0x49bdb0):_0x1e6350,_0x549473=_0x4bb4e6['length']-0x1,_0x386e74;_0x549473>=0x0;_0x549473--)(_0x386e74=_0x4bb4e6[_0x549473])&&(_0x4a7a59=_0x386e74(_0x4a7a59)||_0x4a7a59);return _0x4a7a59;},A=(_0x46c54f,_0x3f7928)=>(_0x39a916,_0x44a92f)=>_0x3f7928(_0x39a916,_0x44a92f,_0x46c54f);let m=class extends _0x324efe{constructor(_0x4337ee,_0x25cfc8){const _0x14c837=_0x258e06;super(),this[_0x14c837(0x19a)]=_0x4337ee,this['_uiPartsService']=_0x25cfc8,this[_0x14c837(0x176)]();}['_mountLiveShare'](){const _0x4e1fed=_0x258e06;this[_0x4e1fed(0x191)](this[_0x4e1fed(0x140)][_0x4e1fed(0x177)](_0x28e9dd['HEADER_MENU'],()=>_0x1af1ba(Le,this[_0x4e1fed(0x19a)])));}};m=He([A(0x0,_0x78ae44(_0x2d4c16)),A(0x1,_0x156e10)],m);const ye='live-share.config',T={};var Ue=Object[_0x258e06(0x13c)],Ve=(_0x4eb4d5,_0x20d7b4,_0x1e97d4,_0x519589)=>{const _0x25aab6=_0x258e06;for(var _0xb77ca4=_0x519589>0x1?void 0x0:_0x519589?Ue(_0x20d7b4,_0x1e97d4):_0x20d7b4,_0x5e0473=_0x4eb4d5[_0x25aab6(0x125)]-0x1,_0x47aa4d;_0x5e0473>=0x0;_0x5e0473--)(_0x47aa4d=_0x4eb4d5[_0x5e0473])&&(_0xb77ca4=_0x47aa4d(_0xb77ca4)||_0xb77ca4);return _0xb77ca4;},je=(_0x46d100,_0x7266b1)=>(_0x2d2ab9,_0x51a24f)=>_0x7266b1(_0x2d2ab9,_0x51a24f,_0x46d100);let I=class extends _0x324efe{constructor(_0x5bfcc1){const _0xd97d64=_0x258e06;super(),this[_0xd97d64(0x128)]=_0x5bfcc1,this[_0xd97d64(0x13f)]();}[_0x258e06(0x13f)](){const _0x35b1fd=_0x258e06;[_0x18b166['id'],_0x3e75bb['id'],_0x2b85d9['id']][_0x35b1fd(0x155)](_0xde58c9=>{const _0x28dd78=_0x35b1fd;this[_0x28dd78(0x191)](this[_0x28dd78(0x128)][_0x28dd78(0x1b3)](_0xde58c9));});}};I=Ve([je(0x0,_0x78ae44(L))],I);var Me=Object[_0x258e06(0x1bf)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x41311e,_0x44da24,_0x568e56)=>_0x44da24 in _0x41311e?Me(_0x41311e,_0x44da24,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x568e56}):_0x41311e[_0x44da24]=_0x568e56,We=(_0x516bc3,_0x1efc64,_0x37be38,_0x3b3e61)=>{const _0x2e90a7=_0x258e06;for(var _0x256abc=_0x3b3e61>0x1?void 0x0:_0x3b3e61?ke(_0x1efc64,_0x37be38):_0x1efc64,_0x3a05e3=_0x516bc3[_0x2e90a7(0x125)]-0x1,_0x3e5ef9;_0x3a05e3>=0x0;_0x3a05e3--)(_0x3e5ef9=_0x516bc3[_0x3a05e3])&&(_0x256abc=_0x3e5ef9(_0x256abc)||_0x256abc);return _0x256abc;},F=(_0x3abf12,_0x293639)=>(_0x51ec38,_0xd30722)=>_0x293639(_0x51ec38,_0xd30722,_0x3abf12),B=(_0x446a75,_0x392a5a,_0x40b314)=>Ge(_0x446a75,typeof _0x392a5a!=_0x258e06(0x12d)?_0x392a5a+'':_0x392a5a,_0x40b314);const Ye=_0x258e06(0x180);let b=class extends _0x3ffe0c{constructor(_0x4e9c1d=T,_0x19abc6,_0x254dee){const _0x8b8188=_0x258e06;super(),this['_config']=_0x4e9c1d,this[_0x8b8188(0x19a)]=_0x19abc6,this[_0x8b8188(0x1b6)]=_0x254dee;const {..._0x5a654}=_0x1fe50c({},T,this[_0x8b8188(0x149)]);this['_configService'][_0x8b8188(0x16f)](ye,_0x5a654);}[_0x258e06(0x1bc)](){const _0xc28f58=_0x258e06;_0x2fbe26(this[_0xc28f58(0x19a)],_0x23ef20([[L],[S],[I],[m]],this[_0xc28f58(0x149)][_0xc28f58(0x169)])),_0x3e4dcd(this[_0xc28f58(0x19a)],[[I]]);}['onRendered'](){const _0x5da499=_0x258e06;_0x3e4dcd(this[_0x5da499(0x19a)],[[m]]);}};B(b,_0x258e06(0x198),_0x35559f[_0x258e06(0x172)]),B(b,_0x258e06(0x117),Ye),b=We([_0x42a005(_0x285791),F(0x1,_0x78ae44(_0x2d4c16)),F(0x2,_0x5aa847)],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 _0x1659(_0x326b71,_0x3f19be){_0x326b71=_0x326b71-0x151;const _0x5f012e=_0x5f01();let _0x1659f1=_0x5f012e[_0x326b71];return _0x1659f1;}(function(_0x1fbaf3,_0x16bad7){const _0x246ab1=_0x1659,_0x4a5478=_0x1fbaf3();while(!![]){try{const _0x446009=parseInt(_0x246ab1(0x17a))/0x1+-parseInt(_0x246ab1(0x206))/0x2+-parseInt(_0x246ab1(0x1da))/0x3*(parseInt(_0x246ab1(0x17e))/0x4)+-parseInt(_0x246ab1(0x232))/0x5*(-parseInt(_0x246ab1(0x1df))/0x6)+parseInt(_0x246ab1(0x1ac))/0x7+parseInt(_0x246ab1(0x1af))/0x8*(-parseInt(_0x246ab1(0x17c))/0x9)+-parseInt(_0x246ab1(0x15b))/0xa*(-parseInt(_0x246ab1(0x18f))/0xb);if(_0x446009===_0x16bad7)break;else _0x4a5478['push'](_0x4a5478['shift']());}catch(_0x30ca97){_0x4a5478['push'](_0x4a5478['shift']());}}}(_0x5f01,0xd2bbc),function(_0x29e3cb,_0xd606d9){const _0x3ce164=_0x1659;typeof exports==_0x3ce164(0x1ee)&&typeof module<'u'?_0xd606d9(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==_0x3ce164(0x172)&&define['amd']?define([_0x3ce164(0x191),_0x3ce164(0x18a),_0x3ce164(0x20b),'react/jsx-runtime',_0x3ce164(0x15c),_0x3ce164(0x1b4),_0x3ce164(0x218),_0x3ce164(0x176),_0x3ce164(0x17b),_0x3ce164(0x169),_0x3ce164(0x19e),'@univerjs/sheets-ui'],_0xd606d9):(_0x29e3cb=typeof globalThis<'u'?globalThis:_0x29e3cb||self,_0xd606d9(_0x29e3cb[_0x3ce164(0x1d6)]={},_0x29e3cb['UniverCore'],_0x29e3cb['UniverUi'],_0x29e3cb[_0x3ce164(0x178)],_0x29e3cb['UniverDesign'],_0x29e3cb[_0x3ce164(0x178)],_0x29e3cb[_0x3ce164(0x158)],_0x29e3cb[_0x3ce164(0x1e9)],_0x29e3cb[_0x3ce164(0x1e6)],_0x29e3cb[_0x3ce164(0x169)],_0x29e3cb[_0x3ce164(0x169)][_0x3ce164(0x1b6)],_0x29e3cb[_0x3ce164(0x210)]));}(this,function(_0x3c7f27,_0x1a4663,_0x445c44,_0x48b374,_0x4bbbf8,_0x1a8c05,_0xad8d23,_0x483082,_0x54971f,_0x5cb817,_0x42de0b,_0x1b8ea2){'use strict';const _0x1f790e=_0x1659;var _0x1a2a6c=Object['defineProperty'],_0x4c18ef=(_0x125bcc,_0x5421cf,_0x330b2c)=>_0x5421cf in _0x125bcc?_0x1a2a6c(_0x125bcc,_0x5421cf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x330b2c}):_0x125bcc[_0x5421cf]=_0x330b2c,_0x505340=(_0x3e05d3,_0x2fe4f3,_0x325d3f)=>_0x4c18ef(_0x3e05d3,typeof _0x2fe4f3!='symbol'?_0x2fe4f3+'':_0x2fe4f3,_0x325d3f);function _0x405622({ref:_0x57fe4f,..._0x1563b2}){const _0x40c969=_0x1659,{icon:_0x5f0984,id:_0x497b9a,className:_0x34767c,extend:_0x3e817c,..._0x47f4e4}=_0x1563b2,_0x3865ca=(_0x40c969(0x153)+_0x497b9a+'\x20'+(_0x34767c||''))[_0x40c969(0x21e)](),_0xaf393a=_0x1a8c05[_0x40c969(0x180)]('_'+_0x20c3f7());return _0xfb1f8d(_0x5f0984,''+_0x497b9a,{'defIds':_0x5f0984[_0x40c969(0x1ca)],'idSuffix':_0xaf393a['current']},{'ref':_0x57fe4f,'className':_0x3865ca,..._0x47f4e4},_0x3e817c);}function _0xfb1f8d(_0x389e39,_0x362f55,_0x51e016,_0x3f3a98,_0x5da228){const _0x4819e8=_0x1659;return _0x1a8c05['createElement'](_0x389e39['tag'],{'key':_0x362f55,..._0x419a3a(_0x389e39,_0x51e016,_0x5da228),..._0x3f3a98},(_0x394acd(_0x389e39,_0x51e016)[_0x4819e8(0x201)]||[])[_0x4819e8(0x1b9)]((_0x3401c3,_0x33a575)=>_0xfb1f8d(_0x3401c3,_0x362f55+'-'+_0x389e39['tag']+'-'+_0x33a575,_0x51e016,void 0x0,_0x5da228)));}function _0x419a3a(_0xf0237f,_0x376f52,_0x308cf3){const _0x186ba6=_0x1659,_0x2791ca={..._0xf0237f[_0x186ba6(0x1a7)]};_0x308cf3!=null&&_0x308cf3[_0x186ba6(0x1fe)]&&_0x2791ca[_0x186ba6(0x194)]==='colorChannel1'&&(_0x2791ca['fill']=_0x308cf3[_0x186ba6(0x1fe)]),_0xf0237f[_0x186ba6(0x193)]===_0x186ba6(0x155)&&_0x2791ca['id']&&(_0x2791ca['id']=_0x2791ca['id']+_0x376f52[_0x186ba6(0x1a5)]),Object['entries'](_0x2791ca)[_0x186ba6(0x18d)](([_0x2d5621,_0x386a94])=>{const _0x1e91da=_0x186ba6;_0x2d5621===_0x1e91da(0x155)&&typeof _0x386a94=='string'&&(_0x2791ca[_0x2d5621]=_0x386a94['replace'](/url\(#(.*)\)/,'url(#$1'+_0x376f52[_0x1e91da(0x1a5)]+')'));});const {defIds:_0x3bb6e6}=_0x376f52;return!_0x3bb6e6||_0x3bb6e6[_0x186ba6(0x209)]===0x0||(_0xf0237f[_0x186ba6(0x193)]===_0x186ba6(0x1f2)&&_0x2791ca[_0x186ba6(0x1fd)]&&(_0x2791ca['xlink:href']=_0x2791ca[_0x186ba6(0x1fd)]+_0x376f52['idSuffix']),Object[_0x186ba6(0x231)](_0x2791ca)[_0x186ba6(0x18d)](([_0x6a476f,_0x5322ed])=>{const _0x24e223=_0x186ba6;typeof _0x5322ed==_0x24e223(0x16d)&&(_0x2791ca[_0x6a476f]=_0x5322ed['replace'](/url\(#(.*)\)/,_0x24e223(0x183)+_0x376f52[_0x24e223(0x1a5)]+')'));})),_0x2791ca;}function _0x394acd(_0x44d58d,_0x41ee2a){const _0x5a1ec7=_0x1659;var _0x4b3730;const {defIds:_0x2c3788}=_0x41ee2a;return!_0x2c3788||_0x2c3788[_0x5a1ec7(0x209)]===0x0?_0x44d58d:_0x44d58d[_0x5a1ec7(0x193)]===_0x5a1ec7(0x1db)&&((_0x4b3730=_0x44d58d[_0x5a1ec7(0x201)])!=null&&_0x4b3730['length'])?{..._0x44d58d,'children':_0x44d58d['children'][_0x5a1ec7(0x1b9)](_0x47a4e9=>typeof _0x47a4e9[_0x5a1ec7(0x1a7)]['id']=='string'&&_0x2c3788&&_0x2c3788[_0x5a1ec7(0x181)](_0x47a4e9[_0x5a1ec7(0x1a7)]['id'])?{..._0x47a4e9,'attrs':{..._0x47a4e9[_0x5a1ec7(0x1a7)],'id':_0x47a4e9[_0x5a1ec7(0x1a7)]['id']+_0x41ee2a[_0x5a1ec7(0x1a5)]}}:_0x47a4e9)}:_0x44d58d;}function _0x20c3f7(){const _0x25f53c=_0x1659;return Math[_0x25f53c(0x1d0)]()['toString'](0x24)['substring'](0x2,0x8);}_0x405622[_0x1f790e(0x1fc)]=_0x1f790e(0x20f);const _0x537131={'tag':_0x1f790e(0x1c9),'attrs':{'xmlns':_0x1f790e(0x22d),'fill':_0x1f790e(0x219),'viewBox':_0x1f790e(0x1be),'width':_0x1f790e(0x212),'height':_0x1f790e(0x212)},'children':[{'tag':_0x1f790e(0x229),'attrs':{'fill':_0x1f790e(0x174),'d':_0x1f790e(0x220)}},{'tag':_0x1f790e(0x229),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x1f790e(0x1d2),'clipRule':_0x1f790e(0x1d2)}}]},_0xe9087a=_0x1a8c05[_0x1f790e(0x1a8)](function(_0x53234b,_0x1fc664){const _0x29cba2=_0x1f790e;return _0x1a8c05[_0x29cba2(0x1e8)](_0x405622,Object[_0x29cba2(0x15f)]({},_0x53234b,{'id':_0x29cba2(0x157),'ref':_0x1fc664,'icon':_0x537131}));});_0xe9087a['displayName']=_0x1f790e(0x16a);class _0x2c6fcf extends _0x1a4663[_0x1f790e(0x223)]{constructor(){const _0xe9d0c3=_0x1f790e;super(...arguments),_0x505340(this,_0xe9d0c3(0x1bc),new Set()),_0x505340(this,_0xe9d0c3(0x199),new Set());}['registerSharedOperation'](_0x18dc93){const _0x19ed23=_0x1f790e;return this[_0x19ed23(0x1bc)][_0x19ed23(0x20c)](_0x18dc93),_0x1a4663[_0x19ed23(0x17f)](()=>this['_sharedOperations']['delete'](_0x18dc93));}['registerInitialStateReporter'](_0x152291){const _0xd707d8=_0x1f790e;return this[_0xd707d8(0x199)][_0xd707d8(0x20c)](_0x152291),_0x1a4663[_0xd707d8(0x17f)](()=>this[_0xd707d8(0x199)][_0xd707d8(0x164)](_0x152291));}[_0x1f790e(0x1c6)](_0x312296){const _0x2bfd41=_0x1f790e;return this[_0x2bfd41(0x1bc)][_0x2bfd41(0x22a)](_0x312296);}[_0x1f790e(0x173)](_0x4e12e4){const _0x6b1169=_0x1f790e;return Array['from'](this[_0x6b1169(0x199)])[_0x6b1169(0x1b9)](_0x5c52a9=>_0x5c52a9(_0x4e12e4));}}var _0x3f005b=Object[_0x1f790e(0x1b2)],_0x6be2a1=(_0x588298,_0x29cdb5,_0x23349a,_0x5af2fe)=>{for(var _0x4edfa9=_0x5af2fe>0x1?void 0x0:_0x5af2fe?_0x3f005b(_0x29cdb5,_0x23349a):_0x29cdb5,_0x783e76=_0x588298['length']-0x1,_0x3f8b9c;_0x783e76>=0x0;_0x783e76--)(_0x3f8b9c=_0x588298[_0x783e76])&&(_0x4edfa9=_0x3f8b9c(_0x4edfa9)||_0x4edfa9);return _0x4edfa9;},_0x8a54fb=(_0x3b9294,_0x12ee7a)=>(_0x2addb3,_0x600f83)=>_0x12ee7a(_0x2addb3,_0x600f83,_0x3b9294);_0x3c7f27[_0x1f790e(0x205)]=class extends _0x1a4663['RxDisposable']{constructor(_0x33e4cc,_0x3be6be,_0x451d6a){const _0x51bc14=_0x1f790e;super(),_0x505340(this,_0x51bc14(0x1bb),new Map()),(this['_univerInstanceService']=_0x33e4cc,this[_0x51bc14(0x162)]=_0x3be6be,this[_0x51bc14(0x1f4)]=_0x451d6a,this[_0x51bc14(0x21c)]());}async['getLiveShareCoordinator'](_0x5b91dc){const _0x5c0675=_0x1f790e;return this[_0x5c0675(0x1bb)][_0x5c0675(0x22a)](_0x5b91dc)||await this[_0x5c0675(0x156)](_0x5b91dc),this[_0x5c0675(0x1bb)][_0x5c0675(0x15d)](_0x5b91dc);}[_0x1f790e(0x1bf)](_0x410c52){const _0x491c17=_0x1f790e;var _0x1fd150;return(_0x1fd150=this[_0x491c17(0x1bb)][_0x491c17(0x15d)](_0x410c52))!=null?_0x1fd150:null;}[_0x1f790e(0x21c)](){const _0x27e7bc=_0x1f790e;this[_0x27e7bc(0x1f1)]['getTypeOfUnitAdded$'](_0x1a4663[_0x27e7bc(0x1c4)]['UNIVER_SHEET'])[_0x27e7bc(0x1b3)](_0x42de0b[_0x27e7bc(0x1ed)](this[_0x27e7bc(0x16e)]))[_0x27e7bc(0x1ef)](async _0xee8270=>{const _0x56ae93=_0x27e7bc,_0x2787ad=_0xee8270[_0x56ae93(0x1c2)]();this['_entities'][_0x56ae93(0x22a)](_0x2787ad)||this[_0x56ae93(0x156)](_0x2787ad);}),this[_0x27e7bc(0x1f1)][_0x27e7bc(0x1f7)](_0x1a4663[_0x27e7bc(0x1c4)]['UNIVER_SHEET'])['pipe'](_0x42de0b['takeUntil'](this[_0x27e7bc(0x16e)]))[_0x27e7bc(0x1ef)](_0x33ebd5=>{const _0x1cb029=_0x27e7bc,_0x1a370c=_0x33ebd5[_0x1cb029(0x1c2)](),_0x391c03=this[_0x1cb029(0x1bb)]['get'](_0x1a370c);_0x391c03==null||_0x391c03[_0x1cb029(0x1c7)]();});}async[_0x1f790e(0x156)](_0x44d170){const _0xb2bb46=_0x1f790e,_0x4a3e5c=await this['_collabSessionService']['requireSession'](_0x44d170),_0xd088fd=this[_0xb2bb46(0x162)][_0xb2bb46(0x15e)](_0x3c7f27[_0xb2bb46(0x1cc)],_0x44d170,_0x4a3e5c);return _0xd088fd[_0xb2bb46(0x1c8)](),this['_entities']['set'](_0x44d170,_0xd088fd),_0xd088fd;}},_0x3c7f27[_0x1f790e(0x205)]=_0x6be2a1([_0x8a54fb(0x0,_0x1a4663['IUniverInstanceService']),_0x8a54fb(0x1,_0x1a4663[_0x1f790e(0x192)](_0x1a4663[_0x1f790e(0x1dc)])),_0x8a54fb(0x2,_0x1a4663[_0x1f790e(0x192)](_0x483082[_0x1f790e(0x189)]))],_0x3c7f27[_0x1f790e(0x205)]);var _0x300ce0=(_0x91f8ba=>(_0x91f8ba[_0x1f790e(0x1d9)]=_0x1f790e(0x165),_0x91f8ba['IDLE']=_0x1f790e(0x1e4),_0x91f8ba[_0x1f790e(0x1ce)]=_0x1f790e(0x196),_0x91f8ba[_0x1f790e(0x1b5)]=_0x1f790e(0x1f3),_0x91f8ba[_0x1f790e(0x1d4)]=_0x1f790e(0x1c1),_0x91f8ba))(_0x300ce0||{});const _0xcca361='SAME_OPERATION_SHARE_INTERVAL',_0x176be4=0xc8;_0x3c7f27['LiveShareCoordinator']=class extends _0x1a4663[_0x1f790e(0x21a)]{constructor(_0x26ce50,_0x4bb066,_0x499011,_0x4a30c8,_0x5f4418){const _0xc0e48d=_0x1f790e;super(),_0x505340(this,_0xc0e48d(0x1e2),new _0x5cb817[(_0xc0e48d(0x1b0))](_0xc0e48d(0x1e4))),_0x505340(this,'status$',this[_0xc0e48d(0x1e2)][_0xc0e48d(0x1f8)]()),_0x505340(this,_0xc0e48d(0x21c),!0x1),_0x505340(this,_0xc0e48d(0x1ec),null),_0x505340(this,_0xc0e48d(0x1f6),null),(this[_0xc0e48d(0x1aa)]=_0x26ce50,this[_0xc0e48d(0x1f5)]=_0x4bb066,this['_configService']=_0x499011,this[_0xc0e48d(0x1b8)]=_0x4a30c8,this[_0xc0e48d(0x19a)]=_0x5f4418);}get[_0x1f790e(0x19f)](){const _0x13f469=_0x1f790e;return this[_0x13f469(0x1e2)]['getValue']();}[_0x1f790e(0x1c7)](){const _0x3b2d3e=_0x1f790e;var _0x1815af;(_0x1815af=this[_0x3b2d3e(0x1ec)])==null||_0x1815af['dispose'](),this[_0x3b2d3e(0x1e2)][_0x3b2d3e(0x1a3)](_0x3b2d3e(0x1e4)),this['_status$'][_0x3b2d3e(0x167)]();}['getStatus'](){const _0x49bdc5=_0x1f790e;return this[_0x49bdc5(0x19f)];}[_0x1f790e(0x1c8)](){const _0x3a6ebe=_0x1f790e;this['_init']||(this[_0x3a6ebe(0x21c)]=!0x0,this[_0x3a6ebe(0x1f5)][_0x3a6ebe(0x20a)][_0x3a6ebe(0x1b3)](_0x42de0b[_0x3a6ebe(0x1ed)](this[_0x3a6ebe(0x16e)]))[_0x3a6ebe(0x1ef)](_0x3c2136=>{const _0x3f4c2a=_0x3a6ebe;switch(_0x3c2136){case _0x483082['SessionStatus'][_0x3f4c2a(0x1d9)]:this[_0x3f4c2a(0x21b)]();break;case _0x483082[_0x3f4c2a(0x208)]['ONLINE']:this[_0x3f4c2a(0x1fb)]();break;}}),this['_collabSession'][_0x3a6ebe(0x198)]['pipe'](_0x42de0b[_0x3a6ebe(0x1ed)](this[_0x3a6ebe(0x16e)]))[_0x3a6ebe(0x1ef)](_0x20b624=>{const _0x4a5b11=_0x3a6ebe,{eventID:_0x5853ea}=_0x20b624;switch(_0x5853ea){case _0xad8d23['CollaborationEvent'][_0x4a5b11(0x1de)]:this[_0x4a5b11(0x19c)](_0x20b624);break;case _0xad8d23['CollaborationEvent'][_0x4a5b11(0x16f)]:this[_0x4a5b11(0x1d7)](_0x20b624);break;case _0xad8d23['CollaborationEvent'][_0x4a5b11(0x222)]:this[_0x4a5b11(0x21f)]();break;case _0xad8d23['CollaborationEvent']['NEW_CHANGESETS']:this[_0x4a5b11(0x226)](_0x20b624);break;}}));}['tryStartPresenting'](){const _0x2a4807=_0x1f790e;this[_0x2a4807(0x1f5)][_0x2a4807(0x1a9)]({'eventID':_0xad8d23[_0x2a4807(0x166)][_0x2a4807(0x1ff)],'data':{'unitID':this[_0x2a4807(0x1aa)],'userID':this['_collabSession'][_0x2a4807(0x204)]()}},this[_0x2a4807(0x1aa)]);}['stopPresenting'](){const _0x246920=_0x1f790e;this[_0x246920(0x19f)]===_0x246920(0x1c1)&&(this['_status$']['next']('idle'),this[_0x246920(0x1f5)][_0x246920(0x1a9)]({'eventID':_0xad8d23[_0x246920(0x166)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x246920(0x1aa)]}},this[_0x246920(0x1aa)]));}[_0x1f790e(0x1b7)](){const _0x382d9b=_0x1f790e;this[_0x382d9b(0x19f)]===_0x382d9b(0x1f3)&&(this[_0x382d9b(0x1e2)][_0x382d9b(0x1a3)](_0x382d9b(0x196)),this[_0x382d9b(0x21d)]());}[_0x1f790e(0x151)](){const _0x4204fe=_0x1f790e;this[_0x4204fe(0x19f)]===_0x4204fe(0x196)&&this[_0x4204fe(0x1f0)]();}[_0x1f790e(0x19c)](_0x3006cb){const _0x21d6c8=_0x1f790e,{presenter:_0xcca7ee}=_0x3006cb[_0x21d6c8(0x168)],_0x34f000=this[_0x21d6c8(0x1f5)][_0x21d6c8(0x204)]();this['_presenter']=_0xcca7ee,_0xcca7ee===_0x34f000?(this[_0x21d6c8(0x1f0)](),this[_0x21d6c8(0x1cd)]()):this[_0x21d6c8(0x19f)]!==_0x21d6c8(0x1f3)&&(this[_0x21d6c8(0x234)](),this[_0x21d6c8(0x21d)]());}['_fetchOperations'](){const _0x3c3b47=_0x1f790e,_0x5e5cd7={'eventID':_0xad8d23['CollaborationEvent'][_0x3c3b47(0x1e3)]};this['_collabSession'][_0x3c3b47(0x1a9)](_0x5e5cd7,this[_0x3c3b47(0x1aa)]);}['_handleTerminate'](){const _0x4357a3=_0x1f790e;this['_presenter']=null,this['_status']!==_0x4357a3(0x1c1)&&this[_0x4357a3(0x211)]();}['_handleNewChangeSets'](_0x50118d){const _0x3aea89=_0x1f790e;if(this[_0x3aea89(0x19f)]===_0x3aea89(0x196)&&this['_presenter']===_0x50118d[_0x3aea89(0x168)][_0x3aea89(0x1c5)]){const _0x4fd97f=_0xad8d23[_0x3aea89(0x20d)](_0x50118d['data'])[_0x3aea89(0x200)]['reverse']()[_0x3aea89(0x177)](_0x516e06=>_0x516e06['id']===_0x54971f['InsertSheetMutation']['id']);if(_0x4fd97f){const _0x5f4f51=_0x4fd97f[_0x3aea89(0x1b1)]['unitId'],_0x56103e=_0x4fd97f[_0x3aea89(0x1b1)][_0x3aea89(0x163)]['id'];setTimeout(()=>{const _0x588e12=_0x3aea89;this['_commandService'][_0x588e12(0x170)](_0x54971f[_0x588e12(0x1e0)]['id'],{'unitId':_0x5f4f51,'subUnitId':_0x56103e},{'fromCollab':!0x0});});}}}[_0x1f790e(0x1cd)](){const _0x3868b8=_0x1f790e;this[_0x3868b8(0x1e2)][_0x3868b8(0x1a3)]('presenting');const _0x519fc2=new Map(),_0x2293ac=this['_commandDisposable']=new _0x1a4663['DisposableCollection']();_0x2293ac['add'](_0x1a4663[_0x3868b8(0x17f)](()=>{const _0x15f912=_0x3868b8;_0x519fc2[_0x15f912(0x18d)](_0x50e334=>_0x50e334['complete']()),_0x519fc2['clear']();})),_0x2293ac[_0x3868b8(0x20c)](this['_commandService'][_0x3868b8(0x161)](_0x44c686=>{const _0x575817=_0x3868b8;var _0x5c609b;if(_0x44c686[_0x575817(0x16b)]!==_0x1a4663[_0x575817(0x1ad)]['OPERATION']||!this[_0x575817(0x1b8)][_0x575817(0x1c6)](_0x44c686['id']))return;const {id:_0x1dcf50}=_0x44c686;let _0x780014;_0x519fc2[_0x575817(0x22a)](_0x1dcf50)?_0x780014=_0x519fc2[_0x575817(0x15d)](_0x1dcf50):(_0x780014=new _0x5cb817[(_0x575817(0x1e5))](),_0x519fc2['set'](_0x1dcf50,_0x780014),_0x780014[_0x575817(0x1b3)](_0x42de0b[_0x575817(0x187)]((_0x5c609b=this[_0x575817(0x207)][_0x575817(0x186)](_0xcca361))!=null?_0x5c609b:_0x176be4,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3c605f=>{const _0x368998=_0x575817;this[_0x368998(0x1f5)]['send']({'eventID':_0xad8d23[_0x368998(0x166)][_0x368998(0x16f)],'data':{'unitID':this[_0x368998(0x1aa)],'operations':{[_0x3c605f['id']]:{'id':_0x3c605f['id'],'params':JSON[_0x368998(0x1ba)](_0x3c605f['params'])}}}},this[_0x368998(0x1aa)]);})),_0x780014[_0x575817(0x1a3)](_0x44c686);})),this[_0x3868b8(0x1b8)]['getInitialStates'](this[_0x3868b8(0x1aa)])[_0x3868b8(0x18d)](_0x1e860b=>this['_collabSession'][_0x3868b8(0x1a9)]({'eventID':_0xad8d23[_0x3868b8(0x166)][_0x3868b8(0x16f)],'data':{'unitID':this[_0x3868b8(0x1aa)],'operations':{[_0x1e860b['id']]:{'id':_0x1e860b['id'],'params':JSON[_0x3868b8(0x1ba)](_0x1e860b[_0x3868b8(0x1b1)])}}}},this[_0x3868b8(0x1aa)]));}[_0x1f790e(0x234)](){const _0x24b2f1=_0x1f790e;var _0x2ca0fa;this[_0x24b2f1(0x1e2)]['next'](_0x24b2f1(0x1e4)),(_0x2ca0fa=this[_0x24b2f1(0x1ec)])==null||_0x2ca0fa[_0x24b2f1(0x1c7)](),this[_0x24b2f1(0x1ec)]=null;}[_0x1f790e(0x21d)](){const _0x4075b4=_0x1f790e;var _0x2f30ff;(_0x2f30ff=this[_0x4075b4(0x1ec)])==null||_0x2f30ff[_0x4075b4(0x1c7)](),this[_0x4075b4(0x1e2)]['next'](_0x4075b4(0x196));}[_0x1f790e(0x211)](){const _0x1b3759=_0x1f790e;var _0x26d420;this[_0x1b3759(0x1e2)][_0x1b3759(0x1a3)](_0x1b3759(0x1e4)),(_0x26d420=this['_commandDisposable'])==null||_0x26d420[_0x1b3759(0x1c7)](),this[_0x1b3759(0x1ec)]=null;}['_stopFollowing'](){const _0x23dccd=_0x1f790e;var _0x3be70c;this['_status$'][_0x23dccd(0x1a3)](_0x23dccd(0x1f3)),(_0x3be70c=this['_commandDisposable'])==null||_0x3be70c[_0x23dccd(0x1c7)]();}[_0x1f790e(0x1d7)](_0x308a17){const _0x2b74f7=_0x1f790e;if([_0x2b74f7(0x1c1),_0x2b74f7(0x1f3),_0x2b74f7(0x165)][_0x2b74f7(0x181)](this[_0x2b74f7(0x19f)])||!_0x308a17[_0x2b74f7(0x168)]['presenter']||_0x308a17['data'][_0x2b74f7(0x1a4)]===this[_0x2b74f7(0x1f5)][_0x2b74f7(0x204)]())return;this[_0x2b74f7(0x19f)]==='idle'&&this[_0x2b74f7(0x21d)]();const _0x2b9070=_0x308a17['data']['operations'];Object[_0x2b74f7(0x215)](_0x2b9070)[_0x2b74f7(0x18d)](_0x13e5e6=>{const _0xf32a8a=_0x2b74f7;this[_0xf32a8a(0x19a)][_0xf32a8a(0x170)](_0x13e5e6['id'],_0x13e5e6[_0xf32a8a(0x1b1)]?JSON[_0xf32a8a(0x18c)](_0x13e5e6['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3c9521=_0x1f790e;var _0x393a38;this['_status$'][_0x3c9521(0x1a3)](_0x3c9521(0x165)),(_0x393a38=this[_0x3c9521(0x1ec)])==null||_0x393a38[_0x3c9521(0x1c7)]();}['_handleOnline'](){const _0x2e9346=_0x1f790e;this[_0x2e9346(0x1e2)][_0x2e9346(0x1a3)](_0x2e9346(0x1e4)),this[_0x2e9346(0x1d1)]();}},_0x3c7f27[_0x1f790e(0x1cc)]=_0x6be2a1([_0x8a54fb(0x2,_0x1a4663[_0x1f790e(0x188)]),_0x8a54fb(0x3,_0x1a4663[_0x1f790e(0x192)](_0x2c6fcf)),_0x8a54fb(0x4,_0x1a4663[_0x1f790e(0x1fa)])],_0x3c7f27['LiveShareCoordinator']);function _0x42013c(){const _0x3db89a=_0x1f790e,_0x1eb1b9=_0x445c44[_0x3db89a(0x19d)](_0x3c7f27[_0x3db89a(0x205)]),_0x4c4b11=_0x445c44[_0x3db89a(0x19d)](_0x1a4663[_0x3db89a(0x213)]),_0x462320=_0x445c44[_0x3db89a(0x216)](()=>_0x4c4b11['getCurrentTypeOfUnit$'](_0x1a4663[_0x3db89a(0x1c4)][_0x3db89a(0x1bd)]),void 0x0,!0x1,[]),[_0x29e59c,_0x4c5d82]=_0x1a8c05[_0x3db89a(0x227)](null),[_0x1d782a,_0xa510b7]=_0x1a8c05[_0x3db89a(0x227)](_0x300ce0[_0x3db89a(0x197)]),_0x3067da=_0x1a8c05['useRef'](null);return _0x1a8c05[_0x3db89a(0x154)](()=>(_0x462320&&_0x1eb1b9['getLiveShareCoordinator'](_0x462320[_0x3db89a(0x1c2)]())[_0x3db89a(0x1c0)](_0x13b0d5=>{const _0x3bf740=_0x3db89a;_0x4c5d82(_0x13b0d5),_0x3067da[_0x3bf740(0x1e7)]=_0x13b0d5[_0x3bf740(0x184)][_0x3bf740(0x1ef)](_0x1e7b32=>{_0xa510b7(_0x1e7b32);});}),()=>{const _0x28009a=_0x3db89a;var _0x5ad8fb;(_0x5ad8fb=_0x3067da['current'])==null||_0x5ad8fb['unsubscribe'](),_0x3067da[_0x28009a(0x1e7)]=null;}),[_0x462320,_0x1eb1b9]),_0x29e59c?_0x48b374[_0x3db89a(0x15a)](_0x4bbbf8[_0x3db89a(0x203)],{'align':_0x3db89a(0x233),'disabled':_0x1d782a===_0x300ce0[_0x3db89a(0x1d9)],'className':_0x3db89a(0x1a1),'overlay':_0x48b374[_0x3db89a(0x15a)](_0x341beb,{'status':_0x1d782a,'coordinator':_0x29e59c}),'children':_0x48b374[_0x3db89a(0x15a)]('button',{'className':_0x4bbbf8['clsx'](_0x3db89a(0x221),{'univer-cursor-not-allowed':_0x1d782a===_0x300ce0[_0x3db89a(0x1d9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d782a!==_0x300ce0[_0x3db89a(0x1d9)]}),'type':_0x3db89a(0x214),'children':_0x48b374[_0x3db89a(0x15a)](_0xe9087a,{'className':_0x3db89a(0x224)})})}):null;}function _0x341beb(_0x283774){const _0x382217=_0x1f790e,{status:_0x31271e,coordinator:_0x42972a}=_0x283774;switch(_0x31271e){case _0x300ce0['IDLE']:return _0x48b374['jsx'](_0x27dc2a,{'coordinator':_0x42972a});case _0x300ce0[_0x382217(0x1ce)]:return _0x48b374[_0x382217(0x15a)](_0x6425fd,{'coordinator':_0x42972a});case _0x300ce0[_0x382217(0x1b5)]:return _0x48b374[_0x382217(0x15a)](_0x37ffb1,{'coordinator':_0x42972a});case _0x300ce0[_0x382217(0x1d9)]:return _0x48b374[_0x382217(0x15a)](_0x532a13,{});case _0x300ce0[_0x382217(0x1d4)]:return _0x48b374[_0x382217(0x15a)](_0x80a528,{'coordinator':_0x42972a});default:return null;}}function _0x27dc2a(_0x4370d8){const _0x51fe1f=_0x1f790e,{coordinator:_0x2271a8}=_0x4370d8;return _0x48b374['jsxs'](_0x48b374[_0x51fe1f(0x18b)],{'children':[_0x48b374[_0x51fe1f(0x15a)](_0x51fe1f(0x1eb),{'className':_0x51fe1f(0x1d5),'children':'Present\x20this\x20document'}),_0x48b374[_0x51fe1f(0x15a)](_0x4bbbf8[_0x51fe1f(0x160)],{'onClick':()=>_0x2271a8[_0x51fe1f(0x22f)](),'children':'Start'})]});}function _0x6425fd(_0x4f7c55){const _0x377817=_0x1f790e,{coordinator:_0x4e6348}=_0x4f7c55;return _0x48b374[_0x377817(0x217)](_0x48b374[_0x377817(0x18b)],{'children':[_0x48b374[_0x377817(0x15a)](_0x377817(0x1eb),{'className':_0x377817(0x1d5),'children':_0x377817(0x18e)}),_0x48b374[_0x377817(0x15a)](_0x4bbbf8[_0x377817(0x160)],{'onClick':()=>_0x4e6348[_0x377817(0x151)](),'children':_0x377817(0x179)})]});}function _0x37ffb1(_0x54848b){const _0x5b66f0=_0x1f790e,{coordinator:_0x592c51}=_0x54848b;return _0x48b374[_0x5b66f0(0x217)](_0x48b374['Fragment'],{'children':[_0x48b374[_0x5b66f0(0x15a)]('div',{'className':_0x5b66f0(0x1d5),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x48b374[_0x5b66f0(0x15a)](_0x4bbbf8[_0x5b66f0(0x160)],{'variant':_0x5b66f0(0x195),'onClick':()=>_0x592c51[_0x5b66f0(0x1b7)](),'children':_0x5b66f0(0x1ab)})]});}function _0x80a528(_0x468b7b){const _0x4a19e0=_0x1f790e,{coordinator:_0x4e8b37}=_0x468b7b;return _0x48b374[_0x4a19e0(0x217)](_0x48b374['Fragment'],{'children':[_0x48b374[_0x4a19e0(0x15a)](_0x4a19e0(0x1eb),{'className':_0x4a19e0(0x1d5),'children':_0x4a19e0(0x17d)}),_0x48b374[_0x4a19e0(0x15a)](_0x4bbbf8['Button'],{'variant':_0x4a19e0(0x171),'onClick':()=>_0x4e8b37['stopPresenting'](),'children':_0x4a19e0(0x1f9)})]});}function _0x532a13(){const _0x5f0b1f=_0x1f790e;return _0x48b374['jsx'](_0x48b374[_0x5f0b1f(0x18b)],{'children':_0x5f0b1f(0x1a2)});}var _0x446c92=Object[_0x1f790e(0x1b2)],_0x4ba76e=(_0x200332,_0x50c69a,_0x115d14,_0x3ad292)=>{for(var _0xd4809c=_0x3ad292>0x1?void 0x0:_0x3ad292?_0x446c92(_0x50c69a,_0x115d14):_0x50c69a,_0x6082d7=_0x200332['length']-0x1,_0x2aa02d;_0x6082d7>=0x0;_0x6082d7--)(_0x2aa02d=_0x200332[_0x6082d7])&&(_0xd4809c=_0x2aa02d(_0xd4809c)||_0xd4809c);return _0xd4809c;},_0x2e0bfa=(_0x5928c7,_0x2f9f59)=>(_0x18d1bc,_0x3633ad)=>_0x2f9f59(_0x18d1bc,_0x3633ad,_0x5928c7);_0x3c7f27[_0x1f790e(0x1a0)]=class extends _0x1a4663[_0x1f790e(0x223)]{constructor(_0x44b9a0,_0x4700e4){const _0x162f22=_0x1f790e;super(),this[_0x162f22(0x162)]=_0x44b9a0,this['_uiPartsService']=_0x4700e4,this[_0x162f22(0x1dd)]();}[_0x1f790e(0x1dd)](){const _0xc01f4e=_0x1f790e;this[_0xc01f4e(0x1ae)](this[_0xc01f4e(0x22c)]['registerComponent'](_0x445c44[_0xc01f4e(0x228)][_0xc01f4e(0x175)],()=>_0x445c44[_0xc01f4e(0x182)](_0x42013c,this[_0xc01f4e(0x162)])));}},_0x3c7f27['DesktopLiveShareController']=_0x4ba76e([_0x2e0bfa(0x0,_0x1a4663[_0x1f790e(0x192)](_0x1a4663['Injector'])),_0x2e0bfa(0x1,_0x445c44[_0x1f790e(0x225)])],_0x3c7f27['DesktopLiveShareController']);const _0x2684fe=_0x1f790e(0x1e1),_0x266a45={};var _0x2a1f24=Object[_0x1f790e(0x1b2)],_0x26d1aa=(_0x1ade5b,_0x592ba4,_0x319e01,_0x528f1b)=>{const _0x254fea=_0x1f790e;for(var _0x61bbca=_0x528f1b>0x1?void 0x0:_0x528f1b?_0x2a1f24(_0x592ba4,_0x319e01):_0x592ba4,_0x4dd1a3=_0x1ade5b[_0x254fea(0x209)]-0x1,_0x1abec9;_0x4dd1a3>=0x0;_0x4dd1a3--)(_0x1abec9=_0x1ade5b[_0x4dd1a3])&&(_0x61bbca=_0x1abec9(_0x61bbca)||_0x61bbca);return _0x61bbca;},_0x465881=(_0x314408,_0x45280c)=>(_0x491ab3,_0x2ecf6f)=>_0x45280c(_0x491ab3,_0x2ecf6f,_0x314408);let _0x3719dd=class extends _0x1a4663[_0x1f790e(0x223)]{constructor(_0x3e4077){const _0x18c901=_0x1f790e;super(),this[_0x18c901(0x1b8)]=_0x3e4077,this[_0x18c901(0x21c)]();}[_0x1f790e(0x21c)](){const _0x2bc22c=_0x1f790e;[_0x1b8ea2[_0x2bc22c(0x19b)]['id'],_0x1b8ea2['SetScrollOperation']['id'],_0x54971f['SetWorksheetActiveOperation']['id']]['forEach'](_0xbc4d6a=>{const _0x2f67bc=_0x2bc22c;this[_0x2f67bc(0x1ae)](this[_0x2f67bc(0x1b8)]['registerSharedOperation'](_0xbc4d6a));});}};_0x3719dd=_0x26d1aa([_0x465881(0x0,_0x1a4663[_0x1f790e(0x192)](_0x2c6fcf))],_0x3719dd);var _0x361f76=Object[_0x1f790e(0x185)],_0xd473f5=Object['getOwnPropertyDescriptor'],_0x4670d8=(_0x1bbb8b,_0x24449e,_0x55b798)=>_0x24449e in _0x1bbb8b?_0x361f76(_0x1bbb8b,_0x24449e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55b798}):_0x1bbb8b[_0x24449e]=_0x55b798,_0x27634a=(_0x57a3f1,_0x4671fc,_0x2d5293,_0x53e0f9)=>{const _0x3572f4=_0x1f790e;for(var _0x234dc0=_0x53e0f9>0x1?void 0x0:_0x53e0f9?_0xd473f5(_0x4671fc,_0x2d5293):_0x4671fc,_0xdafc8e=_0x57a3f1[_0x3572f4(0x209)]-0x1,_0x53d422;_0xdafc8e>=0x0;_0xdafc8e--)(_0x53d422=_0x57a3f1[_0xdafc8e])&&(_0x234dc0=_0x53d422(_0x234dc0)||_0x234dc0);return _0x234dc0;},_0x21dc64=(_0xb43bc6,_0x56c38b)=>(_0x1db581,_0x106a74)=>_0x56c38b(_0x1db581,_0x106a74,_0xb43bc6),_0xc6f876=(_0x125876,_0x1e285a,_0x20a720)=>_0x4670d8(_0x125876,typeof _0x1e285a!=_0x1f790e(0x1cf)?_0x1e285a+'':_0x1e285a,_0x20a720);const _0x486d01='UNIVER_LIVE_SHARE_PLUGIN';_0x3c7f27[_0x1f790e(0x1d8)]=class extends _0x1a4663['Plugin']{constructor(_0x7d2640=_0x266a45,_0x24025c,_0x8a3a9a){const _0x9ec025=_0x1f790e;super(),this['_config']=_0x7d2640,this[_0x9ec025(0x162)]=_0x24025c,this[_0x9ec025(0x207)]=_0x8a3a9a;const {..._0x1772ce}=_0x1a4663[_0x9ec025(0x1cb)]({},_0x266a45,this[_0x9ec025(0x1a6)]);this['_configService'][_0x9ec025(0x1ea)](_0x2684fe,_0x1772ce);}['onStarting'](){const _0x4c1ef5=_0x1f790e;_0x1a4663[_0x4c1ef5(0x22b)](this[_0x4c1ef5(0x162)],_0x1a4663[_0x4c1ef5(0x159)]([[_0x2c6fcf],[_0x3c7f27[_0x4c1ef5(0x205)]],[_0x3719dd],[_0x3c7f27[_0x4c1ef5(0x1a0)]]],this[_0x4c1ef5(0x1a6)][_0x4c1ef5(0x20e)])),_0x1a4663['touchDependencies'](this[_0x4c1ef5(0x162)],[[_0x3719dd]]);}[_0x1f790e(0x22e)](){_0x1a4663['touchDependencies'](this['_injector'],[[_0x3c7f27['DesktopLiveShareController']]]);}},_0xc6f876(_0x3c7f27[_0x1f790e(0x1d8)],_0x1f790e(0x16b),_0x1a4663['UniverInstanceType'][_0x1f790e(0x1c3)]),_0xc6f876(_0x3c7f27[_0x1f790e(0x1d8)],'pluginName',_0x486d01),_0x3c7f27[_0x1f790e(0x1d8)]=_0x27634a([_0x1a4663[_0x1f790e(0x1d3)](_0x483082[_0x1f790e(0x202)]),_0x21dc64(0x1,_0x1a4663[_0x1f790e(0x192)](_0x1a4663['Injector'])),_0x21dc64(0x2,_0x1a4663[_0x1f790e(0x188)])],_0x3c7f27[_0x1f790e(0x1d8)]),_0x3c7f27[_0x1f790e(0x190)]=_0x42013c,_0x3c7f27[_0x1f790e(0x16c)]=_0x2c6fcf,_0x3c7f27[_0x1f790e(0x152)]=_0x300ce0,Object[_0x1f790e(0x185)](_0x3c7f27,Symbol[_0x1f790e(0x230)],{'value':'Module'});}));function _0x5f01(){const _0x11f503=['getLiveShareCoordinatorSync','then','presenting','getUnitId','UNIVER_UNKNOWN','UniverInstanceType','memberID','shouldShareOperation','dispose','init','svg','defIds','merge','LiveShareCoordinator','_startPresenting','FOLLOWING','symbol','random','_fetchOperations','evenodd','DependentOn','PRESENTING','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverProLiveShare','_handleOperation','UniverLiveSharePlugin','OFFLINE','25119LkQURm','defs','Injector','_mountLiveShare','LIVESHARE_NEW_HOST','1107528vFSpkO','SetWorksheetActiveOperation','live-share.config','_status$','LIVESHARE_FETCH_OPERATIONS','idle','Subject','UniverSheets','current','createElement','UniverProCollaborationClient','setConfig','div','_commandDisposable','takeUntil','object','subscribe','_stopFollowing','_univerInstanceService','use','not-following','_collabSessionService','_collabSession','_presenter','getTypeOfUnitDisposed$','asObservable','Stop\x20presenting','ICommandService','_handleOnline','displayName','xlink:href','colorChannel1','LIVESHARE_REQUEST_HOST','mutations','children','UniverCollaborationClientPlugin','Dropdown','getMemberID','LiveShareController','264604ClObtu','_configService','SessionStatus','length','sessionStatus$','@univerjs/ui','add','parseProtocolChangeset','override','UniverIcon','UniverSheetsUi','_beIdle','1em','IUniverInstanceService','button','values','useObservable','jsxs','@univerjs-pro/collaboration','none','RxDisposable','_handleOffline','_init','_startFollowing','trim','_handleTerminate','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-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_TERMINATE','Disposable','univer-size-4','IUIPartsService','_handleNewChangeSets','useState','BuiltInUIPart','path','has','registerDependencies','_uiPartsService','http://www.w3.org/2000/svg','onRendered','tryStartPresenting','toStringTag','entries','15FBjNRT','end','_stopPresenting','stopFollowing','LiveShareStatus','univerjs-icon\x20univerjs-icon-','useEffect','mask','_startLiveShareCoordinator','live-share-icon','UniverProCollaboration','mergeOverrideWithDependencies','jsx','12255690DXNGBf','@univerjs/design','get','createInstance','assign','Button','onCommandExecuted','_injector','sheet','delete','offline','CollaborationEvent','complete','data','rxjs','LiveShareIcon','type','LiveShareService','string','dispose$','LIVESHARE_OPERATION','executeCommand','default','function','getInitialStates','currentColor','HEADER_MENU','@univerjs-pro/collaboration-client','find','React','Stop\x20following','456037ovlrsK','@univerjs/sheets','11227311JtsVcd','You\x27re\x20presenting\x20the\x20document','556oSZfEy','toDisposable','useRef','includes','connectInjector','url(#$1','status$','defineProperty','getConfig','throttleTime','IConfigService','CollaborationSessionService','@univerjs/core','Fragment','parse','forEach','You\x27re\x20following\x20the\x20presenter','11cRzeoe','LiveShare','exports','Inject','tag','fill','text','following','IDLE','event$','_reporters','_commandService','SetZoomRatioOperation','_handleNewHost','useDependency','rxjs/operators','_status','DesktopLiveShareController','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','You\x27are\x20offline.','next','presenter','idSuffix','_config','attrs','forwardRef','send','_unitID','Start\x20following','8199954oymIRl','CommandType','disposeWithMe','8pUaISG','BehaviorSubject','params','getOwnPropertyDescriptor','pipe','react','NOT_FOLLOWING','operators','startFollowing','_liveShareService','map','stringify','_entities','_sharedOperations','UNIVER_SHEET','0\x200\x2017\x2017'];_0x5f01=function(){return _0x11f503;};return _0x5f01();}
|
|
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-pro/collaboration-client": "0.12.4-experimental.
|
|
62
|
-
"@univerjs/design": "0.12.4-experimental.
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/sheets
|
|
65
|
-
"@univerjs/sheets": "0.12.4-experimental.
|
|
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",
|