@univerjs-pro/live-share 0.12.3-experimental.20251204-1549a8e → 0.12.3-experimental.20251205-71d07c3

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3223da=_0x499f;(function(_0x3bab12,_0xf3d207){const _0x549c90=_0x499f,_0xc46594=_0x3bab12();while(!![]){try{const _0x2c43d3=parseInt(_0x549c90(0x14e))/0x1*(-parseInt(_0x549c90(0x146))/0x2)+parseInt(_0x549c90(0x140))/0x3*(parseInt(_0x549c90(0x168))/0x4)+parseInt(_0x549c90(0x167))/0x5*(-parseInt(_0x549c90(0x14d))/0x6)+parseInt(_0x549c90(0x142))/0x7*(-parseInt(_0x549c90(0x160))/0x8)+-parseInt(_0x549c90(0x152))/0x9*(-parseInt(_0x549c90(0x15b))/0xa)+parseInt(_0x549c90(0x147))/0xb*(parseInt(_0x549c90(0x15f))/0xc)+parseInt(_0x549c90(0x153))/0xd*(parseInt(_0x549c90(0x15e))/0xe);if(_0x2c43d3===_0xf3d207)break;else _0xc46594['push'](_0xc46594['shift']());}catch(_0x13c344){_0xc46594['push'](_0xc46594['shift']());}}}(_0x1e02,0x5dbb8));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d['FRange']{['_initialize'](_0x3f98f7,_0x3b0cec,_0x528f67,_0x3ba96c,_0x366a41){const _0x3d6150=_0x499f,_0x1c7562=_0x3f98f7['get'](n[_0x3d6150(0x149)]),_0x1d0d56=_0x3f98f7[_0x3d6150(0x14f)](g[_0x3d6150(0x148)]),_0x3ef6b8=_0x3b0cec[_0x3d6150(0x16c)](),_0x2bddb6=_0x3b0cec[_0x3d6150(0x15a)](),_0x33252b=_0x1c7562['getLiveShareCoordinatorSync'](_0x3ef6b8);(_0x33252b==null?void 0x0:_0x33252b[_0x3d6150(0x158)]())!==n[_0x3d6150(0x14c)][_0x3d6150(0x150)]||(_0x528f67[_0x3d6150(0x159)]()!==_0x2bddb6['getSheetId']()&&this[_0x3d6150(0x161)][_0x3d6150(0x151)](u[_0x3d6150(0x154)]['id'],{'unitId':_0x3ef6b8,'subUnitId':_0x528f67[_0x3d6150(0x159)]()}),!_0x1d0d56[_0x3d6150(0x156)](_0x3ef6b8))||_0x366a41[_0x3d6150(0x157)](f['SetScrollOperation']['id'],{'unitId':_0x3b0cec['getUnitId'](),'sheetId':_0x528f67[_0x3d6150(0x159)](),'sheetViewStartRow':_0x3ba96c[_0x3d6150(0x145)],'sheetViewStartColumn':_0x3ba96c[_0x3d6150(0x144)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x3223da(0x16b)][_0x3223da(0x143)](w);function _0x1e02(){const _0x52e808=['128680OhiuFG','_commandService','startPresenting','FUniver','getActiveWorkbook','getLiveShareStatus','stopPresenting','1018705UpwkqH','705548kYjclM','No\x20active\x20workbook\x20found.','stopFollowing','FRange','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','9YeTFZd','FEnum','91WlIojn','extend','startColumn','startRow','448bEpKou','11SVXEfK','IRenderManagerService','LiveShareController','tryStartPresenting','_injector','LiveShareStatus','18ermqZo','3183IOUygA','get','PRESENTING','executeCommand','522TnfeAA','52pQSGXC','SetWorksheetActiveOperation','getLiveShareCoordinatorSync','getRenderById','syncExecuteCommand','getStatus','getSheetId','getActiveSheet','59530RYZjGW','startFollowing','getId','1303876iiEiHS','8043324WVfbBt'];_0x1e02=function(){return _0x52e808;};return _0x1e02();}class C extends a[_0x3223da(0x163)]{[_0x3223da(0x165)](){const _0x32ade3=_0x3223da;var _0x3220c4,_0x57d19a;const _0x7ed00e=this[_0x32ade3(0x14b)][_0x32ade3(0x14f)](n[_0x32ade3(0x149)]),_0x418735=(_0x3220c4=this['getActiveWorkbook']())==null?void 0x0:_0x3220c4[_0x32ade3(0x15d)]();if(!_0x418735)throw new Error(_0x32ade3(0x169));const _0x23c26a=_0x7ed00e['getLiveShareCoordinatorSync'](_0x418735);return(_0x57d19a=_0x23c26a==null?void 0x0:_0x23c26a[_0x32ade3(0x158)]())!=null?_0x57d19a:n[_0x32ade3(0x14c)]['IDLE'];}[_0x3223da(0x15c)](){const _0x474cd8=_0x3223da;var _0x35a68c;const _0x220045=this[_0x474cd8(0x14b)][_0x474cd8(0x14f)](n['LiveShareController']),_0x581378=(_0x35a68c=this[_0x474cd8(0x164)]())==null?void 0x0:_0x35a68c[_0x474cd8(0x15d)]();if(!_0x581378)throw new Error(_0x474cd8(0x169));const _0x41207f=_0x220045[_0x474cd8(0x155)](_0x581378);if(!_0x41207f)throw new Error(_0x474cd8(0x13f));_0x41207f['startFollowing']();}['stopFollowing'](){const _0x1511f2=_0x3223da;var _0x391bb7;const _0x1d4227=this['_injector'][_0x1511f2(0x14f)](n[_0x1511f2(0x149)]),_0xe46681=(_0x391bb7=this[_0x1511f2(0x164)]())==null?void 0x0:_0x391bb7['getId']();if(!_0xe46681)throw new Error(_0x1511f2(0x169));const _0x22f761=_0x1d4227[_0x1511f2(0x155)](_0xe46681);if(!_0x22f761)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x22f761[_0x1511f2(0x16a)]();}[_0x3223da(0x162)](){const _0x1a7c04=_0x3223da;var _0xa5560f;const _0x491505=this[_0x1a7c04(0x14b)]['get'](n[_0x1a7c04(0x149)]),_0x4f7098=(_0xa5560f=this[_0x1a7c04(0x164)]())==null?void 0x0:_0xa5560f[_0x1a7c04(0x15d)]();if(!_0x4f7098)throw new Error(_0x1a7c04(0x169));const _0x295571=_0x491505[_0x1a7c04(0x155)](_0x4f7098);if(!_0x295571)throw new Error(_0x1a7c04(0x13f));_0x295571[_0x1a7c04(0x14a)]();}[_0x3223da(0x166)](){const _0x2e92ee=_0x3223da;var _0x190a59;const _0x519588=this[_0x2e92ee(0x14b)][_0x2e92ee(0x14f)](n[_0x2e92ee(0x149)]),_0x748e3c=(_0x190a59=this[_0x2e92ee(0x164)]())==null?void 0x0:_0x190a59[_0x2e92ee(0x15d)]();if(!_0x748e3c)throw new Error(_0x2e92ee(0x169));const _0xaf4759=_0x519588[_0x2e92ee(0x155)](_0x748e3c);if(!_0xaf4759)throw new Error(_0x2e92ee(0x13f));_0xaf4759['stopPresenting']();}}a['FUniver'][_0x3223da(0x143)](C);function _0x499f(_0x537900,_0x30963e){_0x537900=_0x537900-0x13f;const _0x1e02f4=_0x1e02();let _0x499ff6=_0x1e02f4[_0x537900];return _0x499ff6;}class L extends a[_0x3223da(0x141)]{get['LiveShareStatusEnum'](){const _0x21ee60=_0x3223da;return n[_0x21ee60(0x14c)];}}a[_0x3223da(0x141)][_0x3223da(0x143)](L);
1
+ 'use strict';const _0x205466=_0x380e;function _0x2ee4(){const _0x370ef9=['_commandService','startPresenting','LiveShareController','2905528dtPtqz','1348376wSyKjl','PRESENTING','2313168JPJUkt','FEnum','IRenderManagerService','85ejwmcE','125806JTHhuA','10qCItch','FUniver','getId','getLiveShareCoordinatorSync','startFollowing','get','tryStartPresenting','42DsRXss','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getSheetId','stopPresenting','SetScrollOperation','getActiveWorkbook','LiveShareStatus','40TeobeQ','SetWorksheetActiveOperation','extend','1924224FBTpij','startColumn','startRow','FRange','_injector','No\x20active\x20workbook\x20found.','_initialize','getStatus','284226uyiYHH','getUnitId','LiveShareStatusEnum','getActiveSheet','1288179TDRQlZ','getRenderById','stopFollowing','syncExecuteCommand'];_0x2ee4=function(){return _0x370ef9;};return _0x2ee4();}function _0x380e(_0x181de8,_0x135d52){_0x181de8=_0x181de8-0x13a;const _0x2ee49a=_0x2ee4();let _0x380e2b=_0x2ee49a[_0x181de8];return _0x380e2b;}(function(_0x2e7555,_0x45a9cc){const _0x275714=_0x380e,_0x31236e=_0x2e7555();while(!![]){try{const _0x509253=parseInt(_0x275714(0x161))/0x1*(-parseInt(_0x275714(0x162))/0x2)+parseInt(_0x275714(0x147))/0x3+parseInt(_0x275714(0x15a))/0x4+-parseInt(_0x275714(0x160))/0x5*(parseInt(_0x275714(0x14f))/0x6)+parseInt(_0x275714(0x13d))/0x7*(parseInt(_0x275714(0x15b))/0x8)+-parseInt(_0x275714(0x153))/0x9*(parseInt(_0x275714(0x144))/0xa)+parseInt(_0x275714(0x15d))/0xb;if(_0x509253===_0x45a9cc)break;else _0x31236e['push'](_0x31236e['shift']());}catch(_0x152141){_0x31236e['push'](_0x31236e['shift']());}}}(_0x2ee4,0x8e363));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d[_0x205466(0x14a)]{[_0x205466(0x14d)](_0x12b2ac,_0x46858f,_0x3cc9aa,_0x53e1a8,_0x8dabbb){const _0x1adb32=_0x205466,_0x2e3322=_0x12b2ac['get'](n['LiveShareController']),_0x17e0a3=_0x12b2ac['get'](g[_0x1adb32(0x15f)]),_0x1327f3=_0x46858f[_0x1adb32(0x150)](),_0x24cb78=_0x46858f[_0x1adb32(0x152)](),_0x13e398=_0x2e3322[_0x1adb32(0x165)](_0x1327f3);(_0x13e398==null?void 0x0:_0x13e398[_0x1adb32(0x14e)]())!==n[_0x1adb32(0x143)][_0x1adb32(0x15c)]||(_0x3cc9aa['getSheetId']()!==_0x24cb78[_0x1adb32(0x13f)]()&&this[_0x1adb32(0x157)]['executeCommand'](u[_0x1adb32(0x145)]['id'],{'unitId':_0x1327f3,'subUnitId':_0x3cc9aa[_0x1adb32(0x13f)]()}),!_0x17e0a3[_0x1adb32(0x154)](_0x1327f3))||_0x8dabbb[_0x1adb32(0x156)](f[_0x1adb32(0x141)]['id'],{'unitId':_0x46858f[_0x1adb32(0x150)](),'sheetId':_0x3cc9aa['getSheetId'](),'sheetViewStartRow':_0x53e1a8[_0x1adb32(0x149)],'sheetViewStartColumn':_0x53e1a8[_0x1adb32(0x148)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x205466(0x14a)][_0x205466(0x146)](w);class C extends a['FUniver']{['getLiveShareStatus'](){const _0x2acb49=_0x205466;var _0xf07d67,_0x50750c;const _0x3f4b9d=this[_0x2acb49(0x14b)][_0x2acb49(0x13b)](n['LiveShareController']),_0x806935=(_0xf07d67=this[_0x2acb49(0x142)]())==null?void 0x0:_0xf07d67[_0x2acb49(0x164)]();if(!_0x806935)throw new Error(_0x2acb49(0x14c));const _0x511131=_0x3f4b9d[_0x2acb49(0x165)](_0x806935);return(_0x50750c=_0x511131==null?void 0x0:_0x511131[_0x2acb49(0x14e)]())!=null?_0x50750c:n[_0x2acb49(0x143)]['IDLE'];}['startFollowing'](){const _0x1c41ef=_0x205466;var _0xc3a365;const _0x3cac47=this[_0x1c41ef(0x14b)]['get'](n[_0x1c41ef(0x159)]),_0x3aaa15=(_0xc3a365=this[_0x1c41ef(0x142)]())==null?void 0x0:_0xc3a365[_0x1c41ef(0x164)]();if(!_0x3aaa15)throw new Error(_0x1c41ef(0x14c));const _0x411ff5=_0x3cac47['getLiveShareCoordinatorSync'](_0x3aaa15);if(!_0x411ff5)throw new Error(_0x1c41ef(0x13e));_0x411ff5[_0x1c41ef(0x13a)]();}[_0x205466(0x155)](){const _0x4dfa5c=_0x205466;var _0xad0ad8;const _0x12f0b1=this[_0x4dfa5c(0x14b)][_0x4dfa5c(0x13b)](n[_0x4dfa5c(0x159)]),_0x197fd9=(_0xad0ad8=this[_0x4dfa5c(0x142)]())==null?void 0x0:_0xad0ad8[_0x4dfa5c(0x164)]();if(!_0x197fd9)throw new Error(_0x4dfa5c(0x14c));const _0x399a3b=_0x12f0b1[_0x4dfa5c(0x165)](_0x197fd9);if(!_0x399a3b)throw new Error(_0x4dfa5c(0x13e));_0x399a3b['stopFollowing']();}[_0x205466(0x158)](){const _0x1c4b5d=_0x205466;var _0x454dfb;const _0x472768=this[_0x1c4b5d(0x14b)][_0x1c4b5d(0x13b)](n['LiveShareController']),_0xaafb92=(_0x454dfb=this[_0x1c4b5d(0x142)]())==null?void 0x0:_0x454dfb[_0x1c4b5d(0x164)]();if(!_0xaafb92)throw new Error(_0x1c4b5d(0x14c));const _0x20f332=_0x472768['getLiveShareCoordinatorSync'](_0xaafb92);if(!_0x20f332)throw new Error(_0x1c4b5d(0x13e));_0x20f332[_0x1c4b5d(0x13c)]();}[_0x205466(0x140)](){const _0x4f39df=_0x205466;var _0x1139e8;const _0x225384=this[_0x4f39df(0x14b)][_0x4f39df(0x13b)](n[_0x4f39df(0x159)]),_0x37fb70=(_0x1139e8=this[_0x4f39df(0x142)]())==null?void 0x0:_0x1139e8[_0x4f39df(0x164)]();if(!_0x37fb70)throw new Error(_0x4f39df(0x14c));const _0x15cfb5=_0x225384[_0x4f39df(0x165)](_0x37fb70);if(!_0x15cfb5)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x15cfb5[_0x4f39df(0x140)]();}}a[_0x205466(0x163)]['extend'](C);class L extends a[_0x205466(0x15e)]{get[_0x205466(0x151)](){const _0x572874=_0x205466;return n[_0x572874(0x143)];}}a[_0x205466(0x15e)][_0x205466(0x146)](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x4a81(_0x22bba8,_0x5b7d5e){_0x22bba8=_0x22bba8-0x1b7;const _0x1dd458=_0x1dd4();let _0x4a8119=_0x1dd458[_0x22bba8];return _0x4a8119;}const _0x3c9f75=_0x4a81;(function(_0x54bb81,_0x125ca4){const _0x2604b8=_0x4a81,_0x284573=_0x54bb81();while(!![]){try{const _0x24ed58=-parseInt(_0x2604b8(0x238))/0x1+parseInt(_0x2604b8(0x26c))/0x2+parseInt(_0x2604b8(0x25f))/0x3*(parseInt(_0x2604b8(0x288))/0x4)+-parseInt(_0x2604b8(0x22a))/0x5+-parseInt(_0x2604b8(0x25e))/0x6*(parseInt(_0x2604b8(0x202))/0x7)+-parseInt(_0x2604b8(0x1c5))/0x8*(parseInt(_0x2604b8(0x1c8))/0x9)+parseInt(_0x2604b8(0x1ed))/0xa;if(_0x24ed58===_0x125ca4)break;else _0x284573['push'](_0x284573['shift']());}catch(_0xcc3be){_0x284573['push'](_0x284573['shift']());}}}(_0x1dd4,0xc48af));var T=Object['defineProperty'],U=(_0x40dbaa,_0x4e64a9,_0x4e0d46)=>_0x4e64a9 in _0x40dbaa?T(_0x40dbaa,_0x4e64a9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e0d46}):_0x40dbaa[_0x4e64a9]=_0x4e0d46,_=(_0x55e3a9,_0x243cf5,_0x24c20a)=>U(_0x55e3a9,typeof _0x243cf5!=_0x3c9f75(0x245)?_0x243cf5+'':_0x243cf5,_0x24c20a);Object[_0x3c9f75(0x1fd)](exports,Symbol[_0x3c9f75(0x1b8)],{'value':_0x3c9f75(0x1d5)});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:_0x2f9d5e,..._0x3e6cba}){const _0x13cc85=_0x3c9f75,{icon:_0x15c11c,id:_0x4f3a48,className:_0x52bd4c,extend:_0x18275b,..._0x15bb73}=_0x3e6cba,_0x781035=('univerjs-icon\x20univerjs-icon-'+_0x4f3a48+'\x20'+(_0x52bd4c||''))[_0x13cc85(0x28c)](),_0x4fb192=v[_0x13cc85(0x291)]('_'+H());return j(_0x15c11c,''+_0x4f3a48,{'defIds':_0x15c11c[_0x13cc85(0x263)],'idSuffix':_0x4fb192[_0x13cc85(0x27c)]},{'ref':_0x2f9d5e,'className':_0x781035,..._0x15bb73},_0x18275b);}function j(_0x49caa0,_0x1e0d83,_0x4ea84a,_0x5031ac,_0x5c4209){const _0xcca5a8=_0x3c9f75;return v[_0xcca5a8(0x21e)](_0x49caa0[_0xcca5a8(0x1b9)],{'key':_0x1e0d83,...y(_0x49caa0,_0x4ea84a,_0x5c4209),..._0x5031ac},(F(_0x49caa0,_0x4ea84a)[_0xcca5a8(0x26a)]||[])['map']((_0x4fbd72,_0x35ae0a)=>j(_0x4fbd72,_0x1e0d83+'-'+_0x49caa0['tag']+'-'+_0x35ae0a,_0x4ea84a,void 0x0,_0x5c4209)));}function y(_0x1bd946,_0x5eccc7,_0x36eef8){const _0x59900c=_0x3c9f75,_0x4923b3={..._0x1bd946['attrs']};_0x36eef8!=null&&_0x36eef8[_0x59900c(0x27b)]&&_0x4923b3[_0x59900c(0x26f)]===_0x59900c(0x27b)&&(_0x4923b3[_0x59900c(0x26f)]=_0x36eef8[_0x59900c(0x27b)]),_0x1bd946['tag']===_0x59900c(0x273)&&_0x4923b3['id']&&(_0x4923b3['id']=_0x4923b3['id']+_0x5eccc7['idSuffix']),Object[_0x59900c(0x279)](_0x4923b3)['forEach'](([_0x2a9d0c,_0x4182ad])=>{const _0x51865c=_0x59900c;_0x2a9d0c===_0x51865c(0x273)&&typeof _0x4182ad=='string'&&(_0x4923b3[_0x2a9d0c]=_0x4182ad[_0x51865c(0x25a)](/url\(#(.*)\)/,_0x51865c(0x206)+_0x5eccc7['idSuffix']+')'));});const {defIds:_0xc885b1}=_0x5eccc7;return!_0xc885b1||_0xc885b1[_0x59900c(0x243)]===0x0||(_0x1bd946[_0x59900c(0x1b9)]===_0x59900c(0x222)&&_0x4923b3[_0x59900c(0x251)]&&(_0x4923b3[_0x59900c(0x251)]=_0x4923b3[_0x59900c(0x251)]+_0x5eccc7[_0x59900c(0x1ff)]),Object['entries'](_0x4923b3)[_0x59900c(0x1d1)](([_0xf03144,_0x1a597e])=>{const _0x3526a4=_0x59900c;typeof _0x1a597e=='string'&&(_0x4923b3[_0xf03144]=_0x1a597e[_0x3526a4(0x25a)](/url\(#(.*)\)/,_0x3526a4(0x206)+_0x5eccc7[_0x3526a4(0x1ff)]+')'));})),_0x4923b3;}function F(_0x5e2f64,_0x2af551){const _0x5b4d98=_0x3c9f75;var _0x3b5476;const {defIds:_0x3b48eb}=_0x2af551;return!_0x3b48eb||_0x3b48eb[_0x5b4d98(0x243)]===0x0?_0x5e2f64:_0x5e2f64['tag']===_0x5b4d98(0x1d9)&&((_0x3b5476=_0x5e2f64[_0x5b4d98(0x26a)])!=null&&_0x3b5476['length'])?{..._0x5e2f64,'children':_0x5e2f64[_0x5b4d98(0x26a)][_0x5b4d98(0x1e4)](_0x2b955b=>typeof _0x2b955b[_0x5b4d98(0x22f)]['id']=='string'&&_0x3b48eb&&_0x3b48eb['includes'](_0x2b955b[_0x5b4d98(0x22f)]['id'])?{..._0x2b955b,'attrs':{..._0x2b955b[_0x5b4d98(0x22f)],'id':_0x2b955b[_0x5b4d98(0x22f)]['id']+_0x2af551[_0x5b4d98(0x1ff)]}}:_0x2b955b)}:_0x5e2f64;}function H(){const _0x14697b=_0x3c9f75;return Math[_0x14697b(0x218)]()['toString'](0x24)[_0x14697b(0x1fa)](0x2,0x8);}x[_0x3c9f75(0x1bb)]=_0x3c9f75(0x1b7);const V={'tag':_0x3c9f75(0x1fe),'attrs':{'xmlns':_0x3c9f75(0x1f5),'fill':_0x3c9f75(0x22d),'viewBox':_0x3c9f75(0x217),'width':_0x3c9f75(0x28f),'height':_0x3c9f75(0x28f)},'children':[{'tag':_0x3c9f75(0x1bd),'attrs':{'fill':_0x3c9f75(0x234),'d':_0x3c9f75(0x1cb)}},{'tag':_0x3c9f75(0x1bd),'attrs':{'fill':_0x3c9f75(0x234),'d':_0x3c9f75(0x23c),'fillRule':_0x3c9f75(0x286),'clipRule':'evenodd'}}]},R=v[_0x3c9f75(0x1c7)](function(_0xa0104b,_0x3d9733){const _0xbcc930=_0x3c9f75;return v['createElement'](x,Object[_0xbcc930(0x276)]({},_0xa0104b,{'id':_0xbcc930(0x21a),'ref':_0x3d9733,'icon':V}));});R[_0x3c9f75(0x1bb)]=_0x3c9f75(0x1fb);class E extends o[_0x3c9f75(0x215)]{constructor(){const _0x2d9de4=_0x3c9f75;super(...arguments),_(this,_0x2d9de4(0x259),new Set()),_(this,'_reporters',new Set());}[_0x3c9f75(0x1f8)](_0x9cd80d){const _0x2fcff5=_0x3c9f75;return this['_sharedOperations'][_0x2fcff5(0x225)](_0x9cd80d),o['toDisposable'](()=>this[_0x2fcff5(0x259)][_0x2fcff5(0x1f2)](_0x9cd80d));}[_0x3c9f75(0x226)](_0x26f368){const _0x2450d9=_0x3c9f75;return this[_0x2450d9(0x1df)][_0x2450d9(0x225)](_0x26f368),o[_0x2450d9(0x1cf)](()=>this['_reporters'][_0x2450d9(0x1f2)](_0x26f368));}['shouldShareOperation'](_0x5bf0df){const _0x5435e5=_0x3c9f75;return this['_sharedOperations'][_0x5435e5(0x1ca)](_0x5bf0df);}[_0x3c9f75(0x27f)](_0x531be2){const _0x8819e7=_0x3c9f75;return Array['from'](this[_0x8819e7(0x1df)])['map'](_0x3c9717=>_0x3c9717(_0x531be2));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x4e22f7,_0x4bfce5,_0x481665,_0xb9f0f4)=>{for(var _0x54b709=_0xb9f0f4>0x1?void 0x0:_0xb9f0f4?M(_0x4bfce5,_0x481665):_0x4bfce5,_0x2b7be9=_0x4e22f7['length']-0x1,_0x34b574;_0x2b7be9>=0x0;_0x2b7be9--)(_0x34b574=_0x4e22f7[_0x2b7be9])&&(_0x54b709=_0x34b574(_0x54b709)||_0x54b709);return _0x54b709;},S=(_0x5c514a,_0x317406)=>(_0x4ba07a,_0x17316d)=>_0x317406(_0x4ba07a,_0x17316d,_0x5c514a);exports[_0x3c9f75(0x258)]=class extends o[_0x3c9f75(0x244)]{constructor(_0x51473d,_0x478b25,_0x478d50){const _0x37d221=_0x3c9f75;super(),_(this,_0x37d221(0x213),new Map()),(this[_0x37d221(0x25b)]=_0x51473d,this['_injector']=_0x478b25,this[_0x37d221(0x21c)]=_0x478d50,this[_0x37d221(0x1f4)]());}async[_0x3c9f75(0x1e5)](_0x450810){const _0x2c3002=_0x3c9f75;return this[_0x2c3002(0x213)]['has'](_0x450810)||await this[_0x2c3002(0x205)](_0x450810),this['_entities'][_0x2c3002(0x20c)](_0x450810);}[_0x3c9f75(0x216)](_0x569ff5){const _0x1c87cf=_0x3c9f75;var _0x3ef06d;return(_0x3ef06d=this[_0x1c87cf(0x213)][_0x1c87cf(0x20c)](_0x569ff5))!=null?_0x3ef06d:null;}[_0x3c9f75(0x1f4)](){const _0x537b9e=_0x3c9f75;this[_0x537b9e(0x25b)][_0x537b9e(0x221)](o[_0x537b9e(0x200)]['UNIVER_SHEET'])[_0x537b9e(0x293)](I[_0x537b9e(0x21b)](this[_0x537b9e(0x28e)]))['subscribe'](async _0x41254f=>{const _0x1b7212=_0x537b9e,_0x4b62a0=_0x41254f['getUnitId']();this[_0x1b7212(0x213)][_0x1b7212(0x1ca)](_0x4b62a0)||this['_startLiveShareCoordinator'](_0x4b62a0);}),this[_0x537b9e(0x25b)][_0x537b9e(0x1d2)](o['UniverInstanceType'][_0x537b9e(0x1cd)])[_0x537b9e(0x293)](I['takeUntil'](this['dispose$']))[_0x537b9e(0x274)](_0x41b958=>{const _0x1a8928=_0x537b9e,_0x1d2c47=_0x41b958[_0x1a8928(0x1ba)](),_0x1c85a7=this[_0x1a8928(0x213)]['get'](_0x1d2c47);_0x1c85a7==null||_0x1c85a7[_0x1a8928(0x220)]();});}async[_0x3c9f75(0x205)](_0x365fd7){const _0x531519=_0x3c9f75,_0x4cc104=await this[_0x531519(0x21c)][_0x531519(0x223)](_0x365fd7),_0x39e99b=this[_0x531519(0x204)][_0x531519(0x1f6)](exports[_0x531519(0x266)],_0x365fd7,_0x4cc104);return _0x39e99b[_0x531519(0x1fc)](),this['_entities']['set'](_0x365fd7,_0x39e99b),_0x39e99b;}},exports['LiveShareController']=P([S(0x0,o[_0x3c9f75(0x1e2)]),S(0x1,o[_0x3c9f75(0x203)](o[_0x3c9f75(0x228)])),S(0x2,o[_0x3c9f75(0x203)](b['CollaborationSessionService']))],exports[_0x3c9f75(0x258)]);var u=(_0x40a2ca=>(_0x40a2ca[_0x3c9f75(0x1c6)]=_0x3c9f75(0x1ce),_0x40a2ca['IDLE']=_0x3c9f75(0x28d),_0x40a2ca[_0x3c9f75(0x20a)]='following',_0x40a2ca[_0x3c9f75(0x22b)]=_0x3c9f75(0x278),_0x40a2ca['PRESENTING']=_0x3c9f75(0x24d),_0x40a2ca))(u||{});const k=_0x3c9f75(0x272),q=0xc8;exports[_0x3c9f75(0x266)]=class extends o['RxDisposable']{constructor(_0x82ffc1,_0x3ece62,_0x5026b2,_0x2aea5c,_0xe1d8db){const _0x432b9d=_0x3c9f75;super(),_(this,_0x432b9d(0x294),new O[(_0x432b9d(0x248))](_0x432b9d(0x28d))),_(this,_0x432b9d(0x282),this['_status$'][_0x432b9d(0x1dc)]()),_(this,'_init',!0x1),_(this,_0x432b9d(0x24a),null),_(this,_0x432b9d(0x23d),null),(this['_unitID']=_0x82ffc1,this[_0x432b9d(0x250)]=_0x3ece62,this['_configService']=_0x5026b2,this[_0x432b9d(0x1e8)]=_0x2aea5c,this[_0x432b9d(0x284)]=_0xe1d8db);}get['_status'](){const _0x19a7fc=_0x3c9f75;return this[_0x19a7fc(0x294)][_0x19a7fc(0x201)]();}[_0x3c9f75(0x220)](){const _0x5e09d0=_0x3c9f75;var _0x1d6896;(_0x1d6896=this[_0x5e09d0(0x24a)])==null||_0x1d6896[_0x5e09d0(0x220)](),this[_0x5e09d0(0x294)][_0x5e09d0(0x1c9)](_0x5e09d0(0x28d)),this[_0x5e09d0(0x294)]['complete']();}['getStatus'](){const _0x5677fc=_0x3c9f75;return this[_0x5677fc(0x28a)];}[_0x3c9f75(0x1fc)](){const _0xaa796e=_0x3c9f75;this[_0xaa796e(0x1f4)]||(this[_0xaa796e(0x1f4)]=!0x0,this[_0xaa796e(0x250)][_0xaa796e(0x1db)][_0xaa796e(0x293)](I[_0xaa796e(0x21b)](this[_0xaa796e(0x28e)]))[_0xaa796e(0x274)](_0x5271be=>{const _0x25b954=_0xaa796e;switch(_0x5271be){case b['SessionStatus'][_0x25b954(0x1c6)]:this[_0x25b954(0x23a)]();break;case b[_0x25b954(0x1ec)][_0x25b954(0x26e)]:this['_handleOnline']();break;}}),this[_0xaa796e(0x250)][_0xaa796e(0x21f)][_0xaa796e(0x293)](I['takeUntil'](this[_0xaa796e(0x28e)]))[_0xaa796e(0x274)](_0x22ca89=>{const _0x42095=_0xaa796e,{eventID:_0x328514}=_0x22ca89;switch(_0x328514){case d[_0x42095(0x20b)][_0x42095(0x25c)]:this[_0x42095(0x208)](_0x22ca89);break;case d[_0x42095(0x20b)]['LIVESHARE_OPERATION']:this[_0x42095(0x290)](_0x22ca89);break;case d[_0x42095(0x20b)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case d[_0x42095(0x20b)]['NEW_CHANGESETS']:this[_0x42095(0x292)](_0x22ca89);break;}}));}[_0x3c9f75(0x252)](){const _0x1dfabf=_0x3c9f75;this[_0x1dfabf(0x250)][_0x1dfabf(0x241)]({'eventID':d[_0x1dfabf(0x20b)][_0x1dfabf(0x22c)],'data':{'unitID':this[_0x1dfabf(0x1d3)],'userID':this[_0x1dfabf(0x250)]['getMemberID']()}},this['_unitID']);}[_0x3c9f75(0x270)](){const _0x11ebf1=_0x3c9f75;this[_0x11ebf1(0x28a)]===_0x11ebf1(0x24d)&&(this[_0x11ebf1(0x294)]['next'](_0x11ebf1(0x28d)),this['_collabSession'][_0x11ebf1(0x241)]({'eventID':d['CollaborationEvent'][_0x11ebf1(0x1da)],'data':{'unitID':this[_0x11ebf1(0x1d3)]}},this['_unitID']));}[_0x3c9f75(0x236)](){const _0x5de8a8=_0x3c9f75;this[_0x5de8a8(0x28a)]===_0x5de8a8(0x278)&&(this[_0x5de8a8(0x294)][_0x5de8a8(0x1c9)](_0x5de8a8(0x24b)),this['_startFollowing']());}[_0x3c9f75(0x289)](){const _0x442339=_0x3c9f75;this[_0x442339(0x28a)]===_0x442339(0x24b)&&this[_0x442339(0x237)]();}[_0x3c9f75(0x208)](_0x1c5632){const _0x52ace1=_0x3c9f75,{presenter:_0x5553f9}=_0x1c5632[_0x52ace1(0x295)],_0x31ae09=this[_0x52ace1(0x250)][_0x52ace1(0x249)]();this[_0x52ace1(0x23d)]=_0x5553f9,_0x5553f9===_0x31ae09?(this[_0x52ace1(0x237)](),this[_0x52ace1(0x1c1)]()):this[_0x52ace1(0x28a)]!=='not-following'&&(this[_0x52ace1(0x27a)](),this[_0x52ace1(0x280)]());}[_0x3c9f75(0x267)](){const _0x42ff70=_0x3c9f75,_0x449f5f={'eventID':d[_0x42ff70(0x20b)][_0x42ff70(0x271)]};this[_0x42ff70(0x250)]['send'](_0x449f5f,this['_unitID']);}['_handleTerminate'](){const _0x441553=_0x3c9f75;this[_0x441553(0x23d)]=null,this[_0x441553(0x28a)]!==_0x441553(0x24d)&&this[_0x441553(0x247)]();}['_handleNewChangeSets'](_0x1c4b88){const _0x2e944b=_0x3c9f75;if(this[_0x2e944b(0x28a)]===_0x2e944b(0x24b)&&this[_0x2e944b(0x23d)]===_0x1c4b88[_0x2e944b(0x295)][_0x2e944b(0x1d4)]){const _0x63504c=d[_0x2e944b(0x242)](_0x1c4b88['data'])[_0x2e944b(0x1d0)][_0x2e944b(0x20e)]()['find'](_0x5c686a=>_0x5c686a['id']===C['InsertSheetMutation']['id']);if(_0x63504c){const _0x58cfcf=_0x63504c[_0x2e944b(0x261)][_0x2e944b(0x22e)],_0x15d3d6=_0x63504c[_0x2e944b(0x261)][_0x2e944b(0x240)]['id'];setTimeout(()=>{const _0x3937ac=_0x2e944b;this[_0x3937ac(0x284)][_0x3937ac(0x253)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x58cfcf,'subUnitId':_0x15d3d6},{'fromCollab':!0x0});});}}}[_0x3c9f75(0x1c1)](){const _0x50929e=_0x3c9f75;this[_0x50929e(0x294)][_0x50929e(0x1c9)](_0x50929e(0x24d));const _0x219677=new Map(),_0x412442=this[_0x50929e(0x24a)]=new o[(_0x50929e(0x1f7))]();_0x412442[_0x50929e(0x225)](o['toDisposable'](()=>{const _0x8aa9cd=_0x50929e;_0x219677['forEach'](_0x2078b2=>_0x2078b2[_0x8aa9cd(0x229)]()),_0x219677['clear']();})),_0x412442[_0x50929e(0x225)](this[_0x50929e(0x284)][_0x50929e(0x1d6)](_0x25ad08=>{const _0x151ca0=_0x50929e;var _0x5bad2c;if(_0x25ad08['type']!==o[_0x151ca0(0x1f3)][_0x151ca0(0x269)]||!this[_0x151ca0(0x1e8)][_0x151ca0(0x230)](_0x25ad08['id']))return;const {id:_0x209fd6}=_0x25ad08;let _0x5a0197;_0x219677[_0x151ca0(0x1ca)](_0x209fd6)?_0x5a0197=_0x219677['get'](_0x209fd6):(_0x5a0197=new O[(_0x151ca0(0x1de))](),_0x219677[_0x151ca0(0x1ef)](_0x209fd6,_0x5a0197),_0x5a0197[_0x151ca0(0x293)](I[_0x151ca0(0x232)]((_0x5bad2c=this['_configService'][_0x151ca0(0x212)](k))!=null?_0x5bad2c:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x287ca5=>{const _0x379ec0=_0x151ca0;this[_0x379ec0(0x250)][_0x379ec0(0x241)]({'eventID':d[_0x379ec0(0x20b)][_0x379ec0(0x1eb)],'data':{'unitID':this['_unitID'],'operations':{[_0x287ca5['id']]:{'id':_0x287ca5['id'],'params':JSON[_0x379ec0(0x224)](_0x287ca5[_0x379ec0(0x261)])}}}},this[_0x379ec0(0x1d3)]);})),_0x5a0197[_0x151ca0(0x1c9)](_0x25ad08);})),this[_0x50929e(0x1e8)][_0x50929e(0x27f)](this['_unitID'])[_0x50929e(0x1d1)](_0x500b78=>this[_0x50929e(0x250)][_0x50929e(0x241)]({'eventID':d['CollaborationEvent'][_0x50929e(0x1eb)],'data':{'unitID':this['_unitID'],'operations':{[_0x500b78['id']]:{'id':_0x500b78['id'],'params':JSON['stringify'](_0x500b78['params'])}}}},this[_0x50929e(0x1d3)]));}[_0x3c9f75(0x27a)](){const _0x4e94da=_0x3c9f75;var _0x3c5f20;this['_status$'][_0x4e94da(0x1c9)](_0x4e94da(0x28d)),(_0x3c5f20=this['_commandDisposable'])==null||_0x3c5f20[_0x4e94da(0x220)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x47be3e=_0x3c9f75;var _0x4ed639;(_0x4ed639=this[_0x47be3e(0x24a)])==null||_0x4ed639[_0x47be3e(0x220)](),this['_status$']['next'](_0x47be3e(0x24b));}[_0x3c9f75(0x247)](){const _0x220342=_0x3c9f75;var _0x2ad180;this[_0x220342(0x294)][_0x220342(0x1c9)](_0x220342(0x28d)),(_0x2ad180=this[_0x220342(0x24a)])==null||_0x2ad180[_0x220342(0x220)](),this[_0x220342(0x24a)]=null;}[_0x3c9f75(0x237)](){const _0x23f4e0=_0x3c9f75;var _0x482c20;this['_status$'][_0x23f4e0(0x1c9)]('not-following'),(_0x482c20=this[_0x23f4e0(0x24a)])==null||_0x482c20[_0x23f4e0(0x220)]();}[_0x3c9f75(0x290)](_0x407a52){const _0x328121=_0x3c9f75;if([_0x328121(0x24d),'not-following','offline']['includes'](this[_0x328121(0x28a)])||!_0x407a52[_0x328121(0x295)][_0x328121(0x227)]||_0x407a52['data'][_0x328121(0x227)]===this[_0x328121(0x250)][_0x328121(0x249)]())return;this[_0x328121(0x28a)]===_0x328121(0x28d)&&this[_0x328121(0x280)]();const _0x4d61c6=_0x407a52[_0x328121(0x295)][_0x328121(0x26b)];Object[_0x328121(0x27d)](_0x4d61c6)[_0x328121(0x1d1)](_0x17bed8=>{const _0x3827d0=_0x328121;this[_0x3827d0(0x284)]['executeCommand'](_0x17bed8['id'],_0x17bed8['params']?JSON[_0x3827d0(0x24f)](_0x17bed8[_0x3827d0(0x261)]):null,{'fromCollab':!0x0});});}[_0x3c9f75(0x23a)](){const _0x454520=_0x3c9f75;var _0x43a4e6;this[_0x454520(0x294)][_0x454520(0x1c9)](_0x454520(0x1ce)),(_0x43a4e6=this[_0x454520(0x24a)])==null||_0x43a4e6[_0x454520(0x220)]();}[_0x3c9f75(0x264)](){const _0x465377=_0x3c9f75;this[_0x465377(0x294)]['next'](_0x465377(0x28d)),this[_0x465377(0x267)]();}},exports[_0x3c9f75(0x266)]=P([S(0x2,o[_0x3c9f75(0x1f0)]),S(0x3,o[_0x3c9f75(0x203)](E)),S(0x4,o[_0x3c9f75(0x235)])],exports[_0x3c9f75(0x266)]);function $(){const _0xdd2178=_0x3c9f75,_0x3ac6c4=p[_0xdd2178(0x219)](exports[_0xdd2178(0x258)]),_0x457321=p[_0xdd2178(0x219)](o[_0xdd2178(0x1e2)]),_0x15da94=p[_0xdd2178(0x254)](()=>_0x457321[_0xdd2178(0x262)](o['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xf6c788,_0x9abbfa]=v[_0xdd2178(0x1bc)](null),[_0x3c83d0,_0x3a8a67]=v['useState'](u[_0xdd2178(0x26d)]),_0x242fb1=v[_0xdd2178(0x291)](null);return v[_0xdd2178(0x210)](()=>(_0x15da94&&_0x3ac6c4[_0xdd2178(0x1e5)](_0x15da94['getUnitId']())[_0xdd2178(0x28b)](_0x575a8a=>{const _0x64d13e=_0xdd2178;_0x9abbfa(_0x575a8a),_0x242fb1['current']=_0x575a8a[_0x64d13e(0x282)][_0x64d13e(0x274)](_0x4aec85=>{_0x3a8a67(_0x4aec85);});}),()=>{const _0x46338d=_0xdd2178;var _0x22aff4;(_0x22aff4=_0x242fb1[_0x46338d(0x27c)])==null||_0x22aff4[_0x46338d(0x1d7)](),_0x242fb1[_0x46338d(0x27c)]=null;}),[_0x15da94,_0x3ac6c4]),_0xf6c788?l['jsx'](f[_0xdd2178(0x24e)],{'align':_0xdd2178(0x214),'disabled':_0x3c83d0===u['OFFLINE'],'className':_0xdd2178(0x23b),'overlay':l[_0xdd2178(0x285)](W,{'status':_0x3c83d0,'coordinator':_0xf6c788}),'children':l[_0xdd2178(0x285)](_0xdd2178(0x25d),{'className':f[_0xdd2178(0x297)](_0xdd2178(0x256),{'univer-cursor-not-allowed':_0x3c83d0===u[_0xdd2178(0x1c6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3c83d0!==u[_0xdd2178(0x1c6)]}),'type':'button','children':l['jsx'](R,{'className':_0xdd2178(0x211)})})}):null;}function W(_0x124cc3){const _0x569aa4=_0x3c9f75,{status:_0x332111,coordinator:_0xf390a2}=_0x124cc3;switch(_0x332111){case u[_0x569aa4(0x26d)]:return l['jsx'](G,{'coordinator':_0xf390a2});case u[_0x569aa4(0x20a)]:return l[_0x569aa4(0x285)](B,{'coordinator':_0xf390a2});case u[_0x569aa4(0x22b)]:return l['jsx'](Y,{'coordinator':_0xf390a2});case u['OFFLINE']:return l['jsx'](J,{});case u[_0x569aa4(0x281)]:return l['jsx'](Z,{'coordinator':_0xf390a2});default:return null;}}function G(_0x64b2d7){const _0x31a4a6=_0x3c9f75,{coordinator:_0x3b5590}=_0x64b2d7;return l[_0x31a4a6(0x1e6)](l[_0x31a4a6(0x1c0)],{'children':[l[_0x31a4a6(0x285)](_0x31a4a6(0x1c3),{'className':_0x31a4a6(0x1bf),'children':'Present\x20this\x20document'}),l[_0x31a4a6(0x285)](f[_0x31a4a6(0x1c2)],{'onClick':()=>_0x3b5590[_0x31a4a6(0x252)](),'children':_0x31a4a6(0x1cc)})]});}function B(_0x272d78){const _0x5b8ba3=_0x3c9f75,{coordinator:_0x1fab15}=_0x272d78;return l[_0x5b8ba3(0x1e6)](l['Fragment'],{'children':[l[_0x5b8ba3(0x285)](_0x5b8ba3(0x1c3),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5b8ba3(0x1c4)}),l['jsx'](f[_0x5b8ba3(0x1c2)],{'onClick':()=>_0x1fab15['stopFollowing'](),'children':_0x5b8ba3(0x1dd)})]});}function Y(_0x4f67db){const _0x15348e=_0x3c9f75,{coordinator:_0x48ae9d}=_0x4f67db;return l[_0x15348e(0x1e6)](l[_0x15348e(0x1c0)],{'children':[l['jsx'](_0x15348e(0x1c3),{'className':_0x15348e(0x1bf),'children':_0x15348e(0x1e7)}),l['jsx'](f['Button'],{'variant':'text','onClick':()=>_0x48ae9d[_0x15348e(0x236)](),'children':_0x15348e(0x20f)})]});}function Z(_0x3f217e){const _0x438aca=_0x3c9f75,{coordinator:_0x3d08ff}=_0x3f217e;return l[_0x438aca(0x1e6)](l[_0x438aca(0x1c0)],{'children':[l[_0x438aca(0x285)]('div',{'className':_0x438aca(0x1bf),'children':_0x438aca(0x207)}),l[_0x438aca(0x285)](f[_0x438aca(0x1c2)],{'variant':'default','onClick':()=>_0x3d08ff[_0x438aca(0x270)](),'children':_0x438aca(0x1e1)})]});}function J(){const _0x5dac82=_0x3c9f75;return l[_0x5dac82(0x285)](l[_0x5dac82(0x1c0)],{'children':_0x5dac82(0x255)});}var K=Object[_0x3c9f75(0x27e)],z=(_0x122323,_0x4a3a1d,_0x5654f9,_0x1f682d)=>{const _0x42550c=_0x3c9f75;for(var _0x1a2ca2=_0x1f682d>0x1?void 0x0:_0x1f682d?K(_0x4a3a1d,_0x5654f9):_0x4a3a1d,_0x2167e8=_0x122323[_0x42550c(0x243)]-0x1,_0x549860;_0x2167e8>=0x0;_0x2167e8--)(_0x549860=_0x122323[_0x2167e8])&&(_0x1a2ca2=_0x549860(_0x1a2ca2)||_0x1a2ca2);return _0x1a2ca2;},L=(_0x12d32b,_0x178030)=>(_0x147b6d,_0x11846a)=>_0x178030(_0x147b6d,_0x11846a,_0x12d32b);exports[_0x3c9f75(0x23e)]=class extends o[_0x3c9f75(0x215)]{constructor(_0x2b60d0,_0x525e44){const _0x551f32=_0x3c9f75;super(),this[_0x551f32(0x204)]=_0x2b60d0,this['_uiPartsService']=_0x525e44,this[_0x551f32(0x20d)]();}[_0x3c9f75(0x20d)](){const _0x483e61=_0x3c9f75;this['disposeWithMe'](this['_uiPartsService'][_0x483e61(0x265)](p['BuiltInUIPart'][_0x483e61(0x1e9)],()=>p[_0x483e61(0x260)]($,this['_injector'])));}},exports[_0x3c9f75(0x23e)]=z([L(0x0,o['Inject'](o[_0x3c9f75(0x228)])),L(0x1,p[_0x3c9f75(0x233)])],exports[_0x3c9f75(0x23e)]);const Q=_0x3c9f75(0x21d),w={};function _0x1dd4(){const _0x49799f=['mask','subscribe','UNIVER_UNKNOWN','assign','SetScrollOperation','not-following','entries','_stopPresenting','colorChannel1','current','values','getOwnPropertyDescriptor','getInitialStates','_startFollowing','PRESENTING','status$','LiveShareService','_commandService','jsx','evenodd','UniverCollaborationClientPlugin','6232364bUbQjQ','stopFollowing','_status','then','trim','idle','dispose$','1em','_handleOperation','useRef','_handleNewChangeSets','pipe','_status$','data','_config','clsx','UniverIcon','toStringTag','tag','getUnitId','displayName','useState','path','onRendered','univer-mb-3\x20univer-w-full\x20univer-text-sm','Fragment','_startPresenting','Button','div','You\x27re\x20following\x20the\x20presenter','8zdmZmM','OFFLINE','forwardRef','5041629IQLYmp','next','has','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','Start','UNIVER_SHEET','offline','toDisposable','mutations','forEach','getTypeOfUnitDisposed$','_unitID','memberID','Module','onCommandExecuted','unsubscribe','DependentOn','defs','LIVESHARE_TERMINATE','sessionStatus$','asObservable','Stop\x20following','Subject','_reporters','SetWorksheetActiveOperation','Stop\x20presenting','IUniverInstanceService','SetZoomRatioOperation','map','getLiveShareCoordinator','jsxs','You\x27re\x20not\x20following\x20the\x20presenter','_liveShareService','HEADER_MENU','onStarting','LIVESHARE_OPERATION','SessionStatus','14326360XyTuhM','UNIVER_LIVE_SHARE_PLUGIN','set','IConfigService','setConfig','delete','CommandType','_init','http://www.w3.org/2000/svg','createInstance','DisposableCollection','registerSharedOperation','mergeOverrideWithDependencies','substring','LiveShareIcon','init','defineProperty','svg','idSuffix','UniverInstanceType','getValue','217HeIEyj','Inject','_injector','_startLiveShareCoordinator','url(#$1','You\x27re\x20presenting\x20the\x20document','_handleNewHost','_configService','FOLLOWING','CollaborationEvent','get','_mountLiveShare','reverse','Start\x20following','useEffect','univer-size-4','getConfig','_entities','end','Disposable','getLiveShareCoordinatorSync','0\x200\x2017\x2017','random','useDependency','live-share-icon','takeUntil','_collabSessionService','live-share.config','createElement','event$','dispose','getTypeOfUnitAdded$','use','requireSession','stringify','add','registerInitialStateReporter','presenter','Injector','complete','3716995CuCyzY','NOT_FOLLOWING','LIVESHARE_REQUEST_HOST','none','unitId','attrs','shouldShareOperation','LiveShareStatus','throttleTime','IUIPartsService','currentColor','ICommandService','startFollowing','_stopFollowing','509420eJgbCi','touchDependencies','_handleOffline','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','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','_presenter','DesktopLiveShareController','pluginName','sheet','send','parseProtocolChangeset','length','RxDisposable','symbol','LiveShare','_beIdle','BehaviorSubject','getMemberID','_commandDisposable','following','UniverLiveSharePlugin','presenting','Dropdown','parse','_collabSession','xlink:href','tryStartPresenting','executeCommand','useObservable','You\x27are\x20offline.','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','merge','LiveShareController','_sharedOperations','replace','_univerInstanceService','LIVESHARE_NEW_HOST','button','258324KakiyR','3MWYfVQ','connectInjector','params','getCurrentTypeOfUnit$','defIds','_handleOnline','registerComponent','LiveShareCoordinator','_fetchOperations','override','OPERATION','children','operations','1923972yLoOoz','IDLE','ONLINE','fill','stopPresenting','LIVESHARE_FETCH_OPERATIONS','SAME_OPERATION_SHARE_INTERVAL'];_0x1dd4=function(){return _0x49799f;};return _0x1dd4();}var X=Object[_0x3c9f75(0x27e)],ee=(_0x1a3029,_0x45d7a0,_0x5c5b85,_0x39398a)=>{const _0x25b373=_0x3c9f75;for(var _0x100e82=_0x39398a>0x1?void 0x0:_0x39398a?X(_0x45d7a0,_0x5c5b85):_0x45d7a0,_0x2ac963=_0x1a3029[_0x25b373(0x243)]-0x1,_0xc8f523;_0x2ac963>=0x0;_0x2ac963--)(_0xc8f523=_0x1a3029[_0x2ac963])&&(_0x100e82=_0xc8f523(_0x100e82)||_0x100e82);return _0x100e82;},te=(_0x4d093f,_0x13b1c4)=>(_0x3319ab,_0xd2848a)=>_0x13b1c4(_0x3319ab,_0xd2848a,_0x4d093f);let m=class extends o['Disposable']{constructor(_0x235d41){const _0x8eaace=_0x3c9f75;super(),this[_0x8eaace(0x1e8)]=_0x235d41,this[_0x8eaace(0x1f4)]();}['_init'](){const _0x36beb8=_0x3c9f75;[D[_0x36beb8(0x1e3)]['id'],D[_0x36beb8(0x277)]['id'],C[_0x36beb8(0x1e0)]['id']][_0x36beb8(0x1d1)](_0x5938e2=>{const _0x4f89d0=_0x36beb8;this['disposeWithMe'](this[_0x4f89d0(0x1e8)][_0x4f89d0(0x1f8)](_0x5938e2));});}};m=ee([te(0x0,o[_0x3c9f75(0x203)](E))],m);var ie=Object[_0x3c9f75(0x1fd)],se=Object[_0x3c9f75(0x27e)],ne=(_0x356561,_0x40c119,_0xe2a77a)=>_0x40c119 in _0x356561?ie(_0x356561,_0x40c119,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe2a77a}):_0x356561[_0x40c119]=_0xe2a77a,re=(_0x5a33a4,_0x7d37f9,_0x1c20ee,_0x37f3cc)=>{const _0x520dd5=_0x3c9f75;for(var _0x248ff4=_0x37f3cc>0x1?void 0x0:_0x37f3cc?se(_0x7d37f9,_0x1c20ee):_0x7d37f9,_0x53e35b=_0x5a33a4[_0x520dd5(0x243)]-0x1,_0x5c231c;_0x53e35b>=0x0;_0x53e35b--)(_0x5c231c=_0x5a33a4[_0x53e35b])&&(_0x248ff4=_0x5c231c(_0x248ff4)||_0x248ff4);return _0x248ff4;},N=(_0x51446a,_0x36087a)=>(_0x3d966e,_0x1b1d8e)=>_0x36087a(_0x3d966e,_0x1b1d8e,_0x51446a),A=(_0x2c52b8,_0x3aa468,_0x32d8c1)=>ne(_0x2c52b8,typeof _0x3aa468!=_0x3c9f75(0x245)?_0x3aa468+'':_0x3aa468,_0x32d8c1);const oe=_0x3c9f75(0x1ee);exports[_0x3c9f75(0x24c)]=class extends o['Plugin']{constructor(_0x1a744d=w,_0x12d257,_0x1595ab){const _0x59568e=_0x3c9f75;super(),this[_0x59568e(0x296)]=_0x1a744d,this[_0x59568e(0x204)]=_0x12d257,this[_0x59568e(0x209)]=_0x1595ab;const {..._0x4916e9}=o[_0x59568e(0x257)]({},w,this[_0x59568e(0x296)]);this[_0x59568e(0x209)][_0x59568e(0x1f1)](Q,_0x4916e9);}[_0x3c9f75(0x1ea)](){const _0x39dd67=_0x3c9f75;o['registerDependencies'](this[_0x39dd67(0x204)],o[_0x39dd67(0x1f9)]([[E],[exports[_0x39dd67(0x258)]],[m],[exports[_0x39dd67(0x23e)]]],this[_0x39dd67(0x296)][_0x39dd67(0x268)])),o[_0x39dd67(0x239)](this[_0x39dd67(0x204)],[[m]]);}[_0x3c9f75(0x1be)](){const _0x556149=_0x3c9f75;o[_0x556149(0x239)](this[_0x556149(0x204)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x3c9f75(0x24c)],'type',o[_0x3c9f75(0x200)][_0x3c9f75(0x275)]),A(exports[_0x3c9f75(0x24c)],_0x3c9f75(0x23f),oe),exports[_0x3c9f75(0x24c)]=re([o[_0x3c9f75(0x1d8)](b[_0x3c9f75(0x287)]),N(0x1,o['Inject'](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x3c9f75(0x24c)]),exports[_0x3c9f75(0x246)]=$,exports[_0x3c9f75(0x283)]=E,exports[_0x3c9f75(0x231)]=u;
1
+ 'use strict';const _0x4be423=_0x450d;(function(_0x82fca6,_0x3e8544){const _0x7f8a23=_0x450d,_0x18e795=_0x82fca6();while(!![]){try{const _0x39e475=-parseInt(_0x7f8a23(0x1df))/0x1*(-parseInt(_0x7f8a23(0x1f1))/0x2)+parseInt(_0x7f8a23(0x20f))/0x3*(-parseInt(_0x7f8a23(0x259))/0x4)+-parseInt(_0x7f8a23(0x1ea))/0x5+parseInt(_0x7f8a23(0x25b))/0x6+-parseInt(_0x7f8a23(0x235))/0x7*(-parseInt(_0x7f8a23(0x285))/0x8)+parseInt(_0x7f8a23(0x205))/0x9+-parseInt(_0x7f8a23(0x29a))/0xa;if(_0x39e475===_0x3e8544)break;else _0x18e795['push'](_0x18e795['shift']());}catch(_0x380fbd){_0x18e795['push'](_0x18e795['shift']());}}}(_0x3da3,0x99e86));var T=Object[_0x4be423(0x1e6)],U=(_0x5e1c7b,_0x1c72ac,_0x1a5b8b)=>_0x1c72ac in _0x5e1c7b?T(_0x5e1c7b,_0x1c72ac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a5b8b}):_0x5e1c7b[_0x1c72ac]=_0x1a5b8b,_=(_0x125212,_0x4e1d01,_0x29d45a)=>U(_0x125212,typeof _0x4e1d01!=_0x4be423(0x20d)?_0x4e1d01+'':_0x4e1d01,_0x29d45a);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x15ef4b,..._0xd8dd28}){const _0x2f1562=_0x4be423,{icon:_0x1f4c94,id:_0x3b20fe,className:_0x3ab96e,extend:_0xe1c0e,..._0x1d9f6c}=_0xd8dd28,_0x58ca9a=(_0x2f1562(0x231)+_0x3b20fe+'\x20'+(_0x3ab96e||''))[_0x2f1562(0x20c)](),_0x1b68d8=v[_0x2f1562(0x223)]('_'+H());return j(_0x1f4c94,''+_0x3b20fe,{'defIds':_0x1f4c94[_0x2f1562(0x203)],'idSuffix':_0x1b68d8[_0x2f1562(0x1fe)]},{'ref':_0x15ef4b,'className':_0x58ca9a,..._0x1d9f6c},_0xe1c0e);}function j(_0x23b856,_0x3375e1,_0x586863,_0x490f9e,_0x5683f8){const _0x91b70e=_0x4be423;return v[_0x91b70e(0x265)](_0x23b856[_0x91b70e(0x201)],{'key':_0x3375e1,...y(_0x23b856,_0x586863,_0x5683f8),..._0x490f9e},(F(_0x23b856,_0x586863)['children']||[])['map']((_0x7109e9,_0x3a2b5d)=>j(_0x7109e9,_0x3375e1+'-'+_0x23b856[_0x91b70e(0x201)]+'-'+_0x3a2b5d,_0x586863,void 0x0,_0x5683f8)));}function y(_0x592cb6,_0x3a9449,_0x5d3616){const _0x42836b=_0x4be423,_0x597506={..._0x592cb6[_0x42836b(0x21c)]};_0x5d3616!=null&&_0x5d3616[_0x42836b(0x1e9)]&&_0x597506[_0x42836b(0x28f)]==='colorChannel1'&&(_0x597506[_0x42836b(0x28f)]=_0x5d3616[_0x42836b(0x1e9)]),_0x592cb6[_0x42836b(0x201)]===_0x42836b(0x22d)&&_0x597506['id']&&(_0x597506['id']=_0x597506['id']+_0x3a9449[_0x42836b(0x228)]),Object['entries'](_0x597506)[_0x42836b(0x1ec)](([_0x38d3b5,_0x335674])=>{const _0x232f31=_0x42836b;_0x38d3b5===_0x232f31(0x22d)&&typeof _0x335674==_0x232f31(0x1f8)&&(_0x597506[_0x38d3b5]=_0x335674['replace'](/url\(#(.*)\)/,_0x232f31(0x2a7)+_0x3a9449[_0x232f31(0x228)]+')'));});const {defIds:_0x586d8c}=_0x3a9449;return!_0x586d8c||_0x586d8c[_0x42836b(0x25f)]===0x0||(_0x592cb6[_0x42836b(0x201)]==='use'&&_0x597506[_0x42836b(0x21a)]&&(_0x597506[_0x42836b(0x21a)]=_0x597506[_0x42836b(0x21a)]+_0x3a9449[_0x42836b(0x228)]),Object[_0x42836b(0x283)](_0x597506)[_0x42836b(0x1ec)](([_0x1dab79,_0xd5703c])=>{const _0x413ae3=_0x42836b;typeof _0xd5703c==_0x413ae3(0x1f8)&&(_0x597506[_0x1dab79]=_0xd5703c[_0x413ae3(0x21d)](/url\(#(.*)\)/,'url(#$1'+_0x3a9449['idSuffix']+')'));})),_0x597506;}function F(_0x5a7bc1,_0x3e80c1){const _0x4a98f8=_0x4be423;var _0x43515d;const {defIds:_0x40e3d3}=_0x3e80c1;return!_0x40e3d3||_0x40e3d3[_0x4a98f8(0x25f)]===0x0?_0x5a7bc1:_0x5a7bc1[_0x4a98f8(0x201)]==='defs'&&((_0x43515d=_0x5a7bc1['children'])!=null&&_0x43515d[_0x4a98f8(0x25f)])?{..._0x5a7bc1,'children':_0x5a7bc1[_0x4a98f8(0x240)][_0x4a98f8(0x2a4)](_0x401d1c=>typeof _0x401d1c['attrs']['id']==_0x4a98f8(0x1f8)&&_0x40e3d3&&_0x40e3d3[_0x4a98f8(0x270)](_0x401d1c['attrs']['id'])?{..._0x401d1c,'attrs':{..._0x401d1c[_0x4a98f8(0x21c)],'id':_0x401d1c[_0x4a98f8(0x21c)]['id']+_0x3e80c1[_0x4a98f8(0x228)]}}:_0x401d1c)}:_0x5a7bc1;}function H(){const _0xaa1f9a=_0x4be423;return Math[_0xaa1f9a(0x1dc)]()['toString'](0x24)[_0xaa1f9a(0x2ab)](0x2,0x8);}x[_0x4be423(0x28a)]=_0x4be423(0x242);const V={'tag':_0x4be423(0x29b),'attrs':{'xmlns':_0x4be423(0x22b),'fill':_0x4be423(0x293),'viewBox':_0x4be423(0x218),'width':_0x4be423(0x239),'height':_0x4be423(0x239)},'children':[{'tag':_0x4be423(0x2ae),'attrs':{'fill':_0x4be423(0x210),'d':_0x4be423(0x262)}},{'tag':_0x4be423(0x2ae),'attrs':{'fill':'currentColor','d':_0x4be423(0x20b),'fillRule':'evenodd','clipRule':_0x4be423(0x296)}}]},R=v[_0x4be423(0x2ad)](function(_0x1fb323,_0x59ed43){const _0x550f2f=_0x4be423;return v[_0x550f2f(0x265)](x,Object[_0x550f2f(0x2a3)]({},_0x1fb323,{'id':_0x550f2f(0x206),'ref':_0x59ed43,'icon':V}));});R[_0x4be423(0x28a)]='LiveShareIcon';class E extends o[_0x4be423(0x27d)]{constructor(){super(...arguments),_(this,'_sharedOperations',new Set()),_(this,'_reporters',new Set());}[_0x4be423(0x222)](_0x423393){const _0x56c641=_0x4be423;return this[_0x56c641(0x200)][_0x56c641(0x212)](_0x423393),o['toDisposable'](()=>this['_sharedOperations']['delete'](_0x423393));}[_0x4be423(0x294)](_0x88dcd0){const _0x1cef71=_0x4be423;return this[_0x1cef71(0x267)]['add'](_0x88dcd0),o[_0x1cef71(0x251)](()=>this[_0x1cef71(0x267)][_0x1cef71(0x27a)](_0x88dcd0));}[_0x4be423(0x215)](_0x378805){const _0x31fc3b=_0x4be423;return this[_0x31fc3b(0x200)]['has'](_0x378805);}[_0x4be423(0x250)](_0x61efae){const _0x5d1fb0=_0x4be423;return Array[_0x5d1fb0(0x23d)](this['_reporters'])['map'](_0x56f4a3=>_0x56f4a3(_0x61efae));}}function _0x3da3(){const _0x221f9f=['UniverIcon','get','_stopPresenting','LIVESHARE_NEW_HOST','subscribe','IUniverInstanceService','send','data','_startPresenting','getTypeOfUnitDisposed$','CollaborationSessionService','Plugin','getOwnPropertyDescriptor','_configService','getInitialStates','toDisposable','BuiltInUIPart','SetZoomRatioOperation','status$','_status$','clsx','_init','LIVESHARE_TERMINATE','1820452FvWCHB','jsx','66432yQuVDa','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','next','NOT_FOLLOWING','length','takeUntil','params','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','_collabSessionService','_mountLiveShare','createElement','jsxs','_reporters','Dropdown','OPERATION','sheet','stopPresenting','getValue','_handleNewHost','RxDisposable','init','includes','memberID','You\x27are\x20offline.','pipe','_presenter','then','presenting','UniverCollaborationClientPlugin','LiveShareController','getLiveShareCoordinator','delete','UniverLiveSharePlugin','onRendered','Disposable','values','SetWorksheetActiveOperation','LiveShare','IUIPartsService','DesktopLiveShareController','entries','throttleTime','952uymwtI','You\x27re\x20presenting\x20the\x20document','_startFollowing','InsertSheetMutation','IConfigService','displayName','_uiPartsService','univer-size-4','getUnitId','onCommandExecuted','fill','useDependency','ONLINE','unsubscribe','none','registerInitialStateReporter','unitId','evenodd','_collabSession','useState','requireSession','5204290GfSyIS','svg','asObservable','_beIdle','has','_startLiveShareCoordinator','offline','Inject','_univerInstanceService','assign','map','Subject','onStarting','url(#$1','disposeWithMe','idle','getLiveShareCoordinatorSync','substring','getConfig','forwardRef','path','LIVESHARE_FETCH_OPERATIONS','_handleOperation','parseProtocolChangeset','ICommandService','UNIVER_UNKNOWN','clear','set','mergeOverrideWithDependencies','_fetchOperations','UniverInstanceType','random','default','Injector','807203FvAtBS','Start','dispose$','CollaborationEvent','OFFLINE','not-following','connectInjector','defineProperty','DisposableCollection','getTypeOfUnitAdded$','colorChannel1','5765240iOINSH','pluginName','forEach','registerDependencies','IDLE','operations','You\x27re\x20not\x20following\x20the\x20presenter','2ttFwrI','Start\x20following','LiveShareCoordinator','live-share.config','_entities','LiveShareService','_handleTerminate','string','_liveShareService','getMemberID','startFollowing','CommandType','NEW_CHANGESETS','current','LIVESHARE_OPERATION','_sharedOperations','tag','_handleNewChangeSets','defIds','_injector','8505432eYDnNu','live-share-icon','_config','mutations','getStatus','tryStartPresenting','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','symbol','merge','3UdRpxt','currentColor','complete','add','button','_unitID','shouldShareOperation','_status','univer-mb-3\x20univer-w-full\x20univer-text-sm','0\x200\x2017\x2017','type','xlink:href','_commandService','attrs','replace','Button','_commandDisposable','LiveShareStatus','Fragment','registerSharedOperation','useRef','_handleOnline','executeCommand','SessionStatus','dispose','idSuffix','FOLLOWING','presenter','http://www.w3.org/2000/svg','LIVESHARE_REQUEST_HOST','mask','sessionStatus$','stringify','div','univerjs-icon\x20univerjs-icon-','text','setConfig','HEADER_MENU','58569zIodap','parse','Stop\x20presenting','event$','1em','_stopFollowing','stopFollowing','following','from','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','UNIVER_SHEET','children','useEffect'];_0x3da3=function(){return _0x221f9f;};return _0x3da3();}var M=Object['getOwnPropertyDescriptor'],P=(_0x56c834,_0x56f694,_0x2bf435,_0x119e9b)=>{const _0xcae18c=_0x4be423;for(var _0x461e37=_0x119e9b>0x1?void 0x0:_0x119e9b?M(_0x56f694,_0x2bf435):_0x56f694,_0x3e6cfb=_0x56c834[_0xcae18c(0x25f)]-0x1,_0x5e6262;_0x3e6cfb>=0x0;_0x3e6cfb--)(_0x5e6262=_0x56c834[_0x3e6cfb])&&(_0x461e37=_0x5e6262(_0x461e37)||_0x461e37);return _0x461e37;},S=(_0xa0b1b3,_0x14ed5f)=>(_0x3b5fea,_0x976c2d)=>_0x14ed5f(_0x3b5fea,_0x976c2d,_0xa0b1b3);exports[_0x4be423(0x278)]=class extends o[_0x4be423(0x26e)]{constructor(_0x4f90b3,_0x2d4867,_0x24dc7e){const _0x10e0ae=_0x4be423;super(),_(this,_0x10e0ae(0x1f5),new Map()),(this[_0x10e0ae(0x2a2)]=_0x4f90b3,this[_0x10e0ae(0x204)]=_0x2d4867,this[_0x10e0ae(0x263)]=_0x24dc7e,this[_0x10e0ae(0x257)]());}async[_0x4be423(0x279)](_0x536e1e){const _0x5b58f4=_0x4be423;return this[_0x5b58f4(0x1f5)][_0x5b58f4(0x29e)](_0x536e1e)||await this['_startLiveShareCoordinator'](_0x536e1e),this[_0x5b58f4(0x1f5)][_0x5b58f4(0x243)](_0x536e1e);}[_0x4be423(0x2aa)](_0x42bcdb){const _0x311b96=_0x4be423;var _0x191037;return(_0x191037=this['_entities'][_0x311b96(0x243)](_0x42bcdb))!=null?_0x191037:null;}[_0x4be423(0x257)](){const _0x1332f2=_0x4be423;this[_0x1332f2(0x2a2)][_0x1332f2(0x1e8)](o[_0x1332f2(0x1db)][_0x1332f2(0x23f)])['pipe'](I[_0x1332f2(0x260)](this['dispose$']))[_0x1332f2(0x246)](async _0x282664=>{const _0x447eea=_0x1332f2,_0x5746a8=_0x282664['getUnitId']();this[_0x447eea(0x1f5)][_0x447eea(0x29e)](_0x5746a8)||this['_startLiveShareCoordinator'](_0x5746a8);}),this[_0x1332f2(0x2a2)][_0x1332f2(0x24b)](o[_0x1332f2(0x1db)][_0x1332f2(0x23f)])[_0x1332f2(0x273)](I[_0x1332f2(0x260)](this['dispose$']))[_0x1332f2(0x246)](_0x1d168a=>{const _0x42742f=_0x1332f2,_0x18c131=_0x1d168a[_0x42742f(0x28d)](),_0x433f91=this[_0x42742f(0x1f5)]['get'](_0x18c131);_0x433f91==null||_0x433f91[_0x42742f(0x227)]();});}async[_0x4be423(0x29f)](_0x50984b){const _0x428515=_0x4be423,_0x49521a=await this[_0x428515(0x263)][_0x428515(0x299)](_0x50984b),_0x46e198=this[_0x428515(0x204)]['createInstance'](exports['LiveShareCoordinator'],_0x50984b,_0x49521a);return _0x46e198[_0x428515(0x26f)](),this['_entities']['set'](_0x50984b,_0x46e198),_0x46e198;}},exports['LiveShareController']=P([S(0x0,o[_0x4be423(0x247)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o['Inject'](b[_0x4be423(0x24c)]))],exports[_0x4be423(0x278)]);var u=(_0x528efa=>(_0x528efa[_0x4be423(0x1e3)]='offline',_0x528efa[_0x4be423(0x1ee)]=_0x4be423(0x2a9),_0x528efa[_0x4be423(0x229)]='following',_0x528efa[_0x4be423(0x25e)]=_0x4be423(0x1e4),_0x528efa['PRESENTING']=_0x4be423(0x276),_0x528efa))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x4be423(0x1f3)]=class extends o['RxDisposable']{constructor(_0x1205bd,_0xa3cae2,_0x5a67f3,_0x1f8d75,_0x17f242){const _0x5a20f5=_0x4be423;super(),_(this,_0x5a20f5(0x255),new O['BehaviorSubject'](_0x5a20f5(0x2a9))),_(this,_0x5a20f5(0x254),this['_status$'][_0x5a20f5(0x29c)]()),_(this,_0x5a20f5(0x257),!0x1),_(this,'_commandDisposable',null),_(this,_0x5a20f5(0x274),null),(this[_0x5a20f5(0x214)]=_0x1205bd,this[_0x5a20f5(0x297)]=_0xa3cae2,this[_0x5a20f5(0x24f)]=_0x5a67f3,this[_0x5a20f5(0x1f9)]=_0x1f8d75,this[_0x5a20f5(0x21b)]=_0x17f242);}get[_0x4be423(0x216)](){const _0x183ff4=_0x4be423;return this[_0x183ff4(0x255)][_0x183ff4(0x26c)]();}[_0x4be423(0x227)](){const _0x5a10e6=_0x4be423;var _0x2d68e0;(_0x2d68e0=this[_0x5a10e6(0x21f)])==null||_0x2d68e0['dispose'](),this[_0x5a10e6(0x255)][_0x5a10e6(0x25d)](_0x5a10e6(0x2a9)),this[_0x5a10e6(0x255)][_0x5a10e6(0x211)]();}[_0x4be423(0x209)](){const _0x98e44a=_0x4be423;return this[_0x98e44a(0x216)];}['init'](){const _0x19e100=_0x4be423;this['_init']||(this[_0x19e100(0x257)]=!0x0,this['_collabSession'][_0x19e100(0x22e)]['pipe'](I[_0x19e100(0x260)](this[_0x19e100(0x1e1)]))['subscribe'](_0x170e8f=>{const _0x8524c6=_0x19e100;switch(_0x170e8f){case b[_0x8524c6(0x226)]['OFFLINE']:this['_handleOffline']();break;case b[_0x8524c6(0x226)][_0x8524c6(0x291)]:this[_0x8524c6(0x224)]();break;}}),this['_collabSession'][_0x19e100(0x238)][_0x19e100(0x273)](I['takeUntil'](this[_0x19e100(0x1e1)]))[_0x19e100(0x246)](_0x1b24ab=>{const _0xf21c22=_0x19e100,{eventID:_0x1fbc31}=_0x1b24ab;switch(_0x1fbc31){case d['CollaborationEvent'][_0xf21c22(0x245)]:this[_0xf21c22(0x26d)](_0x1b24ab);break;case d[_0xf21c22(0x1e2)][_0xf21c22(0x1ff)]:this[_0xf21c22(0x2b0)](_0x1b24ab);break;case d['CollaborationEvent'][_0xf21c22(0x258)]:this[_0xf21c22(0x1f7)]();break;case d[_0xf21c22(0x1e2)][_0xf21c22(0x1fd)]:this[_0xf21c22(0x202)](_0x1b24ab);break;}}));}['tryStartPresenting'](){const _0x4340f6=_0x4be423;this[_0x4340f6(0x297)][_0x4340f6(0x248)]({'eventID':d[_0x4340f6(0x1e2)][_0x4340f6(0x22c)],'data':{'unitID':this[_0x4340f6(0x214)],'userID':this[_0x4340f6(0x297)]['getMemberID']()}},this['_unitID']);}[_0x4be423(0x26b)](){const _0x479369=_0x4be423;this['_status']===_0x479369(0x276)&&(this['_status$']['next'](_0x479369(0x2a9)),this[_0x479369(0x297)][_0x479369(0x248)]({'eventID':d[_0x479369(0x1e2)][_0x479369(0x258)],'data':{'unitID':this[_0x479369(0x214)]}},this[_0x479369(0x214)]));}['startFollowing'](){const _0x1536f2=_0x4be423;this[_0x1536f2(0x216)]===_0x1536f2(0x1e4)&&(this[_0x1536f2(0x255)][_0x1536f2(0x25d)](_0x1536f2(0x23c)),this[_0x1536f2(0x287)]());}[_0x4be423(0x23b)](){const _0x48d0f2=_0x4be423;this[_0x48d0f2(0x216)]===_0x48d0f2(0x23c)&&this[_0x48d0f2(0x23a)]();}['_handleNewHost'](_0x8a813c){const _0x16587d=_0x4be423,{presenter:_0x28091b}=_0x8a813c['data'],_0x5e9c1c=this[_0x16587d(0x297)][_0x16587d(0x1fa)]();this[_0x16587d(0x274)]=_0x28091b,_0x28091b===_0x5e9c1c?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x16587d(0x1e4)&&(this[_0x16587d(0x244)](),this[_0x16587d(0x287)]());}[_0x4be423(0x1da)](){const _0x270a6f=_0x4be423,_0x1316fd={'eventID':d['CollaborationEvent'][_0x270a6f(0x2af)]};this[_0x270a6f(0x297)]['send'](_0x1316fd,this['_unitID']);}['_handleTerminate'](){const _0x2b7279=_0x4be423;this['_presenter']=null,this[_0x2b7279(0x216)]!==_0x2b7279(0x276)&&this[_0x2b7279(0x29d)]();}[_0x4be423(0x202)](_0x44403c){const _0x516854=_0x4be423;if(this[_0x516854(0x216)]===_0x516854(0x23c)&&this[_0x516854(0x274)]===_0x44403c[_0x516854(0x249)][_0x516854(0x271)]){const _0x43d2ec=d[_0x516854(0x1d4)](_0x44403c[_0x516854(0x249)])[_0x516854(0x208)]['reverse']()['find'](_0x9bec5c=>_0x9bec5c['id']===C[_0x516854(0x288)]['id']);if(_0x43d2ec){const _0x1b8272=_0x43d2ec['params'][_0x516854(0x295)],_0x517762=_0x43d2ec[_0x516854(0x261)][_0x516854(0x26a)]['id'];setTimeout(()=>{const _0x343a8a=_0x516854;this[_0x343a8a(0x21b)][_0x343a8a(0x225)](C[_0x343a8a(0x27f)]['id'],{'unitId':_0x1b8272,'subUnitId':_0x517762},{'fromCollab':!0x0});});}}}[_0x4be423(0x24a)](){const _0x5debdc=_0x4be423;this[_0x5debdc(0x255)][_0x5debdc(0x25d)](_0x5debdc(0x276));const _0x1b4ebb=new Map(),_0x15a954=this[_0x5debdc(0x21f)]=new o[(_0x5debdc(0x1e7))]();_0x15a954[_0x5debdc(0x212)](o[_0x5debdc(0x251)](()=>{const _0x3e749d=_0x5debdc;_0x1b4ebb[_0x3e749d(0x1ec)](_0x21e699=>_0x21e699[_0x3e749d(0x211)]()),_0x1b4ebb[_0x3e749d(0x1d7)]();})),_0x15a954[_0x5debdc(0x212)](this[_0x5debdc(0x21b)][_0x5debdc(0x28e)](_0x235597=>{const _0x2f5fe0=_0x5debdc;var _0x37851a;if(_0x235597['type']!==o[_0x2f5fe0(0x1fc)][_0x2f5fe0(0x269)]||!this[_0x2f5fe0(0x1f9)][_0x2f5fe0(0x215)](_0x235597['id']))return;const {id:_0xbcb9bc}=_0x235597;let _0x388da3;_0x1b4ebb['has'](_0xbcb9bc)?_0x388da3=_0x1b4ebb[_0x2f5fe0(0x243)](_0xbcb9bc):(_0x388da3=new O[(_0x2f5fe0(0x2a5))](),_0x1b4ebb[_0x2f5fe0(0x1d8)](_0xbcb9bc,_0x388da3),_0x388da3[_0x2f5fe0(0x273)](I[_0x2f5fe0(0x284)]((_0x37851a=this[_0x2f5fe0(0x24f)][_0x2f5fe0(0x2ac)](k))!=null?_0x37851a:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1497a6=>{const _0x3710b3=_0x2f5fe0;this[_0x3710b3(0x297)][_0x3710b3(0x248)]({'eventID':d[_0x3710b3(0x1e2)][_0x3710b3(0x1ff)],'data':{'unitID':this[_0x3710b3(0x214)],'operations':{[_0x1497a6['id']]:{'id':_0x1497a6['id'],'params':JSON['stringify'](_0x1497a6[_0x3710b3(0x261)])}}}},this[_0x3710b3(0x214)]);})),_0x388da3['next'](_0x235597);})),this[_0x5debdc(0x1f9)]['getInitialStates'](this[_0x5debdc(0x214)])[_0x5debdc(0x1ec)](_0x43bb53=>this['_collabSession']['send']({'eventID':d[_0x5debdc(0x1e2)][_0x5debdc(0x1ff)],'data':{'unitID':this['_unitID'],'operations':{[_0x43bb53['id']]:{'id':_0x43bb53['id'],'params':JSON[_0x5debdc(0x22f)](_0x43bb53[_0x5debdc(0x261)])}}}},this[_0x5debdc(0x214)]));}[_0x4be423(0x244)](){const _0x12a7c3=_0x4be423;var _0x88643;this[_0x12a7c3(0x255)][_0x12a7c3(0x25d)](_0x12a7c3(0x2a9)),(_0x88643=this[_0x12a7c3(0x21f)])==null||_0x88643['dispose'](),this[_0x12a7c3(0x21f)]=null;}[_0x4be423(0x287)](){const _0x2c41cf=_0x4be423;var _0x4ae386;(_0x4ae386=this[_0x2c41cf(0x21f)])==null||_0x4ae386[_0x2c41cf(0x227)](),this[_0x2c41cf(0x255)][_0x2c41cf(0x25d)](_0x2c41cf(0x23c));}[_0x4be423(0x29d)](){const _0xbc3d64=_0x4be423;var _0x356186;this[_0xbc3d64(0x255)]['next'](_0xbc3d64(0x2a9)),(_0x356186=this['_commandDisposable'])==null||_0x356186[_0xbc3d64(0x227)](),this[_0xbc3d64(0x21f)]=null;}['_stopFollowing'](){const _0x5e60d4=_0x4be423;var _0x2e4d6c;this[_0x5e60d4(0x255)][_0x5e60d4(0x25d)](_0x5e60d4(0x1e4)),(_0x2e4d6c=this[_0x5e60d4(0x21f)])==null||_0x2e4d6c[_0x5e60d4(0x227)]();}[_0x4be423(0x2b0)](_0x3ab948){const _0xc05936=_0x4be423;if([_0xc05936(0x276),_0xc05936(0x1e4),_0xc05936(0x2a0)]['includes'](this[_0xc05936(0x216)])||!_0x3ab948['data']['presenter']||_0x3ab948[_0xc05936(0x249)][_0xc05936(0x22a)]===this[_0xc05936(0x297)][_0xc05936(0x1fa)]())return;this[_0xc05936(0x216)]===_0xc05936(0x2a9)&&this['_startFollowing']();const _0x2bc742=_0x3ab948[_0xc05936(0x249)][_0xc05936(0x1ef)];Object[_0xc05936(0x27e)](_0x2bc742)['forEach'](_0x77c444=>{const _0x3537cc=_0xc05936;this[_0x3537cc(0x21b)]['executeCommand'](_0x77c444['id'],_0x77c444[_0x3537cc(0x261)]?JSON[_0x3537cc(0x236)](_0x77c444[_0x3537cc(0x261)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x408f99=_0x4be423;var _0x1ea941;this[_0x408f99(0x255)][_0x408f99(0x25d)]('offline'),(_0x1ea941=this['_commandDisposable'])==null||_0x1ea941[_0x408f99(0x227)]();}[_0x4be423(0x224)](){const _0x4870a7=_0x4be423;this[_0x4870a7(0x255)][_0x4870a7(0x25d)](_0x4870a7(0x2a9)),this['_fetchOperations']();}},exports[_0x4be423(0x1f3)]=P([S(0x2,o[_0x4be423(0x289)]),S(0x3,o['Inject'](E)),S(0x4,o[_0x4be423(0x1d5)])],exports['LiveShareCoordinator']);function $(){const _0x2b1e30=_0x4be423,_0x1772b5=p['useDependency'](exports['LiveShareController']),_0x2fcafc=p[_0x2b1e30(0x290)](o[_0x2b1e30(0x247)]),_0x46b5a7=p['useObservable'](()=>_0x2fcafc['getCurrentTypeOfUnit$'](o[_0x2b1e30(0x1db)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x264b1d,_0x283085]=v[_0x2b1e30(0x298)](null),[_0x5be250,_0x162ba3]=v[_0x2b1e30(0x298)](u['IDLE']),_0x5af2ff=v[_0x2b1e30(0x223)](null);return v[_0x2b1e30(0x241)](()=>(_0x46b5a7&&_0x1772b5['getLiveShareCoordinator'](_0x46b5a7[_0x2b1e30(0x28d)]())[_0x2b1e30(0x275)](_0x1954cc=>{const _0x843dc0=_0x2b1e30;_0x283085(_0x1954cc),_0x5af2ff[_0x843dc0(0x1fe)]=_0x1954cc[_0x843dc0(0x254)][_0x843dc0(0x246)](_0xb307b3=>{_0x162ba3(_0xb307b3);});}),()=>{const _0x1a88f0=_0x2b1e30;var _0x34d334;(_0x34d334=_0x5af2ff[_0x1a88f0(0x1fe)])==null||_0x34d334[_0x1a88f0(0x292)](),_0x5af2ff[_0x1a88f0(0x1fe)]=null;}),[_0x46b5a7,_0x1772b5]),_0x264b1d?l['jsx'](f[_0x2b1e30(0x268)],{'align':'end','disabled':_0x5be250===u['OFFLINE'],'className':_0x2b1e30(0x23e),'overlay':l[_0x2b1e30(0x25a)](W,{'status':_0x5be250,'coordinator':_0x264b1d}),'children':l['jsx'](_0x2b1e30(0x213),{'className':f[_0x2b1e30(0x256)](_0x2b1e30(0x25c),{'univer-cursor-not-allowed':_0x5be250===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5be250!==u['OFFLINE']}),'type':'button','children':l[_0x2b1e30(0x25a)](R,{'className':_0x2b1e30(0x28c)})})}):null;}function W(_0x3e96e1){const _0x59a675=_0x4be423,{status:_0x5617d8,coordinator:_0x1424e8}=_0x3e96e1;switch(_0x5617d8){case u[_0x59a675(0x1ee)]:return l[_0x59a675(0x25a)](G,{'coordinator':_0x1424e8});case u[_0x59a675(0x229)]:return l['jsx'](B,{'coordinator':_0x1424e8});case u[_0x59a675(0x25e)]:return l[_0x59a675(0x25a)](Y,{'coordinator':_0x1424e8});case u[_0x59a675(0x1e3)]:return l[_0x59a675(0x25a)](J,{});case u['PRESENTING']:return l['jsx'](Z,{'coordinator':_0x1424e8});default:return null;}}function G(_0x2ed693){const _0x448ea0=_0x4be423,{coordinator:_0xeef429}=_0x2ed693;return l[_0x448ea0(0x266)](l[_0x448ea0(0x221)],{'children':[l[_0x448ea0(0x25a)](_0x448ea0(0x230),{'className':_0x448ea0(0x217),'children':'Present\x20this\x20document'}),l[_0x448ea0(0x25a)](f[_0x448ea0(0x21e)],{'onClick':()=>_0xeef429[_0x448ea0(0x20a)](),'children':_0x448ea0(0x1e0)})]});}function B(_0x5e4ab0){const _0x5c7595=_0x4be423,{coordinator:_0xcb303f}=_0x5e4ab0;return l['jsxs'](l[_0x5c7595(0x221)],{'children':[l[_0x5c7595(0x25a)]('div',{'className':_0x5c7595(0x217),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x5c7595(0x25a)](f[_0x5c7595(0x21e)],{'onClick':()=>_0xcb303f[_0x5c7595(0x23b)](),'children':'Stop\x20following'})]});}function Y(_0x205783){const _0x3de7b8=_0x4be423,{coordinator:_0x350ea1}=_0x205783;return l[_0x3de7b8(0x266)](l['Fragment'],{'children':[l[_0x3de7b8(0x25a)]('div',{'className':_0x3de7b8(0x217),'children':_0x3de7b8(0x1f0)}),l['jsx'](f[_0x3de7b8(0x21e)],{'variant':_0x3de7b8(0x232),'onClick':()=>_0x350ea1[_0x3de7b8(0x1fb)](),'children':_0x3de7b8(0x1f2)})]});}function Z(_0x333a97){const _0x3a3480=_0x4be423,{coordinator:_0x4f42e9}=_0x333a97;return l['jsxs'](l[_0x3a3480(0x221)],{'children':[l['jsx'](_0x3a3480(0x230),{'className':_0x3a3480(0x217),'children':_0x3a3480(0x286)}),l[_0x3a3480(0x25a)](f[_0x3a3480(0x21e)],{'variant':_0x3a3480(0x1dd),'onClick':()=>_0x4f42e9[_0x3a3480(0x26b)](),'children':_0x3a3480(0x237)})]});}function J(){const _0x17b7ad=_0x4be423;return l[_0x17b7ad(0x25a)](l[_0x17b7ad(0x221)],{'children':_0x17b7ad(0x272)});}var K=Object[_0x4be423(0x24e)],z=(_0x1a7772,_0x1d0111,_0x127d5b,_0xe49e22)=>{const _0x5dc11d=_0x4be423;for(var _0x3f0a2e=_0xe49e22>0x1?void 0x0:_0xe49e22?K(_0x1d0111,_0x127d5b):_0x1d0111,_0xb7c75d=_0x1a7772[_0x5dc11d(0x25f)]-0x1,_0x30d7c6;_0xb7c75d>=0x0;_0xb7c75d--)(_0x30d7c6=_0x1a7772[_0xb7c75d])&&(_0x3f0a2e=_0x30d7c6(_0x3f0a2e)||_0x3f0a2e);return _0x3f0a2e;},L=(_0x327b37,_0x107132)=>(_0x53b8f4,_0x1028be)=>_0x107132(_0x53b8f4,_0x1028be,_0x327b37);exports['DesktopLiveShareController']=class extends o[_0x4be423(0x27d)]{constructor(_0x5ec29f,_0x295404){const _0x2eb87b=_0x4be423;super(),this[_0x2eb87b(0x204)]=_0x5ec29f,this[_0x2eb87b(0x28b)]=_0x295404,this[_0x2eb87b(0x264)]();}[_0x4be423(0x264)](){const _0x162653=_0x4be423;this[_0x162653(0x2a8)](this[_0x162653(0x28b)]['registerComponent'](p[_0x162653(0x252)][_0x162653(0x234)],()=>p[_0x162653(0x1e5)]($,this['_injector'])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x4be423(0x2a1)](o[_0x4be423(0x1de)])),L(0x1,p[_0x4be423(0x281)])],exports[_0x4be423(0x282)]);function _0x450d(_0x51d301,_0x187dd9){_0x51d301=_0x51d301-0x1d4;const _0x3da352=_0x3da3();let _0x450d1c=_0x3da352[_0x51d301];return _0x450d1c;}const Q=_0x4be423(0x1f4),w={};var X=Object[_0x4be423(0x24e)],ee=(_0x3dbe96,_0x2f89a9,_0x577b0b,_0xd98f59)=>{const _0x29243e=_0x4be423;for(var _0x5e9322=_0xd98f59>0x1?void 0x0:_0xd98f59?X(_0x2f89a9,_0x577b0b):_0x2f89a9,_0x20f02a=_0x3dbe96[_0x29243e(0x25f)]-0x1,_0x52829d;_0x20f02a>=0x0;_0x20f02a--)(_0x52829d=_0x3dbe96[_0x20f02a])&&(_0x5e9322=_0x52829d(_0x5e9322)||_0x5e9322);return _0x5e9322;},te=(_0x2486f5,_0x5189a2)=>(_0x6f854b,_0x166132)=>_0x5189a2(_0x6f854b,_0x166132,_0x2486f5);let m=class extends o[_0x4be423(0x27d)]{constructor(_0x5ea533){const _0x4b9d77=_0x4be423;super(),this[_0x4b9d77(0x1f9)]=_0x5ea533,this['_init']();}[_0x4be423(0x257)](){const _0x29d4b4=_0x4be423;[D[_0x29d4b4(0x253)]['id'],D['SetScrollOperation']['id'],C[_0x29d4b4(0x27f)]['id']][_0x29d4b4(0x1ec)](_0x1a71ba=>{const _0xd8d932=_0x29d4b4;this[_0xd8d932(0x2a8)](this[_0xd8d932(0x1f9)]['registerSharedOperation'](_0x1a71ba));});}};m=ee([te(0x0,o[_0x4be423(0x2a1)](E))],m);var ie=Object[_0x4be423(0x1e6)],se=Object['getOwnPropertyDescriptor'],ne=(_0x2f486f,_0x584e67,_0x59721f)=>_0x584e67 in _0x2f486f?ie(_0x2f486f,_0x584e67,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59721f}):_0x2f486f[_0x584e67]=_0x59721f,re=(_0x44a17c,_0xb06693,_0x2bd87f,_0x39b6ed)=>{const _0x5ea464=_0x4be423;for(var _0x1ea0f9=_0x39b6ed>0x1?void 0x0:_0x39b6ed?se(_0xb06693,_0x2bd87f):_0xb06693,_0x1f2238=_0x44a17c[_0x5ea464(0x25f)]-0x1,_0x2e9ea9;_0x1f2238>=0x0;_0x1f2238--)(_0x2e9ea9=_0x44a17c[_0x1f2238])&&(_0x1ea0f9=_0x2e9ea9(_0x1ea0f9)||_0x1ea0f9);return _0x1ea0f9;},N=(_0x380908,_0x21d5fc)=>(_0xd564ac,_0x2ffd90)=>_0x21d5fc(_0xd564ac,_0x2ffd90,_0x380908),A=(_0x2644dd,_0x5848c4,_0x3e2a8a)=>ne(_0x2644dd,typeof _0x5848c4!=_0x4be423(0x20d)?_0x5848c4+'':_0x5848c4,_0x3e2a8a);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x4be423(0x27b)]=class extends o[_0x4be423(0x24d)]{constructor(_0x195689=w,_0x310b5f,_0x479868){const _0x2da8e5=_0x4be423;super(),this['_config']=_0x195689,this[_0x2da8e5(0x204)]=_0x310b5f,this['_configService']=_0x479868;const {..._0x1444af}=o[_0x2da8e5(0x20e)]({},w,this[_0x2da8e5(0x207)]);this['_configService'][_0x2da8e5(0x233)](Q,_0x1444af);}[_0x4be423(0x2a6)](){const _0x157f23=_0x4be423;o[_0x157f23(0x1ed)](this['_injector'],o[_0x157f23(0x1d9)]([[E],[exports[_0x157f23(0x278)]],[m],[exports[_0x157f23(0x282)]]],this[_0x157f23(0x207)]['override'])),o['touchDependencies'](this[_0x157f23(0x204)],[[m]]);}[_0x4be423(0x27c)](){const _0x3cebca=_0x4be423;o['touchDependencies'](this[_0x3cebca(0x204)],[[exports[_0x3cebca(0x282)]]]);}},A(exports[_0x4be423(0x27b)],_0x4be423(0x219),o[_0x4be423(0x1db)][_0x4be423(0x1d6)]),A(exports[_0x4be423(0x27b)],_0x4be423(0x1eb),oe),exports['UniverLiveSharePlugin']=re([o['DependentOn'](b[_0x4be423(0x277)]),N(0x1,o[_0x4be423(0x2a1)](o[_0x4be423(0x1de)])),N(0x2,o[_0x4be423(0x289)])],exports[_0x4be423(0x27b)]),exports[_0x4be423(0x280)]=$,exports[_0x4be423(0x1f6)]=E,exports[_0x4be423(0x220)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0xdec3d=_0x41f0;(function(_0x154676,_0x52e1c2){const _0x27fa8e=_0x41f0,_0x1fd54c=_0x154676();while(!![]){try{const _0x56be66=parseInt(_0x27fa8e(0x14f))/0x1+parseInt(_0x27fa8e(0x15a))/0x2+-parseInt(_0x27fa8e(0x150))/0x3*(-parseInt(_0x27fa8e(0x15f))/0x4)+-parseInt(_0x27fa8e(0x155))/0x5*(parseInt(_0x27fa8e(0x15c))/0x6)+-parseInt(_0x27fa8e(0x151))/0x7+parseInt(_0x27fa8e(0x146))/0x8+-parseInt(_0x27fa8e(0x162))/0x9;if(_0x56be66===_0x52e1c2)break;else _0x1fd54c['push'](_0x1fd54c['shift']());}catch(_0x5e0256){_0x1fd54c['push'](_0x1fd54c['shift']());}}}(_0x5126,0xc1887));function _0x41f0(_0x44ea44,_0x5cbd75){_0x44ea44=_0x44ea44-0x143;const _0x5126fb=_0x5126();let _0x41f08c=_0x5126fb[_0x44ea44];return _0x41f08c;}import{LiveShareController as _0x3c6283,LiveShareStatus as _0x5ce499}from'@univerjs-pro/live-share';function _0x5126(){const _0x5ec4a5=['PRESENTING','1409934MqEmQy','886194bjFicO','6647116WdeAOD','getSheetId','startColumn','startFollowing','124520fqgvfM','syncExecuteCommand','stopFollowing','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','2812896zVyZEM','stopPresenting','372azBYjC','tryStartPresenting','get','12MROtiH','getUnitId','_initialize','11722653TjMiOC','getActiveWorkbook','getActiveSheet','getId','7090304XGhsmN','extend','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startPresenting','_commandService','_injector','getRenderById'];_0x5126=function(){return _0x5ec4a5;};return _0x5126();}import{IRenderManagerService as _0x1be804}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3bc398}from'@univerjs/sheets';import{SetScrollOperation as _0x56e6db}from'@univerjs/sheets-ui';import{FRange as _0x335293}from'@univerjs/sheets/facade';import{FUniver as _0x451090,FEnum as _0xf8fd90}from'@univerjs/core/facade';class I extends _0x335293{[_0xdec3d(0x161)](_0x3ec33d,_0x563e98,_0x17db44,_0x28b84d,_0x34ec08){const _0x16156c=_0xdec3d,_0x17ed33=_0x3ec33d['get'](_0x3c6283),_0x2d9304=_0x3ec33d[_0x16156c(0x15e)](_0x1be804),_0x3c3e74=_0x563e98['getUnitId'](),_0x1cee4e=_0x563e98[_0x16156c(0x144)](),_0x769ff7=_0x17ed33[_0x16156c(0x159)](_0x3c3e74);(_0x769ff7==null?void 0x0:_0x769ff7['getStatus']())!==_0x5ce499[_0x16156c(0x14e)]||(_0x17db44[_0x16156c(0x152)]()!==_0x1cee4e[_0x16156c(0x152)]()&&this[_0x16156c(0x14b)]['executeCommand'](_0x3bc398['id'],{'unitId':_0x3c3e74,'subUnitId':_0x17db44[_0x16156c(0x152)]()}),!_0x2d9304[_0x16156c(0x14d)](_0x3c3e74))||_0x34ec08[_0x16156c(0x156)](_0x56e6db['id'],{'unitId':_0x563e98[_0x16156c(0x160)](),'sheetId':_0x17db44[_0x16156c(0x152)](),'sheetViewStartRow':_0x28b84d[_0x16156c(0x148)],'sheetViewStartColumn':_0x28b84d[_0x16156c(0x153)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x335293[_0xdec3d(0x147)](I);class m extends _0x451090{['getLiveShareStatus'](){const _0x23e4df=_0xdec3d;var _0x12f450,_0x56155f;const _0x410559=this['_injector']['get'](_0x3c6283),_0x4d8018=(_0x12f450=this[_0x23e4df(0x143)]())==null?void 0x0:_0x12f450[_0x23e4df(0x145)]();if(!_0x4d8018)throw new Error(_0x23e4df(0x158));const _0x3c46cc=_0x410559[_0x23e4df(0x159)](_0x4d8018);return(_0x56155f=_0x3c46cc==null?void 0x0:_0x3c46cc['getStatus']())!=null?_0x56155f:_0x5ce499['IDLE'];}[_0xdec3d(0x154)](){const _0x3a852a=_0xdec3d;var _0x5bd449;const _0x421eaf=this['_injector'][_0x3a852a(0x15e)](_0x3c6283),_0x1c5aff=(_0x5bd449=this['getActiveWorkbook']())==null?void 0x0:_0x5bd449[_0x3a852a(0x145)]();if(!_0x1c5aff)throw new Error('No\x20active\x20workbook\x20found.');const _0x14b2b=_0x421eaf['getLiveShareCoordinatorSync'](_0x1c5aff);if(!_0x14b2b)throw new Error(_0x3a852a(0x149));_0x14b2b[_0x3a852a(0x154)]();}[_0xdec3d(0x157)](){const _0x3844cf=_0xdec3d;var _0x288dde;const _0x1fe75b=this['_injector'][_0x3844cf(0x15e)](_0x3c6283),_0x5a84f4=(_0x288dde=this[_0x3844cf(0x143)]())==null?void 0x0:_0x288dde['getId']();if(!_0x5a84f4)throw new Error(_0x3844cf(0x158));const _0x56e10a=_0x1fe75b[_0x3844cf(0x159)](_0x5a84f4);if(!_0x56e10a)throw new Error(_0x3844cf(0x149));_0x56e10a[_0x3844cf(0x157)]();}[_0xdec3d(0x14a)](){const _0x5b8bd4=_0xdec3d;var _0x2fd7ff;const _0x1f5051=this['_injector'][_0x5b8bd4(0x15e)](_0x3c6283),_0x3cda5b=(_0x2fd7ff=this['getActiveWorkbook']())==null?void 0x0:_0x2fd7ff[_0x5b8bd4(0x145)]();if(!_0x3cda5b)throw new Error(_0x5b8bd4(0x158));const _0x28866b=_0x1f5051[_0x5b8bd4(0x159)](_0x3cda5b);if(!_0x28866b)throw new Error(_0x5b8bd4(0x149));_0x28866b[_0x5b8bd4(0x15d)]();}[_0xdec3d(0x15b)](){const _0x290065=_0xdec3d;var _0x50b3cb;const _0x539995=this[_0x290065(0x14c)][_0x290065(0x15e)](_0x3c6283),_0x2c2301=(_0x50b3cb=this[_0x290065(0x143)]())==null?void 0x0:_0x50b3cb[_0x290065(0x145)]();if(!_0x2c2301)throw new Error(_0x290065(0x158));const _0xd59531=_0x539995[_0x290065(0x159)](_0x2c2301);if(!_0xd59531)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xd59531['stopPresenting']();}}_0x451090[_0xdec3d(0x147)](m);class C extends _0xf8fd90{get['LiveShareStatusEnum'](){return _0x5ce499;}}_0xf8fd90['extend'](C);
1
+ const _0x510e92=_0x4f85;(function(_0x34ba85,_0x4522a6){const _0x36ae73=_0x4f85,_0xabf814=_0x34ba85();while(!![]){try{const _0x35b24a=-parseInt(_0x36ae73(0xfc))/0x1*(-parseInt(_0x36ae73(0xf6))/0x2)+parseInt(_0x36ae73(0x103))/0x3+-parseInt(_0x36ae73(0xed))/0x4*(parseInt(_0x36ae73(0xf7))/0x5)+parseInt(_0x36ae73(0xfb))/0x6*(parseInt(_0x36ae73(0xf2))/0x7)+parseInt(_0x36ae73(0xff))/0x8+parseInt(_0x36ae73(0x106))/0x9*(parseInt(_0x36ae73(0xf0))/0xa)+-parseInt(_0x36ae73(0xe7))/0xb;if(_0x35b24a===_0x4522a6)break;else _0xabf814['push'](_0xabf814['shift']());}catch(_0x560b08){_0xabf814['push'](_0xabf814['shift']());}}}(_0x575f,0xaca61));import{LiveShareController as _0x1ca6a4,LiveShareStatus as _0x2cb366}from'@univerjs-pro/live-share';function _0x575f(){const _0x35db40=['startFollowing','syncExecuteCommand','getId','2YTzTXe','5637365VZURxs','stopFollowing','LiveShareStatusEnum','stopPresenting','1146RODFUM','399613SUCqoA','_initialize','getActiveSheet','7274448tgxnIi','get','_commandService','getLiveShareCoordinatorSync','1928124qQePgA','startRow','getLiveShareStatus','6525SGuobw','startPresenting','IDLE','extend','_injector','tryStartPresenting','11124069TCcraZ','executeCommand','No\x20active\x20workbook\x20found.','getStatus','getUnitId','getActiveWorkbook','4wGlfTW','startColumn','getSheetId','5330srhhtM','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','18613iSnbqI'];_0x575f=function(){return _0x35db40;};return _0x575f();}import{IRenderManagerService as _0x3cd943}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3495bd}from'@univerjs/sheets';import{SetScrollOperation as _0x40f6af}from'@univerjs/sheets-ui';import{FRange as _0x459a39}from'@univerjs/sheets/facade';import{FUniver as _0x89d62c,FEnum as _0x478e8a}from'@univerjs/core/facade';class I extends _0x459a39{[_0x510e92(0xfd)](_0x548c86,_0x294ade,_0x595d7d,_0x212bca,_0x116be4){const _0x94740=_0x510e92,_0x1dadf6=_0x548c86[_0x94740(0x100)](_0x1ca6a4),_0x2f8afe=_0x548c86[_0x94740(0x100)](_0x3cd943),_0x2473cb=_0x294ade[_0x94740(0xeb)](),_0xd69fe8=_0x294ade[_0x94740(0xfe)](),_0x2b2da9=_0x1dadf6['getLiveShareCoordinatorSync'](_0x2473cb);(_0x2b2da9==null?void 0x0:_0x2b2da9[_0x94740(0xea)]())!==_0x2cb366['PRESENTING']||(_0x595d7d['getSheetId']()!==_0xd69fe8[_0x94740(0xef)]()&&this[_0x94740(0x101)][_0x94740(0xe8)](_0x3495bd['id'],{'unitId':_0x2473cb,'subUnitId':_0x595d7d[_0x94740(0xef)]()}),!_0x2f8afe['getRenderById'](_0x2473cb))||_0x116be4[_0x94740(0xf4)](_0x40f6af['id'],{'unitId':_0x294ade[_0x94740(0xeb)](),'sheetId':_0x595d7d['getSheetId'](),'sheetViewStartRow':_0x212bca[_0x94740(0x104)],'sheetViewStartColumn':_0x212bca[_0x94740(0xee)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x459a39[_0x510e92(0x109)](I);class m extends _0x89d62c{[_0x510e92(0x105)](){const _0x2225bb=_0x510e92;var _0x2b90fa,_0x2ac7a7;const _0x1eacb4=this[_0x2225bb(0xe5)]['get'](_0x1ca6a4),_0x377ac0=(_0x2b90fa=this[_0x2225bb(0xec)]())==null?void 0x0:_0x2b90fa[_0x2225bb(0xf5)]();if(!_0x377ac0)throw new Error(_0x2225bb(0xe9));const _0x3b0f94=_0x1eacb4[_0x2225bb(0x102)](_0x377ac0);return(_0x2ac7a7=_0x3b0f94==null?void 0x0:_0x3b0f94[_0x2225bb(0xea)]())!=null?_0x2ac7a7:_0x2cb366[_0x2225bb(0x108)];}[_0x510e92(0xf3)](){const _0x29687c=_0x510e92;var _0x326131;const _0x3eb30b=this[_0x29687c(0xe5)][_0x29687c(0x100)](_0x1ca6a4),_0x168946=(_0x326131=this[_0x29687c(0xec)]())==null?void 0x0:_0x326131[_0x29687c(0xf5)]();if(!_0x168946)throw new Error(_0x29687c(0xe9));const _0x160636=_0x3eb30b[_0x29687c(0x102)](_0x168946);if(!_0x160636)throw new Error(_0x29687c(0xf1));_0x160636[_0x29687c(0xf3)]();}[_0x510e92(0xf8)](){const _0x530c57=_0x510e92;var _0x1b2a7b;const _0xd0e19f=this[_0x530c57(0xe5)][_0x530c57(0x100)](_0x1ca6a4),_0x5f3ecd=(_0x1b2a7b=this[_0x530c57(0xec)]())==null?void 0x0:_0x1b2a7b['getId']();if(!_0x5f3ecd)throw new Error('No\x20active\x20workbook\x20found.');const _0x657c61=_0xd0e19f['getLiveShareCoordinatorSync'](_0x5f3ecd);if(!_0x657c61)throw new Error(_0x530c57(0xf1));_0x657c61['stopFollowing']();}[_0x510e92(0x107)](){const _0x467974=_0x510e92;var _0xeb20c1;const _0xfe8bbd=this['_injector'][_0x467974(0x100)](_0x1ca6a4),_0x3075de=(_0xeb20c1=this['getActiveWorkbook']())==null?void 0x0:_0xeb20c1['getId']();if(!_0x3075de)throw new Error(_0x467974(0xe9));const _0x15fe1c=_0xfe8bbd[_0x467974(0x102)](_0x3075de);if(!_0x15fe1c)throw new Error(_0x467974(0xf1));_0x15fe1c[_0x467974(0xe6)]();}[_0x510e92(0xfa)](){const _0x4e9f75=_0x510e92;var _0x2d81be;const _0x4e9abb=this[_0x4e9f75(0xe5)]['get'](_0x1ca6a4),_0x221c4e=(_0x2d81be=this[_0x4e9f75(0xec)]())==null?void 0x0:_0x2d81be[_0x4e9f75(0xf5)]();if(!_0x221c4e)throw new Error(_0x4e9f75(0xe9));const _0x3de30c=_0x4e9abb['getLiveShareCoordinatorSync'](_0x221c4e);if(!_0x3de30c)throw new Error(_0x4e9f75(0xf1));_0x3de30c[_0x4e9f75(0xfa)]();}}_0x89d62c[_0x510e92(0x109)](m);class C extends _0x478e8a{get[_0x510e92(0xf9)](){return _0x2cb366;}}function _0x4f85(_0x22962c,_0x4998ca){_0x22962c=_0x22962c-0xe5;const _0x575fec=_0x575f();let _0x4f8578=_0x575fec[_0x22962c];return _0x4f8578;}_0x478e8a[_0x510e92(0x109)](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x6e67a4=_0x135d;(function(_0x354467,_0x7b3ce5){const _0x1c9e91=_0x135d,_0x5d94dd=_0x354467();while(!![]){try{const _0x220892=parseInt(_0x1c9e91(0x1a8))/0x1+-parseInt(_0x1c9e91(0x204))/0x2*(-parseInt(_0x1c9e91(0x22e))/0x3)+parseInt(_0x1c9e91(0x1f2))/0x4*(parseInt(_0x1c9e91(0x19b))/0x5)+-parseInt(_0x1c9e91(0x18c))/0x6*(-parseInt(_0x1c9e91(0x21a))/0x7)+-parseInt(_0x1c9e91(0x1ed))/0x8+-parseInt(_0x1c9e91(0x1b3))/0x9+-parseInt(_0x1c9e91(0x1f6))/0xa;if(_0x220892===_0x7b3ce5)break;else _0x5d94dd['push'](_0x5d94dd['shift']());}catch(_0x520e8e){_0x5d94dd['push'](_0x5d94dd['shift']());}}}(_0x4234,0x3c369));var J=Object[_0x6e67a4(0x1be)],K=(_0x1845a7,_0x152099,_0xb0e92b)=>_0x152099 in _0x1845a7?J(_0x1845a7,_0x152099,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb0e92b}):_0x1845a7[_0x152099]=_0xb0e92b,u=(_0x183d15,_0x108a2e,_0x318511)=>K(_0x183d15,typeof _0x108a2e!=_0x6e67a4(0x1a4)?_0x108a2e+'':_0x108a2e,_0x318511);import{Disposable as _0x5e24bb,toDisposable as _0xe2a356,IUniverInstanceService as _0x429aae,Inject as _0x59f7c6,Injector as _0x4531be,IConfigService as _0x3f6d6e,ICommandService as _0x3ed8d7,RxDisposable as _0x191712,UniverInstanceType as _0x118f42,DisposableCollection as _0x2a5811,CommandType as _0x14388b,DependentOn as _0xe1d233,Plugin as _0x5cd1de,merge as _0x727060,registerDependencies as _0x28a48e,mergeOverrideWithDependencies as _0x357330,touchDependencies as _0x25c3b0}from'@univerjs/core';import{useDependency as _0xdbbe5b,useObservable as _0x1621e2,IUIPartsService as _0x27b447,BuiltInUIPart as _0x47949f,connectInjector as _0x296dfc}from'@univerjs/ui';import{jsx as _0x2ca373,jsxs as _0xbe0ce5,Fragment as _0x511b38}from'react/jsx-runtime';import{Dropdown as _0x2a1e6e,clsx as _0x8ac4ff,Button as _0x29989c}from'@univerjs/design';import{useRef as _0x482ed3,createElement as _0x797d0e,forwardRef as _0x16790e,useState as _0x5d950b,useEffect as _0x52f42a}from'react';import{CollaborationEvent as _0x94e1b3,parseProtocolChangeset as _0x479ed7}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1e5a3d,SessionStatus as _0x4753ef,UniverCollaborationClientPlugin as _0x4a1e33}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x17d247,SetWorksheetActiveOperation as _0x553e77}from'@univerjs/sheets';import{BehaviorSubject as _0x59d67a,Subject as _0x51c7e2}from'rxjs';import{takeUntil as _0x5448c3,throttleTime as _0x35eda6}from'rxjs/operators';import{SetZoomRatioOperation as _0x13aa72,SetScrollOperation as _0x4e9adb}from'@univerjs/sheets-ui';function k({ref:_0x1ae140,..._0x3bcec8}){const _0x1853be=_0x6e67a4,{icon:_0xd1386a,id:_0x1f91e4,className:_0xc749bb,extend:_0x4689db,..._0x221a9f}=_0x3bcec8,_0x200100=(_0x1853be(0x1ef)+_0x1f91e4+'\x20'+(_0xc749bb||''))[_0x1853be(0x1fa)](),_0x332e44=_0x482ed3('_'+Oe());return G(_0xd1386a,''+_0x1f91e4,{'defIds':_0xd1386a[_0x1853be(0x20c)],'idSuffix':_0x332e44[_0x1853be(0x1fd)]},{'ref':_0x1ae140,'className':_0x200100,..._0x221a9f},_0x4689db);}function G(_0x833fa0,_0x12cde1,_0x16c09c,_0x4716fa,_0x34a4d8){const _0x4e4d1d=_0x6e67a4;return _0x797d0e(_0x833fa0[_0x4e4d1d(0x1d0)],{'key':_0x12cde1,...be(_0x833fa0,_0x16c09c,_0x34a4d8),..._0x4716fa},(Ee(_0x833fa0,_0x16c09c)[_0x4e4d1d(0x1b5)]||[])['map']((_0x3fafb2,_0x2f00d8)=>G(_0x3fafb2,_0x12cde1+'-'+_0x833fa0[_0x4e4d1d(0x1d0)]+'-'+_0x2f00d8,_0x16c09c,void 0x0,_0x34a4d8)));}function be(_0x4abf2e,_0x4343c1,_0x2e77b6){const _0x33df50=_0x6e67a4,_0x593596={..._0x4abf2e[_0x33df50(0x20d)]};_0x2e77b6!=null&&_0x2e77b6[_0x33df50(0x186)]&&_0x593596[_0x33df50(0x21c)]===_0x33df50(0x186)&&(_0x593596[_0x33df50(0x21c)]=_0x2e77b6[_0x33df50(0x186)]),_0x4abf2e['tag']===_0x33df50(0x1b7)&&_0x593596['id']&&(_0x593596['id']=_0x593596['id']+_0x4343c1[_0x33df50(0x1e9)]),Object[_0x33df50(0x1a3)](_0x593596)['forEach'](([_0x21e168,_0x3bfd12])=>{const _0x38ba2a=_0x33df50;_0x21e168===_0x38ba2a(0x1b7)&&typeof _0x3bfd12==_0x38ba2a(0x1cd)&&(_0x593596[_0x21e168]=_0x3bfd12['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4343c1[_0x38ba2a(0x1e9)]+')'));});const {defIds:_0x4ab71f}=_0x4343c1;return!_0x4ab71f||_0x4ab71f['length']===0x0||(_0x4abf2e[_0x33df50(0x1d0)]===_0x33df50(0x1b6)&&_0x593596[_0x33df50(0x1c6)]&&(_0x593596['xlink:href']=_0x593596[_0x33df50(0x1c6)]+_0x4343c1[_0x33df50(0x1e9)]),Object[_0x33df50(0x1a3)](_0x593596)[_0x33df50(0x1c9)](([_0x2dd0e6,_0x15a707])=>{const _0x486147=_0x33df50;typeof _0x15a707==_0x486147(0x1cd)&&(_0x593596[_0x2dd0e6]=_0x15a707['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4343c1[_0x486147(0x1e9)]+')'));})),_0x593596;}function Ee(_0x1e7841,_0x799ef){const _0x43ab92=_0x6e67a4;var _0x55ae08;const {defIds:_0x538651}=_0x799ef;return!_0x538651||_0x538651[_0x43ab92(0x18a)]===0x0?_0x1e7841:_0x1e7841['tag']===_0x43ab92(0x1e1)&&((_0x55ae08=_0x1e7841[_0x43ab92(0x1b5)])!=null&&_0x55ae08[_0x43ab92(0x18a)])?{..._0x1e7841,'children':_0x1e7841[_0x43ab92(0x1b5)][_0x43ab92(0x1f9)](_0x19be0b=>typeof _0x19be0b[_0x43ab92(0x20d)]['id']==_0x43ab92(0x1cd)&&_0x538651&&_0x538651[_0x43ab92(0x1cf)](_0x19be0b['attrs']['id'])?{..._0x19be0b,'attrs':{..._0x19be0b[_0x43ab92(0x20d)],'id':_0x19be0b['attrs']['id']+_0x799ef[_0x43ab92(0x1e9)]}}:_0x19be0b)}:_0x1e7841;}function Oe(){const _0x4d5025=_0x6e67a4;return Math[_0x4d5025(0x199)]()[_0x4d5025(0x212)](0x24)[_0x4d5025(0x1d9)](0x2,0x8);}k[_0x6e67a4(0x1a1)]='UniverIcon';const we={'tag':_0x6e67a4(0x1ad),'attrs':{'xmlns':_0x6e67a4(0x20b),'fill':'none','viewBox':_0x6e67a4(0x18e),'width':_0x6e67a4(0x1d8),'height':'1em'},'children':[{'tag':_0x6e67a4(0x208),'attrs':{'fill':_0x6e67a4(0x1d7),'d':_0x6e67a4(0x202)}},{'tag':'path','attrs':{'fill':_0x6e67a4(0x1d7),'d':_0x6e67a4(0x215),'fillRule':_0x6e67a4(0x1d2),'clipRule':'evenodd'}}]},W=_0x16790e(function(_0x1f62a1,_0x5d29e2){return _0x797d0e(k,Object['assign']({},_0x1f62a1,{'id':'live-share-icon','ref':_0x5d29e2,'icon':we}));});W[_0x6e67a4(0x1a1)]=_0x6e67a4(0x187);class L extends _0x5e24bb{constructor(){const _0x2b60d3=_0x6e67a4;super(...arguments),u(this,_0x2b60d3(0x19d),new Set()),u(this,'_reporters',new Set());}[_0x6e67a4(0x190)](_0x3b57ca){const _0x520924=_0x6e67a4;return this[_0x520924(0x19d)][_0x520924(0x1ba)](_0x3b57ca),_0xe2a356(()=>this[_0x520924(0x19d)][_0x520924(0x188)](_0x3b57ca));}[_0x6e67a4(0x224)](_0xb8827){const _0x4e8b83=_0x6e67a4;return this[_0x4e8b83(0x1cc)]['add'](_0xb8827),_0xe2a356(()=>this[_0x4e8b83(0x1cc)][_0x4e8b83(0x188)](_0xb8827));}[_0x6e67a4(0x1bc)](_0x2b5851){const _0xa4a800=_0x6e67a4;return this[_0xa4a800(0x19d)][_0xa4a800(0x1ab)](_0x2b5851);}[_0x6e67a4(0x1b4)](_0x3f70a2){const _0x3b76e8=_0x6e67a4;return Array[_0x3b76e8(0x1c1)](this['_reporters'])[_0x3b76e8(0x1f9)](_0x4d15ac=>_0x4d15ac(_0x3f70a2));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x2e6546,_0xa2f29,_0x16bf90,_0x40d393)=>{for(var _0x4eb0ab=_0x40d393>0x1?void 0x0:_0x40d393?Ne(_0xa2f29,_0x16bf90):_0xa2f29,_0x2102b5=_0x2e6546['length']-0x1,_0x438880;_0x2102b5>=0x0;_0x2102b5--)(_0x438880=_0x2e6546[_0x2102b5])&&(_0x4eb0ab=_0x438880(_0x4eb0ab)||_0x4eb0ab);return _0x4eb0ab;},_=(_0x7b7c13,_0x29bb03)=>(_0x32e15d,_0x4d3bc3)=>_0x29bb03(_0x32e15d,_0x4d3bc3,_0x7b7c13);let S=class extends _0x191712{constructor(_0x459ad7,_0x4b4d66,_0x26758d){const _0x10cb0=_0x6e67a4;super(),u(this,_0x10cb0(0x1a2),new Map()),(this['_univerInstanceService']=_0x459ad7,this[_0x10cb0(0x1b8)]=_0x4b4d66,this[_0x10cb0(0x210)]=_0x26758d,this[_0x10cb0(0x1b2)]());}async[_0x6e67a4(0x1b1)](_0x3a9d84){const _0x25538e=_0x6e67a4;return this[_0x25538e(0x1a2)][_0x25538e(0x1ab)](_0x3a9d84)||await this[_0x25538e(0x207)](_0x3a9d84),this[_0x25538e(0x1a2)][_0x25538e(0x1bd)](_0x3a9d84);}['getLiveShareCoordinatorSync'](_0x30ced4){const _0x4d711b=_0x6e67a4;var _0x6c659a;return(_0x6c659a=this[_0x4d711b(0x1a2)][_0x4d711b(0x1bd)](_0x30ced4))!=null?_0x6c659a:null;}['_init'](){const _0x25532a=_0x6e67a4;this[_0x25532a(0x20a)][_0x25532a(0x222)](_0x118f42[_0x25532a(0x1e6)])[_0x25532a(0x1c0)](_0x5448c3(this[_0x25532a(0x21b)]))[_0x25532a(0x1c2)](async _0x2f9568=>{const _0x6fd157=_0x25532a,_0x15c987=_0x2f9568[_0x6fd157(0x1df)]();this['_entities']['has'](_0x15c987)||this['_startLiveShareCoordinator'](_0x15c987);}),this['_univerInstanceService'][_0x25532a(0x1c4)](_0x118f42[_0x25532a(0x1e6)])[_0x25532a(0x1c0)](_0x5448c3(this['dispose$']))['subscribe'](_0x67e594=>{const _0x965c3e=_0x25532a,_0x355512=_0x67e594[_0x965c3e(0x1df)](),_0x242483=this[_0x965c3e(0x1a2)][_0x965c3e(0x1bd)](_0x355512);_0x242483==null||_0x242483[_0x965c3e(0x1af)]();});}async[_0x6e67a4(0x207)](_0x2609a0){const _0x25e734=_0x6e67a4,_0x67e802=await this[_0x25e734(0x210)][_0x25e734(0x1d1)](_0x2609a0),_0x1d9d3c=this['_injector'][_0x25e734(0x221)](N,_0x2609a0,_0x67e802);return _0x1d9d3c[_0x25e734(0x1f3)](),this['_entities']['set'](_0x2609a0,_0x1d9d3c),_0x1d9d3c;}};S=Y([_(0x0,_0x429aae),_(0x1,_0x59f7c6(_0x4531be)),_(0x2,_0x59f7c6(_0x1e5a3d))],S);var c=(_0x53f6aa=>(_0x53f6aa[_0x6e67a4(0x216)]=_0x6e67a4(0x1f0),_0x53f6aa[_0x6e67a4(0x1ac)]='idle',_0x53f6aa[_0x6e67a4(0x1d3)]=_0x6e67a4(0x1ff),_0x53f6aa[_0x6e67a4(0x1d4)]=_0x6e67a4(0x1dc),_0x53f6aa[_0x6e67a4(0x1da)]=_0x6e67a4(0x219),_0x53f6aa))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x191712{constructor(_0x1a51d7,_0x4137b1,_0x3616cc,_0x345b03,_0x949460){const _0x1d9770=_0x6e67a4;super(),u(this,_0x1d9770(0x1ae),new _0x59d67a(_0x1d9770(0x1b0))),u(this,_0x1d9770(0x18d),this[_0x1d9770(0x1ae)][_0x1d9770(0x1c3)]()),u(this,_0x1d9770(0x1b2),!0x1),u(this,_0x1d9770(0x197),null),u(this,_0x1d9770(0x1e2),null),(this[_0x1d9770(0x1bb)]=_0x1a51d7,this['_collabSession']=_0x4137b1,this['_configService']=_0x3616cc,this[_0x1d9770(0x226)]=_0x345b03,this[_0x1d9770(0x192)]=_0x949460);}get[_0x6e67a4(0x214)](){const _0x1eece5=_0x6e67a4;return this[_0x1eece5(0x1ae)][_0x1eece5(0x20f)]();}[_0x6e67a4(0x1af)](){const _0x151978=_0x6e67a4;var _0x166243;(_0x166243=this[_0x151978(0x197)])==null||_0x166243[_0x151978(0x1af)](),this[_0x151978(0x1ae)][_0x151978(0x20e)](_0x151978(0x1b0)),this['_status$'][_0x151978(0x1e7)]();}[_0x6e67a4(0x213)](){const _0x209dde=_0x6e67a4;return this[_0x209dde(0x214)];}['init'](){const _0x5efdc0=_0x6e67a4;this[_0x5efdc0(0x1b2)]||(this[_0x5efdc0(0x1b2)]=!0x0,this[_0x5efdc0(0x1e4)]['sessionStatus$'][_0x5efdc0(0x1c0)](_0x5448c3(this[_0x5efdc0(0x21b)]))['subscribe'](_0xd000d6=>{const _0x3d3278=_0x5efdc0;switch(_0xd000d6){case _0x4753ef['OFFLINE']:this[_0x3d3278(0x203)]();break;case _0x4753ef[_0x3d3278(0x21f)]:this[_0x3d3278(0x1c7)]();break;}}),this[_0x5efdc0(0x1e4)][_0x5efdc0(0x1a6)]['pipe'](_0x5448c3(this[_0x5efdc0(0x21b)]))[_0x5efdc0(0x1c2)](_0x5df548=>{const _0x272f25=_0x5efdc0,{eventID:_0x576b41}=_0x5df548;switch(_0x576b41){case _0x94e1b3['LIVESHARE_NEW_HOST']:this[_0x272f25(0x1d6)](_0x5df548);break;case _0x94e1b3[_0x272f25(0x229)]:this[_0x272f25(0x1b9)](_0x5df548);break;case _0x94e1b3['LIVESHARE_TERMINATE']:this[_0x272f25(0x19c)]();break;case _0x94e1b3['NEW_CHANGESETS']:this[_0x272f25(0x22d)](_0x5df548);break;}}));}[_0x6e67a4(0x1fb)](){const _0x51c154=_0x6e67a4;this[_0x51c154(0x1e4)][_0x51c154(0x201)]({'eventID':_0x94e1b3[_0x51c154(0x1dd)],'data':{'unitID':this[_0x51c154(0x1bb)],'userID':this['_collabSession'][_0x51c154(0x1a9)]()}},this[_0x51c154(0x1bb)]);}[_0x6e67a4(0x1a0)](){const _0x1be6e6=_0x6e67a4;this[_0x1be6e6(0x214)]==='presenting'&&(this[_0x1be6e6(0x1ae)][_0x1be6e6(0x20e)]('idle'),this['_collabSession'][_0x1be6e6(0x201)]({'eventID':_0x94e1b3[_0x1be6e6(0x206)],'data':{'unitID':this[_0x1be6e6(0x1bb)]}},this[_0x1be6e6(0x1bb)]));}['startFollowing'](){const _0x3970fc=_0x6e67a4;this['_status']==='not-following'&&(this[_0x3970fc(0x1ae)][_0x3970fc(0x20e)](_0x3970fc(0x1ff)),this['_startFollowing']());}[_0x6e67a4(0x1cb)](){const _0x1f02d9=_0x6e67a4;this[_0x1f02d9(0x214)]===_0x1f02d9(0x1ff)&&this[_0x1f02d9(0x191)]();}[_0x6e67a4(0x1d6)](_0x2f5781){const _0x1a0bd0=_0x6e67a4,{presenter:_0x58ec53}=_0x2f5781['data'],_0x272f60=this[_0x1a0bd0(0x1e4)][_0x1a0bd0(0x1a9)]();this[_0x1a0bd0(0x1e2)]=_0x58ec53,_0x58ec53===_0x272f60?(this[_0x1a0bd0(0x191)](),this[_0x1a0bd0(0x1ea)]()):this['_status']!==_0x1a0bd0(0x1dc)&&(this[_0x1a0bd0(0x220)](),this['_startFollowing']());}['_fetchOperations'](){const _0x74075=_0x6e67a4,_0x20508e={'eventID':_0x94e1b3['LIVESHARE_FETCH_OPERATIONS']};this[_0x74075(0x1e4)][_0x74075(0x201)](_0x20508e,this['_unitID']);}[_0x6e67a4(0x19c)](){const _0x4f9fd9=_0x6e67a4;this[_0x4f9fd9(0x1e2)]=null,this['_status']!=='presenting'&&this[_0x4f9fd9(0x1e5)]();}[_0x6e67a4(0x22d)](_0x183c55){const _0x60be10=_0x6e67a4;if(this[_0x60be10(0x214)]===_0x60be10(0x1ff)&&this[_0x60be10(0x1e2)]===_0x183c55['data'][_0x60be10(0x225)]){const _0x579918=_0x479ed7(_0x183c55[_0x60be10(0x1a5)])[_0x60be10(0x21e)][_0x60be10(0x205)]()[_0x60be10(0x22a)](_0x183422=>_0x183422['id']===_0x17d247['id']);if(_0x579918){const _0x534541=_0x579918[_0x60be10(0x21d)][_0x60be10(0x19f)],_0x41f561=_0x579918[_0x60be10(0x21d)][_0x60be10(0x1f1)]['id'];setTimeout(()=>{const _0x7c951d=_0x60be10;this[_0x7c951d(0x192)][_0x7c951d(0x1e8)](_0x553e77['id'],{'unitId':_0x534541,'subUnitId':_0x41f561},{'fromCollab':!0x0});});}}}[_0x6e67a4(0x1ea)](){const _0x242a5d=_0x6e67a4;this[_0x242a5d(0x1ae)][_0x242a5d(0x20e)]('presenting');const _0x144f5f=new Map(),_0x5960bc=this[_0x242a5d(0x197)]=new _0x2a5811();_0x5960bc[_0x242a5d(0x1ba)](_0xe2a356(()=>{const _0xd475c9=_0x242a5d;_0x144f5f['forEach'](_0x30b0e2=>_0x30b0e2['complete']()),_0x144f5f[_0xd475c9(0x227)]();})),_0x5960bc[_0x242a5d(0x1ba)](this[_0x242a5d(0x192)][_0x242a5d(0x228)](_0x7d118a=>{const _0x54a176=_0x242a5d;var _0x521726;if(_0x7d118a['type']!==_0x14388b[_0x54a176(0x196)]||!this[_0x54a176(0x226)][_0x54a176(0x1bc)](_0x7d118a['id']))return;const {id:_0x499adb}=_0x7d118a;let _0x244347;_0x144f5f['has'](_0x499adb)?_0x244347=_0x144f5f[_0x54a176(0x1bd)](_0x499adb):(_0x244347=new _0x51c7e2(),_0x144f5f[_0x54a176(0x1ca)](_0x499adb,_0x244347),_0x244347[_0x54a176(0x1c0)](_0x35eda6((_0x521726=this[_0x54a176(0x1d5)][_0x54a176(0x1ee)](Ce))!=null?_0x521726:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x54a176(0x1c2)](_0x2fcf0b=>{const _0x4ea18c=_0x54a176;this[_0x4ea18c(0x1e4)][_0x4ea18c(0x201)]({'eventID':_0x94e1b3[_0x4ea18c(0x229)],'data':{'unitID':this[_0x4ea18c(0x1bb)],'operations':{[_0x2fcf0b['id']]:{'id':_0x2fcf0b['id'],'params':JSON[_0x4ea18c(0x1c8)](_0x2fcf0b[_0x4ea18c(0x21d)])}}}},this[_0x4ea18c(0x1bb)]);})),_0x244347[_0x54a176(0x20e)](_0x7d118a);})),this[_0x242a5d(0x226)][_0x242a5d(0x1b4)](this[_0x242a5d(0x1bb)])[_0x242a5d(0x1c9)](_0x1f5e6d=>this[_0x242a5d(0x1e4)][_0x242a5d(0x201)]({'eventID':_0x94e1b3[_0x242a5d(0x229)],'data':{'unitID':this[_0x242a5d(0x1bb)],'operations':{[_0x1f5e6d['id']]:{'id':_0x1f5e6d['id'],'params':JSON[_0x242a5d(0x1c8)](_0x1f5e6d['params'])}}}},this[_0x242a5d(0x1bb)]));}[_0x6e67a4(0x220)](){const _0x322e4a=_0x6e67a4;var _0x2f9ec0;this[_0x322e4a(0x1ae)]['next'](_0x322e4a(0x1b0)),(_0x2f9ec0=this[_0x322e4a(0x197)])==null||_0x2f9ec0[_0x322e4a(0x1af)](),this['_commandDisposable']=null;}[_0x6e67a4(0x18b)](){const _0x2b4a13=_0x6e67a4;var _0x282bb3;(_0x282bb3=this['_commandDisposable'])==null||_0x282bb3[_0x2b4a13(0x1af)](),this[_0x2b4a13(0x1ae)][_0x2b4a13(0x20e)](_0x2b4a13(0x1ff));}[_0x6e67a4(0x1e5)](){const _0x355b1a=_0x6e67a4;var _0x1399e9;this[_0x355b1a(0x1ae)]['next'](_0x355b1a(0x1b0)),(_0x1399e9=this[_0x355b1a(0x197)])==null||_0x1399e9[_0x355b1a(0x1af)](),this[_0x355b1a(0x197)]=null;}['_stopFollowing'](){const _0x1f97b1=_0x6e67a4;var _0x5e4309;this['_status$'][_0x1f97b1(0x20e)]('not-following'),(_0x5e4309=this[_0x1f97b1(0x197)])==null||_0x5e4309[_0x1f97b1(0x1af)]();}[_0x6e67a4(0x1b9)](_0x291186){const _0x38cb5c=_0x6e67a4;if([_0x38cb5c(0x219),_0x38cb5c(0x1dc),'offline'][_0x38cb5c(0x1cf)](this['_status'])||!_0x291186['data']['presenter']||_0x291186[_0x38cb5c(0x1a5)][_0x38cb5c(0x1ce)]===this[_0x38cb5c(0x1e4)][_0x38cb5c(0x1a9)]())return;this[_0x38cb5c(0x214)]==='idle'&&this[_0x38cb5c(0x18b)]();const _0x11e332=_0x291186['data'][_0x38cb5c(0x223)];Object['values'](_0x11e332)['forEach'](_0x8f062d=>{const _0x1b1ba0=_0x38cb5c;this[_0x1b1ba0(0x192)][_0x1b1ba0(0x1e8)](_0x8f062d['id'],_0x8f062d['params']?JSON[_0x1b1ba0(0x1c5)](_0x8f062d['params']):null,{'fromCollab':!0x0});});}[_0x6e67a4(0x203)](){const _0x3b9818=_0x6e67a4;var _0x1088e4;this[_0x3b9818(0x1ae)][_0x3b9818(0x20e)]('offline'),(_0x1088e4=this[_0x3b9818(0x197)])==null||_0x1088e4[_0x3b9818(0x1af)]();}['_handleOnline'](){const _0x4c966a=_0x6e67a4;this[_0x4c966a(0x1ae)][_0x4c966a(0x20e)](_0x4c966a(0x1b0)),this['_fetchOperations']();}};N=Y([_(0x2,_0x3f6d6e),_(0x3,_0x59f7c6(L)),_(0x4,_0x3ed8d7)],N);function Le(){const _0x3075e7=_0x6e67a4,_0x41fa16=_0xdbbe5b(S),_0xfe4fc7=_0xdbbe5b(_0x429aae),_0x42ec3e=_0x1621e2(()=>_0xfe4fc7[_0x3075e7(0x22b)](_0x118f42[_0x3075e7(0x1e6)]),void 0x0,!0x1,[]),[_0x2f7f74,_0x514388]=_0x5d950b(null),[_0x31226b,_0x167c93]=_0x5d950b(c[_0x3075e7(0x1ac)]),_0xfdf92a=_0x482ed3(null);return _0x52f42a(()=>(_0x42ec3e&&_0x41fa16['getLiveShareCoordinator'](_0x42ec3e['getUnitId']())[_0x3075e7(0x1e3)](_0x87f068=>{const _0x4da179=_0x3075e7;_0x514388(_0x87f068),_0xfdf92a[_0x4da179(0x1fd)]=_0x87f068[_0x4da179(0x18d)][_0x4da179(0x1c2)](_0x3939ef=>{_0x167c93(_0x3939ef);});}),()=>{const _0x21c17e=_0x3075e7;var _0x54838c;(_0x54838c=_0xfdf92a['current'])==null||_0x54838c[_0x21c17e(0x200)](),_0xfdf92a[_0x21c17e(0x1fd)]=null;}),[_0x42ec3e,_0x41fa16]),_0x2f7f74?_0x2ca373(_0x2a1e6e,{'align':_0x3075e7(0x198),'disabled':_0x31226b===c[_0x3075e7(0x216)],'className':_0x3075e7(0x1eb),'overlay':_0x2ca373(Re,{'status':_0x31226b,'coordinator':_0x2f7f74}),'children':_0x2ca373(_0x3075e7(0x1bf),{'className':_0x8ac4ff(_0x3075e7(0x217),{'univer-cursor-not-allowed':_0x31226b===c[_0x3075e7(0x216)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x31226b!==c[_0x3075e7(0x216)]}),'type':_0x3075e7(0x1bf),'children':_0x2ca373(W,{'className':_0x3075e7(0x1db)})})}):null;}function _0x135d(_0x504359,_0x1f5a82){_0x504359=_0x504359-0x186;const _0x4234cc=_0x4234();let _0x135dae=_0x4234cc[_0x504359];return _0x135dae;}function Re(_0x44459b){const _0x58cf5d=_0x6e67a4,{status:_0x382924,coordinator:_0x378098}=_0x44459b;switch(_0x382924){case c['IDLE']:return _0x2ca373($e,{'coordinator':_0x378098});case c[_0x58cf5d(0x1d3)]:return _0x2ca373(xe,{'coordinator':_0x378098});case c[_0x58cf5d(0x1d4)]:return _0x2ca373(Pe,{'coordinator':_0x378098});case c[_0x58cf5d(0x216)]:return _0x2ca373(Te,{});case c[_0x58cf5d(0x1da)]:return _0x2ca373(Ae,{'coordinator':_0x378098});default:return null;}}function $e(_0x20c0c7){const _0x43e1a7=_0x6e67a4,{coordinator:_0x2d1058}=_0x20c0c7;return _0xbe0ce5(_0x511b38,{'children':[_0x2ca373('div',{'className':_0x43e1a7(0x1e0),'children':_0x43e1a7(0x22f)}),_0x2ca373(_0x29989c,{'onClick':()=>_0x2d1058['tryStartPresenting'](),'children':_0x43e1a7(0x19e)})]});}function xe(_0xcdda64){const _0x5bb45d=_0x6e67a4,{coordinator:_0x1cd96b}=_0xcdda64;return _0xbe0ce5(_0x511b38,{'children':[_0x2ca373('div',{'className':_0x5bb45d(0x1e0),'children':_0x5bb45d(0x1fc)}),_0x2ca373(_0x29989c,{'onClick':()=>_0x1cd96b[_0x5bb45d(0x1cb)](),'children':_0x5bb45d(0x1de)})]});}function Pe(_0x5863f7){const _0x58b85d=_0x6e67a4,{coordinator:_0x1f9cec}=_0x5863f7;return _0xbe0ce5(_0x511b38,{'children':[_0x2ca373(_0x58b85d(0x18f),{'className':_0x58b85d(0x1e0),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2ca373(_0x29989c,{'variant':'text','onClick':()=>_0x1f9cec[_0x58b85d(0x1f7)](),'children':_0x58b85d(0x1f4)})]});}function Ae(_0x9d692b){const _0x5cb381=_0x6e67a4,{coordinator:_0x893fd4}=_0x9d692b;return _0xbe0ce5(_0x511b38,{'children':[_0x2ca373(_0x5cb381(0x18f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5cb381(0x1fe)}),_0x2ca373(_0x29989c,{'variant':_0x5cb381(0x1a7),'onClick':()=>_0x893fd4[_0x5cb381(0x1a0)](),'children':_0x5cb381(0x211)})]});}function Te(){const _0x48e452=_0x6e67a4;return _0x2ca373(_0x511b38,{'children':_0x48e452(0x195)});}var Fe=Object[_0x6e67a4(0x1ec)],He=(_0x156559,_0x2d2eb3,_0x3fc83f,_0x5ebf5c)=>{const _0x14506f=_0x6e67a4;for(var _0x17ab58=_0x5ebf5c>0x1?void 0x0:_0x5ebf5c?Fe(_0x2d2eb3,_0x3fc83f):_0x2d2eb3,_0x5198c7=_0x156559[_0x14506f(0x18a)]-0x1,_0x4062e8;_0x5198c7>=0x0;_0x5198c7--)(_0x4062e8=_0x156559[_0x5198c7])&&(_0x17ab58=_0x4062e8(_0x17ab58)||_0x17ab58);return _0x17ab58;},A=(_0x2b0a5a,_0x1630a7)=>(_0x5d54eb,_0x4ff6e1)=>_0x1630a7(_0x5d54eb,_0x4ff6e1,_0x2b0a5a);let m=class extends _0x5e24bb{constructor(_0x1182c4,_0x631c45){const _0x588ab3=_0x6e67a4;super(),this[_0x588ab3(0x1b8)]=_0x1182c4,this[_0x588ab3(0x209)]=_0x631c45,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x4f05c0=_0x6e67a4;this['disposeWithMe'](this[_0x4f05c0(0x209)][_0x4f05c0(0x22c)](_0x47949f[_0x4f05c0(0x1f5)],()=>_0x296dfc(Le,this['_injector'])));}};m=He([A(0x0,_0x59f7c6(_0x4531be)),A(0x1,_0x27b447)],m);const ye=_0x6e67a4(0x1aa),T={};function _0x4234(){const _0x58ace9=['registerComponent','_handleNewChangeSets','3ZJPFKY','Present\x20this\x20document','colorChannel1','LiveShareIcon','delete','type','length','_startFollowing','594696pOVxRm','status$','0\x200\x2017\x2017','div','registerSharedOperation','_stopFollowing','_commandService','UNIVER_LIVE_SHARE_PLUGIN','override','You\x27are\x20offline.','OPERATION','_commandDisposable','end','random','disposeWithMe','5yrCRed','_handleTerminate','_sharedOperations','Start','unitId','stopPresenting','displayName','_entities','entries','symbol','data','event$','default','485490pqUUdB','getMemberID','live-share.config','has','IDLE','svg','_status$','dispose','idle','getLiveShareCoordinator','_init','3394746sRIDjU','getInitialStates','children','use','mask','_injector','_handleOperation','add','_unitID','shouldShareOperation','get','defineProperty','button','pipe','from','subscribe','asObservable','getTypeOfUnitDisposed$','parse','xlink:href','_handleOnline','stringify','forEach','set','stopFollowing','_reporters','string','presenter','includes','tag','requireSession','evenodd','FOLLOWING','NOT_FOLLOWING','_configService','_handleNewHost','currentColor','1em','substring','PRESENTING','univer-size-4','not-following','LIVESHARE_REQUEST_HOST','Stop\x20following','getUnitId','univer-mb-3\x20univer-w-full\x20univer-text-sm','defs','_presenter','then','_collabSession','_beIdle','UNIVER_SHEET','complete','executeCommand','idSuffix','_startPresenting','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','getOwnPropertyDescriptor','524128cuqhrt','getConfig','univerjs-icon\x20univerjs-icon-','offline','sheet','635140DFbyiI','init','Start\x20following','HEADER_MENU','2621020btxZtJ','startFollowing','pluginName','map','trim','tryStartPresenting','You\x27re\x20following\x20the\x20presenter','current','You\x27re\x20presenting\x20the\x20document','following','unsubscribe','send','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','_handleOffline','19644BGGqJL','reverse','LIVESHARE_TERMINATE','_startLiveShareCoordinator','path','_uiPartsService','_univerInstanceService','http://www.w3.org/2000/svg','defIds','attrs','next','getValue','_collabSessionService','Stop\x20presenting','toString','getStatus','_status','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','OFFLINE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_config','presenting','21ENHpxJ','dispose$','fill','params','mutations','ONLINE','_stopPresenting','createInstance','getTypeOfUnitAdded$','operations','registerInitialStateReporter','memberID','_liveShareService','clear','onCommandExecuted','LIVESHARE_OPERATION','find','getCurrentTypeOfUnit$'];_0x4234=function(){return _0x58ace9;};return _0x4234();}var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x3d8a60,_0x28db47,_0x139ea8,_0x2063df)=>{const _0x36d01c=_0x6e67a4;for(var _0x4529f6=_0x2063df>0x1?void 0x0:_0x2063df?Ue(_0x28db47,_0x139ea8):_0x28db47,_0x4a271c=_0x3d8a60[_0x36d01c(0x18a)]-0x1,_0x58a25e;_0x4a271c>=0x0;_0x4a271c--)(_0x58a25e=_0x3d8a60[_0x4a271c])&&(_0x4529f6=_0x58a25e(_0x4529f6)||_0x4529f6);return _0x4529f6;},je=(_0x17a460,_0x1d08af)=>(_0x4195dd,_0x59a097)=>_0x1d08af(_0x4195dd,_0x59a097,_0x17a460);let I=class extends _0x5e24bb{constructor(_0x169bce){const _0x1a264c=_0x6e67a4;super(),this['_liveShareService']=_0x169bce,this[_0x1a264c(0x1b2)]();}[_0x6e67a4(0x1b2)](){const _0x173351=_0x6e67a4;[_0x13aa72['id'],_0x4e9adb['id'],_0x553e77['id']][_0x173351(0x1c9)](_0x359c56=>{const _0x3ae2c6=_0x173351;this[_0x3ae2c6(0x19a)](this[_0x3ae2c6(0x226)]['registerSharedOperation'](_0x359c56));});}};I=Ve([je(0x0,_0x59f7c6(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x492f5b,_0x530f7a,_0x5b619e)=>_0x530f7a in _0x492f5b?Me(_0x492f5b,_0x530f7a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b619e}):_0x492f5b[_0x530f7a]=_0x5b619e,We=(_0x15f183,_0x2980e6,_0x4b483e,_0x576d45)=>{const _0x28e8cb=_0x6e67a4;for(var _0x88ee99=_0x576d45>0x1?void 0x0:_0x576d45?ke(_0x2980e6,_0x4b483e):_0x2980e6,_0x48bae3=_0x15f183[_0x28e8cb(0x18a)]-0x1,_0x2566cf;_0x48bae3>=0x0;_0x48bae3--)(_0x2566cf=_0x15f183[_0x48bae3])&&(_0x88ee99=_0x2566cf(_0x88ee99)||_0x88ee99);return _0x88ee99;},F=(_0x9e523f,_0x43ee28)=>(_0x3d3fc7,_0x420bd6)=>_0x43ee28(_0x3d3fc7,_0x420bd6,_0x9e523f),B=(_0x37b214,_0x3d7f1f,_0x22a0e8)=>Ge(_0x37b214,typeof _0x3d7f1f!=_0x6e67a4(0x1a4)?_0x3d7f1f+'':_0x3d7f1f,_0x22a0e8);const Ye=_0x6e67a4(0x193);let b=class extends _0x5cd1de{constructor(_0x153859=T,_0x562ddc,_0x5a18ec){const _0x108598=_0x6e67a4;super(),this[_0x108598(0x218)]=_0x153859,this[_0x108598(0x1b8)]=_0x562ddc,this[_0x108598(0x1d5)]=_0x5a18ec;const {..._0x7ee6ec}=_0x727060({},T,this[_0x108598(0x218)]);this[_0x108598(0x1d5)]['setConfig'](ye,_0x7ee6ec);}['onStarting'](){const _0x39e603=_0x6e67a4;_0x28a48e(this[_0x39e603(0x1b8)],_0x357330([[L],[S],[I],[m]],this[_0x39e603(0x218)][_0x39e603(0x194)])),_0x25c3b0(this[_0x39e603(0x1b8)],[[I]]);}['onRendered'](){const _0x570ca8=_0x6e67a4;_0x25c3b0(this[_0x570ca8(0x1b8)],[[m]]);}};B(b,_0x6e67a4(0x189),_0x118f42['UNIVER_UNKNOWN']),B(b,_0x6e67a4(0x1f8),Ye),b=We([_0xe1d233(_0x4a1e33),F(0x1,_0x59f7c6(_0x4531be)),F(0x2,_0x3f6d6e)],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 _0x203051=_0x467a;(function(_0x528687,_0xc4d998){const _0x1b4ca4=_0x467a,_0x2cd89c=_0x528687();while(!![]){try{const _0x48f0d0=parseInt(_0x1b4ca4(0x20d))/0x1*(-parseInt(_0x1b4ca4(0x27e))/0x2)+-parseInt(_0x1b4ca4(0x253))/0x3+parseInt(_0x1b4ca4(0x23e))/0x4*(-parseInt(_0x1b4ca4(0x240))/0x5)+parseInt(_0x1b4ca4(0x238))/0x6+-parseInt(_0x1b4ca4(0x1e1))/0x7+parseInt(_0x1b4ca4(0x1e7))/0x8+-parseInt(_0x1b4ca4(0x24e))/0x9*(-parseInt(_0x1b4ca4(0x227))/0xa);if(_0x48f0d0===_0xc4d998)break;else _0x2cd89c['push'](_0x2cd89c['shift']());}catch(_0x4534cd){_0x2cd89c['push'](_0x2cd89c['shift']());}}}(_0x53e2,0x6fbbb));var J=Object[_0x203051(0x1ed)],K=(_0x3a4f01,_0xc9536b,_0x6cd13a)=>_0xc9536b in _0x3a4f01?J(_0x3a4f01,_0xc9536b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6cd13a}):_0x3a4f01[_0xc9536b]=_0x6cd13a,u=(_0x3a0c7a,_0x4b7de3,_0x4d807c)=>K(_0x3a0c7a,typeof _0x4b7de3!=_0x203051(0x203)?_0x4b7de3+'':_0x4b7de3,_0x4d807c);import{Disposable as _0x2fa88b,toDisposable as _0x4d0dd4,IUniverInstanceService as _0xfb97b7,Inject as _0x41344e,Injector as _0x247233,IConfigService as _0x59bacf,ICommandService as _0x16bfa6,RxDisposable as _0x319545,UniverInstanceType as _0xf4b6a6,DisposableCollection as _0x32a659,CommandType as _0x37b1fc,DependentOn as _0x352a09,Plugin as _0x2461be,merge as _0xbbecdb,registerDependencies as _0x3077e0,mergeOverrideWithDependencies as _0x1e8f39,touchDependencies as _0x207751}from'@univerjs/core';import{useDependency as _0x445413,useObservable as _0x3f7cfd,IUIPartsService as _0x1f7073,BuiltInUIPart as _0x2bf13e,connectInjector as _0x2b9143}from'@univerjs/ui';import{jsx as _0x4cbb7b,jsxs as _0xbc9c89,Fragment as _0x5c324a}from'react/jsx-runtime';import{Dropdown as _0x356893,clsx as _0x350e56,Button as _0x1aa64c}from'@univerjs/design';import{useRef as _0x518592,createElement as _0x54dd1c,forwardRef as _0x3d1652,useState as _0x1d0405,useEffect as _0x558e55}from'react';import{CollaborationEvent as _0x378720,parseProtocolChangeset as _0xb845cb}from'@univerjs-pro/collaboration';function _0x467a(_0x26cba8,_0x572d7e){_0x26cba8=_0x26cba8-0x1e0;const _0x53e246=_0x53e2();let _0x467a51=_0x53e246[_0x26cba8];return _0x467a51;}import{CollaborationSessionService as _0x202fa1,SessionStatus as _0x61eb11,UniverCollaborationClientPlugin as _0x5c1f28}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x126909,SetWorksheetActiveOperation as _0x38d630}from'@univerjs/sheets';import{BehaviorSubject as _0xf60712,Subject as _0x3f6d0b}from'rxjs';import{takeUntil as _0xccce48,throttleTime as _0x471bc5}from'rxjs/operators';import{SetZoomRatioOperation as _0x4a5670,SetScrollOperation as _0x23916f}from'@univerjs/sheets-ui';function k({ref:_0x39378a,..._0xbc3b37}){const _0xb74e72=_0x203051,{icon:_0x107141,id:_0x154d72,className:_0x9e8f43,extend:_0x3d2e92,..._0xe4afc6}=_0xbc3b37,_0x1cb7a3=(_0xb74e72(0x26f)+_0x154d72+'\x20'+(_0x9e8f43||''))[_0xb74e72(0x24c)](),_0x42c5b3=_0x518592('_'+Oe());return G(_0x107141,''+_0x154d72,{'defIds':_0x107141[_0xb74e72(0x1f8)],'idSuffix':_0x42c5b3[_0xb74e72(0x246)]},{'ref':_0x39378a,'className':_0x1cb7a3,..._0xe4afc6},_0x3d2e92);}function G(_0x2ef2d0,_0x16e97f,_0x2cd959,_0x506b97,_0x3d1f9f){const _0x4597f1=_0x203051;return _0x54dd1c(_0x2ef2d0[_0x4597f1(0x201)],{'key':_0x16e97f,...be(_0x2ef2d0,_0x2cd959,_0x3d1f9f),..._0x506b97},(Ee(_0x2ef2d0,_0x2cd959)[_0x4597f1(0x1e4)]||[])[_0x4597f1(0x226)]((_0x1e44a6,_0x37d13d)=>G(_0x1e44a6,_0x16e97f+'-'+_0x2ef2d0[_0x4597f1(0x201)]+'-'+_0x37d13d,_0x2cd959,void 0x0,_0x3d1f9f)));}function be(_0x52aa23,_0x4ef3a7,_0x421fcb){const _0x56d54a=_0x203051,_0x157aff={..._0x52aa23[_0x56d54a(0x243)]};_0x421fcb!=null&&_0x421fcb[_0x56d54a(0x1ee)]&&_0x157aff[_0x56d54a(0x279)]==='colorChannel1'&&(_0x157aff[_0x56d54a(0x279)]=_0x421fcb[_0x56d54a(0x1ee)]),_0x52aa23[_0x56d54a(0x201)]===_0x56d54a(0x24f)&&_0x157aff['id']&&(_0x157aff['id']=_0x157aff['id']+_0x4ef3a7[_0x56d54a(0x22d)]),Object[_0x56d54a(0x1e3)](_0x157aff)['forEach'](([_0x140d42,_0x255006])=>{const _0x1806c9=_0x56d54a;_0x140d42===_0x1806c9(0x24f)&&typeof _0x255006=='string'&&(_0x157aff[_0x140d42]=_0x255006[_0x1806c9(0x202)](/url\(#(.*)\)/,_0x1806c9(0x25b)+_0x4ef3a7[_0x1806c9(0x22d)]+')'));});const {defIds:_0x1e5e20}=_0x4ef3a7;return!_0x1e5e20||_0x1e5e20['length']===0x0||(_0x52aa23[_0x56d54a(0x201)]==='use'&&_0x157aff[_0x56d54a(0x266)]&&(_0x157aff[_0x56d54a(0x266)]=_0x157aff[_0x56d54a(0x266)]+_0x4ef3a7['idSuffix']),Object[_0x56d54a(0x1e3)](_0x157aff)[_0x56d54a(0x242)](([_0x23d416,_0x564ed0])=>{const _0x4da982=_0x56d54a;typeof _0x564ed0==_0x4da982(0x1ec)&&(_0x157aff[_0x23d416]=_0x564ed0[_0x4da982(0x202)](/url\(#(.*)\)/,'url(#$1'+_0x4ef3a7[_0x4da982(0x22d)]+')'));})),_0x157aff;}function Ee(_0x1b288a,_0x508e17){const _0x251593=_0x203051;var _0x58dc02;const {defIds:_0x5a739c}=_0x508e17;return!_0x5a739c||_0x5a739c['length']===0x0?_0x1b288a:_0x1b288a[_0x251593(0x201)]===_0x251593(0x284)&&((_0x58dc02=_0x1b288a[_0x251593(0x1e4)])!=null&&_0x58dc02[_0x251593(0x270)])?{..._0x1b288a,'children':_0x1b288a[_0x251593(0x1e4)]['map'](_0x148afb=>typeof _0x148afb[_0x251593(0x243)]['id']=='string'&&_0x5a739c&&_0x5a739c[_0x251593(0x20f)](_0x148afb['attrs']['id'])?{..._0x148afb,'attrs':{..._0x148afb[_0x251593(0x243)],'id':_0x148afb['attrs']['id']+_0x508e17['idSuffix']}}:_0x148afb)}:_0x1b288a;}function Oe(){const _0x406498=_0x203051;return Math[_0x406498(0x21d)]()[_0x406498(0x206)](0x24)[_0x406498(0x21b)](0x2,0x8);}k[_0x203051(0x21e)]=_0x203051(0x21a);const we={'tag':_0x203051(0x249),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x203051(0x248),'width':_0x203051(0x274),'height':_0x203051(0x274)},'children':[{'tag':_0x203051(0x20b),'attrs':{'fill':_0x203051(0x23c),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x203051(0x258),'fillRule':_0x203051(0x26e),'clipRule':_0x203051(0x26e)}}]},W=_0x3d1652(function(_0x502405,_0x2620af){const _0x516cd2=_0x203051;return _0x54dd1c(k,Object[_0x516cd2(0x1f2)]({},_0x502405,{'id':'live-share-icon','ref':_0x2620af,'icon':we}));});W['displayName']=_0x203051(0x26c);class L extends _0x2fa88b{constructor(){const _0x1fc9fc=_0x203051;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x1fc9fc(0x22f),new Set());}[_0x203051(0x22a)](_0x580794){const _0x5ad8f0=_0x203051;return this[_0x5ad8f0(0x200)][_0x5ad8f0(0x263)](_0x580794),_0x4d0dd4(()=>this[_0x5ad8f0(0x200)][_0x5ad8f0(0x20a)](_0x580794));}[_0x203051(0x1f7)](_0x4ec929){const _0x554514=_0x203051;return this[_0x554514(0x22f)][_0x554514(0x263)](_0x4ec929),_0x4d0dd4(()=>this['_reporters'][_0x554514(0x20a)](_0x4ec929));}[_0x203051(0x256)](_0x54561d){const _0x21a75b=_0x203051;return this[_0x21a75b(0x200)][_0x21a75b(0x1f1)](_0x54561d);}[_0x203051(0x239)](_0xab4032){const _0x371423=_0x203051;return Array[_0x371423(0x236)](this[_0x371423(0x22f)])[_0x371423(0x226)](_0x589ba1=>_0x589ba1(_0xab4032));}}var Ne=Object[_0x203051(0x20e)],Y=(_0x34ef8c,_0x257cf9,_0x21e8ad,_0x21b265)=>{const _0x51a789=_0x203051;for(var _0x113753=_0x21b265>0x1?void 0x0:_0x21b265?Ne(_0x257cf9,_0x21e8ad):_0x257cf9,_0x41a0f7=_0x34ef8c[_0x51a789(0x270)]-0x1,_0x4508e4;_0x41a0f7>=0x0;_0x41a0f7--)(_0x4508e4=_0x34ef8c[_0x41a0f7])&&(_0x113753=_0x4508e4(_0x113753)||_0x113753);return _0x113753;},_=(_0x2b58e9,_0x44395f)=>(_0x49f7a9,_0x473407)=>_0x44395f(_0x49f7a9,_0x473407,_0x2b58e9);let S=class extends _0x319545{constructor(_0x3592b0,_0x5818e1,_0x5ddd67){const _0x1eaa54=_0x203051;super(),u(this,_0x1eaa54(0x1fe),new Map()),(this[_0x1eaa54(0x276)]=_0x3592b0,this[_0x1eaa54(0x27b)]=_0x5818e1,this[_0x1eaa54(0x1f5)]=_0x5ddd67,this[_0x1eaa54(0x280)]());}async[_0x203051(0x250)](_0x99b3e4){const _0x3f66d5=_0x203051;return this[_0x3f66d5(0x1fe)][_0x3f66d5(0x1f1)](_0x99b3e4)||await this['_startLiveShareCoordinator'](_0x99b3e4),this['_entities']['get'](_0x99b3e4);}[_0x203051(0x24d)](_0x4e428e){const _0x507789=_0x203051;var _0x23a415;return(_0x23a415=this[_0x507789(0x1fe)][_0x507789(0x1e0)](_0x4e428e))!=null?_0x23a415:null;}[_0x203051(0x280)](){const _0x204735=_0x203051;this[_0x204735(0x276)][_0x204735(0x283)](_0xf4b6a6[_0x204735(0x229)])[_0x204735(0x232)](_0xccce48(this[_0x204735(0x233)]))[_0x204735(0x1f4)](async _0x213e95=>{const _0x1851cf=_0x204735,_0x23f607=_0x213e95[_0x1851cf(0x25c)]();this[_0x1851cf(0x1fe)][_0x1851cf(0x1f1)](_0x23f607)||this[_0x1851cf(0x27c)](_0x23f607);}),this[_0x204735(0x276)][_0x204735(0x221)](_0xf4b6a6[_0x204735(0x229)])[_0x204735(0x232)](_0xccce48(this[_0x204735(0x233)]))[_0x204735(0x1f4)](_0x4eeff4=>{const _0x46231c=_0x204735,_0x3edf6c=_0x4eeff4['getUnitId'](),_0x1c1059=this[_0x46231c(0x1fe)]['get'](_0x3edf6c);_0x1c1059==null||_0x1c1059[_0x46231c(0x269)]();});}async[_0x203051(0x27c)](_0x35c2c7){const _0x2465fd=_0x203051,_0x2787e8=await this[_0x2465fd(0x1f5)][_0x2465fd(0x23f)](_0x35c2c7),_0x5b41a0=this['_injector']['createInstance'](N,_0x35c2c7,_0x2787e8);return _0x5b41a0[_0x2465fd(0x1eb)](),this[_0x2465fd(0x1fe)]['set'](_0x35c2c7,_0x5b41a0),_0x5b41a0;}};S=Y([_(0x0,_0xfb97b7),_(0x1,_0x41344e(_0x247233)),_(0x2,_0x41344e(_0x202fa1))],S);var c=(_0x3217b2=>(_0x3217b2['OFFLINE']=_0x203051(0x218),_0x3217b2[_0x203051(0x21f)]='idle',_0x3217b2[_0x203051(0x215)]=_0x203051(0x228),_0x3217b2[_0x203051(0x223)]=_0x203051(0x1ef),_0x3217b2[_0x203051(0x235)]='presenting',_0x3217b2))(c||{});const Ce=_0x203051(0x219),De=0xc8;let N=class extends _0x319545{constructor(_0x6c032f,_0x3f0c65,_0x52bbb6,_0x1d34dd,_0x57be91){const _0x20dfd0=_0x203051;super(),u(this,_0x20dfd0(0x1fb),new _0xf60712(_0x20dfd0(0x210))),u(this,_0x20dfd0(0x22b),this['_status$']['asObservable']()),u(this,_0x20dfd0(0x280),!0x1),u(this,_0x20dfd0(0x23b),null),u(this,_0x20dfd0(0x289),null),(this[_0x20dfd0(0x1f3)]=_0x6c032f,this[_0x20dfd0(0x212)]=_0x3f0c65,this[_0x20dfd0(0x264)]=_0x52bbb6,this[_0x20dfd0(0x222)]=_0x1d34dd,this['_commandService']=_0x57be91);}get['_status'](){const _0x519881=_0x203051;return this[_0x519881(0x1fb)][_0x519881(0x255)]();}[_0x203051(0x269)](){const _0x1d33cb=_0x203051;var _0x264949;(_0x264949=this[_0x1d33cb(0x23b)])==null||_0x264949['dispose'](),this[_0x1d33cb(0x1fb)][_0x1d33cb(0x26d)](_0x1d33cb(0x210)),this[_0x1d33cb(0x1fb)][_0x1d33cb(0x27d)]();}[_0x203051(0x27f)](){const _0x35b211=_0x203051;return this[_0x35b211(0x271)];}[_0x203051(0x1eb)](){const _0x997e05=_0x203051;this[_0x997e05(0x280)]||(this[_0x997e05(0x280)]=!0x0,this[_0x997e05(0x212)]['sessionStatus$'][_0x997e05(0x232)](_0xccce48(this[_0x997e05(0x233)]))['subscribe'](_0x4d3cda=>{const _0x2ccb1b=_0x997e05;switch(_0x4d3cda){case _0x61eb11[_0x2ccb1b(0x267)]:this[_0x2ccb1b(0x1fd)]();break;case _0x61eb11[_0x2ccb1b(0x241)]:this[_0x2ccb1b(0x251)]();break;}}),this[_0x997e05(0x212)][_0x997e05(0x23a)][_0x997e05(0x232)](_0xccce48(this[_0x997e05(0x233)]))[_0x997e05(0x1f4)](_0x18fd1f=>{const _0x31a252=_0x997e05,{eventID:_0x4a630f}=_0x18fd1f;switch(_0x4a630f){case _0x378720[_0x31a252(0x213)]:this[_0x31a252(0x245)](_0x18fd1f);break;case _0x378720[_0x31a252(0x287)]:this['_handleOperation'](_0x18fd1f);break;case _0x378720[_0x31a252(0x1e9)]:this[_0x31a252(0x1f9)]();break;case _0x378720['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x18fd1f);break;}}));}[_0x203051(0x252)](){const _0xdf0b86=_0x203051;this[_0xdf0b86(0x212)][_0xdf0b86(0x254)]({'eventID':_0x378720[_0xdf0b86(0x25e)],'data':{'unitID':this['_unitID'],'userID':this[_0xdf0b86(0x212)][_0xdf0b86(0x272)]()}},this['_unitID']);}[_0x203051(0x260)](){const _0x46223d=_0x203051;this[_0x46223d(0x271)]===_0x46223d(0x1e8)&&(this[_0x46223d(0x1fb)][_0x46223d(0x26d)]('idle'),this['_collabSession']['send']({'eventID':_0x378720[_0x46223d(0x1e9)],'data':{'unitID':this[_0x46223d(0x1f3)]}},this[_0x46223d(0x1f3)]));}[_0x203051(0x21c)](){const _0x3b6006=_0x203051;this[_0x3b6006(0x271)]===_0x3b6006(0x1ef)&&(this[_0x3b6006(0x1fb)][_0x3b6006(0x26d)]('following'),this[_0x3b6006(0x282)]());}[_0x203051(0x268)](){const _0xd742dc=_0x203051;this[_0xd742dc(0x271)]===_0xd742dc(0x228)&&this['_stopFollowing']();}[_0x203051(0x245)](_0x2f3ca8){const _0x5ad48f=_0x203051,{presenter:_0x5aba50}=_0x2f3ca8[_0x5ad48f(0x1ea)],_0x3ccae5=this[_0x5ad48f(0x212)]['getMemberID']();this[_0x5ad48f(0x289)]=_0x5aba50,_0x5aba50===_0x3ccae5?(this['_stopFollowing'](),this[_0x5ad48f(0x209)]()):this[_0x5ad48f(0x271)]!=='not-following'&&(this[_0x5ad48f(0x247)](),this[_0x5ad48f(0x282)]());}[_0x203051(0x224)](){const _0x5646a3=_0x203051,_0x3597b5={'eventID':_0x378720['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x5646a3(0x254)](_0x3597b5,this['_unitID']);}[_0x203051(0x1f9)](){const _0x5cfc49=_0x203051;this['_presenter']=null,this[_0x5cfc49(0x271)]!==_0x5cfc49(0x1e8)&&this['_beIdle']();}[_0x203051(0x277)](_0x3c2b7c){const _0x118e45=_0x203051;if(this[_0x118e45(0x271)]===_0x118e45(0x228)&&this[_0x118e45(0x289)]===_0x3c2b7c[_0x118e45(0x1ea)]['memberID']){const _0x55dad7=_0xb845cb(_0x3c2b7c['data'])[_0x118e45(0x204)][_0x118e45(0x261)]()[_0x118e45(0x27a)](_0x54e9c5=>_0x54e9c5['id']===_0x126909['id']);if(_0x55dad7){const _0x175866=_0x55dad7['params'][_0x118e45(0x262)],_0x3ba3cb=_0x55dad7[_0x118e45(0x265)][_0x118e45(0x275)]['id'];setTimeout(()=>{const _0x179aeb=_0x118e45;this['_commandService'][_0x179aeb(0x26a)](_0x38d630['id'],{'unitId':_0x175866,'subUnitId':_0x3ba3cb},{'fromCollab':!0x0});});}}}[_0x203051(0x209)](){const _0x5e8233=_0x203051;this[_0x5e8233(0x1fb)][_0x5e8233(0x26d)](_0x5e8233(0x1e8));const _0x107da6=new Map(),_0x1d477e=this['_commandDisposable']=new _0x32a659();_0x1d477e[_0x5e8233(0x263)](_0x4d0dd4(()=>{const _0x528587=_0x5e8233;_0x107da6[_0x528587(0x242)](_0x280608=>_0x280608[_0x528587(0x27d)]()),_0x107da6[_0x528587(0x230)]();})),_0x1d477e[_0x5e8233(0x263)](this[_0x5e8233(0x220)]['onCommandExecuted'](_0x5f1579=>{const _0x18529e=_0x5e8233;var _0x5806e0;if(_0x5f1579['type']!==_0x37b1fc[_0x18529e(0x20c)]||!this[_0x18529e(0x222)][_0x18529e(0x256)](_0x5f1579['id']))return;const {id:_0x41c47f}=_0x5f1579;let _0x22d9ef;_0x107da6[_0x18529e(0x1f1)](_0x41c47f)?_0x22d9ef=_0x107da6[_0x18529e(0x1e0)](_0x41c47f):(_0x22d9ef=new _0x3f6d0b(),_0x107da6[_0x18529e(0x237)](_0x41c47f,_0x22d9ef),_0x22d9ef[_0x18529e(0x232)](_0x471bc5((_0x5806e0=this[_0x18529e(0x264)][_0x18529e(0x1f0)](Ce))!=null?_0x5806e0:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x18529e(0x1f4)](_0x2b4d06=>{const _0xd1771e=_0x18529e;this[_0xd1771e(0x212)]['send']({'eventID':_0x378720[_0xd1771e(0x287)],'data':{'unitID':this[_0xd1771e(0x1f3)],'operations':{[_0x2b4d06['id']]:{'id':_0x2b4d06['id'],'params':JSON['stringify'](_0x2b4d06[_0xd1771e(0x265)])}}}},this[_0xd1771e(0x1f3)]);})),_0x22d9ef[_0x18529e(0x26d)](_0x5f1579);})),this[_0x5e8233(0x222)]['getInitialStates'](this[_0x5e8233(0x1f3)])[_0x5e8233(0x242)](_0x467fe4=>this[_0x5e8233(0x212)][_0x5e8233(0x254)]({'eventID':_0x378720[_0x5e8233(0x287)],'data':{'unitID':this[_0x5e8233(0x1f3)],'operations':{[_0x467fe4['id']]:{'id':_0x467fe4['id'],'params':JSON['stringify'](_0x467fe4[_0x5e8233(0x265)])}}}},this[_0x5e8233(0x1f3)]));}['_stopPresenting'](){const _0x2b7f69=_0x203051;var _0x5ed851;this[_0x2b7f69(0x1fb)][_0x2b7f69(0x26d)](_0x2b7f69(0x210)),(_0x5ed851=this[_0x2b7f69(0x23b)])==null||_0x5ed851[_0x2b7f69(0x269)](),this[_0x2b7f69(0x23b)]=null;}[_0x203051(0x282)](){const _0x15dee8=_0x203051;var _0x453604;(_0x453604=this[_0x15dee8(0x23b)])==null||_0x453604[_0x15dee8(0x269)](),this['_status$'][_0x15dee8(0x26d)](_0x15dee8(0x228));}[_0x203051(0x1ff)](){const _0x505683=_0x203051;var _0x382546;this[_0x505683(0x1fb)][_0x505683(0x26d)](_0x505683(0x210)),(_0x382546=this[_0x505683(0x23b)])==null||_0x382546['dispose'](),this['_commandDisposable']=null;}[_0x203051(0x26b)](){const _0x23b79a=_0x203051;var _0x290b16;this[_0x23b79a(0x1fb)]['next']('not-following'),(_0x290b16=this[_0x23b79a(0x23b)])==null||_0x290b16[_0x23b79a(0x269)]();}[_0x203051(0x207)](_0x2e5815){const _0x4cb2f9=_0x203051;if(['presenting',_0x4cb2f9(0x1ef),_0x4cb2f9(0x218)][_0x4cb2f9(0x20f)](this[_0x4cb2f9(0x271)])||!_0x2e5815[_0x4cb2f9(0x1ea)][_0x4cb2f9(0x273)]||_0x2e5815[_0x4cb2f9(0x1ea)][_0x4cb2f9(0x273)]===this[_0x4cb2f9(0x212)][_0x4cb2f9(0x272)]())return;this[_0x4cb2f9(0x271)]===_0x4cb2f9(0x210)&&this['_startFollowing']();const _0x49f5c1=_0x2e5815[_0x4cb2f9(0x1ea)][_0x4cb2f9(0x24a)];Object['values'](_0x49f5c1)[_0x4cb2f9(0x242)](_0x1daf99=>{const _0x5e07e0=_0x4cb2f9;this['_commandService'][_0x5e07e0(0x26a)](_0x1daf99['id'],_0x1daf99[_0x5e07e0(0x265)]?JSON['parse'](_0x1daf99[_0x5e07e0(0x265)]):null,{'fromCollab':!0x0});});}[_0x203051(0x1fd)](){const _0x594f46=_0x203051;var _0x527ba4;this['_status$'][_0x594f46(0x26d)](_0x594f46(0x218)),(_0x527ba4=this[_0x594f46(0x23b)])==null||_0x527ba4['dispose']();}[_0x203051(0x251)](){const _0x509c0f=_0x203051;this[_0x509c0f(0x1fb)][_0x509c0f(0x26d)]('idle'),this[_0x509c0f(0x224)]();}};N=Y([_(0x2,_0x59bacf),_(0x3,_0x41344e(L)),_(0x4,_0x16bfa6)],N);function Le(){const _0x5e929c=_0x203051,_0xe3db9f=_0x445413(S),_0x40b288=_0x445413(_0xfb97b7),_0xcfee85=_0x3f7cfd(()=>_0x40b288[_0x5e929c(0x205)](_0xf4b6a6[_0x5e929c(0x229)]),void 0x0,!0x1,[]),[_0x257578,_0x495be0]=_0x1d0405(null),[_0x3c3b08,_0x466324]=_0x1d0405(c[_0x5e929c(0x21f)]),_0x2815dd=_0x518592(null);return _0x558e55(()=>(_0xcfee85&&_0xe3db9f[_0x5e929c(0x250)](_0xcfee85['getUnitId']())[_0x5e929c(0x1e5)](_0x5f178b=>{const _0x2c2033=_0x5e929c;_0x495be0(_0x5f178b),_0x2815dd[_0x2c2033(0x246)]=_0x5f178b['status$'][_0x2c2033(0x1f4)](_0xc0edfc=>{_0x466324(_0xc0edfc);});}),()=>{const _0x5b481b=_0x5e929c;var _0x550bda;(_0x550bda=_0x2815dd[_0x5b481b(0x246)])==null||_0x550bda[_0x5b481b(0x288)](),_0x2815dd[_0x5b481b(0x246)]=null;}),[_0xcfee85,_0xe3db9f]),_0x257578?_0x4cbb7b(_0x356893,{'align':_0x5e929c(0x214),'disabled':_0x3c3b08===c[_0x5e929c(0x267)],'className':_0x5e929c(0x286),'overlay':_0x4cbb7b(Re,{'status':_0x3c3b08,'coordinator':_0x257578}),'children':_0x4cbb7b(_0x5e929c(0x234),{'className':_0x350e56('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3c3b08===c[_0x5e929c(0x267)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3c3b08!==c[_0x5e929c(0x267)]}),'type':_0x5e929c(0x234),'children':_0x4cbb7b(W,{'className':_0x5e929c(0x25d)})})}):null;}function Re(_0x37143f){const _0x4d440f=_0x203051,{status:_0x38a54f,coordinator:_0x15a64f}=_0x37143f;switch(_0x38a54f){case c[_0x4d440f(0x21f)]:return _0x4cbb7b($e,{'coordinator':_0x15a64f});case c[_0x4d440f(0x215)]:return _0x4cbb7b(xe,{'coordinator':_0x15a64f});case c[_0x4d440f(0x223)]:return _0x4cbb7b(Pe,{'coordinator':_0x15a64f});case c[_0x4d440f(0x267)]:return _0x4cbb7b(Te,{});case c[_0x4d440f(0x235)]:return _0x4cbb7b(Ae,{'coordinator':_0x15a64f});default:return null;}}function $e(_0x399c82){const _0x36fac6=_0x203051,{coordinator:_0x3f9790}=_0x399c82;return _0xbc9c89(_0x5c324a,{'children':[_0x4cbb7b(_0x36fac6(0x25a),{'className':_0x36fac6(0x28a),'children':_0x36fac6(0x208)}),_0x4cbb7b(_0x1aa64c,{'onClick':()=>_0x3f9790[_0x36fac6(0x252)](),'children':_0x36fac6(0x22e)})]});}function xe(_0x5df9e2){const _0x5f0ef1=_0x203051,{coordinator:_0x3c3964}=_0x5df9e2;return _0xbc9c89(_0x5c324a,{'children':[_0x4cbb7b(_0x5f0ef1(0x25a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5f0ef1(0x1e6)}),_0x4cbb7b(_0x1aa64c,{'onClick':()=>_0x3c3964['stopFollowing'](),'children':_0x5f0ef1(0x278)})]});}function Pe(_0x352b59){const _0x7ea9e1=_0x203051,{coordinator:_0x47fa63}=_0x352b59;return _0xbc9c89(_0x5c324a,{'children':[_0x4cbb7b(_0x7ea9e1(0x25a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x7ea9e1(0x231)}),_0x4cbb7b(_0x1aa64c,{'variant':'text','onClick':()=>_0x47fa63[_0x7ea9e1(0x21c)](),'children':_0x7ea9e1(0x244)})]});}function Ae(_0x204052){const _0x29c4fe=_0x203051,{coordinator:_0xedf115}=_0x204052;return _0xbc9c89(_0x5c324a,{'children':[_0x4cbb7b(_0x29c4fe(0x25a),{'className':_0x29c4fe(0x28a),'children':_0x29c4fe(0x259)}),_0x4cbb7b(_0x1aa64c,{'variant':_0x29c4fe(0x217),'onClick':()=>_0xedf115['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){const _0x3d89a4=_0x203051;return _0x4cbb7b(_0x5c324a,{'children':_0x3d89a4(0x24b)});}function _0x53e2(){const _0x58b76e=['toString','_handleOperation','Present\x20this\x20document','_startPresenting','delete','path','OPERATION','455683FXjrbQ','getOwnPropertyDescriptor','includes','idle','live-share.config','_collabSession','LIVESHARE_NEW_HOST','end','FOLLOWING','_config','default','offline','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','substring','startFollowing','random','displayName','IDLE','_commandService','getTypeOfUnitDisposed$','_liveShareService','NOT_FOLLOWING','_fetchOperations','registerComponent','map','27481390cFRNNj','following','UNIVER_SHEET','registerSharedOperation','status$','UNIVER_UNKNOWN','idSuffix','Start','_reporters','clear','You\x27re\x20not\x20following\x20the\x20presenter','pipe','dispose$','button','PRESENTING','from','set','1793424tIizvy','getInitialStates','event$','_commandDisposable','currentColor','_mountLiveShare','232AWrXli','requireSession','57170NILJfT','ONLINE','forEach','attrs','Start\x20following','_handleNewHost','current','_stopPresenting','0\x200\x2017\x2017','svg','operations','You\x27are\x20offline.','trim','getLiveShareCoordinatorSync','9iRoSHI','mask','getLiveShareCoordinator','_handleOnline','tryStartPresenting','1710696OFCKpS','send','getValue','shouldShareOperation','_uiPartsService','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','You\x27re\x20presenting\x20the\x20document','div','url(#$1','getUnitId','univer-size-4','LIVESHARE_REQUEST_HOST','setConfig','stopPresenting','reverse','unitId','add','_configService','params','xlink:href','OFFLINE','stopFollowing','dispose','executeCommand','_stopFollowing','LiveShareIcon','next','evenodd','univerjs-icon\x20univerjs-icon-','length','_status','getMemberID','presenter','1em','sheet','_univerInstanceService','_handleNewChangeSets','Stop\x20following','fill','find','_injector','_startLiveShareCoordinator','complete','4yViPbm','getStatus','_init','disposeWithMe','_startFollowing','getTypeOfUnitAdded$','defs','override','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','LIVESHARE_OPERATION','unsubscribe','_presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','get','3139297DbuYkz','HEADER_MENU','entries','children','then','You\x27re\x20following\x20the\x20presenter','30856kdxcZX','presenting','LIVESHARE_TERMINATE','data','init','string','defineProperty','colorChannel1','not-following','getConfig','has','assign','_unitID','subscribe','_collabSessionService','UNIVER_LIVE_SHARE_PLUGIN','registerInitialStateReporter','defIds','_handleTerminate','type','_status$','onStarting','_handleOffline','_entities','_beIdle','_sharedOperations','tag','replace','symbol','mutations','getCurrentTypeOfUnit$'];_0x53e2=function(){return _0x58b76e;};return _0x53e2();}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x3aa46f,_0x19b0ba,_0x2a37f0,_0x39bc96)=>{for(var _0x4f4575=_0x39bc96>0x1?void 0x0:_0x39bc96?Fe(_0x19b0ba,_0x2a37f0):_0x19b0ba,_0x1bb5f1=_0x3aa46f['length']-0x1,_0x221e07;_0x1bb5f1>=0x0;_0x1bb5f1--)(_0x221e07=_0x3aa46f[_0x1bb5f1])&&(_0x4f4575=_0x221e07(_0x4f4575)||_0x4f4575);return _0x4f4575;},A=(_0x58065c,_0x19e361)=>(_0x3f7948,_0x250d24)=>_0x19e361(_0x3f7948,_0x250d24,_0x58065c);let m=class extends _0x2fa88b{constructor(_0x299cc2,_0x416853){const _0x27ef35=_0x203051;super(),this[_0x27ef35(0x27b)]=_0x299cc2,this[_0x27ef35(0x257)]=_0x416853,this[_0x27ef35(0x23d)]();}[_0x203051(0x23d)](){const _0x346257=_0x203051;this[_0x346257(0x281)](this[_0x346257(0x257)][_0x346257(0x225)](_0x2bf13e[_0x346257(0x1e2)],()=>_0x2b9143(Le,this[_0x346257(0x27b)])));}};m=He([A(0x0,_0x41344e(_0x247233)),A(0x1,_0x1f7073)],m);const ye=_0x203051(0x211),T={};var Ue=Object[_0x203051(0x20e)],Ve=(_0x5e1d89,_0x5d6f96,_0x620112,_0x3c3f11)=>{for(var _0x4d8e9d=_0x3c3f11>0x1?void 0x0:_0x3c3f11?Ue(_0x5d6f96,_0x620112):_0x5d6f96,_0x9d08d8=_0x5e1d89['length']-0x1,_0x6e0186;_0x9d08d8>=0x0;_0x9d08d8--)(_0x6e0186=_0x5e1d89[_0x9d08d8])&&(_0x4d8e9d=_0x6e0186(_0x4d8e9d)||_0x4d8e9d);return _0x4d8e9d;},je=(_0x426fe1,_0x1a648a)=>(_0xb03e87,_0x4f56b7)=>_0x1a648a(_0xb03e87,_0x4f56b7,_0x426fe1);let I=class extends _0x2fa88b{constructor(_0x31fdbe){const _0x3c732f=_0x203051;super(),this[_0x3c732f(0x222)]=_0x31fdbe,this[_0x3c732f(0x280)]();}[_0x203051(0x280)](){[_0x4a5670['id'],_0x23916f['id'],_0x38d630['id']]['forEach'](_0x3f5c30=>{const _0x4046f0=_0x467a;this['disposeWithMe'](this['_liveShareService'][_0x4046f0(0x22a)](_0x3f5c30));});}};I=Ve([je(0x0,_0x41344e(L))],I);var Me=Object[_0x203051(0x1ed)],ke=Object[_0x203051(0x20e)],Ge=(_0x14d5a0,_0x1e4a02,_0x55a88d)=>_0x1e4a02 in _0x14d5a0?Me(_0x14d5a0,_0x1e4a02,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55a88d}):_0x14d5a0[_0x1e4a02]=_0x55a88d,We=(_0x203698,_0xe0342b,_0x173f45,_0x1e0285)=>{for(var _0x3035e0=_0x1e0285>0x1?void 0x0:_0x1e0285?ke(_0xe0342b,_0x173f45):_0xe0342b,_0x4d4f5e=_0x203698['length']-0x1,_0x42fb1a;_0x4d4f5e>=0x0;_0x4d4f5e--)(_0x42fb1a=_0x203698[_0x4d4f5e])&&(_0x3035e0=_0x42fb1a(_0x3035e0)||_0x3035e0);return _0x3035e0;},F=(_0x4a60cb,_0x281b58)=>(_0x46b207,_0x5ec506)=>_0x281b58(_0x46b207,_0x5ec506,_0x4a60cb),B=(_0x4b3bc4,_0x4df8ed,_0x1e631a)=>Ge(_0x4b3bc4,typeof _0x4df8ed!=_0x203051(0x203)?_0x4df8ed+'':_0x4df8ed,_0x1e631a);const Ye=_0x203051(0x1f6);let b=class extends _0x2461be{constructor(_0x23a960=T,_0xcc65bf,_0x3f4f40){const _0x1474aa=_0x203051;super(),this[_0x1474aa(0x216)]=_0x23a960,this[_0x1474aa(0x27b)]=_0xcc65bf,this[_0x1474aa(0x264)]=_0x3f4f40;const {..._0x3bc066}=_0xbbecdb({},T,this['_config']);this[_0x1474aa(0x264)][_0x1474aa(0x25f)](ye,_0x3bc066);}[_0x203051(0x1fc)](){const _0x5e3202=_0x203051;_0x3077e0(this[_0x5e3202(0x27b)],_0x1e8f39([[L],[S],[I],[m]],this[_0x5e3202(0x216)][_0x5e3202(0x285)])),_0x207751(this[_0x5e3202(0x27b)],[[I]]);}['onRendered'](){const _0xe6b90a=_0x203051;_0x207751(this[_0xe6b90a(0x27b)],[[m]]);}};B(b,_0x203051(0x1fa),_0xf4b6a6[_0x203051(0x22c)]),B(b,'pluginName',Ye),b=We([_0x352a09(_0x5c1f28),F(0x1,_0x41344e(_0x247233)),F(0x2,_0x59bacf)],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 _0xdec3d=_0x41f0;(function(_0x154676,_0x52e1c2){const _0x27fa8e=_0x41f0,_0x1fd54c=_0x154676();while(!![]){try{const _0x56be66=parseInt(_0x27fa8e(0x14f))/0x1+parseInt(_0x27fa8e(0x15a))/0x2+-parseInt(_0x27fa8e(0x150))/0x3*(-parseInt(_0x27fa8e(0x15f))/0x4)+-parseInt(_0x27fa8e(0x155))/0x5*(parseInt(_0x27fa8e(0x15c))/0x6)+-parseInt(_0x27fa8e(0x151))/0x7+parseInt(_0x27fa8e(0x146))/0x8+-parseInt(_0x27fa8e(0x162))/0x9;if(_0x56be66===_0x52e1c2)break;else _0x1fd54c['push'](_0x1fd54c['shift']());}catch(_0x5e0256){_0x1fd54c['push'](_0x1fd54c['shift']());}}}(_0x5126,0xc1887));function _0x41f0(_0x44ea44,_0x5cbd75){_0x44ea44=_0x44ea44-0x143;const _0x5126fb=_0x5126();let _0x41f08c=_0x5126fb[_0x44ea44];return _0x41f08c;}import{LiveShareController as _0x3c6283,LiveShareStatus as _0x5ce499}from'@univerjs-pro/live-share';function _0x5126(){const _0x5ec4a5=['PRESENTING','1409934MqEmQy','886194bjFicO','6647116WdeAOD','getSheetId','startColumn','startFollowing','124520fqgvfM','syncExecuteCommand','stopFollowing','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','2812896zVyZEM','stopPresenting','372azBYjC','tryStartPresenting','get','12MROtiH','getUnitId','_initialize','11722653TjMiOC','getActiveWorkbook','getActiveSheet','getId','7090304XGhsmN','extend','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startPresenting','_commandService','_injector','getRenderById'];_0x5126=function(){return _0x5ec4a5;};return _0x5126();}import{IRenderManagerService as _0x1be804}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3bc398}from'@univerjs/sheets';import{SetScrollOperation as _0x56e6db}from'@univerjs/sheets-ui';import{FRange as _0x335293}from'@univerjs/sheets/facade';import{FUniver as _0x451090,FEnum as _0xf8fd90}from'@univerjs/core/facade';class I extends _0x335293{[_0xdec3d(0x161)](_0x3ec33d,_0x563e98,_0x17db44,_0x28b84d,_0x34ec08){const _0x16156c=_0xdec3d,_0x17ed33=_0x3ec33d['get'](_0x3c6283),_0x2d9304=_0x3ec33d[_0x16156c(0x15e)](_0x1be804),_0x3c3e74=_0x563e98['getUnitId'](),_0x1cee4e=_0x563e98[_0x16156c(0x144)](),_0x769ff7=_0x17ed33[_0x16156c(0x159)](_0x3c3e74);(_0x769ff7==null?void 0x0:_0x769ff7['getStatus']())!==_0x5ce499[_0x16156c(0x14e)]||(_0x17db44[_0x16156c(0x152)]()!==_0x1cee4e[_0x16156c(0x152)]()&&this[_0x16156c(0x14b)]['executeCommand'](_0x3bc398['id'],{'unitId':_0x3c3e74,'subUnitId':_0x17db44[_0x16156c(0x152)]()}),!_0x2d9304[_0x16156c(0x14d)](_0x3c3e74))||_0x34ec08[_0x16156c(0x156)](_0x56e6db['id'],{'unitId':_0x563e98[_0x16156c(0x160)](),'sheetId':_0x17db44[_0x16156c(0x152)](),'sheetViewStartRow':_0x28b84d[_0x16156c(0x148)],'sheetViewStartColumn':_0x28b84d[_0x16156c(0x153)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x335293[_0xdec3d(0x147)](I);class m extends _0x451090{['getLiveShareStatus'](){const _0x23e4df=_0xdec3d;var _0x12f450,_0x56155f;const _0x410559=this['_injector']['get'](_0x3c6283),_0x4d8018=(_0x12f450=this[_0x23e4df(0x143)]())==null?void 0x0:_0x12f450[_0x23e4df(0x145)]();if(!_0x4d8018)throw new Error(_0x23e4df(0x158));const _0x3c46cc=_0x410559[_0x23e4df(0x159)](_0x4d8018);return(_0x56155f=_0x3c46cc==null?void 0x0:_0x3c46cc['getStatus']())!=null?_0x56155f:_0x5ce499['IDLE'];}[_0xdec3d(0x154)](){const _0x3a852a=_0xdec3d;var _0x5bd449;const _0x421eaf=this['_injector'][_0x3a852a(0x15e)](_0x3c6283),_0x1c5aff=(_0x5bd449=this['getActiveWorkbook']())==null?void 0x0:_0x5bd449[_0x3a852a(0x145)]();if(!_0x1c5aff)throw new Error('No\x20active\x20workbook\x20found.');const _0x14b2b=_0x421eaf['getLiveShareCoordinatorSync'](_0x1c5aff);if(!_0x14b2b)throw new Error(_0x3a852a(0x149));_0x14b2b[_0x3a852a(0x154)]();}[_0xdec3d(0x157)](){const _0x3844cf=_0xdec3d;var _0x288dde;const _0x1fe75b=this['_injector'][_0x3844cf(0x15e)](_0x3c6283),_0x5a84f4=(_0x288dde=this[_0x3844cf(0x143)]())==null?void 0x0:_0x288dde['getId']();if(!_0x5a84f4)throw new Error(_0x3844cf(0x158));const _0x56e10a=_0x1fe75b[_0x3844cf(0x159)](_0x5a84f4);if(!_0x56e10a)throw new Error(_0x3844cf(0x149));_0x56e10a[_0x3844cf(0x157)]();}[_0xdec3d(0x14a)](){const _0x5b8bd4=_0xdec3d;var _0x2fd7ff;const _0x1f5051=this['_injector'][_0x5b8bd4(0x15e)](_0x3c6283),_0x3cda5b=(_0x2fd7ff=this['getActiveWorkbook']())==null?void 0x0:_0x2fd7ff[_0x5b8bd4(0x145)]();if(!_0x3cda5b)throw new Error(_0x5b8bd4(0x158));const _0x28866b=_0x1f5051[_0x5b8bd4(0x159)](_0x3cda5b);if(!_0x28866b)throw new Error(_0x5b8bd4(0x149));_0x28866b[_0x5b8bd4(0x15d)]();}[_0xdec3d(0x15b)](){const _0x290065=_0xdec3d;var _0x50b3cb;const _0x539995=this[_0x290065(0x14c)][_0x290065(0x15e)](_0x3c6283),_0x2c2301=(_0x50b3cb=this[_0x290065(0x143)]())==null?void 0x0:_0x50b3cb[_0x290065(0x145)]();if(!_0x2c2301)throw new Error(_0x290065(0x158));const _0xd59531=_0x539995[_0x290065(0x159)](_0x2c2301);if(!_0xd59531)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xd59531['stopPresenting']();}}_0x451090[_0xdec3d(0x147)](m);class C extends _0xf8fd90{get['LiveShareStatusEnum'](){return _0x5ce499;}}_0xf8fd90['extend'](C);
1
+ const _0x510e92=_0x4f85;(function(_0x34ba85,_0x4522a6){const _0x36ae73=_0x4f85,_0xabf814=_0x34ba85();while(!![]){try{const _0x35b24a=-parseInt(_0x36ae73(0xfc))/0x1*(-parseInt(_0x36ae73(0xf6))/0x2)+parseInt(_0x36ae73(0x103))/0x3+-parseInt(_0x36ae73(0xed))/0x4*(parseInt(_0x36ae73(0xf7))/0x5)+parseInt(_0x36ae73(0xfb))/0x6*(parseInt(_0x36ae73(0xf2))/0x7)+parseInt(_0x36ae73(0xff))/0x8+parseInt(_0x36ae73(0x106))/0x9*(parseInt(_0x36ae73(0xf0))/0xa)+-parseInt(_0x36ae73(0xe7))/0xb;if(_0x35b24a===_0x4522a6)break;else _0xabf814['push'](_0xabf814['shift']());}catch(_0x560b08){_0xabf814['push'](_0xabf814['shift']());}}}(_0x575f,0xaca61));import{LiveShareController as _0x1ca6a4,LiveShareStatus as _0x2cb366}from'@univerjs-pro/live-share';function _0x575f(){const _0x35db40=['startFollowing','syncExecuteCommand','getId','2YTzTXe','5637365VZURxs','stopFollowing','LiveShareStatusEnum','stopPresenting','1146RODFUM','399613SUCqoA','_initialize','getActiveSheet','7274448tgxnIi','get','_commandService','getLiveShareCoordinatorSync','1928124qQePgA','startRow','getLiveShareStatus','6525SGuobw','startPresenting','IDLE','extend','_injector','tryStartPresenting','11124069TCcraZ','executeCommand','No\x20active\x20workbook\x20found.','getStatus','getUnitId','getActiveWorkbook','4wGlfTW','startColumn','getSheetId','5330srhhtM','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','18613iSnbqI'];_0x575f=function(){return _0x35db40;};return _0x575f();}import{IRenderManagerService as _0x3cd943}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3495bd}from'@univerjs/sheets';import{SetScrollOperation as _0x40f6af}from'@univerjs/sheets-ui';import{FRange as _0x459a39}from'@univerjs/sheets/facade';import{FUniver as _0x89d62c,FEnum as _0x478e8a}from'@univerjs/core/facade';class I extends _0x459a39{[_0x510e92(0xfd)](_0x548c86,_0x294ade,_0x595d7d,_0x212bca,_0x116be4){const _0x94740=_0x510e92,_0x1dadf6=_0x548c86[_0x94740(0x100)](_0x1ca6a4),_0x2f8afe=_0x548c86[_0x94740(0x100)](_0x3cd943),_0x2473cb=_0x294ade[_0x94740(0xeb)](),_0xd69fe8=_0x294ade[_0x94740(0xfe)](),_0x2b2da9=_0x1dadf6['getLiveShareCoordinatorSync'](_0x2473cb);(_0x2b2da9==null?void 0x0:_0x2b2da9[_0x94740(0xea)]())!==_0x2cb366['PRESENTING']||(_0x595d7d['getSheetId']()!==_0xd69fe8[_0x94740(0xef)]()&&this[_0x94740(0x101)][_0x94740(0xe8)](_0x3495bd['id'],{'unitId':_0x2473cb,'subUnitId':_0x595d7d[_0x94740(0xef)]()}),!_0x2f8afe['getRenderById'](_0x2473cb))||_0x116be4[_0x94740(0xf4)](_0x40f6af['id'],{'unitId':_0x294ade[_0x94740(0xeb)](),'sheetId':_0x595d7d['getSheetId'](),'sheetViewStartRow':_0x212bca[_0x94740(0x104)],'sheetViewStartColumn':_0x212bca[_0x94740(0xee)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x459a39[_0x510e92(0x109)](I);class m extends _0x89d62c{[_0x510e92(0x105)](){const _0x2225bb=_0x510e92;var _0x2b90fa,_0x2ac7a7;const _0x1eacb4=this[_0x2225bb(0xe5)]['get'](_0x1ca6a4),_0x377ac0=(_0x2b90fa=this[_0x2225bb(0xec)]())==null?void 0x0:_0x2b90fa[_0x2225bb(0xf5)]();if(!_0x377ac0)throw new Error(_0x2225bb(0xe9));const _0x3b0f94=_0x1eacb4[_0x2225bb(0x102)](_0x377ac0);return(_0x2ac7a7=_0x3b0f94==null?void 0x0:_0x3b0f94[_0x2225bb(0xea)]())!=null?_0x2ac7a7:_0x2cb366[_0x2225bb(0x108)];}[_0x510e92(0xf3)](){const _0x29687c=_0x510e92;var _0x326131;const _0x3eb30b=this[_0x29687c(0xe5)][_0x29687c(0x100)](_0x1ca6a4),_0x168946=(_0x326131=this[_0x29687c(0xec)]())==null?void 0x0:_0x326131[_0x29687c(0xf5)]();if(!_0x168946)throw new Error(_0x29687c(0xe9));const _0x160636=_0x3eb30b[_0x29687c(0x102)](_0x168946);if(!_0x160636)throw new Error(_0x29687c(0xf1));_0x160636[_0x29687c(0xf3)]();}[_0x510e92(0xf8)](){const _0x530c57=_0x510e92;var _0x1b2a7b;const _0xd0e19f=this[_0x530c57(0xe5)][_0x530c57(0x100)](_0x1ca6a4),_0x5f3ecd=(_0x1b2a7b=this[_0x530c57(0xec)]())==null?void 0x0:_0x1b2a7b['getId']();if(!_0x5f3ecd)throw new Error('No\x20active\x20workbook\x20found.');const _0x657c61=_0xd0e19f['getLiveShareCoordinatorSync'](_0x5f3ecd);if(!_0x657c61)throw new Error(_0x530c57(0xf1));_0x657c61['stopFollowing']();}[_0x510e92(0x107)](){const _0x467974=_0x510e92;var _0xeb20c1;const _0xfe8bbd=this['_injector'][_0x467974(0x100)](_0x1ca6a4),_0x3075de=(_0xeb20c1=this['getActiveWorkbook']())==null?void 0x0:_0xeb20c1['getId']();if(!_0x3075de)throw new Error(_0x467974(0xe9));const _0x15fe1c=_0xfe8bbd[_0x467974(0x102)](_0x3075de);if(!_0x15fe1c)throw new Error(_0x467974(0xf1));_0x15fe1c[_0x467974(0xe6)]();}[_0x510e92(0xfa)](){const _0x4e9f75=_0x510e92;var _0x2d81be;const _0x4e9abb=this[_0x4e9f75(0xe5)]['get'](_0x1ca6a4),_0x221c4e=(_0x2d81be=this[_0x4e9f75(0xec)]())==null?void 0x0:_0x2d81be[_0x4e9f75(0xf5)]();if(!_0x221c4e)throw new Error(_0x4e9f75(0xe9));const _0x3de30c=_0x4e9abb['getLiveShareCoordinatorSync'](_0x221c4e);if(!_0x3de30c)throw new Error(_0x4e9f75(0xf1));_0x3de30c[_0x4e9f75(0xfa)]();}}_0x89d62c[_0x510e92(0x109)](m);class C extends _0x478e8a{get[_0x510e92(0xf9)](){return _0x2cb366;}}function _0x4f85(_0x22962c,_0x4998ca){_0x22962c=_0x22962c-0xe5;const _0x575fec=_0x575f();let _0x4f8578=_0x575fec[_0x22962c];return _0x4f8578;}_0x478e8a[_0x510e92(0x109)](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x6e67a4=_0x135d;(function(_0x354467,_0x7b3ce5){const _0x1c9e91=_0x135d,_0x5d94dd=_0x354467();while(!![]){try{const _0x220892=parseInt(_0x1c9e91(0x1a8))/0x1+-parseInt(_0x1c9e91(0x204))/0x2*(-parseInt(_0x1c9e91(0x22e))/0x3)+parseInt(_0x1c9e91(0x1f2))/0x4*(parseInt(_0x1c9e91(0x19b))/0x5)+-parseInt(_0x1c9e91(0x18c))/0x6*(-parseInt(_0x1c9e91(0x21a))/0x7)+-parseInt(_0x1c9e91(0x1ed))/0x8+-parseInt(_0x1c9e91(0x1b3))/0x9+-parseInt(_0x1c9e91(0x1f6))/0xa;if(_0x220892===_0x7b3ce5)break;else _0x5d94dd['push'](_0x5d94dd['shift']());}catch(_0x520e8e){_0x5d94dd['push'](_0x5d94dd['shift']());}}}(_0x4234,0x3c369));var J=Object[_0x6e67a4(0x1be)],K=(_0x1845a7,_0x152099,_0xb0e92b)=>_0x152099 in _0x1845a7?J(_0x1845a7,_0x152099,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb0e92b}):_0x1845a7[_0x152099]=_0xb0e92b,u=(_0x183d15,_0x108a2e,_0x318511)=>K(_0x183d15,typeof _0x108a2e!=_0x6e67a4(0x1a4)?_0x108a2e+'':_0x108a2e,_0x318511);import{Disposable as _0x5e24bb,toDisposable as _0xe2a356,IUniverInstanceService as _0x429aae,Inject as _0x59f7c6,Injector as _0x4531be,IConfigService as _0x3f6d6e,ICommandService as _0x3ed8d7,RxDisposable as _0x191712,UniverInstanceType as _0x118f42,DisposableCollection as _0x2a5811,CommandType as _0x14388b,DependentOn as _0xe1d233,Plugin as _0x5cd1de,merge as _0x727060,registerDependencies as _0x28a48e,mergeOverrideWithDependencies as _0x357330,touchDependencies as _0x25c3b0}from'@univerjs/core';import{useDependency as _0xdbbe5b,useObservable as _0x1621e2,IUIPartsService as _0x27b447,BuiltInUIPart as _0x47949f,connectInjector as _0x296dfc}from'@univerjs/ui';import{jsx as _0x2ca373,jsxs as _0xbe0ce5,Fragment as _0x511b38}from'react/jsx-runtime';import{Dropdown as _0x2a1e6e,clsx as _0x8ac4ff,Button as _0x29989c}from'@univerjs/design';import{useRef as _0x482ed3,createElement as _0x797d0e,forwardRef as _0x16790e,useState as _0x5d950b,useEffect as _0x52f42a}from'react';import{CollaborationEvent as _0x94e1b3,parseProtocolChangeset as _0x479ed7}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1e5a3d,SessionStatus as _0x4753ef,UniverCollaborationClientPlugin as _0x4a1e33}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x17d247,SetWorksheetActiveOperation as _0x553e77}from'@univerjs/sheets';import{BehaviorSubject as _0x59d67a,Subject as _0x51c7e2}from'rxjs';import{takeUntil as _0x5448c3,throttleTime as _0x35eda6}from'rxjs/operators';import{SetZoomRatioOperation as _0x13aa72,SetScrollOperation as _0x4e9adb}from'@univerjs/sheets-ui';function k({ref:_0x1ae140,..._0x3bcec8}){const _0x1853be=_0x6e67a4,{icon:_0xd1386a,id:_0x1f91e4,className:_0xc749bb,extend:_0x4689db,..._0x221a9f}=_0x3bcec8,_0x200100=(_0x1853be(0x1ef)+_0x1f91e4+'\x20'+(_0xc749bb||''))[_0x1853be(0x1fa)](),_0x332e44=_0x482ed3('_'+Oe());return G(_0xd1386a,''+_0x1f91e4,{'defIds':_0xd1386a[_0x1853be(0x20c)],'idSuffix':_0x332e44[_0x1853be(0x1fd)]},{'ref':_0x1ae140,'className':_0x200100,..._0x221a9f},_0x4689db);}function G(_0x833fa0,_0x12cde1,_0x16c09c,_0x4716fa,_0x34a4d8){const _0x4e4d1d=_0x6e67a4;return _0x797d0e(_0x833fa0[_0x4e4d1d(0x1d0)],{'key':_0x12cde1,...be(_0x833fa0,_0x16c09c,_0x34a4d8),..._0x4716fa},(Ee(_0x833fa0,_0x16c09c)[_0x4e4d1d(0x1b5)]||[])['map']((_0x3fafb2,_0x2f00d8)=>G(_0x3fafb2,_0x12cde1+'-'+_0x833fa0[_0x4e4d1d(0x1d0)]+'-'+_0x2f00d8,_0x16c09c,void 0x0,_0x34a4d8)));}function be(_0x4abf2e,_0x4343c1,_0x2e77b6){const _0x33df50=_0x6e67a4,_0x593596={..._0x4abf2e[_0x33df50(0x20d)]};_0x2e77b6!=null&&_0x2e77b6[_0x33df50(0x186)]&&_0x593596[_0x33df50(0x21c)]===_0x33df50(0x186)&&(_0x593596[_0x33df50(0x21c)]=_0x2e77b6[_0x33df50(0x186)]),_0x4abf2e['tag']===_0x33df50(0x1b7)&&_0x593596['id']&&(_0x593596['id']=_0x593596['id']+_0x4343c1[_0x33df50(0x1e9)]),Object[_0x33df50(0x1a3)](_0x593596)['forEach'](([_0x21e168,_0x3bfd12])=>{const _0x38ba2a=_0x33df50;_0x21e168===_0x38ba2a(0x1b7)&&typeof _0x3bfd12==_0x38ba2a(0x1cd)&&(_0x593596[_0x21e168]=_0x3bfd12['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4343c1[_0x38ba2a(0x1e9)]+')'));});const {defIds:_0x4ab71f}=_0x4343c1;return!_0x4ab71f||_0x4ab71f['length']===0x0||(_0x4abf2e[_0x33df50(0x1d0)]===_0x33df50(0x1b6)&&_0x593596[_0x33df50(0x1c6)]&&(_0x593596['xlink:href']=_0x593596[_0x33df50(0x1c6)]+_0x4343c1[_0x33df50(0x1e9)]),Object[_0x33df50(0x1a3)](_0x593596)[_0x33df50(0x1c9)](([_0x2dd0e6,_0x15a707])=>{const _0x486147=_0x33df50;typeof _0x15a707==_0x486147(0x1cd)&&(_0x593596[_0x2dd0e6]=_0x15a707['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4343c1[_0x486147(0x1e9)]+')'));})),_0x593596;}function Ee(_0x1e7841,_0x799ef){const _0x43ab92=_0x6e67a4;var _0x55ae08;const {defIds:_0x538651}=_0x799ef;return!_0x538651||_0x538651[_0x43ab92(0x18a)]===0x0?_0x1e7841:_0x1e7841['tag']===_0x43ab92(0x1e1)&&((_0x55ae08=_0x1e7841[_0x43ab92(0x1b5)])!=null&&_0x55ae08[_0x43ab92(0x18a)])?{..._0x1e7841,'children':_0x1e7841[_0x43ab92(0x1b5)][_0x43ab92(0x1f9)](_0x19be0b=>typeof _0x19be0b[_0x43ab92(0x20d)]['id']==_0x43ab92(0x1cd)&&_0x538651&&_0x538651[_0x43ab92(0x1cf)](_0x19be0b['attrs']['id'])?{..._0x19be0b,'attrs':{..._0x19be0b[_0x43ab92(0x20d)],'id':_0x19be0b['attrs']['id']+_0x799ef[_0x43ab92(0x1e9)]}}:_0x19be0b)}:_0x1e7841;}function Oe(){const _0x4d5025=_0x6e67a4;return Math[_0x4d5025(0x199)]()[_0x4d5025(0x212)](0x24)[_0x4d5025(0x1d9)](0x2,0x8);}k[_0x6e67a4(0x1a1)]='UniverIcon';const we={'tag':_0x6e67a4(0x1ad),'attrs':{'xmlns':_0x6e67a4(0x20b),'fill':'none','viewBox':_0x6e67a4(0x18e),'width':_0x6e67a4(0x1d8),'height':'1em'},'children':[{'tag':_0x6e67a4(0x208),'attrs':{'fill':_0x6e67a4(0x1d7),'d':_0x6e67a4(0x202)}},{'tag':'path','attrs':{'fill':_0x6e67a4(0x1d7),'d':_0x6e67a4(0x215),'fillRule':_0x6e67a4(0x1d2),'clipRule':'evenodd'}}]},W=_0x16790e(function(_0x1f62a1,_0x5d29e2){return _0x797d0e(k,Object['assign']({},_0x1f62a1,{'id':'live-share-icon','ref':_0x5d29e2,'icon':we}));});W[_0x6e67a4(0x1a1)]=_0x6e67a4(0x187);class L extends _0x5e24bb{constructor(){const _0x2b60d3=_0x6e67a4;super(...arguments),u(this,_0x2b60d3(0x19d),new Set()),u(this,'_reporters',new Set());}[_0x6e67a4(0x190)](_0x3b57ca){const _0x520924=_0x6e67a4;return this[_0x520924(0x19d)][_0x520924(0x1ba)](_0x3b57ca),_0xe2a356(()=>this[_0x520924(0x19d)][_0x520924(0x188)](_0x3b57ca));}[_0x6e67a4(0x224)](_0xb8827){const _0x4e8b83=_0x6e67a4;return this[_0x4e8b83(0x1cc)]['add'](_0xb8827),_0xe2a356(()=>this[_0x4e8b83(0x1cc)][_0x4e8b83(0x188)](_0xb8827));}[_0x6e67a4(0x1bc)](_0x2b5851){const _0xa4a800=_0x6e67a4;return this[_0xa4a800(0x19d)][_0xa4a800(0x1ab)](_0x2b5851);}[_0x6e67a4(0x1b4)](_0x3f70a2){const _0x3b76e8=_0x6e67a4;return Array[_0x3b76e8(0x1c1)](this['_reporters'])[_0x3b76e8(0x1f9)](_0x4d15ac=>_0x4d15ac(_0x3f70a2));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x2e6546,_0xa2f29,_0x16bf90,_0x40d393)=>{for(var _0x4eb0ab=_0x40d393>0x1?void 0x0:_0x40d393?Ne(_0xa2f29,_0x16bf90):_0xa2f29,_0x2102b5=_0x2e6546['length']-0x1,_0x438880;_0x2102b5>=0x0;_0x2102b5--)(_0x438880=_0x2e6546[_0x2102b5])&&(_0x4eb0ab=_0x438880(_0x4eb0ab)||_0x4eb0ab);return _0x4eb0ab;},_=(_0x7b7c13,_0x29bb03)=>(_0x32e15d,_0x4d3bc3)=>_0x29bb03(_0x32e15d,_0x4d3bc3,_0x7b7c13);let S=class extends _0x191712{constructor(_0x459ad7,_0x4b4d66,_0x26758d){const _0x10cb0=_0x6e67a4;super(),u(this,_0x10cb0(0x1a2),new Map()),(this['_univerInstanceService']=_0x459ad7,this[_0x10cb0(0x1b8)]=_0x4b4d66,this[_0x10cb0(0x210)]=_0x26758d,this[_0x10cb0(0x1b2)]());}async[_0x6e67a4(0x1b1)](_0x3a9d84){const _0x25538e=_0x6e67a4;return this[_0x25538e(0x1a2)][_0x25538e(0x1ab)](_0x3a9d84)||await this[_0x25538e(0x207)](_0x3a9d84),this[_0x25538e(0x1a2)][_0x25538e(0x1bd)](_0x3a9d84);}['getLiveShareCoordinatorSync'](_0x30ced4){const _0x4d711b=_0x6e67a4;var _0x6c659a;return(_0x6c659a=this[_0x4d711b(0x1a2)][_0x4d711b(0x1bd)](_0x30ced4))!=null?_0x6c659a:null;}['_init'](){const _0x25532a=_0x6e67a4;this[_0x25532a(0x20a)][_0x25532a(0x222)](_0x118f42[_0x25532a(0x1e6)])[_0x25532a(0x1c0)](_0x5448c3(this[_0x25532a(0x21b)]))[_0x25532a(0x1c2)](async _0x2f9568=>{const _0x6fd157=_0x25532a,_0x15c987=_0x2f9568[_0x6fd157(0x1df)]();this['_entities']['has'](_0x15c987)||this['_startLiveShareCoordinator'](_0x15c987);}),this['_univerInstanceService'][_0x25532a(0x1c4)](_0x118f42[_0x25532a(0x1e6)])[_0x25532a(0x1c0)](_0x5448c3(this['dispose$']))['subscribe'](_0x67e594=>{const _0x965c3e=_0x25532a,_0x355512=_0x67e594[_0x965c3e(0x1df)](),_0x242483=this[_0x965c3e(0x1a2)][_0x965c3e(0x1bd)](_0x355512);_0x242483==null||_0x242483[_0x965c3e(0x1af)]();});}async[_0x6e67a4(0x207)](_0x2609a0){const _0x25e734=_0x6e67a4,_0x67e802=await this[_0x25e734(0x210)][_0x25e734(0x1d1)](_0x2609a0),_0x1d9d3c=this['_injector'][_0x25e734(0x221)](N,_0x2609a0,_0x67e802);return _0x1d9d3c[_0x25e734(0x1f3)](),this['_entities']['set'](_0x2609a0,_0x1d9d3c),_0x1d9d3c;}};S=Y([_(0x0,_0x429aae),_(0x1,_0x59f7c6(_0x4531be)),_(0x2,_0x59f7c6(_0x1e5a3d))],S);var c=(_0x53f6aa=>(_0x53f6aa[_0x6e67a4(0x216)]=_0x6e67a4(0x1f0),_0x53f6aa[_0x6e67a4(0x1ac)]='idle',_0x53f6aa[_0x6e67a4(0x1d3)]=_0x6e67a4(0x1ff),_0x53f6aa[_0x6e67a4(0x1d4)]=_0x6e67a4(0x1dc),_0x53f6aa[_0x6e67a4(0x1da)]=_0x6e67a4(0x219),_0x53f6aa))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x191712{constructor(_0x1a51d7,_0x4137b1,_0x3616cc,_0x345b03,_0x949460){const _0x1d9770=_0x6e67a4;super(),u(this,_0x1d9770(0x1ae),new _0x59d67a(_0x1d9770(0x1b0))),u(this,_0x1d9770(0x18d),this[_0x1d9770(0x1ae)][_0x1d9770(0x1c3)]()),u(this,_0x1d9770(0x1b2),!0x1),u(this,_0x1d9770(0x197),null),u(this,_0x1d9770(0x1e2),null),(this[_0x1d9770(0x1bb)]=_0x1a51d7,this['_collabSession']=_0x4137b1,this['_configService']=_0x3616cc,this[_0x1d9770(0x226)]=_0x345b03,this[_0x1d9770(0x192)]=_0x949460);}get[_0x6e67a4(0x214)](){const _0x1eece5=_0x6e67a4;return this[_0x1eece5(0x1ae)][_0x1eece5(0x20f)]();}[_0x6e67a4(0x1af)](){const _0x151978=_0x6e67a4;var _0x166243;(_0x166243=this[_0x151978(0x197)])==null||_0x166243[_0x151978(0x1af)](),this[_0x151978(0x1ae)][_0x151978(0x20e)](_0x151978(0x1b0)),this['_status$'][_0x151978(0x1e7)]();}[_0x6e67a4(0x213)](){const _0x209dde=_0x6e67a4;return this[_0x209dde(0x214)];}['init'](){const _0x5efdc0=_0x6e67a4;this[_0x5efdc0(0x1b2)]||(this[_0x5efdc0(0x1b2)]=!0x0,this[_0x5efdc0(0x1e4)]['sessionStatus$'][_0x5efdc0(0x1c0)](_0x5448c3(this[_0x5efdc0(0x21b)]))['subscribe'](_0xd000d6=>{const _0x3d3278=_0x5efdc0;switch(_0xd000d6){case _0x4753ef['OFFLINE']:this[_0x3d3278(0x203)]();break;case _0x4753ef[_0x3d3278(0x21f)]:this[_0x3d3278(0x1c7)]();break;}}),this[_0x5efdc0(0x1e4)][_0x5efdc0(0x1a6)]['pipe'](_0x5448c3(this[_0x5efdc0(0x21b)]))[_0x5efdc0(0x1c2)](_0x5df548=>{const _0x272f25=_0x5efdc0,{eventID:_0x576b41}=_0x5df548;switch(_0x576b41){case _0x94e1b3['LIVESHARE_NEW_HOST']:this[_0x272f25(0x1d6)](_0x5df548);break;case _0x94e1b3[_0x272f25(0x229)]:this[_0x272f25(0x1b9)](_0x5df548);break;case _0x94e1b3['LIVESHARE_TERMINATE']:this[_0x272f25(0x19c)]();break;case _0x94e1b3['NEW_CHANGESETS']:this[_0x272f25(0x22d)](_0x5df548);break;}}));}[_0x6e67a4(0x1fb)](){const _0x51c154=_0x6e67a4;this[_0x51c154(0x1e4)][_0x51c154(0x201)]({'eventID':_0x94e1b3[_0x51c154(0x1dd)],'data':{'unitID':this[_0x51c154(0x1bb)],'userID':this['_collabSession'][_0x51c154(0x1a9)]()}},this[_0x51c154(0x1bb)]);}[_0x6e67a4(0x1a0)](){const _0x1be6e6=_0x6e67a4;this[_0x1be6e6(0x214)]==='presenting'&&(this[_0x1be6e6(0x1ae)][_0x1be6e6(0x20e)]('idle'),this['_collabSession'][_0x1be6e6(0x201)]({'eventID':_0x94e1b3[_0x1be6e6(0x206)],'data':{'unitID':this[_0x1be6e6(0x1bb)]}},this[_0x1be6e6(0x1bb)]));}['startFollowing'](){const _0x3970fc=_0x6e67a4;this['_status']==='not-following'&&(this[_0x3970fc(0x1ae)][_0x3970fc(0x20e)](_0x3970fc(0x1ff)),this['_startFollowing']());}[_0x6e67a4(0x1cb)](){const _0x1f02d9=_0x6e67a4;this[_0x1f02d9(0x214)]===_0x1f02d9(0x1ff)&&this[_0x1f02d9(0x191)]();}[_0x6e67a4(0x1d6)](_0x2f5781){const _0x1a0bd0=_0x6e67a4,{presenter:_0x58ec53}=_0x2f5781['data'],_0x272f60=this[_0x1a0bd0(0x1e4)][_0x1a0bd0(0x1a9)]();this[_0x1a0bd0(0x1e2)]=_0x58ec53,_0x58ec53===_0x272f60?(this[_0x1a0bd0(0x191)](),this[_0x1a0bd0(0x1ea)]()):this['_status']!==_0x1a0bd0(0x1dc)&&(this[_0x1a0bd0(0x220)](),this['_startFollowing']());}['_fetchOperations'](){const _0x74075=_0x6e67a4,_0x20508e={'eventID':_0x94e1b3['LIVESHARE_FETCH_OPERATIONS']};this[_0x74075(0x1e4)][_0x74075(0x201)](_0x20508e,this['_unitID']);}[_0x6e67a4(0x19c)](){const _0x4f9fd9=_0x6e67a4;this[_0x4f9fd9(0x1e2)]=null,this['_status']!=='presenting'&&this[_0x4f9fd9(0x1e5)]();}[_0x6e67a4(0x22d)](_0x183c55){const _0x60be10=_0x6e67a4;if(this[_0x60be10(0x214)]===_0x60be10(0x1ff)&&this[_0x60be10(0x1e2)]===_0x183c55['data'][_0x60be10(0x225)]){const _0x579918=_0x479ed7(_0x183c55[_0x60be10(0x1a5)])[_0x60be10(0x21e)][_0x60be10(0x205)]()[_0x60be10(0x22a)](_0x183422=>_0x183422['id']===_0x17d247['id']);if(_0x579918){const _0x534541=_0x579918[_0x60be10(0x21d)][_0x60be10(0x19f)],_0x41f561=_0x579918[_0x60be10(0x21d)][_0x60be10(0x1f1)]['id'];setTimeout(()=>{const _0x7c951d=_0x60be10;this[_0x7c951d(0x192)][_0x7c951d(0x1e8)](_0x553e77['id'],{'unitId':_0x534541,'subUnitId':_0x41f561},{'fromCollab':!0x0});});}}}[_0x6e67a4(0x1ea)](){const _0x242a5d=_0x6e67a4;this[_0x242a5d(0x1ae)][_0x242a5d(0x20e)]('presenting');const _0x144f5f=new Map(),_0x5960bc=this[_0x242a5d(0x197)]=new _0x2a5811();_0x5960bc[_0x242a5d(0x1ba)](_0xe2a356(()=>{const _0xd475c9=_0x242a5d;_0x144f5f['forEach'](_0x30b0e2=>_0x30b0e2['complete']()),_0x144f5f[_0xd475c9(0x227)]();})),_0x5960bc[_0x242a5d(0x1ba)](this[_0x242a5d(0x192)][_0x242a5d(0x228)](_0x7d118a=>{const _0x54a176=_0x242a5d;var _0x521726;if(_0x7d118a['type']!==_0x14388b[_0x54a176(0x196)]||!this[_0x54a176(0x226)][_0x54a176(0x1bc)](_0x7d118a['id']))return;const {id:_0x499adb}=_0x7d118a;let _0x244347;_0x144f5f['has'](_0x499adb)?_0x244347=_0x144f5f[_0x54a176(0x1bd)](_0x499adb):(_0x244347=new _0x51c7e2(),_0x144f5f[_0x54a176(0x1ca)](_0x499adb,_0x244347),_0x244347[_0x54a176(0x1c0)](_0x35eda6((_0x521726=this[_0x54a176(0x1d5)][_0x54a176(0x1ee)](Ce))!=null?_0x521726:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x54a176(0x1c2)](_0x2fcf0b=>{const _0x4ea18c=_0x54a176;this[_0x4ea18c(0x1e4)][_0x4ea18c(0x201)]({'eventID':_0x94e1b3[_0x4ea18c(0x229)],'data':{'unitID':this[_0x4ea18c(0x1bb)],'operations':{[_0x2fcf0b['id']]:{'id':_0x2fcf0b['id'],'params':JSON[_0x4ea18c(0x1c8)](_0x2fcf0b[_0x4ea18c(0x21d)])}}}},this[_0x4ea18c(0x1bb)]);})),_0x244347[_0x54a176(0x20e)](_0x7d118a);})),this[_0x242a5d(0x226)][_0x242a5d(0x1b4)](this[_0x242a5d(0x1bb)])[_0x242a5d(0x1c9)](_0x1f5e6d=>this[_0x242a5d(0x1e4)][_0x242a5d(0x201)]({'eventID':_0x94e1b3[_0x242a5d(0x229)],'data':{'unitID':this[_0x242a5d(0x1bb)],'operations':{[_0x1f5e6d['id']]:{'id':_0x1f5e6d['id'],'params':JSON[_0x242a5d(0x1c8)](_0x1f5e6d['params'])}}}},this[_0x242a5d(0x1bb)]));}[_0x6e67a4(0x220)](){const _0x322e4a=_0x6e67a4;var _0x2f9ec0;this[_0x322e4a(0x1ae)]['next'](_0x322e4a(0x1b0)),(_0x2f9ec0=this[_0x322e4a(0x197)])==null||_0x2f9ec0[_0x322e4a(0x1af)](),this['_commandDisposable']=null;}[_0x6e67a4(0x18b)](){const _0x2b4a13=_0x6e67a4;var _0x282bb3;(_0x282bb3=this['_commandDisposable'])==null||_0x282bb3[_0x2b4a13(0x1af)](),this[_0x2b4a13(0x1ae)][_0x2b4a13(0x20e)](_0x2b4a13(0x1ff));}[_0x6e67a4(0x1e5)](){const _0x355b1a=_0x6e67a4;var _0x1399e9;this[_0x355b1a(0x1ae)]['next'](_0x355b1a(0x1b0)),(_0x1399e9=this[_0x355b1a(0x197)])==null||_0x1399e9[_0x355b1a(0x1af)](),this[_0x355b1a(0x197)]=null;}['_stopFollowing'](){const _0x1f97b1=_0x6e67a4;var _0x5e4309;this['_status$'][_0x1f97b1(0x20e)]('not-following'),(_0x5e4309=this[_0x1f97b1(0x197)])==null||_0x5e4309[_0x1f97b1(0x1af)]();}[_0x6e67a4(0x1b9)](_0x291186){const _0x38cb5c=_0x6e67a4;if([_0x38cb5c(0x219),_0x38cb5c(0x1dc),'offline'][_0x38cb5c(0x1cf)](this['_status'])||!_0x291186['data']['presenter']||_0x291186[_0x38cb5c(0x1a5)][_0x38cb5c(0x1ce)]===this[_0x38cb5c(0x1e4)][_0x38cb5c(0x1a9)]())return;this[_0x38cb5c(0x214)]==='idle'&&this[_0x38cb5c(0x18b)]();const _0x11e332=_0x291186['data'][_0x38cb5c(0x223)];Object['values'](_0x11e332)['forEach'](_0x8f062d=>{const _0x1b1ba0=_0x38cb5c;this[_0x1b1ba0(0x192)][_0x1b1ba0(0x1e8)](_0x8f062d['id'],_0x8f062d['params']?JSON[_0x1b1ba0(0x1c5)](_0x8f062d['params']):null,{'fromCollab':!0x0});});}[_0x6e67a4(0x203)](){const _0x3b9818=_0x6e67a4;var _0x1088e4;this[_0x3b9818(0x1ae)][_0x3b9818(0x20e)]('offline'),(_0x1088e4=this[_0x3b9818(0x197)])==null||_0x1088e4[_0x3b9818(0x1af)]();}['_handleOnline'](){const _0x4c966a=_0x6e67a4;this[_0x4c966a(0x1ae)][_0x4c966a(0x20e)](_0x4c966a(0x1b0)),this['_fetchOperations']();}};N=Y([_(0x2,_0x3f6d6e),_(0x3,_0x59f7c6(L)),_(0x4,_0x3ed8d7)],N);function Le(){const _0x3075e7=_0x6e67a4,_0x41fa16=_0xdbbe5b(S),_0xfe4fc7=_0xdbbe5b(_0x429aae),_0x42ec3e=_0x1621e2(()=>_0xfe4fc7[_0x3075e7(0x22b)](_0x118f42[_0x3075e7(0x1e6)]),void 0x0,!0x1,[]),[_0x2f7f74,_0x514388]=_0x5d950b(null),[_0x31226b,_0x167c93]=_0x5d950b(c[_0x3075e7(0x1ac)]),_0xfdf92a=_0x482ed3(null);return _0x52f42a(()=>(_0x42ec3e&&_0x41fa16['getLiveShareCoordinator'](_0x42ec3e['getUnitId']())[_0x3075e7(0x1e3)](_0x87f068=>{const _0x4da179=_0x3075e7;_0x514388(_0x87f068),_0xfdf92a[_0x4da179(0x1fd)]=_0x87f068[_0x4da179(0x18d)][_0x4da179(0x1c2)](_0x3939ef=>{_0x167c93(_0x3939ef);});}),()=>{const _0x21c17e=_0x3075e7;var _0x54838c;(_0x54838c=_0xfdf92a['current'])==null||_0x54838c[_0x21c17e(0x200)](),_0xfdf92a[_0x21c17e(0x1fd)]=null;}),[_0x42ec3e,_0x41fa16]),_0x2f7f74?_0x2ca373(_0x2a1e6e,{'align':_0x3075e7(0x198),'disabled':_0x31226b===c[_0x3075e7(0x216)],'className':_0x3075e7(0x1eb),'overlay':_0x2ca373(Re,{'status':_0x31226b,'coordinator':_0x2f7f74}),'children':_0x2ca373(_0x3075e7(0x1bf),{'className':_0x8ac4ff(_0x3075e7(0x217),{'univer-cursor-not-allowed':_0x31226b===c[_0x3075e7(0x216)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x31226b!==c[_0x3075e7(0x216)]}),'type':_0x3075e7(0x1bf),'children':_0x2ca373(W,{'className':_0x3075e7(0x1db)})})}):null;}function _0x135d(_0x504359,_0x1f5a82){_0x504359=_0x504359-0x186;const _0x4234cc=_0x4234();let _0x135dae=_0x4234cc[_0x504359];return _0x135dae;}function Re(_0x44459b){const _0x58cf5d=_0x6e67a4,{status:_0x382924,coordinator:_0x378098}=_0x44459b;switch(_0x382924){case c['IDLE']:return _0x2ca373($e,{'coordinator':_0x378098});case c[_0x58cf5d(0x1d3)]:return _0x2ca373(xe,{'coordinator':_0x378098});case c[_0x58cf5d(0x1d4)]:return _0x2ca373(Pe,{'coordinator':_0x378098});case c[_0x58cf5d(0x216)]:return _0x2ca373(Te,{});case c[_0x58cf5d(0x1da)]:return _0x2ca373(Ae,{'coordinator':_0x378098});default:return null;}}function $e(_0x20c0c7){const _0x43e1a7=_0x6e67a4,{coordinator:_0x2d1058}=_0x20c0c7;return _0xbe0ce5(_0x511b38,{'children':[_0x2ca373('div',{'className':_0x43e1a7(0x1e0),'children':_0x43e1a7(0x22f)}),_0x2ca373(_0x29989c,{'onClick':()=>_0x2d1058['tryStartPresenting'](),'children':_0x43e1a7(0x19e)})]});}function xe(_0xcdda64){const _0x5bb45d=_0x6e67a4,{coordinator:_0x1cd96b}=_0xcdda64;return _0xbe0ce5(_0x511b38,{'children':[_0x2ca373('div',{'className':_0x5bb45d(0x1e0),'children':_0x5bb45d(0x1fc)}),_0x2ca373(_0x29989c,{'onClick':()=>_0x1cd96b[_0x5bb45d(0x1cb)](),'children':_0x5bb45d(0x1de)})]});}function Pe(_0x5863f7){const _0x58b85d=_0x6e67a4,{coordinator:_0x1f9cec}=_0x5863f7;return _0xbe0ce5(_0x511b38,{'children':[_0x2ca373(_0x58b85d(0x18f),{'className':_0x58b85d(0x1e0),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2ca373(_0x29989c,{'variant':'text','onClick':()=>_0x1f9cec[_0x58b85d(0x1f7)](),'children':_0x58b85d(0x1f4)})]});}function Ae(_0x9d692b){const _0x5cb381=_0x6e67a4,{coordinator:_0x893fd4}=_0x9d692b;return _0xbe0ce5(_0x511b38,{'children':[_0x2ca373(_0x5cb381(0x18f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5cb381(0x1fe)}),_0x2ca373(_0x29989c,{'variant':_0x5cb381(0x1a7),'onClick':()=>_0x893fd4[_0x5cb381(0x1a0)](),'children':_0x5cb381(0x211)})]});}function Te(){const _0x48e452=_0x6e67a4;return _0x2ca373(_0x511b38,{'children':_0x48e452(0x195)});}var Fe=Object[_0x6e67a4(0x1ec)],He=(_0x156559,_0x2d2eb3,_0x3fc83f,_0x5ebf5c)=>{const _0x14506f=_0x6e67a4;for(var _0x17ab58=_0x5ebf5c>0x1?void 0x0:_0x5ebf5c?Fe(_0x2d2eb3,_0x3fc83f):_0x2d2eb3,_0x5198c7=_0x156559[_0x14506f(0x18a)]-0x1,_0x4062e8;_0x5198c7>=0x0;_0x5198c7--)(_0x4062e8=_0x156559[_0x5198c7])&&(_0x17ab58=_0x4062e8(_0x17ab58)||_0x17ab58);return _0x17ab58;},A=(_0x2b0a5a,_0x1630a7)=>(_0x5d54eb,_0x4ff6e1)=>_0x1630a7(_0x5d54eb,_0x4ff6e1,_0x2b0a5a);let m=class extends _0x5e24bb{constructor(_0x1182c4,_0x631c45){const _0x588ab3=_0x6e67a4;super(),this[_0x588ab3(0x1b8)]=_0x1182c4,this[_0x588ab3(0x209)]=_0x631c45,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x4f05c0=_0x6e67a4;this['disposeWithMe'](this[_0x4f05c0(0x209)][_0x4f05c0(0x22c)](_0x47949f[_0x4f05c0(0x1f5)],()=>_0x296dfc(Le,this['_injector'])));}};m=He([A(0x0,_0x59f7c6(_0x4531be)),A(0x1,_0x27b447)],m);const ye=_0x6e67a4(0x1aa),T={};function _0x4234(){const _0x58ace9=['registerComponent','_handleNewChangeSets','3ZJPFKY','Present\x20this\x20document','colorChannel1','LiveShareIcon','delete','type','length','_startFollowing','594696pOVxRm','status$','0\x200\x2017\x2017','div','registerSharedOperation','_stopFollowing','_commandService','UNIVER_LIVE_SHARE_PLUGIN','override','You\x27are\x20offline.','OPERATION','_commandDisposable','end','random','disposeWithMe','5yrCRed','_handleTerminate','_sharedOperations','Start','unitId','stopPresenting','displayName','_entities','entries','symbol','data','event$','default','485490pqUUdB','getMemberID','live-share.config','has','IDLE','svg','_status$','dispose','idle','getLiveShareCoordinator','_init','3394746sRIDjU','getInitialStates','children','use','mask','_injector','_handleOperation','add','_unitID','shouldShareOperation','get','defineProperty','button','pipe','from','subscribe','asObservable','getTypeOfUnitDisposed$','parse','xlink:href','_handleOnline','stringify','forEach','set','stopFollowing','_reporters','string','presenter','includes','tag','requireSession','evenodd','FOLLOWING','NOT_FOLLOWING','_configService','_handleNewHost','currentColor','1em','substring','PRESENTING','univer-size-4','not-following','LIVESHARE_REQUEST_HOST','Stop\x20following','getUnitId','univer-mb-3\x20univer-w-full\x20univer-text-sm','defs','_presenter','then','_collabSession','_beIdle','UNIVER_SHEET','complete','executeCommand','idSuffix','_startPresenting','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','getOwnPropertyDescriptor','524128cuqhrt','getConfig','univerjs-icon\x20univerjs-icon-','offline','sheet','635140DFbyiI','init','Start\x20following','HEADER_MENU','2621020btxZtJ','startFollowing','pluginName','map','trim','tryStartPresenting','You\x27re\x20following\x20the\x20presenter','current','You\x27re\x20presenting\x20the\x20document','following','unsubscribe','send','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','_handleOffline','19644BGGqJL','reverse','LIVESHARE_TERMINATE','_startLiveShareCoordinator','path','_uiPartsService','_univerInstanceService','http://www.w3.org/2000/svg','defIds','attrs','next','getValue','_collabSessionService','Stop\x20presenting','toString','getStatus','_status','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','OFFLINE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_config','presenting','21ENHpxJ','dispose$','fill','params','mutations','ONLINE','_stopPresenting','createInstance','getTypeOfUnitAdded$','operations','registerInitialStateReporter','memberID','_liveShareService','clear','onCommandExecuted','LIVESHARE_OPERATION','find','getCurrentTypeOfUnit$'];_0x4234=function(){return _0x58ace9;};return _0x4234();}var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x3d8a60,_0x28db47,_0x139ea8,_0x2063df)=>{const _0x36d01c=_0x6e67a4;for(var _0x4529f6=_0x2063df>0x1?void 0x0:_0x2063df?Ue(_0x28db47,_0x139ea8):_0x28db47,_0x4a271c=_0x3d8a60[_0x36d01c(0x18a)]-0x1,_0x58a25e;_0x4a271c>=0x0;_0x4a271c--)(_0x58a25e=_0x3d8a60[_0x4a271c])&&(_0x4529f6=_0x58a25e(_0x4529f6)||_0x4529f6);return _0x4529f6;},je=(_0x17a460,_0x1d08af)=>(_0x4195dd,_0x59a097)=>_0x1d08af(_0x4195dd,_0x59a097,_0x17a460);let I=class extends _0x5e24bb{constructor(_0x169bce){const _0x1a264c=_0x6e67a4;super(),this['_liveShareService']=_0x169bce,this[_0x1a264c(0x1b2)]();}[_0x6e67a4(0x1b2)](){const _0x173351=_0x6e67a4;[_0x13aa72['id'],_0x4e9adb['id'],_0x553e77['id']][_0x173351(0x1c9)](_0x359c56=>{const _0x3ae2c6=_0x173351;this[_0x3ae2c6(0x19a)](this[_0x3ae2c6(0x226)]['registerSharedOperation'](_0x359c56));});}};I=Ve([je(0x0,_0x59f7c6(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x492f5b,_0x530f7a,_0x5b619e)=>_0x530f7a in _0x492f5b?Me(_0x492f5b,_0x530f7a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b619e}):_0x492f5b[_0x530f7a]=_0x5b619e,We=(_0x15f183,_0x2980e6,_0x4b483e,_0x576d45)=>{const _0x28e8cb=_0x6e67a4;for(var _0x88ee99=_0x576d45>0x1?void 0x0:_0x576d45?ke(_0x2980e6,_0x4b483e):_0x2980e6,_0x48bae3=_0x15f183[_0x28e8cb(0x18a)]-0x1,_0x2566cf;_0x48bae3>=0x0;_0x48bae3--)(_0x2566cf=_0x15f183[_0x48bae3])&&(_0x88ee99=_0x2566cf(_0x88ee99)||_0x88ee99);return _0x88ee99;},F=(_0x9e523f,_0x43ee28)=>(_0x3d3fc7,_0x420bd6)=>_0x43ee28(_0x3d3fc7,_0x420bd6,_0x9e523f),B=(_0x37b214,_0x3d7f1f,_0x22a0e8)=>Ge(_0x37b214,typeof _0x3d7f1f!=_0x6e67a4(0x1a4)?_0x3d7f1f+'':_0x3d7f1f,_0x22a0e8);const Ye=_0x6e67a4(0x193);let b=class extends _0x5cd1de{constructor(_0x153859=T,_0x562ddc,_0x5a18ec){const _0x108598=_0x6e67a4;super(),this[_0x108598(0x218)]=_0x153859,this[_0x108598(0x1b8)]=_0x562ddc,this[_0x108598(0x1d5)]=_0x5a18ec;const {..._0x7ee6ec}=_0x727060({},T,this[_0x108598(0x218)]);this[_0x108598(0x1d5)]['setConfig'](ye,_0x7ee6ec);}['onStarting'](){const _0x39e603=_0x6e67a4;_0x28a48e(this[_0x39e603(0x1b8)],_0x357330([[L],[S],[I],[m]],this[_0x39e603(0x218)][_0x39e603(0x194)])),_0x25c3b0(this[_0x39e603(0x1b8)],[[I]]);}['onRendered'](){const _0x570ca8=_0x6e67a4;_0x25c3b0(this[_0x570ca8(0x1b8)],[[m]]);}};B(b,_0x6e67a4(0x189),_0x118f42['UNIVER_UNKNOWN']),B(b,_0x6e67a4(0x1f8),Ye),b=We([_0xe1d233(_0x4a1e33),F(0x1,_0x59f7c6(_0x4531be)),F(0x2,_0x3f6d6e)],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 _0x203051=_0x467a;(function(_0x528687,_0xc4d998){const _0x1b4ca4=_0x467a,_0x2cd89c=_0x528687();while(!![]){try{const _0x48f0d0=parseInt(_0x1b4ca4(0x20d))/0x1*(-parseInt(_0x1b4ca4(0x27e))/0x2)+-parseInt(_0x1b4ca4(0x253))/0x3+parseInt(_0x1b4ca4(0x23e))/0x4*(-parseInt(_0x1b4ca4(0x240))/0x5)+parseInt(_0x1b4ca4(0x238))/0x6+-parseInt(_0x1b4ca4(0x1e1))/0x7+parseInt(_0x1b4ca4(0x1e7))/0x8+-parseInt(_0x1b4ca4(0x24e))/0x9*(-parseInt(_0x1b4ca4(0x227))/0xa);if(_0x48f0d0===_0xc4d998)break;else _0x2cd89c['push'](_0x2cd89c['shift']());}catch(_0x4534cd){_0x2cd89c['push'](_0x2cd89c['shift']());}}}(_0x53e2,0x6fbbb));var J=Object[_0x203051(0x1ed)],K=(_0x3a4f01,_0xc9536b,_0x6cd13a)=>_0xc9536b in _0x3a4f01?J(_0x3a4f01,_0xc9536b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6cd13a}):_0x3a4f01[_0xc9536b]=_0x6cd13a,u=(_0x3a0c7a,_0x4b7de3,_0x4d807c)=>K(_0x3a0c7a,typeof _0x4b7de3!=_0x203051(0x203)?_0x4b7de3+'':_0x4b7de3,_0x4d807c);import{Disposable as _0x2fa88b,toDisposable as _0x4d0dd4,IUniverInstanceService as _0xfb97b7,Inject as _0x41344e,Injector as _0x247233,IConfigService as _0x59bacf,ICommandService as _0x16bfa6,RxDisposable as _0x319545,UniverInstanceType as _0xf4b6a6,DisposableCollection as _0x32a659,CommandType as _0x37b1fc,DependentOn as _0x352a09,Plugin as _0x2461be,merge as _0xbbecdb,registerDependencies as _0x3077e0,mergeOverrideWithDependencies as _0x1e8f39,touchDependencies as _0x207751}from'@univerjs/core';import{useDependency as _0x445413,useObservable as _0x3f7cfd,IUIPartsService as _0x1f7073,BuiltInUIPart as _0x2bf13e,connectInjector as _0x2b9143}from'@univerjs/ui';import{jsx as _0x4cbb7b,jsxs as _0xbc9c89,Fragment as _0x5c324a}from'react/jsx-runtime';import{Dropdown as _0x356893,clsx as _0x350e56,Button as _0x1aa64c}from'@univerjs/design';import{useRef as _0x518592,createElement as _0x54dd1c,forwardRef as _0x3d1652,useState as _0x1d0405,useEffect as _0x558e55}from'react';import{CollaborationEvent as _0x378720,parseProtocolChangeset as _0xb845cb}from'@univerjs-pro/collaboration';function _0x467a(_0x26cba8,_0x572d7e){_0x26cba8=_0x26cba8-0x1e0;const _0x53e246=_0x53e2();let _0x467a51=_0x53e246[_0x26cba8];return _0x467a51;}import{CollaborationSessionService as _0x202fa1,SessionStatus as _0x61eb11,UniverCollaborationClientPlugin as _0x5c1f28}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x126909,SetWorksheetActiveOperation as _0x38d630}from'@univerjs/sheets';import{BehaviorSubject as _0xf60712,Subject as _0x3f6d0b}from'rxjs';import{takeUntil as _0xccce48,throttleTime as _0x471bc5}from'rxjs/operators';import{SetZoomRatioOperation as _0x4a5670,SetScrollOperation as _0x23916f}from'@univerjs/sheets-ui';function k({ref:_0x39378a,..._0xbc3b37}){const _0xb74e72=_0x203051,{icon:_0x107141,id:_0x154d72,className:_0x9e8f43,extend:_0x3d2e92,..._0xe4afc6}=_0xbc3b37,_0x1cb7a3=(_0xb74e72(0x26f)+_0x154d72+'\x20'+(_0x9e8f43||''))[_0xb74e72(0x24c)](),_0x42c5b3=_0x518592('_'+Oe());return G(_0x107141,''+_0x154d72,{'defIds':_0x107141[_0xb74e72(0x1f8)],'idSuffix':_0x42c5b3[_0xb74e72(0x246)]},{'ref':_0x39378a,'className':_0x1cb7a3,..._0xe4afc6},_0x3d2e92);}function G(_0x2ef2d0,_0x16e97f,_0x2cd959,_0x506b97,_0x3d1f9f){const _0x4597f1=_0x203051;return _0x54dd1c(_0x2ef2d0[_0x4597f1(0x201)],{'key':_0x16e97f,...be(_0x2ef2d0,_0x2cd959,_0x3d1f9f),..._0x506b97},(Ee(_0x2ef2d0,_0x2cd959)[_0x4597f1(0x1e4)]||[])[_0x4597f1(0x226)]((_0x1e44a6,_0x37d13d)=>G(_0x1e44a6,_0x16e97f+'-'+_0x2ef2d0[_0x4597f1(0x201)]+'-'+_0x37d13d,_0x2cd959,void 0x0,_0x3d1f9f)));}function be(_0x52aa23,_0x4ef3a7,_0x421fcb){const _0x56d54a=_0x203051,_0x157aff={..._0x52aa23[_0x56d54a(0x243)]};_0x421fcb!=null&&_0x421fcb[_0x56d54a(0x1ee)]&&_0x157aff[_0x56d54a(0x279)]==='colorChannel1'&&(_0x157aff[_0x56d54a(0x279)]=_0x421fcb[_0x56d54a(0x1ee)]),_0x52aa23[_0x56d54a(0x201)]===_0x56d54a(0x24f)&&_0x157aff['id']&&(_0x157aff['id']=_0x157aff['id']+_0x4ef3a7[_0x56d54a(0x22d)]),Object[_0x56d54a(0x1e3)](_0x157aff)['forEach'](([_0x140d42,_0x255006])=>{const _0x1806c9=_0x56d54a;_0x140d42===_0x1806c9(0x24f)&&typeof _0x255006=='string'&&(_0x157aff[_0x140d42]=_0x255006[_0x1806c9(0x202)](/url\(#(.*)\)/,_0x1806c9(0x25b)+_0x4ef3a7[_0x1806c9(0x22d)]+')'));});const {defIds:_0x1e5e20}=_0x4ef3a7;return!_0x1e5e20||_0x1e5e20['length']===0x0||(_0x52aa23[_0x56d54a(0x201)]==='use'&&_0x157aff[_0x56d54a(0x266)]&&(_0x157aff[_0x56d54a(0x266)]=_0x157aff[_0x56d54a(0x266)]+_0x4ef3a7['idSuffix']),Object[_0x56d54a(0x1e3)](_0x157aff)[_0x56d54a(0x242)](([_0x23d416,_0x564ed0])=>{const _0x4da982=_0x56d54a;typeof _0x564ed0==_0x4da982(0x1ec)&&(_0x157aff[_0x23d416]=_0x564ed0[_0x4da982(0x202)](/url\(#(.*)\)/,'url(#$1'+_0x4ef3a7[_0x4da982(0x22d)]+')'));})),_0x157aff;}function Ee(_0x1b288a,_0x508e17){const _0x251593=_0x203051;var _0x58dc02;const {defIds:_0x5a739c}=_0x508e17;return!_0x5a739c||_0x5a739c['length']===0x0?_0x1b288a:_0x1b288a[_0x251593(0x201)]===_0x251593(0x284)&&((_0x58dc02=_0x1b288a[_0x251593(0x1e4)])!=null&&_0x58dc02[_0x251593(0x270)])?{..._0x1b288a,'children':_0x1b288a[_0x251593(0x1e4)]['map'](_0x148afb=>typeof _0x148afb[_0x251593(0x243)]['id']=='string'&&_0x5a739c&&_0x5a739c[_0x251593(0x20f)](_0x148afb['attrs']['id'])?{..._0x148afb,'attrs':{..._0x148afb[_0x251593(0x243)],'id':_0x148afb['attrs']['id']+_0x508e17['idSuffix']}}:_0x148afb)}:_0x1b288a;}function Oe(){const _0x406498=_0x203051;return Math[_0x406498(0x21d)]()[_0x406498(0x206)](0x24)[_0x406498(0x21b)](0x2,0x8);}k[_0x203051(0x21e)]=_0x203051(0x21a);const we={'tag':_0x203051(0x249),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x203051(0x248),'width':_0x203051(0x274),'height':_0x203051(0x274)},'children':[{'tag':_0x203051(0x20b),'attrs':{'fill':_0x203051(0x23c),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x203051(0x258),'fillRule':_0x203051(0x26e),'clipRule':_0x203051(0x26e)}}]},W=_0x3d1652(function(_0x502405,_0x2620af){const _0x516cd2=_0x203051;return _0x54dd1c(k,Object[_0x516cd2(0x1f2)]({},_0x502405,{'id':'live-share-icon','ref':_0x2620af,'icon':we}));});W['displayName']=_0x203051(0x26c);class L extends _0x2fa88b{constructor(){const _0x1fc9fc=_0x203051;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x1fc9fc(0x22f),new Set());}[_0x203051(0x22a)](_0x580794){const _0x5ad8f0=_0x203051;return this[_0x5ad8f0(0x200)][_0x5ad8f0(0x263)](_0x580794),_0x4d0dd4(()=>this[_0x5ad8f0(0x200)][_0x5ad8f0(0x20a)](_0x580794));}[_0x203051(0x1f7)](_0x4ec929){const _0x554514=_0x203051;return this[_0x554514(0x22f)][_0x554514(0x263)](_0x4ec929),_0x4d0dd4(()=>this['_reporters'][_0x554514(0x20a)](_0x4ec929));}[_0x203051(0x256)](_0x54561d){const _0x21a75b=_0x203051;return this[_0x21a75b(0x200)][_0x21a75b(0x1f1)](_0x54561d);}[_0x203051(0x239)](_0xab4032){const _0x371423=_0x203051;return Array[_0x371423(0x236)](this[_0x371423(0x22f)])[_0x371423(0x226)](_0x589ba1=>_0x589ba1(_0xab4032));}}var Ne=Object[_0x203051(0x20e)],Y=(_0x34ef8c,_0x257cf9,_0x21e8ad,_0x21b265)=>{const _0x51a789=_0x203051;for(var _0x113753=_0x21b265>0x1?void 0x0:_0x21b265?Ne(_0x257cf9,_0x21e8ad):_0x257cf9,_0x41a0f7=_0x34ef8c[_0x51a789(0x270)]-0x1,_0x4508e4;_0x41a0f7>=0x0;_0x41a0f7--)(_0x4508e4=_0x34ef8c[_0x41a0f7])&&(_0x113753=_0x4508e4(_0x113753)||_0x113753);return _0x113753;},_=(_0x2b58e9,_0x44395f)=>(_0x49f7a9,_0x473407)=>_0x44395f(_0x49f7a9,_0x473407,_0x2b58e9);let S=class extends _0x319545{constructor(_0x3592b0,_0x5818e1,_0x5ddd67){const _0x1eaa54=_0x203051;super(),u(this,_0x1eaa54(0x1fe),new Map()),(this[_0x1eaa54(0x276)]=_0x3592b0,this[_0x1eaa54(0x27b)]=_0x5818e1,this[_0x1eaa54(0x1f5)]=_0x5ddd67,this[_0x1eaa54(0x280)]());}async[_0x203051(0x250)](_0x99b3e4){const _0x3f66d5=_0x203051;return this[_0x3f66d5(0x1fe)][_0x3f66d5(0x1f1)](_0x99b3e4)||await this['_startLiveShareCoordinator'](_0x99b3e4),this['_entities']['get'](_0x99b3e4);}[_0x203051(0x24d)](_0x4e428e){const _0x507789=_0x203051;var _0x23a415;return(_0x23a415=this[_0x507789(0x1fe)][_0x507789(0x1e0)](_0x4e428e))!=null?_0x23a415:null;}[_0x203051(0x280)](){const _0x204735=_0x203051;this[_0x204735(0x276)][_0x204735(0x283)](_0xf4b6a6[_0x204735(0x229)])[_0x204735(0x232)](_0xccce48(this[_0x204735(0x233)]))[_0x204735(0x1f4)](async _0x213e95=>{const _0x1851cf=_0x204735,_0x23f607=_0x213e95[_0x1851cf(0x25c)]();this[_0x1851cf(0x1fe)][_0x1851cf(0x1f1)](_0x23f607)||this[_0x1851cf(0x27c)](_0x23f607);}),this[_0x204735(0x276)][_0x204735(0x221)](_0xf4b6a6[_0x204735(0x229)])[_0x204735(0x232)](_0xccce48(this[_0x204735(0x233)]))[_0x204735(0x1f4)](_0x4eeff4=>{const _0x46231c=_0x204735,_0x3edf6c=_0x4eeff4['getUnitId'](),_0x1c1059=this[_0x46231c(0x1fe)]['get'](_0x3edf6c);_0x1c1059==null||_0x1c1059[_0x46231c(0x269)]();});}async[_0x203051(0x27c)](_0x35c2c7){const _0x2465fd=_0x203051,_0x2787e8=await this[_0x2465fd(0x1f5)][_0x2465fd(0x23f)](_0x35c2c7),_0x5b41a0=this['_injector']['createInstance'](N,_0x35c2c7,_0x2787e8);return _0x5b41a0[_0x2465fd(0x1eb)](),this[_0x2465fd(0x1fe)]['set'](_0x35c2c7,_0x5b41a0),_0x5b41a0;}};S=Y([_(0x0,_0xfb97b7),_(0x1,_0x41344e(_0x247233)),_(0x2,_0x41344e(_0x202fa1))],S);var c=(_0x3217b2=>(_0x3217b2['OFFLINE']=_0x203051(0x218),_0x3217b2[_0x203051(0x21f)]='idle',_0x3217b2[_0x203051(0x215)]=_0x203051(0x228),_0x3217b2[_0x203051(0x223)]=_0x203051(0x1ef),_0x3217b2[_0x203051(0x235)]='presenting',_0x3217b2))(c||{});const Ce=_0x203051(0x219),De=0xc8;let N=class extends _0x319545{constructor(_0x6c032f,_0x3f0c65,_0x52bbb6,_0x1d34dd,_0x57be91){const _0x20dfd0=_0x203051;super(),u(this,_0x20dfd0(0x1fb),new _0xf60712(_0x20dfd0(0x210))),u(this,_0x20dfd0(0x22b),this['_status$']['asObservable']()),u(this,_0x20dfd0(0x280),!0x1),u(this,_0x20dfd0(0x23b),null),u(this,_0x20dfd0(0x289),null),(this[_0x20dfd0(0x1f3)]=_0x6c032f,this[_0x20dfd0(0x212)]=_0x3f0c65,this[_0x20dfd0(0x264)]=_0x52bbb6,this[_0x20dfd0(0x222)]=_0x1d34dd,this['_commandService']=_0x57be91);}get['_status'](){const _0x519881=_0x203051;return this[_0x519881(0x1fb)][_0x519881(0x255)]();}[_0x203051(0x269)](){const _0x1d33cb=_0x203051;var _0x264949;(_0x264949=this[_0x1d33cb(0x23b)])==null||_0x264949['dispose'](),this[_0x1d33cb(0x1fb)][_0x1d33cb(0x26d)](_0x1d33cb(0x210)),this[_0x1d33cb(0x1fb)][_0x1d33cb(0x27d)]();}[_0x203051(0x27f)](){const _0x35b211=_0x203051;return this[_0x35b211(0x271)];}[_0x203051(0x1eb)](){const _0x997e05=_0x203051;this[_0x997e05(0x280)]||(this[_0x997e05(0x280)]=!0x0,this[_0x997e05(0x212)]['sessionStatus$'][_0x997e05(0x232)](_0xccce48(this[_0x997e05(0x233)]))['subscribe'](_0x4d3cda=>{const _0x2ccb1b=_0x997e05;switch(_0x4d3cda){case _0x61eb11[_0x2ccb1b(0x267)]:this[_0x2ccb1b(0x1fd)]();break;case _0x61eb11[_0x2ccb1b(0x241)]:this[_0x2ccb1b(0x251)]();break;}}),this[_0x997e05(0x212)][_0x997e05(0x23a)][_0x997e05(0x232)](_0xccce48(this[_0x997e05(0x233)]))[_0x997e05(0x1f4)](_0x18fd1f=>{const _0x31a252=_0x997e05,{eventID:_0x4a630f}=_0x18fd1f;switch(_0x4a630f){case _0x378720[_0x31a252(0x213)]:this[_0x31a252(0x245)](_0x18fd1f);break;case _0x378720[_0x31a252(0x287)]:this['_handleOperation'](_0x18fd1f);break;case _0x378720[_0x31a252(0x1e9)]:this[_0x31a252(0x1f9)]();break;case _0x378720['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x18fd1f);break;}}));}[_0x203051(0x252)](){const _0xdf0b86=_0x203051;this[_0xdf0b86(0x212)][_0xdf0b86(0x254)]({'eventID':_0x378720[_0xdf0b86(0x25e)],'data':{'unitID':this['_unitID'],'userID':this[_0xdf0b86(0x212)][_0xdf0b86(0x272)]()}},this['_unitID']);}[_0x203051(0x260)](){const _0x46223d=_0x203051;this[_0x46223d(0x271)]===_0x46223d(0x1e8)&&(this[_0x46223d(0x1fb)][_0x46223d(0x26d)]('idle'),this['_collabSession']['send']({'eventID':_0x378720[_0x46223d(0x1e9)],'data':{'unitID':this[_0x46223d(0x1f3)]}},this[_0x46223d(0x1f3)]));}[_0x203051(0x21c)](){const _0x3b6006=_0x203051;this[_0x3b6006(0x271)]===_0x3b6006(0x1ef)&&(this[_0x3b6006(0x1fb)][_0x3b6006(0x26d)]('following'),this[_0x3b6006(0x282)]());}[_0x203051(0x268)](){const _0xd742dc=_0x203051;this[_0xd742dc(0x271)]===_0xd742dc(0x228)&&this['_stopFollowing']();}[_0x203051(0x245)](_0x2f3ca8){const _0x5ad48f=_0x203051,{presenter:_0x5aba50}=_0x2f3ca8[_0x5ad48f(0x1ea)],_0x3ccae5=this[_0x5ad48f(0x212)]['getMemberID']();this[_0x5ad48f(0x289)]=_0x5aba50,_0x5aba50===_0x3ccae5?(this['_stopFollowing'](),this[_0x5ad48f(0x209)]()):this[_0x5ad48f(0x271)]!=='not-following'&&(this[_0x5ad48f(0x247)](),this[_0x5ad48f(0x282)]());}[_0x203051(0x224)](){const _0x5646a3=_0x203051,_0x3597b5={'eventID':_0x378720['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x5646a3(0x254)](_0x3597b5,this['_unitID']);}[_0x203051(0x1f9)](){const _0x5cfc49=_0x203051;this['_presenter']=null,this[_0x5cfc49(0x271)]!==_0x5cfc49(0x1e8)&&this['_beIdle']();}[_0x203051(0x277)](_0x3c2b7c){const _0x118e45=_0x203051;if(this[_0x118e45(0x271)]===_0x118e45(0x228)&&this[_0x118e45(0x289)]===_0x3c2b7c[_0x118e45(0x1ea)]['memberID']){const _0x55dad7=_0xb845cb(_0x3c2b7c['data'])[_0x118e45(0x204)][_0x118e45(0x261)]()[_0x118e45(0x27a)](_0x54e9c5=>_0x54e9c5['id']===_0x126909['id']);if(_0x55dad7){const _0x175866=_0x55dad7['params'][_0x118e45(0x262)],_0x3ba3cb=_0x55dad7[_0x118e45(0x265)][_0x118e45(0x275)]['id'];setTimeout(()=>{const _0x179aeb=_0x118e45;this['_commandService'][_0x179aeb(0x26a)](_0x38d630['id'],{'unitId':_0x175866,'subUnitId':_0x3ba3cb},{'fromCollab':!0x0});});}}}[_0x203051(0x209)](){const _0x5e8233=_0x203051;this[_0x5e8233(0x1fb)][_0x5e8233(0x26d)](_0x5e8233(0x1e8));const _0x107da6=new Map(),_0x1d477e=this['_commandDisposable']=new _0x32a659();_0x1d477e[_0x5e8233(0x263)](_0x4d0dd4(()=>{const _0x528587=_0x5e8233;_0x107da6[_0x528587(0x242)](_0x280608=>_0x280608[_0x528587(0x27d)]()),_0x107da6[_0x528587(0x230)]();})),_0x1d477e[_0x5e8233(0x263)](this[_0x5e8233(0x220)]['onCommandExecuted'](_0x5f1579=>{const _0x18529e=_0x5e8233;var _0x5806e0;if(_0x5f1579['type']!==_0x37b1fc[_0x18529e(0x20c)]||!this[_0x18529e(0x222)][_0x18529e(0x256)](_0x5f1579['id']))return;const {id:_0x41c47f}=_0x5f1579;let _0x22d9ef;_0x107da6[_0x18529e(0x1f1)](_0x41c47f)?_0x22d9ef=_0x107da6[_0x18529e(0x1e0)](_0x41c47f):(_0x22d9ef=new _0x3f6d0b(),_0x107da6[_0x18529e(0x237)](_0x41c47f,_0x22d9ef),_0x22d9ef[_0x18529e(0x232)](_0x471bc5((_0x5806e0=this[_0x18529e(0x264)][_0x18529e(0x1f0)](Ce))!=null?_0x5806e0:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x18529e(0x1f4)](_0x2b4d06=>{const _0xd1771e=_0x18529e;this[_0xd1771e(0x212)]['send']({'eventID':_0x378720[_0xd1771e(0x287)],'data':{'unitID':this[_0xd1771e(0x1f3)],'operations':{[_0x2b4d06['id']]:{'id':_0x2b4d06['id'],'params':JSON['stringify'](_0x2b4d06[_0xd1771e(0x265)])}}}},this[_0xd1771e(0x1f3)]);})),_0x22d9ef[_0x18529e(0x26d)](_0x5f1579);})),this[_0x5e8233(0x222)]['getInitialStates'](this[_0x5e8233(0x1f3)])[_0x5e8233(0x242)](_0x467fe4=>this[_0x5e8233(0x212)][_0x5e8233(0x254)]({'eventID':_0x378720[_0x5e8233(0x287)],'data':{'unitID':this[_0x5e8233(0x1f3)],'operations':{[_0x467fe4['id']]:{'id':_0x467fe4['id'],'params':JSON['stringify'](_0x467fe4[_0x5e8233(0x265)])}}}},this[_0x5e8233(0x1f3)]));}['_stopPresenting'](){const _0x2b7f69=_0x203051;var _0x5ed851;this[_0x2b7f69(0x1fb)][_0x2b7f69(0x26d)](_0x2b7f69(0x210)),(_0x5ed851=this[_0x2b7f69(0x23b)])==null||_0x5ed851[_0x2b7f69(0x269)](),this[_0x2b7f69(0x23b)]=null;}[_0x203051(0x282)](){const _0x15dee8=_0x203051;var _0x453604;(_0x453604=this[_0x15dee8(0x23b)])==null||_0x453604[_0x15dee8(0x269)](),this['_status$'][_0x15dee8(0x26d)](_0x15dee8(0x228));}[_0x203051(0x1ff)](){const _0x505683=_0x203051;var _0x382546;this[_0x505683(0x1fb)][_0x505683(0x26d)](_0x505683(0x210)),(_0x382546=this[_0x505683(0x23b)])==null||_0x382546['dispose'](),this['_commandDisposable']=null;}[_0x203051(0x26b)](){const _0x23b79a=_0x203051;var _0x290b16;this[_0x23b79a(0x1fb)]['next']('not-following'),(_0x290b16=this[_0x23b79a(0x23b)])==null||_0x290b16[_0x23b79a(0x269)]();}[_0x203051(0x207)](_0x2e5815){const _0x4cb2f9=_0x203051;if(['presenting',_0x4cb2f9(0x1ef),_0x4cb2f9(0x218)][_0x4cb2f9(0x20f)](this[_0x4cb2f9(0x271)])||!_0x2e5815[_0x4cb2f9(0x1ea)][_0x4cb2f9(0x273)]||_0x2e5815[_0x4cb2f9(0x1ea)][_0x4cb2f9(0x273)]===this[_0x4cb2f9(0x212)][_0x4cb2f9(0x272)]())return;this[_0x4cb2f9(0x271)]===_0x4cb2f9(0x210)&&this['_startFollowing']();const _0x49f5c1=_0x2e5815[_0x4cb2f9(0x1ea)][_0x4cb2f9(0x24a)];Object['values'](_0x49f5c1)[_0x4cb2f9(0x242)](_0x1daf99=>{const _0x5e07e0=_0x4cb2f9;this['_commandService'][_0x5e07e0(0x26a)](_0x1daf99['id'],_0x1daf99[_0x5e07e0(0x265)]?JSON['parse'](_0x1daf99[_0x5e07e0(0x265)]):null,{'fromCollab':!0x0});});}[_0x203051(0x1fd)](){const _0x594f46=_0x203051;var _0x527ba4;this['_status$'][_0x594f46(0x26d)](_0x594f46(0x218)),(_0x527ba4=this[_0x594f46(0x23b)])==null||_0x527ba4['dispose']();}[_0x203051(0x251)](){const _0x509c0f=_0x203051;this[_0x509c0f(0x1fb)][_0x509c0f(0x26d)]('idle'),this[_0x509c0f(0x224)]();}};N=Y([_(0x2,_0x59bacf),_(0x3,_0x41344e(L)),_(0x4,_0x16bfa6)],N);function Le(){const _0x5e929c=_0x203051,_0xe3db9f=_0x445413(S),_0x40b288=_0x445413(_0xfb97b7),_0xcfee85=_0x3f7cfd(()=>_0x40b288[_0x5e929c(0x205)](_0xf4b6a6[_0x5e929c(0x229)]),void 0x0,!0x1,[]),[_0x257578,_0x495be0]=_0x1d0405(null),[_0x3c3b08,_0x466324]=_0x1d0405(c[_0x5e929c(0x21f)]),_0x2815dd=_0x518592(null);return _0x558e55(()=>(_0xcfee85&&_0xe3db9f[_0x5e929c(0x250)](_0xcfee85['getUnitId']())[_0x5e929c(0x1e5)](_0x5f178b=>{const _0x2c2033=_0x5e929c;_0x495be0(_0x5f178b),_0x2815dd[_0x2c2033(0x246)]=_0x5f178b['status$'][_0x2c2033(0x1f4)](_0xc0edfc=>{_0x466324(_0xc0edfc);});}),()=>{const _0x5b481b=_0x5e929c;var _0x550bda;(_0x550bda=_0x2815dd[_0x5b481b(0x246)])==null||_0x550bda[_0x5b481b(0x288)](),_0x2815dd[_0x5b481b(0x246)]=null;}),[_0xcfee85,_0xe3db9f]),_0x257578?_0x4cbb7b(_0x356893,{'align':_0x5e929c(0x214),'disabled':_0x3c3b08===c[_0x5e929c(0x267)],'className':_0x5e929c(0x286),'overlay':_0x4cbb7b(Re,{'status':_0x3c3b08,'coordinator':_0x257578}),'children':_0x4cbb7b(_0x5e929c(0x234),{'className':_0x350e56('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3c3b08===c[_0x5e929c(0x267)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3c3b08!==c[_0x5e929c(0x267)]}),'type':_0x5e929c(0x234),'children':_0x4cbb7b(W,{'className':_0x5e929c(0x25d)})})}):null;}function Re(_0x37143f){const _0x4d440f=_0x203051,{status:_0x38a54f,coordinator:_0x15a64f}=_0x37143f;switch(_0x38a54f){case c[_0x4d440f(0x21f)]:return _0x4cbb7b($e,{'coordinator':_0x15a64f});case c[_0x4d440f(0x215)]:return _0x4cbb7b(xe,{'coordinator':_0x15a64f});case c[_0x4d440f(0x223)]:return _0x4cbb7b(Pe,{'coordinator':_0x15a64f});case c[_0x4d440f(0x267)]:return _0x4cbb7b(Te,{});case c[_0x4d440f(0x235)]:return _0x4cbb7b(Ae,{'coordinator':_0x15a64f});default:return null;}}function $e(_0x399c82){const _0x36fac6=_0x203051,{coordinator:_0x3f9790}=_0x399c82;return _0xbc9c89(_0x5c324a,{'children':[_0x4cbb7b(_0x36fac6(0x25a),{'className':_0x36fac6(0x28a),'children':_0x36fac6(0x208)}),_0x4cbb7b(_0x1aa64c,{'onClick':()=>_0x3f9790[_0x36fac6(0x252)](),'children':_0x36fac6(0x22e)})]});}function xe(_0x5df9e2){const _0x5f0ef1=_0x203051,{coordinator:_0x3c3964}=_0x5df9e2;return _0xbc9c89(_0x5c324a,{'children':[_0x4cbb7b(_0x5f0ef1(0x25a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5f0ef1(0x1e6)}),_0x4cbb7b(_0x1aa64c,{'onClick':()=>_0x3c3964['stopFollowing'](),'children':_0x5f0ef1(0x278)})]});}function Pe(_0x352b59){const _0x7ea9e1=_0x203051,{coordinator:_0x47fa63}=_0x352b59;return _0xbc9c89(_0x5c324a,{'children':[_0x4cbb7b(_0x7ea9e1(0x25a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x7ea9e1(0x231)}),_0x4cbb7b(_0x1aa64c,{'variant':'text','onClick':()=>_0x47fa63[_0x7ea9e1(0x21c)](),'children':_0x7ea9e1(0x244)})]});}function Ae(_0x204052){const _0x29c4fe=_0x203051,{coordinator:_0xedf115}=_0x204052;return _0xbc9c89(_0x5c324a,{'children':[_0x4cbb7b(_0x29c4fe(0x25a),{'className':_0x29c4fe(0x28a),'children':_0x29c4fe(0x259)}),_0x4cbb7b(_0x1aa64c,{'variant':_0x29c4fe(0x217),'onClick':()=>_0xedf115['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){const _0x3d89a4=_0x203051;return _0x4cbb7b(_0x5c324a,{'children':_0x3d89a4(0x24b)});}function _0x53e2(){const _0x58b76e=['toString','_handleOperation','Present\x20this\x20document','_startPresenting','delete','path','OPERATION','455683FXjrbQ','getOwnPropertyDescriptor','includes','idle','live-share.config','_collabSession','LIVESHARE_NEW_HOST','end','FOLLOWING','_config','default','offline','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','substring','startFollowing','random','displayName','IDLE','_commandService','getTypeOfUnitDisposed$','_liveShareService','NOT_FOLLOWING','_fetchOperations','registerComponent','map','27481390cFRNNj','following','UNIVER_SHEET','registerSharedOperation','status$','UNIVER_UNKNOWN','idSuffix','Start','_reporters','clear','You\x27re\x20not\x20following\x20the\x20presenter','pipe','dispose$','button','PRESENTING','from','set','1793424tIizvy','getInitialStates','event$','_commandDisposable','currentColor','_mountLiveShare','232AWrXli','requireSession','57170NILJfT','ONLINE','forEach','attrs','Start\x20following','_handleNewHost','current','_stopPresenting','0\x200\x2017\x2017','svg','operations','You\x27are\x20offline.','trim','getLiveShareCoordinatorSync','9iRoSHI','mask','getLiveShareCoordinator','_handleOnline','tryStartPresenting','1710696OFCKpS','send','getValue','shouldShareOperation','_uiPartsService','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','You\x27re\x20presenting\x20the\x20document','div','url(#$1','getUnitId','univer-size-4','LIVESHARE_REQUEST_HOST','setConfig','stopPresenting','reverse','unitId','add','_configService','params','xlink:href','OFFLINE','stopFollowing','dispose','executeCommand','_stopFollowing','LiveShareIcon','next','evenodd','univerjs-icon\x20univerjs-icon-','length','_status','getMemberID','presenter','1em','sheet','_univerInstanceService','_handleNewChangeSets','Stop\x20following','fill','find','_injector','_startLiveShareCoordinator','complete','4yViPbm','getStatus','_init','disposeWithMe','_startFollowing','getTypeOfUnitAdded$','defs','override','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','LIVESHARE_OPERATION','unsubscribe','_presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','get','3139297DbuYkz','HEADER_MENU','entries','children','then','You\x27re\x20following\x20the\x20presenter','30856kdxcZX','presenting','LIVESHARE_TERMINATE','data','init','string','defineProperty','colorChannel1','not-following','getConfig','has','assign','_unitID','subscribe','_collabSessionService','UNIVER_LIVE_SHARE_PLUGIN','registerInitialStateReporter','defIds','_handleTerminate','type','_status$','onStarting','_handleOffline','_entities','_beIdle','_sharedOperations','tag','replace','symbol','mutations','getCurrentTypeOfUnit$'];_0x53e2=function(){return _0x58b76e;};return _0x53e2();}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x3aa46f,_0x19b0ba,_0x2a37f0,_0x39bc96)=>{for(var _0x4f4575=_0x39bc96>0x1?void 0x0:_0x39bc96?Fe(_0x19b0ba,_0x2a37f0):_0x19b0ba,_0x1bb5f1=_0x3aa46f['length']-0x1,_0x221e07;_0x1bb5f1>=0x0;_0x1bb5f1--)(_0x221e07=_0x3aa46f[_0x1bb5f1])&&(_0x4f4575=_0x221e07(_0x4f4575)||_0x4f4575);return _0x4f4575;},A=(_0x58065c,_0x19e361)=>(_0x3f7948,_0x250d24)=>_0x19e361(_0x3f7948,_0x250d24,_0x58065c);let m=class extends _0x2fa88b{constructor(_0x299cc2,_0x416853){const _0x27ef35=_0x203051;super(),this[_0x27ef35(0x27b)]=_0x299cc2,this[_0x27ef35(0x257)]=_0x416853,this[_0x27ef35(0x23d)]();}[_0x203051(0x23d)](){const _0x346257=_0x203051;this[_0x346257(0x281)](this[_0x346257(0x257)][_0x346257(0x225)](_0x2bf13e[_0x346257(0x1e2)],()=>_0x2b9143(Le,this[_0x346257(0x27b)])));}};m=He([A(0x0,_0x41344e(_0x247233)),A(0x1,_0x1f7073)],m);const ye=_0x203051(0x211),T={};var Ue=Object[_0x203051(0x20e)],Ve=(_0x5e1d89,_0x5d6f96,_0x620112,_0x3c3f11)=>{for(var _0x4d8e9d=_0x3c3f11>0x1?void 0x0:_0x3c3f11?Ue(_0x5d6f96,_0x620112):_0x5d6f96,_0x9d08d8=_0x5e1d89['length']-0x1,_0x6e0186;_0x9d08d8>=0x0;_0x9d08d8--)(_0x6e0186=_0x5e1d89[_0x9d08d8])&&(_0x4d8e9d=_0x6e0186(_0x4d8e9d)||_0x4d8e9d);return _0x4d8e9d;},je=(_0x426fe1,_0x1a648a)=>(_0xb03e87,_0x4f56b7)=>_0x1a648a(_0xb03e87,_0x4f56b7,_0x426fe1);let I=class extends _0x2fa88b{constructor(_0x31fdbe){const _0x3c732f=_0x203051;super(),this[_0x3c732f(0x222)]=_0x31fdbe,this[_0x3c732f(0x280)]();}[_0x203051(0x280)](){[_0x4a5670['id'],_0x23916f['id'],_0x38d630['id']]['forEach'](_0x3f5c30=>{const _0x4046f0=_0x467a;this['disposeWithMe'](this['_liveShareService'][_0x4046f0(0x22a)](_0x3f5c30));});}};I=Ve([je(0x0,_0x41344e(L))],I);var Me=Object[_0x203051(0x1ed)],ke=Object[_0x203051(0x20e)],Ge=(_0x14d5a0,_0x1e4a02,_0x55a88d)=>_0x1e4a02 in _0x14d5a0?Me(_0x14d5a0,_0x1e4a02,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55a88d}):_0x14d5a0[_0x1e4a02]=_0x55a88d,We=(_0x203698,_0xe0342b,_0x173f45,_0x1e0285)=>{for(var _0x3035e0=_0x1e0285>0x1?void 0x0:_0x1e0285?ke(_0xe0342b,_0x173f45):_0xe0342b,_0x4d4f5e=_0x203698['length']-0x1,_0x42fb1a;_0x4d4f5e>=0x0;_0x4d4f5e--)(_0x42fb1a=_0x203698[_0x4d4f5e])&&(_0x3035e0=_0x42fb1a(_0x3035e0)||_0x3035e0);return _0x3035e0;},F=(_0x4a60cb,_0x281b58)=>(_0x46b207,_0x5ec506)=>_0x281b58(_0x46b207,_0x5ec506,_0x4a60cb),B=(_0x4b3bc4,_0x4df8ed,_0x1e631a)=>Ge(_0x4b3bc4,typeof _0x4df8ed!=_0x203051(0x203)?_0x4df8ed+'':_0x4df8ed,_0x1e631a);const Ye=_0x203051(0x1f6);let b=class extends _0x2461be{constructor(_0x23a960=T,_0xcc65bf,_0x3f4f40){const _0x1474aa=_0x203051;super(),this[_0x1474aa(0x216)]=_0x23a960,this[_0x1474aa(0x27b)]=_0xcc65bf,this[_0x1474aa(0x264)]=_0x3f4f40;const {..._0x3bc066}=_0xbbecdb({},T,this['_config']);this[_0x1474aa(0x264)][_0x1474aa(0x25f)](ye,_0x3bc066);}[_0x203051(0x1fc)](){const _0x5e3202=_0x203051;_0x3077e0(this[_0x5e3202(0x27b)],_0x1e8f39([[L],[S],[I],[m]],this[_0x5e3202(0x216)][_0x5e3202(0x285)])),_0x207751(this[_0x5e3202(0x27b)],[[I]]);}['onRendered'](){const _0xe6b90a=_0x203051;_0x207751(this[_0xe6b90a(0x27b)],[[m]]);}};B(b,_0x203051(0x1fa),_0xf4b6a6[_0x203051(0x22c)]),B(b,'pluginName',Ye),b=We([_0x352a09(_0x5c1f28),F(0x1,_0x41344e(_0x247233)),F(0x2,_0x59bacf)],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(_0x2bcfb7,_0x12b15e){const _0x4ae564=_0x3847,_0x47f597=_0x2bcfb7();while(!![]){try{const _0x28588d=-parseInt(_0x4ae564(0x117))/0x1+-parseInt(_0x4ae564(0x11c))/0x2*(parseInt(_0x4ae564(0xf4))/0x3)+parseInt(_0x4ae564(0x110))/0x4*(-parseInt(_0x4ae564(0x12c))/0x5)+-parseInt(_0x4ae564(0x122))/0x6+parseInt(_0x4ae564(0xfc))/0x7*(parseInt(_0x4ae564(0x126))/0x8)+parseInt(_0x4ae564(0x116))/0x9*(-parseInt(_0x4ae564(0x115))/0xa)+parseInt(_0x4ae564(0x125))/0xb;if(_0x28588d===_0x12b15e)break;else _0x47f597['push'](_0x47f597['shift']());}catch(_0x44ed9f){_0x47f597['push'](_0x47f597['shift']());}}}(_0x23d8,0xe8dce),function(_0x148bf2,_0x30ad78){const _0x257417=_0x3847;typeof exports==_0x257417(0x118)&&typeof module<'u'?_0x30ad78(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==_0x257417(0x111)&&define[_0x257417(0x104)]?define([_0x257417(0x11e),_0x257417(0xf6),_0x257417(0x124),_0x257417(0x109),_0x257417(0x114),_0x257417(0x103)],_0x30ad78):(_0x148bf2=typeof globalThis<'u'?globalThis:_0x148bf2||self,_0x30ad78(_0x148bf2['UniverProLiveShare'],_0x148bf2[_0x257417(0x107)],_0x148bf2[_0x257417(0x10a)],_0x148bf2[_0x257417(0xf7)],_0x148bf2['UniverSheetsFacade'],_0x148bf2['UniverCoreFacade']));}(this,function(_0x796e8c,_0x381693,_0x429ae2,_0x84ba6a,_0x4684f4,_0x10b60d){'use strict';const _0x2d46fc=_0x3847;class _0x1c3db3 extends _0x4684f4[_0x2d46fc(0xfa)]{[_0x2d46fc(0x11d)](_0xc03c0d,_0x2e2500,_0x2bad66,_0x190d33,_0x39b32b){const _0x590423=_0x2d46fc,_0x4ffaa2=_0xc03c0d[_0x590423(0x12b)](_0x796e8c[_0x590423(0x10b)]),_0x190ade=_0xc03c0d[_0x590423(0x12b)](_0x381693[_0x590423(0x105)]),_0x2e5d66=_0x2e2500[_0x590423(0x113)](),_0xd3c2ff=_0x2e2500[_0x590423(0xf5)](),_0x4c8757=_0x4ffaa2[_0x590423(0x12a)](_0x2e5d66);(_0x4c8757==null?void 0x0:_0x4c8757[_0x590423(0x10f)]())!==_0x796e8c[_0x590423(0x112)][_0x590423(0x129)]||(_0x2bad66[_0x590423(0x127)]()!==_0xd3c2ff['getSheetId']()&&this['_commandService']['executeCommand'](_0x429ae2[_0x590423(0x120)]['id'],{'unitId':_0x2e5d66,'subUnitId':_0x2bad66[_0x590423(0x127)]()}),!_0x190ade[_0x590423(0x10d)](_0x2e5d66))||_0x39b32b[_0x590423(0x11a)](_0x84ba6a[_0x590423(0x10e)]['id'],{'unitId':_0x2e2500['getUnitId'](),'sheetId':_0x2bad66[_0x590423(0x127)](),'sheetViewStartRow':_0x190d33[_0x590423(0xfe)],'sheetViewStartColumn':_0x190d33[_0x590423(0x108)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4684f4[_0x2d46fc(0xfa)][_0x2d46fc(0x102)](_0x1c3db3);class _0x3aeb4c extends _0x10b60d[_0x2d46fc(0x128)]{[_0x2d46fc(0x10c)](){const _0x318eee=_0x2d46fc;var _0x3ab2ac,_0x98fcb7;const _0x3e6d04=this[_0x318eee(0x100)][_0x318eee(0x12b)](_0x796e8c['LiveShareController']),_0x4f92d9=(_0x3ab2ac=this[_0x318eee(0xfb)]())==null?void 0x0:_0x3ab2ac[_0x318eee(0x119)]();if(!_0x4f92d9)throw new Error('No\x20active\x20workbook\x20found.');const _0xd9e953=_0x3e6d04['getLiveShareCoordinatorSync'](_0x4f92d9);return(_0x98fcb7=_0xd9e953==null?void 0x0:_0xd9e953['getStatus']())!=null?_0x98fcb7:_0x796e8c[_0x318eee(0x112)][_0x318eee(0xfd)];}[_0x2d46fc(0xff)](){const _0x21c932=_0x2d46fc;var _0x3b4471;const _0x24792c=this['_injector'][_0x21c932(0x12b)](_0x796e8c[_0x21c932(0x10b)]),_0x32a629=(_0x3b4471=this[_0x21c932(0xfb)]())==null?void 0x0:_0x3b4471['getId']();if(!_0x32a629)throw new Error(_0x21c932(0x106));const _0x222b98=_0x24792c[_0x21c932(0x12a)](_0x32a629);if(!_0x222b98)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x222b98[_0x21c932(0xff)]();}[_0x2d46fc(0xf8)](){const _0xa84f4c=_0x2d46fc;var _0x15aedc;const _0x2b635c=this[_0xa84f4c(0x100)][_0xa84f4c(0x12b)](_0x796e8c[_0xa84f4c(0x10b)]),_0x138f32=(_0x15aedc=this[_0xa84f4c(0xfb)]())==null?void 0x0:_0x15aedc['getId']();if(!_0x138f32)throw new Error(_0xa84f4c(0x106));const _0x1f0942=_0x2b635c[_0xa84f4c(0x12a)](_0x138f32);if(!_0x1f0942)throw new Error(_0xa84f4c(0x121));_0x1f0942['stopFollowing']();}[_0x2d46fc(0x11b)](){const _0x1400e1=_0x2d46fc;var _0x1a97cc;const _0xe70d63=this['_injector'][_0x1400e1(0x12b)](_0x796e8c[_0x1400e1(0x10b)]),_0x359bce=(_0x1a97cc=this['getActiveWorkbook']())==null?void 0x0:_0x1a97cc[_0x1400e1(0x119)]();if(!_0x359bce)throw new Error(_0x1400e1(0x106));const _0x30c91e=_0xe70d63[_0x1400e1(0x12a)](_0x359bce);if(!_0x30c91e)throw new Error(_0x1400e1(0x121));_0x30c91e[_0x1400e1(0x11f)]();}[_0x2d46fc(0xf9)](){const _0x406d6d=_0x2d46fc;var _0x51fafc;const _0x537eb5=this[_0x406d6d(0x100)][_0x406d6d(0x12b)](_0x796e8c[_0x406d6d(0x10b)]),_0xba92b4=(_0x51fafc=this[_0x406d6d(0xfb)]())==null?void 0x0:_0x51fafc[_0x406d6d(0x119)]();if(!_0xba92b4)throw new Error(_0x406d6d(0x106));const _0x50b231=_0x537eb5[_0x406d6d(0x12a)](_0xba92b4);if(!_0x50b231)throw new Error(_0x406d6d(0x121));_0x50b231['stopPresenting']();}}_0x10b60d[_0x2d46fc(0x128)][_0x2d46fc(0x102)](_0x3aeb4c);class _0x389abe extends _0x10b60d[_0x2d46fc(0x101)]{get[_0x2d46fc(0x123)](){return _0x796e8c['LiveShareStatus'];}}_0x10b60d['FEnum'][_0x2d46fc(0x102)](_0x389abe);}));function _0x3847(_0x37fef0,_0x1dda9f){_0x37fef0=_0x37fef0-0xf4;const _0x23d821=_0x23d8();let _0x3847f3=_0x23d821[_0x37fef0];return _0x3847f3;}function _0x23d8(){const _0x43b80e=['tryStartPresenting','SetWorksheetActiveOperation','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2453232chSqvB','LiveShareStatusEnum','@univerjs/sheets','50071252zNtUCf','3565928Uoremr','getSheetId','FUniver','PRESENTING','getLiveShareCoordinatorSync','get','5hJsFaM','6naQbpZ','getActiveSheet','@univerjs/engine-render','UniverSheetsUi','stopFollowing','stopPresenting','FRange','getActiveWorkbook','7vghJuo','IDLE','startRow','startFollowing','_injector','FEnum','extend','@univerjs/core/facade','amd','IRenderManagerService','No\x20active\x20workbook\x20found.','UniverEngineRender','startColumn','@univerjs/sheets-ui','UniverSheets','LiveShareController','getLiveShareStatus','getRenderById','SetScrollOperation','getStatus','2835640ufeZBO','function','LiveShareStatus','getUnitId','@univerjs/sheets/facade','20SxMumP','6814755IWZyhT','1277723jZlJsj','object','getId','syncExecuteCommand','startPresenting','133972hVtNWp','_initialize','@univerjs-pro/live-share'];_0x23d8=function(){return _0x43b80e;};return _0x23d8();}
1
+ (function(_0x296770,_0x5af249){const _0x989ad3=_0x400b,_0x2bf817=_0x296770();while(!![]){try{const _0x636666=parseInt(_0x989ad3(0x171))/0x1*(parseInt(_0x989ad3(0x16c))/0x2)+parseInt(_0x989ad3(0x16a))/0x3+-parseInt(_0x989ad3(0x156))/0x4+parseInt(_0x989ad3(0x15a))/0x5*(parseInt(_0x989ad3(0x149))/0x6)+-parseInt(_0x989ad3(0x146))/0x7+parseInt(_0x989ad3(0x157))/0x8*(-parseInt(_0x989ad3(0x16f))/0x9)+parseInt(_0x989ad3(0x145))/0xa*(parseInt(_0x989ad3(0x150))/0xb);if(_0x636666===_0x5af249)break;else _0x2bf817['push'](_0x2bf817['shift']());}catch(_0x4d0a36){_0x2bf817['push'](_0x2bf817['shift']());}}}(_0x3156,0x99609),function(_0x5671fb,_0x49869f){const _0x49e637=_0x400b;typeof exports=='object'&&typeof module<'u'?_0x49869f(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==_0x49e637(0x142)&&define[_0x49e637(0x147)]?define(['@univerjs-pro/live-share','@univerjs/engine-render',_0x49e637(0x16b),_0x49e637(0x16d),'@univerjs/sheets/facade',_0x49e637(0x144)],_0x49869f):(_0x5671fb=typeof globalThis<'u'?globalThis:_0x5671fb||self,_0x49869f(_0x5671fb[_0x49e637(0x154)],_0x5671fb[_0x49e637(0x14c)],_0x5671fb[_0x49e637(0x141)],_0x5671fb[_0x49e637(0x165)],_0x5671fb['UniverSheetsFacade'],_0x5671fb[_0x49e637(0x163)]));}(this,function(_0x407bf3,_0x5a5255,_0x3b5cde,_0x281adf,_0xe56487,_0x3115d6){'use strict';const _0x1199a5=_0x400b;class _0x34007f extends _0xe56487[_0x1199a5(0x169)]{['_initialize'](_0x529dc9,_0x35446c,_0x598e46,_0x3f0a1b,_0x9be206){const _0x3ca73a=_0x1199a5,_0xf84d19=_0x529dc9['get'](_0x407bf3[_0x3ca73a(0x14a)]),_0x499360=_0x529dc9[_0x3ca73a(0x155)](_0x5a5255[_0x3ca73a(0x151)]),_0x16b4a5=_0x35446c[_0x3ca73a(0x160)](),_0x359e2f=_0x35446c[_0x3ca73a(0x143)](),_0x59e871=_0xf84d19[_0x3ca73a(0x148)](_0x16b4a5);(_0x59e871==null?void 0x0:_0x59e871['getStatus']())!==_0x407bf3[_0x3ca73a(0x15d)]['PRESENTING']||(_0x598e46['getSheetId']()!==_0x359e2f[_0x3ca73a(0x15e)]()&&this[_0x3ca73a(0x159)][_0x3ca73a(0x167)](_0x3b5cde['SetWorksheetActiveOperation']['id'],{'unitId':_0x16b4a5,'subUnitId':_0x598e46[_0x3ca73a(0x15e)]()}),!_0x499360['getRenderById'](_0x16b4a5))||_0x9be206[_0x3ca73a(0x162)](_0x281adf['SetScrollOperation']['id'],{'unitId':_0x35446c['getUnitId'](),'sheetId':_0x598e46[_0x3ca73a(0x15e)](),'sheetViewStartRow':_0x3f0a1b['startRow'],'sheetViewStartColumn':_0x3f0a1b[_0x3ca73a(0x166)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xe56487[_0x1199a5(0x169)][_0x1199a5(0x14d)](_0x34007f);class _0x487806 extends _0x3115d6[_0x1199a5(0x14b)]{[_0x1199a5(0x152)](){const _0x4c58f2=_0x1199a5;var _0xe7d635,_0x2fe92e;const _0x5d7184=this['_injector'][_0x4c58f2(0x155)](_0x407bf3[_0x4c58f2(0x14a)]),_0x4fee1c=(_0xe7d635=this[_0x4c58f2(0x161)]())==null?void 0x0:_0xe7d635[_0x4c58f2(0x153)]();if(!_0x4fee1c)throw new Error(_0x4c58f2(0x158));const _0x4b5403=_0x5d7184[_0x4c58f2(0x148)](_0x4fee1c);return(_0x2fe92e=_0x4b5403==null?void 0x0:_0x4b5403[_0x4c58f2(0x170)]())!=null?_0x2fe92e:_0x407bf3['LiveShareStatus']['IDLE'];}[_0x1199a5(0x15f)](){const _0x3d408d=_0x1199a5;var _0x24b0a7;const _0x2296b2=this['_injector'][_0x3d408d(0x155)](_0x407bf3['LiveShareController']),_0x2a8011=(_0x24b0a7=this[_0x3d408d(0x161)]())==null?void 0x0:_0x24b0a7[_0x3d408d(0x153)]();if(!_0x2a8011)throw new Error(_0x3d408d(0x158));const _0xc52703=_0x2296b2[_0x3d408d(0x148)](_0x2a8011);if(!_0xc52703)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xc52703[_0x3d408d(0x15f)]();}[_0x1199a5(0x164)](){const _0x664961=_0x1199a5;var _0x32291f;const _0x4ee144=this[_0x664961(0x15c)][_0x664961(0x155)](_0x407bf3[_0x664961(0x14a)]),_0x314d17=(_0x32291f=this['getActiveWorkbook']())==null?void 0x0:_0x32291f[_0x664961(0x153)]();if(!_0x314d17)throw new Error('No\x20active\x20workbook\x20found.');const _0x58ce75=_0x4ee144[_0x664961(0x148)](_0x314d17);if(!_0x58ce75)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x58ce75[_0x664961(0x164)]();}['startPresenting'](){const _0x205743=_0x1199a5;var _0x85032;const _0x4569a8=this[_0x205743(0x15c)][_0x205743(0x155)](_0x407bf3[_0x205743(0x14a)]),_0x5c384d=(_0x85032=this[_0x205743(0x161)]())==null?void 0x0:_0x85032[_0x205743(0x153)]();if(!_0x5c384d)throw new Error(_0x205743(0x158));const _0x35b4fd=_0x4569a8[_0x205743(0x148)](_0x5c384d);if(!_0x35b4fd)throw new Error(_0x205743(0x168));_0x35b4fd[_0x205743(0x15b)]();}[_0x1199a5(0x14e)](){const _0x5a51fc=_0x1199a5;var _0x308795;const _0x125dcc=this[_0x5a51fc(0x15c)][_0x5a51fc(0x155)](_0x407bf3[_0x5a51fc(0x14a)]),_0x442bac=(_0x308795=this[_0x5a51fc(0x161)]())==null?void 0x0:_0x308795['getId']();if(!_0x442bac)throw new Error(_0x5a51fc(0x158));const _0x3bff66=_0x125dcc[_0x5a51fc(0x148)](_0x442bac);if(!_0x3bff66)throw new Error(_0x5a51fc(0x168));_0x3bff66['stopPresenting']();}}_0x3115d6[_0x1199a5(0x14b)][_0x1199a5(0x14d)](_0x487806);class _0x53a80f extends _0x3115d6['FEnum']{get[_0x1199a5(0x16e)](){const _0x41a8b6=_0x1199a5;return _0x407bf3[_0x41a8b6(0x15d)];}}_0x3115d6[_0x1199a5(0x14f)]['extend'](_0x53a80f);}));function _0x400b(_0x3ba6de,_0x23edf6){_0x3ba6de=_0x3ba6de-0x141;const _0x3156c9=_0x3156();let _0x400b0d=_0x3156c9[_0x3ba6de];return _0x400b0d;}function _0x3156(){const _0x3d60d8=['UniverCoreFacade','stopFollowing','UniverSheetsUi','startColumn','executeCommand','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','FRange','2778723WyVuNN','@univerjs/sheets','19718vuSTON','@univerjs/sheets-ui','LiveShareStatusEnum','522qXvaKm','getStatus','67LYBqbb','UniverSheets','function','getActiveSheet','@univerjs/core/facade','10038390oIZbHe','5765669nvmtEi','amd','getLiveShareCoordinatorSync','34908FAEydJ','LiveShareController','FUniver','UniverEngineRender','extend','stopPresenting','FEnum','11IFzuXP','IRenderManagerService','getLiveShareStatus','getId','UniverProLiveShare','get','3511084aDGcvG','71304XWFHpq','No\x20active\x20workbook\x20found.','_commandService','220dWfaBe','tryStartPresenting','_injector','LiveShareStatus','getSheetId','startFollowing','getUnitId','getActiveWorkbook','syncExecuteCommand'];_0x3156=function(){return _0x3d60d8;};return _0x3156();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4f56d3,_0x16abc0){const _0x23229d=_0x41ea,_0x5854cf=_0x4f56d3();while(!![]){try{const _0x3cdfb4=parseInt(_0x23229d(0x158))/0x1+parseInt(_0x23229d(0xda))/0x2*(parseInt(_0x23229d(0xd0))/0x3)+parseInt(_0x23229d(0x84))/0x4+parseInt(_0x23229d(0xd3))/0x5*(-parseInt(_0x23229d(0xe9))/0x6)+-parseInt(_0x23229d(0xb5))/0x7+-parseInt(_0x23229d(0x7b))/0x8*(-parseInt(_0x23229d(0xad))/0x9)+-parseInt(_0x23229d(0xd5))/0xa;if(_0x3cdfb4===_0x16abc0)break;else _0x5854cf['push'](_0x5854cf['shift']());}catch(_0x3bf754){_0x5854cf['push'](_0x5854cf['shift']());}}}(_0x3440,0x9a6aa),function(_0x5c87a6,_0x5f087b){const _0x6bb26f=_0x41ea;typeof exports==_0x6bb26f(0x8d)&&typeof module<'u'?_0x5f087b(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define['amd']?define([_0x6bb26f(0x92),_0x6bb26f(0xa1),_0x6bb26f(0x81),_0x6bb26f(0x77),_0x6bb26f(0x99),'react',_0x6bb26f(0xc3),_0x6bb26f(0xb8),_0x6bb26f(0x8e),_0x6bb26f(0xf4),'rxjs/operators',_0x6bb26f(0x140)],_0x5f087b):(_0x5c87a6=typeof globalThis<'u'?globalThis:_0x5c87a6||self,_0x5f087b(_0x5c87a6[_0x6bb26f(0x91)]={},_0x5c87a6[_0x6bb26f(0x85)],_0x5c87a6[_0x6bb26f(0xd1)],_0x5c87a6[_0x6bb26f(0x9a)],_0x5c87a6[_0x6bb26f(0xc7)],_0x5c87a6[_0x6bb26f(0x9a)],_0x5c87a6[_0x6bb26f(0x139)],_0x5c87a6[_0x6bb26f(0x145)],_0x5c87a6[_0x6bb26f(0x134)],_0x5c87a6['rxjs'],_0x5c87a6[_0x6bb26f(0xf4)][_0x6bb26f(0x9b)],_0x5c87a6['UniverSheetsUi']));}(this,function(_0x3a7baa,_0x204445,_0x2b0da9,_0x177608,_0x4c467b,_0x36851f,_0x1e03c8,_0x26332d,_0x3ff980,_0x623b2c,_0x4ef54f,_0xbd47dd){'use strict';const _0x1005bc=_0x41ea;var _0xebab71=Object[_0x1005bc(0xc6)],_0x635702=(_0x4951ef,_0x358df6,_0x43417d)=>_0x358df6 in _0x4951ef?_0xebab71(_0x4951ef,_0x358df6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43417d}):_0x4951ef[_0x358df6]=_0x43417d,_0x9a1f59=(_0x308b75,_0x3e878a,_0xbda14c)=>_0x635702(_0x308b75,typeof _0x3e878a!=_0x1005bc(0xbe)?_0x3e878a+'':_0x3e878a,_0xbda14c);function _0x1795d2({ref:_0x65af2f,..._0x18895e}){const _0x264d40=_0x1005bc,{icon:_0x41393a,id:_0x36f21e,className:_0x1bbf37,extend:_0x45eac1,..._0x2a8877}=_0x18895e,_0x10cbd6=(_0x264d40(0xa3)+_0x36f21e+'\x20'+(_0x1bbf37||''))[_0x264d40(0x88)](),_0x5ad953=_0x36851f[_0x264d40(0x12f)]('_'+_0x3ee0d7());return _0x34c614(_0x41393a,''+_0x36f21e,{'defIds':_0x41393a[_0x264d40(0x15b)],'idSuffix':_0x5ad953['current']},{'ref':_0x65af2f,'className':_0x10cbd6,..._0x2a8877},_0x45eac1);}function _0x34c614(_0x483996,_0x4fe9bf,_0x54b3ea,_0x54e29c,_0x3acddd){const _0x141733=_0x1005bc;return _0x36851f['createElement'](_0x483996['tag'],{'key':_0x4fe9bf,..._0x60a8f6(_0x483996,_0x54b3ea,_0x3acddd),..._0x54e29c},(_0x47a848(_0x483996,_0x54b3ea)[_0x141733(0xe8)]||[])[_0x141733(0x78)]((_0x30008e,_0x931da8)=>_0x34c614(_0x30008e,_0x4fe9bf+'-'+_0x483996[_0x141733(0xaf)]+'-'+_0x931da8,_0x54b3ea,void 0x0,_0x3acddd)));}function _0x60a8f6(_0x5b687b,_0x22c89b,_0x5535ca){const _0x1c709e=_0x1005bc,_0x2f9af0={..._0x5b687b[_0x1c709e(0x117)]};_0x5535ca!=null&&_0x5535ca[_0x1c709e(0xc9)]&&_0x2f9af0['fill']===_0x1c709e(0xc9)&&(_0x2f9af0[_0x1c709e(0xa9)]=_0x5535ca[_0x1c709e(0xc9)]),_0x5b687b[_0x1c709e(0xaf)]==='mask'&&_0x2f9af0['id']&&(_0x2f9af0['id']=_0x2f9af0['id']+_0x22c89b['idSuffix']),Object[_0x1c709e(0x106)](_0x2f9af0)[_0x1c709e(0x75)](([_0x11e23d,_0x146ef9])=>{const _0x243fe7=_0x1c709e;_0x11e23d===_0x243fe7(0x7a)&&typeof _0x146ef9==_0x243fe7(0xf8)&&(_0x2f9af0[_0x11e23d]=_0x146ef9[_0x243fe7(0xcf)](/url\(#(.*)\)/,_0x243fe7(0xf7)+_0x22c89b['idSuffix']+')'));});const {defIds:_0x39d428}=_0x22c89b;return!_0x39d428||_0x39d428[_0x1c709e(0xd2)]===0x0||(_0x5b687b[_0x1c709e(0xaf)]===_0x1c709e(0x15e)&&_0x2f9af0[_0x1c709e(0x130)]&&(_0x2f9af0[_0x1c709e(0x130)]=_0x2f9af0[_0x1c709e(0x130)]+_0x22c89b['idSuffix']),Object['entries'](_0x2f9af0)[_0x1c709e(0x75)](([_0x2e3875,_0x4277fc])=>{const _0x4e8dc2=_0x1c709e;typeof _0x4277fc=='string'&&(_0x2f9af0[_0x2e3875]=_0x4277fc[_0x4e8dc2(0xcf)](/url\(#(.*)\)/,_0x4e8dc2(0xf7)+_0x22c89b[_0x4e8dc2(0xee)]+')'));})),_0x2f9af0;}function _0x47a848(_0x26b23a,_0x5c7ffa){const _0x133b49=_0x1005bc;var _0x21b121;const {defIds:_0x298d1e}=_0x5c7ffa;return!_0x298d1e||_0x298d1e[_0x133b49(0xd2)]===0x0?_0x26b23a:_0x26b23a[_0x133b49(0xaf)]===_0x133b49(0x155)&&((_0x21b121=_0x26b23a[_0x133b49(0xe8)])!=null&&_0x21b121['length'])?{..._0x26b23a,'children':_0x26b23a[_0x133b49(0xe8)][_0x133b49(0x78)](_0x404997=>typeof _0x404997[_0x133b49(0x117)]['id']==_0x133b49(0xf8)&&_0x298d1e&&_0x298d1e['includes'](_0x404997[_0x133b49(0x117)]['id'])?{..._0x404997,'attrs':{..._0x404997[_0x133b49(0x117)],'id':_0x404997['attrs']['id']+_0x5c7ffa[_0x133b49(0xee)]}}:_0x404997)}:_0x26b23a;}function _0x3ee0d7(){const _0x73d4da=_0x1005bc;return Math['random']()[_0x73d4da(0xce)](0x24)[_0x73d4da(0x119)](0x2,0x8);}_0x1795d2[_0x1005bc(0xc2)]=_0x1005bc(0x150);const _0x5dd890={'tag':'svg','attrs':{'xmlns':_0x1005bc(0xa0),'fill':_0x1005bc(0x7e),'viewBox':_0x1005bc(0xc8),'width':_0x1005bc(0xb2),'height':_0x1005bc(0xb2)},'children':[{'tag':_0x1005bc(0x11e),'attrs':{'fill':'currentColor','d':_0x1005bc(0xb9)}},{'tag':_0x1005bc(0x11e),'attrs':{'fill':_0x1005bc(0xae),'d':_0x1005bc(0x118),'fillRule':_0x1005bc(0xe2),'clipRule':'evenodd'}}]},_0x3cedae=_0x36851f[_0x1005bc(0x11a)](function(_0xb16702,_0x3df1a1){const _0x58b962=_0x1005bc;return _0x36851f['createElement'](_0x1795d2,Object['assign']({},_0xb16702,{'id':_0x58b962(0xf6),'ref':_0x3df1a1,'icon':_0x5dd890}));});_0x3cedae['displayName']='LiveShareIcon';class _0xc848bf extends _0x204445[_0x1005bc(0x142)]{constructor(){const _0x3143e5=_0x1005bc;super(...arguments),_0x9a1f59(this,'_sharedOperations',new Set()),_0x9a1f59(this,_0x3143e5(0x9d),new Set());}[_0x1005bc(0x87)](_0x2b83fc){const _0x3645c7=_0x1005bc;return this[_0x3645c7(0xbc)][_0x3645c7(0xab)](_0x2b83fc),_0x204445['toDisposable'](()=>this['_sharedOperations'][_0x3645c7(0x97)](_0x2b83fc));}[_0x1005bc(0x147)](_0x3c33bf){const _0x11cf3a=_0x1005bc;return this[_0x11cf3a(0x9d)][_0x11cf3a(0xab)](_0x3c33bf),_0x204445[_0x11cf3a(0x13c)](()=>this[_0x11cf3a(0x9d)][_0x11cf3a(0x97)](_0x3c33bf));}[_0x1005bc(0xbb)](_0x2b03ee){const _0x3bd6c3=_0x1005bc;return this[_0x3bd6c3(0xbc)][_0x3bd6c3(0x107)](_0x2b03ee);}[_0x1005bc(0x79)](_0x25c851){const _0x287d06=_0x1005bc;return Array[_0x287d06(0x10c)](this['_reporters'])[_0x287d06(0x78)](_0x49fa4a=>_0x49fa4a(_0x25c851));}}var _0x120c95=Object[_0x1005bc(0xe5)],_0x56a897=(_0x131737,_0x1a2c5b,_0x221237,_0x24b0d2)=>{const _0x25b489=_0x1005bc;for(var _0xc7d9f0=_0x24b0d2>0x1?void 0x0:_0x24b0d2?_0x120c95(_0x1a2c5b,_0x221237):_0x1a2c5b,_0x52d5a1=_0x131737[_0x25b489(0xd2)]-0x1,_0x25a047;_0x52d5a1>=0x0;_0x52d5a1--)(_0x25a047=_0x131737[_0x52d5a1])&&(_0xc7d9f0=_0x25a047(_0xc7d9f0)||_0xc7d9f0);return _0xc7d9f0;},_0x5751e8=(_0x31683a,_0x5dded6)=>(_0x2201ef,_0xdbeb80)=>_0x5dded6(_0x2201ef,_0xdbeb80,_0x31683a);_0x3a7baa[_0x1005bc(0x13b)]=class extends _0x204445[_0x1005bc(0xc0)]{constructor(_0x4c2b6e,_0x41dbbc,_0x36efb7){const _0x509663=_0x1005bc;super(),_0x9a1f59(this,'_entities',new Map()),(this[_0x509663(0x135)]=_0x4c2b6e,this['_injector']=_0x41dbbc,this['_collabSessionService']=_0x36efb7,this[_0x509663(0x90)]());}async['getLiveShareCoordinator'](_0x17f6c5){const _0x5318b3=_0x1005bc;return this[_0x5318b3(0xe4)][_0x5318b3(0x107)](_0x17f6c5)||await this[_0x5318b3(0x94)](_0x17f6c5),this[_0x5318b3(0xe4)][_0x5318b3(0xdb)](_0x17f6c5);}['getLiveShareCoordinatorSync'](_0x4de9f4){const _0x1f52be=_0x1005bc;var _0x10295e;return(_0x10295e=this['_entities'][_0x1f52be(0xdb)](_0x4de9f4))!=null?_0x10295e:null;}[_0x1005bc(0x90)](){const _0x35e6fd=_0x1005bc;this[_0x35e6fd(0x135)]['getTypeOfUnitAdded$'](_0x204445[_0x35e6fd(0x12c)][_0x35e6fd(0x103)])[_0x35e6fd(0x9f)](_0x4ef54f[_0x35e6fd(0x126)](this['dispose$']))[_0x35e6fd(0xe7)](async _0x17da8a=>{const _0x539b1c=_0x35e6fd,_0x43c62d=_0x17da8a['getUnitId']();this['_entities'][_0x539b1c(0x107)](_0x43c62d)||this[_0x539b1c(0x94)](_0x43c62d);}),this[_0x35e6fd(0x135)][_0x35e6fd(0xa4)](_0x204445[_0x35e6fd(0x12c)][_0x35e6fd(0x103)])[_0x35e6fd(0x9f)](_0x4ef54f[_0x35e6fd(0x126)](this[_0x35e6fd(0x12a)]))[_0x35e6fd(0xe7)](_0x51d35a=>{const _0x136bea=_0x35e6fd,_0x3d3cb6=_0x51d35a[_0x136bea(0xff)](),_0x38597b=this[_0x136bea(0xe4)][_0x136bea(0xdb)](_0x3d3cb6);_0x38597b==null||_0x38597b[_0x136bea(0xb0)]();});}async[_0x1005bc(0x94)](_0x504796){const _0xd5b541=_0x1005bc,_0x3c8195=await this[_0xd5b541(0x10b)][_0xd5b541(0x127)](_0x504796),_0x5b62dd=this[_0xd5b541(0x15c)][_0xd5b541(0x14a)](_0x3a7baa['LiveShareCoordinator'],_0x504796,_0x3c8195);return _0x5b62dd['init'](),this['_entities'][_0xd5b541(0x98)](_0x504796,_0x5b62dd),_0x5b62dd;}},_0x3a7baa[_0x1005bc(0x13b)]=_0x56a897([_0x5751e8(0x0,_0x204445[_0x1005bc(0x14f)]),_0x5751e8(0x1,_0x204445['Inject'](_0x204445[_0x1005bc(0xf0)])),_0x5751e8(0x2,_0x204445[_0x1005bc(0x115)](_0x26332d['CollaborationSessionService']))],_0x3a7baa[_0x1005bc(0x13b)]);var _0x22378a=(_0x560f5a=>(_0x560f5a['OFFLINE']=_0x1005bc(0x153),_0x560f5a[_0x1005bc(0x11b)]='idle',_0x560f5a[_0x1005bc(0x10f)]=_0x1005bc(0xe3),_0x560f5a[_0x1005bc(0x146)]='not-following',_0x560f5a[_0x1005bc(0x13d)]=_0x1005bc(0x11c),_0x560f5a))(_0x22378a||{});const _0x56745e=_0x1005bc(0xaa),_0x1f7722=0xc8;_0x3a7baa[_0x1005bc(0xe0)]=class extends _0x204445[_0x1005bc(0xc0)]{constructor(_0xa7d21f,_0x1b3561,_0x135e77,_0x4c0f88,_0x4dcd38){const _0x33b524=_0x1005bc;super(),_0x9a1f59(this,_0x33b524(0x80),new _0x623b2c['BehaviorSubject'](_0x33b524(0x93))),_0x9a1f59(this,'status$',this['_status$']['asObservable']()),_0x9a1f59(this,'_init',!0x1),_0x9a1f59(this,_0x33b524(0x76),null),_0x9a1f59(this,_0x33b524(0xd6),null),(this[_0x33b524(0xf1)]=_0xa7d21f,this[_0x33b524(0x151)]=_0x1b3561,this[_0x33b524(0x121)]=_0x135e77,this['_liveShareService']=_0x4c0f88,this[_0x33b524(0xa5)]=_0x4dcd38);}get[_0x1005bc(0xac)](){const _0x252e09=_0x1005bc;return this[_0x252e09(0x80)][_0x252e09(0x144)]();}[_0x1005bc(0xb0)](){const _0xa977b7=_0x1005bc;var _0x351048;(_0x351048=this[_0xa977b7(0x76)])==null||_0x351048[_0xa977b7(0xb0)](),this['_status$']['next'](_0xa977b7(0x93)),this['_status$']['complete']();}['getStatus'](){const _0x13c5c1=_0x1005bc;return this[_0x13c5c1(0xac)];}[_0x1005bc(0x10d)](){const _0x3e5915=_0x1005bc;this[_0x3e5915(0x90)]||(this[_0x3e5915(0x90)]=!0x0,this[_0x3e5915(0x151)][_0x3e5915(0xbd)][_0x3e5915(0x9f)](_0x4ef54f[_0x3e5915(0x126)](this['dispose$']))[_0x3e5915(0xe7)](_0x223746=>{const _0x4b970a=_0x3e5915;switch(_0x223746){case _0x26332d[_0x4b970a(0x14b)][_0x4b970a(0x102)]:this[_0x4b970a(0x124)]();break;case _0x26332d['SessionStatus'][_0x4b970a(0x13f)]:this[_0x4b970a(0x104)]();break;}}),this['_collabSession']['event$'][_0x3e5915(0x9f)](_0x4ef54f[_0x3e5915(0x126)](this[_0x3e5915(0x12a)]))['subscribe'](_0x26475a=>{const _0x5af6ea=_0x3e5915,{eventID:_0x36f811}=_0x26475a;switch(_0x36f811){case _0x1e03c8['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x5af6ea(0xca)](_0x26475a);break;case _0x1e03c8['CollaborationEvent'][_0x5af6ea(0xb7)]:this[_0x5af6ea(0xdd)](_0x26475a);break;case _0x1e03c8[_0x5af6ea(0x73)][_0x5af6ea(0x122)]:this[_0x5af6ea(0x125)]();break;case _0x1e03c8['CollaborationEvent'][_0x5af6ea(0x72)]:this['_handleNewChangeSets'](_0x26475a);break;}}));}[_0x1005bc(0x11d)](){const _0x146257=_0x1005bc;this['_collabSession'][_0x146257(0x7f)]({'eventID':_0x1e03c8['CollaborationEvent'][_0x146257(0xb3)],'data':{'unitID':this[_0x146257(0xf1)],'userID':this[_0x146257(0x151)][_0x146257(0x82)]()}},this[_0x146257(0xf1)]);}[_0x1005bc(0x149)](){const _0x52c5e2=_0x1005bc;this['_status']==='presenting'&&(this['_status$'][_0x52c5e2(0xbf)](_0x52c5e2(0x93)),this['_collabSession'][_0x52c5e2(0x7f)]({'eventID':_0x1e03c8[_0x52c5e2(0x73)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x52c5e2(0xf1)]}},this['_unitID']));}[_0x1005bc(0x12e)](){const _0x2ea64c=_0x1005bc;this['_status']==='not-following'&&(this[_0x2ea64c(0x80)][_0x2ea64c(0xbf)]('following'),this[_0x2ea64c(0xb1)]());}['stopFollowing'](){const _0x1d318d=_0x1005bc;this[_0x1d318d(0xac)]===_0x1d318d(0xe3)&&this[_0x1d318d(0x123)]();}[_0x1005bc(0xca)](_0x4cd3ca){const _0xc706d0=_0x1005bc,{presenter:_0xe58110}=_0x4cd3ca[_0xc706d0(0xfd)],_0x263b81=this[_0xc706d0(0x151)]['getMemberID']();this[_0xc706d0(0xd6)]=_0xe58110,_0xe58110===_0x263b81?(this[_0xc706d0(0x123)](),this[_0xc706d0(0x96)]()):this[_0xc706d0(0xac)]!==_0xc706d0(0x83)&&(this[_0xc706d0(0x7c)](),this['_startFollowing']());}['_fetchOperations'](){const _0x240172=_0x1005bc,_0x48e53e={'eventID':_0x1e03c8[_0x240172(0x73)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x240172(0x151)]['send'](_0x48e53e,this[_0x240172(0xf1)]);}[_0x1005bc(0x125)](){const _0x4f0af8=_0x1005bc;this[_0x4f0af8(0xd6)]=null,this[_0x4f0af8(0xac)]!==_0x4f0af8(0x11c)&&this[_0x4f0af8(0xdc)]();}[_0x1005bc(0x12d)](_0x29275d){const _0x2e311a=_0x1005bc;if(this[_0x2e311a(0xac)]===_0x2e311a(0xe3)&&this[_0x2e311a(0xd6)]===_0x29275d[_0x2e311a(0xfd)]['memberID']){const _0x3b736b=_0x1e03c8[_0x2e311a(0x128)](_0x29275d[_0x2e311a(0xfd)])['mutations'][_0x2e311a(0xef)]()[_0x2e311a(0x15d)](_0x4c4f69=>_0x4c4f69['id']===_0x3ff980[_0x2e311a(0xd7)]['id']);if(_0x3b736b){const _0x587762=_0x3b736b['params'][_0x2e311a(0xec)],_0x5210bb=_0x3b736b[_0x2e311a(0xfc)][_0x2e311a(0xb6)]['id'];setTimeout(()=>{const _0x12a814=_0x2e311a;this[_0x12a814(0xa5)][_0x12a814(0xed)](_0x3ff980[_0x12a814(0x86)]['id'],{'unitId':_0x587762,'subUnitId':_0x5210bb},{'fromCollab':!0x0});});}}}[_0x1005bc(0x96)](){const _0x46f13f=_0x1005bc;this[_0x46f13f(0x80)][_0x46f13f(0xbf)]('presenting');const _0x268982=new Map(),_0x374485=this[_0x46f13f(0x76)]=new _0x204445[(_0x46f13f(0xcd))]();_0x374485[_0x46f13f(0xab)](_0x204445[_0x46f13f(0x13c)](()=>{const _0x46aa86=_0x46f13f;_0x268982['forEach'](_0x9cc8b=>_0x9cc8b[_0x46aa86(0x157)]()),_0x268982[_0x46aa86(0x148)]();})),_0x374485[_0x46f13f(0xab)](this[_0x46f13f(0xa5)][_0x46f13f(0x133)](_0x23cd50=>{const _0x574e92=_0x46f13f;var _0x4ee238;if(_0x23cd50[_0x574e92(0xba)]!==_0x204445[_0x574e92(0x12b)]['OPERATION']||!this[_0x574e92(0xd9)][_0x574e92(0xbb)](_0x23cd50['id']))return;const {id:_0x32ac88}=_0x23cd50;let _0x7651e2;_0x268982[_0x574e92(0x107)](_0x32ac88)?_0x7651e2=_0x268982[_0x574e92(0xdb)](_0x32ac88):(_0x7651e2=new _0x623b2c[(_0x574e92(0x138))](),_0x268982['set'](_0x32ac88,_0x7651e2),_0x7651e2[_0x574e92(0x9f)](_0x4ef54f['throttleTime']((_0x4ee238=this[_0x574e92(0x121)][_0x574e92(0xcb)](_0x56745e))!=null?_0x4ee238:_0x1f7722,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x574e92(0xe7)](_0x5c2b89=>{const _0x339aa6=_0x574e92;this[_0x339aa6(0x151)][_0x339aa6(0x7f)]({'eventID':_0x1e03c8[_0x339aa6(0x73)][_0x339aa6(0xb7)],'data':{'unitID':this[_0x339aa6(0xf1)],'operations':{[_0x5c2b89['id']]:{'id':_0x5c2b89['id'],'params':JSON[_0x339aa6(0x15f)](_0x5c2b89[_0x339aa6(0xfc)])}}}},this['_unitID']);})),_0x7651e2[_0x574e92(0xbf)](_0x23cd50);})),this[_0x46f13f(0xd9)]['getInitialStates'](this[_0x46f13f(0xf1)])[_0x46f13f(0x75)](_0x1ef2b7=>this[_0x46f13f(0x151)][_0x46f13f(0x7f)]({'eventID':_0x1e03c8[_0x46f13f(0x73)][_0x46f13f(0xb7)],'data':{'unitID':this['_unitID'],'operations':{[_0x1ef2b7['id']]:{'id':_0x1ef2b7['id'],'params':JSON[_0x46f13f(0x15f)](_0x1ef2b7[_0x46f13f(0xfc)])}}}},this['_unitID']));}['_stopPresenting'](){const _0xcbdecb=_0x1005bc;var _0x5eb09a;this['_status$'][_0xcbdecb(0xbf)](_0xcbdecb(0x93)),(_0x5eb09a=this['_commandDisposable'])==null||_0x5eb09a[_0xcbdecb(0xb0)](),this[_0xcbdecb(0x76)]=null;}[_0x1005bc(0xb1)](){const _0x227480=_0x1005bc;var _0x2fd27e;(_0x2fd27e=this[_0x227480(0x76)])==null||_0x2fd27e[_0x227480(0xb0)](),this[_0x227480(0x80)][_0x227480(0xbf)](_0x227480(0xe3));}[_0x1005bc(0xdc)](){const _0x51669c=_0x1005bc;var _0x2cbdb8;this[_0x51669c(0x80)][_0x51669c(0xbf)](_0x51669c(0x93)),(_0x2cbdb8=this[_0x51669c(0x76)])==null||_0x2cbdb8['dispose'](),this[_0x51669c(0x76)]=null;}[_0x1005bc(0x123)](){const _0x23d621=_0x1005bc;var _0x356386;this['_status$'][_0x23d621(0xbf)]('not-following'),(_0x356386=this['_commandDisposable'])==null||_0x356386[_0x23d621(0xb0)]();}[_0x1005bc(0xdd)](_0x15c728){const _0x3eba63=_0x1005bc;if([_0x3eba63(0x11c),_0x3eba63(0x83),_0x3eba63(0x153)]['includes'](this[_0x3eba63(0xac)])||!_0x15c728[_0x3eba63(0xfd)][_0x3eba63(0x136)]||_0x15c728[_0x3eba63(0xfd)][_0x3eba63(0x136)]===this[_0x3eba63(0x151)][_0x3eba63(0x82)]())return;this[_0x3eba63(0xac)]==='idle'&&this[_0x3eba63(0xb1)]();const _0x4389f1=_0x15c728[_0x3eba63(0xfd)][_0x3eba63(0x159)];Object[_0x3eba63(0x131)](_0x4389f1)['forEach'](_0xe83bb8=>{const _0x583236=_0x3eba63;this[_0x583236(0xa5)][_0x583236(0xed)](_0xe83bb8['id'],_0xe83bb8[_0x583236(0xfc)]?JSON[_0x583236(0xc1)](_0xe83bb8[_0x583236(0xfc)]):null,{'fromCollab':!0x0});});}[_0x1005bc(0x124)](){const _0x34344f=_0x1005bc;var _0x486f64;this[_0x34344f(0x80)][_0x34344f(0xbf)](_0x34344f(0x153)),(_0x486f64=this[_0x34344f(0x76)])==null||_0x486f64[_0x34344f(0xb0)]();}[_0x1005bc(0x104)](){const _0x2f3797=_0x1005bc;this[_0x2f3797(0x80)]['next'](_0x2f3797(0x93)),this[_0x2f3797(0xe1)]();}},_0x3a7baa['LiveShareCoordinator']=_0x56a897([_0x5751e8(0x2,_0x204445[_0x1005bc(0xf2)]),_0x5751e8(0x3,_0x204445[_0x1005bc(0x115)](_0xc848bf)),_0x5751e8(0x4,_0x204445[_0x1005bc(0x105)])],_0x3a7baa[_0x1005bc(0xe0)]);function _0x502a81(){const _0x2e646f=_0x1005bc,_0x49363a=_0x2b0da9[_0x2e646f(0x112)](_0x3a7baa[_0x2e646f(0x13b)]),_0x15787b=_0x2b0da9[_0x2e646f(0x112)](_0x204445[_0x2e646f(0x14f)]),_0x3ab36f=_0x2b0da9['useObservable'](()=>_0x15787b['getCurrentTypeOfUnit$'](_0x204445[_0x2e646f(0x12c)][_0x2e646f(0x103)]),void 0x0,!0x1,[]),[_0x5e9277,_0x243ca4]=_0x36851f['useState'](null),[_0x33b300,_0x512ab3]=_0x36851f['useState'](_0x22378a['IDLE']),_0x188dfd=_0x36851f[_0x2e646f(0x12f)](null);return _0x36851f[_0x2e646f(0x152)](()=>(_0x3ab36f&&_0x49363a[_0x2e646f(0xa6)](_0x3ab36f[_0x2e646f(0xff)]())[_0x2e646f(0xa2)](_0x51860e=>{const _0x456bc1=_0x2e646f;_0x243ca4(_0x51860e),_0x188dfd['current']=_0x51860e[_0x456bc1(0x13e)][_0x456bc1(0xe7)](_0x5813ce=>{_0x512ab3(_0x5813ce);});}),()=>{const _0x3796e4=_0x2e646f;var _0xdb6db0;(_0xdb6db0=_0x188dfd[_0x3796e4(0xeb)])==null||_0xdb6db0[_0x3796e4(0x14d)](),_0x188dfd[_0x3796e4(0xeb)]=null;}),[_0x3ab36f,_0x49363a]),_0x5e9277?_0x177608[_0x2e646f(0x129)](_0x4c467b[_0x2e646f(0x116)],{'align':_0x2e646f(0x11f),'disabled':_0x33b300===_0x22378a[_0x2e646f(0x102)],'className':_0x2e646f(0x114),'overlay':_0x177608[_0x2e646f(0x129)](_0xae0905,{'status':_0x33b300,'coordinator':_0x5e9277}),'children':_0x177608[_0x2e646f(0x129)](_0x2e646f(0xc5),{'className':_0x4c467b[_0x2e646f(0x89)](_0x2e646f(0xa7),{'univer-cursor-not-allowed':_0x33b300===_0x22378a[_0x2e646f(0x102)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x33b300!==_0x22378a[_0x2e646f(0x102)]}),'type':_0x2e646f(0xc5),'children':_0x177608['jsx'](_0x3cedae,{'className':_0x2e646f(0x8f)})})}):null;}function _0xae0905(_0x166f37){const _0x5a0d26=_0x1005bc,{status:_0x12fde5,coordinator:_0x5c14f8}=_0x166f37;switch(_0x12fde5){case _0x22378a[_0x5a0d26(0x11b)]:return _0x177608[_0x5a0d26(0x129)](_0x1737db,{'coordinator':_0x5c14f8});case _0x22378a[_0x5a0d26(0x10f)]:return _0x177608[_0x5a0d26(0x129)](_0x355702,{'coordinator':_0x5c14f8});case _0x22378a[_0x5a0d26(0x146)]:return _0x177608[_0x5a0d26(0x129)](_0x31e196,{'coordinator':_0x5c14f8});case _0x22378a[_0x5a0d26(0x102)]:return _0x177608['jsx'](_0x27ac89,{});case _0x22378a[_0x5a0d26(0x13d)]:return _0x177608[_0x5a0d26(0x129)](_0x20c3ec,{'coordinator':_0x5c14f8});default:return null;}}function _0x1737db(_0x42e24a){const _0x50d6ef=_0x1005bc,{coordinator:_0xcb7afc}=_0x42e24a;return _0x177608['jsxs'](_0x177608['Fragment'],{'children':[_0x177608[_0x50d6ef(0x129)](_0x50d6ef(0x110),{'className':_0x50d6ef(0x74),'children':_0x50d6ef(0x15a)}),_0x177608[_0x50d6ef(0x129)](_0x4c467b['Button'],{'onClick':()=>_0xcb7afc[_0x50d6ef(0x11d)](),'children':_0x50d6ef(0x113)})]});}function _0x355702(_0x3b0190){const _0x61ce96=_0x1005bc,{coordinator:_0x13b8b8}=_0x3b0190;return _0x177608[_0x61ce96(0xe6)](_0x177608[_0x61ce96(0xfe)],{'children':[_0x177608[_0x61ce96(0x129)](_0x61ce96(0x110),{'className':_0x61ce96(0x74),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x177608[_0x61ce96(0x129)](_0x4c467b[_0x61ce96(0xf3)],{'onClick':()=>_0x13b8b8[_0x61ce96(0xf9)](),'children':_0x61ce96(0x10e)})]});}function _0x31e196(_0x33fd83){const _0x3fbf05=_0x1005bc,{coordinator:_0x3d444d}=_0x33fd83;return _0x177608[_0x3fbf05(0xe6)](_0x177608[_0x3fbf05(0xfe)],{'children':[_0x177608[_0x3fbf05(0x129)](_0x3fbf05(0x110),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3fbf05(0x9e)}),_0x177608[_0x3fbf05(0x129)](_0x4c467b[_0x3fbf05(0xf3)],{'variant':_0x3fbf05(0x108),'onClick':()=>_0x3d444d[_0x3fbf05(0x12e)](),'children':_0x3fbf05(0x13a)})]});}function _0x20c3ec(_0x3e656a){const _0x497215=_0x1005bc,{coordinator:_0x1029cd}=_0x3e656a;return _0x177608[_0x497215(0xe6)](_0x177608[_0x497215(0xfe)],{'children':[_0x177608[_0x497215(0x129)](_0x497215(0x110),{'className':_0x497215(0x74),'children':_0x497215(0x14e)}),_0x177608[_0x497215(0x129)](_0x4c467b[_0x497215(0xf3)],{'variant':_0x497215(0xf5),'onClick':()=>_0x1029cd[_0x497215(0x149)](),'children':_0x497215(0x120)})]});}function _0x27ac89(){const _0x508d6f=_0x1005bc;return _0x177608[_0x508d6f(0x129)](_0x177608[_0x508d6f(0xfe)],{'children':_0x508d6f(0x95)});}var _0x5baa07=Object['getOwnPropertyDescriptor'],_0x43a4c7=(_0x233754,_0x27e6fb,_0x149777,_0x4f3dc3)=>{for(var _0x36f6a0=_0x4f3dc3>0x1?void 0x0:_0x4f3dc3?_0x5baa07(_0x27e6fb,_0x149777):_0x27e6fb,_0xf3352d=_0x233754['length']-0x1,_0x33f456;_0xf3352d>=0x0;_0xf3352d--)(_0x33f456=_0x233754[_0xf3352d])&&(_0x36f6a0=_0x33f456(_0x36f6a0)||_0x36f6a0);return _0x36f6a0;},_0x29b77f=(_0x493a7b,_0x47c51c)=>(_0x4f5834,_0x2fac54)=>_0x47c51c(_0x4f5834,_0x2fac54,_0x493a7b);_0x3a7baa[_0x1005bc(0x8c)]=class extends _0x204445[_0x1005bc(0x142)]{constructor(_0x47aa02,_0x1cc234){const _0x1a7119=_0x1005bc;super(),this['_injector']=_0x47aa02,this[_0x1a7119(0x141)]=_0x1cc234,this[_0x1a7119(0x111)]();}['_mountLiveShare'](){const _0x54c995=_0x1005bc;this[_0x54c995(0x109)](this[_0x54c995(0x141)][_0x54c995(0xd4)](_0x2b0da9[_0x54c995(0xb4)][_0x54c995(0xfa)],()=>_0x2b0da9['connectInjector'](_0x502a81,this[_0x54c995(0x15c)])));}},_0x3a7baa[_0x1005bc(0x8c)]=_0x43a4c7([_0x29b77f(0x0,_0x204445[_0x1005bc(0x115)](_0x204445[_0x1005bc(0xf0)])),_0x29b77f(0x1,_0x2b0da9[_0x1005bc(0xdf)])],_0x3a7baa[_0x1005bc(0x8c)]);const _0x1ebb65=_0x1005bc(0xa8),_0x2383a5={};var _0x4eab69=Object[_0x1005bc(0xe5)],_0x3db3c7=(_0x5a722a,_0x3ab924,_0x41ba83,_0x460bae)=>{const _0x87f761=_0x1005bc;for(var _0x587ddf=_0x460bae>0x1?void 0x0:_0x460bae?_0x4eab69(_0x3ab924,_0x41ba83):_0x3ab924,_0x49f554=_0x5a722a[_0x87f761(0xd2)]-0x1,_0x3a2d39;_0x49f554>=0x0;_0x49f554--)(_0x3a2d39=_0x5a722a[_0x49f554])&&(_0x587ddf=_0x3a2d39(_0x587ddf)||_0x587ddf);return _0x587ddf;},_0xb1748c=(_0x681460,_0x8138d0)=>(_0x3d319d,_0x4f87f0)=>_0x8138d0(_0x3d319d,_0x4f87f0,_0x681460);let _0x573bd5=class extends _0x204445['Disposable']{constructor(_0xf2a33e){const _0x27c5e7=_0x1005bc;super(),this[_0x27c5e7(0xd9)]=_0xf2a33e,this[_0x27c5e7(0x90)]();}[_0x1005bc(0x90)](){const _0xbb677f=_0x1005bc;[_0xbd47dd['SetZoomRatioOperation']['id'],_0xbd47dd[_0xbb677f(0xd8)]['id'],_0x3ff980[_0xbb677f(0x86)]['id']][_0xbb677f(0x75)](_0x463f2f=>{const _0x56f90f=_0xbb677f;this['disposeWithMe'](this[_0x56f90f(0xd9)][_0x56f90f(0x87)](_0x463f2f));});}};_0x573bd5=_0x3db3c7([_0xb1748c(0x0,_0x204445[_0x1005bc(0x115)](_0xc848bf))],_0x573bd5);var _0x239768=Object['defineProperty'],_0x36d0f6=Object['getOwnPropertyDescriptor'],_0x364513=(_0xbda6b1,_0x33d1a6,_0x4dc612)=>_0x33d1a6 in _0xbda6b1?_0x239768(_0xbda6b1,_0x33d1a6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4dc612}):_0xbda6b1[_0x33d1a6]=_0x4dc612,_0x4ae649=(_0x524c9d,_0x1b1138,_0x24a3fd,_0x10e649)=>{const _0x219c88=_0x1005bc;for(var _0x481a2f=_0x10e649>0x1?void 0x0:_0x10e649?_0x36d0f6(_0x1b1138,_0x24a3fd):_0x1b1138,_0x2e8b55=_0x524c9d[_0x219c88(0xd2)]-0x1,_0x1ecc78;_0x2e8b55>=0x0;_0x2e8b55--)(_0x1ecc78=_0x524c9d[_0x2e8b55])&&(_0x481a2f=_0x1ecc78(_0x481a2f)||_0x481a2f);return _0x481a2f;},_0x4417d4=(_0x113084,_0x3851fa)=>(_0x26d91d,_0x571e86)=>_0x3851fa(_0x26d91d,_0x571e86,_0x113084),_0x1bb577=(_0xccb0f3,_0x47d9c7,_0x5e0150)=>_0x364513(_0xccb0f3,typeof _0x47d9c7!=_0x1005bc(0xbe)?_0x47d9c7+'':_0x47d9c7,_0x5e0150);const _0x2ff03f='UNIVER_LIVE_SHARE_PLUGIN';_0x3a7baa[_0x1005bc(0x156)]=class extends _0x204445[_0x1005bc(0x14c)]{constructor(_0x36f1d0=_0x2383a5,_0x1ed3c9,_0x1d1146){const _0x1ffcd7=_0x1005bc;super(),this[_0x1ffcd7(0x8a)]=_0x36f1d0,this[_0x1ffcd7(0x15c)]=_0x1ed3c9,this['_configService']=_0x1d1146;const {..._0x6e36e0}=_0x204445[_0x1ffcd7(0x101)]({},_0x2383a5,this[_0x1ffcd7(0x8a)]);this['_configService'][_0x1ffcd7(0xea)](_0x1ebb65,_0x6e36e0);}['onStarting'](){const _0x10dabc=_0x1005bc;_0x204445[_0x10dabc(0x9c)](this['_injector'],_0x204445[_0x10dabc(0x154)]([[_0xc848bf],[_0x3a7baa[_0x10dabc(0x13b)]],[_0x573bd5],[_0x3a7baa[_0x10dabc(0x8c)]]],this[_0x10dabc(0x8a)][_0x10dabc(0x8b)])),_0x204445[_0x10dabc(0xde)](this[_0x10dabc(0x15c)],[[_0x573bd5]]);}[_0x1005bc(0x10a)](){const _0xd0259e=_0x1005bc;_0x204445[_0xd0259e(0xde)](this['_injector'],[[_0x3a7baa[_0xd0259e(0x8c)]]]);}},_0x1bb577(_0x3a7baa[_0x1005bc(0x156)],_0x1005bc(0xba),_0x204445[_0x1005bc(0x12c)]['UNIVER_UNKNOWN']),_0x1bb577(_0x3a7baa[_0x1005bc(0x156)],_0x1005bc(0x143),_0x2ff03f),_0x3a7baa[_0x1005bc(0x156)]=_0x4ae649([_0x204445[_0x1005bc(0x132)](_0x26332d[_0x1005bc(0x7d)]),_0x4417d4(0x1,_0x204445[_0x1005bc(0x115)](_0x204445['Injector'])),_0x4417d4(0x2,_0x204445[_0x1005bc(0xf2)])],_0x3a7baa['UniverLiveSharePlugin']),_0x3a7baa[_0x1005bc(0x100)]=_0x502a81,_0x3a7baa[_0x1005bc(0xcc)]=_0xc848bf,_0x3a7baa[_0x1005bc(0x137)]=_0x22378a,Object[_0x1005bc(0xc6)](_0x3a7baa,Symbol[_0x1005bc(0xfb)],{'value':_0x1005bc(0xc4)});}));function _0x41ea(_0x891bb,_0x4390a5){_0x891bb=_0x891bb-0x72;const _0x3440ea=_0x3440();let _0x41eadc=_0x3440ea[_0x891bb];return _0x41eadc;}function _0x3440(){const _0x329360=['2287520BSqnQW','UniverCore','SetWorksheetActiveOperation','registerSharedOperation','trim','clsx','_config','override','DesktopLiveShareController','object','@univerjs/sheets','univer-size-4','_init','UniverProLiveShare','exports','idle','_startLiveShareCoordinator','You\x27are\x20offline.','_startPresenting','delete','set','@univerjs/design','React','operators','registerDependencies','_reporters','You\x27re\x20not\x20following\x20the\x20presenter','pipe','http://www.w3.org/2000/svg','@univerjs/core','then','univerjs-icon\x20univerjs-icon-','getTypeOfUnitDisposed$','_commandService','getLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','live-share.config','fill','SAME_OPERATION_SHARE_INTERVAL','add','_status','954qqhISu','currentColor','tag','dispose','_startFollowing','1em','LIVESHARE_REQUEST_HOST','BuiltInUIPart','1699404mtuRXw','sheet','LIVESHARE_OPERATION','@univerjs-pro/collaboration-client','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','type','shouldShareOperation','_sharedOperations','sessionStatus$','symbol','next','RxDisposable','parse','displayName','@univerjs-pro/collaboration','Module','button','defineProperty','UniverDesign','0\x200\x2017\x2017','colorChannel1','_handleNewHost','getConfig','LiveShareService','DisposableCollection','toString','replace','5088mzXpNB','UniverUi','length','10LeUTVo','registerComponent','4094530LOmGcf','_presenter','InsertSheetMutation','SetScrollOperation','_liveShareService','24YdWvfL','get','_beIdle','_handleOperation','touchDependencies','IUIPartsService','LiveShareCoordinator','_fetchOperations','evenodd','following','_entities','getOwnPropertyDescriptor','jsxs','subscribe','children','1528266VOJLNZ','setConfig','current','unitId','executeCommand','idSuffix','reverse','Injector','_unitID','IConfigService','Button','rxjs','default','live-share-icon','url(#$1','string','stopFollowing','HEADER_MENU','toStringTag','params','data','Fragment','getUnitId','LiveShare','merge','OFFLINE','UNIVER_SHEET','_handleOnline','ICommandService','entries','has','text','disposeWithMe','onRendered','_collabSessionService','from','init','Stop\x20following','FOLLOWING','div','_mountLiveShare','useDependency','Start','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','Inject','Dropdown','attrs','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','substring','forwardRef','IDLE','presenting','tryStartPresenting','path','end','Stop\x20presenting','_configService','LIVESHARE_TERMINATE','_stopFollowing','_handleOffline','_handleTerminate','takeUntil','requireSession','parseProtocolChangeset','jsx','dispose$','CommandType','UniverInstanceType','_handleNewChangeSets','startFollowing','useRef','xlink:href','values','DependentOn','onCommandExecuted','UniverSheets','_univerInstanceService','presenter','LiveShareStatus','Subject','UniverProCollaboration','Start\x20following','LiveShareController','toDisposable','PRESENTING','status$','ONLINE','@univerjs/sheets-ui','_uiPartsService','Disposable','pluginName','getValue','UniverProCollaborationClient','NOT_FOLLOWING','registerInitialStateReporter','clear','stopPresenting','createInstance','SessionStatus','Plugin','unsubscribe','You\x27re\x20presenting\x20the\x20document','IUniverInstanceService','UniverIcon','_collabSession','useEffect','offline','mergeOverrideWithDependencies','defs','UniverLiveSharePlugin','complete','592723rHDpPd','operations','Present\x20this\x20document','defIds','_injector','find','use','stringify','NEW_CHANGESETS','CollaborationEvent','univer-mb-3\x20univer-w-full\x20univer-text-sm','forEach','_commandDisposable','react/jsx-runtime','map','getInitialStates','mask','45976EZAwAN','_stopPresenting','UniverCollaborationClientPlugin','none','send','_status$','@univerjs/ui','getMemberID','not-following'];_0x3440=function(){return _0x329360;};return _0x3440();}
1
+ (function(_0x36beaf,_0x16720b){const _0x60c671=_0x3b31,_0x48a949=_0x36beaf();while(!![]){try{const _0x37f0fd=-parseInt(_0x60c671(0x141))/0x1*(parseInt(_0x60c671(0x14a))/0x2)+parseInt(_0x60c671(0x158))/0x3+parseInt(_0x60c671(0x1f6))/0x4*(-parseInt(_0x60c671(0x1ea))/0x5)+parseInt(_0x60c671(0x1e7))/0x6+-parseInt(_0x60c671(0x173))/0x7+parseInt(_0x60c671(0x184))/0x8*(-parseInt(_0x60c671(0x1c0))/0x9)+parseInt(_0x60c671(0x171))/0xa;if(_0x37f0fd===_0x16720b)break;else _0x48a949['push'](_0x48a949['shift']());}catch(_0xc3be35){_0x48a949['push'](_0x48a949['shift']());}}}(_0x49f8,0xc4911),function(_0xc37c26,_0x12da8e){const _0x3033f0=_0x3b31;typeof exports==_0x3033f0(0x202)&&typeof module<'u'?_0x12da8e(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==_0x3033f0(0x1a0)&&define[_0x3033f0(0x1ec)]?define([_0x3033f0(0x163),_0x3033f0(0x1fd),_0x3033f0(0x14f),_0x3033f0(0x1c8),_0x3033f0(0x19b),_0x3033f0(0x12f),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client',_0x3033f0(0x1eb),_0x3033f0(0x15c),'rxjs/operators',_0x3033f0(0x119)],_0x12da8e):(_0xc37c26=typeof globalThis<'u'?globalThis:_0xc37c26||self,_0x12da8e(_0xc37c26[_0x3033f0(0x13f)]={},_0xc37c26[_0x3033f0(0x195)],_0xc37c26[_0x3033f0(0x1ab)],_0xc37c26[_0x3033f0(0x157)],_0xc37c26[_0x3033f0(0x1b8)],_0xc37c26[_0x3033f0(0x157)],_0xc37c26[_0x3033f0(0x1a6)],_0xc37c26['UniverProCollaborationClient'],_0xc37c26['UniverSheets'],_0xc37c26['rxjs'],_0xc37c26[_0x3033f0(0x15c)][_0x3033f0(0x138)],_0xc37c26[_0x3033f0(0x1b5)]));}(this,function(_0x3ff051,_0x4ea4da,_0x129c97,_0x53bcf5,_0x261788,_0x1c0b58,_0x296f5d,_0x225879,_0x5878f8,_0x4b1e04,_0x120056,_0xd4b36e){'use strict';const _0x1e8697=_0x3b31;var _0x24d5d8=Object['defineProperty'],_0x48f77d=(_0x203591,_0x419ace,_0x10021f)=>_0x419ace in _0x203591?_0x24d5d8(_0x203591,_0x419ace,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10021f}):_0x203591[_0x419ace]=_0x10021f,_0x207c01=(_0x1d3416,_0x337cd5,_0x58853d)=>_0x48f77d(_0x1d3416,typeof _0x337cd5!='symbol'?_0x337cd5+'':_0x337cd5,_0x58853d);function _0x30672e({ref:_0x426b89,..._0x195e27}){const _0x5d8d85=_0x3b31,{icon:_0xfc4e57,id:_0x5a7aa8,className:_0x26a87a,extend:_0x39522d,..._0x4e1050}=_0x195e27,_0x33d40b=(_0x5d8d85(0x1b1)+_0x5a7aa8+'\x20'+(_0x26a87a||''))[_0x5d8d85(0x1df)](),_0x818312=_0x1c0b58[_0x5d8d85(0x11a)]('_'+_0x5c3b2a());return _0x5f3ecb(_0xfc4e57,''+_0x5a7aa8,{'defIds':_0xfc4e57[_0x5d8d85(0x1c7)],'idSuffix':_0x818312['current']},{'ref':_0x426b89,'className':_0x33d40b,..._0x4e1050},_0x39522d);}function _0x5f3ecb(_0x53e14c,_0x56ce7e,_0x58144f,_0x2f4f4f,_0x8a715e){const _0x46bc8d=_0x3b31;return _0x1c0b58['createElement'](_0x53e14c[_0x46bc8d(0x16e)],{'key':_0x56ce7e,..._0x37b495(_0x53e14c,_0x58144f,_0x8a715e),..._0x2f4f4f},(_0x59fb3d(_0x53e14c,_0x58144f)[_0x46bc8d(0x114)]||[])['map']((_0x2ea141,_0x233e1f)=>_0x5f3ecb(_0x2ea141,_0x56ce7e+'-'+_0x53e14c['tag']+'-'+_0x233e1f,_0x58144f,void 0x0,_0x8a715e)));}function _0x37b495(_0x2a26f2,_0x15e176,_0x4e6771){const _0x17068a=_0x3b31,_0x13304c={..._0x2a26f2['attrs']};_0x4e6771!=null&&_0x4e6771['colorChannel1']&&_0x13304c[_0x17068a(0x155)]===_0x17068a(0x197)&&(_0x13304c[_0x17068a(0x155)]=_0x4e6771[_0x17068a(0x197)]),_0x2a26f2[_0x17068a(0x16e)]===_0x17068a(0x1b2)&&_0x13304c['id']&&(_0x13304c['id']=_0x13304c['id']+_0x15e176[_0x17068a(0x16a)]),Object['entries'](_0x13304c)[_0x17068a(0x137)](([_0x2df48a,_0x2f47ec])=>{const _0x34b5c5=_0x17068a;_0x2df48a===_0x34b5c5(0x1b2)&&typeof _0x2f47ec==_0x34b5c5(0x17f)&&(_0x13304c[_0x2df48a]=_0x2f47ec[_0x34b5c5(0x1c2)](/url\(#(.*)\)/,'url(#$1'+_0x15e176[_0x34b5c5(0x16a)]+')'));});const {defIds:_0x589211}=_0x15e176;return!_0x589211||_0x589211[_0x17068a(0x196)]===0x0||(_0x2a26f2[_0x17068a(0x16e)]===_0x17068a(0x145)&&_0x13304c[_0x17068a(0x130)]&&(_0x13304c[_0x17068a(0x130)]=_0x13304c[_0x17068a(0x130)]+_0x15e176[_0x17068a(0x16a)]),Object[_0x17068a(0x18e)](_0x13304c)[_0x17068a(0x137)](([_0x5dbbed,_0x38d37b])=>{const _0x45133e=_0x17068a;typeof _0x38d37b==_0x45133e(0x17f)&&(_0x13304c[_0x5dbbed]=_0x38d37b[_0x45133e(0x1c2)](/url\(#(.*)\)/,'url(#$1'+_0x15e176['idSuffix']+')'));})),_0x13304c;}function _0x59fb3d(_0x367491,_0xc90421){const _0x1ccbc4=_0x3b31;var _0x29ef28;const {defIds:_0xe5c4a9}=_0xc90421;return!_0xe5c4a9||_0xe5c4a9[_0x1ccbc4(0x196)]===0x0?_0x367491:_0x367491[_0x1ccbc4(0x16e)]===_0x1ccbc4(0x135)&&((_0x29ef28=_0x367491[_0x1ccbc4(0x114)])!=null&&_0x29ef28[_0x1ccbc4(0x196)])?{..._0x367491,'children':_0x367491['children'][_0x1ccbc4(0x140)](_0x30296d=>typeof _0x30296d[_0x1ccbc4(0x13a)]['id']==_0x1ccbc4(0x17f)&&_0xe5c4a9&&_0xe5c4a9[_0x1ccbc4(0x1e3)](_0x30296d[_0x1ccbc4(0x13a)]['id'])?{..._0x30296d,'attrs':{..._0x30296d[_0x1ccbc4(0x13a)],'id':_0x30296d[_0x1ccbc4(0x13a)]['id']+_0xc90421[_0x1ccbc4(0x16a)]}}:_0x30296d)}:_0x367491;}function _0x5c3b2a(){const _0x5b5592=_0x3b31;return Math[_0x5b5592(0x128)]()[_0x5b5592(0x13d)](0x24)[_0x5b5592(0x1d6)](0x2,0x8);}_0x30672e[_0x1e8697(0x160)]=_0x1e8697(0x1be);const _0x3c6088={'tag':_0x1e8697(0x1d9),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1e8697(0x1e8),'viewBox':_0x1e8697(0x177),'width':_0x1e8697(0x161),'height':_0x1e8697(0x161)},'children':[{'tag':_0x1e8697(0x16b),'attrs':{'fill':_0x1e8697(0x15a),'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':_0x1e8697(0x16b),'attrs':{'fill':_0x1e8697(0x15a),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x1e8697(0x13e),'clipRule':_0x1e8697(0x13e)}}]},_0x438626=_0x1c0b58[_0x1e8697(0x139)](function(_0x5b7455,_0x52e532){const _0x12b28f=_0x1e8697;return _0x1c0b58[_0x12b28f(0x203)](_0x30672e,Object['assign']({},_0x5b7455,{'id':_0x12b28f(0x142),'ref':_0x52e532,'icon':_0x3c6088}));});_0x438626['displayName']=_0x1e8697(0x117);class _0x1c4fcf extends _0x4ea4da[_0x1e8697(0x13c)]{constructor(){const _0x4b7811=_0x1e8697;super(...arguments),_0x207c01(this,_0x4b7811(0x194),new Set()),_0x207c01(this,'_reporters',new Set());}[_0x1e8697(0x1cc)](_0x2e0c9e){const _0x2c6b45=_0x1e8697;return this['_sharedOperations'][_0x2c6b45(0x1bb)](_0x2e0c9e),_0x4ea4da['toDisposable'](()=>this['_sharedOperations'][_0x2c6b45(0x17d)](_0x2e0c9e));}['registerInitialStateReporter'](_0x491e6d){const _0x490c72=_0x1e8697;return this['_reporters']['add'](_0x491e6d),_0x4ea4da[_0x490c72(0x19d)](()=>this[_0x490c72(0x11c)][_0x490c72(0x17d)](_0x491e6d));}[_0x1e8697(0x1e1)](_0x5db473){const _0x4f4ead=_0x1e8697;return this['_sharedOperations'][_0x4f4ead(0x18c)](_0x5db473);}[_0x1e8697(0x204)](_0x3ec7bf){const _0x1fb05a=_0x1e8697;return Array[_0x1fb05a(0x18b)](this[_0x1fb05a(0x11c)])['map'](_0x4d3c2c=>_0x4d3c2c(_0x3ec7bf));}}var _0x548c6a=Object[_0x1e8697(0x14c)],_0x4cd045=(_0x316088,_0x5a8a45,_0x3824cd,_0x2746c1)=>{const _0x577cbb=_0x1e8697;for(var _0x37a392=_0x2746c1>0x1?void 0x0:_0x2746c1?_0x548c6a(_0x5a8a45,_0x3824cd):_0x5a8a45,_0x3b7700=_0x316088[_0x577cbb(0x196)]-0x1,_0x304928;_0x3b7700>=0x0;_0x3b7700--)(_0x304928=_0x316088[_0x3b7700])&&(_0x37a392=_0x304928(_0x37a392)||_0x37a392);return _0x37a392;},_0x180174=(_0x46afd5,_0x2b8a9d)=>(_0x47c4df,_0x28afae)=>_0x2b8a9d(_0x47c4df,_0x28afae,_0x46afd5);_0x3ff051['LiveShareController']=class extends _0x4ea4da[_0x1e8697(0x1bd)]{constructor(_0x3ab210,_0x5c2fd4,_0x576703){const _0x412fea=_0x1e8697;super(),_0x207c01(this,_0x412fea(0x1f8),new Map()),(this[_0x412fea(0x17e)]=_0x3ab210,this[_0x412fea(0x17a)]=_0x5c2fd4,this[_0x412fea(0x178)]=_0x576703,this[_0x412fea(0x1cf)]());}async[_0x1e8697(0x127)](_0x2f1ed5){const _0x550864=_0x1e8697;return this[_0x550864(0x1f8)][_0x550864(0x18c)](_0x2f1ed5)||await this[_0x550864(0x1fc)](_0x2f1ed5),this[_0x550864(0x1f8)][_0x550864(0x1a8)](_0x2f1ed5);}['getLiveShareCoordinatorSync'](_0x1d278f){const _0x19987b=_0x1e8697;var _0x314941;return(_0x314941=this[_0x19987b(0x1f8)][_0x19987b(0x1a8)](_0x1d278f))!=null?_0x314941:null;}[_0x1e8697(0x1cf)](){const _0x19a94f=_0x1e8697;this[_0x19a94f(0x17e)][_0x19a94f(0x129)](_0x4ea4da[_0x19a94f(0x1a2)]['UNIVER_SHEET'])[_0x19a94f(0x14d)](_0x120056[_0x19a94f(0x16c)](this['dispose$']))[_0x19a94f(0x18f)](async _0x41f081=>{const _0x432d3a=_0x19a94f,_0xa29e68=_0x41f081[_0x432d3a(0x15b)]();this['_entities']['has'](_0xa29e68)||this[_0x432d3a(0x1fc)](_0xa29e68);}),this['_univerInstanceService'][_0x19a94f(0x1d7)](_0x4ea4da[_0x19a94f(0x1a2)][_0x19a94f(0x187)])[_0x19a94f(0x14d)](_0x120056['takeUntil'](this['dispose$']))[_0x19a94f(0x18f)](_0x23a377=>{const _0x4c285a=_0x19a94f,_0x54b1a2=_0x23a377['getUnitId'](),_0x4da872=this[_0x4c285a(0x1f8)]['get'](_0x54b1a2);_0x4da872==null||_0x4da872[_0x4c285a(0x1f9)]();});}async[_0x1e8697(0x1fc)](_0x3d8669){const _0x24728a=_0x1e8697,_0x5072ca=await this['_collabSessionService'][_0x24728a(0x136)](_0x3d8669),_0x5ef203=this[_0x24728a(0x17a)][_0x24728a(0x13b)](_0x3ff051[_0x24728a(0x115)],_0x3d8669,_0x5072ca);return _0x5ef203[_0x24728a(0x12a)](),this[_0x24728a(0x1f8)]['set'](_0x3d8669,_0x5ef203),_0x5ef203;}},_0x3ff051[_0x1e8697(0x1db)]=_0x4cd045([_0x180174(0x0,_0x4ea4da[_0x1e8697(0x185)]),_0x180174(0x1,_0x4ea4da[_0x1e8697(0x1ac)](_0x4ea4da[_0x1e8697(0x1d4)])),_0x180174(0x2,_0x4ea4da['Inject'](_0x225879[_0x1e8697(0x144)]))],_0x3ff051['LiveShareController']);var _0x4d7256=(_0x363b31=>(_0x363b31[_0x1e8697(0x169)]=_0x1e8697(0x1ed),_0x363b31[_0x1e8697(0x14b)]=_0x1e8697(0x1e9),_0x363b31['FOLLOWING']=_0x1e8697(0x170),_0x363b31[_0x1e8697(0x1e2)]=_0x1e8697(0x17b),_0x363b31[_0x1e8697(0x1c6)]='presenting',_0x363b31))(_0x4d7256||{});const _0x4c90ac='SAME_OPERATION_SHARE_INTERVAL',_0xe3bdac=0xc8;_0x3ff051['LiveShareCoordinator']=class extends _0x4ea4da[_0x1e8697(0x1bd)]{constructor(_0x5bd76b,_0x4b4b7e,_0x5a1e33,_0x312bb3,_0x6d7ebc){const _0x1b0a5c=_0x1e8697;super(),_0x207c01(this,_0x1b0a5c(0x151),new _0x4b1e04[(_0x1b0a5c(0x12b))](_0x1b0a5c(0x1e9))),_0x207c01(this,_0x1b0a5c(0x166),this['_status$'][_0x1b0a5c(0x131)]()),_0x207c01(this,_0x1b0a5c(0x1cf),!0x1),_0x207c01(this,_0x1b0a5c(0x188),null),_0x207c01(this,_0x1b0a5c(0x1af),null),(this[_0x1b0a5c(0x14e)]=_0x5bd76b,this[_0x1b0a5c(0x1f7)]=_0x4b4b7e,this[_0x1b0a5c(0x121)]=_0x5a1e33,this[_0x1b0a5c(0x189)]=_0x312bb3,this[_0x1b0a5c(0x1cb)]=_0x6d7ebc);}get[_0x1e8697(0x1c1)](){const _0x17d661=_0x1e8697;return this[_0x17d661(0x151)]['getValue']();}['dispose'](){const _0x326b01=_0x1e8697;var _0x4801a7;(_0x4801a7=this['_commandDisposable'])==null||_0x4801a7[_0x326b01(0x1f9)](),this[_0x326b01(0x151)][_0x326b01(0x133)](_0x326b01(0x1e9)),this[_0x326b01(0x151)][_0x326b01(0x1ad)]();}[_0x1e8697(0x11e)](){return this['_status'];}['init'](){const _0x3629ef=_0x1e8697;this[_0x3629ef(0x1cf)]||(this[_0x3629ef(0x1cf)]=!0x0,this[_0x3629ef(0x1f7)][_0x3629ef(0x1e4)]['pipe'](_0x120056[_0x3629ef(0x16c)](this[_0x3629ef(0x122)]))['subscribe'](_0x56f4e7=>{const _0x148ec9=_0x3629ef;switch(_0x56f4e7){case _0x225879[_0x148ec9(0x134)][_0x148ec9(0x169)]:this['_handleOffline']();break;case _0x225879[_0x148ec9(0x134)]['ONLINE']:this[_0x148ec9(0x1ca)]();break;}}),this[_0x3629ef(0x1f7)][_0x3629ef(0x12e)][_0x3629ef(0x14d)](_0x120056[_0x3629ef(0x16c)](this[_0x3629ef(0x122)]))[_0x3629ef(0x18f)](_0x327a5b=>{const _0x1d33ed=_0x3629ef,{eventID:_0x4e5e14}=_0x327a5b;switch(_0x4e5e14){case _0x296f5d[_0x1d33ed(0x1ce)]['LIVESHARE_NEW_HOST']:this[_0x1d33ed(0x1f4)](_0x327a5b);break;case _0x296f5d[_0x1d33ed(0x1ce)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x327a5b);break;case _0x296f5d[_0x1d33ed(0x1ce)][_0x1d33ed(0x1fe)]:this[_0x1d33ed(0x147)]();break;case _0x296f5d[_0x1d33ed(0x1ce)]['NEW_CHANGESETS']:this[_0x1d33ed(0x183)](_0x327a5b);break;}}));}[_0x1e8697(0x1ee)](){const _0x556e9d=_0x1e8697;this[_0x556e9d(0x1f7)][_0x556e9d(0x1b3)]({'eventID':_0x296f5d[_0x556e9d(0x1ce)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x556e9d(0x14e)],'userID':this['_collabSession'][_0x556e9d(0x1ae)]()}},this['_unitID']);}['stopPresenting'](){const _0x4dadf=_0x1e8697;this['_status']===_0x4dadf(0x1f3)&&(this[_0x4dadf(0x151)][_0x4dadf(0x133)](_0x4dadf(0x1e9)),this[_0x4dadf(0x1f7)][_0x4dadf(0x1b3)]({'eventID':_0x296f5d[_0x4dadf(0x1ce)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4dadf(0x14e)]}},this[_0x4dadf(0x14e)]));}[_0x1e8697(0x124)](){const _0x10b5c7=_0x1e8697;this['_status']===_0x10b5c7(0x17b)&&(this[_0x10b5c7(0x151)][_0x10b5c7(0x133)]('following'),this[_0x10b5c7(0x193)]());}[_0x1e8697(0x125)](){const _0xd94eed=_0x1e8697;this[_0xd94eed(0x1c1)]===_0xd94eed(0x170)&&this['_stopFollowing']();}['_handleNewHost'](_0x335bba){const _0xcfd286=_0x1e8697,{presenter:_0x1a7f09}=_0x335bba[_0xcfd286(0x15e)],_0x12234e=this[_0xcfd286(0x1f7)][_0xcfd286(0x1ae)]();this['_presenter']=_0x1a7f09,_0x1a7f09===_0x12234e?(this[_0xcfd286(0x1e6)](),this['_startPresenting']()):this[_0xcfd286(0x1c1)]!==_0xcfd286(0x17b)&&(this[_0xcfd286(0x180)](),this[_0xcfd286(0x193)]());}[_0x1e8697(0x186)](){const _0x120e89=_0x1e8697,_0x5e5d04={'eventID':_0x296f5d[_0x120e89(0x1ce)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x120e89(0x1f7)]['send'](_0x5e5d04,this['_unitID']);}[_0x1e8697(0x147)](){const _0x5c8918=_0x1e8697;this[_0x5c8918(0x1af)]=null,this[_0x5c8918(0x1c1)]!==_0x5c8918(0x1f3)&&this[_0x5c8918(0x201)]();}[_0x1e8697(0x183)](_0x180552){const _0x4a00aa=_0x1e8697;if(this[_0x4a00aa(0x1c1)]===_0x4a00aa(0x170)&&this[_0x4a00aa(0x1af)]===_0x180552[_0x4a00aa(0x15e)][_0x4a00aa(0x1a4)]){const _0x110420=_0x296f5d[_0x4a00aa(0x12d)](_0x180552[_0x4a00aa(0x15e)])[_0x4a00aa(0x152)][_0x4a00aa(0x1bc)]()[_0x4a00aa(0x1fb)](_0x3925c1=>_0x3925c1['id']===_0x5878f8[_0x4a00aa(0x1dd)]['id']);if(_0x110420){const _0x530b2f=_0x110420[_0x4a00aa(0x116)][_0x4a00aa(0x11b)],_0x4b9356=_0x110420[_0x4a00aa(0x116)]['sheet']['id'];setTimeout(()=>{const _0x67b8a2=_0x4a00aa;this[_0x67b8a2(0x1cb)][_0x67b8a2(0x19a)](_0x5878f8['SetWorksheetActiveOperation']['id'],{'unitId':_0x530b2f,'subUnitId':_0x4b9356},{'fromCollab':!0x0});});}}}[_0x1e8697(0x1c9)](){const _0x487871=_0x1e8697;this[_0x487871(0x151)][_0x487871(0x133)](_0x487871(0x1f3));const _0x3dace6=new Map(),_0x18960f=this[_0x487871(0x188)]=new _0x4ea4da[(_0x487871(0x1b4))]();_0x18960f['add'](_0x4ea4da[_0x487871(0x19d)](()=>{const _0x14ad8e=_0x487871;_0x3dace6[_0x14ad8e(0x137)](_0x115275=>_0x115275['complete']()),_0x3dace6[_0x14ad8e(0x174)]();})),_0x18960f['add'](this[_0x487871(0x1cb)][_0x487871(0x1de)](_0x1dfeb9=>{const _0x1579ca=_0x487871;var _0xb092f3;if(_0x1dfeb9[_0x1579ca(0x1d3)]!==_0x4ea4da[_0x1579ca(0x172)][_0x1579ca(0x199)]||!this[_0x1579ca(0x189)][_0x1579ca(0x1e1)](_0x1dfeb9['id']))return;const {id:_0x31f935}=_0x1dfeb9;let _0x4628b0;_0x3dace6[_0x1579ca(0x18c)](_0x31f935)?_0x4628b0=_0x3dace6['get'](_0x31f935):(_0x4628b0=new _0x4b1e04[(_0x1579ca(0x132))](),_0x3dace6[_0x1579ca(0x18a)](_0x31f935,_0x4628b0),_0x4628b0['pipe'](_0x120056[_0x1579ca(0x1dc)]((_0xb092f3=this[_0x1579ca(0x121)][_0x1579ca(0x1f0)](_0x4c90ac))!=null?_0xb092f3:_0xe3bdac,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1579ca(0x18f)](_0x1fe29a=>{const _0x430bc5=_0x1579ca;this[_0x430bc5(0x1f7)][_0x430bc5(0x1b3)]({'eventID':_0x296f5d[_0x430bc5(0x1ce)][_0x430bc5(0x1c4)],'data':{'unitID':this['_unitID'],'operations':{[_0x1fe29a['id']]:{'id':_0x1fe29a['id'],'params':JSON[_0x430bc5(0x150)](_0x1fe29a[_0x430bc5(0x116)])}}}},this['_unitID']);})),_0x4628b0[_0x1579ca(0x133)](_0x1dfeb9);})),this[_0x487871(0x189)][_0x487871(0x204)](this[_0x487871(0x14e)])['forEach'](_0x1e076a=>this[_0x487871(0x1f7)][_0x487871(0x1b3)]({'eventID':_0x296f5d['CollaborationEvent'][_0x487871(0x1c4)],'data':{'unitID':this[_0x487871(0x14e)],'operations':{[_0x1e076a['id']]:{'id':_0x1e076a['id'],'params':JSON[_0x487871(0x150)](_0x1e076a[_0x487871(0x116)])}}}},this['_unitID']));}[_0x1e8697(0x180)](){const _0x90e8af=_0x1e8697;var _0x51b689;this[_0x90e8af(0x151)]['next'](_0x90e8af(0x1e9)),(_0x51b689=this['_commandDisposable'])==null||_0x51b689[_0x90e8af(0x1f9)](),this[_0x90e8af(0x188)]=null;}[_0x1e8697(0x193)](){const _0x47a2ff=_0x1e8697;var _0x5ecce6;(_0x5ecce6=this[_0x47a2ff(0x188)])==null||_0x5ecce6[_0x47a2ff(0x1f9)](),this['_status$']['next'](_0x47a2ff(0x170));}['_beIdle'](){const _0x2531c2=_0x1e8697;var _0xd52c7f;this[_0x2531c2(0x151)][_0x2531c2(0x133)](_0x2531c2(0x1e9)),(_0xd52c7f=this[_0x2531c2(0x188)])==null||_0xd52c7f[_0x2531c2(0x1f9)](),this[_0x2531c2(0x188)]=null;}[_0x1e8697(0x1e6)](){const _0x3bd8d7=_0x1e8697;var _0x3dc3ee;this[_0x3bd8d7(0x151)][_0x3bd8d7(0x133)](_0x3bd8d7(0x17b)),(_0x3dc3ee=this[_0x3bd8d7(0x188)])==null||_0x3dc3ee['dispose']();}[_0x1e8697(0x19f)](_0x2af8f4){const _0x5f06b2=_0x1e8697;if([_0x5f06b2(0x1f3),'not-following',_0x5f06b2(0x1ed)][_0x5f06b2(0x1e3)](this[_0x5f06b2(0x1c1)])||!_0x2af8f4[_0x5f06b2(0x15e)][_0x5f06b2(0x1a5)]||_0x2af8f4['data'][_0x5f06b2(0x1a5)]===this['_collabSession'][_0x5f06b2(0x1ae)]())return;this[_0x5f06b2(0x1c1)]===_0x5f06b2(0x1e9)&&this['_startFollowing']();const _0x181f15=_0x2af8f4[_0x5f06b2(0x15e)][_0x5f06b2(0x182)];Object[_0x5f06b2(0x1e0)](_0x181f15)[_0x5f06b2(0x137)](_0x556113=>{const _0x331159=_0x5f06b2;this[_0x331159(0x1cb)][_0x331159(0x19a)](_0x556113['id'],_0x556113[_0x331159(0x116)]?JSON[_0x331159(0x192)](_0x556113[_0x331159(0x116)]):null,{'fromCollab':!0x0});});}[_0x1e8697(0x1b0)](){const _0x6f2c5d=_0x1e8697;var _0x4609ef;this['_status$'][_0x6f2c5d(0x133)](_0x6f2c5d(0x1ed)),(_0x4609ef=this[_0x6f2c5d(0x188)])==null||_0x4609ef[_0x6f2c5d(0x1f9)]();}[_0x1e8697(0x1ca)](){const _0x163644=_0x1e8697;this['_status$'][_0x163644(0x133)](_0x163644(0x1e9)),this[_0x163644(0x186)]();}},_0x3ff051[_0x1e8697(0x115)]=_0x4cd045([_0x180174(0x2,_0x4ea4da[_0x1e8697(0x181)]),_0x180174(0x3,_0x4ea4da[_0x1e8697(0x1ac)](_0x1c4fcf)),_0x180174(0x4,_0x4ea4da[_0x1e8697(0x175)])],_0x3ff051['LiveShareCoordinator']);function _0x2e9f9f(){const _0x5b114f=_0x1e8697,_0x37a584=_0x129c97['useDependency'](_0x3ff051[_0x5b114f(0x1db)]),_0x19b75a=_0x129c97[_0x5b114f(0x1cd)](_0x4ea4da[_0x5b114f(0x185)]),_0x12596a=_0x129c97[_0x5b114f(0x19e)](()=>_0x19b75a[_0x5b114f(0x1c5)](_0x4ea4da[_0x5b114f(0x1a2)][_0x5b114f(0x187)]),void 0x0,!0x1,[]),[_0x3b7c7b,_0x49ddd9]=_0x1c0b58[_0x5b114f(0x143)](null),[_0xb4de3,_0x138299]=_0x1c0b58[_0x5b114f(0x143)](_0x4d7256['IDLE']),_0x12c36a=_0x1c0b58['useRef'](null);return _0x1c0b58[_0x5b114f(0x113)](()=>(_0x12596a&&_0x37a584['getLiveShareCoordinator'](_0x12596a[_0x5b114f(0x15b)]())[_0x5b114f(0x120)](_0x26ee11=>{const _0x1b625f=_0x5b114f;_0x49ddd9(_0x26ee11),_0x12c36a[_0x1b625f(0x1a3)]=_0x26ee11['status$'][_0x1b625f(0x18f)](_0x139d86=>{_0x138299(_0x139d86);});}),()=>{const _0x3dcd57=_0x5b114f;var _0xcee751;(_0xcee751=_0x12c36a[_0x3dcd57(0x1a3)])==null||_0xcee751[_0x3dcd57(0x1a9)](),_0x12c36a[_0x3dcd57(0x1a3)]=null;}),[_0x12596a,_0x37a584]),_0x3b7c7b?_0x53bcf5[_0x5b114f(0x126)](_0x261788[_0x5b114f(0x149)],{'align':_0x5b114f(0x123),'disabled':_0xb4de3===_0x4d7256['OFFLINE'],'className':_0x5b114f(0x165),'overlay':_0x53bcf5[_0x5b114f(0x126)](_0x3807cb,{'status':_0xb4de3,'coordinator':_0x3b7c7b}),'children':_0x53bcf5[_0x5b114f(0x126)](_0x5b114f(0x164),{'className':_0x261788[_0x5b114f(0x167)](_0x5b114f(0x1e5),{'univer-cursor-not-allowed':_0xb4de3===_0x4d7256[_0x5b114f(0x169)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xb4de3!==_0x4d7256[_0x5b114f(0x169)]}),'type':'button','children':_0x53bcf5['jsx'](_0x438626,{'className':_0x5b114f(0x198)})})}):null;}function _0x3807cb(_0x341f8b){const _0x1b4b91=_0x1e8697,{status:_0x228f42,coordinator:_0x3a07ad}=_0x341f8b;switch(_0x228f42){case _0x4d7256[_0x1b4b91(0x14b)]:return _0x53bcf5[_0x1b4b91(0x126)](_0x311147,{'coordinator':_0x3a07ad});case _0x4d7256[_0x1b4b91(0x11d)]:return _0x53bcf5[_0x1b4b91(0x126)](_0x50f9b6,{'coordinator':_0x3a07ad});case _0x4d7256[_0x1b4b91(0x1e2)]:return _0x53bcf5[_0x1b4b91(0x126)](_0x27705d,{'coordinator':_0x3a07ad});case _0x4d7256[_0x1b4b91(0x169)]:return _0x53bcf5[_0x1b4b91(0x126)](_0xf88de6,{});case _0x4d7256['PRESENTING']:return _0x53bcf5[_0x1b4b91(0x126)](_0x4357ca,{'coordinator':_0x3a07ad});default:return null;}}function _0x311147(_0x26fb9e){const _0x27367a=_0x1e8697,{coordinator:_0x9b8ceb}=_0x26fb9e;return _0x53bcf5[_0x27367a(0x153)](_0x53bcf5[_0x27367a(0x1f2)],{'children':[_0x53bcf5[_0x27367a(0x126)](_0x27367a(0x18d),{'className':_0x27367a(0x1ba),'children':_0x27367a(0x154)}),_0x53bcf5[_0x27367a(0x126)](_0x261788['Button'],{'onClick':()=>_0x9b8ceb[_0x27367a(0x1ee)](),'children':_0x27367a(0x148)})]});}function _0x50f9b6(_0x93be78){const _0x48fe33=_0x1e8697,{coordinator:_0x523447}=_0x93be78;return _0x53bcf5[_0x48fe33(0x153)](_0x53bcf5[_0x48fe33(0x1f2)],{'children':[_0x53bcf5[_0x48fe33(0x126)](_0x48fe33(0x18d),{'className':_0x48fe33(0x1ba),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x53bcf5[_0x48fe33(0x126)](_0x261788[_0x48fe33(0x200)],{'onClick':()=>_0x523447[_0x48fe33(0x125)](),'children':_0x48fe33(0x1d1)})]});}function _0x27705d(_0x25482a){const _0x1b1303=_0x1e8697,{coordinator:_0x586ddd}=_0x25482a;return _0x53bcf5[_0x1b1303(0x153)](_0x53bcf5['Fragment'],{'children':[_0x53bcf5[_0x1b1303(0x126)](_0x1b1303(0x18d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1b1303(0x1f5)}),_0x53bcf5[_0x1b1303(0x126)](_0x261788[_0x1b1303(0x200)],{'variant':_0x1b1303(0x1d2),'onClick':()=>_0x586ddd[_0x1b1303(0x124)](),'children':'Start\x20following'})]});}function _0x4357ca(_0x9c2d71){const _0x1c372e=_0x1e8697,{coordinator:_0x410064}=_0x9c2d71;return _0x53bcf5['jsxs'](_0x53bcf5['Fragment'],{'children':[_0x53bcf5[_0x1c372e(0x126)](_0x1c372e(0x18d),{'className':_0x1c372e(0x1ba),'children':_0x1c372e(0x156)}),_0x53bcf5[_0x1c372e(0x126)](_0x261788[_0x1c372e(0x200)],{'variant':'default','onClick':()=>_0x410064[_0x1c372e(0x17c)](),'children':_0x1c372e(0x179)})]});}function _0xf88de6(){const _0x46f02b=_0x1e8697;return _0x53bcf5[_0x46f02b(0x126)](_0x53bcf5[_0x46f02b(0x1f2)],{'children':_0x46f02b(0x1f1)});}var _0x2681c6=Object[_0x1e8697(0x14c)],_0x2fa101=(_0x3fae11,_0x222364,_0x4b0b94,_0x1a8ed6)=>{const _0x38dadd=_0x1e8697;for(var _0x2c1124=_0x1a8ed6>0x1?void 0x0:_0x1a8ed6?_0x2681c6(_0x222364,_0x4b0b94):_0x222364,_0x4f32fe=_0x3fae11[_0x38dadd(0x196)]-0x1,_0x4f4d54;_0x4f32fe>=0x0;_0x4f32fe--)(_0x4f4d54=_0x3fae11[_0x4f32fe])&&(_0x2c1124=_0x4f4d54(_0x2c1124)||_0x2c1124);return _0x2c1124;},_0x1903ef=(_0x1f9c8e,_0x5ddd22)=>(_0x3d4deb,_0x31b2f7)=>_0x5ddd22(_0x3d4deb,_0x31b2f7,_0x1f9c8e);_0x3ff051[_0x1e8697(0x146)]=class extends _0x4ea4da[_0x1e8697(0x13c)]{constructor(_0x42608e,_0x3aa395){const _0x341154=_0x1e8697;super(),this['_injector']=_0x42608e,this[_0x341154(0x1d5)]=_0x3aa395,this[_0x341154(0x1da)]();}[_0x1e8697(0x1da)](){const _0x59cb3f=_0x1e8697;this[_0x59cb3f(0x162)](this[_0x59cb3f(0x1d5)][_0x59cb3f(0x1b9)](_0x129c97[_0x59cb3f(0x118)][_0x59cb3f(0x15f)],()=>_0x129c97[_0x59cb3f(0x1c3)](_0x2e9f9f,this[_0x59cb3f(0x17a)])));}},_0x3ff051[_0x1e8697(0x146)]=_0x2fa101([_0x1903ef(0x0,_0x4ea4da[_0x1e8697(0x1ac)](_0x4ea4da['Injector'])),_0x1903ef(0x1,_0x129c97[_0x1e8697(0x168)])],_0x3ff051[_0x1e8697(0x146)]);const _0x428506=_0x1e8697(0x176),_0x37bf3b={};var _0x3fb9fa=Object['getOwnPropertyDescriptor'],_0x3a25f6=(_0x532250,_0x4d1b96,_0x3478cb,_0x388f85)=>{const _0x44bf3c=_0x1e8697;for(var _0x1aeb2c=_0x388f85>0x1?void 0x0:_0x388f85?_0x3fb9fa(_0x4d1b96,_0x3478cb):_0x4d1b96,_0x578197=_0x532250[_0x44bf3c(0x196)]-0x1,_0x533149;_0x578197>=0x0;_0x578197--)(_0x533149=_0x532250[_0x578197])&&(_0x1aeb2c=_0x533149(_0x1aeb2c)||_0x1aeb2c);return _0x1aeb2c;},_0x2ed6d8=(_0xdcc604,_0x107f54)=>(_0x12f12f,_0x24937a)=>_0x107f54(_0x12f12f,_0x24937a,_0xdcc604);let _0x466bea=class extends _0x4ea4da[_0x1e8697(0x13c)]{constructor(_0x4b5bfb){const _0x19931f=_0x1e8697;super(),this[_0x19931f(0x189)]=_0x4b5bfb,this[_0x19931f(0x1cf)]();}[_0x1e8697(0x1cf)](){const _0x58496e=_0x1e8697;[_0xd4b36e[_0x58496e(0x16d)]['id'],_0xd4b36e[_0x58496e(0x1a1)]['id'],_0x5878f8[_0x58496e(0x1b6)]['id']][_0x58496e(0x137)](_0x3d7977=>{const _0x2069bc=_0x58496e;this['disposeWithMe'](this[_0x2069bc(0x189)][_0x2069bc(0x1cc)](_0x3d7977));});}};_0x466bea=_0x3a25f6([_0x2ed6d8(0x0,_0x4ea4da[_0x1e8697(0x1ac)](_0x1c4fcf))],_0x466bea);var _0x4c61ac=Object[_0x1e8697(0x11f)],_0x50aba2=Object[_0x1e8697(0x14c)],_0x2431cd=(_0x46ccc0,_0x1c07d7,_0x344041)=>_0x1c07d7 in _0x46ccc0?_0x4c61ac(_0x46ccc0,_0x1c07d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x344041}):_0x46ccc0[_0x1c07d7]=_0x344041,_0x7addbd=(_0x251502,_0x44a028,_0x50371a,_0x219ea3)=>{for(var _0x5a58eb=_0x219ea3>0x1?void 0x0:_0x219ea3?_0x50aba2(_0x44a028,_0x50371a):_0x44a028,_0x381c22=_0x251502['length']-0x1,_0x2ecde6;_0x381c22>=0x0;_0x381c22--)(_0x2ecde6=_0x251502[_0x381c22])&&(_0x5a58eb=_0x2ecde6(_0x5a58eb)||_0x5a58eb);return _0x5a58eb;},_0x3d7c9a=(_0x32693c,_0x4d2bc9)=>(_0x28242d,_0x432162)=>_0x4d2bc9(_0x28242d,_0x432162,_0x32693c),_0x39ec2c=(_0x2976ea,_0xdef04c,_0x5f435d)=>_0x2431cd(_0x2976ea,typeof _0xdef04c!=_0x1e8697(0x15d)?_0xdef04c+'':_0xdef04c,_0x5f435d);const _0x3a4c2d=_0x1e8697(0x1aa);_0x3ff051['UniverLiveSharePlugin']=class extends _0x4ea4da[_0x1e8697(0x16f)]{constructor(_0x1e56e6=_0x37bf3b,_0x298cab,_0x4ab64d){const _0x44aa19=_0x1e8697;super(),this[_0x44aa19(0x1fa)]=_0x1e56e6,this[_0x44aa19(0x17a)]=_0x298cab,this['_configService']=_0x4ab64d;const {..._0x15be3c}=_0x4ea4da[_0x44aa19(0x191)]({},_0x37bf3b,this[_0x44aa19(0x1fa)]);this[_0x44aa19(0x121)]['setConfig'](_0x428506,_0x15be3c);}[_0x1e8697(0x1ef)](){const _0x4f9bda=_0x1e8697;_0x4ea4da[_0x4f9bda(0x1d0)](this[_0x4f9bda(0x17a)],_0x4ea4da[_0x4f9bda(0x1d8)]([[_0x1c4fcf],[_0x3ff051[_0x4f9bda(0x1db)]],[_0x466bea],[_0x3ff051[_0x4f9bda(0x146)]]],this[_0x4f9bda(0x1fa)]['override'])),_0x4ea4da[_0x4f9bda(0x1b7)](this[_0x4f9bda(0x17a)],[[_0x466bea]]);}['onRendered'](){const _0x5742a5=_0x1e8697;_0x4ea4da[_0x5742a5(0x1b7)](this[_0x5742a5(0x17a)],[[_0x3ff051['DesktopLiveShareController']]]);}},_0x39ec2c(_0x3ff051[_0x1e8697(0x12c)],_0x1e8697(0x1d3),_0x4ea4da[_0x1e8697(0x1a2)][_0x1e8697(0x190)]),_0x39ec2c(_0x3ff051[_0x1e8697(0x12c)],'pluginName',_0x3a4c2d),_0x3ff051[_0x1e8697(0x12c)]=_0x7addbd([_0x4ea4da['DependentOn'](_0x225879[_0x1e8697(0x1ff)]),_0x3d7c9a(0x1,_0x4ea4da['Inject'](_0x4ea4da[_0x1e8697(0x1d4)])),_0x3d7c9a(0x2,_0x4ea4da[_0x1e8697(0x181)])],_0x3ff051[_0x1e8697(0x12c)]),_0x3ff051['LiveShare']=_0x2e9f9f,_0x3ff051[_0x1e8697(0x1bf)]=_0x1c4fcf,_0x3ff051[_0x1e8697(0x19c)]=_0x4d7256,Object[_0x1e8697(0x11f)](_0x3ff051,Symbol[_0x1e8697(0x159)],{'value':_0x1e8697(0x1a7)});}));function _0x3b31(_0x4386de,_0x16d86e){_0x4386de=_0x4386de-0x113;const _0x49f886=_0x49f8();let _0x3b3164=_0x49f886[_0x4386de];return _0x3b3164;}function _0x49f8(){const _0x1d0695=['delete','_univerInstanceService','string','_stopPresenting','IConfigService','operations','_handleNewChangeSets','104FUlBcP','IUniverInstanceService','_fetchOperations','UNIVER_SHEET','_commandDisposable','_liveShareService','set','from','has','div','entries','subscribe','UNIVER_UNKNOWN','merge','parse','_startFollowing','_sharedOperations','UniverCore','length','colorChannel1','univer-size-4','OPERATION','executeCommand','@univerjs/design','LiveShareStatus','toDisposable','useObservable','_handleOperation','function','SetScrollOperation','UniverInstanceType','current','memberID','presenter','UniverProCollaboration','Module','get','unsubscribe','UNIVER_LIVE_SHARE_PLUGIN','UniverUi','Inject','complete','getMemberID','_presenter','_handleOffline','univerjs-icon\x20univerjs-icon-','mask','send','DisposableCollection','UniverSheetsUi','SetWorksheetActiveOperation','touchDependencies','UniverDesign','registerComponent','univer-mb-3\x20univer-w-full\x20univer-text-sm','add','reverse','RxDisposable','UniverIcon','LiveShareService','893763qSYWug','_status','replace','connectInjector','LIVESHARE_OPERATION','getCurrentTypeOfUnit$','PRESENTING','defIds','react/jsx-runtime','_startPresenting','_handleOnline','_commandService','registerSharedOperation','useDependency','CollaborationEvent','_init','registerDependencies','Stop\x20following','text','type','Injector','_uiPartsService','substring','getTypeOfUnitDisposed$','mergeOverrideWithDependencies','svg','_mountLiveShare','LiveShareController','throttleTime','InsertSheetMutation','onCommandExecuted','trim','values','shouldShareOperation','NOT_FOLLOWING','includes','sessionStatus$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_stopFollowing','2249502OtYtyM','none','idle','222620ORxWlK','@univerjs/sheets','amd','offline','tryStartPresenting','onStarting','getConfig','You\x27are\x20offline.','Fragment','presenting','_handleNewHost','You\x27re\x20not\x20following\x20the\x20presenter','20sOUpGd','_collabSession','_entities','dispose','_config','find','_startLiveShareCoordinator','@univerjs/core','LIVESHARE_TERMINATE','UniverCollaborationClientPlugin','Button','_beIdle','object','createElement','getInitialStates','useEffect','children','LiveShareCoordinator','params','LiveShareIcon','BuiltInUIPart','@univerjs/sheets-ui','useRef','unitId','_reporters','FOLLOWING','getStatus','defineProperty','then','_configService','dispose$','end','startFollowing','stopFollowing','jsx','getLiveShareCoordinator','random','getTypeOfUnitAdded$','init','BehaviorSubject','UniverLiveSharePlugin','parseProtocolChangeset','event$','react','xlink:href','asObservable','Subject','next','SessionStatus','defs','requireSession','forEach','operators','forwardRef','attrs','createInstance','Disposable','toString','evenodd','UniverProLiveShare','map','20464uZpOmg','live-share-icon','useState','CollaborationSessionService','use','DesktopLiveShareController','_handleTerminate','Start','Dropdown','4iGXSxT','IDLE','getOwnPropertyDescriptor','pipe','_unitID','@univerjs/ui','stringify','_status$','mutations','jsxs','Present\x20this\x20document','fill','You\x27re\x20presenting\x20the\x20document','React','2152563DWPzmI','toStringTag','currentColor','getUnitId','rxjs','symbol','data','HEADER_MENU','displayName','1em','disposeWithMe','exports','button','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','status$','clsx','IUIPartsService','OFFLINE','idSuffix','path','takeUntil','SetZoomRatioOperation','tag','Plugin','following','19119580vPNNaq','CommandType','4513040DqLBqP','clear','ICommandService','live-share.config','0\x200\x2017\x2017','_collabSessionService','Stop\x20presenting','_injector','not-following','stopPresenting'];_0x49f8=function(){return _0x1d0695;};return _0x49f8();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.12.3-experimental.20251204-1549a8e",
3
+ "version": "0.12.3-experimental.20251205-71d07c3",
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/core": "0.12.3-experimental.20251204-1549a8e",
61
- "@univerjs-pro/collaboration": "0.12.3-experimental.20251204-1549a8e",
62
- "@univerjs/design": "0.12.3-experimental.20251204-1549a8e",
63
- "@univerjs/engine-render": "0.12.3-experimental.20251204-1549a8e",
64
- "@univerjs-pro/collaboration-client": "0.12.3-experimental.20251204-1549a8e",
65
- "@univerjs/sheets-ui": "0.12.3-experimental.20251204-1549a8e",
66
- "@univerjs/sheets": "0.12.3-experimental.20251204-1549a8e",
67
- "@univerjs/ui": "0.12.3-experimental.20251204-1549a8e"
60
+ "@univerjs-pro/collaboration": "0.12.3-experimental.20251205-71d07c3",
61
+ "@univerjs/core": "0.12.3-experimental.20251205-71d07c3",
62
+ "@univerjs-pro/collaboration-client": "0.12.3-experimental.20251205-71d07c3",
63
+ "@univerjs/design": "0.12.3-experimental.20251205-71d07c3",
64
+ "@univerjs/engine-render": "0.12.3-experimental.20251205-71d07c3",
65
+ "@univerjs/ui": "0.12.3-experimental.20251205-71d07c3",
66
+ "@univerjs/sheets": "0.12.3-experimental.20251205-71d07c3",
67
+ "@univerjs/sheets-ui": "0.12.3-experimental.20251205-71d07c3"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -74,8 +74,8 @@
74
74
  "typescript": "^5.9.3",
75
75
  "vite": "^7.2.6",
76
76
  "vitest": "^4.0.15",
77
- "@univerjs/protocol": "0.1.47",
78
- "@univerjs-infra/shared": "0.12.3"
77
+ "@univerjs-infra/shared": "0.12.3",
78
+ "@univerjs/protocol": "0.1.47"
79
79
  },
80
80
  "scripts": {
81
81
  "test": "vitest run",