@univerjs-pro/collaboration-client-ui 0.12.4-experimental.20251208-c4b8a44 → 0.12.4-experimental.20251210-d708bff

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +15 -15
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x399ae3=_0x4320;(function(_0x443a82,_0x2d03dd){const _0x55d40a=_0x4320,_0x532cf0=_0x443a82();while(!![]){try{const _0x10c8f0=-parseInt(_0x55d40a(0x32b))/0x1+-parseInt(_0x55d40a(0x3a9))/0x2*(parseInt(_0x55d40a(0x291))/0x3)+parseInt(_0x55d40a(0x2dd))/0x4*(parseInt(_0x55d40a(0x1b4))/0x5)+parseInt(_0x55d40a(0x1f9))/0x6*(-parseInt(_0x55d40a(0x1e9))/0x7)+parseInt(_0x55d40a(0x3d2))/0x8+-parseInt(_0x55d40a(0x3f9))/0x9+parseInt(_0x55d40a(0x32d))/0xa*(parseInt(_0x55d40a(0x159))/0xb);if(_0x10c8f0===_0x2d03dd)break;else _0x532cf0['push'](_0x532cf0['shift']());}catch(_0x189000){_0x532cf0['push'](_0x532cf0['shift']());}}}(_0x8e4a,0xa1464));var Xe=Object['defineProperty'],Ke=(_0x34c0d3,_0x53a4d5,_0x2a9d7a)=>_0x53a4d5 in _0x34c0d3?Xe(_0x34c0d3,_0x53a4d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a9d7a}):_0x34c0d3[_0x53a4d5]=_0x2a9d7a,_=(_0x3f3b66,_0x3446c1,_0x357582)=>Ke(_0x3f3b66,typeof _0x3446c1!=_0x399ae3(0x15b)?_0x3446c1+'':_0x3446c1,_0x357582);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x399ae3(0x397)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0xbddc4f,..._0x202159}){const _0x27bc16=_0x399ae3,{icon:_0x5254e2,id:_0x5978d3,className:_0xc382ed,extend:_0x26e125,..._0x593d87}=_0x202159,_0x1f6999=(_0x27bc16(0x1be)+_0x5978d3+'\x20'+(_0xc382ed||''))[_0x27bc16(0x29c)](),_0x1eb66d=A[_0x27bc16(0x2e3)]('_'+Qe());return $e(_0x5254e2,''+_0x5978d3,{'defIds':_0x5254e2[_0x27bc16(0x2b4)],'idSuffix':_0x1eb66d[_0x27bc16(0x23d)]},{'ref':_0xbddc4f,'className':_0x1f6999,..._0x593d87},_0x26e125);}function $e(_0x5afee6,_0x30cb91,_0x441b6f,_0x776da0,_0x4644a8){const _0x7d46d6=_0x399ae3;return A[_0x7d46d6(0x2ae)](_0x5afee6['tag'],{'key':_0x30cb91,...Je(_0x5afee6,_0x441b6f,_0x4644a8),..._0x776da0},(Ze(_0x5afee6,_0x441b6f)['children']||[])[_0x7d46d6(0x248)]((_0x5ce324,_0x23925b)=>$e(_0x5ce324,_0x30cb91+'-'+_0x5afee6[_0x7d46d6(0x2b7)]+'-'+_0x23925b,_0x441b6f,void 0x0,_0x4644a8)));}function Je(_0x47fdbb,_0x3fa219,_0x4a8024){const _0x378379=_0x399ae3,_0x4a5305={..._0x47fdbb['attrs']};_0x4a8024!=null&&_0x4a8024[_0x378379(0x28a)]&&_0x4a5305[_0x378379(0x3dd)]===_0x378379(0x28a)&&(_0x4a5305['fill']=_0x4a8024[_0x378379(0x28a)]),_0x47fdbb[_0x378379(0x2b7)]===_0x378379(0x1e4)&&_0x4a5305['id']&&(_0x4a5305['id']=_0x4a5305['id']+_0x3fa219[_0x378379(0x1de)]),Object['entries'](_0x4a5305)[_0x378379(0x263)](([_0x205c56,_0x5903de])=>{const _0x54a94c=_0x378379;_0x205c56===_0x54a94c(0x1e4)&&typeof _0x5903de=='string'&&(_0x4a5305[_0x205c56]=_0x5903de['replace'](/url\(#(.*)\)/,_0x54a94c(0x1c5)+_0x3fa219[_0x54a94c(0x1de)]+')'));});const {defIds:_0x5c5b06}=_0x3fa219;return!_0x5c5b06||_0x5c5b06[_0x378379(0x36f)]===0x0||(_0x47fdbb[_0x378379(0x2b7)]==='use'&&_0x4a5305[_0x378379(0x287)]&&(_0x4a5305[_0x378379(0x287)]=_0x4a5305[_0x378379(0x287)]+_0x3fa219['idSuffix']),Object[_0x378379(0x25b)](_0x4a5305)[_0x378379(0x263)](([_0x295616,_0xa81bbb])=>{const _0x381349=_0x378379;typeof _0xa81bbb==_0x381349(0x241)&&(_0x4a5305[_0x295616]=_0xa81bbb[_0x381349(0x3f3)](/url\(#(.*)\)/,_0x381349(0x1c5)+_0x3fa219[_0x381349(0x1de)]+')'));})),_0x4a5305;}function Ze(_0x1db805,_0x274274){const _0x2757af=_0x399ae3;var _0x75c16c;const {defIds:_0x35494d}=_0x274274;return!_0x35494d||_0x35494d[_0x2757af(0x36f)]===0x0?_0x1db805:_0x1db805[_0x2757af(0x2b7)]===_0x2757af(0x249)&&((_0x75c16c=_0x1db805[_0x2757af(0x296)])!=null&&_0x75c16c['length'])?{..._0x1db805,'children':_0x1db805['children'][_0x2757af(0x248)](_0xc0d55b=>typeof _0xc0d55b[_0x2757af(0x1e7)]['id']=='string'&&_0x35494d&&_0x35494d[_0x2757af(0x141)](_0xc0d55b[_0x2757af(0x1e7)]['id'])?{..._0xc0d55b,'attrs':{..._0xc0d55b['attrs'],'id':_0xc0d55b['attrs']['id']+_0x274274[_0x2757af(0x1de)]}}:_0xc0d55b)}:_0x1db805;}function Qe(){const _0x4838e8=_0x399ae3;return Math[_0x4838e8(0x169)]()[_0x4838e8(0x348)](0x24)['substring'](0x2,0x8);}pe[_0x399ae3(0x14d)]=_0x399ae3(0x21d);const et={'tag':_0x399ae3(0x196),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x399ae3(0x22d),'viewBox':_0x399ae3(0x30b),'width':_0x399ae3(0x1ad),'height':_0x399ae3(0x1ad)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x399ae3(0x1f5),'attrs':{'stroke':'currentColor','d':_0x399ae3(0x1da),'strokeLinecap':_0x399ae3(0x314),'strokeLinejoin':_0x399ae3(0x314),'strokeWidth':1.2}}]},{'tag':_0x399ae3(0x249),'attrs':{},'children':[{'tag':_0x399ae3(0x29d),'attrs':{'id':_0x399ae3(0x387)},'children':[{'tag':_0x399ae3(0x1f5),'attrs':{'fill':_0x399ae3(0x1c1),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x399ae3(0x387)]},xe=A['forwardRef'](function(_0x10a3ee,_0x5ff0ec){const _0x3c7bb5=_0x399ae3;return A[_0x3c7bb5(0x2ae)](pe,Object[_0x3c7bb5(0x189)]({},_0x10a3ee,{'id':_0x3c7bb5(0x18e),'ref':_0x5ff0ec,'icon':et}));});xe[_0x399ae3(0x14d)]='OffLineIcon';const tt={'tag':_0x399ae3(0x196),'attrs':{'xmlns':_0x399ae3(0x1b1),'fill':_0x399ae3(0x22d),'viewBox':'0\x200\x2017\x2016','width':_0x399ae3(0x1ad),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x399ae3(0x1f5),'attrs':{'stroke':_0x399ae3(0x1f3),'d':_0x399ae3(0x236),'strokeLinecap':_0x399ae3(0x314),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x399ae3(0x249),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x399ae3(0x1dd)},'children':[{'tag':'path','attrs':{'fill':_0x399ae3(0x1c1),'d':'M0\x200H16V16H0z','transform':_0x399ae3(0x27a)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A[_0x399ae3(0x2d4)](function(_0x3c0584,_0x3b8057){const _0x50a89a=_0x399ae3;return A[_0x50a89a(0x2ae)](pe,Object[_0x50a89a(0x189)]({},_0x3c0584,{'id':_0x50a89a(0x395),'ref':_0x3b8057,'icon':tt}));});Be[_0x399ae3(0x14d)]='OnLineIcon';function st(_0x4782e0){const _0x218027=_0x399ae3;switch(_0x4782e0){case u['CollaborationStatus']['OFFLINE']:return _0x218027(0x2ee);case u[_0x218027(0x2da)][_0x218027(0x269)]:return _0x218027(0x340);case u[_0x218027(0x2da)][_0x218027(0x19b)]:return _0x218027(0x1bb);case u[_0x218027(0x2da)][_0x218027(0x2dc)]:return _0x218027(0x34d);case u[_0x218027(0x2da)][_0x218027(0x1f6)]:case u['CollaborationStatus'][_0x218027(0x316)]:return'collabStatus.syncing';case u[_0x218027(0x2da)][_0x218027(0x18d)]:case u[_0x218027(0x2da)]['PENDING']:return _0x218027(0x21a);}}function it(_0x3306a2){const _0x35a371=_0x399ae3,{status$:_0xd2b40}=_0x3306a2,_0x1b190f=O[_0x35a371(0x326)](_0xd2b40,u[_0x35a371(0x2da)][_0x35a371(0x2dc)]),_0x1cce41=O['useDependency'](a[_0x35a371(0x266)]),_0x4453eb=O[_0x35a371(0x30d)](u[_0x35a371(0x16f)]),_0x16a926=_0x1b190f!==u['CollaborationStatus'][_0x35a371(0x38f)],_0x12a428=_0x1cce41['t'](st(_0x1b190f)),_0x59f43d=_0x16a926?M[_0x35a371(0x1b6)](Be,{}):M[_0x35a371(0x1b6)](xe,{}),_0x5ab690=A[_0x35a371(0x3b4)](()=>{const _0x5d206b=_0x35a371;_0x16a926||_0x4453eb[_0x5d206b(0x3f8)]();},[_0x16a926,_0x4453eb]);function _0x19eb8c(){const _0x2a28bf=_0x35a371;return M['jsxs']('div',{'className':_0x2a28bf(0x251),'onClick':_0x5ab690,'children':[M[_0x2a28bf(0x1b6)](_0x2a28bf(0x31d),{'className':p['clsx'](_0x2a28bf(0x323),{'univer-text-green-500':_0x16a926,'univer-text-red-500':!_0x16a926}),'children':_0x59f43d}),M[_0x2a28bf(0x1b6)](_0x2a28bf(0x31d),{'className':_0x2a28bf(0x3b0),'children':_0x12a428})]});}return _0x16a926?_0x19eb8c():M[_0x35a371(0x1b6)](p[_0x35a371(0x392)],{'title':_0x1cce41['t'](_0x35a371(0x175)),'children':_0x19eb8c()});}var nt=Object[_0x399ae3(0x3f2)],rt=(_0x2f0c86,_0x32aeaf,_0x18dd90,_0x529f85)=>{const _0x52a8f6=_0x399ae3;for(var _0x23df26=_0x529f85>0x1?void 0x0:_0x529f85?nt(_0x32aeaf,_0x18dd90):_0x32aeaf,_0x29ca0f=_0x2f0c86[_0x52a8f6(0x36f)]-0x1,_0x278d91;_0x29ca0f>=0x0;_0x29ca0f--)(_0x278d91=_0x2f0c86[_0x29ca0f])&&(_0x23df26=_0x278d91(_0x23df26)||_0x23df26);return _0x23df26;},K=(_0x3cb51f,_0x1a328d)=>(_0x495017,_0x2cff57)=>_0x1a328d(_0x495017,_0x2cff57,_0x3cb51f);exports[_0x399ae3(0x30f)]=class extends a['Disposable']{constructor(_0xc94cdd,_0x4e1cf3,_0x1da55a,_0x589fee){const _0x264227=_0x399ae3;super(),_(this,_0x264227(0x312),new I[(_0x264227(0x376))](u[_0x264227(0x2da)][_0x264227(0x2dc)])),(this[_0x264227(0x2a8)]=_0xc94cdd,this['_injector']=_0x4e1cf3,this['_collaborationController']=_0x1da55a,this['_uiPartsService']=_0x589fee,this[_0x264227(0x274)](),this[_0x264227(0x230)]());}[_0x399ae3(0x230)](){const _0x33cf0d=_0x399ae3;this[_0x33cf0d(0x389)](this[_0x33cf0d(0x2a8)]['focused$'][_0x33cf0d(0x212)](I[_0x33cf0d(0x3fc)](()=>{const _0xd776ee=_0x33cf0d,_0x23bac9=this[_0xd776ee(0x2a8)][_0xd776ee(0x341)]();return _0x23bac9?this[_0xd776ee(0x31e)][_0xd776ee(0x3af)](_0x23bac9[_0xd776ee(0x3a3)]()):I['of'](null);}),I[_0x33cf0d(0x3fc)](_0x50e2b3=>_0x50e2b3?_0x50e2b3[_0x33cf0d(0x246)]:I['of'](u['CollaborationStatus']['NOT_COLLAB'])))[_0x33cf0d(0x2e6)](_0x2e8a24=>{const _0x17001b=_0x33cf0d;this[_0x17001b(0x312)]['next'](_0x2e8a24);}));}['_initStatusComponent'](){const _0x495ee0=_0x399ae3;this['disposeWithMe'](this[_0x495ee0(0x26b)]['registerComponent'](O[_0x495ee0(0x2c9)][_0x495ee0(0x140)],()=>O[_0x495ee0(0x1f8)](ot({'status$':this[_0x495ee0(0x312)][_0x495ee0(0x38a)]()}),this[_0x495ee0(0x1ff)])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x399ae3(0x373)]),K(0x1,a[_0x399ae3(0x166)](a['Injector'])),K(0x2,a['Inject'](u[_0x399ae3(0x209)])),K(0x3,O['IUIPartsService'])],exports[_0x399ae3(0x30f)]);function ot(_0x281239){const {status$:_0x4c29f5}=_0x281239;return function(){return M['jsx'](it,{'status$':_0x4c29f5});};}const Oe=a[_0x399ae3(0x24d)](_0x399ae3(0x28d));var at=Object[_0x399ae3(0x3f2)],ct=(_0xa43dfd,_0x19c6ed,_0x133661,_0x2271f4)=>{const _0x3fa18a=_0x399ae3;for(var _0x104f99=_0x2271f4>0x1?void 0x0:_0x2271f4?at(_0x19c6ed,_0x133661):_0x19c6ed,_0x8ef7f3=_0xa43dfd[_0x3fa18a(0x36f)]-0x1,_0x5eedd6;_0x8ef7f3>=0x0;_0x8ef7f3--)(_0x5eedd6=_0xa43dfd[_0x8ef7f3])&&(_0x104f99=_0x5eedd6(_0x104f99)||_0x104f99);return _0x104f99;},Y=(_0x2798d3,_0x30386f)=>(_0x40a377,_0x116419)=>_0x30386f(_0x40a377,_0x116419,_0x2798d3);exports[_0x399ae3(0x19e)]=class extends a['RxDisposable']{constructor(_0xf14ca8,_0x23d8fd,_0x238122,_0x465b34,_0x1a239f){const _0xe46dc6=_0x399ae3;super(),this[_0xe46dc6(0x1ce)]=_0xf14ca8,this[_0xe46dc6(0x2e2)]=_0x23d8fd,this[_0xe46dc6(0x328)]=_0x238122,this[_0xe46dc6(0x1d9)]=_0x465b34,_0x1a239f?_0x1a239f==null||_0x1a239f['whenReady']()['then'](()=>this[_0xe46dc6(0x15a)]()):(this['_logService']['debug'](_0xe46dc6(0x37b),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0xe46dc6(0x15a)]());}async[_0x399ae3(0x15a)](){const _0x4e400c=_0x399ae3,_0x4e7c95=this[_0x4e400c(0x1ce)]['getParam'](_0x4e400c(0x33a)),_0x248190=this[_0x4e400c(0x1ce)][_0x4e400c(0x2e4)](_0x4e400c(0x1aa)),_0x4ac25a=this[_0x4e400c(0x1ce)][_0x4e400c(0x2e4)]('subunit');if(!_0x4e7c95||!_0x248190){this[_0x4e400c(0x2e2)][_0x4e400c(0x14f)]('[CollaborationDataLoaderController]',_0x4e400c(0x172));return;}const _0x3d5b39=await this[_0x4e400c(0x1d9)][_0x4e400c(0x3e4)](_0x4e7c95,Number(_0x248190),_0x4ac25a);_0x3d5b39&&_0x3d5b39 instanceof a[_0x4e400c(0x398)]&&this[_0x4e400c(0x279)](_0x3d5b39);}async[_0x399ae3(0x279)](_0x183462){const _0x1301f3=_0x399ae3;await this['_updateSubUnitFromURLParams'](_0x183462),_0x183462[_0x1301f3(0x186)][_0x1301f3(0x212)](I[_0x1301f3(0x1dc)](this[_0x1301f3(0x238)]))['subscribe'](_0x587f92=>{const _0x19aacf=_0x1301f3;_0x587f92&&this[_0x19aacf(0x306)](_0x587f92);}),this[_0x1301f3(0x1ce)][_0x1301f3(0x3e8)]['pipe'](I[_0x1301f3(0x1dc)](this[_0x1301f3(0x238)]))[_0x1301f3(0x2e6)](()=>this[_0x1301f3(0x3ad)](_0x183462));}['_updateURLWithCurrentState'](_0x353e37,_0x535f82=!0x1){const _0x508884=_0x399ae3,_0x2dee73=this['_urlService'][_0x508884(0x2e4)](_0x508884(0x3c4));_0x353e37[_0x508884(0x204)]()!==_0x2dee73&&this['_urlService']['setParam'](_0x508884(0x3c4),_0x353e37[_0x508884(0x204)](),_0x535f82);}async['_updateSubUnitFromURLParams'](_0x593c99){const _0x4d09d6=_0x399ae3;var _0x1e8f12;const _0xc28be5=this[_0x4d09d6(0x1ce)][_0x4d09d6(0x2e4)](_0x4d09d6(0x3c4));if(!_0xc28be5||!_0x593c99[_0x4d09d6(0x2b2)](_0xc28be5)){const _0x1a18eb=_0x593c99[_0x4d09d6(0x242)]()[0x0],_0x97ab62=_0x593c99[_0x4d09d6(0x2b2)](_0x1a18eb);if(!_0x97ab62)return;this[_0x4d09d6(0x306)](_0x97ab62,!0x0),await this[_0x4d09d6(0x328)][_0x4d09d6(0x335)](v[_0x4d09d6(0x33d)]['id'],{'unitId':_0x593c99['getUnitId'](),'subUnitId':_0x1a18eb});return;}((_0x1e8f12=_0x593c99[_0x4d09d6(0x3ee)]())==null?void 0x0:_0x1e8f12[_0x4d09d6(0x204)]())!==_0xc28be5&&await this[_0x4d09d6(0x328)][_0x4d09d6(0x335)](v[_0x4d09d6(0x33d)]['id'],{'unitId':_0x593c99[_0x4d09d6(0x3a3)](),'subUnitId':_0xc28be5});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a[_0x399ae3(0x1cc)]),Y(0x2,a[_0x399ae3(0x339)]),Y(0x3,a[_0x399ae3(0x166)](u[_0x399ae3(0x3cc)])),Y(0x4,a[_0x399ae3(0x293)](qe['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var lt=Object[_0x399ae3(0x3f2)],_t=(_0x59b778,_0x42be66,_0x518a43,_0x45ff8f)=>{for(var _0x2bc0f7=_0x45ff8f>0x1?void 0x0:_0x45ff8f?lt(_0x42be66,_0x518a43):_0x42be66,_0x396920=_0x59b778['length']-0x1,_0x291efc;_0x396920>=0x0;_0x396920--)(_0x291efc=_0x59b778[_0x396920])&&(_0x2bc0f7=_0x291efc(_0x2bc0f7)||_0x2bc0f7);return _0x2bc0f7;},De=(_0x119c75,_0xf9d3ce)=>(_0x24d068,_0x2db218)=>_0xf9d3ce(_0x24d068,_0x2db218,_0x119c75);let me=class extends a['RxDisposable']{constructor(_0x3710e8,_0x2c9caa){const _0x7bec41=_0x399ae3;super(),this[_0x7bec41(0x34c)]=_0x3710e8,this[_0x7bec41(0x3f6)]=_0x2c9caa,this[_0x7bec41(0x15a)]();}['_init'](){const _0x999ec9=_0x399ae3,_0x422b43=this;this[_0x999ec9(0x389)](this[_0x999ec9(0x34c)][_0x999ec9(0x25e)]({'onBeforePasteImage':async _0xef24e3=>{const _0x448704=_0x999ec9,_0x48e611=await _0x422b43[_0x448704(0x3f6)]['saveImage'](_0xef24e3);return _0x48e611?{'source':_0x48e611[_0x448704(0x167)],'imageSourceType':_0x48e611[_0x448704(0x18b)]}:null;}}));}};me=_t([De(0x0,T['IDocClipboardService']),De(0x1,ze[_0x399ae3(0x19a)])],me);const Ne=[_0x399ae3(0x2f3),_0x399ae3(0x2d0),_0x399ae3(0x3d3),_0x399ae3(0x2d3),_0x399ae3(0x205),_0x399ae3(0x3d8)];class Re extends a[_0x399ae3(0x338)]{constructor(){const _0x7226cd=_0x399ae3;super(...arguments),_(this,_0x7226cd(0x15f),new Map()),_(this,_0x7226cd(0x2e8),0x0);}[_0x399ae3(0x1eb)](_0x421ccd){const _0x585e16=_0x399ae3;if(this[_0x585e16(0x15f)][_0x585e16(0x33b)](_0x421ccd))return this['_assignedColors']['get'](_0x421ccd);const _0x3e249e=Ne[this[_0x585e16(0x2e8)]];return this[_0x585e16(0x2e8)]=(this[_0x585e16(0x2e8)]+0x1)%Ne[_0x585e16(0x36f)],this['_assignedColors'][_0x585e16(0x408)](_0x421ccd,_0x3e249e),_0x3e249e;}}function Fe(_0x550188){const _0x9a7632=_0x399ae3;let _0x302e3d='';for(const _0x4c3476 of _0x550188){const {startOffset:_0x5349fc,endOffset:_0x1a01c3,isActive:_0x37e3db,rangeType:_0x5d37d4,segmentId:_0x2ff20d,segmentPage:_0x5216e4}=_0x4c3476;_0x302e3d[_0x9a7632(0x36f)]&&(_0x302e3d+=','),_0x302e3d+=_0x5349fc+':'+_0x1a01c3+':'+(_0x37e3db?'1':'0')+':'+_0x5d37d4+':'+_0x2ff20d+':'+_0x5216e4;}return _0x302e3d;}function ht(_0x27147d){const _0x9aee13=_0x399ae3,_0x143760=_0x27147d[_0x9aee13(0x138)](','),_0xb427a4=[];for(const _0x56aac4 of _0x143760){const [_0x491ac1,_0x19b447,_0x4f60a4,_0x49b112,_0x14d604,_0x4f0df8]=_0x56aac4['split'](':');_0xb427a4['push']({'startOffset':Number(_0x491ac1),'endOffset':Number(_0x19b447),'collapsed':_0x491ac1===_0x19b447,'isActive':_0x4f60a4==='1','rangeType':_0x49b112===a[_0x9aee13(0x2f5)][_0x9aee13(0x35a)]?a['DOC_RANGE_TYPE'][_0x9aee13(0x35a)]:a[_0x9aee13(0x2f5)][_0x9aee13(0x2a2)],'segmentId':typeof _0x14d604=='string'?String(_0x14d604):'','segmentPage':Number(_0x4f0df8!=null?_0x4f0df8:-0x1)});}return _0xb427a4['some'](_0x1a160d=>_0x1a160d[_0x9aee13(0x2d6)])||(_0xb427a4[0x0][_0x9aee13(0x2d6)]=!0x0),_0xb427a4;}class be extends a[_0x399ae3(0x2df)]{constructor(){const _0x3021ad=_0x399ae3;super(...arguments),_(this,'_collabCursorState$',new I[(_0x3021ad(0x376))](null)),_(this,_0x3021ad(0x19f),this[_0x3021ad(0x143)][_0x3021ad(0x38a)]());}['syncEditingCollabCursor'](_0x3f6190){const _0x55ba24=_0x399ae3,{unitID:_0xd4d9a0,memberID:_0x21bcf9,textRanges:_0x2d9a7d}=_0x3f6190,_0xe1f5f7=Fe(_0x2d9a7d);if(_0xe1f5f7==='')return;const _0x21b5e7={'unitID':_0xd4d9a0,'memberID':_0x21bcf9,'selection':_0xe1f5f7};this[_0x55ba24(0x143)][_0x55ba24(0x278)](_0x21b5e7);}}var ut=Object[_0x399ae3(0x3f2)],It=(_0x45a4bc,_0xfc23f6,_0xfe4e0d,_0x458a74)=>{const _0x5b84f2=_0x399ae3;for(var _0x3dab81=_0x458a74>0x1?void 0x0:_0x458a74?ut(_0xfc23f6,_0xfe4e0d):_0xfc23f6,_0x19f261=_0x45a4bc[_0x5b84f2(0x36f)]-0x1,_0x28bb16;_0x19f261>=0x0;_0x19f261--)(_0x28bb16=_0x45a4bc[_0x19f261])&&(_0x3dab81=_0x28bb16(_0x3dab81)||_0x3dab81);return _0x3dab81;},U=(_0x49d22c,_0x563248)=>(_0x3de8a6,_0x20ca64)=>_0x563248(_0x3de8a6,_0x20ca64,_0x49d22c);const St=0x12c,dt=0x64;let ve=class extends a[_0x399ae3(0x2df)]{constructor(_0x3d587a,_0x1137d3,_0x38d137,_0x244b36,_0x12553b,_0x5e9d7b,_0x45e481,_0x3f2054,_0x12f2d6){const _0x2c1fcd=_0x399ae3;super(),_(this,_0x2c1fcd(0x1bc),!0x1),_(this,'_init',!0x1),_(this,_0x2c1fcd(0x156),new I[(_0x2c1fcd(0x376))](new Map())),_(this,_0x2c1fcd(0x221),this[_0x2c1fcd(0x156)][_0x2c1fcd(0x38a)]()),_(this,'_roomMembers$',new I[(_0x2c1fcd(0x376))]([])),_(this,_0x2c1fcd(0x404),this[_0x2c1fcd(0x1e1)][_0x2c1fcd(0x212)](I[_0x2c1fcd(0x16a)](St))),_(this,_0x2c1fcd(0x366),a[_0x2c1fcd(0x37f)](_0x5a7daf=>{const _0x5d3823=_0x2c1fcd,_0xec2abb={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x5d3823(0x229)],'memberID':this[_0x5d3823(0x27d)][_0x5d3823(0x1cd)](),'selection':Fe(_0x5a7daf)}};this['_session'][_0x5d3823(0x13e)](_0xec2abb,this['unitID']);},dt)),(this['unitID']=_0x3d587a,this[_0x2c1fcd(0x27d)]=_0x1137d3,this[_0x2c1fcd(0x1ff)]=_0x38d137,this[_0x2c1fcd(0x1d1)]=_0x244b36,this['_memberService']=_0x12553b,this[_0x2c1fcd(0x2ea)]=_0x5e9d7b,this[_0x2c1fcd(0x1b2)]=_0x45e481,this['_univerInstanceService']=_0x3f2054,this[_0x2c1fcd(0x328)]=_0x12f2d6);}get[_0x399ae3(0x245)](){const _0x2fe235=_0x399ae3;return this[_0x2fe235(0x156)][_0x2fe235(0x2db)]();}get[_0x399ae3(0x325)](){const _0x4b89e9=_0x399ae3;return this[_0x4b89e9(0x1e1)][_0x4b89e9(0x2db)]();}[_0x399ae3(0x1a4)](){const _0x3c3462=_0x399ae3;super['dispose'](),this[_0x3c3462(0x156)][_0x3c3462(0x278)](new Map()),this[_0x3c3462(0x156)][_0x3c3462(0x177)](),this['_roomMembers$'][_0x3c3462(0x278)]([]),this[_0x3c3462(0x1e1)][_0x3c3462(0x177)]();}['init'](){const _0x53d3ff=_0x399ae3;this['_init']||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x53d3ff(0x212)](I[_0x53d3ff(0x1dc)](this[_0x53d3ff(0x238)]))[_0x53d3ff(0x2e6)](_0x1b5f0e=>{const _0x182a7f=_0x53d3ff;_0x1b5f0e===u['SessionStatus'][_0x182a7f(0x2cc)]?this[_0x182a7f(0x2ff)]():this[_0x182a7f(0x383)]();}),this[_0x53d3ff(0x27d)][_0x53d3ff(0x288)][_0x53d3ff(0x212)](I['takeUntil'](this['dispose$']))['subscribe'](_0xae66e1=>{const _0x2f82e6=_0x53d3ff,_0x5dd597=_0xae66e1[_0x2f82e6(0x3d6)];_0x5dd597===g['CollaborationEvent'][_0x2f82e6(0x327)]&&this[_0x2f82e6(0x206)](_0xae66e1),_0x5dd597===g['CollaborationEvent'][_0x2f82e6(0x401)]&&this[_0x2f82e6(0x357)](_0xae66e1);}),this['disposeWithMe'](this[_0x53d3ff(0x328)][_0x53d3ff(0x361)](_0x410e1d=>{const _0xa41187=_0x53d3ff,_0x2e0cb7=_0x410e1d[_0xa41187(0x1fd)];_0x2e0cb7!=null&&this[_0xa41187(0x1bc)]&&_0x410e1d['id']===V[_0xa41187(0x319)]['id']&&_0x2e0cb7['unitId']===this[_0xa41187(0x229)]&&_0x2e0cb7[_0xa41187(0x211)]===!0x1&&_0x2e0cb7[_0xa41187(0x1e2)][_0xa41187(0x36f)]>0x0&&this[_0xa41187(0x366)](_0x2e0cb7[_0xa41187(0x1e2)]);})),this[_0x53d3ff(0x2ea)][_0x53d3ff(0x19f)]['pipe'](I[_0x53d3ff(0x1dc)](this[_0x53d3ff(0x238)]))['subscribe'](_0x155cf3=>{const _0x1d9e3b=_0x53d3ff;if((_0x155cf3==null?void 0x0:_0x155cf3[_0x1d9e3b(0x229)])!==this['unitID'])return;const _0x495a76={'eventID':g[_0x1d9e3b(0x258)][_0x1d9e3b(0x327)],'data':_0x155cf3};this[_0x1d9e3b(0x206)](_0x495a76);}),this[_0x53d3ff(0x389)](this[_0x53d3ff(0x328)][_0x53d3ff(0x361)](_0x152e6a=>{const _0x195bd6=_0x53d3ff;if(_0x152e6a[_0x195bd6(0x1fd)]==null)return;const _0x14d772=_0x152e6a[_0x195bd6(0x1fd)];if(_0x152e6a['id']!==V[_0x195bd6(0x1b5)]['id']||_0x14d772[_0x195bd6(0x331)]!==this[_0x195bd6(0x229)])return;const _0x317eb0={'id':_0x195bd6(0x35b),'params':_0x14d772},_0xe1fd38=this[_0x195bd6(0x245)];for(const [_0x5d21fd,_0x5afce1]of _0xe1fd38){const _0x57c854={'id':_0x195bd6(0x35b),'params':{'unitId':this[_0x195bd6(0x229)],'actions':null,'textRanges':_0x5afce1[_0x195bd6(0x1e2)]}},_0x25418c=this['_transformService'][_0x195bd6(0x3c7)](_0x317eb0,_0x57c854,!0x1);if(g[_0x195bd6(0x216)](_0x25418c))throw _0x25418c[_0x195bd6(0x237)];_0xe1fd38[_0x195bd6(0x408)](_0x5d21fd,{..._0x5afce1,'ranges':_0x25418c[_0x195bd6(0x391)][_0x195bd6(0x1fd)][_0x195bd6(0x2cd)]});}queueMicrotask(()=>{const _0x320a14=_0x195bd6;this['_cursorInfo$'][_0x320a14(0x278)](_0xe1fd38);});})));}['_onCursorUpdate'](_0x1b5cba){const _0x2deffc=_0x399ae3;var _0x57a057,_0x5b02f1;const {memberID:_0x2c335c,selection:_0x348e49}=_0x1b5cba[_0x2deffc(0x3b6)],_0x4e1622=ht(_0x348e49),_0x3eab4a=(_0x5b02f1=(_0x57a057=this[_0x2deffc(0x25a)]['getMember'](this[_0x2deffc(0x229)],_0x2c335c))==null?void 0x0:_0x57a057[_0x2deffc(0x360)])!=null?_0x5b02f1:'Unknown\x20user',_0x4627de={'color':this[_0x2deffc(0x1d1)][_0x2deffc(0x1eb)](_0x2c335c),'name':_0x3eab4a,'ranges':_0x4e1622},_0x5be8d0=this[_0x2deffc(0x245)];_0x5be8d0[_0x2deffc(0x408)](_0x2c335c,_0x4627de),this[_0x2deffc(0x156)][_0x2deffc(0x278)](_0x5be8d0);}[_0x399ae3(0x357)](_0x187e58){const _0x4b9f81=_0x399ae3,{memberID:_0x3dc1ea}=_0x187e58[_0x4b9f81(0x3b6)],_0x5e3e01=this[_0x4b9f81(0x245)];_0x5e3e01[_0x4b9f81(0x25f)](_0x3dc1ea),this[_0x4b9f81(0x156)][_0x4b9f81(0x278)](_0x5e3e01);}[_0x399ae3(0x2ff)](){const _0x5b1b36=_0x399ae3;var _0x3f1d5d;if(this[_0x5b1b36(0x1bc)]=!0x0,((_0x3f1d5d=this[_0x5b1b36(0x2a8)][_0x5b1b36(0x341)]())==null?void 0x0:_0x3f1d5d[_0x5b1b36(0x3a3)]())!==this[_0x5b1b36(0x229)])return;const _0x1599e4=this[_0x5b1b36(0x1ff)][_0x5b1b36(0x1c4)](V[_0x5b1b36(0x259)])[_0x5b1b36(0x31b)]();Array['isArray'](_0x1599e4)&&_0x1599e4[_0x5b1b36(0x36f)]>0x0&&this[_0x5b1b36(0x366)](_0x1599e4);}[_0x399ae3(0x383)](){this['_online']=!0x1;}};ve=It([U(0x2,a[_0x399ae3(0x166)](a[_0x399ae3(0x1df)])),U(0x3,a[_0x399ae3(0x166)](Re)),U(0x4,a[_0x399ae3(0x166)](u[_0x399ae3(0x2a6)])),U(0x5,a[_0x399ae3(0x166)](be)),U(0x6,g['ITransformService']),U(0x7,a[_0x399ae3(0x373)]),U(0x8,a[_0x399ae3(0x339)])],ve);function _0x8e4a(){const _0x2a448f=['transformMutationsWithChangeset','_entities','disableLocalCache','m1Prime','Unknown\x20user','result','ENTITLE_COUPON_EXPIRED','LICENSE_DISTRO_REJECTED','onTransformChange$','_toggleOnline','_saveCache','YUUMI_URL_COL_OUT_OF_RANGE','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','UniverCollaborationClientPlugin','storage','ENTITLE_NEED_BILLING_ADDRESS','_updateURLWithCurrentState','ISnapshotServerService','HTTPService','_render','session.connection-failed','0\x200\x2016\x2016','IURLService','useDependency','...','DesktopCollaborationStatusDisplayController','YUUMI_ASYNCIO_CANCELLED','\x20at\x20','_status$','YUUMI_RATE_OVER_LIMIT','round','DATA_SOURCE_TOO_LARGE','AWAITING_WITH_PENDING','YUUMI_ALL_TABLES_IS_INVALID','unshift','SetTextSelectionsOperation','_scheduleClearOtherTimer','getDocRanges','_collabCursorController','div','_collaborationController','_drawTextRange','transformIMECache','limitInfo','SNAPSHOT_HAS_BEEN_REMOVED','univer-mr-2\x20univer-flex\x20univer-text-xl','_initWindowErrorListener','roomMembers','useObservable','UPDATE_CURSOR','_commandService','_registerDependencies','touchDependencies','846762bioVJe','_applyCommand','125140UuLIuT','makeDirty','_ensureSubject','startRow','unitId','_cursor','_anchor','backgroundColor','executeCommand','location','USER_IS_ANONYMOUS','Disposable','ICommandService','unit','has','_handleLeaveEvent','SetWorksheetActivateCommand','memberID','SetFormulaCalculationNotificationMutation','collabStatus.conflict','getFocusedUnit','_uploadLog','resize','MOBILE_HAS_BEEN_BOUND','fillText','LOGIN_TOKEN_PROCESSING_FAILED','parseInt','toString','_shapes','fillRule','VIEW_MAIN','_docClipboardService','collabStatus.notCollab','INVALID_ARGUMENT','docStateChange$','startColumn','getRangePointData','body','SUBMIT_CHANGESET_TIMEOUT','dirtyRanges','getUndoRedoMutationParamsCache','handleDeleteRangeMoveUp','_onCursorDelete','DocStateChangeManagerService','SNAPSHOT_INVALID_SNAPSHOT','TEXT','doc.mutation.rich-text-editing','actions','_clearPolling','ThemeService','RemoteUniscriptService','name','onCommandExecuted','UNRECOGNIZED','moveTo','join','_removeClearOtherTimer','_updateLocalCursor','_sheetSkeletonManagerService','_docSkeleton','width','_currentUsage','addObject','SetFormulaCalculationStartMutation','_lastPointer','getUnit','length','with','ITransformService','startFormulaLimitUrl','IUniverInstanceService','MOBILE_VERIFY_CODE_MISMATCH','values','BehaviorSubject','getStateCache','_initUnhandledRejectionListener','_handleJoinEvent','_renderManagerService','[CollaborationDataLoaderController]','ENTITLE_INSUFFICIENT_QUOTA','INVITE_CODE_HAS_BEEN_UES','size','debounce','TOO_MANY_REQUESTS','show','_collaborationUIEventService','_toggleOffline','_initResize','SOCKET_FAILED','runRefRangeMutations','off-line-icon_clip0_910_343','CollaborationUIEventId','disposeWithMe','asObservable','YUUMI_CONNECTOR_URL_NOT_FOUND','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_instanceService','beforeCommandExecuted','OFFLINE','_taskIds','m2Prime','Tooltip','APPLY_REJECT','onPointerMove$','on-line-icon','FormulaExecuteStageType','Module','Workbook','ENTITLE_COUPON_USED_UP','CHANGESET_REVISION_CONFILICT','LOCAL_CACHE_INTERVAL','APPLY_PERMISSION_DENIED','ERROR_AGAIN','formula.calculation.unable','loadOfflineData','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','UNIVER_DOC','sessionStatus$','getUnitId','InsertRowCommandId','LICENSE_MAX_UNITS_EXCEEDED','PERMISSION_DENIED','_heartbeatTimer','unload','1299154IJewSB','_textBubble','_pollingInterval','RegularPolygon','_updateSubUnitFromURLParams','DeleteRangeMoveUpCommandId','getCollabEntity$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','onPointerLeave$','createInstance','useCallback','IRenderManagerService','data','handleInsertRow','formula.calculation.started','_scheduleSaving','color','OTHER_CLIENT_EDITING','getCellMatrix','YUUMI_TABLE_NOT_FOUND_IN_UNIT','SheetCollabCursorShape','YUUMI_UNABLE_LOAD_URL','_configService','generateRandomId','measureText','_labelPosition','subunit','SHEET_VIEWPORT_KEY','Tools','transformMutation','UniverCollaborationClientUIPlugin','_config','currentSkeleton$','isFormulaString','DataLoaderService','evenodd','APPLY_DUPLICATED','endColumn','transform','getCurrentRevOfUnit','7094128ZKoKZX','green.600','REDEMPTION_INVALID_CODE','addObjects','eventID','fillStyle','yellow.400','combineLatest','editingUnit','removeEventListener','distinctUntilChanged','fill','REDEMPTION_CODE_INACTIVE','/universer-api/license/formula/limit/status','REDEMPTION_USER_REDEEM_TIMES_EXCEED','endRow','filter','replaceDocRanges','loadUnit','_cachedData','EffectRefRangId','_initCommandExecutedListener','urlChange$','runOnServer','_localCacheService','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_createSocketURL','[RemoteUniscriptService]:\x20no\x20focused\x20unit','getActiveSheet','registerRenderModule','replaceState','requireSession','getOwnPropertyDescriptor','replace','_transformPreviousActiveRange','syncEditingCollabCursor','_imageIoService','YUUMI_NO_CUBOID_FOR_QUESTION','reconnect','2161062cNcEJX','searchParams','getCurrent','switchMap','getColor','clearTimeout','startsWith','WebSocketService','USERS_LEAVE','SOCKET_FAILED_RETRY','_lastResponseTimestamp','roomMembers$','[LogService\x20Error]:\x20','functionsExecutedState','NodePositionConvertToRectRange','set','_getSaveTimeout','_unitStatus','split','CLOSE_ROOM','history','collaboration.offline-data-not-saved','AUTHORIZE_CODE_ILLEGAL','_range','send','redoState','HEADER_MENU','includes','Failed','_collabCursorState$','_updateCollabCursors','post','_revisionService','isTransformMutationsWithChangesetSuccess','_maxFormulaLimit','Rect','_handleHover','throttleTime','getCollabCursors$','displayName','NOT_FOUND','debug','range','_handleHeartbeatEvent','/run/','getSkeleton','collaboration.closeRoom','APPLY_NON_SEQUENTIAL_REVISION','_cursorInfo$','COLORS','_getMergeRange','385XNyjco','_init','symbol','ILocalStorageService','getRenderById','getformulaLimitStatusUrl','_assignedColors','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getActiveRange','handleInsertCol','session.collaboration-timeout','setItem','subscribeEvent','Inject','source','onPointerEnter$','random','debounceTime','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','registerDependencies','_themeService','_docSyncEditingCollabCursorService','CollaborationSessionService','_document','setStateCache','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_hideTimer','_docTransformStateCacheService','collab-client.tooltip.reconnect','Plugin','complete','_refRangeService','ticket','_httpService','RemoveRowCommandId','lineno','Warning','handleIRemoveCol','getConfig','ENTITLE_USE_COUPON_NOT_1ST_TRADE','CURRENT_STATUS_CANNOT_OPERATE','restore','shareReplay','skeleton','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','activeSheet$','application/json','black','assign','LICENSE_IMPORT_SIZE_EXCEEDED','imageSourceType','INTERNAL_ERROR','SYNCED','off-line-icon','mapTo','IMessageService','DocSkeletonManagerService','REDEMPTION_CODE_FULLY_REDEEMED','toRgbString','clearInterval','getCoordByCell','svg','reason','toDisposable','NO_OTHER_CLIENTS_EDITING','IImageIoService','FETCH_MISS','merge','_cursorShapes','CollaborationDataLoaderController','collabCursorState$','onStarting','collab-text-anchor-','filename','_getSheetObject','dispose','max','top','Subject','handleIRemoveRow','unhandledrejection','type','drawWith','INotificationService','1em','_initCommandInterceptor','CollaborationSocketService','_initEvent','http://www.w3.org/2000/svg','_transformService','_eventUnsubscribe','5897505JKmBZx','RichTextEditingMutation','jsx','_removeCollabCursors','_initEntityListener','transformRemoteChangeset','_setupBeforeClosingHandler','collabStatus.fetchMiss','_online','LOCAL_CACHE_INTERVAL_KEY','univerjs-icon\x20univerjs-icon-','totalFormulasToCalculate','collaboration.single-unit.warning','white','_beforeCloseService','handleMoveRange','get','url(#$1','TRANSFORM_CHANGE_OBSERVABLE_TYPE','/universer-api/license/formula/limit/done','permission.title','EMAIL_HAS_BEEN_BOUND','getCurrentUnitForType','height','ILogService','getMemberID','_urlService','enableFrontendLog','_docTransformIMECacheService','_colorAssignService','_draw','pluginName','find','catch','getItem','WECHAT_HAS_BEEN_BOUND','getVpScrollXYInfoByPosToVp','_dataLoaderService','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','defineProperty','takeUntil','on-line-icon_clip0_910_349','idSuffix','Injector','_startSheetCollabCursor','_roomMembers$','ranges','_docTransformSelectionsService','mask','subUnitId','_anchorDot','attrs','WebURLService','7XMYvoA','Rectangle','assignAColorForMemberID','_color','findNodePositionByCharIndex','setAlpha','bind','_collaborationSessionService','getUniverSheetInstance','SessionStatus','currentColor','setParam','path','AWAITING','UnitStatus','connectInjector','643320SKxzyt','DeleteRangeMoveLeftCommandId','REDEMPTION_CODE_HAS_BEEN_CREATED','hide','params','_docStateChangeManagerService','_injector','setInterval','ENTITLE_INVALID_COUPON_CODE','_scheduleHeartbeat','setShapeProps','getSheetId','blue.400','_onCursorUpdate','_scene','_entityInit$','CollaborationController','TEXT_RANGE_LAYER_INDEX','ENTITLE_CHAT_LIMIT_EXCEED','popstate','SetSelectionsOperation','SheetsSelectionsService','mutations','_localeService','isEditing','pipe','_getFormulaLimitStatus','_transformHistoryAndStateStack','getMergeData','isTransformMutationFailure','CanceledError','RemoveColCommandId','_checkCalculationAvailable','collabStatus.synced','add','updateOfflineData','UniverIcon','LICENSE_EXPORT_SIZE_EXCEEDED','addHandlerCallback','ColorKit','cursorInfo$','YUUMI_AI_RUN_FAILED','getCurrentSelections','?taskId=','_id','getMember','CommandType','column','unitID','WebBrowserSingleActiveUnitService','stack','fromEvent','none','INVITE_CODE_ALREADY_BOUND','PY_RUNTIME_SCRIPT_ERROR','_initStatusListener','DocCollaborationEntity','EMAIL_VERIFY_CODE_MISMATCH','InsertRangeMoveRightCommandId','undoState','handleInsertRangeMoveDown','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','error','dispose$','isArray','runId','getTypeOfUnitAdded$','_clearOtherTimers','current','CONNECTOR_DATA_TOO_LARGE','REDEMPTION_USER_NOT_ELIGIBLE','ALREADY_EXISTS','string','getUnhiddenWorksheets','_selfUnitIDs','save','cursorInfo','status$','OTHER_CLIENTS_EDITING','map','defs','_send','Error','_cursors','createIdentifier','collab-rect-range-','transformByState','currentTheme$','univer-flex\x20univer-items-center','_checkAndWaitForCalculationPermission','beginPath','ENSURE_SNAPSHOT_EXECUTION','_unitOnClients','session.will-retry','href','CollaborationEvent','DocSelectionManagerService','_memberService','entries','onMouseMove','YUUMI_SUBSCRIPTION_NOT_FOUND','addClipboardHook','delete','getColorFromTheme','isFormulaId','REDEMPTION_CODE_NOT_STARTED','forEach','Shape','RevisionService','LocaleService','ILocalCacheService','all','CONFLICT','then','_uiPartsService','APPLY_REVISION_CONFILICT','flatMap','invokeId','_releaseCalculationLimit','_drawAnchor','Success','_disabled','FromArray','_initStatusComponent','_refreshCollabCursors','SetDocZoomRatioOperation','BrowserCollaborationSocketService','next','_setupSubUnitSync','translate(.97)','parse','override','_session','_docSkeletonManagerService','init','_initUserListener','getAncestorScale','selection','DocIMEInputManagerService','currentUsage','_saveTaskMap','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','xlink:href','event$','UNDEFINED','colorChannel1','_doCreateSocket','unsubscribe','uni.network.url-service','ENTITLE_DUP_SUBSCRIPTION','_drawRectRange','_setFormulaLimitStatus','3wnMLBp','stringify','Optional','INVALID_INVITE_CODE','getTypeOfUnitDisposed$','children','maxFormulaLimit','origin','UNIVER_SHEET','_backgroundColor','MessageType','trim','clipPath','arc','triggerDblclick','ISocketService','mergeOverrideWithDependencies','RECT','transformSelections','serializeRangeWithSheet','NodePositionConvertToCursor','MemberService','UniverInstanceType','_univerInstanceService','_handleEvent','getViewport','[Window\x20Error]:\x20','SheetSkeletonManagerService','sessionTicket','createElement','bottom','from','min','getSheetBySheetId','saveOfflineData','defIds','setTimeout','code','tag','deepClone','_registerRenderDependencies','COMPLETION_FINISHED','getCellPositionByOffset','_startCalculationLimit','registerRefRange','_localStorageService','UNAUTHENTICATED','_onRefRangeChange','_getSessionTicket','_hovered','_messageService','IConfigService','row','push','stageInfo','saveTaskMap','BuiltInUIPart','Loading','setConfig','ONLINE','textRanges','onLocalMutation','_hover','jiqing.500','InsertRangeMoveDownCommandId','_context','red.300','forwardRef','collaboration-client-ui.config','isActive','LOGIN_FAILED','getLocalCacheKey','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','CollaborationStatus','getValue','NOT_COLLAB','4BwLywK','_collabSessionService','RxDisposable','ENTITLE_REPORT_LIMIT_EXCEED','[Unhandled\x20Rejection]:\x20','_logService','useRef','getParam','_name','subscribe','_initDependencies','_colorIndex','USER_NOT_FOUND','_syncEditingCollabCursorService','_showGuardMessage','createSocket','_notificationService','collabStatus.offline','_startDocCollabCursor','enableLocalCache','executionId','pushState','purple.300','lineTo','DOC_RANGE_TYPE'];_0x8e4a=function(){return _0x2a448f;};return _0x8e4a();}var ft=Object[_0x399ae3(0x3f2)],mt=(_0x352ffb,_0x13026b,_0x3b991d,_0xdef741)=>{for(var _0x447979=_0xdef741>0x1?void 0x0:_0xdef741?ft(_0x13026b,_0x3b991d):_0x13026b,_0x55e0b1=_0x352ffb['length']-0x1,_0x3e26f1;_0x55e0b1>=0x0;_0x55e0b1--)(_0x3e26f1=_0x352ffb[_0x55e0b1])&&(_0x447979=_0x3e26f1(_0x447979)||_0x447979);return _0x447979;},w=(_0x1c6a8c,_0x10ee64)=>(_0x3b77d3,_0x3ec75c)=>_0x10ee64(_0x3b77d3,_0x3ec75c,_0x1c6a8c);const vt=0x12c,gt=0x64,Et=()=>{let _0x18d945=[],_0x57b792=!0x1;return _0x24b483=>{const _0xfd0d6d=_0x4320;_0x18d945[_0xfd0d6d(0x2c6)](_0x24b483),_0x57b792||(_0x57b792=!0x0,setTimeout(()=>{const _0x11e489=_0xfd0d6d;_0x18d945[_0x11e489(0x263)](_0x1d73dd=>_0x1d73dd()),_0x18d945=[],_0x57b792=!0x1;}));};};let ge=class extends a[_0x399ae3(0x2df)]{constructor(_0x20539d,_0xf51fd1,_0x174dae,_0x5deea7,_0x2c6e89,_0xbdfc65,_0x3142b1,_0x5196c8){const _0x1163e0=_0x399ae3;super(),_(this,_0x1163e0(0x1bc),!0x1),_(this,_0x1163e0(0x15a),!0x1),_(this,_0x1163e0(0x156),new I[(_0x1163e0(0x376))](new Map())),_(this,_0x1163e0(0x221),this[_0x1163e0(0x156)]['asObservable']()),_(this,_0x1163e0(0x1e1),new I[(_0x1163e0(0x376))]([])),_(this,'roomMembers$',this[_0x1163e0(0x1e1)][_0x1163e0(0x212)](I['debounceTime'](vt))),_(this,_0x1163e0(0x366),a[_0x1163e0(0x37f)]((_0x5d5611,_0x4f026d)=>{const _0x56d17b=_0x1163e0,_0x1e1227={'eventID':g[_0x56d17b(0x258)][_0x56d17b(0x327)],'data':{'unitID':this[_0x56d17b(0x229)],'memberID':this[_0x56d17b(0x27d)][_0x56d17b(0x1cd)](),'selection':B[_0x56d17b(0x2a4)](_0x5d5611,_0x4f026d[_0x56d17b(0x150)])}};this[_0x56d17b(0x27d)][_0x56d17b(0x13e)](_0x1e1227,this[_0x56d17b(0x229)]);},gt)),(this[_0x1163e0(0x229)]=_0x20539d,this[_0x1163e0(0x27d)]=_0xf51fd1,this[_0x1163e0(0x1ff)]=_0x174dae,this[_0x1163e0(0x1d1)]=_0x5deea7,this[_0x1163e0(0x25a)]=_0x2c6e89,this[_0x1163e0(0x2a8)]=_0xbdfc65,this[_0x1163e0(0x328)]=_0x3142b1,this[_0x1163e0(0x178)]=_0x5196c8);}get['cursorInfo'](){const _0x52a67c=_0x399ae3;return this[_0x52a67c(0x156)]['getValue']();}get[_0x399ae3(0x325)](){const _0x1d3eb3=_0x399ae3;return this[_0x1d3eb3(0x1e1)]['getValue']();}['dispose'](){const _0x295308=_0x399ae3;super['dispose'](),this['_cursorInfo$'][_0x295308(0x278)](new Map()),this[_0x295308(0x156)][_0x295308(0x177)](),this[_0x295308(0x1e1)][_0x295308(0x278)]([]),this[_0x295308(0x1e1)][_0x295308(0x177)]();}[_0x399ae3(0x27f)](){const _0x305b25=_0x399ae3;this[_0x305b25(0x15a)]||(this[_0x305b25(0x15a)]=!0x0,this[_0x305b25(0x27d)][_0x305b25(0x3a2)][_0x305b25(0x212)](I[_0x305b25(0x1dc)](this[_0x305b25(0x238)]))[_0x305b25(0x2e6)](_0x4f8ac1=>{const _0x2d85c0=_0x305b25;_0x4f8ac1===u[_0x2d85c0(0x1f2)][_0x2d85c0(0x2cc)]?this[_0x2d85c0(0x2ff)]():this[_0x2d85c0(0x383)]();}),this[_0x305b25(0x27d)][_0x305b25(0x288)][_0x305b25(0x212)](I[_0x305b25(0x1dc)](this[_0x305b25(0x238)]))[_0x305b25(0x2e6)](_0x86c578=>{const _0x586325=_0x305b25,_0x46fac1=_0x86c578[_0x586325(0x3d6)];_0x46fac1===g[_0x586325(0x258)][_0x586325(0x327)]&&this['_onCursorUpdate'](_0x86c578),_0x46fac1===g[_0x586325(0x258)][_0x586325(0x401)]&&this[_0x586325(0x357)](_0x86c578);}),this[_0x305b25(0x2c0)](),this[_0x305b25(0x389)](this['_commandService'][_0x305b25(0x361)](_0x2a8ffc=>{const _0x4a36f7=_0x305b25;if(this['_online']&&_0x2a8ffc['id']===v[_0x4a36f7(0x20d)]['id']&&_0x2a8ffc[_0x4a36f7(0x1fd)]['unitId']===this['unitID']){const _0x5de55e=_0x2a8ffc[_0x4a36f7(0x1fd)];this[_0x4a36f7(0x366)](_0x5de55e[_0x4a36f7(0x1e5)],_0x5de55e['selections'][0x0]);}})));}[_0x399ae3(0x206)](_0x2c9efa){const _0x397116=_0x399ae3;var _0x5de605,_0x4a1436;const {memberID:_0x510ccb,selection:_0x3302b3}=_0x2c9efa[_0x397116(0x3b6)],{sheetName:_0x1cc3ae,range:_0x29ef06}=B['deserializeRangeWithSheet'](_0x3302b3),_0x383919={'name':(_0x4a1436=(_0x5de605=this[_0x397116(0x25a)][_0x397116(0x226)](this[_0x397116(0x229)],_0x510ccb))==null?void 0x0:_0x5de605[_0x397116(0x360)])!=null?_0x4a1436:_0x397116(0x2fa),'range':this[_0x397116(0x158)](_0x1cc3ae,_0x29ef06),'sheetID':_0x1cc3ae,'color':this[_0x397116(0x1d1)][_0x397116(0x1eb)](_0x510ccb),'selection':_0x3302b3},_0x3daddc=this['cursorInfo'];_0x3daddc[_0x397116(0x408)](_0x510ccb,_0x383919),this[_0x397116(0x156)][_0x397116(0x278)](_0x3daddc);}[_0x399ae3(0x357)](_0x3ef0b2){const _0x386672=_0x399ae3,{memberID:_0x5cd1a6}=_0x3ef0b2[_0x386672(0x3b6)],_0x3df1fe=this[_0x386672(0x245)];_0x3df1fe[_0x386672(0x25f)](_0x5cd1a6),this[_0x386672(0x156)][_0x386672(0x278)](_0x3df1fe);}[_0x399ae3(0x158)](_0x46fe33,_0x56e2a3){const _0x4e690c=_0x399ae3;var _0x56b16c,_0x2ab9df;const _0x151274=(_0x2ab9df=(_0x56b16c=this[_0x4e690c(0x2a8)][_0x4e690c(0x1f1)](this[_0x4e690c(0x229)]))==null?void 0x0:_0x56b16c[_0x4e690c(0x2b2)](_0x46fe33))==null?void 0x0:_0x2ab9df[_0x4e690c(0x215)]();return(_0x151274==null?void 0x0:_0x151274[_0x4e690c(0x1d4)](_0xda8f38=>a[_0x4e690c(0x1ea)]['contains'](_0xda8f38,_0x56e2a3)))||_0x56e2a3;}[_0x399ae3(0x2c0)](){const _0x4f80ac=_0x399ae3,_0x2dc6f1=new a['DisposableCollection'](),_0x28a33c=Et(),_0x5d7b80=()=>{const _0x338e89=_0x4320;_0x2dc6f1[_0x338e89(0x1a4)]();const _0x3d6b7c=(_0x206069,_0x5bb051,_0x200a97,_0x269e86)=>{const _0x465518=_0x338e89;let _0x37450e=[];switch(_0x206069['id']){case v[_0x465518(0x3e6)][_0x465518(0x1fa)]:{_0x37450e=v['handleDeleteRangeMoveLeft'](_0x206069,_0x269e86);break;}case v['EffectRefRangId'][_0x465518(0x3ae)]:{_0x37450e=v[_0x465518(0x356)](_0x206069,_0x269e86);break;}case v[_0x465518(0x3e6)]['InsertColCommandId']:{_0x37450e=v[_0x465518(0x162)](_0x206069,_0x269e86);break;}case v['EffectRefRangId'][_0x465518(0x2d1)]:{_0x37450e=v[_0x465518(0x235)](_0x206069,_0x269e86);break;}case v[_0x465518(0x3e6)][_0x465518(0x233)]:{_0x37450e=v['handleInsertRangeMoveRight'](_0x206069,_0x269e86);break;}case v[_0x465518(0x3e6)][_0x465518(0x3a4)]:{_0x37450e=v[_0x465518(0x3b7)](_0x206069,_0x269e86);break;}case v[_0x465518(0x3e6)]['MoveRangeCommandId']:{_0x37450e=v[_0x465518(0x1c3)](_0x206069,_0x269e86);break;}case v[_0x465518(0x3e6)][_0x465518(0x218)]:{_0x37450e=v[_0x465518(0x17e)](_0x206069,_0x269e86);break;}case v[_0x465518(0x3e6)][_0x465518(0x17b)]:{_0x37450e=v[_0x465518(0x1a8)](_0x206069,_0x269e86);break;}}const _0x9b0d87=v[_0x465518(0x386)](_0x37450e,_0x269e86),_0x309a17=this[_0x465518(0x245)]['get'](_0x5bb051);if(_0x309a17&&_0x9b0d87){const _0x44af3c={..._0x309a17,'range':_0x9b0d87};this[_0x465518(0x245)]['set'](_0x5bb051,_0x44af3c),_0x28a33c(()=>{const _0x280230=_0x465518,_0x46866c=this[_0x280230(0x178)]['registerRefRange'](_0x9b0d87,_0x36b47d=>(_0x46866c['dispose'](),_0x3d6b7c(_0x36b47d,_0x5bb051,_0x200a97,_0x9b0d87)));_0x2dc6f1[_0x280230(0x21b)](_0x46866c);});}return{'redos':[],'undos':[]};};this[_0x338e89(0x245)][_0x338e89(0x263)]((_0x2facde,_0xa2f857)=>{const _0x5810cb=_0x338e89,{range:_0x14335b,sheetID:_0x248ff1}=_0x2facde,_0x4bb01c=this[_0x5810cb(0x178)][_0x5810cb(0x2bd)](_0x14335b,_0x1a1132=>(_0x4bb01c[_0x5810cb(0x1a4)](),_0x3d6b7c(_0x1a1132,_0xa2f857,_0x248ff1,_0x14335b)));_0x2dc6f1[_0x5810cb(0x21b)](_0x4bb01c);});};this[_0x4f80ac(0x389)](a[_0x4f80ac(0x198)](this[_0x4f80ac(0x156)][_0x4f80ac(0x2e6)](()=>{_0x5d7b80();})));}['_toggleOnline'](){const _0x31c12c=_0x399ae3;var _0x436ef5,_0xf7a9c0;if(this['_online']=!0x0,((_0x436ef5=this[_0x31c12c(0x2a8)]['getFocusedUnit']())==null?void 0x0:_0x436ef5[_0x31c12c(0x3a3)]())!==this[_0x31c12c(0x229)])return;const _0x12067e=(_0xf7a9c0=this['_injector'][_0x31c12c(0x1c4)](v[_0x31c12c(0x20e)])[_0x31c12c(0x223)]())==null?void 0x0:_0xf7a9c0[0x0],_0x8a3a2f=this['_univerInstanceService'][_0x31c12c(0x1ca)](a['UniverInstanceType'][_0x31c12c(0x299)])[_0x31c12c(0x3ee)]();_0x12067e&&_0x8a3a2f&&this[_0x31c12c(0x366)](_0x8a3a2f['getSheetId'](),_0x12067e);}['_toggleOffline'](){this['_online']=!0x1;}};ge=mt([w(0x2,a[_0x399ae3(0x166)](a[_0x399ae3(0x1df)])),w(0x3,a['Inject'](Re)),w(0x4,a[_0x399ae3(0x166)](u[_0x399ae3(0x2a6)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x399ae3(0x339)]),w(0x7,a[_0x399ae3(0x166)](v['RefRangeService']))],ge);var Ct=Object[_0x399ae3(0x3f2)],Tt=(_0x59be67,_0x537d60,_0xa132d,_0x5705dd)=>{const _0x321ed3=_0x399ae3;for(var _0x2faebf=_0x5705dd>0x1?void 0x0:_0x5705dd?Ct(_0x537d60,_0xa132d):_0x537d60,_0x2752a7=_0x59be67[_0x321ed3(0x36f)]-0x1,_0xb58879;_0x2752a7>=0x0;_0x2752a7--)(_0xb58879=_0x59be67[_0x2752a7])&&(_0x2faebf=_0xb58879(_0x2faebf)||_0x2faebf);return _0x2faebf;},ce=(_0x4d4e68,_0x20eaa6)=>(_0x5189d4,_0xf27a29)=>_0x20eaa6(_0x5189d4,_0xf27a29,_0x4d4e68);let F=class extends a[_0x399ae3(0x2df)]{constructor(_0x11f78e,_0x5c5589,_0x210271){const _0x3ba165=_0x399ae3;super(),_(this,_0x3ba165(0x2f7),new Map()),_(this,'_entityInit$',new I[(_0x3ba165(0x1a7))]()),(this[_0x3ba165(0x2a8)]=_0x11f78e,this[_0x3ba165(0x1ff)]=_0x5c5589,this[_0x3ba165(0x2de)]=_0x210271,this[_0x3ba165(0x15a)]());}['dispose'](){const _0x30855c=_0x399ae3;super[_0x30855c(0x1a4)](),this[_0x30855c(0x208)][_0x30855c(0x177)](),this[_0x30855c(0x2f7)]['forEach'](_0x3892d0=>_0x3892d0[_0x30855c(0x1a4)]());}['getCollabCursors$'](_0x1f54be){const _0x3f7a1e=_0x399ae3;return this[_0x3f7a1e(0x2f7)]['has'](_0x1f54be)?this[_0x3f7a1e(0x2f7)][_0x3f7a1e(0x1c4)](_0x1f54be)['cursorInfo$']:this[_0x3f7a1e(0x208)][_0x3f7a1e(0x212)](I[_0x3f7a1e(0x3e2)](_0x55bae7=>_0x55bae7[_0x3f7a1e(0x229)]===_0x1f54be),I[_0x3f7a1e(0x3fc)](_0xd02cc7=>_0xd02cc7[_0x3f7a1e(0x221)]));}[_0x399ae3(0x15a)](){const _0x3d10d3=_0x399ae3;this['_univerInstanceService'][_0x3d10d3(0x23b)](a[_0x3d10d3(0x2a7)][_0x3d10d3(0x299)])['pipe'](I[_0x3d10d3(0x1dc)](this['dispose$']))[_0x3d10d3(0x2e6)](async _0x5e16a9=>{const _0x549573=_0x3d10d3,_0x12aa45=_0x5e16a9['getUnitId'](),_0x16e69a=await this[_0x549573(0x1e0)](_0x12aa45);this[_0x549573(0x208)][_0x549573(0x278)](_0x16e69a),this[_0x549573(0x2f7)][_0x549573(0x408)](_0x12aa45,_0x16e69a);}),this[_0x3d10d3(0x2a8)][_0x3d10d3(0x23b)](a[_0x3d10d3(0x2a7)][_0x3d10d3(0x3a1)])[_0x3d10d3(0x212)](I[_0x3d10d3(0x1dc)](this[_0x3d10d3(0x238)]))[_0x3d10d3(0x212)](I[_0x3d10d3(0x3e2)](_0x56e34d=>!_0x56e34d['getUnitId']()[_0x3d10d3(0x3ff)]('__')))['subscribe'](async _0x2bc624=>{const _0x2daa0b=_0x3d10d3,_0x3fb6d0=_0x2bc624[_0x2daa0b(0x3a3)](),_0x21bca8=await this['_startDocCollabCursor'](_0x3fb6d0);this[_0x2daa0b(0x208)][_0x2daa0b(0x278)](_0x21bca8),this[_0x2daa0b(0x2f7)][_0x2daa0b(0x408)](_0x3fb6d0,_0x21bca8);}),I[_0x3d10d3(0x19c)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x3d10d3(0x2a7)][_0x3d10d3(0x3a1)]),this['_univerInstanceService'][_0x3d10d3(0x295)](a[_0x3d10d3(0x2a7)][_0x3d10d3(0x299)]))[_0x3d10d3(0x212)](I[_0x3d10d3(0x1dc)](this[_0x3d10d3(0x238)]))[_0x3d10d3(0x2e6)](_0x118cd3=>{const _0x25e0d6=_0x3d10d3,_0x8ab4f8=_0x118cd3[_0x25e0d6(0x3a3)](),_0x47b48c=this[_0x25e0d6(0x2f7)][_0x25e0d6(0x1c4)](_0x8ab4f8);_0x47b48c&&(_0x47b48c[_0x25e0d6(0x1a4)](),this[_0x25e0d6(0x2f7)][_0x25e0d6(0x25f)](_0x8ab4f8));});}async[_0x399ae3(0x1e0)](_0xd1e6eb){const _0x16b3be=_0x399ae3,_0x916a52=await this['_collabSessionService'][_0x16b3be(0x3f1)](_0xd1e6eb),_0x4db23c=this['_injector']['createInstance'](ge,_0xd1e6eb,_0x916a52);return _0x4db23c[_0x16b3be(0x27f)](),_0x4db23c;}async[_0x399ae3(0x2ef)](_0x1ee20e){const _0x354ffd=_0x399ae3,_0x453c29=await this[_0x354ffd(0x2de)][_0x354ffd(0x3f1)](_0x1ee20e),_0x4a0b93=this[_0x354ffd(0x1ff)][_0x354ffd(0x3b3)](ve,_0x1ee20e,_0x453c29);return _0x4a0b93[_0x354ffd(0x27f)](),_0x4a0b93;}};F=Tt([ce(0x0,a[_0x399ae3(0x373)]),ce(0x1,a['Inject'](a['Injector'])),ce(0x2,a[_0x399ae3(0x166)](u[_0x399ae3(0x16f)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x14c240,_0x107a38){const _0x4869f9=_0x399ae3;let {radius:_0x1fceef,width:_0x165565,height:_0x2ea59c}=_0x107a38;_0x1fceef=_0x1fceef!=null?_0x1fceef:0x0,_0x165565=_0x165565!=null?_0x165565:0x1e,_0x2ea59c=_0x2ea59c!=null?_0x2ea59c:0x1e;let _0x55db6d=0x0,_0x1f1711=0x0,_0x42dce7=0x0;_0x55db6d=_0x1f1711=_0x42dce7=Math[_0x4869f9(0x2b1)](_0x1fceef,_0x165565/0x2,_0x2ea59c/0x2),_0x14c240[_0x4869f9(0x253)](),_0x14c240[_0x4869f9(0x363)](_0x55db6d,0x0),_0x14c240[_0x4869f9(0x2f4)](_0x165565-_0x1f1711,0x0),_0x14c240[_0x4869f9(0x29e)](_0x165565-_0x1f1711,_0x1f1711,_0x1f1711,Math['PI']*0x3/0x2,0x0,!0x1),_0x14c240[_0x4869f9(0x2f4)](_0x165565,_0x2ea59c-_0x42dce7),_0x14c240[_0x4869f9(0x29e)](_0x165565-_0x42dce7,_0x2ea59c-_0x42dce7,_0x42dce7,0x0,Math['PI']/0x2,!0x1),_0x14c240[_0x4869f9(0x2f4)](0x0,_0x2ea59c),_0x14c240[_0x4869f9(0x2f4)](0x0,_0x55db6d),_0x14c240[_0x4869f9(0x29e)](_0x55db6d,_0x55db6d,_0x55db6d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x14c240['closePath'](),_0x107a38[_0x4869f9(0x3dd)]&&(_0x14c240[_0x4869f9(0x244)](),_0x14c240[_0x4869f9(0x3d7)]=_0x107a38[_0x4869f9(0x3dd)],_0x107a38[_0x4869f9(0x34a)]===_0x4869f9(0x3cd)?_0x14c240[_0x4869f9(0x3dd)](_0x4869f9(0x3cd)):_0x14c240['fill'](),_0x14c240['restore']());}class re extends C[_0x399ae3(0x264)]{constructor(_0x17a609,_0x71399b){const _0x5eb3da=_0x399ae3;super(_0x17a609,_0x71399b),_(this,_0x5eb3da(0x3ba)),_(this,'text'),(this[_0x5eb3da(0x3ba)]=_0x71399b==null?void 0x0:_0x71399b[_0x5eb3da(0x3ba)],this['text']=_0x71399b==null?void 0x0:_0x71399b['text']);}static[_0x399ae3(0x1ab)](_0xc43988,_0x49c68a){const _0x1bfeed=_0x399ae3,{text:_0x5abd44,color:_0x535eee}=_0x49c68a;_0xc43988[_0x1bfeed(0x244)](),_0xc43988['font']=_0x1bfeed(0x2d9);const _0x22669a=_0xc43988[_0x1bfeed(0x3c2)](_0x5abd44)[_0x1bfeed(0x369)],_0x10dc2f=Math['min'](_0x22669a+0x2*le,Ue);Ot(_0xc43988,{'height':X,'radius':0x4,'width':_0x10dc2f,'fill':_0x535eee}),_0xc43988[_0x1bfeed(0x3d7)]='#FFF';const _0x1ff9cf=le,_0x314e0b=X-pt,_0x4a391f=Ue-0x2*le;if(_0x22669a>_0x4a391f){let _0x5e308e='',_0x15cda3=0x0;for(const _0x33a480 of _0x5abd44){const _0x208c90=_0xc43988[_0x1bfeed(0x3c2)](_0x33a480)[_0x1bfeed(0x369)];if(_0x15cda3+_0x208c90<=_0x4a391f-_0xc43988[_0x1bfeed(0x3c2)](_0x1bfeed(0x30e))[_0x1bfeed(0x369)])_0x5e308e+=_0x33a480,_0x15cda3+=_0x208c90;else{_0x5e308e+=_0x1bfeed(0x30e);break;}}_0xc43988[_0x1bfeed(0x345)](_0x5e308e,_0x1ff9cf,_0x314e0b);}else _0xc43988[_0x1bfeed(0x345)](_0x5abd44,_0x1ff9cf,_0x314e0b);_0xc43988[_0x1bfeed(0x182)]();}[_0x399ae3(0x1d2)](_0x2d7179){const _0x2cc515=_0x399ae3;re[_0x2cc515(0x1ab)](_0x2d7179,this);}}const _e=_0x399ae3(0x1a1),Rt='collab-text-range-',bt=_0x399ae3(0x24e),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x44d095,_0x3a57c6,_0x40b875,_0x2dd75a){const _0x16a032=_0x399ae3;_(this,'_shapes',[]),_(this,_0x16a032(0x333),null),_(this,'_textBubble',null),_(this,'_anchorDot',null),_(this,_0x16a032(0x173),null),_(this,_0x16a032(0x1b3),null),(this[_0x16a032(0x332)]=_0x44d095,this[_0x16a032(0x207)]=_0x3a57c6,this[_0x16a032(0x368)]=_0x40b875,this[_0x16a032(0x170)]=_0x2dd75a,this[_0x16a032(0x309)]());}set[_0x399ae3(0x2cf)](_0x516a2e){const _0x5eb68d=_0x399ae3;_0x516a2e?(this[_0x5eb68d(0x1e6)]&&this[_0x5eb68d(0x1e6)][_0x5eb68d(0x1fc)](),this[_0x5eb68d(0x3aa)]&&this[_0x5eb68d(0x3aa)][_0x5eb68d(0x381)]()):(this['_anchorDot']&&this[_0x5eb68d(0x1e6)]['show'](),this['_textBubble']&&this[_0x5eb68d(0x3aa)][_0x5eb68d(0x1fc)]());}['dispose'](){const _0x26a210=_0x399ae3;for(const _0xd66d76 of this[_0x26a210(0x349)])_0xd66d76[_0x26a210(0x1a4)]();this[_0x26a210(0x3aa)]&&this['_textBubble']['dispose'](),this[_0x26a210(0x1e6)]&&this[_0x26a210(0x1e6)][_0x26a210(0x1a4)](),this[_0x26a210(0x333)]&&this[_0x26a210(0x333)][_0x26a210(0x1a4)](),this[_0x26a210(0x1b3)]&&this['_eventUnsubscribe']();}[_0x399ae3(0x309)](){const _0x2735e2=_0x399ae3;var _0x3892b3;const {_docSkeleton:_0x38ed0a,_document:_0x2f73e3}=this,{color:_0x10c1da,name:_0x195706,ranges:_0x5a670b}=this[_0x2735e2(0x332)],_0x181524=_0x2f73e3['getOffsetConfig'](),{docsLeft:_0x2e4866,docsTop:_0x213923}=_0x181524,_0x347e9b=new T[(_0x2735e2(0x2a5))](_0x181524,_0x38ed0a);for(const {startOffset:_0x28a176,endOffset:_0x416d8c,rangeType:_0x190ce4,segmentId:_0x13e542,segmentPage:_0x2ee311,collapsed:_0x18b53d,isActive:_0x4b4618}of _0x5a670b){const _0x461c00=_0x38ed0a[_0x2735e2(0x1ed)](_0x28a176,!0x0,_0x13e542,_0x2ee311);let _0x3c6918=_0x38ed0a[_0x2735e2(0x1ed)](_0x416d8c,!0x0,_0x13e542,_0x2ee311);if(_0x3c6918==null&&(_0x3c6918=_0x38ed0a[_0x2735e2(0x1ed)](_0x416d8c-0x1,!0x1,_0x13e542,_0x2ee311)),_0x4b4618){const {contentBoxPointGroup:_0x22961f}=_0x347e9b[_0x2735e2(0x351)](_0x3c6918,_0x3c6918);if(_0x22961f['length']===0x0)continue;this[_0x2735e2(0x270)](_0x10c1da,_0x22961f,_0x2e4866,_0x213923,_0x195706),this[_0x2735e2(0x1b3)]=this['_handleHover']();}if(_0x461c00&&_0x3c6918){if(_0x190ce4===a[_0x2735e2(0x2f5)][_0x2735e2(0x2a2)]){const _0x30d1b8=new T[(_0x2735e2(0x407))](_0x181524,_0x38ed0a),{pointGroup:_0x3ba1a9}=(_0x3892b3=_0x30d1b8['getRangePointData'](_0x461c00,_0x3c6918))!=null?_0x3892b3:{};if(_0x3ba1a9==null||_0x3ba1a9[_0x2735e2(0x36f)]===0x0)continue;this[_0x2735e2(0x28f)](_0x10c1da,_0x3ba1a9,_0x2e4866,_0x213923);}else{if(!_0x18b53d){const {borderBoxPointGroup:_0x4e146c}=_0x347e9b['getRangePointData'](_0x461c00,_0x3c6918);if(_0x4e146c['length']===0x0)continue;this[_0x2735e2(0x31f)](_0x10c1da,_0x4e146c,_0x2e4866,_0x213923);}}}}}['_drawAnchor'](_0x70e5c,_0x17d978,_0x3dc73c,_0x526360,_0x45f293){const _0x2dbf15=_0x399ae3,_0x42c6d7=this['_getAnchorBounding'](_0x17d978),{left:_0x1c199d,top:_0x2d38b6,height:_0x14b228}=_0x42c6d7,_0x589233=this['_getScale'](),_0x37f060=Nt/_0x589233,_0x8dc9c2=new C['Rect'](_e+a[_0x2dbf15(0x3c1)](H),{'left':_0x1c199d+_0x3dc73c-_0x37f060,'top':_0x2d38b6+_0x526360,'height':_0x14b228,'width':Dt,'fill':_0x70e5c||C[_0x2dbf15(0x3fd)](a[_0x2dbf15(0x157)][_0x2dbf15(0x188)],0x0),'strokeWidth':_0x37f060,'stroke':Ut,'evented':!0x0});this[_0x2dbf15(0x333)]=_0x8dc9c2,this[_0x2dbf15(0x207)][_0x2dbf15(0x36b)](_0x8dc9c2,T[_0x2dbf15(0x20a)]);const _0x310cc3=new C['Rect'](_e+a['generateRandomId'](H),{'left':_0x1c199d+_0x3dc73c-_0x37f060,'top':_0x2d38b6+_0x526360-he/0x2,'height':he,'width':he,'fill':_0x70e5c||C[_0x2dbf15(0x3fd)](a[_0x2dbf15(0x157)][_0x2dbf15(0x188)],0x0),'strokeWidth':0x0,'stroke':_0x70e5c||C['getColor'](a['COLORS'][_0x2dbf15(0x188)],0x0),'evented':!0x1});this[_0x2dbf15(0x1e6)]=_0x310cc3,this[_0x2dbf15(0x207)][_0x2dbf15(0x36b)](_0x310cc3,T[_0x2dbf15(0x20a)]);const _0x3a2719=new re(_e+a[_0x2dbf15(0x3c1)](H),{'left':_0x1c199d+_0x3dc73c-_0x37f060,'top':_0x2d38b6+_0x526360-X,'text':_0x45f293,'color':_0x70e5c});this['_textBubble']=_0x3a2719,this['_scene'][_0x2dbf15(0x36b)](_0x3a2719,T[_0x2dbf15(0x20a)]),this[_0x2dbf15(0x2cf)]=!0x1;}[_0x399ae3(0x14a)](){const _0x3e2660=_0x399ae3,_0x3c5921=this[_0x3e2660(0x333)]['onPointerEnter$'][_0x3e2660(0x165)](()=>{const _0x13c648=_0x3e2660;this[_0x13c648(0x2cf)]=!0x0;}),_0x2265c6=this['_anchor']['onPointerLeave$'][_0x3e2660(0x165)](()=>{const _0x546896=_0x3e2660;this['_hideTimer']&&clearTimeout(this[_0x546896(0x173)]),this[_0x546896(0x173)]=setTimeout(()=>{const _0x18545b=_0x546896;this[_0x18545b(0x2cf)]=!0x1;},0x7d0);});return()=>{const _0x438b11=_0x3e2660;_0x3c5921[_0x438b11(0x28c)](),_0x2265c6[_0x438b11(0x28c)]();};}[_0x399ae3(0x31f)](_0x563b82,_0x2dde50,_0x172ea5,_0x3d615a){const _0x4932c6=_0x399ae3,_0x419b63=new a['ColorKit'](_0x563b82)[_0x4932c6(0x1ee)](0.2)['toRgbString'](),_0x167f08=new C[(_0x4932c6(0x3ac))](Rt+a['generateRandomId'](H),{'pointsGroup':_0x2dde50,'fill':_0x419b63||C[_0x4932c6(0x3fd)](a[_0x4932c6(0x157)][_0x4932c6(0x188)],0.2),'left':_0x172ea5,'top':_0x3d615a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4932c6(0x349)][_0x4932c6(0x2c6)](_0x167f08),this[_0x4932c6(0x207)]['addObject'](_0x167f08,T[_0x4932c6(0x20a)]);}[_0x399ae3(0x28f)](_0xd31927,_0x17fcd9,_0x5ab3ea,_0x526d0d){const _0x40c8e9=_0x399ae3,_0x3a04da=new a[(_0x40c8e9(0x220))](_0xd31927)[_0x40c8e9(0x1ee)](0.2)[_0x40c8e9(0x193)](),_0x4803fd=new C['RegularPolygon'](bt+a[_0x40c8e9(0x3c1)](H),{'pointsGroup':_0x17fcd9,'fill':_0x3a04da||C[_0x40c8e9(0x3fd)](a[_0x40c8e9(0x157)]['black'],0.2),'left':_0x5ab3ea,'top':_0x526d0d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x40c8e9(0x349)][_0x40c8e9(0x2c6)](_0x4803fd),this[_0x40c8e9(0x207)]['addObject'](_0x4803fd,T['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x2b5b3c){const _0xc8b413=_0x2b5b3c[0x0],_0x583168=_0xc8b413[0x0],_0x9bdaed=_0xc8b413[0x2],{x:_0x510293,y:_0x7443cb}=_0x583168,{x:_0x192ab9,y:_0x14cbc8}=_0x9bdaed;return{'left':_0x510293,'top':_0x7443cb,'width':_0x192ab9-_0x510293,'height':_0x14cbc8-_0x7443cb};}['_getScale'](){const _0xe1af64=_0x399ae3,{scaleX:_0x7f7e08,scaleY:_0x4a6f06}=this[_0xe1af64(0x207)]['getAncestorScale']();return Math[_0xe1af64(0x1a5)](_0x7f7e08,_0x4a6f06);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x1c95f6,_0x5eefc8,_0x42067c,_0x2ffe81)=>{const _0x4c7bbd=_0x399ae3;for(var _0x5c3a8a=_0x2ffe81>0x1?void 0x0:_0x2ffe81?Lt(_0x5eefc8,_0x42067c):_0x5eefc8,_0x3b8e60=_0x1c95f6[_0x4c7bbd(0x36f)]-0x1,_0x36c5b3;_0x3b8e60>=0x0;_0x3b8e60--)(_0x36c5b3=_0x1c95f6[_0x3b8e60])&&(_0x5c3a8a=_0x36c5b3(_0x5c3a8a)||_0x5c3a8a);return _0x5c3a8a;},q=(_0x20c0b6,_0x212067)=>(_0x27e27f,_0x56c6a2)=>_0x212067(_0x27e27f,_0x56c6a2,_0x20c0b6);let Ee=class extends a[_0x399ae3(0x2df)]{constructor(_0x5f3d9f,_0x158024,_0x15b75e,_0x151fbe,_0x54cb9e){const _0x4946ef=_0x399ae3;super(),_(this,_0x4946ef(0x19d),[]),_(this,_0x4946ef(0x24c),[]),(this['_context']=_0x5f3d9f,this[_0x4946ef(0x27e)]=_0x158024,this['_collabCursorController']=_0x15b75e,this[_0x4946ef(0x328)]=_0x151fbe,this[_0x4946ef(0x16d)]=_0x54cb9e,this[_0x4946ef(0x15a)]());}[_0x399ae3(0x15a)](){const _0x531a5f=_0x399ae3,_0x40e7ff=this[_0x531a5f(0x2d2)][_0x531a5f(0x331)],_0x51f304=this[_0x531a5f(0x27e)];this[_0x531a5f(0x389)](I[_0x531a5f(0x3d9)]([this['_collabCursorController'][_0x531a5f(0x14c)](_0x40e7ff),this[_0x531a5f(0x16d)]['currentTheme$']])[_0x531a5f(0x212)]($[_0x531a5f(0x248)](([_0x499db0,_0x2ee7cc])=>({'skeleton':_0x51f304['getSkeleton'](),'cursors':[..._0x499db0['values']()][_0x531a5f(0x26d)](_0x4e581d=>({..._0x4e581d,'color':this['_themeService']['getColorFromTheme'](_0x4e581d[_0x531a5f(0x3ba)])}))})))[_0x531a5f(0x2e6)](_0x20d4c9=>{const _0x1d3453=_0x531a5f;if(this[_0x1d3453(0x1b7)](),_0x20d4c9){const {skeleton:_0x553cd3,cursors:_0x530f53}=_0x20d4c9;this['_updateCollabCursors'](_0x553cd3,_0x530f53);}})),this[_0x531a5f(0x384)](),this[_0x531a5f(0x3e7)]();}[_0x399ae3(0x144)](_0x528e5d,_0x36b9f6){const _0x155344=_0x399ae3,{scene:_0x576ffc,mainComponent:_0x19927c}=this[_0x155344(0x2d2)],_0xa6e1bc=_0x36b9f6[_0x155344(0x248)](_0x1f58ff=>new Le(_0x1f58ff,_0x576ffc,_0x528e5d,_0x19927c));this[_0x155344(0x19d)]=_0xa6e1bc,this[_0x155344(0x24c)]=_0x36b9f6;}['_refreshCollabCursors'](){const _0x881eb4=_0x399ae3;this[_0x881eb4(0x1b7)]();const {scene:_0x28200a,mainComponent:_0x35b1b1}=this[_0x881eb4(0x2d2)],_0x46a8e9=this['_docSkeletonManagerService'][_0x881eb4(0x153)](),_0x167fc9=this['_cursors'][_0x881eb4(0x248)](_0x3f829b=>new Le(_0x3f829b,_0x28200a,_0x46a8e9,_0x35b1b1));this['_cursorShapes']=_0x167fc9;}[_0x399ae3(0x1b7)](){const _0x45bf18=_0x399ae3;this[_0x45bf18(0x19d)][_0x45bf18(0x263)](_0x420b53=>_0x420b53[_0x45bf18(0x1a4)]()),this['_cursorShapes']=[];}[_0x399ae3(0x3e7)](){const _0x1d75ec=_0x399ae3,_0x955bbc=[T[_0x1d75ec(0x276)]['id']];this[_0x1d75ec(0x389)](this['_commandService']['onCommandExecuted'](_0x3abaa7=>{const _0x48935c=_0x1d75ec;_0x955bbc[_0x48935c(0x141)](_0x3abaa7['id'])&&_0x3abaa7[_0x48935c(0x1fd)][_0x48935c(0x331)]===this[_0x48935c(0x2d2)]['unitId']&&this[_0x48935c(0x275)]();}));}[_0x399ae3(0x384)](){const _0x410c77=_0x399ae3;this[_0x410c77(0x389)](a['fromEventSubject'](this[_0x410c77(0x2d2)]['engine'][_0x410c77(0x2fe)])[_0x410c77(0x212)]($[_0x410c77(0x3e2)](_0x5dda49=>_0x5dda49[_0x410c77(0x1aa)]===C[_0x410c77(0x1c6)][_0x410c77(0x343)]),$[_0x410c77(0x14b)](0x10))[_0x410c77(0x2e6)](()=>{const _0xa69e86=_0x410c77;this[_0xa69e86(0x275)]();}));}};Ee=Mt([q(0x1,a['Inject'](V[_0x399ae3(0x191)])),q(0x2,a[_0x399ae3(0x166)](F)),q(0x3,a[_0x399ae3(0x339)]),q(0x4,a[_0x399ae3(0x166)](a[_0x399ae3(0x35e)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x399ae3(0x264)]{constructor(_0x1363d3,_0x213e0a){const _0x3ce15f=_0x399ae3;super(_0x1363d3,_0x213e0a),_(this,_0x3ce15f(0x1ec)),_(this,_0x3ce15f(0x2c2),!0x1),_(this,_0x3ce15f(0x13d)),_(this,'_name',''),_(this,_0x3ce15f(0x3c3),_0x3ce15f(0x1a6)),_(this,_0x3ce15f(0x29a)),(_0x213e0a&&this[_0x3ce15f(0x203)](_0x213e0a),this[_0x3ce15f(0x168)][_0x3ce15f(0x165)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x3ce15f(0x3b2)][_0x3ce15f(0x165)](()=>this[_0x3ce15f(0x203)]({'hovered':!0x1})));}['setShapeProps'](_0xb91f7f){const _0xf67661=_0x399ae3;var _0x3a0345,_0x49962f,_0x40c2f7,_0x404175,_0x1c2627,_0x16c278;this[_0xf67661(0x1ec)]=(_0x3a0345=_0xb91f7f['color'])!=null?_0x3a0345:this['_color'],this['_hovered']=(_0x49962f=_0xb91f7f['hovered'])!=null?_0x49962f:this[_0xf67661(0x2c2)],this[_0xf67661(0x13d)]=(_0x40c2f7=_0xb91f7f['range'])!=null?_0x40c2f7:this['_range'],this[_0xf67661(0x2e5)]=(_0x404175=_0xb91f7f['name'])!=null?_0x404175:this[_0xf67661(0x2e5)],this[_0xf67661(0x3c3)]=(_0x1c2627=_0xb91f7f['labelPosition'])!=null?_0x1c2627:this[_0xf67661(0x3c3)],this[_0xf67661(0x29a)]=(_0x16c278=_0xb91f7f[_0xf67661(0x334)])!=null?_0x16c278:this[_0xf67661(0x29a)],this[_0xf67661(0x24f)]({'width':_0xb91f7f['width'],'height':_0xb91f7f[_0xf67661(0x1cb)]});}[_0x399ae3(0x25c)](_0x4af12e){const _0x43eb09=_0x399ae3,{row:_0x3d0f35,column:_0x1667a5}=_0x4af12e;if(_0x3d0f35>=this['_range'][_0x43eb09(0x330)]&&_0x3d0f35<=this[_0x43eb09(0x13d)][_0x43eb09(0x3e1)]&&_0x1667a5>=this[_0x43eb09(0x13d)][_0x43eb09(0x350)]&&_0x1667a5<=this[_0x43eb09(0x13d)][_0x43eb09(0x3cf)]){this[_0x43eb09(0x203)]({'hovered':!0x0});return;}this[_0x43eb09(0x203)]({'hovered':!0x1});}[_0x399ae3(0x29f)](_0x1941eb){return!0x1;}['_draw'](_0x10135e){const _0x23e552=_0x399ae3;C[_0x23e552(0x149)][_0x23e552(0x1ab)](_0x10135e,{'width':this[_0x23e552(0x369)],'height':this[_0x23e552(0x1cb)],'strokeWidth':Pt,'stroke':this[_0x23e552(0x1ec)],'evented':!0x1,'fill':this[_0x23e552(0x29a)]}),this[_0x23e552(0x2c2)]&&(_0x10135e[_0x23e552(0x244)](),_0x10135e[_0x23e552(0x3d0)](0x1,0x0,0x0,0x1,this[_0x23e552(0x369)],this['_labelPosition']===_0x23e552(0x2af)?0x0:-X),re[_0x23e552(0x1ab)](_0x10135e,{'text':this['_name'],'color':this[_0x23e552(0x1ec)]}),_0x10135e['restore']());}}var wt=Object[_0x399ae3(0x3f2)],yt=(_0x4148cf,_0x776c56,_0x38e0a9,_0x134f0c)=>{for(var _0x31f704=_0x134f0c>0x1?void 0x0:_0x134f0c?wt(_0x776c56,_0x38e0a9):_0x776c56,_0x42d48f=_0x4148cf['length']-0x1,_0x2a1574;_0x42d48f>=0x0;_0x42d48f--)(_0x2a1574=_0x4148cf[_0x42d48f])&&(_0x31f704=_0x2a1574(_0x31f704)||_0x31f704);return _0x31f704;},ue=(_0x2b0912,_0x1e9d5e)=>(_0x47f8ca,_0x29d84b)=>_0x1e9d5e(_0x47f8ca,_0x29d84b,_0x2b0912);const $t=0x1389;let Ce=class extends a[_0x399ae3(0x2df)]{constructor(_0x489ba7,_0x4394e6,_0x24b295,_0x359acb){const _0x51dacb=_0x399ae3;super(),_(this,_0x51dacb(0x24c),new Set()),_(this,_0x51dacb(0x36d),null),(this[_0x51dacb(0x2d2)]=_0x489ba7,this[_0x51dacb(0x367)]=_0x4394e6,this[_0x51dacb(0x31c)]=_0x24b295,this[_0x51dacb(0x16d)]=_0x359acb,this[_0x51dacb(0x15a)]());}['_init'](){const _0x556002=_0x399ae3;this[_0x556002(0x367)]['currentSkeleton$']['pipe']($[_0x556002(0x1dc)](this['dispose$']),$[_0x556002(0x3fc)](_0x2ed33f=>{const _0x1a1750=_0x556002;if(_0x2ed33f){const _0x1dcaa4=_0x2ed33f['sheetId'];return I['combineLatest'](this[_0x1a1750(0x31c)][_0x1a1750(0x14c)](this['_context']['unitId']),this['_themeService'][_0x1a1750(0x250)])['pipe']($[_0x1a1750(0x248)](([_0x20271e,_0x329f92])=>{const _0x55cab4=_0x1a1750,_0x3be667=new Map();return _0x20271e[_0x55cab4(0x263)]((_0x150320,_0x17c16a)=>{const _0x356b10=_0x55cab4;if(_0x150320['sheetID']===_0x1dcaa4){const _0x1bd7d6={..._0x150320};_0x1bd7d6[_0x356b10(0x3ba)]=this[_0x356b10(0x16d)][_0x356b10(0x260)](_0x150320[_0x356b10(0x3ba)]),_0x3be667[_0x356b10(0x408)](_0x17c16a,_0x1bd7d6);}}),{'skeleton':_0x2ed33f,'cursors':_0x3be667};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x556002(0x2e6)](({skeleton:_0x54f74b,cursors:_0x169e1e})=>{const _0x33a873=_0x556002;this[_0x33a873(0x1b7)](),_0x54f74b&&this[_0x33a873(0x144)](_0x54f74b,_0x169e1e);}),this[_0x556002(0x367)][_0x556002(0x3ca)][_0x556002(0x2e6)](_0x1bc578=>{const _0xf0ece9=_0x556002;if(_0x1bc578==null)return;const {skeleton:_0x218aed}=_0x1bc578,{scene:_0x5db6f5}=this[_0xf0ece9(0x2d2)];_0x5db6f5[_0xf0ece9(0x394)][_0xf0ece9(0x165)](a[_0xf0ece9(0x37f)](_0x4716d2=>{const _0x3700a8=_0xf0ece9;var _0x5414da,_0x51db35;const {offsetX:_0x387b81,offsetY:_0xfd8491}=_0x4716d2,{x:_0x2bdcac,y:_0x4d72e6}=_0x5db6f5['getRelativeToViewportCoord'](C['Vector2'][_0x3700a8(0x273)]([_0x387b81,_0xfd8491])),{scaleX:_0x5daeb9,scaleY:_0x17493e}=_0x5db6f5[_0x3700a8(0x281)](),_0x1e68ce=_0x5db6f5[_0x3700a8(0x2aa)](C[_0x3700a8(0x3c5)][_0x3700a8(0x34b)]),_0x5ec2e6=_0x5db6f5[_0x3700a8(0x1d8)](C['Vector2'][_0x3700a8(0x273)]([_0x2bdcac,_0x4d72e6]),_0x1e68ce),_0x4de3d0=_0x218aed[_0x3700a8(0x2bb)](_0x387b81,_0xfd8491,_0x5daeb9,_0x17493e,_0x5ec2e6);((_0x5414da=this[_0x3700a8(0x36d)])==null?void 0x0:_0x5414da[_0x3700a8(0x228)])===_0x4de3d0[_0x3700a8(0x228)]&&((_0x51db35=this['_lastPointer'])==null?void 0x0:_0x51db35['row'])===_0x4de3d0[_0x3700a8(0x2c5)]||this[_0x3700a8(0x24c)]['forEach'](_0x4a09c8=>{_0x4a09c8['onMouseMove'](_0x4de3d0);});},0x64));});}[_0x399ae3(0x144)](_0x3fa987,_0x487445){const _0x336c04=_0x399ae3;var _0x49678e;const _0x40de02=(_0x49678e=this['_sheetSkeletonManagerService'][_0x336c04(0x3fb)]())==null?void 0x0:_0x49678e[_0x336c04(0x184)];if(!_0x40de02)return;const _0xb8acaa=this['_getSheetObject']();if(!_0xb8acaa)return;this[_0x336c04(0x24c)][_0x336c04(0x263)](_0x54a7d4=>{const _0x55f063=_0x336c04;_0x54a7d4[_0x55f063(0x32e)]();});const {scene:_0x4b4826}=_0xb8acaa,_0x52ea54=xt(Array[_0x336c04(0x2b0)](_0x487445[_0x336c04(0x375)]()))[_0x336c04(0x248)](_0x5402ec=>{const _0x18a78d=_0x336c04,{color:_0x4c0f76,range:_0x28c8c0,name:_0x1bfdf1,selection:_0x1ce3c9,sheetID:_0x3f3f48}=_0x5402ec,{startColumn:_0xa0873,startRow:_0x3f3e1b,endColumn:_0x5754d9,endRow:_0x2dd12c}=_0x28c8c0,_0x2c8bb3=J[_0x18a78d(0x195)](_0x3f3e1b,_0xa0873,_0x4b4826,_0x40de02),_0x56448e=J[_0x18a78d(0x195)](_0x2dd12c,_0x5754d9,_0x4b4826,_0x40de02),{columnHeaderHeightAndMarginTop:_0x48d006}=_0x40de02,{startX:_0x154579,startY:_0x405066}=_0x2c8bb3,{endX:_0x5664f9,endY:_0x51fb7b}=_0x56448e,_0x4a86df=_0x5664f9-_0x154579,_0x5d6bfb=_0x51fb7b-_0x405066,_0x5961a3={'labelPosition':_0x405066-_0x48d006>=X?_0x18a78d(0x1a6):'bottom','sheetID':_0x3f3f48,'range':_0x28c8c0,'color':_0x4c0f76,'name':_0x1bfdf1,'selection':_0x1ce3c9,'left':_0x154579,'top':_0x405066,'width':_0x4a86df,'height':_0x5d6bfb,'evented':!0x1,'zIndex':$t};return new je(_0x1bfdf1,_0x5961a3);});_0x4b4826[_0x336c04(0x3d5)](_0x52ea54,At),this['_cursors']=new Set(_0x52ea54);}[_0x399ae3(0x1b7)](){const _0x21485a=_0x399ae3;var _0x2e4e12;(_0x2e4e12=this[_0x21485a(0x24c)])==null||_0x2e4e12[_0x21485a(0x263)](_0x4465a4=>_0x4465a4[_0x21485a(0x1a4)]());}[_0x399ae3(0x1a3)](){const _0x39d3a5=_0x399ae3;return J['getSheetObject'](this[_0x39d3a5(0x2d2)][_0x39d3a5(0x33a)],this[_0x39d3a5(0x2d2)]);}};Ce=yt([ue(0x1,a[_0x399ae3(0x166)](J[_0x399ae3(0x2ac)])),ue(0x2,a[_0x399ae3(0x166)](F)),ue(0x3,a[_0x399ae3(0x166)](a['ThemeService']))],Ce);function xt(_0x3cc5a1){const _0xbab262=_0x399ae3,_0x103c8c=new Map();return _0x3cc5a1['forEach'](_0x2964a9=>{const _0x5e3daa=_0x4320;if(_0x103c8c['has'](_0x2964a9[_0x5e3daa(0x282)])){const _0x267e0d=_0x103c8c[_0x5e3daa(0x1c4)](_0x2964a9[_0x5e3daa(0x282)]);_0x267e0d['name']+=',\x20'+_0x2964a9[_0x5e3daa(0x360)];}else _0x103c8c['set'](_0x2964a9[_0x5e3daa(0x282)],_0x2964a9);}),Array[_0xbab262(0x2b0)](_0x103c8c[_0xbab262(0x375)]());}var Bt=Object[_0x399ae3(0x3f2)],Ft=(_0x4aa912,_0x1cfda0,_0x110434,_0x4c9de3)=>{const _0x23d1d2=_0x399ae3;for(var _0x5e0f1c=_0x4c9de3>0x1?void 0x0:_0x4c9de3?Bt(_0x1cfda0,_0x110434):_0x1cfda0,_0x3592c2=_0x4aa912[_0x23d1d2(0x36f)]-0x1,_0x3a14a0;_0x3592c2>=0x0;_0x3592c2--)(_0x3a14a0=_0x4aa912[_0x3592c2])&&(_0x5e0f1c=_0x3a14a0(_0x5e0f1c)||_0x5e0f1c);return _0x5e0f1c;},y=(_0x4b35ae,_0x15edd3)=>(_0xec2908,_0x50ae98)=>_0x15edd3(_0xec2908,_0x50ae98,_0x4b35ae);let Z=class extends a[_0x399ae3(0x338)]{constructor(_0x21aada,_0x2f5bef,_0x1702d3,_0x2308bd,_0xb3ba7f,_0x2c1db6){const _0x19cd3c=_0x399ae3;super(),this['_beforeCloseService']=_0x21aada,this[_0x19cd3c(0x3ea)]=_0x2f5bef,this[_0x19cd3c(0x382)]=_0x1702d3,this[_0x19cd3c(0x2c3)]=_0x2308bd,this[_0x19cd3c(0x2ed)]=_0xb3ba7f,this['_localeService']=_0x2c1db6,this['_setupBeforeClosingHandler'](),this[_0x19cd3c(0x1b0)]();}[_0x399ae3(0x1ba)](){const _0x2cf664=_0x399ae3;this[_0x2cf664(0x389)](this[_0x2cf664(0x1c2)]['registerBeforeClose'](()=>{const _0x3f855b=_0x2cf664;if(this[_0x3f855b(0x3ea)][_0x3f855b(0x2c8)][_0x3f855b(0x37e)])return this[_0x3f855b(0x210)]['t'](_0x3f855b(0x13b));}));}[_0x399ae3(0x1b0)](){const _0x191935=_0x399ae3;this[_0x191935(0x389)](this[_0x191935(0x382)][_0x191935(0x288)][_0x191935(0x2e6)](_0x519ee5=>{const _0x47a0f0=_0x191935;_0x519ee5['id']===u[_0x47a0f0(0x388)][_0x47a0f0(0x3bb)]&&this[_0x47a0f0(0x2c3)][_0x47a0f0(0x381)]({'type':p[_0x47a0f0(0x29b)][_0x47a0f0(0x17d)],'content':this[_0x47a0f0(0x210)]['t'](_0x47a0f0(0x1c0))}),_0x519ee5['id']===u[_0x47a0f0(0x388)][_0x47a0f0(0x139)]&&this[_0x47a0f0(0x2c3)][_0x47a0f0(0x381)]({'type':p[_0x47a0f0(0x29b)]['Warning'],'content':this[_0x47a0f0(0x210)]['t']('collaboration.closeRoom')}),_0x519ee5['id']===u[_0x47a0f0(0x388)][_0x47a0f0(0x3a6)]&&this[_0x47a0f0(0x2ed)]['show']({'title':this[_0x47a0f0(0x210)]['t'](_0x47a0f0(0x1c8)),'content':this[_0x47a0f0(0x210)]['t']('permission.content'),'type':_0x47a0f0(0x237),'duration':0x0}),_0x519ee5['id']===u[_0x47a0f0(0x388)][_0x47a0f0(0x269)]&&this['_messageService'][_0x47a0f0(0x381)]({'type':p[_0x47a0f0(0x29b)][_0x47a0f0(0x24b)],'content':this['_localeService']['t'](_0x47a0f0(0x154))+'('+_0x519ee5['data']+')'}),_0x519ee5['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0x47a0f0(0x2c3)][_0x47a0f0(0x381)]({'type':p[_0x47a0f0(0x29b)][_0x47a0f0(0x17d)],'content':this['_localeService']['t'](_0x519ee5[_0x47a0f0(0x3b6)]||'')}),_0x519ee5['id']===u[_0x47a0f0(0x388)][_0x47a0f0(0x402)]&&this[_0x47a0f0(0x2c3)][_0x47a0f0(0x381)]({'type':p[_0x47a0f0(0x29b)]['Warning'],'content':this['_localeService']['t'](_0x47a0f0(0x256))}),_0x519ee5['id']===u[_0x47a0f0(0x388)][_0x47a0f0(0x385)]&&this['_messageService'][_0x47a0f0(0x381)]({'type':p['MessageType'][_0x47a0f0(0x24b)],'content':this[_0x47a0f0(0x210)]['t'](_0x47a0f0(0x30a))}),_0x519ee5['id']===u[_0x47a0f0(0x388)][_0x47a0f0(0x353)]&&this[_0x47a0f0(0x2c3)][_0x47a0f0(0x381)]({'type':p[_0x47a0f0(0x29b)][_0x47a0f0(0x24b)],'content':this[_0x47a0f0(0x210)]['t'](_0x47a0f0(0x163))});}));}};Z=Ft([y(0x0,O['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x399ae3(0x166)](u['CollaborationUIEventService'])),y(0x3,O[_0x399ae3(0x190)]),y(0x4,O[_0x399ae3(0x1ac)]),y(0x5,a[_0x399ae3(0x166)](a[_0x399ae3(0x266)]))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x1e2906,_0x8fea02,_0x5098da,_0x2a2bfc)=>{const _0x4c4b6a=_0x399ae3;for(var _0x70493e=_0x2a2bfc>0x1?void 0x0:_0x2a2bfc?jt(_0x8fea02,_0x5098da):_0x8fea02,_0x1fdb77=_0x1e2906[_0x4c4b6a(0x36f)]-0x1,_0x1ec9d6;_0x1fdb77>=0x0;_0x1fdb77--)(_0x1ec9d6=_0x1e2906[_0x1fdb77])&&(_0x70493e=_0x1ec9d6(_0x70493e)||_0x70493e);return _0x70493e;},z=(_0x3d706d,_0x576367)=>(_0xe3b9f0,_0x1d2a55)=>_0x576367(_0xe3b9f0,_0x1d2a55,_0x3d706d);let Q=class extends a[_0x399ae3(0x338)]{constructor(_0x584c56,_0x4ab798,_0x2a3e34,_0x27de94){const _0x31dd3c=_0x399ae3;super(),_(this,'_memberID'),(this[_0x31dd3c(0x1ff)]=_0x584c56,this['_httpService']=_0x4ab798,this[_0x31dd3c(0x2e2)]=_0x2a3e34,this[_0x31dd3c(0x1f0)]=_0x27de94,this[_0x31dd3c(0x15a)]());}['_init'](){const _0x4c01e2=_0x399ae3;this[_0x4c01e2(0x324)](),this['_initUnhandledRejectionListener'](),this['_monkeyPatchLogService'](),this[_0x4c01e2(0x280)]();}[_0x399ae3(0x280)](){const _0x15bd14=_0x399ae3;this[_0x15bd14(0x389)](this[_0x15bd14(0x1f0)]['socket$'][_0x15bd14(0x2e6)](_0x185a29=>{const _0x332fd2=_0x15bd14;this['_memberID']=_0x185a29==null?void 0x0:_0x185a29[_0x332fd2(0x33e)];}));}['_initWindowErrorListener'](){const _0x522e0e=_0x58744b=>{const _0x2c12af=_0x4320;var _0x521918;this['_uploadLog'](_0x2c12af(0x237),_0x2c12af(0x2ab)+_0x58744b['message']+_0x2c12af(0x311)+_0x58744b[_0x2c12af(0x1a2)]+':'+_0x58744b[_0x2c12af(0x17c)]+':'+_0x58744b['colno']+'\x0a'+(((_0x521918=_0x58744b[_0x2c12af(0x237)])==null?void 0x0:_0x521918['stack'])||''));};window['addEventListener']('error',_0x522e0e),this['disposeWithMe'](()=>{const _0x232589=_0x4320;window[_0x232589(0x3db)](_0x232589(0x237),_0x522e0e);});}[_0x399ae3(0x378)](){const _0xc0b7c5=_0x399ae3,_0x16e0a5=_0x455d9a=>{const _0x1bca42=_0x4320;this[_0x1bca42(0x342)]('error',_0x1bca42(0x2e1)+_0x455d9a[_0x1bca42(0x197)]);};window['addEventListener'](_0xc0b7c5(0x1a9),_0x16e0a5),this['disposeWithMe'](()=>{const _0x43bcf3=_0xc0b7c5;window['removeEventListener'](_0x43bcf3(0x1a9),_0x16e0a5);});}['_monkeyPatchLogService'](){const _0x517788=_0x399ae3,_0x85e15a=this[_0x517788(0x2e2)]['error'][_0x517788(0x1ef)](this[_0x517788(0x2e2)]);this['_logService'][_0x517788(0x237)]=(..._0x1723cb)=>{const _0x2a8212=_0x517788,_0x2bbf8a=_0x1723cb[_0x2a8212(0x248)](_0x202e11=>_0x202e11 instanceof Error?_0x202e11['message']+'\x0a'+_0x202e11[_0x2a8212(0x22b)]:String(_0x202e11))[_0x2a8212(0x364)]('\x20');this[_0x2a8212(0x342)](_0x2a8212(0x237),_0x2a8212(0x405)+_0x2bbf8a),_0x85e15a(..._0x1723cb);},this[_0x517788(0x389)](()=>{const _0x5a712d=_0x517788;this[_0x5a712d(0x2e2)]['error']=_0x85e15a;});}[_0x399ae3(0x342)](_0x82f8da,_0x200daa){const _0x5f4d90=_0x399ae3;try{const _0x3c4d7c={'userId':this['_memberID'],'logLabel':_0x82f8da,'content':_0x200daa};this[_0x5f4d90(0x17a)]['post']('/universer-api/frontend/logs',{'body':_0x3c4d7c})[_0x5f4d90(0x1d5)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x399ae3(0x166)](a[_0x399ae3(0x1df)])),z(0x1,a[_0x399ae3(0x166)](x[_0x399ae3(0x308)])),z(0x2,a['ILogService']),z(0x3,a['Inject'](u['CollaborationSessionService']))],Q);const Yt=_0x399ae3(0x2d5),Me={};var Ht=Object[_0x399ae3(0x3f2)],Wt=(_0x1948ec,_0x3a01ec,_0x45c9ac,_0xec5154)=>{const _0x222577=_0x399ae3;for(var _0x4a74fa=_0xec5154>0x1?void 0x0:_0xec5154?Ht(_0x3a01ec,_0x45c9ac):_0x3a01ec,_0x1740b5=_0x1948ec[_0x222577(0x36f)]-0x1,_0x4ed821;_0x1740b5>=0x0;_0x1740b5--)(_0x4ed821=_0x1948ec[_0x1740b5])&&(_0x4a74fa=_0x4ed821(_0x4a74fa)||_0x4a74fa);return _0x4a74fa;},Ae=(_0x526b74,_0x22990b)=>(_0x3256b4,_0x1dc37a)=>_0x22990b(_0x3256b4,_0x1dc37a,_0x526b74);let ee=class{constructor(_0x365f25,_0x4b3736){const _0x4f2ed7=_0x399ae3;this[_0x4f2ed7(0x1b2)]=_0x365f25,this[_0x4f2ed7(0x37a)]=_0x4b3736;}[_0x399ae3(0x320)](_0x30b403){this['_transformUndoRedoStack'](_0x30b403),this['_transformPreviousActiveRange'](_0x30b403);}[_0x399ae3(0x1b9)](_0x3d636a){const _0x2114fa=_0x399ae3,{unitID:_0x316dff}=_0x3d636a,_0x5864fc=this['_renderManagerService'][_0x2114fa(0x15d)](_0x316dff)[_0x2114fa(0x370)](T[_0x2114fa(0x283)]),{redoCache:_0x258139}=_0x5864fc['getUndoRedoMutationParamsCache']();if(_0x258139[_0x2114fa(0x36f)]===0x0)return _0x3d636a;let _0x5ea18d=a['Tools'][_0x2114fa(0x2b8)](_0x3d636a['mutations'][0x0]);for(let _0x34d160=0x0;_0x34d160<_0x258139[_0x2114fa(0x36f)];_0x34d160++){const _0x56fa76={'id':_0x2114fa(0x35b),'params':{..._0x258139[_0x34d160]}},_0x3a9fae=this[_0x2114fa(0x1b2)][_0x2114fa(0x3c7)](_0x5ea18d,_0x56fa76,!0x1);if(g[_0x2114fa(0x216)](_0x3a9fae))throw _0x3a9fae[_0x2114fa(0x237)];_0x5ea18d=_0x3a9fae[_0x2114fa(0x2f9)];}return{...a['Tools'][_0x2114fa(0x2b8)](_0x3d636a),'mutations':[_0x5ea18d]};}['_transformUndoRedoStack'](_0xeb60f5){const _0x565e41=_0x399ae3,{unitID:_0x4c0d83}=_0xeb60f5,_0x25d3c5=this[_0x565e41(0x37a)]['getRenderById'](_0x4c0d83)[_0x565e41(0x370)](T[_0x565e41(0x283)]),{undoCache:_0x3db1c0,redoCache:_0x5c419c}=_0x25d3c5[_0x565e41(0x355)]();if(_0x3db1c0['length']===0x0||_0x5c419c['length']===0x0)return;const _0x5ef5f9=[],_0x3ab61e=[];let _0x1a53f7=a[_0x565e41(0x3c6)][_0x565e41(0x2b8)](_0xeb60f5[_0x565e41(0x20f)][0x0]),_0x527078=a['Tools']['deepClone'](_0xeb60f5[_0x565e41(0x20f)][0x0]);for(let _0x372a35=_0x3db1c0[_0x565e41(0x36f)]-0x1;_0x372a35>=0x0;_0x372a35--){const _0x3e3388={'id':_0x565e41(0x35b),'params':{..._0x3db1c0[_0x372a35]}},_0x534c21={'id':'doc.mutation.rich-text-editing','params':{..._0x5c419c[_0x372a35]}},_0x38748c=this[_0x565e41(0x1b2)][_0x565e41(0x3c7)](_0x1a53f7,_0x3e3388,!0x1),_0x44e434=this[_0x565e41(0x1b2)]['transformMutation'](_0x527078,_0x534c21,!0x1);if(g['isTransformMutationFailure'](_0x38748c))throw _0x38748c[_0x565e41(0x237)];if(g[_0x565e41(0x216)](_0x44e434))throw _0x44e434[_0x565e41(0x237)];_0x5ef5f9[_0x565e41(0x318)](_0x38748c['m2Prime']['params']),_0x3ab61e[_0x565e41(0x318)](_0x44e434[_0x565e41(0x391)][_0x565e41(0x1fd)]),_0x1a53f7=_0x38748c[_0x565e41(0x2f9)],_0x527078=_0x44e434[_0x565e41(0x2f9)];}_0x25d3c5['setUndoRedoMutationParamsCache']({'undoCache':_0x5ef5f9,'redoCache':_0x3ab61e});}[_0x399ae3(0x3f4)](_0x1fd61b){const _0x2dfa33=_0x399ae3,{unitID:_0xe00709}=_0x1fd61b,_0x393fad=this[_0x2dfa33(0x37a)]['getRenderById'](_0xe00709)[_0x2dfa33(0x370)](T[_0x2dfa33(0x283)]),_0x3232dc=_0x393fad[_0x2dfa33(0x161)]();if(_0x3232dc==null)return;const _0x5792fd=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1fd61b[_0x2dfa33(0x229)],'actions':null,'textRanges':[_0x3232dc]}}],_0x34a92f=this[_0x2dfa33(0x1b2)][_0x2dfa33(0x2f6)](_0x1fd61b,_0x5792fd);if(!g[_0x2dfa33(0x147)](_0x34a92f))throw _0x34a92f['error'];const _0x45fb8b=_0x34a92f[_0x2dfa33(0x391)][0x0]['params']['textRanges'];Array[_0x2dfa33(0x239)](_0x45fb8b)&&_0x45fb8b[_0x2dfa33(0x36f)]&&_0x393fad['setActiveRange'](_0x45fb8b[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C['IRenderManagerService'])],ee);var Vt=Object[_0x399ae3(0x3f2)],Gt=(_0x2a0054,_0x17b6be,_0x9965b7,_0xc2b4c8)=>{const _0x467bf6=_0x399ae3;for(var _0xd135f5=_0xc2b4c8>0x1?void 0x0:_0xc2b4c8?Vt(_0x17b6be,_0x9965b7):_0x17b6be,_0x564f6b=_0x2a0054[_0x467bf6(0x36f)]-0x1,_0x5bd113;_0x564f6b>=0x0;_0x564f6b--)(_0x5bd113=_0x2a0054[_0x564f6b])&&(_0xd135f5=_0x5bd113(_0xd135f5)||_0xd135f5);return _0xd135f5;},Ie=(_0x4a065f,_0x521995)=>(_0x2023bf,_0x41f024)=>_0x521995(_0x2023bf,_0x41f024,_0x4a065f);function _0x4320(_0x44a42c,_0x4cb15b){_0x44a42c=_0x44a42c-0x138;const _0x8e4a61=_0x8e4a();let _0x432047=_0x8e4a61[_0x44a42c];return _0x432047;}let te=class{constructor(_0x450c6e,_0xe98e7f,_0x4f7839){const _0x5e01d0=_0x399ae3;this[_0x5e01d0(0x1ff)]=_0x450c6e,this['_transformService']=_0xe98e7f,this[_0x5e01d0(0x1fe)]=_0x4f7839;}['transformStateCache'](_0x1b38b6){const _0xe07cae=_0x399ae3;this[_0xe07cae(0x214)](_0x1b38b6);}['transformRemoteChangeset'](_0x138c75){const _0x18625c=_0x399ae3,{unitID:_0x7cb0d7}=_0x138c75,{collaboration:_0x463707}=this[_0x18625c(0x1fe)]['getStateCache'](_0x7cb0d7);if(_0x463707[_0x18625c(0x36f)]===0x0)return _0x138c75;let _0x5c0a9b=a[_0x18625c(0x3c6)][_0x18625c(0x2b8)](_0x138c75[_0x18625c(0x20f)][0x0]);for(let _0x2398a4=0x0;_0x2398a4<_0x463707[_0x18625c(0x36f)];_0x2398a4++){const _0x46b3ce={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x463707[_0x2398a4][_0x18625c(0x331)],..._0x463707[_0x2398a4][_0x18625c(0x13f)]}},_0x485b94=this['_transformService'][_0x18625c(0x3c7)](_0x5c0a9b,_0x46b3ce,!0x1);if(g[_0x18625c(0x216)](_0x485b94))throw _0x485b94['error'];_0x5c0a9b=_0x485b94[_0x18625c(0x2f9)];}return{...a[_0x18625c(0x3c6)]['deepClone'](_0x138c75),'mutations':[_0x5c0a9b]};}[_0x399ae3(0x214)](_0x3b26f5){const _0x318088=_0x399ae3,{unitID:_0x20e18}=_0x3b26f5,{history:_0x3ce496,collaboration:_0x49c47c}=this[_0x318088(0x1fe)][_0x318088(0x377)](_0x20e18);if(_0x3ce496[_0x318088(0x36f)]===0x0&&_0x49c47c['length']===0x0)return;const _0x486de3=[],_0x57133d=[];let _0x165d9b=a[_0x318088(0x3c6)][_0x318088(0x2b8)](_0x3b26f5['mutations'][0x0]),_0x5f004b=a[_0x318088(0x3c6)][_0x318088(0x2b8)](_0x3b26f5[_0x318088(0x20f)][0x0]);for(let _0x3257ed=_0x3ce496[_0x318088(0x36f)]-0x1;_0x3257ed>=0x0;_0x3257ed--){const _0x1018af={'id':_0x318088(0x35b),'params':{'unitId':_0x3ce496[_0x3257ed][_0x318088(0x331)],..._0x3ce496[_0x3257ed][_0x318088(0x234)]}},_0x59a7a6={'id':_0x318088(0x35b),'params':{'unitId':_0x3ce496[_0x3257ed][_0x318088(0x331)],..._0x3ce496[_0x3257ed][_0x318088(0x13f)]}},_0x1bcb9=this['_transformService'][_0x318088(0x3c7)](_0x165d9b,_0x1018af,!0x1),_0x5e23b8=this[_0x318088(0x1b2)][_0x318088(0x3c7)](_0x5f004b,_0x59a7a6,!0x1);if(g['isTransformMutationFailure'](_0x1bcb9))throw _0x1bcb9['error'];if(g[_0x318088(0x216)](_0x5e23b8))throw _0x5e23b8[_0x318088(0x237)];_0x486de3['unshift']({..._0x3ce496[_0x3257ed],'undoState':_0x1bcb9[_0x318088(0x391)][_0x318088(0x1fd)],'redoState':_0x5e23b8[_0x318088(0x391)]['params']}),_0x165d9b=_0x1bcb9['m1Prime'],_0x5f004b=_0x5e23b8['m1Prime'];}_0x165d9b=a[_0x318088(0x3c6)][_0x318088(0x2b8)](_0x3b26f5[_0x318088(0x20f)][0x0]),_0x5f004b=a[_0x318088(0x3c6)][_0x318088(0x2b8)](_0x3b26f5['mutations'][0x0]);for(let _0x598777=_0x49c47c[_0x318088(0x36f)]-0x1;_0x598777>=0x0;_0x598777--){const _0x3db654={'id':_0x318088(0x35b),'params':{'unitId':_0x49c47c[_0x598777][_0x318088(0x331)],..._0x49c47c[_0x598777][_0x318088(0x234)]}},_0x251c9d={'id':_0x318088(0x35b),'params':{'unitId':_0x49c47c[_0x598777][_0x318088(0x331)],..._0x49c47c[_0x598777][_0x318088(0x13f)]}},_0x38da32=this[_0x318088(0x1b2)]['transformMutation'](_0x165d9b,_0x3db654,!0x1),_0x5b0d10=this[_0x318088(0x1b2)][_0x318088(0x3c7)](_0x5f004b,_0x251c9d,!0x1);if(g['isTransformMutationFailure'](_0x38da32))throw _0x38da32[_0x318088(0x237)];if(g[_0x318088(0x216)](_0x5b0d10))throw _0x5b0d10[_0x318088(0x237)];_0x57133d[_0x318088(0x318)]({..._0x49c47c[_0x598777],'undoState':_0x38da32[_0x318088(0x391)][_0x318088(0x1fd)],'redoState':_0x5b0d10[_0x318088(0x391)]['params']}),_0x165d9b=_0x38da32[_0x318088(0x2f9)],_0x5f004b=_0x5b0d10[_0x318088(0x2f9)];}this[_0x318088(0x1fe)][_0x318088(0x171)](_0x20e18,{'history':_0x486de3,'collaboration':_0x57133d});}};te=Gt([Ie(0x0,a[_0x399ae3(0x166)](a[_0x399ae3(0x1df)])),Ie(0x1,g[_0x399ae3(0x371)]),Ie(0x2,a['Inject'](T[_0x399ae3(0x358)]))],te);var Xt=Object[_0x399ae3(0x3f2)],Kt=(_0x5761da,_0x4e266d,_0x33b96b,_0x4a1766)=>{const _0x123b80=_0x399ae3;for(var _0x49e187=_0x4a1766>0x1?void 0x0:_0x4a1766?Xt(_0x4e266d,_0x33b96b):_0x4e266d,_0x8be55a=_0x5761da[_0x123b80(0x36f)]-0x1,_0xa05e00;_0x8be55a>=0x0;_0x8be55a--)(_0xa05e00=_0x5761da[_0x8be55a])&&(_0x49e187=_0xa05e00(_0x49e187)||_0x49e187);return _0x49e187;},Pe=(_0x49396d,_0x291a3e)=>(_0x4a0dd8,_0x16685a)=>_0x291a3e(_0x4a0dd8,_0x16685a,_0x49396d);let se=class{constructor(_0x120ac5,_0x4b3853){this['_injector']=_0x120ac5,this['_transformService']=_0x4b3853;}[_0x399ae3(0x2a3)](_0x4a1850){const _0x1300f0=_0x399ae3;var _0x76819f;const _0x455d02=this[_0x1300f0(0x1ff)][_0x1300f0(0x1c4)](V[_0x1300f0(0x259)]),_0x3869fd=(_0x76819f=_0x455d02[_0x1300f0(0x31b)]())!=null?_0x76819f:[];if(_0x3869fd['length']===0x0)return;const _0x35f8cd=_0x4a1850[_0x1300f0(0x229)],_0x34a0f5=[{'id':_0x1300f0(0x35b),'params':{'unitId':_0x35f8cd,'actions':null,'textRanges':_0x3869fd}}],_0x18460c=this['_transformService'][_0x1300f0(0x2f6)](_0x4a1850,_0x34a0f5);if(!g[_0x1300f0(0x147)](_0x18460c))throw _0x18460c['error'];const _0x5401ca=_0x18460c['m2Prime'][0x0][_0x1300f0(0x1fd)][_0x1300f0(0x2cd)];Array[_0x1300f0(0x239)](_0x5401ca)&&_0x5401ca['length']&&_0x455d02[_0x1300f0(0x3e3)](_0x5401ca,{'unitId':_0x35f8cd,'subUnitId':_0x35f8cd},!0x1);}};se=Kt([Pe(0x0,a[_0x399ae3(0x166)](a[_0x399ae3(0x1df)])),Pe(0x1,g[_0x399ae3(0x371)])],se);var qt=Object[_0x399ae3(0x3f2)],zt=(_0x4c5448,_0x35d084,_0x3d854e,_0x44bf68)=>{const _0x1012a0=_0x399ae3;for(var _0x5b011f=_0x44bf68>0x1?void 0x0:_0x44bf68?qt(_0x35d084,_0x3d854e):_0x35d084,_0x29f19e=_0x4c5448[_0x1012a0(0x36f)]-0x1,_0x14faf7;_0x29f19e>=0x0;_0x29f19e--)(_0x14faf7=_0x4c5448[_0x29f19e])&&(_0x5b011f=_0x14faf7(_0x5b011f)||_0x5b011f);return _0x5b011f;},N=(_0x5e4db3,_0x37545d)=>(_0x1ff073,_0x3709e7)=>_0x37545d(_0x1ff073,_0x3709e7,_0x5e4db3);let ie=class extends a[_0x399ae3(0x338)]{constructor(_0x395713,_0x481868,_0x2053c5,_0x52e074,_0x4c668c,_0x3df674,_0x56b150,_0x2bc5f6){const _0x28a38f=_0x399ae3;super(),_(this,_0x28a38f(0x312),new I[(_0x28a38f(0x376))](u[_0x28a38f(0x2da)][_0x28a38f(0x2dc)])),(this[_0x28a38f(0x1fe)]=_0x395713,this[_0x28a38f(0x31e)]=_0x481868,this[_0x28a38f(0x1d0)]=_0x2053c5,this[_0x28a38f(0x174)]=_0x52e074,this[_0x28a38f(0x1e3)]=_0x4c668c,this[_0x28a38f(0x16e)]=_0x3df674,this['_messageService']=_0x56b150,this['_localeService']=_0x2bc5f6,this['_initEntityListener']());}[_0x399ae3(0x1b8)](){const _0x51ae28=_0x399ae3;this[_0x51ae28(0x389)](this[_0x51ae28(0x31e)]['entityInit$'][_0x51ae28(0x2e6)](_0xfaf0d5=>{const _0x5362c7=_0x51ae28,_0x3d2477=this['_docStateChangeManagerService'][_0x5362c7(0x34f)][_0x5362c7(0x2e6)](_0x4e1255=>{const _0x15680d=_0x5362c7;if(_0x4e1255==null)return;const {unitId:_0x25c382,redoState:_0x304ca2,commandId:_0x4919b1}=_0x4e1255;if(_0x25c382!==_0xfaf0d5['unitID'])return;const _0x44b339={'id':_0x4919b1,'type':a[_0x15680d(0x227)]['MUTATION'],'params':{'unitId':_0x25c382,'actions':_0x304ca2[_0x15680d(0x35c)],'textRanges':null}};_0xfaf0d5[_0x15680d(0x2ce)](_0x44b339);});if(_0xfaf0d5[_0x5362c7(0x389)](_0x3d2477),_0xfaf0d5 instanceof u[_0x5362c7(0x231)]){const _0x2cb2db={'onTransformIME':_0x2b6164=>this[_0x5362c7(0x1d0)][_0x5362c7(0x320)](_0x2b6164),'onTransformState':_0x3f4e82=>this[_0x5362c7(0x174)]['transformStateCache'](_0x3f4e82),'onTransformSelections':_0x17ccf2=>this[_0x5362c7(0x1e3)][_0x5362c7(0x2a3)](_0x17ccf2),'onSyncEditingCollabCursor':_0x310a0c=>this['_docSyncEditingCollabCursorService'][_0x5362c7(0x3f5)](_0x310a0c),'onTransformRemoteChangesetByIMECache':_0x31c9f6=>this[_0x5362c7(0x1d0)]['transformRemoteChangeset'](_0x31c9f6),'onTransformRemoteChangesetByStateCache':_0x182a68=>this[_0x5362c7(0x174)][_0x5362c7(0x1b9)](_0x182a68)};_0xfaf0d5[_0x5362c7(0x21f)](_0x2cb2db);}}));}};ie=zt([N(0x0,a[_0x399ae3(0x166)](T['DocStateChangeManagerService'])),N(0x1,a[_0x399ae3(0x166)](u[_0x399ae3(0x209)])),N(0x2,a['Inject'](ee)),N(0x3,a[_0x399ae3(0x166)](te)),N(0x4,a[_0x399ae3(0x166)](se)),N(0x5,a['Inject'](be)),N(0x6,O[_0x399ae3(0x190)]),N(0x7,a['Inject'](a['LocaleService']))],ie);var G=(_0x2e0502=>(_0x2e0502[_0x2e0502[_0x399ae3(0x289)]=0x0]=_0x399ae3(0x289),_0x2e0502[_0x2e0502['OK']=0x1]='OK',_0x2e0502[_0x2e0502[_0x399ae3(0x18c)]=0x2]='INTERNAL_ERROR',_0x2e0502[_0x2e0502[_0x399ae3(0x3a6)]=0x3]=_0x399ae3(0x3a6),_0x2e0502[_0x2e0502['NOT_FOUND']=0x4]=_0x399ae3(0x14e),_0x2e0502[_0x2e0502[_0x399ae3(0x2bf)]=0x5]=_0x399ae3(0x2bf),_0x2e0502[_0x2e0502[_0x399ae3(0x240)]=0x6]=_0x399ae3(0x240),_0x2e0502[_0x2e0502[_0x399ae3(0x34e)]=0x7]=_0x399ae3(0x34e),_0x2e0502[_0x2e0502[_0x399ae3(0x380)]=0x8]='TOO_MANY_REQUESTS',_0x2e0502[_0x2e0502[_0x399ae3(0x2ba)]=0x9]=_0x399ae3(0x2ba),_0x2e0502[_0x2e0502[_0x399ae3(0x2d7)]=0xa]=_0x399ae3(0x2d7),_0x2e0502[_0x2e0502[_0x399ae3(0x374)]=0xb]=_0x399ae3(0x374),_0x2e0502[_0x2e0502[_0x399ae3(0x302)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x2e0502[_0x2e0502[_0x399ae3(0x232)]=0xd]=_0x399ae3(0x232),_0x2e0502[_0x2e0502['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x399ae3(0x16b),_0x2e0502[_0x2e0502[_0x399ae3(0x13c)]=0xf]=_0x399ae3(0x13c),_0x2e0502[_0x2e0502[_0x399ae3(0x346)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x2e0502[_0x2e0502[_0x399ae3(0x181)]=0x64]=_0x399ae3(0x181),_0x2e0502[_0x2e0502[_0x399ae3(0x39d)]=0x65]='ERROR_AGAIN',_0x2e0502[_0x2e0502[_0x399ae3(0x2e9)]=0xc9]=_0x399ae3(0x2e9),_0x2e0502[_0x2e0502[_0x399ae3(0x337)]=0xca]=_0x399ae3(0x337),_0x2e0502[_0x2e0502[_0x399ae3(0x39a)]=0x1389]=_0x399ae3(0x39a),_0x2e0502[_0x2e0502[_0x399ae3(0x359)]=0x1771]=_0x399ae3(0x359),_0x2e0502[_0x2e0502[_0x399ae3(0x322)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2e0502[_0x2e0502['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x399ae3(0x254),_0x2e0502[_0x2e0502[_0x399ae3(0x393)]=0x1b59]=_0x399ae3(0x393),_0x2e0502[_0x2e0502[_0x399ae3(0x155)]=0x1b5a]=_0x399ae3(0x155),_0x2e0502[_0x2e0502['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x399ae3(0x26c),_0x2e0502[_0x2e0502[_0x399ae3(0x39c)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x2e0502[_0x2e0502[_0x399ae3(0x3ce)]=0x1b5d]=_0x399ae3(0x3ce),_0x2e0502[_0x2e0502[_0x399ae3(0x23e)]=0x1f41]=_0x399ae3(0x23e),_0x2e0502[_0x2e0502[_0x399ae3(0x3a5)]=0x2329]=_0x399ae3(0x3a5),_0x2e0502[_0x2e0502[_0x399ae3(0x185)]=0x232a]=_0x399ae3(0x185),_0x2e0502[_0x2e0502[_0x399ae3(0x18a)]=0x232b]=_0x399ae3(0x18a),_0x2e0502[_0x2e0502['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x399ae3(0x21e),_0x2e0502[_0x2e0502['LICENSE_DISTRO_REJECTED']=0x232d]=_0x399ae3(0x2fd),_0x2e0502[_0x2e0502[_0x399ae3(0x3bf)]=0x2711]=_0x399ae3(0x3bf),_0x2e0502[_0x2e0502[_0x399ae3(0x301)]=0x2712]=_0x399ae3(0x301),_0x2e0502[_0x2e0502[_0x399ae3(0x313)]=0x2713]=_0x399ae3(0x313),_0x2e0502[_0x2e0502[_0x399ae3(0x25d)]=0x2714]=_0x399ae3(0x25d),_0x2e0502[_0x2e0502[_0x399ae3(0x3f7)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x2e0502[_0x2e0502[_0x399ae3(0x310)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x2e0502[_0x2e0502[_0x399ae3(0x3bd)]=0x271c]=_0x399ae3(0x3bd),_0x2e0502[_0x2e0502[_0x399ae3(0x317)]=0x271d]=_0x399ae3(0x317),_0x2e0502[_0x2e0502[_0x399ae3(0x160)]=0x271e]=_0x399ae3(0x160),_0x2e0502[_0x2e0502['YUUMI_AI_RUN_FAILED']=0x271f]=_0x399ae3(0x222),_0x2e0502[_0x2e0502[_0x399ae3(0x38b)]=0x2720]=_0x399ae3(0x38b),_0x2e0502[_0x2e0502[_0x399ae3(0x22f)]=0x2af9]=_0x399ae3(0x22f),_0x2e0502[_0x2e0502['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x399ae3(0x37d),_0x2e0502[_0x2e0502['INVALID_INVITE_CODE']=0x2ee2]=_0x399ae3(0x294),_0x2e0502[_0x2e0502['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x2e0502[_0x2e0502['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x2e0502[_0x2e0502[_0x399ae3(0x22e)]=0x2ee5]=_0x399ae3(0x22e),_0x2e0502[_0x2e0502['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x399ae3(0x1d7),_0x2e0502[_0x2e0502[_0x399ae3(0x344)]=0x32ca]=_0x399ae3(0x344),_0x2e0502[_0x2e0502[_0x399ae3(0x1c9)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x2e0502[_0x2e0502[_0x399ae3(0x3eb)]=0x36b1]=_0x399ae3(0x3eb),_0x2e0502[_0x2e0502[_0x399ae3(0x3b1)]=0x36b2]=_0x399ae3(0x3b1),_0x2e0502[_0x2e0502[_0x399ae3(0x28e)]=0x36b3]=_0x399ae3(0x28e),_0x2e0502[_0x2e0502['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x2e0502[_0x2e0502[_0x399ae3(0x201)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x2e0502[_0x2e0502[_0x399ae3(0x2fc)]=0x36b6]=_0x399ae3(0x2fc),_0x2e0502[_0x2e0502[_0x399ae3(0x399)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0x2e0502[_0x2e0502[_0x399ae3(0x180)]=0x36b8]=_0x399ae3(0x180),_0x2e0502[_0x2e0502[_0x399ae3(0x20b)]=0x3715]=_0x399ae3(0x20b),_0x2e0502[_0x2e0502[_0x399ae3(0x2e0)]=0x3716]=_0x399ae3(0x2e0),_0x2e0502[_0x2e0502[_0x399ae3(0x37c)]=0x3717]=_0x399ae3(0x37c),_0x2e0502[_0x2e0502[_0x399ae3(0x305)]=0x37dd]=_0x399ae3(0x305),_0x2e0502[_0x2e0502[_0x399ae3(0x3d4)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x2e0502[_0x2e0502[_0x399ae3(0x3de)]=0x3a9a]=_0x399ae3(0x3de),_0x2e0502[_0x2e0502['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x399ae3(0x192),_0x2e0502[_0x2e0502[_0x399ae3(0x262)]=0x3a9c]=_0x399ae3(0x262),_0x2e0502[_0x2e0502[_0x399ae3(0x23f)]=0x3a9d]=_0x399ae3(0x23f),_0x2e0502[_0x2e0502[_0x399ae3(0x3e0)]=0x3a9e]=_0x399ae3(0x3e0),_0x2e0502[_0x2e0502[_0x399ae3(0x1fb)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x2e0502[_0x2e0502[_0x399ae3(0x315)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x2e0502[_0x2e0502['UNRECOGNIZED']=-0x1]=_0x399ae3(0x362),_0x2e0502))(G||{});function Jt(_0x1ea66c){const _0x462f24=_0x399ae3;var _0x3b1491,_0x2efa8b;const _0x107db9=(_0x3b1491=_0x1ea66c[_0x462f24(0x2c7)])==null?void 0x0:_0x3b1491['stage'],_0x39afb9=((_0x2efa8b=_0x1ea66c[_0x462f24(0x2c7)])==null?void 0x0:_0x2efa8b[_0x462f24(0x1bf)])||0x0;return _0x107db9===B[_0x462f24(0x396)]['START_CALCULATION']&&_0x39afb9>0x0;}function Zt(_0x18aa06){const _0x25a991=_0x399ae3;return _0x18aa06[_0x25a991(0x406)]===B['FormulaExecutedStateType']['SUCCESS'];}var Qt=Object[_0x399ae3(0x3f2)],es=(_0x28f2dc,_0x4f9f15,_0x3a2014,_0x1fb125)=>{for(var _0x24fdde=_0x1fb125>0x1?void 0x0:_0x1fb125?Qt(_0x4f9f15,_0x3a2014):_0x4f9f15,_0x59787b=_0x28f2dc['length']-0x1,_0x78e8bd;_0x59787b>=0x0;_0x59787b--)(_0x78e8bd=_0x28f2dc[_0x59787b])&&(_0x24fdde=_0x78e8bd(_0x24fdde)||_0x24fdde);return _0x24fdde;},L=(_0x1319f9,_0xac2971)=>(_0x4c6efd,_0x262eac)=>_0xac2971(_0x4c6efd,_0x262eac,_0x1319f9);const ts=_0x399ae3(0x3df),ss='/universer-api/license/formula/limit/start',is=_0x399ae3(0x1c7);let ne=class extends a['Disposable']{constructor(_0x832b21,_0x1dbd33,_0x521f14,_0x523064,_0x193ed6,_0x50272a,_0x5d9a67){const _0x18c45=_0x399ae3;super(),_(this,_0x18c45(0x3ab),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x18c45(0x36a),0x0),_(this,'_taskIds',[]),_(this,_0x18c45(0x403),0x0),(this[_0x18c45(0x2c3)]=_0x832b21,this['_commandService']=_0x1dbd33,this[_0x18c45(0x3c0)]=_0x521f14,this['_httpService']=_0x523064,this['_univerInstanceService']=_0x193ed6,this[_0x18c45(0x2e2)]=_0x50272a,this['_localeService']=_0x5d9a67,this['_initCommandInterceptor']());}[_0x399ae3(0x1ae)](){const _0x4eefac=_0x399ae3;this[_0x4eefac(0x389)](this[_0x4eefac(0x328)][_0x4eefac(0x38e)]((_0x828342,_0x1b6cfe)=>{const _0x30f4b5=_0x4eefac;var _0x5c50f3;if(_0x828342['id']!==B[_0x30f4b5(0x36c)]['id'])return;const _0x588506=_0x828342[_0x30f4b5(0x1fd)];if(!this['_hasFormulaInDirtyRanges']((_0x5c50f3=_0x588506[_0x30f4b5(0x354)])!=null?_0x5c50f3:[]))return;if(!this[_0x30f4b5(0x219)]())throw this[_0x30f4b5(0x252)](_0x828342,_0x1b6cfe),this[_0x30f4b5(0x2eb)](),new a[(_0x30f4b5(0x217))]();})),this[_0x4eefac(0x389)](this[_0x4eefac(0x328)][_0x4eefac(0x361)]((_0x401a18,_0x290554)=>{const _0x34ad7f=_0x4eefac;if(_0x401a18['id']!==B[_0x34ad7f(0x33f)]['id'])return;const _0x1a6d47=_0x401a18[_0x34ad7f(0x1fd)];if(Jt(_0x1a6d47)){const _0x2ca908=a[_0x34ad7f(0x3c1)]();this[_0x34ad7f(0x390)][_0x34ad7f(0x2c6)](_0x2ca908),this[_0x34ad7f(0x2bc)](_0x2ca908);}else{if(Zt(_0x1a6d47)&&this['_taskIds'][_0x34ad7f(0x36f)]>0x0){const _0x45fabd=this[_0x34ad7f(0x390)]['shift']();this[_0x34ad7f(0x26f)](_0x45fabd);}}}));}['dispose'](){const _0x32dd88=_0x399ae3;super['dispose'](),this[_0x32dd88(0x35d)](),this['_taskIds']=[],this[_0x32dd88(0x36a)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x32dd88(0x403)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x2f38c7,_0x43154f){const _0x40a5d8=_0x399ae3;for(let _0x3eb0ec=0x0;_0x3eb0ec<0x1e;_0x3eb0ec++)try{if(await this[_0x40a5d8(0x213)](),this['_checkCalculationAvailable']()){this[_0x40a5d8(0x32c)](_0x2f38c7,_0x43154f),this[_0x40a5d8(0x2c3)][_0x40a5d8(0x381)]({'content':this['_localeService']['t'](_0x40a5d8(0x3b8)),'type':p[_0x40a5d8(0x29b)][_0x40a5d8(0x271)]});return;}await new Promise(_0x98cd0e=>{const _0x30c57e=_0x40a5d8;this['_pollingInterval']=window[_0x30c57e(0x2b5)](_0x98cd0e,0x3e8);});}catch(_0x347029){this['_logService'][_0x40a5d8(0x237)](_0x347029);}this[_0x40a5d8(0x2c3)][_0x40a5d8(0x381)]({'content':this[_0x40a5d8(0x210)]['t'](_0x40a5d8(0x39e)),'type':p[_0x40a5d8(0x29b)][_0x40a5d8(0x24b)]});}[_0x399ae3(0x32c)](_0x542679,_0x3dd5c4){const _0x34c398=_0x399ae3;try{this['_commandService']['executeCommand'](_0x542679['id'],_0x542679[_0x34c398(0x1fd)],_0x3dd5c4);}catch(_0x33dd04){this['_logService'][_0x34c398(0x237)](_0x33dd04);}}[_0x399ae3(0x290)](_0x134370,_0x3faf62){const _0x175687=_0x399ae3;_0x3faf62<this[_0x175687(0x403)]||(this[_0x175687(0x403)]=_0x3faf62,this[_0x175687(0x148)]=Number[_0x175687(0x347)](_0x134370[_0x175687(0x297)]),this[_0x175687(0x36a)]=Number[_0x175687(0x347)](_0x134370[_0x175687(0x284)]));}async[_0x399ae3(0x2bc)](_0x13b3df){const _0x201e02=_0x399ae3;var _0x101bff,_0x4ad5ed;const _0x2cafc2=Date['now']();try{const _0x1fac25=((_0x101bff=this[_0x201e02(0x3c0)][_0x201e02(0x17f)](u[_0x201e02(0x38c)]))==null?void 0x0:_0x101bff[_0x201e02(0x372)])||ss,_0x5a9339=(await this[_0x201e02(0x17a)][_0x201e02(0x145)](_0x1fac25,{'body':JSON[_0x201e02(0x292)]({'taskId':_0x13b3df})}))[_0x201e02(0x352)];if(((_0x4ad5ed=_0x5a9339[_0x201e02(0x237)])==null?void 0x0:_0x4ad5ed['code'])!==G['OK'])return;this[_0x201e02(0x290)](_0x5a9339['limitInfo'],_0x2cafc2);}catch(_0x54af4d){this[_0x201e02(0x2e2)][_0x201e02(0x237)](_0x54af4d);}}async[_0x399ae3(0x213)](_0x2e1297){const _0x115fc6=_0x399ae3;var _0x59d09a,_0x4a0170;const _0x4e974d=Date['now']();try{const _0x4990f4=((_0x59d09a=this[_0x115fc6(0x3c0)]['getConfig'](u[_0x115fc6(0x38c)]))==null?void 0x0:_0x59d09a[_0x115fc6(0x15e)])||ts,_0x5440c2=_0x2e1297?_0x4990f4+_0x115fc6(0x224)+encodeURIComponent(_0x2e1297):_0x4990f4,_0x4973dc=(await this['_httpService']['get'](_0x5440c2))['body'];if(((_0x4a0170=_0x4973dc[_0x115fc6(0x237)])==null?void 0x0:_0x4a0170[_0x115fc6(0x2b6)])!==G['OK'])return;this[_0x115fc6(0x290)](_0x4973dc[_0x115fc6(0x321)],_0x4e974d);}catch(_0x20cde5){this[_0x115fc6(0x2e2)][_0x115fc6(0x237)](_0x20cde5);}}async[_0x399ae3(0x26f)](_0x4330ef){const _0xc55a03=_0x399ae3;var _0x1bf58c,_0xa14c9f;const _0x51c2ea=Date['now']();try{const _0x5b5895=((_0x1bf58c=this['_configService'][_0xc55a03(0x17f)](u[_0xc55a03(0x38c)]))==null?void 0x0:_0x1bf58c['releaseFormulaLimitUrl'])||is,_0x2d537c=(await this[_0xc55a03(0x17a)][_0xc55a03(0x145)](_0x5b5895,{'body':JSON[_0xc55a03(0x292)]({'taskId':_0x4330ef})}))['body'];if(((_0xa14c9f=_0x2d537c[_0xc55a03(0x237)])==null?void 0x0:_0xa14c9f[_0xc55a03(0x2b6)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x2d537c[_0xc55a03(0x321)],_0x51c2ea);}catch(_0x3fa2ef){this[_0xc55a03(0x2e2)][_0xc55a03(0x237)](_0x3fa2ef);}}['_checkCalculationAvailable'](){const _0x4f763f=_0x399ae3;return this[_0x4f763f(0x148)]===0x0?!0x0:this['_maxFormulaLimit']-this['_currentUsage']>0x0;}[_0x399ae3(0x35d)](){const _0x33016d=_0x399ae3;this[_0x33016d(0x3ab)]&&(clearTimeout(this[_0x33016d(0x3ab)]),this['_pollingInterval']=null);}['_showGuardMessage'](){const _0x6844b1=_0x399ae3;this['_messageService'][_0x6844b1(0x381)]({'content':this[_0x6844b1(0x210)]['t']('formula.calculation.waiting'),'type':p['MessageType'][_0x6844b1(0x2ca)]});}['_hasFormulaInDirtyRanges'](_0x292e9e){const _0x3d2cfd=_0x399ae3;for(const _0x3a3265 of _0x292e9e){const {unitId:_0x452c38,sheetId:_0x3a2960,range:_0xdac39d}=_0x3a3265,_0x577829=this[_0x3d2cfd(0x2a8)][_0x3d2cfd(0x36e)](_0x452c38);if(!_0x577829)continue;const _0x52bb04=_0x577829[_0x3d2cfd(0x2b2)](_0x3a2960);if(!_0x52bb04)continue;const _0x4c5d86=_0x52bb04[_0x3d2cfd(0x3bc)]();for(let _0x2618ab=_0xdac39d[_0x3d2cfd(0x330)];_0x2618ab<=_0xdac39d['endRow'];_0x2618ab++)for(let _0x40085e=_0xdac39d[_0x3d2cfd(0x350)];_0x40085e<=_0xdac39d[_0x3d2cfd(0x3cf)];_0x40085e++){const _0x2cff38=_0x4c5d86[_0x3d2cfd(0x2db)](_0x2618ab,_0x40085e);if(_0x2cff38&&(a[_0x3d2cfd(0x3cb)](_0x2cff38['f'])||a[_0x3d2cfd(0x261)](_0x2cff38['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x399ae3(0x166)](O[_0x399ae3(0x190)])),L(0x1,a[_0x399ae3(0x339)]),L(0x2,a[_0x399ae3(0x2c4)]),L(0x3,a['Inject'](x[_0x399ae3(0x308)])),L(0x4,a['IUniverInstanceService']),L(0x5,a[_0x399ae3(0x1cc)]),L(0x6,a['Inject'](a['LocaleService']))],ne);var ns=Object[_0x399ae3(0x3f2)],rs=(_0x17abc2,_0x150a9a,_0x1510e4,_0x135a12)=>{const _0x4268b0=_0x399ae3;for(var _0x44d4ca=_0x135a12>0x1?void 0x0:_0x135a12?ns(_0x150a9a,_0x1510e4):_0x150a9a,_0xf3762=_0x17abc2[_0x4268b0(0x36f)]-0x1,_0x5c3853;_0xf3762>=0x0;_0xf3762--)(_0x5c3853=_0x17abc2[_0xf3762])&&(_0x44d4ca=_0x5c3853(_0x44d4ca)||_0x44d4ca);return _0x44d4ca;},Se=(_0x4e95d4,_0x4f5d08)=>(_0x55984e,_0x4f5379)=>_0x4f5d08(_0x55984e,_0x4f5379,_0x4e95d4);let Te=class extends a[_0x399ae3(0x338)]{constructor(_0x57d1b5,_0x2ec3e3,_0x4de624){const _0x35bf1f=_0x399ae3;super(),_(this,_0x35bf1f(0x3e5),new Map()),_(this,_0x35bf1f(0x285),new Map()),_(this,_0x35bf1f(0x272),!0x1),(this[_0x35bf1f(0x3c0)]=_0x57d1b5,this[_0x35bf1f(0x2be)]=_0x2ec3e3,this['_revisionService']=_0x4de624);}[_0x399ae3(0x2f8)](){const _0x1243f4=_0x399ae3;this[_0x1243f4(0x272)]=!0x0;}[_0x399ae3(0x2f0)](){const _0x12a841=_0x399ae3;this[_0x12a841(0x272)]=!0x1;}get[_0x399ae3(0x2c8)](){const _0x41d48c=_0x399ae3;return this[_0x41d48c(0x285)];}[_0x399ae3(0x1a4)](){const _0x1b41fa=_0x399ae3;this['exhaustSavingTask']()[_0x1b41fa(0x26a)](()=>super[_0x1b41fa(0x1a4)]());}async[_0x399ae3(0x39f)](_0x334885){const _0x146448=_0x399ae3;return this['_disabled']?null:this[_0x146448(0x2be)][_0x146448(0x1d6)](u[_0x146448(0x2d8)](_0x334885));}async[_0x399ae3(0x2b3)](_0x2d3fe1,_0x9c0952){const _0x105e78=_0x399ae3;return!!this[_0x105e78(0x2be)]['setItem'](_0x2d3fe1,_0x9c0952);}[_0x399ae3(0x21c)](_0x4c4601,_0x4810e2,_0xbbd657,_0x2cc5d2){const _0x53cd08=_0x399ae3,_0x1735fe=this[_0x53cd08(0x146)][_0x53cd08(0x3d1)](_0x4c4601);this[_0x53cd08(0x3e5)]['set'](_0x4c4601,{'unitID':_0x4c4601,'type':_0x4810e2,'awaitingChangeset':_0xbbd657,'mutations':_0x2cc5d2,'rev':_0x1735fe}),this[_0x53cd08(0x285)]['has'](_0x4c4601)||this[_0x53cd08(0x3b9)](_0x4c4601);}[_0x399ae3(0x3b9)](_0x521834){const _0x407e76=_0x399ae3,_0x4d9835=this[_0x407e76(0x409)]();_0x4d9835===0x0?this[_0x407e76(0x300)](_0x521834):this['_saveTaskMap'][_0x407e76(0x408)](_0x521834,setTimeout(()=>this['_saveCache'](_0x521834),_0x4d9835));}[_0x399ae3(0x409)](){const _0x1f4957=_0x399ae3;var _0x43dee1;return(_0x43dee1=this['_configService']['getConfig'](u[_0x1f4957(0x1bd)]))!=null?_0x43dee1:u[_0x1f4957(0x39b)];}['_saveCache'](_0x4e971b){const _0x5b1570=_0x399ae3,_0xafa0b3=this[_0x5b1570(0x285)]['get'](_0x4e971b);return _0xafa0b3!==void 0x0&&window[_0x5b1570(0x3fe)](_0xafa0b3),this[_0x5b1570(0x2be)][_0x5b1570(0x164)](u[_0x5b1570(0x2d8)](_0x4e971b),this[_0x5b1570(0x3e5)][_0x5b1570(0x1c4)](_0x4e971b))['then'](()=>this[_0x5b1570(0x285)][_0x5b1570(0x25f)](_0x4e971b));}async['exhaustSavingTask'](){const _0x5ca10c=_0x399ae3,_0x1b9853=[];this[_0x5ca10c(0x285)][_0x5ca10c(0x263)]((_0x137c25,_0xce4bd9)=>{const _0x29afc7=_0x5ca10c;window[_0x29afc7(0x3fe)](_0x137c25),_0x1b9853['push'](this['_saveCache'](_0xce4bd9)[_0x29afc7(0x26a)](()=>{const _0x5f3a99=_0x29afc7;this[_0x5f3a99(0x285)][_0x5f3a99(0x25f)](_0xce4bd9);}));}),await Promise[_0x5ca10c(0x268)](_0x1b9853);}};Te=rs([Se(0x0,a['IConfigService']),Se(0x1,a[_0x399ae3(0x15c)]),Se(0x2,a[_0x399ae3(0x166)](g[_0x399ae3(0x265)]))],Te);class ke extends a['RxDisposable']{constructor(){const _0x298c1a=_0x399ae3;super(),_(this,'urlChange$'),this[_0x298c1a(0x3e8)]=I[_0x298c1a(0x22c)](window,_0x298c1a(0x20c))['pipe'](I[_0x298c1a(0x1dc)](this['dispose$']),I[_0x298c1a(0x183)](0x1),I[_0x298c1a(0x18f)](void 0x0));}[_0x399ae3(0x1f4)](_0x4370c6,_0x9ff53d,_0x22fc17=!0x1){const _0x5e47a2=_0x399ae3,_0x2f8cdf=new URL(window['location']['href']);_0x2f8cdf[_0x5e47a2(0x3fa)]['set'](_0x4370c6,_0x9ff53d),_0x22fc17?window['history']['replaceState']('','',_0x2f8cdf['toString']()):window[_0x5e47a2(0x13a)][_0x5e47a2(0x2f2)]('','',_0x2f8cdf[_0x5e47a2(0x348)]());}['removeParam'](_0x2c8c7d,_0xf2348e=!0x1){const _0x3714fa=_0x399ae3,_0x336f73=new URL(window[_0x3714fa(0x336)][_0x3714fa(0x257)]);_0x336f73['searchParams'][_0x3714fa(0x25f)](_0x2c8c7d),_0xf2348e?window[_0x3714fa(0x13a)][_0x3714fa(0x3f0)]('','',_0x336f73[_0x3714fa(0x348)]()):window['history']['pushState']('','',_0x336f73['toString']());}['getParam'](_0x654bc){const _0x5e66b1=_0x399ae3;var _0x529b20;return(_0x529b20=new URL(window[_0x5e66b1(0x336)][_0x5e66b1(0x257)])['searchParams']['get'](_0x654bc))!=null?_0x529b20:void 0x0;}}var os=Object[_0x399ae3(0x1db)],as=Object[_0x399ae3(0x3f2)],cs=(_0x4f4988,_0x41b144,_0x159b54)=>_0x41b144 in _0x4f4988?os(_0x4f4988,_0x41b144,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x159b54}):_0x4f4988[_0x41b144]=_0x159b54,ls=(_0x366b37,_0x196cb7,_0x5805b4,_0x2bfc36)=>{for(var _0x5e5da8=_0x2bfc36>0x1?void 0x0:_0x2bfc36?as(_0x196cb7,_0x5805b4):_0x196cb7,_0x580d44=_0x366b37['length']-0x1,_0x44f964;_0x580d44>=0x0;_0x580d44--)(_0x44f964=_0x366b37[_0x580d44])&&(_0x5e5da8=_0x44f964(_0x5e5da8)||_0x5e5da8);return _0x5e5da8;},de=(_0x17ce79,_0x2fd2c9)=>(_0x413e17,_0x6e006b)=>_0x2fd2c9(_0x413e17,_0x6e006b,_0x17ce79),_s=(_0x44164d,_0x4c63d5,_0x1396d8)=>cs(_0x44164d,_0x4c63d5+'',_0x1396d8);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x399ae3(0x3c8)]=class extends a[_0x399ae3(0x176)]{constructor(_0x4b38b6=Me,_0x40803a,_0x20db59,_0x1f07ae){const _0x646dd5=_0x399ae3;super(),this['_config']=_0x4b38b6,this['_renderManagerService']=_0x40803a,this['_injector']=_0x20db59,this[_0x646dd5(0x3c0)]=_0x1f07ae;const {..._0xb1a7a}=a[_0x646dd5(0x19c)]({},Me,this[_0x646dd5(0x3c9)]);this['_configService'][_0x646dd5(0x2cb)](Yt,_0xb1a7a);}[_0x399ae3(0x1a0)](){const _0x2db178=_0x399ae3;this[_0x2db178(0x329)](),this[_0x2db178(0x2e7)]();}['onRendered'](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x129b72=_0x399ae3;var _0x2820bd;const _0x2b5efb=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x129b72(0x2a0)],{'useClass':x[_0x129b72(0x400)]}],[u[_0x129b72(0x267)],{'useClass':Te}],[exports[_0x129b72(0x30f)]],[ie],[Z],[F],[me],[exports[_0x129b72(0x19e)]]];this[_0x129b72(0x3c9)][_0x129b72(0x1cf)]&&_0x2b5efb[_0x129b72(0x2c6)]([Q]),a[_0x129b72(0x16c)](this[_0x129b72(0x1ff)],a[_0x129b72(0x2a1)](_0x2b5efb,(_0x2820bd=this[_0x129b72(0x3c9)])==null?void 0x0:_0x2820bd[_0x129b72(0x27c)]));}[_0x399ae3(0x2b9)](){const _0x18bf3b=_0x399ae3;this['disposeWithMe'](this[_0x18bf3b(0x37a)][_0x18bf3b(0x3ef)](a[_0x18bf3b(0x2a7)][_0x18bf3b(0x3a1)],[Ee])),this[_0x18bf3b(0x389)](this[_0x18bf3b(0x37a)][_0x18bf3b(0x3ef)](a[_0x18bf3b(0x2a7)][_0x18bf3b(0x299)],[Ce]));}[_0x399ae3(0x2e7)](){const _0x1be10c=_0x399ae3;a[_0x1be10c(0x32a)](this['_injector'],[[F],[exports[_0x1be10c(0x30f)]],[ie],[Z],[exports[_0x1be10c(0x19e)]],[ne]]),this[_0x1be10c(0x3c9)][_0x1be10c(0x1cf)]&&a[_0x1be10c(0x32a)](this[_0x1be10c(0x1ff)],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x399ae3(0x1d3),hs),exports[_0x399ae3(0x3c8)]=ls([a['DependentOn'](u[_0x399ae3(0x303)]),de(0x1,C[_0x399ae3(0x3b5)]),de(0x2,a[_0x399ae3(0x166)](a['Injector'])),de(0x3,a[_0x399ae3(0x2c4)])],exports['UniverCollaborationClientUIPlugin']);var us=Object[_0x399ae3(0x3f2)],Is=(_0x508765,_0x2232b6,_0x30e14d,_0x31a62b)=>{const _0x268e62=_0x399ae3;for(var _0xd3af7b=_0x31a62b>0x1?void 0x0:_0x31a62b?us(_0x2232b6,_0x30e14d):_0x2232b6,_0x3b1643=_0x508765[_0x268e62(0x36f)]-0x1,_0x3c5eb9;_0x3b1643>=0x0;_0x3b1643--)(_0x3c5eb9=_0x508765[_0x3b1643])&&(_0xd3af7b=_0x3c5eb9(_0xd3af7b)||_0xd3af7b);return _0xd3af7b;},W=(_0x3a5960,_0x3944fd)=>(_0xbdbd08,_0x537b8a)=>_0x3944fd(_0xbdbd08,_0x537b8a,_0x3a5960);exports[_0x399ae3(0x277)]=class extends u[_0x399ae3(0x1af)]{constructor(_0x3be24d,_0x44ddbb,_0x2bb9f8,_0x242d60,_0x53511d){super(_0x3be24d,_0x44ddbb,_0x2bb9f8,_0x242d60,_0x53511d);}async[_0x399ae3(0x2ec)](_0x583f73){const _0x3f5d40=_0x399ae3,_0x1b02ff=await this[_0x3f5d40(0x2c1)](),_0x5eea8a=this[_0x3f5d40(0x3ec)](_0x583f73,_0x1b02ff);return this[_0x3f5d40(0x28b)](_0x5eea8a);}[_0x399ae3(0x3ec)](_0x2ae965,_0x4d24bb){const _0x2f98df=_0x399ae3,_0x13f45b=typeof window>'u'?new URL(_0x2ae965):new URL(_0x2ae965,window[_0x2f98df(0x336)][_0x2f98df(0x298)]);_0x13f45b[_0x2f98df(0x3fa)][_0x2f98df(0x408)](_0x2f98df(0x2ad),_0x4d24bb);const _0x4a063c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2f98df(0x336)]['search']);return _0x4a063c[_0x2f98df(0x1c4)](_0x2f98df(0x23a))&&_0x13f45b[_0x2f98df(0x3fa)][_0x2f98df(0x408)](_0x2f98df(0x23a),_0x4a063c[_0x2f98df(0x1c4)](_0x2f98df(0x23a))),_0x13f45b[_0x2f98df(0x348)]();}async[_0x399ae3(0x2c1)](){const _0xb8e046=_0x399ae3;var _0x371353,_0x5e30c2,_0x2bfcc8;const _0x5ea134=this[_0xb8e046(0x3c0)][_0xb8e046(0x17f)](u[_0xb8e046(0x38c)]),_0x3ba539=(_0x371353=_0x5ea134==null?void 0x0:_0x5ea134['wsSessionTicketUrl'])!=null?_0x371353:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x2bfcc8=(_0x5e30c2=(await this[_0xb8e046(0x17a)][_0xb8e046(0x1c4)](_0x3ba539,{'headers':{'Content-Type':_0xb8e046(0x187)}}))[_0xb8e046(0x352)])==null?void 0x0:_0x5e30c2[_0xb8e046(0x179)])!=null?_0x2bfcc8:'';}},exports[_0x399ae3(0x277)]=Is([W(0x0,a['Inject'](a[_0x399ae3(0x1df)])),W(0x1,a['Inject'](x['HTTPService'])),W(0x2,a[_0x399ae3(0x2c4)]),W(0x3,a[_0x399ae3(0x1cc)]),W(0x4,g[_0x399ae3(0x307)])],exports['BrowserCollaborationSocketService']);var Ss=Object[_0x399ae3(0x3f2)],ds=(_0x2304cb,_0x2744d7,_0x4c3d2d,_0x2ac903)=>{const _0x1d2ba4=_0x399ae3;for(var _0x2be44a=_0x2ac903>0x1?void 0x0:_0x2ac903?Ss(_0x2744d7,_0x4c3d2d):_0x2744d7,_0x5e442d=_0x2304cb[_0x1d2ba4(0x36f)]-0x1,_0x8978cd;_0x5e442d>=0x0;_0x5e442d--)(_0x8978cd=_0x2304cb[_0x5e442d])&&(_0x2be44a=_0x8978cd(_0x2be44a)||_0x2be44a);return _0x2be44a;},fe=(_0x451d6a,_0x42140d)=>(_0x54923d,_0x1ec802)=>_0x42140d(_0x54923d,_0x1ec802,_0x451d6a);exports[_0x399ae3(0x35f)]=class extends a[_0x399ae3(0x338)]{constructor(_0x34faa4,_0xf913db,_0x339d85){const _0x3c1029=_0x399ae3;super(),this[_0x3c1029(0x38d)]=_0x34faa4,this[_0x3c1029(0x17a)]=_0xf913db,this['_configService']=_0x339d85;}async[_0x399ae3(0x3e9)](_0x4412bc,_0x5cb2c7,_0x3fc240,..._0x17df52){const _0x5ea6c6=_0x399ae3;var _0x4ca14b,_0x4b4838,_0x1d661d,_0xf8d8a8;const _0x34ccde=this[_0x5ea6c6(0x38d)]['getFocusedUnit']();if(!_0x34ccde)throw new Error(_0x5ea6c6(0x3ed));const _0x3101d3=((_0x4ca14b=this[_0x5ea6c6(0x3c0)]['getConfig'](u[_0x5ea6c6(0x286)]))!=null?_0x4ca14b:u[_0x5ea6c6(0x3a0)])+'/'+_0x4412bc+_0x5ea6c6(0x152)+_0x5cb2c7,_0x5232c1=new URL(window['location'][_0x5ea6c6(0x257)]),_0x55c7a7={'scriptId':_0x4412bc,'runId':(_0x4b4838=_0x5232c1[_0x5ea6c6(0x3fa)][_0x5ea6c6(0x1c4)](_0x5ea6c6(0x23a)))!=null?_0x4b4838:'','function':_0x5cb2c7,'unitId':_0x34ccde[_0x5ea6c6(0x3a3)](),'argsOfFunction':JSON[_0x5ea6c6(0x292)](_0x17df52),'invokeId':(_0x1d661d=_0x3fc240[_0x5ea6c6(0x26e)])!=null?_0x1d661d:'','executionId':(_0xf8d8a8=_0x3fc240[_0x5ea6c6(0x2f1)])!=null?_0xf8d8a8:''};try{const _0x5c544f=await this[_0x5ea6c6(0x17a)]['post'](_0x3101d3,{'body':_0x55c7a7});return _0x5c544f['body'][_0x5ea6c6(0x237)]&&_0x5c544f[_0x5ea6c6(0x352)][_0x5ea6c6(0x237)][_0x5ea6c6(0x2b6)]!==G['OK']?_0x5ea6c6(0x142):_0x5c544f[_0x5ea6c6(0x352)][_0x5ea6c6(0x2fb)];}catch{return _0x5ea6c6(0x142);}}},exports[_0x399ae3(0x35f)]=ds([fe(0x0,a[_0x399ae3(0x373)]),fe(0x1,a[_0x399ae3(0x166)](x[_0x399ae3(0x308)])),fe(0x2,a['IConfigService'])],exports[_0x399ae3(0x35f)]);const we=0x7530,ye='ACTIVE_UNIT_EVENT_CHANNEL';class fs extends a[_0x399ae3(0x338)]{constructor(){const _0x4e061b=_0x399ae3;super(),_(this,'_id',a[_0x4e061b(0x3c1)]()),_(this,_0x4e061b(0x243),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x4e061b(0x3a7),null),_(this,_0x4e061b(0x23c),new Map()),_(this,_0x4e061b(0x40a),new Map()),this['_init']();}['dispose'](){const _0x5b4160=_0x399ae3;super['dispose'](),this[_0x5b4160(0x23c)][_0x5b4160(0x263)]((_0x3ccce0,_0x597f37)=>this[_0x5b4160(0x365)](_0x597f37)),this[_0x5b4160(0x3a7)]&&window[_0x5b4160(0x194)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x5bbeeb){const _0x3b92c9=_0x399ae3;return this['_ensureSubject'](_0x5bbeeb)[_0x3b92c9(0x212)](I[_0x3b92c9(0x3dc)]());}[_0x399ae3(0x3da)](_0x540816){const _0x1899ea=_0x399ae3;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x1899ea(0x243)][_0x1899ea(0x21b)](_0x540816),this[_0x1899ea(0x24a)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x540816],'isForwarded':!0x1});}['disposeUnit'](_0x293ac3){const _0x337037=_0x399ae3;this[_0x337037(0x243)][_0x337037(0x25f)](_0x293ac3),this[_0x337037(0x243)]['size']===0x0&&this[_0x337037(0x3a7)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x41152c=_0x399ae3;this[_0x41152c(0x389)](a[_0x41152c(0x198)](I[_0x41152c(0x22c)](window,_0x41152c(0x304))['subscribe'](_0x125b52=>{const _0x26344f=_0x41152c;if(_0x125b52['key']!==ye||!_0x125b52['newValue'])return;const _0x4fae48=JSON[_0x26344f(0x27b)](_0x125b52['newValue']);this[_0x26344f(0x2a9)](_0x4fae48);}))),window['addEventListener'](_0x41152c(0x3a8),()=>this[_0x41152c(0x24a)]({'type':0x1,'memberID':this[_0x41152c(0x225)],'unitIDs':Array['from'](this[_0x41152c(0x243)])}));}[_0x399ae3(0x2a9)](_0x395a35){const _0x3fa344=_0x399ae3;switch(_0x395a35[_0x3fa344(0x1aa)]){case 0x0:this['_handleJoinEvent'](_0x395a35);break;case 0x1:this[_0x3fa344(0x33c)](_0x395a35);break;case 0x2:this[_0x3fa344(0x151)](_0x395a35);break;}}[_0x399ae3(0x379)](_0x1daf64){const _0x2f66ff=_0x399ae3,{unitIDs:_0x1d784b,memberID:_0x3cbaed,isForwarded:_0x1e14f8}=_0x1daf64;_0x1d784b[_0x2f66ff(0x263)](_0x49d04a=>{const _0x2a8c05=_0x2f66ff;if(!_0x1e14f8&&this[_0x2a8c05(0x255)][_0x2a8c05(0x33b)](_0x49d04a)&&this['_ensureSubject'](_0x49d04a)[_0x2a8c05(0x278)](u['UnitStatus']['OTHER_CLIENTS_EDITING']),!this[_0x2a8c05(0x255)]['has'](_0x49d04a)||!this[_0x2a8c05(0x255)][_0x2a8c05(0x1c4)](_0x49d04a)[_0x2a8c05(0x33b)](_0x3cbaed)){const _0x4910a0=this[_0x2a8c05(0x255)][_0x2a8c05(0x1c4)](_0x49d04a)||new Set();_0x4910a0[_0x2a8c05(0x21b)](_0x3cbaed),this[_0x2a8c05(0x255)][_0x2a8c05(0x408)](_0x49d04a,_0x4910a0),this[_0x2a8c05(0x31a)](_0x3cbaed);}}),_0x1e14f8||this[_0x2f66ff(0x24a)]({'type':0x0,'memberID':this[_0x2f66ff(0x225)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2db027){const _0xe8d202=_0x399ae3;this['_removeClearOtherTimer'](_0x2db027);const _0x48ae34=window['setTimeout'](()=>{const _0x59357e=_0x4320;this[_0x59357e(0x255)][_0x59357e(0x263)](_0x428581=>{const _0x1ea713=_0x59357e;_0x428581[_0x1ea713(0x25f)](_0x2db027);});},we*0x2);this[_0xe8d202(0x23c)][_0xe8d202(0x408)](_0x2db027,_0x48ae34);}[_0x399ae3(0x365)](_0x150d02){const _0x103734=_0x399ae3;if(this[_0x103734(0x23c)]['has'](_0x150d02)){const _0x119799=this['_clearOtherTimers'][_0x103734(0x1c4)](_0x150d02);_0x119799&&window['clearTimeout'](_0x119799),this['_clearOtherTimers'][_0x103734(0x408)](_0x150d02,null);}}['_handleLeaveEvent'](_0x2e0cef){const _0x5ea8cf=_0x399ae3,{memberID:_0x2251c5,unitIDs:_0x5805f0}=_0x2e0cef;_0x5805f0[_0x5ea8cf(0x263)](_0x57a030=>{const _0x2f9427=_0x5ea8cf;var _0x2b2175;const _0x4b5a39=this[_0x2f9427(0x255)]['get'](_0x57a030);_0x4b5a39&&(_0x4b5a39[_0x2f9427(0x25f)](_0x2251c5),(_0x2b2175=this['_ensureSubject'](_0x57a030))==null||_0x2b2175[_0x2f9427(0x278)](_0x4b5a39['size']===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u[_0x2f9427(0x1f7)][_0x2f9427(0x247)]));}),this[_0x5ea8cf(0x365)](_0x2251c5);}['_handleHeartbeatEvent'](_0x34651e){const _0x546562=_0x399ae3;this[_0x546562(0x31a)](_0x34651e[_0x546562(0x33e)]);}[_0x399ae3(0x24a)](_0x354bc0){const _0x31135e=_0x399ae3;localStorage[_0x31135e(0x164)](ye,JSON['stringify'](_0x354bc0));}[_0x399ae3(0x202)](){const _0x29871e=_0x399ae3;this[_0x29871e(0x3a7)]=window[_0x29871e(0x200)](()=>{const _0x28580e=_0x29871e;this[_0x28580e(0x24a)]({'type':0x2,'memberID':this[_0x28580e(0x225)]});},we);}[_0x399ae3(0x32f)](_0x2240c6){const _0x48455d=_0x399ae3;return this[_0x48455d(0x40a)][_0x48455d(0x33b)](_0x2240c6)||this[_0x48455d(0x40a)][_0x48455d(0x408)](_0x2240c6,new I[(_0x48455d(0x376))](u[_0x48455d(0x1f7)][_0x48455d(0x199)])),this[_0x48455d(0x40a)]['get'](_0x2240c6);}}exports[_0x399ae3(0x30c)]=Oe,exports[_0x399ae3(0x3be)]=je,exports[_0x399ae3(0x22a)]=fs,exports[_0x399ae3(0x1e8)]=ke;
1
+ 'use strict';const _0x4a1f29=_0x1f3f;(function(_0x4aa17e,_0xf3e641){const _0x48f861=_0x1f3f,_0x58617b=_0x4aa17e();while(!![]){try{const _0x582f50=-parseInt(_0x48f861(0x22d))/0x1+-parseInt(_0x48f861(0x237))/0x2+-parseInt(_0x48f861(0x2d2))/0x3+-parseInt(_0x48f861(0x16b))/0x4+-parseInt(_0x48f861(0x257))/0x5*(parseInt(_0x48f861(0x215))/0x6)+parseInt(_0x48f861(0x241))/0x7*(parseInt(_0x48f861(0x109))/0x8)+parseInt(_0x48f861(0xc5))/0x9;if(_0x582f50===_0xf3e641)break;else _0x58617b['push'](_0x58617b['shift']());}catch(_0x115e3f){_0x58617b['push'](_0x58617b['shift']());}}}(_0x30c0,0xf3ae2));var Xe=Object[_0x4a1f29(0x253)],Ke=(_0x130da0,_0x55d62e,_0x2c8840)=>_0x55d62e in _0x130da0?Xe(_0x130da0,_0x55d62e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c8840}):_0x130da0[_0x55d62e]=_0x2c8840,_=(_0xb9a073,_0x24e060,_0x4f0897)=>Ke(_0xb9a073,typeof _0x24e060!='symbol'?_0x24e060+'':_0x24e060,_0x4f0897);Object['defineProperty'](exports,Symbol[_0x4a1f29(0x1ba)],{'value':_0x4a1f29(0x2ad)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x32fbf9,..._0x3c7aa9}){const _0x21f811=_0x4a1f29,{icon:_0x48f816,id:_0x48877f,className:_0x26b86d,extend:_0x4bd3c0,..._0x23f56c}=_0x3c7aa9,_0x3fec3e=('univerjs-icon\x20univerjs-icon-'+_0x48877f+'\x20'+(_0x26b86d||''))[_0x21f811(0x1e8)](),_0x5f091e=A[_0x21f811(0x21b)]('_'+Qe());return $e(_0x48f816,''+_0x48877f,{'defIds':_0x48f816[_0x21f811(0x382)],'idSuffix':_0x5f091e[_0x21f811(0x28e)]},{'ref':_0x32fbf9,'className':_0x3fec3e,..._0x23f56c},_0x4bd3c0);}function $e(_0x209125,_0x12e201,_0x20b381,_0x1e8c6b,_0x5b1798){const _0x2ece24=_0x4a1f29;return A[_0x2ece24(0x170)](_0x209125[_0x2ece24(0x37f)],{'key':_0x12e201,...Je(_0x209125,_0x20b381,_0x5b1798),..._0x1e8c6b},(Ze(_0x209125,_0x20b381)['children']||[])['map']((_0x20153c,_0x107d7b)=>$e(_0x20153c,_0x12e201+'-'+_0x209125[_0x2ece24(0x37f)]+'-'+_0x107d7b,_0x20b381,void 0x0,_0x5b1798)));}function Je(_0x35e957,_0x5cb02f,_0x4011bc){const _0x1f0eda=_0x4a1f29,_0x4bf5a9={..._0x35e957['attrs']};_0x4011bc!=null&&_0x4011bc['colorChannel1']&&_0x4bf5a9[_0x1f0eda(0x136)]===_0x1f0eda(0x1c4)&&(_0x4bf5a9['fill']=_0x4011bc[_0x1f0eda(0x1c4)]),_0x35e957['tag']===_0x1f0eda(0x118)&&_0x4bf5a9['id']&&(_0x4bf5a9['id']=_0x4bf5a9['id']+_0x5cb02f['idSuffix']),Object[_0x1f0eda(0x28d)](_0x4bf5a9)['forEach'](([_0x8e87,_0x3d2f67])=>{const _0x5576af=_0x1f0eda;_0x8e87===_0x5576af(0x118)&&typeof _0x3d2f67=='string'&&(_0x4bf5a9[_0x8e87]=_0x3d2f67['replace'](/url\(#(.*)\)/,_0x5576af(0x250)+_0x5cb02f[_0x5576af(0x38f)]+')'));});const {defIds:_0x2b326d}=_0x5cb02f;return!_0x2b326d||_0x2b326d[_0x1f0eda(0x191)]===0x0||(_0x35e957['tag']===_0x1f0eda(0x32f)&&_0x4bf5a9['xlink:href']&&(_0x4bf5a9['xlink:href']=_0x4bf5a9[_0x1f0eda(0x194)]+_0x5cb02f[_0x1f0eda(0x38f)]),Object['entries'](_0x4bf5a9)[_0x1f0eda(0x1fb)](([_0x56f25b,_0x485524])=>{const _0x3b4fab=_0x1f0eda;typeof _0x485524==_0x3b4fab(0x258)&&(_0x4bf5a9[_0x56f25b]=_0x485524['replace'](/url\(#(.*)\)/,'url(#$1'+_0x5cb02f[_0x3b4fab(0x38f)]+')'));})),_0x4bf5a9;}function Ze(_0x1945c2,_0x4373a7){const _0xaba978=_0x4a1f29;var _0x503987;const {defIds:_0x2b085c}=_0x4373a7;return!_0x2b085c||_0x2b085c[_0xaba978(0x191)]===0x0?_0x1945c2:_0x1945c2[_0xaba978(0x37f)]===_0xaba978(0x35f)&&((_0x503987=_0x1945c2[_0xaba978(0x140)])!=null&&_0x503987[_0xaba978(0x191)])?{..._0x1945c2,'children':_0x1945c2[_0xaba978(0x140)][_0xaba978(0x167)](_0x41be46=>typeof _0x41be46[_0xaba978(0xed)]['id']=='string'&&_0x2b085c&&_0x2b085c[_0xaba978(0x2b0)](_0x41be46[_0xaba978(0xed)]['id'])?{..._0x41be46,'attrs':{..._0x41be46['attrs'],'id':_0x41be46['attrs']['id']+_0x4373a7[_0xaba978(0x38f)]}}:_0x41be46)}:_0x1945c2;}function Qe(){const _0x24e862=_0x4a1f29;return Math[_0x24e862(0x383)]()[_0x24e862(0xe7)](0x24)[_0x24e862(0x329)](0x2,0x8);}pe[_0x4a1f29(0x314)]=_0x4a1f29(0x38e);const et={'tag':_0x4a1f29(0x2de),'attrs':{'xmlns':_0x4a1f29(0x1f1),'fill':_0x4a1f29(0x18b),'viewBox':_0x4a1f29(0xec),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4a1f29(0x129),'attrs':{'stroke':_0x4a1f29(0xe6),'d':_0x4a1f29(0x2da),'strokeLinecap':_0x4a1f29(0xcb),'strokeLinejoin':_0x4a1f29(0xcb),'strokeWidth':1.2}}]},{'tag':_0x4a1f29(0x35f),'attrs':{},'children':[{'tag':_0x4a1f29(0x18f),'attrs':{'id':_0x4a1f29(0x1b1)},'children':[{'tag':'path','attrs':{'fill':_0x4a1f29(0x135),'d':_0x4a1f29(0x1ca)}}]}]}],'defIds':[_0x4a1f29(0x1b1)]},xe=A[_0x4a1f29(0x247)](function(_0x370d09,_0x2367f2){const _0x541172=_0x4a1f29;return A[_0x541172(0x170)](pe,Object[_0x541172(0x1d5)]({},_0x370d09,{'id':_0x541172(0x14e),'ref':_0x2367f2,'icon':et}));});xe['displayName']=_0x4a1f29(0x126);const tt={'tag':_0x4a1f29(0x2de),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4a1f29(0x18b),'viewBox':_0x4a1f29(0x2e6),'width':_0x4a1f29(0x1f7),'height':_0x4a1f29(0x1f7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x4a1f29(0x129),'attrs':{'stroke':_0x4a1f29(0xe6),'d':_0x4a1f29(0x15b),'strokeLinecap':_0x4a1f29(0xcb),'strokeLinejoin':_0x4a1f29(0xcb),'strokeWidth':1.2}}]},{'tag':_0x4a1f29(0x35f),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4a1f29(0x15e)},'children':[{'tag':_0x4a1f29(0x129),'attrs':{'fill':_0x4a1f29(0x135),'d':_0x4a1f29(0x1ca),'transform':_0x4a1f29(0x177)}}]}]}],'defIds':[_0x4a1f29(0x15e)]},Be=A['forwardRef'](function(_0x43dca3,_0x2ad62a){const _0x1d951f=_0x4a1f29;return A['createElement'](pe,Object[_0x1d951f(0x1d5)]({},_0x43dca3,{'id':_0x1d951f(0x209),'ref':_0x2ad62a,'icon':tt}));});Be[_0x4a1f29(0x314)]=_0x4a1f29(0x141);function st(_0x121056){const _0x2563bc=_0x4a1f29;switch(_0x121056){case u[_0x2563bc(0x2b7)][_0x2563bc(0x211)]:return _0x2563bc(0x32d);case u[_0x2563bc(0x2b7)]['CONFLICT']:return'collabStatus.conflict';case u['CollaborationStatus'][_0x2563bc(0x24d)]:return'collabStatus.fetchMiss';case u[_0x2563bc(0x2b7)][_0x2563bc(0x276)]:return _0x2563bc(0x26d);case u[_0x2563bc(0x2b7)][_0x2563bc(0x362)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x2563bc(0x1e4);case u[_0x2563bc(0x2b7)]['SYNCED']:case u[_0x2563bc(0x2b7)][_0x2563bc(0x1de)]:return _0x2563bc(0xea);}}function it(_0x4002ec){const _0x15e83a=_0x4a1f29,{status$:_0x2311f1}=_0x4002ec,_0xca8921=O[_0x15e83a(0x2e7)](_0x2311f1,u['CollaborationStatus'][_0x15e83a(0x276)]),_0x5607bc=O[_0x15e83a(0x2e4)](a[_0x15e83a(0xee)]),_0x347d5f=O[_0x15e83a(0x2e4)](u['CollaborationSessionService']),_0x47f34f=_0xca8921!==u[_0x15e83a(0x2b7)][_0x15e83a(0x211)],_0x457d9c=_0x5607bc['t'](st(_0xca8921)),_0x3df09c=_0x47f34f?M[_0x15e83a(0xd4)](Be,{}):M[_0x15e83a(0xd4)](xe,{}),_0x7b92e2=A[_0x15e83a(0x298)](()=>{const _0x25c879=_0x15e83a;_0x47f34f||_0x347d5f[_0x25c879(0x18d)]();},[_0x47f34f,_0x347d5f]);function _0xf7a62b(){const _0x379cc8=_0x15e83a;return M[_0x379cc8(0x17e)]('div',{'className':_0x379cc8(0x12e),'onClick':_0x7b92e2,'children':[M['jsx'](_0x379cc8(0x1c2),{'className':p[_0x379cc8(0x267)](_0x379cc8(0x21a),{'univer-text-green-500':_0x47f34f,'univer-text-red-500':!_0x47f34f}),'children':_0x3df09c}),M[_0x379cc8(0xd4)](_0x379cc8(0x1c2),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x457d9c})]});}return _0x47f34f?_0xf7a62b():M[_0x15e83a(0xd4)](p['Tooltip'],{'title':_0x5607bc['t'](_0x15e83a(0x2b8)),'children':_0xf7a62b()});}var nt=Object[_0x4a1f29(0xef)],rt=(_0x49e953,_0x2e9db8,_0x292612,_0x43354d)=>{const _0x4e4712=_0x4a1f29;for(var _0x41a8c5=_0x43354d>0x1?void 0x0:_0x43354d?nt(_0x2e9db8,_0x292612):_0x2e9db8,_0x348115=_0x49e953[_0x4e4712(0x191)]-0x1,_0x420122;_0x348115>=0x0;_0x348115--)(_0x420122=_0x49e953[_0x348115])&&(_0x41a8c5=_0x420122(_0x41a8c5)||_0x41a8c5);return _0x41a8c5;},K=(_0x75fe49,_0xce955d)=>(_0x45f32c,_0x4dae91)=>_0xce955d(_0x45f32c,_0x4dae91,_0x75fe49);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x163ec9,_0xe93991,_0x4066f7,_0x49f072){const _0x18ef23=_0x4a1f29;super(),_(this,_0x18ef23(0x205),new I[(_0x18ef23(0x2a0))](u[_0x18ef23(0x2b7)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x163ec9,this['_injector']=_0xe93991,this[_0x18ef23(0x18e)]=_0x4066f7,this[_0x18ef23(0x24b)]=_0x49f072,this[_0x18ef23(0x186)](),this[_0x18ef23(0x350)]());}['_initStatusListener'](){const _0x2c9d76=_0x4a1f29;this['disposeWithMe'](this['_univerInstanceService'][_0x2c9d76(0xf7)][_0x2c9d76(0x2e0)](I[_0x2c9d76(0x102)](()=>{const _0x50f781=_0x2c9d76,_0x2f236c=this['_univerInstanceService'][_0x50f781(0x2b9)]();return _0x2f236c?this['_collaborationController'][_0x50f781(0x1ec)](_0x2f236c[_0x50f781(0x317)]()):I['of'](null);}),I[_0x2c9d76(0x102)](_0x3121f7=>_0x3121f7?_0x3121f7['status$']:I['of'](u[_0x2c9d76(0x2b7)]['NOT_COLLAB'])))[_0x2c9d76(0x31a)](_0x8df8fa=>{const _0x5ebaba=_0x2c9d76;this[_0x5ebaba(0x205)][_0x5ebaba(0x293)](_0x8df8fa);}));}['_initStatusComponent'](){const _0x596744=_0x4a1f29;this[_0x596744(0x344)](this[_0x596744(0x24b)][_0x596744(0x150)](O[_0x596744(0x139)]['HEADER_MENU'],()=>O['connectInjector'](ot({'status$':this[_0x596744(0x205)][_0x596744(0x156)]()}),this[_0x596744(0x1eb)])));}},exports[_0x4a1f29(0x142)]=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x4a1f29(0x20d)](a['Injector'])),K(0x2,a[_0x4a1f29(0x20d)](u[_0x4a1f29(0x281)])),K(0x3,O[_0x4a1f29(0x15a)])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x1b131a){const {status$:_0x3cfc45}=_0x1b131a;return function(){return M['jsx'](it,{'status$':_0x3cfc45});};}const Oe=a[_0x4a1f29(0x31e)](_0x4a1f29(0x22b));var at=Object['getOwnPropertyDescriptor'],ct=(_0x117bd2,_0x43da35,_0x49c712,_0x3874a2)=>{const _0x446e97=_0x4a1f29;for(var _0x116148=_0x3874a2>0x1?void 0x0:_0x3874a2?at(_0x43da35,_0x49c712):_0x43da35,_0x3390ee=_0x117bd2[_0x446e97(0x191)]-0x1,_0x23baad;_0x3390ee>=0x0;_0x3390ee--)(_0x23baad=_0x117bd2[_0x3390ee])&&(_0x116148=_0x23baad(_0x116148)||_0x116148);return _0x116148;},Y=(_0x5a84cf,_0x5ec11d)=>(_0x221c3b,_0x417b46)=>_0x5ec11d(_0x221c3b,_0x417b46,_0x5a84cf);exports[_0x4a1f29(0x334)]=class extends a[_0x4a1f29(0x27c)]{constructor(_0x26e371,_0x3ae72f,_0x4b003a,_0x35d19b,_0x64230c){const _0x597416=_0x4a1f29;super(),this['_urlService']=_0x26e371,this[_0x597416(0x300)]=_0x3ae72f,this[_0x597416(0x1ee)]=_0x4b003a,this[_0x597416(0x296)]=_0x35d19b,_0x64230c?_0x64230c==null||_0x64230c['whenReady']()[_0x597416(0x332)](()=>this[_0x597416(0x280)]()):(this[_0x597416(0x300)][_0x597416(0x270)]('[CollaborationDataLoaderController]',_0x597416(0xe9)),this[_0x597416(0x280)]());}async[_0x4a1f29(0x280)](){const _0xaaa0fe=_0x4a1f29,_0x1e3b9a=this[_0xaaa0fe(0x2e9)][_0xaaa0fe(0x319)](_0xaaa0fe(0x386)),_0x550229=this[_0xaaa0fe(0x2e9)][_0xaaa0fe(0x319)](_0xaaa0fe(0x275)),_0x13d46f=this[_0xaaa0fe(0x2e9)][_0xaaa0fe(0x319)](_0xaaa0fe(0x165));if(!_0x1e3b9a||!_0x550229){this[_0xaaa0fe(0x300)]['debug'](_0xaaa0fe(0x297),_0xaaa0fe(0x2a5));return;}const _0x227927=await this[_0xaaa0fe(0x296)]['loadUnit'](_0x1e3b9a,Number(_0x550229),_0x13d46f);_0x227927&&_0x227927 instanceof a['Workbook']&&this[_0xaaa0fe(0x244)](_0x227927);}async['_setupSubUnitSync'](_0x2100aa){const _0x92961d=_0x4a1f29;await this[_0x92961d(0x2d5)](_0x2100aa),_0x2100aa[_0x92961d(0x1c3)][_0x92961d(0x2e0)](I['takeUntil'](this['dispose$']))['subscribe'](_0x39f57c=>{_0x39f57c&&this['_updateURLWithCurrentState'](_0x39f57c);}),this[_0x92961d(0x2e9)][_0x92961d(0x29d)]['pipe'](I[_0x92961d(0x23b)](this['dispose$']))[_0x92961d(0x31a)](()=>this['_updateSubUnitFromURLParams'](_0x2100aa));}[_0x4a1f29(0x2ce)](_0x19ea05,_0x112bcf=!0x1){const _0x311e80=_0x4a1f29,_0x11976a=this[_0x311e80(0x2e9)][_0x311e80(0x319)]('subunit');_0x19ea05[_0x311e80(0x1c7)]()!==_0x11976a&&this['_urlService']['setParam']('subunit',_0x19ea05[_0x311e80(0x1c7)](),_0x112bcf);}async['_updateSubUnitFromURLParams'](_0x4b5c57){const _0x45a308=_0x4a1f29;var _0x2ac441;const _0x3f589a=this[_0x45a308(0x2e9)]['getParam'](_0x45a308(0x165));if(!_0x3f589a||!_0x4b5c57[_0x45a308(0x1f5)](_0x3f589a)){const _0x5eb63d=_0x4b5c57[_0x45a308(0x340)]()[0x0],_0x502175=_0x4b5c57[_0x45a308(0x1f5)](_0x5eb63d);if(!_0x502175)return;this[_0x45a308(0x2ce)](_0x502175,!0x0),await this[_0x45a308(0x1ee)][_0x45a308(0x26b)](v[_0x45a308(0x119)]['id'],{'unitId':_0x4b5c57[_0x45a308(0x317)](),'subUnitId':_0x5eb63d});return;}((_0x2ac441=_0x4b5c57[_0x45a308(0x2d9)]())==null?void 0x0:_0x2ac441[_0x45a308(0x1c7)]())!==_0x3f589a&&await this['_commandService'][_0x45a308(0x26b)](v[_0x45a308(0x119)]['id'],{'unitId':_0x4b5c57[_0x45a308(0x317)](),'subUnitId':_0x3f589a});}},exports[_0x4a1f29(0x334)]=ct([Y(0x0,Oe),Y(0x1,a[_0x4a1f29(0xcc)]),Y(0x2,a[_0x4a1f29(0x1e6)]),Y(0x3,a[_0x4a1f29(0x20d)](u[_0x4a1f29(0x2e3)])),Y(0x4,a[_0x4a1f29(0x1d8)](qe[_0x4a1f29(0x24f)]))],exports[_0x4a1f29(0x334)]);var lt=Object[_0x4a1f29(0xef)],_t=(_0x230d98,_0x107e28,_0xbc77e1,_0x51f891)=>{const _0x251ede=_0x4a1f29;for(var _0x3f27da=_0x51f891>0x1?void 0x0:_0x51f891?lt(_0x107e28,_0xbc77e1):_0x107e28,_0x944f57=_0x230d98[_0x251ede(0x191)]-0x1,_0x343b28;_0x944f57>=0x0;_0x944f57--)(_0x343b28=_0x230d98[_0x944f57])&&(_0x3f27da=_0x343b28(_0x3f27da)||_0x3f27da);return _0x3f27da;},De=(_0x22e8cf,_0x3594db)=>(_0x28bb6e,_0x3e9d98)=>_0x3594db(_0x28bb6e,_0x3e9d98,_0x22e8cf);function _0x30c0(){const _0x51eb33=['RxDisposable','fromEventSubject','_cursors','_onCursorDelete','_init','CollaborationController','DocIMEInputManagerService','get','releaseFormulaLimitUrl','session.will-retry','_range','transformMutationsWithChangeset','_showGuardMessage','_scheduleClearOtherTimer','_docTransformStateCacheService','searchParams','deepClone','entries','current','ENTITLE_CAN_NOT_BUY_LOWER_OTP','CURRENT_STATUS_CANNOT_OPERATE','cursorInfo','_taskIds','next','formula.calculation.waiting','ENTITLE_COUPON_EXPIRED','_dataLoaderService','[CollaborationDataLoaderController]','useCallback','selections','width','PAYMENT_CHANNEL_NOT_SUPPORT','removeParam','urlChange$','onPointerEnter$','transformRemoteChangeset','BehaviorSubject','_docClipboardService','permission.content','[LogService\x20Error]:\x20','handleInsertCol','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','TEXT','imageSourceType','_pollingInterval','UNAUTHENTICATED','_color','measureText','setShapeProps','Module','ONLINE','_cursor','includes','APPLY_PERMISSION_DENIED','now','_anchorDot','clearTimeout','unitId','entityInit$','CollaborationStatus','collab-client.tooltip.reconnect','getFocusedUnit','_transformPreviousActiveRange','split','blue.400','_memberService','_monkeyPatchLogService','LOGIN_TOKEN_PROCESSING_FAILED','SUBMIT_CHANGESET_TIMEOUT','_handleEvent','getCellMatrix','roomMembers','MUTATION','PERMISSION_DENIED','resize','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_roomMembers$','YUUMI_URL_COL_OUT_OF_RANGE','distinctUntilChanged','LICENSE_IMPORT_SIZE_EXCEEDED','onMouseMove','LICENSE_EXPORT_SIZE_EXCEEDED','_updateURLWithCurrentState','DATA_SOURCE_TOO_LARGE','origin','_unitOnClients','1043490qgRpMd','_lastResponseTimestamp','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_updateSubUnitFromURLParams','setItem','ENTITLE_INSUFFICIENT_QUOTA','_collabSessionService','getActiveSheet','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_httpService','INVITE_CODE_ALREADY_BOUND','LICENSE_DISTRO_REJECTED','svg','FromArray','pipe','toRgbString','IImageIoService','DataLoaderService','useDependency','runOnServer','0\x200\x2017\x2016','useObservable','_onRefRangeChange','_urlService','LOGIN_FAILED','ENTITLE_NEED_BILLING_ADDRESS','_shapes','some','ThemeService','_univerInstanceService','getCurrentUnitForType','currentSkeleton$','collaboration.offline-data-not-saved','sessionStatus$','_handleHeartbeatEvent','_revisionService','color','_registerRenderDependencies','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_docSkeletonManagerService','INVITE_CODE_HAS_BEEN_UES','_initUnhandledRejectionListener','CLOSE_ROOM','removeEventListener','delete','Injector','_logService','NOT_FOUND','bind','row','UNIVER_SHEET','ENTITLE_REPORT_LIMIT_EXCEED','_collaborationSessionService','memberID','fillStyle','getUnit','generateRandomId','setParam','MOBILE_VERIFY_CODE_MISMATCH','INTERNAL_ERROR','isActive','newValue','_handleHover','getTypeOfUnitAdded$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','dispose','displayName','_getSaveTimeout','LOCAL_CACHE_INTERVAL_KEY','getUnitId','_removeCollabCursors','getParam','subscribe','Rectangle','_sheetSkeletonManagerService','/universer-api/license/formula/limit/status','createIdentifier','getVpScrollXYInfoByPosToVp','docStateChange$','collaboration.closeRoom','_colorAssignService','key','setInterval','_doCreateSocket','YUUMI_NO_CUBOID_FOR_QUESTION','history','stage','substring','lineno','range','createInstance','collabStatus.offline','_transformHistoryAndStateStack','use','_textBubble','collab-text-anchor-','then','IRenderManagerService','CollaborationDataLoaderController','syncEditingCollabCursor','enableFrontendLog','REDEMPTION_USER_NOT_ELIGIBLE','_session','EMAIL_VERIFY_CODE_MISMATCH','_toggleOffline','ENTITLE_DUP_SUBSCRIPTION','join','engine','_getAnchorBounding','send','getUnhiddenWorksheets','DocCollaborationEntity','transformStateCache','getCellPositionByOffset','disposeWithMe','Shape','handleMoveRange','IConfigService','_name','addEventListener','_localeService','updateOfflineData','_cursorShapes','saveTaskMap','_docStateChangeManagerService','hide','_initStatusListener','_getMergeRange','restore','saveImage','_localStorageService','_removeClearOtherTimer','_docSyncEditingCollabCursorService','_getScale','_heartbeatTimer','addObject','parseInt','setTimeout','UnitStatus','_entities','getCollabCursors$','defs','getCurrentRevOfUnit','closePath','AWAITING','ISnapshotServerService','subUnitId','merge','AUTHORIZE_CODE_ILLEGAL','_transformService','_config','location','backgroundColor','m2Prime','pushState','APPLY_REJECT','COMPLETION_FINISHED','ENTITLE_INVALID_COUPON_CODE','handleDeleteRangeMoveUp','pluginName','_checkCalculationAvailable','with','getTypeOfUnitDisposed$','_renderManagerService','DependentOn','serializeRangeWithSheet','#FFF','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','UniverCollaborationClientUIPlugin','_notificationService','unsubscribe','_configService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','tag','_refreshCollabCursors','sessionTicket','defIds','random','_registerDependencies','_initCommandInterceptor','unit','_initDependencies','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','executionId','onTransformChange$','RevisionService','YUUMI_AI_RUN_FAILED','registerRenderModule','UniverIcon','idSuffix','INVALID_INVITE_CODE','_docTransformIMECacheService','_hover','OTHER_CLIENT_EDITING','debounce','SetTextSelectionsOperation','_createSocketURL','_beforeCloseService','ERROR_AGAIN','44379648bKergz','ranges','getMemberID','addClipboardHook','EMAIL_HAS_BEEN_BOUND','redoState','round','ILogService','NO_OTHER_CLIENTS_EDITING','handleIRemoveRow','_unitStatus','RECT','filter','find','YUUMI_UNABLE_LOAD_URL','jsx','/universer-api/license/formula/limit/start','NodePositionConvertToRectRange','SetSelectionsOperation','USER_IS_ANONYMOUS','RemoveColCommandId','undoState','SOCKET_FAILED_RETRY','formula.calculation.started','_getSessionTicket','stageInfo','Unknown\x20user','Plugin','socket$','EffectRefRangId','drawWith','_id','_colorIndex','currentColor','toString','save','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collabStatus.synced','YUUMI_RATE_OVER_LIMIT','0\x200\x2016\x2016','attrs','LocaleService','getOwnPropertyDescriptor','getRenderById','stringify','_cursorInfo$','all','invokeId','href','ENSURE_SNAPSHOT_EXECUTION','focused$','_entityInit$','throttleTime','max','getValue','YUUMI_TABLE_NOT_FOUND_IN_UNIT','SNAPSHOT_HAS_BEEN_REMOVED','UPDATE_CURSOR','Rect','runId','_startDocCollabCursor','switchMap','popstate','message','collab-text-range-','ALREADY_EXISTS','fillText','_currentUsage','56gdlCDz','getCoordByCell','_context','IMessageService','event$','_messageService','YUUMI_CONNECTOR_URL_NOT_FOUND','/universer-api/frontend/logs','getSkeleton','stack','reason','has','_clearOtherTimers','_docSkeleton','CONNECTOR_DATA_TOO_LARGE','mask','SetWorksheetActivateCommand','ENTITLE_CHAT_LIMIT_EXCEED','PY_RUNTIME_SCRIPT_ERROR','DEFAULT_WS_SESSION_TICKET_URL','COLORS','rgba(255,\x20255,\x20255,\x200.01)','name','_collaborationUIEventService','handleInsertRangeMoveDown','CollaborationUIEventService','textRanges','_setupBeforeClosingHandler','sheetID','OffLineIcon','ILocalCacheService','_checkAndWaitForCalculationPermission','path','SetFormulaCalculationNotificationMutation','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','subscribeEvent','saveOfflineData','univer-flex\x20univer-items-center','USER_NOT_INVITED_CODE','setUndoRedoMutationParamsCache','ITransformService','_labelPosition','_collabCursorState$','add','white','fill','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_collabCursorController','BuiltInUIPart','limitInfo','/run/','UniverCollaborationClientPlugin','getColorFromTheme','\x20at\x20','size','children','OnLineIcon','DesktopCollaborationStatusDisplayController','DeleteRangeMoveLeftCommandId','triggerDblclick','result','WECHAT_HAS_BEEN_BOUND','APPLY_DUPLICATED','INVITE_CODE_REQUIRED','labelPosition','APPLY_REVISION_CONFILICT','doc.mutation.rich-text-editing','VIEW_MAIN','MessageType','off-line-icon','Disposable','registerComponent','DocSelectionManagerService','CanceledError','getUndoRedoMutationParamsCache','IURLService','_document','asObservable','clearInterval','_getFormulaLimitStatus','ACTIVE_UNIT_EVENT_CHANNEL','IUIPartsService','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','setAlpha','_drawTextRange','on-line-icon_clip0_910_349','CommandType','WebURLService','show','_assignedColors','isTransformMutationFailure','unshift','subunit','transformIMECache','map','INotificationService','Tools','DOC_RANGE_TYPE','2054428pksMcV','shareReplay','_hasFormulaInDirtyRanges','REDEMPTION_INVALID_CODE','isTransformMutationsWithChangesetSuccess','createElement','loadOfflineData','startRow','override','_saveTaskMap','text','getCurrentSelections','translate(.97)','currentUsage','SessionStatus','mapTo','_saveCache','toDisposable','registerRefRange','jsxs','getStateCache','_maxFormulaLimit','handleInsertRangeMoveRight','_anchor','push','beginPath','Warning','_initStatusComponent','_scene','ENTITLE_USE_COUPON_NOT_1ST_TRADE','onRendered','jiqing.500','none','post','reconnect','_collaborationController','clipPath','values','length','transformMutation','set','xlink:href','Error','InsertRangeMoveDownCommandId','IUniverInstanceService','REDEMPTION_CODE_HAS_BEEN_CREATED','_updateCollabCursors','onPointerLeave$','getColor','MemberService','error','SHEET_VIEWPORT_KEY','ISocketService','_setFormulaLimitStatus','code','_getSheetObject','complete','requireSession','getRelativeToViewportCoord','YUUMI_SUBSCRIPTION_NOT_FOUND','session.collaboration-timeout','LICENSE_MAX_UNITS_EXCEEDED','getConfig','REDEMPTION_CODE_FULLY_REDEEMED','BrowserCollaborationSocketService','_scheduleSaving','findNodePositionByCharIndex','SOCKET_FAILED','UNIVER_DOC','column','off-line-icon_clip0_910_343','JOIN_ROOM_FAILED','CollaborationSocketService','_scheduleHeartbeat','unhandledrejection','wsSessionTicketUrl','addObjects','MOBILE_HAS_BEEN_BOUND','_initEntityListener','toStringTag','unitID','WebBrowserSingleActiveUnitService','DocStateChangeManagerService','REDEMPTION_CODE_INACTIVE','RegularPolygon','_transformUndoRedoStack','_syncEditingCollabCursorService','div','activeSheet$','colorChannel1','colno','_render','getSheetId','combineLatest','evenodd','M0\x200H16V16H0z','exhaustSavingTask','params','UNRECOGNIZED','_lastPointer','parse','[Unhandled\x20Rejection]:\x20','disableLocalCache','addHandlerCallback','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','permission.title','assign','enableLocalCache','formula.calculation.unable','Optional','green.600','getUniverSheetInstance','CollaborationUIEventId','fromEvent','disposeUnit','PENDING','getAncestorScale','NodePositionConvertToCursor','lineTo','ColorKit','_initResize','collabStatus.syncing','_onCursorUpdate','ICommandService','_initCommandExecutedListener','trim','HTTPService','_send','_injector','getCollabEntity$','from','_commandService','getMember','data','http://www.w3.org/2000/svg','START_CALCULATION','YUUMI_ASYNCIO_CANCELLED','_instanceService','getSheetBySheetId','_backgroundColor','1em','_toggleOnline','_docTransformSelectionsService','functionsExecutedState','forEach','black','getRangePointData','_handleJoinEvent','_cachedData','skeleton','SNAPSHOT_INVALID_SNAPSHOT','_refRangeService','UNDEFINED','_selfUnitIDs','_status$','TOO_MANY_REQUESTS','body','RemoteUniscriptService','on-line-icon','font','INVALID_ARGUMENT','_updateLocalCursor','Inject','IDocClipboardService','SUCCESS','height','OFFLINE','SheetCollabCursorShape','REDEMPTION_CODE_NOT_STARTED','_online','426wzoXsB','startColumn','dispose$','onLocalMutation','deserializeRangeWithSheet','univer-mr-2\x20univer-flex\x20univer-text-xl','useRef','handleDeleteRangeMoveLeft','_disabled','_draw','cursorInfo$','_eventUnsubscribe','_imageIoService','mutations','arc','init','contains','_uploadLog','USER_NOT_FOUND','onCommandExecuted','setStateCache','_clearPolling','uni.network.url-service','_releaseCalculationLimit','1155308mWhiQT','moveTo','collabCursorState$','sheetId','SheetSkeletonManagerService','_localCacheService','isFormulaString','onStarting','ticket','_memberID','1904608VNjPqY','_drawAnchor','eventID','FormulaExecuteStageType','takeUntil','Success','_startCalculationLimit','endColumn','USERS_LEAVE','CollaborationSessionService','8862khbMYW','replaceDocRanges','...','_setupSubUnitSync','_ensureSubject','OTHER_CLIENTS_EDITING','forwardRef','transformByState','debounceTime','CHANGESET_REVISION_CONFILICT','_uiPartsService','unload','FETCH_MISS','session.connection-failed','IRemoteInstanceService','url(#$1','makeDirty','_initEvent','defineProperty','_initWindowErrorListener','_hideTimer','beforeCommandExecuted','68505lpiWOH','string','FormulaExecutedStateType','setActiveRange','_hovered','ENTITLE_COUPON_USED_UP','Loading','UniverInstanceType','transform','getDocRanges','TEXT_RANGE_LAYER_INDEX','storage','currentTheme$','selection','m1Prime','CollaborationEvent','clsx','WebSocketService','isArray','_applyCommand','executeCommand','getUnitStatus$','collabStatus.notCollab','roomMembers$','createSocket','debug','Vector2','_themeService','_initUserListener','[Window\x20Error]:\x20','type','NOT_COLLAB','bottom','_startSheetCollabCursor','Failed','setConfig','YUUMI_ALL_TABLES_IS_INVALID'];_0x30c0=function(){return _0x51eb33;};return _0x30c0();}let me=class extends a[_0x4a1f29(0x27c)]{constructor(_0x441cfa,_0x2da13d){const _0x16059b=_0x4a1f29;super(),this[_0x16059b(0x2a1)]=_0x441cfa,this[_0x16059b(0x221)]=_0x2da13d,this['_init']();}['_init'](){const _0x2edabf=_0x4a1f29,_0x1ee742=this;this[_0x2edabf(0x344)](this[_0x2edabf(0x2a1)][_0x2edabf(0xc8)]({'onBeforePasteImage':async _0x555dd5=>{const _0x44d601=_0x2edabf,_0x3a5833=await _0x1ee742[_0x44d601(0x221)][_0x44d601(0x353)](_0x555dd5);return _0x3a5833?{'source':_0x3a5833['source'],'imageSourceType':_0x3a5833[_0x44d601(0x2a7)]}:null;}}));}};me=_t([De(0x0,T[_0x4a1f29(0x20e)]),De(0x1,ze[_0x4a1f29(0x2e2)])],me);const Ne=['purple.300',_0x4a1f29(0x18a),_0x4a1f29(0x1d9),'red.300',_0x4a1f29(0x2bc),'yellow.400'];class Re extends a[_0x4a1f29(0x14f)]{constructor(){const _0x3276ad=_0x4a1f29;super(...arguments),_(this,_0x3276ad(0x162),new Map()),_(this,_0x3276ad(0xe5),0x0);}['assignAColorForMemberID'](_0x5e343d){const _0x13e490=_0x4a1f29;if(this['_assignedColors'][_0x13e490(0x114)](_0x5e343d))return this[_0x13e490(0x162)]['get'](_0x5e343d);const _0x14960a=Ne[this[_0x13e490(0xe5)]];return this['_colorIndex']=(this[_0x13e490(0xe5)]+0x1)%Ne[_0x13e490(0x191)],this['_assignedColors'][_0x13e490(0x193)](_0x5e343d,_0x14960a),_0x14960a;}}function Fe(_0x5e716e){let _0x4bfc06='';for(const _0x2fac25 of _0x5e716e){const {startOffset:_0x595cb9,endOffset:_0x5aa64a,isActive:_0x33e507,rangeType:_0x3f4490,segmentId:_0x17759c,segmentPage:_0x532210}=_0x2fac25;_0x4bfc06['length']&&(_0x4bfc06+=','),_0x4bfc06+=_0x595cb9+':'+_0x5aa64a+':'+(_0x33e507?'1':'0')+':'+_0x3f4490+':'+_0x17759c+':'+_0x532210;}return _0x4bfc06;}function ht(_0x10a021){const _0x393a01=_0x4a1f29,_0x57787a=_0x10a021[_0x393a01(0x2bb)](','),_0x58b933=[];for(const _0x4b090b of _0x57787a){const [_0x40f113,_0x142916,_0x4f489a,_0x214330,_0x3050ce,_0x3ddab8]=_0x4b090b[_0x393a01(0x2bb)](':');_0x58b933[_0x393a01(0x183)]({'startOffset':Number(_0x40f113),'endOffset':Number(_0x142916),'collapsed':_0x40f113===_0x142916,'isActive':_0x4f489a==='1','rangeType':_0x214330===a['DOC_RANGE_TYPE'][_0x393a01(0x2a6)]?a[_0x393a01(0x16a)][_0x393a01(0x2a6)]:a[_0x393a01(0x16a)][_0x393a01(0xd0)],'segmentId':typeof _0x3050ce==_0x393a01(0x258)?String(_0x3050ce):'','segmentPage':Number(_0x3ddab8!=null?_0x3ddab8:-0x1)});}return _0x58b933[_0x393a01(0x2ed)](_0x411f71=>_0x411f71[_0x393a01(0x30e)])||(_0x58b933[0x0][_0x393a01(0x30e)]=!0x0),_0x58b933;}class be extends a['RxDisposable']{constructor(){const _0x30f871=_0x4a1f29;super(...arguments),_(this,_0x30f871(0x133),new I[(_0x30f871(0x2a0))](null)),_(this,_0x30f871(0x22f),this[_0x30f871(0x133)][_0x30f871(0x156)]());}[_0x4a1f29(0x335)](_0x25c818){const _0x25eaf5=_0x4a1f29,{unitID:_0xdef078,memberID:_0x2b8269,textRanges:_0x39d15e}=_0x25c818,_0x2cbe49=Fe(_0x39d15e);if(_0x2cbe49==='')return;const _0x3123b3={'unitID':_0xdef078,'memberID':_0x2b8269,'selection':_0x2cbe49};this[_0x25eaf5(0x133)]['next'](_0x3123b3);}}var ut=Object[_0x4a1f29(0xef)],It=(_0x554bd9,_0x4fe099,_0x4c0288,_0x9da521)=>{for(var _0x52befa=_0x9da521>0x1?void 0x0:_0x9da521?ut(_0x4fe099,_0x4c0288):_0x4fe099,_0x2b3c59=_0x554bd9['length']-0x1,_0x7b3d63;_0x2b3c59>=0x0;_0x2b3c59--)(_0x7b3d63=_0x554bd9[_0x2b3c59])&&(_0x52befa=_0x7b3d63(_0x52befa)||_0x52befa);return _0x52befa;},U=(_0x4fb573,_0x58b0f0)=>(_0x5c6486,_0x3ee0b2)=>_0x58b0f0(_0x5c6486,_0x3ee0b2,_0x4fb573);const St=0x12c,dt=0x64;function _0x1f3f(_0x4ed2d7,_0x5c3f6c){_0x4ed2d7=_0x4ed2d7-0xbf;const _0x30c084=_0x30c0();let _0x1f3f1b=_0x30c084[_0x4ed2d7];return _0x1f3f1b;}let ve=class extends a[_0x4a1f29(0x27c)]{constructor(_0x377048,_0x195a69,_0x1c04d7,_0x1e0ba1,_0x244ef2,_0x41e1e5,_0x31caaf,_0x354567,_0x338d41){const _0x573281=_0x4a1f29;super(),_(this,_0x573281(0x214),!0x1),_(this,_0x573281(0x280),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x573281(0x21f),this[_0x573281(0xf2)]['asObservable']()),_(this,_0x573281(0x2c8),new I[(_0x573281(0x2a0))]([])),_(this,_0x573281(0x26e),this['_roomMembers$'][_0x573281(0x2e0)](I['debounceTime'](St))),_(this,_0x573281(0x20c),a[_0x573281(0xc0)](_0x1f1759=>{const _0x3a0184=_0x573281,_0xa3bdb2={'eventID':g['CollaborationEvent'][_0x3a0184(0xfe)],'data':{'unitID':this[_0x3a0184(0x1bb)],'memberID':this[_0x3a0184(0x338)]['getMemberID'](),'selection':Fe(_0x1f1759)}};this[_0x3a0184(0x338)][_0x3a0184(0x33f)](_0xa3bdb2,this['unitID']);},dt)),(this['unitID']=_0x377048,this[_0x573281(0x338)]=_0x195a69,this[_0x573281(0x1eb)]=_0x1c04d7,this['_colorAssignService']=_0x1e0ba1,this[_0x573281(0x2bd)]=_0x244ef2,this[_0x573281(0x1c1)]=_0x41e1e5,this[_0x573281(0x367)]=_0x31caaf,this[_0x573281(0x2ef)]=_0x354567,this[_0x573281(0x1ee)]=_0x338d41);}get[_0x4a1f29(0x291)](){const _0xb5a81e=_0x4a1f29;return this[_0xb5a81e(0xf2)][_0xb5a81e(0xfb)]();}get[_0x4a1f29(0x2c3)](){const _0x1aa0bb=_0x4a1f29;return this[_0x1aa0bb(0x2c8)][_0x1aa0bb(0xfb)]();}[_0x4a1f29(0x313)](){const _0x59c804=_0x4a1f29;super['dispose'](),this[_0x59c804(0xf2)][_0x59c804(0x293)](new Map()),this[_0x59c804(0xf2)][_0x59c804(0x1a3)](),this[_0x59c804(0x2c8)][_0x59c804(0x293)]([]),this[_0x59c804(0x2c8)]['complete']();}[_0x4a1f29(0x224)](){const _0x428e62=_0x4a1f29;this[_0x428e62(0x280)]||(this['_init']=!0x0,this[_0x428e62(0x338)][_0x428e62(0x2f3)][_0x428e62(0x2e0)](I[_0x428e62(0x23b)](this['dispose$']))['subscribe'](_0x13863f=>{const _0x3a0eda=_0x428e62;_0x13863f===u[_0x3a0eda(0x179)]['ONLINE']?this[_0x3a0eda(0x1f8)]():this[_0x3a0eda(0x33a)]();}),this[_0x428e62(0x338)][_0x428e62(0x10d)][_0x428e62(0x2e0)](I[_0x428e62(0x23b)](this[_0x428e62(0x217)]))[_0x428e62(0x31a)](_0x3590b4=>{const _0x292a3e=_0x428e62,_0x4d2e9b=_0x3590b4[_0x292a3e(0x239)];_0x4d2e9b===g[_0x292a3e(0x266)][_0x292a3e(0xfe)]&&this[_0x292a3e(0x1e5)](_0x3590b4),_0x4d2e9b===g[_0x292a3e(0x266)]['USERS_LEAVE']&&this[_0x292a3e(0x27f)](_0x3590b4);}),this['disposeWithMe'](this[_0x428e62(0x1ee)][_0x428e62(0x228)](_0x501755=>{const _0x5d13c9=_0x428e62,_0x466a88=_0x501755[_0x5d13c9(0x1cc)];_0x466a88!=null&&this[_0x5d13c9(0x214)]&&_0x501755['id']===V[_0x5d13c9(0xc1)]['id']&&_0x466a88[_0x5d13c9(0x2b5)]===this[_0x5d13c9(0x1bb)]&&_0x466a88['isEditing']===!0x1&&_0x466a88[_0x5d13c9(0xc6)]['length']>0x0&&this[_0x5d13c9(0x20c)](_0x466a88[_0x5d13c9(0xc6)]);})),this[_0x428e62(0x1c1)][_0x428e62(0x22f)]['pipe'](I[_0x428e62(0x23b)](this['dispose$']))[_0x428e62(0x31a)](_0x5f0411=>{const _0x591108=_0x428e62;if((_0x5f0411==null?void 0x0:_0x5f0411['unitID'])!==this[_0x591108(0x1bb)])return;const _0x882a12={'eventID':g[_0x591108(0x266)][_0x591108(0xfe)],'data':_0x5f0411};this['_onCursorUpdate'](_0x882a12);}),this[_0x428e62(0x344)](this[_0x428e62(0x1ee)][_0x428e62(0x228)](_0x552d78=>{const _0x588962=_0x428e62;if(_0x552d78['params']==null)return;const _0x6f21e=_0x552d78['params'];if(_0x552d78['id']!==V['RichTextEditingMutation']['id']||_0x6f21e['unitId']!==this['unitID'])return;const _0x48396a={'id':_0x588962(0x14b),'params':_0x6f21e},_0x4be689=this[_0x588962(0x291)];for(const [_0x5b4893,_0x5ed912]of _0x4be689){const _0x5e8602={'id':_0x588962(0x14b),'params':{'unitId':this[_0x588962(0x1bb)],'actions':null,'textRanges':_0x5ed912[_0x588962(0xc6)]}},_0x3d5056=this['_transformService'][_0x588962(0x192)](_0x48396a,_0x5e8602,!0x1);if(g[_0x588962(0x163)](_0x3d5056))throw _0x3d5056[_0x588962(0x19d)];_0x4be689[_0x588962(0x193)](_0x5b4893,{..._0x5ed912,'ranges':_0x3d5056['m2Prime']['params']['textRanges']});}queueMicrotask(()=>{const _0x27aef3=_0x588962;this[_0x27aef3(0xf2)]['next'](_0x4be689);});})));}[_0x4a1f29(0x1e5)](_0xc67a97){const _0x27ee51=_0x4a1f29;var _0x2b0934,_0x35486e;const {memberID:_0x238001,selection:_0x11f539}=_0xc67a97['data'],_0x589027=ht(_0x11f539),_0xe82dbc=(_0x35486e=(_0x2b0934=this[_0x27ee51(0x2bd)][_0x27ee51(0x1ef)](this[_0x27ee51(0x1bb)],_0x238001))==null?void 0x0:_0x2b0934[_0x27ee51(0x11f)])!=null?_0x35486e:_0x27ee51(0xdf),_0x13a01a={'color':this[_0x27ee51(0x322)]['assignAColorForMemberID'](_0x238001),'name':_0xe82dbc,'ranges':_0x589027},_0xf9f086=this[_0x27ee51(0x291)];_0xf9f086[_0x27ee51(0x193)](_0x238001,_0x13a01a),this[_0x27ee51(0xf2)][_0x27ee51(0x293)](_0xf9f086);}[_0x4a1f29(0x27f)](_0x455c6a){const _0x34024b=_0x4a1f29,{memberID:_0xcf7e52}=_0x455c6a[_0x34024b(0x1f0)],_0x1f0b95=this[_0x34024b(0x291)];_0x1f0b95['delete'](_0xcf7e52),this['_cursorInfo$']['next'](_0x1f0b95);}['_toggleOnline'](){const _0x209721=_0x4a1f29;var _0x150727;if(this[_0x209721(0x214)]=!0x0,((_0x150727=this[_0x209721(0x2ef)]['getFocusedUnit']())==null?void 0x0:_0x150727[_0x209721(0x317)]())!==this[_0x209721(0x1bb)])return;const _0x44486a=this[_0x209721(0x1eb)]['get'](V[_0x209721(0x151)])[_0x209721(0x260)]();Array[_0x209721(0x269)](_0x44486a)&&_0x44486a[_0x209721(0x191)]>0x0&&this[_0x209721(0x20c)](_0x44486a);}[_0x4a1f29(0x33a)](){const _0x2dda58=_0x4a1f29;this[_0x2dda58(0x214)]=!0x1;}};ve=It([U(0x2,a['Inject'](a[_0x4a1f29(0x2ff)])),U(0x3,a[_0x4a1f29(0x20d)](Re)),U(0x4,a['Inject'](u[_0x4a1f29(0x19c)])),U(0x5,a[_0x4a1f29(0x20d)](be)),U(0x6,g[_0x4a1f29(0x131)]),U(0x7,a[_0x4a1f29(0x197)]),U(0x8,a[_0x4a1f29(0x1e6)])],ve);var ft=Object[_0x4a1f29(0xef)],mt=(_0x6441e1,_0x1935f7,_0x141453,_0x4a5393)=>{const _0x3ef17e=_0x4a1f29;for(var _0x5630b5=_0x4a5393>0x1?void 0x0:_0x4a5393?ft(_0x1935f7,_0x141453):_0x1935f7,_0x365ccc=_0x6441e1[_0x3ef17e(0x191)]-0x1,_0x2b05df;_0x365ccc>=0x0;_0x365ccc--)(_0x2b05df=_0x6441e1[_0x365ccc])&&(_0x5630b5=_0x2b05df(_0x5630b5)||_0x5630b5);return _0x5630b5;},w=(_0x9a7015,_0x546c56)=>(_0x35291c,_0x861561)=>_0x546c56(_0x35291c,_0x861561,_0x9a7015);const vt=0x12c,gt=0x64,Et=()=>{let _0x263292=[],_0x2d899a=!0x1;return _0x885c65=>{_0x263292['push'](_0x885c65),_0x2d899a||(_0x2d899a=!0x0,setTimeout(()=>{const _0x14bb3d=_0x1f3f;_0x263292[_0x14bb3d(0x1fb)](_0x9ce0fd=>_0x9ce0fd()),_0x263292=[],_0x2d899a=!0x1;}));};};let ge=class extends a[_0x4a1f29(0x27c)]{constructor(_0x389104,_0x3feb72,_0x12e368,_0x588ad8,_0x50f4ae,_0x572206,_0x4d0e11,_0x5f0a80){const _0x10d60c=_0x4a1f29;super(),_(this,_0x10d60c(0x214),!0x1),_(this,'_init',!0x1),_(this,_0x10d60c(0xf2),new I[(_0x10d60c(0x2a0))](new Map())),_(this,'cursorInfo$',this[_0x10d60c(0xf2)]['asObservable']()),_(this,_0x10d60c(0x2c8),new I[(_0x10d60c(0x2a0))]([])),_(this,'roomMembers$',this['_roomMembers$'][_0x10d60c(0x2e0)](I[_0x10d60c(0x249)](vt))),_(this,'_updateLocalCursor',a[_0x10d60c(0xc0)]((_0x47f60b,_0x4a9738)=>{const _0x543299=_0x10d60c,_0x9732e9={'eventID':g[_0x543299(0x266)][_0x543299(0xfe)],'data':{'unitID':this[_0x543299(0x1bb)],'memberID':this[_0x543299(0x338)][_0x543299(0xc7)](),'selection':B[_0x543299(0x377)](_0x47f60b,_0x4a9738[_0x543299(0x32b)])}};this[_0x543299(0x338)]['send'](_0x9732e9,this[_0x543299(0x1bb)]);},gt)),(this[_0x10d60c(0x1bb)]=_0x389104,this[_0x10d60c(0x338)]=_0x3feb72,this[_0x10d60c(0x1eb)]=_0x12e368,this[_0x10d60c(0x322)]=_0x588ad8,this[_0x10d60c(0x2bd)]=_0x50f4ae,this['_univerInstanceService']=_0x572206,this[_0x10d60c(0x1ee)]=_0x4d0e11,this[_0x10d60c(0x202)]=_0x5f0a80);}get[_0x4a1f29(0x291)](){const _0x47a859=_0x4a1f29;return this[_0x47a859(0xf2)]['getValue']();}get['roomMembers'](){const _0x21318f=_0x4a1f29;return this[_0x21318f(0x2c8)]['getValue']();}[_0x4a1f29(0x313)](){const _0x52d4ed=_0x4a1f29;super[_0x52d4ed(0x313)](),this['_cursorInfo$'][_0x52d4ed(0x293)](new Map()),this['_cursorInfo$'][_0x52d4ed(0x1a3)](),this[_0x52d4ed(0x2c8)][_0x52d4ed(0x293)]([]),this[_0x52d4ed(0x2c8)]['complete']();}[_0x4a1f29(0x224)](){const _0x2f0e70=_0x4a1f29;this['_init']||(this[_0x2f0e70(0x280)]=!0x0,this[_0x2f0e70(0x338)][_0x2f0e70(0x2f3)][_0x2f0e70(0x2e0)](I[_0x2f0e70(0x23b)](this['dispose$']))[_0x2f0e70(0x31a)](_0x117413=>{const _0x293b22=_0x2f0e70;_0x117413===u[_0x293b22(0x179)][_0x293b22(0x2ae)]?this[_0x293b22(0x1f8)]():this[_0x293b22(0x33a)]();}),this['_session'][_0x2f0e70(0x10d)]['pipe'](I[_0x2f0e70(0x23b)](this[_0x2f0e70(0x217)]))[_0x2f0e70(0x31a)](_0x15a9d7=>{const _0x9327de=_0x2f0e70,_0x19ea00=_0x15a9d7[_0x9327de(0x239)];_0x19ea00===g['CollaborationEvent'][_0x9327de(0xfe)]&&this[_0x9327de(0x1e5)](_0x15a9d7),_0x19ea00===g[_0x9327de(0x266)][_0x9327de(0x23f)]&&this[_0x9327de(0x27f)](_0x15a9d7);}),this[_0x2f0e70(0x2e8)](),this[_0x2f0e70(0x344)](this[_0x2f0e70(0x1ee)][_0x2f0e70(0x228)](_0x54ea55=>{const _0x736028=_0x2f0e70;if(this[_0x736028(0x214)]&&_0x54ea55['id']===v[_0x736028(0xd7)]['id']&&_0x54ea55[_0x736028(0x1cc)]['unitId']===this[_0x736028(0x1bb)]){const _0x1a27a2=_0x54ea55[_0x736028(0x1cc)];this[_0x736028(0x20c)](_0x1a27a2[_0x736028(0x364)],_0x1a27a2[_0x736028(0x299)][0x0]);}})));}['_onCursorUpdate'](_0x418fcf){const _0x2cb659=_0x4a1f29;var _0x2f7c44,_0x307a67;const {memberID:_0x116de2,selection:_0x1b4efd}=_0x418fcf[_0x2cb659(0x1f0)],{sheetName:_0x5388c9,range:_0x1de47b}=B[_0x2cb659(0x219)](_0x1b4efd),_0x4f2f0f={'name':(_0x307a67=(_0x2f7c44=this[_0x2cb659(0x2bd)][_0x2cb659(0x1ef)](this['unitID'],_0x116de2))==null?void 0x0:_0x2f7c44[_0x2cb659(0x11f)])!=null?_0x307a67:_0x2cb659(0xdf),'range':this[_0x2cb659(0x351)](_0x5388c9,_0x1de47b),'sheetID':_0x5388c9,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x116de2),'selection':_0x1b4efd},_0x4ed647=this[_0x2cb659(0x291)];_0x4ed647[_0x2cb659(0x193)](_0x116de2,_0x4f2f0f),this[_0x2cb659(0xf2)][_0x2cb659(0x293)](_0x4ed647);}[_0x4a1f29(0x27f)](_0x36f545){const _0x2174af=_0x4a1f29,{memberID:_0x136267}=_0x36f545[_0x2174af(0x1f0)],_0x4af075=this[_0x2174af(0x291)];_0x4af075[_0x2174af(0x2fe)](_0x136267),this[_0x2174af(0xf2)][_0x2174af(0x293)](_0x4af075);}[_0x4a1f29(0x351)](_0x211b12,_0x26f113){const _0x270e5a=_0x4a1f29;var _0x3c853e,_0x3f6ccd;const _0x279906=(_0x3f6ccd=(_0x3c853e=this['_univerInstanceService'][_0x270e5a(0x1da)](this[_0x270e5a(0x1bb)]))==null?void 0x0:_0x3c853e['getSheetBySheetId'](_0x211b12))==null?void 0x0:_0x3f6ccd['getMergeData']();return(_0x279906==null?void 0x0:_0x279906[_0x270e5a(0xd2)](_0x35e0e1=>a[_0x270e5a(0x31b)][_0x270e5a(0x225)](_0x35e0e1,_0x26f113)))||_0x26f113;}[_0x4a1f29(0x2e8)](){const _0x2a6fe5=_0x4a1f29,_0x381933=new a['DisposableCollection'](),_0x2ced39=Et(),_0x3bd696=()=>{const _0x11a6ef=_0x1f3f;_0x381933[_0x11a6ef(0x313)]();const _0x3d276e=(_0x305f88,_0xa90154,_0x163b70,_0x582027)=>{const _0x4ca771=_0x11a6ef;let _0x3d304d=[];switch(_0x305f88['id']){case v[_0x4ca771(0xe2)][_0x4ca771(0x143)]:{_0x3d304d=v[_0x4ca771(0x21c)](_0x305f88,_0x582027);break;}case v[_0x4ca771(0xe2)]['DeleteRangeMoveUpCommandId']:{_0x3d304d=v[_0x4ca771(0x370)](_0x305f88,_0x582027);break;}case v[_0x4ca771(0xe2)]['InsertColCommandId']:{_0x3d304d=v[_0x4ca771(0x2a4)](_0x305f88,_0x582027);break;}case v[_0x4ca771(0xe2)][_0x4ca771(0x196)]:{_0x3d304d=v[_0x4ca771(0x121)](_0x305f88,_0x582027);break;}case v[_0x4ca771(0xe2)]['InsertRangeMoveRightCommandId']:{_0x3d304d=v[_0x4ca771(0x181)](_0x305f88,_0x582027);break;}case v['EffectRefRangId']['InsertRowCommandId']:{_0x3d304d=v['handleInsertRow'](_0x305f88,_0x582027);break;}case v[_0x4ca771(0xe2)]['MoveRangeCommandId']:{_0x3d304d=v[_0x4ca771(0x346)](_0x305f88,_0x582027);break;}case v['EffectRefRangId'][_0x4ca771(0xd9)]:{_0x3d304d=v['handleIRemoveCol'](_0x305f88,_0x582027);break;}case v[_0x4ca771(0xe2)]['RemoveRowCommandId']:{_0x3d304d=v[_0x4ca771(0xce)](_0x305f88,_0x582027);break;}}const _0x7f76e5=v['runRefRangeMutations'](_0x3d304d,_0x582027),_0x533e0a=this[_0x4ca771(0x291)][_0x4ca771(0x283)](_0xa90154);if(_0x533e0a&&_0x7f76e5){const _0x314576={..._0x533e0a,'range':_0x7f76e5};this['cursorInfo'][_0x4ca771(0x193)](_0xa90154,_0x314576),_0x2ced39(()=>{const _0x5ad463=_0x4ca771,_0x94ee=this['_refRangeService'][_0x5ad463(0x17d)](_0x7f76e5,_0x14b22d=>(_0x94ee[_0x5ad463(0x313)](),_0x3d276e(_0x14b22d,_0xa90154,_0x163b70,_0x7f76e5)));_0x381933['add'](_0x94ee);});}return{'redos':[],'undos':[]};};this[_0x11a6ef(0x291)]['forEach']((_0x45c495,_0x4cf915)=>{const _0x1ea7e8=_0x11a6ef,{range:_0x2922d5,sheetID:_0x46de81}=_0x45c495,_0x2bcdc4=this[_0x1ea7e8(0x202)][_0x1ea7e8(0x17d)](_0x2922d5,_0x7a2ff5=>(_0x2bcdc4[_0x1ea7e8(0x313)](),_0x3d276e(_0x7a2ff5,_0x4cf915,_0x46de81,_0x2922d5)));_0x381933['add'](_0x2bcdc4);});};this[_0x2a6fe5(0x344)](a[_0x2a6fe5(0x17c)](this[_0x2a6fe5(0xf2)][_0x2a6fe5(0x31a)](()=>{_0x3bd696();})));}['_toggleOnline'](){const _0x4c788b=_0x4a1f29;var _0x18e88d,_0x3aa767;if(this[_0x4c788b(0x214)]=!0x0,((_0x18e88d=this['_univerInstanceService'][_0x4c788b(0x2b9)]())==null?void 0x0:_0x18e88d[_0x4c788b(0x317)]())!==this[_0x4c788b(0x1bb)])return;const _0x56bba2=(_0x3aa767=this['_injector'][_0x4c788b(0x283)](v['SheetsSelectionsService'])[_0x4c788b(0x176)]())==null?void 0x0:_0x3aa767[0x0],_0x282ac2=this[_0x4c788b(0x2ef)][_0x4c788b(0x2f0)](a[_0x4c788b(0x25e)][_0x4c788b(0x304)])[_0x4c788b(0x2d9)]();_0x56bba2&&_0x282ac2&&this[_0x4c788b(0x20c)](_0x282ac2['getSheetId'](),_0x56bba2);}[_0x4a1f29(0x33a)](){const _0x2b7860=_0x4a1f29;this[_0x2b7860(0x214)]=!0x1;}};ge=mt([w(0x2,a[_0x4a1f29(0x20d)](a[_0x4a1f29(0x2ff)])),w(0x3,a[_0x4a1f29(0x20d)](Re)),w(0x4,a['Inject'](u[_0x4a1f29(0x19c)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x4a1f29(0x1e6)]),w(0x7,a[_0x4a1f29(0x20d)](v['RefRangeService']))],ge);var Ct=Object['getOwnPropertyDescriptor'],Tt=(_0x2a0beb,_0x1b2551,_0x4a7207,_0x516aaf)=>{const _0xd91eaf=_0x4a1f29;for(var _0x225c69=_0x516aaf>0x1?void 0x0:_0x516aaf?Ct(_0x1b2551,_0x4a7207):_0x1b2551,_0x331689=_0x2a0beb[_0xd91eaf(0x191)]-0x1,_0x5d70c6;_0x331689>=0x0;_0x331689--)(_0x5d70c6=_0x2a0beb[_0x331689])&&(_0x225c69=_0x5d70c6(_0x225c69)||_0x225c69);return _0x225c69;},ce=(_0x49d3fe,_0x2cc438)=>(_0x50d16b,_0x196f57)=>_0x2cc438(_0x50d16b,_0x196f57,_0x49d3fe);let F=class extends a[_0x4a1f29(0x27c)]{constructor(_0x3e19a3,_0x190323,_0x6ed97f){const _0x2481c0=_0x4a1f29;super(),_(this,_0x2481c0(0x35d),new Map()),_(this,_0x2481c0(0xf8),new I['Subject']()),(this[_0x2481c0(0x2ef)]=_0x3e19a3,this['_injector']=_0x190323,this[_0x2481c0(0x2d8)]=_0x6ed97f,this['_init']());}[_0x4a1f29(0x313)](){const _0x55d41d=_0x4a1f29;super[_0x55d41d(0x313)](),this[_0x55d41d(0xf8)][_0x55d41d(0x1a3)](),this[_0x55d41d(0x35d)]['forEach'](_0x41fd76=>_0x41fd76[_0x55d41d(0x313)]());}[_0x4a1f29(0x35e)](_0xcf7239){const _0x542168=_0x4a1f29;return this[_0x542168(0x35d)][_0x542168(0x114)](_0xcf7239)?this[_0x542168(0x35d)]['get'](_0xcf7239)['cursorInfo$']:this['_entityInit$'][_0x542168(0x2e0)](I['filter'](_0x105de1=>_0x105de1[_0x542168(0x1bb)]===_0xcf7239),I[_0x542168(0x102)](_0x222aec=>_0x222aec[_0x542168(0x21f)]));}[_0x4a1f29(0x280)](){const _0x18a6a5=_0x4a1f29;this[_0x18a6a5(0x2ef)][_0x18a6a5(0x311)](a[_0x18a6a5(0x25e)][_0x18a6a5(0x304)])['pipe'](I[_0x18a6a5(0x23b)](this[_0x18a6a5(0x217)]))['subscribe'](async _0x5a7310=>{const _0x18f1ea=_0x18a6a5,_0x4e3322=_0x5a7310['getUnitId'](),_0x2820ee=await this[_0x18f1ea(0x278)](_0x4e3322);this[_0x18f1ea(0xf8)][_0x18f1ea(0x293)](_0x2820ee),this[_0x18f1ea(0x35d)][_0x18f1ea(0x193)](_0x4e3322,_0x2820ee);}),this['_univerInstanceService'][_0x18a6a5(0x311)](a[_0x18a6a5(0x25e)][_0x18a6a5(0x1af)])[_0x18a6a5(0x2e0)](I[_0x18a6a5(0x23b)](this[_0x18a6a5(0x217)]))[_0x18a6a5(0x2e0)](I[_0x18a6a5(0xd1)](_0x3461fe=>!_0x3461fe[_0x18a6a5(0x317)]()['startsWith']('__')))[_0x18a6a5(0x31a)](async _0x2be5e7=>{const _0x126e0c=_0x18a6a5,_0x3c23c2=_0x2be5e7[_0x126e0c(0x317)](),_0x567c5b=await this['_startDocCollabCursor'](_0x3c23c2);this['_entityInit$'][_0x126e0c(0x293)](_0x567c5b),this['_entities']['set'](_0x3c23c2,_0x567c5b);}),I[_0x18a6a5(0x365)](this[_0x18a6a5(0x2ef)]['getTypeOfUnitDisposed$'](a[_0x18a6a5(0x25e)][_0x18a6a5(0x1af)]),this[_0x18a6a5(0x2ef)][_0x18a6a5(0x374)](a[_0x18a6a5(0x25e)][_0x18a6a5(0x304)]))[_0x18a6a5(0x2e0)](I[_0x18a6a5(0x23b)](this[_0x18a6a5(0x217)]))[_0x18a6a5(0x31a)](_0x2327c9=>{const _0x2c3a35=_0x18a6a5,_0x11facf=_0x2327c9[_0x2c3a35(0x317)](),_0x3d0d1d=this[_0x2c3a35(0x35d)][_0x2c3a35(0x283)](_0x11facf);_0x3d0d1d&&(_0x3d0d1d['dispose'](),this[_0x2c3a35(0x35d)][_0x2c3a35(0x2fe)](_0x11facf));});}async[_0x4a1f29(0x278)](_0x1bf05f){const _0x505d1e=_0x4a1f29,_0x5ab332=await this[_0x505d1e(0x2d8)][_0x505d1e(0x1a4)](_0x1bf05f),_0x53dc26=this[_0x505d1e(0x1eb)][_0x505d1e(0x32c)](ge,_0x1bf05f,_0x5ab332);return _0x53dc26[_0x505d1e(0x224)](),_0x53dc26;}async[_0x4a1f29(0x101)](_0xcc3772){const _0x15fc4d=_0x4a1f29,_0x5838ad=await this[_0x15fc4d(0x2d8)][_0x15fc4d(0x1a4)](_0xcc3772),_0x486796=this[_0x15fc4d(0x1eb)][_0x15fc4d(0x32c)](ve,_0xcc3772,_0x5838ad);return _0x486796['init'](),_0x486796;}};F=Tt([ce(0x0,a[_0x4a1f29(0x197)]),ce(0x1,a[_0x4a1f29(0x20d)](a[_0x4a1f29(0x2ff)])),ce(0x2,a[_0x4a1f29(0x20d)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x4981ea,_0x5e2f34){const _0x35f993=_0x4a1f29;let {radius:_0x3b2834,width:_0x2070d1,height:_0x16fc26}=_0x5e2f34;_0x3b2834=_0x3b2834!=null?_0x3b2834:0x0,_0x2070d1=_0x2070d1!=null?_0x2070d1:0x1e,_0x16fc26=_0x16fc26!=null?_0x16fc26:0x1e;let _0x4de188=0x0,_0x2e3653=0x0,_0x68b7a9=0x0;_0x4de188=_0x2e3653=_0x68b7a9=Math['min'](_0x3b2834,_0x2070d1/0x2,_0x16fc26/0x2),_0x4981ea[_0x35f993(0x184)](),_0x4981ea[_0x35f993(0x22e)](_0x4de188,0x0),_0x4981ea[_0x35f993(0x1e1)](_0x2070d1-_0x2e3653,0x0),_0x4981ea[_0x35f993(0x223)](_0x2070d1-_0x2e3653,_0x2e3653,_0x2e3653,Math['PI']*0x3/0x2,0x0,!0x1),_0x4981ea[_0x35f993(0x1e1)](_0x2070d1,_0x16fc26-_0x68b7a9),_0x4981ea['arc'](_0x2070d1-_0x68b7a9,_0x16fc26-_0x68b7a9,_0x68b7a9,0x0,Math['PI']/0x2,!0x1),_0x4981ea[_0x35f993(0x1e1)](0x0,_0x16fc26),_0x4981ea['lineTo'](0x0,_0x4de188),_0x4981ea['arc'](_0x4de188,_0x4de188,_0x4de188,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4981ea[_0x35f993(0x361)](),_0x5e2f34[_0x35f993(0x136)]&&(_0x4981ea[_0x35f993(0xe8)](),_0x4981ea[_0x35f993(0x308)]=_0x5e2f34[_0x35f993(0x136)],_0x5e2f34['fillRule']===_0x35f993(0x1c9)?_0x4981ea['fill'](_0x35f993(0x1c9)):_0x4981ea[_0x35f993(0x136)](),_0x4981ea['restore']());}class re extends C[_0x4a1f29(0x345)]{constructor(_0x496cca,_0x5b4410){const _0x233742=_0x4a1f29;super(_0x496cca,_0x5b4410),_(this,_0x233742(0x2f6)),_(this,_0x233742(0x175)),(this[_0x233742(0x2f6)]=_0x5b4410==null?void 0x0:_0x5b4410[_0x233742(0x2f6)],this[_0x233742(0x175)]=_0x5b4410==null?void 0x0:_0x5b4410[_0x233742(0x175)]);}static['drawWith'](_0x478e1b,_0x30f5d5){const _0x129d86=_0x4a1f29,{text:_0x188f81,color:_0x1d9fff}=_0x30f5d5;_0x478e1b[_0x129d86(0xe8)](),_0x478e1b[_0x129d86(0x20a)]=_0x129d86(0x388);const _0x5549b5=_0x478e1b['measureText'](_0x188f81)[_0x129d86(0x29a)],_0x3c81f1=Math['min'](_0x5549b5+0x2*le,Ue);Ot(_0x478e1b,{'height':X,'radius':0x4,'width':_0x3c81f1,'fill':_0x1d9fff}),_0x478e1b[_0x129d86(0x308)]=_0x129d86(0x378);const _0x298b99=le,_0x4ff1d5=X-pt,_0x3a48b0=Ue-0x2*le;if(_0x5549b5>_0x3a48b0){let _0x2e2c0e='',_0x4b6585=0x0;for(const _0x387097 of _0x188f81){const _0x5cb43b=_0x478e1b['measureText'](_0x387097)[_0x129d86(0x29a)];if(_0x4b6585+_0x5cb43b<=_0x3a48b0-_0x478e1b[_0x129d86(0x2ab)](_0x129d86(0x243))[_0x129d86(0x29a)])_0x2e2c0e+=_0x387097,_0x4b6585+=_0x5cb43b;else{_0x2e2c0e+=_0x129d86(0x243);break;}}_0x478e1b[_0x129d86(0x107)](_0x2e2c0e,_0x298b99,_0x4ff1d5);}else _0x478e1b[_0x129d86(0x107)](_0x188f81,_0x298b99,_0x4ff1d5);_0x478e1b[_0x129d86(0x352)]();}['_draw'](_0x1a9b11){const _0x2d27ad=_0x4a1f29;re[_0x2d27ad(0xe3)](_0x1a9b11,this);}}const _e=_0x4a1f29(0x331),Rt=_0x4a1f29(0x105),bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x4a1f29(0x11e);class Le{constructor(_0x4e8fff,_0x1aded3,_0x15fa83,_0x4f37b9){const _0x1458fc=_0x4a1f29;_(this,'_shapes',[]),_(this,_0x1458fc(0x182),null),_(this,_0x1458fc(0x330),null),_(this,'_anchorDot',null),_(this,_0x1458fc(0x255),null),_(this,_0x1458fc(0x220),null),(this[_0x1458fc(0x2af)]=_0x4e8fff,this[_0x1458fc(0x187)]=_0x1aded3,this[_0x1458fc(0x116)]=_0x15fa83,this[_0x1458fc(0x155)]=_0x4f37b9,this[_0x1458fc(0x1c6)]());}set[_0x4a1f29(0x392)](_0x2f81dc){const _0x54ef17=_0x4a1f29;_0x2f81dc?(this[_0x54ef17(0x2b3)]&&this['_anchorDot'][_0x54ef17(0x34f)](),this['_textBubble']&&this[_0x54ef17(0x330)][_0x54ef17(0x161)]()):(this['_anchorDot']&&this[_0x54ef17(0x2b3)][_0x54ef17(0x161)](),this[_0x54ef17(0x330)]&&this[_0x54ef17(0x330)]['hide']());}['dispose'](){const _0x3dfdc2=_0x4a1f29;for(const _0x5234e8 of this['_shapes'])_0x5234e8['dispose']();this[_0x3dfdc2(0x330)]&&this[_0x3dfdc2(0x330)]['dispose'](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this[_0x3dfdc2(0x182)]&&this[_0x3dfdc2(0x182)][_0x3dfdc2(0x313)](),this[_0x3dfdc2(0x220)]&&this[_0x3dfdc2(0x220)]();}[_0x4a1f29(0x1c6)](){const _0x182401=_0x4a1f29;var _0x515622;const {_docSkeleton:_0x48cc9c,_document:_0x5e5f72}=this,{color:_0x2f9e9b,name:_0x314a03,ranges:_0xc5a54}=this['_cursor'],_0x23d920=_0x5e5f72['getOffsetConfig'](),{docsLeft:_0x27347f,docsTop:_0x11d9b4}=_0x23d920,_0x59aed0=new T[(_0x182401(0x1e0))](_0x23d920,_0x48cc9c);for(const {startOffset:_0x4848eb,endOffset:_0x11c853,rangeType:_0xb50096,segmentId:_0x184ce9,segmentPage:_0x507140,collapsed:_0x544f68,isActive:_0xdf9997}of _0xc5a54){const _0x36669b=_0x48cc9c[_0x182401(0x1ad)](_0x4848eb,!0x0,_0x184ce9,_0x507140);let _0x39807c=_0x48cc9c[_0x182401(0x1ad)](_0x11c853,!0x0,_0x184ce9,_0x507140);if(_0x39807c==null&&(_0x39807c=_0x48cc9c[_0x182401(0x1ad)](_0x11c853-0x1,!0x1,_0x184ce9,_0x507140)),_0xdf9997){const {contentBoxPointGroup:_0x362a8d}=_0x59aed0[_0x182401(0x1fd)](_0x39807c,_0x39807c);if(_0x362a8d[_0x182401(0x191)]===0x0)continue;this[_0x182401(0x238)](_0x2f9e9b,_0x362a8d,_0x27347f,_0x11d9b4,_0x314a03),this['_eventUnsubscribe']=this[_0x182401(0x310)]();}if(_0x36669b&&_0x39807c){if(_0xb50096===a[_0x182401(0x16a)]['RECT']){const _0x5aa2b7=new T[(_0x182401(0xd6))](_0x23d920,_0x48cc9c),{pointGroup:_0x35f04b}=(_0x515622=_0x5aa2b7[_0x182401(0x1fd)](_0x36669b,_0x39807c))!=null?_0x515622:{};if(_0x35f04b==null||_0x35f04b['length']===0x0)continue;this['_drawRectRange'](_0x2f9e9b,_0x35f04b,_0x27347f,_0x11d9b4);}else{if(!_0x544f68){const {borderBoxPointGroup:_0x4f6a4c}=_0x59aed0[_0x182401(0x1fd)](_0x36669b,_0x39807c);if(_0x4f6a4c['length']===0x0)continue;this[_0x182401(0x15d)](_0x2f9e9b,_0x4f6a4c,_0x27347f,_0x11d9b4);}}}}}[_0x4a1f29(0x238)](_0x147857,_0x363dcd,_0x2aad2c,_0x1b6468,_0x5b9865){const _0x163266=_0x4a1f29,_0x2377e9=this[_0x163266(0x33e)](_0x363dcd),{left:_0x38421b,top:_0x409749,height:_0x5d241f}=_0x2377e9,_0x2c1edc=this[_0x163266(0x357)](),_0x2a689e=Nt/_0x2c1edc,_0x7af836=new C[(_0x163266(0xff))](_e+a[_0x163266(0x30a)](H),{'left':_0x38421b+_0x2aad2c-_0x2a689e,'top':_0x409749+_0x1b6468,'height':_0x5d241f,'width':Dt,'fill':_0x147857||C[_0x163266(0x19b)](a['COLORS'][_0x163266(0x1fc)],0x0),'strokeWidth':_0x2a689e,'stroke':Ut,'evented':!0x0});this['_anchor']=_0x7af836,this[_0x163266(0x187)][_0x163266(0x359)](_0x7af836,T[_0x163266(0x261)]);const _0x43086e=new C['Rect'](_e+a[_0x163266(0x30a)](H),{'left':_0x38421b+_0x2aad2c-_0x2a689e,'top':_0x409749+_0x1b6468-he/0x2,'height':he,'width':he,'fill':_0x147857||C[_0x163266(0x19b)](a['COLORS'][_0x163266(0x1fc)],0x0),'strokeWidth':0x0,'stroke':_0x147857||C[_0x163266(0x19b)](a[_0x163266(0x11d)][_0x163266(0x1fc)],0x0),'evented':!0x1});this[_0x163266(0x2b3)]=_0x43086e,this['_scene'][_0x163266(0x359)](_0x43086e,T[_0x163266(0x261)]);const _0x3cb6f5=new re(_e+a[_0x163266(0x30a)](H),{'left':_0x38421b+_0x2aad2c-_0x2a689e,'top':_0x409749+_0x1b6468-X,'text':_0x5b9865,'color':_0x147857});this['_textBubble']=_0x3cb6f5,this[_0x163266(0x187)][_0x163266(0x359)](_0x3cb6f5,T[_0x163266(0x261)]),this[_0x163266(0x392)]=!0x1;}[_0x4a1f29(0x310)](){const _0x2ef9fe=_0x4a1f29,_0x96386c=this['_anchor'][_0x2ef9fe(0x29e)][_0x2ef9fe(0x12c)](()=>{const _0x1ff9c7=_0x2ef9fe;this[_0x1ff9c7(0x392)]=!0x0;}),_0x423a2b=this['_anchor']['onPointerLeave$'][_0x2ef9fe(0x12c)](()=>{const _0x45cdf8=_0x2ef9fe;this['_hideTimer']&&clearTimeout(this[_0x45cdf8(0x255)]),this[_0x45cdf8(0x255)]=setTimeout(()=>{const _0x4fb9af=_0x45cdf8;this[_0x4fb9af(0x392)]=!0x1;},0x7d0);});return()=>{const _0x3b2352=_0x2ef9fe;_0x96386c[_0x3b2352(0x37c)](),_0x423a2b[_0x3b2352(0x37c)]();};}['_drawTextRange'](_0x351511,_0x58fbd0,_0x2b7904,_0x5addb5){const _0x2a3cb4=_0x4a1f29,_0x2c0362=new a[(_0x2a3cb4(0x1e2))](_0x351511)[_0x2a3cb4(0x15c)](0.2)[_0x2a3cb4(0x2e1)](),_0x1a861d=new C['RegularPolygon'](Rt+a[_0x2a3cb4(0x30a)](H),{'pointsGroup':_0x58fbd0,'fill':_0x2c0362||C[_0x2a3cb4(0x19b)](a[_0x2a3cb4(0x11d)]['black'],0.2),'left':_0x2b7904,'top':_0x5addb5,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x2a3cb4(0x183)](_0x1a861d),this['_scene']['addObject'](_0x1a861d,T[_0x2a3cb4(0x261)]);}['_drawRectRange'](_0x5483ee,_0x8698ab,_0x20c3b1,_0x46e620){const _0x41ff09=_0x4a1f29,_0x586133=new a[(_0x41ff09(0x1e2))](_0x5483ee)[_0x41ff09(0x15c)](0.2)[_0x41ff09(0x2e1)](),_0x1224c9=new C[(_0x41ff09(0x1bf))](bt+a[_0x41ff09(0x30a)](H),{'pointsGroup':_0x8698ab,'fill':_0x586133||C[_0x41ff09(0x19b)](a[_0x41ff09(0x11d)][_0x41ff09(0x1fc)],0.2),'left':_0x20c3b1,'top':_0x46e620,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x41ff09(0x2ec)][_0x41ff09(0x183)](_0x1224c9),this[_0x41ff09(0x187)][_0x41ff09(0x359)](_0x1224c9,T[_0x41ff09(0x261)]);}[_0x4a1f29(0x33e)](_0x55478e){const _0x24594b=_0x55478e[0x0],_0x25ec8b=_0x24594b[0x0],_0x3ba76d=_0x24594b[0x2],{x:_0x4c5240,y:_0x2b404b}=_0x25ec8b,{x:_0x27459a,y:_0xd04bc5}=_0x3ba76d;return{'left':_0x4c5240,'top':_0x2b404b,'width':_0x27459a-_0x4c5240,'height':_0xd04bc5-_0x2b404b};}[_0x4a1f29(0x357)](){const _0x276e8f=_0x4a1f29,{scaleX:_0x60e552,scaleY:_0xc75ba2}=this[_0x276e8f(0x187)]['getAncestorScale']();return Math[_0x276e8f(0xfa)](_0x60e552,_0xc75ba2);}}var Lt=Object[_0x4a1f29(0xef)],Mt=(_0x561426,_0x36cdc2,_0x1d6882,_0x3191f6)=>{const _0x187fd6=_0x4a1f29;for(var _0xf59d2c=_0x3191f6>0x1?void 0x0:_0x3191f6?Lt(_0x36cdc2,_0x1d6882):_0x36cdc2,_0x34b279=_0x561426[_0x187fd6(0x191)]-0x1,_0x536a8e;_0x34b279>=0x0;_0x34b279--)(_0x536a8e=_0x561426[_0x34b279])&&(_0xf59d2c=_0x536a8e(_0xf59d2c)||_0xf59d2c);return _0xf59d2c;},q=(_0x181798,_0x4afc26)=>(_0x10b0d2,_0x4a04c7)=>_0x4afc26(_0x10b0d2,_0x4a04c7,_0x181798);let Ee=class extends a[_0x4a1f29(0x27c)]{constructor(_0x5d2d5d,_0x1c5c7f,_0xeafdc3,_0x246273,_0x236ca2){const _0x5c363d=_0x4a1f29;super(),_(this,'_cursorShapes',[]),_(this,_0x5c363d(0x27e),[]),(this[_0x5c363d(0x10b)]=_0x5d2d5d,this[_0x5c363d(0x2f9)]=_0x1c5c7f,this['_collabCursorController']=_0xeafdc3,this[_0x5c363d(0x1ee)]=_0x246273,this['_themeService']=_0x236ca2,this[_0x5c363d(0x280)]());}['_init'](){const _0x2ef3d7=_0x4a1f29,_0x86253d=this['_context']['unitId'],_0x1ddd8f=this['_docSkeletonManagerService'];this['disposeWithMe'](I[_0x2ef3d7(0x1c8)]([this[_0x2ef3d7(0x138)]['getCollabCursors$'](_0x86253d),this[_0x2ef3d7(0x272)][_0x2ef3d7(0x263)]])['pipe']($[_0x2ef3d7(0x167)](([_0x37e837,_0x13615b])=>({'skeleton':_0x1ddd8f['getSkeleton'](),'cursors':[..._0x37e837['values']()]['flatMap'](_0x52479a=>({..._0x52479a,'color':this[_0x2ef3d7(0x272)]['getColorFromTheme'](_0x52479a[_0x2ef3d7(0x2f6)])}))})))[_0x2ef3d7(0x31a)](_0x527d65=>{const _0x1d1daf=_0x2ef3d7;if(this[_0x1d1daf(0x318)](),_0x527d65){const {skeleton:_0x28c9e9,cursors:_0x5132cb}=_0x527d65;this['_updateCollabCursors'](_0x28c9e9,_0x5132cb);}})),this[_0x2ef3d7(0x1e3)](),this[_0x2ef3d7(0x1e7)]();}['_updateCollabCursors'](_0x4a5f30,_0x319c11){const _0x4cf48d=_0x4a1f29,{scene:_0xfc7070,mainComponent:_0x16034d}=this['_context'],_0x4bef77=_0x319c11[_0x4cf48d(0x167)](_0x3c0947=>new Le(_0x3c0947,_0xfc7070,_0x4a5f30,_0x16034d));this[_0x4cf48d(0x34c)]=_0x4bef77,this[_0x4cf48d(0x27e)]=_0x319c11;}['_refreshCollabCursors'](){const _0x302288=_0x4a1f29;this['_removeCollabCursors']();const {scene:_0x55a70f,mainComponent:_0x5c3c30}=this[_0x302288(0x10b)],_0x44de2e=this[_0x302288(0x2f9)][_0x302288(0x111)](),_0x5519d8=this[_0x302288(0x27e)][_0x302288(0x167)](_0x22e6b6=>new Le(_0x22e6b6,_0x55a70f,_0x44de2e,_0x5c3c30));this['_cursorShapes']=_0x5519d8;}[_0x4a1f29(0x318)](){const _0x3ab66a=_0x4a1f29;this[_0x3ab66a(0x34c)][_0x3ab66a(0x1fb)](_0x16fa9c=>_0x16fa9c[_0x3ab66a(0x313)]()),this[_0x3ab66a(0x34c)]=[];}[_0x4a1f29(0x1e7)](){const _0x5b4d21=_0x4a1f29,_0x22ff77=[T['SetDocZoomRatioOperation']['id']];this[_0x5b4d21(0x344)](this[_0x5b4d21(0x1ee)][_0x5b4d21(0x228)](_0x219a26=>{const _0x43b79e=_0x5b4d21;_0x22ff77[_0x43b79e(0x2b0)](_0x219a26['id'])&&_0x219a26[_0x43b79e(0x1cc)][_0x43b79e(0x2b5)]===this[_0x43b79e(0x10b)][_0x43b79e(0x2b5)]&&this[_0x43b79e(0x380)]();}));}['_initResize'](){const _0x2c4da7=_0x4a1f29;this[_0x2c4da7(0x344)](a[_0x2c4da7(0x27d)](this[_0x2c4da7(0x10b)][_0x2c4da7(0x33d)][_0x2c4da7(0x38a)])[_0x2c4da7(0x2e0)]($[_0x2c4da7(0xd1)](_0x490905=>_0x490905[_0x2c4da7(0x275)]===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x2c4da7(0x2c6)]),$[_0x2c4da7(0xf9)](0x10))[_0x2c4da7(0x31a)](()=>{const _0x217e65=_0x2c4da7;this[_0x217e65(0x380)]();}));}};Ee=Mt([q(0x1,a['Inject'](V['DocSkeletonManagerService'])),q(0x2,a[_0x4a1f29(0x20d)](F)),q(0x3,a[_0x4a1f29(0x1e6)]),q(0x4,a[_0x4a1f29(0x20d)](a[_0x4a1f29(0x2ee)]))],Ee);const At=0x1,Pt=1.5;class je extends C['Shape']{constructor(_0x25ae5e,_0x33692f){const _0x1b7cda=_0x4a1f29;super(_0x25ae5e,_0x33692f),_(this,_0x1b7cda(0x2aa)),_(this,_0x1b7cda(0x25b),!0x1),_(this,'_range'),_(this,_0x1b7cda(0x348),''),_(this,'_labelPosition','top'),_(this,_0x1b7cda(0x1f6)),(_0x33692f&&this[_0x1b7cda(0x2ac)](_0x33692f),this['onPointerEnter$'][_0x1b7cda(0x12c)](()=>this[_0x1b7cda(0x2ac)]({'hovered':!0x0})),this[_0x1b7cda(0x19a)][_0x1b7cda(0x12c)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x4a1f29(0x2ac)](_0x27f73d){const _0x3757da=_0x4a1f29;var _0x4ffeca,_0x287004,_0x40d9e8,_0x378be5,_0x577d5b,_0x196517;this[_0x3757da(0x2aa)]=(_0x4ffeca=_0x27f73d[_0x3757da(0x2f6)])!=null?_0x4ffeca:this[_0x3757da(0x2aa)],this[_0x3757da(0x25b)]=(_0x287004=_0x27f73d['hovered'])!=null?_0x287004:this['_hovered'],this[_0x3757da(0x286)]=(_0x40d9e8=_0x27f73d['range'])!=null?_0x40d9e8:this[_0x3757da(0x286)],this[_0x3757da(0x348)]=(_0x378be5=_0x27f73d[_0x3757da(0x11f)])!=null?_0x378be5:this[_0x3757da(0x348)],this['_labelPosition']=(_0x577d5b=_0x27f73d[_0x3757da(0x149)])!=null?_0x577d5b:this[_0x3757da(0x132)],this[_0x3757da(0x1f6)]=(_0x196517=_0x27f73d[_0x3757da(0x36a)])!=null?_0x196517:this['_backgroundColor'],this[_0x3757da(0x248)]({'width':_0x27f73d[_0x3757da(0x29a)],'height':_0x27f73d[_0x3757da(0x210)]});}[_0x4a1f29(0x2cc)](_0x174be9){const _0x5316d9=_0x4a1f29,{row:_0xa2dee4,column:_0x39f2f3}=_0x174be9;if(_0xa2dee4>=this[_0x5316d9(0x286)][_0x5316d9(0x172)]&&_0xa2dee4<=this['_range']['endRow']&&_0x39f2f3>=this['_range']['startColumn']&&_0x39f2f3<=this[_0x5316d9(0x286)][_0x5316d9(0x23e)]){this[_0x5316d9(0x2ac)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x4a1f29(0x144)](_0x431352){return!0x1;}[_0x4a1f29(0x21e)](_0x10ef72){const _0x2a0a4a=_0x4a1f29;C[_0x2a0a4a(0xff)]['drawWith'](_0x10ef72,{'width':this['width'],'height':this['height'],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x2a0a4a(0x1f6)]}),this[_0x2a0a4a(0x25b)]&&(_0x10ef72[_0x2a0a4a(0xe8)](),_0x10ef72[_0x2a0a4a(0x25f)](0x1,0x0,0x0,0x1,this['width'],this[_0x2a0a4a(0x132)]===_0x2a0a4a(0x277)?0x0:-X),re[_0x2a0a4a(0xe3)](_0x10ef72,{'text':this['_name'],'color':this[_0x2a0a4a(0x2aa)]}),_0x10ef72[_0x2a0a4a(0x352)]());}}var wt=Object[_0x4a1f29(0xef)],yt=(_0x4f936d,_0x52244d,_0x1620e1,_0x33bf47)=>{const _0xc30b2d=_0x4a1f29;for(var _0x374cc3=_0x33bf47>0x1?void 0x0:_0x33bf47?wt(_0x52244d,_0x1620e1):_0x52244d,_0x53adc7=_0x4f936d[_0xc30b2d(0x191)]-0x1,_0xfd0fa2;_0x53adc7>=0x0;_0x53adc7--)(_0xfd0fa2=_0x4f936d[_0x53adc7])&&(_0x374cc3=_0xfd0fa2(_0x374cc3)||_0x374cc3);return _0x374cc3;},ue=(_0x4f3b1b,_0x5ae32f)=>(_0x2c122a,_0x3006d5)=>_0x5ae32f(_0x2c122a,_0x3006d5,_0x4f3b1b);const $t=0x1389;let Ce=class extends a[_0x4a1f29(0x27c)]{constructor(_0x369aac,_0x3b1263,_0x55e9f6,_0x20edf0){const _0x3d1e33=_0x4a1f29;super(),_(this,_0x3d1e33(0x27e),new Set()),_(this,_0x3d1e33(0x1ce),null),(this[_0x3d1e33(0x10b)]=_0x369aac,this['_sheetSkeletonManagerService']=_0x3b1263,this[_0x3d1e33(0x138)]=_0x55e9f6,this[_0x3d1e33(0x272)]=_0x20edf0,this[_0x3d1e33(0x280)]());}[_0x4a1f29(0x280)](){const _0x371d10=_0x4a1f29;this[_0x371d10(0x31c)][_0x371d10(0x2f1)][_0x371d10(0x2e0)]($[_0x371d10(0x23b)](this[_0x371d10(0x217)]),$[_0x371d10(0x102)](_0x4ec4eb=>{const _0x3d3bd3=_0x371d10;if(_0x4ec4eb){const _0x101348=_0x4ec4eb[_0x3d3bd3(0x230)];return I[_0x3d3bd3(0x1c8)](this[_0x3d3bd3(0x138)][_0x3d3bd3(0x35e)](this[_0x3d3bd3(0x10b)][_0x3d3bd3(0x2b5)]),this[_0x3d3bd3(0x272)][_0x3d3bd3(0x263)])[_0x3d3bd3(0x2e0)]($[_0x3d3bd3(0x167)](([_0x152fe9,_0x590b89])=>{const _0x4a3352=_0x3d3bd3,_0x15b8ba=new Map();return _0x152fe9[_0x4a3352(0x1fb)]((_0x5caee9,_0x328693)=>{const _0x7990fd=_0x4a3352;if(_0x5caee9[_0x7990fd(0x125)]===_0x101348){const _0x70fd22={..._0x5caee9};_0x70fd22[_0x7990fd(0x2f6)]=this[_0x7990fd(0x272)][_0x7990fd(0x13d)](_0x5caee9[_0x7990fd(0x2f6)]),_0x15b8ba[_0x7990fd(0x193)](_0x328693,_0x70fd22);}}),{'skeleton':_0x4ec4eb,'cursors':_0x15b8ba};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x371d10(0x31a)](({skeleton:_0x2343d7,cursors:_0x47729a})=>{const _0x5dd955=_0x371d10;this[_0x5dd955(0x318)](),_0x2343d7&&this[_0x5dd955(0x199)](_0x2343d7,_0x47729a);}),this[_0x371d10(0x31c)]['currentSkeleton$'][_0x371d10(0x31a)](_0x4e12d3=>{const _0x277794=_0x371d10;if(_0x4e12d3==null)return;const {skeleton:_0x194e21}=_0x4e12d3,{scene:_0x3f17e1}=this[_0x277794(0x10b)];_0x3f17e1['onPointerMove$'][_0x277794(0x12c)](a[_0x277794(0xc0)](_0x2e743d=>{const _0x3a8c1b=_0x277794;var _0x2dae53,_0x1fa9d3;const {offsetX:_0x9e28b9,offsetY:_0x395969}=_0x2e743d,{x:_0x37aa6e,y:_0x4a4ba4}=_0x3f17e1[_0x3a8c1b(0x1a5)](C[_0x3a8c1b(0x271)][_0x3a8c1b(0x2df)]([_0x9e28b9,_0x395969])),{scaleX:_0x5a7180,scaleY:_0x577860}=_0x3f17e1[_0x3a8c1b(0x1df)](),_0x52150=_0x3f17e1['getViewport'](C[_0x3a8c1b(0x19e)][_0x3a8c1b(0x14c)]),_0x2d0727=_0x3f17e1[_0x3a8c1b(0x31f)](C['Vector2']['FromArray']([_0x37aa6e,_0x4a4ba4]),_0x52150),_0x575e7a=_0x194e21[_0x3a8c1b(0x343)](_0x9e28b9,_0x395969,_0x5a7180,_0x577860,_0x2d0727);((_0x2dae53=this['_lastPointer'])==null?void 0x0:_0x2dae53[_0x3a8c1b(0x1b0)])===_0x575e7a[_0x3a8c1b(0x1b0)]&&((_0x1fa9d3=this[_0x3a8c1b(0x1ce)])==null?void 0x0:_0x1fa9d3[_0x3a8c1b(0x303)])===_0x575e7a[_0x3a8c1b(0x303)]||this[_0x3a8c1b(0x27e)][_0x3a8c1b(0x1fb)](_0x1bd3d3=>{const _0x575c34=_0x3a8c1b;_0x1bd3d3[_0x575c34(0x2cc)](_0x575e7a);});},0x64));});}[_0x4a1f29(0x199)](_0x4684b8,_0x5311ed){const _0x178f4a=_0x4a1f29;var _0x1b2200;const _0x3bdf9e=(_0x1b2200=this[_0x178f4a(0x31c)]['getCurrent']())==null?void 0x0:_0x1b2200[_0x178f4a(0x200)];if(!_0x3bdf9e)return;const _0x1cc708=this[_0x178f4a(0x1a2)]();if(!_0x1cc708)return;this[_0x178f4a(0x27e)]['forEach'](_0x405233=>{const _0x5a6ffa=_0x178f4a;_0x405233[_0x5a6ffa(0x251)]();});const {scene:_0x41baed}=_0x1cc708,_0x1f6065=xt(Array[_0x178f4a(0x1ed)](_0x5311ed[_0x178f4a(0x190)]()))[_0x178f4a(0x167)](_0xea51b1=>{const _0x131ad6=_0x178f4a,{color:_0x5bcfe0,range:_0x3dae39,name:_0x26e8e4,selection:_0x5a25d8,sheetID:_0x4e2237}=_0xea51b1,{startColumn:_0x2d71bb,startRow:_0x55286d,endColumn:_0x434bb9,endRow:_0x19366a}=_0x3dae39,_0x32ea6e=J[_0x131ad6(0x10a)](_0x55286d,_0x2d71bb,_0x41baed,_0x3bdf9e),_0x37bdd6=J[_0x131ad6(0x10a)](_0x19366a,_0x434bb9,_0x41baed,_0x3bdf9e),{columnHeaderHeightAndMarginTop:_0xac11f9}=_0x3bdf9e,{startX:_0x25ce17,startY:_0x2e3505}=_0x32ea6e,{endX:_0x2b646f,endY:_0x264c88}=_0x37bdd6,_0x4b89b3=_0x2b646f-_0x25ce17,_0x518351=_0x264c88-_0x2e3505,_0x196b2c={'labelPosition':_0x2e3505-_0xac11f9>=X?'top':_0x131ad6(0x277),'sheetID':_0x4e2237,'range':_0x3dae39,'color':_0x5bcfe0,'name':_0x26e8e4,'selection':_0x5a25d8,'left':_0x25ce17,'top':_0x2e3505,'width':_0x4b89b3,'height':_0x518351,'evented':!0x1,'zIndex':$t};return new je(_0x26e8e4,_0x196b2c);});_0x41baed[_0x178f4a(0x1b7)](_0x1f6065,At),this[_0x178f4a(0x27e)]=new Set(_0x1f6065);}[_0x4a1f29(0x318)](){const _0x398479=_0x4a1f29;var _0xd4a278;(_0xd4a278=this[_0x398479(0x27e)])==null||_0xd4a278['forEach'](_0x58abad=>_0x58abad[_0x398479(0x313)]());}[_0x4a1f29(0x1a2)](){const _0x4d015d=_0x4a1f29;return J['getSheetObject'](this[_0x4d015d(0x10b)]['unit'],this['_context']);}};Ce=yt([ue(0x1,a[_0x4a1f29(0x20d)](J[_0x4a1f29(0x231)])),ue(0x2,a[_0x4a1f29(0x20d)](F)),ue(0x3,a[_0x4a1f29(0x20d)](a['ThemeService']))],Ce);function xt(_0x1dc2ff){const _0x51d06a=_0x4a1f29,_0x19ddc5=new Map();return _0x1dc2ff['forEach'](_0x4cea47=>{const _0x31ab31=_0x1f3f;if(_0x19ddc5[_0x31ab31(0x114)](_0x4cea47[_0x31ab31(0x264)])){const _0x16d221=_0x19ddc5[_0x31ab31(0x283)](_0x4cea47['selection']);_0x16d221[_0x31ab31(0x11f)]+=',\x20'+_0x4cea47[_0x31ab31(0x11f)];}else _0x19ddc5[_0x31ab31(0x193)](_0x4cea47[_0x31ab31(0x264)],_0x4cea47);}),Array[_0x51d06a(0x1ed)](_0x19ddc5['values']());}var Bt=Object[_0x4a1f29(0xef)],Ft=(_0x40b84e,_0x325552,_0x5ab1f7,_0x64dc80)=>{const _0x1814b5=_0x4a1f29;for(var _0x1c7158=_0x64dc80>0x1?void 0x0:_0x64dc80?Bt(_0x325552,_0x5ab1f7):_0x325552,_0x5dcd27=_0x40b84e[_0x1814b5(0x191)]-0x1,_0x11ae69;_0x5dcd27>=0x0;_0x5dcd27--)(_0x11ae69=_0x40b84e[_0x5dcd27])&&(_0x1c7158=_0x11ae69(_0x1c7158)||_0x1c7158);return _0x1c7158;},y=(_0x53cff1,_0x248d3f)=>(_0xfcb011,_0x510e4a)=>_0x248d3f(_0xfcb011,_0x510e4a,_0x53cff1);let Z=class extends a['Disposable']{constructor(_0x45d95f,_0x154a2f,_0x23d07e,_0x23ed74,_0xb0e68,_0x269e91){const _0x45dbf2=_0x4a1f29;super(),this['_beforeCloseService']=_0x45d95f,this[_0x45dbf2(0x232)]=_0x154a2f,this[_0x45dbf2(0x120)]=_0x23d07e,this[_0x45dbf2(0x10e)]=_0x23ed74,this[_0x45dbf2(0x37b)]=_0xb0e68,this[_0x45dbf2(0x34a)]=_0x269e91,this[_0x45dbf2(0x124)](),this[_0x45dbf2(0x252)]();}[_0x4a1f29(0x124)](){const _0x1cfa40=_0x4a1f29;this['disposeWithMe'](this[_0x1cfa40(0xc3)]['registerBeforeClose'](()=>{const _0x37e458=_0x1cfa40;if(this[_0x37e458(0x232)][_0x37e458(0x34d)][_0x37e458(0x13f)])return this[_0x37e458(0x34a)]['t'](_0x37e458(0x2f2));}));}[_0x4a1f29(0x252)](){const _0x505225=_0x4a1f29;this[_0x505225(0x344)](this[_0x505225(0x120)][_0x505225(0x10d)]['subscribe'](_0x1fb1eb=>{const _0x52ffd6=_0x505225;_0x1fb1eb['id']===u[_0x52ffd6(0x1db)][_0x52ffd6(0xbf)]&&this[_0x52ffd6(0x10e)][_0x52ffd6(0x161)]({'type':p[_0x52ffd6(0x14d)]['Warning'],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x1fb1eb['id']===u[_0x52ffd6(0x1db)][_0x52ffd6(0x2fc)]&&this[_0x52ffd6(0x10e)][_0x52ffd6(0x161)]({'type':p[_0x52ffd6(0x14d)][_0x52ffd6(0x185)],'content':this['_localeService']['t'](_0x52ffd6(0x321))}),_0x1fb1eb['id']===u[_0x52ffd6(0x1db)][_0x52ffd6(0x2c5)]&&this[_0x52ffd6(0x37b)][_0x52ffd6(0x161)]({'title':this['_localeService']['t'](_0x52ffd6(0x1d4)),'content':this['_localeService']['t'](_0x52ffd6(0x2a2)),'type':_0x52ffd6(0x19d),'duration':0x0}),_0x1fb1eb['id']===u[_0x52ffd6(0x1db)]['CONFLICT']&&this[_0x52ffd6(0x10e)]['show']({'type':p[_0x52ffd6(0x14d)]['Error'],'content':this[_0x52ffd6(0x34a)]['t'](_0x52ffd6(0x321))+'('+_0x1fb1eb[_0x52ffd6(0x1f0)]+')'}),_0x1fb1eb['id']===u[_0x52ffd6(0x1db)][_0x52ffd6(0x1b2)]&&this['_messageService'][_0x52ffd6(0x161)]({'type':p['MessageType'][_0x52ffd6(0x185)],'content':this[_0x52ffd6(0x34a)]['t'](_0x1fb1eb[_0x52ffd6(0x1f0)]||'')}),_0x1fb1eb['id']===u[_0x52ffd6(0x1db)][_0x52ffd6(0xdb)]&&this[_0x52ffd6(0x10e)][_0x52ffd6(0x161)]({'type':p[_0x52ffd6(0x14d)]['Warning'],'content':this[_0x52ffd6(0x34a)]['t'](_0x52ffd6(0x285))}),_0x1fb1eb['id']===u[_0x52ffd6(0x1db)][_0x52ffd6(0x1ae)]&&this[_0x52ffd6(0x10e)][_0x52ffd6(0x161)]({'type':p[_0x52ffd6(0x14d)][_0x52ffd6(0x195)],'content':this[_0x52ffd6(0x34a)]['t'](_0x52ffd6(0x24e))}),_0x1fb1eb['id']===u['CollaborationUIEventId'][_0x52ffd6(0x2c0)]&&this['_messageService'][_0x52ffd6(0x161)]({'type':p[_0x52ffd6(0x14d)][_0x52ffd6(0x195)],'content':this['_localeService']['t'](_0x52ffd6(0x1a7))});}));}};Z=Ft([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x4a1f29(0x127)]),y(0x2,a[_0x4a1f29(0x20d)](u[_0x4a1f29(0x122)])),y(0x3,O[_0x4a1f29(0x10c)]),y(0x4,O[_0x4a1f29(0x168)]),y(0x5,a[_0x4a1f29(0x20d)](a[_0x4a1f29(0xee)]))],Z);var jt=Object[_0x4a1f29(0xef)],kt=(_0x2e6e15,_0x17eb6e,_0x3acdb1,_0x23a9db)=>{for(var _0x110278=_0x23a9db>0x1?void 0x0:_0x23a9db?jt(_0x17eb6e,_0x3acdb1):_0x17eb6e,_0x3ed91d=_0x2e6e15['length']-0x1,_0x392238;_0x3ed91d>=0x0;_0x3ed91d--)(_0x392238=_0x2e6e15[_0x3ed91d])&&(_0x110278=_0x392238(_0x110278)||_0x110278);return _0x110278;},z=(_0x246676,_0x190c82)=>(_0x9cb75,_0x3fb8ba)=>_0x190c82(_0x9cb75,_0x3fb8ba,_0x246676);let Q=class extends a[_0x4a1f29(0x14f)]{constructor(_0x15db52,_0xc55cd2,_0x4900ee,_0x4cdf79){const _0x2e32a0=_0x4a1f29;super(),_(this,_0x2e32a0(0x236)),(this[_0x2e32a0(0x1eb)]=_0x15db52,this[_0x2e32a0(0x2db)]=_0xc55cd2,this['_logService']=_0x4900ee,this[_0x2e32a0(0x306)]=_0x4cdf79,this[_0x2e32a0(0x280)]());}[_0x4a1f29(0x280)](){const _0x7298ae=_0x4a1f29;this[_0x7298ae(0x254)](),this[_0x7298ae(0x2fb)](),this[_0x7298ae(0x2be)](),this[_0x7298ae(0x273)]();}['_initUserListener'](){const _0x1c0276=_0x4a1f29;this['disposeWithMe'](this['_collaborationSessionService'][_0x1c0276(0xe1)][_0x1c0276(0x31a)](_0x2ea602=>{const _0x488f4a=_0x1c0276;this[_0x488f4a(0x236)]=_0x2ea602==null?void 0x0:_0x2ea602[_0x488f4a(0x307)];}));}[_0x4a1f29(0x254)](){const _0x558b1f=_0x4a1f29,_0x5a716b=_0x1467ac=>{const _0x114bff=_0x1f3f;var _0x4026b1;this[_0x114bff(0x226)](_0x114bff(0x19d),_0x114bff(0x274)+_0x1467ac[_0x114bff(0x104)]+_0x114bff(0x13e)+_0x1467ac['filename']+':'+_0x1467ac[_0x114bff(0x32a)]+':'+_0x1467ac[_0x114bff(0x1c5)]+'\x0a'+(((_0x4026b1=_0x1467ac[_0x114bff(0x19d)])==null?void 0x0:_0x4026b1[_0x114bff(0x112)])||''));};window[_0x558b1f(0x349)](_0x558b1f(0x19d),_0x5a716b),this['disposeWithMe'](()=>{const _0x4c73cb=_0x558b1f;window[_0x4c73cb(0x2fd)](_0x4c73cb(0x19d),_0x5a716b);});}[_0x4a1f29(0x2fb)](){const _0x42c631=_0x4a1f29,_0x51b21c=_0x2c72e0=>{const _0x46b0c0=_0x1f3f;this['_uploadLog']('error',_0x46b0c0(0x1d0)+_0x2c72e0[_0x46b0c0(0x113)]);};window['addEventListener'](_0x42c631(0x1b5),_0x51b21c),this['disposeWithMe'](()=>{const _0x311139=_0x42c631;window[_0x311139(0x2fd)](_0x311139(0x1b5),_0x51b21c);});}[_0x4a1f29(0x2be)](){const _0x93a14c=_0x4a1f29,_0x245b36=this[_0x93a14c(0x300)][_0x93a14c(0x19d)][_0x93a14c(0x302)](this['_logService']);this['_logService'][_0x93a14c(0x19d)]=(..._0x19b1e3)=>{const _0x8b3f8b=_0x93a14c,_0x5d794e=_0x19b1e3[_0x8b3f8b(0x167)](_0x17a830=>_0x17a830 instanceof Error?_0x17a830[_0x8b3f8b(0x104)]+'\x0a'+_0x17a830[_0x8b3f8b(0x112)]:String(_0x17a830))[_0x8b3f8b(0x33c)]('\x20');this[_0x8b3f8b(0x226)](_0x8b3f8b(0x19d),_0x8b3f8b(0x2a3)+_0x5d794e),_0x245b36(..._0x19b1e3);},this['disposeWithMe'](()=>{this['_logService']['error']=_0x245b36;});}[_0x4a1f29(0x226)](_0x3a6cd3,_0x311f4d){const _0x1dc877=_0x4a1f29;try{const _0xebc7dc={'userId':this['_memberID'],'logLabel':_0x3a6cd3,'content':_0x311f4d};this['_httpService'][_0x1dc877(0x18c)](_0x1dc877(0x110),{'body':_0xebc7dc})['catch'](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x4a1f29(0x20d)](a[_0x4a1f29(0x2ff)])),z(0x1,a[_0x4a1f29(0x20d)](x[_0x4a1f29(0x1e9)])),z(0x2,a[_0x4a1f29(0xcc)]),z(0x3,a[_0x4a1f29(0x20d)](u[_0x4a1f29(0x240)]))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x28ac78,_0x3aa5b2,_0xb48328,_0x43f2f0)=>{const _0x41a44f=_0x4a1f29;for(var _0x4b22aa=_0x43f2f0>0x1?void 0x0:_0x43f2f0?Ht(_0x3aa5b2,_0xb48328):_0x3aa5b2,_0x16388f=_0x28ac78[_0x41a44f(0x191)]-0x1,_0xe55d89;_0x16388f>=0x0;_0x16388f--)(_0xe55d89=_0x28ac78[_0x16388f])&&(_0x4b22aa=_0xe55d89(_0x4b22aa)||_0x4b22aa);return _0x4b22aa;},Ae=(_0x492303,_0x4d2dc2)=>(_0x3a57eb,_0xc2d68e)=>_0x4d2dc2(_0x3a57eb,_0xc2d68e,_0x492303);let ee=class{constructor(_0x500a31,_0xfb4fde){const _0x15c7fc=_0x4a1f29;this['_transformService']=_0x500a31,this[_0x15c7fc(0x375)]=_0xfb4fde;}[_0x4a1f29(0x166)](_0x523b97){const _0x427148=_0x4a1f29;this['_transformUndoRedoStack'](_0x523b97),this[_0x427148(0x2ba)](_0x523b97);}[_0x4a1f29(0x29f)](_0x201ad0){const _0xa62c89=_0x4a1f29,{unitID:_0x46e1e1}=_0x201ad0,_0x1102f9=this[_0xa62c89(0x375)][_0xa62c89(0xf0)](_0x46e1e1)[_0xa62c89(0x373)](T[_0xa62c89(0x282)]),{redoCache:_0x2069ed}=_0x1102f9['getUndoRedoMutationParamsCache']();if(_0x2069ed[_0xa62c89(0x191)]===0x0)return _0x201ad0;let _0x3410b5=a[_0xa62c89(0x169)]['deepClone'](_0x201ad0[_0xa62c89(0x222)][0x0]);for(let _0xc7fb1=0x0;_0xc7fb1<_0x2069ed[_0xa62c89(0x191)];_0xc7fb1++){const _0x19eb2d={'id':_0xa62c89(0x14b),'params':{..._0x2069ed[_0xc7fb1]}},_0x2aaf9e=this['_transformService'][_0xa62c89(0x192)](_0x3410b5,_0x19eb2d,!0x1);if(g['isTransformMutationFailure'](_0x2aaf9e))throw _0x2aaf9e[_0xa62c89(0x19d)];_0x3410b5=_0x2aaf9e['m1Prime'];}return{...a[_0xa62c89(0x169)][_0xa62c89(0x28c)](_0x201ad0),'mutations':[_0x3410b5]};}[_0x4a1f29(0x1c0)](_0x5190f2){const _0x3a63b6=_0x4a1f29,{unitID:_0x19f5c9}=_0x5190f2,_0x490d3f=this[_0x3a63b6(0x375)]['getRenderById'](_0x19f5c9)['with'](T[_0x3a63b6(0x282)]),{undoCache:_0x4a1abc,redoCache:_0x55f41f}=_0x490d3f[_0x3a63b6(0x153)]();if(_0x4a1abc[_0x3a63b6(0x191)]===0x0||_0x55f41f['length']===0x0)return;const _0x1dfe86=[],_0x401928=[];let _0x3c767a=a[_0x3a63b6(0x169)]['deepClone'](_0x5190f2[_0x3a63b6(0x222)][0x0]),_0x641e10=a[_0x3a63b6(0x169)][_0x3a63b6(0x28c)](_0x5190f2[_0x3a63b6(0x222)][0x0]);for(let _0x584b4c=_0x4a1abc['length']-0x1;_0x584b4c>=0x0;_0x584b4c--){const _0x4d0d04={'id':_0x3a63b6(0x14b),'params':{..._0x4a1abc[_0x584b4c]}},_0x15b1fd={'id':_0x3a63b6(0x14b),'params':{..._0x55f41f[_0x584b4c]}},_0xad8681=this[_0x3a63b6(0x367)]['transformMutation'](_0x3c767a,_0x4d0d04,!0x1),_0x320b3a=this[_0x3a63b6(0x367)][_0x3a63b6(0x192)](_0x641e10,_0x15b1fd,!0x1);if(g[_0x3a63b6(0x163)](_0xad8681))throw _0xad8681[_0x3a63b6(0x19d)];if(g[_0x3a63b6(0x163)](_0x320b3a))throw _0x320b3a['error'];_0x1dfe86['unshift'](_0xad8681[_0x3a63b6(0x36b)][_0x3a63b6(0x1cc)]),_0x401928[_0x3a63b6(0x164)](_0x320b3a[_0x3a63b6(0x36b)][_0x3a63b6(0x1cc)]),_0x3c767a=_0xad8681['m1Prime'],_0x641e10=_0x320b3a[_0x3a63b6(0x265)];}_0x490d3f[_0x3a63b6(0x130)]({'undoCache':_0x1dfe86,'redoCache':_0x401928});}[_0x4a1f29(0x2ba)](_0x4376be){const _0x384397=_0x4a1f29,{unitID:_0x35fae7}=_0x4376be,_0x17c8a9=this[_0x384397(0x375)][_0x384397(0xf0)](_0x35fae7)[_0x384397(0x373)](T[_0x384397(0x282)]),_0x4ce911=_0x17c8a9['getActiveRange']();if(_0x4ce911==null)return;const _0x3f7cf3=[{'id':_0x384397(0x14b),'params':{'unitId':_0x4376be[_0x384397(0x1bb)],'actions':null,'textRanges':[_0x4ce911]}}],_0x259629=this[_0x384397(0x367)][_0x384397(0x287)](_0x4376be,_0x3f7cf3);if(!g[_0x384397(0x16f)](_0x259629))throw _0x259629[_0x384397(0x19d)];const _0x46ba3b=_0x259629[_0x384397(0x36b)][0x0]['params']['textRanges'];Array[_0x384397(0x269)](_0x46ba3b)&&_0x46ba3b[_0x384397(0x191)]&&_0x17c8a9[_0x384397(0x25a)](_0x46ba3b[0x0]);}};ee=Wt([Ae(0x0,g[_0x4a1f29(0x131)]),Ae(0x1,C[_0x4a1f29(0x333)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x129342,_0x471cf9,_0x7cf657,_0x2035a8)=>{const _0x5ca106=_0x4a1f29;for(var _0x1bcd43=_0x2035a8>0x1?void 0x0:_0x2035a8?Vt(_0x471cf9,_0x7cf657):_0x471cf9,_0x5e2b30=_0x129342[_0x5ca106(0x191)]-0x1,_0x2b116c;_0x5e2b30>=0x0;_0x5e2b30--)(_0x2b116c=_0x129342[_0x5e2b30])&&(_0x1bcd43=_0x2b116c(_0x1bcd43)||_0x1bcd43);return _0x1bcd43;},Ie=(_0xb55936,_0x4e937f)=>(_0x1716c3,_0x1e5852)=>_0x4e937f(_0x1716c3,_0x1e5852,_0xb55936);let te=class{constructor(_0x2cf39b,_0x2b4ba8,_0x1e81e1){const _0x3afa0d=_0x4a1f29;this['_injector']=_0x2cf39b,this['_transformService']=_0x2b4ba8,this[_0x3afa0d(0x34e)]=_0x1e81e1;}[_0x4a1f29(0x342)](_0xca596a){const _0x3dbb30=_0x4a1f29;this[_0x3dbb30(0x32e)](_0xca596a);}[_0x4a1f29(0x29f)](_0x364722){const _0x305cb2=_0x4a1f29,{unitID:_0x388702}=_0x364722,{collaboration:_0x59beef}=this[_0x305cb2(0x34e)][_0x305cb2(0x17f)](_0x388702);if(_0x59beef[_0x305cb2(0x191)]===0x0)return _0x364722;let _0x46417f=a['Tools'][_0x305cb2(0x28c)](_0x364722[_0x305cb2(0x222)][0x0]);for(let _0x52e34d=0x0;_0x52e34d<_0x59beef[_0x305cb2(0x191)];_0x52e34d++){const _0x38fef6={'id':_0x305cb2(0x14b),'params':{'unitId':_0x59beef[_0x52e34d][_0x305cb2(0x2b5)],..._0x59beef[_0x52e34d][_0x305cb2(0xca)]}},_0x226a48=this[_0x305cb2(0x367)][_0x305cb2(0x192)](_0x46417f,_0x38fef6,!0x1);if(g[_0x305cb2(0x163)](_0x226a48))throw _0x226a48[_0x305cb2(0x19d)];_0x46417f=_0x226a48['m1Prime'];}return{...a[_0x305cb2(0x169)][_0x305cb2(0x28c)](_0x364722),'mutations':[_0x46417f]};}[_0x4a1f29(0x32e)](_0xbe6e45){const _0x197694=_0x4a1f29,{unitID:_0x5afc41}=_0xbe6e45,{history:_0x1f50c8,collaboration:_0x4d1ba4}=this[_0x197694(0x34e)][_0x197694(0x17f)](_0x5afc41);if(_0x1f50c8['length']===0x0&&_0x4d1ba4[_0x197694(0x191)]===0x0)return;const _0x50f55a=[],_0x3b5cde=[];let _0x8f012f=a[_0x197694(0x169)][_0x197694(0x28c)](_0xbe6e45['mutations'][0x0]),_0x41686f=a[_0x197694(0x169)][_0x197694(0x28c)](_0xbe6e45['mutations'][0x0]);for(let _0x3813ef=_0x1f50c8[_0x197694(0x191)]-0x1;_0x3813ef>=0x0;_0x3813ef--){const _0xdda119={'id':_0x197694(0x14b),'params':{'unitId':_0x1f50c8[_0x3813ef][_0x197694(0x2b5)],..._0x1f50c8[_0x3813ef][_0x197694(0xda)]}},_0x3dce33={'id':_0x197694(0x14b),'params':{'unitId':_0x1f50c8[_0x3813ef][_0x197694(0x2b5)],..._0x1f50c8[_0x3813ef]['redoState']}},_0x1b3886=this[_0x197694(0x367)][_0x197694(0x192)](_0x8f012f,_0xdda119,!0x1),_0x50092a=this[_0x197694(0x367)][_0x197694(0x192)](_0x41686f,_0x3dce33,!0x1);if(g[_0x197694(0x163)](_0x1b3886))throw _0x1b3886[_0x197694(0x19d)];if(g[_0x197694(0x163)](_0x50092a))throw _0x50092a['error'];_0x50f55a['unshift']({..._0x1f50c8[_0x3813ef],'undoState':_0x1b3886['m2Prime'][_0x197694(0x1cc)],'redoState':_0x50092a['m2Prime'][_0x197694(0x1cc)]}),_0x8f012f=_0x1b3886[_0x197694(0x265)],_0x41686f=_0x50092a[_0x197694(0x265)];}_0x8f012f=a['Tools'][_0x197694(0x28c)](_0xbe6e45['mutations'][0x0]),_0x41686f=a[_0x197694(0x169)][_0x197694(0x28c)](_0xbe6e45[_0x197694(0x222)][0x0]);for(let _0x4a89c4=_0x4d1ba4['length']-0x1;_0x4a89c4>=0x0;_0x4a89c4--){const _0x36f6b6={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4d1ba4[_0x4a89c4][_0x197694(0x2b5)],..._0x4d1ba4[_0x4a89c4][_0x197694(0xda)]}},_0x229707={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4d1ba4[_0x4a89c4][_0x197694(0x2b5)],..._0x4d1ba4[_0x4a89c4]['redoState']}},_0x218396=this['_transformService'][_0x197694(0x192)](_0x8f012f,_0x36f6b6,!0x1),_0x118766=this['_transformService'][_0x197694(0x192)](_0x41686f,_0x229707,!0x1);if(g[_0x197694(0x163)](_0x218396))throw _0x218396['error'];if(g['isTransformMutationFailure'](_0x118766))throw _0x118766[_0x197694(0x19d)];_0x3b5cde[_0x197694(0x164)]({..._0x4d1ba4[_0x4a89c4],'undoState':_0x218396[_0x197694(0x36b)][_0x197694(0x1cc)],'redoState':_0x118766[_0x197694(0x36b)][_0x197694(0x1cc)]}),_0x8f012f=_0x218396[_0x197694(0x265)],_0x41686f=_0x118766['m1Prime'];}this[_0x197694(0x34e)][_0x197694(0x229)](_0x5afc41,{'history':_0x50f55a,'collaboration':_0x3b5cde});}};te=Gt([Ie(0x0,a[_0x4a1f29(0x20d)](a[_0x4a1f29(0x2ff)])),Ie(0x1,g[_0x4a1f29(0x131)]),Ie(0x2,a[_0x4a1f29(0x20d)](T[_0x4a1f29(0x1bd)]))],te);var Xt=Object[_0x4a1f29(0xef)],Kt=(_0x265ff7,_0x57fe73,_0x42fc25,_0x18f8a0)=>{for(var _0x335a61=_0x18f8a0>0x1?void 0x0:_0x18f8a0?Xt(_0x57fe73,_0x42fc25):_0x57fe73,_0x51a421=_0x265ff7['length']-0x1,_0x2e8aed;_0x51a421>=0x0;_0x51a421--)(_0x2e8aed=_0x265ff7[_0x51a421])&&(_0x335a61=_0x2e8aed(_0x335a61)||_0x335a61);return _0x335a61;},Pe=(_0x3ed64a,_0x476fff)=>(_0x20f944,_0x3bbe89)=>_0x476fff(_0x20f944,_0x3bbe89,_0x3ed64a);let se=class{constructor(_0x476f8d,_0x23a064){const _0x78e016=_0x4a1f29;this[_0x78e016(0x1eb)]=_0x476f8d,this[_0x78e016(0x367)]=_0x23a064;}['transformSelections'](_0xfa68ed){const _0x4c6d27=_0x4a1f29;var _0x384241;const _0x37de77=this['_injector'][_0x4c6d27(0x283)](V['DocSelectionManagerService']),_0x45c840=(_0x384241=_0x37de77[_0x4c6d27(0x260)]())!=null?_0x384241:[];if(_0x45c840[_0x4c6d27(0x191)]===0x0)return;const _0x35ad23=_0xfa68ed[_0x4c6d27(0x1bb)],_0x10949e=[{'id':_0x4c6d27(0x14b),'params':{'unitId':_0x35ad23,'actions':null,'textRanges':_0x45c840}}],_0x531ab4=this[_0x4c6d27(0x367)][_0x4c6d27(0x287)](_0xfa68ed,_0x10949e);if(!g[_0x4c6d27(0x16f)](_0x531ab4))throw _0x531ab4['error'];const _0x152264=_0x531ab4[_0x4c6d27(0x36b)][0x0][_0x4c6d27(0x1cc)][_0x4c6d27(0x123)];Array['isArray'](_0x152264)&&_0x152264['length']&&_0x37de77[_0x4c6d27(0x242)](_0x152264,{'unitId':_0x35ad23,'subUnitId':_0x35ad23},!0x1);}};se=Kt([Pe(0x0,a[_0x4a1f29(0x20d)](a[_0x4a1f29(0x2ff)])),Pe(0x1,g[_0x4a1f29(0x131)])],se);var qt=Object[_0x4a1f29(0xef)],zt=(_0x306e0b,_0x344972,_0x18c3be,_0x1c336e)=>{const _0x56277d=_0x4a1f29;for(var _0x6a41ab=_0x1c336e>0x1?void 0x0:_0x1c336e?qt(_0x344972,_0x18c3be):_0x344972,_0x4e89f0=_0x306e0b[_0x56277d(0x191)]-0x1,_0x856866;_0x4e89f0>=0x0;_0x4e89f0--)(_0x856866=_0x306e0b[_0x4e89f0])&&(_0x6a41ab=_0x856866(_0x6a41ab)||_0x6a41ab);return _0x6a41ab;},N=(_0xcf307a,_0x490b39)=>(_0xdfcf57,_0x5f1ddc)=>_0x490b39(_0xdfcf57,_0x5f1ddc,_0xcf307a);let ie=class extends a[_0x4a1f29(0x14f)]{constructor(_0x34b73c,_0x2532e9,_0x1d52e4,_0x4881cb,_0x42d553,_0x349f75,_0x40f937,_0x3f7f9f){const _0x2af40a=_0x4a1f29;super(),_(this,_0x2af40a(0x205),new I[(_0x2af40a(0x2a0))](u['CollaborationStatus'][_0x2af40a(0x276)])),(this[_0x2af40a(0x34e)]=_0x34b73c,this[_0x2af40a(0x18e)]=_0x2532e9,this[_0x2af40a(0x391)]=_0x1d52e4,this[_0x2af40a(0x28a)]=_0x4881cb,this[_0x2af40a(0x1f9)]=_0x42d553,this[_0x2af40a(0x356)]=_0x349f75,this[_0x2af40a(0x10e)]=_0x40f937,this[_0x2af40a(0x34a)]=_0x3f7f9f,this[_0x2af40a(0x1b9)]());}[_0x4a1f29(0x1b9)](){const _0x191804=_0x4a1f29;this['disposeWithMe'](this[_0x191804(0x18e)][_0x191804(0x2b6)]['subscribe'](_0x565a68=>{const _0x2830db=_0x191804,_0x41194=this['_docStateChangeManagerService'][_0x2830db(0x320)][_0x2830db(0x31a)](_0x45a350=>{const _0x258ed1=_0x2830db;if(_0x45a350==null)return;const {unitId:_0x49e9e9,redoState:_0x2a9f33,commandId:_0x41a577}=_0x45a350;if(_0x49e9e9!==_0x565a68[_0x258ed1(0x1bb)])return;const _0x3d8be5={'id':_0x41a577,'type':a[_0x258ed1(0x15f)][_0x258ed1(0x2c4)],'params':{'unitId':_0x49e9e9,'actions':_0x2a9f33['actions'],'textRanges':null}};_0x565a68[_0x258ed1(0x218)](_0x3d8be5);});if(_0x565a68[_0x2830db(0x344)](_0x41194),_0x565a68 instanceof u[_0x2830db(0x341)]){const _0x30ce03={'onTransformIME':_0xfec380=>this['_docTransformIMECacheService']['transformIMECache'](_0xfec380),'onTransformState':_0x5a90be=>this['_docTransformStateCacheService'][_0x2830db(0x342)](_0x5a90be),'onTransformSelections':_0x2053b1=>this[_0x2830db(0x1f9)]['transformSelections'](_0x2053b1),'onSyncEditingCollabCursor':_0x12592a=>this['_docSyncEditingCollabCursorService'][_0x2830db(0x335)](_0x12592a),'onTransformRemoteChangesetByIMECache':_0x2adf50=>this[_0x2830db(0x391)]['transformRemoteChangeset'](_0x2adf50),'onTransformRemoteChangesetByStateCache':_0x2560f8=>this['_docTransformStateCacheService'][_0x2830db(0x29f)](_0x2560f8)};_0x565a68[_0x2830db(0x1d2)](_0x30ce03);}}));}};ie=zt([N(0x0,a[_0x4a1f29(0x20d)](T['DocStateChangeManagerService'])),N(0x1,a['Inject'](u[_0x4a1f29(0x281)])),N(0x2,a[_0x4a1f29(0x20d)](ee)),N(0x3,a[_0x4a1f29(0x20d)](te)),N(0x4,a[_0x4a1f29(0x20d)](se)),N(0x5,a[_0x4a1f29(0x20d)](be)),N(0x6,O[_0x4a1f29(0x10c)]),N(0x7,a['Inject'](a[_0x4a1f29(0xee)]))],ie);var G=(_0xd58c56=>(_0xd58c56[_0xd58c56[_0x4a1f29(0x203)]=0x0]=_0x4a1f29(0x203),_0xd58c56[_0xd58c56['OK']=0x1]='OK',_0xd58c56[_0xd58c56[_0x4a1f29(0x30d)]=0x2]=_0x4a1f29(0x30d),_0xd58c56[_0xd58c56[_0x4a1f29(0x2c5)]=0x3]=_0x4a1f29(0x2c5),_0xd58c56[_0xd58c56[_0x4a1f29(0x301)]=0x4]=_0x4a1f29(0x301),_0xd58c56[_0xd58c56[_0x4a1f29(0x2a9)]=0x5]=_0x4a1f29(0x2a9),_0xd58c56[_0xd58c56[_0x4a1f29(0x106)]=0x6]=_0x4a1f29(0x106),_0xd58c56[_0xd58c56[_0x4a1f29(0x20b)]=0x7]=_0x4a1f29(0x20b),_0xd58c56[_0xd58c56[_0x4a1f29(0x206)]=0x8]='TOO_MANY_REQUESTS',_0xd58c56[_0xd58c56['COMPLETION_FINISHED']=0x9]=_0x4a1f29(0x36e),_0xd58c56[_0xd58c56[_0x4a1f29(0x2ea)]=0xa]=_0x4a1f29(0x2ea),_0xd58c56[_0xd58c56[_0x4a1f29(0x30c)]=0xb]=_0x4a1f29(0x30c),_0xd58c56[_0xd58c56['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x4a1f29(0x1d3),_0xd58c56[_0xd58c56['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x4a1f29(0x339),_0xd58c56[_0xd58c56[_0x4a1f29(0x37e)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xd58c56[_0xd58c56[_0x4a1f29(0x366)]=0xf]=_0x4a1f29(0x366),_0xd58c56[_0xd58c56[_0x4a1f29(0x2bf)]=0x10]=_0x4a1f29(0x2bf),_0xd58c56[_0xd58c56[_0x4a1f29(0x290)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0xd58c56[_0xd58c56[_0x4a1f29(0xc4)]=0x65]=_0x4a1f29(0xc4),_0xd58c56[_0xd58c56['USER_NOT_FOUND']=0xc9]=_0x4a1f29(0x227),_0xd58c56[_0xd58c56[_0x4a1f29(0xd8)]=0xca]='USER_IS_ANONYMOUS',_0xd58c56[_0xd58c56['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4a1f29(0x24a),_0xd58c56[_0xd58c56[_0x4a1f29(0x201)]=0x1771]=_0x4a1f29(0x201),_0xd58c56[_0xd58c56['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4a1f29(0xfd),_0xd58c56[_0xd58c56[_0x4a1f29(0xf6)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0xd58c56[_0xd58c56[_0x4a1f29(0x36d)]=0x1b59]=_0x4a1f29(0x36d),_0xd58c56[_0xd58c56['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0xd58c56[_0xd58c56[_0x4a1f29(0x14a)]=0x1b5b]=_0x4a1f29(0x14a),_0xd58c56[_0xd58c56[_0x4a1f29(0x2b1)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0xd58c56[_0xd58c56[_0x4a1f29(0x147)]=0x1b5d]=_0x4a1f29(0x147),_0xd58c56[_0xd58c56['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x4a1f29(0x117),_0xd58c56[_0xd58c56[_0x4a1f29(0x1a8)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0xd58c56[_0xd58c56[_0x4a1f29(0x379)]=0x232a]=_0x4a1f29(0x379),_0xd58c56[_0xd58c56[_0x4a1f29(0x2cb)]=0x232b]=_0x4a1f29(0x2cb),_0xd58c56[_0xd58c56[_0x4a1f29(0x2cd)]=0x232c]=_0x4a1f29(0x2cd),_0xd58c56[_0xd58c56[_0x4a1f29(0x2dd)]=0x232d]=_0x4a1f29(0x2dd),_0xd58c56[_0xd58c56[_0x4a1f29(0xd3)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0xd58c56[_0xd58c56[_0x4a1f29(0x2c9)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0xd58c56[_0xd58c56[_0x4a1f29(0xeb)]=0x2713]=_0x4a1f29(0xeb),_0xd58c56[_0xd58c56[_0x4a1f29(0x1a6)]=0x2714]=_0x4a1f29(0x1a6),_0xd58c56[_0xd58c56[_0x4a1f29(0x326)]=0x271a]=_0x4a1f29(0x326),_0xd58c56[_0xd58c56[_0x4a1f29(0x1f3)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0xd58c56[_0xd58c56['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x4a1f29(0xfc),_0xd58c56[_0xd58c56['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x4a1f29(0x27b),_0xd58c56[_0xd58c56['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x4a1f29(0x312),_0xd58c56[_0xd58c56[_0x4a1f29(0x38c)]=0x271f]=_0x4a1f29(0x38c),_0xd58c56[_0xd58c56['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x4a1f29(0x10f),_0xd58c56[_0xd58c56[_0x4a1f29(0x11b)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0xd58c56[_0xd58c56[_0x4a1f29(0x2fa)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0xd58c56[_0xd58c56['INVALID_INVITE_CODE']=0x2ee2]=_0x4a1f29(0x390),_0xd58c56[_0xd58c56[_0x4a1f29(0x148)]=0x2ee3]=_0x4a1f29(0x148),_0xd58c56[_0xd58c56[_0x4a1f29(0x12f)]=0x2ee4]=_0x4a1f29(0x12f),_0xd58c56[_0xd58c56[_0x4a1f29(0x2dc)]=0x2ee5]=_0x4a1f29(0x2dc),_0xd58c56[_0xd58c56[_0x4a1f29(0x146)]=0x32c9]=_0x4a1f29(0x146),_0xd58c56[_0xd58c56[_0x4a1f29(0x1b8)]=0x32ca]=_0x4a1f29(0x1b8),_0xd58c56[_0xd58c56[_0x4a1f29(0xc9)]=0x32cb]=_0x4a1f29(0xc9),_0xd58c56[_0xd58c56[_0x4a1f29(0x28f)]=0x36b1]=_0x4a1f29(0x28f),_0xd58c56[_0xd58c56['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x4a1f29(0x2d4),_0xd58c56[_0xd58c56['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x4a1f29(0x33b),_0xd58c56[_0xd58c56[_0x4a1f29(0x29b)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0xd58c56[_0xd58c56[_0x4a1f29(0x36f)]=0x36b5]=_0x4a1f29(0x36f),_0xd58c56[_0xd58c56[_0x4a1f29(0x295)]=0x36b6]=_0x4a1f29(0x295),_0xd58c56[_0xd58c56[_0x4a1f29(0x25c)]=0x36b7]=_0x4a1f29(0x25c),_0xd58c56[_0xd58c56[_0x4a1f29(0x188)]=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0xd58c56[_0xd58c56[_0x4a1f29(0x11a)]=0x3715]=_0x4a1f29(0x11a),_0xd58c56[_0xd58c56[_0x4a1f29(0x305)]=0x3716]=_0x4a1f29(0x305),_0xd58c56[_0xd58c56[_0x4a1f29(0x2d7)]=0x3717]=_0x4a1f29(0x2d7),_0xd58c56[_0xd58c56[_0x4a1f29(0x2eb)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0xd58c56[_0xd58c56[_0x4a1f29(0x16e)]=0x3a99]='REDEMPTION_INVALID_CODE',_0xd58c56[_0xd58c56[_0x4a1f29(0x1be)]=0x3a9a]=_0x4a1f29(0x1be),_0xd58c56[_0xd58c56[_0x4a1f29(0x1aa)]=0x3a9b]=_0x4a1f29(0x1aa),_0xd58c56[_0xd58c56[_0x4a1f29(0x213)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0xd58c56[_0xd58c56[_0x4a1f29(0x337)]=0x3a9d]=_0x4a1f29(0x337),_0xd58c56[_0xd58c56[_0x4a1f29(0x2f8)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0xd58c56[_0xd58c56[_0x4a1f29(0x198)]=0x3a9f]=_0x4a1f29(0x198),_0xd58c56[_0xd58c56['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x4a1f29(0x2cf),_0xd58c56[_0xd58c56[_0x4a1f29(0x1cd)]=-0x1]=_0x4a1f29(0x1cd),_0xd58c56))(G||{});function Jt(_0x569e3c){const _0x37f95c=_0x4a1f29;var _0x56c11f,_0x507b56;const _0x49071f=(_0x56c11f=_0x569e3c['stageInfo'])==null?void 0x0:_0x56c11f[_0x37f95c(0x328)],_0x26bd91=((_0x507b56=_0x569e3c[_0x37f95c(0xde)])==null?void 0x0:_0x507b56['totalFormulasToCalculate'])||0x0;return _0x49071f===B[_0x37f95c(0x23a)][_0x37f95c(0x1f2)]&&_0x26bd91>0x0;}function Zt(_0x1c8b5a){const _0x2967b7=_0x4a1f29;return _0x1c8b5a[_0x2967b7(0x1fa)]===B[_0x2967b7(0x259)][_0x2967b7(0x20f)];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x1b3752,_0x490f21,_0x3779b2,_0x364d14)=>{const _0x37fd87=_0x4a1f29;for(var _0x5e0ef3=_0x364d14>0x1?void 0x0:_0x364d14?Qt(_0x490f21,_0x3779b2):_0x490f21,_0xc4894a=_0x1b3752[_0x37fd87(0x191)]-0x1,_0x5510eb;_0xc4894a>=0x0;_0xc4894a--)(_0x5510eb=_0x1b3752[_0xc4894a])&&(_0x5e0ef3=_0x5510eb(_0x5e0ef3)||_0x5e0ef3);return _0x5e0ef3;},L=(_0x1a1193,_0x37722b)=>(_0x202490,_0xf0b43e)=>_0x37722b(_0x202490,_0xf0b43e,_0x1a1193);const ts=_0x4a1f29(0x31d),ss=_0x4a1f29(0xd5),is='/universer-api/license/formula/limit/done';let ne=class extends a[_0x4a1f29(0x14f)]{constructor(_0x3bef8b,_0x53b22b,_0x2ddf46,_0x310d80,_0x337969,_0x3f5f6d,_0x5c9065){const _0x5a4406=_0x4a1f29;super(),_(this,_0x5a4406(0x2a8),null),_(this,_0x5a4406(0x180),0x0),_(this,_0x5a4406(0x108),0x0),_(this,_0x5a4406(0x292),[]),_(this,_0x5a4406(0x2d3),0x0),(this['_messageService']=_0x3bef8b,this[_0x5a4406(0x1ee)]=_0x53b22b,this[_0x5a4406(0x37d)]=_0x2ddf46,this[_0x5a4406(0x2db)]=_0x310d80,this[_0x5a4406(0x2ef)]=_0x337969,this[_0x5a4406(0x300)]=_0x3f5f6d,this[_0x5a4406(0x34a)]=_0x5c9065,this[_0x5a4406(0x385)]());}[_0x4a1f29(0x385)](){const _0x45336d=_0x4a1f29;this[_0x45336d(0x344)](this[_0x45336d(0x1ee)][_0x45336d(0x256)]((_0x26543f,_0x5d1e38)=>{const _0x4f2d1e=_0x45336d;var _0x4d0717;if(_0x26543f['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x4838e0=_0x26543f[_0x4f2d1e(0x1cc)];if(!this[_0x4f2d1e(0x16d)]((_0x4d0717=_0x4838e0['dirtyRanges'])!=null?_0x4d0717:[]))return;if(!this[_0x4f2d1e(0x372)]())throw this[_0x4f2d1e(0x128)](_0x26543f,_0x5d1e38),this[_0x4f2d1e(0x288)](),new a[(_0x4f2d1e(0x152))]();})),this['disposeWithMe'](this['_commandService'][_0x45336d(0x228)]((_0x1f1e77,_0x184656)=>{const _0x1778f1=_0x45336d;if(_0x1f1e77['id']!==B[_0x1778f1(0x12a)]['id'])return;const _0x6411be=_0x1f1e77[_0x1778f1(0x1cc)];if(Jt(_0x6411be)){const _0x38f1a3=a['generateRandomId']();this[_0x1778f1(0x292)][_0x1778f1(0x183)](_0x38f1a3),this[_0x1778f1(0x23d)](_0x38f1a3);}else{if(Zt(_0x6411be)&&this[_0x1778f1(0x292)][_0x1778f1(0x191)]>0x0){const _0x3238a4=this['_taskIds']['shift']();this[_0x1778f1(0x22c)](_0x3238a4);}}}));}[_0x4a1f29(0x313)](){const _0x2158b8=_0x4a1f29;super[_0x2158b8(0x313)](),this[_0x2158b8(0x22a)](),this[_0x2158b8(0x292)]=[],this['_currentUsage']=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async['_checkAndWaitForCalculationPermission'](_0x28970,_0xa516a7){const _0x216f52=_0x4a1f29;for(let _0x22fd36=0x0;_0x22fd36<0x1e;_0x22fd36++)try{if(await this[_0x216f52(0x158)](),this[_0x216f52(0x372)]()){this[_0x216f52(0x26a)](_0x28970,_0xa516a7),this[_0x216f52(0x10e)][_0x216f52(0x161)]({'content':this['_localeService']['t'](_0x216f52(0xdc)),'type':p[_0x216f52(0x14d)][_0x216f52(0x23c)]});return;}await new Promise(_0x29058d=>{const _0x2623aa=_0x216f52;this['_pollingInterval']=window[_0x2623aa(0x35b)](_0x29058d,0x3e8);});}catch(_0x56ced4){this[_0x216f52(0x300)][_0x216f52(0x19d)](_0x56ced4);}this[_0x216f52(0x10e)][_0x216f52(0x161)]({'content':this['_localeService']['t'](_0x216f52(0x1d7)),'type':p['MessageType'][_0x216f52(0x195)]});}[_0x4a1f29(0x26a)](_0x2ab8da,_0x323f8c){const _0x18a667=_0x4a1f29;try{this['_commandService'][_0x18a667(0x26b)](_0x2ab8da['id'],_0x2ab8da[_0x18a667(0x1cc)],_0x323f8c);}catch(_0x2dbff8){this[_0x18a667(0x300)]['error'](_0x2dbff8);}}[_0x4a1f29(0x1a0)](_0x1cf568,_0x1076f1){const _0x3b2eca=_0x4a1f29;_0x1076f1<this['_lastResponseTimestamp']||(this[_0x3b2eca(0x2d3)]=_0x1076f1,this['_maxFormulaLimit']=Number[_0x3b2eca(0x35a)](_0x1cf568['maxFormulaLimit']),this[_0x3b2eca(0x108)]=Number[_0x3b2eca(0x35a)](_0x1cf568[_0x3b2eca(0x178)]));}async['_startCalculationLimit'](_0x18710c){const _0x361bd2=_0x4a1f29;var _0x3b12dd,_0x30a524;const _0x107e73=Date['now']();try{const _0x2f9180=((_0x3b12dd=this[_0x361bd2(0x37d)][_0x361bd2(0x1a9)](u[_0x361bd2(0x12b)]))==null?void 0x0:_0x3b12dd['startFormulaLimitUrl'])||ss,_0x29458f=(await this[_0x361bd2(0x2db)][_0x361bd2(0x18c)](_0x2f9180,{'body':JSON[_0x361bd2(0xf1)]({'taskId':_0x18710c})}))[_0x361bd2(0x207)];if(((_0x30a524=_0x29458f[_0x361bd2(0x19d)])==null?void 0x0:_0x30a524[_0x361bd2(0x1a1)])!==G['OK'])return;this[_0x361bd2(0x1a0)](_0x29458f['limitInfo'],_0x107e73);}catch(_0x2a1584){this[_0x361bd2(0x300)][_0x361bd2(0x19d)](_0x2a1584);}}async[_0x4a1f29(0x158)](_0x44a575){const _0x4c4816=_0x4a1f29;var _0xdb8f3a,_0x3b2646;const _0x116607=Date['now']();try{const _0x3033cc=((_0xdb8f3a=this[_0x4c4816(0x37d)]['getConfig'](u[_0x4c4816(0x12b)]))==null?void 0x0:_0xdb8f3a['getformulaLimitStatusUrl'])||ts,_0x4bd1b4=_0x44a575?_0x3033cc+'?taskId='+encodeURIComponent(_0x44a575):_0x3033cc,_0x4c049a=(await this[_0x4c4816(0x2db)][_0x4c4816(0x283)](_0x4bd1b4))['body'];if(((_0x3b2646=_0x4c049a[_0x4c4816(0x19d)])==null?void 0x0:_0x3b2646[_0x4c4816(0x1a1)])!==G['OK'])return;this[_0x4c4816(0x1a0)](_0x4c049a[_0x4c4816(0x13a)],_0x116607);}catch(_0x28831b){this[_0x4c4816(0x300)][_0x4c4816(0x19d)](_0x28831b);}}async[_0x4a1f29(0x22c)](_0x59a640){const _0x2327d5=_0x4a1f29;var _0xcb03f3,_0x4259d5;const _0x13213d=Date[_0x2327d5(0x2b2)]();try{const _0x4c046d=((_0xcb03f3=this['_configService'][_0x2327d5(0x1a9)](u[_0x2327d5(0x12b)]))==null?void 0x0:_0xcb03f3[_0x2327d5(0x284)])||is,_0x3762c3=(await this[_0x2327d5(0x2db)][_0x2327d5(0x18c)](_0x4c046d,{'body':JSON[_0x2327d5(0xf1)]({'taskId':_0x59a640})}))[_0x2327d5(0x207)];if(((_0x4259d5=_0x3762c3['error'])==null?void 0x0:_0x4259d5[_0x2327d5(0x1a1)])!==G['OK'])return;this[_0x2327d5(0x1a0)](_0x3762c3['limitInfo'],_0x13213d);}catch(_0x1daf55){this['_logService'][_0x2327d5(0x19d)](_0x1daf55);}}['_checkCalculationAvailable'](){const _0x47c835=_0x4a1f29;return this[_0x47c835(0x180)]===0x0?!0x0:this[_0x47c835(0x180)]-this[_0x47c835(0x108)]>0x0;}['_clearPolling'](){const _0x49462f=_0x4a1f29;this['_pollingInterval']&&(clearTimeout(this[_0x49462f(0x2a8)]),this[_0x49462f(0x2a8)]=null);}[_0x4a1f29(0x288)](){const _0x5b95dc=_0x4a1f29;this['_messageService'][_0x5b95dc(0x161)]({'content':this[_0x5b95dc(0x34a)]['t'](_0x5b95dc(0x294)),'type':p['MessageType'][_0x5b95dc(0x25d)]});}[_0x4a1f29(0x16d)](_0xa46436){const _0x19a42b=_0x4a1f29;for(const _0x1f3533 of _0xa46436){const {unitId:_0x135f1,sheetId:_0x2283db,range:_0x4f835a}=_0x1f3533,_0x4f42fe=this[_0x19a42b(0x2ef)][_0x19a42b(0x309)](_0x135f1);if(!_0x4f42fe)continue;const _0x163962=_0x4f42fe[_0x19a42b(0x1f5)](_0x2283db);if(!_0x163962)continue;const _0x30dcf1=_0x163962[_0x19a42b(0x2c2)]();for(let _0x254de9=_0x4f835a[_0x19a42b(0x172)];_0x254de9<=_0x4f835a['endRow'];_0x254de9++)for(let _0x1082f7=_0x4f835a[_0x19a42b(0x216)];_0x1082f7<=_0x4f835a['endColumn'];_0x1082f7++){const _0x513ecc=_0x30dcf1[_0x19a42b(0xfb)](_0x254de9,_0x1082f7);if(_0x513ecc&&(a[_0x19a42b(0x233)](_0x513ecc['f'])||a['isFormulaId'](_0x513ecc['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x4a1f29(0x20d)](O[_0x4a1f29(0x10c)])),L(0x1,a[_0x4a1f29(0x1e6)]),L(0x2,a['IConfigService']),L(0x3,a['Inject'](x[_0x4a1f29(0x1e9)])),L(0x4,a['IUniverInstanceService']),L(0x5,a[_0x4a1f29(0xcc)]),L(0x6,a[_0x4a1f29(0x20d)](a['LocaleService']))],ne);var ns=Object[_0x4a1f29(0xef)],rs=(_0x154db2,_0x503648,_0x12e093,_0x5d0108)=>{const _0x35117d=_0x4a1f29;for(var _0x16f170=_0x5d0108>0x1?void 0x0:_0x5d0108?ns(_0x503648,_0x12e093):_0x503648,_0x93f45b=_0x154db2[_0x35117d(0x191)]-0x1,_0x20c805;_0x93f45b>=0x0;_0x93f45b--)(_0x20c805=_0x154db2[_0x93f45b])&&(_0x16f170=_0x20c805(_0x16f170)||_0x16f170);return _0x16f170;},Se=(_0x5487fb,_0x48f7d0)=>(_0x193e0e,_0xa51853)=>_0x48f7d0(_0x193e0e,_0xa51853,_0x5487fb);let Te=class extends a['Disposable']{constructor(_0x1bdaab,_0x2115cf,_0xf946f9){const _0x446ea8=_0x4a1f29;super(),_(this,_0x446ea8(0x1ff),new Map()),_(this,_0x446ea8(0x174),new Map()),_(this,_0x446ea8(0x21d),!0x1),(this[_0x446ea8(0x37d)]=_0x1bdaab,this[_0x446ea8(0x354)]=_0x2115cf,this[_0x446ea8(0x2f5)]=_0xf946f9);}[_0x4a1f29(0x1d1)](){const _0x1e2486=_0x4a1f29;this[_0x1e2486(0x21d)]=!0x0;}[_0x4a1f29(0x1d6)](){const _0x1eb2e5=_0x4a1f29;this[_0x1eb2e5(0x21d)]=!0x1;}get['saveTaskMap'](){const _0x3f10cc=_0x4a1f29;return this[_0x3f10cc(0x174)];}[_0x4a1f29(0x313)](){const _0xed704c=_0x4a1f29;this[_0xed704c(0x1cb)]()[_0xed704c(0x332)](()=>super[_0xed704c(0x313)]());}async[_0x4a1f29(0x171)](_0x3fff74){return this['_disabled']?null:this['_localStorageService']['getItem'](u['getLocalCacheKey'](_0x3fff74));}async[_0x4a1f29(0x12d)](_0x142c30,_0x47a8fe){return!!this['_localStorageService']['setItem'](_0x142c30,_0x47a8fe);}[_0x4a1f29(0x34b)](_0x4104a9,_0x2a9eda,_0x1b8a7e,_0x25fde5){const _0x5a68d9=_0x4a1f29,_0x42223d=this['_revisionService'][_0x5a68d9(0x360)](_0x4104a9);this['_cachedData'][_0x5a68d9(0x193)](_0x4104a9,{'unitID':_0x4104a9,'type':_0x2a9eda,'awaitingChangeset':_0x1b8a7e,'mutations':_0x25fde5,'rev':_0x42223d}),this[_0x5a68d9(0x174)][_0x5a68d9(0x114)](_0x4104a9)||this[_0x5a68d9(0x1ac)](_0x4104a9);}[_0x4a1f29(0x1ac)](_0x5b3eaa){const _0x36de93=_0x4a1f29,_0x3d6926=this[_0x36de93(0x315)]();_0x3d6926===0x0?this['_saveCache'](_0x5b3eaa):this[_0x36de93(0x174)][_0x36de93(0x193)](_0x5b3eaa,setTimeout(()=>this[_0x36de93(0x17b)](_0x5b3eaa),_0x3d6926));}[_0x4a1f29(0x315)](){const _0xf05d73=_0x4a1f29;var _0x130ed7;return(_0x130ed7=this[_0xf05d73(0x37d)][_0xf05d73(0x1a9)](u[_0xf05d73(0x316)]))!=null?_0x130ed7:u['LOCAL_CACHE_INTERVAL'];}[_0x4a1f29(0x17b)](_0xd60edc){const _0x8c6a0e=_0x4a1f29,_0x542fa6=this[_0x8c6a0e(0x174)][_0x8c6a0e(0x283)](_0xd60edc);return _0x542fa6!==void 0x0&&window[_0x8c6a0e(0x2b4)](_0x542fa6),this[_0x8c6a0e(0x354)][_0x8c6a0e(0x2d6)](u['getLocalCacheKey'](_0xd60edc),this[_0x8c6a0e(0x1ff)]['get'](_0xd60edc))[_0x8c6a0e(0x332)](()=>this[_0x8c6a0e(0x174)][_0x8c6a0e(0x2fe)](_0xd60edc));}async['exhaustSavingTask'](){const _0x5ce8be=_0x4a1f29,_0x25f38b=[];this['_saveTaskMap'][_0x5ce8be(0x1fb)]((_0x3665b3,_0x1a74bc)=>{const _0x2d763a=_0x5ce8be;window[_0x2d763a(0x2b4)](_0x3665b3),_0x25f38b[_0x2d763a(0x183)](this['_saveCache'](_0x1a74bc)[_0x2d763a(0x332)](()=>{const _0x2eb1a1=_0x2d763a;this[_0x2eb1a1(0x174)][_0x2eb1a1(0x2fe)](_0x1a74bc);}));}),await Promise[_0x5ce8be(0xf3)](_0x25f38b);}};Te=rs([Se(0x0,a[_0x4a1f29(0x347)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a[_0x4a1f29(0x20d)](g[_0x4a1f29(0x38b)]))],Te);class ke extends a[_0x4a1f29(0x27c)]{constructor(){const _0x500e03=_0x4a1f29;super(),_(this,_0x500e03(0x29d)),this[_0x500e03(0x29d)]=I[_0x500e03(0x1dc)](window,_0x500e03(0x103))['pipe'](I[_0x500e03(0x23b)](this[_0x500e03(0x217)]),I[_0x500e03(0x16c)](0x1),I[_0x500e03(0x17a)](void 0x0));}[_0x4a1f29(0x30b)](_0x20e722,_0x329f98,_0x393f29=!0x1){const _0x2181fb=_0x4a1f29,_0x12864e=new URL(window['location'][_0x2181fb(0xf5)]);_0x12864e[_0x2181fb(0x28b)][_0x2181fb(0x193)](_0x20e722,_0x329f98),_0x393f29?window[_0x2181fb(0x327)]['replaceState']('','',_0x12864e[_0x2181fb(0xe7)]()):window[_0x2181fb(0x327)][_0x2181fb(0x36c)]('','',_0x12864e[_0x2181fb(0xe7)]());}[_0x4a1f29(0x29c)](_0x297843,_0x236851=!0x1){const _0x2cb18c=_0x4a1f29,_0x2fa2c5=new URL(window[_0x2cb18c(0x369)][_0x2cb18c(0xf5)]);_0x2fa2c5['searchParams']['delete'](_0x297843),_0x236851?window['history']['replaceState']('','',_0x2fa2c5[_0x2cb18c(0xe7)]()):window[_0x2cb18c(0x327)]['pushState']('','',_0x2fa2c5[_0x2cb18c(0xe7)]());}[_0x4a1f29(0x319)](_0x595ad0){const _0x18b409=_0x4a1f29;var _0x1d55a9;return(_0x1d55a9=new URL(window['location'][_0x18b409(0xf5)])[_0x18b409(0x28b)]['get'](_0x595ad0))!=null?_0x1d55a9:void 0x0;}}var os=Object['defineProperty'],as=Object[_0x4a1f29(0xef)],cs=(_0x47292a,_0x51b3f0,_0x5eecbf)=>_0x51b3f0 in _0x47292a?os(_0x47292a,_0x51b3f0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5eecbf}):_0x47292a[_0x51b3f0]=_0x5eecbf,ls=(_0x47a284,_0x24496b,_0x3d0799,_0x1acc25)=>{const _0x517d37=_0x4a1f29;for(var _0x2076d1=_0x1acc25>0x1?void 0x0:_0x1acc25?as(_0x24496b,_0x3d0799):_0x24496b,_0x4c712c=_0x47a284[_0x517d37(0x191)]-0x1,_0x48572b;_0x4c712c>=0x0;_0x4c712c--)(_0x48572b=_0x47a284[_0x4c712c])&&(_0x2076d1=_0x48572b(_0x2076d1)||_0x2076d1);return _0x2076d1;},de=(_0x1dd810,_0x5c0fb5)=>(_0x1af1a0,_0x2db058)=>_0x5c0fb5(_0x1af1a0,_0x2db058,_0x1dd810),_s=(_0x12b608,_0x2c380c,_0x4c916c)=>cs(_0x12b608,_0x2c380c+'',_0x4c916c);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x4a1f29(0x37a)]=class extends a[_0x4a1f29(0xe0)]{constructor(_0x57f9b7=Me,_0x31397b,_0x59c7b3,_0x2ee4b3){const _0x6cc849=_0x4a1f29;super(),this['_config']=_0x57f9b7,this[_0x6cc849(0x375)]=_0x31397b,this[_0x6cc849(0x1eb)]=_0x59c7b3,this[_0x6cc849(0x37d)]=_0x2ee4b3;const {..._0x68dbb2}=a['merge']({},Me,this[_0x6cc849(0x368)]);this['_configService'][_0x6cc849(0x27a)](Yt,_0x68dbb2);}[_0x4a1f29(0x234)](){const _0x175bce=_0x4a1f29;this[_0x175bce(0x384)](),this[_0x175bce(0x387)]();}[_0x4a1f29(0x189)](){const _0x3f383e=_0x4a1f29;this[_0x3f383e(0x2f7)]();}[_0x4a1f29(0x384)](){const _0x4caf82=_0x4a1f29;var _0x1ad0f9;const _0x115c7c=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x4caf82(0x19f)],{'useClass':x[_0x4caf82(0x268)]}],[u[_0x4caf82(0x127)],{'useClass':Te}],[exports[_0x4caf82(0x142)]],[ie],[Z],[F],[me],[exports[_0x4caf82(0x334)]]];this[_0x4caf82(0x368)][_0x4caf82(0x336)]&&_0x115c7c['push']([Q]),a['registerDependencies'](this[_0x4caf82(0x1eb)],a['mergeOverrideWithDependencies'](_0x115c7c,(_0x1ad0f9=this[_0x4caf82(0x368)])==null?void 0x0:_0x1ad0f9[_0x4caf82(0x173)]));}[_0x4a1f29(0x2f7)](){const _0x4388f7=_0x4a1f29;this[_0x4388f7(0x344)](this[_0x4388f7(0x375)][_0x4388f7(0x38d)](a[_0x4388f7(0x25e)][_0x4388f7(0x1af)],[Ee])),this['disposeWithMe'](this[_0x4388f7(0x375)]['registerRenderModule'](a['UniverInstanceType'][_0x4388f7(0x304)],[Ce]));}[_0x4a1f29(0x387)](){const _0x156495=_0x4a1f29;a['touchDependencies'](this[_0x156495(0x1eb)],[[F],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[exports[_0x156495(0x334)]],[ne]]),this[_0x156495(0x368)]['enableFrontendLog']&&a['touchDependencies'](this[_0x156495(0x1eb)],[[Q]]);}},_s(exports[_0x4a1f29(0x37a)],_0x4a1f29(0x371),hs),exports[_0x4a1f29(0x37a)]=ls([a[_0x4a1f29(0x376)](u[_0x4a1f29(0x13c)]),de(0x1,C[_0x4a1f29(0x333)]),de(0x2,a[_0x4a1f29(0x20d)](a['Injector'])),de(0x3,a[_0x4a1f29(0x347)])],exports[_0x4a1f29(0x37a)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x1e0920,_0x1513e5,_0xf35a81,_0x51b508)=>{const _0x585d38=_0x4a1f29;for(var _0x59a3a2=_0x51b508>0x1?void 0x0:_0x51b508?us(_0x1513e5,_0xf35a81):_0x1513e5,_0x99ea92=_0x1e0920[_0x585d38(0x191)]-0x1,_0x14480c;_0x99ea92>=0x0;_0x99ea92--)(_0x14480c=_0x1e0920[_0x99ea92])&&(_0x59a3a2=_0x14480c(_0x59a3a2)||_0x59a3a2);return _0x59a3a2;},W=(_0x348a8c,_0x1525e5)=>(_0x4cd4f5,_0x3b4513)=>_0x1525e5(_0x4cd4f5,_0x3b4513,_0x348a8c);exports['BrowserCollaborationSocketService']=class extends u[_0x4a1f29(0x1b3)]{constructor(_0x3895be,_0x5a2987,_0x47efc2,_0x98c63b,_0x3329bc){super(_0x3895be,_0x5a2987,_0x47efc2,_0x98c63b,_0x3329bc);}async[_0x4a1f29(0x26f)](_0x54f527){const _0x49860f=_0x4a1f29,_0x1bb948=await this[_0x49860f(0xdd)](),_0x541f76=this[_0x49860f(0xc2)](_0x54f527,_0x1bb948);return this[_0x49860f(0x325)](_0x541f76);}['_createSocketURL'](_0x5d2cff,_0x180f02){const _0x5876cf=_0x4a1f29,_0x470b58=typeof window>'u'?new URL(_0x5d2cff):new URL(_0x5d2cff,window[_0x5876cf(0x369)][_0x5876cf(0x2d0)]);_0x470b58[_0x5876cf(0x28b)][_0x5876cf(0x193)](_0x5876cf(0x381),_0x180f02);const _0x213f7b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5876cf(0x369)]['search']);return _0x213f7b['get'](_0x5876cf(0x100))&&_0x470b58[_0x5876cf(0x28b)][_0x5876cf(0x193)]('runId',_0x213f7b['get']('runId')),_0x470b58['toString']();}async[_0x4a1f29(0xdd)](){const _0x3027d5=_0x4a1f29;var _0x3cd45b,_0x2d3968,_0x5a603e;const _0xef9f77=this['_configService'][_0x3027d5(0x1a9)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x159e23=(_0x3cd45b=_0xef9f77==null?void 0x0:_0xef9f77[_0x3027d5(0x1b6)])!=null?_0x3cd45b:u[_0x3027d5(0x11c)];return(_0x5a603e=(_0x2d3968=(await this[_0x3027d5(0x2db)][_0x3027d5(0x283)](_0x159e23,{'headers':{'Content-Type':'application/json'}}))[_0x3027d5(0x207)])==null?void 0x0:_0x2d3968[_0x3027d5(0x235)])!=null?_0x5a603e:'';}},exports[_0x4a1f29(0x1ab)]=Is([W(0x0,a['Inject'](a['Injector'])),W(0x1,a[_0x4a1f29(0x20d)](x['HTTPService'])),W(0x2,a[_0x4a1f29(0x347)]),W(0x3,a['ILogService']),W(0x4,g[_0x4a1f29(0x363)])],exports[_0x4a1f29(0x1ab)]);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0x11ca64,_0x2916ab,_0xea76c6,_0x721861)=>{for(var _0x544d5b=_0x721861>0x1?void 0x0:_0x721861?Ss(_0x2916ab,_0xea76c6):_0x2916ab,_0x27d958=_0x11ca64['length']-0x1,_0x2c8ca7;_0x27d958>=0x0;_0x27d958--)(_0x2c8ca7=_0x11ca64[_0x27d958])&&(_0x544d5b=_0x2c8ca7(_0x544d5b)||_0x544d5b);return _0x544d5b;},fe=(_0x4773f5,_0x17877e)=>(_0x23a258,_0x892f9b)=>_0x17877e(_0x23a258,_0x892f9b,_0x4773f5);exports[_0x4a1f29(0x208)]=class extends a['Disposable']{constructor(_0x105ea5,_0x24c86f,_0x3be3d0){const _0x417905=_0x4a1f29;super(),this[_0x417905(0x1f4)]=_0x105ea5,this[_0x417905(0x2db)]=_0x24c86f,this['_configService']=_0x3be3d0;}async[_0x4a1f29(0x2e5)](_0x4b7fcc,_0x46d696,_0x5f3f92,..._0x2adb40){const _0x203fcd=_0x4a1f29;var _0x4f4f88,_0x25bef5,_0x789c81,_0x19f20a;const _0x461b9f=this[_0x203fcd(0x1f4)][_0x203fcd(0x2b9)]();if(!_0x461b9f)throw new Error(_0x203fcd(0x2c7));const _0x4db17a=((_0x4f4f88=this[_0x203fcd(0x37d)][_0x203fcd(0x1a9)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x4f4f88:u[_0x203fcd(0x137)])+'/'+_0x4b7fcc+_0x203fcd(0x13b)+_0x46d696,_0xec70ff=new URL(window[_0x203fcd(0x369)][_0x203fcd(0xf5)]),_0x5ef22c={'scriptId':_0x4b7fcc,'runId':(_0x25bef5=_0xec70ff[_0x203fcd(0x28b)][_0x203fcd(0x283)](_0x203fcd(0x100)))!=null?_0x25bef5:'','function':_0x46d696,'unitId':_0x461b9f[_0x203fcd(0x317)](),'argsOfFunction':JSON[_0x203fcd(0xf1)](_0x2adb40),'invokeId':(_0x789c81=_0x5f3f92[_0x203fcd(0xf4)])!=null?_0x789c81:'','executionId':(_0x19f20a=_0x5f3f92[_0x203fcd(0x389)])!=null?_0x19f20a:''};try{const _0xf48fd9=await this[_0x203fcd(0x2db)][_0x203fcd(0x18c)](_0x4db17a,{'body':_0x5ef22c});return _0xf48fd9[_0x203fcd(0x207)]['error']&&_0xf48fd9['body'][_0x203fcd(0x19d)][_0x203fcd(0x1a1)]!==G['OK']?_0x203fcd(0x279):_0xf48fd9[_0x203fcd(0x207)][_0x203fcd(0x145)];}catch{return _0x203fcd(0x279);}}},exports['RemoteUniscriptService']=ds([fe(0x0,a[_0x4a1f29(0x197)]),fe(0x1,a['Inject'](x[_0x4a1f29(0x1e9)])),fe(0x2,a[_0x4a1f29(0x347)])],exports[_0x4a1f29(0x208)]);const we=0x7530,ye=_0x4a1f29(0x159);class fs extends a['Disposable']{constructor(){const _0x3e459d=_0x4a1f29;super(),_(this,_0x3e459d(0xe4),a[_0x3e459d(0x30a)]()),_(this,_0x3e459d(0x204),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x3e459d(0x358),null),_(this,_0x3e459d(0x115),new Map()),_(this,_0x3e459d(0xcf),new Map()),this[_0x3e459d(0x280)]();}[_0x4a1f29(0x313)](){const _0x1f4b62=_0x4a1f29;super[_0x1f4b62(0x313)](),this[_0x1f4b62(0x115)][_0x1f4b62(0x1fb)]((_0x44bf86,_0x7fb6fe)=>this[_0x1f4b62(0x355)](_0x7fb6fe)),this[_0x1f4b62(0x358)]&&window[_0x1f4b62(0x157)](this[_0x1f4b62(0x358)]);}[_0x4a1f29(0x26c)](_0x37b3ad){const _0x4bc8ef=_0x4a1f29;return this['_ensureSubject'](_0x37b3ad)[_0x4bc8ef(0x2e0)](I[_0x4bc8ef(0x2ca)]());}['editingUnit'](_0x25489e){const _0x5e1cfe=_0x4a1f29;this[_0x5e1cfe(0x204)][_0x5e1cfe(0x13f)]===0x0&&this['_scheduleHeartbeat'](),this[_0x5e1cfe(0x204)][_0x5e1cfe(0x134)](_0x25489e),this[_0x5e1cfe(0x1ea)]({'type':0x0,'memberID':this[_0x5e1cfe(0xe4)],'unitIDs':[_0x25489e],'isForwarded':!0x1});}[_0x4a1f29(0x1dd)](_0x45426d){const _0x167f6a=_0x4a1f29;this[_0x167f6a(0x204)][_0x167f6a(0x2fe)](_0x45426d),this[_0x167f6a(0x204)][_0x167f6a(0x13f)]===0x0&&this[_0x167f6a(0x358)]&&window[_0x167f6a(0x157)](this[_0x167f6a(0x358)]);}[_0x4a1f29(0x280)](){const _0x40e992=_0x4a1f29;this[_0x40e992(0x344)](a[_0x40e992(0x17c)](I['fromEvent'](window,_0x40e992(0x262))[_0x40e992(0x31a)](_0x4f4742=>{const _0x39a02f=_0x40e992;if(_0x4f4742[_0x39a02f(0x323)]!==ye||!_0x4f4742['newValue'])return;const _0x29a9d7=JSON[_0x39a02f(0x1cf)](_0x4f4742[_0x39a02f(0x30f)]);this['_handleEvent'](_0x29a9d7);}))),window[_0x40e992(0x349)](_0x40e992(0x24c),()=>this[_0x40e992(0x1ea)]({'type':0x1,'memberID':this[_0x40e992(0xe4)],'unitIDs':Array[_0x40e992(0x1ed)](this[_0x40e992(0x204)])}));}[_0x4a1f29(0x2c1)](_0x18ea22){const _0x545087=_0x4a1f29;switch(_0x18ea22[_0x545087(0x275)]){case 0x0:this[_0x545087(0x1fe)](_0x18ea22);break;case 0x1:this['_handleLeaveEvent'](_0x18ea22);break;case 0x2:this[_0x545087(0x2f4)](_0x18ea22);break;}}[_0x4a1f29(0x1fe)](_0x521f07){const _0x4c95d6=_0x4a1f29,{unitIDs:_0x92606c,memberID:_0x240988,isForwarded:_0x34d029}=_0x521f07;_0x92606c[_0x4c95d6(0x1fb)](_0x311ad0=>{const _0x3a398d=_0x4c95d6;if(!_0x34d029&&this[_0x3a398d(0x2d1)][_0x3a398d(0x114)](_0x311ad0)&&this[_0x3a398d(0x245)](_0x311ad0)[_0x3a398d(0x293)](u[_0x3a398d(0x35c)][_0x3a398d(0x246)]),!this[_0x3a398d(0x2d1)][_0x3a398d(0x114)](_0x311ad0)||!this[_0x3a398d(0x2d1)]['get'](_0x311ad0)[_0x3a398d(0x114)](_0x240988)){const _0x1ff0f4=this['_unitOnClients'][_0x3a398d(0x283)](_0x311ad0)||new Set();_0x1ff0f4['add'](_0x240988),this[_0x3a398d(0x2d1)][_0x3a398d(0x193)](_0x311ad0,_0x1ff0f4),this[_0x3a398d(0x289)](_0x240988);}}),_0x34d029||this['_send']({'type':0x0,'memberID':this[_0x4c95d6(0xe4)],'unitIDs':[...this[_0x4c95d6(0x204)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x545549){const _0x22d4c8=_0x4a1f29;this[_0x22d4c8(0x355)](_0x545549);const _0x5377b9=window[_0x22d4c8(0x35b)](()=>{const _0x1b889c=_0x22d4c8;this[_0x1b889c(0x2d1)][_0x1b889c(0x1fb)](_0x3c70ec=>{_0x3c70ec['delete'](_0x545549);});},we*0x2);this[_0x22d4c8(0x115)]['set'](_0x545549,_0x5377b9);}[_0x4a1f29(0x355)](_0x26f1e8){const _0x3a5def=_0x4a1f29;if(this[_0x3a5def(0x115)][_0x3a5def(0x114)](_0x26f1e8)){const _0x5db379=this[_0x3a5def(0x115)][_0x3a5def(0x283)](_0x26f1e8);_0x5db379&&window[_0x3a5def(0x2b4)](_0x5db379),this[_0x3a5def(0x115)][_0x3a5def(0x193)](_0x26f1e8,null);}}['_handleLeaveEvent'](_0x4b9b3d){const _0x921199=_0x4a1f29,{memberID:_0x16c7f3,unitIDs:_0x575e4d}=_0x4b9b3d;_0x575e4d[_0x921199(0x1fb)](_0x93c54a=>{const _0x3ea997=_0x921199;var _0x542bad;const _0x306c57=this[_0x3ea997(0x2d1)]['get'](_0x93c54a);_0x306c57&&(_0x306c57[_0x3ea997(0x2fe)](_0x16c7f3),(_0x542bad=this['_ensureSubject'](_0x93c54a))==null||_0x542bad[_0x3ea997(0x293)](_0x306c57[_0x3ea997(0x13f)]===0x0?u[_0x3ea997(0x35c)][_0x3ea997(0xcd)]:u[_0x3ea997(0x35c)][_0x3ea997(0x246)]));}),this[_0x921199(0x355)](_0x16c7f3);}['_handleHeartbeatEvent'](_0xf3fdb0){this['_scheduleClearOtherTimer'](_0xf3fdb0['memberID']);}[_0x4a1f29(0x1ea)](_0x3771a9){const _0x141ff3=_0x4a1f29;localStorage[_0x141ff3(0x2d6)](ye,JSON[_0x141ff3(0xf1)](_0x3771a9));}[_0x4a1f29(0x1b4)](){const _0x258fe6=_0x4a1f29;this[_0x258fe6(0x358)]=window[_0x258fe6(0x324)](()=>{const _0x9f6c5b=_0x258fe6;this[_0x9f6c5b(0x1ea)]({'type':0x2,'memberID':this['_id']});},we);}[_0x4a1f29(0x245)](_0x5c20f5){const _0x58e022=_0x4a1f29;return this[_0x58e022(0xcf)][_0x58e022(0x114)](_0x5c20f5)||this[_0x58e022(0xcf)][_0x58e022(0x193)](_0x5c20f5,new I[(_0x58e022(0x2a0))](u[_0x58e022(0x35c)][_0x58e022(0xcd)])),this[_0x58e022(0xcf)][_0x58e022(0x283)](_0x5c20f5);}}exports[_0x4a1f29(0x154)]=Oe,exports[_0x4a1f29(0x212)]=je,exports[_0x4a1f29(0x1bc)]=fs,exports[_0x4a1f29(0x160)]=ke;