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

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 (95) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/config/config.d.ts +7 -0
  65. package/lib/types/services/collaboration-socket/collaboration-socket.service.d.ts +1 -0
  66. package/lib/types/services/local-cache/web-local-cache.service.d.ts +11 -7
  67. package/lib/umd/facade.js +1 -1
  68. package/lib/umd/index.js +1 -1
  69. package/lib/umd/locale/ar-SA.js +1 -1
  70. package/lib/umd/locale/ca-ES.js +1 -1
  71. package/lib/umd/locale/de-DE.js +1 -1
  72. package/lib/umd/locale/en-US.js +1 -1
  73. package/lib/umd/locale/es-ES.js +1 -1
  74. package/lib/umd/locale/fa-IR.js +1 -1
  75. package/lib/umd/locale/fr-FR.js +1 -1
  76. package/lib/umd/locale/id-ID.js +1 -1
  77. package/lib/umd/locale/it-IT.js +1 -1
  78. package/lib/umd/locale/ja-JP.js +1 -1
  79. package/lib/umd/locale/ko-KR.js +1 -1
  80. package/lib/umd/locale/pl-PL.js +1 -1
  81. package/lib/umd/locale/pt-BR.js +1 -1
  82. package/lib/umd/locale/ru-RU.js +1 -1
  83. package/lib/umd/locale/sk-SK.js +1 -1
  84. package/lib/umd/locale/vi-VN.js +1 -1
  85. package/lib/umd/locale/zh-CN.js +1 -1
  86. package/lib/umd/locale/zh-HK.js +1 -1
  87. package/lib/umd/locale/zh-TW.js +1 -1
  88. package/package.json +20 -20
  89. package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +0 -32
  90. package/lib/types/controllers/collab-cursor/board-collab-cursor-render.controller.d.ts +0 -21
  91. package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +0 -35
  92. package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +0 -21
  93. package/lib/types/services/formula-calculation-guard/formula-calculation-guard.service.d.ts +0 -38
  94. package/lib/types/services/formula-calculation-guard/util.d.ts +0 -11
  95. package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +0 -15
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
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;
1
+ const _0x4a4f45=_0xd371;(function(_0x330247,_0x2e18a1){const _0xed7684=_0xd371,_0x461daf=_0x330247();while(!![]){try{const _0x41023d=parseInt(_0xed7684(0x399))/0x1+parseInt(_0xed7684(0x350))/0x2+-parseInt(_0xed7684(0x2b0))/0x3*(parseInt(_0xed7684(0x335))/0x4)+parseInt(_0xed7684(0x269))/0x5*(parseInt(_0xed7684(0x37c))/0x6)+parseInt(_0xed7684(0x385))/0x7*(parseInt(_0xed7684(0x21f))/0x8)+parseInt(_0xed7684(0x417))/0x9*(parseInt(_0xed7684(0x425))/0xa)+parseInt(_0xed7684(0x28d))/0xb*(-parseInt(_0xed7684(0x391))/0xc);if(_0x41023d===_0x2e18a1)break;else _0x461daf['push'](_0x461daf['shift']());}catch(_0x2d1242){_0x461daf['push'](_0x461daf['shift']());}}}(_0x55ab,0x2a2a9),Object['defineProperty'](exports,Symbol[_0x4a4f45(0x2e9)],{'value':_0x4a4f45(0x38c)}));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(_0x2cd692){const _0x395757=_0x4a4f45;switch(_0x2cd692){case e[_0x395757(0x24e)][_0x395757(0x3ef)]:return{'icon':(0x0,c[_0x395757(0x12b)])(o[_0x395757(0x31a)],{}),'colorClass':_0x395757(0x22e),'i18nKey':_0x395757(0x13b),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':'static'};case e['CollaborationStatus'][_0x395757(0x17e)]:return{'icon':(0x0,c['jsx'])(o[_0x395757(0x31a)],{}),'colorClass':_0x395757(0x3f3),'i18nKey':_0x395757(0x297),'clickable':!0x1,'indicator':'static'};case e[_0x395757(0x24e)][_0x395757(0x2b5)]:return{'icon':(0x0,c[_0x395757(0x12b)])(o[_0x395757(0x415)],{}),'colorClass':_0x395757(0x272),'i18nKey':_0x395757(0x29f),'clickable':!0x1,'indicator':_0x395757(0x206)};case e[_0x395757(0x24e)][_0x395757(0x274)]:return{'icon':(0x0,c[_0x395757(0x12b)])(o[_0x395757(0x1a2)],{}),'colorClass':_0x395757(0x3bc),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x395757(0x2bc)};case e[_0x395757(0x24e)][_0x395757(0x2bb)]:case e[_0x395757(0x24e)][_0x395757(0x2d0)]:return{'icon':(0x0,c['jsx'])(o['LoadingMultiIcon'],{}),'colorClass':_0x395757(0x272),'i18nKey':_0x395757(0x407),'clickable':!0x1,'indicator':_0x395757(0x206)};case e[_0x395757(0x24e)][_0x395757(0x3f5)]:return{'icon':(0x0,c['jsx'])(o['LoadingMultiIcon'],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x395757(0x206)};case e['CollaborationStatus'][_0x395757(0x1b5)]:return{'icon':(0x0,c[_0x395757(0x12b)])(o[_0x395757(0x1a2)],{}),'colorClass':_0x395757(0x128),'i18nKey':_0x395757(0x346),'clickable':!0x1,'indicator':_0x395757(0x2bc)};}}function te(_0x34483b){const _0x3c1898=_0x4a4f45;let {status$:_0x461a0d}=_0x34483b,_0x409f25=(0x0,n['useObservable'])(_0x461a0d,e[_0x3c1898(0x24e)][_0x3c1898(0x274)]),_0x551d31=(0x0,n[_0x3c1898(0x384)])(t[_0x3c1898(0x188)]),_0x482046=(0x0,n[_0x3c1898(0x384)])(e[_0x3c1898(0x3f7)]),_0x40d828=(0x0,s[_0x3c1898(0x2b3)])(()=>ee(_0x409f25),[_0x409f25]),_0x1cd47f=_0x409f25!==e[_0x3c1898(0x24e)][_0x3c1898(0x3ef)],_0x15901b=_0x551d31['t'](_0x40d828[_0x3c1898(0x27a)]),_0x2862ea=_0x40d828['tooltipKey']?_0x551d31['t'](_0x40d828[_0x3c1898(0x298)]):_0x15901b,_0x1222a7=(0x0,s[_0x3c1898(0x3ca)])(()=>{const _0x1baf6a=_0x3c1898;_0x1cd47f||_0x482046[_0x1baf6a(0x1ac)]();},[_0x1cd47f,_0x482046]),_0x57982d=(0x0,s[_0x3c1898(0x3ca)])(_0x389dde=>{const _0x27b867=_0x3c1898;!_0x1cd47f&&(_0x389dde[_0x27b867(0x3d9)]===_0x27b867(0x39a)||_0x389dde[_0x27b867(0x3d9)]==='\x20')&&(_0x389dde['preventDefault'](),_0x482046[_0x27b867(0x1ac)]());},[_0x1cd47f,_0x482046]),_0xa78277=(0x0,c['jsx'])(_0x3c1898(0x2e3),{'className':(0x0,a['clsx'])(_0x3c1898(0x226),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x40d828[_0x3c1898(0x124)],{'univer-animate-spin':_0x40d828[_0x3c1898(0x1f3)]===_0x3c1898(0x206),'univer-animate-pulse':_0x40d828[_0x3c1898(0x1f3)]==='pulse'}),'aria-hidden':'true','children':_0x40d828[_0x3c1898(0x419)]}),_0x419966=(0x0,c['jsx'])('span',{'className':(0x0,a[_0x3c1898(0x40d)])(_0x3c1898(0x226),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x3c1898(0x1db),_0x3c1898(0x2d4),_0x3c1898(0x20f),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x40d828[_0x3c1898(0x329)],'univer-cursor-default':!_0x40d828[_0x3c1898(0x329)]}),'children':_0xa78277});return _0x40d828['clickable']?(0x0,c[_0x3c1898(0x12b)])(a[_0x3c1898(0x1ee)],{'title':_0x2862ea,'placement':_0x3c1898(0x1ef),'children':(0x0,c[_0x3c1898(0x12b)])(_0x3c1898(0x1c6),{'type':_0x3c1898(0x1c6),'onClick':_0x1222a7,'onKeyDown':_0x57982d,'className':(0x0,a['clsx'])(_0x3c1898(0x351),'univer-border-none\x20univer-bg-transparent',_0x3c1898(0x160),'univer-appearance-none'),'aria-label':_0x15901b+_0x3c1898(0x1bd)+_0x2862ea,'role':_0x3c1898(0x30b),'aria-live':_0x3c1898(0x2a3),'aria-atomic':'true','children':_0x419966})}):(0x0,c[_0x3c1898(0x12b)])(a[_0x3c1898(0x1ee)],{'title':_0x2862ea,'placement':'bottom','children':(0x0,c[_0x3c1898(0x12b)])('div',{'className':(0x0,a[_0x3c1898(0x40d)])(_0x3c1898(0x351),'univer-border-none\x20univer-bg-transparent',_0x3c1898(0x160)),'aria-label':_0x15901b,'role':_0x3c1898(0x30b),'aria-live':_0x3c1898(0x2a3),'aria-atomic':_0x3c1898(0x16e),'children':_0x419966})});}function y(_0x54fb50){'@babel/helpers - typeof';const _0x2fe7d4=_0x4a4f45;return y=typeof Symbol==_0x2fe7d4(0x1b1)&&typeof Symbol[_0x2fe7d4(0x203)]==_0x2fe7d4(0x218)?function(_0x17f07f){return typeof _0x17f07f;}:function(_0x5c75d8){const _0xfa0bff=_0x2fe7d4;return _0x5c75d8&&typeof Symbol==_0xfa0bff(0x1b1)&&_0x5c75d8['constructor']===Symbol&&_0x5c75d8!==Symbol[_0xfa0bff(0x259)]?_0xfa0bff(0x218):typeof _0x5c75d8;},y(_0x54fb50);}function ne(_0x2adea8,_0x129518){const _0x1efe18=_0x4a4f45;if(y(_0x2adea8)!=_0x1efe18(0x362)||!_0x2adea8)return _0x2adea8;var _0x2328c5=_0x2adea8[Symbol['toPrimitive']];if(_0x2328c5!==void 0x0){var _0x1e1e94=_0x2328c5[_0x1efe18(0x358)](_0x2adea8,_0x129518||_0x1efe18(0x3f9));if(y(_0x1e1e94)!=_0x1efe18(0x362))return _0x1e1e94;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x129518==='string'?String:Number)(_0x2adea8);}function re(_0x4ec88c){const _0x45252c=_0x4a4f45;var _0x1af578=ne(_0x4ec88c,_0x45252c(0x2cf));return y(_0x1af578)=='symbol'?_0x1af578:_0x1af578+'';}function b(_0x29c31d,_0x58990d,_0x3a6fe1){const _0x5cfe4e=_0x4a4f45;return(_0x58990d=re(_0x58990d))in _0x29c31d?Object[_0x5cfe4e(0x2e7)](_0x29c31d,_0x58990d,{'value':_0x3a6fe1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x29c31d[_0x58990d]=_0x3a6fe1,_0x29c31d;}function x(_0x4bd34c,_0x1aa596){return function(_0x328e4a,_0x236249){_0x1aa596(_0x328e4a,_0x236249,_0x4bd34c);};}function S(_0x454497,_0x388ad3,_0xed2651,_0x30c0f2){const _0xd373bf=_0x4a4f45;var _0x5840cb=arguments[_0xd373bf(0x18e)],_0x47d545=_0x5840cb<0x3?_0x388ad3:_0x30c0f2===null?_0x30c0f2=Object[_0xd373bf(0x360)](_0x388ad3,_0xed2651):_0x30c0f2,_0x19439c;if(typeof Reflect==_0xd373bf(0x362)&&typeof Reflect[_0xd373bf(0x30c)]==_0xd373bf(0x1b1))_0x47d545=Reflect[_0xd373bf(0x30c)](_0x454497,_0x388ad3,_0xed2651,_0x30c0f2);else{for(var _0x46b324=_0x454497[_0xd373bf(0x18e)]-0x1;_0x46b324>=0x0;_0x46b324--)(_0x19439c=_0x454497[_0x46b324])&&(_0x47d545=(_0x5840cb<0x3?_0x19439c(_0x47d545):_0x5840cb>0x3?_0x19439c(_0x388ad3,_0xed2651,_0x47d545):_0x19439c(_0x388ad3,_0xed2651))||_0x47d545);}return _0x5840cb>0x3&&_0x47d545&&Object[_0xd373bf(0x2e7)](_0x388ad3,_0xed2651,_0x47d545),_0x47d545;}let C=class extends t[_0x4a4f45(0x423)]{constructor(_0x42df4f,_0x3b28b5,_0x54a749,_0x4b6e91,_0x6c67e7){const _0x32b76f=_0x4a4f45;super(),this[_0x32b76f(0x25c)]=_0x42df4f,this[_0x32b76f(0x38f)]=_0x3b28b5,this['_collaborationController']=_0x54a749,this[_0x32b76f(0x24a)]=_0x4b6e91,this[_0x32b76f(0x159)]=_0x6c67e7,b(this,_0x32b76f(0x356),new r[(_0x32b76f(0x154))](e[_0x32b76f(0x24e)]['NOT_COLLAB'])),b(this,_0x32b76f(0x33b),new Map()),this[_0x32b76f(0x25f)](),this[_0x32b76f(0x2eb)](),this[_0x32b76f(0x320)]();}[_0x4a4f45(0x288)](){const _0x755723=_0x4a4f45;this['_presenceStatusRegistrations'][_0x755723(0x22c)](_0xf5bf97=>_0xf5bf97[_0x755723(0x288)]()),this[_0x755723(0x33b)][_0x755723(0x337)](),this[_0x755723(0x356)][_0x755723(0x2c6)](),super['dispose']();}['_initStatusListener'](){const _0x2ef0cd=_0x4a4f45;this[_0x2ef0cd(0x2ad)]((0x0,r[_0x2ef0cd(0x42a)])(this['_univerInstanceService']['focused$'],this[_0x2ef0cd(0x25c)][_0x2ef0cd(0x135)](t[_0x2ef0cd(0x397)][_0x2ef0cd(0x19b)]),this[_0x2ef0cd(0x25c)][_0x2ef0cd(0x135)](t['UniverInstanceType'][_0x2ef0cd(0x379)]))[_0x2ef0cd(0x237)]((0x0,i[_0x2ef0cd(0x19c)])(()=>ie(this[_0x2ef0cd(0x25c)])),(0x0,i[_0x2ef0cd(0x1ea)])(),(0x0,r[_0x2ef0cd(0x3cd)])(_0x12b9cc=>_0x12b9cc?this['_collaborationController'][_0x2ef0cd(0x359)](_0x12b9cc):(0x0,r['of'])(null)),(0x0,r[_0x2ef0cd(0x3cd)])(_0x42a8bf=>_0x42a8bf?_0x42a8bf[_0x2ef0cd(0x145)]:(0x0,r['of'])(e['CollaborationStatus'][_0x2ef0cd(0x274)])))[_0x2ef0cd(0x195)](_0x59ccd5=>{const _0x3f5780=_0x2ef0cd;this[_0x3f5780(0x356)]['next'](_0x59ccd5);}));}[_0x4a4f45(0x25f)](){const _0x4cf645=_0x4a4f45;this[_0x4cf645(0x2ad)](this[_0x4cf645(0x24a)][_0x4cf645(0x2fe)](n[_0x4cf645(0x2f5)][_0x4cf645(0x16c)],()=>(0x0,n['connectInjector'])(w({'status$':this[_0x4cf645(0x356)]['asObservable']()}),this[_0x4cf645(0x38f)])));}[_0x4a4f45(0x320)](){const _0x161911=_0x4a4f45;let _0x3197a6=this[_0x161911(0x159)][_0x161911(0x153)]['subscribe'](_0x41baab=>{const _0x80738=_0x161911;this[_0x80738(0x198)](_0x41baab);});this[_0x161911(0x2ad)]((0x0,t[_0x161911(0x2be)])(()=>_0x3197a6[_0x161911(0x372)]()));}[_0x4a4f45(0x198)](_0x1b5424){const _0x5e5ba6=_0x4a4f45;let _0x17d3c9=new Map(_0x1b5424[_0x5e5ba6(0x3e3)](_0x158c64=>_0x158c64[_0x5e5ba6(0x1ed)]!=null)['map'](_0x5b841d=>[_0x5b841d[_0x5e5ba6(0x348)],_0x5b841d]));this[_0x5e5ba6(0x33b)][_0x5e5ba6(0x22c)]((_0x4be28a,_0x624dc2)=>{const _0x4460c6=_0x5e5ba6;_0x17d3c9[_0x4460c6(0x33a)](_0x624dc2)||(_0x4be28a[_0x4460c6(0x288)](),this[_0x4460c6(0x33b)][_0x4460c6(0x426)](_0x624dc2));}),_0x17d3c9['forEach']((_0x560373,_0x7265c5)=>{const _0x4e5069=_0x5e5ba6;this[_0x4e5069(0x33b)]['has'](_0x7265c5)||this[_0x4e5069(0x277)](_0x560373);});}[_0x4a4f45(0x277)](_0x1b70d8){const _0x387324=_0x4a4f45;let _0x2cfc79=_0x1b70d8['statusUIPart'];if(!_0x2cfc79)return;let _0x23d796=new t[(_0x387324(0x403))](),_0x57d1c8=new r[(_0x387324(0x154))](e[_0x387324(0x24e)][_0x387324(0x274)]);_0x23d796['add']((0x0,t[_0x387324(0x2be)])(()=>_0x57d1c8[_0x387324(0x2c6)]())),_0x23d796[_0x387324(0x307)](this[_0x387324(0x24a)][_0x387324(0x2fe)](_0x2cfc79,()=>(0x0,n[_0x387324(0x282)])(w({'status$':_0x57d1c8[_0x387324(0x34c)]()}),this[_0x387324(0x38f)])));let _0x57b21f=this[_0x387324(0x25c)][_0x387324(0x135)](_0x1b70d8['unitType'])[_0x387324(0x237)]((0x0,i['map'])(_0x3e6f2b=>(_0x3e6f2b==null?void 0x0:_0x3e6f2b[_0x387324(0x370)]())??null),(0x0,i[_0x387324(0x1ea)])(),(0x0,r[_0x387324(0x3cd)])(_0xf83c07=>_0xf83c07?this[_0x387324(0x3d5)]['getCollabEntity$'](_0xf83c07):(0x0,r['of'])(null)),(0x0,r[_0x387324(0x3cd)])(_0x177378=>(_0x177378==null?void 0x0:_0x177378[_0x387324(0x145)])??(0x0,r['of'])(e[_0x387324(0x24e)][_0x387324(0x274)])))[_0x387324(0x195)](_0x55886b=>_0x57d1c8['next'](_0x55886b));_0x23d796[_0x387324(0x307)]((0x0,t['toDisposable'])(()=>_0x57b21f['unsubscribe']())),this['_presenceStatusRegistrations'][_0x387324(0x1a1)](_0x1b70d8[_0x387324(0x348)],_0x23d796);}};C=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x4a4f45(0x289)])(t['Injector'])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(e['CollaborationController'])),x(0x3,n['IUIPartsService']),x(0x4,(0x0,t[_0x4a4f45(0x289)])(n[_0x4a4f45(0x1b7)]))],C);function ie(_0xe42414){const _0x3557f0=_0x4a4f45;let _0x1fa9a9=_0xe42414['getFocusedUnit'](),_0x5988d2=_0x1fa9a9==null?void 0x0:_0x1fa9a9[_0x3557f0(0x370)]();if(_0x5988d2&&!(0x0,t[_0x3557f0(0x2b7)])(_0x5988d2))return _0x5988d2;let _0x41530e=_0xe42414['getCurrentUnitOfType'](t[_0x3557f0(0x397)]['UNIVER_DOC']),_0x4b93b8=_0x41530e==null?void 0x0:_0x41530e[_0x3557f0(0x370)]();if(_0x4b93b8&&!(0x0,t['isInternalEditorID'])(_0x4b93b8))return _0x4b93b8;let _0x27de35=_0xe42414[_0x3557f0(0x2dc)](t[_0x3557f0(0x397)]['UNIVER_SHEET']);if(_0x27de35)return _0x27de35['getUnitId']();let _0x1f54eb=_0xe42414[_0x3557f0(0x413)](t[_0x3557f0(0x397)][_0x3557f0(0x19b)])['find'](_0x1417aa=>!(0x0,t['isInternalEditorID'])(_0x1417aa[_0x3557f0(0x370)]()));return _0x1f54eb?_0x1f54eb['getUnitId']():null;}function w(_0x2d65bd){let {status$:_0x3da216}=_0x2d65bd;return function(){const _0x55ff28=_0xd371;return(0x0,c[_0x55ff28(0x12b)])(te,{'status$':_0x3da216});};}var ae=_0x4a4f45(0x319),oe=_0x4a4f45(0x1c1);const T={'id':'collaboration-client-ui.operation.update-remote-unit-presence','type':t[_0x4a4f45(0x150)][_0x4a4f45(0x240)],'handler':(_0x5c041b,_0x48cc48)=>{const _0x28064b=_0x4a4f45;let _0x23d72c=_0x5c041b[_0x28064b(0x39f)](n[_0x28064b(0x1b7)])[_0x28064b(0x39f)](_0x48cc48[_0x28064b(0x348)]);if(!_0x23d72c)return!0x1;switch(_0x48cc48['update']['type']){case _0x28064b(0x1a1):return _0x23d72c['setRemotePresence'](_0x48cc48[_0x28064b(0x410)][_0x28064b(0x1a0)]),!0x0;case _0x28064b(0x221):return _0x23d72c[_0x28064b(0x352)](_0x48cc48[_0x28064b(0x410)][_0x28064b(0x3ad)],_0x48cc48[_0x28064b(0x410)][_0x28064b(0x1f0)]),!0x0;case'clear':return _0x23d72c[_0x28064b(0x1f5)](_0x48cc48[_0x28064b(0x410)][_0x28064b(0x3ad)]),!0x0;default:return!0x1;}}},se={};let E=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x31eff7,_0x3fc7e2){const _0x4001f5=_0x4a4f45;super(),this['_docClipboardService']=_0x31eff7,this['_imageIoService']=_0x3fc7e2,this[_0x4001f5(0x332)]();}[_0x4a4f45(0x332)](){const _0x1f5eb7=_0x4a4f45;let _0x2cc5e7=this;this[_0x1f5eb7(0x2ad)](this[_0x1f5eb7(0x1e8)]['addClipboardHook']({'onBeforePasteImage':async _0x282680=>{const _0x437040=_0x1f5eb7;let _0x377d76=await _0x2cc5e7[_0x437040(0x28f)]['saveImage'](_0x282680);return _0x377d76?{'source':_0x377d76[_0x437040(0x167)],'imageSourceType':_0x377d76[_0x437040(0x3b4)]}:null;}}));}};function _0x55ab(){const _0x370281=['_textBubble','EffectRefRangId','_dispose$','_onCursorUpdate','handleInsertCol','[Unhandled\x20Rejection]:\x20','transformMutationsWithChangeset','registerComponent','_anchor','_startDocCollabCursor','_offsetY','purple.300','getItem','params','_revisionService','message','add','_uploadLog','getTypeOfUnitAdded$','visible','status','decorate','collabCursorState$','isActive','ColorKit','resize','jsxs','_adapterRegistry','userId','_assignedColors','find','_clearTimeoutState','setItem','_cursorInfo$','@univerjs-pro/collaboration-client-ui','OffLineIcon','right','Subject','getCoordRelativeToViewport','_getAnchorBounding','LOADING_BLOCKS','_initPresenceStatusComponents','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','timer','subunit','_getSaveTimeout','enableUrlUnitLoader','isEditing','_updateSubUnitFromURLParams','MoveRangeCommandId','clickable','_normalizeUserId','bold\x2013px\x20Arial,\x20sans-serif','UPDATE_CURSOR','_unitOnClients','transform','_range','assignAColorForMemberID','requireSession','_init','top','keys','716664nOPocd','_registerRenderDependencies','clear','highlightSecond','SheetCollabCursorShape','has','_presenceStatusRegistrations','replace','_beforeCloseService','selection','_highlightSecond','getOffsetConfig','onPointerMove$','collaboration-client-ui.session.collaboration-timeout','transformMutation','IURLService','MessageType','collaboration-client-ui.collabStatus.synced','isArray','unitType','_transformService','RevisionService','SHEET_VIEWPORT_KEY','asObservable','startsWith','isTransformMutationsWithChangesetSuccess','Rectangle','182420RGcsAv','univer-inline-flex\x20univer-items-center\x20univer-justify-center','removeRemotePresence','fromEventSubject','_docTransformIMECacheService','range','_status$','_handleHeartbeatEvent','call','getCollabEntity$','black','getMergeData','allSettled','endColumn','serializeRangeWithSheet','number','getOwnPropertyDescriptor','selectedIds','object','div','rgba','getLocalPresence','_disposed','timeoutId','_initDependencies','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','useObservable','_syncAdapters','setActiveRange','ILocalCacheService','_disabled','...','getUnitId','removeParam','unsubscribe','_pointerMoveDisposable','_memberService','hide','getDocumentSkeletonColumnPagePathInfo','tableId','column','UNIVER_SHEET','_handleLeaveEvent','memberID','171246utFbOp','getCurrentUser','text','_collabCursorState$','socket$','getColorFromTheme','IConfigService','_getScale','useDependency','5754OBMwCQ','GLOBAL','mergeOverrideWithDependencies','DeleteRangeMoveUpCommandId','newValue','loadedBlocks','_online','Module','online$','_docSkeleton','_injector','_render','5683596qHJHyX','_transformHistoryAndStateStack','getValue','save','_blinkIntervalTimer','_watchBlockProgress','UniverInstanceType','_showConflictCacheClearFailedNotification','48378OqRXXM','Enter','getUnitStatus$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN',',\x200.2)','fillStyle','get','catch','highlight','_updateURLWithCurrentState','_showConflictProcessingNotification','_blockProgressWatches','selections','_retryConflictCacheClear','_updateMessage','reason','[RemoteUniscriptService]:\x20no\x20focused\x20unit','unshift','alert','onMouseMove','unitId','_drawAnchor','code','IBeforeCloseService','_disposeEntity','push','name','imageSourceType','_cachedData','getTypeOfUnitDisposed$','onCommandExecuted','_scheduleClearOtherTimer','_labelHorizontalPosition','createInstance','_handleCursorUpdate','univer-text-gray-400','_clearRemotePresences','makeDirty','_scheduleSaving','presenceKind','override','Workbook','backupOfflineData','addEventListener','InsertRangeMoveRightCommandId','_send','collab-rect-range-','_labelPosition','[LogService\x20Error]:\x20','useCallback','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_docStateChangeManagerService','switchMap','focus','_stopBlinking','slice','/run/','_urlService','ILogService','snapshot-loading-','_collaborationController','getRenderUnitById','_getUserId','_clearOtherTimers','key','parseInt','size','_onCursorDelete','_selfUnitIDs','currentSkeleton$','columnIndex','color','with','lineTo','filter','Tools','_refreshCollabCursors','ERROR','NO_OTHER_CLIENTS_EDITING','USERS_LEAVE','_roomMembers$','_heartbeatTimer','_docSkeletonManagerService','CONFLICT_PROCESSING','getViewport','ErrorCode','OFFLINE','split','dispose$','SessionStatus','univer-text-orange-500','IRenderManagerService','PENDING','CONFLICT_CACHE_CLEAR_FAILED','CollaborationSessionService','mutations','default','_logService','filename','activeSheet$','transformByState','getCurrentSelections','_snapshotLoadingService','_initEntityListener','_listenToOnlineEvent','some','DisposableCollection','createSocket','_collabCursorController','wsSessionTicketUrl','collaboration-client-ui.collabStatus.syncing','prepareTransformSelections','replaceSelectionInfoWithoutRefresh','_disposeEntitiesForType','_saveTaskMap','values','clsx','every','setTimeout','update','FromArray','MemberService','getAllUnitsForType','pointer','LoadingMultiIcon','_retryingConflictCacheUnitIDs','135fyuWrU','setStateCache','icon','startColumn','_setupBeforeClosingHandler','textRanges','collaboration-client-ui.conflict.title','_id','roomMembers$','_colorIndex','_docTransformSelectionsService','_removeCollabCursors','Disposable','_blinkTimer','161030wuKqKz','delete','_initWindowErrorListener','kind','_sheetSkeletonManagerService','merge','visibilityState','#FFF','init','takeUntil','rgba(','endRow','_adapterDisposables','colorClass','_toggleOnline','colno','getColor','univer-text-green-500','_messageIds','loadUnit','jsx','parse','_instanceService','0.2)','Failed','_scheduleHeartbeat','_updateCollabCursors','startRow','_renderManagerService','_listenToOfflineEvent','getCurrentTypeOfUnit$','_document','triggerDblclick','_cursors','min','pushState','collaboration-client-ui.collabStatus.offline','\x20at\x20','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','next','search','_isBlinkVisible','ISocketService','_syncEditingCollabCursorService','debounce','now','status$','currentTheme$','addObjects','type','enableOfflineEditing','createIdentifier','_commandService','IImageIoService','DocSelectionManagerService','HTTPEventType','showText','CommandType','location','href','adapters$','BehaviorSubject','shareReplay','getParam','disableLocalCache','Unknown\x20user','_presenceAdapterRegistry','deepClone','saveTaskMap','fromEvent','onLine','_initUnhandledRejectionListener','stack','univer-m-0\x20univer-p-0','enableFrontendLog','BrowserCollaborationSocketService','getLocalCacheKey','_onRefRangeChange','flatMap','toISOString','source','_messageService','DOC_RANGE_TYPE','getActiveSheet','collaboration-client-ui.collaboration.closeRoom','HEADER_MENU','_getSheetObject','true','HEADER','eventID','_collaborationSessionService','bind','_notificationService','_docTransformStateCacheService','UnitStatus','engine','_startSheetCollabCursor','/universer-api/frontend/logs','Warning','_removeRemotePresence','getScrollXYInfoByViewport','SetTextSelectionsOperation','_memberID','CONFLICT','_localCacheService','getSheetBySheetId','unit','getSkeleton','state$','doc.mutation.rich-text-editing','DocIMEInputManagerService','runRefRangeMutations','clearTimeout','LocaleService','getConfig','getAncestorScale','SetWorksheetActivateCommand','data','executeCommand','length','searchParams','entityInit$','measureText','_themeService','UniverRenderEnginePlugin','SheetsSelectionsService','subscribe','_docSyncEditingCollabCursorService','getCollabCursors$','_syncPresenceStatusComponents','replaceState','fillText','UNIVER_DOC','map','HTTPService','SOCKET_FAILED_RETRY','setConfig','state','set','OnLineIcon','rgb','_adapter','getDocRanges','handleDeleteRangeMoveUp','runId','getFocusedUnit','_userManagerService','_scene','addHandlerCallback','reconnect','WebBrowserSingleActiveUnitService','transformRemoteChangeset','getMemberID','_clearBlockProgressWatch','function','redoState','offsetY','Shape','SYNCED','row','IUnitPresenceUIAdapterRegistry','_replaceConflictNotification','subUnitId','InsertRangeMoveDownCommandId','pageIndex','CollaborationUIEventService','\x20-\x20','roomMembers','addObject','Plugin','1.1.0','_colorAssignService','_initResize','_latestStates','startOffset','button','UniverLicensePlugin','_trackActiveSaveTask','lineno','_bindAdapter','ACTIVE_UNIT_EVENT_CHANNEL','Error','RegularPolygon','offline','storage','getUndoRedoMutationParamsCache','collaboration-client-ui.conflict.clearFailed','DEFAULT_WS_SESSION_TICKET_URL','_refRangeService','loadOfflineData','_context','toString','SetSelectionsOperation','editingUnit','onPointerEnter$','_pendingEntities','univer-transition-all\x20univer-duration-200','setParam','_hideTimer','ICommandService','registerCommand','focusedId','post','collaboration-client-ui.session.will-retry','_session',':backup:','syncEditingCollabCursor','_showText','_name','_docClipboardService','getMember','distinctUntilChanged','handleInsertRow','transformStateCache','statusUIPart','Tooltip','bottom','memberId','_ensureSubject','_sendLocalPresence','indicator','toRgbString','clearRemotePresences','getSheetObject','stream','disposeUnit','findNodePositionByCharIndex','exhaustSavingTask','VIEW_MAIN','UniverCollaborationClientPlugin','online','Rect','IUniverInstanceService','UniverCollaborationPlugin','saveOfflineData','[CollaborationDataLoaderController]','iterator','subscribeEvent','_drawRectRange','spin','_saveCache','snapshot-loading-timeout','restore','ITransformService','touchDependencies','shareInterval','Loading','send','dark:focus:!univer-ring-offset-gray-800','registerDependencies','_drawTextRange','event$','_toggleOffline','_initEvent','width','urlChange$','visibilitychange','symbol','labelPosition','options','combineLatest','_docSelectionManagerService','height','CollaborationController','2936ibnyXx','NodePositionConvertToCursor','remove','IUIPartsService','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','getStateCache','evenodd','univer-flex\x20univer-items-center\x20univer-justify-center','unload','enableDocumentCollaborationUI','registerRenderModule','setShapeProps','preventDefault','forEach','sheetID','univer-text-red-500','red.300','setInterval','UserManagerService','reload','getCurrentRevOfUnit','timeoutState$','columnGroupId','userID','pipe','_getSessionTicket','OTHER_CLIENTS_EDITING','registerRefRange','_dataLoaderService','_startBlinking','handleDeleteRangeMoveLeft','_localStorageService','_activeSaveTaskMap','OPERATION','from','moveTo','CollaborationEvent','SnapshotLoadStage','getRangePointData','unitID','_cursorShapes','_online$','_localeService','_uiPartsService','LOCAL_CACHE_INTERVAL_KEY','yellow.400','ILocalStorageService','CollaborationStatus','updateOfflineData','_unitStatus','CLOSE_ROOM','transformIMECache','drawWith','undoState','_removeClearOtherTimer','collaboration-client-ui.session.connection-failed','SetDocZoomRatioOperation','beginPath','prototype','_startEntity','content','_univerInstanceService','collaboration-client-ui.conflict.content','handleIRemoveRow','_initStatusComponent','ThemeService','finally','TEXT_RANGE_LAYER_INDEX','collaboration-client-ui.config','_shapes','DesktopCollaborationStatusDisplayController','includes','_updateLocalCursor','_lastPointer','25buyLkG','FOOTER','stringify','pageType','join','Injector','collaboration-client-ui.collaboration.single-unit.warning','debounceTime','UniverDocsPlugin','univer-text-blue-500','DocCollaborationEntity','NOT_COLLAB','sheetId','cursorInfo','_registerPresenceStatusComponent','_getLighterColor','body','i18nKey','_collabSessionService','_anchorDot','ISnapshotServerService','sessionTicket','error','RichTextEditingMutation','_configService','connectInjector','DocumentSkeletonPageType','_initialized','DataLoaderService','_doCreateSocket','_draw','dispose','Inject','all','IMessageService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','11royWuo','generateRandomId','_imageIoService','rgba(255,\x20255,\x20255,\x200.01)','timeout','_entityInit$','_highlight','setUndoRedoMutationParamsCache','show','cursorInfo$','collaboration-client-ui.collabStatus.conflict','tooltipKey','_handleHover','canRenderSelection','CollaborationUIEventId','clearInterval','_handleJoinEvent','_color','collaboration-client-ui.collabStatus.fetchMiss','handleInsertRangeMoveDown','getUnhiddenWorksheets','_conflictNotification','polite','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','JOIN_ROOM_FAILED','RxDisposable','collaboration-client-ui.snapshotLoading.refresh','_timeoutState$','setAlpha','_createSocketURL','history','_monkeyPatchLogService','disposeWithMe','enableLocalCache','primary','3SQPiFi','then','RemoveColCommandId','useMemo','sessionStatus$','FETCH_MISS','_backgroundColor','isInternalEditorID','_transformUndoRedoStack','_config','createElement','AWAITING','static','_eventUnsubscribe','toDisposable','Vector2','_entities','PERMISSION_DENIED','_cursor','CollaborationSocketService','ranges','arc','complete','InsertRowCommandId','RemoveRowCommandId','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getCoordByCell','font','_hovered','_collaborationUIEventService','_httpService','string','AWAITING_WITH_PENDING','small','collaboration-client-ui.conflict.processing','DocStateChangeManagerService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_initUserListener','Button','stage','setOffsetY','version','executionId','segmentPage','getCurrentUnitOfType','isFinite','getSheetId','removeItem','_isVisibleUnit','GET','isTransformMutationFailure','span','m1Prime','fillRule','backgroundColor','defineProperty','ONLINE','toStringTag','collaboration-client-ui.permission.title','_initStatusListener','_hover','m2Prime','COLORS','clearOfflineData','DeleteRangeMoveLeftCommandId','removeEventListener','closePath','UniverDocsUIPlugin','fill','BuiltInUIPart','timedOut'];_0x55ab=function(){return _0x370281;};return _0x55ab();}E=S([x(0x0,f['IDocClipboardService']),x(0x1,t[_0x4a4f45(0x14c)])],E);const ce=[_0x4a4f45(0x302),'jiqing.500','green.600',_0x4a4f45(0x22f),'blue.400',_0x4a4f45(0x24c)];var D=class extends t[_0x4a4f45(0x423)]{constructor(..._0x2b1df9){const _0xf9a30b=_0x4a4f45;super(..._0x2b1df9),b(this,_0xf9a30b(0x314),new Map()),b(this,_0xf9a30b(0x420),0x0);}[_0x4a4f45(0x330)](_0x21f9e0){const _0x599a0e=_0x4a4f45;if(this[_0x599a0e(0x314)][_0x599a0e(0x33a)](_0x21f9e0))return this[_0x599a0e(0x314)][_0x599a0e(0x39f)](_0x21f9e0);let _0x2b084f=ce[this[_0x599a0e(0x420)]];return this[_0x599a0e(0x420)]=(this[_0x599a0e(0x420)]+0x1)%ce[_0x599a0e(0x18e)],this[_0x599a0e(0x314)][_0x599a0e(0x1a1)](_0x21f9e0,_0x2b084f),_0x2b084f;}};function le(_0x1e5f15){const _0x5dcd73=_0x4a4f45;let _0x308d98='';for(let _0x51b984 of _0x1e5f15){let {startOffset:_0x11dc60,endOffset:_0xc31610,isActive:_0x2abfbe,rangeType:_0x12fd55,segmentId:_0x5cb9a4,segmentPage:_0x2be2a5}=_0x51b984;_0x308d98[_0x5dcd73(0x18e)]&&(_0x308d98+=','),_0x308d98+=_0x11dc60+':'+_0xc31610+':'+(_0x2abfbe?'1':'0')+':'+_0x12fd55+':'+_0x5cb9a4+':'+_0x2be2a5;}return _0x308d98;}function ue(_0xb33801){const _0x132f2f=_0x4a4f45;let _0x32d9d5=_0xb33801[_0x132f2f(0x3f0)](','),_0x32d372=[];for(let _0xe90c58 of _0x32d9d5){let [_0x5318ad,_0xd0f37d,_0x2c64fa,_0x5894b5,_0x1be126,_0x20a9f3]=_0xe90c58['split'](':');_0x32d372[_0x132f2f(0x3b2)]({'startOffset':Number(_0x5318ad),'endOffset':Number(_0xd0f37d),'collapsed':_0x5318ad===_0xd0f37d,'isActive':_0x2c64fa==='1','rangeType':_0x5894b5===t['DOC_RANGE_TYPE']['TEXT']?t[_0x132f2f(0x169)]['TEXT']:t[_0x132f2f(0x169)]['RECT'],'segmentId':typeof _0x1be126==_0x132f2f(0x2cf)?String(_0x1be126):'','segmentPage':Number(_0x20a9f3??-0x1)});}return _0x32d372[_0x132f2f(0x402)](_0x7e9c09=>_0x7e9c09[_0x132f2f(0x30e)])||(_0x32d372[0x0][_0x132f2f(0x30e)]=!0x0),_0x32d372;}var O=class extends t[_0x4a4f45(0x2a6)]{constructor(..._0x3d167d){const _0x250455=_0x4a4f45;super(..._0x3d167d),b(this,_0x250455(0x37f),new r[(_0x250455(0x154))](null)),b(this,_0x250455(0x30d),this[_0x250455(0x37f)][_0x250455(0x34c)]());}[_0x4a4f45(0x1e5)](_0x1e688e){const _0x81accb=_0x4a4f45;let {unitID:_0x5d794f,memberID:_0x25f41d,textRanges:_0x561a70}=_0x1e688e,_0x3541b6=le(_0x561a70);if(_0x3541b6==='')return;let _0xbd380d={'unitID':_0x5d794f,'memberID':_0x25f41d,'selection':_0x3541b6};this[_0x81accb(0x37f)][_0x81accb(0x13e)](_0xbd380d);}};let k=class extends t[_0x4a4f45(0x2a6)]{get['cursorInfo'](){const _0x2db7f4=_0x4a4f45;return this[_0x2db7f4(0x318)]['getValue']();}get[_0x4a4f45(0x1be)](){const _0x21b22b=_0x4a4f45;return this['_roomMembers$'][_0x21b22b(0x393)]();}constructor(_0x4b2878,_0x4919c1,_0x1d7c48,_0x4cb815,_0x2816af,_0x36be6c,_0x5ef2d8,_0x523a7f,_0x291068){const _0x174991=_0x4a4f45;super(),this[_0x174991(0x246)]=_0x4b2878,this[_0x174991(0x1e3)]=_0x4919c1,this[_0x174991(0x38f)]=_0x1d7c48,this[_0x174991(0x1c2)]=_0x4cb815,this['_memberService']=_0x2816af,this[_0x174991(0x142)]=_0x36be6c,this[_0x174991(0x349)]=_0x5ef2d8,this['_univerInstanceService']=_0x523a7f,this['_commandService']=_0x291068,b(this,_0x174991(0x38b),!0x1),b(this,_0x174991(0x332),!0x1),b(this,_0x174991(0x318),new r[(_0x174991(0x154))](new Map())),b(this,'cursorInfo$',this[_0x174991(0x318)][_0x174991(0x34c)]()),b(this,'_roomMembers$',new r[(_0x174991(0x154))]([])),b(this,_0x174991(0x41f),this[_0x174991(0x3e9)][_0x174991(0x237)]((0x0,r[_0x174991(0x270)])(0x12c))),b(this,'_updateLocalCursor',(0x0,t[_0x174991(0x143)])(_0x3c2750=>{const _0x547b91=_0x174991;let _0x560f06={'eventID':l['CollaborationEvent'][_0x547b91(0x32c)],'data':{'unitID':this[_0x547b91(0x246)],'memberID':this[_0x547b91(0x1e3)]['getMemberID'](),'selection':le(_0x3c2750)}};this[_0x547b91(0x1e3)][_0x547b91(0x20e)](_0x560f06,this[_0x547b91(0x246)]);},0x64));}[_0x4a4f45(0x288)](){const _0x5e16ba=_0x4a4f45;super[_0x5e16ba(0x288)](),this[_0x5e16ba(0x318)][_0x5e16ba(0x13e)](new Map()),this[_0x5e16ba(0x318)][_0x5e16ba(0x2c6)](),this['_roomMembers$']['next']([]),this[_0x5e16ba(0x3e9)][_0x5e16ba(0x2c6)]();}[_0x4a4f45(0x42d)](){const _0x5772e7=_0x4a4f45;this['_init']||(this[_0x5772e7(0x332)]=!0x0,this[_0x5772e7(0x1e3)]['sessionStatus$']['pipe']((0x0,r[_0x5772e7(0x42e)])(this[_0x5772e7(0x3f1)]))[_0x5772e7(0x195)](_0x446ed7=>{const _0x41646a=_0x5772e7;_0x446ed7===e[_0x41646a(0x3f2)][_0x41646a(0x2e8)]?this['_toggleOnline']():this[_0x41646a(0x213)]();}),this['_session'][_0x5772e7(0x212)][_0x5772e7(0x237)]((0x0,r[_0x5772e7(0x42e)])(this['dispose$']))[_0x5772e7(0x195)](_0x28ab5e=>{const _0x4ad7d1=_0x5772e7;let _0x41b323=_0x28ab5e[_0x4ad7d1(0x170)];_0x41b323===l[_0x4ad7d1(0x243)]['UPDATE_CURSOR']&&this[_0x4ad7d1(0x2fa)](_0x28ab5e),_0x41b323===l[_0x4ad7d1(0x243)][_0x4ad7d1(0x3e8)]&&this[_0x4ad7d1(0x3dc)](_0x28ab5e);}),this[_0x5772e7(0x2ad)](this['_commandService']['onCommandExecuted'](_0x59123d=>{const _0x3f879d=_0x5772e7;let _0xcae9c8=_0x59123d['params'];_0xcae9c8!=null&&this[_0x3f879d(0x38b)]&&_0x59123d['id']===d[_0x3f879d(0x17c)]['id']&&_0xcae9c8['unitId']===this[_0x3f879d(0x246)]&&_0xcae9c8[_0x3f879d(0x326)]===!0x1&&_0xcae9c8[_0x3f879d(0x2c4)][_0x3f879d(0x18e)]>0x0&&this[_0x3f879d(0x267)](_0xcae9c8[_0x3f879d(0x2c4)]);})),this[_0x5772e7(0x142)][_0x5772e7(0x30d)][_0x5772e7(0x237)]((0x0,r[_0x5772e7(0x42e)])(this[_0x5772e7(0x3f1)]))[_0x5772e7(0x195)](_0x3dc332=>{const _0x48fcc3=_0x5772e7;if((_0x3dc332==null?void 0x0:_0x3dc332['unitID'])!==this[_0x48fcc3(0x246)])return;let _0x1c5046={'eventID':l[_0x48fcc3(0x243)][_0x48fcc3(0x32c)],'data':_0x3dc332};this[_0x48fcc3(0x2fa)](_0x1c5046);}),this[_0x5772e7(0x2ad)](this['_commandService'][_0x5772e7(0x3b7)](_0xf6126d=>{const _0x6f955c=_0x5772e7;if(_0xf6126d[_0x6f955c(0x304)]==null)return;let _0x1086e9=_0xf6126d[_0x6f955c(0x304)];if(_0xf6126d['id']!==d[_0x6f955c(0x280)]['id']||_0x1086e9[_0x6f955c(0x3ad)]!==this[_0x6f955c(0x246)])return;let _0x24ba9d={'id':_0x6f955c(0x184),'params':_0x1086e9},_0x38cf9a=this[_0x6f955c(0x276)];for(let [_0x18067d,_0x1d4bfb]of _0x38cf9a){let _0x4d7a99={'id':_0x6f955c(0x184),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1d4bfb[_0x6f955c(0x2c4)]}},_0x220865=this[_0x6f955c(0x349)][_0x6f955c(0x343)](_0x24ba9d,_0x4d7a99,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x220865))throw _0x220865[_0x6f955c(0x27f)];_0x38cf9a[_0x6f955c(0x1a1)](_0x18067d,{..._0x1d4bfb,'ranges':_0x220865[_0x6f955c(0x2ed)][_0x6f955c(0x304)][_0x6f955c(0x41c)]});}queueMicrotask(()=>{const _0x3cef99=_0x6f955c;this['_cursorInfo$'][_0x3cef99(0x13e)](_0x38cf9a);});})));}[_0x4a4f45(0x2fa)](_0x4541f8){const _0x116a84=_0x4a4f45;var _0x5b59e;let {memberID:_0x11035a,selection:_0x208c8d}=_0x4541f8[_0x116a84(0x18c)],_0x460567=ue(_0x208c8d),_0x406d73=((_0x5b59e=this[_0x116a84(0x374)]['getMember'](this[_0x116a84(0x246)],_0x11035a))==null?void 0x0:_0x5b59e[_0x116a84(0x3b3)])??'Unknown\x20user',_0x13ab5f={'color':this[_0x116a84(0x1c2)]['assignAColorForMemberID'](_0x11035a),'name':_0x406d73,'ranges':_0x460567},_0x557f0d=this[_0x116a84(0x276)];_0x557f0d[_0x116a84(0x1a1)](_0x11035a,_0x13ab5f),this[_0x116a84(0x318)]['next'](_0x557f0d);}[_0x4a4f45(0x3dc)](_0x1ecae2){const _0xff2642=_0x4a4f45;let {memberID:_0x37b8ec}=_0x1ecae2[_0xff2642(0x18c)],_0x2eabe9=this[_0xff2642(0x276)];_0x2eabe9[_0xff2642(0x426)](_0x37b8ec),this[_0xff2642(0x318)][_0xff2642(0x13e)](_0x2eabe9);}[_0x4a4f45(0x125)](){const _0x5d25b5=_0x4a4f45;var _0x5be400;if(this[_0x5d25b5(0x38b)]=!0x0,((_0x5be400=this[_0x5d25b5(0x25c)]['getFocusedUnit']())==null?void 0x0:_0x5be400['getUnitId']())!==this[_0x5d25b5(0x246)])return;let _0x34a535=this['_injector'][_0x5d25b5(0x39f)](d[_0x5d25b5(0x14d)])[_0x5d25b5(0x1a5)]();Array[_0x5d25b5(0x347)](_0x34a535)&&_0x34a535[_0x5d25b5(0x18e)]>0x0&&this[_0x5d25b5(0x267)](_0x34a535);}[_0x4a4f45(0x213)](){const _0x42e937=_0x4a4f45;this[_0x42e937(0x38b)]=!0x1;}};k=S([x(0x2,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x3,(0x0,t[_0x4a4f45(0x289)])(D)),x(0x4,(0x0,t[_0x4a4f45(0x289)])(e['MemberService'])),x(0x5,(0x0,t[_0x4a4f45(0x289)])(O)),x(0x6,l['ITransformService']),x(0x7,t[_0x4a4f45(0x1ff)]),x(0x8,t[_0x4a4f45(0x1de)])],k);const de=()=>{let _0x4fc1e2=[],_0x36c0ae=!0x1;return _0x1d75de=>{_0x4fc1e2['push'](_0x1d75de),_0x36c0ae||(_0x36c0ae=!0x0,setTimeout(()=>{const _0x20fbc4=_0xd371;_0x4fc1e2[_0x20fbc4(0x22c)](_0x535936=>_0x535936()),_0x4fc1e2=[],_0x36c0ae=!0x1;}));};};let A=class extends t[_0x4a4f45(0x2a6)]{get[_0x4a4f45(0x276)](){const _0x44f9d9=_0x4a4f45;return this[_0x44f9d9(0x318)][_0x44f9d9(0x393)]();}get[_0x4a4f45(0x1be)](){const _0x13ba9d=_0x4a4f45;return this[_0x13ba9d(0x3e9)][_0x13ba9d(0x393)]();}constructor(_0x32762e,_0x5569fe,_0x515b63,_0x15309d,_0x128800,_0x574992,_0x47c929,_0x173fa9){const _0x2613cc=_0x4a4f45;super(),this[_0x2613cc(0x246)]=_0x32762e,this[_0x2613cc(0x1e3)]=_0x5569fe,this[_0x2613cc(0x38f)]=_0x515b63,this[_0x2613cc(0x1c2)]=_0x15309d,this['_memberService']=_0x128800,this[_0x2613cc(0x25c)]=_0x574992,this[_0x2613cc(0x14b)]=_0x47c929,this[_0x2613cc(0x1d3)]=_0x173fa9,b(this,_0x2613cc(0x38b),!0x1),b(this,_0x2613cc(0x332),!0x1),b(this,'_cursorInfo$',new r[(_0x2613cc(0x154))](new Map())),b(this,_0x2613cc(0x296),this[_0x2613cc(0x318)][_0x2613cc(0x34c)]()),b(this,'_roomMembers$',new r['BehaviorSubject']([])),b(this,'roomMembers$',this[_0x2613cc(0x3e9)]['pipe']((0x0,r['debounceTime'])(0x12c))),b(this,'_updateLocalCursor',(0x0,t[_0x2613cc(0x143)])((_0x2eaa11,_0x114ac7)=>{const _0xb26ae2=_0x2613cc;let _0x609b64={'eventID':l['CollaborationEvent'][_0xb26ae2(0x32c)],'data':{'unitID':this[_0xb26ae2(0x246)],'memberID':this[_0xb26ae2(0x1e3)][_0xb26ae2(0x1af)](),'selection':(0x0,h[_0xb26ae2(0x35e)])(_0x2eaa11,_0x114ac7[_0xb26ae2(0x355)])}};this[_0xb26ae2(0x1e3)][_0xb26ae2(0x20e)](_0x609b64,this[_0xb26ae2(0x246)]);},0x64));}[_0x4a4f45(0x288)](){const _0x15bcb7=_0x4a4f45;super[_0x15bcb7(0x288)](),this[_0x15bcb7(0x318)][_0x15bcb7(0x13e)](new Map()),this[_0x15bcb7(0x318)][_0x15bcb7(0x2c6)](),this['_roomMembers$']['next']([]),this[_0x15bcb7(0x3e9)][_0x15bcb7(0x2c6)]();}[_0x4a4f45(0x42d)](){const _0x1b225b=_0x4a4f45;this['_init']||(this[_0x1b225b(0x332)]=!0x0,this['_session'][_0x1b225b(0x2b4)][_0x1b225b(0x237)]((0x0,r[_0x1b225b(0x42e)])(this['dispose$']))[_0x1b225b(0x195)](_0x21749b=>{const _0x127d43=_0x1b225b;_0x21749b===e[_0x127d43(0x3f2)][_0x127d43(0x2e8)]?this[_0x127d43(0x125)]():this[_0x127d43(0x213)]();}),this['_session'][_0x1b225b(0x212)][_0x1b225b(0x237)]((0x0,r['takeUntil'])(this[_0x1b225b(0x3f1)]))[_0x1b225b(0x195)](_0x378080=>{const _0x2af9cd=_0x1b225b;let _0x22dc81=_0x378080[_0x2af9cd(0x170)];_0x22dc81===l[_0x2af9cd(0x243)][_0x2af9cd(0x32c)]&&this[_0x2af9cd(0x2fa)](_0x378080),_0x22dc81===l[_0x2af9cd(0x243)][_0x2af9cd(0x3e8)]&&this['_onCursorDelete'](_0x378080);}),this['_onRefRangeChange'](),this[_0x1b225b(0x2ad)](this[_0x1b225b(0x14b)][_0x1b225b(0x3b7)](_0x356d62=>{const _0x2d904d=_0x1b225b;if(this['_online']&&_0x356d62['id']===g[_0x2d904d(0x1d7)]['id']&&_0x356d62['params']['unitId']===this['unitID']){let _0x4f51b5=_0x356d62['params'];this[_0x2d904d(0x267)](_0x4f51b5[_0x2d904d(0x1b9)],_0x4f51b5[_0x2d904d(0x3a5)][0x0]);}})));}[_0x4a4f45(0x2fa)](_0x5352d4){const _0x557bca=_0x4a4f45;var _0x4a22bc;let {memberID:_0x15c422,selection:_0x3c5e0b}=_0x5352d4[_0x557bca(0x18c)],{sheetName:_0x9529ff,range:_0x18e602}=(0x0,h['deserializeRangeWithSheet'])(_0x3c5e0b),_0xffb8f9={'name':((_0x4a22bc=this[_0x557bca(0x374)][_0x557bca(0x1e9)](this[_0x557bca(0x246)],_0x15c422))==null?void 0x0:_0x4a22bc['name'])??_0x557bca(0x158),'range':this['_getMergeRange'](_0x9529ff,_0x18e602),'sheetID':_0x9529ff,'color':this[_0x557bca(0x1c2)][_0x557bca(0x330)](_0x15c422),'selection':_0x3c5e0b},_0x398560=this[_0x557bca(0x276)];_0x398560[_0x557bca(0x1a1)](_0x15c422,_0xffb8f9),this['_cursorInfo$']['next'](_0x398560);}['_onCursorDelete'](_0x5dac19){const _0x541e66=_0x4a4f45;let {memberID:_0x42297d}=_0x5dac19['data'],_0x6e1bed=this['cursorInfo'];_0x6e1bed['delete'](_0x42297d),this[_0x541e66(0x318)]['next'](_0x6e1bed);}['_getMergeRange'](_0x3b136d,_0xb17499){const _0x564510=_0x4a4f45;var _0xee7b34;let _0x5de63f=(_0xee7b34=this['_univerInstanceService']['getUnit'](this[_0x564510(0x246)],t[_0x564510(0x397)]['UNIVER_SHEET']))==null||(_0xee7b34=_0xee7b34[_0x564510(0x180)](_0x3b136d))==null?void 0x0:_0xee7b34[_0x564510(0x35b)]();return(_0x5de63f==null?void 0x0:_0x5de63f[_0x564510(0x315)](_0xff3d51=>t[_0x564510(0x34f)]['contains'](_0xff3d51,_0xb17499)))||_0xb17499;}[_0x4a4f45(0x164)](){const _0x495b40=_0x4a4f45;let _0x324baf=new t[(_0x495b40(0x403))](),_0x106283=de(),_0xf4949f=()=>{const _0x27dcd0=_0x495b40;_0x324baf[_0x27dcd0(0x288)]();let _0x3cc5ff=(_0x3b5dc7,_0x576e59,_0x259a51,_0x3ac3b2)=>{const _0x33644d=_0x27dcd0;let _0x3bbe4c=[];switch(_0x3b5dc7['id']){case g[_0x33644d(0x2f8)][_0x33644d(0x2f0)]:_0x3bbe4c=(0x0,g[_0x33644d(0x23d)])(_0x3b5dc7,_0x3ac3b2);break;case g['EffectRefRangId'][_0x33644d(0x388)]:_0x3bbe4c=(0x0,g[_0x33644d(0x1a6)])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)]['InsertColCommandId']:_0x3bbe4c=(0x0,g[_0x33644d(0x2fb)])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)][_0x33644d(0x1ba)]:_0x3bbe4c=(0x0,g[_0x33644d(0x2a0)])(_0x3b5dc7,_0x3ac3b2);break;case g['EffectRefRangId'][_0x33644d(0x3c5)]:_0x3bbe4c=(0x0,g['handleInsertRangeMoveRight'])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)][_0x33644d(0x2c7)]:_0x3bbe4c=(0x0,g[_0x33644d(0x1eb)])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)][_0x33644d(0x328)]:_0x3bbe4c=(0x0,g['handleMoveRange'])(_0x3b5dc7,_0x3ac3b2);break;case g['EffectRefRangId'][_0x33644d(0x2b2)]:_0x3bbe4c=(0x0,g['handleIRemoveCol'])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)][_0x33644d(0x2c8)]:_0x3bbe4c=(0x0,g[_0x33644d(0x25e)])(_0x3b5dc7,_0x3ac3b2);}let _0x160d3f=(0x0,g[_0x33644d(0x186)])(_0x3bbe4c,_0x3ac3b2),_0x2314f7=this[_0x33644d(0x276)]['get'](_0x576e59);if(_0x2314f7&&_0x160d3f){let _0x4579c6={..._0x2314f7,'range':_0x160d3f};this[_0x33644d(0x276)][_0x33644d(0x1a1)](_0x576e59,_0x4579c6),_0x106283(()=>{const _0x1128a2=_0x33644d;let _0xba3b9e=this['_refRangeService'][_0x1128a2(0x23a)](_0x160d3f,_0x469439=>(_0xba3b9e[_0x1128a2(0x288)](),_0x3cc5ff(_0x469439,_0x576e59,_0x259a51,_0x160d3f)));_0x324baf[_0x1128a2(0x307)](_0xba3b9e);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x27dcd0(0x22c)]((_0x507285,_0x33193e)=>{const _0x477a62=_0x27dcd0;let {range:_0x351f68,sheetID:_0x34d6c1}=_0x507285,_0x39bf87=this[_0x477a62(0x1d3)]['registerRefRange'](_0x351f68,_0x59f482=>(_0x39bf87['dispose'](),_0x3cc5ff(_0x59f482,_0x33193e,_0x34d6c1,_0x351f68)));_0x324baf[_0x477a62(0x307)](_0x39bf87);});};this[_0x495b40(0x2ad)]((0x0,t[_0x495b40(0x2be)])(this['_cursorInfo$'][_0x495b40(0x195)](()=>{_0xf4949f();})));}[_0x4a4f45(0x125)](){const _0x427341=_0x4a4f45;var _0x498241,_0x4e7e2c;if(this[_0x427341(0x38b)]=!0x0,((_0x498241=this[_0x427341(0x25c)]['getFocusedUnit']())==null?void 0x0:_0x498241[_0x427341(0x370)]())!==this[_0x427341(0x246)])return;let _0x3a6b8b=(_0x4e7e2c=this[_0x427341(0x38f)][_0x427341(0x39f)](g[_0x427341(0x194)])[_0x427341(0x3fe)]())==null?void 0x0:_0x4e7e2c[0x0],_0x5b30aa=this['_univerInstanceService'][_0x427341(0x2dc)](t[_0x427341(0x397)][_0x427341(0x379)])['getActiveSheet']();_0x3a6b8b&&_0x5b30aa&&this[_0x427341(0x267)](_0x5b30aa['getSheetId'](),_0x3a6b8b);}[_0x4a4f45(0x213)](){const _0x2bc825=_0x4a4f45;this[_0x2bc825(0x38b)]=!0x1;}};A=S([x(0x2,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x3,(0x0,t['Inject'])(D)),x(0x4,(0x0,t['Inject'])(e['MemberService'])),x(0x5,t[_0x4a4f45(0x1ff)]),x(0x6,t['ICommandService']),x(0x7,(0x0,t['Inject'])(g['RefRangeService']))],A);let j=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x1a253a,_0x140719,_0x4edd12){const _0x2efd49=_0x4a4f45;super(),this['_univerInstanceService']=_0x1a253a,this[_0x2efd49(0x38f)]=_0x140719,this[_0x2efd49(0x27b)]=_0x4edd12,b(this,_0x2efd49(0x2c0),new Map()),b(this,_0x2efd49(0x292),new r[(_0x2efd49(0x31c))]()),this[_0x2efd49(0x332)]();}[_0x4a4f45(0x288)](){super['dispose'](),this['_entityInit$']['complete'](),this['_entities']['forEach'](_0x5ea41c=>_0x5ea41c['dispose']());}[_0x4a4f45(0x197)](_0x421b68){const _0x5e0014=_0x4a4f45;let _0x296a61=this['_entities'][_0x5e0014(0x39f)](_0x421b68);return _0x296a61?_0x296a61[_0x5e0014(0x296)]:this[_0x5e0014(0x292)]['pipe']((0x0,r['filter'])(_0x50e24e=>_0x50e24e[_0x5e0014(0x246)]===_0x421b68),(0x0,r[_0x5e0014(0x3cd)])(_0x2f0c71=>_0x2f0c71[_0x5e0014(0x296)]));}[_0x4a4f45(0x332)](){const _0x12f294=_0x4a4f45;this[_0x12f294(0x25c)][_0x12f294(0x309)](t['UniverInstanceType'][_0x12f294(0x379)])[_0x12f294(0x237)]((0x0,r[_0x12f294(0x42e)])(this['dispose$']))[_0x12f294(0x195)](async _0x11bfac=>{const _0x14e08e=_0x12f294;let _0x3853bd=_0x11bfac['unit'][_0x14e08e(0x370)](),_0x3d5d44=await this[_0x14e08e(0x177)](_0x3853bd);this['_entityInit$'][_0x14e08e(0x13e)](_0x3d5d44),this[_0x14e08e(0x2c0)][_0x14e08e(0x1a1)](_0x3853bd,_0x3d5d44);}),this['_univerInstanceService'][_0x12f294(0x309)](t[_0x12f294(0x397)][_0x12f294(0x19b)])[_0x12f294(0x237)]((0x0,r[_0x12f294(0x42e)])(this['dispose$']))['pipe']((0x0,r[_0x12f294(0x3e3)])(_0x1143ff=>!_0x1143ff[_0x12f294(0x181)][_0x12f294(0x370)]()[_0x12f294(0x34d)]('__')))['subscribe'](async _0x482311=>{const _0x6e7596=_0x12f294;let {unit:_0x53557c}=_0x482311,_0x28d39c=_0x53557c[_0x6e7596(0x370)](),_0x1c53aa=await this[_0x6e7596(0x300)](_0x28d39c);this[_0x6e7596(0x292)]['next'](_0x1c53aa),this[_0x6e7596(0x2c0)][_0x6e7596(0x1a1)](_0x28d39c,_0x1c53aa);}),(0x0,r[_0x12f294(0x42a)])(this['_univerInstanceService'][_0x12f294(0x3b6)](t[_0x12f294(0x397)][_0x12f294(0x19b)]),this[_0x12f294(0x25c)][_0x12f294(0x3b6)](t[_0x12f294(0x397)]['UNIVER_SHEET']))[_0x12f294(0x237)]((0x0,r[_0x12f294(0x42e)])(this[_0x12f294(0x3f1)]))['subscribe'](_0x18af87=>{const _0x30c7cf=_0x12f294;let _0x26baa1=_0x18af87[_0x30c7cf(0x370)](),_0xec1094=this[_0x30c7cf(0x2c0)][_0x30c7cf(0x39f)](_0x26baa1);_0xec1094&&(_0xec1094['dispose'](),this['_entities']['delete'](_0x26baa1));});}async['_startSheetCollabCursor'](_0x50af62){const _0x165cc4=_0x4a4f45;let _0x4aacdb=await this['_collabSessionService'][_0x165cc4(0x331)](_0x50af62),_0x55ab29=this[_0x165cc4(0x38f)]['createInstance'](A,_0x50af62,_0x4aacdb);return _0x55ab29[_0x165cc4(0x42d)](),_0x55ab29;}async[_0x4a4f45(0x300)](_0x5eac98){const _0x4689bf=_0x4a4f45;let _0x3aa895=await this[_0x4689bf(0x27b)][_0x4689bf(0x331)](_0x5eac98),_0x4fa006=this['_injector'][_0x4689bf(0x3ba)](k,_0x5eac98,_0x3aa895);return _0x4fa006['init'](),_0x4fa006;}};j=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(e['CollaborationSessionService']))],j);function fe(_0x1d3f27,_0x490817){const _0x3ccec1=_0x4a4f45;_0x1d3f27[_0x3ccec1(0x394)](),_0x1d3f27[_0x3ccec1(0x2cb)]=_0x3ccec1(0x32b);let _0x4c63db=_0x1d3f27[_0x3ccec1(0x191)](_0x490817)[_0x3ccec1(0x215)];return _0x1d3f27[_0x3ccec1(0x209)](),Math['min'](_0x4c63db+0x8,0xc8);}function pe(_0x520813,_0x26b6e7){const _0xec80b0=_0x4a4f45;let {radius:_0x4a975f,width:_0x4bdeb1,height:_0x5732d9}=_0x26b6e7;_0x4a975f??=0x0,_0x4bdeb1??=0x1e,_0x5732d9??=0x1e;let _0x563fd5=0x0,_0x578b02=0x0,_0x476972=0x0;_0x563fd5=_0x578b02=_0x476972=Math[_0xec80b0(0x139)](_0x4a975f,_0x4bdeb1/0x2,_0x5732d9/0x2),_0x520813[_0xec80b0(0x258)](),_0x520813[_0xec80b0(0x242)](_0x563fd5,0x0),_0x520813[_0xec80b0(0x3e2)](_0x4bdeb1-_0x578b02,0x0),_0x520813['arc'](_0x4bdeb1-_0x578b02,_0x578b02,_0x578b02,Math['PI']*0x3/0x2,0x0,!0x1),_0x520813[_0xec80b0(0x3e2)](_0x4bdeb1,_0x5732d9-_0x476972),_0x520813[_0xec80b0(0x2c5)](_0x4bdeb1-_0x476972,_0x5732d9-_0x476972,_0x476972,0x0,Math['PI']/0x2,!0x1),_0x520813[_0xec80b0(0x3e2)](0x0,_0x5732d9),_0x520813[_0xec80b0(0x3e2)](0x0,_0x563fd5),_0x520813[_0xec80b0(0x2c5)](_0x563fd5,_0x563fd5,_0x563fd5,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x520813[_0xec80b0(0x2f2)](),_0x26b6e7[_0xec80b0(0x2f4)]&&(_0x520813[_0xec80b0(0x394)](),_0x520813[_0xec80b0(0x39e)]=_0x26b6e7[_0xec80b0(0x2f4)],_0x26b6e7[_0xec80b0(0x2e5)]===_0xec80b0(0x225)?_0x520813[_0xec80b0(0x2f4)]('evenodd'):_0x520813[_0xec80b0(0x2f4)](),_0x520813['restore']());}var me=class e extends p[_0x4a4f45(0x1b4)]{constructor(_0x46191b,_0x2aba63){const _0x11ae79=_0x4a4f45;super(_0x46191b,_0x2aba63),b(this,_0x11ae79(0x3e0),void 0x0),b(this,_0x11ae79(0x37e),void 0x0),this[_0x11ae79(0x3e0)]=_0x2aba63==null?void 0x0:_0x2aba63['color'],this[_0x11ae79(0x37e)]=_0x2aba63==null?void 0x0:_0x2aba63['text'];}static[_0x4a4f45(0x253)](_0x2329f1,_0x52c315){const _0x4ab9f4=_0x4a4f45;let {text:_0x5cf9ef,color:_0x2c15b6}=_0x52c315;_0x2329f1[_0x4ab9f4(0x394)](),_0x2329f1[_0x4ab9f4(0x2cb)]=_0x4ab9f4(0x3cb);let _0x2651f4=_0x2329f1['measureText'](_0x5cf9ef)[_0x4ab9f4(0x215)];if(pe(_0x2329f1,{'height':0x14,'radius':0x4,'width':fe(_0x2329f1,_0x5cf9ef),'fill':_0x2c15b6,'evented':!0x1}),_0x2329f1[_0x4ab9f4(0x39e)]=_0x4ab9f4(0x42c),_0x2651f4>0xc0){let _0x573f9f='',_0x2c7a83=0x0;for(let _0x43bc53 of _0x5cf9ef){let _0x18b305=_0x2329f1[_0x4ab9f4(0x191)](_0x43bc53)[_0x4ab9f4(0x215)];if(_0x2c7a83+_0x18b305<=0xc0-_0x2329f1[_0x4ab9f4(0x191)](_0x4ab9f4(0x36f))[_0x4ab9f4(0x215)])_0x573f9f+=_0x43bc53,_0x2c7a83+=_0x18b305;else{_0x573f9f+=_0x4ab9f4(0x36f);break;}}_0x2329f1[_0x4ab9f4(0x19a)](_0x573f9f,0x4,0xf);}else _0x2329f1['fillText'](_0x5cf9ef,0x4,0xf);_0x2329f1[_0x4ab9f4(0x209)]();}[_0x4a4f45(0x287)](_0x16c650){const _0x4ac63d=_0x4a4f45;e[_0x4ac63d(0x253)](_0x16c650,this);}};const M='collab-text-anchor-';var he=class{constructor(_0x170b0b,_0x1eafbb,_0x59d56e,_0x1224ad){const _0x4bb6f2=_0x4a4f45;this[_0x4bb6f2(0x2c2)]=_0x170b0b,this[_0x4bb6f2(0x1aa)]=_0x1eafbb,this[_0x4bb6f2(0x38e)]=_0x59d56e,this[_0x4bb6f2(0x136)]=_0x1224ad,b(this,'_shapes',[]),b(this,_0x4bb6f2(0x2ff),null),b(this,_0x4bb6f2(0x2f7),null),b(this,_0x4bb6f2(0x27c),null),b(this,_0x4bb6f2(0x1dd),null),b(this,'_eventUnsubscribe',null),this[_0x4bb6f2(0x390)]();}set[_0x4a4f45(0x2ec)](_0x7a760e){const _0xb056fa=_0x4a4f45;_0x7a760e?(this[_0xb056fa(0x27c)]&&this[_0xb056fa(0x27c)][_0xb056fa(0x375)](),this[_0xb056fa(0x2f7)]&&this[_0xb056fa(0x2f7)][_0xb056fa(0x295)]()):(this[_0xb056fa(0x27c)]&&this['_anchorDot']['show'](),this[_0xb056fa(0x2f7)]&&this[_0xb056fa(0x2f7)]['hide']());}[_0x4a4f45(0x288)](){const _0x304655=_0x4a4f45;for(let _0x17ac91 of this[_0x304655(0x264)])_0x17ac91[_0x304655(0x288)]();this[_0x304655(0x2f7)]&&this[_0x304655(0x2f7)][_0x304655(0x288)](),this[_0x304655(0x27c)]&&this['_anchorDot']['dispose'](),this['_anchor']&&this[_0x304655(0x2ff)][_0x304655(0x288)](),this[_0x304655(0x2bd)]&&this[_0x304655(0x2bd)]();}[_0x4a4f45(0x390)](){const _0x5c8d62=_0x4a4f45;let {_docSkeleton:_0x2915db,_document:_0x5c1df3}=this,{color:_0x26ace0,name:_0x1baeef,ranges:_0x53f4a9}=this['_cursor'],_0x2ab6dd=_0x5c1df3[_0x5c8d62(0x340)](),{docsLeft:_0x226219,docsTop:_0x23b73a}=_0x2ab6dd,_0x2c7b2d=new f[(_0x5c8d62(0x220))](_0x2ab6dd,_0x2915db);for(let {startOffset:_0x595069,endOffset:_0x26ed45,rangeType:_0xb0da95,segmentId:_0xad9a15,segmentPage:_0x199d81,collapsed:_0x305818,isActive:_0x440809}of _0x53f4a9){let _0x6a89b0=_0x2915db[_0x5c8d62(0x1f9)](_0x595069,!0x0,_0xad9a15,_0x199d81),_0x40cc85=_0x2915db[_0x5c8d62(0x1f9)](_0x26ed45,!0x0,_0xad9a15,_0x199d81);_0x40cc85??=_0x2915db[_0x5c8d62(0x1f9)](_0x26ed45-0x1,!0x1,_0xad9a15,_0x199d81);let _0x3a749c=ge(_0x6a89b0,_0x40cc85);if(_0x440809&&_0x3a749c['canRenderAnchor']){let {contentBoxPointGroup:_0x28c027}=_0x2c7b2d[_0x5c8d62(0x245)](_0x40cc85,_0x40cc85);if(_0x28c027[_0x5c8d62(0x18e)]===0x0)continue;this[_0x5c8d62(0x3ae)](_0x26ace0,_0x28c027,_0x226219,_0x23b73a,_0x1baeef),this[_0x5c8d62(0x2bd)]=this[_0x5c8d62(0x299)]();}if(_0x6a89b0&&_0x40cc85){if(_0xb0da95===t['DOC_RANGE_TYPE']['RECT']){let {pointGroup:_0x3b7926}=new f['NodePositionConvertToRectRange'](_0x2ab6dd,_0x2915db)['getRangePointData'](_0x6a89b0,_0x40cc85)??{};if(_0x3b7926==null||_0x3b7926[_0x5c8d62(0x18e)]===0x0)continue;this[_0x5c8d62(0x205)](_0x26ace0,_0x3b7926,_0x226219,_0x23b73a);}else{if(!_0x305818&&_0x3a749c[_0x5c8d62(0x29a)]){let {borderBoxPointGroup:_0x2b8bf3}=_0x2c7b2d[_0x5c8d62(0x245)](_0x6a89b0,_0x40cc85);if(_0x2b8bf3['length']===0x0)continue;this['_drawTextRange'](_0x26ace0,_0x2b8bf3,_0x226219,_0x23b73a);}}}}}[_0x4a4f45(0x3ae)](_0x32e06f,_0x425852,_0x3559f5,_0x41d143,_0x5637d3){const _0x4713ec=_0x4a4f45;let {left:_0x35e8f1,top:_0xae5ed3,height:_0x13472a}=this[_0x4713ec(0x31e)](_0x425852),_0x2e6b10=1.5/this[_0x4713ec(0x383)](),_0x10b784=new p[(_0x4713ec(0x1fe))](M+(0x0,t['generateRandomId'])(0x6),{'left':_0x35e8f1+_0x3559f5-_0x2e6b10,'top':_0xae5ed3+_0x41d143,'height':_0x13472a,'width':1.5,'fill':_0x32e06f||(0x0,p[_0x4713ec(0x127)])(t[_0x4713ec(0x2ee)][_0x4713ec(0x35a)],0x0),'strokeWidth':_0x2e6b10,'stroke':_0x4713ec(0x290),'evented':!0x0});this[_0x4713ec(0x2ff)]=_0x10b784,this['_scene'][_0x4713ec(0x1bf)](_0x10b784,f[_0x4713ec(0x262)]);let _0x597173=new p[(_0x4713ec(0x1fe))](M+(0x0,t[_0x4713ec(0x28e)])(0x6),{'left':_0x35e8f1+_0x3559f5-_0x2e6b10,'top':_0xae5ed3+_0x41d143-0x2,'height':0x4,'width':0x4,'fill':_0x32e06f||(0x0,p[_0x4713ec(0x127)])(t[_0x4713ec(0x2ee)][_0x4713ec(0x35a)],0x0),'strokeWidth':0x0,'stroke':_0x32e06f||(0x0,p['getColor'])(t[_0x4713ec(0x2ee)][_0x4713ec(0x35a)],0x0),'evented':!0x1});this[_0x4713ec(0x27c)]=_0x597173,this['_scene'][_0x4713ec(0x1bf)](_0x597173,f[_0x4713ec(0x262)]);let _0x223dd4=new me(M+(0x0,t[_0x4713ec(0x28e)])(0x6),{'left':_0x35e8f1+_0x3559f5-_0x2e6b10,'top':_0xae5ed3+_0x41d143-0x14,'text':_0x5637d3,'color':_0x32e06f});this[_0x4713ec(0x2f7)]=_0x223dd4,this[_0x4713ec(0x1aa)][_0x4713ec(0x1bf)](_0x223dd4,f[_0x4713ec(0x262)]),this[_0x4713ec(0x2ec)]=!0x1;}[_0x4a4f45(0x299)](){const _0x3704bf=_0x4a4f45;let _0x5ee5f9=this[_0x3704bf(0x2ff)]['onPointerEnter$'][_0x3704bf(0x204)](()=>{const _0x2bf1ad=_0x3704bf;this[_0x2bf1ad(0x2ec)]=!0x0;}),_0x5144ed=this[_0x3704bf(0x2ff)]['onPointerLeave$'][_0x3704bf(0x204)](()=>{const _0x2f133e=_0x3704bf;this['_hideTimer']&&clearTimeout(this[_0x2f133e(0x1dd)]),this[_0x2f133e(0x1dd)]=setTimeout(()=>{const _0x5776ae=_0x2f133e;this[_0x5776ae(0x2ec)]=!0x1;},0x7d0);});return()=>{const _0xd9794c=_0x3704bf;_0x5ee5f9[_0xd9794c(0x372)](),_0x5144ed[_0xd9794c(0x372)]();};}[_0x4a4f45(0x211)](_0x47b5c9,_0x31f42e,_0x18e2e2,_0x161985){const _0x137fc8=_0x4a4f45;let _0x58cc20=0.2,_0x27c79c=new t[(_0x137fc8(0x30f))](_0x47b5c9)['setAlpha'](_0x58cc20)[_0x137fc8(0x1f4)](),_0x207830=new p[(_0x137fc8(0x1cd))]('collab-text-range-'+(0x0,t[_0x137fc8(0x28e)])(0x6),{'pointsGroup':_0x31f42e,'fill':_0x27c79c||(0x0,p[_0x137fc8(0x127)])(t[_0x137fc8(0x2ee)][_0x137fc8(0x35a)],_0x58cc20),'left':_0x18e2e2,'top':_0x161985,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x137fc8(0x264)][_0x137fc8(0x3b2)](_0x207830),this[_0x137fc8(0x1aa)][_0x137fc8(0x1bf)](_0x207830,f[_0x137fc8(0x262)]);}[_0x4a4f45(0x205)](_0x7c1cce,_0x23a6bb,_0x13901b,_0x538ecb){const _0x332ac5=_0x4a4f45;let _0x4d60ea=0.2,_0x5c3c49=new t[(_0x332ac5(0x30f))](_0x7c1cce)[_0x332ac5(0x2a9)](_0x4d60ea)['toRgbString'](),_0x4d5a44=new p[(_0x332ac5(0x1cd))](_0x332ac5(0x3c7)+(0x0,t[_0x332ac5(0x28e)])(0x6),{'pointsGroup':_0x23a6bb,'fill':_0x5c3c49||(0x0,p['getColor'])(t[_0x332ac5(0x2ee)][_0x332ac5(0x35a)],_0x4d60ea),'left':_0x13901b,'top':_0x538ecb,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x332ac5(0x264)][_0x332ac5(0x3b2)](_0x4d5a44),this[_0x332ac5(0x1aa)]['addObject'](_0x4d5a44,f[_0x332ac5(0x262)]);}[_0x4a4f45(0x31e)](_0x196953){let _0x5f5121=_0x196953[0x0],_0x37c0c9=_0x5f5121[0x0],_0x502ebb=_0x5f5121[0x2],{x:_0x28dfda,y:_0x58375d}=_0x37c0c9,{x:_0x1a96ad,y:_0x4f4137}=_0x502ebb;return{'left':_0x28dfda,'top':_0x58375d,'width':_0x1a96ad-_0x28dfda,'height':_0x4f4137-_0x58375d};}['_getScale'](){const _0x4b45bf=_0x4a4f45;let {scaleX:_0x5c2042,scaleY:_0x167745}=this[_0x4b45bf(0x1aa)][_0x4b45bf(0x18a)]();return Math['max'](_0x5c2042,_0x167745);}};function ge(_0x3c1d8e,_0x493391){const _0xa841bf=_0x4a4f45;if(!_0x493391)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x3c1d8e||_0x3c1d8e[_0xa841bf(0x26c)]!==_0x493391[_0xa841bf(0x26c)]||(_0x3c1d8e[_0xa841bf(0x26c)]===p[_0xa841bf(0x283)][_0xa841bf(0x16f)]||_0x3c1d8e[_0xa841bf(0x26c)]===p[_0xa841bf(0x283)][_0xa841bf(0x26a)])&&_0x3c1d8e[_0xa841bf(0x2db)]!==_0x493391[_0xa841bf(0x2db)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x584844=(0x0,p[_0xa841bf(0x376)])(_0x3c1d8e),_0x130270=(0x0,p[_0xa841bf(0x376)])(_0x493391);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x584844==null||_0x130270==null?_0x584844==null&&_0x130270==null:_0x584844['pageIndex']===_0x130270[_0xa841bf(0x1bb)]&&_0x584844[_0xa841bf(0x235)]===_0x130270['columnGroupId']&&_0x584844[_0xa841bf(0x3df)]===_0x130270[_0xa841bf(0x3df)]};}let N=class extends t['RxDisposable']{constructor(_0x42edbc,_0x242ec9,_0x429d25,_0x495860,_0x18bf59){const _0x152097=_0x4a4f45;super(),this[_0x152097(0x1d5)]=_0x42edbc,this[_0x152097(0x3eb)]=_0x242ec9,this[_0x152097(0x405)]=_0x429d25,this[_0x152097(0x14b)]=_0x495860,this[_0x152097(0x192)]=_0x18bf59,b(this,_0x152097(0x247),[]),b(this,_0x152097(0x138),[]),this[_0x152097(0x332)]();}[_0x4a4f45(0x332)](){const _0x1d92e8=_0x4a4f45;let _0x38f7f9=this[_0x1d92e8(0x1d5)][_0x1d92e8(0x3ad)],_0x58ca86=this[_0x1d92e8(0x3eb)];this[_0x1d92e8(0x2ad)]((0x0,r[_0x1d92e8(0x21b)])([this[_0x1d92e8(0x405)][_0x1d92e8(0x197)](_0x38f7f9),this['_themeService']['currentTheme$']])[_0x1d92e8(0x237)]((0x0,i[_0x1d92e8(0x19c)])(([_0x51d531,_0x114a7c])=>({'skeleton':_0x58ca86[_0x1d92e8(0x182)](),'cursors':[..._0x51d531[_0x1d92e8(0x40c)]()][_0x1d92e8(0x165)](_0x4dc791=>({..._0x4dc791,'color':this[_0x1d92e8(0x192)][_0x1d92e8(0x381)](_0x4dc791[_0x1d92e8(0x3e0)])}))})))[_0x1d92e8(0x195)](_0x11675a=>{const _0x1a9957=_0x1d92e8;if(this[_0x1a9957(0x422)](),_0x11675a){let {skeleton:_0x3e31be,cursors:_0x3f1ea6}=_0x11675a;this[_0x1a9957(0x131)](_0x3e31be,_0x3f1ea6);}})),this[_0x1d92e8(0x1c3)](),this['_initCommandExecutedListener']();}[_0x4a4f45(0x131)](_0x3ad94f,_0x59396f){const _0x40e461=_0x4a4f45;let {scene:_0xa99f9d,mainComponent:_0x5f556c}=this['_context'],_0x1cf36a=_0x59396f[_0x40e461(0x19c)](_0x36e5a5=>new he(_0x36e5a5,_0xa99f9d,_0x3ad94f,_0x5f556c));this['_cursorShapes']=_0x1cf36a,this[_0x40e461(0x138)]=_0x59396f;}[_0x4a4f45(0x3e5)](){const _0x1dbd98=_0x4a4f45;this[_0x1dbd98(0x422)]();let {scene:_0x48ca0f,mainComponent:_0x10cda5}=this[_0x1dbd98(0x1d5)],_0x3475ee=this[_0x1dbd98(0x3eb)]['getSkeleton'](),_0xed9ca9=this[_0x1dbd98(0x138)][_0x1dbd98(0x19c)](_0x45ebfb=>new he(_0x45ebfb,_0x48ca0f,_0x3475ee,_0x10cda5));this[_0x1dbd98(0x247)]=_0xed9ca9;}[_0x4a4f45(0x422)](){const _0x25b4a8=_0x4a4f45;this[_0x25b4a8(0x247)][_0x25b4a8(0x22c)](_0x5267d9=>_0x5267d9[_0x25b4a8(0x288)]()),this[_0x25b4a8(0x247)]=[];}['_initCommandExecutedListener'](){const _0x48c9c0=_0x4a4f45;let _0x143a32=[f[_0x48c9c0(0x257)]['id']];this['disposeWithMe'](this[_0x48c9c0(0x14b)][_0x48c9c0(0x3b7)](_0x42a258=>{const _0x105e9f=_0x48c9c0;_0x143a32[_0x105e9f(0x266)](_0x42a258['id'])&&_0x42a258['params'][_0x105e9f(0x3ad)]===this[_0x105e9f(0x1d5)][_0x105e9f(0x3ad)]&&this[_0x105e9f(0x3e5)]();}));}[_0x4a4f45(0x1c3)](){const _0x5c742a=_0x4a4f45;this[_0x5c742a(0x2ad)]((0x0,t[_0x5c742a(0x353)])(this[_0x5c742a(0x1d5)][_0x5c742a(0x176)]['onTransformChange$'])[_0x5c742a(0x237)]((0x0,i[_0x5c742a(0x3e3)])(_0x18755d=>_0x18755d['type']===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x5c742a(0x310)]),(0x0,i['throttleTime'])(0x10))[_0x5c742a(0x195)](()=>{const _0xc8cf99=_0x5c742a;this[_0xc8cf99(0x3e5)]();}));}};N=S([x(0x1,(0x0,t[_0x4a4f45(0x289)])(d['DocSkeletonManagerService'])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(j)),x(0x3,t['ICommandService']),x(0x4,(0x0,t[_0x4a4f45(0x289)])(t['ThemeService']))],N);var _e=class extends p[_0x4a4f45(0x1b4)]{constructor(_0x41186d,_0x17d4e2){const _0x39c818=_0x4a4f45;super(_0x41186d,_0x17d4e2),b(this,_0x39c818(0x29e),void 0x0),b(this,_0x39c818(0x2cc),!0x1),b(this,'_range',void 0x0),b(this,_0x39c818(0x1e7),''),b(this,_0x39c818(0x3c8),'top'),b(this,_0x39c818(0x2b6),void 0x0),b(this,_0x39c818(0x1e6),void 0x0),b(this,_0x39c818(0x293),void 0x0),b(this,_0x39c818(0x33f),0x4),b(this,_0x39c818(0x424),void 0x0),b(this,_0x39c818(0x395),void 0x0),b(this,_0x39c818(0x140),!0x0),b(this,_0x39c818(0x301),0x0),b(this,_0x39c818(0x3b9),_0x39c818(0x31b)),_0x17d4e2&&(this[_0x39c818(0x22a)](_0x17d4e2),_0x17d4e2[_0x39c818(0x3a1)]&&(_0x17d4e2['highlightSecond']??this[_0x39c818(0x33f)])&&this[_0x39c818(0x23c)](_0x17d4e2[_0x39c818(0x338)]??this[_0x39c818(0x33f)])),this[_0x39c818(0x1d9)][_0x39c818(0x204)](()=>this[_0x39c818(0x22a)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x39c818(0x22a)]({'hovered':!0x1}));}[_0x4a4f45(0x2d8)](_0x5981f6){const _0x2cd10e=_0x4a4f45;this[_0x2cd10e(0x301)]=_0x5981f6;}['setShapeProps'](_0x37ae4a){const _0x122aa3=_0x4a4f45;this[_0x122aa3(0x29e)]=_0x37ae4a[_0x122aa3(0x3e0)]??this[_0x122aa3(0x29e)],this[_0x122aa3(0x2cc)]=_0x37ae4a['hovered']??this[_0x122aa3(0x2cc)],this[_0x122aa3(0x32f)]=_0x37ae4a[_0x122aa3(0x355)]??this[_0x122aa3(0x32f)],this[_0x122aa3(0x1e7)]=_0x37ae4a[_0x122aa3(0x3b3)]??this[_0x122aa3(0x1e7)],this[_0x122aa3(0x3c8)]=_0x37ae4a[_0x122aa3(0x219)]??this['_labelPosition'],this['_backgroundColor']=_0x37ae4a[_0x122aa3(0x2e6)]??this[_0x122aa3(0x2b6)],this['_showText']=_0x37ae4a[_0x122aa3(0x14f)]??this[_0x122aa3(0x1e6)],this[_0x122aa3(0x3b9)]=_0x37ae4a['labelHorizontalPosition']??this[_0x122aa3(0x3b9)],_0x37ae4a[_0x122aa3(0x338)]!==void 0x0&&(this[_0x122aa3(0x33f)]=_0x37ae4a[_0x122aa3(0x338)]),_0x37ae4a['highlight']!==void 0x0&&(this[_0x122aa3(0x293)]=_0x37ae4a['highlight']),_0x37ae4a[_0x122aa3(0x1b3)]!==void 0x0&&(this[_0x122aa3(0x301)]=_0x37ae4a[_0x122aa3(0x1b3)]),this[_0x122aa3(0x3fd)]({'width':_0x37ae4a[_0x122aa3(0x215)],'height':_0x37ae4a[_0x122aa3(0x21d)]});}[_0x4a4f45(0x3ac)](_0x150459){const _0x431cb0=_0x4a4f45;let {row:_0x1a77ae,column:_0x5ab0d0}=_0x150459;_0x1a77ae>=this[_0x431cb0(0x32f)][_0x431cb0(0x132)]&&_0x1a77ae<=this[_0x431cb0(0x32f)][_0x431cb0(0x430)]&&_0x5ab0d0>=this[_0x431cb0(0x32f)][_0x431cb0(0x41a)]&&_0x5ab0d0<=this[_0x431cb0(0x32f)][_0x431cb0(0x35d)]?this[_0x431cb0(0x22a)]({'hovered':!0x0}):this[_0x431cb0(0x22a)]({'hovered':!0x1});}[_0x4a4f45(0x23c)](_0x1b8b09){const _0x47274e=_0x4a4f45;this[_0x47274e(0x3cf)](),this[_0x47274e(0x140)]=!0x0,this[_0x47274e(0x395)]=window[_0x47274e(0x230)](()=>{const _0x427118=_0x47274e;this[_0x427118(0x140)]=!this[_0x427118(0x140)],this[_0x427118(0x3be)](!0x0);},0x1f4),this[_0x47274e(0x424)]=window[_0x47274e(0x40f)](()=>{const _0x42336e=_0x47274e;this[_0x42336e(0x3cf)](),this['_isBlinkVisible']=!0x0,this['makeDirty'](!0x0);},_0x1b8b09*0x3e8);}['_stopBlinking'](){const _0x3c401d=_0x4a4f45;this[_0x3c401d(0x395)]&&=(window[_0x3c401d(0x29c)](this[_0x3c401d(0x395)]),void 0x0),this['_blinkTimer']&&=(window['clearTimeout'](this[_0x3c401d(0x424)]),void 0x0);}[_0x4a4f45(0x137)](_0x5d26d8){return!0x1;}['dispose'](){const _0xe3dd68=_0x4a4f45;this[_0xe3dd68(0x3cf)](),super[_0xe3dd68(0x288)]();}[_0x4a4f45(0x287)](_0x2caef9){const _0x6c7b35=_0x4a4f45;let _0x1f3a9a=this[_0x6c7b35(0x29e)],_0x8e81c6=this[_0x6c7b35(0x2b6)];if(this[_0x6c7b35(0x293)]&&!this[_0x6c7b35(0x140)]&&(_0x1f3a9a=this[_0x6c7b35(0x278)](this[_0x6c7b35(0x29e)]),_0x8e81c6=this[_0x6c7b35(0x2b6)]?this['_getLighterColor'](this['_backgroundColor']):void 0x0),p[_0x6c7b35(0x1fe)][_0x6c7b35(0x253)](_0x2caef9,{'width':this['width'],'height':this[_0x6c7b35(0x21d)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x1f3a9a,'evented':!0x1,'fill':_0x8e81c6}),this[_0x6c7b35(0x2cc)]||this[_0x6c7b35(0x1e6)]){_0x2caef9[_0x6c7b35(0x394)]();let _0x37ccac=this[_0x6c7b35(0x3b9)]==='left'?-fe(_0x2caef9,this[_0x6c7b35(0x1e7)]):this[_0x6c7b35(0x215)];_0x2caef9[_0x6c7b35(0x32e)](0x1,0x0,0x0,0x1,_0x37ccac,(this['_labelPosition']===_0x6c7b35(0x1ef)?0x0:-0x14)+(this['_offsetY']??0x0)),me[_0x6c7b35(0x253)](_0x2caef9,{'text':this[_0x6c7b35(0x1e7)],'color':_0x1f3a9a}),_0x2caef9[_0x6c7b35(0x209)]();}}['_getLighterColor'](_0x437556){const _0x2b3e6f=_0x4a4f45;return _0x437556[_0x2b3e6f(0x34d)]('#')?_0x2b3e6f(0x42f)+Number['parseInt'](_0x437556[_0x2b3e6f(0x3d0)](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x437556[_0x2b3e6f(0x3d0)](0x3,0x5),0x10)+',\x20'+Number[_0x2b3e6f(0x3da)](_0x437556['slice'](0x5,0x7),0x10)+_0x2b3e6f(0x39d):_0x437556[_0x2b3e6f(0x34d)](_0x2b3e6f(0x364))?_0x437556[_0x2b3e6f(0x33c)](/[\d.]+\)$/g,_0x2b3e6f(0x12e)):_0x437556[_0x2b3e6f(0x34d)](_0x2b3e6f(0x1a3))?_0x437556[_0x2b3e6f(0x33c)](_0x2b3e6f(0x1a3),_0x2b3e6f(0x364))[_0x2b3e6f(0x33c)](')',_0x2b3e6f(0x39d)):_0x437556;}};let P=class extends t['RxDisposable']{constructor(_0x4d1fcd,_0x4f6954,_0x1c735d,_0x33d32e){const _0x5364be=_0x4a4f45;super(),this[_0x5364be(0x1d5)]=_0x4d1fcd,this['_sheetSkeletonManagerService']=_0x4f6954,this[_0x5364be(0x405)]=_0x1c735d,this[_0x5364be(0x192)]=_0x33d32e,b(this,_0x5364be(0x138),new Set()),b(this,_0x5364be(0x268),null),b(this,_0x5364be(0x373),null),this[_0x5364be(0x332)]();}[_0x4a4f45(0x332)](){const _0x290410=_0x4a4f45;this[_0x290410(0x429)][_0x290410(0x3de)][_0x290410(0x237)]((0x0,i[_0x290410(0x42e)])(this[_0x290410(0x3f1)]),(0x0,i[_0x290410(0x3cd)])(_0x31349b=>{const _0x584042=_0x290410;if(_0x31349b){let _0x30d8ef=_0x31349b[_0x584042(0x275)];return(0x0,r['combineLatest'])(this[_0x584042(0x405)][_0x584042(0x197)](this[_0x584042(0x1d5)][_0x584042(0x3ad)]),this[_0x584042(0x192)][_0x584042(0x146)])[_0x584042(0x237)]((0x0,i[_0x584042(0x19c)])(([_0x2998b7,_0x2df2ed])=>{const _0x42182b=_0x584042;let _0x1108a0=new Map();return _0x2998b7[_0x42182b(0x22c)]((_0x4000f0,_0x2c10c2)=>{const _0x404fdd=_0x42182b;if(_0x4000f0[_0x404fdd(0x22d)]===_0x30d8ef){let _0x5258ef={..._0x4000f0};_0x5258ef[_0x404fdd(0x3e0)]=this['_themeService']['getColorFromTheme'](_0x4000f0[_0x404fdd(0x3e0)]),_0x1108a0[_0x404fdd(0x1a1)](_0x2c10c2,_0x5258ef);}}),{'skeleton':_0x31349b,'cursors':_0x1108a0};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x290410(0x195)](({skeleton:_0x442e2c,cursors:_0x1c34df})=>{const _0x1e66b1=_0x290410;this[_0x1e66b1(0x422)](),_0x442e2c&&this[_0x1e66b1(0x131)](_0x442e2c,_0x1c34df);}),this[_0x290410(0x2ad)](this[_0x290410(0x429)]['currentSkeleton$'][_0x290410(0x237)]((0x0,i[_0x290410(0x42e)])(this[_0x290410(0x3f1)]))[_0x290410(0x195)](_0xba16ad=>{const _0x42106d=_0x290410;var _0x372a05;if(_0xba16ad==null)return;(_0x372a05=this[_0x42106d(0x373)])==null||_0x372a05[_0x42106d(0x372)](),this[_0x42106d(0x373)]=null;let {skeleton:_0x3c6c88}=_0xba16ad,{scene:_0x12ed39}=this[_0x42106d(0x1d5)];this['_pointerMoveDisposable']=_0x12ed39[_0x42106d(0x341)]['subscribeEvent']((0x0,t['debounce'])(_0x4a0b32=>{const _0x56b531=_0x42106d;var _0x1d7c24,_0x5f4703;let {offsetX:_0x4d53e1,offsetY:_0x34acc4}=_0x4a0b32,{x:_0x55a8e0,y:_0x3d3c81}=_0x12ed39[_0x56b531(0x31d)](p[_0x56b531(0x2bf)][_0x56b531(0x411)]([_0x4d53e1,_0x34acc4])),{scaleX:_0x5d1640,scaleY:_0x3b33be}=_0x12ed39['getAncestorScale'](),_0x22174d=_0x12ed39[_0x56b531(0x3ed)](p[_0x56b531(0x34b)][_0x56b531(0x1fb)]),_0x1790b0=_0x12ed39[_0x56b531(0x17b)](p[_0x56b531(0x2bf)][_0x56b531(0x411)]([_0x55a8e0,_0x3d3c81]),_0x22174d),_0x26e7f0=_0x3c6c88['getCellIndexByOffset'](_0x4d53e1,_0x34acc4,_0x5d1640,_0x3b33be,_0x1790b0);(((_0x1d7c24=this[_0x56b531(0x268)])==null?void 0x0:_0x1d7c24[_0x56b531(0x378)])!==_0x26e7f0[_0x56b531(0x378)]||((_0x5f4703=this[_0x56b531(0x268)])==null?void 0x0:_0x5f4703['row'])!==_0x26e7f0[_0x56b531(0x1b6)])&&this[_0x56b531(0x138)][_0x56b531(0x22c)](_0x1b9381=>{const _0x5b0c7c=_0x56b531;_0x1b9381[_0x5b0c7c(0x3ac)](_0x26e7f0);});},0x64));})),this[_0x290410(0x2ad)]((0x0,t[_0x290410(0x2be)])(()=>{const _0x40b2cb=_0x290410;var _0x505048;(_0x505048=this['_pointerMoveDisposable'])==null||_0x505048['unsubscribe'](),this[_0x40b2cb(0x373)]=null;}));}[_0x4a4f45(0x131)](_0x5c2b0b,_0x3cfd48){const _0x342ff8=_0x4a4f45;let _0x25a824=this[_0x342ff8(0x429)]['getCurrentSkeleton']();if(!_0x25a824)return;let _0x1e769e=this[_0x342ff8(0x16d)]();if(!_0x1e769e)return;this[_0x342ff8(0x138)]['forEach'](_0x342aa7=>{_0x342aa7['makeDirty']();});let {scene:_0x2be782}=_0x1e769e,_0x3421c1=ve(Array[_0x342ff8(0x241)](_0x3cfd48[_0x342ff8(0x40c)]()))[_0x342ff8(0x19c)](_0x5e268b=>{const _0x40df01=_0x342ff8;let {color:_0x2dc04d,range:_0x9f7cc2,name:_0x148129,selection:_0x2e2157,sheetID:_0x4d19ab}=_0x5e268b,{startColumn:_0x5e1f6d,startRow:_0x27d8c2,endColumn:_0x4e3a93,endRow:_0x130b98}=_0x9f7cc2,_0x2eb2de=(0x0,_[_0x40df01(0x2ca)])(_0x27d8c2,_0x5e1f6d,_0x2be782,_0x25a824),_0x4e8159=(0x0,_[_0x40df01(0x2ca)])(_0x130b98,_0x4e3a93,_0x2be782,_0x25a824),{columnHeaderHeightAndMarginTop:_0xb6c76a}=_0x25a824,{startX:_0x55766c,startY:_0x1ef2bf}=_0x2eb2de,{endX:_0x3a631f,endY:_0x168385}=_0x4e8159,_0xabcaf0=_0x3a631f-_0x55766c,_0x1d4f8f=_0x168385-_0x1ef2bf;return new _e(_0x148129,{'labelPosition':_0x1ef2bf-_0xb6c76a>=0x14?_0x40df01(0x333):_0x40df01(0x1ef),'sheetID':_0x4d19ab,'range':_0x9f7cc2,'color':_0x2dc04d,'name':_0x148129,'selection':_0x2e2157,'left':_0x55766c,'top':_0x1ef2bf,'width':_0xabcaf0,'height':_0x1d4f8f,'evented':!0x1,'zIndex':0x1389});});_0x2be782[_0x342ff8(0x147)](_0x3421c1,0x1),this[_0x342ff8(0x138)]=new Set(_0x3421c1);}[_0x4a4f45(0x422)](){const _0x416f36=_0x4a4f45;var _0x3cae27;(_0x3cae27=this[_0x416f36(0x138)])==null||_0x3cae27[_0x416f36(0x22c)](_0x294592=>_0x294592[_0x416f36(0x288)]());}[_0x4a4f45(0x16d)](){const _0x4b5b8c=_0x4a4f45;return(0x0,_[_0x4b5b8c(0x1f6)])(this['_context'][_0x4b5b8c(0x181)],this[_0x4b5b8c(0x1d5)]);}};P=S([x(0x1,(0x0,t[_0x4a4f45(0x289)])(_['SheetSkeletonManagerService'])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(j)),x(0x3,(0x0,t['Inject'])(t[_0x4a4f45(0x260)]))],P);function ve(_0x23ff7d){const _0x2e056b=_0x4a4f45;let _0x4b0f16=new Map();return _0x23ff7d[_0x2e056b(0x22c)](_0x37a9b5=>{const _0x5d4b04=_0x2e056b;if(_0x4b0f16['has'](_0x37a9b5[_0x5d4b04(0x33e)])){let _0x24be63=_0x4b0f16[_0x5d4b04(0x39f)](_0x37a9b5['selection']);_0x24be63[_0x5d4b04(0x3b3)]+=',\x20'+_0x37a9b5[_0x5d4b04(0x3b3)];}else _0x4b0f16[_0x5d4b04(0x1a1)](_0x37a9b5[_0x5d4b04(0x33e)],_0x37a9b5);}),Array[_0x2e056b(0x241)](_0x4b0f16[_0x2e056b(0x40c)]());}function F(_0x2557fe){const _0x165389=_0x4a4f45;return typeof _0x2557fe==_0x165389(0x362)&&!!_0x2557fe;}function ye(_0x3aeaa8){const _0x597b77=_0x4a4f45;return _0x3aeaa8[_0x597b77(0x170)]===l['CollaborationEvent'][_0x597b77(0x32c)]&&_0x597b77(0x18c)in _0x3aeaa8&&F(_0x3aeaa8['data'])&&typeof _0x3aeaa8[_0x597b77(0x18c)][_0x597b77(0x37b)]==_0x597b77(0x2cf)&&typeof _0x3aeaa8[_0x597b77(0x18c)][_0x597b77(0x33e)]==_0x597b77(0x2cf);}function be(_0x962d4c){const _0xb3398=_0x4a4f45;return _0x962d4c[_0xb3398(0x170)]===l['CollaborationEvent'][_0xb3398(0x3e8)]&&_0xb3398(0x18c)in _0x962d4c&&F(_0x962d4c[_0xb3398(0x18c)])&&typeof _0x962d4c[_0xb3398(0x18c)]['memberID']==_0xb3398(0x2cf);}function xe(_0x553dc1,_0x506db6){const _0x23b906=_0x4a4f45;let _0x2c0d9e;try{_0x2c0d9e=JSON[_0x23b906(0x12c)](_0x553dc1);}catch{return null;}if(!F(_0x2c0d9e)||typeof _0x2c0d9e['kind']!=_0x23b906(0x2cf)||typeof _0x2c0d9e['unitId']!=_0x23b906(0x2cf)||typeof _0x2c0d9e[_0x23b906(0x1b9)]!=_0x23b906(0x2cf))return null;let _0x246c4c=typeof _0x2c0d9e[_0x23b906(0x348)]==_0x23b906(0x35f)?_0x2c0d9e['unitType']:_0x506db6;if(_0x246c4c==null)return null;let _0x1fe041=F(_0x2c0d9e[_0x23b906(0x414)])&&typeof _0x2c0d9e[_0x23b906(0x414)]['x']==_0x23b906(0x35f)&&Number[_0x23b906(0x2dd)](_0x2c0d9e[_0x23b906(0x414)]['x'])&&typeof _0x2c0d9e[_0x23b906(0x414)]['y']==_0x23b906(0x35f)&&Number['isFinite'](_0x2c0d9e[_0x23b906(0x414)]['y'])?{'x':_0x2c0d9e['pointer']['x'],'y':_0x2c0d9e[_0x23b906(0x414)]['y']}:null;return{'kind':_0x2c0d9e[_0x23b906(0x428)],'unitType':_0x246c4c,'unitId':_0x2c0d9e[_0x23b906(0x3ad)],'subUnitId':_0x2c0d9e[_0x23b906(0x1b9)],'selectedIds':Array[_0x23b906(0x347)](_0x2c0d9e[_0x23b906(0x361)])?_0x2c0d9e['selectedIds']['filter'](_0x272bc2=>typeof _0x272bc2==_0x23b906(0x2cf)):[],'focusedId':typeof _0x2c0d9e[_0x23b906(0x1e0)]==_0x23b906(0x2cf)?_0x2c0d9e[_0x23b906(0x1e0)]:null,'pointer':_0x1fe041};}function Se(_0x4a793c,_0x391008,_0x250696){const _0x1df1bc=_0x4a4f45;return{'kind':_0x391008,'unitType':_0x4a793c,'unitId':_0x250696['unitId'],'subUnitId':_0x250696['subUnitId'],'selectedIds':Array[_0x1df1bc(0x241)](_0x250696[_0x1df1bc(0x361)]),'focusedId':_0x250696['focusedId'],'pointer':_0x250696[_0x1df1bc(0x414)]?{..._0x250696['pointer']}:null};}let I=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x20b663,_0x1fd7db,_0x2fe18b,_0x509b06,_0x8ec3f7,_0x2886b0){const _0x5e1373=_0x4a4f45;super(),this[_0x5e1373(0x3ad)]=_0x20b663,this[_0x5e1373(0x1e3)]=_0x1fd7db,this['_adapter']=_0x2fe18b,this[_0x5e1373(0x1c2)]=_0x509b06,this['_memberService']=_0x8ec3f7,this[_0x5e1373(0x14b)]=_0x2886b0,b(this,_0x5e1373(0x38b),!0x1),b(this,_0x5e1373(0x284),!0x1);}get[_0x4a4f45(0x348)](){const _0xd05126=_0x4a4f45;return this[_0xd05126(0x1a4)]['unitType'];}[_0x4a4f45(0x288)](){const _0x3914e8=_0x4a4f45;this[_0x3914e8(0x3bd)](),super[_0x3914e8(0x288)]();}[_0x4a4f45(0x42d)](){const _0x1493f5=_0x4a4f45;this[_0x1493f5(0x284)]||(this[_0x1493f5(0x284)]=!0x0,this[_0x1493f5(0x1e3)][_0x1493f5(0x2b4)][_0x1493f5(0x237)]((0x0,r['takeUntil'])(this[_0x1493f5(0x3f1)]))[_0x1493f5(0x195)](_0x15594d=>{const _0x3a4afd=_0x1493f5;if(_0x15594d===e[_0x3a4afd(0x3f2)][_0x3a4afd(0x2e8)]){this[_0x3a4afd(0x38b)]=!0x0;let _0x1fa123=this[_0x3a4afd(0x1a4)][_0x3a4afd(0x365)](this['unitId']);_0x1fa123&&this[_0x3a4afd(0x1f2)](_0x1fa123);}else this[_0x3a4afd(0x38b)]=!0x1,this[_0x3a4afd(0x3bd)]();}),this['_session'][_0x1493f5(0x212)][_0x1493f5(0x237)]((0x0,r[_0x1493f5(0x42e)])(this['dispose$']))[_0x1493f5(0x195)](_0x1cb9ee=>{const _0x5c5cf5=_0x1493f5;ye(_0x1cb9ee)?this['_handleCursorUpdate'](_0x1cb9ee):be(_0x1cb9ee)&&this[_0x5c5cf5(0x17a)](_0x1cb9ee['data']['memberID']);}),this['_adapter']['localPresence$']['pipe']((0x0,r[_0x1493f5(0x3e3)])(_0x299746=>this[_0x1493f5(0x38b)]&&_0x299746['unitId']===this[_0x1493f5(0x3ad)]),(0x0,r['throttle'])(_0x3815c8=>(0x0,r[_0x1493f5(0x322)])(_0x3815c8[_0x1493f5(0x20c)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r['takeUntil'])(this[_0x1493f5(0x3f1)]))[_0x1493f5(0x195)](_0x1faba4=>this[_0x1493f5(0x1f2)](_0x1faba4)));}[_0x4a4f45(0x1f2)](_0xcc52e9){const _0x3fed8c=_0x4a4f45;let _0x18cc98=this['_session'][_0x3fed8c(0x1af)]();if(!_0x18cc98||!this[_0x3fed8c(0x38b)])return;let _0x48e846={'eventID':l[_0x3fed8c(0x243)][_0x3fed8c(0x32c)],'data':{'unitID':this[_0x3fed8c(0x3ad)],'memberID':_0x18cc98,'selection':JSON[_0x3fed8c(0x26b)](Se(this[_0x3fed8c(0x348)],this[_0x3fed8c(0x1a4)][_0x3fed8c(0x3c0)],_0xcc52e9))}};this[_0x3fed8c(0x1e3)]['send'](_0x48e846,this[_0x3fed8c(0x3ad)])[_0x3fed8c(0x3a0)](()=>void 0x0);}[_0x4a4f45(0x3bb)](_0x1cfe8b){const _0x51fb4e=_0x4a4f45;let {memberID:_0x28f4d6,selection:_0x1c6598}=_0x1cfe8b['data'];if(_0x28f4d6===this['_session'][_0x51fb4e(0x1af)]())return;let _0xe45f27=xe(_0x1c6598,this[_0x51fb4e(0x348)]);if(!_0xe45f27||_0xe45f27[_0x51fb4e(0x428)]!==this['_adapter'][_0x51fb4e(0x3c0)]||_0xe45f27[_0x51fb4e(0x348)]!==this[_0x51fb4e(0x348)]||_0xe45f27[_0x51fb4e(0x3ad)]!==this['unitId'])return;let _0x38578e=this[_0x51fb4e(0x374)][_0x51fb4e(0x1e9)](this[_0x51fb4e(0x3ad)],_0x28f4d6),_0x2d6378={'unitId':_0xe45f27['unitId'],'subUnitId':_0xe45f27[_0x51fb4e(0x1b9)],'selectedIds':_0xe45f27[_0x51fb4e(0x361)],'focusedId':_0xe45f27['focusedId'],'pointer':_0xe45f27[_0x51fb4e(0x414)],'memberId':_0x28f4d6,'color':this[_0x51fb4e(0x1c2)][_0x51fb4e(0x330)](_0x28f4d6),'name':(_0x38578e==null?void 0x0:_0x38578e[_0x51fb4e(0x3b3)])??_0x28f4d6};this[_0x51fb4e(0x14b)][_0x51fb4e(0x18d)](T['id'],{'unitType':this[_0x51fb4e(0x348)],'update':{'type':_0x51fb4e(0x1a1),'state':_0x2d6378}})[_0x51fb4e(0x3a0)](()=>void 0x0);}[_0x4a4f45(0x17a)](_0x483d30){const _0x2cb2cd=_0x4a4f45;this[_0x2cb2cd(0x14b)][_0x2cb2cd(0x18d)](T['id'],{'unitType':this[_0x2cb2cd(0x348)],'update':{'type':_0x2cb2cd(0x221),'unitId':this[_0x2cb2cd(0x3ad)],'memberId':_0x483d30}})[_0x2cb2cd(0x3a0)](()=>void 0x0);}[_0x4a4f45(0x3bd)](){const _0x732d07=_0x4a4f45;this[_0x732d07(0x14b)][_0x732d07(0x18d)](T['id'],{'unitType':this[_0x732d07(0x348)],'update':{'type':'clear','unitId':this[_0x732d07(0x3ad)]}})['catch'](()=>void 0x0);}};I=S([x(0x3,(0x0,t['Inject'])(D)),x(0x4,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x412)])),x(0x5,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x1de)]))],I);let L=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x52a63e,_0x45c1,_0x3adea9,_0x4d0b0a){const _0x3190d8=_0x4a4f45;super(),this[_0x3190d8(0x25c)]=_0x52a63e,this[_0x3190d8(0x38f)]=_0x45c1,this[_0x3190d8(0x27b)]=_0x3adea9,this['_adapterRegistry']=_0x4d0b0a,b(this,'_isDisposed',!0x1),b(this,_0x3190d8(0x2c0),new Map()),b(this,_0x3190d8(0x1da),new Map()),b(this,_0x3190d8(0x123),new Map()),this[_0x3190d8(0x332)]();}[_0x4a4f45(0x288)](){const _0x10249e=_0x4a4f45;this['_isDisposed']=!0x0,this['_adapterDisposables'][_0x10249e(0x22c)](_0xd79bd6=>_0xd79bd6[_0x10249e(0x288)]()),this['_adapterDisposables'][_0x10249e(0x337)](),this[_0x10249e(0x2c0)][_0x10249e(0x22c)](_0x373b4c=>_0x373b4c['dispose']()),this[_0x10249e(0x2c0)][_0x10249e(0x337)](),this['_pendingEntities'][_0x10249e(0x337)](),super['dispose']();}[_0x4a4f45(0x332)](){const _0x54bc5f=_0x4a4f45;this[_0x54bc5f(0x312)][_0x54bc5f(0x153)][_0x54bc5f(0x237)]((0x0,r['takeUntil'])(this[_0x54bc5f(0x3f1)]))['subscribe'](_0x4e0503=>this[_0x54bc5f(0x36b)](_0x4e0503));}['_syncAdapters'](_0x88669f){const _0x39bfad=_0x4a4f45;let _0x5f27a0=new Set(_0x88669f[_0x39bfad(0x19c)](_0x30a1d6=>_0x30a1d6[_0x39bfad(0x348)]));this[_0x39bfad(0x123)][_0x39bfad(0x22c)]((_0x385dc9,_0x28584e)=>{const _0x2b3ab4=_0x39bfad;_0x5f27a0[_0x2b3ab4(0x33a)](_0x28584e)||(_0x385dc9['dispose'](),this[_0x2b3ab4(0x123)]['delete'](_0x28584e),this['_disposeEntitiesForType'](_0x28584e));}),_0x88669f[_0x39bfad(0x22c)](_0xf8948b=>{const _0x2673bf=_0x39bfad;this[_0x2673bf(0x123)][_0x2673bf(0x33a)](_0xf8948b[_0x2673bf(0x348)])||this[_0x2673bf(0x1ca)](_0xf8948b);});}['_bindAdapter'](_0x253833){const _0x25fb7e=_0x4a4f45;let _0x5d34d3=new t[(_0x25fb7e(0x403))]();this['_adapterDisposables'][_0x25fb7e(0x1a1)](_0x253833[_0x25fb7e(0x348)],_0x5d34d3),_0x5d34d3[_0x25fb7e(0x307)](_0x253833['activate']()),this[_0x25fb7e(0x25c)][_0x25fb7e(0x413)](_0x253833[_0x25fb7e(0x348)])['forEach'](_0x415a73=>this[_0x25fb7e(0x25a)](_0x415a73[_0x25fb7e(0x370)](),_0x253833)[_0x25fb7e(0x3a0)](()=>void 0x0));let _0x49a3f7=this[_0x25fb7e(0x25c)][_0x25fb7e(0x309)](_0x253833['unitType'])[_0x25fb7e(0x195)](({unit:_0x5bb258})=>this[_0x25fb7e(0x25a)](_0x5bb258[_0x25fb7e(0x370)](),_0x253833)[_0x25fb7e(0x3a0)](()=>void 0x0));_0x5d34d3[_0x25fb7e(0x307)]((0x0,t['toDisposable'])(()=>_0x49a3f7[_0x25fb7e(0x372)]()));let _0x4bd6e3=this[_0x25fb7e(0x25c)][_0x25fb7e(0x3b6)](_0x253833[_0x25fb7e(0x348)])[_0x25fb7e(0x195)](_0x5c88f8=>this[_0x25fb7e(0x3b1)](_0x5c88f8[_0x25fb7e(0x370)]()));_0x5d34d3[_0x25fb7e(0x307)]((0x0,t[_0x25fb7e(0x2be)])(()=>_0x4bd6e3[_0x25fb7e(0x372)]()));}async[_0x4a4f45(0x25a)](_0x1eaeb6,_0x1acb1c){const _0x2d9959=_0x4a4f45;if(this[_0x2d9959(0x2c0)][_0x2d9959(0x33a)](_0x1eaeb6)||this[_0x2d9959(0x1da)][_0x2d9959(0x33a)](_0x1eaeb6))return;let _0x37ee38={};this[_0x2d9959(0x1da)][_0x2d9959(0x1a1)](_0x1eaeb6,_0x37ee38);let _0x523026=await this[_0x2d9959(0x27b)][_0x2d9959(0x331)](_0x1eaeb6)[_0x2d9959(0x3a0)](_0x20c3b1=>{const _0x75fd7d=_0x2d9959;throw this['_pendingEntities'][_0x75fd7d(0x39f)](_0x1eaeb6)===_0x37ee38&&this[_0x75fd7d(0x1da)][_0x75fd7d(0x426)](_0x1eaeb6),_0x20c3b1;});if(this['_isDisposed']||this[_0x2d9959(0x1da)][_0x2d9959(0x39f)](_0x1eaeb6)!==_0x37ee38||this[_0x2d9959(0x312)][_0x2d9959(0x39f)](_0x1acb1c['unitType'])!==_0x1acb1c){this[_0x2d9959(0x1da)][_0x2d9959(0x39f)](_0x1eaeb6)===_0x37ee38&&this[_0x2d9959(0x1da)]['delete'](_0x1eaeb6);return;}let _0x368c4b=this[_0x2d9959(0x38f)][_0x2d9959(0x3ba)](I,_0x1eaeb6,_0x523026,_0x1acb1c);_0x368c4b[_0x2d9959(0x42d)](),this['_pendingEntities']['delete'](_0x1eaeb6),this[_0x2d9959(0x2c0)]['set'](_0x1eaeb6,_0x368c4b);}[_0x4a4f45(0x3b1)](_0x46debd){const _0x23296b=_0x4a4f45;this[_0x23296b(0x1da)][_0x23296b(0x426)](_0x46debd);let _0x5b4c23=this[_0x23296b(0x2c0)]['get'](_0x46debd);_0x5b4c23&&(_0x5b4c23[_0x23296b(0x288)](),this[_0x23296b(0x2c0)][_0x23296b(0x426)](_0x46debd));}[_0x4a4f45(0x40a)](_0x51e3e8){const _0x4efc63=_0x4a4f45;this[_0x4efc63(0x25c)][_0x4efc63(0x413)](_0x51e3e8)[_0x4efc63(0x22c)](_0x461fbe=>this[_0x4efc63(0x1da)][_0x4efc63(0x426)](_0x461fbe[_0x4efc63(0x370)]())),Array[_0x4efc63(0x241)](this[_0x4efc63(0x2c0)]['entries']())['forEach'](([_0x27715d,_0x2f9be6])=>{const _0x56ac8a=_0x4efc63;_0x2f9be6[_0x56ac8a(0x348)]===_0x51e3e8&&this['_disposeEntity'](_0x27715d);});}};L=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x3f7)])),x(0x3,(0x0,t[_0x4a4f45(0x289)])(n['IUnitPresenceUIAdapterRegistry']))],L);const R={'toast':_0x4a4f45(0x321),'actionButton':_0x4a4f45(0x2a4)};let z=class extends t['Disposable']{constructor(_0x18e033,_0x5d0519,_0xdd899d,_0x18b193,_0x3c99ef,_0x1c0d41){const _0x1dc027=_0x4a4f45;super(),this[_0x1dc027(0x33d)]=_0x18e033,this[_0x1dc027(0x17f)]=_0x5d0519,this['_collaborationUIEventService']=_0xdd899d,this[_0x1dc027(0x168)]=_0x18b193,this[_0x1dc027(0x173)]=_0x3c99ef,this[_0x1dc027(0x249)]=_0x1c0d41,b(this,'_conflictNotification',null),b(this,'_retryingConflictCacheUnitIDs',new Set()),this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x4a4f45(0x288)](){const _0x873c24=_0x4a4f45;var _0x12e612;(_0x12e612=this[_0x873c24(0x2a2)])==null||_0x12e612[_0x873c24(0x288)](),this[_0x873c24(0x2a2)]=null,super[_0x873c24(0x288)]();}[_0x4a4f45(0x41b)](){const _0x34b142=_0x4a4f45;this[_0x34b142(0x2ad)](this[_0x34b142(0x33d)]['registerBeforeClose'](()=>{const _0x449bd5=_0x34b142;if(this[_0x449bd5(0x17f)]['saveTaskMap'][_0x449bd5(0x3db)])return this[_0x449bd5(0x249)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x4a4f45(0x214)](){const _0x5cc62f=_0x4a4f45;this[_0x5cc62f(0x2ad)](this[_0x5cc62f(0x2cd)][_0x5cc62f(0x212)][_0x5cc62f(0x195)](_0x4375a1=>{const _0x5bd7b1=_0x5cc62f;_0x4375a1['id']===e[_0x5bd7b1(0x29b)]['OTHER_CLIENT_EDITING']&&this[_0x5bd7b1(0x168)]['show']({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x179)],'content':this['_localeService']['t'](_0x5bd7b1(0x26f))}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x251)]&&this[_0x5bd7b1(0x168)][_0x5bd7b1(0x295)]({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x179)],'content':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x16b))}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x2c1)]&&this[_0x5bd7b1(0x1b8)]({'title':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x2ea)),'content':this['_localeService']['t']('collaboration-client-ui.permission.content'),'type':_0x5bd7b1(0x27f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x2a7)),'onClick':_0x25a6e2=>{const _0x29ca9a=_0x5bd7b1;_0x25a6e2[_0x29ca9a(0x22b)](),window[_0x29ca9a(0x151)][_0x29ca9a(0x232)]();}}}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x3ec)]&&this[_0x5bd7b1(0x3a3)](),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x3f6)]&&_0x4375a1[_0x5bd7b1(0x246)]&&this[_0x5bd7b1(0x398)](_0x4375a1['unitID'],_0x4375a1[_0x5bd7b1(0x313)]??''),_0x4375a1['id']===e[_0x5bd7b1(0x29b)]['CONFLICT']&&this['_replaceConflictNotification']({'title':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x41d)),'content':this['_localeService']['t'](_0x5bd7b1(0x25d)),'type':_0x5bd7b1(0x27f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this['_localeService']['t'](_0x5bd7b1(0x2a7)),'onClick':_0x4fc7e2=>{const _0x121ddc=_0x5bd7b1;_0x4fc7e2[_0x121ddc(0x22b)](),window[_0x121ddc(0x151)][_0x121ddc(0x232)]();}}}),_0x4375a1['id']===e['CollaborationUIEventId'][_0x5bd7b1(0x2a5)]&&this[_0x5bd7b1(0x168)][_0x5bd7b1(0x295)]({'type':a['MessageType'][_0x5bd7b1(0x179)],'content':this[_0x5bd7b1(0x249)]['t'](_0x4375a1[_0x5bd7b1(0x18c)]||'')}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x19e)]&&this['_messageService']['show']({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x179)],'content':this['_localeService']['t'](_0x5bd7b1(0x1e2))}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)]['SOCKET_FAILED']&&this[_0x5bd7b1(0x168)][_0x5bd7b1(0x295)]({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x1cc)],'content':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x256))}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5bd7b1(0x168)]['show']({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x1cc)],'content':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x342))});}));}[_0x4a4f45(0x3a3)](){const _0x58a63d=_0x4a4f45;this['_replaceConflictNotification']({'title':this[_0x58a63d(0x249)]['t'](_0x58a63d(0x41d)),'content':this[_0x58a63d(0x249)]['t'](_0x58a63d(0x2d2)),'type':'loading','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x4a4f45(0x398)](_0x4d3e7d,_0x387412){const _0x5f42de=_0x4a4f45;this['_replaceConflictNotification']({'title':this[_0x5f42de(0x249)]['t'](_0x5f42de(0x41d)),'content':this['_localeService']['t'](_0x5f42de(0x1d1)),'type':_0x5f42de(0x27f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this[_0x5f42de(0x249)]['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x2a9a46=>{const _0x14f8c6=_0x5f42de;_0x2a9a46[_0x14f8c6(0x22b)](),this['_retryConflictCacheClear'](_0x4d3e7d,_0x387412);}}});}[_0x4a4f45(0x3a6)](_0x3ec285,_0x4263fa){const _0x4acf1c=_0x4a4f45;let _0x1c71f4=_0x3ec285+':'+(_0x4263fa??'');this[_0x4acf1c(0x416)][_0x4acf1c(0x33a)](_0x1c71f4)||(this[_0x4acf1c(0x416)][_0x4acf1c(0x307)](_0x1c71f4),this['_showConflictProcessingNotification'](),this[_0x4acf1c(0x17f)][_0x4acf1c(0x2ef)](_0x3ec285,_0x4263fa)[_0x4acf1c(0x2b1)](()=>window[_0x4acf1c(0x151)]['reload']())[_0x4acf1c(0x3a0)](()=>this[_0x4acf1c(0x398)](_0x3ec285,_0x4263fa))[_0x4acf1c(0x261)](()=>this[_0x4acf1c(0x416)]['delete'](_0x1c71f4)));}[_0x4a4f45(0x1b8)](_0x1f85f9){const _0x19f842=_0x4a4f45;var _0x2e2be2;(_0x2e2be2=this[_0x19f842(0x2a2)])==null||_0x2e2be2[_0x19f842(0x288)](),this['_conflictNotification']=this[_0x19f842(0x173)][_0x19f842(0x295)](_0x1f85f9);}};z=S([x(0x0,n[_0x4a4f45(0x3b0)]),x(0x1,e[_0x4a4f45(0x36d)]),x(0x2,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x1bc)])),x(0x3,n[_0x4a4f45(0x28b)]),x(0x4,n['INotificationService']),x(0x5,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x188)]))],z);const B=(0x0,t[_0x4a4f45(0x14a)])('uni.network.url-service');let V=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x148202,_0x2ca1fc,_0x5aec71,_0xa7c55){const _0x351ca7=_0x4a4f45;super(),this[_0x351ca7(0x3d2)]=_0x148202,this[_0x351ca7(0x3fa)]=_0x2ca1fc,this[_0x351ca7(0x14b)]=_0x5aec71,this[_0x351ca7(0x23b)]=_0xa7c55,this[_0x351ca7(0x332)]()[_0x351ca7(0x3a0)](_0x5cdbb7=>this['_logService'][_0x351ca7(0x27f)](_0x351ca7(0x202),_0x5cdbb7));}async[_0x4a4f45(0x332)](){const _0x4a3205=_0x4a4f45;let _0x291e23=this[_0x4a3205(0x3d2)]['getParam'](_0x4a3205(0x181)),_0x202cb0=this[_0x4a3205(0x3d2)][_0x4a3205(0x156)](_0x4a3205(0x148)),_0x212c78=this['_urlService'][_0x4a3205(0x156)](_0x4a3205(0x323));if(!_0x291e23||!_0x202cb0){this[_0x4a3205(0x3fa)]['debug'](_0x4a3205(0x202),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x3abb55=await this['_dataLoaderService'][_0x4a3205(0x12a)](_0x291e23,Number(_0x202cb0),_0x212c78);this[_0x4a3205(0x366)]||_0x3abb55&&_0x3abb55 instanceof t[_0x4a3205(0x3c2)]&&await this['_setupSubUnitSync'](_0x3abb55);}async['_setupSubUnitSync'](_0x19e42d){const _0x1a7541=_0x4a4f45;await this[_0x1a7541(0x327)](_0x19e42d,!0x0),!this[_0x1a7541(0x366)]&&(_0x19e42d[_0x1a7541(0x3fc)][_0x1a7541(0x237)]((0x0,r[_0x1a7541(0x42e)])(this[_0x1a7541(0x3f1)]))[_0x1a7541(0x195)](_0x534508=>{const _0x59949f=_0x1a7541;_0x534508&&this[_0x59949f(0x3a2)](_0x534508);}),this[_0x1a7541(0x3d2)][_0x1a7541(0x216)][_0x1a7541(0x237)]((0x0,r[_0x1a7541(0x42e)])(this[_0x1a7541(0x3f1)]))['subscribe'](()=>{const _0x46025c=_0x1a7541;this[_0x46025c(0x327)](_0x19e42d)[_0x46025c(0x3a0)](_0x106dbf=>this['_logService'][_0x46025c(0x27f)](_0x46025c(0x202),_0x106dbf));}));}[_0x4a4f45(0x3a2)](_0x3b7104,_0x4e086c=!0x1){const _0x54e462=_0x4a4f45;let _0x5b29b5=this[_0x54e462(0x3d2)][_0x54e462(0x156)](_0x54e462(0x323));_0x3b7104[_0x54e462(0x2de)]()!==_0x5b29b5&&this['_urlService']['setParam'](_0x54e462(0x323),_0x3b7104['getSheetId'](),_0x4e086c);}async[_0x4a4f45(0x327)](_0x3c7466,_0x522c3f=!0x1){const _0x38a84a=_0x4a4f45;var _0x2636a7;let _0x277e11=this[_0x38a84a(0x3d2)][_0x38a84a(0x156)](_0x38a84a(0x323));if(!_0x277e11||!_0x3c7466['getSheetBySheetId'](_0x277e11)){let _0x17af8e=_0x3c7466[_0x38a84a(0x2a1)]()[0x0],_0x24b23f=_0x3c7466[_0x38a84a(0x180)](_0x17af8e);if(!_0x24b23f||(this[_0x38a84a(0x3a2)](_0x24b23f,!0x0),this[_0x38a84a(0x366)]))return;await this[_0x38a84a(0x14b)][_0x38a84a(0x18d)](g[_0x38a84a(0x18b)]['id'],{'unitId':_0x3c7466[_0x38a84a(0x370)](),'subUnitId':_0x17af8e});}else(_0x522c3f||((_0x2636a7=_0x3c7466[_0x38a84a(0x16a)]())==null?void 0x0:_0x2636a7[_0x38a84a(0x2de)]())!==_0x277e11)&&await this[_0x38a84a(0x14b)][_0x38a84a(0x18d)](g[_0x38a84a(0x18b)]['id'],{'unitId':_0x3c7466[_0x38a84a(0x370)](),'subUnitId':_0x277e11});}};V=S([x(0x0,B),x(0x1,t[_0x4a4f45(0x3d3)]),x(0x2,t['ICommandService']),x(0x3,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x285)]))],V);let H=class{constructor(_0x4ff303,_0x4859f2){const _0x55de85=_0x4a4f45;this[_0x55de85(0x349)]=_0x4ff303,this['_renderManagerService']=_0x4859f2;}[_0x4a4f45(0x252)](_0x517178){this['_transformUndoRedoStack'](_0x517178),this['_transformPreviousActiveRange'](_0x517178);}['transformRemoteChangeset'](_0x227496){const _0x400f67=_0x4a4f45;let {unitID:_0x196f88}=_0x227496,{redoCache:_0x28041e}=this[_0x400f67(0x133)][_0x400f67(0x3d6)](_0x196f88)[_0x400f67(0x3e1)](f[_0x400f67(0x185)])[_0x400f67(0x1d0)]();if(_0x28041e['length']===0x0)return _0x227496;let _0x176789=t['Tools'][_0x400f67(0x15a)](_0x227496[_0x400f67(0x3f8)][0x0]);for(let _0x4400ad=0x0;_0x4400ad<_0x28041e[_0x400f67(0x18e)];_0x4400ad++){let _0x162437={'id':_0x400f67(0x184),'params':{..._0x28041e[_0x4400ad]}},_0x1b9168=this[_0x400f67(0x349)]['transformMutation'](_0x176789,_0x162437,!0x1);if((0x0,l[_0x400f67(0x2e2)])(_0x1b9168))throw _0x1b9168['error'];_0x176789=_0x1b9168[_0x400f67(0x2e4)];}return{...t['Tools'][_0x400f67(0x15a)](_0x227496),'mutations':[_0x176789]};}[_0x4a4f45(0x2b8)](_0x3f9f12){const _0x307652=_0x4a4f45;let {unitID:_0xee5135}=_0x3f9f12,_0x5cff29=this[_0x307652(0x133)][_0x307652(0x3d6)](_0xee5135)[_0x307652(0x3e1)](f['DocIMEInputManagerService']),{undoCache:_0x14df95,redoCache:_0x35c333}=_0x5cff29['getUndoRedoMutationParamsCache']();if(_0x14df95['length']===0x0||_0x35c333['length']===0x0)return;let _0x52e331=[],_0x59cbdb=[],_0xdca74b=t[_0x307652(0x3e4)][_0x307652(0x15a)](_0x3f9f12['mutations'][0x0]),_0x5246d4=t[_0x307652(0x3e4)][_0x307652(0x15a)](_0x3f9f12[_0x307652(0x3f8)][0x0]);for(let _0xc488f4=_0x14df95['length']-0x1;_0xc488f4>=0x0;_0xc488f4--){let _0x47ae2c={'id':'doc.mutation.rich-text-editing','params':{..._0x14df95[_0xc488f4]}},_0x2e3055={'id':_0x307652(0x184),'params':{..._0x35c333[_0xc488f4]}},_0x404489=this[_0x307652(0x349)]['transformMutation'](_0xdca74b,_0x47ae2c,!0x1),_0x3ec91b=this[_0x307652(0x349)]['transformMutation'](_0x5246d4,_0x2e3055,!0x1);if((0x0,l[_0x307652(0x2e2)])(_0x404489))throw _0x404489[_0x307652(0x27f)];if((0x0,l[_0x307652(0x2e2)])(_0x3ec91b))throw _0x3ec91b['error'];_0x52e331['unshift'](_0x404489[_0x307652(0x2ed)][_0x307652(0x304)]),_0x59cbdb[_0x307652(0x3aa)](_0x3ec91b[_0x307652(0x2ed)][_0x307652(0x304)]),_0xdca74b=_0x404489[_0x307652(0x2e4)],_0x5246d4=_0x3ec91b['m1Prime'];}_0x5cff29[_0x307652(0x294)]({'undoCache':_0x52e331,'redoCache':_0x59cbdb});}['_transformPreviousActiveRange'](_0x4e1b72){const _0x46a475=_0x4a4f45;let {unitID:_0x10c8fb}=_0x4e1b72,_0x393e7b=this[_0x46a475(0x133)][_0x46a475(0x3d6)](_0x10c8fb)['with'](f[_0x46a475(0x185)]),_0x482d10=_0x393e7b['getActiveRange']();if(_0x482d10==null)return;let _0x175c08=[{'id':_0x46a475(0x184),'params':{'unitId':_0x4e1b72[_0x46a475(0x246)],'actions':null,'textRanges':[_0x482d10]}}],_0x1d7b17=this['_transformService']['transformMutationsWithChangeset'](_0x4e1b72,_0x175c08);if(!(0x0,l['isTransformMutationsWithChangesetSuccess'])(_0x1d7b17))throw _0x1d7b17[_0x46a475(0x27f)];let _0x26cf9b=_0x1d7b17[_0x46a475(0x2ed)][0x0][_0x46a475(0x304)][_0x46a475(0x41c)];Array[_0x46a475(0x347)](_0x26cf9b)&&_0x26cf9b[_0x46a475(0x18e)]&&_0x393e7b[_0x46a475(0x36c)](_0x26cf9b[0x0]);}};H=S([x(0x0,l[_0x4a4f45(0x20a)]),x(0x1,p[_0x4a4f45(0x3f4)])],H);let U=class{constructor(_0x3a2a12,_0x318d25,_0x194436){const _0x20458e=_0x4a4f45;this['_injector']=_0x3a2a12,this[_0x20458e(0x349)]=_0x318d25,this[_0x20458e(0x3cc)]=_0x194436;}[_0x4a4f45(0x1ec)](_0x2bf66e){this['_transformHistoryAndStateStack'](_0x2bf66e);}[_0x4a4f45(0x1ae)](_0xffd64a){const _0x126f48=_0x4a4f45;let {unitID:_0x3590b1}=_0xffd64a,{collaboration:_0x7e588c}=this[_0x126f48(0x3cc)]['getStateCache'](_0x3590b1);if(_0x7e588c[_0x126f48(0x18e)]===0x0)return _0xffd64a;let _0x201d2e=t[_0x126f48(0x3e4)]['deepClone'](_0xffd64a['mutations'][0x0]);for(let _0x19d0c8=0x0;_0x19d0c8<_0x7e588c['length'];_0x19d0c8++){let _0x37ca66={'id':_0x126f48(0x184),'params':{'unitId':_0x7e588c[_0x19d0c8][_0x126f48(0x3ad)],..._0x7e588c[_0x19d0c8]['redoState']}},_0xf9fe2e=this[_0x126f48(0x349)][_0x126f48(0x343)](_0x201d2e,_0x37ca66,!0x1);if((0x0,l[_0x126f48(0x2e2)])(_0xf9fe2e))throw _0xf9fe2e['error'];_0x201d2e=_0xf9fe2e[_0x126f48(0x2e4)];}return{...t['Tools'][_0x126f48(0x15a)](_0xffd64a),'mutations':[_0x201d2e]};}[_0x4a4f45(0x392)](_0x3a155e){const _0x115f17=_0x4a4f45;let {unitID:_0x382fdb}=_0x3a155e,{history:_0x5722ba,collaboration:_0x814124}=this['_docStateChangeManagerService'][_0x115f17(0x224)](_0x382fdb);if(_0x5722ba[_0x115f17(0x18e)]===0x0&&_0x814124[_0x115f17(0x18e)]===0x0)return;let _0x1a6276=[],_0x20184b=[],_0x27f6c3=t[_0x115f17(0x3e4)][_0x115f17(0x15a)](_0x3a155e[_0x115f17(0x3f8)][0x0]),_0x2a4f77=t['Tools'][_0x115f17(0x15a)](_0x3a155e[_0x115f17(0x3f8)][0x0]);for(let _0x223814=_0x5722ba['length']-0x1;_0x223814>=0x0;_0x223814--){let _0xf449ac={'id':_0x115f17(0x184),'params':{'unitId':_0x5722ba[_0x223814][_0x115f17(0x3ad)],..._0x5722ba[_0x223814][_0x115f17(0x254)]}},_0x46e08f={'id':_0x115f17(0x184),'params':{'unitId':_0x5722ba[_0x223814][_0x115f17(0x3ad)],..._0x5722ba[_0x223814][_0x115f17(0x1b2)]}},_0x3e39bc=this[_0x115f17(0x349)]['transformMutation'](_0x27f6c3,_0xf449ac,!0x1),_0x3590af=this[_0x115f17(0x349)][_0x115f17(0x343)](_0x2a4f77,_0x46e08f,!0x1);if((0x0,l[_0x115f17(0x2e2)])(_0x3e39bc))throw _0x3e39bc['error'];if((0x0,l[_0x115f17(0x2e2)])(_0x3590af))throw _0x3590af[_0x115f17(0x27f)];_0x1a6276[_0x115f17(0x3aa)]({..._0x5722ba[_0x223814],'undoState':_0x3e39bc['m2Prime']['params'],'redoState':_0x3590af[_0x115f17(0x2ed)][_0x115f17(0x304)]}),_0x27f6c3=_0x3e39bc[_0x115f17(0x2e4)],_0x2a4f77=_0x3590af[_0x115f17(0x2e4)];}_0x27f6c3=t['Tools']['deepClone'](_0x3a155e[_0x115f17(0x3f8)][0x0]),_0x2a4f77=t[_0x115f17(0x3e4)][_0x115f17(0x15a)](_0x3a155e['mutations'][0x0]);for(let _0x4c3546=_0x814124[_0x115f17(0x18e)]-0x1;_0x4c3546>=0x0;_0x4c3546--){let _0xe83481={'id':_0x115f17(0x184),'params':{'unitId':_0x814124[_0x4c3546]['unitId'],..._0x814124[_0x4c3546][_0x115f17(0x254)]}},_0x258cd7={'id':_0x115f17(0x184),'params':{'unitId':_0x814124[_0x4c3546][_0x115f17(0x3ad)],..._0x814124[_0x4c3546]['redoState']}},_0xffaa02=this[_0x115f17(0x349)][_0x115f17(0x343)](_0x27f6c3,_0xe83481,!0x1),_0x57b208=this[_0x115f17(0x349)][_0x115f17(0x343)](_0x2a4f77,_0x258cd7,!0x1);if((0x0,l['isTransformMutationFailure'])(_0xffaa02))throw _0xffaa02['error'];if((0x0,l[_0x115f17(0x2e2)])(_0x57b208))throw _0x57b208['error'];_0x20184b[_0x115f17(0x3aa)]({..._0x814124[_0x4c3546],'undoState':_0xffaa02[_0x115f17(0x2ed)][_0x115f17(0x304)],'redoState':_0x57b208['m2Prime']['params']}),_0x27f6c3=_0xffaa02[_0x115f17(0x2e4)],_0x2a4f77=_0x57b208[_0x115f17(0x2e4)];}this[_0x115f17(0x3cc)][_0x115f17(0x418)](_0x382fdb,{'history':_0x1a6276,'collaboration':_0x20184b});}};U=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x1,l['ITransformService']),x(0x2,(0x0,t['Inject'])(d[_0x4a4f45(0x2d3)]))],U);let W=class{constructor(_0x3409b3,_0x4a7848){const _0x97e219=_0x4a4f45;this[_0x97e219(0x21c)]=_0x3409b3,this[_0x97e219(0x349)]=_0x4a7848;}[_0x4a4f45(0x408)](_0xe277f5){const _0x331135=_0x4a4f45;var _0x211b0c;let _0x259d04=this[_0x331135(0x21c)][_0x331135(0x1a5)]()??[],_0x3eec76=this[_0x331135(0x21c)]['getSelectionInfo']();if(_0x259d04[_0x331135(0x18e)]===0x0||_0x3eec76==null)return null;let _0x5418b8=_0xe277f5[_0x331135(0x246)],_0x408d1e=[{'id':_0x331135(0x184),'params':{'unitId':_0x5418b8,'actions':null,'textRanges':_0x259d04}}],_0x3358b6=this[_0x331135(0x349)][_0x331135(0x2fd)](_0xe277f5,_0x408d1e);if(!(0x0,l[_0x331135(0x34e)])(_0x3358b6))throw _0x3358b6[_0x331135(0x27f)];let _0x94cd98=(_0x211b0c=_0x3358b6[_0x331135(0x2ed)][0x0])==null?void 0x0:_0x211b0c[_0x331135(0x304)],_0x51688b=_0x94cd98&&typeof _0x94cd98==_0x331135(0x362)&&'textRanges'in _0x94cd98?_0x94cd98[_0x331135(0x41c)]:null;if(!Te(_0x51688b))return null;let _0x3b6b7f=Ce(_0xe277f5['mutations'][_0x331135(0x402)](_0x219425=>G(_0x219425[_0x331135(0x304)]))?_0x51688b[_0x331135(0x3e3)](_0xc96a9e=>!('tableId'in _0xc96a9e)):_0x51688b,{..._0x3eec76,'options':_0x3eec76[_0x331135(0x21a)]?{..._0x3eec76[_0x331135(0x21a)],'wholeDocument':!0x1}:void 0x0}),_0x40272b={'unitId':_0x5418b8,'subUnitId':_0x5418b8};this[_0x331135(0x21c)][_0x331135(0x409)](_0x3b6b7f,_0x40272b);let _0x3cf833=!0x0;return{'commit':()=>{_0x3cf833=!0x1;},'rollback':()=>{const _0x2eed0f=_0x331135;_0x3cf833&&(_0x3cf833=!0x1,this[_0x2eed0f(0x21c)][_0x2eed0f(0x409)](_0x3eec76,_0x40272b));}};}};function _0xd371(_0x3fa9bc,_0x4056a6){_0x3fa9bc=_0x3fa9bc-0x123;const _0x55abbb=_0x55ab();let _0xd371fe=_0x55abbb[_0x3fa9bc];return _0xd371fe;}W=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(d[_0x4a4f45(0x14d)])),x(0x1,l['ITransformService'])],W);function Ce(_0x527871,_0x1563cd){const _0x5c518b=_0x4a4f45;let _0x2a3490=[],_0x11596e=[];for(let _0x7a829b of _0x527871)we(_0x7a829b)?_0x11596e[_0x5c518b(0x3b2)](_0x7a829b):_0x2a3490['push'](_0x7a829b);return{..._0x1563cd,'textRanges':_0x2a3490,'rectRanges':_0x11596e};}function we(_0xea31d8){const _0x3edfd0=_0x4a4f45;return _0x3edfd0(0x377)in _0xea31d8;}function Te(_0x22b595){const _0x398376=_0x4a4f45;return Array['isArray'](_0x22b595)&&_0x22b595[_0x398376(0x40e)](_0x370c36=>typeof _0x370c36==_0x398376(0x362)&&!!_0x370c36&&_0x398376(0x1c5)in _0x370c36&&'endOffset'in _0x370c36);}function G(_0x207e9c){const _0x2f9841=_0x4a4f45;return _0x207e9c==='tableSource'?!0x0:Array['isArray'](_0x207e9c)?_0x207e9c[_0x2f9841(0x402)](_0x4190a8=>G(_0x4190a8)):!_0x207e9c||typeof _0x207e9c!=_0x2f9841(0x362)?!0x1:Object['values'](_0x207e9c)[_0x2f9841(0x402)](_0x4ef745=>G(_0x4ef745));}let K=class extends t[_0x4a4f45(0x423)]{constructor(_0x514a16,_0x1165ec,_0x4728f1,_0x141df9,_0x5435a9,_0x77ff1,_0x31c8cc){const _0x3bfcef=_0x4a4f45;super(),this[_0x3bfcef(0x3d5)]=_0x514a16,this[_0x3bfcef(0x354)]=_0x1165ec,this[_0x3bfcef(0x174)]=_0x4728f1,this[_0x3bfcef(0x421)]=_0x141df9,this[_0x3bfcef(0x196)]=_0x5435a9,this['_messageService']=_0x77ff1,this[_0x3bfcef(0x249)]=_0x31c8cc,b(this,_0x3bfcef(0x356),new r['BehaviorSubject'](e[_0x3bfcef(0x24e)]['NOT_COLLAB'])),this[_0x3bfcef(0x400)]();}[_0x4a4f45(0x400)](){const _0x31e03b=_0x4a4f45;this[_0x31e03b(0x2ad)](this[_0x31e03b(0x3d5)][_0x31e03b(0x190)][_0x31e03b(0x195)](_0x3f6ce1=>{const _0x3cf5f2=_0x31e03b;_0x3f6ce1 instanceof e[_0x3cf5f2(0x273)]&&_0x3f6ce1[_0x3cf5f2(0x1ab)]({'onTransformIME':_0x5d77c1=>this[_0x3cf5f2(0x354)][_0x3cf5f2(0x252)](_0x5d77c1),'onTransformState':_0x95d58c=>this[_0x3cf5f2(0x174)][_0x3cf5f2(0x1ec)](_0x95d58c),'onPrepareTransformSelections':_0x4a8f4f=>this['_docTransformSelectionsService'][_0x3cf5f2(0x408)](_0x4a8f4f),'onSyncEditingCollabCursor':_0x524b9c=>this[_0x3cf5f2(0x196)][_0x3cf5f2(0x1e5)](_0x524b9c),'onTransformRemoteChangesetByIMECache':_0x49a091=>this['_docTransformIMECacheService'][_0x3cf5f2(0x1ae)](_0x49a091),'onTransformRemoteChangesetByStateCache':_0x1ce727=>this[_0x3cf5f2(0x174)]['transformRemoteChangeset'](_0x1ce727)});}));}};K=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x21e)])),x(0x1,(0x0,t['Inject'])(H)),x(0x2,(0x0,t[_0x4a4f45(0x289)])(U)),x(0x3,(0x0,t['Inject'])(W)),x(0x4,(0x0,t[_0x4a4f45(0x289)])(O)),x(0x5,n[_0x4a4f45(0x28b)]),x(0x6,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x188)]))],K);let q=class extends t[_0x4a4f45(0x423)]{constructor(_0x204f3b,_0x1fc7f0,_0xfafa10,_0xb6a38b){const _0x3d318a=_0x4a4f45;super(),this['_injector']=_0x204f3b,this['_httpService']=_0x1fc7f0,this[_0x3d318a(0x3fa)]=_0xfafa10,this[_0x3d318a(0x171)]=_0xb6a38b,b(this,'_memberID',void 0x0),this[_0x3d318a(0x332)]();}[_0x4a4f45(0x332)](){const _0x2d3fa1=_0x4a4f45;this[_0x2d3fa1(0x427)](),this['_initUnhandledRejectionListener'](),this['_monkeyPatchLogService'](),this[_0x2d3fa1(0x2d5)]();}['_initUserListener'](){const _0x3d5e9b=_0x4a4f45;this[_0x3d5e9b(0x2ad)](this[_0x3d5e9b(0x171)][_0x3d5e9b(0x380)][_0x3d5e9b(0x195)](_0x1be1e3=>{const _0x4b8538=_0x3d5e9b;this[_0x4b8538(0x17d)]=_0x1be1e3==null?void 0x0:_0x1be1e3[_0x4b8538(0x37b)];}));}['_initWindowErrorListener'](){const _0x5dfc1a=_0x4a4f45;let _0x1830b0=_0x27a435=>{const _0x488aad=_0xd371;var _0x18232d;this['_uploadLog'](_0x488aad(0x27f),'[Window\x20Error]:\x20'+_0x27a435[_0x488aad(0x306)]+_0x488aad(0x13c)+_0x27a435[_0x488aad(0x3fb)]+':'+_0x27a435[_0x488aad(0x1c9)]+':'+_0x27a435[_0x488aad(0x126)]+'\x0a'+(((_0x18232d=_0x27a435[_0x488aad(0x27f)])==null?void 0x0:_0x18232d[_0x488aad(0x15f)])||''));};window[_0x5dfc1a(0x3c4)]('error',_0x1830b0),this[_0x5dfc1a(0x2ad)](()=>{const _0x5c4e70=_0x5dfc1a;window[_0x5c4e70(0x2f1)](_0x5c4e70(0x27f),_0x1830b0);});}[_0x4a4f45(0x15e)](){const _0x2dcec5=_0x4a4f45;let _0x1f3a38=_0x304541=>{const _0x247c63=_0xd371;this[_0x247c63(0x308)](_0x247c63(0x27f),_0x247c63(0x2fc)+_0x304541[_0x247c63(0x3a8)]);};window[_0x2dcec5(0x3c4)]('unhandledrejection',_0x1f3a38),this[_0x2dcec5(0x2ad)](()=>{window['removeEventListener']('unhandledrejection',_0x1f3a38);});}[_0x4a4f45(0x2ac)](){const _0x8aba54=_0x4a4f45;let _0x53395a=this[_0x8aba54(0x3fa)][_0x8aba54(0x27f)][_0x8aba54(0x172)](this[_0x8aba54(0x3fa)]);this[_0x8aba54(0x3fa)]['error']=(..._0x41a7b8)=>{const _0x36e8f8=_0x8aba54;let _0x5e5e5d=_0x41a7b8[_0x36e8f8(0x19c)](_0x539260=>_0x539260 instanceof Error?_0x539260[_0x36e8f8(0x306)]+'\x0a'+_0x539260[_0x36e8f8(0x15f)]:String(_0x539260))[_0x36e8f8(0x26d)]('\x20');this[_0x36e8f8(0x308)]('error',_0x36e8f8(0x3c9)+_0x5e5e5d),_0x53395a(..._0x41a7b8);},this[_0x8aba54(0x2ad)](()=>{const _0x2b13e6=_0x8aba54;this['_logService'][_0x2b13e6(0x27f)]=_0x53395a;});}[_0x4a4f45(0x308)](_0x5ee3a8,_0x334508){const _0x1a7c14=_0x4a4f45;try{let _0x1131fa={'userId':this[_0x1a7c14(0x17d)],'logLabel':_0x5ee3a8,'content':_0x334508};this[_0x1a7c14(0x2ce)][_0x1a7c14(0x1e1)](_0x1a7c14(0x178),{'body':_0x1131fa})[_0x1a7c14(0x3a0)](()=>{});}catch{}}};q=S([x(0x0,(0x0,t['Inject'])(t['Injector'])),x(0x1,(0x0,t[_0x4a4f45(0x289)])(m[_0x4a4f45(0x19d)])),x(0x2,t[_0x4a4f45(0x3d3)]),x(0x3,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x3f7)]))],q);function Ee({state$:_0x34c713}){const _0x4cb41b=_0x4a4f45;let _0x3491fd=(0x0,n[_0x4cb41b(0x36a)])(_0x34c713,null,!0x0);return _0x3491fd?(0x0,c[_0x4cb41b(0x311)])(_0x4cb41b(0x363),{'data-u-comp':_0x4cb41b(0x208),'role':_0x4cb41b(0x3ab),'className':_0x4cb41b(0x13d),'children':[(0x0,c[_0x4cb41b(0x12b)])(o['WarningIcon'],{'className':_0x4cb41b(0x223)}),(0x0,c[_0x4cb41b(0x12b)])(_0x4cb41b(0x2e3),{'children':_0x3491fd[_0x4cb41b(0x25b)]}),(0x0,c[_0x4cb41b(0x12b)])(a[_0x4cb41b(0x2d6)],{'size':_0x4cb41b(0x2d1),'variant':_0x4cb41b(0x2af),'onClick':()=>window[_0x4cb41b(0x151)][_0x4cb41b(0x232)](),'children':_0x3491fd['refreshLabel']})]}):null;}const De=_0x4a4f45(0x3d4);let J=class extends t[_0x4a4f45(0x423)]{constructor(_0xe11f2d,_0x439ea,_0x54259b,_0x146f61,_0x2cd888,_0x4a994e){const _0x7c7a1e=_0x4a4f45;super(),this[_0x7c7a1e(0x3ff)]=_0xe11f2d,this[_0x7c7a1e(0x168)]=_0x439ea,this[_0x7c7a1e(0x249)]=_0x54259b,this[_0x7c7a1e(0x38f)]=_0x146f61,this['_urlService']=_0x4a994e,b(this,_0x7c7a1e(0x2a8),new r[(_0x7c7a1e(0x154))](null)),b(this,_0x7c7a1e(0x129),new Set()),b(this,_0x7c7a1e(0x3a4),new Map()),b(this,_0x7c7a1e(0x1c4),new Map()),b(this,_0x7c7a1e(0x234),this['_timeoutState$'][_0x7c7a1e(0x34c)]());let _0x5966ac=()=>(0x0,s[_0x7c7a1e(0x2ba)])(Ee,{'state$':this['timeoutState$']});this[_0x7c7a1e(0x2ad)](_0x2cd888['registerComponent'](n[_0x7c7a1e(0x2f5)][_0x7c7a1e(0x386)],()=>(0x0,n[_0x7c7a1e(0x282)])(_0x5966ac,this['_injector']))),this[_0x7c7a1e(0x2ad)](this['_snapshotLoadingService'][_0x7c7a1e(0x183)]['subscribe'](_0xe2d9cf=>{const _0x4a0cb5=_0x7c7a1e;this[_0x4a0cb5(0x1c4)]=_0xe2d9cf,_0xe2d9cf[_0x4a0cb5(0x22c)](_0x29bca2=>this[_0x4a0cb5(0x3a7)](_0x29bca2));})),this[_0x7c7a1e(0x2ad)](this[_0x7c7a1e(0x3d2)]['urlChange$'][_0x7c7a1e(0x195)](()=>{const _0x583d09=_0x7c7a1e;this[_0x583d09(0x1c4)][_0x583d09(0x22c)](_0x28738f=>this['_updateMessage'](_0x28738f));}));}[_0x4a4f45(0x288)](){const _0x34a479=_0x4a4f45;this[_0x34a479(0x129)][_0x34a479(0x22c)](_0x126896=>this[_0x34a479(0x168)][_0x34a479(0x221)](_0x126896)),this[_0x34a479(0x129)][_0x34a479(0x337)](),this[_0x34a479(0x3a4)]['forEach'](({timeoutId:_0x584748})=>clearTimeout(_0x584748)),this[_0x34a479(0x3a4)]['clear'](),this[_0x34a479(0x2a8)]['complete'](),super['dispose']();}['_updateMessage'](_0x5b668e){const _0x65bdbd=_0x4a4f45;let _0x4c5896=''+De+_0x5b668e['unitId'];_0x5b668e['stage']===l[_0x65bdbd(0x244)]['COMPLETE']?(this[_0x65bdbd(0x1b0)](_0x5b668e[_0x65bdbd(0x3ad)]),this['_clearTimeoutState'](_0x5b668e[_0x65bdbd(0x3ad)]),this['_messageService'][_0x65bdbd(0x221)](_0x4c5896),this['_messageIds'][_0x65bdbd(0x426)](_0x4c5896)):this[_0x65bdbd(0x2e0)](_0x5b668e[_0x65bdbd(0x3ad)])?_0x5b668e['stage']===l[_0x65bdbd(0x244)][_0x65bdbd(0x3e6)]?(this[_0x65bdbd(0x1b0)](_0x5b668e[_0x65bdbd(0x3ad)]),this[_0x65bdbd(0x316)](_0x5b668e['unitId']),this['_messageService'][_0x65bdbd(0x295)]({'id':_0x4c5896,'type':a[_0x65bdbd(0x345)]['Error'],'content':this[_0x65bdbd(0x249)]['t'](_0x65bdbd(0x256))}),this['_messageIds'][_0x65bdbd(0x426)](_0x4c5896)):_0x5b668e[_0x65bdbd(0x2d7)]!==l[_0x65bdbd(0x244)][_0x65bdbd(0x31f)]||_0x5b668e['totalBlocks']<=0xa?(this['_clearBlockProgressWatch'](_0x5b668e['unitId']),this[_0x65bdbd(0x168)][_0x65bdbd(0x221)](_0x4c5896),this[_0x65bdbd(0x129)]['delete'](_0x4c5896)):this[_0x65bdbd(0x396)](_0x5b668e)||(this[_0x65bdbd(0x168)][_0x65bdbd(0x295)]({'id':_0x4c5896,'type':a['MessageType'][_0x65bdbd(0x20d)],'duration':0x1/0x0,'content':this[_0x65bdbd(0x249)]['t'](_0x65bdbd(0x29f))+'\x20'+_0x5b668e['loadedBlocks']+'/'+_0x5b668e['totalBlocks']}),this['_messageIds'][_0x65bdbd(0x307)](_0x4c5896)):(this['_clearBlockProgressWatch'](_0x5b668e[_0x65bdbd(0x3ad)]),this[_0x65bdbd(0x316)](_0x5b668e[_0x65bdbd(0x3ad)]),this['_messageService'][_0x65bdbd(0x221)](_0x4c5896),this['_messageIds']['delete'](_0x4c5896));}[_0x4a4f45(0x396)](_0x40842f){const _0x32ddf2=_0x4a4f45;let _0x30397f=this[_0x32ddf2(0x3a4)][_0x32ddf2(0x39f)](_0x40842f[_0x32ddf2(0x3ad)]);if((_0x30397f==null?void 0x0:_0x30397f[_0x32ddf2(0x38a)])===_0x40842f['loadedBlocks'])return _0x30397f[_0x32ddf2(0x2f6)];this['_clearBlockProgressWatch'](_0x40842f[_0x32ddf2(0x3ad)]);let _0x7e779c=setTimeout(()=>{const _0x362ee7=_0x32ddf2;let _0x24e1b1=this['_blockProgressWatches'][_0x362ee7(0x39f)](_0x40842f[_0x362ee7(0x3ad)]);if(!_0x24e1b1||_0x24e1b1['timeoutId']!==_0x7e779c)return;_0x24e1b1[_0x362ee7(0x2f6)]=!0x0;let _0x51ef51=''+De+_0x40842f[_0x362ee7(0x3ad)];this[_0x362ee7(0x168)][_0x362ee7(0x221)](_0x51ef51),this[_0x362ee7(0x129)][_0x362ee7(0x426)](_0x51ef51),this[_0x362ee7(0x2a8)]['next']({'unitId':_0x40842f[_0x362ee7(0x3ad)],'content':this['_localeService']['t']('collaboration-client-ui.snapshotLoading.timeout',String(_0x40842f[_0x362ee7(0x38a)]),String(_0x40842f['totalBlocks'])),'refreshLabel':this[_0x362ee7(0x249)]['t'](_0x362ee7(0x2a7))});},0xea60);return this[_0x32ddf2(0x3a4)][_0x32ddf2(0x1a1)](_0x40842f['unitId'],{'loadedBlocks':_0x40842f['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x7e779c}),!0x1;}['_clearBlockProgressWatch'](_0x2a7776){const _0x194038=_0x4a4f45;let _0x2a0af7=this[_0x194038(0x3a4)]['get'](_0x2a7776);_0x2a0af7&&(clearTimeout(_0x2a0af7[_0x194038(0x367)]),this[_0x194038(0x3a4)]['delete'](_0x2a7776),this[_0x194038(0x316)](_0x2a7776));}[_0x4a4f45(0x316)](_0x575b0a){const _0x1c1f65=_0x4a4f45;var _0x199725;((_0x199725=this[_0x1c1f65(0x2a8)]['value'])==null?void 0x0:_0x199725[_0x1c1f65(0x3ad)])===_0x575b0a&&this[_0x1c1f65(0x2a8)][_0x1c1f65(0x13e)](null);}[_0x4a4f45(0x2e0)](_0x5b22a2){const _0x5d828a=_0x4a4f45;let _0x145a66=this[_0x5d828a(0x3d2)][_0x5d828a(0x156)](_0x5d828a(0x181));return!_0x145a66||_0x145a66===_0x5b22a2;}};J=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(l['SnapshotLoadingService'])),x(0x1,n['IMessageService']),x(0x2,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x188)])),x(0x3,(0x0,t['Inject'])(t[_0x4a4f45(0x26e)])),x(0x4,n[_0x4a4f45(0x222)]),x(0x5,B)],J);let Y=class extends t[_0x4a4f45(0x423)]{constructor(_0x38af05,_0x2dc3d9,_0x36af13,_0xcdab5,_0x56a748){const _0x5ac1ad=_0x4a4f45;var _0x32231e;super(),this[_0x5ac1ad(0x281)]=_0x38af05,this['_localStorageService']=_0x2dc3d9,this[_0x5ac1ad(0x305)]=_0x36af13,this[_0x5ac1ad(0x3fa)]=_0xcdab5,this[_0x5ac1ad(0x1a9)]=_0x56a748,b(this,_0x5ac1ad(0x3b5),new Map()),b(this,'_saveTaskMap',new Map()),b(this,_0x5ac1ad(0x23f),new Map()),b(this,_0x5ac1ad(0x36e),!0x1),this[_0x5ac1ad(0x36e)]=!((_0x32231e=this[_0x5ac1ad(0x281)][_0x5ac1ad(0x189)](e[_0x5ac1ad(0x369)]))!=null&&_0x32231e[_0x5ac1ad(0x149)]);}[_0x4a4f45(0x157)](){const _0x4b7296=_0x4a4f45;this[_0x4b7296(0x36e)]=!0x0;}[_0x4a4f45(0x2ae)](){const _0x29f0b1=_0x4a4f45;this[_0x29f0b1(0x36e)]=!0x1;}get[_0x4a4f45(0x15b)](){const _0x39d93d=_0x4a4f45;let _0x1efe4d=new Map(this[_0x39d93d(0x40b)]);return this[_0x39d93d(0x23f)]['forEach']((_0x1a46d6,_0x1dc761)=>{const _0x17a24f=_0x39d93d;_0x1efe4d[_0x17a24f(0x33a)](_0x1dc761)||_0x1efe4d[_0x17a24f(0x1a1)](_0x1dc761,0x0);}),_0x1efe4d;}[_0x4a4f45(0x288)](){const _0x214dad=_0x4a4f45;this[_0x214dad(0x366)]||(super[_0x214dad(0x288)](),this[_0x214dad(0x36e)]=!0x0,this[_0x214dad(0x1fa)]()[_0x214dad(0x3a0)](_0x12499a=>this[_0x214dad(0x3fa)][_0x214dad(0x27f)](_0x12499a)));}async[_0x4a4f45(0x1d4)](_0x8eedc4,_0x346ab6){const _0x22ee99=_0x4a4f45;if(this[_0x22ee99(0x36e)])return null;let _0x171d88=this[_0x22ee99(0x3d7)](_0x346ab6),_0x2da613=await this[_0x22ee99(0x23e)]['getItem']((0x0,e[_0x22ee99(0x163)])(_0x8eedc4,_0x171d88));return(_0x2da613==null?void 0x0:_0x2da613[_0x22ee99(0x246)])===_0x8eedc4&&this[_0x22ee99(0x32a)](_0x2da613[_0x22ee99(0x313)])===_0x171d88?_0x2da613:null;}async[_0x4a4f45(0x201)](_0x532db,_0x41a133,_0x263768){const _0x13c7a4=_0x4a4f45;let _0x1dd45b=this[_0x13c7a4(0x3d7)](_0x263768),_0x211b00=(0x0,e[_0x13c7a4(0x163)])(_0x532db,_0x1dd45b),_0x42d93c=this[_0x13c7a4(0x23e)][_0x13c7a4(0x317)](_0x211b00,{..._0x41a133,'unitID':_0x532db,'userId':_0x1dd45b});return this[_0x13c7a4(0x1c8)](_0x211b00,_0x42d93c),!!await _0x42d93c;}async[_0x4a4f45(0x3c3)](_0xba4426,_0x3f0a7c,_0x6124d){const _0x259e93=_0x4a4f45;let _0xe3e556=this[_0x259e93(0x3d7)](_0x6124d),_0x2d31d0=(0x0,e['getLocalCacheKey'])(_0xba4426,_0xe3e556),_0x223aeb=this[_0x259e93(0x3b5)][_0x259e93(0x39f)](_0x2d31d0)??await this[_0x259e93(0x23e)][_0x259e93(0x303)](_0x2d31d0);if(!_0x223aeb||this[_0x259e93(0x32a)](_0x223aeb[_0x259e93(0x313)])!==_0xe3e556||_0x223aeb[_0x259e93(0x246)]!==_0xba4426)return;let _0x5e21e9=Date[_0x259e93(0x144)](),_0x725eda=new Date(_0x5e21e9)[_0x259e93(0x166)]();await this[_0x259e93(0x23e)][_0x259e93(0x317)](_0x2d31d0+_0x259e93(0x1e4)+_0x5e21e9,{'reason':_0x3f0a7c,'createdAt':_0x725eda,'data':_0x223aeb});}async[_0x4a4f45(0x2ef)](_0x6f9556,_0x45da4c){const _0x213d66=_0x4a4f45;let _0x3da780=this[_0x213d66(0x3d7)](_0x45da4c),_0x4e2637=(0x0,e[_0x213d66(0x163)])(_0x6f9556,_0x3da780),_0x346b32=this['_saveTaskMap'][_0x213d66(0x39f)](_0x4e2637);_0x346b32!==void 0x0&&(window[_0x213d66(0x187)](_0x346b32),this[_0x213d66(0x40b)][_0x213d66(0x426)](_0x4e2637));let _0x4c4cbb=this[_0x213d66(0x23f)]['get'](_0x4e2637);_0x4c4cbb&&await Promise[_0x213d66(0x35c)](_0x4c4cbb),this[_0x213d66(0x3b5)][_0x213d66(0x426)](_0x4e2637),await this[_0x213d66(0x23e)][_0x213d66(0x2df)](_0x4e2637);}[_0x4a4f45(0x24f)](_0x2b9b3a,_0x2d95ef,_0xaffed1,_0x482034,_0x38aa9f){const _0x1db4bb=_0x4a4f45;if(this[_0x1db4bb(0x366)])return;let _0x371fbb=this[_0x1db4bb(0x3d7)](_0x38aa9f),_0x45ac2e=(0x0,e[_0x1db4bb(0x163)])(_0x2b9b3a,_0x371fbb),_0x49146e=this['_revisionService'][_0x1db4bb(0x233)](_0x2b9b3a);this[_0x1db4bb(0x3b5)][_0x1db4bb(0x1a1)](_0x45ac2e,{'unitID':_0x2b9b3a,'userId':_0x371fbb,'type':_0x2d95ef,'awaitingChangeset':_0xaffed1,'mutations':_0x482034,'rev':_0x49146e}),this[_0x1db4bb(0x40b)][_0x1db4bb(0x33a)](_0x45ac2e)||this[_0x1db4bb(0x3bf)](_0x45ac2e);}[_0x4a4f45(0x3d7)](_0x14c7a0=((()=>{const _0x2e3b58=_0x4a4f45;var _0x3cfe14;return(_0x3cfe14=this[_0x2e3b58(0x1a9)][_0x2e3b58(0x37d)]())==null?void 0x0:_0x3cfe14[_0x2e3b58(0x236)];})())){const _0x3570d1=_0x4a4f45;return this[_0x3570d1(0x32a)](_0x14c7a0);}['_normalizeUserId'](_0x688ba4){return _0x688ba4===''||_0x688ba4==null?void 0x0:_0x688ba4;}[_0x4a4f45(0x3bf)](_0x570d61){const _0x1282df=_0x4a4f45;let _0x4c4e03=this[_0x1282df(0x324)]();_0x4c4e03===0x0?this['_saveCache'](_0x570d61)[_0x1282df(0x3a0)](_0x47fe71=>this['_logService'][_0x1282df(0x27f)](_0x47fe71)):this[_0x1282df(0x40b)]['set'](_0x570d61,window[_0x1282df(0x40f)](()=>{const _0x146f1e=_0x1282df;this[_0x146f1e(0x207)](_0x570d61)[_0x146f1e(0x3a0)](_0x4a59d6=>this[_0x146f1e(0x3fa)][_0x146f1e(0x27f)](_0x4a59d6));},_0x4c4e03));}[_0x4a4f45(0x324)](){const _0xd45e81=_0x4a4f45;return this[_0xd45e81(0x281)][_0xd45e81(0x189)](e[_0xd45e81(0x24b)])??e['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0x259b3e){const _0x35664b=_0x4a4f45;let _0x506f35=this['_saveTaskMap'][_0x35664b(0x39f)](_0x259b3e);_0x506f35!==void 0x0&&window['clearTimeout'](_0x506f35);let _0x1caa40=this[_0x35664b(0x3b5)][_0x35664b(0x39f)](_0x259b3e);if(!_0x1caa40)return Promise['resolve']();let _0x10caf6=this['_activeSaveTaskMap'][_0x35664b(0x39f)](_0x259b3e),_0x157ddb=Promise[_0x35664b(0x35c)](_0x10caf6?[..._0x10caf6]:[])[_0x35664b(0x2b1)](()=>this['_localStorageService'][_0x35664b(0x317)](_0x259b3e,_0x1caa40))[_0x35664b(0x2b1)](()=>{const _0x1dbdcd=_0x35664b;_0x506f35!==void 0x0&&this[_0x1dbdcd(0x40b)]['get'](_0x259b3e)===_0x506f35&&(this[_0x1dbdcd(0x40b)][_0x1dbdcd(0x426)](_0x259b3e),!this[_0x1dbdcd(0x366)]&&this[_0x1dbdcd(0x3b5)]['get'](_0x259b3e)!==_0x1caa40&&this['_scheduleSaving'](_0x259b3e));});return this[_0x35664b(0x1c8)](_0x259b3e,_0x157ddb),_0x157ddb;}['_trackActiveSaveTask'](_0x59d6cc,_0xc82421){const _0x49ec83=_0x4a4f45;let _0x2aedb3=this[_0x49ec83(0x23f)]['get'](_0x59d6cc);_0x2aedb3||(_0x2aedb3=new Set(),this['_activeSaveTaskMap'][_0x49ec83(0x1a1)](_0x59d6cc,_0x2aedb3)),_0x2aedb3[_0x49ec83(0x307)](_0xc82421);let _0x2a1df6=()=>{const _0x6c355d=_0x49ec83;_0x2aedb3['delete'](_0xc82421),_0x2aedb3[_0x6c355d(0x3db)]===0x0&&this[_0x6c355d(0x23f)][_0x6c355d(0x426)](_0x59d6cc);};_0xc82421[_0x49ec83(0x2b1)](_0x2a1df6,_0x2a1df6);}async[_0x4a4f45(0x1fa)](){const _0x194cf7=_0x4a4f45;let _0x357335=[...this['_saveTaskMap'][_0x194cf7(0x334)]()][_0x194cf7(0x19c)](_0x361fa1=>this[_0x194cf7(0x207)](_0x361fa1));for(let _0x4fbb41 of this[_0x194cf7(0x23f)][_0x194cf7(0x40c)]())_0x357335[_0x194cf7(0x3b2)](...[..._0x4fbb41][_0x194cf7(0x19c)](_0x2b5178=>_0x2b5178['then'](()=>void 0x0)));await Promise[_0x194cf7(0x28a)](_0x357335);}};Y=S([x(0x0,t[_0x4a4f45(0x382)]),x(0x1,t[_0x4a4f45(0x24d)]),x(0x2,(0x0,t['Inject'])(l[_0x4a4f45(0x34a)])),x(0x3,t[_0x4a4f45(0x3d3)]),x(0x4,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x231)]))],Y);var Oe=class extends t[_0x4a4f45(0x423)]{get['online'](){const _0x4219e0=_0x4a4f45;return this[_0x4219e0(0x248)]['getValue']();}constructor(){const _0x3b9828=_0x4a4f45;super(),b(this,_0x3b9828(0x248),new r[(_0x3b9828(0x154))](navigator[_0x3b9828(0x15d)])),b(this,_0x3b9828(0x38d),this[_0x3b9828(0x248)][_0x3b9828(0x34c)]()),this[_0x3b9828(0x134)](),this['_listenToOnlineEvent']();}['dispose'](){const _0x327a5b=_0x4a4f45;super[_0x327a5b(0x288)](),this[_0x327a5b(0x248)][_0x327a5b(0x2c6)]();}[_0x4a4f45(0x401)](){const _0x3d3313=_0x4a4f45;this[_0x3d3313(0x2ad)]((0x0,r[_0x3d3313(0x42a)])((0x0,r[_0x3d3313(0x15c)])(window,_0x3d3313(0x1fd)),(0x0,r[_0x3d3313(0x15c)])(window,_0x3d3313(0x3ce)),(0x0,r[_0x3d3313(0x15c)])(document,_0x3d3313(0x217))[_0x3d3313(0x237)]((0x0,r['map'])(()=>document[_0x3d3313(0x42b)]===_0x3d3313(0x30a)),(0x0,r['filter'])(_0x307779=>_0x307779)))[_0x3d3313(0x237)]((0x0,r[_0x3d3313(0x3e3)])(()=>navigator[_0x3d3313(0x15d)]))['subscribe'](()=>this[_0x3d3313(0x248)][_0x3d3313(0x13e)](!0x0)));}['_listenToOfflineEvent'](){const _0x5622ff=_0x4a4f45;this[_0x5622ff(0x2ad)]((0x0,r[_0x5622ff(0x15c)])(window,_0x5622ff(0x1ce))[_0x5622ff(0x195)](()=>this[_0x5622ff(0x248)][_0x5622ff(0x13e)](!0x1)));}},ke=class extends t[_0x4a4f45(0x2a6)]{constructor(){const _0x403981=_0x4a4f45;super(),b(this,'urlChange$',void 0x0),this[_0x403981(0x216)]=(0x0,r['fromEvent'])(window,'popstate')[_0x403981(0x237)]((0x0,r[_0x403981(0x42e)])(this['dispose$']),(0x0,r[_0x403981(0x155)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r['mapTo'])(void 0x0));}[_0x4a4f45(0x1dc)](_0x43e528,_0x3b641f,_0x24bba9=!0x1){const _0x46e856=_0x4a4f45;let _0x4430f5=new URL(window[_0x46e856(0x151)][_0x46e856(0x152)]);_0x4430f5[_0x46e856(0x18f)]['set'](_0x43e528,_0x3b641f),_0x24bba9?window['history'][_0x46e856(0x199)]('','',_0x4430f5[_0x46e856(0x1d6)]()):window[_0x46e856(0x2ab)]['pushState']('','',_0x4430f5[_0x46e856(0x1d6)]());}[_0x4a4f45(0x371)](_0x5a2a28,_0x330b4b=!0x1){const _0x1d0f6d=_0x4a4f45;let _0x6f2d8a=new URL(window[_0x1d0f6d(0x151)][_0x1d0f6d(0x152)]);_0x6f2d8a[_0x1d0f6d(0x18f)][_0x1d0f6d(0x426)](_0x5a2a28),_0x330b4b?window[_0x1d0f6d(0x2ab)][_0x1d0f6d(0x199)]('','',_0x6f2d8a['toString']()):window[_0x1d0f6d(0x2ab)][_0x1d0f6d(0x13a)]('','',_0x6f2d8a[_0x1d0f6d(0x1d6)]());}[_0x4a4f45(0x156)](_0x2004f5){const _0x3052bc=_0x4a4f45;return new URL(window[_0x3052bc(0x151)]['href'])['searchParams']['get'](_0x2004f5)??void 0x0;}};let X=class extends t[_0x4a4f45(0x1c0)]{constructor(_0x3da32f=se,_0x2aafa4,_0x43a89e,_0x579ff0,_0x4ee110){const _0x23420d=_0x4a4f45;super(),this[_0x23420d(0x2b9)]=_0x3da32f,this[_0x23420d(0x133)]=_0x2aafa4,this['_injector']=_0x43a89e,this[_0x23420d(0x281)]=_0x579ff0,this[_0x23420d(0x14b)]=_0x4ee110;let {..._0x403682}=(0x0,t[_0x23420d(0x42a)])({},se,this[_0x23420d(0x2b9)]);this[_0x23420d(0x281)][_0x23420d(0x19f)](_0x23420d(0x263),_0x403682);}['onStarting'](){const _0x3dd58a=_0x4a4f45;this['_registerDependencies'](),this['disposeWithMe'](this[_0x3dd58a(0x14b)][_0x3dd58a(0x1df)](T)),this['_initDependencies']();}['onRendered'](){const _0x165ac2=_0x4a4f45;this[_0x165ac2(0x336)]();}['_registerDependencies'](){const _0x10b9df=_0x4a4f45;var _0x2be72d;let _0x2874c3=[[D],[B,{'useClass':ke}],[m[_0x10b9df(0x141)],{'useClass':m['WebSocketService']}],[e[_0x10b9df(0x36d)],{'useClass':Y}],[e['INetworkConditionService'],{'useClass':Oe}],[C],[z],[j],[L],[J]];this[_0x10b9df(0x2b9)][_0x10b9df(0x325)]!==!0x1&&_0x2874c3[_0x10b9df(0x3b2)]([V]),this['_config'][_0x10b9df(0x228)]!==!0x1&&_0x2874c3['push']([W],[H],[U],[O],[K],[E]),this[_0x10b9df(0x2b9)][_0x10b9df(0x161)]&&_0x2874c3[_0x10b9df(0x3b2)]([q]),(0x0,t[_0x10b9df(0x210)])(this[_0x10b9df(0x38f)],(0x0,t[_0x10b9df(0x387)])(_0x2874c3,(_0x2be72d=this[_0x10b9df(0x2b9)])==null?void 0x0:_0x2be72d[_0x10b9df(0x3c1)]));}[_0x4a4f45(0x336)](){const _0x357469=_0x4a4f45;this[_0x357469(0x2b9)]['enableDocumentCollaborationUI']!==!0x1&&this[_0x357469(0x2ad)](this[_0x357469(0x133)][_0x357469(0x229)](t[_0x357469(0x397)][_0x357469(0x19b)],[N])),this[_0x357469(0x2ad)](this['_renderManagerService'][_0x357469(0x229)](t[_0x357469(0x397)]['UNIVER_SHEET'],[P]));}[_0x4a4f45(0x368)](){const _0x17dd17=_0x4a4f45;(0x0,t['touchDependencies'])(this[_0x17dd17(0x38f)],[[j],[L],[C],[z],[J]]),this[_0x17dd17(0x2b9)][_0x17dd17(0x325)]!==!0x1&&(0x0,t[_0x17dd17(0x20b)])(this['_injector'],[[V]]),this[_0x17dd17(0x2b9)][_0x17dd17(0x228)]!==!0x1&&(0x0,t[_0x17dd17(0x20b)])(this[_0x17dd17(0x38f)],[[K],[E]]),this[_0x17dd17(0x2b9)][_0x17dd17(0x161)]&&(0x0,t[_0x17dd17(0x20b)])(this[_0x17dd17(0x38f)],[[q]]);}};b(X,'pluginName',_0x4a4f45(0x39c)),b(X,'packageName',ae),b(X,_0x4a4f45(0x2d9),oe),X=S([(0x0,t['DependentOn'])(u[_0x4a4f45(0x1c7)],d[_0x4a4f45(0x271)],p[_0x4a4f45(0x193)],m['UniverNetworkPlugin'],l[_0x4a4f45(0x200)],f[_0x4a4f45(0x2f3)],e[_0x4a4f45(0x1fc)]),x(0x1,p[_0x4a4f45(0x3f4)]),x(0x2,(0x0,t['Inject'])(t[_0x4a4f45(0x26e)])),x(0x3,t[_0x4a4f45(0x382)]),x(0x4,t['ICommandService'])],X);let Z=class extends e[_0x4a4f45(0x2c3)]{constructor(_0x2f849c,_0x3c2cc0,_0x1cf1a4,_0x3bc697,_0x4e4ce5){const _0x4f7d50=_0x4a4f45;super(_0x2f849c,_0x3c2cc0,_0x1cf1a4,_0x3bc697,_0x4e4ce5),b(this,_0x4f7d50(0x2f9),new r[(_0x4f7d50(0x31c))]()),this['disposeWithMe'](()=>{const _0x5d0b03=_0x4f7d50;this['_dispose$']['next'](),this[_0x5d0b03(0x2f9)][_0x5d0b03(0x2c6)]();});}async[_0x4a4f45(0x404)](_0x197413){const _0x435a58=_0x4a4f45;let _0x199427=await this[_0x435a58(0x238)](),_0x3fb6a6=this[_0x435a58(0x2aa)](_0x197413,_0x199427);return this[_0x435a58(0x286)](_0x3fb6a6);}[_0x4a4f45(0x2aa)](_0x195acc,_0x42683d){const _0x535021=_0x4a4f45;let _0x4dfc92=typeof window>'u'?new URL(_0x195acc):new URL(_0x195acc,window[_0x535021(0x151)]['origin']);_0x4dfc92['searchParams'][_0x535021(0x1a1)](_0x535021(0x27e),_0x42683d);let _0x294e38=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x535021(0x151)][_0x535021(0x13f)]);return _0x294e38[_0x535021(0x39f)](_0x535021(0x1a7))&&_0x4dfc92[_0x535021(0x18f)]['set'](_0x535021(0x1a7),_0x294e38[_0x535021(0x39f)](_0x535021(0x1a7))),_0x4dfc92[_0x535021(0x1d6)]();}async[_0x4a4f45(0x238)](){const _0x60113d=_0x4a4f45;var _0x55b8a8;let _0x2f0cd1=this[_0x60113d(0x281)]['getConfig'](e[_0x60113d(0x369)]),_0x22bf8a=(_0x2f0cd1==null?void 0x0:_0x2f0cd1[_0x60113d(0x406)])??e[_0x60113d(0x1d2)];return((_0x55b8a8=(await(0x0,r['firstValueFrom'])(this['_httpService'][_0x60113d(0x1f7)](_0x60113d(0x2e1),_0x22bf8a,{'headers':{'Content-Type':'application/json'}})[_0x60113d(0x237)]((0x0,r[_0x60113d(0x3e3)])(_0x21eac0=>_0x21eac0['type']===m[_0x60113d(0x14e)]['Response']),(0x0,r[_0x60113d(0x291)])(0x4e20),(0x0,r[_0x60113d(0x42e)])(this['_dispose$']))))['body'])==null?void 0x0:_0x55b8a8['ticket'])??'';}};Z=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(t['Injector'])),x(0x1,(0x0,t[_0x4a4f45(0x289)])(m[_0x4a4f45(0x19d)])),x(0x2,t[_0x4a4f45(0x382)]),x(0x3,t[_0x4a4f45(0x3d3)]),x(0x4,l[_0x4a4f45(0x27d)])],Z);let Q=class extends t[_0x4a4f45(0x423)]{constructor(_0x5ed176,_0x2e34b3,_0x5baab8){const _0x3e69e6=_0x4a4f45;super(),this[_0x3e69e6(0x12d)]=_0x5ed176,this[_0x3e69e6(0x2ce)]=_0x2e34b3,this[_0x3e69e6(0x281)]=_0x5baab8;}async['runOnServer'](_0x2e2e0e,_0x562788,_0xbceb11,..._0x21d732){const _0x26f5ea=_0x4a4f45;let _0x47f7c7=this[_0x26f5ea(0x12d)][_0x26f5ea(0x1a8)]();if(!_0x47f7c7)throw Error(_0x26f5ea(0x3a9));let _0xb9fd=(this[_0x26f5ea(0x281)][_0x26f5ea(0x189)](e[_0x26f5ea(0x28c)])??e[_0x26f5ea(0x2c9)])+'/'+_0x2e2e0e+_0x26f5ea(0x3d1)+_0x562788,_0x23c991={'scriptId':_0x2e2e0e,'runId':new URL(window[_0x26f5ea(0x151)][_0x26f5ea(0x152)])[_0x26f5ea(0x18f)][_0x26f5ea(0x39f)](_0x26f5ea(0x1a7))??'','function':_0x562788,'unitId':_0x47f7c7['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x21d732),'invokeId':_0xbceb11['invokeId']??'','executionId':_0xbceb11[_0x26f5ea(0x2da)]??''};try{let _0x18bea5=await this['_httpService']['post'](_0xb9fd,{'body':_0x23c991});return _0x18bea5['body'][_0x26f5ea(0x27f)]&&_0x18bea5[_0x26f5ea(0x279)]['error'][_0x26f5ea(0x3af)]!==v[_0x26f5ea(0x3ee)]['OK']?_0x26f5ea(0x12f):_0x18bea5[_0x26f5ea(0x279)]['result'];}catch{return _0x26f5ea(0x12f);}}};Q=S([x(0x0,t[_0x4a4f45(0x1ff)]),x(0x1,(0x0,t[_0x4a4f45(0x289)])(m['HTTPService'])),x(0x2,t[_0x4a4f45(0x382)])],Q);const Ae=0x7530,$=_0x4a4f45(0x1cb);var je=class extends t[_0x4a4f45(0x423)]{constructor(){const _0xa1375f=_0x4a4f45;super(),b(this,_0xa1375f(0x41e),(0x0,t[_0xa1375f(0x28e)])()),b(this,_0xa1375f(0x3dd),new Set()),b(this,_0xa1375f(0x32d),new Map()),b(this,'_heartbeatTimer',null),b(this,_0xa1375f(0x3d8),new Map()),b(this,_0xa1375f(0x250),new Map()),this[_0xa1375f(0x332)]();}[_0x4a4f45(0x288)](){const _0x28ce97=_0x4a4f45;super[_0x28ce97(0x288)](),this[_0x28ce97(0x3d8)]['forEach']((_0x493197,_0x5e414b)=>this[_0x28ce97(0x255)](_0x5e414b)),this['_heartbeatTimer']&&window[_0x28ce97(0x29c)](this[_0x28ce97(0x3ea)]);}[_0x4a4f45(0x39b)](_0x16d92d){const _0x364090=_0x4a4f45;return this[_0x364090(0x1f1)](_0x16d92d)[_0x364090(0x237)]((0x0,r[_0x364090(0x1ea)])());}[_0x4a4f45(0x1d8)](_0x3aceeb){const _0x489911=_0x4a4f45;this[_0x489911(0x3dd)][_0x489911(0x3db)]===0x0&&this['_scheduleHeartbeat'](),this[_0x489911(0x3dd)]['add'](_0x3aceeb),this[_0x489911(0x3c6)]({'type':0x0,'memberID':this[_0x489911(0x41e)],'unitIDs':[_0x3aceeb],'isForwarded':!0x1});}[_0x4a4f45(0x1f8)](_0x1e5e2f){const _0xf60f93=_0x4a4f45;this[_0xf60f93(0x3dd)][_0xf60f93(0x426)](_0x1e5e2f),this[_0xf60f93(0x3dd)][_0xf60f93(0x3db)]===0x0&&this[_0xf60f93(0x3ea)]&&window['clearInterval'](this[_0xf60f93(0x3ea)]);}[_0x4a4f45(0x332)](){const _0x30c3ae=_0x4a4f45;this[_0x30c3ae(0x2ad)]((0x0,t['toDisposable'])((0x0,r[_0x30c3ae(0x15c)])(window,_0x30c3ae(0x1cf))[_0x30c3ae(0x195)](_0x48276c=>{const _0x126b7e=_0x30c3ae;if(_0x48276c[_0x126b7e(0x3d9)]!==$||!_0x48276c['newValue'])return;let _0x25506a=JSON[_0x126b7e(0x12c)](_0x48276c[_0x126b7e(0x389)]);this['_handleEvent'](_0x25506a);}))),window[_0x30c3ae(0x3c4)](_0x30c3ae(0x227),()=>this[_0x30c3ae(0x3c6)]({'type':0x1,'memberID':this[_0x30c3ae(0x41e)],'unitIDs':Array[_0x30c3ae(0x241)](this[_0x30c3ae(0x3dd)])}));}['_handleEvent'](_0xb75273){const _0x3b1e1d=_0x4a4f45;switch(_0xb75273['type']){case 0x0:this[_0x3b1e1d(0x29d)](_0xb75273);break;case 0x1:this[_0x3b1e1d(0x37a)](_0xb75273);break;case 0x2:this['_handleHeartbeatEvent'](_0xb75273);}}[_0x4a4f45(0x29d)](_0x2fbe3a){const _0x4df67f=_0x4a4f45;let {unitIDs:_0x2a1b71,memberID:_0x763abd,isForwarded:_0x3b45d6}=_0x2fbe3a;_0x2a1b71[_0x4df67f(0x22c)](_0x7b44e5=>{const _0x1af68e=_0x4df67f;if(!_0x3b45d6&&this['_unitOnClients']['has'](_0x7b44e5)&&this['_ensureSubject'](_0x7b44e5)['next'](e[_0x1af68e(0x175)][_0x1af68e(0x239)]),!this['_unitOnClients'][_0x1af68e(0x33a)](_0x7b44e5)||!this[_0x1af68e(0x32d)][_0x1af68e(0x39f)](_0x7b44e5)[_0x1af68e(0x33a)](_0x763abd)){let _0x1ae58f=this['_unitOnClients']['get'](_0x7b44e5)||new Set();_0x1ae58f[_0x1af68e(0x307)](_0x763abd),this['_unitOnClients'][_0x1af68e(0x1a1)](_0x7b44e5,_0x1ae58f),this[_0x1af68e(0x3b8)](_0x763abd);}}),_0x3b45d6||this[_0x4df67f(0x3c6)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5ae461){const _0x4cef02=_0x4a4f45;this[_0x4cef02(0x255)](_0x5ae461);let _0x1f27ff=window[_0x4cef02(0x40f)](()=>{const _0x4f2b4c=_0x4cef02;this[_0x4f2b4c(0x32d)][_0x4f2b4c(0x22c)](_0x3f9149=>{_0x3f9149['delete'](_0x5ae461);});},Ae*0x2);this['_clearOtherTimers']['set'](_0x5ae461,_0x1f27ff);}[_0x4a4f45(0x255)](_0x121b13){const _0x17d4b4=_0x4a4f45;if(this['_clearOtherTimers'][_0x17d4b4(0x33a)](_0x121b13)){let _0x29c707=this['_clearOtherTimers']['get'](_0x121b13);_0x29c707&&window[_0x17d4b4(0x187)](_0x29c707),this['_clearOtherTimers'][_0x17d4b4(0x1a1)](_0x121b13,null);}}[_0x4a4f45(0x37a)](_0x3793c0){const _0x425d7a=_0x4a4f45;let {memberID:_0x256bf3,unitIDs:_0x929b38}=_0x3793c0;_0x929b38[_0x425d7a(0x22c)](_0x4b1607=>{const _0x27f2c8=_0x425d7a;var _0x1ef224;let _0x202303=this['_unitOnClients'][_0x27f2c8(0x39f)](_0x4b1607);_0x202303&&(_0x202303[_0x27f2c8(0x426)](_0x256bf3),(_0x1ef224=this[_0x27f2c8(0x1f1)](_0x4b1607))==null||_0x1ef224[_0x27f2c8(0x13e)](_0x202303[_0x27f2c8(0x3db)]===0x0?e[_0x27f2c8(0x175)]['NO_OTHER_CLIENTS_EDITING']:e[_0x27f2c8(0x175)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x256bf3);}[_0x4a4f45(0x357)](_0x172f34){this['_scheduleClearOtherTimer'](_0x172f34['memberID']);}['_send'](_0x3ca964){const _0x526402=_0x4a4f45;localStorage['setItem']($,JSON[_0x526402(0x26b)](_0x3ca964));}[_0x4a4f45(0x130)](){const _0x348af6=_0x4a4f45;this['_heartbeatTimer']=window[_0x348af6(0x230)](()=>{const _0x8189fb=_0x348af6;this[_0x8189fb(0x3c6)]({'type':0x2,'memberID':this[_0x8189fb(0x41e)]});},Ae);}[_0x4a4f45(0x1f1)](_0x23f14c){const _0x44d1fc=_0x4a4f45;return this[_0x44d1fc(0x250)][_0x44d1fc(0x33a)](_0x23f14c)||this[_0x44d1fc(0x250)]['set'](_0x23f14c,new r['BehaviorSubject'](e['UnitStatus'][_0x44d1fc(0x3e7)])),this[_0x44d1fc(0x250)][_0x44d1fc(0x39f)](_0x23f14c);}};Object[_0x4a4f45(0x2e7)](exports,_0x4a4f45(0x162),{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,_0x4a4f45(0x265),{'enumerable':!0x0,'get':function(){return C;}}),exports[_0x4a4f45(0x344)]=B,Object[_0x4a4f45(0x2e7)](exports,'RemoteUniscriptService',{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x4a4f45(0x339)]=_e,Object[_0x4a4f45(0x2e7)](exports,'UniverCollaborationClientUIPlugin',{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x4a4f45(0x1ad)]=je;