@univerjs-pro/collaboration-client-ui 1.0.1 → 1.0.3

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 (93) 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.css +37 -0
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +32 -0
  66. package/lib/types/controllers/collab-cursor/board-collab-cursor-render.controller.d.ts +21 -0
  67. package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +35 -0
  68. package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +21 -0
  69. package/lib/types/services/formula-calculation-guard/formula-calculation-guard.service.d.ts +38 -0
  70. package/lib/types/services/formula-calculation-guard/util.d.ts +11 -0
  71. package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +15 -0
  72. package/lib/umd/facade.js +1 -1
  73. package/lib/umd/index.js +1 -1
  74. package/lib/umd/locale/ar-SA.js +1 -1
  75. package/lib/umd/locale/ca-ES.js +1 -1
  76. package/lib/umd/locale/de-DE.js +1 -1
  77. package/lib/umd/locale/en-US.js +1 -1
  78. package/lib/umd/locale/es-ES.js +1 -1
  79. package/lib/umd/locale/fa-IR.js +1 -1
  80. package/lib/umd/locale/fr-FR.js +1 -1
  81. package/lib/umd/locale/id-ID.js +1 -1
  82. package/lib/umd/locale/it-IT.js +1 -1
  83. package/lib/umd/locale/ja-JP.js +1 -1
  84. package/lib/umd/locale/ko-KR.js +1 -1
  85. package/lib/umd/locale/pl-PL.js +1 -1
  86. package/lib/umd/locale/pt-BR.js +1 -1
  87. package/lib/umd/locale/ru-RU.js +1 -1
  88. package/lib/umd/locale/sk-SK.js +1 -1
  89. package/lib/umd/locale/vi-VN.js +1 -1
  90. package/lib/umd/locale/zh-CN.js +1 -1
  91. package/lib/umd/locale/zh-HK.js +1 -1
  92. package/lib/umd/locale/zh-TW.js +1 -1
  93. package/package.json +18 -18
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x409fb3=_0x4188;(function(_0x28836f,_0x1f47d1){const _0x1b7e66=_0x4188,_0x34962c=_0x28836f();while(!![]){try{const _0x1fe9ac=parseInt(_0x1b7e66(0x15f))/0x1+parseInt(_0x1b7e66(0x3fc))/0x2*(parseInt(_0x1b7e66(0x301))/0x3)+parseInt(_0x1b7e66(0x396))/0x4*(parseInt(_0x1b7e66(0x38f))/0x5)+parseInt(_0x1b7e66(0x261))/0x6+parseInt(_0x1b7e66(0x382))/0x7*(-parseInt(_0x1b7e66(0x211))/0x8)+parseInt(_0x1b7e66(0x2ad))/0x9+parseInt(_0x1b7e66(0x331))/0xa*(-parseInt(_0x1b7e66(0x1ba))/0xb);if(_0x1fe9ac===_0x1f47d1)break;else _0x34962c['push'](_0x34962c['shift']());}catch(_0x17114e){_0x34962c['push'](_0x34962c['shift']());}}}(_0x5cc2,0xbfca4),Object['defineProperty'](exports,Symbol[_0x409fb3(0x2eb)],{'value':_0x409fb3(0x399)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/ui'),r=require('rxjs'),i=require('rxjs/operators'),a=require('@univerjs/design'),o=require('@univerjs/icons'),s=require('react'),c=require('react/jsx-runtime'),l=require('@univerjs-pro/collaboration'),u=require('@univerjs-pro/license'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('@univerjs/engine-render'),m=require('@univerjs/network'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs/sheets-ui'),v=require('@univerjs/protocol');function ee(_0x47d830){const _0x598c40=_0x409fb3;switch(_0x47d830){case e['CollaborationStatus'][_0x598c40(0x321)]:return{'icon':(0x0,c[_0x598c40(0x350)])(o['OffLineIcon'],{}),'colorClass':_0x598c40(0x420),'i18nKey':_0x598c40(0x315),'tooltipKey':_0x598c40(0x1de),'clickable':!0x0,'indicator':_0x598c40(0x22b)};case e[_0x598c40(0x373)][_0x598c40(0x1dc)]:return{'icon':(0x0,c['jsx'])(o['OffLineIcon'],{}),'colorClass':_0x598c40(0x21a),'i18nKey':_0x598c40(0x1ea),'clickable':!0x1,'indicator':_0x598c40(0x22b)};case e[_0x598c40(0x373)][_0x598c40(0x253)]:return{'icon':(0x0,c[_0x598c40(0x350)])(o[_0x598c40(0x19c)],{}),'colorClass':_0x598c40(0x18d),'i18nKey':_0x598c40(0x2e7),'clickable':!0x1,'indicator':_0x598c40(0x2bd)};case e['CollaborationStatus'][_0x598c40(0x34b)]:return{'icon':(0x0,c[_0x598c40(0x350)])(o['OnLineIcon'],{}),'colorClass':_0x598c40(0x1c7),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x598c40(0x22b)};case e[_0x598c40(0x373)][_0x598c40(0x40e)]:case e['CollaborationStatus']['AWAITING_WITH_PENDING']:return{'icon':(0x0,c[_0x598c40(0x350)])(o[_0x598c40(0x19c)],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':'spin'};case e[_0x598c40(0x373)][_0x598c40(0x37a)]:return{'icon':(0x0,c[_0x598c40(0x350)])(o[_0x598c40(0x19c)],{}),'colorClass':_0x598c40(0x18d),'i18nKey':_0x598c40(0x40f),'clickable':!0x1,'indicator':_0x598c40(0x2bd)};case e[_0x598c40(0x373)][_0x598c40(0x419)]:return{'icon':(0x0,c[_0x598c40(0x350)])(o[_0x598c40(0x406)],{}),'colorClass':_0x598c40(0x385),'i18nKey':_0x598c40(0x177),'clickable':!0x1,'indicator':_0x598c40(0x22b)};}}function te(_0x5c8da1){const _0x5cf26d=_0x409fb3;let {status$:_0x3810fc}=_0x5c8da1,_0x4986d2=(0x0,n[_0x5cf26d(0x297)])(_0x3810fc,e['CollaborationStatus'][_0x5cf26d(0x34b)]),_0x545831=(0x0,n[_0x5cf26d(0x37c)])(t[_0x5cf26d(0x292)]),_0x10009f=(0x0,n[_0x5cf26d(0x37c)])(e['CollaborationSessionService']),_0x362f7d=(0x0,s[_0x5cf26d(0x39c)])(()=>ee(_0x4986d2),[_0x4986d2]),_0x4ba7b8=_0x4986d2!==e[_0x5cf26d(0x373)][_0x5cf26d(0x321)],_0xb9b984=_0x545831['t'](_0x362f7d[_0x5cf26d(0x3e4)]),_0x9d41c1=_0x362f7d[_0x5cf26d(0x345)]?_0x545831['t'](_0x362f7d[_0x5cf26d(0x345)]):_0xb9b984,_0x5149bd=(0x0,s[_0x5cf26d(0x2b1)])(()=>{_0x4ba7b8||_0x10009f['reconnect']();},[_0x4ba7b8,_0x10009f]),_0x296d79=(0x0,s[_0x5cf26d(0x2b1)])(_0x403eb2=>{const _0x450b51=_0x5cf26d;!_0x4ba7b8&&(_0x403eb2[_0x450b51(0x146)]==='Enter'||_0x403eb2[_0x450b51(0x146)]==='\x20')&&(_0x403eb2[_0x450b51(0x3fd)](),_0x10009f[_0x450b51(0x375)]());},[_0x4ba7b8,_0x10009f]),_0x5169e4=(0x0,c[_0x5cf26d(0x350)])(_0x5cf26d(0x1af),{'className':(0x0,a[_0x5cf26d(0x16a)])(_0x5cf26d(0x304),_0x5cf26d(0x2d9),_0x362f7d[_0x5cf26d(0x1d5)],{'univer-animate-spin':_0x362f7d[_0x5cf26d(0x1c0)]===_0x5cf26d(0x2bd),'univer-animate-pulse':_0x362f7d[_0x5cf26d(0x1c0)]==='pulse'}),'aria-hidden':'true','children':_0x362f7d[_0x5cf26d(0x348)]}),_0x1813a7=(0x0,c['jsx'])(_0x5cf26d(0x1af),{'className':(0x0,a['clsx'])('univer-flex\x20univer-items-center\x20univer-justify-center','univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x5cf26d(0x282),_0x5cf26d(0x1f4),_0x5cf26d(0x169),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x362f7d[_0x5cf26d(0x337)],'univer-cursor-default':!_0x362f7d[_0x5cf26d(0x337)]}),'children':_0x5169e4});return _0x362f7d[_0x5cf26d(0x337)]?(0x0,c['jsx'])(a[_0x5cf26d(0x183)],{'title':_0x9d41c1,'placement':_0x5cf26d(0x132),'children':(0x0,c[_0x5cf26d(0x350)])(_0x5cf26d(0x358),{'type':_0x5cf26d(0x358),'onClick':_0x5149bd,'onKeyDown':_0x296d79,'className':(0x0,a[_0x5cf26d(0x16a)])(_0x5cf26d(0x1e6),_0x5cf26d(0x408),'univer-m-0\x20univer-p-0','univer-appearance-none'),'aria-label':_0xb9b984+_0x5cf26d(0x3cb)+_0x9d41c1,'role':_0x5cf26d(0x171),'aria-live':_0x5cf26d(0x28c),'aria-atomic':_0x5cf26d(0x3dd),'children':_0x1813a7})}):(0x0,c['jsx'])(a[_0x5cf26d(0x183)],{'title':_0x9d41c1,'placement':_0x5cf26d(0x132),'children':(0x0,c[_0x5cf26d(0x350)])(_0x5cf26d(0x1cf),{'className':(0x0,a['clsx'])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x5cf26d(0x408),_0x5cf26d(0x32a)),'aria-label':_0xb9b984,'role':_0x5cf26d(0x171),'aria-live':_0x5cf26d(0x28c),'aria-atomic':_0x5cf26d(0x3dd),'children':_0x1813a7})});}function y(_0x3c2bba){'@babel/helpers - typeof';const _0x3ddaf4=_0x409fb3;return y=typeof Symbol==_0x3ddaf4(0x221)&&typeof Symbol[_0x3ddaf4(0x157)]==_0x3ddaf4(0x338)?function(_0xfb5b98){return typeof _0xfb5b98;}:function(_0x183499){const _0x44f966=_0x3ddaf4;return _0x183499&&typeof Symbol==_0x44f966(0x221)&&_0x183499[_0x44f966(0x1f8)]===Symbol&&_0x183499!==Symbol[_0x44f966(0x233)]?_0x44f966(0x338):typeof _0x183499;},y(_0x3c2bba);}function ne(_0x501bd7,_0x453f52){const _0x9e33b9=_0x409fb3;if(y(_0x501bd7)!=_0x9e33b9(0x198)||!_0x501bd7)return _0x501bd7;var _0x58b473=_0x501bd7[Symbol[_0x9e33b9(0x3a2)]];if(_0x58b473!==void 0x0){var _0xca5572=_0x58b473[_0x9e33b9(0x2e0)](_0x501bd7,_0x453f52||_0x9e33b9(0x404));if(y(_0xca5572)!=_0x9e33b9(0x198))return _0xca5572;throw TypeError(_0x9e33b9(0x1b5));}return(_0x453f52===_0x9e33b9(0x437)?String:Number)(_0x501bd7);}function re(_0x3c6a62){const _0x4d4fa1=_0x409fb3;var _0x214ee9=ne(_0x3c6a62,_0x4d4fa1(0x437));return y(_0x214ee9)==_0x4d4fa1(0x338)?_0x214ee9:_0x214ee9+'';}function b(_0x64eb6e,_0x579ded,_0x413a90){const _0x2b07b8=_0x409fb3;return(_0x579ded=re(_0x579ded))in _0x64eb6e?Object[_0x2b07b8(0x170)](_0x64eb6e,_0x579ded,{'value':_0x413a90,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x64eb6e[_0x579ded]=_0x413a90,_0x64eb6e;}function x(_0x1bbcc8,_0x5b5abc){return function(_0x4c6f22,_0x536678){_0x5b5abc(_0x4c6f22,_0x536678,_0x1bbcc8);};}function S(_0x11c49b,_0x427af1,_0x35d798,_0x2453a1){const _0x2b8dcd=_0x409fb3;var _0x23488c=arguments['length'],_0x3a65ed=_0x23488c<0x3?_0x427af1:_0x2453a1===null?_0x2453a1=Object[_0x2b8dcd(0x1ab)](_0x427af1,_0x35d798):_0x2453a1,_0x20e3ff;if(typeof Reflect==_0x2b8dcd(0x198)&&typeof Reflect[_0x2b8dcd(0x3dc)]==_0x2b8dcd(0x221))_0x3a65ed=Reflect['decorate'](_0x11c49b,_0x427af1,_0x35d798,_0x2453a1);else{for(var _0x46276f=_0x11c49b['length']-0x1;_0x46276f>=0x0;_0x46276f--)(_0x20e3ff=_0x11c49b[_0x46276f])&&(_0x3a65ed=(_0x23488c<0x3?_0x20e3ff(_0x3a65ed):_0x23488c>0x3?_0x20e3ff(_0x427af1,_0x35d798,_0x3a65ed):_0x20e3ff(_0x427af1,_0x35d798))||_0x3a65ed);}return _0x23488c>0x3&&_0x3a65ed&&Object[_0x2b8dcd(0x170)](_0x427af1,_0x35d798,_0x3a65ed),_0x3a65ed;}let C=class extends t[_0x409fb3(0x277)]{constructor(_0x4b65cd,_0x247679,_0x517744,_0x5ad4b5,_0x16f87f){const _0x489ec3=_0x409fb3;super(),this[_0x489ec3(0x1ce)]=_0x4b65cd,this['_injector']=_0x247679,this[_0x489ec3(0x1e4)]=_0x517744,this[_0x489ec3(0x42d)]=_0x5ad4b5,this[_0x489ec3(0x19b)]=_0x16f87f,b(this,_0x489ec3(0x390),new r[(_0x489ec3(0x392))](e[_0x489ec3(0x373)][_0x489ec3(0x34b)])),b(this,_0x489ec3(0x434),new Map()),this[_0x489ec3(0x27f)](),this['_initStatusListener'](),this[_0x489ec3(0x162)]();}[_0x409fb3(0x2c8)](){const _0x2b1aa3=_0x409fb3;this[_0x2b1aa3(0x434)][_0x2b1aa3(0x2e3)](_0x52b0d5=>_0x52b0d5['dispose']()),this[_0x2b1aa3(0x434)][_0x2b1aa3(0x365)](),this['_status$']['complete'](),super['dispose']();}[_0x409fb3(0x33d)](){const _0x516b4f=_0x409fb3;this[_0x516b4f(0x415)]((0x0,r[_0x516b4f(0x245)])(this[_0x516b4f(0x1ce)][_0x516b4f(0x1ff)],this[_0x516b4f(0x1ce)][_0x516b4f(0x186)](t[_0x516b4f(0x24d)][_0x516b4f(0x296)]),this[_0x516b4f(0x1ce)][_0x516b4f(0x186)](t['UniverInstanceType'][_0x516b4f(0x3bf)]))[_0x516b4f(0x423)]((0x0,i[_0x516b4f(0x3c9)])(()=>ie(this[_0x516b4f(0x1ce)])),(0x0,i[_0x516b4f(0x40b)])(),(0x0,r[_0x516b4f(0x37e)])(_0x2155dc=>_0x2155dc?this['_collaborationController'][_0x516b4f(0x32c)](_0x2155dc):(0x0,r['of'])(null)),(0x0,r['switchMap'])(_0x340917=>_0x340917?_0x340917[_0x516b4f(0x389)]:(0x0,r['of'])(e[_0x516b4f(0x373)]['NOT_COLLAB'])))['subscribe'](_0x52b0dc=>{const _0x48ef98=_0x516b4f;this[_0x48ef98(0x390)][_0x48ef98(0x1a1)](_0x52b0dc);}));}[_0x409fb3(0x27f)](){const _0x32cfd1=_0x409fb3;this['disposeWithMe'](this[_0x32cfd1(0x42d)]['registerComponent'](n[_0x32cfd1(0x37f)][_0x32cfd1(0x1ed)],()=>(0x0,n[_0x32cfd1(0x1f5)])(ae({'status$':this['_status$']['asObservable']()}),this['_injector'])));}[_0x409fb3(0x162)](){const _0x717e7a=_0x409fb3;let _0x56de38=this[_0x717e7a(0x19b)][_0x717e7a(0x306)][_0x717e7a(0x1ac)](_0x1e3e70=>{const _0x5beb1b=_0x717e7a;this[_0x5beb1b(0x202)](_0x1e3e70);});this['disposeWithMe']((0x0,t[_0x717e7a(0x19e)])(()=>_0x56de38[_0x717e7a(0x343)]()));}['_syncPresenceStatusComponents'](_0x2ede2e){const _0x4a94ab=_0x409fb3;let _0x28d62b=new Map(_0x2ede2e[_0x4a94ab(0x232)](_0x759064=>_0x759064['statusUIPart']!=null)[_0x4a94ab(0x3c9)](_0x5dbc73=>[_0x5dbc73[_0x4a94ab(0x2c9)],_0x5dbc73]));this[_0x4a94ab(0x434)][_0x4a94ab(0x2e3)]((_0x5b377b,_0x3716eb)=>{const _0x31abe1=_0x4a94ab;_0x28d62b[_0x31abe1(0x1e0)](_0x3716eb)||(_0x5b377b[_0x31abe1(0x2c8)](),this[_0x31abe1(0x434)][_0x31abe1(0x205)](_0x3716eb));}),_0x28d62b[_0x4a94ab(0x2e3)]((_0x568124,_0x317a6a)=>{const _0x196b2d=_0x4a94ab;this[_0x196b2d(0x434)][_0x196b2d(0x1e0)](_0x317a6a)||this[_0x196b2d(0x1a7)](_0x568124);});}['_registerPresenceStatusComponent'](_0x3ea45a){const _0x5806f6=_0x409fb3;let _0x173948=_0x3ea45a[_0x5806f6(0x303)];if(!_0x173948)return;let _0x3d4897=new t[(_0x5806f6(0x353))](),_0x2d0b7f=new r[(_0x5806f6(0x392))](e[_0x5806f6(0x373)][_0x5806f6(0x34b)]);_0x3d4897[_0x5806f6(0x2ce)]((0x0,t[_0x5806f6(0x19e)])(()=>_0x2d0b7f[_0x5806f6(0x27b)]())),_0x3d4897['add'](this['_uiPartsService']['registerComponent'](_0x173948,()=>(0x0,n['connectInjector'])(ae({'status$':_0x2d0b7f[_0x5806f6(0x1c2)]()}),this['_injector'])));let _0x53b495=this[_0x5806f6(0x1ce)][_0x5806f6(0x186)](_0x3ea45a[_0x5806f6(0x2c9)])[_0x5806f6(0x423)]((0x0,i[_0x5806f6(0x3c9)])(_0x4a9b7d=>(_0x4a9b7d==null?void 0x0:_0x4a9b7d[_0x5806f6(0x3ba)]())??null),(0x0,i['distinctUntilChanged'])(),(0x0,r['switchMap'])(_0x3a3ee8=>_0x3a3ee8?this['_collaborationController'][_0x5806f6(0x32c)](_0x3a3ee8):(0x0,r['of'])(null)),(0x0,r[_0x5806f6(0x37e)])(_0x34fbab=>(_0x34fbab==null?void 0x0:_0x34fbab['status$'])??(0x0,r['of'])(e[_0x5806f6(0x373)][_0x5806f6(0x34b)])))[_0x5806f6(0x1ac)](_0xe1b3b0=>_0x2d0b7f[_0x5806f6(0x1a1)](_0xe1b3b0));_0x3d4897['add']((0x0,t[_0x5806f6(0x19e)])(()=>_0x53b495[_0x5806f6(0x343)]())),this['_presenceStatusRegistrations'][_0x5806f6(0x16b)](_0x3ea45a[_0x5806f6(0x2c9)],_0x3d4897);}};C=S([x(0x0,t[_0x409fb3(0x21b)]),x(0x1,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x2,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x2fe)])),x(0x3,n['IUIPartsService']),x(0x4,(0x0,t['Inject'])(n[_0x409fb3(0x275)]))],C);function ie(_0x2b8249){const _0x290982=_0x409fb3;let _0x4f5a78=_0x2b8249[_0x290982(0x23e)](),_0x2f93da=_0x4f5a78==null?void 0x0:_0x4f5a78['getUnitId']();if(_0x2f93da&&!(0x0,t['isInternalEditorID'])(_0x2f93da))return _0x2f93da;let _0x444dfe=_0x2b8249[_0x290982(0x380)](t['UniverInstanceType'][_0x290982(0x296)]),_0x5b5809=_0x444dfe==null?void 0x0:_0x444dfe['getUnitId']();if(_0x5b5809&&!(0x0,t[_0x290982(0x2c6)])(_0x5b5809))return _0x5b5809;let _0x28df85=_0x2b8249[_0x290982(0x380)](t[_0x290982(0x24d)]['UNIVER_SHEET']);if(_0x28df85)return _0x28df85[_0x290982(0x3ba)]();let _0x4441fc=_0x2b8249[_0x290982(0x2b9)](t[_0x290982(0x24d)][_0x290982(0x296)])[_0x290982(0x1d9)](_0xd94b4=>!(0x0,t[_0x290982(0x2c6)])(_0xd94b4[_0x290982(0x3ba)]()));return _0x4441fc?_0x4441fc[_0x290982(0x3ba)]():null;}function _0x5cc2(){const _0x5f14ef=['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getColor','_initDependencies','_getScale','colno','removeRemotePresence','type','_selfUnitIDs','_blinkIntervalTimer','getUnitId','startRow','SheetSkeletonManagerService','dispose$','_textBubble','UNIVER_SHEET','_getLighterColor','pageIndex','searchParams','getSelectionInfo','[LogService\x20Error]:\x20','m2Prime','_scene','toRgbString','toISOString','map','post','\x20-\x20','_pointerMoveDisposable','getSheetObject','DocIMEInputManagerService','fillStyle','setUndoRedoMutationParamsCache','triggerDblclick','getTypeOfUnitDisposed$','handleInsertCol','[CollaborationDataLoaderController]','CollaborationSocketService','getMemberID','_toggleOffline','_stopBlinking','EffectRefRangId','getDocumentSkeletonColumnPagePathInfo','CommandType','decorate','true','/universer-api/frontend/logs','_pendingEntities','registerCommand','memberId','join','_collaborationUIEventService','i18nKey','[RemoteUniscriptService]:\x20no\x20focused\x20unit','disableLocalCache','bold\x2013px\x20Arial,\x20sans-serif','_initWindowErrorListener','primary','columnGroupId','parse','_handleHeartbeatEvent','OPERATION','urlChange$','InsertRangeMoveDownCommandId','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','IMessageService','registerRefRange','fromEventSubject','currentTheme$','getCurrentRevOfUnit','loadOfflineData',':backup:','_id','IConfigService','COLORS','_startEntity','386GmkWyx','preventDefault','UniverCollaborationClientUIPlugin','error','font','entries','SetSelectionsOperation','_timeoutState$','default','_name','OnLineIcon','_unitStatus','univer-border-none\x20univer-bg-transparent','SHEET_VIEWPORT_KEY','socket$','distinctUntilChanged','isEditing','_bindAdapter','AWAITING','collaboration-client-ui.collabStatus.syncing','_disposeEntitiesForType','OTHER_CLIENT_EDITING','replace','purple.300','_revisionService','disposeWithMe','from','getStateCache','code','SYNCED','_lastPointer','throttle','drawWith','_updateSubUnitFromURLParams','getConfig','_drawAnchor','univer-text-red-500','labelHorizontalPosition','_labelHorizontalPosition','pipe','get','InsertRangeMoveRightCommandId','measureText','OTHER_CLIENTS_EDITING','WebBrowserSingleActiveUnitService','_localeService','handleInsertRangeMoveRight','_sheetSkeletonManagerService','FOOTER','_uiPartsService','transformMutationsWithChangeset','throttleTime','RECT','_highlight','_docStateChangeManagerService','isFinite','_presenceStatusRegistrations','collaboration-client-ui.collaboration.single-unit.warning','BrowserCollaborationSocketService','string','bottom','handleInsertRow','collaboration-client-ui.session.collaboration-timeout','collaboration-client-ui.session.connection-failed','_sendLocalPresence','@univerjs-pro/collaboration-client-ui','message','restore','_toggleOnline','send','endColumn','_initialized','isTransformMutationFailure','getUnit','invokeId','_cursors','_messageIds','getParam','getLocalCacheKey','shareInterval','key','ONLINE','currentSkeleton$','_memberID','left','_shapes','ILocalCacheService','UniverDocsPlugin','SetWorksheetActivateCommand','_cursor','UPDATE_CURSOR','WebSocketService','ACTIVE_UNIT_EVENT_CHANNEL','size','reload','RegularPolygon','VIEW_MAIN','iterator','timeoutState$','touchDependencies','enableLocalCache','moveTo','_entities','#FFF','_getSessionTicket','1368304PVXFZj','NodePositionConvertToRectRange','_backgroundColor','_initPresenceStatusComponents','setAlpha','_memberService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','name','split','onCommandExecuted','dark:focus:!univer-ring-offset-gray-800','clsx','set','_syncAdapters','setTimeout','filename','catch','defineProperty','status','unitID','contains','collabCursorState$','UniverCollaborationPlugin','UniverLicensePlugin','collaboration-client-ui.collabStatus.synced','_messageService','transformStateCache','requireSession','stage','_collaborationSessionService','_onCursorUpdate','backupOfflineData','_localCacheService','DependentOn','init','body','Tooltip','RxDisposable','debug','getCurrentTypeOfUnit$','onPointerLeave$','ThemeService','Shape','_uploadLog','_isBlinkVisible','TRANSFORM_CHANGE_OBSERVABLE_TYPE','univer-text-blue-500','_clearOtherTimers','application/json','handleInsertRangeMoveDown','allSettled','_getAnchorBounding','loadedBlocks','SUBMIT_CHANGESET_TIMEOUT','range','_collabCursorController','_transformUndoRedoStack','object','width','handleIRemoveCol','_presenceAdapterRegistry','LoadingMultiIcon','/run/','toDisposable','handleIRemoveRow','NO_OTHER_CLIENTS_EDITING','next','_heartbeatTimer','_eventUnsubscribe','rgba','update','getCellIndexByOffset','_registerPresenceStatusComponent','_handleEvent','now','finally','getOwnPropertyDescriptor','subscribe','DocumentSkeletonPageType','pluginName','span','isArray','_onCursorDelete','getActiveSheet','fill','collaboration-client-ui.snapshotLoading.timeout','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_docTransformSelectionsService','executeCommand','getCurrentSkeleton','_urlService','17861833oZvSBh','isActive','ColorKit','_adapter','roomMembers','collaboration-client-ui.conflict.processing','indicator','exhaustSavingTask','asObservable','lineTo','DataLoaderService','_online','_init','univer-text-gray-400','removeEventListener','_handleJoinEvent','height','RefRangeService','canRenderAnchor','includes','_univerInstanceService','div','unhandledrejection','clearInterval','location','toString','TEXT_RANGE_LAYER_INDEX','colorClass','then','NodePositionConvertToCursor','_draw','find','RevisionService','redoState','CONFLICT','getAncestorScale','collaboration-client-ui.collabClient.tooltip.reconnect','getCoordByCell','has','addObject','_clearRemotePresences','IUIPartsService','_collaborationController','_activeSaveTaskMap','univer-inline-flex\x20univer-items-center\x20univer-justify-center','deepClone','_handleHover','_removeRemotePresence','collaboration-client-ui.collabStatus.conflict','getMergeData','_updateCollabCursors','HEADER_MENU','params','Error','event$','replaceSelectionInfoWithoutRefresh','_themeService','ILogService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','connectInjector','_colorIndex','setConfig','constructor','registerRenderModule','length','UnitStatus','startsWith','_anchorDot','m1Prime','focused$','clearOfflineData',',\x200.2)','_syncPresenceStatusComponents','options','Loading','delete','IURLService','CollaborationSessionService','generateRandomId','_conflictNotification','replaceState','timer','CONFLICT_PROCESSING','_registerRenderDependencies','CONFLICT_CACHE_CLEAR_FAILED','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','IRenderManagerService','111184fxoDwQ','_transformService','_adapterDisposables','pageType','setActiveRange','subUnitId','content','_transformHistoryAndStateStack','handleMoveRange','univer-text-orange-500','IUniverInstanceService','UniverNetworkPlugin','showText','_drawTextRange','_setupBeforeClosingHandler','_hovered','function','_disabled','_setupSubUnitSync','row','FromArray','registerDependencies','debounce','ICommandService','tableSource','collaboration-client-ui.permission.title','static','getRangePointData','runId','segmentPage','mapTo','_initUserListener','pointer','filter','prototype','blue.400','ITransformService','number','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','HTTPService','Rect','_beforeCloseService','IImageIoService','_entityInit$','black','getFocusedUnit','CollaborationUIEventService','HEADER','collaboration-client-ui.permission.content','_send','red.300','undoState','merge','resize','max','getValue','_docTransformStateCacheService','_offsetY','_isDisposed','takeUntil','UniverInstanceType','focusedId','onMouseMove','getRenderUnitById','RemoteUniscriptService','_logService','FETCH_MISS','sessionStatus$','collab-rect-range-','loadUnit','MemberService','registerComponent','pushState','_labelPosition','SheetsSelectionsService','values','IBeforeCloseService','Injector','tableId','transformByState','2945808QbKkwu','getSkeleton','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','saveOfflineData','save','_clearBlockProgressWatch','mutations','_initUnhandledRejectionListener','setItem','_commandService','unshift','alert','_initEvent','unit','enableDocumentCollaborationUI','all','_assignedColors','sheetId','1.0.1','arc','IUnitPresenceUIAdapterRegistry','data','Disposable','_disposed','_configService','history','complete','_cachedData','highlightSecond','_docTransformIMECacheService','_initStatusComponent','_onRefRangeChange','state','univer-transition-all\x20univer-duration-200','ISnapshotServerService','_docSelectionManagerService','enableFrontendLog','getCollabCursors$','UniverRenderEnginePlugin','_transformPreviousActiveRange','onPointerEnter$','loading','canRenderSelection','polite','setOffsetY','roomMembers$','_doCreateSocket','rgba(255,\x20255,\x20255,\x200.01)','SOCKET_FAILED_RETRY','LocaleService','getDocRanges','SnapshotLoadStage','deserializeRangeWithSheet','UNIVER_DOC','useObservable','getItem','CollaborationEvent','search','DOC_RANGE_TYPE','transformRemoteChangeset','activate','Tools','_showText','strokeWidth','Button','entityInit$','show','_renderManagerService','LOCAL_CACHE_INTERVAL','_initEntityListener','DocSelectionManagerService','UniverDocsUIPlugin','_collabCursorState$','presenceKind','green.600','setShapeProps','8358669FquBUZ','wsSessionTicketUrl','rgb','_range','useCallback','popstate','slice','clearTimeout','_replaceConflictNotification','stack','_roomMembers$','PERMISSION_DENIED','getAllUnitsForType','doc.mutation.rich-text-editing','memberID','source','spin','highlight','Subject','endOffset','MoveRangeCommandId','prepareTransformSelections','Vector2','_removeCollabCursors','evenodd','isInternalEditorID','GLOBAL','dispose','unitType','getSheetBySheetId','_imageIoService','RemoveColCommandId','getMember','add','_retryConflictCacheClear','combineLatest','lineno','addClipboardHook','activeSheet$','getColorFromTheme','bind','packageName','isTransformMutationsWithChangesetSuccess','_trackActiveSaveTask','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_getSheetObject','min','collaboration-client-ui.snapshotLoading.refresh','_latestStates','backgroundColor','push','call','RemoveRowCommandId','TEXT','forEach','Plugin','_colorAssignService','UniverCollaborationClientPlugin','collaboration-client-ui.collabStatus.fetchMiss','disposeUnit','setStateCache','Unknown\x20user','toStringTag','_render','every','_getSaveTimeout','_collabSessionService','DesktopCollaborationStatusDisplayController','columnIndex','collaboration-client-ui.conflict.clearFailed','jsxs','_session','_docSkeletonManagerService','_localStorageService','clearRemotePresences','_getMergeRange','getLocalPresence','offsetY','registerBeforeClose','version','_startBlinking','CollaborationController','hide','_httpService','17856FskrLF','_anchor','statusUIPart','univer-flex\x20univer-items-center\x20univer-justify-center','LOCAL_CACHE_INTERVAL_KEY','adapters$','remove','textRanges','parseInt','assignAColorForMemberID','origin','flatMap','state$','_createSocketURL','collaboration-client-ui.collaboration.closeRoom','_docSyncEditingCollabCursorService','setInterval','unitId','createElement','setParam','collaboration-client-ui.collabStatus.offline','_initCommandExecutedListener','_context','getTypeOfUnitAdded$','_cursorShapes','CLOSE_ROOM','result','saveImage','ISocketService','yellow.400','endRow','USERS_LEAVE','OFFLINE','_isVisibleUnit','_updateMessage','handleDeleteRangeMoveUp','Warning','_unitOnClients','_clearTimeoutState','subunit','Inject','univer-m-0\x20univer-p-0','_document','getCollabEntity$','top','_handleLeaveEvent','stringify','Rectangle','20UTzjRh','_ensureSubject','_startSheetCollabCursor','Workbook','_saveCache','_notificationService','clickable','symbol','_watchBlockProgress','WarningIcon','color','ILocalStorageService','_initStatusListener','DEFAULT_WS_SESSION_TICKET_URL','text','collab-text-anchor-','timeoutId','kind','unsubscribe','ranges','tooltipKey','saveTaskMap','findNodePositionByCharIndex','icon','small','collab-text-range-','NOT_COLLAB','SetTextSelectionsOperation','_scheduleHeartbeat','getActiveRange','_hover','jsx','getViewport','cursorInfo$','DisposableCollection','_scheduleClearOtherTimer','SessionStatus','fillText','_color','button','selectedIds','column','createSocket','collaboration-client-ui.conflict.title','removeItem','startOffset','Failed','_adapterRegistry','InsertRowCommandId','labelPosition','onTransformChange$','SetDocZoomRatioOperation','clear','_startDocCollabCursor','CollaborationUIEventId','sessionTicket','SheetCollabCursorShape','_drawRectRange','storage','addEventListener','createInstance','_blockProgressWatches','_cursorInfo$','snapshot-loading-timeout','getUndoRedoMutationParamsCache','makeDirty','CollaborationStatus','_showConflictProcessingNotification','reconnect','_instanceService','[Unhandled\x20Rejection]:\x20','_updateLocalCursor','removeParam','PENDING','refreshLabel','useDependency','_refreshCollabCursors','switchMap','BuiltInUIPart','getCurrentUnitOfType','_injector','154fmWhiC','with','_dataLoaderService','univer-text-green-500','INotificationService','some','SOCKET_FAILED','status$','transformMutation','_snapshotLoadingService','subscribeEvent','getSheetId','href','2010925OGRUJR','_status$','RichTextEditingMutation','BehaviorSubject','_monkeyPatchLogService','runRefRangeMutations','timedOut','4wPNIVx','cursorInfo','addObjects','Module','transformIMECache','_removeClearOtherTimer','useMemo','selection','MessageType','_scheduleSaving','_hideTimer','collaboration-client-ui.session.will-retry','toPrimitive','uni.network.url-service','handleDeleteRangeMoveLeft','_saveTaskMap','_retryingConflictCacheUnitIDs','_config','...','_refRangeService','addHandlerCallback','_highlightSecond','eventID','_registerDependencies','jiqing.500','_blinkTimer','_disposeEntity'];_0x5cc2=function(){return _0x5f14ef;};return _0x5cc2();}function ae(_0x2f0da4){let {status$:_0x9e3572}=_0x2f0da4;return function(){const _0x5be08a=_0x4188;return(0x0,c[_0x5be08a(0x350)])(te,{'status$':_0x9e3572});};}var oe=_0x409fb3(0x137),se=_0x409fb3(0x273);const w={'id':'collaboration-client-ui.operation.update-remote-unit-presence','type':t[_0x409fb3(0x3db)][_0x409fb3(0x3ed)],'handler':(_0x58f932,_0x416eaa)=>{const _0xa9c624=_0x409fb3;let _0x18a758=_0x58f932[_0xa9c624(0x424)](n[_0xa9c624(0x275)])[_0xa9c624(0x424)](_0x416eaa[_0xa9c624(0x2c9)]);if(!_0x18a758)return!0x1;switch(_0x416eaa['update'][_0xa9c624(0x3b7)]){case _0xa9c624(0x16b):return _0x18a758['setRemotePresence'](_0x416eaa[_0xa9c624(0x1a5)][_0xa9c624(0x281)]),!0x0;case _0xa9c624(0x307):return _0x18a758[_0xa9c624(0x3b6)](_0x416eaa[_0xa9c624(0x1a5)][_0xa9c624(0x312)],_0x416eaa['update'][_0xa9c624(0x3e1)]),!0x0;case _0xa9c624(0x365):return _0x18a758[_0xa9c624(0x2f7)](_0x416eaa[_0xa9c624(0x1a5)][_0xa9c624(0x312)]),!0x0;default:return!0x1;}}},ce={};let T=class extends t[_0x409fb3(0x184)]{constructor(_0x4e8d58,_0x1f9c0f){const _0x3f359c=_0x409fb3;super(),this['_docClipboardService']=_0x4e8d58,this[_0x3f359c(0x2cb)]=_0x1f9c0f,this[_0x3f359c(0x1c6)]();}['_init'](){const _0x5d7db6=_0x409fb3;let _0xa1b01d=this;this['disposeWithMe'](this['_docClipboardService'][_0x5d7db6(0x2d2)]({'onBeforePasteImage':async _0x12bc03=>{const _0x305b72=_0x5d7db6;let _0x25f454=await _0xa1b01d['_imageIoService'][_0x305b72(0x31c)](_0x12bc03);return _0x25f454?{'source':_0x25f454[_0x305b72(0x2bc)],'imageSourceType':_0x25f454['imageSourceType']}:null;}}));}};T=S([x(0x0,f['IDocClipboardService']),x(0x1,t[_0x409fb3(0x23b)])],T);const le=[_0x409fb3(0x413),_0x409fb3(0x3ae),_0x409fb3(0x2ab),_0x409fb3(0x243),_0x409fb3(0x234),_0x409fb3(0x31e)];var E=class extends t[_0x409fb3(0x277)]{constructor(..._0x109793){const _0x298cca=_0x409fb3;super(..._0x109793),b(this,_0x298cca(0x271),new Map()),b(this,_0x298cca(0x1f6),0x0);}['assignAColorForMemberID'](_0x242c62){const _0x31b13b=_0x409fb3;if(this['_assignedColors'][_0x31b13b(0x1e0)](_0x242c62))return this[_0x31b13b(0x271)][_0x31b13b(0x424)](_0x242c62);let _0x391022=le[this[_0x31b13b(0x1f6)]];return this[_0x31b13b(0x1f6)]=(this[_0x31b13b(0x1f6)]+0x1)%le[_0x31b13b(0x1fa)],this[_0x31b13b(0x271)]['set'](_0x242c62,_0x391022),_0x391022;}};function ue(_0x2119e5){let _0x3428ed='';for(let _0x389fef of _0x2119e5){let {startOffset:_0xaafc21,endOffset:_0x5cb2fd,isActive:_0x389a3b,rangeType:_0xf1f980,segmentId:_0x272dc0,segmentPage:_0x3b749e}=_0x389fef;_0x3428ed['length']&&(_0x3428ed+=','),_0x3428ed+=_0xaafc21+':'+_0x5cb2fd+':'+(_0x389a3b?'1':'0')+':'+_0xf1f980+':'+_0x272dc0+':'+_0x3b749e;}return _0x3428ed;}function de(_0xa3baa7){const _0x5e4b47=_0x409fb3;let _0x24a03b=_0xa3baa7[_0x5e4b47(0x167)](','),_0x25fa00=[];for(let _0x30cf59 of _0x24a03b){let [_0x5d2ec7,_0x48c888,_0x32f52e,_0x402974,_0x15b823,_0x1735fd]=_0x30cf59[_0x5e4b47(0x167)](':');_0x25fa00[_0x5e4b47(0x2df)]({'startOffset':Number(_0x5d2ec7),'endOffset':Number(_0x48c888),'collapsed':_0x5d2ec7===_0x48c888,'isActive':_0x32f52e==='1','rangeType':_0x402974===t[_0x5e4b47(0x29b)][_0x5e4b47(0x2e2)]?t[_0x5e4b47(0x29b)][_0x5e4b47(0x2e2)]:t[_0x5e4b47(0x29b)][_0x5e4b47(0x430)],'segmentId':typeof _0x15b823==_0x5e4b47(0x437)?String(_0x15b823):'','segmentPage':Number(_0x1735fd??-0x1)});}return _0x25fa00[_0x5e4b47(0x387)](_0x122ce8=>_0x122ce8[_0x5e4b47(0x1bb)])||(_0x25fa00[0x0][_0x5e4b47(0x1bb)]=!0x0),_0x25fa00;}var D=class extends t[_0x409fb3(0x184)]{constructor(..._0x16e418){const _0x1838f5=_0x409fb3;super(..._0x16e418),b(this,'_collabCursorState$',new r[(_0x1838f5(0x392))](null)),b(this,_0x1838f5(0x174),this['_collabCursorState$'][_0x1838f5(0x1c2)]());}['syncEditingCollabCursor'](_0x3fa979){const _0x16c3ff=_0x409fb3;let {unitID:_0x45f7ca,memberID:_0x4972b0,textRanges:_0x351a3f}=_0x3fa979,_0x7035d8=ue(_0x351a3f);if(_0x7035d8==='')return;let _0x105038={'unitID':_0x45f7ca,'memberID':_0x4972b0,'selection':_0x7035d8};this[_0x16c3ff(0x2a9)]['next'](_0x105038);}};let O=class extends t[_0x409fb3(0x184)]{get['cursorInfo'](){const _0x1f87a0=_0x409fb3;return this['_cursorInfo$'][_0x1f87a0(0x248)]();}get[_0x409fb3(0x1be)](){const _0x17e50b=_0x409fb3;return this[_0x17e50b(0x2b7)]['getValue']();}constructor(_0x47fa32,_0x2cb6c4,_0x127da6,_0x40125c,_0x55314d,_0x5e5b41,_0x4e2d43,_0x56d24a,_0x44e45e){const _0x55fe88=_0x409fb3;super(),this['unitID']=_0x47fa32,this[_0x55fe88(0x2f4)]=_0x2cb6c4,this['_injector']=_0x127da6,this[_0x55fe88(0x2e5)]=_0x40125c,this[_0x55fe88(0x164)]=_0x55314d,this['_syncEditingCollabCursorService']=_0x5e5b41,this['_transformService']=_0x4e2d43,this['_univerInstanceService']=_0x56d24a,this['_commandService']=_0x44e45e,b(this,_0x55fe88(0x1c5),!0x1),b(this,'_init',!0x1),b(this,_0x55fe88(0x36f),new r[(_0x55fe88(0x392))](new Map())),b(this,_0x55fe88(0x352),this[_0x55fe88(0x36f)][_0x55fe88(0x1c2)]()),b(this,_0x55fe88(0x2b7),new r[(_0x55fe88(0x392))]([])),b(this,_0x55fe88(0x28e),this['_roomMembers$'][_0x55fe88(0x423)]((0x0,r['debounceTime'])(0x12c))),b(this,'_updateLocalCursor',(0x0,t[_0x55fe88(0x227)])(_0x2c7461=>{const _0xdf8c58=_0x55fe88;let _0x14f4e1={'eventID':l[_0xdf8c58(0x299)][_0xdf8c58(0x150)],'data':{'unitID':this[_0xdf8c58(0x172)],'memberID':this[_0xdf8c58(0x2f4)][_0xdf8c58(0x3d6)](),'selection':ue(_0x2c7461)}};this['_session'][_0xdf8c58(0x13b)](_0x14f4e1,this[_0xdf8c58(0x172)]);},0x64));}[_0x409fb3(0x2c8)](){const _0x3d0203=_0x409fb3;super[_0x3d0203(0x2c8)](),this[_0x3d0203(0x36f)][_0x3d0203(0x1a1)](new Map()),this[_0x3d0203(0x36f)][_0x3d0203(0x27b)](),this[_0x3d0203(0x2b7)][_0x3d0203(0x1a1)]([]),this['_roomMembers$'][_0x3d0203(0x27b)]();}[_0x409fb3(0x181)](){const _0x463f33=_0x409fb3;this['_init']||(this[_0x463f33(0x1c6)]=!0x0,this[_0x463f33(0x2f4)][_0x463f33(0x254)][_0x463f33(0x423)]((0x0,r[_0x463f33(0x24c)])(this[_0x463f33(0x3bd)]))[_0x463f33(0x1ac)](_0x14946a=>{const _0x132da6=_0x463f33;_0x14946a===e[_0x132da6(0x355)][_0x132da6(0x147)]?this['_toggleOnline']():this[_0x132da6(0x3d7)]();}),this[_0x463f33(0x2f4)]['event$'][_0x463f33(0x423)]((0x0,r[_0x463f33(0x24c)])(this[_0x463f33(0x3bd)]))[_0x463f33(0x1ac)](_0x4e5bb4=>{const _0x3a196e=_0x463f33;let _0x192499=_0x4e5bb4[_0x3a196e(0x3ac)];_0x192499===l[_0x3a196e(0x299)][_0x3a196e(0x150)]&&this[_0x3a196e(0x17d)](_0x4e5bb4),_0x192499===l['CollaborationEvent'][_0x3a196e(0x320)]&&this['_onCursorDelete'](_0x4e5bb4);}),this[_0x463f33(0x415)](this['_commandService'][_0x463f33(0x168)](_0x4aff72=>{const _0x2cd217=_0x463f33;let _0x2e1188=_0x4aff72[_0x2cd217(0x1ee)];_0x2e1188!=null&&this[_0x2cd217(0x1c5)]&&_0x4aff72['id']===d[_0x2cd217(0x34c)]['id']&&_0x2e1188['unitId']===this[_0x2cd217(0x172)]&&_0x2e1188[_0x2cd217(0x40c)]===!0x1&&_0x2e1188[_0x2cd217(0x344)][_0x2cd217(0x1fa)]>0x0&&this[_0x2cd217(0x378)](_0x2e1188[_0x2cd217(0x344)]);})),this['_syncEditingCollabCursorService'][_0x463f33(0x174)][_0x463f33(0x423)]((0x0,r['takeUntil'])(this[_0x463f33(0x3bd)]))[_0x463f33(0x1ac)](_0x53cc36=>{const _0x3dc3e2=_0x463f33;if((_0x53cc36==null?void 0x0:_0x53cc36[_0x3dc3e2(0x172)])!==this[_0x3dc3e2(0x172)])return;let _0x2546e4={'eventID':l[_0x3dc3e2(0x299)][_0x3dc3e2(0x150)],'data':_0x53cc36};this[_0x3dc3e2(0x17d)](_0x2546e4);}),this['disposeWithMe'](this[_0x463f33(0x26a)]['onCommandExecuted'](_0xee5b60=>{const _0x416581=_0x463f33;if(_0xee5b60[_0x416581(0x1ee)]==null)return;let _0x4cf3d4=_0xee5b60[_0x416581(0x1ee)];if(_0xee5b60['id']!==d[_0x416581(0x391)]['id']||_0x4cf3d4[_0x416581(0x312)]!==this[_0x416581(0x172)])return;let _0x56d0cf={'id':'doc.mutation.rich-text-editing','params':_0x4cf3d4},_0x56d4f0=this[_0x416581(0x397)];for(let [_0x1166d2,_0x397b8b]of _0x56d4f0){let _0x3fb6a2={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x416581(0x172)],'actions':null,'textRanges':_0x397b8b[_0x416581(0x344)]}},_0x481133=this[_0x416581(0x212)]['transformMutation'](_0x56d0cf,_0x3fb6a2,!0x1);if((0x0,l[_0x416581(0x13e)])(_0x481133))throw _0x481133[_0x416581(0x3ff)];_0x56d4f0[_0x416581(0x16b)](_0x1166d2,{..._0x397b8b,'ranges':_0x481133['m2Prime'][_0x416581(0x1ee)][_0x416581(0x308)]});}queueMicrotask(()=>{const _0x4a6363=_0x416581;this[_0x4a6363(0x36f)]['next'](_0x56d4f0);});})));}[_0x409fb3(0x17d)](_0x34e37c){const _0x28758a=_0x409fb3;var _0x23ac38;let {memberID:_0x4195f3,selection:_0x4a7495}=_0x34e37c[_0x28758a(0x276)],_0x17e562=de(_0x4a7495),_0x39e306=((_0x23ac38=this[_0x28758a(0x164)]['getMember'](this[_0x28758a(0x172)],_0x4195f3))==null?void 0x0:_0x23ac38[_0x28758a(0x166)])??_0x28758a(0x2ea),_0x1cf863={'color':this[_0x28758a(0x2e5)][_0x28758a(0x30a)](_0x4195f3),'name':_0x39e306,'ranges':_0x17e562},_0x1c2f87=this[_0x28758a(0x397)];_0x1c2f87[_0x28758a(0x16b)](_0x4195f3,_0x1cf863),this['_cursorInfo$']['next'](_0x1c2f87);}[_0x409fb3(0x1b1)](_0x5e220d){const _0x18f5c0=_0x409fb3;let {memberID:_0x87201a}=_0x5e220d[_0x18f5c0(0x276)],_0x56fda5=this[_0x18f5c0(0x397)];_0x56fda5['delete'](_0x87201a),this[_0x18f5c0(0x36f)][_0x18f5c0(0x1a1)](_0x56fda5);}[_0x409fb3(0x13a)](){const _0x54c480=_0x409fb3;var _0x33b384;if(this['_online']=!0x0,((_0x33b384=this[_0x54c480(0x1ce)][_0x54c480(0x23e)]())==null?void 0x0:_0x33b384[_0x54c480(0x3ba)]())!==this[_0x54c480(0x172)])return;let _0x26493f=this[_0x54c480(0x381)][_0x54c480(0x424)](d[_0x54c480(0x2a7)])[_0x54c480(0x293)]();Array[_0x54c480(0x1b0)](_0x26493f)&&_0x26493f[_0x54c480(0x1fa)]>0x0&&this[_0x54c480(0x378)](_0x26493f);}['_toggleOffline'](){const _0xe130e0=_0x409fb3;this[_0xe130e0(0x1c5)]=!0x1;}};O=S([x(0x2,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x3,(0x0,t[_0x409fb3(0x329)])(E)),x(0x4,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x257)])),x(0x5,(0x0,t[_0x409fb3(0x329)])(D)),x(0x6,l[_0x409fb3(0x235)]),x(0x7,t[_0x409fb3(0x21b)]),x(0x8,t['ICommandService'])],O);const fe=()=>{let _0x36cb51=[],_0x3c1e22=!0x1;return _0x505aed=>{const _0x52127e=_0x4188;_0x36cb51[_0x52127e(0x2df)](_0x505aed),_0x3c1e22||(_0x3c1e22=!0x0,setTimeout(()=>{const _0x752665=_0x52127e;_0x36cb51[_0x752665(0x2e3)](_0x3deb61=>_0x3deb61()),_0x36cb51=[],_0x3c1e22=!0x1;}));};};let k=class extends t[_0x409fb3(0x184)]{get['cursorInfo'](){const _0x3a62ad=_0x409fb3;return this['_cursorInfo$'][_0x3a62ad(0x248)]();}get['roomMembers'](){const _0x41a7c7=_0x409fb3;return this[_0x41a7c7(0x2b7)][_0x41a7c7(0x248)]();}constructor(_0x2aca04,_0x129727,_0x47779d,_0x4c5617,_0x234a53,_0x2ec5e1,_0x1e23dd,_0x14c609){const _0x55cccf=_0x409fb3;super(),this[_0x55cccf(0x172)]=_0x2aca04,this[_0x55cccf(0x2f4)]=_0x129727,this[_0x55cccf(0x381)]=_0x47779d,this[_0x55cccf(0x2e5)]=_0x4c5617,this[_0x55cccf(0x164)]=_0x234a53,this[_0x55cccf(0x1ce)]=_0x2ec5e1,this[_0x55cccf(0x26a)]=_0x1e23dd,this[_0x55cccf(0x3a9)]=_0x14c609,b(this,'_online',!0x1),b(this,_0x55cccf(0x1c6),!0x1),b(this,_0x55cccf(0x36f),new r[(_0x55cccf(0x392))](new Map())),b(this,_0x55cccf(0x352),this[_0x55cccf(0x36f)][_0x55cccf(0x1c2)]()),b(this,'_roomMembers$',new r[(_0x55cccf(0x392))]([])),b(this,'roomMembers$',this[_0x55cccf(0x2b7)][_0x55cccf(0x423)]((0x0,r['debounceTime'])(0x12c))),b(this,_0x55cccf(0x378),(0x0,t[_0x55cccf(0x227)])((_0xa2fa0,_0x57a253)=>{const _0x54f356=_0x55cccf;let _0x24f5b6={'eventID':l['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x54f356(0x2f4)]['getMemberID'](),'selection':(0x0,h['serializeRangeWithSheet'])(_0xa2fa0,_0x57a253['range'])}};this[_0x54f356(0x2f4)][_0x54f356(0x13b)](_0x24f5b6,this['unitID']);},0x64));}[_0x409fb3(0x2c8)](){const _0x330700=_0x409fb3;super[_0x330700(0x2c8)](),this[_0x330700(0x36f)][_0x330700(0x1a1)](new Map()),this[_0x330700(0x36f)]['complete'](),this['_roomMembers$'][_0x330700(0x1a1)]([]),this[_0x330700(0x2b7)][_0x330700(0x27b)]();}[_0x409fb3(0x181)](){const _0x51c8ba=_0x409fb3;this['_init']||(this[_0x51c8ba(0x1c6)]=!0x0,this[_0x51c8ba(0x2f4)]['sessionStatus$'][_0x51c8ba(0x423)]((0x0,r[_0x51c8ba(0x24c)])(this[_0x51c8ba(0x3bd)]))[_0x51c8ba(0x1ac)](_0x69ed12=>{const _0x2c31ec=_0x51c8ba;_0x69ed12===e['SessionStatus'][_0x2c31ec(0x147)]?this['_toggleOnline']():this[_0x2c31ec(0x3d7)]();}),this[_0x51c8ba(0x2f4)][_0x51c8ba(0x1f0)][_0x51c8ba(0x423)]((0x0,r[_0x51c8ba(0x24c)])(this[_0x51c8ba(0x3bd)]))[_0x51c8ba(0x1ac)](_0x283324=>{const _0x41eb8c=_0x51c8ba;let _0x197739=_0x283324[_0x41eb8c(0x3ac)];_0x197739===l['CollaborationEvent'][_0x41eb8c(0x150)]&&this[_0x41eb8c(0x17d)](_0x283324),_0x197739===l[_0x41eb8c(0x299)][_0x41eb8c(0x320)]&&this['_onCursorDelete'](_0x283324);}),this[_0x51c8ba(0x280)](),this[_0x51c8ba(0x415)](this[_0x51c8ba(0x26a)][_0x51c8ba(0x168)](_0x3f874a=>{const _0x55551c=_0x51c8ba;if(this[_0x55551c(0x1c5)]&&_0x3f874a['id']===g[_0x55551c(0x402)]['id']&&_0x3f874a['params'][_0x55551c(0x312)]===this[_0x55551c(0x172)]){let _0x145347=_0x3f874a[_0x55551c(0x1ee)];this[_0x55551c(0x378)](_0x145347[_0x55551c(0x216)],_0x145347['selections'][0x0]);}})));}['_onCursorUpdate'](_0x3314a8){const _0xa5c5c4=_0x409fb3;var _0x1e1174;let {memberID:_0x1f4e62,selection:_0x286b32}=_0x3314a8[_0xa5c5c4(0x276)],{sheetName:_0xf59a35,range:_0x44bc6d}=(0x0,h[_0xa5c5c4(0x295)])(_0x286b32),_0x5d6cab={'name':((_0x1e1174=this[_0xa5c5c4(0x164)][_0xa5c5c4(0x2cd)](this['unitID'],_0x1f4e62))==null?void 0x0:_0x1e1174['name'])??_0xa5c5c4(0x2ea),'range':this[_0xa5c5c4(0x2f8)](_0xf59a35,_0x44bc6d),'sheetID':_0xf59a35,'color':this[_0xa5c5c4(0x2e5)]['assignAColorForMemberID'](_0x1f4e62),'selection':_0x286b32},_0x534f19=this[_0xa5c5c4(0x397)];_0x534f19[_0xa5c5c4(0x16b)](_0x1f4e62,_0x5d6cab),this[_0xa5c5c4(0x36f)][_0xa5c5c4(0x1a1)](_0x534f19);}[_0x409fb3(0x1b1)](_0x60718c){const _0x37b1f6=_0x409fb3;let {memberID:_0x36206f}=_0x60718c[_0x37b1f6(0x276)],_0x481bb8=this[_0x37b1f6(0x397)];_0x481bb8[_0x37b1f6(0x205)](_0x36206f),this[_0x37b1f6(0x36f)][_0x37b1f6(0x1a1)](_0x481bb8);}[_0x409fb3(0x2f8)](_0x32c9c1,_0x5ecf1f){const _0x341ee5=_0x409fb3;var _0x11412d;let _0x1fa156=(_0x11412d=this[_0x341ee5(0x1ce)][_0x341ee5(0x13f)](this[_0x341ee5(0x172)],t[_0x341ee5(0x24d)]['UNIVER_SHEET']))==null||(_0x11412d=_0x11412d['getSheetBySheetId'](_0x32c9c1))==null?void 0x0:_0x11412d[_0x341ee5(0x1eb)]();return(_0x1fa156==null?void 0x0:_0x1fa156[_0x341ee5(0x1d9)](_0x16ea25=>t[_0x341ee5(0x330)][_0x341ee5(0x173)](_0x16ea25,_0x5ecf1f)))||_0x5ecf1f;}[_0x409fb3(0x280)](){const _0x65a9cc=_0x409fb3;let _0x2ceef1=new t[(_0x65a9cc(0x353))](),_0xce91e4=fe(),_0x2f280a=()=>{const _0x4c7613=_0x65a9cc;_0x2ceef1[_0x4c7613(0x2c8)]();let _0x1adc44=(_0x316ef6,_0x5cb986,_0x450686,_0x3e7d97)=>{const _0x74a9d8=_0x4c7613;let _0x391a33=[];switch(_0x316ef6['id']){case g[_0x74a9d8(0x3d9)]['DeleteRangeMoveLeftCommandId']:_0x391a33=(0x0,g[_0x74a9d8(0x3a4)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)]['DeleteRangeMoveUpCommandId']:_0x391a33=(0x0,g[_0x74a9d8(0x324)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)]['InsertColCommandId']:_0x391a33=(0x0,g[_0x74a9d8(0x3d3)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x3ef)]:_0x391a33=(0x0,g[_0x74a9d8(0x190)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x425)]:_0x391a33=(0x0,g[_0x74a9d8(0x42a)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x361)]:_0x391a33=(0x0,g[_0x74a9d8(0x133)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x2c1)]:_0x391a33=(0x0,g[_0x74a9d8(0x219)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x2cc)]:_0x391a33=(0x0,g[_0x74a9d8(0x19a)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x2e1)]:_0x391a33=(0x0,g[_0x74a9d8(0x19f)])(_0x316ef6,_0x3e7d97);}let _0x41e04a=(0x0,g[_0x74a9d8(0x394)])(_0x391a33,_0x3e7d97),_0x379894=this['cursorInfo'][_0x74a9d8(0x424)](_0x5cb986);if(_0x379894&&_0x41e04a){let _0x175d88={..._0x379894,'range':_0x41e04a};this[_0x74a9d8(0x397)][_0x74a9d8(0x16b)](_0x5cb986,_0x175d88),_0xce91e4(()=>{const _0x32cc92=_0x74a9d8;let _0x280083=this[_0x32cc92(0x3a9)]['registerRefRange'](_0x41e04a,_0x304b86=>(_0x280083[_0x32cc92(0x2c8)](),_0x1adc44(_0x304b86,_0x5cb986,_0x450686,_0x41e04a)));_0x2ceef1['add'](_0x280083);});}return{'redos':[],'undos':[]};};this[_0x4c7613(0x397)][_0x4c7613(0x2e3)]((_0xc6c29c,_0x4ac658)=>{const _0x12c817=_0x4c7613;let {range:_0x532503,sheetID:_0x5e1bcd}=_0xc6c29c,_0xe5cb11=this[_0x12c817(0x3a9)][_0x12c817(0x3f2)](_0x532503,_0x3c4f9f=>(_0xe5cb11[_0x12c817(0x2c8)](),_0x1adc44(_0x3c4f9f,_0x4ac658,_0x5e1bcd,_0x532503)));_0x2ceef1[_0x12c817(0x2ce)](_0xe5cb11);});};this['disposeWithMe']((0x0,t[_0x65a9cc(0x19e)])(this[_0x65a9cc(0x36f)][_0x65a9cc(0x1ac)](()=>{_0x2f280a();})));}[_0x409fb3(0x13a)](){const _0x5bcb95=_0x409fb3;var _0x2a4007,_0x29411d;if(this[_0x5bcb95(0x1c5)]=!0x0,((_0x2a4007=this[_0x5bcb95(0x1ce)][_0x5bcb95(0x23e)]())==null?void 0x0:_0x2a4007[_0x5bcb95(0x3ba)]())!==this[_0x5bcb95(0x172)])return;let _0x3a4183=(_0x29411d=this[_0x5bcb95(0x381)][_0x5bcb95(0x424)](g[_0x5bcb95(0x25b)])['getCurrentSelections']())==null?void 0x0:_0x29411d[0x0],_0x27080d=this[_0x5bcb95(0x1ce)][_0x5bcb95(0x380)](t[_0x5bcb95(0x24d)][_0x5bcb95(0x3bf)])['getActiveSheet']();_0x3a4183&&_0x27080d&&this['_updateLocalCursor'](_0x27080d[_0x5bcb95(0x38d)](),_0x3a4183);}[_0x409fb3(0x3d7)](){const _0x9eaba6=_0x409fb3;this[_0x9eaba6(0x1c5)]=!0x1;}};k=S([x(0x2,(0x0,t[_0x409fb3(0x329)])(t['Injector'])),x(0x3,(0x0,t[_0x409fb3(0x329)])(E)),x(0x4,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x257)])),x(0x5,t[_0x409fb3(0x21b)]),x(0x6,t['ICommandService']),x(0x7,(0x0,t['Inject'])(g[_0x409fb3(0x1cb)]))],k);let A=class extends t['RxDisposable']{constructor(_0x2c1c97,_0x4bd595,_0x1f9bb5){const _0x496059=_0x409fb3;super(),this[_0x496059(0x1ce)]=_0x2c1c97,this['_injector']=_0x4bd595,this['_collabSessionService']=_0x1f9bb5,b(this,_0x496059(0x15c),new Map()),b(this,_0x496059(0x23c),new r[(_0x496059(0x2bf))]()),this[_0x496059(0x1c6)]();}[_0x409fb3(0x2c8)](){const _0x2c13fc=_0x409fb3;super[_0x2c13fc(0x2c8)](),this[_0x2c13fc(0x23c)]['complete'](),this[_0x2c13fc(0x15c)]['forEach'](_0x467b7c=>_0x467b7c[_0x2c13fc(0x2c8)]());}[_0x409fb3(0x286)](_0x501a87){const _0x900d71=_0x409fb3;let _0x74255c=this['_entities']['get'](_0x501a87);return _0x74255c?_0x74255c[_0x900d71(0x352)]:this[_0x900d71(0x23c)][_0x900d71(0x423)]((0x0,r[_0x900d71(0x232)])(_0x54f2a8=>_0x54f2a8[_0x900d71(0x172)]===_0x501a87),(0x0,r['switchMap'])(_0x298064=>_0x298064['cursorInfo$']));}[_0x409fb3(0x1c6)](){const _0x1ef5df=_0x409fb3;this[_0x1ef5df(0x1ce)][_0x1ef5df(0x318)](t[_0x1ef5df(0x24d)][_0x1ef5df(0x3bf)])['pipe']((0x0,r[_0x1ef5df(0x24c)])(this[_0x1ef5df(0x3bd)]))[_0x1ef5df(0x1ac)](async _0x15e493=>{const _0x6b87bb=_0x1ef5df;let _0x5a75b4=_0x15e493[_0x6b87bb(0x26e)][_0x6b87bb(0x3ba)](),_0x3ee952=await this[_0x6b87bb(0x333)](_0x5a75b4);this[_0x6b87bb(0x23c)][_0x6b87bb(0x1a1)](_0x3ee952),this[_0x6b87bb(0x15c)][_0x6b87bb(0x16b)](_0x5a75b4,_0x3ee952);}),this[_0x1ef5df(0x1ce)][_0x1ef5df(0x318)](t['UniverInstanceType']['UNIVER_DOC'])['pipe']((0x0,r[_0x1ef5df(0x24c)])(this[_0x1ef5df(0x3bd)]))[_0x1ef5df(0x423)]((0x0,r['filter'])(_0x42020c=>!_0x42020c[_0x1ef5df(0x26e)][_0x1ef5df(0x3ba)]()['startsWith']('__')))[_0x1ef5df(0x1ac)](async _0x4ff66a=>{const _0x96b5b2=_0x1ef5df;let {unit:_0x49f201}=_0x4ff66a,_0x3cc4a2=_0x49f201['getUnitId'](),_0x189243=await this[_0x96b5b2(0x366)](_0x3cc4a2);this[_0x96b5b2(0x23c)][_0x96b5b2(0x1a1)](_0x189243),this[_0x96b5b2(0x15c)][_0x96b5b2(0x16b)](_0x3cc4a2,_0x189243);}),(0x0,r['merge'])(this['_univerInstanceService'][_0x1ef5df(0x3d2)](t[_0x1ef5df(0x24d)][_0x1ef5df(0x296)]),this[_0x1ef5df(0x1ce)]['getTypeOfUnitDisposed$'](t[_0x1ef5df(0x24d)][_0x1ef5df(0x3bf)]))[_0x1ef5df(0x423)]((0x0,r['takeUntil'])(this[_0x1ef5df(0x3bd)]))['subscribe'](_0x5ae836=>{const _0x45f4d5=_0x1ef5df;let _0x5bf0dc=_0x5ae836[_0x45f4d5(0x3ba)](),_0x1c4499=this[_0x45f4d5(0x15c)][_0x45f4d5(0x424)](_0x5bf0dc);_0x1c4499&&(_0x1c4499[_0x45f4d5(0x2c8)](),this[_0x45f4d5(0x15c)][_0x45f4d5(0x205)](_0x5bf0dc));});}async[_0x409fb3(0x333)](_0x108c8c){const _0x2e3d39=_0x409fb3;let _0x4d40ae=await this[_0x2e3d39(0x2ef)][_0x2e3d39(0x17a)](_0x108c8c),_0x9b9d15=this[_0x2e3d39(0x381)][_0x2e3d39(0x36d)](k,_0x108c8c,_0x4d40ae);return _0x9b9d15[_0x2e3d39(0x181)](),_0x9b9d15;}async[_0x409fb3(0x366)](_0x14a9e8){const _0x1f086e=_0x409fb3;let _0x42ea9a=await this[_0x1f086e(0x2ef)][_0x1f086e(0x17a)](_0x14a9e8),_0x1226f7=this[_0x1f086e(0x381)]['createInstance'](O,_0x14a9e8,_0x42ea9a);return _0x1226f7[_0x1f086e(0x181)](),_0x1226f7;}};A=S([x(0x0,t[_0x409fb3(0x21b)]),x(0x1,(0x0,t[_0x409fb3(0x329)])(t['Injector'])),x(0x2,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x207)]))],A);function j(_0x51a1e5,_0x5333fe){const _0x193c83=_0x409fb3;_0x51a1e5[_0x193c83(0x265)](),_0x51a1e5['font']=_0x193c83(0x3e7);let _0x54d900=_0x51a1e5[_0x193c83(0x426)](_0x5333fe)[_0x193c83(0x199)];return _0x51a1e5[_0x193c83(0x139)](),Math[_0x193c83(0x2db)](_0x54d900+0x8,0xc8);}function pe(_0x3a8605,_0x243b1b){const _0x3e84ba=_0x409fb3;let {radius:_0x305bc8,width:_0x4bdb78,height:_0xc2a844}=_0x243b1b;_0x305bc8??=0x0,_0x4bdb78??=0x1e,_0xc2a844??=0x1e;let _0x511090=0x0,_0x1fe5d2=0x0,_0x46082e=0x0;_0x511090=_0x1fe5d2=_0x46082e=Math['min'](_0x305bc8,_0x4bdb78/0x2,_0xc2a844/0x2),_0x3a8605['beginPath'](),_0x3a8605[_0x3e84ba(0x15b)](_0x511090,0x0),_0x3a8605[_0x3e84ba(0x1c3)](_0x4bdb78-_0x1fe5d2,0x0),_0x3a8605[_0x3e84ba(0x274)](_0x4bdb78-_0x1fe5d2,_0x1fe5d2,_0x1fe5d2,Math['PI']*0x3/0x2,0x0,!0x1),_0x3a8605[_0x3e84ba(0x1c3)](_0x4bdb78,_0xc2a844-_0x46082e),_0x3a8605['arc'](_0x4bdb78-_0x46082e,_0xc2a844-_0x46082e,_0x46082e,0x0,Math['PI']/0x2,!0x1),_0x3a8605[_0x3e84ba(0x1c3)](0x0,_0xc2a844),_0x3a8605[_0x3e84ba(0x1c3)](0x0,_0x511090),_0x3a8605['arc'](_0x511090,_0x511090,_0x511090,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3a8605['closePath'](),_0x243b1b[_0x3e84ba(0x1b3)]&&(_0x3a8605[_0x3e84ba(0x265)](),_0x3a8605[_0x3e84ba(0x3cf)]=_0x243b1b[_0x3e84ba(0x1b3)],_0x243b1b['fillRule']===_0x3e84ba(0x2c5)?_0x3a8605['fill'](_0x3e84ba(0x2c5)):_0x3a8605[_0x3e84ba(0x1b3)](),_0x3a8605[_0x3e84ba(0x139)]());}var M=class e extends p[_0x409fb3(0x189)]{constructor(_0x44a398,_0x57cfa6){const _0x5b4c9d=_0x409fb3;super(_0x44a398,_0x57cfa6),b(this,_0x5b4c9d(0x33b),void 0x0),b(this,_0x5b4c9d(0x33f),void 0x0),this['color']=_0x57cfa6==null?void 0x0:_0x57cfa6['color'],this[_0x5b4c9d(0x33f)]=_0x57cfa6==null?void 0x0:_0x57cfa6[_0x5b4c9d(0x33f)];}static[_0x409fb3(0x41c)](_0xacd188,_0x33e533){const _0x1ab1c8=_0x409fb3;let {text:_0x2b1b34,color:_0x31b47a}=_0x33e533;_0xacd188['save'](),_0xacd188[_0x1ab1c8(0x400)]=_0x1ab1c8(0x263);let _0x5b5fa7=_0xacd188[_0x1ab1c8(0x426)](_0x2b1b34)[_0x1ab1c8(0x199)];if(pe(_0xacd188,{'height':0x14,'radius':0x4,'width':j(_0xacd188,_0x2b1b34),'fill':_0x31b47a,'evented':!0x1}),_0xacd188['fillStyle']=_0x1ab1c8(0x15d),_0x5b5fa7>0xc0){let _0x137d8e='',_0x575495=0x0;for(let _0x3d90b5 of _0x2b1b34){let _0x1569c5=_0xacd188[_0x1ab1c8(0x426)](_0x3d90b5)['width'];if(_0x575495+_0x1569c5<=0xc0-_0xacd188[_0x1ab1c8(0x426)](_0x1ab1c8(0x3a8))['width'])_0x137d8e+=_0x3d90b5,_0x575495+=_0x1569c5;else{_0x137d8e+='...';break;}}_0xacd188[_0x1ab1c8(0x356)](_0x137d8e,0x4,0xf);}else _0xacd188['fillText'](_0x2b1b34,0x4,0xf);_0xacd188[_0x1ab1c8(0x139)]();}['_draw'](_0x1fc49f){const _0x5775ae=_0x409fb3;e[_0x5775ae(0x41c)](_0x1fc49f,this);}};function _0x4188(_0x512c88,_0x17071b){_0x512c88=_0x512c88-0x132;const _0x5cc24d=_0x5cc2();let _0x418882=_0x5cc24d[_0x512c88];return _0x418882;}const N=_0x409fb3(0x340);var P=class{constructor(_0x22a8ee,_0x353377,_0x167ede,_0x5c0f2d){const _0x1abde5=_0x409fb3;this[_0x1abde5(0x14f)]=_0x22a8ee,this[_0x1abde5(0x3c6)]=_0x353377,this['_docSkeleton']=_0x167ede,this[_0x1abde5(0x32b)]=_0x5c0f2d,b(this,_0x1abde5(0x14b),[]),b(this,_0x1abde5(0x302),null),b(this,_0x1abde5(0x3be),null),b(this,'_anchorDot',null),b(this,_0x1abde5(0x3a0),null),b(this,_0x1abde5(0x1a3),null),this['_render']();}set['_hover'](_0x3df37e){const _0x434fb6=_0x409fb3;_0x3df37e?(this[_0x434fb6(0x1fd)]&&this[_0x434fb6(0x1fd)][_0x434fb6(0x2ff)](),this[_0x434fb6(0x3be)]&&this[_0x434fb6(0x3be)][_0x434fb6(0x2a3)]()):(this[_0x434fb6(0x1fd)]&&this[_0x434fb6(0x1fd)][_0x434fb6(0x2a3)](),this['_textBubble']&&this[_0x434fb6(0x3be)][_0x434fb6(0x2ff)]());}[_0x409fb3(0x2c8)](){const _0xdf653f=_0x409fb3;for(let _0x4e8966 of this[_0xdf653f(0x14b)])_0x4e8966[_0xdf653f(0x2c8)]();this[_0xdf653f(0x3be)]&&this[_0xdf653f(0x3be)]['dispose'](),this[_0xdf653f(0x1fd)]&&this['_anchorDot'][_0xdf653f(0x2c8)](),this[_0xdf653f(0x302)]&&this[_0xdf653f(0x302)][_0xdf653f(0x2c8)](),this[_0xdf653f(0x1a3)]&&this[_0xdf653f(0x1a3)]();}[_0x409fb3(0x2ec)](){const _0x320770=_0x409fb3;let {_docSkeleton:_0x57eebf,_document:_0x3a233d}=this,{color:_0xfcc4a9,name:_0x358a58,ranges:_0x18837c}=this[_0x320770(0x14f)],_0x4111d2=_0x3a233d['getOffsetConfig'](),{docsLeft:_0x6a1d24,docsTop:_0x11d869}=_0x4111d2,_0x60b3e=new f[(_0x320770(0x1d7))](_0x4111d2,_0x57eebf);for(let {startOffset:_0x31a016,endOffset:_0x1c1990,rangeType:_0x43a405,segmentId:_0x21a494,segmentPage:_0xb8aecc,collapsed:_0x561c09,isActive:_0x376341}of _0x18837c){let _0x54c496=_0x57eebf[_0x320770(0x347)](_0x31a016,!0x0,_0x21a494,_0xb8aecc),_0x368eac=_0x57eebf[_0x320770(0x347)](_0x1c1990,!0x0,_0x21a494,_0xb8aecc);_0x368eac??=_0x57eebf[_0x320770(0x347)](_0x1c1990-0x1,!0x1,_0x21a494,_0xb8aecc);let _0x5ebee5=me(_0x54c496,_0x368eac);if(_0x376341&&_0x5ebee5[_0x320770(0x1cc)]){let {contentBoxPointGroup:_0x359416}=_0x60b3e[_0x320770(0x22c)](_0x368eac,_0x368eac);if(_0x359416[_0x320770(0x1fa)]===0x0)continue;this[_0x320770(0x41f)](_0xfcc4a9,_0x359416,_0x6a1d24,_0x11d869,_0x358a58),this['_eventUnsubscribe']=this[_0x320770(0x1e8)]();}if(_0x54c496&&_0x368eac){if(_0x43a405===t['DOC_RANGE_TYPE']['RECT']){let {pointGroup:_0x1a9dbd}=new f[(_0x320770(0x160))](_0x4111d2,_0x57eebf)[_0x320770(0x22c)](_0x54c496,_0x368eac)??{};if(_0x1a9dbd==null||_0x1a9dbd['length']===0x0)continue;this[_0x320770(0x36a)](_0xfcc4a9,_0x1a9dbd,_0x6a1d24,_0x11d869);}else{if(!_0x561c09&&_0x5ebee5[_0x320770(0x28b)]){let {borderBoxPointGroup:_0x255a1a}=_0x60b3e[_0x320770(0x22c)](_0x54c496,_0x368eac);if(_0x255a1a['length']===0x0)continue;this['_drawTextRange'](_0xfcc4a9,_0x255a1a,_0x6a1d24,_0x11d869);}}}}}[_0x409fb3(0x41f)](_0xbed086,_0x1ec43d,_0x27ce9f,_0x1d1918,_0x55137b){const _0x4de5d3=_0x409fb3;let {left:_0x58c383,top:_0x328f2a,height:_0x73fde0}=this[_0x4de5d3(0x192)](_0x1ec43d),_0x2d77cc=1.5/this[_0x4de5d3(0x3b4)](),_0x2857fa=new p['Rect'](N+(0x0,t['generateRandomId'])(0x6),{'left':_0x58c383+_0x27ce9f-_0x2d77cc,'top':_0x328f2a+_0x1d1918,'height':_0x73fde0,'width':1.5,'fill':_0xbed086||(0x0,p[_0x4de5d3(0x3b2)])(t[_0x4de5d3(0x3fa)][_0x4de5d3(0x23d)],0x0),'strokeWidth':_0x2d77cc,'stroke':_0x4de5d3(0x290),'evented':!0x0});this[_0x4de5d3(0x302)]=_0x2857fa,this[_0x4de5d3(0x3c6)][_0x4de5d3(0x1e1)](_0x2857fa,f[_0x4de5d3(0x1d4)]);let _0xf80d3c=new p[(_0x4de5d3(0x239))](N+(0x0,t[_0x4de5d3(0x208)])(0x6),{'left':_0x58c383+_0x27ce9f-_0x2d77cc,'top':_0x328f2a+_0x1d1918-0x2,'height':0x4,'width':0x4,'fill':_0xbed086||(0x0,p['getColor'])(t['COLORS'][_0x4de5d3(0x23d)],0x0),'strokeWidth':0x0,'stroke':_0xbed086||(0x0,p[_0x4de5d3(0x3b2)])(t[_0x4de5d3(0x3fa)]['black'],0x0),'evented':!0x1});this[_0x4de5d3(0x1fd)]=_0xf80d3c,this[_0x4de5d3(0x3c6)]['addObject'](_0xf80d3c,f[_0x4de5d3(0x1d4)]);let _0x488d57=new M(N+(0x0,t[_0x4de5d3(0x208)])(0x6),{'left':_0x58c383+_0x27ce9f-_0x2d77cc,'top':_0x328f2a+_0x1d1918-0x14,'text':_0x55137b,'color':_0xbed086});this[_0x4de5d3(0x3be)]=_0x488d57,this[_0x4de5d3(0x3c6)][_0x4de5d3(0x1e1)](_0x488d57,f[_0x4de5d3(0x1d4)]),this['_hover']=!0x1;}['_handleHover'](){const _0x1f5f23=_0x409fb3;let _0x32d7fb=this['_anchor'][_0x1f5f23(0x289)][_0x1f5f23(0x38c)](()=>{const _0x2cfa7d=_0x1f5f23;this[_0x2cfa7d(0x34f)]=!0x0;}),_0xcd8ddd=this[_0x1f5f23(0x302)]['onPointerLeave$'][_0x1f5f23(0x38c)](()=>{const _0xaf6f51=_0x1f5f23;this[_0xaf6f51(0x3a0)]&&clearTimeout(this[_0xaf6f51(0x3a0)]),this[_0xaf6f51(0x3a0)]=setTimeout(()=>{const _0x37a71a=_0xaf6f51;this[_0x37a71a(0x34f)]=!0x1;},0x7d0);});return()=>{const _0x4e961f=_0x1f5f23;_0x32d7fb['unsubscribe'](),_0xcd8ddd[_0x4e961f(0x343)]();};}[_0x409fb3(0x21e)](_0xa42bb4,_0x1e4d07,_0x12905f,_0x360bf2){const _0x3e4b92=_0x409fb3;let _0xe093aa=0.2,_0x5e269f=new t[(_0x3e4b92(0x1bc))](_0xa42bb4)[_0x3e4b92(0x163)](_0xe093aa)[_0x3e4b92(0x3c7)](),_0x59f7fe=new p[(_0x3e4b92(0x155))](_0x3e4b92(0x34a)+(0x0,t[_0x3e4b92(0x208)])(0x6),{'pointsGroup':_0x1e4d07,'fill':_0x5e269f||(0x0,p['getColor'])(t[_0x3e4b92(0x3fa)]['black'],_0xe093aa),'left':_0x12905f,'top':_0x360bf2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3e4b92(0x14b)][_0x3e4b92(0x2df)](_0x59f7fe),this[_0x3e4b92(0x3c6)]['addObject'](_0x59f7fe,f[_0x3e4b92(0x1d4)]);}[_0x409fb3(0x36a)](_0x1f7a23,_0x1ea991,_0x10178c,_0x15ffe0){const _0x52ccbe=_0x409fb3;let _0x2e4e09=0.2,_0x7041b4=new t[(_0x52ccbe(0x1bc))](_0x1f7a23)[_0x52ccbe(0x163)](_0x2e4e09)[_0x52ccbe(0x3c7)](),_0x10ae25=new p[(_0x52ccbe(0x155))](_0x52ccbe(0x255)+(0x0,t['generateRandomId'])(0x6),{'pointsGroup':_0x1ea991,'fill':_0x7041b4||(0x0,p[_0x52ccbe(0x3b2)])(t['COLORS']['black'],_0x2e4e09),'left':_0x10178c,'top':_0x15ffe0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x52ccbe(0x14b)][_0x52ccbe(0x2df)](_0x10ae25),this['_scene'][_0x52ccbe(0x1e1)](_0x10ae25,f[_0x52ccbe(0x1d4)]);}[_0x409fb3(0x192)](_0x2b54d9){let _0x44fb6a=_0x2b54d9[0x0],_0x2bf42b=_0x44fb6a[0x0],_0x41cd7f=_0x44fb6a[0x2],{x:_0xe8ba32,y:_0x1fc72a}=_0x2bf42b,{x:_0x189c5a,y:_0x5c837d}=_0x41cd7f;return{'left':_0xe8ba32,'top':_0x1fc72a,'width':_0x189c5a-_0xe8ba32,'height':_0x5c837d-_0x1fc72a};}[_0x409fb3(0x3b4)](){const _0xf6f64f=_0x409fb3;let {scaleX:_0x3027f6,scaleY:_0x38ff63}=this[_0xf6f64f(0x3c6)]['getAncestorScale']();return Math[_0xf6f64f(0x247)](_0x3027f6,_0x38ff63);}};function me(_0x3a6a66,_0x48ba76){const _0x40f8ef=_0x409fb3;if(!_0x48ba76)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x3a6a66||_0x3a6a66[_0x40f8ef(0x214)]!==_0x48ba76[_0x40f8ef(0x214)]||(_0x3a6a66[_0x40f8ef(0x214)]===p[_0x40f8ef(0x1ad)][_0x40f8ef(0x240)]||_0x3a6a66[_0x40f8ef(0x214)]===p[_0x40f8ef(0x1ad)][_0x40f8ef(0x42c)])&&_0x3a6a66[_0x40f8ef(0x22e)]!==_0x48ba76[_0x40f8ef(0x22e)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x3d48ec=(0x0,p[_0x40f8ef(0x3da)])(_0x3a6a66),_0x191bae=(0x0,p[_0x40f8ef(0x3da)])(_0x48ba76);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x3d48ec==null||_0x191bae==null?_0x3d48ec==null&&_0x191bae==null:_0x3d48ec[_0x40f8ef(0x3c1)]===_0x191bae[_0x40f8ef(0x3c1)]&&_0x3d48ec[_0x40f8ef(0x3ea)]===_0x191bae[_0x40f8ef(0x3ea)]&&_0x3d48ec[_0x40f8ef(0x2f1)]===_0x191bae['columnIndex']};}let F=class extends t[_0x409fb3(0x184)]{constructor(_0x3ac280,_0x340fcc,_0x371ce9,_0x2078e5,_0x3bcc5d){const _0x2c7f27=_0x409fb3;super(),this[_0x2c7f27(0x317)]=_0x3ac280,this[_0x2c7f27(0x2f5)]=_0x340fcc,this[_0x2c7f27(0x196)]=_0x371ce9,this[_0x2c7f27(0x26a)]=_0x2078e5,this[_0x2c7f27(0x1f2)]=_0x3bcc5d,b(this,_0x2c7f27(0x319),[]),b(this,'_cursors',[]),this['_init']();}[_0x409fb3(0x1c6)](){const _0x486a47=_0x409fb3;let _0x5b313a=this[_0x486a47(0x317)][_0x486a47(0x312)],_0x4052c7=this[_0x486a47(0x2f5)];this[_0x486a47(0x415)]((0x0,r[_0x486a47(0x2d0)])([this[_0x486a47(0x196)][_0x486a47(0x286)](_0x5b313a),this[_0x486a47(0x1f2)][_0x486a47(0x3f4)]])[_0x486a47(0x423)]((0x0,i[_0x486a47(0x3c9)])(([_0x48dcb6,_0x28dc9f])=>({'skeleton':_0x4052c7[_0x486a47(0x262)](),'cursors':[..._0x48dcb6[_0x486a47(0x25c)]()][_0x486a47(0x30c)](_0x2bac29=>({..._0x2bac29,'color':this['_themeService'][_0x486a47(0x2d4)](_0x2bac29['color'])}))})))[_0x486a47(0x1ac)](_0x34f29c=>{const _0x538ce5=_0x486a47;if(this[_0x538ce5(0x2c4)](),_0x34f29c){let {skeleton:_0x517002,cursors:_0x4d89e0}=_0x34f29c;this[_0x538ce5(0x1ec)](_0x517002,_0x4d89e0);}})),this['_initResize'](),this[_0x486a47(0x316)]();}[_0x409fb3(0x1ec)](_0x27d318,_0xabef82){const _0x252a32=_0x409fb3;let {scene:_0x5bf0aa,mainComponent:_0x548990}=this['_context'],_0x335fb7=_0xabef82[_0x252a32(0x3c9)](_0xf47d4d=>new P(_0xf47d4d,_0x5bf0aa,_0x27d318,_0x548990));this['_cursorShapes']=_0x335fb7,this[_0x252a32(0x141)]=_0xabef82;}['_refreshCollabCursors'](){const _0x25084=_0x409fb3;this[_0x25084(0x2c4)]();let {scene:_0x1e0e17,mainComponent:_0x3a624d}=this[_0x25084(0x317)],_0x1c14bb=this[_0x25084(0x2f5)][_0x25084(0x262)](),_0x29f6c7=this['_cursors'][_0x25084(0x3c9)](_0x4613cf=>new P(_0x4613cf,_0x1e0e17,_0x1c14bb,_0x3a624d));this[_0x25084(0x319)]=_0x29f6c7;}[_0x409fb3(0x2c4)](){const _0x39cda1=_0x409fb3;this[_0x39cda1(0x319)][_0x39cda1(0x2e3)](_0x1eab44=>_0x1eab44[_0x39cda1(0x2c8)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x2f7e73=_0x409fb3;let _0xaed8f7=[f[_0x2f7e73(0x364)]['id']];this[_0x2f7e73(0x415)](this[_0x2f7e73(0x26a)]['onCommandExecuted'](_0x546807=>{const _0x42467b=_0x2f7e73;_0xaed8f7[_0x42467b(0x1cd)](_0x546807['id'])&&_0x546807['params'][_0x42467b(0x312)]===this['_context'][_0x42467b(0x312)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x240160=_0x409fb3;this[_0x240160(0x415)]((0x0,t[_0x240160(0x3f3)])(this[_0x240160(0x317)]['engine'][_0x240160(0x363)])[_0x240160(0x423)]((0x0,i['filter'])(_0x21d813=>_0x21d813[_0x240160(0x3b7)]===p[_0x240160(0x18c)][_0x240160(0x246)]),(0x0,i[_0x240160(0x42f)])(0x10))[_0x240160(0x1ac)](()=>{const _0x1855c5=_0x240160;this[_0x1855c5(0x37d)]();}));}};F=S([x(0x1,(0x0,t[_0x409fb3(0x329)])(d['DocSkeletonManagerService'])),x(0x2,(0x0,t['Inject'])(A)),x(0x3,t[_0x409fb3(0x228)]),x(0x4,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x188)]))],F);var he=class extends p['Shape']{constructor(_0xd034b,_0x5e7534){const _0xbe23d1=_0x409fb3;super(_0xd034b,_0x5e7534),b(this,_0xbe23d1(0x357),void 0x0),b(this,_0xbe23d1(0x220),!0x1),b(this,'_range',void 0x0),b(this,_0xbe23d1(0x405),''),b(this,_0xbe23d1(0x25a),_0xbe23d1(0x32d)),b(this,'_backgroundColor',void 0x0),b(this,_0xbe23d1(0x29f),void 0x0),b(this,_0xbe23d1(0x431),void 0x0),b(this,_0xbe23d1(0x3ab),0x4),b(this,_0xbe23d1(0x3af),void 0x0),b(this,'_blinkIntervalTimer',void 0x0),b(this,'_isBlinkVisible',!0x0),b(this,_0xbe23d1(0x24a),0x0),b(this,'_labelHorizontalPosition','right'),_0x5e7534&&(this['setShapeProps'](_0x5e7534),_0x5e7534[_0xbe23d1(0x2be)]&&(_0x5e7534[_0xbe23d1(0x27d)]??this['_highlightSecond'])&&this[_0xbe23d1(0x2fd)](_0x5e7534[_0xbe23d1(0x27d)]??this[_0xbe23d1(0x3ab)])),this['onPointerEnter$']['subscribeEvent'](()=>this[_0xbe23d1(0x2ac)]({'hovered':!0x0})),this[_0xbe23d1(0x187)][_0xbe23d1(0x38c)](()=>this[_0xbe23d1(0x2ac)]({'hovered':!0x1}));}[_0x409fb3(0x28d)](_0x587663){const _0x315f74=_0x409fb3;this[_0x315f74(0x24a)]=_0x587663;}[_0x409fb3(0x2ac)](_0x30fa4f){const _0x31e712=_0x409fb3;this[_0x31e712(0x357)]=_0x30fa4f['color']??this[_0x31e712(0x357)],this[_0x31e712(0x220)]=_0x30fa4f['hovered']??this['_hovered'],this[_0x31e712(0x2b0)]=_0x30fa4f[_0x31e712(0x195)]??this[_0x31e712(0x2b0)],this[_0x31e712(0x405)]=_0x30fa4f[_0x31e712(0x166)]??this[_0x31e712(0x405)],this[_0x31e712(0x25a)]=_0x30fa4f[_0x31e712(0x362)]??this[_0x31e712(0x25a)],this['_backgroundColor']=_0x30fa4f[_0x31e712(0x2de)]??this[_0x31e712(0x161)],this[_0x31e712(0x29f)]=_0x30fa4f[_0x31e712(0x21d)]??this[_0x31e712(0x29f)],this['_labelHorizontalPosition']=_0x30fa4f[_0x31e712(0x421)]??this['_labelHorizontalPosition'],_0x30fa4f[_0x31e712(0x27d)]!==void 0x0&&(this[_0x31e712(0x3ab)]=_0x30fa4f[_0x31e712(0x27d)]),_0x30fa4f[_0x31e712(0x2be)]!==void 0x0&&(this[_0x31e712(0x431)]=_0x30fa4f[_0x31e712(0x2be)]),_0x30fa4f[_0x31e712(0x2fa)]!==void 0x0&&(this['_offsetY']=_0x30fa4f[_0x31e712(0x2fa)]),this[_0x31e712(0x260)]({'width':_0x30fa4f[_0x31e712(0x199)],'height':_0x30fa4f[_0x31e712(0x1ca)]});}[_0x409fb3(0x24f)](_0x15f710){const _0x48e231=_0x409fb3;let {row:_0x821840,column:_0x57ea5f}=_0x15f710;if(_0x821840>=this[_0x48e231(0x2b0)][_0x48e231(0x3bb)]&&_0x821840<=this[_0x48e231(0x2b0)][_0x48e231(0x31f)]&&_0x57ea5f>=this[_0x48e231(0x2b0)]['startColumn']&&_0x57ea5f<=this[_0x48e231(0x2b0)][_0x48e231(0x13c)]){this[_0x48e231(0x2ac)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['_startBlinking'](_0x51dbc8){const _0x234551=_0x409fb3;this[_0x234551(0x3d8)](),this[_0x234551(0x18b)]=!0x0,this[_0x234551(0x3b9)]=window[_0x234551(0x311)](()=>{const _0x5ba3e4=_0x234551;this[_0x5ba3e4(0x18b)]=!this['_isBlinkVisible'],this[_0x5ba3e4(0x372)](!0x0);},0x1f4),this[_0x234551(0x3af)]=window[_0x234551(0x16d)](()=>{const _0x853a5=_0x234551;this[_0x853a5(0x3d8)](),this[_0x853a5(0x18b)]=!0x0,this[_0x853a5(0x372)](!0x0);},_0x51dbc8*0x3e8);}[_0x409fb3(0x3d8)](){const _0x173dd5=_0x409fb3;this['_blinkIntervalTimer']&&=(window[_0x173dd5(0x1d1)](this['_blinkIntervalTimer']),void 0x0),this['_blinkTimer']&&=(window[_0x173dd5(0x2b4)](this[_0x173dd5(0x3af)]),void 0x0);}[_0x409fb3(0x3d1)](_0x42569d){return!0x1;}[_0x409fb3(0x2c8)](){const _0x52f226=_0x409fb3;this[_0x52f226(0x3d8)](),super['dispose']();}[_0x409fb3(0x1d8)](_0x3cb587){const _0x5e6afd=_0x409fb3;let _0x24050f=this[_0x5e6afd(0x357)],_0x15a4c1=this['_backgroundColor'];if(this['_highlight']&&!this[_0x5e6afd(0x18b)]&&(_0x24050f=this[_0x5e6afd(0x3c0)](this[_0x5e6afd(0x357)]),_0x15a4c1=this[_0x5e6afd(0x161)]?this['_getLighterColor'](this['_backgroundColor']):void 0x0),p[_0x5e6afd(0x239)]['drawWith'](_0x3cb587,{'width':this[_0x5e6afd(0x199)],'height':this[_0x5e6afd(0x1ca)],'strokeWidth':this[_0x5e6afd(0x2a0)]||1.5,'stroke':_0x24050f,'evented':!0x1,'fill':_0x15a4c1}),this[_0x5e6afd(0x220)]||this[_0x5e6afd(0x29f)]){_0x3cb587['save']();let _0x355af0=this[_0x5e6afd(0x422)]===_0x5e6afd(0x14a)?-j(_0x3cb587,this['_name']):this[_0x5e6afd(0x199)];_0x3cb587['transform'](0x1,0x0,0x0,0x1,_0x355af0,(this['_labelPosition']===_0x5e6afd(0x132)?0x0:-0x14)+(this['_offsetY']??0x0)),M[_0x5e6afd(0x41c)](_0x3cb587,{'text':this['_name'],'color':_0x24050f}),_0x3cb587[_0x5e6afd(0x139)]();}}[_0x409fb3(0x3c0)](_0x22036d){const _0x236124=_0x409fb3;return _0x22036d[_0x236124(0x1fc)]('#')?'rgba('+Number[_0x236124(0x309)](_0x22036d['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x236124(0x309)](_0x22036d[_0x236124(0x2b3)](0x3,0x5),0x10)+',\x20'+Number[_0x236124(0x309)](_0x22036d[_0x236124(0x2b3)](0x5,0x7),0x10)+',\x200.2)':_0x22036d['startsWith'](_0x236124(0x1a4))?_0x22036d['replace'](/[\d.]+\)$/g,'0.2)'):_0x22036d['startsWith'](_0x236124(0x2af))?_0x22036d[_0x236124(0x412)](_0x236124(0x2af),_0x236124(0x1a4))[_0x236124(0x412)](')',_0x236124(0x201)):_0x22036d;}};let I=class extends t['RxDisposable']{constructor(_0x5c784f,_0xad703e,_0x340d52,_0x5bcd90){const _0x1899bc=_0x409fb3;super(),this['_context']=_0x5c784f,this[_0x1899bc(0x42b)]=_0xad703e,this[_0x1899bc(0x196)]=_0x340d52,this['_themeService']=_0x5bcd90,b(this,'_cursors',new Set()),b(this,_0x1899bc(0x41a),null),b(this,_0x1899bc(0x3cc),null),this[_0x1899bc(0x1c6)]();}[_0x409fb3(0x1c6)](){const _0x390753=_0x409fb3;this[_0x390753(0x42b)][_0x390753(0x148)][_0x390753(0x423)]((0x0,i[_0x390753(0x24c)])(this['dispose$']),(0x0,i['switchMap'])(_0x428e51=>{const _0x1cc886=_0x390753;if(_0x428e51){let _0x554d17=_0x428e51[_0x1cc886(0x272)];return(0x0,r[_0x1cc886(0x2d0)])(this['_collabCursorController']['getCollabCursors$'](this['_context'][_0x1cc886(0x312)]),this[_0x1cc886(0x1f2)][_0x1cc886(0x3f4)])[_0x1cc886(0x423)]((0x0,i[_0x1cc886(0x3c9)])(([_0x486f03,_0x1a5bf8])=>{const _0x4971dc=_0x1cc886;let _0x1a8e07=new Map();return _0x486f03[_0x4971dc(0x2e3)]((_0x5f1bf3,_0xf84010)=>{const _0x5643d6=_0x4971dc;if(_0x5f1bf3['sheetID']===_0x554d17){let _0x14bf4e={..._0x5f1bf3};_0x14bf4e[_0x5643d6(0x33b)]=this['_themeService'][_0x5643d6(0x2d4)](_0x5f1bf3['color']),_0x1a8e07['set'](_0xf84010,_0x14bf4e);}}),{'skeleton':_0x428e51,'cursors':_0x1a8e07};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x390753(0x1ac)](({skeleton:_0x109a8d,cursors:_0x56bad3})=>{const _0xb6535f=_0x390753;this[_0xb6535f(0x2c4)](),_0x109a8d&&this[_0xb6535f(0x1ec)](_0x109a8d,_0x56bad3);}),this[_0x390753(0x415)](this[_0x390753(0x42b)]['currentSkeleton$']['pipe']((0x0,i[_0x390753(0x24c)])(this[_0x390753(0x3bd)]))[_0x390753(0x1ac)](_0x3cd65f=>{const _0x599aed=_0x390753;var _0x292593;if(_0x3cd65f==null)return;(_0x292593=this['_pointerMoveDisposable'])==null||_0x292593[_0x599aed(0x343)](),this[_0x599aed(0x3cc)]=null;let {skeleton:_0x623570}=_0x3cd65f,{scene:_0x521af7}=this[_0x599aed(0x317)];this[_0x599aed(0x3cc)]=_0x521af7['onPointerMove$'][_0x599aed(0x38c)]((0x0,t['debounce'])(_0x5c6166=>{const _0x23f722=_0x599aed;var _0x2860a0,_0x5949d0;let {offsetX:_0x4c4cb1,offsetY:_0x345a26}=_0x5c6166,{x:_0x8ad58f,y:_0x241ae6}=_0x521af7['getCoordRelativeToViewport'](p[_0x23f722(0x2c3)]['FromArray']([_0x4c4cb1,_0x345a26])),{scaleX:_0x10dfe7,scaleY:_0x5b778c}=_0x521af7[_0x23f722(0x1dd)](),_0x4b766e=_0x521af7[_0x23f722(0x351)](p[_0x23f722(0x409)][_0x23f722(0x156)]),_0x1f4b9b=_0x521af7['getScrollXYInfoByViewport'](p['Vector2'][_0x23f722(0x225)]([_0x8ad58f,_0x241ae6]),_0x4b766e),_0x54924d=_0x623570[_0x23f722(0x1a6)](_0x4c4cb1,_0x345a26,_0x10dfe7,_0x5b778c,_0x1f4b9b);(((_0x2860a0=this['_lastPointer'])==null?void 0x0:_0x2860a0['column'])!==_0x54924d[_0x23f722(0x35a)]||((_0x5949d0=this[_0x23f722(0x41a)])==null?void 0x0:_0x5949d0['row'])!==_0x54924d[_0x23f722(0x224)])&&this[_0x23f722(0x141)][_0x23f722(0x2e3)](_0x50b74f=>{const _0x4c2afb=_0x23f722;_0x50b74f[_0x4c2afb(0x24f)](_0x54924d);});},0x64));})),this[_0x390753(0x415)]((0x0,t[_0x390753(0x19e)])(()=>{const _0xfc104a=_0x390753;var _0x77b16f;(_0x77b16f=this[_0xfc104a(0x3cc)])==null||_0x77b16f[_0xfc104a(0x343)](),this[_0xfc104a(0x3cc)]=null;}));}[_0x409fb3(0x1ec)](_0x1a39d9,_0x250242){const _0x3da0bc=_0x409fb3;let _0x25e265=this[_0x3da0bc(0x42b)][_0x3da0bc(0x1b8)]();if(!_0x25e265)return;let _0x28cca0=this[_0x3da0bc(0x2da)]();if(!_0x28cca0)return;this[_0x3da0bc(0x141)][_0x3da0bc(0x2e3)](_0x50698a=>{const _0x437509=_0x3da0bc;_0x50698a[_0x437509(0x372)]();});let {scene:_0x5a5f1a}=_0x28cca0,_0x6401b2=ge(Array[_0x3da0bc(0x416)](_0x250242[_0x3da0bc(0x25c)]()))[_0x3da0bc(0x3c9)](_0x54c14b=>{const _0x448e8a=_0x3da0bc;let {color:_0x44e699,range:_0xde05ac,name:_0xdb3156,selection:_0x31d09b,sheetID:_0xc8d5e3}=_0x54c14b,{startColumn:_0x1784b0,startRow:_0x4ceb30,endColumn:_0x279538,endRow:_0x25f9d2}=_0xde05ac,_0x52f06e=(0x0,_[_0x448e8a(0x1df)])(_0x4ceb30,_0x1784b0,_0x5a5f1a,_0x25e265),_0x632add=(0x0,_[_0x448e8a(0x1df)])(_0x25f9d2,_0x279538,_0x5a5f1a,_0x25e265),{columnHeaderHeightAndMarginTop:_0x1ca623}=_0x25e265,{startX:_0x2e1498,startY:_0x3eef64}=_0x52f06e,{endX:_0x480aed,endY:_0x36f0e5}=_0x632add,_0x2eb005=_0x480aed-_0x2e1498,_0x51e611=_0x36f0e5-_0x3eef64;return new he(_0xdb3156,{'labelPosition':_0x3eef64-_0x1ca623>=0x14?_0x448e8a(0x32d):'bottom','sheetID':_0xc8d5e3,'range':_0xde05ac,'color':_0x44e699,'name':_0xdb3156,'selection':_0x31d09b,'left':_0x2e1498,'top':_0x3eef64,'width':_0x2eb005,'height':_0x51e611,'evented':!0x1,'zIndex':0x1389});});_0x5a5f1a[_0x3da0bc(0x398)](_0x6401b2,0x1),this[_0x3da0bc(0x141)]=new Set(_0x6401b2);}[_0x409fb3(0x2c4)](){const _0x1cf1bf=_0x409fb3;var _0x4b7fa3;(_0x4b7fa3=this[_0x1cf1bf(0x141)])==null||_0x4b7fa3[_0x1cf1bf(0x2e3)](_0x248ea0=>_0x248ea0[_0x1cf1bf(0x2c8)]());}[_0x409fb3(0x2da)](){const _0x583d2b=_0x409fb3;return(0x0,_[_0x583d2b(0x3cd)])(this[_0x583d2b(0x317)]['unit'],this['_context']);}};I=S([x(0x1,(0x0,t[_0x409fb3(0x329)])(_[_0x409fb3(0x3bc)])),x(0x2,(0x0,t['Inject'])(A)),x(0x3,(0x0,t['Inject'])(t[_0x409fb3(0x188)]))],I);function ge(_0x1df6cb){const _0x2b19c5=_0x409fb3;let _0x2d3c80=new Map();return _0x1df6cb[_0x2b19c5(0x2e3)](_0x16d649=>{const _0x4dcbf0=_0x2b19c5;if(_0x2d3c80[_0x4dcbf0(0x1e0)](_0x16d649[_0x4dcbf0(0x39d)])){let _0x3d36f2=_0x2d3c80['get'](_0x16d649[_0x4dcbf0(0x39d)]);_0x3d36f2[_0x4dcbf0(0x166)]+=',\x20'+_0x16d649[_0x4dcbf0(0x166)];}else _0x2d3c80[_0x4dcbf0(0x16b)](_0x16d649[_0x4dcbf0(0x39d)],_0x16d649);}),Array[_0x2b19c5(0x416)](_0x2d3c80['values']());}function L(_0x1eaaba){return typeof _0x1eaaba=='object'&&!!_0x1eaaba;}function _e(_0x3f6cc8){const _0x2fd744=_0x409fb3;return _0x3f6cc8[_0x2fd744(0x3ac)]===l[_0x2fd744(0x299)][_0x2fd744(0x150)]&&_0x2fd744(0x276)in _0x3f6cc8&&L(_0x3f6cc8[_0x2fd744(0x276)])&&typeof _0x3f6cc8[_0x2fd744(0x276)][_0x2fd744(0x2bb)]==_0x2fd744(0x437)&&typeof _0x3f6cc8[_0x2fd744(0x276)]['selection']==_0x2fd744(0x437);}function ve(_0x1d7823){const _0x27172a=_0x409fb3;return _0x1d7823[_0x27172a(0x3ac)]===l['CollaborationEvent'][_0x27172a(0x320)]&&_0x27172a(0x276)in _0x1d7823&&L(_0x1d7823['data'])&&typeof _0x1d7823[_0x27172a(0x276)]['memberID']==_0x27172a(0x437);}function ye(_0xc911ab,_0x5e7bde){const _0x55e422=_0x409fb3;let _0x28b8b1;try{_0x28b8b1=JSON[_0x55e422(0x3eb)](_0xc911ab);}catch{return null;}if(!L(_0x28b8b1)||typeof _0x28b8b1[_0x55e422(0x342)]!=_0x55e422(0x437)||typeof _0x28b8b1[_0x55e422(0x312)]!=_0x55e422(0x437)||typeof _0x28b8b1[_0x55e422(0x216)]!=_0x55e422(0x437))return null;let _0x232994=typeof _0x28b8b1[_0x55e422(0x2c9)]==_0x55e422(0x236)?_0x28b8b1[_0x55e422(0x2c9)]:_0x5e7bde;if(_0x232994==null)return null;let _0x42f4b0=L(_0x28b8b1[_0x55e422(0x231)])&&typeof _0x28b8b1[_0x55e422(0x231)]['x']==_0x55e422(0x236)&&Number[_0x55e422(0x433)](_0x28b8b1[_0x55e422(0x231)]['x'])&&typeof _0x28b8b1['pointer']['y']==_0x55e422(0x236)&&Number[_0x55e422(0x433)](_0x28b8b1[_0x55e422(0x231)]['y'])?{'x':_0x28b8b1[_0x55e422(0x231)]['x'],'y':_0x28b8b1[_0x55e422(0x231)]['y']}:null;return{'kind':_0x28b8b1['kind'],'unitType':_0x232994,'unitId':_0x28b8b1[_0x55e422(0x312)],'subUnitId':_0x28b8b1['subUnitId'],'selectedIds':Array[_0x55e422(0x1b0)](_0x28b8b1[_0x55e422(0x359)])?_0x28b8b1['selectedIds'][_0x55e422(0x232)](_0x504e2a=>typeof _0x504e2a=='string'):[],'focusedId':typeof _0x28b8b1['focusedId']==_0x55e422(0x437)?_0x28b8b1['focusedId']:null,'pointer':_0x42f4b0};}function be(_0x58a7e4,_0x8966b9,_0x41b18b){const _0x5337d0=_0x409fb3;return{'kind':_0x8966b9,'unitType':_0x58a7e4,'unitId':_0x41b18b[_0x5337d0(0x312)],'subUnitId':_0x41b18b[_0x5337d0(0x216)],'selectedIds':Array[_0x5337d0(0x416)](_0x41b18b[_0x5337d0(0x359)]),'focusedId':_0x41b18b[_0x5337d0(0x24e)],'pointer':_0x41b18b[_0x5337d0(0x231)]?{..._0x41b18b[_0x5337d0(0x231)]}:null};}let R=class extends t[_0x409fb3(0x184)]{constructor(_0x421800,_0x49924b,_0x28b8d6,_0x4e9ceb,_0x4db2ed,_0x40ea27){const _0xb010be=_0x409fb3;super(),this[_0xb010be(0x312)]=_0x421800,this[_0xb010be(0x2f4)]=_0x49924b,this['_adapter']=_0x28b8d6,this[_0xb010be(0x2e5)]=_0x4e9ceb,this[_0xb010be(0x164)]=_0x4db2ed,this[_0xb010be(0x26a)]=_0x40ea27,b(this,_0xb010be(0x1c5),!0x1),b(this,_0xb010be(0x13d),!0x1);}get[_0x409fb3(0x2c9)](){const _0x276a7c=_0x409fb3;return this[_0x276a7c(0x1bd)][_0x276a7c(0x2c9)];}[_0x409fb3(0x2c8)](){const _0x1ef759=_0x409fb3;this[_0x1ef759(0x1e2)](),super[_0x1ef759(0x2c8)]();}[_0x409fb3(0x181)](){const _0x8900f9=_0x409fb3;this[_0x8900f9(0x13d)]||(this[_0x8900f9(0x13d)]=!0x0,this['_session'][_0x8900f9(0x254)][_0x8900f9(0x423)]((0x0,r[_0x8900f9(0x24c)])(this[_0x8900f9(0x3bd)]))[_0x8900f9(0x1ac)](_0x181038=>{const _0xf75330=_0x8900f9;if(_0x181038===e[_0xf75330(0x355)][_0xf75330(0x147)]){this[_0xf75330(0x1c5)]=!0x0;let _0x2e64a1=this[_0xf75330(0x1bd)][_0xf75330(0x2f9)](this[_0xf75330(0x312)]);_0x2e64a1&&this['_sendLocalPresence'](_0x2e64a1);return;}this[_0xf75330(0x1c5)]=!0x1,this[_0xf75330(0x1e2)]();}),this[_0x8900f9(0x2f4)]['event$']['pipe']((0x0,r[_0x8900f9(0x24c)])(this[_0x8900f9(0x3bd)]))['subscribe'](_0xe714f8=>{const _0x4b6719=_0x8900f9;_e(_0xe714f8)?this['_handleCursorUpdate'](_0xe714f8):ve(_0xe714f8)&&this[_0x4b6719(0x1e9)](_0xe714f8['data'][_0x4b6719(0x2bb)]);}),this[_0x8900f9(0x1bd)]['localPresence$'][_0x8900f9(0x423)]((0x0,r['filter'])(_0x6a806e=>this[_0x8900f9(0x1c5)]&&_0x6a806e[_0x8900f9(0x312)]===this[_0x8900f9(0x312)]),(0x0,r[_0x8900f9(0x41b)])(_0x548676=>(0x0,r[_0x8900f9(0x20b)])(_0x548676[_0x8900f9(0x145)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r[_0x8900f9(0x24c)])(this[_0x8900f9(0x3bd)]))[_0x8900f9(0x1ac)](_0x301be5=>this[_0x8900f9(0x136)](_0x301be5)));}[_0x409fb3(0x136)](_0x105c98){const _0x470811=_0x409fb3;let _0x417524=this['_session']['getMemberID']();if(!_0x417524||!this['_online'])return;let _0x5190c9={'eventID':l[_0x470811(0x299)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x470811(0x312)],'memberID':_0x417524,'selection':JSON[_0x470811(0x32f)](be(this[_0x470811(0x2c9)],this[_0x470811(0x1bd)][_0x470811(0x2aa)],_0x105c98))}};this[_0x470811(0x2f4)][_0x470811(0x13b)](_0x5190c9,this['unitId'])[_0x470811(0x16f)](()=>void 0x0);}['_handleCursorUpdate'](_0x28e539){const _0x24074a=_0x409fb3;let {memberID:_0x26434d,selection:_0x1ce414}=_0x28e539[_0x24074a(0x276)];if(_0x26434d===this['_session'][_0x24074a(0x3d6)]())return;let _0x157473=ye(_0x1ce414,this['unitType']);if(!_0x157473||_0x157473[_0x24074a(0x342)]!==this['_adapter'][_0x24074a(0x2aa)]||_0x157473[_0x24074a(0x2c9)]!==this[_0x24074a(0x2c9)]||_0x157473[_0x24074a(0x312)]!==this[_0x24074a(0x312)])return;let _0xc8321b=this[_0x24074a(0x164)][_0x24074a(0x2cd)](this[_0x24074a(0x312)],_0x26434d),_0x36cc88={'unitId':_0x157473[_0x24074a(0x312)],'subUnitId':_0x157473[_0x24074a(0x216)],'selectedIds':_0x157473['selectedIds'],'focusedId':_0x157473[_0x24074a(0x24e)],'pointer':_0x157473[_0x24074a(0x231)],'memberId':_0x26434d,'color':this['_colorAssignService'][_0x24074a(0x30a)](_0x26434d),'name':(_0xc8321b==null?void 0x0:_0xc8321b[_0x24074a(0x166)])??_0x26434d};this[_0x24074a(0x26a)][_0x24074a(0x1b7)](w['id'],{'unitType':this[_0x24074a(0x2c9)],'update':{'type':_0x24074a(0x16b),'state':_0x36cc88}})[_0x24074a(0x16f)](()=>void 0x0);}[_0x409fb3(0x1e9)](_0x52b013){const _0x53f3b7=_0x409fb3;this['_commandService']['executeCommand'](w['id'],{'unitType':this['unitType'],'update':{'type':_0x53f3b7(0x307),'unitId':this[_0x53f3b7(0x312)],'memberId':_0x52b013}})[_0x53f3b7(0x16f)](()=>void 0x0);}[_0x409fb3(0x1e2)](){const _0xc5ae82=_0x409fb3;this['_commandService'][_0xc5ae82(0x1b7)](w['id'],{'unitType':this[_0xc5ae82(0x2c9)],'update':{'type':'clear','unitId':this[_0xc5ae82(0x312)]}})[_0xc5ae82(0x16f)](()=>void 0x0);}};R=S([x(0x3,(0x0,t['Inject'])(E)),x(0x4,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x257)])),x(0x5,(0x0,t[_0x409fb3(0x329)])(t['ICommandService']))],R);let z=class extends t[_0x409fb3(0x184)]{constructor(_0x273c65,_0x1c6dc0,_0x461be2,_0x1dac29){const _0x568193=_0x409fb3;super(),this[_0x568193(0x1ce)]=_0x273c65,this[_0x568193(0x381)]=_0x1c6dc0,this[_0x568193(0x2ef)]=_0x461be2,this['_adapterRegistry']=_0x1dac29,b(this,_0x568193(0x24b),!0x1),b(this,_0x568193(0x15c),new Map()),b(this,_0x568193(0x3df),new Map()),b(this,'_adapterDisposables',new Map()),this[_0x568193(0x1c6)]();}['dispose'](){const _0x26be80=_0x409fb3;this[_0x26be80(0x24b)]=!0x0,this[_0x26be80(0x213)][_0x26be80(0x2e3)](_0x4f62e0=>_0x4f62e0[_0x26be80(0x2c8)]()),this['_adapterDisposables'][_0x26be80(0x365)](),this[_0x26be80(0x15c)]['forEach'](_0x5328e8=>_0x5328e8[_0x26be80(0x2c8)]()),this[_0x26be80(0x15c)][_0x26be80(0x365)](),this[_0x26be80(0x3df)]['clear'](),super['dispose']();}['_init'](){const _0x531630=_0x409fb3;this[_0x531630(0x360)][_0x531630(0x306)]['pipe']((0x0,r['takeUntil'])(this['dispose$']))['subscribe'](_0xf65dfc=>this[_0x531630(0x16c)](_0xf65dfc));}[_0x409fb3(0x16c)](_0x1b17ee){const _0xd9b927=_0x409fb3;let _0x380b3d=new Set(_0x1b17ee['map'](_0x9ea3c0=>_0x9ea3c0[_0xd9b927(0x2c9)]));this['_adapterDisposables'][_0xd9b927(0x2e3)]((_0x15f222,_0x412ed5)=>{const _0x19ebc5=_0xd9b927;_0x380b3d['has'](_0x412ed5)||(_0x15f222[_0x19ebc5(0x2c8)](),this[_0x19ebc5(0x213)][_0x19ebc5(0x205)](_0x412ed5),this[_0x19ebc5(0x410)](_0x412ed5));}),_0x1b17ee[_0xd9b927(0x2e3)](_0x112cd5=>{const _0xdb2c21=_0xd9b927;this[_0xdb2c21(0x213)][_0xdb2c21(0x1e0)](_0x112cd5[_0xdb2c21(0x2c9)])||this[_0xdb2c21(0x40d)](_0x112cd5);});}[_0x409fb3(0x40d)](_0x5c333f){const _0x1f0c7a=_0x409fb3;let _0x3952ec=new t['DisposableCollection']();this[_0x1f0c7a(0x213)][_0x1f0c7a(0x16b)](_0x5c333f[_0x1f0c7a(0x2c9)],_0x3952ec),_0x3952ec[_0x1f0c7a(0x2ce)](_0x5c333f[_0x1f0c7a(0x29d)]()),this['_univerInstanceService'][_0x1f0c7a(0x2b9)](_0x5c333f[_0x1f0c7a(0x2c9)])[_0x1f0c7a(0x2e3)](_0x1c1d1d=>this[_0x1f0c7a(0x3fb)](_0x1c1d1d[_0x1f0c7a(0x3ba)](),_0x5c333f)[_0x1f0c7a(0x16f)](()=>void 0x0));let _0x4ed4df=this[_0x1f0c7a(0x1ce)]['getTypeOfUnitAdded$'](_0x5c333f[_0x1f0c7a(0x2c9)])[_0x1f0c7a(0x1ac)](({unit:_0x3ec3b2})=>this[_0x1f0c7a(0x3fb)](_0x3ec3b2[_0x1f0c7a(0x3ba)](),_0x5c333f)[_0x1f0c7a(0x16f)](()=>void 0x0));_0x3952ec['add']((0x0,t['toDisposable'])(()=>_0x4ed4df[_0x1f0c7a(0x343)]()));let _0x2c6349=this['_univerInstanceService'][_0x1f0c7a(0x3d2)](_0x5c333f[_0x1f0c7a(0x2c9)])['subscribe'](_0x3f115c=>this['_disposeEntity'](_0x3f115c[_0x1f0c7a(0x3ba)]()));_0x3952ec['add']((0x0,t['toDisposable'])(()=>_0x2c6349[_0x1f0c7a(0x343)]()));}async[_0x409fb3(0x3fb)](_0x2d0bda,_0x3a812e){const _0x50d18b=_0x409fb3;if(this[_0x50d18b(0x15c)][_0x50d18b(0x1e0)](_0x2d0bda)||this['_pendingEntities'][_0x50d18b(0x1e0)](_0x2d0bda))return;let _0x1de1db={};this[_0x50d18b(0x3df)]['set'](_0x2d0bda,_0x1de1db);let _0x1b9a57=await this['_collabSessionService'][_0x50d18b(0x17a)](_0x2d0bda)[_0x50d18b(0x16f)](_0x2804d2=>{const _0x4fff72=_0x50d18b;throw this[_0x4fff72(0x3df)][_0x4fff72(0x424)](_0x2d0bda)===_0x1de1db&&this[_0x4fff72(0x3df)][_0x4fff72(0x205)](_0x2d0bda),_0x2804d2;});if(this[_0x50d18b(0x24b)]||this[_0x50d18b(0x3df)][_0x50d18b(0x424)](_0x2d0bda)!==_0x1de1db||this[_0x50d18b(0x360)][_0x50d18b(0x424)](_0x3a812e[_0x50d18b(0x2c9)])!==_0x3a812e){this[_0x50d18b(0x3df)][_0x50d18b(0x424)](_0x2d0bda)===_0x1de1db&&this[_0x50d18b(0x3df)][_0x50d18b(0x205)](_0x2d0bda);return;}let _0x2f888d=this[_0x50d18b(0x381)][_0x50d18b(0x36d)](R,_0x2d0bda,_0x1b9a57,_0x3a812e);_0x2f888d[_0x50d18b(0x181)](),this[_0x50d18b(0x3df)][_0x50d18b(0x205)](_0x2d0bda),this[_0x50d18b(0x15c)]['set'](_0x2d0bda,_0x2f888d);}[_0x409fb3(0x3b0)](_0x12ad85){const _0x75ee8f=_0x409fb3;this[_0x75ee8f(0x3df)][_0x75ee8f(0x205)](_0x12ad85);let _0x4d4a46=this[_0x75ee8f(0x15c)]['get'](_0x12ad85);_0x4d4a46&&(_0x4d4a46[_0x75ee8f(0x2c8)](),this['_entities'][_0x75ee8f(0x205)](_0x12ad85));}[_0x409fb3(0x410)](_0x49205d){const _0x42a2b2=_0x409fb3;this[_0x42a2b2(0x1ce)][_0x42a2b2(0x2b9)](_0x49205d)[_0x42a2b2(0x2e3)](_0x529510=>this[_0x42a2b2(0x3df)]['delete'](_0x529510[_0x42a2b2(0x3ba)]())),Array[_0x42a2b2(0x416)](this[_0x42a2b2(0x15c)][_0x42a2b2(0x401)]())[_0x42a2b2(0x2e3)](([_0x9886ec,_0x1cf626])=>{const _0x14a5f8=_0x42a2b2;_0x1cf626[_0x14a5f8(0x2c9)]===_0x49205d&&this['_disposeEntity'](_0x9886ec);});}};z=S([x(0x0,t[_0x409fb3(0x21b)]),x(0x1,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x2,(0x0,t['Inject'])(e[_0x409fb3(0x207)])),x(0x3,(0x0,t[_0x409fb3(0x329)])(n[_0x409fb3(0x275)]))],z);let B=class extends t[_0x409fb3(0x277)]{constructor(_0x12b23e,_0x292aca,_0x376f4f,_0x284576,_0x269959,_0x234a74){const _0x343774=_0x409fb3;super(),this[_0x343774(0x23a)]=_0x12b23e,this[_0x343774(0x17f)]=_0x292aca,this[_0x343774(0x3e3)]=_0x376f4f,this[_0x343774(0x178)]=_0x284576,this['_notificationService']=_0x269959,this[_0x343774(0x429)]=_0x234a74,b(this,_0x343774(0x209),null),b(this,_0x343774(0x3a6),new Set()),this[_0x343774(0x21f)](),this['_initEvent']();}[_0x409fb3(0x2c8)](){const _0x592149=_0x409fb3;var _0x3a42b3;(_0x3a42b3=this[_0x592149(0x209)])==null||_0x3a42b3[_0x592149(0x2c8)](),this[_0x592149(0x209)]=null,super['dispose']();}['_setupBeforeClosingHandler'](){const _0x22331e=_0x409fb3;this['disposeWithMe'](this[_0x22331e(0x23a)][_0x22331e(0x2fb)](()=>{const _0x1ac3ba=_0x22331e;if(this[_0x1ac3ba(0x17f)][_0x1ac3ba(0x346)][_0x1ac3ba(0x153)])return this['_localeService']['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x409fb3(0x26d)](){const _0x48f1fe=_0x409fb3;this[_0x48f1fe(0x415)](this[_0x48f1fe(0x3e3)]['event$'][_0x48f1fe(0x1ac)](_0x2d12bb=>{const _0x3edfe1=_0x48f1fe;_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x411)]&&this[_0x3edfe1(0x178)]['show']({'type':a[_0x3edfe1(0x39e)]['Warning'],'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x435))}),_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x31a)]&&this[_0x3edfe1(0x178)][_0x3edfe1(0x2a3)]({'type':a[_0x3edfe1(0x39e)]['Warning'],'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x30f))}),_0x2d12bb['id']===e['CollaborationUIEventId'][_0x3edfe1(0x2b8)]&&this[_0x3edfe1(0x2b5)]({'title':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x22a)),'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x241)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x2dc)),'onClick':_0x2fd5be=>{const _0x361cb7=_0x3edfe1;_0x2fd5be['preventDefault'](),window['location'][_0x361cb7(0x154)]();}}}),_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x20c)]&&this[_0x3edfe1(0x374)](),_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x20e)]&&_0x2d12bb[_0x3edfe1(0x172)]&&this['_showConflictCacheClearFailedNotification'](_0x2d12bb[_0x3edfe1(0x172)]),_0x2d12bb['id']===e['CollaborationUIEventId'][_0x3edfe1(0x1dc)]&&this[_0x3edfe1(0x2b5)]({'title':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x35c)),'content':this[_0x3edfe1(0x429)]['t']('collaboration-client-ui.conflict.content'),'type':_0x3edfe1(0x3ff),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x2dc)),'onClick':_0x3c3c28=>{const _0x563654=_0x3edfe1;_0x3c3c28[_0x563654(0x3fd)](),window[_0x563654(0x1d2)][_0x563654(0x154)]();}}}),_0x2d12bb['id']===e[_0x3edfe1(0x367)]['JOIN_ROOM_FAILED']&&this[_0x3edfe1(0x178)][_0x3edfe1(0x2a3)]({'type':a[_0x3edfe1(0x39e)][_0x3edfe1(0x325)],'content':this[_0x3edfe1(0x429)]['t'](_0x2d12bb[_0x3edfe1(0x276)]||'')}),_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x291)]&&this[_0x3edfe1(0x178)][_0x3edfe1(0x2a3)]({'type':a[_0x3edfe1(0x39e)]['Warning'],'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x3a1))}),_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x388)]&&this[_0x3edfe1(0x178)]['show']({'type':a['MessageType'][_0x3edfe1(0x1ef)],'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x135))}),_0x2d12bb['id']===e['CollaborationUIEventId'][_0x3edfe1(0x194)]&&this['_messageService']['show']({'type':a[_0x3edfe1(0x39e)][_0x3edfe1(0x1ef)],'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x134))});}));}[_0x409fb3(0x374)](){const _0x2a9697=_0x409fb3;this[_0x2a9697(0x2b5)]({'title':this[_0x2a9697(0x429)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x2a9697(0x429)]['t'](_0x2a9697(0x1bf)),'type':_0x2a9697(0x28a),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x27914f){const _0x2c1d36=_0x409fb3;this[_0x2c1d36(0x2b5)]({'title':this[_0x2c1d36(0x429)]['t']('collaboration-client-ui.conflict.title'),'content':this['_localeService']['t'](_0x2c1d36(0x2f2)),'type':_0x2c1d36(0x3ff),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x2a56bc=>{const _0x18a2dd=_0x2c1d36;_0x2a56bc[_0x18a2dd(0x3fd)](),this[_0x18a2dd(0x2cf)](_0x27914f);}}});}['_retryConflictCacheClear'](_0x3bd307){const _0x5a3047=_0x409fb3;this['_retryingConflictCacheUnitIDs'][_0x5a3047(0x1e0)](_0x3bd307)||(this[_0x5a3047(0x3a6)]['add'](_0x3bd307),this[_0x5a3047(0x374)](),this[_0x5a3047(0x17f)][_0x5a3047(0x200)](_0x3bd307)[_0x5a3047(0x1d6)](()=>window[_0x5a3047(0x1d2)][_0x5a3047(0x154)]())[_0x5a3047(0x16f)](()=>this['_showConflictCacheClearFailedNotification'](_0x3bd307))[_0x5a3047(0x1aa)](()=>this[_0x5a3047(0x3a6)][_0x5a3047(0x205)](_0x3bd307)));}[_0x409fb3(0x2b5)](_0xa80e6c){const _0x585094=_0x409fb3;var _0x36040c;(_0x36040c=this[_0x585094(0x209)])==null||_0x36040c[_0x585094(0x2c8)](),this[_0x585094(0x209)]=this[_0x585094(0x336)]['show'](_0xa80e6c);}};B=S([x(0x0,n[_0x409fb3(0x25d)]),x(0x1,e[_0x409fb3(0x14c)]),x(0x2,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x23f)])),x(0x3,n[_0x409fb3(0x3f1)]),x(0x4,n[_0x409fb3(0x386)]),x(0x5,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x292)]))],B);const V=(0x0,t['createIdentifier'])(_0x409fb3(0x3a3));let H=class extends t[_0x409fb3(0x184)]{constructor(_0x109ad0,_0x438ed5,_0x3bc153,_0x47af16){const _0x2166ab=_0x409fb3;super(),this[_0x2166ab(0x1b9)]=_0x109ad0,this[_0x2166ab(0x252)]=_0x438ed5,this[_0x2166ab(0x26a)]=_0x3bc153,this[_0x2166ab(0x384)]=_0x47af16,this[_0x2166ab(0x1c6)]()[_0x2166ab(0x16f)](_0x543dd9=>this[_0x2166ab(0x252)][_0x2166ab(0x3ff)]('[CollaborationDataLoaderController]',_0x543dd9));}async[_0x409fb3(0x1c6)](){const _0x5d240d=_0x409fb3;let _0x5baa62=this[_0x5d240d(0x1b9)]['getParam']('unit'),_0x29e066=this[_0x5d240d(0x1b9)][_0x5d240d(0x143)](_0x5d240d(0x3b7)),_0x54976d=this[_0x5d240d(0x1b9)][_0x5d240d(0x143)](_0x5d240d(0x328));if(!_0x5baa62||!_0x29e066){this[_0x5d240d(0x252)][_0x5d240d(0x185)](_0x5d240d(0x3d4),_0x5d240d(0x165));return;}let _0x180fca=await this[_0x5d240d(0x384)][_0x5d240d(0x256)](_0x5baa62,Number(_0x29e066),_0x54976d);this['_disposed']||_0x180fca&&_0x180fca instanceof t[_0x5d240d(0x334)]&&await this[_0x5d240d(0x223)](_0x180fca);}async[_0x409fb3(0x223)](_0x1f62c7){const _0x14611c=_0x409fb3;await this[_0x14611c(0x41d)](_0x1f62c7,!0x0),!this[_0x14611c(0x278)]&&(_0x1f62c7[_0x14611c(0x2d3)][_0x14611c(0x423)]((0x0,r[_0x14611c(0x24c)])(this[_0x14611c(0x3bd)]))[_0x14611c(0x1ac)](_0x23219d=>{_0x23219d&&this['_updateURLWithCurrentState'](_0x23219d);}),this[_0x14611c(0x1b9)][_0x14611c(0x3ee)][_0x14611c(0x423)]((0x0,r[_0x14611c(0x24c)])(this[_0x14611c(0x3bd)]))[_0x14611c(0x1ac)](()=>{const _0x5a59d6=_0x14611c;this[_0x5a59d6(0x41d)](_0x1f62c7)['catch'](_0x263e53=>this[_0x5a59d6(0x252)][_0x5a59d6(0x3ff)](_0x5a59d6(0x3d4),_0x263e53));}));}['_updateURLWithCurrentState'](_0x362f11,_0x1fa104=!0x1){const _0x3b3dbf=_0x409fb3;let _0x22a0c8=this[_0x3b3dbf(0x1b9)][_0x3b3dbf(0x143)]('subunit');_0x362f11[_0x3b3dbf(0x38d)]()!==_0x22a0c8&&this[_0x3b3dbf(0x1b9)]['setParam'](_0x3b3dbf(0x328),_0x362f11[_0x3b3dbf(0x38d)](),_0x1fa104);}async[_0x409fb3(0x41d)](_0x2ec84f,_0x3d1f49=!0x1){const _0x32eeca=_0x409fb3;var _0xeb3130;let _0x18d9ad=this[_0x32eeca(0x1b9)][_0x32eeca(0x143)](_0x32eeca(0x328));if(!_0x18d9ad||!_0x2ec84f[_0x32eeca(0x2ca)](_0x18d9ad)){let _0x4c21a4=_0x2ec84f['getUnhiddenWorksheets']()[0x0],_0x25408b=_0x2ec84f[_0x32eeca(0x2ca)](_0x4c21a4);if(!_0x25408b||(this['_updateURLWithCurrentState'](_0x25408b,!0x0),this['_disposed']))return;await this[_0x32eeca(0x26a)][_0x32eeca(0x1b7)](g[_0x32eeca(0x14e)]['id'],{'unitId':_0x2ec84f[_0x32eeca(0x3ba)](),'subUnitId':_0x4c21a4});return;}(_0x3d1f49||((_0xeb3130=_0x2ec84f[_0x32eeca(0x1b2)]())==null?void 0x0:_0xeb3130[_0x32eeca(0x38d)]())!==_0x18d9ad)&&await this[_0x32eeca(0x26a)][_0x32eeca(0x1b7)](g[_0x32eeca(0x14e)]['id'],{'unitId':_0x2ec84f[_0x32eeca(0x3ba)](),'subUnitId':_0x18d9ad});}};H=S([x(0x0,V),x(0x1,t['ILogService']),x(0x2,t[_0x409fb3(0x228)]),x(0x3,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x1c4)]))],H);let U=class{constructor(_0x4b13f1,_0x2c0448){const _0x4a0c17=_0x409fb3;this['_transformService']=_0x4b13f1,this[_0x4a0c17(0x2a4)]=_0x2c0448;}[_0x409fb3(0x39a)](_0x4b2fba){const _0x17de12=_0x409fb3;this[_0x17de12(0x197)](_0x4b2fba),this[_0x17de12(0x288)](_0x4b2fba);}['transformRemoteChangeset'](_0x186957){const _0x442b9c=_0x409fb3;let {unitID:_0x24afac}=_0x186957,{redoCache:_0x2ccb7a}=this[_0x442b9c(0x2a4)][_0x442b9c(0x250)](_0x24afac)['with'](f[_0x442b9c(0x3ce)])[_0x442b9c(0x371)]();if(_0x2ccb7a[_0x442b9c(0x1fa)]===0x0)return _0x186957;let _0x33cb5c=t[_0x442b9c(0x29e)][_0x442b9c(0x1e7)](_0x186957[_0x442b9c(0x267)][0x0]);for(let _0x275911=0x0;_0x275911<_0x2ccb7a[_0x442b9c(0x1fa)];_0x275911++){let _0x3147e0={'id':'doc.mutation.rich-text-editing','params':{..._0x2ccb7a[_0x275911]}},_0x3ba285=this[_0x442b9c(0x212)][_0x442b9c(0x38a)](_0x33cb5c,_0x3147e0,!0x1);if((0x0,l[_0x442b9c(0x13e)])(_0x3ba285))throw _0x3ba285[_0x442b9c(0x3ff)];_0x33cb5c=_0x3ba285[_0x442b9c(0x1fe)];}return{...t[_0x442b9c(0x29e)][_0x442b9c(0x1e7)](_0x186957),'mutations':[_0x33cb5c]};}['_transformUndoRedoStack'](_0x36fb77){const _0x1f0b20=_0x409fb3;let {unitID:_0x57763c}=_0x36fb77,_0x55ba36=this['_renderManagerService'][_0x1f0b20(0x250)](_0x57763c)[_0x1f0b20(0x383)](f[_0x1f0b20(0x3ce)]),{undoCache:_0x269249,redoCache:_0x49eb59}=_0x55ba36[_0x1f0b20(0x371)]();if(_0x269249[_0x1f0b20(0x1fa)]===0x0||_0x49eb59[_0x1f0b20(0x1fa)]===0x0)return;let _0x40e62=[],_0x47d26c=[],_0x318793=t[_0x1f0b20(0x29e)][_0x1f0b20(0x1e7)](_0x36fb77[_0x1f0b20(0x267)][0x0]),_0x293928=t['Tools']['deepClone'](_0x36fb77[_0x1f0b20(0x267)][0x0]);for(let _0x828de0=_0x269249[_0x1f0b20(0x1fa)]-0x1;_0x828de0>=0x0;_0x828de0--){let _0x4c62d1={'id':_0x1f0b20(0x2ba),'params':{..._0x269249[_0x828de0]}},_0x3ee23c={'id':_0x1f0b20(0x2ba),'params':{..._0x49eb59[_0x828de0]}},_0x13e940=this[_0x1f0b20(0x212)][_0x1f0b20(0x38a)](_0x318793,_0x4c62d1,!0x1),_0x393f8d=this['_transformService']['transformMutation'](_0x293928,_0x3ee23c,!0x1);if((0x0,l[_0x1f0b20(0x13e)])(_0x13e940))throw _0x13e940[_0x1f0b20(0x3ff)];if((0x0,l[_0x1f0b20(0x13e)])(_0x393f8d))throw _0x393f8d['error'];_0x40e62[_0x1f0b20(0x26b)](_0x13e940['m2Prime'][_0x1f0b20(0x1ee)]),_0x47d26c[_0x1f0b20(0x26b)](_0x393f8d[_0x1f0b20(0x3c5)][_0x1f0b20(0x1ee)]),_0x318793=_0x13e940['m1Prime'],_0x293928=_0x393f8d[_0x1f0b20(0x1fe)];}_0x55ba36[_0x1f0b20(0x3d0)]({'undoCache':_0x40e62,'redoCache':_0x47d26c});}[_0x409fb3(0x288)](_0x1bb4f0){const _0x184462=_0x409fb3;let {unitID:_0x2feb49}=_0x1bb4f0,_0x5abcf4=this[_0x184462(0x2a4)]['getRenderUnitById'](_0x2feb49)[_0x184462(0x383)](f[_0x184462(0x3ce)]),_0x4226dd=_0x5abcf4[_0x184462(0x34e)]();if(_0x4226dd==null)return;let _0x5079c7=[{'id':_0x184462(0x2ba),'params':{'unitId':_0x1bb4f0[_0x184462(0x172)],'actions':null,'textRanges':[_0x4226dd]}}],_0x4574f5=this[_0x184462(0x212)][_0x184462(0x42e)](_0x1bb4f0,_0x5079c7);if(!(0x0,l[_0x184462(0x2d7)])(_0x4574f5))throw _0x4574f5[_0x184462(0x3ff)];let _0x57ea83=_0x4574f5[_0x184462(0x3c5)][0x0][_0x184462(0x1ee)][_0x184462(0x308)];Array[_0x184462(0x1b0)](_0x57ea83)&&_0x57ea83['length']&&_0x5abcf4[_0x184462(0x215)](_0x57ea83[0x0]);}};U=S([x(0x0,l['ITransformService']),x(0x1,p[_0x409fb3(0x210)])],U);let W=class{constructor(_0x2ee770,_0x5bf84c,_0x219fbf){const _0x47eaac=_0x409fb3;this[_0x47eaac(0x381)]=_0x2ee770,this['_transformService']=_0x5bf84c,this['_docStateChangeManagerService']=_0x219fbf;}[_0x409fb3(0x179)](_0x14373b){this['_transformHistoryAndStateStack'](_0x14373b);}[_0x409fb3(0x29c)](_0x19b1b4){const _0xfefb9e=_0x409fb3;let {unitID:_0x375b65}=_0x19b1b4,{collaboration:_0x3ab8ca}=this['_docStateChangeManagerService'][_0xfefb9e(0x417)](_0x375b65);if(_0x3ab8ca[_0xfefb9e(0x1fa)]===0x0)return _0x19b1b4;let _0x175400=t[_0xfefb9e(0x29e)][_0xfefb9e(0x1e7)](_0x19b1b4[_0xfefb9e(0x267)][0x0]);for(let _0x1d2fb9=0x0;_0x1d2fb9<_0x3ab8ca[_0xfefb9e(0x1fa)];_0x1d2fb9++){let _0x23187d={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3ab8ca[_0x1d2fb9][_0xfefb9e(0x312)],..._0x3ab8ca[_0x1d2fb9][_0xfefb9e(0x1db)]}},_0x28bae7=this[_0xfefb9e(0x212)][_0xfefb9e(0x38a)](_0x175400,_0x23187d,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x28bae7))throw _0x28bae7[_0xfefb9e(0x3ff)];_0x175400=_0x28bae7['m1Prime'];}return{...t[_0xfefb9e(0x29e)]['deepClone'](_0x19b1b4),'mutations':[_0x175400]};}[_0x409fb3(0x218)](_0x374003){const _0x5325c8=_0x409fb3;let {unitID:_0x34999d}=_0x374003,{history:_0x35a81b,collaboration:_0x118966}=this[_0x5325c8(0x432)][_0x5325c8(0x417)](_0x34999d);if(_0x35a81b['length']===0x0&&_0x118966[_0x5325c8(0x1fa)]===0x0)return;let _0x4ffb64=[],_0x3f6c19=[],_0x1ddfb3=t['Tools'][_0x5325c8(0x1e7)](_0x374003[_0x5325c8(0x267)][0x0]),_0x4b9049=t[_0x5325c8(0x29e)][_0x5325c8(0x1e7)](_0x374003[_0x5325c8(0x267)][0x0]);for(let _0x82cb63=_0x35a81b[_0x5325c8(0x1fa)]-0x1;_0x82cb63>=0x0;_0x82cb63--){let _0x2452a8={'id':_0x5325c8(0x2ba),'params':{'unitId':_0x35a81b[_0x82cb63][_0x5325c8(0x312)],..._0x35a81b[_0x82cb63][_0x5325c8(0x244)]}},_0x30a50a={'id':_0x5325c8(0x2ba),'params':{'unitId':_0x35a81b[_0x82cb63][_0x5325c8(0x312)],..._0x35a81b[_0x82cb63]['redoState']}},_0x3f6210=this[_0x5325c8(0x212)][_0x5325c8(0x38a)](_0x1ddfb3,_0x2452a8,!0x1),_0x734fa9=this[_0x5325c8(0x212)][_0x5325c8(0x38a)](_0x4b9049,_0x30a50a,!0x1);if((0x0,l[_0x5325c8(0x13e)])(_0x3f6210))throw _0x3f6210['error'];if((0x0,l[_0x5325c8(0x13e)])(_0x734fa9))throw _0x734fa9['error'];_0x4ffb64[_0x5325c8(0x26b)]({..._0x35a81b[_0x82cb63],'undoState':_0x3f6210[_0x5325c8(0x3c5)]['params'],'redoState':_0x734fa9['m2Prime'][_0x5325c8(0x1ee)]}),_0x1ddfb3=_0x3f6210[_0x5325c8(0x1fe)],_0x4b9049=_0x734fa9[_0x5325c8(0x1fe)];}_0x1ddfb3=t['Tools']['deepClone'](_0x374003[_0x5325c8(0x267)][0x0]),_0x4b9049=t[_0x5325c8(0x29e)][_0x5325c8(0x1e7)](_0x374003[_0x5325c8(0x267)][0x0]);for(let _0x8bcf50=_0x118966[_0x5325c8(0x1fa)]-0x1;_0x8bcf50>=0x0;_0x8bcf50--){let _0x254157={'id':_0x5325c8(0x2ba),'params':{'unitId':_0x118966[_0x8bcf50]['unitId'],..._0x118966[_0x8bcf50][_0x5325c8(0x244)]}},_0x51611b={'id':_0x5325c8(0x2ba),'params':{'unitId':_0x118966[_0x8bcf50][_0x5325c8(0x312)],..._0x118966[_0x8bcf50]['redoState']}},_0x1779b9=this[_0x5325c8(0x212)][_0x5325c8(0x38a)](_0x1ddfb3,_0x254157,!0x1),_0x5dff59=this[_0x5325c8(0x212)]['transformMutation'](_0x4b9049,_0x51611b,!0x1);if((0x0,l[_0x5325c8(0x13e)])(_0x1779b9))throw _0x1779b9[_0x5325c8(0x3ff)];if((0x0,l[_0x5325c8(0x13e)])(_0x5dff59))throw _0x5dff59[_0x5325c8(0x3ff)];_0x3f6c19[_0x5325c8(0x26b)]({..._0x118966[_0x8bcf50],'undoState':_0x1779b9['m2Prime'][_0x5325c8(0x1ee)],'redoState':_0x5dff59[_0x5325c8(0x3c5)][_0x5325c8(0x1ee)]}),_0x1ddfb3=_0x1779b9[_0x5325c8(0x1fe)],_0x4b9049=_0x5dff59[_0x5325c8(0x1fe)];}this['_docStateChangeManagerService'][_0x5325c8(0x2e9)](_0x34999d,{'history':_0x4ffb64,'collaboration':_0x3f6c19});}};W=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(t['Injector'])),x(0x1,l[_0x409fb3(0x235)]),x(0x2,(0x0,t['Inject'])(d['DocStateChangeManagerService']))],W);let G=class{constructor(_0x1a46c9,_0x287cd3){const _0x2bc0ae=_0x409fb3;this['_docSelectionManagerService']=_0x1a46c9,this[_0x2bc0ae(0x212)]=_0x287cd3;}[_0x409fb3(0x2c2)](_0x863a30){const _0x549c93=_0x409fb3;var _0x3c4c89;let _0x3f6e7e=this[_0x549c93(0x284)][_0x549c93(0x293)]()??[],_0x26a8f7=this[_0x549c93(0x284)][_0x549c93(0x3c3)]();if(_0x3f6e7e[_0x549c93(0x1fa)]===0x0||_0x26a8f7==null)return null;let _0x47f106=_0x863a30['unitID'],_0x262dd3=[{'id':_0x549c93(0x2ba),'params':{'unitId':_0x47f106,'actions':null,'textRanges':_0x3f6e7e}}],_0x5b8598=this[_0x549c93(0x212)]['transformMutationsWithChangeset'](_0x863a30,_0x262dd3);if(!(0x0,l[_0x549c93(0x2d7)])(_0x5b8598))throw _0x5b8598[_0x549c93(0x3ff)];let _0x147bdc=(_0x3c4c89=_0x5b8598['m2Prime'][0x0])==null?void 0x0:_0x3c4c89[_0x549c93(0x1ee)],_0x375070=_0x147bdc&&typeof _0x147bdc==_0x549c93(0x198)&&_0x549c93(0x308)in _0x147bdc?_0x147bdc['textRanges']:null;if(!Ce(_0x375070))return null;let _0x271e71=xe(_0x863a30[_0x549c93(0x267)][_0x549c93(0x387)](_0x236674=>K(_0x236674[_0x549c93(0x1ee)]))?_0x375070[_0x549c93(0x232)](_0x10421b=>!('tableId'in _0x10421b)):_0x375070,{..._0x26a8f7,'options':_0x26a8f7['options']?{..._0x26a8f7[_0x549c93(0x203)],'wholeDocument':!0x1}:void 0x0}),_0x56c923={'unitId':_0x47f106,'subUnitId':_0x47f106};this[_0x549c93(0x284)]['replaceSelectionInfoWithoutRefresh'](_0x271e71,_0x56c923);let _0xcdf38b=!0x0;return{'commit':()=>{_0xcdf38b=!0x1;},'rollback':()=>{const _0x5577c5=_0x549c93;_0xcdf38b&&(_0xcdf38b=!0x1,this[_0x5577c5(0x284)][_0x5577c5(0x1f1)](_0x26a8f7,_0x56c923));}};}};G=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(d['DocSelectionManagerService'])),x(0x1,l[_0x409fb3(0x235)])],G);function xe(_0x58a09c,_0x5aaffd){const _0x1e0d0f=_0x409fb3;let _0x8f69bc=[],_0x30cee6=[];for(let _0x35bc43 of _0x58a09c)Se(_0x35bc43)?_0x30cee6[_0x1e0d0f(0x2df)](_0x35bc43):_0x8f69bc[_0x1e0d0f(0x2df)](_0x35bc43);return{..._0x5aaffd,'textRanges':_0x8f69bc,'rectRanges':_0x30cee6};}function Se(_0x240832){const _0x367e1d=_0x409fb3;return _0x367e1d(0x25f)in _0x240832;}function Ce(_0x3bb4fb){const _0xa652a5=_0x409fb3;return Array['isArray'](_0x3bb4fb)&&_0x3bb4fb[_0xa652a5(0x2ed)](_0x584dbf=>typeof _0x584dbf=='object'&&!!_0x584dbf&&_0xa652a5(0x35e)in _0x584dbf&&_0xa652a5(0x2c0)in _0x584dbf);}function K(_0x17550f){const _0x1bc4da=_0x409fb3;return _0x17550f===_0x1bc4da(0x229)?!0x0:Array[_0x1bc4da(0x1b0)](_0x17550f)?_0x17550f[_0x1bc4da(0x387)](_0xd10956=>K(_0xd10956)):!_0x17550f||typeof _0x17550f!=_0x1bc4da(0x198)?!0x1:Object[_0x1bc4da(0x25c)](_0x17550f)[_0x1bc4da(0x387)](_0x107028=>K(_0x107028));}let q=class extends t[_0x409fb3(0x277)]{constructor(_0x5c4ecc,_0x240c14,_0x1a2e17,_0x376e64,_0x3e3b2f,_0x16eecf,_0x3990d1){const _0x531835=_0x409fb3;super(),this[_0x531835(0x1e4)]=_0x5c4ecc,this['_docTransformIMECacheService']=_0x240c14,this[_0x531835(0x249)]=_0x1a2e17,this[_0x531835(0x1b6)]=_0x376e64,this['_docSyncEditingCollabCursorService']=_0x3e3b2f,this['_messageService']=_0x16eecf,this[_0x531835(0x429)]=_0x3990d1,b(this,'_status$',new r[(_0x531835(0x392))](e[_0x531835(0x373)]['NOT_COLLAB'])),this[_0x531835(0x2a6)]();}[_0x409fb3(0x2a6)](){const _0x59ffcb=_0x409fb3;this[_0x59ffcb(0x415)](this[_0x59ffcb(0x1e4)][_0x59ffcb(0x2a2)][_0x59ffcb(0x1ac)](_0x60ea54=>{const _0x1aeaff=_0x59ffcb;_0x60ea54 instanceof e['DocCollaborationEntity']&&_0x60ea54[_0x1aeaff(0x3aa)]({'onTransformIME':_0x260ef7=>this['_docTransformIMECacheService'][_0x1aeaff(0x39a)](_0x260ef7),'onTransformState':_0x301b0c=>this[_0x1aeaff(0x249)][_0x1aeaff(0x179)](_0x301b0c),'onPrepareTransformSelections':_0x993ee6=>this[_0x1aeaff(0x1b6)][_0x1aeaff(0x2c2)](_0x993ee6),'onSyncEditingCollabCursor':_0x3dbe36=>this[_0x1aeaff(0x310)]['syncEditingCollabCursor'](_0x3dbe36),'onTransformRemoteChangesetByIMECache':_0x6d0ebb=>this[_0x1aeaff(0x27e)][_0x1aeaff(0x29c)](_0x6d0ebb),'onTransformRemoteChangesetByStateCache':_0x2f2fe2=>this[_0x1aeaff(0x249)][_0x1aeaff(0x29c)](_0x2f2fe2)});}));}};q=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(e['CollaborationController'])),x(0x1,(0x0,t[_0x409fb3(0x329)])(U)),x(0x2,(0x0,t[_0x409fb3(0x329)])(W)),x(0x3,(0x0,t[_0x409fb3(0x329)])(G)),x(0x4,(0x0,t['Inject'])(D)),x(0x5,n['IMessageService']),x(0x6,(0x0,t[_0x409fb3(0x329)])(t['LocaleService']))],q);let J=class extends t[_0x409fb3(0x277)]{constructor(_0xf34c07,_0x823349,_0x49a594,_0xc812bf){const _0x48bd00=_0x409fb3;super(),this[_0x48bd00(0x381)]=_0xf34c07,this['_httpService']=_0x823349,this[_0x48bd00(0x252)]=_0x49a594,this[_0x48bd00(0x17c)]=_0xc812bf,b(this,'_memberID',void 0x0),this[_0x48bd00(0x1c6)]();}[_0x409fb3(0x1c6)](){const _0x48e3bb=_0x409fb3;this[_0x48e3bb(0x3e8)](),this[_0x48e3bb(0x268)](),this['_monkeyPatchLogService'](),this[_0x48e3bb(0x230)]();}[_0x409fb3(0x230)](){const _0x90b71d=_0x409fb3;this['disposeWithMe'](this['_collaborationSessionService'][_0x90b71d(0x40a)][_0x90b71d(0x1ac)](_0x55ee62=>{const _0x539662=_0x90b71d;this[_0x539662(0x149)]=_0x55ee62==null?void 0x0:_0x55ee62[_0x539662(0x2bb)];}));}[_0x409fb3(0x3e8)](){const _0x5e9a54=_0x409fb3;let _0x193abf=_0x3c485a=>{const _0x13d14d=_0x4188;var _0x5327ec;this[_0x13d14d(0x18a)]('error','[Window\x20Error]:\x20'+_0x3c485a['message']+'\x20at\x20'+_0x3c485a[_0x13d14d(0x16e)]+':'+_0x3c485a[_0x13d14d(0x2d1)]+':'+_0x3c485a[_0x13d14d(0x3b5)]+'\x0a'+(((_0x5327ec=_0x3c485a[_0x13d14d(0x3ff)])==null?void 0x0:_0x5327ec[_0x13d14d(0x2b6)])||''));};window[_0x5e9a54(0x36c)](_0x5e9a54(0x3ff),_0x193abf),this[_0x5e9a54(0x415)](()=>{const _0x286c5e=_0x5e9a54;window[_0x286c5e(0x1c8)](_0x286c5e(0x3ff),_0x193abf);});}['_initUnhandledRejectionListener'](){const _0x8a77be=_0x409fb3;let _0x9bdb9=_0x476f96=>{const _0x2b4942=_0x4188;this[_0x2b4942(0x18a)]('error',_0x2b4942(0x377)+_0x476f96['reason']);};window[_0x8a77be(0x36c)]('unhandledrejection',_0x9bdb9),this[_0x8a77be(0x415)](()=>{const _0x56c73d=_0x8a77be;window[_0x56c73d(0x1c8)](_0x56c73d(0x1d0),_0x9bdb9);});}[_0x409fb3(0x393)](){const _0x439d36=_0x409fb3;let _0x9f7952=this[_0x439d36(0x252)][_0x439d36(0x3ff)][_0x439d36(0x2d5)](this[_0x439d36(0x252)]);this[_0x439d36(0x252)][_0x439d36(0x3ff)]=(..._0x235155)=>{const _0x5a671b=_0x439d36;let _0x3bbe99=_0x235155[_0x5a671b(0x3c9)](_0x31b9e7=>_0x31b9e7 instanceof Error?_0x31b9e7[_0x5a671b(0x138)]+'\x0a'+_0x31b9e7[_0x5a671b(0x2b6)]:String(_0x31b9e7))[_0x5a671b(0x3e2)]('\x20');this[_0x5a671b(0x18a)](_0x5a671b(0x3ff),_0x5a671b(0x3c4)+_0x3bbe99),_0x9f7952(..._0x235155);},this[_0x439d36(0x415)](()=>{const _0x5de369=_0x439d36;this['_logService'][_0x5de369(0x3ff)]=_0x9f7952;});}[_0x409fb3(0x18a)](_0x1dcf84,_0x33acfc){const _0xadd02=_0x409fb3;try{let _0x513766={'userId':this[_0xadd02(0x149)],'logLabel':_0x1dcf84,'content':_0x33acfc};this[_0xadd02(0x300)]['post'](_0xadd02(0x3de),{'body':_0x513766})[_0xadd02(0x16f)](()=>{});}catch{}}};J=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x1,(0x0,t['Inject'])(m[_0x409fb3(0x238)])),x(0x2,t[_0x409fb3(0x1f3)]),x(0x3,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x207)]))],J);function we({state$:_0x9d4606}){const _0x116e0b=_0x409fb3;let _0x3e2652=(0x0,n[_0x116e0b(0x297)])(_0x9d4606,null,!0x0);return _0x3e2652?(0x0,c[_0x116e0b(0x2f3)])(_0x116e0b(0x1cf),{'data-u-comp':_0x116e0b(0x370),'role':_0x116e0b(0x26c),'className':_0x116e0b(0x20f),'children':[(0x0,c[_0x116e0b(0x350)])(o[_0x116e0b(0x33a)],{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,c['jsx'])(_0x116e0b(0x1af),{'children':_0x3e2652[_0x116e0b(0x217)]}),(0x0,c['jsx'])(a[_0x116e0b(0x2a1)],{'size':_0x116e0b(0x349),'variant':_0x116e0b(0x3e9),'onClick':()=>window[_0x116e0b(0x1d2)][_0x116e0b(0x154)](),'children':_0x3e2652[_0x116e0b(0x37b)]})]}):null;}const Te='snapshot-loading-';let Y=class extends t[_0x409fb3(0x277)]{constructor(_0x27fcca,_0x4cba95,_0x2291a1,_0x3c21d4,_0x7faef1,_0x130b41){const _0xbe0b83=_0x409fb3;super(),this[_0xbe0b83(0x38b)]=_0x27fcca,this[_0xbe0b83(0x178)]=_0x4cba95,this[_0xbe0b83(0x429)]=_0x2291a1,this['_injector']=_0x3c21d4,this[_0xbe0b83(0x1b9)]=_0x130b41,b(this,_0xbe0b83(0x403),new r['BehaviorSubject'](null)),b(this,_0xbe0b83(0x142),new Set()),b(this,_0xbe0b83(0x36e),new Map()),b(this,_0xbe0b83(0x2dd),new Map()),b(this,_0xbe0b83(0x158),this[_0xbe0b83(0x403)][_0xbe0b83(0x1c2)]());let _0x229677=()=>(0x0,s[_0xbe0b83(0x313)])(we,{'state$':this['timeoutState$']});this[_0xbe0b83(0x415)](_0x7faef1[_0xbe0b83(0x258)](n[_0xbe0b83(0x37f)][_0xbe0b83(0x2c7)],()=>(0x0,n['connectInjector'])(_0x229677,this['_injector']))),this[_0xbe0b83(0x415)](this['_snapshotLoadingService'][_0xbe0b83(0x30d)][_0xbe0b83(0x1ac)](_0x45b853=>{const _0x55ab9b=_0xbe0b83;this[_0x55ab9b(0x2dd)]=_0x45b853,_0x45b853['forEach'](_0xdf8344=>this[_0x55ab9b(0x323)](_0xdf8344));})),this[_0xbe0b83(0x415)](this[_0xbe0b83(0x1b9)]['urlChange$'][_0xbe0b83(0x1ac)](()=>{const _0x16d4d4=_0xbe0b83;this[_0x16d4d4(0x2dd)][_0x16d4d4(0x2e3)](_0x3f7054=>this['_updateMessage'](_0x3f7054));}));}['dispose'](){const _0x447fa0=_0x409fb3;this[_0x447fa0(0x142)][_0x447fa0(0x2e3)](_0x34dbfa=>this[_0x447fa0(0x178)][_0x447fa0(0x307)](_0x34dbfa)),this['_messageIds'][_0x447fa0(0x365)](),this[_0x447fa0(0x36e)][_0x447fa0(0x2e3)](({timeoutId:_0x48cc84})=>clearTimeout(_0x48cc84)),this[_0x447fa0(0x36e)]['clear'](),this[_0x447fa0(0x403)]['complete'](),super[_0x447fa0(0x2c8)]();}[_0x409fb3(0x323)](_0x2262b7){const _0xc36fde=_0x409fb3;let _0x2c1a00=''+Te+_0x2262b7['unitId'];if(_0x2262b7[_0xc36fde(0x17b)]===l[_0xc36fde(0x294)]['COMPLETE']){this['_clearBlockProgressWatch'](_0x2262b7[_0xc36fde(0x312)]),this[_0xc36fde(0x327)](_0x2262b7['unitId']),this[_0xc36fde(0x178)][_0xc36fde(0x307)](_0x2c1a00),this[_0xc36fde(0x142)][_0xc36fde(0x205)](_0x2c1a00);return;}if(!this[_0xc36fde(0x322)](_0x2262b7[_0xc36fde(0x312)])){this[_0xc36fde(0x266)](_0x2262b7[_0xc36fde(0x312)]),this[_0xc36fde(0x327)](_0x2262b7[_0xc36fde(0x312)]),this[_0xc36fde(0x178)][_0xc36fde(0x307)](_0x2c1a00),this['_messageIds'][_0xc36fde(0x205)](_0x2c1a00);return;}if(_0x2262b7[_0xc36fde(0x17b)]===l[_0xc36fde(0x294)]['ERROR']){this[_0xc36fde(0x266)](_0x2262b7['unitId']),this[_0xc36fde(0x327)](_0x2262b7[_0xc36fde(0x312)]),this[_0xc36fde(0x178)][_0xc36fde(0x2a3)]({'id':_0x2c1a00,'type':a[_0xc36fde(0x39e)]['Error'],'content':this['_localeService']['t'](_0xc36fde(0x135))}),this[_0xc36fde(0x142)][_0xc36fde(0x205)](_0x2c1a00);return;}if(_0x2262b7[_0xc36fde(0x17b)]!==l['SnapshotLoadStage']['LOADING_BLOCKS']||_0x2262b7['totalBlocks']<=0xa){this['_clearBlockProgressWatch'](_0x2262b7[_0xc36fde(0x312)]),this[_0xc36fde(0x178)][_0xc36fde(0x307)](_0x2c1a00),this[_0xc36fde(0x142)][_0xc36fde(0x205)](_0x2c1a00);return;}this['_watchBlockProgress'](_0x2262b7)||(this[_0xc36fde(0x178)]['show']({'id':_0x2c1a00,'type':a[_0xc36fde(0x39e)][_0xc36fde(0x204)],'duration':0x1/0x0,'content':this[_0xc36fde(0x429)]['t'](_0xc36fde(0x2e7))+'\x20'+_0x2262b7['loadedBlocks']+'/'+_0x2262b7['totalBlocks']}),this[_0xc36fde(0x142)][_0xc36fde(0x2ce)](_0x2c1a00));}[_0x409fb3(0x339)](_0xebf371){const _0x1a5093=_0x409fb3;let _0xa47f76=this[_0x1a5093(0x36e)][_0x1a5093(0x424)](_0xebf371[_0x1a5093(0x312)]);if((_0xa47f76==null?void 0x0:_0xa47f76[_0x1a5093(0x193)])===_0xebf371[_0x1a5093(0x193)])return _0xa47f76[_0x1a5093(0x395)];this[_0x1a5093(0x266)](_0xebf371[_0x1a5093(0x312)]);let _0xd48808=setTimeout(()=>{const _0x1af5cc=_0x1a5093;let _0x3caa69=this[_0x1af5cc(0x36e)][_0x1af5cc(0x424)](_0xebf371[_0x1af5cc(0x312)]);if(!_0x3caa69||_0x3caa69[_0x1af5cc(0x341)]!==_0xd48808)return;_0x3caa69[_0x1af5cc(0x395)]=!0x0;let _0x1144fa=''+Te+_0xebf371['unitId'];this['_messageService'][_0x1af5cc(0x307)](_0x1144fa),this['_messageIds'][_0x1af5cc(0x205)](_0x1144fa),this[_0x1af5cc(0x403)]['next']({'unitId':_0xebf371[_0x1af5cc(0x312)],'content':this['_localeService']['t'](_0x1af5cc(0x1b4),String(_0xebf371[_0x1af5cc(0x193)]),String(_0xebf371['totalBlocks'])),'refreshLabel':this['_localeService']['t'](_0x1af5cc(0x2dc))});},0xea60);return this[_0x1a5093(0x36e)]['set'](_0xebf371[_0x1a5093(0x312)],{'loadedBlocks':_0xebf371[_0x1a5093(0x193)],'timedOut':!0x1,'timeoutId':_0xd48808}),!0x1;}['_clearBlockProgressWatch'](_0x4268ce){const _0x247ecb=_0x409fb3;let _0x38bee3=this[_0x247ecb(0x36e)]['get'](_0x4268ce);_0x38bee3&&(clearTimeout(_0x38bee3[_0x247ecb(0x341)]),this[_0x247ecb(0x36e)][_0x247ecb(0x205)](_0x4268ce),this[_0x247ecb(0x327)](_0x4268ce));}[_0x409fb3(0x327)](_0x459046){const _0x2159e4=_0x409fb3;var _0x383215;((_0x383215=this[_0x2159e4(0x403)]['value'])==null?void 0x0:_0x383215[_0x2159e4(0x312)])===_0x459046&&this['_timeoutState$'][_0x2159e4(0x1a1)](null);}['_isVisibleUnit'](_0x118fb3){const _0x5ebc9c=_0x409fb3;let _0x37f057=this[_0x5ebc9c(0x1b9)][_0x5ebc9c(0x143)]('unit');return!_0x37f057||_0x37f057===_0x118fb3;}};Y=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(l['SnapshotLoadingService'])),x(0x1,n[_0x409fb3(0x3f1)]),x(0x2,(0x0,t['Inject'])(t[_0x409fb3(0x292)])),x(0x3,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x4,n[_0x409fb3(0x1e3)]),x(0x5,V)],Y);let X=class extends t[_0x409fb3(0x277)]{constructor(_0x4eedcd,_0x2a18ae,_0x52fcc4){const _0x49e624=_0x409fb3;super(),this[_0x49e624(0x279)]=_0x4eedcd,this[_0x49e624(0x2f6)]=_0x2a18ae,this[_0x49e624(0x414)]=_0x52fcc4,b(this,_0x49e624(0x27c),new Map()),b(this,_0x49e624(0x3a5),new Map()),b(this,_0x49e624(0x1e5),new Map()),b(this,_0x49e624(0x222),!0x1);}[_0x409fb3(0x3e6)](){const _0x42e8cb=_0x409fb3;this[_0x42e8cb(0x222)]=!0x0;}[_0x409fb3(0x15a)](){this['_disabled']=!0x1;}get[_0x409fb3(0x346)](){const _0x3d41d4=_0x409fb3;return this[_0x3d41d4(0x3a5)];}[_0x409fb3(0x2c8)](){const _0x3ba01e=_0x409fb3;this[_0x3ba01e(0x1c1)]()['then'](()=>super[_0x3ba01e(0x2c8)]());}async[_0x409fb3(0x3f6)](_0x312b58){const _0x2d9d18=_0x409fb3;return this[_0x2d9d18(0x222)]?null:this[_0x2d9d18(0x2f6)][_0x2d9d18(0x298)]((0x0,e['getLocalCacheKey'])(_0x312b58));}async[_0x409fb3(0x264)](_0x26e310,_0x4f1818){const _0x8cf77a=_0x409fb3;let _0x301282=this[_0x8cf77a(0x2f6)][_0x8cf77a(0x269)]((0x0,e[_0x8cf77a(0x144)])(_0x26e310),_0x4f1818);return this['_trackActiveSaveTask'](_0x26e310,_0x301282),!!await _0x301282;}async[_0x409fb3(0x17e)](_0x5a531f,_0x30bdb2){const _0x34718b=_0x409fb3;let _0xb431fe=this[_0x34718b(0x27c)]['get'](_0x5a531f)??await this[_0x34718b(0x2f6)]['getItem']((0x0,e[_0x34718b(0x144)])(_0x5a531f));if(!_0xb431fe)return;let _0x17de67=Date[_0x34718b(0x1a9)](),_0x4bc3bd=new Date(_0x17de67)[_0x34718b(0x3c8)]();await this[_0x34718b(0x2f6)]['setItem']((0x0,e[_0x34718b(0x144)])(_0x5a531f)+_0x34718b(0x3f7)+_0x17de67,{'reason':_0x30bdb2,'createdAt':_0x4bc3bd,'data':_0xb431fe});}async['clearOfflineData'](_0x2bec0d){const _0xc95bb2=_0x409fb3;let _0x787411=this[_0xc95bb2(0x3a5)][_0xc95bb2(0x424)](_0x2bec0d);_0x787411!==void 0x0&&(window[_0xc95bb2(0x2b4)](_0x787411),this['_saveTaskMap'][_0xc95bb2(0x205)](_0x2bec0d));let _0x314770=this[_0xc95bb2(0x1e5)][_0xc95bb2(0x424)](_0x2bec0d);_0x314770&&await Promise[_0xc95bb2(0x191)](_0x314770),this[_0xc95bb2(0x27c)][_0xc95bb2(0x205)](_0x2bec0d),await this[_0xc95bb2(0x2f6)][_0xc95bb2(0x35d)]((0x0,e[_0xc95bb2(0x144)])(_0x2bec0d));}['updateOfflineData'](_0x2eafb1,_0x30160f,_0x23ed49,_0x3cf457){const _0x80ceb4=_0x409fb3;let _0x190208=this['_revisionService'][_0x80ceb4(0x3f5)](_0x2eafb1);this['_cachedData'][_0x80ceb4(0x16b)](_0x2eafb1,{'unitID':_0x2eafb1,'type':_0x30160f,'awaitingChangeset':_0x23ed49,'mutations':_0x3cf457,'rev':_0x190208}),this['_saveTaskMap']['has'](_0x2eafb1)||this[_0x80ceb4(0x39f)](_0x2eafb1);}[_0x409fb3(0x39f)](_0x5ef7b1){const _0x32ee9b=_0x409fb3;let _0x5e5a3b=this[_0x32ee9b(0x2ee)]();_0x5e5a3b===0x0?this[_0x32ee9b(0x335)](_0x5ef7b1):this[_0x32ee9b(0x3a5)]['set'](_0x5ef7b1,window[_0x32ee9b(0x16d)](()=>this[_0x32ee9b(0x335)](_0x5ef7b1),_0x5e5a3b));}[_0x409fb3(0x2ee)](){const _0x5b4af5=_0x409fb3;return this[_0x5b4af5(0x279)][_0x5b4af5(0x41e)](e[_0x5b4af5(0x305)])??e[_0x5b4af5(0x2a5)];}[_0x409fb3(0x335)](_0x275261){const _0x2f3dc2=_0x409fb3;let _0x213565=this[_0x2f3dc2(0x3a5)]['get'](_0x275261);_0x213565!==void 0x0&&window[_0x2f3dc2(0x2b4)](_0x213565);let _0x260cc7=this['_localStorageService'][_0x2f3dc2(0x269)]((0x0,e[_0x2f3dc2(0x144)])(_0x275261),this[_0x2f3dc2(0x27c)]['get'](_0x275261))[_0x2f3dc2(0x1d6)](()=>this['_saveTaskMap'][_0x2f3dc2(0x205)](_0x275261));return this[_0x2f3dc2(0x2d8)](_0x275261,_0x260cc7),_0x260cc7;}[_0x409fb3(0x2d8)](_0x5a014d,_0x183446){const _0x559f07=_0x409fb3;let _0x3935e3=this[_0x559f07(0x1e5)][_0x559f07(0x424)](_0x5a014d);_0x3935e3||(_0x3935e3=new Set(),this['_activeSaveTaskMap'][_0x559f07(0x16b)](_0x5a014d,_0x3935e3)),_0x3935e3[_0x559f07(0x2ce)](_0x183446);let _0x29f453=()=>{const _0x493390=_0x559f07;_0x3935e3[_0x493390(0x205)](_0x183446),_0x3935e3['size']===0x0&&this[_0x493390(0x1e5)][_0x493390(0x205)](_0x5a014d);};_0x183446[_0x559f07(0x1d6)](_0x29f453,_0x29f453);}async[_0x409fb3(0x1c1)](){const _0x354623=_0x409fb3;let _0x31a784=[];this[_0x354623(0x3a5)]['forEach']((_0x62da9a,_0x2777b1)=>{const _0x4f372f=_0x354623;window['clearTimeout'](_0x62da9a),_0x31a784[_0x4f372f(0x2df)](this['_saveCache'](_0x2777b1)[_0x4f372f(0x1d6)](()=>{const _0x3adbe5=_0x4f372f;this['_saveTaskMap'][_0x3adbe5(0x205)](_0x2777b1);}));}),await Promise[_0x354623(0x270)](_0x31a784);}};X=S([x(0x0,t[_0x409fb3(0x3f9)]),x(0x1,t[_0x409fb3(0x33c)]),x(0x2,(0x0,t[_0x409fb3(0x329)])(l[_0x409fb3(0x1da)]))],X);var Ee=class extends t['RxDisposable']{constructor(){const _0x37df32=_0x409fb3;super(),b(this,_0x37df32(0x3ee),void 0x0),this[_0x37df32(0x3ee)]=(0x0,r['fromEvent'])(window,_0x37df32(0x2b2))[_0x37df32(0x423)]((0x0,r[_0x37df32(0x24c)])(this['dispose$']),(0x0,r['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x37df32(0x22f)])(void 0x0));}[_0x409fb3(0x314)](_0x3aba45,_0x285bab,_0x114a2b=!0x1){const _0x447be9=_0x409fb3;let _0x576f06=new URL(window['location'][_0x447be9(0x38e)]);_0x576f06[_0x447be9(0x3c2)][_0x447be9(0x16b)](_0x3aba45,_0x285bab),_0x114a2b?window[_0x447be9(0x27a)][_0x447be9(0x20a)]('','',_0x576f06['toString']()):window[_0x447be9(0x27a)]['pushState']('','',_0x576f06['toString']());}[_0x409fb3(0x379)](_0x37e6df,_0x396094=!0x1){const _0x5c4453=_0x409fb3;let _0x1ad6ca=new URL(window[_0x5c4453(0x1d2)][_0x5c4453(0x38e)]);_0x1ad6ca['searchParams'][_0x5c4453(0x205)](_0x37e6df),_0x396094?window[_0x5c4453(0x27a)][_0x5c4453(0x20a)]('','',_0x1ad6ca[_0x5c4453(0x1d3)]()):window[_0x5c4453(0x27a)][_0x5c4453(0x259)]('','',_0x1ad6ca[_0x5c4453(0x1d3)]());}[_0x409fb3(0x143)](_0x5890fa){const _0x3b013f=_0x409fb3;return new URL(window[_0x3b013f(0x1d2)]['href'])[_0x3b013f(0x3c2)]['get'](_0x5890fa)??void 0x0;}};let Z=class extends t[_0x409fb3(0x2e4)]{constructor(_0x341817=ce,_0x2f2c64,_0x8ce742,_0x51fd3f,_0x3bfcbc){const _0x24efae=_0x409fb3;super(),this[_0x24efae(0x3a7)]=_0x341817,this['_renderManagerService']=_0x2f2c64,this[_0x24efae(0x381)]=_0x8ce742,this[_0x24efae(0x279)]=_0x51fd3f,this[_0x24efae(0x26a)]=_0x3bfcbc;let {..._0x480e77}=(0x0,t[_0x24efae(0x245)])({},ce,this['_config']);this[_0x24efae(0x279)][_0x24efae(0x1f7)]('collaboration-client-ui.config',_0x480e77);}['onStarting'](){const _0x3b9583=_0x409fb3;this[_0x3b9583(0x3ad)](),this[_0x3b9583(0x415)](this[_0x3b9583(0x26a)][_0x3b9583(0x3e0)](w)),this[_0x3b9583(0x3b3)]();}['onRendered'](){const _0x54efde=_0x409fb3;this[_0x54efde(0x20d)]();}[_0x409fb3(0x3ad)](){const _0x247c16=_0x409fb3;var _0x359132;let _0x4ac020=[[E],[V,{'useClass':Ee}],[m[_0x247c16(0x31d)],{'useClass':m[_0x247c16(0x151)]}],[e['ILocalCacheService'],{'useClass':X}],[C],[B],[A],[z],[H],[Y]];this[_0x247c16(0x3a7)][_0x247c16(0x26f)]!==!0x1&&_0x4ac020['push']([G],[U],[W],[D],[q],[T]),this[_0x247c16(0x3a7)][_0x247c16(0x285)]&&_0x4ac020['push']([J]),(0x0,t[_0x247c16(0x226)])(this[_0x247c16(0x381)],(0x0,t['mergeOverrideWithDependencies'])(_0x4ac020,(_0x359132=this[_0x247c16(0x3a7)])==null?void 0x0:_0x359132['override']));}['_registerRenderDependencies'](){const _0x186609=_0x409fb3;this[_0x186609(0x3a7)][_0x186609(0x26f)]!==!0x1&&this['disposeWithMe'](this['_renderManagerService'][_0x186609(0x1f9)](t['UniverInstanceType']['UNIVER_DOC'],[F])),this['disposeWithMe'](this[_0x186609(0x2a4)][_0x186609(0x1f9)](t[_0x186609(0x24d)]['UNIVER_SHEET'],[I]));}[_0x409fb3(0x3b3)](){const _0x1957e6=_0x409fb3;(0x0,t[_0x1957e6(0x159)])(this['_injector'],[[A],[z],[C],[B],[H],[Y]]),this[_0x1957e6(0x3a7)][_0x1957e6(0x26f)]!==!0x1&&(0x0,t[_0x1957e6(0x159)])(this[_0x1957e6(0x381)],[[q],[T]]),this['_config']['enableFrontendLog']&&(0x0,t[_0x1957e6(0x159)])(this[_0x1957e6(0x381)],[[J]]);}};b(Z,_0x409fb3(0x1ae),_0x409fb3(0x3f0)),b(Z,_0x409fb3(0x2d6),oe),b(Z,_0x409fb3(0x2fc),se),Z=S([(0x0,t[_0x409fb3(0x180)])(u[_0x409fb3(0x176)],d[_0x409fb3(0x14d)],p[_0x409fb3(0x287)],m[_0x409fb3(0x21c)],l[_0x409fb3(0x175)],f[_0x409fb3(0x2a8)],e[_0x409fb3(0x2e6)]),x(0x1,p[_0x409fb3(0x210)]),x(0x2,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x3,t[_0x409fb3(0x3f9)]),x(0x4,t[_0x409fb3(0x228)])],Z);let Q=class extends e[_0x409fb3(0x3d5)]{constructor(_0x1a81b9,_0x507cd0,_0x129985,_0x55aa72,_0x140afa){super(_0x1a81b9,_0x507cd0,_0x129985,_0x55aa72,_0x140afa);}async[_0x409fb3(0x35b)](_0x117f6f){const _0x4930f6=_0x409fb3;let _0xcf3eb6=await this[_0x4930f6(0x15e)](),_0x275963=this[_0x4930f6(0x30e)](_0x117f6f,_0xcf3eb6);return this[_0x4930f6(0x28f)](_0x275963);}[_0x409fb3(0x30e)](_0x5540c0,_0x17ba74){const _0x1e50d9=_0x409fb3;let _0x5bc4fc=typeof window>'u'?new URL(_0x5540c0):new URL(_0x5540c0,window['location'][_0x1e50d9(0x30b)]);_0x5bc4fc[_0x1e50d9(0x3c2)][_0x1e50d9(0x16b)](_0x1e50d9(0x368),_0x17ba74);let _0xd8edd9=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1e50d9(0x1d2)][_0x1e50d9(0x29a)]);return _0xd8edd9[_0x1e50d9(0x424)]('runId')&&_0x5bc4fc[_0x1e50d9(0x3c2)]['set']('runId',_0xd8edd9[_0x1e50d9(0x424)](_0x1e50d9(0x22d))),_0x5bc4fc['toString']();}async[_0x409fb3(0x15e)](){const _0x5f065c=_0x409fb3;var _0x563616;let _0x7532dc=this['_configService']['getConfig'](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x13ebed=(_0x7532dc==null?void 0x0:_0x7532dc[_0x5f065c(0x2ae)])??e[_0x5f065c(0x33e)];return((_0x563616=(await this[_0x5f065c(0x300)][_0x5f065c(0x424)](_0x13ebed,{'headers':{'Content-Type':_0x5f065c(0x18f)}}))[_0x5f065c(0x182)])==null?void 0x0:_0x563616['ticket'])??'';}};Q=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x1,(0x0,t['Inject'])(m[_0x409fb3(0x238)])),x(0x2,t[_0x409fb3(0x3f9)]),x(0x3,t[_0x409fb3(0x1f3)]),x(0x4,l[_0x409fb3(0x283)])],Q);let $=class extends t['Disposable']{constructor(_0x42cfc0,_0x2063bf,_0x2d8aa0){const _0x4d2ddb=_0x409fb3;super(),this[_0x4d2ddb(0x376)]=_0x42cfc0,this[_0x4d2ddb(0x300)]=_0x2063bf,this['_configService']=_0x2d8aa0;}async['runOnServer'](_0x35c058,_0x5b6beb,_0x756792,..._0x18119a){const _0x20bd43=_0x409fb3;let _0x1d88a9=this[_0x20bd43(0x376)]['getFocusedUnit']();if(!_0x1d88a9)throw Error(_0x20bd43(0x3e5));let _0x3d7523=(this[_0x20bd43(0x279)][_0x20bd43(0x41e)](e[_0x20bd43(0x237)])??e[_0x20bd43(0x3b1)])+'/'+_0x35c058+_0x20bd43(0x19d)+_0x5b6beb,_0xb65e77={'scriptId':_0x35c058,'runId':new URL(window[_0x20bd43(0x1d2)][_0x20bd43(0x38e)])['searchParams'][_0x20bd43(0x424)](_0x20bd43(0x22d))??'','function':_0x5b6beb,'unitId':_0x1d88a9[_0x20bd43(0x3ba)](),'argsOfFunction':JSON[_0x20bd43(0x32f)](_0x18119a),'invokeId':_0x756792[_0x20bd43(0x140)]??'','executionId':_0x756792['executionId']??''};try{let _0x242860=await this[_0x20bd43(0x300)][_0x20bd43(0x3ca)](_0x3d7523,{'body':_0xb65e77});return _0x242860[_0x20bd43(0x182)][_0x20bd43(0x3ff)]&&_0x242860[_0x20bd43(0x182)]['error'][_0x20bd43(0x418)]!==v['ErrorCode']['OK']?_0x20bd43(0x35f):_0x242860[_0x20bd43(0x182)][_0x20bd43(0x31b)];}catch{return _0x20bd43(0x35f);}}};$=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x409fb3(0x329)])(m[_0x409fb3(0x238)])),x(0x2,t['IConfigService'])],$);const De=0x7530,Oe=_0x409fb3(0x152);var ke=class extends t[_0x409fb3(0x277)]{constructor(){const _0x49002c=_0x409fb3;super(),b(this,'_id',(0x0,t[_0x49002c(0x208)])()),b(this,_0x49002c(0x3b8),new Set()),b(this,_0x49002c(0x326),new Map()),b(this,_0x49002c(0x1a2),null),b(this,_0x49002c(0x18e),new Map()),b(this,_0x49002c(0x407),new Map()),this[_0x49002c(0x1c6)]();}[_0x409fb3(0x2c8)](){const _0x172f9b=_0x409fb3;super[_0x172f9b(0x2c8)](),this[_0x172f9b(0x18e)][_0x172f9b(0x2e3)]((_0x838992,_0xe0fa92)=>this[_0x172f9b(0x39b)](_0xe0fa92)),this[_0x172f9b(0x1a2)]&&window['clearInterval'](this[_0x172f9b(0x1a2)]);}['getUnitStatus$'](_0x5eded4){const _0x56f906=_0x409fb3;return this[_0x56f906(0x332)](_0x5eded4)['pipe']((0x0,r[_0x56f906(0x40b)])());}['editingUnit'](_0x17e71d){const _0x163fbd=_0x409fb3;this['_selfUnitIDs'][_0x163fbd(0x153)]===0x0&&this['_scheduleHeartbeat'](),this[_0x163fbd(0x3b8)][_0x163fbd(0x2ce)](_0x17e71d),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x17e71d],'isForwarded':!0x1});}[_0x409fb3(0x2e8)](_0x3736f7){const _0x1a5b51=_0x409fb3;this[_0x1a5b51(0x3b8)][_0x1a5b51(0x205)](_0x3736f7),this['_selfUnitIDs']['size']===0x0&&this[_0x1a5b51(0x1a2)]&&window[_0x1a5b51(0x1d1)](this[_0x1a5b51(0x1a2)]);}[_0x409fb3(0x1c6)](){const _0x5ea1af=_0x409fb3;this[_0x5ea1af(0x415)]((0x0,t[_0x5ea1af(0x19e)])((0x0,r['fromEvent'])(window,_0x5ea1af(0x36b))['subscribe'](_0x50fa1b=>{const _0x2853e9=_0x5ea1af;if(_0x50fa1b[_0x2853e9(0x146)]!==Oe||!_0x50fa1b['newValue'])return;let _0x1f7260=JSON['parse'](_0x50fa1b['newValue']);this[_0x2853e9(0x1a8)](_0x1f7260);}))),window[_0x5ea1af(0x36c)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x5ea1af(0x3f8)],'unitIDs':Array[_0x5ea1af(0x416)](this[_0x5ea1af(0x3b8)])}));}[_0x409fb3(0x1a8)](_0x343509){const _0x374b21=_0x409fb3;switch(_0x343509[_0x374b21(0x3b7)]){case 0x0:this[_0x374b21(0x1c9)](_0x343509);break;case 0x1:this[_0x374b21(0x32e)](_0x343509);break;case 0x2:this[_0x374b21(0x3ec)](_0x343509);}}[_0x409fb3(0x1c9)](_0x38c17b){const _0x3eb04f=_0x409fb3;let {unitIDs:_0xfd97f7,memberID:_0x5df061,isForwarded:_0x3154ac}=_0x38c17b;_0xfd97f7[_0x3eb04f(0x2e3)](_0x3f7c20=>{const _0x2b303f=_0x3eb04f;if(!_0x3154ac&&this['_unitOnClients'][_0x2b303f(0x1e0)](_0x3f7c20)&&this[_0x2b303f(0x332)](_0x3f7c20)[_0x2b303f(0x1a1)](e[_0x2b303f(0x1fb)][_0x2b303f(0x427)]),!this[_0x2b303f(0x326)][_0x2b303f(0x1e0)](_0x3f7c20)||!this[_0x2b303f(0x326)][_0x2b303f(0x424)](_0x3f7c20)[_0x2b303f(0x1e0)](_0x5df061)){let _0x42f57c=this[_0x2b303f(0x326)][_0x2b303f(0x424)](_0x3f7c20)||new Set();_0x42f57c[_0x2b303f(0x2ce)](_0x5df061),this[_0x2b303f(0x326)][_0x2b303f(0x16b)](_0x3f7c20,_0x42f57c),this['_scheduleClearOtherTimer'](_0x5df061);}}),_0x3154ac||this[_0x3eb04f(0x242)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3eb04f(0x3b8)]],'isForwarded':!0x0});}[_0x409fb3(0x354)](_0x305993){const _0x42bb22=_0x409fb3;this[_0x42bb22(0x39b)](_0x305993);let _0x92dfce=window[_0x42bb22(0x16d)](()=>{const _0x40281c=_0x42bb22;this['_unitOnClients'][_0x40281c(0x2e3)](_0x29fb53=>{const _0x3c0b4a=_0x40281c;_0x29fb53[_0x3c0b4a(0x205)](_0x305993);});},De*0x2);this['_clearOtherTimers']['set'](_0x305993,_0x92dfce);}[_0x409fb3(0x39b)](_0x1ddfd1){const _0x35117b=_0x409fb3;if(this[_0x35117b(0x18e)]['has'](_0x1ddfd1)){let _0x27f586=this[_0x35117b(0x18e)][_0x35117b(0x424)](_0x1ddfd1);_0x27f586&&window[_0x35117b(0x2b4)](_0x27f586),this['_clearOtherTimers'][_0x35117b(0x16b)](_0x1ddfd1,null);}}[_0x409fb3(0x32e)](_0x90a958){let {memberID:_0x3c2f41,unitIDs:_0x21a317}=_0x90a958;_0x21a317['forEach'](_0xbd90ef=>{const _0x22330c=_0x4188;var _0x6244cd;let _0x36860d=this['_unitOnClients'][_0x22330c(0x424)](_0xbd90ef);_0x36860d&&(_0x36860d[_0x22330c(0x205)](_0x3c2f41),(_0x6244cd=this['_ensureSubject'](_0xbd90ef))==null||_0x6244cd['next'](_0x36860d['size']===0x0?e[_0x22330c(0x1fb)][_0x22330c(0x1a0)]:e['UnitStatus'][_0x22330c(0x427)]));}),this['_removeClearOtherTimer'](_0x3c2f41);}[_0x409fb3(0x3ec)](_0x4bb305){const _0x1c520d=_0x409fb3;this[_0x1c520d(0x354)](_0x4bb305[_0x1c520d(0x2bb)]);}['_send'](_0x1ba59e){localStorage['setItem'](Oe,JSON['stringify'](_0x1ba59e));}[_0x409fb3(0x34d)](){const _0x102ff1=_0x409fb3;this[_0x102ff1(0x1a2)]=window[_0x102ff1(0x311)](()=>{const _0x17f245=_0x102ff1;this[_0x17f245(0x242)]({'type':0x2,'memberID':this[_0x17f245(0x3f8)]});},De);}[_0x409fb3(0x332)](_0x295a1f){const _0x5a5b1c=_0x409fb3;return this[_0x5a5b1c(0x407)][_0x5a5b1c(0x1e0)](_0x295a1f)||this['_unitStatus'][_0x5a5b1c(0x16b)](_0x295a1f,new r[(_0x5a5b1c(0x392))](e['UnitStatus'][_0x5a5b1c(0x1a0)])),this[_0x5a5b1c(0x407)]['get'](_0x295a1f);}};Object[_0x409fb3(0x170)](exports,_0x409fb3(0x436),{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0x409fb3(0x170)](exports,_0x409fb3(0x2f0),{'enumerable':!0x0,'get':function(){return C;}}),exports[_0x409fb3(0x206)]=V,Object[_0x409fb3(0x170)](exports,_0x409fb3(0x251),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x409fb3(0x369)]=he,Object['defineProperty'](exports,_0x409fb3(0x3fe),{'enumerable':!0x0,'get':function(){return Z;}}),exports[_0x409fb3(0x428)]=ke;
1
+ const _0x3e3f50=_0x1e1d;(function(_0x36b05c,_0x2aafab){const _0x34a271=_0x1e1d,_0x3cfb98=_0x36b05c();while(!![]){try{const _0x371b29=parseInt(_0x34a271(0x378))/0x1*(-parseInt(_0x34a271(0x296))/0x2)+parseInt(_0x34a271(0x360))/0x3*(parseInt(_0x34a271(0x43f))/0x4)+parseInt(_0x34a271(0x1ac))/0x5+-parseInt(_0x34a271(0x445))/0x6+parseInt(_0x34a271(0x466))/0x7+-parseInt(_0x34a271(0x1f6))/0x8+-parseInt(_0x34a271(0x1cd))/0x9*(parseInt(_0x34a271(0x1d8))/0xa);if(_0x371b29===_0x2aafab)break;else _0x3cfb98['push'](_0x3cfb98['shift']());}catch(_0x658f7c){_0x3cfb98['push'](_0x3cfb98['shift']());}}}(_0x4a62,0xbd9f9),Object[_0x3e3f50(0x348)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/ui'),r=require('rxjs'),i=require('rxjs/operators'),a=require('@univerjs/design'),o=require('@univerjs/icons'),s=require('react'),c=require('react/jsx-runtime'),l=require('@univerjs-pro/collaboration'),u=require('@univerjs-pro/license'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('@univerjs/engine-render'),m=require('@univerjs/network'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs/sheets-ui'),v=require('@univerjs/protocol');function ee(_0x30adb3){const _0x4a196b=_0x3e3f50;switch(_0x30adb3){case e[_0x4a196b(0x255)][_0x4a196b(0x1b1)]:return{'icon':(0x0,c[_0x4a196b(0x46a)])(o['OffLineIcon'],{}),'colorClass':_0x4a196b(0x229),'i18nKey':_0x4a196b(0x470),'tooltipKey':_0x4a196b(0x2db),'clickable':!0x0,'indicator':_0x4a196b(0x1c9)};case e[_0x4a196b(0x255)][_0x4a196b(0x20d)]:return{'icon':(0x0,c[_0x4a196b(0x46a)])(o['OffLineIcon'],{}),'colorClass':_0x4a196b(0x483),'i18nKey':_0x4a196b(0x2f7),'clickable':!0x1,'indicator':_0x4a196b(0x1c9)};case e['CollaborationStatus'][_0x4a196b(0x231)]:return{'icon':(0x0,c['jsx'])(o[_0x4a196b(0x2c4)],{}),'colorClass':_0x4a196b(0x35c),'i18nKey':_0x4a196b(0x2da),'clickable':!0x1,'indicator':'spin'};case e[_0x4a196b(0x255)][_0x4a196b(0x3a8)]:return{'icon':(0x0,c[_0x4a196b(0x46a)])(o[_0x4a196b(0x3a0)],{}),'colorClass':'univer-text-gray-400','i18nKey':_0x4a196b(0x376),'clickable':!0x1,'indicator':_0x4a196b(0x1c9)};case e[_0x4a196b(0x255)]['AWAITING']:case e[_0x4a196b(0x255)]['AWAITING_WITH_PENDING']:return{'icon':(0x0,c[_0x4a196b(0x46a)])(o[_0x4a196b(0x2c4)],{}),'colorClass':_0x4a196b(0x35c),'i18nKey':_0x4a196b(0x468),'clickable':!0x1,'indicator':_0x4a196b(0x30a)};case e[_0x4a196b(0x255)][_0x4a196b(0x35f)]:return{'icon':(0x0,c[_0x4a196b(0x46a)])(o[_0x4a196b(0x2c4)],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':'spin'};case e[_0x4a196b(0x255)]['SYNCED']:return{'icon':(0x0,c[_0x4a196b(0x46a)])(o[_0x4a196b(0x3a0)],{}),'colorClass':'univer-text-green-500','i18nKey':_0x4a196b(0x2ca),'clickable':!0x1,'indicator':_0x4a196b(0x1c9)};}}function te(_0x584e57){const _0x280977=_0x3e3f50;let {status$:_0x39526c}=_0x584e57,_0xbe37d2=(0x0,n[_0x280977(0x3d8)])(_0x39526c,e[_0x280977(0x255)][_0x280977(0x3a8)]),_0x2a6cb9=(0x0,n[_0x280977(0x28c)])(t[_0x280977(0x276)]),_0xf91597=(0x0,n[_0x280977(0x28c)])(e[_0x280977(0x2af)]),_0x1a0a89=(0x0,s['useMemo'])(()=>ee(_0xbe37d2),[_0xbe37d2]),_0x1175e6=_0xbe37d2!==e[_0x280977(0x255)]['OFFLINE'],_0x33c9f5=_0x2a6cb9['t'](_0x1a0a89[_0x280977(0x2a9)]),_0x98465e=_0x1a0a89['tooltipKey']?_0x2a6cb9['t'](_0x1a0a89[_0x280977(0x211)]):_0x33c9f5,_0x42f955=(0x0,s[_0x280977(0x36a)])(()=>{_0x1175e6||_0xf91597['reconnect']();},[_0x1175e6,_0xf91597]),_0xa999f3=(0x0,s['useCallback'])(_0x1b23c4=>{const _0x414380=_0x280977;!_0x1175e6&&(_0x1b23c4[_0x414380(0x2bc)]===_0x414380(0x310)||_0x1b23c4[_0x414380(0x2bc)]==='\x20')&&(_0x1b23c4[_0x414380(0x421)](),_0xf91597['reconnect']());},[_0x1175e6,_0xf91597]),_0x17303b=(0x0,c['jsx'])(_0x280977(0x342),{'className':(0x0,a[_0x280977(0x31d)])(_0x280977(0x2fd),_0x280977(0x36b),_0x1a0a89[_0x280977(0x397)],{'univer-animate-spin':_0x1a0a89[_0x280977(0x38b)]===_0x280977(0x30a),'univer-animate-pulse':_0x1a0a89[_0x280977(0x38b)]===_0x280977(0x355)}),'aria-hidden':'true','children':_0x1a0a89[_0x280977(0x1b0)]}),_0x131185=(0x0,c[_0x280977(0x46a)])('span',{'className':(0x0,a['clsx'])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x280977(0x243),_0x280977(0x27c),_0x280977(0x448),_0x280977(0x2cc),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x1a0a89['clickable'],'univer-cursor-default':!_0x1a0a89['clickable']}),'children':_0x17303b});return _0x1a0a89[_0x280977(0x242)]?(0x0,c['jsx'])(a[_0x280977(0x497)],{'title':_0x98465e,'placement':_0x280977(0x407),'children':(0x0,c['jsx'])('button',{'type':_0x280977(0x2c6),'onClick':_0x42f955,'onKeyDown':_0xa999f3,'className':(0x0,a[_0x280977(0x31d)])(_0x280977(0x21d),_0x280977(0x1da),_0x280977(0x20f),_0x280977(0x39f)),'aria-label':_0x33c9f5+_0x280977(0x45f)+_0x98465e,'role':'status','aria-live':'polite','aria-atomic':_0x280977(0x3bd),'children':_0x131185})}):(0x0,c[_0x280977(0x46a)])(a['Tooltip'],{'title':_0x98465e,'placement':_0x280977(0x407),'children':(0x0,c[_0x280977(0x46a)])(_0x280977(0x218),{'className':(0x0,a[_0x280977(0x31d)])(_0x280977(0x21d),_0x280977(0x1da),_0x280977(0x20f)),'aria-label':_0x33c9f5,'role':_0x280977(0x1b5),'aria-live':'polite','aria-atomic':'true','children':_0x131185})});}function y(_0x51322d){'@babel/helpers - typeof';const _0x1be05=_0x3e3f50;return y=typeof Symbol==_0x1be05(0x425)&&typeof Symbol[_0x1be05(0x1f2)]==_0x1be05(0x268)?function(_0x396f55){return typeof _0x396f55;}:function(_0x466899){const _0x3d6463=_0x1be05;return _0x466899&&typeof Symbol=='function'&&_0x466899[_0x3d6463(0x386)]===Symbol&&_0x466899!==Symbol['prototype']?'symbol':typeof _0x466899;},y(_0x51322d);}function ne(_0x458183,_0x5bb0d7){const _0x4e9781=_0x3e3f50;if(y(_0x458183)!=_0x4e9781(0x2f6)||!_0x458183)return _0x458183;var _0x23fd89=_0x458183[Symbol[_0x4e9781(0x39d)]];if(_0x23fd89!==void 0x0){var _0x383aa2=_0x23fd89[_0x4e9781(0x34e)](_0x458183,_0x5bb0d7||_0x4e9781(0x1d4));if(y(_0x383aa2)!=_0x4e9781(0x2f6))return _0x383aa2;throw TypeError(_0x4e9781(0x47b));}return(_0x5bb0d7==='string'?String:Number)(_0x458183);}function re(_0x5a657b){const _0x1845a3=_0x3e3f50;var _0x91df67=ne(_0x5a657b,'string');return y(_0x91df67)==_0x1845a3(0x268)?_0x91df67:_0x91df67+'';}function b(_0x5306ea,_0xb30a4b,_0x439dc8){const _0xeb05a9=_0x3e3f50;return(_0xb30a4b=re(_0xb30a4b))in _0x5306ea?Object[_0xeb05a9(0x348)](_0x5306ea,_0xb30a4b,{'value':_0x439dc8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5306ea[_0xb30a4b]=_0x439dc8,_0x5306ea;}function x(_0x45e54b,_0x550eff){return function(_0x3a98ff,_0x55d083){_0x550eff(_0x3a98ff,_0x55d083,_0x45e54b);};}function S(_0x80f164,_0x54bb5a,_0x588c2c,_0x282a04){const _0xb7ac05=_0x3e3f50;var _0x565345=arguments[_0xb7ac05(0x32c)],_0x4bfb32=_0x565345<0x3?_0x54bb5a:_0x282a04===null?_0x282a04=Object[_0xb7ac05(0x2d1)](_0x54bb5a,_0x588c2c):_0x282a04,_0x37aedf;if(typeof Reflect=='object'&&typeof Reflect[_0xb7ac05(0x28e)]==_0xb7ac05(0x425))_0x4bfb32=Reflect['decorate'](_0x80f164,_0x54bb5a,_0x588c2c,_0x282a04);else{for(var _0x4851c7=_0x80f164[_0xb7ac05(0x32c)]-0x1;_0x4851c7>=0x0;_0x4851c7--)(_0x37aedf=_0x80f164[_0x4851c7])&&(_0x4bfb32=(_0x565345<0x3?_0x37aedf(_0x4bfb32):_0x565345>0x3?_0x37aedf(_0x54bb5a,_0x588c2c,_0x4bfb32):_0x37aedf(_0x54bb5a,_0x588c2c))||_0x4bfb32);}return _0x565345>0x3&&_0x4bfb32&&Object[_0xb7ac05(0x348)](_0x54bb5a,_0x588c2c,_0x4bfb32),_0x4bfb32;}let C=class extends t[_0x3e3f50(0x37f)]{constructor(_0x44ab30,_0xdcc774,_0x55b746,_0x2a5ca3,_0x18f8fc){const _0x5c37f2=_0x3e3f50;super(),this[_0x5c37f2(0x1e3)]=_0x44ab30,this[_0x5c37f2(0x21c)]=_0xdcc774,this['_collaborationController']=_0x55b746,this['_uiPartsService']=_0x2a5ca3,this[_0x5c37f2(0x1af)]=_0x18f8fc,b(this,'_status$',new r['BehaviorSubject'](e[_0x5c37f2(0x255)][_0x5c37f2(0x3a8)])),b(this,_0x5c37f2(0x336),new Map()),this[_0x5c37f2(0x3d6)](),this['_initStatusListener'](),this[_0x5c37f2(0x226)]();}[_0x3e3f50(0x3de)](){const _0x1d6875=_0x3e3f50;this[_0x1d6875(0x336)][_0x1d6875(0x41d)](_0x57d462=>_0x57d462['dispose']()),this[_0x1d6875(0x336)]['clear'](),this['_status$'][_0x1d6875(0x2a4)](),super[_0x1d6875(0x3de)]();}[_0x3e3f50(0x28b)](){const _0x45f209=_0x3e3f50;this[_0x45f209(0x385)]((0x0,r[_0x45f209(0x39b)])(this[_0x45f209(0x1e3)][_0x45f209(0x344)],this['_univerInstanceService']['getCurrentTypeOfUnit$'](t['UniverInstanceType']['UNIVER_DOC']),this[_0x45f209(0x1e3)]['getCurrentTypeOfUnit$'](t['UniverInstanceType'][_0x45f209(0x3cf)]))[_0x45f209(0x25f)]((0x0,i['map'])(()=>ie(this[_0x45f209(0x1e3)])),(0x0,i[_0x45f209(0x277)])(),(0x0,r['switchMap'])(_0x575b04=>_0x575b04?this[_0x45f209(0x26c)][_0x45f209(0x26a)](_0x575b04):(0x0,r['of'])(null)),(0x0,r[_0x45f209(0x292)])(_0x34b9d7=>_0x34b9d7?_0x34b9d7['status$']:(0x0,r['of'])(e[_0x45f209(0x255)][_0x45f209(0x3a8)])))[_0x45f209(0x380)](_0x32057b=>{const _0x1e04dd=_0x45f209;this[_0x1e04dd(0x458)][_0x1e04dd(0x1cb)](_0x32057b);}));}['_initStatusComponent'](){const _0x502614=_0x3e3f50;this[_0x502614(0x385)](this['_uiPartsService'][_0x502614(0x22a)](n['BuiltInUIPart'][_0x502614(0x3d4)],()=>(0x0,n[_0x502614(0x47f)])(w({'status$':this[_0x502614(0x458)][_0x502614(0x2ee)]()}),this['_injector'])));}[_0x3e3f50(0x226)](){const _0x43a642=_0x3e3f50;let _0x811500=this['_presenceAdapterRegistry']['adapters$']['subscribe'](_0x413d67=>{const _0x6cadb5=_0x1e1d;this[_0x6cadb5(0x2c7)](_0x413d67);});this[_0x43a642(0x385)]((0x0,t[_0x43a642(0x394)])(()=>_0x811500[_0x43a642(0x40c)]()));}['_syncPresenceStatusComponents'](_0x3f6792){const _0x5ad406=_0x3e3f50;let _0xefb3c1=new Map(_0x3f6792['filter'](_0x46fafa=>_0x46fafa[_0x5ad406(0x2ef)]!=null)[_0x5ad406(0x3a4)](_0x1ab4c4=>[_0x1ab4c4['unitType'],_0x1ab4c4]));this[_0x5ad406(0x336)]['forEach']((_0x3747cb,_0x1872a4)=>{_0xefb3c1['has'](_0x1872a4)||(_0x3747cb['dispose'](),this['_presenceStatusRegistrations']['delete'](_0x1872a4));}),_0xefb3c1[_0x5ad406(0x41d)]((_0x19cbb6,_0x590374)=>{const _0x203135=_0x5ad406;this['_presenceStatusRegistrations'][_0x203135(0x3e6)](_0x590374)||this[_0x203135(0x3b4)](_0x19cbb6);});}[_0x3e3f50(0x3b4)](_0x42e958){const _0x5b1800=_0x3e3f50;let _0x24d112=_0x42e958[_0x5b1800(0x2ef)];if(!_0x24d112)return;let _0x120f9f=new t['DisposableCollection'](),_0x58a80d=new r[(_0x5b1800(0x232))](e['CollaborationStatus'][_0x5b1800(0x3a8)]);_0x120f9f[_0x5b1800(0x499)]((0x0,t[_0x5b1800(0x394)])(()=>_0x58a80d[_0x5b1800(0x2a4)]())),_0x120f9f[_0x5b1800(0x499)](this[_0x5b1800(0x23d)][_0x5b1800(0x22a)](_0x24d112,()=>(0x0,n[_0x5b1800(0x47f)])(w({'status$':_0x58a80d[_0x5b1800(0x2ee)]()}),this[_0x5b1800(0x21c)])));let _0x4c88f2=this[_0x5b1800(0x1e3)][_0x5b1800(0x1ed)](_0x42e958[_0x5b1800(0x26d)])[_0x5b1800(0x25f)]((0x0,i[_0x5b1800(0x3a4)])(_0x41ed50=>(_0x41ed50==null?void 0x0:_0x41ed50[_0x5b1800(0x34b)]())??null),(0x0,i[_0x5b1800(0x277)])(),(0x0,r[_0x5b1800(0x292)])(_0x38e4ea=>_0x38e4ea?this[_0x5b1800(0x26c)]['getCollabEntity$'](_0x38e4ea):(0x0,r['of'])(null)),(0x0,r[_0x5b1800(0x292)])(_0x472265=>(_0x472265==null?void 0x0:_0x472265['status$'])??(0x0,r['of'])(e[_0x5b1800(0x255)][_0x5b1800(0x3a8)])))[_0x5b1800(0x380)](_0x59e9a3=>_0x58a80d['next'](_0x59e9a3));_0x120f9f[_0x5b1800(0x499)]((0x0,t[_0x5b1800(0x394)])(()=>_0x4c88f2[_0x5b1800(0x40c)]())),this['_presenceStatusRegistrations']['set'](_0x42e958[_0x5b1800(0x26d)],_0x120f9f);}};C=S([x(0x0,t[_0x3e3f50(0x3da)]),x(0x1,(0x0,t[_0x3e3f50(0x260)])(t[_0x3e3f50(0x306)])),x(0x2,(0x0,t['Inject'])(e['CollaborationController'])),x(0x3,n['IUIPartsService']),x(0x4,(0x0,t['Inject'])(n[_0x3e3f50(0x373)]))],C);function ie(_0x635b82){const _0x93f0ed=_0x3e3f50;let _0x113e81=_0x635b82[_0x93f0ed(0x215)](),_0x39f8b9=_0x113e81==null?void 0x0:_0x113e81[_0x93f0ed(0x34b)]();if(_0x39f8b9&&!(0x0,t[_0x93f0ed(0x23e)])(_0x39f8b9))return _0x39f8b9;let _0x5dc64f=_0x635b82['getCurrentUnitOfType'](t[_0x93f0ed(0x1ec)][_0x93f0ed(0x33c)]),_0x1bbdfa=_0x5dc64f==null?void 0x0:_0x5dc64f[_0x93f0ed(0x34b)]();if(_0x1bbdfa&&!(0x0,t[_0x93f0ed(0x23e)])(_0x1bbdfa))return _0x1bbdfa;let _0x2d7f50=_0x635b82[_0x93f0ed(0x419)](t['UniverInstanceType'][_0x93f0ed(0x3cf)]);if(_0x2d7f50)return _0x2d7f50[_0x93f0ed(0x34b)]();let _0x143629=_0x635b82[_0x93f0ed(0x492)](t[_0x93f0ed(0x1ec)][_0x93f0ed(0x33c)])[_0x93f0ed(0x382)](_0x7e674f=>!(0x0,t[_0x93f0ed(0x23e)])(_0x7e674f[_0x93f0ed(0x34b)]()));return _0x143629?_0x143629[_0x93f0ed(0x34b)]():null;}function w(_0x47fdb7){let {status$:_0x23484c}=_0x47fdb7;return function(){return(0x0,c['jsx'])(te,{'status$':_0x23484c});};}var ae=_0x3e3f50(0x29e),oe=_0x3e3f50(0x413);const T={'id':'collaboration-client-ui.operation.update-remote-unit-presence','type':t[_0x3e3f50(0x452)][_0x3e3f50(0x2a1)],'handler':(_0x2b6a66,_0x53506b)=>{const _0x27ad25=_0x3e3f50;let _0xcc43d6=_0x2b6a66[_0x27ad25(0x341)](n['IUnitPresenceUIAdapterRegistry'])[_0x27ad25(0x341)](_0x53506b['unitType']);if(!_0xcc43d6)return!0x1;switch(_0x53506b[_0x27ad25(0x39c)][_0x27ad25(0x2d9)]){case _0x27ad25(0x2e3):return _0xcc43d6[_0x27ad25(0x320)](_0x53506b['update'][_0x27ad25(0x44a)]),!0x0;case _0x27ad25(0x3df):return _0xcc43d6['removeRemotePresence'](_0x53506b['update']['unitId'],_0x53506b[_0x27ad25(0x39c)][_0x27ad25(0x3b7)]),!0x0;case _0x27ad25(0x2b8):return _0xcc43d6[_0x27ad25(0x22b)](_0x53506b[_0x27ad25(0x39c)][_0x27ad25(0x283)]),!0x0;default:return!0x1;}}},se={};function _0x4a62(){const _0x301269=['clearInterval','_docClipboardService','_watchBlockProgress','clsx','right','_transformService','setRemotePresence','_showConflictCacheClearFailedNotification','dispose$','_docSkeletonManagerService','delete','_initialized','_collabCursorController','SheetSkeletonManagerService','_bindAdapter','_sendLocalPresence','LOCAL_CACHE_INTERVAL','getDocRanges','length','_range','collaboration-client-ui.conflict.processing','createSocket','getCellIndexByOffset','result','_blinkIntervalTimer','ThemeService','ONLINE','sheetID','_presenceStatusRegistrations','_isBlinkVisible','_saveTaskMap','reason','_initUserListener','getParam','UNIVER_DOC','some','with','WebBrowserSingleActiveUnitService','CONFLICT_CACHE_CLEAR_FAILED','get','span','_assignedColors','focused$','_conflictNotification','_imageIoService','DOC_RANGE_TYPE','defineProperty','_updateURLWithCurrentState','collaboration-client-ui.snapshotLoading.refresh','getUnitId','_handleHover','_disposeEntitiesForType','call','assignAColorForMemberID','MemberService','_textBubble','Failed','getUnit','save','pulse','green.600','focusedId','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_uploadLog','#FFF','createInstance','univer-text-blue-500','getScrollXYInfoByViewport','getCurrentSelections','PENDING','2166726TBQtlI','_getLighterColor','_render','getActiveSheet','setShapeProps','JOIN_ROOM_FAILED','_showConflictProcessingNotification','setStateCache','RxDisposable','purple.300','useCallback','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','segmentPage','_unitOnClients','selections','isActive','toRgbString','now','replace','IUnitPresenceUIAdapterRegistry','UPDATE_CURSOR','endOffset','collaboration-client-ui.collabStatus.notCollab','Loading','10OxPENP','_send','_doCreateSocket','timedOut','_instanceService','getCurrentSkeleton','NO_OTHER_CLIENTS_EDITING','Disposable','subscribe','loadOfflineData','find','getOffsetConfig','_drawTextRange','disposeWithMe','constructor','clearTimeout','handleDeleteRangeMoveUp','backupOfflineData','message','indicator','onCommandExecuted','pageType','fromEvent','0.2)','_highlight','tableSource','_scene','beginPath','toDisposable','findNodePositionByCharIndex','drawWith','colorClass','CollaborationSocketService','saveImage','onPointerLeave$','merge','update','toPrimitive','mergeOverrideWithDependencies','univer-appearance-none','OnLineIcon','UniverCollaborationClientUIPlugin','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_lastPointer','map','content','labelPosition','_adapterDisposables','NOT_COLLAB','value','bind','_drawAnchor','_registerDependencies','restore','arc','_initEvent','top','redoState','_color','_pointerMoveDisposable','_registerPresenceStatusComponent','onRendered','UnitStatus','memberId','location','replaceState','_localStorageService','undoState','CollaborationUIEventId','true','row','strokeWidth','onPointerEnter$','adapters$','\x20at\x20','jsxs','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_collabCursorState$','getConfig','loading','_initUnhandledRejectionListener','removeItem','clearOfflineData','resize','startRow','exhaustSavingTask','imageSourceType','UNIVER_SHEET','loadUnit','enableDocumentCollaborationUI','_activeSaveTaskMap','DeleteRangeMoveLeftCommandId','HEADER_MENU','syncEditingCollabCursor','_initStatusComponent','_pendingEntities','useObservable','cursorInfo$','IUniverInstanceService','then','_startEntity','TEXT_RANGE_LAYER_INDEX','dispose','remove','_beforeCloseService','enableOfflineEditing','engine','endRow','_docTransformSelectionsService','runRefRangeMutations','has','_docSyncEditingCollabCursorService','_drawRectRange','handleInsertRow','BuiltInUIPart','_retryConflictCacheClear','DEFAULT_WS_SESSION_TICKET_URL','InsertRangeMoveDownCommandId','_scheduleHeartbeat','_docTransformIMECacheService','_trackActiveSaveTask','handleMoveRange','_getSheetObject','measureText',',\x200.2)','_handleJoinEvent','_eventUnsubscribe','search','columnGroupId','_stopBlinking','m2Prime','IMessageService','eventID','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','join','getActiveRange','font','popstate','DocSelectionManagerService','OTHER_CLIENT_EDITING','_offsetY','getItem','shareReplay','bottom','_notificationService','uni.network.url-service','number','throttleTime','unsubscribe','CLOSE_ROOM','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_disposed','fillRule','_entityInit$','m1Prime','1.0.3','SetWorksheetActivateCommand','CONFLICT_PROCESSING','_colorAssignService','setOffsetY','_entities','getCurrentUnitOfType','ITransformService','isFinite','filename','forEach','sessionTicket','_draw','_updateLocalCursor','preventDefault','debounceTime','override','createElement','function','_renderManagerService','DeleteRangeMoveUpCommandId','stage','Subject','alert','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','tableId','_getSaveTimeout','Button','_commandService','collaboration-client-ui.snapshotLoading.timeout','_timeoutState$','getSheetBySheetId','evenodd','pushState','searchParams','SUBMIT_CHANGESET_TIMEOUT','generateRandomId','SetDocZoomRatioOperation','push','_config','MessageType','...','fill','highlightSecond','8UpWoDs','_collabSessionService','_highlightSecond','show','_heartbeatTimer','lineTo','3371616nTqIRJ','debounce','_sheetSkeletonManagerService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','setInterval','state','OTHER_CLIENTS_EDITING','UniverDocsUIPlugin','_id','getCoordByCell','saveOfflineData','setUndoRedoMutationParamsCache','ColorKit','CommandType','_onCursorDelete','localPresence$','_startBlinking','_init','SOCKET_FAILED','_status$','moveTo','collaboration-client-ui.collaboration.closeRoom','_hideTimer','DocSkeletonManagerService','disposeUnit','HTTPService','\x20-\x20','isArray','_transformPreviousActiveRange','every','invokeId','LOCAL_CACHE_INTERVAL_KEY','collabCursorState$','6971972jVakVt','_online','collaboration-client-ui.collabStatus.syncing','unshift','jsx','_setupSubUnitSync','unit','_backgroundColor','getCollabCursors$','_context','collaboration-client-ui.collabStatus.offline','collaboration-client-ui.permission.content','_shapes','event$','_handleCursorUpdate','/universer-api/frontend/logs','_cursorInfo$','setConfig','IRenderManagerService','_removeRemotePresence','_initEntityListener','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','contains','rgba(255,\x20255,\x20255,\x200.01)','MoveRangeCommandId','connectInjector','SheetCollabCursorShape','_refreshCollabCursors','collaboration-client-ui.conflict.retry','univer-text-orange-500','_session','_cursor','from','range','getTypeOfUnitAdded$','DocIMEInputManagerService','_labelHorizontalPosition','prepareTransformSelections','_retryingConflictCacheUnitIDs','startsWith','mutations','FromArray','selection','subUnitId','getAllUnitsForType','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','Vector2','DocumentSkeletonPageType','min','Tooltip','getSheetId','add','ILocalStorageService',':backup:','CollaborationController','reload','replaceSelectionInfoWithoutRefresh','getRangePointData','small','snapshot-loading-timeout','transformIMECache','UniverNetworkPlugin','_scheduleSaving','getValue','transformStateCache','highlight','fillStyle','Tools','USERS_LEAVE','4490175GcFfsT','pointer','_initWindowErrorListener','_presenceAdapterRegistry','icon','OFFLINE','getTypeOfUnitDisposed$','offsetY','roomMembers','status','_anchor','black','executionId','FOOTER','state$','setItem','roomMembers$','_handleHeartbeatEvent','allSettled','IConfigService','requireSession','toISOString','_updateMessage','setParam','handleDeleteRangeMoveLeft','getLocalCacheKey','DesktopCollaborationStatusDisplayController','DisposableCollection','createIdentifier','static','_roomMembers$','next','toString','18gyjHBz','_clearOtherTimers','_docTransformStateCacheService','transformByState','WebSocketService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_revisionService','default','getRenderUnitById','_cursorShapes','sessionStatus$','1629470NCWlXU','_messageIds','univer-border-none\x20univer-bg-transparent','primary','ILogService','RemoveColCommandId','CollaborationEvent','finally','_saveCache','addHandlerCallback','_latestStates','_univerInstanceService','Plugin','unhandledrejection','UniverCollaborationClientPlugin','textRanges','_collaborationSessionService','_initCommandExecutedListener','_labelPosition','handleIRemoveRow','UniverInstanceType','getCurrentTypeOfUnit$','_isDisposed','_clearRemotePresences','max','_handleLeaveEvent','iterator','parse','_scheduleClearOtherTimer','values','1482224OznNBE','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','error','enableLocalCache','[Window\x20Error]:\x20','transformMutationsWithChangeset','data','fillText','_colorIndex','ISnapshotServerService','storage','InsertRangeMoveRightCommandId','collaboration-client-ui.conflict.content','subunit','memberID','setAlpha','registerRefRange','_onRefRangeChange','_removeClearOtherTimer','doc.mutation.rich-text-editing','urlChange$','registerRenderModule','_themeService','CONFLICT','addObjects','univer-m-0\x20univer-p-0','GLOBAL','tooltipKey','onMouseMove','_adapter','executeCommand','getFocusedUnit','subscribeEvent','backgroundColor','div','_refRangeService','closePath','_initResize','_injector','univer-inline-flex\x20univer-items-center\x20univer-justify-center','pageIndex','getColor','cursorInfo','getCurrentRevOfUnit','presenceKind','filter','_logService','editingUnit','_initPresenceStatusComponents','column','_registerRenderDependencies','univer-text-red-500','registerComponent','clearRemotePresences','ICommandService','collaboration-client-ui.config','INotificationService','ERROR','IUIPartsService','FETCH_MISS','BehaviorSubject','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','collab-text-range-','timer','ILocalCacheService','ISocketService','collaboration-client-ui.collaboration.single-unit.warning','_clearTimeoutState','IDocClipboardService','transformRemoteChangeset','Shape','_uiPartsService','isInternalEditorID','RichTextEditingMutation','collaboration-client-ui.session.will-retry','params','clickable','univer-h-8\x20univer-w-8\x20univer-rounded-lg','makeDirty','_httpService','removeParam','getSkeleton','_handleEvent','rgb','RECT','getMember','getColorFromTheme','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UniverCollaborationPlugin','setTimeout','_dataLoaderService','hide','_localeService','_toggleOnline','_getAnchorBounding','CollaborationStatus','currentSkeleton$','[Unhandled\x20Rejection]:\x20','HEADER','registerBeforeClose','rgba(','saveTaskMap','_unitStatus','isEditing','DocCollaborationEntity','pipe','Inject','handleInsertRangeMoveRight','collaboration-client-ui.collaboration.offline-data-not-saved','_clearBlockProgressWatch','enableFrontendLog','addEventListener','history','touchDependencies','symbol','_syncAdapters','getCollabEntity$','all','_collaborationController','unitType','_cachedData','collaboration-client-ui.session.collaboration-timeout','application/json','Warning','isTransformMutationsWithChangesetSuccess','setActiveRange','addObject','_blinkTimer','LocaleService','distinctUntilChanged','totalBlocks','triggerDblclick','[CollaborationDataLoaderController]','[LogService\x20Error]:\x20','univer-transition-all\x20univer-duration-200','getMergeData','DataLoaderService','version','handleInsertCol','_selfUnitIDs','getUnhiddenWorksheets','unitId','collaboration-client-ui.permission.title','_blockProgressWatches','_updateCollabCursors','getSelectionInfo','UniverDocsPlugin','parseInt','_collaborationUIEventService','_initStatusListener','useDependency','SessionStatus','decorate','_anchorDot','source','_startSheetCollabCursor','switchMap','stack','_docSelectionManagerService','Workbook','297742FbAEVQ','Rect','jiqing.500','_memberService','PERMISSION_DENIED','init','selectedIds','transformMutation','@univerjs-pro/collaboration-client-ui','flatMap','name','OPERATION','RegularPolygon','_initDependencies','complete','onStarting','removeEventListener','_name','_hover','i18nKey','getAncestorScale','Unknown\x20user','SetTextSelectionsOperation','_setupBeforeClosingHandler','updateOfflineData','CollaborationSessionService','post','deepClone','code','_showText','startOffset','_urlService','_ensureSubject','lineno','clear','UniverRenderEnginePlugin','transform','fromEventSubject','key','collaboration-client-ui.session.connection-failed','_getSessionTicket','takeUntil','height','slice','COLORS','width','LoadingMultiIcon','_monkeyPatchLogService','button','_syncPresenceStatusComponents','_disposeEntity','body','collaboration-client-ui.collabStatus.synced','string','dark:focus:!univer-ring-offset-gray-800','_hovered','text','_startDocCollabCursor','unitID','getOwnPropertyDescriptor','runId','NodePositionConvertToCursor','_docStateChangeManagerService','ranges','RevisionService','ACTIVE_UNIT_EVENT_CHANNEL','_toggleOffline','type','collaboration-client-ui.collabStatus.fetchMiss','collaboration-client-ui.collabClient.tooltip.reconnect','labelHorizontalPosition','isTransformMutationFailure','getStateCache','_onCursorUpdate','_replaceConflictNotification','EffectRefRangId','size','set','color','WarningIcon','shareInterval','send','kind','hovered','SnapshotLoadingService','_disabled','combineLatest','getMemberID','asObservable','statusUIPart','Error','showText','canRenderSelection','_configService','_snapshotLoadingService','getUndoRedoMutationParamsCache','object','collaboration-client-ui.collabStatus.conflict','timeoutState$','/run/','_messageService','left','_getScale','univer-flex\x20univer-items-center\x20univer-justify-center','CollaborationUIEventService','stringify','SnapshotLoadStage','socket$','_createSocketURL','startColumn','RefRangeService','_updateSubUnitFromURLParams','Injector','getCoordRelativeToViewport','_cursors','UniverLicensePlugin','spin','_memberID','wsSessionTicketUrl','_syncEditingCollabCursorService','columnIndex','BrowserCollaborationSocketService','Enter','ErrorCode','catch','packageName','href','newValue','_transformHistoryAndStateStack','_removeCollabCursors','collaboration-client-ui.conflict.title','loadedBlocks'];_0x4a62=function(){return _0x301269;};return _0x4a62();}let E=class extends t[_0x3e3f50(0x368)]{constructor(_0x3183d6,_0x3e5811){const _0xc8ac55=_0x3e3f50;super(),this[_0xc8ac55(0x31b)]=_0x3183d6,this[_0xc8ac55(0x346)]=_0x3e5811,this[_0xc8ac55(0x456)]();}[_0x3e3f50(0x456)](){const _0x292fbd=_0x3e3f50;let _0x452ebb=this;this['disposeWithMe'](this[_0x292fbd(0x31b)]['addClipboardHook']({'onBeforePasteImage':async _0x220ab0=>{const _0x4981d0=_0x292fbd;let _0x554c1d=await _0x452ebb['_imageIoService'][_0x4981d0(0x399)](_0x220ab0);return _0x554c1d?{'source':_0x554c1d[_0x4981d0(0x290)],'imageSourceType':_0x554c1d[_0x4981d0(0x3ce)]}:null;}}));}};E=S([x(0x0,f[_0x3e3f50(0x23a)]),x(0x1,t['IImageIoService'])],E);const ce=[_0x3e3f50(0x369),_0x3e3f50(0x298),_0x3e3f50(0x356),'red.300','blue.400','yellow.400'];var D=class extends t[_0x3e3f50(0x37f)]{constructor(..._0x591f6b){const _0x3c6b6b=_0x3e3f50;super(..._0x591f6b),b(this,_0x3c6b6b(0x343),new Map()),b(this,'_colorIndex',0x0);}[_0x3e3f50(0x34f)](_0x216214){const _0x540d05=_0x3e3f50;if(this[_0x540d05(0x343)][_0x540d05(0x3e6)](_0x216214))return this[_0x540d05(0x343)][_0x540d05(0x341)](_0x216214);let _0x4f854e=ce[this[_0x540d05(0x1fe)]];return this['_colorIndex']=(this[_0x540d05(0x1fe)]+0x1)%ce[_0x540d05(0x32c)],this['_assignedColors'][_0x540d05(0x2e3)](_0x216214,_0x4f854e),_0x4f854e;}};function le(_0x3a7a72){const _0x12d385=_0x3e3f50;let _0x2a5dbd='';for(let _0xb1ceae of _0x3a7a72){let {startOffset:_0x42ce72,endOffset:_0x3ba17d,isActive:_0x4cf962,rangeType:_0x7fee22,segmentId:_0x5e3e84,segmentPage:_0x45abde}=_0xb1ceae;_0x2a5dbd[_0x12d385(0x32c)]&&(_0x2a5dbd+=','),_0x2a5dbd+=_0x42ce72+':'+_0x3ba17d+':'+(_0x4cf962?'1':'0')+':'+_0x7fee22+':'+_0x5e3e84+':'+_0x45abde;}return _0x2a5dbd;}function ue(_0x540d44){const _0x3fc973=_0x3e3f50;let _0x1abda8=_0x540d44['split'](','),_0xe67949=[];for(let _0x5ad23b of _0x1abda8){let [_0x4467e6,_0x108ee7,_0x12de95,_0xeb5aa1,_0x9527b3,_0x26ed80]=_0x5ad23b['split'](':');_0xe67949['push']({'startOffset':Number(_0x4467e6),'endOffset':Number(_0x108ee7),'collapsed':_0x4467e6===_0x108ee7,'isActive':_0x12de95==='1','rangeType':_0xeb5aa1===t[_0x3fc973(0x347)]['TEXT']?t[_0x3fc973(0x347)]['TEXT']:t['DOC_RANGE_TYPE'][_0x3fc973(0x24a)],'segmentId':typeof _0x9527b3==_0x3fc973(0x2cb)?String(_0x9527b3):'','segmentPage':Number(_0x26ed80??-0x1)});}return _0xe67949[_0x3fc973(0x33d)](_0x3d76e4=>_0x3d76e4[_0x3fc973(0x36f)])||(_0xe67949[0x0][_0x3fc973(0x36f)]=!0x0),_0xe67949;}var O=class extends t[_0x3e3f50(0x368)]{constructor(..._0x5bd865){const _0x4a13b8=_0x3e3f50;super(..._0x5bd865),b(this,_0x4a13b8(0x3c5),new r[(_0x4a13b8(0x232))](null)),b(this,_0x4a13b8(0x465),this[_0x4a13b8(0x3c5)][_0x4a13b8(0x2ee)]());}[_0x3e3f50(0x3d5)](_0x1760fe){const _0x23ae29=_0x3e3f50;let {unitID:_0x5f1f31,memberID:_0x3aaa16,textRanges:_0x5d0298}=_0x1760fe,_0x3fe09c=le(_0x5d0298);if(_0x3fe09c==='')return;let _0x27fce0={'unitID':_0x5f1f31,'memberID':_0x3aaa16,'selection':_0x3fe09c};this[_0x23ae29(0x3c5)][_0x23ae29(0x1cb)](_0x27fce0);}};let k=class extends t[_0x3e3f50(0x368)]{get[_0x3e3f50(0x220)](){const _0x52d3a8=_0x3e3f50;return this[_0x52d3a8(0x476)][_0x52d3a8(0x4a5)]();}get[_0x3e3f50(0x1b4)](){const _0x17c120=_0x3e3f50;return this[_0x17c120(0x1ca)][_0x17c120(0x4a5)]();}constructor(_0x1fd7ed,_0x37efd8,_0x310542,_0x525f29,_0x4490bd,_0x8aec00,_0x41e721,_0x5e6052,_0x36ff18){const _0x1afad3=_0x3e3f50;super(),this['unitID']=_0x1fd7ed,this['_session']=_0x37efd8,this[_0x1afad3(0x21c)]=_0x310542,this['_colorAssignService']=_0x525f29,this['_memberService']=_0x4490bd,this[_0x1afad3(0x30d)]=_0x8aec00,this[_0x1afad3(0x31f)]=_0x41e721,this[_0x1afad3(0x1e3)]=_0x5e6052,this['_commandService']=_0x36ff18,b(this,_0x1afad3(0x467),!0x1),b(this,_0x1afad3(0x456),!0x1),b(this,_0x1afad3(0x476),new r[(_0x1afad3(0x232))](new Map())),b(this,'cursorInfo$',this[_0x1afad3(0x476)]['asObservable']()),b(this,_0x1afad3(0x1ca),new r[(_0x1afad3(0x232))]([])),b(this,'roomMembers$',this[_0x1afad3(0x1ca)][_0x1afad3(0x25f)]((0x0,r['debounceTime'])(0x12c))),b(this,_0x1afad3(0x420),(0x0,t['debounce'])(_0x2506bd=>{const _0x267579=_0x1afad3;let _0x185a1f={'eventID':l[_0x267579(0x1de)][_0x267579(0x374)],'data':{'unitID':this['unitID'],'memberID':this[_0x267579(0x484)][_0x267579(0x2ed)](),'selection':le(_0x2506bd)}};this[_0x267579(0x484)][_0x267579(0x2e7)](_0x185a1f,this['unitID']);},0x64));}[_0x3e3f50(0x3de)](){const _0x469edf=_0x3e3f50;super['dispose'](),this[_0x469edf(0x476)]['next'](new Map()),this[_0x469edf(0x476)]['complete'](),this['_roomMembers$']['next']([]),this[_0x469edf(0x1ca)]['complete']();}[_0x3e3f50(0x29b)](){const _0x443f94=_0x3e3f50;this[_0x443f94(0x456)]||(this[_0x443f94(0x456)]=!0x0,this[_0x443f94(0x484)]['sessionStatus$']['pipe']((0x0,r[_0x443f94(0x2bf)])(this['dispose$']))[_0x443f94(0x380)](_0x110937=>{const _0x6536d8=_0x443f94;_0x110937===e[_0x6536d8(0x28d)]['ONLINE']?this[_0x6536d8(0x253)]():this['_toggleOffline']();}),this[_0x443f94(0x484)]['event$'][_0x443f94(0x25f)]((0x0,r[_0x443f94(0x2bf)])(this[_0x443f94(0x322)]))[_0x443f94(0x380)](_0x519d3c=>{const _0x567fb6=_0x443f94;let _0x1eed44=_0x519d3c[_0x567fb6(0x3fc)];_0x1eed44===l[_0x567fb6(0x1de)]['UPDATE_CURSOR']&&this[_0x567fb6(0x2df)](_0x519d3c),_0x1eed44===l['CollaborationEvent'][_0x567fb6(0x4aa)]&&this['_onCursorDelete'](_0x519d3c);}),this[_0x443f94(0x385)](this[_0x443f94(0x42f)][_0x443f94(0x38c)](_0xd54da3=>{const _0x19f147=_0x443f94;let _0x8d9b8c=_0xd54da3[_0x19f147(0x241)];_0x8d9b8c!=null&&this[_0x19f147(0x467)]&&_0xd54da3['id']===d[_0x19f147(0x2ac)]['id']&&_0x8d9b8c[_0x19f147(0x283)]===this[_0x19f147(0x2d0)]&&_0x8d9b8c[_0x19f147(0x25d)]===!0x1&&_0x8d9b8c[_0x19f147(0x2d5)]['length']>0x0&&this[_0x19f147(0x420)](_0x8d9b8c[_0x19f147(0x2d5)]);})),this['_syncEditingCollabCursorService'][_0x443f94(0x465)][_0x443f94(0x25f)]((0x0,r[_0x443f94(0x2bf)])(this[_0x443f94(0x322)]))[_0x443f94(0x380)](_0x47dc56=>{const _0x27fbe2=_0x443f94;if((_0x47dc56==null?void 0x0:_0x47dc56[_0x27fbe2(0x2d0)])!==this[_0x27fbe2(0x2d0)])return;let _0x51b96e={'eventID':l['CollaborationEvent'][_0x27fbe2(0x374)],'data':_0x47dc56};this[_0x27fbe2(0x2df)](_0x51b96e);}),this['disposeWithMe'](this[_0x443f94(0x42f)][_0x443f94(0x38c)](_0x7a9ca5=>{const _0x1e5cae=_0x443f94;if(_0x7a9ca5[_0x1e5cae(0x241)]==null)return;let _0x2ab20b=_0x7a9ca5[_0x1e5cae(0x241)];if(_0x7a9ca5['id']!==d[_0x1e5cae(0x23f)]['id']||_0x2ab20b[_0x1e5cae(0x283)]!==this[_0x1e5cae(0x2d0)])return;let _0x41fd60={'id':_0x1e5cae(0x209),'params':_0x2ab20b},_0x42b47e=this[_0x1e5cae(0x220)];for(let [_0xe167b0,_0x4f93b0]of _0x42b47e){let _0x120ffa={'id':_0x1e5cae(0x209),'params':{'unitId':this[_0x1e5cae(0x2d0)],'actions':null,'textRanges':_0x4f93b0[_0x1e5cae(0x2d5)]}},_0x17d4ba=this['_transformService'][_0x1e5cae(0x29d)](_0x41fd60,_0x120ffa,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x17d4ba))throw _0x17d4ba['error'];_0x42b47e[_0x1e5cae(0x2e3)](_0xe167b0,{..._0x4f93b0,'ranges':_0x17d4ba['m2Prime'][_0x1e5cae(0x241)][_0x1e5cae(0x1e7)]});}queueMicrotask(()=>{const _0x346ca9=_0x1e5cae;this[_0x346ca9(0x476)][_0x346ca9(0x1cb)](_0x42b47e);});})));}['_onCursorUpdate'](_0x2f9e33){const _0x383dd1=_0x3e3f50;var _0x5535e1;let {memberID:_0x442d66,selection:_0x513418}=_0x2f9e33[_0x383dd1(0x1fc)],_0x5cb45e=ue(_0x513418),_0xacd109=((_0x5535e1=this[_0x383dd1(0x299)][_0x383dd1(0x24b)](this['unitID'],_0x442d66))==null?void 0x0:_0x5535e1[_0x383dd1(0x2a0)])??_0x383dd1(0x2ab),_0x5514e5={'color':this[_0x383dd1(0x416)][_0x383dd1(0x34f)](_0x442d66),'name':_0xacd109,'ranges':_0x5cb45e},_0x1905c3=this[_0x383dd1(0x220)];_0x1905c3[_0x383dd1(0x2e3)](_0x442d66,_0x5514e5),this[_0x383dd1(0x476)][_0x383dd1(0x1cb)](_0x1905c3);}[_0x3e3f50(0x453)](_0x4161ff){const _0x49af80=_0x3e3f50;let {memberID:_0x4ccf58}=_0x4161ff['data'],_0x88e7f=this[_0x49af80(0x220)];_0x88e7f[_0x49af80(0x324)](_0x4ccf58),this['_cursorInfo$'][_0x49af80(0x1cb)](_0x88e7f);}[_0x3e3f50(0x253)](){const _0x44b9f3=_0x3e3f50;var _0x1e0198;if(this[_0x44b9f3(0x467)]=!0x0,((_0x1e0198=this[_0x44b9f3(0x1e3)][_0x44b9f3(0x215)]())==null?void 0x0:_0x1e0198[_0x44b9f3(0x34b)]())!==this['unitID'])return;let _0x459b0a=this[_0x44b9f3(0x21c)][_0x44b9f3(0x341)](d['DocSelectionManagerService'])[_0x44b9f3(0x32b)]();Array['isArray'](_0x459b0a)&&_0x459b0a[_0x44b9f3(0x32c)]>0x0&&this['_updateLocalCursor'](_0x459b0a);}[_0x3e3f50(0x2d8)](){const _0x39a21c=_0x3e3f50;this[_0x39a21c(0x467)]=!0x1;}};k=S([x(0x2,(0x0,t[_0x3e3f50(0x260)])(t[_0x3e3f50(0x306)])),x(0x3,(0x0,t[_0x3e3f50(0x260)])(D)),x(0x4,(0x0,t['Inject'])(e[_0x3e3f50(0x350)])),x(0x5,(0x0,t['Inject'])(O)),x(0x6,l[_0x3e3f50(0x41a)]),x(0x7,t[_0x3e3f50(0x3da)]),x(0x8,t[_0x3e3f50(0x22c)])],k);const de=()=>{let _0x3d3efd=[],_0x19232d=!0x1;return _0x2cd10f=>{const _0x28daa9=_0x1e1d;_0x3d3efd[_0x28daa9(0x439)](_0x2cd10f),_0x19232d||(_0x19232d=!0x0,setTimeout(()=>{const _0x5ca596=_0x28daa9;_0x3d3efd[_0x5ca596(0x41d)](_0x10cb90=>_0x10cb90()),_0x3d3efd=[],_0x19232d=!0x1;}));};};let A=class extends t[_0x3e3f50(0x368)]{get[_0x3e3f50(0x220)](){const _0x484c8d=_0x3e3f50;return this['_cursorInfo$'][_0x484c8d(0x4a5)]();}get[_0x3e3f50(0x1b4)](){const _0x56a432=_0x3e3f50;return this[_0x56a432(0x1ca)][_0x56a432(0x4a5)]();}constructor(_0xa5f1fe,_0x3b3d5f,_0x2a05c9,_0x4a45d8,_0x4e0e3e,_0x301dd6,_0x38fec1,_0x20645e){const _0x514780=_0x3e3f50;super(),this[_0x514780(0x2d0)]=_0xa5f1fe,this[_0x514780(0x484)]=_0x3b3d5f,this[_0x514780(0x21c)]=_0x2a05c9,this[_0x514780(0x416)]=_0x4a45d8,this[_0x514780(0x299)]=_0x4e0e3e,this[_0x514780(0x1e3)]=_0x301dd6,this['_commandService']=_0x38fec1,this[_0x514780(0x219)]=_0x20645e,b(this,_0x514780(0x467),!0x1),b(this,_0x514780(0x456),!0x1),b(this,_0x514780(0x476),new r[(_0x514780(0x232))](new Map())),b(this,'cursorInfo$',this[_0x514780(0x476)][_0x514780(0x2ee)]()),b(this,_0x514780(0x1ca),new r[(_0x514780(0x232))]([])),b(this,_0x514780(0x1bc),this['_roomMembers$']['pipe']((0x0,r[_0x514780(0x422)])(0x12c))),b(this,_0x514780(0x420),(0x0,t[_0x514780(0x446)])((_0x3f2de3,_0x2054be)=>{const _0xc30d13=_0x514780;let _0x1c4395={'eventID':l['CollaborationEvent'][_0xc30d13(0x374)],'data':{'unitID':this['unitID'],'memberID':this[_0xc30d13(0x484)][_0xc30d13(0x2ed)](),'selection':(0x0,h['serializeRangeWithSheet'])(_0x3f2de3,_0x2054be[_0xc30d13(0x487)])}};this[_0xc30d13(0x484)][_0xc30d13(0x2e7)](_0x1c4395,this[_0xc30d13(0x2d0)]);},0x64));}['dispose'](){const _0x47d18d=_0x3e3f50;super[_0x47d18d(0x3de)](),this[_0x47d18d(0x476)][_0x47d18d(0x1cb)](new Map()),this[_0x47d18d(0x476)]['complete'](),this[_0x47d18d(0x1ca)][_0x47d18d(0x1cb)]([]),this[_0x47d18d(0x1ca)][_0x47d18d(0x2a4)]();}[_0x3e3f50(0x29b)](){const _0x26c11e=_0x3e3f50;this[_0x26c11e(0x456)]||(this[_0x26c11e(0x456)]=!0x0,this[_0x26c11e(0x484)][_0x26c11e(0x1d7)]['pipe']((0x0,r['takeUntil'])(this[_0x26c11e(0x322)]))[_0x26c11e(0x380)](_0x5a2e68=>{const _0x3f1ef1=_0x26c11e;_0x5a2e68===e['SessionStatus'][_0x3f1ef1(0x334)]?this[_0x3f1ef1(0x253)]():this[_0x3f1ef1(0x2d8)]();}),this['_session'][_0x26c11e(0x473)][_0x26c11e(0x25f)]((0x0,r['takeUntil'])(this[_0x26c11e(0x322)]))[_0x26c11e(0x380)](_0x1acb73=>{const _0x249026=_0x26c11e;let _0x5119a7=_0x1acb73['eventID'];_0x5119a7===l[_0x249026(0x1de)][_0x249026(0x374)]&&this[_0x249026(0x2df)](_0x1acb73),_0x5119a7===l[_0x249026(0x1de)]['USERS_LEAVE']&&this[_0x249026(0x453)](_0x1acb73);}),this[_0x26c11e(0x207)](),this[_0x26c11e(0x385)](this['_commandService'][_0x26c11e(0x38c)](_0x13f0f4=>{const _0x1d4260=_0x26c11e;if(this['_online']&&_0x13f0f4['id']===g['SetSelectionsOperation']['id']&&_0x13f0f4[_0x1d4260(0x241)]['unitId']===this['unitID']){let _0x259e82=_0x13f0f4['params'];this[_0x1d4260(0x420)](_0x259e82['subUnitId'],_0x259e82[_0x1d4260(0x36e)][0x0]);}})));}[_0x3e3f50(0x2df)](_0x5ba89f){const _0xfa7ab6=_0x3e3f50;var _0x25a247;let {memberID:_0x1de74d,selection:_0x1297dc}=_0x5ba89f[_0xfa7ab6(0x1fc)],{sheetName:_0x16f3d1,range:_0x2c7c81}=(0x0,h['deserializeRangeWithSheet'])(_0x1297dc),_0x47d1cd={'name':((_0x25a247=this['_memberService'][_0xfa7ab6(0x24b)](this[_0xfa7ab6(0x2d0)],_0x1de74d))==null?void 0x0:_0x25a247[_0xfa7ab6(0x2a0)])??_0xfa7ab6(0x2ab),'range':this['_getMergeRange'](_0x16f3d1,_0x2c7c81),'sheetID':_0x16f3d1,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x1de74d),'selection':_0x1297dc},_0x24d421=this[_0xfa7ab6(0x220)];_0x24d421['set'](_0x1de74d,_0x47d1cd),this['_cursorInfo$'][_0xfa7ab6(0x1cb)](_0x24d421);}[_0x3e3f50(0x453)](_0x4cfe4c){const _0x37a9d2=_0x3e3f50;let {memberID:_0x36ce5}=_0x4cfe4c['data'],_0x353480=this[_0x37a9d2(0x220)];_0x353480[_0x37a9d2(0x324)](_0x36ce5),this[_0x37a9d2(0x476)][_0x37a9d2(0x1cb)](_0x353480);}['_getMergeRange'](_0x4bd776,_0x2bbde6){const _0x2c6a75=_0x3e3f50;var _0x295f5b;let _0x940542=(_0x295f5b=this[_0x2c6a75(0x1e3)][_0x2c6a75(0x353)](this['unitID'],t['UniverInstanceType'][_0x2c6a75(0x3cf)]))==null||(_0x295f5b=_0x295f5b['getSheetBySheetId'](_0x4bd776))==null?void 0x0:_0x295f5b[_0x2c6a75(0x27d)]();return(_0x940542==null?void 0x0:_0x940542['find'](_0x20f3d3=>t['Rectangle'][_0x2c6a75(0x47c)](_0x20f3d3,_0x2bbde6)))||_0x2bbde6;}[_0x3e3f50(0x207)](){const _0xb1d45f=_0x3e3f50;let _0x7bac54=new t[(_0xb1d45f(0x1c7))](),_0x4ab53d=de(),_0x1f27a1=()=>{const _0x5b0c83=_0xb1d45f;_0x7bac54['dispose']();let _0x5b1593=(_0x238b0f,_0x4565f6,_0x140702,_0x3080a2)=>{const _0x444d8d=_0x1e1d;let _0x51b91b=[];switch(_0x238b0f['id']){case g[_0x444d8d(0x2e1)][_0x444d8d(0x3d3)]:_0x51b91b=(0x0,g[_0x444d8d(0x1c4)])(_0x238b0f,_0x3080a2);break;case g['EffectRefRangId'][_0x444d8d(0x427)]:_0x51b91b=(0x0,g[_0x444d8d(0x388)])(_0x238b0f,_0x3080a2);break;case g[_0x444d8d(0x2e1)]['InsertColCommandId']:_0x51b91b=(0x0,g[_0x444d8d(0x280)])(_0x238b0f,_0x3080a2);break;case g[_0x444d8d(0x2e1)][_0x444d8d(0x3ed)]:_0x51b91b=(0x0,g['handleInsertRangeMoveDown'])(_0x238b0f,_0x3080a2);break;case g[_0x444d8d(0x2e1)][_0x444d8d(0x201)]:_0x51b91b=(0x0,g[_0x444d8d(0x261)])(_0x238b0f,_0x3080a2);break;case g[_0x444d8d(0x2e1)]['InsertRowCommandId']:_0x51b91b=(0x0,g[_0x444d8d(0x3e9)])(_0x238b0f,_0x3080a2);break;case g[_0x444d8d(0x2e1)][_0x444d8d(0x47e)]:_0x51b91b=(0x0,g[_0x444d8d(0x3f1)])(_0x238b0f,_0x3080a2);break;case g[_0x444d8d(0x2e1)][_0x444d8d(0x1dd)]:_0x51b91b=(0x0,g['handleIRemoveCol'])(_0x238b0f,_0x3080a2);break;case g['EffectRefRangId']['RemoveRowCommandId']:_0x51b91b=(0x0,g[_0x444d8d(0x1eb)])(_0x238b0f,_0x3080a2);}let _0x57d46d=(0x0,g[_0x444d8d(0x3e5)])(_0x51b91b,_0x3080a2),_0x5d014a=this[_0x444d8d(0x220)][_0x444d8d(0x341)](_0x4565f6);if(_0x5d014a&&_0x57d46d){let _0x9e27c3={..._0x5d014a,'range':_0x57d46d};this['cursorInfo'][_0x444d8d(0x2e3)](_0x4565f6,_0x9e27c3),_0x4ab53d(()=>{const _0x139f5e=_0x444d8d;let _0x8e7cd8=this[_0x139f5e(0x219)][_0x139f5e(0x206)](_0x57d46d,_0x5389ab=>(_0x8e7cd8[_0x139f5e(0x3de)](),_0x5b1593(_0x5389ab,_0x4565f6,_0x140702,_0x57d46d)));_0x7bac54[_0x139f5e(0x499)](_0x8e7cd8);});}return{'redos':[],'undos':[]};};this[_0x5b0c83(0x220)][_0x5b0c83(0x41d)]((_0x1008e7,_0x529066)=>{const _0x1f2e82=_0x5b0c83;let {range:_0x2e625f,sheetID:_0x327f4d}=_0x1008e7,_0x3d1534=this[_0x1f2e82(0x219)][_0x1f2e82(0x206)](_0x2e625f,_0x182b49=>(_0x3d1534[_0x1f2e82(0x3de)](),_0x5b1593(_0x182b49,_0x529066,_0x327f4d,_0x2e625f)));_0x7bac54[_0x1f2e82(0x499)](_0x3d1534);});};this[_0xb1d45f(0x385)]((0x0,t[_0xb1d45f(0x394)])(this[_0xb1d45f(0x476)]['subscribe'](()=>{_0x1f27a1();})));}[_0x3e3f50(0x253)](){const _0x1523f7=_0x3e3f50;var _0x58e941,_0x4f162a;if(this[_0x1523f7(0x467)]=!0x0,((_0x58e941=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x58e941['getUnitId']())!==this['unitID'])return;let _0x326590=(_0x4f162a=this['_injector'][_0x1523f7(0x341)](g['SheetsSelectionsService'])[_0x1523f7(0x35e)]())==null?void 0x0:_0x4f162a[0x0],_0x1535b8=this[_0x1523f7(0x1e3)]['getCurrentUnitOfType'](t[_0x1523f7(0x1ec)][_0x1523f7(0x3cf)])[_0x1523f7(0x363)]();_0x326590&&_0x1535b8&&this['_updateLocalCursor'](_0x1535b8[_0x1523f7(0x498)](),_0x326590);}[_0x3e3f50(0x2d8)](){const _0x228aa5=_0x3e3f50;this[_0x228aa5(0x467)]=!0x1;}};A=S([x(0x2,(0x0,t[_0x3e3f50(0x260)])(t['Injector'])),x(0x3,(0x0,t['Inject'])(D)),x(0x4,(0x0,t[_0x3e3f50(0x260)])(e[_0x3e3f50(0x350)])),x(0x5,t[_0x3e3f50(0x3da)]),x(0x6,t[_0x3e3f50(0x22c)]),x(0x7,(0x0,t[_0x3e3f50(0x260)])(g[_0x3e3f50(0x304)]))],A);let j=class extends t[_0x3e3f50(0x368)]{constructor(_0x53c35a,_0x1f5ebd,_0x372235){const _0x5d788e=_0x3e3f50;super(),this[_0x5d788e(0x1e3)]=_0x53c35a,this['_injector']=_0x1f5ebd,this['_collabSessionService']=_0x372235,b(this,_0x5d788e(0x418),new Map()),b(this,_0x5d788e(0x411),new r[(_0x5d788e(0x429))]()),this['_init']();}[_0x3e3f50(0x3de)](){const _0x4bcbe4=_0x3e3f50;super[_0x4bcbe4(0x3de)](),this[_0x4bcbe4(0x411)][_0x4bcbe4(0x2a4)](),this[_0x4bcbe4(0x418)]['forEach'](_0x187f2b=>_0x187f2b['dispose']());}[_0x3e3f50(0x46e)](_0x144395){const _0x5c4bf1=_0x3e3f50;let _0x1a613=this[_0x5c4bf1(0x418)][_0x5c4bf1(0x341)](_0x144395);return _0x1a613?_0x1a613[_0x5c4bf1(0x3d9)]:this[_0x5c4bf1(0x411)]['pipe']((0x0,r[_0x5c4bf1(0x223)])(_0x610073=>_0x610073['unitID']===_0x144395),(0x0,r[_0x5c4bf1(0x292)])(_0x371af2=>_0x371af2['cursorInfo$']));}[_0x3e3f50(0x456)](){const _0x1f1299=_0x3e3f50;this[_0x1f1299(0x1e3)][_0x1f1299(0x488)](t[_0x1f1299(0x1ec)][_0x1f1299(0x3cf)])['pipe']((0x0,r[_0x1f1299(0x2bf)])(this[_0x1f1299(0x322)]))['subscribe'](async _0x492e88=>{const _0x1c9060=_0x1f1299;let _0x42f568=_0x492e88[_0x1c9060(0x46c)][_0x1c9060(0x34b)](),_0x49e683=await this[_0x1c9060(0x291)](_0x42f568);this[_0x1c9060(0x411)][_0x1c9060(0x1cb)](_0x49e683),this[_0x1c9060(0x418)][_0x1c9060(0x2e3)](_0x42f568,_0x49e683);}),this[_0x1f1299(0x1e3)][_0x1f1299(0x488)](t['UniverInstanceType'][_0x1f1299(0x33c)])[_0x1f1299(0x25f)]((0x0,r[_0x1f1299(0x2bf)])(this[_0x1f1299(0x322)]))['pipe']((0x0,r[_0x1f1299(0x223)])(_0xe4ee19=>!_0xe4ee19[_0x1f1299(0x46c)][_0x1f1299(0x34b)]()[_0x1f1299(0x48d)]('__')))[_0x1f1299(0x380)](async _0x592306=>{const _0x5d50ea=_0x1f1299;let {unit:_0x359c77}=_0x592306,_0x4cee0a=_0x359c77[_0x5d50ea(0x34b)](),_0x65d2af=await this[_0x5d50ea(0x2cf)](_0x4cee0a);this[_0x5d50ea(0x411)][_0x5d50ea(0x1cb)](_0x65d2af),this[_0x5d50ea(0x418)][_0x5d50ea(0x2e3)](_0x4cee0a,_0x65d2af);}),(0x0,r['merge'])(this[_0x1f1299(0x1e3)][_0x1f1299(0x1b2)](t[_0x1f1299(0x1ec)][_0x1f1299(0x33c)]),this[_0x1f1299(0x1e3)]['getTypeOfUnitDisposed$'](t['UniverInstanceType']['UNIVER_SHEET']))[_0x1f1299(0x25f)]((0x0,r[_0x1f1299(0x2bf)])(this['dispose$']))[_0x1f1299(0x380)](_0x8038bc=>{const _0xd72698=_0x1f1299;let _0x5e1873=_0x8038bc[_0xd72698(0x34b)](),_0x3d1e4d=this[_0xd72698(0x418)][_0xd72698(0x341)](_0x5e1873);_0x3d1e4d&&(_0x3d1e4d[_0xd72698(0x3de)](),this[_0xd72698(0x418)][_0xd72698(0x324)](_0x5e1873));});}async[_0x3e3f50(0x291)](_0x22c2f8){const _0xeb4169=_0x3e3f50;let _0x816319=await this[_0xeb4169(0x440)][_0xeb4169(0x1c0)](_0x22c2f8),_0x584e12=this[_0xeb4169(0x21c)]['createInstance'](A,_0x22c2f8,_0x816319);return _0x584e12['init'](),_0x584e12;}async[_0x3e3f50(0x2cf)](_0x2c2482){const _0x54aecf=_0x3e3f50;let _0x15a330=await this[_0x54aecf(0x440)][_0x54aecf(0x1c0)](_0x2c2482),_0x2b786c=this[_0x54aecf(0x21c)][_0x54aecf(0x35b)](k,_0x2c2482,_0x15a330);return _0x2b786c['init'](),_0x2b786c;}};j=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x3e3f50(0x260)])(t[_0x3e3f50(0x306)])),x(0x2,(0x0,t[_0x3e3f50(0x260)])(e['CollaborationSessionService']))],j);function fe(_0x56687b,_0x50463c){const _0x609a3b=_0x3e3f50;_0x56687b[_0x609a3b(0x354)](),_0x56687b[_0x609a3b(0x400)]='bold\x2013px\x20Arial,\x20sans-serif';let _0x2242e4=_0x56687b[_0x609a3b(0x3f3)](_0x50463c)[_0x609a3b(0x2c3)];return _0x56687b['restore'](),Math['min'](_0x2242e4+0x8,0xc8);}function pe(_0x577aee,_0x35ec62){const _0x2315f8=_0x3e3f50;let {radius:_0x3f9925,width:_0x79f796,height:_0x249452}=_0x35ec62;_0x3f9925??=0x0,_0x79f796??=0x1e,_0x249452??=0x1e;let _0x4dd3df=0x0,_0x39c2cb=0x0,_0xd1139c=0x0;_0x4dd3df=_0x39c2cb=_0xd1139c=Math[_0x2315f8(0x496)](_0x3f9925,_0x79f796/0x2,_0x249452/0x2),_0x577aee[_0x2315f8(0x393)](),_0x577aee[_0x2315f8(0x459)](_0x4dd3df,0x0),_0x577aee[_0x2315f8(0x444)](_0x79f796-_0x39c2cb,0x0),_0x577aee[_0x2315f8(0x3ae)](_0x79f796-_0x39c2cb,_0x39c2cb,_0x39c2cb,Math['PI']*0x3/0x2,0x0,!0x1),_0x577aee[_0x2315f8(0x444)](_0x79f796,_0x249452-_0xd1139c),_0x577aee[_0x2315f8(0x3ae)](_0x79f796-_0xd1139c,_0x249452-_0xd1139c,_0xd1139c,0x0,Math['PI']/0x2,!0x1),_0x577aee[_0x2315f8(0x444)](0x0,_0x249452),_0x577aee[_0x2315f8(0x444)](0x0,_0x4dd3df),_0x577aee[_0x2315f8(0x3ae)](_0x4dd3df,_0x4dd3df,_0x4dd3df,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x577aee[_0x2315f8(0x21a)](),_0x35ec62['fill']&&(_0x577aee[_0x2315f8(0x354)](),_0x577aee[_0x2315f8(0x4a8)]=_0x35ec62[_0x2315f8(0x43d)],_0x35ec62[_0x2315f8(0x410)]==='evenodd'?_0x577aee[_0x2315f8(0x43d)](_0x2315f8(0x433)):_0x577aee[_0x2315f8(0x43d)](),_0x577aee[_0x2315f8(0x3ad)]());}var me=class e extends p['Shape']{constructor(_0xd2bbc2,_0x34b3c3){const _0x34ebe9=_0x3e3f50;super(_0xd2bbc2,_0x34b3c3),b(this,_0x34ebe9(0x2e4),void 0x0),b(this,_0x34ebe9(0x2ce),void 0x0),this[_0x34ebe9(0x2e4)]=_0x34b3c3==null?void 0x0:_0x34b3c3['color'],this[_0x34ebe9(0x2ce)]=_0x34b3c3==null?void 0x0:_0x34b3c3[_0x34ebe9(0x2ce)];}static[_0x3e3f50(0x396)](_0x50e867,_0x10d4cd){const _0x46b248=_0x3e3f50;let {text:_0x31b396,color:_0x1329ed}=_0x10d4cd;_0x50e867[_0x46b248(0x354)](),_0x50e867['font']=_0x46b248(0x3fd);let _0x26b8c1=_0x50e867[_0x46b248(0x3f3)](_0x31b396)[_0x46b248(0x2c3)];if(pe(_0x50e867,{'height':0x14,'radius':0x4,'width':fe(_0x50e867,_0x31b396),'fill':_0x1329ed,'evented':!0x1}),_0x50e867[_0x46b248(0x4a8)]=_0x46b248(0x35a),_0x26b8c1>0xc0){let _0x5dcd52='',_0x5d4860=0x0;for(let _0x388fc4 of _0x31b396){let _0x38efb3=_0x50e867['measureText'](_0x388fc4)[_0x46b248(0x2c3)];if(_0x5d4860+_0x38efb3<=0xc0-_0x50e867[_0x46b248(0x3f3)]('...')['width'])_0x5dcd52+=_0x388fc4,_0x5d4860+=_0x38efb3;else{_0x5dcd52+=_0x46b248(0x43c);break;}}_0x50e867[_0x46b248(0x1fd)](_0x5dcd52,0x4,0xf);}else _0x50e867['fillText'](_0x31b396,0x4,0xf);_0x50e867[_0x46b248(0x3ad)]();}[_0x3e3f50(0x41f)](_0x420dbe){e['drawWith'](_0x420dbe,this);}};const M='collab-text-anchor-';var he=class{constructor(_0xc46d83,_0x2e8e10,_0x2979e9,_0x2c434b){const _0x2303ae=_0x3e3f50;this[_0x2303ae(0x485)]=_0xc46d83,this[_0x2303ae(0x392)]=_0x2e8e10,this['_docSkeleton']=_0x2979e9,this['_document']=_0x2c434b,b(this,_0x2303ae(0x472),[]),b(this,'_anchor',null),b(this,_0x2303ae(0x351),null),b(this,_0x2303ae(0x28f),null),b(this,_0x2303ae(0x45b),null),b(this,_0x2303ae(0x3f6),null),this[_0x2303ae(0x362)]();}set[_0x3e3f50(0x2a8)](_0x14386a){const _0x3d4224=_0x3e3f50;_0x14386a?(this[_0x3d4224(0x28f)]&&this[_0x3d4224(0x28f)][_0x3d4224(0x251)](),this[_0x3d4224(0x351)]&&this['_textBubble'][_0x3d4224(0x442)]()):(this[_0x3d4224(0x28f)]&&this['_anchorDot']['show'](),this[_0x3d4224(0x351)]&&this['_textBubble'][_0x3d4224(0x251)]());}['dispose'](){const _0x452b83=_0x3e3f50;for(let _0x49b195 of this[_0x452b83(0x472)])_0x49b195[_0x452b83(0x3de)]();this[_0x452b83(0x351)]&&this[_0x452b83(0x351)][_0x452b83(0x3de)](),this['_anchorDot']&&this['_anchorDot'][_0x452b83(0x3de)](),this[_0x452b83(0x1b6)]&&this[_0x452b83(0x1b6)][_0x452b83(0x3de)](),this[_0x452b83(0x3f6)]&&this['_eventUnsubscribe']();}['_render'](){const _0x485bbd=_0x3e3f50;let {_docSkeleton:_0x32ec18,_document:_0x596872}=this,{color:_0x1e8451,name:_0x3040ed,ranges:_0x431e18}=this[_0x485bbd(0x485)],_0x3b6228=_0x596872[_0x485bbd(0x383)](),{docsLeft:_0x297d8b,docsTop:_0x5294ae}=_0x3b6228,_0xee3a40=new f[(_0x485bbd(0x2d3))](_0x3b6228,_0x32ec18);for(let {startOffset:_0x4b0897,endOffset:_0x2d7f5a,rangeType:_0x378f65,segmentId:_0xf90e4b,segmentPage:_0x4e3788,collapsed:_0x4b8873,isActive:_0x25a976}of _0x431e18){let _0x1713de=_0x32ec18[_0x485bbd(0x395)](_0x4b0897,!0x0,_0xf90e4b,_0x4e3788),_0x566331=_0x32ec18[_0x485bbd(0x395)](_0x2d7f5a,!0x0,_0xf90e4b,_0x4e3788);_0x566331??=_0x32ec18['findNodePositionByCharIndex'](_0x2d7f5a-0x1,!0x1,_0xf90e4b,_0x4e3788);let _0xbd580c=ge(_0x1713de,_0x566331);if(_0x25a976&&_0xbd580c['canRenderAnchor']){let {contentBoxPointGroup:_0x5ac054}=_0xee3a40[_0x485bbd(0x49f)](_0x566331,_0x566331);if(_0x5ac054['length']===0x0)continue;this[_0x485bbd(0x3ab)](_0x1e8451,_0x5ac054,_0x297d8b,_0x5294ae,_0x3040ed),this[_0x485bbd(0x3f6)]=this[_0x485bbd(0x34c)]();}if(_0x1713de&&_0x566331){if(_0x378f65===t[_0x485bbd(0x347)][_0x485bbd(0x24a)]){let {pointGroup:_0x17317d}=new f['NodePositionConvertToRectRange'](_0x3b6228,_0x32ec18)[_0x485bbd(0x49f)](_0x1713de,_0x566331)??{};if(_0x17317d==null||_0x17317d['length']===0x0)continue;this[_0x485bbd(0x3e8)](_0x1e8451,_0x17317d,_0x297d8b,_0x5294ae);}else{if(!_0x4b8873&&_0xbd580c[_0x485bbd(0x2f2)]){let {borderBoxPointGroup:_0x46e45b}=_0xee3a40[_0x485bbd(0x49f)](_0x1713de,_0x566331);if(_0x46e45b[_0x485bbd(0x32c)]===0x0)continue;this['_drawTextRange'](_0x1e8451,_0x46e45b,_0x297d8b,_0x5294ae);}}}}}[_0x3e3f50(0x3ab)](_0x349ab8,_0x2aba02,_0x37fe9c,_0x3b9bec,_0xe12ec8){const _0x55da7c=_0x3e3f50;let {left:_0x3f0d61,top:_0x30f060,height:_0x3bca4d}=this[_0x55da7c(0x254)](_0x2aba02),_0x27da62=1.5/this[_0x55da7c(0x2fc)](),_0x11cb82=new p['Rect'](M+(0x0,t[_0x55da7c(0x437)])(0x6),{'left':_0x3f0d61+_0x37fe9c-_0x27da62,'top':_0x30f060+_0x3b9bec,'height':_0x3bca4d,'width':1.5,'fill':_0x349ab8||(0x0,p[_0x55da7c(0x21f)])(t[_0x55da7c(0x2c2)]['black'],0x0),'strokeWidth':_0x27da62,'stroke':_0x55da7c(0x47d),'evented':!0x0});this[_0x55da7c(0x1b6)]=_0x11cb82,this[_0x55da7c(0x392)][_0x55da7c(0x274)](_0x11cb82,f[_0x55da7c(0x3dd)]);let _0x2c1516=new p['Rect'](M+(0x0,t['generateRandomId'])(0x6),{'left':_0x3f0d61+_0x37fe9c-_0x27da62,'top':_0x30f060+_0x3b9bec-0x2,'height':0x4,'width':0x4,'fill':_0x349ab8||(0x0,p[_0x55da7c(0x21f)])(t['COLORS'][_0x55da7c(0x1b7)],0x0),'strokeWidth':0x0,'stroke':_0x349ab8||(0x0,p['getColor'])(t[_0x55da7c(0x2c2)]['black'],0x0),'evented':!0x1});this[_0x55da7c(0x28f)]=_0x2c1516,this[_0x55da7c(0x392)][_0x55da7c(0x274)](_0x2c1516,f[_0x55da7c(0x3dd)]);let _0x529b54=new me(M+(0x0,t[_0x55da7c(0x437)])(0x6),{'left':_0x3f0d61+_0x37fe9c-_0x27da62,'top':_0x30f060+_0x3b9bec-0x14,'text':_0xe12ec8,'color':_0x349ab8});this[_0x55da7c(0x351)]=_0x529b54,this[_0x55da7c(0x392)][_0x55da7c(0x274)](_0x529b54,f[_0x55da7c(0x3dd)]),this[_0x55da7c(0x2a8)]=!0x1;}[_0x3e3f50(0x34c)](){const _0x56d5a6=_0x3e3f50;let _0x55f9ef=this['_anchor'][_0x56d5a6(0x3c0)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0xfd6e40=this[_0x56d5a6(0x1b6)][_0x56d5a6(0x39a)][_0x56d5a6(0x216)](()=>{const _0x556543=_0x56d5a6;this[_0x556543(0x45b)]&&clearTimeout(this[_0x556543(0x45b)]),this['_hideTimer']=setTimeout(()=>{const _0x5981d8=_0x556543;this[_0x5981d8(0x2a8)]=!0x1;},0x7d0);});return()=>{_0x55f9ef['unsubscribe'](),_0xfd6e40['unsubscribe']();};}[_0x3e3f50(0x384)](_0x3b1e70,_0x3428fa,_0x3aaff6,_0x1e0e57){const _0x4aafe5=_0x3e3f50;let _0x3502e3=0.2,_0x3f22b2=new t[(_0x4aafe5(0x451))](_0x3b1e70)[_0x4aafe5(0x205)](_0x3502e3)[_0x4aafe5(0x370)](),_0x12067b=new p[(_0x4aafe5(0x2a2))](_0x4aafe5(0x234)+(0x0,t[_0x4aafe5(0x437)])(0x6),{'pointsGroup':_0x3428fa,'fill':_0x3f22b2||(0x0,p['getColor'])(t[_0x4aafe5(0x2c2)][_0x4aafe5(0x1b7)],_0x3502e3),'left':_0x3aaff6,'top':_0x1e0e57,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4aafe5(0x472)][_0x4aafe5(0x439)](_0x12067b),this[_0x4aafe5(0x392)][_0x4aafe5(0x274)](_0x12067b,f['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x3cddbe,_0x4331f5,_0x4319a5,_0x260385){const _0x5c7ebe=_0x3e3f50;let _0x2785f5=0.2,_0x465ad5=new t[(_0x5c7ebe(0x451))](_0x3cddbe)[_0x5c7ebe(0x205)](_0x2785f5)[_0x5c7ebe(0x370)](),_0xff4a2f=new p[(_0x5c7ebe(0x2a2))]('collab-rect-range-'+(0x0,t[_0x5c7ebe(0x437)])(0x6),{'pointsGroup':_0x4331f5,'fill':_0x465ad5||(0x0,p['getColor'])(t[_0x5c7ebe(0x2c2)][_0x5c7ebe(0x1b7)],_0x2785f5),'left':_0x4319a5,'top':_0x260385,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5c7ebe(0x472)]['push'](_0xff4a2f),this['_scene'][_0x5c7ebe(0x274)](_0xff4a2f,f[_0x5c7ebe(0x3dd)]);}['_getAnchorBounding'](_0x1a1dda){let _0x417929=_0x1a1dda[0x0],_0x4e1cdc=_0x417929[0x0],_0x344f80=_0x417929[0x2],{x:_0x53b781,y:_0xbb44a8}=_0x4e1cdc,{x:_0x1d077f,y:_0x3fddb3}=_0x344f80;return{'left':_0x53b781,'top':_0xbb44a8,'width':_0x1d077f-_0x53b781,'height':_0x3fddb3-_0xbb44a8};}['_getScale'](){const _0x4587cb=_0x3e3f50;let {scaleX:_0x2a8f8e,scaleY:_0xc94a25}=this['_scene'][_0x4587cb(0x2aa)]();return Math[_0x4587cb(0x1f0)](_0x2a8f8e,_0xc94a25);}};function _0x1e1d(_0x3116de,_0x1255b3){_0x3116de=_0x3116de-0x1ac;const _0x4a62ec=_0x4a62();let _0x1e1d45=_0x4a62ec[_0x3116de];return _0x1e1d45;}function ge(_0x57bd8b,_0x26d5e8){const _0x5ae148=_0x3e3f50;if(!_0x26d5e8)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x57bd8b||_0x57bd8b[_0x5ae148(0x38d)]!==_0x26d5e8[_0x5ae148(0x38d)]||(_0x57bd8b[_0x5ae148(0x38d)]===p['DocumentSkeletonPageType'][_0x5ae148(0x258)]||_0x57bd8b[_0x5ae148(0x38d)]===p[_0x5ae148(0x495)][_0x5ae148(0x1b9)])&&_0x57bd8b[_0x5ae148(0x36c)]!==_0x26d5e8['segmentPage'])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x5e2ed0=(0x0,p['getDocumentSkeletonColumnPagePathInfo'])(_0x57bd8b),_0x5357c2=(0x0,p['getDocumentSkeletonColumnPagePathInfo'])(_0x26d5e8);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x5e2ed0==null||_0x5357c2==null?_0x5e2ed0==null&&_0x5357c2==null:_0x5e2ed0[_0x5ae148(0x21e)]===_0x5357c2[_0x5ae148(0x21e)]&&_0x5e2ed0[_0x5ae148(0x3f8)]===_0x5357c2[_0x5ae148(0x3f8)]&&_0x5e2ed0[_0x5ae148(0x30e)]===_0x5357c2[_0x5ae148(0x30e)]};}let N=class extends t[_0x3e3f50(0x368)]{constructor(_0x2c8696,_0x10736f,_0x302158,_0x130d00,_0x260aca){const _0x4f1003=_0x3e3f50;super(),this[_0x4f1003(0x46f)]=_0x2c8696,this[_0x4f1003(0x323)]=_0x10736f,this[_0x4f1003(0x326)]=_0x302158,this[_0x4f1003(0x42f)]=_0x130d00,this[_0x4f1003(0x20c)]=_0x260aca,b(this,_0x4f1003(0x1d6),[]),b(this,'_cursors',[]),this[_0x4f1003(0x456)]();}[_0x3e3f50(0x456)](){const _0x1dcd1d=_0x3e3f50;let _0x2e41a7=this[_0x1dcd1d(0x46f)][_0x1dcd1d(0x283)],_0x4822cf=this[_0x1dcd1d(0x323)];this[_0x1dcd1d(0x385)]((0x0,r[_0x1dcd1d(0x2ec)])([this[_0x1dcd1d(0x326)][_0x1dcd1d(0x46e)](_0x2e41a7),this[_0x1dcd1d(0x20c)]['currentTheme$']])[_0x1dcd1d(0x25f)]((0x0,i[_0x1dcd1d(0x3a4)])(([_0x2480c9,_0x3d9a1d])=>({'skeleton':_0x4822cf[_0x1dcd1d(0x247)](),'cursors':[..._0x2480c9['values']()][_0x1dcd1d(0x29f)](_0x1850a1=>({..._0x1850a1,'color':this[_0x1dcd1d(0x20c)][_0x1dcd1d(0x24c)](_0x1850a1[_0x1dcd1d(0x2e4)])}))})))['subscribe'](_0x5d76c3=>{const _0x817bb2=_0x1dcd1d;if(this[_0x817bb2(0x317)](),_0x5d76c3){let {skeleton:_0x3521ec,cursors:_0xea9be2}=_0x5d76c3;this['_updateCollabCursors'](_0x3521ec,_0xea9be2);}})),this[_0x1dcd1d(0x21b)](),this['_initCommandExecutedListener']();}[_0x3e3f50(0x286)](_0x378156,_0x46cc37){const _0x253f87=_0x3e3f50;let {scene:_0x4845a2,mainComponent:_0x3bcfa0}=this[_0x253f87(0x46f)],_0xa70905=_0x46cc37['map'](_0x4574dd=>new he(_0x4574dd,_0x4845a2,_0x378156,_0x3bcfa0));this[_0x253f87(0x1d6)]=_0xa70905,this[_0x253f87(0x308)]=_0x46cc37;}[_0x3e3f50(0x481)](){const _0x262463=_0x3e3f50;this[_0x262463(0x317)]();let {scene:_0x34975d,mainComponent:_0x3bdcbf}=this['_context'],_0x3fc742=this[_0x262463(0x323)][_0x262463(0x247)](),_0x1c90c1=this['_cursors'][_0x262463(0x3a4)](_0x1adac2=>new he(_0x1adac2,_0x34975d,_0x3fc742,_0x3bdcbf));this[_0x262463(0x1d6)]=_0x1c90c1;}[_0x3e3f50(0x317)](){const _0x443886=_0x3e3f50;this['_cursorShapes'][_0x443886(0x41d)](_0xce9d01=>_0xce9d01['dispose']()),this[_0x443886(0x1d6)]=[];}[_0x3e3f50(0x1e9)](){const _0x501474=_0x3e3f50;let _0x375b3d=[f[_0x501474(0x438)]['id']];this[_0x501474(0x385)](this[_0x501474(0x42f)][_0x501474(0x38c)](_0x361e81=>{const _0x4bfb6e=_0x501474;_0x375b3d['includes'](_0x361e81['id'])&&_0x361e81[_0x4bfb6e(0x241)][_0x4bfb6e(0x283)]===this[_0x4bfb6e(0x46f)]['unitId']&&this[_0x4bfb6e(0x481)]();}));}['_initResize'](){const _0x3dbfe6=_0x3e3f50;this[_0x3dbfe6(0x385)]((0x0,t[_0x3dbfe6(0x2bb)])(this[_0x3dbfe6(0x46f)][_0x3dbfe6(0x3e2)]['onTransformChange$'])['pipe']((0x0,i['filter'])(_0x1ad77e=>_0x1ad77e['type']===p[_0x3dbfe6(0x3c4)][_0x3dbfe6(0x3cb)]),(0x0,i[_0x3dbfe6(0x40b)])(0x10))[_0x3dbfe6(0x380)](()=>{const _0x16eee3=_0x3dbfe6;this[_0x16eee3(0x481)]();}));}};N=S([x(0x1,(0x0,t[_0x3e3f50(0x260)])(d[_0x3e3f50(0x45c)])),x(0x2,(0x0,t[_0x3e3f50(0x260)])(j)),x(0x3,t['ICommandService']),x(0x4,(0x0,t[_0x3e3f50(0x260)])(t['ThemeService']))],N);var _e=class extends p[_0x3e3f50(0x23c)]{constructor(_0x4c1a52,_0x4735f8){const _0x46059e=_0x3e3f50;super(_0x4c1a52,_0x4735f8),b(this,'_color',void 0x0),b(this,_0x46059e(0x2cd),!0x1),b(this,_0x46059e(0x32d),void 0x0),b(this,_0x46059e(0x2a7),''),b(this,_0x46059e(0x1ea),_0x46059e(0x3b0)),b(this,_0x46059e(0x46d),void 0x0),b(this,_0x46059e(0x2b3),void 0x0),b(this,_0x46059e(0x390),void 0x0),b(this,_0x46059e(0x441),0x4),b(this,_0x46059e(0x275),void 0x0),b(this,_0x46059e(0x332),void 0x0),b(this,_0x46059e(0x337),!0x0),b(this,_0x46059e(0x404),0x0),b(this,_0x46059e(0x48a),_0x46059e(0x31e)),_0x4735f8&&(this[_0x46059e(0x364)](_0x4735f8),_0x4735f8[_0x46059e(0x4a7)]&&(_0x4735f8[_0x46059e(0x43e)]??this['_highlightSecond'])&&this[_0x46059e(0x455)](_0x4735f8[_0x46059e(0x43e)]??this[_0x46059e(0x441)])),this['onPointerEnter$'][_0x46059e(0x216)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x46059e(0x39a)][_0x46059e(0x216)](()=>this[_0x46059e(0x364)]({'hovered':!0x1}));}[_0x3e3f50(0x417)](_0x122980){this['_offsetY']=_0x122980;}['setShapeProps'](_0xa1bf8f){const _0x49cfeb=_0x3e3f50;this[_0x49cfeb(0x3b2)]=_0xa1bf8f[_0x49cfeb(0x2e4)]??this['_color'],this[_0x49cfeb(0x2cd)]=_0xa1bf8f[_0x49cfeb(0x2e9)]??this[_0x49cfeb(0x2cd)],this[_0x49cfeb(0x32d)]=_0xa1bf8f[_0x49cfeb(0x487)]??this[_0x49cfeb(0x32d)],this['_name']=_0xa1bf8f['name']??this[_0x49cfeb(0x2a7)],this[_0x49cfeb(0x1ea)]=_0xa1bf8f[_0x49cfeb(0x3a6)]??this[_0x49cfeb(0x1ea)],this[_0x49cfeb(0x46d)]=_0xa1bf8f[_0x49cfeb(0x217)]??this[_0x49cfeb(0x46d)],this[_0x49cfeb(0x2b3)]=_0xa1bf8f[_0x49cfeb(0x2f1)]??this[_0x49cfeb(0x2b3)],this[_0x49cfeb(0x48a)]=_0xa1bf8f[_0x49cfeb(0x2dc)]??this[_0x49cfeb(0x48a)],_0xa1bf8f['highlightSecond']!==void 0x0&&(this[_0x49cfeb(0x441)]=_0xa1bf8f[_0x49cfeb(0x43e)]),_0xa1bf8f[_0x49cfeb(0x4a7)]!==void 0x0&&(this['_highlight']=_0xa1bf8f[_0x49cfeb(0x4a7)]),_0xa1bf8f[_0x49cfeb(0x1b3)]!==void 0x0&&(this[_0x49cfeb(0x404)]=_0xa1bf8f[_0x49cfeb(0x1b3)]),this[_0x49cfeb(0x1d0)]({'width':_0xa1bf8f['width'],'height':_0xa1bf8f['height']});}[_0x3e3f50(0x212)](_0x3b4354){const _0x392f7b=_0x3e3f50;let {row:_0x19c5ff,column:_0x2b5c8e}=_0x3b4354;if(_0x19c5ff>=this[_0x392f7b(0x32d)][_0x392f7b(0x3cc)]&&_0x19c5ff<=this[_0x392f7b(0x32d)][_0x392f7b(0x3e3)]&&_0x2b5c8e>=this[_0x392f7b(0x32d)][_0x392f7b(0x303)]&&_0x2b5c8e<=this[_0x392f7b(0x32d)]['endColumn']){this[_0x392f7b(0x364)]({'hovered':!0x0});return;}this[_0x392f7b(0x364)]({'hovered':!0x1});}[_0x3e3f50(0x455)](_0x60ca87){const _0x17b4de=_0x3e3f50;this[_0x17b4de(0x3f9)](),this['_isBlinkVisible']=!0x0,this[_0x17b4de(0x332)]=window[_0x17b4de(0x449)](()=>{this['_isBlinkVisible']=!this['_isBlinkVisible'],this['makeDirty'](!0x0);},0x1f4),this[_0x17b4de(0x275)]=window[_0x17b4de(0x24f)](()=>{const _0x2e9c9d=_0x17b4de;this['_stopBlinking'](),this[_0x2e9c9d(0x337)]=!0x0,this[_0x2e9c9d(0x244)](!0x0);},_0x60ca87*0x3e8);}[_0x3e3f50(0x3f9)](){const _0x4fbf26=_0x3e3f50;this[_0x4fbf26(0x332)]&&=(window['clearInterval'](this[_0x4fbf26(0x332)]),void 0x0),this[_0x4fbf26(0x275)]&&=(window[_0x4fbf26(0x387)](this['_blinkTimer']),void 0x0);}[_0x3e3f50(0x279)](_0x22a492){return!0x1;}['dispose'](){const _0x29faad=_0x3e3f50;this[_0x29faad(0x3f9)](),super[_0x29faad(0x3de)]();}['_draw'](_0x4b3fe0){const _0x3afe92=_0x3e3f50;let _0x317117=this[_0x3afe92(0x3b2)],_0x3e3e3e=this[_0x3afe92(0x46d)];if(this[_0x3afe92(0x390)]&&!this[_0x3afe92(0x337)]&&(_0x317117=this[_0x3afe92(0x361)](this[_0x3afe92(0x3b2)]),_0x3e3e3e=this[_0x3afe92(0x46d)]?this[_0x3afe92(0x361)](this[_0x3afe92(0x46d)]):void 0x0),p[_0x3afe92(0x297)]['drawWith'](_0x4b3fe0,{'width':this[_0x3afe92(0x2c3)],'height':this[_0x3afe92(0x2c0)],'strokeWidth':this[_0x3afe92(0x3bf)]||1.5,'stroke':_0x317117,'evented':!0x1,'fill':_0x3e3e3e}),this['_hovered']||this['_showText']){_0x4b3fe0[_0x3afe92(0x354)]();let _0x1715a7=this[_0x3afe92(0x48a)]===_0x3afe92(0x2fb)?-fe(_0x4b3fe0,this['_name']):this[_0x3afe92(0x2c3)];_0x4b3fe0[_0x3afe92(0x2ba)](0x1,0x0,0x0,0x1,_0x1715a7,(this['_labelPosition']===_0x3afe92(0x407)?0x0:-0x14)+(this['_offsetY']??0x0)),me[_0x3afe92(0x396)](_0x4b3fe0,{'text':this['_name'],'color':_0x317117}),_0x4b3fe0[_0x3afe92(0x3ad)]();}}[_0x3e3f50(0x361)](_0x306761){const _0x47064c=_0x3e3f50;return _0x306761['startsWith']('#')?_0x47064c(0x25a)+Number[_0x47064c(0x289)](_0x306761[_0x47064c(0x2c1)](0x1,0x3),0x10)+',\x20'+Number[_0x47064c(0x289)](_0x306761[_0x47064c(0x2c1)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x306761[_0x47064c(0x2c1)](0x5,0x7),0x10)+_0x47064c(0x3f4):_0x306761[_0x47064c(0x48d)]('rgba')?_0x306761[_0x47064c(0x372)](/[\d.]+\)$/g,_0x47064c(0x38f)):_0x306761['startsWith'](_0x47064c(0x249))?_0x306761[_0x47064c(0x372)](_0x47064c(0x249),'rgba')[_0x47064c(0x372)](')',_0x47064c(0x3f4)):_0x306761;}};let P=class extends t[_0x3e3f50(0x368)]{constructor(_0x5ea8db,_0x1e8b2f,_0x15a25d,_0x31dd93){const _0x2e0744=_0x3e3f50;super(),this[_0x2e0744(0x46f)]=_0x5ea8db,this[_0x2e0744(0x447)]=_0x1e8b2f,this[_0x2e0744(0x326)]=_0x15a25d,this[_0x2e0744(0x20c)]=_0x31dd93,b(this,'_cursors',new Set()),b(this,'_lastPointer',null),b(this,_0x2e0744(0x3b3),null),this[_0x2e0744(0x456)]();}['_init'](){const _0x2a6ee7=_0x3e3f50;this[_0x2a6ee7(0x447)][_0x2a6ee7(0x256)]['pipe']((0x0,i['takeUntil'])(this[_0x2a6ee7(0x322)]),(0x0,i[_0x2a6ee7(0x292)])(_0x61c987=>{const _0xff82cb=_0x2a6ee7;if(_0x61c987){let _0x4f3f59=_0x61c987['sheetId'];return(0x0,r['combineLatest'])(this['_collabCursorController']['getCollabCursors$'](this[_0xff82cb(0x46f)]['unitId']),this['_themeService']['currentTheme$'])[_0xff82cb(0x25f)]((0x0,i['map'])(([_0x45defc,_0x56b907])=>{const _0x58391c=_0xff82cb;let _0xd6a420=new Map();return _0x45defc[_0x58391c(0x41d)]((_0xce2b23,_0x561f6b)=>{const _0xf52910=_0x58391c;if(_0xce2b23[_0xf52910(0x335)]===_0x4f3f59){let _0x2de5a4={..._0xce2b23};_0x2de5a4[_0xf52910(0x2e4)]=this[_0xf52910(0x20c)]['getColorFromTheme'](_0xce2b23[_0xf52910(0x2e4)]),_0xd6a420[_0xf52910(0x2e3)](_0x561f6b,_0x2de5a4);}}),{'skeleton':_0x61c987,'cursors':_0xd6a420};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x2a6ee7(0x380)](({skeleton:_0x36e3c8,cursors:_0x24c66a})=>{this['_removeCollabCursors'](),_0x36e3c8&&this['_updateCollabCursors'](_0x36e3c8,_0x24c66a);}),this[_0x2a6ee7(0x385)](this['_sheetSkeletonManagerService'][_0x2a6ee7(0x256)][_0x2a6ee7(0x25f)]((0x0,i[_0x2a6ee7(0x2bf)])(this[_0x2a6ee7(0x322)]))[_0x2a6ee7(0x380)](_0x4c742b=>{const _0x370835=_0x2a6ee7;var _0xe1715f;if(_0x4c742b==null)return;(_0xe1715f=this[_0x370835(0x3b3)])==null||_0xe1715f[_0x370835(0x40c)](),this[_0x370835(0x3b3)]=null;let {skeleton:_0x3ac632}=_0x4c742b,{scene:_0xd0464a}=this[_0x370835(0x46f)];this['_pointerMoveDisposable']=_0xd0464a['onPointerMove$']['subscribeEvent']((0x0,t[_0x370835(0x446)])(_0x4ac62d=>{const _0x445733=_0x370835;var _0x5dde58,_0x4e944b;let {offsetX:_0x278a03,offsetY:_0x3e2dd4}=_0x4ac62d,{x:_0x345ffd,y:_0x2040ea}=_0xd0464a[_0x445733(0x307)](p[_0x445733(0x494)]['FromArray']([_0x278a03,_0x3e2dd4])),{scaleX:_0x1aa84d,scaleY:_0x196a5d}=_0xd0464a[_0x445733(0x2aa)](),_0xa1ee72=_0xd0464a['getViewport'](p['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x3ca2f9=_0xd0464a[_0x445733(0x35d)](p['Vector2'][_0x445733(0x48f)]([_0x345ffd,_0x2040ea]),_0xa1ee72),_0x263efe=_0x3ac632[_0x445733(0x330)](_0x278a03,_0x3e2dd4,_0x1aa84d,_0x196a5d,_0x3ca2f9);(((_0x5dde58=this[_0x445733(0x3a3)])==null?void 0x0:_0x5dde58[_0x445733(0x227)])!==_0x263efe['column']||((_0x4e944b=this[_0x445733(0x3a3)])==null?void 0x0:_0x4e944b[_0x445733(0x3be)])!==_0x263efe['row'])&&this[_0x445733(0x308)][_0x445733(0x41d)](_0xcbd705=>{const _0x289ea9=_0x445733;_0xcbd705[_0x289ea9(0x212)](_0x263efe);});},0x64));})),this[_0x2a6ee7(0x385)]((0x0,t[_0x2a6ee7(0x394)])(()=>{const _0x4e3f81=_0x2a6ee7;var _0x52c735;(_0x52c735=this[_0x4e3f81(0x3b3)])==null||_0x52c735['unsubscribe'](),this[_0x4e3f81(0x3b3)]=null;}));}['_updateCollabCursors'](_0x222ab6,_0x1cb008){const _0x4ed4da=_0x3e3f50;let _0x34d103=this[_0x4ed4da(0x447)][_0x4ed4da(0x37d)]();if(!_0x34d103)return;let _0x5b37c0=this['_getSheetObject']();if(!_0x5b37c0)return;this[_0x4ed4da(0x308)]['forEach'](_0x3cc602=>{const _0x1b2273=_0x4ed4da;_0x3cc602[_0x1b2273(0x244)]();});let {scene:_0x3e6cf9}=_0x5b37c0,_0x15e828=ve(Array['from'](_0x1cb008[_0x4ed4da(0x1f5)]()))[_0x4ed4da(0x3a4)](_0xb8a120=>{const _0x4012ad=_0x4ed4da;let {color:_0x3bdff5,range:_0x530cd8,name:_0x2dab90,selection:_0x513535,sheetID:_0x54e57d}=_0xb8a120,{startColumn:_0x5a9d29,startRow:_0x260c17,endColumn:_0x1793cb,endRow:_0x3f6551}=_0x530cd8,_0xec05d1=(0x0,_[_0x4012ad(0x44e)])(_0x260c17,_0x5a9d29,_0x3e6cf9,_0x34d103),_0x2c64e2=(0x0,_[_0x4012ad(0x44e)])(_0x3f6551,_0x1793cb,_0x3e6cf9,_0x34d103),{columnHeaderHeightAndMarginTop:_0x14e9ca}=_0x34d103,{startX:_0x240c0c,startY:_0x8622ee}=_0xec05d1,{endX:_0x38b2df,endY:_0x37702b}=_0x2c64e2,_0x555e3b=_0x38b2df-_0x240c0c,_0x1c7d21=_0x37702b-_0x8622ee;return new _e(_0x2dab90,{'labelPosition':_0x8622ee-_0x14e9ca>=0x14?_0x4012ad(0x3b0):_0x4012ad(0x407),'sheetID':_0x54e57d,'range':_0x530cd8,'color':_0x3bdff5,'name':_0x2dab90,'selection':_0x513535,'left':_0x240c0c,'top':_0x8622ee,'width':_0x555e3b,'height':_0x1c7d21,'evented':!0x1,'zIndex':0x1389});});_0x3e6cf9[_0x4ed4da(0x20e)](_0x15e828,0x1),this[_0x4ed4da(0x308)]=new Set(_0x15e828);}[_0x3e3f50(0x317)](){const _0x109d62=_0x3e3f50;var _0x53e10e;(_0x53e10e=this[_0x109d62(0x308)])==null||_0x53e10e[_0x109d62(0x41d)](_0x4b7830=>_0x4b7830['dispose']());}[_0x3e3f50(0x3f2)](){const _0x5ab373=_0x3e3f50;return(0x0,_['getSheetObject'])(this[_0x5ab373(0x46f)]['unit'],this[_0x5ab373(0x46f)]);}};P=S([x(0x1,(0x0,t[_0x3e3f50(0x260)])(_[_0x3e3f50(0x327)])),x(0x2,(0x0,t[_0x3e3f50(0x260)])(j)),x(0x3,(0x0,t[_0x3e3f50(0x260)])(t[_0x3e3f50(0x333)]))],P);function ve(_0x18da6d){const _0x418c1a=_0x3e3f50;let _0x4f2904=new Map();return _0x18da6d[_0x418c1a(0x41d)](_0x577720=>{const _0x1f684d=_0x418c1a;if(_0x4f2904['has'](_0x577720[_0x1f684d(0x490)])){let _0x32364c=_0x4f2904[_0x1f684d(0x341)](_0x577720['selection']);_0x32364c[_0x1f684d(0x2a0)]+=',\x20'+_0x577720['name'];}else _0x4f2904[_0x1f684d(0x2e3)](_0x577720[_0x1f684d(0x490)],_0x577720);}),Array[_0x418c1a(0x486)](_0x4f2904[_0x418c1a(0x1f5)]());}function F(_0x58e5ac){const _0x6fe4cd=_0x3e3f50;return typeof _0x58e5ac==_0x6fe4cd(0x2f6)&&!!_0x58e5ac;}function ye(_0x50d921){const _0x31a56b=_0x3e3f50;return _0x50d921[_0x31a56b(0x3fc)]===l['CollaborationEvent'][_0x31a56b(0x374)]&&'data'in _0x50d921&&F(_0x50d921['data'])&&typeof _0x50d921[_0x31a56b(0x1fc)][_0x31a56b(0x204)]==_0x31a56b(0x2cb)&&typeof _0x50d921[_0x31a56b(0x1fc)][_0x31a56b(0x490)]==_0x31a56b(0x2cb);}function be(_0x237d3f){const _0xbdea31=_0x3e3f50;return _0x237d3f[_0xbdea31(0x3fc)]===l['CollaborationEvent'][_0xbdea31(0x4aa)]&&'data'in _0x237d3f&&F(_0x237d3f[_0xbdea31(0x1fc)])&&typeof _0x237d3f[_0xbdea31(0x1fc)]['memberID']==_0xbdea31(0x2cb);}function xe(_0x36435b,_0x11fa3f){const _0x5e10f1=_0x3e3f50;let _0x278dfd;try{_0x278dfd=JSON[_0x5e10f1(0x1f3)](_0x36435b);}catch{return null;}if(!F(_0x278dfd)||typeof _0x278dfd['kind']!=_0x5e10f1(0x2cb)||typeof _0x278dfd['unitId']!=_0x5e10f1(0x2cb)||typeof _0x278dfd['subUnitId']!=_0x5e10f1(0x2cb))return null;let _0x412b82=typeof _0x278dfd[_0x5e10f1(0x26d)]=='number'?_0x278dfd[_0x5e10f1(0x26d)]:_0x11fa3f;if(_0x412b82==null)return null;let _0x172c85=F(_0x278dfd['pointer'])&&typeof _0x278dfd[_0x5e10f1(0x1ad)]['x']=='number'&&Number['isFinite'](_0x278dfd[_0x5e10f1(0x1ad)]['x'])&&typeof _0x278dfd[_0x5e10f1(0x1ad)]['y']==_0x5e10f1(0x40a)&&Number[_0x5e10f1(0x41b)](_0x278dfd['pointer']['y'])?{'x':_0x278dfd[_0x5e10f1(0x1ad)]['x'],'y':_0x278dfd[_0x5e10f1(0x1ad)]['y']}:null;return{'kind':_0x278dfd['kind'],'unitType':_0x412b82,'unitId':_0x278dfd['unitId'],'subUnitId':_0x278dfd[_0x5e10f1(0x491)],'selectedIds':Array['isArray'](_0x278dfd[_0x5e10f1(0x29c)])?_0x278dfd[_0x5e10f1(0x29c)]['filter'](_0x3ae58e=>typeof _0x3ae58e=='string'):[],'focusedId':typeof _0x278dfd[_0x5e10f1(0x357)]=='string'?_0x278dfd[_0x5e10f1(0x357)]:null,'pointer':_0x172c85};}function Se(_0x54c25c,_0x512612,_0x5355f0){const _0x1ce2fd=_0x3e3f50;return{'kind':_0x512612,'unitType':_0x54c25c,'unitId':_0x5355f0[_0x1ce2fd(0x283)],'subUnitId':_0x5355f0['subUnitId'],'selectedIds':Array[_0x1ce2fd(0x486)](_0x5355f0[_0x1ce2fd(0x29c)]),'focusedId':_0x5355f0[_0x1ce2fd(0x357)],'pointer':_0x5355f0[_0x1ce2fd(0x1ad)]?{..._0x5355f0[_0x1ce2fd(0x1ad)]}:null};}let I=class extends t['RxDisposable']{constructor(_0xec7741,_0x5a787d,_0x125488,_0x547130,_0x5acf57,_0x21923c){const _0x320613=_0x3e3f50;super(),this[_0x320613(0x283)]=_0xec7741,this[_0x320613(0x484)]=_0x5a787d,this['_adapter']=_0x125488,this[_0x320613(0x416)]=_0x547130,this[_0x320613(0x299)]=_0x5acf57,this[_0x320613(0x42f)]=_0x21923c,b(this,_0x320613(0x467),!0x1),b(this,'_initialized',!0x1);}get[_0x3e3f50(0x26d)](){const _0x504418=_0x3e3f50;return this[_0x504418(0x213)][_0x504418(0x26d)];}['dispose'](){const _0x51b70b=_0x3e3f50;this[_0x51b70b(0x1ef)](),super[_0x51b70b(0x3de)]();}['init'](){const _0x36474e=_0x3e3f50;this[_0x36474e(0x325)]||(this[_0x36474e(0x325)]=!0x0,this[_0x36474e(0x484)]['sessionStatus$'][_0x36474e(0x25f)]((0x0,r['takeUntil'])(this[_0x36474e(0x322)]))[_0x36474e(0x380)](_0x5c6e9f=>{const _0x390196=_0x36474e;if(_0x5c6e9f===e[_0x390196(0x28d)][_0x390196(0x334)]){this['_online']=!0x0;let _0xac0b2f=this['_adapter']['getLocalPresence'](this[_0x390196(0x283)]);_0xac0b2f&&this[_0x390196(0x329)](_0xac0b2f);return;}this['_online']=!0x1,this[_0x390196(0x1ef)]();}),this[_0x36474e(0x484)][_0x36474e(0x473)][_0x36474e(0x25f)]((0x0,r['takeUntil'])(this[_0x36474e(0x322)]))['subscribe'](_0x280e7a=>{const _0x2f18e7=_0x36474e;ye(_0x280e7a)?this[_0x2f18e7(0x474)](_0x280e7a):be(_0x280e7a)&&this[_0x2f18e7(0x479)](_0x280e7a[_0x2f18e7(0x1fc)][_0x2f18e7(0x204)]);}),this['_adapter'][_0x36474e(0x454)][_0x36474e(0x25f)]((0x0,r[_0x36474e(0x223)])(_0x124e99=>this[_0x36474e(0x467)]&&_0x124e99[_0x36474e(0x283)]===this['unitId']),(0x0,r['throttle'])(_0x1ed68c=>(0x0,r[_0x36474e(0x235)])(_0x1ed68c[_0x36474e(0x2e6)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r[_0x36474e(0x2bf)])(this['dispose$']))[_0x36474e(0x380)](_0x15647b=>this[_0x36474e(0x329)](_0x15647b)));}[_0x3e3f50(0x329)](_0x7fac25){const _0x1c99d1=_0x3e3f50;let _0x180438=this[_0x1c99d1(0x484)][_0x1c99d1(0x2ed)]();if(!_0x180438||!this['_online'])return;let _0x40bc3c={'eventID':l[_0x1c99d1(0x1de)][_0x1c99d1(0x374)],'data':{'unitID':this['unitId'],'memberID':_0x180438,'selection':JSON[_0x1c99d1(0x2ff)](Se(this[_0x1c99d1(0x26d)],this['_adapter'][_0x1c99d1(0x222)],_0x7fac25))}};this[_0x1c99d1(0x484)]['send'](_0x40bc3c,this['unitId'])['catch'](()=>void 0x0);}[_0x3e3f50(0x474)](_0x39aca6){const _0x2fd9d9=_0x3e3f50;let {memberID:_0x52673e,selection:_0x37a33a}=_0x39aca6[_0x2fd9d9(0x1fc)];if(_0x52673e===this[_0x2fd9d9(0x484)][_0x2fd9d9(0x2ed)]())return;let _0xad5ef1=xe(_0x37a33a,this['unitType']);if(!_0xad5ef1||_0xad5ef1[_0x2fd9d9(0x2e8)]!==this['_adapter'][_0x2fd9d9(0x222)]||_0xad5ef1[_0x2fd9d9(0x26d)]!==this[_0x2fd9d9(0x26d)]||_0xad5ef1[_0x2fd9d9(0x283)]!==this[_0x2fd9d9(0x283)])return;let _0x5df78b=this[_0x2fd9d9(0x299)]['getMember'](this[_0x2fd9d9(0x283)],_0x52673e),_0x4ecf37={'unitId':_0xad5ef1[_0x2fd9d9(0x283)],'subUnitId':_0xad5ef1[_0x2fd9d9(0x491)],'selectedIds':_0xad5ef1['selectedIds'],'focusedId':_0xad5ef1[_0x2fd9d9(0x357)],'pointer':_0xad5ef1['pointer'],'memberId':_0x52673e,'color':this[_0x2fd9d9(0x416)][_0x2fd9d9(0x34f)](_0x52673e),'name':(_0x5df78b==null?void 0x0:_0x5df78b['name'])??_0x52673e};this[_0x2fd9d9(0x42f)][_0x2fd9d9(0x214)](T['id'],{'unitType':this[_0x2fd9d9(0x26d)],'update':{'type':_0x2fd9d9(0x2e3),'state':_0x4ecf37}})[_0x2fd9d9(0x312)](()=>void 0x0);}[_0x3e3f50(0x479)](_0x5c1b01){const _0x48bac9=_0x3e3f50;this[_0x48bac9(0x42f)][_0x48bac9(0x214)](T['id'],{'unitType':this[_0x48bac9(0x26d)],'update':{'type':'remove','unitId':this[_0x48bac9(0x283)],'memberId':_0x5c1b01}})[_0x48bac9(0x312)](()=>void 0x0);}[_0x3e3f50(0x1ef)](){const _0x202b52=_0x3e3f50;this[_0x202b52(0x42f)][_0x202b52(0x214)](T['id'],{'unitType':this[_0x202b52(0x26d)],'update':{'type':'clear','unitId':this['unitId']}})[_0x202b52(0x312)](()=>void 0x0);}};I=S([x(0x3,(0x0,t[_0x3e3f50(0x260)])(D)),x(0x4,(0x0,t['Inject'])(e[_0x3e3f50(0x350)])),x(0x5,(0x0,t[_0x3e3f50(0x260)])(t[_0x3e3f50(0x22c)]))],I);let L=class extends t[_0x3e3f50(0x368)]{constructor(_0x289dc1,_0x71f9c8,_0x226b5e,_0x9c5ada){const _0x6071c7=_0x3e3f50;super(),this['_univerInstanceService']=_0x289dc1,this[_0x6071c7(0x21c)]=_0x71f9c8,this[_0x6071c7(0x440)]=_0x226b5e,this['_adapterRegistry']=_0x9c5ada,b(this,_0x6071c7(0x1ee),!0x1),b(this,_0x6071c7(0x418),new Map()),b(this,'_pendingEntities',new Map()),b(this,_0x6071c7(0x3a7),new Map()),this[_0x6071c7(0x456)]();}['dispose'](){const _0x2e9ad0=_0x3e3f50;this['_isDisposed']=!0x0,this[_0x2e9ad0(0x3a7)]['forEach'](_0x3fa87e=>_0x3fa87e[_0x2e9ad0(0x3de)]()),this[_0x2e9ad0(0x3a7)][_0x2e9ad0(0x2b8)](),this['_entities'][_0x2e9ad0(0x41d)](_0x913b0f=>_0x913b0f[_0x2e9ad0(0x3de)]()),this[_0x2e9ad0(0x418)]['clear'](),this['_pendingEntities']['clear'](),super[_0x2e9ad0(0x3de)]();}[_0x3e3f50(0x456)](){const _0x5ed933=_0x3e3f50;this['_adapterRegistry'][_0x5ed933(0x3c1)][_0x5ed933(0x25f)]((0x0,r['takeUntil'])(this[_0x5ed933(0x322)]))[_0x5ed933(0x380)](_0x5f3c41=>this[_0x5ed933(0x269)](_0x5f3c41));}[_0x3e3f50(0x269)](_0x3a30fd){const _0xbae2f1=_0x3e3f50;let _0x1534ae=new Set(_0x3a30fd[_0xbae2f1(0x3a4)](_0x24b233=>_0x24b233['unitType']));this['_adapterDisposables']['forEach']((_0x18bf92,_0x1766b0)=>{const _0x393cbd=_0xbae2f1;_0x1534ae[_0x393cbd(0x3e6)](_0x1766b0)||(_0x18bf92['dispose'](),this[_0x393cbd(0x3a7)]['delete'](_0x1766b0),this['_disposeEntitiesForType'](_0x1766b0));}),_0x3a30fd['forEach'](_0x330fcd=>{const _0xa2f653=_0xbae2f1;this[_0xa2f653(0x3a7)][_0xa2f653(0x3e6)](_0x330fcd[_0xa2f653(0x26d)])||this[_0xa2f653(0x328)](_0x330fcd);});}[_0x3e3f50(0x328)](_0x5b9402){const _0x5483fa=_0x3e3f50;let _0x334159=new t['DisposableCollection']();this[_0x5483fa(0x3a7)][_0x5483fa(0x2e3)](_0x5b9402[_0x5483fa(0x26d)],_0x334159),_0x334159[_0x5483fa(0x499)](_0x5b9402['activate']()),this[_0x5483fa(0x1e3)]['getAllUnitsForType'](_0x5b9402[_0x5483fa(0x26d)])['forEach'](_0x5f4c78=>this[_0x5483fa(0x3dc)](_0x5f4c78[_0x5483fa(0x34b)](),_0x5b9402)[_0x5483fa(0x312)](()=>void 0x0));let _0x2a07e4=this[_0x5483fa(0x1e3)]['getTypeOfUnitAdded$'](_0x5b9402['unitType'])[_0x5483fa(0x380)](({unit:_0x2b8889})=>this['_startEntity'](_0x2b8889[_0x5483fa(0x34b)](),_0x5b9402)[_0x5483fa(0x312)](()=>void 0x0));_0x334159[_0x5483fa(0x499)]((0x0,t['toDisposable'])(()=>_0x2a07e4[_0x5483fa(0x40c)]()));let _0x2cbaf0=this[_0x5483fa(0x1e3)]['getTypeOfUnitDisposed$'](_0x5b9402['unitType'])[_0x5483fa(0x380)](_0x124399=>this[_0x5483fa(0x2c8)](_0x124399['getUnitId']()));_0x334159['add']((0x0,t[_0x5483fa(0x394)])(()=>_0x2cbaf0['unsubscribe']()));}async[_0x3e3f50(0x3dc)](_0x198af2,_0x4f85fc){const _0x30c63a=_0x3e3f50;if(this['_entities'][_0x30c63a(0x3e6)](_0x198af2)||this['_pendingEntities'][_0x30c63a(0x3e6)](_0x198af2))return;let _0x3e1809={};this[_0x30c63a(0x3d7)][_0x30c63a(0x2e3)](_0x198af2,_0x3e1809);let _0xdff165=await this[_0x30c63a(0x440)][_0x30c63a(0x1c0)](_0x198af2)[_0x30c63a(0x312)](_0x310cab=>{const _0x435179=_0x30c63a;throw this[_0x435179(0x3d7)][_0x435179(0x341)](_0x198af2)===_0x3e1809&&this['_pendingEntities'][_0x435179(0x324)](_0x198af2),_0x310cab;});if(this[_0x30c63a(0x1ee)]||this[_0x30c63a(0x3d7)]['get'](_0x198af2)!==_0x3e1809||this['_adapterRegistry'][_0x30c63a(0x341)](_0x4f85fc[_0x30c63a(0x26d)])!==_0x4f85fc){this['_pendingEntities']['get'](_0x198af2)===_0x3e1809&&this[_0x30c63a(0x3d7)]['delete'](_0x198af2);return;}let _0x2eeea8=this[_0x30c63a(0x21c)]['createInstance'](I,_0x198af2,_0xdff165,_0x4f85fc);_0x2eeea8[_0x30c63a(0x29b)](),this[_0x30c63a(0x3d7)][_0x30c63a(0x324)](_0x198af2),this['_entities'][_0x30c63a(0x2e3)](_0x198af2,_0x2eeea8);}[_0x3e3f50(0x2c8)](_0x5ea125){const _0x2fe202=_0x3e3f50;this['_pendingEntities']['delete'](_0x5ea125);let _0x5163e0=this[_0x2fe202(0x418)][_0x2fe202(0x341)](_0x5ea125);_0x5163e0&&(_0x5163e0[_0x2fe202(0x3de)](),this[_0x2fe202(0x418)]['delete'](_0x5ea125));}[_0x3e3f50(0x34d)](_0x48ebbc){const _0x510ac1=_0x3e3f50;this['_univerInstanceService'][_0x510ac1(0x492)](_0x48ebbc)[_0x510ac1(0x41d)](_0x739ea7=>this[_0x510ac1(0x3d7)][_0x510ac1(0x324)](_0x739ea7[_0x510ac1(0x34b)]())),Array[_0x510ac1(0x486)](this[_0x510ac1(0x418)]['entries']())[_0x510ac1(0x41d)](([_0x10f583,_0x4f90b6])=>{const _0x2fb755=_0x510ac1;_0x4f90b6['unitType']===_0x48ebbc&&this[_0x2fb755(0x2c8)](_0x10f583);});}};L=S([x(0x0,t[_0x3e3f50(0x3da)]),x(0x1,(0x0,t[_0x3e3f50(0x260)])(t['Injector'])),x(0x2,(0x0,t['Inject'])(e['CollaborationSessionService'])),x(0x3,(0x0,t[_0x3e3f50(0x260)])(n[_0x3e3f50(0x373)]))],L);const R={'toast':'!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','actionButton':_0x3e3f50(0x493)};let z=class extends t[_0x3e3f50(0x37f)]{constructor(_0x4efbed,_0x35c2d4,_0x3e1efc,_0x88dfd7,_0x317ca1,_0xc3d88c){const _0x5cc53c=_0x3e3f50;super(),this[_0x5cc53c(0x3e0)]=_0x4efbed,this['_localCacheService']=_0x35c2d4,this[_0x5cc53c(0x28a)]=_0x3e1efc,this['_messageService']=_0x88dfd7,this[_0x5cc53c(0x408)]=_0x317ca1,this[_0x5cc53c(0x252)]=_0xc3d88c,b(this,'_conflictNotification',null),b(this,'_retryingConflictCacheUnitIDs',new Set()),this[_0x5cc53c(0x2ad)](),this[_0x5cc53c(0x3af)]();}['dispose'](){const _0x471431=_0x3e3f50;var _0x4d8920;(_0x4d8920=this[_0x471431(0x345)])==null||_0x4d8920[_0x471431(0x3de)](),this[_0x471431(0x345)]=null,super[_0x471431(0x3de)]();}[_0x3e3f50(0x2ad)](){const _0x56a6e6=_0x3e3f50;this[_0x56a6e6(0x385)](this[_0x56a6e6(0x3e0)][_0x56a6e6(0x259)](()=>{const _0x5128cc=_0x56a6e6;if(this['_localCacheService']['saveTaskMap'][_0x5128cc(0x2e2)])return this[_0x5128cc(0x252)]['t'](_0x5128cc(0x262));}));}['_initEvent'](){const _0x4b3f4b=_0x3e3f50;this['disposeWithMe'](this[_0x4b3f4b(0x28a)][_0x4b3f4b(0x473)][_0x4b3f4b(0x380)](_0x22ef31=>{const _0x2e17f1=_0x4b3f4b;_0x22ef31['id']===e[_0x2e17f1(0x3bc)][_0x2e17f1(0x403)]&&this[_0x2e17f1(0x2fa)]['show']({'type':a[_0x2e17f1(0x43b)][_0x2e17f1(0x271)],'content':this[_0x2e17f1(0x252)]['t'](_0x2e17f1(0x238))}),_0x22ef31['id']===e[_0x2e17f1(0x3bc)][_0x2e17f1(0x40d)]&&this[_0x2e17f1(0x2fa)][_0x2e17f1(0x442)]({'type':a[_0x2e17f1(0x43b)][_0x2e17f1(0x271)],'content':this[_0x2e17f1(0x252)]['t'](_0x2e17f1(0x45a))}),_0x22ef31['id']===e[_0x2e17f1(0x3bc)][_0x2e17f1(0x29a)]&&this[_0x2e17f1(0x2e0)]({'title':this[_0x2e17f1(0x252)]['t'](_0x2e17f1(0x284)),'content':this[_0x2e17f1(0x252)]['t'](_0x2e17f1(0x471)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this[_0x2e17f1(0x252)]['t'](_0x2e17f1(0x34a)),'onClick':_0x2b45c9=>{const _0x50b636=_0x2e17f1;_0x2b45c9[_0x50b636(0x421)](),window[_0x50b636(0x3b8)][_0x50b636(0x49d)]();}}}),_0x22ef31['id']===e['CollaborationUIEventId'][_0x2e17f1(0x415)]&&this['_showConflictProcessingNotification'](),_0x22ef31['id']===e['CollaborationUIEventId'][_0x2e17f1(0x340)]&&_0x22ef31['unitID']&&this[_0x2e17f1(0x321)](_0x22ef31[_0x2e17f1(0x2d0)]),_0x22ef31['id']===e[_0x2e17f1(0x3bc)][_0x2e17f1(0x20d)]&&this[_0x2e17f1(0x2e0)]({'title':this[_0x2e17f1(0x252)]['t'](_0x2e17f1(0x318)),'content':this[_0x2e17f1(0x252)]['t'](_0x2e17f1(0x202)),'type':_0x2e17f1(0x1f8),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this[_0x2e17f1(0x252)]['t']('collaboration-client-ui.snapshotLoading.refresh'),'onClick':_0x28fae2=>{const _0x1cf11e=_0x2e17f1;_0x28fae2[_0x1cf11e(0x421)](),window['location'][_0x1cf11e(0x49d)]();}}}),_0x22ef31['id']===e['CollaborationUIEventId'][_0x2e17f1(0x365)]&&this['_messageService'][_0x2e17f1(0x442)]({'type':a['MessageType'][_0x2e17f1(0x271)],'content':this[_0x2e17f1(0x252)]['t'](_0x22ef31[_0x2e17f1(0x1fc)]||'')}),_0x22ef31['id']===e[_0x2e17f1(0x3bc)]['SOCKET_FAILED_RETRY']&&this[_0x2e17f1(0x2fa)]['show']({'type':a[_0x2e17f1(0x43b)][_0x2e17f1(0x271)],'content':this[_0x2e17f1(0x252)]['t'](_0x2e17f1(0x240))}),_0x22ef31['id']===e['CollaborationUIEventId'][_0x2e17f1(0x457)]&&this[_0x2e17f1(0x2fa)][_0x2e17f1(0x442)]({'type':a['MessageType'][_0x2e17f1(0x2f0)],'content':this[_0x2e17f1(0x252)]['t'](_0x2e17f1(0x2bd))}),_0x22ef31['id']===e[_0x2e17f1(0x3bc)][_0x2e17f1(0x436)]&&this[_0x2e17f1(0x2fa)][_0x2e17f1(0x442)]({'type':a[_0x2e17f1(0x43b)][_0x2e17f1(0x2f0)],'content':this[_0x2e17f1(0x252)]['t'](_0x2e17f1(0x26f))});}));}[_0x3e3f50(0x366)](){const _0x194ae5=_0x3e3f50;this['_replaceConflictNotification']({'title':this[_0x194ae5(0x252)]['t'](_0x194ae5(0x318)),'content':this[_0x194ae5(0x252)]['t'](_0x194ae5(0x32e)),'type':_0x194ae5(0x3c7),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x3e3f50(0x321)](_0x331bc3){const _0x41740f=_0x3e3f50;this[_0x41740f(0x2e0)]({'title':this[_0x41740f(0x252)]['t'](_0x41740f(0x318)),'content':this[_0x41740f(0x252)]['t']('collaboration-client-ui.conflict.clearFailed'),'type':_0x41740f(0x1f8),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this[_0x41740f(0x252)]['t'](_0x41740f(0x482)),'onClick':_0x23ec41=>{_0x23ec41['preventDefault'](),this['_retryConflictCacheClear'](_0x331bc3);}}});}[_0x3e3f50(0x3eb)](_0x1e0356){const _0x364d36=_0x3e3f50;this[_0x364d36(0x48c)][_0x364d36(0x3e6)](_0x1e0356)||(this['_retryingConflictCacheUnitIDs'][_0x364d36(0x499)](_0x1e0356),this['_showConflictProcessingNotification'](),this['_localCacheService'][_0x364d36(0x3ca)](_0x1e0356)[_0x364d36(0x3db)](()=>window[_0x364d36(0x3b8)][_0x364d36(0x49d)]())[_0x364d36(0x312)](()=>this[_0x364d36(0x321)](_0x1e0356))[_0x364d36(0x1df)](()=>this[_0x364d36(0x48c)][_0x364d36(0x324)](_0x1e0356)));}[_0x3e3f50(0x2e0)](_0x14ee7c){const _0x466235=_0x3e3f50;var _0x294f33;(_0x294f33=this['_conflictNotification'])==null||_0x294f33[_0x466235(0x3de)](),this[_0x466235(0x345)]=this['_notificationService'][_0x466235(0x442)](_0x14ee7c);}};z=S([x(0x0,n['IBeforeCloseService']),x(0x1,e[_0x3e3f50(0x236)]),x(0x2,(0x0,t[_0x3e3f50(0x260)])(e[_0x3e3f50(0x2fe)])),x(0x3,n[_0x3e3f50(0x3fb)]),x(0x4,n[_0x3e3f50(0x22e)]),x(0x5,(0x0,t['Inject'])(t[_0x3e3f50(0x276)]))],z);const B=(0x0,t[_0x3e3f50(0x1c8)])(_0x3e3f50(0x409));let V=class extends t[_0x3e3f50(0x368)]{constructor(_0x3452e3,_0x1f988e,_0xeab5d6,_0x3f53b1){const _0x23fed4=_0x3e3f50;super(),this[_0x23fed4(0x2b5)]=_0x3452e3,this[_0x23fed4(0x224)]=_0x1f988e,this['_commandService']=_0xeab5d6,this['_dataLoaderService']=_0x3f53b1,this['_init']()[_0x23fed4(0x312)](_0x4991fb=>this[_0x23fed4(0x224)][_0x23fed4(0x1f8)]('[CollaborationDataLoaderController]',_0x4991fb));}async[_0x3e3f50(0x456)](){const _0x27ee7c=_0x3e3f50;let _0x116837=this[_0x27ee7c(0x2b5)][_0x27ee7c(0x33b)](_0x27ee7c(0x46c)),_0x1a0493=this[_0x27ee7c(0x2b5)]['getParam'](_0x27ee7c(0x2d9)),_0x48873d=this[_0x27ee7c(0x2b5)][_0x27ee7c(0x33b)](_0x27ee7c(0x203));if(!_0x116837||!_0x1a0493){this[_0x27ee7c(0x224)]['debug'](_0x27ee7c(0x27a),_0x27ee7c(0x24d));return;}let _0x58874c=await this[_0x27ee7c(0x250)][_0x27ee7c(0x3d0)](_0x116837,Number(_0x1a0493),_0x48873d);this[_0x27ee7c(0x40f)]||_0x58874c&&_0x58874c instanceof t[_0x27ee7c(0x295)]&&await this[_0x27ee7c(0x46b)](_0x58874c);}async[_0x3e3f50(0x46b)](_0x359197){const _0x251090=_0x3e3f50;await this[_0x251090(0x305)](_0x359197,!0x0),!this[_0x251090(0x40f)]&&(_0x359197['activeSheet$']['pipe']((0x0,r[_0x251090(0x2bf)])(this[_0x251090(0x322)]))[_0x251090(0x380)](_0x1cd382=>{const _0x2fc291=_0x251090;_0x1cd382&&this[_0x2fc291(0x349)](_0x1cd382);}),this['_urlService']['urlChange$'][_0x251090(0x25f)]((0x0,r[_0x251090(0x2bf)])(this[_0x251090(0x322)]))[_0x251090(0x380)](()=>{const _0x504bbf=_0x251090;this[_0x504bbf(0x305)](_0x359197)[_0x504bbf(0x312)](_0x1f10d5=>this['_logService']['error']('[CollaborationDataLoaderController]',_0x1f10d5));}));}[_0x3e3f50(0x349)](_0xf99bfe,_0x3607bf=!0x1){const _0x2e2113=_0x3e3f50;let _0x3b6191=this[_0x2e2113(0x2b5)][_0x2e2113(0x33b)](_0x2e2113(0x203));_0xf99bfe[_0x2e2113(0x498)]()!==_0x3b6191&&this[_0x2e2113(0x2b5)]['setParam'](_0x2e2113(0x203),_0xf99bfe[_0x2e2113(0x498)](),_0x3607bf);}async[_0x3e3f50(0x305)](_0x27be57,_0x10caa1=!0x1){const _0xd07474=_0x3e3f50;var _0x5d69ad;let _0x67d036=this[_0xd07474(0x2b5)][_0xd07474(0x33b)](_0xd07474(0x203));if(!_0x67d036||!_0x27be57[_0xd07474(0x432)](_0x67d036)){let _0x358075=_0x27be57[_0xd07474(0x282)]()[0x0],_0x286cbc=_0x27be57['getSheetBySheetId'](_0x358075);if(!_0x286cbc||(this[_0xd07474(0x349)](_0x286cbc,!0x0),this[_0xd07474(0x40f)]))return;await this[_0xd07474(0x42f)][_0xd07474(0x214)](g[_0xd07474(0x414)]['id'],{'unitId':_0x27be57['getUnitId'](),'subUnitId':_0x358075});return;}(_0x10caa1||((_0x5d69ad=_0x27be57['getActiveSheet']())==null?void 0x0:_0x5d69ad[_0xd07474(0x498)]())!==_0x67d036)&&await this[_0xd07474(0x42f)]['executeCommand'](g[_0xd07474(0x414)]['id'],{'unitId':_0x27be57['getUnitId'](),'subUnitId':_0x67d036});}};V=S([x(0x0,B),x(0x1,t[_0x3e3f50(0x1dc)]),x(0x2,t[_0x3e3f50(0x22c)]),x(0x3,(0x0,t[_0x3e3f50(0x260)])(e[_0x3e3f50(0x27e)]))],V);let H=class{constructor(_0xf71762,_0x4589db){const _0x50a01d=_0x3e3f50;this['_transformService']=_0xf71762,this[_0x50a01d(0x426)]=_0x4589db;}[_0x3e3f50(0x4a2)](_0x4a96e3){const _0x182e23=_0x3e3f50;this['_transformUndoRedoStack'](_0x4a96e3),this[_0x182e23(0x461)](_0x4a96e3);}[_0x3e3f50(0x23b)](_0x5bab6e){const _0x1882b1=_0x3e3f50;let {unitID:_0x54ba40}=_0x5bab6e,{redoCache:_0x13d5a0}=this[_0x1882b1(0x426)]['getRenderUnitById'](_0x54ba40)[_0x1882b1(0x33e)](f[_0x1882b1(0x489)])[_0x1882b1(0x2f5)]();if(_0x13d5a0[_0x1882b1(0x32c)]===0x0)return _0x5bab6e;let _0x181da7=t['Tools'][_0x1882b1(0x2b1)](_0x5bab6e[_0x1882b1(0x48e)][0x0]);for(let _0xf46542=0x0;_0xf46542<_0x13d5a0[_0x1882b1(0x32c)];_0xf46542++){let _0x403144={'id':_0x1882b1(0x209),'params':{..._0x13d5a0[_0xf46542]}},_0x316172=this[_0x1882b1(0x31f)][_0x1882b1(0x29d)](_0x181da7,_0x403144,!0x1);if((0x0,l[_0x1882b1(0x2dd)])(_0x316172))throw _0x316172[_0x1882b1(0x1f8)];_0x181da7=_0x316172[_0x1882b1(0x412)];}return{...t['Tools']['deepClone'](_0x5bab6e),'mutations':[_0x181da7]};}['_transformUndoRedoStack'](_0x24f20a){const _0x2666b0=_0x3e3f50;let {unitID:_0x380815}=_0x24f20a,_0x40b632=this[_0x2666b0(0x426)][_0x2666b0(0x1d5)](_0x380815)[_0x2666b0(0x33e)](f[_0x2666b0(0x489)]),{undoCache:_0xc353f1,redoCache:_0x24a809}=_0x40b632['getUndoRedoMutationParamsCache']();if(_0xc353f1[_0x2666b0(0x32c)]===0x0||_0x24a809[_0x2666b0(0x32c)]===0x0)return;let _0x1f2d66=[],_0x625af1=[],_0x542877=t[_0x2666b0(0x4a9)][_0x2666b0(0x2b1)](_0x24f20a[_0x2666b0(0x48e)][0x0]),_0x4fe03c=t['Tools']['deepClone'](_0x24f20a[_0x2666b0(0x48e)][0x0]);for(let _0x38c1c5=_0xc353f1[_0x2666b0(0x32c)]-0x1;_0x38c1c5>=0x0;_0x38c1c5--){let _0x20a5c4={'id':_0x2666b0(0x209),'params':{..._0xc353f1[_0x38c1c5]}},_0x3ad069={'id':_0x2666b0(0x209),'params':{..._0x24a809[_0x38c1c5]}},_0x2caf91=this[_0x2666b0(0x31f)][_0x2666b0(0x29d)](_0x542877,_0x20a5c4,!0x1),_0x3ee82e=this[_0x2666b0(0x31f)][_0x2666b0(0x29d)](_0x4fe03c,_0x3ad069,!0x1);if((0x0,l[_0x2666b0(0x2dd)])(_0x2caf91))throw _0x2caf91[_0x2666b0(0x1f8)];if((0x0,l[_0x2666b0(0x2dd)])(_0x3ee82e))throw _0x3ee82e[_0x2666b0(0x1f8)];_0x1f2d66['unshift'](_0x2caf91[_0x2666b0(0x3fa)]['params']),_0x625af1['unshift'](_0x3ee82e[_0x2666b0(0x3fa)][_0x2666b0(0x241)]),_0x542877=_0x2caf91['m1Prime'],_0x4fe03c=_0x3ee82e['m1Prime'];}_0x40b632[_0x2666b0(0x450)]({'undoCache':_0x1f2d66,'redoCache':_0x625af1});}[_0x3e3f50(0x461)](_0x4d6921){const _0xc16147=_0x3e3f50;let {unitID:_0x5485f2}=_0x4d6921,_0x31cec3=this[_0xc16147(0x426)][_0xc16147(0x1d5)](_0x5485f2)['with'](f[_0xc16147(0x489)]),_0x19037c=_0x31cec3[_0xc16147(0x3ff)]();if(_0x19037c==null)return;let _0x3ec9dc=[{'id':_0xc16147(0x209),'params':{'unitId':_0x4d6921['unitID'],'actions':null,'textRanges':[_0x19037c]}}],_0x17692b=this[_0xc16147(0x31f)][_0xc16147(0x1fb)](_0x4d6921,_0x3ec9dc);if(!(0x0,l[_0xc16147(0x272)])(_0x17692b))throw _0x17692b[_0xc16147(0x1f8)];let _0x102127=_0x17692b[_0xc16147(0x3fa)][0x0][_0xc16147(0x241)][_0xc16147(0x1e7)];Array[_0xc16147(0x460)](_0x102127)&&_0x102127[_0xc16147(0x32c)]&&_0x31cec3[_0xc16147(0x273)](_0x102127[0x0]);}};H=S([x(0x0,l['ITransformService']),x(0x1,p[_0x3e3f50(0x478)])],H);let U=class{constructor(_0x2d2caf,_0x2449bf,_0x2cd630){const _0x1053a4=_0x3e3f50;this[_0x1053a4(0x21c)]=_0x2d2caf,this[_0x1053a4(0x31f)]=_0x2449bf,this[_0x1053a4(0x2d4)]=_0x2cd630;}[_0x3e3f50(0x4a6)](_0x511847){this['_transformHistoryAndStateStack'](_0x511847);}['transformRemoteChangeset'](_0x46221c){const _0x50801c=_0x3e3f50;let {unitID:_0x5ef455}=_0x46221c,{collaboration:_0x31413b}=this[_0x50801c(0x2d4)][_0x50801c(0x2de)](_0x5ef455);if(_0x31413b[_0x50801c(0x32c)]===0x0)return _0x46221c;let _0x84b4c=t[_0x50801c(0x4a9)][_0x50801c(0x2b1)](_0x46221c['mutations'][0x0]);for(let _0x19643e=0x0;_0x19643e<_0x31413b[_0x50801c(0x32c)];_0x19643e++){let _0x752df9={'id':_0x50801c(0x209),'params':{'unitId':_0x31413b[_0x19643e]['unitId'],..._0x31413b[_0x19643e][_0x50801c(0x3b1)]}},_0x16a2f7=this[_0x50801c(0x31f)][_0x50801c(0x29d)](_0x84b4c,_0x752df9,!0x1);if((0x0,l[_0x50801c(0x2dd)])(_0x16a2f7))throw _0x16a2f7[_0x50801c(0x1f8)];_0x84b4c=_0x16a2f7[_0x50801c(0x412)];}return{...t[_0x50801c(0x4a9)][_0x50801c(0x2b1)](_0x46221c),'mutations':[_0x84b4c]};}[_0x3e3f50(0x316)](_0x13ee8c){const _0x3f3a2f=_0x3e3f50;let {unitID:_0x4f4263}=_0x13ee8c,{history:_0x1e23f2,collaboration:_0x3188c3}=this[_0x3f3a2f(0x2d4)]['getStateCache'](_0x4f4263);if(_0x1e23f2['length']===0x0&&_0x3188c3[_0x3f3a2f(0x32c)]===0x0)return;let _0x41c565=[],_0x82c506=[],_0x58b901=t[_0x3f3a2f(0x4a9)][_0x3f3a2f(0x2b1)](_0x13ee8c[_0x3f3a2f(0x48e)][0x0]),_0xcd4a05=t[_0x3f3a2f(0x4a9)]['deepClone'](_0x13ee8c[_0x3f3a2f(0x48e)][0x0]);for(let _0x3cdb2d=_0x1e23f2[_0x3f3a2f(0x32c)]-0x1;_0x3cdb2d>=0x0;_0x3cdb2d--){let _0x4c8261={'id':_0x3f3a2f(0x209),'params':{'unitId':_0x1e23f2[_0x3cdb2d][_0x3f3a2f(0x283)],..._0x1e23f2[_0x3cdb2d][_0x3f3a2f(0x3bb)]}},_0x2892b1={'id':_0x3f3a2f(0x209),'params':{'unitId':_0x1e23f2[_0x3cdb2d][_0x3f3a2f(0x283)],..._0x1e23f2[_0x3cdb2d]['redoState']}},_0x42d7b1=this[_0x3f3a2f(0x31f)][_0x3f3a2f(0x29d)](_0x58b901,_0x4c8261,!0x1),_0x7d8d0f=this['_transformService'][_0x3f3a2f(0x29d)](_0xcd4a05,_0x2892b1,!0x1);if((0x0,l[_0x3f3a2f(0x2dd)])(_0x42d7b1))throw _0x42d7b1[_0x3f3a2f(0x1f8)];if((0x0,l['isTransformMutationFailure'])(_0x7d8d0f))throw _0x7d8d0f[_0x3f3a2f(0x1f8)];_0x41c565[_0x3f3a2f(0x469)]({..._0x1e23f2[_0x3cdb2d],'undoState':_0x42d7b1[_0x3f3a2f(0x3fa)][_0x3f3a2f(0x241)],'redoState':_0x7d8d0f[_0x3f3a2f(0x3fa)][_0x3f3a2f(0x241)]}),_0x58b901=_0x42d7b1[_0x3f3a2f(0x412)],_0xcd4a05=_0x7d8d0f[_0x3f3a2f(0x412)];}_0x58b901=t['Tools'][_0x3f3a2f(0x2b1)](_0x13ee8c['mutations'][0x0]),_0xcd4a05=t[_0x3f3a2f(0x4a9)]['deepClone'](_0x13ee8c[_0x3f3a2f(0x48e)][0x0]);for(let _0x5d2ddb=_0x3188c3['length']-0x1;_0x5d2ddb>=0x0;_0x5d2ddb--){let _0x1f8e00={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3188c3[_0x5d2ddb]['unitId'],..._0x3188c3[_0x5d2ddb][_0x3f3a2f(0x3bb)]}},_0x4db6b8={'id':_0x3f3a2f(0x209),'params':{'unitId':_0x3188c3[_0x5d2ddb][_0x3f3a2f(0x283)],..._0x3188c3[_0x5d2ddb][_0x3f3a2f(0x3b1)]}},_0x1a9b31=this[_0x3f3a2f(0x31f)][_0x3f3a2f(0x29d)](_0x58b901,_0x1f8e00,!0x1),_0x54ebbe=this[_0x3f3a2f(0x31f)][_0x3f3a2f(0x29d)](_0xcd4a05,_0x4db6b8,!0x1);if((0x0,l[_0x3f3a2f(0x2dd)])(_0x1a9b31))throw _0x1a9b31['error'];if((0x0,l[_0x3f3a2f(0x2dd)])(_0x54ebbe))throw _0x54ebbe['error'];_0x82c506[_0x3f3a2f(0x469)]({..._0x3188c3[_0x5d2ddb],'undoState':_0x1a9b31['m2Prime']['params'],'redoState':_0x54ebbe[_0x3f3a2f(0x3fa)]['params']}),_0x58b901=_0x1a9b31['m1Prime'],_0xcd4a05=_0x54ebbe[_0x3f3a2f(0x412)];}this[_0x3f3a2f(0x2d4)][_0x3f3a2f(0x367)](_0x4f4263,{'history':_0x41c565,'collaboration':_0x82c506});}};U=S([x(0x0,(0x0,t['Inject'])(t['Injector'])),x(0x1,l['ITransformService']),x(0x2,(0x0,t['Inject'])(d['DocStateChangeManagerService']))],U);let W=class{constructor(_0x462ee9,_0x53db76){const _0x5a7068=_0x3e3f50;this[_0x5a7068(0x294)]=_0x462ee9,this[_0x5a7068(0x31f)]=_0x53db76;}[_0x3e3f50(0x48b)](_0x367a14){const _0x268223=_0x3e3f50;var _0x45f875;let _0x80c1c1=this['_docSelectionManagerService'][_0x268223(0x32b)]()??[],_0x54b49b=this[_0x268223(0x294)][_0x268223(0x287)]();if(_0x80c1c1[_0x268223(0x32c)]===0x0||_0x54b49b==null)return null;let _0x21f2c0=_0x367a14[_0x268223(0x2d0)],_0x4e4df0=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x21f2c0,'actions':null,'textRanges':_0x80c1c1}}],_0x1904fb=this[_0x268223(0x31f)][_0x268223(0x1fb)](_0x367a14,_0x4e4df0);if(!(0x0,l[_0x268223(0x272)])(_0x1904fb))throw _0x1904fb['error'];let _0x2b353f=(_0x45f875=_0x1904fb[_0x268223(0x3fa)][0x0])==null?void 0x0:_0x45f875[_0x268223(0x241)],_0x3fcd52=_0x2b353f&&typeof _0x2b353f=='object'&&_0x268223(0x1e7)in _0x2b353f?_0x2b353f[_0x268223(0x1e7)]:null;if(!Te(_0x3fcd52))return null;let _0x58b145=Ce(_0x367a14['mutations'][_0x268223(0x33d)](_0x8abd31=>G(_0x8abd31[_0x268223(0x241)]))?_0x3fcd52['filter'](_0x4566fd=>!(_0x268223(0x42c)in _0x4566fd)):_0x3fcd52,{..._0x54b49b,'options':_0x54b49b['options']?{..._0x54b49b['options'],'wholeDocument':!0x1}:void 0x0}),_0x86a493={'unitId':_0x21f2c0,'subUnitId':_0x21f2c0};this[_0x268223(0x294)]['replaceSelectionInfoWithoutRefresh'](_0x58b145,_0x86a493);let _0x254308=!0x0;return{'commit':()=>{_0x254308=!0x1;},'rollback':()=>{const _0x1e9180=_0x268223;_0x254308&&(_0x254308=!0x1,this[_0x1e9180(0x294)][_0x1e9180(0x49e)](_0x54b49b,_0x86a493));}};}};W=S([x(0x0,(0x0,t[_0x3e3f50(0x260)])(d[_0x3e3f50(0x402)])),x(0x1,l[_0x3e3f50(0x41a)])],W);function Ce(_0x2af690,_0x34305c){const _0x51627c=_0x3e3f50;let _0x2c6819=[],_0x567ca3=[];for(let _0x2e86ce of _0x2af690)we(_0x2e86ce)?_0x567ca3[_0x51627c(0x439)](_0x2e86ce):_0x2c6819[_0x51627c(0x439)](_0x2e86ce);return{..._0x34305c,'textRanges':_0x2c6819,'rectRanges':_0x567ca3};}function we(_0x1cb97a){return'tableId'in _0x1cb97a;}function Te(_0x34a991){const _0x21a536=_0x3e3f50;return Array[_0x21a536(0x460)](_0x34a991)&&_0x34a991[_0x21a536(0x462)](_0x4f7031=>typeof _0x4f7031==_0x21a536(0x2f6)&&!!_0x4f7031&&_0x21a536(0x2b4)in _0x4f7031&&_0x21a536(0x375)in _0x4f7031);}function G(_0x4b9e8f){const _0x47529b=_0x3e3f50;return _0x4b9e8f===_0x47529b(0x391)?!0x0:Array[_0x47529b(0x460)](_0x4b9e8f)?_0x4b9e8f[_0x47529b(0x33d)](_0x4882d4=>G(_0x4882d4)):!_0x4b9e8f||typeof _0x4b9e8f!=_0x47529b(0x2f6)?!0x1:Object[_0x47529b(0x1f5)](_0x4b9e8f)[_0x47529b(0x33d)](_0xcde8d9=>G(_0xcde8d9));}let K=class extends t[_0x3e3f50(0x37f)]{constructor(_0x44e672,_0x105e4c,_0x52a39d,_0x393ec4,_0x155941,_0x3de175,_0x31f405){const _0x3397c9=_0x3e3f50;super(),this['_collaborationController']=_0x44e672,this[_0x3397c9(0x3ef)]=_0x105e4c,this['_docTransformStateCacheService']=_0x52a39d,this[_0x3397c9(0x3e4)]=_0x393ec4,this[_0x3397c9(0x3e7)]=_0x155941,this[_0x3397c9(0x2fa)]=_0x3de175,this[_0x3397c9(0x252)]=_0x31f405,b(this,_0x3397c9(0x458),new r[(_0x3397c9(0x232))](e[_0x3397c9(0x255)][_0x3397c9(0x3a8)])),this[_0x3397c9(0x47a)]();}['_initEntityListener'](){const _0xb658bf=_0x3e3f50;this['disposeWithMe'](this[_0xb658bf(0x26c)]['entityInit$']['subscribe'](_0x4e0124=>{const _0x2d45ce=_0xb658bf;_0x4e0124 instanceof e[_0x2d45ce(0x25e)]&&_0x4e0124[_0x2d45ce(0x1e1)]({'onTransformIME':_0x219d23=>this[_0x2d45ce(0x3ef)]['transformIMECache'](_0x219d23),'onTransformState':_0x983002=>this[_0x2d45ce(0x1cf)][_0x2d45ce(0x4a6)](_0x983002),'onPrepareTransformSelections':_0x445556=>this[_0x2d45ce(0x3e4)][_0x2d45ce(0x48b)](_0x445556),'onSyncEditingCollabCursor':_0x154749=>this[_0x2d45ce(0x3e7)]['syncEditingCollabCursor'](_0x154749),'onTransformRemoteChangesetByIMECache':_0x23c655=>this[_0x2d45ce(0x3ef)][_0x2d45ce(0x23b)](_0x23c655),'onTransformRemoteChangesetByStateCache':_0xa1bab4=>this['_docTransformStateCacheService'][_0x2d45ce(0x23b)](_0xa1bab4)});}));}};K=S([x(0x0,(0x0,t['Inject'])(e[_0x3e3f50(0x49c)])),x(0x1,(0x0,t[_0x3e3f50(0x260)])(H)),x(0x2,(0x0,t['Inject'])(U)),x(0x3,(0x0,t[_0x3e3f50(0x260)])(W)),x(0x4,(0x0,t[_0x3e3f50(0x260)])(O)),x(0x5,n[_0x3e3f50(0x3fb)]),x(0x6,(0x0,t[_0x3e3f50(0x260)])(t[_0x3e3f50(0x276)]))],K);let q=class extends t[_0x3e3f50(0x37f)]{constructor(_0x1beea1,_0x12b736,_0x97bac1,_0x51fd25){const _0x3e2e5e=_0x3e3f50;super(),this[_0x3e2e5e(0x21c)]=_0x1beea1,this[_0x3e2e5e(0x245)]=_0x12b736,this[_0x3e2e5e(0x224)]=_0x97bac1,this[_0x3e2e5e(0x1e8)]=_0x51fd25,b(this,_0x3e2e5e(0x30b),void 0x0),this['_init']();}[_0x3e3f50(0x456)](){const _0x4c7f3f=_0x3e3f50;this[_0x4c7f3f(0x1ae)](),this[_0x4c7f3f(0x3c8)](),this[_0x4c7f3f(0x2c5)](),this['_initUserListener']();}[_0x3e3f50(0x33a)](){const _0x13ca92=_0x3e3f50;this[_0x13ca92(0x385)](this['_collaborationSessionService'][_0x13ca92(0x301)]['subscribe'](_0x59750d=>{const _0xbee853=_0x13ca92;this[_0xbee853(0x30b)]=_0x59750d==null?void 0x0:_0x59750d[_0xbee853(0x204)];}));}['_initWindowErrorListener'](){const _0x663c6f=_0x3e3f50;let _0x2360d4=_0x45bb2b=>{const _0x30450f=_0x1e1d;var _0x51b491;this[_0x30450f(0x359)]('error',_0x30450f(0x1fa)+_0x45bb2b[_0x30450f(0x38a)]+_0x30450f(0x3c2)+_0x45bb2b[_0x30450f(0x41c)]+':'+_0x45bb2b[_0x30450f(0x2b7)]+':'+_0x45bb2b['colno']+'\x0a'+(((_0x51b491=_0x45bb2b[_0x30450f(0x1f8)])==null?void 0x0:_0x51b491[_0x30450f(0x293)])||''));};window['addEventListener'](_0x663c6f(0x1f8),_0x2360d4),this[_0x663c6f(0x385)](()=>{const _0x501bbe=_0x663c6f;window['removeEventListener'](_0x501bbe(0x1f8),_0x2360d4);});}[_0x3e3f50(0x3c8)](){const _0x483c04=_0x3e3f50;let _0x31e18b=_0x39d118=>{const _0x19e7d4=_0x1e1d;this[_0x19e7d4(0x359)](_0x19e7d4(0x1f8),_0x19e7d4(0x257)+_0x39d118[_0x19e7d4(0x339)]);};window[_0x483c04(0x265)](_0x483c04(0x1e5),_0x31e18b),this[_0x483c04(0x385)](()=>{const _0x4873b7=_0x483c04;window[_0x4873b7(0x2a6)](_0x4873b7(0x1e5),_0x31e18b);});}[_0x3e3f50(0x2c5)](){const _0x3998a2=_0x3e3f50;let _0x447178=this[_0x3998a2(0x224)]['error'][_0x3998a2(0x3aa)](this[_0x3998a2(0x224)]);this[_0x3998a2(0x224)]['error']=(..._0x157a18)=>{const _0x200cb7=_0x3998a2;let _0xb8f277=_0x157a18['map'](_0x53d96d=>_0x53d96d instanceof Error?_0x53d96d[_0x200cb7(0x38a)]+'\x0a'+_0x53d96d['stack']:String(_0x53d96d))[_0x200cb7(0x3fe)]('\x20');this[_0x200cb7(0x359)](_0x200cb7(0x1f8),_0x200cb7(0x27b)+_0xb8f277),_0x447178(..._0x157a18);},this[_0x3998a2(0x385)](()=>{const _0x188375=_0x3998a2;this[_0x188375(0x224)]['error']=_0x447178;});}['_uploadLog'](_0x2c0d8d,_0x5627aa){const _0x1c6b60=_0x3e3f50;try{let _0x4789f0={'userId':this[_0x1c6b60(0x30b)],'logLabel':_0x2c0d8d,'content':_0x5627aa};this[_0x1c6b60(0x245)][_0x1c6b60(0x2b0)](_0x1c6b60(0x475),{'body':_0x4789f0})['catch'](()=>{});}catch{}}};q=S([x(0x0,(0x0,t[_0x3e3f50(0x260)])(t['Injector'])),x(0x1,(0x0,t[_0x3e3f50(0x260)])(m[_0x3e3f50(0x45e)])),x(0x2,t['ILogService']),x(0x3,(0x0,t['Inject'])(e[_0x3e3f50(0x2af)]))],q);function Ee({state$:_0x452d16}){const _0x3e76c3=_0x3e3f50;let _0x4b9391=(0x0,n[_0x3e76c3(0x3d8)])(_0x452d16,null,!0x0);return _0x4b9391?(0x0,c[_0x3e76c3(0x3c3)])(_0x3e76c3(0x218),{'data-u-comp':_0x3e76c3(0x4a1),'role':_0x3e76c3(0x42a),'className':_0x3e76c3(0x42b),'children':[(0x0,c['jsx'])(o[_0x3e76c3(0x2e5)],{'className':_0x3e76c3(0x1f7)}),(0x0,c[_0x3e76c3(0x46a)])(_0x3e76c3(0x342),{'children':_0x4b9391[_0x3e76c3(0x3a5)]}),(0x0,c['jsx'])(a[_0x3e76c3(0x42e)],{'size':_0x3e76c3(0x4a0),'variant':_0x3e76c3(0x1db),'onClick':()=>window[_0x3e76c3(0x3b8)][_0x3e76c3(0x49d)](),'children':_0x4b9391['refreshLabel']})]}):null;}const De='snapshot-loading-';let J=class extends t[_0x3e3f50(0x37f)]{constructor(_0x5e7cd6,_0x44754e,_0x3aa110,_0x3d0840,_0x5ef432,_0x393523){const _0xdbc590=_0x3e3f50;super(),this['_snapshotLoadingService']=_0x5e7cd6,this[_0xdbc590(0x2fa)]=_0x44754e,this['_localeService']=_0x3aa110,this['_injector']=_0x3d0840,this['_urlService']=_0x393523,b(this,_0xdbc590(0x431),new r[(_0xdbc590(0x232))](null)),b(this,_0xdbc590(0x1d9),new Set()),b(this,_0xdbc590(0x285),new Map()),b(this,'_latestStates',new Map()),b(this,_0xdbc590(0x2f8),this[_0xdbc590(0x431)][_0xdbc590(0x2ee)]());let _0x17a9f1=()=>(0x0,s[_0xdbc590(0x424)])(Ee,{'state$':this[_0xdbc590(0x2f8)]});this[_0xdbc590(0x385)](_0x5ef432[_0xdbc590(0x22a)](n[_0xdbc590(0x3ea)][_0xdbc590(0x210)],()=>(0x0,n['connectInjector'])(_0x17a9f1,this[_0xdbc590(0x21c)]))),this[_0xdbc590(0x385)](this[_0xdbc590(0x2f4)][_0xdbc590(0x1ba)]['subscribe'](_0x49d508=>{const _0x49c30f=_0xdbc590;this['_latestStates']=_0x49d508,_0x49d508[_0x49c30f(0x41d)](_0x3a14d1=>this[_0x49c30f(0x1c2)](_0x3a14d1));})),this[_0xdbc590(0x385)](this[_0xdbc590(0x2b5)][_0xdbc590(0x20a)][_0xdbc590(0x380)](()=>{const _0x384343=_0xdbc590;this[_0x384343(0x1e2)]['forEach'](_0x59f38e=>this['_updateMessage'](_0x59f38e));}));}[_0x3e3f50(0x3de)](){const _0x45e1af=_0x3e3f50;this[_0x45e1af(0x1d9)][_0x45e1af(0x41d)](_0x346908=>this['_messageService'][_0x45e1af(0x3df)](_0x346908)),this[_0x45e1af(0x1d9)][_0x45e1af(0x2b8)](),this[_0x45e1af(0x285)]['forEach'](({timeoutId:_0xd0f44e})=>clearTimeout(_0xd0f44e)),this[_0x45e1af(0x285)][_0x45e1af(0x2b8)](),this[_0x45e1af(0x431)][_0x45e1af(0x2a4)](),super['dispose']();}['_updateMessage'](_0x3bbfbb){const _0x28512c=_0x3e3f50;let _0x372731=''+De+_0x3bbfbb[_0x28512c(0x283)];if(_0x3bbfbb[_0x28512c(0x428)]===l[_0x28512c(0x300)]['COMPLETE']){this[_0x28512c(0x263)](_0x3bbfbb[_0x28512c(0x283)]),this[_0x28512c(0x239)](_0x3bbfbb[_0x28512c(0x283)]),this['_messageService'][_0x28512c(0x3df)](_0x372731),this[_0x28512c(0x1d9)]['delete'](_0x372731);return;}if(!this['_isVisibleUnit'](_0x3bbfbb[_0x28512c(0x283)])){this[_0x28512c(0x263)](_0x3bbfbb[_0x28512c(0x283)]),this[_0x28512c(0x239)](_0x3bbfbb['unitId']),this[_0x28512c(0x2fa)][_0x28512c(0x3df)](_0x372731),this[_0x28512c(0x1d9)][_0x28512c(0x324)](_0x372731);return;}if(_0x3bbfbb[_0x28512c(0x428)]===l[_0x28512c(0x300)][_0x28512c(0x22f)]){this[_0x28512c(0x263)](_0x3bbfbb[_0x28512c(0x283)]),this[_0x28512c(0x239)](_0x3bbfbb['unitId']),this[_0x28512c(0x2fa)][_0x28512c(0x442)]({'id':_0x372731,'type':a[_0x28512c(0x43b)][_0x28512c(0x2f0)],'content':this[_0x28512c(0x252)]['t']('collaboration-client-ui.session.connection-failed')}),this['_messageIds'][_0x28512c(0x324)](_0x372731);return;}if(_0x3bbfbb[_0x28512c(0x428)]!==l[_0x28512c(0x300)]['LOADING_BLOCKS']||_0x3bbfbb[_0x28512c(0x278)]<=0xa){this['_clearBlockProgressWatch'](_0x3bbfbb['unitId']),this[_0x28512c(0x2fa)][_0x28512c(0x3df)](_0x372731),this[_0x28512c(0x1d9)][_0x28512c(0x324)](_0x372731);return;}this[_0x28512c(0x31c)](_0x3bbfbb)||(this[_0x28512c(0x2fa)][_0x28512c(0x442)]({'id':_0x372731,'type':a[_0x28512c(0x43b)][_0x28512c(0x377)],'duration':0x1/0x0,'content':this[_0x28512c(0x252)]['t'](_0x28512c(0x2da))+'\x20'+_0x3bbfbb[_0x28512c(0x319)]+'/'+_0x3bbfbb[_0x28512c(0x278)]}),this[_0x28512c(0x1d9)][_0x28512c(0x499)](_0x372731));}[_0x3e3f50(0x31c)](_0x4c037d){const _0x39d185=_0x3e3f50;let _0x28f5c6=this[_0x39d185(0x285)][_0x39d185(0x341)](_0x4c037d[_0x39d185(0x283)]);if((_0x28f5c6==null?void 0x0:_0x28f5c6[_0x39d185(0x319)])===_0x4c037d['loadedBlocks'])return _0x28f5c6[_0x39d185(0x37b)];this[_0x39d185(0x263)](_0x4c037d['unitId']);let _0x3d1bd5=setTimeout(()=>{const _0xa17bf1=_0x39d185;let _0x3536b6=this[_0xa17bf1(0x285)][_0xa17bf1(0x341)](_0x4c037d[_0xa17bf1(0x283)]);if(!_0x3536b6||_0x3536b6['timeoutId']!==_0x3d1bd5)return;_0x3536b6['timedOut']=!0x0;let _0x536b17=''+De+_0x4c037d[_0xa17bf1(0x283)];this[_0xa17bf1(0x2fa)][_0xa17bf1(0x3df)](_0x536b17),this[_0xa17bf1(0x1d9)][_0xa17bf1(0x324)](_0x536b17),this[_0xa17bf1(0x431)][_0xa17bf1(0x1cb)]({'unitId':_0x4c037d[_0xa17bf1(0x283)],'content':this[_0xa17bf1(0x252)]['t'](_0xa17bf1(0x430),String(_0x4c037d[_0xa17bf1(0x319)]),String(_0x4c037d[_0xa17bf1(0x278)])),'refreshLabel':this[_0xa17bf1(0x252)]['t']('collaboration-client-ui.snapshotLoading.refresh')});},0xea60);return this['_blockProgressWatches'][_0x39d185(0x2e3)](_0x4c037d[_0x39d185(0x283)],{'loadedBlocks':_0x4c037d[_0x39d185(0x319)],'timedOut':!0x1,'timeoutId':_0x3d1bd5}),!0x1;}['_clearBlockProgressWatch'](_0x305a2f){const _0x56672f=_0x3e3f50;let _0x571449=this[_0x56672f(0x285)][_0x56672f(0x341)](_0x305a2f);_0x571449&&(clearTimeout(_0x571449['timeoutId']),this['_blockProgressWatches'][_0x56672f(0x324)](_0x305a2f),this[_0x56672f(0x239)](_0x305a2f));}['_clearTimeoutState'](_0x42a8a5){const _0xcb1fe9=_0x3e3f50;var _0x11aa64;((_0x11aa64=this[_0xcb1fe9(0x431)][_0xcb1fe9(0x3a9)])==null?void 0x0:_0x11aa64[_0xcb1fe9(0x283)])===_0x42a8a5&&this['_timeoutState$'][_0xcb1fe9(0x1cb)](null);}['_isVisibleUnit'](_0x2019de){const _0x22df65=_0x3e3f50;let _0x2d163b=this['_urlService']['getParam'](_0x22df65(0x46c));return!_0x2d163b||_0x2d163b===_0x2019de;}};J=S([x(0x0,(0x0,t['Inject'])(l[_0x3e3f50(0x2ea)])),x(0x1,n[_0x3e3f50(0x3fb)]),x(0x2,(0x0,t[_0x3e3f50(0x260)])(t[_0x3e3f50(0x276)])),x(0x3,(0x0,t[_0x3e3f50(0x260)])(t[_0x3e3f50(0x306)])),x(0x4,n[_0x3e3f50(0x230)]),x(0x5,B)],J);let Y=class extends t[_0x3e3f50(0x37f)]{constructor(_0xe7ad08,_0x490d62,_0x205cb9){const _0x301c2c=_0x3e3f50;var _0x6cecb7;super(),this[_0x301c2c(0x2f3)]=_0xe7ad08,this['_localStorageService']=_0x490d62,this[_0x301c2c(0x1d3)]=_0x205cb9,b(this,_0x301c2c(0x26e),new Map()),b(this,_0x301c2c(0x338),new Map()),b(this,_0x301c2c(0x3d2),new Map()),b(this,_0x301c2c(0x2eb),!0x1),this['_disabled']=!((_0x6cecb7=this[_0x301c2c(0x2f3)]['getConfig'](e[_0x301c2c(0x233)]))!=null&&_0x6cecb7[_0x301c2c(0x3e1)]);}['disableLocalCache'](){const _0x3ddfa7=_0x3e3f50;this[_0x3ddfa7(0x2eb)]=!0x0;}[_0x3e3f50(0x1f9)](){const _0x49ed41=_0x3e3f50;this[_0x49ed41(0x2eb)]=!0x1;}get[_0x3e3f50(0x25b)](){return this['_saveTaskMap'];}['dispose'](){const _0xd4733a=_0x3e3f50;this[_0xd4733a(0x3cd)]()[_0xd4733a(0x3db)](()=>super[_0xd4733a(0x3de)]());}async[_0x3e3f50(0x381)](_0x4e495e){const _0x19ed25=_0x3e3f50;return this[_0x19ed25(0x2eb)]?null:this[_0x19ed25(0x3ba)][_0x19ed25(0x405)]((0x0,e[_0x19ed25(0x1c5)])(_0x4e495e));}async[_0x3e3f50(0x44f)](_0x48da7c,_0xf19350){const _0x3f1099=_0x3e3f50;let _0x53fb0b=this[_0x3f1099(0x3ba)][_0x3f1099(0x1bb)]((0x0,e[_0x3f1099(0x1c5)])(_0x48da7c),_0xf19350);return this['_trackActiveSaveTask'](_0x48da7c,_0x53fb0b),!!await _0x53fb0b;}async[_0x3e3f50(0x389)](_0x5e0c64,_0x15a23d){const _0x22c3ae=_0x3e3f50;let _0x47ebde=this[_0x22c3ae(0x26e)][_0x22c3ae(0x341)](_0x5e0c64)??await this[_0x22c3ae(0x3ba)][_0x22c3ae(0x405)]((0x0,e['getLocalCacheKey'])(_0x5e0c64));if(!_0x47ebde)return;let _0x963626=Date[_0x22c3ae(0x371)](),_0x3336aa=new Date(_0x963626)[_0x22c3ae(0x1c1)]();await this[_0x22c3ae(0x3ba)]['setItem']((0x0,e['getLocalCacheKey'])(_0x5e0c64)+_0x22c3ae(0x49b)+_0x963626,{'reason':_0x15a23d,'createdAt':_0x3336aa,'data':_0x47ebde});}async['clearOfflineData'](_0x5c766d){const _0x5ca49b=_0x3e3f50;let _0x600f5c=this[_0x5ca49b(0x338)][_0x5ca49b(0x341)](_0x5c766d);_0x600f5c!==void 0x0&&(window[_0x5ca49b(0x387)](_0x600f5c),this[_0x5ca49b(0x338)][_0x5ca49b(0x324)](_0x5c766d));let _0x21f957=this[_0x5ca49b(0x3d2)][_0x5ca49b(0x341)](_0x5c766d);_0x21f957&&await Promise[_0x5ca49b(0x1be)](_0x21f957),this['_cachedData'][_0x5ca49b(0x324)](_0x5c766d),await this[_0x5ca49b(0x3ba)][_0x5ca49b(0x3c9)]((0x0,e[_0x5ca49b(0x1c5)])(_0x5c766d));}[_0x3e3f50(0x2ae)](_0x495399,_0x460586,_0x3224dc,_0x3b5a31){const _0xa8ef35=_0x3e3f50;let _0x56e85d=this[_0xa8ef35(0x1d3)][_0xa8ef35(0x221)](_0x495399);this[_0xa8ef35(0x26e)][_0xa8ef35(0x2e3)](_0x495399,{'unitID':_0x495399,'type':_0x460586,'awaitingChangeset':_0x3224dc,'mutations':_0x3b5a31,'rev':_0x56e85d}),this['_saveTaskMap'][_0xa8ef35(0x3e6)](_0x495399)||this[_0xa8ef35(0x4a4)](_0x495399);}[_0x3e3f50(0x4a4)](_0x219b63){const _0x54a5d3=_0x3e3f50;let _0x530395=this[_0x54a5d3(0x42d)]();_0x530395===0x0?this[_0x54a5d3(0x1e0)](_0x219b63):this[_0x54a5d3(0x338)]['set'](_0x219b63,window['setTimeout'](()=>this[_0x54a5d3(0x1e0)](_0x219b63),_0x530395));}[_0x3e3f50(0x42d)](){const _0x383fd1=_0x3e3f50;return this[_0x383fd1(0x2f3)][_0x383fd1(0x3c6)](e[_0x383fd1(0x464)])??e[_0x383fd1(0x32a)];}['_saveCache'](_0x1884d6){const _0x285bd3=_0x3e3f50;let _0x25a2e4=this[_0x285bd3(0x338)]['get'](_0x1884d6);_0x25a2e4!==void 0x0&&window[_0x285bd3(0x387)](_0x25a2e4);let _0x3cdb82=this[_0x285bd3(0x3ba)][_0x285bd3(0x1bb)]((0x0,e[_0x285bd3(0x1c5)])(_0x1884d6),this[_0x285bd3(0x26e)][_0x285bd3(0x341)](_0x1884d6))['then'](()=>this['_saveTaskMap']['delete'](_0x1884d6));return this[_0x285bd3(0x3f0)](_0x1884d6,_0x3cdb82),_0x3cdb82;}['_trackActiveSaveTask'](_0x1bcafe,_0x3ac640){const _0x1ad616=_0x3e3f50;let _0x350656=this['_activeSaveTaskMap'][_0x1ad616(0x341)](_0x1bcafe);_0x350656||(_0x350656=new Set(),this[_0x1ad616(0x3d2)]['set'](_0x1bcafe,_0x350656)),_0x350656[_0x1ad616(0x499)](_0x3ac640);let _0x338160=()=>{const _0x4733d6=_0x1ad616;_0x350656['delete'](_0x3ac640),_0x350656[_0x4733d6(0x2e2)]===0x0&&this[_0x4733d6(0x3d2)][_0x4733d6(0x324)](_0x1bcafe);};_0x3ac640[_0x1ad616(0x3db)](_0x338160,_0x338160);}async['exhaustSavingTask'](){const _0x24311d=_0x3e3f50;let _0x125161=[];this[_0x24311d(0x338)][_0x24311d(0x41d)]((_0x478ca8,_0x59ae03)=>{const _0x130b7e=_0x24311d;window[_0x130b7e(0x387)](_0x478ca8),_0x125161[_0x130b7e(0x439)](this[_0x130b7e(0x1e0)](_0x59ae03)[_0x130b7e(0x3db)](()=>{const _0x4e16b6=_0x130b7e;this[_0x4e16b6(0x338)][_0x4e16b6(0x324)](_0x59ae03);}));}),await Promise[_0x24311d(0x26b)](_0x125161);}};Y=S([x(0x0,t[_0x3e3f50(0x1bf)]),x(0x1,t[_0x3e3f50(0x49a)]),x(0x2,(0x0,t[_0x3e3f50(0x260)])(l[_0x3e3f50(0x2d6)]))],Y);var Oe=class extends t[_0x3e3f50(0x368)]{constructor(){const _0x374022=_0x3e3f50;super(),b(this,_0x374022(0x20a),void 0x0),this[_0x374022(0x20a)]=(0x0,r[_0x374022(0x38e)])(window,_0x374022(0x401))['pipe']((0x0,r[_0x374022(0x2bf)])(this[_0x374022(0x322)]),(0x0,r[_0x374022(0x406)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r['mapTo'])(void 0x0));}[_0x3e3f50(0x1c3)](_0x3cab83,_0x9885c8,_0x265222=!0x1){const _0x2385a8=_0x3e3f50;let _0x5404fb=new URL(window['location']['href']);_0x5404fb['searchParams'][_0x2385a8(0x2e3)](_0x3cab83,_0x9885c8),_0x265222?window[_0x2385a8(0x266)][_0x2385a8(0x3b9)]('','',_0x5404fb[_0x2385a8(0x1cc)]()):window[_0x2385a8(0x266)][_0x2385a8(0x434)]('','',_0x5404fb['toString']());}[_0x3e3f50(0x246)](_0x5aa6a3,_0x30feca=!0x1){const _0x8e88dd=_0x3e3f50;let _0x582fac=new URL(window[_0x8e88dd(0x3b8)][_0x8e88dd(0x314)]);_0x582fac[_0x8e88dd(0x435)][_0x8e88dd(0x324)](_0x5aa6a3),_0x30feca?window['history'][_0x8e88dd(0x3b9)]('','',_0x582fac['toString']()):window['history'][_0x8e88dd(0x434)]('','',_0x582fac[_0x8e88dd(0x1cc)]());}[_0x3e3f50(0x33b)](_0x12e653){const _0x493e74=_0x3e3f50;return new URL(window['location'][_0x493e74(0x314)])[_0x493e74(0x435)]['get'](_0x12e653)??void 0x0;}};let X=class extends t[_0x3e3f50(0x1e4)]{constructor(_0x134715=se,_0x47ba80,_0x1b0aa4,_0x248bb9,_0x1e3292){const _0x50a7da=_0x3e3f50;super(),this[_0x50a7da(0x43a)]=_0x134715,this[_0x50a7da(0x426)]=_0x47ba80,this[_0x50a7da(0x21c)]=_0x1b0aa4,this['_configService']=_0x248bb9,this[_0x50a7da(0x42f)]=_0x1e3292;let {..._0x401beb}=(0x0,t[_0x50a7da(0x39b)])({},se,this[_0x50a7da(0x43a)]);this[_0x50a7da(0x2f3)][_0x50a7da(0x477)](_0x50a7da(0x22d),_0x401beb);}[_0x3e3f50(0x2a5)](){const _0x2e9fc0=_0x3e3f50;this['_registerDependencies'](),this[_0x2e9fc0(0x385)](this[_0x2e9fc0(0x42f)]['registerCommand'](T)),this[_0x2e9fc0(0x2a3)]();}[_0x3e3f50(0x3b5)](){const _0xae1b26=_0x3e3f50;this[_0xae1b26(0x228)]();}[_0x3e3f50(0x3ac)](){const _0x56dc98=_0x3e3f50;var _0x248225;let _0x1d4848=[[D],[B,{'useClass':Oe}],[m[_0x56dc98(0x237)],{'useClass':m[_0x56dc98(0x1d1)]}],[e[_0x56dc98(0x236)],{'useClass':Y}],[C],[z],[j],[L],[V],[J]];this['_config'][_0x56dc98(0x3d1)]!==!0x1&&_0x1d4848[_0x56dc98(0x439)]([W],[H],[U],[O],[K],[E]),this['_config'][_0x56dc98(0x264)]&&_0x1d4848[_0x56dc98(0x439)]([q]),(0x0,t['registerDependencies'])(this[_0x56dc98(0x21c)],(0x0,t[_0x56dc98(0x39e)])(_0x1d4848,(_0x248225=this[_0x56dc98(0x43a)])==null?void 0x0:_0x248225[_0x56dc98(0x423)]));}[_0x3e3f50(0x228)](){const _0x83c118=_0x3e3f50;this[_0x83c118(0x43a)][_0x83c118(0x3d1)]!==!0x1&&this['disposeWithMe'](this[_0x83c118(0x426)][_0x83c118(0x20b)](t['UniverInstanceType'][_0x83c118(0x33c)],[N])),this['disposeWithMe'](this[_0x83c118(0x426)][_0x83c118(0x20b)](t['UniverInstanceType'][_0x83c118(0x3cf)],[P]));}[_0x3e3f50(0x2a3)](){const _0x597b90=_0x3e3f50;(0x0,t[_0x597b90(0x267)])(this[_0x597b90(0x21c)],[[j],[L],[C],[z],[V],[J]]),this[_0x597b90(0x43a)][_0x597b90(0x3d1)]!==!0x1&&(0x0,t[_0x597b90(0x267)])(this[_0x597b90(0x21c)],[[K],[E]]),this[_0x597b90(0x43a)][_0x597b90(0x264)]&&(0x0,t['touchDependencies'])(this[_0x597b90(0x21c)],[[q]]);}};b(X,'pluginName',_0x3e3f50(0x40e)),b(X,_0x3e3f50(0x313),ae),b(X,_0x3e3f50(0x27f),oe),X=S([(0x0,t['DependentOn'])(u[_0x3e3f50(0x309)],d[_0x3e3f50(0x288)],p[_0x3e3f50(0x2b9)],m[_0x3e3f50(0x4a3)],l[_0x3e3f50(0x24e)],f[_0x3e3f50(0x44c)],e[_0x3e3f50(0x1e6)]),x(0x1,p[_0x3e3f50(0x478)]),x(0x2,(0x0,t['Inject'])(t['Injector'])),x(0x3,t[_0x3e3f50(0x1bf)]),x(0x4,t[_0x3e3f50(0x22c)])],X);let Z=class extends e[_0x3e3f50(0x398)]{constructor(_0x44da51,_0x596297,_0x5198ad,_0x2cd0e6,_0x301205){super(_0x44da51,_0x596297,_0x5198ad,_0x2cd0e6,_0x301205);}async[_0x3e3f50(0x32f)](_0x561b58){const _0xbcd06b=_0x3e3f50;let _0x417522=await this[_0xbcd06b(0x2be)](),_0x585a6a=this[_0xbcd06b(0x302)](_0x561b58,_0x417522);return this[_0xbcd06b(0x37a)](_0x585a6a);}[_0x3e3f50(0x302)](_0x1eb15a,_0x597a44){const _0x1bbe34=_0x3e3f50;let _0x2c3619=typeof window>'u'?new URL(_0x1eb15a):new URL(_0x1eb15a,window[_0x1bbe34(0x3b8)]['origin']);_0x2c3619[_0x1bbe34(0x435)]['set'](_0x1bbe34(0x41e),_0x597a44);let _0x4b859e=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1bbe34(0x3b8)][_0x1bbe34(0x3f7)]);return _0x4b859e[_0x1bbe34(0x341)](_0x1bbe34(0x2d2))&&_0x2c3619['searchParams'][_0x1bbe34(0x2e3)](_0x1bbe34(0x2d2),_0x4b859e[_0x1bbe34(0x341)](_0x1bbe34(0x2d2))),_0x2c3619[_0x1bbe34(0x1cc)]();}async[_0x3e3f50(0x2be)](){const _0x3ba3f5=_0x3e3f50;var _0x2f0023;let _0x3e9976=this['_configService'][_0x3ba3f5(0x3c6)](e[_0x3ba3f5(0x233)]),_0x296c69=(_0x3e9976==null?void 0x0:_0x3e9976[_0x3ba3f5(0x30c)])??e[_0x3ba3f5(0x3ec)];return((_0x2f0023=(await this[_0x3ba3f5(0x245)][_0x3ba3f5(0x341)](_0x296c69,{'headers':{'Content-Type':_0x3ba3f5(0x270)}}))[_0x3ba3f5(0x2c9)])==null?void 0x0:_0x2f0023['ticket'])??'';}};Z=S([x(0x0,(0x0,t['Inject'])(t[_0x3e3f50(0x306)])),x(0x1,(0x0,t[_0x3e3f50(0x260)])(m['HTTPService'])),x(0x2,t[_0x3e3f50(0x1bf)]),x(0x3,t[_0x3e3f50(0x1dc)]),x(0x4,l[_0x3e3f50(0x1ff)])],Z);let Q=class extends t[_0x3e3f50(0x37f)]{constructor(_0x1b9814,_0x52ac6c,_0xb3df9b){const _0x2fddda=_0x3e3f50;super(),this[_0x2fddda(0x37c)]=_0x1b9814,this['_httpService']=_0x52ac6c,this[_0x2fddda(0x2f3)]=_0xb3df9b;}async['runOnServer'](_0x34f125,_0x5332d6,_0x2d90b4,..._0x2f3613){const _0x101f17=_0x3e3f50;let _0x566251=this['_instanceService'][_0x101f17(0x215)]();if(!_0x566251)throw Error(_0x101f17(0x3a2));let _0xe7ce03=(this[_0x101f17(0x2f3)][_0x101f17(0x3c6)](e[_0x101f17(0x1d2)])??e[_0x101f17(0x358)])+'/'+_0x34f125+_0x101f17(0x2f9)+_0x5332d6,_0x5ad5d5={'scriptId':_0x34f125,'runId':new URL(window[_0x101f17(0x3b8)][_0x101f17(0x314)])[_0x101f17(0x435)][_0x101f17(0x341)]('runId')??'','function':_0x5332d6,'unitId':_0x566251['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x2f3613),'invokeId':_0x2d90b4[_0x101f17(0x463)]??'','executionId':_0x2d90b4[_0x101f17(0x1b8)]??''};try{let _0x27a618=await this[_0x101f17(0x245)][_0x101f17(0x2b0)](_0xe7ce03,{'body':_0x5ad5d5});return _0x27a618['body']['error']&&_0x27a618['body']['error'][_0x101f17(0x2b2)]!==v[_0x101f17(0x311)]['OK']?'Failed':_0x27a618[_0x101f17(0x2c9)][_0x101f17(0x331)];}catch{return _0x101f17(0x352);}}};Q=S([x(0x0,t[_0x3e3f50(0x3da)]),x(0x1,(0x0,t[_0x3e3f50(0x260)])(m[_0x3e3f50(0x45e)])),x(0x2,t[_0x3e3f50(0x1bf)])],Q);const ke=0x7530,$=_0x3e3f50(0x2d7);var Ae=class extends t[_0x3e3f50(0x37f)]{constructor(){const _0x2bc3fa=_0x3e3f50;super(),b(this,_0x2bc3fa(0x44d),(0x0,t[_0x2bc3fa(0x437)])()),b(this,_0x2bc3fa(0x281),new Set()),b(this,_0x2bc3fa(0x36d),new Map()),b(this,_0x2bc3fa(0x443),null),b(this,_0x2bc3fa(0x1ce),new Map()),b(this,'_unitStatus',new Map()),this[_0x2bc3fa(0x456)]();}[_0x3e3f50(0x3de)](){const _0x5ce32f=_0x3e3f50;super[_0x5ce32f(0x3de)](),this[_0x5ce32f(0x1ce)][_0x5ce32f(0x41d)]((_0x1bfc7d,_0x30cd2d)=>this[_0x5ce32f(0x208)](_0x30cd2d)),this[_0x5ce32f(0x443)]&&window[_0x5ce32f(0x31a)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x4b5d1c){return this['_ensureSubject'](_0x4b5d1c)['pipe']((0x0,r['distinctUntilChanged'])());}[_0x3e3f50(0x225)](_0x3c02c6){const _0x544bc3=_0x3e3f50;this[_0x544bc3(0x281)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x544bc3(0x281)]['add'](_0x3c02c6),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x3c02c6],'isForwarded':!0x1});}[_0x3e3f50(0x45d)](_0x4b4f2c){const _0x4c2afb=_0x3e3f50;this['_selfUnitIDs'][_0x4c2afb(0x324)](_0x4b4f2c),this[_0x4c2afb(0x281)][_0x4c2afb(0x2e2)]===0x0&&this['_heartbeatTimer']&&window[_0x4c2afb(0x31a)](this[_0x4c2afb(0x443)]);}[_0x3e3f50(0x456)](){const _0x4fc96b=_0x3e3f50;this[_0x4fc96b(0x385)]((0x0,t[_0x4fc96b(0x394)])((0x0,r[_0x4fc96b(0x38e)])(window,_0x4fc96b(0x200))[_0x4fc96b(0x380)](_0x1597a6=>{const _0x3a770b=_0x4fc96b;if(_0x1597a6[_0x3a770b(0x2bc)]!==$||!_0x1597a6[_0x3a770b(0x315)])return;let _0x46d1aa=JSON['parse'](_0x1597a6[_0x3a770b(0x315)]);this[_0x3a770b(0x248)](_0x46d1aa);}))),window[_0x4fc96b(0x265)]('unload',()=>this[_0x4fc96b(0x379)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x4fc96b(0x486)](this[_0x4fc96b(0x281)])}));}['_handleEvent'](_0x1c52d8){const _0x2eede4=_0x3e3f50;switch(_0x1c52d8[_0x2eede4(0x2d9)]){case 0x0:this[_0x2eede4(0x3f5)](_0x1c52d8);break;case 0x1:this[_0x2eede4(0x1f1)](_0x1c52d8);break;case 0x2:this['_handleHeartbeatEvent'](_0x1c52d8);}}[_0x3e3f50(0x3f5)](_0x5c7711){const _0x509cd6=_0x3e3f50;let {unitIDs:_0xeb550f,memberID:_0x2e1d4c,isForwarded:_0x43b6c4}=_0x5c7711;_0xeb550f['forEach'](_0x25105d=>{const _0x3cc3ea=_0x1e1d;if(!_0x43b6c4&&this[_0x3cc3ea(0x36d)][_0x3cc3ea(0x3e6)](_0x25105d)&&this[_0x3cc3ea(0x2b6)](_0x25105d)['next'](e[_0x3cc3ea(0x3b6)][_0x3cc3ea(0x44b)]),!this[_0x3cc3ea(0x36d)]['has'](_0x25105d)||!this['_unitOnClients'][_0x3cc3ea(0x341)](_0x25105d)[_0x3cc3ea(0x3e6)](_0x2e1d4c)){let _0x4edaa8=this[_0x3cc3ea(0x36d)][_0x3cc3ea(0x341)](_0x25105d)||new Set();_0x4edaa8[_0x3cc3ea(0x499)](_0x2e1d4c),this['_unitOnClients']['set'](_0x25105d,_0x4edaa8),this[_0x3cc3ea(0x1f4)](_0x2e1d4c);}}),_0x43b6c4||this['_send']({'type':0x0,'memberID':this[_0x509cd6(0x44d)],'unitIDs':[...this[_0x509cd6(0x281)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4960bc){const _0x2aa6d6=_0x3e3f50;this[_0x2aa6d6(0x208)](_0x4960bc);let _0x437e0b=window[_0x2aa6d6(0x24f)](()=>{const _0x52fd94=_0x2aa6d6;this[_0x52fd94(0x36d)][_0x52fd94(0x41d)](_0x5f002f=>{const _0x1cfdb1=_0x52fd94;_0x5f002f[_0x1cfdb1(0x324)](_0x4960bc);});},ke*0x2);this[_0x2aa6d6(0x1ce)]['set'](_0x4960bc,_0x437e0b);}[_0x3e3f50(0x208)](_0x230c34){const _0x912338=_0x3e3f50;if(this['_clearOtherTimers'][_0x912338(0x3e6)](_0x230c34)){let _0x2c574b=this[_0x912338(0x1ce)][_0x912338(0x341)](_0x230c34);_0x2c574b&&window['clearTimeout'](_0x2c574b),this[_0x912338(0x1ce)][_0x912338(0x2e3)](_0x230c34,null);}}[_0x3e3f50(0x1f1)](_0x425c29){const _0x214caa=_0x3e3f50;let {memberID:_0x3fde90,unitIDs:_0x1a03d3}=_0x425c29;_0x1a03d3[_0x214caa(0x41d)](_0x10fca2=>{const _0x1d286f=_0x214caa;var _0xe1aa0e;let _0x534273=this['_unitOnClients'][_0x1d286f(0x341)](_0x10fca2);_0x534273&&(_0x534273['delete'](_0x3fde90),(_0xe1aa0e=this[_0x1d286f(0x2b6)](_0x10fca2))==null||_0xe1aa0e[_0x1d286f(0x1cb)](_0x534273[_0x1d286f(0x2e2)]===0x0?e['UnitStatus'][_0x1d286f(0x37e)]:e[_0x1d286f(0x3b6)][_0x1d286f(0x44b)]));}),this[_0x214caa(0x208)](_0x3fde90);}[_0x3e3f50(0x1bd)](_0x500896){const _0x444ff2=_0x3e3f50;this[_0x444ff2(0x1f4)](_0x500896[_0x444ff2(0x204)]);}[_0x3e3f50(0x379)](_0x409731){const _0x9de4fb=_0x3e3f50;localStorage[_0x9de4fb(0x1bb)]($,JSON[_0x9de4fb(0x2ff)](_0x409731));}[_0x3e3f50(0x3ee)](){const _0x11bee5=_0x3e3f50;this['_heartbeatTimer']=window[_0x11bee5(0x449)](()=>{const _0x13c570=_0x11bee5;this[_0x13c570(0x379)]({'type':0x2,'memberID':this[_0x13c570(0x44d)]});},ke);}['_ensureSubject'](_0x3a50d1){const _0x4dd17d=_0x3e3f50;return this[_0x4dd17d(0x25c)]['has'](_0x3a50d1)||this[_0x4dd17d(0x25c)]['set'](_0x3a50d1,new r[(_0x4dd17d(0x232))](e[_0x4dd17d(0x3b6)][_0x4dd17d(0x37e)])),this[_0x4dd17d(0x25c)][_0x4dd17d(0x341)](_0x3a50d1);}};Object[_0x3e3f50(0x348)](exports,_0x3e3f50(0x30f),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x3e3f50(0x348)](exports,_0x3e3f50(0x1c6),{'enumerable':!0x0,'get':function(){return C;}}),exports['IURLService']=B,Object[_0x3e3f50(0x348)](exports,'RemoteUniscriptService',{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x3e3f50(0x480)]=_e,Object[_0x3e3f50(0x348)](exports,_0x3e3f50(0x3a1),{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x3e3f50(0x33f)]=Ae;