@univerjs-pro/collaboration-client-ui 1.0.0-beta.1 → 1.0.0-beta.2

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 (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +19 -19
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1ab813=_0x8a3e;(function(_0xa3ac0f,_0x370c28){const _0x1de04f=_0x8a3e,_0x435d60=_0xa3ac0f();while(!![]){try{const _0x2ce1ff=parseInt(_0x1de04f(0x3c7))/0x1+-parseInt(_0x1de04f(0x2a0))/0x2+-parseInt(_0x1de04f(0x180))/0x3+parseInt(_0x1de04f(0x10e))/0x4+-parseInt(_0x1de04f(0x12c))/0x5+-parseInt(_0x1de04f(0x29c))/0x6+parseInt(_0x1de04f(0x2f4))/0x7;if(_0x2ce1ff===_0x370c28)break;else _0x435d60['push'](_0x435d60['shift']());}catch(_0x566714){_0x435d60['push'](_0x435d60['shift']());}}}(_0x10b6,0x91779),Object[_0x1ab813(0x23f)](exports,Symbol[_0x1ab813(0x3b0)],{'value':_0x1ab813(0x1ea)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/ui'),r=require('rxjs'),i=require('rxjs/operators'),a=require('@univerjs/design'),o=require('@univerjs/icons'),s=require('react'),c=require('react/jsx-runtime'),l=require('@univerjs-pro/collaboration'),u=require('@univerjs-pro/license'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('@univerjs/engine-render'),m=require('@univerjs/network'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs/sheets-ui'),v=require('@univerjs/protocol');function ee(_0x10d838){const _0x40d969=_0x1ab813;switch(_0x10d838){case e[_0x40d969(0x24f)]['OFFLINE']:return{'icon':(0x0,c[_0x40d969(0x1f9)])(o['OffLineIcon'],{}),'colorClass':_0x40d969(0x3aa),'i18nKey':_0x40d969(0x3d9),'tooltipKey':_0x40d969(0x365),'clickable':!0x0,'indicator':'static'};case e[_0x40d969(0x24f)][_0x40d969(0x3b8)]:return{'icon':(0x0,c[_0x40d969(0x1f9)])(o['OffLineIcon'],{}),'colorClass':'univer-text-orange-500','i18nKey':_0x40d969(0x1f4),'clickable':!0x1,'indicator':'static'};case e[_0x40d969(0x24f)][_0x40d969(0x24c)]:return{'icon':(0x0,c[_0x40d969(0x1f9)])(o[_0x40d969(0x3f6)],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':'spin'};case e[_0x40d969(0x24f)][_0x40d969(0x213)]:return{'icon':(0x0,c[_0x40d969(0x1f9)])(o[_0x40d969(0x3e3)],{}),'colorClass':'univer-text-gray-400','i18nKey':_0x40d969(0x107),'clickable':!0x1,'indicator':'static'};case e['CollaborationStatus'][_0x40d969(0x242)]:case e[_0x40d969(0x24f)][_0x40d969(0x170)]:return{'icon':(0x0,c['jsx'])(o[_0x40d969(0x3f6)],{}),'colorClass':_0x40d969(0x3f1),'i18nKey':_0x40d969(0x36a),'clickable':!0x1,'indicator':_0x40d969(0x230)};case e[_0x40d969(0x24f)][_0x40d969(0x23c)]:return{'icon':(0x0,c[_0x40d969(0x1f9)])(o['LoadingMultiIcon'],{}),'colorClass':_0x40d969(0x3f1),'i18nKey':_0x40d969(0x36a),'clickable':!0x1,'indicator':_0x40d969(0x230)};case e[_0x40d969(0x24f)][_0x40d969(0x33f)]:return{'icon':(0x0,c['jsx'])(o['OnLineIcon'],{}),'colorClass':_0x40d969(0x265),'i18nKey':_0x40d969(0x1b8),'clickable':!0x1,'indicator':'static'};}}function te(_0x434905){const _0x2004d3=_0x1ab813;let {status$:_0x43eee9}=_0x434905,_0xf7149b=(0x0,n['useObservable'])(_0x43eee9,e[_0x2004d3(0x24f)][_0x2004d3(0x213)]),_0x23d1a5=(0x0,n[_0x2004d3(0x11c)])(t[_0x2004d3(0x324)]),_0x53ac2e=(0x0,n['useDependency'])(e[_0x2004d3(0x3dd)]),_0x228040=(0x0,s[_0x2004d3(0x376)])(()=>ee(_0xf7149b),[_0xf7149b]),_0x3c1778=_0xf7149b!==e[_0x2004d3(0x24f)][_0x2004d3(0x12b)],_0x576032=_0x23d1a5['t'](_0x228040[_0x2004d3(0xf4)]),_0x27ec2a=_0x228040['tooltipKey']?_0x23d1a5['t'](_0x228040[_0x2004d3(0x3de)]):_0x576032,_0x17b041=(0x0,s[_0x2004d3(0xfe)])(()=>{const _0x4cbf47=_0x2004d3;_0x3c1778||_0x53ac2e[_0x4cbf47(0x3b2)]();},[_0x3c1778,_0x53ac2e]),_0x42d49b=(0x0,s[_0x2004d3(0xfe)])(_0x5eb2ef=>{const _0xedae86=_0x2004d3;!_0x3c1778&&(_0x5eb2ef[_0xedae86(0x13f)]===_0xedae86(0x21f)||_0x5eb2ef['key']==='\x20')&&(_0x5eb2ef[_0xedae86(0x3bf)](),_0x53ac2e['reconnect']());},[_0x3c1778,_0x53ac2e]),_0x5beb07=(0x0,c['jsx'])(_0x2004d3(0x1a5),{'className':(0x0,a['clsx'])(_0x2004d3(0x325),_0x2004d3(0x1b1),_0x228040['colorClass'],{'univer-animate-spin':_0x228040['indicator']===_0x2004d3(0x230),'univer-animate-pulse':_0x228040[_0x2004d3(0x149)]==='pulse'}),'aria-hidden':_0x2004d3(0x13b),'children':_0x228040[_0x2004d3(0x1f6)]}),_0x5ec1af=(0x0,c['jsx'])('span',{'className':(0x0,a[_0x2004d3(0x3cb)])('univer-flex\x20univer-items-center\x20univer-justify-center','univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x2004d3(0x33b),_0x2004d3(0x1c9),_0x2004d3(0x32d),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x228040[_0x2004d3(0x34f)],'univer-cursor-default':!_0x228040[_0x2004d3(0x34f)]}),'children':_0x5beb07});return _0x228040[_0x2004d3(0x34f)]?(0x0,c[_0x2004d3(0x1f9)])(a[_0x2004d3(0x228)],{'title':_0x27ec2a,'placement':_0x2004d3(0x14b),'children':(0x0,c['jsx'])(_0x2004d3(0x21d),{'type':_0x2004d3(0x21d),'onClick':_0x17b041,'onKeyDown':_0x42d49b,'className':(0x0,a[_0x2004d3(0x3cb)])(_0x2004d3(0x3f4),'univer-border-none\x20univer-bg-transparent',_0x2004d3(0x2cc),_0x2004d3(0x1f8)),'aria-label':_0x576032+_0x2004d3(0x294)+_0x27ec2a,'role':'status','aria-live':_0x2004d3(0x15e),'aria-atomic':_0x2004d3(0x13b),'children':_0x5ec1af})}):(0x0,c[_0x2004d3(0x1f9)])(a[_0x2004d3(0x228)],{'title':_0x27ec2a,'placement':'bottom','children':(0x0,c[_0x2004d3(0x1f9)])('div',{'className':(0x0,a['clsx'])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x2004d3(0x1dc),_0x2004d3(0x2cc)),'aria-label':_0x576032,'role':_0x2004d3(0x361),'aria-live':'polite','aria-atomic':_0x2004d3(0x13b),'children':_0x5ec1af})});}function y(_0x1cd1e6){'@babel/helpers - typeof';const _0x14cfa3=_0x1ab813;return y=typeof Symbol==_0x14cfa3(0x247)&&typeof Symbol['iterator']==_0x14cfa3(0x3cd)?function(_0x1a626d){return typeof _0x1a626d;}:function(_0x330918){const _0x4bc6c5=_0x14cfa3;return _0x330918&&typeof Symbol=='function'&&_0x330918['constructor']===Symbol&&_0x330918!==Symbol[_0x4bc6c5(0x243)]?_0x4bc6c5(0x3cd):typeof _0x330918;},y(_0x1cd1e6);}function ne(_0x1d44bf,_0x1ed4d1){const _0x8ff74f=_0x1ab813;if(y(_0x1d44bf)!=_0x8ff74f(0x313)||!_0x1d44bf)return _0x1d44bf;var _0x4a86ae=_0x1d44bf[Symbol[_0x8ff74f(0x262)]];if(_0x4a86ae!==void 0x0){var _0x5c4c7c=_0x4a86ae[_0x8ff74f(0x156)](_0x1d44bf,_0x1ed4d1||_0x8ff74f(0x160));if(y(_0x5c4c7c)!=_0x8ff74f(0x313))return _0x5c4c7c;throw TypeError(_0x8ff74f(0x12e));}return(_0x1ed4d1===_0x8ff74f(0x211)?String:Number)(_0x1d44bf);}function re(_0x1a4375){const _0x5a5241=_0x1ab813;var _0x1ee580=ne(_0x1a4375,_0x5a5241(0x211));return y(_0x1ee580)==_0x5a5241(0x3cd)?_0x1ee580:_0x1ee580+'';}function b(_0xa4b45b,_0xc8bc3b,_0xbaeb8){const _0x3626fe=_0x1ab813;return(_0xc8bc3b=re(_0xc8bc3b))in _0xa4b45b?Object[_0x3626fe(0x23f)](_0xa4b45b,_0xc8bc3b,{'value':_0xbaeb8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xa4b45b[_0xc8bc3b]=_0xbaeb8,_0xa4b45b;}function x(_0x3b3a05,_0x25ec89){return function(_0x35ec03,_0x30696d){_0x25ec89(_0x35ec03,_0x30696d,_0x3b3a05);};}function S(_0x2958fc,_0x212341,_0x17235d,_0x175a54){const _0x5873eb=_0x1ab813;var _0x30c425=arguments[_0x5873eb(0x3e4)],_0x1b58bd=_0x30c425<0x3?_0x212341:_0x175a54===null?_0x175a54=Object[_0x5873eb(0x3c1)](_0x212341,_0x17235d):_0x175a54,_0x543aa1;if(typeof Reflect==_0x5873eb(0x313)&&typeof Reflect[_0x5873eb(0x198)]==_0x5873eb(0x247))_0x1b58bd=Reflect[_0x5873eb(0x198)](_0x2958fc,_0x212341,_0x17235d,_0x175a54);else{for(var _0x30b21e=_0x2958fc[_0x5873eb(0x3e4)]-0x1;_0x30b21e>=0x0;_0x30b21e--)(_0x543aa1=_0x2958fc[_0x30b21e])&&(_0x1b58bd=(_0x30c425<0x3?_0x543aa1(_0x1b58bd):_0x30c425>0x3?_0x543aa1(_0x212341,_0x17235d,_0x1b58bd):_0x543aa1(_0x212341,_0x17235d))||_0x1b58bd);}return _0x30c425>0x3&&_0x1b58bd&&Object['defineProperty'](_0x212341,_0x17235d,_0x1b58bd),_0x1b58bd;}let C=class extends t[_0x1ab813(0x29a)]{constructor(_0x5ab544,_0x2418aa,_0x15664d,_0x4b1bf3,_0x3b917e){const _0x6f6f04=_0x1ab813;super(),this[_0x6f6f04(0x37b)]=_0x5ab544,this[_0x6f6f04(0x100)]=_0x2418aa,this[_0x6f6f04(0x3eb)]=_0x15664d,this[_0x6f6f04(0x404)]=_0x4b1bf3,this[_0x6f6f04(0x336)]=_0x3b917e,b(this,_0x6f6f04(0x2b5),new r[(_0x6f6f04(0x371))](e[_0x6f6f04(0x24f)][_0x6f6f04(0x213)])),b(this,_0x6f6f04(0x3a9),new Map()),this[_0x6f6f04(0x1df)](),this[_0x6f6f04(0x1e7)](),this[_0x6f6f04(0x3da)]();}['dispose'](){const _0x578bca=_0x1ab813;this[_0x578bca(0x3a9)][_0x578bca(0x131)](_0x60a37a=>_0x60a37a['dispose']()),this[_0x578bca(0x3a9)][_0x578bca(0x123)](),this['_status$'][_0x578bca(0x1ae)](),super[_0x578bca(0x38f)]();}[_0x1ab813(0x1e7)](){const _0x4e3c93=_0x1ab813;this[_0x4e3c93(0x150)]((0x0,r['merge'])(this[_0x4e3c93(0x37b)][_0x4e3c93(0x270)],this[_0x4e3c93(0x37b)][_0x4e3c93(0x2e3)](t[_0x4e3c93(0x1a1)][_0x4e3c93(0x23e)]),this[_0x4e3c93(0x37b)][_0x4e3c93(0x2e3)](t[_0x4e3c93(0x1a1)]['UNIVER_SHEET']))[_0x4e3c93(0x32b)]((0x0,i[_0x4e3c93(0x15f)])(()=>ie(this[_0x4e3c93(0x37b)])),(0x0,i[_0x4e3c93(0x35c)])(),(0x0,r[_0x4e3c93(0x2a2)])(_0x4969b1=>_0x4969b1?this[_0x4e3c93(0x3eb)][_0x4e3c93(0x137)](_0x4969b1):(0x0,r['of'])(null)),(0x0,r[_0x4e3c93(0x2a2)])(_0x1bf23c=>_0x1bf23c?_0x1bf23c[_0x4e3c93(0x285)]:(0x0,r['of'])(e[_0x4e3c93(0x24f)][_0x4e3c93(0x213)])))[_0x4e3c93(0x37e)](_0x13c29f=>{const _0x2a51f2=_0x4e3c93;this[_0x2a51f2(0x2b5)][_0x2a51f2(0x184)](_0x13c29f);}));}[_0x1ab813(0x1df)](){const _0x373aeb=_0x1ab813;this[_0x373aeb(0x150)](this[_0x373aeb(0x404)]['registerComponent'](n[_0x373aeb(0x140)]['HEADER_MENU'],()=>(0x0,n[_0x373aeb(0x20f)])(ae({'status$':this[_0x373aeb(0x2b5)][_0x373aeb(0x3d0)]()}),this[_0x373aeb(0x100)])));}['_initPresenceStatusComponents'](){const _0x4949a1=_0x1ab813;let _0x557ecd=this[_0x4949a1(0x336)][_0x4949a1(0x219)][_0x4949a1(0x37e)](_0x56c279=>{const _0x1c421b=_0x4949a1;this[_0x1c421b(0x3f8)](_0x56c279);});this[_0x4949a1(0x150)]((0x0,t[_0x4949a1(0x2fb)])(()=>_0x557ecd['unsubscribe']()));}[_0x1ab813(0x3f8)](_0x2effd0){const _0x1f474e=_0x1ab813;let _0x373975=new Map(_0x2effd0[_0x1f474e(0x208)](_0x277035=>_0x277035[_0x1f474e(0x3ff)]!=null)[_0x1f474e(0x15f)](_0x280324=>[_0x280324[_0x1f474e(0x120)],_0x280324]));this[_0x1f474e(0x3a9)][_0x1f474e(0x131)]((_0x1bd3df,_0x3c3ac4)=>{const _0x195d76=_0x1f474e;_0x373975[_0x195d76(0x3fb)](_0x3c3ac4)||(_0x1bd3df[_0x195d76(0x38f)](),this[_0x195d76(0x3a9)][_0x195d76(0x2c2)](_0x3c3ac4));}),_0x373975[_0x1f474e(0x131)]((_0x14d171,_0xf013db)=>{const _0xe6f73=_0x1f474e;this[_0xe6f73(0x3a9)][_0xe6f73(0x3fb)](_0xf013db)||this['_registerPresenceStatusComponent'](_0x14d171);});}[_0x1ab813(0x2cd)](_0x526b29){const _0x18febc=_0x1ab813;let _0x52f631=_0x526b29[_0x18febc(0x3ff)];if(!_0x52f631)return;let _0x1eacf2=new t[(_0x18febc(0x106))](),_0x24cc59=new r['BehaviorSubject'](e[_0x18febc(0x24f)][_0x18febc(0x213)]);_0x1eacf2['add']((0x0,t['toDisposable'])(()=>_0x24cc59[_0x18febc(0x1ae)]())),_0x1eacf2[_0x18febc(0x28d)](this[_0x18febc(0x404)][_0x18febc(0x379)](_0x52f631,()=>(0x0,n[_0x18febc(0x20f)])(ae({'status$':_0x24cc59['asObservable']()}),this[_0x18febc(0x100)])));let _0x4a5ef1=this[_0x18febc(0x37b)][_0x18febc(0x2e3)](_0x526b29[_0x18febc(0x120)])[_0x18febc(0x32b)]((0x0,i[_0x18febc(0x15f)])(_0xb7de12=>(_0xb7de12==null?void 0x0:_0xb7de12['getUnitId']())??null),(0x0,i[_0x18febc(0x35c)])(),(0x0,r[_0x18febc(0x2a2)])(_0x11109e=>_0x11109e?this['_collaborationController']['getCollabEntity$'](_0x11109e):(0x0,r['of'])(null)),(0x0,r[_0x18febc(0x2a2)])(_0x579ee9=>(_0x579ee9==null?void 0x0:_0x579ee9['status$'])??(0x0,r['of'])(e[_0x18febc(0x24f)][_0x18febc(0x213)])))['subscribe'](_0x295bcf=>_0x24cc59[_0x18febc(0x184)](_0x295bcf));_0x1eacf2[_0x18febc(0x28d)]((0x0,t[_0x18febc(0x2fb)])(()=>_0x4a5ef1[_0x18febc(0x18a)]())),this[_0x18febc(0x3a9)][_0x18febc(0x204)](_0x526b29['unitType'],_0x1eacf2);}};C=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x1ab813(0x3b3)])(t[_0x1ab813(0x16e)])),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(e[_0x1ab813(0x36f)])),x(0x3,n[_0x1ab813(0x23d)]),x(0x4,(0x0,t['Inject'])(n['IUnitPresenceUIAdapterRegistry']))],C);function _0x10b6(){const _0x824d6c=['DependentOn','_assignedColors','currentSkeleton$','CollaborationUIEventId','strokeWidth','SheetsSelectionsService','Tooltip','handleIRemoveCol','imageSourceType','TEXT_RANGE_LAYER_INDEX','endOffset','SetTextSelectionsOperation','_checkCalculationAvailable','_hover','spin','_themeService','endRow','USERS_LEAVE','createElement','stageInfo','roomMembers$','throttleTime','isFinite','ErrorCode','_send','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','PENDING','IUIPartsService','UNIVER_DOC','defineProperty','START_CALCULATION','IMessageService','AWAITING','prototype','_saveTaskMap','tableSource','_updateLocalCursor','function','fillText','IDocClipboardService','_clearPolling','replace','FETCH_MISS','WebSocketService','getMember','CollaborationStatus','merge','filename','DocIMEInputManagerService','UniverCollaborationClientUIPlugin','createIdentifier','send','PERMISSION_DENIED','lineno','selection','_onCursorUpdate','_clearOtherTimers','removeParam','_render','_hovered','getSelectionInfo','subUnitId','body','urlChange$','toPrimitive','columnIndex','UniverDocsUIPlugin','univer-text-green-500','registerRenderModule','...','_getScale','DocSelectionManagerService','_disposed','kind','application/json','isTransformMutationsWithChangesetSuccess','_cursor','MoveRangeCommandId','focused$','save','_range','registerCommand','Error','getActiveSheet','mergeOverrideWithDependencies','totalFormulasToCalculate','DocumentSkeletonPageType','EffectRefRangId',':backup:','_clearTimeoutState','COMPLETE','rgba(','m1Prime','getSheetObject','black','_removeClearOtherTimer','restore','_heartbeatTimer','_getSaveTimeout','status$','_cursorInfo$','fillStyle','handleInsertRangeMoveDown','_startCalculationLimit','wsSessionTicketUrl','some','addHandlerCallback','add','clearInterval','MessageType','runRefRangeMutations','_collabCursorController','/universer-api/license/formula/limit/status','getScrollXYInfoByViewport','\x20-\x20','cursorInfo','_syncEditingCollabCursorService','_blockProgressWatches','serializeRangeWithSheet','replaceDocRanges','Disposable','location','6656922sVtrFT','UniverCollaborationClientPlugin','CanceledError','_localStorageService','452060XWAxBV','show','switchMap','update','activate','_backgroundColor','_memberID','SessionStatus','DOC_RANGE_TYPE','DeleteRangeMoveLeftCommandId','mutations','Subject','beginPath','_scheduleSaving','createInstance','handleDeleteRangeMoveLeft','_entityInit$','_getFormulaLimitStatus','setRemotePresence','_context','1.0.0-beta.1','_status$','segmentPage','_disposeEntitiesForType','red.300','timeoutId','getUnitStatus$','collaboration-client-ui.config','_maxFormulaLimit','CollaborationEvent','_initUserListener','ONLINE','getCurrentRevOfUnit','@univerjs-pro/collaboration-client-ui','delete','getCoordRelativeToViewport','_collabSessionService','getCurrentSkeleton','_blinkIntervalTimer','getLocalPresence','_handleEvent','disposeUnit','_instanceService','_labelHorizontalPosition','univer-m-0\x20univer-p-0','_registerPresenceStatusComponent','Tools','_hasFormulaInDirtyRanges','\x20at\x20','maxFormulaLimit','_pendingEntities','_refRangeService','CommandType','syncEditingCollabCursor','getFocusedUnit','collab-text-range-','InsertRangeMoveRightCommandId','_init','addEventListener','getCellIndexByOffset','memberID','_showGuardMessage','textRanges','_setFormulaLimitStatus','loadedBlocks','enableDocumentCollaborationUI','_adapterDisposables','getCurrentTypeOfUnit$','assignAColorForMemberID','_offsetY','fill','_transformPreviousActiveRange','setConfig','doc.mutation.rich-text-editing','FOOTER','_doCreateSocket','_isBlinkVisible','_getAnchorBounding','FormulaExecuteStageType','_releaseCalculationLimit','_startEntity','_cursors','href','debounce','13210694GCAxIS','handleInsertRow','DocSkeletonManagerService','resize','SnapshotLoadStage','fromEvent','collab-rect-range-','toDisposable','push','_sheetSkeletonManagerService','m2Prime','_handleCursorUpdate','canRenderSelection','columnGroupId','SetWorksheetActivateCommand','RxDisposable','getCurrentUnitOfType','isFormulaId','getTypeOfUnitDisposed$','setItem','_logService','_docSelectionManagerService','handleInsertCol','getSkeleton','_configService','_syncAdapters','findNodePositionByCharIndex','Plugin','IUniverInstanceService','currentTheme$','_registerDependencies','object','SUCCESS','cursorInfo$','highlight','_highlightSecond','shift','DeleteRangeMoveUpCommandId','SheetCollabCursorShape','getItem','getCollabCursors$','right','_createSocketURL','_httpService','reload','clearRemotePresences','sessionStatus$','collaboration-client-ui.session.will-retry','LocaleService','univer-flex\x20univer-items-center\x20univer-justify-center','getParam','source','_pointerMoveDisposable','_onRefRangeChange','_updateCollabCursors','pipe','ITransformService','dark:focus:!univer-ring-offset-gray-800','jsxs','_initWindowErrorListener','onPointerMove$','runOnServer','SUBMIT_CHANGESET_TIMEOUT','totalBlocks','/run/','localPresence$','_presenceAdapterRegistry','transformSelections','collab-text-anchor-','_initResize','_notificationService','univer-transition-all\x20univer-duration-200','UNIVER_SHEET','every','getSheetBySheetId','SYNCED','onPointerLeave$','_eventUnsubscribe','mapTo','_taskIds','replaceState','HTTPService','onCommandExecuted','hovered','find','InsertRangeMoveDownCommandId','roomMembers','reason','_applyCommand','touchDependencies','_initUnhandledRejectionListener','clickable','isActive','removeEventListener','sheetId','DesktopCollaborationStatusDisplayController','transformRemoteChangeset','unitId','[LogService\x20Error]:\x20','registerBeforeClose','Button','_updateSubUnitFromURLParams','[Window\x20Error]:\x20','_docStateChangeManagerService','distinctUntilChanged','ISocketService','rgba(255,\x20255,\x20255,\x200.01)','SetDocZoomRatioOperation','_docClipboardService','status','subscribeEvent','_initEvent','_watchBlockProgress','collaboration-client-ui.collabClient.tooltip.reconnect','_getSheetObject','getSheetId','SetFormulaCalculationStartMutation','_uploadLog','collaboration-client-ui.collabStatus.syncing','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','registerDependencies','_lastResponseTimestamp','startFormulaLimitUrl','CollaborationController','_latestStates','BehaviorSubject','_snapshotLoadingService','_handleJoinEvent','_online','Loading','useMemo','executeCommand','ICommandService','registerComponent','_docSyncEditingCollabCursorService','_univerInstanceService','_scheduleClearOtherTimer','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','subscribe','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_anchor','colno','tableId','_transformHistoryAndStateStack','labelPosition','hide','TEXT','_drawTextRange','#FFF','getOffsetConfig','requireSession','Unknown\x20user','bind','startsWith','unitID','dispose','UniverNetworkPlugin','WebBrowserSingleActiveUnitService','_checkAndWaitForCalculationPermission','limitInfo','getMemberID','_getSessionTicket','TRANSFORM_CHANGE_OBSERVABLE_TYPE','currentUsage','_handleLeaveEvent','JOIN_ROOM_FAILED','unhandledrejection','_localCacheService','_ensureSubject','Rect','collaboration-client-ui.permission.title','sheetID','width','_getLighterColor','makeDirty',',\x200.2)','DEFAULT_WS_SESSION_TICKET_URL','collaboration-client-ui.collaboration.closeRoom','override','deserializeRangeWithSheet','_highlight','_presenceStatusRegistrations','univer-text-red-500','_draw','_collaborationSessionService','_renderManagerService','DocStateChangeManagerService','isArray','toStringTag','_monkeyPatchLogService','reconnect','Inject','collaboration-client-ui.snapshotLoading.timeout','toRgbString','version','_removeCollabCursors','CONFLICT','content','onTransformChange$','pointer','FromArray','eventID','sessionTicket','preventDefault','_getMergeRange','getOwnPropertyDescriptor','runId','FormulaExecutedStateType','setUndoRedoMutationParamsCache','stack','font','389646JbCemu','collaboration-client-ui.collaboration.offline-data-not-saved','params','ERROR','clsx','refreshLabel','symbol','setInterval','timeoutState$','asObservable','fromEventSubject','column','lineTo','ranges','canRenderAnchor','RECT','setParam','_stopBlinking','collaboration-client-ui.collabStatus.offline','_initPresenceStatusComponents','startOffset','presenceKind','CollaborationSessionService','tooltipKey','onRendered','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','OTHER_CLIENTS_EDITING','_commandService','OnLineIcon','length','timedOut','getLocalCacheKey','Vector2','_startSheetCollabCursor','rgba','_bindAdapter','_collaborationController','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','getCellMatrix','_showText','parseInt','getAllUnitsForType','univer-text-blue-500','_disposeEntity','post','univer-inline-flex\x20univer-items-center\x20univer-justify-center','bold\x2013px\x20Arial,\x20sans-serif','LoadingMultiIcon','_anchorDot','_syncPresenceStatusComponents','small','_blinkTimer','has','yellow.400','_roomMembers$','_entities','statusUIPart','useObservable','SHEET_VIEWPORT_KEY','stringify','state','_uiPartsService','_setupBeforeClosingHandler','blue.400','_handleHeartbeatEvent','releaseFormulaLimitUrl','jiqing.500','getCoordByCell','_toggleOnline','collaboration-client-ui.collaboration.single-unit.warning','_session','i18nKey','_cachedData','VIEW_MAIN','catch','selections','_cursorShapes','popstate','addObjects','_localeService','setTimeout','useCallback','_initCommandInterceptor','_injector','collaboration-client-ui.formula.calculation.waiting','SetSelectionsOperation','IImageIoService','enableFrontendLog','slice','DisposableCollection','collaboration-client-ui.collabStatus.notCollab','closePath','_document','_sendLocalPresence','Rectangle','_drawRectRange','snapshot-loading-','2983536GLypTa','range','transformMutation','div','IRenderManagerService','getColor','_unitStatus','min','includes','_initialized','getAncestorScale','onStarting','_updateURLWithCurrentState','get','useDependency','join','drawWith','max','unitType','setAlpha','_shapes','clear','SnapshotLoadingService','_color','RemoveColCommandId','getUnit','RemoveRowCommandId','_dataLoaderService','arc','OFFLINE','4563110qGaVfF','ILogService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','collaboration-client-ui.permission.content','COLORS','forEach','setStateCache','registerRefRange','_colorIndex','result','entries','getCollabEntity$','takeUntil','_transformService','_startDocCollabCursor','true','saveTaskMap','collaboration-client-ui.snapshotLoading.refresh','uni.network.url-service','key','BuiltInUIPart','startRow','exhaustSavingTask','addObject','_handleHover','_unitOnClients','ColorKit','OTHER_CLIENT_EDITING','origin','indicator','_messageService','bottom','debounceTime','offsetY','highlightSecond','collabCursorState$','disposeWithMe','_docTransformStateCacheService','_onCursorDelete','transformIMECache','UniverRenderEnginePlugin','InsertColCommandId','call','getUnhiddenWorksheets','_hideTimer','error','_memberService','getUnitId','_clearBlockProgressWatch','CollaborationSocketService','polite','map','default','_revisionService','_docTransformSelectionsService','with','executionId','options','color','text','history','setShapeProps','IURLService','transformMutationsWithChangeset','IBeforeCloseService','UnitStatus','Injector','_lastPointer','AWAITING_WITH_PENDING','_pollingInterval','_adapterRegistry','engine','getRenderUnitById','code','showText','_config','_setupSubUnitSync','dispose$','UPDATE_CURSOR','_imageIoService','_registerRenderDependencies','IUnitPresenceUIAdapterRegistry','searchParams','shareInterval','536400ExlXHP','_removeRemotePresence','_textBubble','getConfig','next','toISOString','onMouseMove','Failed','_docSkeletonManagerService','_isDisposed','unsubscribe','HEADER','collaboration-client-ui.conflict.title','saveImage','_initCommandExecutedListener','OPERATION','GLOBAL','updateOfflineData','_updateMessage','stage','Shape','Success','_refreshCollabCursors','ACTIVE_UNIT_EVENT_CHANNEL','decorate','Workbook','loadUnit','createSocket','_currentUsage','clearTimeout','enableLocalCache','isTransformMutationFailure','_saveCache','UniverInstanceType','handleDeleteRangeMoveUp','_name','deepClone','span','endColumn','shareReplay','_disabled','_startBlinking','getUndoRedoMutationParamsCache','from','?taskId=','collaboration-client-ui.collabStatus.fetchMiss','complete','/universer-api/license/formula/limit/done','isInternalEditorID','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','collaboration-client-ui.conflict.content','generateRandomId','_adapter','getValue','parse','values','collaboration-client-ui.collabStatus.synced','LOCAL_CACHE_INTERVAL_KEY','collaboration-client-ui.session.connection-failed','contains','_timeoutState$','getColorFromTheme','search','unload','isFormulaString','NodePositionConvertToCursor','_collaborationUIEventService','Warning','MemberService','isEditing','now','number','setActiveRange','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','RegularPolygon','handleMoveRange','getTypeOfUnitAdded$','subunit','unit','BrowserCollaborationSocketService','_collabCursorState$','fillRule','pageIndex','ThemeService','_labelPosition','_colorAssignService','startColumn','_clearRemotePresences','pageType','ILocalCacheService','functionsExecutedState','getStateCache','univer-border-none\x20univer-bg-transparent','getFormulaLimitStatusUrl','height','_initStatusComponent','loadOfflineData','type','getDocumentSkeletonColumnPagePathInfo','then','name','measureText','onPointerEnter$','_initStatusListener','getRangePointData','size','Module','_toggleOffline','_scene','toString','redoState','IConfigService','UniverDocsPlugin','LOADING_BLOCKS','_id','pluginName','collaboration-client-ui.collabStatus.conflict','left','icon','pushState','univer-appearance-none','jsx','row','_urlService','SOCKET_FAILED_RETRY','split','collaboration-client-ui.operation.update-remote-unit-presence','init','message','_isVisibleUnit','RemoteUniscriptService','NodePositionConvertToRectRange','set','WarningIcon','_docTransformIMECacheService','moveTo','filter','focusedId','dirtyRanges','snapshot-loading-timeout','value','event$','getViewport','connectInjector','unshift','string','_messageIds','NOT_COLLAB','transformStateCache','rgb','selectedIds','primary','ISnapshotServerService','adapters$','data','newValue','_transformUndoRedoStack','button','_selfUnitIDs','Enter','remove','SOCKET_FAILED'];_0x10b6=function(){return _0x824d6c;};return _0x10b6();}function ie(_0x2b8e20){const _0x312e79=_0x1ab813;let _0x2d8fdb=_0x2b8e20[_0x312e79(0x2d6)](),_0x4d6e31=_0x2d8fdb==null?void 0x0:_0x2d8fdb[_0x312e79(0x15b)]();if(_0x4d6e31&&!(0x0,t[_0x312e79(0x1b0)])(_0x4d6e31))return _0x4d6e31;let _0x25ad92=_0x2b8e20['getCurrentUnitOfType'](t['UniverInstanceType']['UNIVER_DOC']),_0x433254=_0x25ad92==null?void 0x0:_0x25ad92['getUnitId']();if(_0x433254&&!(0x0,t[_0x312e79(0x1b0)])(_0x433254))return _0x433254;let _0x33b636=_0x2b8e20['getCurrentUnitOfType'](t[_0x312e79(0x1a1)][_0x312e79(0x33c)]);if(_0x33b636)return _0x33b636[_0x312e79(0x15b)]();let _0x141a60=_0x2b8e20[_0x312e79(0x3f0)](t[_0x312e79(0x1a1)][_0x312e79(0x23e)])[_0x312e79(0x348)](_0xa792a7=>!(0x0,t['isInternalEditorID'])(_0xa792a7[_0x312e79(0x15b)]()));return _0x141a60?_0x141a60['getUnitId']():null;}function ae(_0x5b8046){let {status$:_0xf1f7a8}=_0x5b8046;return function(){const _0x29302d=_0x8a3e;return(0x0,c[_0x29302d(0x1f9)])(te,{'status$':_0xf1f7a8});};}var oe=_0x1ab813(0x2c1),se=_0x1ab813(0x2b4);const w={'id':_0x1ab813(0x1fe),'type':t[_0x1ab813(0x2d4)][_0x1ab813(0x18f)],'handler':(_0x79701b,_0x3a8f19)=>{const _0x58782a=_0x1ab813;let _0xfd6a90=_0x79701b[_0x58782a(0x11b)](n[_0x58782a(0x17d)])['get'](_0x3a8f19[_0x58782a(0x120)]);if(!_0xfd6a90)return!0x1;switch(_0x3a8f19[_0x58782a(0x2a3)][_0x58782a(0x1e1)]){case _0x58782a(0x204):return _0xfd6a90[_0x58782a(0x2b2)](_0x3a8f19[_0x58782a(0x2a3)][_0x58782a(0x403)]),!0x0;case'remove':return _0xfd6a90['removeRemotePresence'](_0x3a8f19['update'][_0x58782a(0x355)],_0x3a8f19[_0x58782a(0x2a3)]['memberId']),!0x0;case _0x58782a(0x123):return _0xfd6a90[_0x58782a(0x321)](_0x3a8f19[_0x58782a(0x2a3)][_0x58782a(0x355)]),!0x0;default:return!0x1;}}},ce={};let T=class extends t['RxDisposable']{constructor(_0xf79dc5,_0x357703){const _0x382c7f=_0x1ab813;super(),this[_0x382c7f(0x360)]=_0xf79dc5,this[_0x382c7f(0x17b)]=_0x357703,this[_0x382c7f(0x2d9)]();}[_0x1ab813(0x2d9)](){const _0x5f3310=_0x1ab813;let _0x1dc66d=this;this[_0x5f3310(0x150)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x202a5c=>{const _0x30c804=_0x5f3310;let _0xabef15=await _0x1dc66d[_0x30c804(0x17b)][_0x30c804(0x18d)](_0x202a5c);return _0xabef15?{'source':_0xabef15[_0x30c804(0x327)],'imageSourceType':_0xabef15[_0x30c804(0x22a)]}:null;}}));}};T=S([x(0x0,f[_0x1ab813(0x249)]),x(0x1,t[_0x1ab813(0x103)])],T);const le=['purple.300',_0x1ab813(0x409),'green.600',_0x1ab813(0x2b8),_0x1ab813(0x406),_0x1ab813(0x3fc)];var E=class extends t[_0x1ab813(0x29a)]{constructor(..._0x14b801){const _0x3f4b27=_0x1ab813;super(..._0x14b801),b(this,_0x3f4b27(0x223),new Map()),b(this,_0x3f4b27(0x134),0x0);}[_0x1ab813(0x2e4)](_0x3f3913){const _0x599615=_0x1ab813;if(this[_0x599615(0x223)][_0x599615(0x3fb)](_0x3f3913))return this[_0x599615(0x223)][_0x599615(0x11b)](_0x3f3913);let _0x178068=le[this[_0x599615(0x134)]];return this[_0x599615(0x134)]=(this[_0x599615(0x134)]+0x1)%le['length'],this[_0x599615(0x223)][_0x599615(0x204)](_0x3f3913,_0x178068),_0x178068;}};function ue(_0x1bd667){let _0x5aee74='';for(let _0x36d76b of _0x1bd667){let {startOffset:_0x3da3d1,endOffset:_0x101f62,isActive:_0x1b0541,rangeType:_0x4c5fd0,segmentId:_0x4b9e57,segmentPage:_0xbaee3a}=_0x36d76b;_0x5aee74['length']&&(_0x5aee74+=','),_0x5aee74+=_0x3da3d1+':'+_0x101f62+':'+(_0x1b0541?'1':'0')+':'+_0x4c5fd0+':'+_0x4b9e57+':'+_0xbaee3a;}return _0x5aee74;}function de(_0x58f6a9){const _0x58479e=_0x1ab813;let _0x3c153c=_0x58f6a9[_0x58479e(0x1fd)](','),_0x4f1bbd=[];for(let _0x5c9095 of _0x3c153c){let [_0x5ad54e,_0x20545d,_0x327042,_0x16e882,_0x31aed9,_0x2efb61]=_0x5c9095[_0x58479e(0x1fd)](':');_0x4f1bbd['push']({'startOffset':Number(_0x5ad54e),'endOffset':Number(_0x20545d),'collapsed':_0x5ad54e===_0x20545d,'isActive':_0x327042==='1','rangeType':_0x16e882===t['DOC_RANGE_TYPE'][_0x58479e(0x386)]?t[_0x58479e(0x2a8)][_0x58479e(0x386)]:t['DOC_RANGE_TYPE'][_0x58479e(0x3d6)],'segmentId':typeof _0x31aed9==_0x58479e(0x211)?String(_0x31aed9):'','segmentPage':Number(_0x2efb61??-0x1)});}return _0x4f1bbd['some'](_0x32175a=>_0x32175a[_0x58479e(0x350)])||(_0x4f1bbd[0x0]['isActive']=!0x0),_0x4f1bbd;}var D=class extends t[_0x1ab813(0x303)]{constructor(..._0xa032a7){const _0x16e1e0=_0x1ab813;super(..._0xa032a7),b(this,_0x16e1e0(0x1d0),new r['BehaviorSubject'](null)),b(this,_0x16e1e0(0x14f),this[_0x16e1e0(0x1d0)]['asObservable']());}[_0x1ab813(0x2d5)](_0x307ff8){const _0x3673f7=_0x1ab813;let {unitID:_0x39b177,memberID:_0x164da4,textRanges:_0xfb2188}=_0x307ff8,_0x56d6f9=ue(_0xfb2188);if(_0x56d6f9==='')return;let _0xfd35c3={'unitID':_0x39b177,'memberID':_0x164da4,'selection':_0x56d6f9};this[_0x3673f7(0x1d0)][_0x3673f7(0x184)](_0xfd35c3);}};let O=class extends t[_0x1ab813(0x303)]{get[_0x1ab813(0x295)](){const _0x2c4da0=_0x1ab813;return this[_0x2c4da0(0x286)]['getValue']();}get[_0x1ab813(0x34a)](){const _0x345696=_0x1ab813;return this['_roomMembers$'][_0x345696(0x1b5)]();}constructor(_0x435912,_0x1c1ee3,_0x527669,_0x42a874,_0x16d23c,_0x5dfe5c,_0x319bc6,_0x687074,_0x201cb4){const _0x4f65ed=_0x1ab813;super(),this[_0x4f65ed(0x38e)]=_0x435912,this[_0x4f65ed(0xf3)]=_0x1c1ee3,this[_0x4f65ed(0x100)]=_0x527669,this[_0x4f65ed(0x1d5)]=_0x42a874,this[_0x4f65ed(0x15a)]=_0x16d23c,this[_0x4f65ed(0x296)]=_0x5dfe5c,this[_0x4f65ed(0x139)]=_0x319bc6,this['_univerInstanceService']=_0x687074,this['_commandService']=_0x201cb4,b(this,_0x4f65ed(0x374),!0x1),b(this,'_init',!0x1),b(this,_0x4f65ed(0x286),new r[(_0x4f65ed(0x371))](new Map())),b(this,'cursorInfo$',this[_0x4f65ed(0x286)][_0x4f65ed(0x3d0)]()),b(this,'_roomMembers$',new r[(_0x4f65ed(0x371))]([])),b(this,_0x4f65ed(0x236),this[_0x4f65ed(0x3fd)]['pipe']((0x0,r[_0x4f65ed(0x14c)])(0x12c))),b(this,'_updateLocalCursor',(0x0,t[_0x4f65ed(0x2f3)])(_0x51c8cd=>{const _0x562013=_0x4f65ed;let _0x249d87={'eventID':l[_0x562013(0x2bd)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x562013(0xf3)]['getMemberID'](),'selection':ue(_0x51c8cd)}};this[_0x562013(0xf3)][_0x562013(0x255)](_0x249d87,this[_0x562013(0x38e)]);},0x64));}['dispose'](){const _0x24ccda=_0x1ab813;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x24ccda(0x286)][_0x24ccda(0x1ae)](),this[_0x24ccda(0x3fd)][_0x24ccda(0x184)]([]),this[_0x24ccda(0x3fd)][_0x24ccda(0x1ae)]();}[_0x1ab813(0x1ff)](){const _0x70dfed=_0x1ab813;this['_init']||(this[_0x70dfed(0x2d9)]=!0x0,this[_0x70dfed(0xf3)][_0x70dfed(0x322)][_0x70dfed(0x32b)]((0x0,r[_0x70dfed(0x138)])(this[_0x70dfed(0x179)]))[_0x70dfed(0x37e)](_0xb728be=>{const _0x483409=_0x70dfed;_0xb728be===e[_0x483409(0x2a7)][_0x483409(0x2bf)]?this[_0x483409(0x40b)]():this['_toggleOffline']();}),this['_session']['event$']['pipe']((0x0,r[_0x70dfed(0x138)])(this[_0x70dfed(0x179)]))[_0x70dfed(0x37e)](_0x4acc8a=>{const _0x469083=_0x70dfed;let _0x321b74=_0x4acc8a[_0x469083(0x3bd)];_0x321b74===l[_0x469083(0x2bd)]['UPDATE_CURSOR']&&this[_0x469083(0x259)](_0x4acc8a),_0x321b74===l[_0x469083(0x2bd)][_0x469083(0x233)]&&this[_0x469083(0x152)](_0x4acc8a);}),this[_0x70dfed(0x150)](this[_0x70dfed(0x3e2)][_0x70dfed(0x346)](_0x393eef=>{const _0x2a1746=_0x70dfed;let _0x4aaa59=_0x393eef[_0x2a1746(0x3c9)];_0x4aaa59!=null&&this[_0x2a1746(0x374)]&&_0x393eef['id']===d[_0x2a1746(0x22d)]['id']&&_0x4aaa59[_0x2a1746(0x355)]===this[_0x2a1746(0x38e)]&&_0x4aaa59[_0x2a1746(0x1c5)]===!0x1&&_0x4aaa59['ranges'][_0x2a1746(0x3e4)]>0x0&&this[_0x2a1746(0x246)](_0x4aaa59[_0x2a1746(0x3d4)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x70dfed(0x32b)]((0x0,r['takeUntil'])(this[_0x70dfed(0x179)]))[_0x70dfed(0x37e)](_0x30f106=>{const _0x3fccab=_0x70dfed;if((_0x30f106==null?void 0x0:_0x30f106[_0x3fccab(0x38e)])!==this['unitID'])return;let _0x1bcb59={'eventID':l['CollaborationEvent'][_0x3fccab(0x17a)],'data':_0x30f106};this[_0x3fccab(0x259)](_0x1bcb59);}),this[_0x70dfed(0x150)](this['_commandService'][_0x70dfed(0x346)](_0x249365=>{const _0x18c3f7=_0x70dfed;if(_0x249365[_0x18c3f7(0x3c9)]==null)return;let _0x5eeaa0=_0x249365[_0x18c3f7(0x3c9)];if(_0x249365['id']!==d['RichTextEditingMutation']['id']||_0x5eeaa0[_0x18c3f7(0x355)]!==this['unitID'])return;let _0x4b2f7a={'id':'doc.mutation.rich-text-editing','params':_0x5eeaa0},_0x131e47=this[_0x18c3f7(0x295)];for(let [_0x3ce905,_0x5d22fc]of _0x131e47){let _0x53e5cf={'id':_0x18c3f7(0x2e9),'params':{'unitId':this[_0x18c3f7(0x38e)],'actions':null,'textRanges':_0x5d22fc[_0x18c3f7(0x3d4)]}},_0x53b2b4=this['_transformService'][_0x18c3f7(0x110)](_0x4b2f7a,_0x53e5cf,!0x1);if((0x0,l[_0x18c3f7(0x19f)])(_0x53b2b4))throw _0x53b2b4[_0x18c3f7(0x159)];_0x131e47['set'](_0x3ce905,{..._0x5d22fc,'ranges':_0x53b2b4[_0x18c3f7(0x2fe)][_0x18c3f7(0x3c9)][_0x18c3f7(0x2de)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x131e47);});})));}['_onCursorUpdate'](_0x59e4f2){const _0x3fbe64=_0x1ab813;var _0x582f62;let {memberID:_0xb089b5,selection:_0x147695}=_0x59e4f2[_0x3fbe64(0x21a)],_0x3f8e0d=de(_0x147695),_0x41ab3c=((_0x582f62=this[_0x3fbe64(0x15a)]['getMember'](this[_0x3fbe64(0x38e)],_0xb089b5))==null?void 0x0:_0x582f62['name'])??_0x3fbe64(0x38b),_0x72ce96={'color':this[_0x3fbe64(0x1d5)][_0x3fbe64(0x2e4)](_0xb089b5),'name':_0x41ab3c,'ranges':_0x3f8e0d},_0x9146f5=this[_0x3fbe64(0x295)];_0x9146f5[_0x3fbe64(0x204)](_0xb089b5,_0x72ce96),this['_cursorInfo$']['next'](_0x9146f5);}[_0x1ab813(0x152)](_0x2a86cb){const _0x2e1a76=_0x1ab813;let {memberID:_0x2d3238}=_0x2a86cb[_0x2e1a76(0x21a)],_0x5cd5bb=this[_0x2e1a76(0x295)];_0x5cd5bb['delete'](_0x2d3238),this[_0x2e1a76(0x286)][_0x2e1a76(0x184)](_0x5cd5bb);}[_0x1ab813(0x40b)](){const _0x177397=_0x1ab813;var _0x575a26;if(this[_0x177397(0x374)]=!0x0,((_0x575a26=this[_0x177397(0x37b)][_0x177397(0x2d6)]())==null?void 0x0:_0x575a26['getUnitId']())!==this['unitID'])return;let _0x539407=this[_0x177397(0x100)][_0x177397(0x11b)](d[_0x177397(0x269)])['getDocRanges']();Array[_0x177397(0x3af)](_0x539407)&&_0x539407[_0x177397(0x3e4)]>0x0&&this[_0x177397(0x246)](_0x539407);}[_0x1ab813(0x1eb)](){this['_online']=!0x1;}};O=S([x(0x2,(0x0,t[_0x1ab813(0x3b3)])(t[_0x1ab813(0x16e)])),x(0x3,(0x0,t[_0x1ab813(0x3b3)])(E)),x(0x4,(0x0,t[_0x1ab813(0x3b3)])(e['MemberService'])),x(0x5,(0x0,t[_0x1ab813(0x3b3)])(D)),x(0x6,l[_0x1ab813(0x32c)]),x(0x7,t[_0x1ab813(0x310)]),x(0x8,t['ICommandService'])],O);const fe=()=>{let _0x44000c=[],_0x30948d=!0x1;return _0x233827=>{const _0x45ccce=_0x8a3e;_0x44000c[_0x45ccce(0x2fc)](_0x233827),_0x30948d||(_0x30948d=!0x0,setTimeout(()=>{const _0x1f2aea=_0x45ccce;_0x44000c[_0x1f2aea(0x131)](_0x4df57d=>_0x4df57d()),_0x44000c=[],_0x30948d=!0x1;}));};};let k=class extends t[_0x1ab813(0x303)]{get['cursorInfo'](){const _0x318e1b=_0x1ab813;return this[_0x318e1b(0x286)]['getValue']();}get[_0x1ab813(0x34a)](){const _0x2a2bc1=_0x1ab813;return this[_0x2a2bc1(0x3fd)][_0x2a2bc1(0x1b5)]();}constructor(_0x30f7d6,_0x21a6e1,_0x173672,_0x146d35,_0x5bb914,_0x3bc5be,_0x449658,_0x4f8370){const _0x106322=_0x1ab813;super(),this[_0x106322(0x38e)]=_0x30f7d6,this[_0x106322(0xf3)]=_0x21a6e1,this[_0x106322(0x100)]=_0x173672,this[_0x106322(0x1d5)]=_0x146d35,this[_0x106322(0x15a)]=_0x5bb914,this['_univerInstanceService']=_0x3bc5be,this[_0x106322(0x3e2)]=_0x449658,this[_0x106322(0x2d3)]=_0x4f8370,b(this,_0x106322(0x374),!0x1),b(this,'_init',!0x1),b(this,_0x106322(0x286),new r[(_0x106322(0x371))](new Map())),b(this,_0x106322(0x315),this[_0x106322(0x286)][_0x106322(0x3d0)]()),b(this,_0x106322(0x3fd),new r[(_0x106322(0x371))]([])),b(this,'roomMembers$',this[_0x106322(0x3fd)][_0x106322(0x32b)]((0x0,r[_0x106322(0x14c)])(0x12c))),b(this,_0x106322(0x246),(0x0,t[_0x106322(0x2f3)])((_0x334f47,_0x136294)=>{const _0x8780e1=_0x106322;let _0x5dbd55={'eventID':l[_0x8780e1(0x2bd)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x8780e1(0xf3)][_0x8780e1(0x394)](),'selection':(0x0,h[_0x8780e1(0x298)])(_0x334f47,_0x136294['range'])}};this[_0x8780e1(0xf3)][_0x8780e1(0x255)](_0x5dbd55,this[_0x8780e1(0x38e)]);},0x64));}[_0x1ab813(0x38f)](){const _0x555356=_0x1ab813;super[_0x555356(0x38f)](),this[_0x555356(0x286)][_0x555356(0x184)](new Map()),this[_0x555356(0x286)][_0x555356(0x1ae)](),this['_roomMembers$'][_0x555356(0x184)]([]),this[_0x555356(0x3fd)][_0x555356(0x1ae)]();}[_0x1ab813(0x1ff)](){const _0x44a562=_0x1ab813;this[_0x44a562(0x2d9)]||(this[_0x44a562(0x2d9)]=!0x0,this[_0x44a562(0xf3)][_0x44a562(0x322)][_0x44a562(0x32b)]((0x0,r['takeUntil'])(this[_0x44a562(0x179)]))[_0x44a562(0x37e)](_0x2ee4c2=>{const _0x52b9d6=_0x44a562;_0x2ee4c2===e[_0x52b9d6(0x2a7)][_0x52b9d6(0x2bf)]?this[_0x52b9d6(0x40b)]():this[_0x52b9d6(0x1eb)]();}),this[_0x44a562(0xf3)][_0x44a562(0x20d)][_0x44a562(0x32b)]((0x0,r[_0x44a562(0x138)])(this[_0x44a562(0x179)]))['subscribe'](_0x7bbc73=>{const _0x1e89d1=_0x44a562;let _0x1ada27=_0x7bbc73[_0x1e89d1(0x3bd)];_0x1ada27===l[_0x1e89d1(0x2bd)]['UPDATE_CURSOR']&&this[_0x1e89d1(0x259)](_0x7bbc73),_0x1ada27===l[_0x1e89d1(0x2bd)][_0x1e89d1(0x233)]&&this[_0x1e89d1(0x152)](_0x7bbc73);}),this[_0x44a562(0x329)](),this['disposeWithMe'](this[_0x44a562(0x3e2)][_0x44a562(0x346)](_0x5b1db2=>{const _0x1546d0=_0x44a562;if(this[_0x1546d0(0x374)]&&_0x5b1db2['id']===g[_0x1546d0(0x102)]['id']&&_0x5b1db2[_0x1546d0(0x3c9)][_0x1546d0(0x355)]===this[_0x1546d0(0x38e)]){let _0x1eb5d6=_0x5b1db2[_0x1546d0(0x3c9)];this[_0x1546d0(0x246)](_0x1eb5d6[_0x1546d0(0x25f)],_0x1eb5d6[_0x1546d0(0xf8)][0x0]);}})));}[_0x1ab813(0x259)](_0x470ee5){const _0x470544=_0x1ab813;var _0xbae592;let {memberID:_0x4f6b7f,selection:_0x5b4677}=_0x470ee5['data'],{sheetName:_0x223435,range:_0x52a78c}=(0x0,h[_0x470544(0x3a7)])(_0x5b4677),_0xfcf2d9={'name':((_0xbae592=this[_0x470544(0x15a)][_0x470544(0x24e)](this['unitID'],_0x4f6b7f))==null?void 0x0:_0xbae592['name'])??'Unknown\x20user','range':this[_0x470544(0x3c0)](_0x223435,_0x52a78c),'sheetID':_0x223435,'color':this[_0x470544(0x1d5)][_0x470544(0x2e4)](_0x4f6b7f),'selection':_0x5b4677},_0x13255c=this[_0x470544(0x295)];_0x13255c[_0x470544(0x204)](_0x4f6b7f,_0xfcf2d9),this[_0x470544(0x286)][_0x470544(0x184)](_0x13255c);}['_onCursorDelete'](_0x4aa4e0){const _0x5982e2=_0x1ab813;let {memberID:_0x2d52e4}=_0x4aa4e0['data'],_0x38bd1a=this[_0x5982e2(0x295)];_0x38bd1a['delete'](_0x2d52e4),this[_0x5982e2(0x286)][_0x5982e2(0x184)](_0x38bd1a);}['_getMergeRange'](_0x58340e,_0x439bc2){const _0x3ccee5=_0x1ab813;var _0x7ac7ff;let _0x1e9132=(_0x7ac7ff=this[_0x3ccee5(0x37b)][_0x3ccee5(0x127)](this['unitID'],t[_0x3ccee5(0x1a1)][_0x3ccee5(0x33c)]))==null||(_0x7ac7ff=_0x7ac7ff[_0x3ccee5(0x33e)](_0x58340e))==null?void 0x0:_0x7ac7ff['getMergeData']();return(_0x1e9132==null?void 0x0:_0x1e9132[_0x3ccee5(0x348)](_0x305837=>t[_0x3ccee5(0x10b)][_0x3ccee5(0x1bb)](_0x305837,_0x439bc2)))||_0x439bc2;}[_0x1ab813(0x329)](){const _0x3938b1=_0x1ab813;let _0x16f63d=new t[(_0x3938b1(0x106))](),_0x17cae7=fe(),_0x3a6f70=()=>{const _0x3a4e70=_0x3938b1;_0x16f63d[_0x3a4e70(0x38f)]();let _0x360a16=(_0x3da870,_0x1ea03a,_0x4b6009,_0x4d24f3)=>{const _0x30caf7=_0x3a4e70;let _0x45ebca=[];switch(_0x3da870['id']){case g[_0x30caf7(0x279)][_0x30caf7(0x2a9)]:_0x45ebca=(0x0,g[_0x30caf7(0x2af)])(_0x3da870,_0x4d24f3);break;case g[_0x30caf7(0x279)][_0x30caf7(0x319)]:_0x45ebca=(0x0,g[_0x30caf7(0x1a2)])(_0x3da870,_0x4d24f3);break;case g[_0x30caf7(0x279)][_0x30caf7(0x155)]:_0x45ebca=(0x0,g[_0x30caf7(0x30a)])(_0x3da870,_0x4d24f3);break;case g[_0x30caf7(0x279)][_0x30caf7(0x349)]:_0x45ebca=(0x0,g[_0x30caf7(0x288)])(_0x3da870,_0x4d24f3);break;case g[_0x30caf7(0x279)][_0x30caf7(0x2d8)]:_0x45ebca=(0x0,g['handleInsertRangeMoveRight'])(_0x3da870,_0x4d24f3);break;case g[_0x30caf7(0x279)]['InsertRowCommandId']:_0x45ebca=(0x0,g[_0x30caf7(0x2f5)])(_0x3da870,_0x4d24f3);break;case g[_0x30caf7(0x279)][_0x30caf7(0x26f)]:_0x45ebca=(0x0,g[_0x30caf7(0x1cb)])(_0x3da870,_0x4d24f3);break;case g[_0x30caf7(0x279)][_0x30caf7(0x126)]:_0x45ebca=(0x0,g[_0x30caf7(0x229)])(_0x3da870,_0x4d24f3);break;case g[_0x30caf7(0x279)][_0x30caf7(0x128)]:_0x45ebca=(0x0,g['handleIRemoveRow'])(_0x3da870,_0x4d24f3);break;}let _0x3bc864=(0x0,g[_0x30caf7(0x290)])(_0x45ebca,_0x4d24f3),_0x19d086=this[_0x30caf7(0x295)][_0x30caf7(0x11b)](_0x1ea03a);if(_0x19d086&&_0x3bc864){let _0x571202={..._0x19d086,'range':_0x3bc864};this['cursorInfo'][_0x30caf7(0x204)](_0x1ea03a,_0x571202),_0x17cae7(()=>{const _0x1bc75d=_0x30caf7;let _0x3bf5fc=this['_refRangeService'][_0x1bc75d(0x133)](_0x3bc864,_0x4a8de6=>(_0x3bf5fc['dispose'](),_0x360a16(_0x4a8de6,_0x1ea03a,_0x4b6009,_0x3bc864)));_0x16f63d[_0x1bc75d(0x28d)](_0x3bf5fc);});}return{'redos':[],'undos':[]};};this[_0x3a4e70(0x295)][_0x3a4e70(0x131)]((_0x20907c,_0x44d64c)=>{const _0x291405=_0x3a4e70;let {range:_0xfa55dd,sheetID:_0x2e7c28}=_0x20907c,_0x35bc57=this[_0x291405(0x2d3)][_0x291405(0x133)](_0xfa55dd,_0x2d752f=>(_0x35bc57[_0x291405(0x38f)](),_0x360a16(_0x2d752f,_0x44d64c,_0x2e7c28,_0xfa55dd)));_0x16f63d[_0x291405(0x28d)](_0x35bc57);});};this[_0x3938b1(0x150)]((0x0,t[_0x3938b1(0x2fb)])(this[_0x3938b1(0x286)][_0x3938b1(0x37e)](()=>{_0x3a6f70();})));}[_0x1ab813(0x40b)](){const _0x571a75=_0x1ab813;var _0x39f0c0,_0x154aea;if(this['_online']=!0x0,((_0x39f0c0=this[_0x571a75(0x37b)][_0x571a75(0x2d6)]())==null?void 0x0:_0x39f0c0[_0x571a75(0x15b)]())!==this[_0x571a75(0x38e)])return;let _0x103a36=(_0x154aea=this['_injector'][_0x571a75(0x11b)](g[_0x571a75(0x227)])['getCurrentSelections']())==null?void 0x0:_0x154aea[0x0],_0x5f27c5=this[_0x571a75(0x37b)][_0x571a75(0x304)](t[_0x571a75(0x1a1)][_0x571a75(0x33c)])[_0x571a75(0x275)]();_0x103a36&&_0x5f27c5&&this['_updateLocalCursor'](_0x5f27c5[_0x571a75(0x367)](),_0x103a36);}['_toggleOffline'](){const _0x2d739f=_0x1ab813;this[_0x2d739f(0x374)]=!0x1;}};k=S([x(0x2,(0x0,t[_0x1ab813(0x3b3)])(t['Injector'])),x(0x3,(0x0,t[_0x1ab813(0x3b3)])(E)),x(0x4,(0x0,t[_0x1ab813(0x3b3)])(e[_0x1ab813(0x1c4)])),x(0x5,t[_0x1ab813(0x310)]),x(0x6,t[_0x1ab813(0x378)]),x(0x7,(0x0,t[_0x1ab813(0x3b3)])(g['RefRangeService']))],k);let A=class extends t[_0x1ab813(0x303)]{constructor(_0xff72ea,_0x24afbd,_0x830ada){const _0xf3cbb5=_0x1ab813;super(),this['_univerInstanceService']=_0xff72ea,this['_injector']=_0x24afbd,this[_0xf3cbb5(0x2c4)]=_0x830ada,b(this,'_entities',new Map()),b(this,_0xf3cbb5(0x2b0),new r[(_0xf3cbb5(0x2ab))]()),this[_0xf3cbb5(0x2d9)]();}[_0x1ab813(0x38f)](){const _0xe3ddf4=_0x1ab813;super[_0xe3ddf4(0x38f)](),this[_0xe3ddf4(0x2b0)][_0xe3ddf4(0x1ae)](),this[_0xe3ddf4(0x3fe)]['forEach'](_0x5be307=>_0x5be307[_0xe3ddf4(0x38f)]());}[_0x1ab813(0x31c)](_0x58642d){const _0x441990=_0x1ab813;let _0x552359=this['_entities'][_0x441990(0x11b)](_0x58642d);return _0x552359?_0x552359[_0x441990(0x315)]:this['_entityInit$']['pipe']((0x0,r[_0x441990(0x208)])(_0x19621b=>_0x19621b[_0x441990(0x38e)]===_0x58642d),(0x0,r[_0x441990(0x2a2)])(_0x1fffd0=>_0x1fffd0[_0x441990(0x315)]));}[_0x1ab813(0x2d9)](){const _0x3b0d80=_0x1ab813;this[_0x3b0d80(0x37b)][_0x3b0d80(0x1cc)](t['UniverInstanceType'][_0x3b0d80(0x33c)])[_0x3b0d80(0x32b)]((0x0,r[_0x3b0d80(0x138)])(this[_0x3b0d80(0x179)]))[_0x3b0d80(0x37e)](async _0x521128=>{const _0x31e5e5=_0x3b0d80;let _0x441b8e=_0x521128['unit'][_0x31e5e5(0x15b)](),_0x51efe4=await this[_0x31e5e5(0x3e8)](_0x441b8e);this[_0x31e5e5(0x2b0)][_0x31e5e5(0x184)](_0x51efe4),this['_entities'][_0x31e5e5(0x204)](_0x441b8e,_0x51efe4);}),this['_univerInstanceService'][_0x3b0d80(0x1cc)](t['UniverInstanceType']['UNIVER_DOC'])[_0x3b0d80(0x32b)]((0x0,r[_0x3b0d80(0x138)])(this['dispose$']))[_0x3b0d80(0x32b)]((0x0,r[_0x3b0d80(0x208)])(_0x5c2979=>!_0x5c2979[_0x3b0d80(0x1ce)][_0x3b0d80(0x15b)]()[_0x3b0d80(0x38d)]('__')))[_0x3b0d80(0x37e)](async _0x5aba47=>{const _0x16e396=_0x3b0d80;let {unit:_0xcdc4fe}=_0x5aba47,_0x59e39e=_0xcdc4fe[_0x16e396(0x15b)](),_0x5d3f8a=await this[_0x16e396(0x13a)](_0x59e39e);this[_0x16e396(0x2b0)][_0x16e396(0x184)](_0x5d3f8a),this[_0x16e396(0x3fe)][_0x16e396(0x204)](_0x59e39e,_0x5d3f8a);}),(0x0,r[_0x3b0d80(0x250)])(this[_0x3b0d80(0x37b)][_0x3b0d80(0x306)](t[_0x3b0d80(0x1a1)][_0x3b0d80(0x23e)]),this[_0x3b0d80(0x37b)]['getTypeOfUnitDisposed$'](t[_0x3b0d80(0x1a1)][_0x3b0d80(0x33c)]))[_0x3b0d80(0x32b)]((0x0,r[_0x3b0d80(0x138)])(this[_0x3b0d80(0x179)]))[_0x3b0d80(0x37e)](_0x49e0d9=>{const _0x54b2df=_0x3b0d80;let _0x1f21ad=_0x49e0d9[_0x54b2df(0x15b)](),_0x56ffd6=this[_0x54b2df(0x3fe)][_0x54b2df(0x11b)](_0x1f21ad);_0x56ffd6&&(_0x56ffd6[_0x54b2df(0x38f)](),this[_0x54b2df(0x3fe)][_0x54b2df(0x2c2)](_0x1f21ad));});}async[_0x1ab813(0x3e8)](_0x452ee9){const _0x54317c=_0x1ab813;let _0x587a94=await this[_0x54317c(0x2c4)][_0x54317c(0x38a)](_0x452ee9),_0x5e72c5=this[_0x54317c(0x100)]['createInstance'](k,_0x452ee9,_0x587a94);return _0x5e72c5['init'](),_0x5e72c5;}async[_0x1ab813(0x13a)](_0x2c5fcb){const _0xffcd07=_0x1ab813;let _0x2e633b=await this[_0xffcd07(0x2c4)][_0xffcd07(0x38a)](_0x2c5fcb),_0x2d7807=this[_0xffcd07(0x100)][_0xffcd07(0x2ae)](O,_0x2c5fcb,_0x2e633b);return _0x2d7807[_0xffcd07(0x1ff)](),_0x2d7807;}};A=S([x(0x0,t[_0x1ab813(0x310)]),x(0x1,(0x0,t[_0x1ab813(0x3b3)])(t[_0x1ab813(0x16e)])),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(e[_0x1ab813(0x3dd)]))],A);function j(_0x5c3bb2,_0x4e5b85){const _0x133f4f=_0x1ab813;_0x5c3bb2[_0x133f4f(0x271)](),_0x5c3bb2[_0x133f4f(0x3c6)]=_0x133f4f(0x3f5);let _0x269fea=_0x5c3bb2[_0x133f4f(0x1e5)](_0x4e5b85)[_0x133f4f(0x3a0)];return _0x5c3bb2['restore'](),Math['min'](_0x269fea+0x8,0xc8);}function pe(_0x2340c1,_0x3e7a41){const _0x408757=_0x1ab813;let {radius:_0xa0d875,width:_0x2051da,height:_0x34f8c0}=_0x3e7a41;_0xa0d875??=0x0,_0x2051da??=0x1e,_0x34f8c0??=0x1e;let _0xb4c377=0x0,_0x3a76ac=0x0,_0x119549=0x0;_0xb4c377=_0x3a76ac=_0x119549=Math[_0x408757(0x115)](_0xa0d875,_0x2051da/0x2,_0x34f8c0/0x2),_0x2340c1[_0x408757(0x2ac)](),_0x2340c1[_0x408757(0x207)](_0xb4c377,0x0),_0x2340c1[_0x408757(0x3d3)](_0x2051da-_0x3a76ac,0x0),_0x2340c1['arc'](_0x2051da-_0x3a76ac,_0x3a76ac,_0x3a76ac,Math['PI']*0x3/0x2,0x0,!0x1),_0x2340c1[_0x408757(0x3d3)](_0x2051da,_0x34f8c0-_0x119549),_0x2340c1[_0x408757(0x12a)](_0x2051da-_0x119549,_0x34f8c0-_0x119549,_0x119549,0x0,Math['PI']/0x2,!0x1),_0x2340c1[_0x408757(0x3d3)](0x0,_0x34f8c0),_0x2340c1['lineTo'](0x0,_0xb4c377),_0x2340c1[_0x408757(0x12a)](_0xb4c377,_0xb4c377,_0xb4c377,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2340c1[_0x408757(0x108)](),_0x3e7a41['fill']&&(_0x2340c1[_0x408757(0x271)](),_0x2340c1['fillStyle']=_0x3e7a41[_0x408757(0x2e6)],_0x3e7a41[_0x408757(0x1d1)]==='evenodd'?_0x2340c1['fill']('evenodd'):_0x2340c1[_0x408757(0x2e6)](),_0x2340c1['restore']());}var me=class e extends p[_0x1ab813(0x194)]{constructor(_0xb77ac6,_0x57d017){const _0x1773fe=_0x1ab813;super(_0xb77ac6,_0x57d017),b(this,_0x1773fe(0x166),void 0x0),b(this,_0x1773fe(0x167),void 0x0),this['color']=_0x57d017==null?void 0x0:_0x57d017[_0x1773fe(0x166)],this[_0x1773fe(0x167)]=_0x57d017==null?void 0x0:_0x57d017['text'];}static[_0x1ab813(0x11e)](_0x283d4f,_0x317b9c){const _0x5ca841=_0x1ab813;let {text:_0x20f1bf,color:_0xa7a022}=_0x317b9c;_0x283d4f[_0x5ca841(0x271)](),_0x283d4f['font']=_0x5ca841(0x37f);let _0x1baaa8=_0x283d4f[_0x5ca841(0x1e5)](_0x20f1bf)['width'];if(pe(_0x283d4f,{'height':0x14,'radius':0x4,'width':j(_0x283d4f,_0x20f1bf),'fill':_0xa7a022,'evented':!0x1}),_0x283d4f[_0x5ca841(0x287)]=_0x5ca841(0x388),_0x1baaa8>0xc0){let _0xf3448d='',_0x42d4f9=0x0;for(let _0x4f9f64 of _0x20f1bf){let _0x52b963=_0x283d4f['measureText'](_0x4f9f64)[_0x5ca841(0x3a0)];if(_0x42d4f9+_0x52b963<=0xc0-_0x283d4f[_0x5ca841(0x1e5)](_0x5ca841(0x267))[_0x5ca841(0x3a0)])_0xf3448d+=_0x4f9f64,_0x42d4f9+=_0x52b963;else{_0xf3448d+=_0x5ca841(0x267);break;}}_0x283d4f['fillText'](_0xf3448d,0x4,0xf);}else _0x283d4f[_0x5ca841(0x248)](_0x20f1bf,0x4,0xf);_0x283d4f[_0x5ca841(0x282)]();}['_draw'](_0x2fccc2){e['drawWith'](_0x2fccc2,this);}};const M=_0x1ab813(0x338);var N=class{constructor(_0x38aae4,_0x489e58,_0x275be1,_0x4cf7f0){const _0x431acf=_0x1ab813;this[_0x431acf(0x26e)]=_0x38aae4,this[_0x431acf(0x1ec)]=_0x489e58,this['_docSkeleton']=_0x275be1,this[_0x431acf(0x109)]=_0x4cf7f0,b(this,_0x431acf(0x122),[]),b(this,_0x431acf(0x380),null),b(this,_0x431acf(0x182),null),b(this,_0x431acf(0x3f7),null),b(this,'_hideTimer',null),b(this,'_eventUnsubscribe',null),this['_render']();}set[_0x1ab813(0x22f)](_0x4eb50f){const _0x542f61=_0x1ab813;_0x4eb50f?(this[_0x542f61(0x3f7)]&&this[_0x542f61(0x3f7)][_0x542f61(0x385)](),this[_0x542f61(0x182)]&&this[_0x542f61(0x182)][_0x542f61(0x2a1)]()):(this[_0x542f61(0x3f7)]&&this['_anchorDot'][_0x542f61(0x2a1)](),this['_textBubble']&&this['_textBubble']['hide']());}[_0x1ab813(0x38f)](){const _0xdf248b=_0x1ab813;for(let _0x41fe28 of this['_shapes'])_0x41fe28['dispose']();this[_0xdf248b(0x182)]&&this[_0xdf248b(0x182)][_0xdf248b(0x38f)](),this[_0xdf248b(0x3f7)]&&this[_0xdf248b(0x3f7)][_0xdf248b(0x38f)](),this[_0xdf248b(0x380)]&&this['_anchor'][_0xdf248b(0x38f)](),this[_0xdf248b(0x341)]&&this[_0xdf248b(0x341)]();}[_0x1ab813(0x25c)](){const _0x4e2f20=_0x1ab813;let {_docSkeleton:_0x8ed62d,_document:_0x356bf4}=this,{color:_0xbe18a4,name:_0x5362d5,ranges:_0x568906}=this[_0x4e2f20(0x26e)],_0x33b22e=_0x356bf4[_0x4e2f20(0x389)](),{docsLeft:_0x4c9f2c,docsTop:_0x7ef27d}=_0x33b22e,_0x9daa8e=new f[(_0x4e2f20(0x1c1))](_0x33b22e,_0x8ed62d);for(let {startOffset:_0x57b0b7,endOffset:_0x3cc30c,rangeType:_0x5880d3,segmentId:_0xa94b3a,segmentPage:_0x23fe89,collapsed:_0x5d3c48,isActive:_0x561580}of _0x568906){let _0x5ecb8c=_0x8ed62d['findNodePositionByCharIndex'](_0x57b0b7,!0x0,_0xa94b3a,_0x23fe89),_0x361175=_0x8ed62d[_0x4e2f20(0x30e)](_0x3cc30c,!0x0,_0xa94b3a,_0x23fe89);_0x361175??=_0x8ed62d[_0x4e2f20(0x30e)](_0x3cc30c-0x1,!0x1,_0xa94b3a,_0x23fe89);let _0x1bf2a0=he(_0x5ecb8c,_0x361175);if(_0x561580&&_0x1bf2a0[_0x4e2f20(0x3d5)]){let {contentBoxPointGroup:_0x16a52a}=_0x9daa8e[_0x4e2f20(0x1e8)](_0x361175,_0x361175);if(_0x16a52a[_0x4e2f20(0x3e4)]===0x0)continue;this['_drawAnchor'](_0xbe18a4,_0x16a52a,_0x4c9f2c,_0x7ef27d,_0x5362d5),this[_0x4e2f20(0x341)]=this[_0x4e2f20(0x144)]();}if(_0x5ecb8c&&_0x361175){if(_0x5880d3===t['DOC_RANGE_TYPE'][_0x4e2f20(0x3d6)]){let {pointGroup:_0x25ec4d}=new f[(_0x4e2f20(0x203))](_0x33b22e,_0x8ed62d)[_0x4e2f20(0x1e8)](_0x5ecb8c,_0x361175)??{};if(_0x25ec4d==null||_0x25ec4d[_0x4e2f20(0x3e4)]===0x0)continue;this[_0x4e2f20(0x10c)](_0xbe18a4,_0x25ec4d,_0x4c9f2c,_0x7ef27d);}else{if(!_0x5d3c48&&_0x1bf2a0[_0x4e2f20(0x300)]){let {borderBoxPointGroup:_0x144af8}=_0x9daa8e[_0x4e2f20(0x1e8)](_0x5ecb8c,_0x361175);if(_0x144af8[_0x4e2f20(0x3e4)]===0x0)continue;this[_0x4e2f20(0x387)](_0xbe18a4,_0x144af8,_0x4c9f2c,_0x7ef27d);}}}}}['_drawAnchor'](_0x51ba0d,_0x53da99,_0x4d374f,_0x34fcb7,_0x3ba73a){const _0x4f62ff=_0x1ab813;let {left:_0x2b407e,top:_0x1a9037,height:_0xfd78e2}=this[_0x4f62ff(0x2ed)](_0x53da99),_0x5b05e2=1.5/this['_getScale'](),_0x493253=new p[(_0x4f62ff(0x39d))](M+(0x0,t[_0x4f62ff(0x1b3)])(0x6),{'left':_0x2b407e+_0x4d374f-_0x5b05e2,'top':_0x1a9037+_0x34fcb7,'height':_0xfd78e2,'width':1.5,'fill':_0x51ba0d||(0x0,p[_0x4f62ff(0x113)])(t['COLORS'][_0x4f62ff(0x280)],0x0),'strokeWidth':_0x5b05e2,'stroke':_0x4f62ff(0x35e),'evented':!0x0});this['_anchor']=_0x493253,this[_0x4f62ff(0x1ec)][_0x4f62ff(0x143)](_0x493253,f['TEXT_RANGE_LAYER_INDEX']);let _0x371a09=new p[(_0x4f62ff(0x39d))](M+(0x0,t[_0x4f62ff(0x1b3)])(0x6),{'left':_0x2b407e+_0x4d374f-_0x5b05e2,'top':_0x1a9037+_0x34fcb7-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x51ba0d||(0x0,p[_0x4f62ff(0x113)])(t[_0x4f62ff(0x130)][_0x4f62ff(0x280)],0x0),'strokeWidth':0x0,'stroke':_0x51ba0d||(0x0,p[_0x4f62ff(0x113)])(t[_0x4f62ff(0x130)][_0x4f62ff(0x280)],0x0),'evented':!0x1});this[_0x4f62ff(0x3f7)]=_0x371a09,this[_0x4f62ff(0x1ec)][_0x4f62ff(0x143)](_0x371a09,f[_0x4f62ff(0x22b)]);let _0x1dd789=new me(M+(0x0,t[_0x4f62ff(0x1b3)])(0x6),{'left':_0x2b407e+_0x4d374f-_0x5b05e2,'top':_0x1a9037+_0x34fcb7-0x14,'text':_0x3ba73a,'color':_0x51ba0d});this['_textBubble']=_0x1dd789,this[_0x4f62ff(0x1ec)]['addObject'](_0x1dd789,f[_0x4f62ff(0x22b)]),this[_0x4f62ff(0x22f)]=!0x1;}[_0x1ab813(0x144)](){const _0x2f60d4=_0x1ab813;let _0x5bcf28=this[_0x2f60d4(0x380)][_0x2f60d4(0x1e6)]['subscribeEvent'](()=>{const _0xb98f0f=_0x2f60d4;this[_0xb98f0f(0x22f)]=!0x0;}),_0x5eb963=this[_0x2f60d4(0x380)][_0x2f60d4(0x340)]['subscribeEvent'](()=>{const _0x41030c=_0x2f60d4;this['_hideTimer']&&clearTimeout(this[_0x41030c(0x158)]),this[_0x41030c(0x158)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x537407=_0x2f60d4;_0x5bcf28[_0x537407(0x18a)](),_0x5eb963[_0x537407(0x18a)]();};}['_drawTextRange'](_0x5572f8,_0x15c0a1,_0x2371d5,_0x41ec9c){const _0x4c6c92=_0x1ab813;let _0x1be717=0.2,_0x213db7=new t[(_0x4c6c92(0x146))](_0x5572f8)['setAlpha'](_0x1be717)[_0x4c6c92(0x3b5)](),_0x56b698=new p[(_0x4c6c92(0x1ca))](_0x4c6c92(0x2d7)+(0x0,t[_0x4c6c92(0x1b3)])(0x6),{'pointsGroup':_0x15c0a1,'fill':_0x213db7||(0x0,p[_0x4c6c92(0x113)])(t[_0x4c6c92(0x130)]['black'],_0x1be717),'left':_0x2371d5,'top':_0x41ec9c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4c6c92(0x122)][_0x4c6c92(0x2fc)](_0x56b698),this[_0x4c6c92(0x1ec)][_0x4c6c92(0x143)](_0x56b698,f[_0x4c6c92(0x22b)]);}[_0x1ab813(0x10c)](_0x3c37e3,_0x40c6a2,_0x4d79ba,_0x36a39a){const _0x2ea06f=_0x1ab813;let _0x551afe=0.2,_0x184f8a=new t[(_0x2ea06f(0x146))](_0x3c37e3)[_0x2ea06f(0x121)](_0x551afe)[_0x2ea06f(0x3b5)](),_0x363b89=new p[(_0x2ea06f(0x1ca))](_0x2ea06f(0x2fa)+(0x0,t[_0x2ea06f(0x1b3)])(0x6),{'pointsGroup':_0x40c6a2,'fill':_0x184f8a||(0x0,p['getColor'])(t[_0x2ea06f(0x130)][_0x2ea06f(0x280)],_0x551afe),'left':_0x4d79ba,'top':_0x36a39a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x363b89),this[_0x2ea06f(0x1ec)]['addObject'](_0x363b89,f['TEXT_RANGE_LAYER_INDEX']);}[_0x1ab813(0x2ed)](_0x2a2e75){let _0xa9f324=_0x2a2e75[0x0],_0x4776a0=_0xa9f324[0x0],_0x48948d=_0xa9f324[0x2],{x:_0x577215,y:_0x4beef1}=_0x4776a0,{x:_0x448950,y:_0x250c82}=_0x48948d;return{'left':_0x577215,'top':_0x4beef1,'width':_0x448950-_0x577215,'height':_0x250c82-_0x4beef1};}[_0x1ab813(0x268)](){const _0x54df88=_0x1ab813;let {scaleX:_0x25c116,scaleY:_0x341575}=this['_scene'][_0x54df88(0x118)]();return Math[_0x54df88(0x11f)](_0x25c116,_0x341575);}};function he(_0x214fb7,_0x304444){const _0x266adb=_0x1ab813;if(!_0x304444)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x214fb7||_0x214fb7[_0x266adb(0x1d8)]!==_0x304444[_0x266adb(0x1d8)]||(_0x214fb7[_0x266adb(0x1d8)]===p[_0x266adb(0x278)][_0x266adb(0x18b)]||_0x214fb7[_0x266adb(0x1d8)]===p[_0x266adb(0x278)][_0x266adb(0x2ea)])&&_0x214fb7[_0x266adb(0x2b6)]!==_0x304444[_0x266adb(0x2b6)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x2c1af1=(0x0,p[_0x266adb(0x1e2)])(_0x214fb7),_0x5151b9=(0x0,p[_0x266adb(0x1e2)])(_0x304444);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x2c1af1==null||_0x5151b9==null?_0x2c1af1==null&&_0x5151b9==null:_0x2c1af1[_0x266adb(0x1d2)]===_0x5151b9['pageIndex']&&_0x2c1af1['columnGroupId']===_0x5151b9[_0x266adb(0x301)]&&_0x2c1af1[_0x266adb(0x263)]===_0x5151b9[_0x266adb(0x263)]};}let P=class extends t[_0x1ab813(0x303)]{constructor(_0x49d205,_0x22f37a,_0x314b98,_0x275ead,_0x5ef2f7){const _0xc744de=_0x1ab813;super(),this[_0xc744de(0x2b3)]=_0x49d205,this[_0xc744de(0x188)]=_0x22f37a,this[_0xc744de(0x291)]=_0x314b98,this[_0xc744de(0x3e2)]=_0x275ead,this[_0xc744de(0x231)]=_0x5ef2f7,b(this,_0xc744de(0xf9),[]),b(this,_0xc744de(0x2f1),[]),this['_init']();}[_0x1ab813(0x2d9)](){const _0x5352a3=_0x1ab813;let _0x1e006d=this[_0x5352a3(0x2b3)][_0x5352a3(0x355)],_0x4913e=this[_0x5352a3(0x188)];this[_0x5352a3(0x150)]((0x0,r['combineLatest'])([this[_0x5352a3(0x291)][_0x5352a3(0x31c)](_0x1e006d),this[_0x5352a3(0x231)][_0x5352a3(0x311)]])[_0x5352a3(0x32b)]((0x0,i[_0x5352a3(0x15f)])(([_0x185d2a,_0x36208b])=>({'skeleton':_0x4913e['getSkeleton'](),'cursors':[..._0x185d2a[_0x5352a3(0x1b7)]()]['flatMap'](_0x4adaec=>({..._0x4adaec,'color':this['_themeService']['getColorFromTheme'](_0x4adaec[_0x5352a3(0x166)])}))})))['subscribe'](_0x1fa400=>{const _0x165a97=_0x5352a3;if(this['_removeCollabCursors'](),_0x1fa400){let {skeleton:_0x123b46,cursors:_0x320247}=_0x1fa400;this[_0x165a97(0x32a)](_0x123b46,_0x320247);}})),this[_0x5352a3(0x339)](),this[_0x5352a3(0x18e)]();}[_0x1ab813(0x32a)](_0x59ade8,_0x4c002c){const _0x5797e1=_0x1ab813;let {scene:_0x3d6aef,mainComponent:_0x3844b}=this[_0x5797e1(0x2b3)],_0x1204fe=_0x4c002c[_0x5797e1(0x15f)](_0x1e0ced=>new N(_0x1e0ced,_0x3d6aef,_0x59ade8,_0x3844b));this['_cursorShapes']=_0x1204fe,this[_0x5797e1(0x2f1)]=_0x4c002c;}[_0x1ab813(0x196)](){const _0x3ef7b0=_0x1ab813;this[_0x3ef7b0(0x3b7)]();let {scene:_0x5867a0,mainComponent:_0x308e59}=this[_0x3ef7b0(0x2b3)],_0xe46b5d=this[_0x3ef7b0(0x188)][_0x3ef7b0(0x30b)](),_0x293744=this[_0x3ef7b0(0x2f1)][_0x3ef7b0(0x15f)](_0x3fb44d=>new N(_0x3fb44d,_0x5867a0,_0xe46b5d,_0x308e59));this[_0x3ef7b0(0xf9)]=_0x293744;}['_removeCollabCursors'](){const _0x2f77f3=_0x1ab813;this[_0x2f77f3(0xf9)]['forEach'](_0x185c64=>_0x185c64['dispose']()),this[_0x2f77f3(0xf9)]=[];}[_0x1ab813(0x18e)](){const _0x433ab5=_0x1ab813;let _0x3212f0=[f[_0x433ab5(0x35f)]['id']];this[_0x433ab5(0x150)](this[_0x433ab5(0x3e2)][_0x433ab5(0x346)](_0xd269ed=>{const _0x144aaf=_0x433ab5;_0x3212f0[_0x144aaf(0x116)](_0xd269ed['id'])&&_0xd269ed[_0x144aaf(0x3c9)][_0x144aaf(0x355)]===this[_0x144aaf(0x2b3)]['unitId']&&this[_0x144aaf(0x196)]();}));}[_0x1ab813(0x339)](){const _0x338b4c=_0x1ab813;this['disposeWithMe']((0x0,t[_0x338b4c(0x3d1)])(this[_0x338b4c(0x2b3)][_0x338b4c(0x173)][_0x338b4c(0x3ba)])[_0x338b4c(0x32b)]((0x0,i['filter'])(_0x5a62ae=>_0x5a62ae['type']===p[_0x338b4c(0x396)][_0x338b4c(0x2f7)]),(0x0,i[_0x338b4c(0x237)])(0x10))[_0x338b4c(0x37e)](()=>{this['_refreshCollabCursors']();}));}};P=S([x(0x1,(0x0,t[_0x1ab813(0x3b3)])(d[_0x1ab813(0x2f6)])),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(A)),x(0x3,t[_0x1ab813(0x378)]),x(0x4,(0x0,t['Inject'])(t[_0x1ab813(0x1d3)]))],P);var ge=class extends p['Shape']{constructor(_0x1f7d9a,_0x2736b8){const _0x1533cc=_0x1ab813;super(_0x1f7d9a,_0x2736b8),b(this,_0x1533cc(0x125),void 0x0),b(this,_0x1533cc(0x25d),!0x1),b(this,_0x1533cc(0x272),void 0x0),b(this,_0x1533cc(0x1a3),''),b(this,'_labelPosition','top'),b(this,'_backgroundColor',void 0x0),b(this,_0x1533cc(0x3ee),void 0x0),b(this,_0x1533cc(0x3a8),void 0x0),b(this,_0x1533cc(0x317),0x4),b(this,'_blinkTimer',void 0x0),b(this,_0x1533cc(0x2c6),void 0x0),b(this,_0x1533cc(0x2ec),!0x0),b(this,_0x1533cc(0x2e5),0x0),b(this,_0x1533cc(0x2cb),_0x1533cc(0x31d)),_0x2736b8&&(this[_0x1533cc(0x169)](_0x2736b8),_0x2736b8[_0x1533cc(0x316)]&&(_0x2736b8[_0x1533cc(0x14e)]??this[_0x1533cc(0x317)])&&this[_0x1533cc(0x1a9)](_0x2736b8['highlightSecond']??this[_0x1533cc(0x317)])),this[_0x1533cc(0x1e6)]['subscribeEvent'](()=>this[_0x1533cc(0x169)]({'hovered':!0x0})),this[_0x1533cc(0x340)]['subscribeEvent'](()=>this[_0x1533cc(0x169)]({'hovered':!0x1}));}['setOffsetY'](_0x29ff1e){this['_offsetY']=_0x29ff1e;}[_0x1ab813(0x169)](_0x3c45da){const _0x551a75=_0x1ab813;this[_0x551a75(0x125)]=_0x3c45da[_0x551a75(0x166)]??this[_0x551a75(0x125)],this[_0x551a75(0x25d)]=_0x3c45da[_0x551a75(0x347)]??this['_hovered'],this[_0x551a75(0x272)]=_0x3c45da[_0x551a75(0x10f)]??this[_0x551a75(0x272)],this['_name']=_0x3c45da[_0x551a75(0x1e4)]??this[_0x551a75(0x1a3)],this[_0x551a75(0x1d4)]=_0x3c45da[_0x551a75(0x384)]??this[_0x551a75(0x1d4)],this[_0x551a75(0x2a5)]=_0x3c45da['backgroundColor']??this['_backgroundColor'],this[_0x551a75(0x3ee)]=_0x3c45da[_0x551a75(0x176)]??this['_showText'],this[_0x551a75(0x2cb)]=_0x3c45da['labelHorizontalPosition']??this['_labelHorizontalPosition'],_0x3c45da['highlightSecond']!==void 0x0&&(this['_highlightSecond']=_0x3c45da[_0x551a75(0x14e)]),_0x3c45da[_0x551a75(0x316)]!==void 0x0&&(this[_0x551a75(0x3a8)]=_0x3c45da[_0x551a75(0x316)]),_0x3c45da[_0x551a75(0x14d)]!==void 0x0&&(this['_offsetY']=_0x3c45da[_0x551a75(0x14d)]),this['transformByState']({'width':_0x3c45da['width'],'height':_0x3c45da[_0x551a75(0x1de)]});}[_0x1ab813(0x186)](_0x399101){const _0x411c9e=_0x1ab813;let {row:_0x59b234,column:_0x8a93c7}=_0x399101;if(_0x59b234>=this[_0x411c9e(0x272)][_0x411c9e(0x141)]&&_0x59b234<=this[_0x411c9e(0x272)]['endRow']&&_0x8a93c7>=this[_0x411c9e(0x272)][_0x411c9e(0x1d6)]&&_0x8a93c7<=this[_0x411c9e(0x272)]['endColumn']){this[_0x411c9e(0x169)]({'hovered':!0x0});return;}this[_0x411c9e(0x169)]({'hovered':!0x1});}[_0x1ab813(0x1a9)](_0xafeb91){const _0x1514b6=_0x1ab813;this[_0x1514b6(0x3d8)](),this[_0x1514b6(0x2ec)]=!0x0,this[_0x1514b6(0x2c6)]=window['setInterval'](()=>{const _0x2281cb=_0x1514b6;this[_0x2281cb(0x2ec)]=!this['_isBlinkVisible'],this[_0x2281cb(0x3a2)](!0x0);},0x1f4),this[_0x1514b6(0x3fa)]=window[_0x1514b6(0xfd)](()=>{const _0x1bcef0=_0x1514b6;this[_0x1bcef0(0x3d8)](),this['_isBlinkVisible']=!0x0,this['makeDirty'](!0x0);},_0xafeb91*0x3e8);}[_0x1ab813(0x3d8)](){const _0x302aa9=_0x1ab813;this[_0x302aa9(0x2c6)]&&=(window['clearInterval'](this[_0x302aa9(0x2c6)]),void 0x0),this['_blinkTimer']&&=(window[_0x302aa9(0x19d)](this[_0x302aa9(0x3fa)]),void 0x0);}['triggerDblclick'](_0x44dae6){return!0x1;}[_0x1ab813(0x38f)](){const _0x210e87=_0x1ab813;this[_0x210e87(0x3d8)](),super['dispose']();}[_0x1ab813(0x3ab)](_0x541d22){const _0x43ca6b=_0x1ab813;let _0x2e2b06=this['_color'],_0x2da08c=this[_0x43ca6b(0x2a5)];if(this['_highlight']&&!this[_0x43ca6b(0x2ec)]&&(_0x2e2b06=this[_0x43ca6b(0x3a1)](this[_0x43ca6b(0x125)]),_0x2da08c=this[_0x43ca6b(0x2a5)]?this[_0x43ca6b(0x3a1)](this[_0x43ca6b(0x2a5)]):void 0x0),p[_0x43ca6b(0x39d)][_0x43ca6b(0x11e)](_0x541d22,{'width':this[_0x43ca6b(0x3a0)],'height':this[_0x43ca6b(0x1de)],'strokeWidth':this[_0x43ca6b(0x226)]||1.5,'stroke':_0x2e2b06,'evented':!0x1,'fill':_0x2da08c}),this[_0x43ca6b(0x25d)]||this[_0x43ca6b(0x3ee)]){_0x541d22[_0x43ca6b(0x271)]();let _0x404c51=this['_labelHorizontalPosition']===_0x43ca6b(0x1f5)?-j(_0x541d22,this[_0x43ca6b(0x1a3)]):this['width'];_0x541d22['transform'](0x1,0x0,0x0,0x1,_0x404c51,(this[_0x43ca6b(0x1d4)]===_0x43ca6b(0x14b)?0x0:-0x14)+(this['_offsetY']??0x0)),me[_0x43ca6b(0x11e)](_0x541d22,{'text':this[_0x43ca6b(0x1a3)],'color':_0x2e2b06}),_0x541d22[_0x43ca6b(0x282)]();}}[_0x1ab813(0x3a1)](_0x1601e2){const _0x4a3385=_0x1ab813;return _0x1601e2[_0x4a3385(0x38d)]('#')?_0x4a3385(0x27d)+Number['parseInt'](_0x1601e2[_0x4a3385(0x105)](0x1,0x3),0x10)+',\x20'+Number[_0x4a3385(0x3ef)](_0x1601e2[_0x4a3385(0x105)](0x3,0x5),0x10)+',\x20'+Number[_0x4a3385(0x3ef)](_0x1601e2[_0x4a3385(0x105)](0x5,0x7),0x10)+_0x4a3385(0x3a3):_0x1601e2['startsWith'](_0x4a3385(0x3e9))?_0x1601e2[_0x4a3385(0x24b)](/[\d.]+\)$/g,'0.2)'):_0x1601e2['startsWith'](_0x4a3385(0x215))?_0x1601e2['replace'](_0x4a3385(0x215),_0x4a3385(0x3e9))[_0x4a3385(0x24b)](')',',\x200.2)'):_0x1601e2;}};let F=class extends t[_0x1ab813(0x303)]{constructor(_0x5a6aa0,_0x446e3e,_0x42068f,_0x4d27a5){const _0x19fac6=_0x1ab813;super(),this[_0x19fac6(0x2b3)]=_0x5a6aa0,this[_0x19fac6(0x2fd)]=_0x446e3e,this[_0x19fac6(0x291)]=_0x42068f,this['_themeService']=_0x4d27a5,b(this,_0x19fac6(0x2f1),new Set()),b(this,_0x19fac6(0x16f),null),b(this,_0x19fac6(0x328),null),this[_0x19fac6(0x2d9)]();}['_init'](){const _0x40af96=_0x1ab813;this[_0x40af96(0x2fd)][_0x40af96(0x224)][_0x40af96(0x32b)]((0x0,i[_0x40af96(0x138)])(this[_0x40af96(0x179)]),(0x0,i['switchMap'])(_0x555f9a=>{const _0x29747c=_0x40af96;if(_0x555f9a){let _0x3824cb=_0x555f9a[_0x29747c(0x352)];return(0x0,r['combineLatest'])(this[_0x29747c(0x291)]['getCollabCursors$'](this['_context']['unitId']),this[_0x29747c(0x231)][_0x29747c(0x311)])[_0x29747c(0x32b)]((0x0,i[_0x29747c(0x15f)])(([_0xca27ca,_0x1c84d1])=>{let _0x56e047=new Map();return _0xca27ca['forEach']((_0x5a81e2,_0x1a5649)=>{const _0x3b8202=_0x8a3e;if(_0x5a81e2[_0x3b8202(0x39f)]===_0x3824cb){let _0x32261c={..._0x5a81e2};_0x32261c[_0x3b8202(0x166)]=this[_0x3b8202(0x231)][_0x3b8202(0x1bd)](_0x5a81e2[_0x3b8202(0x166)]),_0x56e047[_0x3b8202(0x204)](_0x1a5649,_0x32261c);}}),{'skeleton':_0x555f9a,'cursors':_0x56e047};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x50ca92,cursors:_0x227f08})=>{const _0x31891a=_0x40af96;this['_removeCollabCursors'](),_0x50ca92&&this[_0x31891a(0x32a)](_0x50ca92,_0x227f08);}),this[_0x40af96(0x150)](this['_sheetSkeletonManagerService'][_0x40af96(0x224)][_0x40af96(0x32b)]((0x0,i[_0x40af96(0x138)])(this[_0x40af96(0x179)]))[_0x40af96(0x37e)](_0xabc102=>{const _0xf6be5=_0x40af96;var _0x10365c;if(_0xabc102==null)return;(_0x10365c=this['_pointerMoveDisposable'])==null||_0x10365c['unsubscribe'](),this[_0xf6be5(0x328)]=null;let {skeleton:_0x304f5a}=_0xabc102,{scene:_0x2ffab8}=this['_context'];this[_0xf6be5(0x328)]=_0x2ffab8[_0xf6be5(0x330)][_0xf6be5(0x362)]((0x0,t['debounce'])(_0x4835fd=>{const _0x504bfd=_0xf6be5;var _0x1b7ffa,_0x17d998;let {offsetX:_0x2439f6,offsetY:_0x180419}=_0x4835fd,{x:_0x300bfa,y:_0x7487f1}=_0x2ffab8[_0x504bfd(0x2c3)](p[_0x504bfd(0x3e7)][_0x504bfd(0x3bc)]([_0x2439f6,_0x180419])),{scaleX:_0x20f612,scaleY:_0x41a267}=_0x2ffab8['getAncestorScale'](),_0x135946=_0x2ffab8[_0x504bfd(0x20e)](p[_0x504bfd(0x401)][_0x504bfd(0xf6)]),_0x241f09=_0x2ffab8[_0x504bfd(0x293)](p['Vector2'][_0x504bfd(0x3bc)]([_0x300bfa,_0x7487f1]),_0x135946),_0x5cab3b=_0x304f5a[_0x504bfd(0x2db)](_0x2439f6,_0x180419,_0x20f612,_0x41a267,_0x241f09);(((_0x1b7ffa=this['_lastPointer'])==null?void 0x0:_0x1b7ffa[_0x504bfd(0x3d2)])!==_0x5cab3b[_0x504bfd(0x3d2)]||((_0x17d998=this[_0x504bfd(0x16f)])==null?void 0x0:_0x17d998[_0x504bfd(0x1fa)])!==_0x5cab3b['row'])&&this[_0x504bfd(0x2f1)]['forEach'](_0x5e1481=>{const _0x55beba=_0x504bfd;_0x5e1481[_0x55beba(0x186)](_0x5cab3b);});},0x64));})),this[_0x40af96(0x150)]((0x0,t[_0x40af96(0x2fb)])(()=>{const _0x4718c8=_0x40af96;var _0x1233e6;(_0x1233e6=this[_0x4718c8(0x328)])==null||_0x1233e6['unsubscribe'](),this[_0x4718c8(0x328)]=null;}));}['_updateCollabCursors'](_0x3ac395,_0xe51ef7){const _0x39e01c=_0x1ab813;let _0x200e1a=this[_0x39e01c(0x2fd)][_0x39e01c(0x2c5)]();if(!_0x200e1a)return;let _0x555e72=this[_0x39e01c(0x366)]();if(!_0x555e72)return;this[_0x39e01c(0x2f1)]['forEach'](_0x3bf09c=>{const _0x47b7e1=_0x39e01c;_0x3bf09c[_0x47b7e1(0x3a2)]();});let {scene:_0x319128}=_0x555e72,_0x1673f7=_e(Array['from'](_0xe51ef7[_0x39e01c(0x1b7)]()))[_0x39e01c(0x15f)](_0x3290ac=>{const _0x4fbfc7=_0x39e01c;let {color:_0x1c8483,range:_0x4e6b77,name:_0x5add13,selection:_0x43f682,sheetID:_0x1ff2ff}=_0x3290ac,{startColumn:_0xd36018,startRow:_0x48ea39,endColumn:_0x1fd14c,endRow:_0x38e287}=_0x4e6b77,_0x4d900a=(0x0,_[_0x4fbfc7(0x40a)])(_0x48ea39,_0xd36018,_0x319128,_0x200e1a),_0x2510e0=(0x0,_[_0x4fbfc7(0x40a)])(_0x38e287,_0x1fd14c,_0x319128,_0x200e1a),{columnHeaderHeightAndMarginTop:_0x16d5b4}=_0x200e1a,{startX:_0x11649e,startY:_0xb3b10c}=_0x4d900a,{endX:_0x454283,endY:_0x1a31b0}=_0x2510e0,_0x1ac2d8=_0x454283-_0x11649e,_0x2b6201=_0x1a31b0-_0xb3b10c;return new ge(_0x5add13,{'labelPosition':_0xb3b10c-_0x16d5b4>=0x14?'top':_0x4fbfc7(0x14b),'sheetID':_0x1ff2ff,'range':_0x4e6b77,'color':_0x1c8483,'name':_0x5add13,'selection':_0x43f682,'left':_0x11649e,'top':_0xb3b10c,'width':_0x1ac2d8,'height':_0x2b6201,'evented':!0x1,'zIndex':0x1389});});_0x319128[_0x39e01c(0xfb)](_0x1673f7,0x1),this['_cursors']=new Set(_0x1673f7);}['_removeCollabCursors'](){const _0x5c97d5=_0x1ab813;var _0x51ab99;(_0x51ab99=this[_0x5c97d5(0x2f1)])==null||_0x51ab99['forEach'](_0x230968=>_0x230968[_0x5c97d5(0x38f)]());}[_0x1ab813(0x366)](){const _0x435fec=_0x1ab813;return(0x0,_[_0x435fec(0x27f)])(this[_0x435fec(0x2b3)][_0x435fec(0x1ce)],this['_context']);}};F=S([x(0x1,(0x0,t['Inject'])(_['SheetSkeletonManagerService'])),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(A)),x(0x3,(0x0,t['Inject'])(t[_0x1ab813(0x1d3)]))],F);function _e(_0x3eef52){const _0x1f998b=_0x1ab813;let _0x22c0f4=new Map();return _0x3eef52['forEach'](_0xc2744=>{const _0x1e8f81=_0x8a3e;if(_0x22c0f4['has'](_0xc2744[_0x1e8f81(0x258)])){let _0x3c93f1=_0x22c0f4[_0x1e8f81(0x11b)](_0xc2744['selection']);_0x3c93f1[_0x1e8f81(0x1e4)]+=',\x20'+_0xc2744['name'];}else _0x22c0f4[_0x1e8f81(0x204)](_0xc2744[_0x1e8f81(0x258)],_0xc2744);}),Array[_0x1f998b(0x1ab)](_0x22c0f4[_0x1f998b(0x1b7)]());}function I(_0x42c053){const _0x41e9ce=_0x1ab813;return typeof _0x42c053==_0x41e9ce(0x313)&&!!_0x42c053;}function ve(_0x28f92c){const _0x2c2b7e=_0x1ab813;return _0x28f92c[_0x2c2b7e(0x3bd)]===l[_0x2c2b7e(0x2bd)][_0x2c2b7e(0x17a)]&&_0x2c2b7e(0x21a)in _0x28f92c&&I(_0x28f92c[_0x2c2b7e(0x21a)])&&typeof _0x28f92c[_0x2c2b7e(0x21a)][_0x2c2b7e(0x2dc)]=='string'&&typeof _0x28f92c[_0x2c2b7e(0x21a)][_0x2c2b7e(0x258)]=='string';}function ye(_0x400fca){const _0x428d0b=_0x1ab813;return _0x400fca[_0x428d0b(0x3bd)]===l[_0x428d0b(0x2bd)][_0x428d0b(0x233)]&&_0x428d0b(0x21a)in _0x400fca&&I(_0x400fca[_0x428d0b(0x21a)])&&typeof _0x400fca[_0x428d0b(0x21a)][_0x428d0b(0x2dc)]==_0x428d0b(0x211);}function be(_0x1284f9,_0x1d8f83){const _0x10aca8=_0x1ab813;let _0x495eca;try{_0x495eca=JSON[_0x10aca8(0x1b6)](_0x1284f9);}catch{return null;}if(!I(_0x495eca)||typeof _0x495eca['kind']!=_0x10aca8(0x211)||typeof _0x495eca[_0x10aca8(0x355)]!='string'||typeof _0x495eca[_0x10aca8(0x25f)]!=_0x10aca8(0x211))return null;let _0x56b20c=typeof _0x495eca['unitType']==_0x10aca8(0x1c7)?_0x495eca['unitType']:_0x1d8f83;if(_0x56b20c==null)return null;let _0x405116=I(_0x495eca['pointer'])&&typeof _0x495eca[_0x10aca8(0x3bb)]['x']==_0x10aca8(0x1c7)&&Number[_0x10aca8(0x238)](_0x495eca['pointer']['x'])&&typeof _0x495eca['pointer']['y']==_0x10aca8(0x1c7)&&Number[_0x10aca8(0x238)](_0x495eca[_0x10aca8(0x3bb)]['y'])?{'x':_0x495eca[_0x10aca8(0x3bb)]['x'],'y':_0x495eca[_0x10aca8(0x3bb)]['y']}:null;return{'kind':_0x495eca[_0x10aca8(0x26b)],'unitType':_0x56b20c,'unitId':_0x495eca['unitId'],'subUnitId':_0x495eca[_0x10aca8(0x25f)],'selectedIds':Array[_0x10aca8(0x3af)](_0x495eca[_0x10aca8(0x216)])?_0x495eca['selectedIds'][_0x10aca8(0x208)](_0x53767d=>typeof _0x53767d=='string'):[],'focusedId':typeof _0x495eca['focusedId']==_0x10aca8(0x211)?_0x495eca[_0x10aca8(0x209)]:null,'pointer':_0x405116};}function xe(_0x2e2376,_0x256946,_0x1079e4){const _0x55b214=_0x1ab813;return{'kind':_0x256946,'unitType':_0x2e2376,'unitId':_0x1079e4[_0x55b214(0x355)],'subUnitId':_0x1079e4[_0x55b214(0x25f)],'selectedIds':Array[_0x55b214(0x1ab)](_0x1079e4['selectedIds']),'focusedId':_0x1079e4['focusedId'],'pointer':_0x1079e4['pointer']?{..._0x1079e4[_0x55b214(0x3bb)]}:null};}let L=class extends t[_0x1ab813(0x303)]{constructor(_0x2d7dd8,_0x2da4f8,_0xe4797e,_0x1cb64c,_0x5b5f95,_0x5054cc){const _0x2c2fba=_0x1ab813;super(),this['unitId']=_0x2d7dd8,this[_0x2c2fba(0xf3)]=_0x2da4f8,this[_0x2c2fba(0x1b4)]=_0xe4797e,this[_0x2c2fba(0x1d5)]=_0x1cb64c,this[_0x2c2fba(0x15a)]=_0x5b5f95,this[_0x2c2fba(0x3e2)]=_0x5054cc,b(this,_0x2c2fba(0x374),!0x1),b(this,_0x2c2fba(0x117),!0x1);}get[_0x1ab813(0x120)](){const _0x58ee38=_0x1ab813;return this['_adapter'][_0x58ee38(0x120)];}['dispose'](){const _0x5deb34=_0x1ab813;this[_0x5deb34(0x1d7)](),super['dispose']();}[_0x1ab813(0x1ff)](){const _0x5b8b1d=_0x1ab813;this[_0x5b8b1d(0x117)]||(this['_initialized']=!0x0,this['_session'][_0x5b8b1d(0x322)][_0x5b8b1d(0x32b)]((0x0,r[_0x5b8b1d(0x138)])(this[_0x5b8b1d(0x179)]))[_0x5b8b1d(0x37e)](_0x10394a=>{const _0x5350c0=_0x5b8b1d;if(_0x10394a===e['SessionStatus'][_0x5350c0(0x2bf)]){this[_0x5350c0(0x374)]=!0x0;let _0x5dc325=this[_0x5350c0(0x1b4)][_0x5350c0(0x2c7)](this[_0x5350c0(0x355)]);_0x5dc325&&this[_0x5350c0(0x10a)](_0x5dc325);return;}this['_online']=!0x1,this[_0x5350c0(0x1d7)]();}),this['_session'][_0x5b8b1d(0x20d)][_0x5b8b1d(0x32b)]((0x0,r[_0x5b8b1d(0x138)])(this[_0x5b8b1d(0x179)]))[_0x5b8b1d(0x37e)](_0x209474=>{const _0x409cb6=_0x5b8b1d;ve(_0x209474)?this[_0x409cb6(0x2ff)](_0x209474):ye(_0x209474)&&this[_0x409cb6(0x181)](_0x209474[_0x409cb6(0x21a)][_0x409cb6(0x2dc)]);}),this[_0x5b8b1d(0x1b4)][_0x5b8b1d(0x335)][_0x5b8b1d(0x32b)]((0x0,r[_0x5b8b1d(0x208)])(_0x18deb6=>this[_0x5b8b1d(0x374)]&&_0x18deb6[_0x5b8b1d(0x355)]===this[_0x5b8b1d(0x355)]),(0x0,r['throttle'])(_0x59087e=>(0x0,r['timer'])(_0x59087e[_0x5b8b1d(0x17f)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r[_0x5b8b1d(0x138)])(this[_0x5b8b1d(0x179)]))[_0x5b8b1d(0x37e)](_0x285bb3=>this[_0x5b8b1d(0x10a)](_0x285bb3)));}[_0x1ab813(0x10a)](_0x5b6140){const _0x1fb9c3=_0x1ab813;let _0x11e0df=this[_0x1fb9c3(0xf3)][_0x1fb9c3(0x394)]();if(!_0x11e0df||!this[_0x1fb9c3(0x374)])return;let _0x3f5275={'eventID':l['CollaborationEvent'][_0x1fb9c3(0x17a)],'data':{'unitID':this['unitId'],'memberID':_0x11e0df,'selection':JSON[_0x1fb9c3(0x402)](xe(this[_0x1fb9c3(0x120)],this['_adapter'][_0x1fb9c3(0x3dc)],_0x5b6140))}};this['_session'][_0x1fb9c3(0x255)](_0x3f5275,this['unitId'])[_0x1fb9c3(0xf7)](()=>void 0x0);}[_0x1ab813(0x2ff)](_0x55d184){const _0xd1332b=_0x1ab813;let {memberID:_0x2e5765,selection:_0x5d1670}=_0x55d184['data'];if(_0x2e5765===this[_0xd1332b(0xf3)][_0xd1332b(0x394)]())return;let _0x19d9f8=be(_0x5d1670,this[_0xd1332b(0x120)]);if(!_0x19d9f8||_0x19d9f8[_0xd1332b(0x26b)]!==this[_0xd1332b(0x1b4)][_0xd1332b(0x3dc)]||_0x19d9f8[_0xd1332b(0x120)]!==this[_0xd1332b(0x120)]||_0x19d9f8[_0xd1332b(0x355)]!==this[_0xd1332b(0x355)])return;let _0x587eb0=this[_0xd1332b(0x15a)][_0xd1332b(0x24e)](this['unitId'],_0x2e5765),_0x1609a4={'unitId':_0x19d9f8[_0xd1332b(0x355)],'subUnitId':_0x19d9f8['subUnitId'],'selectedIds':_0x19d9f8[_0xd1332b(0x216)],'focusedId':_0x19d9f8[_0xd1332b(0x209)],'pointer':_0x19d9f8[_0xd1332b(0x3bb)],'memberId':_0x2e5765,'color':this[_0xd1332b(0x1d5)][_0xd1332b(0x2e4)](_0x2e5765),'name':(_0x587eb0==null?void 0x0:_0x587eb0[_0xd1332b(0x1e4)])??_0x2e5765};this[_0xd1332b(0x3e2)]['executeCommand'](w['id'],{'unitType':this[_0xd1332b(0x120)],'update':{'type':_0xd1332b(0x204),'state':_0x1609a4}})[_0xd1332b(0xf7)](()=>void 0x0);}[_0x1ab813(0x181)](_0x441d83){const _0x3aab6a=_0x1ab813;this['_commandService'][_0x3aab6a(0x377)](w['id'],{'unitType':this[_0x3aab6a(0x120)],'update':{'type':_0x3aab6a(0x220),'unitId':this[_0x3aab6a(0x355)],'memberId':_0x441d83}})[_0x3aab6a(0xf7)](()=>void 0x0);}[_0x1ab813(0x1d7)](){const _0x358f2b=_0x1ab813;this['_commandService'][_0x358f2b(0x377)](w['id'],{'unitType':this[_0x358f2b(0x120)],'update':{'type':_0x358f2b(0x123),'unitId':this[_0x358f2b(0x355)]}})[_0x358f2b(0xf7)](()=>void 0x0);}};L=S([x(0x3,(0x0,t[_0x1ab813(0x3b3)])(E)),x(0x4,(0x0,t[_0x1ab813(0x3b3)])(e['MemberService'])),x(0x5,(0x0,t[_0x1ab813(0x3b3)])(t[_0x1ab813(0x378)]))],L);let R=class extends t[_0x1ab813(0x303)]{constructor(_0x54f31d,_0x1cf447,_0x41fbd4,_0x79fc09){const _0x339c18=_0x1ab813;super(),this['_univerInstanceService']=_0x54f31d,this['_injector']=_0x1cf447,this[_0x339c18(0x2c4)]=_0x41fbd4,this[_0x339c18(0x172)]=_0x79fc09,b(this,_0x339c18(0x189),!0x1),b(this,_0x339c18(0x3fe),new Map()),b(this,_0x339c18(0x2d2),new Map()),b(this,_0x339c18(0x2e2),new Map()),this[_0x339c18(0x2d9)]();}[_0x1ab813(0x38f)](){const _0x7416c5=_0x1ab813;this[_0x7416c5(0x189)]=!0x0,this[_0x7416c5(0x2e2)][_0x7416c5(0x131)](_0x387433=>_0x387433[_0x7416c5(0x38f)]()),this[_0x7416c5(0x2e2)][_0x7416c5(0x123)](),this[_0x7416c5(0x3fe)][_0x7416c5(0x131)](_0x534391=>_0x534391[_0x7416c5(0x38f)]()),this[_0x7416c5(0x3fe)][_0x7416c5(0x123)](),this[_0x7416c5(0x2d2)][_0x7416c5(0x123)](),super[_0x7416c5(0x38f)]();}[_0x1ab813(0x2d9)](){const _0x2c7306=_0x1ab813;this[_0x2c7306(0x172)][_0x2c7306(0x219)]['pipe']((0x0,r['takeUntil'])(this[_0x2c7306(0x179)]))[_0x2c7306(0x37e)](_0x431b63=>this[_0x2c7306(0x30d)](_0x431b63));}[_0x1ab813(0x30d)](_0x249179){const _0x1b2a5e=_0x1ab813;let _0x444a32=new Set(_0x249179[_0x1b2a5e(0x15f)](_0x1899c8=>_0x1899c8['unitType']));this[_0x1b2a5e(0x2e2)][_0x1b2a5e(0x131)]((_0x273af8,_0x95644)=>{const _0x4b28ef=_0x1b2a5e;_0x444a32['has'](_0x95644)||(_0x273af8[_0x4b28ef(0x38f)](),this['_adapterDisposables'][_0x4b28ef(0x2c2)](_0x95644),this[_0x4b28ef(0x2b7)](_0x95644));}),_0x249179['forEach'](_0x33aef5=>{const _0x10e9d9=_0x1b2a5e;this[_0x10e9d9(0x2e2)][_0x10e9d9(0x3fb)](_0x33aef5[_0x10e9d9(0x120)])||this[_0x10e9d9(0x3ea)](_0x33aef5);});}[_0x1ab813(0x3ea)](_0x229622){const _0x42feba=_0x1ab813;let _0x34557f=new t[(_0x42feba(0x106))]();this[_0x42feba(0x2e2)][_0x42feba(0x204)](_0x229622[_0x42feba(0x120)],_0x34557f),_0x34557f[_0x42feba(0x28d)](_0x229622[_0x42feba(0x2a4)]()),this[_0x42feba(0x37b)]['getAllUnitsForType'](_0x229622[_0x42feba(0x120)])[_0x42feba(0x131)](_0x2c539d=>this[_0x42feba(0x2f0)](_0x2c539d[_0x42feba(0x15b)](),_0x229622)[_0x42feba(0xf7)](()=>void 0x0));let _0x302e37=this[_0x42feba(0x37b)]['getTypeOfUnitAdded$'](_0x229622[_0x42feba(0x120)])[_0x42feba(0x37e)](({unit:_0x20d5a2})=>this[_0x42feba(0x2f0)](_0x20d5a2[_0x42feba(0x15b)](),_0x229622)[_0x42feba(0xf7)](()=>void 0x0));_0x34557f[_0x42feba(0x28d)]((0x0,t['toDisposable'])(()=>_0x302e37[_0x42feba(0x18a)]()));let _0x577053=this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x229622[_0x42feba(0x120)])[_0x42feba(0x37e)](_0x2e7eba=>this[_0x42feba(0x3f2)](_0x2e7eba[_0x42feba(0x15b)]()));_0x34557f[_0x42feba(0x28d)]((0x0,t[_0x42feba(0x2fb)])(()=>_0x577053[_0x42feba(0x18a)]()));}async[_0x1ab813(0x2f0)](_0x5c7dac,_0x49263c){const _0x15e261=_0x1ab813;if(this[_0x15e261(0x3fe)][_0x15e261(0x3fb)](_0x5c7dac)||this[_0x15e261(0x2d2)][_0x15e261(0x3fb)](_0x5c7dac))return;let _0x531e5a={};this[_0x15e261(0x2d2)][_0x15e261(0x204)](_0x5c7dac,_0x531e5a);let _0x476398=await this[_0x15e261(0x2c4)][_0x15e261(0x38a)](_0x5c7dac)['catch'](_0x92e0d9=>{const _0x25685a=_0x15e261;throw this['_pendingEntities'][_0x25685a(0x11b)](_0x5c7dac)===_0x531e5a&&this[_0x25685a(0x2d2)][_0x25685a(0x2c2)](_0x5c7dac),_0x92e0d9;});if(this[_0x15e261(0x189)]||this[_0x15e261(0x2d2)][_0x15e261(0x11b)](_0x5c7dac)!==_0x531e5a||this[_0x15e261(0x172)]['get'](_0x49263c['unitType'])!==_0x49263c){this['_pendingEntities'][_0x15e261(0x11b)](_0x5c7dac)===_0x531e5a&&this[_0x15e261(0x2d2)]['delete'](_0x5c7dac);return;}let _0x1834ca=this[_0x15e261(0x100)]['createInstance'](L,_0x5c7dac,_0x476398,_0x49263c);_0x1834ca[_0x15e261(0x1ff)](),this[_0x15e261(0x2d2)]['delete'](_0x5c7dac),this['_entities'][_0x15e261(0x204)](_0x5c7dac,_0x1834ca);}['_disposeEntity'](_0x31313c){const _0x349e7c=_0x1ab813;this[_0x349e7c(0x2d2)][_0x349e7c(0x2c2)](_0x31313c);let _0x136cda=this[_0x349e7c(0x3fe)]['get'](_0x31313c);_0x136cda&&(_0x136cda['dispose'](),this[_0x349e7c(0x3fe)][_0x349e7c(0x2c2)](_0x31313c));}[_0x1ab813(0x2b7)](_0x5e5d50){const _0x36c787=_0x1ab813;this['_univerInstanceService']['getAllUnitsForType'](_0x5e5d50)[_0x36c787(0x131)](_0x37fe24=>this[_0x36c787(0x2d2)][_0x36c787(0x2c2)](_0x37fe24[_0x36c787(0x15b)]())),Array[_0x36c787(0x1ab)](this[_0x36c787(0x3fe)][_0x36c787(0x136)]())[_0x36c787(0x131)](([_0x443692,_0x1bd878])=>{const _0x54d6fb=_0x36c787;_0x1bd878[_0x54d6fb(0x120)]===_0x5e5d50&&this[_0x54d6fb(0x3f2)](_0x443692);});}};R=S([x(0x0,t[_0x1ab813(0x310)]),x(0x1,(0x0,t[_0x1ab813(0x3b3)])(t[_0x1ab813(0x16e)])),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(e[_0x1ab813(0x3dd)])),x(0x3,(0x0,t[_0x1ab813(0x3b3)])(n[_0x1ab813(0x17d)]))],R);let z=class extends t[_0x1ab813(0x29a)]{constructor(_0x30fe5e,_0x576848,_0x2074fe,_0x4a7a0d,_0x44f74b,_0x17f903){const _0x55e195=_0x1ab813;super(),this['_beforeCloseService']=_0x30fe5e,this[_0x55e195(0x39b)]=_0x576848,this[_0x55e195(0x1c2)]=_0x2074fe,this['_messageService']=_0x4a7a0d,this[_0x55e195(0x33a)]=_0x44f74b,this[_0x55e195(0xfc)]=_0x17f903,this[_0x55e195(0x405)](),this[_0x55e195(0x363)]();}['_setupBeforeClosingHandler'](){const _0x2f924b=_0x1ab813;this[_0x2f924b(0x150)](this['_beforeCloseService'][_0x2f924b(0x357)](()=>{const _0x31dca8=_0x2f924b;if(this[_0x31dca8(0x39b)][_0x31dca8(0x13c)][_0x31dca8(0x1e9)])return this[_0x31dca8(0xfc)]['t'](_0x31dca8(0x3c8));}));}[_0x1ab813(0x363)](){const _0x2995d3=_0x1ab813;this[_0x2995d3(0x150)](this['_collaborationUIEventService'][_0x2995d3(0x20d)]['subscribe'](_0x58f1ab=>{const _0x35d103=_0x2995d3;_0x58f1ab['id']===e[_0x35d103(0x225)][_0x35d103(0x147)]&&this['_messageService'][_0x35d103(0x2a1)]({'type':a[_0x35d103(0x28f)][_0x35d103(0x1c3)],'content':this[_0x35d103(0xfc)]['t'](_0x35d103(0x40c))}),_0x58f1ab['id']===e[_0x35d103(0x225)]['CLOSE_ROOM']&&this[_0x35d103(0x14a)][_0x35d103(0x2a1)]({'type':a[_0x35d103(0x28f)][_0x35d103(0x1c3)],'content':this['_localeService']['t'](_0x35d103(0x3a5))}),_0x58f1ab['id']===e[_0x35d103(0x225)][_0x35d103(0x256)]&&this[_0x35d103(0x33a)][_0x35d103(0x2a1)]({'title':this[_0x35d103(0xfc)]['t'](_0x35d103(0x39e)),'content':this[_0x35d103(0xfc)]['t'](_0x35d103(0x12f)),'type':'error','duration':0x0}),_0x58f1ab['id']===e['CollaborationUIEventId']['CONFLICT']&&this[_0x35d103(0x33a)][_0x35d103(0x2a1)]({'title':this[_0x35d103(0xfc)]['t'](_0x35d103(0x18c)),'content':this[_0x35d103(0xfc)]['t'](_0x35d103(0x1b2)),'type':_0x35d103(0x159),'duration':0x0}),_0x58f1ab['id']===e[_0x35d103(0x225)][_0x35d103(0x399)]&&this[_0x35d103(0x14a)]['show']({'type':a[_0x35d103(0x28f)][_0x35d103(0x1c3)],'content':this[_0x35d103(0xfc)]['t'](_0x58f1ab[_0x35d103(0x21a)]||'')}),_0x58f1ab['id']===e[_0x35d103(0x225)][_0x35d103(0x1fc)]&&this[_0x35d103(0x14a)]['show']({'type':a[_0x35d103(0x28f)][_0x35d103(0x1c3)],'content':this[_0x35d103(0xfc)]['t'](_0x35d103(0x323))}),_0x58f1ab['id']===e[_0x35d103(0x225)][_0x35d103(0x221)]&&this[_0x35d103(0x14a)]['show']({'type':a[_0x35d103(0x28f)][_0x35d103(0x274)],'content':this[_0x35d103(0xfc)]['t'](_0x35d103(0x1ba))}),_0x58f1ab['id']===e['CollaborationUIEventId'][_0x35d103(0x332)]&&this[_0x35d103(0x14a)][_0x35d103(0x2a1)]({'type':a[_0x35d103(0x28f)][_0x35d103(0x274)],'content':this[_0x35d103(0xfc)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}};z=S([x(0x0,n[_0x1ab813(0x16c)]),x(0x1,e[_0x1ab813(0x1d9)]),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(e['CollaborationUIEventService'])),x(0x3,n['IMessageService']),x(0x4,n['INotificationService']),x(0x5,(0x0,t['Inject'])(t[_0x1ab813(0x324)]))],z);const B=(0x0,t[_0x1ab813(0x254)])(_0x1ab813(0x13e));let V=class extends t[_0x1ab813(0x303)]{constructor(_0x339739,_0x52204c,_0x1cc255,_0x3a73df){const _0x6bab6f=_0x1ab813;super(),this[_0x6bab6f(0x1fb)]=_0x339739,this['_logService']=_0x52204c,this['_commandService']=_0x1cc255,this['_dataLoaderService']=_0x3a73df,this[_0x6bab6f(0x2d9)]()[_0x6bab6f(0xf7)](_0xed2a08=>this[_0x6bab6f(0x308)][_0x6bab6f(0x159)]('[CollaborationDataLoaderController]',_0xed2a08));}async[_0x1ab813(0x2d9)](){const _0x2654ce=_0x1ab813;let _0x5e52f4=this[_0x2654ce(0x1fb)][_0x2654ce(0x326)](_0x2654ce(0x1ce)),_0x348b8a=this[_0x2654ce(0x1fb)][_0x2654ce(0x326)](_0x2654ce(0x1e1)),_0x27bdc2=this['_urlService'][_0x2654ce(0x326)](_0x2654ce(0x1cd));if(!_0x5e52f4||!_0x348b8a){this[_0x2654ce(0x308)]['debug']('[CollaborationDataLoaderController]',_0x2654ce(0x37d));return;}let _0x2c862f=await this[_0x2654ce(0x129)][_0x2654ce(0x19a)](_0x5e52f4,Number(_0x348b8a),_0x27bdc2);this[_0x2654ce(0x26a)]||_0x2c862f&&_0x2c862f instanceof t[_0x2654ce(0x199)]&&await this['_setupSubUnitSync'](_0x2c862f);}async[_0x1ab813(0x178)](_0x40d510){const _0x20baac=_0x1ab813;await this[_0x20baac(0x359)](_0x40d510),!this[_0x20baac(0x26a)]&&(_0x40d510['activeSheet$'][_0x20baac(0x32b)]((0x0,r[_0x20baac(0x138)])(this[_0x20baac(0x179)]))['subscribe'](_0x34b6d3=>{const _0x3c765e=_0x20baac;_0x34b6d3&&this[_0x3c765e(0x11a)](_0x34b6d3);}),this[_0x20baac(0x1fb)][_0x20baac(0x261)]['pipe']((0x0,r[_0x20baac(0x138)])(this[_0x20baac(0x179)]))['subscribe'](()=>{const _0x3fdb63=_0x20baac;this['_updateSubUnitFromURLParams'](_0x40d510)[_0x3fdb63(0xf7)](_0x7da5b9=>this[_0x3fdb63(0x308)][_0x3fdb63(0x159)]('[CollaborationDataLoaderController]',_0x7da5b9));}));}['_updateURLWithCurrentState'](_0x4e8d14,_0x5269a6=!0x1){const _0x5ed79a=_0x1ab813;let _0x19e415=this[_0x5ed79a(0x1fb)][_0x5ed79a(0x326)](_0x5ed79a(0x1cd));_0x4e8d14[_0x5ed79a(0x367)]()!==_0x19e415&&this['_urlService'][_0x5ed79a(0x3d7)](_0x5ed79a(0x1cd),_0x4e8d14[_0x5ed79a(0x367)](),_0x5269a6);}async[_0x1ab813(0x359)](_0x48dee4){const _0x192865=_0x1ab813;var _0x4811c7;let _0x204cf3=this['_urlService']['getParam'](_0x192865(0x1cd));if(!_0x204cf3||!_0x48dee4[_0x192865(0x33e)](_0x204cf3)){let _0x1776d0=_0x48dee4[_0x192865(0x157)]()[0x0],_0x12ffb3=_0x48dee4[_0x192865(0x33e)](_0x1776d0);if(!_0x12ffb3||(this[_0x192865(0x11a)](_0x12ffb3,!0x0),this[_0x192865(0x26a)]))return;await this[_0x192865(0x3e2)][_0x192865(0x377)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x48dee4[_0x192865(0x15b)](),'subUnitId':_0x1776d0});return;}((_0x4811c7=_0x48dee4[_0x192865(0x275)]())==null?void 0x0:_0x4811c7[_0x192865(0x367)]())!==_0x204cf3&&await this[_0x192865(0x3e2)][_0x192865(0x377)](g[_0x192865(0x302)]['id'],{'unitId':_0x48dee4[_0x192865(0x15b)](),'subUnitId':_0x204cf3});}};V=S([x(0x0,B),x(0x1,t[_0x1ab813(0x12d)]),x(0x2,t[_0x1ab813(0x378)]),x(0x3,(0x0,t[_0x1ab813(0x3b3)])(e['DataLoaderService']))],V);let H=class{constructor(_0x194bb0,_0x280384){const _0x4877b4=_0x1ab813;this['_transformService']=_0x194bb0,this[_0x4877b4(0x3ad)]=_0x280384;}[_0x1ab813(0x153)](_0x39b175){const _0x23eb2f=_0x1ab813;this[_0x23eb2f(0x21c)](_0x39b175),this[_0x23eb2f(0x2e7)](_0x39b175);}[_0x1ab813(0x354)](_0x1d7389){const _0x260e6a=_0x1ab813;let {unitID:_0x46ced0}=_0x1d7389,{redoCache:_0x48a943}=this['_renderManagerService'][_0x260e6a(0x174)](_0x46ced0)[_0x260e6a(0x163)](f[_0x260e6a(0x252)])[_0x260e6a(0x1aa)]();if(_0x48a943[_0x260e6a(0x3e4)]===0x0)return _0x1d7389;let _0x2c2f1a=t[_0x260e6a(0x2ce)][_0x260e6a(0x1a4)](_0x1d7389[_0x260e6a(0x2aa)][0x0]);for(let _0x326a55=0x0;_0x326a55<_0x48a943[_0x260e6a(0x3e4)];_0x326a55++){let _0x4d2d1e={'id':'doc.mutation.rich-text-editing','params':{..._0x48a943[_0x326a55]}},_0x15df1c=this[_0x260e6a(0x139)][_0x260e6a(0x110)](_0x2c2f1a,_0x4d2d1e,!0x1);if((0x0,l[_0x260e6a(0x19f)])(_0x15df1c))throw _0x15df1c[_0x260e6a(0x159)];_0x2c2f1a=_0x15df1c[_0x260e6a(0x27e)];}return{...t[_0x260e6a(0x2ce)][_0x260e6a(0x1a4)](_0x1d7389),'mutations':[_0x2c2f1a]};}[_0x1ab813(0x21c)](_0x414ca0){const _0x261d28=_0x1ab813;let {unitID:_0x32b36e}=_0x414ca0,_0x411c27=this[_0x261d28(0x3ad)][_0x261d28(0x174)](_0x32b36e)[_0x261d28(0x163)](f[_0x261d28(0x252)]),{undoCache:_0x3441d0,redoCache:_0x544bc7}=_0x411c27[_0x261d28(0x1aa)]();if(_0x3441d0['length']===0x0||_0x544bc7[_0x261d28(0x3e4)]===0x0)return;let _0x1f983f=[],_0x14d3e5=[],_0x1241e9=t['Tools']['deepClone'](_0x414ca0['mutations'][0x0]),_0x4be255=t[_0x261d28(0x2ce)]['deepClone'](_0x414ca0['mutations'][0x0]);for(let _0x15033f=_0x3441d0[_0x261d28(0x3e4)]-0x1;_0x15033f>=0x0;_0x15033f--){let _0x276813={'id':_0x261d28(0x2e9),'params':{..._0x3441d0[_0x15033f]}},_0x5e9a1e={'id':'doc.mutation.rich-text-editing','params':{..._0x544bc7[_0x15033f]}},_0x4449e7=this[_0x261d28(0x139)]['transformMutation'](_0x1241e9,_0x276813,!0x1),_0x5185e7=this[_0x261d28(0x139)]['transformMutation'](_0x4be255,_0x5e9a1e,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x4449e7))throw _0x4449e7['error'];if((0x0,l[_0x261d28(0x19f)])(_0x5185e7))throw _0x5185e7[_0x261d28(0x159)];_0x1f983f[_0x261d28(0x210)](_0x4449e7[_0x261d28(0x2fe)][_0x261d28(0x3c9)]),_0x14d3e5[_0x261d28(0x210)](_0x5185e7[_0x261d28(0x2fe)]['params']),_0x1241e9=_0x4449e7[_0x261d28(0x27e)],_0x4be255=_0x5185e7[_0x261d28(0x27e)];}_0x411c27[_0x261d28(0x3c4)]({'undoCache':_0x1f983f,'redoCache':_0x14d3e5});}[_0x1ab813(0x2e7)](_0x47e47c){const _0x3221b6=_0x1ab813;let {unitID:_0x1cedbe}=_0x47e47c,_0x3fe984=this[_0x3221b6(0x3ad)][_0x3221b6(0x174)](_0x1cedbe)[_0x3221b6(0x163)](f[_0x3221b6(0x252)]),_0x34147=_0x3fe984['getActiveRange']();if(_0x34147==null)return;let _0x34d31c=[{'id':_0x3221b6(0x2e9),'params':{'unitId':_0x47e47c[_0x3221b6(0x38e)],'actions':null,'textRanges':[_0x34147]}}],_0x3ab56b=this[_0x3221b6(0x139)]['transformMutationsWithChangeset'](_0x47e47c,_0x34d31c);if(!(0x0,l['isTransformMutationsWithChangesetSuccess'])(_0x3ab56b))throw _0x3ab56b['error'];let _0x3c47d0=_0x3ab56b['m2Prime'][0x0][_0x3221b6(0x3c9)]['textRanges'];Array['isArray'](_0x3c47d0)&&_0x3c47d0[_0x3221b6(0x3e4)]&&_0x3fe984[_0x3221b6(0x1c8)](_0x3c47d0[0x0]);}};H=S([x(0x0,l['ITransformService']),x(0x1,p[_0x1ab813(0x112)])],H);let U=class{constructor(_0x29899d,_0x18f884,_0xf5d543){const _0x4a11d9=_0x1ab813;this[_0x4a11d9(0x100)]=_0x29899d,this[_0x4a11d9(0x139)]=_0x18f884,this[_0x4a11d9(0x35b)]=_0xf5d543;}[_0x1ab813(0x214)](_0x3906c9){this['_transformHistoryAndStateStack'](_0x3906c9);}['transformRemoteChangeset'](_0x5de471){const _0x5887cb=_0x1ab813;let {unitID:_0x10611f}=_0x5de471,{collaboration:_0x4e331a}=this['_docStateChangeManagerService'][_0x5887cb(0x1db)](_0x10611f);if(_0x4e331a['length']===0x0)return _0x5de471;let _0x4714be=t['Tools'][_0x5887cb(0x1a4)](_0x5de471[_0x5887cb(0x2aa)][0x0]);for(let _0x21be82=0x0;_0x21be82<_0x4e331a[_0x5887cb(0x3e4)];_0x21be82++){let _0x4644b1={'id':_0x5887cb(0x2e9),'params':{'unitId':_0x4e331a[_0x21be82]['unitId'],..._0x4e331a[_0x21be82][_0x5887cb(0x1ee)]}},_0x15480a=this[_0x5887cb(0x139)]['transformMutation'](_0x4714be,_0x4644b1,!0x1);if((0x0,l[_0x5887cb(0x19f)])(_0x15480a))throw _0x15480a[_0x5887cb(0x159)];_0x4714be=_0x15480a[_0x5887cb(0x27e)];}return{...t[_0x5887cb(0x2ce)][_0x5887cb(0x1a4)](_0x5de471),'mutations':[_0x4714be]};}[_0x1ab813(0x383)](_0x236f6f){const _0x62b2f=_0x1ab813;let {unitID:_0xaa30e2}=_0x236f6f,{history:_0x5af77f,collaboration:_0x3de4af}=this[_0x62b2f(0x35b)][_0x62b2f(0x1db)](_0xaa30e2);if(_0x5af77f[_0x62b2f(0x3e4)]===0x0&&_0x3de4af[_0x62b2f(0x3e4)]===0x0)return;let _0x433651=[],_0x5f014f=[],_0x4cd665=t['Tools'][_0x62b2f(0x1a4)](_0x236f6f['mutations'][0x0]),_0x49978f=t[_0x62b2f(0x2ce)][_0x62b2f(0x1a4)](_0x236f6f[_0x62b2f(0x2aa)][0x0]);for(let _0x27fea2=_0x5af77f[_0x62b2f(0x3e4)]-0x1;_0x27fea2>=0x0;_0x27fea2--){let _0x281f1c={'id':_0x62b2f(0x2e9),'params':{'unitId':_0x5af77f[_0x27fea2]['unitId'],..._0x5af77f[_0x27fea2]['undoState']}},_0x3df86a={'id':_0x62b2f(0x2e9),'params':{'unitId':_0x5af77f[_0x27fea2]['unitId'],..._0x5af77f[_0x27fea2][_0x62b2f(0x1ee)]}},_0x47a7ca=this['_transformService'][_0x62b2f(0x110)](_0x4cd665,_0x281f1c,!0x1),_0x2ada2a=this['_transformService'][_0x62b2f(0x110)](_0x49978f,_0x3df86a,!0x1);if((0x0,l[_0x62b2f(0x19f)])(_0x47a7ca))throw _0x47a7ca[_0x62b2f(0x159)];if((0x0,l['isTransformMutationFailure'])(_0x2ada2a))throw _0x2ada2a[_0x62b2f(0x159)];_0x433651[_0x62b2f(0x210)]({..._0x5af77f[_0x27fea2],'undoState':_0x47a7ca['m2Prime'][_0x62b2f(0x3c9)],'redoState':_0x2ada2a[_0x62b2f(0x2fe)]['params']}),_0x4cd665=_0x47a7ca[_0x62b2f(0x27e)],_0x49978f=_0x2ada2a[_0x62b2f(0x27e)];}_0x4cd665=t[_0x62b2f(0x2ce)][_0x62b2f(0x1a4)](_0x236f6f[_0x62b2f(0x2aa)][0x0]),_0x49978f=t[_0x62b2f(0x2ce)]['deepClone'](_0x236f6f[_0x62b2f(0x2aa)][0x0]);for(let _0x49dcf0=_0x3de4af[_0x62b2f(0x3e4)]-0x1;_0x49dcf0>=0x0;_0x49dcf0--){let _0x3f2a3d={'id':_0x62b2f(0x2e9),'params':{'unitId':_0x3de4af[_0x49dcf0][_0x62b2f(0x355)],..._0x3de4af[_0x49dcf0]['undoState']}},_0x33c0e7={'id':_0x62b2f(0x2e9),'params':{'unitId':_0x3de4af[_0x49dcf0]['unitId'],..._0x3de4af[_0x49dcf0][_0x62b2f(0x1ee)]}},_0x4d5533=this['_transformService'][_0x62b2f(0x110)](_0x4cd665,_0x3f2a3d,!0x1),_0x2971f1=this[_0x62b2f(0x139)][_0x62b2f(0x110)](_0x49978f,_0x33c0e7,!0x1);if((0x0,l[_0x62b2f(0x19f)])(_0x4d5533))throw _0x4d5533['error'];if((0x0,l[_0x62b2f(0x19f)])(_0x2971f1))throw _0x2971f1['error'];_0x5f014f[_0x62b2f(0x210)]({..._0x3de4af[_0x49dcf0],'undoState':_0x4d5533[_0x62b2f(0x2fe)][_0x62b2f(0x3c9)],'redoState':_0x2971f1[_0x62b2f(0x2fe)][_0x62b2f(0x3c9)]}),_0x4cd665=_0x4d5533[_0x62b2f(0x27e)],_0x49978f=_0x2971f1[_0x62b2f(0x27e)];}this[_0x62b2f(0x35b)][_0x62b2f(0x132)](_0xaa30e2,{'history':_0x433651,'collaboration':_0x5f014f});}};U=S([x(0x0,(0x0,t[_0x1ab813(0x3b3)])(t[_0x1ab813(0x16e)])),x(0x1,l[_0x1ab813(0x32c)]),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(d[_0x1ab813(0x3ae)]))],U);let W=class{constructor(_0x1ac2da,_0x6f0dec){const _0x53c4f6=_0x1ab813;this['_docSelectionManagerService']=_0x1ac2da,this[_0x53c4f6(0x139)]=_0x6f0dec;}[_0x1ab813(0x337)](_0x5ed4dc){const _0x5d888e=_0x1ab813;var _0x364e3e;let _0x5e4126=this[_0x5d888e(0x309)]['getDocRanges']()??[],_0x5b397c=this['_docSelectionManagerService'][_0x5d888e(0x25e)]();if(_0x5e4126['length']===0x0)return;let _0x2aceee=_0x5ed4dc[_0x5d888e(0x38e)],_0x16ba2c=[{'id':_0x5d888e(0x2e9),'params':{'unitId':_0x2aceee,'actions':null,'textRanges':_0x5e4126}}],_0x5a948b=this[_0x5d888e(0x139)][_0x5d888e(0x16b)](_0x5ed4dc,_0x16ba2c);if(!(0x0,l[_0x5d888e(0x26d)])(_0x5a948b))throw _0x5a948b[_0x5d888e(0x159)];let _0x48d6bf=(_0x364e3e=_0x5a948b['m2Prime'][0x0])==null?void 0x0:_0x364e3e[_0x5d888e(0x3c9)],_0x3cc44b=_0x48d6bf&&typeof _0x48d6bf=='object'&&_0x5d888e(0x2de)in _0x48d6bf?_0x48d6bf[_0x5d888e(0x2de)]:null;if(!Se(_0x3cc44b))return;let _0x30df7d=_0x5ed4dc['mutations']['some'](_0x1cce41=>G(_0x1cce41['params']))?_0x3cc44b==null?void 0x0:_0x3cc44b[_0x5d888e(0x208)](_0x1f907e=>!(_0x5d888e(0x382)in _0x1f907e)):_0x3cc44b;Array[_0x5d888e(0x3af)](_0x30df7d)&&this[_0x5d888e(0x309)][_0x5d888e(0x299)](_0x30df7d,{'unitId':_0x2aceee,'subUnitId':_0x2aceee},!0x1,_0x5b397c!=null&&_0x5b397c[_0x5d888e(0x165)]?{..._0x5b397c['options'],'wholeDocument':!0x1}:void 0x0);}};W=S([x(0x0,(0x0,t[_0x1ab813(0x3b3)])(d[_0x1ab813(0x269)])),x(0x1,l[_0x1ab813(0x32c)])],W);function Se(_0x2ffe0e){const _0x3fb5eb=_0x1ab813;return Array[_0x3fb5eb(0x3af)](_0x2ffe0e)&&_0x2ffe0e[_0x3fb5eb(0x33d)](_0x1ec8a0=>typeof _0x1ec8a0=='object'&&!!_0x1ec8a0&&_0x3fb5eb(0x3db)in _0x1ec8a0&&_0x3fb5eb(0x22c)in _0x1ec8a0);}function G(_0xbf0688){const _0x161d8d=_0x1ab813;return _0xbf0688===_0x161d8d(0x245)?!0x0:Array[_0x161d8d(0x3af)](_0xbf0688)?_0xbf0688[_0x161d8d(0x28b)](_0xd78b44=>G(_0xd78b44)):!_0xbf0688||typeof _0xbf0688!='object'?!0x1:Object['values'](_0xbf0688)[_0x161d8d(0x28b)](_0x4bdfc2=>G(_0x4bdfc2));}let K=class extends t[_0x1ab813(0x29a)]{constructor(_0x15fcd4,_0x5a7fae,_0x3b72aa,_0x26f282,_0x2e714b,_0x3df867,_0x1511d8){const _0x1fe33c=_0x1ab813;super(),this['_collaborationController']=_0x15fcd4,this[_0x1fe33c(0x206)]=_0x5a7fae,this[_0x1fe33c(0x151)]=_0x3b72aa,this[_0x1fe33c(0x162)]=_0x26f282,this[_0x1fe33c(0x37a)]=_0x2e714b,this[_0x1fe33c(0x14a)]=_0x3df867,this[_0x1fe33c(0xfc)]=_0x1511d8,b(this,'_status$',new r[(_0x1fe33c(0x371))](e[_0x1fe33c(0x24f)]['NOT_COLLAB'])),this['_initEntityListener']();}['_initEntityListener'](){const _0x3d9b8c=_0x1ab813;this[_0x3d9b8c(0x150)](this[_0x3d9b8c(0x3eb)]['entityInit$'][_0x3d9b8c(0x37e)](_0x2549e5=>{const _0xc2cbc9=_0x3d9b8c;_0x2549e5 instanceof e['DocCollaborationEntity']&&_0x2549e5[_0xc2cbc9(0x28c)]({'onTransformIME':_0x56a0c8=>this['_docTransformIMECacheService'][_0xc2cbc9(0x153)](_0x56a0c8),'onTransformState':_0x546512=>this['_docTransformStateCacheService']['transformStateCache'](_0x546512),'onTransformSelections':_0x36534f=>this[_0xc2cbc9(0x162)][_0xc2cbc9(0x337)](_0x36534f),'onSyncEditingCollabCursor':_0xf0721a=>this[_0xc2cbc9(0x37a)]['syncEditingCollabCursor'](_0xf0721a),'onTransformRemoteChangesetByIMECache':_0x255bf3=>this[_0xc2cbc9(0x206)][_0xc2cbc9(0x354)](_0x255bf3),'onTransformRemoteChangesetByStateCache':_0x1f0257=>this[_0xc2cbc9(0x151)][_0xc2cbc9(0x354)](_0x1f0257)});}));}};K=S([x(0x0,(0x0,t[_0x1ab813(0x3b3)])(e[_0x1ab813(0x36f)])),x(0x1,(0x0,t['Inject'])(H)),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(U)),x(0x3,(0x0,t[_0x1ab813(0x3b3)])(W)),x(0x4,(0x0,t['Inject'])(D)),x(0x5,n['IMessageService']),x(0x6,(0x0,t[_0x1ab813(0x3b3)])(t[_0x1ab813(0x324)]))],K);let q=class extends t[_0x1ab813(0x29a)]{constructor(_0x4684a2,_0x39fd9c,_0x19bd9b,_0x381f31){const _0x1a3828=_0x1ab813;super(),this['_injector']=_0x4684a2,this[_0x1a3828(0x31f)]=_0x39fd9c,this[_0x1a3828(0x308)]=_0x19bd9b,this[_0x1a3828(0x3ac)]=_0x381f31,b(this,_0x1a3828(0x2a6),void 0x0),this[_0x1a3828(0x2d9)]();}[_0x1ab813(0x2d9)](){const _0x23d1c6=_0x1ab813;this['_initWindowErrorListener'](),this[_0x23d1c6(0x34e)](),this[_0x23d1c6(0x3b1)](),this[_0x23d1c6(0x2be)]();}['_initUserListener'](){const _0x34b940=_0x1ab813;this[_0x34b940(0x150)](this[_0x34b940(0x3ac)]['socket$'][_0x34b940(0x37e)](_0x1e1b65=>{const _0x3ac16d=_0x34b940;this[_0x3ac16d(0x2a6)]=_0x1e1b65==null?void 0x0:_0x1e1b65[_0x3ac16d(0x2dc)];}));}[_0x1ab813(0x32f)](){const _0x16aaa6=_0x1ab813;let _0x20daa3=_0x1aa076=>{const _0x167623=_0x8a3e;var _0x32d037;this[_0x167623(0x369)](_0x167623(0x159),_0x167623(0x35a)+_0x1aa076['message']+_0x167623(0x2d0)+_0x1aa076[_0x167623(0x251)]+':'+_0x1aa076[_0x167623(0x257)]+':'+_0x1aa076[_0x167623(0x381)]+'\x0a'+(((_0x32d037=_0x1aa076[_0x167623(0x159)])==null?void 0x0:_0x32d037[_0x167623(0x3c5)])||''));};window[_0x16aaa6(0x2da)](_0x16aaa6(0x159),_0x20daa3),this[_0x16aaa6(0x150)](()=>{const _0x25ddc7=_0x16aaa6;window['removeEventListener'](_0x25ddc7(0x159),_0x20daa3);});}[_0x1ab813(0x34e)](){const _0x55a71f=_0x1ab813;let _0x1fba92=_0x289b9e=>{const _0x15a014=_0x8a3e;this[_0x15a014(0x369)](_0x15a014(0x159),'[Unhandled\x20Rejection]:\x20'+_0x289b9e[_0x15a014(0x34b)]);};window[_0x55a71f(0x2da)](_0x55a71f(0x39a),_0x1fba92),this['disposeWithMe'](()=>{const _0x41cf63=_0x55a71f;window[_0x41cf63(0x351)]('unhandledrejection',_0x1fba92);});}['_monkeyPatchLogService'](){const _0x2fafa6=_0x1ab813;let _0x425190=this['_logService'][_0x2fafa6(0x159)][_0x2fafa6(0x38c)](this[_0x2fafa6(0x308)]);this[_0x2fafa6(0x308)][_0x2fafa6(0x159)]=(..._0x29c621)=>{const _0x1f163d=_0x2fafa6;let _0x1a5707=_0x29c621[_0x1f163d(0x15f)](_0x794333=>_0x794333 instanceof Error?_0x794333[_0x1f163d(0x200)]+'\x0a'+_0x794333['stack']:String(_0x794333))[_0x1f163d(0x11d)]('\x20');this[_0x1f163d(0x369)](_0x1f163d(0x159),_0x1f163d(0x356)+_0x1a5707),_0x425190(..._0x29c621);},this['disposeWithMe'](()=>{const _0x1a9d47=_0x2fafa6;this[_0x1a9d47(0x308)][_0x1a9d47(0x159)]=_0x425190;});}[_0x1ab813(0x369)](_0x313ed6,_0x2f035c){const _0x1a5d5c=_0x1ab813;try{let _0x304550={'userId':this[_0x1a5d5c(0x2a6)],'logLabel':_0x313ed6,'content':_0x2f035c};this['_httpService']['post']('/universer-api/frontend/logs',{'body':_0x304550})[_0x1a5d5c(0xf7)](()=>{});}catch{}}};q=S([x(0x0,(0x0,t['Inject'])(t['Injector'])),x(0x1,(0x0,t['Inject'])(m[_0x1ab813(0x345)])),x(0x2,t['ILogService']),x(0x3,(0x0,t[_0x1ab813(0x3b3)])(e[_0x1ab813(0x3dd)]))],q);function Ce({state$:_0x472bc3}){const _0x2a6b0a=_0x1ab813;let _0x37bb74=(0x0,n[_0x2a6b0a(0x400)])(_0x472bc3,null,!0x0);return _0x37bb74?(0x0,c[_0x2a6b0a(0x32e)])(_0x2a6b0a(0x111),{'data-u-comp':_0x2a6b0a(0x20b),'role':'alert','className':_0x2a6b0a(0x3ec),'children':[(0x0,c[_0x2a6b0a(0x1f9)])(o[_0x2a6b0a(0x205)],{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,c[_0x2a6b0a(0x1f9)])(_0x2a6b0a(0x1a5),{'children':_0x37bb74[_0x2a6b0a(0x3b9)]}),(0x0,c[_0x2a6b0a(0x1f9)])(a[_0x2a6b0a(0x358)],{'size':_0x2a6b0a(0x3f9),'variant':_0x2a6b0a(0x217),'onClick':()=>window[_0x2a6b0a(0x29b)][_0x2a6b0a(0x320)](),'children':_0x37bb74[_0x2a6b0a(0x3cc)]})]}):null;}function _0x8a3e(_0x2b4024,_0x24206c){_0x2b4024=_0x2b4024-0xf3;const _0x10b6a0=_0x10b6();let _0x8a3e17=_0x10b6a0[_0x2b4024];return _0x8a3e17;}const we=_0x1ab813(0x10d);let J=class extends t['Disposable']{constructor(_0x31823b,_0xcbe285,_0x52aa13,_0x8d61f5,_0x4c2818,_0x35725b){const _0x5b1595=_0x1ab813;super(),this[_0x5b1595(0x372)]=_0x31823b,this['_messageService']=_0xcbe285,this[_0x5b1595(0xfc)]=_0x52aa13,this['_injector']=_0x8d61f5,this[_0x5b1595(0x1fb)]=_0x35725b,b(this,_0x5b1595(0x1bc),new r['BehaviorSubject'](null)),b(this,_0x5b1595(0x212),new Set()),b(this,_0x5b1595(0x297),new Map()),b(this,_0x5b1595(0x370),new Map()),b(this,_0x5b1595(0x3cf),this[_0x5b1595(0x1bc)]['asObservable']());let _0x30eacb=()=>(0x0,s[_0x5b1595(0x234)])(Ce,{'state$':this['timeoutState$']});this[_0x5b1595(0x150)](_0x4c2818[_0x5b1595(0x379)](n[_0x5b1595(0x140)][_0x5b1595(0x190)],()=>(0x0,n[_0x5b1595(0x20f)])(_0x30eacb,this[_0x5b1595(0x100)]))),this[_0x5b1595(0x150)](this['_snapshotLoadingService']['state$'][_0x5b1595(0x37e)](_0x29e3cf=>{const _0x394013=_0x5b1595;this[_0x394013(0x370)]=_0x29e3cf,_0x29e3cf[_0x394013(0x131)](_0x2df25f=>this[_0x394013(0x192)](_0x2df25f));})),this[_0x5b1595(0x150)](this[_0x5b1595(0x1fb)][_0x5b1595(0x261)][_0x5b1595(0x37e)](()=>{const _0x1872f7=_0x5b1595;this[_0x1872f7(0x370)]['forEach'](_0x531305=>this[_0x1872f7(0x192)](_0x531305));}));}[_0x1ab813(0x38f)](){const _0x51c94c=_0x1ab813;this['_messageIds']['forEach'](_0x20043f=>this[_0x51c94c(0x14a)][_0x51c94c(0x220)](_0x20043f)),this['_messageIds'][_0x51c94c(0x123)](),this[_0x51c94c(0x297)][_0x51c94c(0x131)](({timeoutId:_0x5bbd36})=>clearTimeout(_0x5bbd36)),this[_0x51c94c(0x297)][_0x51c94c(0x123)](),this['_timeoutState$']['complete'](),super[_0x51c94c(0x38f)]();}['_updateMessage'](_0xc07d70){const _0x599dbd=_0x1ab813;let _0x4f71bf=''+we+_0xc07d70['unitId'];if(_0xc07d70[_0x599dbd(0x193)]===l['SnapshotLoadStage'][_0x599dbd(0x27c)]){this['_clearBlockProgressWatch'](_0xc07d70[_0x599dbd(0x355)]),this[_0x599dbd(0x27b)](_0xc07d70[_0x599dbd(0x355)]),this['_messageService'][_0x599dbd(0x220)](_0x4f71bf),this[_0x599dbd(0x212)][_0x599dbd(0x2c2)](_0x4f71bf);return;}if(!this[_0x599dbd(0x201)](_0xc07d70[_0x599dbd(0x355)])){this[_0x599dbd(0x15c)](_0xc07d70[_0x599dbd(0x355)]),this[_0x599dbd(0x27b)](_0xc07d70['unitId']),this[_0x599dbd(0x14a)]['remove'](_0x4f71bf),this['_messageIds'][_0x599dbd(0x2c2)](_0x4f71bf);return;}if(_0xc07d70[_0x599dbd(0x193)]===l[_0x599dbd(0x2f8)][_0x599dbd(0x3ca)]){this['_clearBlockProgressWatch'](_0xc07d70[_0x599dbd(0x355)]),this[_0x599dbd(0x27b)](_0xc07d70[_0x599dbd(0x355)]),this[_0x599dbd(0x14a)][_0x599dbd(0x2a1)]({'id':_0x4f71bf,'type':a[_0x599dbd(0x28f)][_0x599dbd(0x274)],'content':this[_0x599dbd(0xfc)]['t']('collaboration-client-ui.session.connection-failed')}),this[_0x599dbd(0x212)][_0x599dbd(0x2c2)](_0x4f71bf);return;}if(_0xc07d70[_0x599dbd(0x193)]!==l[_0x599dbd(0x2f8)][_0x599dbd(0x1f1)]||_0xc07d70[_0x599dbd(0x333)]<=0xa){this[_0x599dbd(0x15c)](_0xc07d70[_0x599dbd(0x355)]),this[_0x599dbd(0x14a)][_0x599dbd(0x220)](_0x4f71bf),this[_0x599dbd(0x212)][_0x599dbd(0x2c2)](_0x4f71bf);return;}this[_0x599dbd(0x364)](_0xc07d70)||(this['_messageService']['show']({'id':_0x4f71bf,'type':a[_0x599dbd(0x28f)][_0x599dbd(0x375)],'duration':0x1/0x0,'content':this['_localeService']['t'](_0x599dbd(0x1ad))+'\x20'+_0xc07d70['loadedBlocks']+'/'+_0xc07d70[_0x599dbd(0x333)]}),this['_messageIds'][_0x599dbd(0x28d)](_0x4f71bf));}['_watchBlockProgress'](_0x8f095a){const _0x54a008=_0x1ab813;let _0x22c363=this[_0x54a008(0x297)][_0x54a008(0x11b)](_0x8f095a[_0x54a008(0x355)]);if((_0x22c363==null?void 0x0:_0x22c363[_0x54a008(0x2e0)])===_0x8f095a['loadedBlocks'])return _0x22c363['timedOut'];this['_clearBlockProgressWatch'](_0x8f095a[_0x54a008(0x355)]);let _0x5438f6=setTimeout(()=>{const _0x47dc0c=_0x54a008;let _0x459dbe=this[_0x47dc0c(0x297)]['get'](_0x8f095a[_0x47dc0c(0x355)]);if(!_0x459dbe||_0x459dbe[_0x47dc0c(0x2b9)]!==_0x5438f6)return;_0x459dbe[_0x47dc0c(0x3e5)]=!0x0;let _0xad5f7a=''+we+_0x8f095a[_0x47dc0c(0x355)];this['_messageService'][_0x47dc0c(0x220)](_0xad5f7a),this[_0x47dc0c(0x212)][_0x47dc0c(0x2c2)](_0xad5f7a),this['_timeoutState$'][_0x47dc0c(0x184)]({'unitId':_0x8f095a[_0x47dc0c(0x355)],'content':this['_localeService']['t'](_0x47dc0c(0x3b4),String(_0x8f095a['loadedBlocks']),String(_0x8f095a[_0x47dc0c(0x333)])),'refreshLabel':this[_0x47dc0c(0xfc)]['t'](_0x47dc0c(0x13d))});},0xea60);return this['_blockProgressWatches'][_0x54a008(0x204)](_0x8f095a[_0x54a008(0x355)],{'loadedBlocks':_0x8f095a[_0x54a008(0x2e0)],'timedOut':!0x1,'timeoutId':_0x5438f6}),!0x1;}['_clearBlockProgressWatch'](_0x5d895a){const _0x1c8152=_0x1ab813;let _0x5ddeef=this[_0x1c8152(0x297)][_0x1c8152(0x11b)](_0x5d895a);_0x5ddeef&&(clearTimeout(_0x5ddeef[_0x1c8152(0x2b9)]),this[_0x1c8152(0x297)]['delete'](_0x5d895a),this[_0x1c8152(0x27b)](_0x5d895a));}[_0x1ab813(0x27b)](_0x60406){const _0x2645d8=_0x1ab813;var _0xcff41c;((_0xcff41c=this[_0x2645d8(0x1bc)][_0x2645d8(0x20c)])==null?void 0x0:_0xcff41c[_0x2645d8(0x355)])===_0x60406&&this[_0x2645d8(0x1bc)][_0x2645d8(0x184)](null);}[_0x1ab813(0x201)](_0x2f210e){const _0x5a291f=_0x1ab813;let _0x38bf8a=this[_0x5a291f(0x1fb)][_0x5a291f(0x326)](_0x5a291f(0x1ce));return!_0x38bf8a||_0x38bf8a===_0x2f210e;}};J=S([x(0x0,(0x0,t[_0x1ab813(0x3b3)])(l[_0x1ab813(0x124)])),x(0x1,n[_0x1ab813(0x241)]),x(0x2,(0x0,t[_0x1ab813(0x3b3)])(t[_0x1ab813(0x324)])),x(0x3,(0x0,t[_0x1ab813(0x3b3)])(t['Injector'])),x(0x4,n[_0x1ab813(0x23d)]),x(0x5,B)],J);function Te(_0x3acd2e){const _0xc04c39=_0x1ab813;var _0x2181a6,_0x302ebf;let _0x2f42af=(_0x2181a6=_0x3acd2e[_0xc04c39(0x235)])==null?void 0x0:_0x2181a6[_0xc04c39(0x193)],_0x216e48=((_0x302ebf=_0x3acd2e[_0xc04c39(0x235)])==null?void 0x0:_0x302ebf[_0xc04c39(0x277)])||0x0;return _0x2f42af===h[_0xc04c39(0x2ee)][_0xc04c39(0x240)]&&_0x216e48>0x0;}function Ee(_0x38b34b){const _0x1e9724=_0x1ab813;return _0x38b34b[_0x1e9724(0x1da)]===h[_0x1e9724(0x3c3)][_0x1e9724(0x314)];}let Y=class extends t[_0x1ab813(0x29a)]{constructor(_0x5adba1,_0x5132bd,_0x2736e5,_0x250871,_0x5e411c,_0x181220,_0x514cce){const _0x1be2dd=_0x1ab813;super(),this[_0x1be2dd(0x14a)]=_0x5adba1,this[_0x1be2dd(0x3e2)]=_0x5132bd,this[_0x1be2dd(0x30c)]=_0x2736e5,this[_0x1be2dd(0x31f)]=_0x250871,this['_univerInstanceService']=_0x5e411c,this[_0x1be2dd(0x308)]=_0x181220,this[_0x1be2dd(0xfc)]=_0x514cce,b(this,'_pollingInterval',null),b(this,_0x1be2dd(0x2bc),0x0),b(this,_0x1be2dd(0x19c),0x0),b(this,_0x1be2dd(0x343),[]),b(this,_0x1be2dd(0x36d),0x0),this[_0x1be2dd(0xff)]();}['_initCommandInterceptor'](){const _0x7bf5be=_0x1ab813;this['disposeWithMe'](this['_commandService']['beforeCommandExecuted']((_0x25d20c,_0x4fb3b7)=>{const _0x53bcc2=_0x8a3e;if(_0x25d20c['id']!==h[_0x53bcc2(0x368)]['id'])return;let _0x1ef884=_0x25d20c['params'];if(this[_0x53bcc2(0x2cf)](_0x1ef884[_0x53bcc2(0x20a)]??[])&&!this[_0x53bcc2(0x22e)]())throw this[_0x53bcc2(0x392)](_0x25d20c,_0x4fb3b7),this[_0x53bcc2(0x2dd)](),new t[(_0x53bcc2(0x29e))]();})),this[_0x7bf5be(0x150)](this[_0x7bf5be(0x3e2)][_0x7bf5be(0x346)]((_0x238939,_0x4e22f9)=>{const _0x65c8a0=_0x7bf5be;if(_0x238939['id']!==h['SetFormulaCalculationNotificationMutation']['id'])return;let _0x8dd4c3=_0x238939[_0x65c8a0(0x3c9)];if(Te(_0x8dd4c3)){let _0x4f5632=(0x0,t[_0x65c8a0(0x1b3)])();this['_taskIds']['push'](_0x4f5632),this['_startCalculationLimit'](_0x4f5632);}else{if(Ee(_0x8dd4c3)&&this[_0x65c8a0(0x343)][_0x65c8a0(0x3e4)]>0x0){let _0x1fefc1=this['_taskIds'][_0x65c8a0(0x318)]();this['_releaseCalculationLimit'](_0x1fefc1);}}}));}[_0x1ab813(0x38f)](){const _0x37e311=_0x1ab813;super[_0x37e311(0x38f)](),this['_clearPolling'](),this['_taskIds']=[],this[_0x37e311(0x19c)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x1ab813(0x392)](_0x546aa5,_0x8b5f71){const _0x413d7c=_0x1ab813;for(let _0x460594=0x0;_0x460594<0x1e;_0x460594++)try{if(await this[_0x413d7c(0x2b1)](),this[_0x413d7c(0x22e)]()){this[_0x413d7c(0x34c)](_0x546aa5,_0x8b5f71),this['_messageService']['show']({'content':this['_localeService']['t']('collaboration-client-ui.formula.calculation.started'),'type':a['MessageType'][_0x413d7c(0x195)]});return;}await new Promise(_0x44b6c0=>{const _0x103815=_0x413d7c;this['_pollingInterval']=window[_0x103815(0xfd)](_0x44b6c0,0x3e8);});}catch(_0x14b5ad){this['_logService'][_0x413d7c(0x159)](_0x14b5ad);}this[_0x413d7c(0x14a)][_0x413d7c(0x2a1)]({'content':this['_localeService']['t']('collaboration-client-ui.formula.calculation.unable'),'type':a[_0x413d7c(0x28f)][_0x413d7c(0x274)]});}[_0x1ab813(0x34c)](_0x5a8081,_0x34c6c4){const _0x5dc0a3=_0x1ab813;try{this[_0x5dc0a3(0x3e2)][_0x5dc0a3(0x377)](_0x5a8081['id'],_0x5a8081[_0x5dc0a3(0x3c9)],_0x34c6c4);}catch(_0x12144d){this[_0x5dc0a3(0x308)]['error'](_0x12144d);}}[_0x1ab813(0x2df)](_0x1c0d92,_0x143ce0){const _0x5ccb4d=_0x1ab813;_0x143ce0<this['_lastResponseTimestamp']||(this[_0x5ccb4d(0x36d)]=_0x143ce0,this[_0x5ccb4d(0x2bc)]=Number[_0x5ccb4d(0x3ef)](_0x1c0d92[_0x5ccb4d(0x2d1)]),this['_currentUsage']=Number['parseInt'](_0x1c0d92[_0x5ccb4d(0x397)]));}async[_0x1ab813(0x289)](_0x584460){const _0x2eb1b5=_0x1ab813;let _0x13c81b=Date[_0x2eb1b5(0x1c6)]();try{var _0xa57260,_0x1427d3;let _0x250019=((_0xa57260=this['_configService'][_0x2eb1b5(0x183)](e[_0x2eb1b5(0x23b)]))==null?void 0x0:_0xa57260[_0x2eb1b5(0x36e)])||'/universer-api/license/formula/limit/start',_0x280424=(await this[_0x2eb1b5(0x31f)][_0x2eb1b5(0x3f3)](_0x250019,{'body':JSON['stringify']({'taskId':_0x584460})}))['body'];if(((_0x1427d3=_0x280424[_0x2eb1b5(0x159)])==null?void 0x0:_0x1427d3[_0x2eb1b5(0x175)])!==v['ErrorCode']['OK'])return;this[_0x2eb1b5(0x2df)](_0x280424['limitInfo'],_0x13c81b);}catch(_0x315197){this[_0x2eb1b5(0x308)]['error'](_0x315197);}}async[_0x1ab813(0x2b1)](_0x4a4269){const _0x3115ef=_0x1ab813;let _0x1f9379=Date[_0x3115ef(0x1c6)]();try{var _0xab614c,_0x372a05;let _0x2aba02=((_0xab614c=this[_0x3115ef(0x30c)][_0x3115ef(0x183)](e[_0x3115ef(0x23b)]))==null?void 0x0:_0xab614c[_0x3115ef(0x1dd)])||_0x3115ef(0x292),_0x2a9112=_0x4a4269?_0x2aba02+_0x3115ef(0x1ac)+encodeURIComponent(_0x4a4269):_0x2aba02,_0x27b895=(await this[_0x3115ef(0x31f)][_0x3115ef(0x11b)](_0x2a9112))[_0x3115ef(0x260)];if(((_0x372a05=_0x27b895['error'])==null?void 0x0:_0x372a05[_0x3115ef(0x175)])!==v[_0x3115ef(0x239)]['OK'])return;this[_0x3115ef(0x2df)](_0x27b895[_0x3115ef(0x393)],_0x1f9379);}catch(_0x4d0952){this[_0x3115ef(0x308)][_0x3115ef(0x159)](_0x4d0952);}}async[_0x1ab813(0x2ef)](_0x4c6f04){const _0x16859a=_0x1ab813;let _0x43bc47=Date[_0x16859a(0x1c6)]();try{var _0x34ae60,_0x1ea3f0;let _0xb9aa1a=((_0x34ae60=this[_0x16859a(0x30c)]['getConfig'](e[_0x16859a(0x23b)]))==null?void 0x0:_0x34ae60[_0x16859a(0x408)])||_0x16859a(0x1af),_0x20b0e2=(await this['_httpService'][_0x16859a(0x3f3)](_0xb9aa1a,{'body':JSON[_0x16859a(0x402)]({'taskId':_0x4c6f04})}))[_0x16859a(0x260)];if(((_0x1ea3f0=_0x20b0e2[_0x16859a(0x159)])==null?void 0x0:_0x1ea3f0[_0x16859a(0x175)])!==v[_0x16859a(0x239)]['OK'])return;this[_0x16859a(0x2df)](_0x20b0e2[_0x16859a(0x393)],_0x43bc47);}catch(_0x18b33d){this[_0x16859a(0x308)][_0x16859a(0x159)](_0x18b33d);}}[_0x1ab813(0x22e)](){const _0xf41a50=_0x1ab813;return this[_0xf41a50(0x2bc)]===0x0||this['_maxFormulaLimit']-this[_0xf41a50(0x19c)]>0x0;}[_0x1ab813(0x24a)](){const _0x59199f=_0x1ab813;this[_0x59199f(0x171)]&&=(clearTimeout(this[_0x59199f(0x171)]),null);}[_0x1ab813(0x2dd)](){const _0x49d437=_0x1ab813;this[_0x49d437(0x14a)][_0x49d437(0x2a1)]({'content':this[_0x49d437(0xfc)]['t'](_0x49d437(0x101)),'type':a[_0x49d437(0x28f)]['Loading']});}['_hasFormulaInDirtyRanges'](_0x3a1516){const _0x54de69=_0x1ab813;for(let _0x2231e9 of _0x3a1516){let {unitId:_0x308571,sheetId:_0xeb7fe1,range:_0x472f80}=_0x2231e9,_0x5cd57b=this[_0x54de69(0x37b)][_0x54de69(0x127)](_0x308571,t[_0x54de69(0x1a1)][_0x54de69(0x33c)]);if(!_0x5cd57b)continue;let _0x1b3793=_0x5cd57b[_0x54de69(0x33e)](_0xeb7fe1);if(!_0x1b3793)continue;let _0x47406f=_0x1b3793[_0x54de69(0x3ed)]();for(let _0x188cd3=_0x472f80['startRow'];_0x188cd3<=_0x472f80[_0x54de69(0x232)];_0x188cd3++)for(let _0x1c4652=_0x472f80['startColumn'];_0x1c4652<=_0x472f80[_0x54de69(0x1a6)];_0x1c4652++){let _0x16b630=_0x47406f[_0x54de69(0x1b5)](_0x188cd3,_0x1c4652);if(_0x16b630&&((0x0,t[_0x54de69(0x1c0)])(_0x16b630['f'])||(0x0,t[_0x54de69(0x305)])(_0x16b630['si'])))return!0x0;}}return!0x1;}};Y=S([x(0x0,(0x0,t[_0x1ab813(0x3b3)])(n[_0x1ab813(0x241)])),x(0x1,t['ICommandService']),x(0x2,t['IConfigService']),x(0x3,(0x0,t[_0x1ab813(0x3b3)])(m[_0x1ab813(0x345)])),x(0x4,t[_0x1ab813(0x310)]),x(0x5,t[_0x1ab813(0x12d)]),x(0x6,(0x0,t[_0x1ab813(0x3b3)])(t['LocaleService']))],Y);let X=class extends t[_0x1ab813(0x29a)]{constructor(_0x3ecf02,_0x5d4dda,_0x3ade94){const _0x2f3c56=_0x1ab813;super(),this[_0x2f3c56(0x30c)]=_0x3ecf02,this[_0x2f3c56(0x29f)]=_0x5d4dda,this[_0x2f3c56(0x161)]=_0x3ade94,b(this,_0x2f3c56(0xf5),new Map()),b(this,_0x2f3c56(0x244),new Map()),b(this,'_disabled',!0x1);}['disableLocalCache'](){const _0x35e2ef=_0x1ab813;this[_0x35e2ef(0x1a8)]=!0x0;}[_0x1ab813(0x19e)](){const _0xfc8a3a=_0x1ab813;this[_0xfc8a3a(0x1a8)]=!0x1;}get[_0x1ab813(0x13c)](){const _0x650f7e=_0x1ab813;return this[_0x650f7e(0x244)];}[_0x1ab813(0x38f)](){const _0x2b21e5=_0x1ab813;this[_0x2b21e5(0x142)]()[_0x2b21e5(0x1e3)](()=>super[_0x2b21e5(0x38f)]());}async[_0x1ab813(0x1e0)](_0x296c58){const _0x375baf=_0x1ab813;return this[_0x375baf(0x1a8)]?null:this[_0x375baf(0x29f)][_0x375baf(0x31b)]((0x0,e[_0x375baf(0x3e6)])(_0x296c58));}async['saveOfflineData'](_0x14fe5a,_0x27760c){const _0x3f635a=_0x1ab813;return!!this[_0x3f635a(0x29f)][_0x3f635a(0x307)]((0x0,e[_0x3f635a(0x3e6)])(_0x14fe5a),_0x27760c);}async['backupOfflineData'](_0x16b374,_0x260daf){const _0x4e5a26=_0x1ab813;let _0x25ee1b=this[_0x4e5a26(0xf5)]['get'](_0x16b374)??await this[_0x4e5a26(0x29f)][_0x4e5a26(0x31b)]((0x0,e['getLocalCacheKey'])(_0x16b374));if(!_0x25ee1b)return;let _0x2a7075=Date[_0x4e5a26(0x1c6)](),_0x3b89b5=new Date(_0x2a7075)[_0x4e5a26(0x185)]();await this[_0x4e5a26(0x29f)][_0x4e5a26(0x307)]((0x0,e[_0x4e5a26(0x3e6)])(_0x16b374)+_0x4e5a26(0x27a)+_0x2a7075,{'reason':_0x260daf,'createdAt':_0x3b89b5,'data':_0x25ee1b});}[_0x1ab813(0x191)](_0x3868db,_0x481a20,_0x2141f6,_0x4f146b){const _0xc98eb8=_0x1ab813;let _0x5edcea=this['_revisionService'][_0xc98eb8(0x2c0)](_0x3868db);this['_cachedData'][_0xc98eb8(0x204)](_0x3868db,{'unitID':_0x3868db,'type':_0x481a20,'awaitingChangeset':_0x2141f6,'mutations':_0x4f146b,'rev':_0x5edcea}),this[_0xc98eb8(0x244)][_0xc98eb8(0x3fb)](_0x3868db)||this[_0xc98eb8(0x2ad)](_0x3868db);}[_0x1ab813(0x2ad)](_0x1d7562){const _0x2b324c=_0x1ab813;let _0x2a603a=this[_0x2b324c(0x284)]();_0x2a603a===0x0?this[_0x2b324c(0x1a0)](_0x1d7562):this[_0x2b324c(0x244)]['set'](_0x1d7562,window[_0x2b324c(0xfd)](()=>this[_0x2b324c(0x1a0)](_0x1d7562),_0x2a603a));}[_0x1ab813(0x284)](){const _0x3c2c6f=_0x1ab813;return this[_0x3c2c6f(0x30c)][_0x3c2c6f(0x183)](e[_0x3c2c6f(0x1b9)])??e['LOCAL_CACHE_INTERVAL'];}[_0x1ab813(0x1a0)](_0x4e01ad){const _0x404e30=_0x1ab813;let _0x4bff75=this[_0x404e30(0x244)][_0x404e30(0x11b)](_0x4e01ad);return _0x4bff75!==void 0x0&&window['clearTimeout'](_0x4bff75),this[_0x404e30(0x29f)][_0x404e30(0x307)]((0x0,e['getLocalCacheKey'])(_0x4e01ad),this['_cachedData']['get'](_0x4e01ad))[_0x404e30(0x1e3)](()=>this[_0x404e30(0x244)][_0x404e30(0x2c2)](_0x4e01ad));}async['exhaustSavingTask'](){const _0x509024=_0x1ab813;let _0x172073=[];this[_0x509024(0x244)][_0x509024(0x131)]((_0x3cd408,_0x40cace)=>{const _0x556346=_0x509024;window['clearTimeout'](_0x3cd408),_0x172073[_0x556346(0x2fc)](this[_0x556346(0x1a0)](_0x40cace)[_0x556346(0x1e3)](()=>{const _0x1b00d9=_0x556346;this['_saveTaskMap'][_0x1b00d9(0x2c2)](_0x40cace);}));}),await Promise['all'](_0x172073);}};X=S([x(0x0,t[_0x1ab813(0x1ef)]),x(0x1,t['ILocalStorageService']),x(0x2,(0x0,t['Inject'])(l['RevisionService']))],X);var De=class extends t[_0x1ab813(0x303)]{constructor(){const _0x595567=_0x1ab813;super(),b(this,'urlChange$',void 0x0),this['urlChange$']=(0x0,r[_0x595567(0x2f9)])(window,_0x595567(0xfa))[_0x595567(0x32b)]((0x0,r[_0x595567(0x138)])(this['dispose$']),(0x0,r[_0x595567(0x1a7)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x595567(0x342)])(void 0x0));}[_0x1ab813(0x3d7)](_0x5ac225,_0xbf571e,_0x5ba8eb=!0x1){const _0x52161a=_0x1ab813;let _0x1b8b1d=new URL(window[_0x52161a(0x29b)]['href']);_0x1b8b1d[_0x52161a(0x17e)]['set'](_0x5ac225,_0xbf571e),_0x5ba8eb?window[_0x52161a(0x168)][_0x52161a(0x344)]('','',_0x1b8b1d[_0x52161a(0x1ed)]()):window[_0x52161a(0x168)][_0x52161a(0x1f7)]('','',_0x1b8b1d['toString']());}[_0x1ab813(0x25b)](_0x4adcb4,_0x3804da=!0x1){const _0x200d46=_0x1ab813;let _0x56e602=new URL(window[_0x200d46(0x29b)][_0x200d46(0x2f2)]);_0x56e602[_0x200d46(0x17e)][_0x200d46(0x2c2)](_0x4adcb4),_0x3804da?window[_0x200d46(0x168)]['replaceState']('','',_0x56e602['toString']()):window[_0x200d46(0x168)][_0x200d46(0x1f7)]('','',_0x56e602[_0x200d46(0x1ed)]());}[_0x1ab813(0x326)](_0x2a8ae6){const _0x5a8c8a=_0x1ab813;return new URL(window[_0x5a8c8a(0x29b)][_0x5a8c8a(0x2f2)])[_0x5a8c8a(0x17e)][_0x5a8c8a(0x11b)](_0x2a8ae6)??void 0x0;}};let Z=class extends t[_0x1ab813(0x30f)]{constructor(_0x485748=ce,_0x57a7c9,_0xb7c24f,_0x222bb9,_0x3781ab){const _0x343891=_0x1ab813;super(),this[_0x343891(0x177)]=_0x485748,this[_0x343891(0x3ad)]=_0x57a7c9,this['_injector']=_0xb7c24f,this[_0x343891(0x30c)]=_0x222bb9,this[_0x343891(0x3e2)]=_0x3781ab;let {..._0x185218}=(0x0,t[_0x343891(0x250)])({},ce,this[_0x343891(0x177)]);this[_0x343891(0x30c)][_0x343891(0x2e8)](_0x343891(0x2bb),_0x185218);}[_0x1ab813(0x119)](){const _0x20851c=_0x1ab813;this[_0x20851c(0x312)](),this[_0x20851c(0x150)](this[_0x20851c(0x3e2)][_0x20851c(0x273)](w)),this['_initDependencies']();}[_0x1ab813(0x3df)](){const _0x39eca0=_0x1ab813;this[_0x39eca0(0x17c)]();}[_0x1ab813(0x312)](){const _0x5db941=_0x1ab813;var _0x2e5ae3;let _0x3c0429=[[E],[Y],[B,{'useClass':De}],[m[_0x5db941(0x35d)],{'useClass':m[_0x5db941(0x24d)]}],[e[_0x5db941(0x1d9)],{'useClass':X}],[C],[z],[A],[R],[V],[J]];this[_0x5db941(0x177)][_0x5db941(0x2e1)]!==!0x1&&_0x3c0429['push']([W],[H],[U],[D],[K],[T]),this[_0x5db941(0x177)][_0x5db941(0x104)]&&_0x3c0429[_0x5db941(0x2fc)]([q]),(0x0,t[_0x5db941(0x36c)])(this['_injector'],(0x0,t[_0x5db941(0x276)])(_0x3c0429,(_0x2e5ae3=this['_config'])==null?void 0x0:_0x2e5ae3[_0x5db941(0x3a6)]));}[_0x1ab813(0x17c)](){const _0xe52d1e=_0x1ab813;this[_0xe52d1e(0x177)][_0xe52d1e(0x2e1)]!==!0x1&&this[_0xe52d1e(0x150)](this[_0xe52d1e(0x3ad)][_0xe52d1e(0x266)](t[_0xe52d1e(0x1a1)][_0xe52d1e(0x23e)],[P])),this['disposeWithMe'](this[_0xe52d1e(0x3ad)][_0xe52d1e(0x266)](t[_0xe52d1e(0x1a1)][_0xe52d1e(0x33c)],[F]));}['_initDependencies'](){const _0x3054d8=_0x1ab813;(0x0,t[_0x3054d8(0x34d)])(this[_0x3054d8(0x100)],[[A],[R],[C],[z],[V],[Y],[J]]),this[_0x3054d8(0x177)][_0x3054d8(0x2e1)]!==!0x1&&(0x0,t[_0x3054d8(0x34d)])(this[_0x3054d8(0x100)],[[K],[T]]),this[_0x3054d8(0x177)][_0x3054d8(0x104)]&&(0x0,t['touchDependencies'])(this[_0x3054d8(0x100)],[[q]]);}};b(Z,_0x1ab813(0x1f3),_0x1ab813(0x36b)),b(Z,'packageName',oe),b(Z,_0x1ab813(0x3b6),se),Z=S([(0x0,t[_0x1ab813(0x222)])(u['UniverLicensePlugin'],d[_0x1ab813(0x1f0)],p[_0x1ab813(0x154)],m[_0x1ab813(0x390)],l['UniverCollaborationPlugin'],f[_0x1ab813(0x264)],e[_0x1ab813(0x29d)]),x(0x1,p[_0x1ab813(0x112)]),x(0x2,(0x0,t['Inject'])(t[_0x1ab813(0x16e)])),x(0x3,t[_0x1ab813(0x1ef)]),x(0x4,t[_0x1ab813(0x378)])],Z);let Q=class extends e[_0x1ab813(0x15d)]{constructor(_0x2bfb4c,_0x138d28,_0x2ddc26,_0x3b7d8e,_0x560845){super(_0x2bfb4c,_0x138d28,_0x2ddc26,_0x3b7d8e,_0x560845);}async[_0x1ab813(0x19b)](_0x4adc4d){const _0x13d00d=_0x1ab813;let _0x15a900=await this[_0x13d00d(0x395)](),_0x3417d5=this['_createSocketURL'](_0x4adc4d,_0x15a900);return this[_0x13d00d(0x2eb)](_0x3417d5);}[_0x1ab813(0x31e)](_0x20ad6e,_0x3a1831){const _0x21fc72=_0x1ab813;let _0x46e4d5=typeof window>'u'?new URL(_0x20ad6e):new URL(_0x20ad6e,window[_0x21fc72(0x29b)][_0x21fc72(0x148)]);_0x46e4d5[_0x21fc72(0x17e)][_0x21fc72(0x204)](_0x21fc72(0x3be),_0x3a1831);let _0x2158e2=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x21fc72(0x29b)][_0x21fc72(0x1be)]);return _0x2158e2[_0x21fc72(0x11b)]('runId')&&_0x46e4d5[_0x21fc72(0x17e)][_0x21fc72(0x204)]('runId',_0x2158e2[_0x21fc72(0x11b)]('runId')),_0x46e4d5[_0x21fc72(0x1ed)]();}async[_0x1ab813(0x395)](){const _0x54789b=_0x1ab813;var _0xf201cb;let _0x3deb42=this[_0x54789b(0x30c)]['getConfig'](e[_0x54789b(0x23b)]),_0x414ded=(_0x3deb42==null?void 0x0:_0x3deb42[_0x54789b(0x28a)])??e[_0x54789b(0x3a4)];return((_0xf201cb=(await this['_httpService'][_0x54789b(0x11b)](_0x414ded,{'headers':{'Content-Type':_0x54789b(0x26c)}}))[_0x54789b(0x260)])==null?void 0x0:_0xf201cb['ticket'])??'';}};Q=S([x(0x0,(0x0,t[_0x1ab813(0x3b3)])(t['Injector'])),x(0x1,(0x0,t[_0x1ab813(0x3b3)])(m[_0x1ab813(0x345)])),x(0x2,t['IConfigService']),x(0x3,t['ILogService']),x(0x4,l[_0x1ab813(0x218)])],Q);let $=class extends t[_0x1ab813(0x29a)]{constructor(_0x1a97eb,_0x2581b8,_0x2a7592){const _0x23ff6f=_0x1ab813;super(),this[_0x23ff6f(0x2ca)]=_0x1a97eb,this[_0x23ff6f(0x31f)]=_0x2581b8,this[_0x23ff6f(0x30c)]=_0x2a7592;}async[_0x1ab813(0x331)](_0x7359f1,_0x1ae3d5,_0x46a630,..._0x2880a5){const _0x4f18b2=_0x1ab813;let _0x393572=this[_0x4f18b2(0x2ca)][_0x4f18b2(0x2d6)]();if(!_0x393572)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x116dae=(this['_configService'][_0x4f18b2(0x183)](e['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY'])??e[_0x4f18b2(0x3e0)])+'/'+_0x7359f1+_0x4f18b2(0x334)+_0x1ae3d5,_0x46ceca={'scriptId':_0x7359f1,'runId':new URL(window['location'][_0x4f18b2(0x2f2)])[_0x4f18b2(0x17e)][_0x4f18b2(0x11b)](_0x4f18b2(0x3c2))??'','function':_0x1ae3d5,'unitId':_0x393572['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x2880a5),'invokeId':_0x46a630['invokeId']??'','executionId':_0x46a630[_0x4f18b2(0x164)]??''};try{let _0x2bc990=await this['_httpService']['post'](_0x116dae,{'body':_0x46ceca});return _0x2bc990[_0x4f18b2(0x260)][_0x4f18b2(0x159)]&&_0x2bc990[_0x4f18b2(0x260)]['error'][_0x4f18b2(0x175)]!==v[_0x4f18b2(0x239)]['OK']?_0x4f18b2(0x187):_0x2bc990['body'][_0x4f18b2(0x135)];}catch{return _0x4f18b2(0x187);}}};$=S([x(0x0,t[_0x1ab813(0x310)]),x(0x1,(0x0,t[_0x1ab813(0x3b3)])(m['HTTPService'])),x(0x2,t['IConfigService'])],$);const Oe=0x7530,ke=_0x1ab813(0x197);var Ae=class extends t['Disposable']{constructor(){const _0x1ad573=_0x1ab813;super(),b(this,_0x1ad573(0x1f2),(0x0,t[_0x1ad573(0x1b3)])()),b(this,_0x1ad573(0x21e),new Set()),b(this,_0x1ad573(0x145),new Map()),b(this,_0x1ad573(0x283),null),b(this,_0x1ad573(0x25a),new Map()),b(this,'_unitStatus',new Map()),this[_0x1ad573(0x2d9)]();}[_0x1ab813(0x38f)](){const _0xb502c9=_0x1ab813;super[_0xb502c9(0x38f)](),this[_0xb502c9(0x25a)][_0xb502c9(0x131)]((_0x4c2a26,_0x4e73ec)=>this[_0xb502c9(0x281)](_0x4e73ec)),this['_heartbeatTimer']&&window[_0xb502c9(0x28e)](this['_heartbeatTimer']);}[_0x1ab813(0x2ba)](_0x487e33){const _0x489804=_0x1ab813;return this['_ensureSubject'](_0x487e33)[_0x489804(0x32b)]((0x0,r[_0x489804(0x35c)])());}['editingUnit'](_0x4614f9){const _0x4cb6dd=_0x1ab813;this[_0x4cb6dd(0x21e)][_0x4cb6dd(0x1e9)]===0x0&&this['_scheduleHeartbeat'](),this[_0x4cb6dd(0x21e)][_0x4cb6dd(0x28d)](_0x4614f9),this[_0x4cb6dd(0x23a)]({'type':0x0,'memberID':this[_0x4cb6dd(0x1f2)],'unitIDs':[_0x4614f9],'isForwarded':!0x1});}[_0x1ab813(0x2c9)](_0x550e09){const _0x103194=_0x1ab813;this[_0x103194(0x21e)][_0x103194(0x2c2)](_0x550e09),this['_selfUnitIDs'][_0x103194(0x1e9)]===0x0&&this[_0x103194(0x283)]&&window[_0x103194(0x28e)](this['_heartbeatTimer']);}['_init'](){const _0x2ab5f7=_0x1ab813;this[_0x2ab5f7(0x150)]((0x0,t[_0x2ab5f7(0x2fb)])((0x0,r['fromEvent'])(window,'storage')[_0x2ab5f7(0x37e)](_0x522c6f=>{const _0x305e39=_0x2ab5f7;if(_0x522c6f[_0x305e39(0x13f)]!==ke||!_0x522c6f[_0x305e39(0x21b)])return;let _0x4783d5=JSON[_0x305e39(0x1b6)](_0x522c6f[_0x305e39(0x21b)]);this[_0x305e39(0x2c8)](_0x4783d5);}))),window[_0x2ab5f7(0x2da)](_0x2ab5f7(0x1bf),()=>this[_0x2ab5f7(0x23a)]({'type':0x1,'memberID':this[_0x2ab5f7(0x1f2)],'unitIDs':Array[_0x2ab5f7(0x1ab)](this[_0x2ab5f7(0x21e)])}));}[_0x1ab813(0x2c8)](_0x3a48d5){const _0x8cf16a=_0x1ab813;switch(_0x3a48d5['type']){case 0x0:this[_0x8cf16a(0x373)](_0x3a48d5);break;case 0x1:this[_0x8cf16a(0x398)](_0x3a48d5);break;case 0x2:this[_0x8cf16a(0x407)](_0x3a48d5);break;}}[_0x1ab813(0x373)](_0x25fc2e){const _0x435eee=_0x1ab813;let {unitIDs:_0x514149,memberID:_0x6f0f2f,isForwarded:_0x1d1206}=_0x25fc2e;_0x514149[_0x435eee(0x131)](_0x4299c2=>{const _0x3146bb=_0x435eee;if(!_0x1d1206&&this[_0x3146bb(0x145)][_0x3146bb(0x3fb)](_0x4299c2)&&this[_0x3146bb(0x39c)](_0x4299c2)[_0x3146bb(0x184)](e[_0x3146bb(0x16d)][_0x3146bb(0x3e1)]),!this[_0x3146bb(0x145)]['has'](_0x4299c2)||!this['_unitOnClients'][_0x3146bb(0x11b)](_0x4299c2)[_0x3146bb(0x3fb)](_0x6f0f2f)){let _0x4203c7=this['_unitOnClients']['get'](_0x4299c2)||new Set();_0x4203c7['add'](_0x6f0f2f),this[_0x3146bb(0x145)][_0x3146bb(0x204)](_0x4299c2,_0x4203c7),this[_0x3146bb(0x37c)](_0x6f0f2f);}}),_0x1d1206||this[_0x435eee(0x23a)]({'type':0x0,'memberID':this[_0x435eee(0x1f2)],'unitIDs':[...this[_0x435eee(0x21e)]],'isForwarded':!0x0});}[_0x1ab813(0x37c)](_0x1a378c){const _0x1e5205=_0x1ab813;this[_0x1e5205(0x281)](_0x1a378c);let _0xb0547=window[_0x1e5205(0xfd)](()=>{const _0x26e22a=_0x1e5205;this[_0x26e22a(0x145)][_0x26e22a(0x131)](_0x4baa21=>{const _0x323eac=_0x26e22a;_0x4baa21[_0x323eac(0x2c2)](_0x1a378c);});},Oe*0x2);this['_clearOtherTimers'][_0x1e5205(0x204)](_0x1a378c,_0xb0547);}['_removeClearOtherTimer'](_0x538647){const _0x303171=_0x1ab813;if(this[_0x303171(0x25a)][_0x303171(0x3fb)](_0x538647)){let _0xb1be65=this[_0x303171(0x25a)][_0x303171(0x11b)](_0x538647);_0xb1be65&&window[_0x303171(0x19d)](_0xb1be65),this[_0x303171(0x25a)][_0x303171(0x204)](_0x538647,null);}}[_0x1ab813(0x398)](_0x174838){const _0x5e09cb=_0x1ab813;let {memberID:_0xf6861,unitIDs:_0x2e1d16}=_0x174838;_0x2e1d16[_0x5e09cb(0x131)](_0xa42f31=>{const _0x1cdf96=_0x5e09cb;var _0xe11e1;let _0x5eb05a=this['_unitOnClients']['get'](_0xa42f31);_0x5eb05a&&(_0x5eb05a[_0x1cdf96(0x2c2)](_0xf6861),(_0xe11e1=this[_0x1cdf96(0x39c)](_0xa42f31))==null||_0xe11e1['next'](_0x5eb05a[_0x1cdf96(0x1e9)]===0x0?e[_0x1cdf96(0x16d)]['NO_OTHER_CLIENTS_EDITING']:e[_0x1cdf96(0x16d)][_0x1cdf96(0x3e1)]));}),this[_0x5e09cb(0x281)](_0xf6861);}[_0x1ab813(0x407)](_0x3c4c35){const _0x5e305f=_0x1ab813;this[_0x5e305f(0x37c)](_0x3c4c35[_0x5e305f(0x2dc)]);}['_send'](_0x3a3cd3){const _0x1192bb=_0x1ab813;localStorage[_0x1192bb(0x307)](ke,JSON['stringify'](_0x3a3cd3));}['_scheduleHeartbeat'](){const _0x1fb3f8=_0x1ab813;this[_0x1fb3f8(0x283)]=window[_0x1fb3f8(0x3ce)](()=>{const _0x5599c1=_0x1fb3f8;this[_0x5599c1(0x23a)]({'type':0x2,'memberID':this[_0x5599c1(0x1f2)]});},Oe);}[_0x1ab813(0x39c)](_0x5772a2){const _0x267302=_0x1ab813;return this[_0x267302(0x114)][_0x267302(0x3fb)](_0x5772a2)||this[_0x267302(0x114)][_0x267302(0x204)](_0x5772a2,new r[(_0x267302(0x371))](e[_0x267302(0x16d)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x267302(0x11b)](_0x5772a2);}};Object['defineProperty'](exports,_0x1ab813(0x1cf),{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0x1ab813(0x23f)](exports,_0x1ab813(0x353),{'enumerable':!0x0,'get':function(){return C;}}),exports[_0x1ab813(0x16a)]=B,Object[_0x1ab813(0x23f)](exports,_0x1ab813(0x202),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x1ab813(0x31a)]=ge,Object[_0x1ab813(0x23f)](exports,_0x1ab813(0x253),{'enumerable':!0x0,'get':function(){return Z;}}),exports[_0x1ab813(0x391)]=Ae;
1
+ const _0x31b914=_0x432a;(function(_0x3a2f13,_0x411182){const _0x5c72e0=_0x432a,_0x39e5a5=_0x3a2f13();while(!![]){try{const _0x239c14=-parseInt(_0x5c72e0(0x29f))/0x1*(parseInt(_0x5c72e0(0x1ab))/0x2)+parseInt(_0x5c72e0(0x219))/0x3+parseInt(_0x5c72e0(0x376))/0x4*(-parseInt(_0x5c72e0(0x111))/0x5)+-parseInt(_0x5c72e0(0x16e))/0x6*(parseInt(_0x5c72e0(0x293))/0x7)+parseInt(_0x5c72e0(0x29a))/0x8+-parseInt(_0x5c72e0(0x164))/0x9+parseInt(_0x5c72e0(0x182))/0xa;if(_0x239c14===_0x411182)break;else _0x39e5a5['push'](_0x39e5a5['shift']());}catch(_0x147ff5){_0x39e5a5['push'](_0x39e5a5['shift']());}}}(_0x2abb,0x95e03),Object['defineProperty'](exports,Symbol[_0x31b914(0x2f3)],{'value':'Module'}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/ui'),r=require('rxjs'),i=require('rxjs/operators'),a=require('@univerjs/design'),o=require('@univerjs/icons'),s=require('react'),c=require('react/jsx-runtime'),l=require('@univerjs-pro/collaboration'),u=require('@univerjs-pro/license'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('@univerjs/engine-render'),m=require('@univerjs/network'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs/sheets-ui'),v=require('@univerjs/protocol');function ee(_0x18b95b){const _0x3abc40=_0x31b914;switch(_0x18b95b){case e[_0x3abc40(0x2f9)][_0x3abc40(0x1aa)]:return{'icon':(0x0,c[_0x3abc40(0x311)])(o[_0x3abc40(0x188)],{}),'colorClass':_0x3abc40(0x1ed),'i18nKey':_0x3abc40(0x254),'tooltipKey':_0x3abc40(0x1ac),'clickable':!0x0,'indicator':_0x3abc40(0x249)};case e[_0x3abc40(0x2f9)][_0x3abc40(0x2aa)]:return{'icon':(0x0,c[_0x3abc40(0x311)])(o[_0x3abc40(0x188)],{}),'colorClass':_0x3abc40(0x2d8),'i18nKey':_0x3abc40(0x1f5),'clickable':!0x1,'indicator':_0x3abc40(0x249)};case e['CollaborationStatus'][_0x3abc40(0x33b)]:return{'icon':(0x0,c[_0x3abc40(0x311)])(o['LoadingMultiIcon'],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x3abc40(0x212),'clickable':!0x1,'indicator':'spin'};case e[_0x3abc40(0x2f9)][_0x3abc40(0x367)]:return{'icon':(0x0,c[_0x3abc40(0x311)])(o[_0x3abc40(0x3a9)],{}),'colorClass':_0x3abc40(0x2a6),'i18nKey':_0x3abc40(0x113),'clickable':!0x1,'indicator':_0x3abc40(0x249)};case e[_0x3abc40(0x2f9)][_0x3abc40(0x1d7)]:case e[_0x3abc40(0x2f9)]['AWAITING_WITH_PENDING']:return{'icon':(0x0,c[_0x3abc40(0x311)])(o['LoadingMultiIcon'],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x3abc40(0x24a),'clickable':!0x1,'indicator':'spin'};case e['CollaborationStatus']['PENDING']:return{'icon':(0x0,c[_0x3abc40(0x311)])(o[_0x3abc40(0x38c)],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x3abc40(0x3f3)};case e[_0x3abc40(0x2f9)][_0x3abc40(0x1dc)]:return{'icon':(0x0,c[_0x3abc40(0x311)])(o[_0x3abc40(0x3a9)],{}),'colorClass':_0x3abc40(0x3ab),'i18nKey':_0x3abc40(0x266),'clickable':!0x1,'indicator':_0x3abc40(0x249)};}}function te(_0x4e5000){const _0x1c732d=_0x31b914;let {status$:_0x697409}=_0x4e5000,_0xa729ca=(0x0,n[_0x1c732d(0x146)])(_0x697409,e[_0x1c732d(0x2f9)][_0x1c732d(0x367)]),_0x358d6a=(0x0,n[_0x1c732d(0x1fc)])(t['LocaleService']),_0x5ccecd=(0x0,n[_0x1c732d(0x1fc)])(e[_0x1c732d(0x137)]),_0x9fa3da=(0x0,s[_0x1c732d(0x134)])(()=>ee(_0xa729ca),[_0xa729ca]),_0x470906=_0xa729ca!==e[_0x1c732d(0x2f9)]['OFFLINE'],_0x5ece2f=_0x358d6a['t'](_0x9fa3da['i18nKey']),_0x71fb5c=_0x9fa3da[_0x1c732d(0x1de)]?_0x358d6a['t'](_0x9fa3da['tooltipKey']):_0x5ece2f,_0x476079=(0x0,s['useCallback'])(()=>{_0x470906||_0x5ccecd['reconnect']();},[_0x470906,_0x5ccecd]),_0x238dc0=(0x0,s[_0x1c732d(0x390)])(_0x486955=>{const _0x292a31=_0x1c732d;!_0x470906&&(_0x486955[_0x292a31(0x2fe)]===_0x292a31(0x1c0)||_0x486955['key']==='\x20')&&(_0x486955[_0x292a31(0x235)](),_0x5ccecd[_0x292a31(0x1b8)]());},[_0x470906,_0x5ccecd]),_0x2861ad=(0x0,c[_0x1c732d(0x311)])(_0x1c732d(0x128),{'className':(0x0,a[_0x1c732d(0x3e4)])(_0x1c732d(0x348),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x9fa3da['colorClass'],{'univer-animate-spin':_0x9fa3da[_0x1c732d(0x101)]===_0x1c732d(0x3f3),'univer-animate-pulse':_0x9fa3da[_0x1c732d(0x101)]==='pulse'}),'aria-hidden':_0x1c732d(0x149),'children':_0x9fa3da[_0x1c732d(0x304)]}),_0x41396b=(0x0,c['jsx'])('span',{'className':(0x0,a[_0x1c732d(0x3e4)])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x1c732d(0x3f7),_0x1c732d(0x262),_0x1c732d(0x15f),_0x1c732d(0x3b2),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x9fa3da[_0x1c732d(0x1ef)],'univer-cursor-default':!_0x9fa3da['clickable']}),'children':_0x2861ad});return _0x9fa3da[_0x1c732d(0x1ef)]?(0x0,c[_0x1c732d(0x311)])(a['Tooltip'],{'title':_0x71fb5c,'placement':'bottom','children':(0x0,c[_0x1c732d(0x311)])(_0x1c732d(0x39f),{'type':_0x1c732d(0x39f),'onClick':_0x476079,'onKeyDown':_0x238dc0,'className':(0x0,a[_0x1c732d(0x3e4)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x1c732d(0x3da),_0x1c732d(0x227),_0x1c732d(0x3b6)),'aria-label':_0x5ece2f+_0x1c732d(0x3fa)+_0x71fb5c,'role':_0x1c732d(0x3dc),'aria-live':_0x1c732d(0x312),'aria-atomic':'true','children':_0x41396b})}):(0x0,c['jsx'])(a[_0x1c732d(0x130)],{'title':_0x71fb5c,'placement':'bottom','children':(0x0,c['jsx'])(_0x1c732d(0x3bd),{'className':(0x0,a[_0x1c732d(0x3e4)])(_0x1c732d(0x1ec),_0x1c732d(0x3da),_0x1c732d(0x227)),'aria-label':_0x5ece2f,'role':_0x1c732d(0x3dc),'aria-live':_0x1c732d(0x312),'aria-atomic':_0x1c732d(0x149),'children':_0x41396b})});}function y(_0x152fd1){'@babel/helpers - typeof';const _0x2c3d7d=_0x31b914;return y=typeof Symbol=='function'&&typeof Symbol[_0x2c3d7d(0x286)]==_0x2c3d7d(0x142)?function(_0xcae7f2){return typeof _0xcae7f2;}:function(_0x28aa27){const _0xea5e7d=_0x2c3d7d;return _0x28aa27&&typeof Symbol==_0xea5e7d(0x261)&&_0x28aa27[_0xea5e7d(0x206)]===Symbol&&_0x28aa27!==Symbol[_0xea5e7d(0x2f7)]?_0xea5e7d(0x142):typeof _0x28aa27;},y(_0x152fd1);}function ne(_0x22e90e,_0x4db68f){const _0x352d98=_0x31b914;if(y(_0x22e90e)!='object'||!_0x22e90e)return _0x22e90e;var _0x1130e6=_0x22e90e[Symbol['toPrimitive']];if(_0x1130e6!==void 0x0){var _0x1bfec9=_0x1130e6[_0x352d98(0x13f)](_0x22e90e,_0x4db68f||_0x352d98(0x160));if(y(_0x1bfec9)!=_0x352d98(0x22b))return _0x1bfec9;throw TypeError(_0x352d98(0x14d));}return(_0x4db68f===_0x352d98(0x184)?String:Number)(_0x22e90e);}function re(_0x5c49ad){const _0x350013=_0x31b914;var _0x3be854=ne(_0x5c49ad,_0x350013(0x184));return y(_0x3be854)==_0x350013(0x142)?_0x3be854:_0x3be854+'';}function b(_0x4ebcb1,_0x84236,_0x2c71f5){const _0x1849a1=_0x31b914;return(_0x84236=re(_0x84236))in _0x4ebcb1?Object[_0x1849a1(0x19a)](_0x4ebcb1,_0x84236,{'value':_0x2c71f5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ebcb1[_0x84236]=_0x2c71f5,_0x4ebcb1;}function x(_0x59d725,_0x42ec88){return function(_0x5ca2f8,_0x34b401){_0x42ec88(_0x5ca2f8,_0x34b401,_0x59d725);};}function S(_0xb6472e,_0x5ee25d,_0x45834f,_0x4c25e0){const _0x582688=_0x31b914;var _0x312ec5=arguments[_0x582688(0x18a)],_0x505322=_0x312ec5<0x3?_0x5ee25d:_0x4c25e0===null?_0x4c25e0=Object['getOwnPropertyDescriptor'](_0x5ee25d,_0x45834f):_0x4c25e0,_0xda8db0;if(typeof Reflect==_0x582688(0x22b)&&typeof Reflect[_0x582688(0x22e)]==_0x582688(0x261))_0x505322=Reflect[_0x582688(0x22e)](_0xb6472e,_0x5ee25d,_0x45834f,_0x4c25e0);else{for(var _0x3176ff=_0xb6472e['length']-0x1;_0x3176ff>=0x0;_0x3176ff--)(_0xda8db0=_0xb6472e[_0x3176ff])&&(_0x505322=(_0x312ec5<0x3?_0xda8db0(_0x505322):_0x312ec5>0x3?_0xda8db0(_0x5ee25d,_0x45834f,_0x505322):_0xda8db0(_0x5ee25d,_0x45834f))||_0x505322);}return _0x312ec5>0x3&&_0x505322&&Object[_0x582688(0x19a)](_0x5ee25d,_0x45834f,_0x505322),_0x505322;}let C=class extends t[_0x31b914(0x382)]{constructor(_0x540f20,_0x40524f,_0x36879d,_0x5f06a0,_0x243e80){const _0x2e75f4=_0x31b914;super(),this[_0x2e75f4(0x320)]=_0x540f20,this[_0x2e75f4(0x2d6)]=_0x40524f,this[_0x2e75f4(0x18c)]=_0x36879d,this[_0x2e75f4(0x1ae)]=_0x5f06a0,this[_0x2e75f4(0x1f2)]=_0x243e80,b(this,_0x2e75f4(0x296),new r['BehaviorSubject'](e[_0x2e75f4(0x2f9)]['NOT_COLLAB'])),b(this,_0x2e75f4(0x17e),new Map()),this[_0x2e75f4(0x39e)](),this[_0x2e75f4(0x2cc)](),this[_0x2e75f4(0x3ac)]();}[_0x31b914(0x1bd)](){const _0x10f494=_0x31b914;this['_presenceStatusRegistrations']['forEach'](_0x2197e6=>_0x2197e6[_0x10f494(0x1bd)]()),this[_0x10f494(0x17e)]['clear'](),this[_0x10f494(0x296)]['complete'](),super['dispose']();}[_0x31b914(0x2cc)](){const _0xf83026=_0x31b914;this[_0xf83026(0x1c5)]((0x0,r[_0xf83026(0x2c9)])(this[_0xf83026(0x320)]['focused$'],this[_0xf83026(0x320)][_0xf83026(0x2d9)](t[_0xf83026(0x2f0)][_0xf83026(0x221)]),this[_0xf83026(0x320)][_0xf83026(0x2d9)](t['UniverInstanceType'][_0xf83026(0x321)]))[_0xf83026(0x1c3)]((0x0,i[_0xf83026(0x2a9)])(()=>ie(this[_0xf83026(0x320)])),(0x0,i['distinctUntilChanged'])(),(0x0,r[_0xf83026(0x105)])(_0x283c5d=>_0x283c5d?this[_0xf83026(0x18c)][_0xf83026(0x207)](_0x283c5d):(0x0,r['of'])(null)),(0x0,r[_0xf83026(0x105)])(_0x3838cc=>_0x3838cc?_0x3838cc['status$']:(0x0,r['of'])(e[_0xf83026(0x2f9)][_0xf83026(0x367)])))[_0xf83026(0x151)](_0x1bd7e9=>{const _0x21f4dc=_0xf83026;this[_0x21f4dc(0x296)]['next'](_0x1bd7e9);}));}[_0x31b914(0x39e)](){const _0x37d145=_0x31b914;this['disposeWithMe'](this[_0x37d145(0x1ae)][_0x37d145(0x400)](n['BuiltInUIPart'][_0x37d145(0x19c)],()=>(0x0,n[_0x37d145(0x381)])(ae({'status$':this[_0x37d145(0x296)]['asObservable']()}),this[_0x37d145(0x2d6)])));}[_0x31b914(0x3ac)](){const _0x24e188=_0x31b914;let _0x2d0e21=this['_presenceAdapterRegistry'][_0x24e188(0x1e2)][_0x24e188(0x151)](_0x4c582a=>{this['_syncPresenceStatusComponents'](_0x4c582a);});this['disposeWithMe']((0x0,t['toDisposable'])(()=>_0x2d0e21[_0x24e188(0x338)]()));}['_syncPresenceStatusComponents'](_0x6e79e5){const _0x34b49d=_0x31b914;let _0x425fc3=new Map(_0x6e79e5['filter'](_0x3dd5f1=>_0x3dd5f1[_0x34b49d(0x200)]!=null)['map'](_0x269573=>[_0x269573[_0x34b49d(0x238)],_0x269573]));this[_0x34b49d(0x17e)]['forEach']((_0x5ba06e,_0x4a6560)=>{const _0x2fd64d=_0x34b49d;_0x425fc3['has'](_0x4a6560)||(_0x5ba06e[_0x2fd64d(0x1bd)](),this[_0x2fd64d(0x17e)][_0x2fd64d(0x255)](_0x4a6560));}),_0x425fc3[_0x34b49d(0x363)]((_0xa5afd4,_0xbdee54)=>{const _0x3b917c=_0x34b49d;this[_0x3b917c(0x17e)][_0x3b917c(0x218)](_0xbdee54)||this[_0x3b917c(0x3a8)](_0xa5afd4);});}[_0x31b914(0x3a8)](_0x54b7e2){const _0x374582=_0x31b914;let _0x48e17b=_0x54b7e2[_0x374582(0x200)];if(!_0x48e17b)return;let _0xee1625=new t[(_0x374582(0x27e))](),_0x5c573d=new r[(_0x374582(0x336))](e[_0x374582(0x2f9)][_0x374582(0x367)]);_0xee1625['add']((0x0,t[_0x374582(0x406)])(()=>_0x5c573d['complete']())),_0xee1625[_0x374582(0x230)](this[_0x374582(0x1ae)]['registerComponent'](_0x48e17b,()=>(0x0,n[_0x374582(0x381)])(ae({'status$':_0x5c573d[_0x374582(0x2f2)]()}),this[_0x374582(0x2d6)])));let _0x36d9c8=this['_univerInstanceService'][_0x374582(0x2d9)](_0x54b7e2['unitType'])[_0x374582(0x1c3)]((0x0,i[_0x374582(0x2a9)])(_0x196b2d=>(_0x196b2d==null?void 0x0:_0x196b2d[_0x374582(0x30c)]())??null),(0x0,i[_0x374582(0x17a)])(),(0x0,r[_0x374582(0x105)])(_0x312721=>_0x312721?this[_0x374582(0x18c)][_0x374582(0x207)](_0x312721):(0x0,r['of'])(null)),(0x0,r['switchMap'])(_0x5b78aa=>(_0x5b78aa==null?void 0x0:_0x5b78aa[_0x374582(0x2f8)])??(0x0,r['of'])(e[_0x374582(0x2f9)]['NOT_COLLAB'])))[_0x374582(0x151)](_0x5ba69b=>_0x5c573d['next'](_0x5ba69b));_0xee1625[_0x374582(0x230)]((0x0,t[_0x374582(0x406)])(()=>_0x36d9c8[_0x374582(0x338)]())),this['_presenceStatusRegistrations'][_0x374582(0x3c2)](_0x54b7e2[_0x374582(0x238)],_0xee1625);}};C=S([x(0x0,t[_0x31b914(0x3e9)]),x(0x1,(0x0,t[_0x31b914(0x3f6)])(t[_0x31b914(0x3a6)])),x(0x2,(0x0,t['Inject'])(e[_0x31b914(0x385)])),x(0x3,n['IUIPartsService']),x(0x4,(0x0,t[_0x31b914(0x3f6)])(n[_0x31b914(0x3fe)]))],C);function ie(_0x14994f){const _0x4b7994=_0x31b914;let _0x5b856b=_0x14994f[_0x4b7994(0x2ef)](),_0x144362=_0x5b856b==null?void 0x0:_0x5b856b[_0x4b7994(0x30c)]();if(_0x144362&&!(0x0,t[_0x4b7994(0x2fa)])(_0x144362))return _0x144362;let _0x346a34=_0x14994f[_0x4b7994(0x402)](t[_0x4b7994(0x2f0)][_0x4b7994(0x221)]),_0x552d0d=_0x346a34==null?void 0x0:_0x346a34[_0x4b7994(0x30c)]();if(_0x552d0d&&!(0x0,t[_0x4b7994(0x2fa)])(_0x552d0d))return _0x552d0d;let _0x1f4426=_0x14994f['getCurrentUnitOfType'](t[_0x4b7994(0x2f0)][_0x4b7994(0x321)]);if(_0x1f4426)return _0x1f4426[_0x4b7994(0x30c)]();let _0x2bba11=_0x14994f[_0x4b7994(0x36c)](t[_0x4b7994(0x2f0)]['UNIVER_DOC'])[_0x4b7994(0x358)](_0x59f0f1=>!(0x0,t[_0x4b7994(0x2fa)])(_0x59f0f1['getUnitId']()));return _0x2bba11?_0x2bba11[_0x4b7994(0x30c)]():null;}function _0x2abb(){const _0x1d0969=['transformMutationsWithChangeset','runId','getItem','_startEntity','deepClone','startOffset','_initEvent','clearRemotePresences','update','saveTaskMap','addClipboardHook','_disabled','override','functionsExecutedState','getMemberID','endColumn','_releaseCalculationLimit','JOIN_ROOM_FAILED','columnGroupId','BehaviorSubject','_name','unsubscribe','getSkeleton','RECT','FETCH_MISS','InsertRowCommandId','_showText','collab-rect-range-','SOCKET_FAILED','value','_collaborationSessionService','_setFormulaLimitStatus','_assignedColors','init','size','deserializeRangeWithSheet','focusedId','univer-flex\x20univer-items-center\x20univer-justify-center','createElement','content','InsertRangeMoveRightCommandId','_disposeEntity','_setupBeforeClosingHandler','totalFormulasToCalculate','search','_bindAdapter','currentSkeleton$','labelPosition','backgroundColor','Vector2','_entityInit$','enableFrontendLog','_initWindowErrorListener','find','CollaborationUIEventId','ticket','getCurrentSelections','SheetsSelectionsService','CommandType','highlight','strokeWidth','drawWith','_initResize','catch','forEach','UniverDocsPlugin','IMessageService','INotificationService','NOT_COLLAB','setUndoRedoMutationParamsCache','_pointerMoveDisposable','IDocClipboardService','_memberID','getAllUnitsForType','uni.network.url-service','_selfUnitIDs','cursorInfo$','registerDependencies','debounce','then','_clearTimeoutState','assignAColorForMemberID','redoState','72PkwxFz',':backup:','NO_OTHER_CLIENTS_EDITING','_isVisibleUnit','_drawAnchor','Error','makeDirty','stage','offsetY','_dataLoaderService','_hovered','connectInjector','Disposable','_adapter','next','CollaborationController','replace','transform','WebBrowserSingleActiveUnitService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','LocaleService','IConfigService','LoadingMultiIcon','toRgbString','rgba','_startCalculationLimit','useCallback','from','COLORS','sessionTicket','startsWith','isTransformMutationFailure','ONLINE','_hasFormulaInDirtyRanges','debounceTime','_currentUsage','_onCursorDelete','_unitStatus','UniverRenderEnginePlugin','editingUnit','_initStatusComponent','button','_adapterDisposables','highlightSecond','_cursorInfo$','collaboration-client-ui.formula.calculation.started','reload','SessionStatus','Injector','getActiveSheet','_registerPresenceStatusComponent','OnLineIcon','result','univer-text-green-500','_initPresenceStatusComponents','/universer-api/license/formula/limit/start','_getLighterColor','/universer-api/license/formula/limit/done','_docTransformStateCacheService','getViewport','dark:focus:!univer-ring-offset-gray-800','onStarting','_render','_syncEditingCollabCursorService','univer-appearance-none','_drawTextRange','_cursors','timer','_updateCollabCursors','_initDependencies','_transformPreviousActiveRange','div','sessionStatus$','_transformUndoRedoStack','_removeClearOtherTimer','clearInterval','set','registerRenderModule','requireSession','_isBlinkVisible','FromArray','_offsetY','_labelPosition','UniverLicensePlugin','mapTo','exhaustSavingTask','replaceDocRanges','lineTo','fillRule','eventID','getCollabCursors$','color','_context','_timeoutState$','saveImage','join','RemoteUniscriptService','_handleHeartbeatEvent','handleInsertRangeMoveRight','hide','univer-border-none\x20univer-bg-transparent','_updateMessage','status','subunit','OTHER_CLIENTS_EDITING','lineno','totalBlocks','closePath','pushState','registerBeforeClose','clsx','_urlService','handleIRemoveCol','slice','[LogService\x20Error]:\x20','IUniverInstanceService','_scheduleSaving','right','version','combineLatest','GLOBAL','getScrollXYInfoByViewport','addEventListener','width','params','spin','getTypeOfUnitDisposed$','_config','Inject','univer-h-8\x20univer-w-8\x20univer-rounded-lg','min','UniverCollaborationClientPlugin','\x20-\x20','setParam','_configService','subscribeEvent','IUnitPresenceUIAdapterRegistry','setShapeProps','registerComponent','small','getCurrentUnitOfType','DocIMEInputManagerService','ISocketService','updateOfflineData','toDisposable','_scheduleClearOtherTimer','WebSocketService','primary','ERROR','registerRefRange','addObject','_createSocketURL','SUCCESS','enableDocumentCollaborationUI','message','rgba(255,\x20255,\x20255,\x200.01)','_syncAdapters','indicator','getValue','loadUnit','snapshot-loading-timeout','switchMap','addObjects','_cursorShapes','_color','_refRangeService','_cursor','getRangePointData','BrowserCollaborationSocketService','IURLService','Rect','_anchorDot','SetTextSelectionsOperation','241320rTabEr','left','collaboration-client-ui.collabStatus.notCollab','clear','getUnit','_heartbeatTimer','stringify','collaboration-client-ui.config','startRow','MemberService','_themeService','_highlightSecond','_docTransformSelectionsService','getCurrentSkeleton','EffectRefRangId','rgba(','_handleJoinEvent','_getAnchorBounding','_entities','DocStateChangeManagerService','findNodePositionByCharIndex','_pollingInterval','transformIMECache','span','_monkeyPatchLogService','_getMergeRange','FOOTER','_disposed','_handleLeaveEvent','SnapshotLoadStage','_removeRemotePresence','Tooltip','_sheetSkeletonManagerService','SetFormulaCalculationNotificationMutation','_lastPointer','useMemo','_draw','_httpService','CollaborationSessionService','getDocumentSkeletonColumnPagePathInfo','_docClipboardService','startColumn','jiqing.500','_unitOnClients','_highlight','_stopBlinking','call','segmentPage','_blinkIntervalTimer','symbol','getLocalPresence','measureText','doc.mutation.rich-text-editing','useObservable','LOADING_BLOCKS','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','true','_transformService','with','_instanceService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ThemeService','unit','@univerjs-pro/collaboration-client-ui','subscribe','_collabCursorController','m2Prime','collaboration-client-ui.formula.calculation.waiting','show','socket$','IUIPartsService','getRenderUnitById','SetFormulaCalculationStartMutation','_colorIndex','timeoutId','Shape','_applyCommand','_clearRemotePresences','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','default','red.300','yellow.400','collaboration-client-ui.snapshotLoading.refresh','1284993fkUdft','type','getSheetObject','unitId','loadOfflineData','jsxs','currentUsage','handleIRemoveRow','_getFormulaLimitStatus','USERS_LEAVE','552bNrhvW','handleInsertRow','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','maxFormulaLimit','_localCacheService','onPointerLeave$','generateRandomId','history','body','getActiveRange','rgb','tableId','distinctUntilChanged','pointer','?taskId=','_startDocCollabCursor','_presenceStatusRegistrations','getFormulaLimitStatusUrl','onCommandExecuted','filter','12622520ZZAtZW','1.0.0-beta.2','string','SetSelectionsOperation','SheetSkeletonManagerService','isFormulaString','OffLineIcon','HEADER','length','getAncestorScale','_collaborationController','clearTimeout','_onRefRangeChange','mutations','MessageType','DEFAULT_WS_SESSION_TICKET_URL','range','collaboration-client-ui.formula.calculation.unable','_initEntityListener','ITransformService','subUnitId','getSheetId','isFinite','endRow','defineProperty','removeParam','HEADER_MENU','CLOSE_ROOM','[CollaborationDataLoaderController]','_uploadLog','_initUserListener','UPDATE_CURSOR','getColor','_session','_setupSubUnitSync','_imageIoService','_maxFormulaLimit','RxDisposable','columnIndex','text','OFFLINE','248726fYGyTo','collaboration-client-ui.collabClient.tooltip.reconnect','getStateCache','_uiPartsService','RemoveRowCommandId','_latestStates','selectedIds','touchDependencies','DocumentSkeletonPageType','parseInt','font','green.600','SetWorksheetActivateCommand','reconnect','enableLocalCache','kind','_range','transformRemoteChangeset','dispose','replaceState','isEditing','Enter','fillText','state$','pipe','shareReplay','disposeWithMe','_checkCalculationAvailable','onPointerMove$','canRenderAnchor','_notificationService','setInterval','_refreshCollabCursors','stageInfo','_saveTaskMap','_lastResponseTimestamp','CanceledError','_startSheetCollabCursor','canRenderSelection','_removeCollabCursors','timeoutState$','timedOut','_getSaveTimeout','createIdentifier','AWAITING','textRanges','urlChange$','DesktopCollaborationStatusDisplayController','entries','SYNCED','application/json','tooltipKey','location','UniverDocsUIPlugin','OTHER_CLIENT_EDITING','adapters$','invokeId','0.2)','_scheduleHeartbeat','runOnServer','_registerDependencies','name','LOCAL_CACHE_INTERVAL_KEY','BuiltInUIPart','SOCKET_FAILED_RETRY','univer-inline-flex\x20univer-items-center\x20univer-justify-center','univer-text-red-500','_hideTimer','clickable','PERMISSION_DENIED','_toggleOffline','_presenceAdapterRegistry','RevisionService','dispose$','collaboration-client-ui.collabStatus.conflict','_onCursorUpdate','activate','CollaborationEvent','setActiveRange','row','_updateSubUnitFromURLParams','useDependency','collaboration-client-ui.session.will-retry','DataLoaderService','collaboration-client-ui.conflict.title','statusUIPart','split','disposeUnit','_initialized','_docSyncEditingCollabCursorService','_roomMembers$','constructor','getCollabEntity$','code','\x20at\x20','collaboration-client-ui.permission.title','_handleCursorUpdate','_docSelectionManagerService','_cachedData','_clearOtherTimers','RegularPolygon','_snapshotLoadingService','SetDocZoomRatioOperation','collaboration-client-ui.collabStatus.fetchMiss','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_clearPolling','getParam','selection','onMouseMove','has','1506306PjJuLw','Loading','_collaborationUIEventService','_logService','moveTo','presenceKind','beginPath','post','UNIVER_DOC','_taskIds',',\x200.2)','ILocalStorageService','saveOfflineData','save','univer-m-0\x20univer-p-0','_sendLocalPresence','Failed','DeleteRangeMoveUpCommandId','object','_docSkeleton','restore','decorate','transformMutation','add','collabCursorState$','TEXT_RANGE_LAYER_INDEX','_localStorageService','Button','preventDefault','[Unhandled\x20Rejection]:\x20','_scene','unitType','setStateCache','_colorAssignService','_textBubble','_blinkTimer','ErrorCode','UnitStatus','_init','_handleHover','_startBlinking','_localeService','_blockProgressWatches','IImageIoService','_renderManagerService','get','remove','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','static','collaboration-client-ui.collabStatus.syncing','collaboration-client-ui.permission.content','evenodd','loadedBlocks','handleMoveRange','Warning','number','TEXT','fillStyle','/run/','collaboration-client-ui.collabStatus.offline','delete','takeUntil','getSheetBySheetId','bind','searchParams','getCellIndexByOffset','arc','resize','ColorKit','collab-text-anchor-','_online','RichTextEditingMutation','function','univer-transition-all\x20univer-duration-200','roomMembers','_send','alert','collaboration-client-ui.collabStatus.synced','_shapes','triggerDblclick','_id','_collabCursorState$','collaboration-client-ui.collaboration.single-unit.warning','executeCommand','pageIndex','_messageService','colno','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_anchor','_initUnhandledRejectionListener','runRefRangeMutations','_adapterRegistry','labelHorizontalPosition','handleDeleteRangeMoveLeft','transformSelections','_memberService','_updateLocalCursor','startFormulaLimitUrl','getLocalCacheKey','getCoordByCell','_toggleOnline','DisposableCollection','_revisionService','setConfig','column','getTypeOfUnitAdded$','dirtyRanges','_getSessionTicket','collaboration-client-ui.snapshotLoading.timeout','iterator','activeSheet$','unhandledrejection','storage','ranges','disableLocalCache','_doCreateSocket','handleDeleteRangeMoveUp','mergeOverrideWithDependencies','getMergeData','_handleEvent','getConfig','values','45997dhtZom','throttleTime','getCurrentRevOfUnit','_status$','send','localPresence$','beforeCommandExecuted','6709496dZALUP','collaboration-client-ui.session.collaboration-timeout','MoveRangeCommandId','cursorInfo','[RemoteUniscriptService]:\x20no\x20focused\x20unit','3Bvdwty','syncEditingCollabCursor','_drawRectRange','DocCollaborationEntity','_commandService','DocSelectionManagerService','undoState','univer-text-gray-400','_eventUnsubscribe','_messageIds','map','CONFLICT','SnapshotLoadingService','reason','_saveCache','_docSkeletonManagerService','_backgroundColor','now','onPointerEnter$','currentTheme$','getUndoRedoMutationParamsCache','createSocket','transformStateCache','data','Workbook','popstate','_labelHorizontalPosition','toString','/universer-api/frontend/logs','event$','sheetId','bottom','some','getCoordRelativeToViewport','height','options','unload','parse','_docStateChangeManagerService','getMember','onRendered','NodePositionConvertToCursor','merge','_initCommandExecutedListener','createInstance','_initStatusListener','releaseFormulaLimitUrl','_pendingEntities','_updateURLWithCurrentState','top','unshift','throttle','Unknown\x20user','error','registerCommand','_injector','setItem','univer-text-orange-500','getCurrentTypeOfUnit$','setAlpha','setTimeout','getColorFromTheme','_clearBlockProgressWatch','ISnapshotServerService','imageSourceType','isTransformMutationsWithChangesetSuccess','isArray','entityInit$','ILogService','href','purple.300','packageName','every','DOC_RANGE_TYPE','Tools','_checkAndWaitForCalculationPermission','_registerRenderDependencies','unitID','Rectangle','fill','getFocusedUnit','UniverInstanceType','getDocRanges','asObservable','toStringTag','memberID','_hover','removeEventListener','prototype','status$','CollaborationStatus','isInternalEditorID','ICommandService','newValue','InsertRangeMoveDownCommandId','key','collaboration-client-ui.session.connection-failed','DependentOn','complete','_getScale','UniverNetworkPlugin','icon','source','_watchBlockProgress','pageType','[Window\x20Error]:\x20','_docTransformIMECacheService','m1Prime','fromEvent','getUnitId','collab-text-range-','stack','_beforeCloseService','push','jsx','polite','HTTPService','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','_showGuardMessage','black','setRemotePresence','_ensureSubject','setOffsetY','_disposeEntitiesForType','_collabSessionService','_getSheetObject','getUnitStatus$','VIEW_MAIN','collaboration-client-ui.operation.update-remote-unit-presence','_univerInstanceService','UNIVER_SHEET','collaboration-client-ui.collaboration.offline-data-not-saved'];_0x2abb=function(){return _0x1d0969;};return _0x2abb();}function ae(_0x2751f2){let {status$:_0x23df37}=_0x2751f2;return function(){return(0x0,c['jsx'])(te,{'status$':_0x23df37});};}var oe=_0x31b914(0x150),se=_0x31b914(0x183);const w={'id':_0x31b914(0x31f),'type':t[_0x31b914(0x35d)]['OPERATION'],'handler':(_0xc54fd,_0xfbf37d)=>{const _0x37431e=_0x31b914;let _0x4d105a=_0xc54fd[_0x37431e(0x246)](n[_0x37431e(0x3fe)])[_0x37431e(0x246)](_0xfbf37d['unitType']);if(!_0x4d105a)return!0x1;switch(_0xfbf37d[_0x37431e(0x32b)][_0x37431e(0x165)]){case _0x37431e(0x3c2):return _0x4d105a[_0x37431e(0x317)](_0xfbf37d['update']['state']),!0x0;case _0x37431e(0x247):return _0x4d105a['removeRemotePresence'](_0xfbf37d[_0x37431e(0x32b)]['unitId'],_0xfbf37d['update']['memberId']),!0x0;case _0x37431e(0x114):return _0x4d105a[_0x37431e(0x32a)](_0xfbf37d[_0x37431e(0x32b)][_0x37431e(0x167)]),!0x0;default:return!0x1;}}},ce={};let T=class extends t['RxDisposable']{constructor(_0x88475b,_0x12786c){const _0x482f68=_0x31b914;super(),this['_docClipboardService']=_0x88475b,this[_0x482f68(0x1a5)]=_0x12786c,this[_0x482f68(0x23f)]();}[_0x31b914(0x23f)](){const _0x45c311=_0x31b914;let _0x5216b6=this;this['disposeWithMe'](this[_0x45c311(0x139)][_0x45c311(0x32d)]({'onBeforePasteImage':async _0x1c91ae=>{const _0x4459fb=_0x45c311;let _0x357a86=await _0x5216b6['_imageIoService'][_0x4459fb(0x3d4)](_0x1c91ae);return _0x357a86?{'source':_0x357a86[_0x4459fb(0x305)],'imageSourceType':_0x357a86[_0x4459fb(0x2df)]}:null;}}));}};T=S([x(0x0,f[_0x31b914(0x36a)]),x(0x1,t[_0x31b914(0x244)])],T);const le=[_0x31b914(0x2e5),_0x31b914(0x13b),_0x31b914(0x1b6),_0x31b914(0x161),'blue.400',_0x31b914(0x162)];var E=class extends t[_0x31b914(0x382)]{constructor(..._0x2a1ef9){const _0x28d32e=_0x31b914;super(..._0x2a1ef9),b(this,'_assignedColors',new Map()),b(this,_0x28d32e(0x15a),0x0);}[_0x31b914(0x374)](_0x21e7c5){const _0xdca2c9=_0x31b914;if(this[_0xdca2c9(0x343)][_0xdca2c9(0x218)](_0x21e7c5))return this['_assignedColors'][_0xdca2c9(0x246)](_0x21e7c5);let _0xf8b300=le[this[_0xdca2c9(0x15a)]];return this[_0xdca2c9(0x15a)]=(this[_0xdca2c9(0x15a)]+0x1)%le[_0xdca2c9(0x18a)],this[_0xdca2c9(0x343)][_0xdca2c9(0x3c2)](_0x21e7c5,_0xf8b300),_0xf8b300;}};function ue(_0x291cab){let _0x1d56a7='';for(let _0x3befd8 of _0x291cab){let {startOffset:_0x21d38c,endOffset:_0x35aa26,isActive:_0x805ad8,rangeType:_0x3d54a8,segmentId:_0x25b978,segmentPage:_0x2b77f1}=_0x3befd8;_0x1d56a7['length']&&(_0x1d56a7+=','),_0x1d56a7+=_0x21d38c+':'+_0x35aa26+':'+(_0x805ad8?'1':'0')+':'+_0x3d54a8+':'+_0x25b978+':'+_0x2b77f1;}return _0x1d56a7;}function de(_0x4e507f){const _0x39a81d=_0x31b914;let _0x4e72d8=_0x4e507f[_0x39a81d(0x201)](','),_0x543394=[];for(let _0x147703 of _0x4e72d8){let [_0x3ab994,_0x3077fe,_0x58e185,_0x258561,_0x5ec80e,_0x22c5da]=_0x147703[_0x39a81d(0x201)](':');_0x543394[_0x39a81d(0x310)]({'startOffset':Number(_0x3ab994),'endOffset':Number(_0x3077fe),'collapsed':_0x3ab994===_0x3077fe,'isActive':_0x58e185==='1','rangeType':_0x258561===t[_0x39a81d(0x2e8)][_0x39a81d(0x251)]?t['DOC_RANGE_TYPE'][_0x39a81d(0x251)]:t[_0x39a81d(0x2e8)][_0x39a81d(0x33a)],'segmentId':typeof _0x5ec80e=='string'?String(_0x5ec80e):'','segmentPage':Number(_0x22c5da??-0x1)});}return _0x543394[_0x39a81d(0x2bf)](_0x5c374a=>_0x5c374a['isActive'])||(_0x543394[0x0]['isActive']=!0x0),_0x543394;}var D=class extends t[_0x31b914(0x1a7)]{constructor(..._0x22bc1e){const _0xf872a0=_0x31b914;super(..._0x22bc1e),b(this,_0xf872a0(0x26a),new r['BehaviorSubject'](null)),b(this,_0xf872a0(0x231),this['_collabCursorState$'][_0xf872a0(0x2f2)]());}[_0x31b914(0x2a0)](_0x568418){const _0x334440=_0x31b914;let {unitID:_0x299e4b,memberID:_0x5971b9,textRanges:_0xbf46b0}=_0x568418,_0x1b7fb3=ue(_0xbf46b0);if(_0x1b7fb3==='')return;let _0x26e39a={'unitID':_0x299e4b,'memberID':_0x5971b9,'selection':_0x1b7fb3};this['_collabCursorState$'][_0x334440(0x384)](_0x26e39a);}};let O=class extends t[_0x31b914(0x1a7)]{get[_0x31b914(0x29d)](){const _0x5eb833=_0x31b914;return this[_0x5eb833(0x3a2)][_0x5eb833(0x102)]();}get['roomMembers'](){const _0x2efd89=_0x31b914;return this[_0x2efd89(0x205)][_0x2efd89(0x102)]();}constructor(_0x2b213c,_0x2793bd,_0x3f98e9,_0x4da5fb,_0x5669e9,_0x263ff6,_0x7669a8,_0x99e765,_0x2e047f){const _0x13ea13=_0x31b914;super(),this[_0x13ea13(0x2ec)]=_0x2b213c,this[_0x13ea13(0x1a3)]=_0x2793bd,this[_0x13ea13(0x2d6)]=_0x3f98e9,this[_0x13ea13(0x23a)]=_0x4da5fb,this[_0x13ea13(0x278)]=_0x5669e9,this[_0x13ea13(0x3b5)]=_0x263ff6,this['_transformService']=_0x7669a8,this['_univerInstanceService']=_0x99e765,this['_commandService']=_0x2e047f,b(this,_0x13ea13(0x25f),!0x1),b(this,_0x13ea13(0x23f),!0x1),b(this,'_cursorInfo$',new r[(_0x13ea13(0x336))](new Map())),b(this,'cursorInfo$',this['_cursorInfo$'][_0x13ea13(0x2f2)]()),b(this,'_roomMembers$',new r[(_0x13ea13(0x336))]([])),b(this,'roomMembers$',this[_0x13ea13(0x205)][_0x13ea13(0x1c3)]((0x0,r[_0x13ea13(0x398)])(0x12c))),b(this,_0x13ea13(0x279),(0x0,t['debounce'])(_0x4a1303=>{const _0x16001=_0x13ea13;let _0x32b073={'eventID':l[_0x16001(0x1f8)][_0x16001(0x1a1)],'data':{'unitID':this[_0x16001(0x2ec)],'memberID':this[_0x16001(0x1a3)][_0x16001(0x331)](),'selection':ue(_0x4a1303)}};this['_session'][_0x16001(0x297)](_0x32b073,this['unitID']);},0x64));}[_0x31b914(0x1bd)](){const _0x3f76a0=_0x31b914;super[_0x3f76a0(0x1bd)](),this[_0x3f76a0(0x3a2)]['next'](new Map()),this[_0x3f76a0(0x3a2)][_0x3f76a0(0x301)](),this[_0x3f76a0(0x205)][_0x3f76a0(0x384)]([]),this[_0x3f76a0(0x205)][_0x3f76a0(0x301)]();}[_0x31b914(0x344)](){const _0x54ab9b=_0x31b914;this['_init']||(this['_init']=!0x0,this[_0x54ab9b(0x1a3)][_0x54ab9b(0x3be)][_0x54ab9b(0x1c3)]((0x0,r[_0x54ab9b(0x256)])(this[_0x54ab9b(0x1f4)]))['subscribe'](_0x205746=>{const _0x4eb9=_0x54ab9b;_0x205746===e['SessionStatus'][_0x4eb9(0x396)]?this[_0x4eb9(0x27d)]():this['_toggleOffline']();}),this['_session'][_0x54ab9b(0x2bc)][_0x54ab9b(0x1c3)]((0x0,r[_0x54ab9b(0x256)])(this[_0x54ab9b(0x1f4)]))[_0x54ab9b(0x151)](_0x7818b=>{const _0x8189c5=_0x54ab9b;let _0x5d5d3d=_0x7818b[_0x8189c5(0x3cf)];_0x5d5d3d===l[_0x8189c5(0x1f8)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x7818b),_0x5d5d3d===l[_0x8189c5(0x1f8)][_0x8189c5(0x16d)]&&this[_0x8189c5(0x39a)](_0x7818b);}),this['disposeWithMe'](this['_commandService'][_0x54ab9b(0x180)](_0x85e0b6=>{const _0x2163e5=_0x54ab9b;let _0x7388e2=_0x85e0b6[_0x2163e5(0x3f2)];_0x7388e2!=null&&this['_online']&&_0x85e0b6['id']===d[_0x2163e5(0x110)]['id']&&_0x7388e2[_0x2163e5(0x167)]===this[_0x2163e5(0x2ec)]&&_0x7388e2[_0x2163e5(0x1bf)]===!0x1&&_0x7388e2[_0x2163e5(0x28a)]['length']>0x0&&this[_0x2163e5(0x279)](_0x7388e2[_0x2163e5(0x28a)]);})),this[_0x54ab9b(0x3b5)][_0x54ab9b(0x231)][_0x54ab9b(0x1c3)]((0x0,r[_0x54ab9b(0x256)])(this[_0x54ab9b(0x1f4)]))[_0x54ab9b(0x151)](_0xe0767f=>{const _0x1fca86=_0x54ab9b;if((_0xe0767f==null?void 0x0:_0xe0767f[_0x1fca86(0x2ec)])!==this[_0x1fca86(0x2ec)])return;let _0x204b9b={'eventID':l[_0x1fca86(0x1f8)][_0x1fca86(0x1a1)],'data':_0xe0767f};this[_0x1fca86(0x1f6)](_0x204b9b);}),this[_0x54ab9b(0x1c5)](this[_0x54ab9b(0x2a3)][_0x54ab9b(0x180)](_0x1afd42=>{const _0x5a0158=_0x54ab9b;if(_0x1afd42[_0x5a0158(0x3f2)]==null)return;let _0x56dd34=_0x1afd42[_0x5a0158(0x3f2)];if(_0x1afd42['id']!==d[_0x5a0158(0x260)]['id']||_0x56dd34[_0x5a0158(0x167)]!==this['unitID'])return;let _0x52e6f8={'id':'doc.mutation.rich-text-editing','params':_0x56dd34},_0x5314cf=this[_0x5a0158(0x29d)];for(let [_0x54fe7c,_0x276dce]of _0x5314cf){let _0x4f3494={'id':_0x5a0158(0x145),'params':{'unitId':this[_0x5a0158(0x2ec)],'actions':null,'textRanges':_0x276dce[_0x5a0158(0x28a)]}},_0x5c7b58=this[_0x5a0158(0x14a)][_0x5a0158(0x22f)](_0x52e6f8,_0x4f3494,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x5c7b58))throw _0x5c7b58[_0x5a0158(0x2d4)];_0x5314cf[_0x5a0158(0x3c2)](_0x54fe7c,{..._0x276dce,'ranges':_0x5c7b58[_0x5a0158(0x153)]['params'][_0x5a0158(0x1d8)]});}queueMicrotask(()=>{const _0x45fbc1=_0x5a0158;this[_0x45fbc1(0x3a2)][_0x45fbc1(0x384)](_0x5314cf);});})));}[_0x31b914(0x1f6)](_0x32affc){const _0x3593c0=_0x31b914;var _0x4452db;let {memberID:_0x410658,selection:_0x4b74df}=_0x32affc[_0x3593c0(0x2b6)],_0x41e4de=de(_0x4b74df),_0x1d5c8c=((_0x4452db=this[_0x3593c0(0x278)][_0x3593c0(0x2c6)](this[_0x3593c0(0x2ec)],_0x410658))==null?void 0x0:_0x4452db[_0x3593c0(0x1e8)])??_0x3593c0(0x2d3),_0x5bea06={'color':this[_0x3593c0(0x23a)][_0x3593c0(0x374)](_0x410658),'name':_0x1d5c8c,'ranges':_0x41e4de},_0xad9f1f=this[_0x3593c0(0x29d)];_0xad9f1f[_0x3593c0(0x3c2)](_0x410658,_0x5bea06),this[_0x3593c0(0x3a2)][_0x3593c0(0x384)](_0xad9f1f);}[_0x31b914(0x39a)](_0x9a434a){const _0x5d9748=_0x31b914;let {memberID:_0x175c7e}=_0x9a434a[_0x5d9748(0x2b6)],_0x29bc0a=this[_0x5d9748(0x29d)];_0x29bc0a[_0x5d9748(0x255)](_0x175c7e),this[_0x5d9748(0x3a2)][_0x5d9748(0x384)](_0x29bc0a);}['_toggleOnline'](){const _0x24887d=_0x31b914;var _0x55b866;if(this['_online']=!0x0,((_0x55b866=this['_univerInstanceService'][_0x24887d(0x2ef)]())==null?void 0x0:_0x55b866['getUnitId']())!==this[_0x24887d(0x2ec)])return;let _0xb649c6=this[_0x24887d(0x2d6)][_0x24887d(0x246)](d[_0x24887d(0x2a4)])['getDocRanges']();Array[_0x24887d(0x2e1)](_0xb649c6)&&_0xb649c6[_0x24887d(0x18a)]>0x0&&this[_0x24887d(0x279)](_0xb649c6);}[_0x31b914(0x1f1)](){const _0x281706=_0x31b914;this[_0x281706(0x25f)]=!0x1;}};O=S([x(0x2,(0x0,t[_0x31b914(0x3f6)])(t[_0x31b914(0x3a6)])),x(0x3,(0x0,t[_0x31b914(0x3f6)])(E)),x(0x4,(0x0,t['Inject'])(e[_0x31b914(0x11a)])),x(0x5,(0x0,t[_0x31b914(0x3f6)])(D)),x(0x6,l[_0x31b914(0x195)]),x(0x7,t[_0x31b914(0x3e9)]),x(0x8,t[_0x31b914(0x2fb)])],O);const fe=()=>{let _0x402aeb=[],_0x2b5fa0=!0x1;return _0xb1582e=>{const _0x343cb8=_0x432a;_0x402aeb[_0x343cb8(0x310)](_0xb1582e),_0x2b5fa0||(_0x2b5fa0=!0x0,setTimeout(()=>{const _0x22a988=_0x343cb8;_0x402aeb[_0x22a988(0x363)](_0x3f015a=>_0x3f015a()),_0x402aeb=[],_0x2b5fa0=!0x1;}));};};let k=class extends t[_0x31b914(0x1a7)]{get[_0x31b914(0x29d)](){const _0x415e47=_0x31b914;return this[_0x415e47(0x3a2)][_0x415e47(0x102)]();}get[_0x31b914(0x263)](){const _0x3e6ace=_0x31b914;return this[_0x3e6ace(0x205)][_0x3e6ace(0x102)]();}constructor(_0x3fc864,_0x35a51a,_0x3399f3,_0x588540,_0x33beab,_0x2d9834,_0x3c8a04,_0x41db95){const _0x26b11b=_0x31b914;super(),this['unitID']=_0x3fc864,this['_session']=_0x35a51a,this['_injector']=_0x3399f3,this[_0x26b11b(0x23a)]=_0x588540,this[_0x26b11b(0x278)]=_0x33beab,this[_0x26b11b(0x320)]=_0x2d9834,this[_0x26b11b(0x2a3)]=_0x3c8a04,this[_0x26b11b(0x109)]=_0x41db95,b(this,'_online',!0x1),b(this,_0x26b11b(0x23f),!0x1),b(this,_0x26b11b(0x3a2),new r[(_0x26b11b(0x336))](new Map())),b(this,_0x26b11b(0x36f),this[_0x26b11b(0x3a2)][_0x26b11b(0x2f2)]()),b(this,_0x26b11b(0x205),new r['BehaviorSubject']([])),b(this,'roomMembers$',this[_0x26b11b(0x205)]['pipe']((0x0,r[_0x26b11b(0x398)])(0x12c))),b(this,_0x26b11b(0x279),(0x0,t[_0x26b11b(0x371)])((_0x21f0d4,_0x335c2b)=>{const _0x58a439=_0x26b11b;let _0x9a5922={'eventID':l[_0x58a439(0x1f8)][_0x58a439(0x1a1)],'data':{'unitID':this[_0x58a439(0x2ec)],'memberID':this[_0x58a439(0x1a3)][_0x58a439(0x331)](),'selection':(0x0,h['serializeRangeWithSheet'])(_0x21f0d4,_0x335c2b[_0x58a439(0x192)])}};this[_0x58a439(0x1a3)][_0x58a439(0x297)](_0x9a5922,this[_0x58a439(0x2ec)]);},0x64));}[_0x31b914(0x1bd)](){const _0x452dc1=_0x31b914;super[_0x452dc1(0x1bd)](),this[_0x452dc1(0x3a2)][_0x452dc1(0x384)](new Map()),this[_0x452dc1(0x3a2)][_0x452dc1(0x301)](),this['_roomMembers$'][_0x452dc1(0x384)]([]),this[_0x452dc1(0x205)]['complete']();}['init'](){const _0x234db9=_0x31b914;this[_0x234db9(0x23f)]||(this[_0x234db9(0x23f)]=!0x0,this['_session'][_0x234db9(0x3be)][_0x234db9(0x1c3)]((0x0,r['takeUntil'])(this[_0x234db9(0x1f4)]))['subscribe'](_0x3eb95d=>{const _0x1fb6f4=_0x234db9;_0x3eb95d===e[_0x1fb6f4(0x3a5)][_0x1fb6f4(0x396)]?this[_0x1fb6f4(0x27d)]():this[_0x1fb6f4(0x1f1)]();}),this[_0x234db9(0x1a3)][_0x234db9(0x2bc)]['pipe']((0x0,r[_0x234db9(0x256)])(this[_0x234db9(0x1f4)]))[_0x234db9(0x151)](_0x50afde=>{const _0x29a236=_0x234db9;let _0x380aab=_0x50afde[_0x29a236(0x3cf)];_0x380aab===l[_0x29a236(0x1f8)][_0x29a236(0x1a1)]&&this['_onCursorUpdate'](_0x50afde),_0x380aab===l[_0x29a236(0x1f8)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x50afde);}),this[_0x234db9(0x18e)](),this['disposeWithMe'](this['_commandService'][_0x234db9(0x180)](_0x5b61c3=>{const _0x54b529=_0x234db9;if(this[_0x54b529(0x25f)]&&_0x5b61c3['id']===g[_0x54b529(0x185)]['id']&&_0x5b61c3[_0x54b529(0x3f2)][_0x54b529(0x167)]===this['unitID']){let _0x50d1a5=_0x5b61c3[_0x54b529(0x3f2)];this[_0x54b529(0x279)](_0x50d1a5[_0x54b529(0x196)],_0x50d1a5['selections'][0x0]);}})));}['_onCursorUpdate'](_0xcdf68a){const _0x28ea5e=_0x31b914;var _0x16c887;let {memberID:_0x40f40,selection:_0x307abc}=_0xcdf68a[_0x28ea5e(0x2b6)],{sheetName:_0x2c2e20,range:_0x578cc6}=(0x0,h[_0x28ea5e(0x346)])(_0x307abc),_0x4f459a={'name':((_0x16c887=this['_memberService'][_0x28ea5e(0x2c6)](this[_0x28ea5e(0x2ec)],_0x40f40))==null?void 0x0:_0x16c887[_0x28ea5e(0x1e8)])??_0x28ea5e(0x2d3),'range':this[_0x28ea5e(0x12a)](_0x2c2e20,_0x578cc6),'sheetID':_0x2c2e20,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x40f40),'selection':_0x307abc},_0x5ae958=this['cursorInfo'];_0x5ae958[_0x28ea5e(0x3c2)](_0x40f40,_0x4f459a),this[_0x28ea5e(0x3a2)]['next'](_0x5ae958);}[_0x31b914(0x39a)](_0x263d83){const _0x78eb32=_0x31b914;let {memberID:_0x4183a6}=_0x263d83[_0x78eb32(0x2b6)],_0x23f3bf=this['cursorInfo'];_0x23f3bf[_0x78eb32(0x255)](_0x4183a6),this[_0x78eb32(0x3a2)][_0x78eb32(0x384)](_0x23f3bf);}[_0x31b914(0x12a)](_0x32b4a3,_0x44212f){const _0x161ac7=_0x31b914;var _0x170fb8;let _0x2d0408=(_0x170fb8=this['_univerInstanceService'][_0x161ac7(0x115)](this['unitID'],t[_0x161ac7(0x2f0)][_0x161ac7(0x321)]))==null||(_0x170fb8=_0x170fb8[_0x161ac7(0x257)](_0x32b4a3))==null?void 0x0:_0x170fb8[_0x161ac7(0x28f)]();return(_0x2d0408==null?void 0x0:_0x2d0408[_0x161ac7(0x358)](_0x149f3b=>t[_0x161ac7(0x2ed)]['contains'](_0x149f3b,_0x44212f)))||_0x44212f;}[_0x31b914(0x18e)](){const _0x4c8954=_0x31b914;let _0x1d5945=new t[(_0x4c8954(0x27e))](),_0x3124ef=fe(),_0x2614c4=()=>{const _0x25b659=_0x4c8954;_0x1d5945[_0x25b659(0x1bd)]();let _0x1b34cd=(_0x3e3f02,_0x4b2c92,_0xf4adff,_0x2f0dbb)=>{const _0xfbb4fc=_0x25b659;let _0x2aae90=[];switch(_0x3e3f02['id']){case g[_0xfbb4fc(0x11f)]['DeleteRangeMoveLeftCommandId']:_0x2aae90=(0x0,g[_0xfbb4fc(0x276)])(_0x3e3f02,_0x2f0dbb);break;case g[_0xfbb4fc(0x11f)][_0xfbb4fc(0x22a)]:_0x2aae90=(0x0,g[_0xfbb4fc(0x28d)])(_0x3e3f02,_0x2f0dbb);break;case g[_0xfbb4fc(0x11f)]['InsertColCommandId']:_0x2aae90=(0x0,g['handleInsertCol'])(_0x3e3f02,_0x2f0dbb);break;case g[_0xfbb4fc(0x11f)][_0xfbb4fc(0x2fd)]:_0x2aae90=(0x0,g['handleInsertRangeMoveDown'])(_0x3e3f02,_0x2f0dbb);break;case g[_0xfbb4fc(0x11f)][_0xfbb4fc(0x34b)]:_0x2aae90=(0x0,g[_0xfbb4fc(0x3d8)])(_0x3e3f02,_0x2f0dbb);break;case g[_0xfbb4fc(0x11f)][_0xfbb4fc(0x33c)]:_0x2aae90=(0x0,g[_0xfbb4fc(0x16f)])(_0x3e3f02,_0x2f0dbb);break;case g[_0xfbb4fc(0x11f)][_0xfbb4fc(0x29c)]:_0x2aae90=(0x0,g[_0xfbb4fc(0x24e)])(_0x3e3f02,_0x2f0dbb);break;case g[_0xfbb4fc(0x11f)]['RemoveColCommandId']:_0x2aae90=(0x0,g[_0xfbb4fc(0x3e6)])(_0x3e3f02,_0x2f0dbb);break;case g[_0xfbb4fc(0x11f)][_0xfbb4fc(0x1af)]:_0x2aae90=(0x0,g[_0xfbb4fc(0x16b)])(_0x3e3f02,_0x2f0dbb);break;}let _0x5188ea=(0x0,g[_0xfbb4fc(0x273)])(_0x2aae90,_0x2f0dbb),_0x750308=this[_0xfbb4fc(0x29d)][_0xfbb4fc(0x246)](_0x4b2c92);if(_0x750308&&_0x5188ea){let _0x4f5eb1={..._0x750308,'range':_0x5188ea};this[_0xfbb4fc(0x29d)][_0xfbb4fc(0x3c2)](_0x4b2c92,_0x4f5eb1),_0x3124ef(()=>{const _0xd4828e=_0xfbb4fc;let _0x2abb97=this[_0xd4828e(0x109)]['registerRefRange'](_0x5188ea,_0x4b7c91=>(_0x2abb97[_0xd4828e(0x1bd)](),_0x1b34cd(_0x4b7c91,_0x4b2c92,_0xf4adff,_0x5188ea)));_0x1d5945[_0xd4828e(0x230)](_0x2abb97);});}return{'redos':[],'undos':[]};};this[_0x25b659(0x29d)][_0x25b659(0x363)]((_0x2a7190,_0x1265b8)=>{const _0x4f1cf8=_0x25b659;let {range:_0x580c82,sheetID:_0x284810}=_0x2a7190,_0x265368=this[_0x4f1cf8(0x109)][_0x4f1cf8(0x40b)](_0x580c82,_0xe42024=>(_0x265368[_0x4f1cf8(0x1bd)](),_0x1b34cd(_0xe42024,_0x1265b8,_0x284810,_0x580c82)));_0x1d5945[_0x4f1cf8(0x230)](_0x265368);});};this[_0x4c8954(0x1c5)]((0x0,t[_0x4c8954(0x406)])(this['_cursorInfo$']['subscribe'](()=>{_0x2614c4();})));}[_0x31b914(0x27d)](){const _0x471f7a=_0x31b914;var _0x4f77b7,_0x53cb94;if(this[_0x471f7a(0x25f)]=!0x0,((_0x4f77b7=this['_univerInstanceService'][_0x471f7a(0x2ef)]())==null?void 0x0:_0x4f77b7[_0x471f7a(0x30c)]())!==this[_0x471f7a(0x2ec)])return;let _0x52cde1=(_0x53cb94=this[_0x471f7a(0x2d6)][_0x471f7a(0x246)](g[_0x471f7a(0x35c)])[_0x471f7a(0x35b)]())==null?void 0x0:_0x53cb94[0x0],_0x1d6a9e=this[_0x471f7a(0x320)][_0x471f7a(0x402)](t[_0x471f7a(0x2f0)][_0x471f7a(0x321)])[_0x471f7a(0x3a7)]();_0x52cde1&&_0x1d6a9e&&this[_0x471f7a(0x279)](_0x1d6a9e[_0x471f7a(0x197)](),_0x52cde1);}[_0x31b914(0x1f1)](){const _0x10b706=_0x31b914;this[_0x10b706(0x25f)]=!0x1;}};k=S([x(0x2,(0x0,t[_0x31b914(0x3f6)])(t['Injector'])),x(0x3,(0x0,t['Inject'])(E)),x(0x4,(0x0,t['Inject'])(e['MemberService'])),x(0x5,t[_0x31b914(0x3e9)]),x(0x6,t[_0x31b914(0x2fb)]),x(0x7,(0x0,t[_0x31b914(0x3f6)])(g['RefRangeService']))],k);let A=class extends t[_0x31b914(0x1a7)]{constructor(_0x19c4d6,_0x3b3611,_0x1a8cdc){const _0x1aa102=_0x31b914;super(),this[_0x1aa102(0x320)]=_0x19c4d6,this[_0x1aa102(0x2d6)]=_0x3b3611,this[_0x1aa102(0x31b)]=_0x1a8cdc,b(this,_0x1aa102(0x123),new Map()),b(this,'_entityInit$',new r['Subject']()),this[_0x1aa102(0x23f)]();}[_0x31b914(0x1bd)](){const _0x4adbd1=_0x31b914;super[_0x4adbd1(0x1bd)](),this[_0x4adbd1(0x355)][_0x4adbd1(0x301)](),this['_entities']['forEach'](_0x12ee86=>_0x12ee86['dispose']());}['getCollabCursors$'](_0x3f8e0b){const _0x35b572=_0x31b914;let _0x502d52=this[_0x35b572(0x123)][_0x35b572(0x246)](_0x3f8e0b);return _0x502d52?_0x502d52[_0x35b572(0x36f)]:this['_entityInit$'][_0x35b572(0x1c3)]((0x0,r[_0x35b572(0x181)])(_0x22c6c4=>_0x22c6c4[_0x35b572(0x2ec)]===_0x3f8e0b),(0x0,r[_0x35b572(0x105)])(_0x11063c=>_0x11063c[_0x35b572(0x36f)]));}[_0x31b914(0x23f)](){const _0x499a8d=_0x31b914;this[_0x499a8d(0x320)]['getTypeOfUnitAdded$'](t[_0x499a8d(0x2f0)][_0x499a8d(0x321)])[_0x499a8d(0x1c3)]((0x0,r['takeUntil'])(this[_0x499a8d(0x1f4)]))[_0x499a8d(0x151)](async _0x573b9e=>{const _0x2bdf51=_0x499a8d;let _0x1edcc5=_0x573b9e['unit'][_0x2bdf51(0x30c)](),_0x404d16=await this[_0x2bdf51(0x1d0)](_0x1edcc5);this[_0x2bdf51(0x355)][_0x2bdf51(0x384)](_0x404d16),this[_0x2bdf51(0x123)][_0x2bdf51(0x3c2)](_0x1edcc5,_0x404d16);}),this[_0x499a8d(0x320)][_0x499a8d(0x282)](t[_0x499a8d(0x2f0)][_0x499a8d(0x221)])[_0x499a8d(0x1c3)]((0x0,r[_0x499a8d(0x256)])(this[_0x499a8d(0x1f4)]))[_0x499a8d(0x1c3)]((0x0,r[_0x499a8d(0x181)])(_0x3f433c=>!_0x3f433c['unit']['getUnitId']()[_0x499a8d(0x394)]('__')))[_0x499a8d(0x151)](async _0x9f8ecd=>{const _0x7f3766=_0x499a8d;let {unit:_0x2929d5}=_0x9f8ecd,_0x4733e1=_0x2929d5['getUnitId'](),_0xacb144=await this['_startDocCollabCursor'](_0x4733e1);this[_0x7f3766(0x355)][_0x7f3766(0x384)](_0xacb144),this['_entities'][_0x7f3766(0x3c2)](_0x4733e1,_0xacb144);}),(0x0,r[_0x499a8d(0x2c9)])(this['_univerInstanceService'][_0x499a8d(0x3f4)](t['UniverInstanceType'][_0x499a8d(0x221)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](t['UniverInstanceType'][_0x499a8d(0x321)]))['pipe']((0x0,r[_0x499a8d(0x256)])(this[_0x499a8d(0x1f4)]))[_0x499a8d(0x151)](_0x333f0e=>{const _0x37f88d=_0x499a8d;let _0x535c26=_0x333f0e['getUnitId'](),_0x3d1537=this[_0x37f88d(0x123)]['get'](_0x535c26);_0x3d1537&&(_0x3d1537[_0x37f88d(0x1bd)](),this[_0x37f88d(0x123)]['delete'](_0x535c26));});}async[_0x31b914(0x1d0)](_0x4b6032){const _0x37076c=_0x31b914;let _0x4c288a=await this[_0x37076c(0x31b)][_0x37076c(0x3c4)](_0x4b6032),_0x353779=this[_0x37076c(0x2d6)][_0x37076c(0x2cb)](k,_0x4b6032,_0x4c288a);return _0x353779[_0x37076c(0x344)](),_0x353779;}async[_0x31b914(0x17d)](_0x48ccc9){const _0x1fd149=_0x31b914;let _0x169a3a=await this[_0x1fd149(0x31b)][_0x1fd149(0x3c4)](_0x48ccc9),_0x83ccbe=this[_0x1fd149(0x2d6)][_0x1fd149(0x2cb)](O,_0x48ccc9,_0x169a3a);return _0x83ccbe[_0x1fd149(0x344)](),_0x83ccbe;}};A=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x31b914(0x3f6)])(t['Injector'])),x(0x2,(0x0,t[_0x31b914(0x3f6)])(e[_0x31b914(0x137)]))],A);function j(_0x407126,_0x2dbb57){const _0x2a389f=_0x31b914;_0x407126[_0x2a389f(0x226)](),_0x407126[_0x2a389f(0x1b5)]='bold\x2013px\x20Arial,\x20sans-serif';let _0x2087f3=_0x407126[_0x2a389f(0x144)](_0x2dbb57)[_0x2a389f(0x3f1)];return _0x407126['restore'](),Math[_0x2a389f(0x3f8)](_0x2087f3+0x8,0xc8);}function pe(_0x183e3b,_0x1eb1fe){const _0x463b7d=_0x31b914;let {radius:_0x3a3def,width:_0x1aac7b,height:_0x40ff58}=_0x1eb1fe;_0x3a3def??=0x0,_0x1aac7b??=0x1e,_0x40ff58??=0x1e;let _0x5b047b=0x0,_0x458054=0x0,_0x35e94b=0x0;_0x5b047b=_0x458054=_0x35e94b=Math['min'](_0x3a3def,_0x1aac7b/0x2,_0x40ff58/0x2),_0x183e3b[_0x463b7d(0x21f)](),_0x183e3b[_0x463b7d(0x21d)](_0x5b047b,0x0),_0x183e3b[_0x463b7d(0x3cd)](_0x1aac7b-_0x458054,0x0),_0x183e3b[_0x463b7d(0x25b)](_0x1aac7b-_0x458054,_0x458054,_0x458054,Math['PI']*0x3/0x2,0x0,!0x1),_0x183e3b[_0x463b7d(0x3cd)](_0x1aac7b,_0x40ff58-_0x35e94b),_0x183e3b['arc'](_0x1aac7b-_0x35e94b,_0x40ff58-_0x35e94b,_0x35e94b,0x0,Math['PI']/0x2,!0x1),_0x183e3b['lineTo'](0x0,_0x40ff58),_0x183e3b[_0x463b7d(0x3cd)](0x0,_0x5b047b),_0x183e3b[_0x463b7d(0x25b)](_0x5b047b,_0x5b047b,_0x5b047b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x183e3b[_0x463b7d(0x3e1)](),_0x1eb1fe[_0x463b7d(0x2ee)]&&(_0x183e3b[_0x463b7d(0x226)](),_0x183e3b[_0x463b7d(0x252)]=_0x1eb1fe[_0x463b7d(0x2ee)],_0x1eb1fe[_0x463b7d(0x3ce)]===_0x463b7d(0x24c)?_0x183e3b['fill']('evenodd'):_0x183e3b[_0x463b7d(0x2ee)](),_0x183e3b[_0x463b7d(0x22d)]());}var me=class e extends p[_0x31b914(0x15c)]{constructor(_0x289fb3,_0x57f1b5){const _0x3f3da9=_0x31b914;super(_0x289fb3,_0x57f1b5),b(this,_0x3f3da9(0x3d1),void 0x0),b(this,_0x3f3da9(0x1a9),void 0x0),this[_0x3f3da9(0x3d1)]=_0x57f1b5==null?void 0x0:_0x57f1b5[_0x3f3da9(0x3d1)],this['text']=_0x57f1b5==null?void 0x0:_0x57f1b5['text'];}static[_0x31b914(0x360)](_0x120414,_0x2a5590){const _0x4ee457=_0x31b914;let {text:_0x275474,color:_0x472881}=_0x2a5590;_0x120414[_0x4ee457(0x226)](),_0x120414['font']=_0x4ee457(0x248);let _0x3dda3d=_0x120414[_0x4ee457(0x144)](_0x275474)[_0x4ee457(0x3f1)];if(pe(_0x120414,{'height':0x14,'radius':0x4,'width':j(_0x120414,_0x275474),'fill':_0x472881,'evented':!0x1}),_0x120414[_0x4ee457(0x252)]='#FFF',_0x3dda3d>0xc0){let _0x119705='',_0x1c1f91=0x0;for(let _0x4cb296 of _0x275474){let _0x415bc6=_0x120414['measureText'](_0x4cb296)[_0x4ee457(0x3f1)];if(_0x1c1f91+_0x415bc6<=0xc0-_0x120414[_0x4ee457(0x144)]('...')[_0x4ee457(0x3f1)])_0x119705+=_0x4cb296,_0x1c1f91+=_0x415bc6;else{_0x119705+='...';break;}}_0x120414['fillText'](_0x119705,0x4,0xf);}else _0x120414[_0x4ee457(0x1c1)](_0x275474,0x4,0xf);_0x120414[_0x4ee457(0x22d)]();}['_draw'](_0x341161){const _0xd617f8=_0x31b914;e[_0xd617f8(0x360)](_0x341161,this);}};const M=_0x31b914(0x25e);var N=class{constructor(_0x49a0fd,_0x4f9f77,_0x16d778,_0x3b0d45){const _0x364586=_0x31b914;this[_0x364586(0x10a)]=_0x49a0fd,this[_0x364586(0x237)]=_0x4f9f77,this[_0x364586(0x22c)]=_0x16d778,this['_document']=_0x3b0d45,b(this,_0x364586(0x267),[]),b(this,_0x364586(0x271),null),b(this,_0x364586(0x23b),null),b(this,_0x364586(0x10f),null),b(this,_0x364586(0x1ee),null),b(this,_0x364586(0x2a7),null),this[_0x364586(0x3b4)]();}set['_hover'](_0x3d2130){const _0x5c57d8=_0x31b914;_0x3d2130?(this[_0x5c57d8(0x10f)]&&this[_0x5c57d8(0x10f)][_0x5c57d8(0x3d9)](),this[_0x5c57d8(0x23b)]&&this[_0x5c57d8(0x23b)]['show']()):(this['_anchorDot']&&this[_0x5c57d8(0x10f)][_0x5c57d8(0x155)](),this['_textBubble']&&this['_textBubble']['hide']());}[_0x31b914(0x1bd)](){const _0x4fef39=_0x31b914;for(let _0x155ac0 of this['_shapes'])_0x155ac0[_0x4fef39(0x1bd)]();this['_textBubble']&&this[_0x4fef39(0x23b)][_0x4fef39(0x1bd)](),this[_0x4fef39(0x10f)]&&this[_0x4fef39(0x10f)]['dispose'](),this[_0x4fef39(0x271)]&&this[_0x4fef39(0x271)][_0x4fef39(0x1bd)](),this[_0x4fef39(0x2a7)]&&this[_0x4fef39(0x2a7)]();}[_0x31b914(0x3b4)](){const _0x203da2=_0x31b914;let {_docSkeleton:_0x5c7b4e,_document:_0x5f3658}=this,{color:_0x25af9c,name:_0x5e56a3,ranges:_0x3cf510}=this['_cursor'],_0x5032c4=_0x5f3658['getOffsetConfig'](),{docsLeft:_0x43151b,docsTop:_0x1a0621}=_0x5032c4,_0xf53fb2=new f[(_0x203da2(0x2c8))](_0x5032c4,_0x5c7b4e);for(let {startOffset:_0x740b73,endOffset:_0x5020e8,rangeType:_0x4d511c,segmentId:_0x2e9479,segmentPage:_0x24e248,collapsed:_0x43a927,isActive:_0x2302a3}of _0x3cf510){let _0x4fe509=_0x5c7b4e[_0x203da2(0x125)](_0x740b73,!0x0,_0x2e9479,_0x24e248),_0x571a32=_0x5c7b4e['findNodePositionByCharIndex'](_0x5020e8,!0x0,_0x2e9479,_0x24e248);_0x571a32??=_0x5c7b4e['findNodePositionByCharIndex'](_0x5020e8-0x1,!0x1,_0x2e9479,_0x24e248);let _0x415a95=he(_0x4fe509,_0x571a32);if(_0x2302a3&&_0x415a95[_0x203da2(0x1c8)]){let {contentBoxPointGroup:_0x56fb3c}=_0xf53fb2[_0x203da2(0x10b)](_0x571a32,_0x571a32);if(_0x56fb3c[_0x203da2(0x18a)]===0x0)continue;this[_0x203da2(0x37a)](_0x25af9c,_0x56fb3c,_0x43151b,_0x1a0621,_0x5e56a3),this[_0x203da2(0x2a7)]=this[_0x203da2(0x240)]();}if(_0x4fe509&&_0x571a32){if(_0x4d511c===t[_0x203da2(0x2e8)]['RECT']){let {pointGroup:_0x260b7a}=new f['NodePositionConvertToRectRange'](_0x5032c4,_0x5c7b4e)[_0x203da2(0x10b)](_0x4fe509,_0x571a32)??{};if(_0x260b7a==null||_0x260b7a[_0x203da2(0x18a)]===0x0)continue;this[_0x203da2(0x2a1)](_0x25af9c,_0x260b7a,_0x43151b,_0x1a0621);}else{if(!_0x43a927&&_0x415a95[_0x203da2(0x1d1)]){let {borderBoxPointGroup:_0x311e54}=_0xf53fb2['getRangePointData'](_0x4fe509,_0x571a32);if(_0x311e54[_0x203da2(0x18a)]===0x0)continue;this[_0x203da2(0x3b7)](_0x25af9c,_0x311e54,_0x43151b,_0x1a0621);}}}}}[_0x31b914(0x37a)](_0x40b857,_0x312d01,_0x2f59d8,_0x35d767,_0x4c69e2){const _0x30f7d2=_0x31b914;let {left:_0x41f555,top:_0x4d4ac7,height:_0x5d08be}=this[_0x30f7d2(0x122)](_0x312d01),_0xda4861=1.5/this[_0x30f7d2(0x302)](),_0x4f3700=new p[(_0x30f7d2(0x10e))](M+(0x0,t[_0x30f7d2(0x174)])(0x6),{'left':_0x41f555+_0x2f59d8-_0xda4861,'top':_0x4d4ac7+_0x35d767,'height':_0x5d08be,'width':1.5,'fill':_0x40b857||(0x0,p[_0x30f7d2(0x1a2)])(t['COLORS'][_0x30f7d2(0x316)],0x0),'strokeWidth':_0xda4861,'stroke':_0x30f7d2(0xff),'evented':!0x0});this[_0x30f7d2(0x271)]=_0x4f3700,this[_0x30f7d2(0x237)][_0x30f7d2(0x40c)](_0x4f3700,f[_0x30f7d2(0x232)]);let _0x5d214f=new p['Rect'](M+(0x0,t[_0x30f7d2(0x174)])(0x6),{'left':_0x41f555+_0x2f59d8-_0xda4861,'top':_0x4d4ac7+_0x35d767-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x40b857||(0x0,p[_0x30f7d2(0x1a2)])(t[_0x30f7d2(0x392)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x40b857||(0x0,p[_0x30f7d2(0x1a2)])(t[_0x30f7d2(0x392)][_0x30f7d2(0x316)],0x0),'evented':!0x1});this[_0x30f7d2(0x10f)]=_0x5d214f,this[_0x30f7d2(0x237)][_0x30f7d2(0x40c)](_0x5d214f,f[_0x30f7d2(0x232)]);let _0x215e29=new me(M+(0x0,t['generateRandomId'])(0x6),{'left':_0x41f555+_0x2f59d8-_0xda4861,'top':_0x4d4ac7+_0x35d767-0x14,'text':_0x4c69e2,'color':_0x40b857});this['_textBubble']=_0x215e29,this['_scene'][_0x30f7d2(0x40c)](_0x215e29,f[_0x30f7d2(0x232)]),this['_hover']=!0x1;}[_0x31b914(0x240)](){const _0x4f899a=_0x31b914;let _0xf0cb35=this['_anchor'][_0x4f899a(0x2b1)][_0x4f899a(0x3fd)](()=>{const _0x3b6d5d=_0x4f899a;this[_0x3b6d5d(0x2f5)]=!0x0;}),_0xb2ede4=this[_0x4f899a(0x271)][_0x4f899a(0x173)][_0x4f899a(0x3fd)](()=>{this['_hideTimer']&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x482207=_0x432a;this[_0x482207(0x2f5)]=!0x1;},0x7d0);});return()=>{const _0x4009d8=_0x4f899a;_0xf0cb35[_0x4009d8(0x338)](),_0xb2ede4['unsubscribe']();};}['_drawTextRange'](_0x3c89f6,_0x3709cc,_0x5691e0,_0x1070d3){const _0x44680a=_0x31b914;let _0x509dfa=0.2,_0xeb046e=new t[(_0x44680a(0x25d))](_0x3c89f6)[_0x44680a(0x2da)](_0x509dfa)[_0x44680a(0x38d)](),_0x49ef0f=new p[(_0x44680a(0x20f))](_0x44680a(0x30d)+(0x0,t[_0x44680a(0x174)])(0x6),{'pointsGroup':_0x3709cc,'fill':_0xeb046e||(0x0,p[_0x44680a(0x1a2)])(t[_0x44680a(0x392)][_0x44680a(0x316)],_0x509dfa),'left':_0x5691e0,'top':_0x1070d3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x44680a(0x267)]['push'](_0x49ef0f),this[_0x44680a(0x237)]['addObject'](_0x49ef0f,f[_0x44680a(0x232)]);}[_0x31b914(0x2a1)](_0x213ea8,_0x3a508a,_0x1bbd8a,_0x13ae76){const _0x37a3b8=_0x31b914;let _0x39f612=0.2,_0x2ad13e=new t['ColorKit'](_0x213ea8)['setAlpha'](_0x39f612)[_0x37a3b8(0x38d)](),_0x1dffae=new p[(_0x37a3b8(0x20f))](_0x37a3b8(0x33e)+(0x0,t[_0x37a3b8(0x174)])(0x6),{'pointsGroup':_0x3a508a,'fill':_0x2ad13e||(0x0,p[_0x37a3b8(0x1a2)])(t['COLORS']['black'],_0x39f612),'left':_0x1bbd8a,'top':_0x13ae76,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x37a3b8(0x267)]['push'](_0x1dffae),this[_0x37a3b8(0x237)][_0x37a3b8(0x40c)](_0x1dffae,f[_0x37a3b8(0x232)]);}[_0x31b914(0x122)](_0x40b34e){let _0x208219=_0x40b34e[0x0],_0x57dae0=_0x208219[0x0],_0x2eace9=_0x208219[0x2],{x:_0x58e625,y:_0x2c2156}=_0x57dae0,{x:_0x5b1949,y:_0x3771de}=_0x2eace9;return{'left':_0x58e625,'top':_0x2c2156,'width':_0x5b1949-_0x58e625,'height':_0x3771de-_0x2c2156};}[_0x31b914(0x302)](){const _0x39ba80=_0x31b914;let {scaleX:_0x2dfc35,scaleY:_0x283c08}=this[_0x39ba80(0x237)][_0x39ba80(0x18b)]();return Math['max'](_0x2dfc35,_0x283c08);}};function he(_0x41f44d,_0x3a8771){const _0x18c369=_0x31b914;if(!_0x3a8771)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x41f44d||_0x41f44d['pageType']!==_0x3a8771[_0x18c369(0x307)]||(_0x41f44d[_0x18c369(0x307)]===p[_0x18c369(0x1b3)][_0x18c369(0x189)]||_0x41f44d['pageType']===p['DocumentSkeletonPageType'][_0x18c369(0x12b)])&&_0x41f44d[_0x18c369(0x140)]!==_0x3a8771[_0x18c369(0x140)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x4e8e0f=(0x0,p[_0x18c369(0x138)])(_0x41f44d),_0x3a9146=(0x0,p[_0x18c369(0x138)])(_0x3a8771);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x4e8e0f==null||_0x3a9146==null?_0x4e8e0f==null&&_0x3a9146==null:_0x4e8e0f[_0x18c369(0x26d)]===_0x3a9146['pageIndex']&&_0x4e8e0f[_0x18c369(0x335)]===_0x3a9146[_0x18c369(0x335)]&&_0x4e8e0f['columnIndex']===_0x3a9146[_0x18c369(0x1a8)]};}let P=class extends t[_0x31b914(0x1a7)]{constructor(_0x56e0fc,_0x219cf3,_0x3549d7,_0x47fe9a,_0xb85d66){const _0x1e9deb=_0x31b914;super(),this[_0x1e9deb(0x3d2)]=_0x56e0fc,this['_docSkeletonManagerService']=_0x219cf3,this[_0x1e9deb(0x152)]=_0x3549d7,this[_0x1e9deb(0x2a3)]=_0x47fe9a,this[_0x1e9deb(0x11b)]=_0xb85d66,b(this,_0x1e9deb(0x107),[]),b(this,_0x1e9deb(0x3b8),[]),this[_0x1e9deb(0x23f)]();}['_init'](){const _0x311a9b=_0x31b914;let _0x4064a7=this[_0x311a9b(0x3d2)]['unitId'],_0x87cb50=this[_0x311a9b(0x2ae)];this['disposeWithMe']((0x0,r[_0x311a9b(0x3ed)])([this[_0x311a9b(0x152)][_0x311a9b(0x3d0)](_0x4064a7),this[_0x311a9b(0x11b)][_0x311a9b(0x2b2)]])[_0x311a9b(0x1c3)]((0x0,i[_0x311a9b(0x2a9)])(([_0x1fc3a3,_0x209efe])=>({'skeleton':_0x87cb50[_0x311a9b(0x339)](),'cursors':[..._0x1fc3a3['values']()]['flatMap'](_0x38a9b4=>({..._0x38a9b4,'color':this['_themeService'][_0x311a9b(0x2dc)](_0x38a9b4[_0x311a9b(0x3d1)])}))})))[_0x311a9b(0x151)](_0x36c2d5=>{const _0xf5465c=_0x311a9b;if(this[_0xf5465c(0x1d2)](),_0x36c2d5){let {skeleton:_0x375591,cursors:_0x5244b8}=_0x36c2d5;this['_updateCollabCursors'](_0x375591,_0x5244b8);}})),this[_0x311a9b(0x361)](),this[_0x311a9b(0x2ca)]();}[_0x31b914(0x3ba)](_0x1918e4,_0x28bdae){const _0x522cbd=_0x31b914;let {scene:_0xbba6c0,mainComponent:_0x39cfcd}=this[_0x522cbd(0x3d2)],_0x456d91=_0x28bdae[_0x522cbd(0x2a9)](_0x42bdfe=>new N(_0x42bdfe,_0xbba6c0,_0x1918e4,_0x39cfcd));this[_0x522cbd(0x107)]=_0x456d91,this['_cursors']=_0x28bdae;}[_0x31b914(0x1cb)](){const _0x5452ee=_0x31b914;this[_0x5452ee(0x1d2)]();let {scene:_0x1617cc,mainComponent:_0x550857}=this[_0x5452ee(0x3d2)],_0x133765=this['_docSkeletonManagerService'][_0x5452ee(0x339)](),_0x2b0164=this[_0x5452ee(0x3b8)][_0x5452ee(0x2a9)](_0x166768=>new N(_0x166768,_0x1617cc,_0x133765,_0x550857));this[_0x5452ee(0x107)]=_0x2b0164;}[_0x31b914(0x1d2)](){const _0x54ee78=_0x31b914;this['_cursorShapes'][_0x54ee78(0x363)](_0x5008b5=>_0x5008b5['dispose']()),this[_0x54ee78(0x107)]=[];}['_initCommandExecutedListener'](){const _0x35e052=_0x31b914;let _0x38c3d1=[f[_0x35e052(0x211)]['id']];this[_0x35e052(0x1c5)](this['_commandService'][_0x35e052(0x180)](_0x53ed00=>{const _0x561540=_0x35e052;_0x38c3d1['includes'](_0x53ed00['id'])&&_0x53ed00[_0x561540(0x3f2)][_0x561540(0x167)]===this[_0x561540(0x3d2)]['unitId']&&this[_0x561540(0x1cb)]();}));}[_0x31b914(0x361)](){const _0x51fce9=_0x31b914;this['disposeWithMe']((0x0,t['fromEventSubject'])(this[_0x51fce9(0x3d2)]['engine']['onTransformChange$'])[_0x51fce9(0x1c3)]((0x0,i[_0x51fce9(0x181)])(_0x496cf6=>_0x496cf6[_0x51fce9(0x165)]===p[_0x51fce9(0x213)][_0x51fce9(0x25c)]),(0x0,i[_0x51fce9(0x294)])(0x10))[_0x51fce9(0x151)](()=>{const _0x42eeaf=_0x51fce9;this[_0x42eeaf(0x1cb)]();}));}};P=S([x(0x1,(0x0,t[_0x31b914(0x3f6)])(d['DocSkeletonManagerService'])),x(0x2,(0x0,t[_0x31b914(0x3f6)])(A)),x(0x3,t[_0x31b914(0x2fb)]),x(0x4,(0x0,t[_0x31b914(0x3f6)])(t['ThemeService']))],P);var ge=class extends p[_0x31b914(0x15c)]{constructor(_0x14ccee,_0x4dcf35){const _0x30bbb3=_0x31b914;super(_0x14ccee,_0x4dcf35),b(this,_0x30bbb3(0x108),void 0x0),b(this,_0x30bbb3(0x380),!0x1),b(this,_0x30bbb3(0x1bb),void 0x0),b(this,_0x30bbb3(0x337),''),b(this,_0x30bbb3(0x3c8),_0x30bbb3(0x2d0)),b(this,_0x30bbb3(0x2af),void 0x0),b(this,'_showText',void 0x0),b(this,_0x30bbb3(0x13d),void 0x0),b(this,'_highlightSecond',0x4),b(this,_0x30bbb3(0x23c),void 0x0),b(this,_0x30bbb3(0x141),void 0x0),b(this,'_isBlinkVisible',!0x0),b(this,_0x30bbb3(0x3c7),0x0),b(this,_0x30bbb3(0x2b9),_0x30bbb3(0x3eb)),_0x4dcf35&&(this[_0x30bbb3(0x3ff)](_0x4dcf35),_0x4dcf35[_0x30bbb3(0x35e)]&&(_0x4dcf35[_0x30bbb3(0x3a1)]??this['_highlightSecond'])&&this[_0x30bbb3(0x241)](_0x4dcf35[_0x30bbb3(0x3a1)]??this[_0x30bbb3(0x11c)])),this[_0x30bbb3(0x2b1)][_0x30bbb3(0x3fd)](()=>this[_0x30bbb3(0x3ff)]({'hovered':!0x0})),this[_0x30bbb3(0x173)][_0x30bbb3(0x3fd)](()=>this[_0x30bbb3(0x3ff)]({'hovered':!0x1}));}[_0x31b914(0x319)](_0x1de9ec){const _0x20b40f=_0x31b914;this[_0x20b40f(0x3c7)]=_0x1de9ec;}[_0x31b914(0x3ff)](_0x55a7bd){const _0x440200=_0x31b914;this['_color']=_0x55a7bd[_0x440200(0x3d1)]??this[_0x440200(0x108)],this['_hovered']=_0x55a7bd['hovered']??this[_0x440200(0x380)],this[_0x440200(0x1bb)]=_0x55a7bd[_0x440200(0x192)]??this[_0x440200(0x1bb)],this[_0x440200(0x337)]=_0x55a7bd[_0x440200(0x1e8)]??this[_0x440200(0x337)],this[_0x440200(0x3c8)]=_0x55a7bd[_0x440200(0x352)]??this[_0x440200(0x3c8)],this[_0x440200(0x2af)]=_0x55a7bd[_0x440200(0x353)]??this[_0x440200(0x2af)],this['_showText']=_0x55a7bd['showText']??this[_0x440200(0x33d)],this[_0x440200(0x2b9)]=_0x55a7bd[_0x440200(0x275)]??this[_0x440200(0x2b9)],_0x55a7bd['highlightSecond']!==void 0x0&&(this['_highlightSecond']=_0x55a7bd[_0x440200(0x3a1)]),_0x55a7bd[_0x440200(0x35e)]!==void 0x0&&(this[_0x440200(0x13d)]=_0x55a7bd[_0x440200(0x35e)]),_0x55a7bd[_0x440200(0x37e)]!==void 0x0&&(this[_0x440200(0x3c7)]=_0x55a7bd[_0x440200(0x37e)]),this['transformByState']({'width':_0x55a7bd[_0x440200(0x3f1)],'height':_0x55a7bd[_0x440200(0x2c1)]});}[_0x31b914(0x217)](_0x31f524){const _0x403767=_0x31b914;let {row:_0x30e35f,column:_0x4abc2b}=_0x31f524;if(_0x30e35f>=this[_0x403767(0x1bb)][_0x403767(0x119)]&&_0x30e35f<=this[_0x403767(0x1bb)][_0x403767(0x199)]&&_0x4abc2b>=this[_0x403767(0x1bb)]['startColumn']&&_0x4abc2b<=this[_0x403767(0x1bb)][_0x403767(0x332)]){this[_0x403767(0x3ff)]({'hovered':!0x0});return;}this[_0x403767(0x3ff)]({'hovered':!0x1});}['_startBlinking'](_0x19da85){const _0x556130=_0x31b914;this[_0x556130(0x13e)](),this['_isBlinkVisible']=!0x0,this['_blinkIntervalTimer']=window[_0x556130(0x1ca)](()=>{const _0x3e1428=_0x556130;this[_0x3e1428(0x3c5)]=!this[_0x3e1428(0x3c5)],this[_0x3e1428(0x37c)](!0x0);},0x1f4),this[_0x556130(0x23c)]=window[_0x556130(0x2db)](()=>{const _0x2f9a93=_0x556130;this[_0x2f9a93(0x13e)](),this['_isBlinkVisible']=!0x0,this[_0x2f9a93(0x37c)](!0x0);},_0x19da85*0x3e8);}['_stopBlinking'](){const _0x384d7a=_0x31b914;this[_0x384d7a(0x141)]&&=(window[_0x384d7a(0x3c1)](this[_0x384d7a(0x141)]),void 0x0),this['_blinkTimer']&&=(window[_0x384d7a(0x18d)](this['_blinkTimer']),void 0x0);}[_0x31b914(0x268)](_0x3d82d8){return!0x1;}['dispose'](){const _0x3f56a5=_0x31b914;this['_stopBlinking'](),super[_0x3f56a5(0x1bd)]();}[_0x31b914(0x135)](_0x53d1ff){const _0xa4e246=_0x31b914;let _0x1646c0=this['_color'],_0x252314=this['_backgroundColor'];if(this[_0xa4e246(0x13d)]&&!this[_0xa4e246(0x3c5)]&&(_0x1646c0=this[_0xa4e246(0x3ae)](this[_0xa4e246(0x108)]),_0x252314=this[_0xa4e246(0x2af)]?this[_0xa4e246(0x3ae)](this[_0xa4e246(0x2af)]):void 0x0),p[_0xa4e246(0x10e)]['drawWith'](_0x53d1ff,{'width':this[_0xa4e246(0x3f1)],'height':this[_0xa4e246(0x2c1)],'strokeWidth':this[_0xa4e246(0x35f)]||1.5,'stroke':_0x1646c0,'evented':!0x1,'fill':_0x252314}),this[_0xa4e246(0x380)]||this[_0xa4e246(0x33d)]){_0x53d1ff[_0xa4e246(0x226)]();let _0x309039=this[_0xa4e246(0x2b9)]===_0xa4e246(0x112)?-j(_0x53d1ff,this['_name']):this[_0xa4e246(0x3f1)];_0x53d1ff[_0xa4e246(0x387)](0x1,0x0,0x0,0x1,_0x309039,(this['_labelPosition']===_0xa4e246(0x2be)?0x0:-0x14)+(this[_0xa4e246(0x3c7)]??0x0)),me[_0xa4e246(0x360)](_0x53d1ff,{'text':this[_0xa4e246(0x337)],'color':_0x1646c0}),_0x53d1ff[_0xa4e246(0x22d)]();}}['_getLighterColor'](_0x565e80){const _0x52f695=_0x31b914;return _0x565e80[_0x52f695(0x394)]('#')?_0x52f695(0x120)+Number[_0x52f695(0x1b4)](_0x565e80['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x52f695(0x1b4)](_0x565e80['slice'](0x3,0x5),0x10)+',\x20'+Number[_0x52f695(0x1b4)](_0x565e80[_0x52f695(0x3e7)](0x5,0x7),0x10)+_0x52f695(0x223):_0x565e80[_0x52f695(0x394)](_0x52f695(0x38e))?_0x565e80[_0x52f695(0x386)](/[\d.]+\)$/g,_0x52f695(0x1e4)):_0x565e80['startsWith'](_0x52f695(0x178))?_0x565e80[_0x52f695(0x386)]('rgb',_0x52f695(0x38e))[_0x52f695(0x386)](')',',\x200.2)'):_0x565e80;}};let F=class extends t[_0x31b914(0x1a7)]{constructor(_0x2981a7,_0x4e0b2a,_0x2ee1a0,_0x513a88){const _0x598ad9=_0x31b914;super(),this[_0x598ad9(0x3d2)]=_0x2981a7,this[_0x598ad9(0x131)]=_0x4e0b2a,this['_collabCursorController']=_0x2ee1a0,this[_0x598ad9(0x11b)]=_0x513a88,b(this,_0x598ad9(0x3b8),new Set()),b(this,_0x598ad9(0x133),null),b(this,_0x598ad9(0x369),null),this[_0x598ad9(0x23f)]();}[_0x31b914(0x23f)](){const _0x5794d3=_0x31b914;this[_0x5794d3(0x131)][_0x5794d3(0x351)][_0x5794d3(0x1c3)]((0x0,i['takeUntil'])(this[_0x5794d3(0x1f4)]),(0x0,i['switchMap'])(_0xff5ca=>{const _0x2c96c4=_0x5794d3;if(_0xff5ca){let _0x30632e=_0xff5ca[_0x2c96c4(0x2bd)];return(0x0,r[_0x2c96c4(0x3ed)])(this[_0x2c96c4(0x152)][_0x2c96c4(0x3d0)](this[_0x2c96c4(0x3d2)][_0x2c96c4(0x167)]),this[_0x2c96c4(0x11b)]['currentTheme$'])[_0x2c96c4(0x1c3)]((0x0,i[_0x2c96c4(0x2a9)])(([_0x518b7e,_0x5b1198])=>{const _0x7a499=_0x2c96c4;let _0x2296dd=new Map();return _0x518b7e[_0x7a499(0x363)]((_0x4c41ca,_0x150b3b)=>{const _0x2e8dde=_0x7a499;if(_0x4c41ca['sheetID']===_0x30632e){let _0x11d778={..._0x4c41ca};_0x11d778['color']=this[_0x2e8dde(0x11b)][_0x2e8dde(0x2dc)](_0x4c41ca[_0x2e8dde(0x3d1)]),_0x2296dd[_0x2e8dde(0x3c2)](_0x150b3b,_0x11d778);}}),{'skeleton':_0xff5ca,'cursors':_0x2296dd};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x5794d3(0x151)](({skeleton:_0x24efc8,cursors:_0x31e75a})=>{const _0x281953=_0x5794d3;this[_0x281953(0x1d2)](),_0x24efc8&&this[_0x281953(0x3ba)](_0x24efc8,_0x31e75a);}),this['disposeWithMe'](this[_0x5794d3(0x131)][_0x5794d3(0x351)][_0x5794d3(0x1c3)]((0x0,i['takeUntil'])(this['dispose$']))[_0x5794d3(0x151)](_0x3a4fc5=>{const _0x44641e=_0x5794d3;var _0x32c1b4;if(_0x3a4fc5==null)return;(_0x32c1b4=this[_0x44641e(0x369)])==null||_0x32c1b4['unsubscribe'](),this[_0x44641e(0x369)]=null;let {skeleton:_0x259068}=_0x3a4fc5,{scene:_0x143583}=this[_0x44641e(0x3d2)];this['_pointerMoveDisposable']=_0x143583[_0x44641e(0x1c7)]['subscribeEvent']((0x0,t[_0x44641e(0x371)])(_0xad7684=>{const _0x4fcc75=_0x44641e;var _0x240bf3,_0x3e1356;let {offsetX:_0x4f078f,offsetY:_0x15c9f8}=_0xad7684,{x:_0x18b585,y:_0x3d575a}=_0x143583[_0x4fcc75(0x2c0)](p[_0x4fcc75(0x354)][_0x4fcc75(0x3c6)]([_0x4f078f,_0x15c9f8])),{scaleX:_0x15b9ae,scaleY:_0x41c9f1}=_0x143583['getAncestorScale'](),_0x4755a3=_0x143583[_0x4fcc75(0x3b1)](p['SHEET_VIEWPORT_KEY'][_0x4fcc75(0x31e)]),_0x1e489c=_0x143583[_0x4fcc75(0x3ef)](p[_0x4fcc75(0x354)]['FromArray']([_0x18b585,_0x3d575a]),_0x4755a3),_0x120b96=_0x259068[_0x4fcc75(0x25a)](_0x4f078f,_0x15c9f8,_0x15b9ae,_0x41c9f1,_0x1e489c);(((_0x240bf3=this[_0x4fcc75(0x133)])==null?void 0x0:_0x240bf3['column'])!==_0x120b96[_0x4fcc75(0x281)]||((_0x3e1356=this[_0x4fcc75(0x133)])==null?void 0x0:_0x3e1356[_0x4fcc75(0x1fa)])!==_0x120b96[_0x4fcc75(0x1fa)])&&this[_0x4fcc75(0x3b8)][_0x4fcc75(0x363)](_0x4b8d50=>{_0x4b8d50['onMouseMove'](_0x120b96);});},0x64));})),this[_0x5794d3(0x1c5)]((0x0,t[_0x5794d3(0x406)])(()=>{const _0x116c2a=_0x5794d3;var _0x2dba3e;(_0x2dba3e=this[_0x116c2a(0x369)])==null||_0x2dba3e[_0x116c2a(0x338)](),this['_pointerMoveDisposable']=null;}));}[_0x31b914(0x3ba)](_0xec42dd,_0x3f01d6){const _0xfd71a5=_0x31b914;let _0x2179a3=this[_0xfd71a5(0x131)][_0xfd71a5(0x11e)]();if(!_0x2179a3)return;let _0x1a2f19=this['_getSheetObject']();if(!_0x1a2f19)return;this[_0xfd71a5(0x3b8)][_0xfd71a5(0x363)](_0x5d7248=>{const _0x95f02e=_0xfd71a5;_0x5d7248[_0x95f02e(0x37c)]();});let {scene:_0x18435d}=_0x1a2f19,_0x4b5cfe=_e(Array[_0xfd71a5(0x391)](_0x3f01d6[_0xfd71a5(0x292)]()))['map'](_0x479879=>{const _0x1123bb=_0xfd71a5;let {color:_0x5bc464,range:_0x4d7d07,name:_0x55de8a,selection:_0x1e8d58,sheetID:_0x54c926}=_0x479879,{startColumn:_0x2f8b53,startRow:_0x147830,endColumn:_0x5454c5,endRow:_0x4c5d61}=_0x4d7d07,_0x2fc68b=(0x0,_[_0x1123bb(0x27c)])(_0x147830,_0x2f8b53,_0x18435d,_0x2179a3),_0x202122=(0x0,_[_0x1123bb(0x27c)])(_0x4c5d61,_0x5454c5,_0x18435d,_0x2179a3),{columnHeaderHeightAndMarginTop:_0x13d261}=_0x2179a3,{startX:_0x20a573,startY:_0x3c368f}=_0x2fc68b,{endX:_0x2dcce2,endY:_0x49a93f}=_0x202122,_0x5c25eb=_0x2dcce2-_0x20a573,_0x4ed057=_0x49a93f-_0x3c368f;return new ge(_0x55de8a,{'labelPosition':_0x3c368f-_0x13d261>=0x14?_0x1123bb(0x2d0):_0x1123bb(0x2be),'sheetID':_0x54c926,'range':_0x4d7d07,'color':_0x5bc464,'name':_0x55de8a,'selection':_0x1e8d58,'left':_0x20a573,'top':_0x3c368f,'width':_0x5c25eb,'height':_0x4ed057,'evented':!0x1,'zIndex':0x1389});});_0x18435d[_0xfd71a5(0x106)](_0x4b5cfe,0x1),this[_0xfd71a5(0x3b8)]=new Set(_0x4b5cfe);}[_0x31b914(0x1d2)](){const _0x383f89=_0x31b914;var _0x29893c;(_0x29893c=this['_cursors'])==null||_0x29893c[_0x383f89(0x363)](_0x42ff26=>_0x42ff26['dispose']());}[_0x31b914(0x31c)](){const _0xfa8786=_0x31b914;return(0x0,_[_0xfa8786(0x166)])(this[_0xfa8786(0x3d2)][_0xfa8786(0x14f)],this[_0xfa8786(0x3d2)]);}};F=S([x(0x1,(0x0,t[_0x31b914(0x3f6)])(_[_0x31b914(0x186)])),x(0x2,(0x0,t[_0x31b914(0x3f6)])(A)),x(0x3,(0x0,t[_0x31b914(0x3f6)])(t[_0x31b914(0x14e)]))],F);function _e(_0x5810d8){const _0x54b81d=_0x31b914;let _0x383381=new Map();return _0x5810d8[_0x54b81d(0x363)](_0x48688a=>{const _0x553632=_0x54b81d;if(_0x383381[_0x553632(0x218)](_0x48688a[_0x553632(0x216)])){let _0x5dd9ea=_0x383381[_0x553632(0x246)](_0x48688a[_0x553632(0x216)]);_0x5dd9ea['name']+=',\x20'+_0x48688a[_0x553632(0x1e8)];}else _0x383381[_0x553632(0x3c2)](_0x48688a[_0x553632(0x216)],_0x48688a);}),Array[_0x54b81d(0x391)](_0x383381[_0x54b81d(0x292)]());}function I(_0x320779){const _0x5ed254=_0x31b914;return typeof _0x320779==_0x5ed254(0x22b)&&!!_0x320779;}function ve(_0x1ae033){const _0x14a4ca=_0x31b914;return _0x1ae033['eventID']===l[_0x14a4ca(0x1f8)][_0x14a4ca(0x1a1)]&&_0x14a4ca(0x2b6)in _0x1ae033&&I(_0x1ae033['data'])&&typeof _0x1ae033[_0x14a4ca(0x2b6)]['memberID']==_0x14a4ca(0x184)&&typeof _0x1ae033[_0x14a4ca(0x2b6)][_0x14a4ca(0x216)]==_0x14a4ca(0x184);}function _0x432a(_0x22722f,_0x3b0b72){_0x22722f=_0x22722f-0xfe;const _0x2abbcd=_0x2abb();let _0x432afa=_0x2abbcd[_0x22722f];return _0x432afa;}function ye(_0x537ffb){const _0x425feb=_0x31b914;return _0x537ffb[_0x425feb(0x3cf)]===l[_0x425feb(0x1f8)][_0x425feb(0x16d)]&&_0x425feb(0x2b6)in _0x537ffb&&I(_0x537ffb[_0x425feb(0x2b6)])&&typeof _0x537ffb[_0x425feb(0x2b6)][_0x425feb(0x2f4)]==_0x425feb(0x184);}function be(_0x5731c7,_0x133f9c){const _0x5e60e9=_0x31b914;let _0x584318;try{_0x584318=JSON[_0x5e60e9(0x2c4)](_0x5731c7);}catch{return null;}if(!I(_0x584318)||typeof _0x584318['kind']!=_0x5e60e9(0x184)||typeof _0x584318[_0x5e60e9(0x167)]!='string'||typeof _0x584318[_0x5e60e9(0x196)]!=_0x5e60e9(0x184))return null;let _0x38ff70=typeof _0x584318['unitType']==_0x5e60e9(0x250)?_0x584318['unitType']:_0x133f9c;if(_0x38ff70==null)return null;let _0x1dcbd6=I(_0x584318['pointer'])&&typeof _0x584318[_0x5e60e9(0x17b)]['x']==_0x5e60e9(0x250)&&Number['isFinite'](_0x584318[_0x5e60e9(0x17b)]['x'])&&typeof _0x584318[_0x5e60e9(0x17b)]['y']=='number'&&Number[_0x5e60e9(0x198)](_0x584318[_0x5e60e9(0x17b)]['y'])?{'x':_0x584318['pointer']['x'],'y':_0x584318[_0x5e60e9(0x17b)]['y']}:null;return{'kind':_0x584318[_0x5e60e9(0x1ba)],'unitType':_0x38ff70,'unitId':_0x584318[_0x5e60e9(0x167)],'subUnitId':_0x584318[_0x5e60e9(0x196)],'selectedIds':Array[_0x5e60e9(0x2e1)](_0x584318['selectedIds'])?_0x584318[_0x5e60e9(0x1b1)][_0x5e60e9(0x181)](_0x5066d4=>typeof _0x5066d4==_0x5e60e9(0x184)):[],'focusedId':typeof _0x584318['focusedId']==_0x5e60e9(0x184)?_0x584318[_0x5e60e9(0x347)]:null,'pointer':_0x1dcbd6};}function xe(_0x816f49,_0x2a89c3,_0x94b2f2){const _0x70d8f6=_0x31b914;return{'kind':_0x2a89c3,'unitType':_0x816f49,'unitId':_0x94b2f2[_0x70d8f6(0x167)],'subUnitId':_0x94b2f2[_0x70d8f6(0x196)],'selectedIds':Array[_0x70d8f6(0x391)](_0x94b2f2[_0x70d8f6(0x1b1)]),'focusedId':_0x94b2f2[_0x70d8f6(0x347)],'pointer':_0x94b2f2[_0x70d8f6(0x17b)]?{..._0x94b2f2[_0x70d8f6(0x17b)]}:null};}let L=class extends t['RxDisposable']{constructor(_0x152219,_0x8f973f,_0x489ed0,_0x38a7aa,_0x206dad,_0x41f429){const _0xcf36bd=_0x31b914;super(),this['unitId']=_0x152219,this[_0xcf36bd(0x1a3)]=_0x8f973f,this[_0xcf36bd(0x383)]=_0x489ed0,this[_0xcf36bd(0x23a)]=_0x38a7aa,this[_0xcf36bd(0x278)]=_0x206dad,this[_0xcf36bd(0x2a3)]=_0x41f429,b(this,_0xcf36bd(0x25f),!0x1),b(this,_0xcf36bd(0x203),!0x1);}get[_0x31b914(0x238)](){const _0x13372c=_0x31b914;return this[_0x13372c(0x383)][_0x13372c(0x238)];}[_0x31b914(0x1bd)](){const _0x179fd1=_0x31b914;this[_0x179fd1(0x15e)](),super[_0x179fd1(0x1bd)]();}[_0x31b914(0x344)](){const _0x301560=_0x31b914;this[_0x301560(0x203)]||(this['_initialized']=!0x0,this['_session']['sessionStatus$'][_0x301560(0x1c3)]((0x0,r['takeUntil'])(this[_0x301560(0x1f4)]))[_0x301560(0x151)](_0x1cb38b=>{const _0x4e1c18=_0x301560;if(_0x1cb38b===e['SessionStatus'][_0x4e1c18(0x396)]){this['_online']=!0x0;let _0x4f7201=this[_0x4e1c18(0x383)][_0x4e1c18(0x143)](this[_0x4e1c18(0x167)]);_0x4f7201&&this[_0x4e1c18(0x228)](_0x4f7201);return;}this[_0x4e1c18(0x25f)]=!0x1,this[_0x4e1c18(0x15e)]();}),this[_0x301560(0x1a3)][_0x301560(0x2bc)][_0x301560(0x1c3)]((0x0,r['takeUntil'])(this['dispose$']))['subscribe'](_0x5e7530=>{const _0x40d31a=_0x301560;ve(_0x5e7530)?this[_0x40d31a(0x20b)](_0x5e7530):ye(_0x5e7530)&&this[_0x40d31a(0x12f)](_0x5e7530[_0x40d31a(0x2b6)][_0x40d31a(0x2f4)]);}),this[_0x301560(0x383)][_0x301560(0x298)][_0x301560(0x1c3)]((0x0,r[_0x301560(0x181)])(_0x417c8b=>this[_0x301560(0x25f)]&&_0x417c8b['unitId']===this[_0x301560(0x167)]),(0x0,r[_0x301560(0x2d2)])(_0x1bd119=>(0x0,r[_0x301560(0x3b9)])(_0x1bd119['shareInterval']),{'leading':!0x0,'trailing':!0x0}),(0x0,r[_0x301560(0x256)])(this[_0x301560(0x1f4)]))[_0x301560(0x151)](_0x5896aa=>this['_sendLocalPresence'](_0x5896aa)));}[_0x31b914(0x228)](_0x29ddf1){const _0x1975bb=_0x31b914;let _0x55ffca=this[_0x1975bb(0x1a3)][_0x1975bb(0x331)]();if(!_0x55ffca||!this[_0x1975bb(0x25f)])return;let _0x5568e5={'eventID':l['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x1975bb(0x167)],'memberID':_0x55ffca,'selection':JSON[_0x1975bb(0x117)](xe(this[_0x1975bb(0x238)],this['_adapter'][_0x1975bb(0x21e)],_0x29ddf1))}};this[_0x1975bb(0x1a3)][_0x1975bb(0x297)](_0x5568e5,this[_0x1975bb(0x167)])['catch'](()=>void 0x0);}[_0x31b914(0x20b)](_0xb270da){const _0x1968b9=_0x31b914;let {memberID:_0x38fa60,selection:_0x524428}=_0xb270da[_0x1968b9(0x2b6)];if(_0x38fa60===this[_0x1968b9(0x1a3)][_0x1968b9(0x331)]())return;let _0x574425=be(_0x524428,this[_0x1968b9(0x238)]);if(!_0x574425||_0x574425[_0x1968b9(0x1ba)]!==this[_0x1968b9(0x383)][_0x1968b9(0x21e)]||_0x574425[_0x1968b9(0x238)]!==this[_0x1968b9(0x238)]||_0x574425[_0x1968b9(0x167)]!==this[_0x1968b9(0x167)])return;let _0x1a907e=this[_0x1968b9(0x278)][_0x1968b9(0x2c6)](this[_0x1968b9(0x167)],_0x38fa60),_0x1b2ad3={'unitId':_0x574425[_0x1968b9(0x167)],'subUnitId':_0x574425[_0x1968b9(0x196)],'selectedIds':_0x574425[_0x1968b9(0x1b1)],'focusedId':_0x574425[_0x1968b9(0x347)],'pointer':_0x574425[_0x1968b9(0x17b)],'memberId':_0x38fa60,'color':this[_0x1968b9(0x23a)][_0x1968b9(0x374)](_0x38fa60),'name':(_0x1a907e==null?void 0x0:_0x1a907e[_0x1968b9(0x1e8)])??_0x38fa60};this[_0x1968b9(0x2a3)]['executeCommand'](w['id'],{'unitType':this[_0x1968b9(0x238)],'update':{'type':'set','state':_0x1b2ad3}})[_0x1968b9(0x362)](()=>void 0x0);}[_0x31b914(0x12f)](_0x5649f5){const _0x2634e4=_0x31b914;this[_0x2634e4(0x2a3)][_0x2634e4(0x26c)](w['id'],{'unitType':this[_0x2634e4(0x238)],'update':{'type':_0x2634e4(0x247),'unitId':this[_0x2634e4(0x167)],'memberId':_0x5649f5}})['catch'](()=>void 0x0);}['_clearRemotePresences'](){const _0x450e13=_0x31b914;this[_0x450e13(0x2a3)]['executeCommand'](w['id'],{'unitType':this['unitType'],'update':{'type':'clear','unitId':this[_0x450e13(0x167)]}})['catch'](()=>void 0x0);}};L=S([x(0x3,(0x0,t['Inject'])(E)),x(0x4,(0x0,t[_0x31b914(0x3f6)])(e['MemberService'])),x(0x5,(0x0,t['Inject'])(t['ICommandService']))],L);let R=class extends t[_0x31b914(0x1a7)]{constructor(_0x4855a0,_0x408666,_0x2c1d5f,_0x4924b3){const _0x18f320=_0x31b914;super(),this[_0x18f320(0x320)]=_0x4855a0,this['_injector']=_0x408666,this[_0x18f320(0x31b)]=_0x2c1d5f,this[_0x18f320(0x274)]=_0x4924b3,b(this,'_isDisposed',!0x1),b(this,'_entities',new Map()),b(this,_0x18f320(0x2ce),new Map()),b(this,_0x18f320(0x3a0),new Map()),this['_init']();}[_0x31b914(0x1bd)](){const _0x39a131=_0x31b914;this['_isDisposed']=!0x0,this[_0x39a131(0x3a0)][_0x39a131(0x363)](_0x583b60=>_0x583b60[_0x39a131(0x1bd)]()),this['_adapterDisposables'][_0x39a131(0x114)](),this['_entities']['forEach'](_0x1b2191=>_0x1b2191[_0x39a131(0x1bd)]()),this[_0x39a131(0x123)]['clear'](),this[_0x39a131(0x2ce)][_0x39a131(0x114)](),super['dispose']();}[_0x31b914(0x23f)](){const _0x401cd7=_0x31b914;this['_adapterRegistry']['adapters$']['pipe']((0x0,r[_0x401cd7(0x256)])(this['dispose$']))['subscribe'](_0x4764cc=>this[_0x401cd7(0x100)](_0x4764cc));}['_syncAdapters'](_0x4d7d8d){const _0x336bfd=_0x31b914;let _0x56efcb=new Set(_0x4d7d8d[_0x336bfd(0x2a9)](_0x45b451=>_0x45b451[_0x336bfd(0x238)]));this[_0x336bfd(0x3a0)][_0x336bfd(0x363)]((_0x6cff2e,_0x20b3be)=>{const _0x17469e=_0x336bfd;_0x56efcb[_0x17469e(0x218)](_0x20b3be)||(_0x6cff2e['dispose'](),this[_0x17469e(0x3a0)][_0x17469e(0x255)](_0x20b3be),this[_0x17469e(0x31a)](_0x20b3be));}),_0x4d7d8d[_0x336bfd(0x363)](_0x3f75c1=>{const _0x65624=_0x336bfd;this[_0x65624(0x3a0)]['has'](_0x3f75c1[_0x65624(0x238)])||this[_0x65624(0x350)](_0x3f75c1);});}[_0x31b914(0x350)](_0x2dd75f){const _0x3321bd=_0x31b914;let _0x212465=new t[(_0x3321bd(0x27e))]();this['_adapterDisposables']['set'](_0x2dd75f[_0x3321bd(0x238)],_0x212465),_0x212465['add'](_0x2dd75f[_0x3321bd(0x1f7)]()),this['_univerInstanceService']['getAllUnitsForType'](_0x2dd75f[_0x3321bd(0x238)])[_0x3321bd(0x363)](_0x36342c=>this[_0x3321bd(0x326)](_0x36342c[_0x3321bd(0x30c)](),_0x2dd75f)['catch'](()=>void 0x0));let _0x928bf2=this[_0x3321bd(0x320)][_0x3321bd(0x282)](_0x2dd75f['unitType'])[_0x3321bd(0x151)](({unit:_0x19a09c})=>this[_0x3321bd(0x326)](_0x19a09c[_0x3321bd(0x30c)](),_0x2dd75f)[_0x3321bd(0x362)](()=>void 0x0));_0x212465[_0x3321bd(0x230)]((0x0,t[_0x3321bd(0x406)])(()=>_0x928bf2[_0x3321bd(0x338)]()));let _0x1839c0=this[_0x3321bd(0x320)]['getTypeOfUnitDisposed$'](_0x2dd75f[_0x3321bd(0x238)])[_0x3321bd(0x151)](_0x416ab0=>this[_0x3321bd(0x34c)](_0x416ab0[_0x3321bd(0x30c)]()));_0x212465[_0x3321bd(0x230)]((0x0,t[_0x3321bd(0x406)])(()=>_0x1839c0[_0x3321bd(0x338)]()));}async[_0x31b914(0x326)](_0x4744e4,_0x10902b){const _0x46b95a=_0x31b914;if(this['_entities'][_0x46b95a(0x218)](_0x4744e4)||this[_0x46b95a(0x2ce)][_0x46b95a(0x218)](_0x4744e4))return;let _0x597017={};this[_0x46b95a(0x2ce)][_0x46b95a(0x3c2)](_0x4744e4,_0x597017);let _0x1e9cbe=await this[_0x46b95a(0x31b)]['requireSession'](_0x4744e4)['catch'](_0x1c8a13=>{const _0x128711=_0x46b95a;throw this[_0x128711(0x2ce)][_0x128711(0x246)](_0x4744e4)===_0x597017&&this['_pendingEntities'][_0x128711(0x255)](_0x4744e4),_0x1c8a13;});if(this['_isDisposed']||this[_0x46b95a(0x2ce)][_0x46b95a(0x246)](_0x4744e4)!==_0x597017||this[_0x46b95a(0x274)][_0x46b95a(0x246)](_0x10902b[_0x46b95a(0x238)])!==_0x10902b){this[_0x46b95a(0x2ce)][_0x46b95a(0x246)](_0x4744e4)===_0x597017&&this['_pendingEntities'][_0x46b95a(0x255)](_0x4744e4);return;}let _0x2b192d=this[_0x46b95a(0x2d6)][_0x46b95a(0x2cb)](L,_0x4744e4,_0x1e9cbe,_0x10902b);_0x2b192d[_0x46b95a(0x344)](),this[_0x46b95a(0x2ce)][_0x46b95a(0x255)](_0x4744e4),this[_0x46b95a(0x123)][_0x46b95a(0x3c2)](_0x4744e4,_0x2b192d);}[_0x31b914(0x34c)](_0x329759){const _0x21143d=_0x31b914;this[_0x21143d(0x2ce)][_0x21143d(0x255)](_0x329759);let _0x5b6230=this[_0x21143d(0x123)][_0x21143d(0x246)](_0x329759);_0x5b6230&&(_0x5b6230[_0x21143d(0x1bd)](),this[_0x21143d(0x123)]['delete'](_0x329759));}[_0x31b914(0x31a)](_0x21b088){const _0x9e8cf6=_0x31b914;this[_0x9e8cf6(0x320)][_0x9e8cf6(0x36c)](_0x21b088)[_0x9e8cf6(0x363)](_0x17325e=>this[_0x9e8cf6(0x2ce)]['delete'](_0x17325e[_0x9e8cf6(0x30c)]())),Array['from'](this['_entities'][_0x9e8cf6(0x1db)]())[_0x9e8cf6(0x363)](([_0x1dd94a,_0x288285])=>{const _0x1c4bbe=_0x9e8cf6;_0x288285['unitType']===_0x21b088&&this[_0x1c4bbe(0x34c)](_0x1dd94a);});}};R=S([x(0x0,t[_0x31b914(0x3e9)]),x(0x1,(0x0,t[_0x31b914(0x3f6)])(t[_0x31b914(0x3a6)])),x(0x2,(0x0,t[_0x31b914(0x3f6)])(e[_0x31b914(0x137)])),x(0x3,(0x0,t[_0x31b914(0x3f6)])(n[_0x31b914(0x3fe)]))],R);let z=class extends t[_0x31b914(0x382)]{constructor(_0x166ad7,_0x214ca5,_0x2b0b73,_0x5403ac,_0x3d9c70,_0x537b1d){const _0x70e0c9=_0x31b914;super(),this['_beforeCloseService']=_0x166ad7,this[_0x70e0c9(0x172)]=_0x214ca5,this[_0x70e0c9(0x21b)]=_0x2b0b73,this['_messageService']=_0x5403ac,this['_notificationService']=_0x3d9c70,this[_0x70e0c9(0x242)]=_0x537b1d,this['_setupBeforeClosingHandler'](),this[_0x70e0c9(0x329)]();}[_0x31b914(0x34d)](){const _0xe0871e=_0x31b914;this[_0xe0871e(0x1c5)](this[_0xe0871e(0x30f)][_0xe0871e(0x3e3)](()=>{const _0xa9fbda=_0xe0871e;if(this[_0xa9fbda(0x172)][_0xa9fbda(0x32c)][_0xa9fbda(0x345)])return this[_0xa9fbda(0x242)]['t'](_0xa9fbda(0x322));}));}['_initEvent'](){const _0x561d16=_0x31b914;this[_0x561d16(0x1c5)](this[_0x561d16(0x21b)]['event$'][_0x561d16(0x151)](_0x544088=>{const _0x5104d5=_0x561d16;_0x544088['id']===e[_0x5104d5(0x359)][_0x5104d5(0x1e1)]&&this[_0x5104d5(0x26e)][_0x5104d5(0x155)]({'type':a[_0x5104d5(0x190)][_0x5104d5(0x24f)],'content':this[_0x5104d5(0x242)]['t'](_0x5104d5(0x26b))}),_0x544088['id']===e[_0x5104d5(0x359)][_0x5104d5(0x19d)]&&this['_messageService'][_0x5104d5(0x155)]({'type':a[_0x5104d5(0x190)][_0x5104d5(0x24f)],'content':this[_0x5104d5(0x242)]['t']('collaboration-client-ui.collaboration.closeRoom')}),_0x544088['id']===e[_0x5104d5(0x359)][_0x5104d5(0x1f0)]&&this['_notificationService'][_0x5104d5(0x155)]({'title':this[_0x5104d5(0x242)]['t'](_0x5104d5(0x20a)),'content':this[_0x5104d5(0x242)]['t'](_0x5104d5(0x24b)),'type':_0x5104d5(0x2d4),'duration':0x0}),_0x544088['id']===e['CollaborationUIEventId'][_0x5104d5(0x2aa)]&&this[_0x5104d5(0x1c9)][_0x5104d5(0x155)]({'title':this[_0x5104d5(0x242)]['t'](_0x5104d5(0x1ff)),'content':this['_localeService']['t']('collaboration-client-ui.conflict.content'),'type':_0x5104d5(0x2d4),'duration':0x0}),_0x544088['id']===e[_0x5104d5(0x359)][_0x5104d5(0x334)]&&this['_messageService']['show']({'type':a[_0x5104d5(0x190)][_0x5104d5(0x24f)],'content':this[_0x5104d5(0x242)]['t'](_0x544088[_0x5104d5(0x2b6)]||'')}),_0x544088['id']===e[_0x5104d5(0x359)][_0x5104d5(0x1eb)]&&this['_messageService'][_0x5104d5(0x155)]({'type':a[_0x5104d5(0x190)]['Warning'],'content':this['_localeService']['t'](_0x5104d5(0x1fd))}),_0x544088['id']===e['CollaborationUIEventId'][_0x5104d5(0x33f)]&&this[_0x5104d5(0x26e)][_0x5104d5(0x155)]({'type':a['MessageType'][_0x5104d5(0x37b)],'content':this[_0x5104d5(0x242)]['t'](_0x5104d5(0x2ff))}),_0x544088['id']===e[_0x5104d5(0x359)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5104d5(0x26e)]['show']({'type':a[_0x5104d5(0x190)]['Error'],'content':this[_0x5104d5(0x242)]['t'](_0x5104d5(0x29b))});}));}};z=S([x(0x0,n['IBeforeCloseService']),x(0x1,e['ILocalCacheService']),x(0x2,(0x0,t[_0x31b914(0x3f6)])(e['CollaborationUIEventService'])),x(0x3,n[_0x31b914(0x365)]),x(0x4,n[_0x31b914(0x366)]),x(0x5,(0x0,t['Inject'])(t[_0x31b914(0x38a)]))],z);const B=(0x0,t[_0x31b914(0x1d6)])(_0x31b914(0x36d));let V=class extends t[_0x31b914(0x1a7)]{constructor(_0x2aa5fa,_0x506d25,_0x1ad063,_0x20b32d){const _0x27dfe7=_0x31b914;super(),this[_0x27dfe7(0x3e5)]=_0x2aa5fa,this['_logService']=_0x506d25,this[_0x27dfe7(0x2a3)]=_0x1ad063,this[_0x27dfe7(0x37f)]=_0x20b32d,this[_0x27dfe7(0x23f)]()[_0x27dfe7(0x362)](_0x475c36=>this[_0x27dfe7(0x21c)]['error'](_0x27dfe7(0x19e),_0x475c36));}async[_0x31b914(0x23f)](){const _0x45202d=_0x31b914;let _0x3acb24=this['_urlService']['getParam'](_0x45202d(0x14f)),_0x123222=this[_0x45202d(0x3e5)]['getParam']('type'),_0x3822d3=this[_0x45202d(0x3e5)][_0x45202d(0x215)](_0x45202d(0x3dd));if(!_0x3acb24||!_0x123222){this[_0x45202d(0x21c)]['debug']('[CollaborationDataLoaderController]',_0x45202d(0x270));return;}let _0x4b504e=await this[_0x45202d(0x37f)][_0x45202d(0x103)](_0x3acb24,Number(_0x123222),_0x3822d3);this[_0x45202d(0x12c)]||_0x4b504e&&_0x4b504e instanceof t[_0x45202d(0x2b7)]&&await this[_0x45202d(0x1a4)](_0x4b504e);}async[_0x31b914(0x1a4)](_0x587c74){const _0x43124e=_0x31b914;await this['_updateSubUnitFromURLParams'](_0x587c74),!this[_0x43124e(0x12c)]&&(_0x587c74[_0x43124e(0x287)][_0x43124e(0x1c3)]((0x0,r[_0x43124e(0x256)])(this['dispose$']))[_0x43124e(0x151)](_0x249b10=>{const _0x223cab=_0x43124e;_0x249b10&&this[_0x223cab(0x2cf)](_0x249b10);}),this[_0x43124e(0x3e5)][_0x43124e(0x1d9)]['pipe']((0x0,r[_0x43124e(0x256)])(this['dispose$']))['subscribe'](()=>{const _0xccbdc5=_0x43124e;this[_0xccbdc5(0x1fb)](_0x587c74)[_0xccbdc5(0x362)](_0x515a6a=>this['_logService'][_0xccbdc5(0x2d4)]('[CollaborationDataLoaderController]',_0x515a6a));}));}[_0x31b914(0x2cf)](_0x10cc47,_0x4d6eda=!0x1){const _0x3dfb37=_0x31b914;let _0xcfdeb=this['_urlService']['getParam'](_0x3dfb37(0x3dd));_0x10cc47['getSheetId']()!==_0xcfdeb&&this[_0x3dfb37(0x3e5)][_0x3dfb37(0x3fb)](_0x3dfb37(0x3dd),_0x10cc47[_0x3dfb37(0x197)](),_0x4d6eda);}async['_updateSubUnitFromURLParams'](_0x5f48be){const _0x8b131=_0x31b914;var _0x4b14f3;let _0x26ad3b=this[_0x8b131(0x3e5)][_0x8b131(0x215)](_0x8b131(0x3dd));if(!_0x26ad3b||!_0x5f48be['getSheetBySheetId'](_0x26ad3b)){let _0x4ca129=_0x5f48be['getUnhiddenWorksheets']()[0x0],_0x5eb68a=_0x5f48be['getSheetBySheetId'](_0x4ca129);if(!_0x5eb68a||(this[_0x8b131(0x2cf)](_0x5eb68a,!0x0),this[_0x8b131(0x12c)]))return;await this[_0x8b131(0x2a3)][_0x8b131(0x26c)](g[_0x8b131(0x1b7)]['id'],{'unitId':_0x5f48be[_0x8b131(0x30c)](),'subUnitId':_0x4ca129});return;}((_0x4b14f3=_0x5f48be[_0x8b131(0x3a7)]())==null?void 0x0:_0x4b14f3['getSheetId']())!==_0x26ad3b&&await this[_0x8b131(0x2a3)][_0x8b131(0x26c)](g[_0x8b131(0x1b7)]['id'],{'unitId':_0x5f48be[_0x8b131(0x30c)](),'subUnitId':_0x26ad3b});}};V=S([x(0x0,B),x(0x1,t['ILogService']),x(0x2,t['ICommandService']),x(0x3,(0x0,t[_0x31b914(0x3f6)])(e[_0x31b914(0x1fe)]))],V);let H=class{constructor(_0x3d9881,_0x51c90d){const _0x3c7aad=_0x31b914;this[_0x3c7aad(0x14a)]=_0x3d9881,this['_renderManagerService']=_0x51c90d;}['transformIMECache'](_0x1ecbd7){const _0x509830=_0x31b914;this['_transformUndoRedoStack'](_0x1ecbd7),this[_0x509830(0x3bc)](_0x1ecbd7);}[_0x31b914(0x1bc)](_0x1c3496){const _0x50c32a=_0x31b914;let {unitID:_0x4a1427}=_0x1c3496,{redoCache:_0x3f1978}=this[_0x50c32a(0x245)][_0x50c32a(0x158)](_0x4a1427)[_0x50c32a(0x14b)](f['DocIMEInputManagerService'])[_0x50c32a(0x2b3)]();if(_0x3f1978['length']===0x0)return _0x1c3496;let _0x4ef05e=t[_0x50c32a(0x2e9)][_0x50c32a(0x327)](_0x1c3496[_0x50c32a(0x18f)][0x0]);for(let _0x1d0a1f=0x0;_0x1d0a1f<_0x3f1978[_0x50c32a(0x18a)];_0x1d0a1f++){let _0x188de7={'id':'doc.mutation.rich-text-editing','params':{..._0x3f1978[_0x1d0a1f]}},_0x2c975e=this[_0x50c32a(0x14a)][_0x50c32a(0x22f)](_0x4ef05e,_0x188de7,!0x1);if((0x0,l[_0x50c32a(0x395)])(_0x2c975e))throw _0x2c975e[_0x50c32a(0x2d4)];_0x4ef05e=_0x2c975e[_0x50c32a(0x30a)];}return{...t['Tools'][_0x50c32a(0x327)](_0x1c3496),'mutations':[_0x4ef05e]};}[_0x31b914(0x3bf)](_0x4e4885){const _0x4197ea=_0x31b914;let {unitID:_0x1034de}=_0x4e4885,_0x3d0608=this[_0x4197ea(0x245)]['getRenderUnitById'](_0x1034de)[_0x4197ea(0x14b)](f[_0x4197ea(0x403)]),{undoCache:_0xa2d235,redoCache:_0x45e0b5}=_0x3d0608[_0x4197ea(0x2b3)]();if(_0xa2d235[_0x4197ea(0x18a)]===0x0||_0x45e0b5['length']===0x0)return;let _0x3afb4f=[],_0x4cac14=[],_0x1dfaa8=t[_0x4197ea(0x2e9)][_0x4197ea(0x327)](_0x4e4885[_0x4197ea(0x18f)][0x0]),_0x27b82b=t['Tools'][_0x4197ea(0x327)](_0x4e4885[_0x4197ea(0x18f)][0x0]);for(let _0x60d209=_0xa2d235[_0x4197ea(0x18a)]-0x1;_0x60d209>=0x0;_0x60d209--){let _0x162bea={'id':_0x4197ea(0x145),'params':{..._0xa2d235[_0x60d209]}},_0x4834cd={'id':_0x4197ea(0x145),'params':{..._0x45e0b5[_0x60d209]}},_0xa5144d=this[_0x4197ea(0x14a)]['transformMutation'](_0x1dfaa8,_0x162bea,!0x1),_0xca5416=this[_0x4197ea(0x14a)][_0x4197ea(0x22f)](_0x27b82b,_0x4834cd,!0x1);if((0x0,l[_0x4197ea(0x395)])(_0xa5144d))throw _0xa5144d[_0x4197ea(0x2d4)];if((0x0,l[_0x4197ea(0x395)])(_0xca5416))throw _0xca5416[_0x4197ea(0x2d4)];_0x3afb4f[_0x4197ea(0x2d1)](_0xa5144d[_0x4197ea(0x153)][_0x4197ea(0x3f2)]),_0x4cac14[_0x4197ea(0x2d1)](_0xca5416[_0x4197ea(0x153)][_0x4197ea(0x3f2)]),_0x1dfaa8=_0xa5144d[_0x4197ea(0x30a)],_0x27b82b=_0xca5416[_0x4197ea(0x30a)];}_0x3d0608[_0x4197ea(0x368)]({'undoCache':_0x3afb4f,'redoCache':_0x4cac14});}[_0x31b914(0x3bc)](_0x1458d1){const _0x4f5e88=_0x31b914;let {unitID:_0x886887}=_0x1458d1,_0x291648=this[_0x4f5e88(0x245)][_0x4f5e88(0x158)](_0x886887)[_0x4f5e88(0x14b)](f['DocIMEInputManagerService']),_0x2a3010=_0x291648[_0x4f5e88(0x177)]();if(_0x2a3010==null)return;let _0x48681e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1458d1[_0x4f5e88(0x2ec)],'actions':null,'textRanges':[_0x2a3010]}}],_0x40bd3e=this[_0x4f5e88(0x14a)][_0x4f5e88(0x323)](_0x1458d1,_0x48681e);if(!(0x0,l['isTransformMutationsWithChangesetSuccess'])(_0x40bd3e))throw _0x40bd3e['error'];let _0xb2b20c=_0x40bd3e[_0x4f5e88(0x153)][0x0][_0x4f5e88(0x3f2)]['textRanges'];Array[_0x4f5e88(0x2e1)](_0xb2b20c)&&_0xb2b20c[_0x4f5e88(0x18a)]&&_0x291648[_0x4f5e88(0x1f9)](_0xb2b20c[0x0]);}};H=S([x(0x0,l[_0x31b914(0x195)]),x(0x1,p['IRenderManagerService'])],H);let U=class{constructor(_0x226626,_0x425899,_0x31268e){const _0x255158=_0x31b914;this[_0x255158(0x2d6)]=_0x226626,this[_0x255158(0x14a)]=_0x425899,this[_0x255158(0x2c5)]=_0x31268e;}[_0x31b914(0x2b5)](_0x4a91ea){this['_transformHistoryAndStateStack'](_0x4a91ea);}[_0x31b914(0x1bc)](_0x400ac8){const _0xbff152=_0x31b914;let {unitID:_0x504ce3}=_0x400ac8,{collaboration:_0x200c8e}=this[_0xbff152(0x2c5)]['getStateCache'](_0x504ce3);if(_0x200c8e[_0xbff152(0x18a)]===0x0)return _0x400ac8;let _0x2f508f=t[_0xbff152(0x2e9)][_0xbff152(0x327)](_0x400ac8[_0xbff152(0x18f)][0x0]);for(let _0x28022c=0x0;_0x28022c<_0x200c8e['length'];_0x28022c++){let _0x17993d={'id':_0xbff152(0x145),'params':{'unitId':_0x200c8e[_0x28022c]['unitId'],..._0x200c8e[_0x28022c][_0xbff152(0x375)]}},_0x3efc92=this[_0xbff152(0x14a)]['transformMutation'](_0x2f508f,_0x17993d,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x3efc92))throw _0x3efc92[_0xbff152(0x2d4)];_0x2f508f=_0x3efc92['m1Prime'];}return{...t[_0xbff152(0x2e9)][_0xbff152(0x327)](_0x400ac8),'mutations':[_0x2f508f]};}['_transformHistoryAndStateStack'](_0x52a077){const _0x406583=_0x31b914;let {unitID:_0x9bb8a9}=_0x52a077,{history:_0x2d725e,collaboration:_0x35b2dd}=this[_0x406583(0x2c5)][_0x406583(0x1ad)](_0x9bb8a9);if(_0x2d725e[_0x406583(0x18a)]===0x0&&_0x35b2dd['length']===0x0)return;let _0x52508f=[],_0x384c6f=[],_0x557567=t[_0x406583(0x2e9)][_0x406583(0x327)](_0x52a077['mutations'][0x0]),_0x37ea4c=t[_0x406583(0x2e9)][_0x406583(0x327)](_0x52a077[_0x406583(0x18f)][0x0]);for(let _0x4410c1=_0x2d725e[_0x406583(0x18a)]-0x1;_0x4410c1>=0x0;_0x4410c1--){let _0x3cc704={'id':_0x406583(0x145),'params':{'unitId':_0x2d725e[_0x4410c1][_0x406583(0x167)],..._0x2d725e[_0x4410c1]['undoState']}},_0x44feeb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2d725e[_0x4410c1][_0x406583(0x167)],..._0x2d725e[_0x4410c1]['redoState']}},_0x336484=this['_transformService'][_0x406583(0x22f)](_0x557567,_0x3cc704,!0x1),_0x4954f5=this[_0x406583(0x14a)]['transformMutation'](_0x37ea4c,_0x44feeb,!0x1);if((0x0,l[_0x406583(0x395)])(_0x336484))throw _0x336484[_0x406583(0x2d4)];if((0x0,l[_0x406583(0x395)])(_0x4954f5))throw _0x4954f5['error'];_0x52508f[_0x406583(0x2d1)]({..._0x2d725e[_0x4410c1],'undoState':_0x336484[_0x406583(0x153)][_0x406583(0x3f2)],'redoState':_0x4954f5[_0x406583(0x153)]['params']}),_0x557567=_0x336484[_0x406583(0x30a)],_0x37ea4c=_0x4954f5['m1Prime'];}_0x557567=t[_0x406583(0x2e9)][_0x406583(0x327)](_0x52a077[_0x406583(0x18f)][0x0]),_0x37ea4c=t[_0x406583(0x2e9)]['deepClone'](_0x52a077[_0x406583(0x18f)][0x0]);for(let _0x59f888=_0x35b2dd['length']-0x1;_0x59f888>=0x0;_0x59f888--){let _0xd0b22={'id':_0x406583(0x145),'params':{'unitId':_0x35b2dd[_0x59f888][_0x406583(0x167)],..._0x35b2dd[_0x59f888][_0x406583(0x2a5)]}},_0x319dcd={'id':_0x406583(0x145),'params':{'unitId':_0x35b2dd[_0x59f888][_0x406583(0x167)],..._0x35b2dd[_0x59f888][_0x406583(0x375)]}},_0x390cbe=this[_0x406583(0x14a)][_0x406583(0x22f)](_0x557567,_0xd0b22,!0x1),_0x3a8818=this[_0x406583(0x14a)][_0x406583(0x22f)](_0x37ea4c,_0x319dcd,!0x1);if((0x0,l[_0x406583(0x395)])(_0x390cbe))throw _0x390cbe[_0x406583(0x2d4)];if((0x0,l['isTransformMutationFailure'])(_0x3a8818))throw _0x3a8818[_0x406583(0x2d4)];_0x384c6f[_0x406583(0x2d1)]({..._0x35b2dd[_0x59f888],'undoState':_0x390cbe['m2Prime']['params'],'redoState':_0x3a8818[_0x406583(0x153)][_0x406583(0x3f2)]}),_0x557567=_0x390cbe[_0x406583(0x30a)],_0x37ea4c=_0x3a8818[_0x406583(0x30a)];}this[_0x406583(0x2c5)][_0x406583(0x239)](_0x9bb8a9,{'history':_0x52508f,'collaboration':_0x384c6f});}};U=S([x(0x0,(0x0,t['Inject'])(t[_0x31b914(0x3a6)])),x(0x1,l[_0x31b914(0x195)]),x(0x2,(0x0,t[_0x31b914(0x3f6)])(d[_0x31b914(0x124)]))],U);let W=class{constructor(_0x517f21,_0x41f6c4){const _0x36dda7=_0x31b914;this[_0x36dda7(0x20c)]=_0x517f21,this[_0x36dda7(0x14a)]=_0x41f6c4;}[_0x31b914(0x277)](_0x518057){const _0xb1864c=_0x31b914;var _0x42ad9f;let _0x15f004=this[_0xb1864c(0x20c)][_0xb1864c(0x2f1)]()??[],_0x2c8627=this[_0xb1864c(0x20c)]['getSelectionInfo']();if(_0x15f004[_0xb1864c(0x18a)]===0x0)return;let _0x56c765=_0x518057['unitID'],_0x37b637=[{'id':_0xb1864c(0x145),'params':{'unitId':_0x56c765,'actions':null,'textRanges':_0x15f004}}],_0xc8dd0b=this['_transformService'][_0xb1864c(0x323)](_0x518057,_0x37b637);if(!(0x0,l[_0xb1864c(0x2e0)])(_0xc8dd0b))throw _0xc8dd0b[_0xb1864c(0x2d4)];let _0x4930dc=(_0x42ad9f=_0xc8dd0b[_0xb1864c(0x153)][0x0])==null?void 0x0:_0x42ad9f['params'],_0x3a4889=_0x4930dc&&typeof _0x4930dc=='object'&&_0xb1864c(0x1d8)in _0x4930dc?_0x4930dc[_0xb1864c(0x1d8)]:null;if(!Se(_0x3a4889))return;let _0x406857=_0x518057[_0xb1864c(0x18f)]['some'](_0x34e87b=>G(_0x34e87b[_0xb1864c(0x3f2)]))?_0x3a4889==null?void 0x0:_0x3a4889[_0xb1864c(0x181)](_0x3103b4=>!(_0xb1864c(0x179)in _0x3103b4)):_0x3a4889;Array[_0xb1864c(0x2e1)](_0x406857)&&this[_0xb1864c(0x20c)][_0xb1864c(0x3cc)](_0x406857,{'unitId':_0x56c765,'subUnitId':_0x56c765},!0x1,_0x2c8627!=null&&_0x2c8627[_0xb1864c(0x2c2)]?{..._0x2c8627['options'],'wholeDocument':!0x1}:void 0x0);}};W=S([x(0x0,(0x0,t[_0x31b914(0x3f6)])(d['DocSelectionManagerService'])),x(0x1,l[_0x31b914(0x195)])],W);function Se(_0x58f14a){const _0x43b10c=_0x31b914;return Array[_0x43b10c(0x2e1)](_0x58f14a)&&_0x58f14a[_0x43b10c(0x2e7)](_0x53443d=>typeof _0x53443d==_0x43b10c(0x22b)&&!!_0x53443d&&_0x43b10c(0x328)in _0x53443d&&'endOffset'in _0x53443d);}function G(_0x2fea80){const _0x30495e=_0x31b914;return _0x2fea80==='tableSource'?!0x0:Array[_0x30495e(0x2e1)](_0x2fea80)?_0x2fea80[_0x30495e(0x2bf)](_0x4f2193=>G(_0x4f2193)):!_0x2fea80||typeof _0x2fea80!='object'?!0x1:Object['values'](_0x2fea80)[_0x30495e(0x2bf)](_0x910c57=>G(_0x910c57));}let K=class extends t[_0x31b914(0x382)]{constructor(_0x16cc5d,_0x1af418,_0x481054,_0x496b94,_0x38f558,_0x29c063,_0x1b9173){const _0x24c83f=_0x31b914;super(),this[_0x24c83f(0x18c)]=_0x16cc5d,this[_0x24c83f(0x309)]=_0x1af418,this[_0x24c83f(0x3b0)]=_0x481054,this[_0x24c83f(0x11d)]=_0x496b94,this[_0x24c83f(0x204)]=_0x38f558,this[_0x24c83f(0x26e)]=_0x29c063,this[_0x24c83f(0x242)]=_0x1b9173,b(this,_0x24c83f(0x296),new r[(_0x24c83f(0x336))](e[_0x24c83f(0x2f9)][_0x24c83f(0x367)])),this[_0x24c83f(0x194)]();}[_0x31b914(0x194)](){const _0x1ea8cc=_0x31b914;this[_0x1ea8cc(0x1c5)](this[_0x1ea8cc(0x18c)][_0x1ea8cc(0x2e2)][_0x1ea8cc(0x151)](_0x4a748e=>{const _0x1062ef=_0x1ea8cc;_0x4a748e instanceof e[_0x1062ef(0x2a2)]&&_0x4a748e['addHandlerCallback']({'onTransformIME':_0xd68bba=>this[_0x1062ef(0x309)][_0x1062ef(0x127)](_0xd68bba),'onTransformState':_0x514469=>this[_0x1062ef(0x3b0)][_0x1062ef(0x2b5)](_0x514469),'onTransformSelections':_0x573d9c=>this[_0x1062ef(0x11d)]['transformSelections'](_0x573d9c),'onSyncEditingCollabCursor':_0x226b38=>this[_0x1062ef(0x204)][_0x1062ef(0x2a0)](_0x226b38),'onTransformRemoteChangesetByIMECache':_0x1fea52=>this['_docTransformIMECacheService'][_0x1062ef(0x1bc)](_0x1fea52),'onTransformRemoteChangesetByStateCache':_0x38491f=>this[_0x1062ef(0x3b0)][_0x1062ef(0x1bc)](_0x38491f)});}));}};K=S([x(0x0,(0x0,t[_0x31b914(0x3f6)])(e[_0x31b914(0x385)])),x(0x1,(0x0,t[_0x31b914(0x3f6)])(H)),x(0x2,(0x0,t[_0x31b914(0x3f6)])(U)),x(0x3,(0x0,t[_0x31b914(0x3f6)])(W)),x(0x4,(0x0,t[_0x31b914(0x3f6)])(D)),x(0x5,n['IMessageService']),x(0x6,(0x0,t[_0x31b914(0x3f6)])(t[_0x31b914(0x38a)]))],K);let q=class extends t['Disposable']{constructor(_0x16156d,_0x5f28e3,_0x40a2e6,_0x47c790){const _0x1bb836=_0x31b914;super(),this['_injector']=_0x16156d,this[_0x1bb836(0x136)]=_0x5f28e3,this[_0x1bb836(0x21c)]=_0x40a2e6,this[_0x1bb836(0x341)]=_0x47c790,b(this,'_memberID',void 0x0),this['_init']();}[_0x31b914(0x23f)](){const _0x5c7b27=_0x31b914;this[_0x5c7b27(0x357)](),this['_initUnhandledRejectionListener'](),this[_0x5c7b27(0x129)](),this[_0x5c7b27(0x1a0)]();}[_0x31b914(0x1a0)](){const _0x1af7f8=_0x31b914;this['disposeWithMe'](this[_0x1af7f8(0x341)][_0x1af7f8(0x156)][_0x1af7f8(0x151)](_0x59dea3=>{const _0x3087aa=_0x1af7f8;this[_0x3087aa(0x36b)]=_0x59dea3==null?void 0x0:_0x59dea3[_0x3087aa(0x2f4)];}));}[_0x31b914(0x357)](){const _0x4055aa=_0x31b914;let _0x32f5b1=_0xd080ac=>{const _0x5abec=_0x432a;var _0x26a914;this[_0x5abec(0x19f)](_0x5abec(0x2d4),_0x5abec(0x308)+_0xd080ac[_0x5abec(0xfe)]+_0x5abec(0x209)+_0xd080ac['filename']+':'+_0xd080ac[_0x5abec(0x3df)]+':'+_0xd080ac[_0x5abec(0x26f)]+'\x0a'+(((_0x26a914=_0xd080ac[_0x5abec(0x2d4)])==null?void 0x0:_0x26a914[_0x5abec(0x30e)])||''));};window['addEventListener'](_0x4055aa(0x2d4),_0x32f5b1),this[_0x4055aa(0x1c5)](()=>{const _0x8562c6=_0x4055aa;window[_0x8562c6(0x2f6)](_0x8562c6(0x2d4),_0x32f5b1);});}[_0x31b914(0x272)](){const _0xe953a8=_0x31b914;let _0x22c9f6=_0x10a34e=>{const _0x3cb263=_0x432a;this[_0x3cb263(0x19f)](_0x3cb263(0x2d4),_0x3cb263(0x236)+_0x10a34e[_0x3cb263(0x2ac)]);};window[_0xe953a8(0x3f0)](_0xe953a8(0x288),_0x22c9f6),this[_0xe953a8(0x1c5)](()=>{const _0x56b2f7=_0xe953a8;window[_0x56b2f7(0x2f6)]('unhandledrejection',_0x22c9f6);});}[_0x31b914(0x129)](){const _0x1c2662=_0x31b914;let _0x2e27db=this[_0x1c2662(0x21c)][_0x1c2662(0x2d4)][_0x1c2662(0x258)](this[_0x1c2662(0x21c)]);this[_0x1c2662(0x21c)][_0x1c2662(0x2d4)]=(..._0x1ff8b5)=>{const _0x486276=_0x1c2662;let _0x1d2bb4=_0x1ff8b5[_0x486276(0x2a9)](_0x3f6472=>_0x3f6472 instanceof Error?_0x3f6472['message']+'\x0a'+_0x3f6472[_0x486276(0x30e)]:String(_0x3f6472))[_0x486276(0x3d5)]('\x20');this[_0x486276(0x19f)](_0x486276(0x2d4),_0x486276(0x3e8)+_0x1d2bb4),_0x2e27db(..._0x1ff8b5);},this[_0x1c2662(0x1c5)](()=>{const _0x4918c2=_0x1c2662;this[_0x4918c2(0x21c)][_0x4918c2(0x2d4)]=_0x2e27db;});}[_0x31b914(0x19f)](_0x45646d,_0x50dbc5){const _0x39f520=_0x31b914;try{let _0x29d82d={'userId':this['_memberID'],'logLabel':_0x45646d,'content':_0x50dbc5};this[_0x39f520(0x136)][_0x39f520(0x220)](_0x39f520(0x2bb),{'body':_0x29d82d})[_0x39f520(0x362)](()=>{});}catch{}}};q=S([x(0x0,(0x0,t[_0x31b914(0x3f6)])(t[_0x31b914(0x3a6)])),x(0x1,(0x0,t[_0x31b914(0x3f6)])(m[_0x31b914(0x313)])),x(0x2,t[_0x31b914(0x2e3)]),x(0x3,(0x0,t[_0x31b914(0x3f6)])(e[_0x31b914(0x137)]))],q);function Ce({state$:_0x2d6af2}){const _0x1ad210=_0x31b914;let _0xef1897=(0x0,n[_0x1ad210(0x146)])(_0x2d6af2,null,!0x0);return _0xef1897?(0x0,c[_0x1ad210(0x169)])('div',{'data-u-comp':_0x1ad210(0x104),'role':_0x1ad210(0x265),'className':_0x1ad210(0x314),'children':[(0x0,c[_0x1ad210(0x311)])(o['WarningIcon'],{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,c[_0x1ad210(0x311)])(_0x1ad210(0x128),{'children':_0xef1897[_0x1ad210(0x34a)]}),(0x0,c[_0x1ad210(0x311)])(a[_0x1ad210(0x234)],{'size':_0x1ad210(0x401),'variant':_0x1ad210(0x409),'onClick':()=>window[_0x1ad210(0x1df)][_0x1ad210(0x3a4)](),'children':_0xef1897['refreshLabel']})]}):null;}const we='snapshot-loading-';let J=class extends t[_0x31b914(0x382)]{constructor(_0x47db2e,_0x59e352,_0x257c0f,_0x27d82e,_0x3ff7d3,_0x2ae225){const _0x1fb19d=_0x31b914;super(),this[_0x1fb19d(0x210)]=_0x47db2e,this[_0x1fb19d(0x26e)]=_0x59e352,this[_0x1fb19d(0x242)]=_0x257c0f,this['_injector']=_0x27d82e,this[_0x1fb19d(0x3e5)]=_0x2ae225,b(this,'_timeoutState$',new r['BehaviorSubject'](null)),b(this,_0x1fb19d(0x2a8),new Set()),b(this,_0x1fb19d(0x243),new Map()),b(this,_0x1fb19d(0x1b0),new Map()),b(this,_0x1fb19d(0x1d3),this[_0x1fb19d(0x3d3)][_0x1fb19d(0x2f2)]());let _0x341b33=()=>(0x0,s[_0x1fb19d(0x349)])(Ce,{'state$':this[_0x1fb19d(0x1d3)]});this[_0x1fb19d(0x1c5)](_0x3ff7d3[_0x1fb19d(0x400)](n[_0x1fb19d(0x1ea)][_0x1fb19d(0x3ee)],()=>(0x0,n[_0x1fb19d(0x381)])(_0x341b33,this['_injector']))),this[_0x1fb19d(0x1c5)](this[_0x1fb19d(0x210)][_0x1fb19d(0x1c2)][_0x1fb19d(0x151)](_0x33d258=>{const _0x339eb1=_0x1fb19d;this[_0x339eb1(0x1b0)]=_0x33d258,_0x33d258[_0x339eb1(0x363)](_0x5a08ce=>this[_0x339eb1(0x3db)](_0x5a08ce));})),this[_0x1fb19d(0x1c5)](this[_0x1fb19d(0x3e5)][_0x1fb19d(0x1d9)][_0x1fb19d(0x151)](()=>{const _0x687cfe=_0x1fb19d;this[_0x687cfe(0x1b0)][_0x687cfe(0x363)](_0xee4311=>this[_0x687cfe(0x3db)](_0xee4311));}));}[_0x31b914(0x1bd)](){const _0x41254f=_0x31b914;this['_messageIds']['forEach'](_0x1d221f=>this[_0x41254f(0x26e)][_0x41254f(0x247)](_0x1d221f)),this[_0x41254f(0x2a8)][_0x41254f(0x114)](),this[_0x41254f(0x243)][_0x41254f(0x363)](({timeoutId:_0x458676})=>clearTimeout(_0x458676)),this[_0x41254f(0x243)][_0x41254f(0x114)](),this[_0x41254f(0x3d3)][_0x41254f(0x301)](),super[_0x41254f(0x1bd)]();}[_0x31b914(0x3db)](_0x3ebe60){const _0x3f37a7=_0x31b914;let _0x10a671=''+we+_0x3ebe60[_0x3f37a7(0x167)];if(_0x3ebe60['stage']===l['SnapshotLoadStage']['COMPLETE']){this[_0x3f37a7(0x2dd)](_0x3ebe60['unitId']),this['_clearTimeoutState'](_0x3ebe60[_0x3f37a7(0x167)]),this[_0x3f37a7(0x26e)]['remove'](_0x10a671),this[_0x3f37a7(0x2a8)][_0x3f37a7(0x255)](_0x10a671);return;}if(!this[_0x3f37a7(0x379)](_0x3ebe60['unitId'])){this[_0x3f37a7(0x2dd)](_0x3ebe60[_0x3f37a7(0x167)]),this[_0x3f37a7(0x373)](_0x3ebe60[_0x3f37a7(0x167)]),this[_0x3f37a7(0x26e)][_0x3f37a7(0x247)](_0x10a671),this[_0x3f37a7(0x2a8)]['delete'](_0x10a671);return;}if(_0x3ebe60[_0x3f37a7(0x37d)]===l[_0x3f37a7(0x12e)][_0x3f37a7(0x40a)]){this[_0x3f37a7(0x2dd)](_0x3ebe60[_0x3f37a7(0x167)]),this[_0x3f37a7(0x373)](_0x3ebe60[_0x3f37a7(0x167)]),this[_0x3f37a7(0x26e)][_0x3f37a7(0x155)]({'id':_0x10a671,'type':a['MessageType'][_0x3f37a7(0x37b)],'content':this[_0x3f37a7(0x242)]['t'](_0x3f37a7(0x2ff))}),this[_0x3f37a7(0x2a8)]['delete'](_0x10a671);return;}if(_0x3ebe60['stage']!==l[_0x3f37a7(0x12e)][_0x3f37a7(0x147)]||_0x3ebe60[_0x3f37a7(0x3e0)]<=0xa){this[_0x3f37a7(0x2dd)](_0x3ebe60[_0x3f37a7(0x167)]),this[_0x3f37a7(0x26e)][_0x3f37a7(0x247)](_0x10a671),this[_0x3f37a7(0x2a8)][_0x3f37a7(0x255)](_0x10a671);return;}this['_watchBlockProgress'](_0x3ebe60)||(this[_0x3f37a7(0x26e)][_0x3f37a7(0x155)]({'id':_0x10a671,'type':a['MessageType']['Loading'],'duration':0x1/0x0,'content':this[_0x3f37a7(0x242)]['t'](_0x3f37a7(0x212))+'\x20'+_0x3ebe60[_0x3f37a7(0x24d)]+'/'+_0x3ebe60[_0x3f37a7(0x3e0)]}),this[_0x3f37a7(0x2a8)][_0x3f37a7(0x230)](_0x10a671));}[_0x31b914(0x306)](_0x597e08){const _0x36e972=_0x31b914;let _0x4d9103=this['_blockProgressWatches'][_0x36e972(0x246)](_0x597e08[_0x36e972(0x167)]);if((_0x4d9103==null?void 0x0:_0x4d9103['loadedBlocks'])===_0x597e08[_0x36e972(0x24d)])return _0x4d9103[_0x36e972(0x1d4)];this[_0x36e972(0x2dd)](_0x597e08[_0x36e972(0x167)]);let _0x1e4d44=setTimeout(()=>{const _0x1bdef4=_0x36e972;let _0x25ed5c=this[_0x1bdef4(0x243)][_0x1bdef4(0x246)](_0x597e08[_0x1bdef4(0x167)]);if(!_0x25ed5c||_0x25ed5c[_0x1bdef4(0x15b)]!==_0x1e4d44)return;_0x25ed5c[_0x1bdef4(0x1d4)]=!0x0;let _0x56f4e8=''+we+_0x597e08['unitId'];this[_0x1bdef4(0x26e)]['remove'](_0x56f4e8),this['_messageIds'][_0x1bdef4(0x255)](_0x56f4e8),this[_0x1bdef4(0x3d3)][_0x1bdef4(0x384)]({'unitId':_0x597e08[_0x1bdef4(0x167)],'content':this[_0x1bdef4(0x242)]['t'](_0x1bdef4(0x285),String(_0x597e08[_0x1bdef4(0x24d)]),String(_0x597e08[_0x1bdef4(0x3e0)])),'refreshLabel':this[_0x1bdef4(0x242)]['t'](_0x1bdef4(0x163))});},0xea60);return this['_blockProgressWatches']['set'](_0x597e08[_0x36e972(0x167)],{'loadedBlocks':_0x597e08[_0x36e972(0x24d)],'timedOut':!0x1,'timeoutId':_0x1e4d44}),!0x1;}[_0x31b914(0x2dd)](_0x3b51f9){const _0x32217a=_0x31b914;let _0x4a4e48=this[_0x32217a(0x243)]['get'](_0x3b51f9);_0x4a4e48&&(clearTimeout(_0x4a4e48[_0x32217a(0x15b)]),this['_blockProgressWatches']['delete'](_0x3b51f9),this[_0x32217a(0x373)](_0x3b51f9));}[_0x31b914(0x373)](_0x3ec947){const _0x43e5f9=_0x31b914;var _0x3c8d23;((_0x3c8d23=this['_timeoutState$'][_0x43e5f9(0x340)])==null?void 0x0:_0x3c8d23[_0x43e5f9(0x167)])===_0x3ec947&&this[_0x43e5f9(0x3d3)]['next'](null);}[_0x31b914(0x379)](_0x16d9ed){const _0x5f31ac=_0x31b914;let _0x4d48fb=this[_0x5f31ac(0x3e5)][_0x5f31ac(0x215)]('unit');return!_0x4d48fb||_0x4d48fb===_0x16d9ed;}};J=S([x(0x0,(0x0,t['Inject'])(l[_0x31b914(0x2ab)])),x(0x1,n[_0x31b914(0x365)]),x(0x2,(0x0,t[_0x31b914(0x3f6)])(t['LocaleService'])),x(0x3,(0x0,t[_0x31b914(0x3f6)])(t['Injector'])),x(0x4,n[_0x31b914(0x157)]),x(0x5,B)],J);function Te(_0x33d829){const _0x5e5f87=_0x31b914;var _0x749a54,_0x33755c;let _0x3c4c0e=(_0x749a54=_0x33d829[_0x5e5f87(0x1cc)])==null?void 0x0:_0x749a54[_0x5e5f87(0x37d)],_0x2b5285=((_0x33755c=_0x33d829[_0x5e5f87(0x1cc)])==null?void 0x0:_0x33755c[_0x5e5f87(0x34e)])||0x0;return _0x3c4c0e===h['FormulaExecuteStageType']['START_CALCULATION']&&_0x2b5285>0x0;}function Ee(_0x9333e3){const _0x20f09f=_0x31b914;return _0x9333e3[_0x20f09f(0x330)]===h['FormulaExecutedStateType'][_0x20f09f(0x40e)];}let Y=class extends t[_0x31b914(0x382)]{constructor(_0x3ad048,_0x48b6e0,_0x1148c7,_0x42cfa3,_0x103182,_0xb12cd6,_0x2a90a9){const _0x2398eb=_0x31b914;super(),this['_messageService']=_0x3ad048,this['_commandService']=_0x48b6e0,this['_configService']=_0x1148c7,this['_httpService']=_0x42cfa3,this[_0x2398eb(0x320)]=_0x103182,this[_0x2398eb(0x21c)]=_0xb12cd6,this[_0x2398eb(0x242)]=_0x2a90a9,b(this,_0x2398eb(0x126),null),b(this,_0x2398eb(0x1a6),0x0),b(this,_0x2398eb(0x399),0x0),b(this,_0x2398eb(0x222),[]),b(this,_0x2398eb(0x1ce),0x0),this['_initCommandInterceptor']();}['_initCommandInterceptor'](){const _0x2de1db=_0x31b914;this[_0x2de1db(0x1c5)](this['_commandService'][_0x2de1db(0x299)]((_0x5a06f4,_0x3dd0a4)=>{const _0x1045e3=_0x2de1db;if(_0x5a06f4['id']!==h[_0x1045e3(0x159)]['id'])return;let _0x5478b9=_0x5a06f4['params'];if(this[_0x1045e3(0x397)](_0x5478b9[_0x1045e3(0x283)]??[])&&!this[_0x1045e3(0x1c6)]())throw this[_0x1045e3(0x2ea)](_0x5a06f4,_0x3dd0a4),this[_0x1045e3(0x315)](),new t[(_0x1045e3(0x1cf))]();})),this['disposeWithMe'](this[_0x2de1db(0x2a3)][_0x2de1db(0x180)]((_0x4bcd58,_0x26cd37)=>{const _0x250756=_0x2de1db;if(_0x4bcd58['id']!==h[_0x250756(0x132)]['id'])return;let _0x7e4220=_0x4bcd58[_0x250756(0x3f2)];if(Te(_0x7e4220)){let _0x275961=(0x0,t[_0x250756(0x174)])();this[_0x250756(0x222)]['push'](_0x275961),this[_0x250756(0x38f)](_0x275961);}else{if(Ee(_0x7e4220)&&this[_0x250756(0x222)]['length']>0x0){let _0x13a72e=this[_0x250756(0x222)]['shift']();this['_releaseCalculationLimit'](_0x13a72e);}}}));}[_0x31b914(0x1bd)](){const _0x447523=_0x31b914;super[_0x447523(0x1bd)](),this[_0x447523(0x214)](),this['_taskIds']=[],this['_currentUsage']=0x0,this['_maxFormulaLimit']=0x0,this[_0x447523(0x1ce)]=0x0;}async[_0x31b914(0x2ea)](_0x1da45e,_0x50774e){const _0x5e8a7f=_0x31b914;for(let _0x678936=0x0;_0x678936<0x1e;_0x678936++)try{if(await this[_0x5e8a7f(0x16c)](),this['_checkCalculationAvailable']()){this[_0x5e8a7f(0x15d)](_0x1da45e,_0x50774e),this[_0x5e8a7f(0x26e)][_0x5e8a7f(0x155)]({'content':this[_0x5e8a7f(0x242)]['t'](_0x5e8a7f(0x3a3)),'type':a['MessageType']['Success']});return;}await new Promise(_0x24eddf=>{const _0x1695b7=_0x5e8a7f;this[_0x1695b7(0x126)]=window['setTimeout'](_0x24eddf,0x3e8);});}catch(_0x162299){this[_0x5e8a7f(0x21c)]['error'](_0x162299);}this['_messageService']['show']({'content':this['_localeService']['t'](_0x5e8a7f(0x193)),'type':a[_0x5e8a7f(0x190)][_0x5e8a7f(0x37b)]});}['_applyCommand'](_0x54d617,_0x5c6ffc){const _0x12db05=_0x31b914;try{this[_0x12db05(0x2a3)][_0x12db05(0x26c)](_0x54d617['id'],_0x54d617[_0x12db05(0x3f2)],_0x5c6ffc);}catch(_0x19c7c2){this[_0x12db05(0x21c)][_0x12db05(0x2d4)](_0x19c7c2);}}[_0x31b914(0x342)](_0x307b95,_0x30a525){const _0x44ebf8=_0x31b914;_0x30a525<this['_lastResponseTimestamp']||(this[_0x44ebf8(0x1ce)]=_0x30a525,this[_0x44ebf8(0x1a6)]=Number['parseInt'](_0x307b95[_0x44ebf8(0x171)]),this[_0x44ebf8(0x399)]=Number[_0x44ebf8(0x1b4)](_0x307b95[_0x44ebf8(0x16a)]));}async[_0x31b914(0x38f)](_0x2f6b90){const _0x1c6232=_0x31b914;let _0x394f23=Date[_0x1c6232(0x2b0)]();try{var _0x250f64,_0x1a9913;let _0x3bde16=((_0x250f64=this[_0x1c6232(0x3fc)][_0x1c6232(0x291)](e[_0x1c6232(0x170)]))==null?void 0x0:_0x250f64[_0x1c6232(0x27a)])||_0x1c6232(0x3ad),_0x3f386f=(await this['_httpService'][_0x1c6232(0x220)](_0x3bde16,{'body':JSON[_0x1c6232(0x117)]({'taskId':_0x2f6b90})}))[_0x1c6232(0x176)];if(((_0x1a9913=_0x3f386f['error'])==null?void 0x0:_0x1a9913['code'])!==v['ErrorCode']['OK'])return;this[_0x1c6232(0x342)](_0x3f386f['limitInfo'],_0x394f23);}catch(_0x2a670f){this[_0x1c6232(0x21c)][_0x1c6232(0x2d4)](_0x2a670f);}}async[_0x31b914(0x16c)](_0x1fd63e){const _0x40d708=_0x31b914;let _0x12dca8=Date['now']();try{var _0x560895,_0x3859c8;let _0x9d71bc=((_0x560895=this[_0x40d708(0x3fc)]['getConfig'](e[_0x40d708(0x170)]))==null?void 0x0:_0x560895[_0x40d708(0x17f)])||'/universer-api/license/formula/limit/status',_0x199ede=_0x1fd63e?_0x9d71bc+_0x40d708(0x17c)+encodeURIComponent(_0x1fd63e):_0x9d71bc,_0x2f7a7b=(await this[_0x40d708(0x136)][_0x40d708(0x246)](_0x199ede))[_0x40d708(0x176)];if(((_0x3859c8=_0x2f7a7b[_0x40d708(0x2d4)])==null?void 0x0:_0x3859c8['code'])!==v[_0x40d708(0x23d)]['OK'])return;this[_0x40d708(0x342)](_0x2f7a7b['limitInfo'],_0x12dca8);}catch(_0x38182b){this[_0x40d708(0x21c)][_0x40d708(0x2d4)](_0x38182b);}}async[_0x31b914(0x333)](_0x3c5d10){const _0x1d1500=_0x31b914;let _0x2bfbc4=Date[_0x1d1500(0x2b0)]();try{var _0x534107,_0x30a750;let _0x4043bf=((_0x534107=this[_0x1d1500(0x3fc)][_0x1d1500(0x291)](e[_0x1d1500(0x170)]))==null?void 0x0:_0x534107[_0x1d1500(0x2cd)])||_0x1d1500(0x3af),_0x4bc8d2=(await this[_0x1d1500(0x136)][_0x1d1500(0x220)](_0x4043bf,{'body':JSON['stringify']({'taskId':_0x3c5d10})}))[_0x1d1500(0x176)];if(((_0x30a750=_0x4bc8d2[_0x1d1500(0x2d4)])==null?void 0x0:_0x30a750[_0x1d1500(0x208)])!==v[_0x1d1500(0x23d)]['OK'])return;this[_0x1d1500(0x342)](_0x4bc8d2['limitInfo'],_0x2bfbc4);}catch(_0x3d51df){this[_0x1d1500(0x21c)][_0x1d1500(0x2d4)](_0x3d51df);}}[_0x31b914(0x1c6)](){const _0x4ceb18=_0x31b914;return this[_0x4ceb18(0x1a6)]===0x0||this['_maxFormulaLimit']-this[_0x4ceb18(0x399)]>0x0;}[_0x31b914(0x214)](){const _0x556c8b=_0x31b914;this[_0x556c8b(0x126)]&&=(clearTimeout(this[_0x556c8b(0x126)]),null);}[_0x31b914(0x315)](){const _0x46db6a=_0x31b914;this[_0x46db6a(0x26e)][_0x46db6a(0x155)]({'content':this[_0x46db6a(0x242)]['t'](_0x46db6a(0x154)),'type':a[_0x46db6a(0x190)][_0x46db6a(0x21a)]});}['_hasFormulaInDirtyRanges'](_0x5147f3){const _0x1ea3dc=_0x31b914;for(let _0x55c8b3 of _0x5147f3){let {unitId:_0x90fc36,sheetId:_0x2a8c1a,range:_0x1ef6ee}=_0x55c8b3,_0x311cff=this[_0x1ea3dc(0x320)][_0x1ea3dc(0x115)](_0x90fc36,t[_0x1ea3dc(0x2f0)][_0x1ea3dc(0x321)]);if(!_0x311cff)continue;let _0x1db214=_0x311cff[_0x1ea3dc(0x257)](_0x2a8c1a);if(!_0x1db214)continue;let _0x425e9=_0x1db214['getCellMatrix']();for(let _0x7b39d8=_0x1ef6ee['startRow'];_0x7b39d8<=_0x1ef6ee['endRow'];_0x7b39d8++)for(let _0x9b2d60=_0x1ef6ee[_0x1ea3dc(0x13a)];_0x9b2d60<=_0x1ef6ee[_0x1ea3dc(0x332)];_0x9b2d60++){let _0x4302f1=_0x425e9[_0x1ea3dc(0x102)](_0x7b39d8,_0x9b2d60);if(_0x4302f1&&((0x0,t[_0x1ea3dc(0x187)])(_0x4302f1['f'])||(0x0,t['isFormulaId'])(_0x4302f1['si'])))return!0x0;}}return!0x1;}};Y=S([x(0x0,(0x0,t[_0x31b914(0x3f6)])(n['IMessageService'])),x(0x1,t[_0x31b914(0x2fb)]),x(0x2,t[_0x31b914(0x38b)]),x(0x3,(0x0,t[_0x31b914(0x3f6)])(m['HTTPService'])),x(0x4,t[_0x31b914(0x3e9)]),x(0x5,t['ILogService']),x(0x6,(0x0,t[_0x31b914(0x3f6)])(t[_0x31b914(0x38a)]))],Y);let X=class extends t[_0x31b914(0x382)]{constructor(_0x16bd06,_0x1d6610,_0x56d4b9){const _0x44428d=_0x31b914;super(),this[_0x44428d(0x3fc)]=_0x16bd06,this[_0x44428d(0x233)]=_0x1d6610,this[_0x44428d(0x27f)]=_0x56d4b9,b(this,_0x44428d(0x20d),new Map()),b(this,_0x44428d(0x1cd),new Map()),b(this,_0x44428d(0x32e),!0x1);}[_0x31b914(0x28b)](){const _0x3fcb2b=_0x31b914;this[_0x3fcb2b(0x32e)]=!0x0;}[_0x31b914(0x1b9)](){const _0x25ead9=_0x31b914;this[_0x25ead9(0x32e)]=!0x1;}get[_0x31b914(0x32c)](){return this['_saveTaskMap'];}[_0x31b914(0x1bd)](){const _0x252554=_0x31b914;this['exhaustSavingTask']()[_0x252554(0x372)](()=>super[_0x252554(0x1bd)]());}async[_0x31b914(0x168)](_0x50b154){const _0x29585a=_0x31b914;return this[_0x29585a(0x32e)]?null:this[_0x29585a(0x233)][_0x29585a(0x325)]((0x0,e['getLocalCacheKey'])(_0x50b154));}async[_0x31b914(0x225)](_0x56085f,_0x4160dd){const _0x26ba69=_0x31b914;return!!this[_0x26ba69(0x233)]['setItem']((0x0,e[_0x26ba69(0x27b)])(_0x56085f),_0x4160dd);}async['backupOfflineData'](_0x167f39,_0x1fc8e2){const _0x5068bd=_0x31b914;let _0x1bf76d=this[_0x5068bd(0x20d)][_0x5068bd(0x246)](_0x167f39)??await this[_0x5068bd(0x233)][_0x5068bd(0x325)]((0x0,e['getLocalCacheKey'])(_0x167f39));if(!_0x1bf76d)return;let _0x22f7f0=Date['now'](),_0x455ffc=new Date(_0x22f7f0)['toISOString']();await this[_0x5068bd(0x233)]['setItem']((0x0,e[_0x5068bd(0x27b)])(_0x167f39)+_0x5068bd(0x377)+_0x22f7f0,{'reason':_0x1fc8e2,'createdAt':_0x455ffc,'data':_0x1bf76d});}[_0x31b914(0x405)](_0x5401dd,_0x2cd84a,_0x564f10,_0x1c050a){const _0x515d0c=_0x31b914;let _0x3bc8ae=this[_0x515d0c(0x27f)][_0x515d0c(0x295)](_0x5401dd);this['_cachedData']['set'](_0x5401dd,{'unitID':_0x5401dd,'type':_0x2cd84a,'awaitingChangeset':_0x564f10,'mutations':_0x1c050a,'rev':_0x3bc8ae}),this['_saveTaskMap'][_0x515d0c(0x218)](_0x5401dd)||this[_0x515d0c(0x3ea)](_0x5401dd);}[_0x31b914(0x3ea)](_0x5f324e){const _0x282f04=_0x31b914;let _0x59ec08=this[_0x282f04(0x1d5)]();_0x59ec08===0x0?this[_0x282f04(0x2ad)](_0x5f324e):this[_0x282f04(0x1cd)]['set'](_0x5f324e,window['setTimeout'](()=>this[_0x282f04(0x2ad)](_0x5f324e),_0x59ec08));}[_0x31b914(0x1d5)](){const _0x342e63=_0x31b914;return this[_0x342e63(0x3fc)][_0x342e63(0x291)](e[_0x342e63(0x1e9)])??e['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0x14472d){const _0x47c466=_0x31b914;let _0x2ccb53=this['_saveTaskMap'][_0x47c466(0x246)](_0x14472d);return _0x2ccb53!==void 0x0&&window[_0x47c466(0x18d)](_0x2ccb53),this[_0x47c466(0x233)][_0x47c466(0x2d7)]((0x0,e[_0x47c466(0x27b)])(_0x14472d),this[_0x47c466(0x20d)][_0x47c466(0x246)](_0x14472d))[_0x47c466(0x372)](()=>this[_0x47c466(0x1cd)][_0x47c466(0x255)](_0x14472d));}async[_0x31b914(0x3cb)](){const _0x1b8b73=_0x31b914;let _0x1cd71a=[];this[_0x1b8b73(0x1cd)][_0x1b8b73(0x363)]((_0x26cfa9,_0x46534f)=>{const _0x4717db=_0x1b8b73;window['clearTimeout'](_0x26cfa9),_0x1cd71a[_0x4717db(0x310)](this['_saveCache'](_0x46534f)['then'](()=>{const _0x3b5164=_0x4717db;this[_0x3b5164(0x1cd)][_0x3b5164(0x255)](_0x46534f);}));}),await Promise['all'](_0x1cd71a);}};X=S([x(0x0,t['IConfigService']),x(0x1,t[_0x31b914(0x224)]),x(0x2,(0x0,t[_0x31b914(0x3f6)])(l[_0x31b914(0x1f3)]))],X);var De=class extends t['RxDisposable']{constructor(){const _0x4d308b=_0x31b914;super(),b(this,'urlChange$',void 0x0),this[_0x4d308b(0x1d9)]=(0x0,r[_0x4d308b(0x30b)])(window,_0x4d308b(0x2b8))[_0x4d308b(0x1c3)]((0x0,r['takeUntil'])(this[_0x4d308b(0x1f4)]),(0x0,r[_0x4d308b(0x1c4)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x4d308b(0x3ca)])(void 0x0));}[_0x31b914(0x3fb)](_0xfc4be,_0x577e01,_0x105234=!0x1){const _0x143456=_0x31b914;let _0x2461a1=new URL(window[_0x143456(0x1df)]['href']);_0x2461a1[_0x143456(0x259)][_0x143456(0x3c2)](_0xfc4be,_0x577e01),_0x105234?window[_0x143456(0x175)][_0x143456(0x1be)]('','',_0x2461a1['toString']()):window[_0x143456(0x175)][_0x143456(0x3e2)]('','',_0x2461a1[_0x143456(0x2ba)]());}[_0x31b914(0x19b)](_0x46b9f6,_0x11edf7=!0x1){const _0x5cbc20=_0x31b914;let _0x485d6f=new URL(window['location'][_0x5cbc20(0x2e4)]);_0x485d6f[_0x5cbc20(0x259)][_0x5cbc20(0x255)](_0x46b9f6),_0x11edf7?window['history'][_0x5cbc20(0x1be)]('','',_0x485d6f['toString']()):window[_0x5cbc20(0x175)][_0x5cbc20(0x3e2)]('','',_0x485d6f[_0x5cbc20(0x2ba)]());}['getParam'](_0x2963eb){const _0x1c1596=_0x31b914;return new URL(window[_0x1c1596(0x1df)][_0x1c1596(0x2e4)])['searchParams'][_0x1c1596(0x246)](_0x2963eb)??void 0x0;}};let Z=class extends t['Plugin']{constructor(_0x231dfa=ce,_0x303861,_0x4d259b,_0x32348a,_0x4e5d74){const _0x339ff7=_0x31b914;super(),this['_config']=_0x231dfa,this[_0x339ff7(0x245)]=_0x303861,this['_injector']=_0x4d259b,this[_0x339ff7(0x3fc)]=_0x32348a,this[_0x339ff7(0x2a3)]=_0x4e5d74;let {..._0xc9e9e9}=(0x0,t['merge'])({},ce,this[_0x339ff7(0x3f5)]);this['_configService'][_0x339ff7(0x280)](_0x339ff7(0x118),_0xc9e9e9);}[_0x31b914(0x3b3)](){const _0x39b9c5=_0x31b914;this['_registerDependencies'](),this[_0x39b9c5(0x1c5)](this[_0x39b9c5(0x2a3)][_0x39b9c5(0x2d5)](w)),this['_initDependencies']();}[_0x31b914(0x2c7)](){const _0x127b63=_0x31b914;this[_0x127b63(0x2eb)]();}[_0x31b914(0x1e7)](){const _0x562265=_0x31b914;var _0x211c69;let _0x4e1091=[[E],[Y],[B,{'useClass':De}],[m[_0x562265(0x404)],{'useClass':m[_0x562265(0x408)]}],[e['ILocalCacheService'],{'useClass':X}],[C],[z],[A],[R],[V],[J]];this[_0x562265(0x3f5)][_0x562265(0x40f)]!==!0x1&&_0x4e1091[_0x562265(0x310)]([W],[H],[U],[D],[K],[T]),this[_0x562265(0x3f5)][_0x562265(0x356)]&&_0x4e1091[_0x562265(0x310)]([q]),(0x0,t[_0x562265(0x370)])(this[_0x562265(0x2d6)],(0x0,t[_0x562265(0x28e)])(_0x4e1091,(_0x211c69=this[_0x562265(0x3f5)])==null?void 0x0:_0x211c69[_0x562265(0x32f)]));}['_registerRenderDependencies'](){const _0x56fbc9=_0x31b914;this[_0x56fbc9(0x3f5)][_0x56fbc9(0x40f)]!==!0x1&&this[_0x56fbc9(0x1c5)](this[_0x56fbc9(0x245)][_0x56fbc9(0x3c3)](t[_0x56fbc9(0x2f0)][_0x56fbc9(0x221)],[P])),this['disposeWithMe'](this[_0x56fbc9(0x245)]['registerRenderModule'](t[_0x56fbc9(0x2f0)][_0x56fbc9(0x321)],[F]));}[_0x31b914(0x3bb)](){const _0x40ccd9=_0x31b914;(0x0,t[_0x40ccd9(0x1b2)])(this[_0x40ccd9(0x2d6)],[[A],[R],[C],[z],[V],[Y],[J]]),this['_config'][_0x40ccd9(0x40f)]!==!0x1&&(0x0,t[_0x40ccd9(0x1b2)])(this['_injector'],[[K],[T]]),this['_config'][_0x40ccd9(0x356)]&&(0x0,t[_0x40ccd9(0x1b2)])(this[_0x40ccd9(0x2d6)],[[q]]);}};b(Z,'pluginName','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),b(Z,_0x31b914(0x2e6),oe),b(Z,_0x31b914(0x3ec),se),Z=S([(0x0,t[_0x31b914(0x300)])(u[_0x31b914(0x3c9)],d[_0x31b914(0x364)],p[_0x31b914(0x39c)],m[_0x31b914(0x303)],l['UniverCollaborationPlugin'],f[_0x31b914(0x1e0)],e[_0x31b914(0x3f9)]),x(0x1,p['IRenderManagerService']),x(0x2,(0x0,t[_0x31b914(0x3f6)])(t['Injector'])),x(0x3,t[_0x31b914(0x38b)]),x(0x4,t['ICommandService'])],Z);let Q=class extends e['CollaborationSocketService']{constructor(_0x5237a0,_0x3d85c6,_0xb582f0,_0xba1025,_0x201221){super(_0x5237a0,_0x3d85c6,_0xb582f0,_0xba1025,_0x201221);}async[_0x31b914(0x2b4)](_0x2f2fd1){const _0x3cefca=_0x31b914;let _0xdc1e3d=await this['_getSessionTicket'](),_0x509108=this[_0x3cefca(0x40d)](_0x2f2fd1,_0xdc1e3d);return this[_0x3cefca(0x28c)](_0x509108);}[_0x31b914(0x40d)](_0x553fb0,_0xbde421){const _0x5a96f3=_0x31b914;let _0x1ab5b3=typeof window>'u'?new URL(_0x553fb0):new URL(_0x553fb0,window[_0x5a96f3(0x1df)]['origin']);_0x1ab5b3[_0x5a96f3(0x259)]['set'](_0x5a96f3(0x393),_0xbde421);let _0x34a9b4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5a96f3(0x1df)][_0x5a96f3(0x34f)]);return _0x34a9b4[_0x5a96f3(0x246)](_0x5a96f3(0x324))&&_0x1ab5b3['searchParams'][_0x5a96f3(0x3c2)](_0x5a96f3(0x324),_0x34a9b4[_0x5a96f3(0x246)]('runId')),_0x1ab5b3[_0x5a96f3(0x2ba)]();}async[_0x31b914(0x284)](){const _0x3758a0=_0x31b914;var _0x233983;let _0x543c3e=this[_0x3758a0(0x3fc)][_0x3758a0(0x291)](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x34adbb=(_0x543c3e==null?void 0x0:_0x543c3e['wsSessionTicketUrl'])??e[_0x3758a0(0x191)];return((_0x233983=(await this[_0x3758a0(0x136)][_0x3758a0(0x246)](_0x34adbb,{'headers':{'Content-Type':_0x3758a0(0x1dd)}}))[_0x3758a0(0x176)])==null?void 0x0:_0x233983[_0x3758a0(0x35a)])??'';}};Q=S([x(0x0,(0x0,t[_0x31b914(0x3f6)])(t[_0x31b914(0x3a6)])),x(0x1,(0x0,t[_0x31b914(0x3f6)])(m[_0x31b914(0x313)])),x(0x2,t[_0x31b914(0x38b)]),x(0x3,t[_0x31b914(0x2e3)]),x(0x4,l[_0x31b914(0x2de)])],Q);let $=class extends t['Disposable']{constructor(_0x5fc377,_0x428bc3,_0x81bbc8){const _0x3fce5a=_0x31b914;super(),this['_instanceService']=_0x5fc377,this[_0x3fce5a(0x136)]=_0x428bc3,this[_0x3fce5a(0x3fc)]=_0x81bbc8;}async[_0x31b914(0x1e6)](_0x4d5959,_0x41a9a1,_0x1b1ede,..._0x3c2bc6){const _0x153683=_0x31b914;let _0x597e1d=this[_0x153683(0x14c)]['getFocusedUnit']();if(!_0x597e1d)throw Error(_0x153683(0x29e));let _0x6828d9=(this[_0x153683(0x3fc)][_0x153683(0x291)](e[_0x153683(0x389)])??e[_0x153683(0x148)])+'/'+_0x4d5959+_0x153683(0x253)+_0x41a9a1,_0x1dd805={'scriptId':_0x4d5959,'runId':new URL(window[_0x153683(0x1df)]['href'])['searchParams'][_0x153683(0x246)](_0x153683(0x324))??'','function':_0x41a9a1,'unitId':_0x597e1d[_0x153683(0x30c)](),'argsOfFunction':JSON['stringify'](_0x3c2bc6),'invokeId':_0x1b1ede[_0x153683(0x1e3)]??'','executionId':_0x1b1ede['executionId']??''};try{let _0x547b90=await this[_0x153683(0x136)][_0x153683(0x220)](_0x6828d9,{'body':_0x1dd805});return _0x547b90['body'][_0x153683(0x2d4)]&&_0x547b90[_0x153683(0x176)][_0x153683(0x2d4)][_0x153683(0x208)]!==v[_0x153683(0x23d)]['OK']?_0x153683(0x229):_0x547b90[_0x153683(0x176)][_0x153683(0x3aa)];}catch{return'Failed';}}};$=S([x(0x0,t[_0x31b914(0x3e9)]),x(0x1,(0x0,t['Inject'])(m[_0x31b914(0x313)])),x(0x2,t[_0x31b914(0x38b)])],$);const Oe=0x7530,ke='ACTIVE_UNIT_EVENT_CHANNEL';var Ae=class extends t[_0x31b914(0x382)]{constructor(){const _0x3bb354=_0x31b914;super(),b(this,_0x3bb354(0x269),(0x0,t[_0x3bb354(0x174)])()),b(this,_0x3bb354(0x36e),new Set()),b(this,_0x3bb354(0x13c),new Map()),b(this,_0x3bb354(0x116),null),b(this,_0x3bb354(0x20e),new Map()),b(this,'_unitStatus',new Map()),this[_0x3bb354(0x23f)]();}[_0x31b914(0x1bd)](){const _0x3462a0=_0x31b914;super['dispose'](),this['_clearOtherTimers']['forEach']((_0x172024,_0x571fb8)=>this[_0x3462a0(0x3c0)](_0x571fb8)),this['_heartbeatTimer']&&window[_0x3462a0(0x3c1)](this['_heartbeatTimer']);}[_0x31b914(0x31d)](_0x320368){const _0xa7185f=_0x31b914;return this[_0xa7185f(0x318)](_0x320368)['pipe']((0x0,r['distinctUntilChanged'])());}[_0x31b914(0x39d)](_0x3cf2b6){const _0x2e2b5c=_0x31b914;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x2e2b5c(0x36e)][_0x2e2b5c(0x230)](_0x3cf2b6),this['_send']({'type':0x0,'memberID':this[_0x2e2b5c(0x269)],'unitIDs':[_0x3cf2b6],'isForwarded':!0x1});}[_0x31b914(0x202)](_0x78b516){const _0x253ff0=_0x31b914;this[_0x253ff0(0x36e)]['delete'](_0x78b516),this[_0x253ff0(0x36e)][_0x253ff0(0x345)]===0x0&&this[_0x253ff0(0x116)]&&window[_0x253ff0(0x3c1)](this[_0x253ff0(0x116)]);}[_0x31b914(0x23f)](){const _0x49268d=_0x31b914;this[_0x49268d(0x1c5)]((0x0,t[_0x49268d(0x406)])((0x0,r[_0x49268d(0x30b)])(window,_0x49268d(0x289))[_0x49268d(0x151)](_0x4e5396=>{const _0x129fcb=_0x49268d;if(_0x4e5396[_0x129fcb(0x2fe)]!==ke||!_0x4e5396[_0x129fcb(0x2fc)])return;let _0x569388=JSON['parse'](_0x4e5396['newValue']);this[_0x129fcb(0x290)](_0x569388);}))),window[_0x49268d(0x3f0)](_0x49268d(0x2c3),()=>this[_0x49268d(0x264)]({'type':0x1,'memberID':this[_0x49268d(0x269)],'unitIDs':Array[_0x49268d(0x391)](this[_0x49268d(0x36e)])}));}[_0x31b914(0x290)](_0x58996a){const _0x21b963=_0x31b914;switch(_0x58996a[_0x21b963(0x165)]){case 0x0:this[_0x21b963(0x121)](_0x58996a);break;case 0x1:this[_0x21b963(0x12d)](_0x58996a);break;case 0x2:this[_0x21b963(0x3d7)](_0x58996a);break;}}[_0x31b914(0x121)](_0xf87190){const _0x27b3f5=_0x31b914;let {unitIDs:_0x2a3ee7,memberID:_0xdf784b,isForwarded:_0x73c379}=_0xf87190;_0x2a3ee7['forEach'](_0x248ffe=>{const _0x53f774=_0x432a;if(!_0x73c379&&this[_0x53f774(0x13c)][_0x53f774(0x218)](_0x248ffe)&&this[_0x53f774(0x318)](_0x248ffe)[_0x53f774(0x384)](e[_0x53f774(0x23e)][_0x53f774(0x3de)]),!this[_0x53f774(0x13c)][_0x53f774(0x218)](_0x248ffe)||!this['_unitOnClients']['get'](_0x248ffe)[_0x53f774(0x218)](_0xdf784b)){let _0x23896a=this[_0x53f774(0x13c)]['get'](_0x248ffe)||new Set();_0x23896a[_0x53f774(0x230)](_0xdf784b),this[_0x53f774(0x13c)][_0x53f774(0x3c2)](_0x248ffe,_0x23896a),this[_0x53f774(0x407)](_0xdf784b);}}),_0x73c379||this[_0x27b3f5(0x264)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x27b3f5(0x36e)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x9ec91d){const _0x59042e=_0x31b914;this[_0x59042e(0x3c0)](_0x9ec91d);let _0x1d909a=window[_0x59042e(0x2db)](()=>{const _0x1b24ff=_0x59042e;this[_0x1b24ff(0x13c)]['forEach'](_0x50c500=>{const _0x357a89=_0x1b24ff;_0x50c500[_0x357a89(0x255)](_0x9ec91d);});},Oe*0x2);this[_0x59042e(0x20e)]['set'](_0x9ec91d,_0x1d909a);}['_removeClearOtherTimer'](_0x344b1){const _0x57186e=_0x31b914;if(this[_0x57186e(0x20e)][_0x57186e(0x218)](_0x344b1)){let _0x2d9b09=this['_clearOtherTimers'][_0x57186e(0x246)](_0x344b1);_0x2d9b09&&window['clearTimeout'](_0x2d9b09),this[_0x57186e(0x20e)]['set'](_0x344b1,null);}}[_0x31b914(0x12d)](_0x443a4e){const _0x21b83e=_0x31b914;let {memberID:_0x3e47cb,unitIDs:_0x2d396c}=_0x443a4e;_0x2d396c[_0x21b83e(0x363)](_0xb23cbc=>{const _0x96ec60=_0x21b83e;var _0x3f266d;let _0x17596e=this['_unitOnClients'][_0x96ec60(0x246)](_0xb23cbc);_0x17596e&&(_0x17596e[_0x96ec60(0x255)](_0x3e47cb),(_0x3f266d=this['_ensureSubject'](_0xb23cbc))==null||_0x3f266d[_0x96ec60(0x384)](_0x17596e[_0x96ec60(0x345)]===0x0?e[_0x96ec60(0x23e)][_0x96ec60(0x378)]:e[_0x96ec60(0x23e)][_0x96ec60(0x3de)]));}),this[_0x21b83e(0x3c0)](_0x3e47cb);}[_0x31b914(0x3d7)](_0x2d789b){const _0x311073=_0x31b914;this[_0x311073(0x407)](_0x2d789b[_0x311073(0x2f4)]);}[_0x31b914(0x264)](_0x1e6aa5){const _0x154bcc=_0x31b914;localStorage[_0x154bcc(0x2d7)](ke,JSON['stringify'](_0x1e6aa5));}[_0x31b914(0x1e5)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x420fac=_0x432a;this[_0x420fac(0x264)]({'type':0x2,'memberID':this['_id']});},Oe);}['_ensureSubject'](_0x1cfba8){const _0x2bddb6=_0x31b914;return this[_0x2bddb6(0x39b)][_0x2bddb6(0x218)](_0x1cfba8)||this['_unitStatus'][_0x2bddb6(0x3c2)](_0x1cfba8,new r[(_0x2bddb6(0x336))](e[_0x2bddb6(0x23e)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x2bddb6(0x39b)][_0x2bddb6(0x246)](_0x1cfba8);}};Object[_0x31b914(0x19a)](exports,_0x31b914(0x10c),{'enumerable':!0x0,'get':function(){return Q;}}),Object['defineProperty'](exports,_0x31b914(0x1da),{'enumerable':!0x0,'get':function(){return C;}}),exports[_0x31b914(0x10d)]=B,Object[_0x31b914(0x19a)](exports,_0x31b914(0x3d6),{'enumerable':!0x0,'get':function(){return $;}}),exports['SheetCollabCursorShape']=ge,Object['defineProperty'](exports,'UniverCollaborationClientUIPlugin',{'enumerable':!0x0,'get':function(){return Z;}}),exports[_0x31b914(0x388)]=Ae;