@univerjs-pro/collaboration-client-ui 0.25.1 → 0.25.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 +17 -17
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x79b750=_0xba7b;(function(_0xe4e74,_0x21fb92){const _0xbb8dd4=_0xba7b,_0x3e7d06=_0xe4e74();while(!![]){try{const _0x17ddbc=-parseInt(_0xbb8dd4(0x83))/0x1*(parseInt(_0xbb8dd4(0x8d))/0x2)+-parseInt(_0xbb8dd4(0x8e))/0x3*(parseInt(_0xbb8dd4(0x8b))/0x4)+-parseInt(_0xbb8dd4(0x84))/0x5*(-parseInt(_0xbb8dd4(0x88))/0x6)+parseInt(_0xbb8dd4(0x8a))/0x7+-parseInt(_0xbb8dd4(0x91))/0x8*(-parseInt(_0xbb8dd4(0x87))/0x9)+parseInt(_0xbb8dd4(0x85))/0xa+-parseInt(_0xbb8dd4(0x8c))/0xb*(parseInt(_0xbb8dd4(0x86))/0xc);if(_0x17ddbc===_0x21fb92)break;else _0x3e7d06['push'](_0x3e7d06['shift']());}catch(_0x2db4f3){_0x3e7d06['push'](_0x3e7d06['shift']());}}}(_0x21c7,0xa07c1));let e=require('@univerjs-pro/collaboration-client-ui'),t=require('@univerjs/core/facade');var n=class extends t[_0x79b750(0x89)]{[_0x79b750(0x90)](_0x2baea8,_0x2c8fee,..._0x2c7289){return this['_injector']['get'](e['RemoteUniscriptService'])['runOnServer'](_0x2baea8,_0x2c8fee,{},..._0x2c7289);}};function _0xba7b(_0x2b3ae2,_0x29d962){_0x2b3ae2=_0x2b3ae2-0x83;const _0x21c7f8=_0x21c7();let _0xba7b4d=_0x21c7f8[_0x2b3ae2];return _0xba7b4d;}function _0x21c7(){const _0x4e08a3=['1rzstqV','15hzuBhJ','5037650jifUXj','12eTCVIU','180bdbZrJ','2163066UKshaC','FUniver','2211293loNdHK','16zzeIQH','20942801kADHde','386iMogHB','298341EnFGgR','extend','runOnServer','423208oDxGZF'];_0x21c7=function(){return _0x4e08a3;};return _0x21c7();}t['FUniver'][_0x79b750(0x8f)](n);
1
+ function _0x32f1(_0x16124b,_0x53a043){_0x16124b=_0x16124b-0x114;const _0x597231=_0x5972();let _0x32f1f8=_0x597231[_0x16124b];return _0x32f1f8;}const _0x1c92eb=_0x32f1;(function(_0x623f07,_0x48f93a){const _0x4a7f2b=_0x32f1,_0x427441=_0x623f07();while(!![]){try{const _0x310863=parseInt(_0x4a7f2b(0x11a))/0x1+parseInt(_0x4a7f2b(0x11d))/0x2+parseInt(_0x4a7f2b(0x122))/0x3+parseInt(_0x4a7f2b(0x11f))/0x4*(-parseInt(_0x4a7f2b(0x121))/0x5)+parseInt(_0x4a7f2b(0x11c))/0x6*(parseInt(_0x4a7f2b(0x115))/0x7)+-parseInt(_0x4a7f2b(0x118))/0x8+-parseInt(_0x4a7f2b(0x11e))/0x9;if(_0x310863===_0x48f93a)break;else _0x427441['push'](_0x427441['shift']());}catch(_0x423ddd){_0x427441['push'](_0x427441['shift']());}}}(_0x5972,0xe799a));let e=require('@univerjs-pro/collaboration-client-ui'),t=require('@univerjs/core/facade');function _0x5972(){const _0x3f3f03=['8GSqzJc','RemoteUniscriptService','3507995zbgQHp','4583487biVnLl','FUniver','7lXuuiP','extend','runOnServer','6925520cwGFRy','get','527526gLXGDw','_injector','9091482tiWUoL','2283768VujcaT','13454676BmtkMm'];_0x5972=function(){return _0x3f3f03;};return _0x5972();}var n=class extends t[_0x1c92eb(0x114)]{[_0x1c92eb(0x117)](_0x5d33b0,_0x20df1b,..._0x103651){const _0x20b821=_0x1c92eb;return this[_0x20b821(0x11b)][_0x20b821(0x119)](e[_0x20b821(0x120)])[_0x20b821(0x117)](_0x5d33b0,_0x20df1b,{},..._0x103651);}};t[_0x1c92eb(0x114)][_0x1c92eb(0x116)](n);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1f5139=_0x4fbb;(function(_0x3cf7b2,_0x1a2f5d){const _0x554b97=_0x4fbb,_0x43b404=_0x3cf7b2();while(!![]){try{const _0x48a0b5=-parseInt(_0x554b97(0x269))/0x1*(-parseInt(_0x554b97(0x36e))/0x2)+parseInt(_0x554b97(0x363))/0x3+parseInt(_0x554b97(0x3e6))/0x4*(parseInt(_0x554b97(0x2b7))/0x5)+parseInt(_0x554b97(0x377))/0x6*(parseInt(_0x554b97(0x3d5))/0x7)+parseInt(_0x554b97(0x347))/0x8+-parseInt(_0x554b97(0x1e1))/0x9+-parseInt(_0x554b97(0x2fd))/0xa;if(_0x48a0b5===_0x1a2f5d)break;else _0x43b404['push'](_0x43b404['shift']());}catch(_0xf7ddae){_0x43b404['push'](_0x43b404['shift']());}}}(_0x36ac,0xb1556),Object['defineProperty'](exports,Symbol[_0x1f5139(0x2c0)],{'value':_0x1f5139(0x411)}));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/rpc'),u=require('@univerjs/sheets'),d=require('@univerjs/engine-render'),f=require('@univerjs/network'),p=require('@univerjs/docs-ui'),m=require('@univerjs/drawing'),h=require('@univerjs-pro/collaboration'),g=require('@univerjs/docs'),_=require('@univerjs/engine-formula'),v=require('@univerjs/sheets-ui'),y=require('@univerjs/protocol');function b(_0x2ccc67){const _0x27196f=_0x1f5139;switch(_0x2ccc67){case e[_0x27196f(0x1f3)][_0x27196f(0x392)]:return{'icon':(0x0,c[_0x27196f(0x1c6)])(o[_0x27196f(0x3b8)],{}),'colorClass':_0x27196f(0x26c),'i18nKey':'collaboration-client-ui.collabStatus.offline','tooltipKey':_0x27196f(0x215),'clickable':!0x0,'indicator':_0x27196f(0x453)};case e['CollaborationStatus'][_0x27196f(0x3ef)]:return{'icon':(0x0,c[_0x27196f(0x1c6)])(o[_0x27196f(0x3b8)],{}),'colorClass':_0x27196f(0x2dc),'i18nKey':_0x27196f(0x414),'clickable':!0x1,'indicator':_0x27196f(0x453)};case e['CollaborationStatus'][_0x27196f(0x42e)]:return{'icon':(0x0,c['jsx'])(o[_0x27196f(0x247)],{}),'colorClass':_0x27196f(0x3ac),'i18nKey':_0x27196f(0x3dd),'clickable':!0x1,'indicator':'spin'};case e[_0x27196f(0x1f3)][_0x27196f(0x30d)]:return{'icon':(0x0,c[_0x27196f(0x1c6)])(o[_0x27196f(0x21f)],{}),'colorClass':'univer-text-gray-400','i18nKey':_0x27196f(0x26b),'clickable':!0x1,'indicator':_0x27196f(0x453)};case e[_0x27196f(0x1f3)][_0x27196f(0x2a6)]:case e[_0x27196f(0x1f3)]['AWAITING_WITH_PENDING']:return{'icon':(0x0,c['jsx'])(o[_0x27196f(0x247)],{}),'colorClass':_0x27196f(0x3ac),'i18nKey':_0x27196f(0x217),'clickable':!0x1,'indicator':'spin'};case e[_0x27196f(0x1f3)][_0x27196f(0x43d)]:return{'icon':(0x0,c['jsx'])(o[_0x27196f(0x247)],{}),'colorClass':_0x27196f(0x3ac),'i18nKey':_0x27196f(0x217),'clickable':!0x1,'indicator':_0x27196f(0x2e5)};case e[_0x27196f(0x1f3)]['SYNCED']:return{'icon':(0x0,c[_0x27196f(0x1c6)])(o['OnLineIcon'],{}),'colorClass':_0x27196f(0x2f5),'i18nKey':_0x27196f(0x451),'clickable':!0x1,'indicator':'static'};}}function x(_0x489942){const _0x28879f=_0x1f5139;let {status$:_0x4b2cf4}=_0x489942,_0x1c13d2=(0x0,n[_0x28879f(0x3b0)])(_0x4b2cf4,e['CollaborationStatus'][_0x28879f(0x30d)]),_0x5f107a=(0x0,n[_0x28879f(0x2b9)])(t[_0x28879f(0x329)]),_0x332060=(0x0,n[_0x28879f(0x2b9)])(e[_0x28879f(0x398)]),_0x3bb8ee=(0x0,s[_0x28879f(0x3b4)])(()=>b(_0x1c13d2),[_0x1c13d2]),_0x4ac5e9=_0x1c13d2!==e['CollaborationStatus']['OFFLINE'],_0x3e79d8=_0x5f107a['t'](_0x3bb8ee[_0x28879f(0x2c8)]),_0x2b2e7e=_0x3bb8ee[_0x28879f(0x1eb)]?_0x5f107a['t'](_0x3bb8ee[_0x28879f(0x1eb)]):_0x3e79d8,_0x2de791=(0x0,s['useCallback'])(()=>{const _0x52e450=_0x28879f;_0x4ac5e9||_0x332060[_0x52e450(0x35c)]();},[_0x4ac5e9,_0x332060]),_0x2ffc20=(0x0,s['useCallback'])(_0x4b0303=>{const _0x3c82d0=_0x28879f;!_0x4ac5e9&&(_0x4b0303[_0x3c82d0(0x319)]===_0x3c82d0(0x3af)||_0x4b0303[_0x3c82d0(0x319)]==='\x20')&&(_0x4b0303[_0x3c82d0(0x34c)](),_0x332060[_0x3c82d0(0x35c)]());},[_0x4ac5e9,_0x332060]),_0x3d9cc0=(0x0,c['jsx'])('span',{'className':(0x0,a['clsx'])(_0x28879f(0x2aa),_0x28879f(0x382),_0x3bb8ee[_0x28879f(0x300)],{'univer-animate-spin':_0x3bb8ee[_0x28879f(0x3b6)]===_0x28879f(0x2e5),'univer-animate-pulse':_0x3bb8ee[_0x28879f(0x3b6)]===_0x28879f(0x32a)}),'aria-hidden':'true','children':_0x3bb8ee[_0x28879f(0x21a)]}),_0x478ca5=(0x0,c[_0x28879f(0x1c6)])(_0x28879f(0x345),{'className':(0x0,a[_0x28879f(0x232)])(_0x28879f(0x2aa),_0x28879f(0x270),_0x28879f(0x274),_0x28879f(0x367),'dark:focus:univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x3bb8ee[_0x28879f(0x2a3)],'univer-cursor-default':!_0x3bb8ee['clickable']}),'children':_0x3d9cc0});return _0x3bb8ee[_0x28879f(0x2a3)]?(0x0,c[_0x28879f(0x1c6)])(a[_0x28879f(0x24e)],{'title':_0x2b2e7e,'placement':'bottom','children':(0x0,c['jsx'])('button',{'type':_0x28879f(0x3c4),'onClick':_0x2de791,'onKeyDown':_0x2ffc20,'className':(0x0,a['clsx'])(_0x28879f(0x1fa),_0x28879f(0x44a),_0x28879f(0x209),_0x28879f(0x221)),'aria-label':_0x3e79d8+_0x28879f(0x278)+_0x2b2e7e,'role':_0x28879f(0x202),'aria-live':'polite','aria-atomic':_0x28879f(0x3fb),'children':_0x478ca5})}):(0x0,c['jsx'])(a[_0x28879f(0x24e)],{'title':_0x2b2e7e,'placement':_0x28879f(0x3a0),'children':(0x0,c[_0x28879f(0x1c6)])(_0x28879f(0x1c9),{'className':(0x0,a[_0x28879f(0x232)])(_0x28879f(0x1fa),'univer-border-none\x20univer-bg-transparent',_0x28879f(0x209)),'aria-label':_0x3e79d8,'role':'status','aria-live':_0x28879f(0x3ba),'aria-atomic':_0x28879f(0x3fb),'children':_0x478ca5})});}function S(_0x519d43){'@babel/helpers - typeof';const _0x35746b=_0x1f5139;return S=typeof Symbol==_0x35746b(0x2f4)&&typeof Symbol[_0x35746b(0x2a4)]=='symbol'?function(_0x24326c){return typeof _0x24326c;}:function(_0x429631){const _0x589b37=_0x35746b;return _0x429631&&typeof Symbol==_0x589b37(0x2f4)&&_0x429631[_0x589b37(0x23a)]===Symbol&&_0x429631!==Symbol['prototype']?_0x589b37(0x2da):typeof _0x429631;},S(_0x519d43);}function ee(_0x5b907c,_0x305468){const _0x31c7d7=_0x1f5139;if(S(_0x5b907c)!='object'||!_0x5b907c)return _0x5b907c;var _0x2439a5=_0x5b907c[Symbol['toPrimitive']];if(_0x2439a5!==void 0x0){var _0x451b22=_0x2439a5['call'](_0x5b907c,_0x305468||_0x31c7d7(0x381));if(S(_0x451b22)!=_0x31c7d7(0x2d3))return _0x451b22;throw TypeError(_0x31c7d7(0x2fe));}return(_0x305468===_0x31c7d7(0x2a9)?String:Number)(_0x5b907c);}function te(_0x4b72f6){const _0x1d34f7=_0x1f5139;var _0x32200b=ee(_0x4b72f6,_0x1d34f7(0x2a9));return S(_0x32200b)==_0x1d34f7(0x2da)?_0x32200b:_0x32200b+'';}function C(_0x22d207,_0x362a7d,_0x215638){const _0x23e120=_0x1f5139;return(_0x362a7d=te(_0x362a7d))in _0x22d207?Object[_0x23e120(0x2e4)](_0x22d207,_0x362a7d,{'value':_0x215638,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x22d207[_0x362a7d]=_0x215638,_0x22d207;}function w(_0x535a86,_0x5370fc){return function(_0x359bcc,_0x2f84a1){_0x5370fc(_0x359bcc,_0x2f84a1,_0x535a86);};}function T(_0x49f07d,_0x1249ff,_0x465a94,_0x3fbe86){const _0x3f323a=_0x1f5139;var _0x27eb66=arguments[_0x3f323a(0x280)],_0x4ce482=_0x27eb66<0x3?_0x1249ff:_0x3fbe86===null?_0x3fbe86=Object['getOwnPropertyDescriptor'](_0x1249ff,_0x465a94):_0x3fbe86,_0x4b876e;if(typeof Reflect==_0x3f323a(0x2d3)&&typeof Reflect[_0x3f323a(0x42c)]==_0x3f323a(0x2f4))_0x4ce482=Reflect[_0x3f323a(0x42c)](_0x49f07d,_0x1249ff,_0x465a94,_0x3fbe86);else{for(var _0x3c41a6=_0x49f07d['length']-0x1;_0x3c41a6>=0x0;_0x3c41a6--)(_0x4b876e=_0x49f07d[_0x3c41a6])&&(_0x4ce482=(_0x27eb66<0x3?_0x4b876e(_0x4ce482):_0x27eb66>0x3?_0x4b876e(_0x1249ff,_0x465a94,_0x4ce482):_0x4b876e(_0x1249ff,_0x465a94))||_0x4ce482);}return _0x27eb66>0x3&&_0x4ce482&&Object[_0x3f323a(0x2e4)](_0x1249ff,_0x465a94,_0x4ce482),_0x4ce482;}let E=class extends t['Disposable']{constructor(_0x32631d,_0x2b1aa6,_0x49d855,_0x32a33b){const _0x43865f=_0x1f5139;super(),this[_0x43865f(0x1ec)]=_0x32631d,this[_0x43865f(0x20f)]=_0x2b1aa6,this[_0x43865f(0x298)]=_0x49d855,this['_uiPartsService']=_0x32a33b,C(this,'_status$',new r['BehaviorSubject'](e['CollaborationStatus'][_0x43865f(0x30d)])),this[_0x43865f(0x26e)](),this[_0x43865f(0x240)]();}['_initStatusListener'](){const _0x309e17=_0x1f5139;this[_0x309e17(0x3b1)]((0x0,r[_0x309e17(0x2bb)])(this[_0x309e17(0x1ec)][_0x309e17(0x374)],this[_0x309e17(0x1ec)]['getCurrentTypeOfUnit$'](t[_0x309e17(0x21d)][_0x309e17(0x1e5)]),this['_univerInstanceService'][_0x309e17(0x28f)](t['UniverInstanceType'][_0x309e17(0x396)]))[_0x309e17(0x25f)]((0x0,i[_0x309e17(0x448)])(()=>ne(this[_0x309e17(0x1ec)])),(0x0,i[_0x309e17(0x364)])(),(0x0,r['switchMap'])(_0x56e61b=>_0x56e61b?this[_0x309e17(0x298)]['getCollabEntity$'](_0x56e61b):(0x0,r['of'])(null)),(0x0,r[_0x309e17(0x2d6)])(_0x349266=>_0x349266?_0x349266[_0x309e17(0x2f8)]:(0x0,r['of'])(e['CollaborationStatus'][_0x309e17(0x30d)])))[_0x309e17(0x43e)](_0x2b0fee=>{const _0x54cfcb=_0x309e17;this[_0x54cfcb(0x395)][_0x54cfcb(0x41b)](_0x2b0fee);}));}[_0x1f5139(0x26e)](){const _0x4913fd=_0x1f5139;this[_0x4913fd(0x3b1)](this[_0x4913fd(0x39c)][_0x4913fd(0x2f0)](n[_0x4913fd(0x26f)][_0x4913fd(0x2c4)],()=>(0x0,n[_0x4913fd(0x445)])(re({'status$':this[_0x4913fd(0x395)]['asObservable']()}),this[_0x4913fd(0x20f)])));}};E=T([w(0x0,t['IUniverInstanceService']),w(0x1,(0x0,t[_0x1f5139(0x3c9)])(t[_0x1f5139(0x40e)])),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(e['CollaborationController'])),w(0x3,n[_0x1f5139(0x2cd)])],E);function ne(_0xe412f9){const _0x470b38=_0x1f5139;let _0x32bf2a=_0xe412f9[_0x470b38(0x412)](),_0x442f68=_0x32bf2a==null?void 0x0:_0x32bf2a['getUnitId']();if(_0x442f68&&!(0x0,t['isInternalEditorID'])(_0x442f68))return _0x442f68;let _0x9c704=_0xe412f9[_0x470b38(0x2be)](t[_0x470b38(0x21d)]['UNIVER_DOC']),_0xb1167=_0x9c704==null?void 0x0:_0x9c704['getUnitId']();if(_0xb1167&&!(0x0,t[_0x470b38(0x332)])(_0xb1167))return _0xb1167;let _0x5ddb07=_0xe412f9[_0x470b38(0x2be)](t[_0x470b38(0x21d)][_0x470b38(0x396)]);if(_0x5ddb07)return _0x5ddb07[_0x470b38(0x3e2)]();let _0x352e03=_0xe412f9['getAllUnitsForType'](t[_0x470b38(0x21d)][_0x470b38(0x1e5)])[_0x470b38(0x423)](_0x119000=>!(0x0,t[_0x470b38(0x332)])(_0x119000['getUnitId']()));return _0x352e03?_0x352e03[_0x470b38(0x3e2)]():null;}function re(_0x5c100a){let {status$:_0x52ba6f}=_0x5c100a;return function(){const _0x591d69=_0x4fbb;return(0x0,c[_0x591d69(0x1c6)])(x,{'status$':_0x52ba6f});};}const D=(0x0,t['createIdentifier'])(_0x1f5139(0x3c8));let O=class extends t[_0x1f5139(0x2b4)]{constructor(_0x276796,_0x4b5d91,_0x153d44,_0x150793,_0x24f59e){const _0x2a5c49=_0x1f5139;super(),this[_0x2a5c49(0x3bb)]=_0x276796,this[_0x2a5c49(0x29b)]=_0x4b5d91,this[_0x2a5c49(0x41f)]=_0x153d44,this[_0x2a5c49(0x321)]=_0x150793,_0x24f59e?_0x24f59e==null||_0x24f59e[_0x2a5c49(0x294)]()['then'](()=>this['_init']()):(this[_0x2a5c49(0x29b)][_0x2a5c49(0x250)](_0x2a5c49(0x3b3),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2a5c49(0x1e3)]());}async[_0x1f5139(0x1e3)](){const _0x528783=_0x1f5139;let _0x1c6da9=this[_0x528783(0x3bb)]['getParam'](_0x528783(0x203)),_0x104975=this['_urlService'][_0x528783(0x3b9)](_0x528783(0x2a0)),_0x31d071=this[_0x528783(0x3bb)][_0x528783(0x3b9)](_0x528783(0x40c));if(!_0x1c6da9||!_0x104975){this[_0x528783(0x29b)][_0x528783(0x250)](_0x528783(0x3b3),_0x528783(0x326));return;}let _0x4018db=await this[_0x528783(0x321)][_0x528783(0x335)](_0x1c6da9,Number(_0x104975),_0x31d071);_0x4018db&&_0x4018db instanceof t[_0x528783(0x2cb)]&&this[_0x528783(0x465)](_0x4018db);}async[_0x1f5139(0x465)](_0x5f2ee2){const _0x44cf97=_0x1f5139;await this[_0x44cf97(0x337)](_0x5f2ee2),_0x5f2ee2[_0x44cf97(0x1df)][_0x44cf97(0x25f)]((0x0,r['takeUntil'])(this[_0x44cf97(0x1cb)]))[_0x44cf97(0x43e)](_0x68d9fc=>{const _0x38c42a=_0x44cf97;_0x68d9fc&&this[_0x38c42a(0x348)](_0x68d9fc);}),this[_0x44cf97(0x3bb)][_0x44cf97(0x407)][_0x44cf97(0x25f)]((0x0,r['takeUntil'])(this['dispose$']))[_0x44cf97(0x43e)](()=>this[_0x44cf97(0x337)](_0x5f2ee2));}[_0x1f5139(0x348)](_0x254988,_0x1cf73d=!0x1){const _0x495902=_0x1f5139;let _0x24cdd8=this[_0x495902(0x3bb)]['getParam'](_0x495902(0x40c));_0x254988[_0x495902(0x24d)]()!==_0x24cdd8&&this[_0x495902(0x3bb)]['setParam'](_0x495902(0x40c),_0x254988['getSheetId'](),_0x1cf73d);}async[_0x1f5139(0x337)](_0x4ddd24){const _0x145c78=_0x1f5139;var _0x51f083;let _0x282935=this[_0x145c78(0x3bb)][_0x145c78(0x3b9)]('subunit');if(!_0x282935||!_0x4ddd24[_0x145c78(0x1c7)](_0x282935)){let _0x32fa6a=_0x4ddd24[_0x145c78(0x3a3)]()[0x0],_0x4d1016=_0x4ddd24[_0x145c78(0x1c7)](_0x32fa6a);if(!_0x4d1016)return;this['_updateURLWithCurrentState'](_0x4d1016,!0x0),await this[_0x145c78(0x41f)]['executeCommand'](u[_0x145c78(0x430)]['id'],{'unitId':_0x4ddd24[_0x145c78(0x3e2)](),'subUnitId':_0x32fa6a});return;}((_0x51f083=_0x4ddd24[_0x145c78(0x2f6)]())==null?void 0x0:_0x51f083[_0x145c78(0x24d)]())!==_0x282935&&await this[_0x145c78(0x41f)]['executeCommand'](u['SetWorksheetActivateCommand']['id'],{'unitId':_0x4ddd24[_0x145c78(0x3e2)](),'subUnitId':_0x282935});}};function _0x36ac(){const _0x32c60e=['_collaborationController','getFormulaLimitStatusUrl','TEXT_RANGE_LAYER_INDEX','_logService','InsertColCommandId','WebSocketService','getCoordByCell','setTimeout','type','FromArray','_imageIoService','clickable','iterator','handleInsertRangeMoveRight','AWAITING','collab-text-anchor-','_createSocketURL','string','univer-flex\x20univer-items-center\x20univer-justify-center','backgroundColor','getCollabCursors$','all','collab-text-range-','addEventListener','contains','CollaborationDataLoaderController','_initEntityListener','functionsExecutedState','RxDisposable','CollaborationEvent','BehaviorSubject','5tatkiH','_refreshCollabCursors','useDependency','replaceDocRanges','merge','_getMergeRange','values','getCurrentUnitOfType','_drawRectRange','toStringTag','green.600','isEditing','isFormulaString','HEADER_MENU','add','fillStyle','_httpService','i18nKey','executeCommand','_docTransformStateCacheService','Workbook','getMember','IUIPartsService','version','_selfUnitIDs','IBeforeCloseService','deserializeRangeWithSheet','_getLighterColor','object','_notificationService','source','switchMap','getDocRanges','_collaborationUIEventService','getSkeleton','symbol','_configService','univer-text-orange-500','parse','unhandledrejection','setItem','enableFrontendLog','saveTaskMap','reason','complete','defineProperty','spin','_docSkeletonManagerService','getCellPositionByOffset','SessionStatus','rgb','_hasFormulaInDirtyRanges','Subject','startsWith','InsertRangeMoveDownCommandId','UPDATE_CURSOR','IImageIoService','registerComponent','endRow','HTTPService','fromEventSubject','function','univer-text-green-500','getActiveSheet','_textBubble','status$','USERS_LEAVE','_startCalculationLimit','packageName','beforeCommandExecuted','27996920FvDNJC','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getUnitStatus$','colorClass','_localCacheService','onPointerEnter$','startColumn','post','actions','size','_initUserListener','replaceState','_drawTextRange','_handleEvent','onTransformChange$','_applyCommand','NOT_COLLAB','[Unhandled\x20Rejection]:\x20','href','currentTheme$','_checkCalculationAvailable','color','parseInt','stage','setParam','_labelPosition','triggerDblclick','ILocalCacheService','key','debounce','pushState','offsetY','_backgroundColor','ranges','getViewport','currentUsage','_dataLoaderService','_updateLocalCursor','_beforeCloseService','_syncEditingCollabCursorService','textRanges','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','name','getRangePointData','LocaleService','pulse','getVpScrollXYInfoByPosToVp','IMessageService','maxFormulaLimit','transformStateCache','debounceTime','handleMoveRange','application/json','isInternalEditorID','_hovered','then','loadUnit','DisposableCollection','_updateSubUnitFromURLParams','row','rgba(','_entityInit$','InsertRangeMoveRightCommandId','Optional','updateOfflineData','_entities','unshift','getOffsetConfig','origin','getCurrentSelections','runId','MemberService','span','_getSessionTicket','7989056mvKtgi','_updateURLWithCurrentState','RegularPolygon','getActiveRange','fillText','preventDefault','getMergeData','DependentOn','delete','JOIN_ROOM_FAILED','filename','_disabled','getColorFromTheme','bind','cursorInfo$','_highlightSecond','mergeOverrideWithDependencies','EffectRefRangId','_collaborationSessionService','some','range','reconnect','ticket','SheetsSelectionsService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','executionId','ONLINE','_offsetY','2851464UNFcCg','distinctUntilChanged','Warning','from','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','yellow.400','RemoteUniscriptService','saveOfflineData','_scheduleSaving','_colorIndex','sheetId','2bjefqy','collaboration-client-ui.permission.content','selection','/universer-api/license/formula/limit/status','memberID','[Window\x20Error]:\x20','focused$','isTransformMutationsWithChangesetSuccess','replace','798UXOYRu','InsertRowCommandId','generateRandomId','_roomMembers$','Loading','set','_isBlinkVisible','_online','highlight','_themeService','default','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','shareReplay','_transformUndoRedoStack','cursorInfo','collaboration-client-ui.permission.title','MoveRangeCommandId','getMemberID','_renderManagerService','_transformService','searchParams','SetFormulaCalculationNotificationMutation','drawWith','_registerRenderDependencies','registerRefRange','_render','_uploadLog','OFFLINE','Rectangle','restore','_status$','UNIVER_SHEET','_lastPointer','CollaborationSessionService','_initEvent','_blinkTimer','throttleTime','_uiPartsService','getSheetObject','runRefRangeMutations','getValue','bottom','SetTextSelectionsOperation','_transformPreviousActiveRange','getUnhiddenWorksheets','fill','_transformHistoryAndStateStack','handleInsertRow','CollaborationSocketService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','entityInit$','_draw','addObject','univer-text-blue-500','collaboration-client-ui.formula.calculation.unable','ILocalStorageService','Enter','useObservable','disposeWithMe','setShapeProps','[CollaborationDataLoaderController]','useMemo','RemoveRowCommandId','indicator','_taskIds','OffLineIcon','getParam','polite','_urlService','_messageService','top','_cachedData','_showGuardMessage','Failed','roomMembers$','_docStateChangeManagerService','mapTo','button','stringify','Shape','#FFF','uni.network.url-service','Inject','RECT','0.2)','stageInfo','location','handleIRemoveCol','saveImage','currentSkeleton$','loadOfflineData','_saveTaskMap','TRANSFORM_CHANGE_OBSERVABLE_TYPE','engine','51079WVEOTx','ICommandService','handleInsertCol','max','\x20at\x20','_color','DocIMEInputManagerService','wsSessionTicketUrl','collaboration-client-ui.collabStatus.fetchMiss','labelPosition','_setupBeforeClosingHandler','_sheetSkeletonManagerService','docStateChange$','getUnitId','UniverCollaborationClientPlugin','toRgbString','font','2606048Lkeluy','setConfig','jiqing.500','doc.mutation.rich-text-editing','syncEditingCollabCursor','newValue','UniverCollaborationClientUIPlugin','transformByState','exhaustSavingTask','CONFLICT','_monkeyPatchLogService','startFormulaLimitUrl','measureText','endColumn','makeDirty','_clearOtherTimers','ISocketService','hide','invokeId','Rect','assignAColorForMemberID','true','lineno','SOCKET_FAILED','RemoveColCommandId','text','disposeUnit','getTypeOfUnitDisposed$','transformMutation','onLocalMutation','push','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','handleDeleteRangeMoveLeft','urlChange$','disableLocalCache','_getAnchorBounding','_cursorInfo$','isActive','subunit','_cursor','Injector','addHandlerCallback','_localStorageService','Module','getFocusedUnit','transformIMECache','collaboration-client-ui.collabStatus.conflict','LOCAL_CACHE_INTERVAL','_docClipboardService','min','Error','_saveCache','START_CALCULATION','next','limitInfo','_getSheetObject','TEXT','_commandService','_onRefRangeChange','sessionStatus$','colno','find','shift','override','_initCommandInterceptor','CollaborationController','_docTransformSelectionsService','addClipboardHook','has','_toggleOffline','decorate','_anchor','FETCH_MISS','_startSheetCollabCursor','SetWorksheetActivateCommand',',\x200.2)','_initCommandExecutedListener','0.25.1','removeEventListener','column','isTransformMutationFailure','DocStateChangeManagerService','_maxFormulaLimit','transform','_showText','clearInterval','dirtyRanges','PENDING','subscribe','_pollingInterval','Vector2','_drawAnchor','RevisionService','clearTimeout','_getFormulaLimitStatus','connectInjector','WebBrowserSingleActiveUnitService','socket$','map','get','univer-border-none\x20univer-bg-transparent','resize','_revisionService','touchDependencies','removeParam','_highlight','ISnapshotServerService','collaboration-client-ui.collabStatus.synced','ITransformService','static','NO_OTHER_CLIENTS_EDITING','WebURLService','getCellMatrix','_name','_lastResponseTimestamp','IUniverInstanceService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','evenodd','getUnit','SheetSkeletonManagerService','Plugin','_unitStatus','_cursors','ErrorCode','send','IConfigService','findNodePositionByCharIndex','_setupSubUnitSync','/universer-api/license/formula/limit/done','Tools','MessageType','Disposable','_refRangeService','jsx','getSheetBySheetId','SetDocZoomRatioOperation','div','getStateCache','dispose$','error','search','_unitOnClients','_collabSessionService','_id','unitID','_onCursorDelete','_handleHeartbeatEvent','_removeClearOtherTimer','registerBeforeClose','_config','with','...','now','takeUntil','SheetCollabCursorShape','code','_handleLeaveEvent','PERMISSION_DENIED','activeSheet$','showText','11552364VsoAGL','setUndoRedoMutationParamsCache','_init','MUTATION','UNIVER_DOC','_hover','DOC_RANGE_TYPE','_pointerMoveDisposable','requireSession','_registerDependencies','tooltipKey','_univerInstanceService','init','OTHER_CLIENTS_EDITING','_stopBlinking','_removeCollabCursors','unsubscribe','ILogService','CollaborationStatus','_clearPolling','createSocket','_colorAssignService','onMouseMove','rgba','RefRangeService','univer-inline-flex\x20univer-items-center\x20univer-justify-center','getUndoRedoMutationParamsCache','slice','getLocalCacheKey','SetFormulaCalculationStartMutation','unitId','serializeRangeWithSheet','_startDocCollabCursor','status','unit','VIEW_MAIN','black','totalFormulasToCalculate','body','ColorKit','univer-m-0\x20univer-p-0','m1Prime','getItem','undoState','CollaborationUIEventId','_checkAndWaitForCalculationPermission','_injector','closePath','getRenderById','highlightSecond','_heartbeatTimer','subscribeEvent','collaboration-client-ui.collabClient.tooltip.reconnect','filter','collaboration-client-ui.collabStatus.syncing','createInstance','isFormulaId','icon','_scheduleHeartbeat','_scene','UniverInstanceType','_collabCursorState$','OnLineIcon','runOnServer','univer-appearance-none','_doCreateSocket','redoState','includes','_instanceService','toDisposable','_scheduleClearOtherTimer','_releaseCalculationLimit','_initWindowErrorListener','startRow','history','_startBlinking','onPointerLeave$','getConfig','onPointerMove$','FormulaExecutedStateType','UnitStatus','clsx','setInterval','getColor','_docSkeleton','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','purple.300','_localeService','params','constructor','BrowserCollaborationSocketService','getAncestorScale','asObservable','_onCursorUpdate','_toggleOnline','_initStatusListener','lineTo','toString','NodePositionConvertToCursor','_eventUnsubscribe','ThemeService','split','LoadingMultiIcon','Unknown\x20user','_anchorDot','m2Prime','combineLatest','_context','getSheetId','Tooltip','_setFormulaLimitStatus','debug','onCommandExecuted','_session','save','_ensureSubject','imageSourceType','forEach','handleInsertRangeMoveDown','deepClone','storage','message','_blinkIntervalTimer','transformSelections','join','collaboration-client-ui.collaboration.closeRoom','pipe','_send','transformRemoteChangeset','getTypeOfUnitAdded$','enableLocalCache','_initUnhandledRejectionListener','_updateCollabCursors','_collabCursorController','arc','INotificationService','1238513wokiHJ','stack','collaboration-client-ui.collabStatus.notCollab','univer-text-red-500','SHEET_VIEWPORT_KEY','_initStatusComponent','BuiltInUIPart','univer-h-8\x20univer-w-8\x20univer-rounded-lg','collab-rect-range-','blue.400','hovered','univer-transition-all\x20univer-duration-200','releaseFormulaLimitUrl','selections','Success','\x20-\x20','_handleHover','show','_memberService','height','fillRule','mutations','COLORS','length','_getSaveTimeout','_docTransformIMECacheService','_memberID','setAlpha','width','_range','isArray','dispose','_currentUsage','_initResize','_shapes','_hideTimer','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','registerDependencies','getCurrentTypeOfUnit$','unload','fromEvent','data','DeleteRangeMoveLeftCommandId','whenReady','IRenderManagerService','_cursorShapes','_assignedColors'];_0x36ac=function(){return _0x32c60e;};return _0x36ac();}O=T([w(0x0,D),w(0x1,t[_0x1f5139(0x1f2)]),w(0x2,t[_0x1f5139(0x3d6)]),w(0x3,(0x0,t[_0x1f5139(0x3c9)])(e['DataLoaderService'])),w(0x4,(0x0,t[_0x1f5139(0x33c)])(l['IRemoteInstanceService']))],O);var ie='@univerjs-pro/collaboration-client-ui',ae=_0x1f5139(0x433);let k=class extends t['RxDisposable']{constructor(_0x5268c5,_0x495837){const _0x330597=_0x1f5139;super(),this['_docClipboardService']=_0x5268c5,this[_0x330597(0x2a2)]=_0x495837,this[_0x330597(0x1e3)]();}[_0x1f5139(0x1e3)](){const _0x54c099=_0x1f5139;let _0x27db72=this;this[_0x54c099(0x3b1)](this[_0x54c099(0x416)][_0x54c099(0x429)]({'onBeforePasteImage':async _0x1e6e71=>{const _0x49aa7a=_0x54c099;let _0x36d1eb=await _0x27db72[_0x49aa7a(0x2a2)][_0x49aa7a(0x3cf)](_0x1e6e71);return _0x36d1eb?{'source':_0x36d1eb[_0x49aa7a(0x2d5)],'imageSourceType':_0x36d1eb[_0x49aa7a(0x255)]}:null;}}));}};k=T([w(0x0,p['IDocClipboardService']),w(0x1,m[_0x1f5139(0x2ef)])],k);const A=[_0x1f5139(0x237),_0x1f5139(0x3e8),_0x1f5139(0x2c1),'red.300',_0x1f5139(0x272),_0x1f5139(0x368)];var j=class extends t['Disposable']{constructor(..._0x246654){const _0x18477f=_0x1f5139;super(..._0x246654),C(this,_0x18477f(0x297),new Map()),C(this,_0x18477f(0x36c),0x0);}[_0x1f5139(0x3fa)](_0x2a0df2){const _0x2addf2=_0x1f5139;if(this['_assignedColors'][_0x2addf2(0x42a)](_0x2a0df2))return this[_0x2addf2(0x297)][_0x2addf2(0x449)](_0x2a0df2);let _0x882483=A[this[_0x2addf2(0x36c)]];return this[_0x2addf2(0x36c)]=(this[_0x2addf2(0x36c)]+0x1)%A[_0x2addf2(0x280)],this[_0x2addf2(0x297)][_0x2addf2(0x37c)](_0x2a0df2,_0x882483),_0x882483;}};function M(_0x7bb1f8){const _0x5f22e0=_0x1f5139;let _0x1feba3='';for(let _0x31ed82 of _0x7bb1f8){let {startOffset:_0x5e00c0,endOffset:_0x4e6686,isActive:_0x5461af,rangeType:_0x391cdd,segmentId:_0x21d33b,segmentPage:_0x18cbd0}=_0x31ed82;_0x1feba3[_0x5f22e0(0x280)]&&(_0x1feba3+=','),_0x1feba3+=_0x5e00c0+':'+_0x4e6686+':'+(_0x5461af?'1':'0')+':'+_0x391cdd+':'+_0x21d33b+':'+_0x18cbd0;}return _0x1feba3;}function oe(_0x3beedb){const _0x474823=_0x1f5139;let _0x1180cd=_0x3beedb[_0x474823(0x246)](','),_0x19bbda=[];for(let _0x44173e of _0x1180cd){let [_0x4fad94,_0x3c051c,_0x598e9d,_0x5ee25a,_0x21b369,_0x41315b]=_0x44173e['split'](':');_0x19bbda['push']({'startOffset':Number(_0x4fad94),'endOffset':Number(_0x3c051c),'collapsed':_0x4fad94===_0x3c051c,'isActive':_0x598e9d==='1','rangeType':_0x5ee25a===t[_0x474823(0x1e7)][_0x474823(0x41e)]?t[_0x474823(0x1e7)][_0x474823(0x41e)]:t[_0x474823(0x1e7)]['RECT'],'segmentId':typeof _0x21b369=='string'?String(_0x21b369):'','segmentPage':Number(_0x41315b==null?-0x1:_0x41315b)});}return _0x19bbda[_0x474823(0x35a)](_0x2bf93e=>_0x2bf93e[_0x474823(0x40b)])||(_0x19bbda[0x0]['isActive']=!0x0),_0x19bbda;}var N=class extends t[_0x1f5139(0x2b4)]{constructor(..._0x4d3344){const _0x5cce91=_0x1f5139;super(..._0x4d3344),C(this,'_collabCursorState$',new r[(_0x5cce91(0x2b6))](null)),C(this,'collabCursorState$',this[_0x5cce91(0x21e)][_0x5cce91(0x23d)]());}[_0x1f5139(0x3ea)](_0x352a99){const _0x299eee=_0x1f5139;let {unitID:_0x6e5a5e,memberID:_0x39760a,textRanges:_0x1b6da5}=_0x352a99,_0x36491a=M(_0x1b6da5);if(_0x36491a==='')return;let _0x3de11c={'unitID':_0x6e5a5e,'memberID':_0x39760a,'selection':_0x36491a};this[_0x299eee(0x21e)][_0x299eee(0x41b)](_0x3de11c);}};let P=class extends t[_0x1f5139(0x2b4)]{get['cursorInfo'](){const _0x31dca2=_0x1f5139;return this[_0x31dca2(0x40a)][_0x31dca2(0x39f)]();}get['roomMembers'](){const _0x1bff9b=_0x1f5139;return this['_roomMembers$'][_0x1bff9b(0x39f)]();}constructor(_0x4a4d59,_0x97b7e5,_0x478c67,_0x5cfd4a,_0x1a58e6,_0x473f99,_0x1e710f,_0x5f36bd,_0x530a4c){const _0x37f2e0=_0x1f5139;super(),this['unitID']=_0x4a4d59,this[_0x37f2e0(0x252)]=_0x97b7e5,this[_0x37f2e0(0x20f)]=_0x478c67,this[_0x37f2e0(0x1f6)]=_0x5cfd4a,this['_memberService']=_0x1a58e6,this[_0x37f2e0(0x324)]=_0x473f99,this[_0x37f2e0(0x38a)]=_0x1e710f,this[_0x37f2e0(0x1ec)]=_0x5f36bd,this[_0x37f2e0(0x41f)]=_0x530a4c,C(this,_0x37f2e0(0x37e),!0x1),C(this,_0x37f2e0(0x1e3),!0x1),C(this,'_cursorInfo$',new r['BehaviorSubject'](new Map())),C(this,'cursorInfo$',this[_0x37f2e0(0x40a)][_0x37f2e0(0x23d)]()),C(this,_0x37f2e0(0x37a),new r[(_0x37f2e0(0x2b6))]([])),C(this,_0x37f2e0(0x3c1),this['_roomMembers$'][_0x37f2e0(0x25f)]((0x0,r[_0x37f2e0(0x32f)])(0x12c))),C(this,'_updateLocalCursor',(0x0,t[_0x37f2e0(0x31a)])(_0x2d6419=>{const _0x51abb1=_0x37f2e0;let _0x527f7b={'eventID':h[_0x51abb1(0x2b5)][_0x51abb1(0x2ee)],'data':{'unitID':this[_0x51abb1(0x1d1)],'memberID':this[_0x51abb1(0x252)][_0x51abb1(0x388)](),'selection':M(_0x2d6419)}};this[_0x51abb1(0x252)][_0x51abb1(0x462)](_0x527f7b,this[_0x51abb1(0x1d1)]);},0x64));}[_0x1f5139(0x288)](){const _0x54505b=_0x1f5139;super[_0x54505b(0x288)](),this[_0x54505b(0x40a)][_0x54505b(0x41b)](new Map()),this[_0x54505b(0x40a)][_0x54505b(0x2e3)](),this[_0x54505b(0x37a)][_0x54505b(0x41b)]([]),this[_0x54505b(0x37a)][_0x54505b(0x2e3)]();}['init'](){const _0x55b2b7=_0x1f5139;this[_0x55b2b7(0x1e3)]||(this['_init']=!0x0,this[_0x55b2b7(0x252)]['sessionStatus$'][_0x55b2b7(0x25f)]((0x0,r[_0x55b2b7(0x1da)])(this[_0x55b2b7(0x1cb)]))[_0x55b2b7(0x43e)](_0x461cbc=>{const _0xf20570=_0x55b2b7;_0x461cbc===e[_0xf20570(0x2e8)]['ONLINE']?this[_0xf20570(0x23f)]():this[_0xf20570(0x42b)]();}),this['_session']['event$'][_0x55b2b7(0x25f)]((0x0,r[_0x55b2b7(0x1da)])(this['dispose$']))[_0x55b2b7(0x43e)](_0x2bd2bf=>{const _0x8f4fa3=_0x55b2b7;let _0x4248a4=_0x2bd2bf['eventID'];_0x4248a4===h[_0x8f4fa3(0x2b5)][_0x8f4fa3(0x2ee)]&&this[_0x8f4fa3(0x23e)](_0x2bd2bf),_0x4248a4===h[_0x8f4fa3(0x2b5)][_0x8f4fa3(0x2f9)]&&this['_onCursorDelete'](_0x2bd2bf);}),this[_0x55b2b7(0x3b1)](this[_0x55b2b7(0x41f)][_0x55b2b7(0x251)](_0x265556=>{const _0x553dee=_0x55b2b7;let _0x1704a9=_0x265556['params'];_0x1704a9!=null&&this['_online']&&_0x265556['id']===g[_0x553dee(0x3a1)]['id']&&_0x1704a9[_0x553dee(0x1ff)]===this[_0x553dee(0x1d1)]&&_0x1704a9[_0x553dee(0x2c2)]===!0x1&&_0x1704a9[_0x553dee(0x31e)][_0x553dee(0x280)]>0x0&&this['_updateLocalCursor'](_0x1704a9[_0x553dee(0x31e)]);})),this[_0x55b2b7(0x324)]['collabCursorState$'][_0x55b2b7(0x25f)]((0x0,r[_0x55b2b7(0x1da)])(this[_0x55b2b7(0x1cb)]))[_0x55b2b7(0x43e)](_0xea0d48=>{const _0x368666=_0x55b2b7;if((_0xea0d48==null?void 0x0:_0xea0d48[_0x368666(0x1d1)])!==this[_0x368666(0x1d1)])return;let _0x1adb0d={'eventID':h[_0x368666(0x2b5)][_0x368666(0x2ee)],'data':_0xea0d48};this[_0x368666(0x23e)](_0x1adb0d);}),this[_0x55b2b7(0x3b1)](this[_0x55b2b7(0x41f)][_0x55b2b7(0x251)](_0x57e3ea=>{const _0x40b10e=_0x55b2b7;if(_0x57e3ea[_0x40b10e(0x239)]==null)return;let _0x229471=_0x57e3ea[_0x40b10e(0x239)];if(_0x57e3ea['id']!==g['RichTextEditingMutation']['id']||_0x229471[_0x40b10e(0x1ff)]!==this['unitID'])return;let _0x3fa1b3={'id':'doc.mutation.rich-text-editing','params':_0x229471},_0x317ec2=this['cursorInfo'];for(let [_0x3a6b71,_0x4ca35d]of _0x317ec2){let _0x24e591={'id':_0x40b10e(0x3e9),'params':{'unitId':this[_0x40b10e(0x1d1)],'actions':null,'textRanges':_0x4ca35d[_0x40b10e(0x31e)]}},_0x15df7a=this['_transformService']['transformMutation'](_0x3fa1b3,_0x24e591,!0x1);if((0x0,h[_0x40b10e(0x436)])(_0x15df7a))throw _0x15df7a['error'];_0x317ec2[_0x40b10e(0x37c)](_0x3a6b71,{..._0x4ca35d,'ranges':_0x15df7a[_0x40b10e(0x24a)][_0x40b10e(0x239)][_0x40b10e(0x325)]});}queueMicrotask(()=>{const _0x1aa60a=_0x40b10e;this[_0x1aa60a(0x40a)][_0x1aa60a(0x41b)](_0x317ec2);});})));}['_onCursorUpdate'](_0x6e316e){const _0x2cbdab=_0x1f5139;var _0x50bf1c,_0x57514a;let {memberID:_0x565e76,selection:_0x29960f}=_0x6e316e[_0x2cbdab(0x292)],_0x1ad800=oe(_0x29960f),_0x4f5ee8=(_0x50bf1c=(_0x57514a=this[_0x2cbdab(0x27b)][_0x2cbdab(0x2cc)](this[_0x2cbdab(0x1d1)],_0x565e76))==null?void 0x0:_0x57514a[_0x2cbdab(0x327)])==null?'Unknown\x20user':_0x50bf1c,_0x40ce70={'color':this[_0x2cbdab(0x1f6)][_0x2cbdab(0x3fa)](_0x565e76),'name':_0x4f5ee8,'ranges':_0x1ad800},_0xfd679e=this[_0x2cbdab(0x385)];_0xfd679e['set'](_0x565e76,_0x40ce70),this[_0x2cbdab(0x40a)][_0x2cbdab(0x41b)](_0xfd679e);}['_onCursorDelete'](_0x4d6286){const _0x34e123=_0x1f5139;let {memberID:_0x43ec9a}=_0x4d6286[_0x34e123(0x292)],_0x542890=this[_0x34e123(0x385)];_0x542890['delete'](_0x43ec9a),this['_cursorInfo$']['next'](_0x542890);}['_toggleOnline'](){const _0x11f1aa=_0x1f5139;var _0x40497a;if(this['_online']=!0x0,((_0x40497a=this[_0x11f1aa(0x1ec)][_0x11f1aa(0x412)]())==null?void 0x0:_0x40497a[_0x11f1aa(0x3e2)]())!==this[_0x11f1aa(0x1d1)])return;let _0x137c5e=this[_0x11f1aa(0x20f)]['get'](g['DocSelectionManagerService'])[_0x11f1aa(0x2d7)]();Array[_0x11f1aa(0x287)](_0x137c5e)&&_0x137c5e[_0x11f1aa(0x280)]>0x0&&this[_0x11f1aa(0x322)](_0x137c5e);}[_0x1f5139(0x42b)](){const _0x3b0243=_0x1f5139;this[_0x3b0243(0x37e)]=!0x1;}};P=T([w(0x2,(0x0,t['Inject'])(t['Injector'])),w(0x3,(0x0,t['Inject'])(j)),w(0x4,(0x0,t['Inject'])(e[_0x1f5139(0x344)])),w(0x5,(0x0,t[_0x1f5139(0x3c9)])(N)),w(0x6,h['ITransformService']),w(0x7,t['IUniverInstanceService']),w(0x8,t[_0x1f5139(0x3d6)])],P);const se=()=>{let _0x436bb6=[],_0x365ba8=!0x1;return _0x535e20=>{const _0x1827ff=_0x4fbb;_0x436bb6[_0x1827ff(0x404)](_0x535e20),_0x365ba8||(_0x365ba8=!0x0,setTimeout(()=>{const _0x42e852=_0x1827ff;_0x436bb6[_0x42e852(0x256)](_0x2c79a0=>_0x2c79a0()),_0x436bb6=[],_0x365ba8=!0x1;}));};};let F=class extends t[_0x1f5139(0x2b4)]{get['cursorInfo'](){const _0x256c23=_0x1f5139;return this[_0x256c23(0x40a)][_0x256c23(0x39f)]();}get['roomMembers'](){const _0x3d4992=_0x1f5139;return this[_0x3d4992(0x37a)][_0x3d4992(0x39f)]();}constructor(_0x910206,_0x5ebde9,_0x36c1c0,_0x4d76d0,_0x5c46be,_0x2f527b,_0x12e1a5,_0x59a034){const _0xda654f=_0x1f5139;super(),this['unitID']=_0x910206,this['_session']=_0x5ebde9,this[_0xda654f(0x20f)]=_0x36c1c0,this[_0xda654f(0x1f6)]=_0x4d76d0,this[_0xda654f(0x27b)]=_0x5c46be,this['_univerInstanceService']=_0x2f527b,this[_0xda654f(0x41f)]=_0x12e1a5,this[_0xda654f(0x1c5)]=_0x59a034,C(this,_0xda654f(0x37e),!0x1),C(this,_0xda654f(0x1e3),!0x1),C(this,_0xda654f(0x40a),new r[(_0xda654f(0x2b6))](new Map())),C(this,_0xda654f(0x355),this[_0xda654f(0x40a)][_0xda654f(0x23d)]()),C(this,_0xda654f(0x37a),new r[(_0xda654f(0x2b6))]([])),C(this,_0xda654f(0x3c1),this['_roomMembers$']['pipe']((0x0,r[_0xda654f(0x32f)])(0x12c))),C(this,'_updateLocalCursor',(0x0,t['debounce'])((_0xb1dd57,_0x46fe69)=>{const _0x12145d=_0xda654f;let _0x7f3c67={'eventID':h[_0x12145d(0x2b5)][_0x12145d(0x2ee)],'data':{'unitID':this[_0x12145d(0x1d1)],'memberID':this['_session'][_0x12145d(0x388)](),'selection':(0x0,_[_0x12145d(0x200)])(_0xb1dd57,_0x46fe69[_0x12145d(0x35b)])}};this[_0x12145d(0x252)][_0x12145d(0x462)](_0x7f3c67,this[_0x12145d(0x1d1)]);},0x64));}[_0x1f5139(0x288)](){const _0x557746=_0x1f5139;super[_0x557746(0x288)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$']['next']([]),this[_0x557746(0x37a)]['complete']();}[_0x1f5139(0x1ed)](){const _0x4bf7ec=_0x1f5139;this[_0x4bf7ec(0x1e3)]||(this[_0x4bf7ec(0x1e3)]=!0x0,this[_0x4bf7ec(0x252)][_0x4bf7ec(0x421)]['pipe']((0x0,r['takeUntil'])(this[_0x4bf7ec(0x1cb)]))[_0x4bf7ec(0x43e)](_0x2028ea=>{const _0x4ec550=_0x4bf7ec;_0x2028ea===e[_0x4ec550(0x2e8)][_0x4ec550(0x361)]?this[_0x4ec550(0x23f)]():this[_0x4ec550(0x42b)]();}),this[_0x4bf7ec(0x252)]['event$'][_0x4bf7ec(0x25f)]((0x0,r[_0x4bf7ec(0x1da)])(this[_0x4bf7ec(0x1cb)]))[_0x4bf7ec(0x43e)](_0x4d6ee2=>{const _0x21300=_0x4bf7ec;let _0x23fd57=_0x4d6ee2['eventID'];_0x23fd57===h['CollaborationEvent'][_0x21300(0x2ee)]&&this[_0x21300(0x23e)](_0x4d6ee2),_0x23fd57===h['CollaborationEvent'][_0x21300(0x2f9)]&&this['_onCursorDelete'](_0x4d6ee2);}),this[_0x4bf7ec(0x420)](),this[_0x4bf7ec(0x3b1)](this['_commandService'][_0x4bf7ec(0x251)](_0x50c9f8=>{const _0x53548c=_0x4bf7ec;if(this[_0x53548c(0x37e)]&&_0x50c9f8['id']===u['SetSelectionsOperation']['id']&&_0x50c9f8['params']['unitId']===this['unitID']){let _0x163a87=_0x50c9f8[_0x53548c(0x239)];this[_0x53548c(0x322)](_0x163a87['subUnitId'],_0x163a87[_0x53548c(0x276)][0x0]);}})));}[_0x1f5139(0x23e)](_0x415872){const _0x1cc905=_0x1f5139;var _0x1fba26,_0x13dc9d;let {memberID:_0x34097a,selection:_0x2f14e2}=_0x415872[_0x1cc905(0x292)],{sheetName:_0x4fdf91,range:_0x520011}=(0x0,_[_0x1cc905(0x2d1)])(_0x2f14e2),_0xd95153={'name':(_0x1fba26=(_0x13dc9d=this['_memberService'][_0x1cc905(0x2cc)](this[_0x1cc905(0x1d1)],_0x34097a))==null?void 0x0:_0x13dc9d[_0x1cc905(0x327)])==null?_0x1cc905(0x248):_0x1fba26,'range':this[_0x1cc905(0x2bc)](_0x4fdf91,_0x520011),'sheetID':_0x4fdf91,'color':this['_colorAssignService'][_0x1cc905(0x3fa)](_0x34097a),'selection':_0x2f14e2},_0x4b1d8a=this[_0x1cc905(0x385)];_0x4b1d8a[_0x1cc905(0x37c)](_0x34097a,_0xd95153),this['_cursorInfo$']['next'](_0x4b1d8a);}[_0x1f5139(0x1d2)](_0x54e390){const _0x20ef4f=_0x1f5139;let {memberID:_0x1804f3}=_0x54e390[_0x20ef4f(0x292)],_0x5d4012=this[_0x20ef4f(0x385)];_0x5d4012[_0x20ef4f(0x34f)](_0x1804f3),this[_0x20ef4f(0x40a)][_0x20ef4f(0x41b)](_0x5d4012);}[_0x1f5139(0x2bc)](_0x2afa19,_0x635a31){const _0xdd4266=_0x1f5139;var _0x440667;let _0x45ecfa=(_0x440667=this['_univerInstanceService']['getUniverSheetInstance'](this[_0xdd4266(0x1d1)]))==null||(_0x440667=_0x440667[_0xdd4266(0x1c7)](_0x2afa19))==null?void 0x0:_0x440667[_0xdd4266(0x34d)]();return(_0x45ecfa==null?void 0x0:_0x45ecfa[_0xdd4266(0x423)](_0x2ee82f=>t[_0xdd4266(0x393)][_0xdd4266(0x2b0)](_0x2ee82f,_0x635a31)))||_0x635a31;}[_0x1f5139(0x420)](){const _0x2636dd=_0x1f5139;let _0x1f9d40=new t[(_0x2636dd(0x336))](),_0x170182=se(),_0x39156b=()=>{const _0x4e3e41=_0x2636dd;_0x1f9d40[_0x4e3e41(0x288)]();let _0x33400d=(_0xe4efeb,_0x9105f8,_0x29f72c,_0x23cb26)=>{const _0x3912d5=_0x4e3e41;let _0x2e80a1=[];switch(_0xe4efeb['id']){case u['EffectRefRangId'][_0x3912d5(0x293)]:_0x2e80a1=(0x0,u[_0x3912d5(0x406)])(_0xe4efeb,_0x23cb26);break;case u[_0x3912d5(0x358)]['DeleteRangeMoveUpCommandId']:_0x2e80a1=(0x0,u['handleDeleteRangeMoveUp'])(_0xe4efeb,_0x23cb26);break;case u[_0x3912d5(0x358)][_0x3912d5(0x29c)]:_0x2e80a1=(0x0,u[_0x3912d5(0x3d7)])(_0xe4efeb,_0x23cb26);break;case u[_0x3912d5(0x358)][_0x3912d5(0x2ed)]:_0x2e80a1=(0x0,u[_0x3912d5(0x257)])(_0xe4efeb,_0x23cb26);break;case u['EffectRefRangId'][_0x3912d5(0x33b)]:_0x2e80a1=(0x0,u[_0x3912d5(0x2a5)])(_0xe4efeb,_0x23cb26);break;case u[_0x3912d5(0x358)][_0x3912d5(0x378)]:_0x2e80a1=(0x0,u[_0x3912d5(0x3a6)])(_0xe4efeb,_0x23cb26);break;case u[_0x3912d5(0x358)][_0x3912d5(0x387)]:_0x2e80a1=(0x0,u[_0x3912d5(0x330)])(_0xe4efeb,_0x23cb26);break;case u['EffectRefRangId'][_0x3912d5(0x3fe)]:_0x2e80a1=(0x0,u[_0x3912d5(0x3ce)])(_0xe4efeb,_0x23cb26);break;case u['EffectRefRangId'][_0x3912d5(0x3b5)]:_0x2e80a1=(0x0,u['handleIRemoveRow'])(_0xe4efeb,_0x23cb26);break;}let _0x5a5cc3=(0x0,u[_0x3912d5(0x39e)])(_0x2e80a1,_0x23cb26),_0x12bfe2=this[_0x3912d5(0x385)][_0x3912d5(0x449)](_0x9105f8);if(_0x12bfe2&&_0x5a5cc3){let _0x496235={..._0x12bfe2,'range':_0x5a5cc3};this[_0x3912d5(0x385)]['set'](_0x9105f8,_0x496235),_0x170182(()=>{const _0x520ef6=_0x3912d5;let _0x558531=this[_0x520ef6(0x1c5)][_0x520ef6(0x38f)](_0x5a5cc3,_0xc0f5a4=>(_0x558531[_0x520ef6(0x288)](),_0x33400d(_0xc0f5a4,_0x9105f8,_0x29f72c,_0x5a5cc3)));_0x1f9d40['add'](_0x558531);});}return{'redos':[],'undos':[]};};this[_0x4e3e41(0x385)][_0x4e3e41(0x256)]((_0xae0fba,_0x3c1210)=>{const _0x4380c3=_0x4e3e41;let {range:_0x1c2db1,sheetID:_0x34f24b}=_0xae0fba,_0x260f2c=this[_0x4380c3(0x1c5)][_0x4380c3(0x38f)](_0x1c2db1,_0x4dd485=>(_0x260f2c[_0x4380c3(0x288)](),_0x33400d(_0x4dd485,_0x3c1210,_0x34f24b,_0x1c2db1)));_0x1f9d40[_0x4380c3(0x2c5)](_0x260f2c);});};this['disposeWithMe']((0x0,t[_0x2636dd(0x226)])(this[_0x2636dd(0x40a)][_0x2636dd(0x43e)](()=>{_0x39156b();})));}['_toggleOnline'](){const _0x3e3d42=_0x1f5139;var _0x229d10,_0x3fadac;if(this[_0x3e3d42(0x37e)]=!0x0,((_0x229d10=this['_univerInstanceService'][_0x3e3d42(0x412)]())==null?void 0x0:_0x229d10[_0x3e3d42(0x3e2)]())!==this[_0x3e3d42(0x1d1)])return;let _0x257a1c=(_0x3fadac=this[_0x3e3d42(0x20f)][_0x3e3d42(0x449)](u[_0x3e3d42(0x35e)])[_0x3e3d42(0x342)]())==null?void 0x0:_0x3fadac[0x0],_0x40f42c=this[_0x3e3d42(0x1ec)][_0x3e3d42(0x2be)](t[_0x3e3d42(0x21d)][_0x3e3d42(0x396)])[_0x3e3d42(0x2f6)]();_0x257a1c&&_0x40f42c&&this[_0x3e3d42(0x322)](_0x40f42c[_0x3e3d42(0x24d)](),_0x257a1c);}['_toggleOffline'](){const _0x571dce=_0x1f5139;this[_0x571dce(0x37e)]=!0x1;}};F=T([w(0x2,(0x0,t['Inject'])(t[_0x1f5139(0x40e)])),w(0x3,(0x0,t[_0x1f5139(0x3c9)])(j)),w(0x4,(0x0,t[_0x1f5139(0x3c9)])(e[_0x1f5139(0x344)])),w(0x5,t[_0x1f5139(0x459)]),w(0x6,t[_0x1f5139(0x3d6)]),w(0x7,(0x0,t[_0x1f5139(0x3c9)])(u[_0x1f5139(0x1f9)]))],F);let I=class extends t[_0x1f5139(0x2b4)]{constructor(_0x2e4c0f,_0x1492c8,_0x10d051){const _0x4db2ce=_0x1f5139;super(),this[_0x4db2ce(0x1ec)]=_0x2e4c0f,this[_0x4db2ce(0x20f)]=_0x1492c8,this[_0x4db2ce(0x1cf)]=_0x10d051,C(this,_0x4db2ce(0x33e),new Map()),C(this,_0x4db2ce(0x33a),new r[(_0x4db2ce(0x2eb))]()),this[_0x4db2ce(0x1e3)]();}[_0x1f5139(0x288)](){const _0x536da6=_0x1f5139;super['dispose'](),this[_0x536da6(0x33a)][_0x536da6(0x2e3)](),this['_entities'][_0x536da6(0x256)](_0x408138=>_0x408138[_0x536da6(0x288)]());}[_0x1f5139(0x2ac)](_0x5b92e1){const _0x58c1fd=_0x1f5139;return this['_entities'][_0x58c1fd(0x42a)](_0x5b92e1)?this[_0x58c1fd(0x33e)][_0x58c1fd(0x449)](_0x5b92e1)['cursorInfo$']:this['_entityInit$'][_0x58c1fd(0x25f)]((0x0,r[_0x58c1fd(0x216)])(_0x10ade0=>_0x10ade0['unitID']===_0x5b92e1),(0x0,r[_0x58c1fd(0x2d6)])(_0x434a57=>_0x434a57[_0x58c1fd(0x355)]));}[_0x1f5139(0x1e3)](){const _0x1996ec=_0x1f5139;this[_0x1996ec(0x1ec)][_0x1996ec(0x262)](t['UniverInstanceType'][_0x1996ec(0x396)])['pipe']((0x0,r['takeUntil'])(this[_0x1996ec(0x1cb)]))[_0x1996ec(0x43e)](async _0x445a3a=>{const _0x50c5d6=_0x1996ec;let _0x208551=_0x445a3a[_0x50c5d6(0x203)][_0x50c5d6(0x3e2)](),_0x258792=await this[_0x50c5d6(0x42f)](_0x208551);this[_0x50c5d6(0x33a)][_0x50c5d6(0x41b)](_0x258792),this[_0x50c5d6(0x33e)][_0x50c5d6(0x37c)](_0x208551,_0x258792);}),this[_0x1996ec(0x1ec)][_0x1996ec(0x262)](t[_0x1996ec(0x21d)][_0x1996ec(0x1e5)])[_0x1996ec(0x25f)]((0x0,r[_0x1996ec(0x1da)])(this[_0x1996ec(0x1cb)]))[_0x1996ec(0x25f)]((0x0,r[_0x1996ec(0x216)])(_0x1cb7a3=>!_0x1cb7a3[_0x1996ec(0x203)]['getUnitId']()[_0x1996ec(0x2ec)]('__')))[_0x1996ec(0x43e)](async _0x1f7c0f=>{const _0x5b6ee2=_0x1996ec;let {unit:_0xc7e75f}=_0x1f7c0f,_0x4d1d93=_0xc7e75f[_0x5b6ee2(0x3e2)](),_0x4e10ab=await this[_0x5b6ee2(0x201)](_0x4d1d93);this[_0x5b6ee2(0x33a)][_0x5b6ee2(0x41b)](_0x4e10ab),this[_0x5b6ee2(0x33e)][_0x5b6ee2(0x37c)](_0x4d1d93,_0x4e10ab);}),(0x0,r[_0x1996ec(0x2bb)])(this[_0x1996ec(0x1ec)]['getTypeOfUnitDisposed$'](t[_0x1996ec(0x21d)][_0x1996ec(0x1e5)]),this['_univerInstanceService'][_0x1996ec(0x401)](t[_0x1996ec(0x21d)][_0x1996ec(0x396)]))['pipe']((0x0,r[_0x1996ec(0x1da)])(this[_0x1996ec(0x1cb)]))[_0x1996ec(0x43e)](_0x290cb8=>{const _0x48010d=_0x1996ec;let _0x43b271=_0x290cb8[_0x48010d(0x3e2)](),_0x4a018b=this[_0x48010d(0x33e)][_0x48010d(0x449)](_0x43b271);_0x4a018b&&(_0x4a018b[_0x48010d(0x288)](),this[_0x48010d(0x33e)][_0x48010d(0x34f)](_0x43b271));});}async[_0x1f5139(0x42f)](_0x1dd56e){const _0x365e1d=_0x1f5139;let _0x161dc6=await this[_0x365e1d(0x1cf)][_0x365e1d(0x1e9)](_0x1dd56e),_0x428a9a=this['_injector'][_0x365e1d(0x218)](F,_0x1dd56e,_0x161dc6);return _0x428a9a[_0x365e1d(0x1ed)](),_0x428a9a;}async['_startDocCollabCursor'](_0x84237b){const _0x371476=_0x1f5139;let _0x49226b=await this['_collabSessionService'][_0x371476(0x1e9)](_0x84237b),_0x31a857=this['_injector'][_0x371476(0x218)](P,_0x84237b,_0x49226b);return _0x31a857['init'](),_0x31a857;}};I=T([w(0x0,t[_0x1f5139(0x459)]),w(0x1,(0x0,t[_0x1f5139(0x3c9)])(t[_0x1f5139(0x40e)])),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(e[_0x1f5139(0x398)]))],I);function ce(_0x2bfeab,_0x48bd13){const _0x2d03cf=_0x1f5139;var _0x7646fc,_0x3784da,_0x4d39e4;let {radius:_0x35774a,width:_0x43a330,height:_0x20892c}=_0x48bd13;_0x35774a=(_0x7646fc=_0x35774a)==null?0x0:_0x7646fc,_0x43a330=(_0x3784da=_0x43a330)==null?0x1e:_0x3784da,_0x20892c=(_0x4d39e4=_0x20892c)==null?0x1e:_0x4d39e4;let _0x498870=0x0,_0x5e02b4=0x0,_0xfb2682=0x0;_0x498870=_0x5e02b4=_0xfb2682=Math[_0x2d03cf(0x417)](_0x35774a,_0x43a330/0x2,_0x20892c/0x2),_0x2bfeab['beginPath'](),_0x2bfeab['moveTo'](_0x498870,0x0),_0x2bfeab['lineTo'](_0x43a330-_0x5e02b4,0x0),_0x2bfeab['arc'](_0x43a330-_0x5e02b4,_0x5e02b4,_0x5e02b4,Math['PI']*0x3/0x2,0x0,!0x1),_0x2bfeab['lineTo'](_0x43a330,_0x20892c-_0xfb2682),_0x2bfeab[_0x2d03cf(0x267)](_0x43a330-_0xfb2682,_0x20892c-_0xfb2682,_0xfb2682,0x0,Math['PI']/0x2,!0x1),_0x2bfeab[_0x2d03cf(0x241)](0x0,_0x20892c),_0x2bfeab[_0x2d03cf(0x241)](0x0,_0x498870),_0x2bfeab[_0x2d03cf(0x267)](_0x498870,_0x498870,_0x498870,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2bfeab[_0x2d03cf(0x210)](),_0x48bd13['fill']&&(_0x2bfeab[_0x2d03cf(0x253)](),_0x2bfeab[_0x2d03cf(0x2c6)]=_0x48bd13[_0x2d03cf(0x3a4)],_0x48bd13[_0x2d03cf(0x27d)]===_0x2d03cf(0x45b)?_0x2bfeab[_0x2d03cf(0x3a4)](_0x2d03cf(0x45b)):_0x2bfeab['fill'](),_0x2bfeab[_0x2d03cf(0x394)]());}var le=class e extends d[_0x1f5139(0x3c6)]{constructor(_0x37f8ee,_0x3fad84){const _0x319341=_0x1f5139;super(_0x37f8ee,_0x3fad84),C(this,_0x319341(0x312),void 0x0),C(this,_0x319341(0x3ff),void 0x0),this[_0x319341(0x312)]=_0x3fad84==null?void 0x0:_0x3fad84['color'],this[_0x319341(0x3ff)]=_0x3fad84==null?void 0x0:_0x3fad84[_0x319341(0x3ff)];}static['drawWith'](_0x29e8b7,_0x4e3868){const _0x108ae3=_0x1f5139;let {text:_0x5a200b,color:_0x36dec5}=_0x4e3868;_0x29e8b7[_0x108ae3(0x253)](),_0x29e8b7[_0x108ae3(0x3e5)]=_0x108ae3(0x28d);let _0x1ae987=_0x29e8b7[_0x108ae3(0x3f2)](_0x5a200b)['width'];if(ce(_0x29e8b7,{'height':0x14,'radius':0x4,'width':Math[_0x108ae3(0x417)](_0x1ae987+0x8,0xc8),'fill':_0x36dec5,'evented':!0x1}),_0x29e8b7[_0x108ae3(0x2c6)]=_0x108ae3(0x3c7),_0x1ae987>0xc0){let _0x4d7c29='',_0x5b5108=0x0;for(let _0x541252 of _0x5a200b){let _0x46e000=_0x29e8b7['measureText'](_0x541252)[_0x108ae3(0x285)];if(_0x5b5108+_0x46e000<=0xc0-_0x29e8b7['measureText'](_0x108ae3(0x1d8))[_0x108ae3(0x285)])_0x4d7c29+=_0x541252,_0x5b5108+=_0x46e000;else{_0x4d7c29+=_0x108ae3(0x1d8);break;}}_0x29e8b7[_0x108ae3(0x34b)](_0x4d7c29,0x4,0xf);}else _0x29e8b7[_0x108ae3(0x34b)](_0x5a200b,0x4,0xf);_0x29e8b7['restore']();}[_0x1f5139(0x3aa)](_0x5c1861){e['drawWith'](_0x5c1861,this);}};const L=_0x1f5139(0x2a7);var ue=class{constructor(_0x4929ab,_0x3acf73,_0x126271,_0x56dd06){const _0x3645bd=_0x1f5139;this[_0x3645bd(0x40d)]=_0x4929ab,this[_0x3645bd(0x21c)]=_0x3acf73,this[_0x3645bd(0x235)]=_0x126271,this['_document']=_0x56dd06,C(this,_0x3645bd(0x28b),[]),C(this,_0x3645bd(0x42d),null),C(this,_0x3645bd(0x2f7),null),C(this,_0x3645bd(0x249),null),C(this,_0x3645bd(0x28c),null),C(this,_0x3645bd(0x244),null),this[_0x3645bd(0x390)]();}set[_0x1f5139(0x1e6)](_0x356db6){const _0x1675d1=_0x1f5139;_0x356db6?(this[_0x1675d1(0x249)]&&this[_0x1675d1(0x249)][_0x1675d1(0x3f7)](),this[_0x1675d1(0x2f7)]&&this['_textBubble'][_0x1675d1(0x27a)]()):(this[_0x1675d1(0x249)]&&this[_0x1675d1(0x249)][_0x1675d1(0x27a)](),this[_0x1675d1(0x2f7)]&&this[_0x1675d1(0x2f7)]['hide']());}['dispose'](){const _0x12e47a=_0x1f5139;for(let _0x629c3b of this['_shapes'])_0x629c3b['dispose']();this[_0x12e47a(0x2f7)]&&this['_textBubble'][_0x12e47a(0x288)](),this[_0x12e47a(0x249)]&&this[_0x12e47a(0x249)][_0x12e47a(0x288)](),this[_0x12e47a(0x42d)]&&this[_0x12e47a(0x42d)][_0x12e47a(0x288)](),this[_0x12e47a(0x244)]&&this['_eventUnsubscribe']();}[_0x1f5139(0x390)](){const _0x22b79f=_0x1f5139;let {_docSkeleton:_0x1c2ebb,_document:_0x1a4974}=this,{color:_0x1a25b4,name:_0x2cdda2,ranges:_0x3023d6}=this['_cursor'],_0x387443=_0x1a4974[_0x22b79f(0x340)](),{docsLeft:_0x365509,docsTop:_0xff4c8a}=_0x387443,_0x2ca8e7=new p[(_0x22b79f(0x243))](_0x387443,_0x1c2ebb);for(let {startOffset:_0x5353bd,endOffset:_0x64737d,rangeType:_0x283a9a,segmentId:_0xea35f9,segmentPage:_0x5f449d,collapsed:_0x132dde,isActive:_0xe41145}of _0x3023d6){let _0x4d37b3=_0x1c2ebb['findNodePositionByCharIndex'](_0x5353bd,!0x0,_0xea35f9,_0x5f449d),_0x28d236=_0x1c2ebb[_0x22b79f(0x464)](_0x64737d,!0x0,_0xea35f9,_0x5f449d);if(_0x28d236==null&&(_0x28d236=_0x1c2ebb[_0x22b79f(0x464)](_0x64737d-0x1,!0x1,_0xea35f9,_0x5f449d)),_0xe41145){let {contentBoxPointGroup:_0x56bb1a}=_0x2ca8e7[_0x22b79f(0x328)](_0x28d236,_0x28d236);if(_0x56bb1a[_0x22b79f(0x280)]===0x0)continue;this[_0x22b79f(0x441)](_0x1a25b4,_0x56bb1a,_0x365509,_0xff4c8a,_0x2cdda2),this[_0x22b79f(0x244)]=this[_0x22b79f(0x279)]();}if(_0x4d37b3&&_0x28d236){if(_0x283a9a===t['DOC_RANGE_TYPE'][_0x22b79f(0x3ca)]){var _0xd8d29;let {pointGroup:_0x1f5c49}=(_0xd8d29=new p['NodePositionConvertToRectRange'](_0x387443,_0x1c2ebb)[_0x22b79f(0x328)](_0x4d37b3,_0x28d236))==null?{}:_0xd8d29;if(_0x1f5c49==null||_0x1f5c49[_0x22b79f(0x280)]===0x0)continue;this[_0x22b79f(0x2bf)](_0x1a25b4,_0x1f5c49,_0x365509,_0xff4c8a);}else{if(!_0x132dde){let {borderBoxPointGroup:_0x52c02b}=_0x2ca8e7[_0x22b79f(0x328)](_0x4d37b3,_0x28d236);if(_0x52c02b[_0x22b79f(0x280)]===0x0)continue;this[_0x22b79f(0x309)](_0x1a25b4,_0x52c02b,_0x365509,_0xff4c8a);}}}}}[_0x1f5139(0x441)](_0x276034,_0x164515,_0x13b1ae,_0x50f1ce,_0x2db254){const _0x2e0a84=_0x1f5139;let {left:_0x36da27,top:_0x7f2f8b,height:_0x311819}=this['_getAnchorBounding'](_0x164515),_0x5f3291=1.5/this['_getScale'](),_0x395218=new d[(_0x2e0a84(0x3f9))](L+(0x0,t[_0x2e0a84(0x379)])(0x6),{'left':_0x36da27+_0x13b1ae-_0x5f3291,'top':_0x7f2f8b+_0x50f1ce,'height':_0x311819,'width':1.5,'fill':_0x276034||(0x0,d['getColor'])(t[_0x2e0a84(0x27f)][_0x2e0a84(0x205)],0x0),'strokeWidth':_0x5f3291,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x2e0a84(0x42d)]=_0x395218,this['_scene']['addObject'](_0x395218,p[_0x2e0a84(0x29a)]);let _0x2869f4=new d[(_0x2e0a84(0x3f9))](L+(0x0,t[_0x2e0a84(0x379)])(0x6),{'left':_0x36da27+_0x13b1ae-_0x5f3291,'top':_0x7f2f8b+_0x50f1ce-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x276034||(0x0,d[_0x2e0a84(0x234)])(t[_0x2e0a84(0x27f)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x276034||(0x0,d[_0x2e0a84(0x234)])(t[_0x2e0a84(0x27f)]['black'],0x0),'evented':!0x1});this[_0x2e0a84(0x249)]=_0x2869f4,this[_0x2e0a84(0x21c)][_0x2e0a84(0x3ab)](_0x2869f4,p['TEXT_RANGE_LAYER_INDEX']);let _0x34dd18=new le(L+(0x0,t[_0x2e0a84(0x379)])(0x6),{'left':_0x36da27+_0x13b1ae-_0x5f3291,'top':_0x7f2f8b+_0x50f1ce-0x14,'text':_0x2db254,'color':_0x276034});this['_textBubble']=_0x34dd18,this['_scene']['addObject'](_0x34dd18,p['TEXT_RANGE_LAYER_INDEX']),this[_0x2e0a84(0x1e6)]=!0x1;}[_0x1f5139(0x279)](){const _0x29e68e=_0x1f5139;let _0x2e2e60=this[_0x29e68e(0x42d)][_0x29e68e(0x302)][_0x29e68e(0x214)](()=>{const _0x16d854=_0x29e68e;this[_0x16d854(0x1e6)]=!0x0;}),_0x5eb9b7=this['_anchor'][_0x29e68e(0x22d)][_0x29e68e(0x214)](()=>{const _0x1afbd4=_0x29e68e;this[_0x1afbd4(0x28c)]&&clearTimeout(this[_0x1afbd4(0x28c)]),this[_0x1afbd4(0x28c)]=setTimeout(()=>{const _0x3c68d6=_0x1afbd4;this[_0x3c68d6(0x1e6)]=!0x1;},0x7d0);});return()=>{const _0xfb4e13=_0x29e68e;_0x2e2e60[_0xfb4e13(0x1f1)](),_0x5eb9b7[_0xfb4e13(0x1f1)]();};}[_0x1f5139(0x309)](_0x465d85,_0x3649d0,_0x278654,_0x2d2271){const _0x4a4f1d=_0x1f5139;let _0x361f21=0.2,_0x42a394=new t['ColorKit'](_0x465d85)[_0x4a4f1d(0x284)](_0x361f21)[_0x4a4f1d(0x3e4)](),_0x319bf4=new d['RegularPolygon'](_0x4a4f1d(0x2ae)+(0x0,t['generateRandomId'])(0x6),{'pointsGroup':_0x3649d0,'fill':_0x42a394||(0x0,d[_0x4a4f1d(0x234)])(t[_0x4a4f1d(0x27f)][_0x4a4f1d(0x205)],_0x361f21),'left':_0x278654,'top':_0x2d2271,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a4f1d(0x28b)]['push'](_0x319bf4),this[_0x4a4f1d(0x21c)]['addObject'](_0x319bf4,p[_0x4a4f1d(0x29a)]);}['_drawRectRange'](_0x4e3bb7,_0x1bd152,_0xd2b972,_0x25a155){const _0x5f1cde=_0x1f5139;let _0x332907=0.2,_0x1051c4=new t[(_0x5f1cde(0x208))](_0x4e3bb7)['setAlpha'](_0x332907)[_0x5f1cde(0x3e4)](),_0x57c3d4=new d[(_0x5f1cde(0x349))](_0x5f1cde(0x271)+(0x0,t['generateRandomId'])(0x6),{'pointsGroup':_0x1bd152,'fill':_0x1051c4||(0x0,d[_0x5f1cde(0x234)])(t['COLORS'][_0x5f1cde(0x205)],_0x332907),'left':_0xd2b972,'top':_0x25a155,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5f1cde(0x28b)][_0x5f1cde(0x404)](_0x57c3d4),this[_0x5f1cde(0x21c)]['addObject'](_0x57c3d4,p[_0x5f1cde(0x29a)]);}[_0x1f5139(0x409)](_0x47c27d){let _0xa5e588=_0x47c27d[0x0],_0x26624e=_0xa5e588[0x0],_0x125339=_0xa5e588[0x2],{x:_0x1b5e38,y:_0xc1b2c5}=_0x26624e,{x:_0x1b47e9,y:_0x145103}=_0x125339;return{'left':_0x1b5e38,'top':_0xc1b2c5,'width':_0x1b47e9-_0x1b5e38,'height':_0x145103-_0xc1b2c5};}['_getScale'](){const _0x5a2051=_0x1f5139;let {scaleX:_0x1281f7,scaleY:_0x2f31e9}=this[_0x5a2051(0x21c)][_0x5a2051(0x23c)]();return Math[_0x5a2051(0x3d8)](_0x1281f7,_0x2f31e9);}};let R=class extends t[_0x1f5139(0x2b4)]{constructor(_0x1b7ef6,_0x1b1738,_0x7ade31,_0x40ac82,_0x5936b0){const _0x131e51=_0x1f5139;super(),this[_0x131e51(0x24c)]=_0x1b7ef6,this[_0x131e51(0x2e6)]=_0x1b1738,this[_0x131e51(0x266)]=_0x7ade31,this[_0x131e51(0x41f)]=_0x40ac82,this[_0x131e51(0x380)]=_0x5936b0,C(this,_0x131e51(0x296),[]),C(this,_0x131e51(0x460),[]),this[_0x131e51(0x1e3)]();}[_0x1f5139(0x1e3)](){const _0x31678a=_0x1f5139;let _0x107b1e=this['_context'][_0x31678a(0x1ff)],_0x2fc24b=this[_0x31678a(0x2e6)];this[_0x31678a(0x3b1)]((0x0,r[_0x31678a(0x24b)])([this[_0x31678a(0x266)][_0x31678a(0x2ac)](_0x107b1e),this[_0x31678a(0x380)]['currentTheme$']])[_0x31678a(0x25f)]((0x0,i[_0x31678a(0x448)])(([_0x3b267b,_0x2905e7])=>({'skeleton':_0x2fc24b[_0x31678a(0x2d9)](),'cursors':[..._0x3b267b[_0x31678a(0x2bd)]()]['flatMap'](_0x52c25c=>({..._0x52c25c,'color':this['_themeService']['getColorFromTheme'](_0x52c25c['color'])}))})))[_0x31678a(0x43e)](_0x137138=>{if(this['_removeCollabCursors'](),_0x137138){let {skeleton:_0x1ffadb,cursors:_0x1848ca}=_0x137138;this['_updateCollabCursors'](_0x1ffadb,_0x1848ca);}})),this[_0x31678a(0x28a)](),this[_0x31678a(0x432)]();}['_updateCollabCursors'](_0x329d93,_0xa245ff){const _0x3524cb=_0x1f5139;let {scene:_0x2bc691,mainComponent:_0x572186}=this[_0x3524cb(0x24c)],_0x591853=_0xa245ff[_0x3524cb(0x448)](_0x57c89a=>new ue(_0x57c89a,_0x2bc691,_0x329d93,_0x572186));this[_0x3524cb(0x296)]=_0x591853,this[_0x3524cb(0x460)]=_0xa245ff;}[_0x1f5139(0x2b8)](){const _0x112c66=_0x1f5139;this[_0x112c66(0x1f0)]();let {scene:_0x5459ef,mainComponent:_0x87ddcf}=this[_0x112c66(0x24c)],_0x45ae48=this[_0x112c66(0x2e6)]['getSkeleton'](),_0x1a92a2=this[_0x112c66(0x460)][_0x112c66(0x448)](_0x59e1e1=>new ue(_0x59e1e1,_0x5459ef,_0x45ae48,_0x87ddcf));this[_0x112c66(0x296)]=_0x1a92a2;}['_removeCollabCursors'](){const _0x47bb9c=_0x1f5139;this['_cursorShapes'][_0x47bb9c(0x256)](_0x2f8607=>_0x2f8607[_0x47bb9c(0x288)]()),this[_0x47bb9c(0x296)]=[];}[_0x1f5139(0x432)](){const _0x2b6d28=_0x1f5139;let _0x208d7a=[p[_0x2b6d28(0x1c8)]['id']];this['disposeWithMe'](this[_0x2b6d28(0x41f)]['onCommandExecuted'](_0x2fe81b=>{const _0x1483f7=_0x2b6d28;_0x208d7a[_0x1483f7(0x224)](_0x2fe81b['id'])&&_0x2fe81b[_0x1483f7(0x239)][_0x1483f7(0x1ff)]===this[_0x1483f7(0x24c)][_0x1483f7(0x1ff)]&&this[_0x1483f7(0x2b8)]();}));}[_0x1f5139(0x28a)](){const _0x353545=_0x1f5139;this[_0x353545(0x3b1)]((0x0,t[_0x353545(0x2f3)])(this[_0x353545(0x24c)][_0x353545(0x3d4)][_0x353545(0x30b)])[_0x353545(0x25f)]((0x0,i[_0x353545(0x216)])(_0x39a209=>_0x39a209[_0x353545(0x2a0)]===d[_0x353545(0x3d3)][_0x353545(0x44b)]),(0x0,i[_0x353545(0x39b)])(0x10))[_0x353545(0x43e)](()=>{const _0x264721=_0x353545;this[_0x264721(0x2b8)]();}));}};R=T([w(0x1,(0x0,t[_0x1f5139(0x3c9)])(g['DocSkeletonManagerService'])),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(I)),w(0x3,t['ICommandService']),w(0x4,(0x0,t[_0x1f5139(0x3c9)])(t[_0x1f5139(0x245)]))],R);var z=class extends d[_0x1f5139(0x3c6)]{constructor(_0x2f4e19,_0x5de87c){const _0x18c0a7=_0x1f5139;if(super(_0x2f4e19,_0x5de87c),C(this,_0x18c0a7(0x3da),void 0x0),C(this,_0x18c0a7(0x333),!0x1),C(this,_0x18c0a7(0x286),void 0x0),C(this,_0x18c0a7(0x457),''),C(this,_0x18c0a7(0x316),_0x18c0a7(0x3bd)),C(this,'_backgroundColor',void 0x0),C(this,_0x18c0a7(0x43a),void 0x0),C(this,_0x18c0a7(0x44f),void 0x0),C(this,_0x18c0a7(0x356),0x4),C(this,_0x18c0a7(0x39a),void 0x0),C(this,'_blinkIntervalTimer',void 0x0),C(this,_0x18c0a7(0x37d),!0x0),C(this,_0x18c0a7(0x362),0x0),_0x5de87c){var _0x1825b1;if(this[_0x18c0a7(0x3b2)](_0x5de87c),_0x5de87c[_0x18c0a7(0x37f)]&&((_0x1825b1=_0x5de87c['highlightSecond'])==null?this[_0x18c0a7(0x356)]:_0x1825b1)){var _0x3c9003;this['_startBlinking']((_0x3c9003=_0x5de87c[_0x18c0a7(0x212)])==null?this['_highlightSecond']:_0x3c9003);}}this['onPointerEnter$'][_0x18c0a7(0x214)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x18c0a7(0x22d)][_0x18c0a7(0x214)](()=>this[_0x18c0a7(0x3b2)]({'hovered':!0x1}));}['setOffsetY'](_0x30ff87){const _0x57cf1c=_0x1f5139;this[_0x57cf1c(0x362)]=_0x30ff87;}[_0x1f5139(0x3b2)](_0x12b0ea){const _0x58c2b2=_0x1f5139;var _0xaff497,_0x23971d,_0x5adbb2,_0x505987,_0x39d607,_0x1b45e0,_0x560322;this[_0x58c2b2(0x3da)]=(_0xaff497=_0x12b0ea[_0x58c2b2(0x312)])==null?this[_0x58c2b2(0x3da)]:_0xaff497,this[_0x58c2b2(0x333)]=(_0x23971d=_0x12b0ea[_0x58c2b2(0x273)])==null?this[_0x58c2b2(0x333)]:_0x23971d,this[_0x58c2b2(0x286)]=(_0x5adbb2=_0x12b0ea[_0x58c2b2(0x35b)])==null?this[_0x58c2b2(0x286)]:_0x5adbb2,this[_0x58c2b2(0x457)]=(_0x505987=_0x12b0ea[_0x58c2b2(0x327)])==null?this[_0x58c2b2(0x457)]:_0x505987,this[_0x58c2b2(0x316)]=(_0x39d607=_0x12b0ea[_0x58c2b2(0x3de)])==null?this[_0x58c2b2(0x316)]:_0x39d607,this[_0x58c2b2(0x31d)]=(_0x1b45e0=_0x12b0ea[_0x58c2b2(0x2ab)])==null?this[_0x58c2b2(0x31d)]:_0x1b45e0,this['_showText']=(_0x560322=_0x12b0ea[_0x58c2b2(0x1e0)])==null?this['_showText']:_0x560322,_0x12b0ea[_0x58c2b2(0x212)]!==void 0x0&&(this[_0x58c2b2(0x356)]=_0x12b0ea[_0x58c2b2(0x212)]),_0x12b0ea['highlight']!==void 0x0&&(this[_0x58c2b2(0x44f)]=_0x12b0ea[_0x58c2b2(0x37f)]),_0x12b0ea[_0x58c2b2(0x31c)]!==void 0x0&&(this[_0x58c2b2(0x362)]=_0x12b0ea[_0x58c2b2(0x31c)]),this[_0x58c2b2(0x3ed)]({'width':_0x12b0ea[_0x58c2b2(0x285)],'height':_0x12b0ea[_0x58c2b2(0x27c)]});}[_0x1f5139(0x1f7)](_0x464cf3){const _0x2998e2=_0x1f5139;let {row:_0x2caaef,column:_0x3e5df0}=_0x464cf3;if(_0x2caaef>=this[_0x2998e2(0x286)][_0x2998e2(0x22a)]&&_0x2caaef<=this['_range']['endRow']&&_0x3e5df0>=this['_range'][_0x2998e2(0x303)]&&_0x3e5df0<=this['_range']['endColumn']){this[_0x2998e2(0x3b2)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x1f5139(0x22c)](_0x3e74c6){const _0x555d05=_0x1f5139;this[_0x555d05(0x1ef)](),this[_0x555d05(0x37d)]=!0x0,this[_0x555d05(0x25b)]=window[_0x555d05(0x233)](()=>{const _0x4ff479=_0x555d05;this[_0x4ff479(0x37d)]=!this['_isBlinkVisible'],this[_0x4ff479(0x3f4)](!0x0);},0x1f4),this[_0x555d05(0x39a)]=window[_0x555d05(0x29f)](()=>{const _0x26e819=_0x555d05;this[_0x26e819(0x1ef)](),this[_0x26e819(0x37d)]=!0x0,this[_0x26e819(0x3f4)](!0x0);},_0x3e74c6*0x3e8);}['_stopBlinking'](){const _0x48364e=_0x1f5139;this['_blinkIntervalTimer']&&(window['clearInterval'](this[_0x48364e(0x25b)]),this['_blinkIntervalTimer']=void 0x0),this['_blinkTimer']&&(window[_0x48364e(0x443)](this['_blinkTimer']),this[_0x48364e(0x39a)]=void 0x0);}[_0x1f5139(0x317)](_0x24b17e){return!0x1;}['dispose'](){const _0x12ce75=_0x1f5139;this[_0x12ce75(0x1ef)](),super['dispose']();}[_0x1f5139(0x3aa)](_0x51315c){const _0x47fa1b=_0x1f5139;let _0x309a8b=this['_color'],_0x51d42f=this[_0x47fa1b(0x31d)];if(this[_0x47fa1b(0x44f)]&&!this['_isBlinkVisible']&&(_0x309a8b=this[_0x47fa1b(0x2d2)](this[_0x47fa1b(0x3da)]),_0x51d42f=this['_backgroundColor']?this[_0x47fa1b(0x2d2)](this[_0x47fa1b(0x31d)]):void 0x0),d[_0x47fa1b(0x3f9)][_0x47fa1b(0x38d)](_0x51315c,{'width':this['width'],'height':this[_0x47fa1b(0x27c)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x309a8b,'evented':!0x1,'fill':_0x51d42f}),this['_hovered']||this[_0x47fa1b(0x43a)]){var _0x56f7be;_0x51315c[_0x47fa1b(0x253)](),_0x51315c[_0x47fa1b(0x439)](0x1,0x0,0x0,0x1,this[_0x47fa1b(0x285)],(this[_0x47fa1b(0x316)]===_0x47fa1b(0x3a0)?0x0:-0x14)+((_0x56f7be=this[_0x47fa1b(0x362)])==null?0x0:_0x56f7be)),le['drawWith'](_0x51315c,{'text':this[_0x47fa1b(0x457)],'color':_0x309a8b}),_0x51315c['restore']();}}[_0x1f5139(0x2d2)](_0x2682bd){const _0x46e724=_0x1f5139;return _0x2682bd[_0x46e724(0x2ec)]('#')?_0x46e724(0x339)+Number[_0x46e724(0x313)](_0x2682bd['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x46e724(0x313)](_0x2682bd['slice'](0x3,0x5),0x10)+',\x20'+Number[_0x46e724(0x313)](_0x2682bd[_0x46e724(0x1fc)](0x5,0x7),0x10)+_0x46e724(0x431):_0x2682bd[_0x46e724(0x2ec)](_0x46e724(0x1f8))?_0x2682bd[_0x46e724(0x376)](/[\d.]+\)$/g,_0x46e724(0x3cb)):_0x2682bd[_0x46e724(0x2ec)](_0x46e724(0x2e9))?_0x2682bd[_0x46e724(0x376)](_0x46e724(0x2e9),_0x46e724(0x1f8))[_0x46e724(0x376)](')',',\x200.2)'):_0x2682bd;}};let B=class extends t[_0x1f5139(0x2b4)]{constructor(_0x2af76a,_0x2c145c,_0x10552d,_0x4c13f0){const _0x4e6f8a=_0x1f5139;super(),this[_0x4e6f8a(0x24c)]=_0x2af76a,this['_sheetSkeletonManagerService']=_0x2c145c,this[_0x4e6f8a(0x266)]=_0x10552d,this['_themeService']=_0x4c13f0,C(this,_0x4e6f8a(0x460),new Set()),C(this,'_lastPointer',null),C(this,_0x4e6f8a(0x1e8),null),this[_0x4e6f8a(0x1e3)]();}['_init'](){const _0x55412f=_0x1f5139;this[_0x55412f(0x3e0)][_0x55412f(0x3d0)][_0x55412f(0x25f)]((0x0,i['takeUntil'])(this[_0x55412f(0x1cb)]),(0x0,i[_0x55412f(0x2d6)])(_0x42ee54=>{const _0x4bdd03=_0x55412f;if(_0x42ee54){let _0x62ab19=_0x42ee54[_0x4bdd03(0x36d)];return(0x0,r[_0x4bdd03(0x24b)])(this[_0x4bdd03(0x266)][_0x4bdd03(0x2ac)](this['_context'][_0x4bdd03(0x1ff)]),this[_0x4bdd03(0x380)][_0x4bdd03(0x310)])['pipe']((0x0,i[_0x4bdd03(0x448)])(([_0x594b87,_0x518c27])=>{let _0x267caa=new Map();return _0x594b87['forEach']((_0x57fbd8,_0x4dda33)=>{const _0x10a6f2=_0x4fbb;if(_0x57fbd8['sheetID']===_0x62ab19){let _0x786371={..._0x57fbd8};_0x786371[_0x10a6f2(0x312)]=this[_0x10a6f2(0x380)][_0x10a6f2(0x353)](_0x57fbd8[_0x10a6f2(0x312)]),_0x267caa[_0x10a6f2(0x37c)](_0x4dda33,_0x786371);}}),{'skeleton':_0x42ee54,'cursors':_0x267caa};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x55412f(0x43e)](({skeleton:_0x41e078,cursors:_0x437a78})=>{const _0x49f5ab=_0x55412f;this[_0x49f5ab(0x1f0)](),_0x41e078&&this[_0x49f5ab(0x265)](_0x41e078,_0x437a78);}),this[_0x55412f(0x3b1)](this[_0x55412f(0x3e0)]['currentSkeleton$'][_0x55412f(0x25f)]((0x0,i['takeUntil'])(this[_0x55412f(0x1cb)]))[_0x55412f(0x43e)](_0x1057ac=>{const _0x3cf14a=_0x55412f;var _0x53b2b5;if(_0x1057ac==null)return;(_0x53b2b5=this[_0x3cf14a(0x1e8)])==null||_0x53b2b5[_0x3cf14a(0x1f1)](),this['_pointerMoveDisposable']=null;let {skeleton:_0x381497}=_0x1057ac,{scene:_0x29d674}=this[_0x3cf14a(0x24c)];this[_0x3cf14a(0x1e8)]=_0x29d674[_0x3cf14a(0x22f)][_0x3cf14a(0x214)]((0x0,t['debounce'])(_0x2bb7fe=>{const _0x4ecf3c=_0x3cf14a;var _0x4f6397,_0x524dbb;let {offsetX:_0x9643ea,offsetY:_0x488ae3}=_0x2bb7fe,{x:_0x855860,y:_0xb98fa0}=_0x29d674['getRelativeToViewportCoord'](d['Vector2'][_0x4ecf3c(0x2a1)]([_0x9643ea,_0x488ae3])),{scaleX:_0x99bea3,scaleY:_0x3eea57}=_0x29d674['getAncestorScale'](),_0x485faa=_0x29d674[_0x4ecf3c(0x31f)](d[_0x4ecf3c(0x26d)][_0x4ecf3c(0x204)]),_0x5893c0=_0x29d674[_0x4ecf3c(0x32b)](d[_0x4ecf3c(0x440)][_0x4ecf3c(0x2a1)]([_0x855860,_0xb98fa0]),_0x485faa),_0x4ed99a=_0x381497[_0x4ecf3c(0x2e7)](_0x9643ea,_0x488ae3,_0x99bea3,_0x3eea57,_0x5893c0);((_0x4f6397=this[_0x4ecf3c(0x397)])==null?void 0x0:_0x4f6397[_0x4ecf3c(0x435)])===_0x4ed99a[_0x4ecf3c(0x435)]&&((_0x524dbb=this['_lastPointer'])==null?void 0x0:_0x524dbb[_0x4ecf3c(0x338)])===_0x4ed99a[_0x4ecf3c(0x338)]||this[_0x4ecf3c(0x460)][_0x4ecf3c(0x256)](_0xfebe56=>{const _0x379b56=_0x4ecf3c;_0xfebe56[_0x379b56(0x1f7)](_0x4ed99a);});},0x64));})),this[_0x55412f(0x3b1)]((0x0,t[_0x55412f(0x226)])(()=>{const _0x3abb58=_0x55412f;var _0x1f6547;(_0x1f6547=this[_0x3abb58(0x1e8)])==null||_0x1f6547[_0x3abb58(0x1f1)](),this['_pointerMoveDisposable']=null;}));}[_0x1f5139(0x265)](_0x44698c,_0x59cd25){const _0x407ef5=_0x1f5139;let _0x337ce3=this[_0x407ef5(0x3e0)]['getCurrentSkeleton']();if(!_0x337ce3)return;let _0xd0bcd9=this[_0x407ef5(0x41d)]();if(!_0xd0bcd9)return;this['_cursors'][_0x407ef5(0x256)](_0x453b64=>{const _0x55541c=_0x407ef5;_0x453b64[_0x55541c(0x3f4)]();});let {scene:_0x3414f6}=_0xd0bcd9,_0x41466a=de(Array[_0x407ef5(0x366)](_0x59cd25[_0x407ef5(0x2bd)]()))[_0x407ef5(0x448)](_0x293cec=>{const _0x585ae0=_0x407ef5;let {color:_0x4385d5,range:_0x58ddec,name:_0x461bd2,selection:_0x4741f8,sheetID:_0x3a19cb}=_0x293cec,{startColumn:_0x3b71c5,startRow:_0x346803,endColumn:_0x29df21,endRow:_0x5e9f2e}=_0x58ddec,_0xf94b62=(0x0,v[_0x585ae0(0x29e)])(_0x346803,_0x3b71c5,_0x3414f6,_0x337ce3),_0x3d6082=(0x0,v['getCoordByCell'])(_0x5e9f2e,_0x29df21,_0x3414f6,_0x337ce3),{columnHeaderHeightAndMarginTop:_0x56c50c}=_0x337ce3,{startX:_0x5b0356,startY:_0x2cd1e9}=_0xf94b62,{endX:_0x5cf1e5,endY:_0x43fd26}=_0x3d6082,_0x563595=_0x5cf1e5-_0x5b0356,_0x5d3b69=_0x43fd26-_0x2cd1e9;return new z(_0x461bd2,{'labelPosition':_0x2cd1e9-_0x56c50c>=0x14?_0x585ae0(0x3bd):_0x585ae0(0x3a0),'sheetID':_0x3a19cb,'range':_0x58ddec,'color':_0x4385d5,'name':_0x461bd2,'selection':_0x4741f8,'left':_0x5b0356,'top':_0x2cd1e9,'width':_0x563595,'height':_0x5d3b69,'evented':!0x1,'zIndex':0x1389});});_0x3414f6['addObjects'](_0x41466a,0x1),this[_0x407ef5(0x460)]=new Set(_0x41466a);}[_0x1f5139(0x1f0)](){const _0x5b3f9c=_0x1f5139;var _0x2bec34;(_0x2bec34=this['_cursors'])==null||_0x2bec34[_0x5b3f9c(0x256)](_0x25f2de=>_0x25f2de[_0x5b3f9c(0x288)]());}[_0x1f5139(0x41d)](){const _0x5978dd=_0x1f5139;return(0x0,v[_0x5978dd(0x39d)])(this[_0x5978dd(0x24c)][_0x5978dd(0x203)],this['_context']);}};B=T([w(0x1,(0x0,t[_0x1f5139(0x3c9)])(v[_0x1f5139(0x45d)])),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(I)),w(0x3,(0x0,t[_0x1f5139(0x3c9)])(t[_0x1f5139(0x245)]))],B);function de(_0x19acd9){const _0x749ad7=_0x1f5139;let _0x3d507c=new Map();return _0x19acd9['forEach'](_0x4e39c5=>{const _0x4ad6c7=_0x4fbb;if(_0x3d507c[_0x4ad6c7(0x42a)](_0x4e39c5[_0x4ad6c7(0x370)])){let _0x33f985=_0x3d507c[_0x4ad6c7(0x449)](_0x4e39c5[_0x4ad6c7(0x370)]);_0x33f985['name']+=',\x20'+_0x4e39c5[_0x4ad6c7(0x327)];}else _0x3d507c['set'](_0x4e39c5[_0x4ad6c7(0x370)],_0x4e39c5);}),Array[_0x749ad7(0x366)](_0x3d507c['values']());}let V=class extends t[_0x1f5139(0x1c4)]{constructor(_0x50e281,_0x5bc9c5,_0x3bb320,_0x292601,_0x5d45d0,_0x196036){const _0x395b1b=_0x1f5139;super(),this[_0x395b1b(0x323)]=_0x50e281,this['_localCacheService']=_0x5bc9c5,this[_0x395b1b(0x2d8)]=_0x3bb320,this[_0x395b1b(0x3bc)]=_0x292601,this[_0x395b1b(0x2d4)]=_0x5d45d0,this[_0x395b1b(0x238)]=_0x196036,this[_0x395b1b(0x3df)](),this[_0x395b1b(0x399)]();}[_0x1f5139(0x3df)](){const _0x4c0adb=_0x1f5139;this[_0x4c0adb(0x3b1)](this[_0x4c0adb(0x323)][_0x4c0adb(0x1d5)](()=>{const _0x4bba67=_0x4c0adb;if(this[_0x4bba67(0x301)][_0x4bba67(0x2e1)][_0x4bba67(0x306)])return this[_0x4bba67(0x238)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x1f5139(0x399)](){const _0x49e11e=_0x1f5139;this[_0x49e11e(0x3b1)](this[_0x49e11e(0x2d8)]['event$']['subscribe'](_0x1d6d09=>{const _0x187ae1=_0x49e11e;_0x1d6d09['id']===e[_0x187ae1(0x20d)]['OTHER_CLIENT_EDITING']&&this[_0x187ae1(0x3bc)][_0x187ae1(0x27a)]({'type':a['MessageType'][_0x187ae1(0x365)],'content':this[_0x187ae1(0x238)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x1d6d09['id']===e['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x187ae1(0x3bc)][_0x187ae1(0x27a)]({'type':a[_0x187ae1(0x468)]['Warning'],'content':this[_0x187ae1(0x238)]['t'](_0x187ae1(0x25e))}),_0x1d6d09['id']===e[_0x187ae1(0x20d)][_0x187ae1(0x1de)]&&this[_0x187ae1(0x2d4)][_0x187ae1(0x27a)]({'title':this['_localeService']['t'](_0x187ae1(0x386)),'content':this[_0x187ae1(0x238)]['t'](_0x187ae1(0x36f)),'type':_0x187ae1(0x1cc),'duration':0x0}),_0x1d6d09['id']===e[_0x187ae1(0x20d)][_0x187ae1(0x3ef)]&&this[_0x187ae1(0x3bc)][_0x187ae1(0x27a)]({'type':a[_0x187ae1(0x468)][_0x187ae1(0x418)],'content':this[_0x187ae1(0x238)]['t'](_0x187ae1(0x25e))+'('+_0x1d6d09[_0x187ae1(0x292)]+')'}),_0x1d6d09['id']===e[_0x187ae1(0x20d)][_0x187ae1(0x350)]&&this['_messageService'][_0x187ae1(0x27a)]({'type':a[_0x187ae1(0x468)][_0x187ae1(0x365)],'content':this[_0x187ae1(0x238)]['t'](_0x1d6d09[_0x187ae1(0x292)]||'')}),_0x1d6d09['id']===e[_0x187ae1(0x20d)]['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x187ae1(0x27a)]({'type':a[_0x187ae1(0x468)][_0x187ae1(0x365)],'content':this['_localeService']['t']('collaboration-client-ui.session.will-retry')}),_0x1d6d09['id']===e[_0x187ae1(0x20d)][_0x187ae1(0x3fd)]&&this[_0x187ae1(0x3bc)][_0x187ae1(0x27a)]({'type':a[_0x187ae1(0x468)]['Error'],'content':this['_localeService']['t']('collaboration-client-ui.session.connection-failed')}),_0x1d6d09['id']===e['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x187ae1(0x3bc)][_0x187ae1(0x27a)]({'type':a['MessageType'][_0x187ae1(0x418)],'content':this[_0x187ae1(0x238)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}};V=T([w(0x0,n[_0x1f5139(0x2d0)]),w(0x1,e[_0x1f5139(0x318)]),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(e['CollaborationUIEventService'])),w(0x3,n[_0x1f5139(0x32c)]),w(0x4,n[_0x1f5139(0x268)]),w(0x5,(0x0,t[_0x1f5139(0x3c9)])(t[_0x1f5139(0x329)]))],V);const H={};let U=class{constructor(_0x448bb3,_0x57030e){const _0x143aab=_0x1f5139;this[_0x143aab(0x38a)]=_0x448bb3,this[_0x143aab(0x389)]=_0x57030e;}['transformIMECache'](_0x5a8c3d){const _0x3e3860=_0x1f5139;this[_0x3e3860(0x384)](_0x5a8c3d),this[_0x3e3860(0x3a2)](_0x5a8c3d);}[_0x1f5139(0x261)](_0x380862){const _0x468676=_0x1f5139;let {unitID:_0x2f798a}=_0x380862,{redoCache:_0x2dce41}=this[_0x468676(0x389)][_0x468676(0x211)](_0x2f798a)[_0x468676(0x1d7)](p[_0x468676(0x3db)])['getUndoRedoMutationParamsCache']();if(_0x2dce41[_0x468676(0x280)]===0x0)return _0x380862;let _0x3881ae=t[_0x468676(0x467)][_0x468676(0x258)](_0x380862[_0x468676(0x27e)][0x0]);for(let _0x2d8873=0x0;_0x2d8873<_0x2dce41['length'];_0x2d8873++){let _0x310cc2={'id':_0x468676(0x3e9),'params':{..._0x2dce41[_0x2d8873]}},_0x4b402e=this[_0x468676(0x38a)][_0x468676(0x402)](_0x3881ae,_0x310cc2,!0x1);if((0x0,h[_0x468676(0x436)])(_0x4b402e))throw _0x4b402e['error'];_0x3881ae=_0x4b402e[_0x468676(0x20a)];}return{...t[_0x468676(0x467)][_0x468676(0x258)](_0x380862),'mutations':[_0x3881ae]};}[_0x1f5139(0x384)](_0x41ebb8){const _0x35907f=_0x1f5139;let {unitID:_0x53d984}=_0x41ebb8,_0x2175bc=this[_0x35907f(0x389)][_0x35907f(0x211)](_0x53d984)['with'](p[_0x35907f(0x3db)]),{undoCache:_0xcc9f40,redoCache:_0x2f65d5}=_0x2175bc[_0x35907f(0x1fb)]();if(_0xcc9f40[_0x35907f(0x280)]===0x0||_0x2f65d5[_0x35907f(0x280)]===0x0)return;let _0x305caf=[],_0x57ec69=[],_0xf2cd5f=t[_0x35907f(0x467)][_0x35907f(0x258)](_0x41ebb8[_0x35907f(0x27e)][0x0]),_0x1352a2=t['Tools'][_0x35907f(0x258)](_0x41ebb8[_0x35907f(0x27e)][0x0]);for(let _0x15d88d=_0xcc9f40[_0x35907f(0x280)]-0x1;_0x15d88d>=0x0;_0x15d88d--){let _0x384b49={'id':'doc.mutation.rich-text-editing','params':{..._0xcc9f40[_0x15d88d]}},_0x477193={'id':'doc.mutation.rich-text-editing','params':{..._0x2f65d5[_0x15d88d]}},_0x408681=this['_transformService']['transformMutation'](_0xf2cd5f,_0x384b49,!0x1),_0xd6fd87=this[_0x35907f(0x38a)]['transformMutation'](_0x1352a2,_0x477193,!0x1);if((0x0,h[_0x35907f(0x436)])(_0x408681))throw _0x408681['error'];if((0x0,h['isTransformMutationFailure'])(_0xd6fd87))throw _0xd6fd87['error'];_0x305caf[_0x35907f(0x33f)](_0x408681[_0x35907f(0x24a)]['params']),_0x57ec69[_0x35907f(0x33f)](_0xd6fd87[_0x35907f(0x24a)][_0x35907f(0x239)]),_0xf2cd5f=_0x408681[_0x35907f(0x20a)],_0x1352a2=_0xd6fd87[_0x35907f(0x20a)];}_0x2175bc[_0x35907f(0x1e2)]({'undoCache':_0x305caf,'redoCache':_0x57ec69});}[_0x1f5139(0x3a2)](_0x31a1d6){const _0x4cedd3=_0x1f5139;let {unitID:_0x25a7c4}=_0x31a1d6,_0x17345=this[_0x4cedd3(0x389)][_0x4cedd3(0x211)](_0x25a7c4)['with'](p['DocIMEInputManagerService']),_0x4cab52=_0x17345[_0x4cedd3(0x34a)]();if(_0x4cab52==null)return;let _0x999ecc=[{'id':_0x4cedd3(0x3e9),'params':{'unitId':_0x31a1d6[_0x4cedd3(0x1d1)],'actions':null,'textRanges':[_0x4cab52]}}],_0x15e222=this[_0x4cedd3(0x38a)]['transformMutationsWithChangeset'](_0x31a1d6,_0x999ecc);if(!(0x0,h[_0x4cedd3(0x375)])(_0x15e222))throw _0x15e222['error'];let _0x24cdf0=_0x15e222[_0x4cedd3(0x24a)][0x0][_0x4cedd3(0x239)][_0x4cedd3(0x325)];Array['isArray'](_0x24cdf0)&&_0x24cdf0[_0x4cedd3(0x280)]&&_0x17345['setActiveRange'](_0x24cdf0[0x0]);}};U=T([w(0x0,h['ITransformService']),w(0x1,d[_0x1f5139(0x295)])],U);let W=class{constructor(_0x54490c,_0xf71577,_0x4b3f01){const _0xbc5539=_0x1f5139;this[_0xbc5539(0x20f)]=_0x54490c,this[_0xbc5539(0x38a)]=_0xf71577,this[_0xbc5539(0x3c2)]=_0x4b3f01;}['transformStateCache'](_0x568645){const _0x5996f0=_0x1f5139;this[_0x5996f0(0x3a5)](_0x568645);}[_0x1f5139(0x261)](_0x1fdac7){const _0x26c851=_0x1f5139;let {unitID:_0x403fbb}=_0x1fdac7,{collaboration:_0x3ae0cc}=this[_0x26c851(0x3c2)]['getStateCache'](_0x403fbb);if(_0x3ae0cc[_0x26c851(0x280)]===0x0)return _0x1fdac7;let _0x1068e8=t['Tools'][_0x26c851(0x258)](_0x1fdac7[_0x26c851(0x27e)][0x0]);for(let _0x1ee35a=0x0;_0x1ee35a<_0x3ae0cc[_0x26c851(0x280)];_0x1ee35a++){let _0x13f9b8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3ae0cc[_0x1ee35a][_0x26c851(0x1ff)],..._0x3ae0cc[_0x1ee35a]['redoState']}},_0x38224c=this[_0x26c851(0x38a)][_0x26c851(0x402)](_0x1068e8,_0x13f9b8,!0x1);if((0x0,h[_0x26c851(0x436)])(_0x38224c))throw _0x38224c[_0x26c851(0x1cc)];_0x1068e8=_0x38224c[_0x26c851(0x20a)];}return{...t[_0x26c851(0x467)]['deepClone'](_0x1fdac7),'mutations':[_0x1068e8]};}[_0x1f5139(0x3a5)](_0x41afba){const _0x1021ff=_0x1f5139;let {unitID:_0x46f9e3}=_0x41afba,{history:_0x147ff8,collaboration:_0x3847b8}=this[_0x1021ff(0x3c2)][_0x1021ff(0x1ca)](_0x46f9e3);if(_0x147ff8[_0x1021ff(0x280)]===0x0&&_0x3847b8['length']===0x0)return;let _0x5834e9=[],_0x3fa89b=[],_0x34e81c=t['Tools'][_0x1021ff(0x258)](_0x41afba[_0x1021ff(0x27e)][0x0]),_0x24edbf=t[_0x1021ff(0x467)]['deepClone'](_0x41afba[_0x1021ff(0x27e)][0x0]);for(let _0x140d2b=_0x147ff8[_0x1021ff(0x280)]-0x1;_0x140d2b>=0x0;_0x140d2b--){let _0x34894d={'id':_0x1021ff(0x3e9),'params':{'unitId':_0x147ff8[_0x140d2b][_0x1021ff(0x1ff)],..._0x147ff8[_0x140d2b][_0x1021ff(0x20c)]}},_0x50fa3c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x147ff8[_0x140d2b]['unitId'],..._0x147ff8[_0x140d2b]['redoState']}},_0x37f88c=this[_0x1021ff(0x38a)][_0x1021ff(0x402)](_0x34e81c,_0x34894d,!0x1),_0xf3f0c2=this[_0x1021ff(0x38a)][_0x1021ff(0x402)](_0x24edbf,_0x50fa3c,!0x1);if((0x0,h[_0x1021ff(0x436)])(_0x37f88c))throw _0x37f88c[_0x1021ff(0x1cc)];if((0x0,h['isTransformMutationFailure'])(_0xf3f0c2))throw _0xf3f0c2['error'];_0x5834e9[_0x1021ff(0x33f)]({..._0x147ff8[_0x140d2b],'undoState':_0x37f88c[_0x1021ff(0x24a)][_0x1021ff(0x239)],'redoState':_0xf3f0c2['m2Prime']['params']}),_0x34e81c=_0x37f88c[_0x1021ff(0x20a)],_0x24edbf=_0xf3f0c2['m1Prime'];}_0x34e81c=t[_0x1021ff(0x467)]['deepClone'](_0x41afba[_0x1021ff(0x27e)][0x0]),_0x24edbf=t[_0x1021ff(0x467)][_0x1021ff(0x258)](_0x41afba[_0x1021ff(0x27e)][0x0]);for(let _0x33efbe=_0x3847b8[_0x1021ff(0x280)]-0x1;_0x33efbe>=0x0;_0x33efbe--){let _0x20f9e1={'id':_0x1021ff(0x3e9),'params':{'unitId':_0x3847b8[_0x33efbe]['unitId'],..._0x3847b8[_0x33efbe][_0x1021ff(0x20c)]}},_0x3c8295={'id':_0x1021ff(0x3e9),'params':{'unitId':_0x3847b8[_0x33efbe][_0x1021ff(0x1ff)],..._0x3847b8[_0x33efbe][_0x1021ff(0x223)]}},_0x58f035=this[_0x1021ff(0x38a)][_0x1021ff(0x402)](_0x34e81c,_0x20f9e1,!0x1),_0x218662=this[_0x1021ff(0x38a)]['transformMutation'](_0x24edbf,_0x3c8295,!0x1);if((0x0,h[_0x1021ff(0x436)])(_0x58f035))throw _0x58f035[_0x1021ff(0x1cc)];if((0x0,h[_0x1021ff(0x436)])(_0x218662))throw _0x218662['error'];_0x3fa89b[_0x1021ff(0x33f)]({..._0x3847b8[_0x33efbe],'undoState':_0x58f035[_0x1021ff(0x24a)]['params'],'redoState':_0x218662[_0x1021ff(0x24a)][_0x1021ff(0x239)]}),_0x34e81c=_0x58f035[_0x1021ff(0x20a)],_0x24edbf=_0x218662[_0x1021ff(0x20a)];}this[_0x1021ff(0x3c2)]['setStateCache'](_0x46f9e3,{'history':_0x5834e9,'collaboration':_0x3fa89b});}};W=T([w(0x0,(0x0,t['Inject'])(t['Injector'])),w(0x1,h[_0x1f5139(0x452)]),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(p[_0x1f5139(0x437)]))],W);let G=class{constructor(_0x3794b9,_0x6ea5ac){const _0xd558e5=_0x1f5139;this[_0xd558e5(0x20f)]=_0x3794b9,this[_0xd558e5(0x38a)]=_0x6ea5ac;}[_0x1f5139(0x25c)](_0x3a0dee){const _0x151477=_0x1f5139;var _0x1b973a;let _0x702dac=this[_0x151477(0x20f)][_0x151477(0x449)](g['DocSelectionManagerService']),_0x2174d5=(_0x1b973a=_0x702dac[_0x151477(0x2d7)]())==null?[]:_0x1b973a;if(_0x2174d5['length']===0x0)return;let _0x2e5178=_0x3a0dee[_0x151477(0x1d1)],_0x1f2e15=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2e5178,'actions':null,'textRanges':_0x2174d5}}],_0x4cc100=this[_0x151477(0x38a)]['transformMutationsWithChangeset'](_0x3a0dee,_0x1f2e15);if(!(0x0,h[_0x151477(0x375)])(_0x4cc100))throw _0x4cc100[_0x151477(0x1cc)];let _0x4b8453=_0x4cc100[_0x151477(0x24a)][0x0][_0x151477(0x239)][_0x151477(0x325)];Array[_0x151477(0x287)](_0x4b8453)&&_0x4b8453[_0x151477(0x280)]&&_0x702dac[_0x151477(0x2ba)](_0x4b8453,{'unitId':_0x2e5178,'subUnitId':_0x2e5178},!0x1);}};G=T([w(0x0,(0x0,t[_0x1f5139(0x3c9)])(t[_0x1f5139(0x40e)])),w(0x1,h['ITransformService'])],G);let K=class extends t['Disposable']{constructor(_0x43c7b5,_0x328864,_0x3d6bda,_0x101d86,_0x5317b2,_0x2b5bae,_0x29a834,_0x2d9431){const _0x5cae3c=_0x1f5139;super(),this[_0x5cae3c(0x3c2)]=_0x43c7b5,this[_0x5cae3c(0x298)]=_0x328864,this[_0x5cae3c(0x282)]=_0x3d6bda,this[_0x5cae3c(0x2ca)]=_0x101d86,this[_0x5cae3c(0x428)]=_0x5317b2,this['_docSyncEditingCollabCursorService']=_0x2b5bae,this[_0x5cae3c(0x3bc)]=_0x29a834,this[_0x5cae3c(0x238)]=_0x2d9431,C(this,_0x5cae3c(0x395),new r[(_0x5cae3c(0x2b6))](e['CollaborationStatus'][_0x5cae3c(0x30d)])),this[_0x5cae3c(0x2b2)]();}[_0x1f5139(0x2b2)](){const _0x29e19a=_0x1f5139;this['disposeWithMe'](this[_0x29e19a(0x298)][_0x29e19a(0x3a9)][_0x29e19a(0x43e)](_0xc6fe74=>{const _0x18c012=_0x29e19a;let _0x32fa47=this['_docStateChangeManagerService'][_0x18c012(0x3e1)][_0x18c012(0x43e)](_0x3e9cc2=>{const _0x4cd6c6=_0x18c012;if(_0x3e9cc2==null)return;let {unitId:_0x26ed2c,redoState:_0x594b70,commandId:_0x255244}=_0x3e9cc2;if(_0x26ed2c!==_0xc6fe74[_0x4cd6c6(0x1d1)])return;let _0x86b3b3={'id':_0x255244,'type':t['CommandType'][_0x4cd6c6(0x1e4)],'params':{'unitId':_0x26ed2c,'actions':_0x594b70[_0x4cd6c6(0x305)],'textRanges':null}};_0xc6fe74[_0x4cd6c6(0x403)](_0x86b3b3);});_0xc6fe74[_0x18c012(0x3b1)](_0x32fa47),_0xc6fe74 instanceof e['DocCollaborationEntity']&&_0xc6fe74[_0x18c012(0x40f)]({'onTransformIME':_0x2318d3=>this[_0x18c012(0x282)][_0x18c012(0x413)](_0x2318d3),'onTransformState':_0x1322d9=>this[_0x18c012(0x2ca)][_0x18c012(0x32e)](_0x1322d9),'onTransformSelections':_0x57f09b=>this[_0x18c012(0x428)][_0x18c012(0x25c)](_0x57f09b),'onSyncEditingCollabCursor':_0x3a8ae=>this['_docSyncEditingCollabCursorService'][_0x18c012(0x3ea)](_0x3a8ae),'onTransformRemoteChangesetByIMECache':_0x1c705b=>this[_0x18c012(0x282)][_0x18c012(0x261)](_0x1c705b),'onTransformRemoteChangesetByStateCache':_0x5ad8c1=>this['_docTransformStateCacheService'][_0x18c012(0x261)](_0x5ad8c1)});}));}};K=T([w(0x0,(0x0,t[_0x1f5139(0x3c9)])(p[_0x1f5139(0x437)])),w(0x1,(0x0,t['Inject'])(e[_0x1f5139(0x427)])),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(U)),w(0x3,(0x0,t['Inject'])(W)),w(0x4,(0x0,t[_0x1f5139(0x3c9)])(G)),w(0x5,(0x0,t[_0x1f5139(0x3c9)])(N)),w(0x6,n['IMessageService']),w(0x7,(0x0,t['Inject'])(t[_0x1f5139(0x329)]))],K);let q=class extends t[_0x1f5139(0x1c4)]{constructor(_0x3ac209,_0x46a66f,_0x365393,_0x243014){const _0x1f42f5=_0x1f5139;super(),this[_0x1f42f5(0x20f)]=_0x3ac209,this[_0x1f42f5(0x2c7)]=_0x46a66f,this[_0x1f42f5(0x29b)]=_0x365393,this[_0x1f42f5(0x359)]=_0x243014,C(this,_0x1f42f5(0x283),void 0x0),this['_init']();}[_0x1f5139(0x1e3)](){const _0x16b37f=_0x1f5139;this[_0x16b37f(0x229)](),this[_0x16b37f(0x264)](),this['_monkeyPatchLogService'](),this[_0x16b37f(0x307)]();}['_initUserListener'](){const _0xe2b89a=_0x1f5139;this['disposeWithMe'](this[_0xe2b89a(0x359)][_0xe2b89a(0x447)]['subscribe'](_0x580568=>{const _0x4669a4=_0xe2b89a;this[_0x4669a4(0x283)]=_0x580568==null?void 0x0:_0x580568[_0x4669a4(0x372)];}));}['_initWindowErrorListener'](){const _0x369205=_0x1f5139;let _0x514d32=_0x5f08b8=>{const _0x49a31e=_0x4fbb;var _0x4bd671;this['_uploadLog'](_0x49a31e(0x1cc),_0x49a31e(0x373)+_0x5f08b8[_0x49a31e(0x25a)]+_0x49a31e(0x3d9)+_0x5f08b8[_0x49a31e(0x351)]+':'+_0x5f08b8[_0x49a31e(0x3fc)]+':'+_0x5f08b8[_0x49a31e(0x422)]+'\x0a'+(((_0x4bd671=_0x5f08b8[_0x49a31e(0x1cc)])==null?void 0x0:_0x4bd671[_0x49a31e(0x26a)])||''));};window[_0x369205(0x2af)](_0x369205(0x1cc),_0x514d32),this[_0x369205(0x3b1)](()=>{const _0x56ca9b=_0x369205;window['removeEventListener'](_0x56ca9b(0x1cc),_0x514d32);});}[_0x1f5139(0x264)](){const _0x3c6f08=_0x1f5139;let _0x2dc115=_0x5919c4=>{const _0x12f423=_0x4fbb;this['_uploadLog'](_0x12f423(0x1cc),_0x12f423(0x30e)+_0x5919c4[_0x12f423(0x2e2)]);};window['addEventListener'](_0x3c6f08(0x2de),_0x2dc115),this[_0x3c6f08(0x3b1)](()=>{const _0x555f06=_0x3c6f08;window[_0x555f06(0x434)]('unhandledrejection',_0x2dc115);});}[_0x1f5139(0x3f0)](){const _0x302904=_0x1f5139;let _0x1a6d8c=this['_logService'][_0x302904(0x1cc)][_0x302904(0x354)](this[_0x302904(0x29b)]);this['_logService'][_0x302904(0x1cc)]=(..._0x447457)=>{const _0x523684=_0x302904;let _0x3e5ff3=_0x447457[_0x523684(0x448)](_0x5ba698=>_0x5ba698 instanceof Error?_0x5ba698[_0x523684(0x25a)]+'\x0a'+_0x5ba698[_0x523684(0x26a)]:String(_0x5ba698))[_0x523684(0x25d)]('\x20');this[_0x523684(0x391)](_0x523684(0x1cc),'[LogService\x20Error]:\x20'+_0x3e5ff3),_0x1a6d8c(..._0x447457);},this[_0x302904(0x3b1)](()=>{const _0x3de711=_0x302904;this['_logService'][_0x3de711(0x1cc)]=_0x1a6d8c;});}[_0x1f5139(0x391)](_0xc8e013,_0x103507){const _0x29d033=_0x1f5139;try{let _0x59646c={'userId':this['_memberID'],'logLabel':_0xc8e013,'content':_0x103507};this[_0x29d033(0x2c7)][_0x29d033(0x304)]('/universer-api/frontend/logs',{'body':_0x59646c})['catch'](()=>{});}catch{}}};q=T([w(0x0,(0x0,t['Inject'])(t[_0x1f5139(0x40e)])),w(0x1,(0x0,t[_0x1f5139(0x3c9)])(f[_0x1f5139(0x2f2)])),w(0x2,t[_0x1f5139(0x1f2)]),w(0x3,(0x0,t[_0x1f5139(0x3c9)])(e['CollaborationSessionService']))],q);function fe(_0x3ab0a9){const _0x2ec126=_0x1f5139;var _0x4f1374,_0x10ead3;let _0x5527ab=(_0x4f1374=_0x3ab0a9[_0x2ec126(0x3cc)])==null?void 0x0:_0x4f1374[_0x2ec126(0x314)],_0x5c3f47=((_0x10ead3=_0x3ab0a9[_0x2ec126(0x3cc)])==null?void 0x0:_0x10ead3[_0x2ec126(0x206)])||0x0;return _0x5527ab===_['FormulaExecuteStageType'][_0x2ec126(0x41a)]&&_0x5c3f47>0x0;}function pe(_0x98918f){const _0x220549=_0x1f5139;return _0x98918f[_0x220549(0x2b3)]===_[_0x220549(0x230)]['SUCCESS'];}let J=class extends t['Disposable']{constructor(_0x7927bd,_0x5d17bf,_0x37353,_0x392575,_0x3298a2,_0x2976c2,_0x13f122){const _0x1d24cf=_0x1f5139;super(),this['_messageService']=_0x7927bd,this[_0x1d24cf(0x41f)]=_0x5d17bf,this['_configService']=_0x37353,this[_0x1d24cf(0x2c7)]=_0x392575,this[_0x1d24cf(0x1ec)]=_0x3298a2,this[_0x1d24cf(0x29b)]=_0x2976c2,this['_localeService']=_0x13f122,C(this,_0x1d24cf(0x43f),null),C(this,_0x1d24cf(0x438),0x0),C(this,_0x1d24cf(0x289),0x0),C(this,_0x1d24cf(0x3b7),[]),C(this,_0x1d24cf(0x458),0x0),this[_0x1d24cf(0x426)]();}[_0x1f5139(0x426)](){const _0x3b8e00=_0x1f5139;this['disposeWithMe'](this[_0x3b8e00(0x41f)][_0x3b8e00(0x2fc)]((_0x2c6fd5,_0x184ac2)=>{const _0x206e6f=_0x3b8e00;var _0x2b894f;if(_0x2c6fd5['id']!==_[_0x206e6f(0x1fe)]['id'])return;let _0x5b2417=_0x2c6fd5[_0x206e6f(0x239)];if(this[_0x206e6f(0x2ea)]((_0x2b894f=_0x5b2417[_0x206e6f(0x43c)])==null?[]:_0x2b894f)&&!this[_0x206e6f(0x311)]())throw this[_0x206e6f(0x20e)](_0x2c6fd5,_0x184ac2),this[_0x206e6f(0x3bf)](),new t['CanceledError']();})),this[_0x3b8e00(0x3b1)](this[_0x3b8e00(0x41f)][_0x3b8e00(0x251)]((_0x3b39ce,_0x489dca)=>{const _0x675da2=_0x3b8e00;if(_0x3b39ce['id']!==_[_0x675da2(0x38c)]['id'])return;let _0xb0f9e4=_0x3b39ce['params'];if(fe(_0xb0f9e4)){let _0xc2dbfa=(0x0,t[_0x675da2(0x379)])();this[_0x675da2(0x3b7)]['push'](_0xc2dbfa),this['_startCalculationLimit'](_0xc2dbfa);}else{if(pe(_0xb0f9e4)&&this['_taskIds'][_0x675da2(0x280)]>0x0){let _0x31bba1=this[_0x675da2(0x3b7)][_0x675da2(0x424)]();this[_0x675da2(0x228)](_0x31bba1);}}}));}[_0x1f5139(0x288)](){const _0x160714=_0x1f5139;super[_0x160714(0x288)](),this['_clearPolling'](),this[_0x160714(0x3b7)]=[],this['_currentUsage']=0x0,this[_0x160714(0x438)]=0x0,this[_0x160714(0x458)]=0x0;}async[_0x1f5139(0x20e)](_0x113e67,_0x7f8ec0){const _0x4f5fa8=_0x1f5139;for(let _0x3ca2bd=0x0;_0x3ca2bd<0x1e;_0x3ca2bd++)try{if(await this[_0x4f5fa8(0x444)](),this[_0x4f5fa8(0x311)]()){this[_0x4f5fa8(0x30c)](_0x113e67,_0x7f8ec0),this['_messageService'][_0x4f5fa8(0x27a)]({'content':this[_0x4f5fa8(0x238)]['t']('collaboration-client-ui.formula.calculation.started'),'type':a[_0x4f5fa8(0x468)][_0x4f5fa8(0x277)]});return;}await new Promise(_0x2bfbb4=>{const _0x1009c9=_0x4f5fa8;this[_0x1009c9(0x43f)]=window[_0x1009c9(0x29f)](_0x2bfbb4,0x3e8);});}catch(_0x670a2a){this[_0x4f5fa8(0x29b)]['error'](_0x670a2a);}this[_0x4f5fa8(0x3bc)][_0x4f5fa8(0x27a)]({'content':this[_0x4f5fa8(0x238)]['t'](_0x4f5fa8(0x3ad)),'type':a['MessageType'][_0x4f5fa8(0x418)]});}[_0x1f5139(0x30c)](_0xad2d57,_0x3d2db8){const _0x43f6f8=_0x1f5139;try{this[_0x43f6f8(0x41f)][_0x43f6f8(0x2c9)](_0xad2d57['id'],_0xad2d57[_0x43f6f8(0x239)],_0x3d2db8);}catch(_0x4ff7f3){this[_0x43f6f8(0x29b)][_0x43f6f8(0x1cc)](_0x4ff7f3);}}[_0x1f5139(0x24f)](_0x15508a,_0x8548b5){const _0x26e5a4=_0x1f5139;_0x8548b5<this[_0x26e5a4(0x458)]||(this[_0x26e5a4(0x458)]=_0x8548b5,this[_0x26e5a4(0x438)]=Number['parseInt'](_0x15508a[_0x26e5a4(0x32d)]),this[_0x26e5a4(0x289)]=Number[_0x26e5a4(0x313)](_0x15508a[_0x26e5a4(0x320)]));}async[_0x1f5139(0x2fa)](_0x323cff){const _0x59220c=_0x1f5139;let _0x2b5c0d=Date['now']();try{var _0x3522fe,_0x2c9c45;let _0x4e3442=((_0x3522fe=this['_configService'][_0x59220c(0x22e)](e[_0x59220c(0x405)]))==null?void 0x0:_0x3522fe[_0x59220c(0x3f1)])||'/universer-api/license/formula/limit/start',_0x42d8d6=(await this['_httpService'][_0x59220c(0x304)](_0x4e3442,{'body':JSON[_0x59220c(0x3c5)]({'taskId':_0x323cff})}))['body'];if(((_0x2c9c45=_0x42d8d6[_0x59220c(0x1cc)])==null?void 0x0:_0x2c9c45[_0x59220c(0x1dc)])!==y[_0x59220c(0x461)]['OK'])return;this[_0x59220c(0x24f)](_0x42d8d6[_0x59220c(0x41c)],_0x2b5c0d);}catch(_0x2101fc){this['_logService'][_0x59220c(0x1cc)](_0x2101fc);}}async[_0x1f5139(0x444)](_0x1c70f8){const _0x80f3a6=_0x1f5139;let _0x6e6aa0=Date[_0x80f3a6(0x1d9)]();try{var _0x1b8623,_0x96a657;let _0x55f327=((_0x1b8623=this[_0x80f3a6(0x2db)]['getConfig'](e[_0x80f3a6(0x405)]))==null?void 0x0:_0x1b8623[_0x80f3a6(0x299)])||_0x80f3a6(0x371),_0x1e41f6=_0x1c70f8?_0x55f327+'?taskId='+encodeURIComponent(_0x1c70f8):_0x55f327,_0x280a1e=(await this['_httpService'][_0x80f3a6(0x449)](_0x1e41f6))['body'];if(((_0x96a657=_0x280a1e[_0x80f3a6(0x1cc)])==null?void 0x0:_0x96a657[_0x80f3a6(0x1dc)])!==y['ErrorCode']['OK'])return;this[_0x80f3a6(0x24f)](_0x280a1e[_0x80f3a6(0x41c)],_0x6e6aa0);}catch(_0x18070f){this[_0x80f3a6(0x29b)][_0x80f3a6(0x1cc)](_0x18070f);}}async[_0x1f5139(0x228)](_0x1bee41){const _0x49ecb2=_0x1f5139;let _0x578c73=Date[_0x49ecb2(0x1d9)]();try{var _0x3d6400,_0x528064;let _0x3847ed=((_0x3d6400=this[_0x49ecb2(0x2db)][_0x49ecb2(0x22e)](e[_0x49ecb2(0x405)]))==null?void 0x0:_0x3d6400[_0x49ecb2(0x275)])||_0x49ecb2(0x466),_0x661693=(await this[_0x49ecb2(0x2c7)]['post'](_0x3847ed,{'body':JSON[_0x49ecb2(0x3c5)]({'taskId':_0x1bee41})}))['body'];if(((_0x528064=_0x661693['error'])==null?void 0x0:_0x528064[_0x49ecb2(0x1dc)])!==y[_0x49ecb2(0x461)]['OK'])return;this['_setFormulaLimitStatus'](_0x661693[_0x49ecb2(0x41c)],_0x578c73);}catch(_0x3fb711){this[_0x49ecb2(0x29b)][_0x49ecb2(0x1cc)](_0x3fb711);}}['_checkCalculationAvailable'](){const _0x418f31=_0x1f5139;return this[_0x418f31(0x438)]===0x0?!0x0:this[_0x418f31(0x438)]-this['_currentUsage']>0x0;}[_0x1f5139(0x1f4)](){const _0x46e2af=_0x1f5139;this['_pollingInterval']&&(clearTimeout(this[_0x46e2af(0x43f)]),this[_0x46e2af(0x43f)]=null);}[_0x1f5139(0x3bf)](){const _0x51830b=_0x1f5139;this[_0x51830b(0x3bc)][_0x51830b(0x27a)]({'content':this['_localeService']['t']('collaboration-client-ui.formula.calculation.waiting'),'type':a['MessageType'][_0x51830b(0x37b)]});}[_0x1f5139(0x2ea)](_0x1c403b){const _0x5b63e5=_0x1f5139;for(let _0x353926 of _0x1c403b){let {unitId:_0x5206fa,sheetId:_0x31961b,range:_0x550844}=_0x353926,_0x41a7ee=this[_0x5b63e5(0x1ec)][_0x5b63e5(0x45c)](_0x5206fa);if(!_0x41a7ee)continue;let _0x46cac6=_0x41a7ee[_0x5b63e5(0x1c7)](_0x31961b);if(!_0x46cac6)continue;let _0x35359f=_0x46cac6[_0x5b63e5(0x456)]();for(let _0x35ae09=_0x550844[_0x5b63e5(0x22a)];_0x35ae09<=_0x550844[_0x5b63e5(0x2f1)];_0x35ae09++)for(let _0x9de836=_0x550844['startColumn'];_0x9de836<=_0x550844[_0x5b63e5(0x3f3)];_0x9de836++){let _0x546e70=_0x35359f['getValue'](_0x35ae09,_0x9de836);if(_0x546e70&&((0x0,t[_0x5b63e5(0x2c3)])(_0x546e70['f'])||(0x0,t[_0x5b63e5(0x219)])(_0x546e70['si'])))return!0x0;}}return!0x1;}};J=T([w(0x0,(0x0,t['Inject'])(n['IMessageService'])),w(0x1,t[_0x1f5139(0x3d6)]),w(0x2,t[_0x1f5139(0x463)]),w(0x3,(0x0,t['Inject'])(f[_0x1f5139(0x2f2)])),w(0x4,t[_0x1f5139(0x459)]),w(0x5,t['ILogService']),w(0x6,(0x0,t['Inject'])(t[_0x1f5139(0x329)]))],J);function _0x4fbb(_0x16da9a,_0x348107){_0x16da9a=_0x16da9a-0x1c4;const _0x36ac51=_0x36ac();let _0x4fbbc1=_0x36ac51[_0x16da9a];return _0x4fbbc1;}let Y=class extends t[_0x1f5139(0x1c4)]{constructor(_0x250afc,_0x2f0a0a,_0x5afbe3){const _0x2d5464=_0x1f5139;super(),this[_0x2d5464(0x2db)]=_0x250afc,this[_0x2d5464(0x410)]=_0x2f0a0a,this[_0x2d5464(0x44c)]=_0x5afbe3,C(this,_0x2d5464(0x3be),new Map()),C(this,_0x2d5464(0x3d2),new Map()),C(this,_0x2d5464(0x352),!0x1);}[_0x1f5139(0x408)](){const _0xb486b5=_0x1f5139;this[_0xb486b5(0x352)]=!0x0;}[_0x1f5139(0x263)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x1359af=_0x1f5139;return this[_0x1359af(0x3d2)];}[_0x1f5139(0x288)](){const _0x47625c=_0x1f5139;this[_0x47625c(0x3ee)]()[_0x47625c(0x334)](()=>super[_0x47625c(0x288)]());}async[_0x1f5139(0x3d1)](_0x17ce27){const _0x54a00b=_0x1f5139;return this[_0x54a00b(0x352)]?null:this['_localStorageService'][_0x54a00b(0x20b)]((0x0,e[_0x54a00b(0x1fd)])(_0x17ce27));}async[_0x1f5139(0x36a)](_0x1499f4,_0x27b358){const _0x26aa32=_0x1f5139;return!!this[_0x26aa32(0x410)]['setItem'](_0x1499f4,_0x27b358);}[_0x1f5139(0x33d)](_0x55a154,_0xe5667b,_0x408dd6,_0x484dcd){const _0x12b52b=_0x1f5139;let _0x462a1f=this[_0x12b52b(0x44c)]['getCurrentRevOfUnit'](_0x55a154);this[_0x12b52b(0x3be)]['set'](_0x55a154,{'unitID':_0x55a154,'type':_0xe5667b,'awaitingChangeset':_0x408dd6,'mutations':_0x484dcd,'rev':_0x462a1f}),this[_0x12b52b(0x3d2)][_0x12b52b(0x42a)](_0x55a154)||this['_scheduleSaving'](_0x55a154);}[_0x1f5139(0x36b)](_0x1cc304){const _0x1c7411=_0x1f5139;let _0x2e49d1=this[_0x1c7411(0x281)]();_0x2e49d1===0x0?this[_0x1c7411(0x419)](_0x1cc304):this[_0x1c7411(0x3d2)]['set'](_0x1cc304,setTimeout(()=>this[_0x1c7411(0x419)](_0x1cc304),_0x2e49d1));}[_0x1f5139(0x281)](){const _0x146eaf=_0x1f5139;var _0x4868fd;return(_0x4868fd=this[_0x146eaf(0x2db)][_0x146eaf(0x22e)](e['LOCAL_CACHE_INTERVAL_KEY']))==null?e[_0x146eaf(0x415)]:_0x4868fd;}[_0x1f5139(0x419)](_0x4e7a95){const _0x1cd000=_0x1f5139;let _0x12ff69=this[_0x1cd000(0x3d2)]['get'](_0x4e7a95);return _0x12ff69!==void 0x0&&window[_0x1cd000(0x443)](_0x12ff69),this[_0x1cd000(0x410)][_0x1cd000(0x2df)]((0x0,e[_0x1cd000(0x1fd)])(_0x4e7a95),this[_0x1cd000(0x3be)][_0x1cd000(0x449)](_0x4e7a95))['then'](()=>this[_0x1cd000(0x3d2)][_0x1cd000(0x34f)](_0x4e7a95));}async['exhaustSavingTask'](){const _0x4555d9=_0x1f5139;let _0x3a4679=[];this[_0x4555d9(0x3d2)][_0x4555d9(0x256)]((_0x155dbc,_0x41f210)=>{const _0x334832=_0x4555d9;window[_0x334832(0x443)](_0x155dbc),_0x3a4679[_0x334832(0x404)](this[_0x334832(0x419)](_0x41f210)[_0x334832(0x334)](()=>{const _0x1c3b65=_0x334832;this[_0x1c3b65(0x3d2)][_0x1c3b65(0x34f)](_0x41f210);}));}),await Promise[_0x4555d9(0x2ad)](_0x3a4679);}};Y=T([w(0x0,t[_0x1f5139(0x463)]),w(0x1,t[_0x1f5139(0x3ae)]),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(h[_0x1f5139(0x442)]))],Y);var X=class extends t[_0x1f5139(0x2b4)]{constructor(){const _0x48856b=_0x1f5139;super(),C(this,_0x48856b(0x407),void 0x0),this[_0x48856b(0x407)]=(0x0,r[_0x48856b(0x291)])(window,'popstate')[_0x48856b(0x25f)]((0x0,r['takeUntil'])(this[_0x48856b(0x1cb)]),(0x0,r[_0x48856b(0x383)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x48856b(0x3c3)])(void 0x0));}[_0x1f5139(0x315)](_0x503407,_0x27a9e3,_0x1da16e=!0x1){const _0x1d25c8=_0x1f5139;let _0x4b5f72=new URL(window[_0x1d25c8(0x3cd)][_0x1d25c8(0x30f)]);_0x4b5f72['searchParams'][_0x1d25c8(0x37c)](_0x503407,_0x27a9e3),_0x1da16e?window[_0x1d25c8(0x22b)]['replaceState']('','',_0x4b5f72[_0x1d25c8(0x242)]()):window[_0x1d25c8(0x22b)][_0x1d25c8(0x31b)]('','',_0x4b5f72[_0x1d25c8(0x242)]());}[_0x1f5139(0x44e)](_0x4b3793,_0x1a332e=!0x1){const _0x5a6eac=_0x1f5139;let _0x222fd5=new URL(window[_0x5a6eac(0x3cd)][_0x5a6eac(0x30f)]);_0x222fd5[_0x5a6eac(0x38b)][_0x5a6eac(0x34f)](_0x4b3793),_0x1a332e?window[_0x5a6eac(0x22b)][_0x5a6eac(0x308)]('','',_0x222fd5[_0x5a6eac(0x242)]()):window[_0x5a6eac(0x22b)][_0x5a6eac(0x31b)]('','',_0x222fd5['toString']());}[_0x1f5139(0x3b9)](_0x1f1b34){const _0x4ee32b=_0x1f5139;var _0x18cdc6;return(_0x18cdc6=new URL(window[_0x4ee32b(0x3cd)][_0x4ee32b(0x30f)])['searchParams'][_0x4ee32b(0x449)](_0x1f1b34))==null?void 0x0:_0x18cdc6;}};let Z=class extends t[_0x1f5139(0x45e)]{constructor(_0xd13e51=H,_0x5a854a,_0x15b031,_0x14f1d3){const _0x419c77=_0x1f5139;super(),this[_0x419c77(0x1d6)]=_0xd13e51,this[_0x419c77(0x389)]=_0x5a854a,this[_0x419c77(0x20f)]=_0x15b031,this[_0x419c77(0x2db)]=_0x14f1d3;let {..._0x1fdf07}=(0x0,t[_0x419c77(0x2bb)])({},H,this[_0x419c77(0x1d6)]);this[_0x419c77(0x2db)][_0x419c77(0x3e7)]('collaboration-client-ui.config',_0x1fdf07);}['onStarting'](){this['_registerDependencies'](),this['_initDependencies']();}['onRendered'](){const _0x2ef901=_0x1f5139;this[_0x2ef901(0x38e)]();}[_0x1f5139(0x1ea)](){const _0x2db357=_0x1f5139;var _0x28560b;let _0x199e7a=[[j],[J],[G],[U],[W],[N],[D,{'useClass':X}],[f[_0x2db357(0x3f6)],{'useClass':f[_0x2db357(0x29d)]}],[e['ILocalCacheService'],{'useClass':Y}],[E],[K],[V],[I],[k],[O]];this[_0x2db357(0x1d6)][_0x2db357(0x2e0)]&&_0x199e7a[_0x2db357(0x404)]([q]),(0x0,t[_0x2db357(0x28e)])(this[_0x2db357(0x20f)],(0x0,t[_0x2db357(0x357)])(_0x199e7a,(_0x28560b=this[_0x2db357(0x1d6)])==null?void 0x0:_0x28560b[_0x2db357(0x425)]));}[_0x1f5139(0x38e)](){const _0x222009=_0x1f5139;this[_0x222009(0x3b1)](this['_renderManagerService']['registerRenderModule'](t[_0x222009(0x21d)][_0x222009(0x1e5)],[R])),this['disposeWithMe'](this[_0x222009(0x389)]['registerRenderModule'](t['UniverInstanceType'][_0x222009(0x396)],[B]));}['_initDependencies'](){const _0x44f26a=_0x1f5139;(0x0,t[_0x44f26a(0x44d)])(this['_injector'],[[I],[E],[K],[V],[O],[J],[k]]),this[_0x44f26a(0x1d6)][_0x44f26a(0x2e0)]&&(0x0,t[_0x44f26a(0x44d)])(this[_0x44f26a(0x20f)],[[q]]);}};C(Z,'pluginName',_0x1f5139(0x3a8)),C(Z,_0x1f5139(0x2fb),ie),C(Z,_0x1f5139(0x2ce),ae),Z=T([(0x0,t[_0x1f5139(0x34e)])(e[_0x1f5139(0x3e3)]),w(0x1,d[_0x1f5139(0x295)]),w(0x2,(0x0,t[_0x1f5139(0x3c9)])(t[_0x1f5139(0x40e)])),w(0x3,t[_0x1f5139(0x463)])],Z);let Q=class extends e[_0x1f5139(0x3a7)]{constructor(_0x2397c5,_0x13fbbc,_0x36bd15,_0xdc6c4f,_0x5c9a4b){super(_0x2397c5,_0x13fbbc,_0x36bd15,_0xdc6c4f,_0x5c9a4b);}async[_0x1f5139(0x1f5)](_0x209c2b){const _0x5bcfb6=_0x1f5139;let _0x30bd96=await this[_0x5bcfb6(0x346)](),_0x231a97=this['_createSocketURL'](_0x209c2b,_0x30bd96);return this[_0x5bcfb6(0x222)](_0x231a97);}[_0x1f5139(0x2a8)](_0x129e3d,_0x5a83a8){const _0x2663f8=_0x1f5139;let _0x277b09=typeof window>'u'?new URL(_0x129e3d):new URL(_0x129e3d,window[_0x2663f8(0x3cd)][_0x2663f8(0x341)]);_0x277b09[_0x2663f8(0x38b)][_0x2663f8(0x37c)]('sessionTicket',_0x5a83a8);let _0x14054f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x2663f8(0x1cd)]);return _0x14054f[_0x2663f8(0x449)](_0x2663f8(0x343))&&_0x277b09[_0x2663f8(0x38b)][_0x2663f8(0x37c)](_0x2663f8(0x343),_0x14054f[_0x2663f8(0x449)](_0x2663f8(0x343))),_0x277b09[_0x2663f8(0x242)]();}async[_0x1f5139(0x346)](){const _0x1ded78=_0x1f5139;var _0x3315ab,_0x226436,_0xd50d0b;let _0x455906=this[_0x1ded78(0x2db)][_0x1ded78(0x22e)](e[_0x1ded78(0x405)]),_0x33ca43=(_0x3315ab=_0x455906==null?void 0x0:_0x455906[_0x1ded78(0x3dc)])==null?e['DEFAULT_WS_SESSION_TICKET_URL']:_0x3315ab;return(_0x226436=(_0xd50d0b=(await this[_0x1ded78(0x2c7)][_0x1ded78(0x449)](_0x33ca43,{'headers':{'Content-Type':_0x1ded78(0x331)}}))[_0x1ded78(0x207)])==null?void 0x0:_0xd50d0b[_0x1ded78(0x35d)])==null?'':_0x226436;}};Q=T([w(0x0,(0x0,t[_0x1f5139(0x3c9)])(t['Injector'])),w(0x1,(0x0,t['Inject'])(f[_0x1f5139(0x2f2)])),w(0x2,t[_0x1f5139(0x463)]),w(0x3,t[_0x1f5139(0x1f2)]),w(0x4,h[_0x1f5139(0x450)])],Q);let $=class extends t['Disposable']{constructor(_0x4c03f3,_0x37c740,_0x2f7572){const _0x52047b=_0x1f5139;super(),this['_instanceService']=_0x4c03f3,this[_0x52047b(0x2c7)]=_0x37c740,this[_0x52047b(0x2db)]=_0x2f7572;}async[_0x1f5139(0x220)](_0x343e83,_0x1e4832,_0xe31355,..._0x4e15ca){const _0x5132b4=_0x1f5139;var _0x5ad11b,_0x34ced6,_0x264c1a,_0x44247a;let _0x471dc6=this[_0x5132b4(0x225)][_0x5132b4(0x412)]();if(!_0x471dc6)throw Error(_0x5132b4(0x35f));let _0x674e9e=((_0x5ad11b=this['_configService']['getConfig'](e[_0x5132b4(0x45a)]))==null?e[_0x5132b4(0x236)]:_0x5ad11b)+'/'+_0x343e83+'/run/'+_0x1e4832,_0x2170cb={'scriptId':_0x343e83,'runId':(_0x34ced6=new URL(window[_0x5132b4(0x3cd)]['href'])[_0x5132b4(0x38b)][_0x5132b4(0x449)]('runId'))==null?'':_0x34ced6,'function':_0x1e4832,'unitId':_0x471dc6[_0x5132b4(0x3e2)](),'argsOfFunction':JSON[_0x5132b4(0x3c5)](_0x4e15ca),'invokeId':(_0x264c1a=_0xe31355[_0x5132b4(0x3f8)])==null?'':_0x264c1a,'executionId':(_0x44247a=_0xe31355[_0x5132b4(0x360)])==null?'':_0x44247a};try{let _0x4154c2=await this[_0x5132b4(0x2c7)]['post'](_0x674e9e,{'body':_0x2170cb});return _0x4154c2[_0x5132b4(0x207)][_0x5132b4(0x1cc)]&&_0x4154c2[_0x5132b4(0x207)][_0x5132b4(0x1cc)][_0x5132b4(0x1dc)]!==y[_0x5132b4(0x461)]['OK']?_0x5132b4(0x3c0):_0x4154c2[_0x5132b4(0x207)]['result'];}catch{return _0x5132b4(0x3c0);}}};$=T([w(0x0,t[_0x1f5139(0x459)]),w(0x1,(0x0,t['Inject'])(f[_0x1f5139(0x2f2)])),w(0x2,t[_0x1f5139(0x463)])],$);const me=0x7530,he='ACTIVE_UNIT_EVENT_CHANNEL';var ge=class extends t[_0x1f5139(0x1c4)]{constructor(){const _0x403f99=_0x1f5139;super(),C(this,_0x403f99(0x1d0),(0x0,t[_0x403f99(0x379)])()),C(this,_0x403f99(0x2cf),new Set()),C(this,'_unitOnClients',new Map()),C(this,_0x403f99(0x213),null),C(this,'_clearOtherTimers',new Map()),C(this,_0x403f99(0x45f),new Map()),this[_0x403f99(0x1e3)]();}[_0x1f5139(0x288)](){const _0x1ce5a1=_0x1f5139;super[_0x1ce5a1(0x288)](),this[_0x1ce5a1(0x3f5)]['forEach']((_0x71b8e0,_0x148618)=>this['_removeClearOtherTimer'](_0x148618)),this[_0x1ce5a1(0x213)]&&window[_0x1ce5a1(0x43b)](this['_heartbeatTimer']);}[_0x1f5139(0x2ff)](_0x459bcf){const _0x30e78f=_0x1f5139;return this[_0x30e78f(0x254)](_0x459bcf)[_0x30e78f(0x25f)]((0x0,r['distinctUntilChanged'])());}['editingUnit'](_0xa32659){const _0x2d1881=_0x1f5139;this[_0x2d1881(0x2cf)][_0x2d1881(0x306)]===0x0&&this[_0x2d1881(0x21b)](),this[_0x2d1881(0x2cf)][_0x2d1881(0x2c5)](_0xa32659),this[_0x2d1881(0x260)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xa32659],'isForwarded':!0x1});}[_0x1f5139(0x400)](_0x2d7f68){const _0x56fbd7=_0x1f5139;this[_0x56fbd7(0x2cf)][_0x56fbd7(0x34f)](_0x2d7f68),this[_0x56fbd7(0x2cf)][_0x56fbd7(0x306)]===0x0&&this[_0x56fbd7(0x213)]&&window[_0x56fbd7(0x43b)](this[_0x56fbd7(0x213)]);}[_0x1f5139(0x1e3)](){const _0x3be8c5=_0x1f5139;this[_0x3be8c5(0x3b1)]((0x0,t[_0x3be8c5(0x226)])((0x0,r['fromEvent'])(window,_0x3be8c5(0x259))['subscribe'](_0x1083bd=>{const _0x5567f0=_0x3be8c5;if(_0x1083bd['key']!==he||!_0x1083bd[_0x5567f0(0x3eb)])return;let _0x1b067f=JSON[_0x5567f0(0x2dd)](_0x1083bd[_0x5567f0(0x3eb)]);this[_0x5567f0(0x30a)](_0x1b067f);}))),window['addEventListener'](_0x3be8c5(0x290),()=>this[_0x3be8c5(0x260)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x3be8c5(0x366)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x1e08aa){switch(_0x1e08aa['type']){case 0x0:this['_handleJoinEvent'](_0x1e08aa);break;case 0x1:this['_handleLeaveEvent'](_0x1e08aa);break;case 0x2:this['_handleHeartbeatEvent'](_0x1e08aa);break;}}['_handleJoinEvent'](_0x4ca69b){const _0x8f31e8=_0x1f5139;let {unitIDs:_0x2d2d82,memberID:_0xffe337,isForwarded:_0x57c8ba}=_0x4ca69b;_0x2d2d82['forEach'](_0x39e220=>{const _0x1b933c=_0x4fbb;if(!_0x57c8ba&&this[_0x1b933c(0x1ce)][_0x1b933c(0x42a)](_0x39e220)&&this[_0x1b933c(0x254)](_0x39e220)['next'](e['UnitStatus'][_0x1b933c(0x1ee)]),!this[_0x1b933c(0x1ce)]['has'](_0x39e220)||!this[_0x1b933c(0x1ce)][_0x1b933c(0x449)](_0x39e220)[_0x1b933c(0x42a)](_0xffe337)){let _0x407d5f=this[_0x1b933c(0x1ce)][_0x1b933c(0x449)](_0x39e220)||new Set();_0x407d5f[_0x1b933c(0x2c5)](_0xffe337),this['_unitOnClients']['set'](_0x39e220,_0x407d5f),this[_0x1b933c(0x227)](_0xffe337);}}),_0x57c8ba||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x8f31e8(0x2cf)]],'isForwarded':!0x0});}[_0x1f5139(0x227)](_0x4a2df6){const _0x2e1129=_0x1f5139;this['_removeClearOtherTimer'](_0x4a2df6);let _0x300f1a=window[_0x2e1129(0x29f)](()=>{const _0x4d1e4e=_0x2e1129;this[_0x4d1e4e(0x1ce)][_0x4d1e4e(0x256)](_0x2e024b=>{_0x2e024b['delete'](_0x4a2df6);});},me*0x2);this['_clearOtherTimers']['set'](_0x4a2df6,_0x300f1a);}[_0x1f5139(0x1d4)](_0x1b8c72){const _0x1ea860=_0x1f5139;if(this[_0x1ea860(0x3f5)][_0x1ea860(0x42a)](_0x1b8c72)){let _0x3a974b=this['_clearOtherTimers'][_0x1ea860(0x449)](_0x1b8c72);_0x3a974b&&window[_0x1ea860(0x443)](_0x3a974b),this['_clearOtherTimers']['set'](_0x1b8c72,null);}}[_0x1f5139(0x1dd)](_0x86ce57){const _0x3af241=_0x1f5139;let {memberID:_0x41c34e,unitIDs:_0x248818}=_0x86ce57;_0x248818[_0x3af241(0x256)](_0x212f43=>{const _0x3171f5=_0x3af241;var _0x3fe9f1;let _0x215f3e=this['_unitOnClients'][_0x3171f5(0x449)](_0x212f43);_0x215f3e&&(_0x215f3e['delete'](_0x41c34e),(_0x3fe9f1=this['_ensureSubject'](_0x212f43))==null||_0x3fe9f1['next'](_0x215f3e[_0x3171f5(0x306)]===0x0?e[_0x3171f5(0x231)]['NO_OTHER_CLIENTS_EDITING']:e[_0x3171f5(0x231)][_0x3171f5(0x1ee)]));}),this[_0x3af241(0x1d4)](_0x41c34e);}[_0x1f5139(0x1d3)](_0x870bae){const _0x413ab4=_0x1f5139;this[_0x413ab4(0x227)](_0x870bae[_0x413ab4(0x372)]);}[_0x1f5139(0x260)](_0x59001b){const _0x4ffa57=_0x1f5139;localStorage[_0x4ffa57(0x2df)](he,JSON[_0x4ffa57(0x3c5)](_0x59001b));}[_0x1f5139(0x21b)](){const _0xbaca28=_0x1f5139;this['_heartbeatTimer']=window[_0xbaca28(0x233)](()=>{const _0xd7bae0=_0xbaca28;this[_0xd7bae0(0x260)]({'type':0x2,'memberID':this[_0xd7bae0(0x1d0)]});},me);}[_0x1f5139(0x254)](_0x1c527a){const _0x286044=_0x1f5139;return this[_0x286044(0x45f)]['has'](_0x1c527a)||this['_unitStatus']['set'](_0x1c527a,new r['BehaviorSubject'](e['UnitStatus'][_0x286044(0x454)])),this[_0x286044(0x45f)][_0x286044(0x449)](_0x1c527a);}};Object['defineProperty'](exports,_0x1f5139(0x23b),{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0x1f5139(0x2e4)](exports,_0x1f5139(0x2b1),{'enumerable':!0x0,'get':function(){return O;}}),Object[_0x1f5139(0x2e4)](exports,'DesktopCollaborationStatusDisplayController',{'enumerable':!0x0,'get':function(){return E;}}),exports['IURLService']=D,Object[_0x1f5139(0x2e4)](exports,_0x1f5139(0x369),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x1f5139(0x1db)]=z,Object['defineProperty'](exports,_0x1f5139(0x3ec),{'enumerable':!0x0,'get':function(){return Z;}}),exports[_0x1f5139(0x446)]=ge,exports[_0x1f5139(0x455)]=X;
1
+ const _0x1e1130=_0x77df;(function(_0xef20de,_0x24e2fb){const _0x2d5dd4=_0x77df,_0x400e39=_0xef20de();while(!![]){try{const _0x437871=parseInt(_0x2d5dd4(0x198))/0x1+parseInt(_0x2d5dd4(0x1ea))/0x2*(-parseInt(_0x2d5dd4(0x1c4))/0x3)+-parseInt(_0x2d5dd4(0x17d))/0x4+-parseInt(_0x2d5dd4(0x24b))/0x5+parseInt(_0x2d5dd4(0x1db))/0x6*(-parseInt(_0x2d5dd4(0x33a))/0x7)+-parseInt(_0x2d5dd4(0x382))/0x8*(-parseInt(_0x2d5dd4(0x387))/0x9)+parseInt(_0x2d5dd4(0x1ef))/0xa*(parseInt(_0x2d5dd4(0x276))/0xb);if(_0x437871===_0x24e2fb)break;else _0x400e39['push'](_0x400e39['shift']());}catch(_0x3f8caa){_0x400e39['push'](_0x400e39['shift']());}}}(_0x5604,0x572c1),Object['defineProperty'](exports,Symbol[_0x1e1130(0x34f)],{'value':_0x1e1130(0x1d0)}));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/rpc'),u=require('@univerjs/sheets'),d=require('@univerjs/engine-render'),f=require('@univerjs/network'),p=require('@univerjs/docs-ui'),m=require('@univerjs/drawing'),h=require('@univerjs-pro/collaboration'),g=require('@univerjs/docs'),_=require('@univerjs/engine-formula'),v=require('@univerjs/sheets-ui'),y=require('@univerjs/protocol');function b(_0x15262c){const _0xf9736e=_0x1e1130;switch(_0x15262c){case e['CollaborationStatus'][_0xf9736e(0x1f2)]:return{'icon':(0x0,c[_0xf9736e(0x2ee)])(o[_0xf9736e(0x370)],{}),'colorClass':_0xf9736e(0x379),'i18nKey':_0xf9736e(0x1f0),'tooltipKey':_0xf9736e(0x2d2),'clickable':!0x0,'indicator':_0xf9736e(0x16c)};case e[_0xf9736e(0x1f7)][_0xf9736e(0x1ca)]:return{'icon':(0x0,c[_0xf9736e(0x2ee)])(o[_0xf9736e(0x370)],{}),'colorClass':_0xf9736e(0x213),'i18nKey':_0xf9736e(0x24d),'clickable':!0x1,'indicator':_0xf9736e(0x16c)};case e[_0xf9736e(0x1f7)][_0xf9736e(0x25e)]:return{'icon':(0x0,c[_0xf9736e(0x2ee)])(o[_0xf9736e(0x252)],{}),'colorClass':_0xf9736e(0x147),'i18nKey':_0xf9736e(0x38f),'clickable':!0x1,'indicator':'spin'};case e[_0xf9736e(0x1f7)][_0xf9736e(0x2e7)]:return{'icon':(0x0,c[_0xf9736e(0x2ee)])(o[_0xf9736e(0x3ad)],{}),'colorClass':_0xf9736e(0x299),'i18nKey':_0xf9736e(0x223),'clickable':!0x1,'indicator':_0xf9736e(0x16c)};case e[_0xf9736e(0x1f7)]['AWAITING']:case e[_0xf9736e(0x1f7)][_0xf9736e(0x367)]:return{'icon':(0x0,c[_0xf9736e(0x2ee)])(o[_0xf9736e(0x252)],{}),'colorClass':_0xf9736e(0x147),'i18nKey':_0xf9736e(0x2e6),'clickable':!0x1,'indicator':_0xf9736e(0x2ce)};case e[_0xf9736e(0x1f7)][_0xf9736e(0x29a)]:return{'icon':(0x0,c[_0xf9736e(0x2ee)])(o[_0xf9736e(0x252)],{}),'colorClass':_0xf9736e(0x147),'i18nKey':_0xf9736e(0x2e6),'clickable':!0x1,'indicator':_0xf9736e(0x2ce)};case e[_0xf9736e(0x1f7)][_0xf9736e(0x388)]:return{'icon':(0x0,c[_0xf9736e(0x2ee)])(o[_0xf9736e(0x3ad)],{}),'colorClass':'univer-text-green-500','i18nKey':_0xf9736e(0x2d6),'clickable':!0x1,'indicator':_0xf9736e(0x16c)};}}function x(_0x48deba){const _0xf2bc9=_0x1e1130;let {status$:_0x63faff}=_0x48deba,_0x853bab=(0x0,n[_0xf2bc9(0x127)])(_0x63faff,e[_0xf2bc9(0x1f7)]['NOT_COLLAB']),_0x80f354=(0x0,n['useDependency'])(t[_0xf2bc9(0x22a)]),_0x398c32=(0x0,n[_0xf2bc9(0x2fb)])(e[_0xf2bc9(0x2cc)]),_0x37df8f=(0x0,s['useMemo'])(()=>b(_0x853bab),[_0x853bab]),_0x57fa12=_0x853bab!==e['CollaborationStatus'][_0xf2bc9(0x1f2)],_0x1f1211=_0x80f354['t'](_0x37df8f[_0xf2bc9(0x1b5)]),_0x225f30=_0x37df8f['tooltipKey']?_0x80f354['t'](_0x37df8f['tooltipKey']):_0x1f1211,_0x2bca1c=(0x0,s[_0xf2bc9(0x2da)])(()=>{const _0x25a419=_0xf2bc9;_0x57fa12||_0x398c32[_0x25a419(0x291)]();},[_0x57fa12,_0x398c32]),_0xb751c3=(0x0,s[_0xf2bc9(0x2da)])(_0x434920=>{const _0x14b143=_0xf2bc9;!_0x57fa12&&(_0x434920[_0x14b143(0x17c)]===_0x14b143(0x2c1)||_0x434920[_0x14b143(0x17c)]==='\x20')&&(_0x434920['preventDefault'](),_0x398c32[_0x14b143(0x291)]());},[_0x57fa12,_0x398c32]),_0x3cb8f2=(0x0,c[_0xf2bc9(0x2ee)])(_0xf2bc9(0x377),{'className':(0x0,a[_0xf2bc9(0x28c)])(_0xf2bc9(0x36f),_0xf2bc9(0x2af),_0x37df8f[_0xf2bc9(0x286)],{'univer-animate-spin':_0x37df8f[_0xf2bc9(0x1b2)]===_0xf2bc9(0x2ce),'univer-animate-pulse':_0x37df8f[_0xf2bc9(0x1b2)]==='pulse'}),'aria-hidden':_0xf2bc9(0x319),'children':_0x37df8f[_0xf2bc9(0x318)]}),_0x3def3b=(0x0,c[_0xf2bc9(0x2ee)])('span',{'className':(0x0,a[_0xf2bc9(0x28c)])(_0xf2bc9(0x36f),_0xf2bc9(0x128),_0xf2bc9(0x3b1),_0xf2bc9(0x2d9),_0xf2bc9(0x332),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x37df8f[_0xf2bc9(0x192)],'univer-cursor-default':!_0x37df8f['clickable']}),'children':_0x3cb8f2});return _0x37df8f[_0xf2bc9(0x192)]?(0x0,c['jsx'])(a[_0xf2bc9(0x330)],{'title':_0x225f30,'placement':'bottom','children':(0x0,c['jsx'])('button',{'type':_0xf2bc9(0x33f),'onClick':_0x2bca1c,'onKeyDown':_0xb751c3,'className':(0x0,a['clsx'])(_0xf2bc9(0x37b),_0xf2bc9(0x1a4),_0xf2bc9(0x163),_0xf2bc9(0x259)),'aria-label':_0x1f1211+_0xf2bc9(0x161)+_0x225f30,'role':_0xf2bc9(0x1c0),'aria-live':_0xf2bc9(0x2d7),'aria-atomic':_0xf2bc9(0x319),'children':_0x3def3b})}):(0x0,c[_0xf2bc9(0x2ee)])(a[_0xf2bc9(0x330)],{'title':_0x225f30,'placement':_0xf2bc9(0x246),'children':(0x0,c['jsx'])(_0xf2bc9(0x235),{'className':(0x0,a[_0xf2bc9(0x28c)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0xf2bc9(0x1a4),_0xf2bc9(0x163)),'aria-label':_0x1f1211,'role':_0xf2bc9(0x1c0),'aria-live':_0xf2bc9(0x2d7),'aria-atomic':_0xf2bc9(0x319),'children':_0x3def3b})});}function S(_0xe13e49){'@babel/helpers - typeof';const _0x55fe47=_0x1e1130;return S=typeof Symbol==_0x55fe47(0x27b)&&typeof Symbol[_0x55fe47(0x1a3)]==_0x55fe47(0x31c)?function(_0x15026c){return typeof _0x15026c;}:function(_0x5486b6){const _0x453b29=_0x55fe47;return _0x5486b6&&typeof Symbol=='function'&&_0x5486b6['constructor']===Symbol&&_0x5486b6!==Symbol[_0x453b29(0x176)]?_0x453b29(0x31c):typeof _0x5486b6;},S(_0xe13e49);}function ee(_0x39b66b,_0x465c2d){const _0x28d987=_0x1e1130;if(S(_0x39b66b)!=_0x28d987(0x122)||!_0x39b66b)return _0x39b66b;var _0xd48ca8=_0x39b66b[Symbol[_0x28d987(0x371)]];if(_0xd48ca8!==void 0x0){var _0x1c8b44=_0xd48ca8[_0x28d987(0x375)](_0x39b66b,_0x465c2d||'default');if(S(_0x1c8b44)!=_0x28d987(0x122))return _0x1c8b44;throw TypeError(_0x28d987(0x30c));}return(_0x465c2d===_0x28d987(0x1bf)?String:Number)(_0x39b66b);}function te(_0x1e91c4){const _0x23486b=_0x1e1130;var _0x55dff3=ee(_0x1e91c4,_0x23486b(0x1bf));return S(_0x55dff3)==_0x23486b(0x31c)?_0x55dff3:_0x55dff3+'';}function C(_0x15a7ea,_0x3d14ce,_0x456509){const _0x389977=_0x1e1130;return(_0x3d14ce=te(_0x3d14ce))in _0x15a7ea?Object[_0x389977(0x14d)](_0x15a7ea,_0x3d14ce,{'value':_0x456509,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15a7ea[_0x3d14ce]=_0x456509,_0x15a7ea;}function w(_0x133e96,_0x1b59bc){return function(_0x68ece,_0x41e9db){_0x1b59bc(_0x68ece,_0x41e9db,_0x133e96);};}function T(_0x44c84d,_0x3f12df,_0x160a90,_0x3402aa){const _0x5eef4f=_0x1e1130;var _0x3e9500=arguments[_0x5eef4f(0x260)],_0x382216=_0x3e9500<0x3?_0x3f12df:_0x3402aa===null?_0x3402aa=Object[_0x5eef4f(0x20a)](_0x3f12df,_0x160a90):_0x3402aa,_0x452941;if(typeof Reflect==_0x5eef4f(0x122)&&typeof Reflect[_0x5eef4f(0x284)]==_0x5eef4f(0x27b))_0x382216=Reflect[_0x5eef4f(0x284)](_0x44c84d,_0x3f12df,_0x160a90,_0x3402aa);else{for(var _0x5eda34=_0x44c84d[_0x5eef4f(0x260)]-0x1;_0x5eda34>=0x0;_0x5eda34--)(_0x452941=_0x44c84d[_0x5eda34])&&(_0x382216=(_0x3e9500<0x3?_0x452941(_0x382216):_0x3e9500>0x3?_0x452941(_0x3f12df,_0x160a90,_0x382216):_0x452941(_0x3f12df,_0x160a90))||_0x382216);}return _0x3e9500>0x3&&_0x382216&&Object[_0x5eef4f(0x14d)](_0x3f12df,_0x160a90,_0x382216),_0x382216;}let E=class extends t['Disposable']{constructor(_0x58e2a6,_0x4072dd,_0x52047f,_0x33c750){const _0xc851d4=_0x1e1130;super(),this[_0xc851d4(0x29d)]=_0x58e2a6,this['_injector']=_0x4072dd,this[_0xc851d4(0x20c)]=_0x52047f,this[_0xc851d4(0x243)]=_0x33c750,C(this,'_status$',new r[(_0xc851d4(0x23f))](e[_0xc851d4(0x1f7)]['NOT_COLLAB'])),this['_initStatusComponent'](),this[_0xc851d4(0x31b)]();}['_initStatusListener'](){const _0x454cd1=_0x1e1130;this[_0x454cd1(0x157)]((0x0,r['merge'])(this[_0x454cd1(0x29d)][_0x454cd1(0x1ad)],this['_univerInstanceService'][_0x454cd1(0x3a2)](t[_0x454cd1(0x3bf)][_0x454cd1(0x2ae)]),this[_0x454cd1(0x29d)][_0x454cd1(0x3a2)](t[_0x454cd1(0x3bf)][_0x454cd1(0x301)]))[_0x454cd1(0x251)]((0x0,i[_0x454cd1(0x35e)])(()=>ne(this[_0x454cd1(0x29d)])),(0x0,i[_0x454cd1(0x2fc)])(),(0x0,r[_0x454cd1(0x280)])(_0x147c51=>_0x147c51?this['_collaborationController'][_0x454cd1(0x241)](_0x147c51):(0x0,r['of'])(null)),(0x0,r[_0x454cd1(0x280)])(_0x3102af=>_0x3102af?_0x3102af['status$']:(0x0,r['of'])(e[_0x454cd1(0x1f7)][_0x454cd1(0x2e7)])))[_0x454cd1(0x237)](_0x14de02=>{const _0x3f6ce7=_0x454cd1;this[_0x3f6ce7(0x38c)][_0x3f6ce7(0x126)](_0x14de02);}));}[_0x1e1130(0x13f)](){const _0xc69def=_0x1e1130;this['disposeWithMe'](this[_0xc69def(0x243)]['registerComponent'](n[_0xc69def(0x3a7)][_0xc69def(0x1cb)],()=>(0x0,n[_0xc69def(0x173)])(re({'status$':this[_0xc69def(0x38c)][_0xc69def(0x2ed)]()}),this[_0xc69def(0x153)])));}};E=T([w(0x0,t[_0x1e1130(0x1b3)]),w(0x1,(0x0,t[_0x1e1130(0x17b)])(t[_0x1e1130(0x134)])),w(0x2,(0x0,t[_0x1e1130(0x17b)])(e[_0x1e1130(0x196)])),w(0x3,n[_0x1e1130(0x2cb)])],E);function ne(_0x35a5d1){const _0x2dc30f=_0x1e1130;let _0x26d4bb=_0x35a5d1['getFocusedUnit'](),_0x335c09=_0x26d4bb==null?void 0x0:_0x26d4bb[_0x2dc30f(0x124)]();if(_0x335c09&&!(0x0,t['isInternalEditorID'])(_0x335c09))return _0x335c09;let _0x203ebc=_0x35a5d1['getCurrentUnitOfType'](t[_0x2dc30f(0x3bf)][_0x2dc30f(0x2ae)]),_0x55cac5=_0x203ebc==null?void 0x0:_0x203ebc[_0x2dc30f(0x124)]();if(_0x55cac5&&!(0x0,t[_0x2dc30f(0x1b8)])(_0x55cac5))return _0x55cac5;let _0x132860=_0x35a5d1[_0x2dc30f(0x2f2)](t[_0x2dc30f(0x3bf)][_0x2dc30f(0x301)]);if(_0x132860)return _0x132860[_0x2dc30f(0x124)]();let _0x621a78=_0x35a5d1[_0x2dc30f(0x307)](t[_0x2dc30f(0x3bf)][_0x2dc30f(0x2ae)])[_0x2dc30f(0x225)](_0x54113b=>!(0x0,t['isInternalEditorID'])(_0x54113b[_0x2dc30f(0x124)]()));return _0x621a78?_0x621a78[_0x2dc30f(0x124)]():null;}function re(_0x414727){let {status$:_0x4e8830}=_0x414727;return function(){return(0x0,c['jsx'])(x,{'status$':_0x4e8830});};}const D=(0x0,t['createIdentifier'])(_0x1e1130(0x2ab));let O=class extends t[_0x1e1130(0x346)]{constructor(_0x1f78f9,_0x102aa5,_0xe9815c,_0x259a95,_0x37af79){const _0x13c865=_0x1e1130;super(),this[_0x13c865(0x17e)]=_0x1f78f9,this[_0x13c865(0x194)]=_0x102aa5,this['_commandService']=_0xe9815c,this[_0x13c865(0x160)]=_0x259a95,_0x37af79?_0x37af79==null||_0x37af79['whenReady']()[_0x13c865(0x38d)](()=>this[_0x13c865(0x386)]()):(this[_0x13c865(0x194)][_0x13c865(0x1cf)](_0x13c865(0x189),_0x13c865(0x32a)),this[_0x13c865(0x386)]());}async[_0x1e1130(0x386)](){const _0x159956=_0x1e1130;let _0x52bc11=this[_0x159956(0x17e)][_0x159956(0x359)](_0x159956(0x182)),_0x199649=this[_0x159956(0x17e)][_0x159956(0x359)](_0x159956(0x21d)),_0x20b983=this[_0x159956(0x17e)]['getParam'](_0x159956(0x393));if(!_0x52bc11||!_0x199649){this[_0x159956(0x194)][_0x159956(0x1cf)](_0x159956(0x189),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x2bc286=await this[_0x159956(0x160)][_0x159956(0x1bd)](_0x52bc11,Number(_0x199649),_0x20b983);_0x2bc286&&_0x2bc286 instanceof t['Workbook']&&this[_0x159956(0x12d)](_0x2bc286);}async['_setupSubUnitSync'](_0x6895ca){const _0x3a0352=_0x1e1130;await this[_0x3a0352(0x30a)](_0x6895ca),_0x6895ca['activeSheet$'][_0x3a0352(0x251)]((0x0,r[_0x3a0352(0x1ae)])(this[_0x3a0352(0x21a)]))[_0x3a0352(0x237)](_0x509115=>{const _0x3c87bc=_0x3a0352;_0x509115&&this[_0x3c87bc(0x33d)](_0x509115);}),this[_0x3a0352(0x17e)]['urlChange$']['pipe']((0x0,r[_0x3a0352(0x1ae)])(this[_0x3a0352(0x21a)]))[_0x3a0352(0x237)](()=>this[_0x3a0352(0x30a)](_0x6895ca));}[_0x1e1130(0x33d)](_0x2fd7e1,_0x21bcc9=!0x1){const _0x134fe5=_0x1e1130;let _0x3bc0e9=this[_0x134fe5(0x17e)][_0x134fe5(0x359)](_0x134fe5(0x393));_0x2fd7e1[_0x134fe5(0x256)]()!==_0x3bc0e9&&this[_0x134fe5(0x17e)][_0x134fe5(0x1a2)](_0x134fe5(0x393),_0x2fd7e1[_0x134fe5(0x256)](),_0x21bcc9);}async[_0x1e1130(0x30a)](_0x176eba){const _0x1670a8=_0x1e1130;var _0x4fa2bc;let _0x285695=this[_0x1670a8(0x17e)][_0x1670a8(0x359)]('subunit');if(!_0x285695||!_0x176eba[_0x1670a8(0x207)](_0x285695)){let _0x6fa177=_0x176eba[_0x1670a8(0x3be)]()[0x0],_0x28077a=_0x176eba[_0x1670a8(0x207)](_0x6fa177);if(!_0x28077a)return;this[_0x1670a8(0x33d)](_0x28077a,!0x0),await this[_0x1670a8(0x244)][_0x1670a8(0x188)](u[_0x1670a8(0x14f)]['id'],{'unitId':_0x176eba[_0x1670a8(0x124)](),'subUnitId':_0x6fa177});return;}((_0x4fa2bc=_0x176eba['getActiveSheet']())==null?void 0x0:_0x4fa2bc[_0x1670a8(0x256)]())!==_0x285695&&await this[_0x1670a8(0x244)][_0x1670a8(0x188)](u['SetWorksheetActivateCommand']['id'],{'unitId':_0x176eba[_0x1670a8(0x124)](),'subUnitId':_0x285695});}};O=T([w(0x0,D),w(0x1,t['ILogService']),w(0x2,t['ICommandService']),w(0x3,(0x0,t['Inject'])(e[_0x1e1130(0x22d)])),w(0x4,(0x0,t[_0x1e1130(0x1fe)])(l[_0x1e1130(0x2c2)]))],O);var ie=_0x1e1130(0x308),ae='0.25.2';let k=class extends t['RxDisposable']{constructor(_0x59d753,_0x2b9efe){const _0x766993=_0x1e1130;super(),this[_0x766993(0x16d)]=_0x59d753,this['_imageIoService']=_0x2b9efe,this[_0x766993(0x386)]();}['_init'](){const _0x580b9e=_0x1e1130;let _0x653bae=this;this['disposeWithMe'](this[_0x580b9e(0x16d)][_0x580b9e(0x274)]({'onBeforePasteImage':async _0x427382=>{const _0x4b4db3=_0x580b9e;let _0x4e891d=await _0x653bae[_0x4b4db3(0x348)]['saveImage'](_0x427382);return _0x4e891d?{'source':_0x4e891d[_0x4b4db3(0x277)],'imageSourceType':_0x4e891d[_0x4b4db3(0x28f)]}:null;}}));}};k=T([w(0x0,p['IDocClipboardService']),w(0x1,m['IImageIoService'])],k);const A=[_0x1e1130(0x27a),'jiqing.500',_0x1e1130(0x2eb),_0x1e1130(0x131),_0x1e1130(0x257),'yellow.400'];var j=class extends t[_0x1e1130(0x1da)]{constructor(..._0x1232e4){const _0x11a268=_0x1e1130;super(..._0x1232e4),C(this,_0x11a268(0x295),new Map()),C(this,'_colorIndex',0x0);}[_0x1e1130(0x1fb)](_0x1275a4){const _0x1f05c4=_0x1e1130;if(this[_0x1f05c4(0x295)][_0x1f05c4(0x273)](_0x1275a4))return this['_assignedColors'][_0x1f05c4(0x15f)](_0x1275a4);let _0x2c3e97=A[this[_0x1f05c4(0x158)]];return this[_0x1f05c4(0x158)]=(this[_0x1f05c4(0x158)]+0x1)%A['length'],this[_0x1f05c4(0x295)][_0x1f05c4(0x32c)](_0x1275a4,_0x2c3e97),_0x2c3e97;}};function M(_0x384ec8){const _0x329497=_0x1e1130;let _0x1135e8='';for(let _0x10721c of _0x384ec8){let {startOffset:_0x495b41,endOffset:_0x5d5189,isActive:_0x432a6b,rangeType:_0x45120a,segmentId:_0x5888e7,segmentPage:_0x33e204}=_0x10721c;_0x1135e8[_0x329497(0x260)]&&(_0x1135e8+=','),_0x1135e8+=_0x495b41+':'+_0x5d5189+':'+(_0x432a6b?'1':'0')+':'+_0x45120a+':'+_0x5888e7+':'+_0x33e204;}return _0x1135e8;}function oe(_0x56daa5){const _0x38e000=_0x1e1130;let _0x4d0ac9=_0x56daa5['split'](','),_0x4888fd=[];for(let _0x5f50af of _0x4d0ac9){let [_0x14c901,_0x459364,_0x29782d,_0x4c77a9,_0x1f8d38,_0x39a35e]=_0x5f50af['split'](':');_0x4888fd[_0x38e000(0x2e9)]({'startOffset':Number(_0x14c901),'endOffset':Number(_0x459364),'collapsed':_0x14c901===_0x459364,'isActive':_0x29782d==='1','rangeType':_0x4c77a9===t[_0x38e000(0x20d)][_0x38e000(0x18d)]?t[_0x38e000(0x20d)][_0x38e000(0x18d)]:t['DOC_RANGE_TYPE'][_0x38e000(0x2d1)],'segmentId':typeof _0x1f8d38=='string'?String(_0x1f8d38):'','segmentPage':Number(_0x39a35e==null?-0x1:_0x39a35e)});}return _0x4888fd['some'](_0x22cd14=>_0x22cd14[_0x38e000(0x372)])||(_0x4888fd[0x0][_0x38e000(0x372)]=!0x0),_0x4888fd;}var N=class extends t[_0x1e1130(0x346)]{constructor(..._0x47ff32){const _0xbf7823=_0x1e1130;super(..._0x47ff32),C(this,_0xbf7823(0x215),new r['BehaviorSubject'](null)),C(this,_0xbf7823(0x3a4),this['_collabCursorState$'][_0xbf7823(0x2ed)]());}[_0x1e1130(0x143)](_0x84e723){const _0x1cdbdb=_0x1e1130;let {unitID:_0xd33ade,memberID:_0x297688,textRanges:_0x2e6c43}=_0x84e723,_0x1939f2=M(_0x2e6c43);if(_0x1939f2==='')return;let _0x2f06e8={'unitID':_0xd33ade,'memberID':_0x297688,'selection':_0x1939f2};this[_0x1cdbdb(0x215)][_0x1cdbdb(0x126)](_0x2f06e8);}};let P=class extends t['RxDisposable']{get[_0x1e1130(0x1c2)](){const _0x561be0=_0x1e1130;return this['_cursorInfo$'][_0x561be0(0x398)]();}get['roomMembers'](){const _0x351759=_0x1e1130;return this[_0x351759(0x2f6)][_0x351759(0x398)]();}constructor(_0xf58d94,_0x1ac3a5,_0x40ae83,_0x29380f,_0x65671e,_0x59c670,_0x18b553,_0x3c75e6,_0x1f71c9){const _0x484a64=_0x1e1130;super(),this[_0x484a64(0x2bb)]=_0xf58d94,this[_0x484a64(0x272)]=_0x1ac3a5,this[_0x484a64(0x153)]=_0x40ae83,this[_0x484a64(0x35c)]=_0x29380f,this[_0x484a64(0x3ba)]=_0x65671e,this[_0x484a64(0x156)]=_0x59c670,this[_0x484a64(0x321)]=_0x18b553,this[_0x484a64(0x29d)]=_0x3c75e6,this[_0x484a64(0x244)]=_0x1f71c9,C(this,_0x484a64(0x2b4),!0x1),C(this,_0x484a64(0x386),!0x1),C(this,_0x484a64(0x293),new r[(_0x484a64(0x23f))](new Map())),C(this,_0x484a64(0x19b),this[_0x484a64(0x293)]['asObservable']()),C(this,_0x484a64(0x2f6),new r[(_0x484a64(0x23f))]([])),C(this,_0x484a64(0x171),this['_roomMembers$'][_0x484a64(0x251)]((0x0,r[_0x484a64(0x1ed)])(0x12c))),C(this,_0x484a64(0x2b6),(0x0,t[_0x484a64(0x397)])(_0x45089a=>{const _0x3d6d31=_0x484a64;let _0x56a7fd={'eventID':h[_0x3d6d31(0x130)][_0x3d6d31(0x30d)],'data':{'unitID':this[_0x3d6d31(0x2bb)],'memberID':this['_session'][_0x3d6d31(0x21b)](),'selection':M(_0x45089a)}};this[_0x3d6d31(0x272)][_0x3d6d31(0x2d5)](_0x56a7fd,this[_0x3d6d31(0x2bb)]);},0x64));}['dispose'](){const _0x1d83dd=_0x1e1130;super['dispose'](),this['_cursorInfo$'][_0x1d83dd(0x126)](new Map()),this[_0x1d83dd(0x293)][_0x1d83dd(0x22b)](),this[_0x1d83dd(0x2f6)][_0x1d83dd(0x126)]([]),this[_0x1d83dd(0x2f6)][_0x1d83dd(0x22b)]();}['init'](){const _0x5eb940=_0x1e1130;this[_0x5eb940(0x386)]||(this['_init']=!0x0,this['_session'][_0x5eb940(0x1b0)][_0x5eb940(0x251)]((0x0,r[_0x5eb940(0x1ae)])(this['dispose$']))[_0x5eb940(0x237)](_0x241a1a=>{const _0x503d95=_0x5eb940;_0x241a1a===e[_0x503d95(0x11f)][_0x503d95(0x3a0)]?this['_toggleOnline']():this[_0x503d95(0x226)]();}),this[_0x5eb940(0x272)]['event$'][_0x5eb940(0x251)]((0x0,r[_0x5eb940(0x1ae)])(this[_0x5eb940(0x21a)]))[_0x5eb940(0x237)](_0x58a22d=>{const _0x5b786a=_0x5eb940;let _0x5bde4e=_0x58a22d[_0x5b786a(0x200)];_0x5bde4e===h[_0x5b786a(0x130)][_0x5b786a(0x30d)]&&this['_onCursorUpdate'](_0x58a22d),_0x5bde4e===h[_0x5b786a(0x130)][_0x5b786a(0x351)]&&this[_0x5b786a(0x245)](_0x58a22d);}),this['disposeWithMe'](this[_0x5eb940(0x244)][_0x5eb940(0x297)](_0x40ee60=>{const _0x222624=_0x5eb940;let _0x557f6f=_0x40ee60[_0x222624(0x26a)];_0x557f6f!=null&&this[_0x222624(0x2b4)]&&_0x40ee60['id']===g[_0x222624(0x3c0)]['id']&&_0x557f6f[_0x222624(0x1ec)]===this[_0x222624(0x2bb)]&&_0x557f6f[_0x222624(0x2bf)]===!0x1&&_0x557f6f[_0x222624(0x28d)]['length']>0x0&&this['_updateLocalCursor'](_0x557f6f[_0x222624(0x28d)]);})),this[_0x5eb940(0x156)][_0x5eb940(0x3a4)][_0x5eb940(0x251)]((0x0,r[_0x5eb940(0x1ae)])(this[_0x5eb940(0x21a)]))[_0x5eb940(0x237)](_0x46c294=>{const _0x3c062b=_0x5eb940;if((_0x46c294==null?void 0x0:_0x46c294['unitID'])!==this[_0x3c062b(0x2bb)])return;let _0x36673e={'eventID':h[_0x3c062b(0x130)][_0x3c062b(0x30d)],'data':_0x46c294};this[_0x3c062b(0x12f)](_0x36673e);}),this[_0x5eb940(0x157)](this[_0x5eb940(0x244)][_0x5eb940(0x297)](_0x5be94b=>{const _0x27ac19=_0x5eb940;if(_0x5be94b[_0x27ac19(0x26a)]==null)return;let _0x20c45a=_0x5be94b['params'];if(_0x5be94b['id']!==g[_0x27ac19(0x27c)]['id']||_0x20c45a[_0x27ac19(0x1ec)]!==this[_0x27ac19(0x2bb)])return;let _0x13a5e7={'id':_0x27ac19(0x2f8),'params':_0x20c45a},_0x53597e=this[_0x27ac19(0x1c2)];for(let [_0xd31a41,_0x574bec]of _0x53597e){let _0xaf29c4={'id':_0x27ac19(0x2f8),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x574bec[_0x27ac19(0x28d)]}},_0x3266eb=this[_0x27ac19(0x321)]['transformMutation'](_0x13a5e7,_0xaf29c4,!0x1);if((0x0,h['isTransformMutationFailure'])(_0x3266eb))throw _0x3266eb['error'];_0x53597e[_0x27ac19(0x32c)](_0xd31a41,{..._0x574bec,'ranges':_0x3266eb[_0x27ac19(0x30e)][_0x27ac19(0x26a)][_0x27ac19(0x18f)]});}queueMicrotask(()=>{const _0x3bff1c=_0x27ac19;this[_0x3bff1c(0x293)][_0x3bff1c(0x126)](_0x53597e);});})));}[_0x1e1130(0x12f)](_0x57c6e1){const _0x299229=_0x1e1130;var _0x1d1c4a,_0x2e5cfc;let {memberID:_0x3e14b8,selection:_0x25d07f}=_0x57c6e1[_0x299229(0x142)],_0x564c0d=oe(_0x25d07f),_0x39e865=(_0x1d1c4a=(_0x2e5cfc=this[_0x299229(0x3ba)]['getMember'](this[_0x299229(0x2bb)],_0x3e14b8))==null?void 0x0:_0x2e5cfc[_0x299229(0x292)])==null?'Unknown\x20user':_0x1d1c4a,_0x1cd3c4={'color':this[_0x299229(0x35c)][_0x299229(0x1fb)](_0x3e14b8),'name':_0x39e865,'ranges':_0x564c0d},_0x5964ec=this['cursorInfo'];_0x5964ec[_0x299229(0x32c)](_0x3e14b8,_0x1cd3c4),this[_0x299229(0x293)][_0x299229(0x126)](_0x5964ec);}[_0x1e1130(0x245)](_0xdc2138){const _0x4a6d49=_0x1e1130;let {memberID:_0x10135e}=_0xdc2138['data'],_0x12eb9f=this[_0x4a6d49(0x1c2)];_0x12eb9f[_0x4a6d49(0x1d3)](_0x10135e),this['_cursorInfo$'][_0x4a6d49(0x126)](_0x12eb9f);}[_0x1e1130(0x37d)](){const _0x322279=_0x1e1130;var _0x168185;if(this[_0x322279(0x2b4)]=!0x0,((_0x168185=this[_0x322279(0x29d)]['getFocusedUnit']())==null?void 0x0:_0x168185[_0x322279(0x124)]())!==this['unitID'])return;let _0x4e2a09=this[_0x322279(0x153)][_0x322279(0x15f)](g['DocSelectionManagerService'])[_0x322279(0x2bc)]();Array[_0x322279(0x1b9)](_0x4e2a09)&&_0x4e2a09[_0x322279(0x260)]>0x0&&this[_0x322279(0x2b6)](_0x4e2a09);}[_0x1e1130(0x226)](){const _0x479489=_0x1e1130;this[_0x479489(0x2b4)]=!0x1;}};P=T([w(0x2,(0x0,t[_0x1e1130(0x17b)])(t[_0x1e1130(0x134)])),w(0x3,(0x0,t[_0x1e1130(0x17b)])(j)),w(0x4,(0x0,t[_0x1e1130(0x17b)])(e[_0x1e1130(0x341)])),w(0x5,(0x0,t[_0x1e1130(0x17b)])(N)),w(0x6,h[_0x1e1130(0x219)]),w(0x7,t[_0x1e1130(0x1b3)]),w(0x8,t[_0x1e1130(0x167)])],P);const se=()=>{let _0x32c070=[],_0x31fe22=!0x1;return _0x3274d4=>{const _0x4e3122=_0x77df;_0x32c070[_0x4e3122(0x2e9)](_0x3274d4),_0x31fe22||(_0x31fe22=!0x0,setTimeout(()=>{const _0x5b0ef8=_0x4e3122;_0x32c070[_0x5b0ef8(0x14e)](_0xa7f668=>_0xa7f668()),_0x32c070=[],_0x31fe22=!0x1;}));};};let F=class extends t[_0x1e1130(0x346)]{get[_0x1e1130(0x1c2)](){return this['_cursorInfo$']['getValue']();}get[_0x1e1130(0x1c6)](){const _0x3fccbc=_0x1e1130;return this[_0x3fccbc(0x2f6)][_0x3fccbc(0x398)]();}constructor(_0x8ef94,_0x26e040,_0x2ff22d,_0x3a3b6e,_0x30933f,_0x255ea7,_0x62269f,_0x147899){const _0x2d6014=_0x1e1130;super(),this[_0x2d6014(0x2bb)]=_0x8ef94,this[_0x2d6014(0x272)]=_0x26e040,this[_0x2d6014(0x153)]=_0x2ff22d,this[_0x2d6014(0x35c)]=_0x3a3b6e,this['_memberService']=_0x30933f,this[_0x2d6014(0x29d)]=_0x255ea7,this['_commandService']=_0x62269f,this[_0x2d6014(0x1bb)]=_0x147899,C(this,_0x2d6014(0x2b4),!0x1),C(this,_0x2d6014(0x386),!0x1),C(this,_0x2d6014(0x293),new r[(_0x2d6014(0x23f))](new Map())),C(this,_0x2d6014(0x19b),this[_0x2d6014(0x293)][_0x2d6014(0x2ed)]()),C(this,'_roomMembers$',new r[(_0x2d6014(0x23f))]([])),C(this,'roomMembers$',this[_0x2d6014(0x2f6)][_0x2d6014(0x251)]((0x0,r[_0x2d6014(0x1ed)])(0x12c))),C(this,_0x2d6014(0x2b6),(0x0,t[_0x2d6014(0x397)])((_0x1a87d9,_0x1d01be)=>{const _0x3a9d7d=_0x2d6014;let _0x179c28={'eventID':h['CollaborationEvent'][_0x3a9d7d(0x30d)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':(0x0,_[_0x3a9d7d(0x1eb)])(_0x1a87d9,_0x1d01be[_0x3a9d7d(0x258)])}};this[_0x3a9d7d(0x272)]['send'](_0x179c28,this[_0x3a9d7d(0x2bb)]);},0x64));}[_0x1e1130(0x211)](){const _0x59b8e6=_0x1e1130;super['dispose'](),this[_0x59b8e6(0x293)][_0x59b8e6(0x126)](new Map()),this[_0x59b8e6(0x293)][_0x59b8e6(0x22b)](),this[_0x59b8e6(0x2f6)][_0x59b8e6(0x126)]([]),this[_0x59b8e6(0x2f6)]['complete']();}[_0x1e1130(0x186)](){const _0xe94bff=_0x1e1130;this[_0xe94bff(0x386)]||(this['_init']=!0x0,this['_session'][_0xe94bff(0x1b0)][_0xe94bff(0x251)]((0x0,r[_0xe94bff(0x1ae)])(this[_0xe94bff(0x21a)]))[_0xe94bff(0x237)](_0x54ef08=>{const _0x25d396=_0xe94bff;_0x54ef08===e[_0x25d396(0x11f)][_0x25d396(0x3a0)]?this[_0x25d396(0x37d)]():this[_0x25d396(0x226)]();}),this[_0xe94bff(0x272)][_0xe94bff(0x266)][_0xe94bff(0x251)]((0x0,r[_0xe94bff(0x1ae)])(this[_0xe94bff(0x21a)]))['subscribe'](_0x564370=>{const _0x2f6dad=_0xe94bff;let _0x24ee4e=_0x564370[_0x2f6dad(0x200)];_0x24ee4e===h[_0x2f6dad(0x130)]['UPDATE_CURSOR']&&this[_0x2f6dad(0x12f)](_0x564370),_0x24ee4e===h[_0x2f6dad(0x130)]['USERS_LEAVE']&&this[_0x2f6dad(0x245)](_0x564370);}),this['_onRefRangeChange'](),this[_0xe94bff(0x157)](this[_0xe94bff(0x244)][_0xe94bff(0x297)](_0x2952c7=>{const _0x527b65=_0xe94bff;if(this['_online']&&_0x2952c7['id']===u[_0x527b65(0x384)]['id']&&_0x2952c7[_0x527b65(0x26a)]['unitId']===this[_0x527b65(0x2bb)]){let _0x48066a=_0x2952c7[_0x527b65(0x26a)];this[_0x527b65(0x2b6)](_0x48066a['subUnitId'],_0x48066a[_0x527b65(0x352)][0x0]);}})));}[_0x1e1130(0x12f)](_0x1c13ee){const _0x3ff6b5=_0x1e1130;var _0x1b9af7,_0x194371;let {memberID:_0x25a11f,selection:_0x123c61}=_0x1c13ee[_0x3ff6b5(0x142)],{sheetName:_0x55f146,range:_0x3a657f}=(0x0,_[_0x3ff6b5(0x26b)])(_0x123c61),_0x2c5a49={'name':(_0x1b9af7=(_0x194371=this['_memberService'][_0x3ff6b5(0x175)](this['unitID'],_0x25a11f))==null?void 0x0:_0x194371[_0x3ff6b5(0x292)])==null?_0x3ff6b5(0x201):_0x1b9af7,'range':this[_0x3ff6b5(0x298)](_0x55f146,_0x3a657f),'sheetID':_0x55f146,'color':this[_0x3ff6b5(0x35c)]['assignAColorForMemberID'](_0x25a11f),'selection':_0x123c61},_0x431842=this[_0x3ff6b5(0x1c2)];_0x431842[_0x3ff6b5(0x32c)](_0x25a11f,_0x2c5a49),this[_0x3ff6b5(0x293)]['next'](_0x431842);}[_0x1e1130(0x245)](_0x3d1bfc){const _0x238ef4=_0x1e1130;let {memberID:_0x167bf8}=_0x3d1bfc[_0x238ef4(0x142)],_0x542e79=this[_0x238ef4(0x1c2)];_0x542e79[_0x238ef4(0x1d3)](_0x167bf8),this[_0x238ef4(0x293)][_0x238ef4(0x126)](_0x542e79);}['_getMergeRange'](_0x1a168f,_0x284df0){const _0x5362ce=_0x1e1130;var _0x1cfd17;let _0x35609f=(_0x1cfd17=this[_0x5362ce(0x29d)][_0x5362ce(0x356)](this['unitID']))==null||(_0x1cfd17=_0x1cfd17['getSheetBySheetId'](_0x1a168f))==null?void 0x0:_0x1cfd17['getMergeData']();return(_0x35609f==null?void 0x0:_0x35609f[_0x5362ce(0x225)](_0x24471d=>t[_0x5362ce(0x17a)][_0x5362ce(0x325)](_0x24471d,_0x284df0)))||_0x284df0;}[_0x1e1130(0x13e)](){const _0x303646=_0x1e1130;let _0x4187cd=new t['DisposableCollection'](),_0x47b306=se(),_0x1a476d=()=>{const _0x16ac0c=_0x77df;_0x4187cd[_0x16ac0c(0x211)]();let _0xcf7435=(_0xd2f045,_0x1f3738,_0x3492f0,_0x10c8a3)=>{const _0xa8b629=_0x16ac0c;let _0x2859c7=[];switch(_0xd2f045['id']){case u['EffectRefRangId'][_0xa8b629(0x331)]:_0x2859c7=(0x0,u['handleDeleteRangeMoveLeft'])(_0xd2f045,_0x10c8a3);break;case u[_0xa8b629(0x1ee)][_0xa8b629(0x37f)]:_0x2859c7=(0x0,u[_0xa8b629(0x32f)])(_0xd2f045,_0x10c8a3);break;case u['EffectRefRangId'][_0xa8b629(0x13b)]:_0x2859c7=(0x0,u[_0xa8b629(0x3b9)])(_0xd2f045,_0x10c8a3);break;case u[_0xa8b629(0x1ee)]['InsertRangeMoveDownCommandId']:_0x2859c7=(0x0,u[_0xa8b629(0x199)])(_0xd2f045,_0x10c8a3);break;case u[_0xa8b629(0x1ee)][_0xa8b629(0x38b)]:_0x2859c7=(0x0,u['handleInsertRangeMoveRight'])(_0xd2f045,_0x10c8a3);break;case u[_0xa8b629(0x1ee)]['InsertRowCommandId']:_0x2859c7=(0x0,u[_0xa8b629(0x12e)])(_0xd2f045,_0x10c8a3);break;case u[_0xa8b629(0x1ee)][_0xa8b629(0x2c0)]:_0x2859c7=(0x0,u[_0xa8b629(0x37c)])(_0xd2f045,_0x10c8a3);break;case u[_0xa8b629(0x1ee)]['RemoveColCommandId']:_0x2859c7=(0x0,u[_0xa8b629(0x396)])(_0xd2f045,_0x10c8a3);break;case u[_0xa8b629(0x1ee)]['RemoveRowCommandId']:_0x2859c7=(0x0,u[_0xa8b629(0x204)])(_0xd2f045,_0x10c8a3);break;}let _0x4892a3=(0x0,u[_0xa8b629(0x324)])(_0x2859c7,_0x10c8a3),_0x45d3a1=this[_0xa8b629(0x1c2)][_0xa8b629(0x15f)](_0x1f3738);if(_0x45d3a1&&_0x4892a3){let _0x44ae45={..._0x45d3a1,'range':_0x4892a3};this[_0xa8b629(0x1c2)][_0xa8b629(0x32c)](_0x1f3738,_0x44ae45),_0x47b306(()=>{const _0x442677=_0xa8b629;let _0x561250=this[_0x442677(0x1bb)][_0x442677(0x300)](_0x4892a3,_0x2b37c0=>(_0x561250[_0x442677(0x211)](),_0xcf7435(_0x2b37c0,_0x1f3738,_0x3492f0,_0x4892a3)));_0x4187cd[_0x442677(0x1ff)](_0x561250);});}return{'redos':[],'undos':[]};};this[_0x16ac0c(0x1c2)][_0x16ac0c(0x14e)]((_0x3ca4b4,_0x5941d9)=>{const _0x75f53b=_0x16ac0c;let {range:_0x5269a5,sheetID:_0x476ec5}=_0x3ca4b4,_0x395cb3=this[_0x75f53b(0x1bb)][_0x75f53b(0x300)](_0x5269a5,_0x12e12e=>(_0x395cb3[_0x75f53b(0x211)](),_0xcf7435(_0x12e12e,_0x5941d9,_0x476ec5,_0x5269a5)));_0x4187cd['add'](_0x395cb3);});};this[_0x303646(0x157)]((0x0,t['toDisposable'])(this[_0x303646(0x293)][_0x303646(0x237)](()=>{_0x1a476d();})));}['_toggleOnline'](){const _0x108032=_0x1e1130;var _0x5b5d36,_0x238f77;if(this[_0x108032(0x2b4)]=!0x0,((_0x5b5d36=this['_univerInstanceService'][_0x108032(0x1c7)]())==null?void 0x0:_0x5b5d36[_0x108032(0x124)]())!==this[_0x108032(0x2bb)])return;let _0x3d4447=(_0x238f77=this['_injector']['get'](u[_0x108032(0x39e)])[_0x108032(0x38e)]())==null?void 0x0:_0x238f77[0x0],_0x569d0b=this[_0x108032(0x29d)][_0x108032(0x2f2)](t[_0x108032(0x3bf)][_0x108032(0x301)])[_0x108032(0x15b)]();_0x3d4447&&_0x569d0b&&this['_updateLocalCursor'](_0x569d0b['getSheetId'](),_0x3d4447);}[_0x1e1130(0x226)](){const _0x57c414=_0x1e1130;this[_0x57c414(0x2b4)]=!0x1;}};F=T([w(0x2,(0x0,t[_0x1e1130(0x17b)])(t[_0x1e1130(0x134)])),w(0x3,(0x0,t['Inject'])(j)),w(0x4,(0x0,t[_0x1e1130(0x17b)])(e[_0x1e1130(0x341)])),w(0x5,t[_0x1e1130(0x1b3)]),w(0x6,t['ICommandService']),w(0x7,(0x0,t[_0x1e1130(0x17b)])(u['RefRangeService']))],F);let I=class extends t[_0x1e1130(0x346)]{constructor(_0x4f6dc7,_0x20e013,_0x417659){const _0x3e2cab=_0x1e1130;super(),this[_0x3e2cab(0x29d)]=_0x4f6dc7,this[_0x3e2cab(0x153)]=_0x20e013,this[_0x3e2cab(0x139)]=_0x417659,C(this,_0x3e2cab(0x315),new Map()),C(this,_0x3e2cab(0x39d),new r[(_0x3e2cab(0x31a))]()),this[_0x3e2cab(0x386)]();}[_0x1e1130(0x211)](){const _0xda8ccf=_0x1e1130;super[_0xda8ccf(0x211)](),this[_0xda8ccf(0x39d)][_0xda8ccf(0x22b)](),this[_0xda8ccf(0x315)][_0xda8ccf(0x14e)](_0x3912f8=>_0x3912f8[_0xda8ccf(0x211)]());}[_0x1e1130(0x238)](_0xf61cbb){const _0x25107d=_0x1e1130;return this[_0x25107d(0x315)][_0x25107d(0x273)](_0xf61cbb)?this[_0x25107d(0x315)][_0x25107d(0x15f)](_0xf61cbb)[_0x25107d(0x19b)]:this[_0x25107d(0x39d)][_0x25107d(0x251)]((0x0,r[_0x25107d(0x2a0)])(_0x24bf9a=>_0x24bf9a[_0x25107d(0x2bb)]===_0xf61cbb),(0x0,r[_0x25107d(0x280)])(_0x119420=>_0x119420[_0x25107d(0x19b)]));}[_0x1e1130(0x386)](){const _0x5814c3=_0x1e1130;this['_univerInstanceService']['getTypeOfUnitAdded$'](t['UniverInstanceType'][_0x5814c3(0x301)])[_0x5814c3(0x251)]((0x0,r['takeUntil'])(this[_0x5814c3(0x21a)]))['subscribe'](async _0x2b569e=>{const _0x41fdc8=_0x5814c3;let _0x3f6ff9=_0x2b569e[_0x41fdc8(0x182)][_0x41fdc8(0x124)](),_0x4a7200=await this[_0x41fdc8(0x36e)](_0x3f6ff9);this[_0x41fdc8(0x39d)][_0x41fdc8(0x126)](_0x4a7200),this[_0x41fdc8(0x315)][_0x41fdc8(0x32c)](_0x3f6ff9,_0x4a7200);}),this[_0x5814c3(0x29d)][_0x5814c3(0x349)](t['UniverInstanceType'][_0x5814c3(0x2ae)])['pipe']((0x0,r[_0x5814c3(0x1ae)])(this[_0x5814c3(0x21a)]))[_0x5814c3(0x251)]((0x0,r[_0x5814c3(0x2a0)])(_0x2edbc6=>!_0x2edbc6[_0x5814c3(0x182)]['getUnitId']()[_0x5814c3(0x253)]('__')))[_0x5814c3(0x237)](async _0x382e85=>{const _0x5c3d4c=_0x5814c3;let {unit:_0x3f35c6}=_0x382e85,_0x5c6a25=_0x3f35c6['getUnitId'](),_0x4e0fc5=await this[_0x5c3d4c(0x1d2)](_0x5c6a25);this[_0x5c3d4c(0x39d)][_0x5c3d4c(0x126)](_0x4e0fc5),this[_0x5c3d4c(0x315)][_0x5c3d4c(0x32c)](_0x5c6a25,_0x4e0fc5);}),(0x0,r[_0x5814c3(0x1f1)])(this[_0x5814c3(0x29d)][_0x5814c3(0x136)](t['UniverInstanceType'][_0x5814c3(0x2ae)]),this[_0x5814c3(0x29d)][_0x5814c3(0x136)](t[_0x5814c3(0x3bf)]['UNIVER_SHEET']))['pipe']((0x0,r['takeUntil'])(this[_0x5814c3(0x21a)]))[_0x5814c3(0x237)](_0x11f50b=>{const _0x4d7f54=_0x5814c3;let _0x1018b2=_0x11f50b[_0x4d7f54(0x124)](),_0x4efc4c=this['_entities'][_0x4d7f54(0x15f)](_0x1018b2);_0x4efc4c&&(_0x4efc4c[_0x4d7f54(0x211)](),this[_0x4d7f54(0x315)][_0x4d7f54(0x1d3)](_0x1018b2));});}async[_0x1e1130(0x36e)](_0xb83bfb){const _0x46f449=_0x1e1130;let _0x2f2c9c=await this[_0x46f449(0x139)][_0x46f449(0x27d)](_0xb83bfb),_0x436eed=this['_injector'][_0x46f449(0x269)](F,_0xb83bfb,_0x2f2c9c);return _0x436eed['init'](),_0x436eed;}async[_0x1e1130(0x1d2)](_0x2457b1){const _0x3333fc=_0x1e1130;let _0x1fa5aa=await this['_collabSessionService']['requireSession'](_0x2457b1),_0x59b15e=this[_0x3333fc(0x153)][_0x3333fc(0x269)](P,_0x2457b1,_0x1fa5aa);return _0x59b15e[_0x3333fc(0x186)](),_0x59b15e;}};I=T([w(0x0,t['IUniverInstanceService']),w(0x1,(0x0,t[_0x1e1130(0x17b)])(t[_0x1e1130(0x134)])),w(0x2,(0x0,t[_0x1e1130(0x17b)])(e[_0x1e1130(0x2cc)]))],I);function ce(_0x4573ad,_0x44a386){const _0x154c60=_0x1e1130;var _0x275c3f,_0x2973ef,_0x513050;let {radius:_0x308919,width:_0x45618d,height:_0x59a9d4}=_0x44a386;_0x308919=(_0x275c3f=_0x308919)==null?0x0:_0x275c3f,_0x45618d=(_0x2973ef=_0x45618d)==null?0x1e:_0x2973ef,_0x59a9d4=(_0x513050=_0x59a9d4)==null?0x1e:_0x513050;let _0x447d84=0x0,_0x5b1a2a=0x0,_0x160553=0x0;_0x447d84=_0x5b1a2a=_0x160553=Math['min'](_0x308919,_0x45618d/0x2,_0x59a9d4/0x2),_0x4573ad[_0x154c60(0x360)](),_0x4573ad[_0x154c60(0x217)](_0x447d84,0x0),_0x4573ad[_0x154c60(0x166)](_0x45618d-_0x5b1a2a,0x0),_0x4573ad[_0x154c60(0x380)](_0x45618d-_0x5b1a2a,_0x5b1a2a,_0x5b1a2a,Math['PI']*0x3/0x2,0x0,!0x1),_0x4573ad[_0x154c60(0x166)](_0x45618d,_0x59a9d4-_0x160553),_0x4573ad['arc'](_0x45618d-_0x160553,_0x59a9d4-_0x160553,_0x160553,0x0,Math['PI']/0x2,!0x1),_0x4573ad[_0x154c60(0x166)](0x0,_0x59a9d4),_0x4573ad[_0x154c60(0x166)](0x0,_0x447d84),_0x4573ad[_0x154c60(0x380)](_0x447d84,_0x447d84,_0x447d84,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4573ad[_0x154c60(0x1e8)](),_0x44a386[_0x154c60(0x1dd)]&&(_0x4573ad[_0x154c60(0x2cd)](),_0x4573ad[_0x154c60(0x279)]=_0x44a386['fill'],_0x44a386['fillRule']==='evenodd'?_0x4573ad['fill'](_0x154c60(0x248)):_0x4573ad['fill'](),_0x4573ad[_0x154c60(0x2cf)]());}var le=class e extends d[_0x1e1130(0x2e3)]{constructor(_0x20be27,_0x2fe919){const _0x40fc12=_0x1e1130;super(_0x20be27,_0x2fe919),C(this,'color',void 0x0),C(this,_0x40fc12(0x3a5),void 0x0),this[_0x40fc12(0x33e)]=_0x2fe919==null?void 0x0:_0x2fe919['color'],this['text']=_0x2fe919==null?void 0x0:_0x2fe919[_0x40fc12(0x3a5)];}static[_0x1e1130(0x33b)](_0x445fdc,_0x34d351){const _0x3b5a05=_0x1e1130;let {text:_0x55f619,color:_0x2cb67b}=_0x34d351;_0x445fdc[_0x3b5a05(0x2cd)](),_0x445fdc[_0x3b5a05(0x342)]=_0x3b5a05(0x2e4);let _0x4451b5=_0x445fdc[_0x3b5a05(0x3c3)](_0x55f619)[_0x3b5a05(0x23a)];if(ce(_0x445fdc,{'height':0x14,'radius':0x4,'width':Math[_0x3b5a05(0x1c3)](_0x4451b5+0x8,0xc8),'fill':_0x2cb67b,'evented':!0x1}),_0x445fdc[_0x3b5a05(0x279)]=_0x3b5a05(0x395),_0x4451b5>0xc0){let _0x48f17e='',_0x2a3a2d=0x0;for(let _0x4cf761 of _0x55f619){let _0x21d965=_0x445fdc[_0x3b5a05(0x3c3)](_0x4cf761)[_0x3b5a05(0x23a)];if(_0x2a3a2d+_0x21d965<=0xc0-_0x445fdc['measureText'](_0x3b5a05(0x29f))[_0x3b5a05(0x23a)])_0x48f17e+=_0x4cf761,_0x2a3a2d+=_0x21d965;else{_0x48f17e+=_0x3b5a05(0x29f);break;}}_0x445fdc[_0x3b5a05(0x2db)](_0x48f17e,0x4,0xf);}else _0x445fdc[_0x3b5a05(0x2db)](_0x55f619,0x4,0xf);_0x445fdc[_0x3b5a05(0x2cf)]();}[_0x1e1130(0x2a4)](_0x2cef32){e['drawWith'](_0x2cef32,this);}};const L=_0x1e1130(0x19f);var ue=class{constructor(_0x1a67d,_0x499258,_0x16cff3,_0x12c8a0){const _0x4433a3=_0x1e1130;this['_cursor']=_0x1a67d,this['_scene']=_0x499258,this[_0x4433a3(0x39a)]=_0x16cff3,this[_0x4433a3(0x24f)]=_0x12c8a0,C(this,'_shapes',[]),C(this,_0x4433a3(0x254),null),C(this,_0x4433a3(0x270),null),C(this,'_anchorDot',null),C(this,_0x4433a3(0x149),null),C(this,'_eventUnsubscribe',null),this[_0x4433a3(0x278)]();}set['_hover'](_0x54be13){const _0x22edf5=_0x1e1130;_0x54be13?(this['_anchorDot']&&this[_0x22edf5(0x1aa)][_0x22edf5(0x3aa)](),this[_0x22edf5(0x270)]&&this[_0x22edf5(0x270)]['show']()):(this['_anchorDot']&&this[_0x22edf5(0x1aa)]['show'](),this[_0x22edf5(0x270)]&&this[_0x22edf5(0x270)][_0x22edf5(0x3aa)]());}[_0x1e1130(0x211)](){const _0x138410=_0x1e1130;for(let _0x3aad27 of this['_shapes'])_0x3aad27[_0x138410(0x211)]();this[_0x138410(0x270)]&&this[_0x138410(0x270)]['dispose'](),this[_0x138410(0x1aa)]&&this[_0x138410(0x1aa)][_0x138410(0x211)](),this[_0x138410(0x254)]&&this[_0x138410(0x254)][_0x138410(0x211)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x1e1130(0x278)](){const _0x388491=_0x1e1130;let {_docSkeleton:_0x1d0dac,_document:_0x20c055}=this,{color:_0xd64c67,name:_0x50061d,ranges:_0x7da24b}=this[_0x388491(0x14a)],_0x1eed82=_0x20c055[_0x388491(0x2b8)](),{docsLeft:_0x32ac13,docsTop:_0x52053d}=_0x1eed82,_0x9e75c8=new p[(_0x388491(0x2f9))](_0x1eed82,_0x1d0dac);for(let {startOffset:_0x4f4a74,endOffset:_0x5debe4,rangeType:_0x1df664,segmentId:_0x2bb622,segmentPage:_0x3e5554,collapsed:_0xc0426a,isActive:_0x2e30e8}of _0x7da24b){let _0x25306b=_0x1d0dac[_0x388491(0x390)](_0x4f4a74,!0x0,_0x2bb622,_0x3e5554),_0x298145=_0x1d0dac[_0x388491(0x390)](_0x5debe4,!0x0,_0x2bb622,_0x3e5554);if(_0x298145==null&&(_0x298145=_0x1d0dac[_0x388491(0x390)](_0x5debe4-0x1,!0x1,_0x2bb622,_0x3e5554)),_0x2e30e8){let {contentBoxPointGroup:_0x327d3e}=_0x9e75c8[_0x388491(0x222)](_0x298145,_0x298145);if(_0x327d3e['length']===0x0)continue;this['_drawAnchor'](_0xd64c67,_0x327d3e,_0x32ac13,_0x52053d,_0x50061d),this[_0x388491(0x28b)]=this[_0x388491(0x38a)]();}if(_0x25306b&&_0x298145){if(_0x1df664===t[_0x388491(0x20d)][_0x388491(0x2d1)]){var _0x57aaa4;let {pointGroup:_0x351100}=(_0x57aaa4=new p[(_0x388491(0x344))](_0x1eed82,_0x1d0dac)[_0x388491(0x222)](_0x25306b,_0x298145))==null?{}:_0x57aaa4;if(_0x351100==null||_0x351100[_0x388491(0x260)]===0x0)continue;this['_drawRectRange'](_0xd64c67,_0x351100,_0x32ac13,_0x52053d);}else{if(!_0xc0426a){let {borderBoxPointGroup:_0x1b2d37}=_0x9e75c8[_0x388491(0x222)](_0x25306b,_0x298145);if(_0x1b2d37[_0x388491(0x260)]===0x0)continue;this['_drawTextRange'](_0xd64c67,_0x1b2d37,_0x32ac13,_0x52053d);}}}}}['_drawAnchor'](_0x2bcb6e,_0x4470f8,_0x2ed9c4,_0x55b670,_0x46fff5){const _0x422c42=_0x1e1130;let {left:_0x352688,top:_0x42c883,height:_0x346d10}=this[_0x422c42(0x2ef)](_0x4470f8),_0x598d2b=1.5/this[_0x422c42(0x231)](),_0x5c7c87=new d[(_0x422c42(0x373))](L+(0x0,t[_0x422c42(0x26d)])(0x6),{'left':_0x352688+_0x2ed9c4-_0x598d2b,'top':_0x42c883+_0x55b670,'height':_0x346d10,'width':1.5,'fill':_0x2bcb6e||(0x0,d[_0x422c42(0x2fe)])(t[_0x422c42(0x3ac)]['black'],0x0),'strokeWidth':_0x598d2b,'stroke':_0x422c42(0x13d),'evented':!0x0});this[_0x422c42(0x254)]=_0x5c7c87,this['_scene'][_0x422c42(0x3b4)](_0x5c7c87,p[_0x422c42(0x137)]);let _0x2e45b6=new d[(_0x422c42(0x373))](L+(0x0,t[_0x422c42(0x26d)])(0x6),{'left':_0x352688+_0x2ed9c4-_0x598d2b,'top':_0x42c883+_0x55b670-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x2bcb6e||(0x0,d[_0x422c42(0x2fe)])(t[_0x422c42(0x3ac)][_0x422c42(0x305)],0x0),'strokeWidth':0x0,'stroke':_0x2bcb6e||(0x0,d[_0x422c42(0x2fe)])(t[_0x422c42(0x3ac)][_0x422c42(0x305)],0x0),'evented':!0x1});this[_0x422c42(0x1aa)]=_0x2e45b6,this[_0x422c42(0x36b)][_0x422c42(0x3b4)](_0x2e45b6,p['TEXT_RANGE_LAYER_INDEX']);let _0x2f4487=new le(L+(0x0,t[_0x422c42(0x26d)])(0x6),{'left':_0x352688+_0x2ed9c4-_0x598d2b,'top':_0x42c883+_0x55b670-0x14,'text':_0x46fff5,'color':_0x2bcb6e});this[_0x422c42(0x270)]=_0x2f4487,this[_0x422c42(0x36b)][_0x422c42(0x3b4)](_0x2f4487,p[_0x422c42(0x137)]),this[_0x422c42(0x21c)]=!0x1;}[_0x1e1130(0x38a)](){const _0x3c1445=_0x1e1130;let _0x7e73f3=this[_0x3c1445(0x254)][_0x3c1445(0x392)][_0x3c1445(0x2f5)](()=>{const _0x2bda9c=_0x3c1445;this[_0x2bda9c(0x21c)]=!0x0;}),_0x5c58a2=this[_0x3c1445(0x254)]['onPointerLeave$'][_0x3c1445(0x2f5)](()=>{const _0x2acf77=_0x3c1445;this[_0x2acf77(0x149)]&&clearTimeout(this[_0x2acf77(0x149)]),this[_0x2acf77(0x149)]=setTimeout(()=>{const _0x4330e3=_0x2acf77;this[_0x4330e3(0x21c)]=!0x1;},0x7d0);});return()=>{const _0x4ecbf9=_0x3c1445;_0x7e73f3['unsubscribe'](),_0x5c58a2[_0x4ecbf9(0x1d9)]();};}[_0x1e1130(0x338)](_0x4357a3,_0x4e75c6,_0x3f06ce,_0x2c8357){const _0x3afc00=_0x1e1130;let _0x19a00c=0.2,_0x39d988=new t['ColorKit'](_0x4357a3)[_0x3afc00(0x328)](_0x19a00c)[_0x3afc00(0x314)](),_0x73393f=new d[(_0x3afc00(0x187))]('collab-text-range-'+(0x0,t[_0x3afc00(0x26d)])(0x6),{'pointsGroup':_0x4e75c6,'fill':_0x39d988||(0x0,d['getColor'])(t[_0x3afc00(0x3ac)][_0x3afc00(0x305)],_0x19a00c),'left':_0x3f06ce,'top':_0x2c8357,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3afc00(0x31d)]['push'](_0x73393f),this[_0x3afc00(0x36b)][_0x3afc00(0x3b4)](_0x73393f,p['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x171469,_0x1bd0e8,_0x4ebe72,_0x81ce48){const _0x522eb8=_0x1e1130;let _0x1d3ff3=0.2,_0x3c2674=new t['ColorKit'](_0x171469)[_0x522eb8(0x328)](_0x1d3ff3)[_0x522eb8(0x314)](),_0x2835f2=new d['RegularPolygon'](_0x522eb8(0x195)+(0x0,t[_0x522eb8(0x26d)])(0x6),{'pointsGroup':_0x1bd0e8,'fill':_0x3c2674||(0x0,d[_0x522eb8(0x2fe)])(t[_0x522eb8(0x3ac)][_0x522eb8(0x305)],_0x1d3ff3),'left':_0x4ebe72,'top':_0x81ce48,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x522eb8(0x31d)][_0x522eb8(0x2e9)](_0x2835f2),this[_0x522eb8(0x36b)][_0x522eb8(0x3b4)](_0x2835f2,p['TEXT_RANGE_LAYER_INDEX']);}[_0x1e1130(0x2ef)](_0x205d2d){let _0x4f41f1=_0x205d2d[0x0],_0x53f9e4=_0x4f41f1[0x0],_0x591e3e=_0x4f41f1[0x2],{x:_0xedc2f4,y:_0x170ddd}=_0x53f9e4,{x:_0x35d61f,y:_0x43ecd9}=_0x591e3e;return{'left':_0xedc2f4,'top':_0x170ddd,'width':_0x35d61f-_0xedc2f4,'height':_0x43ecd9-_0x170ddd};}[_0x1e1130(0x231)](){const _0x7c7601=_0x1e1130;let {scaleX:_0x2c97cc,scaleY:_0x368850}=this['_scene'][_0x7c7601(0x34e)]();return Math[_0x7c7601(0x282)](_0x2c97cc,_0x368850);}};let R=class extends t['RxDisposable']{constructor(_0x3e1597,_0x40d889,_0x22a66a,_0x80d9a2,_0x5a15ca){const _0x262ed1=_0x1e1130;super(),this['_context']=_0x3e1597,this[_0x262ed1(0x178)]=_0x40d889,this[_0x262ed1(0x18c)]=_0x22a66a,this[_0x262ed1(0x244)]=_0x80d9a2,this[_0x262ed1(0x208)]=_0x5a15ca,C(this,_0x262ed1(0x383),[]),C(this,'_cursors',[]),this[_0x262ed1(0x386)]();}[_0x1e1130(0x386)](){const _0x38f547=_0x1e1130;let _0x368fef=this['_context']['unitId'],_0x3f4693=this['_docSkeletonManagerService'];this[_0x38f547(0x157)]((0x0,r[_0x38f547(0x19a)])([this[_0x38f547(0x18c)][_0x38f547(0x238)](_0x368fef),this[_0x38f547(0x208)]['currentTheme$']])['pipe']((0x0,i['map'])(([_0x3e3027,_0x237e6e])=>({'skeleton':_0x3f4693[_0x38f547(0x16e)](),'cursors':[..._0x3e3027['values']()]['flatMap'](_0x5fd3cb=>({..._0x5fd3cb,'color':this[_0x38f547(0x208)][_0x38f547(0x2e8)](_0x5fd3cb[_0x38f547(0x33e)])}))})))['subscribe'](_0xb9351c=>{const _0x443ba7=_0x38f547;if(this[_0x443ba7(0x168)](),_0xb9351c){let {skeleton:_0x19b543,cursors:_0x24044c}=_0xb9351c;this[_0x443ba7(0x30b)](_0x19b543,_0x24044c);}})),this[_0x38f547(0x3c2)](),this[_0x38f547(0x2c7)]();}[_0x1e1130(0x30b)](_0x1cf048,_0x33828a){const _0x394e10=_0x1e1130;let {scene:_0x29d6f6,mainComponent:_0x85cedd}=this[_0x394e10(0x2dc)],_0x58adc5=_0x33828a[_0x394e10(0x35e)](_0x536337=>new ue(_0x536337,_0x29d6f6,_0x1cf048,_0x85cedd));this[_0x394e10(0x383)]=_0x58adc5,this[_0x394e10(0x1de)]=_0x33828a;}[_0x1e1130(0x24e)](){const _0x2bffbf=_0x1e1130;this['_removeCollabCursors']();let {scene:_0x54ef83,mainComponent:_0x4b6ec8}=this[_0x2bffbf(0x2dc)],_0x422efd=this[_0x2bffbf(0x178)][_0x2bffbf(0x16e)](),_0x3b5497=this[_0x2bffbf(0x1de)][_0x2bffbf(0x35e)](_0x4a2c4e=>new ue(_0x4a2c4e,_0x54ef83,_0x422efd,_0x4b6ec8));this[_0x2bffbf(0x383)]=_0x3b5497;}[_0x1e1130(0x168)](){const _0x2efea0=_0x1e1130;this['_cursorShapes'][_0x2efea0(0x14e)](_0x5cf54c=>_0x5cf54c[_0x2efea0(0x211)]()),this[_0x2efea0(0x383)]=[];}[_0x1e1130(0x2c7)](){const _0x56f146=_0x1e1130;let _0x5ba737=[p[_0x56f146(0x39b)]['id']];this[_0x56f146(0x157)](this[_0x56f146(0x244)]['onCommandExecuted'](_0x13b03b=>{const _0x29c417=_0x56f146;_0x5ba737['includes'](_0x13b03b['id'])&&_0x13b03b[_0x29c417(0x26a)][_0x29c417(0x1ec)]===this[_0x29c417(0x2dc)]['unitId']&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x4f7230=_0x1e1130;this[_0x4f7230(0x157)]((0x0,t[_0x4f7230(0x27e)])(this[_0x4f7230(0x2dc)][_0x4f7230(0x2fa)][_0x4f7230(0x303)])[_0x4f7230(0x251)]((0x0,i[_0x4f7230(0x2a0)])(_0x49030f=>_0x49030f[_0x4f7230(0x21d)]===d[_0x4f7230(0x2c9)]['resize']),(0x0,i['throttleTime'])(0x10))[_0x4f7230(0x237)](()=>{this['_refreshCollabCursors']();}));}};R=T([w(0x1,(0x0,t[_0x1e1130(0x17b)])(g['DocSkeletonManagerService'])),w(0x2,(0x0,t[_0x1e1130(0x17b)])(I)),w(0x3,t[_0x1e1130(0x167)]),w(0x4,(0x0,t[_0x1e1130(0x17b)])(t[_0x1e1130(0x26f)]))],R);var z=class extends d[_0x1e1130(0x2e3)]{constructor(_0x2db76f,_0x2f14f3){const _0x112fca=_0x1e1130;if(super(_0x2db76f,_0x2f14f3),C(this,'_color',void 0x0),C(this,_0x112fca(0x32e),!0x1),C(this,_0x112fca(0x3b7),void 0x0),C(this,'_name',''),C(this,_0x112fca(0x1e7),_0x112fca(0x1e3)),C(this,'_backgroundColor',void 0x0),C(this,_0x112fca(0x151),void 0x0),C(this,_0x112fca(0x2f3),void 0x0),C(this,'_highlightSecond',0x4),C(this,_0x112fca(0x1f5),void 0x0),C(this,_0x112fca(0x2dd),void 0x0),C(this,_0x112fca(0x209),!0x0),C(this,_0x112fca(0x394),0x0),_0x2f14f3){var _0x459b23;if(this[_0x112fca(0x183)](_0x2f14f3),_0x2f14f3[_0x112fca(0x35f)]&&((_0x459b23=_0x2f14f3['highlightSecond'])==null?this['_highlightSecond']:_0x459b23)){var _0x5b73ad;this[_0x112fca(0x28a)]((_0x5b73ad=_0x2f14f3['highlightSecond'])==null?this[_0x112fca(0x3b2)]:_0x5b73ad);}}this[_0x112fca(0x392)][_0x112fca(0x2f5)](()=>this[_0x112fca(0x183)]({'hovered':!0x0})),this[_0x112fca(0x2a7)][_0x112fca(0x2f5)](()=>this[_0x112fca(0x183)]({'hovered':!0x1}));}[_0x1e1130(0x2ac)](_0x400770){const _0x2a5608=_0x1e1130;this[_0x2a5608(0x394)]=_0x400770;}[_0x1e1130(0x183)](_0x595371){const _0x58de9d=_0x1e1130;var _0x373916,_0x435206,_0x136c37,_0x5e6d51,_0x43fefc,_0x2b7aeb,_0xf87c4c;this[_0x58de9d(0x29b)]=(_0x373916=_0x595371['color'])==null?this[_0x58de9d(0x29b)]:_0x373916,this[_0x58de9d(0x32e)]=(_0x435206=_0x595371[_0x58de9d(0x230)])==null?this[_0x58de9d(0x32e)]:_0x435206,this[_0x58de9d(0x3b7)]=(_0x136c37=_0x595371[_0x58de9d(0x258)])==null?this[_0x58de9d(0x3b7)]:_0x136c37,this[_0x58de9d(0x1a6)]=(_0x5e6d51=_0x595371['name'])==null?this[_0x58de9d(0x1a6)]:_0x5e6d51,this[_0x58de9d(0x1e7)]=(_0x43fefc=_0x595371['labelPosition'])==null?this[_0x58de9d(0x1e7)]:_0x43fefc,this[_0x58de9d(0x334)]=(_0x2b7aeb=_0x595371[_0x58de9d(0x361)])==null?this[_0x58de9d(0x334)]:_0x2b7aeb,this[_0x58de9d(0x151)]=(_0xf87c4c=_0x595371[_0x58de9d(0x181)])==null?this['_showText']:_0xf87c4c,_0x595371[_0x58de9d(0x32d)]!==void 0x0&&(this['_highlightSecond']=_0x595371[_0x58de9d(0x32d)]),_0x595371['highlight']!==void 0x0&&(this[_0x58de9d(0x2f3)]=_0x595371[_0x58de9d(0x35f)]),_0x595371[_0x58de9d(0x385)]!==void 0x0&&(this[_0x58de9d(0x394)]=_0x595371[_0x58de9d(0x385)]),this[_0x58de9d(0x3b8)]({'width':_0x595371['width'],'height':_0x595371[_0x58de9d(0x381)]});}[_0x1e1130(0x184)](_0x55f3fc){const _0x317ef1=_0x1e1130;let {row:_0x5f2db9,column:_0x54fd25}=_0x55f3fc;if(_0x5f2db9>=this[_0x317ef1(0x3b7)]['startRow']&&_0x5f2db9<=this[_0x317ef1(0x3b7)][_0x317ef1(0x2b7)]&&_0x54fd25>=this[_0x317ef1(0x3b7)][_0x317ef1(0x2be)]&&_0x54fd25<=this[_0x317ef1(0x3b7)][_0x317ef1(0x37e)]){this[_0x317ef1(0x183)]({'hovered':!0x0});return;}this[_0x317ef1(0x183)]({'hovered':!0x1});}['_startBlinking'](_0x2e32c8){const _0x22d64b=_0x1e1130;this[_0x22d64b(0x399)](),this[_0x22d64b(0x209)]=!0x0,this['_blinkIntervalTimer']=window[_0x22d64b(0x16a)](()=>{const _0x45ae0b=_0x22d64b;this[_0x45ae0b(0x209)]=!this[_0x45ae0b(0x209)],this[_0x45ae0b(0x310)](!0x0);},0x1f4),this[_0x22d64b(0x1f5)]=window[_0x22d64b(0x1e4)](()=>{const _0x2d9c10=_0x22d64b;this[_0x2d9c10(0x399)](),this[_0x2d9c10(0x209)]=!0x0,this['makeDirty'](!0x0);},_0x2e32c8*0x3e8);}[_0x1e1130(0x399)](){const _0x3d4519=_0x1e1130;this[_0x3d4519(0x2dd)]&&(window[_0x3d4519(0x15d)](this[_0x3d4519(0x2dd)]),this[_0x3d4519(0x2dd)]=void 0x0),this['_blinkTimer']&&(window[_0x3d4519(0x294)](this[_0x3d4519(0x1f5)]),this[_0x3d4519(0x1f5)]=void 0x0);}[_0x1e1130(0x313)](_0x3495e8){return!0x1;}[_0x1e1130(0x211)](){const _0x36a3d4=_0x1e1130;this['_stopBlinking'](),super[_0x36a3d4(0x211)]();}[_0x1e1130(0x2a4)](_0x442a6c){const _0x1bce53=_0x1e1130;let _0x240492=this[_0x1bce53(0x29b)],_0x5440cf=this[_0x1bce53(0x334)];if(this[_0x1bce53(0x2f3)]&&!this[_0x1bce53(0x209)]&&(_0x240492=this[_0x1bce53(0x1a9)](this[_0x1bce53(0x29b)]),_0x5440cf=this['_backgroundColor']?this[_0x1bce53(0x1a9)](this[_0x1bce53(0x334)]):void 0x0),d[_0x1bce53(0x373)][_0x1bce53(0x33b)](_0x442a6c,{'width':this[_0x1bce53(0x23a)],'height':this[_0x1bce53(0x381)],'strokeWidth':this[_0x1bce53(0x1f8)]||1.5,'stroke':_0x240492,'evented':!0x1,'fill':_0x5440cf}),this[_0x1bce53(0x32e)]||this[_0x1bce53(0x151)]){var _0x39cb0e;_0x442a6c[_0x1bce53(0x2cd)](),_0x442a6c[_0x1bce53(0x340)](0x1,0x0,0x0,0x1,this[_0x1bce53(0x23a)],(this['_labelPosition']==='bottom'?0x0:-0x14)+((_0x39cb0e=this['_offsetY'])==null?0x0:_0x39cb0e)),le[_0x1bce53(0x33b)](_0x442a6c,{'text':this[_0x1bce53(0x1a6)],'color':_0x240492}),_0x442a6c[_0x1bce53(0x2cf)]();}}[_0x1e1130(0x1a9)](_0xe44660){const _0x4957d4=_0x1e1130;return _0xe44660[_0x4957d4(0x253)]('#')?_0x4957d4(0x2c5)+Number[_0x4957d4(0x335)](_0xe44660[_0x4957d4(0x185)](0x1,0x3),0x10)+',\x20'+Number[_0x4957d4(0x335)](_0xe44660[_0x4957d4(0x185)](0x3,0x5),0x10)+',\x20'+Number[_0x4957d4(0x335)](_0xe44660[_0x4957d4(0x185)](0x5,0x7),0x10)+',\x200.2)':_0xe44660['startsWith']('rgba')?_0xe44660[_0x4957d4(0x1c8)](/[\d.]+\)$/g,_0x4957d4(0x336)):_0xe44660['startsWith'](_0x4957d4(0x206))?_0xe44660[_0x4957d4(0x1c8)](_0x4957d4(0x206),_0x4957d4(0x2ff))[_0x4957d4(0x1c8)](')',_0x4957d4(0x1b6)):_0xe44660;}};let B=class extends t[_0x1e1130(0x346)]{constructor(_0x3a4012,_0x3e707f,_0x1473a8,_0x6a0152){const _0x55e573=_0x1e1130;super(),this[_0x55e573(0x2dc)]=_0x3a4012,this['_sheetSkeletonManagerService']=_0x3e707f,this['_collabCursorController']=_0x1473a8,this[_0x55e573(0x208)]=_0x6a0152,C(this,_0x55e573(0x1de),new Set()),C(this,_0x55e573(0x339),null),C(this,'_pointerMoveDisposable',null),this['_init']();}['_init'](){const _0x2a973f=_0x1e1130;this[_0x2a973f(0x150)]['currentSkeleton$'][_0x2a973f(0x251)]((0x0,i[_0x2a973f(0x1ae)])(this[_0x2a973f(0x21a)]),(0x0,i[_0x2a973f(0x280)])(_0x38e89c=>{const _0x5ea9c1=_0x2a973f;if(_0x38e89c){let _0x581f5d=_0x38e89c[_0x5ea9c1(0x11d)];return(0x0,r['combineLatest'])(this[_0x5ea9c1(0x18c)][_0x5ea9c1(0x238)](this['_context'][_0x5ea9c1(0x1ec)]),this[_0x5ea9c1(0x208)]['currentTheme$'])[_0x5ea9c1(0x251)]((0x0,i[_0x5ea9c1(0x35e)])(([_0x3f52fb,_0x1694cb])=>{const _0x55f55e=_0x5ea9c1;let _0x409683=new Map();return _0x3f52fb[_0x55f55e(0x14e)]((_0x12889d,_0x293b79)=>{const _0x467dbe=_0x55f55e;if(_0x12889d[_0x467dbe(0x210)]===_0x581f5d){let _0x34dc23={..._0x12889d};_0x34dc23['color']=this[_0x467dbe(0x208)][_0x467dbe(0x2e8)](_0x12889d[_0x467dbe(0x33e)]),_0x409683[_0x467dbe(0x32c)](_0x293b79,_0x34dc23);}}),{'skeleton':_0x38e89c,'cursors':_0x409683};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x2a973f(0x237)](({skeleton:_0x4563d9,cursors:_0x42b0a9})=>{const _0x1b7a7b=_0x2a973f;this['_removeCollabCursors'](),_0x4563d9&&this[_0x1b7a7b(0x30b)](_0x4563d9,_0x42b0a9);}),this[_0x2a973f(0x157)](this[_0x2a973f(0x150)][_0x2a973f(0x203)][_0x2a973f(0x251)]((0x0,i['takeUntil'])(this[_0x2a973f(0x21a)]))[_0x2a973f(0x237)](_0x289cf5=>{const _0x3595ad=_0x2a973f;var _0x5e058b;if(_0x289cf5==null)return;(_0x5e058b=this['_pointerMoveDisposable'])==null||_0x5e058b[_0x3595ad(0x1d9)](),this['_pointerMoveDisposable']=null;let {skeleton:_0x57c7b7}=_0x289cf5,{scene:_0xd1b135}=this['_context'];this[_0x3595ad(0x317)]=_0xd1b135[_0x3595ad(0x247)][_0x3595ad(0x2f5)]((0x0,t['debounce'])(_0x4d401e=>{const _0xf952f3=_0x3595ad;var _0x16aee4,_0x32b969;let {offsetX:_0x28421b,offsetY:_0x56544e}=_0x4d401e,{x:_0x411c65,y:_0x2d6bb0}=_0xd1b135[_0xf952f3(0x353)](d[_0xf952f3(0x345)]['FromArray']([_0x28421b,_0x56544e])),{scaleX:_0x1d4f50,scaleY:_0x2be491}=_0xd1b135[_0xf952f3(0x34e)](),_0x48579c=_0xd1b135[_0xf952f3(0x1bc)](d[_0xf952f3(0x1ba)][_0xf952f3(0x25a)]),_0x34867b=_0xd1b135[_0xf952f3(0x3c1)](d[_0xf952f3(0x345)][_0xf952f3(0x2f7)]([_0x411c65,_0x2d6bb0]),_0x48579c),_0x46c499=_0x57c7b7[_0xf952f3(0x3af)](_0x28421b,_0x56544e,_0x1d4f50,_0x2be491,_0x34867b);((_0x16aee4=this[_0xf952f3(0x339)])==null?void 0x0:_0x16aee4[_0xf952f3(0x170)])===_0x46c499['column']&&((_0x32b969=this['_lastPointer'])==null?void 0x0:_0x32b969['row'])===_0x46c499[_0xf952f3(0x232)]||this[_0xf952f3(0x1de)]['forEach'](_0x118be7=>{_0x118be7['onMouseMove'](_0x46c499);});},0x64));})),this[_0x2a973f(0x157)]((0x0,t[_0x2a973f(0x144)])(()=>{const _0x4acbec=_0x2a973f;var _0x20a394;(_0x20a394=this['_pointerMoveDisposable'])==null||_0x20a394[_0x4acbec(0x1d9)](),this[_0x4acbec(0x317)]=null;}));}['_updateCollabCursors'](_0x187de7,_0x313b34){const _0x2584ac=_0x1e1130;let _0x26c91=this['_sheetSkeletonManagerService'][_0x2584ac(0x2c8)]();if(!_0x26c91)return;let _0x3e6066=this[_0x2584ac(0x1e5)]();if(!_0x3e6066)return;this['_cursors'][_0x2584ac(0x14e)](_0x521c80=>{const _0x2392b0=_0x2584ac;_0x521c80[_0x2392b0(0x310)]();});let {scene:_0x1222a4}=_0x3e6066,_0x2e09dd=de(Array[_0x2584ac(0x255)](_0x313b34[_0x2584ac(0x15c)]()))[_0x2584ac(0x35e)](_0x2129ec=>{const _0x3ba9ea=_0x2584ac;let {color:_0x3363e0,range:_0x5a4f02,name:_0x2d26db,selection:_0x3ccd33,sheetID:_0x488a86}=_0x2129ec,{startColumn:_0x5dde52,startRow:_0x399ecf,endColumn:_0x20cbe8,endRow:_0x3af9fa}=_0x5a4f02,_0x20166d=(0x0,v['getCoordByCell'])(_0x399ecf,_0x5dde52,_0x1222a4,_0x26c91),_0xc2a9b9=(0x0,v[_0x3ba9ea(0x2b5)])(_0x3af9fa,_0x20cbe8,_0x1222a4,_0x26c91),{columnHeaderHeightAndMarginTop:_0x8b4f40}=_0x26c91,{startX:_0x4a5469,startY:_0x52f9a7}=_0x20166d,{endX:_0x5db2ee,endY:_0x59a057}=_0xc2a9b9,_0x15cd72=_0x5db2ee-_0x4a5469,_0x437d78=_0x59a057-_0x52f9a7;return new z(_0x2d26db,{'labelPosition':_0x52f9a7-_0x8b4f40>=0x14?_0x3ba9ea(0x1e3):_0x3ba9ea(0x246),'sheetID':_0x488a86,'range':_0x5a4f02,'color':_0x3363e0,'name':_0x2d26db,'selection':_0x3ccd33,'left':_0x4a5469,'top':_0x52f9a7,'width':_0x15cd72,'height':_0x437d78,'evented':!0x1,'zIndex':0x1389});});_0x1222a4[_0x2584ac(0x25b)](_0x2e09dd,0x1),this[_0x2584ac(0x1de)]=new Set(_0x2e09dd);}[_0x1e1130(0x168)](){const _0x391af2=_0x1e1130;var _0x54a849;(_0x54a849=this[_0x391af2(0x1de)])==null||_0x54a849['forEach'](_0x553809=>_0x553809[_0x391af2(0x211)]());}[_0x1e1130(0x1e5)](){const _0x4b5803=_0x1e1130;return(0x0,v[_0x4b5803(0x1f6)])(this['_context'][_0x4b5803(0x182)],this['_context']);}};B=T([w(0x1,(0x0,t['Inject'])(v[_0x1e1130(0x18a)])),w(0x2,(0x0,t[_0x1e1130(0x17b)])(I)),w(0x3,(0x0,t['Inject'])(t[_0x1e1130(0x26f)]))],B);function de(_0x3fbc26){const _0x25053a=_0x1e1130;let _0x4e92b4=new Map();return _0x3fbc26[_0x25053a(0x14e)](_0x4f7b8d=>{const _0x16a2bc=_0x25053a;if(_0x4e92b4[_0x16a2bc(0x273)](_0x4f7b8d[_0x16a2bc(0x316)])){let _0x2895b0=_0x4e92b4['get'](_0x4f7b8d[_0x16a2bc(0x316)]);_0x2895b0[_0x16a2bc(0x292)]+=',\x20'+_0x4f7b8d[_0x16a2bc(0x292)];}else _0x4e92b4[_0x16a2bc(0x32c)](_0x4f7b8d[_0x16a2bc(0x316)],_0x4f7b8d);}),Array[_0x25053a(0x255)](_0x4e92b4[_0x25053a(0x15c)]());}let V=class extends t['Disposable']{constructor(_0x422cf7,_0x2edfba,_0x3beb6f,_0x11047f,_0x5a3aa5,_0xedb24c){const _0x15e7f5=_0x1e1130;super(),this['_beforeCloseService']=_0x422cf7,this['_localCacheService']=_0x2edfba,this[_0x15e7f5(0x34d)]=_0x3beb6f,this['_messageService']=_0x11047f,this['_notificationService']=_0x5a3aa5,this['_localeService']=_0xedb24c,this[_0x15e7f5(0x239)](),this[_0x15e7f5(0x2a3)]();}['_setupBeforeClosingHandler'](){const _0x38436d=_0x1e1130;this[_0x38436d(0x157)](this[_0x38436d(0x33c)][_0x38436d(0x27f)](()=>{const _0x1197c7=_0x38436d;if(this['_localCacheService']['saveTaskMap']['size'])return this['_localeService']['t'](_0x1197c7(0x23b));}));}[_0x1e1130(0x2a3)](){const _0x10daca=_0x1e1130;this['disposeWithMe'](this[_0x10daca(0x34d)][_0x10daca(0x266)][_0x10daca(0x237)](_0x232da0=>{const _0x200c39=_0x10daca;_0x232da0['id']===e['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this[_0x200c39(0x26e)][_0x200c39(0x193)]({'type':a[_0x200c39(0x320)]['Warning'],'content':this[_0x200c39(0x14c)]['t'](_0x200c39(0x1a5))}),_0x232da0['id']===e[_0x200c39(0x214)][_0x200c39(0x30f)]&&this['_messageService'][_0x200c39(0x193)]({'type':a['MessageType'][_0x200c39(0x358)],'content':this[_0x200c39(0x14c)]['t']('collaboration-client-ui.collaboration.closeRoom')}),_0x232da0['id']===e['CollaborationUIEventId'][_0x200c39(0x2c6)]&&this[_0x200c39(0x1fa)][_0x200c39(0x193)]({'title':this[_0x200c39(0x14c)]['t']('collaboration-client-ui.permission.title'),'content':this['_localeService']['t'](_0x200c39(0x343)),'type':_0x200c39(0x216),'duration':0x0}),_0x232da0['id']===e[_0x200c39(0x214)][_0x200c39(0x1ca)]&&this[_0x200c39(0x26e)][_0x200c39(0x193)]({'type':a['MessageType'][_0x200c39(0x12a)],'content':this['_localeService']['t'](_0x200c39(0x2d8))+'('+_0x232da0[_0x200c39(0x142)]+')'}),_0x232da0['id']===e[_0x200c39(0x214)][_0x200c39(0x3b6)]&&this['_messageService'][_0x200c39(0x193)]({'type':a['MessageType'][_0x200c39(0x358)],'content':this[_0x200c39(0x14c)]['t'](_0x232da0[_0x200c39(0x142)]||'')}),_0x232da0['id']===e[_0x200c39(0x214)][_0x200c39(0x1fc)]&&this[_0x200c39(0x26e)]['show']({'type':a[_0x200c39(0x320)][_0x200c39(0x358)],'content':this[_0x200c39(0x14c)]['t'](_0x200c39(0x304))}),_0x232da0['id']===e[_0x200c39(0x214)][_0x200c39(0x365)]&&this[_0x200c39(0x26e)][_0x200c39(0x193)]({'type':a['MessageType'][_0x200c39(0x12a)],'content':this[_0x200c39(0x14c)]['t'](_0x200c39(0x20b))}),_0x232da0['id']===e[_0x200c39(0x214)]['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService']['show']({'type':a[_0x200c39(0x320)]['Error'],'content':this['_localeService']['t'](_0x200c39(0x34b))});}));}};V=T([w(0x0,n[_0x1e1130(0x1fd)]),w(0x1,e[_0x1e1130(0x133)]),w(0x2,(0x0,t['Inject'])(e[_0x1e1130(0x3b0)])),w(0x3,n[_0x1e1130(0x2a9)]),w(0x4,n[_0x1e1130(0x283)]),w(0x5,(0x0,t[_0x1e1130(0x17b)])(t[_0x1e1130(0x22a)]))],V);function _0x5604(){const _0x165a83=['_collaborationController','DOC_RANGE_TYPE','_initCommandInterceptor','HTTPService','sheetID','dispose','_lastResponseTimestamp','univer-text-orange-500','CollaborationUIEventId','_collabCursorState$','error','moveTo','mapTo','ITransformService','dispose$','getMemberID','_hover','type','_docTransformIMECacheService','actions','Success','_doCreateSocket','getRangePointData','collaboration-client-ui.collabStatus.notCollab','body','find','_toggleOffline','Tools','ISnapshotServerService','collaboration-client-ui.config','LocaleService','complete','_selfUnitIDs','DataLoaderService','_showGuardMessage','fromEvent','hovered','_getScale','row','DocIMEInputManagerService','isTransformMutationsWithChangesetSuccess','div','currentUsage','subscribe','getCollabCursors$','_setupBeforeClosingHandler','width','collaboration-client-ui.collaboration.offline-data-not-saved','saveTaskMap','packageName','LOCAL_CACHE_INTERVAL','BehaviorSubject','deepClone','getCollabEntity$','setConfig','_uiPartsService','_commandService','_onCursorDelete','bottom','onPointerMove$','evenodd','transformMutation','OTHER_CLIENTS_EDITING','2731405EYjLau','_revisionService','collaboration-client-ui.collabStatus.conflict','_refreshCollabCursors','_document','pushState','pipe','LoadingMultiIcon','startsWith','_anchor','from','getSheetId','blue.400','range','univer-appearance-none','VIEW_MAIN','addObjects','_docTransformStateCacheService','removeEventListener','FETCH_MISS','ILogService','length','updateOfflineData','socket$','replaceState','collaboration-client-ui.formula.calculation.started','_unitOnClients','event$','getUndoRedoMutationParamsCache','MUTATION','createInstance','params','deserializeRangeWithSheet','_getFormulaLimitStatus','generateRandomId','_messageService','ThemeService','_textBubble','START_CALCULATION','_session','has','addClipboardHook','_monkeyPatchLogService','43780NDSRwD','source','_render','fillStyle','purple.300','function','RichTextEditingMutation','requireSession','fromEventSubject','registerBeforeClose','switchMap','onStarting','max','INotificationService','decorate','transformRemoteChangeset','colorClass','catch','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_handleJoinEvent','_startBlinking','_eventUnsubscribe','clsx','ranges','FormulaExecuteStageType','imageSourceType','href','reconnect','name','_cursorInfo$','clearTimeout','_assignedColors','join','onCommandExecuted','_getMergeRange','univer-text-gray-400','PENDING','_color','disableLocalCache','_univerInstanceService','/run/','...','filter','mutations','_disabled','_initEvent','_draw','_registerDependencies','_uploadLog','onPointerLeave$','_config','IMessageService','_id','uni.network.url-service','setOffsetY','NO_OTHER_CLIENTS_EDITING','UNIVER_DOC','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getConfig','_transformUndoRedoStack','transformStateCache','_online','getCoordByCell','_updateLocalCursor','endRow','getOffsetConfig','executionId','_scheduleHeartbeat','unitID','getDocRanges','getUnit','startColumn','isEditing','MoveRangeCommandId','Enter','IRemoteInstanceService','_maxFormulaLimit','getActiveRange','rgba(','PERMISSION_DENIED','_initCommandExecutedListener','getCurrentSkeleton','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_pollingInterval','IUIPartsService','CollaborationSessionService','save','spin','restore','onRendered','RECT','collaboration-client-ui.collabClient.tooltip.reconnect','getCurrentRevOfUnit','_ensureSubject','send','collaboration-client-ui.collabStatus.synced','polite','collaboration-client-ui.collaboration.closeRoom','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','useCallback','fillText','_context','_blinkIntervalTimer','unhandledrejection','_registerRenderDependencies','/universer-api/license/formula/limit/start','_scheduleClearOtherTimer','filename','Shape','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','pluginName','collaboration-client-ui.collabStatus.syncing','NOT_COLLAB','getColorFromTheme','push','stack','green.600','history','asObservable','jsx','_getAnchorBounding','_renderManagerService','ACTIVE_UNIT_EVENT_CHANNEL','getCurrentUnitOfType','_highlight','disposeUnit','subscribeEvent','_roomMembers$','FromArray','doc.mutation.rich-text-editing','NodePositionConvertToCursor','engine','useDependency','distinctUntilChanged','_hasFormulaInDirtyRanges','getColor','rgba','registerRefRange','UNIVER_SHEET','addHandlerCallback','onTransformChange$','collaboration-client-ui.session.will-retry','black','stage','getAllUnitsForType','@univerjs-pro/collaboration-client-ui','CollaborationDataLoaderController','_updateSubUnitFromURLParams','_updateCollabCursors','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UPDATE_CURSOR','m2Prime','CLOSE_ROOM','makeDirty','replaceDocRanges','loadOfflineData','triggerDblclick','toRgbString','_entities','selection','_pointerMoveDisposable','icon','true','Subject','_initStatusListener','symbol','_shapes','_saveTaskMap','Failed','MessageType','_transformService','UniverCollaborationClientPlugin','transformIMECache','runRefRangeMutations','contains','registerDependencies','transformMutationsWithChangeset','setAlpha','registerRenderModule','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_transformPreviousActiveRange','set','highlightSecond','_hovered','handleDeleteRangeMoveUp','Tooltip','DeleteRangeMoveLeftCommandId','dark:focus:univer-ring-offset-gray-800','IURLService','_backgroundColor','parseInt','0.2)','dirtyRanges','_drawTextRange','_lastPointer','579992JTbJrn','drawWith','_beforeCloseService','_updateURLWithCurrentState','color','button','transform','MemberService','font','collaboration-client-ui.permission.content','NodePositionConvertToRectRange','Vector2','RxDisposable','_unitStatus','_imageIoService','getTypeOfUnitAdded$','DocSelectionManagerService','collaboration-client-ui.session.collaboration-timeout','_cachedData','_collaborationUIEventService','getAncestorScale','toStringTag','redoState','USERS_LEAVE','selections','getRelativeToViewportCoord','_docSyncEditingCollabCursorService','origin','getUniverSheetInstance','_heartbeatTimer','Warning','getParam','ErrorCode','shareReplay','_colorAssignService','BrowserCollaborationSocketService','map','highlight','beginPath','backgroundColor','unshift','unload','_clearPolling','SOCKET_FAILED','with','AWAITING_WITH_PENDING','_setFormulaLimitStatus','collaboration-client-ui.formula.calculation.waiting','[Window\x20Error]:\x20','_scene','_checkCalculationAvailable','touchDependencies','_startSheetCollabCursor','univer-flex\x20univer-items-center\x20univer-justify-center','OffLineIcon','toPrimitive','isActive','Rect','LOCAL_CACHE_INTERVAL_KEY','call','stringify','span','version','univer-text-red-500','memberID','univer-inline-flex\x20univer-items-center\x20univer-justify-center','handleMoveRange','_toggleOnline','endColumn','DeleteRangeMoveUpCommandId','arc','height','64OvhOIF','_cursorShapes','SetSelectionsOperation','offsetY','_init','190107iWrgnK','SYNCED','_collaborationSessionService','_handleHover','InsertRangeMoveRightCommandId','_status$','then','getCurrentSelections','collaboration-client-ui.collabStatus.fetchMiss','findNodePositionByCharIndex','UnitStatus','onPointerEnter$','subunit','_offsetY','#FFF','handleIRemoveCol','debounce','getValue','_stopBlinking','_docSkeleton','SetDocZoomRatioOperation','RemoteUniscriptService','_entityInit$','SheetsSelectionsService','_initEntityListener','ONLINE','_handleHeartbeatEvent','getCurrentTypeOfUnit$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','collabCursorState$','text','searchParams','BuiltInUIPart','_taskIds','setStateCache','hide','[Unhandled\x20Rejection]:\x20','COLORS','OnLineIcon','maxFormulaLimit','getCellPositionByOffset','CollaborationUIEventService','univer-transition-all\x20univer-duration-200','_highlightSecond','override','addObject','Loading','JOIN_ROOM_FAILED','_range','transformByState','handleInsertCol','_memberService','_transformHistoryAndStateStack','docStateChange$','DesktopCollaborationStatusDisplayController','getUnhiddenWorksheets','UniverInstanceType','SetTextSelectionsOperation','getVpScrollXYInfoByPosToVp','_initResize','measureText','sheetId','urlChange$','SessionStatus','getItem','ILocalStorageService','object','releaseFormulaLimitUrl','getUnitId','_getSaveTimeout','next','useObservable','univer-h-8\x20univer-w-8\x20univer-rounded-lg','_localStorageService','Error','getLocalCacheKey','bind','_setupSubUnitSync','handleInsertRow','_onCursorUpdate','CollaborationEvent','red.300','DependentOn','ILocalCacheService','Injector','enableLocalCache','getTypeOfUnitDisposed$','TEXT_RANGE_LAYER_INDEX','post','_collabSessionService','[LogService\x20Error]:\x20','InsertColCommandId','newValue','rgba(255,\x20255,\x20255,\x200.01)','_onRefRangeChange','_initStatusComponent','toString','sessionTicket','data','syncEditingCollabCursor','toDisposable','all','IRenderManagerService','univer-text-blue-500','_send','_hideTimer','_cursor','code','_localeService','defineProperty','forEach','SetWorksheetActivateCommand','_sheetSkeletonManagerService','_showText','stageInfo','_injector','_clearOtherTimers','DocStateChangeManagerService','_syncEditingCollabCursorService','disposeWithMe','_colorIndex','_startCalculationLimit','isTransformMutationFailure','getActiveSheet','values','clearInterval','_handleEvent','get','_dataLoaderService','\x20-\x20','IConfigService','univer-m-0\x20univer-p-0','search','_saveCache','lineTo','ICommandService','_removeCollabCursors','onLocalMutation','setInterval','collaboration-client-ui.formula.calculation.unable','static','_docClipboardService','getSkeleton','startFormulaLimitUrl','column','roomMembers$','invokeId','connectInjector','functionsExecutedState','getMember','prototype','enableFrontendLog','_docSkeletonManagerService','setItem','Rectangle','Inject','key','2140460SxErIO','_urlService','getRenderById','_releaseCalculationLimit','showText','unit','setShapeProps','onMouseMove','slice','init','RegularPolygon','executeCommand','[CollaborationDataLoaderController]','SheetSkeletonManagerService','_removeClearOtherTimer','_collabCursorController','TEXT','totalFormulasToCalculate','textRanges','UniverCollaborationClientUIPlugin','_applyCommand','clickable','show','_logService','collab-rect-range-','CollaborationController','_instanceService','312328euMzFw','handleInsertRangeMoveDown','combineLatest','cursorInfo$','storage','_configService','SUCCESS','collab-text-anchor-','RevisionService','reason','setParam','iterator','univer-border-none\x20univer-bg-transparent','collaboration-client-ui.collaboration.single-unit.warning','_name','message','Plugin','_getLighterColor','_anchorDot','_initUnhandledRejectionListener','CommandType','focused$','takeUntil','getStateCache','sessionStatus$','size','indicator','IUniverInstanceService','runId','i18nKey',',\x200.2)','now','isInternalEditorID','isArray','SHEET_VIEWPORT_KEY','_refRangeService','getViewport','loadUnit','transformSelections','string','status','wsSessionTicketUrl','cursorInfo','min','1257SRvnvD','setActiveRange','roomMembers','getFocusedUnit','replace','_currentUsage','CONFLICT','HEADER_MENU','_initUserListener','getUnitStatus$','_httpService','debug','Module','SetFormulaCalculationStartMutation','_startDocCollabCursor','delete','FormulaExecutedStateType','addEventListener','exhaustSavingTask','entityInit$','_docStateChangeManagerService','unsubscribe','Disposable','18ZCduUr','SetFormulaCalculationNotificationMutation','fill','_cursors','CollaborationSocketService','m1Prime','/universer-api/license/formula/limit/status','_initWindowErrorListener','top','setTimeout','_getSheetObject','_getSessionTicket','_labelPosition','closePath','location','818xZfhxI','serializeRangeWithSheet','unitId','debounceTime','EffectRefRangId','3460mYuiNY','collaboration-client-ui.collabStatus.offline','merge','OFFLINE','limitInfo','_createSocketURL','_blinkTimer','getSheetObject','CollaborationStatus','strokeWidth','_docTransformSelectionsService','_notificationService','assignAColorForMemberID','SOCKET_FAILED_RETRY','IBeforeCloseService','Optional','add','eventID','Unknown\x20user','colno','currentSkeleton$','handleIRemoveRow','_memberID','rgb','getSheetBySheetId','_themeService','_isBlinkVisible','getOwnPropertyDescriptor','collaboration-client-ui.session.connection-failed'];_0x5604=function(){return _0x165a83;};return _0x5604();}const H={};let U=class{constructor(_0x3ba011,_0x464f90){const _0xcfc923=_0x1e1130;this[_0xcfc923(0x321)]=_0x3ba011,this[_0xcfc923(0x2f0)]=_0x464f90;}[_0x1e1130(0x323)](_0x44c164){const _0x4eadf2=_0x1e1130;this[_0x4eadf2(0x2b2)](_0x44c164),this[_0x4eadf2(0x32b)](_0x44c164);}[_0x1e1130(0x285)](_0x15aa3e){const _0x22b5b9=_0x1e1130;let {unitID:_0x4bce02}=_0x15aa3e,{redoCache:_0x5403a7}=this[_0x22b5b9(0x2f0)][_0x22b5b9(0x17f)](_0x4bce02)[_0x22b5b9(0x366)](p[_0x22b5b9(0x233)])[_0x22b5b9(0x267)]();if(_0x5403a7[_0x22b5b9(0x260)]===0x0)return _0x15aa3e;let _0x2194bd=t[_0x22b5b9(0x227)][_0x22b5b9(0x240)](_0x15aa3e[_0x22b5b9(0x2a1)][0x0]);for(let _0x41304c=0x0;_0x41304c<_0x5403a7[_0x22b5b9(0x260)];_0x41304c++){let _0x5bdfcd={'id':'doc.mutation.rich-text-editing','params':{..._0x5403a7[_0x41304c]}},_0x346040=this['_transformService']['transformMutation'](_0x2194bd,_0x5bdfcd,!0x1);if((0x0,h[_0x22b5b9(0x15a)])(_0x346040))throw _0x346040[_0x22b5b9(0x216)];_0x2194bd=_0x346040[_0x22b5b9(0x1e0)];}return{...t[_0x22b5b9(0x227)][_0x22b5b9(0x240)](_0x15aa3e),'mutations':[_0x2194bd]};}[_0x1e1130(0x2b2)](_0x5edfc9){const _0xf80546=_0x1e1130;let {unitID:_0x25d156}=_0x5edfc9,_0x1e6963=this['_renderManagerService']['getRenderById'](_0x25d156)[_0xf80546(0x366)](p[_0xf80546(0x233)]),{undoCache:_0x1585b9,redoCache:_0xae90c3}=_0x1e6963['getUndoRedoMutationParamsCache']();if(_0x1585b9[_0xf80546(0x260)]===0x0||_0xae90c3['length']===0x0)return;let _0x4d5a5a=[],_0x5f19df=[],_0x318f32=t[_0xf80546(0x227)][_0xf80546(0x240)](_0x5edfc9['mutations'][0x0]),_0x250b66=t['Tools'][_0xf80546(0x240)](_0x5edfc9[_0xf80546(0x2a1)][0x0]);for(let _0x3839f6=_0x1585b9[_0xf80546(0x260)]-0x1;_0x3839f6>=0x0;_0x3839f6--){let _0x3f55a3={'id':_0xf80546(0x2f8),'params':{..._0x1585b9[_0x3839f6]}},_0x128a3b={'id':'doc.mutation.rich-text-editing','params':{..._0xae90c3[_0x3839f6]}},_0x173f83=this['_transformService'][_0xf80546(0x249)](_0x318f32,_0x3f55a3,!0x1),_0x4c8e7b=this[_0xf80546(0x321)][_0xf80546(0x249)](_0x250b66,_0x128a3b,!0x1);if((0x0,h[_0xf80546(0x15a)])(_0x173f83))throw _0x173f83[_0xf80546(0x216)];if((0x0,h[_0xf80546(0x15a)])(_0x4c8e7b))throw _0x4c8e7b[_0xf80546(0x216)];_0x4d5a5a['unshift'](_0x173f83[_0xf80546(0x30e)][_0xf80546(0x26a)]),_0x5f19df[_0xf80546(0x362)](_0x4c8e7b[_0xf80546(0x30e)][_0xf80546(0x26a)]),_0x318f32=_0x173f83[_0xf80546(0x1e0)],_0x250b66=_0x4c8e7b[_0xf80546(0x1e0)];}_0x1e6963['setUndoRedoMutationParamsCache']({'undoCache':_0x4d5a5a,'redoCache':_0x5f19df});}['_transformPreviousActiveRange'](_0x240971){const _0x3fa970=_0x1e1130;let {unitID:_0x1e471c}=_0x240971,_0x32e62d=this[_0x3fa970(0x2f0)][_0x3fa970(0x17f)](_0x1e471c)[_0x3fa970(0x366)](p[_0x3fa970(0x233)]),_0x2212df=_0x32e62d[_0x3fa970(0x2c4)]();if(_0x2212df==null)return;let _0x41ce89=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x240971[_0x3fa970(0x2bb)],'actions':null,'textRanges':[_0x2212df]}}],_0x1920d8=this[_0x3fa970(0x321)][_0x3fa970(0x327)](_0x240971,_0x41ce89);if(!(0x0,h['isTransformMutationsWithChangesetSuccess'])(_0x1920d8))throw _0x1920d8[_0x3fa970(0x216)];let _0x55bd60=_0x1920d8[_0x3fa970(0x30e)][0x0][_0x3fa970(0x26a)]['textRanges'];Array['isArray'](_0x55bd60)&&_0x55bd60['length']&&_0x32e62d[_0x3fa970(0x1c5)](_0x55bd60[0x0]);}};U=T([w(0x0,h['ITransformService']),w(0x1,d['IRenderManagerService'])],U);function _0x77df(_0x5e94ff,_0x14d65e){_0x5e94ff=_0x5e94ff-0x11d;const _0x560417=_0x5604();let _0x77df94=_0x560417[_0x5e94ff];return _0x77df94;}let W=class{constructor(_0x10a9d,_0x3e3c1d,_0x23e581){const _0x3a8ed1=_0x1e1130;this[_0x3a8ed1(0x153)]=_0x10a9d,this['_transformService']=_0x3e3c1d,this[_0x3a8ed1(0x1d8)]=_0x23e581;}['transformStateCache'](_0x10df9d){this['_transformHistoryAndStateStack'](_0x10df9d);}[_0x1e1130(0x285)](_0x4b21a2){const _0x47e071=_0x1e1130;let {unitID:_0x58eb4a}=_0x4b21a2,{collaboration:_0x22d02a}=this[_0x47e071(0x1d8)][_0x47e071(0x1af)](_0x58eb4a);if(_0x22d02a[_0x47e071(0x260)]===0x0)return _0x4b21a2;let _0x2045a5=t[_0x47e071(0x227)][_0x47e071(0x240)](_0x4b21a2[_0x47e071(0x2a1)][0x0]);for(let _0x1cb5cf=0x0;_0x1cb5cf<_0x22d02a['length'];_0x1cb5cf++){let _0x4480c3={'id':_0x47e071(0x2f8),'params':{'unitId':_0x22d02a[_0x1cb5cf][_0x47e071(0x1ec)],..._0x22d02a[_0x1cb5cf][_0x47e071(0x350)]}},_0xe385ca=this[_0x47e071(0x321)][_0x47e071(0x249)](_0x2045a5,_0x4480c3,!0x1);if((0x0,h['isTransformMutationFailure'])(_0xe385ca))throw _0xe385ca[_0x47e071(0x216)];_0x2045a5=_0xe385ca[_0x47e071(0x1e0)];}return{...t['Tools'][_0x47e071(0x240)](_0x4b21a2),'mutations':[_0x2045a5]};}[_0x1e1130(0x3bb)](_0x20154c){const _0x1817f1=_0x1e1130;let {unitID:_0x39a41b}=_0x20154c,{history:_0x5e56aa,collaboration:_0x3083cf}=this[_0x1817f1(0x1d8)][_0x1817f1(0x1af)](_0x39a41b);if(_0x5e56aa[_0x1817f1(0x260)]===0x0&&_0x3083cf[_0x1817f1(0x260)]===0x0)return;let _0x5e1d57=[],_0x151917=[],_0x24c3bc=t['Tools']['deepClone'](_0x20154c[_0x1817f1(0x2a1)][0x0]),_0x280b31=t['Tools'][_0x1817f1(0x240)](_0x20154c[_0x1817f1(0x2a1)][0x0]);for(let _0x5c2f5f=_0x5e56aa[_0x1817f1(0x260)]-0x1;_0x5c2f5f>=0x0;_0x5c2f5f--){let _0x506637={'id':_0x1817f1(0x2f8),'params':{'unitId':_0x5e56aa[_0x5c2f5f][_0x1817f1(0x1ec)],..._0x5e56aa[_0x5c2f5f]['undoState']}},_0x522a5b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5e56aa[_0x5c2f5f][_0x1817f1(0x1ec)],..._0x5e56aa[_0x5c2f5f][_0x1817f1(0x350)]}},_0x3f88ad=this[_0x1817f1(0x321)][_0x1817f1(0x249)](_0x24c3bc,_0x506637,!0x1),_0x3f07ce=this[_0x1817f1(0x321)][_0x1817f1(0x249)](_0x280b31,_0x522a5b,!0x1);if((0x0,h[_0x1817f1(0x15a)])(_0x3f88ad))throw _0x3f88ad[_0x1817f1(0x216)];if((0x0,h[_0x1817f1(0x15a)])(_0x3f07ce))throw _0x3f07ce['error'];_0x5e1d57[_0x1817f1(0x362)]({..._0x5e56aa[_0x5c2f5f],'undoState':_0x3f88ad[_0x1817f1(0x30e)][_0x1817f1(0x26a)],'redoState':_0x3f07ce[_0x1817f1(0x30e)]['params']}),_0x24c3bc=_0x3f88ad[_0x1817f1(0x1e0)],_0x280b31=_0x3f07ce[_0x1817f1(0x1e0)];}_0x24c3bc=t[_0x1817f1(0x227)]['deepClone'](_0x20154c[_0x1817f1(0x2a1)][0x0]),_0x280b31=t[_0x1817f1(0x227)]['deepClone'](_0x20154c[_0x1817f1(0x2a1)][0x0]);for(let _0x5199d8=_0x3083cf[_0x1817f1(0x260)]-0x1;_0x5199d8>=0x0;_0x5199d8--){let _0x3e112d={'id':_0x1817f1(0x2f8),'params':{'unitId':_0x3083cf[_0x5199d8][_0x1817f1(0x1ec)],..._0x3083cf[_0x5199d8]['undoState']}},_0x36b13f={'id':_0x1817f1(0x2f8),'params':{'unitId':_0x3083cf[_0x5199d8]['unitId'],..._0x3083cf[_0x5199d8][_0x1817f1(0x350)]}},_0x58e3dd=this['_transformService'][_0x1817f1(0x249)](_0x24c3bc,_0x3e112d,!0x1),_0x86abbe=this[_0x1817f1(0x321)][_0x1817f1(0x249)](_0x280b31,_0x36b13f,!0x1);if((0x0,h['isTransformMutationFailure'])(_0x58e3dd))throw _0x58e3dd[_0x1817f1(0x216)];if((0x0,h[_0x1817f1(0x15a)])(_0x86abbe))throw _0x86abbe[_0x1817f1(0x216)];_0x151917['unshift']({..._0x3083cf[_0x5199d8],'undoState':_0x58e3dd[_0x1817f1(0x30e)][_0x1817f1(0x26a)],'redoState':_0x86abbe[_0x1817f1(0x30e)]['params']}),_0x24c3bc=_0x58e3dd[_0x1817f1(0x1e0)],_0x280b31=_0x86abbe[_0x1817f1(0x1e0)];}this['_docStateChangeManagerService'][_0x1817f1(0x3a9)](_0x39a41b,{'history':_0x5e1d57,'collaboration':_0x151917});}};W=T([w(0x0,(0x0,t['Inject'])(t[_0x1e1130(0x134)])),w(0x1,h[_0x1e1130(0x219)]),w(0x2,(0x0,t[_0x1e1130(0x17b)])(p[_0x1e1130(0x155)]))],W);let G=class{constructor(_0xf257d9,_0x721682){const _0x390265=_0x1e1130;this[_0x390265(0x153)]=_0xf257d9,this[_0x390265(0x321)]=_0x721682;}[_0x1e1130(0x1be)](_0x4edfff){const _0x5dfe5b=_0x1e1130;var _0x253f06;let _0x3b3075=this[_0x5dfe5b(0x153)]['get'](g[_0x5dfe5b(0x34a)]),_0x1ada70=(_0x253f06=_0x3b3075['getDocRanges']())==null?[]:_0x253f06;if(_0x1ada70[_0x5dfe5b(0x260)]===0x0)return;let _0x21b2fd=_0x4edfff['unitID'],_0x16ce57=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x21b2fd,'actions':null,'textRanges':_0x1ada70}}],_0x5df63d=this['_transformService'][_0x5dfe5b(0x327)](_0x4edfff,_0x16ce57);if(!(0x0,h[_0x5dfe5b(0x234)])(_0x5df63d))throw _0x5df63d[_0x5dfe5b(0x216)];let _0x5dc4e9=_0x5df63d['m2Prime'][0x0][_0x5dfe5b(0x26a)][_0x5dfe5b(0x18f)];Array[_0x5dfe5b(0x1b9)](_0x5dc4e9)&&_0x5dc4e9[_0x5dfe5b(0x260)]&&_0x3b3075[_0x5dfe5b(0x311)](_0x5dc4e9,{'unitId':_0x21b2fd,'subUnitId':_0x21b2fd},!0x1);}};G=T([w(0x0,(0x0,t['Inject'])(t[_0x1e1130(0x134)])),w(0x1,h[_0x1e1130(0x219)])],G);let K=class extends t[_0x1e1130(0x1da)]{constructor(_0x493a73,_0x5b8138,_0x3cf089,_0x129794,_0x23f638,_0x5d2eef,_0x181122,_0x518f77){const _0x310a86=_0x1e1130;super(),this[_0x310a86(0x1d8)]=_0x493a73,this[_0x310a86(0x20c)]=_0x5b8138,this['_docTransformIMECacheService']=_0x3cf089,this[_0x310a86(0x25c)]=_0x129794,this[_0x310a86(0x1f9)]=_0x23f638,this['_docSyncEditingCollabCursorService']=_0x5d2eef,this[_0x310a86(0x26e)]=_0x181122,this[_0x310a86(0x14c)]=_0x518f77,C(this,'_status$',new r[(_0x310a86(0x23f))](e[_0x310a86(0x1f7)][_0x310a86(0x2e7)])),this[_0x310a86(0x39f)]();}[_0x1e1130(0x39f)](){const _0x37d665=_0x1e1130;this[_0x37d665(0x157)](this[_0x37d665(0x20c)][_0x37d665(0x1d7)][_0x37d665(0x237)](_0xfeb6db=>{const _0x29fc41=_0x37d665;let _0x1b2eb7=this['_docStateChangeManagerService'][_0x29fc41(0x3bc)][_0x29fc41(0x237)](_0x3ad0cf=>{const _0x2ec89d=_0x29fc41;if(_0x3ad0cf==null)return;let {unitId:_0x37514c,redoState:_0x2db7ab,commandId:_0x2ecf22}=_0x3ad0cf;if(_0x37514c!==_0xfeb6db[_0x2ec89d(0x2bb)])return;let _0x35ced6={'id':_0x2ecf22,'type':t[_0x2ec89d(0x1ac)][_0x2ec89d(0x268)],'params':{'unitId':_0x37514c,'actions':_0x2db7ab[_0x2ec89d(0x21f)],'textRanges':null}};_0xfeb6db[_0x2ec89d(0x169)](_0x35ced6);});_0xfeb6db[_0x29fc41(0x157)](_0x1b2eb7),_0xfeb6db instanceof e['DocCollaborationEntity']&&_0xfeb6db[_0x29fc41(0x302)]({'onTransformIME':_0x8353b=>this[_0x29fc41(0x21e)]['transformIMECache'](_0x8353b),'onTransformState':_0x5024f2=>this[_0x29fc41(0x25c)][_0x29fc41(0x2b3)](_0x5024f2),'onTransformSelections':_0x4a6c23=>this['_docTransformSelectionsService']['transformSelections'](_0x4a6c23),'onSyncEditingCollabCursor':_0x4fa4ff=>this[_0x29fc41(0x354)][_0x29fc41(0x143)](_0x4fa4ff),'onTransformRemoteChangesetByIMECache':_0x29deff=>this[_0x29fc41(0x21e)]['transformRemoteChangeset'](_0x29deff),'onTransformRemoteChangesetByStateCache':_0xf83fe1=>this[_0x29fc41(0x25c)][_0x29fc41(0x285)](_0xf83fe1)});}));}};K=T([w(0x0,(0x0,t['Inject'])(p['DocStateChangeManagerService'])),w(0x1,(0x0,t[_0x1e1130(0x17b)])(e[_0x1e1130(0x196)])),w(0x2,(0x0,t[_0x1e1130(0x17b)])(U)),w(0x3,(0x0,t[_0x1e1130(0x17b)])(W)),w(0x4,(0x0,t[_0x1e1130(0x17b)])(G)),w(0x5,(0x0,t[_0x1e1130(0x17b)])(N)),w(0x6,n[_0x1e1130(0x2a9)]),w(0x7,(0x0,t['Inject'])(t[_0x1e1130(0x22a)]))],K);let q=class extends t[_0x1e1130(0x1da)]{constructor(_0x20ba57,_0x44b327,_0x2ac741,_0x11d88b){const _0x2a77b6=_0x1e1130;super(),this[_0x2a77b6(0x153)]=_0x20ba57,this[_0x2a77b6(0x1ce)]=_0x44b327,this[_0x2a77b6(0x194)]=_0x2ac741,this['_collaborationSessionService']=_0x11d88b,C(this,_0x2a77b6(0x205),void 0x0),this['_init']();}[_0x1e1130(0x386)](){const _0x48541c=_0x1e1130;this[_0x48541c(0x1e2)](),this[_0x48541c(0x1ab)](),this[_0x48541c(0x275)](),this['_initUserListener']();}[_0x1e1130(0x1cc)](){const _0xfbc804=_0x1e1130;this[_0xfbc804(0x157)](this[_0xfbc804(0x389)][_0xfbc804(0x262)][_0xfbc804(0x237)](_0x1a57be=>{this['_memberID']=_0x1a57be==null?void 0x0:_0x1a57be['memberID'];}));}[_0x1e1130(0x1e2)](){const _0x1e1a5a=_0x1e1130;let _0x547e74=_0x2e32d8=>{const _0x59a10d=_0x77df;var _0x2e1832;this[_0x59a10d(0x2a6)](_0x59a10d(0x216),_0x59a10d(0x36a)+_0x2e32d8['message']+'\x20at\x20'+_0x2e32d8[_0x59a10d(0x2e2)]+':'+_0x2e32d8['lineno']+':'+_0x2e32d8[_0x59a10d(0x202)]+'\x0a'+(((_0x2e1832=_0x2e32d8[_0x59a10d(0x216)])==null?void 0x0:_0x2e1832[_0x59a10d(0x2ea)])||''));};window[_0x1e1a5a(0x1d5)]('error',_0x547e74),this[_0x1e1a5a(0x157)](()=>{const _0x125baa=_0x1e1a5a;window[_0x125baa(0x25d)](_0x125baa(0x216),_0x547e74);});}[_0x1e1130(0x1ab)](){const _0x21745b=_0x1e1130;let _0x7ad641=_0x771084=>{const _0x499cdd=_0x77df;this[_0x499cdd(0x2a6)](_0x499cdd(0x216),_0x499cdd(0x3ab)+_0x771084[_0x499cdd(0x1a1)]);};window[_0x21745b(0x1d5)](_0x21745b(0x2de),_0x7ad641),this['disposeWithMe'](()=>{const _0x11d893=_0x21745b;window[_0x11d893(0x25d)](_0x11d893(0x2de),_0x7ad641);});}['_monkeyPatchLogService'](){const _0x461228=_0x1e1130;let _0x4b7c7a=this[_0x461228(0x194)][_0x461228(0x216)][_0x461228(0x12c)](this['_logService']);this[_0x461228(0x194)][_0x461228(0x216)]=(..._0x1691d0)=>{const _0x2c2ad2=_0x461228;let _0x1626e6=_0x1691d0[_0x2c2ad2(0x35e)](_0x280088=>_0x280088 instanceof Error?_0x280088[_0x2c2ad2(0x1a7)]+'\x0a'+_0x280088[_0x2c2ad2(0x2ea)]:String(_0x280088))[_0x2c2ad2(0x296)]('\x20');this[_0x2c2ad2(0x2a6)]('error',_0x2c2ad2(0x13a)+_0x1626e6),_0x4b7c7a(..._0x1691d0);},this[_0x461228(0x157)](()=>{const _0x27a2f5=_0x461228;this[_0x27a2f5(0x194)][_0x27a2f5(0x216)]=_0x4b7c7a;});}[_0x1e1130(0x2a6)](_0x4f9533,_0x36ce62){const _0x5d1b3d=_0x1e1130;try{let _0xdea928={'userId':this[_0x5d1b3d(0x205)],'logLabel':_0x4f9533,'content':_0x36ce62};this[_0x5d1b3d(0x1ce)]['post']('/universer-api/frontend/logs',{'body':_0xdea928})[_0x5d1b3d(0x287)](()=>{});}catch{}}};q=T([w(0x0,(0x0,t[_0x1e1130(0x17b)])(t['Injector'])),w(0x1,(0x0,t[_0x1e1130(0x17b)])(f[_0x1e1130(0x20f)])),w(0x2,t[_0x1e1130(0x25f)]),w(0x3,(0x0,t[_0x1e1130(0x17b)])(e[_0x1e1130(0x2cc)]))],q);function fe(_0x136664){const _0x48de02=_0x1e1130;var _0x400850,_0x9032b2;let _0xb00787=(_0x400850=_0x136664['stageInfo'])==null?void 0x0:_0x400850[_0x48de02(0x306)],_0x31815a=((_0x9032b2=_0x136664[_0x48de02(0x152)])==null?void 0x0:_0x9032b2[_0x48de02(0x18e)])||0x0;return _0xb00787===_[_0x48de02(0x28e)][_0x48de02(0x271)]&&_0x31815a>0x0;}function pe(_0x13e9f4){const _0x554a6b=_0x1e1130;return _0x13e9f4[_0x554a6b(0x174)]===_[_0x554a6b(0x1d4)][_0x554a6b(0x19e)];}let J=class extends t[_0x1e1130(0x1da)]{constructor(_0x2af958,_0x1b42ba,_0x3ac2e1,_0x2c6bb2,_0x277df9,_0x438ad2,_0x425331){const _0x3071fb=_0x1e1130;super(),this['_messageService']=_0x2af958,this[_0x3071fb(0x244)]=_0x1b42ba,this[_0x3071fb(0x19d)]=_0x3ac2e1,this[_0x3071fb(0x1ce)]=_0x2c6bb2,this[_0x3071fb(0x29d)]=_0x277df9,this[_0x3071fb(0x194)]=_0x438ad2,this[_0x3071fb(0x14c)]=_0x425331,C(this,_0x3071fb(0x2ca),null),C(this,_0x3071fb(0x2c3),0x0),C(this,_0x3071fb(0x1c9),0x0),C(this,_0x3071fb(0x3a8),[]),C(this,_0x3071fb(0x212),0x0),this[_0x3071fb(0x20e)]();}['_initCommandInterceptor'](){const _0x7ce579=_0x1e1130;this[_0x7ce579(0x157)](this[_0x7ce579(0x244)]['beforeCommandExecuted']((_0x22fd66,_0x44849e)=>{const _0x3f73b7=_0x7ce579;var _0x2fb5af;if(_0x22fd66['id']!==_[_0x3f73b7(0x1d1)]['id'])return;let _0x1eac03=_0x22fd66[_0x3f73b7(0x26a)];if(this['_hasFormulaInDirtyRanges']((_0x2fb5af=_0x1eac03[_0x3f73b7(0x337)])==null?[]:_0x2fb5af)&&!this[_0x3f73b7(0x36c)]())throw this['_checkAndWaitForCalculationPermission'](_0x22fd66,_0x44849e),this['_showGuardMessage'](),new t['CanceledError']();})),this[_0x7ce579(0x157)](this[_0x7ce579(0x244)][_0x7ce579(0x297)]((_0x544353,_0x5885d1)=>{const _0x201a7e=_0x7ce579;if(_0x544353['id']!==_[_0x201a7e(0x1dc)]['id'])return;let _0x15859c=_0x544353[_0x201a7e(0x26a)];if(fe(_0x15859c)){let _0x3291cb=(0x0,t[_0x201a7e(0x26d)])();this[_0x201a7e(0x3a8)][_0x201a7e(0x2e9)](_0x3291cb),this[_0x201a7e(0x159)](_0x3291cb);}else{if(pe(_0x15859c)&&this['_taskIds']['length']>0x0){let _0xde2b15=this[_0x201a7e(0x3a8)]['shift']();this['_releaseCalculationLimit'](_0xde2b15);}}}));}[_0x1e1130(0x211)](){const _0x3c760b=_0x1e1130;super['dispose'](),this[_0x3c760b(0x364)](),this[_0x3c760b(0x3a8)]=[],this[_0x3c760b(0x1c9)]=0x0,this[_0x3c760b(0x2c3)]=0x0,this[_0x3c760b(0x212)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x5633cd,_0x5c9ca8){const _0x1d3dfd=_0x1e1130;for(let _0x25ef19=0x0;_0x25ef19<0x1e;_0x25ef19++)try{if(await this[_0x1d3dfd(0x26c)](),this[_0x1d3dfd(0x36c)]()){this[_0x1d3dfd(0x191)](_0x5633cd,_0x5c9ca8),this['_messageService'][_0x1d3dfd(0x193)]({'content':this[_0x1d3dfd(0x14c)]['t'](_0x1d3dfd(0x264)),'type':a[_0x1d3dfd(0x320)][_0x1d3dfd(0x220)]});return;}await new Promise(_0x48d284=>{const _0x48cb5b=_0x1d3dfd;this[_0x48cb5b(0x2ca)]=window[_0x48cb5b(0x1e4)](_0x48d284,0x3e8);});}catch(_0x23f6f4){this['_logService']['error'](_0x23f6f4);}this[_0x1d3dfd(0x26e)][_0x1d3dfd(0x193)]({'content':this['_localeService']['t'](_0x1d3dfd(0x16b)),'type':a[_0x1d3dfd(0x320)][_0x1d3dfd(0x12a)]});}['_applyCommand'](_0x2153bd,_0x2600ff){const _0x5ead5f=_0x1e1130;try{this[_0x5ead5f(0x244)][_0x5ead5f(0x188)](_0x2153bd['id'],_0x2153bd[_0x5ead5f(0x26a)],_0x2600ff);}catch(_0x2343a9){this[_0x5ead5f(0x194)][_0x5ead5f(0x216)](_0x2343a9);}}[_0x1e1130(0x368)](_0x44c3ab,_0x3fb17d){const _0x49a6c0=_0x1e1130;_0x3fb17d<this[_0x49a6c0(0x212)]||(this[_0x49a6c0(0x212)]=_0x3fb17d,this['_maxFormulaLimit']=Number['parseInt'](_0x44c3ab[_0x49a6c0(0x3ae)]),this[_0x49a6c0(0x1c9)]=Number[_0x49a6c0(0x335)](_0x44c3ab[_0x49a6c0(0x236)]));}async['_startCalculationLimit'](_0x4af225){const _0x25f96a=_0x1e1130;let _0x17d8dd=Date['now']();try{var _0x5baef9,_0x388f6c;let _0x469e91=((_0x5baef9=this['_configService']['getConfig'](e[_0x25f96a(0x288)]))==null?void 0x0:_0x5baef9[_0x25f96a(0x16f)])||_0x25f96a(0x2e0),_0x4732cf=(await this[_0x25f96a(0x1ce)][_0x25f96a(0x138)](_0x469e91,{'body':JSON[_0x25f96a(0x376)]({'taskId':_0x4af225})}))[_0x25f96a(0x224)];if(((_0x388f6c=_0x4732cf['error'])==null?void 0x0:_0x388f6c['code'])!==y[_0x25f96a(0x35a)]['OK'])return;this[_0x25f96a(0x368)](_0x4732cf[_0x25f96a(0x1f3)],_0x17d8dd);}catch(_0x38d841){this['_logService'][_0x25f96a(0x216)](_0x38d841);}}async[_0x1e1130(0x26c)](_0x55a54c){const _0x58fa79=_0x1e1130;let _0x4fd098=Date[_0x58fa79(0x1b7)]();try{var _0x3f3a1a,_0x296a35;let _0x29ffcb=((_0x3f3a1a=this[_0x58fa79(0x19d)][_0x58fa79(0x2b1)](e[_0x58fa79(0x288)]))==null?void 0x0:_0x3f3a1a['getFormulaLimitStatusUrl'])||_0x58fa79(0x1e1),_0x322365=_0x55a54c?_0x29ffcb+'?taskId='+encodeURIComponent(_0x55a54c):_0x29ffcb,_0x438260=(await this['_httpService']['get'](_0x322365))[_0x58fa79(0x224)];if(((_0x296a35=_0x438260[_0x58fa79(0x216)])==null?void 0x0:_0x296a35[_0x58fa79(0x14b)])!==y[_0x58fa79(0x35a)]['OK'])return;this[_0x58fa79(0x368)](_0x438260[_0x58fa79(0x1f3)],_0x4fd098);}catch(_0x122eb2){this[_0x58fa79(0x194)][_0x58fa79(0x216)](_0x122eb2);}}async[_0x1e1130(0x180)](_0x12fe4d){const _0x433142=_0x1e1130;let _0x369b2e=Date[_0x433142(0x1b7)]();try{var _0xb969d8,_0x3cf2eb;let _0x159acb=((_0xb969d8=this[_0x433142(0x19d)]['getConfig'](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0xb969d8[_0x433142(0x123)])||'/universer-api/license/formula/limit/done',_0x159363=(await this[_0x433142(0x1ce)][_0x433142(0x138)](_0x159acb,{'body':JSON[_0x433142(0x376)]({'taskId':_0x12fe4d})}))[_0x433142(0x224)];if(((_0x3cf2eb=_0x159363[_0x433142(0x216)])==null?void 0x0:_0x3cf2eb[_0x433142(0x14b)])!==y['ErrorCode']['OK'])return;this['_setFormulaLimitStatus'](_0x159363[_0x433142(0x1f3)],_0x369b2e);}catch(_0x3b00cc){this['_logService'][_0x433142(0x216)](_0x3b00cc);}}['_checkCalculationAvailable'](){const _0x880666=_0x1e1130;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x880666(0x1c9)]>0x0;}[_0x1e1130(0x364)](){const _0x5641b6=_0x1e1130;this[_0x5641b6(0x2ca)]&&(clearTimeout(this[_0x5641b6(0x2ca)]),this[_0x5641b6(0x2ca)]=null);}[_0x1e1130(0x22e)](){const _0x336322=_0x1e1130;this[_0x336322(0x26e)][_0x336322(0x193)]({'content':this['_localeService']['t'](_0x336322(0x369)),'type':a[_0x336322(0x320)][_0x336322(0x3b5)]});}[_0x1e1130(0x2fd)](_0x266064){const _0x9e1e4a=_0x1e1130;for(let _0x2af1e8 of _0x266064){let {unitId:_0x49fe66,sheetId:_0x3467a9,range:_0x1783ba}=_0x2af1e8,_0x4b167d=this[_0x9e1e4a(0x29d)][_0x9e1e4a(0x2bd)](_0x49fe66);if(!_0x4b167d)continue;let _0x21792d=_0x4b167d[_0x9e1e4a(0x207)](_0x3467a9);if(!_0x21792d)continue;let _0x1891ca=_0x21792d['getCellMatrix']();for(let _0xf9ea84=_0x1783ba['startRow'];_0xf9ea84<=_0x1783ba[_0x9e1e4a(0x2b7)];_0xf9ea84++)for(let _0x2f8d4d=_0x1783ba[_0x9e1e4a(0x2be)];_0x2f8d4d<=_0x1783ba[_0x9e1e4a(0x37e)];_0x2f8d4d++){let _0x1174d8=_0x1891ca['getValue'](_0xf9ea84,_0x2f8d4d);if(_0x1174d8&&((0x0,t['isFormulaString'])(_0x1174d8['f'])||(0x0,t['isFormulaId'])(_0x1174d8['si'])))return!0x0;}}return!0x1;}};J=T([w(0x0,(0x0,t[_0x1e1130(0x17b)])(n['IMessageService'])),w(0x1,t[_0x1e1130(0x167)]),w(0x2,t['IConfigService']),w(0x3,(0x0,t[_0x1e1130(0x17b)])(f[_0x1e1130(0x20f)])),w(0x4,t[_0x1e1130(0x1b3)]),w(0x5,t[_0x1e1130(0x25f)]),w(0x6,(0x0,t[_0x1e1130(0x17b)])(t[_0x1e1130(0x22a)]))],J);let Y=class extends t['Disposable']{constructor(_0x2032bc,_0x36bfec,_0x83dce9){const _0x4f7715=_0x1e1130;super(),this[_0x4f7715(0x19d)]=_0x2032bc,this[_0x4f7715(0x129)]=_0x36bfec,this[_0x4f7715(0x24c)]=_0x83dce9,C(this,'_cachedData',new Map()),C(this,'_saveTaskMap',new Map()),C(this,'_disabled',!0x1);}[_0x1e1130(0x29c)](){this['_disabled']=!0x0;}[_0x1e1130(0x135)](){const _0x58b2d0=_0x1e1130;this[_0x58b2d0(0x2a2)]=!0x1;}get[_0x1e1130(0x23c)](){return this['_saveTaskMap'];}['dispose'](){const _0x184ea3=_0x1e1130;this[_0x184ea3(0x1d6)]()[_0x184ea3(0x38d)](()=>super[_0x184ea3(0x211)]());}async[_0x1e1130(0x312)](_0x3080f3){const _0x2a1b87=_0x1e1130;return this[_0x2a1b87(0x2a2)]?null:this[_0x2a1b87(0x129)][_0x2a1b87(0x120)]((0x0,e[_0x2a1b87(0x12b)])(_0x3080f3));}async['saveOfflineData'](_0x3ef344,_0x557dc7){const _0x367193=_0x1e1130;return!!this[_0x367193(0x129)]['setItem'](_0x3ef344,_0x557dc7);}[_0x1e1130(0x261)](_0x36e598,_0x319225,_0x2c2f94,_0x50f710){const _0x62c362=_0x1e1130;let _0x422872=this[_0x62c362(0x24c)][_0x62c362(0x2d3)](_0x36e598);this[_0x62c362(0x34c)][_0x62c362(0x32c)](_0x36e598,{'unitID':_0x36e598,'type':_0x319225,'awaitingChangeset':_0x2c2f94,'mutations':_0x50f710,'rev':_0x422872}),this['_saveTaskMap'][_0x62c362(0x273)](_0x36e598)||this['_scheduleSaving'](_0x36e598);}['_scheduleSaving'](_0x44b591){const _0x464fee=_0x1e1130;let _0x8198f2=this['_getSaveTimeout']();_0x8198f2===0x0?this[_0x464fee(0x165)](_0x44b591):this['_saveTaskMap'][_0x464fee(0x32c)](_0x44b591,setTimeout(()=>this[_0x464fee(0x165)](_0x44b591),_0x8198f2));}[_0x1e1130(0x125)](){const _0x2357ac=_0x1e1130;var _0x23eb1f;return(_0x23eb1f=this['_configService'][_0x2357ac(0x2b1)](e[_0x2357ac(0x374)]))==null?e[_0x2357ac(0x23e)]:_0x23eb1f;}[_0x1e1130(0x165)](_0x309e7e){const _0x19f20f=_0x1e1130;let _0xc969c=this[_0x19f20f(0x31e)][_0x19f20f(0x15f)](_0x309e7e);return _0xc969c!==void 0x0&&window['clearTimeout'](_0xc969c),this[_0x19f20f(0x129)][_0x19f20f(0x179)]((0x0,e[_0x19f20f(0x12b)])(_0x309e7e),this['_cachedData'][_0x19f20f(0x15f)](_0x309e7e))['then'](()=>this['_saveTaskMap']['delete'](_0x309e7e));}async[_0x1e1130(0x1d6)](){const _0x319486=_0x1e1130;let _0x4a650e=[];this[_0x319486(0x31e)][_0x319486(0x14e)]((_0xab725a,_0x3662ed)=>{const _0xa08b72=_0x319486;window[_0xa08b72(0x294)](_0xab725a),_0x4a650e[_0xa08b72(0x2e9)](this['_saveCache'](_0x3662ed)['then'](()=>{const _0xe9447b=_0xa08b72;this[_0xe9447b(0x31e)][_0xe9447b(0x1d3)](_0x3662ed);}));}),await Promise[_0x319486(0x145)](_0x4a650e);}};Y=T([w(0x0,t[_0x1e1130(0x162)]),w(0x1,t[_0x1e1130(0x121)]),w(0x2,(0x0,t['Inject'])(h[_0x1e1130(0x1a0)]))],Y);var X=class extends t['RxDisposable']{constructor(){const _0x256fa3=_0x1e1130;super(),C(this,_0x256fa3(0x11e),void 0x0),this[_0x256fa3(0x11e)]=(0x0,r[_0x256fa3(0x22f)])(window,'popstate')[_0x256fa3(0x251)]((0x0,r[_0x256fa3(0x1ae)])(this[_0x256fa3(0x21a)]),(0x0,r[_0x256fa3(0x35b)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x256fa3(0x218)])(void 0x0));}[_0x1e1130(0x1a2)](_0x5652f0,_0xeec58b,_0x1f8ceb=!0x1){const _0x1beae1=_0x1e1130;let _0xba6cae=new URL(window[_0x1beae1(0x1e9)]['href']);_0xba6cae['searchParams'][_0x1beae1(0x32c)](_0x5652f0,_0xeec58b),_0x1f8ceb?window[_0x1beae1(0x2ec)]['replaceState']('','',_0xba6cae[_0x1beae1(0x140)]()):window['history'][_0x1beae1(0x250)]('','',_0xba6cae[_0x1beae1(0x140)]());}['removeParam'](_0xc758dd,_0x240268=!0x1){const _0x26c977=_0x1e1130;let _0x48e552=new URL(window[_0x26c977(0x1e9)][_0x26c977(0x290)]);_0x48e552[_0x26c977(0x3a6)]['delete'](_0xc758dd),_0x240268?window[_0x26c977(0x2ec)][_0x26c977(0x263)]('','',_0x48e552[_0x26c977(0x140)]()):window[_0x26c977(0x2ec)][_0x26c977(0x250)]('','',_0x48e552[_0x26c977(0x140)]());}[_0x1e1130(0x359)](_0x3357ae){const _0x4793af=_0x1e1130;var _0x3d42ce;return(_0x3d42ce=new URL(window[_0x4793af(0x1e9)][_0x4793af(0x290)])['searchParams'][_0x4793af(0x15f)](_0x3357ae))==null?void 0x0:_0x3d42ce;}};let Z=class extends t[_0x1e1130(0x1a8)]{constructor(_0x164c21=H,_0x32a486,_0x52e576,_0x223c8f){const _0x34b3ab=_0x1e1130;super(),this['_config']=_0x164c21,this['_renderManagerService']=_0x32a486,this['_injector']=_0x52e576,this[_0x34b3ab(0x19d)]=_0x223c8f;let {..._0x2f2413}=(0x0,t[_0x34b3ab(0x1f1)])({},H,this[_0x34b3ab(0x2a8)]);this[_0x34b3ab(0x19d)][_0x34b3ab(0x242)](_0x34b3ab(0x229),_0x2f2413);}[_0x1e1130(0x281)](){const _0x3f6e0a=_0x1e1130;this[_0x3f6e0a(0x2a5)](),this['_initDependencies']();}[_0x1e1130(0x2d0)](){this['_registerRenderDependencies']();}[_0x1e1130(0x2a5)](){const _0x57c3f3=_0x1e1130;var _0x5bcbed;let _0x550286=[[j],[J],[G],[U],[W],[N],[D,{'useClass':X}],[f['ISocketService'],{'useClass':f['WebSocketService']}],[e[_0x57c3f3(0x133)],{'useClass':Y}],[E],[K],[V],[I],[k],[O]];this[_0x57c3f3(0x2a8)][_0x57c3f3(0x177)]&&_0x550286[_0x57c3f3(0x2e9)]([q]),(0x0,t[_0x57c3f3(0x326)])(this['_injector'],(0x0,t['mergeOverrideWithDependencies'])(_0x550286,(_0x5bcbed=this[_0x57c3f3(0x2a8)])==null?void 0x0:_0x5bcbed[_0x57c3f3(0x3b3)]));}[_0x1e1130(0x2df)](){const _0x3869fc=_0x1e1130;this['disposeWithMe'](this[_0x3869fc(0x2f0)][_0x3869fc(0x329)](t[_0x3869fc(0x3bf)]['UNIVER_DOC'],[R])),this[_0x3869fc(0x157)](this[_0x3869fc(0x2f0)][_0x3869fc(0x329)](t['UniverInstanceType'][_0x3869fc(0x301)],[B]));}['_initDependencies'](){const _0x130c3e=_0x1e1130;(0x0,t['touchDependencies'])(this[_0x130c3e(0x153)],[[I],[E],[K],[V],[O],[J],[k]]),this[_0x130c3e(0x2a8)]['enableFrontendLog']&&(0x0,t[_0x130c3e(0x36d)])(this[_0x130c3e(0x153)],[[q]]);}};C(Z,_0x1e1130(0x2e5),'UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),C(Z,_0x1e1130(0x23d),ie),C(Z,_0x1e1130(0x378),ae),Z=T([(0x0,t[_0x1e1130(0x132)])(e[_0x1e1130(0x322)]),w(0x1,d[_0x1e1130(0x146)]),w(0x2,(0x0,t['Inject'])(t[_0x1e1130(0x134)])),w(0x3,t['IConfigService'])],Z);let Q=class extends e[_0x1e1130(0x1df)]{constructor(_0x5010a9,_0x35a685,_0x292686,_0x17ef8b,_0x2d5b44){super(_0x5010a9,_0x35a685,_0x292686,_0x17ef8b,_0x2d5b44);}async['createSocket'](_0x353b94){const _0x2c6c2d=_0x1e1130;let _0x459689=await this[_0x2c6c2d(0x1e6)](),_0x17b4c8=this[_0x2c6c2d(0x1f4)](_0x353b94,_0x459689);return this[_0x2c6c2d(0x221)](_0x17b4c8);}['_createSocketURL'](_0x556034,_0x37f085){const _0x4f5083=_0x1e1130;let _0x10502a=typeof window>'u'?new URL(_0x556034):new URL(_0x556034,window[_0x4f5083(0x1e9)][_0x4f5083(0x355)]);_0x10502a[_0x4f5083(0x3a6)]['set'](_0x4f5083(0x141),_0x37f085);let _0x1e515a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4f5083(0x1e9)][_0x4f5083(0x164)]);return _0x1e515a[_0x4f5083(0x15f)](_0x4f5083(0x1b4))&&_0x10502a[_0x4f5083(0x3a6)][_0x4f5083(0x32c)](_0x4f5083(0x1b4),_0x1e515a[_0x4f5083(0x15f)](_0x4f5083(0x1b4))),_0x10502a[_0x4f5083(0x140)]();}async[_0x1e1130(0x1e6)](){const _0x48ebc6=_0x1e1130;var _0x1bdd5f,_0x58f001,_0x2d71a0;let _0xad38af=this['_configService'][_0x48ebc6(0x2b1)](e[_0x48ebc6(0x288)]),_0x30543e=(_0x1bdd5f=_0xad38af==null?void 0x0:_0xad38af[_0x48ebc6(0x1c1)])==null?e['DEFAULT_WS_SESSION_TICKET_URL']:_0x1bdd5f;return(_0x58f001=(_0x2d71a0=(await this[_0x48ebc6(0x1ce)]['get'](_0x30543e,{'headers':{'Content-Type':'application/json'}}))[_0x48ebc6(0x224)])==null?void 0x0:_0x2d71a0['ticket'])==null?'':_0x58f001;}};Q=T([w(0x0,(0x0,t[_0x1e1130(0x17b)])(t[_0x1e1130(0x134)])),w(0x1,(0x0,t['Inject'])(f[_0x1e1130(0x20f)])),w(0x2,t[_0x1e1130(0x162)]),w(0x3,t[_0x1e1130(0x25f)]),w(0x4,h[_0x1e1130(0x228)])],Q);let $=class extends t[_0x1e1130(0x1da)]{constructor(_0x17ba71,_0x566e7b,_0x3013ed){const _0x661a35=_0x1e1130;super(),this[_0x661a35(0x197)]=_0x17ba71,this[_0x661a35(0x1ce)]=_0x566e7b,this['_configService']=_0x3013ed;}async['runOnServer'](_0x5ed129,_0x433d71,_0x49c105,..._0x124125){const _0xf49e20=_0x1e1130;var _0x23e0ec,_0x1e588c,_0x4e860c,_0xc4c01d;let _0x38d100=this[_0xf49e20(0x197)][_0xf49e20(0x1c7)]();if(!_0x38d100)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x808b74=((_0x23e0ec=this[_0xf49e20(0x19d)][_0xf49e20(0x2b1)](e[_0xf49e20(0x3a3)]))==null?e[_0xf49e20(0x2b0)]:_0x23e0ec)+'/'+_0x5ed129+_0xf49e20(0x29e)+_0x433d71,_0x20d89c={'scriptId':_0x5ed129,'runId':(_0x1e588c=new URL(window[_0xf49e20(0x1e9)][_0xf49e20(0x290)])['searchParams'][_0xf49e20(0x15f)](_0xf49e20(0x1b4)))==null?'':_0x1e588c,'function':_0x433d71,'unitId':_0x38d100[_0xf49e20(0x124)](),'argsOfFunction':JSON[_0xf49e20(0x376)](_0x124125),'invokeId':(_0x4e860c=_0x49c105[_0xf49e20(0x172)])==null?'':_0x4e860c,'executionId':(_0xc4c01d=_0x49c105[_0xf49e20(0x2b9)])==null?'':_0xc4c01d};try{let _0xa20642=await this[_0xf49e20(0x1ce)]['post'](_0x808b74,{'body':_0x20d89c});return _0xa20642['body'][_0xf49e20(0x216)]&&_0xa20642[_0xf49e20(0x224)][_0xf49e20(0x216)]['code']!==y[_0xf49e20(0x35a)]['OK']?'Failed':_0xa20642[_0xf49e20(0x224)]['result'];}catch{return _0xf49e20(0x31f);}}};$=T([w(0x0,t[_0x1e1130(0x1b3)]),w(0x1,(0x0,t[_0x1e1130(0x17b)])(f[_0x1e1130(0x20f)])),w(0x2,t[_0x1e1130(0x162)])],$);const me=0x7530,he=_0x1e1130(0x2f1);var ge=class extends t[_0x1e1130(0x1da)]{constructor(){const _0x8f4993=_0x1e1130;super(),C(this,_0x8f4993(0x2aa),(0x0,t['generateRandomId'])()),C(this,'_selfUnitIDs',new Set()),C(this,_0x8f4993(0x265),new Map()),C(this,_0x8f4993(0x357),null),C(this,_0x8f4993(0x154),new Map()),C(this,_0x8f4993(0x347),new Map()),this[_0x8f4993(0x386)]();}[_0x1e1130(0x211)](){const _0x119a10=_0x1e1130;super[_0x119a10(0x211)](),this[_0x119a10(0x154)][_0x119a10(0x14e)]((_0x1e9ed1,_0x8553a7)=>this[_0x119a10(0x18b)](_0x8553a7)),this['_heartbeatTimer']&&window[_0x119a10(0x15d)](this['_heartbeatTimer']);}[_0x1e1130(0x1cd)](_0x1d3581){const _0x169ccd=_0x1e1130;return this[_0x169ccd(0x2d4)](_0x1d3581)[_0x169ccd(0x251)]((0x0,r[_0x169ccd(0x2fc)])());}['editingUnit'](_0x113826){const _0x3bcbd9=_0x1e1130;this[_0x3bcbd9(0x22c)][_0x3bcbd9(0x1b1)]===0x0&&this[_0x3bcbd9(0x2ba)](),this[_0x3bcbd9(0x22c)][_0x3bcbd9(0x1ff)](_0x113826),this[_0x3bcbd9(0x148)]({'type':0x0,'memberID':this[_0x3bcbd9(0x2aa)],'unitIDs':[_0x113826],'isForwarded':!0x1});}[_0x1e1130(0x2f4)](_0x54eda4){const _0x12e6b5=_0x1e1130;this[_0x12e6b5(0x22c)][_0x12e6b5(0x1d3)](_0x54eda4),this['_selfUnitIDs'][_0x12e6b5(0x1b1)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x12e6b5(0x357)]);}['_init'](){const _0x2a4129=_0x1e1130;this[_0x2a4129(0x157)]((0x0,t[_0x2a4129(0x144)])((0x0,r[_0x2a4129(0x22f)])(window,_0x2a4129(0x19c))[_0x2a4129(0x237)](_0x44dce1=>{const _0x123016=_0x2a4129;if(_0x44dce1[_0x123016(0x17c)]!==he||!_0x44dce1[_0x123016(0x13c)])return;let _0x3a2334=JSON['parse'](_0x44dce1[_0x123016(0x13c)]);this[_0x123016(0x15e)](_0x3a2334);}))),window[_0x2a4129(0x1d5)](_0x2a4129(0x363),()=>this[_0x2a4129(0x148)]({'type':0x1,'memberID':this[_0x2a4129(0x2aa)],'unitIDs':Array[_0x2a4129(0x255)](this[_0x2a4129(0x22c)])}));}[_0x1e1130(0x15e)](_0x32371f){const _0x4b2730=_0x1e1130;switch(_0x32371f[_0x4b2730(0x21d)]){case 0x0:this[_0x4b2730(0x289)](_0x32371f);break;case 0x1:this['_handleLeaveEvent'](_0x32371f);break;case 0x2:this[_0x4b2730(0x3a1)](_0x32371f);break;}}[_0x1e1130(0x289)](_0x5c739d){const _0x29ace8=_0x1e1130;let {unitIDs:_0x363956,memberID:_0x15646b,isForwarded:_0x57d883}=_0x5c739d;_0x363956[_0x29ace8(0x14e)](_0x169a61=>{const _0x37a71a=_0x29ace8;if(!_0x57d883&&this['_unitOnClients'][_0x37a71a(0x273)](_0x169a61)&&this[_0x37a71a(0x2d4)](_0x169a61)[_0x37a71a(0x126)](e[_0x37a71a(0x391)]['OTHER_CLIENTS_EDITING']),!this[_0x37a71a(0x265)][_0x37a71a(0x273)](_0x169a61)||!this[_0x37a71a(0x265)][_0x37a71a(0x15f)](_0x169a61)['has'](_0x15646b)){let _0x1c4b78=this[_0x37a71a(0x265)][_0x37a71a(0x15f)](_0x169a61)||new Set();_0x1c4b78['add'](_0x15646b),this[_0x37a71a(0x265)]['set'](_0x169a61,_0x1c4b78),this[_0x37a71a(0x2e1)](_0x15646b);}}),_0x57d883||this[_0x29ace8(0x148)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x29ace8(0x22c)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3c7aa6){const _0x272a30=_0x1e1130;this['_removeClearOtherTimer'](_0x3c7aa6);let _0x569a57=window[_0x272a30(0x1e4)](()=>{this['_unitOnClients']['forEach'](_0x1ac23d=>{const _0x24b7b8=_0x77df;_0x1ac23d[_0x24b7b8(0x1d3)](_0x3c7aa6);});},me*0x2);this[_0x272a30(0x154)]['set'](_0x3c7aa6,_0x569a57);}['_removeClearOtherTimer'](_0x16ce6c){const _0x2ba22b=_0x1e1130;if(this[_0x2ba22b(0x154)][_0x2ba22b(0x273)](_0x16ce6c)){let _0x5deaa3=this['_clearOtherTimers'][_0x2ba22b(0x15f)](_0x16ce6c);_0x5deaa3&&window[_0x2ba22b(0x294)](_0x5deaa3),this[_0x2ba22b(0x154)]['set'](_0x16ce6c,null);}}['_handleLeaveEvent'](_0x32b9e2){const _0x160bf4=_0x1e1130;let {memberID:_0x12baed,unitIDs:_0x881bf6}=_0x32b9e2;_0x881bf6[_0x160bf4(0x14e)](_0x547b72=>{const _0x194e9a=_0x160bf4;var _0x586e5e;let _0x1d6eea=this[_0x194e9a(0x265)]['get'](_0x547b72);_0x1d6eea&&(_0x1d6eea['delete'](_0x12baed),(_0x586e5e=this[_0x194e9a(0x2d4)](_0x547b72))==null||_0x586e5e[_0x194e9a(0x126)](_0x1d6eea[_0x194e9a(0x1b1)]===0x0?e[_0x194e9a(0x391)][_0x194e9a(0x2ad)]:e[_0x194e9a(0x391)][_0x194e9a(0x24a)]));}),this[_0x160bf4(0x18b)](_0x12baed);}[_0x1e1130(0x3a1)](_0x3d3b96){const _0x3cc359=_0x1e1130;this['_scheduleClearOtherTimer'](_0x3d3b96[_0x3cc359(0x37a)]);}[_0x1e1130(0x148)](_0xf94568){const _0x48ea84=_0x1e1130;localStorage[_0x48ea84(0x179)](he,JSON['stringify'](_0xf94568));}[_0x1e1130(0x2ba)](){const _0x48b9fe=_0x1e1130;this[_0x48b9fe(0x357)]=window[_0x48b9fe(0x16a)](()=>{const _0x121b46=_0x48b9fe;this[_0x121b46(0x148)]({'type':0x2,'memberID':this[_0x121b46(0x2aa)]});},me);}[_0x1e1130(0x2d4)](_0x4dc3ef){const _0x4c64b0=_0x1e1130;return this[_0x4c64b0(0x347)]['has'](_0x4dc3ef)||this[_0x4c64b0(0x347)][_0x4c64b0(0x32c)](_0x4dc3ef,new r[(_0x4c64b0(0x23f))](e[_0x4c64b0(0x391)][_0x4c64b0(0x2ad)])),this[_0x4c64b0(0x347)][_0x4c64b0(0x15f)](_0x4dc3ef);}};Object[_0x1e1130(0x14d)](exports,_0x1e1130(0x35d),{'enumerable':!0x0,'get':function(){return Q;}}),Object['defineProperty'](exports,_0x1e1130(0x309),{'enumerable':!0x0,'get':function(){return O;}}),Object[_0x1e1130(0x14d)](exports,_0x1e1130(0x3bd),{'enumerable':!0x0,'get':function(){return E;}}),exports[_0x1e1130(0x333)]=D,Object['defineProperty'](exports,_0x1e1130(0x39c),{'enumerable':!0x0,'get':function(){return $;}}),exports['SheetCollabCursorShape']=z,Object[_0x1e1130(0x14d)](exports,_0x1e1130(0x190),{'enumerable':!0x0,'get':function(){return Z;}}),exports['WebBrowserSingleActiveUnitService']=ge,exports['WebURLService']=X;