@univerjs-pro/live-share 0.13.0-insiders.20251215-64041bb → 0.13.0-insiders.20251216-1519cb7
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 _0x113a8e=_0x1778;(function(_0x5cd5b5,_0x308059){const _0xc92238=_0x1778,_0x29fbaf=_0x5cd5b5();while(!![]){try{const _0x3f1009=parseInt(_0xc92238(0x100))/0x1*(-parseInt(_0xc92238(0x108))/0x2)+parseInt(_0xc92238(0x11b))/0x3+parseInt(_0xc92238(0x104))/0x4*(parseInt(_0xc92238(0x106))/0x5)+-parseInt(_0xc92238(0x11c))/0x6*(parseInt(_0xc92238(0x118))/0x7)+-parseInt(_0xc92238(0x10d))/0x8*(-parseInt(_0xc92238(0x103))/0x9)+parseInt(_0xc92238(0x10e))/0xa*(parseInt(_0xc92238(0x11d))/0xb)+parseInt(_0xc92238(0x10f))/0xc;if(_0x3f1009===_0x308059)break;else _0x29fbaf['push'](_0x29fbaf['shift']());}catch(_0x351b28){_0x29fbaf['push'](_0x29fbaf['shift']());}}}(_0x4532,0x86cc2));function _0x4532(){const _0x658780=['6XJGAEE','33HYXMum','FEnum','getActiveWorkbook','syncExecuteCommand','stopFollowing','startFollowing','IRenderManagerService','stopPresenting','IDLE','getSheetId','startPresenting','getRenderById','917053VUSZSM','tryStartPresenting','FUniver','410724Ezahjj','161016hmprGc','executeCommand','15FCeFwg','LiveShareStatusEnum','2ojvEPa','LiveShareStatus','getActiveSheet','getLiveShareCoordinatorSync','_injector','144LKzGxK','1751980zdfkiz','3056112zfIlIz','get','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_commandService','FRange','LiveShareController','No\x20active\x20workbook\x20found.','extend','getId','2609929RnNUhV','SetScrollOperation','getUnitId','358650QwufUg'];_0x4532=function(){return _0x658780;};return _0x4532();}const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');function _0x1778(_0x501c51,_0x15dcef){_0x501c51=_0x501c51-0xfd;const _0x4532a3=_0x4532();let _0x17780a=_0x4532a3[_0x501c51];return _0x17780a;}class w extends d[_0x113a8e(0x113)]{['_initialize'](_0x269a74,_0x4ca31f,_0x3ba9d3,_0x40def0,_0x3fe045){const _0x25db5a=_0x113a8e,_0x5c6928=_0x269a74['get'](n[_0x25db5a(0x114)]),_0x1c27a9=_0x269a74['get'](g[_0x25db5a(0x123)]),_0x56aa9c=_0x4ca31f['getUnitId'](),_0x59ecea=_0x4ca31f[_0x25db5a(0x10a)](),_0x140969=_0x5c6928[_0x25db5a(0x10b)](_0x56aa9c);(_0x140969==null?void 0x0:_0x140969['getStatus']())!==n[_0x25db5a(0x109)]['PRESENTING']||(_0x3ba9d3['getSheetId']()!==_0x59ecea[_0x25db5a(0xfd)]()&&this[_0x25db5a(0x112)][_0x25db5a(0x105)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x56aa9c,'subUnitId':_0x3ba9d3[_0x25db5a(0xfd)]()}),!_0x1c27a9[_0x25db5a(0xff)](_0x56aa9c))||_0x3fe045[_0x25db5a(0x120)](f[_0x25db5a(0x119)]['id'],{'unitId':_0x4ca31f[_0x25db5a(0x11a)](),'sheetId':_0x3ba9d3[_0x25db5a(0xfd)](),'sheetViewStartRow':_0x40def0['startRow'],'sheetViewStartColumn':_0x40def0['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x113a8e(0x113)][_0x113a8e(0x116)](w);class C extends a[_0x113a8e(0x102)]{['getLiveShareStatus'](){const _0x5dde93=_0x113a8e;var _0x232eae,_0x2414ee;const _0x4eb13e=this[_0x5dde93(0x10c)][_0x5dde93(0x110)](n['LiveShareController']),_0x1b5133=(_0x232eae=this['getActiveWorkbook']())==null?void 0x0:_0x232eae[_0x5dde93(0x117)]();if(!_0x1b5133)throw new Error('No\x20active\x20workbook\x20found.');const _0x200162=_0x4eb13e[_0x5dde93(0x10b)](_0x1b5133);return(_0x2414ee=_0x200162==null?void 0x0:_0x200162['getStatus']())!=null?_0x2414ee:n[_0x5dde93(0x109)][_0x5dde93(0x125)];}[_0x113a8e(0x122)](){const _0x23f02d=_0x113a8e;var _0x5f3235;const _0x36df53=this['_injector'][_0x23f02d(0x110)](n[_0x23f02d(0x114)]),_0x481c81=(_0x5f3235=this[_0x23f02d(0x11f)]())==null?void 0x0:_0x5f3235[_0x23f02d(0x117)]();if(!_0x481c81)throw new Error('No\x20active\x20workbook\x20found.');const _0x4e1caa=_0x36df53[_0x23f02d(0x10b)](_0x481c81);if(!_0x4e1caa)throw new Error(_0x23f02d(0x111));_0x4e1caa[_0x23f02d(0x122)]();}['stopFollowing'](){const _0x321554=_0x113a8e;var _0x447bce;const _0x2a2459=this[_0x321554(0x10c)][_0x321554(0x110)](n[_0x321554(0x114)]),_0xf00516=(_0x447bce=this['getActiveWorkbook']())==null?void 0x0:_0x447bce[_0x321554(0x117)]();if(!_0xf00516)throw new Error(_0x321554(0x115));const _0x58a9d9=_0x2a2459[_0x321554(0x10b)](_0xf00516);if(!_0x58a9d9)throw new Error(_0x321554(0x111));_0x58a9d9[_0x321554(0x121)]();}[_0x113a8e(0xfe)](){const _0x2f380c=_0x113a8e;var _0x3b5494;const _0x3254bf=this[_0x2f380c(0x10c)]['get'](n[_0x2f380c(0x114)]),_0xb4fd69=(_0x3b5494=this['getActiveWorkbook']())==null?void 0x0:_0x3b5494[_0x2f380c(0x117)]();if(!_0xb4fd69)throw new Error(_0x2f380c(0x115));const _0x58d189=_0x3254bf[_0x2f380c(0x10b)](_0xb4fd69);if(!_0x58d189)throw new Error(_0x2f380c(0x111));_0x58d189[_0x2f380c(0x101)]();}['stopPresenting'](){const _0x797a34=_0x113a8e;var _0x52ea21;const _0x278b8d=this[_0x797a34(0x10c)][_0x797a34(0x110)](n[_0x797a34(0x114)]),_0x51d512=(_0x52ea21=this['getActiveWorkbook']())==null?void 0x0:_0x52ea21[_0x797a34(0x117)]();if(!_0x51d512)throw new Error('No\x20active\x20workbook\x20found.');const _0x79cf8d=_0x278b8d[_0x797a34(0x10b)](_0x51d512);if(!_0x79cf8d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x79cf8d[_0x797a34(0x124)]();}}a['FUniver']['extend'](C);class L extends a[_0x113a8e(0x11e)]{get[_0x113a8e(0x107)](){const _0x361318=_0x113a8e;return n[_0x361318(0x109)];}}a[_0x113a8e(0x11e)][_0x113a8e(0x116)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x146de2=_0x4aaf;function _0x4aaf(_0x5d3476,_0x35ad77){_0x5d3476=_0x5d3476-0x6d;const _0x5376c2=_0x5376();let _0x4aafa9=_0x5376c2[_0x5d3476];return _0x4aafa9;}(function(_0x31fb83,_0x5ee9f6){const _0x483a53=_0x4aaf,_0x52e21d=_0x31fb83();while(!![]){try{const _0x521076=parseInt(_0x483a53(0x121))/0x1*(parseInt(_0x483a53(0x11e))/0x2)+parseInt(_0x483a53(0xd4))/0x3+parseInt(_0x483a53(0x10e))/0x4*(parseInt(_0x483a53(0x10d))/0x5)+-parseInt(_0x483a53(0xcd))/0x6*(-parseInt(_0x483a53(0x73))/0x7)+-parseInt(_0x483a53(0x6d))/0x8+-parseInt(_0x483a53(0xcf))/0x9*(parseInt(_0x483a53(0x8d))/0xa)+-parseInt(_0x483a53(0x127))/0xb;if(_0x521076===_0x5ee9f6)break;else _0x52e21d['push'](_0x52e21d['shift']());}catch(_0x55e1ce){_0x52e21d['push'](_0x52e21d['shift']());}}}(_0x5376,0xf105c));var T=Object[_0x146de2(0x76)],U=(_0x52f6e9,_0x366f85,_0x284485)=>_0x366f85 in _0x52f6e9?T(_0x52f6e9,_0x366f85,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x284485}):_0x52f6e9[_0x366f85]=_0x284485,_=(_0x384ddf,_0x531e8b,_0x181d5f)=>U(_0x384ddf,typeof _0x531e8b!=_0x146de2(0xe0)?_0x531e8b+'':_0x531e8b,_0x181d5f);Object[_0x146de2(0x76)](exports,Symbol[_0x146de2(0xd3)],{'value':_0x146de2(0x104)});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:_0x34e755,..._0x4da669}){const _0x42ccd7=_0x146de2,{icon:_0x5d7d04,id:_0x467310,className:_0x35eba6,extend:_0xc968c0,..._0x220fa5}=_0x4da669,_0x146e81=(_0x42ccd7(0xc7)+_0x467310+'\x20'+(_0x35eba6||''))[_0x42ccd7(0x7d)](),_0x5e3b60=v[_0x42ccd7(0x75)]('_'+H());return j(_0x5d7d04,''+_0x467310,{'defIds':_0x5d7d04[_0x42ccd7(0xb4)],'idSuffix':_0x5e3b60[_0x42ccd7(0x106)]},{'ref':_0x34e755,'className':_0x146e81,..._0x220fa5},_0xc968c0);}function j(_0x224df1,_0x3a3aeb,_0x38e188,_0xebc979,_0x4a8308){const _0x1396c1=_0x146de2;return v['createElement'](_0x224df1[_0x1396c1(0x9a)],{'key':_0x3a3aeb,...y(_0x224df1,_0x38e188,_0x4a8308),..._0xebc979},(F(_0x224df1,_0x38e188)['children']||[])[_0x1396c1(0x117)]((_0x148bb8,_0x2fa454)=>j(_0x148bb8,_0x3a3aeb+'-'+_0x224df1[_0x1396c1(0x9a)]+'-'+_0x2fa454,_0x38e188,void 0x0,_0x4a8308)));}function y(_0x13a6de,_0x4ba84d,_0x390193){const _0x5648fa=_0x146de2,_0x1d8893={..._0x13a6de['attrs']};_0x390193!=null&&_0x390193[_0x5648fa(0xae)]&&_0x1d8893['fill']===_0x5648fa(0xae)&&(_0x1d8893[_0x5648fa(0xc8)]=_0x390193[_0x5648fa(0xae)]),_0x13a6de[_0x5648fa(0x9a)]===_0x5648fa(0xde)&&_0x1d8893['id']&&(_0x1d8893['id']=_0x1d8893['id']+_0x4ba84d['idSuffix']),Object[_0x5648fa(0x90)](_0x1d8893)['forEach'](([_0x45ab0c,_0x2fa0c1])=>{const _0x11b120=_0x5648fa;_0x45ab0c===_0x11b120(0xde)&&typeof _0x2fa0c1==_0x11b120(0xda)&&(_0x1d8893[_0x45ab0c]=_0x2fa0c1['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4ba84d[_0x11b120(0x11d)]+')'));});const {defIds:_0x2401f8}=_0x4ba84d;return!_0x2401f8||_0x2401f8['length']===0x0||(_0x13a6de['tag']==='use'&&_0x1d8893[_0x5648fa(0x8b)]&&(_0x1d8893[_0x5648fa(0x8b)]=_0x1d8893[_0x5648fa(0x8b)]+_0x4ba84d[_0x5648fa(0x11d)]),Object[_0x5648fa(0x90)](_0x1d8893)[_0x5648fa(0xab)](([_0xa60488,_0x4c1517])=>{const _0x338c65=_0x5648fa;typeof _0x4c1517==_0x338c65(0xda)&&(_0x1d8893[_0xa60488]=_0x4c1517[_0x338c65(0x102)](/url\(#(.*)\)/,'url(#$1'+_0x4ba84d[_0x338c65(0x11d)]+')'));})),_0x1d8893;}function F(_0x481f07,_0x2edea9){const _0x1c1367=_0x146de2;var _0x19b682;const {defIds:_0x1df126}=_0x2edea9;return!_0x1df126||_0x1df126['length']===0x0?_0x481f07:_0x481f07[_0x1c1367(0x9a)]===_0x1c1367(0x11a)&&((_0x19b682=_0x481f07[_0x1c1367(0xc9)])!=null&&_0x19b682[_0x1c1367(0x126)])?{..._0x481f07,'children':_0x481f07[_0x1c1367(0xc9)]['map'](_0x47eedc=>typeof _0x47eedc[_0x1c1367(0x112)]['id']==_0x1c1367(0xda)&&_0x1df126&&_0x1df126['includes'](_0x47eedc[_0x1c1367(0x112)]['id'])?{..._0x47eedc,'attrs':{..._0x47eedc[_0x1c1367(0x112)],'id':_0x47eedc['attrs']['id']+_0x2edea9[_0x1c1367(0x11d)]}}:_0x47eedc)}:_0x481f07;}function H(){const _0x37667a=_0x146de2;return Math['random']()[_0x37667a(0x8e)](0x24)['substring'](0x2,0x8);}x[_0x146de2(0x13a)]=_0x146de2(0x12e);const V={'tag':_0x146de2(0xa2),'attrs':{'xmlns':_0x146de2(0xe3),'fill':_0x146de2(0xc3),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x146de2(0xa7)},'children':[{'tag':_0x146de2(0x91),'attrs':{'fill':_0x146de2(0xb0),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x146de2(0x91),'attrs':{'fill':_0x146de2(0xb0),'d':_0x146de2(0xfe),'fillRule':_0x146de2(0x87),'clipRule':'evenodd'}}]},R=v[_0x146de2(0xb3)](function(_0xf86e26,_0x301570){const _0x1c8c8b=_0x146de2;return v[_0x1c8c8b(0x8a)](x,Object[_0x1c8c8b(0x80)]({},_0xf86e26,{'id':_0x1c8c8b(0x110),'ref':_0x301570,'icon':V}));});R['displayName']=_0x146de2(0x123);class E extends o[_0x146de2(0x12b)]{constructor(){super(...arguments),_(this,'_sharedOperations',new Set()),_(this,'_reporters',new Set());}[_0x146de2(0xff)](_0x4c5e77){const _0x26941b=_0x146de2;return this[_0x26941b(0xc2)]['add'](_0x4c5e77),o[_0x26941b(0x122)](()=>this[_0x26941b(0xc2)][_0x26941b(0x13b)](_0x4c5e77));}[_0x146de2(0xb6)](_0x3979f0){const _0x2aa6b7=_0x146de2;return this[_0x2aa6b7(0x9f)][_0x2aa6b7(0xd9)](_0x3979f0),o[_0x2aa6b7(0x122)](()=>this[_0x2aa6b7(0x9f)]['delete'](_0x3979f0));}[_0x146de2(0xb5)](_0x34032f){const _0x2f89f2=_0x146de2;return this[_0x2f89f2(0xc2)][_0x2f89f2(0x11b)](_0x34032f);}[_0x146de2(0x138)](_0x5de52c){const _0x44299e=_0x146de2;return Array[_0x44299e(0x81)](this[_0x44299e(0x9f)])[_0x44299e(0x117)](_0x2ba9d8=>_0x2ba9d8(_0x5de52c));}}var M=Object[_0x146de2(0xe8)],P=(_0x149566,_0x36095f,_0x1958f3,_0x41b6ce)=>{const _0x9b4230=_0x146de2;for(var _0xa44610=_0x41b6ce>0x1?void 0x0:_0x41b6ce?M(_0x36095f,_0x1958f3):_0x36095f,_0x12cdce=_0x149566[_0x9b4230(0x126)]-0x1,_0x4ae8ec;_0x12cdce>=0x0;_0x12cdce--)(_0x4ae8ec=_0x149566[_0x12cdce])&&(_0xa44610=_0x4ae8ec(_0xa44610)||_0xa44610);return _0xa44610;},S=(_0x39ee51,_0x141642)=>(_0x4b3549,_0x5be8a4)=>_0x141642(_0x4b3549,_0x5be8a4,_0x39ee51);exports[_0x146de2(0xbb)]=class extends o[_0x146de2(0x9b)]{constructor(_0xfee62,_0x456659,_0x28e7e3){const _0x2c1a11=_0x146de2;super(),_(this,'_entities',new Map()),(this[_0x2c1a11(0x9c)]=_0xfee62,this[_0x2c1a11(0xd2)]=_0x456659,this[_0x2c1a11(0x7c)]=_0x28e7e3,this[_0x2c1a11(0x140)]());}async[_0x146de2(0xea)](_0x2f7b55){const _0x3e906c=_0x146de2;return this[_0x3e906c(0x11f)][_0x3e906c(0x11b)](_0x2f7b55)||await this[_0x3e906c(0xef)](_0x2f7b55),this[_0x3e906c(0x11f)][_0x3e906c(0xf0)](_0x2f7b55);}[_0x146de2(0xdb)](_0x2495a5){const _0x40a25f=_0x146de2;var _0x1ba0ed;return(_0x1ba0ed=this[_0x40a25f(0x11f)][_0x40a25f(0xf0)](_0x2495a5))!=null?_0x1ba0ed:null;}[_0x146de2(0x140)](){const _0xdf7677=_0x146de2;this[_0xdf7677(0x9c)][_0xdf7677(0x96)](o['UniverInstanceType'][_0xdf7677(0xaf)])[_0xdf7677(0x136)](I[_0xdf7677(0x101)](this[_0xdf7677(0xa8)]))[_0xdf7677(0x84)](async _0x54f63a=>{const _0x240fdd=_0xdf7677,_0xe9ee3d=_0x54f63a[_0x240fdd(0xec)]();this['_entities'][_0x240fdd(0x11b)](_0xe9ee3d)||this['_startLiveShareCoordinator'](_0xe9ee3d);}),this[_0xdf7677(0x9c)][_0xdf7677(0xad)](o[_0xdf7677(0xbf)][_0xdf7677(0xaf)])[_0xdf7677(0x136)](I[_0xdf7677(0x101)](this[_0xdf7677(0xa8)]))['subscribe'](_0x30e12f=>{const _0x55211a=_0xdf7677,_0x5ac1b5=_0x30e12f[_0x55211a(0xec)](),_0x25190a=this[_0x55211a(0x11f)][_0x55211a(0xf0)](_0x5ac1b5);_0x25190a==null||_0x25190a[_0x55211a(0xf2)]();});}async['_startLiveShareCoordinator'](_0x2bb766){const _0x663060=_0x146de2,_0xb3aeb7=await this[_0x663060(0x7c)][_0x663060(0x7b)](_0x2bb766),_0x5dd7dd=this['_injector'][_0x663060(0xfb)](exports[_0x663060(0x6e)],_0x2bb766,_0xb3aeb7);return _0x5dd7dd[_0x663060(0x141)](),this[_0x663060(0x11f)]['set'](_0x2bb766,_0x5dd7dd),_0x5dd7dd;}},exports[_0x146de2(0xbb)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x146de2(0xb2)](o[_0x146de2(0x137)])),S(0x2,o[_0x146de2(0xb2)](b['CollaborationSessionService']))],exports[_0x146de2(0xbb)]);var u=(_0x470af8=>(_0x470af8[_0x146de2(0x9d)]=_0x146de2(0xac),_0x470af8[_0x146de2(0x114)]=_0x146de2(0x10a),_0x470af8[_0x146de2(0x134)]=_0x146de2(0x135),_0x470af8['NOT_FOLLOWING']='not-following',_0x470af8[_0x146de2(0x111)]=_0x146de2(0xe1),_0x470af8))(u||{});const k=_0x146de2(0x11c),q=0xc8;exports[_0x146de2(0x6e)]=class extends o['RxDisposable']{constructor(_0x27171c,_0x1ad537,_0x461872,_0x21587c,_0x263f73){const _0x44b0af=_0x146de2;super(),_(this,_0x44b0af(0xcb),new O[(_0x44b0af(0x131))](_0x44b0af(0x10a))),_(this,'status$',this[_0x44b0af(0xcb)][_0x44b0af(0xf6)]()),_(this,_0x44b0af(0x140),!0x1),_(this,_0x44b0af(0x77),null),_(this,_0x44b0af(0x88),null),(this['_unitID']=_0x27171c,this[_0x44b0af(0x85)]=_0x1ad537,this[_0x44b0af(0xbc)]=_0x461872,this[_0x44b0af(0x103)]=_0x21587c,this[_0x44b0af(0x12c)]=_0x263f73);}get[_0x146de2(0xc1)](){const _0x4207a7=_0x146de2;return this[_0x4207a7(0xcb)][_0x4207a7(0xf4)]();}[_0x146de2(0xf2)](){const _0x3f8d61=_0x146de2;var _0x46eaff;(_0x46eaff=this[_0x3f8d61(0x77)])==null||_0x46eaff[_0x3f8d61(0xf2)](),this[_0x3f8d61(0xcb)][_0x3f8d61(0xba)](_0x3f8d61(0x10a)),this[_0x3f8d61(0xcb)]['complete']();}[_0x146de2(0xb8)](){const _0x2b9cfe=_0x146de2;return this[_0x2b9cfe(0xc1)];}[_0x146de2(0x141)](){const _0x5442c0=_0x146de2;this['_init']||(this[_0x5442c0(0x140)]=!0x0,this[_0x5442c0(0x85)][_0x5442c0(0xc5)][_0x5442c0(0x136)](I['takeUntil'](this[_0x5442c0(0xa8)]))[_0x5442c0(0x84)](_0x3c7a4a=>{const _0x177dd7=_0x5442c0;switch(_0x3c7a4a){case b[_0x177dd7(0xcc)][_0x177dd7(0x9d)]:this[_0x177dd7(0xc4)]();break;case b[_0x177dd7(0xcc)]['ONLINE']:this['_handleOnline']();break;}}),this[_0x5442c0(0x85)][_0x5442c0(0x72)]['pipe'](I[_0x5442c0(0x101)](this[_0x5442c0(0xa8)]))[_0x5442c0(0x84)](_0x5e0864=>{const _0x52d413=_0x5442c0,{eventID:_0x2d1a95}=_0x5e0864;switch(_0x2d1a95){case d[_0x52d413(0xf1)][_0x52d413(0xa1)]:this['_handleNewHost'](_0x5e0864);break;case d['CollaborationEvent'][_0x52d413(0xe7)]:this[_0x52d413(0xe6)](_0x5e0864);break;case d['CollaborationEvent'][_0x52d413(0xd8)]:this[_0x52d413(0xa5)]();break;case d['CollaborationEvent']['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x5e0864);break;}}));}['tryStartPresenting'](){const _0x47e2f1=_0x146de2;this[_0x47e2f1(0x85)]['send']({'eventID':d[_0x47e2f1(0xf1)][_0x47e2f1(0x105)],'data':{'unitID':this[_0x47e2f1(0xe5)],'userID':this['_collabSession'][_0x47e2f1(0xca)]()}},this[_0x47e2f1(0xe5)]);}[_0x146de2(0x97)](){const _0x1ec38e=_0x146de2;this[_0x1ec38e(0xc1)]===_0x1ec38e(0xe1)&&(this['_status$'][_0x1ec38e(0xba)](_0x1ec38e(0x10a)),this['_collabSession'][_0x1ec38e(0x94)]({'eventID':d[_0x1ec38e(0xf1)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1ec38e(0xe5)]}},this['_unitID']));}[_0x146de2(0x71)](){const _0x758bcf=_0x146de2;this[_0x758bcf(0xc1)]==='not-following'&&(this['_status$'][_0x758bcf(0xba)](_0x758bcf(0x135)),this['_startFollowing']());}['stopFollowing'](){const _0x44bd2c=_0x146de2;this[_0x44bd2c(0xc1)]===_0x44bd2c(0x135)&&this['_stopFollowing']();}[_0x146de2(0x120)](_0xce91d0){const _0xb4f4c=_0x146de2,{presenter:_0x213d4c}=_0xce91d0[_0xb4f4c(0xd5)],_0xd8c79=this['_collabSession'][_0xb4f4c(0xca)]();this[_0xb4f4c(0x88)]=_0x213d4c,_0x213d4c===_0xd8c79?(this[_0xb4f4c(0x83)](),this['_startPresenting']()):this[_0xb4f4c(0xc1)]!==_0xb4f4c(0xee)&&(this[_0xb4f4c(0xa6)](),this['_startFollowing']());}[_0x146de2(0xce)](){const _0xa47f58=_0x146de2,_0x12cd2a={'eventID':d[_0xa47f58(0xf1)][_0xa47f58(0x78)]};this[_0xa47f58(0x85)][_0xa47f58(0x94)](_0x12cd2a,this[_0xa47f58(0xe5)]);}[_0x146de2(0xa5)](){const _0x27cb39=_0x146de2;this[_0x27cb39(0x88)]=null,this['_status']!==_0x27cb39(0xe1)&&this[_0x27cb39(0x99)]();}[_0x146de2(0xe9)](_0x5514dd){const _0x3540c4=_0x146de2;if(this[_0x3540c4(0xc1)]===_0x3540c4(0x135)&&this[_0x3540c4(0x88)]===_0x5514dd[_0x3540c4(0xd5)][_0x3540c4(0xeb)]){const _0x51ebfa=d[_0x3540c4(0x74)](_0x5514dd[_0x3540c4(0xd5)])[_0x3540c4(0x8f)][_0x3540c4(0x7e)]()['find'](_0x2a622b=>_0x2a622b['id']===C[_0x3540c4(0x13d)]['id']);if(_0x51ebfa){const _0x512690=_0x51ebfa[_0x3540c4(0x100)][_0x3540c4(0x128)],_0x4ded6d=_0x51ebfa[_0x3540c4(0x100)][_0x3540c4(0x86)]['id'];setTimeout(()=>{const _0x4f162c=_0x3540c4;this[_0x4f162c(0x12c)][_0x4f162c(0xfd)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x512690,'subUnitId':_0x4ded6d},{'fromCollab':!0x0});});}}}[_0x146de2(0xc0)](){const _0x18232c=_0x146de2;this[_0x18232c(0xcb)]['next']('presenting');const _0x45e1a4=new Map(),_0x407a7e=this[_0x18232c(0x77)]=new o[(_0x18232c(0xbe))]();_0x407a7e['add'](o['toDisposable'](()=>{const _0x3e8369=_0x18232c;_0x45e1a4[_0x3e8369(0xab)](_0xcdca93=>_0xcdca93[_0x3e8369(0x139)]()),_0x45e1a4['clear']();})),_0x407a7e[_0x18232c(0xd9)](this[_0x18232c(0x12c)][_0x18232c(0xdd)](_0x3949eb=>{const _0x3cb5f5=_0x18232c;var _0x547d7e;if(_0x3949eb[_0x3cb5f5(0x118)]!==o['CommandType']['OPERATION']||!this[_0x3cb5f5(0x103)][_0x3cb5f5(0xb5)](_0x3949eb['id']))return;const {id:_0x59c107}=_0x3949eb;let _0x34c747;_0x45e1a4['has'](_0x59c107)?_0x34c747=_0x45e1a4[_0x3cb5f5(0xf0)](_0x59c107):(_0x34c747=new O[(_0x3cb5f5(0xbd))](),_0x45e1a4[_0x3cb5f5(0x82)](_0x59c107,_0x34c747),_0x34c747['pipe'](I['throttleTime']((_0x547d7e=this['_configService'][_0x3cb5f5(0x130)](k))!=null?_0x547d7e:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3cb5f5(0x84)](_0x341bac=>{const _0x4a40b1=_0x3cb5f5;this[_0x4a40b1(0x85)][_0x4a40b1(0x94)]({'eventID':d['CollaborationEvent'][_0x4a40b1(0xe7)],'data':{'unitID':this[_0x4a40b1(0xe5)],'operations':{[_0x341bac['id']]:{'id':_0x341bac['id'],'params':JSON[_0x4a40b1(0xa9)](_0x341bac[_0x4a40b1(0x100)])}}}},this['_unitID']);})),_0x34c747[_0x3cb5f5(0xba)](_0x3949eb);})),this[_0x18232c(0x103)]['getInitialStates'](this[_0x18232c(0xe5)])[_0x18232c(0xab)](_0x111f8b=>this[_0x18232c(0x85)][_0x18232c(0x94)]({'eventID':d[_0x18232c(0xf1)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x111f8b['id']]:{'id':_0x111f8b['id'],'params':JSON['stringify'](_0x111f8b[_0x18232c(0x100)])}}}},this[_0x18232c(0xe5)]));}['_stopPresenting'](){const _0x32b682=_0x146de2;var _0x5644ab;this[_0x32b682(0xcb)][_0x32b682(0xba)](_0x32b682(0x10a)),(_0x5644ab=this['_commandDisposable'])==null||_0x5644ab[_0x32b682(0xf2)](),this[_0x32b682(0x77)]=null;}[_0x146de2(0x116)](){const _0x453827=_0x146de2;var _0x255b63;(_0x255b63=this['_commandDisposable'])==null||_0x255b63[_0x453827(0xf2)](),this[_0x453827(0xcb)]['next'](_0x453827(0x135));}['_beIdle'](){const _0x4902d6=_0x146de2;var _0x378a39;this[_0x4902d6(0xcb)][_0x4902d6(0xba)]('idle'),(_0x378a39=this['_commandDisposable'])==null||_0x378a39[_0x4902d6(0xf2)](),this[_0x4902d6(0x77)]=null;}[_0x146de2(0x83)](){const _0x146463=_0x146de2;var _0x36da4e;this[_0x146463(0xcb)][_0x146463(0xba)](_0x146463(0xee)),(_0x36da4e=this[_0x146463(0x77)])==null||_0x36da4e[_0x146463(0xf2)]();}[_0x146de2(0xe6)](_0x4fe118){const _0x29f772=_0x146de2;if([_0x29f772(0xe1),'not-following',_0x29f772(0xac)][_0x29f772(0xdf)](this[_0x29f772(0xc1)])||!_0x4fe118[_0x29f772(0xd5)][_0x29f772(0xe4)]||_0x4fe118['data'][_0x29f772(0xe4)]===this[_0x29f772(0x85)]['getMemberID']())return;this[_0x29f772(0xc1)]==='idle'&&this[_0x29f772(0x116)]();const _0x2ff25e=_0x4fe118[_0x29f772(0xd5)][_0x29f772(0xb1)];Object['values'](_0x2ff25e)[_0x29f772(0xab)](_0x9c1c4d=>{const _0x1c35c0=_0x29f772;this[_0x1c35c0(0x12c)][_0x1c35c0(0xfd)](_0x9c1c4d['id'],_0x9c1c4d[_0x1c35c0(0x100)]?JSON[_0x1c35c0(0x9e)](_0x9c1c4d[_0x1c35c0(0x100)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x48ccf9=_0x146de2;var _0x1718d9;this[_0x48ccf9(0xcb)]['next'](_0x48ccf9(0xac)),(_0x1718d9=this['_commandDisposable'])==null||_0x1718d9['dispose']();}[_0x146de2(0x12a)](){const _0x3fb297=_0x146de2;this[_0x3fb297(0xcb)][_0x3fb297(0xba)](_0x3fb297(0x10a)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=P([S(0x2,o['IConfigService']),S(0x3,o[_0x146de2(0xb2)](E)),S(0x4,o[_0x146de2(0x13e)])],exports[_0x146de2(0x6e)]);function $(){const _0x3bda8f=_0x146de2,_0x2f0e65=p[_0x3bda8f(0xf7)](exports['LiveShareController']),_0x4a1a15=p['useDependency'](o[_0x3bda8f(0xd6)]),_0x5a257c=p[_0x3bda8f(0xd7)](()=>_0x4a1a15['getCurrentTypeOfUnit$'](o[_0x3bda8f(0xbf)][_0x3bda8f(0xaf)]),void 0x0,!0x1,[]),[_0x1dd321,_0x1bc584]=v['useState'](null),[_0x18db90,_0x4e04bd]=v[_0x3bda8f(0xd0)](u[_0x3bda8f(0x114)]),_0x4ca4be=v[_0x3bda8f(0x75)](null);return v[_0x3bda8f(0x142)](()=>(_0x5a257c&&_0x2f0e65[_0x3bda8f(0xea)](_0x5a257c[_0x3bda8f(0xec)]())['then'](_0xfdd285=>{const _0xec746c=_0x3bda8f;_0x1bc584(_0xfdd285),_0x4ca4be['current']=_0xfdd285[_0xec746c(0xa0)]['subscribe'](_0x283e26=>{_0x4e04bd(_0x283e26);});}),()=>{const _0x54e46d=_0x3bda8f;var _0x19ef0c;(_0x19ef0c=_0x4ca4be[_0x54e46d(0x106)])==null||_0x19ef0c[_0x54e46d(0xd1)](),_0x4ca4be['current']=null;}),[_0x5a257c,_0x2f0e65]),_0x1dd321?l[_0x3bda8f(0x98)](f['Dropdown'],{'align':'end','disabled':_0x18db90===u[_0x3bda8f(0x9d)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l['jsx'](W,{'status':_0x18db90,'coordinator':_0x1dd321}),'children':l['jsx'](_0x3bda8f(0xf5),{'className':f[_0x3bda8f(0x6f)](_0x3bda8f(0xfc),{'univer-cursor-not-allowed':_0x18db90===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x18db90!==u[_0x3bda8f(0x9d)]}),'type':'button','children':l[_0x3bda8f(0x98)](R,{'className':_0x3bda8f(0x7a)})})}):null;}function W(_0x460dae){const _0xaabf42=_0x146de2,{status:_0x301960,coordinator:_0x5c5714}=_0x460dae;switch(_0x301960){case u[_0xaabf42(0x114)]:return l[_0xaabf42(0x98)](G,{'coordinator':_0x5c5714});case u[_0xaabf42(0x134)]:return l[_0xaabf42(0x98)](B,{'coordinator':_0x5c5714});case u['NOT_FOLLOWING']:return l[_0xaabf42(0x98)](Y,{'coordinator':_0x5c5714});case u[_0xaabf42(0x9d)]:return l[_0xaabf42(0x98)](J,{});case u[_0xaabf42(0x111)]:return l[_0xaabf42(0x98)](Z,{'coordinator':_0x5c5714});default:return null;}}function G(_0x3cf337){const _0x2e0aba=_0x146de2,{coordinator:_0x3d9ec6}=_0x3cf337;return l[_0x2e0aba(0x125)](l[_0x2e0aba(0x132)],{'children':[l[_0x2e0aba(0x98)](_0x2e0aba(0xa4),{'className':_0x2e0aba(0x12f),'children':'Present\x20this\x20document'}),l[_0x2e0aba(0x98)](f[_0x2e0aba(0xf9)],{'onClick':()=>_0x3d9ec6[_0x2e0aba(0xb7)](),'children':_0x2e0aba(0x109)})]});}function B(_0x45ec86){const _0x33980c=_0x146de2,{coordinator:_0x589665}=_0x45ec86;return l[_0x33980c(0x125)](l['Fragment'],{'children':[l[_0x33980c(0x98)]('div',{'className':_0x33980c(0x12f),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](f[_0x33980c(0xf9)],{'onClick':()=>_0x589665['stopFollowing'](),'children':_0x33980c(0xb9)})]});}function Y(_0x4153b4){const _0x492fa3=_0x146de2,{coordinator:_0x71ec41}=_0x4153b4;return l[_0x492fa3(0x125)](l[_0x492fa3(0x132)],{'children':[l[_0x492fa3(0x98)](_0x492fa3(0xa4),{'className':_0x492fa3(0x12f),'children':_0x492fa3(0xc6)}),l['jsx'](f[_0x492fa3(0xf9)],{'variant':'text','onClick':()=>_0x71ec41[_0x492fa3(0x71)](),'children':_0x492fa3(0x13f)})]});}function Z(_0x2061f7){const _0x38486e=_0x146de2,{coordinator:_0x5ebfc3}=_0x2061f7;return l[_0x38486e(0x125)](l[_0x38486e(0x132)],{'children':[l[_0x38486e(0x98)]('div',{'className':_0x38486e(0x12f),'children':_0x38486e(0x133)}),l[_0x38486e(0x98)](f[_0x38486e(0xf9)],{'variant':_0x38486e(0x113),'onClick':()=>_0x5ebfc3[_0x38486e(0x97)](),'children':_0x38486e(0xaa)})]});}function J(){const _0x3f5bff=_0x146de2;return l[_0x3f5bff(0x98)](l[_0x3f5bff(0x132)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x146de2(0xe8)],z=(_0x127cdb,_0x45ffaa,_0x19c527,_0xf723df)=>{for(var _0x5780c5=_0xf723df>0x1?void 0x0:_0xf723df?K(_0x45ffaa,_0x19c527):_0x45ffaa,_0x5baa74=_0x127cdb['length']-0x1,_0x235dc6;_0x5baa74>=0x0;_0x5baa74--)(_0x235dc6=_0x127cdb[_0x5baa74])&&(_0x5780c5=_0x235dc6(_0x5780c5)||_0x5780c5);return _0x5780c5;},L=(_0xf1afd0,_0x36f6de)=>(_0x2c0e1a,_0x11f536)=>_0x36f6de(_0x2c0e1a,_0x11f536,_0xf1afd0);exports['DesktopLiveShareController']=class extends o[_0x146de2(0x12b)]{constructor(_0x91b287,_0x4a54df){const _0x552749=_0x146de2;super(),this[_0x552749(0xd2)]=_0x91b287,this['_uiPartsService']=_0x4a54df,this[_0x552749(0xdc)]();}['_mountLiveShare'](){const _0x381622=_0x146de2;this[_0x381622(0x70)](this[_0x381622(0xf3)][_0x381622(0x10f)](p[_0x381622(0x79)][_0x381622(0x92)],()=>p[_0x381622(0x13c)]($,this[_0x381622(0xd2)])));}},exports[_0x146de2(0xf8)]=z([L(0x0,o[_0x146de2(0xb2)](o[_0x146de2(0x137)])),L(0x1,p[_0x146de2(0xe2)])],exports[_0x146de2(0xf8)]);const Q='live-share.config',w={};var X=Object[_0x146de2(0xe8)],ee=(_0x3512d6,_0x3b1654,_0x8ebb0a,_0x15a270)=>{for(var _0x5bc4e7=_0x15a270>0x1?void 0x0:_0x15a270?X(_0x3b1654,_0x8ebb0a):_0x3b1654,_0xf1d583=_0x3512d6['length']-0x1,_0x37e892;_0xf1d583>=0x0;_0xf1d583--)(_0x37e892=_0x3512d6[_0xf1d583])&&(_0x5bc4e7=_0x37e892(_0x5bc4e7)||_0x5bc4e7);return _0x5bc4e7;},te=(_0x8afd3a,_0x4002c5)=>(_0x12a391,_0x123a25)=>_0x4002c5(_0x12a391,_0x123a25,_0x8afd3a);let m=class extends o[_0x146de2(0x12b)]{constructor(_0x348c07){const _0x4c2bfd=_0x146de2;super(),this[_0x4c2bfd(0x103)]=_0x348c07,this['_init']();}[_0x146de2(0x140)](){const _0x503166=_0x146de2;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x503166(0x7f)]['id']]['forEach'](_0x59a074=>{const _0x18d7dd=_0x503166;this[_0x18d7dd(0x70)](this[_0x18d7dd(0x103)]['registerSharedOperation'](_0x59a074));});}};function _0x5376(){const _0x28c44f=['string','getLiveShareCoordinatorSync','_mountLiveShare','onCommandExecuted','mask','includes','symbol','presenting','IUIPartsService','http://www.w3.org/2000/svg','presenter','_unitID','_handleOperation','LIVESHARE_OPERATION','getOwnPropertyDescriptor','_handleNewChangeSets','getLiveShareCoordinator','memberID','getUnitId','setConfig','not-following','_startLiveShareCoordinator','get','CollaborationEvent','dispose','_uiPartsService','getValue','button','asObservable','useDependency','DesktopLiveShareController','Button','UniverLiveSharePlugin','createInstance','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','executeCommand','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','registerSharedOperation','params','takeUntil','replace','_liveShareService','Module','LIVESHARE_REQUEST_HOST','current','registerDependencies','merge','Start','idle','UNIVER_UNKNOWN','UNIVER_LIVE_SHARE_PLUGIN','3481080OxVIKV','4WvXHnr','registerComponent','live-share-icon','PRESENTING','attrs','default','IDLE','UniverCollaborationClientPlugin','_startFollowing','map','type','IConfigService','defs','has','SAME_OPERATION_SHARE_INTERVAL','idSuffix','1063690DSeeJo','_entities','_handleNewHost','3blLIDq','toDisposable','LiveShareIcon','onStarting','jsxs','length','12107744lhwAhf','unitId','touchDependencies','_handleOnline','Disposable','_commandService','_config','UniverIcon','univer-mb-3\x20univer-w-full\x20univer-text-sm','getConfig','BehaviorSubject','Fragment','You\x27re\x20presenting\x20the\x20document','FOLLOWING','following','pipe','Injector','getInitialStates','complete','displayName','delete','connectInjector','InsertSheetMutation','ICommandService','Start\x20following','_init','init','useEffect','4728576jKvxOv','LiveShareCoordinator','clsx','disposeWithMe','startFollowing','event$','56YIxIsS','parseProtocolChangeset','useRef','defineProperty','_commandDisposable','LIVESHARE_FETCH_OPERATIONS','BuiltInUIPart','univer-size-4','requireSession','_collabSessionService','trim','reverse','SetWorksheetActiveOperation','assign','from','set','_stopFollowing','subscribe','_collabSession','sheet','evenodd','_presenter','onRendered','createElement','xlink:href','override','14527010Ssiree','toString','mutations','entries','path','HEADER_MENU','mergeOverrideWithDependencies','send','DependentOn','getTypeOfUnitAdded$','stopPresenting','jsx','_beIdle','tag','RxDisposable','_univerInstanceService','OFFLINE','parse','_reporters','status$','LIVESHARE_NEW_HOST','svg','LiveShareStatus','div','_handleTerminate','_stopPresenting','1em','dispose$','stringify','Stop\x20presenting','forEach','offline','getTypeOfUnitDisposed$','colorChannel1','UNIVER_SHEET','currentColor','operations','Inject','forwardRef','defIds','shouldShareOperation','registerInitialStateReporter','tryStartPresenting','getStatus','Stop\x20following','next','LiveShareController','_configService','Subject','DisposableCollection','UniverInstanceType','_startPresenting','_status','_sharedOperations','none','_handleOffline','sessionStatus$','You\x27re\x20not\x20following\x20the\x20presenter','univerjs-icon\x20univerjs-icon-','fill','children','getMemberID','_status$','SessionStatus','1370934ToPsLk','_fetchOperations','9PGNzOH','useState','unsubscribe','_injector','toStringTag','36126MnJYzn','data','IUniverInstanceService','useObservable','LIVESHARE_TERMINATE','add'];_0x5376=function(){return _0x28c44f;};return _0x5376();}m=ee([te(0x0,o[_0x146de2(0xb2)](E))],m);var ie=Object[_0x146de2(0x76)],se=Object[_0x146de2(0xe8)],ne=(_0x317205,_0x535483,_0x1b93c9)=>_0x535483 in _0x317205?ie(_0x317205,_0x535483,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b93c9}):_0x317205[_0x535483]=_0x1b93c9,re=(_0x39be84,_0x410db4,_0x4c4e74,_0x4f96d5)=>{for(var _0x17383c=_0x4f96d5>0x1?void 0x0:_0x4f96d5?se(_0x410db4,_0x4c4e74):_0x410db4,_0x31e2e4=_0x39be84['length']-0x1,_0x5e63cf;_0x31e2e4>=0x0;_0x31e2e4--)(_0x5e63cf=_0x39be84[_0x31e2e4])&&(_0x17383c=_0x5e63cf(_0x17383c)||_0x17383c);return _0x17383c;},N=(_0x3e86ad,_0x4e4683)=>(_0x31bf60,_0x835dd4)=>_0x4e4683(_0x31bf60,_0x835dd4,_0x3e86ad),A=(_0x25f980,_0x14bf26,_0x514f04)=>ne(_0x25f980,typeof _0x14bf26!=_0x146de2(0xe0)?_0x14bf26+'':_0x14bf26,_0x514f04);const oe=_0x146de2(0x10c);exports[_0x146de2(0xfa)]=class extends o['Plugin']{constructor(_0x3c3f12=w,_0x52e1ce,_0x2c8805){const _0x102121=_0x146de2;super(),this[_0x102121(0x12d)]=_0x3c3f12,this[_0x102121(0xd2)]=_0x52e1ce,this[_0x102121(0xbc)]=_0x2c8805;const {..._0x5dd218}=o[_0x102121(0x108)]({},w,this[_0x102121(0x12d)]);this[_0x102121(0xbc)][_0x102121(0xed)](Q,_0x5dd218);}[_0x146de2(0x124)](){const _0x36c6bf=_0x146de2;o[_0x36c6bf(0x107)](this[_0x36c6bf(0xd2)],o[_0x36c6bf(0x93)]([[E],[exports['LiveShareController']],[m],[exports[_0x36c6bf(0xf8)]]],this['_config'][_0x36c6bf(0x8c)])),o[_0x36c6bf(0x129)](this[_0x36c6bf(0xd2)],[[m]]);}[_0x146de2(0x89)](){const _0x43bfbb=_0x146de2;o[_0x43bfbb(0x129)](this[_0x43bfbb(0xd2)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x146de2(0xfa)],_0x146de2(0x118),o['UniverInstanceType'][_0x146de2(0x10b)]),A(exports[_0x146de2(0xfa)],'pluginName',oe),exports[_0x146de2(0xfa)]=re([o[_0x146de2(0x95)](b[_0x146de2(0x115)]),N(0x1,o[_0x146de2(0xb2)](o['Injector'])),N(0x2,o[_0x146de2(0x119)])],exports[_0x146de2(0xfa)]),exports['LiveShare']=$,exports['LiveShareService']=E,exports[_0x146de2(0xa3)]=u;
|
|
1
|
+
'use strict';const _0x3b78aa=_0x369a;(function(_0x1071bb,_0x2acc49){const _0x57b875=_0x369a,_0xdbc895=_0x1071bb();while(!![]){try{const _0x2654b2=parseInt(_0x57b875(0x1d5))/0x1+parseInt(_0x57b875(0x277))/0x2+parseInt(_0x57b875(0x1ce))/0x3*(parseInt(_0x57b875(0x1d1))/0x4)+-parseInt(_0x57b875(0x22e))/0x5*(parseInt(_0x57b875(0x23c))/0x6)+parseInt(_0x57b875(0x20d))/0x7+parseInt(_0x57b875(0x213))/0x8*(-parseInt(_0x57b875(0x1cf))/0x9)+-parseInt(_0x57b875(0x1fb))/0xa*(-parseInt(_0x57b875(0x23b))/0xb);if(_0x2654b2===_0x2acc49)break;else _0xdbc895['push'](_0xdbc895['shift']());}catch(_0x416059){_0xdbc895['push'](_0xdbc895['shift']());}}}(_0x30cc,0x1dac4));var T=Object[_0x3b78aa(0x1cb)],U=(_0x312924,_0x143453,_0x1181a5)=>_0x143453 in _0x312924?T(_0x312924,_0x143453,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1181a5}):_0x312924[_0x143453]=_0x1181a5,_=(_0x56daff,_0x181055,_0x343de4)=>U(_0x56daff,typeof _0x181055!=_0x3b78aa(0x27e)?_0x181055+'':_0x181055,_0x343de4);Object[_0x3b78aa(0x1cb)](exports,Symbol[_0x3b78aa(0x25f)],{'value':_0x3b78aa(0x218)});function _0x369a(_0x25ebfd,_0x8ebe1){_0x25ebfd=_0x25ebfd-0x1ad;const _0x30cca5=_0x30cc();let _0x369a51=_0x30cca5[_0x25ebfd];return _0x369a51;}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:_0x3908b2,..._0x3a33ac}){const _0xc0e005=_0x3b78aa,{icon:_0x1e97c7,id:_0x256ace,className:_0x217920,extend:_0x5c12a5,..._0x2fd216}=_0x3a33ac,_0x20ea05=(_0xc0e005(0x212)+_0x256ace+'\x20'+(_0x217920||''))[_0xc0e005(0x1b2)](),_0x1ff1b8=v[_0xc0e005(0x280)]('_'+H());return j(_0x1e97c7,''+_0x256ace,{'defIds':_0x1e97c7[_0xc0e005(0x1f2)],'idSuffix':_0x1ff1b8[_0xc0e005(0x231)]},{'ref':_0x3908b2,'className':_0x20ea05,..._0x2fd216},_0x5c12a5);}function j(_0x55f10b,_0x482011,_0x57e98e,_0x206f21,_0x3b9f73){const _0x383802=_0x3b78aa;return v[_0x383802(0x21d)](_0x55f10b[_0x383802(0x20a)],{'key':_0x482011,...y(_0x55f10b,_0x57e98e,_0x3b9f73),..._0x206f21},(F(_0x55f10b,_0x57e98e)[_0x383802(0x1ea)]||[])[_0x383802(0x274)]((_0x2d8a47,_0x483803)=>j(_0x2d8a47,_0x482011+'-'+_0x55f10b['tag']+'-'+_0x483803,_0x57e98e,void 0x0,_0x3b9f73)));}function y(_0x4b30e3,_0x5c9659,_0x2eab01){const _0x15a1bb=_0x3b78aa,_0x422b67={..._0x4b30e3[_0x15a1bb(0x1d0)]};_0x2eab01!=null&&_0x2eab01[_0x15a1bb(0x1d9)]&&_0x422b67[_0x15a1bb(0x1b6)]==='colorChannel1'&&(_0x422b67[_0x15a1bb(0x1b6)]=_0x2eab01[_0x15a1bb(0x1d9)]),_0x4b30e3[_0x15a1bb(0x20a)]===_0x15a1bb(0x248)&&_0x422b67['id']&&(_0x422b67['id']=_0x422b67['id']+_0x5c9659[_0x15a1bb(0x239)]),Object[_0x15a1bb(0x225)](_0x422b67)[_0x15a1bb(0x268)](([_0x5e5f89,_0x2df038])=>{const _0xea4ec3=_0x15a1bb;_0x5e5f89===_0xea4ec3(0x248)&&typeof _0x2df038==_0xea4ec3(0x250)&&(_0x422b67[_0x5e5f89]=_0x2df038[_0xea4ec3(0x241)](/url\(#(.*)\)/,_0xea4ec3(0x27b)+_0x5c9659[_0xea4ec3(0x239)]+')'));});const {defIds:_0x39ad63}=_0x5c9659;return!_0x39ad63||_0x39ad63[_0x15a1bb(0x25e)]===0x0||(_0x4b30e3['tag']===_0x15a1bb(0x269)&&_0x422b67['xlink:href']&&(_0x422b67['xlink:href']=_0x422b67[_0x15a1bb(0x25c)]+_0x5c9659['idSuffix']),Object[_0x15a1bb(0x225)](_0x422b67)[_0x15a1bb(0x268)](([_0xa5c4cd,_0x191600])=>{const _0x461a13=_0x15a1bb;typeof _0x191600=='string'&&(_0x422b67[_0xa5c4cd]=_0x191600[_0x461a13(0x241)](/url\(#(.*)\)/,_0x461a13(0x27b)+_0x5c9659[_0x461a13(0x239)]+')'));})),_0x422b67;}function F(_0x3e9e43,_0x2876c7){const _0xfd3d0f=_0x3b78aa;var _0x26a014;const {defIds:_0x44375d}=_0x2876c7;return!_0x44375d||_0x44375d[_0xfd3d0f(0x25e)]===0x0?_0x3e9e43:_0x3e9e43['tag']==='defs'&&((_0x26a014=_0x3e9e43['children'])!=null&&_0x26a014[_0xfd3d0f(0x25e)])?{..._0x3e9e43,'children':_0x3e9e43[_0xfd3d0f(0x1ea)][_0xfd3d0f(0x274)](_0x402336=>typeof _0x402336[_0xfd3d0f(0x1d0)]['id']==_0xfd3d0f(0x250)&&_0x44375d&&_0x44375d[_0xfd3d0f(0x20b)](_0x402336[_0xfd3d0f(0x1d0)]['id'])?{..._0x402336,'attrs':{..._0x402336[_0xfd3d0f(0x1d0)],'id':_0x402336[_0xfd3d0f(0x1d0)]['id']+_0x2876c7['idSuffix']}}:_0x402336)}:_0x3e9e43;}function H(){const _0xc4f17a=_0x3b78aa;return Math[_0xc4f17a(0x20c)]()['toString'](0x24)[_0xc4f17a(0x24d)](0x2,0x8);}x['displayName']=_0x3b78aa(0x20e);const V={'tag':_0x3b78aa(0x22f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3b78aa(0x1c5),'viewBox':_0x3b78aa(0x275),'width':'1em','height':_0x3b78aa(0x21a)},'children':[{'tag':_0x3b78aa(0x1e3),'attrs':{'fill':_0x3b78aa(0x1dd),'d':_0x3b78aa(0x1bb)}},{'tag':'path','attrs':{'fill':_0x3b78aa(0x1dd),'d':_0x3b78aa(0x1d4),'fillRule':_0x3b78aa(0x1ee),'clipRule':_0x3b78aa(0x1ee)}}]},R=v[_0x3b78aa(0x1d2)](function(_0x1ef5a0,_0x6d262b){const _0x583b19=_0x3b78aa;return v[_0x583b19(0x21d)](x,Object['assign']({},_0x1ef5a0,{'id':_0x583b19(0x1ca),'ref':_0x6d262b,'icon':V}));});function _0x30cc(){const _0x3cdf90=['16VfzjbP','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','from','HEADER_MENU','dispose$','Module','_mountLiveShare','1em','LiveShare','dispose','createElement','getUnitId','_sharedOperations','reverse','createInstance','stopFollowing','DisposableCollection','Injector','entries','_commandDisposable','pluginName','PRESENTING','_liveShareService','touchDependencies','throttleTime','LiveShareService','following','1181885GniFPX','svg','LiveShareIcon','current','div','_collabSession','getOwnPropertyDescriptor','LiveShareCoordinator','_collabSessionService','presenter','getConfig','idSuffix','useDependency','11qHcbbf','6dZaFOv','live-share.config','Disposable','send','get','replace','text','_startPresenting','LIVESHARE_REQUEST_HOST','UniverLiveSharePlugin','shouldShareOperation','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','mask','NOT_FOLLOWING','asObservable','IConfigService','_presenter','substring','_beIdle','getMemberID','string','end','OPERATION','LIVESHARE_NEW_HOST','status$','LIVESHARE_OPERATION','requireSession','getStatus','has','find','then','data','xlink:href','onStarting','length','toStringTag','params','pipe','sessionStatus$','Button','You\x27re\x20presenting\x20the\x20document','_handleOperation','clear','univer-size-4','forEach','use','ICommandService','SetWorksheetActiveOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','_unitID','_startFollowing','SAME_OPERATION_SHARE_INTERVAL','_reporters','NEW_CHANGESETS','unitId','type','map','0\x200\x2017\x2017','_startLiveShareCoordinator','177856uNXabo','override','You\x27re\x20following\x20the\x20presenter','parse','url(#$1','getTypeOfUnitAdded$','Fragment','symbol','presenting','useRef','You\x27re\x20not\x20following\x20the\x20presenter','_status','tryStartPresenting','jsxs','stringify','unsubscribe','executeCommand','trim','add','_status$','_commandService','fill','_handleNewHost','DependentOn','Plugin','UNIVER_LIVE_SHARE_PLUGIN','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','getLiveShareCoordinatorSync','button','disposeWithMe','init','jsx','Inject','getValue','idle','_configService','none','CollaborationEvent','not-following','UniverInstanceType','_config','live-share-icon','defineProperty','delete','UniverCollaborationClientPlugin','3267YwKOII','689940UIaNbW','attrs','392mLQWhb','forwardRef','IDLE','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','178753raCZOv','_stopPresenting','memberID','values','colorChannel1','_fetchOperations','mergeOverrideWithDependencies','toDisposable','currentColor','UNIVER_SHEET','onCommandExecuted','BuiltInUIPart','takeUntil','getCurrentTypeOfUnit$','path','_stopFollowing','useEffect','LiveShareController','SetZoomRatioOperation','DesktopLiveShareController','RxDisposable','children','CollaborationSessionService','_handleOffline','stopPresenting','evenodd','Stop\x20following','Stop\x20presenting','ONLINE','defIds','OFFLINE','complete','subscribe','merge','_handleTerminate','_injector','_handleOnline','startFollowing','537910SewXVj','_entities','Subject','Start\x20following','_uiPartsService','FOLLOWING','LIVESHARE_TERMINATE','IUniverInstanceService','next','offline','_init','registerComponent','_univerInstanceService','getInitialStates','InsertSheetMutation','tag','includes','random','581301VwZRFn','UniverIcon','getLiveShareCoordinator','event$','registerSharedOperation','univerjs-icon\x20univerjs-icon-'];_0x30cc=function(){return _0x3cdf90;};return _0x30cc();}R['displayName']=_0x3b78aa(0x230);class E extends o['Disposable']{constructor(){const _0x120d9c=_0x3b78aa;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x120d9c(0x270),new Set());}[_0x3b78aa(0x211)](_0x1b8ca9){const _0x227ca1=_0x3b78aa;return this[_0x227ca1(0x21f)][_0x227ca1(0x1b3)](_0x1b8ca9),o[_0x227ca1(0x1dc)](()=>this['_sharedOperations']['delete'](_0x1b8ca9));}['registerInitialStateReporter'](_0x4950fe){const _0x115dea=_0x3b78aa;return this[_0x115dea(0x270)]['add'](_0x4950fe),o[_0x115dea(0x1dc)](()=>this[_0x115dea(0x270)][_0x115dea(0x1cc)](_0x4950fe));}['shouldShareOperation'](_0x599021){const _0xa459e2=_0x3b78aa;return this[_0xa459e2(0x21f)]['has'](_0x599021);}[_0x3b78aa(0x208)](_0x19ea92){const _0x3bed9c=_0x3b78aa;return Array[_0x3bed9c(0x215)](this[_0x3bed9c(0x270)])[_0x3bed9c(0x274)](_0x38a8d5=>_0x38a8d5(_0x19ea92));}}var M=Object[_0x3b78aa(0x234)],P=(_0x50914a,_0x3ff3e0,_0x5cd49f,_0x182d22)=>{const _0x45d64f=_0x3b78aa;for(var _0x8a703e=_0x182d22>0x1?void 0x0:_0x182d22?M(_0x3ff3e0,_0x5cd49f):_0x3ff3e0,_0x48dfc4=_0x50914a[_0x45d64f(0x25e)]-0x1,_0x62b104;_0x48dfc4>=0x0;_0x48dfc4--)(_0x62b104=_0x50914a[_0x48dfc4])&&(_0x8a703e=_0x62b104(_0x8a703e)||_0x8a703e);return _0x8a703e;},S=(_0x586c54,_0x4fd511)=>(_0x33bfce,_0x3f9239)=>_0x4fd511(_0x33bfce,_0x3f9239,_0x586c54);exports[_0x3b78aa(0x1e6)]=class extends o[_0x3b78aa(0x1e9)]{constructor(_0x4855c6,_0x341596,_0xf45243){const _0x2363bc=_0x3b78aa;super(),_(this,_0x2363bc(0x1fc),new Map()),(this[_0x2363bc(0x207)]=_0x4855c6,this[_0x2363bc(0x1f8)]=_0x341596,this[_0x2363bc(0x236)]=_0xf45243,this[_0x2363bc(0x205)]());}async[_0x3b78aa(0x20f)](_0x4b776f){const _0x3b1d70=_0x3b78aa;return this[_0x3b1d70(0x1fc)][_0x3b1d70(0x258)](_0x4b776f)||await this[_0x3b1d70(0x276)](_0x4b776f),this[_0x3b1d70(0x1fc)]['get'](_0x4b776f);}[_0x3b78aa(0x1bc)](_0x3a7022){const _0x3117a0=_0x3b78aa;var _0x1356df;return(_0x1356df=this[_0x3117a0(0x1fc)][_0x3117a0(0x240)](_0x3a7022))!=null?_0x1356df:null;}[_0x3b78aa(0x205)](){const _0x2a9d5f=_0x3b78aa;this['_univerInstanceService'][_0x2a9d5f(0x27c)](o[_0x2a9d5f(0x1c8)][_0x2a9d5f(0x1de)])[_0x2a9d5f(0x261)](I[_0x2a9d5f(0x1e1)](this[_0x2a9d5f(0x217)]))[_0x2a9d5f(0x1f5)](async _0x2c8501=>{const _0x6ea22e=_0x2a9d5f,_0x58e05a=_0x2c8501[_0x6ea22e(0x21e)]();this[_0x6ea22e(0x1fc)][_0x6ea22e(0x258)](_0x58e05a)||this[_0x6ea22e(0x276)](_0x58e05a);}),this[_0x2a9d5f(0x207)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x2a9d5f(0x1de)])[_0x2a9d5f(0x261)](I[_0x2a9d5f(0x1e1)](this[_0x2a9d5f(0x217)]))['subscribe'](_0x4132c9=>{const _0x5c3191=_0x2a9d5f,_0x300ffa=_0x4132c9['getUnitId'](),_0x4c54a3=this[_0x5c3191(0x1fc)][_0x5c3191(0x240)](_0x300ffa);_0x4c54a3==null||_0x4c54a3['dispose']();});}async['_startLiveShareCoordinator'](_0x2029d0){const _0x1cab0b=_0x3b78aa,_0x59d77b=await this['_collabSessionService'][_0x1cab0b(0x256)](_0x2029d0),_0x2daa13=this['_injector'][_0x1cab0b(0x221)](exports['LiveShareCoordinator'],_0x2029d0,_0x59d77b);return _0x2daa13[_0x1cab0b(0x1bf)](),this[_0x1cab0b(0x1fc)]['set'](_0x2029d0,_0x2daa13),_0x2daa13;}},exports[_0x3b78aa(0x1e6)]=P([S(0x0,o[_0x3b78aa(0x202)]),S(0x1,o[_0x3b78aa(0x1c1)](o[_0x3b78aa(0x224)])),S(0x2,o[_0x3b78aa(0x1c1)](b[_0x3b78aa(0x1eb)]))],exports[_0x3b78aa(0x1e6)]);var u=(_0xfb8d9=>(_0xfb8d9[_0x3b78aa(0x1f3)]='offline',_0xfb8d9[_0x3b78aa(0x1d3)]='idle',_0xfb8d9[_0x3b78aa(0x200)]=_0x3b78aa(0x22d),_0xfb8d9[_0x3b78aa(0x249)]=_0x3b78aa(0x1c7),_0xfb8d9['PRESENTING']='presenting',_0xfb8d9))(u||{});const k=_0x3b78aa(0x26f),q=0xc8;exports[_0x3b78aa(0x235)]=class extends o['RxDisposable']{constructor(_0x497184,_0x14533c,_0x3e67e5,_0x487010,_0x1fc194){const _0x4425d6=_0x3b78aa;super(),_(this,'_status$',new O['BehaviorSubject']('idle')),_(this,_0x4425d6(0x254),this['_status$'][_0x4425d6(0x24a)]()),_(this,_0x4425d6(0x205),!0x1),_(this,'_commandDisposable',null),_(this,_0x4425d6(0x24c),null),(this['_unitID']=_0x497184,this['_collabSession']=_0x14533c,this[_0x4425d6(0x1c4)]=_0x3e67e5,this['_liveShareService']=_0x487010,this[_0x4425d6(0x1b5)]=_0x1fc194);}get[_0x3b78aa(0x282)](){const _0xfe3131=_0x3b78aa;return this[_0xfe3131(0x1b4)][_0xfe3131(0x1c2)]();}[_0x3b78aa(0x21c)](){const _0x28a1cd=_0x3b78aa;var _0x3a07ff;(_0x3a07ff=this[_0x28a1cd(0x226)])==null||_0x3a07ff[_0x28a1cd(0x21c)](),this['_status$'][_0x28a1cd(0x203)](_0x28a1cd(0x1c3)),this['_status$']['complete']();}[_0x3b78aa(0x257)](){const _0x3abd22=_0x3b78aa;return this[_0x3abd22(0x282)];}[_0x3b78aa(0x1bf)](){const _0x56916b=_0x3b78aa;this['_init']||(this[_0x56916b(0x205)]=!0x0,this[_0x56916b(0x233)][_0x56916b(0x262)][_0x56916b(0x261)](I[_0x56916b(0x1e1)](this[_0x56916b(0x217)]))['subscribe'](_0x26d9ba=>{const _0x40e1ec=_0x56916b;switch(_0x26d9ba){case b['SessionStatus'][_0x40e1ec(0x1f3)]:this[_0x40e1ec(0x1ec)]();break;case b['SessionStatus'][_0x40e1ec(0x1f1)]:this[_0x40e1ec(0x1f9)]();break;}}),this[_0x56916b(0x233)][_0x56916b(0x210)][_0x56916b(0x261)](I['takeUntil'](this['dispose$']))[_0x56916b(0x1f5)](_0x21cf6b=>{const _0x11d6d3=_0x56916b,{eventID:_0x1f7131}=_0x21cf6b;switch(_0x1f7131){case d[_0x11d6d3(0x1c6)][_0x11d6d3(0x253)]:this[_0x11d6d3(0x1b7)](_0x21cf6b);break;case d[_0x11d6d3(0x1c6)][_0x11d6d3(0x255)]:this['_handleOperation'](_0x21cf6b);break;case d[_0x11d6d3(0x1c6)][_0x11d6d3(0x201)]:this[_0x11d6d3(0x1f7)]();break;case d[_0x11d6d3(0x1c6)][_0x11d6d3(0x271)]:this['_handleNewChangeSets'](_0x21cf6b);break;}}));}['tryStartPresenting'](){const _0x5719f5=_0x3b78aa;this['_collabSession'][_0x5719f5(0x23f)]({'eventID':d[_0x5719f5(0x1c6)][_0x5719f5(0x244)],'data':{'unitID':this[_0x5719f5(0x26d)],'userID':this['_collabSession'][_0x5719f5(0x24f)]()}},this[_0x5719f5(0x26d)]);}[_0x3b78aa(0x1ed)](){const _0x339c62=_0x3b78aa;this[_0x339c62(0x282)]==='presenting'&&(this[_0x339c62(0x1b4)][_0x339c62(0x203)](_0x339c62(0x1c3)),this['_collabSession'][_0x339c62(0x23f)]({'eventID':d[_0x339c62(0x1c6)][_0x339c62(0x201)],'data':{'unitID':this[_0x339c62(0x26d)]}},this[_0x339c62(0x26d)]));}['startFollowing'](){const _0x5d9c01=_0x3b78aa;this['_status']===_0x5d9c01(0x1c7)&&(this[_0x5d9c01(0x1b4)][_0x5d9c01(0x203)](_0x5d9c01(0x22d)),this[_0x5d9c01(0x26e)]());}[_0x3b78aa(0x222)](){const _0x1f5031=_0x3b78aa;this[_0x1f5031(0x282)]===_0x1f5031(0x22d)&&this[_0x1f5031(0x1e4)]();}['_handleNewHost'](_0xa5b21c){const _0x568151=_0x3b78aa,{presenter:_0x28bcfc}=_0xa5b21c[_0x568151(0x25b)],_0x5d5aed=this[_0x568151(0x233)][_0x568151(0x24f)]();this[_0x568151(0x24c)]=_0x28bcfc,_0x28bcfc===_0x5d5aed?(this['_stopFollowing'](),this[_0x568151(0x243)]()):this[_0x568151(0x282)]!==_0x568151(0x1c7)&&(this[_0x568151(0x1d6)](),this[_0x568151(0x26e)]());}[_0x3b78aa(0x1da)](){const _0x3f8a10=_0x3b78aa,_0x2d1a54={'eventID':d[_0x3f8a10(0x1c6)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x3f8a10(0x233)][_0x3f8a10(0x23f)](_0x2d1a54,this[_0x3f8a10(0x26d)]);}['_handleTerminate'](){const _0x433bf7=_0x3b78aa;this[_0x433bf7(0x24c)]=null,this[_0x433bf7(0x282)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x50a264){const _0x51818f=_0x3b78aa;if(this[_0x51818f(0x282)]===_0x51818f(0x22d)&&this[_0x51818f(0x24c)]===_0x50a264[_0x51818f(0x25b)][_0x51818f(0x1d7)]){const _0x5a4e7b=d['parseProtocolChangeset'](_0x50a264[_0x51818f(0x25b)])['mutations'][_0x51818f(0x220)]()[_0x51818f(0x259)](_0x32747b=>_0x32747b['id']===C[_0x51818f(0x209)]['id']);if(_0x5a4e7b){const _0x2d8615=_0x5a4e7b[_0x51818f(0x260)][_0x51818f(0x272)],_0x21ef51=_0x5a4e7b[_0x51818f(0x260)]['sheet']['id'];setTimeout(()=>{const _0x5ba3dc=_0x51818f;this[_0x5ba3dc(0x1b5)][_0x5ba3dc(0x1b1)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x2d8615,'subUnitId':_0x21ef51},{'fromCollab':!0x0});});}}}[_0x3b78aa(0x243)](){const _0x5d20fe=_0x3b78aa;this[_0x5d20fe(0x1b4)][_0x5d20fe(0x203)](_0x5d20fe(0x27f));const _0x33d9f7=new Map(),_0x503c01=this[_0x5d20fe(0x226)]=new o[(_0x5d20fe(0x223))]();_0x503c01[_0x5d20fe(0x1b3)](o['toDisposable'](()=>{const _0x4bde93=_0x5d20fe;_0x33d9f7[_0x4bde93(0x268)](_0x3c482b=>_0x3c482b[_0x4bde93(0x1f4)]()),_0x33d9f7[_0x4bde93(0x266)]();})),_0x503c01[_0x5d20fe(0x1b3)](this['_commandService'][_0x5d20fe(0x1df)](_0x4b2178=>{const _0x54a475=_0x5d20fe;var _0x2fe8b8;if(_0x4b2178[_0x54a475(0x273)]!==o['CommandType'][_0x54a475(0x252)]||!this[_0x54a475(0x229)][_0x54a475(0x246)](_0x4b2178['id']))return;const {id:_0x232cf3}=_0x4b2178;let _0x314c46;_0x33d9f7[_0x54a475(0x258)](_0x232cf3)?_0x314c46=_0x33d9f7[_0x54a475(0x240)](_0x232cf3):(_0x314c46=new O[(_0x54a475(0x1fd))](),_0x33d9f7['set'](_0x232cf3,_0x314c46),_0x314c46[_0x54a475(0x261)](I[_0x54a475(0x22b)]((_0x2fe8b8=this[_0x54a475(0x1c4)][_0x54a475(0x238)](k))!=null?_0x2fe8b8:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x54a475(0x1f5)](_0x46061e=>{const _0x246296=_0x54a475;this[_0x246296(0x233)][_0x246296(0x23f)]({'eventID':d[_0x246296(0x1c6)][_0x246296(0x255)],'data':{'unitID':this['_unitID'],'operations':{[_0x46061e['id']]:{'id':_0x46061e['id'],'params':JSON[_0x246296(0x1af)](_0x46061e[_0x246296(0x260)])}}}},this['_unitID']);})),_0x314c46[_0x54a475(0x203)](_0x4b2178);})),this[_0x5d20fe(0x229)][_0x5d20fe(0x208)](this[_0x5d20fe(0x26d)])[_0x5d20fe(0x268)](_0x446f60=>this[_0x5d20fe(0x233)][_0x5d20fe(0x23f)]({'eventID':d[_0x5d20fe(0x1c6)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5d20fe(0x26d)],'operations':{[_0x446f60['id']]:{'id':_0x446f60['id'],'params':JSON['stringify'](_0x446f60['params'])}}}},this[_0x5d20fe(0x26d)]));}['_stopPresenting'](){const _0x4013da=_0x3b78aa;var _0xc464f9;this[_0x4013da(0x1b4)][_0x4013da(0x203)]('idle'),(_0xc464f9=this[_0x4013da(0x226)])==null||_0xc464f9['dispose'](),this[_0x4013da(0x226)]=null;}[_0x3b78aa(0x26e)](){const _0x13330b=_0x3b78aa;var _0x38e679;(_0x38e679=this[_0x13330b(0x226)])==null||_0x38e679[_0x13330b(0x21c)](),this['_status$']['next'](_0x13330b(0x22d));}[_0x3b78aa(0x24e)](){const _0x43ef3b=_0x3b78aa;var _0x31d9b1;this[_0x43ef3b(0x1b4)]['next'](_0x43ef3b(0x1c3)),(_0x31d9b1=this[_0x43ef3b(0x226)])==null||_0x31d9b1[_0x43ef3b(0x21c)](),this['_commandDisposable']=null;}[_0x3b78aa(0x1e4)](){const _0x232e7c=_0x3b78aa;var _0x2a9771;this['_status$'][_0x232e7c(0x203)](_0x232e7c(0x1c7)),(_0x2a9771=this[_0x232e7c(0x226)])==null||_0x2a9771['dispose']();}[_0x3b78aa(0x265)](_0x5d09e8){const _0x12824c=_0x3b78aa;if(['presenting',_0x12824c(0x1c7),_0x12824c(0x204)][_0x12824c(0x20b)](this[_0x12824c(0x282)])||!_0x5d09e8[_0x12824c(0x25b)][_0x12824c(0x237)]||_0x5d09e8[_0x12824c(0x25b)]['presenter']===this['_collabSession'][_0x12824c(0x24f)]())return;this[_0x12824c(0x282)]===_0x12824c(0x1c3)&&this[_0x12824c(0x26e)]();const _0x282af7=_0x5d09e8[_0x12824c(0x25b)]['operations'];Object[_0x12824c(0x1d8)](_0x282af7)[_0x12824c(0x268)](_0x532e7f=>{const _0x1cde0a=_0x12824c;this['_commandService'][_0x1cde0a(0x1b1)](_0x532e7f['id'],_0x532e7f[_0x1cde0a(0x260)]?JSON[_0x1cde0a(0x27a)](_0x532e7f['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x386010=_0x3b78aa;var _0x5dcced;this[_0x386010(0x1b4)][_0x386010(0x203)]('offline'),(_0x5dcced=this[_0x386010(0x226)])==null||_0x5dcced[_0x386010(0x21c)]();}[_0x3b78aa(0x1f9)](){const _0x2e9a48=_0x3b78aa;this[_0x2e9a48(0x1b4)]['next'](_0x2e9a48(0x1c3)),this[_0x2e9a48(0x1da)]();}},exports[_0x3b78aa(0x235)]=P([S(0x2,o[_0x3b78aa(0x24b)]),S(0x3,o[_0x3b78aa(0x1c1)](E)),S(0x4,o[_0x3b78aa(0x26a)])],exports[_0x3b78aa(0x235)]);function $(){const _0x5ce53f=_0x3b78aa,_0x29a160=p[_0x5ce53f(0x23a)](exports['LiveShareController']),_0x55a0a7=p[_0x5ce53f(0x23a)](o['IUniverInstanceService']),_0x1f9b73=p['useObservable'](()=>_0x55a0a7[_0x5ce53f(0x1e2)](o[_0x5ce53f(0x1c8)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x183adc,_0x56b4d4]=v['useState'](null),[_0xc67f37,_0x322544]=v['useState'](u[_0x5ce53f(0x1d3)]),_0x4bbbaf=v['useRef'](null);return v[_0x5ce53f(0x1e5)](()=>(_0x1f9b73&&_0x29a160[_0x5ce53f(0x20f)](_0x1f9b73[_0x5ce53f(0x21e)]())[_0x5ce53f(0x25a)](_0x58e4ef=>{const _0x1e8aaf=_0x5ce53f;_0x56b4d4(_0x58e4ef),_0x4bbbaf[_0x1e8aaf(0x231)]=_0x58e4ef[_0x1e8aaf(0x254)]['subscribe'](_0x1ec5ca=>{_0x322544(_0x1ec5ca);});}),()=>{const _0x5955f7=_0x5ce53f;var _0x245020;(_0x245020=_0x4bbbaf[_0x5955f7(0x231)])==null||_0x245020[_0x5955f7(0x1b0)](),_0x4bbbaf[_0x5955f7(0x231)]=null;}),[_0x1f9b73,_0x29a160]),_0x183adc?l['jsx'](f['Dropdown'],{'align':_0x5ce53f(0x251),'disabled':_0xc67f37===u[_0x5ce53f(0x1f3)],'className':_0x5ce53f(0x247),'overlay':l[_0x5ce53f(0x1c0)](W,{'status':_0xc67f37,'coordinator':_0x183adc}),'children':l[_0x5ce53f(0x1c0)](_0x5ce53f(0x1bd),{'className':f['clsx'](_0x5ce53f(0x214),{'univer-cursor-not-allowed':_0xc67f37===u[_0x5ce53f(0x1f3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xc67f37!==u[_0x5ce53f(0x1f3)]}),'type':_0x5ce53f(0x1bd),'children':l[_0x5ce53f(0x1c0)](R,{'className':_0x5ce53f(0x267)})})}):null;}function W(_0x20823a){const _0x5e4890=_0x3b78aa,{status:_0x465d10,coordinator:_0x371421}=_0x20823a;switch(_0x465d10){case u['IDLE']:return l[_0x5e4890(0x1c0)](G,{'coordinator':_0x371421});case u['FOLLOWING']:return l[_0x5e4890(0x1c0)](B,{'coordinator':_0x371421});case u[_0x5e4890(0x249)]:return l[_0x5e4890(0x1c0)](Y,{'coordinator':_0x371421});case u['OFFLINE']:return l['jsx'](J,{});case u[_0x5e4890(0x228)]:return l[_0x5e4890(0x1c0)](Z,{'coordinator':_0x371421});default:return null;}}function G(_0xf10491){const _0x23a5d0=_0x3b78aa,{coordinator:_0x54942c}=_0xf10491;return l['jsxs'](l[_0x23a5d0(0x27d)],{'children':[l[_0x23a5d0(0x1c0)]('div',{'className':_0x23a5d0(0x26c),'children':'Present\x20this\x20document'}),l[_0x23a5d0(0x1c0)](f[_0x23a5d0(0x263)],{'onClick':()=>_0x54942c[_0x23a5d0(0x1ad)](),'children':'Start'})]});}function B(_0x36dd90){const _0x440996=_0x3b78aa,{coordinator:_0x1629cb}=_0x36dd90;return l[_0x440996(0x1ae)](l[_0x440996(0x27d)],{'children':[l[_0x440996(0x1c0)](_0x440996(0x232),{'className':_0x440996(0x26c),'children':_0x440996(0x279)}),l[_0x440996(0x1c0)](f['Button'],{'onClick':()=>_0x1629cb[_0x440996(0x222)](),'children':_0x440996(0x1ef)})]});}function Y(_0x4221a8){const _0x3d6689=_0x3b78aa,{coordinator:_0xed3f50}=_0x4221a8;return l[_0x3d6689(0x1ae)](l[_0x3d6689(0x27d)],{'children':[l[_0x3d6689(0x1c0)](_0x3d6689(0x232),{'className':_0x3d6689(0x26c),'children':_0x3d6689(0x281)}),l[_0x3d6689(0x1c0)](f[_0x3d6689(0x263)],{'variant':_0x3d6689(0x242),'onClick':()=>_0xed3f50[_0x3d6689(0x1fa)](),'children':_0x3d6689(0x1fe)})]});}function Z(_0x3caaad){const _0x807fb7=_0x3b78aa,{coordinator:_0x1d6bd3}=_0x3caaad;return l[_0x807fb7(0x1ae)](l[_0x807fb7(0x27d)],{'children':[l['jsx'](_0x807fb7(0x232),{'className':_0x807fb7(0x26c),'children':_0x807fb7(0x264)}),l[_0x807fb7(0x1c0)](f[_0x807fb7(0x263)],{'variant':'default','onClick':()=>_0x1d6bd3[_0x807fb7(0x1ed)](),'children':_0x807fb7(0x1f0)})]});}function J(){const _0x16a206=_0x3b78aa;return l[_0x16a206(0x1c0)](l[_0x16a206(0x27d)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x3b78aa(0x234)],z=(_0x442b80,_0x76c952,_0x3d7eb4,_0x355aae)=>{const _0x4d3e44=_0x3b78aa;for(var _0x39c0db=_0x355aae>0x1?void 0x0:_0x355aae?K(_0x76c952,_0x3d7eb4):_0x76c952,_0x92648a=_0x442b80[_0x4d3e44(0x25e)]-0x1,_0x494394;_0x92648a>=0x0;_0x92648a--)(_0x494394=_0x442b80[_0x92648a])&&(_0x39c0db=_0x494394(_0x39c0db)||_0x39c0db);return _0x39c0db;},L=(_0x3499ea,_0x3c0343)=>(_0x5887a9,_0x2130b2)=>_0x3c0343(_0x5887a9,_0x2130b2,_0x3499ea);exports[_0x3b78aa(0x1e8)]=class extends o[_0x3b78aa(0x23e)]{constructor(_0x407f7b,_0x1ba045){const _0x1b72ee=_0x3b78aa;super(),this[_0x1b72ee(0x1f8)]=_0x407f7b,this[_0x1b72ee(0x1ff)]=_0x1ba045,this[_0x1b72ee(0x219)]();}[_0x3b78aa(0x219)](){const _0x36ac54=_0x3b78aa;this[_0x36ac54(0x1be)](this[_0x36ac54(0x1ff)][_0x36ac54(0x206)](p[_0x36ac54(0x1e0)][_0x36ac54(0x216)],()=>p['connectInjector']($,this[_0x36ac54(0x1f8)])));}},exports[_0x3b78aa(0x1e8)]=z([L(0x0,o['Inject'](o[_0x3b78aa(0x224)])),L(0x1,p['IUIPartsService'])],exports[_0x3b78aa(0x1e8)]);const Q=_0x3b78aa(0x23d),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x4c2f8e,_0x10f40b,_0x21b4ec,_0x43f78c)=>{for(var _0x5f52e6=_0x43f78c>0x1?void 0x0:_0x43f78c?X(_0x10f40b,_0x21b4ec):_0x10f40b,_0x138be6=_0x4c2f8e['length']-0x1,_0x70ce65;_0x138be6>=0x0;_0x138be6--)(_0x70ce65=_0x4c2f8e[_0x138be6])&&(_0x5f52e6=_0x70ce65(_0x5f52e6)||_0x5f52e6);return _0x5f52e6;},te=(_0x404f83,_0x37ae64)=>(_0x48996c,_0x83df73)=>_0x37ae64(_0x48996c,_0x83df73,_0x404f83);let m=class extends o[_0x3b78aa(0x23e)]{constructor(_0x4baae2){const _0x244202=_0x3b78aa;super(),this[_0x244202(0x229)]=_0x4baae2,this[_0x244202(0x205)]();}[_0x3b78aa(0x205)](){const _0x3ac2ae=_0x3b78aa;[D[_0x3ac2ae(0x1e7)]['id'],D['SetScrollOperation']['id'],C[_0x3ac2ae(0x26b)]['id']][_0x3ac2ae(0x268)](_0xde18b0=>{const _0x47e5dc=_0x3ac2ae;this[_0x47e5dc(0x1be)](this[_0x47e5dc(0x229)]['registerSharedOperation'](_0xde18b0));});}};m=ee([te(0x0,o[_0x3b78aa(0x1c1)](E))],m);var ie=Object[_0x3b78aa(0x1cb)],se=Object['getOwnPropertyDescriptor'],ne=(_0x22ba76,_0x52c2e0,_0x57550f)=>_0x52c2e0 in _0x22ba76?ie(_0x22ba76,_0x52c2e0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57550f}):_0x22ba76[_0x52c2e0]=_0x57550f,re=(_0x144664,_0x538654,_0x252765,_0x4da9fd)=>{const _0x1561b9=_0x3b78aa;for(var _0x541452=_0x4da9fd>0x1?void 0x0:_0x4da9fd?se(_0x538654,_0x252765):_0x538654,_0x5ab5d6=_0x144664[_0x1561b9(0x25e)]-0x1,_0x463254;_0x5ab5d6>=0x0;_0x5ab5d6--)(_0x463254=_0x144664[_0x5ab5d6])&&(_0x541452=_0x463254(_0x541452)||_0x541452);return _0x541452;},N=(_0x49ee94,_0x401b04)=>(_0x548c15,_0x5642b1)=>_0x401b04(_0x548c15,_0x5642b1,_0x49ee94),A=(_0x544185,_0x5e458d,_0x1d874b)=>ne(_0x544185,typeof _0x5e458d!='symbol'?_0x5e458d+'':_0x5e458d,_0x1d874b);const oe=_0x3b78aa(0x1ba);exports[_0x3b78aa(0x245)]=class extends o[_0x3b78aa(0x1b9)]{constructor(_0x144750=w,_0x117b9d,_0x3d663f){const _0x49b984=_0x3b78aa;super(),this['_config']=_0x144750,this['_injector']=_0x117b9d,this['_configService']=_0x3d663f;const {..._0x2f8811}=o[_0x49b984(0x1f6)]({},w,this[_0x49b984(0x1c9)]);this['_configService']['setConfig'](Q,_0x2f8811);}[_0x3b78aa(0x25d)](){const _0x4faf5d=_0x3b78aa;o['registerDependencies'](this[_0x4faf5d(0x1f8)],o[_0x4faf5d(0x1db)]([[E],[exports[_0x4faf5d(0x1e6)]],[m],[exports[_0x4faf5d(0x1e8)]]],this[_0x4faf5d(0x1c9)][_0x4faf5d(0x278)])),o[_0x4faf5d(0x22a)](this[_0x4faf5d(0x1f8)],[[m]]);}['onRendered'](){const _0x18e1f4=_0x3b78aa;o['touchDependencies'](this[_0x18e1f4(0x1f8)],[[exports[_0x18e1f4(0x1e8)]]]);}},A(exports[_0x3b78aa(0x245)],'type',o[_0x3b78aa(0x1c8)]['UNIVER_UNKNOWN']),A(exports[_0x3b78aa(0x245)],_0x3b78aa(0x227),oe),exports[_0x3b78aa(0x245)]=re([o[_0x3b78aa(0x1b8)](b[_0x3b78aa(0x1cd)]),N(0x1,o[_0x3b78aa(0x1c1)](o[_0x3b78aa(0x224)])),N(0x2,o[_0x3b78aa(0x24b)])],exports[_0x3b78aa(0x245)]),exports[_0x3b78aa(0x21b)]=$,exports[_0x3b78aa(0x22c)]=E,exports['LiveShareStatus']=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x10dbbf=_0x1182;(function(_0x205c8e,_0x5bff15){const _0x5ade2c=_0x1182,_0x2662c2=_0x205c8e();while(!![]){try{const _0x400cc8=-parseInt(_0x5ade2c(0x10c))/0x1*(parseInt(_0x5ade2c(0x131))/0x2)+-parseInt(_0x5ade2c(0x10d))/0x3*(-parseInt(_0x5ade2c(0x12f))/0x4)+parseInt(_0x5ade2c(0x130))/0x5*(-parseInt(_0x5ade2c(0x124))/0x6)+-parseInt(_0x5ade2c(0x115))/0x7*(parseInt(_0x5ade2c(0x11a))/0x8)+parseInt(_0x5ade2c(0x129))/0x9*(parseInt(_0x5ade2c(0x10b))/0xa)+parseInt(_0x5ade2c(0x125))/0xb+-parseInt(_0x5ade2c(0x126))/0xc*(parseInt(_0x5ade2c(0x123))/0xd);if(_0x400cc8===_0x5bff15)break;else _0x2662c2['push'](_0x2662c2['shift']());}catch(_0x243255){_0x2662c2['push'](_0x2662c2['shift']());}}}(_0x54a9,0x7dad4));import{LiveShareController as _0x172d50,LiveShareStatus as _0x33c8d3}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x34e1bf}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x7a934b}from'@univerjs/sheets';import{SetScrollOperation as _0x4b5d3c}from'@univerjs/sheets-ui';function _0x1182(_0x389ed3,_0x55f1b8){_0x389ed3=_0x389ed3-0x10b;const _0x54a952=_0x54a9();let _0x1182d5=_0x54a952[_0x389ed3];return _0x1182d5;}import{FRange as _0x1276b9}from'@univerjs/sheets/facade';import{FUniver as _0xe199c,FEnum as _0x42b1d5}from'@univerjs/core/facade';class I extends _0x1276b9{[_0x10dbbf(0x118)](_0x185165,_0x1d73ee,_0x46d8fc,_0x4ff64e,_0x44129a){const _0x4d4762=_0x10dbbf,_0x5b2b49=_0x185165[_0x4d4762(0x11f)](_0x172d50),_0x3de9fa=_0x185165['get'](_0x34e1bf),_0x2a6473=_0x1d73ee[_0x4d4762(0x11e)](),_0x4208d7=_0x1d73ee[_0x4d4762(0x113)](),_0xeb9374=_0x5b2b49['getLiveShareCoordinatorSync'](_0x2a6473);(_0xeb9374==null?void 0x0:_0xeb9374[_0x4d4762(0x116)]())!==_0x33c8d3[_0x4d4762(0x12e)]||(_0x46d8fc['getSheetId']()!==_0x4208d7[_0x4d4762(0x121)]()&&this[_0x4d4762(0x10f)][_0x4d4762(0x119)](_0x7a934b['id'],{'unitId':_0x2a6473,'subUnitId':_0x46d8fc['getSheetId']()}),!_0x3de9fa['getRenderById'](_0x2a6473))||_0x44129a[_0x4d4762(0x117)](_0x4b5d3c['id'],{'unitId':_0x1d73ee['getUnitId'](),'sheetId':_0x46d8fc['getSheetId'](),'sheetViewStartRow':_0x4ff64e[_0x4d4762(0x110)],'sheetViewStartColumn':_0x4ff64e[_0x4d4762(0x120)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x1276b9[_0x10dbbf(0x122)](I);class m extends _0xe199c{[_0x10dbbf(0x112)](){const _0x488b47=_0x10dbbf;var _0x3fa1bd,_0x573340;const _0x22bde9=this[_0x488b47(0x12c)][_0x488b47(0x11f)](_0x172d50),_0x372da0=(_0x3fa1bd=this[_0x488b47(0x127)]())==null?void 0x0:_0x3fa1bd['getId']();if(!_0x372da0)throw new Error('No\x20active\x20workbook\x20found.');const _0x1164b1=_0x22bde9[_0x488b47(0x10e)](_0x372da0);return(_0x573340=_0x1164b1==null?void 0x0:_0x1164b1['getStatus']())!=null?_0x573340:_0x33c8d3['IDLE'];}['startFollowing'](){const _0x3eb1d0=_0x10dbbf;var _0x1ebc0d;const _0x310f74=this[_0x3eb1d0(0x12c)][_0x3eb1d0(0x11f)](_0x172d50),_0x59a916=(_0x1ebc0d=this['getActiveWorkbook']())==null?void 0x0:_0x1ebc0d[_0x3eb1d0(0x11c)]();if(!_0x59a916)throw new Error('No\x20active\x20workbook\x20found.');const _0x547ff9=_0x310f74['getLiveShareCoordinatorSync'](_0x59a916);if(!_0x547ff9)throw new Error(_0x3eb1d0(0x12d));_0x547ff9[_0x3eb1d0(0x12b)]();}[_0x10dbbf(0x12a)](){const _0xabaea=_0x10dbbf;var _0x22d50e;const _0x41c06c=this['_injector'][_0xabaea(0x11f)](_0x172d50),_0x179aff=(_0x22d50e=this[_0xabaea(0x127)]())==null?void 0x0:_0x22d50e[_0xabaea(0x11c)]();if(!_0x179aff)throw new Error('No\x20active\x20workbook\x20found.');const _0xeeed39=_0x41c06c['getLiveShareCoordinatorSync'](_0x179aff);if(!_0xeeed39)throw new Error(_0xabaea(0x12d));_0xeeed39[_0xabaea(0x12a)]();}[_0x10dbbf(0x11d)](){const _0x4aeddd=_0x10dbbf;var _0xb687cf;const _0x3f48bb=this[_0x4aeddd(0x12c)][_0x4aeddd(0x11f)](_0x172d50),_0x125df7=(_0xb687cf=this[_0x4aeddd(0x127)]())==null?void 0x0:_0xb687cf[_0x4aeddd(0x11c)]();if(!_0x125df7)throw new Error(_0x4aeddd(0x11b));const _0x29b08a=_0x3f48bb[_0x4aeddd(0x10e)](_0x125df7);if(!_0x29b08a)throw new Error(_0x4aeddd(0x12d));_0x29b08a[_0x4aeddd(0x128)]();}[_0x10dbbf(0x111)](){const _0xb3bd0e=_0x10dbbf;var _0x1e3d90;const _0x2ad1b8=this['_injector'][_0xb3bd0e(0x11f)](_0x172d50),_0x620a8c=(_0x1e3d90=this[_0xb3bd0e(0x127)]())==null?void 0x0:_0x1e3d90[_0xb3bd0e(0x11c)]();if(!_0x620a8c)throw new Error(_0xb3bd0e(0x11b));const _0x273d6e=_0x2ad1b8[_0xb3bd0e(0x10e)](_0x620a8c);if(!_0x273d6e)throw new Error(_0xb3bd0e(0x12d));_0x273d6e[_0xb3bd0e(0x111)]();}}_0xe199c[_0x10dbbf(0x122)](m);class C extends _0x42b1d5{get[_0x10dbbf(0x114)](){return _0x33c8d3;}}function _0x54a9(){const _0x45dcd1=['PRESENTING','32684wKMeUr','5FOiZAF','158kJzSJN','3661600qBFHrS','8238QxJyVL','282yjLUGV','getLiveShareCoordinatorSync','_commandService','startRow','stopPresenting','getLiveShareStatus','getActiveSheet','LiveShareStatusEnum','4760clmZDY','getStatus','syncExecuteCommand','_initialize','executeCommand','10744gCYiHJ','No\x20active\x20workbook\x20found.','getId','startPresenting','getUnitId','get','startColumn','getSheetId','extend','91NoIyUp','904638DzsdcP','11094501WGumSM','478968YNZnbK','getActiveWorkbook','tryStartPresenting','18pZoJWo','stopFollowing','startFollowing','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x54a9=function(){return _0x45dcd1;};return _0x54a9();}_0x42b1d5['extend'](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x94c2f4=_0x21c3;function _0x21c3(_0x446bb3,_0x18f90f){_0x446bb3=_0x446bb3-0x1d0;const _0x519940=_0x5199();let _0x21c38f=_0x519940[_0x446bb3];return _0x21c38f;}(function(_0x4c86f3,_0x134e2f){const _0x38792d=_0x21c3,_0x180f4e=_0x4c86f3();while(!![]){try{const _0x518ddf=-parseInt(_0x38792d(0x222))/0x1+parseInt(_0x38792d(0x247))/0x2+-parseInt(_0x38792d(0x21a))/0x3+-parseInt(_0x38792d(0x252))/0x4*(-parseInt(_0x38792d(0x24e))/0x5)+-parseInt(_0x38792d(0x237))/0x6*(-parseInt(_0x38792d(0x1fa))/0x7)+-parseInt(_0x38792d(0x206))/0x8+parseInt(_0x38792d(0x1f9))/0x9*(parseInt(_0x38792d(0x1d4))/0xa);if(_0x518ddf===_0x134e2f)break;else _0x180f4e['push'](_0x180f4e['shift']());}catch(_0x39cf1a){_0x180f4e['push'](_0x180f4e['shift']());}}}(_0x5199,0xdf6f1));var J=Object[_0x94c2f4(0x250)],K=(_0x37670d,_0x4433f6,_0x29d063)=>_0x4433f6 in _0x37670d?J(_0x37670d,_0x4433f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29d063}):_0x37670d[_0x4433f6]=_0x29d063,u=(_0x548a32,_0x5e598a,_0xf6d060)=>K(_0x548a32,typeof _0x5e598a!=_0x94c2f4(0x279)?_0x5e598a+'':_0x5e598a,_0xf6d060);import{Disposable as _0x237410,toDisposable as _0x479776,IUniverInstanceService as _0x131adf,Inject as _0x39e2ff,Injector as _0x1af462,IConfigService as _0x1163db,ICommandService as _0x3fe997,RxDisposable as _0x3c244d,UniverInstanceType as _0x1edb56,DisposableCollection as _0x56d0d3,CommandType as _0x11ab87,DependentOn as _0x298814,Plugin as _0x1f099d,merge as _0x38fee5,registerDependencies as _0x20cdf0,mergeOverrideWithDependencies as _0x1c6eec,touchDependencies as _0x5e0f2d}from'@univerjs/core';import{useDependency as _0x1a3369,useObservable as _0x43c83b,IUIPartsService as _0x189af9,BuiltInUIPart as _0x54c386,connectInjector as _0x40daf7}from'@univerjs/ui';import{jsx as _0x3b2e8c,jsxs as _0x5a8b02,Fragment as _0x34fda9}from'react/jsx-runtime';import{Dropdown as _0x580ca5,clsx as _0x38bcb7,Button as _0x4bf6a0}from'@univerjs/design';import{useRef as _0x5302de,createElement as _0x4c6606,forwardRef as _0x13d357,useState as _0x24f563,useEffect as _0x1d9b38}from'react';import{CollaborationEvent as _0x117a17,parseProtocolChangeset as _0x1a1c61}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x12178f,SessionStatus as _0x2ec079,UniverCollaborationClientPlugin as _0x4883e2}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x109733,SetWorksheetActiveOperation as _0x45b437}from'@univerjs/sheets';import{BehaviorSubject as _0x5ee00e,Subject as _0x13c737}from'rxjs';import{takeUntil as _0x2cd887,throttleTime as _0x3e7564}from'rxjs/operators';import{SetZoomRatioOperation as _0x33d3cc,SetScrollOperation as _0x1ac8e2}from'@univerjs/sheets-ui';function k({ref:_0xb065e,..._0x3a7358}){const _0x361340=_0x94c2f4,{icon:_0x54010d,id:_0x1cfe5c,className:_0x190099,extend:_0x57bce0,..._0x488160}=_0x3a7358,_0x2d8fc4=(_0x361340(0x24a)+_0x1cfe5c+'\x20'+(_0x190099||''))[_0x361340(0x244)](),_0x37b877=_0x5302de('_'+Oe());return G(_0x54010d,''+_0x1cfe5c,{'defIds':_0x54010d[_0x361340(0x1d3)],'idSuffix':_0x37b877[_0x361340(0x26e)]},{'ref':_0xb065e,'className':_0x2d8fc4,..._0x488160},_0x57bce0);}function G(_0x240805,_0x41f09f,_0x555cdc,_0x1cc80c,_0x1bfed9){const _0x28632a=_0x94c2f4;return _0x4c6606(_0x240805[_0x28632a(0x269)],{'key':_0x41f09f,...be(_0x240805,_0x555cdc,_0x1bfed9),..._0x1cc80c},(Ee(_0x240805,_0x555cdc)[_0x28632a(0x20d)]||[])[_0x28632a(0x270)]((_0x1bddaa,_0x1f5413)=>G(_0x1bddaa,_0x41f09f+'-'+_0x240805['tag']+'-'+_0x1f5413,_0x555cdc,void 0x0,_0x1bfed9)));}function be(_0x320310,_0x2e634b,_0x158a5f){const _0x5cf614=_0x94c2f4,_0x1a26f2={..._0x320310['attrs']};_0x158a5f!=null&&_0x158a5f[_0x5cf614(0x227)]&&_0x1a26f2[_0x5cf614(0x239)]===_0x5cf614(0x227)&&(_0x1a26f2['fill']=_0x158a5f[_0x5cf614(0x227)]),_0x320310[_0x5cf614(0x269)]===_0x5cf614(0x208)&&_0x1a26f2['id']&&(_0x1a26f2['id']=_0x1a26f2['id']+_0x2e634b[_0x5cf614(0x260)]),Object['entries'](_0x1a26f2)[_0x5cf614(0x233)](([_0x55f103,_0x18e607])=>{const _0xe5660b=_0x5cf614;_0x55f103===_0xe5660b(0x208)&&typeof _0x18e607==_0xe5660b(0x1d8)&&(_0x1a26f2[_0x55f103]=_0x18e607[_0xe5660b(0x266)](/url\(#(.*)\)/,'url(#$1'+_0x2e634b['idSuffix']+')'));});const {defIds:_0x6c0053}=_0x2e634b;return!_0x6c0053||_0x6c0053['length']===0x0||(_0x320310[_0x5cf614(0x269)]===_0x5cf614(0x224)&&_0x1a26f2[_0x5cf614(0x238)]&&(_0x1a26f2[_0x5cf614(0x238)]=_0x1a26f2[_0x5cf614(0x238)]+_0x2e634b[_0x5cf614(0x260)]),Object[_0x5cf614(0x229)](_0x1a26f2)[_0x5cf614(0x233)](([_0x38bb32,_0x575f36])=>{const _0x106096=_0x5cf614;typeof _0x575f36==_0x106096(0x1d8)&&(_0x1a26f2[_0x38bb32]=_0x575f36[_0x106096(0x266)](/url\(#(.*)\)/,'url(#$1'+_0x2e634b[_0x106096(0x260)]+')'));})),_0x1a26f2;}function Ee(_0x41659d,_0x1cb916){const _0x2cab9c=_0x94c2f4;var _0x4249a2;const {defIds:_0x4e6d2b}=_0x1cb916;return!_0x4e6d2b||_0x4e6d2b['length']===0x0?_0x41659d:_0x41659d[_0x2cab9c(0x269)]===_0x2cab9c(0x22c)&&((_0x4249a2=_0x41659d[_0x2cab9c(0x20d)])!=null&&_0x4249a2[_0x2cab9c(0x234)])?{..._0x41659d,'children':_0x41659d[_0x2cab9c(0x20d)][_0x2cab9c(0x270)](_0x46dd25=>typeof _0x46dd25['attrs']['id']==_0x2cab9c(0x1d8)&&_0x4e6d2b&&_0x4e6d2b[_0x2cab9c(0x25f)](_0x46dd25[_0x2cab9c(0x20b)]['id'])?{..._0x46dd25,'attrs':{..._0x46dd25[_0x2cab9c(0x20b)],'id':_0x46dd25[_0x2cab9c(0x20b)]['id']+_0x1cb916[_0x2cab9c(0x260)]}}:_0x46dd25)}:_0x41659d;}function Oe(){const _0x4f1be8=_0x94c2f4;return Math[_0x4f1be8(0x255)]()[_0x4f1be8(0x219)](0x24)[_0x4f1be8(0x1e5)](0x2,0x8);}k[_0x94c2f4(0x241)]=_0x94c2f4(0x212);const we={'tag':_0x94c2f4(0x25c),'attrs':{'xmlns':_0x94c2f4(0x263),'fill':_0x94c2f4(0x1d1),'viewBox':_0x94c2f4(0x267),'width':_0x94c2f4(0x277),'height':_0x94c2f4(0x277)},'children':[{'tag':_0x94c2f4(0x25d),'attrs':{'fill':_0x94c2f4(0x258),'d':_0x94c2f4(0x235)}},{'tag':_0x94c2f4(0x25d),'attrs':{'fill':_0x94c2f4(0x258),'d':_0x94c2f4(0x26d),'fillRule':_0x94c2f4(0x236),'clipRule':_0x94c2f4(0x236)}}]},W=_0x13d357(function(_0x3fe056,_0x2cc369){const _0x3f646b=_0x94c2f4;return _0x4c6606(k,Object[_0x3f646b(0x1d5)]({},_0x3fe056,{'id':_0x3f646b(0x1fb),'ref':_0x2cc369,'icon':we}));});W[_0x94c2f4(0x241)]='LiveShareIcon';class L extends _0x237410{constructor(){const _0x5a0ee4=_0x94c2f4;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x5a0ee4(0x27b),new Set());}[_0x94c2f4(0x25a)](_0x1dec7d){const _0x4b7c09=_0x94c2f4;return this[_0x4b7c09(0x1ee)][_0x4b7c09(0x26f)](_0x1dec7d),_0x479776(()=>this[_0x4b7c09(0x1ee)][_0x4b7c09(0x25b)](_0x1dec7d));}[_0x94c2f4(0x25e)](_0xc19384){const _0x1e5cd8=_0x94c2f4;return this['_reporters']['add'](_0xc19384),_0x479776(()=>this['_reporters'][_0x1e5cd8(0x25b)](_0xc19384));}['shouldShareOperation'](_0x356b1e){const _0x3460c6=_0x94c2f4;return this[_0x3460c6(0x1ee)]['has'](_0x356b1e);}[_0x94c2f4(0x231)](_0x5d3542){const _0x4197ef=_0x94c2f4;return Array[_0x4197ef(0x1fe)](this[_0x4197ef(0x27b)])[_0x4197ef(0x270)](_0x3f3ad7=>_0x3f3ad7(_0x5d3542));}}var Ne=Object[_0x94c2f4(0x1e3)],Y=(_0x24e75c,_0x508cc0,_0x3de33b,_0x4de27e)=>{const _0x5a3bd5=_0x94c2f4;for(var _0x4fe054=_0x4de27e>0x1?void 0x0:_0x4de27e?Ne(_0x508cc0,_0x3de33b):_0x508cc0,_0x233d13=_0x24e75c[_0x5a3bd5(0x234)]-0x1,_0x9dc5a5;_0x233d13>=0x0;_0x233d13--)(_0x9dc5a5=_0x24e75c[_0x233d13])&&(_0x4fe054=_0x9dc5a5(_0x4fe054)||_0x4fe054);return _0x4fe054;},_=(_0x5ba021,_0x2dc522)=>(_0x103223,_0x4a42bd)=>_0x2dc522(_0x103223,_0x4a42bd,_0x5ba021);let S=class extends _0x3c244d{constructor(_0x11278b,_0x50b451,_0x33cd12){const _0x58aa65=_0x94c2f4;super(),u(this,_0x58aa65(0x272),new Map()),(this[_0x58aa65(0x245)]=_0x11278b,this['_injector']=_0x50b451,this[_0x58aa65(0x1da)]=_0x33cd12,this[_0x58aa65(0x1d2)]());}async[_0x94c2f4(0x274)](_0x30146d){const _0x6d15e1=_0x94c2f4;return this[_0x6d15e1(0x272)]['has'](_0x30146d)||await this[_0x6d15e1(0x23d)](_0x30146d),this['_entities'][_0x6d15e1(0x205)](_0x30146d);}[_0x94c2f4(0x228)](_0x4c17df){var _0x2e4ab1;return(_0x2e4ab1=this['_entities']['get'](_0x4c17df))!=null?_0x2e4ab1:null;}[_0x94c2f4(0x1d2)](){const _0x435494=_0x94c2f4;this['_univerInstanceService'][_0x435494(0x211)](_0x1edb56[_0x435494(0x275)])[_0x435494(0x246)](_0x2cd887(this[_0x435494(0x1fd)]))[_0x435494(0x202)](async _0xe3d952=>{const _0x288c8e=_0x435494,_0x3a31c9=_0xe3d952['getUnitId']();this['_entities']['has'](_0x3a31c9)||this[_0x288c8e(0x23d)](_0x3a31c9);}),this[_0x435494(0x245)][_0x435494(0x1e1)](_0x1edb56[_0x435494(0x275)])['pipe'](_0x2cd887(this[_0x435494(0x1fd)]))[_0x435494(0x202)](_0x45f7ac=>{const _0x59258f=_0x435494,_0x2aeb58=_0x45f7ac[_0x59258f(0x1f2)](),_0x4bb934=this[_0x59258f(0x272)]['get'](_0x2aeb58);_0x4bb934==null||_0x4bb934[_0x59258f(0x1f3)]();});}async['_startLiveShareCoordinator'](_0x488194){const _0x33a5b0=_0x94c2f4,_0x5d3691=await this['_collabSessionService'][_0x33a5b0(0x1f8)](_0x488194),_0x1de098=this[_0x33a5b0(0x204)][_0x33a5b0(0x1eb)](N,_0x488194,_0x5d3691);return _0x1de098[_0x33a5b0(0x225)](),this[_0x33a5b0(0x272)][_0x33a5b0(0x217)](_0x488194,_0x1de098),_0x1de098;}};S=Y([_(0x0,_0x131adf),_(0x1,_0x39e2ff(_0x1af462)),_(0x2,_0x39e2ff(_0x12178f))],S);var c=(_0x221161=>(_0x221161[_0x94c2f4(0x22a)]=_0x94c2f4(0x207),_0x221161['IDLE']=_0x94c2f4(0x1de),_0x221161['FOLLOWING']=_0x94c2f4(0x24b),_0x221161['NOT_FOLLOWING']='not-following',_0x221161['PRESENTING']=_0x94c2f4(0x209),_0x221161))(c||{});const Ce=_0x94c2f4(0x23b),De=0xc8;let N=class extends _0x3c244d{constructor(_0x3c6de8,_0x1e0d6a,_0x48a41f,_0x4d0548,_0x303acf){const _0x2a724f=_0x94c2f4;super(),u(this,'_status$',new _0x5ee00e(_0x2a724f(0x1de))),u(this,_0x2a724f(0x218),this[_0x2a724f(0x1f1)][_0x2a724f(0x223)]()),u(this,_0x2a724f(0x1d2),!0x1),u(this,_0x2a724f(0x1e7),null),u(this,'_presenter',null),(this['_unitID']=_0x3c6de8,this[_0x2a724f(0x20f)]=_0x1e0d6a,this[_0x2a724f(0x1d0)]=_0x48a41f,this[_0x2a724f(0x226)]=_0x4d0548,this[_0x2a724f(0x1fc)]=_0x303acf);}get[_0x94c2f4(0x21e)](){const _0x10c3e8=_0x94c2f4;return this[_0x10c3e8(0x1f1)][_0x10c3e8(0x278)]();}[_0x94c2f4(0x1f3)](){const _0x5ee6ab=_0x94c2f4;var _0x439748;(_0x439748=this[_0x5ee6ab(0x1e7)])==null||_0x439748[_0x5ee6ab(0x1f3)](),this[_0x5ee6ab(0x1f1)]['next'](_0x5ee6ab(0x1de)),this[_0x5ee6ab(0x1f1)][_0x5ee6ab(0x1f6)]();}[_0x94c2f4(0x230)](){return this['_status'];}['init'](){const _0x14d99f=_0x94c2f4;this[_0x14d99f(0x1d2)]||(this['_init']=!0x0,this[_0x14d99f(0x20f)][_0x14d99f(0x210)][_0x14d99f(0x246)](_0x2cd887(this[_0x14d99f(0x1fd)]))[_0x14d99f(0x202)](_0x41ffd8=>{const _0x5407dd=_0x14d99f;switch(_0x41ffd8){case _0x2ec079[_0x5407dd(0x22a)]:this[_0x5407dd(0x1dd)]();break;case _0x2ec079['ONLINE']:this[_0x5407dd(0x1f0)]();break;}}),this[_0x14d99f(0x20f)]['event$']['pipe'](_0x2cd887(this[_0x14d99f(0x1fd)]))[_0x14d99f(0x202)](_0x511b8f=>{const _0x2fbae5=_0x14d99f,{eventID:_0x43efde}=_0x511b8f;switch(_0x43efde){case _0x117a17['LIVESHARE_NEW_HOST']:this[_0x2fbae5(0x1e0)](_0x511b8f);break;case _0x117a17[_0x2fbae5(0x22b)]:this[_0x2fbae5(0x1db)](_0x511b8f);break;case _0x117a17[_0x2fbae5(0x201)]:this['_handleTerminate']();break;case _0x117a17['NEW_CHANGESETS']:this[_0x2fbae5(0x21d)](_0x511b8f);break;}}));}[_0x94c2f4(0x1ff)](){const _0x3ed1ef=_0x94c2f4;this[_0x3ed1ef(0x20f)][_0x3ed1ef(0x1e6)]({'eventID':_0x117a17['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3ed1ef(0x1d7)],'userID':this[_0x3ed1ef(0x20f)][_0x3ed1ef(0x256)]()}},this[_0x3ed1ef(0x1d7)]);}['stopPresenting'](){const _0x3e21c3=_0x94c2f4;this['_status']==='presenting'&&(this[_0x3e21c3(0x1f1)]['next'](_0x3e21c3(0x1de)),this['_collabSession'][_0x3e21c3(0x1e6)]({'eventID':_0x117a17['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x3e21c3(0x1d7)]));}[_0x94c2f4(0x1ef)](){const _0x1b7ca6=_0x94c2f4;this[_0x1b7ca6(0x21e)]===_0x1b7ca6(0x26b)&&(this[_0x1b7ca6(0x1f1)]['next'](_0x1b7ca6(0x24b)),this[_0x1b7ca6(0x216)]());}[_0x94c2f4(0x220)](){const _0x2ad836=_0x94c2f4;this[_0x2ad836(0x21e)]===_0x2ad836(0x24b)&&this[_0x2ad836(0x214)]();}[_0x94c2f4(0x1e0)](_0x3366e7){const _0x15fd2c=_0x94c2f4,{presenter:_0x3fa34a}=_0x3366e7[_0x15fd2c(0x215)],_0x3d7902=this[_0x15fd2c(0x20f)]['getMemberID']();this[_0x15fd2c(0x22f)]=_0x3fa34a,_0x3fa34a===_0x3d7902?(this[_0x15fd2c(0x214)](),this['_startPresenting']()):this[_0x15fd2c(0x21e)]!=='not-following'&&(this['_stopPresenting'](),this[_0x15fd2c(0x216)]());}[_0x94c2f4(0x21c)](){const _0x39d8a9=_0x94c2f4,_0x92349={'eventID':_0x117a17[_0x39d8a9(0x253)]};this['_collabSession']['send'](_0x92349,this['_unitID']);}[_0x94c2f4(0x254)](){const _0x3fc57f=_0x94c2f4;this[_0x3fc57f(0x22f)]=null,this[_0x3fc57f(0x21e)]!=='presenting'&&this[_0x3fc57f(0x249)]();}[_0x94c2f4(0x21d)](_0x4b135a){const _0x5e05f9=_0x94c2f4;if(this[_0x5e05f9(0x21e)]==='following'&&this[_0x5e05f9(0x22f)]===_0x4b135a[_0x5e05f9(0x215)][_0x5e05f9(0x23c)]){const _0x59abe1=_0x1a1c61(_0x4b135a[_0x5e05f9(0x215)])['mutations']['reverse']()[_0x5e05f9(0x1f4)](_0x2e3f06=>_0x2e3f06['id']===_0x109733['id']);if(_0x59abe1){const _0x3b2243=_0x59abe1[_0x5e05f9(0x26a)][_0x5e05f9(0x22d)],_0xfa0724=_0x59abe1[_0x5e05f9(0x26a)][_0x5e05f9(0x259)]['id'];setTimeout(()=>{const _0x2eaf2e=_0x5e05f9;this[_0x2eaf2e(0x1fc)][_0x2eaf2e(0x273)](_0x45b437['id'],{'unitId':_0x3b2243,'subUnitId':_0xfa0724},{'fromCollab':!0x0});});}}}[_0x94c2f4(0x21b)](){const _0x5c5dbd=_0x94c2f4;this[_0x5c5dbd(0x1f1)][_0x5c5dbd(0x1f7)]('presenting');const _0x3eb12d=new Map(),_0x54656=this[_0x5c5dbd(0x1e7)]=new _0x56d0d3();_0x54656[_0x5c5dbd(0x26f)](_0x479776(()=>{const _0xd23b2d=_0x5c5dbd;_0x3eb12d['forEach'](_0x4b4532=>_0x4b4532[_0xd23b2d(0x1f6)]()),_0x3eb12d[_0xd23b2d(0x264)]();})),_0x54656['add'](this[_0x5c5dbd(0x1fc)][_0x5c5dbd(0x257)](_0x516c6c=>{const _0x12b720=_0x5c5dbd;var _0x160f74;if(_0x516c6c[_0x12b720(0x23f)]!==_0x11ab87[_0x12b720(0x22e)]||!this['_liveShareService'][_0x12b720(0x1ea)](_0x516c6c['id']))return;const {id:_0x2e50cc}=_0x516c6c;let _0x42f196;_0x3eb12d[_0x12b720(0x242)](_0x2e50cc)?_0x42f196=_0x3eb12d[_0x12b720(0x205)](_0x2e50cc):(_0x42f196=new _0x13c737(),_0x3eb12d[_0x12b720(0x217)](_0x2e50cc,_0x42f196),_0x42f196[_0x12b720(0x246)](_0x3e7564((_0x160f74=this[_0x12b720(0x1d0)]['getConfig'](Ce))!=null?_0x160f74:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x12b720(0x202)](_0x22c8db=>{const _0x4d1d81=_0x12b720;this[_0x4d1d81(0x20f)][_0x4d1d81(0x1e6)]({'eventID':_0x117a17['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x22c8db['id']]:{'id':_0x22c8db['id'],'params':JSON[_0x4d1d81(0x251)](_0x22c8db[_0x4d1d81(0x26a)])}}}},this[_0x4d1d81(0x1d7)]);})),_0x42f196[_0x12b720(0x1f7)](_0x516c6c);})),this[_0x5c5dbd(0x226)][_0x5c5dbd(0x231)](this[_0x5c5dbd(0x1d7)])[_0x5c5dbd(0x233)](_0x21d879=>this['_collabSession'][_0x5c5dbd(0x1e6)]({'eventID':_0x117a17[_0x5c5dbd(0x22b)],'data':{'unitID':this[_0x5c5dbd(0x1d7)],'operations':{[_0x21d879['id']]:{'id':_0x21d879['id'],'params':JSON[_0x5c5dbd(0x251)](_0x21d879[_0x5c5dbd(0x26a)])}}}},this[_0x5c5dbd(0x1d7)]));}['_stopPresenting'](){const _0x2a0dcb=_0x94c2f4;var _0x2c3d1a;this[_0x2a0dcb(0x1f1)][_0x2a0dcb(0x1f7)](_0x2a0dcb(0x1de)),(_0x2c3d1a=this['_commandDisposable'])==null||_0x2c3d1a[_0x2a0dcb(0x1f3)](),this[_0x2a0dcb(0x1e7)]=null;}['_startFollowing'](){const _0x130462=_0x94c2f4;var _0x54879a;(_0x54879a=this['_commandDisposable'])==null||_0x54879a['dispose'](),this['_status$'][_0x130462(0x1f7)](_0x130462(0x24b));}[_0x94c2f4(0x249)](){const _0x5e30bf=_0x94c2f4;var _0x21248e;this['_status$'][_0x5e30bf(0x1f7)](_0x5e30bf(0x1de)),(_0x21248e=this[_0x5e30bf(0x1e7)])==null||_0x21248e[_0x5e30bf(0x1f3)](),this['_commandDisposable']=null;}[_0x94c2f4(0x214)](){const _0x5a4a24=_0x94c2f4;var _0x134633;this['_status$'][_0x5a4a24(0x1f7)](_0x5a4a24(0x26b)),(_0x134633=this[_0x5a4a24(0x1e7)])==null||_0x134633['dispose']();}[_0x94c2f4(0x1db)](_0x2358d9){const _0x4d8d5d=_0x94c2f4;if(['presenting',_0x4d8d5d(0x26b),_0x4d8d5d(0x207)]['includes'](this[_0x4d8d5d(0x21e)])||!_0x2358d9[_0x4d8d5d(0x215)]['presenter']||_0x2358d9[_0x4d8d5d(0x215)]['presenter']===this[_0x4d8d5d(0x20f)]['getMemberID']())return;this[_0x4d8d5d(0x21e)]===_0x4d8d5d(0x1de)&&this[_0x4d8d5d(0x216)]();const _0x53124e=_0x2358d9[_0x4d8d5d(0x215)][_0x4d8d5d(0x1e9)];Object[_0x4d8d5d(0x1d6)](_0x53124e)['forEach'](_0x39f73c=>{const _0x55a1dc=_0x4d8d5d;this[_0x55a1dc(0x1fc)][_0x55a1dc(0x273)](_0x39f73c['id'],_0x39f73c[_0x55a1dc(0x26a)]?JSON[_0x55a1dc(0x20c)](_0x39f73c['params']):null,{'fromCollab':!0x0});});}[_0x94c2f4(0x1dd)](){const _0x4e765c=_0x94c2f4;var _0x304165;this[_0x4e765c(0x1f1)][_0x4e765c(0x1f7)](_0x4e765c(0x207)),(_0x304165=this['_commandDisposable'])==null||_0x304165[_0x4e765c(0x1f3)]();}[_0x94c2f4(0x1f0)](){const _0x14dc6a=_0x94c2f4;this['_status$']['next'](_0x14dc6a(0x1de)),this['_fetchOperations']();}};N=Y([_(0x2,_0x1163db),_(0x3,_0x39e2ff(L)),_(0x4,_0x3fe997)],N);function _0x5199(){const _0x1a36fe=['_startPresenting','_fetchOperations','_handleNewChangeSets','_status','then','stopFollowing','live-share.config','919047HgGWSl','asObservable','use','init','_liveShareService','colorChannel1','getLiveShareCoordinatorSync','entries','OFFLINE','LIVESHARE_OPERATION','defs','unitId','OPERATION','_presenter','getStatus','getInitialStates','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','forEach','length','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','evenodd','636PCVUKY','xlink:href','fill','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SAME_OPERATION_SHARE_INTERVAL','memberID','_startLiveShareCoordinator','Stop\x20following','type','UNIVER_UNKNOWN','displayName','has','_mountLiveShare','trim','_univerInstanceService','pipe','709408UIgFwJ','NOT_FOLLOWING','_beIdle','univerjs-icon\x20univerjs-icon-','following','unsubscribe','PRESENTING','200yEcOGr','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','stringify','25888YOuzwn','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','random','getMemberID','onCommandExecuted','currentColor','sheet','registerSharedOperation','delete','svg','path','registerInitialStateReporter','includes','idSuffix','Present\x20this\x20document','onStarting','http://www.w3.org/2000/svg','clear','IDLE','replace','0\x200\x2017\x2017','You\x27re\x20not\x20following\x20the\x20presenter','tag','params','not-following','end','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','current','add','map','HEADER_MENU','_entities','executeCommand','getLiveShareCoordinator','UNIVER_SHEET','setConfig','1em','getValue','symbol','UNIVER_LIVE_SHARE_PLUGIN','_reporters','getCurrentTypeOfUnit$','_configService','none','_init','defIds','8190LUoSJV','assign','values','_unitID','string','pluginName','_collabSessionService','_handleOperation','_config','_handleOffline','idle','div','_handleNewHost','getTypeOfUnitDisposed$','Start','getOwnPropertyDescriptor','You\x27re\x20following\x20the\x20presenter','substring','send','_commandDisposable','_uiPartsService','operations','shouldShareOperation','createInstance','button','onRendered','_sharedOperations','startFollowing','_handleOnline','_status$','getUnitId','dispose','find','Start\x20following','complete','next','requireSession','11079GKKPzB','53473HiYgsm','live-share-icon','_commandService','dispose$','from','tryStartPresenting','override','LIVESHARE_TERMINATE','subscribe','univer-size-4','_injector','get','4224688NAsBSz','offline','mask','presenting','disposeWithMe','attrs','parse','children','registerComponent','_collabSession','sessionStatus$','getTypeOfUnitAdded$','UniverIcon','FOLLOWING','_stopFollowing','data','_startFollowing','set','status$','toString','207567JEysXj'];_0x5199=function(){return _0x1a36fe;};return _0x5199();}function Le(){const _0x351e49=_0x94c2f4,_0x36c017=_0x1a3369(S),_0x12c744=_0x1a3369(_0x131adf),_0x5280d1=_0x43c83b(()=>_0x12c744[_0x351e49(0x27c)](_0x1edb56[_0x351e49(0x275)]),void 0x0,!0x1,[]),[_0x45eb19,_0xb80a]=_0x24f563(null),[_0x47808b,_0x235c0a]=_0x24f563(c[_0x351e49(0x265)]),_0x5714da=_0x5302de(null);return _0x1d9b38(()=>(_0x5280d1&&_0x36c017[_0x351e49(0x274)](_0x5280d1['getUnitId']())[_0x351e49(0x21f)](_0x338243=>{const _0x133b34=_0x351e49;_0xb80a(_0x338243),_0x5714da[_0x133b34(0x26e)]=_0x338243['status$'][_0x133b34(0x202)](_0x4152a6=>{_0x235c0a(_0x4152a6);});}),()=>{const _0x1e5e92=_0x351e49;var _0x317318;(_0x317318=_0x5714da[_0x1e5e92(0x26e)])==null||_0x317318[_0x1e5e92(0x24c)](),_0x5714da[_0x1e5e92(0x26e)]=null;}),[_0x5280d1,_0x36c017]),_0x45eb19?_0x3b2e8c(_0x580ca5,{'align':_0x351e49(0x26c),'disabled':_0x47808b===c[_0x351e49(0x22a)],'className':_0x351e49(0x232),'overlay':_0x3b2e8c(Re,{'status':_0x47808b,'coordinator':_0x45eb19}),'children':_0x3b2e8c(_0x351e49(0x1ec),{'className':_0x38bcb7(_0x351e49(0x23a),{'univer-cursor-not-allowed':_0x47808b===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47808b!==c[_0x351e49(0x22a)]}),'type':_0x351e49(0x1ec),'children':_0x3b2e8c(W,{'className':_0x351e49(0x203)})})}):null;}function Re(_0x9e5441){const _0xee2a99=_0x94c2f4,{status:_0x2032fd,coordinator:_0x2a92e9}=_0x9e5441;switch(_0x2032fd){case c[_0xee2a99(0x265)]:return _0x3b2e8c($e,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x213)]:return _0x3b2e8c(xe,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x248)]:return _0x3b2e8c(Pe,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x22a)]:return _0x3b2e8c(Te,{});case c[_0xee2a99(0x24d)]:return _0x3b2e8c(Ae,{'coordinator':_0x2a92e9});default:return null;}}function $e(_0x36800c){const _0x58d5c6=_0x94c2f4,{coordinator:_0x86e0a8}=_0x36800c;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c('div',{'className':_0x58d5c6(0x24f),'children':_0x58d5c6(0x261)}),_0x3b2e8c(_0x4bf6a0,{'onClick':()=>_0x86e0a8[_0x58d5c6(0x1ff)](),'children':_0x58d5c6(0x1e2)})]});}function xe(_0x41074d){const _0x3878ce=_0x94c2f4,{coordinator:_0x519a31}=_0x41074d;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x3878ce(0x1df),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3878ce(0x1e4)}),_0x3b2e8c(_0x4bf6a0,{'onClick':()=>_0x519a31[_0x3878ce(0x220)](),'children':_0x3878ce(0x23e)})]});}function Pe(_0x4209f1){const _0x48fc4a=_0x94c2f4,{coordinator:_0x21a2b7}=_0x4209f1;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x48fc4a(0x1df),{'className':_0x48fc4a(0x24f),'children':_0x48fc4a(0x268)}),_0x3b2e8c(_0x4bf6a0,{'variant':'text','onClick':()=>_0x21a2b7[_0x48fc4a(0x1ef)](),'children':_0x48fc4a(0x1f5)})]});}function Ae(_0x50433d){const _0x13d664=_0x94c2f4,{coordinator:_0x2de63b}=_0x50433d;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x13d664(0x1df),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x3b2e8c(_0x4bf6a0,{'variant':'default','onClick':()=>_0x2de63b['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){return _0x3b2e8c(_0x34fda9,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x94c2f4(0x1e3)],He=(_0x4ee589,_0x41e877,_0x5d2bc7,_0x1ec7e2)=>{for(var _0xf6315a=_0x1ec7e2>0x1?void 0x0:_0x1ec7e2?Fe(_0x41e877,_0x5d2bc7):_0x41e877,_0x357fa3=_0x4ee589['length']-0x1,_0x50ca30;_0x357fa3>=0x0;_0x357fa3--)(_0x50ca30=_0x4ee589[_0x357fa3])&&(_0xf6315a=_0x50ca30(_0xf6315a)||_0xf6315a);return _0xf6315a;},A=(_0x54abe0,_0x111759)=>(_0x10a906,_0xfe785d)=>_0x111759(_0x10a906,_0xfe785d,_0x54abe0);let m=class extends _0x237410{constructor(_0x35f642,_0x326940){const _0x433d42=_0x94c2f4;super(),this[_0x433d42(0x204)]=_0x35f642,this['_uiPartsService']=_0x326940,this['_mountLiveShare']();}[_0x94c2f4(0x243)](){const _0x46b4b5=_0x94c2f4;this[_0x46b4b5(0x20a)](this[_0x46b4b5(0x1e8)][_0x46b4b5(0x20e)](_0x54c386[_0x46b4b5(0x271)],()=>_0x40daf7(Le,this[_0x46b4b5(0x204)])));}};m=He([A(0x0,_0x39e2ff(_0x1af462)),A(0x1,_0x189af9)],m);const ye=_0x94c2f4(0x221),T={};var Ue=Object[_0x94c2f4(0x1e3)],Ve=(_0x4b6f53,_0x3ef43d,_0x15c32b,_0x590121)=>{for(var _0x173e04=_0x590121>0x1?void 0x0:_0x590121?Ue(_0x3ef43d,_0x15c32b):_0x3ef43d,_0x300e9=_0x4b6f53['length']-0x1,_0x20d0df;_0x300e9>=0x0;_0x300e9--)(_0x20d0df=_0x4b6f53[_0x300e9])&&(_0x173e04=_0x20d0df(_0x173e04)||_0x173e04);return _0x173e04;},je=(_0x1dce1c,_0x18628f)=>(_0x4bf7ce,_0x54c527)=>_0x18628f(_0x4bf7ce,_0x54c527,_0x1dce1c);let I=class extends _0x237410{constructor(_0x48fd1b){const _0x517999=_0x94c2f4;super(),this[_0x517999(0x226)]=_0x48fd1b,this['_init']();}['_init'](){const _0x1d05b8=_0x94c2f4;[_0x33d3cc['id'],_0x1ac8e2['id'],_0x45b437['id']][_0x1d05b8(0x233)](_0x2aa60b=>{const _0x3851a6=_0x1d05b8;this[_0x3851a6(0x20a)](this[_0x3851a6(0x226)][_0x3851a6(0x25a)](_0x2aa60b));});}};I=Ve([je(0x0,_0x39e2ff(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x25b41c,_0xc9ab13,_0x373b7a)=>_0xc9ab13 in _0x25b41c?Me(_0x25b41c,_0xc9ab13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x373b7a}):_0x25b41c[_0xc9ab13]=_0x373b7a,We=(_0x448b4b,_0x18ed3d,_0x381973,_0x421da2)=>{const _0x4317f8=_0x94c2f4;for(var _0x39ec83=_0x421da2>0x1?void 0x0:_0x421da2?ke(_0x18ed3d,_0x381973):_0x18ed3d,_0xefb135=_0x448b4b[_0x4317f8(0x234)]-0x1,_0x27f4d5;_0xefb135>=0x0;_0xefb135--)(_0x27f4d5=_0x448b4b[_0xefb135])&&(_0x39ec83=_0x27f4d5(_0x39ec83)||_0x39ec83);return _0x39ec83;},F=(_0x25f3bc,_0x4a93e5)=>(_0x311f14,_0x1147ea)=>_0x4a93e5(_0x311f14,_0x1147ea,_0x25f3bc),B=(_0x24ac65,_0x1c5268,_0x2aba29)=>Ge(_0x24ac65,typeof _0x1c5268!=_0x94c2f4(0x279)?_0x1c5268+'':_0x1c5268,_0x2aba29);const Ye=_0x94c2f4(0x27a);let b=class extends _0x1f099d{constructor(_0x152420=T,_0x59ea89,_0x51de){const _0x2d3149=_0x94c2f4;super(),this[_0x2d3149(0x1dc)]=_0x152420,this[_0x2d3149(0x204)]=_0x59ea89,this[_0x2d3149(0x1d0)]=_0x51de;const {..._0x3f9fb8}=_0x38fee5({},T,this['_config']);this['_configService'][_0x2d3149(0x276)](ye,_0x3f9fb8);}[_0x94c2f4(0x262)](){const _0x172bdc=_0x94c2f4;_0x20cdf0(this[_0x172bdc(0x204)],_0x1c6eec([[L],[S],[I],[m]],this[_0x172bdc(0x1dc)][_0x172bdc(0x200)])),_0x5e0f2d(this['_injector'],[[I]]);}[_0x94c2f4(0x1ed)](){_0x5e0f2d(this['_injector'],[[m]]);}};B(b,_0x94c2f4(0x23f),_0x1edb56[_0x94c2f4(0x240)]),B(b,_0x94c2f4(0x1d9),Ye),b=We([_0x298814(_0x4883e2),F(0x1,_0x39e2ff(_0x1af462)),F(0x2,_0x1163db)],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 _0x1a320d=_0x5c17;(function(_0x482369,_0x47aad5){const _0x385bd1=_0x5c17,_0x524c0c=_0x482369();while(!![]){try{const _0x1768d7=parseInt(_0x385bd1(0x159))/0x1*(parseInt(_0x385bd1(0x1d4))/0x2)+-parseInt(_0x385bd1(0x18d))/0x3+parseInt(_0x385bd1(0x1c7))/0x4*(-parseInt(_0x385bd1(0x1b9))/0x5)+parseInt(_0x385bd1(0x17d))/0x6+-parseInt(_0x385bd1(0x1a8))/0x7*(-parseInt(_0x385bd1(0x152))/0x8)+parseInt(_0x385bd1(0x158))/0x9+-parseInt(_0x385bd1(0x1bf))/0xa;if(_0x1768d7===_0x47aad5)break;else _0x524c0c['push'](_0x524c0c['shift']());}catch(_0x469d6e){_0x524c0c['push'](_0x524c0c['shift']());}}}(_0x5acf,0x9bf86));var J=Object[_0x1a320d(0x191)],K=(_0x459e84,_0x1eae15,_0xf2e47a)=>_0x1eae15 in _0x459e84?J(_0x459e84,_0x1eae15,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf2e47a}):_0x459e84[_0x1eae15]=_0xf2e47a,u=(_0x27d2e8,_0x4fd25d,_0x5b1762)=>K(_0x27d2e8,typeof _0x4fd25d!=_0x1a320d(0x1ce)?_0x4fd25d+'':_0x4fd25d,_0x5b1762);import{Disposable as _0x22e76f,toDisposable as _0x23fd4f,IUniverInstanceService as _0x5cced6,Inject as _0x40adf3,Injector as _0x583ec,IConfigService as _0x4b1494,ICommandService as _0x6bae6e,RxDisposable as _0x30c6d8,UniverInstanceType as _0x4a3c1a,DisposableCollection as _0x1e7ac4,CommandType as _0x58a3dd,DependentOn as _0x2e03ab,Plugin as _0x8266cb,merge as _0x3cf1c7,registerDependencies as _0x4deb1d,mergeOverrideWithDependencies as _0x445e7c,touchDependencies as _0x3ab3b4}from'@univerjs/core';import{useDependency as _0x10153b,useObservable as _0x4aee64,IUIPartsService as _0x43a13b,BuiltInUIPart as _0x938492,connectInjector as _0x5274b2}from'@univerjs/ui';import{jsx as _0x6ec0de,jsxs as _0xfaa159,Fragment as _0x5ab3f7}from'react/jsx-runtime';function _0x5acf(){const _0x4badcf=['init','_configService','getCurrentTypeOfUnit$','displayName','getTypeOfUnitDisposed$','following','none','LIVESHARE_NEW_HOST','toString','getInitialStates','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$','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareIcon','not-following','executeCommand','svg','delete','Present\x20this\x20document','path','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','_unitID','offline','getLiveShareCoordinatorSync','unitId','createInstance','getMemberID','type','text','then','Start','div','0\x200\x2017\x2017','_collabSessionService','_injector','_entities','assign','registerComponent','colorChannel1','_liveShareService','56zriQIU','string','univerjs-icon\x20univerjs-icon-','get','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','5056497qMfJrN','4myYFir','pipe','ONLINE','LIVESHARE_FETCH_OPERATIONS','UniverIcon','startFollowing','dispose$','set','getValue','setConfig','_collabSession','NEW_CHANGESETS','_presenter','current','next','getConfig','You\x27re\x20presenting\x20the\x20document','sheet','_beIdle','_fetchOperations','xlink:href','live-share.config','_uiPartsService','params','_mountLiveShare','_startFollowing','_handleOperation','OPERATION','_handleOnline','_startPresenting','registerSharedOperation','stopFollowing','_init','operations','1em','memberID','1846068TGxuFk','shouldShareOperation','OFFLINE','send','onCommandExecuted','random','IDLE','_startLiveShareCoordinator','asObservable','attrs','You\x27re\x20following\x20the\x20presenter','_univerInstanceService','forEach','_status','FOLLOWING','presenting','3006483AkmFLV','complete','tag','idSuffix','defineProperty','_reporters','SAME_OPERATION_SHARE_INTERVAL','getOwnPropertyDescriptor','idle','reverse','http://www.w3.org/2000/svg','children','mask','Stop\x20presenting','LIVESHARE_REQUEST_HOST','stringify','_handleNewChangeSets','_config','defIds','entries','currentColor','_handleNewHost','LIVESHARE_OPERATION','getTypeOfUnitAdded$','_stopFollowing','You\x27re\x20not\x20following\x20the\x20presenter','_stopPresenting','431284XWPqCF','override','length','_handleTerminate','getUnitId','disposeWithMe','clear','sessionStatus$','_commandDisposable','defs','button','data','use','PRESENTING','dispose','_commandService','mutations','175XUZVgf','UNIVER_UNKNOWN','presenter','add','trim','url(#$1','2140660SFBFJq','You\x27are\x20offline.','onRendered','evenodd','_status$','tryStartPresenting','requireSession','subscribe','63128KoDgYj','NOT_FOLLOWING','_sharedOperations','_handleOffline','from','UNIVER_SHEET','replace','symbol','LIVESHARE_TERMINATE','fill','registerInitialStateReporter','stopPresenting','has','553328YyYSMq','getLiveShareCoordinator','onStarting','includes'];_0x5acf=function(){return _0x4badcf;};return _0x5acf();}import{Dropdown as _0x21523d,clsx as _0x45ffcb,Button as _0x5c3ffa}from'@univerjs/design';import{useRef as _0x3f2369,createElement as _0x1daeac,forwardRef as _0x374345,useState as _0x93f16,useEffect as _0x57a314}from'react';import{CollaborationEvent as _0x31b5eb,parseProtocolChangeset as _0x5f34f6}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3a9f1b,SessionStatus as _0xbf29a1,UniverCollaborationClientPlugin as _0x4e4d69}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1d33ea,SetWorksheetActiveOperation as _0x2ab6bf}from'@univerjs/sheets';function _0x5c17(_0x509ad9,_0x1126d7){_0x509ad9=_0x509ad9-0x12f;const _0x5acfee=_0x5acf();let _0x5c170d=_0x5acfee[_0x509ad9];return _0x5c170d;}import{BehaviorSubject as _0x196284,Subject as _0x3f5df2}from'rxjs';import{takeUntil as _0x4ef798,throttleTime as _0x111800}from'rxjs/operators';import{SetZoomRatioOperation as _0x327864,SetScrollOperation as _0x13e74f}from'@univerjs/sheets-ui';function k({ref:_0x58dcde,..._0x2b4d06}){const _0x3b93eb=_0x1a320d,{icon:_0x4ad1af,id:_0x30287a,className:_0x324e1f,extend:_0x25e315,..._0x45e3f3}=_0x2b4d06,_0xfec8da=(_0x3b93eb(0x154)+_0x30287a+'\x20'+(_0x324e1f||''))[_0x3b93eb(0x1bd)](),_0x436925=_0x3f2369('_'+Oe());return G(_0x4ad1af,''+_0x30287a,{'defIds':_0x4ad1af[_0x3b93eb(0x19f)],'idSuffix':_0x436925[_0x3b93eb(0x166)]},{'ref':_0x58dcde,'className':_0xfec8da,..._0x45e3f3},_0x25e315);}function G(_0x4a61c3,_0x1cf91a,_0x4c7664,_0x36a402,_0x285656){const _0x57cc38=_0x1a320d;return _0x1daeac(_0x4a61c3[_0x57cc38(0x18f)],{'key':_0x1cf91a,...be(_0x4a61c3,_0x4c7664,_0x285656),..._0x36a402},(Ee(_0x4a61c3,_0x4c7664)[_0x57cc38(0x198)]||[])[_0x57cc38(0x13e)]((_0x51aad0,_0x3da638)=>G(_0x51aad0,_0x1cf91a+'-'+_0x4a61c3['tag']+'-'+_0x3da638,_0x4c7664,void 0x0,_0x285656)));}function be(_0x345327,_0x1992e5,_0x2ddc6c){const _0x49f82c=_0x1a320d,_0x23bfa8={..._0x345327[_0x49f82c(0x186)]};_0x2ddc6c!=null&&_0x2ddc6c['colorChannel1']&&_0x23bfa8['fill']===_0x49f82c(0x150)&&(_0x23bfa8[_0x49f82c(0x1d0)]=_0x2ddc6c[_0x49f82c(0x150)]),_0x345327['tag']===_0x49f82c(0x199)&&_0x23bfa8['id']&&(_0x23bfa8['id']=_0x23bfa8['id']+_0x1992e5['idSuffix']),Object[_0x49f82c(0x1a0)](_0x23bfa8)['forEach'](([_0x3451b5,_0x1ff48d])=>{const _0x20f3e3=_0x49f82c;_0x3451b5===_0x20f3e3(0x199)&&typeof _0x1ff48d==_0x20f3e3(0x153)&&(_0x23bfa8[_0x3451b5]=_0x1ff48d['replace'](/url\(#(.*)\)/,'url(#$1'+_0x1992e5[_0x20f3e3(0x190)]+')'));});const {defIds:_0x30010a}=_0x1992e5;return!_0x30010a||_0x30010a[_0x49f82c(0x1aa)]===0x0||(_0x345327['tag']===_0x49f82c(0x1b4)&&_0x23bfa8[_0x49f82c(0x16d)]&&(_0x23bfa8[_0x49f82c(0x16d)]=_0x23bfa8[_0x49f82c(0x16d)]+_0x1992e5['idSuffix']),Object[_0x49f82c(0x1a0)](_0x23bfa8)['forEach'](([_0x8325ac,_0x5458f4])=>{const _0xd46eab=_0x49f82c;typeof _0x5458f4==_0xd46eab(0x153)&&(_0x23bfa8[_0x8325ac]=_0x5458f4[_0xd46eab(0x1cd)](/url\(#(.*)\)/,_0xd46eab(0x1be)+_0x1992e5['idSuffix']+')'));})),_0x23bfa8;}function Ee(_0xb1e05,_0x131a8e){const _0x32c11e=_0x1a320d;var _0xd6a753;const {defIds:_0x201670}=_0x131a8e;return!_0x201670||_0x201670[_0x32c11e(0x1aa)]===0x0?_0xb1e05:_0xb1e05[_0x32c11e(0x18f)]===_0x32c11e(0x1b1)&&((_0xd6a753=_0xb1e05['children'])!=null&&_0xd6a753['length'])?{..._0xb1e05,'children':_0xb1e05[_0x32c11e(0x198)][_0x32c11e(0x13e)](_0x704f8=>typeof _0x704f8[_0x32c11e(0x186)]['id']=='string'&&_0x201670&&_0x201670[_0x32c11e(0x1d7)](_0x704f8[_0x32c11e(0x186)]['id'])?{..._0x704f8,'attrs':{..._0x704f8['attrs'],'id':_0x704f8[_0x32c11e(0x186)]['id']+_0x131a8e[_0x32c11e(0x190)]}}:_0x704f8)}:_0xb1e05;}function Oe(){const _0x498d16=_0x1a320d;return Math[_0x498d16(0x182)]()[_0x498d16(0x131)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x1a320d(0x15d);const we={'tag':_0x1a320d(0x139),'attrs':{'xmlns':_0x1a320d(0x197),'fill':_0x1a320d(0x12f),'viewBox':_0x1a320d(0x14a),'width':_0x1a320d(0x17b),'height':_0x1a320d(0x17b)},'children':[{'tag':_0x1a320d(0x13c),'attrs':{'fill':_0x1a320d(0x1a1),'d':_0x1a320d(0x157)}},{'tag':_0x1a320d(0x13c),'attrs':{'fill':'currentColor','d':_0x1a320d(0x133),'fillRule':_0x1a320d(0x1c2),'clipRule':'evenodd'}}]},W=_0x374345(function(_0x4fd60b,_0x280bd1){const _0x2de3fc=_0x1a320d;return _0x1daeac(k,Object[_0x2de3fc(0x14e)]({},_0x4fd60b,{'id':'live-share-icon','ref':_0x280bd1,'icon':we}));});W[_0x1a320d(0x1db)]=_0x1a320d(0x136);class L extends _0x22e76f{constructor(){const _0x11c5a6=_0x1a320d;super(...arguments),u(this,_0x11c5a6(0x1c9),new Set()),u(this,_0x11c5a6(0x192),new Set());}[_0x1a320d(0x177)](_0x3a30b7){const _0x5c880b=_0x1a320d;return this[_0x5c880b(0x1c9)][_0x5c880b(0x1bc)](_0x3a30b7),_0x23fd4f(()=>this['_sharedOperations'][_0x5c880b(0x13a)](_0x3a30b7));}[_0x1a320d(0x1d1)](_0x4573a1){const _0x22e8f0=_0x1a320d;return this[_0x22e8f0(0x192)][_0x22e8f0(0x1bc)](_0x4573a1),_0x23fd4f(()=>this[_0x22e8f0(0x192)]['delete'](_0x4573a1));}[_0x1a320d(0x17e)](_0x183e75){const _0xd3837a=_0x1a320d;return this[_0xd3837a(0x1c9)][_0xd3837a(0x1d3)](_0x183e75);}[_0x1a320d(0x132)](_0xbcb55d){const _0x26cdc3=_0x1a320d;return Array[_0x26cdc3(0x1cb)](this['_reporters'])[_0x26cdc3(0x13e)](_0x3670bb=>_0x3670bb(_0xbcb55d));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x17dcbb,_0x32cb04,_0xbffd7,_0x4d5543)=>{const _0x386c1e=_0x1a320d;for(var _0x322832=_0x4d5543>0x1?void 0x0:_0x4d5543?Ne(_0x32cb04,_0xbffd7):_0x32cb04,_0x2e5547=_0x17dcbb[_0x386c1e(0x1aa)]-0x1,_0x6a6792;_0x2e5547>=0x0;_0x2e5547--)(_0x6a6792=_0x17dcbb[_0x2e5547])&&(_0x322832=_0x6a6792(_0x322832)||_0x322832);return _0x322832;},_=(_0xb4a89b,_0x3edb71)=>(_0x2f0cea,_0x57b924)=>_0x3edb71(_0x2f0cea,_0x57b924,_0xb4a89b);let S=class extends _0x30c6d8{constructor(_0x4d9c59,_0x26d963,_0x377ec6){const _0x4058d9=_0x1a320d;super(),u(this,_0x4058d9(0x14d),new Map()),(this[_0x4058d9(0x188)]=_0x4d9c59,this[_0x4058d9(0x14c)]=_0x26d963,this['_collabSessionService']=_0x377ec6,this[_0x4058d9(0x179)]());}async['getLiveShareCoordinator'](_0x42cdd9){const _0x5a169c=_0x1a320d;return this['_entities']['has'](_0x42cdd9)||await this[_0x5a169c(0x184)](_0x42cdd9),this[_0x5a169c(0x14d)][_0x5a169c(0x155)](_0x42cdd9);}[_0x1a320d(0x141)](_0x4de21b){const _0x43ded6=_0x1a320d;var _0x2e1084;return(_0x2e1084=this[_0x43ded6(0x14d)][_0x43ded6(0x155)](_0x4de21b))!=null?_0x2e1084:null;}['_init'](){const _0x8ce0da=_0x1a320d;this[_0x8ce0da(0x188)][_0x8ce0da(0x1a4)](_0x4a3c1a[_0x8ce0da(0x1cc)])['pipe'](_0x4ef798(this[_0x8ce0da(0x15f)]))[_0x8ce0da(0x1c6)](async _0x363b4d=>{const _0x42665d=_0x8ce0da,_0x3c3250=_0x363b4d['getUnitId']();this[_0x42665d(0x14d)][_0x42665d(0x1d3)](_0x3c3250)||this['_startLiveShareCoordinator'](_0x3c3250);}),this[_0x8ce0da(0x188)][_0x8ce0da(0x1dc)](_0x4a3c1a[_0x8ce0da(0x1cc)])[_0x8ce0da(0x15a)](_0x4ef798(this[_0x8ce0da(0x15f)]))[_0x8ce0da(0x1c6)](_0xb357e9=>{const _0x3c5aec=_0x8ce0da,_0x2beeae=_0xb357e9[_0x3c5aec(0x1ac)](),_0x3e918f=this[_0x3c5aec(0x14d)][_0x3c5aec(0x155)](_0x2beeae);_0x3e918f==null||_0x3e918f['dispose']();});}async[_0x1a320d(0x184)](_0x50cf5e){const _0x364341=_0x1a320d,_0x434137=await this[_0x364341(0x14b)][_0x364341(0x1c5)](_0x50cf5e),_0x208dde=this['_injector'][_0x364341(0x143)](N,_0x50cf5e,_0x434137);return _0x208dde[_0x364341(0x1d8)](),this[_0x364341(0x14d)][_0x364341(0x160)](_0x50cf5e,_0x208dde),_0x208dde;}};S=Y([_(0x0,_0x5cced6),_(0x1,_0x40adf3(_0x583ec)),_(0x2,_0x40adf3(_0x3a9f1b))],S);var c=(_0x179c52=>(_0x179c52[_0x1a320d(0x17f)]=_0x1a320d(0x140),_0x179c52[_0x1a320d(0x183)]=_0x1a320d(0x195),_0x179c52[_0x1a320d(0x18b)]=_0x1a320d(0x1dd),_0x179c52['NOT_FOLLOWING']='not-following',_0x179c52['PRESENTING']=_0x1a320d(0x18c),_0x179c52))(c||{});const Ce=_0x1a320d(0x193),De=0xc8;let N=class extends _0x30c6d8{constructor(_0x189a71,_0x232504,_0x4e46ce,_0x27fe31,_0x292cb4){const _0x3cdee4=_0x1a320d;super(),u(this,'_status$',new _0x196284(_0x3cdee4(0x195))),u(this,_0x3cdee4(0x134),this[_0x3cdee4(0x1c3)][_0x3cdee4(0x185)]()),u(this,'_init',!0x1),u(this,_0x3cdee4(0x1b0),null),u(this,_0x3cdee4(0x165),null),(this[_0x3cdee4(0x13f)]=_0x189a71,this[_0x3cdee4(0x163)]=_0x232504,this['_configService']=_0x4e46ce,this[_0x3cdee4(0x151)]=_0x27fe31,this[_0x3cdee4(0x1b7)]=_0x292cb4);}get[_0x1a320d(0x18a)](){const _0xf84692=_0x1a320d;return this[_0xf84692(0x1c3)][_0xf84692(0x161)]();}[_0x1a320d(0x1b6)](){const _0x570a4b=_0x1a320d;var _0x59bf4a;(_0x59bf4a=this[_0x570a4b(0x1b0)])==null||_0x59bf4a[_0x570a4b(0x1b6)](),this[_0x570a4b(0x1c3)][_0x570a4b(0x167)](_0x570a4b(0x195)),this['_status$']['complete']();}['getStatus'](){return this['_status'];}['init'](){const _0x6d100d=_0x1a320d;this[_0x6d100d(0x179)]||(this[_0x6d100d(0x179)]=!0x0,this['_collabSession'][_0x6d100d(0x1af)]['pipe'](_0x4ef798(this[_0x6d100d(0x15f)]))[_0x6d100d(0x1c6)](_0x3a3eee=>{const _0x2df0b3=_0x6d100d;switch(_0x3a3eee){case _0xbf29a1[_0x2df0b3(0x17f)]:this[_0x2df0b3(0x1ca)]();break;case _0xbf29a1[_0x2df0b3(0x15b)]:this[_0x2df0b3(0x175)]();break;}}),this[_0x6d100d(0x163)]['event$'][_0x6d100d(0x15a)](_0x4ef798(this[_0x6d100d(0x15f)]))['subscribe'](_0x1872ab=>{const _0x512ff0=_0x6d100d,{eventID:_0x58233e}=_0x1872ab;switch(_0x58233e){case _0x31b5eb[_0x512ff0(0x130)]:this[_0x512ff0(0x1a2)](_0x1872ab);break;case _0x31b5eb[_0x512ff0(0x1a3)]:this[_0x512ff0(0x173)](_0x1872ab);break;case _0x31b5eb[_0x512ff0(0x1cf)]:this[_0x512ff0(0x1ab)]();break;case _0x31b5eb[_0x512ff0(0x164)]:this[_0x512ff0(0x19d)](_0x1872ab);break;}}));}[_0x1a320d(0x1c4)](){const _0x59db57=_0x1a320d;this[_0x59db57(0x163)][_0x59db57(0x180)]({'eventID':_0x31b5eb[_0x59db57(0x19b)],'data':{'unitID':this['_unitID'],'userID':this[_0x59db57(0x163)][_0x59db57(0x144)]()}},this[_0x59db57(0x13f)]);}['stopPresenting'](){const _0x1bec8e=_0x1a320d;this['_status']==='presenting'&&(this[_0x1bec8e(0x1c3)][_0x1bec8e(0x167)](_0x1bec8e(0x195)),this[_0x1bec8e(0x163)]['send']({'eventID':_0x31b5eb[_0x1bec8e(0x1cf)],'data':{'unitID':this['_unitID']}},this[_0x1bec8e(0x13f)]));}[_0x1a320d(0x15e)](){const _0x45de91=_0x1a320d;this[_0x45de91(0x18a)]===_0x45de91(0x137)&&(this[_0x45de91(0x1c3)][_0x45de91(0x167)](_0x45de91(0x1dd)),this[_0x45de91(0x172)]());}[_0x1a320d(0x178)](){const _0x252c07=_0x1a320d;this[_0x252c07(0x18a)]===_0x252c07(0x1dd)&&this[_0x252c07(0x1a5)]();}[_0x1a320d(0x1a2)](_0x17e015){const _0x3515f0=_0x1a320d,{presenter:_0x244b47}=_0x17e015[_0x3515f0(0x1b3)],_0x1860a3=this['_collabSession']['getMemberID']();this[_0x3515f0(0x165)]=_0x244b47,_0x244b47===_0x1860a3?(this[_0x3515f0(0x1a5)](),this['_startPresenting']()):this[_0x3515f0(0x18a)]!==_0x3515f0(0x137)&&(this[_0x3515f0(0x1a7)](),this[_0x3515f0(0x172)]());}[_0x1a320d(0x16c)](){const _0x53c076=_0x1a320d,_0x44be4d={'eventID':_0x31b5eb[_0x53c076(0x15c)]};this[_0x53c076(0x163)]['send'](_0x44be4d,this[_0x53c076(0x13f)]);}[_0x1a320d(0x1ab)](){const _0x3f3bda=_0x1a320d;this[_0x3f3bda(0x165)]=null,this[_0x3f3bda(0x18a)]!==_0x3f3bda(0x18c)&&this[_0x3f3bda(0x16b)]();}['_handleNewChangeSets'](_0x3646e7){const _0x3c1208=_0x1a320d;if(this[_0x3c1208(0x18a)]===_0x3c1208(0x1dd)&&this[_0x3c1208(0x165)]===_0x3646e7[_0x3c1208(0x1b3)][_0x3c1208(0x17c)]){const _0x299eab=_0x5f34f6(_0x3646e7[_0x3c1208(0x1b3)])[_0x3c1208(0x1b8)][_0x3c1208(0x196)]()['find'](_0x250cee=>_0x250cee['id']===_0x1d33ea['id']);if(_0x299eab){const _0x2d8b2c=_0x299eab[_0x3c1208(0x170)][_0x3c1208(0x142)],_0x495cfa=_0x299eab[_0x3c1208(0x170)][_0x3c1208(0x16a)]['id'];setTimeout(()=>{const _0x52f657=_0x3c1208;this[_0x52f657(0x1b7)][_0x52f657(0x138)](_0x2ab6bf['id'],{'unitId':_0x2d8b2c,'subUnitId':_0x495cfa},{'fromCollab':!0x0});});}}}[_0x1a320d(0x176)](){const _0x10b629=_0x1a320d;this[_0x10b629(0x1c3)][_0x10b629(0x167)]('presenting');const _0x2183ab=new Map(),_0x294ec1=this[_0x10b629(0x1b0)]=new _0x1e7ac4();_0x294ec1[_0x10b629(0x1bc)](_0x23fd4f(()=>{const _0x21082a=_0x10b629;_0x2183ab[_0x21082a(0x189)](_0x14e40e=>_0x14e40e[_0x21082a(0x18e)]()),_0x2183ab[_0x21082a(0x1ae)]();})),_0x294ec1[_0x10b629(0x1bc)](this[_0x10b629(0x1b7)][_0x10b629(0x181)](_0xbad47b=>{const _0x347c6e=_0x10b629;var _0x59d098;if(_0xbad47b[_0x347c6e(0x145)]!==_0x58a3dd[_0x347c6e(0x174)]||!this[_0x347c6e(0x151)][_0x347c6e(0x17e)](_0xbad47b['id']))return;const {id:_0x595dbb}=_0xbad47b;let _0x15ca23;_0x2183ab[_0x347c6e(0x1d3)](_0x595dbb)?_0x15ca23=_0x2183ab[_0x347c6e(0x155)](_0x595dbb):(_0x15ca23=new _0x3f5df2(),_0x2183ab[_0x347c6e(0x160)](_0x595dbb,_0x15ca23),_0x15ca23[_0x347c6e(0x15a)](_0x111800((_0x59d098=this[_0x347c6e(0x1d9)][_0x347c6e(0x168)](Ce))!=null?_0x59d098:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x347c6e(0x1c6)](_0x22a3af=>{const _0x1c1f6b=_0x347c6e;this['_collabSession']['send']({'eventID':_0x31b5eb['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1c1f6b(0x13f)],'operations':{[_0x22a3af['id']]:{'id':_0x22a3af['id'],'params':JSON[_0x1c1f6b(0x19c)](_0x22a3af[_0x1c1f6b(0x170)])}}}},this[_0x1c1f6b(0x13f)]);})),_0x15ca23[_0x347c6e(0x167)](_0xbad47b);})),this['_liveShareService'][_0x10b629(0x132)](this['_unitID'])['forEach'](_0x2c0971=>this[_0x10b629(0x163)][_0x10b629(0x180)]({'eventID':_0x31b5eb[_0x10b629(0x1a3)],'data':{'unitID':this[_0x10b629(0x13f)],'operations':{[_0x2c0971['id']]:{'id':_0x2c0971['id'],'params':JSON[_0x10b629(0x19c)](_0x2c0971[_0x10b629(0x170)])}}}},this[_0x10b629(0x13f)]));}['_stopPresenting'](){const _0x47a76a=_0x1a320d;var _0x4bf68f;this[_0x47a76a(0x1c3)][_0x47a76a(0x167)](_0x47a76a(0x195)),(_0x4bf68f=this[_0x47a76a(0x1b0)])==null||_0x4bf68f[_0x47a76a(0x1b6)](),this[_0x47a76a(0x1b0)]=null;}[_0x1a320d(0x172)](){const _0x5467e9=_0x1a320d;var _0x516215;(_0x516215=this[_0x5467e9(0x1b0)])==null||_0x516215[_0x5467e9(0x1b6)](),this[_0x5467e9(0x1c3)]['next'](_0x5467e9(0x1dd));}['_beIdle'](){const _0x442670=_0x1a320d;var _0x58e85c;this[_0x442670(0x1c3)][_0x442670(0x167)](_0x442670(0x195)),(_0x58e85c=this[_0x442670(0x1b0)])==null||_0x58e85c[_0x442670(0x1b6)](),this['_commandDisposable']=null;}[_0x1a320d(0x1a5)](){const _0x5e8b56=_0x1a320d;var _0xfbd56e;this['_status$'][_0x5e8b56(0x167)](_0x5e8b56(0x137)),(_0xfbd56e=this[_0x5e8b56(0x1b0)])==null||_0xfbd56e[_0x5e8b56(0x1b6)]();}['_handleOperation'](_0x38833d){const _0x5f227a=_0x1a320d;if([_0x5f227a(0x18c),_0x5f227a(0x137),_0x5f227a(0x140)][_0x5f227a(0x1d7)](this[_0x5f227a(0x18a)])||!_0x38833d['data'][_0x5f227a(0x1bb)]||_0x38833d['data']['presenter']===this[_0x5f227a(0x163)][_0x5f227a(0x144)]())return;this[_0x5f227a(0x18a)]==='idle'&&this[_0x5f227a(0x172)]();const _0x37d890=_0x38833d[_0x5f227a(0x1b3)][_0x5f227a(0x17a)];Object['values'](_0x37d890)[_0x5f227a(0x189)](_0x3dc061=>{const _0x1f53fb=_0x5f227a;this[_0x1f53fb(0x1b7)][_0x1f53fb(0x138)](_0x3dc061['id'],_0x3dc061[_0x1f53fb(0x170)]?JSON['parse'](_0x3dc061[_0x1f53fb(0x170)]):null,{'fromCollab':!0x0});});}[_0x1a320d(0x1ca)](){const _0x51ce04=_0x1a320d;var _0x2b4df0;this[_0x51ce04(0x1c3)][_0x51ce04(0x167)](_0x51ce04(0x140)),(_0x2b4df0=this[_0x51ce04(0x1b0)])==null||_0x2b4df0['dispose']();}[_0x1a320d(0x175)](){const _0x402a59=_0x1a320d;this['_status$'][_0x402a59(0x167)](_0x402a59(0x195)),this[_0x402a59(0x16c)]();}};N=Y([_(0x2,_0x4b1494),_(0x3,_0x40adf3(L)),_(0x4,_0x6bae6e)],N);function Le(){const _0x1ffff2=_0x1a320d,_0x5a2053=_0x10153b(S),_0x65d2b4=_0x10153b(_0x5cced6),_0x52c98a=_0x4aee64(()=>_0x65d2b4[_0x1ffff2(0x1da)](_0x4a3c1a[_0x1ffff2(0x1cc)]),void 0x0,!0x1,[]),[_0x2195de,_0x3a98dc]=_0x93f16(null),[_0x49e489,_0x1cbb82]=_0x93f16(c['IDLE']),_0xdfbfdf=_0x3f2369(null);return _0x57a314(()=>(_0x52c98a&&_0x5a2053[_0x1ffff2(0x1d5)](_0x52c98a[_0x1ffff2(0x1ac)]())[_0x1ffff2(0x147)](_0xfd85fd=>{const _0x59c866=_0x1ffff2;_0x3a98dc(_0xfd85fd),_0xdfbfdf[_0x59c866(0x166)]=_0xfd85fd[_0x59c866(0x134)][_0x59c866(0x1c6)](_0x1b80ff=>{_0x1cbb82(_0x1b80ff);});}),()=>{const _0x20c5a5=_0x1ffff2;var _0x3c8a47;(_0x3c8a47=_0xdfbfdf[_0x20c5a5(0x166)])==null||_0x3c8a47['unsubscribe'](),_0xdfbfdf['current']=null;}),[_0x52c98a,_0x5a2053]),_0x2195de?_0x6ec0de(_0x21523d,{'align':'end','disabled':_0x49e489===c['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x6ec0de(Re,{'status':_0x49e489,'coordinator':_0x2195de}),'children':_0x6ec0de(_0x1ffff2(0x1b2),{'className':_0x45ffcb(_0x1ffff2(0x13d),{'univer-cursor-not-allowed':_0x49e489===c[_0x1ffff2(0x17f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x49e489!==c['OFFLINE']}),'type':'button','children':_0x6ec0de(W,{'className':'univer-size-4'})})}):null;}function Re(_0x18de62){const _0xb5f1e2=_0x1a320d,{status:_0x315f7c,coordinator:_0xf819f9}=_0x18de62;switch(_0x315f7c){case c[_0xb5f1e2(0x183)]:return _0x6ec0de($e,{'coordinator':_0xf819f9});case c[_0xb5f1e2(0x18b)]:return _0x6ec0de(xe,{'coordinator':_0xf819f9});case c[_0xb5f1e2(0x1c8)]:return _0x6ec0de(Pe,{'coordinator':_0xf819f9});case c['OFFLINE']:return _0x6ec0de(Te,{});case c[_0xb5f1e2(0x1b5)]:return _0x6ec0de(Ae,{'coordinator':_0xf819f9});default:return null;}}function $e(_0x15f916){const _0x4dad7a=_0x1a320d,{coordinator:_0x1f1be8}=_0x15f916;return _0xfaa159(_0x5ab3f7,{'children':[_0x6ec0de('div',{'className':_0x4dad7a(0x135),'children':_0x4dad7a(0x13b)}),_0x6ec0de(_0x5c3ffa,{'onClick':()=>_0x1f1be8['tryStartPresenting'](),'children':_0x4dad7a(0x148)})]});}function xe(_0x476356){const _0x5c921e=_0x1a320d,{coordinator:_0x45a928}=_0x476356;return _0xfaa159(_0x5ab3f7,{'children':[_0x6ec0de(_0x5c921e(0x149),{'className':_0x5c921e(0x135),'children':_0x5c921e(0x187)}),_0x6ec0de(_0x5c3ffa,{'onClick':()=>_0x45a928[_0x5c921e(0x178)](),'children':'Stop\x20following'})]});}function Pe(_0x29dc3c){const _0x153626=_0x1a320d,{coordinator:_0x3e0162}=_0x29dc3c;return _0xfaa159(_0x5ab3f7,{'children':[_0x6ec0de(_0x153626(0x149),{'className':_0x153626(0x135),'children':_0x153626(0x1a6)}),_0x6ec0de(_0x5c3ffa,{'variant':_0x153626(0x146),'onClick':()=>_0x3e0162[_0x153626(0x15e)](),'children':'Start\x20following'})]});}function Ae(_0x440a6e){const _0x539289=_0x1a320d,{coordinator:_0x3c5a31}=_0x440a6e;return _0xfaa159(_0x5ab3f7,{'children':[_0x6ec0de(_0x539289(0x149),{'className':_0x539289(0x135),'children':_0x539289(0x169)}),_0x6ec0de(_0x5c3ffa,{'variant':'default','onClick':()=>_0x3c5a31[_0x539289(0x1d2)](),'children':_0x539289(0x19a)})]});}function Te(){const _0x43ceda=_0x1a320d;return _0x6ec0de(_0x5ab3f7,{'children':_0x43ceda(0x1c0)});}var Fe=Object[_0x1a320d(0x194)],He=(_0x138ccf,_0x258fc4,_0xf19604,_0x2798cb)=>{const _0x3ef04a=_0x1a320d;for(var _0x10eb4a=_0x2798cb>0x1?void 0x0:_0x2798cb?Fe(_0x258fc4,_0xf19604):_0x258fc4,_0x4850b6=_0x138ccf[_0x3ef04a(0x1aa)]-0x1,_0x38f406;_0x4850b6>=0x0;_0x4850b6--)(_0x38f406=_0x138ccf[_0x4850b6])&&(_0x10eb4a=_0x38f406(_0x10eb4a)||_0x10eb4a);return _0x10eb4a;},A=(_0x5732c4,_0x4ba9b3)=>(_0x378991,_0x49d4ce)=>_0x4ba9b3(_0x378991,_0x49d4ce,_0x5732c4);let m=class extends _0x22e76f{constructor(_0x5228d3,_0x43fc92){const _0x539228=_0x1a320d;super(),this[_0x539228(0x14c)]=_0x5228d3,this[_0x539228(0x16f)]=_0x43fc92,this[_0x539228(0x171)]();}[_0x1a320d(0x171)](){const _0x582d58=_0x1a320d;this[_0x582d58(0x1ad)](this[_0x582d58(0x16f)][_0x582d58(0x14f)](_0x938492['HEADER_MENU'],()=>_0x5274b2(Le,this[_0x582d58(0x14c)])));}};m=He([A(0x0,_0x40adf3(_0x583ec)),A(0x1,_0x43a13b)],m);const ye=_0x1a320d(0x16e),T={};var Ue=Object[_0x1a320d(0x194)],Ve=(_0x1f450e,_0x2be3d9,_0x5a4fa4,_0x75b6fb)=>{for(var _0x3b84a3=_0x75b6fb>0x1?void 0x0:_0x75b6fb?Ue(_0x2be3d9,_0x5a4fa4):_0x2be3d9,_0x4be53f=_0x1f450e['length']-0x1,_0x44392e;_0x4be53f>=0x0;_0x4be53f--)(_0x44392e=_0x1f450e[_0x4be53f])&&(_0x3b84a3=_0x44392e(_0x3b84a3)||_0x3b84a3);return _0x3b84a3;},je=(_0x331478,_0x2f6d66)=>(_0x139d27,_0x4f9fce)=>_0x2f6d66(_0x139d27,_0x4f9fce,_0x331478);let I=class extends _0x22e76f{constructor(_0xe6f681){const _0xc7b2e=_0x1a320d;super(),this[_0xc7b2e(0x151)]=_0xe6f681,this[_0xc7b2e(0x179)]();}[_0x1a320d(0x179)](){const _0x46be8f=_0x1a320d;[_0x327864['id'],_0x13e74f['id'],_0x2ab6bf['id']][_0x46be8f(0x189)](_0xed29d=>{const _0x415a71=_0x46be8f;this[_0x415a71(0x1ad)](this['_liveShareService']['registerSharedOperation'](_0xed29d));});}};I=Ve([je(0x0,_0x40adf3(L))],I);var Me=Object[_0x1a320d(0x191)],ke=Object[_0x1a320d(0x194)],Ge=(_0x5cbed1,_0x23dee4,_0x5d413b)=>_0x23dee4 in _0x5cbed1?Me(_0x5cbed1,_0x23dee4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d413b}):_0x5cbed1[_0x23dee4]=_0x5d413b,We=(_0x55db2d,_0x18de0b,_0x4f6779,_0x22029d)=>{const _0x182bb8=_0x1a320d;for(var _0x1e0947=_0x22029d>0x1?void 0x0:_0x22029d?ke(_0x18de0b,_0x4f6779):_0x18de0b,_0x15efe5=_0x55db2d[_0x182bb8(0x1aa)]-0x1,_0x583bd2;_0x15efe5>=0x0;_0x15efe5--)(_0x583bd2=_0x55db2d[_0x15efe5])&&(_0x1e0947=_0x583bd2(_0x1e0947)||_0x1e0947);return _0x1e0947;},F=(_0x348437,_0x1f77c7)=>(_0x7af41a,_0x5569e9)=>_0x1f77c7(_0x7af41a,_0x5569e9,_0x348437),B=(_0x57ddb7,_0x117784,_0x291025)=>Ge(_0x57ddb7,typeof _0x117784!=_0x1a320d(0x1ce)?_0x117784+'':_0x117784,_0x291025);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x8266cb{constructor(_0x531f6a=T,_0x1054f4,_0x4a88fb){const _0x248fb9=_0x1a320d;super(),this[_0x248fb9(0x19e)]=_0x531f6a,this[_0x248fb9(0x14c)]=_0x1054f4,this['_configService']=_0x4a88fb;const {..._0xa8d37e}=_0x3cf1c7({},T,this[_0x248fb9(0x19e)]);this[_0x248fb9(0x1d9)][_0x248fb9(0x162)](ye,_0xa8d37e);}[_0x1a320d(0x1d6)](){const _0x4452cd=_0x1a320d;_0x4deb1d(this[_0x4452cd(0x14c)],_0x445e7c([[L],[S],[I],[m]],this[_0x4452cd(0x19e)][_0x4452cd(0x1a9)])),_0x3ab3b4(this[_0x4452cd(0x14c)],[[I]]);}[_0x1a320d(0x1c1)](){const _0x14a2cb=_0x1a320d;_0x3ab3b4(this[_0x14a2cb(0x14c)],[[m]]);}};B(b,_0x1a320d(0x145),_0x4a3c1a[_0x1a320d(0x1ba)]),B(b,_0x1a320d(0x156),Ye),b=We([_0x2e03ab(_0x4e4d69),F(0x1,_0x40adf3(_0x583ec)),F(0x2,_0x4b1494)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x10dbbf=_0x1182;(function(_0x205c8e,_0x5bff15){const _0x5ade2c=_0x1182,_0x2662c2=_0x205c8e();while(!![]){try{const _0x400cc8=-parseInt(_0x5ade2c(0x10c))/0x1*(parseInt(_0x5ade2c(0x131))/0x2)+-parseInt(_0x5ade2c(0x10d))/0x3*(-parseInt(_0x5ade2c(0x12f))/0x4)+parseInt(_0x5ade2c(0x130))/0x5*(-parseInt(_0x5ade2c(0x124))/0x6)+-parseInt(_0x5ade2c(0x115))/0x7*(parseInt(_0x5ade2c(0x11a))/0x8)+parseInt(_0x5ade2c(0x129))/0x9*(parseInt(_0x5ade2c(0x10b))/0xa)+parseInt(_0x5ade2c(0x125))/0xb+-parseInt(_0x5ade2c(0x126))/0xc*(parseInt(_0x5ade2c(0x123))/0xd);if(_0x400cc8===_0x5bff15)break;else _0x2662c2['push'](_0x2662c2['shift']());}catch(_0x243255){_0x2662c2['push'](_0x2662c2['shift']());}}}(_0x54a9,0x7dad4));import{LiveShareController as _0x172d50,LiveShareStatus as _0x33c8d3}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x34e1bf}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x7a934b}from'@univerjs/sheets';import{SetScrollOperation as _0x4b5d3c}from'@univerjs/sheets-ui';function _0x1182(_0x389ed3,_0x55f1b8){_0x389ed3=_0x389ed3-0x10b;const _0x54a952=_0x54a9();let _0x1182d5=_0x54a952[_0x389ed3];return _0x1182d5;}import{FRange as _0x1276b9}from'@univerjs/sheets/facade';import{FUniver as _0xe199c,FEnum as _0x42b1d5}from'@univerjs/core/facade';class I extends _0x1276b9{[_0x10dbbf(0x118)](_0x185165,_0x1d73ee,_0x46d8fc,_0x4ff64e,_0x44129a){const _0x4d4762=_0x10dbbf,_0x5b2b49=_0x185165[_0x4d4762(0x11f)](_0x172d50),_0x3de9fa=_0x185165['get'](_0x34e1bf),_0x2a6473=_0x1d73ee[_0x4d4762(0x11e)](),_0x4208d7=_0x1d73ee[_0x4d4762(0x113)](),_0xeb9374=_0x5b2b49['getLiveShareCoordinatorSync'](_0x2a6473);(_0xeb9374==null?void 0x0:_0xeb9374[_0x4d4762(0x116)]())!==_0x33c8d3[_0x4d4762(0x12e)]||(_0x46d8fc['getSheetId']()!==_0x4208d7[_0x4d4762(0x121)]()&&this[_0x4d4762(0x10f)][_0x4d4762(0x119)](_0x7a934b['id'],{'unitId':_0x2a6473,'subUnitId':_0x46d8fc['getSheetId']()}),!_0x3de9fa['getRenderById'](_0x2a6473))||_0x44129a[_0x4d4762(0x117)](_0x4b5d3c['id'],{'unitId':_0x1d73ee['getUnitId'](),'sheetId':_0x46d8fc['getSheetId'](),'sheetViewStartRow':_0x4ff64e[_0x4d4762(0x110)],'sheetViewStartColumn':_0x4ff64e[_0x4d4762(0x120)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x1276b9[_0x10dbbf(0x122)](I);class m extends _0xe199c{[_0x10dbbf(0x112)](){const _0x488b47=_0x10dbbf;var _0x3fa1bd,_0x573340;const _0x22bde9=this[_0x488b47(0x12c)][_0x488b47(0x11f)](_0x172d50),_0x372da0=(_0x3fa1bd=this[_0x488b47(0x127)]())==null?void 0x0:_0x3fa1bd['getId']();if(!_0x372da0)throw new Error('No\x20active\x20workbook\x20found.');const _0x1164b1=_0x22bde9[_0x488b47(0x10e)](_0x372da0);return(_0x573340=_0x1164b1==null?void 0x0:_0x1164b1['getStatus']())!=null?_0x573340:_0x33c8d3['IDLE'];}['startFollowing'](){const _0x3eb1d0=_0x10dbbf;var _0x1ebc0d;const _0x310f74=this[_0x3eb1d0(0x12c)][_0x3eb1d0(0x11f)](_0x172d50),_0x59a916=(_0x1ebc0d=this['getActiveWorkbook']())==null?void 0x0:_0x1ebc0d[_0x3eb1d0(0x11c)]();if(!_0x59a916)throw new Error('No\x20active\x20workbook\x20found.');const _0x547ff9=_0x310f74['getLiveShareCoordinatorSync'](_0x59a916);if(!_0x547ff9)throw new Error(_0x3eb1d0(0x12d));_0x547ff9[_0x3eb1d0(0x12b)]();}[_0x10dbbf(0x12a)](){const _0xabaea=_0x10dbbf;var _0x22d50e;const _0x41c06c=this['_injector'][_0xabaea(0x11f)](_0x172d50),_0x179aff=(_0x22d50e=this[_0xabaea(0x127)]())==null?void 0x0:_0x22d50e[_0xabaea(0x11c)]();if(!_0x179aff)throw new Error('No\x20active\x20workbook\x20found.');const _0xeeed39=_0x41c06c['getLiveShareCoordinatorSync'](_0x179aff);if(!_0xeeed39)throw new Error(_0xabaea(0x12d));_0xeeed39[_0xabaea(0x12a)]();}[_0x10dbbf(0x11d)](){const _0x4aeddd=_0x10dbbf;var _0xb687cf;const _0x3f48bb=this[_0x4aeddd(0x12c)][_0x4aeddd(0x11f)](_0x172d50),_0x125df7=(_0xb687cf=this[_0x4aeddd(0x127)]())==null?void 0x0:_0xb687cf[_0x4aeddd(0x11c)]();if(!_0x125df7)throw new Error(_0x4aeddd(0x11b));const _0x29b08a=_0x3f48bb[_0x4aeddd(0x10e)](_0x125df7);if(!_0x29b08a)throw new Error(_0x4aeddd(0x12d));_0x29b08a[_0x4aeddd(0x128)]();}[_0x10dbbf(0x111)](){const _0xb3bd0e=_0x10dbbf;var _0x1e3d90;const _0x2ad1b8=this['_injector'][_0xb3bd0e(0x11f)](_0x172d50),_0x620a8c=(_0x1e3d90=this[_0xb3bd0e(0x127)]())==null?void 0x0:_0x1e3d90[_0xb3bd0e(0x11c)]();if(!_0x620a8c)throw new Error(_0xb3bd0e(0x11b));const _0x273d6e=_0x2ad1b8[_0xb3bd0e(0x10e)](_0x620a8c);if(!_0x273d6e)throw new Error(_0xb3bd0e(0x12d));_0x273d6e[_0xb3bd0e(0x111)]();}}_0xe199c[_0x10dbbf(0x122)](m);class C extends _0x42b1d5{get[_0x10dbbf(0x114)](){return _0x33c8d3;}}function _0x54a9(){const _0x45dcd1=['PRESENTING','32684wKMeUr','5FOiZAF','158kJzSJN','3661600qBFHrS','8238QxJyVL','282yjLUGV','getLiveShareCoordinatorSync','_commandService','startRow','stopPresenting','getLiveShareStatus','getActiveSheet','LiveShareStatusEnum','4760clmZDY','getStatus','syncExecuteCommand','_initialize','executeCommand','10744gCYiHJ','No\x20active\x20workbook\x20found.','getId','startPresenting','getUnitId','get','startColumn','getSheetId','extend','91NoIyUp','904638DzsdcP','11094501WGumSM','478968YNZnbK','getActiveWorkbook','tryStartPresenting','18pZoJWo','stopFollowing','startFollowing','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x54a9=function(){return _0x45dcd1;};return _0x54a9();}_0x42b1d5['extend'](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x94c2f4=_0x21c3;function _0x21c3(_0x446bb3,_0x18f90f){_0x446bb3=_0x446bb3-0x1d0;const _0x519940=_0x5199();let _0x21c38f=_0x519940[_0x446bb3];return _0x21c38f;}(function(_0x4c86f3,_0x134e2f){const _0x38792d=_0x21c3,_0x180f4e=_0x4c86f3();while(!![]){try{const _0x518ddf=-parseInt(_0x38792d(0x222))/0x1+parseInt(_0x38792d(0x247))/0x2+-parseInt(_0x38792d(0x21a))/0x3+-parseInt(_0x38792d(0x252))/0x4*(-parseInt(_0x38792d(0x24e))/0x5)+-parseInt(_0x38792d(0x237))/0x6*(-parseInt(_0x38792d(0x1fa))/0x7)+-parseInt(_0x38792d(0x206))/0x8+parseInt(_0x38792d(0x1f9))/0x9*(parseInt(_0x38792d(0x1d4))/0xa);if(_0x518ddf===_0x134e2f)break;else _0x180f4e['push'](_0x180f4e['shift']());}catch(_0x39cf1a){_0x180f4e['push'](_0x180f4e['shift']());}}}(_0x5199,0xdf6f1));var J=Object[_0x94c2f4(0x250)],K=(_0x37670d,_0x4433f6,_0x29d063)=>_0x4433f6 in _0x37670d?J(_0x37670d,_0x4433f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29d063}):_0x37670d[_0x4433f6]=_0x29d063,u=(_0x548a32,_0x5e598a,_0xf6d060)=>K(_0x548a32,typeof _0x5e598a!=_0x94c2f4(0x279)?_0x5e598a+'':_0x5e598a,_0xf6d060);import{Disposable as _0x237410,toDisposable as _0x479776,IUniverInstanceService as _0x131adf,Inject as _0x39e2ff,Injector as _0x1af462,IConfigService as _0x1163db,ICommandService as _0x3fe997,RxDisposable as _0x3c244d,UniverInstanceType as _0x1edb56,DisposableCollection as _0x56d0d3,CommandType as _0x11ab87,DependentOn as _0x298814,Plugin as _0x1f099d,merge as _0x38fee5,registerDependencies as _0x20cdf0,mergeOverrideWithDependencies as _0x1c6eec,touchDependencies as _0x5e0f2d}from'@univerjs/core';import{useDependency as _0x1a3369,useObservable as _0x43c83b,IUIPartsService as _0x189af9,BuiltInUIPart as _0x54c386,connectInjector as _0x40daf7}from'@univerjs/ui';import{jsx as _0x3b2e8c,jsxs as _0x5a8b02,Fragment as _0x34fda9}from'react/jsx-runtime';import{Dropdown as _0x580ca5,clsx as _0x38bcb7,Button as _0x4bf6a0}from'@univerjs/design';import{useRef as _0x5302de,createElement as _0x4c6606,forwardRef as _0x13d357,useState as _0x24f563,useEffect as _0x1d9b38}from'react';import{CollaborationEvent as _0x117a17,parseProtocolChangeset as _0x1a1c61}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x12178f,SessionStatus as _0x2ec079,UniverCollaborationClientPlugin as _0x4883e2}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x109733,SetWorksheetActiveOperation as _0x45b437}from'@univerjs/sheets';import{BehaviorSubject as _0x5ee00e,Subject as _0x13c737}from'rxjs';import{takeUntil as _0x2cd887,throttleTime as _0x3e7564}from'rxjs/operators';import{SetZoomRatioOperation as _0x33d3cc,SetScrollOperation as _0x1ac8e2}from'@univerjs/sheets-ui';function k({ref:_0xb065e,..._0x3a7358}){const _0x361340=_0x94c2f4,{icon:_0x54010d,id:_0x1cfe5c,className:_0x190099,extend:_0x57bce0,..._0x488160}=_0x3a7358,_0x2d8fc4=(_0x361340(0x24a)+_0x1cfe5c+'\x20'+(_0x190099||''))[_0x361340(0x244)](),_0x37b877=_0x5302de('_'+Oe());return G(_0x54010d,''+_0x1cfe5c,{'defIds':_0x54010d[_0x361340(0x1d3)],'idSuffix':_0x37b877[_0x361340(0x26e)]},{'ref':_0xb065e,'className':_0x2d8fc4,..._0x488160},_0x57bce0);}function G(_0x240805,_0x41f09f,_0x555cdc,_0x1cc80c,_0x1bfed9){const _0x28632a=_0x94c2f4;return _0x4c6606(_0x240805[_0x28632a(0x269)],{'key':_0x41f09f,...be(_0x240805,_0x555cdc,_0x1bfed9),..._0x1cc80c},(Ee(_0x240805,_0x555cdc)[_0x28632a(0x20d)]||[])[_0x28632a(0x270)]((_0x1bddaa,_0x1f5413)=>G(_0x1bddaa,_0x41f09f+'-'+_0x240805['tag']+'-'+_0x1f5413,_0x555cdc,void 0x0,_0x1bfed9)));}function be(_0x320310,_0x2e634b,_0x158a5f){const _0x5cf614=_0x94c2f4,_0x1a26f2={..._0x320310['attrs']};_0x158a5f!=null&&_0x158a5f[_0x5cf614(0x227)]&&_0x1a26f2[_0x5cf614(0x239)]===_0x5cf614(0x227)&&(_0x1a26f2['fill']=_0x158a5f[_0x5cf614(0x227)]),_0x320310[_0x5cf614(0x269)]===_0x5cf614(0x208)&&_0x1a26f2['id']&&(_0x1a26f2['id']=_0x1a26f2['id']+_0x2e634b[_0x5cf614(0x260)]),Object['entries'](_0x1a26f2)[_0x5cf614(0x233)](([_0x55f103,_0x18e607])=>{const _0xe5660b=_0x5cf614;_0x55f103===_0xe5660b(0x208)&&typeof _0x18e607==_0xe5660b(0x1d8)&&(_0x1a26f2[_0x55f103]=_0x18e607[_0xe5660b(0x266)](/url\(#(.*)\)/,'url(#$1'+_0x2e634b['idSuffix']+')'));});const {defIds:_0x6c0053}=_0x2e634b;return!_0x6c0053||_0x6c0053['length']===0x0||(_0x320310[_0x5cf614(0x269)]===_0x5cf614(0x224)&&_0x1a26f2[_0x5cf614(0x238)]&&(_0x1a26f2[_0x5cf614(0x238)]=_0x1a26f2[_0x5cf614(0x238)]+_0x2e634b[_0x5cf614(0x260)]),Object[_0x5cf614(0x229)](_0x1a26f2)[_0x5cf614(0x233)](([_0x38bb32,_0x575f36])=>{const _0x106096=_0x5cf614;typeof _0x575f36==_0x106096(0x1d8)&&(_0x1a26f2[_0x38bb32]=_0x575f36[_0x106096(0x266)](/url\(#(.*)\)/,'url(#$1'+_0x2e634b[_0x106096(0x260)]+')'));})),_0x1a26f2;}function Ee(_0x41659d,_0x1cb916){const _0x2cab9c=_0x94c2f4;var _0x4249a2;const {defIds:_0x4e6d2b}=_0x1cb916;return!_0x4e6d2b||_0x4e6d2b['length']===0x0?_0x41659d:_0x41659d[_0x2cab9c(0x269)]===_0x2cab9c(0x22c)&&((_0x4249a2=_0x41659d[_0x2cab9c(0x20d)])!=null&&_0x4249a2[_0x2cab9c(0x234)])?{..._0x41659d,'children':_0x41659d[_0x2cab9c(0x20d)][_0x2cab9c(0x270)](_0x46dd25=>typeof _0x46dd25['attrs']['id']==_0x2cab9c(0x1d8)&&_0x4e6d2b&&_0x4e6d2b[_0x2cab9c(0x25f)](_0x46dd25[_0x2cab9c(0x20b)]['id'])?{..._0x46dd25,'attrs':{..._0x46dd25[_0x2cab9c(0x20b)],'id':_0x46dd25[_0x2cab9c(0x20b)]['id']+_0x1cb916[_0x2cab9c(0x260)]}}:_0x46dd25)}:_0x41659d;}function Oe(){const _0x4f1be8=_0x94c2f4;return Math[_0x4f1be8(0x255)]()[_0x4f1be8(0x219)](0x24)[_0x4f1be8(0x1e5)](0x2,0x8);}k[_0x94c2f4(0x241)]=_0x94c2f4(0x212);const we={'tag':_0x94c2f4(0x25c),'attrs':{'xmlns':_0x94c2f4(0x263),'fill':_0x94c2f4(0x1d1),'viewBox':_0x94c2f4(0x267),'width':_0x94c2f4(0x277),'height':_0x94c2f4(0x277)},'children':[{'tag':_0x94c2f4(0x25d),'attrs':{'fill':_0x94c2f4(0x258),'d':_0x94c2f4(0x235)}},{'tag':_0x94c2f4(0x25d),'attrs':{'fill':_0x94c2f4(0x258),'d':_0x94c2f4(0x26d),'fillRule':_0x94c2f4(0x236),'clipRule':_0x94c2f4(0x236)}}]},W=_0x13d357(function(_0x3fe056,_0x2cc369){const _0x3f646b=_0x94c2f4;return _0x4c6606(k,Object[_0x3f646b(0x1d5)]({},_0x3fe056,{'id':_0x3f646b(0x1fb),'ref':_0x2cc369,'icon':we}));});W[_0x94c2f4(0x241)]='LiveShareIcon';class L extends _0x237410{constructor(){const _0x5a0ee4=_0x94c2f4;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x5a0ee4(0x27b),new Set());}[_0x94c2f4(0x25a)](_0x1dec7d){const _0x4b7c09=_0x94c2f4;return this[_0x4b7c09(0x1ee)][_0x4b7c09(0x26f)](_0x1dec7d),_0x479776(()=>this[_0x4b7c09(0x1ee)][_0x4b7c09(0x25b)](_0x1dec7d));}[_0x94c2f4(0x25e)](_0xc19384){const _0x1e5cd8=_0x94c2f4;return this['_reporters']['add'](_0xc19384),_0x479776(()=>this['_reporters'][_0x1e5cd8(0x25b)](_0xc19384));}['shouldShareOperation'](_0x356b1e){const _0x3460c6=_0x94c2f4;return this[_0x3460c6(0x1ee)]['has'](_0x356b1e);}[_0x94c2f4(0x231)](_0x5d3542){const _0x4197ef=_0x94c2f4;return Array[_0x4197ef(0x1fe)](this[_0x4197ef(0x27b)])[_0x4197ef(0x270)](_0x3f3ad7=>_0x3f3ad7(_0x5d3542));}}var Ne=Object[_0x94c2f4(0x1e3)],Y=(_0x24e75c,_0x508cc0,_0x3de33b,_0x4de27e)=>{const _0x5a3bd5=_0x94c2f4;for(var _0x4fe054=_0x4de27e>0x1?void 0x0:_0x4de27e?Ne(_0x508cc0,_0x3de33b):_0x508cc0,_0x233d13=_0x24e75c[_0x5a3bd5(0x234)]-0x1,_0x9dc5a5;_0x233d13>=0x0;_0x233d13--)(_0x9dc5a5=_0x24e75c[_0x233d13])&&(_0x4fe054=_0x9dc5a5(_0x4fe054)||_0x4fe054);return _0x4fe054;},_=(_0x5ba021,_0x2dc522)=>(_0x103223,_0x4a42bd)=>_0x2dc522(_0x103223,_0x4a42bd,_0x5ba021);let S=class extends _0x3c244d{constructor(_0x11278b,_0x50b451,_0x33cd12){const _0x58aa65=_0x94c2f4;super(),u(this,_0x58aa65(0x272),new Map()),(this[_0x58aa65(0x245)]=_0x11278b,this['_injector']=_0x50b451,this[_0x58aa65(0x1da)]=_0x33cd12,this[_0x58aa65(0x1d2)]());}async[_0x94c2f4(0x274)](_0x30146d){const _0x6d15e1=_0x94c2f4;return this[_0x6d15e1(0x272)]['has'](_0x30146d)||await this[_0x6d15e1(0x23d)](_0x30146d),this['_entities'][_0x6d15e1(0x205)](_0x30146d);}[_0x94c2f4(0x228)](_0x4c17df){var _0x2e4ab1;return(_0x2e4ab1=this['_entities']['get'](_0x4c17df))!=null?_0x2e4ab1:null;}[_0x94c2f4(0x1d2)](){const _0x435494=_0x94c2f4;this['_univerInstanceService'][_0x435494(0x211)](_0x1edb56[_0x435494(0x275)])[_0x435494(0x246)](_0x2cd887(this[_0x435494(0x1fd)]))[_0x435494(0x202)](async _0xe3d952=>{const _0x288c8e=_0x435494,_0x3a31c9=_0xe3d952['getUnitId']();this['_entities']['has'](_0x3a31c9)||this[_0x288c8e(0x23d)](_0x3a31c9);}),this[_0x435494(0x245)][_0x435494(0x1e1)](_0x1edb56[_0x435494(0x275)])['pipe'](_0x2cd887(this[_0x435494(0x1fd)]))[_0x435494(0x202)](_0x45f7ac=>{const _0x59258f=_0x435494,_0x2aeb58=_0x45f7ac[_0x59258f(0x1f2)](),_0x4bb934=this[_0x59258f(0x272)]['get'](_0x2aeb58);_0x4bb934==null||_0x4bb934[_0x59258f(0x1f3)]();});}async['_startLiveShareCoordinator'](_0x488194){const _0x33a5b0=_0x94c2f4,_0x5d3691=await this['_collabSessionService'][_0x33a5b0(0x1f8)](_0x488194),_0x1de098=this[_0x33a5b0(0x204)][_0x33a5b0(0x1eb)](N,_0x488194,_0x5d3691);return _0x1de098[_0x33a5b0(0x225)](),this[_0x33a5b0(0x272)][_0x33a5b0(0x217)](_0x488194,_0x1de098),_0x1de098;}};S=Y([_(0x0,_0x131adf),_(0x1,_0x39e2ff(_0x1af462)),_(0x2,_0x39e2ff(_0x12178f))],S);var c=(_0x221161=>(_0x221161[_0x94c2f4(0x22a)]=_0x94c2f4(0x207),_0x221161['IDLE']=_0x94c2f4(0x1de),_0x221161['FOLLOWING']=_0x94c2f4(0x24b),_0x221161['NOT_FOLLOWING']='not-following',_0x221161['PRESENTING']=_0x94c2f4(0x209),_0x221161))(c||{});const Ce=_0x94c2f4(0x23b),De=0xc8;let N=class extends _0x3c244d{constructor(_0x3c6de8,_0x1e0d6a,_0x48a41f,_0x4d0548,_0x303acf){const _0x2a724f=_0x94c2f4;super(),u(this,'_status$',new _0x5ee00e(_0x2a724f(0x1de))),u(this,_0x2a724f(0x218),this[_0x2a724f(0x1f1)][_0x2a724f(0x223)]()),u(this,_0x2a724f(0x1d2),!0x1),u(this,_0x2a724f(0x1e7),null),u(this,'_presenter',null),(this['_unitID']=_0x3c6de8,this[_0x2a724f(0x20f)]=_0x1e0d6a,this[_0x2a724f(0x1d0)]=_0x48a41f,this[_0x2a724f(0x226)]=_0x4d0548,this[_0x2a724f(0x1fc)]=_0x303acf);}get[_0x94c2f4(0x21e)](){const _0x10c3e8=_0x94c2f4;return this[_0x10c3e8(0x1f1)][_0x10c3e8(0x278)]();}[_0x94c2f4(0x1f3)](){const _0x5ee6ab=_0x94c2f4;var _0x439748;(_0x439748=this[_0x5ee6ab(0x1e7)])==null||_0x439748[_0x5ee6ab(0x1f3)](),this[_0x5ee6ab(0x1f1)]['next'](_0x5ee6ab(0x1de)),this[_0x5ee6ab(0x1f1)][_0x5ee6ab(0x1f6)]();}[_0x94c2f4(0x230)](){return this['_status'];}['init'](){const _0x14d99f=_0x94c2f4;this[_0x14d99f(0x1d2)]||(this['_init']=!0x0,this[_0x14d99f(0x20f)][_0x14d99f(0x210)][_0x14d99f(0x246)](_0x2cd887(this[_0x14d99f(0x1fd)]))[_0x14d99f(0x202)](_0x41ffd8=>{const _0x5407dd=_0x14d99f;switch(_0x41ffd8){case _0x2ec079[_0x5407dd(0x22a)]:this[_0x5407dd(0x1dd)]();break;case _0x2ec079['ONLINE']:this[_0x5407dd(0x1f0)]();break;}}),this[_0x14d99f(0x20f)]['event$']['pipe'](_0x2cd887(this[_0x14d99f(0x1fd)]))[_0x14d99f(0x202)](_0x511b8f=>{const _0x2fbae5=_0x14d99f,{eventID:_0x43efde}=_0x511b8f;switch(_0x43efde){case _0x117a17['LIVESHARE_NEW_HOST']:this[_0x2fbae5(0x1e0)](_0x511b8f);break;case _0x117a17[_0x2fbae5(0x22b)]:this[_0x2fbae5(0x1db)](_0x511b8f);break;case _0x117a17[_0x2fbae5(0x201)]:this['_handleTerminate']();break;case _0x117a17['NEW_CHANGESETS']:this[_0x2fbae5(0x21d)](_0x511b8f);break;}}));}[_0x94c2f4(0x1ff)](){const _0x3ed1ef=_0x94c2f4;this[_0x3ed1ef(0x20f)][_0x3ed1ef(0x1e6)]({'eventID':_0x117a17['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3ed1ef(0x1d7)],'userID':this[_0x3ed1ef(0x20f)][_0x3ed1ef(0x256)]()}},this[_0x3ed1ef(0x1d7)]);}['stopPresenting'](){const _0x3e21c3=_0x94c2f4;this['_status']==='presenting'&&(this[_0x3e21c3(0x1f1)]['next'](_0x3e21c3(0x1de)),this['_collabSession'][_0x3e21c3(0x1e6)]({'eventID':_0x117a17['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x3e21c3(0x1d7)]));}[_0x94c2f4(0x1ef)](){const _0x1b7ca6=_0x94c2f4;this[_0x1b7ca6(0x21e)]===_0x1b7ca6(0x26b)&&(this[_0x1b7ca6(0x1f1)]['next'](_0x1b7ca6(0x24b)),this[_0x1b7ca6(0x216)]());}[_0x94c2f4(0x220)](){const _0x2ad836=_0x94c2f4;this[_0x2ad836(0x21e)]===_0x2ad836(0x24b)&&this[_0x2ad836(0x214)]();}[_0x94c2f4(0x1e0)](_0x3366e7){const _0x15fd2c=_0x94c2f4,{presenter:_0x3fa34a}=_0x3366e7[_0x15fd2c(0x215)],_0x3d7902=this[_0x15fd2c(0x20f)]['getMemberID']();this[_0x15fd2c(0x22f)]=_0x3fa34a,_0x3fa34a===_0x3d7902?(this[_0x15fd2c(0x214)](),this['_startPresenting']()):this[_0x15fd2c(0x21e)]!=='not-following'&&(this['_stopPresenting'](),this[_0x15fd2c(0x216)]());}[_0x94c2f4(0x21c)](){const _0x39d8a9=_0x94c2f4,_0x92349={'eventID':_0x117a17[_0x39d8a9(0x253)]};this['_collabSession']['send'](_0x92349,this['_unitID']);}[_0x94c2f4(0x254)](){const _0x3fc57f=_0x94c2f4;this[_0x3fc57f(0x22f)]=null,this[_0x3fc57f(0x21e)]!=='presenting'&&this[_0x3fc57f(0x249)]();}[_0x94c2f4(0x21d)](_0x4b135a){const _0x5e05f9=_0x94c2f4;if(this[_0x5e05f9(0x21e)]==='following'&&this[_0x5e05f9(0x22f)]===_0x4b135a[_0x5e05f9(0x215)][_0x5e05f9(0x23c)]){const _0x59abe1=_0x1a1c61(_0x4b135a[_0x5e05f9(0x215)])['mutations']['reverse']()[_0x5e05f9(0x1f4)](_0x2e3f06=>_0x2e3f06['id']===_0x109733['id']);if(_0x59abe1){const _0x3b2243=_0x59abe1[_0x5e05f9(0x26a)][_0x5e05f9(0x22d)],_0xfa0724=_0x59abe1[_0x5e05f9(0x26a)][_0x5e05f9(0x259)]['id'];setTimeout(()=>{const _0x2eaf2e=_0x5e05f9;this[_0x2eaf2e(0x1fc)][_0x2eaf2e(0x273)](_0x45b437['id'],{'unitId':_0x3b2243,'subUnitId':_0xfa0724},{'fromCollab':!0x0});});}}}[_0x94c2f4(0x21b)](){const _0x5c5dbd=_0x94c2f4;this[_0x5c5dbd(0x1f1)][_0x5c5dbd(0x1f7)]('presenting');const _0x3eb12d=new Map(),_0x54656=this[_0x5c5dbd(0x1e7)]=new _0x56d0d3();_0x54656[_0x5c5dbd(0x26f)](_0x479776(()=>{const _0xd23b2d=_0x5c5dbd;_0x3eb12d['forEach'](_0x4b4532=>_0x4b4532[_0xd23b2d(0x1f6)]()),_0x3eb12d[_0xd23b2d(0x264)]();})),_0x54656['add'](this[_0x5c5dbd(0x1fc)][_0x5c5dbd(0x257)](_0x516c6c=>{const _0x12b720=_0x5c5dbd;var _0x160f74;if(_0x516c6c[_0x12b720(0x23f)]!==_0x11ab87[_0x12b720(0x22e)]||!this['_liveShareService'][_0x12b720(0x1ea)](_0x516c6c['id']))return;const {id:_0x2e50cc}=_0x516c6c;let _0x42f196;_0x3eb12d[_0x12b720(0x242)](_0x2e50cc)?_0x42f196=_0x3eb12d[_0x12b720(0x205)](_0x2e50cc):(_0x42f196=new _0x13c737(),_0x3eb12d[_0x12b720(0x217)](_0x2e50cc,_0x42f196),_0x42f196[_0x12b720(0x246)](_0x3e7564((_0x160f74=this[_0x12b720(0x1d0)]['getConfig'](Ce))!=null?_0x160f74:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x12b720(0x202)](_0x22c8db=>{const _0x4d1d81=_0x12b720;this[_0x4d1d81(0x20f)][_0x4d1d81(0x1e6)]({'eventID':_0x117a17['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x22c8db['id']]:{'id':_0x22c8db['id'],'params':JSON[_0x4d1d81(0x251)](_0x22c8db[_0x4d1d81(0x26a)])}}}},this[_0x4d1d81(0x1d7)]);})),_0x42f196[_0x12b720(0x1f7)](_0x516c6c);})),this[_0x5c5dbd(0x226)][_0x5c5dbd(0x231)](this[_0x5c5dbd(0x1d7)])[_0x5c5dbd(0x233)](_0x21d879=>this['_collabSession'][_0x5c5dbd(0x1e6)]({'eventID':_0x117a17[_0x5c5dbd(0x22b)],'data':{'unitID':this[_0x5c5dbd(0x1d7)],'operations':{[_0x21d879['id']]:{'id':_0x21d879['id'],'params':JSON[_0x5c5dbd(0x251)](_0x21d879[_0x5c5dbd(0x26a)])}}}},this[_0x5c5dbd(0x1d7)]));}['_stopPresenting'](){const _0x2a0dcb=_0x94c2f4;var _0x2c3d1a;this[_0x2a0dcb(0x1f1)][_0x2a0dcb(0x1f7)](_0x2a0dcb(0x1de)),(_0x2c3d1a=this['_commandDisposable'])==null||_0x2c3d1a[_0x2a0dcb(0x1f3)](),this[_0x2a0dcb(0x1e7)]=null;}['_startFollowing'](){const _0x130462=_0x94c2f4;var _0x54879a;(_0x54879a=this['_commandDisposable'])==null||_0x54879a['dispose'](),this['_status$'][_0x130462(0x1f7)](_0x130462(0x24b));}[_0x94c2f4(0x249)](){const _0x5e30bf=_0x94c2f4;var _0x21248e;this['_status$'][_0x5e30bf(0x1f7)](_0x5e30bf(0x1de)),(_0x21248e=this[_0x5e30bf(0x1e7)])==null||_0x21248e[_0x5e30bf(0x1f3)](),this['_commandDisposable']=null;}[_0x94c2f4(0x214)](){const _0x5a4a24=_0x94c2f4;var _0x134633;this['_status$'][_0x5a4a24(0x1f7)](_0x5a4a24(0x26b)),(_0x134633=this[_0x5a4a24(0x1e7)])==null||_0x134633['dispose']();}[_0x94c2f4(0x1db)](_0x2358d9){const _0x4d8d5d=_0x94c2f4;if(['presenting',_0x4d8d5d(0x26b),_0x4d8d5d(0x207)]['includes'](this[_0x4d8d5d(0x21e)])||!_0x2358d9[_0x4d8d5d(0x215)]['presenter']||_0x2358d9[_0x4d8d5d(0x215)]['presenter']===this[_0x4d8d5d(0x20f)]['getMemberID']())return;this[_0x4d8d5d(0x21e)]===_0x4d8d5d(0x1de)&&this[_0x4d8d5d(0x216)]();const _0x53124e=_0x2358d9[_0x4d8d5d(0x215)][_0x4d8d5d(0x1e9)];Object[_0x4d8d5d(0x1d6)](_0x53124e)['forEach'](_0x39f73c=>{const _0x55a1dc=_0x4d8d5d;this[_0x55a1dc(0x1fc)][_0x55a1dc(0x273)](_0x39f73c['id'],_0x39f73c[_0x55a1dc(0x26a)]?JSON[_0x55a1dc(0x20c)](_0x39f73c['params']):null,{'fromCollab':!0x0});});}[_0x94c2f4(0x1dd)](){const _0x4e765c=_0x94c2f4;var _0x304165;this[_0x4e765c(0x1f1)][_0x4e765c(0x1f7)](_0x4e765c(0x207)),(_0x304165=this['_commandDisposable'])==null||_0x304165[_0x4e765c(0x1f3)]();}[_0x94c2f4(0x1f0)](){const _0x14dc6a=_0x94c2f4;this['_status$']['next'](_0x14dc6a(0x1de)),this['_fetchOperations']();}};N=Y([_(0x2,_0x1163db),_(0x3,_0x39e2ff(L)),_(0x4,_0x3fe997)],N);function _0x5199(){const _0x1a36fe=['_startPresenting','_fetchOperations','_handleNewChangeSets','_status','then','stopFollowing','live-share.config','919047HgGWSl','asObservable','use','init','_liveShareService','colorChannel1','getLiveShareCoordinatorSync','entries','OFFLINE','LIVESHARE_OPERATION','defs','unitId','OPERATION','_presenter','getStatus','getInitialStates','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','forEach','length','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','evenodd','636PCVUKY','xlink:href','fill','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SAME_OPERATION_SHARE_INTERVAL','memberID','_startLiveShareCoordinator','Stop\x20following','type','UNIVER_UNKNOWN','displayName','has','_mountLiveShare','trim','_univerInstanceService','pipe','709408UIgFwJ','NOT_FOLLOWING','_beIdle','univerjs-icon\x20univerjs-icon-','following','unsubscribe','PRESENTING','200yEcOGr','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','stringify','25888YOuzwn','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','random','getMemberID','onCommandExecuted','currentColor','sheet','registerSharedOperation','delete','svg','path','registerInitialStateReporter','includes','idSuffix','Present\x20this\x20document','onStarting','http://www.w3.org/2000/svg','clear','IDLE','replace','0\x200\x2017\x2017','You\x27re\x20not\x20following\x20the\x20presenter','tag','params','not-following','end','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','current','add','map','HEADER_MENU','_entities','executeCommand','getLiveShareCoordinator','UNIVER_SHEET','setConfig','1em','getValue','symbol','UNIVER_LIVE_SHARE_PLUGIN','_reporters','getCurrentTypeOfUnit$','_configService','none','_init','defIds','8190LUoSJV','assign','values','_unitID','string','pluginName','_collabSessionService','_handleOperation','_config','_handleOffline','idle','div','_handleNewHost','getTypeOfUnitDisposed$','Start','getOwnPropertyDescriptor','You\x27re\x20following\x20the\x20presenter','substring','send','_commandDisposable','_uiPartsService','operations','shouldShareOperation','createInstance','button','onRendered','_sharedOperations','startFollowing','_handleOnline','_status$','getUnitId','dispose','find','Start\x20following','complete','next','requireSession','11079GKKPzB','53473HiYgsm','live-share-icon','_commandService','dispose$','from','tryStartPresenting','override','LIVESHARE_TERMINATE','subscribe','univer-size-4','_injector','get','4224688NAsBSz','offline','mask','presenting','disposeWithMe','attrs','parse','children','registerComponent','_collabSession','sessionStatus$','getTypeOfUnitAdded$','UniverIcon','FOLLOWING','_stopFollowing','data','_startFollowing','set','status$','toString','207567JEysXj'];_0x5199=function(){return _0x1a36fe;};return _0x5199();}function Le(){const _0x351e49=_0x94c2f4,_0x36c017=_0x1a3369(S),_0x12c744=_0x1a3369(_0x131adf),_0x5280d1=_0x43c83b(()=>_0x12c744[_0x351e49(0x27c)](_0x1edb56[_0x351e49(0x275)]),void 0x0,!0x1,[]),[_0x45eb19,_0xb80a]=_0x24f563(null),[_0x47808b,_0x235c0a]=_0x24f563(c[_0x351e49(0x265)]),_0x5714da=_0x5302de(null);return _0x1d9b38(()=>(_0x5280d1&&_0x36c017[_0x351e49(0x274)](_0x5280d1['getUnitId']())[_0x351e49(0x21f)](_0x338243=>{const _0x133b34=_0x351e49;_0xb80a(_0x338243),_0x5714da[_0x133b34(0x26e)]=_0x338243['status$'][_0x133b34(0x202)](_0x4152a6=>{_0x235c0a(_0x4152a6);});}),()=>{const _0x1e5e92=_0x351e49;var _0x317318;(_0x317318=_0x5714da[_0x1e5e92(0x26e)])==null||_0x317318[_0x1e5e92(0x24c)](),_0x5714da[_0x1e5e92(0x26e)]=null;}),[_0x5280d1,_0x36c017]),_0x45eb19?_0x3b2e8c(_0x580ca5,{'align':_0x351e49(0x26c),'disabled':_0x47808b===c[_0x351e49(0x22a)],'className':_0x351e49(0x232),'overlay':_0x3b2e8c(Re,{'status':_0x47808b,'coordinator':_0x45eb19}),'children':_0x3b2e8c(_0x351e49(0x1ec),{'className':_0x38bcb7(_0x351e49(0x23a),{'univer-cursor-not-allowed':_0x47808b===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47808b!==c[_0x351e49(0x22a)]}),'type':_0x351e49(0x1ec),'children':_0x3b2e8c(W,{'className':_0x351e49(0x203)})})}):null;}function Re(_0x9e5441){const _0xee2a99=_0x94c2f4,{status:_0x2032fd,coordinator:_0x2a92e9}=_0x9e5441;switch(_0x2032fd){case c[_0xee2a99(0x265)]:return _0x3b2e8c($e,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x213)]:return _0x3b2e8c(xe,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x248)]:return _0x3b2e8c(Pe,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x22a)]:return _0x3b2e8c(Te,{});case c[_0xee2a99(0x24d)]:return _0x3b2e8c(Ae,{'coordinator':_0x2a92e9});default:return null;}}function $e(_0x36800c){const _0x58d5c6=_0x94c2f4,{coordinator:_0x86e0a8}=_0x36800c;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c('div',{'className':_0x58d5c6(0x24f),'children':_0x58d5c6(0x261)}),_0x3b2e8c(_0x4bf6a0,{'onClick':()=>_0x86e0a8[_0x58d5c6(0x1ff)](),'children':_0x58d5c6(0x1e2)})]});}function xe(_0x41074d){const _0x3878ce=_0x94c2f4,{coordinator:_0x519a31}=_0x41074d;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x3878ce(0x1df),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3878ce(0x1e4)}),_0x3b2e8c(_0x4bf6a0,{'onClick':()=>_0x519a31[_0x3878ce(0x220)](),'children':_0x3878ce(0x23e)})]});}function Pe(_0x4209f1){const _0x48fc4a=_0x94c2f4,{coordinator:_0x21a2b7}=_0x4209f1;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x48fc4a(0x1df),{'className':_0x48fc4a(0x24f),'children':_0x48fc4a(0x268)}),_0x3b2e8c(_0x4bf6a0,{'variant':'text','onClick':()=>_0x21a2b7[_0x48fc4a(0x1ef)](),'children':_0x48fc4a(0x1f5)})]});}function Ae(_0x50433d){const _0x13d664=_0x94c2f4,{coordinator:_0x2de63b}=_0x50433d;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x13d664(0x1df),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x3b2e8c(_0x4bf6a0,{'variant':'default','onClick':()=>_0x2de63b['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){return _0x3b2e8c(_0x34fda9,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x94c2f4(0x1e3)],He=(_0x4ee589,_0x41e877,_0x5d2bc7,_0x1ec7e2)=>{for(var _0xf6315a=_0x1ec7e2>0x1?void 0x0:_0x1ec7e2?Fe(_0x41e877,_0x5d2bc7):_0x41e877,_0x357fa3=_0x4ee589['length']-0x1,_0x50ca30;_0x357fa3>=0x0;_0x357fa3--)(_0x50ca30=_0x4ee589[_0x357fa3])&&(_0xf6315a=_0x50ca30(_0xf6315a)||_0xf6315a);return _0xf6315a;},A=(_0x54abe0,_0x111759)=>(_0x10a906,_0xfe785d)=>_0x111759(_0x10a906,_0xfe785d,_0x54abe0);let m=class extends _0x237410{constructor(_0x35f642,_0x326940){const _0x433d42=_0x94c2f4;super(),this[_0x433d42(0x204)]=_0x35f642,this['_uiPartsService']=_0x326940,this['_mountLiveShare']();}[_0x94c2f4(0x243)](){const _0x46b4b5=_0x94c2f4;this[_0x46b4b5(0x20a)](this[_0x46b4b5(0x1e8)][_0x46b4b5(0x20e)](_0x54c386[_0x46b4b5(0x271)],()=>_0x40daf7(Le,this[_0x46b4b5(0x204)])));}};m=He([A(0x0,_0x39e2ff(_0x1af462)),A(0x1,_0x189af9)],m);const ye=_0x94c2f4(0x221),T={};var Ue=Object[_0x94c2f4(0x1e3)],Ve=(_0x4b6f53,_0x3ef43d,_0x15c32b,_0x590121)=>{for(var _0x173e04=_0x590121>0x1?void 0x0:_0x590121?Ue(_0x3ef43d,_0x15c32b):_0x3ef43d,_0x300e9=_0x4b6f53['length']-0x1,_0x20d0df;_0x300e9>=0x0;_0x300e9--)(_0x20d0df=_0x4b6f53[_0x300e9])&&(_0x173e04=_0x20d0df(_0x173e04)||_0x173e04);return _0x173e04;},je=(_0x1dce1c,_0x18628f)=>(_0x4bf7ce,_0x54c527)=>_0x18628f(_0x4bf7ce,_0x54c527,_0x1dce1c);let I=class extends _0x237410{constructor(_0x48fd1b){const _0x517999=_0x94c2f4;super(),this[_0x517999(0x226)]=_0x48fd1b,this['_init']();}['_init'](){const _0x1d05b8=_0x94c2f4;[_0x33d3cc['id'],_0x1ac8e2['id'],_0x45b437['id']][_0x1d05b8(0x233)](_0x2aa60b=>{const _0x3851a6=_0x1d05b8;this[_0x3851a6(0x20a)](this[_0x3851a6(0x226)][_0x3851a6(0x25a)](_0x2aa60b));});}};I=Ve([je(0x0,_0x39e2ff(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x25b41c,_0xc9ab13,_0x373b7a)=>_0xc9ab13 in _0x25b41c?Me(_0x25b41c,_0xc9ab13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x373b7a}):_0x25b41c[_0xc9ab13]=_0x373b7a,We=(_0x448b4b,_0x18ed3d,_0x381973,_0x421da2)=>{const _0x4317f8=_0x94c2f4;for(var _0x39ec83=_0x421da2>0x1?void 0x0:_0x421da2?ke(_0x18ed3d,_0x381973):_0x18ed3d,_0xefb135=_0x448b4b[_0x4317f8(0x234)]-0x1,_0x27f4d5;_0xefb135>=0x0;_0xefb135--)(_0x27f4d5=_0x448b4b[_0xefb135])&&(_0x39ec83=_0x27f4d5(_0x39ec83)||_0x39ec83);return _0x39ec83;},F=(_0x25f3bc,_0x4a93e5)=>(_0x311f14,_0x1147ea)=>_0x4a93e5(_0x311f14,_0x1147ea,_0x25f3bc),B=(_0x24ac65,_0x1c5268,_0x2aba29)=>Ge(_0x24ac65,typeof _0x1c5268!=_0x94c2f4(0x279)?_0x1c5268+'':_0x1c5268,_0x2aba29);const Ye=_0x94c2f4(0x27a);let b=class extends _0x1f099d{constructor(_0x152420=T,_0x59ea89,_0x51de){const _0x2d3149=_0x94c2f4;super(),this[_0x2d3149(0x1dc)]=_0x152420,this[_0x2d3149(0x204)]=_0x59ea89,this[_0x2d3149(0x1d0)]=_0x51de;const {..._0x3f9fb8}=_0x38fee5({},T,this['_config']);this['_configService'][_0x2d3149(0x276)](ye,_0x3f9fb8);}[_0x94c2f4(0x262)](){const _0x172bdc=_0x94c2f4;_0x20cdf0(this[_0x172bdc(0x204)],_0x1c6eec([[L],[S],[I],[m]],this[_0x172bdc(0x1dc)][_0x172bdc(0x200)])),_0x5e0f2d(this['_injector'],[[I]]);}[_0x94c2f4(0x1ed)](){_0x5e0f2d(this['_injector'],[[m]]);}};B(b,_0x94c2f4(0x23f),_0x1edb56[_0x94c2f4(0x240)]),B(b,_0x94c2f4(0x1d9),Ye),b=We([_0x298814(_0x4883e2),F(0x1,_0x39e2ff(_0x1af462)),F(0x2,_0x1163db)],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 _0x1a320d=_0x5c17;(function(_0x482369,_0x47aad5){const _0x385bd1=_0x5c17,_0x524c0c=_0x482369();while(!![]){try{const _0x1768d7=parseInt(_0x385bd1(0x159))/0x1*(parseInt(_0x385bd1(0x1d4))/0x2)+-parseInt(_0x385bd1(0x18d))/0x3+parseInt(_0x385bd1(0x1c7))/0x4*(-parseInt(_0x385bd1(0x1b9))/0x5)+parseInt(_0x385bd1(0x17d))/0x6+-parseInt(_0x385bd1(0x1a8))/0x7*(-parseInt(_0x385bd1(0x152))/0x8)+parseInt(_0x385bd1(0x158))/0x9+-parseInt(_0x385bd1(0x1bf))/0xa;if(_0x1768d7===_0x47aad5)break;else _0x524c0c['push'](_0x524c0c['shift']());}catch(_0x469d6e){_0x524c0c['push'](_0x524c0c['shift']());}}}(_0x5acf,0x9bf86));var J=Object[_0x1a320d(0x191)],K=(_0x459e84,_0x1eae15,_0xf2e47a)=>_0x1eae15 in _0x459e84?J(_0x459e84,_0x1eae15,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf2e47a}):_0x459e84[_0x1eae15]=_0xf2e47a,u=(_0x27d2e8,_0x4fd25d,_0x5b1762)=>K(_0x27d2e8,typeof _0x4fd25d!=_0x1a320d(0x1ce)?_0x4fd25d+'':_0x4fd25d,_0x5b1762);import{Disposable as _0x22e76f,toDisposable as _0x23fd4f,IUniverInstanceService as _0x5cced6,Inject as _0x40adf3,Injector as _0x583ec,IConfigService as _0x4b1494,ICommandService as _0x6bae6e,RxDisposable as _0x30c6d8,UniverInstanceType as _0x4a3c1a,DisposableCollection as _0x1e7ac4,CommandType as _0x58a3dd,DependentOn as _0x2e03ab,Plugin as _0x8266cb,merge as _0x3cf1c7,registerDependencies as _0x4deb1d,mergeOverrideWithDependencies as _0x445e7c,touchDependencies as _0x3ab3b4}from'@univerjs/core';import{useDependency as _0x10153b,useObservable as _0x4aee64,IUIPartsService as _0x43a13b,BuiltInUIPart as _0x938492,connectInjector as _0x5274b2}from'@univerjs/ui';import{jsx as _0x6ec0de,jsxs as _0xfaa159,Fragment as _0x5ab3f7}from'react/jsx-runtime';function _0x5acf(){const _0x4badcf=['init','_configService','getCurrentTypeOfUnit$','displayName','getTypeOfUnitDisposed$','following','none','LIVESHARE_NEW_HOST','toString','getInitialStates','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$','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareIcon','not-following','executeCommand','svg','delete','Present\x20this\x20document','path','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','_unitID','offline','getLiveShareCoordinatorSync','unitId','createInstance','getMemberID','type','text','then','Start','div','0\x200\x2017\x2017','_collabSessionService','_injector','_entities','assign','registerComponent','colorChannel1','_liveShareService','56zriQIU','string','univerjs-icon\x20univerjs-icon-','get','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','5056497qMfJrN','4myYFir','pipe','ONLINE','LIVESHARE_FETCH_OPERATIONS','UniverIcon','startFollowing','dispose$','set','getValue','setConfig','_collabSession','NEW_CHANGESETS','_presenter','current','next','getConfig','You\x27re\x20presenting\x20the\x20document','sheet','_beIdle','_fetchOperations','xlink:href','live-share.config','_uiPartsService','params','_mountLiveShare','_startFollowing','_handleOperation','OPERATION','_handleOnline','_startPresenting','registerSharedOperation','stopFollowing','_init','operations','1em','memberID','1846068TGxuFk','shouldShareOperation','OFFLINE','send','onCommandExecuted','random','IDLE','_startLiveShareCoordinator','asObservable','attrs','You\x27re\x20following\x20the\x20presenter','_univerInstanceService','forEach','_status','FOLLOWING','presenting','3006483AkmFLV','complete','tag','idSuffix','defineProperty','_reporters','SAME_OPERATION_SHARE_INTERVAL','getOwnPropertyDescriptor','idle','reverse','http://www.w3.org/2000/svg','children','mask','Stop\x20presenting','LIVESHARE_REQUEST_HOST','stringify','_handleNewChangeSets','_config','defIds','entries','currentColor','_handleNewHost','LIVESHARE_OPERATION','getTypeOfUnitAdded$','_stopFollowing','You\x27re\x20not\x20following\x20the\x20presenter','_stopPresenting','431284XWPqCF','override','length','_handleTerminate','getUnitId','disposeWithMe','clear','sessionStatus$','_commandDisposable','defs','button','data','use','PRESENTING','dispose','_commandService','mutations','175XUZVgf','UNIVER_UNKNOWN','presenter','add','trim','url(#$1','2140660SFBFJq','You\x27are\x20offline.','onRendered','evenodd','_status$','tryStartPresenting','requireSession','subscribe','63128KoDgYj','NOT_FOLLOWING','_sharedOperations','_handleOffline','from','UNIVER_SHEET','replace','symbol','LIVESHARE_TERMINATE','fill','registerInitialStateReporter','stopPresenting','has','553328YyYSMq','getLiveShareCoordinator','onStarting','includes'];_0x5acf=function(){return _0x4badcf;};return _0x5acf();}import{Dropdown as _0x21523d,clsx as _0x45ffcb,Button as _0x5c3ffa}from'@univerjs/design';import{useRef as _0x3f2369,createElement as _0x1daeac,forwardRef as _0x374345,useState as _0x93f16,useEffect as _0x57a314}from'react';import{CollaborationEvent as _0x31b5eb,parseProtocolChangeset as _0x5f34f6}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3a9f1b,SessionStatus as _0xbf29a1,UniverCollaborationClientPlugin as _0x4e4d69}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1d33ea,SetWorksheetActiveOperation as _0x2ab6bf}from'@univerjs/sheets';function _0x5c17(_0x509ad9,_0x1126d7){_0x509ad9=_0x509ad9-0x12f;const _0x5acfee=_0x5acf();let _0x5c170d=_0x5acfee[_0x509ad9];return _0x5c170d;}import{BehaviorSubject as _0x196284,Subject as _0x3f5df2}from'rxjs';import{takeUntil as _0x4ef798,throttleTime as _0x111800}from'rxjs/operators';import{SetZoomRatioOperation as _0x327864,SetScrollOperation as _0x13e74f}from'@univerjs/sheets-ui';function k({ref:_0x58dcde,..._0x2b4d06}){const _0x3b93eb=_0x1a320d,{icon:_0x4ad1af,id:_0x30287a,className:_0x324e1f,extend:_0x25e315,..._0x45e3f3}=_0x2b4d06,_0xfec8da=(_0x3b93eb(0x154)+_0x30287a+'\x20'+(_0x324e1f||''))[_0x3b93eb(0x1bd)](),_0x436925=_0x3f2369('_'+Oe());return G(_0x4ad1af,''+_0x30287a,{'defIds':_0x4ad1af[_0x3b93eb(0x19f)],'idSuffix':_0x436925[_0x3b93eb(0x166)]},{'ref':_0x58dcde,'className':_0xfec8da,..._0x45e3f3},_0x25e315);}function G(_0x4a61c3,_0x1cf91a,_0x4c7664,_0x36a402,_0x285656){const _0x57cc38=_0x1a320d;return _0x1daeac(_0x4a61c3[_0x57cc38(0x18f)],{'key':_0x1cf91a,...be(_0x4a61c3,_0x4c7664,_0x285656),..._0x36a402},(Ee(_0x4a61c3,_0x4c7664)[_0x57cc38(0x198)]||[])[_0x57cc38(0x13e)]((_0x51aad0,_0x3da638)=>G(_0x51aad0,_0x1cf91a+'-'+_0x4a61c3['tag']+'-'+_0x3da638,_0x4c7664,void 0x0,_0x285656)));}function be(_0x345327,_0x1992e5,_0x2ddc6c){const _0x49f82c=_0x1a320d,_0x23bfa8={..._0x345327[_0x49f82c(0x186)]};_0x2ddc6c!=null&&_0x2ddc6c['colorChannel1']&&_0x23bfa8['fill']===_0x49f82c(0x150)&&(_0x23bfa8[_0x49f82c(0x1d0)]=_0x2ddc6c[_0x49f82c(0x150)]),_0x345327['tag']===_0x49f82c(0x199)&&_0x23bfa8['id']&&(_0x23bfa8['id']=_0x23bfa8['id']+_0x1992e5['idSuffix']),Object[_0x49f82c(0x1a0)](_0x23bfa8)['forEach'](([_0x3451b5,_0x1ff48d])=>{const _0x20f3e3=_0x49f82c;_0x3451b5===_0x20f3e3(0x199)&&typeof _0x1ff48d==_0x20f3e3(0x153)&&(_0x23bfa8[_0x3451b5]=_0x1ff48d['replace'](/url\(#(.*)\)/,'url(#$1'+_0x1992e5[_0x20f3e3(0x190)]+')'));});const {defIds:_0x30010a}=_0x1992e5;return!_0x30010a||_0x30010a[_0x49f82c(0x1aa)]===0x0||(_0x345327['tag']===_0x49f82c(0x1b4)&&_0x23bfa8[_0x49f82c(0x16d)]&&(_0x23bfa8[_0x49f82c(0x16d)]=_0x23bfa8[_0x49f82c(0x16d)]+_0x1992e5['idSuffix']),Object[_0x49f82c(0x1a0)](_0x23bfa8)['forEach'](([_0x8325ac,_0x5458f4])=>{const _0xd46eab=_0x49f82c;typeof _0x5458f4==_0xd46eab(0x153)&&(_0x23bfa8[_0x8325ac]=_0x5458f4[_0xd46eab(0x1cd)](/url\(#(.*)\)/,_0xd46eab(0x1be)+_0x1992e5['idSuffix']+')'));})),_0x23bfa8;}function Ee(_0xb1e05,_0x131a8e){const _0x32c11e=_0x1a320d;var _0xd6a753;const {defIds:_0x201670}=_0x131a8e;return!_0x201670||_0x201670[_0x32c11e(0x1aa)]===0x0?_0xb1e05:_0xb1e05[_0x32c11e(0x18f)]===_0x32c11e(0x1b1)&&((_0xd6a753=_0xb1e05['children'])!=null&&_0xd6a753['length'])?{..._0xb1e05,'children':_0xb1e05[_0x32c11e(0x198)][_0x32c11e(0x13e)](_0x704f8=>typeof _0x704f8[_0x32c11e(0x186)]['id']=='string'&&_0x201670&&_0x201670[_0x32c11e(0x1d7)](_0x704f8[_0x32c11e(0x186)]['id'])?{..._0x704f8,'attrs':{..._0x704f8['attrs'],'id':_0x704f8[_0x32c11e(0x186)]['id']+_0x131a8e[_0x32c11e(0x190)]}}:_0x704f8)}:_0xb1e05;}function Oe(){const _0x498d16=_0x1a320d;return Math[_0x498d16(0x182)]()[_0x498d16(0x131)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x1a320d(0x15d);const we={'tag':_0x1a320d(0x139),'attrs':{'xmlns':_0x1a320d(0x197),'fill':_0x1a320d(0x12f),'viewBox':_0x1a320d(0x14a),'width':_0x1a320d(0x17b),'height':_0x1a320d(0x17b)},'children':[{'tag':_0x1a320d(0x13c),'attrs':{'fill':_0x1a320d(0x1a1),'d':_0x1a320d(0x157)}},{'tag':_0x1a320d(0x13c),'attrs':{'fill':'currentColor','d':_0x1a320d(0x133),'fillRule':_0x1a320d(0x1c2),'clipRule':'evenodd'}}]},W=_0x374345(function(_0x4fd60b,_0x280bd1){const _0x2de3fc=_0x1a320d;return _0x1daeac(k,Object[_0x2de3fc(0x14e)]({},_0x4fd60b,{'id':'live-share-icon','ref':_0x280bd1,'icon':we}));});W[_0x1a320d(0x1db)]=_0x1a320d(0x136);class L extends _0x22e76f{constructor(){const _0x11c5a6=_0x1a320d;super(...arguments),u(this,_0x11c5a6(0x1c9),new Set()),u(this,_0x11c5a6(0x192),new Set());}[_0x1a320d(0x177)](_0x3a30b7){const _0x5c880b=_0x1a320d;return this[_0x5c880b(0x1c9)][_0x5c880b(0x1bc)](_0x3a30b7),_0x23fd4f(()=>this['_sharedOperations'][_0x5c880b(0x13a)](_0x3a30b7));}[_0x1a320d(0x1d1)](_0x4573a1){const _0x22e8f0=_0x1a320d;return this[_0x22e8f0(0x192)][_0x22e8f0(0x1bc)](_0x4573a1),_0x23fd4f(()=>this[_0x22e8f0(0x192)]['delete'](_0x4573a1));}[_0x1a320d(0x17e)](_0x183e75){const _0xd3837a=_0x1a320d;return this[_0xd3837a(0x1c9)][_0xd3837a(0x1d3)](_0x183e75);}[_0x1a320d(0x132)](_0xbcb55d){const _0x26cdc3=_0x1a320d;return Array[_0x26cdc3(0x1cb)](this['_reporters'])[_0x26cdc3(0x13e)](_0x3670bb=>_0x3670bb(_0xbcb55d));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x17dcbb,_0x32cb04,_0xbffd7,_0x4d5543)=>{const _0x386c1e=_0x1a320d;for(var _0x322832=_0x4d5543>0x1?void 0x0:_0x4d5543?Ne(_0x32cb04,_0xbffd7):_0x32cb04,_0x2e5547=_0x17dcbb[_0x386c1e(0x1aa)]-0x1,_0x6a6792;_0x2e5547>=0x0;_0x2e5547--)(_0x6a6792=_0x17dcbb[_0x2e5547])&&(_0x322832=_0x6a6792(_0x322832)||_0x322832);return _0x322832;},_=(_0xb4a89b,_0x3edb71)=>(_0x2f0cea,_0x57b924)=>_0x3edb71(_0x2f0cea,_0x57b924,_0xb4a89b);let S=class extends _0x30c6d8{constructor(_0x4d9c59,_0x26d963,_0x377ec6){const _0x4058d9=_0x1a320d;super(),u(this,_0x4058d9(0x14d),new Map()),(this[_0x4058d9(0x188)]=_0x4d9c59,this[_0x4058d9(0x14c)]=_0x26d963,this['_collabSessionService']=_0x377ec6,this[_0x4058d9(0x179)]());}async['getLiveShareCoordinator'](_0x42cdd9){const _0x5a169c=_0x1a320d;return this['_entities']['has'](_0x42cdd9)||await this[_0x5a169c(0x184)](_0x42cdd9),this[_0x5a169c(0x14d)][_0x5a169c(0x155)](_0x42cdd9);}[_0x1a320d(0x141)](_0x4de21b){const _0x43ded6=_0x1a320d;var _0x2e1084;return(_0x2e1084=this[_0x43ded6(0x14d)][_0x43ded6(0x155)](_0x4de21b))!=null?_0x2e1084:null;}['_init'](){const _0x8ce0da=_0x1a320d;this[_0x8ce0da(0x188)][_0x8ce0da(0x1a4)](_0x4a3c1a[_0x8ce0da(0x1cc)])['pipe'](_0x4ef798(this[_0x8ce0da(0x15f)]))[_0x8ce0da(0x1c6)](async _0x363b4d=>{const _0x42665d=_0x8ce0da,_0x3c3250=_0x363b4d['getUnitId']();this[_0x42665d(0x14d)][_0x42665d(0x1d3)](_0x3c3250)||this['_startLiveShareCoordinator'](_0x3c3250);}),this[_0x8ce0da(0x188)][_0x8ce0da(0x1dc)](_0x4a3c1a[_0x8ce0da(0x1cc)])[_0x8ce0da(0x15a)](_0x4ef798(this[_0x8ce0da(0x15f)]))[_0x8ce0da(0x1c6)](_0xb357e9=>{const _0x3c5aec=_0x8ce0da,_0x2beeae=_0xb357e9[_0x3c5aec(0x1ac)](),_0x3e918f=this[_0x3c5aec(0x14d)][_0x3c5aec(0x155)](_0x2beeae);_0x3e918f==null||_0x3e918f['dispose']();});}async[_0x1a320d(0x184)](_0x50cf5e){const _0x364341=_0x1a320d,_0x434137=await this[_0x364341(0x14b)][_0x364341(0x1c5)](_0x50cf5e),_0x208dde=this['_injector'][_0x364341(0x143)](N,_0x50cf5e,_0x434137);return _0x208dde[_0x364341(0x1d8)](),this[_0x364341(0x14d)][_0x364341(0x160)](_0x50cf5e,_0x208dde),_0x208dde;}};S=Y([_(0x0,_0x5cced6),_(0x1,_0x40adf3(_0x583ec)),_(0x2,_0x40adf3(_0x3a9f1b))],S);var c=(_0x179c52=>(_0x179c52[_0x1a320d(0x17f)]=_0x1a320d(0x140),_0x179c52[_0x1a320d(0x183)]=_0x1a320d(0x195),_0x179c52[_0x1a320d(0x18b)]=_0x1a320d(0x1dd),_0x179c52['NOT_FOLLOWING']='not-following',_0x179c52['PRESENTING']=_0x1a320d(0x18c),_0x179c52))(c||{});const Ce=_0x1a320d(0x193),De=0xc8;let N=class extends _0x30c6d8{constructor(_0x189a71,_0x232504,_0x4e46ce,_0x27fe31,_0x292cb4){const _0x3cdee4=_0x1a320d;super(),u(this,'_status$',new _0x196284(_0x3cdee4(0x195))),u(this,_0x3cdee4(0x134),this[_0x3cdee4(0x1c3)][_0x3cdee4(0x185)]()),u(this,'_init',!0x1),u(this,_0x3cdee4(0x1b0),null),u(this,_0x3cdee4(0x165),null),(this[_0x3cdee4(0x13f)]=_0x189a71,this[_0x3cdee4(0x163)]=_0x232504,this['_configService']=_0x4e46ce,this[_0x3cdee4(0x151)]=_0x27fe31,this[_0x3cdee4(0x1b7)]=_0x292cb4);}get[_0x1a320d(0x18a)](){const _0xf84692=_0x1a320d;return this[_0xf84692(0x1c3)][_0xf84692(0x161)]();}[_0x1a320d(0x1b6)](){const _0x570a4b=_0x1a320d;var _0x59bf4a;(_0x59bf4a=this[_0x570a4b(0x1b0)])==null||_0x59bf4a[_0x570a4b(0x1b6)](),this[_0x570a4b(0x1c3)][_0x570a4b(0x167)](_0x570a4b(0x195)),this['_status$']['complete']();}['getStatus'](){return this['_status'];}['init'](){const _0x6d100d=_0x1a320d;this[_0x6d100d(0x179)]||(this[_0x6d100d(0x179)]=!0x0,this['_collabSession'][_0x6d100d(0x1af)]['pipe'](_0x4ef798(this[_0x6d100d(0x15f)]))[_0x6d100d(0x1c6)](_0x3a3eee=>{const _0x2df0b3=_0x6d100d;switch(_0x3a3eee){case _0xbf29a1[_0x2df0b3(0x17f)]:this[_0x2df0b3(0x1ca)]();break;case _0xbf29a1[_0x2df0b3(0x15b)]:this[_0x2df0b3(0x175)]();break;}}),this[_0x6d100d(0x163)]['event$'][_0x6d100d(0x15a)](_0x4ef798(this[_0x6d100d(0x15f)]))['subscribe'](_0x1872ab=>{const _0x512ff0=_0x6d100d,{eventID:_0x58233e}=_0x1872ab;switch(_0x58233e){case _0x31b5eb[_0x512ff0(0x130)]:this[_0x512ff0(0x1a2)](_0x1872ab);break;case _0x31b5eb[_0x512ff0(0x1a3)]:this[_0x512ff0(0x173)](_0x1872ab);break;case _0x31b5eb[_0x512ff0(0x1cf)]:this[_0x512ff0(0x1ab)]();break;case _0x31b5eb[_0x512ff0(0x164)]:this[_0x512ff0(0x19d)](_0x1872ab);break;}}));}[_0x1a320d(0x1c4)](){const _0x59db57=_0x1a320d;this[_0x59db57(0x163)][_0x59db57(0x180)]({'eventID':_0x31b5eb[_0x59db57(0x19b)],'data':{'unitID':this['_unitID'],'userID':this[_0x59db57(0x163)][_0x59db57(0x144)]()}},this[_0x59db57(0x13f)]);}['stopPresenting'](){const _0x1bec8e=_0x1a320d;this['_status']==='presenting'&&(this[_0x1bec8e(0x1c3)][_0x1bec8e(0x167)](_0x1bec8e(0x195)),this[_0x1bec8e(0x163)]['send']({'eventID':_0x31b5eb[_0x1bec8e(0x1cf)],'data':{'unitID':this['_unitID']}},this[_0x1bec8e(0x13f)]));}[_0x1a320d(0x15e)](){const _0x45de91=_0x1a320d;this[_0x45de91(0x18a)]===_0x45de91(0x137)&&(this[_0x45de91(0x1c3)][_0x45de91(0x167)](_0x45de91(0x1dd)),this[_0x45de91(0x172)]());}[_0x1a320d(0x178)](){const _0x252c07=_0x1a320d;this[_0x252c07(0x18a)]===_0x252c07(0x1dd)&&this[_0x252c07(0x1a5)]();}[_0x1a320d(0x1a2)](_0x17e015){const _0x3515f0=_0x1a320d,{presenter:_0x244b47}=_0x17e015[_0x3515f0(0x1b3)],_0x1860a3=this['_collabSession']['getMemberID']();this[_0x3515f0(0x165)]=_0x244b47,_0x244b47===_0x1860a3?(this[_0x3515f0(0x1a5)](),this['_startPresenting']()):this[_0x3515f0(0x18a)]!==_0x3515f0(0x137)&&(this[_0x3515f0(0x1a7)](),this[_0x3515f0(0x172)]());}[_0x1a320d(0x16c)](){const _0x53c076=_0x1a320d,_0x44be4d={'eventID':_0x31b5eb[_0x53c076(0x15c)]};this[_0x53c076(0x163)]['send'](_0x44be4d,this[_0x53c076(0x13f)]);}[_0x1a320d(0x1ab)](){const _0x3f3bda=_0x1a320d;this[_0x3f3bda(0x165)]=null,this[_0x3f3bda(0x18a)]!==_0x3f3bda(0x18c)&&this[_0x3f3bda(0x16b)]();}['_handleNewChangeSets'](_0x3646e7){const _0x3c1208=_0x1a320d;if(this[_0x3c1208(0x18a)]===_0x3c1208(0x1dd)&&this[_0x3c1208(0x165)]===_0x3646e7[_0x3c1208(0x1b3)][_0x3c1208(0x17c)]){const _0x299eab=_0x5f34f6(_0x3646e7[_0x3c1208(0x1b3)])[_0x3c1208(0x1b8)][_0x3c1208(0x196)]()['find'](_0x250cee=>_0x250cee['id']===_0x1d33ea['id']);if(_0x299eab){const _0x2d8b2c=_0x299eab[_0x3c1208(0x170)][_0x3c1208(0x142)],_0x495cfa=_0x299eab[_0x3c1208(0x170)][_0x3c1208(0x16a)]['id'];setTimeout(()=>{const _0x52f657=_0x3c1208;this[_0x52f657(0x1b7)][_0x52f657(0x138)](_0x2ab6bf['id'],{'unitId':_0x2d8b2c,'subUnitId':_0x495cfa},{'fromCollab':!0x0});});}}}[_0x1a320d(0x176)](){const _0x10b629=_0x1a320d;this[_0x10b629(0x1c3)][_0x10b629(0x167)]('presenting');const _0x2183ab=new Map(),_0x294ec1=this[_0x10b629(0x1b0)]=new _0x1e7ac4();_0x294ec1[_0x10b629(0x1bc)](_0x23fd4f(()=>{const _0x21082a=_0x10b629;_0x2183ab[_0x21082a(0x189)](_0x14e40e=>_0x14e40e[_0x21082a(0x18e)]()),_0x2183ab[_0x21082a(0x1ae)]();})),_0x294ec1[_0x10b629(0x1bc)](this[_0x10b629(0x1b7)][_0x10b629(0x181)](_0xbad47b=>{const _0x347c6e=_0x10b629;var _0x59d098;if(_0xbad47b[_0x347c6e(0x145)]!==_0x58a3dd[_0x347c6e(0x174)]||!this[_0x347c6e(0x151)][_0x347c6e(0x17e)](_0xbad47b['id']))return;const {id:_0x595dbb}=_0xbad47b;let _0x15ca23;_0x2183ab[_0x347c6e(0x1d3)](_0x595dbb)?_0x15ca23=_0x2183ab[_0x347c6e(0x155)](_0x595dbb):(_0x15ca23=new _0x3f5df2(),_0x2183ab[_0x347c6e(0x160)](_0x595dbb,_0x15ca23),_0x15ca23[_0x347c6e(0x15a)](_0x111800((_0x59d098=this[_0x347c6e(0x1d9)][_0x347c6e(0x168)](Ce))!=null?_0x59d098:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x347c6e(0x1c6)](_0x22a3af=>{const _0x1c1f6b=_0x347c6e;this['_collabSession']['send']({'eventID':_0x31b5eb['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1c1f6b(0x13f)],'operations':{[_0x22a3af['id']]:{'id':_0x22a3af['id'],'params':JSON[_0x1c1f6b(0x19c)](_0x22a3af[_0x1c1f6b(0x170)])}}}},this[_0x1c1f6b(0x13f)]);})),_0x15ca23[_0x347c6e(0x167)](_0xbad47b);})),this['_liveShareService'][_0x10b629(0x132)](this['_unitID'])['forEach'](_0x2c0971=>this[_0x10b629(0x163)][_0x10b629(0x180)]({'eventID':_0x31b5eb[_0x10b629(0x1a3)],'data':{'unitID':this[_0x10b629(0x13f)],'operations':{[_0x2c0971['id']]:{'id':_0x2c0971['id'],'params':JSON[_0x10b629(0x19c)](_0x2c0971[_0x10b629(0x170)])}}}},this[_0x10b629(0x13f)]));}['_stopPresenting'](){const _0x47a76a=_0x1a320d;var _0x4bf68f;this[_0x47a76a(0x1c3)][_0x47a76a(0x167)](_0x47a76a(0x195)),(_0x4bf68f=this[_0x47a76a(0x1b0)])==null||_0x4bf68f[_0x47a76a(0x1b6)](),this[_0x47a76a(0x1b0)]=null;}[_0x1a320d(0x172)](){const _0x5467e9=_0x1a320d;var _0x516215;(_0x516215=this[_0x5467e9(0x1b0)])==null||_0x516215[_0x5467e9(0x1b6)](),this[_0x5467e9(0x1c3)]['next'](_0x5467e9(0x1dd));}['_beIdle'](){const _0x442670=_0x1a320d;var _0x58e85c;this[_0x442670(0x1c3)][_0x442670(0x167)](_0x442670(0x195)),(_0x58e85c=this[_0x442670(0x1b0)])==null||_0x58e85c[_0x442670(0x1b6)](),this['_commandDisposable']=null;}[_0x1a320d(0x1a5)](){const _0x5e8b56=_0x1a320d;var _0xfbd56e;this['_status$'][_0x5e8b56(0x167)](_0x5e8b56(0x137)),(_0xfbd56e=this[_0x5e8b56(0x1b0)])==null||_0xfbd56e[_0x5e8b56(0x1b6)]();}['_handleOperation'](_0x38833d){const _0x5f227a=_0x1a320d;if([_0x5f227a(0x18c),_0x5f227a(0x137),_0x5f227a(0x140)][_0x5f227a(0x1d7)](this[_0x5f227a(0x18a)])||!_0x38833d['data'][_0x5f227a(0x1bb)]||_0x38833d['data']['presenter']===this[_0x5f227a(0x163)][_0x5f227a(0x144)]())return;this[_0x5f227a(0x18a)]==='idle'&&this[_0x5f227a(0x172)]();const _0x37d890=_0x38833d[_0x5f227a(0x1b3)][_0x5f227a(0x17a)];Object['values'](_0x37d890)[_0x5f227a(0x189)](_0x3dc061=>{const _0x1f53fb=_0x5f227a;this[_0x1f53fb(0x1b7)][_0x1f53fb(0x138)](_0x3dc061['id'],_0x3dc061[_0x1f53fb(0x170)]?JSON['parse'](_0x3dc061[_0x1f53fb(0x170)]):null,{'fromCollab':!0x0});});}[_0x1a320d(0x1ca)](){const _0x51ce04=_0x1a320d;var _0x2b4df0;this[_0x51ce04(0x1c3)][_0x51ce04(0x167)](_0x51ce04(0x140)),(_0x2b4df0=this[_0x51ce04(0x1b0)])==null||_0x2b4df0['dispose']();}[_0x1a320d(0x175)](){const _0x402a59=_0x1a320d;this['_status$'][_0x402a59(0x167)](_0x402a59(0x195)),this[_0x402a59(0x16c)]();}};N=Y([_(0x2,_0x4b1494),_(0x3,_0x40adf3(L)),_(0x4,_0x6bae6e)],N);function Le(){const _0x1ffff2=_0x1a320d,_0x5a2053=_0x10153b(S),_0x65d2b4=_0x10153b(_0x5cced6),_0x52c98a=_0x4aee64(()=>_0x65d2b4[_0x1ffff2(0x1da)](_0x4a3c1a[_0x1ffff2(0x1cc)]),void 0x0,!0x1,[]),[_0x2195de,_0x3a98dc]=_0x93f16(null),[_0x49e489,_0x1cbb82]=_0x93f16(c['IDLE']),_0xdfbfdf=_0x3f2369(null);return _0x57a314(()=>(_0x52c98a&&_0x5a2053[_0x1ffff2(0x1d5)](_0x52c98a[_0x1ffff2(0x1ac)]())[_0x1ffff2(0x147)](_0xfd85fd=>{const _0x59c866=_0x1ffff2;_0x3a98dc(_0xfd85fd),_0xdfbfdf[_0x59c866(0x166)]=_0xfd85fd[_0x59c866(0x134)][_0x59c866(0x1c6)](_0x1b80ff=>{_0x1cbb82(_0x1b80ff);});}),()=>{const _0x20c5a5=_0x1ffff2;var _0x3c8a47;(_0x3c8a47=_0xdfbfdf[_0x20c5a5(0x166)])==null||_0x3c8a47['unsubscribe'](),_0xdfbfdf['current']=null;}),[_0x52c98a,_0x5a2053]),_0x2195de?_0x6ec0de(_0x21523d,{'align':'end','disabled':_0x49e489===c['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x6ec0de(Re,{'status':_0x49e489,'coordinator':_0x2195de}),'children':_0x6ec0de(_0x1ffff2(0x1b2),{'className':_0x45ffcb(_0x1ffff2(0x13d),{'univer-cursor-not-allowed':_0x49e489===c[_0x1ffff2(0x17f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x49e489!==c['OFFLINE']}),'type':'button','children':_0x6ec0de(W,{'className':'univer-size-4'})})}):null;}function Re(_0x18de62){const _0xb5f1e2=_0x1a320d,{status:_0x315f7c,coordinator:_0xf819f9}=_0x18de62;switch(_0x315f7c){case c[_0xb5f1e2(0x183)]:return _0x6ec0de($e,{'coordinator':_0xf819f9});case c[_0xb5f1e2(0x18b)]:return _0x6ec0de(xe,{'coordinator':_0xf819f9});case c[_0xb5f1e2(0x1c8)]:return _0x6ec0de(Pe,{'coordinator':_0xf819f9});case c['OFFLINE']:return _0x6ec0de(Te,{});case c[_0xb5f1e2(0x1b5)]:return _0x6ec0de(Ae,{'coordinator':_0xf819f9});default:return null;}}function $e(_0x15f916){const _0x4dad7a=_0x1a320d,{coordinator:_0x1f1be8}=_0x15f916;return _0xfaa159(_0x5ab3f7,{'children':[_0x6ec0de('div',{'className':_0x4dad7a(0x135),'children':_0x4dad7a(0x13b)}),_0x6ec0de(_0x5c3ffa,{'onClick':()=>_0x1f1be8['tryStartPresenting'](),'children':_0x4dad7a(0x148)})]});}function xe(_0x476356){const _0x5c921e=_0x1a320d,{coordinator:_0x45a928}=_0x476356;return _0xfaa159(_0x5ab3f7,{'children':[_0x6ec0de(_0x5c921e(0x149),{'className':_0x5c921e(0x135),'children':_0x5c921e(0x187)}),_0x6ec0de(_0x5c3ffa,{'onClick':()=>_0x45a928[_0x5c921e(0x178)](),'children':'Stop\x20following'})]});}function Pe(_0x29dc3c){const _0x153626=_0x1a320d,{coordinator:_0x3e0162}=_0x29dc3c;return _0xfaa159(_0x5ab3f7,{'children':[_0x6ec0de(_0x153626(0x149),{'className':_0x153626(0x135),'children':_0x153626(0x1a6)}),_0x6ec0de(_0x5c3ffa,{'variant':_0x153626(0x146),'onClick':()=>_0x3e0162[_0x153626(0x15e)](),'children':'Start\x20following'})]});}function Ae(_0x440a6e){const _0x539289=_0x1a320d,{coordinator:_0x3c5a31}=_0x440a6e;return _0xfaa159(_0x5ab3f7,{'children':[_0x6ec0de(_0x539289(0x149),{'className':_0x539289(0x135),'children':_0x539289(0x169)}),_0x6ec0de(_0x5c3ffa,{'variant':'default','onClick':()=>_0x3c5a31[_0x539289(0x1d2)](),'children':_0x539289(0x19a)})]});}function Te(){const _0x43ceda=_0x1a320d;return _0x6ec0de(_0x5ab3f7,{'children':_0x43ceda(0x1c0)});}var Fe=Object[_0x1a320d(0x194)],He=(_0x138ccf,_0x258fc4,_0xf19604,_0x2798cb)=>{const _0x3ef04a=_0x1a320d;for(var _0x10eb4a=_0x2798cb>0x1?void 0x0:_0x2798cb?Fe(_0x258fc4,_0xf19604):_0x258fc4,_0x4850b6=_0x138ccf[_0x3ef04a(0x1aa)]-0x1,_0x38f406;_0x4850b6>=0x0;_0x4850b6--)(_0x38f406=_0x138ccf[_0x4850b6])&&(_0x10eb4a=_0x38f406(_0x10eb4a)||_0x10eb4a);return _0x10eb4a;},A=(_0x5732c4,_0x4ba9b3)=>(_0x378991,_0x49d4ce)=>_0x4ba9b3(_0x378991,_0x49d4ce,_0x5732c4);let m=class extends _0x22e76f{constructor(_0x5228d3,_0x43fc92){const _0x539228=_0x1a320d;super(),this[_0x539228(0x14c)]=_0x5228d3,this[_0x539228(0x16f)]=_0x43fc92,this[_0x539228(0x171)]();}[_0x1a320d(0x171)](){const _0x582d58=_0x1a320d;this[_0x582d58(0x1ad)](this[_0x582d58(0x16f)][_0x582d58(0x14f)](_0x938492['HEADER_MENU'],()=>_0x5274b2(Le,this[_0x582d58(0x14c)])));}};m=He([A(0x0,_0x40adf3(_0x583ec)),A(0x1,_0x43a13b)],m);const ye=_0x1a320d(0x16e),T={};var Ue=Object[_0x1a320d(0x194)],Ve=(_0x1f450e,_0x2be3d9,_0x5a4fa4,_0x75b6fb)=>{for(var _0x3b84a3=_0x75b6fb>0x1?void 0x0:_0x75b6fb?Ue(_0x2be3d9,_0x5a4fa4):_0x2be3d9,_0x4be53f=_0x1f450e['length']-0x1,_0x44392e;_0x4be53f>=0x0;_0x4be53f--)(_0x44392e=_0x1f450e[_0x4be53f])&&(_0x3b84a3=_0x44392e(_0x3b84a3)||_0x3b84a3);return _0x3b84a3;},je=(_0x331478,_0x2f6d66)=>(_0x139d27,_0x4f9fce)=>_0x2f6d66(_0x139d27,_0x4f9fce,_0x331478);let I=class extends _0x22e76f{constructor(_0xe6f681){const _0xc7b2e=_0x1a320d;super(),this[_0xc7b2e(0x151)]=_0xe6f681,this[_0xc7b2e(0x179)]();}[_0x1a320d(0x179)](){const _0x46be8f=_0x1a320d;[_0x327864['id'],_0x13e74f['id'],_0x2ab6bf['id']][_0x46be8f(0x189)](_0xed29d=>{const _0x415a71=_0x46be8f;this[_0x415a71(0x1ad)](this['_liveShareService']['registerSharedOperation'](_0xed29d));});}};I=Ve([je(0x0,_0x40adf3(L))],I);var Me=Object[_0x1a320d(0x191)],ke=Object[_0x1a320d(0x194)],Ge=(_0x5cbed1,_0x23dee4,_0x5d413b)=>_0x23dee4 in _0x5cbed1?Me(_0x5cbed1,_0x23dee4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d413b}):_0x5cbed1[_0x23dee4]=_0x5d413b,We=(_0x55db2d,_0x18de0b,_0x4f6779,_0x22029d)=>{const _0x182bb8=_0x1a320d;for(var _0x1e0947=_0x22029d>0x1?void 0x0:_0x22029d?ke(_0x18de0b,_0x4f6779):_0x18de0b,_0x15efe5=_0x55db2d[_0x182bb8(0x1aa)]-0x1,_0x583bd2;_0x15efe5>=0x0;_0x15efe5--)(_0x583bd2=_0x55db2d[_0x15efe5])&&(_0x1e0947=_0x583bd2(_0x1e0947)||_0x1e0947);return _0x1e0947;},F=(_0x348437,_0x1f77c7)=>(_0x7af41a,_0x5569e9)=>_0x1f77c7(_0x7af41a,_0x5569e9,_0x348437),B=(_0x57ddb7,_0x117784,_0x291025)=>Ge(_0x57ddb7,typeof _0x117784!=_0x1a320d(0x1ce)?_0x117784+'':_0x117784,_0x291025);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x8266cb{constructor(_0x531f6a=T,_0x1054f4,_0x4a88fb){const _0x248fb9=_0x1a320d;super(),this[_0x248fb9(0x19e)]=_0x531f6a,this[_0x248fb9(0x14c)]=_0x1054f4,this['_configService']=_0x4a88fb;const {..._0xa8d37e}=_0x3cf1c7({},T,this[_0x248fb9(0x19e)]);this[_0x248fb9(0x1d9)][_0x248fb9(0x162)](ye,_0xa8d37e);}[_0x1a320d(0x1d6)](){const _0x4452cd=_0x1a320d;_0x4deb1d(this[_0x4452cd(0x14c)],_0x445e7c([[L],[S],[I],[m]],this[_0x4452cd(0x19e)][_0x4452cd(0x1a9)])),_0x3ab3b4(this[_0x4452cd(0x14c)],[[I]]);}[_0x1a320d(0x1c1)](){const _0x14a2cb=_0x1a320d;_0x3ab3b4(this[_0x14a2cb(0x14c)],[[m]]);}};B(b,_0x1a320d(0x145),_0x4a3c1a[_0x1a320d(0x1ba)]),B(b,_0x1a320d(0x156),Ye),b=We([_0x2e03ab(_0x4e4d69),F(0x1,_0x40adf3(_0x583ec)),F(0x2,_0x4b1494)],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 _0x5437(_0x391841,_0x10f215){_0x391841=_0x391841-0xab;const _0x2fa3b8=_0x2fa3();let _0x54376a=_0x2fa3b8[_0x391841];return _0x54376a;}function _0x2fa3(){const _0x283319=['getActiveSheet','64eqtTgj','startFollowing','79736pYOTik','LiveShareStatus','extend','@univerjs/sheets','getUnitId','FUniver','PRESENTING','UniverCoreFacade','633990GnkpkF','9092468lHQuYu','_injector','syncExecuteCommand','getActiveWorkbook','amd','IRenderManagerService','3288eccYgO','@univerjs/sheets-ui','SetScrollOperation','LiveShareStatusEnum','6783760dWlIWU','object','FEnum','get','startRow','stopPresenting','@univerjs/core/facade','UniverSheetsFacade','72MgvJmk','FRange','getId','5553714wlBDBN','@univerjs/sheets/facade','2490985RXbWQb','getStatus','getSheetId','getRenderById','getLiveShareStatus','No\x20active\x20workbook\x20found.','IDLE','getLiveShareCoordinatorSync','startPresenting','LiveShareController','90VwJBjZ','function','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopFollowing','@univerjs/engine-render','4EyqfYr'];_0x2fa3=function(){return _0x283319;};return _0x2fa3();}(function(_0x46d01d,_0x120deb){const _0x2c1172=_0x5437,_0x166e67=_0x46d01d();while(!![]){try{const _0x1d7501=parseInt(_0x2c1172(0xac))/0x1*(-parseInt(_0x2c1172(0xce))/0x2)+parseInt(_0x2c1172(0xbb))/0x3+-parseInt(_0x2c1172(0xcc))/0x4*(parseInt(_0x2c1172(0xbd))/0x5)+-parseInt(_0x2c1172(0xb8))/0x6*(-parseInt(_0x2c1172(0xd8))/0x7)+-parseInt(_0x2c1172(0xd0))/0x8*(-parseInt(_0x2c1172(0xc7))/0x9)+-parseInt(_0x2c1172(0xb0))/0xa+-parseInt(_0x2c1172(0xd9))/0xb;if(_0x1d7501===_0x120deb)break;else _0x166e67['push'](_0x166e67['shift']());}catch(_0x17cb01){_0x166e67['push'](_0x166e67['shift']());}}}(_0x2fa3,0xe2e5b),function(_0x1ac86f,_0x57648f){const _0x166d8e=_0x5437;typeof exports==_0x166d8e(0xb1)&&typeof module<'u'?_0x57648f(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==_0x166d8e(0xc8)&&define[_0x166d8e(0xdd)]?define(['@univerjs-pro/live-share',_0x166d8e(0xcb),_0x166d8e(0xd3),_0x166d8e(0xad),_0x166d8e(0xbc),_0x166d8e(0xb6)],_0x57648f):(_0x1ac86f=typeof globalThis<'u'?globalThis:_0x1ac86f||self,_0x57648f(_0x1ac86f['UniverProLiveShare'],_0x1ac86f['UniverEngineRender'],_0x1ac86f['UniverSheets'],_0x1ac86f['UniverSheetsUi'],_0x1ac86f[_0x166d8e(0xb7)],_0x1ac86f[_0x166d8e(0xd7)]));}(this,function(_0x168b3b,_0x2c583f,_0x57d077,_0x2d9342,_0x17f7af,_0x28c64b){'use strict';const _0x22b58a=_0x5437;class _0x3274d6 extends _0x17f7af[_0x22b58a(0xb9)]{['_initialize'](_0x25ce47,_0x13db5a,_0x447556,_0x5408a7,_0x3f4319){const _0x5bb303=_0x22b58a,_0x59b24a=_0x25ce47[_0x5bb303(0xb3)](_0x168b3b[_0x5bb303(0xc6)]),_0xeba3c1=_0x25ce47[_0x5bb303(0xb3)](_0x2c583f[_0x5bb303(0xab)]),_0x4f8f12=_0x13db5a[_0x5bb303(0xd4)](),_0x1366f5=_0x13db5a[_0x5bb303(0xcd)](),_0x5aa7a1=_0x59b24a['getLiveShareCoordinatorSync'](_0x4f8f12);(_0x5aa7a1==null?void 0x0:_0x5aa7a1['getStatus']())!==_0x168b3b[_0x5bb303(0xd1)][_0x5bb303(0xd6)]||(_0x447556[_0x5bb303(0xbf)]()!==_0x1366f5[_0x5bb303(0xbf)]()&&this['_commandService']['executeCommand'](_0x57d077['SetWorksheetActiveOperation']['id'],{'unitId':_0x4f8f12,'subUnitId':_0x447556['getSheetId']()}),!_0xeba3c1[_0x5bb303(0xc0)](_0x4f8f12))||_0x3f4319[_0x5bb303(0xdb)](_0x2d9342[_0x5bb303(0xae)]['id'],{'unitId':_0x13db5a['getUnitId'](),'sheetId':_0x447556[_0x5bb303(0xbf)](),'sheetViewStartRow':_0x5408a7[_0x5bb303(0xb4)],'sheetViewStartColumn':_0x5408a7['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x17f7af[_0x22b58a(0xb9)][_0x22b58a(0xd2)](_0x3274d6);class _0x33eaae extends _0x28c64b[_0x22b58a(0xd5)]{[_0x22b58a(0xc1)](){const _0x2e4b01=_0x22b58a;var _0x32fc81,_0x123e77;const _0x801f5b=this[_0x2e4b01(0xda)]['get'](_0x168b3b['LiveShareController']),_0x27cf9a=(_0x32fc81=this[_0x2e4b01(0xdc)]())==null?void 0x0:_0x32fc81[_0x2e4b01(0xba)]();if(!_0x27cf9a)throw new Error(_0x2e4b01(0xc2));const _0x3f43e7=_0x801f5b[_0x2e4b01(0xc4)](_0x27cf9a);return(_0x123e77=_0x3f43e7==null?void 0x0:_0x3f43e7[_0x2e4b01(0xbe)]())!=null?_0x123e77:_0x168b3b['LiveShareStatus'][_0x2e4b01(0xc3)];}[_0x22b58a(0xcf)](){const _0x37c732=_0x22b58a;var _0x3499f7;const _0x11be89=this[_0x37c732(0xda)]['get'](_0x168b3b['LiveShareController']),_0x1cec5e=(_0x3499f7=this[_0x37c732(0xdc)]())==null?void 0x0:_0x3499f7[_0x37c732(0xba)]();if(!_0x1cec5e)throw new Error(_0x37c732(0xc2));const _0x18f1fb=_0x11be89[_0x37c732(0xc4)](_0x1cec5e);if(!_0x18f1fb)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x18f1fb['startFollowing']();}[_0x22b58a(0xca)](){const _0x4111ef=_0x22b58a;var _0x2d79a0;const _0x4035bf=this[_0x4111ef(0xda)]['get'](_0x168b3b[_0x4111ef(0xc6)]),_0x24b6ef=(_0x2d79a0=this['getActiveWorkbook']())==null?void 0x0:_0x2d79a0[_0x4111ef(0xba)]();if(!_0x24b6ef)throw new Error(_0x4111ef(0xc2));const _0x18fe0c=_0x4035bf[_0x4111ef(0xc4)](_0x24b6ef);if(!_0x18fe0c)throw new Error(_0x4111ef(0xc9));_0x18fe0c[_0x4111ef(0xca)]();}[_0x22b58a(0xc5)](){const _0xb645e9=_0x22b58a;var _0x45db33;const _0x517945=this[_0xb645e9(0xda)]['get'](_0x168b3b[_0xb645e9(0xc6)]),_0x2f6f97=(_0x45db33=this[_0xb645e9(0xdc)]())==null?void 0x0:_0x45db33[_0xb645e9(0xba)]();if(!_0x2f6f97)throw new Error(_0xb645e9(0xc2));const _0xebbe03=_0x517945['getLiveShareCoordinatorSync'](_0x2f6f97);if(!_0xebbe03)throw new Error(_0xb645e9(0xc9));_0xebbe03['tryStartPresenting']();}['stopPresenting'](){const _0x427461=_0x22b58a;var _0x76b628;const _0x2f76c3=this['_injector'][_0x427461(0xb3)](_0x168b3b[_0x427461(0xc6)]),_0x3af08b=(_0x76b628=this[_0x427461(0xdc)]())==null?void 0x0:_0x76b628['getId']();if(!_0x3af08b)throw new Error(_0x427461(0xc2));const _0x4882ca=_0x2f76c3[_0x427461(0xc4)](_0x3af08b);if(!_0x4882ca)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4882ca[_0x427461(0xb5)]();}}_0x28c64b['FUniver']['extend'](_0x33eaae);class _0x4ee0fa extends _0x28c64b[_0x22b58a(0xb2)]{get[_0x22b58a(0xaf)](){const _0x124fb0=_0x22b58a;return _0x168b3b[_0x124fb0(0xd1)];}}_0x28c64b['FEnum']['extend'](_0x4ee0fa);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4c6b(){const _0x15262d=['useRef','14471960pWOQQn','end','init','UNIVER_SHEET','set','button','Plugin','attrs','UniverCollaborationClientPlugin','mask','_startLiveShareCoordinator','IUIPartsService','904LHVbtM','_sharedOperations','Button','defineProperty','ICommandService','_stopFollowing','override','object','jsxs','function','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','trim','_entities','entries','0\x200\x2017\x2017','univer-mb-3\x20univer-w-full\x20univer-text-sm','unsubscribe','add','startFollowing','UniverSheets','delete','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','CollaborationEvent','string','exports','forEach','12579glIYwz','following','_collabSession','_handleOffline','IDLE','length','_beIdle','1em','LiveShareController','live-share-icon','NOT_FOLLOWING','DisposableCollection','offline','_init','path','_config','dispose','type','data','@univerjs/sheets-ui','OPERATION','default','BehaviorSubject','defIds','getTypeOfUnitAdded$','UNIVER_LIVE_SHARE_PLUGIN','none','_liveShareService','UniverIcon','unitId','next','_presenter','1131270qvTfNo','operations','reverse','PRESENTING','Injector','complete','stopFollowing','use','245hyXokz','event$','SAME_OPERATION_SHARE_INTERVAL','presenting','_handleTerminate','includes','then','BuiltInUIPart','LIVESHARE_TERMINATE','jsx','idle','tag','subscribe','_status$','getConfig','toString','univerjs-icon\x20univerjs-icon-','symbol','throttleTime','34LZVaVm','pluginName','SetWorksheetActiveOperation','6094818CaxbLd','@univerjs/ui','createElement','React','fill','_stopPresenting','div','createInstance','currentColor','_reporters','LiveShareService','_startPresenting','Stop\x20following','onCommandExecuted','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','executeCommand','_collabSessionService','@univerjs-pro/collaboration','disposeWithMe','useDependency','FOLLOWING','LiveShareCoordinator','ONLINE','IUniverInstanceService','_startFollowing','SetZoomRatioOperation','LiveShareStatus','parse','Start\x20following','IConfigService','touchDependencies','SessionStatus','getUnitId','svg','getCurrentTypeOfUnit$','_univerInstanceService','requireSession','defs','133674wYmWju','registerInitialStateReporter','OFFLINE','RxDisposable','xlink:href','connectInjector','UniverLiveSharePlugin','useState','send','_unitID','useEffect','SetScrollOperation','assign','replace','mutations','has','params','@univerjs/design','Inject','getValue','@univerjs/sheets','_commandDisposable','stopPresenting','onStarting','asObservable','evenodd','Dropdown','displayName','Stop\x20presenting','current','_handleOnline','status$','stringify','find','takeUntil','getLiveShareCoordinator','_configService','parseProtocolChangeset','UniverUi','dispose$','registerSharedOperation','UniverDesign','rxjs','useObservable','getTypeOfUnitDisposed$','children','getLiveShareCoordinatorSync','30312TcZFPz','amd','DesktopLiveShareController','forwardRef','memberID','mergeOverrideWithDependencies','idSuffix','InsertSheetMutation','Subject','not-following','getOwnPropertyDescriptor','_handleNewChangeSets','presenter','LIVESHARE_NEW_HOST','_status','pipe','clsx','text','You\x27re\x20not\x20following\x20the\x20presenter','registerDependencies','merge','_commandService','UniverCore','LIVESHARE_OPERATION','live-share.config','_injector','Present\x20this\x20document','CommandType','colorChannel1','5366700NireLU','substring','UniverSheetsUi','22zWHyPe','UniverInstanceType','tryStartPresenting','toDisposable','NEW_CHANGESETS','_uiPartsService','HEADER_MENU','map','Fragment','univer-size-4','Disposable'];_0x4c6b=function(){return _0x15262d;};return _0x4c6b();}function _0x586c(_0x5691b3,_0x4f558c){_0x5691b3=_0x5691b3-0x19d;const _0x4c6bd4=_0x4c6b();let _0x586cac=_0x4c6bd4[_0x5691b3];return _0x586cac;}(function(_0x475143,_0x33b237){const _0x2c4435=_0x586c,_0x282416=_0x475143();while(!![]){try{const _0x2d7f0d=-parseInt(_0x2c4435(0x25d))/0x1+-parseInt(_0x2c4435(0x278))/0x2*(parseInt(_0x2c4435(0x1bc))/0x3)+parseInt(_0x2c4435(0x1eb))/0x4*(parseInt(_0x2c4435(0x265))/0x5)+-parseInt(_0x2c4435(0x27b))/0x6+-parseInt(_0x2c4435(0x23d))/0x7*(parseInt(_0x2c4435(0x223))/0x8)+parseInt(_0x2c4435(0x208))/0x9+-parseInt(_0x2c4435(0x217))/0xa*(-parseInt(_0x2c4435(0x20b))/0xb);if(_0x2d7f0d===_0x33b237)break;else _0x282416['push'](_0x282416['shift']());}catch(_0x58f1c0){_0x282416['push'](_0x282416['shift']());}}}(_0x4c6b,0xb82da),function(_0x3654e5,_0xba6531){const _0x44eafc=_0x586c;typeof exports==_0x44eafc(0x22a)&&typeof module<'u'?_0xba6531(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==_0x44eafc(0x22c)&&define[_0x44eafc(0x1ec)]?define([_0x44eafc(0x23b),'@univerjs/core',_0x44eafc(0x27c),'react/jsx-runtime',_0x44eafc(0x1cd),'react',_0x44eafc(0x1a7),'@univerjs-pro/collaboration-client',_0x44eafc(0x1d0),_0x44eafc(0x1e6),'rxjs/operators',_0x44eafc(0x250)],_0xba6531):(_0x3654e5=typeof globalThis<'u'?globalThis:_0x3654e5||self,_0xba6531(_0x3654e5['UniverProLiveShare']={},_0x3654e5[_0x44eafc(0x201)],_0x3654e5[_0x44eafc(0x1e2)],_0x3654e5[_0x44eafc(0x27e)],_0x3654e5[_0x44eafc(0x1e5)],_0x3654e5['React'],_0x3654e5['UniverProCollaboration'],_0x3654e5['UniverProCollaborationClient'],_0x3654e5[_0x44eafc(0x236)],_0x3654e5[_0x44eafc(0x1e6)],_0x3654e5['rxjs']['operators'],_0x3654e5[_0x44eafc(0x20a)]));}(this,function(_0x531713,_0x578637,_0x51c68d,_0x4e8258,_0x80076a,_0x1b3469,_0x17874a,_0x42171a,_0x2275db,_0x48b2dd,_0x2cdb56,_0x138877){'use strict';const _0x31a07c=_0x586c;var _0x239b00=Object[_0x31a07c(0x226)],_0x3d93b0=(_0xecdc66,_0x4d9352,_0x3ec629)=>_0x4d9352 in _0xecdc66?_0x239b00(_0xecdc66,_0x4d9352,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ec629}):_0xecdc66[_0x4d9352]=_0x3ec629,_0xe30dc1=(_0x216b71,_0x6eb35d,_0x57015a)=>_0x3d93b0(_0x216b71,typeof _0x6eb35d!=_0x31a07c(0x276)?_0x6eb35d+'':_0x6eb35d,_0x57015a);function _0x63995d({ref:_0x5a59aa,..._0xd678de}){const _0x43a19b=_0x31a07c,{icon:_0xe237ef,id:_0xb28f4a,className:_0x505128,extend:_0x402d11,..._0x1b6fbe}=_0xd678de,_0x4ac154=(_0x43a19b(0x275)+_0xb28f4a+'\x20'+(_0x505128||''))[_0x43a19b(0x22e)](),_0x5466dd=_0x1b3469[_0x43a19b(0x216)]('_'+_0x147831());return _0x41ee75(_0xe237ef,''+_0xb28f4a,{'defIds':_0xe237ef[_0x43a19b(0x254)],'idSuffix':_0x5466dd['current']},{'ref':_0x5a59aa,'className':_0x4ac154,..._0x1b6fbe},_0x402d11);}function _0x41ee75(_0x12767d,_0x1e40e5,_0x307267,_0x5a3788,_0x27a926){const _0x17b04a=_0x31a07c;return _0x1b3469[_0x17b04a(0x27d)](_0x12767d['tag'],{'key':_0x1e40e5,..._0xda2bc8(_0x12767d,_0x307267,_0x27a926),..._0x5a3788},(_0x50ffdc(_0x12767d,_0x307267)['children']||[])['map']((_0x304b13,_0x1fe029)=>_0x41ee75(_0x304b13,_0x1e40e5+'-'+_0x12767d[_0x17b04a(0x270)]+'-'+_0x1fe029,_0x307267,void 0x0,_0x27a926)));}function _0xda2bc8(_0x3e14ea,_0x51ebed,_0x2e8c45){const _0xe5cc0c=_0x31a07c,_0x2fe97a={..._0x3e14ea[_0xe5cc0c(0x21e)]};_0x2e8c45!=null&&_0x2e8c45[_0xe5cc0c(0x207)]&&_0x2fe97a[_0xe5cc0c(0x27f)]===_0xe5cc0c(0x207)&&(_0x2fe97a[_0xe5cc0c(0x27f)]=_0x2e8c45[_0xe5cc0c(0x207)]),_0x3e14ea['tag']===_0xe5cc0c(0x220)&&_0x2fe97a['id']&&(_0x2fe97a['id']=_0x2fe97a['id']+_0x51ebed[_0xe5cc0c(0x1f1)]),Object['entries'](_0x2fe97a)[_0xe5cc0c(0x23c)](([_0x23fa01,_0x3c6181])=>{const _0x1c10c4=_0xe5cc0c;_0x23fa01===_0x1c10c4(0x220)&&typeof _0x3c6181==_0x1c10c4(0x23a)&&(_0x2fe97a[_0x23fa01]=_0x3c6181[_0x1c10c4(0x1c9)](/url\(#(.*)\)/,'url(#$1'+_0x51ebed[_0x1c10c4(0x1f1)]+')'));});const {defIds:_0x5195db}=_0x51ebed;return!_0x5195db||_0x5195db[_0xe5cc0c(0x242)]===0x0||(_0x3e14ea[_0xe5cc0c(0x270)]===_0xe5cc0c(0x264)&&_0x2fe97a['xlink:href']&&(_0x2fe97a[_0xe5cc0c(0x1c0)]=_0x2fe97a[_0xe5cc0c(0x1c0)]+_0x51ebed[_0xe5cc0c(0x1f1)]),Object[_0xe5cc0c(0x230)](_0x2fe97a)[_0xe5cc0c(0x23c)](([_0xf8b671,_0x1b4b61])=>{const _0x447dc3=_0xe5cc0c;typeof _0x1b4b61==_0x447dc3(0x23a)&&(_0x2fe97a[_0xf8b671]=_0x1b4b61[_0x447dc3(0x1c9)](/url\(#(.*)\)/,'url(#$1'+_0x51ebed[_0x447dc3(0x1f1)]+')'));})),_0x2fe97a;}function _0x50ffdc(_0x468a73,_0x2ae4b7){const _0xcd819c=_0x31a07c;var _0x128da0;const {defIds:_0x144871}=_0x2ae4b7;return!_0x144871||_0x144871[_0xcd819c(0x242)]===0x0?_0x468a73:_0x468a73[_0xcd819c(0x270)]===_0xcd819c(0x1bb)&&((_0x128da0=_0x468a73[_0xcd819c(0x1e9)])!=null&&_0x128da0[_0xcd819c(0x242)])?{..._0x468a73,'children':_0x468a73[_0xcd819c(0x1e9)]['map'](_0x14470c=>typeof _0x14470c['attrs']['id']==_0xcd819c(0x23a)&&_0x144871&&_0x144871[_0xcd819c(0x26a)](_0x14470c[_0xcd819c(0x21e)]['id'])?{..._0x14470c,'attrs':{..._0x14470c['attrs'],'id':_0x14470c[_0xcd819c(0x21e)]['id']+_0x2ae4b7['idSuffix']}}:_0x14470c)}:_0x468a73;}function _0x147831(){const _0x17c662=_0x31a07c;return Math['random']()[_0x17c662(0x274)](0x24)[_0x17c662(0x209)](0x2,0x8);}_0x63995d[_0x31a07c(0x1d7)]=_0x31a07c(0x259);const _0x2b8dca={'tag':_0x31a07c(0x1b7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x31a07c(0x257),'viewBox':_0x31a07c(0x231),'width':_0x31a07c(0x244),'height':'1em'},'children':[{'tag':_0x31a07c(0x24b),'attrs':{'fill':_0x31a07c(0x19e),'d':_0x31a07c(0x238)}},{'tag':_0x31a07c(0x24b),'attrs':{'fill':_0x31a07c(0x19e),'d':_0x31a07c(0x22d),'fillRule':_0x31a07c(0x1d5),'clipRule':_0x31a07c(0x1d5)}}]},_0x1c04bc=_0x1b3469[_0x31a07c(0x1ee)](function(_0x2fa48c,_0x43e478){const _0x15676b=_0x31a07c;return _0x1b3469['createElement'](_0x63995d,Object[_0x15676b(0x1c8)]({},_0x2fa48c,{'id':_0x15676b(0x246),'ref':_0x43e478,'icon':_0x2b8dca}));});_0x1c04bc[_0x31a07c(0x1d7)]='LiveShareIcon';class _0x4c4275 extends _0x578637[_0x31a07c(0x215)]{constructor(){const _0x58d420=_0x31a07c;super(...arguments),_0xe30dc1(this,'_sharedOperations',new Set()),_0xe30dc1(this,_0x58d420(0x19f),new Set());}[_0x31a07c(0x1e4)](_0x5234ba){const _0x14c4d0=_0x31a07c;return this[_0x14c4d0(0x224)][_0x14c4d0(0x234)](_0x5234ba),_0x578637[_0x14c4d0(0x20e)](()=>this[_0x14c4d0(0x224)][_0x14c4d0(0x237)](_0x5234ba));}[_0x31a07c(0x1bd)](_0x28024f){const _0xc8213d=_0x31a07c;return this[_0xc8213d(0x19f)][_0xc8213d(0x234)](_0x28024f),_0x578637[_0xc8213d(0x20e)](()=>this[_0xc8213d(0x19f)][_0xc8213d(0x237)](_0x28024f));}['shouldShareOperation'](_0x1697ef){const _0x2e535b=_0x31a07c;return this[_0x2e535b(0x224)]['has'](_0x1697ef);}['getInitialStates'](_0x1491f5){const _0x2a03a6=_0x31a07c;return Array['from'](this['_reporters'])[_0x2a03a6(0x212)](_0x4f6601=>_0x4f6601(_0x1491f5));}}var _0x13e93e=Object[_0x31a07c(0x1f5)],_0x2a654c=(_0x170577,_0x550328,_0x50a447,_0x1bd166)=>{const _0x356040=_0x31a07c;for(var _0x4bd265=_0x1bd166>0x1?void 0x0:_0x1bd166?_0x13e93e(_0x550328,_0x50a447):_0x550328,_0x21128a=_0x170577[_0x356040(0x242)]-0x1,_0x5644a7;_0x21128a>=0x0;_0x21128a--)(_0x5644a7=_0x170577[_0x21128a])&&(_0x4bd265=_0x5644a7(_0x4bd265)||_0x4bd265);return _0x4bd265;},_0x32ef52=(_0x458f3d,_0x268f93)=>(_0x30ba42,_0x519089)=>_0x268f93(_0x30ba42,_0x519089,_0x458f3d);_0x531713['LiveShareController']=class extends _0x578637[_0x31a07c(0x1bf)]{constructor(_0x1ffd76,_0xad80f2,_0x3f3ae7){const _0x2ac298=_0x31a07c;super(),_0xe30dc1(this,_0x2ac298(0x22f),new Map()),(this[_0x2ac298(0x1b9)]=_0x1ffd76,this[_0x2ac298(0x204)]=_0xad80f2,this[_0x2ac298(0x1a6)]=_0x3f3ae7,this[_0x2ac298(0x24a)]());}async['getLiveShareCoordinator'](_0x38f9a0){const _0x53f0dc=_0x31a07c;return this[_0x53f0dc(0x22f)][_0x53f0dc(0x1cb)](_0x38f9a0)||await this[_0x53f0dc(0x221)](_0x38f9a0),this[_0x53f0dc(0x22f)]['get'](_0x38f9a0);}[_0x31a07c(0x1ea)](_0x3a9df4){const _0x4b4304=_0x31a07c;var _0x53cca1;return(_0x53cca1=this[_0x4b4304(0x22f)]['get'](_0x3a9df4))!=null?_0x53cca1:null;}[_0x31a07c(0x24a)](){const _0x448d97=_0x31a07c;this[_0x448d97(0x1b9)][_0x448d97(0x255)](_0x578637[_0x448d97(0x20c)]['UNIVER_SHEET'])[_0x448d97(0x1fa)](_0x2cdb56[_0x448d97(0x1de)](this[_0x448d97(0x1e3)]))[_0x448d97(0x271)](async _0x54721e=>{const _0x2265bf=_0x448d97,_0x1dbcbb=_0x54721e[_0x2265bf(0x1b6)]();this[_0x2265bf(0x22f)][_0x2265bf(0x1cb)](_0x1dbcbb)||this[_0x2265bf(0x221)](_0x1dbcbb);}),this[_0x448d97(0x1b9)][_0x448d97(0x1e8)](_0x578637[_0x448d97(0x20c)][_0x448d97(0x21a)])[_0x448d97(0x1fa)](_0x2cdb56[_0x448d97(0x1de)](this[_0x448d97(0x1e3)]))[_0x448d97(0x271)](_0x2a7e90=>{const _0x36b115=_0x448d97,_0x4d0f1e=_0x2a7e90['getUnitId'](),_0x15d506=this[_0x36b115(0x22f)]['get'](_0x4d0f1e);_0x15d506==null||_0x15d506[_0x36b115(0x24d)]();});}async[_0x31a07c(0x221)](_0x420058){const _0x37bd0d=_0x31a07c,_0x4be8b6=await this['_collabSessionService'][_0x37bd0d(0x1ba)](_0x420058),_0x24bd08=this['_injector'][_0x37bd0d(0x19d)](_0x531713['LiveShareCoordinator'],_0x420058,_0x4be8b6);return _0x24bd08[_0x37bd0d(0x219)](),this['_entities'][_0x37bd0d(0x21b)](_0x420058,_0x24bd08),_0x24bd08;}},_0x531713[_0x31a07c(0x245)]=_0x2a654c([_0x32ef52(0x0,_0x578637[_0x31a07c(0x1ad)]),_0x32ef52(0x1,_0x578637[_0x31a07c(0x1ce)](_0x578637[_0x31a07c(0x261)])),_0x32ef52(0x2,_0x578637[_0x31a07c(0x1ce)](_0x42171a['CollaborationSessionService']))],_0x531713[_0x31a07c(0x245)]);var _0x1e02cf=(_0x35005c=>(_0x35005c[_0x31a07c(0x1be)]=_0x31a07c(0x249),_0x35005c[_0x31a07c(0x241)]='idle',_0x35005c['FOLLOWING']=_0x31a07c(0x23e),_0x35005c[_0x31a07c(0x247)]=_0x31a07c(0x1f4),_0x35005c[_0x31a07c(0x260)]=_0x31a07c(0x268),_0x35005c))(_0x1e02cf||{});const _0x596c2f=_0x31a07c(0x267),_0x5da53b=0xc8;_0x531713['LiveShareCoordinator']=class extends _0x578637[_0x31a07c(0x1bf)]{constructor(_0x21f770,_0x26d646,_0x2ad1ab,_0x17dd20,_0x24f631){const _0x579c06=_0x31a07c;super(),_0xe30dc1(this,_0x579c06(0x272),new _0x48b2dd[(_0x579c06(0x253))](_0x579c06(0x26f))),_0xe30dc1(this,_0x579c06(0x1db),this['_status$'][_0x579c06(0x1d4)]()),_0xe30dc1(this,'_init',!0x1),_0xe30dc1(this,_0x579c06(0x1d1),null),_0xe30dc1(this,_0x579c06(0x25c),null),(this[_0x579c06(0x1c5)]=_0x21f770,this[_0x579c06(0x23f)]=_0x26d646,this[_0x579c06(0x1e0)]=_0x2ad1ab,this['_liveShareService']=_0x17dd20,this[_0x579c06(0x200)]=_0x24f631);}get[_0x31a07c(0x1f9)](){const _0x5578a8=_0x31a07c;return this[_0x5578a8(0x272)][_0x5578a8(0x1cf)]();}[_0x31a07c(0x24d)](){const _0x2cf0b2=_0x31a07c;var _0x430de5;(_0x430de5=this[_0x2cf0b2(0x1d1)])==null||_0x430de5[_0x2cf0b2(0x24d)](),this[_0x2cf0b2(0x272)][_0x2cf0b2(0x25b)](_0x2cf0b2(0x26f)),this[_0x2cf0b2(0x272)]['complete']();}['getStatus'](){const _0xbd33b4=_0x31a07c;return this[_0xbd33b4(0x1f9)];}[_0x31a07c(0x219)](){const _0x3b67f9=_0x31a07c;this[_0x3b67f9(0x24a)]||(this[_0x3b67f9(0x24a)]=!0x0,this['_collabSession']['sessionStatus$'][_0x3b67f9(0x1fa)](_0x2cdb56[_0x3b67f9(0x1de)](this[_0x3b67f9(0x1e3)]))[_0x3b67f9(0x271)](_0x227e40=>{const _0x53c311=_0x3b67f9;switch(_0x227e40){case _0x42171a[_0x53c311(0x1b5)][_0x53c311(0x1be)]:this['_handleOffline']();break;case _0x42171a[_0x53c311(0x1b5)][_0x53c311(0x1ac)]:this[_0x53c311(0x1da)]();break;}}),this[_0x3b67f9(0x23f)][_0x3b67f9(0x266)][_0x3b67f9(0x1fa)](_0x2cdb56[_0x3b67f9(0x1de)](this[_0x3b67f9(0x1e3)]))[_0x3b67f9(0x271)](_0xc7f616=>{const _0x536da6=_0x3b67f9,{eventID:_0x500312}=_0xc7f616;switch(_0x500312){case _0x17874a['CollaborationEvent'][_0x536da6(0x1f8)]:this['_handleNewHost'](_0xc7f616);break;case _0x17874a[_0x536da6(0x239)][_0x536da6(0x202)]:this['_handleOperation'](_0xc7f616);break;case _0x17874a[_0x536da6(0x239)]['LIVESHARE_TERMINATE']:this[_0x536da6(0x269)]();break;case _0x17874a[_0x536da6(0x239)][_0x536da6(0x20f)]:this[_0x536da6(0x1f6)](_0xc7f616);break;}}));}[_0x31a07c(0x20d)](){const _0x24044d=_0x31a07c;this[_0x24044d(0x23f)][_0x24044d(0x1c4)]({'eventID':_0x17874a[_0x24044d(0x239)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x24044d(0x1c5)],'userID':this['_collabSession']['getMemberID']()}},this[_0x24044d(0x1c5)]);}['stopPresenting'](){const _0x146290=_0x31a07c;this[_0x146290(0x1f9)]===_0x146290(0x268)&&(this['_status$']['next']('idle'),this[_0x146290(0x23f)][_0x146290(0x1c4)]({'eventID':_0x17874a[_0x146290(0x239)][_0x146290(0x26d)],'data':{'unitID':this['_unitID']}},this[_0x146290(0x1c5)]));}['startFollowing'](){const _0x24afa2=_0x31a07c;this[_0x24afa2(0x1f9)]==='not-following'&&(this[_0x24afa2(0x272)][_0x24afa2(0x25b)]('following'),this['_startFollowing']());}[_0x31a07c(0x263)](){const _0x388622=_0x31a07c;this[_0x388622(0x1f9)]==='following'&&this[_0x388622(0x228)]();}['_handleNewHost'](_0x2944f1){const _0x52188f=_0x31a07c,{presenter:_0x29f878}=_0x2944f1['data'],_0x1122b1=this[_0x52188f(0x23f)]['getMemberID']();this[_0x52188f(0x25c)]=_0x29f878,_0x29f878===_0x1122b1?(this[_0x52188f(0x228)](),this[_0x52188f(0x1a1)]()):this['_status']!=='not-following'&&(this[_0x52188f(0x280)](),this['_startFollowing']());}['_fetchOperations'](){const _0x4faae9=_0x31a07c,_0x454581={'eventID':_0x17874a['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x4faae9(0x23f)][_0x4faae9(0x1c4)](_0x454581,this[_0x4faae9(0x1c5)]);}['_handleTerminate'](){const _0x412dfa=_0x31a07c;this[_0x412dfa(0x25c)]=null,this[_0x412dfa(0x1f9)]!=='presenting'&&this[_0x412dfa(0x243)]();}[_0x31a07c(0x1f6)](_0x3a293f){const _0x3aa969=_0x31a07c;if(this[_0x3aa969(0x1f9)]===_0x3aa969(0x23e)&&this[_0x3aa969(0x25c)]===_0x3a293f[_0x3aa969(0x24f)][_0x3aa969(0x1ef)]){const _0x5f04d5=_0x17874a[_0x3aa969(0x1e1)](_0x3a293f[_0x3aa969(0x24f)])[_0x3aa969(0x1ca)][_0x3aa969(0x25f)]()[_0x3aa969(0x1dd)](_0x183a84=>_0x183a84['id']===_0x2275db[_0x3aa969(0x1f2)]['id']);if(_0x5f04d5){const _0x27817d=_0x5f04d5[_0x3aa969(0x1cc)][_0x3aa969(0x25a)],_0x10939f=_0x5f04d5[_0x3aa969(0x1cc)]['sheet']['id'];setTimeout(()=>{const _0x567f7c=_0x3aa969;this[_0x567f7c(0x200)]['executeCommand'](_0x2275db[_0x567f7c(0x27a)]['id'],{'unitId':_0x27817d,'subUnitId':_0x10939f},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x3130c2=_0x31a07c;this[_0x3130c2(0x272)]['next']('presenting');const _0x385e79=new Map(),_0x2adfcf=this[_0x3130c2(0x1d1)]=new _0x578637[(_0x3130c2(0x248))]();_0x2adfcf[_0x3130c2(0x234)](_0x578637[_0x3130c2(0x20e)](()=>{const _0x5f25d7=_0x3130c2;_0x385e79[_0x5f25d7(0x23c)](_0x5c3845=>_0x5c3845[_0x5f25d7(0x262)]()),_0x385e79['clear']();})),_0x2adfcf['add'](this[_0x3130c2(0x200)][_0x3130c2(0x1a3)](_0x1cbf4b=>{const _0x402daa=_0x3130c2;var _0x1fecac;if(_0x1cbf4b['type']!==_0x578637[_0x402daa(0x206)][_0x402daa(0x251)]||!this['_liveShareService']['shouldShareOperation'](_0x1cbf4b['id']))return;const {id:_0x371921}=_0x1cbf4b;let _0x5475d9;_0x385e79[_0x402daa(0x1cb)](_0x371921)?_0x5475d9=_0x385e79['get'](_0x371921):(_0x5475d9=new _0x48b2dd[(_0x402daa(0x1f3))](),_0x385e79[_0x402daa(0x21b)](_0x371921,_0x5475d9),_0x5475d9[_0x402daa(0x1fa)](_0x2cdb56[_0x402daa(0x277)]((_0x1fecac=this[_0x402daa(0x1e0)][_0x402daa(0x273)](_0x596c2f))!=null?_0x1fecac:_0x5da53b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x402daa(0x271)](_0x5c00b2=>{const _0x15e3a2=_0x402daa;this[_0x15e3a2(0x23f)][_0x15e3a2(0x1c4)]({'eventID':_0x17874a['CollaborationEvent'][_0x15e3a2(0x202)],'data':{'unitID':this[_0x15e3a2(0x1c5)],'operations':{[_0x5c00b2['id']]:{'id':_0x5c00b2['id'],'params':JSON[_0x15e3a2(0x1dc)](_0x5c00b2[_0x15e3a2(0x1cc)])}}}},this[_0x15e3a2(0x1c5)]);})),_0x5475d9[_0x402daa(0x25b)](_0x1cbf4b);})),this[_0x3130c2(0x258)]['getInitialStates'](this['_unitID'])[_0x3130c2(0x23c)](_0xdaf073=>this[_0x3130c2(0x23f)]['send']({'eventID':_0x17874a[_0x3130c2(0x239)][_0x3130c2(0x202)],'data':{'unitID':this[_0x3130c2(0x1c5)],'operations':{[_0xdaf073['id']]:{'id':_0xdaf073['id'],'params':JSON[_0x3130c2(0x1dc)](_0xdaf073['params'])}}}},this[_0x3130c2(0x1c5)]));}['_stopPresenting'](){const _0x33783a=_0x31a07c;var _0x43105e;this[_0x33783a(0x272)]['next'](_0x33783a(0x26f)),(_0x43105e=this[_0x33783a(0x1d1)])==null||_0x43105e[_0x33783a(0x24d)](),this[_0x33783a(0x1d1)]=null;}[_0x31a07c(0x1ae)](){const _0x5ee576=_0x31a07c;var _0x5a28ff;(_0x5a28ff=this[_0x5ee576(0x1d1)])==null||_0x5a28ff['dispose'](),this['_status$'][_0x5ee576(0x25b)]('following');}[_0x31a07c(0x243)](){const _0x535cb1=_0x31a07c;var _0x3d47ae;this['_status$'][_0x535cb1(0x25b)](_0x535cb1(0x26f)),(_0x3d47ae=this[_0x535cb1(0x1d1)])==null||_0x3d47ae[_0x535cb1(0x24d)](),this[_0x535cb1(0x1d1)]=null;}[_0x31a07c(0x228)](){const _0x57ab65=_0x31a07c;var _0x48cbad;this[_0x57ab65(0x272)][_0x57ab65(0x25b)](_0x57ab65(0x1f4)),(_0x48cbad=this[_0x57ab65(0x1d1)])==null||_0x48cbad['dispose']();}['_handleOperation'](_0x53f76b){const _0x47509d=_0x31a07c;if([_0x47509d(0x268),'not-following',_0x47509d(0x249)]['includes'](this['_status'])||!_0x53f76b[_0x47509d(0x24f)][_0x47509d(0x1f7)]||_0x53f76b['data'][_0x47509d(0x1f7)]===this['_collabSession']['getMemberID']())return;this[_0x47509d(0x1f9)]===_0x47509d(0x26f)&&this[_0x47509d(0x1ae)]();const _0x335332=_0x53f76b[_0x47509d(0x24f)][_0x47509d(0x25e)];Object['values'](_0x335332)[_0x47509d(0x23c)](_0xfc564e=>{const _0x47afdc=_0x47509d;this[_0x47afdc(0x200)][_0x47afdc(0x1a5)](_0xfc564e['id'],_0xfc564e['params']?JSON[_0x47afdc(0x1b1)](_0xfc564e['params']):null,{'fromCollab':!0x0});});}[_0x31a07c(0x240)](){const _0x424e46=_0x31a07c;var _0x2ac0c4;this[_0x424e46(0x272)][_0x424e46(0x25b)](_0x424e46(0x249)),(_0x2ac0c4=this['_commandDisposable'])==null||_0x2ac0c4[_0x424e46(0x24d)]();}[_0x31a07c(0x1da)](){const _0x4bc064=_0x31a07c;this[_0x4bc064(0x272)][_0x4bc064(0x25b)](_0x4bc064(0x26f)),this['_fetchOperations']();}},_0x531713[_0x31a07c(0x1ab)]=_0x2a654c([_0x32ef52(0x2,_0x578637['IConfigService']),_0x32ef52(0x3,_0x578637[_0x31a07c(0x1ce)](_0x4c4275)),_0x32ef52(0x4,_0x578637[_0x31a07c(0x227)])],_0x531713[_0x31a07c(0x1ab)]);function _0x23ae1e(){const _0x2def26=_0x31a07c,_0x343790=_0x51c68d[_0x2def26(0x1a9)](_0x531713[_0x2def26(0x245)]),_0x465cef=_0x51c68d['useDependency'](_0x578637['IUniverInstanceService']),_0x1cecfb=_0x51c68d[_0x2def26(0x1e7)](()=>_0x465cef[_0x2def26(0x1b8)](_0x578637[_0x2def26(0x20c)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1b5911,_0x47e5eb]=_0x1b3469[_0x2def26(0x1c3)](null),[_0x5378bc,_0x494c7c]=_0x1b3469[_0x2def26(0x1c3)](_0x1e02cf[_0x2def26(0x241)]),_0x7bcc9c=_0x1b3469[_0x2def26(0x216)](null);return _0x1b3469[_0x2def26(0x1c6)](()=>(_0x1cecfb&&_0x343790[_0x2def26(0x1df)](_0x1cecfb['getUnitId']())[_0x2def26(0x26b)](_0x23dea6=>{const _0x2c42d3=_0x2def26;_0x47e5eb(_0x23dea6),_0x7bcc9c['current']=_0x23dea6[_0x2c42d3(0x1db)]['subscribe'](_0x3ef664=>{_0x494c7c(_0x3ef664);});}),()=>{const _0x42f3b9=_0x2def26;var _0x354a45;(_0x354a45=_0x7bcc9c[_0x42f3b9(0x1d9)])==null||_0x354a45[_0x42f3b9(0x233)](),_0x7bcc9c[_0x42f3b9(0x1d9)]=null;}),[_0x1cecfb,_0x343790]),_0x1b5911?_0x4e8258[_0x2def26(0x26e)](_0x80076a[_0x2def26(0x1d6)],{'align':_0x2def26(0x218),'disabled':_0x5378bc===_0x1e02cf['OFFLINE'],'className':_0x2def26(0x1a4),'overlay':_0x4e8258['jsx'](_0x525160,{'status':_0x5378bc,'coordinator':_0x1b5911}),'children':_0x4e8258['jsx'](_0x2def26(0x21c),{'className':_0x80076a[_0x2def26(0x1fb)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5378bc===_0x1e02cf['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5378bc!==_0x1e02cf['OFFLINE']}),'type':_0x2def26(0x21c),'children':_0x4e8258[_0x2def26(0x26e)](_0x1c04bc,{'className':_0x2def26(0x214)})})}):null;}function _0x525160(_0x1232c2){const _0x4249f8=_0x31a07c,{status:_0x2a938c,coordinator:_0x35803c}=_0x1232c2;switch(_0x2a938c){case _0x1e02cf[_0x4249f8(0x241)]:return _0x4e8258['jsx'](_0x18bc71,{'coordinator':_0x35803c});case _0x1e02cf[_0x4249f8(0x1aa)]:return _0x4e8258[_0x4249f8(0x26e)](_0x3bff13,{'coordinator':_0x35803c});case _0x1e02cf[_0x4249f8(0x247)]:return _0x4e8258[_0x4249f8(0x26e)](_0x556ba1,{'coordinator':_0x35803c});case _0x1e02cf['OFFLINE']:return _0x4e8258[_0x4249f8(0x26e)](_0x4f7a0e,{});case _0x1e02cf[_0x4249f8(0x260)]:return _0x4e8258[_0x4249f8(0x26e)](_0xd0567b,{'coordinator':_0x35803c});default:return null;}}function _0x18bc71(_0x39c7d8){const _0x45ffba=_0x31a07c,{coordinator:_0x5d561e}=_0x39c7d8;return _0x4e8258[_0x45ffba(0x22b)](_0x4e8258['Fragment'],{'children':[_0x4e8258[_0x45ffba(0x26e)](_0x45ffba(0x281),{'className':_0x45ffba(0x232),'children':_0x45ffba(0x205)}),_0x4e8258[_0x45ffba(0x26e)](_0x80076a['Button'],{'onClick':()=>_0x5d561e[_0x45ffba(0x20d)](),'children':'Start'})]});}function _0x3bff13(_0x455600){const _0x1b4f0e=_0x31a07c,{coordinator:_0x104661}=_0x455600;return _0x4e8258[_0x1b4f0e(0x22b)](_0x4e8258[_0x1b4f0e(0x213)],{'children':[_0x4e8258[_0x1b4f0e(0x26e)](_0x1b4f0e(0x281),{'className':_0x1b4f0e(0x232),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4e8258['jsx'](_0x80076a['Button'],{'onClick':()=>_0x104661['stopFollowing'](),'children':_0x1b4f0e(0x1a2)})]});}function _0x556ba1(_0x42bb87){const _0x2eb437=_0x31a07c,{coordinator:_0x392a2f}=_0x42bb87;return _0x4e8258['jsxs'](_0x4e8258[_0x2eb437(0x213)],{'children':[_0x4e8258[_0x2eb437(0x26e)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2eb437(0x1fd)}),_0x4e8258[_0x2eb437(0x26e)](_0x80076a[_0x2eb437(0x225)],{'variant':_0x2eb437(0x1fc),'onClick':()=>_0x392a2f[_0x2eb437(0x235)](),'children':_0x2eb437(0x1b2)})]});}function _0xd0567b(_0x55c784){const _0x21ff6c=_0x31a07c,{coordinator:_0x17f0a9}=_0x55c784;return _0x4e8258[_0x21ff6c(0x22b)](_0x4e8258[_0x21ff6c(0x213)],{'children':[_0x4e8258[_0x21ff6c(0x26e)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x4e8258['jsx'](_0x80076a[_0x21ff6c(0x225)],{'variant':_0x21ff6c(0x252),'onClick':()=>_0x17f0a9[_0x21ff6c(0x1d2)](),'children':_0x21ff6c(0x1d8)})]});}function _0x4f7a0e(){return _0x4e8258['jsx'](_0x4e8258['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x35702c=Object[_0x31a07c(0x1f5)],_0x3868da=(_0x26bb61,_0xa8f487,_0x262cec,_0x3ad869)=>{for(var _0x166799=_0x3ad869>0x1?void 0x0:_0x3ad869?_0x35702c(_0xa8f487,_0x262cec):_0xa8f487,_0x123391=_0x26bb61['length']-0x1,_0x5bb076;_0x123391>=0x0;_0x123391--)(_0x5bb076=_0x26bb61[_0x123391])&&(_0x166799=_0x5bb076(_0x166799)||_0x166799);return _0x166799;},_0xe0125b=(_0xc64cf3,_0x3b2e88)=>(_0x4d0d8c,_0x23cc7f)=>_0x3b2e88(_0x4d0d8c,_0x23cc7f,_0xc64cf3);_0x531713[_0x31a07c(0x1ed)]=class extends _0x578637[_0x31a07c(0x215)]{constructor(_0x1407c2,_0x378076){const _0x5c1af9=_0x31a07c;super(),this[_0x5c1af9(0x204)]=_0x1407c2,this[_0x5c1af9(0x210)]=_0x378076,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x28349f=_0x31a07c;this[_0x28349f(0x1a8)](this[_0x28349f(0x210)]['registerComponent'](_0x51c68d[_0x28349f(0x26c)][_0x28349f(0x211)],()=>_0x51c68d[_0x28349f(0x1c1)](_0x23ae1e,this[_0x28349f(0x204)])));}},_0x531713['DesktopLiveShareController']=_0x3868da([_0xe0125b(0x0,_0x578637[_0x31a07c(0x1ce)](_0x578637[_0x31a07c(0x261)])),_0xe0125b(0x1,_0x51c68d[_0x31a07c(0x222)])],_0x531713['DesktopLiveShareController']);const _0x32124f=_0x31a07c(0x203),_0x449df5={};var _0x15f6d1=Object[_0x31a07c(0x1f5)],_0x1858bd=(_0x21aece,_0x4146e0,_0x1b0134,_0x4dcf0c)=>{const _0x196756=_0x31a07c;for(var _0x5e0202=_0x4dcf0c>0x1?void 0x0:_0x4dcf0c?_0x15f6d1(_0x4146e0,_0x1b0134):_0x4146e0,_0x3f4dce=_0x21aece[_0x196756(0x242)]-0x1,_0x541ab7;_0x3f4dce>=0x0;_0x3f4dce--)(_0x541ab7=_0x21aece[_0x3f4dce])&&(_0x5e0202=_0x541ab7(_0x5e0202)||_0x5e0202);return _0x5e0202;},_0x57e262=(_0x239586,_0x533975)=>(_0x49124c,_0x3152f3)=>_0x533975(_0x49124c,_0x3152f3,_0x239586);let _0x15480d=class extends _0x578637[_0x31a07c(0x215)]{constructor(_0x7d97df){const _0x168e72=_0x31a07c;super(),this[_0x168e72(0x258)]=_0x7d97df,this[_0x168e72(0x24a)]();}[_0x31a07c(0x24a)](){const _0x137731=_0x31a07c;[_0x138877[_0x137731(0x1af)]['id'],_0x138877[_0x137731(0x1c7)]['id'],_0x2275db['SetWorksheetActiveOperation']['id']][_0x137731(0x23c)](_0xe0f71c=>{const _0x2c9ce8=_0x137731;this[_0x2c9ce8(0x1a8)](this['_liveShareService']['registerSharedOperation'](_0xe0f71c));});}};_0x15480d=_0x1858bd([_0x57e262(0x0,_0x578637[_0x31a07c(0x1ce)](_0x4c4275))],_0x15480d);var _0x2036ad=Object['defineProperty'],_0x400a47=Object[_0x31a07c(0x1f5)],_0x53ddd7=(_0x50d92c,_0x41e594,_0x1382db)=>_0x41e594 in _0x50d92c?_0x2036ad(_0x50d92c,_0x41e594,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1382db}):_0x50d92c[_0x41e594]=_0x1382db,_0x519659=(_0xe7c0cb,_0x125df9,_0x2fc33f,_0x4d6744)=>{for(var _0x30965f=_0x4d6744>0x1?void 0x0:_0x4d6744?_0x400a47(_0x125df9,_0x2fc33f):_0x125df9,_0x11f8e6=_0xe7c0cb['length']-0x1,_0x2715ab;_0x11f8e6>=0x0;_0x11f8e6--)(_0x2715ab=_0xe7c0cb[_0x11f8e6])&&(_0x30965f=_0x2715ab(_0x30965f)||_0x30965f);return _0x30965f;},_0x25fad5=(_0x3346b6,_0x119e67)=>(_0x38bd4d,_0x3ebf27)=>_0x119e67(_0x38bd4d,_0x3ebf27,_0x3346b6),_0x307965=(_0x4f8639,_0x199fa3,_0x194f83)=>_0x53ddd7(_0x4f8639,typeof _0x199fa3!=_0x31a07c(0x276)?_0x199fa3+'':_0x199fa3,_0x194f83);const _0x39951e=_0x31a07c(0x256);_0x531713['UniverLiveSharePlugin']=class extends _0x578637[_0x31a07c(0x21d)]{constructor(_0x3d597f=_0x449df5,_0x36d1a2,_0x13f3df){const _0x4544a7=_0x31a07c;super(),this[_0x4544a7(0x24c)]=_0x3d597f,this[_0x4544a7(0x204)]=_0x36d1a2,this['_configService']=_0x13f3df;const {..._0x2d9800}=_0x578637[_0x4544a7(0x1ff)]({},_0x449df5,this[_0x4544a7(0x24c)]);this[_0x4544a7(0x1e0)]['setConfig'](_0x32124f,_0x2d9800);}[_0x31a07c(0x1d3)](){const _0x7eaa68=_0x31a07c;_0x578637[_0x7eaa68(0x1fe)](this[_0x7eaa68(0x204)],_0x578637[_0x7eaa68(0x1f0)]([[_0x4c4275],[_0x531713[_0x7eaa68(0x245)]],[_0x15480d],[_0x531713[_0x7eaa68(0x1ed)]]],this['_config'][_0x7eaa68(0x229)])),_0x578637[_0x7eaa68(0x1b4)](this['_injector'],[[_0x15480d]]);}['onRendered'](){const _0x2c21bc=_0x31a07c;_0x578637[_0x2c21bc(0x1b4)](this['_injector'],[[_0x531713[_0x2c21bc(0x1ed)]]]);}},_0x307965(_0x531713[_0x31a07c(0x1c2)],_0x31a07c(0x24e),_0x578637[_0x31a07c(0x20c)]['UNIVER_UNKNOWN']),_0x307965(_0x531713[_0x31a07c(0x1c2)],_0x31a07c(0x279),_0x39951e),_0x531713[_0x31a07c(0x1c2)]=_0x519659([_0x578637['DependentOn'](_0x42171a[_0x31a07c(0x21f)]),_0x25fad5(0x1,_0x578637[_0x31a07c(0x1ce)](_0x578637[_0x31a07c(0x261)])),_0x25fad5(0x2,_0x578637[_0x31a07c(0x1b3)])],_0x531713[_0x31a07c(0x1c2)]),_0x531713['LiveShare']=_0x23ae1e,_0x531713[_0x31a07c(0x1a0)]=_0x4c4275,_0x531713[_0x31a07c(0x1b0)]=_0x1e02cf,Object['defineProperty'](_0x531713,Symbol['toStringTag'],{'value':'Module'});}));
|
|
1
|
+
(function(_0x401d91,_0x43d5b7){const _0x3ac05a=_0xe08b,_0x2b54bf=_0x401d91();while(!![]){try{const _0x51ea08=-parseInt(_0x3ac05a(0x1e1))/0x1*(parseInt(_0x3ac05a(0x227))/0x2)+parseInt(_0x3ac05a(0x264))/0x3+parseInt(_0x3ac05a(0x1db))/0x4+parseInt(_0x3ac05a(0x244))/0x5*(-parseInt(_0x3ac05a(0x247))/0x6)+-parseInt(_0x3ac05a(0x209))/0x7*(parseInt(_0x3ac05a(0x29d))/0x8)+parseInt(_0x3ac05a(0x1d3))/0x9*(-parseInt(_0x3ac05a(0x1d5))/0xa)+-parseInt(_0x3ac05a(0x2a2))/0xb*(-parseInt(_0x3ac05a(0x1d2))/0xc);if(_0x51ea08===_0x43d5b7)break;else _0x2b54bf['push'](_0x2b54bf['shift']());}catch(_0x2b59a1){_0x2b54bf['push'](_0x2b54bf['shift']());}}}(_0x25c5,0xbb266),function(_0x41810f,_0xc4aba8){const _0x4d8c2b=_0xe08b;typeof exports==_0x4d8c2b(0x23e)&&typeof module<'u'?_0xc4aba8(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==_0x4d8c2b(0x255)&&define[_0x4d8c2b(0x223)]?define([_0x4d8c2b(0x218),_0x4d8c2b(0x2aa),'@univerjs/ui',_0x4d8c2b(0x295),'@univerjs/design',_0x4d8c2b(0x217),_0x4d8c2b(0x22e),_0x4d8c2b(0x24b),_0x4d8c2b(0x1df),_0x4d8c2b(0x210),_0x4d8c2b(0x2ae),_0x4d8c2b(0x261)],_0xc4aba8):(_0x41810f=typeof globalThis<'u'?globalThis:_0x41810f||self,_0xc4aba8(_0x41810f['UniverProLiveShare']={},_0x41810f[_0x4d8c2b(0x231)],_0x41810f[_0x4d8c2b(0x26b)],_0x41810f[_0x4d8c2b(0x20e)],_0x41810f['UniverDesign'],_0x41810f['React'],_0x41810f['UniverProCollaboration'],_0x41810f[_0x4d8c2b(0x28e)],_0x41810f[_0x4d8c2b(0x27b)],_0x41810f[_0x4d8c2b(0x210)],_0x41810f[_0x4d8c2b(0x210)][_0x4d8c2b(0x20a)],_0x41810f['UniverSheetsUi']));}(this,function(_0x45d6fe,_0xbc9cb8,_0x204400,_0x120d92,_0x416afd,_0x270d67,_0x200d12,_0x26d167,_0x41b9aa,_0x3e3dba,_0x13b9ea,_0x4af3a4){'use strict';const _0x5c7510=_0xe08b;var _0x1b511e=Object[_0x5c7510(0x1f1)],_0x1998be=(_0x253c45,_0x571ae5,_0x58b1c1)=>_0x571ae5 in _0x253c45?_0x1b511e(_0x253c45,_0x571ae5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58b1c1}):_0x253c45[_0x571ae5]=_0x58b1c1,_0x2b13a9=(_0x53bcf3,_0x1b1f1f,_0x1a86c5)=>_0x1998be(_0x53bcf3,typeof _0x1b1f1f!=_0x5c7510(0x235)?_0x1b1f1f+'':_0x1b1f1f,_0x1a86c5);function _0x25b9ec({ref:_0x271b7c,..._0x396cdd}){const _0x51da0b=_0x5c7510,{icon:_0x540af9,id:_0x7ec25a,className:_0x300b77,extend:_0x12d8bc,..._0x36ceca}=_0x396cdd,_0x16a286=(_0x51da0b(0x256)+_0x7ec25a+'\x20'+(_0x300b77||''))[_0x51da0b(0x257)](),_0x1ae1ca=_0x270d67[_0x51da0b(0x1f2)]('_'+_0x48eaf2());return _0x59aeed(_0x540af9,''+_0x7ec25a,{'defIds':_0x540af9['defIds'],'idSuffix':_0x1ae1ca[_0x51da0b(0x294)]},{'ref':_0x271b7c,'className':_0x16a286,..._0x36ceca},_0x12d8bc);}function _0x59aeed(_0x5b3439,_0x2f0b5a,_0x54b9e2,_0x423bb4,_0x2eb0f4){const _0xfc66c2=_0x5c7510;return _0x270d67[_0xfc66c2(0x25f)](_0x5b3439[_0xfc66c2(0x27d)],{'key':_0x2f0b5a,..._0x5b4603(_0x5b3439,_0x54b9e2,_0x2eb0f4),..._0x423bb4},(_0x98428a(_0x5b3439,_0x54b9e2)[_0xfc66c2(0x226)]||[])['map']((_0x394324,_0x3f168d)=>_0x59aeed(_0x394324,_0x2f0b5a+'-'+_0x5b3439[_0xfc66c2(0x27d)]+'-'+_0x3f168d,_0x54b9e2,void 0x0,_0x2eb0f4)));}function _0x5b4603(_0x42c496,_0x34c8b5,_0x51d312){const _0x1edd58=_0x5c7510,_0x7ee3f5={..._0x42c496[_0x1edd58(0x1cf)]};_0x51d312!=null&&_0x51d312['colorChannel1']&&_0x7ee3f5[_0x1edd58(0x1fa)]==='colorChannel1'&&(_0x7ee3f5[_0x1edd58(0x1fa)]=_0x51d312[_0x1edd58(0x1fe)]),_0x42c496[_0x1edd58(0x27d)]===_0x1edd58(0x1de)&&_0x7ee3f5['id']&&(_0x7ee3f5['id']=_0x7ee3f5['id']+_0x34c8b5[_0x1edd58(0x246)]),Object[_0x1edd58(0x1e7)](_0x7ee3f5)[_0x1edd58(0x2a3)](([_0x3113e2,_0x3b6a57])=>{const _0x35aea8=_0x1edd58;_0x3113e2===_0x35aea8(0x1de)&&typeof _0x3b6a57==_0x35aea8(0x2a0)&&(_0x7ee3f5[_0x3113e2]=_0x3b6a57[_0x35aea8(0x263)](/url\(#(.*)\)/,_0x35aea8(0x1e8)+_0x34c8b5['idSuffix']+')'));});const {defIds:_0x116c50}=_0x34c8b5;return!_0x116c50||_0x116c50[_0x1edd58(0x254)]===0x0||(_0x42c496['tag']===_0x1edd58(0x272)&&_0x7ee3f5['xlink:href']&&(_0x7ee3f5['xlink:href']=_0x7ee3f5[_0x1edd58(0x248)]+_0x34c8b5[_0x1edd58(0x246)]),Object[_0x1edd58(0x1e7)](_0x7ee3f5)[_0x1edd58(0x2a3)](([_0x2f0511,_0x19b754])=>{const _0x32a5f0=_0x1edd58;typeof _0x19b754==_0x32a5f0(0x2a0)&&(_0x7ee3f5[_0x2f0511]=_0x19b754[_0x32a5f0(0x263)](/url\(#(.*)\)/,_0x32a5f0(0x1e8)+_0x34c8b5[_0x32a5f0(0x246)]+')'));})),_0x7ee3f5;}function _0x98428a(_0x4de795,_0x375d26){const _0x5495fd=_0x5c7510;var _0x5dd9eb;const {defIds:_0x299d75}=_0x375d26;return!_0x299d75||_0x299d75['length']===0x0?_0x4de795:_0x4de795[_0x5495fd(0x27d)]==='defs'&&((_0x5dd9eb=_0x4de795['children'])!=null&&_0x5dd9eb[_0x5495fd(0x254)])?{..._0x4de795,'children':_0x4de795['children'][_0x5495fd(0x1f9)](_0x5ec4ff=>typeof _0x5ec4ff['attrs']['id']=='string'&&_0x299d75&&_0x299d75[_0x5495fd(0x238)](_0x5ec4ff[_0x5495fd(0x1cf)]['id'])?{..._0x5ec4ff,'attrs':{..._0x5ec4ff['attrs'],'id':_0x5ec4ff[_0x5495fd(0x1cf)]['id']+_0x375d26['idSuffix']}}:_0x5ec4ff)}:_0x4de795;}function _0x48eaf2(){const _0x5621a8=_0x5c7510;return Math[_0x5621a8(0x275)]()[_0x5621a8(0x205)](0x24)[_0x5621a8(0x23d)](0x2,0x8);}_0x25b9ec[_0x5c7510(0x1ef)]='UniverIcon';const _0xcf4d40={'tag':_0x5c7510(0x219),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x5c7510(0x214),'height':_0x5c7510(0x214)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x5c7510(0x21a),'attrs':{'fill':_0x5c7510(0x2b2),'d':_0x5c7510(0x232),'fillRule':_0x5c7510(0x202),'clipRule':_0x5c7510(0x202)}}]},_0x2cb66f=_0x270d67[_0x5c7510(0x29e)](function(_0x48c022,_0x53631b){const _0x41eef9=_0x5c7510;return _0x270d67[_0x41eef9(0x25f)](_0x25b9ec,Object['assign']({},_0x48c022,{'id':_0x41eef9(0x282),'ref':_0x53631b,'icon':_0xcf4d40}));});_0x2cb66f[_0x5c7510(0x1ef)]=_0x5c7510(0x293);class _0x16c839 extends _0xbc9cb8[_0x5c7510(0x296)]{constructor(){super(...arguments),_0x2b13a9(this,'_sharedOperations',new Set()),_0x2b13a9(this,'_reporters',new Set());}[_0x5c7510(0x258)](_0xb25ceb){const _0x56c395=_0x5c7510;return this[_0x56c395(0x243)][_0x56c395(0x21f)](_0xb25ceb),_0xbc9cb8[_0x56c395(0x276)](()=>this[_0x56c395(0x243)][_0x56c395(0x2a6)](_0xb25ceb));}['registerInitialStateReporter'](_0x118a96){const _0x59b4a4=_0x5c7510;return this[_0x59b4a4(0x273)][_0x59b4a4(0x21f)](_0x118a96),_0xbc9cb8[_0x59b4a4(0x276)](()=>this[_0x59b4a4(0x273)][_0x59b4a4(0x2a6)](_0x118a96));}[_0x5c7510(0x1da)](_0x3bfe79){const _0x172748=_0x5c7510;return this[_0x172748(0x243)][_0x172748(0x26d)](_0x3bfe79);}[_0x5c7510(0x1f5)](_0x28a020){const _0x7b3e21=_0x5c7510;return Array['from'](this[_0x7b3e21(0x273)])[_0x7b3e21(0x1f9)](_0x435dc4=>_0x435dc4(_0x28a020));}}var _0x28381a=Object[_0x5c7510(0x265)],_0x1c40ca=(_0x2154c8,_0x90ec68,_0x4619e0,_0x271ae5)=>{const _0x4abba4=_0x5c7510;for(var _0x5837ea=_0x271ae5>0x1?void 0x0:_0x271ae5?_0x28381a(_0x90ec68,_0x4619e0):_0x90ec68,_0x382251=_0x2154c8[_0x4abba4(0x254)]-0x1,_0x8e4177;_0x382251>=0x0;_0x382251--)(_0x8e4177=_0x2154c8[_0x382251])&&(_0x5837ea=_0x8e4177(_0x5837ea)||_0x5837ea);return _0x5837ea;},_0xa229b8=(_0x177f3c,_0x1984c3)=>(_0x32f768,_0x50545a)=>_0x1984c3(_0x32f768,_0x50545a,_0x177f3c);_0x45d6fe['LiveShareController']=class extends _0xbc9cb8[_0x5c7510(0x220)]{constructor(_0x3fb560,_0x44e3a2,_0x20625a){const _0x121ee6=_0x5c7510;super(),_0x2b13a9(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3fb560,this['_injector']=_0x44e3a2,this[_0x121ee6(0x23c)]=_0x20625a,this[_0x121ee6(0x289)]());}async[_0x5c7510(0x1fd)](_0x2d3b60){const _0x2c6b19=_0x5c7510;return this[_0x2c6b19(0x1fc)][_0x2c6b19(0x26d)](_0x2d3b60)||await this[_0x2c6b19(0x28d)](_0x2d3b60),this[_0x2c6b19(0x1fc)]['get'](_0x2d3b60);}[_0x5c7510(0x21e)](_0x4dff3e){const _0x114285=_0x5c7510;var _0x2d5c9e;return(_0x2d5c9e=this['_entities'][_0x114285(0x277)](_0x4dff3e))!=null?_0x2d5c9e:null;}[_0x5c7510(0x289)](){const _0x3d1a6a=_0x5c7510;this[_0x3d1a6a(0x24d)][_0x3d1a6a(0x1ea)](_0xbc9cb8[_0x3d1a6a(0x2a1)]['UNIVER_SHEET'])[_0x3d1a6a(0x222)](_0x13b9ea['takeUntil'](this[_0x3d1a6a(0x225)]))[_0x3d1a6a(0x298)](async _0x24e017=>{const _0x5ca8b3=_0x3d1a6a,_0x54d162=_0x24e017[_0x5ca8b3(0x215)]();this['_entities'][_0x5ca8b3(0x26d)](_0x54d162)||this[_0x5ca8b3(0x28d)](_0x54d162);}),this[_0x3d1a6a(0x24d)][_0x3d1a6a(0x27c)](_0xbc9cb8[_0x3d1a6a(0x2a1)][_0x3d1a6a(0x1f8)])[_0x3d1a6a(0x222)](_0x13b9ea[_0x3d1a6a(0x28a)](this[_0x3d1a6a(0x225)]))[_0x3d1a6a(0x298)](_0x458ae1=>{const _0x5411cf=_0x3d1a6a,_0x11da01=_0x458ae1[_0x5411cf(0x215)](),_0x536ffa=this['_entities'][_0x5411cf(0x277)](_0x11da01);_0x536ffa==null||_0x536ffa[_0x5411cf(0x20b)]();});}async['_startLiveShareCoordinator'](_0x4756dc){const _0x53c1d5=_0x5c7510,_0x52ccaf=await this['_collabSessionService'][_0x53c1d5(0x213)](_0x4756dc),_0x1c831d=this[_0x53c1d5(0x1f3)][_0x53c1d5(0x234)](_0x45d6fe[_0x53c1d5(0x229)],_0x4756dc,_0x52ccaf);return _0x1c831d[_0x53c1d5(0x1d1)](),this[_0x53c1d5(0x1fc)][_0x53c1d5(0x1d0)](_0x4756dc,_0x1c831d),_0x1c831d;}},_0x45d6fe[_0x5c7510(0x252)]=_0x1c40ca([_0xa229b8(0x0,_0xbc9cb8[_0x5c7510(0x280)]),_0xa229b8(0x1,_0xbc9cb8[_0x5c7510(0x208)](_0xbc9cb8[_0x5c7510(0x267)])),_0xa229b8(0x2,_0xbc9cb8[_0x5c7510(0x208)](_0x26d167[_0x5c7510(0x20d)]))],_0x45d6fe['LiveShareController']);var _0x973537=(_0x5e72ef=>(_0x5e72ef[_0x5c7510(0x1d8)]='offline',_0x5e72ef[_0x5c7510(0x29a)]=_0x5c7510(0x207),_0x5e72ef['FOLLOWING']=_0x5c7510(0x1ec),_0x5e72ef['NOT_FOLLOWING']='not-following',_0x5e72ef[_0x5c7510(0x212)]=_0x5c7510(0x23f),_0x5e72ef))(_0x973537||{});const _0x1013fe=_0x5c7510(0x22f),_0x34d50b=0xc8;_0x45d6fe[_0x5c7510(0x229)]=class extends _0xbc9cb8[_0x5c7510(0x220)]{constructor(_0x4cf297,_0x39334c,_0x372054,_0x1c198d,_0x3781bc){const _0x15f23f=_0x5c7510;super(),_0x2b13a9(this,_0x15f23f(0x2a4),new _0x3e3dba['BehaviorSubject']('idle')),_0x2b13a9(this,_0x15f23f(0x20c),this[_0x15f23f(0x2a4)][_0x15f23f(0x1f6)]()),_0x2b13a9(this,_0x15f23f(0x289),!0x1),_0x2b13a9(this,_0x15f23f(0x297),null),_0x2b13a9(this,_0x15f23f(0x1eb),null),(this['_unitID']=_0x4cf297,this[_0x15f23f(0x237)]=_0x39334c,this[_0x15f23f(0x2a9)]=_0x372054,this['_liveShareService']=_0x1c198d,this[_0x15f23f(0x24f)]=_0x3781bc);}get[_0x5c7510(0x228)](){const _0x51fa27=_0x5c7510;return this[_0x51fa27(0x2a4)]['getValue']();}[_0x5c7510(0x20b)](){const _0x1eac90=_0x5c7510;var _0x19465b;(_0x19465b=this[_0x1eac90(0x297)])==null||_0x19465b[_0x1eac90(0x20b)](),this[_0x1eac90(0x2a4)][_0x1eac90(0x233)](_0x1eac90(0x207)),this[_0x1eac90(0x2a4)][_0x1eac90(0x236)]();}[_0x5c7510(0x299)](){const _0x10975b=_0x5c7510;return this[_0x10975b(0x228)];}[_0x5c7510(0x1d1)](){const _0x4d02d5=_0x5c7510;this[_0x4d02d5(0x289)]||(this['_init']=!0x0,this['_collabSession'][_0x4d02d5(0x21b)]['pipe'](_0x13b9ea[_0x4d02d5(0x28a)](this['dispose$']))[_0x4d02d5(0x298)](_0x3f4a6e=>{const _0x3c5dc7=_0x4d02d5;switch(_0x3f4a6e){case _0x26d167['SessionStatus'][_0x3c5dc7(0x1d8)]:this['_handleOffline']();break;case _0x26d167['SessionStatus'][_0x3c5dc7(0x26c)]:this[_0x3c5dc7(0x28b)]();break;}}),this[_0x4d02d5(0x237)]['event$'][_0x4d02d5(0x222)](_0x13b9ea[_0x4d02d5(0x28a)](this['dispose$']))[_0x4d02d5(0x298)](_0x30c18d=>{const _0x8d25c5=_0x4d02d5,{eventID:_0x2e9fe3}=_0x30c18d;switch(_0x2e9fe3){case _0x200d12[_0x8d25c5(0x2b1)][_0x8d25c5(0x1d7)]:this[_0x8d25c5(0x28f)](_0x30c18d);break;case _0x200d12['CollaborationEvent'][_0x8d25c5(0x287)]:this[_0x8d25c5(0x279)](_0x30c18d);break;case _0x200d12[_0x8d25c5(0x2b1)]['LIVESHARE_TERMINATE']:this[_0x8d25c5(0x22b)]();break;case _0x200d12[_0x8d25c5(0x2b1)][_0x8d25c5(0x292)]:this[_0x8d25c5(0x1e2)](_0x30c18d);break;}}));}[_0x5c7510(0x25c)](){const _0xc95ab8=_0x5c7510;this[_0xc95ab8(0x237)]['send']({'eventID':_0x200d12[_0xc95ab8(0x2b1)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xc95ab8(0x285)],'userID':this[_0xc95ab8(0x237)][_0xc95ab8(0x203)]()}},this[_0xc95ab8(0x285)]);}[_0x5c7510(0x245)](){const _0x29d0dc=_0x5c7510;this[_0x29d0dc(0x228)]===_0x29d0dc(0x23f)&&(this[_0x29d0dc(0x2a4)]['next'](_0x29d0dc(0x207)),this[_0x29d0dc(0x237)][_0x29d0dc(0x283)]({'eventID':_0x200d12['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x29d0dc(0x285)]}},this['_unitID']));}['startFollowing'](){const _0x46cd4d=_0x5c7510;this['_status']===_0x46cd4d(0x251)&&(this[_0x46cd4d(0x2a4)]['next'](_0x46cd4d(0x1ec)),this['_startFollowing']());}[_0x5c7510(0x250)](){const _0x9732dd=_0x5c7510;this[_0x9732dd(0x228)]===_0x9732dd(0x1ec)&&this['_stopFollowing']();}[_0x5c7510(0x28f)](_0x57f636){const _0x2f6903=_0x5c7510,{presenter:_0x288540}=_0x57f636[_0x2f6903(0x22d)],_0x49689f=this[_0x2f6903(0x237)][_0x2f6903(0x203)]();this['_presenter']=_0x288540,_0x288540===_0x49689f?(this['_stopFollowing'](),this[_0x2f6903(0x29f)]()):this[_0x2f6903(0x228)]!==_0x2f6903(0x251)&&(this['_stopPresenting'](),this[_0x2f6903(0x1e9)]());}[_0x5c7510(0x22a)](){const _0x2c7b4b=_0x5c7510,_0x3e8fde={'eventID':_0x200d12['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x2c7b4b(0x283)](_0x3e8fde,this[_0x2c7b4b(0x285)]);}[_0x5c7510(0x22b)](){const _0x3040ea=_0x5c7510;this[_0x3040ea(0x1eb)]=null,this[_0x3040ea(0x228)]!==_0x3040ea(0x23f)&&this[_0x3040ea(0x1d6)]();}[_0x5c7510(0x1e2)](_0x137063){const _0x9a6840=_0x5c7510;if(this['_status']==='following'&&this[_0x9a6840(0x1eb)]===_0x137063['data'][_0x9a6840(0x24c)]){const _0x187eb1=_0x200d12[_0x9a6840(0x1dc)](_0x137063[_0x9a6840(0x22d)])['mutations'][_0x9a6840(0x26e)]()[_0x9a6840(0x269)](_0x5b4069=>_0x5b4069['id']===_0x41b9aa[_0x9a6840(0x224)]['id']);if(_0x187eb1){const _0x5c9686=_0x187eb1[_0x9a6840(0x1e6)]['unitId'],_0x42476b=_0x187eb1[_0x9a6840(0x1e6)][_0x9a6840(0x1fb)]['id'];setTimeout(()=>{const _0x43152a=_0x9a6840;this['_commandService'][_0x43152a(0x1e3)](_0x41b9aa['SetWorksheetActiveOperation']['id'],{'unitId':_0x5c9686,'subUnitId':_0x42476b},{'fromCollab':!0x0});});}}}[_0x5c7510(0x29f)](){const _0x52cf88=_0x5c7510;this['_status$']['next'](_0x52cf88(0x23f));const _0x23411e=new Map(),_0x58912f=this['_commandDisposable']=new _0xbc9cb8[(_0x52cf88(0x241))]();_0x58912f[_0x52cf88(0x21f)](_0xbc9cb8[_0x52cf88(0x276)](()=>{const _0x56c5a3=_0x52cf88;_0x23411e[_0x56c5a3(0x2a3)](_0x5528e2=>_0x5528e2[_0x56c5a3(0x236)]()),_0x23411e['clear']();})),_0x58912f[_0x52cf88(0x21f)](this[_0x52cf88(0x24f)]['onCommandExecuted'](_0x1e9cd2=>{const _0x5a1340=_0x52cf88;var _0x9810e;if(_0x1e9cd2['type']!==_0xbc9cb8[_0x5a1340(0x266)]['OPERATION']||!this[_0x5a1340(0x1e5)][_0x5a1340(0x1da)](_0x1e9cd2['id']))return;const {id:_0x14aad3}=_0x1e9cd2;let _0x36dc55;_0x23411e[_0x5a1340(0x26d)](_0x14aad3)?_0x36dc55=_0x23411e[_0x5a1340(0x277)](_0x14aad3):(_0x36dc55=new _0x3e3dba[(_0x5a1340(0x2ab))](),_0x23411e[_0x5a1340(0x1d0)](_0x14aad3,_0x36dc55),_0x36dc55['pipe'](_0x13b9ea[_0x5a1340(0x1ee)]((_0x9810e=this[_0x5a1340(0x2a9)]['getConfig'](_0x1013fe))!=null?_0x9810e:_0x34d50b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5a1340(0x298)](_0x1f9493=>{const _0x46b6af=_0x5a1340;this[_0x46b6af(0x237)][_0x46b6af(0x283)]({'eventID':_0x200d12[_0x46b6af(0x2b1)][_0x46b6af(0x287)],'data':{'unitID':this[_0x46b6af(0x285)],'operations':{[_0x1f9493['id']]:{'id':_0x1f9493['id'],'params':JSON['stringify'](_0x1f9493['params'])}}}},this['_unitID']);})),_0x36dc55[_0x5a1340(0x233)](_0x1e9cd2);})),this[_0x52cf88(0x1e5)]['getInitialStates'](this[_0x52cf88(0x285)])[_0x52cf88(0x2a3)](_0x1533f7=>this[_0x52cf88(0x237)][_0x52cf88(0x283)]({'eventID':_0x200d12[_0x52cf88(0x2b1)][_0x52cf88(0x287)],'data':{'unitID':this[_0x52cf88(0x285)],'operations':{[_0x1533f7['id']]:{'id':_0x1533f7['id'],'params':JSON['stringify'](_0x1533f7[_0x52cf88(0x1e6)])}}}},this['_unitID']));}[_0x5c7510(0x27a)](){const _0x345b26=_0x5c7510;var _0x579291;this['_status$'][_0x345b26(0x233)](_0x345b26(0x207)),(_0x579291=this[_0x345b26(0x297)])==null||_0x579291['dispose'](),this['_commandDisposable']=null;}[_0x5c7510(0x1e9)](){const _0x757146=_0x5c7510;var _0x4603cf;(_0x4603cf=this[_0x757146(0x297)])==null||_0x4603cf['dispose'](),this['_status$'][_0x757146(0x233)]('following');}['_beIdle'](){const _0x19223e=_0x5c7510;var _0x3fe338;this[_0x19223e(0x2a4)]['next'](_0x19223e(0x207)),(_0x3fe338=this[_0x19223e(0x297)])==null||_0x3fe338[_0x19223e(0x20b)](),this[_0x19223e(0x297)]=null;}[_0x5c7510(0x204)](){const _0x164724=_0x5c7510;var _0x37fbc3;this[_0x164724(0x2a4)][_0x164724(0x233)](_0x164724(0x251)),(_0x37fbc3=this[_0x164724(0x297)])==null||_0x37fbc3[_0x164724(0x20b)]();}[_0x5c7510(0x279)](_0x431b18){const _0x53fefd=_0x5c7510;if([_0x53fefd(0x23f),_0x53fefd(0x251),_0x53fefd(0x2b0)][_0x53fefd(0x238)](this[_0x53fefd(0x228)])||!_0x431b18['data']['presenter']||_0x431b18[_0x53fefd(0x22d)][_0x53fefd(0x1f7)]===this['_collabSession']['getMemberID']())return;this[_0x53fefd(0x228)]===_0x53fefd(0x207)&&this['_startFollowing']();const _0x6a0bc2=_0x431b18[_0x53fefd(0x22d)][_0x53fefd(0x2ac)];Object[_0x53fefd(0x1ff)](_0x6a0bc2)['forEach'](_0x53c092=>{const _0xadca57=_0x53fefd;this['_commandService'][_0xadca57(0x1e3)](_0x53c092['id'],_0x53c092[_0xadca57(0x1e6)]?JSON[_0xadca57(0x200)](_0x53c092[_0xadca57(0x1e6)]):null,{'fromCollab':!0x0});});}[_0x5c7510(0x2b3)](){const _0x1049a4=_0x5c7510;var _0x5da5f3;this[_0x1049a4(0x2a4)][_0x1049a4(0x233)]('offline'),(_0x5da5f3=this[_0x1049a4(0x297)])==null||_0x5da5f3[_0x1049a4(0x20b)]();}[_0x5c7510(0x28b)](){const _0x25edbc=_0x5c7510;this[_0x25edbc(0x2a4)]['next']('idle'),this[_0x25edbc(0x22a)]();}},_0x45d6fe['LiveShareCoordinator']=_0x1c40ca([_0xa229b8(0x2,_0xbc9cb8[_0x5c7510(0x29b)]),_0xa229b8(0x3,_0xbc9cb8['Inject'](_0x16c839)),_0xa229b8(0x4,_0xbc9cb8[_0x5c7510(0x28c)])],_0x45d6fe[_0x5c7510(0x229)]);function _0x59c5d8(){const _0x2eec80=_0x5c7510,_0x41af0d=_0x204400[_0x2eec80(0x1ed)](_0x45d6fe[_0x2eec80(0x252)]),_0x3d6966=_0x204400[_0x2eec80(0x1ed)](_0xbc9cb8['IUniverInstanceService']),_0x4ea52d=_0x204400[_0x2eec80(0x239)](()=>_0x3d6966[_0x2eec80(0x278)](_0xbc9cb8[_0x2eec80(0x2a1)][_0x2eec80(0x1f8)]),void 0x0,!0x1,[]),[_0x427194,_0x104cc4]=_0x270d67[_0x2eec80(0x1f0)](null),[_0x46aa65,_0x13d3c4]=_0x270d67[_0x2eec80(0x1f0)](_0x973537['IDLE']),_0x561d2c=_0x270d67[_0x2eec80(0x1f2)](null);return _0x270d67[_0x2eec80(0x271)](()=>(_0x4ea52d&&_0x41af0d[_0x2eec80(0x1fd)](_0x4ea52d['getUnitId']())[_0x2eec80(0x24e)](_0x4538aa=>{const _0xf20f1a=_0x2eec80;_0x104cc4(_0x4538aa),_0x561d2c['current']=_0x4538aa[_0xf20f1a(0x20c)][_0xf20f1a(0x298)](_0x20a283=>{_0x13d3c4(_0x20a283);});}),()=>{const _0x5aab9f=_0x2eec80;var _0x93d475;(_0x93d475=_0x561d2c[_0x5aab9f(0x294)])==null||_0x93d475[_0x5aab9f(0x26a)](),_0x561d2c['current']=null;}),[_0x4ea52d,_0x41af0d]),_0x427194?_0x120d92[_0x2eec80(0x2ad)](_0x416afd['Dropdown'],{'align':_0x2eec80(0x23b),'disabled':_0x46aa65===_0x973537[_0x2eec80(0x1d8)],'className':_0x2eec80(0x253),'overlay':_0x120d92[_0x2eec80(0x2ad)](_0x419f75,{'status':_0x46aa65,'coordinator':_0x427194}),'children':_0x120d92[_0x2eec80(0x2ad)](_0x2eec80(0x25b),{'className':_0x416afd['clsx'](_0x2eec80(0x286),{'univer-cursor-not-allowed':_0x46aa65===_0x973537['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x46aa65!==_0x973537[_0x2eec80(0x1d8)]}),'type':_0x2eec80(0x25b),'children':_0x120d92[_0x2eec80(0x2ad)](_0x2cb66f,{'className':_0x2eec80(0x262)})})}):null;}function _0x419f75(_0x2fd7ac){const _0x56c614=_0x5c7510,{status:_0x2b94f0,coordinator:_0x4bea2f}=_0x2fd7ac;switch(_0x2b94f0){case _0x973537[_0x56c614(0x29a)]:return _0x120d92['jsx'](_0xb0008c,{'coordinator':_0x4bea2f});case _0x973537['FOLLOWING']:return _0x120d92[_0x56c614(0x2ad)](_0x2d6e38,{'coordinator':_0x4bea2f});case _0x973537['NOT_FOLLOWING']:return _0x120d92[_0x56c614(0x2ad)](_0x255a8e,{'coordinator':_0x4bea2f});case _0x973537[_0x56c614(0x1d8)]:return _0x120d92[_0x56c614(0x2ad)](_0x18f6e3,{});case _0x973537[_0x56c614(0x212)]:return _0x120d92[_0x56c614(0x2ad)](_0x1ee443,{'coordinator':_0x4bea2f});default:return null;}}function _0xb0008c(_0x28df39){const _0x4ed5a8=_0x5c7510,{coordinator:_0x575215}=_0x28df39;return _0x120d92['jsxs'](_0x120d92[_0x4ed5a8(0x274)],{'children':[_0x120d92[_0x4ed5a8(0x2ad)](_0x4ed5a8(0x25e),{'className':_0x4ed5a8(0x240),'children':_0x4ed5a8(0x201)}),_0x120d92[_0x4ed5a8(0x2ad)](_0x416afd[_0x4ed5a8(0x291)],{'onClick':()=>_0x575215[_0x4ed5a8(0x25c)](),'children':_0x4ed5a8(0x259)})]});}function _0x2d6e38(_0x44a9a4){const _0x143bc7=_0x5c7510,{coordinator:_0x4e4184}=_0x44a9a4;return _0x120d92[_0x143bc7(0x25d)](_0x120d92[_0x143bc7(0x274)],{'children':[_0x120d92[_0x143bc7(0x2ad)](_0x143bc7(0x25e),{'className':_0x143bc7(0x240),'children':_0x143bc7(0x1d9)}),_0x120d92[_0x143bc7(0x2ad)](_0x416afd[_0x143bc7(0x291)],{'onClick':()=>_0x4e4184[_0x143bc7(0x250)](),'children':'Stop\x20following'})]});}function _0x255a8e(_0x2ea1a5){const _0x16ff79=_0x5c7510,{coordinator:_0x3c94b4}=_0x2ea1a5;return _0x120d92[_0x16ff79(0x25d)](_0x120d92[_0x16ff79(0x274)],{'children':[_0x120d92[_0x16ff79(0x2ad)](_0x16ff79(0x25e),{'className':_0x16ff79(0x240),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x120d92[_0x16ff79(0x2ad)](_0x416afd[_0x16ff79(0x291)],{'variant':_0x16ff79(0x242),'onClick':()=>_0x3c94b4[_0x16ff79(0x270)](),'children':'Start\x20following'})]});}function _0x1ee443(_0x591802){const _0x2fe58a=_0x5c7510,{coordinator:_0x42262e}=_0x591802;return _0x120d92[_0x2fe58a(0x25d)](_0x120d92[_0x2fe58a(0x274)],{'children':[_0x120d92[_0x2fe58a(0x2ad)]('div',{'className':_0x2fe58a(0x240),'children':_0x2fe58a(0x260)}),_0x120d92[_0x2fe58a(0x2ad)](_0x416afd[_0x2fe58a(0x291)],{'variant':_0x2fe58a(0x230),'onClick':()=>_0x42262e[_0x2fe58a(0x245)](),'children':'Stop\x20presenting'})]});}function _0x18f6e3(){const _0x485a0a=_0x5c7510;return _0x120d92[_0x485a0a(0x2ad)](_0x120d92[_0x485a0a(0x274)],{'children':'You\x27are\x20offline.'});}var _0x5f422d=Object[_0x5c7510(0x265)],_0x5f506a=(_0x362b35,_0x4d37d5,_0x3d8cb7,_0x33eeea)=>{const _0xd664a2=_0x5c7510;for(var _0x4d62db=_0x33eeea>0x1?void 0x0:_0x33eeea?_0x5f422d(_0x4d37d5,_0x3d8cb7):_0x4d37d5,_0x4cdc7a=_0x362b35[_0xd664a2(0x254)]-0x1,_0x40b1a5;_0x4cdc7a>=0x0;_0x4cdc7a--)(_0x40b1a5=_0x362b35[_0x4cdc7a])&&(_0x4d62db=_0x40b1a5(_0x4d62db)||_0x4d62db);return _0x4d62db;},_0x20ac52=(_0x4d5cd8,_0x2ffabe)=>(_0x3857e5,_0x48a916)=>_0x2ffabe(_0x3857e5,_0x48a916,_0x4d5cd8);_0x45d6fe[_0x5c7510(0x211)]=class extends _0xbc9cb8[_0x5c7510(0x296)]{constructor(_0x547703,_0x3ac086){const _0x255f93=_0x5c7510;super(),this[_0x255f93(0x1f3)]=_0x547703,this[_0x255f93(0x1e0)]=_0x3ac086,this[_0x255f93(0x20f)]();}[_0x5c7510(0x20f)](){const _0x135a36=_0x5c7510;this['disposeWithMe'](this[_0x135a36(0x1e0)][_0x135a36(0x2af)](_0x204400[_0x135a36(0x1dd)][_0x135a36(0x249)],()=>_0x204400['connectInjector'](_0x59c5d8,this[_0x135a36(0x1f3)])));}},_0x45d6fe['DesktopLiveShareController']=_0x5f506a([_0x20ac52(0x0,_0xbc9cb8[_0x5c7510(0x208)](_0xbc9cb8[_0x5c7510(0x267)])),_0x20ac52(0x1,_0x204400[_0x5c7510(0x24a)])],_0x45d6fe['DesktopLiveShareController']);const _0x1830ea=_0x5c7510(0x1f4),_0x2d2a14={};var _0x258ba9=Object[_0x5c7510(0x265)],_0x1b051b=(_0x2e6be0,_0x44c19d,_0x11fcac,_0x1a248b)=>{const _0x4db13c=_0x5c7510;for(var _0x5af180=_0x1a248b>0x1?void 0x0:_0x1a248b?_0x258ba9(_0x44c19d,_0x11fcac):_0x44c19d,_0x11e52d=_0x2e6be0[_0x4db13c(0x254)]-0x1,_0xfb7569;_0x11e52d>=0x0;_0x11e52d--)(_0xfb7569=_0x2e6be0[_0x11e52d])&&(_0x5af180=_0xfb7569(_0x5af180)||_0x5af180);return _0x5af180;},_0x1e1dbb=(_0x52d36d,_0x5058df)=>(_0x1bd17d,_0x469ea2)=>_0x5058df(_0x1bd17d,_0x469ea2,_0x52d36d);let _0xc65f0d=class extends _0xbc9cb8[_0x5c7510(0x296)]{constructor(_0x2ad71e){const _0x27c828=_0x5c7510;super(),this[_0x27c828(0x1e5)]=_0x2ad71e,this[_0x27c828(0x289)]();}['_init'](){const _0x6bf496=_0x5c7510;[_0x4af3a4[_0x6bf496(0x1d4)]['id'],_0x4af3a4['SetScrollOperation']['id'],_0x41b9aa[_0x6bf496(0x21c)]['id']][_0x6bf496(0x2a3)](_0x4a01ef=>{const _0xe0412b=_0x6bf496;this[_0xe0412b(0x29c)](this['_liveShareService'][_0xe0412b(0x258)](_0x4a01ef));});}};_0xc65f0d=_0x1b051b([_0x1e1dbb(0x0,_0xbc9cb8[_0x5c7510(0x208)](_0x16c839))],_0xc65f0d);var _0x44a9d7=Object[_0x5c7510(0x1f1)],_0x1b1d8a=Object[_0x5c7510(0x265)],_0x3fdfdc=(_0x26fc20,_0x576726,_0x44c87f)=>_0x576726 in _0x26fc20?_0x44a9d7(_0x26fc20,_0x576726,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44c87f}):_0x26fc20[_0x576726]=_0x44c87f,_0x5526cf=(_0x153c1b,_0x17dfb8,_0x47cbc4,_0x2700d6)=>{for(var _0x186838=_0x2700d6>0x1?void 0x0:_0x2700d6?_0x1b1d8a(_0x17dfb8,_0x47cbc4):_0x17dfb8,_0x2c2acc=_0x153c1b['length']-0x1,_0x5a4ca4;_0x2c2acc>=0x0;_0x2c2acc--)(_0x5a4ca4=_0x153c1b[_0x2c2acc])&&(_0x186838=_0x5a4ca4(_0x186838)||_0x186838);return _0x186838;},_0xe90d5a=(_0x480c3c,_0x29238d)=>(_0x407de4,_0x1ebb79)=>_0x29238d(_0x407de4,_0x1ebb79,_0x480c3c),_0x500778=(_0x1a0e49,_0x4f02dc,_0x46e589)=>_0x3fdfdc(_0x1a0e49,typeof _0x4f02dc!=_0x5c7510(0x235)?_0x4f02dc+'':_0x4f02dc,_0x46e589);const _0x388f0b=_0x5c7510(0x2a5);_0x45d6fe[_0x5c7510(0x21d)]=class extends _0xbc9cb8['Plugin']{constructor(_0x283981=_0x2d2a14,_0x361a01,_0x59e344){const _0x563f57=_0x5c7510;super(),this['_config']=_0x283981,this[_0x563f57(0x1f3)]=_0x361a01,this['_configService']=_0x59e344;const {..._0x3a6cce}=_0xbc9cb8[_0x563f57(0x2a8)]({},_0x2d2a14,this[_0x563f57(0x27f)]);this[_0x563f57(0x2a9)][_0x563f57(0x281)](_0x1830ea,_0x3a6cce);}[_0x5c7510(0x290)](){const _0x1fe76c=_0x5c7510;_0xbc9cb8[_0x1fe76c(0x221)](this['_injector'],_0xbc9cb8[_0x1fe76c(0x22c)]([[_0x16c839],[_0x45d6fe[_0x1fe76c(0x252)]],[_0xc65f0d],[_0x45d6fe[_0x1fe76c(0x211)]]],this[_0x1fe76c(0x27f)][_0x1fe76c(0x284)])),_0xbc9cb8['touchDependencies'](this[_0x1fe76c(0x1f3)],[[_0xc65f0d]]);}['onRendered'](){const _0x5e40a4=_0x5c7510;_0xbc9cb8[_0x5e40a4(0x26f)](this[_0x5e40a4(0x1f3)],[[_0x45d6fe[_0x5e40a4(0x211)]]]);}},_0x500778(_0x45d6fe[_0x5c7510(0x21d)],_0x5c7510(0x1e4),_0xbc9cb8[_0x5c7510(0x2a1)][_0x5c7510(0x216)]),_0x500778(_0x45d6fe['UniverLiveSharePlugin'],_0x5c7510(0x27e),_0x388f0b),_0x45d6fe['UniverLiveSharePlugin']=_0x5526cf([_0xbc9cb8[_0x5c7510(0x288)](_0x26d167[_0x5c7510(0x25a)]),_0xe90d5a(0x1,_0xbc9cb8[_0x5c7510(0x208)](_0xbc9cb8[_0x5c7510(0x267)])),_0xe90d5a(0x2,_0xbc9cb8[_0x5c7510(0x29b)])],_0x45d6fe['UniverLiveSharePlugin']),_0x45d6fe[_0x5c7510(0x2a7)]=_0x59c5d8,_0x45d6fe[_0x5c7510(0x206)]=_0x16c839,_0x45d6fe['LiveShareStatus']=_0x973537,Object[_0x5c7510(0x1f1)](_0x45d6fe,Symbol[_0x5c7510(0x268)],{'value':_0x5c7510(0x23a)});}));function _0xe08b(_0x266ce3,_0x413862){_0x266ce3=_0x266ce3-0x1cf;const _0x25c59f=_0x25c5();let _0xe08b55=_0x25c59f[_0x266ce3];return _0xe08b55;}function _0x25c5(){const _0x290d4b=['fill','sheet','_entities','getLiveShareCoordinator','colorChannel1','values','parse','Present\x20this\x20document','evenodd','getMemberID','_stopFollowing','toString','LiveShareService','idle','Inject','1113ZKLggW','operators','dispose','status$','CollaborationSessionService','React','_mountLiveShare','rxjs','DesktopLiveShareController','PRESENTING','requireSession','1em','getUnitId','UNIVER_UNKNOWN','react','exports','svg','path','sessionStatus$','SetWorksheetActiveOperation','UniverLiveSharePlugin','getLiveShareCoordinatorSync','add','RxDisposable','registerDependencies','pipe','amd','InsertSheetMutation','dispose$','children','48814LLjebT','_status','LiveShareCoordinator','_fetchOperations','_handleTerminate','mergeOverrideWithDependencies','data','@univerjs-pro/collaboration','SAME_OPERATION_SHARE_INTERVAL','default','UniverCore','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','next','createInstance','symbol','complete','_collabSession','includes','useObservable','Module','end','_collabSessionService','substring','object','presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','DisposableCollection','text','_sharedOperations','7350PlYScj','stopPresenting','idSuffix','3954xcrGlA','xlink:href','HEADER_MENU','IUIPartsService','@univerjs-pro/collaboration-client','memberID','_univerInstanceService','then','_commandService','stopFollowing','not-following','LiveShareController','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','length','function','univerjs-icon\x20univerjs-icon-','trim','registerSharedOperation','Start','UniverCollaborationClientPlugin','button','tryStartPresenting','jsxs','div','createElement','You\x27re\x20presenting\x20the\x20document','@univerjs/sheets-ui','univer-size-4','replace','3274527KglgGt','getOwnPropertyDescriptor','CommandType','Injector','toStringTag','find','unsubscribe','UniverUi','ONLINE','has','reverse','touchDependencies','startFollowing','useEffect','use','_reporters','Fragment','random','toDisposable','get','getCurrentTypeOfUnit$','_handleOperation','_stopPresenting','UniverSheets','getTypeOfUnitDisposed$','tag','pluginName','_config','IUniverInstanceService','setConfig','live-share-icon','send','override','_unitID','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_OPERATION','DependentOn','_init','takeUntil','_handleOnline','ICommandService','_startLiveShareCoordinator','UniverProCollaborationClient','_handleNewHost','onStarting','Button','NEW_CHANGESETS','LiveShareIcon','current','react/jsx-runtime','Disposable','_commandDisposable','subscribe','getStatus','IDLE','IConfigService','disposeWithMe','3728yZxnXk','forwardRef','_startPresenting','string','UniverInstanceType','55HYVqyv','forEach','_status$','UNIVER_LIVE_SHARE_PLUGIN','delete','LiveShare','merge','_configService','@univerjs/core','Subject','operations','jsx','rxjs/operators','registerComponent','offline','CollaborationEvent','currentColor','_handleOffline','attrs','set','init','3377256uiKPbA','4445289gToffC','SetZoomRatioOperation','30MCapar','_beIdle','LIVESHARE_NEW_HOST','OFFLINE','You\x27re\x20following\x20the\x20presenter','shouldShareOperation','3267444bxUzDs','parseProtocolChangeset','BuiltInUIPart','mask','@univerjs/sheets','_uiPartsService','1pLppao','_handleNewChangeSets','executeCommand','type','_liveShareService','params','entries','url(#$1','_startFollowing','getTypeOfUnitAdded$','_presenter','following','useDependency','throttleTime','displayName','useState','defineProperty','useRef','_injector','live-share.config','getInitialStates','asObservable','presenter','UNIVER_SHEET','map'];_0x25c5=function(){return _0x290d4b;};return _0x25c5();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.13.0-insiders.
|
|
3
|
+
"version": "0.13.0-insiders.20251216-1519cb7",
|
|
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.13.0-insiders.
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs
|
|
63
|
-
"@univerjs/design": "0.13.0-insiders.
|
|
64
|
-
"@univerjs/engine-render": "0.13.0-insiders.
|
|
65
|
-
"@univerjs/sheets-ui": "0.13.0-insiders.
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.13.0-insiders.20251216-1519cb7",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.13.0-insiders.20251216-1519cb7",
|
|
62
|
+
"@univerjs/core": "0.13.0-insiders.20251216-1519cb7",
|
|
63
|
+
"@univerjs/design": "0.13.0-insiders.20251216-1519cb7",
|
|
64
|
+
"@univerjs/engine-render": "0.13.0-insiders.20251216-1519cb7",
|
|
65
|
+
"@univerjs/sheets-ui": "0.13.0-insiders.20251216-1519cb7",
|
|
66
|
+
"@univerjs/ui": "0.13.0-insiders.20251216-1519cb7",
|
|
67
|
+
"@univerjs/sheets": "0.13.0-insiders.20251216-1519cb7"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|