@univerjs-pro/collaboration-client-ui 0.12.1 → 0.12.2-experimental.20251201-5b27b55

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 +18 -18
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x4885bf=_0x30e5;(function(_0x3fc461,_0xda0c53){const _0x24e182=_0x30e5,_0x41cc5f=_0x3fc461();while(!![]){try{const _0x4a2458=parseInt(_0x24e182(0x330))/0x1+-parseInt(_0x24e182(0x289))/0x2*(-parseInt(_0x24e182(0x246))/0x3)+-parseInt(_0x24e182(0xd7))/0x4*(-parseInt(_0x24e182(0x11e))/0x5)+parseInt(_0x24e182(0x1bd))/0x6+-parseInt(_0x24e182(0x123))/0x7+parseInt(_0x24e182(0x2d5))/0x8+-parseInt(_0x24e182(0x118))/0x9;if(_0x4a2458===_0xda0c53)break;else _0x41cc5f['push'](_0x41cc5f['shift']());}catch(_0x110fec){_0x41cc5f['push'](_0x41cc5f['shift']());}}}(_0x7782,0xe349b));var Xe=Object[_0x4885bf(0x1a3)],Ke=(_0x3543cf,_0xe4abd1,_0x5c82ad)=>_0xe4abd1 in _0x3543cf?Xe(_0x3543cf,_0xe4abd1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c82ad}):_0x3543cf[_0xe4abd1]=_0x5c82ad,_=(_0x1553ce,_0x125197,_0x3b8170)=>Ke(_0x1553ce,typeof _0x125197!=_0x4885bf(0x1f1)?_0x125197+'':_0x125197,_0x3b8170);Object['defineProperty'](exports,Symbol[_0x4885bf(0x2f3)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=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 Te({ref:_0x189620,..._0x555e44}){const _0x3ef5f6=_0x4885bf,{icon:_0xc017b9,id:_0x5889c7,className:_0x15169e,extend:_0x5e8ef3,..._0x5a2bff}=_0x555e44,_0x5efc5f=(_0x3ef5f6(0xd0)+_0x5889c7+'\x20'+(_0x15169e||''))['trim'](),_0x4429dd=A[_0x3ef5f6(0x273)]('_'+Qe());return $e(_0xc017b9,''+_0x5889c7,{'defIds':_0xc017b9[_0x3ef5f6(0x13a)],'idSuffix':_0x4429dd[_0x3ef5f6(0x20f)]},{'ref':_0x189620,'className':_0x5efc5f,..._0x5a2bff},_0x5e8ef3);}function $e(_0x4f770a,_0x5eabde,_0x10e99c,_0x49bf6d,_0xdb0303){const _0xb26ad=_0x4885bf;return A['createElement'](_0x4f770a[_0xb26ad(0xfc)],{'key':_0x5eabde,...Je(_0x4f770a,_0x10e99c,_0xdb0303),..._0x49bf6d},(Ze(_0x4f770a,_0x10e99c)['children']||[])['map']((_0x47cff7,_0x1ff66e)=>$e(_0x47cff7,_0x5eabde+'-'+_0x4f770a[_0xb26ad(0xfc)]+'-'+_0x1ff66e,_0x10e99c,void 0x0,_0xdb0303)));}function Je(_0x510a6a,_0x8e9360,_0x2902f6){const _0x2deec2=_0x4885bf,_0x109d00={..._0x510a6a[_0x2deec2(0x323)]};_0x2902f6!=null&&_0x2902f6[_0x2deec2(0x362)]&&_0x109d00[_0x2deec2(0x15b)]===_0x2deec2(0x362)&&(_0x109d00[_0x2deec2(0x15b)]=_0x2902f6['colorChannel1']),_0x510a6a['tag']===_0x2deec2(0x1f5)&&_0x109d00['id']&&(_0x109d00['id']=_0x109d00['id']+_0x8e9360[_0x2deec2(0x1a6)]),Object[_0x2deec2(0x2cf)](_0x109d00)[_0x2deec2(0x28d)](([_0x49105d,_0xd14ecc])=>{const _0x4c1591=_0x2deec2;_0x49105d===_0x4c1591(0x1f5)&&typeof _0xd14ecc==_0x4c1591(0xdf)&&(_0x109d00[_0x49105d]=_0xd14ecc[_0x4c1591(0x15c)](/url\(#(.*)\)/,_0x4c1591(0x2eb)+_0x8e9360['idSuffix']+')'));});const {defIds:_0x2442bf}=_0x8e9360;return!_0x2442bf||_0x2442bf[_0x2deec2(0x12a)]===0x0||(_0x510a6a[_0x2deec2(0xfc)]===_0x2deec2(0x2c2)&&_0x109d00[_0x2deec2(0xd3)]&&(_0x109d00[_0x2deec2(0xd3)]=_0x109d00[_0x2deec2(0xd3)]+_0x8e9360['idSuffix']),Object[_0x2deec2(0x2cf)](_0x109d00)[_0x2deec2(0x28d)](([_0x75caea,_0x441cda])=>{const _0x553765=_0x2deec2;typeof _0x441cda==_0x553765(0xdf)&&(_0x109d00[_0x75caea]=_0x441cda[_0x553765(0x15c)](/url\(#(.*)\)/,_0x553765(0x2eb)+_0x8e9360[_0x553765(0x1a6)]+')'));})),_0x109d00;}function Ze(_0x3a4179,_0x22aeeb){const _0xaec302=_0x4885bf;var _0x215a26;const {defIds:_0x315598}=_0x22aeeb;return!_0x315598||_0x315598['length']===0x0?_0x3a4179:_0x3a4179[_0xaec302(0xfc)]===_0xaec302(0x325)&&((_0x215a26=_0x3a4179[_0xaec302(0x2ae)])!=null&&_0x215a26[_0xaec302(0x12a)])?{..._0x3a4179,'children':_0x3a4179[_0xaec302(0x2ae)][_0xaec302(0x2d7)](_0x296bb4=>typeof _0x296bb4[_0xaec302(0x323)]['id']==_0xaec302(0xdf)&&_0x315598&&_0x315598[_0xaec302(0x26b)](_0x296bb4[_0xaec302(0x323)]['id'])?{..._0x296bb4,'attrs':{..._0x296bb4[_0xaec302(0x323)],'id':_0x296bb4[_0xaec302(0x323)]['id']+_0x22aeeb[_0xaec302(0x1a6)]}}:_0x296bb4)}:_0x3a4179;}function Qe(){const _0x8999a=_0x4885bf;return Math['random']()['toString'](0x24)[_0x8999a(0x301)](0x2,0x8);}Te[_0x4885bf(0x1b9)]=_0x4885bf(0x19b);const et={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4885bf(0x95),'viewBox':_0x4885bf(0x217),'width':_0x4885bf(0xe8),'height':_0x4885bf(0xe8)},'children':[{'tag':'g','attrs':{'clipPath':_0x4885bf(0x265)},'children':[{'tag':_0x4885bf(0x230),'attrs':{'stroke':_0x4885bf(0x182),'d':_0x4885bf(0x121),'strokeLinecap':_0x4885bf(0x2b5),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4885bf(0x325),'attrs':{},'children':[{'tag':_0x4885bf(0x34a),'attrs':{'id':_0x4885bf(0x238)},'children':[{'tag':'path','attrs':{'fill':_0x4885bf(0xf9),'d':_0x4885bf(0x2f4)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A[_0x4885bf(0x14e)](function(_0x1817ed,_0x570def){const _0x5dd070=_0x4885bf;return A['createElement'](Te,Object['assign']({},_0x1817ed,{'id':_0x5dd070(0x1b4),'ref':_0x570def,'icon':et}));});xe[_0x4885bf(0x1b9)]='OffLineIcon';const tt={'tag':_0x4885bf(0x19e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4885bf(0x35d),'width':_0x4885bf(0xe8),'height':_0x4885bf(0xe8)},'children':[{'tag':'g','attrs':{'clipPath':_0x4885bf(0x2da)},'children':[{'tag':_0x4885bf(0x230),'attrs':{'stroke':_0x4885bf(0x182),'d':_0x4885bf(0x33f),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4885bf(0x325),'attrs':{},'children':[{'tag':_0x4885bf(0x34a),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x4885bf(0xf9),'d':_0x4885bf(0x2f4),'transform':_0x4885bf(0x1d3)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A['forwardRef'](function(_0x36b1aa,_0x55dc12){const _0x39e107=_0x4885bf;return A[_0x39e107(0x28f)](Te,Object[_0x39e107(0x2fd)]({},_0x36b1aa,{'id':_0x39e107(0x2e1),'ref':_0x55dc12,'icon':tt}));});Be['displayName']=_0x4885bf(0xae);function st(_0x2278c7){const _0xe96a31=_0x4885bf;switch(_0x2278c7){case u[_0xe96a31(0x30d)][_0xe96a31(0x14b)]:return _0xe96a31(0x169);case u[_0xe96a31(0x30d)][_0xe96a31(0x2f5)]:return'collabStatus.conflict';case u[_0xe96a31(0x30d)][_0xe96a31(0x26c)]:return _0xe96a31(0x1e3);case u[_0xe96a31(0x30d)][_0xe96a31(0x333)]:return _0xe96a31(0xb5);case u[_0xe96a31(0x30d)][_0xe96a31(0x1bb)]:case u['CollaborationStatus'][_0xe96a31(0x150)]:return _0xe96a31(0x348);case u[_0xe96a31(0x30d)][_0xe96a31(0x11c)]:case u[_0xe96a31(0x30d)][_0xe96a31(0x256)]:return _0xe96a31(0x350);}}function it(_0x5c4e0a){const _0x13cabb=_0x4885bf,{status$:_0x13ad74}=_0x5c4e0a,_0x41482f=O[_0x13cabb(0x164)](_0x13ad74,u[_0x13cabb(0x30d)][_0x13cabb(0x333)]),_0x1d9131=O['useDependency'](a['LocaleService']),_0x42b504=O['useDependency'](u[_0x13cabb(0x307)]),_0x4a7a58=_0x41482f!==u['CollaborationStatus']['OFFLINE'],_0x2f54b1=_0x1d9131['t'](st(_0x41482f)),_0x37d8d6=_0x4a7a58?M['jsx'](Be,{}):M[_0x13cabb(0x1c0)](xe,{}),_0x37a081=A['useCallback'](()=>{const _0x50643f=_0x13cabb;_0x4a7a58||_0x42b504[_0x50643f(0x2f2)]();},[_0x4a7a58,_0x42b504]);function _0x100f61(){const _0x23b7ab=_0x13cabb;return M['jsxs'](_0x23b7ab(0x1b3),{'className':_0x23b7ab(0x22b),'onClick':_0x37a081,'children':[M[_0x23b7ab(0x1c0)](_0x23b7ab(0x1b3),{'className':T['clsx'](_0x23b7ab(0x2e0),{'univer-text-green-500':_0x4a7a58,'univer-text-red-500':!_0x4a7a58}),'children':_0x37d8d6}),M['jsx'](_0x23b7ab(0x1b3),{'className':_0x23b7ab(0x125),'children':_0x2f54b1})]});}return _0x4a7a58?_0x100f61():M['jsx'](T['Tooltip'],{'title':_0x1d9131['t'](_0x13cabb(0x14a)),'children':_0x100f61()});}var nt=Object[_0x4885bf(0xee)],rt=(_0x32e89f,_0x44c546,_0x5db335,_0x1247e7)=>{const _0x18970d=_0x4885bf;for(var _0x2480fa=_0x1247e7>0x1?void 0x0:_0x1247e7?nt(_0x44c546,_0x5db335):_0x44c546,_0x18d3e1=_0x32e89f[_0x18970d(0x12a)]-0x1,_0x56a540;_0x18d3e1>=0x0;_0x18d3e1--)(_0x56a540=_0x32e89f[_0x18d3e1])&&(_0x2480fa=_0x56a540(_0x2480fa)||_0x2480fa);return _0x2480fa;},K=(_0x1c4470,_0x2f0304)=>(_0x549941,_0x390658)=>_0x2f0304(_0x549941,_0x390658,_0x1c4470);exports[_0x4885bf(0x197)]=class extends a['Disposable']{constructor(_0x5be5a7,_0xc4a4a1,_0x385483,_0x12912e){const _0x28db3e=_0x4885bf;super(),_(this,_0x28db3e(0x14d),new I[(_0x28db3e(0x2cb))](u[_0x28db3e(0x30d)][_0x28db3e(0x333)])),(this[_0x28db3e(0x189)]=_0x5be5a7,this['_injector']=_0xc4a4a1,this['_collaborationController']=_0x385483,this['_uiPartsService']=_0x12912e,this[_0x28db3e(0x252)](),this[_0x28db3e(0x1d0)]());}['_initStatusListener'](){const _0x242cad=_0x4885bf;this['disposeWithMe'](this[_0x242cad(0x189)][_0x242cad(0x9b)][_0x242cad(0x153)](I[_0x242cad(0xea)](()=>{const _0x211b8c=_0x242cad,_0x15d9b5=this[_0x211b8c(0x189)][_0x211b8c(0x277)]();return _0x15d9b5?this['_collaborationController']['getCollabEntity$'](_0x15d9b5[_0x211b8c(0x2fb)]()):I['of'](null);}),I[_0x242cad(0xea)](_0x364133=>_0x364133?_0x364133['status$']:I['of'](u[_0x242cad(0x30d)][_0x242cad(0x333)])))['subscribe'](_0x4b9420=>{const _0x77785c=_0x242cad;this[_0x77785c(0x14d)]['next'](_0x4b9420);}));}[_0x4885bf(0x252)](){const _0x5a9755=_0x4885bf;this[_0x5a9755(0x354)](this[_0x5a9755(0x284)][_0x5a9755(0x34d)](O[_0x5a9755(0x2d9)][_0x5a9755(0x320)],()=>O['connectInjector'](ot({'status$':this[_0x5a9755(0x14d)][_0x5a9755(0x251)]()}),this[_0x5a9755(0x17e)])));}},exports[_0x4885bf(0x197)]=rt([K(0x0,a[_0x4885bf(0x2b8)]),K(0x1,a['Inject'](a[_0x4885bf(0x199)])),K(0x2,a[_0x4885bf(0xe0)](u[_0x4885bf(0x357)])),K(0x3,O[_0x4885bf(0xa8)])],exports[_0x4885bf(0x197)]);function ot(_0x3c1a3c){const {status$:_0x286375}=_0x3c1a3c;return function(){const _0x3925c1=_0x30e5;return M[_0x3925c1(0x1c0)](it,{'status$':_0x286375});};}const Oe=a[_0x4885bf(0xaa)](_0x4885bf(0x2ee));var at=Object['getOwnPropertyDescriptor'],ct=(_0x43f067,_0x1d1f40,_0x1a35ed,_0x245719)=>{for(var _0x2757fa=_0x245719>0x1?void 0x0:_0x245719?at(_0x1d1f40,_0x1a35ed):_0x1d1f40,_0x4d5e8d=_0x43f067['length']-0x1,_0x423ae1;_0x4d5e8d>=0x0;_0x4d5e8d--)(_0x423ae1=_0x43f067[_0x4d5e8d])&&(_0x2757fa=_0x423ae1(_0x2757fa)||_0x2757fa);return _0x2757fa;},Y=(_0x26bd51,_0x4891dc)=>(_0x539137,_0x32d04a)=>_0x4891dc(_0x539137,_0x32d04a,_0x26bd51);exports[_0x4885bf(0x161)]=class extends a[_0x4885bf(0x1aa)]{constructor(_0x31d480,_0x4c54a2,_0x191646,_0x435d17,_0x4cadc3){const _0x3c8926=_0x4885bf;super(),this[_0x3c8926(0x316)]=_0x31d480,this[_0x3c8926(0x1ed)]=_0x4c54a2,this[_0x3c8926(0x26a)]=_0x191646,this[_0x3c8926(0x14c)]=_0x435d17,_0x4cadc3?_0x4cadc3==null||_0x4cadc3[_0x3c8926(0x30e)]()[_0x3c8926(0x180)](()=>this['_init']()):(this[_0x3c8926(0x1ed)]['debug'](_0x3c8926(0x2c8),_0x3c8926(0x1c5)),this['_init']());}async[_0x4885bf(0x2a5)](){const _0x322354=_0x4885bf,_0x298bcb=this['_urlService'][_0x322354(0x313)](_0x322354(0x27c)),_0x56ed4e=this[_0x322354(0x316)][_0x322354(0x313)](_0x322354(0x360)),_0xf3c22e=this[_0x322354(0x316)][_0x322354(0x313)]('subunit');if(!_0x298bcb||!_0x56ed4e){this['_logService'][_0x322354(0x2e9)](_0x322354(0x2c8),_0x322354(0x321));return;}const _0x3f0086=await this[_0x322354(0x14c)][_0x322354(0x319)](_0x298bcb,Number(_0x56ed4e),_0xf3c22e);_0x3f0086&&_0x3f0086 instanceof a['Workbook']&&this[_0x322354(0x250)](_0x3f0086);}async[_0x4885bf(0x250)](_0x236a5c){const _0x20860f=_0x4885bf;await this[_0x20860f(0xc9)](_0x236a5c),_0x236a5c[_0x20860f(0x339)][_0x20860f(0x153)](I['takeUntil'](this[_0x20860f(0x30f)]))['subscribe'](_0x17183d=>{const _0x3dacb7=_0x20860f;_0x17183d&&this[_0x3dacb7(0x1f9)](_0x17183d);}),this[_0x20860f(0x316)][_0x20860f(0xd8)][_0x20860f(0x153)](I['takeUntil'](this[_0x20860f(0x30f)]))[_0x20860f(0x22c)](()=>this['_updateSubUnitFromURLParams'](_0x236a5c));}[_0x4885bf(0x1f9)](_0x41c713,_0x5d8947=!0x1){const _0xc1629a=_0x4885bf,_0x285617=this[_0xc1629a(0x316)][_0xc1629a(0x313)](_0xc1629a(0x111));_0x41c713['getSheetId']()!==_0x285617&&this[_0xc1629a(0x316)][_0xc1629a(0x185)](_0xc1629a(0x111),_0x41c713[_0xc1629a(0xb9)](),_0x5d8947);}async[_0x4885bf(0xc9)](_0x4ea57f){const _0x1deebe=_0x4885bf;var _0x18326b;const _0x1a6a03=this[_0x1deebe(0x316)][_0x1deebe(0x313)](_0x1deebe(0x111));if(!_0x1a6a03||!_0x4ea57f[_0x1deebe(0x2e2)](_0x1a6a03)){const _0x25981b=_0x4ea57f[_0x1deebe(0x21e)]()[0x0],_0x284694=_0x4ea57f[_0x1deebe(0x2e2)](_0x25981b);if(!_0x284694)return;this[_0x1deebe(0x1f9)](_0x284694,!0x0),await this[_0x1deebe(0x26a)]['executeCommand'](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x4ea57f[_0x1deebe(0x2fb)](),'subUnitId':_0x25981b});return;}((_0x18326b=_0x4ea57f[_0x1deebe(0x30c)]())==null?void 0x0:_0x18326b[_0x1deebe(0xb9)]())!==_0x1a6a03&&await this[_0x1deebe(0x26a)]['executeCommand'](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x4ea57f['getUnitId'](),'subUnitId':_0x1a6a03});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a[_0x4885bf(0x15f)]),Y(0x2,a[_0x4885bf(0x2a2)]),Y(0x3,a[_0x4885bf(0xe0)](u[_0x4885bf(0x2db)])),Y(0x4,a['Optional'](qe[_0x4885bf(0x2d4)]))],exports[_0x4885bf(0x161)]);var lt=Object[_0x4885bf(0xee)],_t=(_0x32b53c,_0x49fe27,_0x557a1d,_0x4a7c84)=>{const _0x390edb=_0x4885bf;for(var _0x5b33d2=_0x4a7c84>0x1?void 0x0:_0x4a7c84?lt(_0x49fe27,_0x557a1d):_0x49fe27,_0x354f38=_0x32b53c[_0x390edb(0x12a)]-0x1,_0x584914;_0x354f38>=0x0;_0x354f38--)(_0x584914=_0x32b53c[_0x354f38])&&(_0x5b33d2=_0x584914(_0x5b33d2)||_0x5b33d2);return _0x5b33d2;},De=(_0x295639,_0x17ebe2)=>(_0x22970,_0x39b62e)=>_0x17ebe2(_0x22970,_0x39b62e,_0x295639);let me=class extends a[_0x4885bf(0x1aa)]{constructor(_0x47335a,_0x2e6847){const _0x858b1=_0x4885bf;super(),this[_0x858b1(0xd4)]=_0x47335a,this[_0x858b1(0x1e8)]=_0x2e6847,this[_0x858b1(0x2a5)]();}[_0x4885bf(0x2a5)](){const _0x237d97=_0x4885bf,_0x7e433=this;this['disposeWithMe'](this[_0x237d97(0xd4)][_0x237d97(0x184)]({'onBeforePasteImage':async _0x5b21c2=>{const _0x53a2ad=_0x237d97,_0x122d71=await _0x7e433[_0x53a2ad(0x1e8)][_0x53a2ad(0x317)](_0x5b21c2);return _0x122d71?{'source':_0x122d71[_0x53a2ad(0x2aa)],'imageSourceType':_0x122d71[_0x53a2ad(0x2ce)]}:null;}}));}};me=_t([De(0x0,p[_0x4885bf(0x209)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0x4885bf(0x2c9),_0x4885bf(0xc6),_0x4885bf(0x2f6),'red.300',_0x4885bf(0xdd),'yellow.400'];class Re extends a[_0x4885bf(0x1b2)]{constructor(){const _0x5a741f=_0x4885bf;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x5a741f(0xa6),0x0);}['assignAColorForMemberID'](_0x5eee88){const _0x24ae50=_0x4885bf;if(this[_0x24ae50(0x228)][_0x24ae50(0x11b)](_0x5eee88))return this[_0x24ae50(0x228)][_0x24ae50(0x1b8)](_0x5eee88);const _0x2a4996=Ne[this[_0x24ae50(0xa6)]];return this[_0x24ae50(0xa6)]=(this[_0x24ae50(0xa6)]+0x1)%Ne['length'],this[_0x24ae50(0x228)][_0x24ae50(0x219)](_0x5eee88,_0x2a4996),_0x2a4996;}}function Fe(_0x3e0214){const _0x3b75cf=_0x4885bf;let _0x4b1c35='';for(const _0x44f2fc of _0x3e0214){const {startOffset:_0x2fa18b,endOffset:_0x58ba1f,isActive:_0x221d38,rangeType:_0x5a5954,segmentId:_0x3babf5,segmentPage:_0x2cbc3a}=_0x44f2fc;_0x4b1c35[_0x3b75cf(0x12a)]&&(_0x4b1c35+=','),_0x4b1c35+=_0x2fa18b+':'+_0x58ba1f+':'+(_0x221d38?'1':'0')+':'+_0x5a5954+':'+_0x3babf5+':'+_0x2cbc3a;}return _0x4b1c35;}function ht(_0xb0d81b){const _0x318cad=_0x4885bf,_0x226e93=_0xb0d81b[_0x318cad(0x1ce)](','),_0x255518=[];for(const _0x2dc7d6 of _0x226e93){const [_0x460a20,_0x3248aa,_0x3925eb,_0x32b16b,_0x2b8f1c,_0x4775dc]=_0x2dc7d6[_0x318cad(0x1ce)](':');_0x255518['push']({'startOffset':Number(_0x460a20),'endOffset':Number(_0x3248aa),'collapsed':_0x460a20===_0x3248aa,'isActive':_0x3925eb==='1','rangeType':_0x32b16b===a[_0x318cad(0x1f7)][_0x318cad(0x1a8)]?a['DOC_RANGE_TYPE'][_0x318cad(0x1a8)]:a[_0x318cad(0x1f7)][_0x318cad(0x2ea)],'segmentId':typeof _0x2b8f1c==_0x318cad(0xdf)?String(_0x2b8f1c):'','segmentPage':Number(_0x4775dc!=null?_0x4775dc:-0x1)});}return _0x255518[_0x318cad(0xff)](_0x487531=>_0x487531[_0x318cad(0x18c)])||(_0x255518[0x0][_0x318cad(0x18c)]=!0x0),_0x255518;}class be extends a['RxDisposable']{constructor(){const _0x5bfd7d=_0x4885bf;super(...arguments),_(this,_0x5bfd7d(0x297),new I[(_0x5bfd7d(0x2cb))](null)),_(this,'collabCursorState$',this[_0x5bfd7d(0x297)][_0x5bfd7d(0x251)]());}[_0x4885bf(0x285)](_0x4359ad){const _0xee5cde=_0x4885bf,{unitID:_0x76c7d2,memberID:_0x3e89f9,textRanges:_0x5dabe1}=_0x4359ad,_0x554a5d=Fe(_0x5dabe1);if(_0x554a5d==='')return;const _0x4b95ab={'unitID':_0x76c7d2,'memberID':_0x3e89f9,'selection':_0x554a5d};this['_collabCursorState$'][_0xee5cde(0x1a7)](_0x4b95ab);}}var ut=Object[_0x4885bf(0xee)],It=(_0x4be61d,_0x476a7a,_0x3ab041,_0x408726)=>{const _0x18c33f=_0x4885bf;for(var _0x1c752d=_0x408726>0x1?void 0x0:_0x408726?ut(_0x476a7a,_0x3ab041):_0x476a7a,_0x74dcb0=_0x4be61d[_0x18c33f(0x12a)]-0x1,_0x53c38c;_0x74dcb0>=0x0;_0x74dcb0--)(_0x53c38c=_0x4be61d[_0x74dcb0])&&(_0x1c752d=_0x53c38c(_0x1c752d)||_0x1c752d);return _0x1c752d;},U=(_0x484418,_0x763a2c)=>(_0xdc31f5,_0x3d8dd6)=>_0x763a2c(_0xdc31f5,_0x3d8dd6,_0x484418);const dt=0x12c,St=0x64;let ve=class extends a[_0x4885bf(0x1aa)]{constructor(_0x502a0d,_0x3535b3,_0x497379,_0x1bdedf,_0x4d3373,_0xb0f3ec,_0xd2d55e,_0x5c4880,_0x4f3796){const _0x47d485=_0x4885bf;super(),_(this,_0x47d485(0xb8),!0x1),_(this,_0x47d485(0x2a5),!0x1),_(this,'_cursorInfo$',new I[(_0x47d485(0x2cb))](new Map())),_(this,_0x47d485(0x35c),this[_0x47d485(0x1f3)]['asObservable']()),_(this,_0x47d485(0x34f),new I['BehaviorSubject']([])),_(this,_0x47d485(0x10f),this[_0x47d485(0x34f)][_0x47d485(0x153)](I[_0x47d485(0x1cd)](dt))),_(this,_0x47d485(0x2df),a[_0x47d485(0xf6)](_0x5e80a2=>{const _0x580aa0=_0x47d485,_0x1b6899={'eventID':g[_0x580aa0(0x2b2)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x580aa0(0x143)],'memberID':this[_0x580aa0(0x2a3)][_0x580aa0(0x35f)](),'selection':Fe(_0x5e80a2)}};this[_0x580aa0(0x2a3)]['send'](_0x1b6899,this[_0x580aa0(0x143)]);},St)),(this[_0x47d485(0x143)]=_0x502a0d,this[_0x47d485(0x2a3)]=_0x3535b3,this[_0x47d485(0x17e)]=_0x497379,this[_0x47d485(0x335)]=_0x1bdedf,this[_0x47d485(0x290)]=_0x4d3373,this[_0x47d485(0x21c)]=_0xb0f3ec,this[_0x47d485(0x148)]=_0xd2d55e,this[_0x47d485(0x189)]=_0x5c4880,this[_0x47d485(0x26a)]=_0x4f3796);}get[_0x4885bf(0x31d)](){return this['_cursorInfo$']['getValue']();}get[_0x4885bf(0x98)](){const _0x23f26e=_0x4885bf;return this[_0x23f26e(0x34f)][_0x23f26e(0x1cf)]();}[_0x4885bf(0xcf)](){const _0x19f638=_0x4885bf;super[_0x19f638(0xcf)](),this[_0x19f638(0x1f3)][_0x19f638(0x1a7)](new Map()),this[_0x19f638(0x1f3)]['complete'](),this[_0x19f638(0x34f)][_0x19f638(0x1a7)]([]),this[_0x19f638(0x34f)]['complete']();}['init'](){const _0x2289d2=_0x4885bf;this['_init']||(this[_0x2289d2(0x2a5)]=!0x0,this['_session'][_0x2289d2(0x2e8)][_0x2289d2(0x153)](I[_0x2289d2(0x268)](this['dispose$']))[_0x2289d2(0x22c)](_0x1473c4=>{const _0x3a5a4c=_0x2289d2;_0x1473c4===u[_0x3a5a4c(0x10d)][_0x3a5a4c(0x269)]?this[_0x3a5a4c(0x29e)]():this[_0x3a5a4c(0x27d)]();}),this[_0x2289d2(0x2a3)]['event$'][_0x2289d2(0x153)](I['takeUntil'](this[_0x2289d2(0x30f)]))[_0x2289d2(0x22c)](_0x146a11=>{const _0x17bddc=_0x2289d2,_0x1021b6=_0x146a11[_0x17bddc(0x183)];_0x1021b6===g['CollaborationEvent'][_0x17bddc(0x2c4)]&&this[_0x17bddc(0x188)](_0x146a11),_0x1021b6===g[_0x17bddc(0x2b2)]['USERS_LEAVE']&&this[_0x17bddc(0x8e)](_0x146a11);}),this[_0x2289d2(0x354)](this[_0x2289d2(0x26a)]['onCommandExecuted'](_0x289571=>{const _0x157c55=_0x2289d2,_0x15ecd0=_0x289571['params'];_0x15ecd0!=null&&this[_0x157c55(0xb8)]&&_0x289571['id']===V[_0x157c55(0x220)]['id']&&_0x15ecd0['unitId']===this['unitID']&&_0x15ecd0[_0x157c55(0x33e)]===!0x1&&_0x15ecd0[_0x157c55(0x128)]['length']>0x0&&this[_0x157c55(0x2df)](_0x15ecd0[_0x157c55(0x128)]);})),this['_syncEditingCollabCursorService'][_0x2289d2(0x21d)][_0x2289d2(0x153)](I[_0x2289d2(0x268)](this[_0x2289d2(0x30f)]))[_0x2289d2(0x22c)](_0x51f816=>{const _0x20f0a6=_0x2289d2;if((_0x51f816==null?void 0x0:_0x51f816[_0x20f0a6(0x143)])!==this[_0x20f0a6(0x143)])return;const _0x50ddd2={'eventID':g[_0x20f0a6(0x2b2)][_0x20f0a6(0x2c4)],'data':_0x51f816};this[_0x20f0a6(0x188)](_0x50ddd2);}),this[_0x2289d2(0x354)](this[_0x2289d2(0x26a)][_0x2289d2(0x258)](_0xb75277=>{const _0x582089=_0x2289d2;if(_0xb75277[_0x582089(0x215)]==null)return;const _0x316ef0=_0xb75277[_0x582089(0x215)];if(_0xb75277['id']!==V[_0x582089(0x1f4)]['id']||_0x316ef0[_0x582089(0x276)]!==this[_0x582089(0x143)])return;const _0x1a3afc={'id':'doc.mutation.rich-text-editing','params':_0x316ef0},_0x519c72=this[_0x582089(0x31d)];for(const [_0x3b89f2,_0x284bd7]of _0x519c72){const _0x47034c={'id':_0x582089(0x2d0),'params':{'unitId':this[_0x582089(0x143)],'actions':null,'textRanges':_0x284bd7[_0x582089(0x128)]}},_0x51495d=this[_0x582089(0x148)][_0x582089(0x293)](_0x1a3afc,_0x47034c,!0x1);if(g[_0x582089(0x2b6)](_0x51495d))throw _0x51495d[_0x582089(0x1d5)];_0x519c72[_0x582089(0x219)](_0x3b89f2,{..._0x284bd7,'ranges':_0x51495d[_0x582089(0x2c5)][_0x582089(0x215)][_0x582089(0x122)]});}queueMicrotask(()=>{const _0x4ad8ac=_0x582089;this[_0x4ad8ac(0x1f3)][_0x4ad8ac(0x1a7)](_0x519c72);});})));}[_0x4885bf(0x188)](_0x4d272b){const _0x4751e6=_0x4885bf;var _0x3f2cba,_0x52dd52;const {memberID:_0x42097d,selection:_0x237162}=_0x4d272b[_0x4751e6(0x259)],_0xa691ab=ht(_0x237162),_0x5cf50c=(_0x52dd52=(_0x3f2cba=this[_0x4751e6(0x290)][_0x4751e6(0x300)](this[_0x4751e6(0x143)],_0x42097d))==null?void 0x0:_0x3f2cba['name'])!=null?_0x52dd52:_0x4751e6(0xe5),_0x5a4752={'color':this['_colorAssignService'][_0x4751e6(0x31f)](_0x42097d),'name':_0x5cf50c,'ranges':_0xa691ab},_0x22aa7c=this[_0x4751e6(0x31d)];_0x22aa7c[_0x4751e6(0x219)](_0x42097d,_0x5a4752),this['_cursorInfo$'][_0x4751e6(0x1a7)](_0x22aa7c);}['_onCursorDelete'](_0x448b45){const _0x3fb7ef=_0x4885bf,{memberID:_0x38a2cd}=_0x448b45[_0x3fb7ef(0x259)],_0x2710c3=this[_0x3fb7ef(0x31d)];_0x2710c3[_0x3fb7ef(0x2a1)](_0x38a2cd),this[_0x3fb7ef(0x1f3)][_0x3fb7ef(0x1a7)](_0x2710c3);}[_0x4885bf(0x29e)](){const _0x1404d0=_0x4885bf;var _0x4218d1;if(this['_online']=!0x0,((_0x4218d1=this[_0x1404d0(0x189)][_0x1404d0(0x277)]())==null?void 0x0:_0x4218d1['getUnitId']())!==this[_0x1404d0(0x143)])return;const _0x174633=this['_injector'][_0x1404d0(0x1b8)](V[_0x1404d0(0xe6)])[_0x1404d0(0x263)]();Array[_0x1404d0(0x2cd)](_0x174633)&&_0x174633[_0x1404d0(0x12a)]>0x0&&this['_updateLocalCursor'](_0x174633);}[_0x4885bf(0x27d)](){this['_online']=!0x1;}};ve=It([U(0x2,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),U(0x3,a[_0x4885bf(0xe0)](Re)),U(0x4,a[_0x4885bf(0xe0)](u[_0x4885bf(0x235)])),U(0x5,a[_0x4885bf(0xe0)](be)),U(0x6,g[_0x4885bf(0x29a)]),U(0x7,a[_0x4885bf(0x2b8)]),U(0x8,a['ICommandService'])],ve);var ft=Object[_0x4885bf(0xee)],mt=(_0x543ea2,_0xed488b,_0x42ea64,_0x35c8f8)=>{const _0x2dbdfe=_0x4885bf;for(var _0x195f42=_0x35c8f8>0x1?void 0x0:_0x35c8f8?ft(_0xed488b,_0x42ea64):_0xed488b,_0x15cfb4=_0x543ea2[_0x2dbdfe(0x12a)]-0x1,_0x2dbb07;_0x15cfb4>=0x0;_0x15cfb4--)(_0x2dbb07=_0x543ea2[_0x15cfb4])&&(_0x195f42=_0x2dbb07(_0x195f42)||_0x195f42);return _0x195f42;},w=(_0x31a2cb,_0x51e04e)=>(_0x28944e,_0x15cdec)=>_0x51e04e(_0x28944e,_0x15cdec,_0x31a2cb);const vt=0x12c,gt=0x64,Et=()=>{let _0xeb0beb=[],_0x551418=!0x1;return _0x5ef5b7=>{_0xeb0beb['push'](_0x5ef5b7),_0x551418||(_0x551418=!0x0,setTimeout(()=>{const _0xcf7b86=_0x30e5;_0xeb0beb[_0xcf7b86(0x28d)](_0x497c74=>_0x497c74()),_0xeb0beb=[],_0x551418=!0x1;}));};};let ge=class extends a[_0x4885bf(0x1aa)]{constructor(_0x5553a6,_0x12833b,_0x3a108e,_0x33436d,_0x4d6599,_0xc0387b,_0x1ffc48,_0x4d262d){const _0x18a3c1=_0x4885bf;super(),_(this,'_online',!0x1),_(this,_0x18a3c1(0x2a5),!0x1),_(this,_0x18a3c1(0x1f3),new I[(_0x18a3c1(0x2cb))](new Map())),_(this,_0x18a3c1(0x35c),this[_0x18a3c1(0x1f3)]['asObservable']()),_(this,'_roomMembers$',new I[(_0x18a3c1(0x2cb))]([])),_(this,_0x18a3c1(0x10f),this[_0x18a3c1(0x34f)][_0x18a3c1(0x153)](I[_0x18a3c1(0x1cd)](vt))),_(this,_0x18a3c1(0x2df),a[_0x18a3c1(0xf6)]((_0x44a399,_0xa0324e)=>{const _0x5bd71f=_0x18a3c1,_0x1eaac5={'eventID':g[_0x5bd71f(0x2b2)][_0x5bd71f(0x2c4)],'data':{'unitID':this[_0x5bd71f(0x143)],'memberID':this[_0x5bd71f(0x2a3)][_0x5bd71f(0x35f)](),'selection':B[_0x5bd71f(0x2fc)](_0x44a399,_0xa0324e[_0x5bd71f(0xbb)])}};this[_0x5bd71f(0x2a3)]['send'](_0x1eaac5,this['unitID']);},gt)),(this['unitID']=_0x5553a6,this['_session']=_0x12833b,this[_0x18a3c1(0x17e)]=_0x3a108e,this['_colorAssignService']=_0x33436d,this[_0x18a3c1(0x290)]=_0x4d6599,this[_0x18a3c1(0x189)]=_0xc0387b,this[_0x18a3c1(0x26a)]=_0x1ffc48,this[_0x18a3c1(0x2c1)]=_0x4d262d);}get[_0x4885bf(0x31d)](){const _0x124014=_0x4885bf;return this[_0x124014(0x1f3)][_0x124014(0x1cf)]();}get[_0x4885bf(0x98)](){const _0x67a5f0=_0x4885bf;return this['_roomMembers$'][_0x67a5f0(0x1cf)]();}[_0x4885bf(0xcf)](){const _0x175f30=_0x4885bf;super[_0x175f30(0xcf)](),this['_cursorInfo$'][_0x175f30(0x1a7)](new Map()),this[_0x175f30(0x1f3)][_0x175f30(0x90)](),this[_0x175f30(0x34f)]['next']([]),this[_0x175f30(0x34f)]['complete']();}['init'](){const _0x4f399c=_0x4885bf;this[_0x4f399c(0x2a5)]||(this[_0x4f399c(0x2a5)]=!0x0,this[_0x4f399c(0x2a3)][_0x4f399c(0x2e8)][_0x4f399c(0x153)](I['takeUntil'](this[_0x4f399c(0x30f)]))[_0x4f399c(0x22c)](_0x581cb3=>{const _0x2420ba=_0x4f399c;_0x581cb3===u['SessionStatus'][_0x2420ba(0x269)]?this[_0x2420ba(0x29e)]():this['_toggleOffline']();}),this['_session'][_0x4f399c(0x31c)][_0x4f399c(0x153)](I[_0x4f399c(0x268)](this['dispose$']))[_0x4f399c(0x22c)](_0x4996d0=>{const _0x1dce65=_0x4f399c,_0x201269=_0x4996d0['eventID'];_0x201269===g[_0x1dce65(0x2b2)][_0x1dce65(0x2c4)]&&this[_0x1dce65(0x188)](_0x4996d0),_0x201269===g[_0x1dce65(0x2b2)]['USERS_LEAVE']&&this[_0x1dce65(0x8e)](_0x4996d0);}),this[_0x4f399c(0x2ac)](),this['disposeWithMe'](this[_0x4f399c(0x26a)][_0x4f399c(0x258)](_0x3dcc0f=>{const _0x5b2dbd=_0x4f399c;if(this[_0x5b2dbd(0xb8)]&&_0x3dcc0f['id']===v[_0x5b2dbd(0xde)]['id']&&_0x3dcc0f['params'][_0x5b2dbd(0x276)]===this['unitID']){const _0x51e406=_0x3dcc0f[_0x5b2dbd(0x215)];this[_0x5b2dbd(0x2df)](_0x51e406[_0x5b2dbd(0x2ba)],_0x51e406[_0x5b2dbd(0x1df)][0x0]);}})));}['_onCursorUpdate'](_0x16b680){const _0x25a8f9=_0x4885bf;var _0x365ed9,_0x27f4a1;const {memberID:_0x3aeec0,selection:_0x1ede50}=_0x16b680['data'],{sheetName:_0x5b9d73,range:_0x3a9d12}=B[_0x25a8f9(0xeb)](_0x1ede50),_0x31c49d={'name':(_0x27f4a1=(_0x365ed9=this['_memberService']['getMember'](this[_0x25a8f9(0x143)],_0x3aeec0))==null?void 0x0:_0x365ed9[_0x25a8f9(0x30b)])!=null?_0x27f4a1:_0x25a8f9(0xe5),'range':this[_0x25a8f9(0x2dd)](_0x5b9d73,_0x3a9d12),'sheetID':_0x5b9d73,'color':this[_0x25a8f9(0x335)]['assignAColorForMemberID'](_0x3aeec0),'selection':_0x1ede50},_0x56b952=this['cursorInfo'];_0x56b952['set'](_0x3aeec0,_0x31c49d),this[_0x25a8f9(0x1f3)][_0x25a8f9(0x1a7)](_0x56b952);}[_0x4885bf(0x8e)](_0x3cb290){const _0x15d6a0=_0x4885bf,{memberID:_0x67041c}=_0x3cb290['data'],_0x318ddd=this[_0x15d6a0(0x31d)];_0x318ddd[_0x15d6a0(0x2a1)](_0x67041c),this[_0x15d6a0(0x1f3)][_0x15d6a0(0x1a7)](_0x318ddd);}['_getMergeRange'](_0x36edcc,_0x20aa62){const _0x1a333b=_0x4885bf;var _0x276b5d,_0x1bbf44;const _0x54854d=(_0x1bbf44=(_0x276b5d=this['_univerInstanceService'][_0x1a333b(0x18e)](this['unitID']))==null?void 0x0:_0x276b5d[_0x1a333b(0x2e2)](_0x36edcc))==null?void 0x0:_0x1bbf44[_0x1a333b(0x27e)]();return(_0x54854d==null?void 0x0:_0x54854d[_0x1a333b(0x23a)](_0x518983=>a['Rectangle'][_0x1a333b(0x210)](_0x518983,_0x20aa62)))||_0x20aa62;}['_onRefRangeChange'](){const _0x5ddeb9=_0x4885bf,_0x495932=new a[(_0x5ddeb9(0x25b))](),_0xdf1eaa=Et(),_0x15fe4e=()=>{const _0x49321d=_0x5ddeb9;_0x495932['dispose']();const _0x37829=(_0x4c6e5b,_0xfe7fe2,_0x5bce6a,_0x528433)=>{const _0xa0bfc0=_0x30e5;let _0x1caaf1=[];switch(_0x4c6e5b['id']){case v[_0xa0bfc0(0x140)][_0xa0bfc0(0x308)]:{_0x1caaf1=v[_0xa0bfc0(0x129)](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)]['DeleteRangeMoveUpCommandId']:{_0x1caaf1=v[_0xa0bfc0(0xe4)](_0x4c6e5b,_0x528433);break;}case v['EffectRefRangId'][_0xa0bfc0(0x35e)]:{_0x1caaf1=v[_0xa0bfc0(0x105)](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)][_0xa0bfc0(0x1fa)]:{_0x1caaf1=v[_0xa0bfc0(0x32e)](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)][_0xa0bfc0(0x29d)]:{_0x1caaf1=v[_0xa0bfc0(0x212)](_0x4c6e5b,_0x528433);break;}case v['EffectRefRangId'][_0xa0bfc0(0x271)]:{_0x1caaf1=v['handleInsertRow'](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)][_0xa0bfc0(0xcd)]:{_0x1caaf1=v[_0xa0bfc0(0x229)](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)][_0xa0bfc0(0x166)]:{_0x1caaf1=v[_0xa0bfc0(0x155)](_0x4c6e5b,_0x528433);break;}case v['EffectRefRangId']['RemoveRowCommandId']:{_0x1caaf1=v[_0xa0bfc0(0x25a)](_0x4c6e5b,_0x528433);break;}}const _0x47e827=v['runRefRangeMutations'](_0x1caaf1,_0x528433),_0x29a6bd=this[_0xa0bfc0(0x31d)]['get'](_0xfe7fe2);if(_0x29a6bd&&_0x47e827){const _0x3f4ffa={..._0x29a6bd,'range':_0x47e827};this[_0xa0bfc0(0x31d)][_0xa0bfc0(0x219)](_0xfe7fe2,_0x3f4ffa),_0xdf1eaa(()=>{const _0x2e61bc=_0xa0bfc0,_0x414a39=this[_0x2e61bc(0x2c1)]['registerRefRange'](_0x47e827,_0x5d3ce1=>(_0x414a39[_0x2e61bc(0xcf)](),_0x37829(_0x5d3ce1,_0xfe7fe2,_0x5bce6a,_0x47e827)));_0x495932[_0x2e61bc(0xf1)](_0x414a39);});}return{'redos':[],'undos':[]};};this[_0x49321d(0x31d)][_0x49321d(0x28d)]((_0x44ab7e,_0x4288e7)=>{const _0x47ffc2=_0x49321d,{range:_0x2baf5f,sheetID:_0x29fd2d}=_0x44ab7e,_0x4180f9=this['_refRangeService'][_0x47ffc2(0x12e)](_0x2baf5f,_0x51ef80=>(_0x4180f9[_0x47ffc2(0xcf)](),_0x37829(_0x51ef80,_0x4288e7,_0x29fd2d,_0x2baf5f)));_0x495932['add'](_0x4180f9);});};this[_0x5ddeb9(0x354)](a['toDisposable'](this[_0x5ddeb9(0x1f3)][_0x5ddeb9(0x22c)](()=>{_0x15fe4e();})));}[_0x4885bf(0x29e)](){const _0x4aff92=_0x4885bf;var _0x3df352,_0x352584;if(this[_0x4aff92(0xb8)]=!0x0,((_0x3df352=this[_0x4aff92(0x189)][_0x4aff92(0x277)]())==null?void 0x0:_0x3df352[_0x4aff92(0x2fb)]())!==this[_0x4aff92(0x143)])return;const _0x5f4745=(_0x352584=this['_injector'][_0x4aff92(0x1b8)](v[_0x4aff92(0xce)])['getCurrentSelections']())==null?void 0x0:_0x352584[0x0],_0x46c605=this['_univerInstanceService'][_0x4aff92(0x1fb)](a[_0x4aff92(0x311)][_0x4aff92(0x28c)])['getActiveSheet']();_0x5f4745&&_0x46c605&&this['_updateLocalCursor'](_0x46c605[_0x4aff92(0xb9)](),_0x5f4745);}[_0x4885bf(0x27d)](){const _0x4fd1e1=_0x4885bf;this[_0x4fd1e1(0xb8)]=!0x1;}};ge=mt([w(0x2,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),w(0x3,a[_0x4885bf(0xe0)](Re)),w(0x4,a[_0x4885bf(0xe0)](u['MemberService'])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x4885bf(0x2a2)]),w(0x7,a['Inject'](v[_0x4885bf(0x174)]))],ge);var Ct=Object[_0x4885bf(0xee)],pt=(_0x3ee7d5,_0x291204,_0x316a1c,_0x3a67d6)=>{const _0x412231=_0x4885bf;for(var _0x4c0584=_0x3a67d6>0x1?void 0x0:_0x3a67d6?Ct(_0x291204,_0x316a1c):_0x291204,_0x7969a0=_0x3ee7d5[_0x412231(0x12a)]-0x1,_0x41c397;_0x7969a0>=0x0;_0x7969a0--)(_0x41c397=_0x3ee7d5[_0x7969a0])&&(_0x4c0584=_0x41c397(_0x4c0584)||_0x4c0584);return _0x4c0584;},ce=(_0x3d0aa7,_0x261e55)=>(_0xd92991,_0x3aaf74)=>_0x261e55(_0xd92991,_0x3aaf74,_0x3d0aa7);let F=class extends a[_0x4885bf(0x1aa)]{constructor(_0x545a34,_0x587e98,_0x1dd3b2){const _0x3bb335=_0x4885bf;super(),_(this,_0x3bb335(0x23f),new Map()),_(this,_0x3bb335(0x239),new I[(_0x3bb335(0x207))]()),(this[_0x3bb335(0x189)]=_0x545a34,this[_0x3bb335(0x17e)]=_0x587e98,this[_0x3bb335(0x32a)]=_0x1dd3b2,this[_0x3bb335(0x2a5)]());}[_0x4885bf(0xcf)](){const _0x1fab47=_0x4885bf;super[_0x1fab47(0xcf)](),this[_0x1fab47(0x239)][_0x1fab47(0x90)](),this['_entities']['forEach'](_0x1f15d9=>_0x1f15d9[_0x1fab47(0xcf)]());}[_0x4885bf(0x232)](_0x22d36c){const _0x14e53c=_0x4885bf;return this[_0x14e53c(0x23f)][_0x14e53c(0x11b)](_0x22d36c)?this[_0x14e53c(0x23f)][_0x14e53c(0x1b8)](_0x22d36c)[_0x14e53c(0x35c)]:this['_entityInit$']['pipe'](I[_0x14e53c(0x1db)](_0x393208=>_0x393208[_0x14e53c(0x143)]===_0x22d36c),I[_0x14e53c(0xea)](_0x1b2659=>_0x1b2659[_0x14e53c(0x35c)]));}['_init'](){const _0x1199fd=_0x4885bf;this['_univerInstanceService'][_0x1199fd(0x33d)](a['UniverInstanceType'][_0x1199fd(0x28c)])[_0x1199fd(0x153)](I[_0x1199fd(0x268)](this['dispose$']))[_0x1199fd(0x22c)](async _0x54ec1f=>{const _0x191484=_0x1199fd,_0x4bae04=_0x54ec1f[_0x191484(0x2fb)](),_0x26be81=await this['_startSheetCollabCursor'](_0x4bae04);this[_0x191484(0x239)][_0x191484(0x1a7)](_0x26be81),this['_entities']['set'](_0x4bae04,_0x26be81);}),this['_univerInstanceService'][_0x1199fd(0x33d)](a[_0x1199fd(0x311)][_0x1199fd(0xf4)])[_0x1199fd(0x153)](I[_0x1199fd(0x268)](this[_0x1199fd(0x30f)]))[_0x1199fd(0x153)](I['filter'](_0x5e8573=>!_0x5e8573[_0x1199fd(0x2fb)]()[_0x1199fd(0x191)]('__')))[_0x1199fd(0x22c)](async _0x2ef073=>{const _0x20f7f9=_0x1199fd,_0x568f54=_0x2ef073[_0x20f7f9(0x2fb)](),_0x4430ca=await this['_startDocCollabCursor'](_0x568f54);this[_0x20f7f9(0x239)][_0x20f7f9(0x1a7)](_0x4430ca),this['_entities'][_0x20f7f9(0x219)](_0x568f54,_0x4430ca);}),I[_0x1199fd(0x1cb)](this[_0x1199fd(0x189)][_0x1199fd(0x13e)](a[_0x1199fd(0x311)][_0x1199fd(0xf4)]),this[_0x1199fd(0x189)][_0x1199fd(0x13e)](a[_0x1199fd(0x311)][_0x1199fd(0x28c)]))[_0x1199fd(0x153)](I['takeUntil'](this[_0x1199fd(0x30f)]))[_0x1199fd(0x22c)](_0x3cc000=>{const _0x31b871=_0x1199fd,_0x5827f4=_0x3cc000['getUnitId'](),_0xa8acf7=this[_0x31b871(0x23f)][_0x31b871(0x1b8)](_0x5827f4);_0xa8acf7&&(_0xa8acf7[_0x31b871(0xcf)](),this['_entities'][_0x31b871(0x2a1)](_0x5827f4));});}async[_0x4885bf(0x101)](_0x2252b7){const _0x1a55a8=_0x4885bf,_0x4f7c34=await this[_0x1a55a8(0x32a)][_0x1a55a8(0x16a)](_0x2252b7),_0x4e17be=this[_0x1a55a8(0x17e)][_0x1a55a8(0x144)](ge,_0x2252b7,_0x4f7c34);return _0x4e17be['init'](),_0x4e17be;}async[_0x4885bf(0x104)](_0x38531c){const _0x7396ce=_0x4885bf,_0x28c1b9=await this[_0x7396ce(0x32a)][_0x7396ce(0x16a)](_0x38531c),_0x42b1a5=this['_injector']['createInstance'](ve,_0x38531c,_0x28c1b9);return _0x42b1a5[_0x7396ce(0x288)](),_0x42b1a5;}};function _0x7782(){const _0x41cc85=['LICENSE_DISTRO_REJECTED','_getScale','/run/','_taskIds','_getSessionTicket','transformSelections','_range','_initUnhandledRejectionListener','RevisionService','_releaseCalculationLimit','Subject','pluginName','IDocClipboardService','Vector2','stageInfo','text','NodePositionConvertToCursor','ENTITLE_INSUFFICIENT_QUOTA','current','contains','JOIN_ROOM_FAILED','handleInsertRangeMoveRight','onPointerEnter$','_updateCollabCursors','params','arc','0\x200\x2016\x2016','_transformHistoryAndStateStack','set','lineTo','lineno','_syncEditingCollabCursorService','collabCursorState$','getUnhiddenWorksheets','TRANSFORM_CHANGE_OBSERVABLE_TYPE','SetTextSelectionsOperation','NodePositionConvertToRectRange','combineLatest','catch','_cachedData','LOGIN_FAILED','code','getformulaLimitStatusUrl','_assignedColors','handleMoveRange','YUUMI_RATE_OVER_LIMIT','univer-flex\x20univer-items-center','subscribe','_collaborationUIEventService','evenodd','stack','path','REDEMPTION_CODE_HAS_BEEN_CREATED','getCollabCursors$','setStateCache','YUUMI_URL_COL_OUT_OF_RANGE','MemberService','onStarting','_initCommandInterceptor','off-line-icon_clip0_910_343','_entityInit$','find','href','collaboration-client-ui.config','resize','ENTITLE_DUP_SUBSCRIPTION','_entities','getRangePointData','WebBrowserSingleActiveUnitService','limitInfo','search','DocStateChangeManagerService','WECHAT_HAS_BEEN_BOUND','110949luqNvG','_eventUnsubscribe','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_currentUsage','stage','_docStateChangeManagerService','actions','REDEMPTION_USER_NOT_ELIGIBLE','YUUMI_UNABLE_LOAD_URL','_initWindowErrorListener','_setupSubUnitSync','asObservable','_initStatusComponent','UNAUTHENTICATED','_removeCollabCursors','IMessageService','PENDING','Shape','onCommandExecuted','data','handleIRemoveRow','DisposableCollection','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','measureText','endRow','ticket','_textBubble','startRow','PAYMENT_CHANNEL_NOT_SUPPORT','getDocRanges','_ensureSubject','url(#off-line-icon_clip0_910_343)','OTHER_CLIENTS_EDITING','SOCKET_FAILED_RETRY','takeUntil','ONLINE','_commandService','includes','FETCH_MISS','_name','body','currentUsage','font','InsertRowCommandId','ENTITLE_CHAT_LIMIT_EXCEED','useRef','_draw','replaceDocRanges','unitId','getFocusedUnit','SNAPSHOT_HAS_BEEN_REMOVED','_pollingInterval','_docTransformStateCacheService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','unit','_toggleOffline','getMergeData','unsubscribe','YUUMI_CONNECTOR_URL_NOT_FOUND','ILocalCacheService','YUUMI_ALL_TABLES_IS_INVALID','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_uiPartsService','syncEditingCollabCursor','_initResize','UniverCollaborationClientPlugin','init','88MLGKEX','_document','Rect','UNIVER_SHEET','forEach','_memberID','createElement','_memberService','ALREADY_EXISTS','MUTATION','transformMutation','socket$','clearInterval','_initEvent','_collabCursorState$','AUTHORIZE_CODE_ILLEGAL','_saveTaskMap','ITransformService','black','addEventListener','InsertRangeMoveRightCommandId','_toggleOnline','_config','toString','delete','ICommandService','_session','_scheduleHeartbeat','_init','_handleLeaveEvent','endColumn','removeEventListener','getSkeleton','source','RegularPolygon','_onRefRangeChange','height','children','_monkeyPatchLogService','unhandledrejection','addObject','CollaborationEvent','USER_NOT_INVITED_CODE','Plugin','round','isTransformMutationFailure','REDEMPTION_USER_REDEEM_TIMES_EXCEED','IUniverInstanceService','ThemeService','subUnitId','_getSheetObject','SetFormulaCalculationNotificationMutation','popstate','LICENSE_IMPORT_SIZE_EXCEEDED','redoState','totalFormulasToCalculate','_refRangeService','use','registerDependencies','UPDATE_CURSOR','m2Prime','distinctUntilChanged','getConfig','[CollaborationDataLoaderController]','purple.300','shareReplay','BehaviorSubject','clearTimeout','isArray','imageSourceType','entries','doc.mutation.rich-text-editing','labelPosition','_initDependencies','YUUMI_SUBSCRIPTION_NOT_FOUND','IRemoteInstanceService','2816744BWWTHH','transformRemoteChangeset','map','EMAIL_VERIFY_CODE_MISMATCH','BuiltInUIPart','url(#on-line-icon_clip0_910_349)','DataLoaderService','SHEET_VIEWPORT_KEY','_getMergeRange','_transformPreviousActiveRange','_updateLocalCursor','univer-mr-2\x20univer-flex\x20univer-text-xl','on-line-icon','getSheetBySheetId','_lastPointer','Loading','_configService','_docTransformSelectionsService','_cursorShapes','sessionStatus$','debug','RECT','url(#$1','_hideTimer','findNodePositionByCharIndex','uni.network.url-service','size','generateRandomId','toRgbString','reconnect','toStringTag','M0\x200H16V16H0z','CONFLICT','green.600','setTimeout','SUCCESS','DATA_SOURCE_TOO_LARGE','collaboration.single-unit.warning','getUnitId','serializeRangeWithSheet','assign','REDEMPTION_CODE_NOT_STARTED','FormulaExecutedStateType','getMember','substring','_context','getCurrentRevOfUnit','column','collab-text-range-','executeCommand','CollaborationSessionService','DeleteRangeMoveLeftCommandId','NOT_FOUND','_scheduleSaving','name','getActiveSheet','CollaborationStatus','whenReady','dispose$','selection','UniverInstanceType','_showGuardMessage','getParam','UNDEFINED','_docTransformIMECacheService','_urlService','saveImage','registerBeforeClose','loadUnit','_checkCalculationAvailable','_cursors','event$','cursorInfo','_docSkeletonManagerService','assignAColorForMemberID','HEADER_MENU','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','invokeId','attrs','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','defs','ISocketService','_sheetSkeletonManagerService','getAncestorScale','CHANGESET_REVISION_CONFILICT','_collabSessionService','\x20at\x20','onLocalMutation','_lastResponseTimestamp','handleInsertRangeMoveDown','_handleEvent','824316oXaSxF','color','_cursor','NOT_COLLAB','APPLY_NON_SEQUENTIAL_REVISION','_colorAssignService','_themeService','_applyCommand','getUnitStatus$','activeSheet$','push','APPLY_DUPLICATED','INVALID_ARGUMENT','getTypeOfUnitAdded$','isEditing','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','saveOfflineData','_startCalculationLimit','_renderManagerService','RemoteUniscriptService','getLocalCacheKey','_shapes','REDEMPTION_CODE_INACTIVE','/universer-api/frontend/logs','collabStatus.syncing','getUndoRedoMutationParamsCache','clipPath','CollaborationUIEventService','addObjects','registerComponent','parseInt','_roomMembers$','collabStatus.synced','replaceState','UNRECOGNIZED','_uploadLog','disposeWithMe','WebURLService','functionsExecutedState','CollaborationController','HTTPService','_initUserListener','_hasFormulaInDirtyRanges','restore','cursorInfo$','0\x200\x2017\x2016','InsertColCommandId','getMemberID','type','getUnit','colorChannel1','_onCursorDelete','INVALID_INVITE_CODE','complete','USER_IS_ANONYMOUS','_render','CONNECTOR_DATA_TOO_LARGE','parse','none','throttleTime','registerRenderModule','roomMembers','UniverCollaborationClientUIPlugin','MOBILE_HAS_BEEN_BOUND','focused$','Warning','getRelativeToViewportCoord','LICENSE_EXPORT_SIZE_EXCEEDED','show','_docSkeleton','_revisionService','newValue','onPointerLeave$','SOCKET_FAILED','REDEMPTION_CODE_FULLY_REDEEMED','_colorIndex','_removeClearOtherTimer','IUIPartsService','min','createIdentifier','PERMISSION_DENIED','USER_NOT_FOUND','_getAnchorBounding','OnLineIcon','top','getCellPositionByOffset','key','DocIMEInputManagerService','entityInit$','getCurrent','collabStatus.notCollab','setAlpha','reason','_online','getSheetId','_backgroundColor','range','getActiveRange','ACTIVE_UNIT_EVENT_CHANNEL','_anchor','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','Failed','_beforeCloseService','_setupBeforeClosingHandler','#FFF','backgroundColor','_scene','jiqing.500','wsSessionTicketUrl','rgba(255,\x20255,\x20255,\x200.01)','_updateSubUnitFromURLParams','START_CALCULATION','LocaleService','CURRENT_STATUS_CANNOT_OPERATE','MoveRangeCommandId','SheetsSelectionsService','dispose','univerjs-icon\x20univerjs-icon-','_selfUnitIDs','COLORS','xlink:href','_docClipboardService','_unitStatus','_anchorDot','74996FXoKtl','urlChange$','_initCommandExecutedListener','subscribeEvent','message','_color','blue.400','SetSelectionsOperation','string','Inject','pushState','history','Tools','handleDeleteRangeMoveUp','Unknown\x20user','DocSelectionManagerService','_unitOnClients','1em','TEXT_RANGE_LAYER_INDEX','switchMap','deserializeRangeWithSheet','all','startFormulaLimitUrl','getOwnPropertyDescriptor','APPLY_REJECT','_localCacheService','add','origin','sheetID','UNIVER_DOC','collab-rect-range-','debounce','Error','INTERNAL_ERROR','white','APPLY_REVISION_CONFILICT','_maxFormulaLimit','tag','ENTITLE_CAN_NOT_BUY_LOWER_OTP','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','some','_handleHeartbeatEvent','_startSheetCollabCursor','application/json','collaboration.closeRoom','_startDocCollabCursor','handleInsertCol','IURLService','session.collaboration-timeout','LOCAL_CACHE_INTERVAL_KEY','getColor','CanceledError','formula.calculation.started','transformStateCache','SessionStatus','getItem','roomMembers$','mutations','subunit','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','INVITE_CODE_HAS_BEEN_UES','SheetCollabCursorShape','now','fillText','isTransformMutationsWithChangesetSuccess','41983623AFvQts','_setFormulaLimitStatus','[Unhandled\x20Rejection]:\x20','has','SYNCED','_handleJoinEvent','380wIFfuI','ENTITLE_REPORT_LIMIT_EXCEED','getVpScrollXYInfoByPosToVp','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','textRanges','2974559aVElHo','session.will-retry','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_hovered','_checkAndWaitForCalculationPermission','ranges','handleDeleteRangeMoveLeft','length','filename','INotificationService','_collabCursorController','registerRefRange','closePath','YUUMI_NO_CUBOID_FOR_QUESTION','ENSURE_SNAPSHOT_EXECUTION','width','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_notificationService','fillRule','_collaborationController','_drawRectRange','disableLocalCache','_heartbeatTimer','defIds','createSocket','result','colno','getTypeOfUnitDisposed$','enableLocalCache','EffectRefRangId','CollaborationUIEventId','_registerRenderDependencies','unitID','createInstance','_clearPolling','join','DocSkeletonManagerService','_transformService','deepClone','collab-client.tooltip.reconnect','OFFLINE','_dataLoaderService','_status$','forwardRef','bind','AWAITING_WITH_PENDING','DEFAULT_WS_SESSION_TICKET_URL','exhaustSavingTask','pipe','INVITE_CODE_REQUIRED','handleIRemoveCol','SetFormulaCalculationStartMutation','BrowserCollaborationSocketService','ERROR_AGAIN','_refreshCollabCursors','executionId','fill','replace','_disabled','from','ILogService','fillStyle','CollaborationDataLoaderController','/universer-api/license/formula/limit/start','setActiveRange','useObservable','/universer-api/license/formula/limit/status','RemoveColCommandId','max','IBeforeCloseService','collabStatus.offline','requireSession','m1Prime','_transformUndoRedoStack','NO_OTHER_CLIENTS_EDITING','_scheduleClearOtherTimer','currentSkeleton$','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','runId','[LogService\x20Error]:\x20','drawWith','RefRangeService','SUBMIT_CHANGESET_TIMEOUT','SNAPSHOT_INVALID_SNAPSHOT','beginPath','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_handleHover','currentTheme$','startColumn','post','_saveCache','_injector','searchParams','then','getStateCache','currentColor','eventID','addClipboardHook','setParam','DependentOn','memberID','_onCursorUpdate','_univerInstanceService','FormulaExecuteStageType','getSheetObject','isActive','beforeCommandExecuted','getUniverSheetInstance','unshift','_docSyncEditingCollabCursorService','startsWith','stringify','location','values','_httpService','_localStorageService','DesktopCollaborationStatusDisplayController','_drawTextRange','Injector','_messageService','UniverIcon','_initEntityListener','UnitStatus','svg','with','removeParam','_id','_getSaveTimeout','defineProperty','IRenderManagerService','getCoordByCell','idSuffix','next','TEXT','maxFormulaLimit','RxDisposable','CollaborationSocketService','_localeService','APPLY_PERMISSION_DENIED','_send','getOffsetConfig','setItem','row','Disposable','div','off-line-icon','_getFormulaLimitStatus','YUUMI_AI_RUN_FAILED','_labelPosition','get','displayName','LOGIN_TOKEN_PROCESSING_FAILED','AWAITING','docStateChange$','10753020aSyWLD','onMouseMove','ColorKit','jsx','_clearOtherTimers','TOO_MANY_REQUESTS','setShapeProps','getRenderById','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','hovered','getColorFromTheme','isFormulaString','disposeUnit','SetDocZoomRatioOperation','merge','_registerDependencies','debounceTime','split','getValue','_initStatusListener','REDEMPTION_INVALID_CODE','engine','translate(.97)','skeleton','error','YUUMI_ASYNCIO_CANCELLED','bottom','MessageType','save','_drawAnchor','filter','undoState','override','enableFrontendLog','selections','transformByState','_hover','loadOfflineData','collabStatus.fetchMiss','fromEventSubject','fromEvent','/universer-api/license/formula/limit/done','editingUnit','_imageIoService','ENTITLE_NEED_BILLING_ADDRESS','_createSocketURL','dirtyRanges','onRendered','_logService','EMAIL_HAS_BEEN_BOUND','session.connection-failed','mapTo','symbol','IConfigService','_cursorInfo$','RichTextEditingMutation','mask','...','DOC_RANGE_TYPE','transformMutationsWithChangeset','_updateURLWithCurrentState','InsertRangeMoveDownCommandId','getCurrentUnitForType','OTHER_CLIENT_EDITING'];_0x7782=function(){return _0x41cc85;};return _0x7782();}F=pt([ce(0x0,a[_0x4885bf(0x2b8)]),ce(0x1,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),ce(0x2,a['Inject'](u[_0x4885bf(0x307)]))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x27355b,_0x35b216){const _0x3773f8=_0x4885bf;let {radius:_0x20860b,width:_0xd7a10d,height:_0x524d39}=_0x35b216;_0x20860b=_0x20860b!=null?_0x20860b:0x0,_0xd7a10d=_0xd7a10d!=null?_0xd7a10d:0x1e,_0x524d39=_0x524d39!=null?_0x524d39:0x1e;let _0x5193c7=0x0,_0x1a96c4=0x0,_0x5fd8a1=0x0;_0x5193c7=_0x1a96c4=_0x5fd8a1=Math[_0x3773f8(0xa9)](_0x20860b,_0xd7a10d/0x2,_0x524d39/0x2),_0x27355b[_0x3773f8(0x177)](),_0x27355b['moveTo'](_0x5193c7,0x0),_0x27355b[_0x3773f8(0x21a)](_0xd7a10d-_0x1a96c4,0x0),_0x27355b[_0x3773f8(0x216)](_0xd7a10d-_0x1a96c4,_0x1a96c4,_0x1a96c4,Math['PI']*0x3/0x2,0x0,!0x1),_0x27355b[_0x3773f8(0x21a)](_0xd7a10d,_0x524d39-_0x5fd8a1),_0x27355b['arc'](_0xd7a10d-_0x5fd8a1,_0x524d39-_0x5fd8a1,_0x5fd8a1,0x0,Math['PI']/0x2,!0x1),_0x27355b['lineTo'](0x0,_0x524d39),_0x27355b['lineTo'](0x0,_0x5193c7),_0x27355b[_0x3773f8(0x216)](_0x5193c7,_0x5193c7,_0x5193c7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x27355b[_0x3773f8(0x12f)](),_0x35b216[_0x3773f8(0x15b)]&&(_0x27355b[_0x3773f8(0x1d9)](),_0x27355b[_0x3773f8(0x160)]=_0x35b216[_0x3773f8(0x15b)],_0x35b216[_0x3773f8(0x135)]===_0x3773f8(0x22e)?_0x27355b[_0x3773f8(0x15b)](_0x3773f8(0x22e)):_0x27355b[_0x3773f8(0x15b)](),_0x27355b['restore']());}class re extends C[_0x4885bf(0x257)]{constructor(_0x57f920,_0x115368){const _0x558165=_0x4885bf;super(_0x57f920,_0x115368),_(this,'color'),_(this,_0x558165(0x20c)),(this[_0x558165(0x331)]=_0x115368==null?void 0x0:_0x115368[_0x558165(0x331)],this['text']=_0x115368==null?void 0x0:_0x115368[_0x558165(0x20c)]);}static['drawWith'](_0x2aa97e,_0x131c48){const _0x1fbe93=_0x4885bf,{text:_0x272fad,color:_0x1afdb6}=_0x131c48;_0x2aa97e[_0x1fbe93(0x1d9)](),_0x2aa97e[_0x1fbe93(0x270)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x32c5d6=_0x2aa97e[_0x1fbe93(0x25d)](_0x272fad)['width'],_0x3e6ffc=Math[_0x1fbe93(0xa9)](_0x32c5d6+0x2*le,Ue);Ot(_0x2aa97e,{'height':X,'radius':0x4,'width':_0x3e6ffc,'fill':_0x1afdb6}),_0x2aa97e[_0x1fbe93(0x160)]=_0x1fbe93(0xc3);const _0x55adb2=le,_0x3bb0a3=X-Tt,_0x40291d=Ue-0x2*le;if(_0x32c5d6>_0x40291d){let _0x128a43='',_0x22a269=0x0;for(const _0x3eabe5 of _0x272fad){const _0xe9751b=_0x2aa97e[_0x1fbe93(0x25d)](_0x3eabe5)[_0x1fbe93(0x132)];if(_0x22a269+_0xe9751b<=_0x40291d-_0x2aa97e[_0x1fbe93(0x25d)](_0x1fbe93(0x1f6))[_0x1fbe93(0x132)])_0x128a43+=_0x3eabe5,_0x22a269+=_0xe9751b;else{_0x128a43+=_0x1fbe93(0x1f6);break;}}_0x2aa97e[_0x1fbe93(0x116)](_0x128a43,_0x55adb2,_0x3bb0a3);}else _0x2aa97e['fillText'](_0x272fad,_0x55adb2,_0x3bb0a3);_0x2aa97e[_0x1fbe93(0x35b)]();}[_0x4885bf(0x274)](_0xf4f1d7){const _0x5aa5f1=_0x4885bf;re[_0x5aa5f1(0x173)](_0xf4f1d7,this);}}const _e='collab-text-anchor-',Rt=_0x4885bf(0x305),bt=_0x4885bf(0xf5),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x4885bf(0xc8);class Le{constructor(_0x229d11,_0x5d03c4,_0x2e5f93,_0x27d07f){const _0x34fef1=_0x4885bf;_(this,'_shapes',[]),_(this,_0x34fef1(0xbe),null),_(this,_0x34fef1(0x260),null),_(this,'_anchorDot',null),_(this,_0x34fef1(0x2ec),null),_(this,_0x34fef1(0x247),null),(this[_0x34fef1(0x332)]=_0x229d11,this[_0x34fef1(0xc5)]=_0x5d03c4,this[_0x34fef1(0xa0)]=_0x2e5f93,this[_0x34fef1(0x28a)]=_0x27d07f,this[_0x34fef1(0x92)]());}set[_0x4885bf(0x1e1)](_0x341e68){const _0x41e0b8=_0x4885bf;_0x341e68?(this[_0x41e0b8(0xd6)]&&this[_0x41e0b8(0xd6)]['hide'](),this[_0x41e0b8(0x260)]&&this[_0x41e0b8(0x260)][_0x41e0b8(0x9f)]()):(this['_anchorDot']&&this['_anchorDot'][_0x41e0b8(0x9f)](),this['_textBubble']&&this[_0x41e0b8(0x260)]['hide']());}[_0x4885bf(0xcf)](){const _0x192eaa=_0x4885bf;for(const _0x5085c1 of this['_shapes'])_0x5085c1[_0x192eaa(0xcf)]();this['_textBubble']&&this[_0x192eaa(0x260)][_0x192eaa(0xcf)](),this['_anchorDot']&&this['_anchorDot'][_0x192eaa(0xcf)](),this[_0x192eaa(0xbe)]&&this[_0x192eaa(0xbe)][_0x192eaa(0xcf)](),this[_0x192eaa(0x247)]&&this[_0x192eaa(0x247)]();}[_0x4885bf(0x92)](){const _0x26bb59=_0x4885bf;var _0x42282d;const {_docSkeleton:_0x3c87d5,_document:_0x2686e4}=this,{color:_0x22881d,name:_0x121260,ranges:_0x315594}=this[_0x26bb59(0x332)],_0x297239=_0x2686e4[_0x26bb59(0x1af)](),{docsLeft:_0xf908d,docsTop:_0x22c484}=_0x297239,_0x32d1cd=new p[(_0x26bb59(0x20d))](_0x297239,_0x3c87d5);for(const {startOffset:_0x2c5c5d,endOffset:_0x28417f,rangeType:_0x58f548,segmentId:_0x124a5c,segmentPage:_0x2d7d0f,collapsed:_0x2127cd,isActive:_0x2a670a}of _0x315594){const _0x5265f6=_0x3c87d5['findNodePositionByCharIndex'](_0x2c5c5d,!0x0,_0x124a5c,_0x2d7d0f);let _0x13f2fe=_0x3c87d5[_0x26bb59(0x2ed)](_0x28417f,!0x0,_0x124a5c,_0x2d7d0f);if(_0x13f2fe==null&&(_0x13f2fe=_0x3c87d5[_0x26bb59(0x2ed)](_0x28417f-0x1,!0x1,_0x124a5c,_0x2d7d0f)),_0x2a670a){const {contentBoxPointGroup:_0x37e876}=_0x32d1cd[_0x26bb59(0x240)](_0x13f2fe,_0x13f2fe);if(_0x37e876[_0x26bb59(0x12a)]===0x0)continue;this[_0x26bb59(0x1da)](_0x22881d,_0x37e876,_0xf908d,_0x22c484,_0x121260),this[_0x26bb59(0x247)]=this[_0x26bb59(0x179)]();}if(_0x5265f6&&_0x13f2fe){if(_0x58f548===a['DOC_RANGE_TYPE'][_0x26bb59(0x2ea)]){const _0x4e844c=new p[(_0x26bb59(0x221))](_0x297239,_0x3c87d5),{pointGroup:_0x274cad}=(_0x42282d=_0x4e844c[_0x26bb59(0x240)](_0x5265f6,_0x13f2fe))!=null?_0x42282d:{};if(_0x274cad==null||_0x274cad['length']===0x0)continue;this['_drawRectRange'](_0x22881d,_0x274cad,_0xf908d,_0x22c484);}else{if(!_0x2127cd){const {borderBoxPointGroup:_0xa574d3}=_0x32d1cd[_0x26bb59(0x240)](_0x5265f6,_0x13f2fe);if(_0xa574d3[_0x26bb59(0x12a)]===0x0)continue;this[_0x26bb59(0x198)](_0x22881d,_0xa574d3,_0xf908d,_0x22c484);}}}}}[_0x4885bf(0x1da)](_0x5c9c67,_0x16ee81,_0x3f260f,_0x4aa023,_0x3b18dd){const _0x5a74cd=_0x4885bf,_0x52dbc8=this[_0x5a74cd(0xad)](_0x16ee81),{left:_0x4436b5,top:_0x5c295a,height:_0x1f7e4a}=_0x52dbc8,_0x41a59b=this[_0x5a74cd(0x1fe)](),_0x28f708=Nt/_0x41a59b,_0x13e6f1=new C[(_0x5a74cd(0x28b))](_e+a[_0x5a74cd(0x2f0)](H),{'left':_0x4436b5+_0x3f260f-_0x28f708,'top':_0x5c295a+_0x4aa023,'height':_0x1f7e4a,'width':Dt,'fill':_0x5c9c67||C[_0x5a74cd(0x109)](a[_0x5a74cd(0xd2)][_0x5a74cd(0x29b)],0x0),'strokeWidth':_0x28f708,'stroke':Ut,'evented':!0x0});this[_0x5a74cd(0xbe)]=_0x13e6f1,this[_0x5a74cd(0xc5)][_0x5a74cd(0x2b1)](_0x13e6f1,p[_0x5a74cd(0xe9)]);const _0x1520a0=new C[(_0x5a74cd(0x28b))](_e+a['generateRandomId'](H),{'left':_0x4436b5+_0x3f260f-_0x28f708,'top':_0x5c295a+_0x4aa023-he/0x2,'height':he,'width':he,'fill':_0x5c9c67||C['getColor'](a[_0x5a74cd(0xd2)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x5c9c67||C[_0x5a74cd(0x109)](a['COLORS'][_0x5a74cd(0x29b)],0x0),'evented':!0x1});this[_0x5a74cd(0xd6)]=_0x1520a0,this[_0x5a74cd(0xc5)]['addObject'](_0x1520a0,p[_0x5a74cd(0xe9)]);const _0x256d15=new re(_e+a[_0x5a74cd(0x2f0)](H),{'left':_0x4436b5+_0x3f260f-_0x28f708,'top':_0x5c295a+_0x4aa023-X,'text':_0x3b18dd,'color':_0x5c9c67});this[_0x5a74cd(0x260)]=_0x256d15,this[_0x5a74cd(0xc5)][_0x5a74cd(0x2b1)](_0x256d15,p[_0x5a74cd(0xe9)]),this[_0x5a74cd(0x1e1)]=!0x1;}[_0x4885bf(0x179)](){const _0x50c41d=_0x4885bf,_0x589d1e=this['_anchor'][_0x50c41d(0x213)][_0x50c41d(0xda)](()=>{const _0x4e9bdd=_0x50c41d;this[_0x4e9bdd(0x1e1)]=!0x0;}),_0x272825=this['_anchor'][_0x50c41d(0xa3)][_0x50c41d(0xda)](()=>{const _0x1a1d16=_0x50c41d;this[_0x1a1d16(0x2ec)]&&clearTimeout(this['_hideTimer']),this[_0x1a1d16(0x2ec)]=setTimeout(()=>{const _0xe8c776=_0x1a1d16;this[_0xe8c776(0x1e1)]=!0x1;},0x7d0);});return()=>{const _0x1b938c=_0x50c41d;_0x589d1e[_0x1b938c(0x27f)](),_0x272825[_0x1b938c(0x27f)]();};}[_0x4885bf(0x198)](_0xa0540,_0x9d10fe,_0x520cab,_0x1cbd26){const _0x15c36d=_0x4885bf,_0x32a4ed=new a[(_0x15c36d(0x1bf))](_0xa0540)[_0x15c36d(0xb6)](0.2)[_0x15c36d(0x2f1)](),_0x413588=new C[(_0x15c36d(0x2ab))](Rt+a[_0x15c36d(0x2f0)](H),{'pointsGroup':_0x9d10fe,'fill':_0x32a4ed||C[_0x15c36d(0x109)](a[_0x15c36d(0xd2)][_0x15c36d(0x29b)],0.2),'left':_0x520cab,'top':_0x1cbd26,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x15c36d(0x345)]['push'](_0x413588),this[_0x15c36d(0xc5)]['addObject'](_0x413588,p['TEXT_RANGE_LAYER_INDEX']);}[_0x4885bf(0x137)](_0x2a7b5d,_0x563cf2,_0x1f9ec4,_0x5d950a){const _0x1fc037=_0x4885bf,_0x11f728=new a[(_0x1fc037(0x1bf))](_0x2a7b5d)['setAlpha'](0.2)[_0x1fc037(0x2f1)](),_0x25532b=new C['RegularPolygon'](bt+a[_0x1fc037(0x2f0)](H),{'pointsGroup':_0x563cf2,'fill':_0x11f728||C[_0x1fc037(0x109)](a['COLORS'][_0x1fc037(0x29b)],0.2),'left':_0x1f9ec4,'top':_0x5d950a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1fc037(0x33a)](_0x25532b),this['_scene'][_0x1fc037(0x2b1)](_0x25532b,p[_0x1fc037(0xe9)]);}[_0x4885bf(0xad)](_0x469f92){const _0x4b8cbf=_0x469f92[0x0],_0x555fe6=_0x4b8cbf[0x0],_0x12669d=_0x4b8cbf[0x2],{x:_0xb4cb24,y:_0x47f795}=_0x555fe6,{x:_0x135894,y:_0x1635cb}=_0x12669d;return{'left':_0xb4cb24,'top':_0x47f795,'width':_0x135894-_0xb4cb24,'height':_0x1635cb-_0x47f795};}['_getScale'](){const _0xa3cd24=_0x4885bf,{scaleX:_0x3a2a3e,scaleY:_0x579335}=this[_0xa3cd24(0xc5)][_0xa3cd24(0x328)]();return Math[_0xa3cd24(0x167)](_0x3a2a3e,_0x579335);}}var Lt=Object[_0x4885bf(0xee)],Mt=(_0x2c268b,_0x5303dc,_0x4169ae,_0x47c554)=>{const _0x328503=_0x4885bf;for(var _0x211839=_0x47c554>0x1?void 0x0:_0x47c554?Lt(_0x5303dc,_0x4169ae):_0x5303dc,_0x565326=_0x2c268b[_0x328503(0x12a)]-0x1,_0x214e08;_0x565326>=0x0;_0x565326--)(_0x214e08=_0x2c268b[_0x565326])&&(_0x211839=_0x214e08(_0x211839)||_0x211839);return _0x211839;},q=(_0x22823c,_0x12abfa)=>(_0x5bd6d3,_0x11f832)=>_0x12abfa(_0x5bd6d3,_0x11f832,_0x22823c);let Ee=class extends a[_0x4885bf(0x1aa)]{constructor(_0x15e321,_0x4516df,_0x5e39de,_0x554514,_0x1ce664){const _0x262ca1=_0x4885bf;super(),_(this,'_cursorShapes',[]),_(this,_0x262ca1(0x31b),[]),(this[_0x262ca1(0x302)]=_0x15e321,this[_0x262ca1(0x31e)]=_0x4516df,this[_0x262ca1(0x12d)]=_0x5e39de,this['_commandService']=_0x554514,this[_0x262ca1(0x336)]=_0x1ce664,this[_0x262ca1(0x2a5)]());}[_0x4885bf(0x2a5)](){const _0x3614d0=_0x4885bf,_0x588e26=this[_0x3614d0(0x302)][_0x3614d0(0x276)],_0x1efded=this[_0x3614d0(0x31e)];this[_0x3614d0(0x354)](I[_0x3614d0(0x222)]([this[_0x3614d0(0x12d)][_0x3614d0(0x232)](_0x588e26),this[_0x3614d0(0x336)][_0x3614d0(0x17a)]])[_0x3614d0(0x153)]($[_0x3614d0(0x2d7)](([_0x7abc8b,_0x541ade])=>({'skeleton':_0x1efded[_0x3614d0(0x2a9)](),'cursors':[..._0x7abc8b[_0x3614d0(0x194)]()]['flatMap'](_0xa2bf39=>({..._0xa2bf39,'color':this[_0x3614d0(0x336)][_0x3614d0(0x1c7)](_0xa2bf39[_0x3614d0(0x331)])}))})))[_0x3614d0(0x22c)](_0xbf3028=>{const _0x2b0fd3=_0x3614d0;if(this[_0x2b0fd3(0x254)](),_0xbf3028){const {skeleton:_0x1b092a,cursors:_0x32dde2}=_0xbf3028;this[_0x2b0fd3(0x214)](_0x1b092a,_0x32dde2);}})),this[_0x3614d0(0x286)](),this[_0x3614d0(0xd9)]();}[_0x4885bf(0x214)](_0x26e487,_0x26a54d){const _0x11197e=_0x4885bf,{scene:_0x406a99,mainComponent:_0x19b373}=this[_0x11197e(0x302)],_0x201b20=_0x26a54d[_0x11197e(0x2d7)](_0x5f4db5=>new Le(_0x5f4db5,_0x406a99,_0x26e487,_0x19b373));this[_0x11197e(0x2e7)]=_0x201b20,this[_0x11197e(0x31b)]=_0x26a54d;}[_0x4885bf(0x159)](){const _0x153396=_0x4885bf;this[_0x153396(0x254)]();const {scene:_0x59ae6d,mainComponent:_0x148c39}=this[_0x153396(0x302)],_0x4d68a8=this[_0x153396(0x31e)][_0x153396(0x2a9)](),_0x7e49f4=this[_0x153396(0x31b)][_0x153396(0x2d7)](_0x59c1b4=>new Le(_0x59c1b4,_0x59ae6d,_0x4d68a8,_0x148c39));this[_0x153396(0x2e7)]=_0x7e49f4;}[_0x4885bf(0x254)](){const _0x395671=_0x4885bf;this[_0x395671(0x2e7)][_0x395671(0x28d)](_0x2b4877=>_0x2b4877[_0x395671(0xcf)]()),this[_0x395671(0x2e7)]=[];}[_0x4885bf(0xd9)](){const _0x4c9a1e=_0x4885bf,_0x1ddeea=[p[_0x4c9a1e(0x1ca)]['id']];this[_0x4c9a1e(0x354)](this[_0x4c9a1e(0x26a)][_0x4c9a1e(0x258)](_0x1f8579=>{const _0x52b3f9=_0x4c9a1e;_0x1ddeea[_0x52b3f9(0x26b)](_0x1f8579['id'])&&_0x1f8579['params'][_0x52b3f9(0x276)]===this[_0x52b3f9(0x302)]['unitId']&&this[_0x52b3f9(0x159)]();}));}[_0x4885bf(0x286)](){const _0x2d883b=_0x4885bf;this[_0x2d883b(0x354)](a[_0x2d883b(0x1e4)](this[_0x2d883b(0x302)][_0x2d883b(0x1d2)]['onTransformChange$'])[_0x2d883b(0x153)]($['filter'](_0x4fceaf=>_0x4fceaf['type']===C[_0x2d883b(0x21f)][_0x2d883b(0x23d)]),$[_0x2d883b(0x96)](0x10))['subscribe'](()=>{const _0x18f09f=_0x2d883b;this[_0x18f09f(0x159)]();}));}};Ee=Mt([q(0x1,a[_0x4885bf(0xe0)](V[_0x4885bf(0x147)])),q(0x2,a['Inject'](F)),q(0x3,a[_0x4885bf(0x2a2)]),q(0x4,a[_0x4885bf(0xe0)](a[_0x4885bf(0x2b9)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x4885bf(0x257)]{constructor(_0x15b957,_0x4458b8){const _0x1659c5=_0x4885bf;super(_0x15b957,_0x4458b8),_(this,_0x1659c5(0xdc)),_(this,_0x1659c5(0x126),!0x1),_(this,_0x1659c5(0x203)),_(this,_0x1659c5(0x26d),''),_(this,_0x1659c5(0x1b7),_0x1659c5(0xaf)),_(this,_0x1659c5(0xba)),(_0x4458b8&&this[_0x1659c5(0x1c3)](_0x4458b8),this[_0x1659c5(0x213)][_0x1659c5(0xda)](()=>this[_0x1659c5(0x1c3)]({'hovered':!0x0})),this[_0x1659c5(0xa3)][_0x1659c5(0xda)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x4885bf(0x1c3)](_0x426870){const _0x58f34b=_0x4885bf;var _0x3b21dd,_0x2cd4b8,_0xc6fb43,_0x41f1ce,_0xfb5951,_0x75ac33;this[_0x58f34b(0xdc)]=(_0x3b21dd=_0x426870[_0x58f34b(0x331)])!=null?_0x3b21dd:this[_0x58f34b(0xdc)],this[_0x58f34b(0x126)]=(_0x2cd4b8=_0x426870[_0x58f34b(0x1c6)])!=null?_0x2cd4b8:this[_0x58f34b(0x126)],this[_0x58f34b(0x203)]=(_0xc6fb43=_0x426870['range'])!=null?_0xc6fb43:this[_0x58f34b(0x203)],this[_0x58f34b(0x26d)]=(_0x41f1ce=_0x426870[_0x58f34b(0x30b)])!=null?_0x41f1ce:this[_0x58f34b(0x26d)],this[_0x58f34b(0x1b7)]=(_0xfb5951=_0x426870[_0x58f34b(0x2d1)])!=null?_0xfb5951:this[_0x58f34b(0x1b7)],this[_0x58f34b(0xba)]=(_0x75ac33=_0x426870[_0x58f34b(0xc4)])!=null?_0x75ac33:this[_0x58f34b(0xba)],this[_0x58f34b(0x1e0)]({'width':_0x426870[_0x58f34b(0x132)],'height':_0x426870[_0x58f34b(0x2ad)]});}['onMouseMove'](_0x5e773b){const _0x1febe9=_0x4885bf,{row:_0x44e591,column:_0x31e7e6}=_0x5e773b;if(_0x44e591>=this[_0x1febe9(0x203)]['startRow']&&_0x44e591<=this[_0x1febe9(0x203)][_0x1febe9(0x25e)]&&_0x31e7e6>=this['_range'][_0x1febe9(0x17b)]&&_0x31e7e6<=this[_0x1febe9(0x203)][_0x1febe9(0x2a7)]){this[_0x1febe9(0x1c3)]({'hovered':!0x0});return;}this[_0x1febe9(0x1c3)]({'hovered':!0x1});}['triggerDblclick'](_0x4c06b4){return!0x1;}[_0x4885bf(0x274)](_0xae37e9){const _0x12138c=_0x4885bf;C[_0x12138c(0x28b)]['drawWith'](_0xae37e9,{'width':this[_0x12138c(0x132)],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x12138c(0xdc)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x12138c(0x126)]&&(_0xae37e9[_0x12138c(0x1d9)](),_0xae37e9['transform'](0x1,0x0,0x0,0x1,this[_0x12138c(0x132)],this[_0x12138c(0x1b7)]===_0x12138c(0x1d7)?0x0:-X),re[_0x12138c(0x173)](_0xae37e9,{'text':this[_0x12138c(0x26d)],'color':this[_0x12138c(0xdc)]}),_0xae37e9[_0x12138c(0x35b)]());}}var wt=Object[_0x4885bf(0xee)],yt=(_0x21de19,_0x1f8ecc,_0x122ae3,_0x11456a)=>{const _0x54d335=_0x4885bf;for(var _0x244630=_0x11456a>0x1?void 0x0:_0x11456a?wt(_0x1f8ecc,_0x122ae3):_0x1f8ecc,_0x238890=_0x21de19[_0x54d335(0x12a)]-0x1,_0x4ec455;_0x238890>=0x0;_0x238890--)(_0x4ec455=_0x21de19[_0x238890])&&(_0x244630=_0x4ec455(_0x244630)||_0x244630);return _0x244630;},ue=(_0x8e9d25,_0x21e8d0)=>(_0x6db396,_0x15d778)=>_0x21e8d0(_0x6db396,_0x15d778,_0x8e9d25);const $t=0x1389;let Ce=class extends a[_0x4885bf(0x1aa)]{constructor(_0x127c2f,_0x335159,_0x537926,_0x4de698){const _0x5f0507=_0x4885bf;super(),_(this,_0x5f0507(0x31b),new Set()),_(this,_0x5f0507(0x2e3),null),(this[_0x5f0507(0x302)]=_0x127c2f,this[_0x5f0507(0x327)]=_0x335159,this[_0x5f0507(0x12d)]=_0x537926,this[_0x5f0507(0x336)]=_0x4de698,this[_0x5f0507(0x2a5)]());}['_init'](){const _0x459be0=_0x4885bf;this[_0x459be0(0x327)][_0x459be0(0x16f)][_0x459be0(0x153)]($[_0x459be0(0x268)](this[_0x459be0(0x30f)]),$[_0x459be0(0xea)](_0xf62b16=>{const _0x51b9bf=_0x459be0;if(_0xf62b16){const _0x1c8a44=_0xf62b16['sheetId'];return I[_0x51b9bf(0x222)](this[_0x51b9bf(0x12d)][_0x51b9bf(0x232)](this['_context'][_0x51b9bf(0x276)]),this[_0x51b9bf(0x336)]['currentTheme$'])['pipe']($[_0x51b9bf(0x2d7)](([_0x1dea43,_0x2dfa99])=>{const _0x392840=new Map();return _0x1dea43['forEach']((_0x4c4e28,_0x767a86)=>{const _0x548aec=_0x30e5;if(_0x4c4e28[_0x548aec(0xf3)]===_0x1c8a44){const _0x4a6010={..._0x4c4e28};_0x4a6010['color']=this[_0x548aec(0x336)][_0x548aec(0x1c7)](_0x4c4e28[_0x548aec(0x331)]),_0x392840[_0x548aec(0x219)](_0x767a86,_0x4a6010);}}),{'skeleton':_0xf62b16,'cursors':_0x392840};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5079ac,cursors:_0x1e8ac2})=>{const _0x10600a=_0x459be0;this['_removeCollabCursors'](),_0x5079ac&&this[_0x10600a(0x214)](_0x5079ac,_0x1e8ac2);}),this[_0x459be0(0x327)][_0x459be0(0x16f)]['subscribe'](_0x41f0c4=>{const _0x51c058=_0x459be0;if(_0x41f0c4==null)return;const {skeleton:_0x3560e8}=_0x41f0c4,{scene:_0x13975b}=this[_0x51c058(0x302)];_0x13975b['onPointerMove$']['subscribeEvent'](a[_0x51c058(0xf6)](_0x1935a8=>{const _0x1d3efe=_0x51c058;var _0x5a105a,_0x208914;const {offsetX:_0x5f467d,offsetY:_0x458165}=_0x1935a8,{x:_0x219656,y:_0x420aba}=_0x13975b[_0x1d3efe(0x9d)](C[_0x1d3efe(0x20a)]['FromArray']([_0x5f467d,_0x458165])),{scaleX:_0x3f9cd8,scaleY:_0x17a834}=_0x13975b[_0x1d3efe(0x328)](),_0x343934=_0x13975b['getViewport'](C[_0x1d3efe(0x2dc)]['VIEW_MAIN']),_0x120588=_0x13975b[_0x1d3efe(0x120)](C[_0x1d3efe(0x20a)]['FromArray']([_0x219656,_0x420aba]),_0x343934),_0x7e3ae1=_0x3560e8[_0x1d3efe(0xb0)](_0x5f467d,_0x458165,_0x3f9cd8,_0x17a834,_0x120588);((_0x5a105a=this[_0x1d3efe(0x2e3)])==null?void 0x0:_0x5a105a[_0x1d3efe(0x304)])===_0x7e3ae1['column']&&((_0x208914=this[_0x1d3efe(0x2e3)])==null?void 0x0:_0x208914[_0x1d3efe(0x1b1)])===_0x7e3ae1[_0x1d3efe(0x1b1)]||this[_0x1d3efe(0x31b)][_0x1d3efe(0x28d)](_0x4ae97=>{const _0x42b17b=_0x1d3efe;_0x4ae97[_0x42b17b(0x1be)](_0x7e3ae1);});},0x64));});}[_0x4885bf(0x214)](_0x11425b,_0x380f85){const _0x5e6446=_0x4885bf;var _0x4bc2bc;const _0xae843a=(_0x4bc2bc=this[_0x5e6446(0x327)][_0x5e6446(0xb4)]())==null?void 0x0:_0x4bc2bc[_0x5e6446(0x1d4)];if(!_0xae843a)return;const _0x344803=this[_0x5e6446(0x2bb)]();if(!_0x344803)return;this[_0x5e6446(0x31b)][_0x5e6446(0x28d)](_0x1f5c05=>{_0x1f5c05['makeDirty']();});const {scene:_0xf211e7}=_0x344803,_0x522b27=xt(Array['from'](_0x380f85[_0x5e6446(0x194)]()))[_0x5e6446(0x2d7)](_0x5f00b0=>{const _0x5b8088=_0x5e6446,{color:_0x42f83a,range:_0x1738cc,name:_0x2c8f47,selection:_0x137cef,sheetID:_0x35e01a}=_0x5f00b0,{startColumn:_0x1fcb37,startRow:_0x22febe,endColumn:_0x4e486b,endRow:_0x41d552}=_0x1738cc,_0x1690d0=J[_0x5b8088(0x1a5)](_0x22febe,_0x1fcb37,_0xf211e7,_0xae843a),_0x3ced20=J[_0x5b8088(0x1a5)](_0x41d552,_0x4e486b,_0xf211e7,_0xae843a),{columnHeaderHeightAndMarginTop:_0x4d1990}=_0xae843a,{startX:_0x226d38,startY:_0x4c6604}=_0x1690d0,{endX:_0x175e65,endY:_0x3e15dc}=_0x3ced20,_0x25bfd9=_0x175e65-_0x226d38,_0x283fcd=_0x3e15dc-_0x4c6604,_0x3a9279={'labelPosition':_0x4c6604-_0x4d1990>=X?'top':_0x5b8088(0x1d7),'sheetID':_0x35e01a,'range':_0x1738cc,'color':_0x42f83a,'name':_0x2c8f47,'selection':_0x137cef,'left':_0x226d38,'top':_0x4c6604,'width':_0x25bfd9,'height':_0x283fcd,'evented':!0x1,'zIndex':$t};return new je(_0x2c8f47,_0x3a9279);});_0xf211e7[_0x5e6446(0x34c)](_0x522b27,At),this[_0x5e6446(0x31b)]=new Set(_0x522b27);}[_0x4885bf(0x254)](){const _0x3175dc=_0x4885bf;var _0x5c520f;(_0x5c520f=this[_0x3175dc(0x31b)])==null||_0x5c520f[_0x3175dc(0x28d)](_0x400486=>_0x400486['dispose']());}[_0x4885bf(0x2bb)](){const _0x36d1f9=_0x4885bf;return J[_0x36d1f9(0x18b)](this['_context']['unit'],this[_0x36d1f9(0x302)]);}};Ce=yt([ue(0x1,a[_0x4885bf(0xe0)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x4885bf(0xe0)](F)),ue(0x3,a[_0x4885bf(0xe0)](a[_0x4885bf(0x2b9)]))],Ce);function xt(_0x5bb7b5){const _0x54bf5c=_0x4885bf,_0x5b392d=new Map();return _0x5bb7b5['forEach'](_0x2cf05b=>{const _0x19cbaf=_0x30e5;if(_0x5b392d[_0x19cbaf(0x11b)](_0x2cf05b['selection'])){const _0x1c4b23=_0x5b392d[_0x19cbaf(0x1b8)](_0x2cf05b[_0x19cbaf(0x310)]);_0x1c4b23[_0x19cbaf(0x30b)]+=',\x20'+_0x2cf05b['name'];}else _0x5b392d[_0x19cbaf(0x219)](_0x2cf05b[_0x19cbaf(0x310)],_0x2cf05b);}),Array[_0x54bf5c(0x15e)](_0x5b392d[_0x54bf5c(0x194)]());}var Bt=Object[_0x4885bf(0xee)],Ft=(_0x45c182,_0x2c70ff,_0x5cbe98,_0xa1628e)=>{const _0x2253eb=_0x4885bf;for(var _0x21f192=_0xa1628e>0x1?void 0x0:_0xa1628e?Bt(_0x2c70ff,_0x5cbe98):_0x2c70ff,_0x424b3d=_0x45c182[_0x2253eb(0x12a)]-0x1,_0x1bf42d;_0x424b3d>=0x0;_0x424b3d--)(_0x1bf42d=_0x45c182[_0x424b3d])&&(_0x21f192=_0x1bf42d(_0x21f192)||_0x21f192);return _0x21f192;},y=(_0x4bfdcf,_0x3c9146)=>(_0x18ae6d,_0x524895)=>_0x3c9146(_0x18ae6d,_0x524895,_0x4bfdcf);let Z=class extends a['Disposable']{constructor(_0x5cc113,_0x1c1bb1,_0x5da883,_0x199eb4,_0x4e1522,_0x210ab5){const _0x3e07b2=_0x4885bf;super(),this[_0x3e07b2(0xc1)]=_0x5cc113,this[_0x3e07b2(0xf0)]=_0x1c1bb1,this[_0x3e07b2(0x22d)]=_0x5da883,this['_messageService']=_0x199eb4,this[_0x3e07b2(0x134)]=_0x4e1522,this['_localeService']=_0x210ab5,this['_setupBeforeClosingHandler'](),this[_0x3e07b2(0x296)]();}[_0x4885bf(0xc2)](){const _0x265e2f=_0x4885bf;this[_0x265e2f(0x354)](this['_beforeCloseService'][_0x265e2f(0x318)](()=>{const _0x3716b1=_0x265e2f;if(this['_localCacheService']['saveTaskMap']['size'])return this[_0x3716b1(0x1ac)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x4885bf(0x296)](){const _0x5c26fa=_0x4885bf;this[_0x5c26fa(0x354)](this[_0x5c26fa(0x22d)][_0x5c26fa(0x31c)][_0x5c26fa(0x22c)](_0x8cb3b4=>{const _0x1396b1=_0x5c26fa;_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0x1fc)]&&this[_0x1396b1(0x19a)]['show']({'type':T[_0x1396b1(0x1d8)]['Warning'],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x2fa))}),_0x8cb3b4['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x1396b1(0x19a)][_0x1396b1(0x9f)]({'type':T[_0x1396b1(0x1d8)][_0x1396b1(0x9c)],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x103))}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0xab)]&&this[_0x1396b1(0x134)][_0x1396b1(0x9f)]({'title':this[_0x1396b1(0x1ac)]['t']('permission.title'),'content':this[_0x1396b1(0x1ac)]['t']('permission.content'),'type':_0x1396b1(0x1d5),'duration':0x0}),_0x8cb3b4['id']===u['CollaborationUIEventId'][_0x1396b1(0x2f5)]&&this['_messageService'][_0x1396b1(0x9f)]({'type':T[_0x1396b1(0x1d8)][_0x1396b1(0xf7)],'content':this['_localeService']['t'](_0x1396b1(0x103))+'('+_0x8cb3b4['data']+')'}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0x211)]&&this[_0x1396b1(0x19a)][_0x1396b1(0x9f)]({'type':T['MessageType'][_0x1396b1(0x9c)],'content':this[_0x1396b1(0x1ac)]['t'](_0x8cb3b4['data']||'')}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0x267)]&&this['_messageService']['show']({'type':T[_0x1396b1(0x1d8)][_0x1396b1(0x9c)],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x124))}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0xa4)]&&this['_messageService'][_0x1396b1(0x9f)]({'type':T['MessageType'][_0x1396b1(0xf7)],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x1ef))}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0x175)]&&this[_0x1396b1(0x19a)][_0x1396b1(0x9f)]({'type':T[_0x1396b1(0x1d8)][_0x1396b1(0xf7)],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x107))});}));}};function _0x30e5(_0x15d732,_0x132a4d){const _0x77824c=_0x7782();return _0x30e5=function(_0x30e529,_0x446923){_0x30e529=_0x30e529-0x8e;let _0x692666=_0x77824c[_0x30e529];return _0x692666;},_0x30e5(_0x15d732,_0x132a4d);}Z=Ft([y(0x0,O[_0x4885bf(0x168)]),y(0x1,u[_0x4885bf(0x281)]),y(0x2,a[_0x4885bf(0xe0)](u[_0x4885bf(0x34b)])),y(0x3,O[_0x4885bf(0x255)]),y(0x4,O[_0x4885bf(0x12c)]),y(0x5,a[_0x4885bf(0xe0)](a[_0x4885bf(0xcb)]))],Z);var jt=Object[_0x4885bf(0xee)],kt=(_0x5b00ff,_0x846123,_0x9a1993,_0x26e088)=>{const _0x52b99d=_0x4885bf;for(var _0x31600f=_0x26e088>0x1?void 0x0:_0x26e088?jt(_0x846123,_0x9a1993):_0x846123,_0x18dd42=_0x5b00ff[_0x52b99d(0x12a)]-0x1,_0x4d8ec1;_0x18dd42>=0x0;_0x18dd42--)(_0x4d8ec1=_0x5b00ff[_0x18dd42])&&(_0x31600f=_0x4d8ec1(_0x31600f)||_0x31600f);return _0x31600f;},z=(_0x528c83,_0x4f92aa)=>(_0x20ba6a,_0xc8dd71)=>_0x4f92aa(_0x20ba6a,_0xc8dd71,_0x528c83);let Q=class extends a['Disposable']{constructor(_0x3587b0,_0x3f9d39,_0x23f212,_0x5916b8){const _0x89991f=_0x4885bf;super(),_(this,_0x89991f(0x28e)),(this[_0x89991f(0x17e)]=_0x3587b0,this[_0x89991f(0x195)]=_0x3f9d39,this['_logService']=_0x23f212,this['_collaborationSessionService']=_0x5916b8,this[_0x89991f(0x2a5)]());}[_0x4885bf(0x2a5)](){const _0x3d744d=_0x4885bf;this[_0x3d744d(0x24f)](),this[_0x3d744d(0x204)](),this[_0x3d744d(0x2af)](),this['_initUserListener']();}[_0x4885bf(0x359)](){const _0x2daa03=_0x4885bf;this[_0x2daa03(0x354)](this['_collaborationSessionService'][_0x2daa03(0x294)][_0x2daa03(0x22c)](_0x45e5f1=>{const _0x5eca73=_0x2daa03;this[_0x5eca73(0x28e)]=_0x45e5f1==null?void 0x0:_0x45e5f1[_0x5eca73(0x187)];}));}[_0x4885bf(0x24f)](){const _0x2e5769=_0x4885bf,_0xfa2439=_0x20b589=>{const _0x10da87=_0x30e5;var _0x4069c8;this[_0x10da87(0x353)]('error','[Window\x20Error]:\x20'+_0x20b589['message']+_0x10da87(0x32b)+_0x20b589[_0x10da87(0x12b)]+':'+_0x20b589[_0x10da87(0x21b)]+':'+_0x20b589[_0x10da87(0x13d)]+'\x0a'+(((_0x4069c8=_0x20b589[_0x10da87(0x1d5)])==null?void 0x0:_0x4069c8[_0x10da87(0x22f)])||''));};window['addEventListener'](_0x2e5769(0x1d5),_0xfa2439),this[_0x2e5769(0x354)](()=>{const _0x5d13b7=_0x2e5769;window[_0x5d13b7(0x2a8)](_0x5d13b7(0x1d5),_0xfa2439);});}[_0x4885bf(0x204)](){const _0x59bb0e=_0x4885bf,_0x4cc34a=_0x194d2f=>{const _0x130b52=_0x30e5;this[_0x130b52(0x353)]('error',_0x130b52(0x11a)+_0x194d2f[_0x130b52(0xb7)]);};window[_0x59bb0e(0x29c)]('unhandledrejection',_0x4cc34a),this[_0x59bb0e(0x354)](()=>{const _0x334a4c=_0x59bb0e;window[_0x334a4c(0x2a8)](_0x334a4c(0x2b0),_0x4cc34a);});}[_0x4885bf(0x2af)](){const _0x445ad7=_0x4885bf,_0x5e7d4f=this[_0x445ad7(0x1ed)]['error'][_0x445ad7(0x14f)](this['_logService']);this['_logService']['error']=(..._0x3ab552)=>{const _0x337094=_0x445ad7,_0x502f20=_0x3ab552[_0x337094(0x2d7)](_0x5e0ea8=>_0x5e0ea8 instanceof Error?_0x5e0ea8[_0x337094(0xdb)]+'\x0a'+_0x5e0ea8[_0x337094(0x22f)]:String(_0x5e0ea8))[_0x337094(0x146)]('\x20');this['_uploadLog'](_0x337094(0x1d5),_0x337094(0x172)+_0x502f20),_0x5e7d4f(..._0x3ab552);},this['disposeWithMe'](()=>{const _0x75a5ce=_0x445ad7;this[_0x75a5ce(0x1ed)]['error']=_0x5e7d4f;});}[_0x4885bf(0x353)](_0x26d1f5,_0x1b0131){const _0xaa9a85=_0x4885bf;try{const _0x391c9f={'userId':this['_memberID'],'logLabel':_0x26d1f5,'content':_0x1b0131};this['_httpService'][_0xaa9a85(0x17c)](_0xaa9a85(0x347),{'body':_0x391c9f})[_0xaa9a85(0x223)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),z(0x1,a[_0x4885bf(0xe0)](x[_0x4885bf(0x358)])),z(0x2,a['ILogService']),z(0x3,a[_0x4885bf(0xe0)](u[_0x4885bf(0x307)]))],Q);const Yt=_0x4885bf(0x23c),Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x20fbf5,_0x214c11,_0x2c2b98,_0x34bf3c)=>{const _0x2264ec=_0x4885bf;for(var _0x590db9=_0x34bf3c>0x1?void 0x0:_0x34bf3c?Ht(_0x214c11,_0x2c2b98):_0x214c11,_0x152c14=_0x20fbf5[_0x2264ec(0x12a)]-0x1,_0xcf2a9;_0x152c14>=0x0;_0x152c14--)(_0xcf2a9=_0x20fbf5[_0x152c14])&&(_0x590db9=_0xcf2a9(_0x590db9)||_0x590db9);return _0x590db9;},Ae=(_0x7be90d,_0x2f394f)=>(_0x390bb3,_0x29cfa4)=>_0x2f394f(_0x390bb3,_0x29cfa4,_0x7be90d);let ee=class{constructor(_0xfb6b4e,_0x22d3ca){const _0x52ad87=_0x4885bf;this[_0x52ad87(0x148)]=_0xfb6b4e,this[_0x52ad87(0x342)]=_0x22d3ca;}['transformIMECache'](_0x40401b){const _0x4b78ec=_0x4885bf;this['_transformUndoRedoStack'](_0x40401b),this[_0x4b78ec(0x2de)](_0x40401b);}[_0x4885bf(0x2d6)](_0x89e1aa){const _0x4a769c=_0x4885bf,{unitID:_0x100e67}=_0x89e1aa,_0x1ed4ab=this[_0x4a769c(0x342)]['getRenderById'](_0x100e67)['with'](p[_0x4a769c(0xb2)]),{redoCache:_0x33e993}=_0x1ed4ab['getUndoRedoMutationParamsCache']();if(_0x33e993[_0x4a769c(0x12a)]===0x0)return _0x89e1aa;let _0x505d01=a['Tools'][_0x4a769c(0x149)](_0x89e1aa[_0x4a769c(0x110)][0x0]);for(let _0x1fc781=0x0;_0x1fc781<_0x33e993[_0x4a769c(0x12a)];_0x1fc781++){const _0x4c9dde={'id':_0x4a769c(0x2d0),'params':{..._0x33e993[_0x1fc781]}},_0x171cbd=this[_0x4a769c(0x148)]['transformMutation'](_0x505d01,_0x4c9dde,!0x1);if(g[_0x4a769c(0x2b6)](_0x171cbd))throw _0x171cbd[_0x4a769c(0x1d5)];_0x505d01=_0x171cbd[_0x4a769c(0x16b)];}return{...a[_0x4a769c(0xe3)]['deepClone'](_0x89e1aa),'mutations':[_0x505d01]};}[_0x4885bf(0x16c)](_0x132a6b){const _0x13227c=_0x4885bf,{unitID:_0x5566e3}=_0x132a6b,_0x144cb0=this['_renderManagerService'][_0x13227c(0x1c4)](_0x5566e3)[_0x13227c(0x19f)](p[_0x13227c(0xb2)]),{undoCache:_0x1c843e,redoCache:_0x5cd801}=_0x144cb0[_0x13227c(0x349)]();if(_0x1c843e[_0x13227c(0x12a)]===0x0||_0x5cd801[_0x13227c(0x12a)]===0x0)return;const _0x2dda96=[],_0x1be4e9=[];let _0x46b575=a['Tools'][_0x13227c(0x149)](_0x132a6b['mutations'][0x0]),_0xcff5ce=a[_0x13227c(0xe3)][_0x13227c(0x149)](_0x132a6b[_0x13227c(0x110)][0x0]);for(let _0x44cef7=_0x1c843e[_0x13227c(0x12a)]-0x1;_0x44cef7>=0x0;_0x44cef7--){const _0x5c7b3d={'id':'doc.mutation.rich-text-editing','params':{..._0x1c843e[_0x44cef7]}},_0xf89245={'id':'doc.mutation.rich-text-editing','params':{..._0x5cd801[_0x44cef7]}},_0x1134f0=this[_0x13227c(0x148)][_0x13227c(0x293)](_0x46b575,_0x5c7b3d,!0x1),_0x2282b0=this[_0x13227c(0x148)]['transformMutation'](_0xcff5ce,_0xf89245,!0x1);if(g[_0x13227c(0x2b6)](_0x1134f0))throw _0x1134f0['error'];if(g[_0x13227c(0x2b6)](_0x2282b0))throw _0x2282b0[_0x13227c(0x1d5)];_0x2dda96[_0x13227c(0x18f)](_0x1134f0[_0x13227c(0x2c5)][_0x13227c(0x215)]),_0x1be4e9[_0x13227c(0x18f)](_0x2282b0[_0x13227c(0x2c5)][_0x13227c(0x215)]),_0x46b575=_0x1134f0[_0x13227c(0x16b)],_0xcff5ce=_0x2282b0[_0x13227c(0x16b)];}_0x144cb0['setUndoRedoMutationParamsCache']({'undoCache':_0x2dda96,'redoCache':_0x1be4e9});}[_0x4885bf(0x2de)](_0x1e99cc){const _0x265279=_0x4885bf,{unitID:_0x5cbe50}=_0x1e99cc,_0x470b2e=this[_0x265279(0x342)][_0x265279(0x1c4)](_0x5cbe50)['with'](p[_0x265279(0xb2)]),_0x2deb81=_0x470b2e[_0x265279(0xbc)]();if(_0x2deb81==null)return;const _0x37a406=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1e99cc[_0x265279(0x143)],'actions':null,'textRanges':[_0x2deb81]}}],_0x4b3b62=this[_0x265279(0x148)][_0x265279(0x1f8)](_0x1e99cc,_0x37a406);if(!g[_0x265279(0x117)](_0x4b3b62))throw _0x4b3b62[_0x265279(0x1d5)];const _0x99c3e6=_0x4b3b62[_0x265279(0x2c5)][0x0]['params'][_0x265279(0x122)];Array[_0x265279(0x2cd)](_0x99c3e6)&&_0x99c3e6[_0x265279(0x12a)]&&_0x470b2e[_0x265279(0x163)](_0x99c3e6[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C['IRenderManagerService'])],ee);var Vt=Object[_0x4885bf(0xee)],Gt=(_0x21ce5b,_0x543a1b,_0x3c9d57,_0x4a3244)=>{const _0x479f3b=_0x4885bf;for(var _0x5a01db=_0x4a3244>0x1?void 0x0:_0x4a3244?Vt(_0x543a1b,_0x3c9d57):_0x543a1b,_0x677d8c=_0x21ce5b[_0x479f3b(0x12a)]-0x1,_0x453ebc;_0x677d8c>=0x0;_0x677d8c--)(_0x453ebc=_0x21ce5b[_0x677d8c])&&(_0x5a01db=_0x453ebc(_0x5a01db)||_0x5a01db);return _0x5a01db;},Ie=(_0x5c4d1d,_0xbefc05)=>(_0x103719,_0x1212a2)=>_0xbefc05(_0x103719,_0x1212a2,_0x5c4d1d);let te=class{constructor(_0x18ea12,_0x394b16,_0x35d377){const _0xe6f19=_0x4885bf;this[_0xe6f19(0x17e)]=_0x18ea12,this['_transformService']=_0x394b16,this[_0xe6f19(0x24b)]=_0x35d377;}[_0x4885bf(0x10c)](_0x3eb7ac){const _0x245bdb=_0x4885bf;this[_0x245bdb(0x218)](_0x3eb7ac);}[_0x4885bf(0x2d6)](_0x48721e){const _0x5c210a=_0x4885bf,{unitID:_0x30f9ee}=_0x48721e,{collaboration:_0x6195f4}=this[_0x5c210a(0x24b)][_0x5c210a(0x181)](_0x30f9ee);if(_0x6195f4[_0x5c210a(0x12a)]===0x0)return _0x48721e;let _0xe0d423=a[_0x5c210a(0xe3)][_0x5c210a(0x149)](_0x48721e[_0x5c210a(0x110)][0x0]);for(let _0x2691b8=0x0;_0x2691b8<_0x6195f4['length'];_0x2691b8++){const _0x57fbc6={'id':_0x5c210a(0x2d0),'params':{'unitId':_0x6195f4[_0x2691b8][_0x5c210a(0x276)],..._0x6195f4[_0x2691b8][_0x5c210a(0x2bf)]}},_0x6071c6=this[_0x5c210a(0x148)][_0x5c210a(0x293)](_0xe0d423,_0x57fbc6,!0x1);if(g['isTransformMutationFailure'](_0x6071c6))throw _0x6071c6[_0x5c210a(0x1d5)];_0xe0d423=_0x6071c6[_0x5c210a(0x16b)];}return{...a[_0x5c210a(0xe3)]['deepClone'](_0x48721e),'mutations':[_0xe0d423]};}[_0x4885bf(0x218)](_0x2e1401){const _0x35afc0=_0x4885bf,{unitID:_0x1aee32}=_0x2e1401,{history:_0x485f00,collaboration:_0x57d5df}=this[_0x35afc0(0x24b)][_0x35afc0(0x181)](_0x1aee32);if(_0x485f00['length']===0x0&&_0x57d5df['length']===0x0)return;const _0x567774=[],_0x1af50b=[];let _0xf9bcf8=a[_0x35afc0(0xe3)][_0x35afc0(0x149)](_0x2e1401[_0x35afc0(0x110)][0x0]),_0x256ad1=a[_0x35afc0(0xe3)][_0x35afc0(0x149)](_0x2e1401[_0x35afc0(0x110)][0x0]);for(let _0x1477a2=_0x485f00[_0x35afc0(0x12a)]-0x1;_0x1477a2>=0x0;_0x1477a2--){const _0x23094b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x485f00[_0x1477a2][_0x35afc0(0x276)],..._0x485f00[_0x1477a2][_0x35afc0(0x1dc)]}},_0x45531a={'id':_0x35afc0(0x2d0),'params':{'unitId':_0x485f00[_0x1477a2][_0x35afc0(0x276)],..._0x485f00[_0x1477a2]['redoState']}},_0x26023c=this['_transformService'][_0x35afc0(0x293)](_0xf9bcf8,_0x23094b,!0x1),_0x26af69=this[_0x35afc0(0x148)]['transformMutation'](_0x256ad1,_0x45531a,!0x1);if(g['isTransformMutationFailure'](_0x26023c))throw _0x26023c[_0x35afc0(0x1d5)];if(g[_0x35afc0(0x2b6)](_0x26af69))throw _0x26af69['error'];_0x567774[_0x35afc0(0x18f)]({..._0x485f00[_0x1477a2],'undoState':_0x26023c[_0x35afc0(0x2c5)][_0x35afc0(0x215)],'redoState':_0x26af69[_0x35afc0(0x2c5)]['params']}),_0xf9bcf8=_0x26023c['m1Prime'],_0x256ad1=_0x26af69[_0x35afc0(0x16b)];}_0xf9bcf8=a[_0x35afc0(0xe3)][_0x35afc0(0x149)](_0x2e1401[_0x35afc0(0x110)][0x0]),_0x256ad1=a[_0x35afc0(0xe3)]['deepClone'](_0x2e1401[_0x35afc0(0x110)][0x0]);for(let _0x37130e=_0x57d5df[_0x35afc0(0x12a)]-0x1;_0x37130e>=0x0;_0x37130e--){const _0x1a70e3={'id':_0x35afc0(0x2d0),'params':{'unitId':_0x57d5df[_0x37130e]['unitId'],..._0x57d5df[_0x37130e][_0x35afc0(0x1dc)]}},_0x3f5789={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x57d5df[_0x37130e][_0x35afc0(0x276)],..._0x57d5df[_0x37130e]['redoState']}},_0x25f400=this[_0x35afc0(0x148)][_0x35afc0(0x293)](_0xf9bcf8,_0x1a70e3,!0x1),_0x1be746=this['_transformService'][_0x35afc0(0x293)](_0x256ad1,_0x3f5789,!0x1);if(g[_0x35afc0(0x2b6)](_0x25f400))throw _0x25f400[_0x35afc0(0x1d5)];if(g[_0x35afc0(0x2b6)](_0x1be746))throw _0x1be746['error'];_0x1af50b[_0x35afc0(0x18f)]({..._0x57d5df[_0x37130e],'undoState':_0x25f400['m2Prime'][_0x35afc0(0x215)],'redoState':_0x1be746[_0x35afc0(0x2c5)][_0x35afc0(0x215)]}),_0xf9bcf8=_0x25f400[_0x35afc0(0x16b)],_0x256ad1=_0x1be746[_0x35afc0(0x16b)];}this[_0x35afc0(0x24b)][_0x35afc0(0x233)](_0x1aee32,{'history':_0x567774,'collaboration':_0x1af50b});}};te=Gt([Ie(0x0,a['Inject'](a[_0x4885bf(0x199)])),Ie(0x1,g['ITransformService']),Ie(0x2,a[_0x4885bf(0xe0)](p[_0x4885bf(0x244)]))],te);var Xt=Object[_0x4885bf(0xee)],Kt=(_0x45a734,_0x1b0554,_0x3ff6c9,_0x5981ef)=>{const _0x172a03=_0x4885bf;for(var _0x486065=_0x5981ef>0x1?void 0x0:_0x5981ef?Xt(_0x1b0554,_0x3ff6c9):_0x1b0554,_0x27c4d1=_0x45a734[_0x172a03(0x12a)]-0x1,_0x149925;_0x27c4d1>=0x0;_0x27c4d1--)(_0x149925=_0x45a734[_0x27c4d1])&&(_0x486065=_0x149925(_0x486065)||_0x486065);return _0x486065;},Pe=(_0x145db4,_0x55698a)=>(_0x26c816,_0x368a58)=>_0x55698a(_0x26c816,_0x368a58,_0x145db4);let se=class{constructor(_0x43d244,_0x6cbeb){const _0x2834b0=_0x4885bf;this[_0x2834b0(0x17e)]=_0x43d244,this[_0x2834b0(0x148)]=_0x6cbeb;}[_0x4885bf(0x202)](_0xb59212){const _0x56f5ca=_0x4885bf;var _0x220248;const _0x7ee17a=this[_0x56f5ca(0x17e)][_0x56f5ca(0x1b8)](V[_0x56f5ca(0xe6)]),_0x513a68=(_0x220248=_0x7ee17a[_0x56f5ca(0x263)]())!=null?_0x220248:[];if(_0x513a68[_0x56f5ca(0x12a)]===0x0)return;const _0x5b8d62=_0xb59212[_0x56f5ca(0x143)],_0x39b64c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5b8d62,'actions':null,'textRanges':_0x513a68}}],_0x59fee2=this[_0x56f5ca(0x148)][_0x56f5ca(0x1f8)](_0xb59212,_0x39b64c);if(!g['isTransformMutationsWithChangesetSuccess'](_0x59fee2))throw _0x59fee2[_0x56f5ca(0x1d5)];const _0x54b3f2=_0x59fee2[_0x56f5ca(0x2c5)][0x0][_0x56f5ca(0x215)][_0x56f5ca(0x122)];Array[_0x56f5ca(0x2cd)](_0x54b3f2)&&_0x54b3f2[_0x56f5ca(0x12a)]&&_0x7ee17a[_0x56f5ca(0x275)](_0x54b3f2,{'unitId':_0x5b8d62,'subUnitId':_0x5b8d62},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x4885bf(0x199)])),Pe(0x1,g[_0x4885bf(0x29a)])],se);var qt=Object[_0x4885bf(0xee)],zt=(_0x4bd1e2,_0x41b40c,_0x14db13,_0xae68d6)=>{const _0x405299=_0x4885bf;for(var _0x11fdfb=_0xae68d6>0x1?void 0x0:_0xae68d6?qt(_0x41b40c,_0x14db13):_0x41b40c,_0x5162cf=_0x4bd1e2[_0x405299(0x12a)]-0x1,_0x50ad8d;_0x5162cf>=0x0;_0x5162cf--)(_0x50ad8d=_0x4bd1e2[_0x5162cf])&&(_0x11fdfb=_0x50ad8d(_0x11fdfb)||_0x11fdfb);return _0x11fdfb;},N=(_0xe471ae,_0x4c5f01)=>(_0x2d4a00,_0x1260c4)=>_0x4c5f01(_0x2d4a00,_0x1260c4,_0xe471ae);let ie=class extends a['Disposable']{constructor(_0x5c8103,_0x24092b,_0x220d8a,_0x448a24,_0x52dafe,_0xae90e4,_0x28c7a4,_0x4c3389){const _0x2199ba=_0x4885bf;super(),_(this,_0x2199ba(0x14d),new I['BehaviorSubject'](u[_0x2199ba(0x30d)][_0x2199ba(0x333)])),(this[_0x2199ba(0x24b)]=_0x5c8103,this[_0x2199ba(0x136)]=_0x24092b,this['_docTransformIMECacheService']=_0x220d8a,this[_0x2199ba(0x27a)]=_0x448a24,this['_docTransformSelectionsService']=_0x52dafe,this[_0x2199ba(0x190)]=_0xae90e4,this[_0x2199ba(0x19a)]=_0x28c7a4,this[_0x2199ba(0x1ac)]=_0x4c3389,this[_0x2199ba(0x19c)]());}[_0x4885bf(0x19c)](){const _0x135742=_0x4885bf;this[_0x135742(0x354)](this[_0x135742(0x136)][_0x135742(0xb3)][_0x135742(0x22c)](_0x24db24=>{const _0x5aecc4=_0x135742,_0x468f68=this[_0x5aecc4(0x24b)][_0x5aecc4(0x1bc)][_0x5aecc4(0x22c)](_0x3c78de=>{const _0x293bde=_0x5aecc4;if(_0x3c78de==null)return;const {unitId:_0x4a706f,redoState:_0x3e7f67,commandId:_0x54e81a}=_0x3c78de;if(_0x4a706f!==_0x24db24['unitID'])return;const _0x5b9b58={'id':_0x54e81a,'type':a['CommandType'][_0x293bde(0x292)],'params':{'unitId':_0x4a706f,'actions':_0x3e7f67[_0x293bde(0x24c)],'textRanges':null}};_0x24db24[_0x293bde(0x32c)](_0x5b9b58);});if(_0x24db24['disposeWithMe'](_0x468f68),_0x24db24 instanceof u['DocCollaborationEntity']){const _0x5c2a61={'onTransformIME':_0x36b0f5=>this[_0x5aecc4(0x315)]['transformIMECache'](_0x36b0f5),'onTransformState':_0x52b611=>this['_docTransformStateCacheService'][_0x5aecc4(0x10c)](_0x52b611),'onTransformSelections':_0x26aa09=>this[_0x5aecc4(0x2e6)][_0x5aecc4(0x202)](_0x26aa09),'onSyncEditingCollabCursor':_0x2cfd77=>this[_0x5aecc4(0x190)][_0x5aecc4(0x285)](_0x2cfd77),'onTransformRemoteChangesetByIMECache':_0x1f9a40=>this['_docTransformIMECacheService'][_0x5aecc4(0x2d6)](_0x1f9a40),'onTransformRemoteChangesetByStateCache':_0x2d4051=>this[_0x5aecc4(0x27a)][_0x5aecc4(0x2d6)](_0x2d4051)};_0x24db24['addHandlerCallback'](_0x5c2a61);}}));}};ie=zt([N(0x0,a['Inject'](p[_0x4885bf(0x244)])),N(0x1,a[_0x4885bf(0xe0)](u[_0x4885bf(0x357)])),N(0x2,a[_0x4885bf(0xe0)](ee)),N(0x3,a[_0x4885bf(0xe0)](te)),N(0x4,a[_0x4885bf(0xe0)](se)),N(0x5,a['Inject'](be)),N(0x6,O['IMessageService']),N(0x7,a[_0x4885bf(0xe0)](a[_0x4885bf(0xcb)]))],ie);var G=(_0x12104e=>(_0x12104e[_0x12104e[_0x4885bf(0x314)]=0x0]=_0x4885bf(0x314),_0x12104e[_0x12104e['OK']=0x1]='OK',_0x12104e[_0x12104e[_0x4885bf(0xf8)]=0x2]=_0x4885bf(0xf8),_0x12104e[_0x12104e[_0x4885bf(0xab)]=0x3]=_0x4885bf(0xab),_0x12104e[_0x12104e[_0x4885bf(0x309)]=0x4]=_0x4885bf(0x309),_0x12104e[_0x12104e[_0x4885bf(0x253)]=0x5]=_0x4885bf(0x253),_0x12104e[_0x12104e[_0x4885bf(0x291)]=0x6]=_0x4885bf(0x291),_0x12104e[_0x12104e['INVALID_ARGUMENT']=0x7]=_0x4885bf(0x33c),_0x12104e[_0x12104e[_0x4885bf(0x1c2)]=0x8]='TOO_MANY_REQUESTS',_0x12104e[_0x12104e['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x12104e[_0x12104e[_0x4885bf(0x225)]=0xa]=_0x4885bf(0x225),_0x12104e[_0x12104e['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x12104e[_0x12104e['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x4885bf(0x178),_0x12104e[_0x12104e[_0x4885bf(0x2d8)]=0xd]=_0x4885bf(0x2d8),_0x12104e[_0x12104e[_0x4885bf(0xfe)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x12104e[_0x12104e[_0x4885bf(0x298)]=0xf]=_0x4885bf(0x298),_0x12104e[_0x12104e[_0x4885bf(0x1ba)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x12104e[_0x12104e[_0x4885bf(0xcc)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x12104e[_0x12104e['ERROR_AGAIN']=0x65]=_0x4885bf(0x158),_0x12104e[_0x12104e[_0x4885bf(0xac)]=0xc9]=_0x4885bf(0xac),_0x12104e[_0x12104e[_0x4885bf(0x91)]=0xca]='USER_IS_ANONYMOUS',_0x12104e[_0x12104e[_0x4885bf(0x329)]=0x1389]=_0x4885bf(0x329),_0x12104e[_0x12104e[_0x4885bf(0x176)]=0x1771]=_0x4885bf(0x176),_0x12104e[_0x12104e['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4885bf(0x278),_0x12104e[_0x12104e[_0x4885bf(0x131)]=0x1773]=_0x4885bf(0x131),_0x12104e[_0x12104e['APPLY_REJECT']=0x1b59]=_0x4885bf(0xef),_0x12104e[_0x12104e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4885bf(0x334),_0x12104e[_0x12104e[_0x4885bf(0xfa)]=0x1b5b]=_0x4885bf(0xfa),_0x12104e[_0x12104e[_0x4885bf(0x1ad)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x12104e[_0x12104e[_0x4885bf(0x33b)]=0x1b5d]='APPLY_DUPLICATED',_0x12104e[_0x12104e[_0x4885bf(0x93)]=0x1f41]=_0x4885bf(0x93),_0x12104e[_0x12104e['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x12104e[_0x12104e[_0x4885bf(0x25c)]=0x232a]=_0x4885bf(0x25c),_0x12104e[_0x12104e['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4885bf(0x2be),_0x12104e[_0x12104e['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x4885bf(0x9e),_0x12104e[_0x12104e[_0x4885bf(0x1fd)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x12104e[_0x12104e['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4885bf(0x24e),_0x12104e[_0x12104e[_0x4885bf(0x234)]=0x2712]=_0x4885bf(0x234),_0x12104e[_0x12104e[_0x4885bf(0x22a)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x12104e[_0x12104e[_0x4885bf(0x2d3)]=0x2714]=_0x4885bf(0x2d3),_0x12104e[_0x12104e[_0x4885bf(0x130)]=0x271a]=_0x4885bf(0x130),_0x12104e[_0x12104e[_0x4885bf(0x1d6)]=0x271b]=_0x4885bf(0x1d6),_0x12104e[_0x12104e[_0x4885bf(0x248)]=0x271c]=_0x4885bf(0x248),_0x12104e[_0x12104e['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x4885bf(0x282),_0x12104e[_0x12104e[_0x4885bf(0xbf)]=0x271e]=_0x4885bf(0xbf),_0x12104e[_0x12104e[_0x4885bf(0x1b6)]=0x271f]=_0x4885bf(0x1b6),_0x12104e[_0x12104e['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x4885bf(0x280),_0x12104e[_0x12104e['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x12104e[_0x12104e[_0x4885bf(0x113)]=0x2ee1]=_0x4885bf(0x113),_0x12104e[_0x12104e[_0x4885bf(0x8f)]=0x2ee2]=_0x4885bf(0x8f),_0x12104e[_0x12104e[_0x4885bf(0x154)]=0x2ee3]=_0x4885bf(0x154),_0x12104e[_0x12104e[_0x4885bf(0x2b3)]=0x2ee4]=_0x4885bf(0x2b3),_0x12104e[_0x12104e['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x12104e[_0x12104e[_0x4885bf(0x245)]=0x32c9]=_0x4885bf(0x245),_0x12104e[_0x12104e[_0x4885bf(0x9a)]=0x32ca]=_0x4885bf(0x9a),_0x12104e[_0x12104e[_0x4885bf(0x1ee)]=0x32cb]=_0x4885bf(0x1ee),_0x12104e[_0x12104e['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x4885bf(0xfd),_0x12104e[_0x12104e[_0x4885bf(0x170)]=0x36b2]=_0x4885bf(0x170),_0x12104e[_0x12104e[_0x4885bf(0x23e)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x12104e[_0x12104e['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x4885bf(0x262),_0x12104e[_0x12104e[_0x4885bf(0x272)]=0x3715]=_0x4885bf(0x272),_0x12104e[_0x12104e[_0x4885bf(0x11f)]=0x3716]=_0x4885bf(0x11f),_0x12104e[_0x12104e[_0x4885bf(0x20e)]=0x3717]=_0x4885bf(0x20e),_0x12104e[_0x12104e[_0x4885bf(0x1e9)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x12104e[_0x12104e['REDEMPTION_INVALID_CODE']=0x3a99]=_0x4885bf(0x1d1),_0x12104e[_0x12104e['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x4885bf(0x346),_0x12104e[_0x12104e[_0x4885bf(0xa5)]=0x3a9b]=_0x4885bf(0xa5),_0x12104e[_0x12104e['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x4885bf(0x2fe),_0x12104e[_0x12104e[_0x4885bf(0x24d)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x12104e[_0x12104e[_0x4885bf(0x2b7)]=0x3a9e]=_0x4885bf(0x2b7),_0x12104e[_0x12104e[_0x4885bf(0x231)]=0x3a9f]=_0x4885bf(0x231),_0x12104e[_0x12104e[_0x4885bf(0x2f9)]=0x3e81]=_0x4885bf(0x2f9),_0x12104e[_0x12104e[_0x4885bf(0x352)]=-0x1]=_0x4885bf(0x352),_0x12104e))(G||{});function Jt(_0x59a988){const _0x587a7a=_0x4885bf;var _0xeca54c,_0x18009d;const _0x3a9040=(_0xeca54c=_0x59a988[_0x587a7a(0x20b)])==null?void 0x0:_0xeca54c[_0x587a7a(0x24a)],_0x375b93=((_0x18009d=_0x59a988[_0x587a7a(0x20b)])==null?void 0x0:_0x18009d[_0x587a7a(0x2c0)])||0x0;return _0x3a9040===B[_0x587a7a(0x18a)][_0x587a7a(0xca)]&&_0x375b93>0x0;}function Zt(_0x591010){const _0x2e38eb=_0x4885bf;return _0x591010[_0x2e38eb(0x356)]===B[_0x2e38eb(0x2ff)][_0x2e38eb(0x2f8)];}var Qt=Object[_0x4885bf(0xee)],es=(_0x40e0ac,_0x317692,_0x35023b,_0x50a8c2)=>{for(var _0x2e937e=_0x50a8c2>0x1?void 0x0:_0x50a8c2?Qt(_0x317692,_0x35023b):_0x317692,_0xab1f23=_0x40e0ac['length']-0x1,_0x2329c0;_0xab1f23>=0x0;_0xab1f23--)(_0x2329c0=_0x40e0ac[_0xab1f23])&&(_0x2e937e=_0x2329c0(_0x2e937e)||_0x2e937e);return _0x2e937e;},L=(_0x5221bc,_0x5676a1)=>(_0x52cc13,_0x5b4a12)=>_0x5676a1(_0x52cc13,_0x5b4a12,_0x5221bc);const ts=_0x4885bf(0x165),ss=_0x4885bf(0x162),is=_0x4885bf(0x1e6);let ne=class extends a[_0x4885bf(0x1b2)]{constructor(_0x410271,_0x409da3,_0x33b8b2,_0x47f0b5,_0x210489,_0x5193ec,_0xbec6c6){const _0x12ee15=_0x4885bf;super(),_(this,_0x12ee15(0x279),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x12ee15(0x249),0x0),_(this,_0x12ee15(0x200),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x12ee15(0x19a)]=_0x410271,this['_commandService']=_0x409da3,this['_configService']=_0x33b8b2,this[_0x12ee15(0x195)]=_0x47f0b5,this['_univerInstanceService']=_0x210489,this[_0x12ee15(0x1ed)]=_0x5193ec,this['_localeService']=_0xbec6c6,this[_0x12ee15(0x237)]());}[_0x4885bf(0x237)](){const _0x5e7823=_0x4885bf;this[_0x5e7823(0x354)](this[_0x5e7823(0x26a)][_0x5e7823(0x18d)]((_0x51e24a,_0x12bd61)=>{const _0x22ff3b=_0x5e7823;var _0x12410a;if(_0x51e24a['id']!==B[_0x22ff3b(0x156)]['id'])return;const _0x2c260c=_0x51e24a[_0x22ff3b(0x215)];if(!this['_hasFormulaInDirtyRanges']((_0x12410a=_0x2c260c[_0x22ff3b(0x1eb)])!=null?_0x12410a:[]))return;if(!this[_0x22ff3b(0x31a)]())throw this[_0x22ff3b(0x127)](_0x51e24a,_0x12bd61),this[_0x22ff3b(0x312)](),new a[(_0x22ff3b(0x10a))]();})),this[_0x5e7823(0x354)](this[_0x5e7823(0x26a)]['onCommandExecuted']((_0x4289b7,_0x53510a)=>{const _0x27e012=_0x5e7823;if(_0x4289b7['id']!==B[_0x27e012(0x2bc)]['id'])return;const _0x7367bd=_0x4289b7[_0x27e012(0x215)];if(Jt(_0x7367bd)){const _0x48a5e2=a[_0x27e012(0x2f0)]();this[_0x27e012(0x200)][_0x27e012(0x33a)](_0x48a5e2),this[_0x27e012(0x341)](_0x48a5e2);}else{if(Zt(_0x7367bd)&&this[_0x27e012(0x200)][_0x27e012(0x12a)]>0x0){const _0x12af93=this['_taskIds']['shift']();this[_0x27e012(0x206)](_0x12af93);}}}));}[_0x4885bf(0xcf)](){const _0x422101=_0x4885bf;super[_0x422101(0xcf)](),this[_0x422101(0x145)](),this[_0x422101(0x200)]=[],this[_0x422101(0x249)]=0x0,this[_0x422101(0xfb)]=0x0,this['_lastResponseTimestamp']=0x0;}async['_checkAndWaitForCalculationPermission'](_0x318813,_0x6f08e4){const _0x524a62=_0x4885bf;for(let _0x3f4fb7=0x0;_0x3f4fb7<0x1e;_0x3f4fb7++)try{if(await this['_getFormulaLimitStatus'](),this[_0x524a62(0x31a)]()){this[_0x524a62(0x337)](_0x318813,_0x6f08e4),this[_0x524a62(0x19a)]['show']({'content':this[_0x524a62(0x1ac)]['t'](_0x524a62(0x10b)),'type':T[_0x524a62(0x1d8)]['Success']});return;}await new Promise(_0x10804a=>{const _0x318dc8=_0x524a62;this[_0x318dc8(0x279)]=window[_0x318dc8(0x2f7)](_0x10804a,0x3e8);});}catch(_0x5d24a0){this[_0x524a62(0x1ed)]['error'](_0x5d24a0);}this[_0x524a62(0x19a)]['show']({'content':this[_0x524a62(0x1ac)]['t']('formula.calculation.unable'),'type':T[_0x524a62(0x1d8)][_0x524a62(0xf7)]});}[_0x4885bf(0x337)](_0xd1a25c,_0x3887d3){const _0x385f1d=_0x4885bf;try{this[_0x385f1d(0x26a)][_0x385f1d(0x306)](_0xd1a25c['id'],_0xd1a25c[_0x385f1d(0x215)],_0x3887d3);}catch(_0x1af75a){this['_logService'][_0x385f1d(0x1d5)](_0x1af75a);}}[_0x4885bf(0x119)](_0x174927,_0x28d817){const _0x4a6529=_0x4885bf;_0x28d817<this[_0x4a6529(0x32d)]||(this[_0x4a6529(0x32d)]=_0x28d817,this[_0x4a6529(0xfb)]=Number[_0x4a6529(0x34e)](_0x174927[_0x4a6529(0x1a9)]),this['_currentUsage']=Number[_0x4a6529(0x34e)](_0x174927[_0x4a6529(0x26f)]));}async['_startCalculationLimit'](_0x17f0d3){const _0x3be1c0=_0x4885bf;var _0x22bd09,_0x3396e5;const _0xd72d08=Date[_0x3be1c0(0x115)]();try{const _0x201ed5=((_0x22bd09=this['_configService'][_0x3be1c0(0x2c7)](u[_0x3be1c0(0x324)]))==null?void 0x0:_0x22bd09[_0x3be1c0(0xed)])||ss,_0x1e5594=(await this['_httpService'][_0x3be1c0(0x17c)](_0x201ed5,{'body':JSON[_0x3be1c0(0x192)]({'taskId':_0x17f0d3})}))[_0x3be1c0(0x26e)];if(((_0x3396e5=_0x1e5594[_0x3be1c0(0x1d5)])==null?void 0x0:_0x3396e5[_0x3be1c0(0x226)])!==G['OK'])return;this[_0x3be1c0(0x119)](_0x1e5594[_0x3be1c0(0x242)],_0xd72d08);}catch(_0x69a948){this[_0x3be1c0(0x1ed)][_0x3be1c0(0x1d5)](_0x69a948);}}async[_0x4885bf(0x1b5)](_0x3b4fdd){const _0x128a72=_0x4885bf;var _0x4c1010,_0x170384;const _0x5018ac=Date[_0x128a72(0x115)]();try{const _0x9dcd3b=((_0x4c1010=this[_0x128a72(0x2e5)][_0x128a72(0x2c7)](u[_0x128a72(0x324)]))==null?void 0x0:_0x4c1010[_0x128a72(0x227)])||ts,_0x30d94a=_0x3b4fdd?_0x9dcd3b+'?taskId='+encodeURIComponent(_0x3b4fdd):_0x9dcd3b,_0x5c5cc3=(await this[_0x128a72(0x195)][_0x128a72(0x1b8)](_0x30d94a))['body'];if(((_0x170384=_0x5c5cc3[_0x128a72(0x1d5)])==null?void 0x0:_0x170384[_0x128a72(0x226)])!==G['OK'])return;this[_0x128a72(0x119)](_0x5c5cc3[_0x128a72(0x242)],_0x5018ac);}catch(_0x3890d2){this[_0x128a72(0x1ed)][_0x128a72(0x1d5)](_0x3890d2);}}async['_releaseCalculationLimit'](_0x3a255f){const _0x26b3f0=_0x4885bf;var _0x2d0845,_0x243206;const _0x43c54d=Date[_0x26b3f0(0x115)]();try{const _0x277af3=((_0x2d0845=this['_configService'][_0x26b3f0(0x2c7)](u[_0x26b3f0(0x324)]))==null?void 0x0:_0x2d0845['releaseFormulaLimitUrl'])||is,_0x6f935b=(await this['_httpService'][_0x26b3f0(0x17c)](_0x277af3,{'body':JSON[_0x26b3f0(0x192)]({'taskId':_0x3a255f})}))[_0x26b3f0(0x26e)];if(((_0x243206=_0x6f935b[_0x26b3f0(0x1d5)])==null?void 0x0:_0x243206[_0x26b3f0(0x226)])!==G['OK'])return;this[_0x26b3f0(0x119)](_0x6f935b[_0x26b3f0(0x242)],_0x43c54d);}catch(_0x453e85){this[_0x26b3f0(0x1ed)][_0x26b3f0(0x1d5)](_0x453e85);}}['_checkCalculationAvailable'](){const _0x518a35=_0x4885bf;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x518a35(0xfb)]-this['_currentUsage']>0x0;}[_0x4885bf(0x145)](){const _0x4b9856=_0x4885bf;this[_0x4b9856(0x279)]&&(clearTimeout(this[_0x4b9856(0x279)]),this[_0x4b9856(0x279)]=null);}[_0x4885bf(0x312)](){const _0x4d8ad5=_0x4885bf;this[_0x4d8ad5(0x19a)][_0x4d8ad5(0x9f)]({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':T['MessageType'][_0x4d8ad5(0x2e4)]});}[_0x4885bf(0x35a)](_0x2a5a10){const _0x2a9317=_0x4885bf;for(const _0x4d3f81 of _0x2a5a10){const {unitId:_0x5117b9,sheetId:_0x6819f4,range:_0x2596aa}=_0x4d3f81,_0x1bf162=this['_univerInstanceService'][_0x2a9317(0x361)](_0x5117b9);if(!_0x1bf162)continue;const _0x2f59b2=_0x1bf162[_0x2a9317(0x2e2)](_0x6819f4);if(!_0x2f59b2)continue;const _0x5e4fc9=_0x2f59b2['getCellMatrix']();for(let _0x3d9a7c=_0x2596aa[_0x2a9317(0x261)];_0x3d9a7c<=_0x2596aa['endRow'];_0x3d9a7c++)for(let _0x5798c2=_0x2596aa[_0x2a9317(0x17b)];_0x5798c2<=_0x2596aa[_0x2a9317(0x2a7)];_0x5798c2++){const _0x492a7c=_0x5e4fc9[_0x2a9317(0x1cf)](_0x3d9a7c,_0x5798c2);if(_0x492a7c&&(a[_0x2a9317(0x1c8)](_0x492a7c['f'])||a['isFormulaId'](_0x492a7c['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x4885bf(0xe0)](O[_0x4885bf(0x255)])),L(0x1,a[_0x4885bf(0x2a2)]),L(0x2,a[_0x4885bf(0x1f2)]),L(0x3,a[_0x4885bf(0xe0)](x[_0x4885bf(0x358)])),L(0x4,a[_0x4885bf(0x2b8)]),L(0x5,a[_0x4885bf(0x15f)]),L(0x6,a[_0x4885bf(0xe0)](a['LocaleService']))],ne);var ns=Object[_0x4885bf(0xee)],rs=(_0x41833a,_0x11a070,_0xfce2c3,_0x3cdf3d)=>{const _0x36ce85=_0x4885bf;for(var _0x1c49f2=_0x3cdf3d>0x1?void 0x0:_0x3cdf3d?ns(_0x11a070,_0xfce2c3):_0x11a070,_0x16650e=_0x41833a[_0x36ce85(0x12a)]-0x1,_0x2aa722;_0x16650e>=0x0;_0x16650e--)(_0x2aa722=_0x41833a[_0x16650e])&&(_0x1c49f2=_0x2aa722(_0x1c49f2)||_0x1c49f2);return _0x1c49f2;},de=(_0x30fa77,_0x2137c9)=>(_0x2e548c,_0x7ee117)=>_0x2137c9(_0x2e548c,_0x7ee117,_0x30fa77);let pe=class extends a[_0x4885bf(0x1b2)]{constructor(_0x74df3a,_0x2f9593,_0x55d2cb){const _0x22b5f4=_0x4885bf;super(),_(this,_0x22b5f4(0x224),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x22b5f4(0x2e5)]=_0x74df3a,this[_0x22b5f4(0x196)]=_0x2f9593,this[_0x22b5f4(0xa1)]=_0x55d2cb);}[_0x4885bf(0x138)](){this['_disabled']=!0x0;}[_0x4885bf(0x13f)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x5d8dee=_0x4885bf;return this[_0x5d8dee(0x299)];}[_0x4885bf(0xcf)](){const _0x383c3e=_0x4885bf;this[_0x383c3e(0x152)]()[_0x383c3e(0x180)](()=>super[_0x383c3e(0xcf)]());}async[_0x4885bf(0x1e2)](_0x2a1f45){const _0x4350eb=_0x4885bf;return this[_0x4350eb(0x15d)]?null:this['_localStorageService'][_0x4350eb(0x10e)](u[_0x4350eb(0x344)](_0x2a1f45));}async[_0x4885bf(0x340)](_0x51dcfe,_0x5bedd3){const _0x5ba1a5=_0x4885bf;return!!this[_0x5ba1a5(0x196)][_0x5ba1a5(0x1b0)](_0x51dcfe,_0x5bedd3);}['updateOfflineData'](_0x2db197,_0x4d0f06,_0xe5b814,_0x116057){const _0x3fc0a2=_0x4885bf,_0x40ddc4=this[_0x3fc0a2(0xa1)][_0x3fc0a2(0x303)](_0x2db197);this[_0x3fc0a2(0x224)][_0x3fc0a2(0x219)](_0x2db197,{'unitID':_0x2db197,'type':_0x4d0f06,'awaitingChangeset':_0xe5b814,'mutations':_0x116057,'rev':_0x40ddc4}),this[_0x3fc0a2(0x299)][_0x3fc0a2(0x11b)](_0x2db197)||this[_0x3fc0a2(0x30a)](_0x2db197);}[_0x4885bf(0x30a)](_0x19d8e6){const _0x13e57f=_0x4885bf,_0x591634=this[_0x13e57f(0x1a2)]();_0x591634===0x0?this['_saveCache'](_0x19d8e6):this['_saveTaskMap'][_0x13e57f(0x219)](_0x19d8e6,setTimeout(()=>this[_0x13e57f(0x17d)](_0x19d8e6),_0x591634));}['_getSaveTimeout'](){const _0x168a02=_0x4885bf;var _0x40cd6b;return(_0x40cd6b=this[_0x168a02(0x2e5)]['getConfig'](u[_0x168a02(0x108)]))!=null?_0x40cd6b:u['LOCAL_CACHE_INTERVAL'];}[_0x4885bf(0x17d)](_0x12f76c){const _0xf8c1a1=_0x4885bf,_0x151e1d=this['_saveTaskMap'][_0xf8c1a1(0x1b8)](_0x12f76c);return _0x151e1d!==void 0x0&&window[_0xf8c1a1(0x2cc)](_0x151e1d),this['_localStorageService']['setItem'](u['getLocalCacheKey'](_0x12f76c),this[_0xf8c1a1(0x224)][_0xf8c1a1(0x1b8)](_0x12f76c))[_0xf8c1a1(0x180)](()=>this[_0xf8c1a1(0x299)]['delete'](_0x12f76c));}async[_0x4885bf(0x152)](){const _0x38a20b=_0x4885bf,_0x4c3e94=[];this[_0x38a20b(0x299)][_0x38a20b(0x28d)]((_0x3153e6,_0x1f5364)=>{const _0x13d381=_0x38a20b;window['clearTimeout'](_0x3153e6),_0x4c3e94[_0x13d381(0x33a)](this[_0x13d381(0x17d)](_0x1f5364)[_0x13d381(0x180)](()=>{const _0x1163c7=_0x13d381;this[_0x1163c7(0x299)][_0x1163c7(0x2a1)](_0x1f5364);}));}),await Promise[_0x38a20b(0xec)](_0x4c3e94);}};pe=rs([de(0x0,a['IConfigService']),de(0x1,a['ILocalStorageService']),de(0x2,a[_0x4885bf(0xe0)](g[_0x4885bf(0x205)]))],pe);class ke extends a[_0x4885bf(0x1aa)]{constructor(){const _0x99e350=_0x4885bf;super(),_(this,'urlChange$'),this[_0x99e350(0xd8)]=I['fromEvent'](window,_0x99e350(0x2bd))[_0x99e350(0x153)](I[_0x99e350(0x268)](this['dispose$']),I[_0x99e350(0x2ca)](0x1),I[_0x99e350(0x1f0)](void 0x0));}[_0x4885bf(0x185)](_0xa6d63e,_0x3dd023,_0x7a6405=!0x1){const _0x2580a5=_0x4885bf,_0x434541=new URL(window[_0x2580a5(0x193)]['href']);_0x434541[_0x2580a5(0x17f)][_0x2580a5(0x219)](_0xa6d63e,_0x3dd023),_0x7a6405?window['history']['replaceState']('','',_0x434541[_0x2580a5(0x2a0)]()):window[_0x2580a5(0xe2)][_0x2580a5(0xe1)]('','',_0x434541[_0x2580a5(0x2a0)]());}[_0x4885bf(0x1a0)](_0x5e9398,_0x581764=!0x1){const _0x4c5b65=_0x4885bf,_0x4d1dea=new URL(window['location'][_0x4c5b65(0x23b)]);_0x4d1dea[_0x4c5b65(0x17f)][_0x4c5b65(0x2a1)](_0x5e9398),_0x581764?window[_0x4c5b65(0xe2)][_0x4c5b65(0x351)]('','',_0x4d1dea[_0x4c5b65(0x2a0)]()):window[_0x4c5b65(0xe2)][_0x4c5b65(0xe1)]('','',_0x4d1dea['toString']());}['getParam'](_0x1afde7){const _0x987a12=_0x4885bf;var _0x4f2299;return(_0x4f2299=new URL(window[_0x987a12(0x193)][_0x987a12(0x23b)])[_0x987a12(0x17f)][_0x987a12(0x1b8)](_0x1afde7))!=null?_0x4f2299:void 0x0;}}var os=Object[_0x4885bf(0x1a3)],as=Object[_0x4885bf(0xee)],cs=(_0xd3348e,_0x63a818,_0x4fe204)=>_0x63a818 in _0xd3348e?os(_0xd3348e,_0x63a818,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fe204}):_0xd3348e[_0x63a818]=_0x4fe204,ls=(_0x552987,_0x7007b4,_0x32aaf1,_0x182126)=>{const _0xf0f613=_0x4885bf;for(var _0x45d7cd=_0x182126>0x1?void 0x0:_0x182126?as(_0x7007b4,_0x32aaf1):_0x7007b4,_0x4210c9=_0x552987[_0xf0f613(0x12a)]-0x1,_0x137da4;_0x4210c9>=0x0;_0x4210c9--)(_0x137da4=_0x552987[_0x4210c9])&&(_0x45d7cd=_0x137da4(_0x45d7cd)||_0x45d7cd);return _0x45d7cd;},Se=(_0x5357aa,_0x44ecd0)=>(_0x2db922,_0x3e26c6)=>_0x44ecd0(_0x2db922,_0x3e26c6,_0x5357aa),_s=(_0x16d1de,_0x38ef1e,_0x4928c9)=>cs(_0x16d1de,_0x38ef1e+'',_0x4928c9);const hs=_0x4885bf(0x283);exports[_0x4885bf(0x99)]=class extends a[_0x4885bf(0x2b4)]{constructor(_0x4e55d8=Me,_0xbbde2,_0x392b53,_0xa3252e){const _0x3a4297=_0x4885bf;super(),this['_config']=_0x4e55d8,this[_0x3a4297(0x342)]=_0xbbde2,this[_0x3a4297(0x17e)]=_0x392b53,this[_0x3a4297(0x2e5)]=_0xa3252e;const {..._0xf72047}=a['merge']({},Me,this[_0x3a4297(0x29f)]);this[_0x3a4297(0x2e5)]['setConfig'](Yt,_0xf72047);}[_0x4885bf(0x236)](){const _0x363f87=_0x4885bf;this['_registerDependencies'](),this[_0x363f87(0x2d2)]();}[_0x4885bf(0x1ec)](){const _0xc2f44=_0x4885bf;this[_0xc2f44(0x142)]();}[_0x4885bf(0x1cc)](){const _0x3b8262=_0x4885bf;var _0x105445;const _0x4755b5=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x3b8262(0x326)],{'useClass':x['WebSocketService']}],[u['ILocalCacheService'],{'useClass':pe}],[exports[_0x3b8262(0x197)]],[ie],[Z],[F],[me],[exports[_0x3b8262(0x161)]]];this['_config'][_0x3b8262(0x1de)]&&_0x4755b5[_0x3b8262(0x33a)]([Q]),a[_0x3b8262(0x2c3)](this[_0x3b8262(0x17e)],a['mergeOverrideWithDependencies'](_0x4755b5,(_0x105445=this[_0x3b8262(0x29f)])==null?void 0x0:_0x105445[_0x3b8262(0x1dd)]));}[_0x4885bf(0x142)](){const _0x2465a8=_0x4885bf;this[_0x2465a8(0x354)](this[_0x2465a8(0x342)]['registerRenderModule'](a[_0x2465a8(0x311)]['UNIVER_DOC'],[Ee])),this[_0x2465a8(0x354)](this[_0x2465a8(0x342)][_0x2465a8(0x97)](a['UniverInstanceType'][_0x2465a8(0x28c)],[Ce]));}[_0x4885bf(0x2d2)](){const _0x1930b2=_0x4885bf;a['touchDependencies'](this[_0x1930b2(0x17e)],[[F],[exports[_0x1930b2(0x197)]],[ie],[Z],[exports[_0x1930b2(0x161)]],[ne]]),this['_config'][_0x1930b2(0x1de)]&&a['touchDependencies'](this['_injector'],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x4885bf(0x208),hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0x4885bf(0x186)](u[_0x4885bf(0x287)]),Se(0x1,C[_0x4885bf(0x1a4)]),Se(0x2,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),Se(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var us=Object[_0x4885bf(0xee)],Is=(_0x273a17,_0x257e2c,_0x2889d7,_0x305b5d)=>{const _0x41bd53=_0x4885bf;for(var _0x3ab5f4=_0x305b5d>0x1?void 0x0:_0x305b5d?us(_0x257e2c,_0x2889d7):_0x257e2c,_0x2958aa=_0x273a17[_0x41bd53(0x12a)]-0x1,_0x239cf6;_0x2958aa>=0x0;_0x2958aa--)(_0x239cf6=_0x273a17[_0x2958aa])&&(_0x3ab5f4=_0x239cf6(_0x3ab5f4)||_0x3ab5f4);return _0x3ab5f4;},W=(_0x530bfb,_0x23d69f)=>(_0xab5ae2,_0x1feed4)=>_0x23d69f(_0xab5ae2,_0x1feed4,_0x530bfb);exports[_0x4885bf(0x157)]=class extends u[_0x4885bf(0x1ab)]{constructor(_0x12716a,_0x36ea8e,_0x12c40a,_0x4d9064,_0x374c9a){super(_0x12716a,_0x36ea8e,_0x12c40a,_0x4d9064,_0x374c9a);}async[_0x4885bf(0x13b)](_0x4d174b){const _0x4b4147=_0x4885bf,_0x4d6a63=await this[_0x4b4147(0x201)](),_0x43860f=this[_0x4b4147(0x1ea)](_0x4d174b,_0x4d6a63);return this['_doCreateSocket'](_0x43860f);}[_0x4885bf(0x1ea)](_0x3fb81e,_0xf0f27d){const _0x4c116c=_0x4885bf,_0x508559=typeof window>'u'?new URL(_0x3fb81e):new URL(_0x3fb81e,window['location'][_0x4c116c(0xf2)]);_0x508559['searchParams'][_0x4c116c(0x219)]('sessionTicket',_0xf0f27d);const _0x3ee56d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4c116c(0x193)][_0x4c116c(0x243)]);return _0x3ee56d[_0x4c116c(0x1b8)](_0x4c116c(0x171))&&_0x508559[_0x4c116c(0x17f)][_0x4c116c(0x219)](_0x4c116c(0x171),_0x3ee56d[_0x4c116c(0x1b8)](_0x4c116c(0x171))),_0x508559[_0x4c116c(0x2a0)]();}async[_0x4885bf(0x201)](){const _0xf85f=_0x4885bf;var _0x18f849,_0x3e9bc2,_0x102102;const _0x5c93ba=this[_0xf85f(0x2e5)][_0xf85f(0x2c7)](u[_0xf85f(0x324)]),_0x4f05b3=(_0x18f849=_0x5c93ba==null?void 0x0:_0x5c93ba[_0xf85f(0xc7)])!=null?_0x18f849:u[_0xf85f(0x151)];return(_0x102102=(_0x3e9bc2=(await this[_0xf85f(0x195)][_0xf85f(0x1b8)](_0x4f05b3,{'headers':{'Content-Type':_0xf85f(0x102)}}))['body'])==null?void 0x0:_0x3e9bc2[_0xf85f(0x25f)])!=null?_0x102102:'';}},exports[_0x4885bf(0x157)]=Is([W(0x0,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),W(0x1,a['Inject'](x['HTTPService'])),W(0x2,a[_0x4885bf(0x1f2)]),W(0x3,a[_0x4885bf(0x15f)]),W(0x4,g['ISnapshotServerService'])],exports[_0x4885bf(0x157)]);var ds=Object[_0x4885bf(0xee)],Ss=(_0xeb4680,_0x220c80,_0x5431e7,_0xc98825)=>{const _0x17dda0=_0x4885bf;for(var _0x22d254=_0xc98825>0x1?void 0x0:_0xc98825?ds(_0x220c80,_0x5431e7):_0x220c80,_0x5449e9=_0xeb4680[_0x17dda0(0x12a)]-0x1,_0x16fb42;_0x5449e9>=0x0;_0x5449e9--)(_0x16fb42=_0xeb4680[_0x5449e9])&&(_0x22d254=_0x16fb42(_0x22d254)||_0x22d254);return _0x22d254;},fe=(_0x317971,_0x2e0681)=>(_0x51cbc6,_0x3b2504)=>_0x2e0681(_0x51cbc6,_0x3b2504,_0x317971);exports[_0x4885bf(0x343)]=class extends a['Disposable']{constructor(_0x23e02a,_0x31bd5e,_0x2e3d9b){const _0x12db6b=_0x4885bf;super(),this['_instanceService']=_0x23e02a,this['_httpService']=_0x31bd5e,this[_0x12db6b(0x2e5)]=_0x2e3d9b;}async['runOnServer'](_0x4e1bef,_0x56aec8,_0x5e9199,..._0x3d853d){const _0x310a43=_0x4885bf;var _0x1a4ae0,_0x39d8d3,_0x5db95f,_0xffd0f4;const _0x3e2a4a=this['_instanceService'][_0x310a43(0x277)]();if(!_0x3e2a4a)throw new Error(_0x310a43(0x27b));const _0x241cb1=((_0x1a4ae0=this['_configService'][_0x310a43(0x2c7)](u[_0x310a43(0x133)]))!=null?_0x1a4ae0:u[_0x310a43(0x112)])+'/'+_0x4e1bef+_0x310a43(0x1ff)+_0x56aec8,_0xcfc94c=new URL(window[_0x310a43(0x193)][_0x310a43(0x23b)]),_0x21eaf7={'scriptId':_0x4e1bef,'runId':(_0x39d8d3=_0xcfc94c[_0x310a43(0x17f)][_0x310a43(0x1b8)](_0x310a43(0x171)))!=null?_0x39d8d3:'','function':_0x56aec8,'unitId':_0x3e2a4a['getUnitId'](),'argsOfFunction':JSON[_0x310a43(0x192)](_0x3d853d),'invokeId':(_0x5db95f=_0x5e9199[_0x310a43(0x322)])!=null?_0x5db95f:'','executionId':(_0xffd0f4=_0x5e9199[_0x310a43(0x15a)])!=null?_0xffd0f4:''};try{const _0xbf3658=await this[_0x310a43(0x195)]['post'](_0x241cb1,{'body':_0x21eaf7});return _0xbf3658[_0x310a43(0x26e)][_0x310a43(0x1d5)]&&_0xbf3658['body']['error'][_0x310a43(0x226)]!==G['OK']?_0x310a43(0xc0):_0xbf3658[_0x310a43(0x26e)][_0x310a43(0x13c)];}catch{return _0x310a43(0xc0);}}},exports[_0x4885bf(0x343)]=Ss([fe(0x0,a[_0x4885bf(0x2b8)]),fe(0x1,a[_0x4885bf(0xe0)](x['HTTPService'])),fe(0x2,a[_0x4885bf(0x1f2)])],exports[_0x4885bf(0x343)]);const we=0x7530,ye=_0x4885bf(0xbd);class fs extends a['Disposable']{constructor(){const _0x12b11d=_0x4885bf;super(),_(this,_0x12b11d(0x1a1),a[_0x12b11d(0x2f0)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x12b11d(0xe7),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x12b11d(0x1c1),new Map()),_(this,_0x12b11d(0xd5),new Map()),this[_0x12b11d(0x2a5)]();}[_0x4885bf(0xcf)](){const _0x2e2f37=_0x4885bf;super[_0x2e2f37(0xcf)](),this[_0x2e2f37(0x1c1)][_0x2e2f37(0x28d)]((_0x56de1b,_0xf54403)=>this['_removeClearOtherTimer'](_0xf54403)),this[_0x2e2f37(0x139)]&&window[_0x2e2f37(0x295)](this[_0x2e2f37(0x139)]);}[_0x4885bf(0x338)](_0x333b94){const _0x2f1f84=_0x4885bf;return this[_0x2f1f84(0x264)](_0x333b94)[_0x2f1f84(0x153)](I[_0x2f1f84(0x2c6)]());}[_0x4885bf(0x1e7)](_0x37e580){const _0x2c7bc4=_0x4885bf;this[_0x2c7bc4(0xd1)]['size']===0x0&&this[_0x2c7bc4(0x2a4)](),this[_0x2c7bc4(0xd1)][_0x2c7bc4(0xf1)](_0x37e580),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x37e580],'isForwarded':!0x1});}[_0x4885bf(0x1c9)](_0x79e8c9){const _0x11a83f=_0x4885bf;this[_0x11a83f(0xd1)][_0x11a83f(0x2a1)](_0x79e8c9),this[_0x11a83f(0xd1)][_0x11a83f(0x2ef)]===0x0&&this[_0x11a83f(0x139)]&&window[_0x11a83f(0x295)](this['_heartbeatTimer']);}['_init'](){const _0x55e67b=_0x4885bf;this[_0x55e67b(0x354)](a['toDisposable'](I[_0x55e67b(0x1e5)](window,'storage')[_0x55e67b(0x22c)](_0x573f79=>{const _0x5c34e6=_0x55e67b;if(_0x573f79[_0x5c34e6(0xb1)]!==ye||!_0x573f79[_0x5c34e6(0xa2)])return;const _0x1a5a99=JSON[_0x5c34e6(0x94)](_0x573f79['newValue']);this[_0x5c34e6(0x32f)](_0x1a5a99);}))),window[_0x55e67b(0x29c)]('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x55e67b(0xd1)])}));}[_0x4885bf(0x32f)](_0x372f6b){const _0xce6df8=_0x4885bf;switch(_0x372f6b[_0xce6df8(0x360)]){case 0x0:this[_0xce6df8(0x11d)](_0x372f6b);break;case 0x1:this[_0xce6df8(0x2a6)](_0x372f6b);break;case 0x2:this[_0xce6df8(0x100)](_0x372f6b);break;}}[_0x4885bf(0x11d)](_0x340af4){const _0x36489c=_0x4885bf,{unitIDs:_0x4a8a1a,memberID:_0x12c92b,isForwarded:_0x48b00d}=_0x340af4;_0x4a8a1a['forEach'](_0xc6758d=>{const _0x3799b0=_0x30e5;if(!_0x48b00d&&this['_unitOnClients']['has'](_0xc6758d)&&this[_0x3799b0(0x264)](_0xc6758d)[_0x3799b0(0x1a7)](u[_0x3799b0(0x19d)][_0x3799b0(0x266)]),!this[_0x3799b0(0xe7)][_0x3799b0(0x11b)](_0xc6758d)||!this['_unitOnClients'][_0x3799b0(0x1b8)](_0xc6758d)['has'](_0x12c92b)){const _0x310695=this[_0x3799b0(0xe7)]['get'](_0xc6758d)||new Set();_0x310695[_0x3799b0(0xf1)](_0x12c92b),this[_0x3799b0(0xe7)]['set'](_0xc6758d,_0x310695),this[_0x3799b0(0x16e)](_0x12c92b);}}),_0x48b00d||this[_0x36489c(0x1ae)]({'type':0x0,'memberID':this[_0x36489c(0x1a1)],'unitIDs':[...this[_0x36489c(0xd1)]],'isForwarded':!0x0});}[_0x4885bf(0x16e)](_0x56181a){const _0x364d20=_0x4885bf;this[_0x364d20(0xa7)](_0x56181a);const _0xcd73ad=window['setTimeout'](()=>{const _0x2944da=_0x364d20;this[_0x2944da(0xe7)][_0x2944da(0x28d)](_0x5d83da=>{_0x5d83da['delete'](_0x56181a);});},we*0x2);this[_0x364d20(0x1c1)][_0x364d20(0x219)](_0x56181a,_0xcd73ad);}[_0x4885bf(0xa7)](_0x444405){const _0x2ae62a=_0x4885bf;if(this[_0x2ae62a(0x1c1)]['has'](_0x444405)){const _0x401f05=this[_0x2ae62a(0x1c1)][_0x2ae62a(0x1b8)](_0x444405);_0x401f05&&window[_0x2ae62a(0x2cc)](_0x401f05),this['_clearOtherTimers'][_0x2ae62a(0x219)](_0x444405,null);}}['_handleLeaveEvent'](_0x4b5d86){const _0xedcd54=_0x4885bf,{memberID:_0x3878db,unitIDs:_0x51525b}=_0x4b5d86;_0x51525b[_0xedcd54(0x28d)](_0x2fbc00=>{const _0x1c8dc7=_0xedcd54;var _0x440aad;const _0x40072d=this[_0x1c8dc7(0xe7)][_0x1c8dc7(0x1b8)](_0x2fbc00);_0x40072d&&(_0x40072d[_0x1c8dc7(0x2a1)](_0x3878db),(_0x440aad=this[_0x1c8dc7(0x264)](_0x2fbc00))==null||_0x440aad[_0x1c8dc7(0x1a7)](_0x40072d[_0x1c8dc7(0x2ef)]===0x0?u['UnitStatus'][_0x1c8dc7(0x16d)]:u[_0x1c8dc7(0x19d)][_0x1c8dc7(0x266)]));}),this[_0xedcd54(0xa7)](_0x3878db);}[_0x4885bf(0x100)](_0x5089ab){const _0x125471=_0x4885bf;this[_0x125471(0x16e)](_0x5089ab[_0x125471(0x187)]);}[_0x4885bf(0x1ae)](_0x485851){const _0x3d6991=_0x4885bf;localStorage[_0x3d6991(0x1b0)](ye,JSON[_0x3d6991(0x192)](_0x485851));}[_0x4885bf(0x2a4)](){const _0x1888e2=_0x4885bf;this[_0x1888e2(0x139)]=window['setInterval'](()=>{const _0x42e6fe=_0x1888e2;this['_send']({'type':0x2,'memberID':this[_0x42e6fe(0x1a1)]});},we);}['_ensureSubject'](_0x38d8ce){const _0xce93e7=_0x4885bf;return this[_0xce93e7(0xd5)][_0xce93e7(0x11b)](_0x38d8ce)||this[_0xce93e7(0xd5)][_0xce93e7(0x219)](_0x38d8ce,new I['BehaviorSubject'](u[_0xce93e7(0x19d)][_0xce93e7(0x16d)])),this[_0xce93e7(0xd5)]['get'](_0x38d8ce);}}exports[_0x4885bf(0x106)]=Oe,exports[_0x4885bf(0x114)]=je,exports[_0x4885bf(0x241)]=fs,exports[_0x4885bf(0x355)]=ke;
1
+ 'use strict';const _0x2ff5b3=_0x140f;(function(_0x461f7a,_0xc107cb){const _0x599a15=_0x140f,_0x16b6d2=_0x461f7a();while(!![]){try{const _0x3d6a36=parseInt(_0x599a15(0x2d3))/0x1+parseInt(_0x599a15(0x268))/0x2*(-parseInt(_0x599a15(0x207))/0x3)+parseInt(_0x599a15(0x21d))/0x4*(parseInt(_0x599a15(0xf9))/0x5)+parseInt(_0x599a15(0x26b))/0x6+parseInt(_0x599a15(0x1d9))/0x7*(-parseInt(_0x599a15(0xe3))/0x8)+-parseInt(_0x599a15(0x269))/0x9+-parseInt(_0x599a15(0x2bf))/0xa*(parseInt(_0x599a15(0x298))/0xb);if(_0x3d6a36===_0xc107cb)break;else _0x16b6d2['push'](_0x16b6d2['shift']());}catch(_0x47417f){_0x16b6d2['push'](_0x16b6d2['shift']());}}}(_0x5449,0xaff03));function _0x140f(_0xfc4a0,_0x3c8702){const _0x544927=_0x5449();return _0x140f=function(_0x140f15,_0x335e77){_0x140f15=_0x140f15-0xd0;let _0x515047=_0x544927[_0x140f15];return _0x515047;},_0x140f(_0xfc4a0,_0x3c8702);}var Xe=Object[_0x2ff5b3(0x132)],Ke=(_0x23fe95,_0x2db42d,_0x405695)=>_0x2db42d in _0x23fe95?Xe(_0x23fe95,_0x2db42d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x405695}):_0x23fe95[_0x2db42d]=_0x405695,_=(_0x587b63,_0x484610,_0x248e56)=>Ke(_0x587b63,typeof _0x484610!='symbol'?_0x484610+'':_0x484610,_0x248e56);Object[_0x2ff5b3(0x132)](exports,Symbol[_0x2ff5b3(0x165)],{'value':_0x2ff5b3(0x38b)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=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 Te({ref:_0x33097c,..._0x1d6769}){const _0x39f795=_0x2ff5b3,{icon:_0x57f5fe,id:_0xee238e,className:_0x28de24,extend:_0x3f2bbd,..._0x101ff0}=_0x1d6769,_0x53be8e=('univerjs-icon\x20univerjs-icon-'+_0xee238e+'\x20'+(_0x28de24||''))[_0x39f795(0x276)](),_0x5185ac=A[_0x39f795(0x332)]('_'+Qe());return $e(_0x57f5fe,''+_0xee238e,{'defIds':_0x57f5fe[_0x39f795(0x30e)],'idSuffix':_0x5185ac[_0x39f795(0x1e4)]},{'ref':_0x33097c,'className':_0x53be8e,..._0x101ff0},_0x3f2bbd);}function $e(_0x149f65,_0x4edea2,_0x96dbae,_0x1c20da,_0x388528){const _0x2388e8=_0x2ff5b3;return A[_0x2388e8(0x110)](_0x149f65[_0x2388e8(0x30c)],{'key':_0x4edea2,...Je(_0x149f65,_0x96dbae,_0x388528),..._0x1c20da},(Ze(_0x149f65,_0x96dbae)[_0x2388e8(0x353)]||[])[_0x2388e8(0x26e)]((_0x16a9a7,_0x296bab)=>$e(_0x16a9a7,_0x4edea2+'-'+_0x149f65[_0x2388e8(0x30c)]+'-'+_0x296bab,_0x96dbae,void 0x0,_0x388528)));}function Je(_0x37ba22,_0x2eaffb,_0x4b350f){const _0x4e90f6=_0x2ff5b3,_0x3aebf2={..._0x37ba22[_0x4e90f6(0x30f)]};_0x4b350f!=null&&_0x4b350f['colorChannel1']&&_0x3aebf2['fill']==='colorChannel1'&&(_0x3aebf2[_0x4e90f6(0x309)]=_0x4b350f[_0x4e90f6(0x21c)]),_0x37ba22[_0x4e90f6(0x30c)]===_0x4e90f6(0x128)&&_0x3aebf2['id']&&(_0x3aebf2['id']=_0x3aebf2['id']+_0x2eaffb['idSuffix']),Object['entries'](_0x3aebf2)['forEach'](([_0x79d9b6,_0x15b8e8])=>{const _0x54bccc=_0x4e90f6;_0x79d9b6===_0x54bccc(0x128)&&typeof _0x15b8e8=='string'&&(_0x3aebf2[_0x79d9b6]=_0x15b8e8[_0x54bccc(0x1a8)](/url\(#(.*)\)/,_0x54bccc(0x11f)+_0x2eaffb['idSuffix']+')'));});const {defIds:_0xb3a8a0}=_0x2eaffb;return!_0xb3a8a0||_0xb3a8a0[_0x4e90f6(0x17b)]===0x0||(_0x37ba22[_0x4e90f6(0x30c)]===_0x4e90f6(0x324)&&_0x3aebf2['xlink:href']&&(_0x3aebf2['xlink:href']=_0x3aebf2[_0x4e90f6(0x1fe)]+_0x2eaffb[_0x4e90f6(0x296)]),Object['entries'](_0x3aebf2)[_0x4e90f6(0x1fc)](([_0x46b8c9,_0x2e79df])=>{const _0x580374=_0x4e90f6;typeof _0x2e79df==_0x580374(0x211)&&(_0x3aebf2[_0x46b8c9]=_0x2e79df[_0x580374(0x1a8)](/url\(#(.*)\)/,_0x580374(0x11f)+_0x2eaffb[_0x580374(0x296)]+')'));})),_0x3aebf2;}function Ze(_0x2ab53c,_0x402dd0){const _0x5a3a72=_0x2ff5b3;var _0x4a95d0;const {defIds:_0x31e7c5}=_0x402dd0;return!_0x31e7c5||_0x31e7c5[_0x5a3a72(0x17b)]===0x0?_0x2ab53c:_0x2ab53c[_0x5a3a72(0x30c)]===_0x5a3a72(0x2c2)&&((_0x4a95d0=_0x2ab53c[_0x5a3a72(0x353)])!=null&&_0x4a95d0['length'])?{..._0x2ab53c,'children':_0x2ab53c[_0x5a3a72(0x353)]['map'](_0x99ac79=>typeof _0x99ac79[_0x5a3a72(0x30f)]['id']=='string'&&_0x31e7c5&&_0x31e7c5[_0x5a3a72(0x275)](_0x99ac79[_0x5a3a72(0x30f)]['id'])?{..._0x99ac79,'attrs':{..._0x99ac79[_0x5a3a72(0x30f)],'id':_0x99ac79[_0x5a3a72(0x30f)]['id']+_0x402dd0[_0x5a3a72(0x296)]}}:_0x99ac79)}:_0x2ab53c;}function Qe(){const _0x14c634=_0x2ff5b3;return Math[_0x14c634(0x2e2)]()['toString'](0x24)[_0x14c634(0x1dc)](0x2,0x8);}Te[_0x2ff5b3(0xf0)]=_0x2ff5b3(0x2df);function _0x5449(){const _0x78b72=['_maxFormulaLimit','tag','m1Prime','defIds','attrs','undoState','_handleHeartbeatEvent','WECHAT_HAS_BEEN_BOUND','SetWorksheetActivateCommand','Optional','_scene','LICENSE_DISTRO_REJECTED','_heartbeatTimer','_context','_createSocketURL','black','CollaborationSocketService','BuiltInUIPart','saveImage','location','onPointerMove$','asObservable','getMemberID','pushState','getRenderById','use','debounce','docStateChange$','complete','loadOfflineData','currentSkeleton$','addObject','_collaborationUIEventService','IDocClipboardService','push','registerBeforeClose','Plugin','_docSkeleton','unitId','useRef','getConfig','_toggleOffline','_initCommandExecutedListener','subscribe','MUTATION','TOO_MANY_REQUESTS','useCallback','height','ranges','_initCommandInterceptor','collab-text-anchor-','_scheduleSaving','merge','stringify','CollaborationSessionService','ERROR_AGAIN','transformSelections','clsx','Shape','loadUnit','setParam','session.connection-failed','engine','stage','SOCKET_FAILED_RETRY','data','CollaborationStatus','BrowserCollaborationSocketService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_drawAnchor','getStateCache','_revisionService','children','transformMutation','univer-mr-2\x20univer-flex\x20univer-text-xl','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getCurrentSelections','history','switchMap','setShapeProps','off-line-icon_clip0_910_343','getOwnPropertyDescriptor','PERMISSION_DENIED','deepClone','_localCacheService','_getAnchorBounding','INVITE_CODE_REQUIRED','_docSyncEditingCollabCursorService','getLocalCacheKey','_docTransformIMECacheService','delete','_updateURLWithCurrentState','ISocketService','permission.content','SheetCollabCursorShape','onRendered','_getSheetObject','dispose$','searchParams','_cursors','_shapes','_startSheetCollabCursor','_selfUnitIDs','getRangePointData','flatMap','combineLatest','_hideTimer','unit','DocCollaborationEntity','getMember','mapTo','PY_RUNTIME_SCRIPT_ERROR','exhaustSavingTask','then','m2Prime','registerRefRange','APPLY_REVISION_CONFILICT','_handleLeaveEvent','isTransformMutationFailure','session.will-retry','unhandledrejection','getCollabCursors$','TEXT_RANGE_LAYER_INDEX','set','SUBMIT_CHANGESET_TIMEOUT','YUUMI_UNABLE_LOAD_URL','_localStorageService','getCollabEntity$','Module','currentTheme$','OFFLINE','type','send','_updateCollabCursors','fillStyle','addObjects','RegularPolygon','Inject','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_monkeyPatchLogService','none','getViewport','uni.network.url-service','_cursor','off-line-icon','startColumn','_setFormulaLimitStatus','lineno','_configService','collabStatus.synced','/universer-api/license/formula/limit/start','MessageType','getParam','WebSocketService','TEXT','catch','ONLINE','ThemeService','MemberService','273488hahmwc','sheetId','CHANGESET_REVISION_CONFILICT','Tooltip','UniverCollaborationClientUIPlugin','InsertRangeMoveRightCommandId','SessionStatus','_toggleOnline','handleMoveRange','font','_handleHover','OTHER_CLIENT_EDITING','getAncestorScale','displayName','_textBubble','addClipboardHook','has','RemoteUniscriptService','UniverCollaborationClientPlugin','handleIRemoveCol','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','DocStateChangeManagerService','194125dQgQNK','Unknown\x20user','COMPLETION_FINISHED','collaboration-client-ui.config','_cursorShapes','PAYMENT_CHANNEL_NOT_SUPPORT','_scheduleClearOtherTimer','max','_color','setAlpha','_uploadLog','jsx','_docTransformStateCacheService','takeUntil','_collaborationController','Failed','_disabled','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','assign','textRanges','_collaborationSessionService','roomMembers','body','createElement','key','UNAUTHENTICATED','setTimeout','_colorIndex','NOT_COLLAB','size','_initUserListener','USER_NOT_FOUND','getMergeData','_startCalculationLimit','saveTaskMap','getFocusedUnit','endRow','ALREADY_EXISTS','url(#$1','requireSession','onPointerLeave$','ENTITLE_NEED_BILLING_ADDRESS','ILogService','IUIPartsService','throttleTime','transformIMECache','_unitStatus','mask','_initEntityListener','transformStateCache','_removeClearOtherTimer','_transformUndoRedoStack','_initUnhandledRejectionListener','_initResize','_handleJoinEvent','IRemoteInstanceService','RxDisposable','defineProperty','_docSkeletonManagerService','M0\x200H16V16H0z','_localeService','socket$','forwardRef','code','imageSourceType','startFormulaLimitUrl','Tools','_renderManagerService','startRow','CollaborationUIEventId','_beforeCloseService','currentUsage','replaceState','onCommandExecuted','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','1em','YUUMI_CONNECTOR_URL_NOT_FOUND','findNodePositionByCharIndex','_drawTextRange','activeSheet$','collabStatus.syncing','DOC_RANGE_TYPE','ILocalCacheService','_status$','next','_refRangeService','save','CommandType','disableLocalCache','getSheetObject','disposeUnit','_initStatusListener','RevisionService','getTypeOfUnitDisposed$','_draw','serializeRangeWithSheet','focused$','formula.calculation.started','_docStateChangeManagerService','removeEventListener','FromArray','_logService','rgba(255,\x20255,\x20255,\x200.01)','getCurrentRevOfUnit','executionId','jsxs','handleInsertRangeMoveDown','ENTITLE_REPORT_LIMIT_EXCEED','toStringTag','createSocket','roomMembers$','hide','popstate','getVpScrollXYInfoByPosToVp','memberID','getValue','_instanceService','labelPosition','_getFormulaLimitStatus','YUUMI_SUBSCRIPTION_NOT_FOUND','/run/','_session','colno','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','range','_ensureSubject','red.300','_anchorDot','COLORS','_transformPreviousActiveRange','length','LOCAL_CACHE_INTERVAL_KEY','VIEW_MAIN','_initDependencies','unsubscribe','_initWindowErrorListener','LOCAL_CACHE_INTERVAL','\x20at\x20','NO_OTHER_CLIENTS_EDITING','Vector2','_messageService','collaboration.single-unit.warning','triggerDblclick','DesktopCollaborationStatusDisplayController','ENSURE_SNAPSHOT_EXECUTION','_transformHistoryAndStateStack','fromEvent','search','evenodd','formula.calculation.waiting','getRelativeToViewportCoord','onPointerEnter$','YUUMI_URL_COL_OUT_OF_RANGE','getUnit','endColumn','_transformService','createInstance','LICENSE_IMPORT_SIZE_EXCEEDED','LocaleService','DisposableCollection','APPLY_NON_SEQUENTIAL_REVISION','top','isArray','from','_config','_urlService','EffectRefRangId','stack','_name','DeleteRangeMoveUpCommandId','toString','makeDirty','onStarting','resize','handleIRemoveRow','replace','url(#on-line-icon_clip0_910_349)','OTHER_CLIENTS_EDITING','_setupSubUnitSync','add','CollaborationController','jiqing.500','INVITE_CODE_HAS_BEEN_UES','_backgroundColor','deserializeRangeWithSheet','filter','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_drawRectRange','_lastPointer','INotificationService','getCurrentUnitForType','bottom','eventID','ENTITLE_CAN_NOT_BUY_LOWER_OTP','REDEMPTION_INVALID_CODE','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_updateSubUnitFromURLParams','clearTimeout','INTERNAL_ERROR','_onCursorDelete','JOIN_ROOM_FAILED','with','REDEMPTION_CODE_HAS_BEEN_CREATED','transform','distinctUntilChanged','collabStatus.fetchMiss','_dataLoaderService','transformByState','get','lineTo','width','updateOfflineData','ENTITLE_CHAT_LIMIT_EXCEED','_commandService','handleDeleteRangeMoveLeft','_getSaveTimeout','BehaviorSubject','editingUnit','executeCommand','isTransformMutationsWithChangesetSuccess','some','round','FETCH_MISS','EMAIL_VERIFY_CODE_MISMATCH','70XSmHcc','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','[Unhandled\x20Rejection]:\x20','substring','_getSessionTicket','WebURLService','getTypeOfUnitAdded$','collabStatus.conflict','getDocRanges','clearInterval','_setupBeforeClosingHandler','current','_getMergeRange','releaseFormulaLimitUrl','MOBILE_VERIFY_CODE_MISMATCH','isFormulaId','#FFF','UNIVER_SHEET','SetFormulaCalculationStartMutation','handleInsertRow','selection','getActiveRange','connectInjector','CURRENT_STATUS_CANNOT_OPERATE','blue.400','_checkAndWaitForCalculationPermission','IBeforeCloseService','setConfig','PENDING','_render','skeleton','_scheduleHeartbeat','measureText','ColorKit','runRefRangeMutations','forEach','YUUMI_RATE_OVER_LIMIT','xlink:href','redoState','_online','IRenderManagerService','now','getCoordByCell','entityInit$','YUUMI_ASYNCIO_CANCELLED','YUUMI_ALL_TABLES_IS_INVALID','222NalHmf','origin','ICommandService','DeleteRangeMoveLeftCommandId','_collabCursorController','_removeCollabCursors','_assignedColors','show','TRANSFORM_CHANGE_OBSERVABLE_TYPE','params','string','univer-flex\x20univer-items-center','getUndoRedoMutationParamsCache','yellow.400','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','split','text','_getScale','removeParam','DependentOn','IUniverInstanceService','colorChannel1','92HmSOUE','dirtyRanges','event$','getColorFromTheme','UNDEFINED','collabStatus.offline','toDisposable','_roomMembers$','_refreshCollabCursors','beginPath','registerComponent','collabStatus.notCollab','_registerRenderDependencies','transformMutationsWithChangeset','_collabCursorState$','_univerInstanceService','getSheetId','_labelPosition','LOGIN_TOKEN_PROCESSING_FAILED','IImageIoService','formula.calculation.unable','_docTransformSelectionsService','RemoveColCommandId','div','_id','filename','getUnitId','SheetSkeletonManagerService','CollaborationEvent','Error','generateRandomId','FormulaExecuteStageType','svg','SNAPSHOT_INVALID_SNAPSHOT','unload','_clearOtherTimers','_httpService','INVALID_INVITE_CODE','ILocalStorageService','dispose','limitInfo','_entities','HTTPService','row','init','syncEditingCollabCursor','_doCreateSocket','REDEMPTION_CODE_FULLY_REDEEMED','SetDocZoomRatioOperation','values','_applyCommand','name','REDEMPTION_CODE_NOT_STARTED','unitID','touchDependencies','collaboration.closeRoom','fillRule','Rect','YUUMI_NO_CUBOID_FOR_QUESTION','[Window\x20Error]:\x20','getColor','_onRefRangeChange','CollaborationDataLoaderController','_anchor','_syncEditingCollabCursorService','UniverInstanceType','sheetID','ENTITLE_INSUFFICIENT_QUOTA','APPLY_DUPLICATED','handleInsertRangeMoveRight','_init','RemoveRowCommandId','_send','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_showGuardMessage','13316PRUwTe','12505644tLcLzr','currentColor','4827102mjEINR','CONNECTOR_DATA_TOO_LARGE','toRgbString','map','_onCursorUpdate','useDependency','_hovered','LICENSE_EXPORT_SIZE_EXCEEDED','all','isFormulaString','includes','trim','/universer-api/license/formula/limit/done','DATA_SOURCE_TOO_LARGE','post','_taskIds','AUTHORIZE_CODE_ILLEGAL','_colorAssignService','setItem','EMAIL_HAS_BEEN_BOUND','setUndoRedoMutationParamsCache','session.collaboration-timeout','stageInfo','drawWith','UnitStatus','USER_IS_ANONYMOUS','http://www.w3.org/2000/svg','_pollingInterval','cursorInfo','runId','ITransformService','IURLService','SetFormulaCalculationNotificationMutation','_docClipboardService','_currentUsage','RECT','IMessageService','min','_releaseCalculationLimit','_collabSessionService','newValue','_cachedData','_saveCache','idSuffix','_initEvent','100705sUBgQm','...','_cursorInfo$','_sheetSkeletonManagerService','Workbook','UPDATE_CURSOR','_unitOnClients','subscribeEvent','override','_checkCalculationAvailable','/universer-api/license/formula/limit/status','_updateLocalCursor','saveOfflineData','MoveRangeCommandId','SheetsSelectionsService','error','addEventListener','collab-rect-range-','LICENSE_MAX_UNITS_EXCEEDED','unshift','Warning','registerDependencies','isEditing','SNAPSHOT_HAS_BEEN_REMOVED','UNIVER_DOC','_uiPartsService','parseInt','isActive','functionsExecutedState','sessionStatus$','getformulaLimitStatusUrl','subunit','enableFrontendLog','assignAColorForMemberID','DocSelectionManagerService','APPLY_PERMISSION_DENIED','parse','disposeWithMe','cursorInfo$','40cravYh','reconnect','USER_NOT_INVITED_CODE','defs','InsertColCommandId','status$','_initStatusComponent','_range','white','INVALID_ARGUMENT','_memberID','transformRemoteChangeset','_entityInit$','MOBILE_HAS_BEEN_BOUND','getCurrent','AWAITING_WITH_PENDING','href','permission.title','setActiveRange','/universer-api/frontend/logs','1283839zZmrIT','_clearPolling','handleInsertCol','UNRECOGNIZED','CollaborationUIEventService','_registerDependencies','NOT_FOUND','_lastResponseTimestamp','on-line-icon_clip0_910_349','application/json','REDEMPTION_CODE_INACTIVE','doc.mutation.rich-text-editing','UniverIcon','totalFormulasToCalculate','collaboration-client.offline-data-not-saved','random','ENTITLE_DUP_SUBSCRIPTION','IConfigService','path','Subject','registerRenderModule','_saveTaskMap','NodePositionConvertToRectRange','Injector','arc','APPLY_REJECT','_injector','color','_memberService','_eventUnsubscribe','urlChange$','debounceTime','startsWith','getOffsetConfig','getSheetBySheetId','_handleEvent','onMouseMove','_imageIoService','mutations','onTransformChange$','restore','[CollaborationDataLoaderController]','beforeCommandExecuted','pipe','fillText','Disposable','_themeService','fromEventSubject','debug','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','RichTextEditingMutation','INVITE_CODE_ALREADY_BOUND','sessionTicket','_hover','fill','getActiveSheet'];_0x5449=function(){return _0x78b72;};return _0x5449();}const et={'tag':_0x2ff5b3(0x23d),'attrs':{'xmlns':_0x2ff5b3(0x285),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2ff5b3(0x144),'height':_0x2ff5b3(0x144)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x2ff5b3(0x2e5),'attrs':{'stroke':'currentColor','d':_0x2ff5b3(0xf7),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2ff5b3(0x2c2),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x2ff5b3(0x2e5),'attrs':{'fill':_0x2ff5b3(0x2c7),'d':_0x2ff5b3(0x134)}}]}]}],'defIds':[_0x2ff5b3(0x35b)]},xe=A[_0x2ff5b3(0x137)](function(_0x5dab7b,_0x23d66c){const _0x535749=_0x2ff5b3;return A['createElement'](Te,Object[_0x535749(0x10b)]({},_0x5dab7b,{'id':_0x535749(0xd4),'ref':_0x23d66c,'icon':et}));});xe[_0x2ff5b3(0xf0)]='OffLineIcon';const tt={'tag':_0x2ff5b3(0x23d),'attrs':{'xmlns':_0x2ff5b3(0x285),'fill':_0x2ff5b3(0xd0),'viewBox':'0\x200\x2017\x2016','width':_0x2ff5b3(0x144),'height':_0x2ff5b3(0x144)},'children':[{'tag':'g','attrs':{'clipPath':_0x2ff5b3(0x1a9)},'children':[{'tag':_0x2ff5b3(0x2e5),'attrs':{'stroke':_0x2ff5b3(0x26a),'d':'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','strokeLinecap':_0x2ff5b3(0x1d6),'strokeLinejoin':_0x2ff5b3(0x1d6),'strokeWidth':1.2}}]},{'tag':_0x2ff5b3(0x2c2),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2ff5b3(0x2db)},'children':[{'tag':_0x2ff5b3(0x2e5),'attrs':{'fill':_0x2ff5b3(0x2c7),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x2ff5b3(0x2db)]},Be=A['forwardRef'](function(_0x581259,_0x5d873d){const _0x618fad=_0x2ff5b3;return A[_0x618fad(0x110)](Te,Object[_0x618fad(0x10b)]({},_0x581259,{'id':'on-line-icon','ref':_0x5d873d,'icon':tt}));});Be[_0x2ff5b3(0xf0)]='OnLineIcon';function st(_0x4fd16b){const _0x445ec9=_0x2ff5b3;switch(_0x4fd16b){case u[_0x445ec9(0x34d)]['OFFLINE']:return _0x445ec9(0x222);case u[_0x445ec9(0x34d)]['CONFLICT']:return _0x445ec9(0x1e0);case u[_0x445ec9(0x34d)][_0x445ec9(0x1d7)]:return _0x445ec9(0x1c6);case u['CollaborationStatus'][_0x445ec9(0x115)]:return _0x445ec9(0x228);case u['CollaborationStatus']['AWAITING']:case u['CollaborationStatus'][_0x445ec9(0x2ce)]:return _0x445ec9(0x149);case u[_0x445ec9(0x34d)]['SYNCED']:case u[_0x445ec9(0x34d)][_0x445ec9(0x1f5)]:return _0x445ec9(0xd9);}}function it(_0x4fe75b){const _0x3b017f=_0x2ff5b3,{status$:_0x4237bc}=_0x4fe75b,_0x1b371d=O['useObservable'](_0x4237bc,u[_0x3b017f(0x34d)]['NOT_COLLAB']),_0x33ab18=O[_0x3b017f(0x270)](a['LocaleService']),_0x4396de=O['useDependency'](u['CollaborationSessionService']),_0x31f9f0=_0x1b371d!==u[_0x3b017f(0x34d)][_0x3b017f(0x38d)],_0x10b868=_0x33ab18['t'](st(_0x1b371d)),_0x30c718=_0x31f9f0?M[_0x3b017f(0x104)](Be,{}):M[_0x3b017f(0x104)](xe,{}),_0x31d5c6=A[_0x3b017f(0x339)](()=>{const _0x1bcb67=_0x3b017f;_0x31f9f0||_0x4396de[_0x1bcb67(0x2c0)]();},[_0x31f9f0,_0x4396de]);function _0x1cdd48(){const _0x574f6b=_0x3b017f;return M[_0x574f6b(0x162)](_0x574f6b(0x234),{'className':_0x574f6b(0x212),'onClick':_0x31d5c6,'children':[M[_0x574f6b(0x104)](_0x574f6b(0x234),{'className':T[_0x574f6b(0x344)](_0x574f6b(0x355),{'univer-text-green-500':_0x31f9f0,'univer-text-red-500':!_0x31f9f0}),'children':_0x30c718}),M[_0x574f6b(0x104)]('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x10b868})]});}return _0x31f9f0?_0x1cdd48():M[_0x3b017f(0x104)](T[_0x3b017f(0xe6)],{'title':_0x33ab18['t']('collab-client.tooltip.reconnect'),'children':_0x1cdd48()});}var nt=Object[_0x2ff5b3(0x35c)],rt=(_0x626afa,_0x28acca,_0x418c3e,_0x2e68c4)=>{const _0x2b5eb3=_0x2ff5b3;for(var _0x17d1bf=_0x2e68c4>0x1?void 0x0:_0x2e68c4?nt(_0x28acca,_0x418c3e):_0x28acca,_0x3b5587=_0x626afa[_0x2b5eb3(0x17b)]-0x1,_0x380bbe;_0x3b5587>=0x0;_0x3b5587--)(_0x380bbe=_0x626afa[_0x3b5587])&&(_0x17d1bf=_0x380bbe(_0x17d1bf)||_0x17d1bf);return _0x17d1bf;},K=(_0x71c944,_0x4d5d9c)=>(_0x4708cc,_0x2162a4)=>_0x4d5d9c(_0x4708cc,_0x2162a4,_0x71c944);exports[_0x2ff5b3(0x188)]=class extends a[_0x2ff5b3(0x300)]{constructor(_0x1d5ed3,_0x52e706,_0x4a166c,_0x201d05){const _0x555d2a=_0x2ff5b3;super(),_(this,'_status$',new I[(_0x555d2a(0x1d1))](u[_0x555d2a(0x34d)]['NOT_COLLAB'])),(this[_0x555d2a(0x22c)]=_0x1d5ed3,this[_0x555d2a(0x2ed)]=_0x52e706,this[_0x555d2a(0x107)]=_0x4a166c,this[_0x555d2a(0x2b1)]=_0x201d05,this[_0x555d2a(0x2c5)](),this[_0x555d2a(0x154)]());}['_initStatusListener'](){const _0x210218=_0x2ff5b3;this[_0x210218(0x2bd)](this[_0x210218(0x22c)][_0x210218(0x159)]['pipe'](I['switchMap'](()=>{const _0x3be95f=_0x210218,_0x3bbb1f=this[_0x3be95f(0x22c)][_0x3be95f(0x11c)]();return _0x3bbb1f?this['_collaborationController'][_0x3be95f(0x38a)](_0x3bbb1f[_0x3be95f(0x237)]()):I['of'](null);}),I[_0x210218(0x359)](_0x54372f=>_0x54372f?_0x54372f[_0x210218(0x2c4)]:I['of'](u[_0x210218(0x34d)][_0x210218(0x115)])))[_0x210218(0x336)](_0x329281=>{this['_status$']['next'](_0x329281);}));}[_0x2ff5b3(0x2c5)](){const _0x3b955f=_0x2ff5b3;this[_0x3b955f(0x2bd)](this[_0x3b955f(0x2b1)][_0x3b955f(0x227)](O[_0x3b955f(0x31c)]['HEADER_MENU'],()=>O[_0x3b955f(0x1ef)](ot({'status$':this[_0x3b955f(0x14c)][_0x3b955f(0x320)]()}),this[_0x3b955f(0x2ed)])));}},exports[_0x2ff5b3(0x188)]=rt([K(0x0,a[_0x2ff5b3(0x21b)]),K(0x1,a[_0x2ff5b3(0x394)](a[_0x2ff5b3(0x2ea)])),K(0x2,a['Inject'](u[_0x2ff5b3(0x1ad)])),K(0x3,O[_0x2ff5b3(0x124)])],exports[_0x2ff5b3(0x188)]);function ot(_0x1535a7){const {status$:_0x561fcc}=_0x1535a7;return function(){const _0x20af34=_0x140f;return M[_0x20af34(0x104)](it,{'status$':_0x561fcc});};}const Oe=a['createIdentifier'](_0x2ff5b3(0xd2));var at=Object[_0x2ff5b3(0x35c)],ct=(_0x1202f3,_0x2a013b,_0x4cfbc3,_0x39c684)=>{const _0xaa1c32=_0x2ff5b3;for(var _0x5e2f00=_0x39c684>0x1?void 0x0:_0x39c684?at(_0x2a013b,_0x4cfbc3):_0x2a013b,_0x270aaf=_0x1202f3[_0xaa1c32(0x17b)]-0x1,_0x23fe51;_0x270aaf>=0x0;_0x270aaf--)(_0x23fe51=_0x1202f3[_0x270aaf])&&(_0x5e2f00=_0x23fe51(_0x5e2f00)||_0x5e2f00);return _0x5e2f00;},Y=(_0x23d7b7,_0x3e66f7)=>(_0x23b68b,_0x21f1d6)=>_0x3e66f7(_0x23b68b,_0x21f1d6,_0x23d7b7);exports['CollaborationDataLoaderController']=class extends a[_0x2ff5b3(0x131)]{constructor(_0x1e6de8,_0xc8422d,_0x85e996,_0x3c2436,_0x3834cf){const _0x5030e6=_0x2ff5b3;super(),this[_0x5030e6(0x19e)]=_0x1e6de8,this[_0x5030e6(0x15e)]=_0xc8422d,this['_commandService']=_0x85e996,this[_0x5030e6(0x1c7)]=_0x3c2436,_0x3834cf?_0x3834cf==null||_0x3834cf['whenReady']()[_0x5030e6(0x37c)](()=>this[_0x5030e6(0x263)]()):(this['_logService']['debug']('[CollaborationDataLoaderController]',_0x5030e6(0x356)),this['_init']());}async[_0x2ff5b3(0x263)](){const _0x1ec5ac=_0x2ff5b3,_0x661468=this[_0x1ec5ac(0x19e)]['getParam'](_0x1ec5ac(0x376)),_0x5d135e=this['_urlService'][_0x1ec5ac(0xdc)](_0x1ec5ac(0x38e)),_0x14a6f9=this['_urlService'][_0x1ec5ac(0xdc)]('subunit');if(!_0x661468||!_0x5d135e){this[_0x1ec5ac(0x15e)][_0x1ec5ac(0x303)](_0x1ec5ac(0x2fc),_0x1ec5ac(0x304));return;}const _0x4c4b1b=await this['_dataLoaderService'][_0x1ec5ac(0x346)](_0x661468,Number(_0x5d135e),_0x14a6f9);_0x4c4b1b&&_0x4c4b1b instanceof a[_0x1ec5ac(0x29c)]&&this[_0x1ec5ac(0x1ab)](_0x4c4b1b);}async[_0x2ff5b3(0x1ab)](_0x2f97d3){const _0x4dacd4=_0x2ff5b3;await this['_updateSubUnitFromURLParams'](_0x2f97d3),_0x2f97d3[_0x4dacd4(0x148)][_0x4dacd4(0x2fe)](I[_0x4dacd4(0x106)](this['dispose$']))[_0x4dacd4(0x336)](_0x38a380=>{const _0x5e9c1e=_0x4dacd4;_0x38a380&&this[_0x5e9c1e(0x366)](_0x38a380);}),this[_0x4dacd4(0x19e)][_0x4dacd4(0x2f1)][_0x4dacd4(0x2fe)](I[_0x4dacd4(0x106)](this[_0x4dacd4(0x36c)]))[_0x4dacd4(0x336)](()=>this[_0x4dacd4(0x1bd)](_0x2f97d3));}[_0x2ff5b3(0x366)](_0x20734c,_0x1a8e23=!0x1){const _0x225560=_0x2ff5b3,_0x41a4c9=this[_0x225560(0x19e)][_0x225560(0xdc)]('subunit');_0x20734c[_0x225560(0x22d)]()!==_0x41a4c9&&this['_urlService'][_0x225560(0x347)](_0x225560(0x2b7),_0x20734c[_0x225560(0x22d)](),_0x1a8e23);}async[_0x2ff5b3(0x1bd)](_0x4b7869){const _0x293f07=_0x2ff5b3;var _0xc146d3;const _0x9e71c7=this[_0x293f07(0x19e)][_0x293f07(0xdc)](_0x293f07(0x2b7));if(!_0x9e71c7||!_0x4b7869['getSheetBySheetId'](_0x9e71c7)){const _0x792fb2=_0x4b7869['getUnhiddenWorksheets']()[0x0],_0x550d3d=_0x4b7869[_0x293f07(0x2f5)](_0x792fb2);if(!_0x550d3d)return;this[_0x293f07(0x366)](_0x550d3d,!0x0),await this['_commandService'][_0x293f07(0x1d3)](v[_0x293f07(0x313)]['id'],{'unitId':_0x4b7869[_0x293f07(0x237)](),'subUnitId':_0x792fb2});return;}((_0xc146d3=_0x4b7869[_0x293f07(0x30a)]())==null?void 0x0:_0xc146d3[_0x293f07(0x22d)]())!==_0x9e71c7&&await this[_0x293f07(0x1ce)][_0x293f07(0x1d3)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x4b7869['getUnitId'](),'subUnitId':_0x9e71c7});}},exports[_0x2ff5b3(0x25b)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x2ff5b3(0x209)]),Y(0x3,a[_0x2ff5b3(0x394)](u['DataLoaderService'])),Y(0x4,a[_0x2ff5b3(0x314)](qe[_0x2ff5b3(0x130)]))],exports['CollaborationDataLoaderController']);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x2671fa,_0x430c2,_0x4c1e26,_0x3b183d)=>{for(var _0x5c326d=_0x3b183d>0x1?void 0x0:_0x3b183d?lt(_0x430c2,_0x4c1e26):_0x430c2,_0x32c695=_0x2671fa['length']-0x1,_0xc6e45b;_0x32c695>=0x0;_0x32c695--)(_0xc6e45b=_0x2671fa[_0x32c695])&&(_0x5c326d=_0xc6e45b(_0x5c326d)||_0x5c326d);return _0x5c326d;},De=(_0x4b8406,_0x20ac28)=>(_0x362e40,_0x1e10a2)=>_0x20ac28(_0x362e40,_0x1e10a2,_0x4b8406);let me=class extends a['RxDisposable']{constructor(_0x365411,_0x1fccb9){const _0x142675=_0x2ff5b3;super(),this[_0x142675(0x28c)]=_0x365411,this[_0x142675(0x2f8)]=_0x1fccb9,this[_0x142675(0x263)]();}[_0x2ff5b3(0x263)](){const _0x7b5cf1=_0x2ff5b3,_0x2d5b61=this;this[_0x7b5cf1(0x2bd)](this[_0x7b5cf1(0x28c)][_0x7b5cf1(0xf2)]({'onBeforePasteImage':async _0x3a948a=>{const _0x2aa860=_0x7b5cf1,_0x4a8ac=await _0x2d5b61[_0x2aa860(0x2f8)][_0x2aa860(0x31d)](_0x3a948a);return _0x4a8ac?{'source':_0x4a8ac['source'],'imageSourceType':_0x4a8ac[_0x2aa860(0x139)]}:null;}}));}};me=_t([De(0x0,p[_0x2ff5b3(0x32c)]),De(0x1,ze[_0x2ff5b3(0x230)])],me);const Ne=['purple.300',_0x2ff5b3(0x1ae),'green.600',_0x2ff5b3(0x177),_0x2ff5b3(0x1f1),_0x2ff5b3(0x214)];class Re extends a[_0x2ff5b3(0x300)]{constructor(){const _0x5155b5=_0x2ff5b3;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x5155b5(0x114),0x0);}[_0x2ff5b3(0x2b9)](_0x38b118){const _0x41180e=_0x2ff5b3;if(this[_0x41180e(0x20d)]['has'](_0x38b118))return this[_0x41180e(0x20d)][_0x41180e(0x1c9)](_0x38b118);const _0x435294=Ne[this[_0x41180e(0x114)]];return this['_colorIndex']=(this[_0x41180e(0x114)]+0x1)%Ne[_0x41180e(0x17b)],this[_0x41180e(0x20d)][_0x41180e(0x386)](_0x38b118,_0x435294),_0x435294;}}function Fe(_0x7eb32b){const _0x2a86e0=_0x2ff5b3;let _0x4f306d='';for(const _0x3f7e24 of _0x7eb32b){const {startOffset:_0x404b2f,endOffset:_0x40a26f,isActive:_0x1295b6,rangeType:_0x3316e7,segmentId:_0x222f93,segmentPage:_0x4301b2}=_0x3f7e24;_0x4f306d[_0x2a86e0(0x17b)]&&(_0x4f306d+=','),_0x4f306d+=_0x404b2f+':'+_0x40a26f+':'+(_0x1295b6?'1':'0')+':'+_0x3316e7+':'+_0x222f93+':'+_0x4301b2;}return _0x4f306d;}function ht(_0x227596){const _0x46f451=_0x2ff5b3,_0x59a9ea=_0x227596[_0x46f451(0x216)](','),_0x3fb96e=[];for(const _0x4a6f18 of _0x59a9ea){const [_0x2d546b,_0x2b429c,_0x405822,_0x1295ad,_0xae3f58,_0x13c014]=_0x4a6f18['split'](':');_0x3fb96e[_0x46f451(0x32d)]({'startOffset':Number(_0x2d546b),'endOffset':Number(_0x2b429c),'collapsed':_0x2d546b===_0x2b429c,'isActive':_0x405822==='1','rangeType':_0x1295ad===a[_0x46f451(0x14a)]['TEXT']?a['DOC_RANGE_TYPE'][_0x46f451(0xde)]:a[_0x46f451(0x14a)][_0x46f451(0x28e)],'segmentId':typeof _0xae3f58==_0x46f451(0x211)?String(_0xae3f58):'','segmentPage':Number(_0x13c014!=null?_0x13c014:-0x1)});}return _0x3fb96e[_0x46f451(0x1d5)](_0x40e1ec=>_0x40e1ec[_0x46f451(0x2b3)])||(_0x3fb96e[0x0][_0x46f451(0x2b3)]=!0x0),_0x3fb96e;}class be extends a[_0x2ff5b3(0x131)]{constructor(){const _0x16a0f1=_0x2ff5b3;super(...arguments),_(this,_0x16a0f1(0x22b),new I[(_0x16a0f1(0x1d1))](null)),_(this,'collabCursorState$',this['_collabCursorState$'][_0x16a0f1(0x320)]());}['syncEditingCollabCursor'](_0x30f97b){const _0x3974aa=_0x2ff5b3,{unitID:_0x2da3d2,memberID:_0x2f713f,textRanges:_0x221500}=_0x30f97b,_0x281202=Fe(_0x221500);if(_0x281202==='')return;const _0x1aec45={'unitID':_0x2da3d2,'memberID':_0x2f713f,'selection':_0x281202};this[_0x3974aa(0x22b)][_0x3974aa(0x14d)](_0x1aec45);}}var ut=Object[_0x2ff5b3(0x35c)],It=(_0x2c8c89,_0x4ddc9d,_0x224cf1,_0x3a9ac2)=>{const _0x222537=_0x2ff5b3;for(var _0xbc74=_0x3a9ac2>0x1?void 0x0:_0x3a9ac2?ut(_0x4ddc9d,_0x224cf1):_0x4ddc9d,_0x2391d9=_0x2c8c89[_0x222537(0x17b)]-0x1,_0x71405c;_0x2391d9>=0x0;_0x2391d9--)(_0x71405c=_0x2c8c89[_0x2391d9])&&(_0xbc74=_0x71405c(_0xbc74)||_0xbc74);return _0xbc74;},U=(_0x1218e4,_0x2567a0)=>(_0x3be6d2,_0x4c2d5b)=>_0x2567a0(_0x3be6d2,_0x4c2d5b,_0x1218e4);const dt=0x12c,St=0x64;let ve=class extends a[_0x2ff5b3(0x131)]{constructor(_0x2397ce,_0x424bc8,_0x2c2d30,_0xd8ca18,_0x590766,_0x499025,_0x3c7145,_0x5df6d0,_0x297d23){const _0x5b1b5c=_0x2ff5b3;super(),_(this,_0x5b1b5c(0x200),!0x1),_(this,_0x5b1b5c(0x263),!0x1),_(this,_0x5b1b5c(0x29a),new I[(_0x5b1b5c(0x1d1))](new Map())),_(this,'cursorInfo$',this[_0x5b1b5c(0x29a)][_0x5b1b5c(0x320)]()),_(this,'_roomMembers$',new I['BehaviorSubject']([])),_(this,_0x5b1b5c(0x167),this[_0x5b1b5c(0x224)][_0x5b1b5c(0x2fe)](I['debounceTime'](dt))),_(this,_0x5b1b5c(0x2a3),a[_0x5b1b5c(0x325)](_0x279f6a=>{const _0x219bc2=_0x5b1b5c,_0x2b52a6={'eventID':g[_0x219bc2(0x239)][_0x219bc2(0x29d)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Fe(_0x279f6a)}};this['_session']['send'](_0x2b52a6,this[_0x219bc2(0x252)]);},St)),(this[_0x5b1b5c(0x252)]=_0x2397ce,this[_0x5b1b5c(0x172)]=_0x424bc8,this[_0x5b1b5c(0x2ed)]=_0x2c2d30,this[_0x5b1b5c(0x27c)]=_0xd8ca18,this[_0x5b1b5c(0x2ef)]=_0x590766,this['_syncEditingCollabCursorService']=_0x499025,this[_0x5b1b5c(0x194)]=_0x3c7145,this[_0x5b1b5c(0x22c)]=_0x5df6d0,this['_commandService']=_0x297d23);}get[_0x2ff5b3(0x287)](){const _0x5a63c8=_0x2ff5b3;return this[_0x5a63c8(0x29a)][_0x5a63c8(0x16c)]();}get[_0x2ff5b3(0x10e)](){return this['_roomMembers$']['getValue']();}[_0x2ff5b3(0x244)](){const _0x430ab0=_0x2ff5b3;super[_0x430ab0(0x244)](),this['_cursorInfo$']['next'](new Map()),this[_0x430ab0(0x29a)][_0x430ab0(0x327)](),this[_0x430ab0(0x224)][_0x430ab0(0x14d)]([]),this[_0x430ab0(0x224)][_0x430ab0(0x327)]();}[_0x2ff5b3(0x249)](){const _0xe24109=_0x2ff5b3;this[_0xe24109(0x263)]||(this[_0xe24109(0x263)]=!0x0,this['_session'][_0xe24109(0x2b5)][_0xe24109(0x2fe)](I[_0xe24109(0x106)](this[_0xe24109(0x36c)]))[_0xe24109(0x336)](_0x13e1b0=>{const _0x1255fa=_0xe24109;_0x13e1b0===u['SessionStatus'][_0x1255fa(0xe0)]?this['_toggleOnline']():this[_0x1255fa(0x334)]();}),this[_0xe24109(0x172)][_0xe24109(0x21f)][_0xe24109(0x2fe)](I[_0xe24109(0x106)](this['dispose$']))[_0xe24109(0x336)](_0x1772d0=>{const _0x34ecb4=_0xe24109,_0x450695=_0x1772d0[_0x34ecb4(0x1b9)];_0x450695===g[_0x34ecb4(0x239)][_0x34ecb4(0x29d)]&&this[_0x34ecb4(0x26f)](_0x1772d0),_0x450695===g['CollaborationEvent']['USERS_LEAVE']&&this[_0x34ecb4(0x1c0)](_0x1772d0);}),this['disposeWithMe'](this[_0xe24109(0x1ce)][_0xe24109(0x142)](_0x2b9f05=>{const _0x3d7257=_0xe24109,_0x384169=_0x2b9f05[_0x3d7257(0x210)];_0x384169!=null&&this[_0x3d7257(0x200)]&&_0x2b9f05['id']===V['SetTextSelectionsOperation']['id']&&_0x384169['unitId']===this[_0x3d7257(0x252)]&&_0x384169[_0x3d7257(0x2ae)]===!0x1&&_0x384169[_0x3d7257(0x33b)][_0x3d7257(0x17b)]>0x0&&this[_0x3d7257(0x2a3)](_0x384169['ranges']);})),this[_0xe24109(0x25d)]['collabCursorState$'][_0xe24109(0x2fe)](I['takeUntil'](this['dispose$']))['subscribe'](_0x487cb6=>{const _0x1a7f90=_0xe24109;if((_0x487cb6==null?void 0x0:_0x487cb6[_0x1a7f90(0x252)])!==this['unitID'])return;const _0x58456c={'eventID':g['CollaborationEvent'][_0x1a7f90(0x29d)],'data':_0x487cb6};this[_0x1a7f90(0x26f)](_0x58456c);}),this[_0xe24109(0x2bd)](this['_commandService'][_0xe24109(0x142)](_0x2d4169=>{const _0x230b7a=_0xe24109;if(_0x2d4169['params']==null)return;const _0x195651=_0x2d4169[_0x230b7a(0x210)];if(_0x2d4169['id']!==V[_0x230b7a(0x305)]['id']||_0x195651[_0x230b7a(0x331)]!==this['unitID'])return;const _0x4be4ac={'id':_0x230b7a(0x2de),'params':_0x195651},_0x4988ee=this[_0x230b7a(0x287)];for(const [_0x1a2b67,_0x382528]of _0x4988ee){const _0x48c246={'id':_0x230b7a(0x2de),'params':{'unitId':this[_0x230b7a(0x252)],'actions':null,'textRanges':_0x382528[_0x230b7a(0x33b)]}},_0x484f7d=this[_0x230b7a(0x194)][_0x230b7a(0x354)](_0x4be4ac,_0x48c246,!0x1);if(g[_0x230b7a(0x381)](_0x484f7d))throw _0x484f7d[_0x230b7a(0x2a7)];_0x4988ee[_0x230b7a(0x386)](_0x1a2b67,{..._0x382528,'ranges':_0x484f7d[_0x230b7a(0x37d)]['params'][_0x230b7a(0x10c)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x4988ee);});})));}['_onCursorUpdate'](_0x3936b3){const _0x18e36a=_0x2ff5b3;var _0x4f4a08,_0x2c979b;const {memberID:_0x92815e,selection:_0x259cdc}=_0x3936b3[_0x18e36a(0x34c)],_0x5de089=ht(_0x259cdc),_0x8ae25d=(_0x2c979b=(_0x4f4a08=this[_0x18e36a(0x2ef)][_0x18e36a(0x378)](this[_0x18e36a(0x252)],_0x92815e))==null?void 0x0:_0x4f4a08['name'])!=null?_0x2c979b:_0x18e36a(0xfa),_0x3af0a6={'color':this[_0x18e36a(0x27c)][_0x18e36a(0x2b9)](_0x92815e),'name':_0x8ae25d,'ranges':_0x5de089},_0x244eb7=this['cursorInfo'];_0x244eb7[_0x18e36a(0x386)](_0x92815e,_0x3af0a6),this['_cursorInfo$'][_0x18e36a(0x14d)](_0x244eb7);}[_0x2ff5b3(0x1c0)](_0x84218a){const _0x36c51d=_0x2ff5b3,{memberID:_0x6bb0ec}=_0x84218a[_0x36c51d(0x34c)],_0x1b3886=this[_0x36c51d(0x287)];_0x1b3886[_0x36c51d(0x365)](_0x6bb0ec),this[_0x36c51d(0x29a)][_0x36c51d(0x14d)](_0x1b3886);}[_0x2ff5b3(0xea)](){const _0x593819=_0x2ff5b3;var _0x3ddbbc;if(this[_0x593819(0x200)]=!0x0,((_0x3ddbbc=this[_0x593819(0x22c)][_0x593819(0x11c)]())==null?void 0x0:_0x3ddbbc[_0x593819(0x237)]())!==this['unitID'])return;const _0x419c7f=this['_injector']['get'](V[_0x593819(0x2ba)])[_0x593819(0x1e1)]();Array['isArray'](_0x419c7f)&&_0x419c7f[_0x593819(0x17b)]>0x0&&this['_updateLocalCursor'](_0x419c7f);}[_0x2ff5b3(0x334)](){const _0x4bee30=_0x2ff5b3;this[_0x4bee30(0x200)]=!0x1;}};ve=It([U(0x2,a[_0x2ff5b3(0x394)](a['Injector'])),U(0x3,a['Inject'](Re)),U(0x4,a[_0x2ff5b3(0x394)](u[_0x2ff5b3(0xe2)])),U(0x5,a['Inject'](be)),U(0x6,g[_0x2ff5b3(0x289)]),U(0x7,a[_0x2ff5b3(0x21b)]),U(0x8,a[_0x2ff5b3(0x209)])],ve);var ft=Object[_0x2ff5b3(0x35c)],mt=(_0x243e69,_0x360b8d,_0xcb7915,_0x12d9f0)=>{const _0x240adf=_0x2ff5b3;for(var _0x3985b0=_0x12d9f0>0x1?void 0x0:_0x12d9f0?ft(_0x360b8d,_0xcb7915):_0x360b8d,_0x1b292b=_0x243e69[_0x240adf(0x17b)]-0x1,_0x179215;_0x1b292b>=0x0;_0x1b292b--)(_0x179215=_0x243e69[_0x1b292b])&&(_0x3985b0=_0x179215(_0x3985b0)||_0x3985b0);return _0x3985b0;},w=(_0x12a203,_0xc28d27)=>(_0x29b217,_0x4b3832)=>_0xc28d27(_0x29b217,_0x4b3832,_0x12a203);const vt=0x12c,gt=0x64,Et=()=>{let _0xc2f754=[],_0x5bf4e7=!0x1;return _0x10bd2e=>{const _0x45ccc6=_0x140f;_0xc2f754[_0x45ccc6(0x32d)](_0x10bd2e),_0x5bf4e7||(_0x5bf4e7=!0x0,setTimeout(()=>{const _0x44beb0=_0x45ccc6;_0xc2f754[_0x44beb0(0x1fc)](_0xb4ac1=>_0xb4ac1()),_0xc2f754=[],_0x5bf4e7=!0x1;}));};};let ge=class extends a[_0x2ff5b3(0x131)]{constructor(_0x3d7aef,_0x41641b,_0x478e8a,_0x47ca5f,_0x5606f0,_0x38eedc,_0x2f3751,_0x21bc3e){const _0x489cbe=_0x2ff5b3;super(),_(this,_0x489cbe(0x200),!0x1),_(this,_0x489cbe(0x263),!0x1),_(this,'_cursorInfo$',new I[(_0x489cbe(0x1d1))](new Map())),_(this,'cursorInfo$',this[_0x489cbe(0x29a)][_0x489cbe(0x320)]()),_(this,_0x489cbe(0x224),new I[(_0x489cbe(0x1d1))]([])),_(this,_0x489cbe(0x167),this[_0x489cbe(0x224)][_0x489cbe(0x2fe)](I[_0x489cbe(0x2f2)](vt))),_(this,_0x489cbe(0x2a3),a[_0x489cbe(0x325)]((_0x440244,_0x1235f0)=>{const _0xaa0dc9=_0x489cbe,_0x56b1d3={'eventID':g['CollaborationEvent'][_0xaa0dc9(0x29d)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0xaa0dc9(0x321)](),'selection':B[_0xaa0dc9(0x158)](_0x440244,_0x1235f0[_0xaa0dc9(0x175)])}};this[_0xaa0dc9(0x172)][_0xaa0dc9(0x38f)](_0x56b1d3,this[_0xaa0dc9(0x252)]);},gt)),(this[_0x489cbe(0x252)]=_0x3d7aef,this['_session']=_0x41641b,this[_0x489cbe(0x2ed)]=_0x478e8a,this['_colorAssignService']=_0x47ca5f,this[_0x489cbe(0x2ef)]=_0x5606f0,this[_0x489cbe(0x22c)]=_0x38eedc,this['_commandService']=_0x2f3751,this[_0x489cbe(0x14e)]=_0x21bc3e);}get[_0x2ff5b3(0x287)](){const _0xb07be6=_0x2ff5b3;return this[_0xb07be6(0x29a)][_0xb07be6(0x16c)]();}get[_0x2ff5b3(0x10e)](){const _0xba2dbb=_0x2ff5b3;return this[_0xba2dbb(0x224)][_0xba2dbb(0x16c)]();}[_0x2ff5b3(0x244)](){const _0x554ae3=_0x2ff5b3;super['dispose'](),this['_cursorInfo$'][_0x554ae3(0x14d)](new Map()),this[_0x554ae3(0x29a)][_0x554ae3(0x327)](),this['_roomMembers$']['next']([]),this[_0x554ae3(0x224)][_0x554ae3(0x327)]();}[_0x2ff5b3(0x249)](){const _0x258cb0=_0x2ff5b3;this[_0x258cb0(0x263)]||(this['_init']=!0x0,this['_session'][_0x258cb0(0x2b5)]['pipe'](I[_0x258cb0(0x106)](this[_0x258cb0(0x36c)]))[_0x258cb0(0x336)](_0x250206=>{const _0x2a9bff=_0x258cb0;_0x250206===u[_0x2a9bff(0xe9)][_0x2a9bff(0xe0)]?this[_0x2a9bff(0xea)]():this[_0x2a9bff(0x334)]();}),this[_0x258cb0(0x172)][_0x258cb0(0x21f)][_0x258cb0(0x2fe)](I[_0x258cb0(0x106)](this[_0x258cb0(0x36c)]))[_0x258cb0(0x336)](_0x598d7a=>{const _0x8ed02c=_0x258cb0,_0xaf44aa=_0x598d7a[_0x8ed02c(0x1b9)];_0xaf44aa===g['CollaborationEvent'][_0x8ed02c(0x29d)]&&this['_onCursorUpdate'](_0x598d7a),_0xaf44aa===g[_0x8ed02c(0x239)]['USERS_LEAVE']&&this[_0x8ed02c(0x1c0)](_0x598d7a);}),this[_0x258cb0(0x25a)](),this['disposeWithMe'](this[_0x258cb0(0x1ce)][_0x258cb0(0x142)](_0x3833b7=>{const _0x3f3ea0=_0x258cb0;if(this['_online']&&_0x3833b7['id']===v['SetSelectionsOperation']['id']&&_0x3833b7[_0x3f3ea0(0x210)][_0x3f3ea0(0x331)]===this['unitID']){const _0x551ab5=_0x3833b7['params'];this[_0x3f3ea0(0x2a3)](_0x551ab5['subUnitId'],_0x551ab5['selections'][0x0]);}})));}[_0x2ff5b3(0x26f)](_0xb19c17){const _0x23ee2b=_0x2ff5b3;var _0xf239de,_0x2611b2;const {memberID:_0x39312c,selection:_0x1d0654}=_0xb19c17[_0x23ee2b(0x34c)],{sheetName:_0x201347,range:_0x1e32df}=B[_0x23ee2b(0x1b1)](_0x1d0654),_0x152aa8={'name':(_0x2611b2=(_0xf239de=this[_0x23ee2b(0x2ef)]['getMember'](this[_0x23ee2b(0x252)],_0x39312c))==null?void 0x0:_0xf239de[_0x23ee2b(0x250)])!=null?_0x2611b2:'Unknown\x20user','range':this[_0x23ee2b(0x1e5)](_0x201347,_0x1e32df),'sheetID':_0x201347,'color':this[_0x23ee2b(0x27c)][_0x23ee2b(0x2b9)](_0x39312c),'selection':_0x1d0654},_0x3ba0c0=this[_0x23ee2b(0x287)];_0x3ba0c0[_0x23ee2b(0x386)](_0x39312c,_0x152aa8),this['_cursorInfo$'][_0x23ee2b(0x14d)](_0x3ba0c0);}[_0x2ff5b3(0x1c0)](_0x622fc7){const _0x2022f5=_0x2ff5b3,{memberID:_0x41cc67}=_0x622fc7[_0x2022f5(0x34c)],_0x43e367=this[_0x2022f5(0x287)];_0x43e367[_0x2022f5(0x365)](_0x41cc67),this['_cursorInfo$'][_0x2022f5(0x14d)](_0x43e367);}[_0x2ff5b3(0x1e5)](_0x3b9bb6,_0x78ccc0){const _0x1e4834=_0x2ff5b3;var _0x8c4290,_0x2b8f37;const _0x57f88c=(_0x2b8f37=(_0x8c4290=this[_0x1e4834(0x22c)]['getUniverSheetInstance'](this[_0x1e4834(0x252)]))==null?void 0x0:_0x8c4290['getSheetBySheetId'](_0x3b9bb6))==null?void 0x0:_0x2b8f37[_0x1e4834(0x119)]();return(_0x57f88c==null?void 0x0:_0x57f88c['find'](_0x5d59d8=>a['Rectangle']['contains'](_0x5d59d8,_0x78ccc0)))||_0x78ccc0;}[_0x2ff5b3(0x25a)](){const _0x2062fa=_0x2ff5b3,_0x124b13=new a[(_0x2062fa(0x198))](),_0x3cc583=Et(),_0x251f0b=()=>{const _0x36b489=_0x2062fa;_0x124b13[_0x36b489(0x244)]();const _0x3151d=(_0x59b460,_0x44a947,_0x378aa8,_0x2c9ff2)=>{const _0x26c215=_0x36b489;let _0x41e71c=[];switch(_0x59b460['id']){case v[_0x26c215(0x19f)][_0x26c215(0x20a)]:{_0x41e71c=v[_0x26c215(0x1cf)](_0x59b460,_0x2c9ff2);break;}case v['EffectRefRangId'][_0x26c215(0x1a2)]:{_0x41e71c=v['handleDeleteRangeMoveUp'](_0x59b460,_0x2c9ff2);break;}case v['EffectRefRangId'][_0x26c215(0x2c3)]:{_0x41e71c=v[_0x26c215(0x2d5)](_0x59b460,_0x2c9ff2);break;}case v[_0x26c215(0x19f)]['InsertRangeMoveDownCommandId']:{_0x41e71c=v[_0x26c215(0x163)](_0x59b460,_0x2c9ff2);break;}case v[_0x26c215(0x19f)][_0x26c215(0xe8)]:{_0x41e71c=v[_0x26c215(0x262)](_0x59b460,_0x2c9ff2);break;}case v[_0x26c215(0x19f)]['InsertRowCommandId']:{_0x41e71c=v[_0x26c215(0x1ec)](_0x59b460,_0x2c9ff2);break;}case v['EffectRefRangId'][_0x26c215(0x2a5)]:{_0x41e71c=v[_0x26c215(0xeb)](_0x59b460,_0x2c9ff2);break;}case v[_0x26c215(0x19f)][_0x26c215(0x233)]:{_0x41e71c=v[_0x26c215(0xf6)](_0x59b460,_0x2c9ff2);break;}case v['EffectRefRangId'][_0x26c215(0x264)]:{_0x41e71c=v[_0x26c215(0x1a7)](_0x59b460,_0x2c9ff2);break;}}const _0x28cbbe=v[_0x26c215(0x1fb)](_0x41e71c,_0x2c9ff2),_0x6ab597=this[_0x26c215(0x287)][_0x26c215(0x1c9)](_0x44a947);if(_0x6ab597&&_0x28cbbe){const _0xac8f72={..._0x6ab597,'range':_0x28cbbe};this[_0x26c215(0x287)][_0x26c215(0x386)](_0x44a947,_0xac8f72),_0x3cc583(()=>{const _0x33d673=_0x26c215,_0xb0f5a8=this[_0x33d673(0x14e)][_0x33d673(0x37e)](_0x28cbbe,_0xa6b8c9=>(_0xb0f5a8['dispose'](),_0x3151d(_0xa6b8c9,_0x44a947,_0x378aa8,_0x28cbbe)));_0x124b13[_0x33d673(0x1ac)](_0xb0f5a8);});}return{'redos':[],'undos':[]};};this[_0x36b489(0x287)]['forEach']((_0xb5bcab,_0xa41d5)=>{const _0x1834ee=_0x36b489,{range:_0x90752c,sheetID:_0x505f5f}=_0xb5bcab,_0x5e0ca6=this[_0x1834ee(0x14e)][_0x1834ee(0x37e)](_0x90752c,_0x15fc97=>(_0x5e0ca6[_0x1834ee(0x244)](),_0x3151d(_0x15fc97,_0xa41d5,_0x505f5f,_0x90752c)));_0x124b13[_0x1834ee(0x1ac)](_0x5e0ca6);});};this['disposeWithMe'](a[_0x2062fa(0x223)](this[_0x2062fa(0x29a)][_0x2062fa(0x336)](()=>{_0x251f0b();})));}['_toggleOnline'](){const _0x5a1f82=_0x2ff5b3;var _0x39727f,_0xd1e4ed;if(this[_0x5a1f82(0x200)]=!0x0,((_0x39727f=this[_0x5a1f82(0x22c)][_0x5a1f82(0x11c)]())==null?void 0x0:_0x39727f[_0x5a1f82(0x237)]())!==this['unitID'])return;const _0x463280=(_0xd1e4ed=this[_0x5a1f82(0x2ed)]['get'](v[_0x5a1f82(0x2a6)])[_0x5a1f82(0x357)]())==null?void 0x0:_0xd1e4ed[0x0],_0x40d3f8=this[_0x5a1f82(0x22c)][_0x5a1f82(0x1b7)](a[_0x5a1f82(0x25e)][_0x5a1f82(0x1ea)])[_0x5a1f82(0x30a)]();_0x463280&&_0x40d3f8&&this['_updateLocalCursor'](_0x40d3f8[_0x5a1f82(0x22d)](),_0x463280);}['_toggleOffline'](){const _0x310160=_0x2ff5b3;this[_0x310160(0x200)]=!0x1;}};ge=mt([w(0x2,a[_0x2ff5b3(0x394)](a['Injector'])),w(0x3,a[_0x2ff5b3(0x394)](Re)),w(0x4,a[_0x2ff5b3(0x394)](u['MemberService'])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x2ff5b3(0x209)]),w(0x7,a[_0x2ff5b3(0x394)](v['RefRangeService']))],ge);var Ct=Object[_0x2ff5b3(0x35c)],pt=(_0x2b7c2e,_0x1490e8,_0x39bb01,_0x5c99f7)=>{for(var _0x4c8fb4=_0x5c99f7>0x1?void 0x0:_0x5c99f7?Ct(_0x1490e8,_0x39bb01):_0x1490e8,_0x3eabe4=_0x2b7c2e['length']-0x1,_0x2765f3;_0x3eabe4>=0x0;_0x3eabe4--)(_0x2765f3=_0x2b7c2e[_0x3eabe4])&&(_0x4c8fb4=_0x2765f3(_0x4c8fb4)||_0x4c8fb4);return _0x4c8fb4;},ce=(_0x5bf7f1,_0x40e963)=>(_0x55e6c8,_0x183d79)=>_0x40e963(_0x55e6c8,_0x183d79,_0x5bf7f1);let F=class extends a[_0x2ff5b3(0x131)]{constructor(_0x53610d,_0x5948bf,_0x222075){const _0x3ce713=_0x2ff5b3;super(),_(this,_0x3ce713(0x246),new Map()),_(this,_0x3ce713(0x2cb),new I[(_0x3ce713(0x2e6))]()),(this['_univerInstanceService']=_0x53610d,this['_injector']=_0x5948bf,this[_0x3ce713(0x292)]=_0x222075,this[_0x3ce713(0x263)]());}[_0x2ff5b3(0x244)](){const _0x7499bd=_0x2ff5b3;super['dispose'](),this['_entityInit$'][_0x7499bd(0x327)](),this[_0x7499bd(0x246)]['forEach'](_0x311bad=>_0x311bad[_0x7499bd(0x244)]());}['getCollabCursors$'](_0x2f3de8){const _0x5d5217=_0x2ff5b3;return this[_0x5d5217(0x246)][_0x5d5217(0xf3)](_0x2f3de8)?this[_0x5d5217(0x246)][_0x5d5217(0x1c9)](_0x2f3de8)[_0x5d5217(0x2be)]:this['_entityInit$'][_0x5d5217(0x2fe)](I[_0x5d5217(0x1b2)](_0x55d9f6=>_0x55d9f6[_0x5d5217(0x252)]===_0x2f3de8),I[_0x5d5217(0x359)](_0x436876=>_0x436876[_0x5d5217(0x2be)]));}[_0x2ff5b3(0x263)](){const _0x167109=_0x2ff5b3;this[_0x167109(0x22c)][_0x167109(0x1df)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x167109(0x2fe)](I[_0x167109(0x106)](this[_0x167109(0x36c)]))[_0x167109(0x336)](async _0x750ade=>{const _0x97149f=_0x167109,_0xfa6c1a=_0x750ade['getUnitId'](),_0x29c0e4=await this['_startSheetCollabCursor'](_0xfa6c1a);this[_0x97149f(0x2cb)]['next'](_0x29c0e4),this['_entities'][_0x97149f(0x386)](_0xfa6c1a,_0x29c0e4);}),this['_univerInstanceService'][_0x167109(0x1df)](a['UniverInstanceType'][_0x167109(0x2b0)])[_0x167109(0x2fe)](I[_0x167109(0x106)](this[_0x167109(0x36c)]))[_0x167109(0x2fe)](I['filter'](_0x316303=>!_0x316303[_0x167109(0x237)]()[_0x167109(0x2f3)]('__')))['subscribe'](async _0x26795d=>{const _0x4c6d51=_0x167109,_0x2f9438=_0x26795d[_0x4c6d51(0x237)](),_0x545fde=await this['_startDocCollabCursor'](_0x2f9438);this[_0x4c6d51(0x2cb)]['next'](_0x545fde),this[_0x4c6d51(0x246)][_0x4c6d51(0x386)](_0x2f9438,_0x545fde);}),I[_0x167109(0x33f)](this[_0x167109(0x22c)][_0x167109(0x156)](a['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x167109(0x25e)][_0x167109(0x1ea)]))['pipe'](I[_0x167109(0x106)](this['dispose$']))[_0x167109(0x336)](_0x36b106=>{const _0x25d7d9=_0x167109,_0x4d2674=_0x36b106[_0x25d7d9(0x237)](),_0x1c53d1=this['_entities'][_0x25d7d9(0x1c9)](_0x4d2674);_0x1c53d1&&(_0x1c53d1[_0x25d7d9(0x244)](),this[_0x25d7d9(0x246)][_0x25d7d9(0x365)](_0x4d2674));});}async[_0x2ff5b3(0x370)](_0x5d1f1c){const _0x1f842d=_0x2ff5b3,_0x220b95=await this[_0x1f842d(0x292)][_0x1f842d(0x120)](_0x5d1f1c),_0x2bd5b6=this[_0x1f842d(0x2ed)][_0x1f842d(0x195)](ge,_0x5d1f1c,_0x220b95);return _0x2bd5b6[_0x1f842d(0x249)](),_0x2bd5b6;}async['_startDocCollabCursor'](_0x1424ee){const _0x1c8d1e=_0x2ff5b3,_0x296eb1=await this[_0x1c8d1e(0x292)][_0x1c8d1e(0x120)](_0x1424ee),_0x1d6202=this[_0x1c8d1e(0x2ed)][_0x1c8d1e(0x195)](ve,_0x1424ee,_0x296eb1);return _0x1d6202['init'](),_0x1d6202;}};F=pt([ce(0x0,a[_0x2ff5b3(0x21b)]),ce(0x1,a[_0x2ff5b3(0x394)](a['Injector'])),ce(0x2,a['Inject'](u[_0x2ff5b3(0x341)]))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x240c78,_0xb9e3f4){const _0xc1dd27=_0x2ff5b3;let {radius:_0x358e8d,width:_0x267800,height:_0x5151c9}=_0xb9e3f4;_0x358e8d=_0x358e8d!=null?_0x358e8d:0x0,_0x267800=_0x267800!=null?_0x267800:0x1e,_0x5151c9=_0x5151c9!=null?_0x5151c9:0x1e;let _0x4ff96b=0x0,_0x374587=0x0,_0x88e94e=0x0;_0x4ff96b=_0x374587=_0x88e94e=Math[_0xc1dd27(0x290)](_0x358e8d,_0x267800/0x2,_0x5151c9/0x2),_0x240c78[_0xc1dd27(0x226)](),_0x240c78['moveTo'](_0x4ff96b,0x0),_0x240c78[_0xc1dd27(0x1ca)](_0x267800-_0x374587,0x0),_0x240c78[_0xc1dd27(0x2eb)](_0x267800-_0x374587,_0x374587,_0x374587,Math['PI']*0x3/0x2,0x0,!0x1),_0x240c78[_0xc1dd27(0x1ca)](_0x267800,_0x5151c9-_0x88e94e),_0x240c78[_0xc1dd27(0x2eb)](_0x267800-_0x88e94e,_0x5151c9-_0x88e94e,_0x88e94e,0x0,Math['PI']/0x2,!0x1),_0x240c78[_0xc1dd27(0x1ca)](0x0,_0x5151c9),_0x240c78[_0xc1dd27(0x1ca)](0x0,_0x4ff96b),_0x240c78[_0xc1dd27(0x2eb)](_0x4ff96b,_0x4ff96b,_0x4ff96b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x240c78['closePath'](),_0xb9e3f4[_0xc1dd27(0x309)]&&(_0x240c78[_0xc1dd27(0x14f)](),_0x240c78['fillStyle']=_0xb9e3f4['fill'],_0xb9e3f4[_0xc1dd27(0x255)]===_0xc1dd27(0x18d)?_0x240c78['fill'](_0xc1dd27(0x18d)):_0x240c78[_0xc1dd27(0x309)](),_0x240c78['restore']());}class re extends C['Shape']{constructor(_0xc677c5,_0x20ac63){const _0x496fc0=_0x2ff5b3;super(_0xc677c5,_0x20ac63),_(this,_0x496fc0(0x2ee)),_(this,'text'),(this[_0x496fc0(0x2ee)]=_0x20ac63==null?void 0x0:_0x20ac63[_0x496fc0(0x2ee)],this['text']=_0x20ac63==null?void 0x0:_0x20ac63[_0x496fc0(0x217)]);}static[_0x2ff5b3(0x282)](_0x2da99c,_0x1c49ca){const _0x30b7f4=_0x2ff5b3,{text:_0x2b0c69,color:_0x210537}=_0x1c49ca;_0x2da99c[_0x30b7f4(0x14f)](),_0x2da99c[_0x30b7f4(0xec)]=_0x30b7f4(0x174);const _0x2c4e76=_0x2da99c['measureText'](_0x2b0c69)[_0x30b7f4(0x1cb)],_0x4ca9f2=Math[_0x30b7f4(0x290)](_0x2c4e76+0x2*le,Ue);Ot(_0x2da99c,{'height':X,'radius':0x4,'width':_0x4ca9f2,'fill':_0x210537}),_0x2da99c[_0x30b7f4(0x391)]=_0x30b7f4(0x1e9);const _0x3dd91c=le,_0x4d9d72=X-Tt,_0x3b40f6=Ue-0x2*le;if(_0x2c4e76>_0x3b40f6){let _0x4e5c7b='',_0x1568ac=0x0;for(const _0x2218c9 of _0x2b0c69){const _0x587f90=_0x2da99c[_0x30b7f4(0x1f9)](_0x2218c9)[_0x30b7f4(0x1cb)];if(_0x1568ac+_0x587f90<=_0x3b40f6-_0x2da99c['measureText'](_0x30b7f4(0x299))[_0x30b7f4(0x1cb)])_0x4e5c7b+=_0x2218c9,_0x1568ac+=_0x587f90;else{_0x4e5c7b+=_0x30b7f4(0x299);break;}}_0x2da99c[_0x30b7f4(0x2ff)](_0x4e5c7b,_0x3dd91c,_0x4d9d72);}else _0x2da99c[_0x30b7f4(0x2ff)](_0x2b0c69,_0x3dd91c,_0x4d9d72);_0x2da99c['restore']();}[_0x2ff5b3(0x157)](_0x4b4c93){const _0x5537b0=_0x2ff5b3;re[_0x5537b0(0x282)](_0x4b4c93,this);}}const _e=_0x2ff5b3(0x33d),Rt='collab-text-range-',bt=_0x2ff5b3(0x2a9),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x2ff5b3(0x15f);class Le{constructor(_0x12e5ea,_0x57085e,_0xbe7c1,_0x3e5e41){const _0x278a4a=_0x2ff5b3;_(this,_0x278a4a(0x36f),[]),_(this,_0x278a4a(0x25c),null),_(this,_0x278a4a(0xf1),null),_(this,_0x278a4a(0x178),null),_(this,_0x278a4a(0x375),null),_(this,_0x278a4a(0x2f0),null),(this[_0x278a4a(0xd3)]=_0x12e5ea,this[_0x278a4a(0x315)]=_0x57085e,this[_0x278a4a(0x330)]=_0xbe7c1,this['_document']=_0x3e5e41,this['_render']());}set[_0x2ff5b3(0x308)](_0x3e12d7){const _0x46de6d=_0x2ff5b3;_0x3e12d7?(this[_0x46de6d(0x178)]&&this[_0x46de6d(0x178)][_0x46de6d(0x168)](),this[_0x46de6d(0xf1)]&&this[_0x46de6d(0xf1)][_0x46de6d(0x20e)]()):(this[_0x46de6d(0x178)]&&this['_anchorDot'][_0x46de6d(0x20e)](),this[_0x46de6d(0xf1)]&&this['_textBubble']['hide']());}['dispose'](){const _0x5a42ca=_0x2ff5b3;for(const _0x27247d of this[_0x5a42ca(0x36f)])_0x27247d['dispose']();this[_0x5a42ca(0xf1)]&&this[_0x5a42ca(0xf1)][_0x5a42ca(0x244)](),this[_0x5a42ca(0x178)]&&this[_0x5a42ca(0x178)][_0x5a42ca(0x244)](),this['_anchor']&&this['_anchor'][_0x5a42ca(0x244)](),this[_0x5a42ca(0x2f0)]&&this[_0x5a42ca(0x2f0)]();}[_0x2ff5b3(0x1f6)](){const _0xe1da91=_0x2ff5b3;var _0x55dcab;const {_docSkeleton:_0xc062e3,_document:_0x46d34e}=this,{color:_0x3173eb,name:_0x4d6449,ranges:_0x3e1eba}=this[_0xe1da91(0xd3)],_0x401323=_0x46d34e[_0xe1da91(0x2f4)](),{docsLeft:_0x4a3a79,docsTop:_0x24e351}=_0x401323,_0x2b630f=new p['NodePositionConvertToCursor'](_0x401323,_0xc062e3);for(const {startOffset:_0x328155,endOffset:_0x5ed3f1,rangeType:_0x25b011,segmentId:_0x16775f,segmentPage:_0x225e18,collapsed:_0x2c220a,isActive:_0x427bc5}of _0x3e1eba){const _0x497370=_0xc062e3[_0xe1da91(0x146)](_0x328155,!0x0,_0x16775f,_0x225e18);let _0x2bf19a=_0xc062e3['findNodePositionByCharIndex'](_0x5ed3f1,!0x0,_0x16775f,_0x225e18);if(_0x2bf19a==null&&(_0x2bf19a=_0xc062e3[_0xe1da91(0x146)](_0x5ed3f1-0x1,!0x1,_0x16775f,_0x225e18)),_0x427bc5){const {contentBoxPointGroup:_0x15990c}=_0x2b630f[_0xe1da91(0x372)](_0x2bf19a,_0x2bf19a);if(_0x15990c[_0xe1da91(0x17b)]===0x0)continue;this[_0xe1da91(0x350)](_0x3173eb,_0x15990c,_0x4a3a79,_0x24e351,_0x4d6449),this['_eventUnsubscribe']=this[_0xe1da91(0xed)]();}if(_0x497370&&_0x2bf19a){if(_0x25b011===a['DOC_RANGE_TYPE']['RECT']){const _0x25cc64=new p[(_0xe1da91(0x2e9))](_0x401323,_0xc062e3),{pointGroup:_0x12dfcc}=(_0x55dcab=_0x25cc64[_0xe1da91(0x372)](_0x497370,_0x2bf19a))!=null?_0x55dcab:{};if(_0x12dfcc==null||_0x12dfcc[_0xe1da91(0x17b)]===0x0)continue;this[_0xe1da91(0x1b4)](_0x3173eb,_0x12dfcc,_0x4a3a79,_0x24e351);}else{if(!_0x2c220a){const {borderBoxPointGroup:_0x29bc15}=_0x2b630f[_0xe1da91(0x372)](_0x497370,_0x2bf19a);if(_0x29bc15['length']===0x0)continue;this['_drawTextRange'](_0x3173eb,_0x29bc15,_0x4a3a79,_0x24e351);}}}}}[_0x2ff5b3(0x350)](_0x239b23,_0x4aa4e6,_0x6c91ae,_0x12ca3f,_0x3c39b7){const _0x1c9519=_0x2ff5b3,_0x4973b2=this[_0x1c9519(0x360)](_0x4aa4e6),{left:_0x427eb8,top:_0x587480,height:_0x26069a}=_0x4973b2,_0x5879f5=this['_getScale'](),_0xa06995=Nt/_0x5879f5,_0x2221f1=new C[(_0x1c9519(0x256))](_e+a[_0x1c9519(0x23b)](H),{'left':_0x427eb8+_0x6c91ae-_0xa06995,'top':_0x587480+_0x12ca3f,'height':_0x26069a,'width':Dt,'fill':_0x239b23||C['getColor'](a[_0x1c9519(0x179)]['black'],0x0),'strokeWidth':_0xa06995,'stroke':Ut,'evented':!0x0});this[_0x1c9519(0x25c)]=_0x2221f1,this[_0x1c9519(0x315)][_0x1c9519(0x32a)](_0x2221f1,p[_0x1c9519(0x385)]);const _0x301c71=new C[(_0x1c9519(0x256))](_e+a['generateRandomId'](H),{'left':_0x427eb8+_0x6c91ae-_0xa06995,'top':_0x587480+_0x12ca3f-he/0x2,'height':he,'width':he,'fill':_0x239b23||C[_0x1c9519(0x259)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x239b23||C[_0x1c9519(0x259)](a[_0x1c9519(0x179)][_0x1c9519(0x31a)],0x0),'evented':!0x1});this[_0x1c9519(0x178)]=_0x301c71,this[_0x1c9519(0x315)]['addObject'](_0x301c71,p[_0x1c9519(0x385)]);const _0x1b7a09=new re(_e+a[_0x1c9519(0x23b)](H),{'left':_0x427eb8+_0x6c91ae-_0xa06995,'top':_0x587480+_0x12ca3f-X,'text':_0x3c39b7,'color':_0x239b23});this['_textBubble']=_0x1b7a09,this[_0x1c9519(0x315)][_0x1c9519(0x32a)](_0x1b7a09,p[_0x1c9519(0x385)]),this[_0x1c9519(0x308)]=!0x1;}[_0x2ff5b3(0xed)](){const _0x56fb5b=_0x2ff5b3,_0x53f10d=this[_0x56fb5b(0x25c)]['onPointerEnter$'][_0x56fb5b(0x29f)](()=>{const _0x54d078=_0x56fb5b;this[_0x54d078(0x308)]=!0x0;}),_0x4260e0=this[_0x56fb5b(0x25c)][_0x56fb5b(0x121)][_0x56fb5b(0x29f)](()=>{const _0x2ce6d6=_0x56fb5b;this['_hideTimer']&&clearTimeout(this[_0x2ce6d6(0x375)]),this['_hideTimer']=setTimeout(()=>{const _0x49e0e6=_0x2ce6d6;this[_0x49e0e6(0x308)]=!0x1;},0x7d0);});return()=>{const _0xfbc895=_0x56fb5b;_0x53f10d[_0xfbc895(0x17f)](),_0x4260e0[_0xfbc895(0x17f)]();};}[_0x2ff5b3(0x147)](_0x57556b,_0x5be54d,_0x8adb80,_0x56608c){const _0x527807=_0x2ff5b3,_0x370e83=new a[(_0x527807(0x1fa))](_0x57556b)[_0x527807(0x102)](0.2)[_0x527807(0x26d)](),_0x5cd2d3=new C[(_0x527807(0x393))](Rt+a['generateRandomId'](H),{'pointsGroup':_0x5be54d,'fill':_0x370e83||C['getColor'](a['COLORS'][_0x527807(0x31a)],0.2),'left':_0x8adb80,'top':_0x56608c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x527807(0x36f)][_0x527807(0x32d)](_0x5cd2d3),this[_0x527807(0x315)][_0x527807(0x32a)](_0x5cd2d3,p['TEXT_RANGE_LAYER_INDEX']);}[_0x2ff5b3(0x1b4)](_0x3fedd8,_0x16d38c,_0x265b41,_0x154202){const _0x356381=_0x2ff5b3,_0xbeba47=new a[(_0x356381(0x1fa))](_0x3fedd8)[_0x356381(0x102)](0.2)[_0x356381(0x26d)](),_0x18a056=new C[(_0x356381(0x393))](bt+a[_0x356381(0x23b)](H),{'pointsGroup':_0x16d38c,'fill':_0xbeba47||C[_0x356381(0x259)](a['COLORS'][_0x356381(0x31a)],0.2),'left':_0x265b41,'top':_0x154202,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x356381(0x36f)][_0x356381(0x32d)](_0x18a056),this[_0x356381(0x315)][_0x356381(0x32a)](_0x18a056,p[_0x356381(0x385)]);}['_getAnchorBounding'](_0x252b5f){const _0x22d439=_0x252b5f[0x0],_0x459e53=_0x22d439[0x0],_0x466f91=_0x22d439[0x2],{x:_0x3f8c0d,y:_0x3a0802}=_0x459e53,{x:_0x2f90c8,y:_0xb44f7d}=_0x466f91;return{'left':_0x3f8c0d,'top':_0x3a0802,'width':_0x2f90c8-_0x3f8c0d,'height':_0xb44f7d-_0x3a0802};}[_0x2ff5b3(0x218)](){const _0x2f012a=_0x2ff5b3,{scaleX:_0x149bc3,scaleY:_0x53cccc}=this[_0x2f012a(0x315)][_0x2f012a(0xef)]();return Math[_0x2f012a(0x100)](_0x149bc3,_0x53cccc);}}var Lt=Object[_0x2ff5b3(0x35c)],Mt=(_0x28a208,_0x3b2356,_0x53322b,_0x586dfe)=>{const _0x3fe942=_0x2ff5b3;for(var _0x121a0d=_0x586dfe>0x1?void 0x0:_0x586dfe?Lt(_0x3b2356,_0x53322b):_0x3b2356,_0x2453f9=_0x28a208[_0x3fe942(0x17b)]-0x1,_0x4ea1a1;_0x2453f9>=0x0;_0x2453f9--)(_0x4ea1a1=_0x28a208[_0x2453f9])&&(_0x121a0d=_0x4ea1a1(_0x121a0d)||_0x121a0d);return _0x121a0d;},q=(_0x37c5d5,_0x27f023)=>(_0x409153,_0x41d9ea)=>_0x27f023(_0x409153,_0x41d9ea,_0x37c5d5);let Ee=class extends a['RxDisposable']{constructor(_0x16fd71,_0xa1cc15,_0x28f194,_0x405e6a,_0x1a26c5){const _0x136a77=_0x2ff5b3;super(),_(this,'_cursorShapes',[]),_(this,_0x136a77(0x36e),[]),(this['_context']=_0x16fd71,this[_0x136a77(0x133)]=_0xa1cc15,this[_0x136a77(0x20b)]=_0x28f194,this[_0x136a77(0x1ce)]=_0x405e6a,this[_0x136a77(0x301)]=_0x1a26c5,this[_0x136a77(0x263)]());}[_0x2ff5b3(0x263)](){const _0x3b70a9=_0x2ff5b3,_0x280505=this[_0x3b70a9(0x318)][_0x3b70a9(0x331)],_0x3bab75=this['_docSkeletonManagerService'];this[_0x3b70a9(0x2bd)](I[_0x3b70a9(0x374)]([this[_0x3b70a9(0x20b)][_0x3b70a9(0x384)](_0x280505),this[_0x3b70a9(0x301)][_0x3b70a9(0x38c)]])[_0x3b70a9(0x2fe)]($[_0x3b70a9(0x26e)](([_0x2265f1,_0x14be1b])=>({'skeleton':_0x3bab75['getSkeleton'](),'cursors':[..._0x2265f1['values']()][_0x3b70a9(0x373)](_0x58b342=>({..._0x58b342,'color':this[_0x3b70a9(0x301)][_0x3b70a9(0x220)](_0x58b342[_0x3b70a9(0x2ee)])}))})))[_0x3b70a9(0x336)](_0x1d1b63=>{const _0x4e0822=_0x3b70a9;if(this[_0x4e0822(0x20c)](),_0x1d1b63){const {skeleton:_0x180ae1,cursors:_0x266800}=_0x1d1b63;this[_0x4e0822(0x390)](_0x180ae1,_0x266800);}})),this[_0x3b70a9(0x12e)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x2473eb,_0x223e69){const _0xd3e648=_0x2ff5b3,{scene:_0x38358a,mainComponent:_0x40a214}=this[_0xd3e648(0x318)],_0x3a5a93=_0x223e69[_0xd3e648(0x26e)](_0xea4e32=>new Le(_0xea4e32,_0x38358a,_0x2473eb,_0x40a214));this[_0xd3e648(0xfd)]=_0x3a5a93,this['_cursors']=_0x223e69;}[_0x2ff5b3(0x225)](){const _0x669645=_0x2ff5b3;this['_removeCollabCursors']();const {scene:_0x2bacec,mainComponent:_0x4de265}=this['_context'],_0x5731fe=this[_0x669645(0x133)]['getSkeleton'](),_0xd80331=this['_cursors']['map'](_0x47c63a=>new Le(_0x47c63a,_0x2bacec,_0x5731fe,_0x4de265));this[_0x669645(0xfd)]=_0xd80331;}[_0x2ff5b3(0x20c)](){const _0x5f48ec=_0x2ff5b3;this['_cursorShapes'][_0x5f48ec(0x1fc)](_0x4cb56c=>_0x4cb56c[_0x5f48ec(0x244)]()),this[_0x5f48ec(0xfd)]=[];}[_0x2ff5b3(0x335)](){const _0x592f2c=_0x2ff5b3,_0x520a92=[p[_0x592f2c(0x24d)]['id']];this['disposeWithMe'](this[_0x592f2c(0x1ce)][_0x592f2c(0x142)](_0x50177e=>{const _0x25224d=_0x592f2c;_0x520a92['includes'](_0x50177e['id'])&&_0x50177e[_0x25224d(0x210)][_0x25224d(0x331)]===this[_0x25224d(0x318)][_0x25224d(0x331)]&&this['_refreshCollabCursors']();}));}[_0x2ff5b3(0x12e)](){const _0x168ee1=_0x2ff5b3;this['disposeWithMe'](a[_0x168ee1(0x302)](this[_0x168ee1(0x318)][_0x168ee1(0x349)][_0x168ee1(0x2fa)])[_0x168ee1(0x2fe)]($['filter'](_0x347e49=>_0x347e49[_0x168ee1(0x38e)]===C[_0x168ee1(0x20f)][_0x168ee1(0x1a6)]),$[_0x168ee1(0x125)](0x10))[_0x168ee1(0x336)](()=>{const _0x4a091d=_0x168ee1;this[_0x4a091d(0x225)]();}));}};Ee=Mt([q(0x1,a[_0x2ff5b3(0x394)](V['DocSkeletonManagerService'])),q(0x2,a[_0x2ff5b3(0x394)](F)),q(0x3,a[_0x2ff5b3(0x209)]),q(0x4,a['Inject'](a[_0x2ff5b3(0xe1)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x2ff5b3(0x345)]{constructor(_0x3c7c51,_0x57a630){const _0x27312e=_0x2ff5b3;super(_0x3c7c51,_0x57a630),_(this,'_color'),_(this,_0x27312e(0x271),!0x1),_(this,_0x27312e(0x2c6)),_(this,'_name',''),_(this,_0x27312e(0x22e),'top'),_(this,_0x27312e(0x1b0)),(_0x57a630&&this[_0x27312e(0x35a)](_0x57a630),this[_0x27312e(0x190)][_0x27312e(0x29f)](()=>this[_0x27312e(0x35a)]({'hovered':!0x0})),this[_0x27312e(0x121)][_0x27312e(0x29f)](()=>this[_0x27312e(0x35a)]({'hovered':!0x1})));}[_0x2ff5b3(0x35a)](_0x35383c){const _0x334657=_0x2ff5b3;var _0x4f8182,_0x454e55,_0x368507,_0x2ef773,_0x4c70c5,_0x242bdc;this[_0x334657(0x101)]=(_0x4f8182=_0x35383c[_0x334657(0x2ee)])!=null?_0x4f8182:this[_0x334657(0x101)],this[_0x334657(0x271)]=(_0x454e55=_0x35383c['hovered'])!=null?_0x454e55:this[_0x334657(0x271)],this[_0x334657(0x2c6)]=(_0x368507=_0x35383c[_0x334657(0x175)])!=null?_0x368507:this['_range'],this[_0x334657(0x1a1)]=(_0x2ef773=_0x35383c[_0x334657(0x250)])!=null?_0x2ef773:this[_0x334657(0x1a1)],this[_0x334657(0x22e)]=(_0x4c70c5=_0x35383c[_0x334657(0x16e)])!=null?_0x4c70c5:this[_0x334657(0x22e)],this[_0x334657(0x1b0)]=(_0x242bdc=_0x35383c['backgroundColor'])!=null?_0x242bdc:this[_0x334657(0x1b0)],this[_0x334657(0x1c8)]({'width':_0x35383c[_0x334657(0x1cb)],'height':_0x35383c[_0x334657(0x33a)]});}[_0x2ff5b3(0x2f7)](_0x51aff7){const _0x219e3f=_0x2ff5b3,{row:_0x344916,column:_0x5c86a2}=_0x51aff7;if(_0x344916>=this[_0x219e3f(0x2c6)][_0x219e3f(0x13d)]&&_0x344916<=this[_0x219e3f(0x2c6)][_0x219e3f(0x11d)]&&_0x5c86a2>=this[_0x219e3f(0x2c6)]['startColumn']&&_0x5c86a2<=this['_range'][_0x219e3f(0x193)]){this[_0x219e3f(0x35a)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2ff5b3(0x187)](_0x4aa181){return!0x1;}['_draw'](_0x1ddb4c){const _0x4374d8=_0x2ff5b3;C[_0x4374d8(0x256)][_0x4374d8(0x282)](_0x1ddb4c,{'width':this[_0x4374d8(0x1cb)],'height':this[_0x4374d8(0x33a)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4374d8(0x1b0)]}),this[_0x4374d8(0x271)]&&(_0x1ddb4c[_0x4374d8(0x14f)](),_0x1ddb4c[_0x4374d8(0x1c4)](0x1,0x0,0x0,0x1,this[_0x4374d8(0x1cb)],this[_0x4374d8(0x22e)]===_0x4374d8(0x1b8)?0x0:-X),re[_0x4374d8(0x282)](_0x1ddb4c,{'text':this[_0x4374d8(0x1a1)],'color':this['_color']}),_0x1ddb4c[_0x4374d8(0x2fb)]());}}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x4adf34,_0x695fde,_0x5e38a9,_0x216897)=>{const _0x57e583=_0x2ff5b3;for(var _0x22ca5b=_0x216897>0x1?void 0x0:_0x216897?wt(_0x695fde,_0x5e38a9):_0x695fde,_0x1a345a=_0x4adf34[_0x57e583(0x17b)]-0x1,_0x590e90;_0x1a345a>=0x0;_0x1a345a--)(_0x590e90=_0x4adf34[_0x1a345a])&&(_0x22ca5b=_0x590e90(_0x22ca5b)||_0x22ca5b);return _0x22ca5b;},ue=(_0x51495e,_0x59b027)=>(_0x40125a,_0x56a0b6)=>_0x59b027(_0x40125a,_0x56a0b6,_0x51495e);const $t=0x1389;let Ce=class extends a[_0x2ff5b3(0x131)]{constructor(_0x1e8b1d,_0x5f9169,_0x12742f,_0x247195){const _0x2bee26=_0x2ff5b3;super(),_(this,_0x2bee26(0x36e),new Set()),_(this,_0x2bee26(0x1b5),null),(this[_0x2bee26(0x318)]=_0x1e8b1d,this['_sheetSkeletonManagerService']=_0x5f9169,this[_0x2bee26(0x20b)]=_0x12742f,this[_0x2bee26(0x301)]=_0x247195,this['_init']());}[_0x2ff5b3(0x263)](){const _0x1c4bc0=_0x2ff5b3;this[_0x1c4bc0(0x29b)][_0x1c4bc0(0x329)]['pipe']($[_0x1c4bc0(0x106)](this[_0x1c4bc0(0x36c)]),$[_0x1c4bc0(0x359)](_0x48293c=>{const _0x392107=_0x1c4bc0;if(_0x48293c){const _0x54d2f4=_0x48293c[_0x392107(0xe4)];return I[_0x392107(0x374)](this[_0x392107(0x20b)][_0x392107(0x384)](this['_context'][_0x392107(0x331)]),this['_themeService'][_0x392107(0x38c)])['pipe']($[_0x392107(0x26e)](([_0x496a56,_0x2a3e2a])=>{const _0xc58508=_0x392107,_0x1906bc=new Map();return _0x496a56[_0xc58508(0x1fc)]((_0x2a6810,_0x415021)=>{const _0x3619e5=_0xc58508;if(_0x2a6810[_0x3619e5(0x25f)]===_0x54d2f4){const _0x2a15cc={..._0x2a6810};_0x2a15cc[_0x3619e5(0x2ee)]=this['_themeService'][_0x3619e5(0x220)](_0x2a6810[_0x3619e5(0x2ee)]),_0x1906bc[_0x3619e5(0x386)](_0x415021,_0x2a15cc);}}),{'skeleton':_0x48293c,'cursors':_0x1906bc};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x1c4bc0(0x336)](({skeleton:_0x3451a5,cursors:_0x13e04f})=>{this['_removeCollabCursors'](),_0x3451a5&&this['_updateCollabCursors'](_0x3451a5,_0x13e04f);}),this[_0x1c4bc0(0x29b)][_0x1c4bc0(0x329)][_0x1c4bc0(0x336)](_0x44b662=>{const _0x4cf846=_0x1c4bc0;if(_0x44b662==null)return;const {skeleton:_0x4d7b02}=_0x44b662,{scene:_0x563700}=this[_0x4cf846(0x318)];_0x563700[_0x4cf846(0x31f)][_0x4cf846(0x29f)](a[_0x4cf846(0x325)](_0x229ced=>{const _0x8e5d4f=_0x4cf846;var _0x3add84,_0x3d60d7;const {offsetX:_0xc8e784,offsetY:_0x44582b}=_0x229ced,{x:_0x52ec16,y:_0xd1df97}=_0x563700[_0x8e5d4f(0x18f)](C['Vector2'][_0x8e5d4f(0x15d)]([_0xc8e784,_0x44582b])),{scaleX:_0x46d208,scaleY:_0x52632d}=_0x563700[_0x8e5d4f(0xef)](),_0x15a7f2=_0x563700[_0x8e5d4f(0xd1)](C['SHEET_VIEWPORT_KEY'][_0x8e5d4f(0x17d)]),_0x14b43d=_0x563700[_0x8e5d4f(0x16a)](C[_0x8e5d4f(0x184)][_0x8e5d4f(0x15d)]([_0x52ec16,_0xd1df97]),_0x15a7f2),_0x58db95=_0x4d7b02['getCellPositionByOffset'](_0xc8e784,_0x44582b,_0x46d208,_0x52632d,_0x14b43d);((_0x3add84=this[_0x8e5d4f(0x1b5)])==null?void 0x0:_0x3add84['column'])===_0x58db95['column']&&((_0x3d60d7=this[_0x8e5d4f(0x1b5)])==null?void 0x0:_0x3d60d7[_0x8e5d4f(0x248)])===_0x58db95[_0x8e5d4f(0x248)]||this[_0x8e5d4f(0x36e)][_0x8e5d4f(0x1fc)](_0xcea048=>{const _0x2bb997=_0x8e5d4f;_0xcea048[_0x2bb997(0x2f7)](_0x58db95);});},0x64));});}[_0x2ff5b3(0x390)](_0x3c5201,_0x14da4a){const _0x1aabe7=_0x2ff5b3;var _0x1d5075;const _0x1451ca=(_0x1d5075=this[_0x1aabe7(0x29b)][_0x1aabe7(0x2cd)]())==null?void 0x0:_0x1d5075[_0x1aabe7(0x1f7)];if(!_0x1451ca)return;const _0x3db5f1=this['_getSheetObject']();if(!_0x3db5f1)return;this[_0x1aabe7(0x36e)]['forEach'](_0x46c255=>{const _0x29c499=_0x1aabe7;_0x46c255[_0x29c499(0x1a4)]();});const {scene:_0x50a6d0}=_0x3db5f1,_0x79c5ec=xt(Array[_0x1aabe7(0x19c)](_0x14da4a[_0x1aabe7(0x24e)]()))[_0x1aabe7(0x26e)](_0x59f68b=>{const _0x1cd5b0=_0x1aabe7,{color:_0x3fa505,range:_0x945983,name:_0x4b174e,selection:_0xc22f8e,sheetID:_0x51a23d}=_0x59f68b,{startColumn:_0x38a3ae,startRow:_0x5c7bef,endColumn:_0x34b766,endRow:_0x42a47d}=_0x945983,_0x20d2b5=J[_0x1cd5b0(0x203)](_0x5c7bef,_0x38a3ae,_0x50a6d0,_0x1451ca),_0x3d6f63=J[_0x1cd5b0(0x203)](_0x42a47d,_0x34b766,_0x50a6d0,_0x1451ca),{columnHeaderHeightAndMarginTop:_0x3b5007}=_0x1451ca,{startX:_0x1e9cdc,startY:_0x4e215b}=_0x20d2b5,{endX:_0x460a75,endY:_0x56dc56}=_0x3d6f63,_0x42e0ee=_0x460a75-_0x1e9cdc,_0x36e6e9=_0x56dc56-_0x4e215b,_0x2524f9={'labelPosition':_0x4e215b-_0x3b5007>=X?_0x1cd5b0(0x19a):'bottom','sheetID':_0x51a23d,'range':_0x945983,'color':_0x3fa505,'name':_0x4b174e,'selection':_0xc22f8e,'left':_0x1e9cdc,'top':_0x4e215b,'width':_0x42e0ee,'height':_0x36e6e9,'evented':!0x1,'zIndex':$t};return new je(_0x4b174e,_0x2524f9);});_0x50a6d0[_0x1aabe7(0x392)](_0x79c5ec,At),this[_0x1aabe7(0x36e)]=new Set(_0x79c5ec);}[_0x2ff5b3(0x20c)](){const _0x593368=_0x2ff5b3;var _0x589b39;(_0x589b39=this[_0x593368(0x36e)])==null||_0x589b39[_0x593368(0x1fc)](_0x220982=>_0x220982['dispose']());}[_0x2ff5b3(0x36b)](){const _0x51d9a3=_0x2ff5b3;return J[_0x51d9a3(0x152)](this['_context'][_0x51d9a3(0x376)],this[_0x51d9a3(0x318)]);}};Ce=yt([ue(0x1,a[_0x2ff5b3(0x394)](J[_0x2ff5b3(0x238)])),ue(0x2,a[_0x2ff5b3(0x394)](F)),ue(0x3,a[_0x2ff5b3(0x394)](a[_0x2ff5b3(0xe1)]))],Ce);function xt(_0x6bfea3){const _0xe97077=_0x2ff5b3,_0x197cbb=new Map();return _0x6bfea3[_0xe97077(0x1fc)](_0xeeb1ec=>{const _0x6f0278=_0xe97077;if(_0x197cbb[_0x6f0278(0xf3)](_0xeeb1ec[_0x6f0278(0x1ed)])){const _0x6639b1=_0x197cbb[_0x6f0278(0x1c9)](_0xeeb1ec['selection']);_0x6639b1['name']+=',\x20'+_0xeeb1ec[_0x6f0278(0x250)];}else _0x197cbb['set'](_0xeeb1ec[_0x6f0278(0x1ed)],_0xeeb1ec);}),Array[_0xe97077(0x19c)](_0x197cbb[_0xe97077(0x24e)]());}var Bt=Object[_0x2ff5b3(0x35c)],Ft=(_0x7678f4,_0x35a37a,_0xed5448,_0x1dde99)=>{for(var _0x416e45=_0x1dde99>0x1?void 0x0:_0x1dde99?Bt(_0x35a37a,_0xed5448):_0x35a37a,_0x126c6e=_0x7678f4['length']-0x1,_0xc6faaf;_0x126c6e>=0x0;_0x126c6e--)(_0xc6faaf=_0x7678f4[_0x126c6e])&&(_0x416e45=_0xc6faaf(_0x416e45)||_0x416e45);return _0x416e45;},y=(_0xa5f1d0,_0x457d5d)=>(_0x325fe4,_0x1d5f5b)=>_0x457d5d(_0x325fe4,_0x1d5f5b,_0xa5f1d0);let Z=class extends a[_0x2ff5b3(0x300)]{constructor(_0x28533c,_0x554a46,_0x59423d,_0x220d8b,_0x497b60,_0x170e95){const _0x27fcc8=_0x2ff5b3;super(),this[_0x27fcc8(0x13f)]=_0x28533c,this[_0x27fcc8(0x35f)]=_0x554a46,this[_0x27fcc8(0x32b)]=_0x59423d,this[_0x27fcc8(0x185)]=_0x220d8b,this['_notificationService']=_0x497b60,this['_localeService']=_0x170e95,this[_0x27fcc8(0x1e3)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x420ff5=_0x2ff5b3;this[_0x420ff5(0x2bd)](this[_0x420ff5(0x13f)][_0x420ff5(0x32e)](()=>{const _0x13ff7a=_0x420ff5;if(this[_0x13ff7a(0x35f)]['saveTaskMap'][_0x13ff7a(0x116)])return this['_localeService']['t'](_0x13ff7a(0x2e1));}));}[_0x2ff5b3(0x297)](){const _0x15aaa0=_0x2ff5b3;this[_0x15aaa0(0x2bd)](this['_collaborationUIEventService'][_0x15aaa0(0x21f)][_0x15aaa0(0x336)](_0x2fa848=>{const _0x139b75=_0x15aaa0;_0x2fa848['id']===u[_0x139b75(0x13e)][_0x139b75(0xee)]&&this[_0x139b75(0x185)][_0x139b75(0x20e)]({'type':T[_0x139b75(0xdb)][_0x139b75(0x2ac)],'content':this[_0x139b75(0x135)]['t'](_0x139b75(0x186))}),_0x2fa848['id']===u[_0x139b75(0x13e)]['CLOSE_ROOM']&&this[_0x139b75(0x185)]['show']({'type':T[_0x139b75(0xdb)][_0x139b75(0x2ac)],'content':this[_0x139b75(0x135)]['t'](_0x139b75(0x254))}),_0x2fa848['id']===u[_0x139b75(0x13e)][_0x139b75(0x35d)]&&this['_notificationService'][_0x139b75(0x20e)]({'title':this[_0x139b75(0x135)]['t'](_0x139b75(0x2d0)),'content':this[_0x139b75(0x135)]['t'](_0x139b75(0x368)),'type':_0x139b75(0x2a7),'duration':0x0}),_0x2fa848['id']===u['CollaborationUIEventId']['CONFLICT']&&this[_0x139b75(0x185)][_0x139b75(0x20e)]({'type':T[_0x139b75(0xdb)][_0x139b75(0x23a)],'content':this[_0x139b75(0x135)]['t'](_0x139b75(0x254))+'('+_0x2fa848[_0x139b75(0x34c)]+')'}),_0x2fa848['id']===u[_0x139b75(0x13e)][_0x139b75(0x1c1)]&&this[_0x139b75(0x185)]['show']({'type':T[_0x139b75(0xdb)][_0x139b75(0x2ac)],'content':this['_localeService']['t'](_0x2fa848[_0x139b75(0x34c)]||'')}),_0x2fa848['id']===u[_0x139b75(0x13e)][_0x139b75(0x34b)]&&this[_0x139b75(0x185)]['show']({'type':T[_0x139b75(0xdb)][_0x139b75(0x2ac)],'content':this[_0x139b75(0x135)]['t'](_0x139b75(0x382))}),_0x2fa848['id']===u[_0x139b75(0x13e)]['SOCKET_FAILED']&&this[_0x139b75(0x185)][_0x139b75(0x20e)]({'type':T[_0x139b75(0xdb)][_0x139b75(0x23a)],'content':this[_0x139b75(0x135)]['t'](_0x139b75(0x348))}),_0x2fa848['id']===u[_0x139b75(0x13e)][_0x139b75(0x387)]&&this[_0x139b75(0x185)]['show']({'type':T[_0x139b75(0xdb)]['Error'],'content':this[_0x139b75(0x135)]['t'](_0x139b75(0x280))});}));}};Z=Ft([y(0x0,O[_0x2ff5b3(0x1f3)]),y(0x1,u[_0x2ff5b3(0x14b)]),y(0x2,a[_0x2ff5b3(0x394)](u[_0x2ff5b3(0x2d7)])),y(0x3,O[_0x2ff5b3(0x28f)]),y(0x4,O[_0x2ff5b3(0x1b6)]),y(0x5,a[_0x2ff5b3(0x394)](a[_0x2ff5b3(0x197)]))],Z);var jt=Object[_0x2ff5b3(0x35c)],kt=(_0x1dd8db,_0x3ae51f,_0x4574de,_0x4e7608)=>{const _0x4108fd=_0x2ff5b3;for(var _0x10de60=_0x4e7608>0x1?void 0x0:_0x4e7608?jt(_0x3ae51f,_0x4574de):_0x3ae51f,_0x7a7378=_0x1dd8db[_0x4108fd(0x17b)]-0x1,_0x4973a4;_0x7a7378>=0x0;_0x7a7378--)(_0x4973a4=_0x1dd8db[_0x7a7378])&&(_0x10de60=_0x4973a4(_0x10de60)||_0x10de60);return _0x10de60;},z=(_0x5edff9,_0x38f30b)=>(_0x3bd972,_0x5e116f)=>_0x38f30b(_0x3bd972,_0x5e116f,_0x5edff9);let Q=class extends a[_0x2ff5b3(0x300)]{constructor(_0x103454,_0x42c042,_0x57617b,_0x39bdb9){const _0x8c9b78=_0x2ff5b3;super(),_(this,'_memberID'),(this[_0x8c9b78(0x2ed)]=_0x103454,this[_0x8c9b78(0x241)]=_0x42c042,this[_0x8c9b78(0x15e)]=_0x57617b,this[_0x8c9b78(0x10d)]=_0x39bdb9,this[_0x8c9b78(0x263)]());}[_0x2ff5b3(0x263)](){const _0x1b740b=_0x2ff5b3;this[_0x1b740b(0x180)](),this[_0x1b740b(0x12d)](),this[_0x1b740b(0x396)](),this[_0x1b740b(0x117)]();}[_0x2ff5b3(0x117)](){const _0x4acf25=_0x2ff5b3;this['disposeWithMe'](this['_collaborationSessionService'][_0x4acf25(0x136)][_0x4acf25(0x336)](_0x283c8b=>{const _0x338b22=_0x4acf25;this[_0x338b22(0x2c9)]=_0x283c8b==null?void 0x0:_0x283c8b[_0x338b22(0x16b)];}));}[_0x2ff5b3(0x180)](){const _0x3c1f99=_0x2ff5b3,_0x3121b6=_0x1595be=>{const _0x141d3f=_0x140f;var _0x1eafb8;this['_uploadLog'](_0x141d3f(0x2a7),_0x141d3f(0x258)+_0x1595be['message']+_0x141d3f(0x182)+_0x1595be[_0x141d3f(0x236)]+':'+_0x1595be[_0x141d3f(0xd7)]+':'+_0x1595be[_0x141d3f(0x173)]+'\x0a'+(((_0x1eafb8=_0x1595be[_0x141d3f(0x2a7)])==null?void 0x0:_0x1eafb8[_0x141d3f(0x1a0)])||''));};window['addEventListener'](_0x3c1f99(0x2a7),_0x3121b6),this[_0x3c1f99(0x2bd)](()=>{const _0x473256=_0x3c1f99;window[_0x473256(0x15c)]('error',_0x3121b6);});}[_0x2ff5b3(0x12d)](){const _0x304964=_0x2ff5b3,_0x54dc3a=_0x3fcd38=>{const _0x4a3b71=_0x140f;this[_0x4a3b71(0x103)]('error',_0x4a3b71(0x1db)+_0x3fcd38['reason']);};window[_0x304964(0x2a8)](_0x304964(0x383),_0x54dc3a),this['disposeWithMe'](()=>{const _0x58b171=_0x304964;window[_0x58b171(0x15c)]('unhandledrejection',_0x54dc3a);});}['_monkeyPatchLogService'](){const _0x4f93bd=_0x2ff5b3,_0x5d8256=this[_0x4f93bd(0x15e)][_0x4f93bd(0x2a7)]['bind'](this[_0x4f93bd(0x15e)]);this[_0x4f93bd(0x15e)]['error']=(..._0x33d305)=>{const _0x469d6f=_0x4f93bd,_0x22e2d4=_0x33d305['map'](_0x5be001=>_0x5be001 instanceof Error?_0x5be001['message']+'\x0a'+_0x5be001[_0x469d6f(0x1a0)]:String(_0x5be001))['join']('\x20');this[_0x469d6f(0x103)](_0x469d6f(0x2a7),'[LogService\x20Error]:\x20'+_0x22e2d4),_0x5d8256(..._0x33d305);},this['disposeWithMe'](()=>{const _0x2f325e=_0x4f93bd;this[_0x2f325e(0x15e)][_0x2f325e(0x2a7)]=_0x5d8256;});}[_0x2ff5b3(0x103)](_0x5ad00b,_0x39fa8d){const _0x141f1e=_0x2ff5b3;try{const _0x1cc18e={'userId':this['_memberID'],'logLabel':_0x5ad00b,'content':_0x39fa8d};this[_0x141f1e(0x241)][_0x141f1e(0x279)](_0x141f1e(0x2d2),{'body':_0x1cc18e})[_0x141f1e(0xdf)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x2ff5b3(0x394)](a[_0x2ff5b3(0x2ea)])),z(0x1,a[_0x2ff5b3(0x394)](x[_0x2ff5b3(0x247)])),z(0x2,a[_0x2ff5b3(0x123)]),z(0x3,a[_0x2ff5b3(0x394)](u['CollaborationSessionService']))],Q);const Yt=_0x2ff5b3(0xfc),Me={};var Ht=Object[_0x2ff5b3(0x35c)],Wt=(_0x1991b2,_0x286647,_0x1ca788,_0x22f298)=>{const _0x6d7815=_0x2ff5b3;for(var _0x1047f0=_0x22f298>0x1?void 0x0:_0x22f298?Ht(_0x286647,_0x1ca788):_0x286647,_0x3a0702=_0x1991b2[_0x6d7815(0x17b)]-0x1,_0x29336e;_0x3a0702>=0x0;_0x3a0702--)(_0x29336e=_0x1991b2[_0x3a0702])&&(_0x1047f0=_0x29336e(_0x1047f0)||_0x1047f0);return _0x1047f0;},Ae=(_0x10946d,_0x4713fd)=>(_0x431b5c,_0x8f2334)=>_0x4713fd(_0x431b5c,_0x8f2334,_0x10946d);let ee=class{constructor(_0x5d099c,_0x57c465){const _0x58440e=_0x2ff5b3;this['_transformService']=_0x5d099c,this[_0x58440e(0x13c)]=_0x57c465;}[_0x2ff5b3(0x126)](_0x201426){const _0x41a2d1=_0x2ff5b3;this[_0x41a2d1(0x12c)](_0x201426),this[_0x41a2d1(0x17a)](_0x201426);}[_0x2ff5b3(0x2ca)](_0x595c94){const _0x27fd7d=_0x2ff5b3,{unitID:_0xbb2225}=_0x595c94,_0xf4b039=this[_0x27fd7d(0x13c)][_0x27fd7d(0x323)](_0xbb2225)[_0x27fd7d(0x1c2)](p['DocIMEInputManagerService']),{redoCache:_0x4258ee}=_0xf4b039[_0x27fd7d(0x213)]();if(_0x4258ee[_0x27fd7d(0x17b)]===0x0)return _0x595c94;let _0x2ba53c=a[_0x27fd7d(0x13b)][_0x27fd7d(0x35e)](_0x595c94[_0x27fd7d(0x2f9)][0x0]);for(let _0x2d6caf=0x0;_0x2d6caf<_0x4258ee[_0x27fd7d(0x17b)];_0x2d6caf++){const _0x366cde={'id':_0x27fd7d(0x2de),'params':{..._0x4258ee[_0x2d6caf]}},_0x2b8e3e=this[_0x27fd7d(0x194)]['transformMutation'](_0x2ba53c,_0x366cde,!0x1);if(g[_0x27fd7d(0x381)](_0x2b8e3e))throw _0x2b8e3e[_0x27fd7d(0x2a7)];_0x2ba53c=_0x2b8e3e['m1Prime'];}return{...a[_0x27fd7d(0x13b)][_0x27fd7d(0x35e)](_0x595c94),'mutations':[_0x2ba53c]};}[_0x2ff5b3(0x12c)](_0x4c6b88){const _0x54a037=_0x2ff5b3,{unitID:_0x167abc}=_0x4c6b88,_0x3c8151=this['_renderManagerService'][_0x54a037(0x323)](_0x167abc)[_0x54a037(0x1c2)](p['DocIMEInputManagerService']),{undoCache:_0x5c28b9,redoCache:_0x1bd38e}=_0x3c8151[_0x54a037(0x213)]();if(_0x5c28b9[_0x54a037(0x17b)]===0x0||_0x1bd38e[_0x54a037(0x17b)]===0x0)return;const _0x2c4be0=[],_0xc7a96f=[];let _0x2f5bda=a[_0x54a037(0x13b)][_0x54a037(0x35e)](_0x4c6b88[_0x54a037(0x2f9)][0x0]),_0x5a8607=a[_0x54a037(0x13b)][_0x54a037(0x35e)](_0x4c6b88['mutations'][0x0]);for(let _0x41b490=_0x5c28b9[_0x54a037(0x17b)]-0x1;_0x41b490>=0x0;_0x41b490--){const _0x51cec5={'id':_0x54a037(0x2de),'params':{..._0x5c28b9[_0x41b490]}},_0xfdd5b8={'id':_0x54a037(0x2de),'params':{..._0x1bd38e[_0x41b490]}},_0x9f07c6=this[_0x54a037(0x194)][_0x54a037(0x354)](_0x2f5bda,_0x51cec5,!0x1),_0x29f786=this[_0x54a037(0x194)][_0x54a037(0x354)](_0x5a8607,_0xfdd5b8,!0x1);if(g[_0x54a037(0x381)](_0x9f07c6))throw _0x9f07c6[_0x54a037(0x2a7)];if(g[_0x54a037(0x381)](_0x29f786))throw _0x29f786[_0x54a037(0x2a7)];_0x2c4be0[_0x54a037(0x2ab)](_0x9f07c6[_0x54a037(0x37d)]['params']),_0xc7a96f[_0x54a037(0x2ab)](_0x29f786[_0x54a037(0x37d)][_0x54a037(0x210)]),_0x2f5bda=_0x9f07c6['m1Prime'],_0x5a8607=_0x29f786[_0x54a037(0x30d)];}_0x3c8151[_0x54a037(0x27f)]({'undoCache':_0x2c4be0,'redoCache':_0xc7a96f});}[_0x2ff5b3(0x17a)](_0x30fa40){const _0x57ebb1=_0x2ff5b3,{unitID:_0x489f20}=_0x30fa40,_0x4966f3=this['_renderManagerService']['getRenderById'](_0x489f20)[_0x57ebb1(0x1c2)](p['DocIMEInputManagerService']),_0x5477d1=_0x4966f3[_0x57ebb1(0x1ee)]();if(_0x5477d1==null)return;const _0x335753=[{'id':_0x57ebb1(0x2de),'params':{'unitId':_0x30fa40[_0x57ebb1(0x252)],'actions':null,'textRanges':[_0x5477d1]}}],_0x569167=this[_0x57ebb1(0x194)][_0x57ebb1(0x22a)](_0x30fa40,_0x335753);if(!g[_0x57ebb1(0x1d4)](_0x569167))throw _0x569167[_0x57ebb1(0x2a7)];const _0x15905d=_0x569167[_0x57ebb1(0x37d)][0x0][_0x57ebb1(0x210)]['textRanges'];Array[_0x57ebb1(0x19b)](_0x15905d)&&_0x15905d[_0x57ebb1(0x17b)]&&_0x4966f3[_0x57ebb1(0x2d1)](_0x15905d[0x0]);}};ee=Wt([Ae(0x0,g[_0x2ff5b3(0x289)]),Ae(0x1,C[_0x2ff5b3(0x201)])],ee);var Vt=Object[_0x2ff5b3(0x35c)],Gt=(_0x257c53,_0x4e6466,_0x33e3d4,_0x25a3e1)=>{for(var _0x1c7f08=_0x25a3e1>0x1?void 0x0:_0x25a3e1?Vt(_0x4e6466,_0x33e3d4):_0x4e6466,_0x540732=_0x257c53['length']-0x1,_0x273c33;_0x540732>=0x0;_0x540732--)(_0x273c33=_0x257c53[_0x540732])&&(_0x1c7f08=_0x273c33(_0x1c7f08)||_0x1c7f08);return _0x1c7f08;},Ie=(_0x2dcc92,_0x425552)=>(_0x33c281,_0x2e1ca0)=>_0x425552(_0x33c281,_0x2e1ca0,_0x2dcc92);let te=class{constructor(_0x39a9d3,_0x55bbd7,_0x4ea6cc){const _0x1ca047=_0x2ff5b3;this['_injector']=_0x39a9d3,this[_0x1ca047(0x194)]=_0x55bbd7,this['_docStateChangeManagerService']=_0x4ea6cc;}[_0x2ff5b3(0x12a)](_0x1a4740){const _0x141bbd=_0x2ff5b3;this[_0x141bbd(0x18a)](_0x1a4740);}[_0x2ff5b3(0x2ca)](_0x461927){const _0x5367ca=_0x2ff5b3,{unitID:_0x424383}=_0x461927,{collaboration:_0x5967cc}=this[_0x5367ca(0x15b)][_0x5367ca(0x351)](_0x424383);if(_0x5967cc[_0x5367ca(0x17b)]===0x0)return _0x461927;let _0x49d97e=a[_0x5367ca(0x13b)][_0x5367ca(0x35e)](_0x461927[_0x5367ca(0x2f9)][0x0]);for(let _0x4552c8=0x0;_0x4552c8<_0x5967cc[_0x5367ca(0x17b)];_0x4552c8++){const _0x362260={'id':_0x5367ca(0x2de),'params':{'unitId':_0x5967cc[_0x4552c8][_0x5367ca(0x331)],..._0x5967cc[_0x4552c8][_0x5367ca(0x1ff)]}},_0x1d62fd=this[_0x5367ca(0x194)]['transformMutation'](_0x49d97e,_0x362260,!0x1);if(g[_0x5367ca(0x381)](_0x1d62fd))throw _0x1d62fd[_0x5367ca(0x2a7)];_0x49d97e=_0x1d62fd[_0x5367ca(0x30d)];}return{...a[_0x5367ca(0x13b)]['deepClone'](_0x461927),'mutations':[_0x49d97e]};}[_0x2ff5b3(0x18a)](_0x59a34d){const _0x48d687=_0x2ff5b3,{unitID:_0x4bcef2}=_0x59a34d,{history:_0xc03de8,collaboration:_0x46c790}=this['_docStateChangeManagerService'][_0x48d687(0x351)](_0x4bcef2);if(_0xc03de8[_0x48d687(0x17b)]===0x0&&_0x46c790['length']===0x0)return;const _0x6efbf0=[],_0x21ec46=[];let _0x14858d=a[_0x48d687(0x13b)][_0x48d687(0x35e)](_0x59a34d['mutations'][0x0]),_0x569477=a[_0x48d687(0x13b)][_0x48d687(0x35e)](_0x59a34d['mutations'][0x0]);for(let _0x22454a=_0xc03de8[_0x48d687(0x17b)]-0x1;_0x22454a>=0x0;_0x22454a--){const _0x244467={'id':_0x48d687(0x2de),'params':{'unitId':_0xc03de8[_0x22454a][_0x48d687(0x331)],..._0xc03de8[_0x22454a][_0x48d687(0x310)]}},_0x4bea13={'id':_0x48d687(0x2de),'params':{'unitId':_0xc03de8[_0x22454a][_0x48d687(0x331)],..._0xc03de8[_0x22454a][_0x48d687(0x1ff)]}},_0x21e482=this[_0x48d687(0x194)][_0x48d687(0x354)](_0x14858d,_0x244467,!0x1),_0x454b01=this[_0x48d687(0x194)][_0x48d687(0x354)](_0x569477,_0x4bea13,!0x1);if(g['isTransformMutationFailure'](_0x21e482))throw _0x21e482[_0x48d687(0x2a7)];if(g[_0x48d687(0x381)](_0x454b01))throw _0x454b01[_0x48d687(0x2a7)];_0x6efbf0['unshift']({..._0xc03de8[_0x22454a],'undoState':_0x21e482[_0x48d687(0x37d)][_0x48d687(0x210)],'redoState':_0x454b01[_0x48d687(0x37d)][_0x48d687(0x210)]}),_0x14858d=_0x21e482[_0x48d687(0x30d)],_0x569477=_0x454b01[_0x48d687(0x30d)];}_0x14858d=a[_0x48d687(0x13b)]['deepClone'](_0x59a34d[_0x48d687(0x2f9)][0x0]),_0x569477=a[_0x48d687(0x13b)][_0x48d687(0x35e)](_0x59a34d['mutations'][0x0]);for(let _0x532b47=_0x46c790[_0x48d687(0x17b)]-0x1;_0x532b47>=0x0;_0x532b47--){const _0x56d1ee={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x46c790[_0x532b47]['unitId'],..._0x46c790[_0x532b47][_0x48d687(0x310)]}},_0x47b387={'id':_0x48d687(0x2de),'params':{'unitId':_0x46c790[_0x532b47][_0x48d687(0x331)],..._0x46c790[_0x532b47][_0x48d687(0x1ff)]}},_0x2eeb45=this[_0x48d687(0x194)][_0x48d687(0x354)](_0x14858d,_0x56d1ee,!0x1),_0x4a2e06=this[_0x48d687(0x194)][_0x48d687(0x354)](_0x569477,_0x47b387,!0x1);if(g[_0x48d687(0x381)](_0x2eeb45))throw _0x2eeb45[_0x48d687(0x2a7)];if(g['isTransformMutationFailure'](_0x4a2e06))throw _0x4a2e06['error'];_0x21ec46[_0x48d687(0x2ab)]({..._0x46c790[_0x532b47],'undoState':_0x2eeb45[_0x48d687(0x37d)][_0x48d687(0x210)],'redoState':_0x4a2e06[_0x48d687(0x37d)][_0x48d687(0x210)]}),_0x14858d=_0x2eeb45[_0x48d687(0x30d)],_0x569477=_0x4a2e06[_0x48d687(0x30d)];}this[_0x48d687(0x15b)]['setStateCache'](_0x4bcef2,{'history':_0x6efbf0,'collaboration':_0x21ec46});}};te=Gt([Ie(0x0,a[_0x2ff5b3(0x394)](a[_0x2ff5b3(0x2ea)])),Ie(0x1,g['ITransformService']),Ie(0x2,a[_0x2ff5b3(0x394)](p['DocStateChangeManagerService']))],te);var Xt=Object[_0x2ff5b3(0x35c)],Kt=(_0x32b9fe,_0x111558,_0x2e008a,_0x3fbc73)=>{const _0x26e6b3=_0x2ff5b3;for(var _0x3812d6=_0x3fbc73>0x1?void 0x0:_0x3fbc73?Xt(_0x111558,_0x2e008a):_0x111558,_0x1f18ab=_0x32b9fe[_0x26e6b3(0x17b)]-0x1,_0xf13363;_0x1f18ab>=0x0;_0x1f18ab--)(_0xf13363=_0x32b9fe[_0x1f18ab])&&(_0x3812d6=_0xf13363(_0x3812d6)||_0x3812d6);return _0x3812d6;},Pe=(_0xca7002,_0x9ab8dc)=>(_0x1984ac,_0x1b5d01)=>_0x9ab8dc(_0x1984ac,_0x1b5d01,_0xca7002);let se=class{constructor(_0xa681bc,_0x128a71){const _0x41d381=_0x2ff5b3;this[_0x41d381(0x2ed)]=_0xa681bc,this[_0x41d381(0x194)]=_0x128a71;}[_0x2ff5b3(0x343)](_0x50267a){const _0x58c93c=_0x2ff5b3;var _0x2f4d3e;const _0x88be2=this['_injector']['get'](V[_0x58c93c(0x2ba)]),_0x221904=(_0x2f4d3e=_0x88be2[_0x58c93c(0x1e1)]())!=null?_0x2f4d3e:[];if(_0x221904[_0x58c93c(0x17b)]===0x0)return;const _0xb9d5f0=_0x50267a[_0x58c93c(0x252)],_0x3619e7=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xb9d5f0,'actions':null,'textRanges':_0x221904}}],_0x2edc45=this[_0x58c93c(0x194)][_0x58c93c(0x22a)](_0x50267a,_0x3619e7);if(!g[_0x58c93c(0x1d4)](_0x2edc45))throw _0x2edc45[_0x58c93c(0x2a7)];const _0x5b1179=_0x2edc45[_0x58c93c(0x37d)][0x0]['params'][_0x58c93c(0x10c)];Array[_0x58c93c(0x19b)](_0x5b1179)&&_0x5b1179[_0x58c93c(0x17b)]&&_0x88be2['replaceDocRanges'](_0x5b1179,{'unitId':_0xb9d5f0,'subUnitId':_0xb9d5f0},!0x1);}};se=Kt([Pe(0x0,a[_0x2ff5b3(0x394)](a['Injector'])),Pe(0x1,g[_0x2ff5b3(0x289)])],se);var qt=Object[_0x2ff5b3(0x35c)],zt=(_0x56a433,_0xa9b3ef,_0x5d49ff,_0x55b3e4)=>{for(var _0x536180=_0x55b3e4>0x1?void 0x0:_0x55b3e4?qt(_0xa9b3ef,_0x5d49ff):_0xa9b3ef,_0xa9c590=_0x56a433['length']-0x1,_0xdf887b;_0xa9c590>=0x0;_0xa9c590--)(_0xdf887b=_0x56a433[_0xa9c590])&&(_0x536180=_0xdf887b(_0x536180)||_0x536180);return _0x536180;},N=(_0x3804db,_0xe7132d)=>(_0x4c1626,_0x273002)=>_0xe7132d(_0x4c1626,_0x273002,_0x3804db);let ie=class extends a[_0x2ff5b3(0x300)]{constructor(_0x4efd5b,_0x1af692,_0x390745,_0x4eaf54,_0x488fac,_0x5f74a,_0x16e767,_0x4c169f){const _0x11a6a1=_0x2ff5b3;super(),_(this,_0x11a6a1(0x14c),new I['BehaviorSubject'](u['CollaborationStatus'][_0x11a6a1(0x115)])),(this['_docStateChangeManagerService']=_0x4efd5b,this['_collaborationController']=_0x1af692,this[_0x11a6a1(0x364)]=_0x390745,this[_0x11a6a1(0x105)]=_0x4eaf54,this['_docTransformSelectionsService']=_0x488fac,this[_0x11a6a1(0x362)]=_0x5f74a,this[_0x11a6a1(0x185)]=_0x16e767,this[_0x11a6a1(0x135)]=_0x4c169f,this[_0x11a6a1(0x129)]());}[_0x2ff5b3(0x129)](){const _0x5964be=_0x2ff5b3;this[_0x5964be(0x2bd)](this[_0x5964be(0x107)][_0x5964be(0x204)][_0x5964be(0x336)](_0x434f93=>{const _0x110bb5=_0x5964be,_0x114363=this[_0x110bb5(0x15b)][_0x110bb5(0x326)][_0x110bb5(0x336)](_0x77b251=>{const _0x5a8de2=_0x110bb5;if(_0x77b251==null)return;const {unitId:_0x3438f5,redoState:_0x5856a3,commandId:_0x174127}=_0x77b251;if(_0x3438f5!==_0x434f93['unitID'])return;const _0xa65ccf={'id':_0x174127,'type':a[_0x5a8de2(0x150)][_0x5a8de2(0x337)],'params':{'unitId':_0x3438f5,'actions':_0x5856a3['actions'],'textRanges':null}};_0x434f93['onLocalMutation'](_0xa65ccf);});if(_0x434f93[_0x110bb5(0x2bd)](_0x114363),_0x434f93 instanceof u[_0x110bb5(0x377)]){const _0x34ddcf={'onTransformIME':_0x37aca1=>this[_0x110bb5(0x364)][_0x110bb5(0x126)](_0x37aca1),'onTransformState':_0x59c8bc=>this[_0x110bb5(0x105)][_0x110bb5(0x12a)](_0x59c8bc),'onTransformSelections':_0x58128f=>this[_0x110bb5(0x232)][_0x110bb5(0x343)](_0x58128f),'onSyncEditingCollabCursor':_0x40e5ac=>this[_0x110bb5(0x362)][_0x110bb5(0x24a)](_0x40e5ac),'onTransformRemoteChangesetByIMECache':_0x58568f=>this['_docTransformIMECacheService'][_0x110bb5(0x2ca)](_0x58568f),'onTransformRemoteChangesetByStateCache':_0x4ed0d5=>this[_0x110bb5(0x105)][_0x110bb5(0x2ca)](_0x4ed0d5)};_0x434f93['addHandlerCallback'](_0x34ddcf);}}));}};ie=zt([N(0x0,a[_0x2ff5b3(0x394)](p[_0x2ff5b3(0xf8)])),N(0x1,a['Inject'](u[_0x2ff5b3(0x1ad)])),N(0x2,a[_0x2ff5b3(0x394)](ee)),N(0x3,a['Inject'](te)),N(0x4,a[_0x2ff5b3(0x394)](se)),N(0x5,a[_0x2ff5b3(0x394)](be)),N(0x6,O['IMessageService']),N(0x7,a[_0x2ff5b3(0x394)](a[_0x2ff5b3(0x197)]))],ie);var G=(_0x372f29=>(_0x372f29[_0x372f29[_0x2ff5b3(0x221)]=0x0]=_0x2ff5b3(0x221),_0x372f29[_0x372f29['OK']=0x1]='OK',_0x372f29[_0x372f29[_0x2ff5b3(0x1bf)]=0x2]=_0x2ff5b3(0x1bf),_0x372f29[_0x372f29[_0x2ff5b3(0x35d)]=0x3]='PERMISSION_DENIED',_0x372f29[_0x372f29[_0x2ff5b3(0x2d9)]=0x4]=_0x2ff5b3(0x2d9),_0x372f29[_0x372f29[_0x2ff5b3(0x112)]=0x5]=_0x2ff5b3(0x112),_0x372f29[_0x372f29[_0x2ff5b3(0x11e)]=0x6]=_0x2ff5b3(0x11e),_0x372f29[_0x372f29[_0x2ff5b3(0x2c8)]=0x7]=_0x2ff5b3(0x2c8),_0x372f29[_0x372f29[_0x2ff5b3(0x338)]=0x8]=_0x2ff5b3(0x338),_0x372f29[_0x372f29[_0x2ff5b3(0xfb)]=0x9]=_0x2ff5b3(0xfb),_0x372f29[_0x372f29['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x372f29[_0x372f29[_0x2ff5b3(0x1e7)]=0xb]=_0x2ff5b3(0x1e7),_0x372f29[_0x372f29[_0x2ff5b3(0x10a)]=0xc]=_0x2ff5b3(0x10a),_0x372f29[_0x372f29[_0x2ff5b3(0x1d8)]=0xd]=_0x2ff5b3(0x1d8),_0x372f29[_0x372f29[_0x2ff5b3(0x1da)]=0xe]=_0x2ff5b3(0x1da),_0x372f29[_0x372f29[_0x2ff5b3(0x27b)]=0xf]=_0x2ff5b3(0x27b),_0x372f29[_0x372f29[_0x2ff5b3(0x22f)]=0x10]=_0x2ff5b3(0x22f),_0x372f29[_0x372f29[_0x2ff5b3(0x1f0)]=0x64]=_0x2ff5b3(0x1f0),_0x372f29[_0x372f29['ERROR_AGAIN']=0x65]=_0x2ff5b3(0x342),_0x372f29[_0x372f29[_0x2ff5b3(0x118)]=0xc9]=_0x2ff5b3(0x118),_0x372f29[_0x372f29['USER_IS_ANONYMOUS']=0xca]=_0x2ff5b3(0x284),_0x372f29[_0x372f29['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x2ff5b3(0xe5),_0x372f29[_0x372f29[_0x2ff5b3(0x23e)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x372f29[_0x372f29[_0x2ff5b3(0x2af)]=0x1772]=_0x2ff5b3(0x2af),_0x372f29[_0x372f29[_0x2ff5b3(0x189)]=0x1773]=_0x2ff5b3(0x189),_0x372f29[_0x372f29['APPLY_REJECT']=0x1b59]=_0x2ff5b3(0x2ec),_0x372f29[_0x372f29[_0x2ff5b3(0x199)]=0x1b5a]=_0x2ff5b3(0x199),_0x372f29[_0x372f29[_0x2ff5b3(0x37f)]=0x1b5b]=_0x2ff5b3(0x37f),_0x372f29[_0x372f29[_0x2ff5b3(0x2bb)]=0x1b5c]=_0x2ff5b3(0x2bb),_0x372f29[_0x372f29[_0x2ff5b3(0x261)]=0x1b5d]=_0x2ff5b3(0x261),_0x372f29[_0x372f29['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x2ff5b3(0x26c),_0x372f29[_0x372f29[_0x2ff5b3(0x2aa)]=0x2329]=_0x2ff5b3(0x2aa),_0x372f29[_0x372f29['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x372f29[_0x372f29[_0x2ff5b3(0x196)]=0x232b]=_0x2ff5b3(0x196),_0x372f29[_0x372f29[_0x2ff5b3(0x272)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x372f29[_0x372f29[_0x2ff5b3(0x316)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x372f29[_0x372f29[_0x2ff5b3(0x388)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x372f29[_0x372f29[_0x2ff5b3(0x191)]=0x2712]=_0x2ff5b3(0x191),_0x372f29[_0x372f29[_0x2ff5b3(0x1fd)]=0x2713]=_0x2ff5b3(0x1fd),_0x372f29[_0x372f29[_0x2ff5b3(0x170)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x372f29[_0x372f29[_0x2ff5b3(0x257)]=0x271a]=_0x2ff5b3(0x257),_0x372f29[_0x372f29[_0x2ff5b3(0x205)]=0x271b]=_0x2ff5b3(0x205),_0x372f29[_0x372f29[_0x2ff5b3(0x266)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x372f29[_0x372f29[_0x2ff5b3(0x206)]=0x271d]=_0x2ff5b3(0x206),_0x372f29[_0x372f29[_0x2ff5b3(0x143)]=0x271e]=_0x2ff5b3(0x143),_0x372f29[_0x372f29['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x372f29[_0x372f29[_0x2ff5b3(0x145)]=0x2720]=_0x2ff5b3(0x145),_0x372f29[_0x372f29[_0x2ff5b3(0x37a)]=0x2af9]=_0x2ff5b3(0x37a),_0x372f29[_0x372f29[_0x2ff5b3(0x1af)]=0x2ee1]=_0x2ff5b3(0x1af),_0x372f29[_0x372f29[_0x2ff5b3(0x242)]=0x2ee2]=_0x2ff5b3(0x242),_0x372f29[_0x372f29[_0x2ff5b3(0x361)]=0x2ee3]=_0x2ff5b3(0x361),_0x372f29[_0x372f29[_0x2ff5b3(0x2c1)]=0x2ee4]=_0x2ff5b3(0x2c1),_0x372f29[_0x372f29[_0x2ff5b3(0x306)]=0x2ee5]=_0x2ff5b3(0x306),_0x372f29[_0x372f29[_0x2ff5b3(0x312)]=0x32c9]=_0x2ff5b3(0x312),_0x372f29[_0x372f29[_0x2ff5b3(0x2cc)]=0x32ca]=_0x2ff5b3(0x2cc),_0x372f29[_0x372f29[_0x2ff5b3(0x27e)]=0x32cb]=_0x2ff5b3(0x27e),_0x372f29[_0x372f29[_0x2ff5b3(0x1ba)]=0x36b1]=_0x2ff5b3(0x1ba),_0x372f29[_0x372f29[_0x2ff5b3(0x215)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x372f29[_0x372f29[_0x2ff5b3(0x2e3)]=0x36b3]=_0x2ff5b3(0x2e3),_0x372f29[_0x372f29[_0x2ff5b3(0xfe)]=0x36b4]=_0x2ff5b3(0xfe),_0x372f29[_0x372f29[_0x2ff5b3(0x1cd)]=0x3715]=_0x2ff5b3(0x1cd),_0x372f29[_0x372f29[_0x2ff5b3(0x164)]=0x3716]=_0x2ff5b3(0x164),_0x372f29[_0x372f29['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x2ff5b3(0x260),_0x372f29[_0x372f29[_0x2ff5b3(0x122)]=0x37dd]=_0x2ff5b3(0x122),_0x372f29[_0x372f29['REDEMPTION_INVALID_CODE']=0x3a99]=_0x2ff5b3(0x1bb),_0x372f29[_0x372f29[_0x2ff5b3(0x2dd)]=0x3a9a]=_0x2ff5b3(0x2dd),_0x372f29[_0x372f29[_0x2ff5b3(0x24c)]=0x3a9b]=_0x2ff5b3(0x24c),_0x372f29[_0x372f29['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x2ff5b3(0x251),_0x372f29[_0x372f29['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x372f29[_0x372f29['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x2ff5b3(0x1b3),_0x372f29[_0x372f29[_0x2ff5b3(0x1c3)]=0x3a9f]=_0x2ff5b3(0x1c3),_0x372f29[_0x372f29[_0x2ff5b3(0x278)]=0x3e81]=_0x2ff5b3(0x278),_0x372f29[_0x372f29[_0x2ff5b3(0x2d6)]=-0x1]=_0x2ff5b3(0x2d6),_0x372f29))(G||{});function Jt(_0x45e1ec){const _0x1c28cc=_0x2ff5b3;var _0x2fae1c,_0x5078f1;const _0xb930e1=(_0x2fae1c=_0x45e1ec[_0x1c28cc(0x281)])==null?void 0x0:_0x2fae1c[_0x1c28cc(0x34a)],_0x18569a=((_0x5078f1=_0x45e1ec[_0x1c28cc(0x281)])==null?void 0x0:_0x5078f1[_0x1c28cc(0x2e0)])||0x0;return _0xb930e1===B[_0x1c28cc(0x23c)]['START_CALCULATION']&&_0x18569a>0x0;}function Zt(_0x4c859e){const _0x18d7d9=_0x2ff5b3;return _0x4c859e[_0x18d7d9(0x2b4)]===B['FormulaExecutedStateType']['SUCCESS'];}var Qt=Object[_0x2ff5b3(0x35c)],es=(_0x5ae148,_0x4bb9a8,_0xfe8ebd,_0x319cf1)=>{const _0x58f823=_0x2ff5b3;for(var _0x1c5a08=_0x319cf1>0x1?void 0x0:_0x319cf1?Qt(_0x4bb9a8,_0xfe8ebd):_0x4bb9a8,_0xc3da4=_0x5ae148[_0x58f823(0x17b)]-0x1,_0x29a206;_0xc3da4>=0x0;_0xc3da4--)(_0x29a206=_0x5ae148[_0xc3da4])&&(_0x1c5a08=_0x29a206(_0x1c5a08)||_0x1c5a08);return _0x1c5a08;},L=(_0x381e46,_0x30bf0a)=>(_0x583254,_0x4822ea)=>_0x30bf0a(_0x583254,_0x4822ea,_0x381e46);const ts=_0x2ff5b3(0x2a2),ss=_0x2ff5b3(0xda),is=_0x2ff5b3(0x277);let ne=class extends a[_0x2ff5b3(0x300)]{constructor(_0x24e682,_0x1fe9f8,_0x5037e0,_0x3a81a2,_0x34a055,_0x55cf54,_0x16a7c0){const _0x5029c8=_0x2ff5b3;super(),_(this,_0x5029c8(0x286),null),_(this,_0x5029c8(0x30b),0x0),_(this,_0x5029c8(0x28d),0x0),_(this,_0x5029c8(0x27a),[]),_(this,_0x5029c8(0x2da),0x0),(this['_messageService']=_0x24e682,this[_0x5029c8(0x1ce)]=_0x1fe9f8,this[_0x5029c8(0xd8)]=_0x5037e0,this[_0x5029c8(0x241)]=_0x3a81a2,this[_0x5029c8(0x22c)]=_0x34a055,this[_0x5029c8(0x15e)]=_0x55cf54,this[_0x5029c8(0x135)]=_0x16a7c0,this[_0x5029c8(0x33c)]());}['_initCommandInterceptor'](){const _0x591b44=_0x2ff5b3;this[_0x591b44(0x2bd)](this['_commandService'][_0x591b44(0x2fd)]((_0x2f2793,_0x58441b)=>{const _0x2bd374=_0x591b44;var _0x3bda2b;if(_0x2f2793['id']!==B[_0x2bd374(0x1eb)]['id'])return;const _0x1bfa09=_0x2f2793[_0x2bd374(0x210)];if(!this['_hasFormulaInDirtyRanges']((_0x3bda2b=_0x1bfa09[_0x2bd374(0x21e)])!=null?_0x3bda2b:[]))return;if(!this[_0x2bd374(0x2a1)]())throw this[_0x2bd374(0x1f2)](_0x2f2793,_0x58441b),this[_0x2bd374(0x267)](),new a['CanceledError']();})),this[_0x591b44(0x2bd)](this[_0x591b44(0x1ce)][_0x591b44(0x142)]((_0x28e0fc,_0x32de12)=>{const _0x5c7777=_0x591b44;if(_0x28e0fc['id']!==B[_0x5c7777(0x28b)]['id'])return;const _0x3f7f56=_0x28e0fc['params'];if(Jt(_0x3f7f56)){const _0x22f88d=a[_0x5c7777(0x23b)]();this[_0x5c7777(0x27a)][_0x5c7777(0x32d)](_0x22f88d),this[_0x5c7777(0x11a)](_0x22f88d);}else{if(Zt(_0x3f7f56)&&this[_0x5c7777(0x27a)][_0x5c7777(0x17b)]>0x0){const _0x4374c9=this[_0x5c7777(0x27a)]['shift']();this[_0x5c7777(0x291)](_0x4374c9);}}}));}[_0x2ff5b3(0x244)](){const _0x45c84f=_0x2ff5b3;super[_0x45c84f(0x244)](),this[_0x45c84f(0x2d4)](),this[_0x45c84f(0x27a)]=[],this[_0x45c84f(0x28d)]=0x0,this[_0x45c84f(0x30b)]=0x0,this[_0x45c84f(0x2da)]=0x0;}async[_0x2ff5b3(0x1f2)](_0x5c3285,_0x47538d){const _0x5d2bc1=_0x2ff5b3;for(let _0x5f4f5c=0x0;_0x5f4f5c<0x1e;_0x5f4f5c++)try{if(await this[_0x5d2bc1(0x16f)](),this[_0x5d2bc1(0x2a1)]()){this[_0x5d2bc1(0x24f)](_0x5c3285,_0x47538d),this['_messageService'][_0x5d2bc1(0x20e)]({'content':this[_0x5d2bc1(0x135)]['t'](_0x5d2bc1(0x15a)),'type':T[_0x5d2bc1(0xdb)]['Success']});return;}await new Promise(_0xba7968=>{const _0x2bfd27=_0x5d2bc1;this['_pollingInterval']=window[_0x2bfd27(0x113)](_0xba7968,0x3e8);});}catch(_0x2be08b){this[_0x5d2bc1(0x15e)][_0x5d2bc1(0x2a7)](_0x2be08b);}this['_messageService'][_0x5d2bc1(0x20e)]({'content':this['_localeService']['t'](_0x5d2bc1(0x231)),'type':T[_0x5d2bc1(0xdb)][_0x5d2bc1(0x23a)]});}['_applyCommand'](_0x4e94e1,_0x22df92){const _0x3dd2f3=_0x2ff5b3;try{this[_0x3dd2f3(0x1ce)][_0x3dd2f3(0x1d3)](_0x4e94e1['id'],_0x4e94e1['params'],_0x22df92);}catch(_0x48d79c){this[_0x3dd2f3(0x15e)][_0x3dd2f3(0x2a7)](_0x48d79c);}}[_0x2ff5b3(0xd6)](_0x2dd1ec,_0xafb870){const _0x455fdb=_0x2ff5b3;_0xafb870<this[_0x455fdb(0x2da)]||(this[_0x455fdb(0x2da)]=_0xafb870,this[_0x455fdb(0x30b)]=Number[_0x455fdb(0x2b2)](_0x2dd1ec['maxFormulaLimit']),this[_0x455fdb(0x28d)]=Number['parseInt'](_0x2dd1ec[_0x455fdb(0x140)]));}async[_0x2ff5b3(0x11a)](_0x5e5d89){const _0x366f14=_0x2ff5b3;var _0x8b0bbc,_0x5893a1;const _0x15bd1e=Date['now']();try{const _0x6e6049=((_0x8b0bbc=this[_0x366f14(0xd8)]['getConfig'](u[_0x366f14(0x1bc)]))==null?void 0x0:_0x8b0bbc[_0x366f14(0x13a)])||ss,_0x314252=(await this[_0x366f14(0x241)][_0x366f14(0x279)](_0x6e6049,{'body':JSON[_0x366f14(0x340)]({'taskId':_0x5e5d89})}))[_0x366f14(0x10f)];if(((_0x5893a1=_0x314252['error'])==null?void 0x0:_0x5893a1[_0x366f14(0x138)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x314252[_0x366f14(0x245)],_0x15bd1e);}catch(_0x5de47d){this[_0x366f14(0x15e)][_0x366f14(0x2a7)](_0x5de47d);}}async[_0x2ff5b3(0x16f)](_0x413041){const _0x5589d9=_0x2ff5b3;var _0xfac1fd,_0x16d106;const _0x326fb4=Date['now']();try{const _0x12620c=((_0xfac1fd=this['_configService'][_0x5589d9(0x333)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0xfac1fd[_0x5589d9(0x2b6)])||ts,_0xc20a83=_0x413041?_0x12620c+'?taskId='+encodeURIComponent(_0x413041):_0x12620c,_0x50d664=(await this[_0x5589d9(0x241)][_0x5589d9(0x1c9)](_0xc20a83))[_0x5589d9(0x10f)];if(((_0x16d106=_0x50d664[_0x5589d9(0x2a7)])==null?void 0x0:_0x16d106[_0x5589d9(0x138)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x50d664[_0x5589d9(0x245)],_0x326fb4);}catch(_0x2cf660){this[_0x5589d9(0x15e)][_0x5589d9(0x2a7)](_0x2cf660);}}async[_0x2ff5b3(0x291)](_0x201d6c){const _0x450246=_0x2ff5b3;var _0x136913,_0x804b93;const _0x7b6dd5=Date[_0x450246(0x202)]();try{const _0x9f4cfb=((_0x136913=this[_0x450246(0xd8)][_0x450246(0x333)](u[_0x450246(0x1bc)]))==null?void 0x0:_0x136913[_0x450246(0x1e6)])||is,_0x1e71cf=(await this[_0x450246(0x241)]['post'](_0x9f4cfb,{'body':JSON[_0x450246(0x340)]({'taskId':_0x201d6c})}))['body'];if(((_0x804b93=_0x1e71cf['error'])==null?void 0x0:_0x804b93['code'])!==G['OK'])return;this[_0x450246(0xd6)](_0x1e71cf[_0x450246(0x245)],_0x7b6dd5);}catch(_0x3e78cb){this[_0x450246(0x15e)]['error'](_0x3e78cb);}}[_0x2ff5b3(0x2a1)](){const _0x1eb898=_0x2ff5b3;return this[_0x1eb898(0x30b)]===0x0?!0x0:this[_0x1eb898(0x30b)]-this['_currentUsage']>0x0;}[_0x2ff5b3(0x2d4)](){const _0x7745a5=_0x2ff5b3;this[_0x7745a5(0x286)]&&(clearTimeout(this['_pollingInterval']),this[_0x7745a5(0x286)]=null);}['_showGuardMessage'](){const _0xc72c90=_0x2ff5b3;this[_0xc72c90(0x185)]['show']({'content':this[_0xc72c90(0x135)]['t'](_0xc72c90(0x18e)),'type':T['MessageType']['Loading']});}['_hasFormulaInDirtyRanges'](_0x219cb1){const _0x3b4cb3=_0x2ff5b3;for(const _0x4ba566 of _0x219cb1){const {unitId:_0x4de7c5,sheetId:_0x271916,range:_0x3bb87b}=_0x4ba566,_0x28333b=this[_0x3b4cb3(0x22c)][_0x3b4cb3(0x192)](_0x4de7c5);if(!_0x28333b)continue;const _0x8fc113=_0x28333b[_0x3b4cb3(0x2f5)](_0x271916);if(!_0x8fc113)continue;const _0x347c31=_0x8fc113['getCellMatrix']();for(let _0x7e3365=_0x3bb87b[_0x3b4cb3(0x13d)];_0x7e3365<=_0x3bb87b[_0x3b4cb3(0x11d)];_0x7e3365++)for(let _0x32c73b=_0x3bb87b[_0x3b4cb3(0xd5)];_0x32c73b<=_0x3bb87b['endColumn'];_0x32c73b++){const _0x2e43df=_0x347c31[_0x3b4cb3(0x16c)](_0x7e3365,_0x32c73b);if(_0x2e43df&&(a[_0x3b4cb3(0x274)](_0x2e43df['f'])||a[_0x3b4cb3(0x1e8)](_0x2e43df['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x2ff5b3(0x28f)])),L(0x1,a[_0x2ff5b3(0x209)]),L(0x2,a[_0x2ff5b3(0x2e4)]),L(0x3,a[_0x2ff5b3(0x394)](x[_0x2ff5b3(0x247)])),L(0x4,a['IUniverInstanceService']),L(0x5,a['ILogService']),L(0x6,a['Inject'](a[_0x2ff5b3(0x197)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0xd4fc73,_0x9114e2,_0x883260,_0x2fc5b1)=>{const _0x408dc9=_0x2ff5b3;for(var _0x683ea3=_0x2fc5b1>0x1?void 0x0:_0x2fc5b1?ns(_0x9114e2,_0x883260):_0x9114e2,_0x4cf298=_0xd4fc73[_0x408dc9(0x17b)]-0x1,_0x191cec;_0x4cf298>=0x0;_0x4cf298--)(_0x191cec=_0xd4fc73[_0x4cf298])&&(_0x683ea3=_0x191cec(_0x683ea3)||_0x683ea3);return _0x683ea3;},de=(_0xf34c,_0x5bdbb3)=>(_0x5b57c7,_0x48daa0)=>_0x5bdbb3(_0x5b57c7,_0x48daa0,_0xf34c);let pe=class extends a[_0x2ff5b3(0x300)]{constructor(_0x141376,_0x2f5f95,_0x243c92){const _0x5e7f20=_0x2ff5b3;super(),_(this,_0x5e7f20(0x294),new Map()),_(this,_0x5e7f20(0x2e8),new Map()),_(this,_0x5e7f20(0x109),!0x1),(this['_configService']=_0x141376,this[_0x5e7f20(0x389)]=_0x2f5f95,this[_0x5e7f20(0x352)]=_0x243c92);}[_0x2ff5b3(0x151)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x46eda8=_0x2ff5b3;this[_0x46eda8(0x109)]=!0x1;}get[_0x2ff5b3(0x11b)](){const _0x4eb67a=_0x2ff5b3;return this[_0x4eb67a(0x2e8)];}[_0x2ff5b3(0x244)](){const _0x73194b=_0x2ff5b3;this['exhaustSavingTask']()[_0x73194b(0x37c)](()=>super[_0x73194b(0x244)]());}async[_0x2ff5b3(0x328)](_0x59c6bb){const _0x336ce4=_0x2ff5b3;return this[_0x336ce4(0x109)]?null:this[_0x336ce4(0x389)]['getItem'](u[_0x336ce4(0x363)](_0x59c6bb));}async[_0x2ff5b3(0x2a4)](_0x5a821b,_0x3c593d){const _0x151473=_0x2ff5b3;return!!this[_0x151473(0x389)][_0x151473(0x27d)](_0x5a821b,_0x3c593d);}[_0x2ff5b3(0x1cc)](_0x1c274c,_0x248400,_0x548f25,_0x5c2feb){const _0x1b02a2=_0x2ff5b3,_0x173c45=this[_0x1b02a2(0x352)][_0x1b02a2(0x160)](_0x1c274c);this[_0x1b02a2(0x294)][_0x1b02a2(0x386)](_0x1c274c,{'unitID':_0x1c274c,'type':_0x248400,'awaitingChangeset':_0x548f25,'mutations':_0x5c2feb,'rev':_0x173c45}),this[_0x1b02a2(0x2e8)][_0x1b02a2(0xf3)](_0x1c274c)||this[_0x1b02a2(0x33e)](_0x1c274c);}['_scheduleSaving'](_0x37f5a5){const _0x18337a=_0x2ff5b3,_0x307044=this[_0x18337a(0x1d0)]();_0x307044===0x0?this[_0x18337a(0x295)](_0x37f5a5):this[_0x18337a(0x2e8)][_0x18337a(0x386)](_0x37f5a5,setTimeout(()=>this['_saveCache'](_0x37f5a5),_0x307044));}['_getSaveTimeout'](){const _0x5e29a8=_0x2ff5b3;var _0x38ec91;return(_0x38ec91=this[_0x5e29a8(0xd8)][_0x5e29a8(0x333)](u[_0x5e29a8(0x17c)]))!=null?_0x38ec91:u[_0x5e29a8(0x181)];}[_0x2ff5b3(0x295)](_0x30baa6){const _0x584c24=_0x2ff5b3,_0x587590=this[_0x584c24(0x2e8)][_0x584c24(0x1c9)](_0x30baa6);return _0x587590!==void 0x0&&window[_0x584c24(0x1be)](_0x587590),this[_0x584c24(0x389)][_0x584c24(0x27d)](u['getLocalCacheKey'](_0x30baa6),this['_cachedData']['get'](_0x30baa6))[_0x584c24(0x37c)](()=>this[_0x584c24(0x2e8)][_0x584c24(0x365)](_0x30baa6));}async[_0x2ff5b3(0x37b)](){const _0x218497=_0x2ff5b3,_0x1f9070=[];this[_0x218497(0x2e8)][_0x218497(0x1fc)]((_0x534aa3,_0x62f1c5)=>{const _0x474b6f=_0x218497;window[_0x474b6f(0x1be)](_0x534aa3),_0x1f9070[_0x474b6f(0x32d)](this[_0x474b6f(0x295)](_0x62f1c5)[_0x474b6f(0x37c)](()=>{const _0xe6be18=_0x474b6f;this['_saveTaskMap'][_0xe6be18(0x365)](_0x62f1c5);}));}),await Promise[_0x218497(0x273)](_0x1f9070);}};pe=rs([de(0x0,a[_0x2ff5b3(0x2e4)]),de(0x1,a[_0x2ff5b3(0x243)]),de(0x2,a['Inject'](g[_0x2ff5b3(0x155)]))],pe);class ke extends a[_0x2ff5b3(0x131)]{constructor(){const _0x310615=_0x2ff5b3;super(),_(this,_0x310615(0x2f1)),this[_0x310615(0x2f1)]=I[_0x310615(0x18b)](window,_0x310615(0x169))[_0x310615(0x2fe)](I[_0x310615(0x106)](this[_0x310615(0x36c)]),I['shareReplay'](0x1),I[_0x310615(0x379)](void 0x0));}[_0x2ff5b3(0x347)](_0x4565c5,_0x5c7458,_0x3454b7=!0x1){const _0x42da84=_0x2ff5b3,_0x18ceaf=new URL(window[_0x42da84(0x31e)][_0x42da84(0x2cf)]);_0x18ceaf['searchParams'][_0x42da84(0x386)](_0x4565c5,_0x5c7458),_0x3454b7?window[_0x42da84(0x358)][_0x42da84(0x141)]('','',_0x18ceaf[_0x42da84(0x1a3)]()):window[_0x42da84(0x358)][_0x42da84(0x322)]('','',_0x18ceaf['toString']());}[_0x2ff5b3(0x219)](_0x3335bf,_0x490265=!0x1){const _0x2fd679=_0x2ff5b3,_0x4e34b8=new URL(window[_0x2fd679(0x31e)][_0x2fd679(0x2cf)]);_0x4e34b8[_0x2fd679(0x36d)][_0x2fd679(0x365)](_0x3335bf),_0x490265?window[_0x2fd679(0x358)][_0x2fd679(0x141)]('','',_0x4e34b8[_0x2fd679(0x1a3)]()):window[_0x2fd679(0x358)][_0x2fd679(0x322)]('','',_0x4e34b8[_0x2fd679(0x1a3)]());}[_0x2ff5b3(0xdc)](_0x5bc081){const _0x278bfd=_0x2ff5b3;var _0x19ae63;return(_0x19ae63=new URL(window[_0x278bfd(0x31e)][_0x278bfd(0x2cf)])['searchParams'][_0x278bfd(0x1c9)](_0x5bc081))!=null?_0x19ae63:void 0x0;}}var os=Object['defineProperty'],as=Object[_0x2ff5b3(0x35c)],cs=(_0x35a427,_0x585f6c,_0x480d6f)=>_0x585f6c in _0x35a427?os(_0x35a427,_0x585f6c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x480d6f}):_0x35a427[_0x585f6c]=_0x480d6f,ls=(_0x499370,_0x41cc53,_0x302cb2,_0x215ea7)=>{const _0x3a5d7d=_0x2ff5b3;for(var _0x2522db=_0x215ea7>0x1?void 0x0:_0x215ea7?as(_0x41cc53,_0x302cb2):_0x41cc53,_0x40c90c=_0x499370[_0x3a5d7d(0x17b)]-0x1,_0x538fd3;_0x40c90c>=0x0;_0x40c90c--)(_0x538fd3=_0x499370[_0x40c90c])&&(_0x2522db=_0x538fd3(_0x2522db)||_0x2522db);return _0x2522db;},Se=(_0x1fc814,_0x319fa4)=>(_0x1c2ac5,_0x343037)=>_0x319fa4(_0x1c2ac5,_0x343037,_0x1fc814),_s=(_0x888a7c,_0x6eea92,_0x220932)=>cs(_0x888a7c,_0x6eea92+'',_0x220932);const hs=_0x2ff5b3(0x395);exports[_0x2ff5b3(0xe7)]=class extends a[_0x2ff5b3(0x32f)]{constructor(_0x5f21d1=Me,_0x2b9ad7,_0x196257,_0x506128){const _0x2a2858=_0x2ff5b3;super(),this[_0x2a2858(0x19d)]=_0x5f21d1,this[_0x2a2858(0x13c)]=_0x2b9ad7,this['_injector']=_0x196257,this[_0x2a2858(0xd8)]=_0x506128;const {..._0x173874}=a[_0x2a2858(0x33f)]({},Me,this['_config']);this[_0x2a2858(0xd8)][_0x2a2858(0x1f4)](Yt,_0x173874);}[_0x2ff5b3(0x1a5)](){const _0x387a72=_0x2ff5b3;this[_0x387a72(0x2d8)](),this[_0x387a72(0x17e)]();}[_0x2ff5b3(0x36a)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x5d8e55=_0x2ff5b3;var _0x5bcd80;const _0x28370e=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x5d8e55(0x367)],{'useClass':x[_0x5d8e55(0xdd)]}],[u[_0x5d8e55(0x14b)],{'useClass':pe}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports[_0x5d8e55(0x25b)]]];this['_config'][_0x5d8e55(0x2b8)]&&_0x28370e[_0x5d8e55(0x32d)]([Q]),a[_0x5d8e55(0x2ad)](this[_0x5d8e55(0x2ed)],a['mergeOverrideWithDependencies'](_0x28370e,(_0x5bcd80=this['_config'])==null?void 0x0:_0x5bcd80[_0x5d8e55(0x2a0)]));}[_0x2ff5b3(0x229)](){const _0x263b6f=_0x2ff5b3;this[_0x263b6f(0x2bd)](this['_renderManagerService']['registerRenderModule'](a[_0x263b6f(0x25e)][_0x263b6f(0x2b0)],[Ee])),this[_0x263b6f(0x2bd)](this['_renderManagerService'][_0x263b6f(0x2e7)](a[_0x263b6f(0x25e)][_0x263b6f(0x1ea)],[Ce]));}['_initDependencies'](){const _0x5b5d62=_0x2ff5b3;a['touchDependencies'](this['_injector'],[[F],[exports[_0x5b5d62(0x188)]],[ie],[Z],[exports[_0x5b5d62(0x25b)]],[ne]]),this[_0x5b5d62(0x19d)][_0x5b5d62(0x2b8)]&&a[_0x5b5d62(0x253)](this[_0x5b5d62(0x2ed)],[[Q]]);}},_s(exports[_0x2ff5b3(0xe7)],'pluginName',hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0x2ff5b3(0x21a)](u[_0x2ff5b3(0xf5)]),Se(0x1,C['IRenderManagerService']),Se(0x2,a[_0x2ff5b3(0x394)](a[_0x2ff5b3(0x2ea)])),Se(0x3,a[_0x2ff5b3(0x2e4)])],exports[_0x2ff5b3(0xe7)]);var us=Object[_0x2ff5b3(0x35c)],Is=(_0x2c101b,_0x41c9da,_0x147582,_0x4d0a9d)=>{const _0x30d84e=_0x2ff5b3;for(var _0x267e82=_0x4d0a9d>0x1?void 0x0:_0x4d0a9d?us(_0x41c9da,_0x147582):_0x41c9da,_0x2042ad=_0x2c101b[_0x30d84e(0x17b)]-0x1,_0x198c55;_0x2042ad>=0x0;_0x2042ad--)(_0x198c55=_0x2c101b[_0x2042ad])&&(_0x267e82=_0x198c55(_0x267e82)||_0x267e82);return _0x267e82;},W=(_0x260113,_0x491305)=>(_0x374355,_0x28c780)=>_0x491305(_0x374355,_0x28c780,_0x260113);exports[_0x2ff5b3(0x34e)]=class extends u[_0x2ff5b3(0x31b)]{constructor(_0x2b87a4,_0x274a7d,_0x1cfaa5,_0x46d811,_0x27b74b){super(_0x2b87a4,_0x274a7d,_0x1cfaa5,_0x46d811,_0x27b74b);}async[_0x2ff5b3(0x166)](_0x5a9516){const _0x42dafa=_0x2ff5b3,_0x1f2276=await this[_0x42dafa(0x1dd)](),_0x509870=this[_0x42dafa(0x319)](_0x5a9516,_0x1f2276);return this[_0x42dafa(0x24b)](_0x509870);}[_0x2ff5b3(0x319)](_0xcacc7d,_0x451be0){const _0x19ef0f=_0x2ff5b3,_0xc19a1f=typeof window>'u'?new URL(_0xcacc7d):new URL(_0xcacc7d,window[_0x19ef0f(0x31e)][_0x19ef0f(0x208)]);_0xc19a1f[_0x19ef0f(0x36d)]['set'](_0x19ef0f(0x307),_0x451be0);const _0x3a893d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x19ef0f(0x31e)][_0x19ef0f(0x18c)]);return _0x3a893d['get'](_0x19ef0f(0x288))&&_0xc19a1f[_0x19ef0f(0x36d)][_0x19ef0f(0x386)](_0x19ef0f(0x288),_0x3a893d['get']('runId')),_0xc19a1f[_0x19ef0f(0x1a3)]();}async['_getSessionTicket'](){const _0x469b63=_0x2ff5b3;var _0x49824f,_0x1f36bf,_0x112ebe;const _0x577c4f=this[_0x469b63(0xd8)]['getConfig'](u[_0x469b63(0x1bc)]),_0x19be19=(_0x49824f=_0x577c4f==null?void 0x0:_0x577c4f['wsSessionTicketUrl'])!=null?_0x49824f:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x112ebe=(_0x1f36bf=(await this[_0x469b63(0x241)][_0x469b63(0x1c9)](_0x19be19,{'headers':{'Content-Type':_0x469b63(0x2dc)}}))[_0x469b63(0x10f)])==null?void 0x0:_0x1f36bf['ticket'])!=null?_0x112ebe:'';}},exports[_0x2ff5b3(0x34e)]=Is([W(0x0,a[_0x2ff5b3(0x394)](a[_0x2ff5b3(0x2ea)])),W(0x1,a[_0x2ff5b3(0x394)](x['HTTPService'])),W(0x2,a['IConfigService']),W(0x3,a[_0x2ff5b3(0x123)]),W(0x4,g['ISnapshotServerService'])],exports[_0x2ff5b3(0x34e)]);var ds=Object[_0x2ff5b3(0x35c)],Ss=(_0x6ef207,_0x819a7d,_0x1a56e9,_0xa31aa6)=>{const _0x1041e0=_0x2ff5b3;for(var _0x40a22=_0xa31aa6>0x1?void 0x0:_0xa31aa6?ds(_0x819a7d,_0x1a56e9):_0x819a7d,_0x1857f6=_0x6ef207[_0x1041e0(0x17b)]-0x1,_0x4b7b06;_0x1857f6>=0x0;_0x1857f6--)(_0x4b7b06=_0x6ef207[_0x1857f6])&&(_0x40a22=_0x4b7b06(_0x40a22)||_0x40a22);return _0x40a22;},fe=(_0x2631b7,_0x1bf7d3)=>(_0x2a0195,_0x548e26)=>_0x1bf7d3(_0x2a0195,_0x548e26,_0x2631b7);exports[_0x2ff5b3(0xf4)]=class extends a[_0x2ff5b3(0x300)]{constructor(_0x5ee01c,_0x24aa61,_0x9a8a1b){const _0x31d114=_0x2ff5b3;super(),this[_0x31d114(0x16d)]=_0x5ee01c,this[_0x31d114(0x241)]=_0x24aa61,this[_0x31d114(0xd8)]=_0x9a8a1b;}async['runOnServer'](_0x1908cc,_0x1c3535,_0x1ba9a8,..._0x35b0a8){const _0x23ef98=_0x2ff5b3;var _0x27f217,_0x39261c,_0x409f5e,_0xcbe4f1;const _0x24352f=this[_0x23ef98(0x16d)]['getFocusedUnit']();if(!_0x24352f)throw new Error(_0x23ef98(0x34f));const _0x896a2b=((_0x27f217=this[_0x23ef98(0xd8)][_0x23ef98(0x333)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x27f217:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x1908cc+_0x23ef98(0x171)+_0x1c3535,_0x11e0d2=new URL(window[_0x23ef98(0x31e)][_0x23ef98(0x2cf)]),_0x380301={'scriptId':_0x1908cc,'runId':(_0x39261c=_0x11e0d2[_0x23ef98(0x36d)][_0x23ef98(0x1c9)]('runId'))!=null?_0x39261c:'','function':_0x1c3535,'unitId':_0x24352f[_0x23ef98(0x237)](),'argsOfFunction':JSON['stringify'](_0x35b0a8),'invokeId':(_0x409f5e=_0x1ba9a8['invokeId'])!=null?_0x409f5e:'','executionId':(_0xcbe4f1=_0x1ba9a8[_0x23ef98(0x161)])!=null?_0xcbe4f1:''};try{const _0x309048=await this[_0x23ef98(0x241)][_0x23ef98(0x279)](_0x896a2b,{'body':_0x380301});return _0x309048['body']['error']&&_0x309048['body']['error'][_0x23ef98(0x138)]!==G['OK']?_0x23ef98(0x108):_0x309048[_0x23ef98(0x10f)]['result'];}catch{return _0x23ef98(0x108);}}},exports[_0x2ff5b3(0xf4)]=Ss([fe(0x0,a[_0x2ff5b3(0x21b)]),fe(0x1,a[_0x2ff5b3(0x394)](x[_0x2ff5b3(0x247)])),fe(0x2,a[_0x2ff5b3(0x2e4)])],exports[_0x2ff5b3(0xf4)]);const we=0x7530,ye='ACTIVE_UNIT_EVENT_CHANNEL';class fs extends a[_0x2ff5b3(0x300)]{constructor(){const _0x1251d1=_0x2ff5b3;super(),_(this,_0x1251d1(0x235),a[_0x1251d1(0x23b)]()),_(this,_0x1251d1(0x371),new Set()),_(this,'_unitOnClients',new Map()),_(this,'_heartbeatTimer',null),_(this,_0x1251d1(0x240),new Map()),_(this,_0x1251d1(0x127),new Map()),this['_init']();}['dispose'](){const _0x133c32=_0x2ff5b3;super[_0x133c32(0x244)](),this[_0x133c32(0x240)][_0x133c32(0x1fc)]((_0x46e6ec,_0x4ed7e1)=>this[_0x133c32(0x12b)](_0x4ed7e1)),this[_0x133c32(0x317)]&&window[_0x133c32(0x1e2)](this[_0x133c32(0x317)]);}['getUnitStatus$'](_0x3ce16f){const _0x14d831=_0x2ff5b3;return this[_0x14d831(0x176)](_0x3ce16f)[_0x14d831(0x2fe)](I[_0x14d831(0x1c5)]());}[_0x2ff5b3(0x1d2)](_0xc98d63){const _0x333da5=_0x2ff5b3;this[_0x333da5(0x371)][_0x333da5(0x116)]===0x0&&this['_scheduleHeartbeat'](),this[_0x333da5(0x371)][_0x333da5(0x1ac)](_0xc98d63),this[_0x333da5(0x265)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xc98d63],'isForwarded':!0x1});}[_0x2ff5b3(0x153)](_0x410228){const _0x4528f9=_0x2ff5b3;this['_selfUnitIDs'][_0x4528f9(0x365)](_0x410228),this[_0x4528f9(0x371)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x4528f9(0x1e2)](this['_heartbeatTimer']);}[_0x2ff5b3(0x263)](){const _0x1f9bfa=_0x2ff5b3;this['disposeWithMe'](a[_0x1f9bfa(0x223)](I[_0x1f9bfa(0x18b)](window,'storage')[_0x1f9bfa(0x336)](_0x1efa8a=>{const _0x21050d=_0x1f9bfa;if(_0x1efa8a[_0x21050d(0x111)]!==ye||!_0x1efa8a[_0x21050d(0x293)])return;const _0x4c209a=JSON[_0x21050d(0x2bc)](_0x1efa8a['newValue']);this[_0x21050d(0x2f6)](_0x4c209a);}))),window['addEventListener'](_0x1f9bfa(0x23f),()=>this[_0x1f9bfa(0x265)]({'type':0x1,'memberID':this[_0x1f9bfa(0x235)],'unitIDs':Array[_0x1f9bfa(0x19c)](this[_0x1f9bfa(0x371)])}));}[_0x2ff5b3(0x2f6)](_0x2015b3){const _0x43a690=_0x2ff5b3;switch(_0x2015b3[_0x43a690(0x38e)]){case 0x0:this[_0x43a690(0x12f)](_0x2015b3);break;case 0x1:this[_0x43a690(0x380)](_0x2015b3);break;case 0x2:this['_handleHeartbeatEvent'](_0x2015b3);break;}}[_0x2ff5b3(0x12f)](_0x186bd6){const _0x491236=_0x2ff5b3,{unitIDs:_0x3be47e,memberID:_0x54b337,isForwarded:_0x4b2a50}=_0x186bd6;_0x3be47e[_0x491236(0x1fc)](_0x2a62cd=>{const _0x524b88=_0x491236;if(!_0x4b2a50&&this[_0x524b88(0x29e)][_0x524b88(0xf3)](_0x2a62cd)&&this[_0x524b88(0x176)](_0x2a62cd)[_0x524b88(0x14d)](u[_0x524b88(0x283)][_0x524b88(0x1aa)]),!this['_unitOnClients'][_0x524b88(0xf3)](_0x2a62cd)||!this['_unitOnClients'][_0x524b88(0x1c9)](_0x2a62cd)[_0x524b88(0xf3)](_0x54b337)){const _0x3e2333=this[_0x524b88(0x29e)]['get'](_0x2a62cd)||new Set();_0x3e2333[_0x524b88(0x1ac)](_0x54b337),this[_0x524b88(0x29e)][_0x524b88(0x386)](_0x2a62cd,_0x3e2333),this[_0x524b88(0xff)](_0x54b337);}}),_0x4b2a50||this[_0x491236(0x265)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x491236(0x371)]],'isForwarded':!0x0});}[_0x2ff5b3(0xff)](_0x2c5526){const _0x266bc4=_0x2ff5b3;this[_0x266bc4(0x12b)](_0x2c5526);const _0x41ada6=window[_0x266bc4(0x113)](()=>{const _0x5d363c=_0x266bc4;this[_0x5d363c(0x29e)]['forEach'](_0x2c54e4=>{const _0x1b1deb=_0x5d363c;_0x2c54e4[_0x1b1deb(0x365)](_0x2c5526);});},we*0x2);this[_0x266bc4(0x240)][_0x266bc4(0x386)](_0x2c5526,_0x41ada6);}[_0x2ff5b3(0x12b)](_0x515401){const _0x1edb4b=_0x2ff5b3;if(this[_0x1edb4b(0x240)][_0x1edb4b(0xf3)](_0x515401)){const _0x37fc81=this[_0x1edb4b(0x240)][_0x1edb4b(0x1c9)](_0x515401);_0x37fc81&&window[_0x1edb4b(0x1be)](_0x37fc81),this[_0x1edb4b(0x240)][_0x1edb4b(0x386)](_0x515401,null);}}[_0x2ff5b3(0x380)](_0x1570ce){const _0x4b533a=_0x2ff5b3,{memberID:_0x11f5fd,unitIDs:_0x53b73e}=_0x1570ce;_0x53b73e[_0x4b533a(0x1fc)](_0x21de70=>{const _0x3683f7=_0x4b533a;var _0x5b680a;const _0x23c95e=this['_unitOnClients'][_0x3683f7(0x1c9)](_0x21de70);_0x23c95e&&(_0x23c95e['delete'](_0x11f5fd),(_0x5b680a=this[_0x3683f7(0x176)](_0x21de70))==null||_0x5b680a['next'](_0x23c95e[_0x3683f7(0x116)]===0x0?u[_0x3683f7(0x283)]['NO_OTHER_CLIENTS_EDITING']:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x11f5fd);}[_0x2ff5b3(0x311)](_0x2d95b4){const _0x225411=_0x2ff5b3;this[_0x225411(0xff)](_0x2d95b4[_0x225411(0x16b)]);}[_0x2ff5b3(0x265)](_0x544f4b){const _0x1208e5=_0x2ff5b3;localStorage[_0x1208e5(0x27d)](ye,JSON[_0x1208e5(0x340)](_0x544f4b));}[_0x2ff5b3(0x1f8)](){const _0xa1e7db=_0x2ff5b3;this[_0xa1e7db(0x317)]=window['setInterval'](()=>{const _0x3ca4b1=_0xa1e7db;this['_send']({'type':0x2,'memberID':this[_0x3ca4b1(0x235)]});},we);}['_ensureSubject'](_0x2d78dc){const _0x96535e=_0x2ff5b3;return this[_0x96535e(0x127)][_0x96535e(0xf3)](_0x2d78dc)||this[_0x96535e(0x127)][_0x96535e(0x386)](_0x2d78dc,new I['BehaviorSubject'](u[_0x96535e(0x283)][_0x96535e(0x183)])),this['_unitStatus']['get'](_0x2d78dc);}}exports[_0x2ff5b3(0x28a)]=Oe,exports[_0x2ff5b3(0x369)]=je,exports['WebBrowserSingleActiveUnitService']=fs,exports[_0x2ff5b3(0x1de)]=ke;