@univerjs-pro/collaboration-client-ui 0.13.0-insiders.20251216-1519cb7 → 0.13.0-insiders.20251220-0a5ea4d

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.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +15 -15
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x131176=_0xd4c9;(function(_0x3d1c02,_0x23d02a){const _0x2ad7d2=_0xd4c9,_0x538f53=_0x3d1c02();while(!![]){try{const _0x384dbc=parseInt(_0x2ad7d2(0x49d))/0x1+parseInt(_0x2ad7d2(0x2ca))/0x2*(parseInt(_0x2ad7d2(0x436))/0x3)+parseInt(_0x2ad7d2(0x3b9))/0x4+parseInt(_0x2ad7d2(0x382))/0x5+parseInt(_0x2ad7d2(0x38e))/0x6+parseInt(_0x2ad7d2(0x281))/0x7*(parseInt(_0x2ad7d2(0x3a5))/0x8)+-parseInt(_0x2ad7d2(0x21d))/0x9;if(_0x384dbc===_0x23d02a)break;else _0x538f53['push'](_0x538f53['shift']());}catch(_0x2b775a){_0x538f53['push'](_0x538f53['shift']());}}}(_0x23f6,0x365a6));var Xe=Object['defineProperty'],Ke=(_0x36bd06,_0x3bc57d,_0x2796e5)=>_0x3bc57d in _0x36bd06?Xe(_0x36bd06,_0x3bc57d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2796e5}):_0x36bd06[_0x3bc57d]=_0x2796e5,_=(_0x59b570,_0x3d7705,_0x155d47)=>Ke(_0x59b570,typeof _0x3d7705!='symbol'?_0x3d7705+'':_0x3d7705,_0x155d47);Object[_0x131176(0x335)](exports,Symbol[_0x131176(0x47e)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x364f3f,..._0x19cdab}){const _0x63aa0a=_0x131176,{icon:_0x1c8bcb,id:_0x435f6f,className:_0x34b754,extend:_0x1f7535,..._0x3af05d}=_0x19cdab,_0x52a0dc=(_0x63aa0a(0x2e0)+_0x435f6f+'\x20'+(_0x34b754||''))[_0x63aa0a(0x361)](),_0x99f6a5=A[_0x63aa0a(0x303)]('_'+Qe());return $e(_0x1c8bcb,''+_0x435f6f,{'defIds':_0x1c8bcb[_0x63aa0a(0x1de)],'idSuffix':_0x99f6a5['current']},{'ref':_0x364f3f,'className':_0x52a0dc,..._0x3af05d},_0x1f7535);}function $e(_0x308862,_0x20f0dc,_0x158b45,_0x4e5719,_0x591472){const _0x10cb91=_0x131176;return A[_0x10cb91(0x420)](_0x308862[_0x10cb91(0x454)],{'key':_0x20f0dc,...Je(_0x308862,_0x158b45,_0x591472),..._0x4e5719},(Ze(_0x308862,_0x158b45)[_0x10cb91(0x26f)]||[])[_0x10cb91(0x225)]((_0x4a0475,_0x18b098)=>$e(_0x4a0475,_0x20f0dc+'-'+_0x308862[_0x10cb91(0x454)]+'-'+_0x18b098,_0x158b45,void 0x0,_0x591472)));}function Je(_0x2e59ef,_0x49c5ae,_0x38f1dc){const _0xd9d480=_0x131176,_0xbb02f={..._0x2e59ef[_0xd9d480(0x3dd)]};_0x38f1dc!=null&&_0x38f1dc[_0xd9d480(0x47d)]&&_0xbb02f[_0xd9d480(0x4aa)]===_0xd9d480(0x47d)&&(_0xbb02f[_0xd9d480(0x4aa)]=_0x38f1dc[_0xd9d480(0x47d)]),_0x2e59ef[_0xd9d480(0x454)]===_0xd9d480(0x1fa)&&_0xbb02f['id']&&(_0xbb02f['id']=_0xbb02f['id']+_0x49c5ae[_0xd9d480(0x425)]),Object['entries'](_0xbb02f)[_0xd9d480(0x24a)](([_0x36960a,_0x31bd46])=>{const _0x46e6cb=_0xd9d480;_0x36960a===_0x46e6cb(0x1fa)&&typeof _0x31bd46==_0x46e6cb(0x1e8)&&(_0xbb02f[_0x36960a]=_0x31bd46[_0x46e6cb(0x3b0)](/url\(#(.*)\)/,_0x46e6cb(0x305)+_0x49c5ae[_0x46e6cb(0x425)]+')'));});const {defIds:_0x5d7d06}=_0x49c5ae;return!_0x5d7d06||_0x5d7d06['length']===0x0||(_0x2e59ef[_0xd9d480(0x454)]===_0xd9d480(0x359)&&_0xbb02f['xlink:href']&&(_0xbb02f['xlink:href']=_0xbb02f[_0xd9d480(0x431)]+_0x49c5ae[_0xd9d480(0x425)]),Object[_0xd9d480(0x3e3)](_0xbb02f)[_0xd9d480(0x24a)](([_0x1afbd8,_0x25da96])=>{const _0x1652d6=_0xd9d480;typeof _0x25da96=='string'&&(_0xbb02f[_0x1afbd8]=_0x25da96[_0x1652d6(0x3b0)](/url\(#(.*)\)/,'url(#$1'+_0x49c5ae['idSuffix']+')'));})),_0xbb02f;}function Ze(_0x3937d0,_0x1cd58b){const _0x27ae81=_0x131176;var _0x2b7e81;const {defIds:_0x1b2cd9}=_0x1cd58b;return!_0x1b2cd9||_0x1b2cd9[_0x27ae81(0x2d6)]===0x0?_0x3937d0:_0x3937d0[_0x27ae81(0x454)]===_0x27ae81(0x312)&&((_0x2b7e81=_0x3937d0['children'])!=null&&_0x2b7e81[_0x27ae81(0x2d6)])?{..._0x3937d0,'children':_0x3937d0[_0x27ae81(0x26f)][_0x27ae81(0x225)](_0x52a0f4=>typeof _0x52a0f4['attrs']['id']==_0x27ae81(0x1e8)&&_0x1b2cd9&&_0x1b2cd9['includes'](_0x52a0f4['attrs']['id'])?{..._0x52a0f4,'attrs':{..._0x52a0f4[_0x27ae81(0x3dd)],'id':_0x52a0f4[_0x27ae81(0x3dd)]['id']+_0x1cd58b[_0x27ae81(0x425)]}}:_0x52a0f4)}:_0x3937d0;}function Qe(){const _0x293713=_0x131176;return Math[_0x293713(0x33c)]()[_0x293713(0x1e5)](0x24)[_0x293713(0x405)](0x2,0x8);}pe[_0x131176(0x2c0)]=_0x131176(0x41b);const et={'tag':_0x131176(0x3c9),'attrs':{'xmlns':_0x131176(0x22f),'fill':_0x131176(0x433),'viewBox':_0x131176(0x44a),'width':'1em','height':_0x131176(0x3fd)},'children':[{'tag':'g','attrs':{'clipPath':_0x131176(0x314)},'children':[{'tag':_0x131176(0x37a),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x131176(0x2d1),'strokeWidth':1.2}}]},{'tag':_0x131176(0x312),'attrs':{},'children':[{'tag':_0x131176(0x2c1),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x131176(0x2e1)}}]}]}],'defIds':[_0x131176(0x2a8)]},xe=A[_0x131176(0x2cb)](function(_0x33aaed,_0x11366a){const _0x4ede24=_0x131176;return A[_0x4ede24(0x420)](pe,Object[_0x4ede24(0x362)]({},_0x33aaed,{'id':_0x4ede24(0x24f),'ref':_0x11366a,'icon':et}));});xe[_0x131176(0x2c0)]=_0x131176(0x496);const tt={'tag':_0x131176(0x3c9),'attrs':{'xmlns':_0x131176(0x22f),'fill':_0x131176(0x433),'viewBox':_0x131176(0x3df),'width':_0x131176(0x3fd),'height':_0x131176(0x3fd)},'children':[{'tag':'g','attrs':{'clipPath':_0x131176(0x1eb)},'children':[{'tag':_0x131176(0x37a),'attrs':{'stroke':_0x131176(0x27d),'d':_0x131176(0x3bf),'strokeLinecap':_0x131176(0x2d1),'strokeLinejoin':_0x131176(0x2d1),'strokeWidth':1.2}}]},{'tag':_0x131176(0x312),'attrs':{},'children':[{'tag':_0x131176(0x2c1),'attrs':{'id':_0x131176(0x438)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x131176(0x2e1),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A['forwardRef'](function(_0x5ee9a0,_0x70f69d){const _0x533402=_0x131176;return A['createElement'](pe,Object[_0x533402(0x362)]({},_0x5ee9a0,{'id':_0x533402(0x2ec),'ref':_0x70f69d,'icon':tt}));});Be['displayName']=_0x131176(0x37b);function st(_0x1b8266){const _0x560d26=_0x131176;switch(_0x1b8266){case u[_0x560d26(0x27f)]['OFFLINE']:return _0x560d26(0x25b);case u[_0x560d26(0x27f)][_0x560d26(0x22e)]:return _0x560d26(0x453);case u[_0x560d26(0x27f)][_0x560d26(0x3c4)]:return _0x560d26(0x247);case u[_0x560d26(0x27f)]['NOT_COLLAB']:return _0x560d26(0x216);case u['CollaborationStatus'][_0x560d26(0x3a9)]:case u[_0x560d26(0x27f)][_0x560d26(0x226)]:return _0x560d26(0x30b);case u[_0x560d26(0x27f)][_0x560d26(0x2fc)]:case u[_0x560d26(0x27f)][_0x560d26(0x3db)]:return _0x560d26(0x31b);}}function it(_0x3dff9c){const _0x16ece2=_0x131176,{status$:_0x2e4996}=_0x3dff9c,_0x2cef03=O[_0x16ece2(0x426)](_0x2e4996,u['CollaborationStatus'][_0x16ece2(0x491)]),_0x44bc69=O[_0x16ece2(0x1f6)](a[_0x16ece2(0x3e6)]),_0x133263=O['useDependency'](u[_0x16ece2(0x3e9)]),_0x2583b3=_0x2cef03!==u[_0x16ece2(0x27f)][_0x16ece2(0x34a)],_0x3b913a=_0x44bc69['t'](st(_0x2cef03)),_0x334288=_0x2583b3?M[_0x16ece2(0x36c)](Be,{}):M[_0x16ece2(0x36c)](xe,{}),_0x51fa2b=A[_0x16ece2(0x485)](()=>{const _0x3cda7a=_0x16ece2;_0x2583b3||_0x133263[_0x3cda7a(0x301)]();},[_0x2583b3,_0x133263]);function _0x54de43(){const _0x31ae99=_0x16ece2;return M[_0x31ae99(0x2e4)]('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x51fa2b,'children':[M[_0x31ae99(0x36c)](_0x31ae99(0x3d5),{'className':p[_0x31ae99(0x29a)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x2583b3,'univer-text-red-500':!_0x2583b3}),'children':_0x334288}),M['jsx'](_0x31ae99(0x3d5),{'className':_0x31ae99(0x1da),'children':_0x3b913a})]});}return _0x2583b3?_0x54de43():M[_0x16ece2(0x36c)](p[_0x16ece2(0x3d8)],{'title':_0x44bc69['t'](_0x16ece2(0x3f4)),'children':_0x54de43()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x3ed391,_0x4253dc,_0x11658f,_0x3dec56)=>{const _0x4510ab=_0x131176;for(var _0x3f28cf=_0x3dec56>0x1?void 0x0:_0x3dec56?nt(_0x4253dc,_0x11658f):_0x4253dc,_0x2ed1f9=_0x3ed391[_0x4510ab(0x2d6)]-0x1,_0x1c7028;_0x2ed1f9>=0x0;_0x2ed1f9--)(_0x1c7028=_0x3ed391[_0x2ed1f9])&&(_0x3f28cf=_0x1c7028(_0x3f28cf)||_0x3f28cf);return _0x3f28cf;},K=(_0x2097ae,_0xe6e49c)=>(_0x317d5e,_0x466a50)=>_0xe6e49c(_0x317d5e,_0x466a50,_0x2097ae);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x131176(0x2fe)]{constructor(_0x30256f,_0xd70be8,_0x52b4fe,_0x257b4a){const _0x2d417c=_0x131176;super(),_(this,_0x2d417c(0x44c),new I['BehaviorSubject'](u[_0x2d417c(0x27f)][_0x2d417c(0x491)])),(this[_0x2d417c(0x2d9)]=_0x30256f,this['_injector']=_0xd70be8,this[_0x2d417c(0x3f3)]=_0x52b4fe,this[_0x2d417c(0x1ed)]=_0x257b4a,this['_initStatusComponent'](),this['_initStatusListener']());}['_initStatusListener'](){const _0x3af203=_0x131176;this[_0x3af203(0x2c7)](this[_0x3af203(0x2d9)]['focused$']['pipe'](I[_0x3af203(0x395)](()=>{const _0x404b5c=_0x3af203,_0x287bd4=this['_univerInstanceService']['getFocusedUnit']();return _0x287bd4?this[_0x404b5c(0x3f3)][_0x404b5c(0x3c2)](_0x287bd4['getUnitId']()):I['of'](null);}),I['switchMap'](_0x3a63c1=>_0x3a63c1?_0x3a63c1[_0x3af203(0x1f0)]:I['of'](u[_0x3af203(0x27f)][_0x3af203(0x491)])))[_0x3af203(0x2da)](_0x126d33=>{const _0x251319=_0x3af203;this[_0x251319(0x44c)][_0x251319(0x23b)](_0x126d33);}));}['_initStatusComponent'](){const _0x4060d7=_0x131176;this['disposeWithMe'](this['_uiPartsService'][_0x4060d7(0x3c0)](O[_0x4060d7(0x396)][_0x4060d7(0x245)],()=>O[_0x4060d7(0x1ee)](ot({'status$':this['_status$']['asObservable']()}),this[_0x4060d7(0x268)])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x131176(0x36d)]),K(0x1,a[_0x131176(0x2e8)](a[_0x131176(0x24c)])),K(0x2,a[_0x131176(0x2e8)](u[_0x131176(0x358)])),K(0x3,O[_0x131176(0x4b4)])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x18bf9e){const {status$:_0x566e60}=_0x18bf9e;return function(){const _0x4a9fbc=_0xd4c9;return M[_0x4a9fbc(0x36c)](it,{'status$':_0x566e60});};}const Oe=a[_0x131176(0x253)]('uni.network.url-service');var at=Object[_0x131176(0x40c)],ct=(_0x49e6f1,_0x5453a6,_0x213756,_0x23a021)=>{for(var _0x2ce09b=_0x23a021>0x1?void 0x0:_0x23a021?at(_0x5453a6,_0x213756):_0x5453a6,_0x31bc55=_0x49e6f1['length']-0x1,_0xd8021;_0x31bc55>=0x0;_0x31bc55--)(_0xd8021=_0x49e6f1[_0x31bc55])&&(_0x2ce09b=_0xd8021(_0x2ce09b)||_0x2ce09b);return _0x2ce09b;},Y=(_0x40667f,_0x248c83)=>(_0x1f2557,_0x5121b4)=>_0x248c83(_0x1f2557,_0x5121b4,_0x40667f);exports['CollaborationDataLoaderController']=class extends a[_0x131176(0x338)]{constructor(_0x42863c,_0x445ad0,_0x474477,_0x1994ad,_0x44d10d){const _0x45cdb5=_0x131176;super(),this[_0x45cdb5(0x49f)]=_0x42863c,this[_0x45cdb5(0x419)]=_0x445ad0,this[_0x45cdb5(0x310)]=_0x474477,this[_0x45cdb5(0x394)]=_0x1994ad,_0x44d10d?_0x44d10d==null||_0x44d10d[_0x45cdb5(0x210)]()['then'](()=>this[_0x45cdb5(0x494)]()):(this[_0x45cdb5(0x419)][_0x45cdb5(0x2e2)](_0x45cdb5(0x3b7),_0x45cdb5(0x2a7)),this[_0x45cdb5(0x494)]());}async['_init'](){const _0x3300e9=_0x131176,_0x31c18b=this[_0x3300e9(0x49f)]['getParam'](_0x3300e9(0x330)),_0x1a6100=this[_0x3300e9(0x49f)][_0x3300e9(0x380)](_0x3300e9(0x3ca)),_0x213ea9=this[_0x3300e9(0x49f)][_0x3300e9(0x380)]('subunit');if(!_0x31c18b||!_0x1a6100){this[_0x3300e9(0x419)][_0x3300e9(0x2e2)](_0x3300e9(0x3b7),_0x3300e9(0x375));return;}const _0x103e39=await this[_0x3300e9(0x394)][_0x3300e9(0x45c)](_0x31c18b,Number(_0x1a6100),_0x213ea9);_0x103e39&&_0x103e39 instanceof a[_0x3300e9(0x34e)]&&this[_0x3300e9(0x3ed)](_0x103e39);}async[_0x131176(0x3ed)](_0x72dd05){const _0xcd980f=_0x131176;await this[_0xcd980f(0x498)](_0x72dd05),_0x72dd05[_0xcd980f(0x1fc)][_0xcd980f(0x465)](I[_0xcd980f(0x208)](this[_0xcd980f(0x447)]))[_0xcd980f(0x2da)](_0xe42640=>{const _0x33861f=_0xcd980f;_0xe42640&&this[_0x33861f(0x2b1)](_0xe42640);}),this[_0xcd980f(0x49f)][_0xcd980f(0x441)][_0xcd980f(0x465)](I['takeUntil'](this[_0xcd980f(0x447)]))[_0xcd980f(0x2da)](()=>this[_0xcd980f(0x498)](_0x72dd05));}['_updateURLWithCurrentState'](_0xe0f077,_0x31dadc=!0x1){const _0x36a3a1=_0x131176,_0x3a6c41=this[_0x36a3a1(0x49f)][_0x36a3a1(0x380)](_0x36a3a1(0x290));_0xe0f077['getSheetId']()!==_0x3a6c41&&this[_0x36a3a1(0x49f)][_0x36a3a1(0x1f3)](_0x36a3a1(0x290),_0xe0f077[_0x36a3a1(0x430)](),_0x31dadc);}async[_0x131176(0x498)](_0x41afe3){const _0x4c9c4f=_0x131176;var _0x24a4a5;const _0x298281=this['_urlService']['getParam'](_0x4c9c4f(0x290));if(!_0x298281||!_0x41afe3[_0x4c9c4f(0x275)](_0x298281)){const _0x53e457=_0x41afe3[_0x4c9c4f(0x277)]()[0x0],_0x24b980=_0x41afe3['getSheetBySheetId'](_0x53e457);if(!_0x24b980)return;this[_0x4c9c4f(0x2b1)](_0x24b980,!0x0),await this['_commandService']['executeCommand'](v[_0x4c9c4f(0x413)]['id'],{'unitId':_0x41afe3['getUnitId'](),'subUnitId':_0x53e457});return;}((_0x24a4a5=_0x41afe3['getActiveSheet']())==null?void 0x0:_0x24a4a5[_0x4c9c4f(0x430)]())!==_0x298281&&await this[_0x4c9c4f(0x310)][_0x4c9c4f(0x2bc)](v[_0x4c9c4f(0x413)]['id'],{'unitId':_0x41afe3[_0x4c9c4f(0x46a)](),'subUnitId':_0x298281});}},exports[_0x131176(0x3be)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x131176(0x3b3)]),Y(0x3,a[_0x131176(0x2e8)](u[_0x131176(0x203)])),Y(0x4,a[_0x131176(0x27c)](qe[_0x131176(0x410)]))],exports['CollaborationDataLoaderController']);var lt=Object[_0x131176(0x40c)],_t=(_0x2d5ba4,_0x5d53f2,_0x4523c5,_0x50a74b)=>{const _0x4c6b65=_0x131176;for(var _0x5bdae9=_0x50a74b>0x1?void 0x0:_0x50a74b?lt(_0x5d53f2,_0x4523c5):_0x5d53f2,_0x29525c=_0x2d5ba4[_0x4c6b65(0x2d6)]-0x1,_0x59451b;_0x29525c>=0x0;_0x29525c--)(_0x59451b=_0x2d5ba4[_0x29525c])&&(_0x5bdae9=_0x59451b(_0x5bdae9)||_0x5bdae9);return _0x5bdae9;},De=(_0x49e1df,_0x1ea18d)=>(_0x58287f,_0x576d5f)=>_0x1ea18d(_0x58287f,_0x576d5f,_0x49e1df);let me=class extends a['RxDisposable']{constructor(_0x1ca456,_0x29a94d){const _0x307964=_0x131176;super(),this[_0x307964(0x398)]=_0x1ca456,this['_imageIoService']=_0x29a94d,this[_0x307964(0x494)]();}['_init'](){const _0xec9ddb=_0x131176,_0x48aef6=this;this['disposeWithMe'](this[_0xec9ddb(0x398)][_0xec9ddb(0x213)]({'onBeforePasteImage':async _0x1c76ae=>{const _0x342a2e=_0xec9ddb,_0x40d501=await _0x48aef6[_0x342a2e(0x2bb)][_0x342a2e(0x207)](_0x1c76ae);return _0x40d501?{'source':_0x40d501[_0x342a2e(0x4b1)],'imageSourceType':_0x40d501[_0x342a2e(0x2c9)]}:null;}}));}};me=_t([De(0x0,T[_0x131176(0x367)]),De(0x1,ze[_0x131176(0x32e)])],me);const Ne=['purple.300',_0x131176(0x45b),'green.600','red.300',_0x131176(0x2e5),'yellow.400'];class Re extends a[_0x131176(0x2fe)]{constructor(){const _0x5e8d48=_0x131176;super(...arguments),_(this,_0x5e8d48(0x33d),new Map()),_(this,_0x5e8d48(0x3ef),0x0);}['assignAColorForMemberID'](_0x431c92){const _0x2da7b2=_0x131176;if(this[_0x2da7b2(0x33d)]['has'](_0x431c92))return this['_assignedColors'][_0x2da7b2(0x1fe)](_0x431c92);const _0x2e6edd=Ne[this[_0x2da7b2(0x3ef)]];return this[_0x2da7b2(0x3ef)]=(this[_0x2da7b2(0x3ef)]+0x1)%Ne['length'],this['_assignedColors'][_0x2da7b2(0x3d1)](_0x431c92,_0x2e6edd),_0x2e6edd;}}function Fe(_0x3b28fb){const _0x17c064=_0x131176;let _0x4811a9='';for(const _0x23fafb of _0x3b28fb){const {startOffset:_0x3a358,endOffset:_0x49a187,isActive:_0x4a1036,rangeType:_0x1494a4,segmentId:_0x4dd4f1,segmentPage:_0x306a1e}=_0x23fafb;_0x4811a9[_0x17c064(0x2d6)]&&(_0x4811a9+=','),_0x4811a9+=_0x3a358+':'+_0x49a187+':'+(_0x4a1036?'1':'0')+':'+_0x1494a4+':'+_0x4dd4f1+':'+_0x306a1e;}return _0x4811a9;}function ht(_0x4710e3){const _0xb140da=_0x131176,_0x42dd45=_0x4710e3[_0xb140da(0x202)](','),_0x46334f=[];for(const _0xfaa927 of _0x42dd45){const [_0x1602c5,_0x34e3fd,_0x2938d1,_0x3e20c7,_0x3da04e,_0x519e86]=_0xfaa927[_0xb140da(0x202)](':');_0x46334f[_0xb140da(0x1df)]({'startOffset':Number(_0x1602c5),'endOffset':Number(_0x34e3fd),'collapsed':_0x1602c5===_0x34e3fd,'isActive':_0x2938d1==='1','rangeType':_0x3e20c7===a[_0xb140da(0x2ac)][_0xb140da(0x326)]?a[_0xb140da(0x2ac)][_0xb140da(0x326)]:a[_0xb140da(0x2ac)][_0xb140da(0x1ec)],'segmentId':typeof _0x3da04e=='string'?String(_0x3da04e):'','segmentPage':Number(_0x519e86!=null?_0x519e86:-0x1)});}return _0x46334f[_0xb140da(0x2ae)](_0x34153e=>_0x34153e['isActive'])||(_0x46334f[0x0][_0xb140da(0x315)]=!0x0),_0x46334f;}class be extends a['RxDisposable']{constructor(){const _0x5333f1=_0x131176;super(...arguments),_(this,_0x5333f1(0x445),new I['BehaviorSubject'](null)),_(this,_0x5333f1(0x28b),this[_0x5333f1(0x445)]['asObservable']());}[_0x131176(0x328)](_0x35e1f0){const _0x362bd4=_0x131176,{unitID:_0xddd674,memberID:_0x27f5e9,textRanges:_0x2ffea8}=_0x35e1f0,_0x196b03=Fe(_0x2ffea8);if(_0x196b03==='')return;const _0x3cf098={'unitID':_0xddd674,'memberID':_0x27f5e9,'selection':_0x196b03};this[_0x362bd4(0x445)][_0x362bd4(0x23b)](_0x3cf098);}}var ut=Object[_0x131176(0x40c)],It=(_0x1865ed,_0x2c38a2,_0x31cf46,_0x1d9db4)=>{for(var _0x25a1b0=_0x1d9db4>0x1?void 0x0:_0x1d9db4?ut(_0x2c38a2,_0x31cf46):_0x2c38a2,_0x548f9d=_0x1865ed['length']-0x1,_0x73cee;_0x548f9d>=0x0;_0x548f9d--)(_0x73cee=_0x1865ed[_0x548f9d])&&(_0x25a1b0=_0x73cee(_0x25a1b0)||_0x25a1b0);return _0x25a1b0;},U=(_0x2a0a60,_0x54cb28)=>(_0x546a8a,_0x251b9b)=>_0x54cb28(_0x546a8a,_0x251b9b,_0x2a0a60);const St=0x12c,dt=0x64;let ve=class extends a[_0x131176(0x338)]{constructor(_0x499a14,_0x289cc7,_0x425922,_0x52c136,_0x199934,_0x2bca9e,_0x427731,_0x5e2298,_0x11de1f){const _0x38c738=_0x131176;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x38c738(0x214),new I[(_0x38c738(0x3ac))](new Map())),_(this,_0x38c738(0x39c),this[_0x38c738(0x214)][_0x38c738(0x440)]()),_(this,_0x38c738(0x2f8),new I[(_0x38c738(0x3ac))]([])),_(this,_0x38c738(0x417),this[_0x38c738(0x2f8)][_0x38c738(0x465)](I['debounceTime'](St))),_(this,_0x38c738(0x3cc),a['debounce'](_0x32479c=>{const _0x5022c9=_0x38c738,_0x5204ee={'eventID':g[_0x5022c9(0x3a2)][_0x5022c9(0x397)],'data':{'unitID':this[_0x5022c9(0x278)],'memberID':this[_0x5022c9(0x4b0)][_0x5022c9(0x4a3)](),'selection':Fe(_0x32479c)}};this[_0x5022c9(0x4b0)][_0x5022c9(0x260)](_0x5204ee,this[_0x5022c9(0x278)]);},dt)),(this[_0x38c738(0x278)]=_0x499a14,this[_0x38c738(0x4b0)]=_0x289cc7,this[_0x38c738(0x268)]=_0x425922,this[_0x38c738(0x31f)]=_0x52c136,this['_memberService']=_0x199934,this[_0x38c738(0x40e)]=_0x2bca9e,this['_transformService']=_0x427731,this[_0x38c738(0x2d9)]=_0x5e2298,this[_0x38c738(0x310)]=_0x11de1f);}get[_0x131176(0x342)](){const _0x156bd4=_0x131176;return this[_0x156bd4(0x214)][_0x156bd4(0x365)]();}get[_0x131176(0x3f9)](){const _0x3d1e78=_0x131176;return this[_0x3d1e78(0x2f8)][_0x3d1e78(0x365)]();}['dispose'](){const _0x5a05e8=_0x131176;super[_0x5a05e8(0x40d)](),this[_0x5a05e8(0x214)][_0x5a05e8(0x23b)](new Map()),this[_0x5a05e8(0x214)][_0x5a05e8(0x219)](),this['_roomMembers$'][_0x5a05e8(0x23b)]([]),this[_0x5a05e8(0x2f8)]['complete']();}[_0x131176(0x1f8)](){const _0x48c15a=_0x131176;this[_0x48c15a(0x494)]||(this[_0x48c15a(0x494)]=!0x0,this[_0x48c15a(0x4b0)]['sessionStatus$'][_0x48c15a(0x465)](I[_0x48c15a(0x208)](this[_0x48c15a(0x447)]))[_0x48c15a(0x2da)](_0x54384a=>{const _0x53c552=_0x48c15a;_0x54384a===u[_0x53c552(0x3c1)][_0x53c552(0x474)]?this[_0x53c552(0x3aa)]():this['_toggleOffline']();}),this[_0x48c15a(0x4b0)][_0x48c15a(0x3e1)][_0x48c15a(0x465)](I[_0x48c15a(0x208)](this[_0x48c15a(0x447)]))['subscribe'](_0x3afb93=>{const _0x577573=_0x48c15a,_0x29b656=_0x3afb93[_0x577573(0x3a4)];_0x29b656===g[_0x577573(0x3a2)]['UPDATE_CURSOR']&&this[_0x577573(0x41a)](_0x3afb93),_0x29b656===g[_0x577573(0x3a2)][_0x577573(0x28e)]&&this[_0x577573(0x2d8)](_0x3afb93);}),this[_0x48c15a(0x2c7)](this[_0x48c15a(0x310)]['onCommandExecuted'](_0x4de8a5=>{const _0x3c7f6b=_0x48c15a,_0x49c2c0=_0x4de8a5[_0x3c7f6b(0x344)];_0x49c2c0!=null&&this[_0x3c7f6b(0x3e4)]&&_0x4de8a5['id']===V[_0x3c7f6b(0x443)]['id']&&_0x49c2c0[_0x3c7f6b(0x466)]===this[_0x3c7f6b(0x278)]&&_0x49c2c0[_0x3c7f6b(0x279)]===!0x1&&_0x49c2c0[_0x3c7f6b(0x28c)][_0x3c7f6b(0x2d6)]>0x0&&this['_updateLocalCursor'](_0x49c2c0[_0x3c7f6b(0x28c)]);})),this[_0x48c15a(0x40e)]['collabCursorState$'][_0x48c15a(0x465)](I[_0x48c15a(0x208)](this[_0x48c15a(0x447)]))[_0x48c15a(0x2da)](_0x13e676=>{const _0x340e4f=_0x48c15a;if((_0x13e676==null?void 0x0:_0x13e676[_0x340e4f(0x278)])!==this[_0x340e4f(0x278)])return;const _0x5f52ec={'eventID':g[_0x340e4f(0x3a2)][_0x340e4f(0x397)],'data':_0x13e676};this[_0x340e4f(0x41a)](_0x5f52ec);}),this[_0x48c15a(0x2c7)](this[_0x48c15a(0x310)][_0x48c15a(0x27a)](_0xcab9a=>{const _0x2b5f28=_0x48c15a;if(_0xcab9a['params']==null)return;const _0x443fe5=_0xcab9a[_0x2b5f28(0x344)];if(_0xcab9a['id']!==V[_0x2b5f28(0x404)]['id']||_0x443fe5['unitId']!==this[_0x2b5f28(0x278)])return;const _0x13a3e7={'id':_0x2b5f28(0x2b6),'params':_0x443fe5},_0x59a9ff=this['cursorInfo'];for(const [_0x4133d6,_0x1a2733]of _0x59a9ff){const _0xf3662d={'id':_0x2b5f28(0x2b6),'params':{'unitId':this[_0x2b5f28(0x278)],'actions':null,'textRanges':_0x1a2733['ranges']}},_0x5f37f8=this[_0x2b5f28(0x283)][_0x2b5f28(0x2b7)](_0x13a3e7,_0xf3662d,!0x1);if(g[_0x2b5f28(0x20a)](_0x5f37f8))throw _0x5f37f8[_0x2b5f28(0x3c3)];_0x59a9ff[_0x2b5f28(0x3d1)](_0x4133d6,{..._0x1a2733,'ranges':_0x5f37f8[_0x2b5f28(0x42d)][_0x2b5f28(0x344)][_0x2b5f28(0x2f2)]});}queueMicrotask(()=>{const _0x3aaca7=_0x2b5f28;this['_cursorInfo$'][_0x3aaca7(0x23b)](_0x59a9ff);});})));}[_0x131176(0x41a)](_0x306fd1){const _0x4ff796=_0x131176;var _0x23a1e2,_0x67fad7;const {memberID:_0x460168,selection:_0x20efd2}=_0x306fd1['data'],_0x2c2b8c=ht(_0x20efd2),_0x297b1c=(_0x67fad7=(_0x23a1e2=this[_0x4ff796(0x461)][_0x4ff796(0x3e7)](this['unitID'],_0x460168))==null?void 0x0:_0x23a1e2[_0x4ff796(0x386)])!=null?_0x67fad7:_0x4ff796(0x23d),_0x1aef1b={'color':this[_0x4ff796(0x31f)][_0x4ff796(0x1f2)](_0x460168),'name':_0x297b1c,'ranges':_0x2c2b8c},_0x3b3e8c=this['cursorInfo'];_0x3b3e8c['set'](_0x460168,_0x1aef1b),this[_0x4ff796(0x214)][_0x4ff796(0x23b)](_0x3b3e8c);}[_0x131176(0x2d8)](_0x5360ae){const _0x33adec=_0x131176,{memberID:_0x3b9596}=_0x5360ae[_0x33adec(0x318)],_0x5b5c91=this['cursorInfo'];_0x5b5c91[_0x33adec(0x289)](_0x3b9596),this[_0x33adec(0x214)][_0x33adec(0x23b)](_0x5b5c91);}[_0x131176(0x3aa)](){const _0x3d4910=_0x131176;var _0x53b43f;if(this[_0x3d4910(0x3e4)]=!0x0,((_0x53b43f=this['_univerInstanceService'][_0x3d4910(0x2a2)]())==null?void 0x0:_0x53b43f['getUnitId']())!==this['unitID'])return;const _0xe4fb8f=this['_injector']['get'](V[_0x3d4910(0x3ab)])[_0x3d4910(0x355)]();Array['isArray'](_0xe4fb8f)&&_0xe4fb8f['length']>0x0&&this[_0x3d4910(0x3cc)](_0xe4fb8f);}[_0x131176(0x36f)](){const _0xcc0d1e=_0x131176;this[_0xcc0d1e(0x3e4)]=!0x1;}};ve=It([U(0x2,a['Inject'](a[_0x131176(0x24c)])),U(0x3,a[_0x131176(0x2e8)](Re)),U(0x4,a[_0x131176(0x2e8)](u[_0x131176(0x46d)])),U(0x5,a['Inject'](be)),U(0x6,g[_0x131176(0x3f6)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x131176(0x3b3)])],ve);var ft=Object[_0x131176(0x40c)],mt=(_0x96d50d,_0x831344,_0x2b429f,_0x1c9b92)=>{const _0x5c0a31=_0x131176;for(var _0x3fa61e=_0x1c9b92>0x1?void 0x0:_0x1c9b92?ft(_0x831344,_0x2b429f):_0x831344,_0x54ea88=_0x96d50d[_0x5c0a31(0x2d6)]-0x1,_0x25d276;_0x54ea88>=0x0;_0x54ea88--)(_0x25d276=_0x96d50d[_0x54ea88])&&(_0x3fa61e=_0x25d276(_0x3fa61e)||_0x3fa61e);return _0x3fa61e;},w=(_0x1af1d6,_0x3615de)=>(_0x672e09,_0x870a42)=>_0x3615de(_0x672e09,_0x870a42,_0x1af1d6);const vt=0x12c,gt=0x64,Et=()=>{let _0x5962d0=[],_0x41da7b=!0x1;return _0x3b5157=>{const _0x3797a5=_0xd4c9;_0x5962d0[_0x3797a5(0x1df)](_0x3b5157),_0x41da7b||(_0x41da7b=!0x0,setTimeout(()=>{const _0x234c90=_0x3797a5;_0x5962d0[_0x234c90(0x24a)](_0xe8f450=>_0xe8f450()),_0x5962d0=[],_0x41da7b=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0xe7a162,_0x10e358,_0x29b9e0,_0x4c1e57,_0x512b72,_0x117bc5,_0xe83f31,_0x41cffe){const _0x3365ba=_0x131176;super(),_(this,_0x3365ba(0x3e4),!0x1),_(this,_0x3365ba(0x494),!0x1),_(this,_0x3365ba(0x214),new I[(_0x3365ba(0x3ac))](new Map())),_(this,_0x3365ba(0x39c),this[_0x3365ba(0x214)]['asObservable']()),_(this,_0x3365ba(0x2f8),new I['BehaviorSubject']([])),_(this,_0x3365ba(0x417),this['_roomMembers$'][_0x3365ba(0x465)](I[_0x3365ba(0x45d)](vt))),_(this,_0x3365ba(0x3cc),a[_0x3365ba(0x40a)]((_0x38e3ff,_0x481d18)=>{const _0x3f4e66=_0x3365ba,_0x42fa36={'eventID':g[_0x3f4e66(0x3a2)][_0x3f4e66(0x397)],'data':{'unitID':this[_0x3f4e66(0x278)],'memberID':this[_0x3f4e66(0x4b0)][_0x3f4e66(0x4a3)](),'selection':B[_0x3f4e66(0x43a)](_0x38e3ff,_0x481d18[_0x3f4e66(0x25f)])}};this[_0x3f4e66(0x4b0)][_0x3f4e66(0x260)](_0x42fa36,this[_0x3f4e66(0x278)]);},gt)),(this[_0x3365ba(0x278)]=_0xe7a162,this[_0x3365ba(0x4b0)]=_0x10e358,this['_injector']=_0x29b9e0,this[_0x3365ba(0x31f)]=_0x4c1e57,this[_0x3365ba(0x461)]=_0x512b72,this['_univerInstanceService']=_0x117bc5,this[_0x3365ba(0x310)]=_0xe83f31,this['_refRangeService']=_0x41cffe);}get['cursorInfo'](){const _0x2f4723=_0x131176;return this[_0x2f4723(0x214)]['getValue']();}get[_0x131176(0x3f9)](){const _0x400f93=_0x131176;return this[_0x400f93(0x2f8)][_0x400f93(0x365)]();}['dispose'](){const _0x2691e7=_0x131176;super[_0x2691e7(0x40d)](),this['_cursorInfo$'][_0x2691e7(0x23b)](new Map()),this[_0x2691e7(0x214)][_0x2691e7(0x219)](),this[_0x2691e7(0x2f8)][_0x2691e7(0x23b)]([]),this[_0x2691e7(0x2f8)][_0x2691e7(0x219)]();}[_0x131176(0x1f8)](){const _0x30dbea=_0x131176;this[_0x30dbea(0x494)]||(this[_0x30dbea(0x494)]=!0x0,this['_session']['sessionStatus$'][_0x30dbea(0x465)](I[_0x30dbea(0x208)](this['dispose$']))['subscribe'](_0x118222=>{const _0x431f01=_0x30dbea;_0x118222===u['SessionStatus']['ONLINE']?this['_toggleOnline']():this[_0x431f01(0x36f)]();}),this[_0x30dbea(0x4b0)]['event$'][_0x30dbea(0x465)](I[_0x30dbea(0x208)](this[_0x30dbea(0x447)]))['subscribe'](_0x5cb663=>{const _0x10af63=_0x30dbea,_0x5ba5ad=_0x5cb663['eventID'];_0x5ba5ad===g[_0x10af63(0x3a2)][_0x10af63(0x397)]&&this[_0x10af63(0x41a)](_0x5cb663),_0x5ba5ad===g['CollaborationEvent'][_0x10af63(0x28e)]&&this[_0x10af63(0x2d8)](_0x5cb663);}),this[_0x30dbea(0x319)](),this[_0x30dbea(0x2c7)](this[_0x30dbea(0x310)][_0x30dbea(0x27a)](_0x330f6d=>{const _0x135919=_0x30dbea;if(this[_0x135919(0x3e4)]&&_0x330f6d['id']===v[_0x135919(0x249)]['id']&&_0x330f6d[_0x135919(0x344)][_0x135919(0x466)]===this[_0x135919(0x278)]){const _0x2a8146=_0x330f6d['params'];this[_0x135919(0x3cc)](_0x2a8146['subUnitId'],_0x2a8146[_0x135919(0x2df)][0x0]);}})));}[_0x131176(0x41a)](_0x507877){const _0x2a6509=_0x131176;var _0x126708,_0x5bd686;const {memberID:_0x392043,selection:_0x44cd9e}=_0x507877[_0x2a6509(0x318)],{sheetName:_0x599466,range:_0xd755b6}=B[_0x2a6509(0x20d)](_0x44cd9e),_0x499803={'name':(_0x5bd686=(_0x126708=this[_0x2a6509(0x461)]['getMember'](this[_0x2a6509(0x278)],_0x392043))==null?void 0x0:_0x126708[_0x2a6509(0x386)])!=null?_0x5bd686:_0x2a6509(0x23d),'range':this[_0x2a6509(0x30f)](_0x599466,_0xd755b6),'sheetID':_0x599466,'color':this[_0x2a6509(0x31f)][_0x2a6509(0x1f2)](_0x392043),'selection':_0x44cd9e},_0x3fd816=this[_0x2a6509(0x342)];_0x3fd816[_0x2a6509(0x3d1)](_0x392043,_0x499803),this[_0x2a6509(0x214)][_0x2a6509(0x23b)](_0x3fd816);}[_0x131176(0x2d8)](_0x8dee12){const _0x4b0705=_0x131176,{memberID:_0x1c07b6}=_0x8dee12['data'],_0x3f5253=this[_0x4b0705(0x342)];_0x3f5253[_0x4b0705(0x289)](_0x1c07b6),this[_0x4b0705(0x214)]['next'](_0x3f5253);}[_0x131176(0x30f)](_0x4d9bc0,_0xa3059d){const _0x1279d7=_0x131176;var _0x188f31,_0x5454d1;const _0x5b89ea=(_0x5454d1=(_0x188f31=this['_univerInstanceService'][_0x1279d7(0x384)](this[_0x1279d7(0x278)]))==null?void 0x0:_0x188f31['getSheetBySheetId'](_0x4d9bc0))==null?void 0x0:_0x5454d1[_0x1279d7(0x27e)]();return(_0x5b89ea==null?void 0x0:_0x5b89ea[_0x1279d7(0x1fd)](_0x313f88=>a['Rectangle'][_0x1279d7(0x2d4)](_0x313f88,_0xa3059d)))||_0xa3059d;}[_0x131176(0x319)](){const _0x151541=_0x131176,_0x178a62=new a[(_0x151541(0x36a))](),_0x5dc0c0=Et(),_0x263b69=()=>{const _0x1b5670=_0x151541;_0x178a62['dispose']();const _0x2ea559=(_0x35c0e9,_0xad73e9,_0x497bbd,_0x1d2183)=>{const _0x1bde7a=_0xd4c9;let _0x22e07f=[];switch(_0x35c0e9['id']){case v[_0x1bde7a(0x3e0)]['DeleteRangeMoveLeftCommandId']:{_0x22e07f=v[_0x1bde7a(0x2ce)](_0x35c0e9,_0x1d2183);break;}case v[_0x1bde7a(0x3e0)]['DeleteRangeMoveUpCommandId']:{_0x22e07f=v[_0x1bde7a(0x240)](_0x35c0e9,_0x1d2183);break;}case v['EffectRefRangId']['InsertColCommandId']:{_0x22e07f=v[_0x1bde7a(0x26a)](_0x35c0e9,_0x1d2183);break;}case v[_0x1bde7a(0x3e0)]['InsertRangeMoveDownCommandId']:{_0x22e07f=v[_0x1bde7a(0x3f0)](_0x35c0e9,_0x1d2183);break;}case v[_0x1bde7a(0x3e0)]['InsertRangeMoveRightCommandId']:{_0x22e07f=v[_0x1bde7a(0x1e3)](_0x35c0e9,_0x1d2183);break;}case v['EffectRefRangId'][_0x1bde7a(0x39d)]:{_0x22e07f=v[_0x1bde7a(0x406)](_0x35c0e9,_0x1d2183);break;}case v[_0x1bde7a(0x3e0)][_0x1bde7a(0x30d)]:{_0x22e07f=v[_0x1bde7a(0x296)](_0x35c0e9,_0x1d2183);break;}case v[_0x1bde7a(0x3e0)][_0x1bde7a(0x3a0)]:{_0x22e07f=v[_0x1bde7a(0x298)](_0x35c0e9,_0x1d2183);break;}case v[_0x1bde7a(0x3e0)][_0x1bde7a(0x47c)]:{_0x22e07f=v['handleIRemoveRow'](_0x35c0e9,_0x1d2183);break;}}const _0x32ae55=v[_0x1bde7a(0x267)](_0x22e07f,_0x1d2183),_0x21e7c8=this['cursorInfo'][_0x1bde7a(0x1fe)](_0xad73e9);if(_0x21e7c8&&_0x32ae55){const _0x120d08={..._0x21e7c8,'range':_0x32ae55};this[_0x1bde7a(0x342)][_0x1bde7a(0x3d1)](_0xad73e9,_0x120d08),_0x5dc0c0(()=>{const _0x3fffea=_0x1bde7a,_0x211b7d=this[_0x3fffea(0x241)][_0x3fffea(0x272)](_0x32ae55,_0x423a65=>(_0x211b7d[_0x3fffea(0x40d)](),_0x2ea559(_0x423a65,_0xad73e9,_0x497bbd,_0x32ae55)));_0x178a62[_0x3fffea(0x227)](_0x211b7d);});}return{'redos':[],'undos':[]};};this[_0x1b5670(0x342)][_0x1b5670(0x24a)]((_0x2a0ae8,_0x4adfaa)=>{const _0x2bebd7=_0x1b5670,{range:_0x284e0a,sheetID:_0x3ac6cc}=_0x2a0ae8,_0x41512a=this[_0x2bebd7(0x241)][_0x2bebd7(0x272)](_0x284e0a,_0x27261a=>(_0x41512a['dispose'](),_0x2ea559(_0x27261a,_0x4adfaa,_0x3ac6cc,_0x284e0a)));_0x178a62[_0x2bebd7(0x227)](_0x41512a);});};this['disposeWithMe'](a[_0x151541(0x2ab)](this[_0x151541(0x214)][_0x151541(0x2da)](()=>{_0x263b69();})));}[_0x131176(0x3aa)](){const _0x1be755=_0x131176;var _0x544b02,_0x541948;if(this[_0x1be755(0x3e4)]=!0x0,((_0x544b02=this[_0x1be755(0x2d9)][_0x1be755(0x2a2)]())==null?void 0x0:_0x544b02[_0x1be755(0x46a)]())!==this[_0x1be755(0x278)])return;const _0x53a61a=(_0x541948=this[_0x1be755(0x268)][_0x1be755(0x1fe)](v[_0x1be755(0x424)])['getCurrentSelections']())==null?void 0x0:_0x541948[0x0],_0x1aa9bb=this['_univerInstanceService'][_0x1be755(0x403)](a[_0x1be755(0x2a6)]['UNIVER_SHEET'])['getActiveSheet']();_0x53a61a&&_0x1aa9bb&&this[_0x1be755(0x3cc)](_0x1aa9bb[_0x1be755(0x430)](),_0x53a61a);}['_toggleOffline'](){const _0x476ec4=_0x131176;this[_0x476ec4(0x3e4)]=!0x1;}};ge=mt([w(0x2,a[_0x131176(0x2e8)](a[_0x131176(0x24c)])),w(0x3,a[_0x131176(0x2e8)](Re)),w(0x4,a['Inject'](u[_0x131176(0x46d)])),w(0x5,a[_0x131176(0x36d)]),w(0x6,a[_0x131176(0x3b3)]),w(0x7,a[_0x131176(0x2e8)](v[_0x131176(0x270)]))],ge);var Ct=Object[_0x131176(0x40c)],Tt=(_0x27e8c3,_0x1402ab,_0x448877,_0x3cc925)=>{const _0x4b71d0=_0x131176;for(var _0x59155a=_0x3cc925>0x1?void 0x0:_0x3cc925?Ct(_0x1402ab,_0x448877):_0x1402ab,_0x55620d=_0x27e8c3[_0x4b71d0(0x2d6)]-0x1,_0x1256a0;_0x55620d>=0x0;_0x55620d--)(_0x1256a0=_0x27e8c3[_0x55620d])&&(_0x59155a=_0x1256a0(_0x59155a)||_0x59155a);return _0x59155a;},ce=(_0x6fd9f8,_0x53f851)=>(_0x55eb4f,_0x1c1fad)=>_0x53f851(_0x55eb4f,_0x1c1fad,_0x6fd9f8);let F=class extends a[_0x131176(0x338)]{constructor(_0x137c5b,_0x566d44,_0x746918){const _0x1164d7=_0x131176;super(),_(this,_0x1164d7(0x218),new Map()),_(this,_0x1164d7(0x3ea),new I[(_0x1164d7(0x26e))]()),(this[_0x1164d7(0x2d9)]=_0x137c5b,this[_0x1164d7(0x268)]=_0x566d44,this[_0x1164d7(0x48c)]=_0x746918,this['_init']());}['dispose'](){const _0x5c17fb=_0x131176;super[_0x5c17fb(0x40d)](),this[_0x5c17fb(0x3ea)][_0x5c17fb(0x219)](),this['_entities'][_0x5c17fb(0x24a)](_0x550243=>_0x550243[_0x5c17fb(0x40d)]());}[_0x131176(0x351)](_0x1bfde8){const _0x17b58a=_0x131176;return this[_0x17b58a(0x218)][_0x17b58a(0x48d)](_0x1bfde8)?this[_0x17b58a(0x218)][_0x17b58a(0x1fe)](_0x1bfde8)[_0x17b58a(0x39c)]:this[_0x17b58a(0x3ea)]['pipe'](I[_0x17b58a(0x258)](_0x3811c7=>_0x3811c7['unitID']===_0x1bfde8),I['switchMap'](_0x1a0071=>_0x1a0071[_0x17b58a(0x39c)]));}[_0x131176(0x494)](){const _0x327dca=_0x131176;this[_0x327dca(0x2d9)][_0x327dca(0x489)](a[_0x327dca(0x2a6)][_0x327dca(0x469)])[_0x327dca(0x465)](I[_0x327dca(0x208)](this[_0x327dca(0x447)]))[_0x327dca(0x2da)](async _0xfead01=>{const _0x233d6d=_0x327dca,_0x575841=_0xfead01[_0x233d6d(0x46a)](),_0x52283b=await this[_0x233d6d(0x237)](_0x575841);this[_0x233d6d(0x3ea)][_0x233d6d(0x23b)](_0x52283b),this['_entities'][_0x233d6d(0x3d1)](_0x575841,_0x52283b);}),this['_univerInstanceService'][_0x327dca(0x489)](a['UniverInstanceType'][_0x327dca(0x29b)])[_0x327dca(0x465)](I['takeUntil'](this[_0x327dca(0x447)]))[_0x327dca(0x465)](I[_0x327dca(0x258)](_0x129ddf=>!_0x129ddf[_0x327dca(0x46a)]()['startsWith']('__')))[_0x327dca(0x2da)](async _0x29e332=>{const _0x45ecc4=_0x327dca,_0x455588=_0x29e332[_0x45ecc4(0x46a)](),_0x35867d=await this[_0x45ecc4(0x234)](_0x455588);this[_0x45ecc4(0x3ea)][_0x45ecc4(0x23b)](_0x35867d),this[_0x45ecc4(0x218)][_0x45ecc4(0x3d1)](_0x455588,_0x35867d);}),I[_0x327dca(0x229)](this['_univerInstanceService'][_0x327dca(0x3e5)](a[_0x327dca(0x2a6)][_0x327dca(0x29b)]),this[_0x327dca(0x2d9)][_0x327dca(0x3e5)](a['UniverInstanceType'][_0x327dca(0x469)]))['pipe'](I[_0x327dca(0x208)](this['dispose$']))[_0x327dca(0x2da)](_0xad3830=>{const _0x3b9b49=_0x327dca,_0x5a69d5=_0xad3830[_0x3b9b49(0x46a)](),_0x43a2d3=this[_0x3b9b49(0x218)]['get'](_0x5a69d5);_0x43a2d3&&(_0x43a2d3['dispose'](),this[_0x3b9b49(0x218)][_0x3b9b49(0x289)](_0x5a69d5));});}async[_0x131176(0x237)](_0x27a10e){const _0x3c2380=_0x131176,_0x56fd9d=await this['_collabSessionService'][_0x3c2380(0x2dc)](_0x27a10e),_0x52868a=this[_0x3c2380(0x268)][_0x3c2380(0x378)](ge,_0x27a10e,_0x56fd9d);return _0x52868a[_0x3c2380(0x1f8)](),_0x52868a;}async[_0x131176(0x234)](_0x335791){const _0x3461d3=_0x131176,_0x63eee4=await this[_0x3461d3(0x48c)][_0x3461d3(0x2dc)](_0x335791),_0x585dea=this[_0x3461d3(0x268)][_0x3461d3(0x378)](ve,_0x335791,_0x63eee4);return _0x585dea[_0x3461d3(0x1f8)](),_0x585dea;}};F=Tt([ce(0x0,a['IUniverInstanceService']),ce(0x1,a[_0x131176(0x2e8)](a[_0x131176(0x24c)])),ce(0x2,a[_0x131176(0x2e8)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x111c0b,_0x195493){const _0x4c547f=_0x131176;let {radius:_0x14a418,width:_0x3f55cd,height:_0x1557c0}=_0x195493;_0x14a418=_0x14a418!=null?_0x14a418:0x0,_0x3f55cd=_0x3f55cd!=null?_0x3f55cd:0x1e,_0x1557c0=_0x1557c0!=null?_0x1557c0:0x1e;let _0x402488=0x0,_0x397bde=0x0,_0x39b9fe=0x0;_0x402488=_0x397bde=_0x39b9fe=Math['min'](_0x14a418,_0x3f55cd/0x2,_0x1557c0/0x2),_0x111c0b['beginPath'](),_0x111c0b[_0x4c547f(0x468)](_0x402488,0x0),_0x111c0b[_0x4c547f(0x460)](_0x3f55cd-_0x397bde,0x0),_0x111c0b[_0x4c547f(0x414)](_0x3f55cd-_0x397bde,_0x397bde,_0x397bde,Math['PI']*0x3/0x2,0x0,!0x1),_0x111c0b[_0x4c547f(0x460)](_0x3f55cd,_0x1557c0-_0x39b9fe),_0x111c0b[_0x4c547f(0x414)](_0x3f55cd-_0x39b9fe,_0x1557c0-_0x39b9fe,_0x39b9fe,0x0,Math['PI']/0x2,!0x1),_0x111c0b[_0x4c547f(0x460)](0x0,_0x1557c0),_0x111c0b[_0x4c547f(0x460)](0x0,_0x402488),_0x111c0b[_0x4c547f(0x414)](_0x402488,_0x402488,_0x402488,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x111c0b['closePath'](),_0x195493[_0x4c547f(0x4aa)]&&(_0x111c0b[_0x4c547f(0x217)](),_0x111c0b[_0x4c547f(0x2d7)]=_0x195493[_0x4c547f(0x4aa)],_0x195493[_0x4c547f(0x4ad)]==='evenodd'?_0x111c0b[_0x4c547f(0x4aa)](_0x4c547f(0x46b)):_0x111c0b['fill'](),_0x111c0b[_0x4c547f(0x3a3)]());}class re extends C[_0x131176(0x357)]{constructor(_0x57efc7,_0x49bebb){const _0x2f8b9a=_0x131176;super(_0x57efc7,_0x49bebb),_(this,_0x2f8b9a(0x2ad)),_(this,_0x2f8b9a(0x33f)),(this[_0x2f8b9a(0x2ad)]=_0x49bebb==null?void 0x0:_0x49bebb[_0x2f8b9a(0x2ad)],this[_0x2f8b9a(0x33f)]=_0x49bebb==null?void 0x0:_0x49bebb[_0x2f8b9a(0x33f)]);}static[_0x131176(0x36b)](_0x3b5b5e,_0xd0c4e7){const _0x3cf918=_0x131176,{text:_0x4ab3f3,color:_0xbc5b8c}=_0xd0c4e7;_0x3b5b5e[_0x3cf918(0x217)](),_0x3b5b5e['font']=_0x3cf918(0x341);const _0x337e6b=_0x3b5b5e[_0x3cf918(0x44b)](_0x4ab3f3)[_0x3cf918(0x2b9)],_0x3f719c=Math[_0x3cf918(0x4a6)](_0x337e6b+0x2*le,Ue);Ot(_0x3b5b5e,{'height':X,'radius':0x4,'width':_0x3f719c,'fill':_0xbc5b8c}),_0x3b5b5e[_0x3cf918(0x2d7)]='#FFF';const _0x52e475=le,_0x125c4c=X-pt,_0x5c99ca=Ue-0x2*le;if(_0x337e6b>_0x5c99ca){let _0x40748f='',_0x14d34a=0x0;for(const _0x52ef10 of _0x4ab3f3){const _0x2cba27=_0x3b5b5e['measureText'](_0x52ef10)[_0x3cf918(0x2b9)];if(_0x14d34a+_0x2cba27<=_0x5c99ca-_0x3b5b5e[_0x3cf918(0x44b)]('...')['width'])_0x40748f+=_0x52ef10,_0x14d34a+=_0x2cba27;else{_0x40748f+=_0x3cf918(0x224);break;}}_0x3b5b5e['fillText'](_0x40748f,_0x52e475,_0x125c4c);}else _0x3b5b5e['fillText'](_0x4ab3f3,_0x52e475,_0x125c4c);_0x3b5b5e[_0x3cf918(0x3a3)]();}[_0x131176(0x25a)](_0x1be616){re['drawWith'](_0x1be616,this);}}const _e='collab-text-anchor-',Rt=_0x131176(0x1e6),bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x131176(0x35e);class Le{constructor(_0x16d651,_0x4acf54,_0x3d3ba6,_0x2325d4){const _0x57113c=_0x131176;_(this,_0x57113c(0x327),[]),_(this,_0x57113c(0x2ba),null),_(this,_0x57113c(0x3da),null),_(this,'_anchorDot',null),_(this,_0x57113c(0x1ef),null),_(this,_0x57113c(0x423),null),(this[_0x57113c(0x3d3)]=_0x16d651,this[_0x57113c(0x28f)]=_0x4acf54,this[_0x57113c(0x1e1)]=_0x3d3ba6,this[_0x57113c(0x254)]=_0x2325d4,this[_0x57113c(0x3d7)]());}set['_hover'](_0x43ea42){const _0x34e0e2=_0x131176;_0x43ea42?(this[_0x34e0e2(0x4a7)]&&this[_0x34e0e2(0x4a7)][_0x34e0e2(0x297)](),this[_0x34e0e2(0x3da)]&&this[_0x34e0e2(0x3da)][_0x34e0e2(0x243)]()):(this['_anchorDot']&&this[_0x34e0e2(0x4a7)]['show'](),this[_0x34e0e2(0x3da)]&&this[_0x34e0e2(0x3da)][_0x34e0e2(0x297)]());}['dispose'](){const _0x55cd8f=_0x131176;for(const _0x1ef0ec of this['_shapes'])_0x1ef0ec[_0x55cd8f(0x40d)]();this[_0x55cd8f(0x3da)]&&this[_0x55cd8f(0x3da)]['dispose'](),this[_0x55cd8f(0x4a7)]&&this[_0x55cd8f(0x4a7)][_0x55cd8f(0x40d)](),this['_anchor']&&this['_anchor'][_0x55cd8f(0x40d)](),this['_eventUnsubscribe']&&this[_0x55cd8f(0x423)]();}[_0x131176(0x3d7)](){const _0x3a43cd=_0x131176;var _0x42b02b;const {_docSkeleton:_0x3950f6,_document:_0x506662}=this,{color:_0x374d00,name:_0x662111,ranges:_0xc35a0b}=this[_0x3a43cd(0x3d3)],_0x118e80=_0x506662[_0x3a43cd(0x418)](),{docsLeft:_0x542105,docsTop:_0x110deb}=_0x118e80,_0x3c481a=new T[(_0x3a43cd(0x415))](_0x118e80,_0x3950f6);for(const {startOffset:_0x367bf5,endOffset:_0x25eb27,rangeType:_0x4f7753,segmentId:_0x564486,segmentPage:_0x432a20,collapsed:_0x494c65,isActive:_0x5b3c72}of _0xc35a0b){const _0x37fcfd=_0x3950f6[_0x3a43cd(0x26d)](_0x367bf5,!0x0,_0x564486,_0x432a20);let _0x184454=_0x3950f6[_0x3a43cd(0x26d)](_0x25eb27,!0x0,_0x564486,_0x432a20);if(_0x184454==null&&(_0x184454=_0x3950f6[_0x3a43cd(0x26d)](_0x25eb27-0x1,!0x1,_0x564486,_0x432a20)),_0x5b3c72){const {contentBoxPointGroup:_0x4a4d6f}=_0x3c481a[_0x3a43cd(0x32a)](_0x184454,_0x184454);if(_0x4a4d6f[_0x3a43cd(0x2d6)]===0x0)continue;this['_drawAnchor'](_0x374d00,_0x4a4d6f,_0x542105,_0x110deb,_0x662111),this[_0x3a43cd(0x423)]=this['_handleHover']();}if(_0x37fcfd&&_0x184454){if(_0x4f7753===a[_0x3a43cd(0x2ac)][_0x3a43cd(0x1ec)]){const _0x3d3e09=new T[(_0x3a43cd(0x39a))](_0x118e80,_0x3950f6),{pointGroup:_0x4881eb}=(_0x42b02b=_0x3d3e09[_0x3a43cd(0x32a)](_0x37fcfd,_0x184454))!=null?_0x42b02b:{};if(_0x4881eb==null||_0x4881eb[_0x3a43cd(0x2d6)]===0x0)continue;this[_0x3a43cd(0x294)](_0x374d00,_0x4881eb,_0x542105,_0x110deb);}else{if(!_0x494c65){const {borderBoxPointGroup:_0x581be1}=_0x3c481a[_0x3a43cd(0x32a)](_0x37fcfd,_0x184454);if(_0x581be1[_0x3a43cd(0x2d6)]===0x0)continue;this['_drawTextRange'](_0x374d00,_0x581be1,_0x542105,_0x110deb);}}}}}[_0x131176(0x242)](_0x183af9,_0x5a6ad1,_0x383d7e,_0x68555,_0x375d7f){const _0x873486=_0x131176,_0x3d848e=this['_getAnchorBounding'](_0x5a6ad1),{left:_0x24290f,top:_0x30bb2b,height:_0xadfc4}=_0x3d848e,_0x35bfe6=this[_0x873486(0x3a1)](),_0x328891=Nt/_0x35bfe6,_0xbb1ddb=new C[(_0x873486(0x331))](_e+a[_0x873486(0x206)](H),{'left':_0x24290f+_0x383d7e-_0x328891,'top':_0x30bb2b+_0x68555,'height':_0xadfc4,'width':Dt,'fill':_0x183af9||C[_0x873486(0x448)](a[_0x873486(0x292)][_0x873486(0x31e)],0x0),'strokeWidth':_0x328891,'stroke':Ut,'evented':!0x0});this[_0x873486(0x2ba)]=_0xbb1ddb,this['_scene']['addObject'](_0xbb1ddb,T[_0x873486(0x1e0)]);const _0x3c802d=new C[(_0x873486(0x331))](_e+a[_0x873486(0x206)](H),{'left':_0x24290f+_0x383d7e-_0x328891,'top':_0x30bb2b+_0x68555-he/0x2,'height':he,'width':he,'fill':_0x183af9||C[_0x873486(0x448)](a['COLORS'][_0x873486(0x31e)],0x0),'strokeWidth':0x0,'stroke':_0x183af9||C[_0x873486(0x448)](a[_0x873486(0x292)]['black'],0x0),'evented':!0x1});this[_0x873486(0x4a7)]=_0x3c802d,this[_0x873486(0x28f)][_0x873486(0x369)](_0x3c802d,T['TEXT_RANGE_LAYER_INDEX']);const _0x24ea60=new re(_e+a[_0x873486(0x206)](H),{'left':_0x24290f+_0x383d7e-_0x328891,'top':_0x30bb2b+_0x68555-X,'text':_0x375d7f,'color':_0x183af9});this[_0x873486(0x3da)]=_0x24ea60,this[_0x873486(0x28f)][_0x873486(0x369)](_0x24ea60,T[_0x873486(0x1e0)]),this[_0x873486(0x2ef)]=!0x1;}[_0x131176(0x3e2)](){const _0x36b1ab=_0x131176,_0x4e1401=this[_0x36b1ab(0x2ba)][_0x36b1ab(0x4b5)][_0x36b1ab(0x38a)](()=>{this['_hover']=!0x0;}),_0x16dd8a=this[_0x36b1ab(0x2ba)]['onPointerLeave$'][_0x36b1ab(0x38a)](()=>{const _0x1d98c3=_0x36b1ab;this[_0x1d98c3(0x1ef)]&&clearTimeout(this[_0x1d98c3(0x1ef)]),this[_0x1d98c3(0x1ef)]=setTimeout(()=>{const _0x3f7406=_0x1d98c3;this[_0x3f7406(0x2ef)]=!0x1;},0x7d0);});return()=>{const _0x163923=_0x36b1ab;_0x4e1401[_0x163923(0x211)](),_0x16dd8a[_0x163923(0x211)]();};}[_0x131176(0x407)](_0x504f83,_0x3d9018,_0x35926e,_0x569946){const _0x21fe11=_0x131176,_0x1b6543=new a[(_0x21fe11(0x389))](_0x504f83)[_0x21fe11(0x21c)](0.2)[_0x21fe11(0x350)](),_0x52f044=new C['RegularPolygon'](Rt+a[_0x21fe11(0x206)](H),{'pointsGroup':_0x3d9018,'fill':_0x1b6543||C[_0x21fe11(0x448)](a[_0x21fe11(0x292)][_0x21fe11(0x31e)],0.2),'left':_0x35926e,'top':_0x569946,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x52f044),this[_0x21fe11(0x28f)]['addObject'](_0x52f044,T[_0x21fe11(0x1e0)]);}[_0x131176(0x294)](_0x9488d6,_0x2cbbba,_0x2eaa8f,_0x46222b){const _0x3f3987=_0x131176,_0x4d0dfc=new a[(_0x3f3987(0x389))](_0x9488d6)['setAlpha'](0.2)[_0x3f3987(0x350)](),_0x23c4b2=new C[(_0x3f3987(0x2db))](bt+a[_0x3f3987(0x206)](H),{'pointsGroup':_0x2cbbba,'fill':_0x4d0dfc||C[_0x3f3987(0x448)](a[_0x3f3987(0x292)][_0x3f3987(0x31e)],0.2),'left':_0x2eaa8f,'top':_0x46222b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f3987(0x327)]['push'](_0x23c4b2),this[_0x3f3987(0x28f)]['addObject'](_0x23c4b2,T['TEXT_RANGE_LAYER_INDEX']);}[_0x131176(0x231)](_0x414645){const _0x19ae34=_0x414645[0x0],_0x28b1a6=_0x19ae34[0x0],_0x1973ac=_0x19ae34[0x2],{x:_0x4d4c93,y:_0x1fdc68}=_0x28b1a6,{x:_0x5c3ca4,y:_0x371690}=_0x1973ac;return{'left':_0x4d4c93,'top':_0x1fdc68,'width':_0x5c3ca4-_0x4d4c93,'height':_0x371690-_0x1fdc68};}[_0x131176(0x3a1)](){const _0x59b80b=_0x131176,{scaleX:_0x3f4864,scaleY:_0xf026c9}=this['_scene']['getAncestorScale']();return Math[_0x59b80b(0x286)](_0x3f4864,_0xf026c9);}}var Lt=Object[_0x131176(0x40c)],Mt=(_0x216e8f,_0x5b8223,_0x43849c,_0x225ba0)=>{const _0x2bf69b=_0x131176;for(var _0x347c6e=_0x225ba0>0x1?void 0x0:_0x225ba0?Lt(_0x5b8223,_0x43849c):_0x5b8223,_0x4708e0=_0x216e8f[_0x2bf69b(0x2d6)]-0x1,_0xa486ab;_0x4708e0>=0x0;_0x4708e0--)(_0xa486ab=_0x216e8f[_0x4708e0])&&(_0x347c6e=_0xa486ab(_0x347c6e)||_0x347c6e);return _0x347c6e;},q=(_0x23ed5a,_0x386f64)=>(_0x4c8f8d,_0x3a24cd)=>_0x386f64(_0x4c8f8d,_0x3a24cd,_0x23ed5a);let Ee=class extends a[_0x131176(0x338)]{constructor(_0xa731d7,_0x52a4a2,_0x254133,_0x930b7d,_0x127e30){const _0x57aa3f=_0x131176;super(),_(this,'_cursorShapes',[]),_(this,_0x57aa3f(0x2be),[]),(this[_0x57aa3f(0x392)]=_0xa731d7,this[_0x57aa3f(0x3b4)]=_0x52a4a2,this[_0x57aa3f(0x322)]=_0x254133,this[_0x57aa3f(0x310)]=_0x930b7d,this[_0x57aa3f(0x35b)]=_0x127e30,this['_init']());}[_0x131176(0x494)](){const _0x468b4b=_0x131176,_0x396af6=this['_context'][_0x468b4b(0x466)],_0x3266ed=this['_docSkeletonManagerService'];this[_0x468b4b(0x2c7)](I[_0x468b4b(0x482)]([this[_0x468b4b(0x322)]['getCollabCursors$'](_0x396af6),this[_0x468b4b(0x35b)][_0x468b4b(0x442)]])[_0x468b4b(0x465)]($[_0x468b4b(0x225)](([_0x484d39,_0x30c31d])=>({'skeleton':_0x3266ed['getSkeleton'](),'cursors':[..._0x484d39[_0x468b4b(0x439)]()][_0x468b4b(0x434)](_0x3e1943=>({..._0x3e1943,'color':this[_0x468b4b(0x35b)][_0x468b4b(0x43c)](_0x3e1943[_0x468b4b(0x2ad)])}))})))[_0x468b4b(0x2da)](_0x516ff8=>{const _0x2240d5=_0x468b4b;if(this[_0x2240d5(0x472)](),_0x516ff8){const {skeleton:_0xebb328,cursors:_0x5038b5}=_0x516ff8;this[_0x2240d5(0x21f)](_0xebb328,_0x5038b5);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x131176(0x21f)](_0x4122af,_0x2015a3){const _0x28efd1=_0x131176,{scene:_0x1615a2,mainComponent:_0x13c54b}=this[_0x28efd1(0x392)],_0x247bd4=_0x2015a3['map'](_0x7e403c=>new Le(_0x7e403c,_0x1615a2,_0x4122af,_0x13c54b));this[_0x28efd1(0x220)]=_0x247bd4,this[_0x28efd1(0x2be)]=_0x2015a3;}[_0x131176(0x3d2)](){const _0x2aeac8=_0x131176;this[_0x2aeac8(0x472)]();const {scene:_0x13d6f0,mainComponent:_0xb74307}=this['_context'],_0x148ce4=this[_0x2aeac8(0x3b4)]['getSkeleton'](),_0x30d98e=this[_0x2aeac8(0x2be)][_0x2aeac8(0x225)](_0x312d9a=>new Le(_0x312d9a,_0x13d6f0,_0x148ce4,_0xb74307));this[_0x2aeac8(0x220)]=_0x30d98e;}[_0x131176(0x472)](){const _0x4edcac=_0x131176;this['_cursorShapes'][_0x4edcac(0x24a)](_0x3be5f6=>_0x3be5f6[_0x4edcac(0x40d)]()),this[_0x4edcac(0x220)]=[];}[_0x131176(0x3fb)](){const _0x2b6d6f=_0x131176,_0x51c1d3=[T[_0x2b6d6f(0x1dc)]['id']];this[_0x2b6d6f(0x2c7)](this[_0x2b6d6f(0x310)]['onCommandExecuted'](_0x5225f3=>{const _0x37cec8=_0x2b6d6f;_0x51c1d3[_0x37cec8(0x2c5)](_0x5225f3['id'])&&_0x5225f3[_0x37cec8(0x344)]['unitId']===this[_0x37cec8(0x392)][_0x37cec8(0x466)]&&this['_refreshCollabCursors']();}));}[_0x131176(0x2f1)](){const _0x55ff99=_0x131176;this[_0x55ff99(0x2c7)](a[_0x55ff99(0x232)](this['_context'][_0x55ff99(0x2b2)][_0x55ff99(0x2b3)])[_0x55ff99(0x465)]($[_0x55ff99(0x258)](_0x546087=>_0x546087[_0x55ff99(0x3ca)]===C[_0x55ff99(0x3eb)][_0x55ff99(0x287)]),$[_0x55ff99(0x235)](0x10))[_0x55ff99(0x2da)](()=>{const _0x11d77b=_0x55ff99;this[_0x11d77b(0x3d2)]();}));}};Ee=Mt([q(0x1,a['Inject'](V[_0x131176(0x383)])),q(0x2,a[_0x131176(0x2e8)](F)),q(0x3,a[_0x131176(0x3b3)]),q(0x4,a['Inject'](a[_0x131176(0x379)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x131176(0x357)]{constructor(_0x23a6ae,_0xc44fa9){const _0x292366=_0x131176;super(_0x23a6ae,_0xc44fa9),_(this,_0x292366(0x4a5)),_(this,_0x292366(0x416),!0x1),_(this,_0x292366(0x427)),_(this,_0x292366(0x45f),''),_(this,'_labelPosition',_0x292366(0x28d)),_(this,'_backgroundColor'),(_0xc44fa9&&this[_0x292366(0x385)](_0xc44fa9),this['onPointerEnter$'][_0x292366(0x38a)](()=>this[_0x292366(0x385)]({'hovered':!0x0})),this[_0x292366(0x1f4)][_0x292366(0x38a)](()=>this[_0x292366(0x385)]({'hovered':!0x1})));}[_0x131176(0x385)](_0x4635da){const _0x5c3ea5=_0x131176;var _0x47ff35,_0x361d8a,_0x198a78,_0xda8f46,_0x4a77fb,_0x3fd2ee;this['_color']=(_0x47ff35=_0x4635da['color'])!=null?_0x47ff35:this[_0x5c3ea5(0x4a5)],this[_0x5c3ea5(0x416)]=(_0x361d8a=_0x4635da[_0x5c3ea5(0x41c)])!=null?_0x361d8a:this[_0x5c3ea5(0x416)],this[_0x5c3ea5(0x427)]=(_0x198a78=_0x4635da[_0x5c3ea5(0x25f)])!=null?_0x198a78:this[_0x5c3ea5(0x427)],this[_0x5c3ea5(0x45f)]=(_0xda8f46=_0x4635da[_0x5c3ea5(0x386)])!=null?_0xda8f46:this[_0x5c3ea5(0x45f)],this['_labelPosition']=(_0x4a77fb=_0x4635da['labelPosition'])!=null?_0x4a77fb:this[_0x5c3ea5(0x402)],this[_0x5c3ea5(0x2d0)]=(_0x3fd2ee=_0x4635da[_0x5c3ea5(0x470)])!=null?_0x3fd2ee:this[_0x5c3ea5(0x2d0)],this[_0x5c3ea5(0x3bb)]({'width':_0x4635da[_0x5c3ea5(0x2b9)],'height':_0x4635da[_0x5c3ea5(0x366)]});}['onMouseMove'](_0x5b45ee){const _0x2c0456=_0x131176,{row:_0xb12409,column:_0x5cd3a0}=_0x5b45ee;if(_0xb12409>=this['_range'][_0x2c0456(0x274)]&&_0xb12409<=this[_0x2c0456(0x427)]['endRow']&&_0x5cd3a0>=this[_0x2c0456(0x427)][_0x2c0456(0x42a)]&&_0x5cd3a0<=this[_0x2c0456(0x427)][_0x2c0456(0x2cf)]){this[_0x2c0456(0x385)]({'hovered':!0x0});return;}this[_0x2c0456(0x385)]({'hovered':!0x1});}[_0x131176(0x2f6)](_0x3e3bde){return!0x1;}[_0x131176(0x25a)](_0x283ad6){const _0x59196e=_0x131176;C[_0x59196e(0x331)][_0x59196e(0x36b)](_0x283ad6,{'width':this[_0x59196e(0x2b9)],'height':this[_0x59196e(0x366)],'strokeWidth':Pt,'stroke':this[_0x59196e(0x4a5)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x59196e(0x416)]&&(_0x283ad6[_0x59196e(0x217)](),_0x283ad6[_0x59196e(0x41d)](0x1,0x0,0x0,0x1,this[_0x59196e(0x2b9)],this['_labelPosition']===_0x59196e(0x34c)?0x0:-X),re[_0x59196e(0x36b)](_0x283ad6,{'text':this[_0x59196e(0x45f)],'color':this[_0x59196e(0x4a5)]}),_0x283ad6[_0x59196e(0x3a3)]());}}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x302f52,_0x4ce723,_0x2e2c39,_0x3f97d6)=>{const _0x42bb1b=_0x131176;for(var _0x622ed7=_0x3f97d6>0x1?void 0x0:_0x3f97d6?wt(_0x4ce723,_0x2e2c39):_0x4ce723,_0x53b00d=_0x302f52[_0x42bb1b(0x2d6)]-0x1,_0x43ca25;_0x53b00d>=0x0;_0x53b00d--)(_0x43ca25=_0x302f52[_0x53b00d])&&(_0x622ed7=_0x43ca25(_0x622ed7)||_0x622ed7);return _0x622ed7;},ue=(_0x4e1a29,_0xe4315b)=>(_0x29c975,_0x47fedd)=>_0xe4315b(_0x29c975,_0x47fedd,_0x4e1a29);const $t=0x1389;let Ce=class extends a['RxDisposable']{constructor(_0x401f30,_0x37e5b2,_0x28a02f,_0x4b8281){const _0x10e4e1=_0x131176;super(),_(this,_0x10e4e1(0x2be),new Set()),_(this,_0x10e4e1(0x400),null),(this[_0x10e4e1(0x392)]=_0x401f30,this[_0x10e4e1(0x3f2)]=_0x37e5b2,this[_0x10e4e1(0x322)]=_0x28a02f,this['_themeService']=_0x4b8281,this[_0x10e4e1(0x494)]());}['_init'](){const _0x247b08=_0x131176;this[_0x247b08(0x3f2)][_0x247b08(0x457)][_0x247b08(0x465)]($['takeUntil'](this['dispose$']),$[_0x247b08(0x395)](_0x3719b0=>{const _0x3a79d2=_0x247b08;if(_0x3719b0){const _0x514c11=_0x3719b0['sheetId'];return I['combineLatest'](this[_0x3a79d2(0x322)][_0x3a79d2(0x351)](this[_0x3a79d2(0x392)]['unitId']),this[_0x3a79d2(0x35b)][_0x3a79d2(0x442)])['pipe']($[_0x3a79d2(0x225)](([_0x1344d4,_0x2f8268])=>{const _0x546128=_0x3a79d2,_0x469439=new Map();return _0x1344d4[_0x546128(0x24a)]((_0x5090c0,_0x5c75fc)=>{const _0x2a9b6e=_0x546128;if(_0x5090c0[_0x2a9b6e(0x284)]===_0x514c11){const _0x4f1e18={..._0x5090c0};_0x4f1e18[_0x2a9b6e(0x2ad)]=this[_0x2a9b6e(0x35b)]['getColorFromTheme'](_0x5090c0[_0x2a9b6e(0x2ad)]),_0x469439['set'](_0x5c75fc,_0x4f1e18);}}),{'skeleton':_0x3719b0,'cursors':_0x469439};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x247b08(0x2da)](({skeleton:_0x173492,cursors:_0x2b6285})=>{const _0x3c0943=_0x247b08;this['_removeCollabCursors'](),_0x173492&&this[_0x3c0943(0x21f)](_0x173492,_0x2b6285);}),this[_0x247b08(0x3f2)][_0x247b08(0x457)][_0x247b08(0x2da)](_0xaa44d4=>{const _0x4040fc=_0x247b08;if(_0xaa44d4==null)return;const {skeleton:_0x34f125}=_0xaa44d4,{scene:_0xb7759a}=this['_context'];_0xb7759a[_0x4040fc(0x2dd)][_0x4040fc(0x38a)](a[_0x4040fc(0x40a)](_0x55e5ce=>{const _0x34fa35=_0x4040fc;var _0x2e5213,_0x597def;const {offsetX:_0x328271,offsetY:_0x728326}=_0x55e5ce,{x:_0x47df43,y:_0x5e835b}=_0xb7759a[_0x34fa35(0x212)](C['Vector2'][_0x34fa35(0x3d0)]([_0x328271,_0x728326])),{scaleX:_0x203ca9,scaleY:_0x8da801}=_0xb7759a[_0x34fa35(0x352)](),_0x50afd1=_0xb7759a[_0x34fa35(0x33b)](C[_0x34fa35(0x3b6)][_0x34fa35(0x432)]),_0x46e00f=_0xb7759a[_0x34fa35(0x316)](C[_0x34fa35(0x409)]['FromArray']([_0x47df43,_0x5e835b]),_0x50afd1),_0x1e8d37=_0x34f125['getCellPositionByOffset'](_0x328271,_0x728326,_0x203ca9,_0x8da801,_0x46e00f);((_0x2e5213=this['_lastPointer'])==null?void 0x0:_0x2e5213['column'])===_0x1e8d37[_0x34fa35(0x299)]&&((_0x597def=this[_0x34fa35(0x400)])==null?void 0x0:_0x597def[_0x34fa35(0x44e)])===_0x1e8d37[_0x34fa35(0x44e)]||this['_cursors'][_0x34fa35(0x24a)](_0x2c1d13=>{const _0x27ed3c=_0x34fa35;_0x2c1d13[_0x27ed3c(0x484)](_0x1e8d37);});},0x64));});}[_0x131176(0x21f)](_0x1bdafe,_0x4d1ba5){const _0x7578d4=_0x131176;var _0x99f235;const _0x2000ea=(_0x99f235=this[_0x7578d4(0x3f2)]['getCurrent']())==null?void 0x0:_0x99f235['skeleton'];if(!_0x2000ea)return;const _0x26f0a3=this[_0x7578d4(0x1ff)]();if(!_0x26f0a3)return;this[_0x7578d4(0x2be)][_0x7578d4(0x24a)](_0x5848aa=>{const _0x419718=_0x7578d4;_0x5848aa[_0x419718(0x332)]();});const {scene:_0x27d275}=_0x26f0a3,_0x444fa8=xt(Array['from'](_0x4d1ba5[_0x7578d4(0x439)]()))[_0x7578d4(0x225)](_0x4c6dc4=>{const _0x57d27d=_0x7578d4,{color:_0x37940a,range:_0x1f0896,name:_0x3ca3ce,selection:_0x2187a1,sheetID:_0xe40262}=_0x4c6dc4,{startColumn:_0x108f83,startRow:_0x289aff,endColumn:_0x5c375e,endRow:_0x51c11a}=_0x1f0896,_0x4f7cd3=J[_0x57d27d(0x22a)](_0x289aff,_0x108f83,_0x27d275,_0x2000ea),_0x4fde5a=J[_0x57d27d(0x22a)](_0x51c11a,_0x5c375e,_0x27d275,_0x2000ea),{columnHeaderHeightAndMarginTop:_0x1c74aa}=_0x2000ea,{startX:_0x2b8bbd,startY:_0x36b772}=_0x4f7cd3,{endX:_0x408f85,endY:_0x37c8da}=_0x4fde5a,_0xb7e8aa=_0x408f85-_0x2b8bbd,_0x1efb3b=_0x37c8da-_0x36b772,_0x122fc2={'labelPosition':_0x36b772-_0x1c74aa>=X?_0x57d27d(0x28d):_0x57d27d(0x34c),'sheetID':_0xe40262,'range':_0x1f0896,'color':_0x37940a,'name':_0x3ca3ce,'selection':_0x2187a1,'left':_0x2b8bbd,'top':_0x36b772,'width':_0xb7e8aa,'height':_0x1efb3b,'evented':!0x1,'zIndex':$t};return new je(_0x3ca3ce,_0x122fc2);});_0x27d275[_0x7578d4(0x37f)](_0x444fa8,At),this['_cursors']=new Set(_0x444fa8);}[_0x131176(0x472)](){const _0x2e8593=_0x131176;var _0xe0c035;(_0xe0c035=this[_0x2e8593(0x2be)])==null||_0xe0c035['forEach'](_0x1e6819=>_0x1e6819[_0x2e8593(0x40d)]());}[_0x131176(0x1ff)](){const _0x3ab1a7=_0x131176;return J[_0x3ab1a7(0x1f1)](this['_context'][_0x3ab1a7(0x330)],this[_0x3ab1a7(0x392)]);}};Ce=yt([ue(0x1,a[_0x131176(0x2e8)](J[_0x131176(0x2b8)])),ue(0x2,a[_0x131176(0x2e8)](F)),ue(0x3,a['Inject'](a['ThemeService']))],Ce);function xt(_0x645b1e){const _0x49ae9d=_0x131176,_0x5d2ea7=new Map();return _0x645b1e[_0x49ae9d(0x24a)](_0x4d2721=>{const _0x52bb14=_0x49ae9d;if(_0x5d2ea7[_0x52bb14(0x48d)](_0x4d2721['selection'])){const _0x4fa54e=_0x5d2ea7[_0x52bb14(0x1fe)](_0x4d2721[_0x52bb14(0x22d)]);_0x4fa54e['name']+=',\x20'+_0x4d2721[_0x52bb14(0x386)];}else _0x5d2ea7[_0x52bb14(0x3d1)](_0x4d2721[_0x52bb14(0x22d)],_0x4d2721);}),Array['from'](_0x5d2ea7[_0x49ae9d(0x439)]());}var Bt=Object[_0x131176(0x40c)],Ft=(_0x5d5d9a,_0x7d424b,_0x3021f0,_0x3b21f9)=>{const _0x6593e3=_0x131176;for(var _0x2a78a4=_0x3b21f9>0x1?void 0x0:_0x3b21f9?Bt(_0x7d424b,_0x3021f0):_0x7d424b,_0x4243d5=_0x5d5d9a[_0x6593e3(0x2d6)]-0x1,_0x9ecc7d;_0x4243d5>=0x0;_0x4243d5--)(_0x9ecc7d=_0x5d5d9a[_0x4243d5])&&(_0x2a78a4=_0x9ecc7d(_0x2a78a4)||_0x2a78a4);return _0x2a78a4;},y=(_0x45c47e,_0x23fed3)=>(_0x58b53a,_0x333bf3)=>_0x23fed3(_0x58b53a,_0x333bf3,_0x45c47e);let Z=class extends a[_0x131176(0x2fe)]{constructor(_0xffada,_0x5dc426,_0x77f59,_0x11d782,_0x3bf57c,_0x50ac03){const _0x45e69d=_0x131176;super(),this[_0x45e69d(0x47f)]=_0xffada,this[_0x45e69d(0x228)]=_0x5dc426,this[_0x45e69d(0x4ac)]=_0x77f59,this[_0x45e69d(0x370)]=_0x11d782,this[_0x45e69d(0x35d)]=_0x3bf57c,this[_0x45e69d(0x2d5)]=_0x50ac03,this[_0x45e69d(0x3f1)](),this[_0x45e69d(0x428)]();}[_0x131176(0x3f1)](){const _0x1b3028=_0x131176;this[_0x1b3028(0x2c7)](this[_0x1b3028(0x47f)]['registerBeforeClose'](()=>{const _0x50420=_0x1b3028;if(this[_0x50420(0x228)][_0x50420(0x252)]['size'])return this[_0x50420(0x2d5)]['t'](_0x50420(0x2f0));}));}[_0x131176(0x428)](){const _0x56616c=_0x131176;this[_0x56616c(0x2c7)](this[_0x56616c(0x4ac)][_0x56616c(0x3e1)][_0x56616c(0x2da)](_0x198809=>{const _0x1bc4a5=_0x56616c;_0x198809['id']===u[_0x1bc4a5(0x42e)]['OTHER_CLIENT_EDITING']&&this[_0x1bc4a5(0x370)]['show']({'type':p[_0x1bc4a5(0x43d)]['Warning'],'content':this[_0x1bc4a5(0x2d5)]['t'](_0x1bc4a5(0x293))}),_0x198809['id']===u['CollaborationUIEventId'][_0x1bc4a5(0x325)]&&this[_0x1bc4a5(0x370)][_0x1bc4a5(0x243)]({'type':p[_0x1bc4a5(0x43d)][_0x1bc4a5(0x44d)],'content':this[_0x1bc4a5(0x2d5)]['t'](_0x1bc4a5(0x209))}),_0x198809['id']===u[_0x1bc4a5(0x42e)][_0x1bc4a5(0x2ea)]&&this[_0x1bc4a5(0x35d)]['show']({'title':this[_0x1bc4a5(0x2d5)]['t'](_0x1bc4a5(0x3d4)),'content':this[_0x1bc4a5(0x2d5)]['t']('permission.content'),'type':'error','duration':0x0}),_0x198809['id']===u['CollaborationUIEventId'][_0x1bc4a5(0x22e)]&&this[_0x1bc4a5(0x370)][_0x1bc4a5(0x243)]({'type':p[_0x1bc4a5(0x43d)][_0x1bc4a5(0x333)],'content':this['_localeService']['t'](_0x1bc4a5(0x209))+'('+_0x198809[_0x1bc4a5(0x318)]+')'}),_0x198809['id']===u['CollaborationUIEventId'][_0x1bc4a5(0x4a0)]&&this[_0x1bc4a5(0x370)]['show']({'type':p[_0x1bc4a5(0x43d)][_0x1bc4a5(0x44d)],'content':this[_0x1bc4a5(0x2d5)]['t'](_0x198809[_0x1bc4a5(0x318)]||'')}),_0x198809['id']===u[_0x1bc4a5(0x42e)][_0x1bc4a5(0x36e)]&&this[_0x1bc4a5(0x370)][_0x1bc4a5(0x243)]({'type':p[_0x1bc4a5(0x43d)]['Warning'],'content':this['_localeService']['t'](_0x1bc4a5(0x345))}),_0x198809['id']===u[_0x1bc4a5(0x42e)][_0x1bc4a5(0x3ad)]&&this[_0x1bc4a5(0x370)][_0x1bc4a5(0x243)]({'type':p[_0x1bc4a5(0x43d)][_0x1bc4a5(0x333)],'content':this['_localeService']['t'](_0x1bc4a5(0x29e))}),_0x198809['id']===u[_0x1bc4a5(0x42e)][_0x1bc4a5(0x2c3)]&&this[_0x1bc4a5(0x370)][_0x1bc4a5(0x243)]({'type':p['MessageType'][_0x1bc4a5(0x333)],'content':this[_0x1bc4a5(0x2d5)]['t'](_0x1bc4a5(0x304))});}));}};Z=Ft([y(0x0,O[_0x131176(0x23e)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x131176(0x2e8)](u['CollaborationUIEventService'])),y(0x3,O[_0x131176(0x2a5)]),y(0x4,O['INotificationService']),y(0x5,a[_0x131176(0x2e8)](a['LocaleService']))],Z);var jt=Object[_0x131176(0x40c)],kt=(_0x39bf44,_0x2a32d6,_0x40e632,_0x3b9127)=>{const _0x58aab3=_0x131176;for(var _0x2bfb12=_0x3b9127>0x1?void 0x0:_0x3b9127?jt(_0x2a32d6,_0x40e632):_0x2a32d6,_0x22ecbf=_0x39bf44[_0x58aab3(0x2d6)]-0x1,_0x26561d;_0x22ecbf>=0x0;_0x22ecbf--)(_0x26561d=_0x39bf44[_0x22ecbf])&&(_0x2bfb12=_0x26561d(_0x2bfb12)||_0x2bfb12);return _0x2bfb12;},z=(_0x492652,_0x4c62b5)=>(_0x2e695a,_0x97081)=>_0x4c62b5(_0x2e695a,_0x97081,_0x492652);let Q=class extends a[_0x131176(0x2fe)]{constructor(_0x843b10,_0x4fffe3,_0x995d61,_0x47c31f){const _0x1c2248=_0x131176;super(),_(this,_0x1c2248(0x233)),(this['_injector']=_0x843b10,this[_0x1c2248(0x35c)]=_0x4fffe3,this[_0x1c2248(0x419)]=_0x995d61,this[_0x1c2248(0x321)]=_0x47c31f,this[_0x1c2248(0x494)]());}[_0x131176(0x494)](){const _0x173140=_0x131176;this[_0x173140(0x25e)](),this[_0x173140(0x291)](),this[_0x173140(0x411)](),this[_0x173140(0x35f)]();}[_0x131176(0x35f)](){const _0x3214bc=_0x131176;this[_0x3214bc(0x2c7)](this[_0x3214bc(0x321)][_0x3214bc(0x246)][_0x3214bc(0x2da)](_0x543dc7=>{const _0x22224b=_0x3214bc;this[_0x22224b(0x233)]=_0x543dc7==null?void 0x0:_0x543dc7[_0x22224b(0x371)];}));}[_0x131176(0x25e)](){const _0x38eea8=_0x131176,_0x988a94=_0x4284b3=>{const _0x1c8377=_0xd4c9;var _0x33a058;this[_0x1c8377(0x3ce)](_0x1c8377(0x3c3),_0x1c8377(0x412)+_0x4284b3[_0x1c8377(0x261)]+'\x20at\x20'+_0x4284b3[_0x1c8377(0x37d)]+':'+_0x4284b3[_0x1c8377(0x23a)]+':'+_0x4284b3[_0x1c8377(0x32f)]+'\x0a'+(((_0x33a058=_0x4284b3[_0x1c8377(0x3c3)])==null?void 0x0:_0x33a058[_0x1c8377(0x38c)])||''));};window[_0x38eea8(0x347)]('error',_0x988a94),this[_0x38eea8(0x2c7)](()=>{const _0x6a0d37=_0x38eea8;window['removeEventListener'](_0x6a0d37(0x3c3),_0x988a94);});}[_0x131176(0x291)](){const _0x33285e=_0x131176,_0x4eef39=_0x334a80=>{const _0x383ee2=_0xd4c9;this[_0x383ee2(0x3ce)]('error',_0x383ee2(0x376)+_0x334a80[_0x383ee2(0x488)]);};window['addEventListener'](_0x33285e(0x3cd),_0x4eef39),this['disposeWithMe'](()=>{const _0x4e1738=_0x33285e;window[_0x4e1738(0x458)](_0x4e1738(0x3cd),_0x4eef39);});}[_0x131176(0x411)](){const _0x57a7b0=_0x131176,_0x2e9d7e=this['_logService'][_0x57a7b0(0x3c3)][_0x57a7b0(0x280)](this[_0x57a7b0(0x419)]);this['_logService'][_0x57a7b0(0x3c3)]=(..._0x418b3d)=>{const _0x375dc5=_0x57a7b0,_0xe20e79=_0x418b3d[_0x375dc5(0x225)](_0x717876=>_0x717876 instanceof Error?_0x717876[_0x375dc5(0x261)]+'\x0a'+_0x717876[_0x375dc5(0x38c)]:String(_0x717876))[_0x375dc5(0x349)]('\x20');this[_0x375dc5(0x3ce)](_0x375dc5(0x3c3),_0x375dc5(0x3c6)+_0xe20e79),_0x2e9d7e(..._0x418b3d);},this[_0x57a7b0(0x2c7)](()=>{const _0x4bfdb8=_0x57a7b0;this[_0x4bfdb8(0x419)]['error']=_0x2e9d7e;});}[_0x131176(0x3ce)](_0x427ee5,_0x36cbe4){const _0x2b4db8=_0x131176;try{const _0xc0f862={'userId':this[_0x2b4db8(0x233)],'logLabel':_0x427ee5,'content':_0x36cbe4};this['_httpService']['post'](_0x2b4db8(0x479),{'body':_0xc0f862})[_0x2b4db8(0x2a9)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x131176(0x2e8)](a[_0x131176(0x24c)])),z(0x1,a['Inject'](x[_0x131176(0x20b)])),z(0x2,a[_0x131176(0x493)]),z(0x3,a[_0x131176(0x2e8)](u[_0x131176(0x3e9)]))],Q);function _0xd4c9(_0x215768,_0x3a9bc6){_0x215768=_0x215768-0x1da;const _0x23f678=_0x23f6();let _0xd4c91b=_0x23f678[_0x215768];return _0xd4c91b;}const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x131176(0x40c)],Wt=(_0x5f2f4e,_0x4c83a2,_0x80b4fb,_0x7c301)=>{const _0x29c486=_0x131176;for(var _0x22e2df=_0x7c301>0x1?void 0x0:_0x7c301?Ht(_0x4c83a2,_0x80b4fb):_0x4c83a2,_0x5ef8ac=_0x5f2f4e[_0x29c486(0x2d6)]-0x1,_0x549891;_0x5ef8ac>=0x0;_0x5ef8ac--)(_0x549891=_0x5f2f4e[_0x5ef8ac])&&(_0x22e2df=_0x549891(_0x22e2df)||_0x22e2df);return _0x22e2df;},Ae=(_0xd849ee,_0x48298f)=>(_0x27f080,_0x2fac31)=>_0x48298f(_0x27f080,_0x2fac31,_0xd849ee);let ee=class{constructor(_0xf06277,_0x5ae924){const _0x149e40=_0x131176;this[_0x149e40(0x283)]=_0xf06277,this[_0x149e40(0x37e)]=_0x5ae924;}[_0x131176(0x40b)](_0x38a0fc){const _0x1592c2=_0x131176;this[_0x1592c2(0x481)](_0x38a0fc),this[_0x1592c2(0x339)](_0x38a0fc);}[_0x131176(0x262)](_0x5519a8){const _0x369302=_0x131176,{unitID:_0x270991}=_0x5519a8,_0x32e2c3=this[_0x369302(0x37e)][_0x369302(0x483)](_0x270991)['with'](T[_0x369302(0x43f)]),{redoCache:_0x5e8637}=_0x32e2c3['getUndoRedoMutationParamsCache']();if(_0x5e8637[_0x369302(0x2d6)]===0x0)return _0x5519a8;let _0x1bb236=a[_0x369302(0x313)][_0x369302(0x46f)](_0x5519a8[_0x369302(0x264)][0x0]);for(let _0x10457a=0x0;_0x10457a<_0x5e8637[_0x369302(0x2d6)];_0x10457a++){const _0x28880e={'id':_0x369302(0x2b6),'params':{..._0x5e8637[_0x10457a]}},_0x5f0abe=this[_0x369302(0x283)][_0x369302(0x2b7)](_0x1bb236,_0x28880e,!0x1);if(g[_0x369302(0x20a)](_0x5f0abe))throw _0x5f0abe['error'];_0x1bb236=_0x5f0abe[_0x369302(0x2aa)];}return{...a[_0x369302(0x313)][_0x369302(0x46f)](_0x5519a8),'mutations':[_0x1bb236]};}[_0x131176(0x481)](_0xaff7b8){const _0x174523=_0x131176,{unitID:_0x3e619b}=_0xaff7b8,_0x16a326=this[_0x174523(0x37e)]['getRenderById'](_0x3e619b)[_0x174523(0x3e8)](T['DocIMEInputManagerService']),{undoCache:_0x31fb80,redoCache:_0x17e93d}=_0x16a326[_0x174523(0x29d)]();if(_0x31fb80['length']===0x0||_0x17e93d[_0x174523(0x2d6)]===0x0)return;const _0x7053d8=[],_0x39010b=[];let _0x7b3853=a[_0x174523(0x313)]['deepClone'](_0xaff7b8[_0x174523(0x264)][0x0]),_0x4f022e=a['Tools']['deepClone'](_0xaff7b8[_0x174523(0x264)][0x0]);for(let _0x53c1aa=_0x31fb80['length']-0x1;_0x53c1aa>=0x0;_0x53c1aa--){const _0x184021={'id':_0x174523(0x2b6),'params':{..._0x31fb80[_0x53c1aa]}},_0x41e68c={'id':_0x174523(0x2b6),'params':{..._0x17e93d[_0x53c1aa]}},_0x5169e2=this[_0x174523(0x283)][_0x174523(0x2b7)](_0x7b3853,_0x184021,!0x1),_0x150056=this[_0x174523(0x283)][_0x174523(0x2b7)](_0x4f022e,_0x41e68c,!0x1);if(g[_0x174523(0x20a)](_0x5169e2))throw _0x5169e2[_0x174523(0x3c3)];if(g[_0x174523(0x20a)](_0x150056))throw _0x150056[_0x174523(0x3c3)];_0x7053d8[_0x174523(0x2f3)](_0x5169e2[_0x174523(0x42d)][_0x174523(0x344)]),_0x39010b['unshift'](_0x150056[_0x174523(0x42d)][_0x174523(0x344)]),_0x7b3853=_0x5169e2[_0x174523(0x2aa)],_0x4f022e=_0x150056[_0x174523(0x2aa)];}_0x16a326[_0x174523(0x20c)]({'undoCache':_0x7053d8,'redoCache':_0x39010b});}['_transformPreviousActiveRange'](_0x50aa52){const _0x4b2111=_0x131176,{unitID:_0x50d733}=_0x50aa52,_0x29fd0a=this['_renderManagerService'][_0x4b2111(0x483)](_0x50d733)[_0x4b2111(0x3e8)](T[_0x4b2111(0x43f)]),_0x149e98=_0x29fd0a[_0x4b2111(0x2eb)]();if(_0x149e98==null)return;const _0x4c2d62=[{'id':_0x4b2111(0x2b6),'params':{'unitId':_0x50aa52[_0x4b2111(0x278)],'actions':null,'textRanges':[_0x149e98]}}],_0x5636b5=this['_transformService'][_0x4b2111(0x2a1)](_0x50aa52,_0x4c2d62);if(!g[_0x4b2111(0x42f)](_0x5636b5))throw _0x5636b5[_0x4b2111(0x3c3)];const _0x1fe29c=_0x5636b5['m2Prime'][0x0]['params'][_0x4b2111(0x2f2)];Array[_0x4b2111(0x3d6)](_0x1fe29c)&&_0x1fe29c[_0x4b2111(0x2d6)]&&_0x29fd0a[_0x4b2111(0x42b)](_0x1fe29c[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C[_0x131176(0x3ba)])],ee);var Vt=Object[_0x131176(0x40c)],Gt=(_0x55a6d1,_0x3ed5f7,_0x44a519,_0x1d8394)=>{const _0x4fb437=_0x131176;for(var _0x23e93c=_0x1d8394>0x1?void 0x0:_0x1d8394?Vt(_0x3ed5f7,_0x44a519):_0x3ed5f7,_0x4f9ecc=_0x55a6d1[_0x4fb437(0x2d6)]-0x1,_0x28290e;_0x4f9ecc>=0x0;_0x4f9ecc--)(_0x28290e=_0x55a6d1[_0x4f9ecc])&&(_0x23e93c=_0x28290e(_0x23e93c)||_0x23e93c);return _0x23e93c;},Ie=(_0x150dd7,_0x297dfc)=>(_0x526d3f,_0x6c846a)=>_0x297dfc(_0x526d3f,_0x6c846a,_0x150dd7);let te=class{constructor(_0x5aaaf9,_0x53da6e,_0x3d39ef){const _0x46aca7=_0x131176;this[_0x46aca7(0x268)]=_0x5aaaf9,this[_0x46aca7(0x283)]=_0x53da6e,this[_0x46aca7(0x32c)]=_0x3d39ef;}[_0x131176(0x45a)](_0x20f36e){const _0x40b0b5=_0x131176;this[_0x40b0b5(0x3ee)](_0x20f36e);}[_0x131176(0x262)](_0x6b9b45){const _0x4b5970=_0x131176,{unitID:_0x3fe18c}=_0x6b9b45,{collaboration:_0x205bea}=this[_0x4b5970(0x32c)][_0x4b5970(0x205)](_0x3fe18c);if(_0x205bea[_0x4b5970(0x2d6)]===0x0)return _0x6b9b45;let _0x51134f=a[_0x4b5970(0x313)][_0x4b5970(0x46f)](_0x6b9b45[_0x4b5970(0x264)][0x0]);for(let _0x14e348=0x0;_0x14e348<_0x205bea['length'];_0x14e348++){const _0xe368d2={'id':_0x4b5970(0x2b6),'params':{'unitId':_0x205bea[_0x14e348][_0x4b5970(0x466)],..._0x205bea[_0x14e348][_0x4b5970(0x49c)]}},_0x569bd8=this[_0x4b5970(0x283)][_0x4b5970(0x2b7)](_0x51134f,_0xe368d2,!0x1);if(g[_0x4b5970(0x20a)](_0x569bd8))throw _0x569bd8[_0x4b5970(0x3c3)];_0x51134f=_0x569bd8[_0x4b5970(0x2aa)];}return{...a['Tools'][_0x4b5970(0x46f)](_0x6b9b45),'mutations':[_0x51134f]};}[_0x131176(0x3ee)](_0x3786ed){const _0x3e754c=_0x131176,{unitID:_0x5c0875}=_0x3786ed,{history:_0x238351,collaboration:_0x3ce42a}=this[_0x3e754c(0x32c)][_0x3e754c(0x205)](_0x5c0875);if(_0x238351[_0x3e754c(0x2d6)]===0x0&&_0x3ce42a[_0x3e754c(0x2d6)]===0x0)return;const _0x284b78=[],_0x3027d1=[];let _0xd9686f=a['Tools'][_0x3e754c(0x46f)](_0x3786ed['mutations'][0x0]),_0x15d9a8=a[_0x3e754c(0x313)]['deepClone'](_0x3786ed[_0x3e754c(0x264)][0x0]);for(let _0x3d0e55=_0x238351[_0x3e754c(0x2d6)]-0x1;_0x3d0e55>=0x0;_0x3d0e55--){const _0x2b94aa={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x238351[_0x3d0e55][_0x3e754c(0x466)],..._0x238351[_0x3d0e55][_0x3e754c(0x251)]}},_0x421c96={'id':_0x3e754c(0x2b6),'params':{'unitId':_0x238351[_0x3d0e55][_0x3e754c(0x466)],..._0x238351[_0x3d0e55]['redoState']}},_0x4b1748=this['_transformService'][_0x3e754c(0x2b7)](_0xd9686f,_0x2b94aa,!0x1),_0x1ca817=this['_transformService'][_0x3e754c(0x2b7)](_0x15d9a8,_0x421c96,!0x1);if(g[_0x3e754c(0x20a)](_0x4b1748))throw _0x4b1748['error'];if(g[_0x3e754c(0x20a)](_0x1ca817))throw _0x1ca817['error'];_0x284b78[_0x3e754c(0x2f3)]({..._0x238351[_0x3d0e55],'undoState':_0x4b1748['m2Prime'][_0x3e754c(0x344)],'redoState':_0x1ca817[_0x3e754c(0x42d)]['params']}),_0xd9686f=_0x4b1748[_0x3e754c(0x2aa)],_0x15d9a8=_0x1ca817[_0x3e754c(0x2aa)];}_0xd9686f=a[_0x3e754c(0x313)][_0x3e754c(0x46f)](_0x3786ed['mutations'][0x0]),_0x15d9a8=a[_0x3e754c(0x313)]['deepClone'](_0x3786ed[_0x3e754c(0x264)][0x0]);for(let _0x3042e0=_0x3ce42a[_0x3e754c(0x2d6)]-0x1;_0x3042e0>=0x0;_0x3042e0--){const _0x13d648={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3ce42a[_0x3042e0][_0x3e754c(0x466)],..._0x3ce42a[_0x3042e0][_0x3e754c(0x251)]}},_0x53ec57={'id':_0x3e754c(0x2b6),'params':{'unitId':_0x3ce42a[_0x3042e0][_0x3e754c(0x466)],..._0x3ce42a[_0x3042e0]['redoState']}},_0x99a53a=this[_0x3e754c(0x283)]['transformMutation'](_0xd9686f,_0x13d648,!0x1),_0x3a1ec0=this['_transformService'][_0x3e754c(0x2b7)](_0x15d9a8,_0x53ec57,!0x1);if(g[_0x3e754c(0x20a)](_0x99a53a))throw _0x99a53a[_0x3e754c(0x3c3)];if(g['isTransformMutationFailure'](_0x3a1ec0))throw _0x3a1ec0[_0x3e754c(0x3c3)];_0x3027d1[_0x3e754c(0x2f3)]({..._0x3ce42a[_0x3042e0],'undoState':_0x99a53a['m2Prime'][_0x3e754c(0x344)],'redoState':_0x3a1ec0[_0x3e754c(0x42d)]['params']}),_0xd9686f=_0x99a53a[_0x3e754c(0x2aa)],_0x15d9a8=_0x3a1ec0[_0x3e754c(0x2aa)];}this['_docStateChangeManagerService'][_0x3e754c(0x3c8)](_0x5c0875,{'history':_0x284b78,'collaboration':_0x3027d1});}};function _0x23f6(){const _0x3e49ea=['[LogService\x20Error]:\x20','_cachedData','setStateCache','svg','type','LICENSE_EXPORT_SIZE_EXCEEDED','_updateLocalCursor','unhandledrejection','_uploadLog','UNAUTHENTICATED','FromArray','set','_refreshCollabCursors','_cursor','permission.title','div','isArray','_render','Tooltip','ENTITLE_NEED_BILLING_ADDRESS','_textBubble','PENDING','invokeId','attrs','setTimeout','0\x200\x2017\x2016','EffectRefRangId','event$','_handleHover','entries','_online','getTypeOfUnitDisposed$','LocaleService','getMember','with','CollaborationSessionService','_entityInit$','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getItem','_setupSubUnitSync','_transformHistoryAndStateStack','_colorIndex','handleInsertRangeMoveDown','_setupBeforeClosingHandler','_sheetSkeletonManagerService','_collaborationController','collab-client.tooltip.reconnect','CollaborationSocketService','ITransformService','ISnapshotServerService','shareReplay','roomMembers','ENTITLE_COUPON_EXPIRED','_initCommandExecutedListener','UnitStatus','1em','OTHER_CLIENTS_EDITING','Plugin','_lastPointer','_getSaveTimeout','_labelPosition','getCurrentUnitForType','RichTextEditingMutation','substring','handleInsertRow','_drawTextRange','USER_IS_ANONYMOUS','Vector2','debounce','transformIMECache','getOwnPropertyDescriptor','dispose','_syncEditingCollabCursorService','UNRECOGNIZED','IRemoteInstanceService','_monkeyPatchLogService','[Window\x20Error]:\x20','SetWorksheetActivateCommand','arc','NodePositionConvertToCursor','_hovered','roomMembers$','getOffsetConfig','_logService','_onCursorUpdate','UniverIcon','hovered','transform','FormulaExecuteStageType','/universer-api/license/formula/limit/status','createElement','registerDependencies','enableLocalCache','_eventUnsubscribe','SheetsSelectionsService','idSuffix','useObservable','_range','_initEvent','stageInfo','startColumn','setActiveRange','YUUMI_UNABLE_LOAD_URL','m2Prime','CollaborationUIEventId','isTransformMutationsWithChangesetSuccess','getSheetId','xlink:href','VIEW_MAIN','none','flatMap','LICENSE_IMPORT_SIZE_EXCEEDED','21kYRtcV','exhaustSavingTask','on-line-icon_clip0_910_349','values','serializeRangeWithSheet','PY_RUNTIME_SCRIPT_ERROR','getColorFromTheme','MessageType','entityInit$','DocIMEInputManagerService','asObservable','urlChange$','currentTheme$','SetTextSelectionsOperation','REDEMPTION_CODE_INACTIVE','_collabCursorState$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','dispose$','getColor','_docTransformSelectionsService','0\x200\x2016\x2016','measureText','_status$','Warning','row','WebSocketService','_showGuardMessage','getCurrentRevOfUnit','INVALID_ARGUMENT','collabStatus.conflict','tag','_handleHeartbeatEvent','docStateChange$','currentSkeleton$','removeEventListener','ISocketService','transformStateCache','jiqing.500','loadUnit','debounceTime','INVITE_CODE_ALREADY_BOUND','_name','lineTo','_memberService','MOBILE_VERIFY_CODE_MISMATCH','EMAIL_VERIFY_CODE_MISMATCH','_handleJoinEvent','pipe','unitId','touchDependencies','moveTo','UNIVER_SHEET','getUnitId','evenodd','BrowserCollaborationSocketService','MemberService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','deepClone','backgroundColor','maxFormulaLimit','_removeCollabCursors','mapTo','ONLINE','disableLocalCache','loadOfflineData','_config','transformSelections','/universer-api/frontend/logs','onStarting','sessionTicket','RemoveRowCommandId','colorChannel1','toStringTag','_beforeCloseService','_createSocketURL','_transformUndoRedoStack','combineLatest','getRenderById','onMouseMove','useCallback','ALREADY_EXISTS','CURRENT_STATUS_CANNOT_OPERATE','reason','getTypeOfUnitAdded$','_disabled','_instanceService','_collabSessionService','has','DependentOn','functionsExecutedState','parseInt','NOT_COLLAB','DesktopCollaborationStatusDisplayController','ILogService','_init','CanceledError','OffLineIcon','LOGIN_FAILED','_updateSubUnitFromURLParams','_saveTaskMap','_setFormulaLimitStatus','_clearPolling','redoState','371233lmXmIr','_lastResponseTimestamp','_urlService','JOIN_ROOM_FAILED','_docTransformIMECacheService','_registerDependencies','getMemberID','enableFrontendLog','_color','min','_anchorDot','_docSyncEditingCollabCursorService','pluginName','fill','then','_collaborationUIEventService','fillRule','registerRenderModule','getCellMatrix','_session','source','_releaseCalculationLimit','REDEMPTION_CODE_NOT_STARTED','IUIPartsService','onPointerEnter$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_applyCommand','SetDocZoomRatioOperation','ENTITLE_INSUFFICIENT_QUOTA','defIds','push','TEXT_RANGE_LAYER_INDEX','_docSkeleton','_taskIds','handleInsertRangeMoveRight','history','toString','collab-text-range-','IConfigService','string','unload','getformulaLimitStatusUrl','url(#on-line-icon_clip0_910_349)','RECT','_uiPartsService','connectInjector','_hideTimer','status$','getSheetObject','assignAColorForMemberID','setParam','onPointerLeave$','/universer-api/license/formula/limit/start','useDependency','currentUsage','init','stage','mask','getUnitStatus$','activeSheet$','find','get','_getSheetObject','CHANGESET_REVISION_CONFILICT','_currentUsage','split','DataLoaderService','ILocalStorageService','getStateCache','generateRandomId','saveImage','takeUntil','collaboration.closeRoom','isTransformMutationFailure','HTTPService','setUndoRedoMutationParamsCache','deserializeRangeWithSheet','clearInterval','ENTITLE_INVALID_COUPON_CODE','whenReady','unsubscribe','getRelativeToViewportCoord','addClipboardHook','_cursorInfo$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','collabStatus.notCollab','save','_entities','complete','INVITE_CODE_HAS_BEEN_UES','PAYMENT_CHANNEL_NOT_SUPPORT','setAlpha','10546110BGkZpw','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_updateCollabCursors','_cursorShapes','Loading','from','RemoteUniscriptService','...','map','AWAITING_WITH_PENDING','add','_localCacheService','merge','getCoordByCell','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_scheduleClearOtherTimer','selection','CONFLICT','http://www.w3.org/2000/svg','DocStateChangeManagerService','_getAnchorBounding','fromEventSubject','_memberID','_startDocCollabCursor','throttleTime','APPLY_PERMISSION_DENIED','_startSheetCollabCursor','_clearOtherTimers','getConfig','lineno','next','_handleEvent','Unknown\x20user','IBeforeCloseService','RevisionService','handleDeleteRangeMoveUp','_refRangeService','_drawAnchor','show','APPLY_REJECT','HEADER_MENU','socket$','collabStatus.fetchMiss','APPLY_DUPLICATED','SetSelectionsOperation','forEach','UniverCollaborationClientUIPlugin','Injector','startFormulaLimitUrl','totalFormulasToCalculate','off-line-icon','YUUMI_ALL_TABLES_IS_INVALID','undoState','saveTaskMap','createIdentifier','_document','ERROR_AGAIN','WECHAT_HAS_BEEN_BOUND','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','filter','_saveCache','_draw','collabStatus.offline','replaceDocRanges','INVITE_CODE_REQUIRED','_initWindowErrorListener','range','send','message','transformRemoteChangeset','dirtyRanges','mutations','_localStorageService','body','runRefRangeMutations','_injector','_revisionService','handleInsertCol','MOBILE_HAS_BEEN_BOUND','formula.calculation.unable','findNodePositionByCharIndex','Subject','children','RefRangeService','_configService','registerRefRange','CONNECTOR_DATA_TOO_LARGE','startRow','getSheetBySheetId','_getFormulaLimitStatus','getUnhiddenWorksheets','unitID','isEditing','onCommandExecuted','href','Optional','currentColor','getMergeData','CollaborationStatus','bind','126BqLdBY','REDEMPTION_USER_NOT_ELIGIBLE','_transformService','sheetID','onLocalMutation','max','resize','LICENSE_MAX_UNITS_EXCEEDED','delete','SUCCESS','collabCursorState$','ranges','top','USERS_LEAVE','_scene','subunit','_initUnhandledRejectionListener','COLORS','collaboration.single-unit.warning','_drawRectRange','YUUMI_URL_COL_OUT_OF_RANGE','handleMoveRange','hide','handleIRemoveCol','column','clsx','UNIVER_DOC','pushState','getUndoRedoMutationParamsCache','session.connection-failed','_unitOnClients','_initEntityListener','transformMutationsWithChangeset','getFocusedUnit','origin','YUUMI_SUBSCRIPTION_NOT_FOUND','IMessageService','UniverInstanceType','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','off-line-icon_clip0_910_343','catch','m1Prime','toDisposable','DOC_RANGE_TYPE','color','some','SNAPSHOT_INVALID_SNAPSHOT','runId','_updateURLWithCurrentState','engine','onTransformChange$','REDEMPTION_USER_REDEEM_TIMES_EXCEED','LOGIN_TOKEN_PROCESSING_FAILED','doc.mutation.rich-text-editing','transformMutation','SheetSkeletonManagerService','width','_anchor','_imageIoService','executeCommand','APPLY_NON_SEQUENTIAL_REVISION','_cursors','wsSessionTicketUrl','displayName','clipPath','NO_OTHER_CLIENTS_EDITING','SUBMIT_CHANGESET_TIMEOUT','replaceState','includes','ENTITLE_REPORT_LIMIT_EXCEED','disposeWithMe','setItem','imageSourceType','32154PXfWqz','forwardRef','storage','_maxFormulaLimit','handleDeleteRangeMoveLeft','endColumn','_backgroundColor','round','size','application/json','contains','_localeService','length','fillStyle','_onCursorDelete','_univerInstanceService','subscribe','RegularPolygon','requireSession','onPointerMove$','SheetCollabCursorShape','selections','univerjs-icon\x20univerjs-icon-','M0\x200H16V16H0z','debug','_send','jsxs','blue.400','ENTITLE_USE_COUPON_NOT_1ST_TRADE','YUUMI_AI_RUN_FAILED','Inject','result','PERMISSION_DENIED','getActiveRange','on-line-icon','USER_NOT_FOUND','_handleLeaveEvent','_hover','collaboration.offline-data-not-saved','_initResize','textRanges','unshift','REDEMPTION_INVALID_CODE','shift','triggerDblclick','UNDEFINED','_roomMembers$','post','COMPLETION_FINISHED','_checkCalculationAvailable','SYNCED','now','Disposable','ACTIVE_UNIT_EVENT_CHANNEL','NOT_FOUND','reconnect','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','useRef','session.collaboration-timeout','url(#$1','popstate','code','UniverCollaborationClientPlugin','_initCommandInterceptor','newValue','collabStatus.syncing','_ensureSubject','MoveRangeCommandId','ENTITLE_COUPON_USED_UP','_getMergeRange','_commandService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','defs','Tools','url(#off-line-icon_clip0_910_343)','isActive','getVpScrollXYInfoByPosToVp','executionId','data','_onRefRangeChange','_pollingInterval','collabStatus.synced','stringify','formula.calculation.waiting','black','_colorAssignService','_selfUnitIDs','_collaborationSessionService','_collabCursorController','?taskId=','_unitStatus','CLOSE_ROOM','TEXT','_shapes','syncEditingCollabCursor','getUnit','getRangePointData','fromEvent','_docStateChangeManagerService','SNAPSHOT_HAS_BEEN_REMOVED','IImageIoService','colno','unit','Rect','makeDirty','Error','Success','defineProperty','LICENSE_DISTRO_REJECTED','getLocalCacheKey','RxDisposable','_transformPreviousActiveRange','saveOfflineData','getViewport','random','_assignedColors','ENSURE_SNAPSHOT_EXECUTION','text','TOO_MANY_REQUESTS','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','cursorInfo','DATA_SOURCE_TOO_LARGE','params','session.will-retry','APPLY_REVISION_CONFILICT','addEventListener','YUUMI_CONNECTOR_URL_NOT_FOUND','join','OFFLINE','createSocket','bottom','USER_NOT_INVITED_CODE','Workbook','_doCreateSocket','toRgbString','getCollabCursors$','getAncestorScale','setConfig','IURLService','getDocRanges','Failed','Shape','CollaborationController','use','YUUMI_RATE_OVER_LIMIT','_themeService','_httpService','_notificationService','rgba(255,\x20255,\x20255,\x200.01)','_initUserListener','_removeClearOtherTimer','trim','assign','parse','onRendered','getValue','height','IDocClipboardService','searchParams','addObject','DisposableCollection','drawWith','jsx','IUniverInstanceService','SOCKET_FAILED_RETRY','_toggleOffline','_messageService','memberID','_initDependencies','limitInfo','editingUnit','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[Unhandled\x20Rejection]:\x20','_scheduleSaving','createInstance','ThemeService','path','OnLineIcon','_startCalculationLimit','filename','_renderManagerService','addObjects','getParam','INTERNAL_ERROR','999670ymweZj','DocSkeletonManagerService','getUniverSheetInstance','setShapeProps','name','location','ILocalCacheService','ColorKit','subscribeEvent','_checkAndWaitForCalculationPermission','stack','_id','1763436DZeBxi','_hasFormulaInDirtyRanges','AUTHORIZE_CODE_ILLEGAL','REDEMPTION_CODE_FULLY_REDEEMED','_context','_heartbeatTimer','_dataLoaderService','switchMap','BuiltInUIPart','UPDATE_CURSOR','_docClipboardService','actions','NodePositionConvertToRectRange','mergeOverrideWithDependencies','cursorInfo$','InsertRowCommandId','runOnServer','clearTimeout','RemoveColCommandId','_getScale','CollaborationEvent','restore','eventID','38112HhOtGK','FormulaExecutedStateType','WebBrowserSingleActiveUnitService','SetFormulaCalculationNotificationMutation','AWAITING','_toggleOnline','DocSelectionManagerService','BehaviorSubject','SOCKET_FAILED','REDEMPTION_CODE_HAS_BEEN_CREATED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','replace','YUUMI_NO_CUBOID_FOR_QUESTION','_docTransformStateCacheService','ICommandService','_docSkeletonManagerService','ENTITLE_CHAT_LIMIT_EXCEED','SHEET_VIEWPORT_KEY','[CollaborationDataLoaderController]','YUUMI_ASYNCIO_CANCELLED','1324224wTQWFE','IRenderManagerService','transformByState','_getSessionTicket','formula.calculation.started','CollaborationDataLoaderController','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','registerComponent','SessionStatus','getCollabEntity$','error','FETCH_MISS','disposeUnit'];_0x23f6=function(){return _0x3e49ea;};return _0x23f6();}te=Gt([Ie(0x0,a[_0x131176(0x2e8)](a['Injector'])),Ie(0x1,g[_0x131176(0x3f6)]),Ie(0x2,a[_0x131176(0x2e8)](T[_0x131176(0x230)]))],te);var Xt=Object[_0x131176(0x40c)],Kt=(_0x52c5db,_0x3cce04,_0x27c410,_0x2d5048)=>{const _0x135534=_0x131176;for(var _0x4fca9c=_0x2d5048>0x1?void 0x0:_0x2d5048?Xt(_0x3cce04,_0x27c410):_0x3cce04,_0x181195=_0x52c5db[_0x135534(0x2d6)]-0x1,_0x51de77;_0x181195>=0x0;_0x181195--)(_0x51de77=_0x52c5db[_0x181195])&&(_0x4fca9c=_0x51de77(_0x4fca9c)||_0x4fca9c);return _0x4fca9c;},Pe=(_0x4d4275,_0x37d0d0)=>(_0x10f9df,_0x3274e9)=>_0x37d0d0(_0x10f9df,_0x3274e9,_0x4d4275);let se=class{constructor(_0x36dd00,_0x35ad0d){const _0xcf886=_0x131176;this[_0xcf886(0x268)]=_0x36dd00,this[_0xcf886(0x283)]=_0x35ad0d;}[_0x131176(0x478)](_0x1ddf19){const _0x473ac1=_0x131176;var _0xd8551a;const _0xadb0aa=this[_0x473ac1(0x268)][_0x473ac1(0x1fe)](V['DocSelectionManagerService']),_0x38a507=(_0xd8551a=_0xadb0aa[_0x473ac1(0x355)]())!=null?_0xd8551a:[];if(_0x38a507[_0x473ac1(0x2d6)]===0x0)return;const _0x29b586=_0x1ddf19['unitID'],_0x3b5a9d=[{'id':_0x473ac1(0x2b6),'params':{'unitId':_0x29b586,'actions':null,'textRanges':_0x38a507}}],_0x20231e=this['_transformService']['transformMutationsWithChangeset'](_0x1ddf19,_0x3b5a9d);if(!g[_0x473ac1(0x42f)](_0x20231e))throw _0x20231e['error'];const _0x10731a=_0x20231e['m2Prime'][0x0][_0x473ac1(0x344)]['textRanges'];Array[_0x473ac1(0x3d6)](_0x10731a)&&_0x10731a[_0x473ac1(0x2d6)]&&_0xadb0aa[_0x473ac1(0x25c)](_0x10731a,{'unitId':_0x29b586,'subUnitId':_0x29b586},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x131176(0x24c)])),Pe(0x1,g[_0x131176(0x3f6)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x4e5a35,_0x459ebb,_0x39ccd6,_0x418cf5)=>{const _0x27d91e=_0x131176;for(var _0x1de8e6=_0x418cf5>0x1?void 0x0:_0x418cf5?qt(_0x459ebb,_0x39ccd6):_0x459ebb,_0x34ee72=_0x4e5a35[_0x27d91e(0x2d6)]-0x1,_0x204f9b;_0x34ee72>=0x0;_0x34ee72--)(_0x204f9b=_0x4e5a35[_0x34ee72])&&(_0x1de8e6=_0x204f9b(_0x1de8e6)||_0x1de8e6);return _0x1de8e6;},N=(_0x941bbf,_0x559bec)=>(_0x1b9882,_0x16ef40)=>_0x559bec(_0x1b9882,_0x16ef40,_0x941bbf);let ie=class extends a[_0x131176(0x2fe)]{constructor(_0x57393e,_0x5c99fe,_0x3001af,_0x3b0263,_0x1d0143,_0x547f2f,_0x15311b,_0x421ed3){const _0x3279f6=_0x131176;super(),_(this,_0x3279f6(0x44c),new I[(_0x3279f6(0x3ac))](u['CollaborationStatus'][_0x3279f6(0x491)])),(this[_0x3279f6(0x32c)]=_0x57393e,this[_0x3279f6(0x3f3)]=_0x5c99fe,this[_0x3279f6(0x4a1)]=_0x3001af,this[_0x3279f6(0x3b2)]=_0x3b0263,this[_0x3279f6(0x449)]=_0x1d0143,this[_0x3279f6(0x4a8)]=_0x547f2f,this[_0x3279f6(0x370)]=_0x15311b,this[_0x3279f6(0x2d5)]=_0x421ed3,this[_0x3279f6(0x2a0)]());}[_0x131176(0x2a0)](){const _0x3c5a66=_0x131176;this[_0x3c5a66(0x2c7)](this['_collaborationController'][_0x3c5a66(0x43e)][_0x3c5a66(0x2da)](_0x1d74e2=>{const _0x4f129f=_0x3c5a66,_0x545853=this[_0x4f129f(0x32c)][_0x4f129f(0x456)][_0x4f129f(0x2da)](_0x50ef0d=>{const _0x44e7de=_0x4f129f;if(_0x50ef0d==null)return;const {unitId:_0x2d3137,redoState:_0x3bf491,commandId:_0x2094b4}=_0x50ef0d;if(_0x2d3137!==_0x1d74e2[_0x44e7de(0x278)])return;const _0x277052={'id':_0x2094b4,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x2d3137,'actions':_0x3bf491[_0x44e7de(0x399)],'textRanges':null}};_0x1d74e2[_0x44e7de(0x285)](_0x277052);});if(_0x1d74e2[_0x4f129f(0x2c7)](_0x545853),_0x1d74e2 instanceof u['DocCollaborationEntity']){const _0x2203ab={'onTransformIME':_0x526963=>this[_0x4f129f(0x4a1)][_0x4f129f(0x40b)](_0x526963),'onTransformState':_0x2144ef=>this[_0x4f129f(0x3b2)]['transformStateCache'](_0x2144ef),'onTransformSelections':_0x2e5739=>this[_0x4f129f(0x449)][_0x4f129f(0x478)](_0x2e5739),'onSyncEditingCollabCursor':_0x1e1f7d=>this[_0x4f129f(0x4a8)]['syncEditingCollabCursor'](_0x1e1f7d),'onTransformRemoteChangesetByIMECache':_0xa761c8=>this[_0x4f129f(0x4a1)][_0x4f129f(0x262)](_0xa761c8),'onTransformRemoteChangesetByStateCache':_0x1754f2=>this[_0x4f129f(0x3b2)][_0x4f129f(0x262)](_0x1754f2)};_0x1d74e2['addHandlerCallback'](_0x2203ab);}}));}};ie=zt([N(0x0,a[_0x131176(0x2e8)](T[_0x131176(0x230)])),N(0x1,a[_0x131176(0x2e8)](u[_0x131176(0x358)])),N(0x2,a[_0x131176(0x2e8)](ee)),N(0x3,a[_0x131176(0x2e8)](te)),N(0x4,a[_0x131176(0x2e8)](se)),N(0x5,a[_0x131176(0x2e8)](be)),N(0x6,O[_0x131176(0x2a5)]),N(0x7,a[_0x131176(0x2e8)](a[_0x131176(0x3e6)]))],ie);var G=(_0x101fa5=>(_0x101fa5[_0x101fa5['UNDEFINED']=0x0]=_0x131176(0x2f7),_0x101fa5[_0x101fa5['OK']=0x1]='OK',_0x101fa5[_0x101fa5[_0x131176(0x381)]=0x2]=_0x131176(0x381),_0x101fa5[_0x101fa5['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x101fa5[_0x101fa5[_0x131176(0x300)]=0x4]=_0x131176(0x300),_0x101fa5[_0x101fa5[_0x131176(0x3cf)]=0x5]=_0x131176(0x3cf),_0x101fa5[_0x101fa5[_0x131176(0x486)]=0x6]=_0x131176(0x486),_0x101fa5[_0x101fa5[_0x131176(0x452)]=0x7]=_0x131176(0x452),_0x101fa5[_0x101fa5['TOO_MANY_REQUESTS']=0x8]=_0x131176(0x340),_0x101fa5[_0x101fa5[_0x131176(0x2fa)]=0x9]=_0x131176(0x2fa),_0x101fa5[_0x101fa5[_0x131176(0x497)]=0xa]=_0x131176(0x497),_0x101fa5[_0x101fa5['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x131176(0x462),_0x101fa5[_0x101fa5[_0x131176(0x257)]=0xc]=_0x131176(0x257),_0x101fa5[_0x101fa5[_0x131176(0x463)]=0xd]=_0x131176(0x463),_0x101fa5[_0x101fa5[_0x131176(0x46e)]=0xe]=_0x131176(0x46e),_0x101fa5[_0x101fa5['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x131176(0x390),_0x101fa5[_0x101fa5[_0x131176(0x2b5)]=0x10]=_0x131176(0x2b5),_0x101fa5[_0x101fa5[_0x131176(0x487)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x101fa5[_0x101fa5[_0x131176(0x255)]=0x65]='ERROR_AGAIN',_0x101fa5[_0x101fa5['USER_NOT_FOUND']=0xc9]=_0x131176(0x2ed),_0x101fa5[_0x101fa5['USER_IS_ANONYMOUS']=0xca]=_0x131176(0x408),_0x101fa5[_0x101fa5[_0x131176(0x200)]=0x1389]=_0x131176(0x200),_0x101fa5[_0x101fa5[_0x131176(0x2af)]=0x1771]=_0x131176(0x2af),_0x101fa5[_0x101fa5[_0x131176(0x32d)]=0x1772]=_0x131176(0x32d),_0x101fa5[_0x101fa5[_0x131176(0x33e)]=0x1773]=_0x131176(0x33e),_0x101fa5[_0x101fa5['APPLY_REJECT']=0x1b59]=_0x131176(0x244),_0x101fa5[_0x101fa5['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x131176(0x2bd),_0x101fa5[_0x101fa5[_0x131176(0x346)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x101fa5[_0x101fa5[_0x131176(0x236)]=0x1b5c]=_0x131176(0x236),_0x101fa5[_0x101fa5['APPLY_DUPLICATED']=0x1b5d]=_0x131176(0x248),_0x101fa5[_0x101fa5[_0x131176(0x273)]=0x1f41]=_0x131176(0x273),_0x101fa5[_0x101fa5['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x131176(0x288),_0x101fa5[_0x101fa5[_0x131176(0x3af)]=0x232a]=_0x131176(0x3af),_0x101fa5[_0x101fa5[_0x131176(0x435)]=0x232b]=_0x131176(0x435),_0x101fa5[_0x101fa5[_0x131176(0x3cb)]=0x232c]=_0x131176(0x3cb),_0x101fa5[_0x101fa5[_0x131176(0x336)]=0x232d]=_0x131176(0x336),_0x101fa5[_0x101fa5[_0x131176(0x42c)]=0x2711]=_0x131176(0x42c),_0x101fa5[_0x101fa5[_0x131176(0x295)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x101fa5[_0x101fa5[_0x131176(0x35a)]=0x2713]=_0x131176(0x35a),_0x101fa5[_0x101fa5[_0x131176(0x2a4)]=0x2714]=_0x131176(0x2a4),_0x101fa5[_0x101fa5[_0x131176(0x3b1)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x101fa5[_0x101fa5[_0x131176(0x3b8)]=0x271b]=_0x131176(0x3b8),_0x101fa5[_0x101fa5['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x131176(0x311),_0x101fa5[_0x101fa5[_0x131176(0x250)]=0x271d]=_0x131176(0x250),_0x101fa5[_0x101fa5['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x101fa5[_0x101fa5[_0x131176(0x2e7)]=0x271f]=_0x131176(0x2e7),_0x101fa5[_0x101fa5[_0x131176(0x348)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x101fa5[_0x101fa5[_0x131176(0x43b)]=0x2af9]=_0x131176(0x43b),_0x101fa5[_0x101fa5[_0x131176(0x21a)]=0x2ee1]=_0x131176(0x21a),_0x101fa5[_0x101fa5['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x101fa5[_0x101fa5[_0x131176(0x25d)]=0x2ee3]=_0x131176(0x25d),_0x101fa5[_0x101fa5['USER_NOT_INVITED_CODE']=0x2ee4]=_0x131176(0x34d),_0x101fa5[_0x101fa5[_0x131176(0x45e)]=0x2ee5]=_0x131176(0x45e),_0x101fa5[_0x101fa5[_0x131176(0x256)]=0x32c9]=_0x131176(0x256),_0x101fa5[_0x101fa5['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x131176(0x26b),_0x101fa5[_0x101fa5['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x101fa5[_0x101fa5[_0x131176(0x21e)]=0x36b1]=_0x131176(0x21e),_0x101fa5[_0x101fa5[_0x131176(0x302)]=0x36b2]=_0x131176(0x302),_0x101fa5[_0x101fa5['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x101fa5[_0x101fa5['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x131176(0x21b),_0x101fa5[_0x101fa5[_0x131176(0x20f)]=0x36b5]=_0x131176(0x20f),_0x101fa5[_0x101fa5[_0x131176(0x3fa)]=0x36b6]=_0x131176(0x3fa),_0x101fa5[_0x101fa5['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x131176(0x30e),_0x101fa5[_0x101fa5[_0x131176(0x2e6)]=0x36b8]=_0x131176(0x2e6),_0x101fa5[_0x101fa5[_0x131176(0x3b5)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x101fa5[_0x101fa5[_0x131176(0x2c6)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x101fa5[_0x101fa5[_0x131176(0x1dd)]=0x3717]=_0x131176(0x1dd),_0x101fa5[_0x101fa5[_0x131176(0x3d9)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x101fa5[_0x101fa5['REDEMPTION_INVALID_CODE']=0x3a99]=_0x131176(0x2f4),_0x101fa5[_0x101fa5['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x131176(0x444),_0x101fa5[_0x101fa5[_0x131176(0x391)]=0x3a9b]=_0x131176(0x391),_0x101fa5[_0x101fa5[_0x131176(0x4b3)]=0x3a9c]=_0x131176(0x4b3),_0x101fa5[_0x101fa5['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x131176(0x282),_0x101fa5[_0x101fa5[_0x131176(0x2b4)]=0x3a9e]=_0x131176(0x2b4),_0x101fa5[_0x101fa5[_0x131176(0x3ae)]=0x3a9f]=_0x131176(0x3ae),_0x101fa5[_0x101fa5['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x131176(0x343),_0x101fa5[_0x101fa5[_0x131176(0x40f)]=-0x1]=_0x131176(0x40f),_0x101fa5))(G||{});function Jt(_0x55ea1d){const _0xfd8d2=_0x131176;var _0x2c44f9,_0x32634d;const _0x1b13db=(_0x2c44f9=_0x55ea1d[_0xfd8d2(0x429)])==null?void 0x0:_0x2c44f9[_0xfd8d2(0x1f9)],_0x98506d=((_0x32634d=_0x55ea1d[_0xfd8d2(0x429)])==null?void 0x0:_0x32634d[_0xfd8d2(0x24e)])||0x0;return _0x1b13db===B[_0xfd8d2(0x41e)]['START_CALCULATION']&&_0x98506d>0x0;}function Zt(_0x48be14){const _0x31db31=_0x131176;return _0x48be14[_0x31db31(0x48f)]===B[_0x31db31(0x3a6)][_0x31db31(0x28a)];}var Qt=Object[_0x131176(0x40c)],es=(_0x3184cd,_0x2a8783,_0x244f31,_0x3e6a17)=>{const _0xf3b16c=_0x131176;for(var _0x15cb36=_0x3e6a17>0x1?void 0x0:_0x3e6a17?Qt(_0x2a8783,_0x244f31):_0x2a8783,_0x136086=_0x3184cd[_0xf3b16c(0x2d6)]-0x1,_0x3b8c57;_0x136086>=0x0;_0x136086--)(_0x3b8c57=_0x3184cd[_0x136086])&&(_0x15cb36=_0x3b8c57(_0x15cb36)||_0x15cb36);return _0x15cb36;},L=(_0x2e49f7,_0x5c85e1)=>(_0x53cc94,_0xf1b03c)=>_0x5c85e1(_0x53cc94,_0xf1b03c,_0x2e49f7);const ts=_0x131176(0x41f),ss=_0x131176(0x1f5),is='/universer-api/license/formula/limit/done';let ne=class extends a['Disposable']{constructor(_0x2505af,_0x3eb718,_0x4b9773,_0x349887,_0x44165c,_0x1ef7ed,_0x41b386){const _0x4404eb=_0x131176;super(),_(this,_0x4404eb(0x31a),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x4404eb(0x201),0x0),_(this,_0x4404eb(0x1e2),[]),_(this,_0x4404eb(0x49e),0x0),(this[_0x4404eb(0x370)]=_0x2505af,this[_0x4404eb(0x310)]=_0x3eb718,this['_configService']=_0x4b9773,this[_0x4404eb(0x35c)]=_0x349887,this[_0x4404eb(0x2d9)]=_0x44165c,this[_0x4404eb(0x419)]=_0x1ef7ed,this[_0x4404eb(0x2d5)]=_0x41b386,this['_initCommandInterceptor']());}[_0x131176(0x309)](){const _0x456995=_0x131176;this[_0x456995(0x2c7)](this['_commandService']['beforeCommandExecuted']((_0x13c9b6,_0x2c5cc7)=>{const _0x45fdb9=_0x456995;var _0x21b5b1;if(_0x13c9b6['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x33b815=_0x13c9b6['params'];if(!this[_0x45fdb9(0x38f)]((_0x21b5b1=_0x33b815[_0x45fdb9(0x263)])!=null?_0x21b5b1:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x45fdb9(0x38b)](_0x13c9b6,_0x2c5cc7),this[_0x45fdb9(0x450)](),new a[(_0x45fdb9(0x495))]();})),this[_0x456995(0x2c7)](this[_0x456995(0x310)][_0x456995(0x27a)]((_0x592422,_0x5910d0)=>{const _0x59312a=_0x456995;if(_0x592422['id']!==B[_0x59312a(0x3a8)]['id'])return;const _0x327947=_0x592422['params'];if(Jt(_0x327947)){const _0x44c619=a[_0x59312a(0x206)]();this[_0x59312a(0x1e2)][_0x59312a(0x1df)](_0x44c619),this[_0x59312a(0x37c)](_0x44c619);}else{if(Zt(_0x327947)&&this[_0x59312a(0x1e2)]['length']>0x0){const _0x21fd0e=this[_0x59312a(0x1e2)][_0x59312a(0x2f5)]();this[_0x59312a(0x4b2)](_0x21fd0e);}}}));}[_0x131176(0x40d)](){const _0x239875=_0x131176;super[_0x239875(0x40d)](),this[_0x239875(0x49b)](),this[_0x239875(0x1e2)]=[],this[_0x239875(0x201)]=0x0,this[_0x239875(0x2cd)]=0x0,this[_0x239875(0x49e)]=0x0;}async[_0x131176(0x38b)](_0x4bd3bf,_0x4cab03){const _0xbf0ad=_0x131176;for(let _0x262480=0x0;_0x262480<0x1e;_0x262480++)try{if(await this['_getFormulaLimitStatus'](),this[_0xbf0ad(0x2fb)]()){this['_applyCommand'](_0x4bd3bf,_0x4cab03),this['_messageService'][_0xbf0ad(0x243)]({'content':this[_0xbf0ad(0x2d5)]['t'](_0xbf0ad(0x3bd)),'type':p[_0xbf0ad(0x43d)][_0xbf0ad(0x334)]});return;}await new Promise(_0x25fbd3=>{const _0xb881ab=_0xbf0ad;this[_0xb881ab(0x31a)]=window[_0xb881ab(0x3de)](_0x25fbd3,0x3e8);});}catch(_0xb1e4d9){this[_0xbf0ad(0x419)][_0xbf0ad(0x3c3)](_0xb1e4d9);}this[_0xbf0ad(0x370)][_0xbf0ad(0x243)]({'content':this[_0xbf0ad(0x2d5)]['t'](_0xbf0ad(0x26c)),'type':p[_0xbf0ad(0x43d)][_0xbf0ad(0x333)]});}[_0x131176(0x1db)](_0x59f6ef,_0x30261d){const _0x14a01b=_0x131176;try{this[_0x14a01b(0x310)][_0x14a01b(0x2bc)](_0x59f6ef['id'],_0x59f6ef['params'],_0x30261d);}catch(_0x435d79){this[_0x14a01b(0x419)][_0x14a01b(0x3c3)](_0x435d79);}}[_0x131176(0x49a)](_0x28807c,_0x10a887){const _0x25bc08=_0x131176;_0x10a887<this[_0x25bc08(0x49e)]||(this['_lastResponseTimestamp']=_0x10a887,this[_0x25bc08(0x2cd)]=Number['parseInt'](_0x28807c[_0x25bc08(0x471)]),this[_0x25bc08(0x201)]=Number[_0x25bc08(0x490)](_0x28807c[_0x25bc08(0x1f7)]));}async[_0x131176(0x37c)](_0x1f637e){const _0x1e442f=_0x131176;var _0x3ae7e3,_0x11fb6e;const _0x515fc2=Date[_0x1e442f(0x2fd)]();try{const _0x2d0043=((_0x3ae7e3=this[_0x1e442f(0x271)]['getConfig'](u[_0x1e442f(0x446)]))==null?void 0x0:_0x3ae7e3[_0x1e442f(0x24d)])||ss,_0xe27608=(await this['_httpService'][_0x1e442f(0x2f9)](_0x2d0043,{'body':JSON['stringify']({'taskId':_0x1f637e})}))['body'];if(((_0x11fb6e=_0xe27608[_0x1e442f(0x3c3)])==null?void 0x0:_0x11fb6e[_0x1e442f(0x307)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0xe27608['limitInfo'],_0x515fc2);}catch(_0x4e38df){this['_logService']['error'](_0x4e38df);}}async[_0x131176(0x276)](_0x5d3bd6){const _0x1fbe27=_0x131176;var _0x4b5bc9,_0xa020f3;const _0xfe42ef=Date['now']();try{const _0x2d198f=((_0x4b5bc9=this['_configService'][_0x1fbe27(0x239)](u[_0x1fbe27(0x446)]))==null?void 0x0:_0x4b5bc9[_0x1fbe27(0x1ea)])||ts,_0x273dce=_0x5d3bd6?_0x2d198f+_0x1fbe27(0x323)+encodeURIComponent(_0x5d3bd6):_0x2d198f,_0x4edc6a=(await this['_httpService'][_0x1fbe27(0x1fe)](_0x273dce))[_0x1fbe27(0x266)];if(((_0xa020f3=_0x4edc6a[_0x1fbe27(0x3c3)])==null?void 0x0:_0xa020f3[_0x1fbe27(0x307)])!==G['OK'])return;this[_0x1fbe27(0x49a)](_0x4edc6a['limitInfo'],_0xfe42ef);}catch(_0x1c175a){this[_0x1fbe27(0x419)]['error'](_0x1c175a);}}async[_0x131176(0x4b2)](_0x5f4b45){const _0x3b3518=_0x131176;var _0x348712,_0x1737b5;const _0x181909=Date[_0x3b3518(0x2fd)]();try{const _0x4c477c=((_0x348712=this[_0x3b3518(0x271)][_0x3b3518(0x239)](u[_0x3b3518(0x446)]))==null?void 0x0:_0x348712['releaseFormulaLimitUrl'])||is,_0x3eb8ba=(await this[_0x3b3518(0x35c)]['post'](_0x4c477c,{'body':JSON['stringify']({'taskId':_0x5f4b45})}))[_0x3b3518(0x266)];if(((_0x1737b5=_0x3eb8ba['error'])==null?void 0x0:_0x1737b5[_0x3b3518(0x307)])!==G['OK'])return;this[_0x3b3518(0x49a)](_0x3eb8ba[_0x3b3518(0x373)],_0x181909);}catch(_0x206a2b){this['_logService']['error'](_0x206a2b);}}[_0x131176(0x2fb)](){const _0x7728b3=_0x131176;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x7728b3(0x2cd)]-this['_currentUsage']>0x0;}[_0x131176(0x49b)](){const _0x38e4b1=_0x131176;this[_0x38e4b1(0x31a)]&&(clearTimeout(this[_0x38e4b1(0x31a)]),this[_0x38e4b1(0x31a)]=null);}[_0x131176(0x450)](){const _0xfbb606=_0x131176;this[_0xfbb606(0x370)][_0xfbb606(0x243)]({'content':this[_0xfbb606(0x2d5)]['t'](_0xfbb606(0x31d)),'type':p[_0xfbb606(0x43d)][_0xfbb606(0x221)]});}['_hasFormulaInDirtyRanges'](_0x4ca3a9){const _0x27ec82=_0x131176;for(const _0x4761ae of _0x4ca3a9){const {unitId:_0x7d3e9b,sheetId:_0x4af71c,range:_0x3e092c}=_0x4761ae,_0x5a7001=this[_0x27ec82(0x2d9)][_0x27ec82(0x329)](_0x7d3e9b);if(!_0x5a7001)continue;const _0x161977=_0x5a7001['getSheetBySheetId'](_0x4af71c);if(!_0x161977)continue;const _0x51ae39=_0x161977[_0x27ec82(0x4af)]();for(let _0x5833f8=_0x3e092c['startRow'];_0x5833f8<=_0x3e092c['endRow'];_0x5833f8++)for(let _0x38fa73=_0x3e092c[_0x27ec82(0x42a)];_0x38fa73<=_0x3e092c['endColumn'];_0x38fa73++){const _0x21d02a=_0x51ae39['getValue'](_0x5833f8,_0x38fa73);if(_0x21d02a&&(a['isFormulaString'](_0x21d02a['f'])||a['isFormulaId'](_0x21d02a['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x131176(0x2e8)](O[_0x131176(0x2a5)])),L(0x1,a[_0x131176(0x3b3)]),L(0x2,a[_0x131176(0x1e7)]),L(0x3,a[_0x131176(0x2e8)](x['HTTPService'])),L(0x4,a[_0x131176(0x36d)]),L(0x5,a['ILogService']),L(0x6,a[_0x131176(0x2e8)](a[_0x131176(0x3e6)]))],ne);var ns=Object[_0x131176(0x40c)],rs=(_0x2a3e84,_0x41cb2b,_0x2948ef,_0x346ea5)=>{const _0x1045a1=_0x131176;for(var _0x26c0cf=_0x346ea5>0x1?void 0x0:_0x346ea5?ns(_0x41cb2b,_0x2948ef):_0x41cb2b,_0x562716=_0x2a3e84[_0x1045a1(0x2d6)]-0x1,_0x560bb2;_0x562716>=0x0;_0x562716--)(_0x560bb2=_0x2a3e84[_0x562716])&&(_0x26c0cf=_0x560bb2(_0x26c0cf)||_0x26c0cf);return _0x26c0cf;},Se=(_0x150d13,_0x5579a1)=>(_0x4a3d75,_0x3dba4d)=>_0x5579a1(_0x4a3d75,_0x3dba4d,_0x150d13);let Te=class extends a[_0x131176(0x2fe)]{constructor(_0x2c354e,_0x1fb6be,_0x16fa07){const _0x3e7966=_0x131176;super(),_(this,_0x3e7966(0x3c7),new Map()),_(this,_0x3e7966(0x499),new Map()),_(this,_0x3e7966(0x48a),!0x1),(this[_0x3e7966(0x271)]=_0x2c354e,this[_0x3e7966(0x265)]=_0x1fb6be,this[_0x3e7966(0x269)]=_0x16fa07);}[_0x131176(0x475)](){const _0x4df662=_0x131176;this[_0x4df662(0x48a)]=!0x0;}[_0x131176(0x422)](){const _0x2214bd=_0x131176;this[_0x2214bd(0x48a)]=!0x1;}get[_0x131176(0x252)](){const _0xc6d86f=_0x131176;return this[_0xc6d86f(0x499)];}['dispose'](){const _0x57245b=_0x131176;this[_0x57245b(0x437)]()[_0x57245b(0x4ab)](()=>super[_0x57245b(0x40d)]());}async[_0x131176(0x476)](_0x64dbf2){const _0x497997=_0x131176;return this[_0x497997(0x48a)]?null:this[_0x497997(0x265)][_0x497997(0x3ec)](u[_0x497997(0x337)](_0x64dbf2));}async[_0x131176(0x33a)](_0x1c0050,_0x52d4eb){const _0xd84632=_0x131176;return!!this[_0xd84632(0x265)]['setItem'](_0x1c0050,_0x52d4eb);}['updateOfflineData'](_0x358379,_0x8332fe,_0x5b4eb7,_0x3d3322){const _0xdbcf25=_0x131176,_0x275cbc=this['_revisionService'][_0xdbcf25(0x451)](_0x358379);this[_0xdbcf25(0x3c7)][_0xdbcf25(0x3d1)](_0x358379,{'unitID':_0x358379,'type':_0x8332fe,'awaitingChangeset':_0x5b4eb7,'mutations':_0x3d3322,'rev':_0x275cbc}),this[_0xdbcf25(0x499)]['has'](_0x358379)||this[_0xdbcf25(0x377)](_0x358379);}[_0x131176(0x377)](_0xa4c0a){const _0x36276f=_0x131176,_0x2e319b=this['_getSaveTimeout']();_0x2e319b===0x0?this[_0x36276f(0x259)](_0xa4c0a):this[_0x36276f(0x499)][_0x36276f(0x3d1)](_0xa4c0a,setTimeout(()=>this[_0x36276f(0x259)](_0xa4c0a),_0x2e319b));}[_0x131176(0x401)](){const _0x49e196=_0x131176;var _0xf77e1a;return(_0xf77e1a=this[_0x49e196(0x271)]['getConfig'](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0xf77e1a:u['LOCAL_CACHE_INTERVAL'];}[_0x131176(0x259)](_0x59521a){const _0x54ab6a=_0x131176,_0x53ef32=this[_0x54ab6a(0x499)][_0x54ab6a(0x1fe)](_0x59521a);return _0x53ef32!==void 0x0&&window[_0x54ab6a(0x39f)](_0x53ef32),this[_0x54ab6a(0x265)][_0x54ab6a(0x2c8)](u['getLocalCacheKey'](_0x59521a),this[_0x54ab6a(0x3c7)][_0x54ab6a(0x1fe)](_0x59521a))[_0x54ab6a(0x4ab)](()=>this[_0x54ab6a(0x499)][_0x54ab6a(0x289)](_0x59521a));}async[_0x131176(0x437)](){const _0x5ee840=[];this['_saveTaskMap']['forEach']((_0x3eece5,_0x1a0828)=>{const _0x100351=_0xd4c9;window[_0x100351(0x39f)](_0x3eece5),_0x5ee840['push'](this[_0x100351(0x259)](_0x1a0828)['then'](()=>{const _0x527bba=_0x100351;this[_0x527bba(0x499)][_0x527bba(0x289)](_0x1a0828);}));}),await Promise['all'](_0x5ee840);}};Te=rs([Se(0x0,a[_0x131176(0x1e7)]),Se(0x1,a[_0x131176(0x204)]),Se(0x2,a['Inject'](g[_0x131176(0x23f)]))],Te);class ke extends a['RxDisposable']{constructor(){const _0x2c59e7=_0x131176;super(),_(this,_0x2c59e7(0x441)),this['urlChange$']=I[_0x2c59e7(0x32b)](window,_0x2c59e7(0x306))[_0x2c59e7(0x465)](I[_0x2c59e7(0x208)](this['dispose$']),I[_0x2c59e7(0x3f8)](0x1),I[_0x2c59e7(0x473)](void 0x0));}[_0x131176(0x1f3)](_0x46625f,_0x4e5ca4,_0x6f1aed=!0x1){const _0x597b1d=_0x131176,_0x39a994=new URL(window[_0x597b1d(0x387)][_0x597b1d(0x27b)]);_0x39a994[_0x597b1d(0x368)]['set'](_0x46625f,_0x4e5ca4),_0x6f1aed?window['history'][_0x597b1d(0x2c4)]('','',_0x39a994[_0x597b1d(0x1e5)]()):window[_0x597b1d(0x1e4)][_0x597b1d(0x29c)]('','',_0x39a994[_0x597b1d(0x1e5)]());}['removeParam'](_0x5aedba,_0x41d5b3=!0x1){const _0x351093=_0x131176,_0x319551=new URL(window[_0x351093(0x387)][_0x351093(0x27b)]);_0x319551['searchParams'][_0x351093(0x289)](_0x5aedba),_0x41d5b3?window[_0x351093(0x1e4)][_0x351093(0x2c4)]('','',_0x319551[_0x351093(0x1e5)]()):window[_0x351093(0x1e4)][_0x351093(0x29c)]('','',_0x319551['toString']());}[_0x131176(0x380)](_0x2e2c62){const _0x461159=_0x131176;var _0x5c2616;return(_0x5c2616=new URL(window[_0x461159(0x387)][_0x461159(0x27b)])[_0x461159(0x368)][_0x461159(0x1fe)](_0x2e2c62))!=null?_0x5c2616:void 0x0;}}var os=Object[_0x131176(0x335)],as=Object[_0x131176(0x40c)],cs=(_0x285062,_0x25c0e4,_0x5d6d9b)=>_0x25c0e4 in _0x285062?os(_0x285062,_0x25c0e4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d6d9b}):_0x285062[_0x25c0e4]=_0x5d6d9b,ls=(_0x123dce,_0x105f30,_0x5deb4f,_0x350947)=>{for(var _0x5a851e=_0x350947>0x1?void 0x0:_0x350947?as(_0x105f30,_0x5deb4f):_0x105f30,_0x4733bd=_0x123dce['length']-0x1,_0xc25cc5;_0x4733bd>=0x0;_0x4733bd--)(_0xc25cc5=_0x123dce[_0x4733bd])&&(_0x5a851e=_0xc25cc5(_0x5a851e)||_0x5a851e);return _0x5a851e;},de=(_0x48ff1d,_0x47bf7f)=>(_0x562c3a,_0x399ea7)=>_0x47bf7f(_0x562c3a,_0x399ea7,_0x48ff1d),_s=(_0x3cacc2,_0x93cfb,_0x3be3fb)=>cs(_0x3cacc2,_0x93cfb+'',_0x3be3fb);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x131176(0x24b)]=class extends a[_0x131176(0x3ff)]{constructor(_0x163a61=Me,_0x29ff4a,_0x155b31,_0x14bb61){const _0x6b4113=_0x131176;super(),this[_0x6b4113(0x477)]=_0x163a61,this[_0x6b4113(0x37e)]=_0x29ff4a,this['_injector']=_0x155b31,this['_configService']=_0x14bb61;const {..._0x36fc57}=a['merge']({},Me,this[_0x6b4113(0x477)]);this[_0x6b4113(0x271)][_0x6b4113(0x353)](Yt,_0x36fc57);}[_0x131176(0x47a)](){const _0x315131=_0x131176;this[_0x315131(0x4a2)](),this[_0x315131(0x372)]();}[_0x131176(0x364)](){this['_registerRenderDependencies']();}[_0x131176(0x4a2)](){const _0x31e8a1=_0x131176;var _0x53b2ab;const _0x9e6dc3=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x31e8a1(0x459)],{'useClass':x[_0x31e8a1(0x44f)]}],[u[_0x31e8a1(0x388)],{'useClass':Te}],[exports[_0x31e8a1(0x492)]],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this['_config'][_0x31e8a1(0x4a4)]&&_0x9e6dc3[_0x31e8a1(0x1df)]([Q]),a[_0x31e8a1(0x421)](this[_0x31e8a1(0x268)],a[_0x31e8a1(0x39b)](_0x9e6dc3,(_0x53b2ab=this['_config'])==null?void 0x0:_0x53b2ab['override']));}['_registerRenderDependencies'](){const _0x24fc83=_0x131176;this['disposeWithMe'](this[_0x24fc83(0x37e)][_0x24fc83(0x4ae)](a[_0x24fc83(0x2a6)]['UNIVER_DOC'],[Ee])),this[_0x24fc83(0x2c7)](this[_0x24fc83(0x37e)]['registerRenderModule'](a[_0x24fc83(0x2a6)][_0x24fc83(0x469)],[Ce]));}[_0x131176(0x372)](){const _0x5ac777=_0x131176;a[_0x5ac777(0x467)](this['_injector'],[[F],[exports[_0x5ac777(0x492)]],[ie],[Z],[exports[_0x5ac777(0x3be)]],[ne]]),this[_0x5ac777(0x477)][_0x5ac777(0x4a4)]&&a['touchDependencies'](this[_0x5ac777(0x268)],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x131176(0x4a9),hs),exports[_0x131176(0x24b)]=ls([a[_0x131176(0x48e)](u[_0x131176(0x308)]),de(0x1,C['IRenderManagerService']),de(0x2,a[_0x131176(0x2e8)](a[_0x131176(0x24c)])),de(0x3,a[_0x131176(0x1e7)])],exports['UniverCollaborationClientUIPlugin']);var us=Object[_0x131176(0x40c)],Is=(_0x43127b,_0x333d7d,_0x58be38,_0x4d733a)=>{const _0x276bb7=_0x131176;for(var _0x583100=_0x4d733a>0x1?void 0x0:_0x4d733a?us(_0x333d7d,_0x58be38):_0x333d7d,_0x31f407=_0x43127b[_0x276bb7(0x2d6)]-0x1,_0x1e3325;_0x31f407>=0x0;_0x31f407--)(_0x1e3325=_0x43127b[_0x31f407])&&(_0x583100=_0x1e3325(_0x583100)||_0x583100);return _0x583100;},W=(_0x589483,_0x5f5bf9)=>(_0x4585ed,_0x14be17)=>_0x5f5bf9(_0x4585ed,_0x14be17,_0x589483);exports[_0x131176(0x46c)]=class extends u[_0x131176(0x3f5)]{constructor(_0x2f5a75,_0x241834,_0x545339,_0x26057f,_0x587a3a){super(_0x2f5a75,_0x241834,_0x545339,_0x26057f,_0x587a3a);}async[_0x131176(0x34b)](_0x444ab7){const _0x228d8e=_0x131176,_0x14a4b5=await this[_0x228d8e(0x3bc)](),_0x2b58ca=this['_createSocketURL'](_0x444ab7,_0x14a4b5);return this[_0x228d8e(0x34f)](_0x2b58ca);}[_0x131176(0x480)](_0x2f74ca,_0x58978d){const _0x3e00c6=_0x131176,_0x541319=typeof window>'u'?new URL(_0x2f74ca):new URL(_0x2f74ca,window[_0x3e00c6(0x387)][_0x3e00c6(0x2a3)]);_0x541319[_0x3e00c6(0x368)][_0x3e00c6(0x3d1)](_0x3e00c6(0x47b),_0x58978d);const _0x4b82cb=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3e00c6(0x387)]['search']);return _0x4b82cb[_0x3e00c6(0x1fe)](_0x3e00c6(0x2b0))&&_0x541319[_0x3e00c6(0x368)][_0x3e00c6(0x3d1)](_0x3e00c6(0x2b0),_0x4b82cb['get'](_0x3e00c6(0x2b0))),_0x541319[_0x3e00c6(0x1e5)]();}async[_0x131176(0x3bc)](){const _0x18a694=_0x131176;var _0x3303ae,_0x455695,_0x52f83d;const _0x25ae29=this[_0x18a694(0x271)][_0x18a694(0x239)](u[_0x18a694(0x446)]),_0x3967a5=(_0x3303ae=_0x25ae29==null?void 0x0:_0x25ae29[_0x18a694(0x2bf)])!=null?_0x3303ae:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x52f83d=(_0x455695=(await this[_0x18a694(0x35c)][_0x18a694(0x1fe)](_0x3967a5,{'headers':{'Content-Type':_0x18a694(0x2d3)}}))[_0x18a694(0x266)])==null?void 0x0:_0x455695['ticket'])!=null?_0x52f83d:'';}},exports['BrowserCollaborationSocketService']=Is([W(0x0,a[_0x131176(0x2e8)](a['Injector'])),W(0x1,a[_0x131176(0x2e8)](x['HTTPService'])),W(0x2,a[_0x131176(0x1e7)]),W(0x3,a[_0x131176(0x493)]),W(0x4,g[_0x131176(0x3f7)])],exports[_0x131176(0x46c)]);var Ss=Object[_0x131176(0x40c)],ds=(_0x2b2ccc,_0x216480,_0x1a0208,_0xe67bea)=>{for(var _0x128976=_0xe67bea>0x1?void 0x0:_0xe67bea?Ss(_0x216480,_0x1a0208):_0x216480,_0x2f9dd4=_0x2b2ccc['length']-0x1,_0x119771;_0x2f9dd4>=0x0;_0x2f9dd4--)(_0x119771=_0x2b2ccc[_0x2f9dd4])&&(_0x128976=_0x119771(_0x128976)||_0x128976);return _0x128976;},fe=(_0x5d7edc,_0x12e35a)=>(_0x5ec5d8,_0x4f362d)=>_0x12e35a(_0x5ec5d8,_0x4f362d,_0x5d7edc);exports[_0x131176(0x223)]=class extends a['Disposable']{constructor(_0x3df36d,_0x1cdaee,_0x4def24){const _0x5b38bb=_0x131176;super(),this['_instanceService']=_0x3df36d,this[_0x5b38bb(0x35c)]=_0x1cdaee,this['_configService']=_0x4def24;}async[_0x131176(0x39e)](_0x467aff,_0x13ee4c,_0x937ce6,..._0xf96a09){const _0xd1c064=_0x131176;var _0x4f7b42,_0x2bf883,_0x160231,_0x2278e6;const _0x402471=this[_0xd1c064(0x48b)][_0xd1c064(0x2a2)]();if(!_0x402471)throw new Error(_0xd1c064(0x215));const _0x3ebe36=((_0x4f7b42=this[_0xd1c064(0x271)]['getConfig'](u[_0xd1c064(0x22b)]))!=null?_0x4f7b42:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x467aff+'/run/'+_0x13ee4c,_0x56a9a8=new URL(window['location'][_0xd1c064(0x27b)]),_0x257ad5={'scriptId':_0x467aff,'runId':(_0x2bf883=_0x56a9a8[_0xd1c064(0x368)]['get'](_0xd1c064(0x2b0)))!=null?_0x2bf883:'','function':_0x13ee4c,'unitId':_0x402471['getUnitId'](),'argsOfFunction':JSON[_0xd1c064(0x31c)](_0xf96a09),'invokeId':(_0x160231=_0x937ce6[_0xd1c064(0x3dc)])!=null?_0x160231:'','executionId':(_0x2278e6=_0x937ce6[_0xd1c064(0x317)])!=null?_0x2278e6:''};try{const _0x59a3fb=await this[_0xd1c064(0x35c)]['post'](_0x3ebe36,{'body':_0x257ad5});return _0x59a3fb[_0xd1c064(0x266)]['error']&&_0x59a3fb[_0xd1c064(0x266)][_0xd1c064(0x3c3)]['code']!==G['OK']?_0xd1c064(0x356):_0x59a3fb[_0xd1c064(0x266)][_0xd1c064(0x2e9)];}catch{return _0xd1c064(0x356);}}},exports['RemoteUniscriptService']=ds([fe(0x0,a[_0x131176(0x36d)]),fe(0x1,a[_0x131176(0x2e8)](x[_0x131176(0x20b)])),fe(0x2,a['IConfigService'])],exports[_0x131176(0x223)]);const we=0x7530,ye=_0x131176(0x2ff);class fs extends a[_0x131176(0x2fe)]{constructor(){const _0x57eca3=_0x131176;super(),_(this,_0x57eca3(0x38d),a[_0x57eca3(0x206)]()),_(this,_0x57eca3(0x320),new Set()),_(this,_0x57eca3(0x29f),new Map()),_(this,_0x57eca3(0x393),null),_(this,_0x57eca3(0x238),new Map()),_(this,_0x57eca3(0x324),new Map()),this['_init']();}[_0x131176(0x40d)](){const _0x1e90fd=_0x131176;super['dispose'](),this['_clearOtherTimers'][_0x1e90fd(0x24a)]((_0x3ab266,_0x24bdb5)=>this['_removeClearOtherTimer'](_0x24bdb5)),this[_0x1e90fd(0x393)]&&window[_0x1e90fd(0x20e)](this[_0x1e90fd(0x393)]);}[_0x131176(0x1fb)](_0x303e2c){const _0x56ea6c=_0x131176;return this[_0x56ea6c(0x30c)](_0x303e2c)[_0x56ea6c(0x465)](I['distinctUntilChanged']());}[_0x131176(0x374)](_0x4c8001){const _0x303d41=_0x131176;this[_0x303d41(0x320)][_0x303d41(0x2d2)]===0x0&&this['_scheduleHeartbeat'](),this[_0x303d41(0x320)][_0x303d41(0x227)](_0x4c8001),this[_0x303d41(0x2e3)]({'type':0x0,'memberID':this[_0x303d41(0x38d)],'unitIDs':[_0x4c8001],'isForwarded':!0x1});}[_0x131176(0x3c5)](_0x324169){const _0x36dd7e=_0x131176;this[_0x36dd7e(0x320)][_0x36dd7e(0x289)](_0x324169),this[_0x36dd7e(0x320)][_0x36dd7e(0x2d2)]===0x0&&this[_0x36dd7e(0x393)]&&window[_0x36dd7e(0x20e)](this['_heartbeatTimer']);}[_0x131176(0x494)](){const _0x2ab966=_0x131176;this['disposeWithMe'](a['toDisposable'](I[_0x2ab966(0x32b)](window,_0x2ab966(0x2cc))[_0x2ab966(0x2da)](_0x3b95b8=>{const _0x3646d5=_0x2ab966;if(_0x3b95b8['key']!==ye||!_0x3b95b8['newValue'])return;const _0x438dc6=JSON[_0x3646d5(0x363)](_0x3b95b8[_0x3646d5(0x30a)]);this[_0x3646d5(0x23c)](_0x438dc6);}))),window[_0x2ab966(0x347)](_0x2ab966(0x1e9),()=>this[_0x2ab966(0x2e3)]({'type':0x1,'memberID':this[_0x2ab966(0x38d)],'unitIDs':Array[_0x2ab966(0x222)](this[_0x2ab966(0x320)])}));}['_handleEvent'](_0x532e8e){const _0x4c2ad6=_0x131176;switch(_0x532e8e['type']){case 0x0:this[_0x4c2ad6(0x464)](_0x532e8e);break;case 0x1:this[_0x4c2ad6(0x2ee)](_0x532e8e);break;case 0x2:this[_0x4c2ad6(0x455)](_0x532e8e);break;}}[_0x131176(0x464)](_0x2e95e0){const _0xb455c6=_0x131176,{unitIDs:_0x40c506,memberID:_0x5ec63d,isForwarded:_0x5c63b4}=_0x2e95e0;_0x40c506[_0xb455c6(0x24a)](_0x14276a=>{const _0x173594=_0xb455c6;if(!_0x5c63b4&&this[_0x173594(0x29f)]['has'](_0x14276a)&&this['_ensureSubject'](_0x14276a)[_0x173594(0x23b)](u[_0x173594(0x3fc)][_0x173594(0x3fe)]),!this['_unitOnClients'][_0x173594(0x48d)](_0x14276a)||!this[_0x173594(0x29f)][_0x173594(0x1fe)](_0x14276a)[_0x173594(0x48d)](_0x5ec63d)){const _0x573792=this['_unitOnClients'][_0x173594(0x1fe)](_0x14276a)||new Set();_0x573792[_0x173594(0x227)](_0x5ec63d),this[_0x173594(0x29f)][_0x173594(0x3d1)](_0x14276a,_0x573792),this[_0x173594(0x22c)](_0x5ec63d);}}),_0x5c63b4||this[_0xb455c6(0x2e3)]({'type':0x0,'memberID':this[_0xb455c6(0x38d)],'unitIDs':[...this[_0xb455c6(0x320)]],'isForwarded':!0x0});}[_0x131176(0x22c)](_0x1cca57){const _0x2f3c08=_0x131176;this[_0x2f3c08(0x360)](_0x1cca57);const _0x198607=window[_0x2f3c08(0x3de)](()=>{const _0x5eae36=_0x2f3c08;this[_0x5eae36(0x29f)][_0x5eae36(0x24a)](_0x548364=>{const _0x30fe25=_0x5eae36;_0x548364[_0x30fe25(0x289)](_0x1cca57);});},we*0x2);this[_0x2f3c08(0x238)][_0x2f3c08(0x3d1)](_0x1cca57,_0x198607);}['_removeClearOtherTimer'](_0x1fa957){const _0x125769=_0x131176;if(this[_0x125769(0x238)][_0x125769(0x48d)](_0x1fa957)){const _0x466b9b=this['_clearOtherTimers'][_0x125769(0x1fe)](_0x1fa957);_0x466b9b&&window[_0x125769(0x39f)](_0x466b9b),this[_0x125769(0x238)][_0x125769(0x3d1)](_0x1fa957,null);}}['_handleLeaveEvent'](_0x1b4154){const _0x5b9ef1=_0x131176,{memberID:_0x19d663,unitIDs:_0x4f7078}=_0x1b4154;_0x4f7078[_0x5b9ef1(0x24a)](_0x191a1c=>{const _0x3b2fa3=_0x5b9ef1;var _0x5c0fce;const _0x52ced5=this[_0x3b2fa3(0x29f)][_0x3b2fa3(0x1fe)](_0x191a1c);_0x52ced5&&(_0x52ced5['delete'](_0x19d663),(_0x5c0fce=this[_0x3b2fa3(0x30c)](_0x191a1c))==null||_0x5c0fce[_0x3b2fa3(0x23b)](_0x52ced5[_0x3b2fa3(0x2d2)]===0x0?u[_0x3b2fa3(0x3fc)]['NO_OTHER_CLIENTS_EDITING']:u[_0x3b2fa3(0x3fc)]['OTHER_CLIENTS_EDITING']));}),this[_0x5b9ef1(0x360)](_0x19d663);}[_0x131176(0x455)](_0x46d377){const _0x16178f=_0x131176;this[_0x16178f(0x22c)](_0x46d377[_0x16178f(0x371)]);}[_0x131176(0x2e3)](_0x2be0e5){const _0x1ab178=_0x131176;localStorage[_0x1ab178(0x2c8)](ye,JSON[_0x1ab178(0x31c)](_0x2be0e5));}['_scheduleHeartbeat'](){const _0xf5d068=_0x131176;this[_0xf5d068(0x393)]=window['setInterval'](()=>{const _0x48c3e3=_0xf5d068;this[_0x48c3e3(0x2e3)]({'type':0x2,'memberID':this[_0x48c3e3(0x38d)]});},we);}[_0x131176(0x30c)](_0x30a12c){const _0x46f5d6=_0x131176;return this['_unitStatus'][_0x46f5d6(0x48d)](_0x30a12c)||this[_0x46f5d6(0x324)]['set'](_0x30a12c,new I[(_0x46f5d6(0x3ac))](u[_0x46f5d6(0x3fc)][_0x46f5d6(0x2c2)])),this[_0x46f5d6(0x324)][_0x46f5d6(0x1fe)](_0x30a12c);}}exports[_0x131176(0x354)]=Oe,exports[_0x131176(0x2de)]=je,exports[_0x131176(0x3a7)]=fs,exports['WebURLService']=ke;
1
+ 'use strict';const _0x4b8fc7=_0x3f9c;(function(_0x4e158d,_0x544cc1){const _0x313814=_0x3f9c,_0x30c865=_0x4e158d();while(!![]){try{const _0x9c8b36=-parseInt(_0x313814(0x1ec))/0x1+-parseInt(_0x313814(0x8c))/0x2+-parseInt(_0x313814(0xfb))/0x3*(parseInt(_0x313814(0x18f))/0x4)+-parseInt(_0x313814(0x1ed))/0x5*(-parseInt(_0x313814(0x29e))/0x6)+parseInt(_0x313814(0x9d))/0x7*(-parseInt(_0x313814(0x269))/0x8)+parseInt(_0x313814(0x1aa))/0x9*(-parseInt(_0x313814(0x349))/0xa)+-parseInt(_0x313814(0x283))/0xb*(-parseInt(_0x313814(0x27c))/0xc);if(_0x9c8b36===_0x544cc1)break;else _0x30c865['push'](_0x30c865['shift']());}catch(_0xd226dc){_0x30c865['push'](_0x30c865['shift']());}}}(_0x2abb,0x8de27));var Xe=Object[_0x4b8fc7(0x1bf)],Ke=(_0x420b5c,_0x2d4f2e,_0x53bf96)=>_0x2d4f2e in _0x420b5c?Xe(_0x420b5c,_0x2d4f2e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53bf96}):_0x420b5c[_0x2d4f2e]=_0x53bf96,_=(_0x3b40cd,_0x525ccd,_0x153c88)=>Ke(_0x3b40cd,typeof _0x525ccd!=_0x4b8fc7(0x108)?_0x525ccd+'':_0x525ccd,_0x153c88);Object[_0x4b8fc7(0x1bf)](exports,Symbol[_0x4b8fc7(0x211)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x4a4bec,..._0x4d4772}){const _0x50952f=_0x4b8fc7,{icon:_0x58a3ab,id:_0x4d3fdf,className:_0x32708f,extend:_0x5bdffe,..._0x370877}=_0x4d4772,_0x40e693=(_0x50952f(0x290)+_0x4d3fdf+'\x20'+(_0x32708f||''))[_0x50952f(0x11d)](),_0x4e22fe=A[_0x50952f(0xdc)]('_'+Qe());return $e(_0x58a3ab,''+_0x4d3fdf,{'defIds':_0x58a3ab[_0x50952f(0x123)],'idSuffix':_0x4e22fe[_0x50952f(0x2dd)]},{'ref':_0x4a4bec,'className':_0x40e693,..._0x370877},_0x5bdffe);}function $e(_0x167b05,_0x14d7f4,_0x6ba323,_0x4dae66,_0x468f7f){const _0x5cb4ab=_0x4b8fc7;return A[_0x5cb4ab(0x2a5)](_0x167b05[_0x5cb4ab(0x226)],{'key':_0x14d7f4,...Je(_0x167b05,_0x6ba323,_0x468f7f),..._0x4dae66},(Ze(_0x167b05,_0x6ba323)[_0x5cb4ab(0x210)]||[])[_0x5cb4ab(0x13b)]((_0xd85d89,_0xd01e8f)=>$e(_0xd85d89,_0x14d7f4+'-'+_0x167b05[_0x5cb4ab(0x226)]+'-'+_0xd01e8f,_0x6ba323,void 0x0,_0x468f7f)));}function Je(_0x40b301,_0xeca039,_0x4b4909){const _0x1699df=_0x4b8fc7,_0x1bfecc={..._0x40b301[_0x1699df(0x2ce)]};_0x4b4909!=null&&_0x4b4909['colorChannel1']&&_0x1bfecc[_0x1699df(0x97)]===_0x1699df(0x253)&&(_0x1bfecc[_0x1699df(0x97)]=_0x4b4909[_0x1699df(0x253)]),_0x40b301[_0x1699df(0x226)]===_0x1699df(0x184)&&_0x1bfecc['id']&&(_0x1bfecc['id']=_0x1bfecc['id']+_0xeca039[_0x1699df(0x2bf)]),Object[_0x1699df(0x19a)](_0x1bfecc)[_0x1699df(0x7d)](([_0x20436e,_0x39cd6d])=>{const _0x2e5690=_0x1699df;_0x20436e===_0x2e5690(0x184)&&typeof _0x39cd6d==_0x2e5690(0x31a)&&(_0x1bfecc[_0x20436e]=_0x39cd6d[_0x2e5690(0xb6)](/url\(#(.*)\)/,_0x2e5690(0xa9)+_0xeca039[_0x2e5690(0x2bf)]+')'));});const {defIds:_0x357eab}=_0xeca039;return!_0x357eab||_0x357eab[_0x1699df(0x34f)]===0x0||(_0x40b301[_0x1699df(0x226)]===_0x1699df(0x34d)&&_0x1bfecc['xlink:href']&&(_0x1bfecc['xlink:href']=_0x1bfecc[_0x1699df(0xfc)]+_0xeca039[_0x1699df(0x2bf)]),Object['entries'](_0x1bfecc)['forEach'](([_0xd51be,_0x426617])=>{const _0x4a0ecd=_0x1699df;typeof _0x426617==_0x4a0ecd(0x31a)&&(_0x1bfecc[_0xd51be]=_0x426617[_0x4a0ecd(0xb6)](/url\(#(.*)\)/,_0x4a0ecd(0xa9)+_0xeca039['idSuffix']+')'));})),_0x1bfecc;}function Ze(_0x97bd56,_0x5eddaf){const _0x18b30f=_0x4b8fc7;var _0x29c10c;const {defIds:_0xf4cdef}=_0x5eddaf;return!_0xf4cdef||_0xf4cdef['length']===0x0?_0x97bd56:_0x97bd56[_0x18b30f(0x226)]===_0x18b30f(0x355)&&((_0x29c10c=_0x97bd56[_0x18b30f(0x210)])!=null&&_0x29c10c[_0x18b30f(0x34f)])?{..._0x97bd56,'children':_0x97bd56[_0x18b30f(0x210)]['map'](_0x2a0538=>typeof _0x2a0538['attrs']['id']==_0x18b30f(0x31a)&&_0xf4cdef&&_0xf4cdef[_0x18b30f(0x16f)](_0x2a0538[_0x18b30f(0x2ce)]['id'])?{..._0x2a0538,'attrs':{..._0x2a0538[_0x18b30f(0x2ce)],'id':_0x2a0538[_0x18b30f(0x2ce)]['id']+_0x5eddaf[_0x18b30f(0x2bf)]}}:_0x2a0538)}:_0x97bd56;}function Qe(){const _0x5dc41b=_0x4b8fc7;return Math[_0x5dc41b(0xc3)]()[_0x5dc41b(0x320)](0x24)[_0x5dc41b(0x13d)](0x2,0x8);}pe[_0x4b8fc7(0x1ac)]=_0x4b8fc7(0x24b);const et={'tag':'svg','attrs':{'xmlns':_0x4b8fc7(0x116),'fill':_0x4b8fc7(0x1a6),'viewBox':_0x4b8fc7(0x295),'width':_0x4b8fc7(0x183),'height':_0x4b8fc7(0x183)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4b8fc7(0x2f9),'attrs':{'stroke':'currentColor','d':_0x4b8fc7(0x205),'strokeLinecap':'round','strokeLinejoin':_0x4b8fc7(0xed),'strokeWidth':1.2}}]},{'tag':_0x4b8fc7(0x355),'attrs':{},'children':[{'tag':_0x4b8fc7(0x23d),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4b8fc7(0x2f9),'attrs':{'fill':_0x4b8fc7(0x20c),'d':_0x4b8fc7(0x324)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A[_0x4b8fc7(0x2a2)](function(_0x2bba21,_0x5e27d6){const _0x5b5563=_0x4b8fc7;return A['createElement'](pe,Object[_0x5b5563(0x194)]({},_0x2bba21,{'id':_0x5b5563(0x125),'ref':_0x5e27d6,'icon':et}));});xe['displayName']='OffLineIcon';const tt={'tag':_0x4b8fc7(0x33c),'attrs':{'xmlns':_0x4b8fc7(0x116),'fill':_0x4b8fc7(0x1a6),'viewBox':_0x4b8fc7(0x19d),'width':_0x4b8fc7(0x183),'height':_0x4b8fc7(0x183)},'children':[{'tag':'g','attrs':{'clipPath':_0x4b8fc7(0x140)},'children':[{'tag':_0x4b8fc7(0x2f9),'attrs':{'stroke':_0x4b8fc7(0x143),'d':_0x4b8fc7(0x180),'strokeLinecap':_0x4b8fc7(0xed),'strokeLinejoin':_0x4b8fc7(0xed),'strokeWidth':1.2}}]},{'tag':_0x4b8fc7(0x355),'attrs':{},'children':[{'tag':_0x4b8fc7(0x23d),'attrs':{'id':_0x4b8fc7(0x1b2)},'children':[{'tag':_0x4b8fc7(0x2f9),'attrs':{'fill':_0x4b8fc7(0x20c),'d':_0x4b8fc7(0x324),'transform':_0x4b8fc7(0x121)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A[_0x4b8fc7(0x2a2)](function(_0x12f5dc,_0x585e91){const _0x3677c8=_0x4b8fc7;return A[_0x3677c8(0x2a5)](pe,Object[_0x3677c8(0x194)]({},_0x12f5dc,{'id':_0x3677c8(0x273),'ref':_0x585e91,'icon':tt}));});Be[_0x4b8fc7(0x1ac)]=_0x4b8fc7(0x18c);function st(_0x139867){const _0x35aed0=_0x4b8fc7;switch(_0x139867){case u[_0x35aed0(0x1db)]['OFFLINE']:return _0x35aed0(0x328);case u['CollaborationStatus']['CONFLICT']:return _0x35aed0(0x300);case u[_0x35aed0(0x1db)][_0x35aed0(0x30a)]:return _0x35aed0(0x317);case u[_0x35aed0(0x1db)][_0x35aed0(0x10a)]:return _0x35aed0(0x33b);case u[_0x35aed0(0x1db)][_0x35aed0(0xb9)]:case u[_0x35aed0(0x1db)][_0x35aed0(0x29b)]:return _0x35aed0(0x115);case u[_0x35aed0(0x1db)][_0x35aed0(0x218)]:case u[_0x35aed0(0x1db)]['PENDING']:return'collabStatus.synced';}}function it(_0x5f5062){const _0x1b3361=_0x4b8fc7,{status$:_0x1532e0}=_0x5f5062,_0x44c466=O['useObservable'](_0x1532e0,u[_0x1b3361(0x1db)]['NOT_COLLAB']),_0x22cce0=O['useDependency'](a[_0x1b3361(0x2a0)]),_0x7c2584=O[_0x1b3361(0x90)](u['CollaborationSessionService']),_0x52e89f=_0x44c466!==u[_0x1b3361(0x1db)][_0x1b3361(0xa3)],_0x4dd59f=_0x22cce0['t'](st(_0x44c466)),_0x2706e3=_0x52e89f?M[_0x1b3361(0x31d)](Be,{}):M['jsx'](xe,{}),_0x12430c=A[_0x1b3361(0x30c)](()=>{const _0x4900d1=_0x1b3361;_0x52e89f||_0x7c2584[_0x4900d1(0x33f)]();},[_0x52e89f,_0x7c2584]);function _0x5a4255(){const _0x2f720e=_0x1b3361;return M['jsxs'](_0x2f720e(0x31b),{'className':_0x2f720e(0x2f8),'onClick':_0x12430c,'children':[M['jsx'](_0x2f720e(0x31b),{'className':p[_0x2f720e(0x7b)](_0x2f720e(0x182),{'univer-text-green-500':_0x52e89f,'univer-text-red-500':!_0x52e89f}),'children':_0x2706e3}),M[_0x2f720e(0x31d)](_0x2f720e(0x31b),{'className':_0x2f720e(0x1ce),'children':_0x4dd59f})]});}return _0x52e89f?_0x5a4255():M[_0x1b3361(0x31d)](p[_0x1b3361(0x201)],{'title':_0x22cce0['t'](_0x1b3361(0x160)),'children':_0x5a4255()});}var nt=Object[_0x4b8fc7(0x288)],rt=(_0x251bb7,_0x24897f,_0xdef5cf,_0x59b262)=>{const _0x474bc4=_0x4b8fc7;for(var _0xac202d=_0x59b262>0x1?void 0x0:_0x59b262?nt(_0x24897f,_0xdef5cf):_0x24897f,_0x256d25=_0x251bb7[_0x474bc4(0x34f)]-0x1,_0x253b1c;_0x256d25>=0x0;_0x256d25--)(_0x253b1c=_0x251bb7[_0x256d25])&&(_0xac202d=_0x253b1c(_0xac202d)||_0xac202d);return _0xac202d;},K=(_0x1aba8b,_0x5026c4)=>(_0x16a030,_0x5b9091)=>_0x5026c4(_0x16a030,_0x5b9091,_0x1aba8b);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x4b8fc7(0x1cc)]{constructor(_0x2c0ed4,_0x1051ca,_0x58514c,_0x23c92c){const _0x5c56d2=_0x4b8fc7;super(),_(this,_0x5c56d2(0x206),new I[(_0x5c56d2(0x2ad))](u[_0x5c56d2(0x1db)][_0x5c56d2(0x10a)])),(this['_univerInstanceService']=_0x2c0ed4,this[_0x5c56d2(0x1a4)]=_0x1051ca,this[_0x5c56d2(0x242)]=_0x58514c,this[_0x5c56d2(0x227)]=_0x23c92c,this['_initStatusComponent'](),this[_0x5c56d2(0xe2)]());}[_0x4b8fc7(0xe2)](){const _0x19d869=_0x4b8fc7;this['disposeWithMe'](this[_0x19d869(0x32f)]['focused$'][_0x19d869(0x266)](I[_0x19d869(0x2e4)](()=>{const _0x3c37c6=_0x19d869,_0x4958a9=this['_univerInstanceService'][_0x3c37c6(0x151)]();return _0x4958a9?this[_0x3c37c6(0x242)][_0x3c37c6(0x1e7)](_0x4958a9[_0x3c37c6(0x1f6)]()):I['of'](null);}),I[_0x19d869(0x2e4)](_0x4cb70d=>_0x4cb70d?_0x4cb70d['status$']:I['of'](u[_0x19d869(0x1db)]['NOT_COLLAB'])))['subscribe'](_0x2cde99=>{const _0x1b2b96=_0x19d869;this['_status$'][_0x1b2b96(0x322)](_0x2cde99);}));}[_0x4b8fc7(0x141)](){const _0xd8df9e=_0x4b8fc7;this[_0xd8df9e(0x350)](this[_0xd8df9e(0x227)]['registerComponent'](O['BuiltInUIPart'][_0xd8df9e(0x118)],()=>O[_0xd8df9e(0xeb)](ot({'status$':this[_0xd8df9e(0x206)]['asObservable']()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x4b8fc7(0xec)]),K(0x1,a[_0x4b8fc7(0x2ee)](a[_0x4b8fc7(0x1e4)])),K(0x2,a[_0x4b8fc7(0x2ee)](u[_0x4b8fc7(0x15b)])),K(0x3,O[_0x4b8fc7(0x1f7)])],exports[_0x4b8fc7(0xf2)]);function ot(_0xd5628){const {status$:_0x37ff44}=_0xd5628;return function(){return M['jsx'](it,{'status$':_0x37ff44});};}const Oe=a['createIdentifier'](_0x4b8fc7(0xde));var at=Object[_0x4b8fc7(0x288)],ct=(_0x4d7e89,_0x5adfde,_0x274376,_0x55e886)=>{const _0x4d05bb=_0x4b8fc7;for(var _0x3ed902=_0x55e886>0x1?void 0x0:_0x55e886?at(_0x5adfde,_0x274376):_0x5adfde,_0x4cbd0f=_0x4d7e89[_0x4d05bb(0x34f)]-0x1,_0x2d07dc;_0x4cbd0f>=0x0;_0x4cbd0f--)(_0x2d07dc=_0x4d7e89[_0x4cbd0f])&&(_0x3ed902=_0x2d07dc(_0x3ed902)||_0x3ed902);return _0x3ed902;},Y=(_0x5d58fa,_0x9f2b17)=>(_0x11c671,_0x2899f7)=>_0x9f2b17(_0x11c671,_0x2899f7,_0x5d58fa);exports[_0x4b8fc7(0x136)]=class extends a[_0x4b8fc7(0x312)]{constructor(_0x2aad51,_0x349fde,_0x17f654,_0x116c11,_0x537f49){const _0xda3a0b=_0x4b8fc7;super(),this[_0xda3a0b(0x345)]=_0x2aad51,this[_0xda3a0b(0x284)]=_0x349fde,this['_commandService']=_0x17f654,this['_dataLoaderService']=_0x116c11,_0x537f49?_0x537f49==null||_0x537f49[_0xda3a0b(0x277)]()[_0xda3a0b(0x26a)](()=>this[_0xda3a0b(0x16a)]()):(this[_0xda3a0b(0x284)]['debug']('[CollaborationDataLoaderController]',_0xda3a0b(0x196)),this['_init']());}async[_0x4b8fc7(0x16a)](){const _0x206691=_0x4b8fc7,_0x119956=this[_0x206691(0x345)][_0x206691(0x181)]('unit'),_0x5e64f4=this['_urlService'][_0x206691(0x181)](_0x206691(0x2c3)),_0x53457c=this[_0x206691(0x345)][_0x206691(0x181)](_0x206691(0x1a2));if(!_0x119956||!_0x5e64f4){this[_0x206691(0x284)][_0x206691(0x30b)](_0x206691(0x2e6),_0x206691(0x21b));return;}const _0x538e87=await this[_0x206691(0x130)][_0x206691(0x174)](_0x119956,Number(_0x5e64f4),_0x53457c);_0x538e87&&_0x538e87 instanceof a[_0x206691(0x2e9)]&&this[_0x206691(0x286)](_0x538e87);}async['_setupSubUnitSync'](_0x4855da){const _0x52888c=_0x4b8fc7;await this[_0x52888c(0x2e1)](_0x4855da),_0x4855da[_0x52888c(0x275)][_0x52888c(0x266)](I['takeUntil'](this[_0x52888c(0x29f)]))[_0x52888c(0x304)](_0xd0f1be=>{const _0x4d8883=_0x52888c;_0xd0f1be&&this[_0x4d8883(0x29d)](_0xd0f1be);}),this[_0x52888c(0x345)]['urlChange$']['pipe'](I[_0x52888c(0x351)](this[_0x52888c(0x29f)]))[_0x52888c(0x304)](()=>this[_0x52888c(0x2e1)](_0x4855da));}[_0x4b8fc7(0x29d)](_0x1b37f7,_0x1c5755=!0x1){const _0x2fdaf8=_0x4b8fc7,_0x58d31b=this['_urlService'][_0x2fdaf8(0x181)](_0x2fdaf8(0x1a2));_0x1b37f7[_0x2fdaf8(0x2aa)]()!==_0x58d31b&&this[_0x2fdaf8(0x345)][_0x2fdaf8(0x246)](_0x2fdaf8(0x1a2),_0x1b37f7[_0x2fdaf8(0x2aa)](),_0x1c5755);}async['_updateSubUnitFromURLParams'](_0x4c8a81){const _0x271370=_0x4b8fc7;var _0x4276c4;const _0x11edaa=this[_0x271370(0x345)][_0x271370(0x181)](_0x271370(0x1a2));if(!_0x11edaa||!_0x4c8a81['getSheetBySheetId'](_0x11edaa)){const _0x5102dc=_0x4c8a81['getUnhiddenWorksheets']()[0x0],_0x4f9d13=_0x4c8a81[_0x271370(0x24c)](_0x5102dc);if(!_0x4f9d13)return;this[_0x271370(0x29d)](_0x4f9d13,!0x0),await this[_0x271370(0x22a)][_0x271370(0x154)](v[_0x271370(0x292)]['id'],{'unitId':_0x4c8a81['getUnitId'](),'subUnitId':_0x5102dc});return;}((_0x4276c4=_0x4c8a81[_0x271370(0x1ff)]())==null?void 0x0:_0x4276c4[_0x271370(0x2aa)]())!==_0x11edaa&&await this['_commandService'][_0x271370(0x154)](v[_0x271370(0x292)]['id'],{'unitId':_0x4c8a81[_0x271370(0x1f6)](),'subUnitId':_0x11edaa});}},exports[_0x4b8fc7(0x136)]=ct([Y(0x0,Oe),Y(0x1,a[_0x4b8fc7(0x344)]),Y(0x2,a[_0x4b8fc7(0x25a)]),Y(0x3,a[_0x4b8fc7(0x2ee)](u[_0x4b8fc7(0xa5)])),Y(0x4,a[_0x4b8fc7(0x208)](qe['IRemoteInstanceService']))],exports[_0x4b8fc7(0x136)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x507c9a,_0x3e9a92,_0x385187,_0x5ae692)=>{const _0x28c0b3=_0x4b8fc7;for(var _0x519dd9=_0x5ae692>0x1?void 0x0:_0x5ae692?lt(_0x3e9a92,_0x385187):_0x3e9a92,_0xb41c5b=_0x507c9a[_0x28c0b3(0x34f)]-0x1,_0x2b21dd;_0xb41c5b>=0x0;_0xb41c5b--)(_0x2b21dd=_0x507c9a[_0xb41c5b])&&(_0x519dd9=_0x2b21dd(_0x519dd9)||_0x519dd9);return _0x519dd9;},De=(_0x46fd9b,_0x31ae77)=>(_0x58fd03,_0x1547ab)=>_0x31ae77(_0x58fd03,_0x1547ab,_0x46fd9b);let me=class extends a[_0x4b8fc7(0x312)]{constructor(_0x28ffe0,_0x5ca903){const _0x375f9b=_0x4b8fc7;super(),this[_0x375f9b(0x102)]=_0x28ffe0,this['_imageIoService']=_0x5ca903,this[_0x375f9b(0x16a)]();}[_0x4b8fc7(0x16a)](){const _0x1d28ca=_0x4b8fc7,_0xaa5f2=this;this[_0x1d28ca(0x350)](this[_0x1d28ca(0x102)][_0x1d28ca(0x262)]({'onBeforePasteImage':async _0x59ec7e=>{const _0x163953=_0x1d28ca,_0x4c50a1=await _0xaa5f2[_0x163953(0xf1)][_0x163953(0x162)](_0x59ec7e);return _0x4c50a1?{'source':_0x4c50a1[_0x163953(0xbc)],'imageSourceType':_0x4c50a1[_0x163953(0x82)]}:null;}}));}};me=_t([De(0x0,T['IDocClipboardService']),De(0x1,ze[_0x4b8fc7(0x1c4)])],me);const Ne=[_0x4b8fc7(0xdd),_0x4b8fc7(0x2cd),_0x4b8fc7(0x24d),_0x4b8fc7(0x22e),_0x4b8fc7(0x16e),_0x4b8fc7(0x28a)];class Re extends a['Disposable']{constructor(){const _0x7ed0b3=_0x4b8fc7;super(...arguments),_(this,_0x7ed0b3(0xd0),new Map()),_(this,_0x7ed0b3(0x14f),0x0);}[_0x4b8fc7(0x2a1)](_0x3ce881){const _0x13cd46=_0x4b8fc7;if(this[_0x13cd46(0xd0)][_0x13cd46(0x2e2)](_0x3ce881))return this[_0x13cd46(0xd0)][_0x13cd46(0x16d)](_0x3ce881);const _0x5dc021=Ne[this[_0x13cd46(0x14f)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%Ne[_0x13cd46(0x34f)],this[_0x13cd46(0xd0)][_0x13cd46(0x272)](_0x3ce881,_0x5dc021),_0x5dc021;}}function Fe(_0xfb2a95){const _0x26ce55=_0x4b8fc7;let _0x5b0f5c='';for(const _0x3d0e8b of _0xfb2a95){const {startOffset:_0x24bfac,endOffset:_0x308eea,isActive:_0x2c55b6,rangeType:_0x1d9072,segmentId:_0x514407,segmentPage:_0x46f84f}=_0x3d0e8b;_0x5b0f5c[_0x26ce55(0x34f)]&&(_0x5b0f5c+=','),_0x5b0f5c+=_0x24bfac+':'+_0x308eea+':'+(_0x2c55b6?'1':'0')+':'+_0x1d9072+':'+_0x514407+':'+_0x46f84f;}return _0x5b0f5c;}function ht(_0x30b497){const _0x3a3238=_0x4b8fc7,_0x171a31=_0x30b497[_0x3a3238(0x1b1)](','),_0x2988a2=[];for(const _0x5e4ac9 of _0x171a31){const [_0x50c9bc,_0x119a54,_0x1357b0,_0x1c733c,_0x5be996,_0x1d7fcf]=_0x5e4ac9[_0x3a3238(0x1b1)](':');_0x2988a2[_0x3a3238(0x8d)]({'startOffset':Number(_0x50c9bc),'endOffset':Number(_0x119a54),'collapsed':_0x50c9bc===_0x119a54,'isActive':_0x1357b0==='1','rangeType':_0x1c733c===a[_0x3a3238(0x229)][_0x3a3238(0x2d6)]?a['DOC_RANGE_TYPE'][_0x3a3238(0x2d6)]:a[_0x3a3238(0x229)][_0x3a3238(0xaf)],'segmentId':typeof _0x5be996==_0x3a3238(0x31a)?String(_0x5be996):'','segmentPage':Number(_0x1d7fcf!=null?_0x1d7fcf:-0x1)});}return _0x2988a2[_0x3a3238(0x26c)](_0x17e254=>_0x17e254[_0x3a3238(0x1e0)])||(_0x2988a2[0x0][_0x3a3238(0x1e0)]=!0x0),_0x2988a2;}class be extends a[_0x4b8fc7(0x312)]{constructor(){const _0x559a7f=_0x4b8fc7;super(...arguments),_(this,_0x559a7f(0x297),new I[(_0x559a7f(0x2ad))](null)),_(this,_0x559a7f(0x9b),this['_collabCursorState$'][_0x559a7f(0x1be)]());}[_0x4b8fc7(0x294)](_0xa31030){const _0x5680e7=_0x4b8fc7,{unitID:_0x21baba,memberID:_0x1e8ab5,textRanges:_0x380d5f}=_0xa31030,_0x5ac3a2=Fe(_0x380d5f);if(_0x5ac3a2==='')return;const _0x26a1cd={'unitID':_0x21baba,'memberID':_0x1e8ab5,'selection':_0x5ac3a2};this['_collabCursorState$'][_0x5680e7(0x322)](_0x26a1cd);}}var ut=Object[_0x4b8fc7(0x288)],It=(_0x564a8b,_0x2c4a6e,_0xc77e13,_0x571d0f)=>{for(var _0x503926=_0x571d0f>0x1?void 0x0:_0x571d0f?ut(_0x2c4a6e,_0xc77e13):_0x2c4a6e,_0x2e56d1=_0x564a8b['length']-0x1,_0x51ed7e;_0x2e56d1>=0x0;_0x2e56d1--)(_0x51ed7e=_0x564a8b[_0x2e56d1])&&(_0x503926=_0x51ed7e(_0x503926)||_0x503926);return _0x503926;},U=(_0x20e1e7,_0x2d0f74)=>(_0x5564c5,_0x3c652d)=>_0x2d0f74(_0x5564c5,_0x3c652d,_0x20e1e7);const St=0x12c,dt=0x64;let ve=class extends a[_0x4b8fc7(0x312)]{constructor(_0x5d9c0a,_0x55038e,_0xb6999e,_0x4173e8,_0x21215e,_0x100fa1,_0x300589,_0x6ee177,_0x5ac546){const _0x1bf596=_0x4b8fc7;super(),_(this,_0x1bf596(0x2da),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I[(_0x1bf596(0x2ad))](new Map())),_(this,_0x1bf596(0x314),this[_0x1bf596(0x287)][_0x1bf596(0x1be)]()),_(this,'_roomMembers$',new I[(_0x1bf596(0x2ad))]([])),_(this,_0x1bf596(0x132),this[_0x1bf596(0xbb)][_0x1bf596(0x266)](I[_0x1bf596(0x17c)](St))),_(this,_0x1bf596(0x22f),a[_0x1bf596(0x248)](_0x51024b=>{const _0x5a9f1b=_0x1bf596,_0x25e621={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x5a9f1b(0x10e)][_0x5a9f1b(0x2df)](),'selection':Fe(_0x51024b)}};this[_0x5a9f1b(0x10e)]['send'](_0x25e621,this[_0x5a9f1b(0x282)]);},dt)),(this[_0x1bf596(0x282)]=_0x5d9c0a,this[_0x1bf596(0x10e)]=_0x55038e,this['_injector']=_0xb6999e,this['_colorAssignService']=_0x4173e8,this[_0x1bf596(0x257)]=_0x21215e,this['_syncEditingCollabCursorService']=_0x100fa1,this[_0x1bf596(0x193)]=_0x300589,this[_0x1bf596(0x32f)]=_0x6ee177,this['_commandService']=_0x5ac546);}get[_0x4b8fc7(0xfd)](){const _0x3a21cb=_0x4b8fc7;return this[_0x3a21cb(0x287)][_0x3a21cb(0xf7)]();}get[_0x4b8fc7(0x11a)](){const _0x111d91=_0x4b8fc7;return this[_0x111d91(0xbb)]['getValue']();}[_0x4b8fc7(0x83)](){const _0x586320=_0x4b8fc7;super['dispose'](),this[_0x586320(0x287)]['next'](new Map()),this[_0x586320(0x287)][_0x586320(0x88)](),this[_0x586320(0xbb)]['next']([]),this['_roomMembers$'][_0x586320(0x88)]();}[_0x4b8fc7(0x1da)](){const _0x4aa9f0=_0x4b8fc7;this[_0x4aa9f0(0x16a)]||(this[_0x4aa9f0(0x16a)]=!0x0,this[_0x4aa9f0(0x10e)]['sessionStatus$']['pipe'](I[_0x4aa9f0(0x351)](this[_0x4aa9f0(0x29f)]))['subscribe'](_0x3a87c5=>{const _0x25d4bb=_0x4aa9f0;_0x3a87c5===u[_0x25d4bb(0x323)]['ONLINE']?this['_toggleOnline']():this[_0x25d4bb(0x9c)]();}),this[_0x4aa9f0(0x10e)][_0x4aa9f0(0x1b8)][_0x4aa9f0(0x266)](I[_0x4aa9f0(0x351)](this[_0x4aa9f0(0x29f)]))['subscribe'](_0x8ace74=>{const _0x38b3aa=_0x4aa9f0,_0x511239=_0x8ace74[_0x38b3aa(0x1ca)];_0x511239===g['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x38b3aa(0x15d)](_0x8ace74),_0x511239===g['CollaborationEvent'][_0x38b3aa(0x18d)]&&this['_onCursorDelete'](_0x8ace74);}),this['disposeWithMe'](this[_0x4aa9f0(0x22a)][_0x4aa9f0(0x289)](_0x234c9b=>{const _0xe5ec54=_0x4aa9f0,_0x9a0059=_0x234c9b[_0xe5ec54(0x299)];_0x9a0059!=null&&this[_0xe5ec54(0x2da)]&&_0x234c9b['id']===V['SetTextSelectionsOperation']['id']&&_0x9a0059[_0xe5ec54(0x119)]===this[_0xe5ec54(0x282)]&&_0x9a0059[_0xe5ec54(0x197)]===!0x1&&_0x9a0059[_0xe5ec54(0x87)][_0xe5ec54(0x34f)]>0x0&&this[_0xe5ec54(0x22f)](_0x9a0059[_0xe5ec54(0x87)]);})),this['_syncEditingCollabCursorService'][_0x4aa9f0(0x9b)]['pipe'](I[_0x4aa9f0(0x351)](this[_0x4aa9f0(0x29f)]))[_0x4aa9f0(0x304)](_0x49353c=>{const _0x3bc52d=_0x4aa9f0;if((_0x49353c==null?void 0x0:_0x49353c[_0x3bc52d(0x282)])!==this[_0x3bc52d(0x282)])return;const _0x40d843={'eventID':g[_0x3bc52d(0x2cb)][_0x3bc52d(0x230)],'data':_0x49353c};this[_0x3bc52d(0x15d)](_0x40d843);}),this[_0x4aa9f0(0x350)](this[_0x4aa9f0(0x22a)][_0x4aa9f0(0x289)](_0x137312=>{const _0x532597=_0x4aa9f0;if(_0x137312[_0x532597(0x299)]==null)return;const _0x2205bb=_0x137312[_0x532597(0x299)];if(_0x137312['id']!==V['RichTextEditingMutation']['id']||_0x2205bb[_0x532597(0x119)]!==this[_0x532597(0x282)])return;const _0x59c65c={'id':_0x532597(0x2e8),'params':_0x2205bb},_0x3f80d1=this[_0x532597(0xfd)];for(const [_0x5a15fe,_0x588fd5]of _0x3f80d1){const _0x193717={'id':_0x532597(0x2e8),'params':{'unitId':this[_0x532597(0x282)],'actions':null,'textRanges':_0x588fd5[_0x532597(0x87)]}},_0xd731ad=this[_0x532597(0x193)][_0x532597(0x80)](_0x59c65c,_0x193717,!0x1);if(g[_0x532597(0x185)](_0xd731ad))throw _0xd731ad[_0x532597(0x1e1)];_0x3f80d1[_0x532597(0x272)](_0x5a15fe,{..._0x588fd5,'ranges':_0xd731ad[_0x532597(0x348)][_0x532597(0x299)]['textRanges']});}queueMicrotask(()=>{const _0x1d8c2c=_0x532597;this['_cursorInfo$'][_0x1d8c2c(0x322)](_0x3f80d1);});})));}['_onCursorUpdate'](_0x2f445f){const _0x21b64a=_0x4b8fc7;var _0x2dca11,_0x12116e;const {memberID:_0x14e341,selection:_0x5f1fa6}=_0x2f445f[_0x21b64a(0x342)],_0x6b5cda=ht(_0x5f1fa6),_0x17d6fc=(_0x12116e=(_0x2dca11=this['_memberService'][_0x21b64a(0x1a8)](this['unitID'],_0x14e341))==null?void 0x0:_0x2dca11[_0x21b64a(0x31f)])!=null?_0x12116e:_0x21b64a(0x231),_0x1d74db={'color':this[_0x21b64a(0xb3)][_0x21b64a(0x2a1)](_0x14e341),'name':_0x17d6fc,'ranges':_0x6b5cda},_0x5a67ba=this[_0x21b64a(0xfd)];_0x5a67ba['set'](_0x14e341,_0x1d74db),this['_cursorInfo$']['next'](_0x5a67ba);}[_0x4b8fc7(0x2bc)](_0x559a83){const _0x5e9537=_0x4b8fc7,{memberID:_0x16e9ac}=_0x559a83[_0x5e9537(0x342)],_0x4e8081=this['cursorInfo'];_0x4e8081[_0x5e9537(0x224)](_0x16e9ac),this['_cursorInfo$'][_0x5e9537(0x322)](_0x4e8081);}[_0x4b8fc7(0x169)](){const _0x1b0bd6=_0x4b8fc7;var _0x46d68d;if(this[_0x1b0bd6(0x2da)]=!0x0,((_0x46d68d=this[_0x1b0bd6(0x32f)][_0x1b0bd6(0x151)]())==null?void 0x0:_0x46d68d[_0x1b0bd6(0x1f6)]())!==this[_0x1b0bd6(0x282)])return;const _0x42dc60=this[_0x1b0bd6(0x1a4)][_0x1b0bd6(0x16d)](V['DocSelectionManagerService'])['getDocRanges']();Array[_0x1b0bd6(0x2ab)](_0x42dc60)&&_0x42dc60[_0x1b0bd6(0x34f)]>0x0&&this[_0x1b0bd6(0x22f)](_0x42dc60);}[_0x4b8fc7(0x9c)](){const _0x4a0dff=_0x4b8fc7;this[_0x4a0dff(0x2da)]=!0x1;}};ve=It([U(0x2,a[_0x4b8fc7(0x2ee)](a[_0x4b8fc7(0x1e4)])),U(0x3,a['Inject'](Re)),U(0x4,a[_0x4b8fc7(0x2ee)](u[_0x4b8fc7(0x20b)])),U(0x5,a['Inject'](be)),U(0x6,g[_0x4b8fc7(0x1af)]),U(0x7,a[_0x4b8fc7(0xec)]),U(0x8,a[_0x4b8fc7(0x25a)])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x10e408,_0x3c7707,_0x1373a6,_0x763e84)=>{for(var _0x5233d9=_0x763e84>0x1?void 0x0:_0x763e84?ft(_0x3c7707,_0x1373a6):_0x3c7707,_0x4b644c=_0x10e408['length']-0x1,_0x541d7b;_0x4b644c>=0x0;_0x4b644c--)(_0x541d7b=_0x10e408[_0x4b644c])&&(_0x5233d9=_0x541d7b(_0x5233d9)||_0x5233d9);return _0x5233d9;},w=(_0x357d17,_0x5301f2)=>(_0x21f8bc,_0x507c2a)=>_0x5301f2(_0x21f8bc,_0x507c2a,_0x357d17);const vt=0x12c,gt=0x64,Et=()=>{let _0x1e96db=[],_0x4a89e8=!0x1;return _0x4ecbfe=>{const _0x1db108=_0x3f9c;_0x1e96db[_0x1db108(0x8d)](_0x4ecbfe),_0x4a89e8||(_0x4a89e8=!0x0,setTimeout(()=>{const _0x543be3=_0x1db108;_0x1e96db[_0x543be3(0x7d)](_0xdb837a=>_0xdb837a()),_0x1e96db=[],_0x4a89e8=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x1a19bf,_0x80d7c7,_0x46c338,_0x18c752,_0x218ba6,_0x89c85d,_0x4ad2ab,_0x2f504d){const _0x89cb28=_0x4b8fc7;super(),_(this,_0x89cb28(0x2da),!0x1),_(this,_0x89cb28(0x16a),!0x1),_(this,_0x89cb28(0x287),new I[(_0x89cb28(0x2ad))](new Map())),_(this,_0x89cb28(0x314),this['_cursorInfo$'][_0x89cb28(0x1be)]()),_(this,_0x89cb28(0xbb),new I['BehaviorSubject']([])),_(this,'roomMembers$',this[_0x89cb28(0xbb)][_0x89cb28(0x266)](I[_0x89cb28(0x17c)](vt))),_(this,_0x89cb28(0x22f),a[_0x89cb28(0x248)]((_0x7cb332,_0x22ca37)=>{const _0x216255=_0x89cb28,_0x505f2c={'eventID':g['CollaborationEvent'][_0x216255(0x230)],'data':{'unitID':this[_0x216255(0x282)],'memberID':this[_0x216255(0x10e)][_0x216255(0x2df)](),'selection':B[_0x216255(0xcc)](_0x7cb332,_0x22ca37[_0x216255(0x9e)])}};this[_0x216255(0x10e)][_0x216255(0x2ae)](_0x505f2c,this[_0x216255(0x282)]);},gt)),(this[_0x89cb28(0x282)]=_0x1a19bf,this['_session']=_0x80d7c7,this[_0x89cb28(0x1a4)]=_0x46c338,this['_colorAssignService']=_0x18c752,this[_0x89cb28(0x257)]=_0x218ba6,this[_0x89cb28(0x32f)]=_0x89c85d,this['_commandService']=_0x4ad2ab,this[_0x89cb28(0x261)]=_0x2f504d);}get[_0x4b8fc7(0xfd)](){const _0x351a97=_0x4b8fc7;return this[_0x351a97(0x287)][_0x351a97(0xf7)]();}get[_0x4b8fc7(0x11a)](){const _0x519bb5=_0x4b8fc7;return this['_roomMembers$'][_0x519bb5(0xf7)]();}[_0x4b8fc7(0x83)](){const _0x4d6dcb=_0x4b8fc7;super[_0x4d6dcb(0x83)](),this[_0x4d6dcb(0x287)]['next'](new Map()),this[_0x4d6dcb(0x287)]['complete'](),this[_0x4d6dcb(0xbb)][_0x4d6dcb(0x322)]([]),this[_0x4d6dcb(0xbb)][_0x4d6dcb(0x88)]();}[_0x4b8fc7(0x1da)](){const _0x20cd19=_0x4b8fc7;this[_0x20cd19(0x16a)]||(this[_0x20cd19(0x16a)]=!0x0,this['_session'][_0x20cd19(0x27e)][_0x20cd19(0x266)](I[_0x20cd19(0x351)](this[_0x20cd19(0x29f)]))['subscribe'](_0x568979=>{const _0x573482=_0x20cd19;_0x568979===u[_0x573482(0x323)][_0x573482(0x33e)]?this[_0x573482(0x169)]():this['_toggleOffline']();}),this[_0x20cd19(0x10e)][_0x20cd19(0x1b8)][_0x20cd19(0x266)](I[_0x20cd19(0x351)](this[_0x20cd19(0x29f)]))[_0x20cd19(0x304)](_0x391fd0=>{const _0x55bbaf=_0x20cd19,_0x4a623e=_0x391fd0['eventID'];_0x4a623e===g['CollaborationEvent'][_0x55bbaf(0x230)]&&this['_onCursorUpdate'](_0x391fd0),_0x4a623e===g[_0x55bbaf(0x2cb)]['USERS_LEAVE']&&this[_0x55bbaf(0x2bc)](_0x391fd0);}),this[_0x20cd19(0x319)](),this[_0x20cd19(0x350)](this[_0x20cd19(0x22a)][_0x20cd19(0x289)](_0x44551f=>{const _0x231bd5=_0x20cd19;if(this[_0x231bd5(0x2da)]&&_0x44551f['id']===v[_0x231bd5(0x1d0)]['id']&&_0x44551f['params'][_0x231bd5(0x119)]===this[_0x231bd5(0x282)]){const _0x38cafb=_0x44551f[_0x231bd5(0x299)];this[_0x231bd5(0x22f)](_0x38cafb[_0x231bd5(0x338)],_0x38cafb[_0x231bd5(0xce)][0x0]);}})));}[_0x4b8fc7(0x15d)](_0x231ae3){const _0x7978e2=_0x4b8fc7;var _0x2afa5f,_0x4531bf;const {memberID:_0x307ee1,selection:_0x1175a3}=_0x231ae3[_0x7978e2(0x342)],{sheetName:_0x29fc3c,range:_0x2fff19}=B[_0x7978e2(0x1d4)](_0x1175a3),_0x387410={'name':(_0x4531bf=(_0x2afa5f=this['_memberService']['getMember'](this[_0x7978e2(0x282)],_0x307ee1))==null?void 0x0:_0x2afa5f[_0x7978e2(0x31f)])!=null?_0x4531bf:_0x7978e2(0x231),'range':this[_0x7978e2(0x1d2)](_0x29fc3c,_0x2fff19),'sheetID':_0x29fc3c,'color':this[_0x7978e2(0xb3)][_0x7978e2(0x2a1)](_0x307ee1),'selection':_0x1175a3},_0x4d83c2=this[_0x7978e2(0xfd)];_0x4d83c2[_0x7978e2(0x272)](_0x307ee1,_0x387410),this[_0x7978e2(0x287)][_0x7978e2(0x322)](_0x4d83c2);}[_0x4b8fc7(0x2bc)](_0x2ec088){const _0x2f5f26=_0x4b8fc7,{memberID:_0xbf9128}=_0x2ec088[_0x2f5f26(0x342)],_0xec12b4=this[_0x2f5f26(0xfd)];_0xec12b4[_0x2f5f26(0x224)](_0xbf9128),this[_0x2f5f26(0x287)][_0x2f5f26(0x322)](_0xec12b4);}['_getMergeRange'](_0xc6eef,_0x2c24a8){const _0x4bdb94=_0x4b8fc7;var _0x4f447d,_0x3a5124;const _0x489144=(_0x3a5124=(_0x4f447d=this['_univerInstanceService'][_0x4bdb94(0x2f3)](this[_0x4bdb94(0x282)]))==null?void 0x0:_0x4f447d[_0x4bdb94(0x24c)](_0xc6eef))==null?void 0x0:_0x3a5124[_0x4bdb94(0xc5)]();return(_0x489144==null?void 0x0:_0x489144[_0x4bdb94(0x1e9)](_0x483f24=>a[_0x4bdb94(0x165)][_0x4bdb94(0x215)](_0x483f24,_0x2c24a8)))||_0x2c24a8;}[_0x4b8fc7(0x319)](){const _0x5df311=_0x4b8fc7,_0xe933a6=new a[(_0x5df311(0x190))](),_0x5dc64d=Et(),_0x2199fe=()=>{const _0x28bed9=_0x5df311;_0xe933a6[_0x28bed9(0x83)]();const _0x5211b5=(_0x599537,_0x1d42d5,_0x358b39,_0x55f29f)=>{const _0x2ffe3b=_0x28bed9;let _0x5725a3=[];switch(_0x599537['id']){case v[_0x2ffe3b(0x2fd)][_0x2ffe3b(0x207)]:{_0x5725a3=v[_0x2ffe3b(0x120)](_0x599537,_0x55f29f);break;}case v[_0x2ffe3b(0x2fd)]['DeleteRangeMoveUpCommandId']:{_0x5725a3=v[_0x2ffe3b(0x1cf)](_0x599537,_0x55f29f);break;}case v[_0x2ffe3b(0x2fd)][_0x2ffe3b(0x8e)]:{_0x5725a3=v[_0x2ffe3b(0x23e)](_0x599537,_0x55f29f);break;}case v['EffectRefRangId'][_0x2ffe3b(0x12b)]:{_0x5725a3=v[_0x2ffe3b(0x2c9)](_0x599537,_0x55f29f);break;}case v[_0x2ffe3b(0x2fd)]['InsertRangeMoveRightCommandId']:{_0x5725a3=v[_0x2ffe3b(0x24f)](_0x599537,_0x55f29f);break;}case v[_0x2ffe3b(0x2fd)][_0x2ffe3b(0x34e)]:{_0x5725a3=v[_0x2ffe3b(0x1c0)](_0x599537,_0x55f29f);break;}case v['EffectRefRangId']['MoveRangeCommandId']:{_0x5725a3=v[_0x2ffe3b(0x175)](_0x599537,_0x55f29f);break;}case v['EffectRefRangId'][_0x2ffe3b(0x14d)]:{_0x5725a3=v[_0x2ffe3b(0x29a)](_0x599537,_0x55f29f);break;}case v[_0x2ffe3b(0x2fd)][_0x2ffe3b(0x2fa)]:{_0x5725a3=v['handleIRemoveRow'](_0x599537,_0x55f29f);break;}}const _0x1557a3=v[_0x2ffe3b(0x209)](_0x5725a3,_0x55f29f),_0x2e92b7=this[_0x2ffe3b(0xfd)][_0x2ffe3b(0x16d)](_0x1d42d5);if(_0x2e92b7&&_0x1557a3){const _0x217575={..._0x2e92b7,'range':_0x1557a3};this[_0x2ffe3b(0xfd)][_0x2ffe3b(0x272)](_0x1d42d5,_0x217575),_0x5dc64d(()=>{const _0x621812=_0x2ffe3b,_0x285b1f=this[_0x621812(0x261)][_0x621812(0x2ac)](_0x1557a3,_0x37535b=>(_0x285b1f[_0x621812(0x83)](),_0x5211b5(_0x37535b,_0x1d42d5,_0x358b39,_0x1557a3)));_0xe933a6[_0x621812(0x219)](_0x285b1f);});}return{'redos':[],'undos':[]};};this[_0x28bed9(0xfd)][_0x28bed9(0x7d)]((_0x263e3f,_0x469243)=>{const _0x10ff0e=_0x28bed9,{range:_0x1e5b90,sheetID:_0x2f91c9}=_0x263e3f,_0x10f957=this['_refRangeService'][_0x10ff0e(0x2ac)](_0x1e5b90,_0x1dbc2b=>(_0x10f957[_0x10ff0e(0x83)](),_0x5211b5(_0x1dbc2b,_0x469243,_0x2f91c9,_0x1e5b90)));_0xe933a6[_0x10ff0e(0x219)](_0x10f957);});};this[_0x5df311(0x350)](a['toDisposable'](this[_0x5df311(0x287)][_0x5df311(0x304)](()=>{_0x2199fe();})));}[_0x4b8fc7(0x169)](){const _0x57cf89=_0x4b8fc7;var _0x433eca,_0x5708f4;if(this['_online']=!0x0,((_0x433eca=this[_0x57cf89(0x32f)]['getFocusedUnit']())==null?void 0x0:_0x433eca[_0x57cf89(0x1f6)]())!==this[_0x57cf89(0x282)])return;const _0x566de0=(_0x5708f4=this[_0x57cf89(0x1a4)][_0x57cf89(0x16d)](v[_0x57cf89(0x337)])['getCurrentSelections']())==null?void 0x0:_0x5708f4[0x0],_0x2bd843=this[_0x57cf89(0x32f)]['getCurrentUnitForType'](a[_0x57cf89(0x326)]['UNIVER_SHEET'])[_0x57cf89(0x1ff)]();_0x566de0&&_0x2bd843&&this[_0x57cf89(0x22f)](_0x2bd843['getSheetId'](),_0x566de0);}[_0x4b8fc7(0x9c)](){const _0x28e4da=_0x4b8fc7;this[_0x28e4da(0x2da)]=!0x1;}};ge=mt([w(0x2,a[_0x4b8fc7(0x2ee)](a[_0x4b8fc7(0x1e4)])),w(0x3,a['Inject'](Re)),w(0x4,a[_0x4b8fc7(0x2ee)](u['MemberService'])),w(0x5,a[_0x4b8fc7(0xec)]),w(0x6,a[_0x4b8fc7(0x25a)]),w(0x7,a[_0x4b8fc7(0x2ee)](v[_0x4b8fc7(0x325)]))],ge);var Ct=Object[_0x4b8fc7(0x288)],Tt=(_0x93472c,_0x2beaab,_0x48f571,_0x4c16de)=>{const _0x371adf=_0x4b8fc7;for(var _0x3630bb=_0x4c16de>0x1?void 0x0:_0x4c16de?Ct(_0x2beaab,_0x48f571):_0x2beaab,_0x27308a=_0x93472c[_0x371adf(0x34f)]-0x1,_0x251de3;_0x27308a>=0x0;_0x27308a--)(_0x251de3=_0x93472c[_0x27308a])&&(_0x3630bb=_0x251de3(_0x3630bb)||_0x3630bb);return _0x3630bb;},ce=(_0x1a46ba,_0x339ce2)=>(_0xab6f18,_0xd590ed)=>_0x339ce2(_0xab6f18,_0xd590ed,_0x1a46ba);let F=class extends a[_0x4b8fc7(0x312)]{constructor(_0x580e93,_0x534361,_0x52809d){const _0x4a3c14=_0x4b8fc7;super(),_(this,_0x4a3c14(0x1f1),new Map()),_(this,'_entityInit$',new I['Subject']()),(this[_0x4a3c14(0x32f)]=_0x580e93,this['_injector']=_0x534361,this['_collabSessionService']=_0x52809d,this[_0x4a3c14(0x16a)]());}['dispose'](){const _0x153c2b=_0x4b8fc7;super[_0x153c2b(0x83)](),this[_0x153c2b(0x1b6)][_0x153c2b(0x88)](),this[_0x153c2b(0x1f1)][_0x153c2b(0x7d)](_0x59dc51=>_0x59dc51[_0x153c2b(0x83)]());}[_0x4b8fc7(0x128)](_0x4876fc){const _0x22235d=_0x4b8fc7;return this[_0x22235d(0x1f1)]['has'](_0x4876fc)?this[_0x22235d(0x1f1)][_0x22235d(0x16d)](_0x4876fc)[_0x22235d(0x314)]:this[_0x22235d(0x1b6)][_0x22235d(0x266)](I[_0x22235d(0x145)](_0x237ea4=>_0x237ea4['unitID']===_0x4876fc),I[_0x22235d(0x2e4)](_0x18dc5c=>_0x18dc5c[_0x22235d(0x314)]));}[_0x4b8fc7(0x16a)](){const _0x1e31e7=_0x4b8fc7;this['_univerInstanceService'][_0x1e31e7(0x2b8)](a[_0x1e31e7(0x326)][_0x1e31e7(0x1dc)])[_0x1e31e7(0x266)](I[_0x1e31e7(0x351)](this['dispose$']))[_0x1e31e7(0x304)](async _0xc49529=>{const _0x3e16e4=_0x1e31e7,_0x374422=_0xc49529[_0x3e16e4(0x1f6)](),_0x524074=await this['_startSheetCollabCursor'](_0x374422);this[_0x3e16e4(0x1b6)][_0x3e16e4(0x322)](_0x524074),this[_0x3e16e4(0x1f1)]['set'](_0x374422,_0x524074);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x1e31e7(0x326)][_0x1e31e7(0xa7)])[_0x1e31e7(0x266)](I['takeUntil'](this[_0x1e31e7(0x29f)]))[_0x1e31e7(0x266)](I[_0x1e31e7(0x145)](_0x5aad78=>!_0x5aad78[_0x1e31e7(0x1f6)]()['startsWith']('__')))[_0x1e31e7(0x304)](async _0x226ece=>{const _0x234c73=_0x1e31e7,_0xed692d=_0x226ece[_0x234c73(0x1f6)](),_0x142b51=await this['_startDocCollabCursor'](_0xed692d);this[_0x234c73(0x1b6)]['next'](_0x142b51),this[_0x234c73(0x1f1)]['set'](_0xed692d,_0x142b51);}),I[_0x1e31e7(0x239)](this[_0x1e31e7(0x32f)][_0x1e31e7(0x17e)](a[_0x1e31e7(0x326)][_0x1e31e7(0xa7)]),this[_0x1e31e7(0x32f)][_0x1e31e7(0x17e)](a[_0x1e31e7(0x326)][_0x1e31e7(0x1dc)]))[_0x1e31e7(0x266)](I[_0x1e31e7(0x351)](this[_0x1e31e7(0x29f)]))[_0x1e31e7(0x304)](_0x573721=>{const _0x29d641=_0x1e31e7,_0x3fb925=_0x573721[_0x29d641(0x1f6)](),_0x5ec566=this['_entities']['get'](_0x3fb925);_0x5ec566&&(_0x5ec566[_0x29d641(0x83)](),this[_0x29d641(0x1f1)][_0x29d641(0x224)](_0x3fb925));});}async['_startSheetCollabCursor'](_0x2d58d8){const _0x286c7c=_0x4b8fc7,_0x9d1f47=await this[_0x286c7c(0x32b)][_0x286c7c(0x15c)](_0x2d58d8),_0x4edf8f=this[_0x286c7c(0x1a4)]['createInstance'](ge,_0x2d58d8,_0x9d1f47);return _0x4edf8f[_0x286c7c(0x1da)](),_0x4edf8f;}async[_0x4b8fc7(0x81)](_0x490b8e){const _0x4157d9=_0x4b8fc7,_0x5d83f8=await this['_collabSessionService'][_0x4157d9(0x15c)](_0x490b8e),_0x2e279f=this[_0x4157d9(0x1a4)]['createInstance'](ve,_0x490b8e,_0x5d83f8);return _0x2e279f[_0x4157d9(0x1da)](),_0x2e279f;}};F=Tt([ce(0x0,a[_0x4b8fc7(0xec)]),ce(0x1,a[_0x4b8fc7(0x2ee)](a[_0x4b8fc7(0x1e4)])),ce(0x2,a['Inject'](u[_0x4b8fc7(0x1b0)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x106518,_0x509b1c){const _0x3d8a8c=_0x4b8fc7;let {radius:_0x237bdc,width:_0x2f7090,height:_0x31a371}=_0x509b1c;_0x237bdc=_0x237bdc!=null?_0x237bdc:0x0,_0x2f7090=_0x2f7090!=null?_0x2f7090:0x1e,_0x31a371=_0x31a371!=null?_0x31a371:0x1e;let _0x1fd778=0x0,_0x23eca1=0x0,_0x9b9583=0x0;_0x1fd778=_0x23eca1=_0x9b9583=Math[_0x3d8a8c(0x146)](_0x237bdc,_0x2f7090/0x2,_0x31a371/0x2),_0x106518[_0x3d8a8c(0x2f0)](),_0x106518[_0x3d8a8c(0x150)](_0x1fd778,0x0),_0x106518[_0x3d8a8c(0x135)](_0x2f7090-_0x23eca1,0x0),_0x106518[_0x3d8a8c(0x1d3)](_0x2f7090-_0x23eca1,_0x23eca1,_0x23eca1,Math['PI']*0x3/0x2,0x0,!0x1),_0x106518[_0x3d8a8c(0x135)](_0x2f7090,_0x31a371-_0x9b9583),_0x106518[_0x3d8a8c(0x1d3)](_0x2f7090-_0x9b9583,_0x31a371-_0x9b9583,_0x9b9583,0x0,Math['PI']/0x2,!0x1),_0x106518[_0x3d8a8c(0x135)](0x0,_0x31a371),_0x106518[_0x3d8a8c(0x135)](0x0,_0x1fd778),_0x106518[_0x3d8a8c(0x1d3)](_0x1fd778,_0x1fd778,_0x1fd778,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x106518[_0x3d8a8c(0x7c)](),_0x509b1c[_0x3d8a8c(0x97)]&&(_0x106518[_0x3d8a8c(0x167)](),_0x106518['fillStyle']=_0x509b1c[_0x3d8a8c(0x97)],_0x509b1c['fillRule']===_0x3d8a8c(0x156)?_0x106518[_0x3d8a8c(0x97)](_0x3d8a8c(0x156)):_0x106518[_0x3d8a8c(0x97)](),_0x106518[_0x3d8a8c(0x2a7)]());}class re extends C['Shape']{constructor(_0x2b4b82,_0x209b92){const _0x37a020=_0x4b8fc7;super(_0x2b4b82,_0x209b92),_(this,_0x37a020(0x1eb)),_(this,_0x37a020(0x1a5)),(this[_0x37a020(0x1eb)]=_0x209b92==null?void 0x0:_0x209b92['color'],this['text']=_0x209b92==null?void 0x0:_0x209b92[_0x37a020(0x1a5)]);}static[_0x4b8fc7(0xcf)](_0x15641d,_0x3af59e){const _0x314e9c=_0x4b8fc7,{text:_0x65360e,color:_0x5e714d}=_0x3af59e;_0x15641d[_0x314e9c(0x167)](),_0x15641d[_0x314e9c(0x255)]=_0x314e9c(0x15e);const _0x13dafc=_0x15641d[_0x314e9c(0x220)](_0x65360e)[_0x314e9c(0x280)],_0x13f8f3=Math[_0x314e9c(0x146)](_0x13dafc+0x2*le,Ue);Ot(_0x15641d,{'height':X,'radius':0x4,'width':_0x13f8f3,'fill':_0x5e714d}),_0x15641d[_0x314e9c(0x336)]=_0x314e9c(0x222);const _0x365832=le,_0x7a4c1e=X-pt,_0x27fa33=Ue-0x2*le;if(_0x13dafc>_0x27fa33){let _0x5e589e='',_0x2b9003=0x0;for(const _0x135d11 of _0x65360e){const _0xcc6413=_0x15641d['measureText'](_0x135d11)[_0x314e9c(0x280)];if(_0x2b9003+_0xcc6413<=_0x27fa33-_0x15641d[_0x314e9c(0x220)](_0x314e9c(0x166))[_0x314e9c(0x280)])_0x5e589e+=_0x135d11,_0x2b9003+=_0xcc6413;else{_0x5e589e+=_0x314e9c(0x166);break;}}_0x15641d['fillText'](_0x5e589e,_0x365832,_0x7a4c1e);}else _0x15641d[_0x314e9c(0x1f4)](_0x65360e,_0x365832,_0x7a4c1e);_0x15641d[_0x314e9c(0x2a7)]();}[_0x4b8fc7(0x199)](_0x49822a){const _0x3fe978=_0x4b8fc7;re[_0x3fe978(0xcf)](_0x49822a,this);}}const _e=_0x4b8fc7(0x147),Rt=_0x4b8fc7(0x313),bt=_0x4b8fc7(0x12e),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x4f05bd,_0x563916,_0x272e2b,_0x3633e0){const _0x592572=_0x4b8fc7;_(this,_0x592572(0x2f2),[]),_(this,_0x592572(0x24a),null),_(this,_0x592572(0xe8),null),_(this,_0x592572(0x129),null),_(this,_0x592572(0x32c),null),_(this,_0x592572(0x305),null),(this['_cursor']=_0x4f05bd,this[_0x592572(0x153)]=_0x563916,this[_0x592572(0x1c9)]=_0x272e2b,this[_0x592572(0xc6)]=_0x3633e0,this[_0x592572(0x13a)]());}set['_hover'](_0x3c804a){const _0x3d026c=_0x4b8fc7;_0x3c804a?(this[_0x3d026c(0x129)]&&this[_0x3d026c(0x129)]['hide'](),this[_0x3d026c(0xe8)]&&this[_0x3d026c(0xe8)][_0x3d026c(0x234)]()):(this['_anchorDot']&&this[_0x3d026c(0x129)]['show'](),this[_0x3d026c(0xe8)]&&this[_0x3d026c(0xe8)][_0x3d026c(0x161)]());}[_0x4b8fc7(0x83)](){const _0xd8bc76=_0x4b8fc7;for(const _0xb64eaf of this[_0xd8bc76(0x2f2)])_0xb64eaf[_0xd8bc76(0x83)]();this[_0xd8bc76(0xe8)]&&this[_0xd8bc76(0xe8)][_0xd8bc76(0x83)](),this['_anchorDot']&&this[_0xd8bc76(0x129)]['dispose'](),this[_0xd8bc76(0x24a)]&&this[_0xd8bc76(0x24a)][_0xd8bc76(0x83)](),this[_0xd8bc76(0x305)]&&this[_0xd8bc76(0x305)]();}[_0x4b8fc7(0x13a)](){const _0x39de84=_0x4b8fc7;var _0x385d4c;const {_docSkeleton:_0x13d2c9,_document:_0x358299}=this,{color:_0x3dbf8f,name:_0x1298e5,ranges:_0xe21a5e}=this[_0x39de84(0xac)],_0x14d2e4=_0x358299[_0x39de84(0x2ef)](),{docsLeft:_0x536da9,docsTop:_0x89857f}=_0x14d2e4,_0x8803d2=new T[(_0x39de84(0xd8))](_0x14d2e4,_0x13d2c9);for(const {startOffset:_0x33a2b5,endOffset:_0x420140,rangeType:_0x2aaa8e,segmentId:_0x52a6ba,segmentPage:_0x1ed79d,collapsed:_0x583587,isActive:_0x3c5fc8}of _0xe21a5e){const _0x2a589b=_0x13d2c9[_0x39de84(0x228)](_0x33a2b5,!0x0,_0x52a6ba,_0x1ed79d);let _0x5c170f=_0x13d2c9['findNodePositionByCharIndex'](_0x420140,!0x0,_0x52a6ba,_0x1ed79d);if(_0x5c170f==null&&(_0x5c170f=_0x13d2c9['findNodePositionByCharIndex'](_0x420140-0x1,!0x1,_0x52a6ba,_0x1ed79d)),_0x3c5fc8){const {contentBoxPointGroup:_0x42de46}=_0x8803d2[_0x39de84(0x1a9)](_0x5c170f,_0x5c170f);if(_0x42de46['length']===0x0)continue;this[_0x39de84(0x20f)](_0x3dbf8f,_0x42de46,_0x536da9,_0x89857f,_0x1298e5),this[_0x39de84(0x305)]=this['_handleHover']();}if(_0x2a589b&&_0x5c170f){if(_0x2aaa8e===a[_0x39de84(0x229)]['RECT']){const _0x2efba3=new T[(_0x39de84(0x341))](_0x14d2e4,_0x13d2c9),{pointGroup:_0x355657}=(_0x385d4c=_0x2efba3[_0x39de84(0x1a9)](_0x2a589b,_0x5c170f))!=null?_0x385d4c:{};if(_0x355657==null||_0x355657[_0x39de84(0x34f)]===0x0)continue;this[_0x39de84(0x1e6)](_0x3dbf8f,_0x355657,_0x536da9,_0x89857f);}else{if(!_0x583587){const {borderBoxPointGroup:_0x59fe6d}=_0x8803d2[_0x39de84(0x1a9)](_0x2a589b,_0x5c170f);if(_0x59fe6d['length']===0x0)continue;this[_0x39de84(0x1fa)](_0x3dbf8f,_0x59fe6d,_0x536da9,_0x89857f);}}}}}['_drawAnchor'](_0xfa460c,_0x424426,_0xe32a4f,_0x29faaa,_0x2ea431){const _0x3b6722=_0x4b8fc7,_0x2c5e04=this[_0x3b6722(0xdb)](_0x424426),{left:_0x26ac02,top:_0x2c2fdf,height:_0x4ed4f0}=_0x2c5e04,_0x1a2f38=this[_0x3b6722(0x2b1)](),_0x464c48=Nt/_0x1a2f38,_0x432ba4=new C['Rect'](_e+a[_0x3b6722(0x214)](H),{'left':_0x26ac02+_0xe32a4f-_0x464c48,'top':_0x2c2fdf+_0x29faaa,'height':_0x4ed4f0,'width':Dt,'fill':_0xfa460c||C[_0x3b6722(0x170)](a[_0x3b6722(0x2b5)][_0x3b6722(0xc2)],0x0),'strokeWidth':_0x464c48,'stroke':Ut,'evented':!0x0});this[_0x3b6722(0x24a)]=_0x432ba4,this[_0x3b6722(0x153)][_0x3b6722(0xb4)](_0x432ba4,T[_0x3b6722(0x2bd)]);const _0x44fa5a=new C[(_0x3b6722(0x245))](_e+a[_0x3b6722(0x214)](H),{'left':_0x26ac02+_0xe32a4f-_0x464c48,'top':_0x2c2fdf+_0x29faaa-he/0x2,'height':he,'width':he,'fill':_0xfa460c||C[_0x3b6722(0x170)](a[_0x3b6722(0x2b5)][_0x3b6722(0xc2)],0x0),'strokeWidth':0x0,'stroke':_0xfa460c||C[_0x3b6722(0x170)](a['COLORS']['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x44fa5a,this[_0x3b6722(0x153)][_0x3b6722(0xb4)](_0x44fa5a,T['TEXT_RANGE_LAYER_INDEX']);const _0x43d800=new re(_e+a[_0x3b6722(0x214)](H),{'left':_0x26ac02+_0xe32a4f-_0x464c48,'top':_0x2c2fdf+_0x29faaa-X,'text':_0x2ea431,'color':_0xfa460c});this[_0x3b6722(0xe8)]=_0x43d800,this[_0x3b6722(0x153)][_0x3b6722(0xb4)](_0x43d800,T[_0x3b6722(0x2bd)]),this[_0x3b6722(0x308)]=!0x1;}[_0x4b8fc7(0x1dd)](){const _0x204bef=_0x4b8fc7,_0x1a46bf=this[_0x204bef(0x24a)]['onPointerEnter$'][_0x204bef(0x92)](()=>{this['_hover']=!0x0;}),_0x121818=this[_0x204bef(0x24a)][_0x204bef(0x158)][_0x204bef(0x92)](()=>{const _0x3e1691=_0x204bef;this[_0x3e1691(0x32c)]&&clearTimeout(this[_0x3e1691(0x32c)]),this[_0x3e1691(0x32c)]=setTimeout(()=>{const _0x2ec9ff=_0x3e1691;this[_0x2ec9ff(0x308)]=!0x1;},0x7d0);});return()=>{_0x1a46bf['unsubscribe'](),_0x121818['unsubscribe']();};}[_0x4b8fc7(0x1fa)](_0x3f5cb9,_0x32b872,_0x1ec6b3,_0x4d7e8c){const _0x59633e=_0x4b8fc7,_0x462295=new a['ColorKit'](_0x3f5cb9)[_0x59633e(0x1ee)](0.2)[_0x59633e(0x21a)](),_0x200235=new C['RegularPolygon'](Rt+a['generateRandomId'](H),{'pointsGroup':_0x32b872,'fill':_0x462295||C[_0x59633e(0x170)](a[_0x59633e(0x2b5)][_0x59633e(0xc2)],0.2),'left':_0x1ec6b3,'top':_0x4d7e8c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x59633e(0x2f2)][_0x59633e(0x8d)](_0x200235),this[_0x59633e(0x153)]['addObject'](_0x200235,T[_0x59633e(0x2bd)]);}[_0x4b8fc7(0x1e6)](_0x31c7ee,_0x3ef8b9,_0x20304a,_0x2a98cc){const _0x2ac0fb=_0x4b8fc7,_0x8ce417=new a[(_0x2ac0fb(0x32a))](_0x31c7ee)[_0x2ac0fb(0x1ee)](0.2)[_0x2ac0fb(0x21a)](),_0x20346e=new C[(_0x2ac0fb(0x1e3))](bt+a['generateRandomId'](H),{'pointsGroup':_0x3ef8b9,'fill':_0x8ce417||C[_0x2ac0fb(0x170)](a[_0x2ac0fb(0x2b5)][_0x2ac0fb(0xc2)],0.2),'left':_0x20304a,'top':_0x2a98cc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2ac0fb(0x2f2)][_0x2ac0fb(0x8d)](_0x20346e),this[_0x2ac0fb(0x153)][_0x2ac0fb(0xb4)](_0x20346e,T[_0x2ac0fb(0x2bd)]);}[_0x4b8fc7(0xdb)](_0x1393ce){const _0xb67590=_0x1393ce[0x0],_0x3bdc74=_0xb67590[0x0],_0x4d53f3=_0xb67590[0x2],{x:_0x4a940b,y:_0x2b94a6}=_0x3bdc74,{x:_0x213589,y:_0x5cb1d7}=_0x4d53f3;return{'left':_0x4a940b,'top':_0x2b94a6,'width':_0x213589-_0x4a940b,'height':_0x5cb1d7-_0x2b94a6};}[_0x4b8fc7(0x2b1)](){const _0xe4d738=_0x4b8fc7,{scaleX:_0x55dc39,scaleY:_0x2fe28b}=this[_0xe4d738(0x153)][_0xe4d738(0xf0)]();return Math[_0xe4d738(0x14c)](_0x55dc39,_0x2fe28b);}}var Lt=Object[_0x4b8fc7(0x288)],Mt=(_0x12e759,_0x16c9da,_0x1ad45b,_0x262557)=>{const _0x516c66=_0x4b8fc7;for(var _0x517384=_0x262557>0x1?void 0x0:_0x262557?Lt(_0x16c9da,_0x1ad45b):_0x16c9da,_0x202bd5=_0x12e759[_0x516c66(0x34f)]-0x1,_0x1f29da;_0x202bd5>=0x0;_0x202bd5--)(_0x1f29da=_0x12e759[_0x202bd5])&&(_0x517384=_0x1f29da(_0x517384)||_0x517384);return _0x517384;},q=(_0x15f2f7,_0x183326)=>(_0x2960db,_0x4039c2)=>_0x183326(_0x2960db,_0x4039c2,_0x15f2f7);let Ee=class extends a[_0x4b8fc7(0x312)]{constructor(_0x3f30a9,_0x138ffc,_0x395ea8,_0x52c36b,_0x184124){const _0x3c8c2b=_0x4b8fc7;super(),_(this,_0x3c8c2b(0x2c8),[]),_(this,_0x3c8c2b(0xf3),[]),(this[_0x3c8c2b(0x2d0)]=_0x3f30a9,this[_0x3c8c2b(0xa4)]=_0x138ffc,this[_0x3c8c2b(0x124)]=_0x395ea8,this[_0x3c8c2b(0x22a)]=_0x52c36b,this['_themeService']=_0x184124,this[_0x3c8c2b(0x16a)]());}['_init'](){const _0x5835f9=_0x4b8fc7,_0x5eaa99=this[_0x5835f9(0x2d0)]['unitId'],_0x14842f=this[_0x5835f9(0xa4)];this[_0x5835f9(0x350)](I[_0x5835f9(0x94)]([this[_0x5835f9(0x124)][_0x5835f9(0x128)](_0x5eaa99),this[_0x5835f9(0x278)][_0x5835f9(0x1b4)]])['pipe']($[_0x5835f9(0x13b)](([_0x368c6d,_0x582d6e])=>({'skeleton':_0x14842f[_0x5835f9(0x110)](),'cursors':[..._0x368c6d[_0x5835f9(0x33a)]()][_0x5835f9(0x20e)](_0x2d1da3=>({..._0x2d1da3,'color':this['_themeService'][_0x5835f9(0x1d7)](_0x2d1da3[_0x5835f9(0x1eb)])}))})))[_0x5835f9(0x304)](_0x5dff14=>{const _0x1d471b=_0x5835f9;if(this['_removeCollabCursors'](),_0x5dff14){const {skeleton:_0x4b589e,cursors:_0x5070df}=_0x5dff14;this[_0x1d471b(0x1df)](_0x4b589e,_0x5070df);}})),this[_0x5835f9(0x7f)](),this[_0x5835f9(0x20d)]();}[_0x4b8fc7(0x1df)](_0x2d42cd,_0x1ed724){const _0x358cb8=_0x4b8fc7,{scene:_0x109e7f,mainComponent:_0x52a7ad}=this[_0x358cb8(0x2d0)],_0x52ecce=_0x1ed724[_0x358cb8(0x13b)](_0x5df4ad=>new Le(_0x5df4ad,_0x109e7f,_0x2d42cd,_0x52a7ad));this['_cursorShapes']=_0x52ecce,this[_0x358cb8(0xf3)]=_0x1ed724;}[_0x4b8fc7(0x21c)](){const _0x13d37d=_0x4b8fc7;this['_removeCollabCursors']();const {scene:_0x2d922d,mainComponent:_0x499ee0}=this['_context'],_0x1f39b=this[_0x13d37d(0xa4)][_0x13d37d(0x110)](),_0x23debb=this[_0x13d37d(0xf3)][_0x13d37d(0x13b)](_0x5945c1=>new Le(_0x5945c1,_0x2d922d,_0x1f39b,_0x499ee0));this[_0x13d37d(0x2c8)]=_0x23debb;}[_0x4b8fc7(0x13e)](){const _0x4f37fe=_0x4b8fc7;this['_cursorShapes'][_0x4f37fe(0x7d)](_0x3ae63b=>_0x3ae63b[_0x4f37fe(0x83)]()),this[_0x4f37fe(0x2c8)]=[];}['_initCommandExecutedListener'](){const _0xd1b98e=_0x4b8fc7,_0x286d98=[T['SetDocZoomRatioOperation']['id']];this[_0xd1b98e(0x350)](this[_0xd1b98e(0x22a)][_0xd1b98e(0x289)](_0x1e7868=>{const _0x465184=_0xd1b98e;_0x286d98[_0x465184(0x16f)](_0x1e7868['id'])&&_0x1e7868['params'][_0x465184(0x119)]===this[_0x465184(0x2d0)][_0x465184(0x119)]&&this[_0x465184(0x21c)]();}));}[_0x4b8fc7(0x7f)](){const _0x5469cd=_0x4b8fc7;this[_0x5469cd(0x350)](a['fromEventSubject'](this[_0x5469cd(0x2d0)][_0x5469cd(0x1ba)][_0x5469cd(0x198)])['pipe']($[_0x5469cd(0x145)](_0x3059e7=>_0x3059e7['type']===C[_0x5469cd(0x155)][_0x5469cd(0x85)]),$[_0x5469cd(0x122)](0x10))[_0x5469cd(0x304)](()=>{const _0x1c9861=_0x5469cd;this[_0x1c9861(0x21c)]();}));}};Ee=Mt([q(0x1,a[_0x4b8fc7(0x2ee)](V[_0x4b8fc7(0x1b9)])),q(0x2,a[_0x4b8fc7(0x2ee)](F)),q(0x3,a['ICommandService']),q(0x4,a[_0x4b8fc7(0x2ee)](a[_0x4b8fc7(0x1f9)]))],Ee);function _0x2abb(){const _0x42d881=['_collaborationController','INVITE_CODE_HAS_BEEN_UES','EMAIL_HAS_BEEN_BOUND','Rect','setParam','onStarting','debounce','sheetId','_anchor','UniverIcon','getSheetBySheetId','green.600','setTimeout','handleInsertRangeMoveRight','_uploadLog','ENTITLE_CHAT_LIMIT_EXCEED','ISnapshotServerService','colorChannel1','ENTITLE_REPORT_LIMIT_EXCEED','font','_initUserListener','_memberService','_renderManagerService','post','ICommandService','dirtyRanges','join','totalFormulasToCalculate','_clearPolling','_initCommandInterceptor','SUCCESS','_refRangeService','addClipboardHook','selection','_clearOtherTimers','SheetCollabCursorShape','pipe','deepClone','exhaustSavingTask','1304ZBVdaV','then','APPLY_REVISION_CONFILICT','some','setStateCache','_checkCalculationAvailable','DocCollaborationEntity','_notificationService','/universer-api/frontend/logs','set','on-line-icon','runId','activeSheet$','permission.title','whenReady','_themeService','_saveCache','formula.calculation.waiting','CLOSE_ROOM','12972FGGxPg','loadOfflineData','sessionStatus$','ACTIVE_UNIT_EVENT_CHANNEL','width','_instanceService','unitID','34705LTfnqS','_logService','removeEventListener','_setupSubUnitSync','_cursorInfo$','getOwnPropertyDescriptor','onCommandExecuted','yellow.400','startRow','ENTITLE_INSUFFICIENT_QUOTA','VIEW_MAIN','disableLocalCache','addEventListener','univerjs-icon\x20univerjs-icon-','startColumn','SetWorksheetActivateCommand','PAYMENT_CHANNEL_NOT_SUPPORT','syncEditingCollabCursor','0\x200\x2016\x2016','getRenderById','_collabCursorState$','getCellMatrix','params','handleIRemoveCol','AWAITING_WITH_PENDING','_transformHistoryAndStateStack','_updateURLWithCurrentState','966mSjmcI','dispose$','LocaleService','assignAColorForMemberID','forwardRef','Tools','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','createElement','_checkAndWaitForCalculationPermission','restore','memberID','ENTITLE_DUP_SUBSCRIPTION','getSheetId','isArray','registerRefRange','BehaviorSubject','send','WebSocketService','IConfigService','_getScale','_range','ENSURE_SNAPSHOT_EXECUTION','toDisposable','COLORS','INVITE_CODE_REQUIRED','stack','getTypeOfUnitAdded$','ENTITLE_NEED_BILLING_ADDRESS','UNAUTHENTICATED','REDEMPTION_CODE_INACTIVE','_onCursorDelete','TEXT_RANGE_LAYER_INDEX','_heartbeatTimer','idSuffix','_applyCommand','YUUMI_UNABLE_LOAD_URL','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','type','result','getUnitStatus$','SetFormulaCalculationStartMutation','Error','_cursorShapes','handleInsertRangeMoveDown','transformSelections','CollaborationEvent','SNAPSHOT_INVALID_SNAPSHOT','jiqing.500','attrs','_hasFormulaInDirtyRanges','_context','SOCKET_FAILED','_hovered','WECHAT_HAS_BEEN_BOUND','_docStateChangeManagerService','REDEMPTION_CODE_NOT_STARTED','TEXT','getVpScrollXYInfoByPosToVp','transformIMECache','ALREADY_EXISTS','_online','SheetSkeletonManagerService','IBeforeCloseService','current','redoState','getMemberID','limitInfo','_updateSubUnitFromURLParams','has','REDEMPTION_CODE_HAS_BEEN_CREATED','switchMap','all','[CollaborationDataLoaderController]','APPLY_DUPLICATED','doc.mutation.rich-text-editing','Workbook','onMouseMove','EMAIL_VERIFY_CODE_MISMATCH','CONNECTOR_DATA_TOO_LARGE','docStateChange$','Inject','getOffsetConfig','beginPath','currentSkeleton$','_shapes','getUniverSheetInstance','permission.content','DocSelectionManagerService','enableFrontendLog','WebBrowserSingleActiveUnitService','univer-flex\x20univer-items-center','path','RemoveRowCommandId','_getFormulaLimitStatus','_configService','EffectRefRangId','history','_unitOnClients','collabStatus.conflict','LICENSE_MAX_UNITS_EXCEEDED','_localCacheService','unload','subscribe','_eventUnsubscribe','currentUsage','_initEvent','_hover','_handleLeaveEvent','FETCH_MISS','debug','useCallback','_config','Plugin','getRelativeToViewportCoord','hovered','getActiveRange','RxDisposable','collab-text-range-','cursorInfo$','_scheduleHeartbeat','onRendered','collabStatus.fetchMiss','_setupBeforeClosingHandler','_onRefRangeChange','string','div','YUUMI_URL_COL_OUT_OF_RANGE','jsx','getformulaLimitStatusUrl','name','toString','Loading','next','SessionStatus','M0\x200H16V16H0z','RefRangeService','UniverInstanceType','RemoteUniscriptService','collabStatus.offline','colno','ColorKit','_collabSessionService','_hideTimer','code','START_CALCULATION','_univerInstanceService','UNRECOGNIZED','location','INVALID_ARGUMENT','getConfig','_id','replaceState','fillStyle','SheetsSelectionsService','subUnitId','LOCAL_CACHE_INTERVAL_KEY','values','collabStatus.notCollab','svg','OTHER_CLIENTS_EDITING','ONLINE','reconnect','FormulaExecuteStageType','NodePositionConvertToRectRange','data','bottom','ILogService','_urlService','_initUnhandledRejectionListener','editingUnit','m2Prime','1341320tucnmw','_send','_httpService','APPLY_PERMISSION_DENIED','use','InsertRowCommandId','length','disposeWithMe','takeUntil','FromArray','_collaborationUIEventService','collaboration-client-ui.config','defs','clsx','closePath','forEach','getCurrentRevOfUnit','_initResize','transformMutation','_startDocCollabCursor','imageSourceType','dispose','WebURLService','resize','endColumn','ranges','complete','[Unhandled\x20Rejection]:\x20','urlChange$','actions','583148ALdEVQ','push','InsertColCommandId','UnitStatus','useDependency','PERMISSION_DENIED','subscribeEvent','_docTransformIMECacheService','combineLatest','_getSheetObject','_monkeyPatchLogService','fill','_saveTaskMap','popstate','getCellPositionByOffset','collabCursorState$','_toggleOffline','26642EZRgWN','range','getUndoRedoMutationParamsCache','transformByState','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_backgroundColor','OFFLINE','_docSkeletonManagerService','DataLoaderService','LOGIN_FAILED','UNIVER_DOC','parseInt','url(#$1','application/json','undoState','_cursor','_lastResponseTimestamp','Success','RECT','setShapeProps','LOCAL_CACHE_INTERVAL','HTTPService','_colorAssignService','addObject','INTERNAL_ERROR','replace','CHANGESET_REVISION_CONFILICT','_registerRenderDependencies','AWAITING','ENTITLE_INVALID_COUPON_CODE','_roomMembers$','source','_name','_disabled','disposeUnit','key','_maxFormulaLimit','black','random','LICENSE_EXPORT_SIZE_EXCEEDED','getMergeData','_document','_lastPointer','LICENSE_DISTRO_REJECTED','_currentUsage','/run/','YUUMI_ASYNCIO_CANCELLED','serializeRangeWithSheet','?taskId=','selections','drawWith','_assignedColors','DocStateChangeManagerService','UniverCollaborationClientPlugin','transformStateCache','_color','stageInfo','_initWindowErrorListener','Warning','NodePositionConvertToCursor','collaboration.closeRoom','isFormulaString','_getAnchorBounding','useRef','purple.300','uni.network.url-service','labelPosition','ERROR_AGAIN','getCurrent','_initStatusListener','mutations','getItem','DEFAULT_WS_SESSION_TICKET_URL','YUUMI_RATE_OVER_LIMIT','DocIMEInputManagerService','_textBubble','saveTaskMap','/universer-api/license/formula/limit/status','connectInjector','IUniverInstanceService','round','_registerDependencies','_scheduleClearOtherTimer','getAncestorScale','_imageIoService','DesktopCollaborationStatusDisplayController','_cursors','registerDependencies','getUnit','_handleEvent','getValue','runOnServer','[RemoteUniscriptService]:\x20no\x20focused\x20unit','Shape','99pJNnnb','xlink:href','cursorInfo','REDEMPTION_INVALID_CODE','DATA_SOURCE_TOO_LARGE','_beforeCloseService','Failed','_docClipboardService','UniverCollaborationClientUIPlugin','getSheetObject','_getSaveTimeout','session.collaboration-timeout','_sheetSkeletonManagerService','symbol','updateOfflineData','NOT_COLLAB','fromEvent','entityInit$','column','_session','mergeOverrideWithDependencies','getSkeleton','href','bind','textRanges','_createSocketURL','collabStatus.syncing','http://www.w3.org/2000/svg','_unitStatus','HEADER_MENU','unitId','roomMembers','_doCreateSocket','[LogService\x20Error]:\x20','trim','ILocalCacheService','INVALID_INVITE_CODE','handleDeleteRangeMoveLeft','translate(.97)','throttleTime','defIds','_collabCursorController','off-line-icon','from','IRenderManagerService','getCollabCursors$','_anchorDot','_taskIds','InsertRangeMoveDownCommandId','saveOfflineData','SUBMIT_CHANGESET_TIMEOUT','collab-rect-range-','transformRemoteChangeset','_dataLoaderService','distinctUntilChanged','roomMembers$','MOBILE_VERIFY_CODE_MISMATCH','onLocalMutation','lineTo','CollaborationDataLoaderController','body','COMPLETION_FINISHED','onPointerMove$','_render','map','stringify','substring','_removeCollabCursors','CollaborationUIEventService','url(#on-line-icon_clip0_910_349)','_initStatusComponent','skeleton','currentColor','startFormulaLimitUrl','filter','min','collab-text-anchor-','beforeCommandExecuted','INVITE_CODE_ALREADY_BOUND','YUUMI_SUBSCRIPTION_NOT_FOUND','USER_IS_ANONYMOUS','max','RemoveColCommandId','formula.calculation.unable','_colorIndex','moveTo','getFocusedUnit','_docTransformStateCacheService','_scene','executeCommand','TRANSFORM_CHANGE_OBSERVABLE_TYPE','evenodd','registerRenderModule','onPointerLeave$','_transformPreviousActiveRange','_memberID','CollaborationController','requireSession','_onCursorUpdate','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','search','collab-client.tooltip.reconnect','hide','saveImage','sessionTicket','Vector2','Rectangle','...','save','USER_NOT_INVITED_CODE','_toggleOnline','_init','getStateCache','sheetID','get','blue.400','includes','getColor','AUTHORIZE_CODE_ILLEGAL','_transformUndoRedoStack','_cachedData','loadUnit','handleMoveRange','CollaborationUIEventId','YUUMI_TABLE_NOT_FOUND_IN_UNIT','CURRENT_STATUS_CANNOT_OPERATE','_getSessionTicket','_messageService','ENTITLE_COUPON_EXPIRED','debounceTime','replaceDocRanges','getTypeOfUnitDisposed$','APPLY_NON_SEQUENTIAL_REVISION','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','getParam','univer-mr-2\x20univer-flex\x20univer-text-xl','1em','mask','isTransformMutationFailure','RevisionService','_handleJoinEvent','LOGIN_TOKEN_PROCESSING_FAILED','APPLY_REJECT','NOT_FOUND','transformMutationsWithChangeset','OnLineIcon','USERS_LEAVE','UNDEFINED','73316CpjBUp','DisposableCollection','_startCalculationLimit','clearInterval','_transformService','assign','_initEntityListener','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','isEditing','onTransformChange$','_draw','entries','_selfUnitIDs','isTransformMutationsWithChangesetSuccess','0\x200\x2017\x2016','unhandledrejection','_pollingInterval','getLocalCacheKey','size','subunit','m1Prime','_injector','text','none','_labelPosition','getMember','getRangePointData','45LQrlNJ','_scheduleSaving','displayName','getCoordByCell','setInterval','ITransformService','CollaborationSessionService','split','on-line-icon_clip0_910_349','REDEMPTION_USER_NOT_ELIGIBLE','currentTheme$','MOBILE_HAS_BEEN_BOUND','_entityInit$','REDEMPTION_CODE_FULLY_REDEEMED','event$','DocSkeletonManagerService','engine','origin','newValue','/universer-api/license/formula/limit/done','asObservable','defineProperty','handleInsertRow','BrowserCollaborationSocketService','YUUMI_CONNECTOR_URL_NOT_FOUND','YUUMI_ALL_TABLES_IS_INVALID','IImageIoService','clearTimeout','with','ENTITLE_COUPON_USED_UP','executionId','_docSkeleton','eventID','setUndoRedoMutationParamsCache','Disposable','PY_RUNTIME_SCRIPT_ERROR','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','handleDeleteRangeMoveUp','SetSelectionsOperation','row','_getMergeRange','arc','deserializeRangeWithSheet','pluginName','YUUMI_NO_CUBOID_FOR_QUESTION','getColorFromTheme','unshift','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','init','CollaborationStatus','UNIVER_SHEET','_handleHover','_ensureSubject','_updateCollabCursors','isActive','error','now','RegularPolygon','Injector','MessageType','_drawRectRange','getCollabEntity$','collaboration.offline-data-not-saved','find','SNAPSHOT_HAS_BEEN_REMOVED','color','1051672lUweyh','12725ycjEeL','setAlpha','_localStorageService','endRow','_entities','FormulaExecutedStateType','top','fillText','stage','getUnitId','IUIPartsService','_handleHeartbeatEvent','ThemeService','_drawTextRange','\x20at\x20','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','CommandType','_removeClearOtherTimer','getActiveSheet','_setFormulaLimitStatus','Tooltip','DependentOn','catch','YUUMI_AI_RUN_FAILED','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_status$','DeleteRangeMoveLeftCommandId','Optional','runRefRangeMutations','IMessageService','MemberService','white','_initCommandExecutedListener','flatMap','_drawAnchor','children','toStringTag','USER_NOT_FOUND','_revisionService','generateRandomId','contains','touchDependencies','LICENSE_IMPORT_SIZE_EXCEEDED','SYNCED','add','toRgbString','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_refreshCollabCursors','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','registerBeforeClose','_docSyncEditingCollabCursorService','measureText','searchParams','#FFF','unit','delete','_docTransformSelectionsService','tag','_uiPartsService','findNodePositionByCharIndex','DOC_RANGE_TYPE','_commandService','_initDependencies','socket$','_localeService','red.300','_updateLocalCursor','UPDATE_CURSOR','Unknown\x20user','height','setConfig','show','IURLService','invokeId','setItem','collaboration.single-unit.warning','merge','ENTITLE_USE_COUPON_NOT_1ST_TRADE','parse','session.connection-failed','clipPath','handleInsertCol','getDocRanges','TOO_MANY_REQUESTS','_showGuardMessage'];_0x2abb=function(){return _0x42d881;};return _0x2abb();}const At=0x1,Pt=1.5;class je extends C[_0x4b8fc7(0xfa)]{constructor(_0x482212,_0x1b42a0){const _0x57806a=_0x4b8fc7;super(_0x482212,_0x1b42a0),_(this,_0x57806a(0xd4)),_(this,_0x57806a(0x2d2),!0x1),_(this,'_range'),_(this,'_name',''),_(this,_0x57806a(0x1a7),_0x57806a(0x1f3)),_(this,_0x57806a(0xa2)),(_0x1b42a0&&this[_0x57806a(0xb0)](_0x1b42a0),this['onPointerEnter$'][_0x57806a(0x92)](()=>this[_0x57806a(0xb0)]({'hovered':!0x0})),this['onPointerLeave$'][_0x57806a(0x92)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x12b489){const _0x25cb42=_0x4b8fc7;var _0x3f1312,_0x385f1e,_0x43ea14,_0x46ef5d,_0x476f0d,_0x3eaa43;this['_color']=(_0x3f1312=_0x12b489[_0x25cb42(0x1eb)])!=null?_0x3f1312:this[_0x25cb42(0xd4)],this[_0x25cb42(0x2d2)]=(_0x385f1e=_0x12b489[_0x25cb42(0x310)])!=null?_0x385f1e:this[_0x25cb42(0x2d2)],this['_range']=(_0x43ea14=_0x12b489[_0x25cb42(0x9e)])!=null?_0x43ea14:this[_0x25cb42(0x2b2)],this[_0x25cb42(0xbd)]=(_0x46ef5d=_0x12b489['name'])!=null?_0x46ef5d:this[_0x25cb42(0xbd)],this[_0x25cb42(0x1a7)]=(_0x476f0d=_0x12b489[_0x25cb42(0xdf)])!=null?_0x476f0d:this[_0x25cb42(0x1a7)],this['_backgroundColor']=(_0x3eaa43=_0x12b489['backgroundColor'])!=null?_0x3eaa43:this['_backgroundColor'],this[_0x25cb42(0xa0)]({'width':_0x12b489[_0x25cb42(0x280)],'height':_0x12b489[_0x25cb42(0x232)]});}[_0x4b8fc7(0x2ea)](_0x15263c){const _0x58a6d2=_0x4b8fc7,{row:_0x1b6ad9,column:_0x32db4f}=_0x15263c;if(_0x1b6ad9>=this[_0x58a6d2(0x2b2)][_0x58a6d2(0x28b)]&&_0x1b6ad9<=this[_0x58a6d2(0x2b2)][_0x58a6d2(0x1f0)]&&_0x32db4f>=this['_range'][_0x58a6d2(0x291)]&&_0x32db4f<=this[_0x58a6d2(0x2b2)][_0x58a6d2(0x86)]){this[_0x58a6d2(0xb0)]({'hovered':!0x0});return;}this[_0x58a6d2(0xb0)]({'hovered':!0x1});}['triggerDblclick'](_0x1e7748){return!0x1;}['_draw'](_0x3a9f14){const _0x5c0c25=_0x4b8fc7;C[_0x5c0c25(0x245)][_0x5c0c25(0xcf)](_0x3a9f14,{'width':this[_0x5c0c25(0x280)],'height':this[_0x5c0c25(0x232)],'strokeWidth':Pt,'stroke':this[_0x5c0c25(0xd4)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x5c0c25(0x2d2)]&&(_0x3a9f14[_0x5c0c25(0x167)](),_0x3a9f14['transform'](0x1,0x0,0x0,0x1,this[_0x5c0c25(0x280)],this['_labelPosition']===_0x5c0c25(0x343)?0x0:-X),re[_0x5c0c25(0xcf)](_0x3a9f14,{'text':this[_0x5c0c25(0xbd)],'color':this[_0x5c0c25(0xd4)]}),_0x3a9f14['restore']());}}var wt=Object[_0x4b8fc7(0x288)],yt=(_0x271b8f,_0x4baf17,_0x8b4a36,_0x456457)=>{const _0x473682=_0x4b8fc7;for(var _0x4ecef2=_0x456457>0x1?void 0x0:_0x456457?wt(_0x4baf17,_0x8b4a36):_0x4baf17,_0x11e4b0=_0x271b8f[_0x473682(0x34f)]-0x1,_0xb26866;_0x11e4b0>=0x0;_0x11e4b0--)(_0xb26866=_0x271b8f[_0x11e4b0])&&(_0x4ecef2=_0xb26866(_0x4ecef2)||_0x4ecef2);return _0x4ecef2;},ue=(_0x673267,_0x597089)=>(_0x4bdaa8,_0x37fb8a)=>_0x597089(_0x4bdaa8,_0x37fb8a,_0x673267);function _0x3f9c(_0x197fa9,_0x4e4dab){_0x197fa9=_0x197fa9-0x7b;const _0x2abb65=_0x2abb();let _0x3f9c88=_0x2abb65[_0x197fa9];return _0x3f9c88;}const $t=0x1389;let Ce=class extends a[_0x4b8fc7(0x312)]{constructor(_0x36c070,_0xd55802,_0x576243,_0x43a439){const _0x20281b=_0x4b8fc7;super(),_(this,_0x20281b(0xf3),new Set()),_(this,'_lastPointer',null),(this[_0x20281b(0x2d0)]=_0x36c070,this['_sheetSkeletonManagerService']=_0xd55802,this[_0x20281b(0x124)]=_0x576243,this['_themeService']=_0x43a439,this[_0x20281b(0x16a)]());}['_init'](){const _0x38ca16=_0x4b8fc7;this[_0x38ca16(0x107)][_0x38ca16(0x2f1)][_0x38ca16(0x266)]($[_0x38ca16(0x351)](this[_0x38ca16(0x29f)]),$[_0x38ca16(0x2e4)](_0x132e05=>{const _0x457441=_0x38ca16;if(_0x132e05){const _0x1c9e1e=_0x132e05[_0x457441(0x249)];return I[_0x457441(0x94)](this[_0x457441(0x124)][_0x457441(0x128)](this['_context'][_0x457441(0x119)]),this[_0x457441(0x278)][_0x457441(0x1b4)])[_0x457441(0x266)]($[_0x457441(0x13b)](([_0x5275ca,_0x59517e])=>{const _0x373919=_0x457441,_0x2dfe76=new Map();return _0x5275ca[_0x373919(0x7d)]((_0x14e945,_0x286c28)=>{const _0x2b3ab4=_0x373919;if(_0x14e945[_0x2b3ab4(0x16c)]===_0x1c9e1e){const _0x5c340b={..._0x14e945};_0x5c340b[_0x2b3ab4(0x1eb)]=this[_0x2b3ab4(0x278)]['getColorFromTheme'](_0x14e945['color']),_0x2dfe76['set'](_0x286c28,_0x5c340b);}}),{'skeleton':_0x132e05,'cursors':_0x2dfe76};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x38ca16(0x304)](({skeleton:_0x211d1a,cursors:_0x100ab7})=>{const _0x37096a=_0x38ca16;this[_0x37096a(0x13e)](),_0x211d1a&&this[_0x37096a(0x1df)](_0x211d1a,_0x100ab7);}),this[_0x38ca16(0x107)][_0x38ca16(0x2f1)][_0x38ca16(0x304)](_0x3e2a45=>{const _0x5ba78b=_0x38ca16;if(_0x3e2a45==null)return;const {skeleton:_0x1742f5}=_0x3e2a45,{scene:_0x1ccbb8}=this[_0x5ba78b(0x2d0)];_0x1ccbb8[_0x5ba78b(0x139)][_0x5ba78b(0x92)](a[_0x5ba78b(0x248)](_0x526052=>{const _0x29bf28=_0x5ba78b;var _0x1559b0,_0x3723d5;const {offsetX:_0x72aa10,offsetY:_0x2861a3}=_0x526052,{x:_0x57bb75,y:_0x243453}=_0x1ccbb8[_0x29bf28(0x30f)](C['Vector2'][_0x29bf28(0x352)]([_0x72aa10,_0x2861a3])),{scaleX:_0x4166a9,scaleY:_0x371ea9}=_0x1ccbb8[_0x29bf28(0xf0)](),_0x27ab92=_0x1ccbb8['getViewport'](C['SHEET_VIEWPORT_KEY'][_0x29bf28(0x28d)]),_0x128e1d=_0x1ccbb8[_0x29bf28(0x2d7)](C[_0x29bf28(0x164)][_0x29bf28(0x352)]([_0x57bb75,_0x243453]),_0x27ab92),_0x2cd321=_0x1742f5[_0x29bf28(0x9a)](_0x72aa10,_0x2861a3,_0x4166a9,_0x371ea9,_0x128e1d);((_0x1559b0=this[_0x29bf28(0xc7)])==null?void 0x0:_0x1559b0[_0x29bf28(0x10d)])===_0x2cd321[_0x29bf28(0x10d)]&&((_0x3723d5=this[_0x29bf28(0xc7)])==null?void 0x0:_0x3723d5[_0x29bf28(0x1d1)])===_0x2cd321[_0x29bf28(0x1d1)]||this[_0x29bf28(0xf3)][_0x29bf28(0x7d)](_0x4a84a8=>{const _0x215c2e=_0x29bf28;_0x4a84a8[_0x215c2e(0x2ea)](_0x2cd321);});},0x64));});}['_updateCollabCursors'](_0x3ff953,_0x5f0a0b){const _0x4efc28=_0x4b8fc7;var _0x45827e;const _0x4da674=(_0x45827e=this[_0x4efc28(0x107)][_0x4efc28(0xe1)]())==null?void 0x0:_0x45827e[_0x4efc28(0x142)];if(!_0x4da674)return;const _0x371641=this[_0x4efc28(0x95)]();if(!_0x371641)return;this['_cursors'][_0x4efc28(0x7d)](_0x5c3b2b=>{_0x5c3b2b['makeDirty']();});const {scene:_0x20ac08}=_0x371641,_0x3d82a5=xt(Array['from'](_0x5f0a0b['values']()))['map'](_0x2b0923=>{const _0x59d609=_0x4efc28,{color:_0x4c7371,range:_0x19a7b5,name:_0x3d6fe1,selection:_0x21c097,sheetID:_0x56eab2}=_0x2b0923,{startColumn:_0x386676,startRow:_0x142e06,endColumn:_0x30d2d4,endRow:_0x58a79f}=_0x19a7b5,_0x188f59=J[_0x59d609(0x1ad)](_0x142e06,_0x386676,_0x20ac08,_0x4da674),_0x57d6ca=J[_0x59d609(0x1ad)](_0x58a79f,_0x30d2d4,_0x20ac08,_0x4da674),{columnHeaderHeightAndMarginTop:_0x44b717}=_0x4da674,{startX:_0x1c3a9d,startY:_0x1c92a2}=_0x188f59,{endX:_0x330973,endY:_0x59b6ec}=_0x57d6ca,_0x42bb37=_0x330973-_0x1c3a9d,_0x9cfc0b=_0x59b6ec-_0x1c92a2,_0x4cbbe8={'labelPosition':_0x1c92a2-_0x44b717>=X?_0x59d609(0x1f3):_0x59d609(0x343),'sheetID':_0x56eab2,'range':_0x19a7b5,'color':_0x4c7371,'name':_0x3d6fe1,'selection':_0x21c097,'left':_0x1c3a9d,'top':_0x1c92a2,'width':_0x42bb37,'height':_0x9cfc0b,'evented':!0x1,'zIndex':$t};return new je(_0x3d6fe1,_0x4cbbe8);});_0x20ac08['addObjects'](_0x3d82a5,At),this['_cursors']=new Set(_0x3d82a5);}[_0x4b8fc7(0x13e)](){const _0x1d6126=_0x4b8fc7;var _0x42f3a7;(_0x42f3a7=this['_cursors'])==null||_0x42f3a7[_0x1d6126(0x7d)](_0x4f982e=>_0x4f982e[_0x1d6126(0x83)]());}[_0x4b8fc7(0x95)](){const _0x687110=_0x4b8fc7;return J[_0x687110(0x104)](this[_0x687110(0x2d0)][_0x687110(0x223)],this[_0x687110(0x2d0)]);}};Ce=yt([ue(0x1,a[_0x4b8fc7(0x2ee)](J[_0x4b8fc7(0x2db)])),ue(0x2,a[_0x4b8fc7(0x2ee)](F)),ue(0x3,a['Inject'](a[_0x4b8fc7(0x1f9)]))],Ce);function xt(_0x30b1da){const _0xf4e748=_0x4b8fc7,_0xb0e651=new Map();return _0x30b1da[_0xf4e748(0x7d)](_0x5d8de1=>{const _0x68cea3=_0xf4e748;if(_0xb0e651[_0x68cea3(0x2e2)](_0x5d8de1[_0x68cea3(0x263)])){const _0x15b936=_0xb0e651['get'](_0x5d8de1[_0x68cea3(0x263)]);_0x15b936[_0x68cea3(0x31f)]+=',\x20'+_0x5d8de1[_0x68cea3(0x31f)];}else _0xb0e651[_0x68cea3(0x272)](_0x5d8de1['selection'],_0x5d8de1);}),Array[_0xf4e748(0x126)](_0xb0e651[_0xf4e748(0x33a)]());}var Bt=Object['getOwnPropertyDescriptor'],Ft=(_0x223105,_0x3c19d8,_0xd7b284,_0x8088aa)=>{const _0x506557=_0x4b8fc7;for(var _0x36ce95=_0x8088aa>0x1?void 0x0:_0x8088aa?Bt(_0x3c19d8,_0xd7b284):_0x3c19d8,_0x2215ba=_0x223105[_0x506557(0x34f)]-0x1,_0x2ff11d;_0x2215ba>=0x0;_0x2215ba--)(_0x2ff11d=_0x223105[_0x2215ba])&&(_0x36ce95=_0x2ff11d(_0x36ce95)||_0x36ce95);return _0x36ce95;},y=(_0xcf630,_0x19c894)=>(_0x40c655,_0x173ab0)=>_0x19c894(_0x40c655,_0x173ab0,_0xcf630);let Z=class extends a['Disposable']{constructor(_0x5e4fc5,_0x121e17,_0x273700,_0x4a0bd2,_0x40b5d4,_0x5380e4){const _0x4f4a4a=_0x4b8fc7;super(),this[_0x4f4a4a(0x100)]=_0x5e4fc5,this[_0x4f4a4a(0x302)]=_0x121e17,this['_collaborationUIEventService']=_0x273700,this[_0x4f4a4a(0x17a)]=_0x4a0bd2,this[_0x4f4a4a(0x270)]=_0x40b5d4,this[_0x4f4a4a(0x22d)]=_0x5380e4,this[_0x4f4a4a(0x318)](),this[_0x4f4a4a(0x307)]();}[_0x4b8fc7(0x318)](){const _0x343259=_0x4b8fc7;this['disposeWithMe'](this['_beforeCloseService'][_0x343259(0x21e)](()=>{const _0x10b29a=_0x343259;if(this[_0x10b29a(0x302)]['saveTaskMap'][_0x10b29a(0x1a1)])return this[_0x10b29a(0x22d)]['t'](_0x10b29a(0x1e8));}));}[_0x4b8fc7(0x307)](){const _0x270df2=_0x4b8fc7;this['disposeWithMe'](this[_0x270df2(0x353)][_0x270df2(0x1b8)][_0x270df2(0x304)](_0x134fe0=>{const _0x2e849f=_0x270df2;_0x134fe0['id']===u[_0x2e849f(0x176)]['OTHER_CLIENT_EDITING']&&this[_0x2e849f(0x17a)][_0x2e849f(0x234)]({'type':p[_0x2e849f(0x1e5)]['Warning'],'content':this[_0x2e849f(0x22d)]['t'](_0x2e849f(0x238))}),_0x134fe0['id']===u[_0x2e849f(0x176)][_0x2e849f(0x27b)]&&this[_0x2e849f(0x17a)]['show']({'type':p[_0x2e849f(0x1e5)][_0x2e849f(0xd7)],'content':this[_0x2e849f(0x22d)]['t'](_0x2e849f(0xd9))}),_0x134fe0['id']===u['CollaborationUIEventId'][_0x2e849f(0x91)]&&this[_0x2e849f(0x270)][_0x2e849f(0x234)]({'title':this['_localeService']['t'](_0x2e849f(0x276)),'content':this[_0x2e849f(0x22d)]['t'](_0x2e849f(0x2f4)),'type':_0x2e849f(0x1e1),'duration':0x0}),_0x134fe0['id']===u[_0x2e849f(0x176)]['CONFLICT']&&this[_0x2e849f(0x17a)]['show']({'type':p['MessageType']['Error'],'content':this[_0x2e849f(0x22d)]['t'](_0x2e849f(0xd9))+'('+_0x134fe0['data']+')'}),_0x134fe0['id']===u[_0x2e849f(0x176)]['JOIN_ROOM_FAILED']&&this[_0x2e849f(0x17a)][_0x2e849f(0x234)]({'type':p['MessageType'][_0x2e849f(0xd7)],'content':this[_0x2e849f(0x22d)]['t'](_0x134fe0[_0x2e849f(0x342)]||'')}),_0x134fe0['id']===u[_0x2e849f(0x176)]['SOCKET_FAILED_RETRY']&&this[_0x2e849f(0x17a)][_0x2e849f(0x234)]({'type':p['MessageType']['Warning'],'content':this['_localeService']['t']('session.will-retry')}),_0x134fe0['id']===u[_0x2e849f(0x176)][_0x2e849f(0x2d1)]&&this[_0x2e849f(0x17a)][_0x2e849f(0x234)]({'type':p[_0x2e849f(0x1e5)]['Error'],'content':this[_0x2e849f(0x22d)]['t'](_0x2e849f(0x23c))}),_0x134fe0['id']===u[_0x2e849f(0x176)][_0x2e849f(0x12d)]&&this[_0x2e849f(0x17a)][_0x2e849f(0x234)]({'type':p[_0x2e849f(0x1e5)][_0x2e849f(0x2c7)],'content':this[_0x2e849f(0x22d)]['t'](_0x2e849f(0x106))});}));}};Z=Ft([y(0x0,O[_0x4b8fc7(0x2dc)]),y(0x1,u[_0x4b8fc7(0x11e)]),y(0x2,a['Inject'](u[_0x4b8fc7(0x13f)])),y(0x3,O[_0x4b8fc7(0x20a)]),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a['LocaleService']))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x5086aa,_0x56d5b2,_0x57bbd0,_0x35ef11)=>{const _0x3ad5d0=_0x4b8fc7;for(var _0x589d24=_0x35ef11>0x1?void 0x0:_0x35ef11?jt(_0x56d5b2,_0x57bbd0):_0x56d5b2,_0x579f85=_0x5086aa[_0x3ad5d0(0x34f)]-0x1,_0x4fe5fa;_0x579f85>=0x0;_0x579f85--)(_0x4fe5fa=_0x5086aa[_0x579f85])&&(_0x589d24=_0x4fe5fa(_0x589d24)||_0x589d24);return _0x589d24;},z=(_0x2a3317,_0x48ee91)=>(_0x184a81,_0x16c37c)=>_0x48ee91(_0x184a81,_0x16c37c,_0x2a3317);let Q=class extends a['Disposable']{constructor(_0x4d5ac6,_0x4374c0,_0x3abbf4,_0x2b404e){const _0x4ca651=_0x4b8fc7;super(),_(this,_0x4ca651(0x15a)),(this['_injector']=_0x4d5ac6,this['_httpService']=_0x4374c0,this[_0x4ca651(0x284)]=_0x3abbf4,this['_collaborationSessionService']=_0x2b404e,this[_0x4ca651(0x16a)]());}[_0x4b8fc7(0x16a)](){const _0x31a5ca=_0x4b8fc7;this[_0x31a5ca(0xd6)](),this[_0x31a5ca(0x346)](),this[_0x31a5ca(0x96)](),this[_0x31a5ca(0x256)]();}[_0x4b8fc7(0x256)](){const _0x3bb3b7=_0x4b8fc7;this['disposeWithMe'](this['_collaborationSessionService'][_0x3bb3b7(0x22c)]['subscribe'](_0x2cd9fb=>{const _0x36a05b=_0x3bb3b7;this[_0x36a05b(0x15a)]=_0x2cd9fb==null?void 0x0:_0x2cd9fb[_0x36a05b(0x2a8)];}));}[_0x4b8fc7(0xd6)](){const _0x47e05f=_0x4b8fc7,_0x4bd8e7=_0x4b51a0=>{const _0x2cb700=_0x3f9c;var _0x442ae2;this[_0x2cb700(0x250)]('error','[Window\x20Error]:\x20'+_0x4b51a0['message']+_0x2cb700(0x1fb)+_0x4b51a0['filename']+':'+_0x4b51a0['lineno']+':'+_0x4b51a0[_0x2cb700(0x329)]+'\x0a'+(((_0x442ae2=_0x4b51a0[_0x2cb700(0x1e1)])==null?void 0x0:_0x442ae2[_0x2cb700(0x2b7)])||''));};window[_0x47e05f(0x28f)](_0x47e05f(0x1e1),_0x4bd8e7),this[_0x47e05f(0x350)](()=>{const _0x58d0bf=_0x47e05f;window[_0x58d0bf(0x285)](_0x58d0bf(0x1e1),_0x4bd8e7);});}['_initUnhandledRejectionListener'](){const _0x195726=_0x4b8fc7,_0x233a22=_0x44d919=>{const _0x24424f=_0x3f9c;this['_uploadLog'](_0x24424f(0x1e1),_0x24424f(0x89)+_0x44d919['reason']);};window[_0x195726(0x28f)](_0x195726(0x19e),_0x233a22),this[_0x195726(0x350)](()=>{const _0x31cd2d=_0x195726;window[_0x31cd2d(0x285)]('unhandledrejection',_0x233a22);});}[_0x4b8fc7(0x96)](){const _0x36feb5=_0x4b8fc7,_0x316642=this[_0x36feb5(0x284)][_0x36feb5(0x1e1)][_0x36feb5(0x112)](this[_0x36feb5(0x284)]);this[_0x36feb5(0x284)]['error']=(..._0x5c8598)=>{const _0x45f2d3=_0x36feb5,_0x3132ea=_0x5c8598[_0x45f2d3(0x13b)](_0x1b0f1b=>_0x1b0f1b instanceof Error?_0x1b0f1b['message']+'\x0a'+_0x1b0f1b[_0x45f2d3(0x2b7)]:String(_0x1b0f1b))[_0x45f2d3(0x25c)]('\x20');this[_0x45f2d3(0x250)](_0x45f2d3(0x1e1),_0x45f2d3(0x11c)+_0x3132ea),_0x316642(..._0x5c8598);},this[_0x36feb5(0x350)](()=>{const _0x4b98a2=_0x36feb5;this[_0x4b98a2(0x284)][_0x4b98a2(0x1e1)]=_0x316642;});}[_0x4b8fc7(0x250)](_0x354b90,_0x458f5a){const _0x1f9a8b=_0x4b8fc7;try{const _0xe3ab9d={'userId':this['_memberID'],'logLabel':_0x354b90,'content':_0x458f5a};this[_0x1f9a8b(0x34b)]['post'](_0x1f9a8b(0x271),{'body':_0xe3ab9d})[_0x1f9a8b(0x203)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x4b8fc7(0x2ee)](a['Injector'])),z(0x1,a[_0x4b8fc7(0x2ee)](x[_0x4b8fc7(0xb2)])),z(0x2,a[_0x4b8fc7(0x344)]),z(0x3,a[_0x4b8fc7(0x2ee)](u[_0x4b8fc7(0x1b0)]))],Q);const Yt=_0x4b8fc7(0x354),Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x400d40,_0x105096,_0x174e3f,_0x25543a)=>{const _0x379b81=_0x4b8fc7;for(var _0x8fc16b=_0x25543a>0x1?void 0x0:_0x25543a?Ht(_0x105096,_0x174e3f):_0x105096,_0x548f43=_0x400d40[_0x379b81(0x34f)]-0x1,_0x1c557a;_0x548f43>=0x0;_0x548f43--)(_0x1c557a=_0x400d40[_0x548f43])&&(_0x8fc16b=_0x1c557a(_0x8fc16b)||_0x8fc16b);return _0x8fc16b;},Ae=(_0xb7991c,_0x46ee59)=>(_0x3ab30c,_0x4096fb)=>_0x46ee59(_0x3ab30c,_0x4096fb,_0xb7991c);let ee=class{constructor(_0x3dfcde,_0x2c90f2){this['_transformService']=_0x3dfcde,this['_renderManagerService']=_0x2c90f2;}[_0x4b8fc7(0x2d8)](_0x31e6a5){const _0x5649b5=_0x4b8fc7;this[_0x5649b5(0x172)](_0x31e6a5),this[_0x5649b5(0x159)](_0x31e6a5);}[_0x4b8fc7(0x12f)](_0x29616e){const _0xa8e770=_0x4b8fc7,{unitID:_0x307d19}=_0x29616e,_0x384c46=this['_renderManagerService'][_0xa8e770(0x296)](_0x307d19)[_0xa8e770(0x1c6)](T[_0xa8e770(0xe7)]),{redoCache:_0x41a6e0}=_0x384c46[_0xa8e770(0x9f)]();if(_0x41a6e0[_0xa8e770(0x34f)]===0x0)return _0x29616e;let _0x540874=a['Tools'][_0xa8e770(0x267)](_0x29616e[_0xa8e770(0xe3)][0x0]);for(let _0x4bce1f=0x0;_0x4bce1f<_0x41a6e0[_0xa8e770(0x34f)];_0x4bce1f++){const _0x8109e8={'id':_0xa8e770(0x2e8),'params':{..._0x41a6e0[_0x4bce1f]}},_0x10b274=this[_0xa8e770(0x193)][_0xa8e770(0x80)](_0x540874,_0x8109e8,!0x1);if(g[_0xa8e770(0x185)](_0x10b274))throw _0x10b274['error'];_0x540874=_0x10b274[_0xa8e770(0x1a3)];}return{...a[_0xa8e770(0x2a3)]['deepClone'](_0x29616e),'mutations':[_0x540874]};}['_transformUndoRedoStack'](_0x1a5382){const _0x13d163=_0x4b8fc7,{unitID:_0x6336e1}=_0x1a5382,_0x3a8c0a=this[_0x13d163(0x258)][_0x13d163(0x296)](_0x6336e1)['with'](T[_0x13d163(0xe7)]),{undoCache:_0x3929fd,redoCache:_0x1a9ed9}=_0x3a8c0a[_0x13d163(0x9f)]();if(_0x3929fd[_0x13d163(0x34f)]===0x0||_0x1a9ed9[_0x13d163(0x34f)]===0x0)return;const _0x129a4b=[],_0x5458fd=[];let _0x61a6e0=a[_0x13d163(0x2a3)][_0x13d163(0x267)](_0x1a5382['mutations'][0x0]),_0x217495=a[_0x13d163(0x2a3)][_0x13d163(0x267)](_0x1a5382['mutations'][0x0]);for(let _0x3c1be2=_0x3929fd[_0x13d163(0x34f)]-0x1;_0x3c1be2>=0x0;_0x3c1be2--){const _0x2ee791={'id':_0x13d163(0x2e8),'params':{..._0x3929fd[_0x3c1be2]}},_0x4f047b={'id':'doc.mutation.rich-text-editing','params':{..._0x1a9ed9[_0x3c1be2]}},_0x383f91=this[_0x13d163(0x193)]['transformMutation'](_0x61a6e0,_0x2ee791,!0x1),_0x566dd6=this[_0x13d163(0x193)]['transformMutation'](_0x217495,_0x4f047b,!0x1);if(g['isTransformMutationFailure'](_0x383f91))throw _0x383f91[_0x13d163(0x1e1)];if(g[_0x13d163(0x185)](_0x566dd6))throw _0x566dd6['error'];_0x129a4b[_0x13d163(0x1d8)](_0x383f91['m2Prime'][_0x13d163(0x299)]),_0x5458fd[_0x13d163(0x1d8)](_0x566dd6['m2Prime'][_0x13d163(0x299)]),_0x61a6e0=_0x383f91[_0x13d163(0x1a3)],_0x217495=_0x566dd6[_0x13d163(0x1a3)];}_0x3a8c0a[_0x13d163(0x1cb)]({'undoCache':_0x129a4b,'redoCache':_0x5458fd});}[_0x4b8fc7(0x159)](_0x1f78bf){const _0x355cbc=_0x4b8fc7,{unitID:_0x1a5dfd}=_0x1f78bf,_0x270776=this[_0x355cbc(0x258)][_0x355cbc(0x296)](_0x1a5dfd)[_0x355cbc(0x1c6)](T[_0x355cbc(0xe7)]),_0x949521=_0x270776[_0x355cbc(0x311)]();if(_0x949521==null)return;const _0x6b608f=[{'id':_0x355cbc(0x2e8),'params':{'unitId':_0x1f78bf['unitID'],'actions':null,'textRanges':[_0x949521]}}],_0x34117d=this[_0x355cbc(0x193)][_0x355cbc(0x18b)](_0x1f78bf,_0x6b608f);if(!g[_0x355cbc(0x19c)](_0x34117d))throw _0x34117d['error'];const _0xaaaa2b=_0x34117d[_0x355cbc(0x348)][0x0][_0x355cbc(0x299)]['textRanges'];Array[_0x355cbc(0x2ab)](_0xaaaa2b)&&_0xaaaa2b[_0x355cbc(0x34f)]&&_0x270776['setActiveRange'](_0xaaaa2b[0x0]);}};ee=Wt([Ae(0x0,g[_0x4b8fc7(0x1af)]),Ae(0x1,C[_0x4b8fc7(0x127)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x209eaa,_0x3db380,_0x5a5f65,_0x5b6abb)=>{const _0x18bd4e=_0x4b8fc7;for(var _0x56da81=_0x5b6abb>0x1?void 0x0:_0x5b6abb?Vt(_0x3db380,_0x5a5f65):_0x3db380,_0x38aeb2=_0x209eaa[_0x18bd4e(0x34f)]-0x1,_0x4b595a;_0x38aeb2>=0x0;_0x38aeb2--)(_0x4b595a=_0x209eaa[_0x38aeb2])&&(_0x56da81=_0x4b595a(_0x56da81)||_0x56da81);return _0x56da81;},Ie=(_0x3eb0f3,_0x42c642)=>(_0x450475,_0x4286c8)=>_0x42c642(_0x450475,_0x4286c8,_0x3eb0f3);let te=class{constructor(_0x38cb25,_0x5c75b9,_0x6cf99e){const _0x2c1e68=_0x4b8fc7;this[_0x2c1e68(0x1a4)]=_0x38cb25,this[_0x2c1e68(0x193)]=_0x5c75b9,this[_0x2c1e68(0x2d4)]=_0x6cf99e;}[_0x4b8fc7(0xd3)](_0x5ef84d){this['_transformHistoryAndStateStack'](_0x5ef84d);}[_0x4b8fc7(0x12f)](_0x278e13){const _0x4072ce=_0x4b8fc7,{unitID:_0x1bc638}=_0x278e13,{collaboration:_0x4b365e}=this[_0x4072ce(0x2d4)][_0x4072ce(0x16b)](_0x1bc638);if(_0x4b365e[_0x4072ce(0x34f)]===0x0)return _0x278e13;let _0x479f38=a[_0x4072ce(0x2a3)]['deepClone'](_0x278e13[_0x4072ce(0xe3)][0x0]);for(let _0x3d992e=0x0;_0x3d992e<_0x4b365e[_0x4072ce(0x34f)];_0x3d992e++){const _0x5fede8={'id':_0x4072ce(0x2e8),'params':{'unitId':_0x4b365e[_0x3d992e]['unitId'],..._0x4b365e[_0x3d992e][_0x4072ce(0x2de)]}},_0x146768=this[_0x4072ce(0x193)][_0x4072ce(0x80)](_0x479f38,_0x5fede8,!0x1);if(g[_0x4072ce(0x185)](_0x146768))throw _0x146768[_0x4072ce(0x1e1)];_0x479f38=_0x146768[_0x4072ce(0x1a3)];}return{...a[_0x4072ce(0x2a3)][_0x4072ce(0x267)](_0x278e13),'mutations':[_0x479f38]};}[_0x4b8fc7(0x29c)](_0x459b73){const _0x4e723e=_0x4b8fc7,{unitID:_0x21cfa4}=_0x459b73,{history:_0x16556a,collaboration:_0x330fb2}=this[_0x4e723e(0x2d4)]['getStateCache'](_0x21cfa4);if(_0x16556a[_0x4e723e(0x34f)]===0x0&&_0x330fb2[_0x4e723e(0x34f)]===0x0)return;const _0x27c02e=[],_0x406d31=[];let _0x2416ed=a['Tools'][_0x4e723e(0x267)](_0x459b73[_0x4e723e(0xe3)][0x0]),_0x314a61=a[_0x4e723e(0x2a3)][_0x4e723e(0x267)](_0x459b73[_0x4e723e(0xe3)][0x0]);for(let _0x3a5fe0=_0x16556a[_0x4e723e(0x34f)]-0x1;_0x3a5fe0>=0x0;_0x3a5fe0--){const _0x59ace0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x16556a[_0x3a5fe0][_0x4e723e(0x119)],..._0x16556a[_0x3a5fe0][_0x4e723e(0xab)]}},_0x4ba0e8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x16556a[_0x3a5fe0][_0x4e723e(0x119)],..._0x16556a[_0x3a5fe0][_0x4e723e(0x2de)]}},_0x1e9fc4=this[_0x4e723e(0x193)][_0x4e723e(0x80)](_0x2416ed,_0x59ace0,!0x1),_0x5c4fab=this['_transformService'][_0x4e723e(0x80)](_0x314a61,_0x4ba0e8,!0x1);if(g[_0x4e723e(0x185)](_0x1e9fc4))throw _0x1e9fc4[_0x4e723e(0x1e1)];if(g[_0x4e723e(0x185)](_0x5c4fab))throw _0x5c4fab[_0x4e723e(0x1e1)];_0x27c02e[_0x4e723e(0x1d8)]({..._0x16556a[_0x3a5fe0],'undoState':_0x1e9fc4[_0x4e723e(0x348)][_0x4e723e(0x299)],'redoState':_0x5c4fab[_0x4e723e(0x348)][_0x4e723e(0x299)]}),_0x2416ed=_0x1e9fc4[_0x4e723e(0x1a3)],_0x314a61=_0x5c4fab[_0x4e723e(0x1a3)];}_0x2416ed=a[_0x4e723e(0x2a3)][_0x4e723e(0x267)](_0x459b73['mutations'][0x0]),_0x314a61=a['Tools'][_0x4e723e(0x267)](_0x459b73['mutations'][0x0]);for(let _0x14046c=_0x330fb2[_0x4e723e(0x34f)]-0x1;_0x14046c>=0x0;_0x14046c--){const _0x2b324b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x330fb2[_0x14046c][_0x4e723e(0x119)],..._0x330fb2[_0x14046c][_0x4e723e(0xab)]}},_0x482ccc={'id':_0x4e723e(0x2e8),'params':{'unitId':_0x330fb2[_0x14046c][_0x4e723e(0x119)],..._0x330fb2[_0x14046c][_0x4e723e(0x2de)]}},_0x5efeb8=this[_0x4e723e(0x193)]['transformMutation'](_0x2416ed,_0x2b324b,!0x1),_0x20cd5a=this[_0x4e723e(0x193)][_0x4e723e(0x80)](_0x314a61,_0x482ccc,!0x1);if(g[_0x4e723e(0x185)](_0x5efeb8))throw _0x5efeb8[_0x4e723e(0x1e1)];if(g[_0x4e723e(0x185)](_0x20cd5a))throw _0x20cd5a[_0x4e723e(0x1e1)];_0x406d31[_0x4e723e(0x1d8)]({..._0x330fb2[_0x14046c],'undoState':_0x5efeb8[_0x4e723e(0x348)][_0x4e723e(0x299)],'redoState':_0x20cd5a[_0x4e723e(0x348)][_0x4e723e(0x299)]}),_0x2416ed=_0x5efeb8[_0x4e723e(0x1a3)],_0x314a61=_0x20cd5a[_0x4e723e(0x1a3)];}this[_0x4e723e(0x2d4)][_0x4e723e(0x26d)](_0x21cfa4,{'history':_0x27c02e,'collaboration':_0x406d31});}};te=Gt([Ie(0x0,a['Inject'](a[_0x4b8fc7(0x1e4)])),Ie(0x1,g[_0x4b8fc7(0x1af)]),Ie(0x2,a['Inject'](T['DocStateChangeManagerService']))],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x6b7c15,_0x364f0b,_0x31812a,_0x37a358)=>{const _0x55309e=_0x4b8fc7;for(var _0x3ea622=_0x37a358>0x1?void 0x0:_0x37a358?Xt(_0x364f0b,_0x31812a):_0x364f0b,_0x56df23=_0x6b7c15[_0x55309e(0x34f)]-0x1,_0x4d0773;_0x56df23>=0x0;_0x56df23--)(_0x4d0773=_0x6b7c15[_0x56df23])&&(_0x3ea622=_0x4d0773(_0x3ea622)||_0x3ea622);return _0x3ea622;},Pe=(_0x57a49f,_0x5548d1)=>(_0x55389f,_0x4cbfd6)=>_0x5548d1(_0x55389f,_0x4cbfd6,_0x57a49f);let se=class{constructor(_0x205b18,_0x238c38){const _0x2aa121=_0x4b8fc7;this[_0x2aa121(0x1a4)]=_0x205b18,this[_0x2aa121(0x193)]=_0x238c38;}[_0x4b8fc7(0x2ca)](_0x3ca598){const _0x1982cd=_0x4b8fc7;var _0x478f09;const _0x22fb6b=this[_0x1982cd(0x1a4)][_0x1982cd(0x16d)](V[_0x1982cd(0x2f5)]),_0xb6a8ab=(_0x478f09=_0x22fb6b[_0x1982cd(0x23f)]())!=null?_0x478f09:[];if(_0xb6a8ab[_0x1982cd(0x34f)]===0x0)return;const _0x50ae01=_0x3ca598[_0x1982cd(0x282)],_0x51b91f=[{'id':_0x1982cd(0x2e8),'params':{'unitId':_0x50ae01,'actions':null,'textRanges':_0xb6a8ab}}],_0x3aa5e1=this['_transformService'][_0x1982cd(0x18b)](_0x3ca598,_0x51b91f);if(!g[_0x1982cd(0x19c)](_0x3aa5e1))throw _0x3aa5e1[_0x1982cd(0x1e1)];const _0x5031e8=_0x3aa5e1[_0x1982cd(0x348)][0x0][_0x1982cd(0x299)][_0x1982cd(0x113)];Array[_0x1982cd(0x2ab)](_0x5031e8)&&_0x5031e8[_0x1982cd(0x34f)]&&_0x22fb6b[_0x1982cd(0x17d)](_0x5031e8,{'unitId':_0x50ae01,'subUnitId':_0x50ae01},!0x1);}};se=Kt([Pe(0x0,a[_0x4b8fc7(0x2ee)](a[_0x4b8fc7(0x1e4)])),Pe(0x1,g['ITransformService'])],se);var qt=Object[_0x4b8fc7(0x288)],zt=(_0x2dfd20,_0x52bfde,_0x13e294,_0x468e76)=>{const _0x1c0b08=_0x4b8fc7;for(var _0x32f592=_0x468e76>0x1?void 0x0:_0x468e76?qt(_0x52bfde,_0x13e294):_0x52bfde,_0x5a7d1f=_0x2dfd20[_0x1c0b08(0x34f)]-0x1,_0xec15ba;_0x5a7d1f>=0x0;_0x5a7d1f--)(_0xec15ba=_0x2dfd20[_0x5a7d1f])&&(_0x32f592=_0xec15ba(_0x32f592)||_0x32f592);return _0x32f592;},N=(_0x5aee2b,_0x17d187)=>(_0x53f779,_0x2037ae)=>_0x17d187(_0x53f779,_0x2037ae,_0x5aee2b);let ie=class extends a[_0x4b8fc7(0x1cc)]{constructor(_0x7b015b,_0x474616,_0x348171,_0x5972e3,_0x106f68,_0x3180f9,_0x21abfe,_0x1955a6){const _0x3f1e0d=_0x4b8fc7;super(),_(this,_0x3f1e0d(0x206),new I[(_0x3f1e0d(0x2ad))](u[_0x3f1e0d(0x1db)]['NOT_COLLAB'])),(this[_0x3f1e0d(0x2d4)]=_0x7b015b,this[_0x3f1e0d(0x242)]=_0x474616,this[_0x3f1e0d(0x93)]=_0x348171,this['_docTransformStateCacheService']=_0x5972e3,this[_0x3f1e0d(0x225)]=_0x106f68,this[_0x3f1e0d(0x21f)]=_0x3180f9,this[_0x3f1e0d(0x17a)]=_0x21abfe,this['_localeService']=_0x1955a6,this[_0x3f1e0d(0x195)]());}[_0x4b8fc7(0x195)](){const _0x3b277d=_0x4b8fc7;this['disposeWithMe'](this[_0x3b277d(0x242)][_0x3b277d(0x10c)][_0x3b277d(0x304)](_0x5ec898=>{const _0x2c261d=_0x3b277d,_0x1ead04=this[_0x2c261d(0x2d4)][_0x2c261d(0x2ed)]['subscribe'](_0x2088f5=>{const _0x36995c=_0x2c261d;if(_0x2088f5==null)return;const {unitId:_0x5f786e,redoState:_0x4a87ed,commandId:_0x1ff53f}=_0x2088f5;if(_0x5f786e!==_0x5ec898[_0x36995c(0x282)])return;const _0x349ff6={'id':_0x1ff53f,'type':a[_0x36995c(0x1fd)]['MUTATION'],'params':{'unitId':_0x5f786e,'actions':_0x4a87ed[_0x36995c(0x8b)],'textRanges':null}};_0x5ec898[_0x36995c(0x134)](_0x349ff6);});if(_0x5ec898['disposeWithMe'](_0x1ead04),_0x5ec898 instanceof u[_0x2c261d(0x26f)]){const _0x4e1d1c={'onTransformIME':_0x4c9ea6=>this['_docTransformIMECacheService'][_0x2c261d(0x2d8)](_0x4c9ea6),'onTransformState':_0x59000e=>this[_0x2c261d(0x152)]['transformStateCache'](_0x59000e),'onTransformSelections':_0x37f380=>this['_docTransformSelectionsService']['transformSelections'](_0x37f380),'onSyncEditingCollabCursor':_0x12f7ce=>this[_0x2c261d(0x21f)][_0x2c261d(0x294)](_0x12f7ce),'onTransformRemoteChangesetByIMECache':_0x4e8e71=>this[_0x2c261d(0x93)][_0x2c261d(0x12f)](_0x4e8e71),'onTransformRemoteChangesetByStateCache':_0x403a9f=>this[_0x2c261d(0x152)][_0x2c261d(0x12f)](_0x403a9f)};_0x5ec898['addHandlerCallback'](_0x4e1d1c);}}));}};ie=zt([N(0x0,a[_0x4b8fc7(0x2ee)](T[_0x4b8fc7(0xd1)])),N(0x1,a[_0x4b8fc7(0x2ee)](u['CollaborationController'])),N(0x2,a[_0x4b8fc7(0x2ee)](ee)),N(0x3,a[_0x4b8fc7(0x2ee)](te)),N(0x4,a['Inject'](se)),N(0x5,a['Inject'](be)),N(0x6,O[_0x4b8fc7(0x20a)]),N(0x7,a['Inject'](a['LocaleService']))],ie);var G=(_0xbc2562=>(_0xbc2562[_0xbc2562[_0x4b8fc7(0x18e)]=0x0]=_0x4b8fc7(0x18e),_0xbc2562[_0xbc2562['OK']=0x1]='OK',_0xbc2562[_0xbc2562[_0x4b8fc7(0xb5)]=0x2]=_0x4b8fc7(0xb5),_0xbc2562[_0xbc2562[_0x4b8fc7(0x91)]=0x3]=_0x4b8fc7(0x91),_0xbc2562[_0xbc2562[_0x4b8fc7(0x18a)]=0x4]=_0x4b8fc7(0x18a),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2ba)]=0x5]=_0x4b8fc7(0x2ba),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2d9)]=0x6]=_0x4b8fc7(0x2d9),_0xbc2562[_0xbc2562[_0x4b8fc7(0x332)]=0x7]=_0x4b8fc7(0x332),_0xbc2562[_0xbc2562[_0x4b8fc7(0x240)]=0x8]=_0x4b8fc7(0x240),_0xbc2562[_0xbc2562[_0x4b8fc7(0x138)]=0x9]='COMPLETION_FINISHED',_0xbc2562[_0xbc2562[_0x4b8fc7(0xa6)]=0xa]=_0x4b8fc7(0xa6),_0xbc2562[_0xbc2562[_0x4b8fc7(0x133)]=0xb]=_0x4b8fc7(0x133),_0xbc2562[_0xbc2562[_0x4b8fc7(0x1d9)]=0xc]=_0x4b8fc7(0x1d9),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2eb)]=0xd]=_0x4b8fc7(0x2eb),_0xbc2562[_0xbc2562['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x4b8fc7(0x1fc),_0xbc2562[_0xbc2562[_0x4b8fc7(0x171)]=0xf]=_0x4b8fc7(0x171),_0xbc2562[_0xbc2562['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x4b8fc7(0x188),_0xbc2562[_0xbc2562[_0x4b8fc7(0x178)]=0x64]=_0x4b8fc7(0x178),_0xbc2562[_0xbc2562[_0x4b8fc7(0xe0)]=0x65]=_0x4b8fc7(0xe0),_0xbc2562[_0xbc2562[_0x4b8fc7(0x212)]=0xc9]=_0x4b8fc7(0x212),_0xbc2562[_0xbc2562[_0x4b8fc7(0x14b)]=0xca]=_0x4b8fc7(0x14b),_0xbc2562[_0xbc2562[_0x4b8fc7(0xb7)]=0x1389]=_0x4b8fc7(0xb7),_0xbc2562[_0xbc2562['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x4b8fc7(0x2cc),_0xbc2562[_0xbc2562[_0x4b8fc7(0x1ea)]=0x1772]=_0x4b8fc7(0x1ea),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2b3)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0xbc2562[_0xbc2562[_0x4b8fc7(0x189)]=0x1b59]=_0x4b8fc7(0x189),_0xbc2562[_0xbc2562[_0x4b8fc7(0x17f)]=0x1b5a]=_0x4b8fc7(0x17f),_0xbc2562[_0xbc2562['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x4b8fc7(0x26b),_0xbc2562[_0xbc2562['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x4b8fc7(0x34c),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2e7)]=0x1b5d]=_0x4b8fc7(0x2e7),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2ec)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xbc2562[_0xbc2562[_0x4b8fc7(0x301)]=0x2329]=_0x4b8fc7(0x301),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2a4)]=0x232a]=_0x4b8fc7(0x2a4),_0xbc2562[_0xbc2562[_0x4b8fc7(0x217)]=0x232b]=_0x4b8fc7(0x217),_0xbc2562[_0xbc2562[_0x4b8fc7(0xc4)]=0x232c]=_0x4b8fc7(0xc4),_0xbc2562[_0xbc2562[_0x4b8fc7(0xc8)]=0x232d]=_0x4b8fc7(0xc8),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2c1)]=0x2711]=_0x4b8fc7(0x2c1),_0xbc2562[_0xbc2562[_0x4b8fc7(0x31c)]=0x2712]=_0x4b8fc7(0x31c),_0xbc2562[_0xbc2562['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x4b8fc7(0xe6),_0xbc2562[_0xbc2562[_0x4b8fc7(0x14a)]=0x2714]=_0x4b8fc7(0x14a),_0xbc2562[_0xbc2562[_0x4b8fc7(0x1d6)]=0x271a]=_0x4b8fc7(0x1d6),_0xbc2562[_0xbc2562['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x4b8fc7(0xcb),_0xbc2562[_0xbc2562[_0x4b8fc7(0x177)]=0x271c]=_0x4b8fc7(0x177),_0xbc2562[_0xbc2562[_0x4b8fc7(0x1c3)]=0x271d]=_0x4b8fc7(0x1c3),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2c2)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0xbc2562[_0xbc2562['YUUMI_AI_RUN_FAILED']=0x271f]=_0x4b8fc7(0x204),_0xbc2562[_0xbc2562[_0x4b8fc7(0x1c2)]=0x2720]=_0x4b8fc7(0x1c2),_0xbc2562[_0xbc2562[_0x4b8fc7(0x1cd)]=0x2af9]=_0x4b8fc7(0x1cd),_0xbc2562[_0xbc2562[_0x4b8fc7(0x243)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0xbc2562[_0xbc2562['INVALID_INVITE_CODE']=0x2ee2]=_0x4b8fc7(0x11f),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2b6)]=0x2ee3]=_0x4b8fc7(0x2b6),_0xbc2562[_0xbc2562[_0x4b8fc7(0x168)]=0x2ee4]=_0x4b8fc7(0x168),_0xbc2562[_0xbc2562[_0x4b8fc7(0x149)]=0x2ee5]=_0x4b8fc7(0x149),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2d3)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0xbc2562[_0xbc2562['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x4b8fc7(0x1b5),_0xbc2562[_0xbc2562[_0x4b8fc7(0x244)]=0x32cb]=_0x4b8fc7(0x244),_0xbc2562[_0xbc2562[_0x4b8fc7(0xa1)]=0x36b1]=_0x4b8fc7(0xa1),_0xbc2562[_0xbc2562['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0xbc2562[_0xbc2562[_0x4b8fc7(0x2a9)]=0x36b3]=_0x4b8fc7(0x2a9),_0xbc2562[_0xbc2562[_0x4b8fc7(0x293)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0xbc2562[_0xbc2562[_0x4b8fc7(0xba)]=0x36b5]=_0x4b8fc7(0xba),_0xbc2562[_0xbc2562[_0x4b8fc7(0x17b)]=0x36b6]=_0x4b8fc7(0x17b),_0xbc2562[_0xbc2562[_0x4b8fc7(0x1c7)]=0x36b7]=_0x4b8fc7(0x1c7),_0xbc2562[_0xbc2562[_0x4b8fc7(0x23a)]=0x36b8]=_0x4b8fc7(0x23a),_0xbc2562[_0xbc2562[_0x4b8fc7(0x251)]=0x3715]=_0x4b8fc7(0x251),_0xbc2562[_0xbc2562[_0x4b8fc7(0x254)]=0x3716]=_0x4b8fc7(0x254),_0xbc2562[_0xbc2562[_0x4b8fc7(0x28c)]=0x3717]=_0x4b8fc7(0x28c),_0xbc2562[_0xbc2562[_0x4b8fc7(0x2b9)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0xbc2562[_0xbc2562[_0x4b8fc7(0xfe)]=0x3a99]='REDEMPTION_INVALID_CODE',_0xbc2562[_0xbc2562[_0x4b8fc7(0x2bb)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0xbc2562[_0xbc2562['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x4b8fc7(0x1b7),_0xbc2562[_0xbc2562['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x4b8fc7(0x2d5),_0xbc2562[_0xbc2562['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x4b8fc7(0x1b3),_0xbc2562[_0xbc2562['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0xbc2562[_0xbc2562[_0x4b8fc7(0x2e3)]=0x3a9f]=_0x4b8fc7(0x2e3),_0xbc2562[_0xbc2562['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x4b8fc7(0xff),_0xbc2562[_0xbc2562['UNRECOGNIZED']=-0x1]=_0x4b8fc7(0x330),_0xbc2562))(G||{});function Jt(_0x4a808b){const _0x369ecf=_0x4b8fc7;var _0x20f345,_0x207443;const _0x9a7e57=(_0x20f345=_0x4a808b[_0x369ecf(0xd5)])==null?void 0x0:_0x20f345[_0x369ecf(0x1f5)],_0x51a7c3=((_0x207443=_0x4a808b[_0x369ecf(0xd5)])==null?void 0x0:_0x207443[_0x369ecf(0x25d)])||0x0;return _0x9a7e57===B[_0x369ecf(0x340)][_0x369ecf(0x32e)]&&_0x51a7c3>0x0;}function Zt(_0x5f3823){const _0x5acca9=_0x4b8fc7;return _0x5f3823['functionsExecutedState']===B[_0x5acca9(0x1f2)][_0x5acca9(0x260)];}var Qt=Object[_0x4b8fc7(0x288)],es=(_0x22cfd0,_0x8edb5c,_0x1dbc7c,_0x243215)=>{const _0x2af3b4=_0x4b8fc7;for(var _0x5ec257=_0x243215>0x1?void 0x0:_0x243215?Qt(_0x8edb5c,_0x1dbc7c):_0x8edb5c,_0x5eedc4=_0x22cfd0[_0x2af3b4(0x34f)]-0x1,_0x28d1bc;_0x5eedc4>=0x0;_0x5eedc4--)(_0x28d1bc=_0x22cfd0[_0x5eedc4])&&(_0x5ec257=_0x28d1bc(_0x5ec257)||_0x5ec257);return _0x5ec257;},L=(_0x106db2,_0x2596a5)=>(_0x2a3277,_0x43a6c0)=>_0x2596a5(_0x2a3277,_0x43a6c0,_0x106db2);const ts=_0x4b8fc7(0xea),ss='/universer-api/license/formula/limit/start',is=_0x4b8fc7(0x1bd);let ne=class extends a[_0x4b8fc7(0x1cc)]{constructor(_0x321488,_0x2b9d3e,_0x1adb89,_0x72afe7,_0x5f2daf,_0x21d202,_0xf6ab6c){const _0x520a6d=_0x4b8fc7;super(),_(this,_0x520a6d(0x19f),null),_(this,_0x520a6d(0xc1),0x0),_(this,_0x520a6d(0xc9),0x0),_(this,'_taskIds',[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x520a6d(0x17a)]=_0x321488,this['_commandService']=_0x2b9d3e,this['_configService']=_0x1adb89,this['_httpService']=_0x72afe7,this[_0x520a6d(0x32f)]=_0x5f2daf,this[_0x520a6d(0x284)]=_0x21d202,this[_0x520a6d(0x22d)]=_0xf6ab6c,this[_0x520a6d(0x25f)]());}['_initCommandInterceptor'](){const _0x5931f9=_0x4b8fc7;this[_0x5931f9(0x350)](this[_0x5931f9(0x22a)][_0x5931f9(0x148)]((_0xed1ca7,_0x360789)=>{const _0x5d0cc5=_0x5931f9;var _0xeaaa77;if(_0xed1ca7['id']!==B[_0x5d0cc5(0x2c6)]['id'])return;const _0x404926=_0xed1ca7[_0x5d0cc5(0x299)];if(!this[_0x5d0cc5(0x2cf)]((_0xeaaa77=_0x404926[_0x5d0cc5(0x25b)])!=null?_0xeaaa77:[]))return;if(!this[_0x5d0cc5(0x26e)]())throw this[_0x5d0cc5(0x2a6)](_0xed1ca7,_0x360789),this['_showGuardMessage'](),new a['CanceledError']();})),this[_0x5931f9(0x350)](this[_0x5931f9(0x22a)][_0x5931f9(0x289)]((_0x2eac77,_0x3e1481)=>{const _0xe9cf01=_0x5931f9;if(_0x2eac77['id']!==B['SetFormulaCalculationNotificationMutation']['id'])return;const _0x1a32de=_0x2eac77[_0xe9cf01(0x299)];if(Jt(_0x1a32de)){const _0x5a4b24=a[_0xe9cf01(0x214)]();this[_0xe9cf01(0x12a)][_0xe9cf01(0x8d)](_0x5a4b24),this[_0xe9cf01(0x191)](_0x5a4b24);}else{if(Zt(_0x1a32de)&&this['_taskIds']['length']>0x0){const _0x31bbbb=this[_0xe9cf01(0x12a)]['shift']();this['_releaseCalculationLimit'](_0x31bbbb);}}}));}[_0x4b8fc7(0x83)](){const _0x1b987d=_0x4b8fc7;super[_0x1b987d(0x83)](),this['_clearPolling'](),this['_taskIds']=[],this[_0x1b987d(0xc9)]=0x0,this[_0x1b987d(0xc1)]=0x0,this[_0x1b987d(0xad)]=0x0;}async[_0x4b8fc7(0x2a6)](_0x3eb161,_0x6e3fca){const _0x2ba01a=_0x4b8fc7;for(let _0x39dea3=0x0;_0x39dea3<0x1e;_0x39dea3++)try{if(await this[_0x2ba01a(0x2fb)](),this[_0x2ba01a(0x26e)]()){this[_0x2ba01a(0x2c0)](_0x3eb161,_0x6e3fca),this[_0x2ba01a(0x17a)]['show']({'content':this[_0x2ba01a(0x22d)]['t']('formula.calculation.started'),'type':p[_0x2ba01a(0x1e5)][_0x2ba01a(0xae)]});return;}await new Promise(_0x2299d4=>{const _0x27cfde=_0x2ba01a;this[_0x27cfde(0x19f)]=window[_0x27cfde(0x24e)](_0x2299d4,0x3e8);});}catch(_0x1a118d){this['_logService']['error'](_0x1a118d);}this[_0x2ba01a(0x17a)][_0x2ba01a(0x234)]({'content':this['_localeService']['t'](_0x2ba01a(0x14e)),'type':p[_0x2ba01a(0x1e5)][_0x2ba01a(0x2c7)]});}[_0x4b8fc7(0x2c0)](_0x44e400,_0x137465){const _0x2d131a=_0x4b8fc7;try{this['_commandService'][_0x2d131a(0x154)](_0x44e400['id'],_0x44e400[_0x2d131a(0x299)],_0x137465);}catch(_0x2dc991){this[_0x2d131a(0x284)][_0x2d131a(0x1e1)](_0x2dc991);}}['_setFormulaLimitStatus'](_0x4a29bd,_0x47fc7c){const _0x328c47=_0x4b8fc7;_0x47fc7c<this['_lastResponseTimestamp']||(this[_0x328c47(0xad)]=_0x47fc7c,this['_maxFormulaLimit']=Number[_0x328c47(0xa8)](_0x4a29bd['maxFormulaLimit']),this[_0x328c47(0xc9)]=Number[_0x328c47(0xa8)](_0x4a29bd[_0x328c47(0x306)]));}async[_0x4b8fc7(0x191)](_0x1103e6){const _0x3fcc73=_0x4b8fc7;var _0x203115,_0x2ff509;const _0x32c039=Date['now']();try{const _0x91ea3a=((_0x203115=this[_0x3fcc73(0x2fc)][_0x3fcc73(0x333)](u[_0x3fcc73(0x21d)]))==null?void 0x0:_0x203115[_0x3fcc73(0x144)])||ss,_0x234911=(await this[_0x3fcc73(0x34b)][_0x3fcc73(0x259)](_0x91ea3a,{'body':JSON['stringify']({'taskId':_0x1103e6})}))[_0x3fcc73(0x137)];if(((_0x2ff509=_0x234911['error'])==null?void 0x0:_0x2ff509['code'])!==G['OK'])return;this[_0x3fcc73(0x200)](_0x234911[_0x3fcc73(0x2e0)],_0x32c039);}catch(_0x32a377){this[_0x3fcc73(0x284)]['error'](_0x32a377);}}async['_getFormulaLimitStatus'](_0x2cc9de){const _0x47dad3=_0x4b8fc7;var _0x459768,_0x57f065;const _0x13084a=Date[_0x47dad3(0x1e2)]();try{const _0xc8f36e=((_0x459768=this[_0x47dad3(0x2fc)][_0x47dad3(0x333)](u[_0x47dad3(0x21d)]))==null?void 0x0:_0x459768[_0x47dad3(0x31e)])||ts,_0x30e7cb=_0x2cc9de?_0xc8f36e+_0x47dad3(0xcd)+encodeURIComponent(_0x2cc9de):_0xc8f36e,_0x5dcdda=(await this['_httpService'][_0x47dad3(0x16d)](_0x30e7cb))[_0x47dad3(0x137)];if(((_0x57f065=_0x5dcdda[_0x47dad3(0x1e1)])==null?void 0x0:_0x57f065['code'])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x5dcdda['limitInfo'],_0x13084a);}catch(_0x5a9fa2){this[_0x47dad3(0x284)]['error'](_0x5a9fa2);}}async['_releaseCalculationLimit'](_0x14d51c){const _0x49b279=_0x4b8fc7;var _0x52feed,_0x46af7c;const _0x545e54=Date[_0x49b279(0x1e2)]();try{const _0x14dfe0=((_0x52feed=this[_0x49b279(0x2fc)][_0x49b279(0x333)](u[_0x49b279(0x21d)]))==null?void 0x0:_0x52feed['releaseFormulaLimitUrl'])||is,_0x3051d6=(await this[_0x49b279(0x34b)][_0x49b279(0x259)](_0x14dfe0,{'body':JSON[_0x49b279(0x13c)]({'taskId':_0x14d51c})}))[_0x49b279(0x137)];if(((_0x46af7c=_0x3051d6['error'])==null?void 0x0:_0x46af7c[_0x49b279(0x32d)])!==G['OK'])return;this[_0x49b279(0x200)](_0x3051d6[_0x49b279(0x2e0)],_0x545e54);}catch(_0x132626){this[_0x49b279(0x284)][_0x49b279(0x1e1)](_0x132626);}}[_0x4b8fc7(0x26e)](){const _0x1f2b61=_0x4b8fc7;return this[_0x1f2b61(0xc1)]===0x0?!0x0:this[_0x1f2b61(0xc1)]-this[_0x1f2b61(0xc9)]>0x0;}[_0x4b8fc7(0x25e)](){const _0x57811c=_0x4b8fc7;this[_0x57811c(0x19f)]&&(clearTimeout(this[_0x57811c(0x19f)]),this[_0x57811c(0x19f)]=null);}[_0x4b8fc7(0x241)](){const _0x1943df=_0x4b8fc7;this[_0x1943df(0x17a)][_0x1943df(0x234)]({'content':this['_localeService']['t'](_0x1943df(0x27a)),'type':p['MessageType'][_0x1943df(0x321)]});}[_0x4b8fc7(0x2cf)](_0x251564){const _0x2a29cb=_0x4b8fc7;for(const _0x1226de of _0x251564){const {unitId:_0x39d2e3,sheetId:_0x233a5a,range:_0x2c2c35}=_0x1226de,_0x5a997b=this['_univerInstanceService'][_0x2a29cb(0xf5)](_0x39d2e3);if(!_0x5a997b)continue;const _0x2623b3=_0x5a997b[_0x2a29cb(0x24c)](_0x233a5a);if(!_0x2623b3)continue;const _0x3f8a9b=_0x2623b3[_0x2a29cb(0x298)]();for(let _0x5bda60=_0x2c2c35['startRow'];_0x5bda60<=_0x2c2c35['endRow'];_0x5bda60++)for(let _0x596ea8=_0x2c2c35[_0x2a29cb(0x291)];_0x596ea8<=_0x2c2c35['endColumn'];_0x596ea8++){const _0xad9acb=_0x3f8a9b[_0x2a29cb(0xf7)](_0x5bda60,_0x596ea8);if(_0xad9acb&&(a[_0x2a29cb(0xda)](_0xad9acb['f'])||a['isFormulaId'](_0xad9acb['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x4b8fc7(0x2ee)](O['IMessageService'])),L(0x1,a[_0x4b8fc7(0x25a)]),L(0x2,a[_0x4b8fc7(0x2b0)]),L(0x3,a[_0x4b8fc7(0x2ee)](x[_0x4b8fc7(0xb2)])),L(0x4,a[_0x4b8fc7(0xec)]),L(0x5,a[_0x4b8fc7(0x344)]),L(0x6,a[_0x4b8fc7(0x2ee)](a['LocaleService']))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x4a4ff8,_0x4c8ef3,_0x1b4a81,_0x61297d)=>{const _0x21f051=_0x4b8fc7;for(var _0x227a43=_0x61297d>0x1?void 0x0:_0x61297d?ns(_0x4c8ef3,_0x1b4a81):_0x4c8ef3,_0x1e2c96=_0x4a4ff8[_0x21f051(0x34f)]-0x1,_0x37fbc6;_0x1e2c96>=0x0;_0x1e2c96--)(_0x37fbc6=_0x4a4ff8[_0x1e2c96])&&(_0x227a43=_0x37fbc6(_0x227a43)||_0x227a43);return _0x227a43;},Se=(_0x4d2fb7,_0x4a69d1)=>(_0x2442c7,_0x591aa2)=>_0x4a69d1(_0x2442c7,_0x591aa2,_0x4d2fb7);let Te=class extends a[_0x4b8fc7(0x1cc)]{constructor(_0x3ad03d,_0xb39fc2,_0x400933){const _0xc819f6=_0x4b8fc7;super(),_(this,_0xc819f6(0x173),new Map()),_(this,_0xc819f6(0x98),new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x3ad03d,this[_0xc819f6(0x1ef)]=_0xb39fc2,this[_0xc819f6(0x213)]=_0x400933);}[_0x4b8fc7(0x28e)](){const _0x4be9cf=_0x4b8fc7;this[_0x4be9cf(0xbe)]=!0x0;}['enableLocalCache'](){const _0x30bb77=_0x4b8fc7;this[_0x30bb77(0xbe)]=!0x1;}get[_0x4b8fc7(0xe9)](){const _0x49437f=_0x4b8fc7;return this[_0x49437f(0x98)];}['dispose'](){const _0x4ca65b=_0x4b8fc7;this[_0x4ca65b(0x268)]()['then'](()=>super[_0x4ca65b(0x83)]());}async[_0x4b8fc7(0x27d)](_0x26f12e){const _0x4fedb4=_0x4b8fc7;return this[_0x4fedb4(0xbe)]?null:this[_0x4fedb4(0x1ef)][_0x4fedb4(0xe4)](u[_0x4fedb4(0x1a0)](_0x26f12e));}async[_0x4b8fc7(0x12c)](_0x250650,_0x22fdee){const _0x474e6e=_0x4b8fc7;return!!this['_localStorageService'][_0x474e6e(0x237)](_0x250650,_0x22fdee);}[_0x4b8fc7(0x109)](_0x650593,_0x67aba7,_0x55fc26,_0x175c8d){const _0x6e8a93=_0x4b8fc7,_0x5eed61=this['_revisionService'][_0x6e8a93(0x7e)](_0x650593);this[_0x6e8a93(0x173)]['set'](_0x650593,{'unitID':_0x650593,'type':_0x67aba7,'awaitingChangeset':_0x55fc26,'mutations':_0x175c8d,'rev':_0x5eed61}),this[_0x6e8a93(0x98)]['has'](_0x650593)||this[_0x6e8a93(0x1ab)](_0x650593);}['_scheduleSaving'](_0x2cf1d9){const _0x4c707c=_0x4b8fc7,_0x1afaf7=this[_0x4c707c(0x105)]();_0x1afaf7===0x0?this[_0x4c707c(0x279)](_0x2cf1d9):this[_0x4c707c(0x98)][_0x4c707c(0x272)](_0x2cf1d9,setTimeout(()=>this['_saveCache'](_0x2cf1d9),_0x1afaf7));}[_0x4b8fc7(0x105)](){const _0x1f217a=_0x4b8fc7;var _0x88dc24;return(_0x88dc24=this[_0x1f217a(0x2fc)]['getConfig'](u[_0x1f217a(0x339)]))!=null?_0x88dc24:u[_0x1f217a(0xb1)];}[_0x4b8fc7(0x279)](_0x34def5){const _0x4353c9=_0x4b8fc7,_0x3b388c=this[_0x4353c9(0x98)][_0x4353c9(0x16d)](_0x34def5);return _0x3b388c!==void 0x0&&window[_0x4353c9(0x1c5)](_0x3b388c),this[_0x4353c9(0x1ef)][_0x4353c9(0x237)](u[_0x4353c9(0x1a0)](_0x34def5),this[_0x4353c9(0x173)]['get'](_0x34def5))[_0x4353c9(0x26a)](()=>this['_saveTaskMap']['delete'](_0x34def5));}async[_0x4b8fc7(0x268)](){const _0x26e6a3=_0x4b8fc7,_0x21099b=[];this[_0x26e6a3(0x98)][_0x26e6a3(0x7d)]((_0x55f060,_0x4f88e2)=>{const _0x493d91=_0x26e6a3;window[_0x493d91(0x1c5)](_0x55f060),_0x21099b[_0x493d91(0x8d)](this[_0x493d91(0x279)](_0x4f88e2)[_0x493d91(0x26a)](()=>{const _0x53e55c=_0x493d91;this[_0x53e55c(0x98)][_0x53e55c(0x224)](_0x4f88e2);}));}),await Promise[_0x26e6a3(0x2e5)](_0x21099b);}};Te=rs([Se(0x0,a['IConfigService']),Se(0x1,a['ILocalStorageService']),Se(0x2,a['Inject'](g[_0x4b8fc7(0x186)]))],Te);class ke extends a[_0x4b8fc7(0x312)]{constructor(){const _0x2bff94=_0x4b8fc7;super(),_(this,_0x2bff94(0x8a)),this['urlChange$']=I[_0x2bff94(0x10b)](window,_0x2bff94(0x99))[_0x2bff94(0x266)](I[_0x2bff94(0x351)](this[_0x2bff94(0x29f)]),I['shareReplay'](0x1),I['mapTo'](void 0x0));}[_0x4b8fc7(0x246)](_0x1b47ff,_0x1862e2,_0x56e858=!0x1){const _0x3ec833=_0x4b8fc7,_0x588e50=new URL(window[_0x3ec833(0x331)][_0x3ec833(0x111)]);_0x588e50[_0x3ec833(0x221)][_0x3ec833(0x272)](_0x1b47ff,_0x1862e2),_0x56e858?window[_0x3ec833(0x2fe)][_0x3ec833(0x335)]('','',_0x588e50[_0x3ec833(0x320)]()):window[_0x3ec833(0x2fe)]['pushState']('','',_0x588e50['toString']());}['removeParam'](_0x5d6950,_0x22afb1=!0x1){const _0x5e274e=_0x4b8fc7,_0xa4046d=new URL(window['location']['href']);_0xa4046d[_0x5e274e(0x221)][_0x5e274e(0x224)](_0x5d6950),_0x22afb1?window[_0x5e274e(0x2fe)][_0x5e274e(0x335)]('','',_0xa4046d[_0x5e274e(0x320)]()):window[_0x5e274e(0x2fe)]['pushState']('','',_0xa4046d[_0x5e274e(0x320)]());}['getParam'](_0x2cdcc2){const _0x30f88f=_0x4b8fc7;var _0x325202;return(_0x325202=new URL(window[_0x30f88f(0x331)][_0x30f88f(0x111)])[_0x30f88f(0x221)][_0x30f88f(0x16d)](_0x2cdcc2))!=null?_0x325202:void 0x0;}}var os=Object[_0x4b8fc7(0x1bf)],as=Object[_0x4b8fc7(0x288)],cs=(_0x1a1e89,_0x37a35c,_0x3623c0)=>_0x37a35c in _0x1a1e89?os(_0x1a1e89,_0x37a35c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3623c0}):_0x1a1e89[_0x37a35c]=_0x3623c0,ls=(_0x3ffd6f,_0xe11a1c,_0x50fd43,_0x5dca1a)=>{const _0x236c93=_0x4b8fc7;for(var _0x4171d0=_0x5dca1a>0x1?void 0x0:_0x5dca1a?as(_0xe11a1c,_0x50fd43):_0xe11a1c,_0x213d31=_0x3ffd6f[_0x236c93(0x34f)]-0x1,_0x497573;_0x213d31>=0x0;_0x213d31--)(_0x497573=_0x3ffd6f[_0x213d31])&&(_0x4171d0=_0x497573(_0x4171d0)||_0x4171d0);return _0x4171d0;},de=(_0x7872d5,_0x50ff90)=>(_0x31af55,_0x9b5402)=>_0x50ff90(_0x31af55,_0x9b5402,_0x7872d5),_s=(_0x10521c,_0x3477aa,_0x18c346)=>cs(_0x10521c,_0x3477aa+'',_0x18c346);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x4b8fc7(0x103)]=class extends a[_0x4b8fc7(0x30e)]{constructor(_0x32495b=Me,_0x1cc98f,_0x5f400f,_0x3e27d4){const _0x4fc8f3=_0x4b8fc7;super(),this[_0x4fc8f3(0x30d)]=_0x32495b,this[_0x4fc8f3(0x258)]=_0x1cc98f,this[_0x4fc8f3(0x1a4)]=_0x5f400f,this['_configService']=_0x3e27d4;const {..._0x492b5f}=a['merge']({},Me,this['_config']);this['_configService'][_0x4fc8f3(0x233)](Yt,_0x492b5f);}[_0x4b8fc7(0x247)](){const _0x39ae48=_0x4b8fc7;this['_registerDependencies'](),this[_0x39ae48(0x22b)]();}[_0x4b8fc7(0x316)](){this['_registerRenderDependencies']();}[_0x4b8fc7(0xee)](){const _0x35704b=_0x4b8fc7;var _0x4bb6c1;const _0x544f85=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x['ISocketService'],{'useClass':x[_0x35704b(0x2af)]}],[u['ILocalCacheService'],{'useClass':Te}],[exports[_0x35704b(0xf2)]],[ie],[Z],[F],[me],[exports[_0x35704b(0x136)]]];this[_0x35704b(0x30d)][_0x35704b(0x2f6)]&&_0x544f85['push']([Q]),a[_0x35704b(0xf4)](this[_0x35704b(0x1a4)],a[_0x35704b(0x10f)](_0x544f85,(_0x4bb6c1=this[_0x35704b(0x30d)])==null?void 0x0:_0x4bb6c1['override']));}[_0x4b8fc7(0xb8)](){const _0xb1b178=_0x4b8fc7;this[_0xb1b178(0x350)](this[_0xb1b178(0x258)][_0xb1b178(0x157)](a[_0xb1b178(0x326)][_0xb1b178(0xa7)],[Ee])),this[_0xb1b178(0x350)](this[_0xb1b178(0x258)][_0xb1b178(0x157)](a[_0xb1b178(0x326)][_0xb1b178(0x1dc)],[Ce]));}[_0x4b8fc7(0x22b)](){const _0x919fba=_0x4b8fc7;a[_0x919fba(0x216)](this[_0x919fba(0x1a4)],[[F],[exports[_0x919fba(0xf2)]],[ie],[Z],[exports['CollaborationDataLoaderController']],[ne]]),this[_0x919fba(0x30d)][_0x919fba(0x2f6)]&&a[_0x919fba(0x216)](this[_0x919fba(0x1a4)],[[Q]]);}},_s(exports[_0x4b8fc7(0x103)],_0x4b8fc7(0x1d5),hs),exports[_0x4b8fc7(0x103)]=ls([a[_0x4b8fc7(0x202)](u[_0x4b8fc7(0xd2)]),de(0x1,C[_0x4b8fc7(0x127)]),de(0x2,a[_0x4b8fc7(0x2ee)](a[_0x4b8fc7(0x1e4)])),de(0x3,a[_0x4b8fc7(0x2b0)])],exports[_0x4b8fc7(0x103)]);var us=Object[_0x4b8fc7(0x288)],Is=(_0x559229,_0x7c1057,_0x215715,_0x5e9afe)=>{const _0xb78b02=_0x4b8fc7;for(var _0x3cb4e0=_0x5e9afe>0x1?void 0x0:_0x5e9afe?us(_0x7c1057,_0x215715):_0x7c1057,_0x1bc2b5=_0x559229[_0xb78b02(0x34f)]-0x1,_0x1196f5;_0x1bc2b5>=0x0;_0x1bc2b5--)(_0x1196f5=_0x559229[_0x1bc2b5])&&(_0x3cb4e0=_0x1196f5(_0x3cb4e0)||_0x3cb4e0);return _0x3cb4e0;},W=(_0x184b30,_0x1d03c0)=>(_0xb4e41a,_0x4f53d1)=>_0x1d03c0(_0xb4e41a,_0x4f53d1,_0x184b30);exports[_0x4b8fc7(0x1c1)]=class extends u['CollaborationSocketService']{constructor(_0x28569f,_0x5362f4,_0x4705e2,_0xdb8a19,_0x50c429){super(_0x28569f,_0x5362f4,_0x4705e2,_0xdb8a19,_0x50c429);}async['createSocket'](_0x4b84d8){const _0x23b227=_0x4b8fc7,_0x35a909=await this[_0x23b227(0x179)](),_0x6f79b5=this[_0x23b227(0x114)](_0x4b84d8,_0x35a909);return this[_0x23b227(0x11b)](_0x6f79b5);}[_0x4b8fc7(0x114)](_0x1f4da0,_0x2bd885){const _0x4d6d1d=_0x4b8fc7,_0x46b67e=typeof window>'u'?new URL(_0x1f4da0):new URL(_0x1f4da0,window['location'][_0x4d6d1d(0x1bb)]);_0x46b67e[_0x4d6d1d(0x221)][_0x4d6d1d(0x272)](_0x4d6d1d(0x163),_0x2bd885);const _0x2ffc7c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4d6d1d(0x331)][_0x4d6d1d(0x15f)]);return _0x2ffc7c[_0x4d6d1d(0x16d)](_0x4d6d1d(0x274))&&_0x46b67e['searchParams'][_0x4d6d1d(0x272)](_0x4d6d1d(0x274),_0x2ffc7c['get'](_0x4d6d1d(0x274))),_0x46b67e[_0x4d6d1d(0x320)]();}async[_0x4b8fc7(0x179)](){const _0x4ace48=_0x4b8fc7;var _0x4ec302,_0x115bf5,_0x475a34;const _0xe53136=this[_0x4ace48(0x2fc)]['getConfig'](u[_0x4ace48(0x21d)]),_0x2203e4=(_0x4ec302=_0xe53136==null?void 0x0:_0xe53136['wsSessionTicketUrl'])!=null?_0x4ec302:u[_0x4ace48(0xe5)];return(_0x475a34=(_0x115bf5=(await this['_httpService']['get'](_0x2203e4,{'headers':{'Content-Type':_0x4ace48(0xaa)}}))[_0x4ace48(0x137)])==null?void 0x0:_0x115bf5['ticket'])!=null?_0x475a34:'';}},exports[_0x4b8fc7(0x1c1)]=Is([W(0x0,a[_0x4b8fc7(0x2ee)](a['Injector'])),W(0x1,a[_0x4b8fc7(0x2ee)](x[_0x4b8fc7(0xb2)])),W(0x2,a[_0x4b8fc7(0x2b0)]),W(0x3,a[_0x4b8fc7(0x344)]),W(0x4,g[_0x4b8fc7(0x252)])],exports[_0x4b8fc7(0x1c1)]);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0x2e7743,_0x1bd7ea,_0x1b79e9,_0x3ce754)=>{const _0x1fffef=_0x4b8fc7;for(var _0x1c7047=_0x3ce754>0x1?void 0x0:_0x3ce754?Ss(_0x1bd7ea,_0x1b79e9):_0x1bd7ea,_0x26c269=_0x2e7743[_0x1fffef(0x34f)]-0x1,_0x4949ef;_0x26c269>=0x0;_0x26c269--)(_0x4949ef=_0x2e7743[_0x26c269])&&(_0x1c7047=_0x4949ef(_0x1c7047)||_0x1c7047);return _0x1c7047;},fe=(_0x17afb8,_0x2424b5)=>(_0x55bb06,_0x4e9e59)=>_0x2424b5(_0x55bb06,_0x4e9e59,_0x17afb8);exports[_0x4b8fc7(0x327)]=class extends a[_0x4b8fc7(0x1cc)]{constructor(_0x20f481,_0x20490b,_0x5e2d55){const _0x34b915=_0x4b8fc7;super(),this['_instanceService']=_0x20f481,this[_0x34b915(0x34b)]=_0x20490b,this['_configService']=_0x5e2d55;}async[_0x4b8fc7(0xf8)](_0x1cb53f,_0x1742fe,_0x48d934,..._0x3d43d4){const _0x4e3180=_0x4b8fc7;var _0x3ad22d,_0x35bd96,_0x45fa4e,_0x19e584;const _0x349711=this[_0x4e3180(0x281)][_0x4e3180(0x151)]();if(!_0x349711)throw new Error(_0x4e3180(0xf9));const _0x5132a4=((_0x3ad22d=this[_0x4e3180(0x2fc)][_0x4e3180(0x333)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x3ad22d:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x1cb53f+_0x4e3180(0xca)+_0x1742fe,_0x1a5013=new URL(window[_0x4e3180(0x331)][_0x4e3180(0x111)]),_0x4613a8={'scriptId':_0x1cb53f,'runId':(_0x35bd96=_0x1a5013['searchParams'][_0x4e3180(0x16d)](_0x4e3180(0x274)))!=null?_0x35bd96:'','function':_0x1742fe,'unitId':_0x349711[_0x4e3180(0x1f6)](),'argsOfFunction':JSON[_0x4e3180(0x13c)](_0x3d43d4),'invokeId':(_0x45fa4e=_0x48d934[_0x4e3180(0x236)])!=null?_0x45fa4e:'','executionId':(_0x19e584=_0x48d934[_0x4e3180(0x1c8)])!=null?_0x19e584:''};try{const _0x2b052b=await this['_httpService'][_0x4e3180(0x259)](_0x5132a4,{'body':_0x4613a8});return _0x2b052b['body'][_0x4e3180(0x1e1)]&&_0x2b052b[_0x4e3180(0x137)][_0x4e3180(0x1e1)][_0x4e3180(0x32d)]!==G['OK']?_0x4e3180(0x101):_0x2b052b[_0x4e3180(0x137)][_0x4e3180(0x2c4)];}catch{return _0x4e3180(0x101);}}},exports[_0x4b8fc7(0x327)]=ds([fe(0x0,a[_0x4b8fc7(0xec)]),fe(0x1,a[_0x4b8fc7(0x2ee)](x[_0x4b8fc7(0xb2)])),fe(0x2,a[_0x4b8fc7(0x2b0)])],exports[_0x4b8fc7(0x327)]);const we=0x7530,ye=_0x4b8fc7(0x27f);class fs extends a[_0x4b8fc7(0x1cc)]{constructor(){const _0x2c5da1=_0x4b8fc7;super(),_(this,_0x2c5da1(0x334),a[_0x2c5da1(0x214)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x2c5da1(0x2ff),new Map()),_(this,_0x2c5da1(0x2be),null),_(this,_0x2c5da1(0x264),new Map()),_(this,_0x2c5da1(0x117),new Map()),this[_0x2c5da1(0x16a)]();}[_0x4b8fc7(0x83)](){const _0x12147b=_0x4b8fc7;super['dispose'](),this[_0x12147b(0x264)]['forEach']((_0x233f15,_0x5c1eb4)=>this[_0x12147b(0x1fe)](_0x5c1eb4)),this[_0x12147b(0x2be)]&&window[_0x12147b(0x192)](this['_heartbeatTimer']);}[_0x4b8fc7(0x2c5)](_0x2698d0){const _0x4dd659=_0x4b8fc7;return this[_0x4dd659(0x1de)](_0x2698d0)[_0x4dd659(0x266)](I[_0x4dd659(0x131)]());}[_0x4b8fc7(0x347)](_0x540956){const _0x153e31=_0x4b8fc7;this[_0x153e31(0x19b)][_0x153e31(0x1a1)]===0x0&&this['_scheduleHeartbeat'](),this[_0x153e31(0x19b)]['add'](_0x540956),this[_0x153e31(0x34a)]({'type':0x0,'memberID':this[_0x153e31(0x334)],'unitIDs':[_0x540956],'isForwarded':!0x1});}[_0x4b8fc7(0xbf)](_0x1cb55a){const _0x40c8bc=_0x4b8fc7;this[_0x40c8bc(0x19b)]['delete'](_0x1cb55a),this[_0x40c8bc(0x19b)]['size']===0x0&&this[_0x40c8bc(0x2be)]&&window[_0x40c8bc(0x192)](this[_0x40c8bc(0x2be)]);}[_0x4b8fc7(0x16a)](){const _0x3159f4=_0x4b8fc7;this[_0x3159f4(0x350)](a[_0x3159f4(0x2b4)](I[_0x3159f4(0x10b)](window,'storage')[_0x3159f4(0x304)](_0x4a3a6c=>{const _0x387fa9=_0x3159f4;if(_0x4a3a6c[_0x387fa9(0xc0)]!==ye||!_0x4a3a6c['newValue'])return;const _0x414423=JSON[_0x387fa9(0x23b)](_0x4a3a6c[_0x387fa9(0x1bc)]);this[_0x387fa9(0xf6)](_0x414423);}))),window[_0x3159f4(0x28f)](_0x3159f4(0x303),()=>this[_0x3159f4(0x34a)]({'type':0x1,'memberID':this[_0x3159f4(0x334)],'unitIDs':Array['from'](this[_0x3159f4(0x19b)])}));}[_0x4b8fc7(0xf6)](_0x5c14db){const _0xfa01fa=_0x4b8fc7;switch(_0x5c14db[_0xfa01fa(0x2c3)]){case 0x0:this['_handleJoinEvent'](_0x5c14db);break;case 0x1:this[_0xfa01fa(0x309)](_0x5c14db);break;case 0x2:this[_0xfa01fa(0x1f8)](_0x5c14db);break;}}[_0x4b8fc7(0x187)](_0x1bb0e5){const _0x273220=_0x4b8fc7,{unitIDs:_0x2a89cb,memberID:_0x38b687,isForwarded:_0x2892a0}=_0x1bb0e5;_0x2a89cb[_0x273220(0x7d)](_0x5ddabc=>{const _0x2b04f0=_0x273220;if(!_0x2892a0&&this[_0x2b04f0(0x2ff)][_0x2b04f0(0x2e2)](_0x5ddabc)&&this['_ensureSubject'](_0x5ddabc)[_0x2b04f0(0x322)](u['UnitStatus'][_0x2b04f0(0x33d)]),!this[_0x2b04f0(0x2ff)][_0x2b04f0(0x2e2)](_0x5ddabc)||!this[_0x2b04f0(0x2ff)][_0x2b04f0(0x16d)](_0x5ddabc)['has'](_0x38b687)){const _0x40f7ed=this['_unitOnClients']['get'](_0x5ddabc)||new Set();_0x40f7ed[_0x2b04f0(0x219)](_0x38b687),this['_unitOnClients'][_0x2b04f0(0x272)](_0x5ddabc,_0x40f7ed),this[_0x2b04f0(0xef)](_0x38b687);}}),_0x2892a0||this[_0x273220(0x34a)]({'type':0x0,'memberID':this[_0x273220(0x334)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3007c8){const _0x1b98ed=_0x4b8fc7;this[_0x1b98ed(0x1fe)](_0x3007c8);const _0x26d89a=window[_0x1b98ed(0x24e)](()=>{const _0x5e1503=_0x1b98ed;this[_0x5e1503(0x2ff)]['forEach'](_0x2492e8=>{const _0x176815=_0x5e1503;_0x2492e8[_0x176815(0x224)](_0x3007c8);});},we*0x2);this[_0x1b98ed(0x264)]['set'](_0x3007c8,_0x26d89a);}[_0x4b8fc7(0x1fe)](_0x5c2b46){const _0x35b933=_0x4b8fc7;if(this[_0x35b933(0x264)]['has'](_0x5c2b46)){const _0x4d1a1c=this[_0x35b933(0x264)][_0x35b933(0x16d)](_0x5c2b46);_0x4d1a1c&&window[_0x35b933(0x1c5)](_0x4d1a1c),this['_clearOtherTimers'][_0x35b933(0x272)](_0x5c2b46,null);}}[_0x4b8fc7(0x309)](_0x314061){const _0x180b92=_0x4b8fc7,{memberID:_0x3a538a,unitIDs:_0x4e146e}=_0x314061;_0x4e146e[_0x180b92(0x7d)](_0x596c91=>{const _0x2a6cfe=_0x180b92;var _0x2a4234;const _0x284cd4=this[_0x2a6cfe(0x2ff)][_0x2a6cfe(0x16d)](_0x596c91);_0x284cd4&&(_0x284cd4[_0x2a6cfe(0x224)](_0x3a538a),(_0x2a4234=this[_0x2a6cfe(0x1de)](_0x596c91))==null||_0x2a4234[_0x2a6cfe(0x322)](_0x284cd4[_0x2a6cfe(0x1a1)]===0x0?u[_0x2a6cfe(0x8f)]['NO_OTHER_CLIENTS_EDITING']:u[_0x2a6cfe(0x8f)][_0x2a6cfe(0x33d)]));}),this[_0x180b92(0x1fe)](_0x3a538a);}[_0x4b8fc7(0x1f8)](_0x1baa38){const _0x3b5b4d=_0x4b8fc7;this[_0x3b5b4d(0xef)](_0x1baa38[_0x3b5b4d(0x2a8)]);}[_0x4b8fc7(0x34a)](_0x4570dc){const _0x4ac63e=_0x4b8fc7;localStorage['setItem'](ye,JSON[_0x4ac63e(0x13c)](_0x4570dc));}[_0x4b8fc7(0x315)](){const _0x40c0c0=_0x4b8fc7;this['_heartbeatTimer']=window[_0x40c0c0(0x1ae)](()=>{const _0x539082=_0x40c0c0;this[_0x539082(0x34a)]({'type':0x2,'memberID':this[_0x539082(0x334)]});},we);}[_0x4b8fc7(0x1de)](_0x3ffe43){const _0x55c2a4=_0x4b8fc7;return this['_unitStatus']['has'](_0x3ffe43)||this[_0x55c2a4(0x117)][_0x55c2a4(0x272)](_0x3ffe43,new I[(_0x55c2a4(0x2ad))](u[_0x55c2a4(0x8f)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x55c2a4(0x117)][_0x55c2a4(0x16d)](_0x3ffe43);}}exports[_0x4b8fc7(0x235)]=Oe,exports[_0x4b8fc7(0x265)]=je,exports[_0x4b8fc7(0x2f7)]=fs,exports[_0x4b8fc7(0x84)]=ke;