@univerjs-pro/collaboration-client-ui 0.10.14-nightly.202511070628 → 0.10.14-nightly.202511070939

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 (49) 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/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +15 -15
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x4aeb9a=_0x12f6;(function(_0x4f0a12,_0x323dfe){const _0x444f65=_0x12f6,_0x40fde2=_0x4f0a12();while(!![]){try{const _0xc46a7b=-parseInt(_0x444f65(0x340))/0x1+-parseInt(_0x444f65(0x26e))/0x2+-parseInt(_0x444f65(0x2f6))/0x3*(parseInt(_0x444f65(0xbf))/0x4)+parseInt(_0x444f65(0x1cb))/0x5*(-parseInt(_0x444f65(0x15b))/0x6)+-parseInt(_0x444f65(0x241))/0x7*(parseInt(_0x444f65(0x1f2))/0x8)+-parseInt(_0x444f65(0x18d))/0x9+parseInt(_0x444f65(0xae))/0xa;if(_0xc46a7b===_0x323dfe)break;else _0x40fde2['push'](_0x40fde2['shift']());}catch(_0x293edf){_0x40fde2['push'](_0x40fde2['shift']());}}}(_0x21c1,0xc0648));var Ve=Object[_0x4aeb9a(0x2a7)],Ge=(_0x494659,_0x2f77ca,_0x23a73a)=>_0x2f77ca in _0x494659?Ve(_0x494659,_0x2f77ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23a73a}):_0x494659[_0x2f77ca]=_0x23a73a,_=(_0x451f74,_0x2c3ad0,_0x54ca8d)=>Ge(_0x451f74,typeof _0x2c3ad0!='symbol'?_0x2c3ad0+'':_0x2c3ad0,_0x54ca8d);Object[_0x4aeb9a(0x2a7)](exports,Symbol[_0x4aeb9a(0x2fa)],{'value':_0x4aeb9a(0x342)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),G=require('@univerjs/network'),T=require('@univerjs/docs-ui'),Ke=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),W=require('@univerjs/docs'),x=require('@univerjs/engine-formula'),$=require('rxjs/operators'),z=require('@univerjs/sheets-ui');function Ce({ref:_0x2ce1d2,..._0xc14670}){const _0x951334=_0x4aeb9a,{icon:_0x15ce5a,id:_0x13add8,className:_0x547437,extend:_0x4b8fab,..._0x52e2c7}=_0xc14670,_0x1681b0=(_0x951334(0x1bd)+_0x13add8+'\x20'+(_0x547437||''))['trim'](),_0x55e567=A[_0x951334(0x27b)]('_'+Je());return we(_0x15ce5a,''+_0x13add8,{'defIds':_0x15ce5a['defIds'],'idSuffix':_0x55e567['current']},{'ref':_0x2ce1d2,'className':_0x1681b0,..._0x52e2c7},_0x4b8fab);}function we(_0x17f7f6,_0x43b1eb,_0x2b0e2a,_0x16d5dd,_0xeae5ca){const _0x3b9d11=_0x4aeb9a;return A[_0x3b9d11(0x1ef)](_0x17f7f6[_0x3b9d11(0x277)],{'key':_0x43b1eb,...qe(_0x17f7f6,_0x2b0e2a,_0xeae5ca),..._0x16d5dd},(ze(_0x17f7f6,_0x2b0e2a)['children']||[])[_0x3b9d11(0x20a)]((_0x3b6459,_0x129f8e)=>we(_0x3b6459,_0x43b1eb+'-'+_0x17f7f6[_0x3b9d11(0x277)]+'-'+_0x129f8e,_0x2b0e2a,void 0x0,_0xeae5ca)));}function qe(_0xf0dd02,_0xb32229,_0x40a50b){const _0x582bce=_0x4aeb9a,_0x487fc6={..._0xf0dd02[_0x582bce(0x2ab)]};_0x40a50b!=null&&_0x40a50b[_0x582bce(0xff)]&&_0x487fc6[_0x582bce(0x234)]==='colorChannel1'&&(_0x487fc6[_0x582bce(0x234)]=_0x40a50b['colorChannel1']),_0xf0dd02['tag']==='mask'&&_0x487fc6['id']&&(_0x487fc6['id']=_0x487fc6['id']+_0xb32229[_0x582bce(0xa3)]),Object[_0x582bce(0x175)](_0x487fc6)[_0x582bce(0x270)](([_0xc8bea5,_0x37ca7e])=>{const _0x11566c=_0x582bce;_0xc8bea5===_0x11566c(0x2ee)&&typeof _0x37ca7e==_0x11566c(0x321)&&(_0x487fc6[_0xc8bea5]=_0x37ca7e[_0x11566c(0x2e6)](/url\(#(.*)\)/,_0x11566c(0x162)+_0xb32229['idSuffix']+')'));});const {defIds:_0x3fcff7}=_0xb32229;return!_0x3fcff7||_0x3fcff7[_0x582bce(0x2d7)]===0x0||(_0xf0dd02[_0x582bce(0x277)]===_0x582bce(0x28d)&&_0x487fc6[_0x582bce(0x10e)]&&(_0x487fc6[_0x582bce(0x10e)]=_0x487fc6[_0x582bce(0x10e)]+_0xb32229[_0x582bce(0xa3)]),Object[_0x582bce(0x175)](_0x487fc6)['forEach'](([_0x4be58f,_0x38112f])=>{const _0x344f30=_0x582bce;typeof _0x38112f==_0x344f30(0x321)&&(_0x487fc6[_0x4be58f]=_0x38112f['replace'](/url\(#(.*)\)/,'url(#$1'+_0xb32229[_0x344f30(0xa3)]+')'));})),_0x487fc6;}function ze(_0x51c763,_0x20df3d){const _0x43e938=_0x4aeb9a;var _0x3044ec;const {defIds:_0x5d086d}=_0x20df3d;return!_0x5d086d||_0x5d086d['length']===0x0?_0x51c763:_0x51c763['tag']===_0x43e938(0x17b)&&((_0x3044ec=_0x51c763['children'])!=null&&_0x3044ec[_0x43e938(0x2d7)])?{..._0x51c763,'children':_0x51c763['children'][_0x43e938(0x20a)](_0x9b456c=>typeof _0x9b456c[_0x43e938(0x2ab)]['id']==_0x43e938(0x321)&&_0x5d086d&&_0x5d086d[_0x43e938(0x31a)](_0x9b456c['attrs']['id'])?{..._0x9b456c,'attrs':{..._0x9b456c[_0x43e938(0x2ab)],'id':_0x9b456c['attrs']['id']+_0x20df3d[_0x43e938(0xa3)]}}:_0x9b456c)}:_0x51c763;}function Je(){const _0x422fce=_0x4aeb9a;return Math[_0x422fce(0x158)]()[_0x422fce(0xa8)](0x24)[_0x422fce(0x16e)](0x2,0x8);}Ce['displayName']=_0x4aeb9a(0x164);const Ze={'tag':'svg','attrs':{'xmlns':_0x4aeb9a(0x11b),'fill':_0x4aeb9a(0xfc),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4aeb9a(0x1b2)},'children':[{'tag':'g','attrs':{'clipPath':_0x4aeb9a(0x2aa)},'children':[{'tag':'path','attrs':{'stroke':_0x4aeb9a(0xe9),'d':_0x4aeb9a(0x167),'strokeLinecap':_0x4aeb9a(0x2f2),'strokeLinejoin':_0x4aeb9a(0x2f2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4aeb9a(0x198),'attrs':{'id':_0x4aeb9a(0x30a)},'children':[{'tag':_0x4aeb9a(0x257),'attrs':{'fill':'white','d':_0x4aeb9a(0x33e)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=A['forwardRef'](function(_0xb14ff9,_0x44dc48){const _0x415e31=_0x4aeb9a;return A[_0x415e31(0x1ef)](Ce,Object[_0x415e31(0x1ec)]({},_0xb14ff9,{'id':_0x415e31(0x1cf),'ref':_0x44dc48,'icon':Ze}));});ye[_0x4aeb9a(0x28b)]=_0x4aeb9a(0x157);const Qe={'tag':'svg','attrs':{'xmlns':_0x4aeb9a(0x11b),'fill':_0x4aeb9a(0xfc),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x4aeb9a(0x1b2)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x4aeb9a(0xe9),'d':_0x4aeb9a(0x1bc),'strokeLinecap':'round','strokeLinejoin':_0x4aeb9a(0x2f2),'strokeWidth':1.2}}]},{'tag':_0x4aeb9a(0x17b),'attrs':{},'children':[{'tag':_0x4aeb9a(0x198),'attrs':{'id':_0x4aeb9a(0x2c5)},'children':[{'tag':'path','attrs':{'fill':_0x4aeb9a(0x2c3),'d':_0x4aeb9a(0x33e),'transform':'translate(.97)'}}]}]}],'defIds':[_0x4aeb9a(0x2c5)]},$e=A[_0x4aeb9a(0x275)](function(_0x2a24f3,_0x327ae3){const _0x299ecd=_0x4aeb9a;return A[_0x299ecd(0x1ef)](Ce,Object[_0x299ecd(0x1ec)]({},_0x2a24f3,{'id':_0x299ecd(0x2ca),'ref':_0x327ae3,'icon':Qe}));});$e[_0x4aeb9a(0x28b)]=_0x4aeb9a(0x284);function et(_0x4ee377){const _0x3ac318=_0x4aeb9a;switch(_0x4ee377){case u[_0x3ac318(0x202)][_0x3ac318(0x1a2)]:return'collabStatus.offline';case u[_0x3ac318(0x202)][_0x3ac318(0x1ba)]:return'collabStatus.conflict';case u[_0x3ac318(0x202)][_0x3ac318(0x1ce)]:return'collabStatus.fetchMiss';case u[_0x3ac318(0x202)][_0x3ac318(0x16c)]:return _0x3ac318(0x1da);case u['CollaborationStatus']['AWAITING']:case u[_0x3ac318(0x202)]['AWAITING_WITH_PENDING']:return _0x3ac318(0xb8);case u['CollaborationStatus']['SYNCED']:case u[_0x3ac318(0x202)]['PENDING']:return _0x3ac318(0xad);}}function tt(_0x3ffdc9){const _0x33c833=_0x4aeb9a,{status$:_0x455ad7}=_0x3ffdc9,_0x126a21=O[_0x33c833(0xd4)](_0x455ad7,u[_0x33c833(0x202)][_0x33c833(0x16c)]),_0x51ab2b=O[_0x33c833(0xe7)](a['LocaleService']),_0x59ecd9=O['useDependency'](u[_0x33c833(0x25a)]),_0x3d4595=_0x126a21!==u[_0x33c833(0x202)][_0x33c833(0x1a2)],_0x50efad=_0x51ab2b['t'](et(_0x126a21)),_0x274809=_0x3d4595?M['jsx']($e,{}):M[_0x33c833(0xd9)](ye,{}),_0x52b499=A[_0x33c833(0x23e)](()=>{_0x3d4595||_0x59ecd9['reconnect']();},[_0x3d4595,_0x59ecd9]);function _0x59fc51(){const _0x3847ae=_0x33c833;return M['jsxs'](_0x3847ae(0x160),{'className':_0x3847ae(0xa0),'onClick':_0x52b499,'children':[M[_0x3847ae(0xd9)](_0x3847ae(0x160),{'className':p[_0x3847ae(0x263)](_0x3847ae(0x22f),{'univer-text-green-500':_0x3d4595,'univer-text-red-500':!_0x3d4595}),'children':_0x274809}),M[_0x3847ae(0xd9)](_0x3847ae(0x160),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x50efad})]});}return _0x3d4595?_0x59fc51():M[_0x33c833(0xd9)](p[_0x33c833(0x316)],{'title':_0x51ab2b['t']('collab-client.tooltip.reconnect'),'children':_0x59fc51()});}var st=Object[_0x4aeb9a(0x1b9)],it=(_0xccc586,_0x51ccd6,_0x18d2bc,_0x3940b3)=>{const _0x387f7d=_0x4aeb9a;for(var _0x1dcfe8=_0x3940b3>0x1?void 0x0:_0x3940b3?st(_0x51ccd6,_0x18d2bc):_0x51ccd6,_0x2e5c3b=_0xccc586[_0x387f7d(0x2d7)]-0x1,_0x2036fe;_0x2e5c3b>=0x0;_0x2e5c3b--)(_0x2036fe=_0xccc586[_0x2e5c3b])&&(_0x1dcfe8=_0x2036fe(_0x1dcfe8)||_0x1dcfe8);return _0x1dcfe8;},K=(_0x1070e6,_0x149b39)=>(_0x5c6c46,_0x150039)=>_0x149b39(_0x5c6c46,_0x150039,_0x1070e6);exports[_0x4aeb9a(0x24c)]=class extends a[_0x4aeb9a(0x2c4)]{constructor(_0x8cf6a2,_0x32f844,_0x58d333,_0x5e7bb0){const _0x4024f4=_0x4aeb9a;super(),_(this,_0x4024f4(0x182),new I[(_0x4024f4(0x21c))](u['CollaborationStatus'][_0x4024f4(0x16c)])),(this['_univerInstanceService']=_0x8cf6a2,this[_0x4024f4(0x33b)]=_0x32f844,this[_0x4024f4(0x1e2)]=_0x58d333,this[_0x4024f4(0x293)]=_0x5e7bb0,this[_0x4024f4(0x2a0)](),this['_initStatusListener']());}[_0x4aeb9a(0x288)](){const _0x21d87d=_0x4aeb9a;this[_0x21d87d(0xc8)](this[_0x21d87d(0x2da)][_0x21d87d(0x2d3)][_0x21d87d(0x2b1)](I[_0x21d87d(0x25c)](()=>{const _0x57c831=_0x21d87d,_0xb9ce55=this[_0x57c831(0x2da)][_0x57c831(0x2b9)]();return _0xb9ce55?this[_0x57c831(0x1e2)][_0x57c831(0x16a)](_0xb9ce55[_0x57c831(0x2f0)]()):I['of'](null);}),I[_0x21d87d(0x25c)](_0x190e1d=>_0x190e1d?_0x190e1d[_0x21d87d(0x2c7)]:I['of'](u[_0x21d87d(0x202)]['NOT_COLLAB'])))['subscribe'](_0x1a75be=>{const _0x42ad62=_0x21d87d;this[_0x42ad62(0x182)]['next'](_0x1a75be);}));}['_initStatusComponent'](){const _0x36dff5=_0x4aeb9a;this[_0x36dff5(0xc8)](this['_uiPartsService'][_0x36dff5(0x14a)](O[_0x36dff5(0xbd)]['HEADER_MENU'],()=>O[_0x36dff5(0x1cd)](nt({'status$':this['_status$']['asObservable']()}),this[_0x36dff5(0x33b)])));}},exports['DesktopCollaborationStatusDisplayController']=it([K(0x0,a[_0x4aeb9a(0x2bb)]),K(0x1,a[_0x4aeb9a(0x18a)](a[_0x4aeb9a(0x95)])),K(0x2,a[_0x4aeb9a(0x18a)](u[_0x4aeb9a(0xa5)])),K(0x3,O[_0x4aeb9a(0x251)])],exports['DesktopCollaborationStatusDisplayController']);function nt(_0x39d3af){const {status$:_0xbdedfd}=_0x39d3af;return function(){const _0x4a907e=_0x12f6;return M[_0x4a907e(0xd9)](tt,{'status$':_0xbdedfd});};}const Te=a[_0x4aeb9a(0x29c)](_0x4aeb9a(0xd2));var rt=Object['getOwnPropertyDescriptor'],ot=(_0xec465c,_0x402f62,_0x3cb1ee,_0x7f248a)=>{const _0x1650bc=_0x4aeb9a;for(var _0x15530d=_0x7f248a>0x1?void 0x0:_0x7f248a?rt(_0x402f62,_0x3cb1ee):_0x402f62,_0x4e1cf9=_0xec465c[_0x1650bc(0x2d7)]-0x1,_0x3ff814;_0x4e1cf9>=0x0;_0x4e1cf9--)(_0x3ff814=_0xec465c[_0x4e1cf9])&&(_0x15530d=_0x3ff814(_0x15530d)||_0x15530d);return _0x15530d;},j=(_0x4e7c79,_0x108487)=>(_0x52b0ae,_0x3bec04)=>_0x108487(_0x52b0ae,_0x3bec04,_0x4e7c79);exports[_0x4aeb9a(0x245)]=class extends a[_0x4aeb9a(0x12b)]{constructor(_0x5a8bf6,_0x496a9d,_0x3b3636,_0x530bb6,_0x35c70d){const _0x451695=_0x4aeb9a;super(),this[_0x451695(0x23c)]=_0x5a8bf6,this[_0x451695(0x146)]=_0x496a9d,this[_0x451695(0x28c)]=_0x3b3636,this[_0x451695(0x135)]=_0x530bb6,_0x35c70d?_0x35c70d==null||_0x35c70d[_0x451695(0xcd)]()[_0x451695(0x25e)](()=>this['_init']()):(this['_logService'][_0x451695(0x1d7)]('[CollaborationDataLoaderController]',_0x451695(0x2d8)),this[_0x451695(0xe5)]());}async[_0x4aeb9a(0xe5)](){const _0x457251=_0x4aeb9a,_0x4d911c=this['_urlService'][_0x457251(0xdc)](_0x457251(0x311)),_0x4660d5=this[_0x457251(0x23c)][_0x457251(0xdc)](_0x457251(0x1e9)),_0x2672e1=this[_0x457251(0x23c)]['getParam']('subunit');if(!_0x4d911c||!_0x4660d5){this[_0x457251(0x146)]['debug'](_0x457251(0x19e),_0x457251(0x2df));return;}const _0x1a4152=await this[_0x457251(0x135)][_0x457251(0x25f)](_0x4d911c,Number(_0x4660d5),_0x2672e1);_0x1a4152&&_0x1a4152 instanceof a[_0x457251(0x22a)]&&this['_setupSubUnitSync'](_0x1a4152);}async[_0x4aeb9a(0x27e)](_0x4dbbcf){const _0x17161b=_0x4aeb9a;await this['_updateSubUnitFromURLParams'](_0x4dbbcf),_0x4dbbcf[_0x17161b(0x314)][_0x17161b(0x2b1)](I[_0x17161b(0x1b6)](this[_0x17161b(0x19d)]))['subscribe'](_0x15e795=>{const _0x59e30e=_0x17161b;_0x15e795&&this[_0x59e30e(0xf1)](_0x15e795);}),this[_0x17161b(0x23c)]['urlChange$'][_0x17161b(0x2b1)](I[_0x17161b(0x1b6)](this[_0x17161b(0x19d)]))[_0x17161b(0x302)](()=>this[_0x17161b(0x21f)](_0x4dbbcf));}[_0x4aeb9a(0xf1)](_0x829d0d,_0x2a8b3e=!0x1){const _0x1202e2=_0x4aeb9a,_0x3e58dc=this['_urlService']['getParam'](_0x1202e2(0x206));_0x829d0d[_0x1202e2(0x1ab)]()!==_0x3e58dc&&this['_urlService'][_0x1202e2(0x2b7)](_0x1202e2(0x206),_0x829d0d[_0x1202e2(0x1ab)](),_0x2a8b3e);}async[_0x4aeb9a(0x21f)](_0x142362){const _0x53a14c=_0x4aeb9a;var _0x504cdf;const _0x4c28e1=this[_0x53a14c(0x23c)]['getParam'](_0x53a14c(0x206));if(!_0x4c28e1||!_0x142362['getSheetBySheetId'](_0x4c28e1)){const _0x1d1cfd=_0x142362['getUnhiddenWorksheets']()[0x0],_0x481cc3=_0x142362['getSheetBySheetId'](_0x1d1cfd);if(!_0x481cc3)return;this[_0x53a14c(0xf1)](_0x481cc3,!0x0),await this['_commandService'][_0x53a14c(0xf7)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x142362[_0x53a14c(0x2f0)](),'subUnitId':_0x1d1cfd});return;}((_0x504cdf=_0x142362[_0x53a14c(0x10b)]())==null?void 0x0:_0x504cdf[_0x53a14c(0x1ab)]())!==_0x4c28e1&&await this[_0x53a14c(0x28c)]['executeCommand'](g[_0x53a14c(0xb9)]['id'],{'unitId':_0x142362[_0x53a14c(0x2f0)](),'subUnitId':_0x4c28e1});}},exports[_0x4aeb9a(0x245)]=ot([j(0x0,Te),j(0x1,a[_0x4aeb9a(0x14e)]),j(0x2,a[_0x4aeb9a(0x1f7)]),j(0x3,a[_0x4aeb9a(0x18a)](u[_0x4aeb9a(0x199)])),j(0x4,a[_0x4aeb9a(0x2b8)](Xe[_0x4aeb9a(0xb2)]))],exports[_0x4aeb9a(0x245)]);var at=Object[_0x4aeb9a(0x1b9)],ct=(_0x141e9f,_0x1eb95c,_0x481b0c,_0x4aa02c)=>{const _0x3387ba=_0x4aeb9a;for(var _0xc6592d=_0x4aa02c>0x1?void 0x0:_0x4aa02c?at(_0x1eb95c,_0x481b0c):_0x1eb95c,_0x3e2ce6=_0x141e9f[_0x3387ba(0x2d7)]-0x1,_0x3aa7c1;_0x3e2ce6>=0x0;_0x3e2ce6--)(_0x3aa7c1=_0x141e9f[_0x3e2ce6])&&(_0xc6592d=_0x3aa7c1(_0xc6592d)||_0xc6592d);return _0xc6592d;},Re=(_0x392aa7,_0x43b4ea)=>(_0x390293,_0x48cd4e)=>_0x43b4ea(_0x390293,_0x48cd4e,_0x392aa7);let de=class extends a[_0x4aeb9a(0x12b)]{constructor(_0x25bbfa,_0x1b6330){const _0x2a71e5=_0x4aeb9a;super(),this[_0x2a71e5(0xe3)]=_0x25bbfa,this[_0x2a71e5(0x2dc)]=_0x1b6330,this[_0x2a71e5(0xe5)]();}[_0x4aeb9a(0xe5)](){const _0x2bba88=_0x4aeb9a,_0x5f0797=this;this[_0x2bba88(0xc8)](this[_0x2bba88(0xe3)][_0x2bba88(0x196)]({'onBeforePasteImage':async _0x4cb1f0=>{const _0x51604f=_0x2bba88,_0x12e75b=await _0x5f0797[_0x51604f(0x2dc)][_0x51604f(0xf3)](_0x4cb1f0);return _0x12e75b?{'source':_0x12e75b['source'],'imageSourceType':_0x12e75b[_0x51604f(0x106)]}:null;}}));}};de=ct([Re(0x0,T['IDocClipboardService']),Re(0x1,Ke[_0x4aeb9a(0x29d)])],de);const be=[_0x4aeb9a(0x104),_0x4aeb9a(0x336),_0x4aeb9a(0xd8),'red.300',_0x4aeb9a(0x128),_0x4aeb9a(0x2ac)];function _0x21c1(){const _0x5dcec4=['popstate','_updateSubUnitFromURLParams','LocaleService','search','ENTITLE_NEED_BILLING_ADDRESS','registerBeforeClose','_entities','onPointerMove$','_initDependencies','collabCursorState$','_render','origin','Workbook','setItem','requireSession','_handleLeaveEvent','_collabCursorState$','univer-mr-2\x20univer-flex\x20univer-text-xl','INVALID_INVITE_CODE','resize','SessionStatus','_unitOnClients','fill','_getSessionTicket','WebSocketService','_taskIds','LICENSE_DISTRO_REJECTED','getCurrentSelections','_currentUsage','isTransformMutationsWithChangesetSuccess','_urlService','SetDocZoomRatioOperation','useCallback','_anchor','currentSkeleton$','14oMHabD','EffectRefRangId','RevisionService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','CollaborationDataLoaderController','values','addEventListener','UPDATE_CURSOR','_session','asObservable','IRenderManagerService','DesktopCollaborationStatusDisplayController','handleMoveRange','_getAnchorBounding','_eventUnsubscribe','_entityInit$','IUIPartsService','SetTextSelectionsOperation','MemberService','CHANGESET_REVISION_CONFILICT','_hasFormulaInDirtyRanges','_cursorShapes','path','LICENSE_EXPORT_SIZE_EXCEEDED','onPointerLeave$','CollaborationSessionService','DEFAULT_WS_SESSION_TICKET_URL','switchMap','get','then','loadUnit','collab-text-anchor-','_startDocCollabCursor','findNodePositionByCharIndex','clsx','color','MessageType','DocIMEInputManagerService','_refRangeService','save','_removeCollabCursors','transformStateCache','_handleEvent','APPLY_PERMISSION_DENIED','complete','1341974AxlDTQ','_releaseCalculationLimit','forEach','RegularPolygon','_cachedData','deserializeRangeWithSheet','updateOfflineData','forwardRef','undoState','tag','_disabled','HTTPService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','useRef','formula.calculation.started','getVpScrollXYInfoByPosToVp','_setupSubUnitSync','SUCCESS','Error','collaboration.single-unit.warning','COLORS','TOO_MANY_REQUESTS','OnLineIcon','fromEvent','_drawAnchor','DocSelectionManagerService','_initStatusListener','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_startSheetCollabCursor','displayName','_commandService','use','registerRenderModule','REDEMPTION_CODE_HAS_BEEN_CREATED','_checkCalculationAvailable','BrowserCollaborationSocketService','registerRefRange','_uiPartsService','beginPath','arc','SheetCollabCursorShape','NOT_FOUND','USER_NOT_INVITED_CODE','urlChange$','moveTo','_heartbeatTimer','createIdentifier','IImageIoService','RemoteUniscriptService','CLOSE_ROOM','_initStatusComponent','setTimeout','isTransformMutationFailure','saveTaskMap','toRgbString','size','UniverCollaborationClientUIPlugin','defineProperty','permission.title','CollaborationEvent','url(#off-line-icon_clip0_910_343)','attrs','yellow.400','SNAPSHOT_INVALID_SNAPSHOT','UNIVER_SHEET','_initResize','restore','pipe','generateRandomId','_online','getCurrent','IBeforeCloseService','SUBMIT_CHANGESET_TIMEOUT','setParam','Optional','getFocusedUnit','sessionTicket','IUniverInstanceService','_backgroundColor','fromEventSubject','UNIVER_DOC','_setFormulaLimitStatus','_getScale','formula.calculation.waiting','_docSyncEditingCollabCursorService','white','Disposable','on-line-icon_clip0_910_349','lineTo','status$','LOGIN_TOKEN_PROCESSING_FAILED','transform','on-line-icon','column','now','_collabSessionService','handleIRemoveCol','onCommandExecuted','REDEMPTION_CODE_NOT_STARTED','font','_docSkeletonManagerService','focused$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','hovered','_docTransformSelectionsService','length','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_transformPreviousActiveRange','_univerInstanceService','InsertColCommandId','_imageIoService','_httpService','LOCAL_CACHE_INTERVAL_KEY','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','session.connection-failed','getConfig','getUniverSheetInstance','href','MoveRangeCommandId','ENTITLE_REPORT_LIMIT_EXCEED','replace','send','PERMISSION_DENIED','INVITE_CODE_HAS_BEEN_UES','transformByState','eventID','RefRangeService','_localStorageService','mask','COMPLETION_FINISHED','getUnitId','_docSkeleton','round','has','collab-rect-range-','ISocketService','3hbgmLB','row','TEXT','_saveCache','toStringTag','measureText','Rect','show','stringify','Unknown\x20user','DeleteRangeMoveUpCommandId','_transformService','subscribe','getCurrentRevOfUnit','roomMembers','clearTimeout','_messageService','_initEntityListener','backgroundColor','CanceledError','off-line-icon_clip0_910_343','body','InsertRangeMoveDownCommandId','YUUMI_NO_CUBOID_FOR_QUESTION','collaboration-client.offline-data-not-saved','_labelPosition','ENTITLE_CHAT_LIMIT_EXCEED','unit','endColumn','CommandType','activeSheet$','saveOfflineData','Tooltip','triggerDblclick','_sheetSkeletonManagerService','_onCursorUpdate','includes','RichTextEditingMutation','max','redoState','_updateCollabCursors','endRow','stage','string','_handleHeartbeatEvent','getUnitStatus$','OTHER_CLIENTS_EDITING','TEXT_RANGE_LAYER_INDEX','transformSelections','stageInfo','transformRemoteChangeset','RECT','unitID','ThemeService','newValue','_configService','split','DocCollaborationEntity','override','DOC_RANGE_TYPE','ENTITLE_DUP_SUBSCRIPTION','YUUMI_ASYNCIO_CANCELLED','_unitStatus','SetFormulaCalculationStartMutation','jiqing.500','contains','replaceState','selection','_hideTimer','_injector','startsWith','_handleHover','M0\x200H16V16H0z','YUUMI_RATE_OVER_LIMIT','1546874OpxJOu','dispose','Module','_onCursorDelete','createInstance','REDEMPTION_USER_NOT_ELIGIBLE','Injector','/universer-api/license/formula/limit/done','_draw','_ensureSubject','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','fillText','push','_initCommandInterceptor','ILocalStorageService','getMergeData','createSocket','univer-flex\x20univer-items-center','hide','Warning','idSuffix','#FFF','CollaborationController','_cursorInfo$','_cursor','toString','isActive','merge','getUnit','disposeUnit','collabStatus.synced','67429310dxxhro','APPLY_DUPLICATED','docStateChange$','shareReplay','IRemoteInstanceService','ColorKit','[RemoteUniscriptService]:\x20no\x20focused\x20unit','ENSURE_SNAPSHOT_EXECUTION','INVITE_CODE_ALREADY_BOUND','getOffsetConfig','collabStatus.syncing','SetWorksheetActivateCommand','_transformHistoryAndStateStack','_onRefRangeChange','ILocalCacheService','BuiltInUIPart','RemoveColCommandId','5166924IgqUbg','/run/','_getMergeRange','_removeClearOtherTimer','/universer-api/license/formula/limit/start','CURRENT_STATUS_CANNOT_OPERATE','beforeCommandExecuted','getRangePointData','AUTHORIZE_CODE_ILLEGAL','disposeWithMe','getAncestorScale','find','SNAPSHOT_HAS_BEEN_REMOVED','registerDependencies','whenReady','SheetSkeletonManagerService','_name','onMouseMove','_registerRenderDependencies','uni.network.url-service','_memberService','useObservable','init','EMAIL_VERIFY_CODE_MISMATCH','REDEMPTION_CODE_INACTIVE','green.600','jsx','textRanges','UNDEFINED','getParam','_pollingInterval','transformMutationsWithChangeset','USERS_LEAVE','m2Prime','YUUMI_CONNECTOR_URL_NOT_FOUND','MOBILE_VERIFY_CODE_MISMATCH','_docClipboardService','executionId','_init','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','useDependency','_checkAndWaitForCalculationPermission','currentColor','transformIMECache','height','mutations','key','engine','CollaborationSocketService','post','_updateURLWithCurrentState','exhaustSavingTask','saveImage','APPLY_REJECT','pushState','runOnServer','executeCommand','addObject','bottom','range','_localeService','none','_send','name','colorChannel1','Shape','serializeRangeWithSheet','unshift','CollaborationUIEventService','purple.300','_showGuardMessage','imageSourceType','setConfig','WebBrowserSingleActiveUnitService','evenodd','getColorFromTheme','getActiveSheet','onPointerEnter$','closePath','xlink:href','IMessageService','getRelativeToViewportCoord','startRow','?taskId=','searchParams','Rectangle','YUUMI_URL_COL_OUT_OF_RANGE','_range','ISnapshotServerService','SheetsSelectionsService','roomMembers$','mergeOverrideWithDependencies','http://www.w3.org/2000/svg','getColor','_context','parseInt','doc.mutation.rich-text-editing','getSheetBySheetId','LICENSE_MAX_UNITS_EXCEEDED','YUUMI_UNABLE_LOAD_URL','INVITE_CODE_REQUIRED','collab-text-range-','ENTITLE_INSUFFICIENT_QUOTA','_maxFormulaLimit','_id','blue.400','sheetID','skeleton','RxDisposable','INVALID_ARGUMENT','min','_handleJoinEvent','_lastPointer','shift','getUndoRedoMutationParamsCache','totalFormulasToCalculate','_textBubble','SHEET_VIEWPORT_KEY','_dataLoaderService','SOCKET_FAILED_RETRY','EMAIL_HAS_BEEN_BOUND','_roomMembers$','getMember','session.collaboration-timeout','parse','cursorInfo','limitInfo','_shapes','getTypeOfUnitDisposed$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','VIEW_MAIN','LICENSE_IMPORT_SIZE_EXCEEDED','UniverCollaborationClientPlugin','YUUMI_ALL_TABLES_IS_INVALID','getDocRanges','_logService','transformMutation','handleInsertRow','add','registerComponent','event$','YUUMI_SUBSCRIPTION_NOT_FOUND','IConfigService','ILogService','invokeId','_saveTaskMap','INTERNAL_ERROR','currentTheme$','onStarting','getSkeleton','DocSkeletonManagerService','getItem','OffLineIcon','random','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','WECHAT_HAS_BEEN_BOUND','268344dbXzzc','rgba(255,\x20255,\x20255,\x200.01)','_doCreateSocket','setAlpha','_getSaveTimeout','div','labelPosition','url(#$1','INotificationService','UniverIcon','_collaborationUIEventService','setStateCache','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','_clearPolling','_selfUnitIDs','getCollabEntity$','subscribeEvent','NOT_COLLAB','history','substring','_startCalculationLimit','Tools','_colorAssignService','_hovered','ONLINE','getCellPositionByOffset','entries','getMemberID','_notificationService','unsubscribe','getformulaLimitStatusUrl','_syncEditingCollabCursorService','defs','_getFormulaLimitStatus','code','top','text','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_color','_status$','maxFormulaLimit','unitId','distinctUntilChanged','getValue','DocStateChangeManagerService','YUUMI_AI_RUN_FAILED','...','Inject','REDEMPTION_INVALID_CODE','clearInterval','6482403sWxKUS','getRenderById','PAYMENT_CHANNEL_NOT_SUPPORT','USER_NOT_FOUND','cursorInfo$','location','black','_assignedColors','_anchorDot','addClipboardHook','SetSelectionsOperation','clipPath','DataLoaderService','REDEMPTION_CODE_FULLY_REDEEMED','params','DependentOn','dispose$','[CollaborationDataLoaderController]','from','error','m1Prime','OFFLINE','entityInit$','MOBILE_HAS_BEEN_BOUND','isArray','_toggleOnline','_lastResponseTimestamp','pluginName','getCollabCursors$','ITransformService','getSheetId','UNRECOGNIZED','ticket','UniverInstanceType','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_docStateChangeManagerService','CollaborationUIEventId','1em','drawWith','setUndoRedoMutationParamsCache','_setupBeforeClosingHandler','takeUntil','sessionStatus$','debounceTime','getOwnPropertyDescriptor','CONFLICT','_scheduleSaving','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','univerjs-icon\x20univerjs-icon-','startFormulaLimitUrl','_scene','PY_RUNTIME_SCRIPT_ERROR','setShapeProps','getStateCache','throttleTime','ALREADY_EXISTS','_transformUndoRedoStack','_toggleOffline','_docTransformIMECacheService','_getSheetObject','_renderManagerService','_drawTextRange','125hnanyk','DATA_SOURCE_TOO_LARGE','connectInjector','FETCH_MISS','off-line-icon','ranges','ACTIVE_UNIT_EVENT_CHANNEL','Plugin','_clearOtherTimers','Vector2','collaboration.closeRoom','ERROR_AGAIN','debug','onRendered','addObjects','collabStatus.notCollab','delete','currentUsage','width','APPLY_NON_SEQUENTIAL_REVISION','_drawRectRange','_collabCursorController','_revisionService','_collaborationController','startColumn','_registerDependencies','_config','_beforeCloseService','FromArray','subUnitId','type','makeDirty','debounce','assign','handleDeleteRangeMoveLeft','deepClone','createElement','_initEvent','runId','2427728MAQSMS','getLocalCacheKey','UnitStatus','flatMap','_localCacheService','ICommandService','combineLatest','_document','Subject','_scheduleHeartbeat','fillStyle','replaceDocRanges','WebURLService','_hover','setInterval','result','CollaborationStatus','LOGIN_FAILED','toDisposable','_docTransformStateCacheService','subunit','next','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_createSocketURL','map','_scheduleClearOtherTimer','assignAColorForMemberID','_refreshCollabCursors','filter','set','_themeService','_cursors','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_applyCommand','data','OTHER_CLIENT_EDITING','_updateLocalCursor','MUTATION','DeleteRangeMoveLeftCommandId','selections','_colorIndex','getTypeOfUnitAdded$','BehaviorSubject','removeParam'];_0x21c1=function(){return _0x5dcec4;};return _0x21c1();}class pe extends a[_0x4aeb9a(0x2c4)]{constructor(){const _0x36b9ae=_0x4aeb9a;super(...arguments),_(this,_0x36b9ae(0x194),new Map()),_(this,_0x36b9ae(0x21a),0x0);}[_0x4aeb9a(0x20c)](_0x517ece){const _0x125c7b=_0x4aeb9a;if(this[_0x125c7b(0x194)][_0x125c7b(0x2f3)](_0x517ece))return this[_0x125c7b(0x194)][_0x125c7b(0x25d)](_0x517ece);const _0x697e70=be[this[_0x125c7b(0x21a)]];return this[_0x125c7b(0x21a)]=(this[_0x125c7b(0x21a)]+0x1)%be['length'],this[_0x125c7b(0x194)]['set'](_0x517ece,_0x697e70),_0x697e70;}}function xe(_0xc07875){const _0x2758b4=_0x4aeb9a;let _0x113e9a='';for(const _0x3472aa of _0xc07875){const {startOffset:_0x242781,endOffset:_0xbdd5f7,isActive:_0x24d64d,rangeType:_0xc1ccb0,segmentId:_0x2e3e71,segmentPage:_0x3113b2}=_0x3472aa;_0x113e9a[_0x2758b4(0x2d7)]&&(_0x113e9a+=','),_0x113e9a+=_0x242781+':'+_0xbdd5f7+':'+(_0x24d64d?'1':'0')+':'+_0xc1ccb0+':'+_0x2e3e71+':'+_0x3113b2;}return _0x113e9a;}function lt(_0x29163e){const _0x46cdc2=_0x4aeb9a,_0x37a5cb=_0x29163e[_0x46cdc2(0x32e)](','),_0x400e66=[];for(const _0x26eaa6 of _0x37a5cb){const [_0x221629,_0x38eb2a,_0x5cb8b8,_0x3357f4,_0x5de9cf,_0x4ab4af]=_0x26eaa6[_0x46cdc2(0x32e)](':');_0x400e66['push']({'startOffset':Number(_0x221629),'endOffset':Number(_0x38eb2a),'collapsed':_0x221629===_0x38eb2a,'isActive':_0x5cb8b8==='1','rangeType':_0x3357f4===a[_0x46cdc2(0x331)]['TEXT']?a[_0x46cdc2(0x331)][_0x46cdc2(0x2f8)]:a[_0x46cdc2(0x331)][_0x46cdc2(0x329)],'segmentId':typeof _0x5de9cf==_0x46cdc2(0x321)?String(_0x5de9cf):'','segmentPage':Number(_0x4ab4af!=null?_0x4ab4af:-0x1)});}return _0x400e66['some'](_0x5a77a5=>_0x5a77a5[_0x46cdc2(0xa9)])||(_0x400e66[0x0][_0x46cdc2(0xa9)]=!0x0),_0x400e66;}class Oe extends a[_0x4aeb9a(0x12b)]{constructor(){const _0x1188c7=_0x4aeb9a;super(...arguments),_(this,'_collabCursorState$',new I['BehaviorSubject'](null)),_(this,_0x1188c7(0x227),this[_0x1188c7(0x22e)][_0x1188c7(0x24a)]());}['syncEditingCollabCursor'](_0x7dc6f5){const _0x3961d8=_0x4aeb9a,{unitID:_0x5d1084,memberID:_0x8abd31,textRanges:_0x2408d1}=_0x7dc6f5,_0x44a079=xe(_0x2408d1);if(_0x44a079==='')return;const _0x1c8d2f={'unitID':_0x5d1084,'memberID':_0x8abd31,'selection':_0x44a079};this['_collabCursorState$'][_0x3961d8(0x207)](_0x1c8d2f);}}var _t=Object[_0x4aeb9a(0x1b9)],ht=(_0x1b8b81,_0x442d1f,_0x4ec6e9,_0x2d0d51)=>{for(var _0x2d943e=_0x2d0d51>0x1?void 0x0:_0x2d0d51?_t(_0x442d1f,_0x4ec6e9):_0x442d1f,_0x1b6819=_0x1b8b81['length']-0x1,_0x1ccc53;_0x1b6819>=0x0;_0x1b6819--)(_0x1ccc53=_0x1b8b81[_0x1b6819])&&(_0x2d943e=_0x1ccc53(_0x2d943e)||_0x2d943e);return _0x2d943e;},U=(_0x4b860f,_0x1f669c)=>(_0x41725e,_0x4ccceb)=>_0x1f669c(_0x41725e,_0x4ccceb,_0x4b860f);const ut=0x12c,It=0x64;let fe=class extends a[_0x4aeb9a(0x12b)]{constructor(_0x3f5a99,_0x3229eb,_0x153c02,_0x1b9a6f,_0x4b221f,_0x6827d3,_0x75651a,_0x3c077f,_0x4e2ff4){const _0xc127bd=_0x4aeb9a;super(),_(this,_0xc127bd(0x2b3),!0x1),_(this,_0xc127bd(0xe5),!0x1),_(this,'_cursorInfo$',new I[(_0xc127bd(0x21c))](new Map())),_(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),_(this,_0xc127bd(0x138),new I[(_0xc127bd(0x21c))]([])),_(this,_0xc127bd(0x119),this[_0xc127bd(0x138)][_0xc127bd(0x2b1)](I[_0xc127bd(0x1b8)](ut))),_(this,_0xc127bd(0x216),a[_0xc127bd(0x1eb)](_0x305a05=>{const _0x23c189=_0xc127bd,_0x3b4dd9={'eventID':v['CollaborationEvent'][_0x23c189(0x248)],'data':{'unitID':this[_0x23c189(0x32a)],'memberID':this['_session'][_0x23c189(0x176)](),'selection':xe(_0x305a05)}};this[_0x23c189(0x249)][_0x23c189(0x2e7)](_0x3b4dd9,this[_0x23c189(0x32a)]);},It)),(this[_0xc127bd(0x32a)]=_0x3f5a99,this[_0xc127bd(0x249)]=_0x3229eb,this[_0xc127bd(0x33b)]=_0x153c02,this[_0xc127bd(0x171)]=_0x1b9a6f,this['_memberService']=_0x4b221f,this[_0xc127bd(0x17a)]=_0x6827d3,this[_0xc127bd(0x301)]=_0x75651a,this[_0xc127bd(0x2da)]=_0x3c077f,this['_commandService']=_0x4e2ff4);}get[_0x4aeb9a(0x13c)](){const _0x30e4e1=_0x4aeb9a;return this[_0x30e4e1(0xa6)][_0x30e4e1(0x186)]();}get[_0x4aeb9a(0x304)](){const _0xb0097c=_0x4aeb9a;return this[_0xb0097c(0x138)][_0xb0097c(0x186)]();}['dispose'](){const _0x5e1640=_0x4aeb9a;super[_0x5e1640(0x341)](),this[_0x5e1640(0xa6)]['next'](new Map()),this[_0x5e1640(0xa6)][_0x5e1640(0x26d)](),this[_0x5e1640(0x138)][_0x5e1640(0x207)]([]),this[_0x5e1640(0x138)][_0x5e1640(0x26d)]();}['init'](){const _0x287992=_0x4aeb9a;this[_0x287992(0xe5)]||(this[_0x287992(0xe5)]=!0x0,this['_session'][_0x287992(0x1b7)][_0x287992(0x2b1)](I[_0x287992(0x1b6)](this['dispose$']))[_0x287992(0x302)](_0x636f9a=>{const _0x3e3ce9=_0x287992;_0x636f9a===u['SessionStatus'][_0x3e3ce9(0x173)]?this['_toggleOnline']():this[_0x3e3ce9(0x1c6)]();}),this['_session'][_0x287992(0x14b)][_0x287992(0x2b1)](I['takeUntil'](this[_0x287992(0x19d)]))[_0x287992(0x302)](_0xfbdb10=>{const _0x4d898c=_0x287992,_0x5e405d=_0xfbdb10[_0x4d898c(0x2eb)];_0x5e405d===v[_0x4d898c(0x2a9)][_0x4d898c(0x248)]&&this[_0x4d898c(0x319)](_0xfbdb10),_0x5e405d===v['CollaborationEvent']['USERS_LEAVE']&&this[_0x4d898c(0x343)](_0xfbdb10);}),this[_0x287992(0xc8)](this[_0x287992(0x28c)][_0x287992(0x2cf)](_0x18ae58=>{const _0x3a22b5=_0x287992,_0x1a7c94=_0x18ae58[_0x3a22b5(0x19b)];_0x1a7c94!=null&&this[_0x3a22b5(0x2b3)]&&_0x18ae58['id']===W[_0x3a22b5(0x252)]['id']&&_0x1a7c94[_0x3a22b5(0x184)]===this['unitID']&&_0x1a7c94['isEditing']===!0x1&&_0x1a7c94[_0x3a22b5(0x1d0)][_0x3a22b5(0x2d7)]>0x0&&this[_0x3a22b5(0x216)](_0x1a7c94[_0x3a22b5(0x1d0)]);})),this[_0x287992(0x17a)][_0x287992(0x227)][_0x287992(0x2b1)](I[_0x287992(0x1b6)](this[_0x287992(0x19d)]))['subscribe'](_0x4d0e99=>{const _0x1e1769=_0x287992;if((_0x4d0e99==null?void 0x0:_0x4d0e99[_0x1e1769(0x32a)])!==this[_0x1e1769(0x32a)])return;const _0x3dd141={'eventID':v['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x4d0e99};this['_onCursorUpdate'](_0x3dd141);}),this[_0x287992(0xc8)](this[_0x287992(0x28c)]['onCommandExecuted'](_0x49830b=>{const _0x12d8b7=_0x287992;if(_0x49830b[_0x12d8b7(0x19b)]==null)return;const _0x21d82f=_0x49830b[_0x12d8b7(0x19b)];if(_0x49830b['id']!==W[_0x12d8b7(0x31b)]['id']||_0x21d82f[_0x12d8b7(0x184)]!==this[_0x12d8b7(0x32a)])return;const _0x54ec3b={'id':'doc.mutation.rich-text-editing','params':_0x21d82f},_0x2956ca=this[_0x12d8b7(0x13c)];for(const [_0x221e8c,_0x36f5da]of _0x2956ca){const _0x21ccc6={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x12d8b7(0x32a)],'actions':null,'textRanges':_0x36f5da[_0x12d8b7(0x1d0)]}},_0x24b4fe=this[_0x12d8b7(0x301)][_0x12d8b7(0x147)](_0x54ec3b,_0x21ccc6,!0x1);if(v[_0x12d8b7(0x2a2)](_0x24b4fe))throw _0x24b4fe[_0x12d8b7(0x1a0)];_0x2956ca[_0x12d8b7(0x20f)](_0x221e8c,{..._0x36f5da,'ranges':_0x24b4fe[_0x12d8b7(0xe0)][_0x12d8b7(0x19b)][_0x12d8b7(0xda)]});}queueMicrotask(()=>{const _0x598c8d=_0x12d8b7;this[_0x598c8d(0xa6)][_0x598c8d(0x207)](_0x2956ca);});})));}[_0x4aeb9a(0x319)](_0x529155){const _0xd2dc19=_0x4aeb9a;var _0x1e6d61,_0x30e7d1;const {memberID:_0x326593,selection:_0x3044bc}=_0x529155[_0xd2dc19(0x214)],_0x16a500=lt(_0x3044bc),_0x17b03f=(_0x30e7d1=(_0x1e6d61=this['_memberService'][_0xd2dc19(0x139)](this[_0xd2dc19(0x32a)],_0x326593))==null?void 0x0:_0x1e6d61[_0xd2dc19(0xfe)])!=null?_0x30e7d1:_0xd2dc19(0x2ff),_0x31ea74={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x326593),'name':_0x17b03f,'ranges':_0x16a500},_0x312634=this['cursorInfo'];_0x312634[_0xd2dc19(0x20f)](_0x326593,_0x31ea74),this[_0xd2dc19(0xa6)][_0xd2dc19(0x207)](_0x312634);}[_0x4aeb9a(0x343)](_0x471e5f){const _0x2cb3af=_0x4aeb9a,{memberID:_0x140ec7}=_0x471e5f[_0x2cb3af(0x214)],_0x21e188=this[_0x2cb3af(0x13c)];_0x21e188[_0x2cb3af(0x1db)](_0x140ec7),this[_0x2cb3af(0xa6)][_0x2cb3af(0x207)](_0x21e188);}[_0x4aeb9a(0x1a6)](){const _0x1dd792=_0x4aeb9a;var _0x52b6a3;if(this[_0x1dd792(0x2b3)]=!0x0,((_0x52b6a3=this[_0x1dd792(0x2da)][_0x1dd792(0x2b9)]())==null?void 0x0:_0x52b6a3[_0x1dd792(0x2f0)]())!==this['unitID'])return;const _0x2a6b37=this[_0x1dd792(0x33b)]['get'](W[_0x1dd792(0x287)])[_0x1dd792(0x145)]();Array[_0x1dd792(0x1a5)](_0x2a6b37)&&_0x2a6b37[_0x1dd792(0x2d7)]>0x0&&this['_updateLocalCursor'](_0x2a6b37);}['_toggleOffline'](){const _0x9b6c78=_0x4aeb9a;this[_0x9b6c78(0x2b3)]=!0x1;}};fe=ht([U(0x2,a[_0x4aeb9a(0x18a)](a[_0x4aeb9a(0x95)])),U(0x3,a[_0x4aeb9a(0x18a)](pe)),U(0x4,a[_0x4aeb9a(0x18a)](u[_0x4aeb9a(0x253)])),U(0x5,a[_0x4aeb9a(0x18a)](Oe)),U(0x6,v[_0x4aeb9a(0x1aa)]),U(0x7,a[_0x4aeb9a(0x2bb)]),U(0x8,a[_0x4aeb9a(0x1f7)])],fe);var St=Object[_0x4aeb9a(0x1b9)],dt=(_0x3925e5,_0xbe8ecb,_0x29b83a,_0x231c2b)=>{const _0x314696=_0x4aeb9a;for(var _0x28a97e=_0x231c2b>0x1?void 0x0:_0x231c2b?St(_0xbe8ecb,_0x29b83a):_0xbe8ecb,_0x23dfc3=_0x3925e5[_0x314696(0x2d7)]-0x1,_0x37fbbc;_0x23dfc3>=0x0;_0x23dfc3--)(_0x37fbbc=_0x3925e5[_0x23dfc3])&&(_0x28a97e=_0x37fbbc(_0x28a97e)||_0x28a97e);return _0x28a97e;},w=(_0x214997,_0x33976c)=>(_0x2ee1eb,_0x182851)=>_0x33976c(_0x2ee1eb,_0x182851,_0x214997);const ft=0x12c,mt=0x64,gt=()=>{let _0x442e70=[],_0x248c16=!0x1;return _0x29d2f8=>{const _0x1461c0=_0x12f6;_0x442e70[_0x1461c0(0x9b)](_0x29d2f8),_0x248c16||(_0x248c16=!0x0,setTimeout(()=>{const _0x505199=_0x1461c0;_0x442e70[_0x505199(0x270)](_0x4acf39=>_0x4acf39()),_0x442e70=[],_0x248c16=!0x1;}));};};let me=class extends a[_0x4aeb9a(0x12b)]{constructor(_0x56b1a9,_0x266557,_0x45ded4,_0x4c3e2e,_0x37529e,_0x3324da,_0x3a102d,_0x269fef){const _0x4d5ae6=_0x4aeb9a;super(),_(this,_0x4d5ae6(0x2b3),!0x1),_(this,_0x4d5ae6(0xe5),!0x1),_(this,_0x4d5ae6(0xa6),new I[(_0x4d5ae6(0x21c))](new Map())),_(this,_0x4d5ae6(0x191),this['_cursorInfo$'][_0x4d5ae6(0x24a)]()),_(this,_0x4d5ae6(0x138),new I[(_0x4d5ae6(0x21c))]([])),_(this,_0x4d5ae6(0x119),this[_0x4d5ae6(0x138)][_0x4d5ae6(0x2b1)](I[_0x4d5ae6(0x1b8)](ft))),_(this,_0x4d5ae6(0x216),a[_0x4d5ae6(0x1eb)]((_0x4950e3,_0x11ba54)=>{const _0x37f943=_0x4d5ae6,_0x4459b3={'eventID':v['CollaborationEvent'][_0x37f943(0x248)],'data':{'unitID':this[_0x37f943(0x32a)],'memberID':this[_0x37f943(0x249)][_0x37f943(0x176)](),'selection':x[_0x37f943(0x101)](_0x4950e3,_0x11ba54['range'])}};this[_0x37f943(0x249)][_0x37f943(0x2e7)](_0x4459b3,this[_0x37f943(0x32a)]);},mt)),(this[_0x4d5ae6(0x32a)]=_0x56b1a9,this[_0x4d5ae6(0x249)]=_0x266557,this[_0x4d5ae6(0x33b)]=_0x45ded4,this['_colorAssignService']=_0x4c3e2e,this[_0x4d5ae6(0xd3)]=_0x37529e,this[_0x4d5ae6(0x2da)]=_0x3324da,this[_0x4d5ae6(0x28c)]=_0x3a102d,this[_0x4d5ae6(0x267)]=_0x269fef);}get[_0x4aeb9a(0x13c)](){const _0x592a85=_0x4aeb9a;return this['_cursorInfo$'][_0x592a85(0x186)]();}get[_0x4aeb9a(0x304)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x4c9e16=_0x4aeb9a;super[_0x4c9e16(0x341)](),this[_0x4c9e16(0xa6)][_0x4c9e16(0x207)](new Map()),this[_0x4c9e16(0xa6)][_0x4c9e16(0x26d)](),this[_0x4c9e16(0x138)][_0x4c9e16(0x207)]([]),this['_roomMembers$'][_0x4c9e16(0x26d)]();}[_0x4aeb9a(0xd5)](){const _0x330415=_0x4aeb9a;this[_0x330415(0xe5)]||(this[_0x330415(0xe5)]=!0x0,this[_0x330415(0x249)][_0x330415(0x1b7)][_0x330415(0x2b1)](I['takeUntil'](this[_0x330415(0x19d)]))[_0x330415(0x302)](_0x5d1fd1=>{const _0x16e6de=_0x330415;_0x5d1fd1===u[_0x16e6de(0x232)][_0x16e6de(0x173)]?this[_0x16e6de(0x1a6)]():this[_0x16e6de(0x1c6)]();}),this[_0x330415(0x249)][_0x330415(0x14b)]['pipe'](I[_0x330415(0x1b6)](this['dispose$']))[_0x330415(0x302)](_0x4d3535=>{const _0x4840d4=_0x330415,_0x4bd01b=_0x4d3535[_0x4840d4(0x2eb)];_0x4bd01b===v[_0x4840d4(0x2a9)][_0x4840d4(0x248)]&&this[_0x4840d4(0x319)](_0x4d3535),_0x4bd01b===v[_0x4840d4(0x2a9)][_0x4840d4(0xdf)]&&this['_onCursorDelete'](_0x4d3535);}),this[_0x330415(0xbb)](),this[_0x330415(0xc8)](this[_0x330415(0x28c)][_0x330415(0x2cf)](_0x2816be=>{const _0x5a4d0e=_0x330415;if(this[_0x5a4d0e(0x2b3)]&&_0x2816be['id']===g[_0x5a4d0e(0x197)]['id']&&_0x2816be[_0x5a4d0e(0x19b)][_0x5a4d0e(0x184)]===this[_0x5a4d0e(0x32a)]){const _0x3487e5=_0x2816be[_0x5a4d0e(0x19b)];this['_updateLocalCursor'](_0x3487e5[_0x5a4d0e(0x1e8)],_0x3487e5[_0x5a4d0e(0x219)][0x0]);}})));}[_0x4aeb9a(0x319)](_0x402fa8){const _0x454384=_0x4aeb9a;var _0x421f4d,_0x41b9a0;const {memberID:_0x1c8fb6,selection:_0x567064}=_0x402fa8[_0x454384(0x214)],{sheetName:_0x239223,range:_0x399532}=x[_0x454384(0x273)](_0x567064),_0x19c50c={'name':(_0x41b9a0=(_0x421f4d=this['_memberService']['getMember'](this[_0x454384(0x32a)],_0x1c8fb6))==null?void 0x0:_0x421f4d[_0x454384(0xfe)])!=null?_0x41b9a0:'Unknown\x20user','range':this[_0x454384(0xc1)](_0x239223,_0x399532),'sheetID':_0x239223,'color':this[_0x454384(0x171)][_0x454384(0x20c)](_0x1c8fb6),'selection':_0x567064},_0x13149e=this['cursorInfo'];_0x13149e[_0x454384(0x20f)](_0x1c8fb6,_0x19c50c),this[_0x454384(0xa6)][_0x454384(0x207)](_0x13149e);}[_0x4aeb9a(0x343)](_0x156efa){const _0x46c2de=_0x4aeb9a,{memberID:_0xa0cec}=_0x156efa[_0x46c2de(0x214)],_0x2e1449=this[_0x46c2de(0x13c)];_0x2e1449[_0x46c2de(0x1db)](_0xa0cec),this[_0x46c2de(0xa6)][_0x46c2de(0x207)](_0x2e1449);}[_0x4aeb9a(0xc1)](_0x30b423,_0xaea83c){const _0x232ee1=_0x4aeb9a;var _0x123eef,_0x35b0fb;const _0x2cbff8=(_0x35b0fb=(_0x123eef=this[_0x232ee1(0x2da)][_0x232ee1(0x2e2)](this[_0x232ee1(0x32a)]))==null?void 0x0:_0x123eef[_0x232ee1(0x120)](_0x30b423))==null?void 0x0:_0x35b0fb[_0x232ee1(0x9e)]();return(_0x2cbff8==null?void 0x0:_0x2cbff8[_0x232ee1(0xca)](_0x5ef859=>a[_0x232ee1(0x114)][_0x232ee1(0x337)](_0x5ef859,_0xaea83c)))||_0xaea83c;}[_0x4aeb9a(0xbb)](){const _0x42d5c6=_0x4aeb9a,_0x47a411=new a['DisposableCollection'](),_0x56d1a0=gt(),_0x1c2e0e=()=>{const _0x55e1f3=_0x12f6;_0x47a411[_0x55e1f3(0x341)]();const _0x18086a=(_0x44c6ed,_0x3e5afe,_0xf32b92,_0x61c15d)=>{const _0x43f40b=_0x55e1f3;let _0x5baf68=[];switch(_0x44c6ed['id']){case g[_0x43f40b(0x242)][_0x43f40b(0x218)]:{_0x5baf68=g[_0x43f40b(0x1ed)](_0x44c6ed,_0x61c15d);break;}case g[_0x43f40b(0x242)][_0x43f40b(0x300)]:{_0x5baf68=g['handleDeleteRangeMoveUp'](_0x44c6ed,_0x61c15d);break;}case g[_0x43f40b(0x242)][_0x43f40b(0x2db)]:{_0x5baf68=g['handleInsertCol'](_0x44c6ed,_0x61c15d);break;}case g['EffectRefRangId'][_0x43f40b(0x30c)]:{_0x5baf68=g['handleInsertRangeMoveDown'](_0x44c6ed,_0x61c15d);break;}case g[_0x43f40b(0x242)]['InsertRangeMoveRightCommandId']:{_0x5baf68=g['handleInsertRangeMoveRight'](_0x44c6ed,_0x61c15d);break;}case g[_0x43f40b(0x242)]['InsertRowCommandId']:{_0x5baf68=g[_0x43f40b(0x148)](_0x44c6ed,_0x61c15d);break;}case g[_0x43f40b(0x242)][_0x43f40b(0x2e4)]:{_0x5baf68=g[_0x43f40b(0x24d)](_0x44c6ed,_0x61c15d);break;}case g[_0x43f40b(0x242)][_0x43f40b(0xbe)]:{_0x5baf68=g[_0x43f40b(0x2ce)](_0x44c6ed,_0x61c15d);break;}case g[_0x43f40b(0x242)]['RemoveRowCommandId']:{_0x5baf68=g['handleIRemoveRow'](_0x44c6ed,_0x61c15d);break;}}const _0x2cf936=g['runRefRangeMutations'](_0x5baf68,_0x61c15d),_0x3a2489=this['cursorInfo'][_0x43f40b(0x25d)](_0x3e5afe);if(_0x3a2489&&_0x2cf936){const _0x25283d={..._0x3a2489,'range':_0x2cf936};this[_0x43f40b(0x13c)][_0x43f40b(0x20f)](_0x3e5afe,_0x25283d),_0x56d1a0(()=>{const _0x40001d=_0x43f40b,_0x4efcfb=this['_refRangeService'][_0x40001d(0x292)](_0x2cf936,_0x27bbb4=>(_0x4efcfb[_0x40001d(0x341)](),_0x18086a(_0x27bbb4,_0x3e5afe,_0xf32b92,_0x2cf936)));_0x47a411[_0x40001d(0x149)](_0x4efcfb);});}return{'redos':[],'undos':[]};};this[_0x55e1f3(0x13c)][_0x55e1f3(0x270)]((_0x33cd32,_0x272907)=>{const _0xf165ee=_0x55e1f3,{range:_0x25cc81,sheetID:_0x2c6210}=_0x33cd32,_0x31c836=this['_refRangeService'][_0xf165ee(0x292)](_0x25cc81,_0x313e99=>(_0x31c836[_0xf165ee(0x341)](),_0x18086a(_0x313e99,_0x272907,_0x2c6210,_0x25cc81)));_0x47a411[_0xf165ee(0x149)](_0x31c836);});};this[_0x42d5c6(0xc8)](a[_0x42d5c6(0x204)](this['_cursorInfo$'][_0x42d5c6(0x302)](()=>{_0x1c2e0e();})));}[_0x4aeb9a(0x1a6)](){const _0x175725=_0x4aeb9a;var _0x341508,_0x1dc9bb;if(this[_0x175725(0x2b3)]=!0x0,((_0x341508=this[_0x175725(0x2da)][_0x175725(0x2b9)]())==null?void 0x0:_0x341508[_0x175725(0x2f0)]())!==this[_0x175725(0x32a)])return;const _0x4b8dc4=(_0x1dc9bb=this[_0x175725(0x33b)]['get'](g[_0x175725(0x118)])[_0x175725(0x239)]())==null?void 0x0:_0x1dc9bb[0x0],_0x4a36bf=this['_univerInstanceService']['getCurrentUnitForType'](a[_0x175725(0x1ae)][_0x175725(0x2ae)])[_0x175725(0x10b)]();_0x4b8dc4&&_0x4a36bf&&this['_updateLocalCursor'](_0x4a36bf[_0x175725(0x1ab)](),_0x4b8dc4);}[_0x4aeb9a(0x1c6)](){this['_online']=!0x1;}};me=dt([w(0x2,a[_0x4aeb9a(0x18a)](a['Injector'])),w(0x3,a[_0x4aeb9a(0x18a)](pe)),w(0x4,a[_0x4aeb9a(0x18a)](u[_0x4aeb9a(0x253)])),w(0x5,a[_0x4aeb9a(0x2bb)]),w(0x6,a[_0x4aeb9a(0x1f7)]),w(0x7,a[_0x4aeb9a(0x18a)](g[_0x4aeb9a(0x2ec)]))],me);var vt=Object[_0x4aeb9a(0x1b9)],Et=(_0x5267d7,_0x4674ba,_0x1db2f9,_0x23aaea)=>{for(var _0x332ce0=_0x23aaea>0x1?void 0x0:_0x23aaea?vt(_0x4674ba,_0x1db2f9):_0x4674ba,_0x98a54f=_0x5267d7['length']-0x1,_0x5b93de;_0x98a54f>=0x0;_0x98a54f--)(_0x5b93de=_0x5267d7[_0x98a54f])&&(_0x332ce0=_0x5b93de(_0x332ce0)||_0x332ce0);return _0x332ce0;},oe=(_0x3d3e3c,_0x193ab3)=>(_0x3b61c7,_0x16b068)=>_0x193ab3(_0x3b61c7,_0x16b068,_0x3d3e3c);let B=class extends a['RxDisposable']{constructor(_0x56bea4,_0x2de705,_0x3d1f89){const _0x1d99b6=_0x4aeb9a;super(),_(this,'_entities',new Map()),_(this,_0x1d99b6(0x250),new I[(_0x1d99b6(0x1fa))]()),(this[_0x1d99b6(0x2da)]=_0x56bea4,this['_injector']=_0x2de705,this[_0x1d99b6(0x2cd)]=_0x3d1f89,this[_0x1d99b6(0xe5)]());}[_0x4aeb9a(0x341)](){const _0x4e5e76=_0x4aeb9a;super['dispose'](),this[_0x4e5e76(0x250)][_0x4e5e76(0x26d)](),this[_0x4e5e76(0x224)]['forEach'](_0x489bcd=>_0x489bcd['dispose']());}[_0x4aeb9a(0x1a9)](_0x347698){const _0x1e5873=_0x4aeb9a;return this['_entities'][_0x1e5873(0x2f3)](_0x347698)?this[_0x1e5873(0x224)][_0x1e5873(0x25d)](_0x347698)[_0x1e5873(0x191)]:this[_0x1e5873(0x250)][_0x1e5873(0x2b1)](I[_0x1e5873(0x20e)](_0x219a76=>_0x219a76[_0x1e5873(0x32a)]===_0x347698),I[_0x1e5873(0x25c)](_0x3b64b4=>_0x3b64b4[_0x1e5873(0x191)]));}[_0x4aeb9a(0xe5)](){const _0xd6f6ca=_0x4aeb9a;this[_0xd6f6ca(0x2da)][_0xd6f6ca(0x21b)](a['UniverInstanceType']['UNIVER_SHEET'])[_0xd6f6ca(0x2b1)](I[_0xd6f6ca(0x1b6)](this[_0xd6f6ca(0x19d)]))['subscribe'](async _0x461cc1=>{const _0xf0371b=_0xd6f6ca,_0x427b29=_0x461cc1[_0xf0371b(0x2f0)](),_0x32f33a=await this[_0xf0371b(0x28a)](_0x427b29);this[_0xf0371b(0x250)]['next'](_0x32f33a),this[_0xf0371b(0x224)][_0xf0371b(0x20f)](_0x427b29,_0x32f33a);}),this[_0xd6f6ca(0x2da)][_0xd6f6ca(0x21b)](a[_0xd6f6ca(0x1ae)][_0xd6f6ca(0x2be)])[_0xd6f6ca(0x2b1)](I[_0xd6f6ca(0x1b6)](this[_0xd6f6ca(0x19d)]))[_0xd6f6ca(0x2b1)](I[_0xd6f6ca(0x20e)](_0x7922f5=>!_0x7922f5['getUnitId']()[_0xd6f6ca(0x33c)]('__')))[_0xd6f6ca(0x302)](async _0x2a7542=>{const _0x5f18d8=_0xd6f6ca,_0x3dcac3=_0x2a7542[_0x5f18d8(0x2f0)](),_0x566b44=await this['_startDocCollabCursor'](_0x3dcac3);this[_0x5f18d8(0x250)][_0x5f18d8(0x207)](_0x566b44),this['_entities'][_0x5f18d8(0x20f)](_0x3dcac3,_0x566b44);}),I[_0xd6f6ca(0xaa)](this[_0xd6f6ca(0x2da)][_0xd6f6ca(0x13f)](a[_0xd6f6ca(0x1ae)][_0xd6f6ca(0x2be)]),this[_0xd6f6ca(0x2da)][_0xd6f6ca(0x13f)](a['UniverInstanceType'][_0xd6f6ca(0x2ae)]))['pipe'](I[_0xd6f6ca(0x1b6)](this[_0xd6f6ca(0x19d)]))[_0xd6f6ca(0x302)](_0x4833a3=>{const _0x4d45d5=_0xd6f6ca,_0x439511=_0x4833a3[_0x4d45d5(0x2f0)](),_0xa32fa6=this[_0x4d45d5(0x224)][_0x4d45d5(0x25d)](_0x439511);_0xa32fa6&&(_0xa32fa6[_0x4d45d5(0x341)](),this[_0x4d45d5(0x224)][_0x4d45d5(0x1db)](_0x439511));});}async[_0x4aeb9a(0x28a)](_0x2205ad){const _0x495113=_0x4aeb9a,_0x3d05e5=await this[_0x495113(0x2cd)][_0x495113(0x22c)](_0x2205ad),_0x51d4d4=this[_0x495113(0x33b)][_0x495113(0x344)](me,_0x2205ad,_0x3d05e5);return _0x51d4d4[_0x495113(0xd5)](),_0x51d4d4;}async[_0x4aeb9a(0x261)](_0x237abf){const _0x4ace5d=_0x4aeb9a,_0x133777=await this[_0x4ace5d(0x2cd)][_0x4ace5d(0x22c)](_0x237abf),_0x2268cc=this['_injector'][_0x4ace5d(0x344)](fe,_0x237abf,_0x133777);return _0x2268cc[_0x4ace5d(0xd5)](),_0x2268cc;}};B=Et([oe(0x0,a[_0x4aeb9a(0x2bb)]),oe(0x1,a['Inject'](a['Injector'])),oe(0x2,a[_0x4aeb9a(0x18a)](u[_0x4aeb9a(0x25a)]))],B);const X=0x14,De=0xc8,ae=0x4,Ct=0x5;function Tt(_0x2166ce,_0x4831ae){const _0x5b4fdc=_0x4aeb9a;let {radius:_0x15aa3f,width:_0x20194f,height:_0x18da05}=_0x4831ae;_0x15aa3f=_0x15aa3f!=null?_0x15aa3f:0x0,_0x20194f=_0x20194f!=null?_0x20194f:0x1e,_0x18da05=_0x18da05!=null?_0x18da05:0x1e;let _0x100cb4=0x0,_0x2eb6ed=0x0,_0x146aea=0x0;_0x100cb4=_0x2eb6ed=_0x146aea=Math[_0x5b4fdc(0x12d)](_0x15aa3f,_0x20194f/0x2,_0x18da05/0x2),_0x2166ce[_0x5b4fdc(0x294)](),_0x2166ce[_0x5b4fdc(0x29a)](_0x100cb4,0x0),_0x2166ce[_0x5b4fdc(0x2c6)](_0x20194f-_0x2eb6ed,0x0),_0x2166ce[_0x5b4fdc(0x295)](_0x20194f-_0x2eb6ed,_0x2eb6ed,_0x2eb6ed,Math['PI']*0x3/0x2,0x0,!0x1),_0x2166ce[_0x5b4fdc(0x2c6)](_0x20194f,_0x18da05-_0x146aea),_0x2166ce[_0x5b4fdc(0x295)](_0x20194f-_0x146aea,_0x18da05-_0x146aea,_0x146aea,0x0,Math['PI']/0x2,!0x1),_0x2166ce[_0x5b4fdc(0x2c6)](0x0,_0x18da05),_0x2166ce['lineTo'](0x0,_0x100cb4),_0x2166ce[_0x5b4fdc(0x295)](_0x100cb4,_0x100cb4,_0x100cb4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2166ce[_0x5b4fdc(0x10d)](),_0x4831ae[_0x5b4fdc(0x234)]&&(_0x2166ce['save'](),_0x2166ce[_0x5b4fdc(0x1fc)]=_0x4831ae[_0x5b4fdc(0x234)],_0x4831ae['fillRule']===_0x5b4fdc(0x109)?_0x2166ce[_0x5b4fdc(0x234)]('evenodd'):_0x2166ce[_0x5b4fdc(0x234)](),_0x2166ce[_0x5b4fdc(0x2b0)]());}class ie extends C['Shape']{constructor(_0x2837a1,_0xde9497){const _0x36ec84=_0x4aeb9a;super(_0x2837a1,_0xde9497),_(this,_0x36ec84(0x264)),_(this,_0x36ec84(0x17f)),(this[_0x36ec84(0x264)]=_0xde9497==null?void 0x0:_0xde9497[_0x36ec84(0x264)],this[_0x36ec84(0x17f)]=_0xde9497==null?void 0x0:_0xde9497[_0x36ec84(0x17f)]);}static[_0x4aeb9a(0x1b3)](_0x2f6c7a,_0x1fe003){const _0x2b3966=_0x4aeb9a,{text:_0x17ecec,color:_0x25b016}=_0x1fe003;_0x2f6c7a[_0x2b3966(0x268)](),_0x2f6c7a[_0x2b3966(0x2d1)]=_0x2b3966(0x289);const _0x27b5db=_0x2f6c7a[_0x2b3966(0x2fb)](_0x17ecec)[_0x2b3966(0x1dd)],_0x426e3a=Math[_0x2b3966(0x12d)](_0x27b5db+0x2*ae,De);Tt(_0x2f6c7a,{'height':X,'radius':0x4,'width':_0x426e3a,'fill':_0x25b016}),_0x2f6c7a[_0x2b3966(0x1fc)]=_0x2b3966(0xa4);const _0x4a7197=ae,_0x34281c=X-Ct,_0x222bda=De-0x2*ae;if(_0x27b5db>_0x222bda){let _0x3d5d51='',_0x8b67fb=0x0;for(const _0x8e0c26 of _0x17ecec){const _0x4da237=_0x2f6c7a[_0x2b3966(0x2fb)](_0x8e0c26)[_0x2b3966(0x1dd)];if(_0x8b67fb+_0x4da237<=_0x222bda-_0x2f6c7a[_0x2b3966(0x2fb)](_0x2b3966(0x189))[_0x2b3966(0x1dd)])_0x3d5d51+=_0x8e0c26,_0x8b67fb+=_0x4da237;else{_0x3d5d51+=_0x2b3966(0x189);break;}}_0x2f6c7a[_0x2b3966(0x9a)](_0x3d5d51,_0x4a7197,_0x34281c);}else _0x2f6c7a['fillText'](_0x17ecec,_0x4a7197,_0x34281c);_0x2f6c7a[_0x2b3966(0x2b0)]();}['_draw'](_0x54aca3){const _0x15f889=_0x4aeb9a;ie[_0x15f889(0x1b3)](_0x54aca3,this);}}const ce=_0x4aeb9a(0x260),pt=_0x4aeb9a(0x124),Ot=_0x4aeb9a(0x2f4),Y=0x6,Rt=1.5,le=0x4,bt=1.5,Dt=_0x4aeb9a(0x15c);class Ne{constructor(_0x132d4e,_0x345b72,_0x522608,_0x3ce413){const _0x4d49cc=_0x4aeb9a;_(this,_0x4d49cc(0x13e),[]),_(this,_0x4d49cc(0x23f),null),_(this,_0x4d49cc(0x133),null),_(this,_0x4d49cc(0x195),null),_(this,_0x4d49cc(0x33a),null),_(this,_0x4d49cc(0x24f),null),(this['_cursor']=_0x132d4e,this['_scene']=_0x345b72,this[_0x4d49cc(0x2f1)]=_0x522608,this[_0x4d49cc(0x1f9)]=_0x3ce413,this['_render']());}set['_hover'](_0x199c74){const _0x45d449=_0x4aeb9a;_0x199c74?(this['_anchorDot']&&this[_0x45d449(0x195)][_0x45d449(0xa1)](),this[_0x45d449(0x133)]&&this['_textBubble'][_0x45d449(0x2fd)]()):(this[_0x45d449(0x195)]&&this[_0x45d449(0x195)][_0x45d449(0x2fd)](),this[_0x45d449(0x133)]&&this[_0x45d449(0x133)]['hide']());}[_0x4aeb9a(0x341)](){const _0x2b5d33=_0x4aeb9a;for(const _0x4ed856 of this[_0x2b5d33(0x13e)])_0x4ed856[_0x2b5d33(0x341)]();this['_textBubble']&&this['_textBubble']['dispose'](),this[_0x2b5d33(0x195)]&&this[_0x2b5d33(0x195)][_0x2b5d33(0x341)](),this[_0x2b5d33(0x23f)]&&this[_0x2b5d33(0x23f)]['dispose'](),this[_0x2b5d33(0x24f)]&&this[_0x2b5d33(0x24f)]();}[_0x4aeb9a(0x228)](){const _0x479410=_0x4aeb9a;var _0xac73fb;const {_docSkeleton:_0x3e0e4f,_document:_0x8f079d}=this,{color:_0x5aaff4,name:_0x1bda6e,ranges:_0x4c3ca3}=this[_0x479410(0xa7)],_0x1ee9ad=_0x8f079d[_0x479410(0xb7)](),{docsLeft:_0x1c5a76,docsTop:_0x4e622d}=_0x1ee9ad,_0x53b2be=new T['NodePositionConvertToCursor'](_0x1ee9ad,_0x3e0e4f);for(const {startOffset:_0x21c1ff,endOffset:_0xa0261c,rangeType:_0x3dc869,segmentId:_0x4ba0d0,segmentPage:_0xf2ee6a,collapsed:_0xa0883,isActive:_0x7925d2}of _0x4c3ca3){const _0x6485e6=_0x3e0e4f['findNodePositionByCharIndex'](_0x21c1ff,!0x0,_0x4ba0d0,_0xf2ee6a);let _0x47582b=_0x3e0e4f[_0x479410(0x262)](_0xa0261c,!0x0,_0x4ba0d0,_0xf2ee6a);if(_0x47582b==null&&(_0x47582b=_0x3e0e4f[_0x479410(0x262)](_0xa0261c-0x1,!0x1,_0x4ba0d0,_0xf2ee6a)),_0x7925d2){const {contentBoxPointGroup:_0x4efdf1}=_0x53b2be[_0x479410(0xc6)](_0x47582b,_0x47582b);if(_0x4efdf1[_0x479410(0x2d7)]===0x0)continue;this[_0x479410(0x286)](_0x5aaff4,_0x4efdf1,_0x1c5a76,_0x4e622d,_0x1bda6e),this['_eventUnsubscribe']=this[_0x479410(0x33d)]();}if(_0x6485e6&&_0x47582b){if(_0x3dc869===a[_0x479410(0x331)]['RECT']){const _0x2b34f4=new T['NodePositionConvertToRectRange'](_0x1ee9ad,_0x3e0e4f),{pointGroup:_0x3d087b}=(_0xac73fb=_0x2b34f4[_0x479410(0xc6)](_0x6485e6,_0x47582b))!=null?_0xac73fb:{};if(_0x3d087b==null||_0x3d087b[_0x479410(0x2d7)]===0x0)continue;this[_0x479410(0x1df)](_0x5aaff4,_0x3d087b,_0x1c5a76,_0x4e622d);}else{if(!_0xa0883){const {borderBoxPointGroup:_0x126406}=_0x53b2be['getRangePointData'](_0x6485e6,_0x47582b);if(_0x126406[_0x479410(0x2d7)]===0x0)continue;this['_drawTextRange'](_0x5aaff4,_0x126406,_0x1c5a76,_0x4e622d);}}}}}['_drawAnchor'](_0x1a465f,_0x5733db,_0x17a3ab,_0x339547,_0x239c81){const _0x2c24c7=_0x4aeb9a,_0x2bf6c3=this['_getAnchorBounding'](_0x5733db),{left:_0x22f1b2,top:_0x29cd3d,height:_0x3c03f6}=_0x2bf6c3,_0x3bd0e5=this[_0x2c24c7(0x2c0)](),_0x61f368=bt/_0x3bd0e5,_0xfedffb=new C[(_0x2c24c7(0x2fc))](ce+a['generateRandomId'](Y),{'left':_0x22f1b2+_0x17a3ab-_0x61f368,'top':_0x29cd3d+_0x339547,'height':_0x3c03f6,'width':Rt,'fill':_0x1a465f||C[_0x2c24c7(0x11c)](a[_0x2c24c7(0x282)][_0x2c24c7(0x193)],0x0),'strokeWidth':_0x61f368,'stroke':Dt,'evented':!0x0});this['_anchor']=_0xfedffb,this[_0x2c24c7(0x1bf)][_0x2c24c7(0xf8)](_0xfedffb,T[_0x2c24c7(0x325)]);const _0x3a0751=new C['Rect'](ce+a[_0x2c24c7(0x2b2)](Y),{'left':_0x22f1b2+_0x17a3ab-_0x61f368,'top':_0x29cd3d+_0x339547-le/0x2,'height':le,'width':le,'fill':_0x1a465f||C['getColor'](a[_0x2c24c7(0x282)][_0x2c24c7(0x193)],0x0),'strokeWidth':0x0,'stroke':_0x1a465f||C['getColor'](a['COLORS'][_0x2c24c7(0x193)],0x0),'evented':!0x1});this[_0x2c24c7(0x195)]=_0x3a0751,this[_0x2c24c7(0x1bf)][_0x2c24c7(0xf8)](_0x3a0751,T[_0x2c24c7(0x325)]);const _0x5dc387=new ie(ce+a['generateRandomId'](Y),{'left':_0x22f1b2+_0x17a3ab-_0x61f368,'top':_0x29cd3d+_0x339547-X,'text':_0x239c81,'color':_0x1a465f});this[_0x2c24c7(0x133)]=_0x5dc387,this[_0x2c24c7(0x1bf)][_0x2c24c7(0xf8)](_0x5dc387,T[_0x2c24c7(0x325)]),this[_0x2c24c7(0x1ff)]=!0x1;}[_0x4aeb9a(0x33d)](){const _0x56c027=_0x4aeb9a,_0x45906e=this[_0x56c027(0x23f)][_0x56c027(0x10c)][_0x56c027(0x16b)](()=>{const _0x3b782e=_0x56c027;this[_0x3b782e(0x1ff)]=!0x0;}),_0x1e48c2=this[_0x56c027(0x23f)][_0x56c027(0x259)]['subscribeEvent'](()=>{const _0x54cd29=_0x56c027;this[_0x54cd29(0x33a)]&&clearTimeout(this['_hideTimer']),this[_0x54cd29(0x33a)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x5a8aca=_0x56c027;_0x45906e[_0x5a8aca(0x178)](),_0x1e48c2[_0x5a8aca(0x178)]();};}[_0x4aeb9a(0x1ca)](_0x28bddf,_0x20c881,_0x1ae343,_0x1c1640){const _0x56666a=_0x4aeb9a,_0x1ee57e=new a['ColorKit'](_0x28bddf)[_0x56666a(0x15e)](0.2)[_0x56666a(0x2a4)](),_0x45c42c=new C['RegularPolygon'](pt+a[_0x56666a(0x2b2)](Y),{'pointsGroup':_0x20c881,'fill':_0x1ee57e||C[_0x56666a(0x11c)](a['COLORS'][_0x56666a(0x193)],0.2),'left':_0x1ae343,'top':_0x1c1640,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x56666a(0x13e)][_0x56666a(0x9b)](_0x45c42c),this[_0x56666a(0x1bf)]['addObject'](_0x45c42c,T[_0x56666a(0x325)]);}[_0x4aeb9a(0x1df)](_0x2e6860,_0x552d0b,_0x2face4,_0x2e305a){const _0x3aa751=_0x4aeb9a,_0x2a2ba5=new a[(_0x3aa751(0xb3))](_0x2e6860)[_0x3aa751(0x15e)](0.2)['toRgbString'](),_0x22f3a1=new C[(_0x3aa751(0x271))](Ot+a['generateRandomId'](Y),{'pointsGroup':_0x552d0b,'fill':_0x2a2ba5||C[_0x3aa751(0x11c)](a[_0x3aa751(0x282)]['black'],0.2),'left':_0x2face4,'top':_0x2e305a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3aa751(0x13e)]['push'](_0x22f3a1),this['_scene'][_0x3aa751(0xf8)](_0x22f3a1,T['TEXT_RANGE_LAYER_INDEX']);}[_0x4aeb9a(0x24e)](_0x269f3d){const _0x2dae3a=_0x269f3d[0x0],_0x337901=_0x2dae3a[0x0],_0x356cee=_0x2dae3a[0x2],{x:_0x2b4965,y:_0x2c65fd}=_0x337901,{x:_0x3075b0,y:_0x14f43c}=_0x356cee;return{'left':_0x2b4965,'top':_0x2c65fd,'width':_0x3075b0-_0x2b4965,'height':_0x14f43c-_0x2c65fd};}[_0x4aeb9a(0x2c0)](){const _0x4d58fd=_0x4aeb9a,{scaleX:_0x4cdfb3,scaleY:_0x5911ba}=this[_0x4d58fd(0x1bf)][_0x4d58fd(0xc9)]();return Math[_0x4d58fd(0x31c)](_0x4cdfb3,_0x5911ba);}}var Nt=Object[_0x4aeb9a(0x1b9)],Ut=(_0x435758,_0x92a9f3,_0x6f69f6,_0xafca0d)=>{const _0x19137d=_0x4aeb9a;for(var _0x394106=_0xafca0d>0x1?void 0x0:_0xafca0d?Nt(_0x92a9f3,_0x6f69f6):_0x92a9f3,_0x202839=_0x435758[_0x19137d(0x2d7)]-0x1,_0x2b166b;_0x202839>=0x0;_0x202839--)(_0x2b166b=_0x435758[_0x202839])&&(_0x394106=_0x2b166b(_0x394106)||_0x394106);return _0x394106;},q=(_0x150fc9,_0x384468)=>(_0xf719e6,_0x46ebb7)=>_0x384468(_0xf719e6,_0x46ebb7,_0x150fc9);let ge=class extends a['RxDisposable']{constructor(_0x592604,_0x22efda,_0x755c7,_0x33fb60,_0x225650){const _0xd8f7f0=_0x4aeb9a;super(),_(this,'_cursorShapes',[]),_(this,_0xd8f7f0(0x211),[]),(this[_0xd8f7f0(0x11d)]=_0x592604,this[_0xd8f7f0(0x2d2)]=_0x22efda,this[_0xd8f7f0(0x1e0)]=_0x755c7,this[_0xd8f7f0(0x28c)]=_0x33fb60,this['_themeService']=_0x225650,this[_0xd8f7f0(0xe5)]());}[_0x4aeb9a(0xe5)](){const _0x121ca0=_0x4aeb9a,_0x51e70b=this['_context'][_0x121ca0(0x184)],_0x23d1fa=this['_docSkeletonManagerService'];this['disposeWithMe'](I[_0x121ca0(0x1f8)]([this['_collabCursorController'][_0x121ca0(0x1a9)](_0x51e70b),this['_themeService'][_0x121ca0(0x152)]])[_0x121ca0(0x2b1)]($[_0x121ca0(0x20a)](([_0x43fdc9,_0x1d9bc5])=>({'skeleton':_0x23d1fa[_0x121ca0(0x154)](),'cursors':[..._0x43fdc9[_0x121ca0(0x246)]()][_0x121ca0(0x1f5)](_0x421687=>({..._0x421687,'color':this[_0x121ca0(0x210)]['getColorFromTheme'](_0x421687[_0x121ca0(0x264)])}))})))['subscribe'](_0x5615e3=>{const _0xea721=_0x121ca0;if(this[_0xea721(0x269)](),_0x5615e3){const {skeleton:_0x5d84ab,cursors:_0x406c02}=_0x5615e3;this[_0xea721(0x31e)](_0x5d84ab,_0x406c02);}})),this[_0x121ca0(0x2af)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x53b0c8,_0x4363f1){const _0x46741e=_0x4aeb9a,{scene:_0x3cf011,mainComponent:_0x1b9783}=this[_0x46741e(0x11d)],_0x20890e=_0x4363f1[_0x46741e(0x20a)](_0x3f64b9=>new Ne(_0x3f64b9,_0x3cf011,_0x53b0c8,_0x1b9783));this[_0x46741e(0x256)]=_0x20890e,this['_cursors']=_0x4363f1;}[_0x4aeb9a(0x20d)](){const _0x2047a3=_0x4aeb9a;this[_0x2047a3(0x269)]();const {scene:_0x4e8409,mainComponent:_0x35e292}=this[_0x2047a3(0x11d)],_0x35bcf2=this['_docSkeletonManagerService'][_0x2047a3(0x154)](),_0x55d1d2=this[_0x2047a3(0x211)][_0x2047a3(0x20a)](_0x3d9cce=>new Ne(_0x3d9cce,_0x4e8409,_0x35bcf2,_0x35e292));this['_cursorShapes']=_0x55d1d2;}[_0x4aeb9a(0x269)](){const _0x10920a=_0x4aeb9a;this['_cursorShapes']['forEach'](_0x1f81b7=>_0x1f81b7[_0x10920a(0x341)]()),this[_0x10920a(0x256)]=[];}['_initCommandExecutedListener'](){const _0x5744ec=_0x4aeb9a,_0x2f0621=[T[_0x5744ec(0x23d)]['id']];this['disposeWithMe'](this[_0x5744ec(0x28c)][_0x5744ec(0x2cf)](_0x29949c=>{const _0x176378=_0x5744ec;_0x2f0621[_0x176378(0x31a)](_0x29949c['id'])&&_0x29949c[_0x176378(0x19b)]['unitId']===this[_0x176378(0x11d)][_0x176378(0x184)]&&this[_0x176378(0x20d)]();}));}['_initResize'](){const _0x3ff162=_0x4aeb9a;this[_0x3ff162(0xc8)](a[_0x3ff162(0x2bd)](this[_0x3ff162(0x11d)][_0x3ff162(0xee)]['onTransformChange$'])[_0x3ff162(0x2b1)]($[_0x3ff162(0x20e)](_0x5aaba9=>_0x5aaba9[_0x3ff162(0x1e9)]===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x3ff162(0x231)]),$[_0x3ff162(0x1c3)](0x10))[_0x3ff162(0x302)](()=>{const _0x2b3383=_0x3ff162;this[_0x2b3383(0x20d)]();}));}};ge=Ut([q(0x1,a['Inject'](W[_0x4aeb9a(0x155)])),q(0x2,a[_0x4aeb9a(0x18a)](B)),q(0x3,a[_0x4aeb9a(0x1f7)]),q(0x4,a[_0x4aeb9a(0x18a)](a[_0x4aeb9a(0x32b)]))],ge);const Lt=0x1,Mt=1.5;class Be extends C[_0x4aeb9a(0x100)]{constructor(_0xbc5137,_0x5768b2){const _0x23f317=_0x4aeb9a;super(_0xbc5137,_0x5768b2),_(this,_0x23f317(0x181)),_(this,_0x23f317(0x172),!0x1),_(this,'_range'),_(this,_0x23f317(0xcf),''),_(this,'_labelPosition',_0x23f317(0x17e)),_(this,_0x23f317(0x2bc)),(_0x5768b2&&this[_0x23f317(0x1c1)](_0x5768b2),this[_0x23f317(0x10c)][_0x23f317(0x16b)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x23f317(0x259)][_0x23f317(0x16b)](()=>this[_0x23f317(0x1c1)]({'hovered':!0x1})));}[_0x4aeb9a(0x1c1)](_0x356846){const _0x44e58f=_0x4aeb9a;var _0x332854,_0x29e0fb,_0x46c278,_0x4c9b80,_0x22771e,_0x460d60;this[_0x44e58f(0x181)]=(_0x332854=_0x356846[_0x44e58f(0x264)])!=null?_0x332854:this[_0x44e58f(0x181)],this[_0x44e58f(0x172)]=(_0x29e0fb=_0x356846[_0x44e58f(0x2d5)])!=null?_0x29e0fb:this['_hovered'],this['_range']=(_0x46c278=_0x356846[_0x44e58f(0xfa)])!=null?_0x46c278:this[_0x44e58f(0x116)],this[_0x44e58f(0xcf)]=(_0x4c9b80=_0x356846[_0x44e58f(0xfe)])!=null?_0x4c9b80:this[_0x44e58f(0xcf)],this[_0x44e58f(0x30f)]=(_0x22771e=_0x356846[_0x44e58f(0x161)])!=null?_0x22771e:this[_0x44e58f(0x30f)],this[_0x44e58f(0x2bc)]=(_0x460d60=_0x356846[_0x44e58f(0x308)])!=null?_0x460d60:this['_backgroundColor'],this[_0x44e58f(0x2ea)]({'width':_0x356846[_0x44e58f(0x1dd)],'height':_0x356846['height']});}[_0x4aeb9a(0xd0)](_0x3c7f25){const _0x45c608=_0x4aeb9a,{row:_0x5695e7,column:_0x146627}=_0x3c7f25;if(_0x5695e7>=this[_0x45c608(0x116)]['startRow']&&_0x5695e7<=this[_0x45c608(0x116)][_0x45c608(0x31f)]&&_0x146627>=this[_0x45c608(0x116)][_0x45c608(0x1e3)]&&_0x146627<=this[_0x45c608(0x116)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x4aeb9a(0x317)](_0x14dfc6){return!0x1;}[_0x4aeb9a(0x97)](_0xe593a8){const _0x57be4f=_0x4aeb9a;C[_0x57be4f(0x2fc)][_0x57be4f(0x1b3)](_0xe593a8,{'width':this[_0x57be4f(0x1dd)],'height':this[_0x57be4f(0xeb)],'strokeWidth':Mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x57be4f(0x2bc)]}),this[_0x57be4f(0x172)]&&(_0xe593a8[_0x57be4f(0x268)](),_0xe593a8[_0x57be4f(0x2c9)](0x1,0x0,0x0,0x1,this['width'],this[_0x57be4f(0x30f)]===_0x57be4f(0xf9)?0x0:-X),ie[_0x57be4f(0x1b3)](_0xe593a8,{'text':this[_0x57be4f(0xcf)],'color':this[_0x57be4f(0x181)]}),_0xe593a8[_0x57be4f(0x2b0)]());}}var At=Object[_0x4aeb9a(0x1b9)],Pt=(_0x14f082,_0x44d405,_0x5c73b6,_0x36268a)=>{const _0x51c6b0=_0x4aeb9a;for(var _0x12395c=_0x36268a>0x1?void 0x0:_0x36268a?At(_0x44d405,_0x5c73b6):_0x44d405,_0x5cc201=_0x14f082[_0x51c6b0(0x2d7)]-0x1,_0x30dcdc;_0x5cc201>=0x0;_0x5cc201--)(_0x30dcdc=_0x14f082[_0x5cc201])&&(_0x12395c=_0x30dcdc(_0x12395c)||_0x12395c);return _0x12395c;},_e=(_0x263c70,_0x296479)=>(_0x344272,_0x576a91)=>_0x296479(_0x344272,_0x576a91,_0x263c70);const wt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0xafc79c,_0x474663,_0x484537,_0x4d9080){const _0x27f4e6=_0x4aeb9a;super(),_(this,_0x27f4e6(0x211),new Set()),_(this,'_lastPointer',null),(this[_0x27f4e6(0x11d)]=_0xafc79c,this['_sheetSkeletonManagerService']=_0x474663,this[_0x27f4e6(0x1e0)]=_0x484537,this[_0x27f4e6(0x210)]=_0x4d9080,this[_0x27f4e6(0xe5)]());}['_init'](){const _0x45f39a=_0x4aeb9a;this[_0x45f39a(0x318)]['currentSkeleton$'][_0x45f39a(0x2b1)]($[_0x45f39a(0x1b6)](this['dispose$']),$[_0x45f39a(0x25c)](_0x3f7114=>{const _0x492713=_0x45f39a;if(_0x3f7114){const _0x1bd1ff=_0x3f7114['sheetId'];return I[_0x492713(0x1f8)](this['_collabCursorController'][_0x492713(0x1a9)](this[_0x492713(0x11d)][_0x492713(0x184)]),this[_0x492713(0x210)][_0x492713(0x152)])[_0x492713(0x2b1)]($[_0x492713(0x20a)](([_0x46607a,_0xa4175b])=>{const _0x793348=_0x492713,_0x4685a0=new Map();return _0x46607a[_0x793348(0x270)]((_0x4c2cdc,_0x326ad2)=>{const _0x2abfe7=_0x793348;if(_0x4c2cdc[_0x2abfe7(0x129)]===_0x1bd1ff){const _0x5127ce={..._0x4c2cdc};_0x5127ce[_0x2abfe7(0x264)]=this[_0x2abfe7(0x210)][_0x2abfe7(0x10a)](_0x4c2cdc['color']),_0x4685a0[_0x2abfe7(0x20f)](_0x326ad2,_0x5127ce);}}),{'skeleton':_0x3f7114,'cursors':_0x4685a0};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x45f39a(0x302)](({skeleton:_0x6dd02d,cursors:_0x144b03})=>{const _0x59ec40=_0x45f39a;this[_0x59ec40(0x269)](),_0x6dd02d&&this[_0x59ec40(0x31e)](_0x6dd02d,_0x144b03);}),this[_0x45f39a(0x318)][_0x45f39a(0x240)][_0x45f39a(0x302)](_0x97509c=>{const _0x3d4f90=_0x45f39a;if(_0x97509c==null)return;const {skeleton:_0x2ec593}=_0x97509c,{scene:_0x5597f8}=this[_0x3d4f90(0x11d)];_0x5597f8[_0x3d4f90(0x225)]['subscribeEvent'](a['debounce'](_0x1d6ddc=>{const _0x217c99=_0x3d4f90;var _0x3eab34,_0x502ae4;const {offsetX:_0x580bff,offsetY:_0x52e99b}=_0x1d6ddc,{x:_0x8c876,y:_0x2d1b84}=_0x5597f8[_0x217c99(0x110)](C['Vector2'][_0x217c99(0x1e7)]([_0x580bff,_0x52e99b])),{scaleX:_0x24f5c6,scaleY:_0x3ade95}=_0x5597f8[_0x217c99(0xc9)](),_0x46d91d=_0x5597f8['getViewport'](C[_0x217c99(0x134)][_0x217c99(0x141)]),_0x2aa24a=_0x5597f8[_0x217c99(0x27d)](C[_0x217c99(0x1d4)][_0x217c99(0x1e7)]([_0x8c876,_0x2d1b84]),_0x46d91d),_0x4aaab3=_0x2ec593[_0x217c99(0x174)](_0x580bff,_0x52e99b,_0x24f5c6,_0x3ade95,_0x2aa24a);((_0x3eab34=this['_lastPointer'])==null?void 0x0:_0x3eab34[_0x217c99(0x2cb)])===_0x4aaab3[_0x217c99(0x2cb)]&&((_0x502ae4=this[_0x217c99(0x12f)])==null?void 0x0:_0x502ae4[_0x217c99(0x2f7)])===_0x4aaab3[_0x217c99(0x2f7)]||this[_0x217c99(0x211)][_0x217c99(0x270)](_0x101091=>{const _0x414428=_0x217c99;_0x101091[_0x414428(0xd0)](_0x4aaab3);});},0x64));});}['_updateCollabCursors'](_0x43516e,_0x578498){const _0x4d8229=_0x4aeb9a;var _0x2bcc8a;const _0x94978f=(_0x2bcc8a=this[_0x4d8229(0x318)][_0x4d8229(0x2b4)]())==null?void 0x0:_0x2bcc8a[_0x4d8229(0x12a)];if(!_0x94978f)return;const _0x2248c9=this[_0x4d8229(0x1c8)]();if(!_0x2248c9)return;this['_cursors'][_0x4d8229(0x270)](_0x2dacf5=>{const _0x384b9e=_0x4d8229;_0x2dacf5[_0x384b9e(0x1ea)]();});const {scene:_0x37df5a}=_0x2248c9,_0x47a5f3=yt(Array[_0x4d8229(0x19f)](_0x578498[_0x4d8229(0x246)]()))[_0x4d8229(0x20a)](_0xa6010f=>{const {color:_0x1c3b44,range:_0x201f29,name:_0x4c7d28,selection:_0x55f06f,sheetID:_0x44f5b9}=_0xa6010f,{startColumn:_0x37dc59,startRow:_0x11338a,endColumn:_0x5d02a9,endRow:_0x1fafd9}=_0x201f29,_0x61a6ab=z['getCoordByCell'](_0x11338a,_0x37dc59,_0x37df5a,_0x94978f),_0x2d6ab1=z['getCoordByCell'](_0x1fafd9,_0x5d02a9,_0x37df5a,_0x94978f),{columnHeaderHeightAndMarginTop:_0xcee54c}=_0x94978f,{startX:_0x19246c,startY:_0x128657}=_0x61a6ab,{endX:_0x4f32c6,endY:_0xbea95b}=_0x2d6ab1,_0x112558=_0x4f32c6-_0x19246c,_0x4924ba=_0xbea95b-_0x128657,_0x2182c9={'labelPosition':_0x128657-_0xcee54c>=X?'top':'bottom','sheetID':_0x44f5b9,'range':_0x201f29,'color':_0x1c3b44,'name':_0x4c7d28,'selection':_0x55f06f,'left':_0x19246c,'top':_0x128657,'width':_0x112558,'height':_0x4924ba,'evented':!0x1,'zIndex':wt};return new Be(_0x4c7d28,_0x2182c9);});_0x37df5a[_0x4d8229(0x1d9)](_0x47a5f3,Lt),this['_cursors']=new Set(_0x47a5f3);}[_0x4aeb9a(0x269)](){const _0x3ffa3e=_0x4aeb9a;var _0x18d074;(_0x18d074=this[_0x3ffa3e(0x211)])==null||_0x18d074['forEach'](_0x5b93b9=>_0x5b93b9[_0x3ffa3e(0x341)]());}[_0x4aeb9a(0x1c8)](){const _0x1e873e=_0x4aeb9a;return z['getSheetObject'](this['_context'][_0x1e873e(0x311)],this[_0x1e873e(0x11d)]);}};ve=Pt([_e(0x1,a['Inject'](z[_0x4aeb9a(0xce)])),_e(0x2,a[_0x4aeb9a(0x18a)](B)),_e(0x3,a['Inject'](a[_0x4aeb9a(0x32b)]))],ve);function yt(_0x479afe){const _0x4db56f=_0x4aeb9a,_0x499eda=new Map();return _0x479afe[_0x4db56f(0x270)](_0x1798cd=>{const _0x576c69=_0x4db56f;if(_0x499eda[_0x576c69(0x2f3)](_0x1798cd[_0x576c69(0x339)])){const _0x145030=_0x499eda[_0x576c69(0x25d)](_0x1798cd['selection']);_0x145030[_0x576c69(0xfe)]+=',\x20'+_0x1798cd[_0x576c69(0xfe)];}else _0x499eda['set'](_0x1798cd['selection'],_0x1798cd);}),Array[_0x4db56f(0x19f)](_0x499eda[_0x4db56f(0x246)]());}var $t=Object[_0x4aeb9a(0x1b9)],xt=(_0x4648cb,_0x28d728,_0x9047e1,_0x3987c8)=>{for(var _0x24bfb5=_0x3987c8>0x1?void 0x0:_0x3987c8?$t(_0x28d728,_0x9047e1):_0x28d728,_0x371128=_0x4648cb['length']-0x1,_0x4fc039;_0x371128>=0x0;_0x371128--)(_0x4fc039=_0x4648cb[_0x371128])&&(_0x24bfb5=_0x4fc039(_0x24bfb5)||_0x24bfb5);return _0x24bfb5;},y=(_0x146cc7,_0xbf4b46)=>(_0x5e6c15,_0x3405d8)=>_0xbf4b46(_0x5e6c15,_0x3405d8,_0x146cc7);function _0x12f6(_0x2b0ae0,_0x4bb99b){const _0x21c1cd=_0x21c1();return _0x12f6=function(_0x12f6d3,_0x3f31d3){_0x12f6d3=_0x12f6d3-0x95;let _0x17df0a=_0x21c1cd[_0x12f6d3];return _0x17df0a;},_0x12f6(_0x2b0ae0,_0x4bb99b);}let J=class extends a[_0x4aeb9a(0x2c4)]{constructor(_0x19a163,_0x5afd3a,_0x56ea1b,_0x352e42,_0x94b669,_0x4ddc6c){const _0x2113c7=_0x4aeb9a;super(),this['_beforeCloseService']=_0x19a163,this[_0x2113c7(0x1f6)]=_0x5afd3a,this[_0x2113c7(0x165)]=_0x56ea1b,this[_0x2113c7(0x306)]=_0x352e42,this[_0x2113c7(0x177)]=_0x94b669,this[_0x2113c7(0xfb)]=_0x4ddc6c,this['_setupBeforeClosingHandler'](),this[_0x2113c7(0x1f0)]();}[_0x4aeb9a(0x1b5)](){const _0x486ce2=_0x4aeb9a;this[_0x486ce2(0xc8)](this[_0x486ce2(0x1e6)][_0x486ce2(0x223)](()=>{const _0x4741a9=_0x486ce2;if(this[_0x4741a9(0x1f6)][_0x4741a9(0x2a3)][_0x4741a9(0x2a5)])return this[_0x4741a9(0xfb)]['t'](_0x4741a9(0x30e));}));}['_initEvent'](){const _0x2568b4=_0x4aeb9a;this[_0x2568b4(0xc8)](this[_0x2568b4(0x165)][_0x2568b4(0x14b)][_0x2568b4(0x302)](_0x362af7=>{const _0x142121=_0x2568b4;_0x362af7['id']===u[_0x142121(0x1b1)][_0x142121(0x215)]&&this['_messageService']['show']({'type':p[_0x142121(0x265)][_0x142121(0xa2)],'content':this[_0x142121(0xfb)]['t'](_0x142121(0x281))}),_0x362af7['id']===u[_0x142121(0x1b1)][_0x142121(0x29f)]&&this['_messageService'][_0x142121(0x2fd)]({'type':p[_0x142121(0x265)][_0x142121(0xa2)],'content':this[_0x142121(0xfb)]['t'](_0x142121(0x1d5))}),_0x362af7['id']===u[_0x142121(0x1b1)][_0x142121(0x2e8)]&&this[_0x142121(0x177)][_0x142121(0x2fd)]({'title':this[_0x142121(0xfb)]['t'](_0x142121(0x2a8)),'content':this['_localeService']['t']('permission.content'),'type':_0x142121(0x1a0),'duration':0x0}),_0x362af7['id']===u['CollaborationUIEventId'][_0x142121(0x1ba)]&&this[_0x142121(0x306)][_0x142121(0x2fd)]({'type':p[_0x142121(0x265)][_0x142121(0x280)],'content':this[_0x142121(0xfb)]['t']('collaboration.closeRoom')+'('+_0x362af7[_0x142121(0x214)]+')'}),_0x362af7['id']===u[_0x142121(0x1b1)]['JOIN_ROOM_FAILED']&&this['_messageService'][_0x142121(0x2fd)]({'type':p[_0x142121(0x265)]['Warning'],'content':this[_0x142121(0xfb)]['t'](_0x362af7[_0x142121(0x214)]||'')}),_0x362af7['id']===u[_0x142121(0x1b1)][_0x142121(0x136)]&&this['_messageService'][_0x142121(0x2fd)]({'type':p[_0x142121(0x265)][_0x142121(0xa2)],'content':this[_0x142121(0xfb)]['t']('session.will-retry')}),_0x362af7['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x142121(0x306)]['show']({'type':p[_0x142121(0x265)][_0x142121(0x280)],'content':this[_0x142121(0xfb)]['t'](_0x142121(0x2e0))}),_0x362af7['id']===u['CollaborationUIEventId'][_0x142121(0x2b6)]&&this[_0x142121(0x306)]['show']({'type':p['MessageType'][_0x142121(0x280)],'content':this[_0x142121(0xfb)]['t'](_0x142121(0x13a))});}));}};J=xt([y(0x0,O[_0x4aeb9a(0x2b5)]),y(0x1,u[_0x4aeb9a(0xbc)]),y(0x2,a['Inject'](u[_0x4aeb9a(0x103)])),y(0x3,O[_0x4aeb9a(0x10f)]),y(0x4,O[_0x4aeb9a(0x163)]),y(0x5,a[_0x4aeb9a(0x18a)](a['LocaleService']))],J);const Bt='collaboration-client-ui.config',Ue={};var Ft=Object[_0x4aeb9a(0x1b9)],kt=(_0x356d2,_0x3f2db8,_0x1f2aed,_0x534100)=>{const _0x32c42a=_0x4aeb9a;for(var _0x47c7be=_0x534100>0x1?void 0x0:_0x534100?Ft(_0x3f2db8,_0x1f2aed):_0x3f2db8,_0x1bc6af=_0x356d2[_0x32c42a(0x2d7)]-0x1,_0x68424f;_0x1bc6af>=0x0;_0x1bc6af--)(_0x68424f=_0x356d2[_0x1bc6af])&&(_0x47c7be=_0x68424f(_0x47c7be)||_0x47c7be);return _0x47c7be;},Le=(_0x4d7770,_0x4aac5)=>(_0x3d7ffa,_0x45db65)=>_0x4aac5(_0x3d7ffa,_0x45db65,_0x4d7770);let Z=class{constructor(_0x26be0e,_0x5643ab){const _0x3708c2=_0x4aeb9a;this['_transformService']=_0x26be0e,this[_0x3708c2(0x1c9)]=_0x5643ab;}[_0x4aeb9a(0xea)](_0x167b90){const _0x12613c=_0x4aeb9a;this[_0x12613c(0x1c5)](_0x167b90),this[_0x12613c(0x2d9)](_0x167b90);}[_0x4aeb9a(0x328)](_0x2d187f){const _0xe75a90=_0x4aeb9a,{unitID:_0x44a878}=_0x2d187f,_0x494c73=this[_0xe75a90(0x1c9)][_0xe75a90(0x18e)](_0x44a878)['with'](T['DocIMEInputManagerService']),{redoCache:_0x38c2d2}=_0x494c73[_0xe75a90(0x131)]();if(_0x38c2d2[_0xe75a90(0x2d7)]===0x0)return _0x2d187f;let _0x226dd7=a[_0xe75a90(0x170)]['deepClone'](_0x2d187f[_0xe75a90(0xec)][0x0]);for(let _0x462697=0x0;_0x462697<_0x38c2d2[_0xe75a90(0x2d7)];_0x462697++){const _0xe78e6a={'id':'doc.mutation.rich-text-editing','params':{..._0x38c2d2[_0x462697]}},_0x6d02fc=this[_0xe75a90(0x301)][_0xe75a90(0x147)](_0x226dd7,_0xe78e6a,!0x1);if(v[_0xe75a90(0x2a2)](_0x6d02fc))throw _0x6d02fc[_0xe75a90(0x1a0)];_0x226dd7=_0x6d02fc[_0xe75a90(0x1a1)];}return{...a[_0xe75a90(0x170)][_0xe75a90(0x1ee)](_0x2d187f),'mutations':[_0x226dd7]};}[_0x4aeb9a(0x1c5)](_0x2ad6bc){const _0x113bf9=_0x4aeb9a,{unitID:_0xb04fa}=_0x2ad6bc,_0x1c7e21=this[_0x113bf9(0x1c9)]['getRenderById'](_0xb04fa)['with'](T[_0x113bf9(0x266)]),{undoCache:_0x1de664,redoCache:_0x592448}=_0x1c7e21[_0x113bf9(0x131)]();if(_0x1de664[_0x113bf9(0x2d7)]===0x0||_0x592448['length']===0x0)return;const _0x511af1=[],_0x31877b=[];let _0x1c958a=a['Tools'][_0x113bf9(0x1ee)](_0x2ad6bc[_0x113bf9(0xec)][0x0]),_0x40b82c=a[_0x113bf9(0x170)][_0x113bf9(0x1ee)](_0x2ad6bc[_0x113bf9(0xec)][0x0]);for(let _0x5d757a=_0x1de664[_0x113bf9(0x2d7)]-0x1;_0x5d757a>=0x0;_0x5d757a--){const _0x2f6da4={'id':_0x113bf9(0x11f),'params':{..._0x1de664[_0x5d757a]}},_0x41e297={'id':'doc.mutation.rich-text-editing','params':{..._0x592448[_0x5d757a]}},_0x5c7547=this[_0x113bf9(0x301)][_0x113bf9(0x147)](_0x1c958a,_0x2f6da4,!0x1),_0x3a5ebc=this[_0x113bf9(0x301)][_0x113bf9(0x147)](_0x40b82c,_0x41e297,!0x1);if(v['isTransformMutationFailure'](_0x5c7547))throw _0x5c7547['error'];if(v[_0x113bf9(0x2a2)](_0x3a5ebc))throw _0x3a5ebc['error'];_0x511af1[_0x113bf9(0x102)](_0x5c7547[_0x113bf9(0xe0)][_0x113bf9(0x19b)]),_0x31877b[_0x113bf9(0x102)](_0x3a5ebc[_0x113bf9(0xe0)][_0x113bf9(0x19b)]),_0x1c958a=_0x5c7547[_0x113bf9(0x1a1)],_0x40b82c=_0x3a5ebc[_0x113bf9(0x1a1)];}_0x1c7e21[_0x113bf9(0x1b4)]({'undoCache':_0x511af1,'redoCache':_0x31877b});}[_0x4aeb9a(0x2d9)](_0x27e001){const _0x3b1594=_0x4aeb9a,{unitID:_0x652080}=_0x27e001,_0x258d21=this[_0x3b1594(0x1c9)][_0x3b1594(0x18e)](_0x652080)['with'](T['DocIMEInputManagerService']),_0x355126=_0x258d21['getActiveRange']();if(_0x355126==null)return;const _0x8fd487=[{'id':_0x3b1594(0x11f),'params':{'unitId':_0x27e001['unitID'],'actions':null,'textRanges':[_0x355126]}}],_0x28a36d=this[_0x3b1594(0x301)][_0x3b1594(0xde)](_0x27e001,_0x8fd487);if(!v['isTransformMutationsWithChangesetSuccess'](_0x28a36d))throw _0x28a36d[_0x3b1594(0x1a0)];const _0xd8489c=_0x28a36d['m2Prime'][0x0][_0x3b1594(0x19b)]['textRanges'];Array[_0x3b1594(0x1a5)](_0xd8489c)&&_0xd8489c[_0x3b1594(0x2d7)]&&_0x258d21['setActiveRange'](_0xd8489c[0x0]);}};Z=kt([Le(0x0,v['ITransformService']),Le(0x1,C[_0x4aeb9a(0x24b)])],Z);var jt=Object[_0x4aeb9a(0x1b9)],Yt=(_0x101175,_0x5cca6d,_0x339afa,_0x29b2f3)=>{for(var _0x3ef546=_0x29b2f3>0x1?void 0x0:_0x29b2f3?jt(_0x5cca6d,_0x339afa):_0x5cca6d,_0x3492ec=_0x101175['length']-0x1,_0x3cfc98;_0x3492ec>=0x0;_0x3492ec--)(_0x3cfc98=_0x101175[_0x3492ec])&&(_0x3ef546=_0x3cfc98(_0x3ef546)||_0x3ef546);return _0x3ef546;},he=(_0x1e29f3,_0xf3d487)=>(_0x5e8aa,_0x274f9c)=>_0xf3d487(_0x5e8aa,_0x274f9c,_0x1e29f3);let Q=class{constructor(_0x299a53,_0x40ecde,_0x3c596c){const _0x50c9c5=_0x4aeb9a;this[_0x50c9c5(0x33b)]=_0x299a53,this[_0x50c9c5(0x301)]=_0x40ecde,this['_docStateChangeManagerService']=_0x3c596c;}[_0x4aeb9a(0x26a)](_0x1b7225){const _0x4a6f0d=_0x4aeb9a;this[_0x4a6f0d(0xba)](_0x1b7225);}[_0x4aeb9a(0x328)](_0x4242e8){const _0x4f891f=_0x4aeb9a,{unitID:_0x118881}=_0x4242e8,{collaboration:_0x5627f1}=this[_0x4f891f(0x1b0)][_0x4f891f(0x1c2)](_0x118881);if(_0x5627f1[_0x4f891f(0x2d7)]===0x0)return _0x4242e8;let _0x56a727=a['Tools'][_0x4f891f(0x1ee)](_0x4242e8['mutations'][0x0]);for(let _0x20cd17=0x0;_0x20cd17<_0x5627f1[_0x4f891f(0x2d7)];_0x20cd17++){const _0x320819={'id':_0x4f891f(0x11f),'params':{'unitId':_0x5627f1[_0x20cd17]['unitId'],..._0x5627f1[_0x20cd17][_0x4f891f(0x31d)]}},_0x135670=this['_transformService'][_0x4f891f(0x147)](_0x56a727,_0x320819,!0x1);if(v['isTransformMutationFailure'](_0x135670))throw _0x135670[_0x4f891f(0x1a0)];_0x56a727=_0x135670[_0x4f891f(0x1a1)];}return{...a[_0x4f891f(0x170)][_0x4f891f(0x1ee)](_0x4242e8),'mutations':[_0x56a727]};}[_0x4aeb9a(0xba)](_0x2da09b){const _0xeb9f06=_0x4aeb9a,{unitID:_0x482af5}=_0x2da09b,{history:_0x4dded7,collaboration:_0x275191}=this[_0xeb9f06(0x1b0)][_0xeb9f06(0x1c2)](_0x482af5);if(_0x4dded7[_0xeb9f06(0x2d7)]===0x0&&_0x275191[_0xeb9f06(0x2d7)]===0x0)return;const _0x1c4362=[],_0x34d447=[];let _0x3040fe=a['Tools'][_0xeb9f06(0x1ee)](_0x2da09b[_0xeb9f06(0xec)][0x0]),_0x3f5bde=a['Tools'][_0xeb9f06(0x1ee)](_0x2da09b[_0xeb9f06(0xec)][0x0]);for(let _0x14920d=_0x4dded7[_0xeb9f06(0x2d7)]-0x1;_0x14920d>=0x0;_0x14920d--){const _0x2700cb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4dded7[_0x14920d]['unitId'],..._0x4dded7[_0x14920d]['undoState']}},_0x524908={'id':_0xeb9f06(0x11f),'params':{'unitId':_0x4dded7[_0x14920d]['unitId'],..._0x4dded7[_0x14920d][_0xeb9f06(0x31d)]}},_0xa81b0d=this[_0xeb9f06(0x301)][_0xeb9f06(0x147)](_0x3040fe,_0x2700cb,!0x1),_0x4c090c=this[_0xeb9f06(0x301)][_0xeb9f06(0x147)](_0x3f5bde,_0x524908,!0x1);if(v[_0xeb9f06(0x2a2)](_0xa81b0d))throw _0xa81b0d[_0xeb9f06(0x1a0)];if(v[_0xeb9f06(0x2a2)](_0x4c090c))throw _0x4c090c[_0xeb9f06(0x1a0)];_0x1c4362['unshift']({..._0x4dded7[_0x14920d],'undoState':_0xa81b0d[_0xeb9f06(0xe0)][_0xeb9f06(0x19b)],'redoState':_0x4c090c[_0xeb9f06(0xe0)][_0xeb9f06(0x19b)]}),_0x3040fe=_0xa81b0d[_0xeb9f06(0x1a1)],_0x3f5bde=_0x4c090c['m1Prime'];}_0x3040fe=a[_0xeb9f06(0x170)][_0xeb9f06(0x1ee)](_0x2da09b['mutations'][0x0]),_0x3f5bde=a[_0xeb9f06(0x170)][_0xeb9f06(0x1ee)](_0x2da09b['mutations'][0x0]);for(let _0x385567=_0x275191[_0xeb9f06(0x2d7)]-0x1;_0x385567>=0x0;_0x385567--){const _0xe43172={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x275191[_0x385567][_0xeb9f06(0x184)],..._0x275191[_0x385567][_0xeb9f06(0x276)]}},_0x5eb713={'id':_0xeb9f06(0x11f),'params':{'unitId':_0x275191[_0x385567]['unitId'],..._0x275191[_0x385567][_0xeb9f06(0x31d)]}},_0x43c054=this[_0xeb9f06(0x301)][_0xeb9f06(0x147)](_0x3040fe,_0xe43172,!0x1),_0x2e88ea=this[_0xeb9f06(0x301)][_0xeb9f06(0x147)](_0x3f5bde,_0x5eb713,!0x1);if(v['isTransformMutationFailure'](_0x43c054))throw _0x43c054[_0xeb9f06(0x1a0)];if(v['isTransformMutationFailure'](_0x2e88ea))throw _0x2e88ea[_0xeb9f06(0x1a0)];_0x34d447[_0xeb9f06(0x102)]({..._0x275191[_0x385567],'undoState':_0x43c054[_0xeb9f06(0xe0)][_0xeb9f06(0x19b)],'redoState':_0x2e88ea[_0xeb9f06(0xe0)][_0xeb9f06(0x19b)]}),_0x3040fe=_0x43c054['m1Prime'],_0x3f5bde=_0x2e88ea[_0xeb9f06(0x1a1)];}this[_0xeb9f06(0x1b0)][_0xeb9f06(0x166)](_0x482af5,{'history':_0x1c4362,'collaboration':_0x34d447});}};Q=Yt([he(0x0,a[_0x4aeb9a(0x18a)](a[_0x4aeb9a(0x95)])),he(0x1,v['ITransformService']),he(0x2,a[_0x4aeb9a(0x18a)](T[_0x4aeb9a(0x187)]))],Q);var Ht=Object[_0x4aeb9a(0x1b9)],Wt=(_0x2cfd72,_0x37608f,_0x5c40dd,_0x3d9770)=>{const _0x2089af=_0x4aeb9a;for(var _0x442303=_0x3d9770>0x1?void 0x0:_0x3d9770?Ht(_0x37608f,_0x5c40dd):_0x37608f,_0x315ade=_0x2cfd72[_0x2089af(0x2d7)]-0x1,_0x4462b0;_0x315ade>=0x0;_0x315ade--)(_0x4462b0=_0x2cfd72[_0x315ade])&&(_0x442303=_0x4462b0(_0x442303)||_0x442303);return _0x442303;},Me=(_0x1669da,_0x5e01f0)=>(_0x3b14dd,_0x477e47)=>_0x5e01f0(_0x3b14dd,_0x477e47,_0x1669da);let ee=class{constructor(_0x36147b,_0x4f51dc){const _0x18d834=_0x4aeb9a;this[_0x18d834(0x33b)]=_0x36147b,this[_0x18d834(0x301)]=_0x4f51dc;}[_0x4aeb9a(0x326)](_0x92d859){const _0x48177c=_0x4aeb9a;var _0x5de3c0;const _0x357ecc=this[_0x48177c(0x33b)]['get'](W[_0x48177c(0x287)]),_0x8281dd=(_0x5de3c0=_0x357ecc[_0x48177c(0x145)]())!=null?_0x5de3c0:[];if(_0x8281dd[_0x48177c(0x2d7)]===0x0)return;const _0x976da0=_0x92d859['unitID'],_0x2846b1=[{'id':_0x48177c(0x11f),'params':{'unitId':_0x976da0,'actions':null,'textRanges':_0x8281dd}}],_0x2255bb=this['_transformService'][_0x48177c(0xde)](_0x92d859,_0x2846b1);if(!v[_0x48177c(0x23b)](_0x2255bb))throw _0x2255bb[_0x48177c(0x1a0)];const _0x578add=_0x2255bb[_0x48177c(0xe0)][0x0][_0x48177c(0x19b)][_0x48177c(0xda)];Array[_0x48177c(0x1a5)](_0x578add)&&_0x578add[_0x48177c(0x2d7)]&&_0x357ecc[_0x48177c(0x1fd)](_0x578add,{'unitId':_0x976da0,'subUnitId':_0x976da0},!0x1);}};ee=Wt([Me(0x0,a[_0x4aeb9a(0x18a)](a[_0x4aeb9a(0x95)])),Me(0x1,v[_0x4aeb9a(0x1aa)])],ee);var Vt=Object[_0x4aeb9a(0x1b9)],Gt=(_0x57d8da,_0x230d30,_0x1005bb,_0x2b9569)=>{const _0x2b3aab=_0x4aeb9a;for(var _0x19546b=_0x2b9569>0x1?void 0x0:_0x2b9569?Vt(_0x230d30,_0x1005bb):_0x230d30,_0x3d5b1d=_0x57d8da[_0x2b3aab(0x2d7)]-0x1,_0x3218e9;_0x3d5b1d>=0x0;_0x3d5b1d--)(_0x3218e9=_0x57d8da[_0x3d5b1d])&&(_0x19546b=_0x3218e9(_0x19546b)||_0x19546b);return _0x19546b;},N=(_0x4a17b2,_0x203933)=>(_0x52059a,_0x128532)=>_0x203933(_0x52059a,_0x128532,_0x4a17b2);let te=class extends a[_0x4aeb9a(0x2c4)]{constructor(_0x50232c,_0x48e162,_0x4fa02f,_0x21ae49,_0x10acf1,_0x176f2a,_0x3d8fdf,_0x110123){const _0x46632b=_0x4aeb9a;super(),_(this,_0x46632b(0x182),new I['BehaviorSubject'](u['CollaborationStatus'][_0x46632b(0x16c)])),(this[_0x46632b(0x1b0)]=_0x50232c,this[_0x46632b(0x1e2)]=_0x48e162,this[_0x46632b(0x1c7)]=_0x4fa02f,this[_0x46632b(0x205)]=_0x21ae49,this[_0x46632b(0x2d6)]=_0x10acf1,this[_0x46632b(0x2c2)]=_0x176f2a,this[_0x46632b(0x306)]=_0x3d8fdf,this['_localeService']=_0x110123,this[_0x46632b(0x307)]());}[_0x4aeb9a(0x307)](){const _0x66551f=_0x4aeb9a;this['disposeWithMe'](this[_0x66551f(0x1e2)][_0x66551f(0x1a3)][_0x66551f(0x302)](_0x4f64ef=>{const _0x54ef91=_0x66551f,_0x2a12e5=this[_0x54ef91(0x1b0)][_0x54ef91(0xb0)]['subscribe'](_0x782e60=>{const _0x293e57=_0x54ef91;if(_0x782e60==null)return;const {unitId:_0x54f3c4,redoState:_0x46311c,commandId:_0x20c083}=_0x782e60;if(_0x54f3c4!==_0x4f64ef['unitID'])return;const _0x41fd4e={'id':_0x20c083,'type':a[_0x293e57(0x313)][_0x293e57(0x217)],'params':{'unitId':_0x54f3c4,'actions':_0x46311c['actions'],'textRanges':null}};_0x4f64ef['onLocalMutation'](_0x41fd4e);});if(_0x4f64ef[_0x54ef91(0xc8)](_0x2a12e5),_0x4f64ef instanceof u[_0x54ef91(0x32f)]){const _0x2f03b0={'onTransformIME':_0xa9c303=>this[_0x54ef91(0x1c7)][_0x54ef91(0xea)](_0xa9c303),'onTransformState':_0x34d73e=>this[_0x54ef91(0x205)][_0x54ef91(0x26a)](_0x34d73e),'onTransformSelections':_0x97f47d=>this[_0x54ef91(0x2d6)]['transformSelections'](_0x97f47d),'onSyncEditingCollabCursor':_0x13203b=>this[_0x54ef91(0x2c2)]['syncEditingCollabCursor'](_0x13203b),'onTransformRemoteChangesetByIMECache':_0xdfc4ed=>this[_0x54ef91(0x1c7)][_0x54ef91(0x328)](_0xdfc4ed),'onTransformRemoteChangesetByStateCache':_0x129411=>this[_0x54ef91(0x205)][_0x54ef91(0x328)](_0x129411)};_0x4f64ef['addHandlerCallback'](_0x2f03b0);}}));}};te=Gt([N(0x0,a[_0x4aeb9a(0x18a)](T[_0x4aeb9a(0x187)])),N(0x1,a[_0x4aeb9a(0x18a)](u['CollaborationController'])),N(0x2,a[_0x4aeb9a(0x18a)](Z)),N(0x3,a['Inject'](Q)),N(0x4,a['Inject'](ee)),N(0x5,a[_0x4aeb9a(0x18a)](Oe)),N(0x6,O[_0x4aeb9a(0x10f)]),N(0x7,a[_0x4aeb9a(0x18a)](a[_0x4aeb9a(0x220)]))],te);var V=(_0x2276b5=>(_0x2276b5[_0x2276b5[_0x4aeb9a(0xdb)]=0x0]=_0x4aeb9a(0xdb),_0x2276b5[_0x2276b5['OK']=0x1]='OK',_0x2276b5[_0x2276b5[_0x4aeb9a(0x151)]=0x2]=_0x4aeb9a(0x151),_0x2276b5[_0x2276b5[_0x4aeb9a(0x2e8)]=0x3]=_0x4aeb9a(0x2e8),_0x2276b5[_0x2276b5[_0x4aeb9a(0x297)]=0x4]='NOT_FOUND',_0x2276b5[_0x2276b5['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x2276b5[_0x2276b5['ALREADY_EXISTS']=0x6]=_0x4aeb9a(0x1c4),_0x2276b5[_0x2276b5['INVALID_ARGUMENT']=0x7]=_0x4aeb9a(0x12c),_0x2276b5[_0x2276b5[_0x4aeb9a(0x283)]=0x8]='TOO_MANY_REQUESTS',_0x2276b5[_0x2276b5[_0x4aeb9a(0x2ef)]=0x9]=_0x4aeb9a(0x2ef),_0x2276b5[_0x2276b5[_0x4aeb9a(0x203)]=0xa]=_0x4aeb9a(0x203),_0x2276b5[_0x2276b5[_0x4aeb9a(0xe2)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x2276b5[_0x2276b5[_0x4aeb9a(0x180)]=0xc]=_0x4aeb9a(0x180),_0x2276b5[_0x2276b5['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x4aeb9a(0xd6),_0x2276b5[_0x2276b5[_0x4aeb9a(0x2d4)]=0xe]=_0x4aeb9a(0x2d4),_0x2276b5[_0x2276b5[_0x4aeb9a(0xc7)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x2276b5[_0x2276b5[_0x4aeb9a(0x2c8)]=0x10]=_0x4aeb9a(0x2c8),_0x2276b5[_0x2276b5[_0x4aeb9a(0xc4)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x2276b5[_0x2276b5['ERROR_AGAIN']=0x65]=_0x4aeb9a(0x1d6),_0x2276b5[_0x2276b5[_0x4aeb9a(0x190)]=0xc9]=_0x4aeb9a(0x190),_0x2276b5[_0x2276b5['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x2276b5[_0x2276b5[_0x4aeb9a(0x254)]=0x1389]=_0x4aeb9a(0x254),_0x2276b5[_0x2276b5[_0x4aeb9a(0x2ad)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2276b5[_0x2276b5[_0x4aeb9a(0xcb)]=0x1772]=_0x4aeb9a(0xcb),_0x2276b5[_0x2276b5[_0x4aeb9a(0xb5)]=0x1773]=_0x4aeb9a(0xb5),_0x2276b5[_0x2276b5[_0x4aeb9a(0xf4)]=0x1b59]='APPLY_REJECT',_0x2276b5[_0x2276b5[_0x4aeb9a(0x1de)]=0x1b5a]=_0x4aeb9a(0x1de),_0x2276b5[_0x2276b5['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2276b5[_0x2276b5['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x4aeb9a(0x26c),_0x2276b5[_0x2276b5[_0x4aeb9a(0xaf)]=0x1b5d]='APPLY_DUPLICATED',_0x2276b5[_0x2276b5['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2276b5[_0x2276b5['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4aeb9a(0x121),_0x2276b5[_0x2276b5[_0x4aeb9a(0x27a)]=0x232a]=_0x4aeb9a(0x27a),_0x2276b5[_0x2276b5[_0x4aeb9a(0x142)]=0x232b]=_0x4aeb9a(0x142),_0x2276b5[_0x2276b5[_0x4aeb9a(0x258)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2276b5[_0x2276b5[_0x4aeb9a(0x238)]=0x232d]=_0x4aeb9a(0x238),_0x2276b5[_0x2276b5[_0x4aeb9a(0x122)]=0x2711]=_0x4aeb9a(0x122),_0x2276b5[_0x2276b5[_0x4aeb9a(0x115)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2276b5[_0x2276b5[_0x4aeb9a(0x33f)]=0x2713]=_0x4aeb9a(0x33f),_0x2276b5[_0x2276b5[_0x4aeb9a(0x14c)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2276b5[_0x2276b5[_0x4aeb9a(0x30d)]=0x271a]=_0x4aeb9a(0x30d),_0x2276b5[_0x2276b5['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x4aeb9a(0x333),_0x2276b5[_0x2276b5['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x2276b5[_0x2276b5[_0x4aeb9a(0x144)]=0x271d]=_0x4aeb9a(0x144),_0x2276b5[_0x2276b5['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x4aeb9a(0x99),_0x2276b5[_0x2276b5[_0x4aeb9a(0x188)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x2276b5[_0x2276b5[_0x4aeb9a(0xe1)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x2276b5[_0x2276b5['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x4aeb9a(0x1c0),_0x2276b5[_0x2276b5[_0x4aeb9a(0x2e9)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x2276b5[_0x2276b5['INVALID_INVITE_CODE']=0x2ee2]=_0x4aeb9a(0x230),_0x2276b5[_0x2276b5[_0x4aeb9a(0x123)]=0x2ee3]=_0x4aeb9a(0x123),_0x2276b5[_0x2276b5[_0x4aeb9a(0x298)]=0x2ee4]=_0x4aeb9a(0x298),_0x2276b5[_0x2276b5[_0x4aeb9a(0xb6)]=0x2ee5]=_0x4aeb9a(0xb6),_0x2276b5[_0x2276b5[_0x4aeb9a(0x15a)]=0x32c9]=_0x4aeb9a(0x15a),_0x2276b5[_0x2276b5[_0x4aeb9a(0x1a4)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x2276b5[_0x2276b5['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x4aeb9a(0x137),_0x2276b5[_0x2276b5[_0x4aeb9a(0x208)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2276b5[_0x2276b5[_0x4aeb9a(0xe6)]=0x36b2]=_0x4aeb9a(0xe6),_0x2276b5[_0x2276b5[_0x4aeb9a(0x332)]=0x36b3]=_0x4aeb9a(0x332),_0x2276b5[_0x2276b5[_0x4aeb9a(0x18f)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x2276b5[_0x2276b5[_0x4aeb9a(0x310)]=0x3715]=_0x4aeb9a(0x310),_0x2276b5[_0x2276b5[_0x4aeb9a(0x2e5)]=0x3716]=_0x4aeb9a(0x2e5),_0x2276b5[_0x2276b5[_0x4aeb9a(0x125)]=0x3717]=_0x4aeb9a(0x125),_0x2276b5[_0x2276b5[_0x4aeb9a(0x222)]=0x37dd]=_0x4aeb9a(0x222),_0x2276b5[_0x2276b5[_0x4aeb9a(0x18b)]=0x3a99]=_0x4aeb9a(0x18b),_0x2276b5[_0x2276b5[_0x4aeb9a(0xd7)]=0x3a9a]=_0x4aeb9a(0xd7),_0x2276b5[_0x2276b5['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x4aeb9a(0x19a),_0x2276b5[_0x2276b5[_0x4aeb9a(0x2d0)]=0x3a9c]=_0x4aeb9a(0x2d0),_0x2276b5[_0x2276b5[_0x4aeb9a(0x345)]=0x3a9d]=_0x4aeb9a(0x345),_0x2276b5[_0x2276b5[_0x4aeb9a(0x1af)]=0x3a9e]=_0x4aeb9a(0x1af),_0x2276b5[_0x2276b5[_0x4aeb9a(0x28f)]=0x3a9f]=_0x4aeb9a(0x28f),_0x2276b5[_0x2276b5[_0x4aeb9a(0x1cc)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x2276b5[_0x2276b5['UNRECOGNIZED']=-0x1]=_0x4aeb9a(0x1ac),_0x2276b5))(V||{});function Xt(_0x2fe327){const _0x4b8d96=_0x4aeb9a;var _0x540b9d,_0x6205cb;const _0x4cbda0=(_0x540b9d=_0x2fe327[_0x4b8d96(0x327)])==null?void 0x0:_0x540b9d[_0x4b8d96(0x320)],_0x29730c=((_0x6205cb=_0x2fe327[_0x4b8d96(0x327)])==null?void 0x0:_0x6205cb[_0x4b8d96(0x132)])||0x0;return _0x4cbda0===x['FormulaExecuteStageType']['START_CALCULATION']&&_0x29730c>0x0;}function Kt(_0x502dfe){const _0x133e3a=_0x4aeb9a;return _0x502dfe['functionsExecutedState']===x['FormulaExecutedStateType'][_0x133e3a(0x27f)];}var qt=Object['getOwnPropertyDescriptor'],zt=(_0x1ed6bd,_0x2fcfa7,_0x4e8a81,_0x305bfa)=>{const _0x4157e3=_0x4aeb9a;for(var _0x3f416e=_0x305bfa>0x1?void 0x0:_0x305bfa?qt(_0x2fcfa7,_0x4e8a81):_0x2fcfa7,_0x459eec=_0x1ed6bd[_0x4157e3(0x2d7)]-0x1,_0x26276c;_0x459eec>=0x0;_0x459eec--)(_0x26276c=_0x1ed6bd[_0x459eec])&&(_0x3f416e=_0x26276c(_0x3f416e)||_0x3f416e);return _0x3f416e;},L=(_0x51aa19,_0x37476f)=>(_0x9fd3fb,_0x3fee07)=>_0x37476f(_0x9fd3fb,_0x3fee07,_0x51aa19);const Jt='/universer-api/license/formula/limit/status',Zt=_0x4aeb9a(0xc3),Qt=_0x4aeb9a(0x96);let se=class extends a[_0x4aeb9a(0x2c4)]{constructor(_0xee88a4,_0x42cb33,_0x14bb6e,_0x4eaa15,_0x1322ba,_0x2b4b1b,_0x3121e3){const _0x32dd18=_0x4aeb9a;super(),_(this,'_pollingInterval',null),_(this,_0x32dd18(0x126),0x0),_(this,_0x32dd18(0x23a),0x0),_(this,_0x32dd18(0x237),[]),_(this,_0x32dd18(0x1a7),0x0),(this[_0x32dd18(0x306)]=_0xee88a4,this[_0x32dd18(0x28c)]=_0x42cb33,this['_configService']=_0x14bb6e,this['_httpService']=_0x4eaa15,this['_univerInstanceService']=_0x1322ba,this[_0x32dd18(0x146)]=_0x2b4b1b,this[_0x32dd18(0xfb)]=_0x3121e3,this[_0x32dd18(0x9c)]());}[_0x4aeb9a(0x9c)](){const _0x4ad9e3=_0x4aeb9a;this[_0x4ad9e3(0xc8)](this[_0x4ad9e3(0x28c)][_0x4ad9e3(0xc5)]((_0x2bc0c8,_0x471533)=>{const _0x541834=_0x4ad9e3;var _0x19c551;if(_0x2bc0c8['id']!==x[_0x541834(0x335)]['id'])return;const _0x148867=_0x2bc0c8[_0x541834(0x19b)];if(!this['_hasFormulaInDirtyRanges']((_0x19c551=_0x148867['dirtyRanges'])!=null?_0x19c551:[]))return;if(!this[_0x541834(0x290)]())throw this[_0x541834(0xe8)](_0x2bc0c8,_0x471533),this[_0x541834(0x105)](),new a[(_0x541834(0x309))]();})),this[_0x4ad9e3(0xc8)](this[_0x4ad9e3(0x28c)]['onCommandExecuted']((_0x2e37a5,_0xb2e2df)=>{const _0x3ee179=_0x4ad9e3;if(_0x2e37a5['id']!==x['SetFormulaCalculationNotificationMutation']['id'])return;const _0x3e50fb=_0x2e37a5[_0x3ee179(0x19b)];if(Xt(_0x3e50fb)){const _0x22bf29=a[_0x3ee179(0x2b2)]();this[_0x3ee179(0x237)][_0x3ee179(0x9b)](_0x22bf29),this[_0x3ee179(0x16f)](_0x22bf29);}else{if(Kt(_0x3e50fb)&&this[_0x3ee179(0x237)][_0x3ee179(0x2d7)]>0x0){const _0xa549d9=this['_taskIds'][_0x3ee179(0x130)]();this[_0x3ee179(0x26f)](_0xa549d9);}}}));}[_0x4aeb9a(0x341)](){const _0x5730ad=_0x4aeb9a;super[_0x5730ad(0x341)](),this[_0x5730ad(0x168)](),this[_0x5730ad(0x237)]=[],this['_currentUsage']=0x0,this[_0x5730ad(0x126)]=0x0,this[_0x5730ad(0x1a7)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x31c420,_0x3cb87d){const _0x44221c=_0x4aeb9a;for(let _0x398c81=0x0;_0x398c81<0x1e;_0x398c81++)try{if(await this[_0x44221c(0x17c)](),this[_0x44221c(0x290)]()){this[_0x44221c(0x213)](_0x31c420,_0x3cb87d),this[_0x44221c(0x306)]['show']({'content':this['_localeService']['t'](_0x44221c(0x27c)),'type':p[_0x44221c(0x265)]['Success']});return;}await new Promise(_0x3df192=>{const _0x5ddf44=_0x44221c;this[_0x5ddf44(0xdd)]=window[_0x5ddf44(0x2a1)](_0x3df192,0x3e8);});}catch(_0x1db362){this['_logService']['error'](_0x1db362);}this[_0x44221c(0x306)][_0x44221c(0x2fd)]({'content':this[_0x44221c(0xfb)]['t']('formula.calculation.unable'),'type':p['MessageType'][_0x44221c(0x280)]});}['_applyCommand'](_0x2aa59a,_0xb658d0){const _0x39e1be=_0x4aeb9a;try{this[_0x39e1be(0x28c)][_0x39e1be(0xf7)](_0x2aa59a['id'],_0x2aa59a[_0x39e1be(0x19b)],_0xb658d0);}catch(_0x5bf994){this['_logService']['error'](_0x5bf994);}}['_setFormulaLimitStatus'](_0x56482d,_0x15c37e){const _0x13b3f8=_0x4aeb9a;_0x15c37e<this['_lastResponseTimestamp']||(this[_0x13b3f8(0x1a7)]=_0x15c37e,this['_maxFormulaLimit']=Number[_0x13b3f8(0x11e)](_0x56482d[_0x13b3f8(0x183)]),this[_0x13b3f8(0x23a)]=Number[_0x13b3f8(0x11e)](_0x56482d[_0x13b3f8(0x1dc)]));}async[_0x4aeb9a(0x16f)](_0x90d12b){const _0x5345ff=_0x4aeb9a;var _0x3807b7,_0x5bf237;const _0x310944=Date[_0x5345ff(0x2cc)]();try{const _0x3c7178=((_0x3807b7=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x3807b7[_0x5345ff(0x1be)])||Zt,_0x6ae37e=(await this['_httpService'][_0x5345ff(0xf0)](_0x3c7178,{'body':JSON['stringify']({'taskId':_0x90d12b})}))[_0x5345ff(0x30b)];if(((_0x5bf237=_0x6ae37e[_0x5345ff(0x1a0)])==null?void 0x0:_0x5bf237[_0x5345ff(0x17d)])!==V['OK'])return;this['_setFormulaLimitStatus'](_0x6ae37e[_0x5345ff(0x13d)],_0x310944);}catch(_0x1e68a0){this[_0x5345ff(0x146)][_0x5345ff(0x1a0)](_0x1e68a0);}}async['_getFormulaLimitStatus'](_0x427d49){const _0x27c5d7=_0x4aeb9a;var _0x4a50d3,_0xaf874d;const _0x15262b=Date[_0x27c5d7(0x2cc)]();try{const _0x5a62b6=((_0x4a50d3=this['_configService']['getConfig'](u[_0x27c5d7(0x159)]))==null?void 0x0:_0x4a50d3[_0x27c5d7(0x179)])||Jt,_0x26fd8c=_0x427d49?_0x5a62b6+_0x27c5d7(0x112)+encodeURIComponent(_0x427d49):_0x5a62b6,_0x4dca21=(await this[_0x27c5d7(0x2dd)][_0x27c5d7(0x25d)](_0x26fd8c))[_0x27c5d7(0x30b)];if(((_0xaf874d=_0x4dca21[_0x27c5d7(0x1a0)])==null?void 0x0:_0xaf874d['code'])!==V['OK'])return;this[_0x27c5d7(0x2bf)](_0x4dca21['limitInfo'],_0x15262b);}catch(_0x3d0e40){this['_logService'][_0x27c5d7(0x1a0)](_0x3d0e40);}}async[_0x4aeb9a(0x26f)](_0x341821){const _0x3c4699=_0x4aeb9a;var _0x3ab2ed,_0xf2ffbb;const _0x10ef5c=Date[_0x3c4699(0x2cc)]();try{const _0x234aa9=((_0x3ab2ed=this[_0x3c4699(0x32d)][_0x3c4699(0x2e1)](u[_0x3c4699(0x159)]))==null?void 0x0:_0x3ab2ed['releaseFormulaLimitUrl'])||Qt,_0x28d231=(await this[_0x3c4699(0x2dd)][_0x3c4699(0xf0)](_0x234aa9,{'body':JSON[_0x3c4699(0x2fe)]({'taskId':_0x341821})}))[_0x3c4699(0x30b)];if(((_0xf2ffbb=_0x28d231[_0x3c4699(0x1a0)])==null?void 0x0:_0xf2ffbb['code'])!==V['OK'])return;this[_0x3c4699(0x2bf)](_0x28d231[_0x3c4699(0x13d)],_0x10ef5c);}catch(_0x2ed9da){this[_0x3c4699(0x146)][_0x3c4699(0x1a0)](_0x2ed9da);}}[_0x4aeb9a(0x290)](){const _0x5caf41=_0x4aeb9a;return this[_0x5caf41(0x126)]===0x0?!0x0:this[_0x5caf41(0x126)]-this[_0x5caf41(0x23a)]>0x0;}[_0x4aeb9a(0x168)](){const _0x588974=_0x4aeb9a;this['_pollingInterval']&&(clearTimeout(this[_0x588974(0xdd)]),this['_pollingInterval']=null);}[_0x4aeb9a(0x105)](){const _0x360527=_0x4aeb9a;this[_0x360527(0x306)]['show']({'content':this[_0x360527(0xfb)]['t'](_0x360527(0x2c1)),'type':p[_0x360527(0x265)]['Loading']});}[_0x4aeb9a(0x255)](_0x13314e){const _0x4766ea=_0x4aeb9a;for(const _0x2e9488 of _0x13314e){const {unitId:_0x235a04,sheetId:_0x571967,range:_0x562912}=_0x2e9488,_0x10d273=this[_0x4766ea(0x2da)][_0x4766ea(0xab)](_0x235a04);if(!_0x10d273)continue;const _0x5ea2c3=_0x10d273['getSheetBySheetId'](_0x571967);if(!_0x5ea2c3)continue;const _0x3c9679=_0x5ea2c3['getCellMatrix']();for(let _0x4443b3=_0x562912[_0x4766ea(0x111)];_0x4443b3<=_0x562912[_0x4766ea(0x31f)];_0x4443b3++)for(let _0x143004=_0x562912[_0x4766ea(0x1e3)];_0x143004<=_0x562912[_0x4766ea(0x312)];_0x143004++){const _0x2b059e=_0x3c9679['getValue'](_0x4443b3,_0x143004);if(_0x2b059e&&(a['isFormulaString'](_0x2b059e['f'])||a['isFormulaId'](_0x2b059e['si'])))return!0x0;}}return!0x1;}};se=zt([L(0x0,a['Inject'](O['IMessageService'])),L(0x1,a[_0x4aeb9a(0x1f7)]),L(0x2,a[_0x4aeb9a(0x14d)]),L(0x3,a[_0x4aeb9a(0x18a)](G['HTTPService'])),L(0x4,a[_0x4aeb9a(0x2bb)]),L(0x5,a[_0x4aeb9a(0x14e)]),L(0x6,a[_0x4aeb9a(0x18a)](a[_0x4aeb9a(0x220)]))],se);var es=Object[_0x4aeb9a(0x1b9)],ts=(_0x7d29ef,_0x46257c,_0x5a01c0,_0x3d7188)=>{const _0x10a772=_0x4aeb9a;for(var _0x3095ec=_0x3d7188>0x1?void 0x0:_0x3d7188?es(_0x46257c,_0x5a01c0):_0x46257c,_0x11f6b2=_0x7d29ef[_0x10a772(0x2d7)]-0x1,_0x2f309e;_0x11f6b2>=0x0;_0x11f6b2--)(_0x2f309e=_0x7d29ef[_0x11f6b2])&&(_0x3095ec=_0x2f309e(_0x3095ec)||_0x3095ec);return _0x3095ec;},ue=(_0x496174,_0x4fd6a1)=>(_0x5d43d8,_0x20fda7)=>_0x4fd6a1(_0x5d43d8,_0x20fda7,_0x496174);let Ee=class extends a[_0x4aeb9a(0x2c4)]{constructor(_0x2b13d9,_0x1f7966,_0x29608b){const _0x42a135=_0x4aeb9a;super(),_(this,_0x42a135(0x272),new Map()),_(this,_0x42a135(0x150),new Map()),_(this,_0x42a135(0x278),!0x1),(this[_0x42a135(0x32d)]=_0x2b13d9,this['_localStorageService']=_0x1f7966,this[_0x42a135(0x1e1)]=_0x29608b);}['disableLocalCache'](){const _0x1f4994=_0x4aeb9a;this[_0x1f4994(0x278)]=!0x0;}['enableLocalCache'](){const _0x5e9f33=_0x4aeb9a;this[_0x5e9f33(0x278)]=!0x1;}get[_0x4aeb9a(0x2a3)](){const _0x3985bc=_0x4aeb9a;return this[_0x3985bc(0x150)];}[_0x4aeb9a(0x341)](){const _0xb5f94=_0x4aeb9a;this['exhaustSavingTask']()[_0xb5f94(0x25e)](()=>super[_0xb5f94(0x341)]());}async['loadOfflineData'](_0x145757){const _0x157877=_0x4aeb9a;return this[_0x157877(0x278)]?null:this[_0x157877(0x2ed)][_0x157877(0x156)](u[_0x157877(0x1f3)](_0x145757));}async[_0x4aeb9a(0x315)](_0xa9d7e8,_0x47f134){return!!this['_localStorageService']['setItem'](_0xa9d7e8,_0x47f134);}[_0x4aeb9a(0x274)](_0xba991b,_0x2e438e,_0x416599,_0x1ab1f8){const _0x166012=_0x4aeb9a,_0x67db58=this[_0x166012(0x1e1)][_0x166012(0x303)](_0xba991b);this[_0x166012(0x272)][_0x166012(0x20f)](_0xba991b,{'unitID':_0xba991b,'type':_0x2e438e,'awaitingChangeset':_0x416599,'mutations':_0x1ab1f8,'rev':_0x67db58}),this['_saveTaskMap']['has'](_0xba991b)||this[_0x166012(0x1bb)](_0xba991b);}[_0x4aeb9a(0x1bb)](_0x526e12){const _0x437a9d=_0x4aeb9a,_0x468791=this[_0x437a9d(0x15f)]();_0x468791===0x0?this['_saveCache'](_0x526e12):this['_saveTaskMap'][_0x437a9d(0x20f)](_0x526e12,setTimeout(()=>this[_0x437a9d(0x2f9)](_0x526e12),_0x468791));}[_0x4aeb9a(0x15f)](){const _0x3f6e33=_0x4aeb9a;var _0x3f52e5;return(_0x3f52e5=this[_0x3f6e33(0x32d)][_0x3f6e33(0x2e1)](u[_0x3f6e33(0x2de)]))!=null?_0x3f52e5:u['LOCAL_CACHE_INTERVAL'];}[_0x4aeb9a(0x2f9)](_0x533859){const _0x2b7ed4=_0x4aeb9a,_0x27693e=this[_0x2b7ed4(0x150)][_0x2b7ed4(0x25d)](_0x533859);return _0x27693e!==void 0x0&&window['clearTimeout'](_0x27693e),this[_0x2b7ed4(0x2ed)][_0x2b7ed4(0x22b)](u[_0x2b7ed4(0x1f3)](_0x533859),this[_0x2b7ed4(0x272)]['get'](_0x533859))[_0x2b7ed4(0x25e)](()=>this[_0x2b7ed4(0x150)][_0x2b7ed4(0x1db)](_0x533859));}async[_0x4aeb9a(0xf2)](){const _0x49232e=_0x4aeb9a,_0x155df6=[];this[_0x49232e(0x150)][_0x49232e(0x270)]((_0x4f8478,_0x3ed6e2)=>{const _0x6bd113=_0x49232e;window['clearTimeout'](_0x4f8478),_0x155df6[_0x6bd113(0x9b)](this['_saveCache'](_0x3ed6e2)[_0x6bd113(0x25e)](()=>{const _0x4d2d96=_0x6bd113;this[_0x4d2d96(0x150)][_0x4d2d96(0x1db)](_0x3ed6e2);}));}),await Promise['all'](_0x155df6);}};Ee=ts([ue(0x0,a[_0x4aeb9a(0x14d)]),ue(0x1,a[_0x4aeb9a(0x9d)]),ue(0x2,a[_0x4aeb9a(0x18a)](v[_0x4aeb9a(0x243)]))],Ee);class Fe extends a[_0x4aeb9a(0x12b)]{constructor(){const _0x4775f4=_0x4aeb9a;super(),_(this,_0x4775f4(0x299)),this[_0x4775f4(0x299)]=I['fromEvent'](window,_0x4775f4(0x21e))[_0x4775f4(0x2b1)](I[_0x4775f4(0x1b6)](this[_0x4775f4(0x19d)]),I[_0x4775f4(0xb1)](0x1),I['mapTo'](void 0x0));}[_0x4aeb9a(0x2b7)](_0x194c69,_0x5a4627,_0x3366be=!0x1){const _0x515b87=_0x4aeb9a,_0x5fd59a=new URL(window['location'][_0x515b87(0x2e3)]);_0x5fd59a[_0x515b87(0x113)][_0x515b87(0x20f)](_0x194c69,_0x5a4627),_0x3366be?window[_0x515b87(0x16d)][_0x515b87(0x338)]('','',_0x5fd59a[_0x515b87(0xa8)]()):window['history'][_0x515b87(0xf5)]('','',_0x5fd59a[_0x515b87(0xa8)]());}[_0x4aeb9a(0x21d)](_0x2109d4,_0x1b1058=!0x1){const _0x1ddd44=_0x4aeb9a,_0x3ca123=new URL(window[_0x1ddd44(0x192)][_0x1ddd44(0x2e3)]);_0x3ca123[_0x1ddd44(0x113)][_0x1ddd44(0x1db)](_0x2109d4),_0x1b1058?window['history'][_0x1ddd44(0x338)]('','',_0x3ca123[_0x1ddd44(0xa8)]()):window[_0x1ddd44(0x16d)][_0x1ddd44(0xf5)]('','',_0x3ca123[_0x1ddd44(0xa8)]());}['getParam'](_0x473a8c){const _0x162ec9=_0x4aeb9a;var _0x1b1471;return(_0x1b1471=new URL(window[_0x162ec9(0x192)][_0x162ec9(0x2e3)])[_0x162ec9(0x113)][_0x162ec9(0x25d)](_0x473a8c))!=null?_0x1b1471:void 0x0;}}var ss=Object[_0x4aeb9a(0x2a7)],is=Object['getOwnPropertyDescriptor'],ns=(_0x56db19,_0x19701b,_0x350e9e)=>_0x19701b in _0x56db19?ss(_0x56db19,_0x19701b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x350e9e}):_0x56db19[_0x19701b]=_0x350e9e,rs=(_0x272182,_0x2caeb4,_0x861745,_0x46832f)=>{const _0x7a29cf=_0x4aeb9a;for(var _0x53e44d=_0x46832f>0x1?void 0x0:_0x46832f?is(_0x2caeb4,_0x861745):_0x2caeb4,_0x136c35=_0x272182[_0x7a29cf(0x2d7)]-0x1,_0xce0c64;_0x136c35>=0x0;_0x136c35--)(_0xce0c64=_0x272182[_0x136c35])&&(_0x53e44d=_0xce0c64(_0x53e44d)||_0x53e44d);return _0x53e44d;},Ie=(_0x1ecb0c,_0x135134)=>(_0x2ffd96,_0x1dcfc1)=>_0x135134(_0x2ffd96,_0x1dcfc1,_0x1ecb0c),os=(_0x208f84,_0x3a72da,_0x3966e8)=>ns(_0x208f84,_0x3a72da+'',_0x3966e8);const as=_0x4aeb9a(0x212);exports[_0x4aeb9a(0x2a6)]=class extends a[_0x4aeb9a(0x1d2)]{constructor(_0x351e27=Ue,_0x463628,_0x50bec5,_0x2546ad){const _0x3aca64=_0x4aeb9a;super(),this['_config']=_0x351e27,this[_0x3aca64(0x1c9)]=_0x463628,this[_0x3aca64(0x33b)]=_0x50bec5,this[_0x3aca64(0x32d)]=_0x2546ad;const {..._0x5a7dbf}=a[_0x3aca64(0xaa)]({},Ue,this[_0x3aca64(0x1e5)]);this[_0x3aca64(0x32d)][_0x3aca64(0x107)](Bt,_0x5a7dbf);}[_0x4aeb9a(0x153)](){const _0x3666b0=_0x4aeb9a;this['_registerDependencies'](),this[_0x3666b0(0x226)]();}[_0x4aeb9a(0x1d8)](){const _0x5bd8d0=_0x4aeb9a;this[_0x5bd8d0(0xd1)]();}[_0x4aeb9a(0x1e4)](){const _0x5a8801=_0x4aeb9a;var _0x5b046a;const _0x385f21=[[pe],[se],[ee],[Z],[Q],[Oe],[Te,{'useClass':Fe}],[G[_0x5a8801(0x2f5)],{'useClass':G[_0x5a8801(0x236)]}],[u[_0x5a8801(0xbc)],{'useClass':Ee}],[exports[_0x5a8801(0x24c)]],[te],[J],[B],[de],[exports[_0x5a8801(0x245)]]];a[_0x5a8801(0xcc)](this[_0x5a8801(0x33b)],a[_0x5a8801(0x11a)](_0x385f21,(_0x5b046a=this[_0x5a8801(0x1e5)])==null?void 0x0:_0x5b046a[_0x5a8801(0x330)]));}['_registerRenderDependencies'](){const _0x15f087=_0x4aeb9a;this['disposeWithMe'](this[_0x15f087(0x1c9)][_0x15f087(0x28e)](a[_0x15f087(0x1ae)][_0x15f087(0x2be)],[ge])),this[_0x15f087(0xc8)](this[_0x15f087(0x1c9)][_0x15f087(0x28e)](a[_0x15f087(0x1ae)][_0x15f087(0x2ae)],[ve]));}['_initDependencies'](){const _0x8af531=_0x4aeb9a;a['touchDependencies'](this[_0x8af531(0x33b)],[[B],[exports[_0x8af531(0x24c)]],[te],[J],[exports[_0x8af531(0x245)]],[se]]);}},os(exports[_0x4aeb9a(0x2a6)],_0x4aeb9a(0x1a8),as),exports['UniverCollaborationClientUIPlugin']=rs([a[_0x4aeb9a(0x19c)](u[_0x4aeb9a(0x143)]),Ie(0x1,C[_0x4aeb9a(0x24b)]),Ie(0x2,a['Inject'](a['Injector'])),Ie(0x3,a[_0x4aeb9a(0x14d)])],exports['UniverCollaborationClientUIPlugin']);var cs=Object[_0x4aeb9a(0x1b9)],ls=(_0x46d29a,_0x57ec71,_0x1be324,_0x39af04)=>{const _0x1109af=_0x4aeb9a;for(var _0x526446=_0x39af04>0x1?void 0x0:_0x39af04?cs(_0x57ec71,_0x1be324):_0x57ec71,_0x2c47ca=_0x46d29a[_0x1109af(0x2d7)]-0x1,_0x4fe3ba;_0x2c47ca>=0x0;_0x2c47ca--)(_0x4fe3ba=_0x46d29a[_0x2c47ca])&&(_0x526446=_0x4fe3ba(_0x526446)||_0x526446);return _0x526446;},H=(_0x1f01ae,_0x5e0f06)=>(_0x37c543,_0x439ae4)=>_0x5e0f06(_0x37c543,_0x439ae4,_0x1f01ae);exports[_0x4aeb9a(0x291)]=class extends u[_0x4aeb9a(0xef)]{constructor(_0x57f14a,_0x8f44c,_0x183a24,_0x3fec23,_0x2a8992){super(_0x57f14a,_0x8f44c,_0x183a24,_0x3fec23,_0x2a8992);}async[_0x4aeb9a(0x9f)](_0x319680){const _0x85ec14=_0x4aeb9a,_0x45446d=await this[_0x85ec14(0x235)](),_0x3aeec9=this[_0x85ec14(0x209)](_0x319680,_0x45446d);return this[_0x85ec14(0x15d)](_0x3aeec9);}[_0x4aeb9a(0x209)](_0x7b97fd,_0x3d1047){const _0xc0cf9d=_0x4aeb9a,_0x4cc359=typeof window>'u'?new URL(_0x7b97fd):new URL(_0x7b97fd,window[_0xc0cf9d(0x192)][_0xc0cf9d(0x229)]);_0x4cc359['searchParams'][_0xc0cf9d(0x20f)](_0xc0cf9d(0x2ba),_0x3d1047);const _0x25290b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xc0cf9d(0x192)][_0xc0cf9d(0x221)]);return _0x25290b[_0xc0cf9d(0x25d)](_0xc0cf9d(0x1f1))&&_0x4cc359['searchParams']['set'](_0xc0cf9d(0x1f1),_0x25290b[_0xc0cf9d(0x25d)](_0xc0cf9d(0x1f1))),_0x4cc359[_0xc0cf9d(0xa8)]();}async[_0x4aeb9a(0x235)](){const _0x4da837=_0x4aeb9a;var _0x45bff2,_0x1c87df,_0x552344;const _0x2b63eb=this[_0x4da837(0x32d)][_0x4da837(0x2e1)](u[_0x4da837(0x159)]),_0x5b95d3=(_0x45bff2=_0x2b63eb==null?void 0x0:_0x2b63eb['wsSessionTicketUrl'])!=null?_0x45bff2:u[_0x4da837(0x25b)];return(_0x552344=(_0x1c87df=(await this[_0x4da837(0x2dd)][_0x4da837(0x25d)](_0x5b95d3,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x1c87df[_0x4da837(0x1ad)])!=null?_0x552344:'';}},exports['BrowserCollaborationSocketService']=ls([H(0x0,a[_0x4aeb9a(0x18a)](a[_0x4aeb9a(0x95)])),H(0x1,a[_0x4aeb9a(0x18a)](G[_0x4aeb9a(0x279)])),H(0x2,a[_0x4aeb9a(0x14d)]),H(0x3,a[_0x4aeb9a(0x14e)]),H(0x4,v[_0x4aeb9a(0x117)])],exports['BrowserCollaborationSocketService']);var _s=Object['getOwnPropertyDescriptor'],hs=(_0xc4563e,_0x3c4b9,_0x1b4298,_0x19f89e)=>{const _0x1e7fc4=_0x4aeb9a;for(var _0x285950=_0x19f89e>0x1?void 0x0:_0x19f89e?_s(_0x3c4b9,_0x1b4298):_0x3c4b9,_0x3df7b2=_0xc4563e[_0x1e7fc4(0x2d7)]-0x1,_0x533375;_0x3df7b2>=0x0;_0x3df7b2--)(_0x533375=_0xc4563e[_0x3df7b2])&&(_0x285950=_0x533375(_0x285950)||_0x285950);return _0x285950;},Se=(_0x14da9e,_0x552563)=>(_0x2cec88,_0x4429d4)=>_0x552563(_0x2cec88,_0x4429d4,_0x14da9e);exports['RemoteUniscriptService']=class extends a[_0x4aeb9a(0x2c4)]{constructor(_0x29fe55,_0x18cf55,_0x271edc){const _0x2caabd=_0x4aeb9a;super(),this['_instanceService']=_0x29fe55,this[_0x2caabd(0x2dd)]=_0x18cf55,this[_0x2caabd(0x32d)]=_0x271edc;}async[_0x4aeb9a(0xf6)](_0x31536a,_0x58edd1,_0xf05d89,..._0x22209c){const _0x15c4cd=_0x4aeb9a;var _0x22c865,_0x4b2533,_0x4c8777,_0x46993b;const _0x2539e5=this['_instanceService'][_0x15c4cd(0x2b9)]();if(!_0x2539e5)throw new Error(_0x15c4cd(0xb4));const _0x5703e0=((_0x22c865=this[_0x15c4cd(0x32d)]['getConfig'](u[_0x15c4cd(0x244)]))!=null?_0x22c865:u[_0x15c4cd(0x140)])+'/'+_0x31536a+_0x15c4cd(0xc0)+_0x58edd1,_0x4753e7=new URL(window['location'][_0x15c4cd(0x2e3)]),_0x485a35={'scriptId':_0x31536a,'runId':(_0x4b2533=_0x4753e7[_0x15c4cd(0x113)][_0x15c4cd(0x25d)](_0x15c4cd(0x1f1)))!=null?_0x4b2533:'','function':_0x58edd1,'unitId':_0x2539e5[_0x15c4cd(0x2f0)](),'argsOfFunction':JSON[_0x15c4cd(0x2fe)](_0x22209c),'invokeId':(_0x4c8777=_0xf05d89[_0x15c4cd(0x14f)])!=null?_0x4c8777:'','executionId':(_0x46993b=_0xf05d89[_0x15c4cd(0xe4)])!=null?_0x46993b:''};try{const _0x347078=await this[_0x15c4cd(0x2dd)][_0x15c4cd(0xf0)](_0x5703e0,{'body':_0x485a35});return _0x347078[_0x15c4cd(0x30b)][_0x15c4cd(0x1a0)]&&_0x347078[_0x15c4cd(0x30b)][_0x15c4cd(0x1a0)][_0x15c4cd(0x17d)]!==V['OK']?'Failed':_0x347078[_0x15c4cd(0x30b)][_0x15c4cd(0x201)];}catch{return'Failed';}}},exports[_0x4aeb9a(0x29e)]=hs([Se(0x0,a['IUniverInstanceService']),Se(0x1,a[_0x4aeb9a(0x18a)](G['HTTPService'])),Se(0x2,a['IConfigService'])],exports[_0x4aeb9a(0x29e)]);const Ae=0x7530,Pe=_0x4aeb9a(0x1d1);class us extends a[_0x4aeb9a(0x2c4)]{constructor(){const _0x2b46b4=_0x4aeb9a;super(),_(this,'_id',a[_0x2b46b4(0x2b2)]()),_(this,_0x2b46b4(0x169),new Set()),_(this,_0x2b46b4(0x233),new Map()),_(this,_0x2b46b4(0x29b),null),_(this,_0x2b46b4(0x1d3),new Map()),_(this,_0x2b46b4(0x334),new Map()),this[_0x2b46b4(0xe5)]();}['dispose'](){const _0x2b29f2=_0x4aeb9a;super[_0x2b29f2(0x341)](),this[_0x2b29f2(0x1d3)][_0x2b29f2(0x270)]((_0x2ece9f,_0x5c74cb)=>this['_removeClearOtherTimer'](_0x5c74cb)),this[_0x2b29f2(0x29b)]&&window[_0x2b29f2(0x18c)](this['_heartbeatTimer']);}[_0x4aeb9a(0x323)](_0x327d41){const _0x3e6bb0=_0x4aeb9a;return this[_0x3e6bb0(0x98)](_0x327d41)[_0x3e6bb0(0x2b1)](I[_0x3e6bb0(0x185)]());}['editingUnit'](_0xb750ee){const _0x354ee6=_0x4aeb9a;this[_0x354ee6(0x169)][_0x354ee6(0x2a5)]===0x0&&this[_0x354ee6(0x1fb)](),this[_0x354ee6(0x169)][_0x354ee6(0x149)](_0xb750ee),this[_0x354ee6(0xfd)]({'type':0x0,'memberID':this[_0x354ee6(0x127)],'unitIDs':[_0xb750ee],'isForwarded':!0x1});}[_0x4aeb9a(0xac)](_0x5b1eba){const _0x47a41e=_0x4aeb9a;this[_0x47a41e(0x169)][_0x47a41e(0x1db)](_0x5b1eba),this['_selfUnitIDs'][_0x47a41e(0x2a5)]===0x0&&this[_0x47a41e(0x29b)]&&window[_0x47a41e(0x18c)](this['_heartbeatTimer']);}[_0x4aeb9a(0xe5)](){const _0x42d333=_0x4aeb9a;this['disposeWithMe'](a[_0x42d333(0x204)](I[_0x42d333(0x285)](window,'storage')[_0x42d333(0x302)](_0x1fa6ef=>{const _0x5b3a0f=_0x42d333;if(_0x1fa6ef[_0x5b3a0f(0xed)]!==Pe||!_0x1fa6ef[_0x5b3a0f(0x32c)])return;const _0x578b69=JSON[_0x5b3a0f(0x13b)](_0x1fa6ef[_0x5b3a0f(0x32c)]);this['_handleEvent'](_0x578b69);}))),window[_0x42d333(0x247)]('unload',()=>this[_0x42d333(0xfd)]({'type':0x1,'memberID':this[_0x42d333(0x127)],'unitIDs':Array[_0x42d333(0x19f)](this[_0x42d333(0x169)])}));}[_0x4aeb9a(0x26b)](_0xd94757){const _0x20566f=_0x4aeb9a;switch(_0xd94757[_0x20566f(0x1e9)]){case 0x0:this[_0x20566f(0x12e)](_0xd94757);break;case 0x1:this[_0x20566f(0x22d)](_0xd94757);break;case 0x2:this['_handleHeartbeatEvent'](_0xd94757);break;}}[_0x4aeb9a(0x12e)](_0x4d6eb2){const _0x3d3131=_0x4aeb9a,{unitIDs:_0x4330e7,memberID:_0x361d5e,isForwarded:_0x1fcc95}=_0x4d6eb2;_0x4330e7['forEach'](_0x4244db=>{const _0x437ee3=_0x12f6;if(!_0x1fcc95&&this[_0x437ee3(0x233)][_0x437ee3(0x2f3)](_0x4244db)&&this[_0x437ee3(0x98)](_0x4244db)[_0x437ee3(0x207)](u[_0x437ee3(0x1f4)][_0x437ee3(0x324)]),!this[_0x437ee3(0x233)][_0x437ee3(0x2f3)](_0x4244db)||!this[_0x437ee3(0x233)][_0x437ee3(0x25d)](_0x4244db)[_0x437ee3(0x2f3)](_0x361d5e)){const _0x4025bf=this[_0x437ee3(0x233)][_0x437ee3(0x25d)](_0x4244db)||new Set();_0x4025bf['add'](_0x361d5e),this[_0x437ee3(0x233)][_0x437ee3(0x20f)](_0x4244db,_0x4025bf),this['_scheduleClearOtherTimer'](_0x361d5e);}}),_0x1fcc95||this[_0x3d3131(0xfd)]({'type':0x0,'memberID':this[_0x3d3131(0x127)],'unitIDs':[...this[_0x3d3131(0x169)]],'isForwarded':!0x0});}[_0x4aeb9a(0x20b)](_0x1b90aa){const _0x471649=_0x4aeb9a;this[_0x471649(0xc2)](_0x1b90aa);const _0x4a2dbc=window['setTimeout'](()=>{const _0x5d447f=_0x471649;this['_unitOnClients'][_0x5d447f(0x270)](_0x26e25b=>{const _0x13a677=_0x5d447f;_0x26e25b[_0x13a677(0x1db)](_0x1b90aa);});},Ae*0x2);this[_0x471649(0x1d3)][_0x471649(0x20f)](_0x1b90aa,_0x4a2dbc);}[_0x4aeb9a(0xc2)](_0x43d286){const _0x697c87=_0x4aeb9a;if(this[_0x697c87(0x1d3)][_0x697c87(0x2f3)](_0x43d286)){const _0x2488ad=this[_0x697c87(0x1d3)][_0x697c87(0x25d)](_0x43d286);_0x2488ad&&window[_0x697c87(0x305)](_0x2488ad),this[_0x697c87(0x1d3)][_0x697c87(0x20f)](_0x43d286,null);}}[_0x4aeb9a(0x22d)](_0x141be8){const _0x3300e0=_0x4aeb9a,{memberID:_0x168f4e,unitIDs:_0x2f2fa2}=_0x141be8;_0x2f2fa2[_0x3300e0(0x270)](_0x599216=>{const _0x37d3a1=_0x3300e0;var _0x22dd61;const _0x4dcf2c=this[_0x37d3a1(0x233)]['get'](_0x599216);_0x4dcf2c&&(_0x4dcf2c[_0x37d3a1(0x1db)](_0x168f4e),(_0x22dd61=this[_0x37d3a1(0x98)](_0x599216))==null||_0x22dd61[_0x37d3a1(0x207)](_0x4dcf2c['size']===0x0?u[_0x37d3a1(0x1f4)]['NO_OTHER_CLIENTS_EDITING']:u[_0x37d3a1(0x1f4)][_0x37d3a1(0x324)]));}),this[_0x3300e0(0xc2)](_0x168f4e);}[_0x4aeb9a(0x322)](_0x19baea){const _0xaa413d=_0x4aeb9a;this[_0xaa413d(0x20b)](_0x19baea['memberID']);}['_send'](_0x50c3c1){const _0x916e46=_0x4aeb9a;localStorage[_0x916e46(0x22b)](Pe,JSON[_0x916e46(0x2fe)](_0x50c3c1));}[_0x4aeb9a(0x1fb)](){const _0x53ff3=_0x4aeb9a;this['_heartbeatTimer']=window[_0x53ff3(0x200)](()=>{const _0x317089=_0x53ff3;this[_0x317089(0xfd)]({'type':0x2,'memberID':this[_0x317089(0x127)]});},Ae);}[_0x4aeb9a(0x98)](_0xc14404){const _0x2af34f=_0x4aeb9a;return this[_0x2af34f(0x334)][_0x2af34f(0x2f3)](_0xc14404)||this[_0x2af34f(0x334)][_0x2af34f(0x20f)](_0xc14404,new I[(_0x2af34f(0x21c))](u['UnitStatus']['NO_OTHER_CLIENTS_EDITING'])),this[_0x2af34f(0x334)][_0x2af34f(0x25d)](_0xc14404);}}exports['IURLService']=Te,exports[_0x4aeb9a(0x296)]=Be,exports[_0x4aeb9a(0x108)]=us,exports[_0x4aeb9a(0x1fe)]=Fe;
1
+ 'use strict';const _0xac5304=_0x3138;(function(_0x54ddd2,_0x10d585){const _0x5c93c4=_0x3138,_0x10bbea=_0x54ddd2();while(!![]){try{const _0x3d94d3=parseInt(_0x5c93c4(0xe3))/0x1*(-parseInt(_0x5c93c4(0x2b2))/0x2)+parseInt(_0x5c93c4(0x103))/0x3*(parseInt(_0x5c93c4(0x11c))/0x4)+-parseInt(_0x5c93c4(0x115))/0x5*(-parseInt(_0x5c93c4(0x36a))/0x6)+parseInt(_0x5c93c4(0x100))/0x7+-parseInt(_0x5c93c4(0x1aa))/0x8+parseInt(_0x5c93c4(0x2f9))/0x9*(-parseInt(_0x5c93c4(0x2ab))/0xa)+parseInt(_0x5c93c4(0x343))/0xb;if(_0x3d94d3===_0x10d585)break;else _0x10bbea['push'](_0x10bbea['shift']());}catch(_0x343086){_0x10bbea['push'](_0x10bbea['shift']());}}}(_0x11bd,0xecaa9));var Ve=Object[_0xac5304(0x2d2)],Ge=(_0x4cf6aa,_0x47f1d2,_0x2ed4e7)=>_0x47f1d2 in _0x4cf6aa?Ve(_0x4cf6aa,_0x47f1d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ed4e7}):_0x4cf6aa[_0x47f1d2]=_0x2ed4e7,_=(_0x2a8804,_0xbb5a63,_0x5e6a9c)=>Ge(_0x2a8804,typeof _0xbb5a63!=_0xac5304(0x31a)?_0xbb5a63+'':_0xbb5a63,_0x5e6a9c);Object[_0xac5304(0x2d2)](exports,Symbol[_0xac5304(0xe2)],{'value':_0xac5304(0x14a)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),G=require('@univerjs/network'),T=require('@univerjs/docs-ui'),Ke=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),W=require('@univerjs/docs'),x=require('@univerjs/engine-formula'),$=require('rxjs/operators'),z=require('@univerjs/sheets-ui');function Ce({ref:_0x73154,..._0x1e577c}){const _0x3ff2fc=_0xac5304,{icon:_0xe9755d,id:_0x25c28e,className:_0x3be7f5,extend:_0x19f16b,..._0xc7e72}=_0x1e577c,_0x359234=(_0x3ff2fc(0x206)+_0x25c28e+'\x20'+(_0x3be7f5||''))[_0x3ff2fc(0x363)](),_0x44f8de=A[_0x3ff2fc(0x1fc)]('_'+Je());return we(_0xe9755d,''+_0x25c28e,{'defIds':_0xe9755d[_0x3ff2fc(0x156)],'idSuffix':_0x44f8de[_0x3ff2fc(0x265)]},{'ref':_0x73154,'className':_0x359234,..._0xc7e72},_0x19f16b);}function we(_0x5b1ef3,_0x3b1e75,_0x3223db,_0x21b3af,_0x207b44){const _0x3567bf=_0xac5304;return A[_0x3567bf(0x1c3)](_0x5b1ef3[_0x3567bf(0xee)],{'key':_0x3b1e75,...qe(_0x5b1ef3,_0x3223db,_0x207b44),..._0x21b3af},(ze(_0x5b1ef3,_0x3223db)[_0x3567bf(0x15c)]||[])[_0x3567bf(0x182)]((_0x202056,_0x329f48)=>we(_0x202056,_0x3b1e75+'-'+_0x5b1ef3[_0x3567bf(0xee)]+'-'+_0x329f48,_0x3223db,void 0x0,_0x207b44)));}function qe(_0x5eefc1,_0x5ce5be,_0xf6d92a){const _0x11d859=_0xac5304,_0x2a16a3={..._0x5eefc1['attrs']};_0xf6d92a!=null&&_0xf6d92a[_0x11d859(0x172)]&&_0x2a16a3['fill']===_0x11d859(0x172)&&(_0x2a16a3[_0x11d859(0x189)]=_0xf6d92a[_0x11d859(0x172)]),_0x5eefc1[_0x11d859(0xee)]==='mask'&&_0x2a16a3['id']&&(_0x2a16a3['id']=_0x2a16a3['id']+_0x5ce5be[_0x11d859(0x317)]),Object[_0x11d859(0x35f)](_0x2a16a3)[_0x11d859(0x1b8)](([_0x80f960,_0xd6df05])=>{const _0x3ecdf5=_0x11d859;_0x80f960===_0x3ecdf5(0x1b5)&&typeof _0xd6df05==_0x3ecdf5(0x2c2)&&(_0x2a16a3[_0x80f960]=_0xd6df05[_0x3ecdf5(0x16a)](/url\(#(.*)\)/,_0x3ecdf5(0x30a)+_0x5ce5be[_0x3ecdf5(0x317)]+')'));});const {defIds:_0x200f36}=_0x5ce5be;return!_0x200f36||_0x200f36[_0x11d859(0x2d1)]===0x0||(_0x5eefc1['tag']==='use'&&_0x2a16a3['xlink:href']&&(_0x2a16a3['xlink:href']=_0x2a16a3[_0x11d859(0xfa)]+_0x5ce5be[_0x11d859(0x317)]),Object['entries'](_0x2a16a3)[_0x11d859(0x1b8)](([_0x345bb3,_0x2dd1c7])=>{const _0x295ec8=_0x11d859;typeof _0x2dd1c7=='string'&&(_0x2a16a3[_0x345bb3]=_0x2dd1c7[_0x295ec8(0x16a)](/url\(#(.*)\)/,_0x295ec8(0x30a)+_0x5ce5be[_0x295ec8(0x317)]+')'));})),_0x2a16a3;}function ze(_0x85b657,_0x134ae5){const _0x3dca2d=_0xac5304;var _0x30c313;const {defIds:_0x298131}=_0x134ae5;return!_0x298131||_0x298131[_0x3dca2d(0x2d1)]===0x0?_0x85b657:_0x85b657[_0x3dca2d(0xee)]===_0x3dca2d(0x1e2)&&((_0x30c313=_0x85b657['children'])!=null&&_0x30c313[_0x3dca2d(0x2d1)])?{..._0x85b657,'children':_0x85b657[_0x3dca2d(0x15c)][_0x3dca2d(0x182)](_0x18649a=>typeof _0x18649a[_0x3dca2d(0x312)]['id']==_0x3dca2d(0x2c2)&&_0x298131&&_0x298131[_0x3dca2d(0x13d)](_0x18649a[_0x3dca2d(0x312)]['id'])?{..._0x18649a,'attrs':{..._0x18649a[_0x3dca2d(0x312)],'id':_0x18649a['attrs']['id']+_0x134ae5[_0x3dca2d(0x317)]}}:_0x18649a)}:_0x85b657;}function Je(){const _0x4fab1c=_0xac5304;return Math[_0x4fab1c(0x169)]()[_0x4fab1c(0xc9)](0x24)[_0x4fab1c(0x310)](0x2,0x8);}Ce['displayName']='UniverIcon';const Ze={'tag':_0xac5304(0x1cd),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xac5304(0x1e6),'viewBox':_0xac5304(0x22a),'width':_0xac5304(0x250),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xac5304(0x243)},'children':[{'tag':_0xac5304(0x346),'attrs':{'stroke':_0xac5304(0x1bb),'d':_0xac5304(0x17c),'strokeLinecap':'round','strokeLinejoin':_0xac5304(0x2f0),'strokeWidth':1.2}}]},{'tag':_0xac5304(0x1e2),'attrs':{},'children':[{'tag':_0xac5304(0x2d3),'attrs':{'id':_0xac5304(0x2b5)},'children':[{'tag':_0xac5304(0x346),'attrs':{'fill':_0xac5304(0x2e5),'d':_0xac5304(0x185)}}]}]}],'defIds':[_0xac5304(0x2b5)]},ye=A['forwardRef'](function(_0x355eac,_0x2ed4c8){const _0x1d4c0e=_0xac5304;return A[_0x1d4c0e(0x1c3)](Ce,Object[_0x1d4c0e(0x33f)]({},_0x355eac,{'id':_0x1d4c0e(0x136),'ref':_0x2ed4c8,'icon':Ze}));});ye[_0xac5304(0x19b)]='OffLineIcon';const Qe={'tag':'svg','attrs':{'xmlns':_0xac5304(0x358),'fill':_0xac5304(0x1e6),'viewBox':_0xac5304(0x235),'width':_0xac5304(0x250),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xac5304(0x1d4)},'children':[{'tag':_0xac5304(0x346),'attrs':{'stroke':_0xac5304(0x1bb),'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':_0xac5304(0x2f0),'strokeLinejoin':_0xac5304(0x2f0),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xac5304(0x2d3),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0xac5304(0x346),'attrs':{'fill':_0xac5304(0x2e5),'d':_0xac5304(0x185),'transform':_0xac5304(0x216)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=A[_0xac5304(0x151)](function(_0x32b852,_0x4a2dd5){const _0x82676d=_0xac5304;return A[_0x82676d(0x1c3)](Ce,Object['assign']({},_0x32b852,{'id':_0x82676d(0x29d),'ref':_0x4a2dd5,'icon':Qe}));});$e[_0xac5304(0x19b)]='OnLineIcon';function et(_0x2355a0){const _0x58e0f1=_0xac5304;switch(_0x2355a0){case u[_0x58e0f1(0x362)][_0x58e0f1(0x13c)]:return'collabStatus.offline';case u[_0x58e0f1(0x362)][_0x58e0f1(0xcc)]:return _0x58e0f1(0x23c);case u[_0x58e0f1(0x362)]['FETCH_MISS']:return _0x58e0f1(0x176);case u[_0x58e0f1(0x362)]['NOT_COLLAB']:return'collabStatus.notCollab';case u[_0x58e0f1(0x362)][_0x58e0f1(0x197)]:case u[_0x58e0f1(0x362)][_0x58e0f1(0x13a)]:return _0x58e0f1(0x165);case u['CollaborationStatus']['SYNCED']:case u[_0x58e0f1(0x362)][_0x58e0f1(0x186)]:return'collabStatus.synced';}}function tt(_0x1ed004){const _0x477a05=_0xac5304,{status$:_0x48d1cd}=_0x1ed004,_0x40d7aa=O[_0x477a05(0xf7)](_0x48d1cd,u[_0x477a05(0x362)]['NOT_COLLAB']),_0x314eba=O[_0x477a05(0x339)](a[_0x477a05(0x306)]),_0x415060=O[_0x477a05(0x339)](u[_0x477a05(0xb4)]),_0x1e0669=_0x40d7aa!==u[_0x477a05(0x362)][_0x477a05(0x13c)],_0x38961e=_0x314eba['t'](et(_0x40d7aa)),_0x195d1f=_0x1e0669?M[_0x477a05(0x23f)]($e,{}):M[_0x477a05(0x23f)](ye,{}),_0x1ab890=A[_0x477a05(0x314)](()=>{const _0x5e520b=_0x477a05;_0x1e0669||_0x415060[_0x5e520b(0x33a)]();},[_0x1e0669,_0x415060]);function _0x102a89(){const _0x47b95e=_0x477a05;return M['jsxs'](_0x47b95e(0x297),{'className':_0x47b95e(0x20c),'onClick':_0x1ab890,'children':[M[_0x47b95e(0x23f)]('div',{'className':p[_0x47b95e(0x107)](_0x47b95e(0x15d),{'univer-text-green-500':_0x1e0669,'univer-text-red-500':!_0x1e0669}),'children':_0x195d1f}),M[_0x47b95e(0x23f)](_0x47b95e(0x297),{'className':_0x47b95e(0x27c),'children':_0x38961e})]});}return _0x1e0669?_0x102a89():M[_0x477a05(0x23f)](p[_0x477a05(0x2e6)],{'title':_0x314eba['t']('collab-client.tooltip.reconnect'),'children':_0x102a89()});}var st=Object['getOwnPropertyDescriptor'],it=(_0x231bb6,_0x3ad362,_0x1b6962,_0xc856fb)=>{for(var _0x4277e3=_0xc856fb>0x1?void 0x0:_0xc856fb?st(_0x3ad362,_0x1b6962):_0x3ad362,_0x1d1776=_0x231bb6['length']-0x1,_0x180bea;_0x1d1776>=0x0;_0x1d1776--)(_0x180bea=_0x231bb6[_0x1d1776])&&(_0x4277e3=_0x180bea(_0x4277e3)||_0x4277e3);return _0x4277e3;},K=(_0x908b4f,_0x3c751a)=>(_0x5d21c8,_0xb9da95)=>_0x3c751a(_0x5d21c8,_0xb9da95,_0x908b4f);exports[_0xac5304(0x292)]=class extends a['Disposable']{constructor(_0x52f4f1,_0x12eab6,_0x52f999,_0x39b0d8){const _0x161ab0=_0xac5304;super(),_(this,'_status$',new I[(_0x161ab0(0x1ac))](u[_0x161ab0(0x362)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x52f4f1,this[_0x161ab0(0x372)]=_0x12eab6,this[_0x161ab0(0x20a)]=_0x52f999,this[_0x161ab0(0x141)]=_0x39b0d8,this[_0x161ab0(0x183)](),this[_0x161ab0(0x207)]());}['_initStatusListener'](){const _0x58b226=_0xac5304;this[_0x58b226(0x35a)](this['_univerInstanceService'][_0x58b226(0x281)]['pipe'](I[_0x58b226(0x1f7)](()=>{const _0x54132e=_0x58b226,_0x4cf818=this[_0x54132e(0x21f)][_0x54132e(0x1e9)]();return _0x4cf818?this[_0x54132e(0x20a)][_0x54132e(0x30d)](_0x4cf818[_0x54132e(0x209)]()):I['of'](null);}),I[_0x58b226(0x1f7)](_0x3c11f3=>_0x3c11f3?_0x3c11f3['status$']:I['of'](u[_0x58b226(0x362)]['NOT_COLLAB'])))[_0x58b226(0x257)](_0x5e2a92=>{const _0x19397f=_0x58b226;this[_0x19397f(0x344)][_0x19397f(0x2cb)](_0x5e2a92);}));}['_initStatusComponent'](){const _0x25f7cf=_0xac5304;this[_0x25f7cf(0x35a)](this['_uiPartsService'][_0x25f7cf(0x2cd)](O['BuiltInUIPart']['HEADER_MENU'],()=>O[_0x25f7cf(0x293)](nt({'status$':this[_0x25f7cf(0x344)][_0x25f7cf(0x276)]()}),this[_0x25f7cf(0x372)])));}},exports['DesktopCollaborationStatusDisplayController']=it([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0xac5304(0x239)](a['Injector'])),K(0x2,a['Inject'](u[_0xac5304(0x274)])),K(0x3,O[_0xac5304(0xb7)])],exports[_0xac5304(0x292)]);function nt(_0x49fe6d){const {status$:_0x9ab307}=_0x49fe6d;return function(){const _0xb6f85a=_0x3138;return M[_0xb6f85a(0x23f)](tt,{'status$':_0x9ab307});};}const Te=a[_0xac5304(0x112)](_0xac5304(0xf4));var rt=Object[_0xac5304(0xec)],ot=(_0x5c0d71,_0x4a949a,_0x519cec,_0x381a0a)=>{const _0x887e6b=_0xac5304;for(var _0x81256=_0x381a0a>0x1?void 0x0:_0x381a0a?rt(_0x4a949a,_0x519cec):_0x4a949a,_0x591f17=_0x5c0d71[_0x887e6b(0x2d1)]-0x1,_0x1302cb;_0x591f17>=0x0;_0x591f17--)(_0x1302cb=_0x5c0d71[_0x591f17])&&(_0x81256=_0x1302cb(_0x81256)||_0x81256);return _0x81256;},j=(_0x54cb8d,_0x17c4a5)=>(_0x8061fb,_0x3b594a)=>_0x17c4a5(_0x8061fb,_0x3b594a,_0x54cb8d);exports[_0xac5304(0x101)]=class extends a[_0xac5304(0x279)]{constructor(_0xfc0189,_0x219833,_0x5210e2,_0x367dbf,_0x58119a){const _0x3cbecd=_0xac5304;super(),this[_0x3cbecd(0x194)]=_0xfc0189,this[_0x3cbecd(0x275)]=_0x219833,this['_commandService']=_0x5210e2,this[_0x3cbecd(0x23d)]=_0x367dbf,_0x58119a?_0x58119a==null||_0x58119a[_0x3cbecd(0x1f0)]()[_0x3cbecd(0x246)](()=>this[_0x3cbecd(0x1fd)]()):(this['_logService']['debug'](_0x3cbecd(0x1a6),_0x3cbecd(0xf6)),this['_init']());}async[_0xac5304(0x1fd)](){const _0x10a36f=_0xac5304,_0x52b1b9=this[_0x10a36f(0x194)][_0x10a36f(0x1dc)](_0x10a36f(0x2af)),_0x5b5c2d=this[_0x10a36f(0x194)][_0x10a36f(0x1dc)](_0x10a36f(0x15a)),_0x2778a0=this[_0x10a36f(0x194)][_0x10a36f(0x1dc)](_0x10a36f(0x1e1));if(!_0x52b1b9||!_0x5b5c2d){this[_0x10a36f(0x275)][_0x10a36f(0x2a5)]('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x29a670=await this[_0x10a36f(0x23d)][_0x10a36f(0x287)](_0x52b1b9,Number(_0x5b5c2d),_0x2778a0);_0x29a670&&_0x29a670 instanceof a[_0x10a36f(0xc1)]&&this['_setupSubUnitSync'](_0x29a670);}async[_0xac5304(0x10a)](_0x268be3){const _0x20a941=_0xac5304;await this[_0x20a941(0x177)](_0x268be3),_0x268be3[_0x20a941(0x1fe)][_0x20a941(0x377)](I[_0x20a941(0x212)](this['dispose$']))[_0x20a941(0x257)](_0x78cbd0=>{_0x78cbd0&&this['_updateURLWithCurrentState'](_0x78cbd0);}),this[_0x20a941(0x194)]['urlChange$'][_0x20a941(0x377)](I['takeUntil'](this[_0x20a941(0x1d2)]))[_0x20a941(0x257)](()=>this[_0x20a941(0x177)](_0x268be3));}['_updateURLWithCurrentState'](_0x45444d,_0x516b28=!0x1){const _0x31d378=_0xac5304,_0x8695c6=this['_urlService'][_0x31d378(0x1dc)](_0x31d378(0x1e1));_0x45444d[_0x31d378(0x319)]()!==_0x8695c6&&this['_urlService'][_0x31d378(0x18f)]('subunit',_0x45444d['getSheetId'](),_0x516b28);}async['_updateSubUnitFromURLParams'](_0x3e9b3b){const _0x644a3e=_0xac5304;var _0x12e932;const _0x151365=this[_0x644a3e(0x194)][_0x644a3e(0x1dc)](_0x644a3e(0x1e1));if(!_0x151365||!_0x3e9b3b[_0x644a3e(0x208)](_0x151365)){const _0x38d83e=_0x3e9b3b[_0x644a3e(0x12a)]()[0x0],_0x32430d=_0x3e9b3b['getSheetBySheetId'](_0x38d83e);if(!_0x32430d)return;this['_updateURLWithCurrentState'](_0x32430d,!0x0),await this['_commandService'][_0x644a3e(0xf2)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x3e9b3b[_0x644a3e(0x209)](),'subUnitId':_0x38d83e});return;}((_0x12e932=_0x3e9b3b[_0x644a3e(0x29a)]())==null?void 0x0:_0x12e932[_0x644a3e(0x319)]())!==_0x151365&&await this['_commandService']['executeCommand'](g[_0x644a3e(0x1c7)]['id'],{'unitId':_0x3e9b3b[_0x644a3e(0x209)](),'subUnitId':_0x151365});}},exports[_0xac5304(0x101)]=ot([j(0x0,Te),j(0x1,a[_0xac5304(0x111)]),j(0x2,a[_0xac5304(0x2bb)]),j(0x3,a[_0xac5304(0x239)](u[_0xac5304(0x31b)])),j(0x4,a['Optional'](Xe['IRemoteInstanceService']))],exports[_0xac5304(0x101)]);var at=Object[_0xac5304(0xec)],ct=(_0xaf1a3,_0x5af9f0,_0x86055b,_0x29e5fa)=>{const _0x4d756a=_0xac5304;for(var _0x44601b=_0x29e5fa>0x1?void 0x0:_0x29e5fa?at(_0x5af9f0,_0x86055b):_0x5af9f0,_0x178eaa=_0xaf1a3[_0x4d756a(0x2d1)]-0x1,_0x1cdadb;_0x178eaa>=0x0;_0x178eaa--)(_0x1cdadb=_0xaf1a3[_0x178eaa])&&(_0x44601b=_0x1cdadb(_0x44601b)||_0x44601b);return _0x44601b;},Re=(_0x104267,_0x12fc4e)=>(_0x4d6067,_0x33efd9)=>_0x12fc4e(_0x4d6067,_0x33efd9,_0x104267);let de=class extends a['RxDisposable']{constructor(_0x13eb19,_0x45edc2){const _0x2d8d05=_0xac5304;super(),this[_0x2d8d05(0x13b)]=_0x13eb19,this['_imageIoService']=_0x45edc2,this[_0x2d8d05(0x1fd)]();}[_0xac5304(0x1fd)](){const _0xe670da=_0xac5304,_0x595b28=this;this[_0xe670da(0x35a)](this['_docClipboardService'][_0xe670da(0x278)]({'onBeforePasteImage':async _0x28d538=>{const _0x500bfd=_0xe670da,_0x1bd2b1=await _0x595b28['_imageIoService'][_0x500bfd(0x2da)](_0x28d538);return _0x1bd2b1?{'source':_0x1bd2b1['source'],'imageSourceType':_0x1bd2b1[_0x500bfd(0x236)]}:null;}}));}};de=ct([Re(0x0,T[_0xac5304(0x2e7)]),Re(0x1,Ke['IImageIoService'])],de);const be=[_0xac5304(0x237),_0xac5304(0x2ba),_0xac5304(0xed),_0xac5304(0xe7),_0xac5304(0x163),'yellow.400'];class pe extends a['Disposable']{constructor(){const _0x2e4795=_0xac5304;super(...arguments),_(this,_0x2e4795(0x16d),new Map()),_(this,_0x2e4795(0x2f6),0x0);}[_0xac5304(0x173)](_0x2e4bf2){const _0x4335ee=_0xac5304;if(this[_0x4335ee(0x16d)]['has'](_0x2e4bf2))return this['_assignedColors'][_0x4335ee(0x248)](_0x2e4bf2);const _0x3c5d8b=be[this[_0x4335ee(0x2f6)]];return this[_0x4335ee(0x2f6)]=(this[_0x4335ee(0x2f6)]+0x1)%be[_0x4335ee(0x2d1)],this[_0x4335ee(0x16d)][_0x4335ee(0x1d6)](_0x2e4bf2,_0x3c5d8b),_0x3c5d8b;}}function xe(_0x40083a){const _0xc116ec=_0xac5304;let _0x50599e='';for(const _0x5f3133 of _0x40083a){const {startOffset:_0x35862a,endOffset:_0x3c5527,isActive:_0x2a1bd7,rangeType:_0x39c18c,segmentId:_0x5b0df5,segmentPage:_0x24d692}=_0x5f3133;_0x50599e[_0xc116ec(0x2d1)]&&(_0x50599e+=','),_0x50599e+=_0x35862a+':'+_0x3c5527+':'+(_0x2a1bd7?'1':'0')+':'+_0x39c18c+':'+_0x5b0df5+':'+_0x24d692;}return _0x50599e;}function lt(_0x3ca877){const _0x4b79ff=_0xac5304,_0x19850a=_0x3ca877[_0x4b79ff(0x242)](','),_0x1d369f=[];for(const _0x173d37 of _0x19850a){const [_0x2f4034,_0x51ccba,_0x3cb981,_0x2269de,_0x33680b,_0x39e646]=_0x173d37[_0x4b79ff(0x242)](':');_0x1d369f[_0x4b79ff(0x1b3)]({'startOffset':Number(_0x2f4034),'endOffset':Number(_0x51ccba),'collapsed':_0x2f4034===_0x51ccba,'isActive':_0x3cb981==='1','rangeType':_0x2269de===a['DOC_RANGE_TYPE']['TEXT']?a[_0x4b79ff(0xf3)]['TEXT']:a['DOC_RANGE_TYPE'][_0x4b79ff(0x22f)],'segmentId':typeof _0x33680b==_0x4b79ff(0x2c2)?String(_0x33680b):'','segmentPage':Number(_0x39e646!=null?_0x39e646:-0x1)});}return _0x1d369f['some'](_0x4d235d=>_0x4d235d[_0x4b79ff(0x1ff)])||(_0x1d369f[0x0][_0x4b79ff(0x1ff)]=!0x0),_0x1d369f;}class Oe extends a[_0xac5304(0x279)]{constructor(){const _0x52eda8=_0xac5304;super(...arguments),_(this,'_collabCursorState$',new I['BehaviorSubject'](null)),_(this,_0x52eda8(0x286),this[_0x52eda8(0x2a9)]['asObservable']());}[_0xac5304(0x330)](_0x5c407f){const _0x38b745=_0xac5304,{unitID:_0x2133b8,memberID:_0x34c26b,textRanges:_0x23fb7a}=_0x5c407f,_0x1a0517=xe(_0x23fb7a);if(_0x1a0517==='')return;const _0x305048={'unitID':_0x2133b8,'memberID':_0x34c26b,'selection':_0x1a0517};this[_0x38b745(0x2a9)][_0x38b745(0x2cb)](_0x305048);}}var _t=Object[_0xac5304(0xec)],ht=(_0x2e0c0c,_0x6a2f2,_0x331ba9,_0x517389)=>{const _0x9e6d9c=_0xac5304;for(var _0x234161=_0x517389>0x1?void 0x0:_0x517389?_t(_0x6a2f2,_0x331ba9):_0x6a2f2,_0x1fd419=_0x2e0c0c[_0x9e6d9c(0x2d1)]-0x1,_0x4236f0;_0x1fd419>=0x0;_0x1fd419--)(_0x4236f0=_0x2e0c0c[_0x1fd419])&&(_0x234161=_0x4236f0(_0x234161)||_0x234161);return _0x234161;},U=(_0x5cf81d,_0x5d1807)=>(_0x2e61a2,_0xf0d56b)=>_0x5d1807(_0x2e61a2,_0xf0d56b,_0x5cf81d);const ut=0x12c,It=0x64;let fe=class extends a[_0xac5304(0x279)]{constructor(_0x143dc9,_0x1ebc11,_0x1b12e8,_0x3d9e7b,_0x30e2b2,_0x5af34b,_0x7f5d69,_0x2391b7,_0x4ca00c){const _0x405554=_0xac5304;super(),_(this,_0x405554(0xbc),!0x1),_(this,_0x405554(0x1fd),!0x1),_(this,_0x405554(0x10f),new I[(_0x405554(0x1ac))](new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x405554(0x276)]()),_(this,_0x405554(0x116),new I[(_0x405554(0x1ac))]([])),_(this,_0x405554(0xca),this[_0x405554(0x116)][_0x405554(0x377)](I[_0x405554(0x2d7)](ut))),_(this,'_updateLocalCursor',a[_0x405554(0x25d)](_0xe5e006=>{const _0x1d6adb=_0x405554,_0x1f0eda={'eventID':v['CollaborationEvent'][_0x1d6adb(0x360)],'data':{'unitID':this[_0x1d6adb(0x2d8)],'memberID':this['_session'][_0x1d6adb(0x26c)](),'selection':xe(_0xe5e006)}};this[_0x1d6adb(0x261)][_0x1d6adb(0x2ec)](_0x1f0eda,this['unitID']);},It)),(this[_0x405554(0x2d8)]=_0x143dc9,this['_session']=_0x1ebc11,this[_0x405554(0x372)]=_0x1b12e8,this[_0x405554(0x35b)]=_0x3d9e7b,this['_memberService']=_0x30e2b2,this[_0x405554(0x13e)]=_0x5af34b,this[_0x405554(0x213)]=_0x7f5d69,this[_0x405554(0x21f)]=_0x2391b7,this['_commandService']=_0x4ca00c);}get[_0xac5304(0x351)](){const _0x157313=_0xac5304;return this[_0x157313(0x10f)]['getValue']();}get[_0xac5304(0x210)](){const _0x16cae5=_0xac5304;return this[_0x16cae5(0x116)][_0x16cae5(0x34d)]();}[_0xac5304(0xe1)](){const _0x48e731=_0xac5304;super['dispose'](),this['_cursorInfo$'][_0x48e731(0x2cb)](new Map()),this[_0x48e731(0x10f)]['complete'](),this[_0x48e731(0x116)][_0x48e731(0x2cb)]([]),this['_roomMembers$']['complete']();}[_0xac5304(0xd0)](){const _0x269a39=_0xac5304;this['_init']||(this[_0x269a39(0x1fd)]=!0x0,this['_session']['sessionStatus$'][_0x269a39(0x377)](I[_0x269a39(0x212)](this['dispose$']))['subscribe'](_0x5b1dda=>{const _0x3148ed=_0x269a39;_0x5b1dda===u[_0x3148ed(0x28d)][_0x3148ed(0x342)]?this['_toggleOnline']():this[_0x3148ed(0x14b)]();}),this[_0x269a39(0x261)][_0x269a39(0x2f2)]['pipe'](I[_0x269a39(0x212)](this['dispose$']))[_0x269a39(0x257)](_0xe51cfc=>{const _0x4bb083=_0x269a39,_0x35c698=_0xe51cfc['eventID'];_0x35c698===v[_0x4bb083(0x327)][_0x4bb083(0x360)]&&this[_0x4bb083(0x2e1)](_0xe51cfc),_0x35c698===v[_0x4bb083(0x327)]['USERS_LEAVE']&&this[_0x4bb083(0x24b)](_0xe51cfc);}),this[_0x269a39(0x35a)](this[_0x269a39(0x1d7)][_0x269a39(0x2c3)](_0x337da8=>{const _0x419510=_0x269a39,_0x55280b=_0x337da8[_0x419510(0x154)];_0x55280b!=null&&this[_0x419510(0xbc)]&&_0x337da8['id']===W[_0x419510(0x255)]['id']&&_0x55280b[_0x419510(0x2cc)]===this[_0x419510(0x2d8)]&&_0x55280b['isEditing']===!0x1&&_0x55280b[_0x419510(0x174)][_0x419510(0x2d1)]>0x0&&this[_0x419510(0x1ab)](_0x55280b[_0x419510(0x174)]);})),this[_0x269a39(0x13e)][_0x269a39(0x286)][_0x269a39(0x377)](I[_0x269a39(0x212)](this[_0x269a39(0x1d2)]))[_0x269a39(0x257)](_0x11927d=>{const _0x33d762=_0x269a39;if((_0x11927d==null?void 0x0:_0x11927d[_0x33d762(0x2d8)])!==this[_0x33d762(0x2d8)])return;const _0x4e8a4e={'eventID':v[_0x33d762(0x327)][_0x33d762(0x360)],'data':_0x11927d};this[_0x33d762(0x2e1)](_0x4e8a4e);}),this['disposeWithMe'](this[_0x269a39(0x1d7)]['onCommandExecuted'](_0x44b9c6=>{const _0x38eb2c=_0x269a39;if(_0x44b9c6[_0x38eb2c(0x154)]==null)return;const _0x21da6e=_0x44b9c6[_0x38eb2c(0x154)];if(_0x44b9c6['id']!==W[_0x38eb2c(0x192)]['id']||_0x21da6e[_0x38eb2c(0x2cc)]!==this[_0x38eb2c(0x2d8)])return;const _0x1c507b={'id':_0x38eb2c(0x19e),'params':_0x21da6e},_0x1d087e=this[_0x38eb2c(0x351)];for(const [_0x510b7,_0x5d5bcd]of _0x1d087e){const _0x2e753f={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x38eb2c(0x2d8)],'actions':null,'textRanges':_0x5d5bcd[_0x38eb2c(0x174)]}},_0x1c5e88=this['_transformService']['transformMutation'](_0x1c507b,_0x2e753f,!0x1);if(v[_0x38eb2c(0x283)](_0x1c5e88))throw _0x1c5e88[_0x38eb2c(0x147)];_0x1d087e['set'](_0x510b7,{..._0x5d5bcd,'ranges':_0x1c5e88[_0x38eb2c(0x12f)][_0x38eb2c(0x154)][_0x38eb2c(0x1ad)]});}queueMicrotask(()=>{const _0x45a938=_0x38eb2c;this[_0x45a938(0x10f)][_0x45a938(0x2cb)](_0x1d087e);});})));}[_0xac5304(0x2e1)](_0xf58457){const _0xd0e997=_0xac5304;var _0x312bfc,_0x5510b7;const {memberID:_0x138967,selection:_0x141619}=_0xf58457['data'],_0x566475=lt(_0x141619),_0x5545ee=(_0x5510b7=(_0x312bfc=this['_memberService'][_0xd0e997(0x19f)](this[_0xd0e997(0x2d8)],_0x138967))==null?void 0x0:_0x312bfc['name'])!=null?_0x5510b7:_0xd0e997(0xef),_0x596b1d={'color':this['_colorAssignService'][_0xd0e997(0x173)](_0x138967),'name':_0x5545ee,'ranges':_0x566475},_0x35eeef=this[_0xd0e997(0x351)];_0x35eeef['set'](_0x138967,_0x596b1d),this[_0xd0e997(0x10f)][_0xd0e997(0x2cb)](_0x35eeef);}[_0xac5304(0x24b)](_0x3eed99){const _0x3e9aca=_0xac5304,{memberID:_0x3394eb}=_0x3eed99[_0x3e9aca(0xe5)],_0x3cc854=this[_0x3e9aca(0x351)];_0x3cc854[_0x3e9aca(0x328)](_0x3394eb),this[_0x3e9aca(0x10f)][_0x3e9aca(0x2cb)](_0x3cc854);}['_toggleOnline'](){const _0x40a7a6=_0xac5304;var _0x414d4a;if(this[_0x40a7a6(0xbc)]=!0x0,((_0x414d4a=this[_0x40a7a6(0x21f)][_0x40a7a6(0x1e9)]())==null?void 0x0:_0x414d4a[_0x40a7a6(0x209)]())!==this[_0x40a7a6(0x2d8)])return;const _0x30d641=this[_0x40a7a6(0x372)][_0x40a7a6(0x248)](W['DocSelectionManagerService'])[_0x40a7a6(0x298)]();Array['isArray'](_0x30d641)&&_0x30d641[_0x40a7a6(0x2d1)]>0x0&&this[_0x40a7a6(0x1ab)](_0x30d641);}[_0xac5304(0x14b)](){const _0x1b595f=_0xac5304;this[_0x1b595f(0xbc)]=!0x1;}};fe=ht([U(0x2,a[_0xac5304(0x239)](a[_0xac5304(0x334)])),U(0x3,a[_0xac5304(0x239)](pe)),U(0x4,a['Inject'](u['MemberService'])),U(0x5,a[_0xac5304(0x239)](Oe)),U(0x6,v[_0xac5304(0x1f2)]),U(0x7,a[_0xac5304(0x1d1)]),U(0x8,a['ICommandService'])],fe);var St=Object[_0xac5304(0xec)],dt=(_0x5626d1,_0x596f76,_0x269c4a,_0x258da8)=>{const _0x50833e=_0xac5304;for(var _0x26bc47=_0x258da8>0x1?void 0x0:_0x258da8?St(_0x596f76,_0x269c4a):_0x596f76,_0x5ea777=_0x5626d1[_0x50833e(0x2d1)]-0x1,_0x3f15ed;_0x5ea777>=0x0;_0x5ea777--)(_0x3f15ed=_0x5626d1[_0x5ea777])&&(_0x26bc47=_0x3f15ed(_0x26bc47)||_0x26bc47);return _0x26bc47;},w=(_0x5add18,_0x260a7f)=>(_0x34990c,_0x156af1)=>_0x260a7f(_0x34990c,_0x156af1,_0x5add18);const ft=0x12c,mt=0x64,gt=()=>{let _0x53c7f9=[],_0x2e1ba1=!0x1;return _0x5e6469=>{const _0x4fe99f=_0x3138;_0x53c7f9[_0x4fe99f(0x1b3)](_0x5e6469),_0x2e1ba1||(_0x2e1ba1=!0x0,setTimeout(()=>{_0x53c7f9['forEach'](_0x3fb657=>_0x3fb657()),_0x53c7f9=[],_0x2e1ba1=!0x1;}));};};let me=class extends a[_0xac5304(0x279)]{constructor(_0x483939,_0x9b0cb3,_0x3a7c93,_0x306b1,_0xa4c183,_0x4819cd,_0x2e6b0f,_0x382df4){const _0x5ce54b=_0xac5304;super(),_(this,_0x5ce54b(0xbc),!0x1),_(this,_0x5ce54b(0x1fd),!0x1),_(this,_0x5ce54b(0x10f),new I['BehaviorSubject'](new Map())),_(this,_0x5ce54b(0x2fc),this[_0x5ce54b(0x10f)][_0x5ce54b(0x276)]()),_(this,_0x5ce54b(0x116),new I[(_0x5ce54b(0x1ac))]([])),_(this,_0x5ce54b(0xca),this[_0x5ce54b(0x116)][_0x5ce54b(0x377)](I['debounceTime'](ft))),_(this,_0x5ce54b(0x1ab),a[_0x5ce54b(0x25d)]((_0x2bc643,_0x3f1b9d)=>{const _0x56a06b=_0x5ce54b,_0xd880ee={'eventID':v[_0x56a06b(0x327)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x56a06b(0x261)][_0x56a06b(0x26c)](),'selection':x[_0x56a06b(0x252)](_0x2bc643,_0x3f1b9d[_0x56a06b(0xd8)])}};this[_0x56a06b(0x261)][_0x56a06b(0x2ec)](_0xd880ee,this[_0x56a06b(0x2d8)]);},mt)),(this['unitID']=_0x483939,this['_session']=_0x9b0cb3,this[_0x5ce54b(0x372)]=_0x3a7c93,this[_0x5ce54b(0x35b)]=_0x306b1,this[_0x5ce54b(0x28e)]=_0xa4c183,this[_0x5ce54b(0x21f)]=_0x4819cd,this[_0x5ce54b(0x1d7)]=_0x2e6b0f,this['_refRangeService']=_0x382df4);}get[_0xac5304(0x351)](){const _0x18b14c=_0xac5304;return this[_0x18b14c(0x10f)][_0x18b14c(0x34d)]();}get[_0xac5304(0x210)](){const _0x4204c6=_0xac5304;return this[_0x4204c6(0x116)][_0x4204c6(0x34d)]();}[_0xac5304(0xe1)](){const _0x4e5598=_0xac5304;super['dispose'](),this[_0x4e5598(0x10f)]['next'](new Map()),this[_0x4e5598(0x10f)][_0x4e5598(0x304)](),this['_roomMembers$'][_0x4e5598(0x2cb)]([]),this['_roomMembers$'][_0x4e5598(0x304)]();}['init'](){const _0x1d9e79=_0xac5304;this[_0x1d9e79(0x1fd)]||(this[_0x1d9e79(0x1fd)]=!0x0,this[_0x1d9e79(0x261)][_0x1d9e79(0x1b6)][_0x1d9e79(0x377)](I['takeUntil'](this['dispose$']))[_0x1d9e79(0x257)](_0x4098ba=>{const _0x1fcce1=_0x1d9e79;_0x4098ba===u[_0x1fcce1(0x28d)][_0x1fcce1(0x342)]?this[_0x1fcce1(0x11f)]():this[_0x1fcce1(0x14b)]();}),this['_session'][_0x1d9e79(0x2f2)][_0x1d9e79(0x377)](I[_0x1d9e79(0x212)](this[_0x1d9e79(0x1d2)]))[_0x1d9e79(0x257)](_0x5a2187=>{const _0xc5085a=_0x1d9e79,_0xab3360=_0x5a2187[_0xc5085a(0x104)];_0xab3360===v[_0xc5085a(0x327)]['UPDATE_CURSOR']&&this[_0xc5085a(0x2e1)](_0x5a2187),_0xab3360===v[_0xc5085a(0x327)][_0xc5085a(0x247)]&&this[_0xc5085a(0x24b)](_0x5a2187);}),this[_0x1d9e79(0x138)](),this['disposeWithMe'](this[_0x1d9e79(0x1d7)][_0x1d9e79(0x2c3)](_0x477cf5=>{const _0x2b1535=_0x1d9e79;if(this[_0x2b1535(0xbc)]&&_0x477cf5['id']===g['SetSelectionsOperation']['id']&&_0x477cf5[_0x2b1535(0x154)][_0x2b1535(0x2cc)]===this[_0x2b1535(0x2d8)]){const _0x5de01c=_0x477cf5[_0x2b1535(0x154)];this[_0x2b1535(0x1ab)](_0x5de01c['subUnitId'],_0x5de01c[_0x2b1535(0x2e4)][0x0]);}})));}[_0xac5304(0x2e1)](_0x1340ac){const _0x119e90=_0xac5304;var _0x51f33c,_0x4f95fc;const {memberID:_0x19e5cc,selection:_0x291853}=_0x1340ac['data'],{sheetName:_0x1ac11f,range:_0x385601}=x[_0x119e90(0x1a0)](_0x291853),_0x282a9c={'name':(_0x4f95fc=(_0x51f33c=this[_0x119e90(0x28e)][_0x119e90(0x19f)](this['unitID'],_0x19e5cc))==null?void 0x0:_0x51f33c[_0x119e90(0x2eb)])!=null?_0x4f95fc:_0x119e90(0xef),'range':this[_0x119e90(0x139)](_0x1ac11f,_0x385601),'sheetID':_0x1ac11f,'color':this[_0x119e90(0x35b)]['assignAColorForMemberID'](_0x19e5cc),'selection':_0x291853},_0x36a1b0=this['cursorInfo'];_0x36a1b0[_0x119e90(0x1d6)](_0x19e5cc,_0x282a9c),this[_0x119e90(0x10f)][_0x119e90(0x2cb)](_0x36a1b0);}[_0xac5304(0x24b)](_0x46f0a6){const _0x4a89b7=_0xac5304,{memberID:_0x3b3608}=_0x46f0a6[_0x4a89b7(0xe5)],_0x45e2d6=this[_0x4a89b7(0x351)];_0x45e2d6[_0x4a89b7(0x328)](_0x3b3608),this[_0x4a89b7(0x10f)][_0x4a89b7(0x2cb)](_0x45e2d6);}[_0xac5304(0x139)](_0x21a705,_0x317a8f){const _0x388639=_0xac5304;var _0x5d1d36,_0x31edff;const _0x41c3b4=(_0x31edff=(_0x5d1d36=this['_univerInstanceService'][_0x388639(0x220)](this['unitID']))==null?void 0x0:_0x5d1d36['getSheetBySheetId'](_0x21a705))==null?void 0x0:_0x31edff['getMergeData']();return(_0x41c3b4==null?void 0x0:_0x41c3b4[_0x388639(0x2e0)](_0x449141=>a['Rectangle'][_0x388639(0x17d)](_0x449141,_0x317a8f)))||_0x317a8f;}[_0xac5304(0x138)](){const _0x39e985=_0xac5304,_0x4a7d8d=new a[(_0x39e985(0x259))](),_0x189267=gt(),_0xf15052=()=>{const _0x467bd4=_0x39e985;_0x4a7d8d[_0x467bd4(0xe1)]();const _0x16e32f=(_0x54bff8,_0x50fe81,_0x5a1916,_0x4ad972)=>{const _0x958bbd=_0x467bd4;let _0x158979=[];switch(_0x54bff8['id']){case g[_0x958bbd(0x277)][_0x958bbd(0x348)]:{_0x158979=g[_0x958bbd(0x196)](_0x54bff8,_0x4ad972);break;}case g[_0x958bbd(0x277)][_0x958bbd(0x1a9)]:{_0x158979=g[_0x958bbd(0xdf)](_0x54bff8,_0x4ad972);break;}case g[_0x958bbd(0x277)][_0x958bbd(0x14f)]:{_0x158979=g[_0x958bbd(0x2a2)](_0x54bff8,_0x4ad972);break;}case g[_0x958bbd(0x277)][_0x958bbd(0x21c)]:{_0x158979=g[_0x958bbd(0xf0)](_0x54bff8,_0x4ad972);break;}case g[_0x958bbd(0x277)][_0x958bbd(0x23b)]:{_0x158979=g[_0x958bbd(0x135)](_0x54bff8,_0x4ad972);break;}case g[_0x958bbd(0x277)][_0x958bbd(0x1b7)]:{_0x158979=g[_0x958bbd(0x1a3)](_0x54bff8,_0x4ad972);break;}case g[_0x958bbd(0x277)][_0x958bbd(0x25e)]:{_0x158979=g['handleMoveRange'](_0x54bff8,_0x4ad972);break;}case g['EffectRefRangId'][_0x958bbd(0x233)]:{_0x158979=g[_0x958bbd(0x249)](_0x54bff8,_0x4ad972);break;}case g[_0x958bbd(0x277)][_0x958bbd(0x1bd)]:{_0x158979=g[_0x958bbd(0x157)](_0x54bff8,_0x4ad972);break;}}const _0x3565a=g[_0x958bbd(0x113)](_0x158979,_0x4ad972),_0x40606d=this[_0x958bbd(0x351)][_0x958bbd(0x248)](_0x50fe81);if(_0x40606d&&_0x3565a){const _0x1b1be9={..._0x40606d,'range':_0x3565a};this[_0x958bbd(0x351)]['set'](_0x50fe81,_0x1b1be9),_0x189267(()=>{const _0x4207a1=_0x958bbd,_0x28059a=this[_0x4207a1(0x359)][_0x4207a1(0x31c)](_0x3565a,_0x2304f4=>(_0x28059a['dispose'](),_0x16e32f(_0x2304f4,_0x50fe81,_0x5a1916,_0x3565a)));_0x4a7d8d[_0x4207a1(0x2ff)](_0x28059a);});}return{'redos':[],'undos':[]};};this[_0x467bd4(0x351)][_0x467bd4(0x1b8)]((_0x1f590a,_0x15ad8d)=>{const _0x6edcb5=_0x467bd4,{range:_0x91f4b1,sheetID:_0x2d095}=_0x1f590a,_0x419d51=this[_0x6edcb5(0x359)][_0x6edcb5(0x31c)](_0x91f4b1,_0x11632c=>(_0x419d51[_0x6edcb5(0xe1)](),_0x16e32f(_0x11632c,_0x15ad8d,_0x2d095,_0x91f4b1)));_0x4a7d8d[_0x6edcb5(0x2ff)](_0x419d51);});};this[_0x39e985(0x35a)](a[_0x39e985(0x219)](this[_0x39e985(0x10f)][_0x39e985(0x257)](()=>{_0xf15052();})));}['_toggleOnline'](){const _0x24c0b0=_0xac5304;var _0x3e44dd,_0x4255fb;if(this[_0x24c0b0(0xbc)]=!0x0,((_0x3e44dd=this[_0x24c0b0(0x21f)][_0x24c0b0(0x1e9)]())==null?void 0x0:_0x3e44dd[_0x24c0b0(0x209)]())!==this[_0x24c0b0(0x2d8)])return;const _0x42f62f=(_0x4255fb=this[_0x24c0b0(0x372)][_0x24c0b0(0x248)](g['SheetsSelectionsService'])[_0x24c0b0(0x305)]())==null?void 0x0:_0x4255fb[0x0],_0x5ed3a9=this[_0x24c0b0(0x21f)][_0x24c0b0(0x33d)](a[_0x24c0b0(0x1ed)][_0x24c0b0(0x146)])[_0x24c0b0(0x29a)]();_0x42f62f&&_0x5ed3a9&&this['_updateLocalCursor'](_0x5ed3a9[_0x24c0b0(0x319)](),_0x42f62f);}['_toggleOffline'](){const _0x4a9ee7=_0xac5304;this[_0x4a9ee7(0xbc)]=!0x1;}};me=dt([w(0x2,a[_0xac5304(0x239)](a[_0xac5304(0x334)])),w(0x3,a[_0xac5304(0x239)](pe)),w(0x4,a[_0xac5304(0x239)](u['MemberService'])),w(0x5,a[_0xac5304(0x1d1)]),w(0x6,a[_0xac5304(0x2bb)]),w(0x7,a[_0xac5304(0x239)](g[_0xac5304(0x30f)]))],me);var vt=Object[_0xac5304(0xec)],Et=(_0x43a09d,_0x5bbd42,_0x107efb,_0xf3bc1a)=>{for(var _0x29f042=_0xf3bc1a>0x1?void 0x0:_0xf3bc1a?vt(_0x5bbd42,_0x107efb):_0x5bbd42,_0x4e555d=_0x43a09d['length']-0x1,_0x39d0bb;_0x4e555d>=0x0;_0x4e555d--)(_0x39d0bb=_0x43a09d[_0x4e555d])&&(_0x29f042=_0x39d0bb(_0x29f042)||_0x29f042);return _0x29f042;},oe=(_0x49a927,_0x2cd2e1)=>(_0xdad462,_0x253e67)=>_0x2cd2e1(_0xdad462,_0x253e67,_0x49a927);let B=class extends a[_0xac5304(0x279)]{constructor(_0x58f58d,_0x497334,_0x5be852){const _0x472c48=_0xac5304;super(),_(this,'_entities',new Map()),_(this,_0x472c48(0x251),new I[(_0x472c48(0x2ed))]()),(this[_0x472c48(0x21f)]=_0x58f58d,this[_0x472c48(0x372)]=_0x497334,this[_0x472c48(0x2a3)]=_0x5be852,this[_0x472c48(0x1fd)]());}[_0xac5304(0xe1)](){const _0x14027c=_0xac5304;super[_0x14027c(0xe1)](),this[_0x14027c(0x251)][_0x14027c(0x304)](),this['_entities'][_0x14027c(0x1b8)](_0x1dcfbd=>_0x1dcfbd[_0x14027c(0xe1)]());}[_0xac5304(0x155)](_0x47cad4){const _0x36121a=_0xac5304;return this[_0x36121a(0x128)][_0x36121a(0x20b)](_0x47cad4)?this[_0x36121a(0x128)]['get'](_0x47cad4)[_0x36121a(0x2fc)]:this[_0x36121a(0x251)][_0x36121a(0x377)](I[_0x36121a(0xc6)](_0x565a0b=>_0x565a0b[_0x36121a(0x2d8)]===_0x47cad4),I[_0x36121a(0x1f7)](_0x252f82=>_0x252f82[_0x36121a(0x2fc)]));}['_init'](){const _0x259633=_0xac5304;this[_0x259633(0x21f)][_0x259633(0x119)](a[_0x259633(0x1ed)][_0x259633(0x146)])['pipe'](I[_0x259633(0x212)](this[_0x259633(0x1d2)]))[_0x259633(0x257)](async _0x573c08=>{const _0x13cdbe=_0x259633,_0x290dfd=_0x573c08[_0x13cdbe(0x209)](),_0x174cef=await this[_0x13cdbe(0x11e)](_0x290dfd);this['_entityInit$']['next'](_0x174cef),this[_0x13cdbe(0x128)][_0x13cdbe(0x1d6)](_0x290dfd,_0x174cef);}),this[_0x259633(0x21f)][_0x259633(0x119)](a['UniverInstanceType'][_0x259633(0x291)])['pipe'](I[_0x259633(0x212)](this[_0x259633(0x1d2)]))['pipe'](I[_0x259633(0xc6)](_0xe63400=>!_0xe63400[_0x259633(0x209)]()[_0x259633(0x269)]('__')))['subscribe'](async _0x3c2f57=>{const _0x47f972=_0x259633,_0x38563e=_0x3c2f57[_0x47f972(0x209)](),_0x3db8b6=await this[_0x47f972(0x19d)](_0x38563e);this[_0x47f972(0x251)][_0x47f972(0x2cb)](_0x3db8b6),this[_0x47f972(0x128)][_0x47f972(0x1d6)](_0x38563e,_0x3db8b6);}),I[_0x259633(0x27a)](this[_0x259633(0x21f)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x259633(0x291)]),this['_univerInstanceService'][_0x259633(0x273)](a[_0x259633(0x1ed)][_0x259633(0x146)]))[_0x259633(0x377)](I['takeUntil'](this[_0x259633(0x1d2)]))['subscribe'](_0xc451b6=>{const _0x1f214f=_0x259633,_0x2f976e=_0xc451b6[_0x1f214f(0x209)](),_0x43f902=this[_0x1f214f(0x128)][_0x1f214f(0x248)](_0x2f976e);_0x43f902&&(_0x43f902['dispose'](),this[_0x1f214f(0x128)][_0x1f214f(0x328)](_0x2f976e));});}async['_startSheetCollabCursor'](_0x18a445){const _0x3bba48=_0xac5304,_0x5480ca=await this[_0x3bba48(0x2a3)]['requireSession'](_0x18a445),_0x1dc1ba=this[_0x3bba48(0x372)][_0x3bba48(0x33e)](me,_0x18a445,_0x5480ca);return _0x1dc1ba['init'](),_0x1dc1ba;}async['_startDocCollabCursor'](_0x23512d){const _0x213d88=_0xac5304,_0x355bd6=await this['_collabSessionService']['requireSession'](_0x23512d),_0x428e54=this['_injector'][_0x213d88(0x33e)](fe,_0x23512d,_0x355bd6);return _0x428e54[_0x213d88(0xd0)](),_0x428e54;}};B=Et([oe(0x0,a[_0xac5304(0x1d1)]),oe(0x1,a[_0xac5304(0x239)](a[_0xac5304(0x334)])),oe(0x2,a[_0xac5304(0x239)](u[_0xac5304(0xb4)]))],B);const X=0x14,De=0xc8,ae=0x4,Ct=0x5;function _0x3138(_0x44df6e,_0x9a3176){const _0x11bd56=_0x11bd();return _0x3138=function(_0x313813,_0x3b05fe){_0x313813=_0x313813-0xb4;let _0x1635de=_0x11bd56[_0x313813];return _0x1635de;},_0x3138(_0x44df6e,_0x9a3176);}function Tt(_0x4a4311,_0x12a497){const _0xf9fde8=_0xac5304;let {radius:_0x41bb74,width:_0x4fe47b,height:_0x5655fa}=_0x12a497;_0x41bb74=_0x41bb74!=null?_0x41bb74:0x0,_0x4fe47b=_0x4fe47b!=null?_0x4fe47b:0x1e,_0x5655fa=_0x5655fa!=null?_0x5655fa:0x1e;let _0x75f370=0x0,_0xf33fe9=0x0,_0x180978=0x0;_0x75f370=_0xf33fe9=_0x180978=Math[_0xf9fde8(0x218)](_0x41bb74,_0x4fe47b/0x2,_0x5655fa/0x2),_0x4a4311['beginPath'](),_0x4a4311[_0xf9fde8(0x1da)](_0x75f370,0x0),_0x4a4311[_0xf9fde8(0xdd)](_0x4fe47b-_0xf33fe9,0x0),_0x4a4311[_0xf9fde8(0x134)](_0x4fe47b-_0xf33fe9,_0xf33fe9,_0xf33fe9,Math['PI']*0x3/0x2,0x0,!0x1),_0x4a4311[_0xf9fde8(0xdd)](_0x4fe47b,_0x5655fa-_0x180978),_0x4a4311[_0xf9fde8(0x134)](_0x4fe47b-_0x180978,_0x5655fa-_0x180978,_0x180978,0x0,Math['PI']/0x2,!0x1),_0x4a4311['lineTo'](0x0,_0x5655fa),_0x4a4311[_0xf9fde8(0xdd)](0x0,_0x75f370),_0x4a4311['arc'](_0x75f370,_0x75f370,_0x75f370,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4a4311[_0xf9fde8(0x373)](),_0x12a497['fill']&&(_0x4a4311[_0xf9fde8(0x30b)](),_0x4a4311[_0xf9fde8(0x1dd)]=_0x12a497[_0xf9fde8(0x189)],_0x12a497[_0xf9fde8(0x175)]===_0xf9fde8(0x374)?_0x4a4311[_0xf9fde8(0x189)]('evenodd'):_0x4a4311[_0xf9fde8(0x189)](),_0x4a4311['restore']());}class ie extends C[_0xac5304(0xeb)]{constructor(_0x3f8bc2,_0x38bbd8){const _0x5db58c=_0xac5304;super(_0x3f8bc2,_0x38bbd8),_(this,_0x5db58c(0x307)),_(this,_0x5db58c(0x311)),(this[_0x5db58c(0x307)]=_0x38bbd8==null?void 0x0:_0x38bbd8[_0x5db58c(0x307)],this['text']=_0x38bbd8==null?void 0x0:_0x38bbd8[_0x5db58c(0x311)]);}static[_0xac5304(0x2d0)](_0x5e754b,_0x34c3df){const _0x14481e=_0xac5304,{text:_0x7b6355,color:_0x48bbc3}=_0x34c3df;_0x5e754b['save'](),_0x5e754b[_0x14481e(0x36e)]=_0x14481e(0x2e2);const _0x2b5ab6=_0x5e754b[_0x14481e(0x1a1)](_0x7b6355)[_0x14481e(0x27f)],_0x23a010=Math[_0x14481e(0x218)](_0x2b5ab6+0x2*ae,De);Tt(_0x5e754b,{'height':X,'radius':0x4,'width':_0x23a010,'fill':_0x48bbc3}),_0x5e754b[_0x14481e(0x1dd)]=_0x14481e(0xda);const _0x115516=ae,_0x21d44e=X-Ct,_0x1a3f59=De-0x2*ae;if(_0x2b5ab6>_0x1a3f59){let _0x488643='',_0x445b59=0x0;for(const _0x6aa792 of _0x7b6355){const _0x38dd5b=_0x5e754b[_0x14481e(0x1a1)](_0x6aa792)[_0x14481e(0x27f)];if(_0x445b59+_0x38dd5b<=_0x1a3f59-_0x5e754b[_0x14481e(0x1a1)](_0x14481e(0x18c))[_0x14481e(0x27f)])_0x488643+=_0x6aa792,_0x445b59+=_0x38dd5b;else{_0x488643+=_0x14481e(0x18c);break;}}_0x5e754b[_0x14481e(0x191)](_0x488643,_0x115516,_0x21d44e);}else _0x5e754b['fillText'](_0x7b6355,_0x115516,_0x21d44e);_0x5e754b[_0x14481e(0x369)]();}['_draw'](_0x27d031){const _0x5d781b=_0xac5304;ie[_0x5d781b(0x2d0)](_0x27d031,this);}}const ce=_0xac5304(0x2e9),pt=_0xac5304(0x23a),Ot='collab-rect-range-',Y=0x6,Rt=1.5,le=0x4,bt=1.5,Dt=_0xac5304(0x202);class Ne{constructor(_0x58511f,_0x191ea1,_0x5419b3,_0x4c665d){const _0x23d154=_0xac5304;_(this,'_shapes',[]),_(this,'_anchor',null),_(this,_0x23d154(0xdc),null),_(this,_0x23d154(0x35e),null),_(this,_0x23d154(0x16b),null),_(this,_0x23d154(0x1ef),null),(this[_0x23d154(0x25b)]=_0x58511f,this[_0x23d154(0x27b)]=_0x191ea1,this[_0x23d154(0x289)]=_0x5419b3,this['_document']=_0x4c665d,this[_0x23d154(0x324)]());}set[_0xac5304(0x1cf)](_0x4e5471){const _0x4f7aee=_0xac5304;_0x4e5471?(this['_anchorDot']&&this['_anchorDot'][_0x4f7aee(0xc7)](),this[_0x4f7aee(0xdc)]&&this[_0x4f7aee(0xdc)][_0x4f7aee(0x159)]()):(this[_0x4f7aee(0x35e)]&&this[_0x4f7aee(0x35e)][_0x4f7aee(0x159)](),this[_0x4f7aee(0xdc)]&&this[_0x4f7aee(0xdc)][_0x4f7aee(0xc7)]());}[_0xac5304(0xe1)](){const _0x37efb2=_0xac5304;for(const _0x237aa3 of this['_shapes'])_0x237aa3['dispose']();this[_0x37efb2(0xdc)]&&this['_textBubble']['dispose'](),this[_0x37efb2(0x35e)]&&this[_0x37efb2(0x35e)][_0x37efb2(0xe1)](),this[_0x37efb2(0x2d5)]&&this[_0x37efb2(0x2d5)][_0x37efb2(0xe1)](),this[_0x37efb2(0x1ef)]&&this[_0x37efb2(0x1ef)]();}[_0xac5304(0x324)](){const _0x53b18c=_0xac5304;var _0x2f3d13;const {_docSkeleton:_0x4d8541,_document:_0x22ca79}=this,{color:_0x12faba,name:_0x3d79e9,ranges:_0x3ee7ed}=this[_0x53b18c(0x25b)],_0x5661c3=_0x22ca79[_0x53b18c(0x16f)](),{docsLeft:_0x5a8e33,docsTop:_0xbb8c9c}=_0x5661c3,_0x5a2906=new T['NodePositionConvertToCursor'](_0x5661c3,_0x4d8541);for(const {startOffset:_0x46eb1f,endOffset:_0x2584eb,rangeType:_0x36859b,segmentId:_0x1f7bf2,segmentPage:_0x5377a5,collapsed:_0x3e7578,isActive:_0x4004ed}of _0x3ee7ed){const _0x16e4d0=_0x4d8541[_0x53b18c(0x326)](_0x46eb1f,!0x0,_0x1f7bf2,_0x5377a5);let _0x1868a1=_0x4d8541['findNodePositionByCharIndex'](_0x2584eb,!0x0,_0x1f7bf2,_0x5377a5);if(_0x1868a1==null&&(_0x1868a1=_0x4d8541[_0x53b18c(0x326)](_0x2584eb-0x1,!0x1,_0x1f7bf2,_0x5377a5)),_0x4004ed){const {contentBoxPointGroup:_0x1c6668}=_0x5a2906[_0x53b18c(0x15b)](_0x1868a1,_0x1868a1);if(_0x1c6668[_0x53b18c(0x2d1)]===0x0)continue;this['_drawAnchor'](_0x12faba,_0x1c6668,_0x5a8e33,_0xbb8c9c,_0x3d79e9),this[_0x53b18c(0x1ef)]=this[_0x53b18c(0xdb)]();}if(_0x16e4d0&&_0x1868a1){if(_0x36859b===a[_0x53b18c(0xf3)]['RECT']){const _0x4cd93d=new T[(_0x53b18c(0x34a))](_0x5661c3,_0x4d8541),{pointGroup:_0xc55428}=(_0x2f3d13=_0x4cd93d[_0x53b18c(0x15b)](_0x16e4d0,_0x1868a1))!=null?_0x2f3d13:{};if(_0xc55428==null||_0xc55428[_0x53b18c(0x2d1)]===0x0)continue;this[_0x53b18c(0x25f)](_0x12faba,_0xc55428,_0x5a8e33,_0xbb8c9c);}else{if(!_0x3e7578){const {borderBoxPointGroup:_0x7b1315}=_0x5a2906[_0x53b18c(0x15b)](_0x16e4d0,_0x1868a1);if(_0x7b1315[_0x53b18c(0x2d1)]===0x0)continue;this[_0x53b18c(0x27e)](_0x12faba,_0x7b1315,_0x5a8e33,_0xbb8c9c);}}}}}[_0xac5304(0x2a8)](_0xda7952,_0x18b73b,_0x1426c6,_0x139ccd,_0x393577){const _0x226c57=_0xac5304,_0x3cceed=this[_0x226c57(0x2ea)](_0x18b73b),{left:_0x2c8094,top:_0x33fac7,height:_0x36435b}=_0x3cceed,_0x483464=this[_0x226c57(0x1a5)](),_0x1491d4=bt/_0x483464,_0x19bf8d=new C[(_0x226c57(0x125))](ce+a[_0x226c57(0x2c0)](Y),{'left':_0x2c8094+_0x1426c6-_0x1491d4,'top':_0x33fac7+_0x139ccd,'height':_0x36435b,'width':Rt,'fill':_0xda7952||C[_0x226c57(0x184)](a[_0x226c57(0x331)]['black'],0x0),'strokeWidth':_0x1491d4,'stroke':Dt,'evented':!0x0});this['_anchor']=_0x19bf8d,this[_0x226c57(0x27b)]['addObject'](_0x19bf8d,T[_0x226c57(0x32a)]);const _0xc0de71=new C[(_0x226c57(0x125))](ce+a['generateRandomId'](Y),{'left':_0x2c8094+_0x1426c6-_0x1491d4,'top':_0x33fac7+_0x139ccd-le/0x2,'height':le,'width':le,'fill':_0xda7952||C[_0x226c57(0x184)](a[_0x226c57(0x331)][_0x226c57(0x17b)],0x0),'strokeWidth':0x0,'stroke':_0xda7952||C[_0x226c57(0x184)](a['COLORS']['black'],0x0),'evented':!0x1});this[_0x226c57(0x35e)]=_0xc0de71,this[_0x226c57(0x27b)][_0x226c57(0x1f3)](_0xc0de71,T['TEXT_RANGE_LAYER_INDEX']);const _0x1635de=new ie(ce+a['generateRandomId'](Y),{'left':_0x2c8094+_0x1426c6-_0x1491d4,'top':_0x33fac7+_0x139ccd-X,'text':_0x393577,'color':_0xda7952});this[_0x226c57(0xdc)]=_0x1635de,this[_0x226c57(0x27b)][_0x226c57(0x1f3)](_0x1635de,T['TEXT_RANGE_LAYER_INDEX']),this[_0x226c57(0x1cf)]=!0x1;}[_0xac5304(0xdb)](){const _0x4699e5=_0xac5304,_0x293ffa=this[_0x4699e5(0x2d5)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x242b4a=_0x4699e5;this[_0x242b4a(0x1cf)]=!0x0;}),_0x2729d0=this[_0x4699e5(0x2d5)]['onPointerLeave$'][_0x4699e5(0x2a0)](()=>{const _0x5280cc=_0x4699e5;this[_0x5280cc(0x16b)]&&clearTimeout(this[_0x5280cc(0x16b)]),this[_0x5280cc(0x16b)]=setTimeout(()=>{const _0x5de9e7=_0x5280cc;this[_0x5de9e7(0x1cf)]=!0x1;},0x7d0);});return()=>{const _0x3d369e=_0x4699e5;_0x293ffa[_0x3d369e(0x1f1)](),_0x2729d0[_0x3d369e(0x1f1)]();};}[_0xac5304(0x27e)](_0x1d5dee,_0x43960a,_0x575519,_0x12b041){const _0x53ac9e=_0xac5304,_0x13f4af=new a[(_0x53ac9e(0xd5))](_0x1d5dee)[_0x53ac9e(0x325)](0.2)[_0x53ac9e(0x1be)](),_0x591929=new C['RegularPolygon'](pt+a[_0x53ac9e(0x2c0)](Y),{'pointsGroup':_0x43960a,'fill':_0x13f4af||C[_0x53ac9e(0x184)](a[_0x53ac9e(0x331)][_0x53ac9e(0x17b)],0.2),'left':_0x575519,'top':_0x12b041,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x53ac9e(0x18b)][_0x53ac9e(0x1b3)](_0x591929),this['_scene'][_0x53ac9e(0x1f3)](_0x591929,T['TEXT_RANGE_LAYER_INDEX']);}[_0xac5304(0x25f)](_0x1009c3,_0x1be454,_0x3235f7,_0xae305a){const _0x492d9b=_0xac5304,_0x219051=new a['ColorKit'](_0x1009c3)['setAlpha'](0.2)[_0x492d9b(0x1be)](),_0x1727ce=new C['RegularPolygon'](Ot+a[_0x492d9b(0x2c0)](Y),{'pointsGroup':_0x1be454,'fill':_0x219051||C[_0x492d9b(0x184)](a[_0x492d9b(0x331)][_0x492d9b(0x17b)],0.2),'left':_0x3235f7,'top':_0xae305a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x492d9b(0x18b)][_0x492d9b(0x1b3)](_0x1727ce),this['_scene'][_0x492d9b(0x1f3)](_0x1727ce,T[_0x492d9b(0x32a)]);}[_0xac5304(0x2ea)](_0x2cb4a9){const _0x3793e3=_0x2cb4a9[0x0],_0x5a9ea8=_0x3793e3[0x0],_0x52e736=_0x3793e3[0x2],{x:_0x2ca72c,y:_0x51dcb8}=_0x5a9ea8,{x:_0x454abb,y:_0x29db2e}=_0x52e736;return{'left':_0x2ca72c,'top':_0x51dcb8,'width':_0x454abb-_0x2ca72c,'height':_0x29db2e-_0x51dcb8};}[_0xac5304(0x1a5)](){const _0x361af0=_0xac5304,{scaleX:_0x17d756,scaleY:_0x583729}=this['_scene'][_0x361af0(0x205)]();return Math['max'](_0x17d756,_0x583729);}}var Nt=Object['getOwnPropertyDescriptor'],Ut=(_0x2e3f11,_0x5952a1,_0x4bd48e,_0x3eeb95)=>{for(var _0x2ba7af=_0x3eeb95>0x1?void 0x0:_0x3eeb95?Nt(_0x5952a1,_0x4bd48e):_0x5952a1,_0x5ea849=_0x2e3f11['length']-0x1,_0x405e11;_0x5ea849>=0x0;_0x5ea849--)(_0x405e11=_0x2e3f11[_0x5ea849])&&(_0x2ba7af=_0x405e11(_0x2ba7af)||_0x2ba7af);return _0x2ba7af;},q=(_0x2d9994,_0x31621f)=>(_0x4ecfb8,_0xc2268)=>_0x31621f(_0x4ecfb8,_0xc2268,_0x2d9994);let ge=class extends a[_0xac5304(0x279)]{constructor(_0x129c9d,_0x1efc5f,_0x5c8569,_0x398488,_0x48279a){const _0x23f2bf=_0xac5304;super(),_(this,_0x23f2bf(0xd7),[]),_(this,_0x23f2bf(0x2b9),[]),(this[_0x23f2bf(0xba)]=_0x129c9d,this['_docSkeletonManagerService']=_0x1efc5f,this['_collabCursorController']=_0x5c8569,this[_0x23f2bf(0x1d7)]=_0x398488,this['_themeService']=_0x48279a,this[_0x23f2bf(0x1fd)]());}[_0xac5304(0x1fd)](){const _0x3d71cc=_0xac5304,_0x2696ea=this[_0x3d71cc(0xba)][_0x3d71cc(0x2cc)],_0x15e103=this[_0x3d71cc(0xcb)];this[_0x3d71cc(0x35a)](I['combineLatest']([this['_collabCursorController']['getCollabCursors$'](_0x2696ea),this[_0x3d71cc(0x149)][_0x3d71cc(0x108)]])[_0x3d71cc(0x377)]($[_0x3d71cc(0x182)](([_0x5e9813,_0x4528e6])=>({'skeleton':_0x15e103[_0x3d71cc(0xe9)](),'cursors':[..._0x5e9813[_0x3d71cc(0x144)]()]['flatMap'](_0x322155=>({..._0x322155,'color':this[_0x3d71cc(0x149)][_0x3d71cc(0x24c)](_0x322155[_0x3d71cc(0x307)])}))})))[_0x3d71cc(0x257)](_0x38d0a6=>{const _0x484c75=_0x3d71cc;if(this[_0x484c75(0x2f4)](),_0x38d0a6){const {skeleton:_0x2cfb88,cursors:_0x83a974}=_0x38d0a6;this[_0x484c75(0x368)](_0x2cfb88,_0x83a974);}})),this[_0x3d71cc(0x258)](),this[_0x3d71cc(0x18d)]();}[_0xac5304(0x368)](_0x5f22f7,_0x46bdce){const _0x38b34e=_0xac5304,{scene:_0x59e3a8,mainComponent:_0x44d21f}=this[_0x38b34e(0xba)],_0x4eb3c4=_0x46bdce[_0x38b34e(0x182)](_0x38d2a1=>new Ne(_0x38d2a1,_0x59e3a8,_0x5f22f7,_0x44d21f));this['_cursorShapes']=_0x4eb3c4,this['_cursors']=_0x46bdce;}[_0xac5304(0x231)](){const _0x4cfdc3=_0xac5304;this[_0x4cfdc3(0x2f4)]();const {scene:_0x2b7101,mainComponent:_0x19e2f5}=this[_0x4cfdc3(0xba)],_0x1ae21c=this['_docSkeletonManagerService']['getSkeleton'](),_0x4a410e=this[_0x4cfdc3(0x2b9)][_0x4cfdc3(0x182)](_0x331bc5=>new Ne(_0x331bc5,_0x2b7101,_0x1ae21c,_0x19e2f5));this[_0x4cfdc3(0xd7)]=_0x4a410e;}[_0xac5304(0x2f4)](){const _0x4ccb2b=_0xac5304;this[_0x4ccb2b(0xd7)]['forEach'](_0x4c7cea=>_0x4c7cea['dispose']()),this[_0x4ccb2b(0xd7)]=[];}[_0xac5304(0x18d)](){const _0x572ad4=_0xac5304,_0x58c250=[T[_0x572ad4(0x2f8)]['id']];this[_0x572ad4(0x35a)](this['_commandService'][_0x572ad4(0x2c3)](_0x4bf85a=>{const _0x397e02=_0x572ad4;_0x58c250[_0x397e02(0x13d)](_0x4bf85a['id'])&&_0x4bf85a['params']['unitId']===this[_0x397e02(0xba)][_0x397e02(0x2cc)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x26c192=_0xac5304;this['disposeWithMe'](a[_0x26c192(0x256)](this['_context'][_0x26c192(0x31f)]['onTransformChange$'])[_0x26c192(0x377)]($[_0x26c192(0xc6)](_0x36a5e9=>_0x36a5e9[_0x26c192(0x15a)]===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x26c192(0x323)]),$[_0x26c192(0x345)](0x10))['subscribe'](()=>{const _0x556f0a=_0x26c192;this[_0x556f0a(0x231)]();}));}};ge=Ut([q(0x1,a[_0xac5304(0x239)](W['DocSkeletonManagerService'])),q(0x2,a[_0xac5304(0x239)](B)),q(0x3,a[_0xac5304(0x2bb)]),q(0x4,a['Inject'](a[_0xac5304(0x1f5)]))],ge);const Lt=0x1,Mt=1.5;class Be extends C[_0xac5304(0xeb)]{constructor(_0x1d27d0,_0x37e38a){const _0x10257d=_0xac5304;super(_0x1d27d0,_0x37e38a),_(this,'_color'),_(this,_0x10257d(0x130),!0x1),_(this,_0x10257d(0x105)),_(this,_0x10257d(0x2b7),''),_(this,_0x10257d(0xd6),_0x10257d(0x226)),_(this,_0x10257d(0x11d)),(_0x37e38a&&this['setShapeProps'](_0x37e38a),this[_0x10257d(0x16c)]['subscribeEvent'](()=>this[_0x10257d(0x321)]({'hovered':!0x0})),this[_0x10257d(0x347)]['subscribeEvent'](()=>this[_0x10257d(0x321)]({'hovered':!0x1})));}[_0xac5304(0x321)](_0x14b850){const _0x36f908=_0xac5304;var _0x33db3f,_0x4c1eb2,_0x52efec,_0x3ac618,_0x3f5c09,_0x205e71;this[_0x36f908(0x224)]=(_0x33db3f=_0x14b850[_0x36f908(0x307)])!=null?_0x33db3f:this[_0x36f908(0x224)],this[_0x36f908(0x130)]=(_0x4c1eb2=_0x14b850[_0x36f908(0x322)])!=null?_0x4c1eb2:this[_0x36f908(0x130)],this[_0x36f908(0x105)]=(_0x52efec=_0x14b850[_0x36f908(0xd8)])!=null?_0x52efec:this['_range'],this[_0x36f908(0x2b7)]=(_0x3ac618=_0x14b850[_0x36f908(0x2eb)])!=null?_0x3ac618:this[_0x36f908(0x2b7)],this[_0x36f908(0xd6)]=(_0x3f5c09=_0x14b850[_0x36f908(0x2ad)])!=null?_0x3f5c09:this[_0x36f908(0xd6)],this[_0x36f908(0x11d)]=(_0x205e71=_0x14b850[_0x36f908(0x2e8)])!=null?_0x205e71:this[_0x36f908(0x11d)],this[_0x36f908(0xd1)]({'width':_0x14b850[_0x36f908(0x27f)],'height':_0x14b850[_0x36f908(0x1eb)]});}[_0xac5304(0x267)](_0x2d3239){const _0x1c10d3=_0xac5304,{row:_0x19ace5,column:_0x569ea5}=_0x2d3239;if(_0x19ace5>=this['_range']['startRow']&&_0x19ace5<=this[_0x1c10d3(0x105)][_0x1c10d3(0x230)]&&_0x569ea5>=this['_range'][_0x1c10d3(0x303)]&&_0x569ea5<=this['_range'][_0x1c10d3(0x232)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x1c10d3(0x321)]({'hovered':!0x1});}[_0xac5304(0x356)](_0x1f926f){return!0x1;}[_0xac5304(0x329)](_0x361bd3){const _0x1b9645=_0xac5304;C[_0x1b9645(0x125)][_0x1b9645(0x2d0)](_0x361bd3,{'width':this[_0x1b9645(0x27f)],'height':this[_0x1b9645(0x1eb)],'strokeWidth':Mt,'stroke':this[_0x1b9645(0x224)],'evented':!0x1,'fill':this[_0x1b9645(0x11d)]}),this['_hovered']&&(_0x361bd3[_0x1b9645(0x30b)](),_0x361bd3[_0x1b9645(0xbe)](0x1,0x0,0x0,0x1,this[_0x1b9645(0x27f)],this['_labelPosition']===_0x1b9645(0x153)?0x0:-X),ie[_0x1b9645(0x2d0)](_0x361bd3,{'text':this[_0x1b9645(0x2b7)],'color':this[_0x1b9645(0x224)]}),_0x361bd3[_0x1b9645(0x369)]());}}var At=Object[_0xac5304(0xec)],Pt=(_0x429971,_0x142a92,_0x2ec71d,_0x4c7f84)=>{const _0xce4f17=_0xac5304;for(var _0x5b786c=_0x4c7f84>0x1?void 0x0:_0x4c7f84?At(_0x142a92,_0x2ec71d):_0x142a92,_0xd0fdbf=_0x429971[_0xce4f17(0x2d1)]-0x1,_0x53a683;_0xd0fdbf>=0x0;_0xd0fdbf--)(_0x53a683=_0x429971[_0xd0fdbf])&&(_0x5b786c=_0x53a683(_0x5b786c)||_0x5b786c);return _0x5b786c;},_e=(_0x13400a,_0x13839f)=>(_0x695771,_0x26695d)=>_0x13839f(_0x695771,_0x26695d,_0x13400a);const wt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x3505d4,_0x455159,_0x656cf5,_0x1bd1e6){const _0x346b6f=_0xac5304;super(),_(this,_0x346b6f(0x2b9),new Set()),_(this,_0x346b6f(0xc4),null),(this['_context']=_0x3505d4,this[_0x346b6f(0x170)]=_0x455159,this[_0x346b6f(0x2b0)]=_0x656cf5,this[_0x346b6f(0x149)]=_0x1bd1e6,this[_0x346b6f(0x1fd)]());}[_0xac5304(0x1fd)](){const _0xc654ba=_0xac5304;this[_0xc654ba(0x170)][_0xc654ba(0x126)][_0xc654ba(0x377)]($[_0xc654ba(0x212)](this[_0xc654ba(0x1d2)]),$[_0xc654ba(0x1f7)](_0x5534ab=>{const _0x36307b=_0xc654ba;if(_0x5534ab){const _0x11856e=_0x5534ab['sheetId'];return I[_0x36307b(0x285)](this['_collabCursorController'][_0x36307b(0x155)](this[_0x36307b(0xba)][_0x36307b(0x2cc)]),this[_0x36307b(0x149)][_0x36307b(0x108)])[_0x36307b(0x377)]($[_0x36307b(0x182)](([_0xf3afc,_0x3d8783])=>{const _0x2d0047=_0x36307b,_0x4dadfe=new Map();return _0xf3afc[_0x2d0047(0x1b8)]((_0x19d939,_0x3be05e)=>{const _0x555c9d=_0x2d0047;if(_0x19d939[_0x555c9d(0xb8)]===_0x11856e){const _0x203e5d={..._0x19d939};_0x203e5d[_0x555c9d(0x307)]=this[_0x555c9d(0x149)][_0x555c9d(0x24c)](_0x19d939[_0x555c9d(0x307)]),_0x4dadfe['set'](_0x3be05e,_0x203e5d);}}),{'skeleton':_0x5534ab,'cursors':_0x4dadfe};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x33129c,cursors:_0x316e5e})=>{const _0x108f02=_0xc654ba;this[_0x108f02(0x2f4)](),_0x33129c&&this[_0x108f02(0x368)](_0x33129c,_0x316e5e);}),this[_0xc654ba(0x170)][_0xc654ba(0x126)][_0xc654ba(0x257)](_0x523a71=>{const _0x11545e=_0xc654ba;if(_0x523a71==null)return;const {skeleton:_0x2316a7}=_0x523a71,{scene:_0x40b3a7}=this['_context'];_0x40b3a7[_0x11545e(0x365)]['subscribeEvent'](a[_0x11545e(0x25d)](_0x2c74bb=>{const _0x11f29d=_0x11545e;var _0x582bef,_0x5ef9ae;const {offsetX:_0x556b5f,offsetY:_0x5da882}=_0x2c74bb,{x:_0x4aadf8,y:_0x58fdf5}=_0x40b3a7[_0x11f29d(0x1e4)](C[_0x11f29d(0x122)]['FromArray']([_0x556b5f,_0x5da882])),{scaleX:_0x339a7f,scaleY:_0x68734b}=_0x40b3a7['getAncestorScale'](),_0x1a20e9=_0x40b3a7[_0x11f29d(0x1ba)](C[_0x11f29d(0xb6)][_0x11f29d(0x2c1)]),_0x1a386a=_0x40b3a7[_0x11f29d(0x180)](C[_0x11f29d(0x122)][_0x11f29d(0x158)]([_0x4aadf8,_0x58fdf5]),_0x1a20e9),_0x2b0ff6=_0x2316a7[_0x11f29d(0x11b)](_0x556b5f,_0x5da882,_0x339a7f,_0x68734b,_0x1a386a);((_0x582bef=this[_0x11f29d(0xc4)])==null?void 0x0:_0x582bef[_0x11f29d(0xde)])===_0x2b0ff6[_0x11f29d(0xde)]&&((_0x5ef9ae=this[_0x11f29d(0xc4)])==null?void 0x0:_0x5ef9ae[_0x11f29d(0x166)])===_0x2b0ff6['row']||this[_0x11f29d(0x2b9)]['forEach'](_0x30ddce=>{_0x30ddce['onMouseMove'](_0x2b0ff6);});},0x64));});}[_0xac5304(0x368)](_0x40a5e0,_0x2c5689){const _0x140df1=_0xac5304;var _0x11857c;const _0xff517d=(_0x11857c=this[_0x140df1(0x170)]['getCurrent']())==null?void 0x0:_0x11857c[_0x140df1(0x13f)];if(!_0xff517d)return;const _0x2275b9=this[_0x140df1(0x124)]();if(!_0x2275b9)return;this[_0x140df1(0x2b9)]['forEach'](_0x31ff43=>{const _0x911f37=_0x140df1;_0x31ff43[_0x911f37(0x23e)]();});const {scene:_0x1f3ba0}=_0x2275b9,_0xbb3f83=yt(Array[_0x140df1(0x179)](_0x2c5689[_0x140df1(0x144)]()))[_0x140df1(0x182)](_0x5db06c=>{const _0x2cbfbc=_0x140df1,{color:_0x2bc423,range:_0x3abc61,name:_0x5abdfd,selection:_0x337fc6,sheetID:_0x160a97}=_0x5db06c,{startColumn:_0x1d122d,startRow:_0x200498,endColumn:_0x4ed634,endRow:_0x3b5df9}=_0x3abc61,_0x4ea5e8=z[_0x2cbfbc(0x254)](_0x200498,_0x1d122d,_0x1f3ba0,_0xff517d),_0x259c72=z[_0x2cbfbc(0x254)](_0x3b5df9,_0x4ed634,_0x1f3ba0,_0xff517d),{columnHeaderHeightAndMarginTop:_0x16808b}=_0xff517d,{startX:_0x4ee566,startY:_0x119457}=_0x4ea5e8,{endX:_0x1efdde,endY:_0x310af3}=_0x259c72,_0x5811b6=_0x1efdde-_0x4ee566,_0x44b805=_0x310af3-_0x119457,_0x101806={'labelPosition':_0x119457-_0x16808b>=X?'top':_0x2cbfbc(0x153),'sheetID':_0x160a97,'range':_0x3abc61,'color':_0x2bc423,'name':_0x5abdfd,'selection':_0x337fc6,'left':_0x4ee566,'top':_0x119457,'width':_0x5811b6,'height':_0x44b805,'evented':!0x1,'zIndex':wt};return new Be(_0x5abdfd,_0x101806);});_0x1f3ba0['addObjects'](_0xbb3f83,Lt),this[_0x140df1(0x2b9)]=new Set(_0xbb3f83);}[_0xac5304(0x2f4)](){const _0x21f8c2=_0xac5304;var _0x1947f7;(_0x1947f7=this['_cursors'])==null||_0x1947f7[_0x21f8c2(0x1b8)](_0x4fcdd0=>_0x4fcdd0[_0x21f8c2(0xe1)]());}['_getSheetObject'](){const _0x2afe29=_0xac5304;return z['getSheetObject'](this[_0x2afe29(0xba)][_0x2afe29(0x2af)],this[_0x2afe29(0xba)]);}};ve=Pt([_e(0x1,a[_0xac5304(0x239)](z[_0xac5304(0x24f)])),_e(0x2,a[_0xac5304(0x239)](B)),_e(0x3,a[_0xac5304(0x239)](a[_0xac5304(0x1f5)]))],ve);function yt(_0xa44dfc){const _0x5342bd=_0xac5304,_0x451139=new Map();return _0xa44dfc[_0x5342bd(0x1b8)](_0x5c46c1=>{const _0x14892d=_0x5342bd;if(_0x451139[_0x14892d(0x20b)](_0x5c46c1[_0x14892d(0x2a1)])){const _0x24adcd=_0x451139['get'](_0x5c46c1[_0x14892d(0x2a1)]);_0x24adcd['name']+=',\x20'+_0x5c46c1[_0x14892d(0x2eb)];}else _0x451139['set'](_0x5c46c1[_0x14892d(0x2a1)],_0x5c46c1);}),Array[_0x5342bd(0x179)](_0x451139[_0x5342bd(0x144)]());}var $t=Object[_0xac5304(0xec)],xt=(_0x26c72,_0x14d3cf,_0x148dbf,_0x45ca7b)=>{const _0x511633=_0xac5304;for(var _0x321b64=_0x45ca7b>0x1?void 0x0:_0x45ca7b?$t(_0x14d3cf,_0x148dbf):_0x14d3cf,_0xf74f80=_0x26c72[_0x511633(0x2d1)]-0x1,_0x292a23;_0xf74f80>=0x0;_0xf74f80--)(_0x292a23=_0x26c72[_0xf74f80])&&(_0x321b64=_0x292a23(_0x321b64)||_0x321b64);return _0x321b64;},y=(_0xe54947,_0x2d819d)=>(_0x38a68d,_0x26535)=>_0x2d819d(_0x38a68d,_0x26535,_0xe54947);let J=class extends a[_0xac5304(0xbf)]{constructor(_0x32de76,_0x9ff3a3,_0x9c081c,_0x357ef2,_0x1b684b,_0x4921d5){const _0x5d837a=_0xac5304;super(),this[_0x5d837a(0x127)]=_0x32de76,this[_0x5d837a(0x1b1)]=_0x9ff3a3,this[_0x5d837a(0x123)]=_0x9c081c,this[_0x5d837a(0x221)]=_0x357ef2,this[_0x5d837a(0xbb)]=_0x1b684b,this[_0x5d837a(0x31d)]=_0x4921d5,this[_0x5d837a(0xf8)](),this[_0x5d837a(0x1fa)]();}['_setupBeforeClosingHandler'](){const _0x65a19c=_0xac5304;this['disposeWithMe'](this['_beforeCloseService'][_0x65a19c(0x102)](()=>{const _0x43beba=_0x65a19c;if(this[_0x43beba(0x1b1)]['saveTaskMap'][_0x43beba(0x217)])return this[_0x43beba(0x31d)]['t'](_0x43beba(0x282));}));}['_initEvent'](){const _0x1fc4fa=_0xac5304;this[_0x1fc4fa(0x35a)](this['_collaborationUIEventService']['event$'][_0x1fc4fa(0x257)](_0x15465f=>{const _0x366fb2=_0x1fc4fa;_0x15465f['id']===u[_0x366fb2(0x335)][_0x366fb2(0x308)]&&this[_0x366fb2(0x221)]['show']({'type':p[_0x366fb2(0x30c)][_0x366fb2(0x11a)],'content':this[_0x366fb2(0x31d)]['t'](_0x366fb2(0x2c6))}),_0x15465f['id']===u[_0x366fb2(0x335)][_0x366fb2(0x2fd)]&&this[_0x366fb2(0x221)]['show']({'type':p[_0x366fb2(0x30c)][_0x366fb2(0x11a)],'content':this['_localeService']['t'](_0x366fb2(0x229))}),_0x15465f['id']===u[_0x366fb2(0x335)]['PERMISSION_DENIED']&&this['_notificationService'][_0x366fb2(0x159)]({'title':this['_localeService']['t'](_0x366fb2(0x1b4)),'content':this[_0x366fb2(0x31d)]['t']('permission.content'),'type':'error','duration':0x0}),_0x15465f['id']===u[_0x366fb2(0x335)]['CONFLICT']&&this[_0x366fb2(0x221)]['show']({'type':p[_0x366fb2(0x30c)][_0x366fb2(0x316)],'content':this[_0x366fb2(0x31d)]['t']('collaboration.closeRoom')+'('+_0x15465f[_0x366fb2(0xe5)]+')'}),_0x15465f['id']===u[_0x366fb2(0x335)][_0x366fb2(0x2a4)]&&this[_0x366fb2(0x221)][_0x366fb2(0x159)]({'type':p[_0x366fb2(0x30c)][_0x366fb2(0x11a)],'content':this[_0x366fb2(0x31d)]['t'](_0x15465f[_0x366fb2(0xe5)]||'')}),_0x15465f['id']===u[_0x366fb2(0x335)][_0x366fb2(0x12d)]&&this[_0x366fb2(0x221)][_0x366fb2(0x159)]({'type':p['MessageType'][_0x366fb2(0x11a)],'content':this[_0x366fb2(0x31d)]['t'](_0x366fb2(0x2db))}),_0x15465f['id']===u[_0x366fb2(0x335)][_0x366fb2(0x28a)]&&this[_0x366fb2(0x221)]['show']({'type':p[_0x366fb2(0x30c)]['Error'],'content':this[_0x366fb2(0x31d)]['t'](_0x366fb2(0x2d9))}),_0x15465f['id']===u['CollaborationUIEventId'][_0x366fb2(0x2bf)]&&this[_0x366fb2(0x221)][_0x366fb2(0x159)]({'type':p[_0x366fb2(0x30c)][_0x366fb2(0x316)],'content':this[_0x366fb2(0x31d)]['t'](_0x366fb2(0x366))});}));}};J=xt([y(0x0,O[_0xac5304(0xcf)]),y(0x1,u[_0xac5304(0x1cc)]),y(0x2,a[_0xac5304(0x239)](u[_0xac5304(0xf5)])),y(0x3,O[_0xac5304(0x1c4)]),y(0x4,O[_0xac5304(0x352)]),y(0x5,a['Inject'](a[_0xac5304(0x306)]))],J);const Bt=_0xac5304(0x2ef),Ue={};var Ft=Object[_0xac5304(0xec)],kt=(_0x370b0a,_0x3dff01,_0x4eaef0,_0x56546b)=>{for(var _0x44b9ef=_0x56546b>0x1?void 0x0:_0x56546b?Ft(_0x3dff01,_0x4eaef0):_0x3dff01,_0xb4b5dd=_0x370b0a['length']-0x1,_0x53e9fc;_0xb4b5dd>=0x0;_0xb4b5dd--)(_0x53e9fc=_0x370b0a[_0xb4b5dd])&&(_0x44b9ef=_0x53e9fc(_0x44b9ef)||_0x44b9ef);return _0x44b9ef;},Le=(_0x592687,_0x49f673)=>(_0x2bbac0,_0x1f3b61)=>_0x49f673(_0x2bbac0,_0x1f3b61,_0x592687);let Z=class{constructor(_0x6aaf47,_0x1aae2){const _0x1c9959=_0xac5304;this[_0x1c9959(0x213)]=_0x6aaf47,this['_renderManagerService']=_0x1aae2;}[_0xac5304(0x14d)](_0xc26246){const _0x4b2d00=_0xac5304;this[_0x4b2d00(0x376)](_0xc26246),this[_0x4b2d00(0x2ee)](_0xc26246);}[_0xac5304(0x244)](_0x3182e6){const _0x1bd719=_0xac5304,{unitID:_0x49cf1e}=_0x3182e6,_0x5bbbf1=this['_renderManagerService']['getRenderById'](_0x49cf1e)['with'](T['DocIMEInputManagerService']),{redoCache:_0x4b3867}=_0x5bbbf1[_0x1bd719(0x270)]();if(_0x4b3867[_0x1bd719(0x2d1)]===0x0)return _0x3182e6;let _0x2c3474=a['Tools']['deepClone'](_0x3182e6['mutations'][0x0]);for(let _0x498f55=0x0;_0x498f55<_0x4b3867['length'];_0x498f55++){const _0x1524bc={'id':_0x1bd719(0x19e),'params':{..._0x4b3867[_0x498f55]}},_0x373542=this[_0x1bd719(0x213)][_0x1bd719(0x294)](_0x2c3474,_0x1524bc,!0x1);if(v[_0x1bd719(0x283)](_0x373542))throw _0x373542[_0x1bd719(0x147)];_0x2c3474=_0x373542['m1Prime'];}return{...a[_0x1bd719(0x14e)]['deepClone'](_0x3182e6),'mutations':[_0x2c3474]};}['_transformUndoRedoStack'](_0x18f7d){const _0x338244=_0xac5304,{unitID:_0x2a842a}=_0x18f7d,_0x27c61c=this[_0x338244(0xfb)][_0x338244(0x10c)](_0x2a842a)['with'](T[_0x338244(0x2cf)]),{undoCache:_0x1ad0a9,redoCache:_0x3a1ded}=_0x27c61c[_0x338244(0x270)]();if(_0x1ad0a9['length']===0x0||_0x3a1ded[_0x338244(0x2d1)]===0x0)return;const _0x20259e=[],_0x3fa265=[];let _0x499af5=a[_0x338244(0x14e)][_0x338244(0x35d)](_0x18f7d[_0x338244(0x296)][0x0]),_0x5f24ff=a[_0x338244(0x14e)][_0x338244(0x35d)](_0x18f7d[_0x338244(0x296)][0x0]);for(let _0x82b00d=_0x1ad0a9[_0x338244(0x2d1)]-0x1;_0x82b00d>=0x0;_0x82b00d--){const _0x3f1e30={'id':_0x338244(0x19e),'params':{..._0x1ad0a9[_0x82b00d]}},_0x2849d5={'id':_0x338244(0x19e),'params':{..._0x3a1ded[_0x82b00d]}},_0x4032ce=this[_0x338244(0x213)][_0x338244(0x294)](_0x499af5,_0x3f1e30,!0x1),_0x16c5c1=this['_transformService']['transformMutation'](_0x5f24ff,_0x2849d5,!0x1);if(v[_0x338244(0x283)](_0x4032ce))throw _0x4032ce[_0x338244(0x147)];if(v[_0x338244(0x283)](_0x16c5c1))throw _0x16c5c1['error'];_0x20259e['unshift'](_0x4032ce[_0x338244(0x12f)][_0x338244(0x154)]),_0x3fa265[_0x338244(0xfe)](_0x16c5c1['m2Prime'][_0x338244(0x154)]),_0x499af5=_0x4032ce[_0x338244(0x1e8)],_0x5f24ff=_0x16c5c1['m1Prime'];}_0x27c61c[_0x338244(0x1ca)]({'undoCache':_0x20259e,'redoCache':_0x3fa265});}[_0xac5304(0x2ee)](_0x452c9a){const _0x127239=_0xac5304,{unitID:_0x31e1f3}=_0x452c9a,_0x77b22d=this[_0x127239(0xfb)][_0x127239(0x10c)](_0x31e1f3)[_0x127239(0x2ae)](T['DocIMEInputManagerService']),_0x2eb645=_0x77b22d[_0x127239(0x190)]();if(_0x2eb645==null)return;const _0x2c60ed=[{'id':_0x127239(0x19e),'params':{'unitId':_0x452c9a['unitID'],'actions':null,'textRanges':[_0x2eb645]}}],_0x599bd8=this[_0x127239(0x213)][_0x127239(0x2b3)](_0x452c9a,_0x2c60ed);if(!v[_0x127239(0x114)](_0x599bd8))throw _0x599bd8['error'];const _0x16e355=_0x599bd8[_0x127239(0x12f)][0x0]['params']['textRanges'];Array[_0x127239(0x109)](_0x16e355)&&_0x16e355[_0x127239(0x2d1)]&&_0x77b22d[_0x127239(0x238)](_0x16e355[0x0]);}};Z=kt([Le(0x0,v['ITransformService']),Le(0x1,C[_0xac5304(0x1c8)])],Z);var jt=Object['getOwnPropertyDescriptor'],Yt=(_0x11d97a,_0x13f38c,_0x27512b,_0x25624f)=>{const _0x2aee3a=_0xac5304;for(var _0x2dcb10=_0x25624f>0x1?void 0x0:_0x25624f?jt(_0x13f38c,_0x27512b):_0x13f38c,_0x36b806=_0x11d97a[_0x2aee3a(0x2d1)]-0x1,_0x41d5d8;_0x36b806>=0x0;_0x36b806--)(_0x41d5d8=_0x11d97a[_0x36b806])&&(_0x2dcb10=_0x41d5d8(_0x2dcb10)||_0x2dcb10);return _0x2dcb10;},he=(_0x2fa145,_0x55775a)=>(_0x50a09a,_0x32e193)=>_0x55775a(_0x50a09a,_0x32e193,_0x2fa145);let Q=class{constructor(_0x29219e,_0x2d1168,_0x7c6fdb){const _0x4cf40f=_0xac5304;this[_0x4cf40f(0x372)]=_0x29219e,this[_0x4cf40f(0x213)]=_0x2d1168,this[_0x4cf40f(0x1ee)]=_0x7c6fdb;}[_0xac5304(0x320)](_0xc30fba){const _0x10a612=_0xac5304;this[_0x10a612(0xe8)](_0xc30fba);}['transformRemoteChangeset'](_0xa6c810){const _0x34ce8d=_0xac5304,{unitID:_0x5967dd}=_0xa6c810,{collaboration:_0x2fba44}=this['_docStateChangeManagerService'][_0x34ce8d(0x14c)](_0x5967dd);if(_0x2fba44[_0x34ce8d(0x2d1)]===0x0)return _0xa6c810;let _0x6aef3a=a[_0x34ce8d(0x14e)][_0x34ce8d(0x35d)](_0xa6c810[_0x34ce8d(0x296)][0x0]);for(let _0x59a44d=0x0;_0x59a44d<_0x2fba44[_0x34ce8d(0x2d1)];_0x59a44d++){const _0x291fd9={'id':_0x34ce8d(0x19e),'params':{'unitId':_0x2fba44[_0x59a44d][_0x34ce8d(0x2cc)],..._0x2fba44[_0x59a44d][_0x34ce8d(0x1f8)]}},_0x3b0018=this['_transformService'][_0x34ce8d(0x294)](_0x6aef3a,_0x291fd9,!0x1);if(v[_0x34ce8d(0x283)](_0x3b0018))throw _0x3b0018[_0x34ce8d(0x147)];_0x6aef3a=_0x3b0018['m1Prime'];}return{...a[_0x34ce8d(0x14e)]['deepClone'](_0xa6c810),'mutations':[_0x6aef3a]};}['_transformHistoryAndStateStack'](_0x386bf5){const _0x110425=_0xac5304,{unitID:_0x567994}=_0x386bf5,{history:_0x4e021e,collaboration:_0x1c5300}=this[_0x110425(0x1ee)][_0x110425(0x14c)](_0x567994);if(_0x4e021e['length']===0x0&&_0x1c5300['length']===0x0)return;const _0x3c242c=[],_0xe48167=[];let _0x42d7d7=a['Tools'][_0x110425(0x35d)](_0x386bf5[_0x110425(0x296)][0x0]),_0x1fd801=a[_0x110425(0x14e)][_0x110425(0x35d)](_0x386bf5[_0x110425(0x296)][0x0]);for(let _0x3ad457=_0x4e021e[_0x110425(0x2d1)]-0x1;_0x3ad457>=0x0;_0x3ad457--){const _0x5e0c94={'id':_0x110425(0x19e),'params':{'unitId':_0x4e021e[_0x3ad457][_0x110425(0x2cc)],..._0x4e021e[_0x3ad457]['undoState']}},_0x2ebd2b={'id':_0x110425(0x19e),'params':{'unitId':_0x4e021e[_0x3ad457][_0x110425(0x2cc)],..._0x4e021e[_0x3ad457][_0x110425(0x1f8)]}},_0x5486bb=this['_transformService'][_0x110425(0x294)](_0x42d7d7,_0x5e0c94,!0x1),_0x38536a=this['_transformService'][_0x110425(0x294)](_0x1fd801,_0x2ebd2b,!0x1);if(v[_0x110425(0x283)](_0x5486bb))throw _0x5486bb[_0x110425(0x147)];if(v[_0x110425(0x283)](_0x38536a))throw _0x38536a[_0x110425(0x147)];_0x3c242c['unshift']({..._0x4e021e[_0x3ad457],'undoState':_0x5486bb[_0x110425(0x12f)][_0x110425(0x154)],'redoState':_0x38536a[_0x110425(0x12f)]['params']}),_0x42d7d7=_0x5486bb[_0x110425(0x1e8)],_0x1fd801=_0x38536a[_0x110425(0x1e8)];}_0x42d7d7=a['Tools'][_0x110425(0x35d)](_0x386bf5[_0x110425(0x296)][0x0]),_0x1fd801=a['Tools'][_0x110425(0x35d)](_0x386bf5[_0x110425(0x296)][0x0]);for(let _0x5d8608=_0x1c5300[_0x110425(0x2d1)]-0x1;_0x5d8608>=0x0;_0x5d8608--){const _0x13cd71={'id':_0x110425(0x19e),'params':{'unitId':_0x1c5300[_0x5d8608]['unitId'],..._0x1c5300[_0x5d8608][_0x110425(0x1f6)]}},_0xb467c={'id':_0x110425(0x19e),'params':{'unitId':_0x1c5300[_0x5d8608]['unitId'],..._0x1c5300[_0x5d8608][_0x110425(0x1f8)]}},_0x5e0d1e=this[_0x110425(0x213)][_0x110425(0x294)](_0x42d7d7,_0x13cd71,!0x1),_0x242da9=this[_0x110425(0x213)][_0x110425(0x294)](_0x1fd801,_0xb467c,!0x1);if(v[_0x110425(0x283)](_0x5e0d1e))throw _0x5e0d1e[_0x110425(0x147)];if(v[_0x110425(0x283)](_0x242da9))throw _0x242da9[_0x110425(0x147)];_0xe48167[_0x110425(0xfe)]({..._0x1c5300[_0x5d8608],'undoState':_0x5e0d1e['m2Prime'][_0x110425(0x154)],'redoState':_0x242da9[_0x110425(0x12f)]['params']}),_0x42d7d7=_0x5e0d1e['m1Prime'],_0x1fd801=_0x242da9[_0x110425(0x1e8)];}this[_0x110425(0x1ee)][_0x110425(0xc3)](_0x567994,{'history':_0x3c242c,'collaboration':_0xe48167});}};Q=Yt([he(0x0,a['Inject'](a['Injector'])),he(0x1,v[_0xac5304(0x1f2)]),he(0x2,a[_0xac5304(0x239)](T[_0xac5304(0x20d)]))],Q);var Ht=Object[_0xac5304(0xec)],Wt=(_0x4b6aa0,_0x4616fd,_0x4d4ea3,_0x48f921)=>{const _0x2f0283=_0xac5304;for(var _0x586601=_0x48f921>0x1?void 0x0:_0x48f921?Ht(_0x4616fd,_0x4d4ea3):_0x4616fd,_0x32b1b8=_0x4b6aa0[_0x2f0283(0x2d1)]-0x1,_0x312633;_0x32b1b8>=0x0;_0x32b1b8--)(_0x312633=_0x4b6aa0[_0x32b1b8])&&(_0x586601=_0x312633(_0x586601)||_0x586601);return _0x586601;},Me=(_0x215741,_0x4728dd)=>(_0x49b754,_0x5799ab)=>_0x4728dd(_0x49b754,_0x5799ab,_0x215741);let ee=class{constructor(_0x1c3d23,_0x4099a2){this['_injector']=_0x1c3d23,this['_transformService']=_0x4099a2;}['transformSelections'](_0x537b44){const _0x46d913=_0xac5304;var _0x50d88;const _0x18c9f8=this[_0x46d913(0x372)][_0x46d913(0x248)](W[_0x46d913(0x1ec)]),_0x483d1a=(_0x50d88=_0x18c9f8[_0x46d913(0x298)]())!=null?_0x50d88:[];if(_0x483d1a[_0x46d913(0x2d1)]===0x0)return;const _0x30e26c=_0x537b44[_0x46d913(0x2d8)],_0x58b87b=[{'id':_0x46d913(0x19e),'params':{'unitId':_0x30e26c,'actions':null,'textRanges':_0x483d1a}}],_0x13093b=this['_transformService']['transformMutationsWithChangeset'](_0x537b44,_0x58b87b);if(!v[_0x46d913(0x114)](_0x13093b))throw _0x13093b[_0x46d913(0x147)];const _0x3a8c60=_0x13093b[_0x46d913(0x12f)][0x0][_0x46d913(0x154)][_0x46d913(0x1ad)];Array['isArray'](_0x3a8c60)&&_0x3a8c60[_0x46d913(0x2d1)]&&_0x18c9f8[_0x46d913(0x12b)](_0x3a8c60,{'unitId':_0x30e26c,'subUnitId':_0x30e26c},!0x1);}};ee=Wt([Me(0x0,a[_0xac5304(0x239)](a[_0xac5304(0x334)])),Me(0x1,v[_0xac5304(0x1f2)])],ee);var Vt=Object[_0xac5304(0xec)],Gt=(_0x15042a,_0xc07b1c,_0x46d37c,_0x7611d2)=>{const _0x2339fe=_0xac5304;for(var _0x5828c7=_0x7611d2>0x1?void 0x0:_0x7611d2?Vt(_0xc07b1c,_0x46d37c):_0xc07b1c,_0x4519bc=_0x15042a[_0x2339fe(0x2d1)]-0x1,_0x367aad;_0x4519bc>=0x0;_0x4519bc--)(_0x367aad=_0x15042a[_0x4519bc])&&(_0x5828c7=_0x367aad(_0x5828c7)||_0x5828c7);return _0x5828c7;},N=(_0x15ae2a,_0x5b2e7b)=>(_0x4d9288,_0x6cb516)=>_0x5b2e7b(_0x4d9288,_0x6cb516,_0x15ae2a);let te=class extends a['Disposable']{constructor(_0x295d00,_0x27888f,_0xad8919,_0x12220a,_0x4c2e8d,_0x27ff74,_0x46a87f,_0x1eb08e){const _0x208060=_0xac5304;super(),_(this,'_status$',new I['BehaviorSubject'](u[_0x208060(0x362)]['NOT_COLLAB'])),(this[_0x208060(0x1ee)]=_0x295d00,this[_0x208060(0x20a)]=_0x27888f,this[_0x208060(0x19c)]=_0xad8919,this[_0x208060(0x193)]=_0x12220a,this[_0x208060(0xf1)]=_0x4c2e8d,this['_docSyncEditingCollabCursorService']=_0x27ff74,this['_messageService']=_0x46a87f,this['_localeService']=_0x1eb08e,this['_initEntityListener']());}[_0xac5304(0x1ce)](){const _0x386a57=_0xac5304;this[_0x386a57(0x35a)](this['_collaborationController'][_0x386a57(0x161)][_0x386a57(0x257)](_0x9c4477=>{const _0x54e5d3=_0x386a57,_0x61d8da=this[_0x54e5d3(0x1ee)][_0x54e5d3(0x203)][_0x54e5d3(0x257)](_0x53cc5f=>{const _0x508afc=_0x54e5d3;if(_0x53cc5f==null)return;const {unitId:_0x58a5b2,redoState:_0x555f83,commandId:_0x541f6a}=_0x53cc5f;if(_0x58a5b2!==_0x9c4477[_0x508afc(0x2d8)])return;const _0x1df5f4={'id':_0x541f6a,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x58a5b2,'actions':_0x555f83[_0x508afc(0x1a4)],'textRanges':null}};_0x9c4477[_0x508afc(0xe4)](_0x1df5f4);});if(_0x9c4477[_0x54e5d3(0x35a)](_0x61d8da),_0x9c4477 instanceof u[_0x54e5d3(0x171)]){const _0x276150={'onTransformIME':_0x22eb15=>this[_0x54e5d3(0x19c)]['transformIMECache'](_0x22eb15),'onTransformState':_0x41ff6a=>this['_docTransformStateCacheService'][_0x54e5d3(0x320)](_0x41ff6a),'onTransformSelections':_0x23860d=>this[_0x54e5d3(0xf1)][_0x54e5d3(0x336)](_0x23860d),'onSyncEditingCollabCursor':_0x26c05e=>this[_0x54e5d3(0x1e0)][_0x54e5d3(0x330)](_0x26c05e),'onTransformRemoteChangesetByIMECache':_0x5d79a9=>this[_0x54e5d3(0x19c)][_0x54e5d3(0x244)](_0x5d79a9),'onTransformRemoteChangesetByStateCache':_0x1c6b00=>this[_0x54e5d3(0x193)]['transformRemoteChangeset'](_0x1c6b00)};_0x9c4477[_0x54e5d3(0x1e5)](_0x276150);}}));}};te=Gt([N(0x0,a[_0xac5304(0x239)](T['DocStateChangeManagerService'])),N(0x1,a['Inject'](u[_0xac5304(0x274)])),N(0x2,a[_0xac5304(0x239)](Z)),N(0x3,a[_0xac5304(0x239)](Q)),N(0x4,a[_0xac5304(0x239)](ee)),N(0x5,a[_0xac5304(0x239)](Oe)),N(0x6,O[_0xac5304(0x1c4)]),N(0x7,a['Inject'](a['LocaleService']))],te);var V=(_0x33ccc2=>(_0x33ccc2[_0x33ccc2[_0xac5304(0x117)]=0x0]='UNDEFINED',_0x33ccc2[_0x33ccc2['OK']=0x1]='OK',_0x33ccc2[_0x33ccc2[_0xac5304(0x215)]=0x2]=_0xac5304(0x215),_0x33ccc2[_0x33ccc2['PERMISSION_DENIED']=0x3]=_0xac5304(0x18a),_0x33ccc2[_0x33ccc2[_0xac5304(0x309)]=0x4]='NOT_FOUND',_0x33ccc2[_0x33ccc2['UNAUTHENTICATED']=0x5]=_0xac5304(0x268),_0x33ccc2[_0x33ccc2[_0xac5304(0x181)]=0x6]=_0xac5304(0x181),_0x33ccc2[_0x33ccc2[_0xac5304(0x262)]=0x7]=_0xac5304(0x262),_0x33ccc2[_0x33ccc2[_0xac5304(0x354)]=0x8]=_0xac5304(0x354),_0x33ccc2[_0x33ccc2[_0xac5304(0x21d)]=0x9]='COMPLETION_FINISHED',_0x33ccc2[_0x33ccc2[_0xac5304(0x32e)]=0xa]=_0xac5304(0x32e),_0x33ccc2[_0x33ccc2[_0xac5304(0xc0)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x33ccc2[_0x33ccc2[_0xac5304(0x17f)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x33ccc2[_0x33ccc2[_0xac5304(0x1d8)]=0xd]=_0xac5304(0x1d8),_0x33ccc2[_0x33ccc2[_0xac5304(0x178)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x33ccc2[_0x33ccc2[_0xac5304(0x164)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x33ccc2[_0x33ccc2['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x33ccc2[_0x33ccc2['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0xac5304(0x25a),_0x33ccc2[_0x33ccc2[_0xac5304(0x133)]=0x65]=_0xac5304(0x133),_0x33ccc2[_0x33ccc2['USER_NOT_FOUND']=0xc9]=_0xac5304(0xb9),_0x33ccc2[_0x33ccc2[_0xac5304(0x2c5)]=0xca]='USER_IS_ANONYMOUS',_0x33ccc2[_0x33ccc2[_0xac5304(0x2c8)]=0x1389]=_0xac5304(0x2c8),_0x33ccc2[_0x33ccc2[_0xac5304(0x370)]=0x1771]=_0xac5304(0x370),_0x33ccc2[_0x33ccc2[_0xac5304(0x1a8)]=0x1772]=_0xac5304(0x1a8),_0x33ccc2[_0x33ccc2['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0xac5304(0x241),_0x33ccc2[_0x33ccc2['APPLY_REJECT']=0x1b59]=_0xac5304(0x245),_0x33ccc2[_0x33ccc2[_0xac5304(0x228)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x33ccc2[_0x33ccc2[_0xac5304(0x2d4)]=0x1b5b]=_0xac5304(0x2d4),_0x33ccc2[_0x33ccc2[_0xac5304(0x201)]=0x1b5c]=_0xac5304(0x201),_0x33ccc2[_0x33ccc2[_0xac5304(0x349)]=0x1b5d]=_0xac5304(0x349),_0x33ccc2[_0x33ccc2[_0xac5304(0x34c)]=0x1f41]=_0xac5304(0x34c),_0x33ccc2[_0x33ccc2[_0xac5304(0x260)]=0x2329]=_0xac5304(0x260),_0x33ccc2[_0x33ccc2['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0xac5304(0x132),_0x33ccc2[_0x33ccc2[_0xac5304(0x34b)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x33ccc2[_0x33ccc2[_0xac5304(0x2a7)]=0x232c]=_0xac5304(0x2a7),_0x33ccc2[_0x33ccc2[_0xac5304(0x168)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x33ccc2[_0x33ccc2[_0xac5304(0x28c)]=0x2711]=_0xac5304(0x28c),_0x33ccc2[_0x33ccc2['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0xac5304(0x118),_0x33ccc2[_0x33ccc2[_0xac5304(0x140)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x33ccc2[_0x33ccc2[_0xac5304(0x1de)]=0x2714]=_0xac5304(0x1de),_0x33ccc2[_0x33ccc2['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0xac5304(0x36f),_0x33ccc2[_0x33ccc2[_0xac5304(0x1d9)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x33ccc2[_0x33ccc2[_0xac5304(0x1bc)]=0x271c]=_0xac5304(0x1bc),_0x33ccc2[_0x33ccc2[_0xac5304(0x22e)]=0x271d]=_0xac5304(0x22e),_0x33ccc2[_0x33ccc2[_0xac5304(0x2f5)]=0x271e]=_0xac5304(0x2f5),_0x33ccc2[_0x33ccc2['YUUMI_AI_RUN_FAILED']=0x271f]=_0xac5304(0x12e),_0x33ccc2[_0x33ccc2['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0xac5304(0x357),_0x33ccc2[_0x33ccc2[_0xac5304(0xfc)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x33ccc2[_0x33ccc2[_0xac5304(0x290)]=0x2ee1]=_0xac5304(0x290),_0x33ccc2[_0x33ccc2[_0xac5304(0x264)]=0x2ee2]=_0xac5304(0x264),_0x33ccc2[_0x33ccc2[_0xac5304(0x2bd)]=0x2ee3]=_0xac5304(0x2bd),_0x33ccc2[_0x33ccc2[_0xac5304(0x199)]=0x2ee4]=_0xac5304(0x199),_0x33ccc2[_0x33ccc2['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0xac5304(0xd3),_0x33ccc2[_0x33ccc2[_0xac5304(0x1e7)]=0x32c9]=_0xac5304(0x1e7),_0x33ccc2[_0x33ccc2[_0xac5304(0x198)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x33ccc2[_0x33ccc2[_0xac5304(0x25c)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x33ccc2[_0x33ccc2[_0xac5304(0x2b6)]=0x36b1]=_0xac5304(0x2b6),_0x33ccc2[_0x33ccc2[_0xac5304(0x227)]=0x36b2]=_0xac5304(0x227),_0x33ccc2[_0x33ccc2[_0xac5304(0x280)]=0x36b3]=_0xac5304(0x280),_0x33ccc2[_0x33ccc2[_0xac5304(0x28f)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x33ccc2[_0x33ccc2['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0xac5304(0x120),_0x33ccc2[_0x33ccc2[_0xac5304(0x16e)]=0x3716]=_0xac5304(0x16e),_0x33ccc2[_0x33ccc2[_0xac5304(0x34e)]=0x3717]=_0xac5304(0x34e),_0x33ccc2[_0x33ccc2[_0xac5304(0x22d)]=0x37dd]=_0xac5304(0x22d),_0x33ccc2[_0x33ccc2[_0xac5304(0x32b)]=0x3a99]=_0xac5304(0x32b),_0x33ccc2[_0x33ccc2[_0xac5304(0x341)]=0x3a9a]=_0xac5304(0x341),_0x33ccc2[_0x33ccc2[_0xac5304(0x24e)]=0x3a9b]=_0xac5304(0x24e),_0x33ccc2[_0x33ccc2[_0xac5304(0x2e3)]=0x3a9c]=_0xac5304(0x2e3),_0x33ccc2[_0x33ccc2['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0xac5304(0x2f3),_0x33ccc2[_0x33ccc2['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0xac5304(0x12c),_0x33ccc2[_0x33ccc2['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x33ccc2[_0x33ccc2[_0xac5304(0x17e)]=0x3e81]=_0xac5304(0x17e),_0x33ccc2[_0x33ccc2['UNRECOGNIZED']=-0x1]=_0xac5304(0x1f9),_0x33ccc2))(V||{});function Xt(_0xbe7fd9){const _0x55ff95=_0xac5304;var _0x36b9d8,_0x2bab02;const _0x37b09f=(_0x36b9d8=_0xbe7fd9[_0x55ff95(0x2fa)])==null?void 0x0:_0x36b9d8[_0x55ff95(0x162)],_0x561982=((_0x2bab02=_0xbe7fd9[_0x55ff95(0x2fa)])==null?void 0x0:_0x2bab02[_0x55ff95(0x313)])||0x0;return _0x37b09f===x[_0x55ff95(0x33b)][_0x55ff95(0x35c)]&&_0x561982>0x0;}function Kt(_0x2176d6){const _0x532a76=_0xac5304;return _0x2176d6[_0x532a76(0x145)]===x[_0x532a76(0x1b9)][_0x532a76(0x332)];}var qt=Object['getOwnPropertyDescriptor'],zt=(_0x59a393,_0x353c3b,_0x16c988,_0x4f46cf)=>{const _0x5772d7=_0xac5304;for(var _0x3476a7=_0x4f46cf>0x1?void 0x0:_0x4f46cf?qt(_0x353c3b,_0x16c988):_0x353c3b,_0x5f39ef=_0x59a393[_0x5772d7(0x2d1)]-0x1,_0x294f25;_0x5f39ef>=0x0;_0x5f39ef--)(_0x294f25=_0x59a393[_0x5f39ef])&&(_0x3476a7=_0x294f25(_0x3476a7)||_0x3476a7);return _0x3476a7;},L=(_0x238cee,_0x264e85)=>(_0x146613,_0x2ee4da)=>_0x264e85(_0x146613,_0x2ee4da,_0x238cee);const Jt=_0xac5304(0x17a),Zt=_0xac5304(0x21a),Qt=_0xac5304(0x187);let se=class extends a[_0xac5304(0xbf)]{constructor(_0x20809b,_0x477426,_0x23075f,_0x4c1453,_0x51f29a,_0x19fde0,_0x3dff1f){const _0x472c49=_0xac5304;super(),_(this,'_pollingInterval',null),_(this,_0x472c49(0x315),0x0),_(this,_0x472c49(0x24a),0x0),_(this,_0x472c49(0x34f),[]),_(this,_0x472c49(0x22b),0x0),(this[_0x472c49(0x221)]=_0x20809b,this[_0x472c49(0x1d7)]=_0x477426,this['_configService']=_0x23075f,this[_0x472c49(0x361)]=_0x4c1453,this['_univerInstanceService']=_0x51f29a,this['_logService']=_0x19fde0,this[_0x472c49(0x31d)]=_0x3dff1f,this[_0x472c49(0x340)]());}['_initCommandInterceptor'](){const _0x59132a=_0xac5304;this['disposeWithMe'](this['_commandService'][_0x59132a(0x150)]((_0x2aa525,_0x393461)=>{const _0x534240=_0x59132a;var _0x5ea161;if(_0x2aa525['id']!==x[_0x534240(0x32f)]['id'])return;const _0x51bfd6=_0x2aa525[_0x534240(0x154)];if(!this['_hasFormulaInDirtyRanges']((_0x5ea161=_0x51bfd6[_0x534240(0x355)])!=null?_0x5ea161:[]))return;if(!this[_0x534240(0x211)]())throw this['_checkAndWaitForCalculationPermission'](_0x2aa525,_0x393461),this[_0x534240(0x18e)](),new a[(_0x534240(0x1e3))]();})),this[_0x59132a(0x35a)](this['_commandService'][_0x59132a(0x2c3)]((_0x3d279f,_0x206534)=>{const _0x35494a=_0x59132a;if(_0x3d279f['id']!==x[_0x35494a(0x2d6)]['id'])return;const _0x32c56d=_0x3d279f[_0x35494a(0x154)];if(Xt(_0x32c56d)){const _0xdd5fb5=a[_0x35494a(0x2c0)]();this[_0x35494a(0x34f)]['push'](_0xdd5fb5),this[_0x35494a(0x333)](_0xdd5fb5);}else{if(Kt(_0x32c56d)&&this['_taskIds'][_0x35494a(0x2d1)]>0x0){const _0x2cc909=this[_0x35494a(0x34f)][_0x35494a(0xc8)]();this['_releaseCalculationLimit'](_0x2cc909);}}}));}[_0xac5304(0xe1)](){const _0x5249b4=_0xac5304;super[_0x5249b4(0xe1)](),this[_0x5249b4(0x2b4)](),this[_0x5249b4(0x34f)]=[],this[_0x5249b4(0x24a)]=0x0,this[_0x5249b4(0x315)]=0x0,this[_0x5249b4(0x22b)]=0x0;}async[_0xac5304(0x1ae)](_0x2be498,_0x2e713d){const _0x3c1d35=_0xac5304;for(let _0x253db2=0x0;_0x253db2<0x1e;_0x253db2++)try{if(await this[_0x3c1d35(0x301)](),this[_0x3c1d35(0x211)]()){this[_0x3c1d35(0x1fb)](_0x2be498,_0x2e713d),this[_0x3c1d35(0x221)][_0x3c1d35(0x159)]({'content':this[_0x3c1d35(0x31d)]['t'](_0x3c1d35(0x1df)),'type':p[_0x3c1d35(0x30c)][_0x3c1d35(0xd4)]});return;}await new Promise(_0x51ee6=>{const _0x757f58=_0x3c1d35;this[_0x757f58(0x375)]=window['setTimeout'](_0x51ee6,0x3e8);});}catch(_0x412687){this[_0x3c1d35(0x275)][_0x3c1d35(0x147)](_0x412687);}this[_0x3c1d35(0x221)][_0x3c1d35(0x159)]({'content':this[_0x3c1d35(0x31d)]['t'](_0x3c1d35(0x33c)),'type':p[_0x3c1d35(0x30c)][_0x3c1d35(0x316)]});}['_applyCommand'](_0x2fc452,_0x545ba6){const _0xf56a6b=_0xac5304;try{this['_commandService'][_0xf56a6b(0xf2)](_0x2fc452['id'],_0x2fc452['params'],_0x545ba6);}catch(_0x3157c9){this[_0xf56a6b(0x275)][_0xf56a6b(0x147)](_0x3157c9);}}['_setFormulaLimitStatus'](_0x39e2ba,_0x16c905){const _0x583afa=_0xac5304;_0x16c905<this['_lastResponseTimestamp']||(this[_0x583afa(0x22b)]=_0x16c905,this[_0x583afa(0x315)]=Number[_0x583afa(0x24d)](_0x39e2ba[_0x583afa(0x204)]),this['_currentUsage']=Number[_0x583afa(0x24d)](_0x39e2ba[_0x583afa(0x253)]));}async['_startCalculationLimit'](_0x34e979){const _0x42e365=_0xac5304;var _0xb18ec9,_0x180400;const _0xd58552=Date[_0x42e365(0x299)]();try{const _0x31bf37=((_0xb18ec9=this[_0x42e365(0x2f7)]['getConfig'](u[_0x42e365(0x2aa)]))==null?void 0x0:_0xb18ec9['startFormulaLimitUrl'])||Zt,_0x1d4183=(await this[_0x42e365(0x361)][_0x42e365(0x2de)](_0x31bf37,{'body':JSON[_0x42e365(0x137)]({'taskId':_0x34e979})}))[_0x42e365(0xea)];if(((_0x180400=_0x1d4183[_0x42e365(0x147)])==null?void 0x0:_0x180400[_0x42e365(0x234)])!==V['OK'])return;this['_setFormulaLimitStatus'](_0x1d4183[_0x42e365(0x1c5)],_0xd58552);}catch(_0x3a7a75){this['_logService']['error'](_0x3a7a75);}}async[_0xac5304(0x301)](_0x23a898){const _0x46a0fc=_0xac5304;var _0x4e6149,_0xf7f749;const _0xd8fe6f=Date[_0x46a0fc(0x299)]();try{const _0x52c805=((_0x4e6149=this[_0x46a0fc(0x2f7)][_0x46a0fc(0x26d)](u[_0x46a0fc(0x2aa)]))==null?void 0x0:_0x4e6149['getformulaLimitStatusUrl'])||Jt,_0x2a8f78=_0x23a898?_0x52c805+_0x46a0fc(0x1b2)+encodeURIComponent(_0x23a898):_0x52c805,_0x800987=(await this[_0x46a0fc(0x361)]['get'](_0x2a8f78))[_0x46a0fc(0xea)];if(((_0xf7f749=_0x800987[_0x46a0fc(0x147)])==null?void 0x0:_0xf7f749[_0x46a0fc(0x234)])!==V['OK'])return;this['_setFormulaLimitStatus'](_0x800987[_0x46a0fc(0x1c5)],_0xd8fe6f);}catch(_0x395836){this[_0x46a0fc(0x275)][_0x46a0fc(0x147)](_0x395836);}}async['_releaseCalculationLimit'](_0x3ac5ea){const _0x199148=_0xac5304;var _0x8ff3db,_0x20cd53;const _0xd7e19c=Date[_0x199148(0x299)]();try{const _0x492572=((_0x8ff3db=this[_0x199148(0x2f7)][_0x199148(0x26d)](u[_0x199148(0x2aa)]))==null?void 0x0:_0x8ff3db[_0x199148(0x2be)])||Qt,_0x3cb71c=(await this[_0x199148(0x361)][_0x199148(0x2de)](_0x492572,{'body':JSON[_0x199148(0x137)]({'taskId':_0x3ac5ea})}))['body'];if(((_0x20cd53=_0x3cb71c[_0x199148(0x147)])==null?void 0x0:_0x20cd53[_0x199148(0x234)])!==V['OK'])return;this[_0x199148(0x19a)](_0x3cb71c[_0x199148(0x1c5)],_0xd7e19c);}catch(_0x416e17){this[_0x199148(0x275)][_0x199148(0x147)](_0x416e17);}}['_checkCalculationAvailable'](){const _0x3882de=_0xac5304;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x3882de(0x315)]-this[_0x3882de(0x24a)]>0x0;}[_0xac5304(0x2b4)](){const _0x4fdbd9=_0xac5304;this[_0x4fdbd9(0x375)]&&(clearTimeout(this[_0x4fdbd9(0x375)]),this[_0x4fdbd9(0x375)]=null);}[_0xac5304(0x18e)](){const _0x2afad4=_0xac5304;this[_0x2afad4(0x221)]['show']({'content':this[_0x2afad4(0x31d)]['t'](_0x2afad4(0x15e)),'type':p[_0x2afad4(0x30c)][_0x2afad4(0x26e)]});}['_hasFormulaInDirtyRanges'](_0x4d57ff){const _0x46acf9=_0xac5304;for(const _0x6ec468 of _0x4d57ff){const {unitId:_0x1e7576,sheetId:_0x5859c1,range:_0x422b2d}=_0x6ec468,_0x468ab1=this[_0x46acf9(0x21f)][_0x46acf9(0x26b)](_0x1e7576);if(!_0x468ab1)continue;const _0x3977a4=_0x468ab1[_0x46acf9(0x208)](_0x5859c1);if(!_0x3977a4)continue;const _0x1902e2=_0x3977a4['getCellMatrix']();for(let _0x4e857c=_0x422b2d[_0x46acf9(0xce)];_0x4e857c<=_0x422b2d[_0x46acf9(0x230)];_0x4e857c++)for(let _0x1eac0c=_0x422b2d['startColumn'];_0x1eac0c<=_0x422b2d[_0x46acf9(0x232)];_0x1eac0c++){const _0x1c9e65=_0x1902e2[_0x46acf9(0x34d)](_0x4e857c,_0x1eac0c);if(_0x1c9e65&&(a['isFormulaString'](_0x1c9e65['f'])||a[_0x46acf9(0x2c9)](_0x1c9e65['si'])))return!0x0;}}return!0x1;}};se=zt([L(0x0,a[_0xac5304(0x239)](O[_0xac5304(0x1c4)])),L(0x1,a[_0xac5304(0x2bb)]),L(0x2,a[_0xac5304(0x214)]),L(0x3,a[_0xac5304(0x239)](G[_0xac5304(0x20f)])),L(0x4,a[_0xac5304(0x1d1)]),L(0x5,a[_0xac5304(0x111)]),L(0x6,a[_0xac5304(0x239)](a['LocaleService']))],se);var es=Object[_0xac5304(0xec)],ts=(_0x326dc1,_0x16f943,_0x5a4bea,_0x47cee8)=>{const _0x9f8a38=_0xac5304;for(var _0x2c7c17=_0x47cee8>0x1?void 0x0:_0x47cee8?es(_0x16f943,_0x5a4bea):_0x16f943,_0x3d3d1e=_0x326dc1[_0x9f8a38(0x2d1)]-0x1,_0x18c58e;_0x3d3d1e>=0x0;_0x3d3d1e--)(_0x18c58e=_0x326dc1[_0x3d3d1e])&&(_0x2c7c17=_0x18c58e(_0x2c7c17)||_0x2c7c17);return _0x2c7c17;},ue=(_0x1d5827,_0x16045c)=>(_0x388824,_0x15cbed)=>_0x16045c(_0x388824,_0x15cbed,_0x1d5827);let Ee=class extends a['Disposable']{constructor(_0x3d97ea,_0xf993e0,_0x1fef42){const _0x274dcf=_0xac5304;super(),_(this,_0x274dcf(0x338),new Map()),_(this,_0x274dcf(0x1af),new Map()),_(this,_0x274dcf(0xe6),!0x1),(this[_0x274dcf(0x2f7)]=_0x3d97ea,this[_0x274dcf(0x2a6)]=_0xf993e0,this['_revisionService']=_0x1fef42);}[_0xac5304(0x21b)](){const _0x145a0d=_0xac5304;this[_0x145a0d(0xe6)]=!0x0;}[_0xac5304(0x1c6)](){const _0x5c5a69=_0xac5304;this[_0x5c5a69(0xe6)]=!0x1;}get[_0xac5304(0x1a7)](){const _0x26767a=_0xac5304;return this[_0x26767a(0x1af)];}[_0xac5304(0xe1)](){const _0x3c6d9b=_0xac5304;this[_0x3c6d9b(0xc5)]()[_0x3c6d9b(0x246)](()=>super['dispose']());}async[_0xac5304(0x367)](_0x2f273c){const _0x596da9=_0xac5304;return this[_0x596da9(0xe6)]?null:this['_localStorageService'][_0x596da9(0x353)](u['getLocalCacheKey'](_0x2f273c));}async[_0xac5304(0xf9)](_0x1b4800,_0x267838){const _0x273095=_0xac5304;return!!this[_0x273095(0x2a6)][_0x273095(0x2bc)](_0x1b4800,_0x267838);}['updateOfflineData'](_0x18b17a,_0x5ed62b,_0x154769,_0x49574f){const _0x5aedeb=_0xac5304,_0x244564=this[_0x5aedeb(0x266)][_0x5aedeb(0x1cb)](_0x18b17a);this[_0x5aedeb(0x338)][_0x5aedeb(0x1d6)](_0x18b17a,{'unitID':_0x18b17a,'type':_0x5ed62b,'awaitingChangeset':_0x154769,'mutations':_0x49574f,'rev':_0x244564}),this[_0x5aedeb(0x1af)][_0x5aedeb(0x20b)](_0x18b17a)||this[_0x5aedeb(0x1b0)](_0x18b17a);}['_scheduleSaving'](_0x1f9e4b){const _0x2fb479=_0xac5304,_0xb36c20=this[_0x2fb479(0x2dc)]();_0xb36c20===0x0?this[_0x2fb479(0xff)](_0x1f9e4b):this[_0x2fb479(0x1af)][_0x2fb479(0x1d6)](_0x1f9e4b,setTimeout(()=>this['_saveCache'](_0x1f9e4b),_0xb36c20));}[_0xac5304(0x2dc)](){const _0x543d05=_0xac5304;var _0x300974;return(_0x300974=this[_0x543d05(0x2f7)][_0x543d05(0x26d)](u[_0x543d05(0x21e)]))!=null?_0x300974:u['LOCAL_CACHE_INTERVAL'];}[_0xac5304(0xff)](_0x4c3eb3){const _0x307f05=_0xac5304,_0x150fb6=this[_0x307f05(0x1af)][_0x307f05(0x248)](_0x4c3eb3);return _0x150fb6!==void 0x0&&window[_0x307f05(0x271)](_0x150fb6),this[_0x307f05(0x2a6)][_0x307f05(0x2bc)](u['getLocalCacheKey'](_0x4c3eb3),this[_0x307f05(0x338)]['get'](_0x4c3eb3))[_0x307f05(0x246)](()=>this['_saveTaskMap'][_0x307f05(0x328)](_0x4c3eb3));}async[_0xac5304(0xc5)](){const _0x43de29=_0xac5304,_0x2ffb01=[];this[_0x43de29(0x1af)][_0x43de29(0x1b8)]((_0x29ef15,_0x18f0f4)=>{const _0x54dfcd=_0x43de29;window[_0x54dfcd(0x271)](_0x29ef15),_0x2ffb01[_0x54dfcd(0x1b3)](this[_0x54dfcd(0xff)](_0x18f0f4)[_0x54dfcd(0x246)](()=>{const _0x109aad=_0x54dfcd;this[_0x109aad(0x1af)]['delete'](_0x18f0f4);}));}),await Promise[_0x43de29(0x27d)](_0x2ffb01);}};Ee=ts([ue(0x0,a[_0xac5304(0x214)]),ue(0x1,a[_0xac5304(0x167)]),ue(0x2,a[_0xac5304(0x239)](v[_0xac5304(0x143)]))],Ee);class Fe extends a['RxDisposable']{constructor(){const _0x1adfdf=_0xac5304;super(),_(this,_0x1adfdf(0x288)),this['urlChange$']=I[_0x1adfdf(0x295)](window,_0x1adfdf(0x36d))[_0x1adfdf(0x377)](I[_0x1adfdf(0x212)](this['dispose$']),I[_0x1adfdf(0x32d)](0x1),I['mapTo'](void 0x0));}[_0xac5304(0x18f)](_0x1f9f1d,_0xfd05d2,_0x1eeb91=!0x1){const _0x20425b=_0xac5304,_0xa0a6f2=new URL(window[_0x20425b(0x225)][_0x20425b(0x272)]);_0xa0a6f2[_0x20425b(0x2fb)][_0x20425b(0x1d6)](_0x1f9f1d,_0xfd05d2),_0x1eeb91?window[_0x20425b(0x131)][_0x20425b(0x2b8)]('','',_0xa0a6f2['toString']()):window[_0x20425b(0x131)]['pushState']('','',_0xa0a6f2[_0x20425b(0xc9)]());}['removeParam'](_0x3d0b5f,_0x209c61=!0x1){const _0x19cc76=_0xac5304,_0x4ba5f1=new URL(window[_0x19cc76(0x225)][_0x19cc76(0x272)]);_0x4ba5f1[_0x19cc76(0x2fb)]['delete'](_0x3d0b5f),_0x209c61?window[_0x19cc76(0x131)][_0x19cc76(0x2b8)]('','',_0x4ba5f1[_0x19cc76(0xc9)]()):window['history'][_0x19cc76(0x195)]('','',_0x4ba5f1[_0x19cc76(0xc9)]());}['getParam'](_0x559bea){const _0x20f5dc=_0xac5304;var _0x41b58b;return(_0x41b58b=new URL(window['location'][_0x20f5dc(0x272)])['searchParams'][_0x20f5dc(0x248)](_0x559bea))!=null?_0x41b58b:void 0x0;}}var ss=Object[_0xac5304(0x2d2)],is=Object['getOwnPropertyDescriptor'],ns=(_0x349e4b,_0x1c9ab3,_0x4ea8a7)=>_0x1c9ab3 in _0x349e4b?ss(_0x349e4b,_0x1c9ab3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ea8a7}):_0x349e4b[_0x1c9ab3]=_0x4ea8a7,rs=(_0x264c63,_0x1cb294,_0x30f258,_0x209797)=>{for(var _0x12e775=_0x209797>0x1?void 0x0:_0x209797?is(_0x1cb294,_0x30f258):_0x1cb294,_0x529458=_0x264c63['length']-0x1,_0x1186ae;_0x529458>=0x0;_0x529458--)(_0x1186ae=_0x264c63[_0x529458])&&(_0x12e775=_0x1186ae(_0x12e775)||_0x12e775);return _0x12e775;},Ie=(_0x4b2886,_0x6eac6c)=>(_0x82c0fb,_0xe55c4a)=>_0x6eac6c(_0x82c0fb,_0xe55c4a,_0x4b2886),os=(_0x2da83d,_0x5a73f4,_0x2b9b1b)=>ns(_0x2da83d,_0x5a73f4+'',_0x2b9b1b);const as='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0xac5304(0x26a)]=class extends a[_0xac5304(0x2ac)]{constructor(_0x1f30f1=Ue,_0x29d873,_0x220c9a,_0x4f50ee){const _0x37e1b5=_0xac5304;super(),this[_0x37e1b5(0x1d0)]=_0x1f30f1,this[_0x37e1b5(0xfb)]=_0x29d873,this[_0x37e1b5(0x372)]=_0x220c9a,this[_0x37e1b5(0x2f7)]=_0x4f50ee;const {..._0x39e03a}=a[_0x37e1b5(0x27a)]({},Ue,this[_0x37e1b5(0x1d0)]);this[_0x37e1b5(0x2f7)][_0x37e1b5(0x371)](Bt,_0x39e03a);}['onStarting'](){const _0x1c178f=_0xac5304;this[_0x1c178f(0x1d3)](),this[_0x1c178f(0x284)]();}['onRendered'](){const _0x5d9011=_0xac5304;this[_0x5d9011(0x1db)]();}[_0xac5304(0x1d3)](){const _0x28df36=_0xac5304;var _0x69af51;const _0x4b39ce=[[pe],[se],[ee],[Z],[Q],[Oe],[Te,{'useClass':Fe}],[G['ISocketService'],{'useClass':G[_0x28df36(0x29e)]}],[u[_0x28df36(0x1cc)],{'useClass':Ee}],[exports['DesktopCollaborationStatusDisplayController']],[te],[J],[B],[de],[exports[_0x28df36(0x101)]]];a['registerDependencies'](this['_injector'],a[_0x28df36(0xb5)](_0x4b39ce,(_0x69af51=this['_config'])==null?void 0x0:_0x69af51[_0x28df36(0x160)]));}[_0xac5304(0x1db)](){const _0xa23cc9=_0xac5304;this[_0xa23cc9(0x35a)](this[_0xa23cc9(0xfb)][_0xa23cc9(0x30e)](a[_0xa23cc9(0x1ed)][_0xa23cc9(0x291)],[ge])),this[_0xa23cc9(0x35a)](this['_renderManagerService'][_0xa23cc9(0x30e)](a['UniverInstanceType'][_0xa23cc9(0x146)],[ve]));}[_0xac5304(0x284)](){const _0x5f6b06=_0xac5304;a[_0x5f6b06(0x1c0)](this[_0x5f6b06(0x372)],[[B],[exports['DesktopCollaborationStatusDisplayController']],[te],[J],[exports[_0x5f6b06(0x101)]],[se]]);}},os(exports[_0xac5304(0x26a)],_0xac5304(0x337),as),exports[_0xac5304(0x26a)]=rs([a['DependentOn'](u[_0xac5304(0x1c1)]),Ie(0x1,C[_0xac5304(0x1c8)]),Ie(0x2,a[_0xac5304(0x239)](a[_0xac5304(0x334)])),Ie(0x3,a[_0xac5304(0x214)])],exports[_0xac5304(0x26a)]);var cs=Object['getOwnPropertyDescriptor'],ls=(_0x1c4fa4,_0x1548ed,_0x18a278,_0x4b2d29)=>{for(var _0x54c6de=_0x4b2d29>0x1?void 0x0:_0x4b2d29?cs(_0x1548ed,_0x18a278):_0x1548ed,_0x32b53f=_0x1c4fa4['length']-0x1,_0x280f8f;_0x32b53f>=0x0;_0x32b53f--)(_0x280f8f=_0x1c4fa4[_0x32b53f])&&(_0x54c6de=_0x280f8f(_0x54c6de)||_0x54c6de);return _0x54c6de;},H=(_0x4ffa28,_0x505b7a)=>(_0xc49337,_0x1ca919)=>_0x505b7a(_0xc49337,_0x1ca919,_0x4ffa28);exports[_0xac5304(0x29f)]=class extends u[_0xac5304(0x2b1)]{constructor(_0x5c02a3,_0x3d8b4e,_0x260346,_0x359b5e,_0x20797b){super(_0x5c02a3,_0x3d8b4e,_0x260346,_0x359b5e,_0x20797b);}async[_0xac5304(0x10d)](_0x808dad){const _0x7723e5=_0xac5304,_0x4db0c1=await this['_getSessionTicket'](),_0xc48f43=this[_0x7723e5(0x240)](_0x808dad,_0x4db0c1);return this['_doCreateSocket'](_0xc48f43);}['_createSocketURL'](_0x41eb5b,_0x7a0099){const _0x2c6781=_0xac5304,_0x38077f=typeof window>'u'?new URL(_0x41eb5b):new URL(_0x41eb5b,window[_0x2c6781(0x225)][_0x2c6781(0x10e)]);_0x38077f[_0x2c6781(0x2fb)][_0x2c6781(0x1d6)](_0x2c6781(0x152),_0x7a0099);const _0x2b72a8=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2c6781(0x225)][_0x2c6781(0xbd)]);return _0x2b72a8['get']('runId')&&_0x38077f[_0x2c6781(0x2fb)][_0x2c6781(0x1d6)](_0x2c6781(0x2f1),_0x2b72a8['get'](_0x2c6781(0x2f1))),_0x38077f[_0x2c6781(0xc9)]();}async[_0xac5304(0x188)](){const _0x506dca=_0xac5304;var _0x49dac1,_0x3071e8,_0x4a350f;const _0x527dc5=this[_0x506dca(0x2f7)][_0x506dca(0x26d)](u[_0x506dca(0x2aa)]),_0x563cab=(_0x49dac1=_0x527dc5==null?void 0x0:_0x527dc5['wsSessionTicketUrl'])!=null?_0x49dac1:u[_0x506dca(0x2ca)];return(_0x4a350f=(_0x3071e8=(await this['_httpService'][_0x506dca(0x248)](_0x563cab,{'headers':{'Content-Type':_0x506dca(0x26f)}}))[_0x506dca(0xea)])==null?void 0x0:_0x3071e8[_0x506dca(0x36b)])!=null?_0x4a350f:'';}},exports[_0xac5304(0x29f)]=ls([H(0x0,a[_0xac5304(0x239)](a[_0xac5304(0x334)])),H(0x1,a[_0xac5304(0x239)](G[_0xac5304(0x20f)])),H(0x2,a[_0xac5304(0x214)]),H(0x3,a[_0xac5304(0x111)]),H(0x4,v[_0xac5304(0x142)])],exports['BrowserCollaborationSocketService']);var _s=Object[_0xac5304(0xec)],hs=(_0x51dd98,_0x44f82c,_0xa2196f,_0xcfafce)=>{const _0x177758=_0xac5304;for(var _0x515d58=_0xcfafce>0x1?void 0x0:_0xcfafce?_s(_0x44f82c,_0xa2196f):_0x44f82c,_0x20b1b8=_0x51dd98[_0x177758(0x2d1)]-0x1,_0x330e28;_0x20b1b8>=0x0;_0x20b1b8--)(_0x330e28=_0x51dd98[_0x20b1b8])&&(_0x515d58=_0x330e28(_0x515d58)||_0x515d58);return _0x515d58;},Se=(_0x2b651a,_0x207f90)=>(_0x35f479,_0x3e04a5)=>_0x207f90(_0x35f479,_0x3e04a5,_0x2b651a);exports[_0xac5304(0x148)]=class extends a['Disposable']{constructor(_0x445a9c,_0x3f3533,_0x477ea6){const _0x53285b=_0xac5304;super(),this[_0x53285b(0x200)]=_0x445a9c,this[_0x53285b(0x361)]=_0x3f3533,this[_0x53285b(0x2f7)]=_0x477ea6;}async[_0xac5304(0x28b)](_0x302667,_0x334d92,_0x31b16c,..._0x31afc9){const _0x235fa1=_0xac5304;var _0x33135b,_0x52f8ac,_0x1934de,_0x2999bd;const _0x2f8ac0=this[_0x235fa1(0x200)][_0x235fa1(0x1e9)]();if(!_0x2f8ac0)throw new Error(_0x235fa1(0xcd));const _0x1fbc00=((_0x33135b=this[_0x235fa1(0x2f7)][_0x235fa1(0x26d)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x33135b:u[_0x235fa1(0x1bf)])+'/'+_0x302667+_0x235fa1(0x222)+_0x334d92,_0x4ec4f9=new URL(window[_0x235fa1(0x225)]['href']),_0x148b7c={'scriptId':_0x302667,'runId':(_0x52f8ac=_0x4ec4f9[_0x235fa1(0x2fb)][_0x235fa1(0x248)]('runId'))!=null?_0x52f8ac:'','function':_0x334d92,'unitId':_0x2f8ac0['getUnitId'](),'argsOfFunction':JSON[_0x235fa1(0x137)](_0x31afc9),'invokeId':(_0x1934de=_0x31b16c['invokeId'])!=null?_0x1934de:'','executionId':(_0x2999bd=_0x31b16c[_0x235fa1(0x2df)])!=null?_0x2999bd:''};try{const _0x3b9766=await this[_0x235fa1(0x361)][_0x235fa1(0x2de)](_0x1fbc00,{'body':_0x148b7c});return _0x3b9766['body'][_0x235fa1(0x147)]&&_0x3b9766['body']['error'][_0x235fa1(0x234)]!==V['OK']?_0x235fa1(0xe0):_0x3b9766[_0x235fa1(0xea)][_0x235fa1(0x350)];}catch{return'Failed';}}},exports[_0xac5304(0x148)]=hs([Se(0x0,a[_0xac5304(0x1d1)]),Se(0x1,a['Inject'](G[_0xac5304(0x20f)])),Se(0x2,a['IConfigService'])],exports[_0xac5304(0x148)]);const Ae=0x7530,Pe=_0xac5304(0xfd);class us extends a[_0xac5304(0xbf)]{constructor(){const _0x4f860e=_0xac5304;super(),_(this,_0x4f860e(0xd9),a[_0x4f860e(0x2c0)]()),_(this,_0x4f860e(0x36c),new Set()),_(this,_0x4f860e(0x300),new Map()),_(this,_0x4f860e(0x121),null),_(this,_0x4f860e(0x223),new Map()),_(this,_0x4f860e(0x1a2),new Map()),this[_0x4f860e(0x1fd)]();}[_0xac5304(0xe1)](){const _0x29b90b=_0xac5304;super['dispose'](),this[_0x29b90b(0x223)]['forEach']((_0x32f712,_0xcc86bc)=>this[_0x29b90b(0x318)](_0xcc86bc)),this[_0x29b90b(0x121)]&&window[_0x29b90b(0x2c7)](this[_0x29b90b(0x121)]);}['getUnitStatus$'](_0x49415f){const _0x511eca=_0xac5304;return this['_ensureSubject'](_0x49415f)['pipe'](I[_0x511eca(0x263)]());}[_0xac5304(0x129)](_0x1aefe9){const _0x11a6aa=_0xac5304;this['_selfUnitIDs'][_0x11a6aa(0x217)]===0x0&&this[_0x11a6aa(0x302)](),this[_0x11a6aa(0x36c)][_0x11a6aa(0x2ff)](_0x1aefe9),this[_0x11a6aa(0x32c)]({'type':0x0,'memberID':this[_0x11a6aa(0xd9)],'unitIDs':[_0x1aefe9],'isForwarded':!0x1});}[_0xac5304(0x10b)](_0x23a4b2){const _0x15a5db=_0xac5304;this[_0x15a5db(0x36c)][_0x15a5db(0x328)](_0x23a4b2),this[_0x15a5db(0x36c)]['size']===0x0&&this[_0x15a5db(0x121)]&&window['clearInterval'](this[_0x15a5db(0x121)]);}['_init'](){const _0x298381=_0xac5304;this[_0x298381(0x35a)](a[_0x298381(0x219)](I[_0x298381(0x295)](window,_0x298381(0x110))[_0x298381(0x257)](_0x2f7aac=>{const _0x50ae4c=_0x298381;if(_0x2f7aac[_0x50ae4c(0x29b)]!==Pe||!_0x2f7aac[_0x50ae4c(0x1ea)])return;const _0x2f7282=JSON[_0x50ae4c(0x106)](_0x2f7aac[_0x50ae4c(0x1ea)]);this[_0x50ae4c(0x29c)](_0x2f7282);}))),window['addEventListener'](_0x298381(0x2fe),()=>this[_0x298381(0x32c)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x298381(0x179)](this[_0x298381(0x36c)])}));}[_0xac5304(0x29c)](_0xd20bd1){const _0x264606=_0xac5304;switch(_0xd20bd1['type']){case 0x0:this['_handleJoinEvent'](_0xd20bd1);break;case 0x1:this[_0x264606(0x1c9)](_0xd20bd1);break;case 0x2:this[_0x264606(0x22c)](_0xd20bd1);break;}}[_0xac5304(0xd2)](_0x54554e){const _0xec4b49=_0xac5304,{unitIDs:_0x4cd32e,memberID:_0x45a5dd,isForwarded:_0x16a524}=_0x54554e;_0x4cd32e[_0xec4b49(0x1b8)](_0x105a6b=>{const _0x3d97c5=_0xec4b49;if(!_0x16a524&&this[_0x3d97c5(0x300)][_0x3d97c5(0x20b)](_0x105a6b)&&this[_0x3d97c5(0x15f)](_0x105a6b)[_0x3d97c5(0x2cb)](u[_0x3d97c5(0x2dd)][_0x3d97c5(0x2c4)]),!this[_0x3d97c5(0x300)][_0x3d97c5(0x20b)](_0x105a6b)||!this[_0x3d97c5(0x300)][_0x3d97c5(0x248)](_0x105a6b)[_0x3d97c5(0x20b)](_0x45a5dd)){const _0x448131=this[_0x3d97c5(0x300)]['get'](_0x105a6b)||new Set();_0x448131[_0x3d97c5(0x2ff)](_0x45a5dd),this[_0x3d97c5(0x300)][_0x3d97c5(0x1d6)](_0x105a6b,_0x448131),this[_0x3d97c5(0x1d5)](_0x45a5dd);}}),_0x16a524||this['_send']({'type':0x0,'memberID':this[_0xec4b49(0xd9)],'unitIDs':[...this[_0xec4b49(0x36c)]],'isForwarded':!0x0});}[_0xac5304(0x1d5)](_0x56de06){const _0x29bddd=_0xac5304;this[_0x29bddd(0x318)](_0x56de06);const _0x4cfb69=window[_0x29bddd(0x31e)](()=>{const _0x5c6419=_0x29bddd;this['_unitOnClients'][_0x5c6419(0x1b8)](_0x644b8a=>{const _0x2671fe=_0x5c6419;_0x644b8a[_0x2671fe(0x328)](_0x56de06);});},Ae*0x2);this[_0x29bddd(0x223)][_0x29bddd(0x1d6)](_0x56de06,_0x4cfb69);}[_0xac5304(0x318)](_0x41a7e5){const _0x39c43d=_0xac5304;if(this[_0x39c43d(0x223)]['has'](_0x41a7e5)){const _0x105ff4=this['_clearOtherTimers'][_0x39c43d(0x248)](_0x41a7e5);_0x105ff4&&window[_0x39c43d(0x271)](_0x105ff4),this['_clearOtherTimers'][_0x39c43d(0x1d6)](_0x41a7e5,null);}}[_0xac5304(0x1c9)](_0x30295c){const _0x44f724=_0xac5304,{memberID:_0x3d58f3,unitIDs:_0x525fc4}=_0x30295c;_0x525fc4['forEach'](_0xcb3350=>{const _0x169a50=_0x3138;var _0x19a75a;const _0x9e37f7=this[_0x169a50(0x300)][_0x169a50(0x248)](_0xcb3350);_0x9e37f7&&(_0x9e37f7[_0x169a50(0x328)](_0x3d58f3),(_0x19a75a=this[_0x169a50(0x15f)](_0xcb3350))==null||_0x19a75a[_0x169a50(0x2cb)](_0x9e37f7[_0x169a50(0x217)]===0x0?u['UnitStatus'][_0x169a50(0x364)]:u[_0x169a50(0x2dd)]['OTHER_CLIENTS_EDITING']));}),this[_0x44f724(0x318)](_0x3d58f3);}[_0xac5304(0x22c)](_0x5222f3){this['_scheduleClearOtherTimer'](_0x5222f3['memberID']);}[_0xac5304(0x32c)](_0x1544bd){const _0x5f5aae=_0xac5304;localStorage[_0x5f5aae(0x2bc)](Pe,JSON['stringify'](_0x1544bd));}['_scheduleHeartbeat'](){const _0xf633ac=_0xac5304;this[_0xf633ac(0x121)]=window[_0xf633ac(0x1c2)](()=>{const _0x471b98=_0xf633ac;this[_0x471b98(0x32c)]({'type':0x2,'memberID':this['_id']});},Ae);}[_0xac5304(0x15f)](_0x51efc7){const _0x44bd14=_0xac5304;return this[_0x44bd14(0x1a2)][_0x44bd14(0x20b)](_0x51efc7)||this[_0x44bd14(0x1a2)][_0x44bd14(0x1d6)](_0x51efc7,new I[(_0x44bd14(0x1ac))](u[_0x44bd14(0x2dd)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x44bd14(0x248)](_0x51efc7);}}exports[_0xac5304(0xc2)]=Te,exports[_0xac5304(0x2ce)]=Be,exports[_0xac5304(0x20e)]=us,exports[_0xac5304(0x1f4)]=Fe;function _0x11bd(){const _0x4e4299=['isActive','_instanceService','APPLY_PERMISSION_DENIED','rgba(255,\x20255,\x20255,\x200.01)','docStateChange$','maxFormulaLimit','getAncestorScale','univerjs-icon\x20univerjs-icon-','_initStatusListener','getSheetBySheetId','getUnitId','_collaborationController','has','univer-flex\x20univer-items-center','DocStateChangeManagerService','WebBrowserSingleActiveUnitService','HTTPService','roomMembers','_checkCalculationAvailable','takeUntil','_transformService','IConfigService','INTERNAL_ERROR','translate(.97)','size','min','toDisposable','/universer-api/license/formula/limit/start','disableLocalCache','InsertRangeMoveDownCommandId','COMPLETION_FINISHED','LOCAL_CACHE_INTERVAL_KEY','_univerInstanceService','getUniverSheetInstance','_messageService','/run/','_clearOtherTimers','_color','location','top','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','APPLY_NON_SEQUENTIAL_REVISION','collaboration.closeRoom','0\x200\x2016\x2016','_lastResponseTimestamp','_handleHeartbeatEvent','ENTITLE_NEED_BILLING_ADDRESS','YUUMI_ALL_TABLES_IS_INVALID','RECT','endRow','_refreshCollabCursors','endColumn','RemoveColCommandId','code','0\x200\x2017\x2016','imageSourceType','purple.300','setActiveRange','Inject','collab-text-range-','InsertRangeMoveRightCommandId','collabStatus.conflict','_dataLoaderService','makeDirty','jsx','_createSocketURL','ENSURE_SNAPSHOT_EXECUTION','split','url(#off-line-icon_clip0_910_343)','transformRemoteChangeset','APPLY_REJECT','then','USERS_LEAVE','get','handleIRemoveCol','_currentUsage','_onCursorDelete','getColorFromTheme','parseInt','REDEMPTION_CODE_FULLY_REDEEMED','SheetSkeletonManagerService','1em','_entityInit$','serializeRangeWithSheet','currentUsage','getCoordByCell','SetTextSelectionsOperation','fromEventSubject','subscribe','_initResize','DisposableCollection','CURRENT_STATUS_CANNOT_OPERATE','_cursor','EMAIL_HAS_BEEN_BOUND','debounce','MoveRangeCommandId','_drawRectRange','LICENSE_MAX_UNITS_EXCEEDED','_session','INVALID_ARGUMENT','distinctUntilChanged','INVALID_INVITE_CODE','current','_revisionService','onMouseMove','UNAUTHENTICATED','startsWith','UniverCollaborationClientUIPlugin','getUnit','getMemberID','getConfig','Loading','application/json','getUndoRedoMutationParamsCache','clearTimeout','href','getTypeOfUnitDisposed$','CollaborationController','_logService','asObservable','EffectRefRangId','addClipboardHook','RxDisposable','merge','_scene','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','all','_drawTextRange','width','ENTITLE_DUP_SUBSCRIPTION','focused$','collaboration-client.offline-data-not-saved','isTransformMutationFailure','_initDependencies','combineLatest','collabCursorState$','loadUnit','urlChange$','_docSkeleton','SOCKET_FAILED','runOnServer','YUUMI_UNABLE_LOAD_URL','SessionStatus','_memberService','PAYMENT_CHANNEL_NOT_SUPPORT','INVITE_CODE_HAS_BEEN_UES','UNIVER_DOC','DesktopCollaborationStatusDisplayController','connectInjector','transformMutation','fromEvent','mutations','div','getDocRanges','now','getActiveSheet','key','_handleEvent','on-line-icon','WebSocketService','BrowserCollaborationSocketService','subscribeEvent','selection','handleInsertCol','_collabSessionService','JOIN_ROOM_FAILED','debug','_localStorageService','LICENSE_EXPORT_SIZE_EXCEEDED','_drawAnchor','_collabCursorState$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','4332870hrWWBd','Plugin','labelPosition','with','unit','_collabCursorController','CollaborationSocketService','2HkqvIv','transformMutationsWithChangeset','_clearPolling','off-line-icon_clip0_910_343','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_name','replaceState','_cursors','jiqing.500','ICommandService','setItem','INVITE_CODE_REQUIRED','releaseFormulaLimitUrl','SUBMIT_CHANGESET_TIMEOUT','generateRandomId','VIEW_MAIN','string','onCommandExecuted','OTHER_CLIENTS_EDITING','USER_IS_ANONYMOUS','collaboration.single-unit.warning','clearInterval','CHANGESET_REVISION_CONFILICT','isFormulaId','DEFAULT_WS_SESSION_TICKET_URL','next','unitId','registerComponent','SheetCollabCursorShape','DocIMEInputManagerService','drawWith','length','defineProperty','clipPath','APPLY_REVISION_CONFILICT','_anchor','SetFormulaCalculationNotificationMutation','debounceTime','unitID','session.connection-failed','saveImage','session.will-retry','_getSaveTimeout','UnitStatus','post','executionId','find','_onCursorUpdate','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','REDEMPTION_CODE_NOT_STARTED','selections','white','Tooltip','IDocClipboardService','backgroundColor','collab-text-anchor-','_getAnchorBounding','name','send','Subject','_transformPreviousActiveRange','collaboration-client-ui.config','round','runId','event$','REDEMPTION_USER_NOT_ELIGIBLE','_removeCollabCursors','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_colorIndex','_configService','SetDocZoomRatioOperation','9eetXNI','stageInfo','searchParams','cursorInfo$','CLOSE_ROOM','unload','add','_unitOnClients','_getFormulaLimitStatus','_scheduleHeartbeat','startColumn','complete','getCurrentSelections','LocaleService','color','OTHER_CLIENT_EDITING','NOT_FOUND','url(#$1','save','MessageType','getCollabEntity$','registerRenderModule','RefRangeService','substring','text','attrs','totalFormulasToCalculate','useCallback','_maxFormulaLimit','Error','idSuffix','_removeClearOtherTimer','getSheetId','symbol','DataLoaderService','registerRefRange','_localeService','setTimeout','engine','transformStateCache','setShapeProps','hovered','resize','_render','setAlpha','findNodePositionByCharIndex','CollaborationEvent','delete','_draw','TEXT_RANGE_LAYER_INDEX','REDEMPTION_INVALID_CODE','_send','shareReplay','LOGIN_FAILED','SetFormulaCalculationStartMutation','syncEditingCollabCursor','COLORS','SUCCESS','_startCalculationLimit','Injector','CollaborationUIEventId','transformSelections','pluginName','_cachedData','useDependency','reconnect','FormulaExecuteStageType','formula.calculation.unable','getCurrentUnitForType','createInstance','assign','_initCommandInterceptor','REDEMPTION_CODE_INACTIVE','ONLINE','15576187DMBocY','_status$','throttleTime','path','onPointerLeave$','DeleteRangeMoveLeftCommandId','APPLY_DUPLICATED','NodePositionConvertToRectRange','LICENSE_IMPORT_SIZE_EXCEEDED','CONNECTOR_DATA_TOO_LARGE','getValue','ENTITLE_INSUFFICIENT_QUOTA','_taskIds','result','cursorInfo','INotificationService','getItem','TOO_MANY_REQUESTS','dirtyRanges','triggerDblclick','YUUMI_CONNECTOR_URL_NOT_FOUND','http://www.w3.org/2000/svg','_refRangeService','disposeWithMe','_colorAssignService','START_CALCULATION','deepClone','_anchorDot','entries','UPDATE_CURSOR','_httpService','CollaborationStatus','trim','NO_OTHER_CLIENTS_EDITING','onPointerMove$','session.collaboration-timeout','loadOfflineData','_updateCollabCursors','restore','6442758KcrenH','ticket','_selfUnitIDs','popstate','font','YUUMI_NO_CUBOID_FOR_QUESTION','SNAPSHOT_INVALID_SNAPSHOT','setConfig','_injector','closePath','evenodd','_pollingInterval','_transformUndoRedoStack','pipe','CollaborationSessionService','mergeOverrideWithDependencies','SHEET_VIEWPORT_KEY','IUIPartsService','sheetID','USER_NOT_FOUND','_context','_notificationService','_online','search','transform','Disposable','MOBILE_VERIFY_CODE_MISMATCH','Workbook','IURLService','setStateCache','_lastPointer','exhaustSavingTask','filter','hide','shift','toString','roomMembers$','_docSkeletonManagerService','CONFLICT','[RemoteUniscriptService]:\x20no\x20focused\x20unit','startRow','IBeforeCloseService','init','transformByState','_handleJoinEvent','INVITE_CODE_ALREADY_BOUND','Success','ColorKit','_labelPosition','_cursorShapes','range','_id','#FFF','_handleHover','_textBubble','lineTo','column','handleDeleteRangeMoveUp','Failed','dispose','toStringTag','768605EWcLtO','onLocalMutation','data','_disabled','red.300','_transformHistoryAndStateStack','getSkeleton','body','Shape','getOwnPropertyDescriptor','green.600','tag','Unknown\x20user','handleInsertRangeMoveDown','_docTransformSelectionsService','executeCommand','DOC_RANGE_TYPE','uni.network.url-service','CollaborationUIEventService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','useObservable','_setupBeforeClosingHandler','saveOfflineData','xlink:href','_renderManagerService','PY_RUNTIME_SCRIPT_ERROR','ACTIVE_UNIT_EVENT_CHANNEL','unshift','_saveCache','1541001Wwkofm','CollaborationDataLoaderController','registerBeforeClose','1439889jGbEZH','eventID','_range','parse','clsx','currentTheme$','isArray','_setupSubUnitSync','disposeUnit','getRenderById','createSocket','origin','_cursorInfo$','storage','ILogService','createIdentifier','runRefRangeMutations','isTransformMutationsWithChangesetSuccess','5FvkoXL','_roomMembers$','UNDEFINED','YUUMI_URL_COL_OUT_OF_RANGE','getTypeOfUnitAdded$','Warning','getCellPositionByOffset','8PtDJHW','_backgroundColor','_startSheetCollabCursor','_toggleOnline','ENTITLE_CHAT_LIMIT_EXCEED','_heartbeatTimer','Vector2','_collaborationUIEventService','_getSheetObject','Rect','currentSkeleton$','_beforeCloseService','_entities','editingUnit','getUnhiddenWorksheets','replaceDocRanges','REDEMPTION_USER_REDEEM_TIMES_EXCEED','SOCKET_FAILED_RETRY','YUUMI_AI_RUN_FAILED','m2Prime','_hovered','history','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ERROR_AGAIN','arc','handleInsertRangeMoveRight','off-line-icon','stringify','_onRefRangeChange','_getMergeRange','AWAITING_WITH_PENDING','_docClipboardService','OFFLINE','includes','_syncEditingCollabCursorService','skeleton','YUUMI_RATE_OVER_LIMIT','_uiPartsService','ISnapshotServerService','RevisionService','values','functionsExecutedState','UNIVER_SHEET','error','RemoteUniscriptService','_themeService','Module','_toggleOffline','getStateCache','transformIMECache','Tools','InsertColCommandId','beforeCommandExecuted','forwardRef','sessionTicket','bottom','params','getCollabCursors$','defIds','handleIRemoveRow','FromArray','show','type','getRangePointData','children','univer-mr-2\x20univer-flex\x20univer-text-xl','formula.calculation.waiting','_ensureSubject','override','entityInit$','stage','blue.400','AUTHORIZE_CODE_ILLEGAL','collabStatus.syncing','row','ILocalStorageService','LICENSE_DISTRO_REJECTED','random','replace','_hideTimer','onPointerEnter$','_assignedColors','ENTITLE_REPORT_LIMIT_EXCEED','getOffsetConfig','_sheetSkeletonManagerService','DocCollaborationEntity','colorChannel1','assignAColorForMemberID','ranges','fillRule','collabStatus.fetchMiss','_updateSubUnitFromURLParams','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','from','/universer-api/license/formula/limit/status','black','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','contains','DATA_SOURCE_TOO_LARGE','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getVpScrollXYInfoByPosToVp','ALREADY_EXISTS','map','_initStatusComponent','getColor','M0\x200H16V16H0z','PENDING','/universer-api/license/formula/limit/done','_getSessionTicket','fill','PERMISSION_DENIED','_shapes','...','_initCommandExecutedListener','_showGuardMessage','setParam','getActiveRange','fillText','RichTextEditingMutation','_docTransformStateCacheService','_urlService','pushState','handleDeleteRangeMoveLeft','AWAITING','MOBILE_HAS_BEEN_BOUND','USER_NOT_INVITED_CODE','_setFormulaLimitStatus','displayName','_docTransformIMECacheService','_startDocCollabCursor','doc.mutation.rich-text-editing','getMember','deserializeRangeWithSheet','measureText','_unitStatus','handleInsertRow','actions','_getScale','[CollaborationDataLoaderController]','saveTaskMap','SNAPSHOT_HAS_BEEN_REMOVED','DeleteRangeMoveUpCommandId','11988816kqLcdb','_updateLocalCursor','BehaviorSubject','textRanges','_checkAndWaitForCalculationPermission','_saveTaskMap','_scheduleSaving','_localCacheService','?taskId=','push','permission.title','mask','sessionStatus$','InsertRowCommandId','forEach','FormulaExecutedStateType','getViewport','currentColor','YUUMI_TABLE_NOT_FOUND_IN_UNIT','RemoveRowCommandId','toRgbString','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','touchDependencies','UniverCollaborationClientPlugin','setInterval','createElement','IMessageService','limitInfo','enableLocalCache','SetWorksheetActivateCommand','IRenderManagerService','_handleLeaveEvent','setUndoRedoMutationParamsCache','getCurrentRevOfUnit','ILocalCacheService','svg','_initEntityListener','_hover','_config','IUniverInstanceService','dispose$','_registerDependencies','url(#on-line-icon_clip0_910_349)','_scheduleClearOtherTimer','set','_commandService','EMAIL_VERIFY_CODE_MISMATCH','YUUMI_ASYNCIO_CANCELLED','moveTo','_registerRenderDependencies','getParam','fillStyle','YUUMI_SUBSCRIPTION_NOT_FOUND','formula.calculation.started','_docSyncEditingCollabCursorService','subunit','defs','CanceledError','getRelativeToViewportCoord','addHandlerCallback','none','WECHAT_HAS_BEEN_BOUND','m1Prime','getFocusedUnit','newValue','height','DocSelectionManagerService','UniverInstanceType','_docStateChangeManagerService','_eventUnsubscribe','whenReady','unsubscribe','ITransformService','addObject','WebURLService','ThemeService','undoState','switchMap','redoState','UNRECOGNIZED','_initEvent','_applyCommand','useRef','_init','activeSheet$'];_0x11bd=function(){return _0x4e4299;};return _0x11bd();}